MZ@ !L!This program cannot be run in DOS mode. $ꨬꨬꨬꨬꨬꨬRichPEdi[" q rϧr`A#88#(Pq@$r !8 8.textB `.rdata2 @@.data0 @.pdata$@@@.rsrcqPq@@.relocrq@BH(u H(H\$ UHH e3EH2-+HHtH;tHHHM jHE HELH1EHH1ELHH1E<HMH3EH3HMHEEHH H3EH3EH#HEH HHH\$HH ]ff0!!!5####$# @ i[&X!Xi[ X!RSDSڦ.+AOs^`F12Script.pdbGCTL0.text$mn0.text$mn$00 .rdata$brc 8.idata$5!.00cfg!.cfguard !8.rdataX!.rdata$zzzdbg"(.xdata#8.edata8#.idata$2L#.idata$3`#8.idata$4#.idata$60.data@$.pdataP.rsrc$01D@p.rsrc$02B  4 2PKi[(#F12Script.dll`#$$ ####$#DisableThreadLibraryCallsAQueryPerformanceCounterGetCurrentProcessIdGetCurrentThreadIdGetSystemTimeAsFileTimeGetTickCountKERNEL32.dll2-+] f."4 "@B"(@X^0H^Hp^`^x^___`B`b 4m8r`P`h`yx*||}v}}(H~@XXp0~~2zzz0d{H{`4yx^^ 8܁P*h$(6@Xp8 TԌ60H`hxV܏,X 8 PfhԒVDnД(,@Xp0ʙJܚp0<H`x R 8TPdyhyyza.c\_`wr(q@qXJrpVtt&uv tr"ss0vsHw`puxuww~vu(xt .v8txPdchccLadLddiLj(j@kXbkpk$ldd,ebeee0fH4g`fxHfzffzggg h Th8 hP hh 4i ji i h zl l |a!8q(!p@!aX!&_p!_!m!m!,n!a!zn"a"&b0"nH"p`"nx"0o"vo"o"p"Dp"Vb#b #|q8#bP#bh#x###ʠ##n#$@($v@$X$p$($$($x$L$z%%0%jH%Ю`%x%Ī%`%$%Ĭ%%2& &8&xP&h&F&&.&&$&&'V('@'X'bp'''r'''P(ҵ( 0(XH(`(ڶx(*(d((($(^) )8)"P)fh)))D))к))Z*(*л@*X*p**p*6*x**+8+n0+H+`+&x+`+++2++F, ,8,P,Hh,,,,z,,,F-H(-@-X-$p--- -.--H.`.~0.^H.`.x.B..ħ.`.../֨ /8/P/Ԥh///x//^//0(0,@0^X0p00 02000$1f1b01H1`1x11N11112. 2b82P2h2 2D222z223P(3@3rX3p33H3<3f33484z04H4`4Tx444f44.45x 585P5@h5t5555,5t56(6@6X6Fp6j66666l7(707H7`7hx77J77r778 8<88<P8h8888&8H889(9@9X9Dp999L999:N:X0:H:`:2x:h:L::::;< ;8; P;h;d;;P;;R;;p<(<@<X<p<<<<<<*==0=pH=`=Vx===j===>L >8>P>2h>>,>p>v>> > ? ? (? 8? H? X? h? x? ? ? ? ? ? ? ? ? @ @ (@ 8@ H@ X@ h@ x@ @ @ @ @ @ @ @ @ A A (A 8A HA XA hA xA A A A A A A A A B B (B 8B HB XB hB xB B B B B B B B B C C (C 8C HC XC hC xC C C C C C C C C D D (D 8D HD XD hD xD D D D D D D D D E E (E 8E HE XE hE xE E E E E E E E E F F (F 8F HF XF hF xF F F F F F F F F G G (G 8G HG XG hG xG G G G G G G G G H H (H 8H HH XH hH xH H H H H H H H H I I (I 8I HI XI hI xI I I I I I I I I J J (J 8J HJ XJ hJ xJ J J J J J J J J K K (K 8K HK XK hK xK K K K K K K K K L L (L 8L HL XL hL xL L L L L L L L L M M (M 8M HM XM hM xM M M M M M M M M N N (N 8N HN XN hN xN N N N N N N N N O O (O 8O HO XO hO xO O O O O O O O O P P (P 8P HP XP hP xP P P P P P P P P Q Q (Q 8Q HQ XQ hQ xQ Q Q Q Q Q Q Q Q R R (R 8R HR XR hR xR R R R R R R R R S S (S 8S HS XS hS xS S S S S S S S S T T (T 8T HT XT hT xT T T T T T T T T U U (U 8U HU XU hU xU U U U U U U U U V V (V 8V HV XV hV xV V V V V V V V V W W (W 8W HW XW hW xW W W W W W W W W X X (X 8X HX XX hX xX X X X X X X X X Y Y (Y 8Y HY XY hY xY Y Y Y Y Y Y Y Y Z Z (Z 8Z HZ XZ hZ xZ Z Z Z Z Z Z Z Z [ [ ([ 8[ H[ X[ h[ x[ [ [ [ [ [ [ [ [ \ \ (\ 8\ H\ X\ h\ x\ \ \ \ \ \ \ \ \ ] ] (] 8] H] X] h] x] ] ] ] ] ] ] ] ] ^ ^ (^ 8^(qDo}HH@PU(xqy[h+=}@ 2 Qظ X0  _[X@4I@(`EExB0 @4x>s:&P&&&d&Е&&1&ؖ&_8&p&h*@*)8*8*+F+-+.+7r,9,, + +ح,6`,P,?,p,S[X-Y-E--&-"-..0. .'..;0&J&(...2"//M?XQ/z`0h0p0%$!1"1CSu8v8wh8 x8Iȏ8`88H8R/M`/`/}Q0z89P8z%888ZǍj  E Jx,@XCO8a Hr*F%غ"hHI7(vzw |4n]P`8C (i@"  "H!@z&4 ج"oH#,!xDF8@G`Mj8WWNhRXSPTpXYY3@%h]PP;!ذ}` WBI()T +XO#i0!X( 0 < A [+ 7.ex_؂ ˑ  v8' Ho H9A`<6PI9kX9/y(<к<<<<`@<<nh<f;\OP!<q@<<AP10P^2Q QQ Pm0P$PaXP`PQQz`QQePQQQQ:PQPPQQQX"QY)Qd +Q/P,Q8/Q0Q3QpOWO"8tHL84Q5Q\p:QpQ<8QEQ8QzQpQ :PXQ9QZ/ .RHQ.R5KR NRVxPR <Ŋ`X=rGhoH؟=:FXHEE0XHYHYHZH[H_HLPgHjbHujH!kH~bHxE8Ee EgRHv "H?HbRPrRtS ȄRMSS`SPS1S(S(Sq qkhq xqS -T T3HTнTTTTT"TTPT0T@T0T TiTTTs8TyTpT0T TWT:T&TT3 T4Y[ 8]<D],^pC^F^G^HT^zT^W^u^^(\^Xc^5e^Pi^6l^pm^/o^H^ p^xq^lq^Xq(T+TXOU@]U!@XYL YdSga=s^Y%h^p`aFc$@c HcGcHcUb c"cccc(ddcbcbd/dXc cacvc9ccgCgSPgggggCg ds_`wd'Pg`d2&dpg g$0l@Phk-kTxkk8kPkpkzmm,8mHmm2Hm6n9nnk5(kBky(l< l<mhl k$HkGk^kg)jUhp>pk"Phx$kȸh np p p p@p h8qxVqXqpJq9CHOOSER/CHOOSER.CSSCHOOSER/CHOOSER.HTMLCHOOSER/CHOOSER.JSCHOOSER/APP.JSCHOOSER/PROMISE.JSCOMMON/ASSERT.JSCOMMON/MEDIATYPEMANAGER.JSCOMMON/FEATUREAVAILABILITY.JSCOMMON/MESSAGETHROTTLE.JSCOMMON/BUTTON.CSSCOMMON/COMMON.CSSCOMMON/COMMONMERGED.JSCOMMON/COMMONMINIMAL.JSCOMMON/CSSUTILITIES.JS!COMMON/CUTCOPYPASTECONTEXTMENU.JSCOMMON/DATATREEVIEW.CSSCOMMON/ENCODINGUTILITIES.JSCOMMON/HTMLTREEVIEW.CSSCOMMON/ISDEBUGBUILD.JSCOMMON/LISTBOX.CSSCOMMON/PLUGIN.JSCOMMON/REMOTEEDITSTACK.JSCOMMON/REMOTEHELPERS.JSCOMMON/TARGETENGINEKIND.JSCOMMON/TOOLWINDOW.CSSCOMMON/TRACE.JS COMMON/URI.JSCOMMON/CONTROLS/CONTROLS.CSSCOMMON/ETWDATACOLLECTOR.JS"COMMON/GRID/GRIDCELLEDITCONTROL.JSCOMMON/GRID/GRIDCONTROL.JSCOMMON/GRID/GRIDCONTROL.CSSCOMMON/IMAGES/ADD_ROW.PNGCOMMON/IMAGES/CHECKMARK.PNGCOMMON/IMAGES/CLOSE.PNGCOMMON/IMAGES/COLUMNMOVE.PNGCOMMON/IMAGES/COMMON_ICONS.PNGCOMMON/IMAGES/CRITICAL.PNGCOMMON/IMAGES/F12LOGO.PNG&COMMON/IMAGES/FORCESTORAGECAPSTATE.PNGCOMMON/IMAGES/HELP.PNGCOMMON/IMAGES/I_DELETE.PNGCOMMON/IMAGES/I_NEXT.PNGCOMMON/IMAGES/I_PREVIOUS.PNGCOMMON/IMAGES/I_WARNING.PNG#COMMON/IMAGES/ITEMCOLLAPSEDICON.PNG"COMMON/IMAGES/ITEMEXPANDEDICON.PNGCOMMON/IMAGES/MAXIMIZE.PNGCOMMON/IMAGES/MINIMIZE.PNGCOMMON/IMAGES/MISC_ICONS.PNGCOMMON/IMAGES/OPTIONS.PNGCOMMON/IMAGES/REFRESH.PNGCOMMON/IMAGES/REFRESHSTATE.PNGCOMMON/IMAGES/RESTORE.PNGCOMMON/IMAGES/TREE_ICONS.PNGCOMMON/IMAGES/TABCLOSE.PNG#COMMON/IMAGES/TOGGLEPRETTYPRINT.PNG COMMON/IMAGES/TOGGLEWORDWRAP.PNG+COMMON/IMAGES/COLORPICKER/ALPHACOLORBAR.PNG1COMMON/IMAGES/COLORPICKER/CHECKEREDBACKGROUND.PNG.COMMON/IMAGES/COLORPICKER/EYEDROPPERBUTTON.PNG)COMMON/IMAGES/COLORPICKER/HUECOLORBAR.PNG/COMMON/IMAGES/COLORPICKER/LIGHTNESSCOLORBAR.PNG0COMMON/IMAGES/COLORPICKER/SATURATIONCOLORBAR.PNG*COMMON/IMAGES/COLORPICKER/SLIDERBUTTON.PNG+COMMON/INTELLISENSE/INTELLISENSELISTBOX.CSS0COMMON/INTELLISENSE/INTELLISENSEREMOTEHELPERS.JS+COMMON/CONTROLS/LISTCONTROL/LISTCONTROL.CSS$COMMON/OBJECTVIEW/OBJECTTREEVIEW.CSS*COMMON/OBJECTVIEW/TREEVIEWREMOTEHELPERS.JS&COMMON/OBJECTVIEW/TREEVIEWUTILITIES.JSCOMMON/REMOTE/RPC.JS&COMMON/RESOURCESVIEW/RESOURCESVIEW.CSSCOMMON/SLICKGRID/SLICK.CORE.JS"COMMON/SLICKGRID/SLICK.DATAVIEW.JS!COMMON/SLICKGRID/SLICK.EDITORS.JS$COMMON/SLICKGRID/SLICK.FORMATTERS.JSCOMMON/SLICKGRID/SLICK.GRID.CSSCOMMON/SLICKGRID/SLICK.GRID.JS3COMMON/SLICKGRID/PLUGINS/SLICK.ROWSELECTIONMODEL.JS&COMMON/JQUERY/JQUERY.EVENT.DRAG-2.2.JS!COMMON/JQUERY/JQUERY-2.1.1.MIN.JSCOMMON/TOOLWINDOW.F12.CSS$COMMON/FORMATTER/CSS/CSSFORMATTER.JS'COMMON/FORMATTER/CSS/CSSFORMATWORKER.JS!COMMON/FORMATTER/CSS/CSSPARSER.JS"COMMON/FORMATTER/CSS/CSSEMITTER.JS&COMMON/FORMATTER/HTML/HTMLFORMATTER.JS)COMMON/FORMATTER/HTML/HTMLFORMATWORKER.JS&COMMON/FORMATTER/HTML/HTMLTOKENIZER.JS#COMMON/FORMATTER/HTML/HTMLPARSER.JS$COMMON/FORMATTER/HTML/HTMLEMITTER.JS(COMMON/FORMATTER/FORMATTEDTEXTMAPPING.JSCOMMON/FORMATTER/FORMATTER.JS COMMON/FORMATTER/STATEMACHINE.JS$COMMON/FORMATTER/FORMATTEROPTIONS.JS"COMMON/FORMATTER/IFORMATSERVICE.JSCOMMON/FORMATTER/POSITION.JSCOMMON/FORMATTER/SOURCESPAN.JS'COMMON/FORMATTER/UNMAPPEDTEXTMAPPING.JS)COMMON/FORMATTER/SOURCEMAPPARSERWORKER.JS COMMON/FORMATTER/FORMATWORKER.JS%COMMON/FORMATTER/SOURCEMAPMAPPINGS.JSCOMMON/FORMATTER/BASE64.JS$COMMON/FORMATTER/HTMLSCRIPTFINDER.JS#COMMON/FORMATTER/SOURCEMAPPARSER.JS%COMMON/FORMATTER/SOURCESPANBUILDER.JS#COMMON/FORMATTER/WORKERMESSAGING.JS"COMMON/EDITOR/EDITORDEFINITIONS.JSCOMMON/EDITOR/EDITOR.CSSCOMMON/EDITOR/VS/CSS.JSCOMMON/EDITOR/VS/LOADER.JSCOMMON/EDITOR/VS/NLS.JSCOMMON/EDITOR/VS/NATIVE.JSCOMMON/EDITOR/VS/TEXT.JS*COMMON/EDITOR/VS/BASE/WORKER/WORKERMAIN.JS3COMMON/EDITOR/VS/BASE/WORKER/WORKERMAINPROCESS.HTML9COMMON/EDITOR/VS/BASE/WORKER/WORKERMAINCOMPATIBILITY.HTML,COMMON/EDITOR/VS/BASE/WORKER/WORKERSERVER.JS5COMMON/EDITOR/VS/BASE/WORKER/WORKERSERVER.NLS.KEYS.JS6COMMON/EDITOR/VS/BASE/UI/SCROLLBAR/IMPL/ARROW-DOWN.PNG6COMMON/EDITOR/VS/BASE/UI/SCROLLBAR/IMPL/ARROW-LEFT.PNG7COMMON/EDITOR/VS/BASE/UI/SCROLLBAR/IMPL/ARROW-RIGHT.PNG4COMMON/EDITOR/VS/BASE/UI/SCROLLBAR/IMPL/ARROW-UP.PNG3COMMON/EDITOR/VS/BASE/UI/WIDGETS/CASE-SENSITIVE.SVG*COMMON/EDITOR/VS/BASE/UI/WIDGETS/REGEX.SVG,COMMON/EDITOR/VS/BASE/UI/WIDGETS/WARNING.SVG/COMMON/EDITOR/VS/BASE/UI/WIDGETS/WHOLE-WORD.SVG5COMMON/EDITOR/VS/BASE/UI/WIDGETS/SHELL/MEDIA/HELP.SVG5COMMON/EDITOR/VS/BASE/UI/WIDGETS/SHELL/MEDIA/LOGO.SVG9COMMON/EDITOR/VS/BASE/UI/WIDGETS/SHELL/MEDIA/SETTINGS.SVG5COMMON/EDITOR/VS/BASE/UI/WIDGETS/TOOLBAR/ELLIPSIS.SVG=COMMON/EDITOR/VS/BASE/UI/WIDGETS/TOOLBAR/ELLIPSIS-INVERSE.SVG'COMMON/EDITOR/VS/EDITOR/EDITOR.MAIN.CSS&COMMON/EDITOR/VS/EDITOR/EDITOR.MAIN.JS/COMMON/EDITOR/VS/EDITOR/EDITOR.MAIN.NLS.KEYS.JS;COMMON/EDITOR/VS/EDITOR/CONTRIB/QUICKOPEN/SYMBOL-SPRITE.SVG-COMMON/EDITOR/VS/EDITOR/CSS/DEFAULT-THEME.CSS(COMMON/EDITOR/VS/EDITOR/CSS/VS-THEME.CSS*COMMON/EDITOR/VS/EDITOR/CSS/ARROW-LEFT.PNG+COMMON/EDITOR/VS/EDITOR/CSS/ARROW-RIGHT.PNG.COMMON/EDITOR/VS/EDITOR/CSS/GREEN-SQUIGGLY.SVG,COMMON/EDITOR/VS/EDITOR/CSS/RED-SQUIGGLY.SVG6COMMON/EDITOR/VS/EDITOR/MODES/MONARCH/MONARCHWORKER.JS?COMMON/EDITOR/VS/EDITOR/MODES/MONARCH/MONARCHWORKER.NLS.KEYS.JS(COMMON/EDITOR/VS/LANGUAGES/NULLWORKER.JS1COMMON/EDITOR/VS/LANGUAGES/NULLWORKER.NLS.KEYS.JS4COMMON/EDITOR/VS/EDITOR/WORKER/EDITORWORKERSERVER.JS=COMMON/EDITOR/VS/EDITOR/WORKER/EDITORWORKERSERVER.NLS.KEYS.JS7COMMON/EDITOR/VS/LANGUAGES/COFFEESCRIPT/COFFEESCRIPT.JS@COMMON/EDITOR/VS/LANGUAGES/COFFEESCRIPT/COFFEESCRIPT.NLS.KEYS.JS+COMMON/EDITOR/VS/LANGUAGES/CSHARP/CSHARP.JS4COMMON/EDITOR/VS/LANGUAGES/CSHARP/CSHARP.NLS.KEYS.JS3COMMON/EDITOR/VS/LANGUAGES/CSS/SERVICES/BROWSERS.JS<COMMON/EDITOR/VS/LANGUAGES/CSS/SERVICES/BROWSERS.NLS.KEYS.JS%COMMON/EDITOR/VS/LANGUAGES/CSS/CSS.JS.COMMON/EDITOR/VS/LANGUAGES/CSS/CSS.NLS.KEYS.JS+COMMON/EDITOR/VS/LANGUAGES/CSS/CSSWORKER.JS4COMMON/EDITOR/VS/LANGUAGES/CSS/CSSWORKER.NLS.KEYS.JS3COMMON/EDITOR/VS/LANGUAGES/CSS/MONACOPARTICIPANT.JS<COMMON/EDITOR/VS/LANGUAGES/CSS/MONACOPARTICIPANT.NLS.KEYS.JS'COMMON/EDITOR/VS/LANGUAGES/HTML/HTML.JS0COMMON/EDITOR/VS/LANGUAGES/HTML/HTML.NLS.KEYS.JS-COMMON/EDITOR/VS/LANGUAGES/HTML/HTMLWORKER.JS6COMMON/EDITOR/VS/LANGUAGES/HTML/HTMLWORKER.NLS.KEYS.JS3COMMON/EDITOR/VS/LANGUAGES/JAVASCRIPT/JAVASCRIPT.JS<COMMON/EDITOR/VS/LANGUAGES/JAVASCRIPT/JAVASCRIPT.NLS.KEYS.JS9COMMON/EDITOR/VS/LANGUAGES/JAVASCRIPT/JAVASCRIPTWORKER.JSBCOMMON/EDITOR/VS/LANGUAGES/JAVASCRIPT/JAVASCRIPTWORKER.NLS.KEYS.JS'COMMON/EDITOR/VS/LANGUAGES/JSON/JSON.JS0COMMON/EDITOR/VS/LANGUAGES/JSON/JSON.NLS.KEYS.JS-COMMON/EDITOR/VS/LANGUAGES/JSON/JSONWORKER.JS6COMMON/EDITOR/VS/LANGUAGES/JSON/JSONWORKER.NLS.KEYS.JS'COMMON/EDITOR/VS/LANGUAGES/LESS/LESS.JS0COMMON/EDITOR/VS/LANGUAGES/LESS/LESS.NLS.KEYS.JS-COMMON/EDITOR/VS/LANGUAGES/LESS/LESSWORKER.JS6COMMON/EDITOR/VS/LANGUAGES/LESS/LESSWORKER.NLS.KEYS.JS7COMMON/EDITOR/VS/LANGUAGES/LESS/PARSER/LESS.GRAMMAR.TXT1COMMON/EDITOR/VS/LANGUAGES/PLAINTEXT/PLAINTEXT.JS:COMMON/EDITOR/VS/LANGUAGES/PLAINTEXT/PLAINTEXT.NLS.KEYS.JS'COMMON/EDITOR/VS/LANGUAGES/SASS/SASS.JS0COMMON/EDITOR/VS/LANGUAGES/SASS/SASS.NLS.KEYS.JS-COMMON/EDITOR/VS/LANGUAGES/SASS/SASSWORKER.JS6COMMON/EDITOR/VS/LANGUAGES/SASS/SASSWORKER.NLS.KEYS.JS7COMMON/EDITOR/VS/LANGUAGES/TYPESCRIPT/TYPESCRIPTMODE.JS@COMMON/EDITOR/VS/LANGUAGES/TYPESCRIPT/TYPESCRIPTMODE.NLS.KEYS.JS:COMMON/EDITOR/VS/LANGUAGES/TYPESCRIPT/TYPESCRIPTWORKER2.JSCCOMMON/EDITOR/VS/LANGUAGES/TYPESCRIPT/TYPESCRIPTWORKER2.NLS.KEYS.JSBCOMMON/EDITOR/VS/LANGUAGES/TYPESCRIPT/JS/GLOBALVARIABLEREWRITER.JSKCOMMON/EDITOR/VS/LANGUAGES/TYPESCRIPT/JS/GLOBALVARIABLEREWRITER.NLS.KEYS.JSCCOMMON/EDITOR/VS/LANGUAGES/TYPESCRIPT/JS/IMPORTANDEXPORTREWRITER.JSLCOMMON/EDITOR/VS/LANGUAGES/TYPESCRIPT/JS/IMPORTANDEXPORTREWRITER.NLS.KEYS.JS?COMMON/EDITOR/VS/LANGUAGES/TYPESCRIPT/LIB/TYPESCRIPTSERVICES.JSHCOMMON/EDITOR/VS/LANGUAGES/TYPESCRIPT/LIB/TYPESCRIPTSERVICES.NLS.KEYS.JSICOMMON/EDITOR/VS/LANGUAGES/TYPESCRIPT/PARTICIPANTS/FILENAMESUGGESTIONS.JSRCOMMON/EDITOR/VS/LANGUAGES/TYPESCRIPT/PARTICIPANTS/FILENAMESUGGESTIONS.NLS.KEYS.JSDCOMMON/EDITOR/VS/LANGUAGES/TYPESCRIPT/PARTICIPANTS/NLSPARTICIPANT.JSMCOMMON/EDITOR/VS/LANGUAGES/TYPESCRIPT/PARTICIPANTS/NLSPARTICIPANT.NLS.KEYS.JS@COMMON/EDITOR/VS/LANGUAGES/TYPESCRIPT/PROJECT/PROJECTRESOLVER.JSICOMMON/EDITOR/VS/LANGUAGES/TYPESCRIPT/PROJECT/PROJECTRESOLVER.NLS.KEYS.JS%COMMON/EDITOR/VS/LANGUAGES/XML/XML.JS.COMMON/EDITOR/VS/LANGUAGES/XML/XML.NLS.KEYS.JS+COMMON/EDITOR/VS/LANGUAGES/XML/XMLWORKER.JS4COMMON/EDITOR/VS/LANGUAGES/XML/XMLWORKER.NLS.KEYS.JS)COMMON/EDITOR/VS/LANGUAGES/VSXML/VSXML.JS2COMMON/EDITOR/VS/LANGUAGES/VSXML/VSXML.NLS.KEYS.JSCONSOLE/CONSOLE.CSSCONSOLE/CONSOLE.HTMLCONSOLE/CONSOLEMERGED.JSCONSOLE/MANIFEST.JSONCONSOLE/REMOTE.JSCONSOLE/REMOTEMAIN.JSCONSOLE/REMOTECONSOLEHELPERS.JS CONSOLE/IMAGES/I_CLEAR-INPUT.PNG"CONSOLE/IMAGES/I_CONSOLE-INPUT.PNGCONSOLE/IMAGES/I_ERROR.PNGCONSOLE/IMAGES/I_EXECUTE.PNGCONSOLE/IMAGES/I_INFO.PNG!CONSOLE/IMAGES/I_TOGGLE-MULTI.PNG"CONSOLE/IMAGES/I_TOGGLE-SINGLE.PNG&CONSOLE/IMAGES/I_CLEAR-ON-NAVIGATE.PNGCONSOLE/CONSOLE.F12.CSS DOM/DOM.HTMLDOM/DOMEXPLORER.CSSDOM/DOMEXPLORERMERGED.JSDOM/EVENTS.CSSDOM/EXPANDINGLISTVIEW.CSSDOM/INSPECT.HTMLDOM/LAYOUT.CSSDOM/MANIFEST.JSONDOM/DOMEXPLORERREMOTE.JSDOM/DOMTREE/DOMTREE.CSS"DOM/STYLES/STYLEVIEW/STYLEVIEW.CSS(DOM/STYLES/WINNINGVIEW/WINNINGSTYLES.CSS&DOM/STYLES/CHANGESVIEW/CHANGESVIEW.CSS#DOM/IMAGES/BREADCRUMBSCROLLLEFT.PNG(DOM/IMAGES/BREADCRUMBSCROLLLEFTHOVER.PNG$DOM/IMAGES/BREADCRUMBSCROLLRIGHT.PNG)DOM/IMAGES/BREADCRUMBSCROLLRIGHTHOVER.PNGDOM/IMAGES/I_ERROR.PNGDOM/IMAGES/I_INSPECT.PNGDOM/IMAGES/RED_SQUIGGLY.PNGDOM/IMAGES/I_REFRESH.PNGDOM/IMAGES/I_JUST_MY_CODE.PNGDOM/IMAGES/I_SHOW_LAYOUT.PNG$DOM/IMAGES/I_SHOW_PSEUDO_CLASSES.PNGDOM/DOMEXPLORER.F12.CSSDEBUGGER/DEBUGGERMERGED.JSDEBUGGER/DEBUGGER.HTMLDEBUGGER/DEBUGGER.CSSDEBUGGER/MANIFEST.JSON5DEBUGGER/BREAKPOINTS/EVENTBREAKPOINTDESCRIPTIONS.JSON$DEBUGGER/BREAKPOINTS/BREAKPOINTS.CSS/DEBUGGER/BREAKPOINTS/IMAGES/BREAKPOINTGLYPH.PNG5DEBUGGER/BREAKPOINTS/IMAGES/CONDITIONALBREAKPOINT.PNG4DEBUGGER/BREAKPOINTS/IMAGES/TRACEPOINTBREAKPOINT.PNG2DEBUGGER/BREAKPOINTS/IMAGES/BREAKPOINTDISABLED.PNG1DEBUGGER/BREAKPOINTS/IMAGES/BREAKPOINTUNBOUND.PNG4DEBUGGER/BREAKPOINTS/IMAGES/DELETEALLBREAKPOINTS.PNG4DEBUGGER/BREAKPOINTS/IMAGES/SELECTALLBREAKPOINTS.PNG5DEBUGGER/BREAKPOINTS/IMAGES/EDITCURRENTBREAKPOINT.PNG2DEBUGGER/BREAKPOINTS/IMAGES/ADDEVENTBREAKPOINT.PNG2DEBUGGER/BREAKPOINTS/IMAGES/ADDEVENTTRACEPOINT.PNG0DEBUGGER/BREAKPOINTS/IMAGES/ADDXHRBREAKPOINT.PNG/DEBUGGER/BREAKPOINTS/IMAGES/EVENTBREAKPOINT.PNG:DEBUGGER/BREAKPOINTS/IMAGES/EVENTBREAKPOINTCONDITIONAL.PNG7DEBUGGER/BREAKPOINTS/IMAGES/EVENTBREAKPOINTDISABLED.PNG6DEBUGGER/BREAKPOINTS/IMAGES/EVENTBREAKPOINTUNBOUND.PNG/DEBUGGER/BREAKPOINTS/IMAGES/EVENTTRACEPOINT.PNG7DEBUGGER/BREAKPOINTS/IMAGES/EVENTTRACEPOINTDISABLED.PNG6DEBUGGER/BREAKPOINTS/IMAGES/EVENTTRACEPOINTUNBOUND.PNG-DEBUGGER/BREAKPOINTS/IMAGES/XHRBREAKPOINT.PNG5DEBUGGER/BREAKPOINTS/IMAGES/XHRBREAKPOINTDISABLED.PNG4DEBUGGER/BREAKPOINTS/IMAGES/XHRBREAKPOINTUNBOUND.PNG DEBUGGER/CALLSTACK/CALLSTACK.CSS.DEBUGGER/CALLSTACK/IMAGES/ACTIVEFRAMEGLYPH.PNG5DEBUGGER/CALLSTACK/IMAGES/INSTRUCTIONPOINTERGLYPH.PNG)DEBUGGER/CALLSTACK/IMAGES/PAUSEWORKER.PNG/DEBUGGER/CALLSTACK/IMAGES/TOGGLEASYNCFRAMES.PNG-DEBUGGER/CALLSTACK/IMAGES/TOGGLEJMCFRAMES.PNG/DEBUGGER/CURSOR/IMAGES/CURRENTLOCATIONARROW.PNGDEBUGGER/IMAGES/BREAKALL.PNG%DEBUGGER/IMAGES/BREAKONEXCEPTIONS.PNGDEBUGGER/IMAGES/BREAKWORKER.PNG DEBUGGER/IMAGES/CLEARCOOKIES.PNG'DEBUGGER/IMAGES/CLEARSESSIONCOOKIES.PNGDEBUGGER/IMAGES/CONTINUE.PNGDEBUGGER/IMAGES/COOKIES.PNG#DEBUGGER/IMAGES/COPYTOCLIPBOARD.PNGDEBUGGER/IMAGES/CSSFILEICON.PNGDEBUGGER/IMAGES/DIFFICON.PNGDEBUGGER/IMAGES/DIFFTABICON.PNG"DEBUGGER/IMAGES/DISCONNECTICON.PNGDEBUGGER/IMAGES/FILEPICKER.PNG!DEBUGGER/IMAGES/FILESNODEICON.PNG DEBUGGER/IMAGES/FUNCTIONICON.PNG&DEBUGGER/IMAGES/FUNCTIONICONMAPPED.PNG&DEBUGGER/IMAGES/GRIDHEADERHTTPONLY.PNG$DEBUGGER/IMAGES/GRIDHEADERSECURE.PNG DEBUGGER/IMAGES/HTMLFILEICON.PNG#DEBUGGER/IMAGES/LIBRARYCODEICON.PNG DEBUGGER/IMAGES/LOCALSTORAGE.PNGDEBUGGER/IMAGES/MYCODEICON.PNGDEBUGGER/IMAGES/NEXTTAB.PNG$DEBUGGER/IMAGES/NOTAFUNCTIONICON.PNG*DEBUGGER/IMAGES/NOTAFUNCTIONICONMAPPED.PNGDEBUGGER/IMAGES/PREVTAB.PNG#DEBUGGER/IMAGES/PREVIEWTABCLOSE.PNG"DEBUGGER/IMAGES/PREVIEWTABICON.PNG DEBUGGER/IMAGES/REDIRECTICON.PNGDEBUGGER/IMAGES/RETURNVALUE.PNGDEBUGGER/IMAGES/SAVEICON.PNG"DEBUGGER/IMAGES/SCRIPTFILEICON.PNGDEBUGGER/IMAGES/SEARCH.PNG"DEBUGGER/IMAGES/SESSIONSTORAGE.PNGDEBUGGER/IMAGES/STEPINTO.PNGDEBUGGER/IMAGES/STEPOUT.PNGDEBUGGER/IMAGES/STEPOVER.PNG#DEBUGGER/IMAGES/TOGGLESOURCEMAP.PNG%DEBUGGER/IMAGES/TOOLBARMYCODEICON.PNGDEBUGGER/IMAGES/TSFILEICON.PNG(DEBUGGER/LANGUAGESERVICE/FINDRESULTS.CSS/DEBUGGER/LANGUAGESERVICE/IMAGES/FINDRESULTS.PNG0DEBUGGER/LANGUAGESERVICE/IMAGES/CLEARRESULTS.PNG)DEBUGGER/LANGUAGESERVICE/IMAGES/CLOSE.PNG.DEBUGGER/LANGUAGESERVICE/IMAGES/NEXTRESULT.PNG'DEBUGGER/LANGUAGESERVICE/IMAGES/PIN.PNG2DEBUGGER/LANGUAGESERVICE/IMAGES/PREVIOUSRESULT.PNG)DEBUGGER/LANGUAGESERVICE/IMAGES/UNPIN.PNG!DEBUGGER/MANAGER/COMMONSTRUCTS.JSDEBUGGER/REMOTE/REMOTE.JS DEBUGGER/REMOTE/DEBUGPROVIDER.JS(DEBUGGER/REMOTE/DIAGNOSTICSOMPROVIDER.JSDEBUGGER/REMOTE/JITREMOTE.JS"DEBUGGER/TABCONTROL/TABCONTROL.CSS$DEBUGGER/WATCHES/IMAGES/ADDWATCH.PNG%DEBUGGER/WATCHES/IMAGES/DELETEALL.PNGDEBUGGER/WATCHES/WATCHES.CSSEMULATION/EMULATION.CSSEMULATION/EMULATION.HTMLEMULATION/EMULATIONMERGED.JSEMULATION/EMULATION.JSONEMULATION/INFOBUTTON.PNGEMULATION/I_PERSISTSETTINGS.PNGEMULATION/I_RESETSETTINGS.PNGEMULATION/MANIFEST.JSONEMULATION/REMOTE.JSEMULATION/REMOTEMAIN.JSHEADER/HEADER.CSSHEADER/HEADER.HTMLHEADER/HEADERMERGED.JSHEADER/IMAGES/BADGEALERT.PNGHEADER/IMAGES/BADGEBREAK.PNGHEADER/IMAGES/BADGEERROR.PNGHEADER/IMAGES/BADGEINFO.PNGHEADER/IMAGES/BADGERUNNING.PNGHEADER/IMAGES/CLOSE.PNGHEADER/IMAGES/CONSOLE.PNGHEADER/IMAGES/DOCK.PNGHEADER/IMAGES/EMULATION.PNG HEADER/IMAGES/EMULATIONCOMBO.PNGHEADER/IMAGES/FOREGROUND.PNGHEADER/IMAGES/HELP.PNGHEADER/IMAGES/OVERFLOW.PNGHEADER/IMAGES/MAXIMIZE.PNGHEADER/IMAGES/MINIMIZE.PNGHEADER/IMAGES/RESTORE.PNGHEADER/IMAGES/UNDOCK.PNG#HEADER/IMAGES/NAVOVERFLOW_BREAK.PNG"HEADER/IMAGES/NAVOVERFLOW_INFO.PNG#HEADER/IMAGES/NAVOVERFLOW_START.PNG%HEADER/IMAGES/NAVOVERFLOW_WARNING.PNGHEADER/IMAGES/CHECKMARK.PNGHEADER/IMAGES/NEXTTAB.PNGHEADER/IMAGES/PREVTAB.PNGHEADER/MANIFEST.JSONHEADER/REMOTE/REMOTE.JSNETWORK/NETWORK.CSSNETWORK/NETWORK.HTMLNETWORK/NETWORKMERGED.JSNETWORK/MANIFEST.JSONNETWORK/REMOTE.JSNETWORK/REMOTEHELPERS.JS#NETWORK/COMMON/EXTERNAL/CONTROLS.JS)NETWORK/COMMON/EXTERNAL/DIAGNOSTICSHUB.JS NETWORK/COMMON/EXTERNAL/GRID.CSS,NETWORK/COMMON/EXTERNAL/JSTREEGRIDCONTROL.JS!NETWORK/COMMON/EXTERNAL/RULER.CSSNETWORK/IMAGES/BADGEERROR.PNG"NETWORK/IMAGES/CUSTOMMARK5_18X.PNGNETWORK/IMAGES/I_APPEVENT.PNGNETWORK/IMAGES/I_USERMARK.PNG)NETWORK/IMAGES/I_CHECKERED_BACKGROUND.PNGNETWORK/IMAGES/I_CLEARCACHE.PNG!NETWORK/IMAGES/I_CLEARCOOKIES.PNG!NETWORK/IMAGES/I_CLEARSESSION.PNG$NETWORK/IMAGES/I_CLEARONNAVIGATE.PNG&NETWORK/IMAGES/I_FILTERING_OPTIONS.PNGNETWORK/IMAGES/I_OPEN.PNG"NETWORK/IMAGES/I_REFRESHSERVER.PNGNETWORK/IMAGES/I_SAVE.PNGNETWORK/IMAGES/I_START.PNGNETWORK/IMAGES/I_STOP.PNG&NETWORK/IMAGES/NETWORKSTATUS-ERROR.PNG#NETWORK/IMAGES/NETWORKSTATUS-OK.PNG(NETWORK/IMAGES/NETWORKSTATUS-WARNING.PNG)PERFTOOLS/COMMON/CONTROLS/GRIDCONTROL.CSS(PERFTOOLS/COMMON/CONTROLS/HUBCONTROLS.JS)PERFTOOLS/COMMON/CONTROLS/MENUCONTROL.CSS PERFTOOLS/COMMON/COMMONMERGED.JS"PERFTOOLS/COMMON/DIAGNOSTICSHUB.JS%PERFTOOLS/COMMON/PERFREMOTEHELPERS.JSPERFTOOLS/COMMON/PLUGIN.CSSPERFTOOLS/COMMON/PLUGIN.JS#PERFTOOLS/COMMON/TOKENEXTRACTOR.CSS%PERFTOOLS/COMMON/IMAGES/CHECKMARK.PNG+PERFTOOLS/COMMON/IMAGES/CUSTOMMARK5_18X.PNG&PERFTOOLS/COMMON/IMAGES/I_APPEVENT.PNG'PERFTOOLS/COMMON/IMAGES/I_SORT_DOWN.PNG%PERFTOOLS/COMMON/IMAGES/I_SORT_UP.PNG&PERFTOOLS/COMMON/IMAGES/I_USERMARK.PNG%PERFTOOLS/COMMON/IMAGES/I_WARNING.PNG-PERFTOOLS/COMMON/IMAGES/ITEMCOLLAPSEDICON.PNG,PERFTOOLS/COMMON/IMAGES/ITEMEXPANDEDICON.PNG,PERFTOOLS/COMMON/CONTROLS/MULTILINEGRAPH.CSS&PERFTOOLS/COMMON/CONTROLS/RENDERER.CSS#PERFTOOLS/COMMON/CONTROLS/RULER.CSS'PERFTOOLS/COMMON/CONTROLS/SCROLLBAR.CSS&PERFTOOLS/COMMON/CONTROLS/SWIMLANE.CSSPERFTOOLS/COMMON/COMMON.F12.CSS"PERFTOOLS/COMMON/IMAGES/I_OPEN.PNG"PERFTOOLS/COMMON/IMAGES/I_SAVE.PNG#PERFTOOLS/COMMON/IMAGES/I_START.PNG"PERFTOOLS/COMMON/IMAGES/I_STOP.PNGPERFTOOLS/MEMORY/MANIFEST.JSON#PERFTOOLS/MEMORY/MEMORYANALYZER.CSS$PERFTOOLS/MEMORY/MEMORYANALYZER.HTML(PERFTOOLS/MEMORY/MEMORYANALYZERMERGED.JSPERFTOOLS/MEMORY/REMOTE.JS%PERFTOOLS/MEMORY/SNAPSHOTTILEVIEW.CSS$PERFTOOLS/MEMORY/IMAGES/I_FOLDIN.PNG"PERFTOOLS/MEMORY/IMAGES/I_INFO.PNG&PERFTOOLS/MEMORY/IMAGES/I_SNAPSHOT.PNG+PERFTOOLS/MEMORY/IMAGES/I_TABLE_OPTIONS.PNG0PERFTOOLS/MEMORY/IMAGES/STATUS_HEAP_DECREASE.PNG0PERFTOOLS/MEMORY/IMAGES/STATUS_HEAP_INCREASE.PNG(PERFTOOLS/MEMORY/IMAGES/TAKESNAPSHOT.PNG+PERFTOOLS/MEMORY/JS/CONTROLS/TABCONTROL.CSS'PERFTOOLS/MEMORY/MEMORYANALYZER.F12.CSS&PERFTOOLS/VISUALPROFILER/MANIFEST.JSON/PERFTOOLS/VISUALPROFILER/DATACATEGORYSTYLES.CSS+PERFTOOLS/VISUALPROFILER/VISUALPROFILER.CSS,PERFTOOLS/VISUALPROFILER/VISUALPROFILER.HTML0PERFTOOLS/VISUALPROFILER/VISUALPROFILERMERGED.JS.PERFTOOLS/VISUALPROFILER/VISUALPROFILER.VS.CSS0PERFTOOLS/VISUALPROFILER/JS/CONTROLS/DIVIDER.CSS8PERFTOOLS/VISUALPROFILER/JS/HUBGRAPHS/MULTILINEGRAPH.CSS/PERFTOOLS/VISUALPROFILER/JS/HUBGRAPHS/RULER.CSS9PERFTOOLS/VISUALPROFILER/JS/HUBGRAPHS/STACKEDBARCHART.CSS2PERFTOOLS/VISUALPROFILER/JS/HUBGRAPHS/SWIMLANE.CSS2PERFTOOLS/VISUALPROFILER/IMAGES/I_CHARTZOOM_IN.PNG;PERFTOOLS/VISUALPROFILER/IMAGES/I_CHARTZOOM_IN_DISABLED.PNG5PERFTOOLS/VISUALPROFILER/IMAGES/I_CHARTZOOM_RESET.PNG>PERFTOOLS/VISUALPROFILER/IMAGES/I_CHARTZOOM_RESET_DISABLED.PNG:PERFTOOLS/VISUALPROFILER/IMAGES/I_CHARTSELECTION_CLEAR.PNGCPERFTOOLS/VISUALPROFILER/IMAGES/I_CHARTSELECTION_CLEAR_DISABLED.PNG:PERFTOOLS/VISUALPROFILER/IMAGES/I_CHECKERED_BACKGROUND.PNG7PERFTOOLS/VISUALPROFILER/IMAGES/I_FILTERING_OPTIONS.PNG4PERFTOOLS/VISUALPROFILER/IMAGES/I_FRAME_GROUPING.PNG/PERFTOOLS/VISUALPROFILER/VISUALPROFILER.F12.CSS*PERFTOOLS/VISUALPROFILER/CPUUSAGEMERGED.JS9PERFTOOLS/VISUALPROFILER/JS/CPUUSAGE/CPUUSAGETREEGRID.CSS>PERFTOOLS/VISUALPROFILER/JS/CPUUSAGE/MESSAGEOVERLAYCONTROL.CSS-PERFTOOLS/VISUALPROFILER/JS/CPUUSAGE/GRID.CSS9PERFTOOLS/VISUALPROFILER/JS/CPUUSAGE/JSTREEGRIDCONTROL.JS>PERFTOOLS/VISUALPROFILER/IMAGES/I_F12_CHARTSELECTION_CLEAR.PNG6PERFTOOLS/VISUALPROFILER/IMAGES/I_F12_CHARTZOOM_IN.PNG9PERFTOOLS/VISUALPROFILER/IMAGES/I_F12_CHARTZOOM_RESET.PNGFPERFTOOLS/VISUALPROFILER/IMAGES/I_F12_CONTEXT_CHARTSELECTION_CLEAR.PNGOPERFTOOLS/VISUALPROFILER/IMAGES/I_F12_CONTEXT_CHARTSELECTION_CLEAR_DISABLED.PNG>PERFTOOLS/VISUALPROFILER/IMAGES/I_F12_CONTEXT_CHARTZOOM_IN.PNGGPERFTOOLS/VISUALPROFILER/IMAGES/I_F12_CONTEXT_CHARTZOOM_IN_DISABLED.PNGAPERFTOOLS/VISUALPROFILER/IMAGES/I_F12_CONTEXT_CHARTZOOM_RESET.PNGJPERFTOOLS/VISUALPROFILER/IMAGES/I_F12_CONTEXT_CHARTZOOM_RESET_DISABLED.PNGPLUGINHOST/PLUGIN.F12.JSPLUGINHOST/POPUPWINDOW.HTMLPLUGINHOST/POPUPWINDOW.CSS"PLUGINHOST/THEME/CLOSEERRORBOX.PNGPLUGINHOST/THEME/F12.CSS!PLUGINHOST/THEME/HELPERRORBOX.PNGPLUGINHOST/THEME/LIGHT.JSON"PLUGINHOST/THEME/HIGHCONTRAST.JSONPLUGINHOST/THEME/PLUGIN.CSS!PLUGINHOST/THEME/I_ALERTERROR.PNG PLUGINHOST/THEME/I_ALERTINFO.PNGEXPERIMENTS/EXPERIMENTS.CSSEXPERIMENTS/EXPERIMENTS.HTML EXPERIMENTS/EXPERIMENTSMERGED.JSEXPERIMENTS/MANIFEST.JSONMUI4VS_VERSION_INFO ~ 98 ~ 98?StringFileInfo040904B0LCompanyNameMicrosoft CorporationPFileDescriptionF12 Developer Tools8FileVersion11.00.14393.2430 (rs1_release_inmarket_aim.180806-1810)<InternalNameF12Script.dll.LegalCopyright Microsoft Corporation. All rights reserved.DOriginalFilenameF12Script.dllDProductNameInternet ExplorerFProductVersion11.00.14393.2430DVarFileInfo$Translation html, body { margin: 0; padding: 0; width: 100%; height: 100%; } body { background-color: #FFFFFF; font-family: Segoe UI Light; font-size: small; color: #000000; line-height: 1.1em; overflow: hidden; -ms-user-select: none; user-select: none; } #grid { width: 100%; height: 100%; border: 1px solid #000000; border-top: 4px solid #000000; box-sizing: border-box; display: -ms-grid; -ms-grid-columns: 52px 1fr 28px 28px; -ms-grid-rows: 32px auto auto 1fr; } .headerImg { font-family: 'Segoe UI Symbol'; font-size: 18px; cursor: pointer; height: 26px; padding-top: 4px; padding-left: 2px; padding-right: 2px; } .headerImg:hover { background-position: -28px 0; } #f12Logo { background-image: url("../common/images/f12Logo.png"); background-position: center -3px; background-repeat: no-repeat; background-size: 32px 32px; display: inline-block; background-color: #000000; -ms-grid-column: 1; -ms-grid-row: 1; } #headerTitle { font-size: large; margin-left: 8px; margin-top: 6px; cursor: default; user-select: none; -ms-grid-column: 2; -ms-grid-row: 1; } #refreshCmd { -ms-grid-column: 3; -ms-grid-row: 1; } #closeCmd { -ms-grid-column: 4; -ms-grid-row: 1; font-size: 22px; } #targets { -ms-grid-column: 1; -ms-grid-column-span: 4; -ms-grid-row: 4; overflow-y: auto; margin: 5px 3px 0 6px; } .target { margin: 4px; display: inline-block; width: 192px; cursor: pointer; position: relative; } .preview { height: 108px; width: 192px; background-color: #606060; } .title { background-color: #1E1E1E; position: absolute; bottom: 0; left: 0; color: #FFFFFF; padding-left: 2px; height: 20px; width: 190px; transition: height 0.3s ease; }  F12 Chooser
var F12;(function(F12){var Tools;(function(Tools){var Chooser;(function(Chooser_1){"use strict";var ChooserResource;(function(ChooserResource){ChooserResource[ChooserResource["SelectTargetToDebug"]=432]="SelectTargetToDebug";ChooserResource[ChooserResource["RefreshTarget"]=433]="RefreshTarget";ChooserResource[ChooserResource["Close"]=434]="Close"})(ChooserResource||(ChooserResource={}));var Chooser=function(){function Chooser(){var _this=this;this._pluginAPI=window.external;this._ieRootPath=this._pluginAPI.getIERootPath();if(!/\\$/.test(this._ieRootPath)){this._ieRootPath+="\\"}this._ieRootUrl=encodeURI(this._ieRootPath);this._hasUserUpdatedUrl=false;this._closeButton=document.getElementById("closeCmd");this._refreshButton=document.getElementById("refreshCmd");document.getElementById("headerTitle").innerText=this._pluginAPI.getResourceString(ChooserResource.SelectTargetToDebug);this._closeButton.innerText=String.fromCharCode(57569);this._closeButton.setAttribute("title",this._pluginAPI.getResourceString(ChooserResource.Close));this._closeButton.setAttribute("aria-label",this._pluginAPI.getResourceString(ChooserResource.Close));this._closeButton.addEventListener("click",function(){_this._pluginAPI.cancel()});this._closeButton.addEventListener("keydown",function(e){if(e.keyCode===Common.KeyCodes.Enter||e.keyCode===Common.KeyCodes.Space){_this._pluginAPI.cancel()}});this._refreshButton.innerText=String.fromCharCode(57586);this._refreshButton.setAttribute("title",this._pluginAPI.getResourceString(ChooserResource.RefreshTarget));this._refreshButton.setAttribute("aria-label",this._pluginAPI.getResourceString(ChooserResource.RefreshTarget));this._refreshButton.addEventListener("click",function(){_this.loadInstances()});this._refreshButton.addEventListener("keydown",function(e){if(e.keyCode===Common.KeyCodes.Enter||e.keyCode===Common.KeyCodes.Space){_this.loadInstances()}});document.addEventListener("keydown",function(e){if(e.keyCode===Common.KeyCodes.F5){_this.loadInstances()}});window.setInterval(function(){var titles=document.querySelectorAll(".title");if(titles){var randIndex=Math.round(Math.random()*titles.length);var title=titles[randIndex];if(title){_this.animateTitleStart(title);window.setTimeout(function(){if(title){_this.animateTitleEnd(title)}},2600)}}},3e3)}Chooser.prototype.checkLaunchParameters=function(){this.loadInstances()};Chooser.prototype.loadInstances=function(){var _this=this;this.removeAllTargets();var instancesArray=this._pluginAPI.getWebInstances();instancesArray.forEach(function(instance,index){instance.index=index;instance.url=Chooser.urlForInstance(instance)});instancesArray.sort(function(a,b){var urlA=_this.createShortenedUrlText(Chooser.urlForInstance(a));var urlB=_this.createShortenedUrlText(Chooser.urlForInstance(b));return urlA===urlB?0:urlA-1&&indexOfQuestionMark>-1){index=Math.min(indexOfHash,indexOfQuestionMark)}else if(indexOfHash>-1){index=indexOfHash}else if(indexOfQuestionMark>-1){index=indexOfQuestionMark}if(index>-1){shortenedText=shortenedText.substring(0,index)}index=shortenedText.lastIndexOf("/");while(index!==-1&&index===shortenedText.length-1){shortenedText=shortenedText.substring(0,shortenedText.length-1);index=shortenedText.lastIndexOf("/")}if(index>-1){shortenedText=shortenedText.substring(index+1)}return shortenedText};return Chooser}();Chooser_1.Chooser=Chooser})(Chooser=Tools.Chooser||(Tools.Chooser={}))})(Tools=F12.Tools||(F12.Tools={}))})(F12||(F12={})); //! Copyright (C) Microsoft. All rights reserved. var F12;(function(n){var t;(function(n){var t;(function(n){"use strict";var t=function(){function t(){}return t.prototype.main=function(){var t=new n.Chooser;t.checkLaunchParameters()},t}();n.ChooserApp=t;n.app=new t})(t=n.Chooser||(n.Chooser={}))})(t=n.Tools||(n.Tools={}))})(F12||(F12={})) //# sourceMappingURL=app.min.js.map (function(n,t){"use strict";function i(n,i,r){for(var h=Object.keys(i),f,o=0,c=h.length;o"),u}function e(t,i){return f(n,t,i)}function o(n){var f,u,t,i;return typeof n=="string"&&(f=n,n=function(){return PluginUtilities.Utilities.getMember(f)}),t=r.uninitialized,{setName:function(n){u=n},get:function(){switch(t){case r.initialized:return i;case r.uninitialized:t=r.working;try{msWriteProfilerMark("PluginUtilities.Namespace._lazy:"+u+",StartTM");i=n()}finally{msWriteProfilerMark("PluginUtilities.Namespace._lazy:"+u+",StopTM");t=r.uninitialized}return n=null,t=r.initialized,i;case r.working:throw"Illegal: reentrancy on initialization";default:throw"Illegal"}},set:function(n){switch(t){case r.working:throw"Illegal: reentrancy on initialization";default:t=r.initialized;i=n}},enumerable:!0,configurable:!0}}var u,r;n[t]||(n[t]=Object.create(Object.prototype));u=n[t];u.Namespace||(u.Namespace=Object.create(Object.prototype));r={uninitialized:1,working:2,initialized:3};Object.defineProperties(u.Namespace,{defineWithParent:{value:f,writable:!0,enumerable:!0,configurable:!0},define:{value:e,writable:!0,enumerable:!0,configurable:!0},_lazy:{value:o,writable:!0,enumerable:!0,configurable:!0}})}("PluginUtilities"),function(n){function t(t,r,u){return t=t||function(){},n.Utilities.markSupportedForProcessing(t),r&&i(t.prototype,r),u&&i(t,u),t}function r(r,u,f,e){if(r){u=u||function(){};var o=r.prototype;return u.prototype=Object.create(o),n.Utilities.markSupportedForProcessing(u),Object.defineProperty(u.prototype,"constructor",{value:u,writable:!0,configurable:!0,enumerable:!0}),f&&i(u.prototype,f),e&&i(u,e),u}return t(u,f,e)}function u(n){n=n||function(){};for(var t=1,r=arguments.length;t=s.min;)t instanceof k&&(u(t,!1),r++),t=t._nextJob;for(r===0&&(n+=" None\n"),n+="Drain requests:\n",i=0,e=o.length;if&&(f=n,rt=!0))}function hr(n,t){for(var r=o.length,i=0;if;)lt=n,cr(),t=!0,n=bi();return t}function vt(n){return n>=s.aboveNormal+1?u.HIGH:n>=s.belowNormal?u.NORMAL:u.IDLE}function lr(n,t){return ut[n]>=ut[t]}function ar(n,t){return ut[n]>ut[t]}function gi(n){switch(n){case u.HIGH:return!1;case u.NORMAL:return u.isTaskScheduledAtPriorityOrHigher(u.HIGH);case u.IDLE:return u.isTaskScheduledAtPriorityOrHigher(u.NORMAL)}}function vr(n,t){var i=h(t);i.priority>f&&(f=i.priority,rt=!0);i._insertJobAfter(n)}function ui(n,t){var i=h(t);i.priority>f&&(f=i.priority,rt=!0);i._nextMarker._insertJobBefore(n)}function fi(n){return n=n|0,n=Math.max(n,ur),Math.min(n,pi)}function h(n){return n=fi(n),ct[-1*(n-pi)]}function yr(n){var r,c,t,b,y,a,d;yt=!0;p("timeslice","StartTM");c=!0;rt=!1;try{for(var g=ei(),nt=g+wi,i,l=!1,v=!1,w=function(){return(v=!1,rt)?!0:gi(vt(f))?!0:!o.length?ei()>nt?(v=!0,!0):!1:!1};f>=s.min&&!w()&&!l;){r=!1;t=h(f)._nextJob;do lt=t.priority,t instanceof k?(i!==t.priority&&(+i===i&&p("priority","StopTM",h(i).name),p("priority","StartTM",h(t.priority).name),i=t.priority),r=!0,c=!1,st=t,e(st,"job-running","StartTM",h(lt).name),t._execute(w),e(st,"job-running","StopTM",h(lt).name),st=null,c=!0):(b=vt(f),f=t.priority,r=di(),y=vt(f),ar(b,y)&&(!at||u.isTaskScheduledAtPriorityOrHigher(y))&&(l=!0)),t=t._nextJob;while(t&&!r&&!l&&!gi(vt(f)));rt=!1}}finally{for(st=null,c||(e(t,"job-error","info"),e(t,"job-running","StopTM",h(lt).name),t.cancel()),+i===i&&p("priority","StopTM",h(i).name),a=!1;f>=s.min&&!a;){r=!1;t=h(f)._nextJob;do t instanceof k?a=!0:(f=t.priority,r=di()),t=t._nextJob;while(t&&!r&&!a)}d=c?v?"timeslice exhausted":f=s.min&&hi();p("yielding","info",d);p("timeslice","StopTM")}}function hi(n){var t,i,r;(+n!==n&&(n=f),t=vt(n),yt)||bt&&(!at||lr(bt,t))||(i=++oi,r=function(){si")];var bt=null,yt,lt,st=null,at=!!(n.MSApp&&n.MSApp.execAtPriority),o=[],rt,wi=30,f=s.min;ct.reduce(function(n,t){return n&&(n._insertJobAfter(t),n._insertMarkerAfter(t)),t});kt={execAsyncAtPriority:function(n,t){t===u.HIGH&&setTimeout(n,0);setImmediate(n)},execAtPriority:function(n){return n()},getCurrentPriority:function(){return kt.NORMAL},isTaskScheduledAtPriorityOrHigher:function(){return!1},HIGH:"high",NORMAL:"normal",IDLE:"idle"};u=at?n.MSApp:kt;ut={};ut[u.IDLE]=1;ut[u.NORMAL]=2;ut[u.HIGH]=3;ei=n.performance&&performance.now&&performance.now.bind(performance)||Date.now.bind(Date);oi=0;si=0;PluginUtilities.Namespace.define("PluginUtilities.Utilities.Scheduler",{Priority:s,schedule:nr,createOwnerToken:br,execHigh:wr,requestDrain:pr,currentPriority:{get:kr},schedulePromiseHigh:pt(s.high),schedulePromiseAboveNormal:pt(s.aboveNormal),schedulePromiseNormal:pt(s.normal),schedulePromiseBelowNormal:pt(s.belowNormal),schedulePromiseIdle:pt(s.idle),retrieveState:er,_JobNode:k,_JobInfo:ci,_OwnerToken:li,_dumpList:fr,_isEmpty:{get:or},_usingWwaScheduler:{get:function(){return at},set:function(t){at=t;u=at?n.MSApp:kt}},_MSApp:{get:function(){return u},set:function(n){u=n}},_TIME_SLICE:wi})}(this),function(n,t){function i(n,t,i){u.schedule(function(){n(t)},i,null,"Microsoft.Plugin.Utilities.xhr")}function r(){}var u=PluginUtilities.Utilities.Scheduler;Microsoft.Plugin.Utilities.xhr=function(n){var f;return new Microsoft.Plugin.Promise(function(e,o,s){var h=u.currentPriority;f=new XMLHttpRequest;f.onreadystatechange=function(){if(f._canceled){f.onreadystatechange=r;return}f.readyState===4?(f.status>=200&&f.status<300?i(e,f,h):i(o,f,h),f.onreadystatechange=r):i(s,f,h)};f.open(n.type||"GET",n.url,!0,n.user,n.password);f.responseType=n.responseType||"";Object.keys(n.headers||{}).forEach(function(t){f.setRequestHeader(t,n.headers[t])});n.customRequestInitializer&&n.customRequestInitializer(f);n.data===t?f.send():f.send(n.data)},function(){f.onreadystatechange=r;f._canceled=!0;f.abort()})}}(this) //# sourceMappingURL=promise.min.js.map //! Copyright (C) Microsoft. All rights reserved. var F12;(function(n){var t;(function(n){var t;(function(n){"use strict";var t=function(){function n(){}return n.isTrue=function(t,i){t||(i=i?"Internal error. "+i:"Internal error. Unexpectedly false.",n.fail(i))},n.isFalse=function(t,i){t&&(i=i?"Internal error. "+i:"Internal error. Unexpectedly true.",n.fail(i))},n.isNull=function(t,i){t!==null&&(i=i?"Internal error. "+i:"Internal error. Unexpectedly not null.",i+=" '"+t+"'",n.fail(i))},n.isUndefined=function(t,i){undefined!==void 0&&(i="Internal error. Unexpectedly undefined has been redefined.",i+=" '"+undefined+"'",n.fail(i));t!==undefined&&(i=i?"Internal error. "+i:"Internal error. Unexpectedly not undefined.",i+=" '"+t+"'",n.fail(i))},n.hasValue=function(t,i){undefined!==void 0&&(i="Internal error. Unexpectedly undefined has been redefined.",i+=" '"+undefined+"'",n.fail(i));(t===null||t===undefined)&&(i=i?"Internal error. "+i:"Internal error. Unexpectedly "+(t===null?"null":"undefined")+".",n.fail(i))},n.areEqual=function(t,i,r){t!==i&&(r=r?"Internal error. "+r:"Internal error. Unexpectedly not equal.",r+=" '"+t+"' !== '"+i+"'.",n.fail(r))},n.areNotEqual=function(t,i,r){t===i&&(r=r?"Internal error. "+r:"Internal error. Unexpectedly equal.",r+=" '"+t+"' === '"+i+"'.",n.fail(r))},n.throws=function(t,i){try{t();i=i?"Internal error. "+i:"Internal error. Unexpectedly didn't throw.";n.fail(i)}catch(r){return}},n.fail=function(t){n.fail_helper(t,!0)},n.reportWatson=function(t){n.fail_helper(t,!1)},n.failDebugOnly=function(t){isDebugBuild&&n.fail(t)},n.fail_helper=function(n,t){var f=new Error((n||"Assert failed.")+"\n"),r,u;try{throw f}catch(i){if(r=typeof Common!="undefined"&&Common&&Common.ErrorHandling,u=typeof Microsoft!="undefined"&&Microsoft&&Microsoft.Plugin&&Microsoft.Plugin.F12&&Microsoft.Plugin.F12.SelfTest,r&&u&&!Microsoft.Plugin.F12.SelfTest.selfTestEnabled&&Common.ErrorHandling.reportErrorGivenStack(i),isDebugBuild||t){i.stack&&(i.description=i.stack);throw i}}},n}();n.Assert=t})(t=n.Utility||(n.Utility={}))})(t=n.Tools||(n.Tools={}))})(F12||(F12={})) //# sourceMappingURL=assert.min.js.map //! Copyright (C) Microsoft. All rights reserved. var Common;(function(n){"use strict";var t=function(){function t(){}return t.getCanonicalMediaType=function(n){return(this.initialize(),!n)?n:(n=this.normalizeMediaType(n),this.getCanonicalMediaTypeCommon(n))},t.isEditableMediaType=function(n){return(this.initialize(),!n)?!1:(n=this.normalizeMediaType(n),this.isEditableMediaTypeCommon(n))},t.mediaTypeSupportsFindRefs=function(n){return(this.initialize(),!n)?!1:(n=this.normalizeMediaType(n),this.mediaTypeSupportsFindRefsCommon(n))},t.isJMCEnabledForMediaType=function(n){return(this.initialize(),!n)?!1:(n=this.normalizeMediaType(n),this.isJMCEnabledForMediaTypeCommon(n))},t.getMediaTypeForFileExtension=function(n,t){return(this.initialize(),n)?(n=this.normalizeFileExtension(n),this.getMediaTypeForFileExtensionCommon(n,t)):this.getCanonicalFallbackMediaType(t)},t.getSortedMediaTypes=function(n){var o=this,f,i,r,u,s,e,t;if(this.initialize(),!n)return[];if(f=new Set,n=n.filter(function(n){return!n||f.has(n)?!1:(f.add(n),!0)}),i=n.length,i<=0)return[];for(r=new Array(i),u=new Array(i),t=0;tr?1:n-t}),e=new Array(i),t=0;t0&&this.registerAlternateMediaTypesCommon(n,t.alternates),t.extensions&&t.extensions.length>0&&this.registerMediaTypeFileExtensionsCommon(n,t.extensions),"editable"in t&&this.setEditableMediaTypeCommon(n,t.editable),"canFindRefs"in t&&this.setMediaTypeCanFindRefsCommon(n,t.canFindRefs),"jmcEnabled"in t&&this.setJMCEnabledMediaTypeCommon(n,t.jmcEnabled))},t.registerAlternateMediaTypesCommon=function(n,t){var i=this;t.forEach(function(t){t&&(t=i.normalizeMediaType(t),i.registerAlternateMediaTypeCommon(n,t))})},t.registerAlternateMediaTypeCommon=function(n,t){if(n!==t){for(var i=this._canonicalMap.get(n);i;)F12.Tools.Utility.Assert.areNotEqual(i,t,"Invalid attempt to add a cyclical reference to a media type."),i=this._canonicalMap.get(i);this._canonicalMap.set(t,n)}},t.registerMediaTypeFileExtensionsCommon=function(n,t){var i=this;t.forEach(function(t){t&&(t=i.normalizeFileExtension(t),i.registerMediaTypeFileExtensionCommon(n,t))})},t.registerMediaTypeFileExtensionCommon=function(n,t){this._extensionMap.set(t,n)},t.setEditableMediaTypeCommon=function(n,t){t?this._editableMediaTypes.add(n):this._editableMediaTypes.delete(n)},t.setMediaTypeCanFindRefsCommon=function(n,t){t?this._findRefsMediaTypes.add(n):this._findRefsMediaTypes.delete(n)},t.setJMCEnabledMediaTypeCommon=function(n,t){t?this._jmcMediaTypes.add(n):this._jmcMediaTypes.delete(n)},t.normalizeMediaType=function(n){n=n.trim();n=n.toLowerCase();var t=n.indexOf(";");return t>-1&&(n=n.substr(0,t)),n},t.normalizeFileExtension=function(n){return n=n.trim(),n=n.toLowerCase(),n.charAt(0)!=="."&&(n="."+n),n},t.getRank=function(n){switch(n){case"text/plain":return 3;case"text/javascript":case"text/html":case"text/css":case"text/xml":return 2;case"text/typescript":case"text/coffeescript":case"text/x-csharp":case"text/less":case"text/scss":return 1;default:return 0}},t.getCanonicalFallbackMediaType=function(n){return n?(n=this.normalizeMediaType(n),this.getCanonicalMediaTypeCommon(n)):"text/plain"},t._initialized=!1,t._defaultMediaTypes={"text/html":{alternates:["text/x-jshtm","text/x.jshtm"],extensions:[".html",".htm"],jmcEnabled:!0},"text/xml":{alternates:["application/xml",],extensions:[".xml",".xsl",".svg"]},"text/javascript":{alternates:["text/javascript1.0","text/javascript1.1","text/javascript1.2","text/javascript1.3","text/javascript1.4","text/javascript1.5","text/jscript","text/livescript","text/x-javascript","text/x-ecmascript","text/x.javascript","text/x.ecmascript","application/javascript","application/ecmascript","application/x-javascript","application/x-ecmascript","application/x.javascript","application/x.ecmascript"],extensions:[".js"],jmcEnabled:!0,canFindRefs:!0},"text/typescript":{alternates:["video/vnd.dlna.mpeg-tts","text/x.typescript","text/vnd.ms.typescript","application/typescript","application/x.typescript","application/vnd.ms.typescript"],extensions:[".ts",".str"],jmcEnabled:!0,canFindRefs:!0},"text/coffeescript":{alternates:["text/x-coffeescript","text/x.coffeescript","application/coffeescript","application/x-coffeescript","application/x.coffeescript"],extensions:[".coffee"],jmcEnabled:!0},"text/x-csharp":{alternates:[],extensions:[".cs"],jmcEnabled:!0},"text/css":{alternates:[],extensions:[".css"]},"text/less":{alternates:["text/x-less","text/x.less"],extensions:[".less"]},"text/scss":{alternates:["text/x-scss","text/x.scss"],extensions:[".sass",".scss"]}},t._extensionMap=new Map,t._canonicalMap=new Map,t._editableMediaTypes=new Set,t._findRefsMediaTypes=new Set,t._jmcMediaTypes=new Set,t}();n.MediaTypeManager=t})(Common||(Common={})) //# sourceMappingURL=MediaTypeManager.min.js.map //! Copyright (C) Microsoft. All rights reserved. var Common;(function(n){var t;(function(n){"use strict";function f(){return u(0,!1)}function u(n,u){if(u===void 0&&(u=!1),n in i)return i[n];var e=u,f=t.F12&&t.F12.getRegEntryForF12("FeatureF12"+r[n]);return f!==null&&f!==undefined&&f.length>0&&(e=f.toLowerCase()==="true"&&t.F12.isTargetEdge),i[n]=e,e}function e(n,u,f){f===void 0&&(f=!1);i[n]=u;f&&t.F12&&t.F12.setRegEntryForF12("FeatureF12"+r[n],String(u))}var t=Microsoft.Plugin,i=Object.create(null),r;(function(n){n[n.EditOnIdle=0]="EditOnIdle";n[n.ObjectMutationBreakpoint=1]="ObjectMutationBreakpoint"})(n.Feature||(n.Feature={}));r=n.Feature;n.isEditOnIdleEnabled=f;n.isEnabled=u;n.setEnabledState=e})(t=n.FeatureAvailability||(n.FeatureAvailability={}))})(Common||(Common={})) //# sourceMappingURL=featureAvailability.min.js.map //! Copyright (C) Microsoft. All rights reserved. var __extends=this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);r.prototype=t.prototype;n.prototype=new r},Common;(function(n){"use strict";var t=function(){function n(){this._packetCount=0;this._data=""}return n.splitMessage=function(t){for(var u=t.length,f=Math.max(1,Math.ceil(u/n.MAX_MESSAGE_LENGTH)),e=[],i=0;i=1?(this._data+=t.data||"",this._packetCount++,this._packetCount===t.n?(i=this._data,this._packetCount=0,this._data="",n.data=i,n.handled=!1):n.handled=!0):n.handled=!0},n.MAX_MESSAGE_LENGTH=32768,n}(),i;n.MessageThrottle=t;i=function(n){function i(t){n.call(this);this._messageHandlers=[];this._port=t}return __extends(i,n),Object.defineProperty(i.prototype,"name",{get:function(){return this._port.name},enumerable:!0,configurable:!0}),i.prototype.initialize=function(){this._port.addEventListener("message",this.onmessage.bind(this))},i.prototype.postMessage=function(n){for(var r=t.splitMessage(n),f,i=0,u=r.length;i/),t?new $mList("",document.createElement(t[1])):(i=document.querySelectorAll(n),new $mList(n,i))):new $mList("",n)}var MonacoDefinitions,ControlTemplates,Proxy,$mList,$mNode,DataTreeView,F12,__rpcLog,__extends,Common;(function(n){var t;(function(n){var t;(function(n){"use strict";var t=function(){function n(){}return n.isTrue=function(t,i){t||(i=i?"Internal error. "+i:"Internal error. Unexpectedly false.",n.fail(i))},n.isFalse=function(t,i){t&&(i=i?"Internal error. "+i:"Internal error. Unexpectedly true.",n.fail(i))},n.isNull=function(t,i){t!==null&&(i=i?"Internal error. "+i:"Internal error. Unexpectedly not null.",i+=" '"+t+"'",n.fail(i))},n.isUndefined=function(t,i){undefined!==void 0&&(i="Internal error. Unexpectedly undefined has been redefined.",i+=" '"+undefined+"'",n.fail(i));t!==undefined&&(i=i?"Internal error. "+i:"Internal error. Unexpectedly not undefined.",i+=" '"+t+"'",n.fail(i))},n.hasValue=function(t,i){undefined!==void 0&&(i="Internal error. Unexpectedly undefined has been redefined.",i+=" '"+undefined+"'",n.fail(i));(t===null||t===undefined)&&(i=i?"Internal error. "+i:"Internal error. Unexpectedly "+(t===null?"null":"undefined")+".",n.fail(i))},n.areEqual=function(t,i,r){t!==i&&(r=r?"Internal error. "+r:"Internal error. Unexpectedly not equal.",r+=" '"+t+"' !== '"+i+"'.",n.fail(r))},n.areNotEqual=function(t,i,r){t===i&&(r=r?"Internal error. "+r:"Internal error. Unexpectedly equal.",r+=" '"+t+"' === '"+i+"'.",n.fail(r))},n.throws=function(t,i){try{t();i=i?"Internal error. "+i:"Internal error. Unexpectedly didn't throw.";n.fail(i)}catch(r){return}},n.fail=function(t){n.fail_helper(t,!0)},n.reportWatson=function(t){n.fail_helper(t,!1)},n.failDebugOnly=function(t){isDebugBuild&&n.fail(t)},n.fail_helper=function(n,t){var f=new Error((n||"Assert failed.")+"\n"),r,u;try{throw f}catch(i){if(r=typeof Common!="undefined"&&Common&&Common.ErrorHandling,u=typeof Microsoft!="undefined"&&Microsoft&&Microsoft.Plugin&&Microsoft.Plugin.F12&&Microsoft.Plugin.F12.SelfTest,r&&u&&!Microsoft.Plugin.F12.SelfTest.selfTestEnabled&&Common.ErrorHandling.reportErrorGivenStack(i),isDebugBuild||t){i.stack&&(i.description=i.stack);throw i}}},n}();n.Assert=t})(t=n.Utility||(n.Utility={}))})(t=n.Tools||(n.Tools={}))})(F12||(F12={})); //! Copyright (C) Microsoft. All rights reserved. (function(n){"use strict";var r=function(){function n(){}return n.UNKNOWN=0,n.TEXTAREA=1,n.GUTTER_GLYPH_MARGIN=2,n.GUTTER_LINE_NUMBERS=3,n.GUTTER_LINE_DECORATIONS=4,n.GUTTER_VIEW_ZONE=5,n.CONTENT_TEXT=6,n.CONTENT_EMPTY=7,n.CONTENT_VIEW_ZONE=8,n.CONTENT_WIDGET=9,n.OVERVIEW_RULER=10,n.SCROLLBAR=11,n.OVERLAY_WIDGET=12,n}(),t,i;n.MouseTargetType=r;t=function(){function n(){}return n.TextDefined=0,n.LF=1,n.CRLF=2,n}();n.EndOfLinePreference=t;i=function(){function n(){}return n.ModelContentChanged="contentChanged",n.MouseMove="mousemove",n}();n.EventType=i})(MonacoDefinitions||(MonacoDefinitions={})); //! Copyright (C) Microsoft. All rights reserved. (function(n){var t;(function(n){"use strict";function f(){return u(0,!1)}function u(n,u){if(u===void 0&&(u=!1),n in i)return i[n];var e=u,f=t.F12&&t.F12.getRegEntryForF12("FeatureF12"+r[n]);return f!==null&&f!==undefined&&f.length>0&&(e=f.toLowerCase()==="true"&&t.F12.isTargetEdge),i[n]=e,e}function e(n,u,f){f===void 0&&(f=!1);i[n]=u;f&&t.F12&&t.F12.setRegEntryForF12("FeatureF12"+r[n],String(u))}var t=Microsoft.Plugin,i=Object.create(null),r;(function(n){n[n.EditOnIdle=0]="EditOnIdle";n[n.ObjectMutationBreakpoint=1]="ObjectMutationBreakpoint"})(n.Feature||(n.Feature={}));r=n.Feature;n.isEditOnIdleEnabled=f;n.isEnabled=u;n.setEnabledState=e})(t=n.FeatureAvailability||(n.FeatureAvailability={}))})(Common||(Common={})); //! Copyright (C) Microsoft. All rights reserved. (function(n){var t;(function(n){"use strict";var t=function(){function n(){}return n.encode=function(t){if(t<64&&t>=0)return n.EncodedValues.charAt(t);throw TypeError(t+": not a 64 based value")},n.decodeChar=function(t){if(t.length===1)return n.EncodedValues.indexOf(t);throw TypeError("'"+t+"' must have length 1")},n.EncodedValues="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n}(),i=function(){function n(){}return n.encode=function(i){var r,u;if(i===null||typeof i===n.UndefinedType)return null;i=i<0?(-i<<1)+1:i<<1;r="";do u=i&31,i=i>>5,i>0&&(u=u|32),r=r+t.encode(u);while(i>0);return r},n.decode=function(n,i){for(var u,f=0,e=!1,o=0,r=i;r>1&15}else f=f|(u&31)<0},enumerable:!0,configurable:!0}),r.supportsMimeType=function(n){return n?n.toLowerCase()==="text/css":!1},r.prototype.updateOptions=function(n){this.options.prettyPrint=n.prettyPrint;this.options.sourcemapSupport=n.sourcemapSupport},r.prototype.setDocument=function(n,r,u,f,e){return this.sourceText=new t.PositionOffsetMapper(n),this.options.prettyPrint&&e&&(this._prettyPrintPromise=this.startPrettyPrinting()),i.Promise.as(null)},r.prototype.getFormattedText=function(){return this.options.prettyPrint?(this._prettyPrintPromise=this._prettyPrintPromise||this.startPrettyPrinting(),this._prettyPrintPromise):i.Promise.as(this.sourceText)},r.prototype.startPrettyPrinting=function(){var r=this;return new i.Promise(function(i){window.setImmediate(function(){var f=t.FormatServiceHelper.getWorkerServices(new n.Uri("css/CssFormatWorker.js"),r._services),u=new Worker(f.path);u.onmessage=function(n){var f=n.data,e=new t.OffsetTextMapping(f.text,f.mappings,r.sourceText.text);u.terminate();i(e);r._prettyPrintPromise=null};u.onerror=function(n){u.terminate();r._prettyPrintPromise=null;throw new Error(n)};u.postMessage({services:f.services,text:r.sourceText.text})})})},r}();t.CssFormatter=r})(t=n.FormatService||(n.FormatService={}))})(Common||(Common={})); //! Copyright (C) Microsoft. All rights reserved. (function(n){var t;(function(t){"use strict";var i;(function(t){function i(i,r){r===void 0&&(r=t.DefaultServices);var u=n.Uri.getCurrent(),e=new n.Uri(u,r.commonRoot),o=new n.Uri(u,r.editorRoot),f=new n.Uri(u,r.formatterRoot);return i=new n.Uri(f,i),{path:u.makeRelative(i).toString(),services:{commonRoot:i.makeRelative(e).toString(),editorRoot:i.makeRelative(o).toString(),formatterRoot:i.makeRelative(f).toString()}}}t.DefaultServices={commonRoot:"../common/",editorRoot:"../common/editor/vs/",formatterRoot:"../common/formatter/"};t.getWorkerServices=i})(i=t.FormatServiceHelper||(t.FormatServiceHelper={}))})(t=n.FormatService||(n.FormatService={}))})(Common||(Common={})); //! Copyright (C) Microsoft. All rights reserved. (function(n){var t;(function(n){"use strict";var u=function(){function t(n,i,r,u,f){F12.Tools.Utility.Assert.isTrue(n===2||n===1,"Invalid sourceType");F12.Tools.Utility.Assert.hasValue(u&&u.length,"sourceSpans are required");this.sourceType=n;this.text=i;this._originalText=r;this._sourceSpans=u;this.errorMessage=f||r.errorMessage;this._formattedOffsets=t.calculateLineOffsets(i)}return t.calculateLineOffsets=function(n){var r=0,i=[],t;if(i[r]=0,n)for(t=0;t=e&&(i=e-1),r=0;r=i){u=this._sourceSpans[r];break}return F12.Tools.Utility.Assert.isTrue(rt)break;return i--,new n.Position(i,t-this._formattedOffsets[i],0)},t.prototype.getOriginalOffset=function(t){var i,r,u;if(this._originalText.text.length===0)return 0;for(i=new n.Position(t.line,t.column,t.file),r=0;r=0;t--)if(i>=this.mappings[t].mappedOffset)return r=i-this.mappings[t].mappedOffset,this._originalTextMapper.offsetToPosition(this.mappings[t].originalOffset+r);return this._mappedTextMapper.offsetToPosition(0)},n.prototype.getMappedPosition=function(n){for(var r,i=this._originalTextMapper.positionToOffset(n),t=this.mappings.length-1;t>=0;t--)if(i>=this.mappings[t].originalOffset)return r=i-this.mappings[t].originalOffset,this._mappedTextMapper.offsetToPosition(this.mappings[t].mappedOffset+r);return this._mappedTextMapper.offsetToPosition(0)},n.prototype.positionToOffset=function(n){return this._mappedTextMapper.positionToOffset(n)},n.prototype.offsetToPosition=function(n){return this._mappedTextMapper.offsetToPosition(n)},n.prototype.getOffsetMappings=function(){return this.mappings},n}();n.OffsetTextMapping=r;t=function(){function n(n){this.text=n||"";this._newlineOffsets=[0];for(var t;;)if(t=n.indexOf("\n",t+1),t>-1)this._newlineOffsets.push(t+1);else break}return n.prototype.positionToOffset=function(n){if(!n)return 0;var t=n.line;return t>=this._newlineOffsets.length&&(t=Math.max(0,this._newlineOffsets.length-1)),this._newlineOffsets[t]+n.column},n.prototype.offsetToPosition=function(n){n=Math.max(n,0);for(var t=this._newlineOffsets.length-1;t>=0;t--)if(this._newlineOffsets[t]<=n)return{line:t,column:n-this._newlineOffsets[t],file:0};return{line:0,column:n,file:0}},n.prototype.getOriginalPosition=function(n){return n},n.prototype.getMappedPosition=function(n){return n},n.prototype.getOffsetMappings=function(){return[]},n}();n.PositionOffsetMapper=t})(t=n.FormatService||(n.FormatService={}))})(Common||(Common={})); //! Copyright (C) Microsoft. All rights reserved. (function(n){var t;(function(t){"use strict";var i=function(){function i(n){n===void 0&&(n=t.FormatServiceHelper.DefaultServices);this._options=null;this._sourceText=null;this._sourceInfo=null;this._options=new t.FormatterOptions;this._canBePrettyPrinted=!0;this._prettyPrintPromise=null}return Object.defineProperty(i.prototype,"canFormat",{get:function(){return this._canBePrettyPrinted},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"sourceText",{get:function(){return this._sourceText},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"options",{get:function(){return this._options},enumerable:!0,configurable:!0}),i.prototype.updateOptions=function(n){this._options.updateAllOptions(n)},i.prototype.setDocument=function(n,i,r,u,f){var e=this;return F12.Tools.Utility.Assert.hasValue(n,"source does not have a value."),new Microsoft.Plugin.Promise(function(i){e._sourceText=new t.UnmappedTextMapping(n);e._sourceInfo={name:"",mimeType:r,sourceType:2};e._canBePrettyPrinted=n.length>0&&!/^[\s;]+$/.test(n);e._prettyPrintPromise&&(e._prettyPrintPromise.cancel(),e._prettyPrintPromise=null);f&&e._canBePrettyPrinted&&e.formatSource(e._options.forceChunking);i(e._sourceInfo)})},i.prototype.getFormattedText=function(n){F12.Tools.Utility.Assert.isTrue(!!this.sourceText,"Must call setDocument first");n=n||this._options;var t=n.prettyPrint&&this._canBePrettyPrinted?2:0;return t===2?(this._prettyPrintPromise||this.formatSource(n.forceChunking),F12.Tools.Utility.Assert.hasValue(this._prettyPrintPromise,"No pretty print promise."),this._prettyPrintPromise):Microsoft.Plugin.Promise.as(this._sourceText)},i.prototype.formatSource=function(i){var r=this,u=null,f;(F12.Tools.Utility.Assert.isTrue(this._canBePrettyPrinted,"Source cannot be pretty printed."),this._prettyPrintPromise)||(f=function(){u&&u.terminate()},this._prettyPrintPromise=new Microsoft.Plugin.Promise(function(e){window.setImmediate(function(){var c=t.FormatServiceHelper.getWorkerServices(new n.Uri("formatWorker.js"),r._services),s,h,o;u=new Worker(c.path);s=null;u.onerror=function(){r._canBePrettyPrinted=!1;s=n.ToolWindowHelpers.loadString("FormatterInternalError");f();e(new t.UnmappedTextMapping(r._sourceText.text,s));return};h=[];u.onmessage=function(i){var c,y,o,v,l,a,u,p;if(i.error&&F12.Tools.Utility.Assert.failDebugOnly(i.errorMessage),typeof i.data.generatedSourceSpanIndex!="undefined"){for(c=i.data,h[c.generatedSourceSpanIndex]||(h[c.generatedSourceSpanIndex]=[]),y=h[c.generatedSourceSpanIndex],u=0;u1?"FormatterEmbededJSInternalError":"FormatterInternalError"),o.errorMessage.length>0&&(s+="\n",s+=o.errorMessage));v=new t.FormattedTextMapping(2,o.formattedText,r._sourceText,a,s)}f();e(v||r.sourceText)};o=new t.WorkerSendMessage;o.source=r._sourceText.text;o.mimeType=r._sourceInfo.mimeType;o.commonUrl=c.services.commonRoot;o.loader=c.services.editorRoot;o.typescriptServices=c.services.editorRoot+"languages/typescript/lib/";o.forceResponseChunking=i;u.postMessage(o)})},f))},i}();t.ScriptFormatter=i})(t=n.FormatService||(n.FormatService={}))})(Common||(Common={})); //! Copyright (C) Microsoft. All rights reserved. (function(n){var t;(function(n){"use strict";var t=function(){function n(){this._prettyPrint=!1;this._sourcemapSupport=!1}return Object.defineProperty(n.prototype,"sourcemapSupport",{get:function(){return this._sourcemapSupport},set:function(n){this._sourcemapSupport=n},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"prettyPrint",{get:function(){return this._prettyPrint},set:function(n){this._prettyPrint=n},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"forceChunking",{get:function(){return this._forceChunking},set:function(n){this._forceChunking=n},enumerable:!0,configurable:!0}),n.prototype.updateAllOptions=function(n){this.prettyPrint=n.prettyPrint||!1;this.sourcemapSupport=n.sourcemapSupport||!1;this.forceChunking=n.forceChunking},n}();n.FormatterOptions=t})(t=n.FormatService||(n.FormatService={}))})(Common||(Common={})); //! Copyright (C) Microsoft. All rights reserved. (function(n){var t;(function(t){"use strict";var i=Microsoft.Plugin,r=function(){function r(n){n===void 0&&(n=t.FormatServiceHelper.DefaultServices);this.options={};this._services=n;this.options=new t.FormatterOptions}return Object.defineProperty(r.prototype,"canFormat",{get:function(){return this.sourceText&&this.sourceText.text&&this.sourceText.text.trim().length>0},enumerable:!0,configurable:!0}),r.supportsMimeType=function(n){if(n){var t=n.toLowerCase();return t==="text/html"||t==="application/xml"||t.lastIndexOf("+xml")===t.length-4}return!1},r.prototype.updateOptions=function(n){this.options.updateAllOptions(n)},r.prototype.setDocument=function(n,r,u,f,e){return this.sourceText=new t.PositionOffsetMapper(n),this.options.prettyPrint&&e&&(this._prettyPrintPromise=this.startPrettyPrint()),i.Promise.as(null)},r.prototype.getFormattedText=function(){return this.options.prettyPrint?(this._prettyPrintPromise=this._prettyPrintPromise||this.startPrettyPrint(),this._prettyPrintPromise):i.Promise.as(this.sourceText)},r.prototype.startPrettyPrint=function(){var r=this;return new i.Promise(function(i){window.setImmediate(function(){var f=t.FormatServiceHelper.getWorkerServices(new n.Uri("Html/HtmlFormatWorker.js"),r._services),u=new Worker(f.path);u.onmessage=function(n){var f=JSON.parse(n.data),e=new t.OffsetTextMapping(f.text,f.mappings,r.sourceText.text);u.terminate();i(e);r._prettyPrintPromise=null};u.onerror=function(){u.terminate();i(r.sourceText);r._prettyPrintPromise=null};u.postMessage({services:f.services,text:r.sourceText.text})})})},r}();t.HtmlFormatter=r})(t=n.FormatService||(n.FormatService={}))})(Common||(Common={})); //! Copyright (C) Microsoft. All rights reserved. (function(n){var t;(function(n){"use strict";var t=function(){function t(n){F12.Tools.Utility.Assert.hasValue(n,"Need to set a valid source");this._source=n;this._sourceSpans=null;this._earlyEnd=!1}return Object.defineProperty(t.prototype,"sourceSpans",{get:function(){return this._sourceSpans===null&&this.findScriptTags(),this._sourceSpans},enumerable:!0,configurable:!0}),t.isSupportedScript=function(n,t){var i=n?n.toLocaleLowerCase():"",r=t?t.toLocaleLowerCase():"";return!i&&!r||i==="text/javascript"||i==="text/jscript"||i==="application/javascript"||i==="application/x-javascript"||i==="text/ecmascript"||r==="javascript"||r==="jscript"||r==="ecmascript"},t.prototype.findScriptTags=function(){this._index=0;this._sourceSpans=[];this._htmlStart=0;var t=this._source;do if(t[this._index]==="<"){if(this._index+1>=t.length)break;t[this._index+1]==="!"?this._index+3"){this._index+=2;return}},t.prototype.parseTag=function(){var u;F12.Tools.Utility.Assert.areEqual(this._source[this._index],"<");u=!1;this._index+1":(this._source[this._index-1]==="/"||this._source[this._index-1]==="?")&&(u=!0);u||o&&o.toLowerCase()==="script"&&(++this._index,this.findScriptEnd(f,e));return;case'"':n=this.parseQuotedValue('"');r=!1;t&&(f=n,t=!1);i&&(e=n,i=!1);break;case"'":n=this.parseQuotedValue("'");r=!1;t&&(f=n,t=!1);i&&(e=n,i=!1);break;case"=":r=!0;break;default:r&&!this._source[this._index].match(/\s/)?(n=this.parsePropertyValue(),r=!1,t&&(f=n,t=!1),i&&(e=n,i=!1)):(this._source[this._index].match(/[a-zA-Z]/)||this._source[this._index]==="_")&&(s?(n=this.parseAttribute(),n.toLowerCase()==="type"?t=!0:n.toLowerCase()!=="language"||t||(i=!0)):(o=this.parseElement(),s=!0))}},t.prototype.findScriptEnd=function(i,r){var f=this._index,s=t.isSupportedScript(i,r),o="<\/script",e,u;do if(this._source[this._index]==="<"&&this._index+o.length":return this._index--,n;default:if(this._source[this._index].match(/\s/))return this._index--,n;n+=this._source[this._index]}while(++this._index1?this.printLongArray(n):this.printShortArray(n)},n.prototype.printObject=function(n){var t=Object.getOwnPropertyNames(n);t.length>1?this.printLongObject(n):this.printShortObject(n)},n.prototype.printLongArray=function(n){this._text+="[\n";this._indentation.increase();for(var t=0;t0&&this.printItem(n[0]);this._text+="]"},n.prototype.printLongObject=function(n){var i=Object.getOwnPropertyNames(n),t,r;for(this._text+="{\n",this._indentation.increase(),t=0;t0&&(this._text+='"'+t[0]+'": ',this.printItem(n[t[0]]));this._text+="}"},n.prototype.indent=function(){return this._indentation.print()},n}(),t;n.JsonFormatter=i;t=function(){function n(){this._indentDepth=0;this._indentString=""}return n.prototype.increase=function(){this._indentDepth++;this._indentString+=" "},n.prototype.decrease=function(){this._indentDepth--;this._indentString=this._indentString.substring(0,this._indentDepth*4)},n.prototype.print=function(){return this._indentString},n}()})(t=n.FormatService||(n.FormatService={}))}(Common||(Common={})); //! Copyright (C) Microsoft. All rights reserved. (function(n){var t;(function(n){"use strict";var t=function(){function n(n,t,i){n?(F12.Tools.Utility.Assert.isTrue(n>=0,"Invalid line number: "+n.toString()),this._line=n):this._line=0;t?(F12.Tools.Utility.Assert.isTrue(t>=0,"Invalid column: "+t.toString()),this._column=t):this._column=0;i?(F12.Tools.Utility.Assert.isTrue(i>=0,"Invalid file: "+i.toString()),this._file=i):this._file=0}return Object.defineProperty(n.prototype,"line",{get:function(){return this._line},set:function(n){F12.Tools.Utility.Assert.isTrue(n>=0,"Invalid line number: "+n.toString());this._line=n},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"column",{get:function(){return this._column},set:function(n){F12.Tools.Utility.Assert.isTrue(n>=0,"Invalid column: "+n.toString());this._column=n},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"file",{get:function(){return this._file},set:function(n){F12.Tools.Utility.Assert.isTrue(n>=0,"Invalid file: "+n.toString());this._file=n},enumerable:!0,configurable:!0}),n.EMPTY_POSITION=new n,n}();n.Position=t})(t=n.FormatService||(n.FormatService={}))})(Common||(Common={})); //! Copyright (C) Microsoft. All rights reserved. (function(n){var t;(function(n){"use strict";var t=function(){function t(n,t){var i=this;this.urls=t;this._fileMappings=[];this._allMappings=[];n&&n.forEach(function(n){i._fileMappings[n.file]||(i._fileMappings[n.file]=[]);i._fileMappings[n.file].push(n);i._allMappings.push(n)});this._fileMappings.forEach(function(n){n.sort(function(n,t){return n.sourceLine!==t.sourceLine?n.sourceLine-t.sourceLine:n.sourceColumn!==t.sourceColumn?n.sourceColumn-t.sourceColumn:n.generatedLine!==t.generatedLine?n.generatedLine-t.generatedLine:n.generatedColumn-t.generatedColumn})})}return Object.defineProperty(t.prototype,"allMappings",{get:function(){return this._allMappings},enumerable:!0,configurable:!0}),t.binarySearch=function(n,t,i){for(var r=n.length-1,e=0,u,o,f;e<=r;)if(u=e+r>>1,o=i(n[u],t.line,t.column),o>0)e=u+1;else if(o<0)r=u-1;else{r=u;break}for(f=Math.max(Math.min(n.length-1,r),0);f+10},t.prototype.hasOriginalPosition=function(i){var e=new n.Position(i.line,i.column,i.file),r=this._allMappings,u,f;return r.length>0?(u=t.binarySearch(r,e,t.binaryCompareGenerated),f=r[u],i.line===f.generatedLine):!0},t.prototype.getOriginalPosition=function(i){var r=new n.Position(i.line,i.column,i.file),u=this._allMappings,f;return u.length>0&&(f=t.binarySearch(u,r,t.binaryCompareGenerated),r.line=Math.max(u[f].sourceLine,0),r.column=Math.max(u[f].sourceColumn,0),r.file=Math.min(Math.max(u[f].file,0),this._fileMappings.length-1)),r},t.prototype.getGeneratedPosition=function(i){var r=new n.Position(i.line,i.column,i.file),u=this._fileMappings[r.file],f;return u&&u.length>0&&(f=t.binarySearch(u,r,t.binaryCompareSource),r.line=Math.max(u[f].generatedLine,0),r.column=Math.max(u[f].generatedColumn,0)),r},t}();n.SourcemapMappings=t})(t=n.FormatService||(n.FormatService={}))})(Common||(Common={})); //! Copyright (C) Microsoft. All rights reserved. (function(n){var t;(function(n){"use strict";var t=function(){function t(){}return t.calculateMappings=function(i){var h=[],e,f;if(!i||i.version!==3||!i.mappings||typeof i.mappings!="string"||!i.sources||i.sources.length===0)return null;var a=i.sources.length,o=new n.SourcemapMapping,l=0,u=i.mappings;u.length===0&&(e=new n.SourcemapMapping,h.push(e));for(var c=0,r=0,s=u.length;ra)return null;r+=f.charsRead}e.file=c;r=v)break;if(l=f.charAt(u++),l===t.ScopeOrLineDelimiter)h=r[++a];else if(l!==t.SegmentDelimiter)return}},t.parseMapContent=function(n){var i=null,t;try{n.substr(0,4)===")]}'"&&(t=n.indexOf("\n"),t>=0&&(n=n.slice(t+1)));i=JSON.parse(n)}catch(r){}return i},t.StartScopeSegmentDelimiter=">",t.EndScopeSegmentDelimiter="<",t.SegmentDelimiter=",",t.ScopeOrLineDelimiter=";",t}();n.SourcemapParser=t})(t=n.FormatService||(n.FormatService={}))})(Common||(Common={})); //! Copyright (C) Microsoft. All rights reserved. (function(n){var t;(function(n){"use strict";typeof importScripts=="function"&&typeof document=="undefined"&&(onmessage=function(t){importScripts("sourcemapParser.js","sourcemapMappings.js","workerMessaging.js","base64.js");var f=t.data.content,i,r,u;i=n.SourcemapParser.parseMapContent(f);i&&i.version===3&&(r=n.SourcemapParser.calculateMappings(i),u=n.SourcemapParser.calculateScopeSegments(i),n.SourcemapParser.calculateLocalsMapping(i,u));r?this.postMessage({id:t.data.id,sourcemapMappings:r,urls:i.sources,sourceRoot:i.sourceRoot,sourcesContent:i.sourcesContent,version:i.version,sourceMediaTypes:i.x_ms_sourceMediaTypes,mediaTypes:i.x_ms_mediaTypes,sourceScopes:u}):this.postMessage({id:t.data.id,sourcemapMappings:null,urls:[],sourceRoot:"",sourcesContent:[],version:i&&i.version,sourceMediaTypes:null,mediaTypes:null,sourceScopes:null})})})(t=n.FormatService||(n.FormatService={}))})(Common||(Common={})); //! Copyright (C) Microsoft. All rights reserved. (function(n){var t;(function(n){"use strict";var t=function(){function t(t){this._start=t.start;this._end=t.end;this._lineOffsets=t.lineOffsets;this._generatedLineOffset=t.generatedLineOffset;this._sourcemap=new n.SourcemapMappings(t.mappings,[]);this._length=t.length}return Object.defineProperty(t.prototype,"start",{get:function(){return this._start},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"end",{get:function(){return this._end},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"generatedLineOffset",{get:function(){return this._generatedLineOffset},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"sourcemap",{get:function(){return this._sourcemap},enumerable:!0,configurable:!0}),t.prototype.getPosition=function(t){var r,i,u,f;for(F12.Tools.Utility.Assert.isTrue(t>=0,"Negative offset"),F12.Tools.Utility.Assert.isTrue(this._lineOffsets.length>=1,"Need to call calculateLineOffsets first"),t=Math.min(t,this._length-1),r=this._lineOffsets.length-1,i=0;i>1,this._lineOffsets[u]0&&it&&(i=i-1),f=t-this._lineOffsets[i],F12.Tools.Utility.Assert.isTrue(f>=0,"Calculated negative column"),new n.Position(i,f)},t.prototype.getOffset=function(n){F12.Tools.Utility.Assert.isTrue(this._lineOffsets.length>=1,"Need to call calculateLineOffsets first");F12.Tools.Utility.Assert.isTrue(n.line>=0,"Line outside of range");F12.Tools.Utility.Assert.isTrue(n.column>=0,"Column outside of range");var t;return n.line>=this._lineOffsets.length?t=Math.max(0,this._length-1):(t=this._lineOffsets[n.line]+n.column,n.line=this._lineOffsets[n.line+1]&&(t=this._lineOffsets[n.line+1]-1),t>=this._length&&(t=Math.max(0,this._length-1))),t+this._start},t}();n.SourceSpan=t})(t=n.FormatService||(n.FormatService={}))})(Common||(Common={})); //! Copyright (C) Microsoft. All rights reserved. (function(n){var t;(function(n){"use strict";var t=function(){function t(t,i,r){F12.Tools.Utility.Assert.isTrue(t>=0,"Invalid start offset: "+t.toString());F12.Tools.Utility.Assert.isTrue(i>=t,"Invalid end offset: "+i.toString());this._data=new n.SourceSpanData;this._data.start=t;this._data.end=i;this._isScript=r;this._data.lineOffsets=[];this._data.generatedLineOffset=0;this._data.length=0;this._data.mappings=[]}return Object.defineProperty(t.prototype,"_mappings",{get:function(){return this._data.mappings},set:function(n){this._data.mappings=n},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"data",{get:function(){return this._data},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"start",{get:function(){return this._data.start},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"end",{get:function(){return this._data.end},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isScript",{get:function(){return this._isScript},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"generatedLineOffset",{get:function(){return this._data.generatedLineOffset},set:function(n){F12.Tools.Utility.Assert.isTrue(n>=0,"offset is negative");this._data.generatedLineOffset=n},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lineOffsets",{get:function(){return this._data.lineOffsets},enumerable:!0,configurable:!0}),t.prototype.calculateLineOffsets=function(n){var i=0,t;for(this._data.lineOffsets=[],this._data.lineOffsets[i]=0,this._data.length=n.length,t=0;t0))for(t=this._waiters.splice(0,this._waiters.length),n=0,i=t.length;ni)throw new RangeError;if((i|=0)<1)throw new RangeError;this._currentCount=t;this._initialCount=t;this._maxCount=i}return Object.defineProperty(n.prototype,"isEmpty",{get:function(){return this._currentCount===this._initialCount},enumerable:!0,configurable:!0}),n.prototype.wait=function(){var n=this;return this._currentCount>0?(this._currentCount--,new i.Promise(function(n){setImmediate(n)})):new i.Promise(function(t){n._waiters.push(t)})},n.prototype.release=function(n){if(n===void 0&&(n=1),(n|=0)<1)throw new RangeError;if(this._maxCount-this._currentCount0)if(this._waiters.length>0){var t=this._waiters.shift();setImmediate(t)}else this._currentCount++},n.MAX_INT32=Math.pow(2,31)-1,n}();t.Semaphore=f;t.tryFinally=e;t.tryCatchFinally=s;t.yieldAsync=h;t.sleep=c;t.iterate=a;t.waitForCondition=v})(t=n.Async||(n.Async={}))})(Common||(Common={})); //! Copyright (C) Microsoft. All rights reserved. (function(n){"use strict";var t=Microsoft.Plugin,i;(function(n){var i=function(){function n(n,t){this._moduleName=n;this._channel=t}return n.prototype.call=function(n,i){var r=this;return new t.Promise(function(t,u){r._channel.call(r._moduleName+"."+n,i,function(n){n.error?u(new Error(n.error.message)):n.result&&n.result.error?u(new Error(n.result.error)):t(n.result)})})},n.prototype.addMessageHander=function(n,t){this._channel.addMessageHandler(this._moduleName+"."+n,function(n){var i=n.data;return t(i.params,n.engineId),n})},n}();n.Command=i})(i=n.Chromium||(n.Chromium={}))})(Common||(Common={})); //! Copyright (C) Microsoft. All rights reserved. __extends=this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);r.prototype=t.prototype;n.prototype=new r},function(n){"use strict";var t;(function(n){var t=function(n){function t(t){n.call(this,"Debugger",t)}return __extends(t,n),t.prototype.enable=function(){return this.call("enable",undefined)},t.prototype.evaluateOnCallFrame=function(n){return this.call("evaluateOnCallFrame",n)},t.prototype.onPaused=function(n){this.addMessageHander("paused",n)},t.prototype.onResumed=function(n){this.addMessageHander("resumed",n)},t}(n.Command);n.Debugger=t})(t=n.Chromium||(n.Chromium={}))}(Common||(Common={})),function(n){var t;(function(n){"use strict";var t=function(){function t(t){this.console=new n.Console(t);this.css=new n.CSS(t);this.dom=new n.DOM(t);this.inspect=new n.Inspector(t);this.network=new n.Network(t);this.page=new n.Page(t);this.runtime=new n.Runtime(t)}return t}();n.RemoteDebug=t})(t=n.Chromium||(n.Chromium={}))}(Common||(Common={})); //! Copyright (C) Microsoft. All rights reserved. __extends=this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);r.prototype=t.prototype;n.prototype=new r},function(n){"use strict";var t;(function(n){var t=function(n){function t(t){n.call(this,"Inspector",t)}return __extends(t,n),t.prototype.enable=function(){return this.call("enable",undefined)},t.prototype.onInspect=function(n){this.addMessageHander("inspect",function(t){n(t.object)})},t}(n.Command);n.Inspector=t})(t=n.Chromium||(n.Chromium={}))}(Common||(Common={})); //! Copyright (C) Microsoft. All rights reserved. __extends=this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);r.prototype=t.prototype;n.prototype=new r},function(n){"use strict";var t;(function(n){var t=function(n){function t(t){n.call(this,"Runtime",t)}return __extends(t,n),t.prototype.enable=function(){return this.call("enable",undefined)},t.prototype.evaluate=function(n){return this.call("evaluate",n)},t.prototype.getProperties=function(n){return this.call("getProperties",n)},t.prototype.releaseObject=function(n){return this.call("releaseObject",n)},t.prototype.callFunctionOn=function(n){return this.call("callFunctionOn",n)},t.prototype.releaseObjectGroup=function(n){return this.call("releaseObjectGroup",n)},t.prototype.onExecutionContextCreated=function(n){this.addMessageHander("executionContextCreated",n)},t}(n.Command);n.Runtime=t})(t=n.Chromium||(n.Chromium={}))}(Common||(Common={})); //! Copyright (C) Microsoft. All rights reserved. __extends=this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);r.prototype=t.prototype;n.prototype=new r},function(n){var t;(function(n){"use strict";var t=function(n){function t(t){n.call(this,"Network",t)}return __extends(t,n),t.prototype.canClearBrowserCache=function(){return this.call("canClearBrowserCache",null)},t.prototype.canClearBrowserCookies=function(){return this.call("canClearBrowserCookies",null)},t.prototype.clearBrowserCache=function(){return this.call("clearBrowserCache",null)},t.prototype.clearBrowserCookies=function(){return this.call("clearBrowserCookies",null)},t.prototype.disable=function(){return this.call("disable",null)},t.prototype.enable=function(){return this.call("enable",null)},t.prototype.getResponseBody=function(n){return this.call("getResponseBody",{requestId:n})},t.prototype.setCacheDisabled=function(n){return this.call("setCacheDisabled",{cacheDisabled:n})},t.prototype.setExtraHTTPHeaders=function(n){return this.call("setExtraHTTPHeaders",{headers:n})},t.prototype.setUserAgentOverride=function(n){return this.call("setUserAgentOverride",{userAgent:n})},t.prototype.onDataReceived=function(n){this.addMessageHander("dataReceived",function(t){n(t)})},t.prototype.onLoadingFailed=function(n){this.addMessageHander("loadingFailed",function(t){n(t)})},t.prototype.onLoadingFinished=function(n){this.addMessageHander("loadingFinished",function(t){n(t)})},t.prototype.onRequestServedFromCache=function(n){this.addMessageHander("requestServedFromCache",function(t){n(t)})},t.prototype.onRequestWillBeSent=function(n){this.addMessageHander("requestWillBeSent",function(t){n(t)})},t.prototype.onResponseReceived=function(n){this.addMessageHander("responseReceived",function(t){n(t)})},t}(n.Command);n.Network=t})(t=n.Chromium||(n.Chromium={}))}(Common||(Common={})); //! Copyright (C) Microsoft. All rights reserved. __extends=this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);r.prototype=t.prototype;n.prototype=new r},function(n){"use strict";var t;(function(n){var t=function(n){function t(t){n.call(this,"Page",t)}return __extends(t,n),t.prototype.enable=function(){return this.call("enable",undefined)},t.prototype.getResourceTree=function(){return this.call("getResourceTree")},t.prototype.onFrameNavigated=function(n){this.addMessageHander("frameNavigated",function(t,i){n(t.frame,i)})},t.prototype.onFrameAttached=function(n){this.addMessageHander("frameAttached",function(t,i){n(t.frameId,i)})},t.prototype.onFrameDetached=function(n){this.addMessageHander("frameDetached",function(t,i){n(t.frameId,i)})},t.prototype.onFrameStartedLoading=function(n){this.addMessageHander("frameStartedLoading",function(t,i){n(t.frameId,i)})},t}(n.Command);n.Page=t})(t=n.Chromium||(n.Chromium={}))}(Common||(Common={})); //! Copyright (C) Microsoft. All rights reserved. __extends=this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);r.prototype=t.prototype;n.prototype=new r},function(n){"use strict";var t;(function(n){var t=function(n){function t(t){n.call(this,"Console",t)}return __extends(t,n),t.prototype.enable=function(){return this.call("enable",undefined)},t.prototype.clearMessages=function(){return this.call("clearMessages",undefined)},t.prototype.addInspectedNode=function(n){return this.call("addInspectedNode",{nodeId:n})},t.prototype.onMessageAdded=function(n){this.addMessageHander("messageAdded",n)},t.prototype.onMessagesCleared=function(n){this.addMessageHander("messagesCleared",n)},t.prototype.onMessageRepeatCountUpdated=function(n){this.addMessageHander("messageRepeatCountUpdated",n)},t}(n.Command);n.Console=t})(t=n.Chromium||(n.Chromium={}))}(Common||(Common={})); //! Copyright (C) Microsoft. All rights reserved. __extends=this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);r.prototype=t.prototype;n.prototype=new r},function(n){"use strict";var t=Microsoft.Plugin,i;(function(n){var i=function(n){function i(t){n.call(this,"DOM",t)}return __extends(i,n),i.prototype.discardSearchResults=function(n){return this.call("discardSearchResults",{searchId:n})},i.prototype.enable=function(){return this.call("enable",undefined)},i.prototype.getAttributes=function(n){var i=this;return new t.Promise(function(t,r){i.call("getAttributes",{nodeId:n}).done(function(n){t(n.attributes)},r)})},i.prototype.getDocument=function(){var n=this;return new t.Promise(function(t,i){n.call("getDocument",undefined).done(function(n){t(n.root)},i)})},i.prototype.getEventEventListenersForNode=function(n){var i=this;return new t.Promise(function(t,r){i.call("getEventListenersForNode",{nodeId:n}).done(function(n){t(n.listeners)},r)})},i.prototype.getOuterHTML=function(n){var i=this;return new t.Promise(function(t,r){i.call("getOuterHTML",{nodeId:n}).done(function(n){t(n.outerHTML)},r)})},i.prototype.getSearchResults=function(n,i,r){var u=this;return new t.Promise(function(t,f){u.call("getSearchResults",{searchId:n,fromIndex:i,toIndex:r}).done(function(n){t(n.nodeIds)},f)})},i.prototype.hideHighlight=function(){return this.call("hideHighlight",undefined)},i.prototype.highlightNode=function(n,t){return this.call("highlightNode",{nodeId:n,highlightConfig:t})},i.prototype.markUndoableState=function(){return this.call("markUndoableState",undefined)},i.prototype.moveTo=function(n,i,r){var u=this;return new t.Promise(function(t,f){u.call("moveTo",{nodeId:n,targetNodeId:i,insertBeforeNodeId:r}).done(function(n){t(n.nodeId)},f)})},i.prototype.onSetChildNodes=function(n){this.addMessageHander("setChildNodes",function(t,i){n(t.parentId,t.nodes,i)})},i.prototype.onDocumentUpdated=function(n){this.addMessageHander("documentUpdated",n)},i.prototype.onInlineStyleInvalidated=function(n){this.addMessageHander("inlineStyleInvalidated",function(t,i){n(t.nodeIds,i)})},i.prototype.onInspectNodeRequested=function(n){this.addMessageHander("inspectNodeRequested",function(t,i){n(t.nodeId,i)})},i.prototype.onAttributeModified=function(n){this.addMessageHander("attributeModified",function(t,i){n(t.nodeId,t.name,t.value,i)})},i.prototype.onAttributeRemoved=function(n){this.addMessageHander("attributeRemoved",function(t,i){n(t.nodeId,t.name,i)})},i.prototype.onCharacterDataModified=function(n){this.addMessageHander("characterDataModified",function(t,i){n(t.nodeId,t.characterData,i)})},i.prototype.onChildNodeCountUpdated=function(n){this.addMessageHander("childNodeCountUpdated",function(t,i){n(t.nodeId,t.childNodeCount,i)})},i.prototype.onChildNodeInserted=function(n){this.addMessageHander("childNodeInserted",function(t,i){n(t.parentNodeId,t.previousNodeId,t.node,i)})},i.prototype.onChildNodeRemoved=function(n){this.addMessageHander("childNodeRemoved",function(t,i){n(t.parentNodeId,t.nodeId,i)})},i.prototype.performSearch=function(n){var i=this;return new t.Promise(function(t,r){i.call("performSearch",{query:n}).done(function(n){t(n)},r)})},i.prototype.querySelector=function(n,i){var r=this;return new t.Promise(function(t,u){r.call("querySelector",{nodeId:n,selector:i}).done(function(n){t(n.nodeId)},u)})},i.prototype.redo=function(){return this.call("redo",undefined)},i.prototype.removeAttribute=function(n,t){return this.call("removeAttribute",{nodeId:n,name:t})},i.prototype.removeNode=function(n){return this.call("removeNode",{nodeId:n})},i.prototype.requestChildNodes=function(n){return this.call("requestChildNodes",{nodeId:n})},i.prototype.requestNode=function(n){return this.call("requestNode",{objectId:n})},i.prototype.setAttributeValue=function(n,t,i){return this.call("setAttributeValue",{nodeId:n,name:t,value:i})},i.prototype.setInspectModeEnabled=function(n,t){return this.call("setInspectModeEnabled",{enabled:n,highlightConfig:t})},i.prototype.setNodeValue=function(n,t){return this.call("setNodeValue",{nodeId:n,value:t})},i.prototype.setOuterHTML=function(n,t){return this.call("setOuterHTML",{nodeId:n,outerHTML:t})},i.prototype.undo=function(){return this.call("undo",undefined)},i}(n.Command);n.DOM=i})(i=n.Chromium||(n.Chromium={}))}(Common||(Common={})); //! Copyright (C) Microsoft. All rights reserved. __extends=this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);r.prototype=t.prototype;n.prototype=new r},function(n){"use strict";var t=Microsoft.Plugin,i;(function(n){var i=function(n){function i(t){n.call(this,"CSS",t)}return __extends(i,n),i.prototype.addRule=function(n,i){var r=this;return new t.Promise(function(t,u){return r.call("addRule",{contextNodeId:n,selector:i}).done(function(n){t(n.rule)},u)})},i.prototype.addRuleByStyleSheetId=function(n,i){var r=this;return new t.Promise(function(t,u){return r.call("addRule",{styleSheetId:n,selector:i}).done(function(n){t(n.rule)},u)})},i.prototype.addRuleByText=function(n,i,r){var u=this;return new t.Promise(function(t,f){return u.call("addRule",{styleSheetId:n,ruleText:i,location:r}).done(function(n){t(n.rule)},f)})},i.prototype.createStyleSheet=function(n){var i=this;return new t.Promise(function(t,r){return i.call("createStyleSheet",{frameId:n}).done(function(n){t(n.styleSheetId)},r)})},i.prototype.enable=function(){return this.call("enable",undefined)},i.prototype.forcePseudoState=function(n,t){return this.call("forcePseudoState",{nodeId:n,forcedPseudoClasses:t})},i.prototype.getComputedStyleForNode=function(n){var i=this;return new t.Promise(function(t,r){return i.call("getComputedStyleForNode",{nodeId:n}).done(function(n){t(n.computedStyle)},r)})},i.prototype.getStyleSheetText=function(n){var i=this;return new t.Promise(function(t,r){return i.call("getStyleSheetText",{styleSheetId:n}).done(function(n){t(n.text)},r)})},i.prototype.getInlineStylesForNode=function(n){var i=this;return new t.Promise(function(t,r){return i.call("getInlineStylesForNode",{nodeId:n}).done(function(n){t(n.inlineStyle)},r)})},i.prototype.getMatchedStylesForNode=function(n){var i=this;return new t.Promise(function(t,r){return i.call("getMatchedStylesForNode",{nodeId:n}).done(function(n){t({inherited:n.inherited,matchedCSSRules:n.matchedCSSRules})},r)})},i.prototype.onStyleSheetAdded=function(n){this.addMessageHander("styleSheetAdded",function(t,i){n(t.header,i)})},i.prototype.onStyleSheetChanged=function(n){this.addMessageHander("styleSheetChanged",function(t,i){n(t.styleSheetId,i)})},i.prototype.onStyleSheetRemoved=function(n){this.addMessageHander("styleSheetRemoved",function(t,i){n(t.styleSheetId,i)})},i.prototype.setPropertyText=function(n,i,r,u){var f=this;return new t.Promise(function(t,e){return f.call("setPropertyText",{styleId:n,propertyIndex:i,text:r,overwrite:u}).done(function(n){t(n.style)},e)})},i.prototype.setPropertyTextByRange=function(n,i,r){var u=this;return new t.Promise(function(t,f){return u.call("setPropertyText",{styleSheetId:n,range:i,text:r}).done(function(n){t(n.style)},f)})},i.prototype.setRuleSelector=function(n,i){var r=this;return new t.Promise(function(t,u){return r.call("setRuleSelector",{ruleId:n,selector:i}).done(function(n){t(n.rule)},u)})},i.prototype.setRuleSelectorByRange=function(n,i,r){var u=this;return new t.Promise(function(t,f){return u.call("setRuleSelector",{styleSheetId:n,range:i,selector:r}).done(function(n){t(n.rule)},f)})},i.prototype.toggleProperty=function(n,t,i){return this.call("toggleProperty",{styleId:n,propertyIndex:t,disable:i})},i}(n.Command);n.CSS=i})(i=n.Chromium||(n.Chromium={}))}(Common||(Common={})); //! Copyright (C) Microsoft. All rights reserved. (function(n){var t;(function(t){function f(n,t){return n===t?n!==0||1/n==1/t:n!==n&&t!==t}function u(){var n=new Uint8Array(16),i,r;if(typeof crypto!="undefined")crypto.getRandomValues(n);else if(typeof msCrypto!="undefined")msCrypto.getRandomValues(n);else for(i=0;i<16;i++)n[i]=Math.random()*255|0;return n[6]=n[6]&79|64,n[8]=n[8]&191|128,r=0,t.uuidFormatText.replace(/DD/g,function(){return(n[r]<16?"0":"")+n[r++].toString(16).toLowerCase()})}var r,e,i,o,s;t.origPreventExtensions=Object.preventExtensions;t.origSeal=Object.seal;t.origFreeze=Object.freeze;t.origDefineProperties=Object.defineProperties;t.origDefineProperty=Object.defineProperty;t.origKeys=Object.keys;t.origGetOwnPropertyNames=Object.getOwnPropertyNames;t.origGetOwnPropertyDescriptor=Object.getOwnPropertyDescriptor;t.uuidFormatText="urn:uuid:DDDDDDDD-DDDD-DDDD-DDDD-DDDDDDDDDDDD";r=function(){function n(){}return n.create=function(i){n.Id in i||t.origDefineProperty(i,n.Id,{enumerable:!1,writable:!1,configurable:!1,value:Object.create(null)})},n.has=function(t,i){if(n.Id in t){var r=t[n.Id];if(i in r)return r[i]!==n.UnsetValue}return!1},n.get=function(t,i){if(n.Id in t){var u=t[n.Id],r=u[i];if(r!==n.UnsetValue)return r}},n.set=function(t,i,r){n.create(t);var u=t[n.Id];u[i]=r},n.delete=function(t,i){if(n.Id in t){var r=t[n.Id];if(i in r&&r[i]!==n.UnsetValue)return r[i]=n.UnsetValue,!0}return!1},n.UnsetValue=Object.create(null),n.Id=u(),n}();t.AttachedProperty=r;e=function(){function n(){this._id=u();this._entries=[]}return n.prototype.clear=function(){this._entries.forEach(function(n){n.value=undefined});this._entries=[];this._id=u()},n.prototype.delete=function(n){var t=r.get(n,this._id);return t?(t.value=undefined,r.delete(n,this._id),!0):!1},n.prototype.has=function(n){return r.has(n,this._id)},n.prototype.get=function(n){var t=r.get(n,this._id);if(t)return t.value},n.prototype.set=function(n,t){var i=r.get(n,this._id);return i||(i={value:undefined},this._entries.push(i),r.set(n,this._id,i)),i.value=t,this},n}();t.PolyfillWeakMap=e,function(t){function s(n){var r,e,o,s;if(f(n>>>0&2147483647,n))return n;var u=!1,i=0,t=0;if(isFinite(n)){if(n<0&&(u=!0,n=-n),i=0,n>=Math.pow(2,-1022)){for(r=n;r<1;)i-=1,r*=2;while(r>=2)i+=1,r/=2;i+=1023}i!==0?(e=n/Math.pow(2,i-1023),t=Math.floor((e-1)*Math.pow(2,52))):t=Math.floor(n/Math.pow(2,-1074))}else i=2047,isNaN(n)?(u=!0,t=0x8000000000000):(u=n===-Infinity,t=0);return o=(((u?1:0)<<7|i>>4)<<24|((i&15)<<4|t/281474976710656)<<16|t%281474976710656/1099511627776<<8|t%1099511627776/4294967296)>>>0,s=(t%4294967296/16777216<<24|t%16777216/65536<<16|t%65536/256<<8|t%256)>>>0,(o^10)&2147483647}function r(n){for(var i=1540483477,u=0,f=n.length,t=0^f;f>=2;){var e=n.charCodeAt(u),o=n.charCodeAt(u+1),r=e|o<<16;r*=i;r^=r>>4;r*=i;t*=i;t^=r;u+=2;f-=2}return f===1&&(t^=n.charCodeAt(u),t*=i),t^=t>>13,t*=i,t^t>>15}function l(n){var t=0,f,e,o,h;if(n!==null&&typeof n!="undefined")if(typeof n=="string")t=r(n);else if(typeof n=="number")t=s(n);else if(typeof n=="boolean")t=n>>>0;else if(n instanceof Date)t=s(n.getTime());else if(n instanceof RegExp)t=r(n.toString());else{if(f=!1,"hash"in n&&(e=n.hash,typeof e=="function")){if(o=e.call(n),typeof o!="number")throw new TypeError("Expected number from call to hash()");t=o|0;f=!0}f||(i.has(n)?t=i.get(n):(h=u(),t=r(h),i.set(n,t)))}return t&2147483647}function h(n){var i,t;if((n&1)!=0){for(i=Math.sqrt(n),t=3;t=n)return i;for(t=n|1;t2146435069&&2146435069>n?2146435069:e(t)}function a(n,t,i){for(var u=i%n.buckets.length,r=n.buckets[u];r;r=r.next)if(r.hashCode===i&&f(t,r.key))return r}function v(n){for(var t,u,o,f=c(n.buckets.length),e=n.buckets,i=new Array(f),r=0,s=e.length;r0;)for(u--,r=n.buckets[u];r;r=r.next)t.call(i,r)}function b(){var n=Object.create(null);return n.buckets=new Array(e(0)),n.size=0,n}function k(n,t,i,r){var u=Object.create(null);return u.key=n,u.hashCode=t,u.value=i,u.next=r,u}t.LOAD_FACTOR=1;var i=new n.Collections.PolyfillWeakMap,o=[3,7,11,17,23,29,37,47,59,71,89,107,131,163,197,239,293,353,431,521,631,761,919,1103,1327,1597,1931,2333,2801,3371,4049,4861,5839,7013,8419,10103,12143,14591,17519,21023,25229,30293,36353,43627,52361,62851,75431,90523,108631,130363,156437,187751,225307,270371,324449,389357,467237,560689,672827,807403,968897,1162687,1395263,1674319,2009191,2411033,2893249,3471899,4166287,4999559,5999471,7199369];t.computeHash=l;t.isPrime=h;t.getPrime=e;t.expandPrime=c;t.find=a;t.grow=v;t.clear=y;t.remove=p;t.forEach=w;t.createHashMap=b;t.createHashEntry=k}(i=t.Hash||(t.Hash={}));o=function(){function n(){this._hashMap=i.createHashMap()}return Object.defineProperty(n.prototype,"size",{get:function(){return this._hashMap.size},enumerable:!0,configurable:!0}),n.prototype.has=function(n){if(this._hashMap.size===0)return!1;var t=i.computeHash(n);return!!i.find(this._hashMap,n,t)},n.prototype.get=function(n){var r=i.computeHash(n),t=i.find(this._hashMap,n,r);if(t)return t.value},n.prototype.set=function(n,t){var u=i.computeHash(n),r=i.find(this._hashMap,n,u),f;return r?r.value=t:(f=u%this._hashMap.buckets.length,r=i.createHashEntry(n,u,t,this._hashMap.buckets[f]),this._hashMap.buckets[f]=r,this._hashMap.size>=this._hashMap.buckets.length*i.LOAD_FACTOR&&i.grow(this._hashMap),this._hashMap.size++),this},n.prototype.delete=function(n){var r=i.computeHash(n),t=i.remove(this._hashMap,n,r);return t?(t.value=undefined,!0):!1},n.prototype.clear=function(){i.clear(this._hashMap)},n.prototype.forEach=function(n,t){var r=this;i.forEach(this._hashMap,function(i){n.call(t,i.value,i.key,r)})},n}();t.PolyfillMap=o;s=function(){function n(){this._map=new Map}return Object.defineProperty(n.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),n.prototype.has=function(n){return this._map.has(n)},n.prototype.add=function(n){return this._map.set(n,n),this},n.prototype.delete=function(n){return this._map.delete(n)},n.prototype.clear=function(){this._map.clear()},n.prototype.forEach=function(n,t){var i=this;this._map.forEach(function(r,u){n.call(t,r,u,i)})},n}();t.PolyfillSet=s})(t=n.Collections||(n.Collections={}))})(Common||(Common={}));typeof this.Map=="undefined"&&(this.Map=Common.Collections.PolyfillMap,this.WeakMap=Common.Collections.PolyfillWeakMap,this.Set=Common.Collections.PolyfillSet,Object.preventExtensions=function(n){return Common.Collections.AttachedProperty.create(n),Common.Collections.origPreventExtensions.call(Object,n)},Object.seal=function(n){return Common.Collections.AttachedProperty.create(n),Common.Collections.origSeal.call(Object,n)},Object.freeze=function(n){return Common.Collections.AttachedProperty.create(n),Common.Collections.origFreeze.call(Object,n)},Object.defineProperties=function(n,t){return Common.Collections.AttachedProperty.Id in t&&delete t[Common.Collections.AttachedProperty.Id],Common.Collections.origDefineProperties.call(Object,n,t)},Object.defineProperty=function(n,t,i){return t!==Common.Collections.AttachedProperty.Id?Common.Collections.origDefineProperty.call(Object,n,t,i):n},Object.keys=function(n){var t=Common.Collections.origKeys.call(Object,n);return t.filter(function(n){return n!==Common.Collections.AttachedProperty.Id})},Object.getOwnPropertyNames=function(n){var t=Common.Collections.origGetOwnPropertyNames.call(Object,n);return t.filter(function(n){return n!==Common.Collections.AttachedProperty.Id})},Object.getOwnPropertyDescriptor=function(n,t){if(t!==Common.Collections.AttachedProperty.Id)return Common.Collections.origGetOwnPropertyDescriptor.call(Object,n,t)}); //! Copyright (C) Microsoft. All rights reserved. (function(){"use strict"})(Common||(Common={})); //! Copyright (C) Microsoft. All rights reserved. (function(n){"use strict";var t=function(){function n(){}return n.prototype.delay=function(n){this._id&&(window.clearImmediate(this._id),this._id=0);this._id=window.setImmediate(n)},n}();n.Delayer=t})(Common||(Common={})); //! Copyright (C) Microsoft. All rights reserved. (function(n){"use strict";var t=Microsoft.Plugin,i=function(){function i(){this._handlers=null;this._eventsRunning=0}return i.prototype.addHandler=function(n){var t=this;return F12.Tools.Utility.Assert.isTrue(typeof n=="function","handler must be function"),this._handlers||(this._handlers=[]),this._handlers.push(n),{unregister:function(){return t.removeHandler(n)}}},i.prototype.addOne=function(n){var t=this.addHandler(function(i){t.unregister();n(i)});return t},i.prototype.removeHandler=function(n){for(var t=this._handlers.length;t--;)if(this._handlers[t]===n){this._eventsRunning>0?this._handlers[t]=null:this._handlers.splice(t,1);return}},i.prototype.invoke=function(n,t){if(this._handlers){this._eventsRunning++;for(var i=0;i=0;n--)this._handlers[n]||this._handlers.splice(n,1)},i}();n.EventSource=i})(Common||(Common={})); //! Copyright (C) Microsoft. All rights reserved. (function(){"use strict"})(Common||(Common={})); //! Copyright (C) Microsoft. All rights reserved. (function(){"use strict"})(Common||(Common={})); //! Copyright (C) Microsoft. All rights reserved. (function(n){"use strict";var t=function(){function n(n){this._sizeLimit=n;this.resetPool()}return Object.defineProperty(n.prototype,"sizeLimit",{get:function(){return this._sizeLimit},enumerable:!0,configurable:!0}),n.prototype.getControl=function(n,t){var i=this.getControlBucket(n,!0);return i.length>0?i.pop():t?t():null},n.prototype.recycleControl=function(n,t){var i=this.getControlBucket(n,!0);this._sizeLimit!==null&&this._sizeLimit!==undefined&&i.length>=this._sizeLimit||i.push(t)},n.prototype.clear=function(n){n?this._pool.delete(n):this.resetPool()},n.prototype.getControlBucket=function(n,t){var i=this._pool.get(n);return!i&&t&&(i=[],this._pool.set(n,i)),i},n.prototype.resetPool=function(){this._pool=new Map},n}();n.ControlPool=t})(Common||(Common={})); //! Copyright (C) Microsoft. All rights reserved. (function(n){"use strict";(function(n){n[n.In=0]="In";n[n.Out=1]="Out"})(n.ItemFilterState||(n.ItemFilterState={}));var i=n.ItemFilterState,t=function(){function t(t){t===void 0&&(t=[]);this._list=t.slice(0);this._filteredList=this._list;this._mutableItemsLog=[];this.propertyChanged=new n.EventSource;this.collectionChanged=new n.EventSource}return Object.defineProperty(t.prototype,"filter",{get:function(){return this._filter},set:function(n){this._filterChangedEventRegistration&&(this._filterChangedEventRegistration.unregister(),this._filterChangedEventRegistration=null);n&&(this._filter=n,this._filterChangedEventRegistration=this._filter.filterChanged.addHandler(this.onFilterChanged.bind(this)))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this._filteredList.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lengthOfOriginalList",{get:function(){return this._list.length},enumerable:!0,configurable:!0}),t.prototype.getFilteredArray=function(){return this._filteredList},t.prototype.getOriginalArray=function(){return this._list},t.prototype.push=function(){for(var n=[],i=0;i=0,"Unable to pop unknown item"),this._list.splice(i,1)),this.propertyChanged.invoke(t.LengthProperty),this.invokeCollectionChanged(1,null,null,[n],this._filteredList.length),n},t.prototype.indexOf=function(n,t){return this._filteredList.indexOf(n,t)},t.prototype.indexOfFromOriginalList=function(n,t){return this._list.indexOf(n,t)},t.prototype.lastIndexOf=function(n,t){return t===void 0&&(t=-1),this._filteredList.lastIndexOf(n,t)},t.prototype.lastIndexOfFromOriginalList=function(n,t){return t===void 0&&(t=-1),this._list.lastIndexOf(n,t)},t.prototype.clear=function(){var n=this._list;this._list=[];this._filteredList=[];this.clearBacklogFilterItems();this.propertyChanged.invoke(t.LengthProperty);this.invokeCollectionChanged(3,null,null,n,0)},t.prototype.onFilterChanged=function(){this.runFilter()},t.prototype.map=function(n,t){return this._filteredList.map(n,t)},t.prototype.getItem=function(n){return this._filteredList[n]},t.prototype.getItemFromOriginalList=function(n){return this._list[n]},t.prototype.resetItems=function(n){this._list=n.slice(0);this._filteredList=this._list;return this.runFilter().length},t.prototype.runFilter=function(){this.clearBacklogFilterItems();this._filteredList=[];var n=this.filterAndPushItems(this._list);return this.propertyChanged.invoke(t.LengthProperty),this.invokeCollectionChanged(2),n},t.prototype.filterAndPushItems=function(n){for(var t,u,i=[],r=0;r-1&&(this._filteredList.splice(u,1),this.propertyChanged.invoke(t.LengthProperty),this.invokeCollectionChanged(1,[n],u));this._filter.isFilteredValueMutable(r.item)||this.removeItemFromBacklog(r)}},t.prototype.findBacklogItem=function(n){for(var i,t=0;t-1)for(t=i;t0,s=r&&r.length>0;return(o||s)&&(this.propertyChanged.invoke(t.LengthProperty),o&&this.invokeCollectionChanged(1,null,null,e,n),s&&this.invokeCollectionChanged(0,r,n,null,null)),e},t.prototype.indexOf=function(n,t){return this._list.indexOf(n,t)},t.prototype.lastIndexOf=function(n,t){return t===void 0&&(t=-1),this._list.lastIndexOf(n,t)},t.prototype.clear=function(){var n=this._list;this._list=[];this.propertyChanged.invoke(t.LengthProperty);this.invokeCollectionChanged(3,null,null,n,0)},t.prototype.filter=function(n,t){return this._list.filter(n,t)},t.prototype.map=function(n,t){return this._list.map(n,t)},t.prototype.getItem=function(n){return this._list[n]},t.prototype.resetItems=function(n){this._list=[];var i=Array.prototype.push.apply(this._list,n);return this.propertyChanged.invoke(t.LengthProperty),this.invokeCollectionChanged(2),i},t.prototype.invokeCollectionChanged=function(n,t,i,r,u){var f={action:n,newItems:t,newStartingIndex:i,oldItems:r,oldStartingIndex:u};this.collectionChanged.invoke(f)},t.LengthProperty="length",t}();n.ObservableCollection=t})(Common||(Common={})); //! Copyright (C) Microsoft. All rights reserved. (function(n){"use strict";var t=function(){function t(){this.propertyChanged=new n.EventSource}return t.fromObject=function(n){if(typeof n.propertyChanged!="undefined")return n;var r=new t,u={};return Object.defineProperties(r,i.expandProperties(n,u,r)),r._backingData=u,r},t}(),i;n.Observable=t;i=function(){function n(){}return n.defineProperty=function(n,t,i,r,u){var f="_"+t;Object.defineProperty(n.prototype,t,{get:function(){return typeof this[f]=="undefined"&&(this[f]=i),this[f]},set:function(n){var i=this[f],e;n!==i&&(u&&u(this,i,n),this[f]=n,e=this,e.propertyChanged.invoke(t,e),r&&r(this,i,n))}})},n.describePropertyForObjectShape=function(n,i,r,u){var f={get:function(){return r[n]},enumerable:!0},e=i[n];return typeof e=="object"?(r[n]=t.fromObject(e),f.set=function(i){i!==r[n]&&(r[n]=t.fromObject(i),u.propertyChanged.invoke(n,u))}):(r[n]=e,f.set=function(t){t!==r[n]&&(r[n]=t,u.propertyChanged.invoke(n,u))}),f},n.expandProperties=function(t,i,r){var u={};for(var f in t)u[f]=n.describePropertyForObjectShape(f,t,i,r);return u},n}();n.ObservableHelpers=i})(Common||(Common={})); //! Copyright (C) Microsoft. All rights reserved. (function(){"use strict"})(Common||(Common={})); //! Copyright (C) Microsoft. All rights reserved. (function(n){"use strict";(function(n){n[n.Add=0]="Add";n[n.Remove=1]="Remove";n[n.Reset=2]="Reset";n[n.Clear=3]="Clear"})(n.CollectionChangedAction||(n.CollectionChangedAction={}));var t=n.CollectionChangedAction})(Common||(Common={})); //! Copyright (C) Microsoft. All rights reserved. __extends=this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);r.prototype=t.prototype;n.prototype=new r},function(n){"use strict";var t,i,r,u;n.targetAccessViaProperty={getValue:function(n,t){return n[t]},isSourceSupported:function(n){return!!n},isValueSupported:function(n){return n!==undefined},setValue:function(n,t,i,r){n[t]=r}};n.targetAccessForModel={getValue:function(n){return n.model},isSourceSupported:function(){return!0},isValueSupported:function(){return!0},setValue:function(n,t,i,r){n.model=r}};n.targetAccessViaAttribute={getValue:function(n,t){return n.getAttribute(t)},isSourceSupported:function(n){return!!n},isValueSupported:function(){return!0},setValue:function(n,t,i,r){r===null||r===undefined?n.removeAttribute(t):n.setAttribute(t,r)}};n.targetAccessForClass={getValue:function(n,t){return n.classList.contains(t)},isSourceSupported:function(n){return!!n},isValueSupported:function(n){return n!==null&&n!==undefined},setValue:function(n,t,i,r){F12.Tools.Utility.Assert.isTrue(r!==null&&r!==undefined,"Unexpected value");r?n.classList.add(t):n.classList.remove(t)}};t=function(){function n(){}return n.prototype.getValue=function(){return F12.Tools.Utility.Assert.fail("Event doesn't support two-way binding."),null},n.prototype.isSourceSupported=function(){return!0},n.prototype.isValueSupported=function(){return!0},n.prototype.setValue=function(){},n}();n.TargetAccessForEventBase=t;i=function(n){function t(){n.apply(this,arguments)}return __extends(t,n),t.prototype.setValue=function(n,t,i,r){if(this._eventRegistration&&(this._eventRegistration.unregister(),this._eventRegistration=null),i&&r){var u=n[t];u&&(this._eventRegistration=u.addHandler(r.bind(i)))}},t}(t);n.TargetAccessForEventSource=i;r=function(n){function t(){n.apply(this,arguments)}return __extends(t,n),t.prototype.setValue=function(n,t,i,r){this._previousAddedHandler&&(n.removeEventListener(t,this._previousAddedHandler),this._previousAddedHandler=null);i&&r&&(this._previousAddedHandler=r.bind(i),n.addEventListener(t,this._previousAddedHandler))},t}(t);n.TargetAccessForHTMLEvent=r;u=function(){function t(i,r,u,f,e,o,s){var c=this,h;F12.Tools.Utility.Assert.hasValue(r,"sourceExpression");F12.Tools.Utility.Assert.hasValue(u,"destination");F12.Tools.Utility.Assert.hasValue(f,"destinationProperty");o=o||t.ONE_WAY_MODE;h=r.split(".");this._source=null;this._sourceChangedRegistration=null;this._destChangedRegistration=null;this._sourceProperty=h[0];this._childBinding=null;this._paused=!1;this._twoWay=!1;this._converter=e;this._destination=u;this._destinationProperty=f;this._targetAccess=s||n.targetAccessViaProperty;h.length>1?(h.splice(0,1),this._childBinding=new t(null,h.join("."),u,f,e,o,this._targetAccess)):o.toLowerCase()===t.TWO_WAY_MODE&&(this._twoWay=!0,this._destChangedRegistration=this.attachChangeHandler(u,function(n){var t=n;(typeof t!="string"||t===null||t===c._destinationProperty)&&c.updateSourceFromDest()}));this.setSource(i)}return t.prototype.isForDestination=function(n,t){return n===this._destination&&t===this._destinationProperty},t.prototype.unbind=function(){this._source=null;this._sourceChangedRegistration&&(this._sourceChangedRegistration.unregister(),this._sourceChangedRegistration=null);this._childBinding&&(this._childBinding.unbind(),this._childBinding=null);this._destChangedRegistration&&(this._destChangedRegistration.unregister(),this._destChangedRegistration=null)},t.prototype.updateSourceFromDest=function(){if(this._source&&this._twoWay){this._paused=!0;var n=this._targetAccess.getValue(this._destination,this._destinationProperty);this._converter&&(n=this._converter.convertFrom(n));this._source[this._sourceProperty]=n;this._paused=!1}},t.prototype.updateDestination=function(){if(!this._paused){this._paused=!0;var n=this.getValue();this._childBinding?this._childBinding.setSource(n):this._targetAccess.isSourceSupported(this._source)&&(this._converter&&(n=this._converter.convertTo(n)),this._targetAccess.isValueSupported(n)&&this._targetAccess.setValue(this._destination,this._destinationProperty,this._source,n));this._paused=!1}},t.prototype.setSource=function(n){var t=this;this._sourceChangedRegistration&&(this._sourceChangedRegistration.unregister(),this._sourceChangedRegistration=null);this._source=n;this._source&&(this._sourceChangedRegistration=this.attachChangeHandler(this._source,function(n){(typeof n!="string"||n===null||n===t._sourceProperty)&&t.updateDestination()}));this.updateDestination();this.updateSourceFromDest()},t.prototype.attachChangeHandler=function(n,t){if(n.propertyChanged)return n.propertyChanged.addHandler(t);var i=n;if((i.tagName==="INPUT"||i.tagName==="SELECT")&&i.addEventListener&&i.removeEventListener)return i.addEventListener("change",t),{unregister:function(){return i.removeEventListener("change",t)}}},t.prototype.getValue=function(){return this._source&&this._source[this._sourceProperty]},t.ONE_WAY_MODE="oneway",t.TWO_WAY_MODE="twoway",t}();n.Binding=u}(Common||(Common={})); //! Copyright (C) Microsoft. All rights reserved. (function(n){"use strict";var t=Microsoft.Plugin,r,i;(function(n){n[n.On=0]="On";n[n.Off=1]="Off";n[n.Disabled=2]="Disabled"})(n.Tristate||(n.Tristate={}));r=n.Tristate;i=function(){function i(){}return i.initialize=function(){i.AriaConverterElement=document.createElement("span");i.CreateShortenedUrlConverter=i.getCreateShortenedUrlConverter();i.HtmlTooltipFromResourceConverter=i.getHtmlTooltipFromResourceConverter();i.IntToStringConverter=i.getIntToStringConverter();i.IntToStringWithGroupSeperatorConverter=i.getIntToStringWithGroupSeperatorConverter();i.IntToBooleanConverter=i.getIntToBooleanConverter();i.InvertBool=i.invertBoolConverter();i.IsTabbableToTabIndexConverter=i.getIsTabbableToTabIndexConverter();i.JsonHtmlTooltipToInnerTextConverter=i.getJsonHtmlTooltipToInnerTextConverter();i.NotDisabledToTrue=i.getNotDisabledToTrueConverter();i.NullPermittedConverter=i.getNullPermittedConverter();i.OnToTrue=i.getOnToTrueConverter();i.ResourceConverter=i.getResourceConverter();i.StringToBooleanConverter=i.getStringToBooleanConverter();i.StringToIntConverter=i.getStringToIntConverter();i.ThemedImageConverter=i.getThemedImageConverter()},i.getCreateShortenedUrlConverter=function(){return{convertTo:function(t){return n.ToolWindowHelpers.createShortenedUrlText(t)},convertFrom:null}},i.getResourceConverter=function(){return{convertTo:function(n){return n?t.Resources.getString(n):""},convertFrom:null}},i.getThemedImageConverter=function(){return{convertTo:function(n){return t.Theme.getValue(n)},convertFrom:null}},i.getStringToBooleanConverter=function(){return{convertTo:function(n){return n==="true"?!0:!1},convertFrom:function(n){return n?"true":"false"}}},i.getStringToIntConverter=function(){return{convertTo:function(n){return n>>0},convertFrom:function(n){return n.toString()}}},i.getIntToStringConverter=function(){return{convertTo:function(n){return n!==null&&n!==undefined?n.toString():""},convertFrom:function(n){return n>>0}}},i.getIntToStringWithGroupSeperatorConverter=function(){return{convertTo:function(t){return t!==null&&t!==undefined?n.FormattingHelpers.getDecimalLocaleString(t,!0):""},convertFrom:function(n){var i=t.Culture.NumberFormat;return i&&i.numberGroupSeparator&&(n=n.replace(i.numberGroupSeparator,"")),n>>0}}},i.getIntToBooleanConverter=function(){return{convertTo:function(n){return!!n},convertFrom:function(n){return n?1:0}}},i.invertBoolConverter=function(){return{convertTo:function(n){return!n},convertFrom:function(n){return!n}}},i.getIsTabbableToTabIndexConverter=function(){return{convertTo:function(n){return n?0:-1},convertFrom:null}},i.getHtmlTooltipFromResourceConverter=function(){return{convertTo:function(n){return JSON.stringify({content:t.Resources.getString(n),contentContainsHTML:!0})},convertFrom:null}},i.getJsonHtmlTooltipToInnerTextConverter=function(){return{convertTo:function(n){var t,r;if(n.match(i.JSONRegex))try{return t=JSON.parse(n),t.contentContainsHTML?(i.AriaConverterElement.innerHTML=t.content,r=i.AriaConverterElement.innerText,i.AriaConverterElement.innerHTML="",r):t.content}catch(u){}return n},convertFrom:null}},i.getNotDisabledToTrueConverter=function(){return{convertTo:function(n){return n!==2&&n!==null&&typeof n!="undefined"},convertFrom:null}},i.getNullPermittedConverter=function(){return{convertTo:function(n){return n},convertFrom:function(n){return n}}},i.getOnToTrueConverter=function(){return{convertTo:function(n){return n===0},convertFrom:function(n){return n?0:1}}},i.JSONRegex=/^\{.*\}$/,i}();n.CommonConverters=i;i.initialize()})(Common||(Common={})); //! Copyright (C) Microsoft. All rights reserved. (function(){"use strict"})(Common||(Common={})); //! Copyright (C) Microsoft. All rights reserved. (function(n){"use strict";var t=function(){function t(t,i){F12.Tools.Utility.Assert.areEqual(typeof t,"function","The given control '"+t+"' ("+typeof t+") doesn't represent a control.");this.controlType=t;this.templateId=i;this.isTemplateContorl=this.controlType===n.TemplateControl||this.controlType.prototype instanceof n.TemplateControl}return t.createFromString=function(n){var f,r,i,e,u;return F12.Tools.Utility.Assert.isTrue(!!n,"Invalid control construction string."),r=n.split(/[()]/,2),r&&r.length>0&&(i=r[0],i&&(i=i.trim()),F12.Tools.Utility.Assert.isTrue(!!i,"Invalid control construction string. The control class name is required."),e=t.getControlType(i),u=r[1],u&&(u=u.trim()),f=new t(e,u)),F12.Tools.Utility.Assert.isTrue(!!f,"Invalid control construction string."),f},t.createFromObject=function(n){if(n instanceof t)return n;var i=n;return F12.Tools.Utility.Assert.areEqual(typeof i,"function","The given control '"+i+"' doesn't represent a control type which implements IControl."),new t(i)},t.createFromStringOrType=function(n){return typeof n=="string"?t.createFromString(n):t.createFromObject(n)},t.prototype.getNewControl=function(){return this.isTemplateContorl?new this.controlType(this.templateId):new this.controlType},t.getControlType=function(n){var t,r,i,u;for(F12.Tools.Utility.Assert.isTrue(!!n,"Invalid control name."),t=window,r=n.split("."),i=0;i0;)for(u=r.pop(),f=u.childNodes.length-1;f>=0;f--)t=u.childNodes.item(f),t.nodeType===Node.COMMENT_NODE?u.removeChild(t):t.hasChildNodes()&&r.push(t);return i},t.prototype.getControlInstance=function(t,i){var u,r;return F12.Tools.Utility.Assert.isTrue(!!t,"Invalid control name."),u=n.ControlConstruction.createFromString(t),i&&(u.templateId=i),r=u.getNewControl(),F12.Tools.Utility.Assert.hasValue(r.rootElement,"The given control '"+t+"' doesn't represent a control type which implements IControl."),r.rootElement.control!==r&&(r.rootElement.control=r),r},t.prototype.resolvePlaceholders=function(t){var r,u,i,f;if(t.hasAttribute(n.TemplateDataAttributes.CONTROL))t=this.resolvePlaceholder(t);else for(r=t.querySelectorAll("div["+n.TemplateDataAttributes.CONTROL+"]"),u=r.length,i=0;i>0;this.propertyChanged.invoke(i.TabIndexPropertyName);this.onTabIndexChanged(t,this._tabIndex)}},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"templateId",{get:function(){return this._templateId},set:function(n){this._templateId!==n&&(this._templateId=n,this._binding.unbind(),this.setRootElementFromTemplate(),this.propertyChanged.invoke(i.TemplateIdPropertyName))},enumerable:!0,configurable:!0}),i.initialize=function(){n.ObservableHelpers.defineProperty(i,i.ClassNamePropertyName,null,function(n,t,i){return n.onClassNameChanged(t,i)});n.ObservableHelpers.defineProperty(i,i.IsEnabledPropertyName,!0,function(n){return n.onIsEnabledChanged()});n.ObservableHelpers.defineProperty(i,i.IsVisiblePropertyName,!0,function(n){return n.onIsVisibleChanged()});n.ObservableHelpers.defineProperty(i,i.TooltipPropertyName,null,function(n){return n.onTooltipChanged()})},i.prototype.getBinding=function(n,t){var i;return this._binding&&(i=this._binding.findBinding(n,t)),i},i.prototype.onApplyTemplate=function(){this.onClassNameChanged(null,this.className);this.onIsVisibleChanged();this.onTabIndexChanged(null,this._tabIndex);this.onTooltipChanged()},i.prototype.onInitializeOverride=function(){},i.prototype.onModelChanged=function(){},i.prototype.onModelChanging=function(){},i.prototype.onTemplateChanging=function(){},i.prototype.getNamedControl=function(n){var t=this.getNamedElement(n);return t?t.control:null},i.prototype.getNamedElement=function(t){var r=[],i,f,u;for(r.push(this.rootElement);r.length>0;){if(i=r.pop(),i.getAttribute(n.TemplateDataAttributes.NAME)===t)return i;if(i.children&&(!i.hasAttribute(n.TemplateDataAttributes.CONTROL)||i===this.rootElement))for(f=i.children.length,u=0;u0;){var r=e.pop(),o=r.control,s=r;if(o&&o!==i&&(s=o),s&&(u=r.getAttributeNode(n.TemplateDataAttributes.BINDING),u&&(f=f||[],t.extractBindingCommandsForBinding(f,s,r,u.value,!1),r.removeAttributeNode(u)),u=r.getAttributeNode(n.TemplateDataAttributes.CONTROL_BINDING),u&&(f=f||[],t.extractBindingCommandsForBinding(f,s,r,u.value,!0),r.removeAttributeNode(u)),u=r.getAttributeNode(n.TemplateDataAttributes.OPTIONS),u&&(f=f||[],c=o||r,t.extractBindingCommandsForOptions(f,c,r,u.value),r.removeAttributeNode(u))),r.children&&(!r.hasAttribute(n.TemplateDataAttributes.CONTROL)||r===i.rootElement))for(l=r.children.length,h=0;h0?u:null},t.getConverterInstance=function(n){for(var u,t=window,r=n.split("."),i=0;ik&&(u=c+this.targetButtonElement.offsetWidth,f=u-this.rootElement.offsetWidth,f>=b&&(i=f,y=u));this.rootElement.style.left=v+i-d+"px";t=l+this.targetButtonElement.offsetHeight;e=t+this.rootElement.offsetHeight;e>w&&(o=l,s=o-this.rootElement.offsetHeight,s>=p&&(t=s,e=o));parseInt(window.getComputedStyle(this.rootElement).borderTopWidth)>0&&parseInt(window.getComputedStyle(this.targetButtonElement).borderBottomWidth)>0&&t--;this.rootElement.style.top=a+t-g+"px"}},r.totalOffsetLeft=function(n){var t=0;do isNaN(n.offsetLeft)||(t+=n.offsetLeft);while(n=n.offsetParent);return t},r.totalOffsetTop=function(n){var t=0;do isNaN(n.offsetTop)||(t+=n.offsetTop);while(n=n.offsetParent);return t},r.prototype.onBlur=function(n){this.keepVisibleOnBlur||document.hasFocus()||this._tabLastPressed||this.targetButtonElement&&this.targetButtonElement.contains(n.relatedTarget)||(this.isVisible=!1)},r.prototype.onTargetButtonElementChanged=function(n,i){var r,u;n&&(n.removeAttribute("aria-haspopup"),n.removeAttribute("aria-owns"),this._targetButtonClickEvtReg&&(this._targetButtonClickEvtReg.unregister(),this._targetButtonClickEvtReg=null),n.removeEventListener("click",this._targetButtonClickHandler),n.removeEventListener("keyup",this._targetButtonKeyHandler));i&&(i.setAttribute("aria-haspopup","true"),i.setAttribute("aria-owns",this.rootElement.id),r=i.control,r&&r instanceof t.Button?(u=r,this._targetButtonClickEvtReg=u.click.addHandler(this._targetButtonClickHandler)):(i.addEventListener("click",this._targetButtonClickHandler),i.addEventListener("keyup",this._targetButtonKeyHandler)))},r.prototype.onTargetButtonClick=function(){this.show()},r.prototype.onTargetButtonKeyUp=function(n){(n.keyCode===32||n.keyCode===13)&&(this.show(),n.preventDefault(),n.stopImmediatePropagation())},r.prototype.onWindowResize=function(){this.isVisible=!1},r.prototype.onFocusOut=function(n){var f=this._tabLastPressed!==0||n.relatedTarget!==null,e=n.relatedTarget!==this.rootElement&&!this.rootElement.contains(n.relatedTarget),r,u,t,i;if(f&&e)if(this._tabLastPressed!==0){if(r=this.rootElement.querySelectorAll("[tabindex]"),u=this.rootElement,this._tabLastPressed===1){for(t=0;t=0&&i.offsetParent){u=i;break}}else for(t=r.length-1;t>=0;t--)if(i=r.item(t),i.tabIndex>=0&&i.offsetParent){u=i;break}window.setImmediate(function(){u.focus()})}else this.targetButtonElement&&this.targetButtonElement.contains(n.relatedTarget)||(this.isVisible=!1,window.setImmediate(function(){n.target&&n.target.focus()}));return!1},r.prototype.onDocumentMouseHandler=function(n){var t=this.rootElement.contains(n.target),i,r;if(!t)if(i=this.targetButtonElement&&this.targetButtonElement.contains(n.target),i)n.type==="click"&&this.dismissOnTargetButtonClick&&(this.isVisible=!1),n.stopImmediatePropagation(),n.preventDefault();else if(r=document.elementFromPoint(n.x,n.y),t=this.rootElement.contains(r),!t){this._skipTargetButtonFocus=!0;try{this.isVisible=!1}finally{this._skipTargetButtonFocus=!1}}},r.prototype.onKeyEvent=function(t){if(t.stopImmediatePropagation(),n.preventIEKeys(t),this._tabLastPressed=t.keyCode===9?t.shiftKey?2:1:0,t.type==="keyup"){var i=this.onKeyUpOverride(t);if(!i)switch(t.keyCode){case 27:this.isVisible=!1}}else if(t.type==="keydown")this.onKeyDownOverride(t);return!1},r.CLASS_POPUP="BPT-popup",r.CLASS_POPUP_ACTIVE_ONTARGET="BPT-popupActive",r}(n.TemplateControl);t.PopupControl=i;i.initialize()})(t=n.Controls||(n.Controls={}))}(Common||(Common={})); //! Copyright (C) Microsoft. All rights reserved. __extends=this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);r.prototype=t.prototype;n.prototype=new r},function(n){var t;(function(t){"use strict";var i=function(t){function i(i){var r=this;this._mouseHandler=function(n){return r.onMouseEvent(n)};this._keyHandler=function(n){return r.onKeyboardEvent(n)};this.click=new n.EventSource;t.call(this,i||"Common.defaultButtonTemplate")}return __extends(i,t),i.initialize=function(){n.ObservableHelpers.defineProperty(i,i.IsPressedPropertyName,!1,function(n,t,i){return n.onIsPressedChanged(t,i)})},i.prototype.onApplyTemplate=function(){if(t.prototype.onApplyTemplate.call(this),this.rootElement){this.rootElement.hasAttribute("role")||this.rootElement.setAttribute("role","button");this.rootElement.addEventListener("click",this._mouseHandler);this.rootElement.addEventListener("mousedown",this._mouseHandler);this.rootElement.addEventListener("mouseup",this._mouseHandler);this.rootElement.addEventListener("mouseleave",this._mouseHandler);this.rootElement.addEventListener("keydown",this._keyHandler);this.rootElement.addEventListener("keyup",this._keyHandler);this.onIsPressedChanged(null,this.isPressed)}},i.prototype.onTemplateChanging=function(){t.prototype.onTemplateChanging.call(this);this.rootElement&&(this.rootElement.removeEventListener("click",this._mouseHandler),this.rootElement.removeEventListener("mousedown",this._mouseHandler),this.rootElement.removeEventListener("mouseup",this._mouseHandler),this.rootElement.removeEventListener("mouseleave",this._mouseHandler),this.rootElement.removeEventListener("keydown",this._keyHandler),this.rootElement.removeEventListener("keyup",this._keyHandler))},i.prototype.onTooltipChangedOverride=function(){t.prototype.onTooltipChangedOverride.call(this);this.tooltip?(this.rootElement.setAttribute("data-plugin-vs-tooltip",this.tooltip),this.rootElement.setAttribute("aria-label",n.CommonConverters.JsonHtmlTooltipToInnerTextConverter.convertTo(this.tooltip))):(this.rootElement.removeAttribute("data-plugin-vs-tooltip"),this.rootElement.removeAttribute("aria-label"))},i.prototype.press=function(n){this.isEnabled&&this.click.invoke(n)},i.prototype.onKeyboardEventOverride=function(){return!1},i.prototype.onIsPressedChanged=function(n,t){this.rootElement&&(t?this.rootElement.classList.add(i.CLASS_PRESSED):this.rootElement.classList.remove(i.CLASS_PRESSED))},i.prototype.onMouseEvent=function(n){if(this.isEnabled){var t=!1;switch(n.type){case"click":this.rootElement.focus();this.click.invoke(n);t=!0;break;case"mousedown":this.isPressed=!0;break;case"mouseup":case"mouseleave":this.isPressed=!1;break;default:F12.Tools.Utility.Assert.fail("Unexpected")}t&&(n.stopImmediatePropagation(),n.preventDefault())}},i.prototype.onKeyboardEvent=function(n){if(this.isEnabled&&!this.onKeyboardEventOverride(n)&&(n.keyCode===13||n.keyCode===32))switch(n.type){case"keydown":this.isPressed=!0;break;case"keyup":this.isPressed&&(this.isPressed=!1,this.click.invoke(n));break;default:F12.Tools.Utility.Assert.fail("Unexpected")}},i.CLASS_PRESSED="pressed",i.IsPressedPropertyName="isPressed",i}(t.ContentControl);t.Button=i;i.initialize()})(t=n.Controls||(n.Controls={}))}(Common||(Common={})); //! Copyright (C) Microsoft. All rights reserved. __extends=this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);r.prototype=t.prototype;n.prototype=new r},function(n){var t;(function(n){"use strict";var t=function(n){function t(t){n.call(this,t)}return __extends(t,n),t.prototype.onKeyboardEventOverride=function(n){if(n.keyCode===40&&n.altKey&&!n.ctrlKey)switch(n.type){case"keydown":return this.isPressed=!0,!0;case"keyup":return this.isPressed&&(this.isPressed=!1,this.press()),!0}return!1},t}(n.Button);n.DropDownButton=t})(t=n.Controls||(n.Controls={}))}(Common||(Common={})); //! Copyright (C) Microsoft. All rights reserved. __extends=this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);r.prototype=t.prototype;n.prototype=new r},function(n){var t;(function(t){"use strict";var i=function(t){function i(n){var i=this;this._focusInHandler=function(n){return i.onFocusIn(n)};this._selectedIndex=-1;this._menuItemsClickRegistration=[];this._menuItemsPropChangedRegistration=[];this.menuItems=[];t.call(this,n||"Common.menuControlTemplate")}return __extends(i,t),i.initialize=function(){n.ObservableHelpers.defineProperty(i,i.MenuItemsTemplateIdPropertyName,null,function(n,t,i){return n.onMenuTemplateIdChanged(t,i)});n.ObservableHelpers.defineProperty(i,i.SelectedItemPropertyName,null,function(n){return n.onSelectedItemChanged()})},i.prototype.addClickHandlerToMenuItem=function(n,t){var i=this.getNamedElement(n);i&&i.control&&i.control.click.addHandler(t)},i.prototype.onIsVisibleChangedOverride=function(){var r=this,n;if(this.targetButtonElement&&this.rootElement&&this.isVisible&&(this.isMenuContentsLongerThanButton()?(this.targetButtonElement.classList.add(i.CLASS_LONG_MENU),this.rootElement.classList.add(i.CLASS_LONG_MENU)):(this.targetButtonElement.classList.remove(i.CLASS_LONG_MENU),this.rootElement.classList.remove(i.CLASS_LONG_MENU))),t.prototype.onIsVisibleChangedOverride.call(this),this.isVisible){for(this.rootElement.addEventListener("focusin",this._focusInHandler),this.selectedItem=null,n=0;n0&&window.setImmediate(function(){r.menuItems[0].rootElement.focus()})}else this.rootElement.removeEventListener("focusin",this._focusInHandler)},i.prototype.onKeyUpOverride=function(n){var i=!1;switch(n.keyCode){case 40:this.changeSelection(0);i=!0;break;case 38:this.changeSelection(1);i=!0;break;case 32:case 13:this.pressSelectedItem();i=!0}return i||(i=t.prototype.onKeyUpOverride.call(this,n)),i},i.prototype.setPopupPosition=function(){if(t.prototype.setPopupPosition.call(this),this.isMenuContentsLongerThanButton()){var n=parseInt(window.getComputedStyle(this.rootElement).borderTopWidth),i=parseInt(this.rootElement.style.top.replace(/px/,""));this.rootElement.style.top=i-n+"px"}},i.prototype.onMenuItemClick=function(){this.dismissOnMenuItemClick&&(this.isVisible=!1)},i.prototype.onMenuItemPropertyChanged=function(n,t){var r,i;if((t==="isChecked"||t==="groupName")&&n.groupName&&n.isChecked)for(r=0;r0;)this._menuItemsPropChangedRegistration.pop().unregister();while(this._menuItemsClickRegistration.length>0)this._menuItemsClickRegistration.pop().unregister();if(i)for(this.menuItems=[],this.selectedItem=null,this._menuItemsPropChangedRegistration=[],this._menuItemsClickRegistration=[],f=this.rootElement.querySelectorAll("li["+n.TemplateDataAttributes.CONTROL+"]"),u=0;u=0&&this._selectedIndext}return!1},i.CLASS_LONG_MENU="longMenu",i.CLASS_SELECTED="selected",i.MenuItemsTemplateIdPropertyName="menuItemsTemplateId",i.SelectedItemPropertyName="selectedItem",i}(t.PopupControl);t.MenuControl=i;i.initialize()})(t=n.Controls||(n.Controls={}))}(Common||(Common={})); //! Copyright (C) Microsoft. All rights reserved. __extends=this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);r.prototype=t.prototype;n.prototype=new r},function(n){var t;(function(t){"use strict";var i=function(t){function i(i){var r=this;this._mouseHandler=function(n){return r.onMouseEvent(n)};this._keyUpHandler=function(n){return r.onKeyUp(n)};this._domEventHanlder=function(n){return r.onDomAttributeModified(n)};t.call(this,i||"Common.menuItemTemplate");this.click=new n.EventSource}return __extends(i,t),i.initialize=function(){n.ObservableHelpers.defineProperty(i,i.GroupNamePropertyName,null);n.ObservableHelpers.defineProperty(i,i.IsChecked,!1,function(n,t,i){return n.onIsCheckedChanged(t,i)})},i.prototype.onApplyTemplate=function(){t.prototype.onApplyTemplate.call(this);this.rootElement&&(this.rootElement.addEventListener("click",this._mouseHandler),this.rootElement.addEventListener("mousedown",this._mouseHandler),this.rootElement.addEventListener("mouseup",this._mouseHandler),this.rootElement.addEventListener("mouseleave",this._mouseHandler),this.rootElement.addEventListener("keyup",this._keyUpHandler),this.rootElement.addEventListener("DOMAttrModified",this._domEventHanlder));this.onIsCheckedChanged(null,this.isChecked)},i.prototype.onIsEnabledChangedOverride=function(){t.prototype.onIsEnabledChangedOverride.call(this);this.isEnabled?this.rootElement.removeAttribute("disabled"):this.rootElement.setAttribute("disabled")},i.prototype.onKeyUpOverride=function(){return!1},i.prototype.onMouseClickOverride=function(){return!1},i.prototype.onTemplateChanging=function(){t.prototype.onTemplateChanging.call(this);this.rootElement&&(this.rootElement.removeEventListener("click",this._mouseHandler),this.rootElement.removeEventListener("mousedown",this._mouseHandler),this.rootElement.removeEventListener("mouseup",this._mouseHandler),this.rootElement.removeEventListener("mouseleave",this._mouseHandler),this.rootElement.removeEventListener("keyup",this._keyUpHandler),this.rootElement.removeEventListener("DOMAttrModified",this._domEventHanlder))},i.prototype.press=function(n){this.isEnabled&&this.click.invoke(n)},i.prototype.onDomAttributeModified=function(n){if(n.attrName==="aria-checked"){var t=n.newValue==="true";this.isChecked!==t&&(this.isChecked=t)}},i.prototype.onIsCheckedChanged=function(n,t){this.rootElement&&(t?this.rootElement.classList.remove(i.CLASS_HIDDEN_CHECK_MARK):this.rootElement.classList.add(i.CLASS_HIDDEN_CHECK_MARK),this.rootElement.setAttribute("aria-checked",""+t),this.rootElement.focus())},i.prototype.onKeyUp=function(n){if(this.isEnabled){var t=this.onKeyUpOverride(n);t||(n.keyCode===13||n.keyCode===32)&&(this.press(n),t=!0);t&&n.stopImmediatePropagation()}},i.prototype.onMouseEvent=function(n){if(this.isEnabled){switch(n.type){case"click":var t=this.onMouseClickOverride(n);t||this.press(n);break;case"mousedown":case"mouseup":case"mouseleave":break;default:F12.Tools.Utility.Assert.fail("Unexpected")}n.stopImmediatePropagation()}},i.CLASS_HIDDEN_CHECK_MARK="hiddenCheckMark",i.GroupNamePropertyName="groupName",i.IsChecked="isChecked",i}(t.ContentControl);t.MenuItem=i;i.initialize()})(t=n.Controls||(n.Controls={}))}(Common||(Common={})); //! Copyright (C) Microsoft. All rights reserved. __extends=this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);r.prototype=t.prototype;n.prototype=new r},function(n){var t;(function(t){"use strict";var i=function(t){function i(n){t.call(this,n||"Common.menuItemCheckBoxTemplate")}return __extends(i,t),i.prototype.onKeyUpOverride=function(i){var r=!1;return i.key===n.Keys.SPACEBAR&&(this.isChecked=!this.isChecked,r=!0),r||(r=t.prototype.onKeyUpOverride.call(this,i)),r},i.prototype.press=function(n){var i=this.getNamedElement("BPT-menuItemCheckBox");n&&n.srcElement===i||(this.isChecked=!this.isChecked,t.prototype.press.call(this,n))},i}(n.Controls.MenuItem);t.CheckBoxMenuItem=i})(t=n.Controls||(n.Controls={}))}(Common||(Common={})); //! Copyright (C) Microsoft. All rights reserved. __extends=this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);r.prototype=t.prototype;n.prototype=new r},function(n){var t;(function(t){"use strict";var i=function(t){function i(n){var i=this;this._focusInHandler=function(n){return i.onFocusIn(n)};t.call(this,n||"Common.menuItemTextBoxTemplate")}return __extends(i,t),i.initialize=function(){n.ObservableHelpers.defineProperty(i,i.PlaceholderPropertyName,null)},i.prototype.onApplyTemplate=function(){t.prototype.onApplyTemplate.call(this);this._textBox=this.getNamedElement("BPT-menuItemTextBox");F12.Tools.Utility.Assert.isTrue(!!this._textBox,"Expecting a textbox with the name BPT-menuItemTextBox");this.rootElement.addEventListener("focusin",this._focusInHandler)},i.prototype.onKeyUpOverride=function(n){var i=!1;return n.srcElement===this._textBox&&n.keyCode===27&&(n.stopImmediatePropagation(),i=!0),i||(i=t.prototype.onKeyUpOverride.call(this,n)),i},i.prototype.onTemplateChanging=function(){t.prototype.onTemplateChanging.call(this);this.rootElement&&this.rootElement.removeEventListener("focusin",this._focusInHandler)},i.prototype.press=function(){},i.prototype.onFocusIn=function(){this._textBox.focus()},i.PlaceholderPropertyName="placeholder",i}(n.Controls.MenuItem);t.TextBoxMenuItem=i;i.initialize()})(t=n.Controls||(n.Controls={}))}(Common||(Common={})); //! Copyright (C) Microsoft. All rights reserved. __extends=this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);r.prototype=t.prototype;n.prototype=new r},function(n){var t;(function(t){"use strict";var i=function(t){function i(n){var i=this;this._focusInHandler=function(n){return i.onFocusIn(n)};t.call(this,n||"Common.menuItemComboBoxTemplate")}return __extends(i,t),i.initialize=function(){n.ObservableHelpers.defineProperty(i,"items",null);n.ObservableHelpers.defineProperty(i,"selectedValue",null)},i.prototype.onApplyTemplate=function(){t.prototype.onApplyTemplate.call(this);this._selectElement=this.getNamedElement("BPT-menuItemComboBox");F12.Tools.Utility.Assert.isTrue(!!this._selectElement,"Expecting a combobox with the name BPT-menuItemComboBox");this.rootElement.addEventListener("focusin",this._focusInHandler)},i.prototype.onKeyUpOverride=function(i){var r=!1;return(i.srcElement===this._selectElement&&i.key===n.Keys.SPACEBAR||i.key===n.Keys.ENTER||i.key===n.Keys.DOWN||i.key===n.Keys.UP)&&(r=!0),r||(r=t.prototype.onKeyUpOverride.call(this,i)),r},i.prototype.onTemplateChanging=function(){t.prototype.onTemplateChanging.call(this);this.rootElement&&this.rootElement.removeEventListener("focusin",this._focusInHandler)},i.prototype.press=function(){},i.prototype.onFocusIn=function(){this._selectElement.focus()},i}(n.Controls.MenuItem);t.ComboBoxMenuItem=i;i.initialize()})(t=n.Controls||(n.Controls={}))}(Common||(Common={})); //! Copyright (C) Microsoft. All rights reserved. __extends=this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);r.prototype=t.prototype;n.prototype=new r},function(n){var t;(function(t){"use strict";var i=function(n){function t(t){n.call(this,t)}return __extends(t,n),t.initialize=function(){},t.prototype.addClickHandlerToButton=function(n,t){var i=this.getNamedElement(n);i&&i.control&&i.control.click.addHandler(t)},t}(n.TemplateControl);t.Panel=i;i.initialize()})(t=n.Controls||(n.Controls={}))}(Common||(Common={})); //! Copyright (C) Microsoft. All rights reserved. __extends=this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);r.prototype=t.prototype;n.prototype=new r},function(n){var t;(function(t){"use strict";var i=function(t){function i(n){var i=this;this._keyboardHandler=function(n){return i.onKeyboardEvent(n)};t.call(this,n||"Common.defaultTextBoxTemplate")}return __extends(i,t),Object.defineProperty(i.prototype,"focusableElement",{get:function(){return this.rootElement},enumerable:!0,configurable:!0}),i.initialize=function(){n.ObservableHelpers.defineProperty(i,i.PlaceholderPropertyName,"");n.ObservableHelpers.defineProperty(i,i.ReadonlyPropertyName,!1,function(n){return n.onReadonlyChanged()});n.ObservableHelpers.defineProperty(i,i.TextPropertyName,"",function(n){return n.onTextChangedOverride()})},i.prototype.onApplyTemplate=function(){t.prototype.onApplyTemplate.call(this);this._inputRootElement=this.getNamedElement(i.InputElementName)||this.rootElement;F12.Tools.Utility.Assert.isTrue(!!this._inputRootElement,"Expecting a root element for the input element in TextBox.");this._textBinding=this.getBinding(this._inputRootElement,"value");this._inputRootElement.addEventListener("keydown",this._keyboardHandler);this._inputRootElement.addEventListener("keypress",this._keyboardHandler);this._inputRootElement.addEventListener("input",this._keyboardHandler)},i.prototype.onIsEnabledChangedOverride=function(){t.prototype.onIsEnabledChangedOverride.call(this);this.isEnabled?this.rootElement.removeAttribute("disabled"):this.rootElement.setAttribute("disabled")},i.prototype.onTextChangedOverride=function(){},i.prototype.onTemplateChanging=function(){t.prototype.onTemplateChanging.call(this);this._inputRootElement&&(this._inputRootElement.removeEventListener("keypress",this._keyboardHandler),this._inputRootElement.removeEventListener("keydown",this._keyboardHandler),this._inputRootElement.removeEventListener("input",this._keyboardHandler))},i.prototype.onKeyboardEvent=function(t){if(this.isEnabled)switch(t.type){case"keydown":t.key===n.Keys.ENTER&&this._textBinding&&this._textBinding.updateSourceFromDest();break;case"keypress":this.clearOnEscape&&t.keyCode===27&&(this._inputRootElement.value="",this._textBinding&&this._textBinding.updateSourceFromDest(),t.stopImmediatePropagation(),t.preventDefault());break;case"input":this.updateOnInput&&this._textBinding&&this._textBinding.updateSourceFromDest();break;default:F12.Tools.Utility.Assert.fail("Unexpected")}},i.prototype.onReadonlyChanged=function(){this._inputRootElement&&(this._inputRootElement.readOnly=this.readonly)},i.PlaceholderPropertyName="placeholder",i.ReadonlyPropertyName="readonly",i.TextPropertyName="text",i.InputElementName="_textBoxRoot",i}(n.TemplateControl);t.TextBox=i;i.initialize()})(t=n.Controls||(n.Controls={}))}(Common||(Common={})); //! Copyright (C) Microsoft. All rights reserved. __extends=this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);r.prototype=t.prototype;n.prototype=new r},function(n){var t;(function(t){"use strict";var i=Microsoft.Plugin,r=function(t){function r(n){t.call(this,n||"Common.searchBoxTemplate");this.updateOnInput=!0;this.placeholder=i.Resources.getString("/Common/SearchBoxPlaceholder")}return __extends(r,t),Object.defineProperty(r.prototype,"searchText",{get:function(){return this.text},set:function(n){this.text=n||""},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"searchProvider",{get:function(){return this._searchProvider},set:function(n){(this._searchProvider=n,this._searchProvider)&&(this._searchProvider.disableButtons&&this.hideNextPreviousButtons(),typeof this._searchProvider.searchText!="undefined"&&(this.searchText=this._searchProvider.searchText))},enumerable:!0,configurable:!0}),r.prototype.onApplyTemplate=function(){var r=this,u;t.prototype.onApplyTemplate.call(this);this._searchBoxBorder=this.getNamedElement("searchBoxBorder");this._searchBox=this.getNamedElement("_textBoxRoot");this._searchPreviousButton=this.getNamedElement("searchPreviousResult");this._searchPreviousButton.addEventListener("click",function(){r.findNextMatch(!1,0)});this._searchPreviousButton.addEventListener("keydown",function(n){return n.keyCode===13||n.keyCode===32?(r.findNextMatch(!1,1),!1):!0});this._searchNextButton=this.getNamedElement("searchNextResult");this._searchNextButton.addEventListener("click",function(){r.findNextMatch(!0,0)});this._searchNextButton.addEventListener("keydown",function(n){return n.keyCode===13||n.keyCode===32?(r.findNextMatch(!0,1),!1):!0});this.hideNextPreviousButtons();this._searchBox.addEventListener("keydown",function(n){return r.onKeyDownSearchBox(n)});u=new n.CutCopyPasteContextMenu(this._searchBox,this.onTextChangedOverride.bind(this));this._keydownHandler=function(n){return r.onKeyDownGlobal(n)};document.addEventListener("keydown",this._keydownHandler);i.F12&&i.F12.addEventListener("keydown",this._keydownHandler)},r.prototype.onTemplateChanging=function(){document.removeEventListener("keydown",this._keydownHandler);i.F12&&i.F12.removeEventListener("keydown",this._keydownHandler)},r.prototype.findNextMatch=function(t,i,u){var f=this,e;return u===void 0&&(u=n.Telemetry.CommandName.FIND_NEXT_OR_PREVIOUS),e=document.activeElement===this._searchBox,this.isEnabled=!1,this.searchProvider.findNextMatch(this.searchText,t,i,u).then(function(n){return f.isEnabled=!0,e&&window.setImmediate(function(){document.body&&document.body.contains(f._searchBox)&&f._searchBox.focus()}),n||(f.isEnabled=!0,f._searchBoxBorder.classList.add(r.RESULT_NOT_FOUND_CLASS),f.hideNextPreviousButtons()),n})},r.prototype.findAndHighlightMatches=function(){this._searchBoxBorder.classList.remove(r.RESULT_NOT_FOUND_CLASS);this.searchProvider.findAndHighlightMatches(this.searchText)},r.prototype.onTextChangedOverride=function(){this.findAndHighlightMatches();this.searchText===""?this.hideNextPreviousButtons():this.showNextPreviousButtons()},r.prototype.focusSearchBox=function(n,t){try{i.F12&&F12&&F12.Tools&&F12.Tools.Debugger&&F12.Tools.Debugger.Telemetry.logCommandWrapper(n,t,function(){})}catch(r){}this._searchBox.focus();this._searchBox.setSelectionRange(0,this.searchText.length)},r.prototype.onKeyDownGlobal=function(t){if(!document.body||!document.body.contains(this._searchBox))return!0;var i=!1;return(t.keyCode!==114||t.ctrlKey||t.altKey?t.keyCode===114&&t.ctrlKey&&!t.altKey?(this.updateSearchTextFromSelection(),this.findNextMatch(!t.shiftKey,1,n.Telemetry.CommandName.UPDATE_SEARCH_NEXT_OR_PREVIOUS),i=!0):t.keyCode===70&&t.ctrlKey&&!t.altKey&&(this.updateSearchTextFromSelection(),this.focusSearchBox(n.Telemetry.CommandName.DEBUGGER_FIND,1),i=!0):(this.findNextMatch(!t.shiftKey,1),i=!0),i)?(t.preventDefault(),t.stopImmediatePropagation(),!1):!0},r.prototype.onKeyDownSearchBox=function(n){return n.keyCode!==13||n.altKey||n.ctrlKey?n.keyCode===27&&this.clearSearchBox():this.findNextMatch(!n.shiftKey,1),!0},r.prototype.clearSearchBox=function(){try{i.F12&&F12&&F12.Tools&&F12.Tools.Debugger&&F12.Tools.Debugger.Telemetry.analytics.logExecuteCommand(n.Telemetry.CommandName.SEARCHBOX_CLEAR,1)}catch(t){}this.searchText="";this.findAndHighlightMatches();this.hideNextPreviousButtons()},r.prototype.updateSearchTextFromSelection=function(){var n=this.searchProvider.getSearchTextFromSelection(this.searchText);this.searchText=n;this.findAndHighlightMatches()},r.prototype.showNextPreviousButtons=function(){this._searchProvider.disableButtons||(this._searchPreviousButton.classList.remove(n.TemplateControl.CLASS_HIDDEN),this._searchNextButton.classList.remove(n.TemplateControl.CLASS_HIDDEN))},r.prototype.hideNextPreviousButtons=function(){this._searchPreviousButton.classList.add(n.TemplateControl.CLASS_HIDDEN);this._searchNextButton.classList.add(n.TemplateControl.CLASS_HIDDEN)},r.RESULT_NOT_FOUND_CLASS="BPT-SearchBox-NoResult",r.SEARCH_TIMEOUT=5e3,r.SEARCH_TERM_DECORATION_CLASS="searchTermDecoration",r}(t.TextBox);t.SearchControl=r})(t=n.Controls||(n.Controls={}))}(Common||(Common={})); //! Copyright (C) Microsoft. All rights reserved. __extends=this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);r.prototype=t.prototype;n.prototype=new r},function(n){var t;(function(t){"use strict";var i=function(i){function r(n){var t=this;this._modificationHandler=function(n){return t.onModificationEvent(n)};i.call(this,n);this.toggleIsCheckedOnClick=!0;this.click.addHandler(function(){t.toggleIsCheckedOnClick&&(t.isChecked=!t.isChecked)})}return __extends(r,i),r.initialize=function(){n.ObservableHelpers.defineProperty(t.Button,"isChecked",!1,function(n,t,i){return n.onIsCheckedChanged(t,i)})},r.prototype.onApplyTemplate=function(){if(i.prototype.onApplyTemplate.call(this),this.rootElement){this.rootElement.addEventListener("DOMAttrModified",this._modificationHandler);this.onIsCheckedChanged(null,this.isChecked)}},r.prototype.onTemplateChanging=function(){i.prototype.onTemplateChanging.call(this);this.rootElement&&this.rootElement.removeEventListener("DOMAttrModified",this._modificationHandler)},r.prototype.onKeyboardEventOverride=function(n){if(n.keyCode===40&&n.altKey&&!n.ctrlKey)switch(n.type){case"keydown":return this.press(n),!0}return!1},r.prototype.onIsCheckedChanged=function(n,t){this.rootElement&&(this._isChangingAriaPressed||(this._isChangingAriaPressed=!0,this.rootElement.setAttribute("aria-pressed",t+""),this._isChangingAriaPressed=!1),t?this.rootElement.classList.add(r.CLASS_CHECKED):this.rootElement.classList.remove(r.CLASS_CHECKED))},r.prototype.onModificationEvent=function(n){!this._isChangingAriaPressed&&this.isEnabled&&n.attrName==="aria-pressed"&&n.attrChange===n.MODIFICATION&&(this._isChangingAriaPressed=!0,this.isChecked=n.newValue==="true",this._isChangingAriaPressed=!1)},r.CLASS_CHECKED="checked",r}(t.Button);t.ToggleButton=i;i.initialize()})(t=n.Controls||(n.Controls={}))}(Common||(Common={})); //! Copyright (C) Microsoft. All rights reserved. __extends=this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);r.prototype=t.prototype;n.prototype=new r},function(n){var t;(function(t){"use strict";var i=function(t){function i(n){var i=this;this._activeIndex=-1;this._controls=[];this._controlsPropChangedRegistration=[];this._focusInHandler=function(n){return i.onFocusIn(n)};this._toolbarKeyHandler=function(n){return i.onToolbarKeyboardEvent(n)};this._toolbarPanel=null;t.call(this,n||"Common.defaultToolbarTemplate")}return __extends(i,t),i.initialize=function(){n.ObservableHelpers.defineProperty(i,i.PanelTemplateIdPropertyName,"",function(n,t,i){return n.onPanelTemplateIdChanged(t,i)});n.ObservableHelpers.defineProperty(i,i.TitlePropertyName,"")},i.prototype.getActiveElement=function(){return this._activeIndex>=0&&this._activeIndex0;)this._controlsPropChangedRegistration.pop().unregister();if(r)for(this._controls=[],this.setActiveIndex(-1),this._toolbarPanel=this.getNamedElement(i.TOOLBAR_PANEL_ELEMENT_NAME),F12.Tools.Utility.Assert.hasValue(this._toolbarPanel,"Expecting a toolbar panel with the name: "+i.TOOLBAR_PANEL_ELEMENT_NAME),this._toolbarPanel.addEventListener("focusin",this._focusInHandler),this._toolbarPanel.addEventListener("keydown",this._toolbarKeyHandler),u=0;u=this._controls.length)){t=n;r=!1;do i=this._controls[t],!r&&i.isVisible&&i.isEnabled?(this.setActiveIndex(t),r=!0):i.tabIndex=-1;while(n!==(t=(t+1)%this._controls.length))}},i.prototype.setActiveIndex=function(n,t){this._activeIndex>=0&&this._activeIndex=n;i--)r=this.panelRootElement.children[i],r&&(u=r.control,this.disposeItemContainer(u),this.panelRootElement.removeChild(r))},i.prototype.updateTooltip=function(n){this.panelRootElement&&(n?(this.panelRootElement.setAttribute("data-plugin-vs-tooltip",n),this.panelRootElement.setAttribute("aria-label",n)):(this.panelRootElement.removeAttribute("data-plugin-vs-tooltip"),this.panelRootElement.removeAttribute("aria-label")))},i.PanelRootElementName="_panel",i}(n.TemplateControl);t.ItemsControl=i;i.initialize()})(t=n.Controls||(n.Controls={}))}(Common||(Common={})); //! Copyright (C) Microsoft. All rights reserved. __extends=this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);r.prototype=t.prototype;n.prototype=new r},function(n){var t;(function(t){"use strict";var i=function(i){function r(n){var t=this;this._currentOffset=0;this._backwardScrollHandler=function(){return t.scrollBackward()};this._forwardScrollHandler=function(){return t.scrollForward()};this._onFocusInHandler=function(n){return t.onFocusIn(n)};this._onFocusOutHandler=function(n){return t.onFocusOut(n)};this._onKeyDownhandler=function(n){return t.onKeyDown(n)};i.call(this,n);this.selectedItem=null}return __extends(r,i),Object.defineProperty(r.prototype,"selectedItem",{get:function(){return this._selectedItem},set:function(n){if(n!==this._selectedItem){var t=this.getItemCount()===0?undefined:this.getIndex(n);t!==undefined?(this._selectedItem=n,this.selectedIndex=t):(this._selectedItem=null,this.selectedIndex=null);this.propertyChanged.invoke(r.SelectedItemPropertyName)}},enumerable:!0,configurable:!0}),r.initialize=function(){n.ObservableHelpers.defineProperty(r,r.IsVerticalPropertyName,!1,function(n){return n.onIsVerticalChanged()});n.ObservableHelpers.defineProperty(r,r.ScrollIncrementPropertyName,1,function(n){return n.updateButtons()});n.ObservableHelpers.defineProperty(r,r.ScrollPositionPropertyName,0,function(n){return n.onScrollPositionChanged()});n.ObservableHelpers.defineProperty(r,r.SelectedIndexPropertyName,null,function(n,t,i){return n.onSelectedIndexChanged(t,i)})},r.prototype.scrollBackward=function(){this.scrollPosition=Math.max(this.scrollPosition-this.scrollIncrement,0)},r.prototype.scrollForward=function(){this.scrollPosition+this.scrollIncrement=0&&this.scrollPosition=0&&n=0&&this.selectedIndex0&&(this.selectedIndex===null?n=this.getItemCount()-1:(F12.Tools.Utility.Assert.isTrue(this.selectedIndex>=0&&this.selectedIndex0&&(this.selectedIndex===null?n=0:(F12.Tools.Utility.Assert.isTrue(this.selectedIndex>=0&&this.selectedIndex=0;t-=this.scrollIncrement)if(this.isInView(n,t)){this.scrollPosition=t;return}F12.Tools.Utility.Assert.fail("Could not find a scroll setting that brings element fully into view - is your scrollIncrement too big or your panel incorrectly sized?")}},r.prototype.isInView=function(n,t){return!this.isForwardEdgeOutOfView(n,t)&&!this.isBackwardEdgeOutOfView(n,t)},r.prototype.isBackwardEdgeOutOfView=function(n,t){(t===undefined||t===null)&&(t=this.scrollPosition);var i=n[this._offsetProperty]-this.panelRootElement.children[t][this._offsetProperty];return i<0},r.prototype.isForwardEdgeOutOfView=function(n,t){(t===undefined||t===null)&&(t=this.scrollPosition);var i=this.panelRootElement.children[t],r=n[this._offsetProperty]+n[this._lengthProperty],u=i[this._offsetProperty]+this.panelRootElement[this._lengthProperty]-r;return u<0},r.prototype.updateButtons=function(){this._backwardScrollButton&&(F12.Tools.Utility.Assert.hasValue(this._forwardScrollButton),this._backwardScrollButton.isEnabled=this.scrollPosition>0,this._forwardScrollButton.isEnabled=this.scrollPosition+this.scrollIncrement=0&&this.red<=255,"Invalid red channel");F12.Tools.Utility.Assert.isTrue(this.green>=0&&this.green<=255,"Invalid green channel");F12.Tools.Utility.Assert.isTrue(this.blue>=0&&this.blue<=255,"Invalid blue channel");F12.Tools.Utility.Assert.isTrue(this.alpha>=0&&this.alpha<=1,"Invalid alpha")},n.prototype.hslToRgbHelper=function(n,t,i){return(i<0&&(i=i+1),i>1&&(i=i-1),i*6<1)?n+(t-n)*i*6:i*2<1?t:i*3<2?n+(t-n)*(2/3-i)*6:n},n.prototype.toNumber=function(n){return+n},n.DUMMY_ELEMENT=document.createElement("div"),n.RGBA_REGEXPS=[/^ *rgba\(([0-9]+), *([0-9]+), *([0-9]+), *([0-9.]+)\) *$/,/^ *rgb\(([0-9]+), *([0-9]+), *([0-9]+)\) *$/],n.TRANSPARENT_STRING="rgba(0, 0, 0, 0)",n}(),t;n.RgbaColor=i;t=function(){function n(n,t,i,r){this.hue=n;this.saturation=t;this.lightness=i;this.alpha=r;this.assertValid()}return n.prototype.setFromRgba=function(n){var e;n.assertValid();var i=n.red/255,r=n.green/255,u=n.blue/255,o,s,c,l=n.alpha,t=Math.max(i,r,u),h=Math.min(i,r,u),f=t-h;return c=Math.round(.5*(t+h)*100),f===0?(s=0,o=this.hue):(i===t?e=(r-u)/f%6:r===t?e=(u-i)/f+2:(F12.Tools.Utility.Assert.areEqual(u,t),e=(i-r)/f+4),o=Math.round(e*60+360)%360,s=Math.round(f/(1-Math.abs(t+h-1))*100)),this.setFromHsla(o,s,c,l)},n.prototype.setFromHsla=function(n,t,i,r){return this.hue!==n||this.saturation!==t||this.lightness!==i||this.alpha!==r?(this.hue=n,this.saturation=t,this.lightness=i,this.alpha=r,this.assertValid(),!0):!1},n.prototype.assertValid=function(){F12.Tools.Utility.Assert.isTrue(this.hue>=0&&this.hue<360,"Invalid hue");F12.Tools.Utility.Assert.isTrue(this.saturation>=0&&this.saturation<=100,"Invalid saturation");F12.Tools.Utility.Assert.isTrue(this.lightness>=0&&this.lightness<=100,"Invalid lightness");F12.Tools.Utility.Assert.isTrue(this.alpha>=0&&this.alpha<=1,"Invalid alpha")},n}();n.HslaColor=t})(Common||(Common={})); //! Copyright (C) Microsoft. All rights reserved. __extends=this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);r.prototype=t.prototype;n.prototype=new r},function(n){"use strict";var t=function(){function n(){}return n.initialize=function(){n.AlphaConverter=n.getAlphaConverter()},n.getAlphaConverter=function(){return{convertTo:function(n){return(n*100).toString()},convertFrom:function(n){return n/100}}},n}();n.ColorSlidersConverters=t;t.initialize()}(Common||(Common={})),function(n){var t;(function(t){"use strict";var i=function(t){function i(i){this._rgba=new n.RgbaColor(0,0,0,1);this._hsla=new n.HslaColor(180,0,0,1);this._color="rgba(0, 0, 0, 1)";t.call(this,i||"Common.slidersPaneTemplate")}return __extends(i,t),Object.defineProperty(i.prototype,"color",{get:function(){return this._color},set:function(n){n&&n!==this._color&&(this._color=n,this._rgba.setFromString(n)&&this._hsla.setFromRgba(this._rgba)&&(this.propertyChanged.invoke(i.HuePropertyName),this.propertyChanged.invoke(i.SaturationPropertyName),this.propertyChanged.invoke(i.LightnessPropertyName),this.propertyChanged.invoke(i.AlphaPropertyName)),this.propertyChanged.invoke(i.ColorPropertyName))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"hue",{get:function(){return this._hsla.hue},set:function(n){n!==this._hsla.hue&&(this._hsla.hue=n,this._rgba.setFromHsla(this._hsla)&&(this._color=this._rgba.toString(),this.propertyChanged.invoke(i.ColorPropertyName)),this.propertyChanged.invoke(i.HuePropertyName))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"saturation",{get:function(){return this._hsla.saturation},set:function(n){n!==this._hsla.saturation&&(this._hsla.saturation=n,this._rgba.setFromHsla(this._hsla)&&(this._color=this._rgba.toString(),this.propertyChanged.invoke(i.ColorPropertyName)),this.propertyChanged.invoke(i.SaturationPropertyName))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"lightness",{get:function(){return this._hsla.lightness},set:function(n){n!==this._hsla.lightness&&(this._hsla.lightness=n,this._rgba.setFromHsla(this._hsla)&&(this._color=this._rgba.toString(),this.propertyChanged.invoke(i.ColorPropertyName)),this.propertyChanged.invoke(i.LightnessPropertyName))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"alpha",{get:function(){return this._hsla.alpha},set:function(n){n!==this._hsla.alpha&&(this._hsla.alpha=n,this._rgba.setFromHsla(this._hsla)&&(this._color=this._rgba.toString(),this.propertyChanged.invoke(i.ColorPropertyName)),this.propertyChanged.invoke(i.AlphaPropertyName))},enumerable:!0,configurable:!0}),i.DUMMY_ELEMENT=document.createElement("div"),i.RGBA_REGEXPS=[/^ *rgba\(([0-9]+), *([0-9]+), *([0-9]+), *([0-9.]+)\) *$/,/^ *rgb\(([0-9]+), *([0-9]+), *([0-9]+)\) *$/],i.AlphaPropertyName="alpha",i.ColorPropertyName="color",i.HuePropertyName="hue",i.LightnessPropertyName="lightness",i.SaturationPropertyName="saturation",i}(n.TemplateControl);t.ColorPickerSlidersControl=i})(t=n.Controls||(n.Controls={}))}(Common||(Common={})); //! Copyright (C) Microsoft. All rights reserved. __extends=this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);r.prototype=t.prototype;n.prototype=new r},function(n){var t;(function(t){"use strict";var r=Microsoft.Plugin,i=function(t){function i(i){t.call(this,i||"Common.defaultColorPickerTemplate");this.color="rgba(0, 0, 0, 1)";this.paletteColors=new n.ObservableCollection;this.dismissOnTargetButtonClick=!0}return __extends(i,t),Object.defineProperty(i.prototype,"color",{get:function(){return this._color},set:function(n){n&&n!==this._color&&(this._color=n,this.propertyChanged.invoke(i.ColorPropertyName))},enumerable:!0,configurable:!0}),i.initialize=function(){n.ObservableHelpers.defineProperty(i,i.CancellationColorPropertyName,null);n.ObservableHelpers.defineProperty(i,i.IsCompactViewPropertyName,!1,function(n){return n.onIsCompactViewChanged()});n.ObservableHelpers.defineProperty(i,i.IsEyedropperActivePropertyName,!1,function(n){return n.onIsEyedropperActiveChanged()});n.ObservableHelpers.defineProperty(i,i.IsPaletteLoadingPropertyName,!1);n.ObservableHelpers.defineProperty(i,i.IsSlidersShownPropertyName,!1,function(n){return n.onIsSlidersShownChanged()});n.ObservableHelpers.defineProperty(i,i.PaletteColorsPropertyName,null)},i.prototype.onApplyTemplate=function(){if(t.prototype.onApplyTemplate.call(this),this._palette=this.getNamedControl(i.PALETTE_NAME),F12.Tools.Utility.Assert.hasValue(this._palette,"Color picker template must have a ribbon control named "+i.PALETTE_NAME),r.F12.isTargetEdge){var n=this.getNamedControl("eyedropperButton"),u=this.getNamedControl("slidersButton");n.isVisible=!1;u.isVisible=!1}},i.prototype.onTemplateChanging=function(){this._palette&&(this._palette=null);t.prototype.onTemplateChanging.call(this)},i.prototype.onIsVisibleChangedOverride=function(){t.prototype.onIsVisibleChangedOverride.call(this);this.isVisible?(this.cancellationColor=this.color,this._palette.refresh()):this.cancellationColor=null},i.prototype.onKeyDownOverride=function(n){return this.onCustomKeyDown?this.onCustomKeyDown(n):!1},i.prototype.onKeyUpOverride=function(n){var i=!1;switch(n.keyCode){case 27:this.color=this.cancellationColor;break;case 13:this.isVisible=!1;i=!0}return i||(i=t.prototype.onKeyUpOverride.call(this,n)),i},i.prototype.onIsCompactViewChanged=function(){var t=this.getNamedElement("selectedColorPane");t&&(this.isCompactView?(t.classList.add(n.TemplateControl.CLASS_HIDDEN),t.setAttribute("aria-hidden","true")):(t.classList.remove(n.TemplateControl.CLASS_HIDDEN),t.removeAttribute("aria-hidden")))},i.prototype.onIsEyedropperActiveChanged=function(){this.keepVisibleOnBlur=this.isEyedropperActive},i.prototype.onIsSlidersShownChanged=function(){this.updateSlidersMaxHeight()},i.prototype.updateSlidersMaxHeight=function(){var n=this.getNamedElement(i.SLIDERS_CONTROL_NAME),r,u,e,t,o,s;if(n){if(r=this.viewportMargin?this.viewportMargin.top||0:0,u=window.innerHeight-(this.viewportMargin?this.viewportMargin.bottom||0:0),n.style.maxHeight="",this.updatePopupPosition(),e=n.getBoundingClientRect(),t=Math.floor(e.bottom)-u,t>0){if(this.targetButtonElement){var f=this.targetButtonElement.getBoundingClientRect(),h=Math.abs(f.top-r),c=Math.abs(f.bottom-u);h>c&&(o=this.rootElement.getBoundingClientRect(),t=Math.max(0,Math.floor(r+o.height-f.top)))}s=n.scrollHeight-t;n.style.maxHeight=Math.max(30,s)+"px"}else n.style.maxHeight="";this.updatePopupPosition()}},i.PALETTE_NAME="_colorPalette",i.SLIDERS_CONTROL_NAME="slidersPane",i.CancellationColorPropertyName="cancellationColor",i.ColorPropertyName="color",i.IsCompactViewPropertyName="isCompactView",i.IsEyedropperActivePropertyName="isEyedropperActive",i.IsPaletteLoadingPropertyName="isPaletteLoading",i.IsSlidersShownPropertyName="isSlidersShown",i.PaletteColorsPropertyName="paletteColors",i}(t.PopupControl);t.ColorPickerControl=i;i.initialize()})(t=n.Controls||(n.Controls={}))}(Common||(Common={})); //! Copyright (C) Microsoft. All rights reserved. __extends=this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);r.prototype=t.prototype;n.prototype=new r},function(n){var t;(function(t){"use strict";var i=function(t){function i(n){t.call(this,n||"Common.tabControlTemplate");this._items=[]}return __extends(i,t),Object.defineProperty(i.prototype,"selectedItem",{get:function(){return this._selectedItem},set:function(n){if(this._selectedItem!==n){if(n&&!this.containsTab(n))return;this._selectedItem&&(this._selectedItem.header.rootElement.setAttribute("tabindex","-1"),this._selectedItem.active=!1);this._selectedItem=n;this._selectedItem&&(this._selectedItem.header.rootElement.setAttribute("tabindex","0"),this._selectedItem.active=!0);this.selectedItemChanged&&(this.selectedItem.tabPane&&this.selectedItem.tabPane.onTabActivated(),this.selectedItemChanged())}},enumerable:!0,configurable:!0}),i.initialize=function(){n.ObservableHelpers.defineProperty(i,i.TabsLeftAlignedPropertyName,!0)},i.prototype.addTab=function(n){this._items.push(n);n.ownerTabControl=this;this._barPanel.appendChild(n.header.rootElement);this._contentPane.appendChild(n.rootElement);this._selectedItem||(this.selectedItem=n)},i.prototype.onApplyTemplate=function(){t.prototype.onApplyTemplate.call(this);this._barPanel=this.getNamedElement("tabBar");F12.Tools.Utility.Assert.hasValue(this._barPanel,"Unable to find element with name tabBar");this._barPanel.setAttribute("role","tabList");this._barPanel.addEventListener("keydown",this.onKeyDown.bind(this));this._contentPane=this.getNamedElement("tabContentPane");F12.Tools.Utility.Assert.hasValue(this._contentPane,"Unable to find element with name tabContentPane");this.beforeBarContainer=this.getNamedElement("beforeBarContainer");this.afterBarContainer=this.getNamedElement("afterBarContainer");this._tabBarContainer=this.getNamedElement("tabBarContainer");F12.Tools.Utility.Assert.hasValue(this._tabBarContainer,"Unable to find element with name tabBarContainer")},i.prototype.removeTab=function(n){var t=this._items.indexOf(n),i;t<0||(this.selectedItem===n&&(this.selectedItem=null),this._items.splice(t,1),i=Math.min(this._items.length-1,t),i>=0&&(this.selectedItem=this._items[i]),this._barPanel.removeChild(n.header.rootElement),this._contentPane.removeChild(n.rootElement),n.ownerTabControl=null)},i.prototype.containsTab=function(n){return this._items.indexOf(n)>=0},i.prototype.getTab=function(n){return this._items[n]},i.prototype.getTabIndex=function(n){return this._items.indexOf(n)},i.prototype.length=function(){return this._items.length},i.prototype.onTabItemSelected=function(n){this.selectedItem=n},i.prototype.onKeyDown=function(n){var t=this._items.filter(function(n){return n.isEnabled}),i=t.indexOf(this._selectedItem);i>=0?n.keyCode===39?this.selectedItem=t[(i+1)%t.length]:n.keyCode===37&&(this.selectedItem=t[i-1<0?t.length-1:i-1]):t.length>0&&(this.selectedItem=t[0]);this._selectedItem.header.rootElement.focus()},i.TabsLeftAlignedPropertyName="tabsLeftAligned",i}(n.TemplateControl);t.TabControl=i;i.initialize()})(t=n.Controls||(n.Controls={}))}(Common||(Common={})); //! Copyright (C) Microsoft. All rights reserved. __extends=this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);r.prototype=t.prototype;n.prototype=new r},function(n){var t;(function(t){"use strict";var u=Microsoft.Plugin,i=function(t){function i(i){t.call(this,i||"Common.tabHeaderTemplate");this._click=new n.EventSource;this._onKeyDownHandler=this.onKeyDown.bind(this)}return __extends(i,t),Object.defineProperty(i.prototype,"click",{get:function(){return this._click},enumerable:!0,configurable:!0}),i.initialize=function(){n.ObservableHelpers.defineProperty(i,i.ActivePropertyName,!1);n.ObservableHelpers.defineProperty(i,i.TitlePropertyName,"")},i.prototype.onApplyTemplate=function(){t.prototype.onApplyTemplate.call(this);this.rootElement.onclick=this.onHeaderClicked.bind(this);this.rootElement.addEventListener("keydown",this._onKeyDownHandler)},i.prototype.onTemplateChanging=function(){this.rootElement&&this.rootElement.removeEventListener("keydown",this._onKeyDownHandler)},i.prototype.onHeaderClicked=function(){this.isEnabled&&this.click.invoke()},i.prototype.onKeyDown=function(n){(n.keyCode===13||n.keyCode===32)&&this.onHeaderClicked()},i.ActivePropertyName="active",i.TitlePropertyName="title",i}(n.TemplateControl),r;t.TabHeader=i;i.initialize();r=function(t){function r(n){var r=this;t.call(this,n||"Common.tabItemTemplate");this.header=new i;this.header.click.addHandler(function(){return r.onHeaderClicked()});this.header.rootElement.setAttribute("role","tab");this._onResizeHandler=function(){r._tabPane&&r._tabPane.onTabResize()}}return __extends(r,t),Object.defineProperty(r.prototype,"tabPane",{get:function(){return this._tabPane},set:function(n){this._tabPane=n;this.content=n.rootElement;this._onResizeHandler()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"ownerTabControl",{get:function(){return this._ownerTabControl},set:function(n){if(this._ownerTabControl!==n){if(this._ownerTabControl&&n)throw new Error(u.Resources.getErrorString("JSPerf.1022"));this._ownerTabControl=n}this._ownerTabControl?window.addEventListener("resize",this._onResizeHandler):window.removeEventListener("resize",this._onResizeHandler)},enumerable:!0,configurable:!0}),r.initialize=function(){n.ObservableHelpers.defineProperty(r,r.ActivePropertyName,!1,function(n){return n.onActiveChanged()});n.ObservableHelpers.defineProperty(r,r.TitlePropertyName,"",function(n){return n.onTitleChanged()})},r.prototype.onContentChangedOverride=function(n){n&&this.rootElement.removeChild(n);this.rootElement.appendChild(this.content)},r.prototype.onTooltipChangedOverride=function(){t.prototype.onTooltipChangedOverride.call(this);this.header&&(this.header.tooltip=this.tooltip)},r.prototype.onIsEnabledChangedOverride=function(){t.prototype.onIsEnabledChangedOverride.call(this);this.header.isEnabled=this.isEnabled},r.prototype.onActiveChanged=function(){this.header.active=this.active},r.prototype.onHeaderClicked=function(){this.isEnabled&&this.ownerTabControl&&(this.ownerTabControl.selectedItem=this)},r.prototype.onKeyDown=function(n){(n.keyCode===13||n.keyCode===32)&&this.onHeaderClicked()},r.prototype.onTitleChanged=function(){this.header.title=this.title},r.ActivePropertyName="active",r.TitlePropertyName="title",r}(t.ContentControl);t.TabItem=r;r.initialize()})(t=n.Controls||(n.Controls={}))}(Common||(Common={})); //! Copyright (C) Microsoft. All rights reserved. (function(n){var t;(function(t){"use strict";var i=Microsoft.Plugin,u=function(){function t(){var t=this;this.sourceMapChange=new n.EventSource;i.F12.Communications.addEventListener("onSourceMapStateChanged",function(n){return t.onSourceMapStateChangedHandler(n)})}return t.prototype.getTranslatedLocation=function(n){return i.F12.Debugger.getTranslatedLocation(n.source,n.line,n.column).then(function(t){return{sourceInfo:n,mappedSourceInfo:{column:t.oneBasedColumn,line:t.oneBasedLine,name:n.name,source:t.documentPath}}})},t.prototype.onSourceMapStateChangedHandler=function(n){this.sourceMapChange.invoke({originalSource:n.customData})},t}(),r;t.F12SourceMapHelper=u;r=function(){function t(){this.sourceMapChange=new n.EventSource}return t.prototype.getTranslatedLocation=function(n){return i.Promise.as({sourceInfo:n,mappedSourceInfo:n})},t}();t.VsSourceMapHelper=r;t.sourceMapHelper=i.F12?new u:new r})(t=n.Controls||(n.Controls={}))})(Common||(Common={})); //! Copyright (C) Microsoft. All rights reserved. __extends=this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);r.prototype=t.prototype;n.prototype=new r},function(n){var t;(function(t){"use strict";var i=Microsoft.Plugin,r=function(t){function r(n){t.call(this,n||"Common.sourceInfoTooltipTemplate")}return __extends(r,t),Object.defineProperty(r.prototype,"html",{get:function(){return this.rootElement.outerHTML},enumerable:!0,configurable:!0}),r.initialize=function(){n.ObservableHelpers.defineProperty(r,r.TitleLabelResourceIdPropertyName,null);n.ObservableHelpers.defineProperty(r,r.TitlePropertyName,null)},r.prototype.onApplyTemplate=function(){var n,r,u;t.prototype.onApplyTemplate.call(this);n=this.getNamedElement("sourceInfoFileLabel");F12.Tools.Utility.Assert.isTrue(n,"Expecting a named element");n.innerText=i.Resources.getString("/Common/ScriptErrorFile","");r=this.getNamedElement("sourceInfoLineLabel");F12.Tools.Utility.Assert.isTrue(n,"Expecting a named element");r.innerText=i.Resources.getString("/Common/ScriptErrorLine","");u=this.getNamedElement("sourceInfoColumnLabel");F12.Tools.Utility.Assert.isTrue(n,"Expecting a named element");u.innerText=i.Resources.getString("/Common/ScriptErrorColumn","")},r.TitleLabelResourceIdPropertyName="titleLabelResourceId",r.TitlePropertyName="title",r}(n.TemplateControl);t.SourceInfoTooltip=r;r.initialize()})(t=n.Controls||(n.Controls={}))}(Common||(Common={})); //! Copyright (C) Microsoft. All rights reserved. __extends=this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);r.prototype=t.prototype;n.prototype=new r},function(n){var t;(function(t){"use strict";var i=Microsoft.Plugin,r=function(r){function u(t){r.call(this,t||"Common.sourceInfoTemplate");this.click=new n.EventSource}return __extends(u,r),u.initialize=function(){n.ObservableHelpers.defineProperty(u,u.KeyboardAccessiblePropertyName,!0,function(n){return n.onKeyboardAccessibleChanged()});n.ObservableHelpers.defineProperty(u,u.MappedSourceInfoPropertyName,null)},u.prototype.onApplyTemplate=function(){var n=this;r.prototype.onApplyTemplate.call(this);this.rootElement&&(this.rootElement.addEventListener("mouseover",function(t){return n.showTooltip(t)}),this.rootElement.addEventListener("mouseout",function(){return i.Tooltip.dismiss()}),this.rootElement.addEventListener("mousedown",function(t){return n.stopMouseEvents(t)}),this.rootElement.addEventListener("mouseup",function(t){return n.stopMouseEvents(t)}),this.rootElement.addEventListener("click",function(t){n.model&&n.isEnabled&&(n.click.invoke(n.model),n.stopMouseEvents(t))}),this.rootElement.addEventListener("keydown",function(t){var i=t.keyCode===32||t.keyCode===13;if(n.model&&n.keyboardAccessible&&n.isEnabled&&i)return n.click.invoke(n.model),t.stopImmediatePropagation(),t.preventDefault(),!1}));this.onKeyboardAccessibleChanged()},u.prototype.onModelChanged=function(){var n=this;r.prototype.onModelChanged.call(this);this._onSourceMapStateChangeRegistration&&(this._onSourceMapStateChangeRegistration.unregister(),this._onSourceMapStateChangeRegistration=null);this.updateMappedSourceInfo();this.model&&(this._onSourceMapStateChangeRegistration=t.sourceMapHelper.sourceMapChange.addHandler(function(t){return n.onSourceMapStateChanged(t)}))},u.prototype.onKeyboardAccessibleChanged=function(){this.tabIndex=this.keyboardAccessible?0:-1},u.prototype.onSourceMapStateChanged=function(){this.updateMappedSourceInfo()},u.prototype.showTooltip=function(n){var r,u;if(this.model){if(r=new t.SourceInfoTooltip,r.model=this.mappedSourceInfo,this.onShowingTooltip)this.onShowingTooltip(r);u={content:r.html,contentContainsHTML:!0};i.Tooltip.show(u);n.stopImmediatePropagation()}},u.prototype.stopMouseEvents=function(n){this.model&&this.isEnabled&&(n.stopImmediatePropagation(),n.preventDefault())},u.prototype.updateMappedSourceInfo=function(){var n=this,i;this.mappedSourceInfo&&this.model||(this.mappedSourceInfo=this.model);this.model&&this.model.source&&(i=this.model,t.sourceMapHelper.getTranslatedLocation(i).done(function(t){t.sourceInfo===n.model&&(n.mappedSourceInfo=t.mappedSourceInfo)}))},u.KeyboardAccessiblePropertyName="keyboardAccessible",u.MappedSourceInfoPropertyName="mappedSourceInfo",u}(n.TemplateControl);t.SourceInfoControl=r;r.initialize()})(t=n.Controls||(n.Controls={}))}(Common||(Common={})); //! Copyright (C) Microsoft. All rights reserved. __extends=this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);r.prototype=t.prototype;n.prototype=new r},function(n){"use strict";var t=function(){function t(n){this._uid=0;this._handlers=[];this._processors=[];this._callbacks={};this._pendingMessages=[];this._pendingTimeout=null;this._traceWriter=n}return Object.defineProperty(t.prototype,"engine",{get:function(){return this._engine},enumerable:!0,configurable:!0}),t.prototype.connect=function(n){this._engine=n},t.prototype.post=function(n){for(var i=[n],o,u,f,s,h,e,t=0,r=this._processors.length;tr?1:n-t}),e=new Array(i),t=0;t0&&this.registerAlternateMediaTypesCommon(n,t.alternates),t.extensions&&t.extensions.length>0&&this.registerMediaTypeFileExtensionsCommon(n,t.extensions),"editable"in t&&this.setEditableMediaTypeCommon(n,t.editable),"canFindRefs"in t&&this.setMediaTypeCanFindRefsCommon(n,t.canFindRefs),"jmcEnabled"in t&&this.setJMCEnabledMediaTypeCommon(n,t.jmcEnabled))},t.registerAlternateMediaTypesCommon=function(n,t){var i=this;t.forEach(function(t){t&&(t=i.normalizeMediaType(t),i.registerAlternateMediaTypeCommon(n,t))})},t.registerAlternateMediaTypeCommon=function(n,t){if(n!==t){for(var i=this._canonicalMap.get(n);i;)F12.Tools.Utility.Assert.areNotEqual(i,t,"Invalid attempt to add a cyclical reference to a media type."),i=this._canonicalMap.get(i);this._canonicalMap.set(t,n)}},t.registerMediaTypeFileExtensionsCommon=function(n,t){var i=this;t.forEach(function(t){t&&(t=i.normalizeFileExtension(t),i.registerMediaTypeFileExtensionCommon(n,t))})},t.registerMediaTypeFileExtensionCommon=function(n,t){this._extensionMap.set(t,n)},t.setEditableMediaTypeCommon=function(n,t){t?this._editableMediaTypes.add(n):this._editableMediaTypes.delete(n)},t.setMediaTypeCanFindRefsCommon=function(n,t){t?this._findRefsMediaTypes.add(n):this._findRefsMediaTypes.delete(n)},t.setJMCEnabledMediaTypeCommon=function(n,t){t?this._jmcMediaTypes.add(n):this._jmcMediaTypes.delete(n)},t.normalizeMediaType=function(n){n=n.trim();n=n.toLowerCase();var t=n.indexOf(";");return t>-1&&(n=n.substr(0,t)),n},t.normalizeFileExtension=function(n){return n=n.trim(),n=n.toLowerCase(),n.charAt(0)!=="."&&(n="."+n),n},t.getRank=function(n){switch(n){case"text/plain":return 3;case"text/javascript":case"text/html":case"text/css":case"text/xml":return 2;case"text/typescript":case"text/coffeescript":case"text/x-csharp":case"text/less":case"text/scss":return 1;default:return 0}},t.getCanonicalFallbackMediaType=function(n){return n?(n=this.normalizeMediaType(n),this.getCanonicalMediaTypeCommon(n)):"text/plain"},t._initialized=!1,t._defaultMediaTypes={"text/html":{alternates:["text/x-jshtm","text/x.jshtm"],extensions:[".html",".htm"],jmcEnabled:!0},"text/xml":{alternates:["application/xml",],extensions:[".xml",".xsl",".svg"]},"text/javascript":{alternates:["text/javascript1.0","text/javascript1.1","text/javascript1.2","text/javascript1.3","text/javascript1.4","text/javascript1.5","text/jscript","text/livescript","text/x-javascript","text/x-ecmascript","text/x.javascript","text/x.ecmascript","application/javascript","application/ecmascript","application/x-javascript","application/x-ecmascript","application/x.javascript","application/x.ecmascript"],extensions:[".js"],jmcEnabled:!0,canFindRefs:!0},"text/typescript":{alternates:["video/vnd.dlna.mpeg-tts","text/x.typescript","text/vnd.ms.typescript","application/typescript","application/x.typescript","application/vnd.ms.typescript"],extensions:[".ts",".str"],jmcEnabled:!0,canFindRefs:!0},"text/coffeescript":{alternates:["text/x-coffeescript","text/x.coffeescript","application/coffeescript","application/x-coffeescript","application/x.coffeescript"],extensions:[".coffee"],jmcEnabled:!0},"text/x-csharp":{alternates:[],extensions:[".cs"],jmcEnabled:!0},"text/css":{alternates:[],extensions:[".css"]},"text/less":{alternates:["text/x-less","text/x.less"],extensions:[".less"]},"text/scss":{alternates:["text/x-scss","text/x.scss"],extensions:[".sass",".scss"]}},t._extensionMap=new Map,t._canonicalMap=new Map,t._editableMediaTypes=new Set,t._findRefsMediaTypes=new Set,t._jmcMediaTypes=new Set,t}();n.MediaTypeManager=t})(Common||(Common={})); //! Copyright (C) Microsoft. All rights reserved. (function(n){"use strict";var t=Microsoft.Plugin,i=function(){function n(){}return Object.defineProperty(n,"EmptyPromise",{get:function(){return n.EmptyPromiseObject||(n.EmptyPromiseObject=t.Promise.as(undefined)),n.EmptyPromiseObject},enumerable:!0,configurable:!0}),n}();n.PromiseUtilities=i})(Common||(Common={})); //! Copyright (C) Microsoft. All rights reserved. (function(n){var t;(function(t){"use strict";var i=Microsoft.Plugin,r=function(){function t(n){var f=this,r,u,i;this._viewModel=n;this._rootElement=document.createElement("div");this._rootElement.classList.add("resourceGrid");this._gridRootElement=document.createElement("div");this._gridRootElement.classList.add("resourceGrid-grid");this._titleElement=document.createElement("div");this._titleElement.classList.add("resourceGrid-title");this._viewModel.title.addHandler(this.onTitleChange.bind(this));this._rootElement.appendChild(this._titleElement);this._rootElement.appendChild(this._gridRootElement);r={enableColumnReorder:!1,forceFitColumns:!0,editable:!0,enableAddRow:!0,autoEdit:!1,explicitInitialization:!0,editCommandHandler:this._viewModel.editItem.bind(this._viewModel),enableAsyncPostRender:!0,asyncPostRenderDelay:0,rowHeight:20,syncColumnCellResize:!0};t.initColumns(this._viewModel.columns);u=this._viewModel.dataView;this._grid=new Slick.Grid(this._gridRootElement,u,this._viewModel.columns,r);this._grid.setSelectionModel(new Slick.RowSelectionModel);i=this._viewModel.columns[0];this._grid.setSortColumn(i.id,!0);this._viewModel.sort({sortColName:i.field,ascending:!0});$(this._gridRootElement).on("blur","input.editor-text",function(){return Slick.GlobalEditorLock.commitCurrentEdit()});this._contextMenuId=t.NextId++;this._gridRootElement.addEventListener("contextmenu",function(n){return f.showContextMenu(n)});window.addEventListener("resize",this.doLayout.bind(this));this.setupGridDataEvents()}return Object.defineProperty(t.prototype,"rootElement",{get:function(){return this._rootElement},enumerable:!0,configurable:!0}),t.prototype.setupGridDataEvents=function(){var t=this,i=this._viewModel.dataView;i.onRowCountChanged.subscribe(function(){t.preserveActiveRowState(function(){t._grid.updateRowCount();t._grid.render()})});i.onRowsChanged.subscribe(function(n,i){t.preserveActiveRowState(function(){t._grid.invalidateRows(i.rows);t._grid.render()})});this._grid.onAddNewRow.subscribe(function(n,i){t._viewModel.addItem(i.item)});this._grid.onSort.subscribe(function(n,i){t._viewModel.sort({sortColName:i.sortCol.field,ascending:i.sortAsc})});this._grid.onBeforeEditCell.subscribe(function(n,r){var u=!0;return r.row===i.getLength()&&r.column!==t._viewModel.columns[0]&&(u=!1,t.forceEditInAddNewRow()),u});this._grid.onKeyDown.subscribe(function(n){if(n.which!==46||n.ctrlKey||n.shiftKey||n.altKey||!t._grid.getActiveCell()||t.isEditing())n.which===9?t.isEditing()&&window.setImmediate(function(){return t._grid.editActiveCell()}):n.which!==116||!n.ctrlKey||n.shiftKey||n.altKey||t.isEditing()?n.which!==65||!n.ctrlKey||n.shiftKey||n.altKey||t.isEditing()||t.selectAll():t._viewModel.refresh();else{var i=t._grid.getDataLength(),r=t._grid.getSelectedRows().filter(function(n){return n!==i});t._grid.setSelectedRows([]);t._viewModel.removeItems(r)}});this._grid.onActiveCellChanged.subscribe(function(n,r){typeof r.row!="undefined"?(t._activeRowNum=r.row,t._activeRowId=t._viewModel.dataView.mapRowsToIds([r.row])[0],t._activeCell=r.cell,r.row===i.getLength()&&t.forceEditInAddNewRow()):t._activeRowNum=t._activeRowId=t._activeCell=null});this._viewModel.setupGridDataEvents(this._grid);n.ClipboardHelper.addCopyListener(this._rootElement,this.onCopy.bind(this))},t.prototype.doLayout=function(){this._grid.resizeCanvas()},t.prototype.init=function(){this._grid.init();this.initHeaderTooltips()},t.initColumns=function(n){var t=function(n,t,i,r){var u=""+i[r.field],f;n.setAttribute("aria-label",r.name+", "+u);f=JSON.stringify({content:u});n.setAttribute("data-plugin-vs-tooltip",f)};n.forEach(function(n){return n.asyncPostRender=t})},t.prototype.forceEditInAddNewRow=function(){var n=this;setTimeout(function(){!n._rootElement.parentElement||n._grid.gotoCell(n._viewModel.dataView.getLength(),0,!0)},0)},t.prototype.initHeaderTooltips=function(){var n=this;this._viewModel.columns.filter(function(n){return n.headerCssClass&&n.showF12Tooltip}).forEach(function(t){var i=n._gridRootElement.querySelector(".slick-header-column."+t.headerCssClass);i&&i.setAttribute("data-plugin-vs-tooltip",t.name)})},t.prototype.onCopy=function(){var t=this._viewModel.columns.map(function(n){return n.field}).filter(function(n){return n!=="id"}),i=this._viewModel.dataView.getItems()||[],r=this._grid.getSelectedRows().sort(function(n,t){return n-t}).map(function(n){return i[n]});return n.CSVWriter.toCSV(t,r)},t.prototype.onCopyMenuItemClicked=function(){n.ClipboardHelper.fireCopyEvent(this._rootElement)},t.prototype.selectAll=function(){var n=this._viewModel.dataView.getItems(),t,i;n&&(t=0,i=n.map(function(){return t++}),this._grid.setSelectedRows(i))},t.prototype.onTitleChange=function(n){this._titleElement.innerText=n;this._titleElement.setAttribute("data-plugin-vs-tooltip",n)},t.prototype.isEditing=function(){return!!this._grid.getCellEditor()},t.prototype.showContextMenu=function(n){var t,e,r,u,f;this._contextMenu&&(this._contextMenu.dispose(),this._contextMenu=null);t=this._grid.getCellFromEvent(n);e=t?t.row:null;this._contextMenu=i.ContextMenu.create(this.createContextMenuItems(e),"resourceContextMenu"+this._contextMenuId);r=0;u=0;n instanceof MouseEvent&&(r=n.pageX,u=n.pageY);r<=0&&u<=0&&(f=this._grid.getCellNode(t.row,t.cell).getBoundingClientRect(),r=f.left,u=f.top);this._contextMenu.show(r,u);n.preventDefault();n.stopImmediatePropagation()},t.prototype.createContextMenuItems=function(n){var r=this,t=[];return t.push({id:"menuItemRefreshResourceItems"+this._contextMenuId,callback:function(){return r._viewModel.refresh()},label:i.Resources.getString("/Common/ResourceGridRefresh"),type:1,disabled:function(){return!1},accessKey:i.Resources.getString("/Common/AccessKeyCtrlF5")}),t=t.concat(this._viewModel.createContextMenuItems(n)),t.push({id:"menuItemCopySelected"+this._contextMenuId,callback:this.onCopyMenuItemClicked.bind(this),label:i.Resources.getString("CopySelectedItems"),type:1,disabled:function(){return!1},accessKey:i.Resources.getString("/Common/AccessKeyCtrlC")}),t.push({id:"menuItemSelectAll"+this._contextMenuId,callback:this.selectAll.bind(this),label:i.Resources.getString("SelectAll"),type:1,disabled:function(){return!1},accessKey:i.Resources.getString("/Common/AccessKeyCtrlA")}),t},t.prototype.preserveActiveRowState=function(n){var e=this._activeRowId,l=this._activeRowNum,o=this._activeCell,s,i=this._grid.getCellEditor(),h,t,r,u,c,f;i&&(s=i.serializeValue());h=document.activeElement===this._grid.getActiveCellNode();n();e&&(t=this._viewModel.dataView.mapIdsToRows([e])[0],t=typeof t=="number"?t:l,r=this._grid.getDataLength(),t=Math.min(t,r),this._grid.setActiveCell(t,o),this._grid.getSelectedRows().length||this._grid.setSelectedRows([t]),u=this._grid.getActiveCellNode(),u&&h&&u.focus(),(i||t===r)&&!!this._rootElement.parentElement&&(this._grid.editActiveCell(),c=this._viewModel.columns[o].field,i&&(f={},f[c]=s,i.loadValue(f))))},t.NextId=0,t}();t.ResourceGrid=r})(t=n.ResourcesView||(n.ResourcesView={}))})(Common||(Common={})); //! Copyright (C) Microsoft. All rights reserved. (function(n){var t;(function(t){"use strict";(function(n){n[n.BackgroundOpen=0]="BackgroundOpen";n[n.SwitchWithoutFocus=1]="SwitchWithoutFocus";n[n.SwitchWithFocus=2]="SwitchWithFocus"})(t.Activation||(t.Activation={}));var r=t.Activation,i=function(){function t(i,r,u){r===void 0&&(r=null);u===void 0&&(u=!1);this._handlers=new Map;this.propertyChanged=new n.EventSource;this._rootElement=i||document.createElement("div");this._openModels=[];this._toolbar=r;this._keepModelStack=u;this._listeners=new Set;this._testEventObject=new n.EventHelperObject;r&&r.rootElement.classList.add(t.HideResourceToolbarCssClass)}return Object.defineProperty(t.prototype,"rootElement",{get:function(){return this._rootElement},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentModel",{get:function(){return this._openModels.length>0?this._openModels[this._openModels.length-1]:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentHandler",{get:function(){return this.currentModel?this._handlers.get(this.currentModel.modelName):null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"testEventObject",{get:function(){return this._testEventObject},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"openModels",{get:function(){return this._openModels},enumerable:!0,configurable:!0}),t.prototype.registerHandler=function(n,t){F12.Tools.Utility.Assert.hasValue(n);F12.Tools.Utility.Assert.isTrue(n.length>0);F12.Tools.Utility.Assert.hasValue(t);this._handlers.set(n,t)},t.prototype.registerListener=function(n){F12.Tools.Utility.Assert.hasValue(n);this._listeners.add(n)},t.prototype.doLayout=function(){if(this.currentModel){var n=this._handlers.get(this.currentModel.modelName);n&&(this._pendingLayoutImmediate&&window.clearImmediate(this._pendingLayoutImmediate),this._pendingLayoutImmediate=window.setImmediate(function(){return n.doLayout()}))}},t.prototype.primeWithElement=function(n){this.currentModel||this.rootElement.firstChild||this.rootElement.appendChild(n)},t.prototype.open=function(t,i){var r=this,u,f;return(i===void 0&&(i={}),F12.Tools.Utility.Assert.hasValue(t),i.activation==null&&(i.activation=2),u=this._handlers.get(t.modelName),!u)?n.PromiseUtilities.EmptyPromise:(this.currentModel||i.activation!==0||(i.activation=1),f=this.currentModel,i.activation!==0?(this.removeModel(t),this._openModels.push(t),this.propertyChanged.invoke("currentModel")):this.modelIsOpen(t)||this._openModels.unshift(t),u.open(t,i.activation,i.params).then(function(n){if(!n){r.removeModel(t);return}(!r._keepModelStack&&f&&r.close(f,!1),r.modelIsOpen(t))&&(r.fireOpened(t,i.activation,i.params,i.softOpen),i.activation!==0&&t===r.currentModel)&&(r.rootElement.firstChild&&(r.rootElement.removeChild(r.rootElement.firstChild),F12.Tools.Utility.Assert.isFalse(!!r.rootElement.firstChild)),r.rootElement.appendChild(n.rootElement),u.onAttach&&u.onAttach(),r.updateToolbar(),u.searchProvider&&u.searchProvider.findAndHighlightMatches())}))},t.prototype.closeCurrent=function(n){this.currentModel&&this.close(this.currentModel,n)},t.prototype.close=function(n,t,i){i===void 0&&(i=!0);F12.Tools.Utility.Assert.hasValue(n);var r=this._handlers.get(n.modelName);r&&(i=i&&this.currentModel===n&&this._keepModelStack,r.close(n,t),this.removeModel(n),this.fireClosed(n,t),i&&this.currentModel?this.open(this.currentModel,{activation:2}):this.currentModel||(this.updateToolbar(),this.rootElement&&this.rootElement.firstChild&&this.rootElement.removeChild(this.rootElement.firstChild)))},t.prototype.closeAllButThis=function(t,i){while(this._openModels.length>0){var r=this._openModels[0];r!==t?this.close(r,i,!1):this._openModels.shift()}return t?this.open(t,{activation:2}):n.PromiseUtilities.EmptyPromise},t.prototype.replace=function(n,t){for(var i=0;i=0},t.prototype.removeModel=function(n){var t=this._openModels.indexOf(n);t>=0&&(this._openModels.splice(t,1),t===this._openModels.length&&this.propertyChanged.invoke("currentModel"))},t.prototype.fireOpened=function(n,t,i,r){this._listeners.forEach(function(u){u.resourceOpened&&u.resourceOpened(n,t,i,r)});this._testEventObject.fireEvent("resourceOpened",{model:n,activation:t})},t.prototype.fireClosed=function(n,t){this._listeners.forEach(function(i){i.resourceClosed&&i.resourceClosed(n,t)});this._testEventObject.fireEvent("resourceClosed",{model:n,isRuntimeTriggered:t})},t.prototype.fireAdded=function(n,t){this._listeners.forEach(function(i){i.resourceAdded&&i.resourceAdded(n,t)});this._testEventObject.fireEvent("resourceAdded",{model:n,couldHaveExistingChildren:t})},t.prototype.fireRemoved=function(n,t){this._listeners.forEach(function(t){t.resourceRemoved&&t.resourceRemoved(n)});this._testEventObject.fireEvent("fireRemoved",{model:n,leaveInTable:t})},t.NextModelId=1,t.HideResourceToolbarCssClass="BPT-hidden",t}();t.ResourceViewController=i})(t=n.ResourcesView||(n.ResourcesView={}))})(Common||(Common={})); //! Copyright (C) Microsoft. All rights reserved. (function(n){"use strict";var t=Microsoft.Plugin,i=function(){function n(){}return n.registerFocusHandlers=function(i){t.F12&&(n.LastActiveElement=document.head.parentElement,n.LastActiveElement.focus(),t.F12.Communications.registerMethodHandler("showfocus",function(t){return n.showFocus(t,i)}))},n.registerNavigationFrames=function(i){n.NavigationFrames=i;t.F12&&!n.Registered&&(t.F12.addEventListener("navigatesubframes",function(t){return n.navigateFrames(t.isForward,t.useActiveElement)}),n.Registered=!0)},n.enableNavigation=function(){n.Enabled=!0},n.disableNavigation=function(){n.Enabled=!1},n.makeNavigationFrameFromTarget=function(t,i){return n.makeNavigationFrameFromCallback(t,function(){return i})},n.makeNavigationFrameFromCallback=function(n,t){return{container:n,getNavigationTarget:t}},n.navigateFrames=function(t,i){var e=[],h=[],r=-1,a=t?1:-1,o,c,v,u,s,f,l;if(!n.Enabled)return!1;if(!n.navigateFrames||n.navigateFrames.length===0)return!0;for(o=0;o=0&&r=0},n.Enabled=!0,n.Registered=!1,n}();n.NavigationUtilities=i})(Common||(Common={})); //! Copyright (C) Microsoft. All rights reserved. (function(n){"use strict";var t=function(){function n(){}return n.addPromiseErrorListener=function(){var t=Microsoft.Plugin;t.Promise.addEventListener("error",function(i){t.F12&&t.F12.SelfTest.selfTestEnabled||!isDebugBuild&&n.ReportedToWatson||i&&i.detail&&i.detail.exception&&(!i.detail.exception.ExceptionType||i.detail.exception.ExceptionType!=="UnexpectedResult")&&(n.reportErrorGivenStack(i.detail.exception),n.ReportedToWatson=!0)})},n.reportErrorGivenStack=function(t){var e=t.message,u,f,i,r;if(!("stack"in t))try{throw t}catch(o){t=o}for(u=t.stack||"",f=u.split("\n"),r=0;r0&&e.removeRange(f)}}}function a(n,t,i){if(n.keyCode===i&&n.ctrlKey&&!n.shiftKey&&!n.altKey){var u=n.target;if(typeof clipboardData!="undefined")return f(clipboardData,t,i,u);if(u)return r(u,i),event.preventDefault(),event.stopPropagation(),!1}return!0}function v(n,t,r){return typeof n.clipboardData!="undefined"?f(n.clipboardData,t,r,i):!0}function f(n,i,r,u){var f=!0,e,o;return r===t.Paste?(e=n.getData("text"),e&&(f=i(e,u))):(o=i(u),o&&(n.setData("text",o),f=!1)),f||(event.preventDefault(),event.stopPropagation()),f}function y(){var n=document.getElementById("clipboardDiv");return n||(n=document.createElement("div"),n.id="clipboardDiv",n.contentEditable="true",document.body.appendChild(n)),n}var t,i;(function(n){n[n.Cut=88]="Cut";n[n.Copy=67]="Copy";n[n.Paste=86]="Paste"})(t||(t={}));n.addPasteListener=e;n.addCutListener=o;n.addCopyListener=s;n.firePasteEvent=h;n.fireCutEvent=c;n.fireCopyEvent=l})(t=n.ClipboardHelper||(n.ClipboardHelper={}))})(Common||(Common={})); //! Copyright (C) Microsoft. All rights reserved. (function(n){"use strict";var t=Microsoft.Plugin,i=function(){function n(){}return n.changeButtonStatus=function(t,i,r){var u=n.isEnabled(t);i&&!u?(t.classList.remove("toolbarButtonStateDisabled"),t.setAttribute("aria-disabled","false")):!i&&u&&(t.classList.add("toolbarButtonStateDisabled"),t.setAttribute("aria-disabled","true"));typeof r=="boolean"&&(n.IsChangingAriaPressed=!0,r?(t.setAttribute("aria-pressed","true"),t.classList.add("toolbarButtonStateActive")):(t.setAttribute("aria-pressed","false"),t.classList.remove("toolbarButtonStateActive")),n.IsChangingAriaPressed=!1)},n.isEnabled=function(n){return!n.classList.contains("toolbarButtonStateDisabled")},n.isValidEvent=function(t){return(t.type==="click"||t.keyCode===13||t.keyCode===32)&&n.isEnabled(t.currentTarget)},n.setButtonTooltip=function(n,i,r){r===void 0&&(r=!0);var u=r?t.Resources.getString(i):i;n.setAttribute("data-plugin-vs-tooltip",u);n.setAttribute("aria-label",u)},n.setupButton=function(t,i,r,u,f){u===void 0&&(u=!0);f===void 0&&(f=!0);typeof i=="string"&&(n.setButtonTooltip(t,i,f),t.setAttribute("role","button"));r&&(t.addEventListener("click",function(t){return n.onButtonPress(t,r)}),t.addEventListener("keydown",function(t){return n.onButtonPress(t,r)}),t.addEventListener("DOMAttrModified",function(i){!n.IsChangingAriaPressed&&n.isEnabled(t)&&i.attrName==="aria-pressed"&&i.attrChange===i.MODIFICATION&&r(i)}));t.addEventListener("mousedown",n.onButtonMouseDown);t.addEventListener("mouseenter",n.onButtonMouseEnter);t.addEventListener("mouseleave",n.onButtonMouseLeave);t.addEventListener("mouseup",n.onButtonMouseUp);u||n.changeButtonStatus(t,!1)},n.onButtonMouseDown=function(t){var i=t.currentTarget;n.isEnabled(i)?i.classList.add("toolbarButtonMouseDown"):t.stopImmediatePropagation()},n.onButtonMouseEnter=function(t){var i=t.currentTarget;n.isEnabled(i)?i.classList.add("toolbarButtonMouseHover"):(t.preventDefault(),t.stopImmediatePropagation())},n.onButtonMouseLeave=function(n){var t=n.currentTarget;t.classList.remove("toolbarButtonMouseHover");t.classList.remove("toolbarButtonMouseDown")},n.onButtonMouseUp=function(n){var t=n.currentTarget;t.classList.remove("toolbarButtonMouseDown")},n.onButtonPress=function(t,i){n.isValidEvent(t)&&(i(t),t.preventDefault(),t.stopImmediatePropagation())},n}();n.ButtonHelpers=i})(Common||(Common={})); //! Copyright (C) Microsoft. All rights reserved. (function(n){"use strict";var t=function(){function n(){}return n.addClasses=function(n,t){for(var r=n?n.split(" "):[],u=t?t.split(" "):[],i=0;i"),/</g,"<"),/'/g,"'"),/"/g,'"'),/&/g,"&")},t.escapeHtmlAndPreserveWhitespace=function(t){var f=[t],r,u,i;if(t=t.replace(/(\r\n|\n\r|\r|\n)/g,"\r\n"),r=t.split("\r\n"),r.length>0)for(f=[],u=0;u"+i+"<\/pre>",f.push(i);return f},t.escapeHtml=function(n){if(typeof n!="string"){if(n===null||n===undefined)return"";n=""+n}return String.prototype.replace.call(String.prototype.replace.call(String.prototype.replace.call(String.prototype.replace.call(String.prototype.replace.call(n,/&/g,"&"),/"/g,"""),/'/g,"'"),//g,">")},t.replaceSpacesWithNonBreakingSpaceEntities=function(n){return String.prototype.replace.call(n,/ /g,"\u00a0")},t.replaceLineBreaksWithNonBreakingSpaceEntities=function(n){return String.prototype.replace.call(n,/[\r\n]/g,"\u00a0")},t.ESCAPE_USER_INPUT_REGEX=/([.+?^=!:${}()|\[\]\/\\])|(\*)/g,t}();n.EncodingUtilities=t})(Common||(Common={})),function(n){"use strict";var i=function(){function n(n,t){this._proxy=n;this._portName=t}return Object.defineProperty(n.prototype,"name",{get:function(){return this._portName},enumerable:!0,configurable:!0}),n.prototype.postMessage=function(n){return this._proxy._post("sendMessage",this._portName,n),!0},n.prototype.addEventListener=function(n,t){n==="message"&&this._proxy.addEventListener(n,t)},n.prototype.removeEventListener=function(n,t){n==="message"&&this._proxy.removeEventListener(n,t)},n}(),r=function(){function n(n){this._externalObj=n}return n.prototype.loadScriptInProc=function(n){try{this._externalObj.loadScriptInProc(n)}catch(t){return}},n.prototype.createPort=function(n){return n},n.prototype.addEventListener=function(n,t){this._externalObj.addEventListener(n,t)},n.prototype.removeEventListener=function(n,t){this._externalObj.removeEventListener(n,t)},n.prototype.fireAttachedEvent=function(){this._externalObj.fireAttachedEvent()},n.prototype.fireDetachedEvent=function(){this._externalObj.fireDetachedEvent()},n}(),t;n.IEDiagnosticsBridge=r;t=function(){function n(n){this._proxy=n}return n.prototype.loadScriptInProc=function(n){this._proxy._post("loadScript",n)},n.prototype.createPort=function(n){return new i(this._proxy,n.portName)},n.prototype.addEventListener=function(n,t){this._proxy.addEventListener(n,t)},n.prototype.removeEventListener=function(n,t){this._proxy.removeEventListener(n,t)},n.prototype.fireAttachedEvent=function(){},n.prototype.fireDetachedEvent=function(){},n}();n.DiagnosticsBridge=t}(Common||(Common={})); //! Copyright (C) Microsoft. All rights reserved. (function(n){"use strict";var t=Microsoft.Plugin,i=function(){function n(){}return n.showDocument=function(n,i,r){try{var u=decodeURI(n);t.Host.getDocumentLocation(u).done(function(n){try{t.Host.showDocument(n,i||1,r||1)}catch(u){return}})}catch(f){return}},n}();n.ProjectDocuments=i})(Common||(Common={})); //! Copyright (C) Microsoft. All rights reserved. (function(n){var t;(function(n){(function(n){n[n.Edge=0]="Edge";n[n.IE=1]="IE"})(n.TargetType||(n.TargetType={}));var t=n.TargetType})(t=n.SelfTest||(n.SelfTest={}))})(Common||(Common={})); //! Copyright (C) Microsoft. All rights reserved. (function(n){"use strict";(function(n){n[n.Pass=0]="Pass";n[n.Fail=1]="Fail";n[n.Timeout=2]="Timeout"})(n.SelfTestResult||(n.SelfTestResult={}));var i=n.SelfTestResult,t=function(){function n(n,t,i){this.status=n;this.result=t;this.message=i;this.name="SelfTestError"}return n}();n.SelfTestError=t})(Common||(Common={})); //! Copyright (C) Microsoft. All rights reserved. (function(n){"use strict";var t=Microsoft.Plugin,i;(function(n){var i=function(){function n(){}return n.waitForCondition=function(i,r,u,f){r===void 0&&(r=n.POLLING_TIMEOUT);u===void 0&&(u=n.POLLING_INTERVAL);f===void 0&&(f="");F12.Tools.Utility.Assert.hasValue(i,"Condition evaluator must have a value");F12.Tools.Utility.Assert.isTrue(r>u,"Timeout must be greater than polling interval");var o=Math.floor(r/u),e=0;return new t.Promise(function(n){var r=window.setInterval(function(){if(e>=o){t.F12.SelfTest.logMessage("Polling action: "+f+" timed out");clearInterval(r);throw new Error("Timeout: "+f)}e++;var u=i(),s=typeof u=="boolean"&&!u;s||u===null||typeof u=="undefined"||(clearInterval(r),n(u))},u)})},n.waitForConditionWithPromise=function(){throw new Error("Not Implemented")},n.tryWaitForCondition=function(){throw new Error("Not Implemented")},n.waitForEventOnAction=function(){throw new Error("Not Implemented")},n.tryWaitForEventOnAction=function(){throw new Error("Not Implemented")},n.waitForEventOnActionWithCondition=function(){throw new Error("Not Implemented")},n.waitForEventWithCondition=function(){throw new Error("Not Implemented")},n.tryWaitForEventWithCondition=function(){throw new Error("Not Implemented")},n.waitForEvent=function(){throw new Error("Not Implemented")},n.tryWaitForEvent=function(){throw new Error("Not Implemented")},n.POLLING_TIMEOUT=1e4,n.POLLING_INTERVAL=250,n}();n.Synchronization=i})(i=n.SelfTestAction||(n.SelfTestAction={}))})(Common||(Common={})); //! Copyright (C) Microsoft. All rights reserved. (function(n){"use strict";var r,t,u,i;(function(n){n[n.RelativeOrAbsolute=0]="RelativeOrAbsolute";n[n.Absolute=1]="Absolute";n[n.Relative=2]="Relative"})(n.UriKind||(n.UriKind={}));r=n.UriKind,function(n){n[n.Scheme=1]="Scheme";n[n.Userinfo=2]="Userinfo";n[n.Hostname=4]="Hostname";n[n.Port=8]="Port";n[n.Directory=16]="Directory";n[n.FilenameWithoutExtension=32]="FilenameWithoutExtension";n[n.Extension=64]="Extension";n[n.Filename=n.FilenameWithoutExtension|n.Extension]="Filename";n[n.Pathname=n.Directory|n.Filename]="Pathname";n[n.Search=128]="Search";n[n.Hash=256]="Hash";n[n.StrongPort=512]="StrongPort";n[n.KeepDelimiter=1024]="KeepDelimiter";n[n.AbsoluteUri=n.Scheme|n.Userinfo|n.Hostname|n.Port|n.Pathname|n.Search|n.Hash]="AbsoluteUri";n[n.HostnameAndPort=n.Hostname|n.StrongPort]="HostnameAndPort";n[n.StrongAuthority=n.Userinfo|n.Hostname|n.StrongPort]="StrongAuthority";n[n.Origin=n.Scheme|n.Hostname|n.Port]="Origin";n[n.PathnameAndSearch=n.Pathname|n.Search]="PathnameAndSearch"}(n.UriComponents||(n.UriComponents={}));t=n.UriComponents,function(n){n[n.UriEscaped=1]="UriEscaped";n[n.Unescaped=2]="Unescaped";n[n.SafeUnescaped=3]="SafeUnescaped"}(n.UriFormat||(n.UriFormat={}));u=n.UriFormat;i=function(){function i(){for(var f,r,e,u,n=[],t=0;t=2&&n[0]instanceof i){if(f=n[0],n[1]instanceof i)r=n[1];else if(n[1]!==null&&n[1]!==undefined)r=new i(String(n[1]),0);else throw new TypeError("Missing required argument: uri.");i.mergeCore(f,r,this)}else if(n.length>=1&&n[0]!==null&&n[0]!==undefined){if(e=String(n[0]),u=1,n.length>=2)if(typeof n[1]=="number")u=n[1];else throw new TypeError("Invalid argument: kind.");i.parseCore(e,u,this)}else throw new TypeError("Argument not optional.")}return Object.defineProperty(i.prototype,"isRooted",{get:function(){return this.isAbsolute||/^\//.test(this.pathname)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"isAbsolute",{get:function(){return this._scheme===i.UriSchemeFile&&typeof this._pathname=="string"&&/^[\\/]?\.{1,2}([\\/]|$)/.test(this._pathname)?!1:!!this._scheme},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"isFile",{get:function(){return this._scheme===i.UriSchemeFile},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"isUnc",{get:function(){return this.isFile&&!!(this._components&4)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"isDosPath",{get:function(){return this.isFile&&!this._hostname&&/^\/?[a-z][:|]/i.test(this._pathname)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"hasDefaultPort",{get:function(){return this.isAbsolute&&(typeof this._port!="number"||this._scheme===i.UriSchemeHttp&&this._port===80||this._scheme===i.UriSchemeHttps&&this._port===443)?!0:!1},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"raw",{get:function(){return this._raw},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"origin",{get:function(){return this.getComponentsCore(t.Origin,1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"authority",{get:function(){return this.getComponentsCore(t.HostnameAndPort,1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"protocol",{get:function(){return this.getComponentsCore(1025,1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"scheme",{get:function(){return this.getComponentsCore(1,1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"userinfo",{get:function(){return this.getComponentsCore(2,1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"host",{get:function(){return this.getComponentsCore(t.HostnameAndPort,1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"hostname",{get:function(){return this.getComponentsCore(4,1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pathname",{get:function(){return this.getComponentsCore(t.Pathname,1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pathnameAndSearch",{get:function(){return this.getComponentsCore(t.PathnameAndSearch,1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"search",{get:function(){return this.getComponentsCore(1152,1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"hash",{get:function(){return this.getComponentsCore(1280,1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"port",{get:function(){return typeof this._port=="number"?this._port:this._scheme===i.UriSchemeHttp?i.DEFAULT_PORT_HTTP:this._scheme===i.UriSchemeHttps?i.DEFAULT_PORT_HTTPS:undefined},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"absoluteUri",{get:function(){return this.getComponentsCore(t.AbsoluteUri,1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"absolutePath",{get:function(){var n=this.getComponentsCore(t.Pathname|1024,1);return this.isDosPath&&(n=n.substr(1)),n},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"localPath",{get:function(){if(this.isUnc||this.isDosPath){var n=this.getComponentsCore(t.Pathname|1024,1);if(n=n.replace(i.PATH_DELIMITER,i.DOS_PATH_DELIMITER),this.isUnc)return i.UNC_ROOT+this.hostname+n;if(this.isDosPath)return n.substr(1)}return""},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"segments",{get:function(){var n=this.getComponentsCore(t.Pathname|1024,1);return n.length>1?(n=n.substr(1),n.split(i.PATH_DELIMITER)):[]},enumerable:!0,configurable:!0}),i.parse=function(n,t){return t===void 0&&(t=1),new i(n,t)},i.tryParse=function(n,t){if(t===void 0&&(t=1),n===null||n===undefined)throw new TypeError("Missing required argument: text.");return i.parseCore(n,t,undefined)},i.tryMerge=function(n,t){if(n===null||n===undefined)throw new TypeError("Missing required argument: baseUri.");if(t===null||t===undefined)throw new TypeError("Missing required argument: uri.");return i.mergeCore(n,t,undefined)},i.create=function(r){var s,l,a,h,v,e,o,c,f,y,u,p;if(r||(r={}),c=!1,f=0,typeof r.keepDelimiter=="boolean"&&(c=r.keepDelimiter),typeof r.scheme=="string"&&(s=n.ToolWindowHelpers.tryDecodeURIComponent(r.scheme.toLowerCase()),f|=1,(s===i.UriSchemeHttp||s===i.UriSchemeHttps)&&(f|=512)),typeof r.userinfo=="string"&&(l=r.userinfo.toLowerCase(),f|=2),typeof r.hostname=="string"&&(a=r.hostname.toLowerCase(),f|=4),typeof r.port=="number"){if(r instanceof i)y=r,h=y._port;else{if(r.port<0)throw new RangeError("Invalid port.");h=r.port}typeof h=="number"&&(f|=520)}return r.pathname&&(v=r.pathname,f|=t.Pathname),r.search&&(e=r.search,!c&&e.length>0&&e.charAt(0)===i.SEARCH_DELIMITER&&(e=e.substr(1)),f|=128),r.hash&&(o=r.hash,!c&&o.length>0&&o.charAt(0)===i.HASH_DELIMITER&&(o=o.substr(1)),f|=256),u=Object.create(i.prototype),u._scheme=s,u._userinfo=l,u._hostname=a,u._port=h,u._pathname=v,u._search=e,u._hash=o,u._components=f,u=new i(u.toString()),typeof r.uri=="string"&&(p=new i(r.uri),u=new i(p,u)),u},i.equals=function(n,t,r){if(r===void 0&&(r=!1),n===t)return!0;if(n===null)return t===null;if(t===null)return!1;if(n===undefined)return t===undefined;if(t===undefined)return!1;var u,f;return u=typeof n=="string"?new i(n,0):n,f=typeof t=="string"?new i(t,0):t,i.stringEquals(u.toString(),f.toString(),r)?!0:u._scheme===f._scheme&&u._userinfo===f._userinfo&&u._hostname===f._hostname&&u.port===f.port&&i.stringEquals(u._pathname,f._pathname,r)&&i.stringEquals(u._search,f._search,r)&&i.stringEquals(u._hash,f._hash,r)?!0:!1},i.compare=function(n,r,u,f,e){if(u===void 0&&(u=t.AbsoluteUri),f===void 0&&(f=1),e===void 0&&(e=!1),typeof u!="number")throw new TypeError("Invalid argument: partsToCompare.");if(typeof f!="number")throw new TypeError("Invalid argument: compareFormat.");if((f&-4)!=0)throw new RangeError("Argument out of range: compareFormat.");return n===r?0:n===null||n===undefined?r===null||r===undefined?0:-1:r===null||r===undefined?1:n.isAbsolute&&r.isAbsolute?i.compareStrings(n.getComponentsCore(u,f),r.getComponentsCore(u,f),e):n.isAbsolute?1:r.isAbsolute?-1:i.compareStrings(n.raw,r.raw,e)},i.getCurrent=function(){return typeof self!="undefined"?new i(self.location.href):new i(".")},i.prototype.getComponents=function(n,t){if(typeof n!="number"||typeof t!="number")throw new TypeError("Invalid argument: components.");if(typeof t!="number")throw new TypeError("Invalid argument: format.");if((t&-4)!=0)throw new RangeError("Argument out of range: format.");return n=i.adjustComponents(n),this.getComponentsCore(n,t)},i.prototype.toString=function(){return this.getComponentsCore(t.AbsoluteUri,3)},i.prototype.toJSON=function(){return this.toString()},i.prototype.isSameOrigin=function(n){if(n===null||n===undefined)throw new TypeError("Missing required argument: uri.");var r=n instanceof i?n:new i(String(n));return this.isAbsolute?this.getComponentsCore(t.Origin,1)===r.getComponentsCore(t.Origin,1):!r.isAbsolute},i.prototype.isBaseOf=function(n){var r;if(n===null||n===undefined)throw new TypeError("Missing required argument: uri.");var e=this.getComponentsCore(t.AbsoluteUri&-257,3),o=this.getComponentsCore(t.AbsoluteUri&-257,3),u=e.split(i.PATH_DELIMITER),f=o.split(i.PATH_DELIMITER);if(u.length>f.length)return!1;for(r=0;rt?1:nt?1:0},i.formatUserinfo=function(t,r){switch(r){case 1:t=i.escape(t,"?#","%");break;case 2:t=n.ToolWindowHelpers.tryDecodeURIComponent(t);break;case 3:t=i.unescape(t,"@/\\","safe")}return t},i.formatPath=function(t,r){switch(r){case 1:t=i.escape(t,"?#","%");break;case 2:t=n.ToolWindowHelpers.tryDecodeURIComponent(t);break;case 3:t=i.unescape(t,"?#","safe")}return t},i.formatSearch=function(n,t){switch(t){case 1:n=i.escape(n,"#","%");break;case 2:n=i.unescape(n,"#","all");break;case 3:n=i.unescape(n,"#","safe")}return n},i.formatHash=function(n,t){switch(t){case 1:n=i.escape(n,"","%");break;case 2:n=i.unescape(n,"#","all");break;case 3:n=i.unescape(n,"#","safe")}return n},i.escape=function(t,i,r){var u,s,h;if(!t)return t;var f=[],o=0,e="";for(u=0;u-1?e="forced":r.indexOf(s)>-1&&(e="reserved"),e!==""){if(o-1?u+=2:/^[;/?:@&=+$#%\\\x00-\x17]$/.test(f)?u+=2:(s(),a(f,o))}}else if(r==="all")continue;else i.indexOf(f)>-1&&(s(),v(f));return s(),c.join("")},i.parseCore=function(n,r,u){var o,l,e,a,p,f,w,v,y,h=0,b=n,s,c;if(n=n.trim(),f=n,r!==2){if(i.DosPath.test(n)&&(n="file:///"+n),s=i.UriParser.exec(n),s)o=s[i.SCHEME_INDEX],l=s[i.USERINFO_INDEX],e=s[i.HOSTNAME_INDEX],a=s[i.PORT_INDEX],f=s[i.PATHNAME_INDEX],w=!!s[i.SCHEMESEGMENT_INDEX],v=s[i.SEARCH_INDEX],y=s[i.HASH_INDEX],r=1;else{if(r===1){if(u)throw new URIError;return}r=2}if(!o&&w){if(u)throw new URIError;return}(o||e)&&f&&(f=f.replace(/\\/g,i.PATH_DELIMITER));o&&o.toLowerCase()===i.UriSchemeFile&&(/^\.{1,2}$/.test(e)&&/^([\\/]|$)/.test(f)||/^[a-z]$/i.test(e)&&/^:[\\/]/.test(f)?(f=e+f,e=undefined):e||(/^[\\/]\.{1,2}/.test(f)?f=f.substr(1):/^[\\/]{2,}/.test(f)&&(f=f.replace(/^[\\/]{2,}/,""),c=f.indexOf(i.PATH_DELIMITER),c>-1?(e=f.substr(0,c),f=f.substr(c)):(e=f,f=""))))}return typeof o=="string"&&(o=o.toLowerCase(),h|=1,(o===i.UriSchemeHttp||o===i.UriSchemeHttps)&&(h|=512)),typeof l=="string"&&(h|=2),typeof e=="string"&&(e=e.toLowerCase(),h|=4),typeof a=="string"&&(p=parseInt(a),h|=520),typeof f=="string"&&r!==2&&(f=i.normalizePath(f)),f&&(h|=t.Pathname),typeof v=="string"&&(h|=128),typeof y=="string"&&(h|=256),u||(u=Object.create(i.prototype)),u._scheme=o,u._userinfo=l,u._hostname=e,u._port=p,u._pathname=i.escape(f,"","%"),u._search=v,u._hash=y,u._raw=b,u._components=h,u},i.mergeCore=function(n,r,u){if(!u&&r.isAbsolute)return r;var o,h,c,l,f,s,a,e=0;return r._scheme?(o=r._scheme,h=r._userinfo,c=r._hostname,l=r._port,f=i.normalizePath(r._pathname),s=r._search):(r._hostname?(h=r._userinfo,c=r._hostname,l=r._port,f=i.normalizePath(r._pathname),s=r._search):(r._pathname?(r._pathname.charAt(0)===i.PATH_DELIMITER?f=i.normalizePath(r._pathname):(f=i.mergePath(n._pathname,r._pathname),f=i.normalizePath(f)),s=r._search):(f=n._pathname,s=r._search?r._search:n._search),h=n._userinfo,c=n._hostname,l=n._port),o=n._scheme),a=r._hash,typeof o=="string"&&(e|=1,(o===i.UriSchemeHttp||o===i.UriSchemeHttps)&&(e|=512)),typeof h=="string"&&(e|=2),typeof c=="string"&&(e|=4),typeof l=="number"&&(e|=520),f&&(e|=t.Pathname),typeof s=="string"&&(e|=128),typeof a=="string"&&(e|=256),u||(u=Object.create(i.prototype)),u._scheme=o,u._userinfo=h,u._hostname=c,u._port=l,u._pathname=f,u._search=s,u._hash=a,u._components=e,u._raw=u.toString(),u},i.mergePath=function(n,t){var r=-1;return n&&(r=n.lastIndexOf(i.PATH_DELIMITER)),r>=0?n.substr(0,r+1)+t:t},i.normalizePath=function(n){var t,u,r,f;for(n=n.replace(/^\s+|\s+$/g,""),n=n.replace(/\\+|\/+/g,i.PATH_DELIMITER),t=n.split(/\//g),u=t[0]==="",u&&t.shift(),r=0;r=1&&t[r-1]!==i.CURRENT_DIRECTORY_TOKEN&&t[r-1]!==i.PARENT_DIRECTORY_TOKEN){t.splice(--r,2);r===t.length&&t.push("");continue}}r++}return u&&t.unshift(""),t.join(i.PATH_DELIMITER)},i.computePathDifference=function(n,t,r){for(var e=-1,f,u=0;u-1&&(l=i.formatPath(u.substr(0,s+1),r)),o===16)return l;f||(f=[]);f.push(l)}if(a=o&t.Filename,a&&s-1?u.substr(s+1):u,a===t.Filename){if(e=i.formatPath(e,r),o===t.Filename)return e;f||(f=[]);f.push(e)}else if(h=e.lastIndexOf(i.EXTENSION_DELIMITER),a===32){if(v=h===-1?i.formatPath(e,r):h>0?i.formatPath(e.substr(0,h),r):"",o===32)return v;f||(f=[]);f.push(v)}else return h===0?i.formatPath(e,r):h>0?i.formatPath(e.substr(h),r):"";return f?f.join(""):""},i.UriParser=/^(?:([a-z][a-z0-9+.\-]*)[:|])?(?:[\\/]{2}(?:((?:[\w\-._~!$&'()*+,;=:]|%[a-f0-9]{2})*)@)?(\[[^\[\]]+\]|[\w\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF\.\-_]*)(?:\:(\d+))?|(?![\\/]{2}))(([^/\\?#]*:)?[^?#]*?)(?:\?([^#]*?))?(?:#(.*?))?$/i,i.DosPath=/^([a-z]\:|[\\/]{2,}[^\\/@:?#]+)[\\/]/i,i.SCHEME_INDEX=1,i.USERINFO_INDEX=2,i.HOSTNAME_INDEX=3,i.PORT_INDEX=4,i.PATHNAME_INDEX=5,i.SCHEMESEGMENT_INDEX=6,i.SEARCH_INDEX=7,i.HASH_INDEX=8,i.SCHEME_DELIMITER="//",i.PATH_DELIMITER="/",i.DOS_PATH_DELIMITER="\\",i.UNC_ROOT="\\\\",i.USERINFO_DELIMITER="@",i.SEARCH_DELIMITER="?",i.HASH_DELIMITER="#",i.CURRENT_DIRECTORY_TOKEN=".",i.PARENT_DIRECTORY_TOKEN="..",i.PROTOCOL_DELIMITER=":",i.PORT_DELIMITER=":",i.EXTENSION_DELIMITER=".",i.DEFAULT_PORT_HTTP=80,i.DEFAULT_PORT_HTTPS=443,i.SchemeDelimiter="://",i.UriSchemeHttp="http",i.UriSchemeHttps="https",i.UriSchemeFile="file",i.UriSchemeData="data",i}();n.Uri=i})(Common||(Common={})); //! Copyright (C) Microsoft. All rights reserved. (function(n){"use strict";var t=Microsoft.Plugin,i;(function(n){function l(n,t){n.metadata=t}function o(){function f(n){return function(){var i=arguments;return t.Promise.timeout().then(function(){return t.F12.SelfTest.logMessage("Executing step "+n+"."),u[n].apply(null,i)})}}for(var i,r,u=[],n=0;n0&&(t.attr("tabindex","1"),t.trigger("focus"),t.trigger("click"),i.removeAttr("tabindex"))}});$m(".BPT-TabCycle-Horizontal, .BPT-TabCycle-Vertical").children(".BPT-TabCycle-Item").bind("mousedown",function(){var t=$m(this).siblings(".BPT-TabCycle-Item").matchAttr("tabindex","1"),n=$m(this);n.length>0&&(n.attr("tabindex","1"),n.trigger("focus"),t.removeAttr("tabindex"))})},i.registerErrorComponent=function(n,t){window.errorComponent=n;window.errorDisplayHandler=t},i.loadString=function(n){for(var i=[],r=1;rr.bottom;if(u||f)return n.scrollIntoView(!0),!0}return!1},i.getSortedObjectProperties=function(t){var i=[];for(var r in t)i.push(r);return i.sort(n.ToolWindowHelpers.naturalSort),i},i.getSortedArrayProperties=function(t,i,r){for(var f=[],e,u=0;u0&&r.length>0){var e=i.shift(),o=r.shift(),u=parseInt(e,10),f=parseInt(o,10);if(isNaN(u)&&isNaN(f)){if(e!==o)return e.localeCompare(o)}else{if(isNaN(u))return 1;if(isNaN(f))return-1;if(u!==f)return u-f}}return i.length-r.length},i.createShortenedUrlText=function(t){var e,h,f;if(!t)return t;if(t instanceof n.Uri)return(e=t,e.scheme==="javascript")?"javascript:":(h=e.segments,f=h.pop(),f||(f=h.pop()),f?e.hostname||e.scheme!=="about"||(f=e.scheme+":"+f):f=e.hostname,i.tryDecodeURIComponent(f));var l=t,r=l,c="javascript:";if(r.toLowerCase().substr(0,c.length)===c)return"javascript:";var o=r.indexOf("#"),s=r.indexOf("?"),u=-1;for(o>-1&&s>-1?u=Math.min(o,s):o>-1?u=o:s>-1&&(u=s),u>-1&&(r=r.substring(0,u)),u=Math.max(r.lastIndexOf("/"),r.lastIndexOf("\\"));u!==-1&&u===r.length-1;)r=r.substring(0,r.length-1),u=Math.max(r.lastIndexOf("/"),r.lastIndexOf("\\"));return u>-1&&(r=r.substring(u+1),r=i.tryDecodeURIComponent(r)),r},i.getTruncatedString=function(n,t){if(t===void 0&&(t=20),!n)return n;if(n.length>t){var i=t/2-2;n=n.substr(0,i)+this.loadString("Ellipsis")+n.substr(n.length-i)}return n},i.getTruncatedFileName=function(n,t){return t===void 0&&(t=20),i.getTruncatedString(i.createShortenedUrlText(n),t)},i.createFileLinkText=function(n,t,i,r){var u=n?this.getTruncatedFileName(n,r):"";return t&&(n&&(u+=" "),u+="("+t,i&&(u+=", "+i),u+=")"),u},i.pathCombine=function(n,t){var i=/[\/\\]/,r;return t?this.isAbsoluteUrl(t)||!n?t:t.charAt(0)==="/"&&this.isAbsoluteUrl(n)?this.getRoot(n)+t:n.charAt(n.length-1).match(i)||t.charAt(0).match(i)?n+t:(r=(n+t).lastIndexOf("\\")>=0?"\\":"/",n+r+t):n},i.getRoot=function(n){return n.substring(0,n.indexOf("/",n.indexOf("://")+3))},i.isAbsoluteUrl=function(n){return this.isUncPath(n)||this.pathStartsWithDriveLetter(n)?!0:!n.match(/^file:\/{2,3}\./i)?!!n.match(/^[a-zA-Z][\w\+\-\.]*:/)||this.isDataURI(n):!1},i.isUncPath=function(n){return!!n.match(/^\\\\/)},i.pathStartsWithDriveLetter=function(n){return!!n.match(/^[A-Za-z]:/)},i.isFileURI=function(n){return n.length>5&&n.substr(0,5).toLocaleLowerCase()==="file:"},i.isDataURI=function(n){return n.length>5&&n.substr(0,5).toLocaleLowerCase()==="data:"},i.addFileProtocolIfNeeded=function(t){return(n.ToolWindowHelpers.pathStartsWithDriveLetter(t)||n.ToolWindowHelpers.isUncPath(t))&&!n.ToolWindowHelpers.isFileURI(t)&&(t="file:///"+t),t},i.truncateProtocolFromUrl=function(n){return n.replace(/^[a-zAZ][\w\+\-\.]*:(\/\/)?/g,"")},i.parseBase64DataUriContent=function(n){if(!i.isDataURI(n)||n.indexOf("base64,")===-1)return null;try{return window.atob(n.substr(n.indexOf("base64,")+7))}catch(t){return null}},i.parseDataUriMimeType=function(n){return!i.isDataURI(n)||n.indexOf(";")===-1?null:n.substring(5,n.indexOf(";"))},i.hasSelectedText=function(){var n=window.getSelection().toString();return!!n},i.getSelectedText=function(){return window.getSelection().toString()},i.getTextForClipboard=function(){var n=window.getSelection().toString();return n&&(n=n.replace(/[\r\n]+/g,"\r\n")),n},i.isDarkThemeBackground=function(n){var i,t,r;if(n){while((!i||i==="transparent")&&n&&n.length>0)i=n.css("background-color"),n=n.parent();if(i&&(t=i.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/),t&&t.length===4))return r=(parseInt(t[1],10)*299+parseInt(t[2],10)*587+parseInt(t[3],10)*114)/1e3,r<127}return!1},i.isContextMenuUp=function(){return n.ToolWindowHelpers.ContextMenuIsUp},i.contextMenuUp=function(t){n.ToolWindowHelpers.ContextMenuIsUp=t},i.nodeInDocument=function(n,t){if(t===void 0&&(t=document),n)while(n=n.parentNode)if(n===t)return!0;return!1},i.isFocusGood=function(){var n=document.querySelector(":focus");return n&&n.tagName!=="BODY"},i.fireCustomEvent=function(n,t){var i=document.createEvent("CustomEvent");i.initEvent(t,!0,!0);n.dispatchEvent(i)},i.getExtension=function(n){if(!n)return"";n=this.createShortenedUrlText(n);var t=n.lastIndexOf(".");return t<0?"":n.substr(t).toLowerCase()},i.guessMimeTypeFromUrlExtension=function(n){switch(this.getExtension(n)){case".html":case".htm":return"text/html";case".xml":case".svg":return"text/xml";case".ts":return"text/typescript";case".js":return"text/javascript";case".css":return"text/css";case".less":return"text/less";case".sass":case".scss":return"text/scss";case".coffee":return"text/coffeescript";case".cs":return"text/x-csharp";default:return"text/plain"}},i.isNumber=function(n){return typeof n=="number"&&!isNaN(n)},i.stringEndsWith=function(n,t){return n===null||typeof n!="string"?!1:t===null||typeof t!="string"?!1:n.indexOf(t,n.length-t.length)>=0},i.replaceTextInRange=function(n,t,i,r){return n.substring(0,t)+r+n.substring(i,n.length)},i.mirrorInputElementOffScreen=function(n){var t=document.createElement("div"),u,f,r;t.id="toolwindow-offScreenMirrorElement";document.body.appendChild(t);u=window.getComputedStyle(n);for(f in i.TextSizingProps)r=i.TextSizingProps[f],u[r]&&(t.style[r]=u[r]);return t.style.visibility="hidden",t.style.position="absolute",t.style.left="-10000px",t.style.whiteSpace="pre-wrap",t.textContent=n.value||".",t},i.getCharScreenPosition=function(t,i){var u=n.ToolWindowHelpers.mirrorInputElementOffScreen(t),s=u.childNodes[0],o=document.createRange();o.setStart(s,i);o.setEnd(s,i);var r=o.getBoundingClientRect(),f=u.getBoundingClientRect(),e=t.getBoundingClientRect();return u.parentElement.removeChild(u),{left:r.left-f.left+e.left,right:r.right-f.left+e.left,top:r.top-f.top+e.top,bottom:r.bottom-f.bottom+e.bottom,width:r.width,height:r.height}},i.tryDecodeURIComponent=function(n){try{return decodeURIComponent(n)}catch(t){return n}},i.tryEncodeURIComponent=function(n){try{return encodeURIComponent(n)}catch(t){return n}},i.tryEncodeURI=function(n){try{return encodeURI(n)}catch(t){return n}},i.getSelection=function(n){var t=0,i=0;try{t=n.selectionStart}catch(r){}try{i=n.selectionEnd}catch(r){}return{start:t,end:i}},i.ContextMenuIsUp=!1,i.TextSizingProps=["boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize"],i.CodeMarkers={perfBrowserTools_DiagnosticsToolWindowsConsoleReady:23609,perfBrowserTools_DiagnosticsToolWindowsDomExplorerReady:23610,perfBrowserTools_DiagnosticsToolWindowsExpandConsoleObjectBegin:23611,perfBrowserTools_DiagnosticsToolWindowsExpandConsoleObjectEnd:23612,perfBrowserTools_DiagnosticsToolWindowsExpandConsoleObjectInteractive:23613,perfBrowserTools_DiagnosticsToolWindowsConsoleEvalBegin:23614,perfBrowserTools_DiagnosticsToolWindowsConsoleEvalEnd:23615,perfBrowserTools_DiagnosticsToolWindowsDataTreeToggleBegin:23616,perfBrowserTools_DiagnosticsToolWindowsDataTreeToggleEnd:23617,perfBrowserTools_DiagnosticsToolWindowsTreeViewToggleBegin:23618,perfBrowserTools_DiagnosticsToolWindowsTreeViewToggleEnd:23619,perfBrowserTools_DiagnosticsToolWindowsDomExplorerRefreshBegin:23620,perfBrowserTools_DiagnosticsToolWindowsDomExplorerRefreshEnd:23621,perfBrowserTools_DiagnosticsToolWindowsDomExplorerAttributeChanged:23622,perfBrowserTools_DiagnosticsToolWindowsDomExplorerTabChanged:23623,perfBrowserTools_DiagnosticsToolWindowsNetworkExplorerReady:23624},i.AreCodeMarkersEnabled=!1,i}();n.ToolWindowHelpers=i})(Common||(Common={})); //! Copyright (C) Microsoft. All rights reserved. Proxy=function(){function n(n){this._uid=0;this._callbacks={};this._pendingTimeout=null;this.remotePort=null;this._diagnosticsBridge=n}return n.prototype.callRemote=function(n,t,i,r){var f=this,h=this.getUid(),s,e,u,o,c,l;if(i&&(this._callbacks[h]={synced:!0,callback:i||null}),s=[],e=[],t)for(u=0;u=0||n.indexOf(",")>=0)?'"'+n.replace('"','""')+'"':n},n}();n.CSVWriter=t})(Common||(Common={})); //! Copyright (C) Microsoft. All rights reserved. //! Copyright (C) Microsoft. All rights reserved. $mList=function(){function n(n,t){var r,u,i;if(this.selector=n,t===null)this._array=[];else if(t.length!==undefined)for(this._array=[],r=t,u=r.length,i=0;i=1&&this._array[0].focus(),this},n.prototype.text=function(n){var i,t;if(n===undefined)return this.length>0?this._array[0].text():void 0;for(i=this.length,t=0;t0?this._array[0].html():void 0;for(i=this.length,t=0;t0)for(f=this.length,i=0;if)&&(i=f),r=t;r0)for(r=this.length,t=0;t=0;i--)this._array[t].prepend(n._array[i].get());return this},n.prototype.append=function(n){var r,t,i;if(n.length>0)for(r=this.length,t=0;t0&&n.length===1)for(t=0;t=0?this._array[r].triggerEvent(f,i):this._array[r].triggerSpecial(f,i);return this},n.prototype.get=function(n){return(n<0&&(n=n+this.length),n>=this.length||n<0)?null:this._array[n].get()},n.prototype.first=function(){var t=new n(this.selector+" \u2192 first",null);return this.length>0&&t.push(this._array[0]),t},n.prototype.last=function(){var t=new n(this.selector+" \u2192 last",null);return this.length>0&&t.push(this._array[this.length-1]),t},n.prototype.position=function(){var n=this.length;if(n>0)return this._array[0].position()},n.prototype.height=function(){var n=this.length;if(n>0)return this._array[0].height()},n.prototype.outerHeight=function(n){var t=this.length;if(t>0)return this._array[0].outerHeight(n)},n.prototype.width=function(){var n=this.length;if(n>0)return this._array[0].width()},n.prototype.outerWidth=function(n){var t=this.length;if(t>0)return this._array[0].outerWidth(n)},n.isClassSelector=function(n){return n[0]!=="."?!1:n.indexOf(",")!==-1?!1:n.indexOf("#")!==-1?!1:n.indexOf(">")!==-1?!1:n.indexOf(" ")!==-1?!1:n.indexOf("[")!==-1?!1:!0},n.prototype.push=function(n){this._array.push(n)},n.prototype.changeBinding=function(t,i,r,u,f){for(var o,s,h=r.split(" "),c=this.length,e=0;e=0?this._array[e].changeEventBinding(i,t,s,u,f):this._array[e].changeSpecialBinding(i,t,s,u,f);return this},n.DomEvents=["click","dblclick","mousedown","mouseup","mousemove","mouseover","mouseout","contextmenu","focus","blur","focusin","focusout","keydown","keyup","keypress","change","reset","select","submit"],n}(); //! Copyright (C) Microsoft. All rights reserved. $mNode=function(){function n(n){this.length=1;this._node=n}return n.prototype.get=function(){return this._node},n.prototype.is=function(n){if(!(this._node instanceof HTMLElement))throw"$mNode.is(s: string) : boolean - can only be called on HTML elements";var t=this._node;if(n===":hidden")return t.style.display==="none";if(n===":visible")return t.style.display!=="none";throw"$mNode.is(s: string) : boolean - can only be called with :hidden or :visible"},n.prototype.hide=function(){if(!(this._node instanceof HTMLElement)&&!(this._node instanceof SVGElement))throw"$mNode.hide(): IQueryNode - can only be called on HTML or SVG elements";var n=this._node;return n.style.display="none",this},n.prototype.show=function(){var n,t,i;if(!(this._node instanceof HTMLElement)&&!(this._node instanceof SVGElement))throw"$mNode.show(): IQueryNode - can only be called on HTML or SVG elements";return n=this._node,n.style.display="",t=n.ownerDocument.defaultView.getComputedStyle(n,null),i=t.display,i==="none"&&(n.style.display="block"),this},n.prototype.placeholder=function(n){if(!(this._node instanceof HTMLInputElement))throw"$mNode.placeholder(s: string): IQueryNode - can only be called on HTMLInput elements";var t=this._node;return t.placeholder=n,this},n.prototype.focus=function(){var n=this._node;return n.focus(),this},n.prototype.scrollTop=function(n){if(!(this._node instanceof HTMLElement))throw"$mNode.scrollTop(value?: number): number - can only be called on HTML elements";var t=this._node;return n!==undefined?t.scrollTop:(t.scrollTop=n,n)},n.prototype.addClass=function(n){if(!(this._node instanceof HTMLElement))throw"$mNode.addClass(className: string) - can only be called on HTML elements";var t=this._node;t.classList.contains(n)||t.classList.add(n)},n.prototype.removeClass=function(n){if(!(this._node instanceof HTMLElement))throw"$mNode.removeClass(className: string) - can only be called on HTML elements";var t=this._node;t.classList.contains(n)&&t.classList.remove(n)},n.prototype.hasClass=function(n){if(!(this._node instanceof HTMLElement))return!1;var t=this._node;return t.classList&&t.classList.contains(n)},n.prototype.scrollLeft=function(n){if(!(this._node instanceof Element))throw"$mNode.scrollLeft(value?: number): number - can only be called on Elements";var t=this._node;return n!==undefined?t.scrollLeft:(t.scrollLeft=n,n)},n.prototype.data=function(t,i){var r=this._node[n.DATA_KEY];if(r||(this._node[n.DATA_KEY]=r={}),t===undefined)return r;if(i!==undefined)r[t]=i;else return r[t];return r},n.prototype.attr=function(n){if(!(this._node instanceof Element))throw"$mNode.attr(attributeName: string): string - can only be called on Elements";var i=this._node,t=i[n];return t===undefined&&(t=i.getAttribute(n)),t===null?undefined:t},n.prototype.removeAttr=function(n){if(!(this._node instanceof Element))throw"$mNode.removeAttr(attributeName: string): string - can only be called on Elements";var t=this._node;t.removeAttribute(n)},n.prototype.matchAttr=function(n,t){if(!(this._node instanceof Element))throw"$mNode.matchAttr(attributeName: string, value: string) - can only be called on Elements";var i=this._node;return i.getAttribute(n)===t},n.prototype.setAttr=function(n,t){if(!(this._node instanceof Element))throw"$mNode.setAttr(attributeName: string, setValue: any): void - can only be called on Elements";var i=this._node;i.setAttribute(n,t)},n.prototype.parent=function(t){if(this._node instanceof HTMLElement){var i=this._node.parentNode;return t===undefined||i.classList.contains(t)?new n(i):undefined}},n.prototype.parents=function(t){var r,i;if(!(this._node instanceof HTMLElement))throw"$mNode.parents(s: string): IQueryNode - can only be called on HTML elements";for(i=this._node,r=[];i.parentNode instanceof HTMLElement;)i=i.parentNode,i.classList.contains(t)&&r.push(new n(i));return r},n.prototype.text=function(n){if(!(this._node instanceof HTMLElement))throw"$mNode.text(s?: string): string - can only be called on HTML elements";var t=this._node;return n===undefined?t.innerText:(t.innerText=n,n)},n.prototype.html=function(n){if(!(this._node instanceof HTMLElement))throw"$mNode.html(htmlString?: string): string - can only be called on HTML elements";var t=this._node;return n===undefined?t.innerHTML:(t.innerHTML=n,n)},n.prototype.remove=function(){this._node.parentNode&&this._node.parentNode.removeChild(this._node)},n.prototype.prepend=function(n){this._node.insertBefore(n,this._node.firstChild)},n.prototype.append=function(n){this._node.appendChild(n)},n.prototype.replaceWith=function(n){var t=this._node.parentNode,i,r;t&&(i=this._node.nextSibling,t.removeChild(this._node),r=n._node,i?t.insertBefore(r,i):t.appendChild(r))},n.prototype.select=function(){if(!(this._node instanceof HTMLElement))throw"$mNode.select() - can only be called on HTML elements";var n=this._node;n.select()},n.prototype.val=function(n){var i,t;if(!(this._node instanceof HTMLInputElement))throw"$mNode.val(): string - can only be called on HTMLInput elements";if(i=this._node,n===undefined)return(t=i.value,typeof t=="string")?t.replace(/\r/g,""):t===undefined||t===null?"":t;i.value=n},n.prototype.closest=function(t){for(var i=this._node,r;i;){if(i.classList)for(r=0;r=0&&f.splice(h,1)):f=[],f.length&&(t===undefined&&(t=e),s=function(n){var i,e=!0,r;for(n.target=t,i=0;i=r.length)||(h=r.indexOf(i,o),h===-1))return s;l=r.substring(e+t.length,h);c=h+i.length-1}else c=e+t.length-1;s.push(new n.Range(e,c,l,!0,f,u));o=s[s.length-1].lastIndex+1}return s},t.prototype.findRemainingRanges=function(t,i){var u=[],r,e,f;if(i.length===0)return u.push(new n.Range(0,t.length-1,t,!1,!1,"text")),u;for(r=0,f=0;f0&&u.push(new n.Range(r,r+e-1,t.substring(r,r+e),!1,!1,"text")),r=i[f].lastIndex+1;return r/g,t.LTRegex=/\s*\n\s*<"),n.replace(/<\/>/g,"")},t.prototype.initialize=function(t){var i=new n.BlockFactory;i.loadBlocks(this,t)},t.prototype.processBlocks=function(n){for(var t="",i=0;i=0&&n=t.length?this._deleteCallback(n[i++]):i>=n.length?this._insertBeforeCallback(t[r++],in[i][this._sortPropertyName]?this._deleteCallback(n[i++]):this._insertBeforeCallback(t[r++],n[i])},n}();n.ListReconciler=t})(t=n.ModelView||(n.ModelView={}))})(Common||(Common={})); //! Copyright (C) Microsoft. All rights reserved. __extends=this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);r.prototype=t.prototype;n.prototype=new r},function(n){var t;(function(n){"use strict";var t=function(t){function i(i,r,u,f,e,o,s,h,c,l,a){t.call(this,i,r,u,f,e,o,s);this.objectsPreviouslyRendered=[];this.htmlElementSource=i;this.listViewDivId=r;this.idPropertyName=h;this._sortPropertyName=c;this.idPropertyName&&this._sortPropertyName&&(this.listReconciler=new n.ListReconciler(h,c,this.insertBefore.bind(this),this.update.bind(this),this.deleteItem.bind(this),l,a))}return __extends(i,t),i.prototype.renderView=function(){if(!this.listReconciler){t.prototype.renderView.call(this);return}this.preViewProcessing();this.listReconciler.reconcile(this.objectsPreviouslyRendered,this.model.cache);this.objectsPreviouslyRendered=this.model.cache.slice(0);this.postViewProcessing();this.renderViewCallback&&this.renderViewCallback()},i.prototype.beforeUpdate=function(){},i.prototype.afterUpdate=function(){},i.prototype.beforeDelete=function(){},i.prototype.afterDelete=function(){},i.prototype.clearView=function(){t.prototype.clearView.call(this);this.objectsPreviouslyRendered=[]},i.prototype.insertBefore=function(n,t){var r=this.renderItem(n,i.ListItemClassName),u;if(!t){this.listRoot.appendChild(r);return}u=this.listRoot.querySelector("[data-listid='"+t[this.idPropertyName]+"']");u?this.listRoot.insertBefore(r,u):this.listRoot.appendChild(r)},i.prototype.update=function(n,t){var r=this.listRoot.querySelector("[data-listid='"+t[this.idPropertyName]+"']"),u;r&&(this.beforeUpdate(n,t,r),u=this.renderItemText(n),r.outerHTML=u,r.classList.add(i.ListItemClassName),this.afterUpdate(n,t,r))},i.prototype.deleteItem=function(n){var t=this.listRoot.querySelector("[data-listid='"+n[this.idPropertyName]+"']");t&&(this.beforeDelete(n,t),t.parentNode.removeChild(t),this.afterDelete())},i.ListItemClassName="BPT-List-Item",i}(n.ListView);n.ReconcilingListView=t})(t=n.ModelView||(n.ModelView={}))}(Common||(Common={})); //! Copyright (C) Microsoft. All rights reserved. (function(n){var t;(function(n){var t;(function(n){"use strict";var t=function(){function n(n){if(this._rootElement=n,typeof this._rootElement=="undefined")this._rootElement=document.createElement("div"),this._rootElement.style.width=this._rootElement.style.height="100%";else if(this._rootElement===null)throw new Error("Invalid root element for Control.")}return Object.defineProperty(n.prototype,"rootElement",{get:function(){return this._rootElement},set:function(n){if(!n)throw new Error("Invalid root");var t=this._rootElement;this._rootElement=n;t&&t.parentNode&&t.parentNode.replaceChild(n,t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"parent",{get:function(){return this._parent},set:function(n){this._parent!==n&&(this._parent=n,this._parent&&!this._parent.rootElement.contains(this._rootElement)&&this._parent.appendChild(this),this.onParentChanged())},enumerable:!0,configurable:!0}),n.prototype.appendChild=function(n){this._rootElement.appendChild(n.rootElement);n.parent=this},n.prototype.removeChild=function(n){n.rootElement.parentElement&&(this._rootElement.removeChild(n.rootElement),n.parent=null)},n.prototype.destroy=function(){this._rootElement=null},n.prototype.onParentChanged=function(){},n}();n.Control=t})(t=n.Legacy||(n.Legacy={}))})(t=n.Controls||(n.Controls={}))})(Common||(Common={})); //! Copyright (C) Microsoft. All rights reserved. __extends=this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);r.prototype=t.prototype;n.prototype=new r},function(n){var t;(function(n){var t;(function(n){"use strict";var t=function(n){function t(){n.call(this)}return __extends(t,n),Object.defineProperty(t.prototype,"content",{get:function(){return this._content},set:function(n){this._content!==n&&(this._content&&this.removeChild(this._content),this._content=n,this.appendChild(this._content),this.onContentChanged())},enumerable:!0,configurable:!0}),t.prototype.appendChild=function(t){if(this.rootElement.children.length!==0)throw new Error("Only one child is allowed in a content control.");n.prototype.appendChild.call(this,t)},t.prototype.onContentChanged=function(){},t}(n.Control);n.ContentControl=t})(t=n.Legacy||(n.Legacy={}))})(t=n.Controls||(n.Controls={}))}(Common||(Common={})); //! Copyright (C) Microsoft. All rights reserved. __extends=this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);r.prototype=t.prototype;n.prototype=new r},function(n){var t;(function(t){var i;(function(t){"use strict";var i=function(n){function t(i,r){n.call(this);this._idPostfix=t.GlobalIdPostfix++;i&&this.setTemplateFromName(i,r)}return __extends(t,n),t.prototype.setTemplateFromName=function(n,t){var r,i;t?(r=t.getTemplateString(n),this.setTemplateFromHTML(r)):(i=this.getTemplateElementCopy(n),this.adjustElementIds(i),this.rootElement=i)},t.prototype.setTemplateFromHTML=function(n){var t=this.getTemplateElementFromHTML(n);this.adjustElementIds(t);this.rootElement=t},t.prototype.findElement=function(n){var t=n+this._idPostfix;return this.forAllSelfAndDescendants(this.rootElement,function(n){return n.id&&n.id===t?!1:!0})},t.prototype.findElementsByClassName=function(n){var t=[];return this.forAllSelfAndDescendants(this.rootElement,function(i){return i.classList&&i.classList.contains(n)&&t.push(i),!0}),t},t.prototype.getTemplateElementCopy=function(n){var t=document.getElementById(n);if(!t)throw new Error("Couldn't find the template with name: "+n);if(t.tagName.toLowerCase()!=="script")throw new Error("Expecting the template container to be a script element.");return this.getTemplateElementFromHTML(t.innerHTML)},t.prototype.getTemplateElementFromHTML=function(n){var t=this.getTemplateRootElement();return t.innerHTML=n,t.childElementCount===1&&(t=t.firstElementChild),t},t.prototype.getTemplateRootElement=function(){var n=document.createElement("div");return n.style.width=n.style.height="100%",n},t.prototype.adjustElementIds=function(n){var t=this._idPostfix;this.forAllSelfAndDescendants(n,function(n){return n.id&&(n.id=n.id+t),!0})},t.prototype.forAllSelfAndDescendants=function(n,t){var i=null,u,f,r;if(t(n)){if(n.children)for(u=n.children,f=u.length,r=0;r<\/ul>');this.rootElement.setAttribute("tabindex","0");this.rootElement.setAttribute("role","listbox");this.rootElement.onkeydown=function(n){return f.onKeyDown(n)};this._listItemElementType=r||"li";this._listItemElementClass=u||"";this._listItemContainers=[];this._selectedIndex=-1;this.rootElement.id||(this.rootElement.id=i.getUniqueID())}return __extends(i,n),Object.defineProperty(i.prototype,"selectedItemChanged",{get:function(){return this._onSelectedItemChanged},set:function(n){this._onSelectedItemChanged=n},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"selectedIndexChanged",{get:function(){return this._onSelectedIndexChanged},set:function(n){this._onSelectedIndexChanged=n},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"itemDoubleClicked",{get:function(){return this._onItemDoubleClicked},set:function(n){this._onItemDoubleClicked=n},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"listItems",{get:function(){return this._listItems},set:function(n){var t,i,r;if(this.fireBuildListBoxStartEvent(),this.selectedIndex=-1,this._listItems=[],t=0,n)for(;t0)this._listItemHeight=this._listItemContainers[0].rootElement.offsetHeight;else return i.DEFAULT_LIST_ITEM_HEIGHT;return this._listItemHeight},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"itemContainers",{get:function(){return this._listItemContainers},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"selectedIndex",{get:function(){return this._selectedIndex},set:function(n){var t,i,r;this._selectedIndex!==n&&(t=this._selectedIndex,this._selectedIndex=n,t>=0&&(i=this._listItemContainers[t],i.selected=!1),n>=0&&n=0?this._listItems[n]:null},set:function(n){var i=this.selectedIndex,t=this._listItems.indexOf(n);this.selectedIndex=t},enumerable:!0,configurable:!0}),i.prototype.scrollIntoView=function(n,t){var r=this._listItems.indexOf(n);if(r>=0){var u=this._listItemContainers[r].rootElement,i=u.getBoundingClientRect(),f=document.elementFromPoint(i.left+1,i.top+1),e=document.elementFromPoint(i.right-1,i.bottom-1);(f!==u||e!==u)&&this._listItemContainers[r].rootElement.scrollIntoView(t)}},i.prototype.createListItemContainer=function(n){return new t(this,n,this._listItemElementType,this._listItemElementClass)},i.prototype.fireBuildListBoxStartEvent=function(){},i.prototype.fireBuildListBoxEndEvent=function(){},i.prototype.fireResetListBoxStartEvent=function(){},i.prototype.fireResetListBoxEndEvent=function(){},i.getUniqueID=function(){return"Common-Controls-Legacy-ListBox-"+i.CurrentUniqueID++},i.prototype.resetUnusedItems=function(n){this.fireResetListBoxStartEvent();for(var t=n;t0&&(this.selectedIndex--,this.scrollIntoView(this.selectedItem,!0)):n.keyCode===40&&t&&this.selectedIndex0&&this.rootElement.classList.add(u.itemClass);e!==""&&this.rootElement.classList.add(e);this.rootElement.onmouseover=function(){return o._item&&o._item.info&&r.Tooltip.show({content:o._item.info}),!0};this.rootElement.setAttribute("role","option");this.rootElement.onmousedown=function(n){return o.onMouseDown(n)};this.rootElement.onclick=function(n){return o.onMouseDown(n)};this.rootElement.ondblclick=function(n){return o.onDoubleClicked(n)};this.rootElement.getAttribute("id")||this.rootElement.setAttribute("id",t.getUniqueID())}return __extends(t,n),Object.defineProperty(t.prototype,"selectedChanged",{get:function(){return this._onSelectChanged},set:function(n){this._onSelectChanged=n},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selected",{get:function(){return this._selected},set:function(n){var t=n!==this._selected;this._selected=n;t&&(n?(this.rootElement.setAttribute("selected","selected"),this.rootElement.setAttribute("aria-selected","true"),this._owner.selectedItem=this._item):(this.rootElement.removeAttribute("selected"),this.rootElement.removeAttribute("aria-selected")));this._onSelectChanged&&t&&this._onSelectChanged(n)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this._item},set:function(n){n&&typeof n.text=="string"?(this._item=n,this.rootElement.firstChild?this.rootElement.firstChild.nodeValue=this._item.text:this.rootElement.innerText=this._item.text,this.rootElement.setAttribute("aria-label",this._item.text)):(this._item=null,this.rootElement.firstChild&&(this.rootElement.firstChild.nodeValue=""),this.rootElement.removeAttribute("aria-label"))},enumerable:!0,configurable:!0}),t.getUniqueID=function(){return"Common-Controls-Legacy-ListBoxItemContainer-"+t.CurrentUniqueID++},t.prototype.onMouseDown=function(){this.selected=!0;this._owner.rootElement.focus()},t.prototype.onDoubleClicked=function(){this.selected=!0;this._owner.rootElement.focus();this._owner.itemDoubleClicked&&this._owner.itemDoubleClicked(this._item)},t.CurrentUniqueID=0,t.CONTENT_ELEMENT_ID="content",t}(n.Control);n.ListBoxItemContainer=t})(t=n.Legacy||(n.Legacy={}))})(t=n.Controls||(n.Controls={}))}(Common||(Common={})); //! Copyright (C) Microsoft. All rights reserved. (function(n){var t;(function(n){"use strict";(function(n){n[n.Tab=0]="Tab";n[n.Enter=1]="Enter";n[n.DoubleClick=2]="DoubleClick"})(n.ChoiceCommitSource||(n.ChoiceCommitSource={}));var t=n.ChoiceCommitSource})(t=n.Intellisense||(n.Intellisense={}))})(Common||(Common={})); //! Copyright (C) Microsoft. All rights reserved. __extends=this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);r.prototype=t.prototype;n.prototype=new r},function(n){var t;(function(t){"use strict";var r=function(n){function t(t,i){n.call(this,t,t,i)}return __extends(t,n),Object.defineProperty(t.prototype,"optionName",{get:function(){return this.text},enumerable:!0,configurable:!0}),t}(n.Controls.Legacy.ListBoxItem),i;t.IntellisenseChoice=r;i=function(n){function t(t,i,r,u){var f=this;n.call(this,t,i,r||"intellisenseListBoxItem");this.itemDoubleClicked=function(n){return f.optionDoubleClicked(n)};this._traceProvider=u;this._currentEtwKey=-1}return __extends(t,n),Object.defineProperty(t.prototype,"intellisenseChoiceSelected",{get:function(){return this._intellisenseChoiceSelected},set:function(n){this._intellisenseChoiceSelected=n},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentEtwKey",{get:function(){return this._currentEtwKey},set:function(n){this._currentEtwKey=n},enumerable:!0,configurable:!0}),t.prototype.optionDoubleClicked=function(n){this._intellisenseChoiceSelected&&this._intellisenseChoiceSelected(n,2)},t.prototype.fireBuildListBoxStartEvent=function(){this._traceProvider&&this._traceProvider.fireBuildListBoxStartEvent(this.currentEtwKey)},t.prototype.fireBuildListBoxEndEvent=function(){this._traceProvider&&this._traceProvider.fireBuildListBoxEndEvent(this.currentEtwKey)},t.prototype.fireResetListBoxStartEvent=function(){this._traceProvider&&this._traceProvider.fireResetListBoxStartEvent(this.currentEtwKey)},t.prototype.fireResetListBoxEndEvent=function(){this._traceProvider&&this._traceProvider.fireResetListBoxEndEvent(this.currentEtwKey)},t}(n.Controls.Legacy.ListBox);t.IntellisenseListBox=i})(t=n.Intellisense||(n.Intellisense={}))}(Common||(Common={})); //! Copyright (C) Microsoft. All rights reserved. (function(n){var t;(function(n){"use strict";var t=function(){function n(n,t,i,r){this._textEditorBridge=n;this._intellisenseMenu=t;this._intellisenseProvider=i;this._isInitialized=!1;this._deactivationHandler=this.uninitialize.bind(this);this._events=r;this._events&&this._events.addEventListener("deactivated",this._deactivationHandler)}return Object.defineProperty(n.prototype,"textEditorBridge",{get:function(){return this._textEditorBridge},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"intellisenseMenu",{get:function(){return this._intellisenseMenu},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"intellisenseProvider",{get:function(){return this._intellisenseProvider},enumerable:!0,configurable:!0}),n.prototype.initialize=function(n){this._isInitialized||(this.textEditorBridge.attach(n),this.intellisenseMenu.attach(this.textEditorBridge),this.intellisenseProvider.attach(this),this._isInitialized=!0)},n.prototype.uninitialize=function(){this._isInitialized&&(this._isInitialized=!1,this._events&&this._events.removeEventListener("deactivated",this._deactivationHandler),this.intellisenseProvider.detach(),this.intellisenseMenu.detach(),this.textEditorBridge.detach())},n}();n.IntellisenseContext=t})(t=n.Intellisense||(n.Intellisense={}))})(Common||(Common={})); //! Copyright (C) Microsoft. All rights reserved. (function(n){var t;(function(t){"use strict";var i=function(){function t(){var n=this;this._lastSelectionLength=-1;this._lastCaretPosition=-1;this._timerFunction=function(){return n.timer_elapsed()}}return Object.defineProperty(t.prototype,"onTextChanged",{get:function(){return this._onTextChanged},set:function(n){this._onTextChanged=n},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onCaptureKeyDown",{get:function(){return this._onCaptureKeyDown},set:function(n){this._onCaptureKeyDown=n},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onBlur",{get:function(){return this._onBlur},set:function(n){this._onBlur=n},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onCaretPositionChanged",{get:function(){return this._onCaretPositionChanged},set:function(n){this._onCaretPositionChanged=n},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onSelectionLengthChanged",{get:function(){return this._onSelectionLengthChanged},set:function(n){this._onSelectionLengthChanged=n},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onMenuRequested",{get:function(){return this._onMenuRequested},set:function(n){this._onMenuRequested=n},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"caretPosition",{get:function(){if(this._editor)try{return this._editor.selectionEnd}catch(n){return-1}return-1},set:function(t){if(this._editor&&n.ToolWindowHelpers.nodeInDocument(this._editor)){var i=this.caretPosition!==t;this._editor.setSelectionRange(t,t);i&&this.fireCaretPositionChanged()}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selectionLength",{get:function(){if(this._editor)try{return this._editor.selectionEnd-this._editor.selectionStart}catch(n){return-1}return-1},set:function(t){if(this._editor&&n.ToolWindowHelpers.nodeInDocument(this._editor)){this._editor.setSelectionRange(this._editor.selectionStart,this._editor.selectionStart+t);var i=this._lastSelectionLength!==this.selectionLength;this._lastSelectionLength=this.selectionLength;i&&this.fireSelectionLengthChanged()}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return this._editor?this._editor.value:null},set:function(n){this._editor&&(this._editor.value=n)},enumerable:!0,configurable:!0}),t.prototype.getPlacementTarget=function(t){var i;if(this._editor){if((!this._lastPlacementTarget||this._lastPlacementTargetIndex!==t)&&(this._lastPlacementTarget=n.ToolWindowHelpers.getCharScreenPosition(this._editor,t),this._lastPlacementTargetIndex=t,i=this._editor.getBoundingClientRect(),this._lastPlacementTarget.righti.right||this._lastPlacementTarget.topi.bottom)){var r=Math.max(this._lastPlacementTarget.top,i.top),u=Math.min(this._lastPlacementTarget.bottom,i.bottom),f=Math.max(Math.min(this._lastPlacementTarget.right,i.right),i.left);this._lastPlacementTarget={top:r,bottom:u,right:f,left:f,height:u-r,width:0}}return this._lastPlacementTarget}return null},t.prototype.attach=function(n){var i=this;return(this._editor=t.validateTextEditorElement(n),this._editor)?(this._isAttached=!0,this._inputHandler=function(n){i.editor_input(n)},this._editor.addEventListener("input",this._inputHandler),this._blurHandler=function(n){i.editor_blur(n)},this._editor.addEventListener("blur",this._blurHandler),this._focusHandler=function(n){i.editor_focus(n)},this._editor.addEventListener("focus",this._focusHandler),this._captureKeyDownHandler=function(n){i.editor_captureKeyDown(n)},this._editor.addEventListener("keydown",this._captureKeyDownHandler,!0),this._editor.setAttribute("aria-autocomplete","list"),this._editor.setAttribute("aria-haspopup","true"),document.activeElement===this._editor&&this.startTimer(),!0):!1},t.prototype.detach=function(){this._isAttached&&(this._isAttached=!1,this._editor&&(this._editor.onselect=null,this._editor.removeEventListener("input",this._inputHandler),this._editor.removeEventListener("blur",this._blurHandler),this._editor.removeEventListener("focus",this._focusHandler),this._editor.removeEventListener("keydown",this._captureKeyDownHandler,!0),this._inputHandler=null,this._blurHandler=null,this._focusHandler=null,this._captureKeyDownHandler=null,this._editor.removeAttribute("aria-autocomplete"),this._editor.removeAttribute("aria-haspopup"),this._editor=null),this.fireOnBlur())},t.prototype.insertText=function(t,i,r){var u=document.queryCommandSupported("ms-beginUndoUnit");u&&document.execCommand("ms-beginUndoUnit");this._editor.value=n.ToolWindowHelpers.replaceTextInRange(this._editor.value,t,i,r);this.caretPosition=t+r.length;u&&document.execCommand("ms-endUndoUnit")},t.prototype.setActiveDescendant=function(n){n?this._editor.setAttribute("aria-activedescendant",n):this._editor.removeAttribute("aria-activedescendant")},t.prototype.setListBox=function(n){n?this._editor.setAttribute("aria-controls",n):this._editor.removeAttribute("aria-controls")},t.prototype.focusEditor=function(){this._editor.focus()},t.validateTextEditorElement=function(n){var i=n,t=i;return typeof t.selectionStart=="undefined"||typeof t.selectionEnd=="undefined"||typeof t.setSelectionRange=="undefined"||typeof t.value=="undefined"?null:i},t.prototype.startTimer=function(){this._timerActivated||(this._timerId=window.setInterval(this._timerFunction,t.TIMER_INTERVAL),this._timerActivated=!0)},t.prototype.resetTimer=function(){this._timerActivated&&(this.stopTimer(),this.startTimer())},t.prototype.stopTimer=function(){this._timerActivated&&(this._timerActivated=!1,window.clearInterval(this._timerId))},t.prototype.timer_elapsed=function(){(this._lastCaretPosition!==this.caretPosition||this._lastSelectionLength!==this.selectionLength||this._lastEditorValue!==this._editor.value)&&(this.stopTimer(),this._isAttached&&(this._lastEditorValue!==this._editor.value&&(this.fireTextChanged(),this._lastEditorValue=this._editor.value),this._lastCaretPosition!==this.caretPosition&&(this.fireCaretPositionChanged(),this._lastCaretPosition=this.caretPosition),this._lastSelectionLength!==this.selectionLength&&(this.fireSelectionLengthChanged(),this._lastSelectionLength=this.selectionLength)),this.startTimer())},t.prototype.editor_input=function(){this.resetTimer()},t.prototype.editor_captureKeyDown=function(n){if(n.keyCode===32&&n.ctrlKey){this.fireMenuRequested();n.preventDefault();return}(n.keyCode===13||n.keyCode===9||n.keyCode===27)&&this.timer_elapsed();this._onCaptureKeyDown&&this._onCaptureKeyDown(n)},t.prototype.editor_blur=function(){this.fireOnBlur()},t.prototype.editor_focus=function(){this.startTimer()},t.prototype.fireOnBlur=function(){this.stopTimer();this._lastPlacementTarget=null;this._onBlur&&this._onBlur()},t.prototype.fireTextChanged=function(){this._lastPlacementTarget=null;this._onTextChanged&&this._onTextChanged(this._editor.value)},t.prototype.fireCaretPositionChanged=function(){this._lastPlacementTarget=null;this._onCaretPositionChanged&&this._onCaretPositionChanged(this.caretPosition)},t.prototype.fireSelectionLengthChanged=function(){this._onSelectionLengthChanged&&this._onSelectionLengthChanged(this.selectionLength)},t.prototype.fireMenuRequested=function(){this._onMenuRequested&&this._onMenuRequested()},t.TIMER_INTERVAL=100,t}();t.InputElementTextEditorBridge=i})(t=n.Intellisense||(n.Intellisense={}))})(Common||(Common={})); //! Copyright (C) Microsoft. All rights reserved. (function(n){var t;(function(n){"use strict";var t=function(){function t(i,r,u,f,e,o,s,h){var c=this;this._listBox=new n.IntellisenseListBox(i,r,u,s);this._listBox.rootElement.style.position="absolute";this._listBox.rootElement.style.display="none";this._isAttached=!1;this._placementTargetIndex=0;this._isDeferringLayout=!1;this._suppressMenu=!1;this._alreadyForcedOpen=!1;this._ignoreCommit=!1;this._willMenuBeOpen=!1;this._maxMenuItems=f?f:t.MAX_MENU_ITEMS;this._resizeListener=function(){c._resizeListenerHasFired=!0;c._windowInnerHeight=window.innerHeight;c._windowInnerWidth=window.innerWidth;c._toolbarOffsetHeight=0;c._listBoxOffsetWidthIsStale=!0;c._listBoxOffsetHeightIsStale=!0;var n=document.getElementById("toolbar");n&&(c._toolbarOffsetHeight=n.offsetHeight)};this._resizeListenerHasFired=!1;window.addEventListener("resize",this._resizeListener);this._autoSuppressMenuEnabled=e?!0:!1;this._showAllOptionsWhenNoMatch=h;this._traceProvider=o;this._currentEtwKey=-1}return Object.defineProperty(t.prototype,"placementTargetIndex",{get:function(){return this._placementTargetIndex},set:function(n){this._placementTargetIndex=n;this._lastTextEditorPlacementTarget=null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentEtwKey",{get:function(){return this._currentEtwKey},set:function(n){this._currentEtwKey=n;this._listBox.currentEtwKey=n},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isOpen",{get:function(){return this._isAttached},set:function(n){this._willMenuBeOpen=n;n!==this.isOpen&&(n&&!this.suppressMenu?this.show():(this.hide(),this._alreadyForcedOpen=!1))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasSelection",{get:function(){return this.isOpen&&!this.isDeferringLayout&&!this._ignoreCommit&&!!this._selectedOption},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentSelection",{get:function(){return this._selectedOption},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"intellisenseChoices",{get:function(){return this._listBox?this._options:[]},set:function(n){this._options=n;this._filteredOptions=n;this._selectedOption=null;this.listBoxListItems=null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"filteredIntellisenseChoices",{get:function(){return this._filteredOptions},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"willIntellisenseMenuBeOpen",{get:function(){return this._willMenuBeOpen},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"menuListBox",{get:function(){return this._listBox},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onClosing",{get:function(){return this._onClosing},set:function(n){this._onClosing=n},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onOpened",{get:function(){return this._onOpened},set:function(n){this._onOpened=n},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onChoiceCommitted",{get:function(){return this._onChoiceCommitted},set:function(n){this._onChoiceCommitted=n},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onSelectionChanged",{get:function(){return this._onSelectionChanged},set:function(n){this._onSelectionChanged=n},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"forbiddenBottomLeftRect",{get:function(){return this._forbiddenBottomLeftRect},set:function(n){this._forbiddenBottomLeftRect=n},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"suppressMenu",{get:function(){return this._suppressMenu&&this._autoSuppressMenuEnabled},set:function(n){this._suppressMenu=n},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isDeferringLayout",{get:function(){return this._isDeferringLayout},set:function(n){n?(this.stopDeferredRenderTimer(),this.startDeferredRenderTimer()):this.stopDeferredRenderTimer()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"listBoxListItems",{get:function(){return this._listBox.listItems},set:function(n){this._listBox.listItems=n;this._listBoxOffsetWidthIsStale=!0;this._listBoxOffsetHeightIsStale=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"listBoxOffsetWidth",{get:function(){return this._listBoxOffsetWidthIsStale&&(this._listBoxOffsetWidth=this._listBox.rootElement.offsetWidth,this._listBoxOffsetWidthIsStale=!1),this._listBoxOffsetWidth},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"listBoxOffsetHeight",{get:function(){return this._listBoxOffsetHeightIsStale&&(this._listBoxOffsetHeight=this._listBox.rootElement.offsetHeight,this._listBoxOffsetHeightIsStale=!1),this._listBoxOffsetHeight},enumerable:!0,configurable:!0}),t.prototype.forceOpen=function(){this._filteredOptions&&this._filteredOptions.length>0&&(this.suppressMenu=!1,this.isOpen=!0,this.listBoxListItems=this._filteredOptions,this.isDeferringLayout=!1,this.updateLayout(!this._alreadyForcedOpen),this.updateListBoxSelection(),this._alreadyForcedOpen=!0)},t.prototype.attach=function(n){var t=this;this._textEditorBridge||(document.body.appendChild(this._listBox.rootElement),this._textEditorBridge=n,this._textEditorBridge.onBlur=function(){return t.textEditorBridge_blur()});this._textEditorBridge.setListBox(this._listBox.rootElement.id)},t.prototype.detach=function(){this._textEditorBridge&&(this.isOpen=!1,this._textEditorBridge.onBlur=null,this._textEditorBridge.setListBox(null),this._textEditorBridge=null,document.body.removeChild(this._listBox.rootElement))},t.prototype.setFilter=function(n){var t=this;return(this.fireSetFilterStartEvent(),this.setSelectedAndFilteredOptions(n),this.fireSetFilterEndEvent(),this._filteredOptions.length>this._maxMenuItems)?(this._willMenuBeOpen=!0,this.isDeferringLayout=!0,this._filteredOptions):this._filteredOptions.length===1&&this._selectedOption&&this._selectedOption.text===n?(this._willMenuBeOpen=!1,window.setImmediate(function(){return t.isOpen=!1}),this._filteredOptions):(this._willMenuBeOpen=!0,this.listBoxListItems=this._filteredOptions,this.updateLayout(this.isDeferringLayout),this.isDeferringLayout=!1,this.updateListBoxSelection(),this._filteredOptions)},t.prototype.getTextEditorPlacementTarget=function(n){return(!this._lastTextEditorPlacementTarget||n)&&(this._lastTextEditorPlacementTarget=this._textEditorBridge.getPlacementTarget(this.placementTargetIndex)),this._lastTextEditorPlacementTarget},t.prototype.startDeferredRenderTimer=function(){var i=this,n;this._isDeferringLayout||(n=this.currentEtwKey,this._deferredRenderTimerId=window.setTimeout(function(){return i.deferredRenderTimer_elapsed(n)},t.DEFERRED_RENDER_TIMER_INTERVAL),this._ignoreCommit=!0,this._isDeferringLayout=!0)},t.prototype.stopDeferredRenderTimer=function(){this._isDeferringLayout&&(this._ignoreCommit=!1,this._isDeferringLayout=!1,window.clearTimeout(this._deferredRenderTimerId))},t.prototype.deferredRenderTimer_elapsed=function(n){var i=this;this._isDeferringLayout=!1;this.currentEtwKey=n;this.isOpen&&(this.forceOpen(),window.setTimeout(function(){return i._ignoreCommit=!1},t.DEFERRED_RENDER_TIMER_INTERVAL))},t.prototype.updateListBoxSelection=function(){this._selectedOption?(this._listBox.selectedItem=this._selectedOption,this._listBox.scrollIntoView(this._selectedOption,!1)):this.listBoxListItems.length>0&&(this._listBox.selectedIndex=-1,this._listBox.scrollIntoView(this.listBoxListItems[0],!1))},t.prototype.setSelectedAndFilteredOptions=function(n){var r,t,i;if(n&&n.length!==0&&this._options)if(r=n.toUpperCase(),t=this._options.filter(function(n){return n.optionName.toUpperCase().indexOf(r)!==-1},this),t.length>0){if(this._filteredOptions=t,i=this.getMatchingOption(t,n,!0),i<0&&(i=this.getMatchingOption(t,n,!1),i<0)){this._selectedOption=null;return}this._selectedOption=this._filteredOptions[i]}else this._showAllOptionsWhenNoMatch&&(this._filteredOptions=this._options),this._selectedOption=null},t.prototype.getMatchingOption=function(n,t,i){for(var u,f=i?t:t.toUpperCase(),r=0;re?(i=r.top-h,is?this._listBox.rootElement.style.left=f-u+"px":(o=Math.max(this._windowInnerWidth-u,s),l=Math.min(o+u,this._windowInnerWidth),this._listBox.rootElement.style.left=o+"px",this._listBox.rootElement.style.width=l-o+"px",this._listBox.rootElement.style.minWidth="");this._listBox.selectedItem&&this._listBox.scrollIntoView(this._listBox.selectedItem,!1);this.fireUpdateLayoutEndEvent()}},t.prototype.show=function(){var n=this;this._isAttached||(this._isAttached=!0,this.suppressMenu=!1,this.updateLayout(!0),this._listBox.intellisenseChoiceSelected=function(t,i){return n.listBox_intellisenseChoiceSelected(t,i)},this._listBox.selectedItemChanged=function(t){return n.listBox_selectedItemChanged(t)},this._textEditorBridge.onCaptureKeyDown=function(t){return n.editor_captureKeyDown(t)},this._listBox.rootElement.setAttribute("aria-expanded","true"),this._listBox.selectedItem&&this.listBox_selectedItemChanged(this._listBox.selectedItem),this._onOpened&&this._onOpened())},t.prototype.hide=function(){this._isAttached&&(this._isAttached=!1,this._willMenuBeOpen=!1,this._onClosing&&this._onClosing(),this._textEditorBridge.setActiveDescendant(null),this._listBox.intellisenseChoiceSelected=null,this._listBox.selectedItemChanged=null,this._textEditorBridge.onCaptureKeyDown=null,this._listBox.rootElement.style.display="none",this._listBox.rootElement.removeAttribute("aria-expanded"))},t.prototype.listBox_intellisenseChoiceSelected=function(n,t){this.fireValueCommitted(n,t)},t.prototype.listBox_selectedItemChanged=function(n){n&&(this._selectedOption=n,this._textEditorBridge.setActiveDescendant(this._listBox.itemContainers[n.index].rootElement.id),this._onSelectionChanged&&this._onSelectionChanged(n))},t.prototype.calculateListPageSize=function(){return Math.round(this.listBoxOffsetHeight/this._listBox.listItemHeight)},t.prototype.setListBoxSelectedIndex=function(n,t){n=Math.max(0,Math.min(this.listBoxListItems.length-1,n));this._listBox.selectedIndex=n;this._listBox.scrollIntoView(this._listBox.selectedItem,t)},t.prototype.editor_captureKeyDown=function(n){var t;if(!this.isDeferringLayout){if(n.keyCode===38){this.setListBoxSelectedIndex(this._listBox.selectedIndex-1,!0);n.stopImmediatePropagation();n.preventDefault();return}if(n.keyCode===40){this.setListBoxSelectedIndex(this._listBox.selectedIndex+1,!1);n.stopImmediatePropagation();n.preventDefault();return}if(n.keyCode===33){t=this.calculateListPageSize();this.setListBoxSelectedIndex(this._listBox.selectedIndex-t,!0);n.stopImmediatePropagation();n.preventDefault();return}if(n.keyCode===34){t=this.calculateListPageSize();this.setListBoxSelectedIndex(this._listBox.selectedIndex+t,!1);n.stopImmediatePropagation();n.preventDefault();return}if(n.keyCode===13){this.fireSelectedValueCommitted(1)&&(n.stopImmediatePropagation(),n.preventDefault());return}if(n.keyCode===9){this.fireSelectedValueCommitted(0)&&(n.stopImmediatePropagation(),n.preventDefault());return}if(n.keyCode===32){this.hide();return}if(n.keyCode===27){this.hide();n.preventDefault();n.stopImmediatePropagation();this.suppressMenu=!0;return}}},t.prototype.fireValueCommitted=function(n,t){return this._onChoiceCommitted&&n?(this._onChoiceCommitted(n,t),!0):!1},t.prototype.fireSelectedValueCommitted=function(n){return this._listBox&&this._listBox.selectedItem!==null?this.fireValueCommitted(this._listBox.selectedItem,n):!1},t.prototype.fireSetFilterStartEvent=function(){this._traceProvider&&this._traceProvider.fireSetFilterStartEvent(this.currentEtwKey)},t.prototype.fireSetFilterEndEvent=function(){this._traceProvider&&this._traceProvider.fireSetFilterEndEvent(this.currentEtwKey)},t.prototype.fireUpdateLayoutStartEvent=function(){this._traceProvider&&this._traceProvider.fireUpdateLayoutStartEvent(this.currentEtwKey)},t.prototype.fireUpdateLayoutEndEvent=function(){this._traceProvider&&this._traceProvider.fireUpdateLayoutEndEvent(this.currentEtwKey)},t.MAX_MENU_HEIGHT=300,t.MIN_MENU_WIDTH=200,t.MAX_MENU_ITEMS=50,t.DEFERRED_RENDER_TIMER_INTERVAL=200,t}();n.IntellisenseMenu=t})(t=n.Intellisense||(n.Intellisense={}))})(Common||(Common={})); //! Copyright (C) Microsoft. All rights reserved. (function(n){var t;(function(n){"use strict";var r=Microsoft.Plugin,t=function(){function n(){this._isCanceled=!1}return Object.defineProperty(n.prototype,"isCanceled",{get:function(){return this._isCanceled},enumerable:!0,configurable:!0}),n.prototype.cancel=function(){this._isCanceled=!0},n}(),i;n.GetIntellisenseChoicesCancelToken=t;i=function(){function n(){this._lastTextValue="";this._lastSearchExpression="";this._searchExpressionUpdated=!1;this._currentSearchToken="";this._currentSearchTokenStart=-1;this._currentSearchTokenEnd=-1;this._currentIntellisenseChoicesPromise=null;this._menuShouldOpenAfterPromiseCompletes=!1;this._currentIntellisenseChoices=null;this._performingCommit=!1;this._nextETWKey=0}return Object.defineProperty(n.prototype,"textEditorBridge",{get:function(){return this._intellisenseContext.textEditorBridge},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"intellisenseMenu",{get:function(){return this._intellisenseContext.intellisenseMenu},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"currentSearchToken",{get:function(){return this._currentSearchToken},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"currentSearchTokenStart",{get:function(){return this._currentSearchTokenStart},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"currentSearchTokenEnd",{get:function(){return this._currentSearchTokenEnd},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"onIntellisenseResultsAvailable",{get:function(){return this._onIntellisenseResultsAvailable},set:function(n){this._onIntellisenseResultsAvailable=n},enumerable:!0,configurable:!0}),n.prototype.setCurrentIntellisenseChoices=function(n){this._currentIntellisenseChoices=n},n.prototype.attach=function(n){var t=this;this._intellisenseContext=n;this.textEditorBridge.onTextChanged=function(n){return t.textEditorBridge_textChanged(n)};this.textEditorBridge.onCaretPositionChanged=function(n){return t.textEditorBridge_caretPositionChanged(n)};this.textEditorBridge.onSelectionLengthChanged=function(n){return t.textEditorBridge_selectionLengthChanged(n)};this.textEditorBridge.onMenuRequested=function(){return t.textEditorBridge_menuRequested()};this.intellisenseMenu.onSelectionChanged=function(n){return t.intellisenseMenu_selectionChanged(n)};this.intellisenseMenu.onChoiceCommitted=function(n,i){return t.intellisenseMenu_choiceCommitted(n,i)};this.intellisenseMenu.onClosing=function(){return t.intellisenseMenu_closing()};this._lastTextValue=this.textEditorBridge.text},n.prototype.detach=function(){this._currentIntellisenseChoicesPromise&&(this._currentIntellisenseChoicesPromise.cancel(),this._currentIntellisenseChoicesPromise=null,this._menuShouldOpenAfterPromiseCompletes=!1);this._currentSearchToken="";this._currentSearchTokenStart=-1;this._currentSearchTokenEnd=-1;this._currentIntellisenseChoices=null;this._lastTextValue="";this.textEditorBridge.onTextChanged=null;this.textEditorBridge.onCaretPositionChanged=null;this.textEditorBridge.onSelectionLengthChanged=null;this.textEditorBridge.onMenuRequested=null;this.intellisenseMenu.onSelectionChanged=null;this.intellisenseMenu.onChoiceCommitted=null;this.intellisenseMenu.onClosing=null;this._intellisenseContext=null},n.prototype.getCurrentFilteredIntellisenseCompletionList=function(){return this._currentIntellisenseChoices&&this._currentIntellisenseChoices.length>0?this.intellisenseMenu.filteredIntellisenseChoices:[]},n.prototype.clearLastValues=function(){this._currentSearchToken="";this._currentSearchTokenStart=-1;this._currentSearchTokenEnd=-1;this._currentIntellisenseChoices=null;this._lastTextValue=""},n.prototype.getCurrentExpression=function(t,i,r){var f,p,a,v,s,y,c,w;r===void 0&&(r=-1);this.fireGetCurrentExpressionStartEvent(r);var u=t.substr(0,i),b=t.substr(i),l={text:"",offset:i},e=!1,o=!1,h=!1;if(u&&u.length>0){for(f=0;f0)?(this.fireGetCurrentExpressionEndEvent(r),l):(v=u.match(n.JAVASCRIPT_BEGIN_EXPRESSION_REGEX),s="",v&&(s=v[0]),y=b.match(n.JAVASCRIPT_END_EXPRESSION_REGEX),c="",y&&(c=y[0]),w=s+c,w.match(/^\d/))?(this.fireGetCurrentExpressionEndEvent(r),l):(this.fireGetCurrentExpressionEndEvent(r),{text:s+c,offset:u.length-s.length})},n.prototype.getSearchTokenFromFullExpression=function(t){var i={text:"",offset:t.length},r=t.match(n.JAVASCRIPT_BEGIN_SEARCH_TOKEN_REGEX);return r&&r.length>0?(i.text=r[0],i.offset=t.length-i.text.length,i):i},n.prototype.getIntellisenseChoices=function(n,t){t(null)},n.prototype.onMenuSelectionChanged=function(){},n.prototype.onMenuChoiceCommitted=function(n){this.textEditorBridge.insertText(this.currentSearchTokenStart,this.currentSearchTokenEnd,n.text)},n.prototype.onMenuClosing=function(){},n.prototype.fireGetCurrentExpressionStartEvent=function(){},n.prototype.fireGetCurrentExpressionEndEvent=function(){},n.prototype.fireUpdateIntellisenseStartEvent=function(){},n.prototype.fireUpdateIntellisenseEndEvent=function(){},n.prototype.completePromiseResults=function(n,t){this._currentIntellisenseChoicesPromise=null;this._menuShouldOpenAfterPromiseCompletes=!1;this._currentIntellisenseChoices=n;t||(t=this._etwKey);this.updateMenu(this._text,this._searchTokenUpdated,this._menuWillBeOpen,this._forceMenuOpen,t)},n.prototype.getIntellisenseChoicesAsync=function(n,i){var u=this,f=new t;return new r.Promise(function(t){u.getIntellisenseChoices(n,t,f,i)},function(){f.cancel();u.fireUpdateIntellisenseEndEvent(i)})},n.prototype.updateIntellisense=function(n,t,i){var y=this,u,r,l,a,c,v,e;if(i===void 0&&(i=!1),!this._performingCommit){if(u=this._nextETWKey++,r=this.getCurrentExpression(n,t,u),r.text.length>0||i){this.fireUpdateIntellisenseStartEvent(u);var f=this.getSearchTokenFromFullExpression(r.text),o=f.text!==this._currentSearchToken||i,p=!f.text.match("^"+this._currentSearchToken)&&!this._currentSearchToken.match("^"+f.text)||f.text.length===1;this._currentSearchToken=f.text;this._currentSearchTokenEnd=r.offset+r.text.length;this._currentSearchTokenStart=this._currentSearchTokenEnd-this._currentSearchToken.length;var s=r.text.substr(0,f.offset-1),w=o&&p||this._lastSearchExpression!==s,h=this._searchExpressionUpdated;this._searchExpressionUpdated=!1;l=this.intellisenseMenu.isOpen;a=this._menuShouldOpenAfterPromiseCompletes;(w||!this._currentIntellisenseChoices)&&(this._currentIntellisenseChoicesPromise&&(this._currentIntellisenseChoicesPromise.cancel(),this._currentIntellisenseChoicesPromise=null,this._menuShouldOpenAfterPromiseCompletes=!1),this.intellisenseMenu.isOpen=!1,this.intellisenseMenu.placementTargetIndex=this.currentSearchTokenStart,r.text.indexOf(".")!==0&&r.text.indexOf("..")<0&&(this._currentIntellisenseChoicesPromise=this.getIntellisenseChoicesAsync(s,u),this._lastSearchExpression=s,h=!0));c=!1;t>0&&n.length>=t&&(v=n[t-1],c=!!v.match(/\s/));e=this.intellisenseMenu.isOpen||l||a||i;this._lastTextValue.length===n.length-1&&!c&&(this._currentSearchToken.length===1||h)?e=!0:this._searchExpressionUpdated=h;this._text=n;this._searchTokenUpdated=o;this._menuWillBeOpen=e;this._forceMenuOpen=i;this._etwKey=u;this._currentIntellisenseChoicesPromise?(this._menuShouldOpenAfterPromiseCompletes=e,this._currentIntellisenseChoicesPromise.done(function(n){y.completePromiseResults(n,u)})):this.updateMenu(n,o,e,i,u)}else this.intellisenseMenu.isOpen=!1,this.intellisenseMenu.intellisenseChoices=null,this._currentSearchToken="",this._currentSearchTokenStart=-1,this._currentSearchTokenEnd=-1,this._currentIntellisenseChoices=null,this.fireOnIntellisenseResultsAvailable();this._lastTextValue=n}},n.prototype.updateMenu=function(t,i,r,u,f){this.intellisenseMenu.currentEtwKey=f;this._currentIntellisenseChoices&&this._currentIntellisenseChoices.length>0?(r&&(this.intellisenseMenu.intellisenseChoices!==this._currentIntellisenseChoices&&(this.intellisenseMenu.intellisenseChoices=this._currentIntellisenseChoices.filter(function(t){return!n.IGNORED_OPTIONS.some(function(n){return t.optionName===n})}),this._currentIntellisenseChoices=this.intellisenseMenu.intellisenseChoices,i=!0),i&&this.intellisenseMenu.setFilter(this._currentSearchToken),this.fireOnIntellisenseResultsAvailable()),u?this.intellisenseMenu.forceOpen():this.intellisenseMenu.isOpen=r):this.fireOnIntellisenseResultsAvailable();this.fireUpdateIntellisenseEndEvent(f)},n.prototype.fireOnIntellisenseResultsAvailable=function(){this._onIntellisenseResultsAvailable&&this._onIntellisenseResultsAvailable()},n.prototype.textEditorBridge_textChanged=function(n){this.updateIntellisense(n,this.textEditorBridge.caretPosition)},n.prototype.textEditorBridge_caretPositionChanged=function(n){this.textEditorBridge.selectionLength===0&&this.updateIntellisense(this.textEditorBridge.text,n)},n.prototype.textEditorBridge_selectionLengthChanged=function(n){n>0&&(this.intellisenseMenu.isOpen=!1)},n.prototype.textEditorBridge_menuRequested=function(){this.updateIntellisense(this.textEditorBridge.text,this.textEditorBridge.caretPosition,!0)},n.prototype.intellisenseMenu_selectionChanged=function(n){this.onMenuSelectionChanged(n)},n.prototype.intellisenseMenu_choiceCommitted=function(n,t){this._performingCommit=!0;this.onMenuChoiceCommitted(n,t);this.intellisenseMenu.isOpen=!1;this._lastTextValue=this.textEditorBridge.text;this.textEditorBridge.focusEditor();this._performingCommit=!1},n.prototype.intellisenseMenu_closing=function(){this.onMenuClosing()},n.VALID_JAVASCRIPT_VARIABLE_LETTERS="$0-9A-Z_a-z\u00aa\u00b5\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0300-\u0374\u0376-\u0377\u037a-\u037d\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u0483-\u0487\u048a-\u0527\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05bd\u05bf\u05c1-\u05c2\u05c4-\u05c5\u05c7\u05d0-\u05ea\u05f0-\u05f2\u0610-\u061a\u0620-\u0669\u066e-\u06d3\u06d5-\u06dc\u06df-\u06e8\u06ea-\u06fc\u06ff\u0710-\u074a\u074d-\u07b1\u07c0-\u07f5\u07fa\u0800-\u082d\u0840-\u085b\u08a0\u08a2-\u08ac\u08e4-\u08fe\u0900-\u0963\u0966-\u096f\u0971-\u0977\u0979-\u097f\u0981-\u0983\u0985-\u098c\u098f-\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bc-\u09c4\u09c7-\u09c8\u09cb-\u09ce\u09d7\u09dc-\u09dd\u09df-\u09e3\u09e6-\u09f1\u0a01-\u0a03\u0a05-\u0a0a\u0a0f-\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32-\u0a33\u0a35-\u0a36\u0a38-\u0a39\u0a3c\u0a3e-\u0a42\u0a47-\u0a48\u0a4b-\u0a4d\u0a51\u0a59-\u0a5c\u0a5e\u0a66-\u0a75\u0a81-\u0a83\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2-\u0ab3\u0ab5-\u0ab9\u0abc-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ad0\u0ae0-\u0ae3\u0ae6-\u0aef\u0b01-\u0b03\u0b05-\u0b0c\u0b0f-\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32-\u0b33\u0b35-\u0b39\u0b3c-\u0b44\u0b47-\u0b48\u0b4b-\u0b4d\u0b56-\u0b57\u0b5c-\u0b5d\u0b5f-\u0b63\u0b66-\u0b6f\u0b71\u0b82-\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99-\u0b9a\u0b9c\u0b9e-\u0b9f\u0ba3-\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd0\u0bd7\u0be6-\u0bef\u0c01-\u0c03\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c33\u0c35-\u0c39\u0c3d-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55-\u0c56\u0c58-\u0c59\u0c60-\u0c63\u0c66-\u0c6f\u0c82-\u0c83\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbc-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5-\u0cd6\u0cde\u0ce0-\u0ce3\u0ce6-\u0cef\u0cf1-\u0cf2\u0d02-\u0d03\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d-\u0d44\u0d46-\u0d48\u0d4a-\u0d4e\u0d57\u0d60-\u0d63\u0d66-\u0d6f\u0d7a-\u0d7f\u0d82-\u0d83\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0df2-\u0df3\u0e01-\u0e3a\u0e40-\u0e4e\u0e50-\u0e59\u0e81-\u0e82\u0e84\u0e87-\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa-\u0eab\u0ead-\u0eb9\u0ebb-\u0ebd\u0ec0-\u0ec4\u0ec6\u0ec8-\u0ecd\u0ed0-\u0ed9\u0edc-\u0edf\u0f00\u0f18-\u0f19\u0f20-\u0f29\u0f35\u0f37\u0f39\u0f3e-\u0f47\u0f49-\u0f6c\u0f71-\u0f84\u0f86-\u0f97\u0f99-\u0fbc\u0fc6\u1000-\u1049\u1050-\u109d\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\u135d-\u135f\u1380-\u138f\u13a0-\u13f4\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f0\u1700-\u170c\u170e-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176c\u176e-\u1770\u1772-\u1773\u1780-\u17d3\u17d7\u17dc-\u17dd\u17e0-\u17e9\u180b-\u180d\u1810-\u1819\u1820-\u1877\u1880-\u18aa\u18b0-\u18f5\u1900-\u191c\u1920-\u192b\u1930-\u193b\u1946-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u19d0-\u19d9\u1a00-\u1a1b\u1a20-\u1a5e\u1a60-\u1a7c\u1a7f-\u1a89\u1a90-\u1a99\u1aa7\u1b00-\u1b4b\u1b50-\u1b59\u1b6b-\u1b73\u1b80-\u1bf3\u1c00-\u1c37\u1c40-\u1c49\u1c4d-\u1c7d\u1cd0-\u1cd2\u1cd4-\u1cf6\u1d00-\u1de6\u1dfc-\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\u200c-\u200d\u203f-\u2040\u2054\u2071\u207f\u2090-\u209c\u20d0-\u20dc\u20e1\u20e5-\u20f0\u2102\u2107\u210a-\u2113\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u212f-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d7f-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u2de0-\u2dff\u2e2f\u3005-\u3007\u3021-\u302f\u3031-\u3035\u3038-\u303c\u3041-\u3096\u3099-\u309a\u309d-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312d\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fcc\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua62b\ua640-\ua66f\ua674-\ua67d\ua67f-\ua697\ua69f-\ua6f1\ua717-\ua71f\ua722-\ua788\ua78b-\ua78e\ua790-\ua793\ua7a0-\ua7aa\ua7f8-\ua827\ua840-\ua873\ua880-\ua8c4\ua8d0-\ua8d9\ua8e0-\ua8f7\ua8fb\ua900-\ua92d\ua930-\ua953\ua960-\ua97c\ua980-\ua9c0\ua9cf-\ua9d9\uaa00-\uaa36\uaa40-\uaa4d\uaa50-\uaa59\uaa60-\uaa76\uaa7a-\uaa7b\uaa80-\uaac2\uaadb-\uaadd\uaae0-\uaaef\uaaf2-\uaaf6\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uabc0-\uabea\uabec-\uabed\uabf0-\uabf9\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe00-\ufe0f\ufe20-\ufe26\ufe33-\ufe34\ufe4d-\ufe4f\ufe70-\ufe74\ufe76-\ufefc\uff10-\uff19\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda",n.JAVASCRIPT_BEGIN_EXPRESSION_REGEX=new RegExp("[\\."+n.VALID_JAVASCRIPT_VARIABLE_LETTERS+"]+$"),n.JAVASCRIPT_END_EXPRESSION_REGEX=new RegExp("^["+n.VALID_JAVASCRIPT_VARIABLE_LETTERS+"]+"),n.JAVASCRIPT_BEGIN_SEARCH_TOKEN_REGEX=new RegExp("["+n.VALID_JAVASCRIPT_VARIABLE_LETTERS+"]+$"),n.JAVASCRIPT_VALID_JS_VARIABLENAME_REGEX=new RegExp("^["+n.VALID_JAVASCRIPT_VARIABLE_LETTERS+"]+$"),n.EVAL_RESULT_NAME="__IE_DEVTOOLBAR_CONSOLE_EVAL_RESULT",n.EVAL_ERROR="__IE_DEVTOOLBAR_CONSOLE_EVAL_ERROR",n.EVAL_ERRORCODE="__IE_DEVTOOLBAR_CONSOLE_EVAL_ERRORCODE",n.IGNORED_OPTIONS=["__proto__",n.EVAL_RESULT_NAME,n.EVAL_ERROR,n.EVAL_ERRORCODE],n}();n.IntellisenseProviderBase=i})(t=n.Intellisense||(n.Intellisense={}))})(Common||(Common={})); //! Copyright (C) Microsoft. All rights reserved. (function(n){var t;(function(n){"use strict";var t=function(){function n(n){n===void 0&&(n=!0);this._breakUpFilterTextByWhitespace=n}return Object.defineProperty(n.prototype,"choices",{get:function(){return this._choices},set:function(n){this._choices=n;this._onIntellisenseResultsAvailable&&this._onIntellisenseResultsAvailable();this._intellisenseContext&&(this._intellisenseContext.intellisenseMenu.intellisenseChoices=n)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"onIntellisenseResultsAvailable",{get:function(){return this._onIntellisenseResultsAvailable},set:function(n){this._onIntellisenseResultsAvailable=n},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"onShouldOpenOnTextChange",{get:function(){return this._onShouldOpenOnTextChange},set:function(n){this._onShouldOpenOnTextChange=n},enumerable:!0,configurable:!0}),n.prototype.attach=function(n){var t=this;this._intellisenseContext=n;this._intellisenseContext.textEditorBridge.onTextChanged=function(n){return t.textEditorBridge_textChanged(n)};this._intellisenseContext.textEditorBridge.onCaretPositionChanged=function(n){return t.textEditorBridge_caretPositionChanged(n)};this._intellisenseContext.textEditorBridge.onSelectionLengthChanged=function(n){return t.textEditorBridge_selectionLengthChanged(n)};this._intellisenseContext.textEditorBridge.onMenuRequested=function(){return t.textEditorBridge_menuRequested()};this._intellisenseContext.intellisenseMenu.onChoiceCommitted=function(n,i){return t.intellisenseMenu_choiceCommitted(n,i)};this._intellisenseContext.intellisenseMenu.intellisenseChoices=this._choices},n.prototype.detach=function(){this._intellisenseContext.textEditorBridge.onTextChanged=null;this._intellisenseContext.textEditorBridge.onCaretPositionChanged=null;this._intellisenseContext.textEditorBridge.onSelectionLengthChanged=null;this._intellisenseContext.textEditorBridge.onMenuRequested=null;this._intellisenseContext.intellisenseMenu.onSelectionChanged=null;this._intellisenseContext.intellisenseMenu.onChoiceCommitted=null;this._intellisenseContext.intellisenseMenu.onClosing=null;this._intellisenseContext=null},n.prototype.getCurrentFilteredIntellisenseCompletionList=function(){return this._intellisenseContext.intellisenseMenu.filteredIntellisenseChoices},n.prototype.clearLastValues=function(){},n.prototype.onMenuChoiceCommitted=function(n){this.closeMenu();this.insertText(this._token.leftIndex,this._token.rightIndex,n.text)},n.prototype.insertText=function(n,t,i){this._intellisenseContext.textEditorBridge.insertText(n,t,i)},n.prototype.updateIntellisense=function(n,t,i){this._token=this.findTokenWhereCaretResides(n,t);this.setFilter(this._token.text);i||this._choices&&this._choices.length>0&&this._token.text&&this._token.text.length>0&&(!this._onShouldOpenOnTextChange||this._onShouldOpenOnTextChange(n))?this.openMenu(i):this.closeMenu()},n.prototype.setFilter=function(n){this._intellisenseContext.intellisenseMenu.setFilter(n)},n.prototype.openMenu=function(n){n?this._intellisenseContext.intellisenseMenu.forceOpen():this._intellisenseContext.intellisenseMenu.isOpen=!0},n.prototype.closeMenu=function(){this._intellisenseContext.intellisenseMenu.isOpen=!1},n.isAtLeftEndOrHasWhiteSpaceToTheLeft=function(n,t){if(t<0)return!0;var i=n.charAt(t);return i===" "||i==="\t"},n.isAtRightEndOrHasWhiteSpaceToTheRight=function(n,t){if(t>=n.length)return!0;var i=n.charAt(t);return i===" "||i==="\t"},n.prototype.findTokenWhereCaretResides=function(t,i){var r,u;if(!this._breakUpFilterTextByWhitespace)return{leftIndex:0,rightIndex:t.length,text:t};for(r=i;!n.isAtLeftEndOrHasWhiteSpaceToTheLeft(t,r-1);)r--;for(u=i;!n.isAtRightEndOrHasWhiteSpaceToTheRight(t,u);)u++;return{leftIndex:r,rightIndex:u,text:t.substring(r,u)}},n.prototype.textEditorBridge_textChanged=function(n){this.updateIntellisense(n,this._intellisenseContext.textEditorBridge.caretPosition)},n.prototype.textEditorBridge_caretPositionChanged=function(n){this._intellisenseContext.textEditorBridge.selectionLength===0&&this.updateIntellisense(this._intellisenseContext.textEditorBridge.text,n)},n.prototype.textEditorBridge_selectionLengthChanged=function(n){n>0&&(this._intellisenseContext.intellisenseMenu.isOpen=!1)},n.prototype.textEditorBridge_menuRequested=function(){this.updateIntellisense(this._intellisenseContext.textEditorBridge.text,this._intellisenseContext.textEditorBridge.caretPosition,!0)},n.prototype.intellisenseMenu_choiceCommitted=function(n,t){this.onMenuChoiceCommitted(n,t)},n}();n.StaticContentProvider=t})(t=n.Intellisense||(n.Intellisense={}))})(Common||(Common={})); //! Copyright (C) Microsoft. All rights reserved. (function(n){var t;(function(){"use strict"})(t=n.Intellisense||(n.Intellisense={}))})(Common||(Common={})); //! Copyright (C) Microsoft. All rights reserved. (function(n){var t;(function(){"use strict"})(t=n.Intellisense||(n.Intellisense={}))})(Common||(Common={})); //! Copyright (C) Microsoft. All rights reserved. (function(n){var t;(function(){"use strict"})(t=n.Intellisense||(n.Intellisense={}))})(Common||(Common={})); //! Copyright (C) Microsoft. All rights reserved. (function(n){var t;(function(t){"use strict";var i=function(){function t(n){this._context=n}return t.evaluateProperty=function(n,i,r,u){var f=function(n,i){if(n)try{var u=t.getPagePropertyDescriptor(r,n,i);return u?u:f(r.Object.getPrototypeOf(n),i)}catch(e){return e.name==="TypeError"?{}:void 0}return n},e=function(n,t,i){if(i){if(typeof i.value!="undefined"&&i.value!==null)return i.value;var f=typeof n;if(f!=="object"&&f!=="function"&&(n=new r.Object(n)),i.isSafeGet)return u(n,t)}return};return n&&e(n,i,f(n,i))},t.getObjectContextPropertiesNames=function(t){var r=[],u,f,e,i,o;if(t.object!==null&&t.object!==undefined)for(u=typeof t.object,u!=="object"&&u!=="function"&&(t.object=new t.windowContext.Object(t.object)),f=n.RemoteHelpers.getValidWindow(t.windowContext,t.object),f.isValid&&(t.object=t.windowContext=f.window),e=t.windowContext.Object.getOwnPropertyNames(t.object),e&&(r=e),i=t.windowContext.Object.getPrototypeOf(t.object);i;)o=t.windowContext.Object.getOwnPropertyNames(i),r=Array.prototype.concat.call(r,o),i=t.windowContext.Object.getPrototypeOf(i);return r},t.prototype.getIntellisenseItemsForExpression=function(n){return this.getIntellisenseItemsForExpressionUsingWindowContext(n,this._context.currentWindowContext,this._context.currentWindowContext.window,[])},t.prototype.getIntellisenseItemsForExpressionUsingWindowContext=function(n,i,r,u){var f=this.getObjectContextForExpressionUsingEvaluator(n,i,r,t.evaluateProperty),e=n.length===0&&i===r;return this.getIntellisenseItemsForObjectContext(f,t.getObjectContextPropertiesNames,e,u)},t.getPagePropertyDescriptor=function(t,i,r){var u=function(n,t){var i,r;try{window.__BROWSERTOOLS_CONSOLE_INTELLISENSE_DESCRIPTOR=null;i=Object.getOwnPropertyDescriptor(n,t);i&&(r=!1,i.get&&/\[native code\]/.test(i.get.toString())?r=!0:typeof i.get=="undefined"&&(r=!0),window.__BROWSERTOOLS_CONSOLE_INTELLISENSE_DESCRIPTOR={value:i.value,isSafeGet:r})}catch(u){}};try{return n.RemoteHelpers.executeScript("window.__BROWSERTOOLS_CONSOLE_INTELLISENSE_GET_DESCRIPTOR = "+u.toString(),t,!0),t.__BROWSERTOOLS_CONSOLE_INTELLISENSE_GET_DESCRIPTOR(i,r),t.__BROWSERTOOLS_CONSOLE_INTELLISENSE_DESCRIPTOR}catch(f){return new t.Object(null)}},t.prototype.getObjectContextForExpressionUsingEvaluator=function(t,i,r,u){for(var s,o,e=t.split("."),f=0;f0;++f)s=n.PropertyEvaluationIgnoreList.propertyEvaluationFunction(i,r),r=u(r,e[f],i,s),o=n.RemoteHelpers.getValidWindow(i,r),o.isValid&&(r=i=o.window);return{object:r,windowContext:i}},t.prototype.elementHasId=function(n){return Object.getOwnPropertyDescriptor(n,"id")?!1:typeof n.id!="string"?!1:n.id!==""},t.prototype.getGlobalElementNames=function(n){var t=this,i=n.windowContext.document.querySelectorAll("[id]"),r=Array.prototype.filter.call(i,function(n){return t.elementHasId(n)});return Array.prototype.map.call(r,function(n){return""+n.id})},t.prototype.getIntellisenseItemsForObjectContext=function(n,i,r,u){var e=i(n),o,h,s,f;for(r&&(e=Array.prototype.concat.call(e,t.JSKeywords),e=Array.prototype.concat.call(e,u),e=Array.prototype.concat.call(e,this.getGlobalElementNames(n))),o=[],f=0,h=e.length;ft?1:0},o=Array.prototype.sort.call(o,function(n,t){var i=s(n.name.toLowerCase(),t.name.toLowerCase());return i===0?s(t.name,n.name):i}),f=1;f0?w=n[f-1]:this._filteredList&&this._filteredList.length>0&&(w=this.getItem(this._filteredList.length-1)),b=(!this._filter||this._filter(n[f]))&&this.separatorFilter(n[f],w),l=n[f].id,n[f].htmlLines&&n[f].htmlLines.length>0)for(a=0;a=0),F12.Tools.Utility.Assert.isTrue(o>=0),s<0&&(s=0),o<0&&(o=0)):(s+=e?e.descendantCount:0,o+=e?e.expandedCount:0),e&&(e.children=(e.children||[]).concat(n),this.updateContextCounts(e,c.length,h.length)),p=o-1,p+h.length>=this._currentViewport.last-this._scrollPadding-1&&(y=h.length+10?n[f].htmlLines.length-1:0,this._dataContextMap[n[f].id]={item:n[f],children:[],parentContext:e,descendantCount:d,expandedCount:d};this._unfilteredList.length===0||s===this._unfilteredList.length?this._unfilteredList=this._unfilteredList.concat(c):this.spliceArray(this._unfilteredList,c,s);this._filteredList.length===0||o===this._filteredList.length?this._filteredList=this._filteredList.concat(h):this.spliceArray(this._filteredList,h,o);this.requestRender(!0);!r&&y&&(this._delayedScrollFunction=function(){g.scrollIndexIntoView(y.index,y.top)})},t.prototype.updateItemLines=function(n,t){var o=n.id,s=this.getIndexOfItem(this._unfilteredList,n),e=this.getIndexOfItem(this._filteredList,n),r,u,i,f;if(s>=0){for(r=[],u=[],i=0;i=0&&u.push(o+"::"+i);f=[s,t].concat(r);Array.prototype.splice.apply(this._unfilteredList,f);e>=0&&(f=[e,t].concat(u),Array.prototype.splice.apply(this._filteredList,f));this.updateContextCounts(this._dataContextMap[n.id],r.length-t,u.length-t)}this.requestRender(!0)},t.prototype.selectItem=function(n,t){var e=this,f,u,i,r;if(t===void 0&&(t=!0),this._delayedRenderCookie)return this._delayedSelectFunction=function(){return e.selectItem(n,t)},!1;for(f=this._gridElement.querySelectorAll(".listview-grid-row"),u=0;u-1&&(this.scrollIndexIntoView(i,!0),r=document.getElementById("row_"+i),r))?(this.selectRow(r,t,!1),!0):!1},t.prototype.markItemsAsStale=function(n,t){for(var i=0,u=this._unfilteredList.length;i=1&&i){u=this._selectedIndex-f;this.selectItem(this.getItem(u));return}this._delayedSelectCookie&&window.clearTimeout(this._delayedSelectCookie);this._delayedSelectCookie=window.setTimeout(function(){var f,u,n,i,e;if(r._selectedRow){for(f=r._gridElement.querySelectorAll(".listview-grid-row-selected"),u=0;un+r&&this._selectedIndex-1&&(s=this.getSelectedItem(),s&&(u=this.getIndexOfItem(this._unfilteredList,s)),this._selectedIndex=-1),t=0;t=u&&this._selectedIndex===-1&&(this._selectedIndex=i.length-1)):a&&(e=-1,t===u&&i&&i.length>0&&(this._selectedIndex=i.length-1)),e&&(r=f.parentContext,r))while(r)r.expandedCount+=e,r=r.parentContext}this._filteredList=i;this._selectedIndex===-1?this._selectedRow=null:this._delayedScrollFunction=function(){return c.scrollIndexIntoView(c._selectedIndex,!0)};this.requestRender(!0)},t.prototype.sortFilteredList=function(t){var i=this;this._filteredList.sort(function(r,u){var r=t(i._dataContextMap[i.getItemId(r)].item),u=t(i._dataContextMap[i.getItemId(u)].item),f=n.ToolWindowHelpers.naturalSort(r.toLowerCase(),u.toLowerCase());return f===0?n.ToolWindowHelpers.naturalSort(u,r):f})},t.prototype.getItemCount=function(){return this._filteredList.length},t.prototype.getUnfilteredItemCount=function(){return this._unfilteredList.length},t.prototype.getItemAt=function(n){return n>=0&&n=0&&this._selectedIndex=0&&this._selectedIndex(n.htmlLines?n.htmlLines.length-1:0)},t.prototype.isItemCollapsed=function(n){return this._dataContextMap[n.id]&&this._dataContextMap[n.id].descendantCount<=(n.htmlLines?n.htmlLines.length-1:0)},t.prototype.removeItem=function(n,t){var i,u,s,o,h,f,r,e;if(n&&(i=this._dataContextMap[n.id],i)){for(u=this.getIndexOfItem(this._filteredList,n),u!==-1&&this._filteredList.splice(u,i.expandedCount+1),s=this.getIndexOfItem(this._unfilteredList,n),o=this._unfilteredList.splice(s,i.descendantCount+1),r=0;r-1&&f.children.splice(r,1),this.updateContextCounts(i,-(i.descendantCount+1),-(i.expandedCount+1)));this._selectedIndex===u?e=this.getItem(Math.min(u,this._filteredList.length-1)):this._selectedIndex>u&&(e=this.getItem(Math.min(this._selectedIndex-i.expandedCount,this._filteredList.length-1)));e&&this.selectItem(e);this.requestRender(!t)}},t.prototype.scrollToBottom=function(){var n=this;this._delayedRenderCookie?this._delayedScrollFunction=function(){n.scrollToBottom()}:this._rootElement.scrollTop=this._rootElement.scrollHeight},t.prototype.remeasure=function(){this._measurements.update();this.requestRender(!0)},t.prototype.refresh=function(){this.requestRender(!0)},t.prototype.clear=function(){this._delayedSelectCookie&&(clearTimeout(this._delayedSelectCookie),this._delayedSelectCookie=null);this._delayedFocusCookie&&(clearTimeout(this._delayedFocusCookie),this._delayedFocusCookie=null);this._dataContextMap={};this._filteredList=[];this._unfilteredList=[];this._selectedIndex=-1;this._selectedRow=null;this._groupLineElement.style.display="none";this._onUpdated&&this._onUpdated(null);this.executePendingRenderRequest(!0)},t.prototype.expandAllItems=function(n,t){var r=this.getItem(n),i;r&&(i=this._dataContextMap[r.id],i&&this.expandDescendants(i.item,t))},t.prototype.collapseAllItems=function(n){var t=this.getItem(n),i;t&&(i=this._dataContextMap[t.id],i&&(t=i.item,this.isItemExpanded(t)&&this.toggleRowAt(this.getIndexOfItem(this._filteredList,t))))},t.prototype.getTreeViewItemIndent=function(n){var t=-1,r=this.getItem(n),i;return r&&(t=0,this._dataContextMap&&(i=this._dataContextMap[r.id],i&&(t=this.getIndent(i)))),t},t.prototype.getIndex=function(n){return this.getIndexOfItem(this._filteredList,n)},t.prototype.itemIndexToLineIndex=function(n){if(n>0&&n=this._measurements.rowHeight*Math.max(0,this._filteredList.length-t)&&(this._autoScrollEnabled=!0),this._autoScrollEnabled&&i},t.prototype.onDOMAttrModified=function(n){if(n.attrName==="aria-expanded"){var t=n.target,i=n.newValue==="true",r=t.classList.contains("listview-grid-row-expanded"),u=t.classList.contains("listview-grid-row-collapsed");(i&&u||!i&&r)&&this.toggleRow(t)}},t.prototype.addDOMAttrModifiedHandler=function(n){n.addEventListener("DOMAttrModified",this.onDOMAttrModified.bind(this))},t.prototype.initialize=function(){var r=this;this._rootElement=i.createElement("div","listview");this._rootElement.setAttribute("tabindex","1");this._rootElement.setAttribute("role","tree");this._containerElement.appendChild(this._rootElement);this._spacerTopElement=i.createElement("span","listview-grid-content-spacer");this._rootElement.appendChild(this._spacerTopElement);this._rootElement.appendChild(i.createElement("div",""));this._gridElement=i.createElement("div","listview-grid");this._rootElement.appendChild(this._gridElement);this._groupLineElement=i.createElement("div","listview-grid-groupline");this._rootElement.appendChild(this._groupLineElement);this._separatorElement=i.createElement("div","listview-grid-separator");this._separatorElement.style.left=t.SeparatorOffset+this._nameColumnWidth+"px";this._rootElement.appendChild(this._separatorElement);this._rootElement.appendChild(i.createElement("div",""));this._spacerBottomElement=i.createElement("span","listview-grid-content-spacer");this._rootElement.appendChild(this._spacerBottomElement);window.addEventListener("resize",function(n){return r.onResize(n)});this._rootElement.addEventListener("scroll",function(n){return r.onScroll(n)});this._rootElement.addEventListener("mousedown",function(n){return r.onMouseDown(n)});this._rootElement.addEventListener("dblclick",function(n){return r.onMouseDblClick(n)});this._rootElement.addEventListener("keydown",function(n){return r.onKeyDown(n)});this._rootElement.addEventListener("focus",function(n){return r.onFocus(n)},!0);this._rootElement.addEventListener("blur",function(n){return r.onBlur(n)},!0);n.ClipboardHelper.addCopyListener(this._rootElement,this.onCopy.bind(this));this._measurements=new u;window.setTimeout(function(){r._measurements.update(r._containerElement)},10);this.resetViewport();this._scrollHeight=0;this._scrollBottom=this._rootElement.clientHeight+this._rootElement.scrollTop;this._dataContextMap={};this._unfilteredList=[];this._filteredList=[];this._linesMap={};this._errorLabel=n.ToolWindowHelpers.loadString("SingleError",[""]);this._infoLabel=n.ToolWindowHelpers.loadString("SingleMessage",[""]);this._warningLabel=n.ToolWindowHelpers.loadString("SingleWarning",[""]);this._isStaleLabel=n.ToolWindowHelpers.loadString("ConsoleStaleMessage")},t.prototype.resetViewport=function(){this._currentViewport={first:Number.MAX_VALUE,last:-1,scrollTop:0,spaceTop:0,spaceBottom:0,unboundFirst:Number.MAX_VALUE,unboundLast:-1}},t.prototype.getViewportRowInfo=function(){var t=Math.max(0,this._filteredList.length-1),n=this._measurements.rowHeight,r=(t+2)*n-this._rootElement.clientHeight;this._rootElement.scrollTop>r&&(this._rootElement.scrollTop=r);var i=this._rootElement.scrollTop,s=i+this._rootElement.clientHeight,u=Math.floor(i/n)-this._scrollPadding,f=Math.ceil(s/n)+this._scrollPadding,e=Math.min(t,Math.max(0,u)),o=Math.max(0,Math.min(t,f)),h=Math.max(0,e*n),c=Math.max(0,(t-o)*n);return{first:e,last:o,scrollTop:i,spaceTop:h,spaceBottom:c,unboundFirst:u,unboundLast:f}},t.prototype.sizeSpacer=function(n,i){var u,r,o,e,f;if(n.firstChild&&n.removeChild(n.firstChild),it.MaxDelayedRenderRequestCount&&(this._delayedRenderCookie&&window.clearTimeout(this._delayedRenderCookie),this.executePendingRenderRequest(n,i))},t.prototype.executePendingRenderRequest=function(n,t){this._onBeforeRendering&&this._onBeforeRendering();this._delayedRenderCookie=null;this._delayedRenderRequestCount=0;this.performRender(n,t);this._delayedScrollFunction&&(this._delayedScrollFunction(),this._delayedScrollFunction=null);this._delayedSelectFunction&&(this._delayedSelectFunction(),this._delayedSelectFunction=null)},t.prototype.getLabelForAddedClasses=function(n){if(!n)return"";var t;return n.lastIndexOf("consoleItemError")>=0?t=this._errorLabel:n.lastIndexOf("consoleItemInfo")>=0?t=this._infoLabel:n.lastIndexOf("consoleItemWarn")>=0&&(t=this._warningLabel),t&&n.lastIndexOf("Stale")>=0?t=this._isStaleLabel+" "+t:t||(t=""),t},t.prototype.performRender=function(u,f){var et=this,c,ot,st,ht,e,bt,g,ut,ct,w,nt,b,tt,kt,a,v,y,lt,ft,at,dt,yt,s,o,it,gt,pt;if(this._ignoreScroll=!0,c=this.getViewportRowInfo(),this._gridElement.style.height=this._gridElement.clientHeight+"px",this.sizeSpacer(this._spacerTopElement,c.spaceTop),this.sizeSpacer(this._spacerBottomElement,c.spaceBottom),this._separatorElement.style.top=c.scrollTop+"px",u){while(this._gridElement.hasChildNodes())ot=this._gridElement.lastChild,this._selectedRow===ot&&(this.isFocusWithin()&&(it=this._rootElement.scrollTop,this._rootElement.focus(),this._rootElement.scrollTop=it),this._selectedRow=null),this._gridElement.removeChild(ot);this.resetViewport()}for(st=document.createDocumentFragment(),ht=document.createDocumentFragment(),s=c.first;s<=c.last&&sthis._currentViewport.last){if(e=this.getItem(s),!e)continue;var k=this._dataContextMap[e.id],rt=this.getIndent(k),ni=e.name===null||e.name===undefined,h=e.htmlLines&&e.htmlLines.length>0?this.getLineIndex(this._filteredList[s]):-1,d=k.descendantCount>(e.htmlLines?e.htmlLines.length-1:0),wt=this.getSelectedItem()===e,l="",ti="listview-grid-row"+(e.additionalClass?" "+e.additionalClass:""),o=i.createElement("div",ti);if(o.tabIndex=-1,o.id="row_"+s,o.setAttribute("data-index",""+s),o.setAttribute("role","treeitem"),o.style.height=this._measurements.rowHeight+"px",wt&&o.classList.add("listview-grid-row-selected"),bt=s]*>/g,"")+" ";wt&&o.classList.add("listview-grid-row-selected")}o.appendChild(v)}else{if(e.hasIcon&&(w=i.createElement("div","listview-grid-cell "+(h<=0?"listview-grid-cell-icon":"listview-grid-cell-icon-space")),w.style.position="absolute",w.style.left=(rt-1)*t.IndentWidth+"px",o.appendChild(w),h<=0&&e.additionalClass&&(l=this.getLabelForAddedClasses(e.additionalClass)+" ")),g=i.createElement("div","listview-grid-cell listview-grid-cell-resize"),g.innerText=h<=0?e.name:"",h<=0&&e.name&&(l=l+e.name+" "),g.style.textIndent=(rt+1)*t.IndentWidth+"px",g.style.width=this._nameColumnWidth+"px",o.appendChild(g),e.hasChildren&&(h===-1||h===0)&&(a=i.createElement("div","listview-icon-tree"),a.classList.add(d?"listview-icon-tree-expanded":"listview-icon-tree-collapsed"),o.setAttribute("aria-expanded",d?"true":"false"),this.addDOMAttrModifiedHandler(o),a.style.left=rt*t.IndentWidth+3+"px",o.appendChild(a)),v=i.createElement("div","listview-grid-cell listview-grid-cell-value"),h===-1)v.innerText=e.value,l=l+e.value;else if(v.innerHTML=e.htmlLines[h],h===0)for(y=0;y]*>/g,"")+" ";o.appendChild(v)}for(lt=o.querySelectorAll(".BPT-Tooltip-Item"),ft=0;ftc.last?(o=document.getElementById("row_"+s),o&&(this._selectedRow===o&&(this.isFocusWithin()&&(it=this._rootElement.scrollTop,this._rootElement.focus(),this._rootElement.scrollTop=it),this._selectedRow=null),o.parentElement.removeChild(o))):s===c.first&&(s=c.last);this._gridElement.insertBefore(st,this._gridElement.firstChild);this._gridElement.appendChild(ht);this._gridElement.style.height="auto";isNaN(f)||(this._selectedIndex=f,this._selectedRow=null);gt=this._selectedIndex>=0&&(this._selectedIndexc.unboundLast)&&this._selectedIndex>=this._currentViewport.unboundFirst&&this._selectedIndex<=this._currentViewport.unboundLast;this._selectedIndex>=0&&!this._selectedRow&&!gt?(pt=document.getElementById("row_"+this._selectedIndex),pt&&(this._selectedRow=pt),this.updateGroupLine()):u&&this.updateGroupLine();this._currentViewport=c;this._ignoreScroll=!1;setTimeout(function(){et._postRenderCallback&&(et._postRenderCallback(),et._postRenderCallback=null)});this._onRendered&&this._onRendered();this._rootElement.setAttribute("tabindex",this._filteredList.length>0?"1":"-1")},t.prototype.getItemId=function(n){var t=n.lastIndexOf("::");return t>-1&&(n=n.substring(0,t)),n},t.prototype.getLineIndex=function(n){var i=-1,t;return n&&(t=n.lastIndexOf("::"),t>-1&&(i=parseInt(n.substring(t+2),10))),i},t.prototype.getIndexOfItem=function(n,t,i){i===void 0&&(i=!0);var r=this.getItemId(t.id);return r=t.additionalClass==="consoleItemInput"&&i?r+(t.htmlLines&&t.htmlLines.length>0?"::"+(t.htmlLines.length-1).toString():""):r+(t.htmlLines&&t.htmlLines.length>0?"::0":""),n.indexOf(r)},t.prototype.getItem=function(n){if(n>=0&&n0},t.prototype.scrollIndexIntoView=function(n,t){if(!document.getElementById("row_"+n)||t||n=this._currentViewport.unboundLast-this._scrollPadding-1){if(t)this._rootElement.scrollTop=Math.min(this._filteredList.length*this._measurements.rowHeight-this._rootElement.clientHeight,n*this._measurements.rowHeight);else{var i=this.getItem(n),r=1;i&&i.htmlLines&&(r=i.htmlLines.length);this._rootElement.scrollTop=(n+r+1)*this._measurements.rowHeight-this._rootElement.clientHeight}this.performRender()}},t.prototype.getIndent=function(n){if(!this._hasIndent)return 0;for(var t=n.item.hasIcon?1:0;n&&n.parentContext;)n=n.parentContext,t+=n.item.hasIcon?2:1;return t},t.prototype.updateGroupLine=function(){var r=!1,n,i;this._selectedIndex>=0&&this._selectedIndex(n.htmlLines?n.htmlLines.length-1:0)&&(this._groupLineElement.style.display="inline-block",this._groupLineElement.style.top=this._selectedIndex*this._measurements.rowHeight+this._measurements.rowHeight+"px",this._groupLineElement.style.left=(this.getIndent(i)+1)*t.IndentWidth-4+"px",this._groupLineElement.style.height=i.expandedCount*this._measurements.rowHeight+1+"px",r=!0)));r||(this._groupLineElement.style.display="none")},t.prototype.updateContextCounts=function(n,t,i){for(var r=n;r;)r.descendantCount+=t,r.expandedCount+=i,r=r.parentContext},t.prototype.spliceArray=function(n,t,i){for(var o,f,r,u=2e5,s=~~(t.length/u),e=0;e0&&(r=[i+(t.length-f),0].concat(t.slice(t.length-f,t.length)),Array.prototype.splice.apply(n,r))},t.prototype.moveSelectionUp=function(n){var t;if(n){var r=parseInt(this._selectedRow.getAttribute("data-index"),10),u=this.getItem(r),i=this._dataContextMap[u.id];i.parentContext&&this.selectItem(i.parentContext.item)}else t=this._selectedIndex-1,t>=0&&t0?n.htmlLines.length:1);t>=0&&t=37&&n.keyCode<=40||n.keyCode===109||n.keyCode===107){if(this._selectedIndex>=0){if((this._selectedRow||(this.scrollIndexIntoView(this._selectedIndex,!0),r=document.getElementById("row_"+this._selectedIndex),r&&this.selectRow(r,!1)),!this._selectedRow)||(e=parseInt(this._selectedRow.getAttribute("data-index"),10),t=this.getItem(e),!t))return!0;u=this._dataContextMap[t.id];f=u.descendantCount>(t.htmlLines?t.htmlLines.length-1:0);switch(event.keyCode){case 109:case 37:this._hasIndent&&(f?this.toggleRow(this._selectedRow):(i=u.parentContext,i&&i.item&&this.getIndex(i.item)>=0&&this.selectItem(i.item)));break;case 38:this.moveSelectionUp();break;case 107:case 39:f||this.toggleRow(this._selectedRow);break;case 40:this.moveSelectionDown()}}return n.preventDefault(),!1}return n.keyCode===65&&n.ctrlKey||n.keyCode===32?(n.preventDefault(),!1):(n.keyCode===9&&(this._isTabbingOut=!0,this._rootElement.focus()),!0)},t.prototype.onFocus=function(n){var i=this;this._rootElement.classList.add("listview-grid-focus-within");n.target===this._rootElement&&this._selectedRow&&!this._isTabbingOut&&(this._delayedFocusCookie||(this._delayedFocusCookie=window.setTimeout(function(){var n=i._rootElement.scrollLeft,t=i._rootElement.scrollTop;i._selectedRow&&i._selectedRow.focus();i._rootElement.scrollLeft=n;i._rootElement.scrollTop=t;clearTimeout(i._delayedFocusCookie);i._delayedFocusCookie=null},t.DelayedRenderInterval)));this._isTabbingOut=!1},t.prototype.onBlur=function(){this._rootElement.classList.remove("listview-grid-focus-within")},t.prototype.onResize=function(){this.requestRender(this._isInitialResize);this._isInitialResize=!1;this._rootElement.scrollTop=this._scrollBottom-this._rootElement.clientHeight},t.prototype.onScroll=function(){if(!this._ignoreScroll){this._onBeforeScroll&&this._onBeforeScroll();var n=this._rootElement.clientHeight+this._rootElement.scrollTop,t=this._measurements.rowHeight*this._filteredList.length;this._filteredList.length>0&&n>(this._filteredList.length-1)*this._measurements.rowHeight&&(n=t);n=t);n!==this._scrollBottom&&(this._scrollBottom=n,t>this._rootElement.clientHeight&&this.requestRender());this._onScrollCompleted&&this._onScrollCompleted()}},t.prototype.onCopy=function(){var t=n.ToolWindowHelpers.getTextForClipboard(),i;return t&&t.length!==0||(i=this.getSelectedItem(),i&&i.getCopyText&&(t=i.getCopyText())),t},t.prototype.expandDescendants=function(n,t){var r,i;if(t&&t(n)){this.isItemExpanded(n)&&this.toggleRowAt(this.getIndexOfItem(this._filteredList,n));return}if(this.isItemExpanded(n)||this._toggleCallback(n),n.hasChildren)for(r=this.getItemChildren(n),i=0;it?1:0},t.ConsoleNotifyType={assert:"consoleItemError",error:"consoleItemError",info:"consoleItemInfo",log:"consoleItemLog",warn:"consoleItemWarn",internalMessage:"internalMessage"},t.ConsoleInternalMessage={startGroup:"startGroup",startGroupCollapsed:"startGroupCollapsed",endGroup:"endGroup",displayTraceStyles:"displayTraceStyles"},t.ConsoleUITypeStrings={functionName:"[function]",objectName:"[object]",arrayName:"[array]",emptyArray:" [ ]",emptyObject:" { }",expandableArray:" [...]",expandableObject:" {...}"},t.ConsoleFilterId={all:-1,error:0,warning:1,message:2,log:3},t}(),i,r;t.TreeViewUtils=u;i=function(){function t(){}return t.createValueString=function(n,i,r){var u;if(r===void 0&&(r=!1),n&&typeof n=="object"){var e,h=!0,o="",s,f="<\/span>";switch(i){case"object":o=o+"{";s=!0;f="}"+f;break;case"array":o=o+"[";s=!1;f="]"+f;n=n.filter(function(n){return!isNaN(parseInt(n.propertyName,10))});break;default:return}for(e=o,u=0;u20)){r=!0;break}return r&&(f=" ..."+f),e+f}},t.createPropertyValueString=function(t,i){var r,u;try{switch(t.detailedType){case"array":if(r=t.value.indexOf(":"),r!==-1)return"Array["+n.EncodingUtilities.escapeHtml(i.length)+"]";case"object":if(r=t.name.indexOf(" "),r!==-1)return u=n.EncodingUtilities.escapeHtml(t.name.substr(r+1,t.name.length-r-2)),u+" {...}"}}catch(f){}return t.detailedType},t.formatPropertyValueString=function(t){if(t&&typeof t=="string"){var i=t.length>15?t.substr(0,12)+'..."':t;return i=String.prototype.replace.call(i,/(\r\n|\n\r|\r|\n)/g," "),n.EncodingUtilities.escapeHtml(i)}return t},t.createPropertyValueToken=function(n){var t;switch(n.propertyValue.detailedType){case"undefined":t="valueStringToken-Undefined";break;case"null":t="valueStringToken-Null";break;case"boolean":t="valueStringToken-Boolean";break;case"number":t="valueStringToken-Number";break;case"string":t="valueStringToken-String";break;case"function":t="valueStringToken-Function";break;case"array":t="valueStringToken-Array";break;case"object":t="valueStringToken-Object";break;default:t="valueStringToken-Default"}return""+n.propertyValue.valueString+"<\/span>"},t.createPropertyNameToken=function(t){var i=n.EncodingUtilities.escapeHtml(t.propertyName);return""+i+"<\/span>"},t}();t.TreeViewValueStringBuilder=i;r=function(){function n(){}return n.formatConsoleMessage=function(){for(var r,t=[],u=0;u=t.length)return r;switch(r){case"%%":return"%";case"%d":case"%i":return n.convertToInteger(t[i++]);case"%f":return n.convertToNumber(t[i++]);case"%s":return n.convertToString(t[i++]);case"%b":return n.convertToBase(t[i++],2);case"%x":case"%X":return n.convertToBase(t[i++],16);case"%E":case"%e":return n.convertToExponential(t[i++]);default:return r}},f=e.replace(/%%|%([sbxXideEfF])/g,o);for(r=i;r0?f+" "+n.convertToString(t[r]):n.convertToString(t[r]);return f.slice(0,1024)},n.convertToString=function(n){var t;try{n===undefined||n===null?t=String(n):(t=n.toString(),typeof t!="string"&&(t="[object Object]"))}catch(i){t="[object Object]"}return t},n.convertToInteger=function(t){var i=n.convertToNumber(t);return isNaN(i)?i.toString():Math.round(i-i%1).toString()},n.convertToBase=function(t,i){var r=n.convertToNumber(t),u;return isNaN(r)?r.toString():(u={"2":"0b","8":"0","16":"0x"}[i]||"",u.toString()+(r<0?(r>>>0).toString(i):r.toString(i)))},n.convertToExponential=function(t){var i=n.convertToNumber(t);return isNaN(i)?i.toString():i.toExponential()},n.convertToNumber=function(t){return isNaN(t)||t===null?Number(n.convertToString(t)):Number(t)},n}();t.TreeViewStringFormatter=r})(t=n.ObjectView||(n.ObjectView={}))})(Common||(Common={})); //! Copyright (C) Microsoft. All rights reserved. __extends=this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);r.prototype=t.prototype;n.prototype=new r},function(n){var t;(function(t){var y=Microsoft.Plugin,p,w,i,c,r,l,u,f,e,o,s,h,a,v;(function(n){n[n.None=0]="None";n[n.Assert=1]="Assert";n[n.Error=2]="Error";n[n.Info=3]="Info";n[n.Log=4]="Log";n[n.Warn=5]="Warn"})(t.TreeViewNotifyType||(t.TreeViewNotifyType={}));p=t.TreeViewNotifyType,function(n){n[n.Object=1]="Object";n[n.Html=2]="Html"}(t.ViewableTypeFlags||(t.ViewableTypeFlags={}));w=t.ViewableTypeFlags;i=function(){function t(n,i,r,u,f,e,o,s,h,c){h===void 0&&(h=0);this._id=t.IdCounter++;this._name=f;this._value=n;this._hasChildren=i;this._hasIcon=r;this._hasSeparator=u;this._additionalClass=e;this._htmlLines=o;this._fullHtmlLines=s;this._buttonItems=null;this._notifyType=h;this._htmlLinesFileLine=c}return Object.defineProperty(t.prototype,"id",{get:function(){return""+this._id},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"target",{get:function(){return this._target},set:function(n){this._target=n},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isStale",{get:function(){return this._isStale},set:function(n){if(!this._isStale&&(this._isStale=n,this._isStale)){var t;switch(this._notifyType){case 2:t=" consoleItemErrorStale";break;case 3:t=" consoleItemInfoStale";break;case 5:t=" consoleItemWarnStale"}this._additionalClass+=t}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this._name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"notifyType",{get:function(){return this._notifyType},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this._value},set:function(n){this._value=n},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasChildren",{get:function(){return this._hasChildren},set:function(n){this._hasChildren=n},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasIcon",{get:function(){return this._hasIcon},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"buttonItems",{get:function(){return this._buttonItems},set:function(n){this._buttonItems=n},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasSeparator",{get:function(){return this._hasSeparator},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"additionalClass",{get:function(){return this._additionalClass},set:function(n){this._additionalClass=n},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"htmlLines",{get:function(){return this._htmlLines},set:function(n){if(this._htmlLines&&this._htmlLines.length!==n.length)throw new Error("The number of lines cannot be changed for a TreeView item after initialization");this._htmlLines=n},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"htmlLinesFileLine",{get:function(){return this._htmlLinesFileLine},set:function(n){this._htmlLinesFileLine=n},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"consoleItemId",{get:function(){return this._id},enumerable:!0,configurable:!0}),t.encodeValueForListItem=function(i,r,u,f,e){e===void 0&&(e=!0);var o="",s=null;r||(r=n.ObjectView.TreeViewUtils.getDetailedTypeOf(i));switch(r){case"array":o=i||n.ObjectView.TreeViewUtils.ConsoleUITypeStrings.arrayName;e&&(o+=u?n.ObjectView.TreeViewUtils.ConsoleUITypeStrings.expandableArray:n.ObjectView.TreeViewUtils.ConsoleUITypeStrings.emptyArray);break;case"object":o=i||n.ObjectView.TreeViewUtils.ConsoleUITypeStrings.objectName;e&&(o+=u?n.ObjectView.TreeViewUtils.ConsoleUITypeStrings.expandableObject:n.ObjectView.TreeViewUtils.ConsoleUITypeStrings.emptyObject);break;case"null":o="null";break;case"undefined":o="undefined";break;default:o=""+i;s=t.getHtmlTextLines(o,r);r!=="string"&&s.length===1?(o=n.EncodingUtilities.unescapeHtml(s[0]),s=null):f&&s.length>1&&(o=t.getFirstLine(i),s.splice(0,0,""+s[0].replace("
","").replace("<\/pre>","")+" ...<\/span><\/span>"),o+=" ...")}return{value:o,htmlLines:s}},t.getHtmlTextLines=function(t,i){var r=null,f,o,e,s,u,h;if(typeof t=="string"&&(t=t.replace(/(\r\n|\n\r|\r|\n)/g,"\r\n"),f=t.split("\r\n"),f.length>0)){for(o=0,r=[],e=0;e"+u+"<\/pre>":u.replace(/^\s+|\s+$/g,""),i==="function"){for(/^\}/.test(u)&&o--,h=0;h<<\/span>"+p+"<\/span>><\/span>",it="</<\/span>"+p+"<\/span>><\/span>",l="<"+p+">",y="<\/"+p+">"),f=""+tt+"<\/span>",e=""+it+"<\/span>";else if(c==="#doctype")f="<\/span>",e="<\/span>";else if(c==="#comment")f="<!--<\/span>",e="--><\/span>",l="",g="<\/span>",nt="<\/span>";else if(c===null||c===undefined)f="<\/span>",e="<\/span>";else{if(rt="",ut="",u&&u.length>0)for(o=0;o "+n.EncodingUtilities.escapeHtml(u[o].name)+"<\/span>=<\/span>\""+n.EncodingUtilities.escapeHtml(u[o].value)+'<\/span>"<\/span>',ut+=" "+n.EncodingUtilities.escapeHtml(u[o].name)+'="'+n.EncodingUtilities.escapeHtml(u[o].value)+'"';f="<<\/span>"+w+"<\/span>"+rt+"><\/span>";l="<"+w+ut+">";e="</<\/span>"+w+"<\/span>><\/span>";y="<\/"+w+">"}var ht=d?"...<\/span>":"",ft=d?""+ht+e+"<\/span>":e,et="";r===null||isNaN(r)||(et=""+r+"<\/span>");var a="",v="<\/span>",h=[];if(b)if(s=t.getHtmlTextLines(b,"string"),s.length<=1)l+=b,st=""+s[0]+"<\/span>",h.push(a+et+f+st+ft+v);else{for(l+=b,y="",h.push(a+f+""+s[0]+"<\/span>"+nt+v),k=1;k"+s[k]+"<\/span>"+nt+v);h.push(a+g+""+s[s.length-1]+"<\/span>"+ft+v)}else h.push(a+et+f+ft+v);return d&&h.push(a+""+e+"<\/span>"+v),{headerText:l,footerText:y,htmlLines:h}},t.getFirstLine=function(n){var t=n,f,i,r,u;if(t&&(f=t.replace(/(\r\n|\n\r|\r|\n)/g,"\r\n"),i=f.split("\r\n"),i.length>0))for(r=0;r0){t=u;break}return t},t.prototype.getCopyText=function(n){return n===void 0&&(n=""),n+this._value},t.prototype.getWatchExpression=function(){return},t.prototype.expandLines=function(){if(this._fullHtmlLines&&this._fullHtmlLines.length>0){this._htmlLines=this._fullHtmlLines.slice(1);this._value=n.EncodingUtilities.unescapeHtml(this._htmlLines[0]);for(var t=1;tn&&(this._buttonItems[n].isChecked=t)},t.IdCounter=-1,t.TextCopyIndent="   ",t}();t.TreeViewItem=i;c=function(n){function t(t,r){var u=i.encodeValueForListItem(t,"string");n.call(this,u.value,!1,!0,!0,null,"consoleItemInput",u.htmlLines);this._inputCommand=t;this._onCompleteCallback=r;this._outputItem=null}return __extends(t,n),t.prototype.getCopyText=function(n){return n===void 0&&(n=""),n+this._inputCommand},t.prototype.getWatchExpression=function(){return this._inputCommand},t.prototype.executeCallback=function(n){this._onCompleteCallback&&this._onCompleteCallback(this.consoleItemId,n.consoleItemId,n.additionalClass||"",n.value||"")},t}(i);t.TreeViewInputItem=c;r=function(n){function t(t,i,r,u,f,e,o,s,h,c,l,a){c===void 0&&(c=0);t&&parseInt(t,10)!==-1||(o=(o||"")+" consoleItemOutput-Async");this._watchExpression=l;n.call(this,i,r,u,f,e,o,s,h,c,a);this._matchingInputId=typeof t!="undefined"&&typeof t!="null"?t:"-1"}return __extends(t,n),Object.defineProperty(t.prototype,"matchingInputId",{get:function(){return this._matchingInputId},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"viewableTypeFlags",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"typeEvaluationId",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._children},set:function(n){this._children=n},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isExpandable",{get:function(){return this.children&&this.children.length>0},enumerable:!0,configurable:!0}),t.prototype.getWatchExpression=function(){return this._watchExpression},t.prototype.evaluateAsType=function(n,t,i){if((this.viewableTypeFlags&t)===t){switch(t){case 2:n("getObjectItemAsHtml",[this.typeEvaluationId],i);break;case 1:n("getHtmlItemAsObject",[this.typeEvaluationId],i);break;default:return!1}return!0}return!1},t}(i);t.TreeViewOutputItem=r;l=function(t){function r(r,u,f,e,o){var h,c,a,l,p,w,s;this.target=u;h="consoleItemOutput";c=!1;switch(r.detailedType){case"exception":h+=" consoleItemOutput-Exception";break;case"undefined":h+=" consoleItemOutput-Undefined";break;case"null":h+=" consoleItemOutput-Null";break;case"boolean":h+=" consoleItemOutput-Boolean";break;case"number":h+=" consoleItemOutput-Number";break;case"string":h+=" consoleItemOutput-String";break;case"function":h+=" consoleItemOutput-Function";break;case"array":h+=" consoleItemOutput-Array";c=!0;break;case"object":h+=" consoleItemOutput-Object";c=!0;break;case"internal":h+=" consoleItemOutput-Internal"}a=!!f;c=c&&!a;var b=!a,v=a||r.detailedType==="function"&&r.isExpandable,s=i.encodeValueForListItem(r.value,r.detailedType,r.isExpandable,v),y=null;if(v&&s.htmlLines&&s.htmlLines.length>1&&(y=s.htmlLines.slice(0),s.htmlLines=[s.htmlLines.shift()]),l=i.getFirstLine(f||r.name),r.isExpandable){c?(w=r.valueString,p=w||r.name):p=r.name;s=i.encodeValueForListItem(p,r.detailedType,!0,!0,!c);!s.htmlLines&&c&&(s.htmlLines=[s.value]);v&&s.htmlLines&&s.htmlLines.length>1&&(y=s.htmlLines.slice(0),s.htmlLines=[s.htmlLines.shift()]);switch(r.detailedType){case"function":l=a?l||n.ObjectView.TreeViewUtils.ConsoleUITypeStrings.functionName:null;break;case"array":l=l||n.ObjectView.TreeViewUtils.ConsoleUITypeStrings.arrayName;break;default:l=l||n.ObjectView.TreeViewUtils.ConsoleUITypeStrings.objectName}}t.call(this,r.inputId,s.value,r.isExpandable,b,!a,l,h,s.htmlLines,y,o,e);this._originalObject=r;Array.isArray(r.value)?(this.children=this.createChildren(),this._hasLoadedChildren=!0):(this._remoteExpansionId=r.value,this._hasLoadedChildren=!1)}return __extends(r,t),Object.defineProperty(r.prototype,"viewableTypeFlags",{get:function(){return this._originalObject.isHtmlViewableType?2:0},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"typeEvaluationId",{get:function(){return this._remoteExpansionId||this._originalObject.uid},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"isExpandable",{get:function(){return this._originalObject.isExpandable},enumerable:!0,configurable:!0}),r.prototype.getWatchExpression=function(){if(this.name!=="[functions]"&&this.name&&!(this.name.indexOf("...")>=0))return t.prototype.getWatchExpression.call(this)},r.prototype.getChildren=function(t,i){if(this.isExpandable){n.ToolWindowHelpers.codeMarker(n.ToolWindowHelpers.CodeMarkers.perfBrowserTools_DiagnosticsToolWindowsExpandConsoleObjectBegin);var r=this.createOnExpansionCompleteWrapper(i);this._hasLoadedChildren?r():this.isStale||this.loadChildren(t,r)}},r.prototype.getCopyText=function(n){var t,u,f,e,r,o;n===void 0&&(n="");t=n;switch(this._originalObject.detailedType){case"array":case"object":if(u="{",f="}",this._originalObject.detailedType==="array"&&(u="[",f="]"),this.children&&this.children.length!==0){for(t+=u+"\r\n",e=n+i.TextCopyIndent,r=0;r=0?t:isNaN(parseInt(n))?t+"."+n:t+"["+n+"]"),i},r.prototype.createChildren=function(){var e=this._originalObject,o,t,i,c;for(this._sortedPropertyNames||(this._sortedPropertyNames=n.ToolWindowHelpers.getSortedArrayProperties(e.value,"propertyName")),t=[],i=0;it.index}),tt=f[c].length,u=0;u=0){var t=n.selector.match(/::[\w\-]+/);if(t&&t.length===1)return t[0]+" "+n.property}return n.property},r}(r);t.TreeViewTraceStylesItem=f;e=function(t){function r(f){var v,e,d,o,y,it,c,rt,g,ut,l,s,p,w,nt,a,ft,b,tt,h,k;if(this.target=f.targetInfo,v=f.notifyType,typeof f.message=="object"?e=f.message:(d="undefined",f.message&&f.message.toString&&(d=f.message.toString()),e={message:d}),f.notifyType==="consoleItemCDContext"){v=r.getNotifyTypeString(3);try{e.message=n.ToolWindowHelpers.loadString("CDContextChanged",[f.message])}catch(et){}}if(f.message&&f.message.localizeId)try{f.message.localizeId==="ConsoleTimerDisplay"&&(f.message.args[1]=Number(f.message.args[1]).toLocaleString());e.message=n.ToolWindowHelpers.loadString(f.message.localizeId,f.message.args||undefined)}catch(ot){}if(y="",typeof f.message=="object"&&(e.messageId||e.fileUrl||e.lineNumber||e.columnNumber)?(o={value:e.message,htmlLines:[]},it=n.EncodingUtilities.escapeHtmlAndPreserveWhitespace(e.message),e.messageId?(c=e.messageId,rt=e.message.substring(0,c.length),rt===c&&(g=n.EncodingUtilities.wrapInQuotes(n.EncodingUtilities.escapeHtml(r.createHelpLinkURL(c))),ut=""+c+"<\/span>",o.htmlLines.push(ut+r.replaceURLsWithLinks(n.EncodingUtilities.escapeHtml(e.message.substring(c.length)))))):it.forEach(function(n){o.htmlLines.push(r.replaceURLsWithLinks(n))}),e.fileUrl?(l=r.parseLocationInfo(e.fileUrl,e.lineNumber,e.columnNumber),s="",s+=l.fileLabel+"<\/span>",o.htmlLines.push(s),y=l.fileLabel):(w=!1,nt=!1,e.lineNumber===null||isNaN(e.lineNumber)||(w=!0,e.columnNumber===null||isNaN(e.columnNumber)||(nt=!0)),a=null,w&&nt?a=n.EncodingUtilities.escapeHtml(n.ToolWindowHelpers.loadString("EventScriptPositionText",[e.lineNumber,e.columnNumber])):w&&(a=n.EncodingUtilities.escapeHtml(n.ToolWindowHelpers.loadString("ScriptErrorLine",[e.lineNumber]))),a&&(o.htmlLines.push(""+a+"<\/span>"),y=a))):o=i.encodeValueForListItem(e.message,"string"),ft=o.htmlLines.length-1,this._originalObject=f,b=r.parseNotifyTypeString(f.notifyType),this._message=o.value,this._fileInfo=y,tt=null,f.message.viewableObject&&f.message.viewableObject.length)if(this.children=[],f.message.viewableObject.length===1&&f.message.viewableObject[0].uid!==f.message.viewableObject[0].value)if(h=this.createTreeViewItem(f.message.viewableObject[0],b),h instanceof u)this.children.push(h);else{this._originalTreeViewObjectItem=h;tt=h.name;v+=" "+v+"Expandable";switch(f.message.viewableObject[0].detailedType){case"regex":case"date":o.htmlLines[0]=n.EncodingUtilities.escapeHtml(h.value);break;default:o.htmlLines[0]=h.value}this.children=h.children}else for(k=0;k")===0&&(n=n.replace("
",""),n=n.substring(0,n.lastIndexOf("<\/pre>")),i=!0),r=/((https?:\/\/)|(www\.)|(ftp:\/\/)|(file:\/\/))(([.!?:,;\)\]\>\}]*)[^\s\)\]\>\}.!?:,]+)*/g,t=n.replace(r,function(n,t){var i=n,r;return i=t==="www."?"http://"+i:i,r=i,""+n+"<\/span>"}),i?"
"+t+"<\/pre>":t},r.createHelpLinkURL=function(n){return"http://msdn.microsoft.com/query/dev12.query?appId=Dev12IDEF1&l="+y.Culture.lang.toUpperCase()+"&k=k(VS.WebClient.Help."+n+")"},r.getNotifyTypeString=function(n){switch(n){case 1:return"consoleItemError";case 2:return"consoleItemError";case 3:return"consoleItemInfo";case 4:return"consoleItemLog";case 5:return"consoleItemWarn";default:return null}},r.parseNotifyTypeString=function(n){switch(n){case"consoleItemError":return 2;case"consoleItemInfo":return 3;case"consoleItemCDContext":return 3;case"consoleItemLog":return 4;case"consoleItemWarn":return 5;default:return 0}},r.prototype.getCopyText=function(n){var t,u,r;if(n===void 0&&(n=""),t=n,t+=this._message,this._fileInfo&&(t+="\r\n"+n+this._fileInfo),u=n+i.TextCopyIndent,this._originalTreeViewObjectItem)t+="\r\n"+this._originalTreeViewObjectItem.getCopyText(u)+"\r\n";else if(this.children&&this.children.length>0){for(r=0;r0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasChildren",{get:function(){return this._children&&this._children.length>0},enumerable:!0,configurable:!0}),t.prototype.getChildren=function(n,t){t(this._children)},t.prototype.addChild=function(n,t){if(t){var i=this._children.indexOf(t);i>-1?this._children.splice(i+1,0,n):this._children.push(n)}else this._children.push(n)},t.prototype.getCopyText=function(n,t,r){var o,u,f,e;for(n===void 0&&(n=""),o=r?n="":n+i.TextCopyIndent,u=n,this._title&&this._title.length>0&&(u+=this._title+"\r\n"),f=0;f-1},t.prototype.isFirstUIChildNeeded=function(){return this._children.length===0&&!this._isInitialCollapsed},t}(i);t.TreeViewGroupItem=o;s=function(n){function t(t,i,r,u){n.call(this,null,u,t,i);this._propertyName=t;this._propertyValueHtml=i.length>0?i[0]:"";this._propertyValue=r}return __extends(t,n),t.prototype.getCopyText=function(n){return n===void 0&&(n=""),n+this._propertyName+": "+this._propertyValue+";\r\n"},t}(o);t.TreeViewCssStyleGroup=s;h=function(n){function t(t,i){var u=f.isColorProperty(t.property)?"<\/span>":"",e=(t.inherited?"<"+t.inherited.toLowerCase()+"> ":"")+t.selector,r=[u+""+t.value+"<\/span>"],o=(i?"":" Console-Style-Disabled ")+"Console-Html-CSS-Selector";n.call(this,null,!1,!1,!1,e,o,r);this._html=r;this._styleObject=t}return __extends(t,n),t.prototype.getHtmlContent=function(){return this._html},t.prototype.getCopyText=function(n){return n===void 0&&(n=""),n+this._styleObject.selector+" {\r\n   "+this._styleObject.property.toLowerCase()+": "+this._styleObject.value+"\r\n}\r\n"},t}(i);t.TreeViewStyleItem=h;a=function(n){function t(t){var i=t.message.name;i||(i="");n.call(this,t.inputId,t.message.message,!1,!1,!1,i+":",null,null)}return __extends(t,n),t}(r);t.TreeViewCountItem=a;v=function(t){function i(){var i=n.ToolWindowHelpers.loadString("ConsoleNavigationSeparatorLabel");t.call(this,i,!1,!1,!1,null,null,[""])}return __extends(i,t),Object.defineProperty(i.prototype,"isSeparator",{get:function(){return!0},enumerable:!0,configurable:!0}),i}(i);t.TreeViewSeparatorItem=v})(t=n.ObjectView||(n.ObjectView={}))}(Common||(Common={}));
//! Copyright (C) Microsoft. All rights reserved.
(function(n){var t;(function(n){"use strict";var t=Microsoft.Plugin,r=function(){function n(n){if(this._proxy=n,!this._proxy)throw new Error(t.Resources.getErrorString("JSPerf.1055"))}return n.prototype.startSession=function(n,r,u){var f=this;return new t.Promise(function(t,e){f._proxy.startSession(n,r,u,function(n){t(new i(n))},function(n){e&&e(new Error(n.toString()))})})},n.prototype.stopCollection=function(){this._proxy.stopCollection()},n}(),i;n.F12EtwDataCollector=r;i=function(){function n(n){this._proxy=n}return n.prototype.stop=function(){var n=this;return new t.Promise(function(t,i){n._proxy.stop(function(n){t(n)},function(n){i&&i(new Error("Error: "+n))})})},n.prototype.getGraphDataUpdate=function(n){var i=this;return new t.Promise(function(t,r){i._proxy.getGraphDataUpdate(n,function(n){t(n)},function(n){r&&r(new Error("Error: "+n))})})},n.prototype.sendStringToCollectionAgent=function(n){var i=this;return new t.Promise(function(t,r){i._proxy.sendStringToCollectionAgent(n,function(n){t(n)},function(n){r&&r(new Error("Error: "+n))})})},n.prototype.addEventListener=function(n,t){this._proxy.addEventListener(n,t)},n.prototype.removeEventListener=function(n,t){this._proxy.removeEventListener(n,t)},n.prototype.isEventListenerAttached=function(n,t){return this._proxy.isEventListenerAttached(n,t)},n.prototype.removeAllEventListeners=function(){this._proxy.removeAllEventListeners()},n}();n.F12EtwDataCollectorSession=i})(t=n.Data||(n.Data={}))})(Common||(Common={}));
//! Copyright (C) Microsoft. All rights reserved.
__extends=this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);r.prototype=t.prototype;n.prototype=new r},function(n){var t;(function(n){var t;(function(n){"use strict";var t=Microsoft.Plugin,i=function(n){function i(t){var i=this;n.call(this,t);this.rootElement.addEventListener("click",function(n){return i.onClick(n)});this.rootElement.addEventListener("keydown",function(n){return i.onKeydown(n)});this.rootElement.addEventListener("mousedown",function(n){return i.onMouseDown(n)});this.rootElement.addEventListener("mouseup",function(n){return i.onMouseUpLeave(n)});this.rootElement.addEventListener("mouseleave",function(n){return i.onMouseUpLeave(n)})}return __extends(i,n),Object.defineProperty(i.prototype,"click",{get:function(){return this._onClick},set:function(n){this._onClick=n},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"content",{get:function(){return this.rootElement.innerHTML},set:function(n){this.rootElement.innerHTML=n},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tooltip",{get:function(){return this._tooltip},set:function(n){var i=this;this._tooltip=n;this.rootElement.onmouseover=function(){return t.Tooltip.show({content:i._tooltip}),!0}},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"disabled",{get:function(){return this.rootElement.disabled},set:function(n){this.rootElement.disabled=n},enumerable:!0,configurable:!0}),i.prototype.onClick=function(){this.rootElement.focus();this._onClick&&this._onClick()},i.prototype.onKeydown=function(n){(n.keyCode===32||n.keyCode===13)&&(this._onClick&&this._onClick(),n.preventDefault())},i.prototype.onMouseDown=function(){this.disabled||this.rootElement.classList.add("BPT-ToolbarButton-MouseDown")},i.prototype.onMouseUpLeave=function(){this.rootElement.classList.remove("BPT-ToolbarButton-MouseDown")},i}(n.Control);n.Button=i})(t=n.Legacy||(n.Legacy={}))})(t=n.Controls||(n.Controls={}))}(Common||(Common={}));
//! Copyright (C) Microsoft. All rights reserved.
__extends=this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);r.prototype=t.prototype;n.prototype=new r},function(n){var t;(function(n){var t;(function(n){"use strict";var t=function(n){function t(i){var r=this;n.call(this,i);this._radioButtonElement=this.rootElement;t.RadioButtons.push(this);this.rootElement.addEventListener("click",function(n){return r.onCheck(n)});this.updateAriaProperties()}return __extends(t,n),Object.defineProperty(t.prototype,"check",{get:function(){return this._onCheck},set:function(n){this._onCheck=n},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"checked",{get:function(){return this._radioButtonElement.checked},set:function(n){this._radioButtonElement.checked=n;this.updateAriaProperties()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this.rootElement.disabled},set:function(n){this.rootElement.disabled=n},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"groupName",{get:function(){return this._radioButtonElement.name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"focusableElement",{get:function(){return this._radioButtonElement},enumerable:!0,configurable:!0}),t.prototype.onCheck=function(){var n,i;if(this.checked)for(this.rootElement.focus(),this._onCheck&&this._onCheck(),n=0;n100&&__rpcLog.shift()}},t.prototype.onMessage=function(t){var f=this,r,u;this.logTraffic(t.data);r=JSON.parse(t.data);u=r.id.split("|");n.Utility.Assert.areEqual(u.length,2);u[1]==="NULL"?u[0]!==this._ourIdentifier&&this._jsonRpcNotificationReceive(r.method,r.params):u[0]===this._ourIdentifier?i.RandomDelay?i.queueData(function(){f.handleReply(r)},t.data):this.handleReply(r):i.RandomDelay?i.queueData(function(){f.handleCall(r)},t.data):this.handleCall(r)},t.prototype.handleReply=function(t){if(!this._promiseTable[t.id]){n.Utility.Assert.failDebugOnly("Can't complete a promise that does not exist in the promise table. Probably a dup reply msg.");return}t.error?(n.Utility.Assert.isUndefined(t.data,"Can't have both data and error"),this._promiseTable[t.id].error(t.error)):this._promiseTable[t.id].completed(t.data);delete this._promiseTable[t.id]},t.prototype.handleCall=function(t){var i=this;this._jsonRpcMethodReceive(t.method,t.params,function(r,u){var f;r!==null&&r!==undefined?(n.Utility.Assert.isUndefined(u,"Can't have both data and error"),f=JSON.stringify({id:t.id,data:r})):(n.Utility.Assert.hasValue(u,"RPC call returned no value, but no error object either"),f=JSON.stringify({id:t.id,error:u}));i._postMessage(f)})},t}(),r,i;t.JsonRPCEndpoint=u;r=function(){function n(n,t){this.callback=n;this.message=t}return n}();t.RpcDelayData=r;i=function(){function n(){}return n.enableDelay=function(t,i){n.RandomDelay=!0;n.CalculateDelayTime=t;n.DelayedMessage=i},n.disableDelay=function(){n.RandomDelay=!1;n.RandomDelayTimeout&&(clearTimeout(n.RandomDelayTimeout),n.RandomDelayTimeout=null,n.clearQueue())},n.queueData=function(t,i){var f=new r(t,i),u;n.DelayedQueue.push(f);n.RandomDelayTimeout||(u=n.CalculateDelayTime(i),n.RandomDelayTimeout=setTimeout(n.fireRandomly,u))},n.fireRandomly=function(){var t=n.DelayedQueue.shift(),i;n.DelayedMessage(t.message);t.callback();n.DelayedQueue.length>0?(i=n.CalculateDelayTime(n.DelayedQueue[0].message),n.RandomDelayTimeout=setTimeout(n.fireRandomly,i)):n.RandomDelayTimeout=null},n.clearQueue=function(){for(var i,t=0;t0&&i[0](t)}},n}();n.EventHelperObject=t})(Common||(Common={}));
//! Copyright (C) Microsoft. All rights reserved.
(function(n){"use strict";var t=function(){function n(n,t){this._container=n;this._elementCreator=t;this._index=null;this._elements=[];this._recycledElements=[]}return n.forDivWithClass=function(t,i){return new n(t,function(){var n=document.createElement("div");return n.className=i,n})},n.prototype.start=function(){this._index=0},n.prototype.getNext=function(){F12.Tools.Utility.Assert.isTrue(this._index!==null,"Invalid operation. Method 'start' must be called before calling getNext.");var n=this._elements[this._index];return n||(n=this._recycledElements.length>0?this._recycledElements.pop():this._elementCreator(),this._elements.push(n),this._container.appendChild(n)),this._index++,n},n.prototype.stop=function(){var n,t;if(this._index!==null){for(n=this._elements.length-1;n>=this._index;--n)t=this._elements.pop(),this._recycledElements.push(t),this._container.removeChild(t);this._index=null}},n.prototype.recycleAll=function(){for(var t,n=this._elements.length-1;n>=0;--n)t=this._elements.pop(),this._recycledElements.push(t),this._container.removeChild(t)},n.prototype.removeAll=function(){for(var t,n=this._elements.length-1;n>=0;--n)t=this._elements.pop(),this._container.removeChild(t);this._elements=[];this._recycledElements=[]},n}();n.ElementRecyclerFactory=t})(Common||(Common={}));
//! Copyright (C) Microsoft. All rights reserved.
(function(n){var t;(function(){"use strict"})(t=n.Controls||(n.Controls={}))})(Common||(Common={}));
//! Copyright (C) Microsoft.\u00a0All rights reserved.
(function(n){var t;(function(){"use strict"})(t=n.Controls||(n.Controls={}))})(Common||(Common={}));
//! Copyright (C) Microsoft. All rights reserved.
(function(n){var t;(function(){"use strict"})(t=n.Controls||(n.Controls={}))})(Common||(Common={}));
//! Copyright (C) Microsoft.\u00a0All rights reserved.
__extends=this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);r.prototype=t.prototype;n.prototype=new r},function(n){var t;(function(t){"use strict";var i=function(t){function i(i){t.call(this,i);this.hoverStateChangeEvent=new n.EventSource}return __extends(i,t),Object.defineProperty(i.prototype,"id",{get:function(){return this.item?this.item.id:null},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"isSelected",{get:function(){return this._isSelected},set:function(n){this._isSelected!==n&&(this._isSelected=n,this.updateStyle())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"item",{get:function(){return this._item},set:function(n){this._item=n},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"hasFocus",{get:function(){return this.id!==null&&this.id===i.FocusedContainerId},set:function(n){i.FocusedContainerId=n?this.id:null},enumerable:!0,configurable:!0}),i.prototype.clearHoverState=function(){this.rootElement.classList.remove(i.HOVER_CSS_CLASSNAME)},i.prototype.empty=function(){this.item=null;this.template&&(this.template.model=null);this._isSelected=null;this.updateStyle();this.rootElement.classList.remove("itemContainerHover")},i.prototype.focus=function(){this.isSelected=!0;this.hasFocus=!0;this.updateStyle();try{this.rootElement.setActive()}catch(n){}},i.prototype.onApplyTemplate=function(){var n=this;t.prototype.onApplyTemplate.call(this);this.rootElement.id="listItemContainer"+i.IdCount++;this.rootElement.className=i.BASE_CSS_CLASSNAME;this.rootElement.tabIndex=-1;this.rootElement.addEventListener("focus",this.onFocus.bind(this));this.rootElement.addEventListener("blur",this.onBlur.bind(this));this.rootElement.addEventListener("click",this.onClick.bind(this));this.rootElement.addEventListener("contextmenu",this.onContextMenu.bind(this));this.rootElement.addEventListener("mouseover",function(){n.rootElement.classList.add(i.HOVER_CSS_CLASSNAME);n.hoverStateChangeEvent.invoke({hovering:!0,container:n})});this.rootElement.addEventListener("mouseleave",function(){n.rootElement.classList.remove(i.HOVER_CSS_CLASSNAME);n.hoverStateChangeEvent.invoke({hovering:!1,container:n})})},i.getRowHeight=function(){if(!i.RowHeight){var n=new i;document.body.appendChild(n.rootElement);i.RowHeight=n.rootElement.offsetHeight;document.body.removeChild(n.rootElement)}return i.RowHeight},i.prototype.updateStyle=function(){this._isSelected?(this.rootElement.tabIndex=this.selectedTabIndex||0,this.hasFocus?(this.rootElement.classList.add(i.SELECTED_ACTIVE_CSS_CLASSNAME),this.rootElement.classList.remove(i.SELECTED_CSS_CLASSNAME)):(this.rootElement.classList.add(i.SELECTED_CSS_CLASSNAME),this.rootElement.classList.remove(i.SELECTED_ACTIVE_CSS_CLASSNAME))):(this.rootElement.tabIndex=-1,this.rootElement.classList.remove(i.SELECTED_CSS_CLASSNAME),this.rootElement.classList.remove(i.SELECTED_ACTIVE_CSS_CLASSNAME))},i.prototype.onBlur=function(){this.hasFocus=!1;this.updateStyle()},i.prototype.onClick=function(n){n.target instanceof HTMLTextAreaElement||n.target instanceof HTMLInputElement||this.clicked&&(this.clicked(n),n.stopImmediatePropagation())},i.prototype.onContextMenu=function(){this.contextMenu&&this.contextMenu()},i.prototype.onFocus=function(){this.hasFocus=!0;this.updateStyle()},i.BASE_CSS_CLASSNAME="BPT-listItemContainer",i.HOVER_CSS_CLASSNAME="BPT-listItemContainerHover",i.SELECTED_CSS_CLASSNAME="BPT-listItemSelected",i.SELECTED_ACTIVE_CSS_CLASSNAME="BPT-listItemSelectedActive",i.IdCount=0,i}(n.TemplateControl);t.ItemContainer=i})(t=n.Controls||(n.Controls={}))}(Common||(Common={}));
//! Copyright (C) Microsoft. All rights reserved.
(function(n){var t;(function(t){"use strict";var i=function(){function i(){this._itemContainers={};this._unusedItemContainers=[];this.countChanged=new n.EventSource}return Object.defineProperty(i.prototype,"count",{get:function(){return this._dataSource?this._dataSource.count:0},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"indentLevel",{get:function(){return this._dataSource?this._dataSource.indentLevel:0},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"indentIndexStart",{get:function(){return this._dataSource?this._dataSource.indentIndexStart:0},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"indentIndexEnd",{get:function(){return this._dataSource?this._dataSource.indentIndexEnd:0},enumerable:!0,configurable:!0}),i.prototype.setDataSource=function(n){this._dataSource!==n&&(this._dataSourceListChangedEventRegistration&&(this._dataSourceListChangedEventRegistration.unregister(),this._dataSourceListChangedEventRegistration=null),this._dataSource=n,this._currentIndex=null,this.recycleAll(),this._dataSource&&this._dataSource.listChanged&&(this._dataSourceListChangedEventRegistration=this._dataSource.listChanged.addHandler(this.onDataSourceListChanged.bind(this))),this.countChanged.invoke({action:2}))},i.prototype.startAt=function(n){this._dataSource&&(F12.Tools.Utility.Assert.isTrue(n>=0&&n0?this._unusedItemContainers.pop():this.newItemContainer(),i.item=t,i},i.prototype.onDataSourceListChanged=function(n){this.countChanged.invoke(n)},i}();t.ItemContainerGenerator=i})(t=n.Controls||(n.Controls={}))})(Common||(Common={}));
//! Copyright (C) Microsoft. All rights reserved.
__extends=this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);r.prototype=t.prototype;n.prototype=new r},function(n){var t;(function(t){"use strict";var i=function(i){function r(t){i.call(this,t||"Common.stackPanelTemplate");this.renderStartingEvent=new n.EventSource;this.renderCompletedEvent=new n.EventSource;this.children=[];this._requestScrollToOffset=null;this._scrollTopCached=null}return __extends(r,i),Object.defineProperty(r.prototype,"content",{get:function(){return this._content},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"itemContainerGenerator",{get:function(){return this._itemContainerGenerator},set:function(n){this._itemContainerGenerator!==n&&(this._itemContainerGenerator=n,this.onItemContainerGeneratorChanged())},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"rowHeight",{get:function(){if(!this._rowHeight){var n=new t.ItemContainer;this.content.appendChild(n.rootElement);this._rowHeight=n.rootElement.offsetHeight;this.content.removeChild(n.rootElement)}return this._rowHeight},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"charWidth",{get:function(){var n,i;return this._charWidth||(n=document.createElement("div"),n.textContent="H",n.style.height="auto",n.style.width="auto",n.style.position="absolute",i=new t.ItemContainer,i.rootElement.appendChild(n),this.content.appendChild(i.rootElement),this._charWidth=n.getBoundingClientRect().width,this.content.removeChild(i.rootElement)),this._charWidth},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"charHeight",{get:function(){var n,i;return this._charHeight||(n=document.createElement("div"),n.textContent="H",n.style.height="auto",n.style.width="auto",n.style.position="absolute",i=new t.ItemContainer,i.rootElement.appendChild(n),this.content.appendChild(i.rootElement),this._charHeight=n.getBoundingClientRect().height,this.content.removeChild(i.rootElement)),this._charHeight},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"viewportHeight",{get:function(){if(!this._viewportHeight){var n=this.rootElement.parentElement;F12.Tools.Utility.Assert.isTrue(!!n,"Trying to access the parent element when the panel is not attached to it.");this._viewportHeight=Math.floor(n.getBoundingClientRect().height)}return this._viewportHeight},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"viewportRowsCount",{get:function(){return this.rowHeight===0||isNaN(this.rowHeight)?0:Math.floor(this.viewportHeight/this.rowHeight)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"viewportWidth",{get:function(){return this._viewportWidth||(this._viewportWidth=this.content.clientWidth),this._viewportWidth},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"scrollHeight",{get:function(){return this.rootElement.scrollHeight},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"scrollTop",{get:function(){if(this._requestScrollToOffset!==null){var n=Math.min(this._requestScrollToOffset,this.scrollHeight-this.viewportHeight);return Math.max(0,n)}return this.scrollTopCached},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"scrollTopCached",{get:function(){return this._scrollTopCached===null&&(this._scrollTopCached=this.rootElement.scrollTop),this._scrollTopCached},enumerable:!0,configurable:!0}),r.prototype.getItemRowInfoFromRow=function(n){return{index:n,rowsSpan:1,topRow:n}},r.prototype.getItemRowInfoFromIndex=function(n){return{index:n,rowsSpan:1,topRow:n}},r.prototype.ensureVisible=function(n,t){var u=this.getItemRowInfoFromIndex(n),i;if(u){var r=u.topRow*this.rowHeight,f=r+(u.rowsSpan||1)*this.rowHeight,e=this.scrollTop,o=e+this.viewportHeight;(t||ro)&&(t?(i=(r+f-this.viewportHeight)/2,i=Math.max(i,0),i=Math.min(i,this.scrollHeight-this.viewportHeight)):i=r0&&t<=u-this.rowHeight?t:0},r.prototype.invalidate=function(){var n=this;this.children.forEach(function(t){t&&n.templateBinder.unbind(t)});this.itemContainerGenerator.recycleAll();this.children=[]},r.prototype.invalidateScrollCache=function(){this._scrollTopCached=null},r.prototype.invalidateSizeCache=function(){this._viewportHeight=null;this._viewportWidth=null;this._charWidth=0;this._charHeight=0;this._rowHeight=0},r.prototype.isPartiallyVisible=function(n){var t=this.getItemRowInfoFromIndex(n);if(!t)return!1;var i=t.topRow*this.rowHeight,u=i+(t.rowsSpan||1)*this.rowHeight,r=this.scrollTop,f=r+this.viewportHeight;return u>r&&u<=f||i>=r&&iparseInt(this._contentSizer.style.top)&&this.invalidateScrollCache();n.rootElement.style.top=r*this.rowHeight+"px";n.rootElement.style.height="";this.children[i]!==n&&(this.content.contains(n.rootElement)||this.content.appendChild(n.rootElement),this.children[i]=n);r=this.containerRenderedOverride(r,i,n)}for(e=this.allContainersRenderedOverride(u.topRow,r),this._lastBottomTop=e*this.rowHeight,this.itemContainerGenerator.stop(),o=i,t=o;t<=this._lastVisibleItemIndex;++t)this.removeItemContainerByIndex(t);this._firstVisibleItemIndex=f;this._lastVisibleItemIndex=o}this.itemContainerGenerator.countr?(this._firstVisibleItemIndex>=r?f=this._lastFirstTop:(e=i.getItemContainerByIndex(r),f=e?parseInt(e.rootElement.style.top,10):0),this._lastVisibleItemIndex<=u?o=this._lastBottomTop:(s=i.getItemContainerByIndex(u),o=s?parseInt(s.rootElement.style.top,10):f),t.style.top=f+this.rowHeight+"px",t.style.height=o-f+"px",t.style.marginLeft=(i.indentLevel+1)*n.TreeItemDataTemplate.INDENTATION_IN_PIXELS_DEFAULT+"px",this.content.appendChild(t)):t.parentNode&&t.parentNode.removeChild(t)},i.prototype.allContainersRenderedOverride=function(n,t){return t},i.prototype.containerRenderedOverride=function(n){return n+1},i.prototype.updateVirtualHeight=function(){this._contentSizer.style.top=this.virtualHeight+"px"},i.prototype.onApplyTemplate=function(){t.prototype.onApplyTemplate.call(this);this._contentSizer=this.getNamedElement("contentSizer");F12.Tools.Utility.Assert.isTrue(!!this._contentSizer,"Expecting a child element called 'content'")},i.prototype.getSelectionIndentElement=function(){return this._selectionIndentElement||(this._selectionIndentElement=document.createElement("div"),this._selectionIndentElement.classList.add("BPT-listItemSelectedIndent")),this._selectionIndentElement},i.prototype.getFirstVisibleRowScrollFraction=function(){return this.scrollTop/this.rowHeight},i.prototype.getVisibleRowsScrollFraction=function(){return this.viewportHeight/this.rowHeight},i.prototype.removeItemContainerByIndex=function(n){var t=this.children[n];t&&t.template&&t.template.isVirtualizingDisabled||(delete this.children[n],t&&this.templateBinder.unbind(t),this.itemContainerGenerator.recycle(n))},i.prototype.removeOrphanElements=function(){var i=new Set,n,t;for(this.children.forEach(function(n){i.add(n.rootElement)}),n=this.content.children.length-1;n>=0;--n)t=this.content.children[n],i.has(t)||this.content.removeChild(t)},i}(n.StackPanel);n.VirtualizingStackPanel=t})(t=n.Controls||(n.Controls={}))}(Common||(Common={}));
//! Copyright (C) Microsoft. All rights reserved.
__extends=this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);r.prototype=t.prototype;n.prototype=new r},function(n){var t;(function(n){"use strict";var t=function(n){function t(t){n.call(this,t);this._previousWidth=null;this._previousCharWidth=null;this._rowsCount=null;this.resetRowSpans()}return __extends(t,n),Object.defineProperty(t.prototype,"virtualHeight",{get:function(){return this.updateViewportInfo(this.viewportWidth,this.charWidth,this.charHeight),this.rowHeight*this.rowsCount},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rowsCount",{get:function(){return this._rowsCount===null&&this.refreshRowsCount(),this._rowsCount},enumerable:!0,configurable:!0}),t.prototype.allContainersRenderedOverride=function(n){var u=n,o,s,i,t,r,f;if(this._containersToReadjust.length>0){for(i=0;i0){for(var t=0,r=0,i=1;tn)break;return t===this.itemContainerGenerator.count&&t--,{index:t,topRow:r-i,rowsSpan:i}}return null},t.prototype.getItemRowInfoFromIndex=function(n){var r,t,i;if(n>=0&&n=0&&n=0&&this.panel.ensureVisible(this._selectedItemVisibleIndex);t=this.getSelectedItemContainer(!0);t&&this.focusItemContainer(t);this.onSelectedItemChangedOverride(this._selectedItem);this.selectedItemChanged&&this.selectedItemChanged(this._selectedItem);this.panel.updateIndentLine()}},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"offsetLeft",{get:function(){return this._offsetLeft===null&&(this._offsetLeft=this.rootElement.offsetLeft),this._offsetLeft},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"offsetTop",{get:function(){return this._offsetTop===null&&(this._offsetTop=this.rootElement.offsetTop),this._offsetTop},enumerable:!0,configurable:!0}),u.initialize=function(){n.ObservableHelpers.defineProperty(u,u.DataItemTemplatePropertyName,i,function(n){return n.onDataItemTemplateChanged()})},u.prototype.bind=function(n,t){var r=n.item;if(!n.template){if(!this._dataItemTemplateConstruction)throw new Error("Expecting a data item template type.");n.rootElement.tabIndex=-1;n.template=this._dataItemTemplateConstruction.getNewControl();n.rootElement.appendChild(n.template.rootElement);n.template instanceof i&&(n.template.ownerListControl=this)}n.rootElement.setAttribute("data-id",n.id.toString());this.updateContainerOverride(n,t);n.clicked=this.onItemSelected.bind(this,n);n.contextMenu=this.onItemSelected.bind(this,n);n.isSelected=this._selectedItem&&n.id===this._selectedItem.id},u.prototype.cleanupContainerOverride=function(n){var t=n.template;t&&(t.model=null)},u.prototype.forceFocusToSelectedItem=function(){var n=this.getSelectedItemContainer(),t,i;n&&(t=n.item,t&&(i=this.getVisibleIndexOfItem(t),i>=0&&this.panel.isPartiallyVisible(i)&&n.focus()))},u.prototype.getItemContainerFromItem=function(n,t){var i=this._itemContainerGenerator.getItemContainerFromItemId(n.id);return!i&&t&&(this.scrollToItem(n),i=this._itemContainerGenerator.getItemContainerFromItemId(n.id)),i},u.prototype.getSelectedItemContainer=function(n){return this.selectedItem?this.getItemContainerFromItem(this.selectedItem,n):null},u.prototype.invalidate=function(n){n===void 0&&(n=!0);n&&this.panel.invalidate();this.panel.render();var t=this.panel.virtualHeight>this.panel.viewportHeight;t!==this._panelScrollBarShown&&(this._panelScrollBarShown=t,this.invalidateSizeCache());this.onInvalidated()},u.prototype.invalidateItemRowSpan=function(n){var i=this,u,r,f;n&&this.dataSource&&this.panel instanceof t.VirtualizingMultiRowStackPanel&&((u=this.panel,r=this.dataSource.indexOfItem(n.id),r<0)||(u.invalidateRowSpan(r),f=this._selectedItemVisibleIndex>=0&&this.panel.isPartiallyVisible(this._selectedItemVisibleIndex),this._invalidationDelayer.delay(function(){i.invalidate(!1);f&&i._selectedItemVisibleIndex>=0&&i.panel.ensureVisible(i._selectedItemVisibleIndex)})))},u.prototype.invalidateSizeCache=function(){this._offsetLeft=null;this._offsetTop=null;this.panel.invalidateSizeCache()},u.prototype.onApplyTemplate=function(){r.prototype.onApplyTemplate.call(this);this.rootElement.style.width="100%";this.rootElement.style.height="100%";this.rootElement.tabIndex=0;this.rootElement.addEventListener("keydown",this.onKeyDown.bind(this));this._itemContainerGenerator=new t.ItemContainerGenerator;this.panel=new t.VirtualizingStackPanel;this.invalidateSizeCache()},u.prototype.onInvalidated=function(){},u.prototype.onKeyDownOverride=function(n){var t=!0;switch(n.keyCode){case 38:this._selectedItemVisibleIndex<0?this.setSelectedItemVisibleIndex(0,1):this.selectPreviousItem();break;case 40:this._selectedItemVisibleIndex<0?this.setSelectedItemVisibleIndex(0,1):this.selectNextItem();break;case 33:this.selectPage(-1,-1);break;case 34:this.selectPage(1,1);break;case 36:this.selectHome();break;case 35:this.selectEnd();break;case 93:this.onShowContextMenu();break;case 121:!n.shiftKey||n.ctrlKey||n.altKey||this.onShowContextMenu();break;default:t=!1}return t},u.prototype.onSelectedItemChangedOverride=function(){},u.prototype.onShowContextMenu=function(){},u.prototype.onWindowResize=function(){this.invalidateSizeCache();this.invalidate()},u.prototype.render=function(n){n===void 0&&(n=!0);this.invalidate(n)},u.prototype.scrollToItem=function(n,t){var i=this.getVisibleIndexOfItem(n);i>=0&&this.panel.ensureVisible(i,t)},u.prototype.selectEnd=function(){this._selectedItemVisibleIndex<0||this.setSelectedItemVisibleIndex(this._itemContainerGenerator.count-1,-1)},u.prototype.selectHome=function(){this._selectedItemVisibleIndex<0||this.setSelectedItemVisibleIndex(0,1)},u.prototype.selectPreviousItem=function(){this._selectedItemVisibleIndex<0||this.setSelectedItemVisibleIndex(this._selectedItemVisibleIndex-1,-1)},u.prototype.selectPage=function(n,t){var i,u,r;this._selectedItemVisibleIndex<0||(this.panel.scrollToOffset(this.panel.scrollTop+n*this.panel.viewportRowsCount*this.panel.rowHeight),i=this.panel.getItemRowInfoFromIndex(this._selectedItemVisibleIndex),i&&(u=i.topRow+n*this.panel.viewportRowsCount,r=this.panel.getItemRowInfoFromRow(u),r&&this.setSelectedItemVisibleIndex(r.index,t)))},u.prototype.selectNextItem=function(){this._selectedItemVisibleIndex<0||this.setSelectedItemVisibleIndex(this._selectedItemVisibleIndex+1,1)},u.prototype.unbind=function(n){n.clicked=null;n.rootElement.removeAttribute("aria-label");this.cleanupContainerOverride(n)},u.prototype.updateContainerOverride=function(n){var i=n.item,t=n.template;t&&(t.model=i)},u.prototype.focusItemContainer=function(n){this.setItemContainerAriaLabel(n);n.focus()},u.prototype.getVisibleIndexOfItem=function(n){return this.dataSource?this.dataSource.indexOfItem(n.id):-1},u.prototype.maintainSelectionAroundOperation=function(n){var i=0,t;this._panel&&this._selectedItem&&this._itemContainerGenerator&&(t=this._itemContainerGenerator.getItemContainerFromItemId(this._selectedItem.id),t&&(i=this._panel.getScrollViewportOffset(t)));n();this._selectedItem?(this._selectedItemVisibleIndex=this.getVisibleIndexOfItem(this._selectedItem),this._selectedItemVisibleIndex<0?(this.selectedItem=null,this.panel.scrollToOffset(0,!0)):this.panel.scrollToIndex(this._selectedItemVisibleIndex,-i,!0)):this.panel.scrollToOffset(0,!0)},u.prototype.onDataItemTemplateChanged=function(){this._dataItemTemplateConstruction=null;this._dataItemTemplate&&(this._dataItemTemplateConstruction=n.ControlConstruction.createFromStringOrType(this._dataItemTemplate));this.itemContainerGenerator.reset();this.render(!0)},u.prototype.onKeyDown=function(n){var t=this.onKeyDownOverride(n);t&&(n.preventDefault(),n.stopPropagation())},u.prototype.onItemSelected=function(n,t){var i;i=t&&!t.altKey&&t.ctrlKey&&!t.shiftKey?!n.isSelected:!0;i?(n.item.clickSelectAlternative&&(n=this.getItemContainerFromItem(n.item.clickSelectAlternative,!0)),this.selectedItem=n.item,n.focus()):this.selectedItem=null},u.prototype.setItemContainerAriaLabel=function(n){if(n){var t,i=n.item;i&&this.onGetItemContainerAriaLabel&&(t=this.onGetItemContainerAriaLabel(n));t?n.rootElement.setAttribute("aria-label",t):n.rootElement.removeAttribute("aria-label")}},u.prototype.setSelectedItemVisibleIndex=function(n,t){for(var i=null,r=this._itemContainerGenerator.count,u=!0,f=!1,e=!1,o;u;)if(n<0&&(n=0,t&&(t=1,e=!0)),n>=r&&(n=r-1,t&&(t=-1,f=!0)),u=!1,f&&e||this._selectedItemVisibleIndex>=0&&this._selectedItemVisibleIndex===n)i=this.getSelectedItemContainer();else if(n>=0&&n0&&(this.dataSource.indexOfParent(u.id).done(function(n){n>=0&&(e.selectedIndex=n)}),r=!0));break;case 107:i=this.getSelectedItemContainer();i&&(i.template.expand(),r=!0);break;case 109:i=this.getSelectedItemContainer();i&&(i.template.collapse(),r=!0)}return r||(r=t.prototype.onKeyDownOverride.call(this,n)),r},i.prototype.cleanupContainerOverride=function(n){t.prototype.cleanupContainerOverride.call(this,n);var i=n.template;i&&(i.expansionToggledCallback=null);n.rootElement.removeEventListener("DOMAttrModified",this._onAriaExpandedModifiedHandler)},i.prototype.collapseItem=function(n){var t=this;return this.dataSource.collapseBranch(n).then(function(){return t.afterExpandCollapse()})},i.prototype.expandItem=function(n){var t=this;return this.dataSource.expandBranch(n).then(function(){return t.afterExpandCollapse()})},i.prototype.onAriaExpandedModified=function(n){var t;if(n.attrName==="aria-expanded"){var r=n.target,u=parseInt(r.getAttribute("data-id")),i=this.itemContainerGenerator.getItemContainerFromItemId(u);i&&(t=i.template,n.newValue==="true"?t.expand():t.collapse())}},i.prototype.onExpansionToggled=function(n,t){var i=n.item;this.selectedItem=i;i.isExpanded?this.collapseItem(t).done():this.expandItem(t).done()},i.prototype.afterExpandCollapse=function(){this.invalidate(!1);var n=this.getSelectedItemContainer();n&&n.focus()},i}(t.ListControl);t.TreeListControl=i})(t=n.Controls||(n.Controls={}))}(Common||(Common={}));
//! Copyright (C) Microsoft. All rights reserved.
__extends=this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);r.prototype=t.prototype;n.prototype=new r},function(n){var t;(function(t){"use strict";var f,c,i,e,o,s,l,u,a,r,h,v;(function(n){var t=function(){function t(){}return t.stableReverse=function(n,t){for(var r,u,f=[],i=n.length-1;i>=0;i--){for(r=i-1;r>=0;r--)if(0!==t(n[r],n[i]))break;for(u=r+1;u<=i;u++)f.push(n[u]);i=r+1}for(i=0;i0){for(i=[],t={level:1,origCount:n.length,remainingCount:n.length},i.push(t),r=0;r0&&(o={level:u[u.length-1]+1,origCount:f,remainingCount:f},i.push(o),t=o);r++}if(i.length>0)throw new Error("invalid descendant counts, more input expected")}return u},c.addItemsToTree=function(n,t,i,r,u){for(var e,s,h=Math.min(i+r,n.length),f=i;f0&&(c.addItemsToTree(n,t,f+1,s,e),f+=s),u.children.push(e)},c.walkTree=function(n,t){var u,i,r,f;if(t&&(t(n),u=0,i=n.children,i&&(u=i.length)))for(r=0;r1?parseInt(o[1],10):0,o=r.split("."),r=o[0],u=o.length>1?o[1]:"",f>0?(u=y(u,f,!1),r+=u.slice(0,f),u=u.substr(f)):f<0&&(f=-f,r=y(r,f+1,!0),u=r.slice(-f,r.length)+u,r=r.slice(0,-f)),u.length>0&&(u=c.NumberDecimalSeparator+u),t===!0){for(var l=c.NumberGroupSizes,a=c.NumberGroupSeparator,s=l[0],v=1,e=r.length-1,h="";e>=0;){if(s===0||s>e)return h.length>0?r.slice(0,e+1)+a+h+u:r.slice(0,e+1)+u;h=h.length>0?r.slice(e-s+1,e+1)+a+h:r.slice(e-s+1,e+1);e-=s;v=0;r--)u=t[r],Math.abs(u)>f?(t[r]=u<0?u-e:u+e,f=0):f++},c.prototype._takeMeasurements=function(){var f=this._options.coreCssClass,n,r,t,i,u;this._options.cssClass&&(f+=" "+this._options.cssClass);n=this.createElementWithClass("div",f);n.style.position="absolute";n.style.left="-5000px";n.style.top="-5000px";n.style.width="1000px";n.style.height="500px";document.body.appendChild(n);r=this.createElementWithClass("div","grid-row grid-row-normal");n.appendChild(r);t=this.createElementWithClass("div","grid-cell");t.style.width="100px";t.innerText="1";r.appendChild(t);this._measurements.rowHeight=r.offsetHeight;this._measurements.cellOffset=t.offsetWidth-100;i=this.createElementWithClass("div");i.style.overflow="hidden";i.style.width="1em";i.style.height="1ex";t.appendChild(i);this._measurements.unitEx=i.offsetHeight;u=this.createElementWithClass("div","grid-gutter");u.appendChild(this.createElementWithClass("div","grid-gutter-row grid-gutter-row-selected"));n.appendChild(u);this._measurements.gutterWidth=this._gutter?u.clientWidth:0;document.body.removeChild(n)},c.prototype.initializeDataSource=function(){if(this._resetScroll){this._ignoreScroll=!0;try{var n=this._canvas;n.scrollTop=0;n.scrollLeft=0;this._scrollLeft=0;this._scrollTop=0;this._resetScroll=!1}finally{this._ignoreScroll=!1}}this.setDataSource(this._options.source,this._options.expandStates,this._options.columns,this._options.sortOrders);this._expandedCount>0?this._options.keepSelection&&this._selectedIndex>=0?this._selectRow(Math.min(this._selectedIndex,this._expandedCount-1)):this._selectRow(this._options.initialSelection!==!1?0:-1):this.setSelectedRowIndex(-1)},c.prototype.setDataSource=function(n,t,i,r,u,f,e){var h=this,s,l,v,o,a;if(this._rowInfoMap={},this._dataSource=n||[],this._count=v=this._dataSource.length,t?(this._expandStates=t,this._indentLevels=c.expand(t)):(this._indentLevels=null,this._expandStates=null),this.expandedCount=v,this._updateRanges(),this._columns=[],i){var y=function(n,t,i,r,u,f,e){return h._drawCell(n,t,i,r,u,f,e)},p=function(n,t){return h._drawHeaderCellValue(n,t)},w=function(n,t,i){return h.getColumnValue(n,t,i)};for(s=0,l=i.length;s=0&&(this._count<=this._selectedIndex&&(this._selectedIndex=this._count-1),this._selectedIndex!==t&&this._addSelection(this._selectedIndex))},c.prototype.getRowInfo=function(n){return this._rows[n]},c.prototype.getRowData=function(n){return this._dataSource[n]},c.prototype.getColumns=function(){return this._columns||[]},c.prototype.getSortOrder=function(){return this._sortOrder||[]},c.prototype.insertAdditionalDynamicData=function(n,t){typeof n!="undefined"&&this._adjustForDynamicData(n.itemsWithPlaceholders,n.expandStates,t-1)},c.prototype._determineIndentIndex=function(){for(var t=this._columns,n=0,i=t.length;n=t.start){if(n<=t.end)return r+n-t.start}else break;r+=t.end-t.start+1}return-Math.max(0,r-1)},c.prototype._updateRanges=function(){var n=0,i=0,u=this._count,t=[],f=0,e;if(this._expandStates){while(n0)){if(this._options.onRowToggleCallback)this._options.onRowToggleCallback(this._dataSource,n,!1);this._expandStates[n]=-t;this._updateRanges();i=this._rows[n];i&&(i.isDirty=!0)}this.layout()}},c.prototype.expandAllNodes=function(){var n=0,f=this._count,t=this._expandStates,i=!1,e=this._rows,r,u;if(t){while(n0&&(t[n]=-r,i=!0,u=e[n],u&&(u.isDirty=!0)),n++;i&&this._updateRanges()}return i},c.prototype.expandAll=function(){var n=this;this._updateExpansionStateAndRedraw(function(){return n.expandAllNodes})},c.prototype.collapseAll=function(){var n=this;this._updateExpansionStateAndRedraw(function(){return n.collapseAllNodes})},c.prototype._updateExpansionStateAndRedraw=function(n){var i,t=this._selectedIndex;t>=0&&(i=this._getDataIndex(t));n();t>=0&&(this._clearSelection(),this._addSelection(Math.abs(this._getRowIndex(i))));this._layoutContentSpacer();this._redraw();this._notifyForPrerender()},c.prototype.tryToggle=function(n,t,i){var u,r,f;if(!this._expandStates||this._selectedIndex<0||this._expandedCount<=0||(r=typeof i!="undefined"?i:this._getDataIndex(this._selectedIndex),f=this._rows[r],!f))return!1;if(u=this._expandStates[r],u!==0){if(n)if(u<0)this.expandNode(r);else return!1;else if(u>0)this.collapseNode(r);else return!1;return this._clearSelection(),this._addSelection(this._getRowIndex(r),null,null,!0),this._layoutContentSpacer(),this._redraw(),this._notifyForPrerender(),!0}return!1},c.prototype.layoutOnResize=function(){this._onContainerResize(undefined)},c.prototype._getVisibleRowIndices=function(){var n=this._scrollTop,r=n+this._canvasHeight,t=this._expandedCount-1,i=this._measurements.rowHeight;return{first:Math.min(t,Math.max(0,Math.ceil(n/i))),last:Math.min(t,Math.floor(r/i)-1)}},c.prototype._getRowIntoView=function(n,t){if(t)return this._canvas.scrollTop=Math.max(0,Math.min(n||0,this._expandedCount-1))*this._measurements.rowHeight,!0;var u=this._getVisibleRowIndices(),i=u.first,f=u.last,r=f-i;return nf?(i=this._selectedIndex>i?Math.max(n-r,0):Math.max(0,Math.min(n+r,this._expandedCount-1)-r),this._canvas.scrollTop=i*this._measurements.rowHeight,!0):!1},c.prototype.getSelectedRowIntoView=function(n){return this._getRowIntoView(this._selectedIndex,n)},c.prototype.cacheRows=function(){},c.prototype._updateViewport=function(n,t){for(var h,l=this._count,o=[],s=[],e=[],a=this._expandStates||[],v=this._expandedCount-1,f=this.getViewPortRanges(),c=Math.max(0,f.start-this._options.payloadSize),y=Math.min(v,f.end+this._options.payloadSize),i=this._getDataIndex(c),p=f.start,r=c;r<=y&&if.end?s[s.length]=new u(r,i):(e[e.length]=new u(r,i),p=r,this._lastRenderedDataIndex=i),h=a[i],h<0?i+=1-h:i++;this.measureColumnSize(t);this.cacheRows(o,e,s);this._drawRows(e,n)},c.prototype._cleanUpRows=function(){var t=this._rows,r=this._gutter,i,n;for(i in t)n=t[i],n.row.parentElement&&(n.row.parentElement.removeChild(n.row),delete this._rowInfoMap[n.row.id]),r&&n.gutterRow.parentElement&&n.gutterRow.parentElement.removeChild(n.gutterRow);this._rows={}},c.prototype._drawRows=function(n,t){var w=this._expandStates,b=0,tt=this._indentLevels,v=0,c=this._gutter,it=this._canvas,k,f,y,l,o,p,d,a,u,s,h,nt;for(this._editBoxControl&&(this._editBoxControl.dismiss(),this._editBoxControl=null),y=document.createDocumentFragment(),l=null,c&&(k=this._gutter,l=document.createDocumentFragment()),o=this._rows,p={},this._rows=p,d=n.length,a=0;a0?"true":"false"),f.addEventListener("DOMAttrModified",this._onAriaExpandedModifiedHandler))},c.prototype._getGutterIconClass=function(){return""},c.prototype._drawGutterCell=function(){},c._setTooltip=function(n,t,i){var r={content:t,height:i};n.setAttribute("data-plugin-vs-tooltip",JSON.stringify(r))},c.prototype._drawCell=function(n,t,i,r,u,f,e){var p=u.width||20,w,o=this.createElementWithClass("div","grid-cell"),tt,s,b,h,k,l,d,v,g,nt,y,a;if(o.style.width=isNaN(p)?String(p):p+"px",u.cellDecorator?(tt=this._dataSource[t],u.cellDecorator(o,tt)):(typeof u.hrefIndex!="undefined"&&(w=this.getColumnValue(t,u.hrefIndex,-1)),s=this.getColumnText(t,u,e),b=!1,s.length>c.MAX_CELL_CONTENT_SIZE&&(b=!0,o.setAttribute("grid-edit-value",s),s=s.substr(0,c.MAX_CELL_CONTENT_SIZE)),typeof u.getCellTooltip=="function"?c._setTooltip(o,u.getCellTooltip(t,u.index,e,this._dataSource),c.DEFAULT_TOOLTIP_HEIGHT):u.hasHTMLContent||u.hasMixedContent&&u.getCellCSSClass&&u.getCellCSSClass(t,u.index,e,this._dataSource).indexOf("grid-mixed-cell-html")!==-1||c._setTooltip(o,b?s+"...":s,c.DEFAULT_TOOLTIP_HEIGHT),w?(h=document.createElement("a"),h.setAttribute("href",w),h.setAttribute("tabindex","-1"),h.innerText=s,o.appendChild(h)):s?u.hasHTMLContent||u.hasMixedContent&&u.getCellCSSClass&&u.getCellCSSClass(t,u.index,e,this._dataSource).indexOf("grid-mixed-cell-html")!==-1?o.innerHTML=s:o.innerText=s:o.innerHTML=" "),e===f&&r>0&&(k=r*c.INDENT_WIDTH-13,u.indentOffset=k,i!==0&&(l=this.createElementWithClass("div","icon grid-tree-icon"),l.style.left=k+"px",o.appendChild(l),i>0?l.classList.add("icon-tree-expanded"):l.classList.add("icon-tree-collapsed")),o.style.textIndent=r*c.INDENT_WIDTH+"px"),u.hasGlyph&&(d=2,v=u.getGlyphClass(t,u.index,e,this._dataSource),v&&v!==""&&(g=this.createElementWithClass("div",v+" grid-cell-glyph"),g.style.left=r*c.INDENT_WIDTH+d+"px",o.appendChild(g),o.style.textIndent=r*c.INDENT_WIDTH+c.GLYPH_WIDTH+d+"px")),u.getCellCSSClass&&(nt=u.getCellCSSClass(t,u.index,e,this._dataSource),nt))for(y=nt.trim().split(" "),a=0;a0){for(i=this._canvas.querySelectorAll(".grid-row-splitter"),n=0;n=0&&this._addSelection(i,null,null,t);this._layoutHeader();this._drawHeader();this._drawSplitters()},c.prototype._fixScrollPos=function(){var n=this._ignoreScroll;this._ignoreScroll=!0;try{this._canvas.scrollLeft=this._scrollLeft;this._canvas.scrollTop=this._scrollTop}finally{this._ignoreScroll=n}},c.prototype.redraw=function(){this._fixScrollPos();this._redraw(!0)},c.prototype._redraw=function(n){this._layoutHeader();this._updateViewport(n)},c.prototype.getColumnValue=function(n,t){return this._dataSource[n][t]},c.prototype.getColumnText=function(n,t,i){var r,u=t.getColumnValue(n,t.index,i,this._dataSource);return r=typeof u!="string"?c.convertValueToDisplayString(u,t.format):u,t.maxLength=Math.max(t.maxLength||0,r.length),r},c.prototype._getExpandState=function(n){var t=0;return this._expandStates&&typeof this._expandStates[n]=="number"&&(t=this._expandStates[n]),t},c.prototype.getViewPortRanges=function(){var e=this._expandedCount-1,i=this._getVisibleRowIndices(),n=i.first,t=i.last,u,f;return n=Math.max(0,n-this._options.extendViewportBy),t=Math.min(e,t+this._options.extendViewportBy),u=this._getDataIndex(n),f=this._getDataIndex(t),new r(Math.min(u,n),Math.max(f,t))},c.prototype.scrollToBottom=function(n){this._scrollRenderComplete=n;this._canvas.scrollTop+this._canvas.clientHeight>=this._canvas.scrollHeight?this._scrollRenderComplete&&(this._scrollRenderComplete(),this._scrollRenderComplete=null):this._canvas.scrollTop=this._canvas.scrollHeight},c.prototype.setViewState=function(n){this._options.isGridEnabled=n;n?this.rootElement.classList.remove("busy"):this.rootElement.classList.add("busy")},c.prototype._selectRow=function(n,t,i,r){var u=i&&i.ctrl,f=i&&i.shift,e=i&&i.rightClick;u?this._addSelection(n,t,{toggle:!0}):f?(this._clearSelection(),this._addSelectionRange(n,t)):e?this._selectedRows&&this._selectedRows.hasOwnProperty(n)?(this._selectedIndex=n,this._updateAriaAttribute()):(this._clearSelection(),this._addSelection(n,t)):(this._clearSelection(),this._addSelection(n,t,null,r))},c.prototype._selectAll=function(){if(this._count>0&&this._options.allowMultiSelect!==!1){this._clearSelection();this._selectionStart=0;var n=Math.max(0,this._selectedIndex);this._addSelectionRange(this._count-1,undefined,{doNotFireEvent:!0});this._selectedIndex=n;this._updateSelectionStyles();this._selectionChanged()}},c.prototype.getSelectedRowIndex=function(){return this._selectedIndex},c.prototype.setSelectedRowIndex=function(n){this._clearSelection();this._addSelection(n)},c.prototype.getSelectedDataIndex=function(){return this._getDataIndex(this._selectedIndex)},c.prototype.getSelectedDataIndices=function(){var i,n=this._selectedRows,t=[];if(n)for(i in n)t[t.length]=n[i];return t},c.prototype.ensureDataIndexExpanded=function(n){for(var t=this._getRowIndex(n);t<0||n>0&&t===0;)this.expandNode(this._getDataIndex(-t)),t=this._getRowIndex(n);return t},c.prototype.setSelectedDataIndex=function(n,t){var i=t?this.ensureDataIndexExpanded(n):this._getRowIndex(n);this.setSelectedRowIndex(i)},c.prototype.focus=function(n){var t=this,i=function(){var r,n,i;if(document.activeElement!==t._canvas)try{t._selectedIndex>-1&&(r=t._getDataIndex(t._selectedIndex),n=t._rows[r],n&&(i=n.row,i&&i.focus()))}catch(u){}};n?window.setTimeout(function(){i()},n):i()},c.prototype._clearSelection=function(){this._selectionCount=0;this._selectedRows=null},c.prototype._addSelection=function(n,t,i,r){var f=i&&i.keepSelectionStart,e=i&&i.doNotFireEvent,o=i&&i.toggle,u;this._options.allowMultiSelect===!1&&(f=!1,this._clearSelection());this._selectedRows||(this._selectedRows={});n>=0?(u=!0,this._selectedRows.hasOwnProperty(n)?o&&(u=!1,this._selectionCount=Math.max(0,this._selectionCount-1),delete this._selectedRows[n]):this._selectionCount++,typeof t!="number"&&(t=this._getDataIndex(n)),u&&(this._selectedRows[n]=t),this._selectedIndex=n,this._updateAriaAttribute(),(this._selectionStart<0||!f)&&(this._selectionStart=n)):(t=-1,this._selectedIndex=-1);e||(this._updateSelectionStyles(),this._selectionChanged(),r&&this.focus(),this._selectedIndexChanged(this._selectedIndex,t))},c.prototype._addSelectionRange=function(n,t,i){var h=i&&i.doNotFireEvent,o=-1,f,u,s,r,e;if(this._options.allowMultiSelect===!1)this._addSelection(n,t);else{for(this._selectedRows&&(o=this._selectedRows[this._selectedIndex]),this._selectionStart<0&&(this._selectionStart=n),u=Math.min(this._selectionStart,n),s=Math.max(this._selectionStart,n),(typeof t!="number"||u!==n)&&(t=this._getDataIndex(u)),r=u;r<=s;r++)this._addSelection(r,t,{keepSelectionStart:!0,doNotFireEvent:!0}),r===n&&(f=t),e=this._getExpandState(t),e<0?t+=1-e:t++;this._selectedIndex=n;this._updateAriaAttribute();h||(this._updateSelectionStyles(),this._selectionChanged(),o!==f&&this._selectedIndexChanged(this._selectedIndex,f))}},c.prototype._updateAriaAttribute=function(){var i,n,t;this._active&&(i=this._getDataIndex(this._selectedIndex),i>=0&&(n=this.getRowInfo(i),n&&n.row&&(t=n.row.getAttribute("id"),t!==this._activeAriaId&&(this._canvas.setAttribute("aria-activedescendant",t),this._activeAriaId=t))))},c.prototype._updateSelectionStyles=function(){var n=this;this._delayedUpdateCookie&&window.clearTimeout(this._delayedUpdateCookie);this._delayedUpdateCookie=window.setTimeout(function(){var t,u=n._selectedRows,f=n._selectedIndex,i=n._rows,r;for(t in i)r=i[t],n._updateRowSelectionStyle(r,u,f)},10)},c.prototype._selectionChanged=function(){this.selectionChanged(this._selectedIndex,this._selectionCount,this._selectedRows);this.fireCustomEvent(this._element,"selectionchanged",[{selectedIndex:this._selectedIndex,selectedCount:this._selectionCount,selectedRows:this._selectedRows}])},c.prototype.selectionChanged=function(){},c.prototype._selectedIndexChanged=function(n,t){this.selectedIndexChanged(n,t);this.fireCustomEvent(this._element,c.EVENT_SELECTED_INDEX_CHANGED,[n,t])},c.prototype.selectedIndexChanged=function(){},c.prototype._updateRowSelectionStyle=function(n,t,i){var f=n.rowIndex,u=n.row,r=n.gutterRow;u.classList.remove("grid-row-selected");u.classList.remove("grid-row-selected-blur");u.classList.remove("grid-row-current");u.setAttribute("tabindex","-1");r&&(r.classList.remove("grid-gutter-row-selected"),r.classList.remove("grid-gutter-row-selected-blur"),r.classList.remove("grid-gutter-row-current"),r.querySelector("input.checkbox").setAttribute("checked",String(!1)));t&&t.hasOwnProperty(f)&&(r&&r.querySelector("input.checkbox").setAttribute("checked",String(!0)),this._active?(u.classList.add("grid-row-selected"),u.setAttribute("tabindex","1"),r&&r.classList.add("grid-gutter-row-selected")):(u.classList.add("grid-row-selected-blur"),u.setAttribute("tabindex","1"),r&&r.classList.add("grid-gutter-row-selected-blur")));f===i&&(u.classList.add("grid-row-current"),r&&r.classList.add("grid-gutter-row-current"))},c.prototype._notifyForPrerender=function(){if(this._options.prerenderCallback){var n=this.getViewPortRanges();this._options.prerenderCallback(n.start,n.end)}},c.prototype.measureColumnSize=function(n){for(var t,r=this._canvas.clientWidth-(this.isVerticalScrollbarVisible?0:17),i=0;i0){if(n)for(i=0;is?t:s);r=this._columns[u];h=this._columns[u+1];r.hasGlyph&&(t+=c.GLYPH_WIDTH);var f=r.width-(t+3),v=r.width-f,e=h.width+f;v>=i.MIN_RESIZE_WIDTH&&e>=i.MIN_RESIZE_WIDTH?(r.width-=f,h.width+=f,window.setImmediate(function(){y.layout(!0)})):e=i.MIN_RESIZE_WIDTH&&s>=i.MIN_RESIZE_WIDTH&&(e.style.left=e.offsetLeft+f+"px",u=n.clientX,t.width+=f,r.width-=f)}},s=function(){var n=document.querySelector(".grid-row-splitter.active");n&&(n.classList.remove("active"),window.setImmediate(function(){h.layout(!0)}));document.removeEventListener("mousemove",o);document.removeEventListener("mouseup",s)},e;n.button===0&&(e=n.target,f=parseInt(e.getAttribute("grid-splitter-index"),10),t=this._columns[f],r=this._columns[f+1],t.fixed||r.fixed||(e.classList.add("active"),u=n.clientX,document.addEventListener("mousemove",o),document.addEventListener("mouseup",s)))},c.prototype._moveSizingElement=function(n){var r=this._measurements.gutterWidth,t,i;if(!this._sizingElement){if(n<0)return;this._sizingElement=this.createElementWithClass("div","grid-column-sizing");this._canvas.appendChild(this._sizingElement)}if(this._sizingElement.style.height=this._canvas.clientHeight-1+"px",this._sizingElement.style.top=this._scrollTop+"px",n<0)this._sizingElement.style.left="-5000px",this._sizingElement.style.top="-5000px",this._sizingElement.style.height="0px";else{for(t=0;t<=n;)i=this._columns[t++],i.hidden||(r+=i.width);this._sizingElement.style.left=r-1+"px"}},c.prototype._getVisibleColumnIndex=function(n){var t=0,i=0,r=this._columns.length;if(this._columns[n].hidden)return-1;while(t0){for(this._clearSelection(),v=0,r=0;r=0&&(y=this._getRowIndex(u),this._addSelection(y,u),v+=y);this._scrollTop+=(v-h)/this._selectionCount*this._measurements.rowHeight}},c.prototype._onCanvasScroll=function(){var n=this._canvas;return this._resetScroll=!0,this._scrollLeft=n.scrollLeft,this._scrollTop=n.scrollTop,this._ignoreScroll||(this._notifyForPrerender(),this._redraw(),this._scrollRenderComplete&&(this._scrollRenderComplete(),this._scrollRenderComplete=null)),!1},c.prototype.getRowInfoFromEvent=function(n,t){var i=this.findClosestElement(n.target,t);return this._rowInfoMap[i.id]},c.prototype._getClickedCell=function(n){return this.findClosestElement(n.target,".grid-cell")},c.prototype._isCellEditing=function(n){return n.querySelectorAll(".grid-edit-box").length===1},c.prototype.createEditBox=function(n,i,r){if(this._options.isGridEnabled){typeof this._options.preEditCellCallback!="undefined"&&this._options.preEditCellCallback(n,i);var f,u=this.getColumns()[i];u.getEditBox&&(f=u.getEditBox(n,u));this._editBoxControl=new t.GridCellEditControl(n,i,r,this,this._options,f);r.innerHTML="";r.appendChild(this._editBoxControl.inputElement);try{this._editBoxControl.inputElement.select();this._editBoxControl.inputElement.focus()}catch(e){}}},c.prototype.onEditCell=function(n){var e=n.target,t,r,i;if(!e.classList.contains("grid-tree-icon")){if(t=this._getClickedCell(n),this._isCellEditing(t))return;if(t&&t.classList.contains("grid-cell-editable")&&(r=this.getRowInfoFromEvent(n,".grid-row"),r)){var u=r.row.children,o=u.length,f=-1;for(i=0;i0&&(r={lo:0,hi:this._expandedCount-1}),this._selectedIndex<0&&this._addSelection(r.lo),this._options.keyboardEventHandler&&this._options.keyboardEventHandler.keys.indexOf(t.key)!==-1&&(h=this._options.keyboardEventHandler.handler(t,this._dataSource,this._getDataIndex(this._selectedIndex)),h))return t.preventDefault(),!1;switch(t.keyCode){case 40:this._clearSelection();this._addSelection(Math.min(this._selectedIndex+1,r.hi),null,null,!0);break;case 38:this._clearSelection();this._addSelection(Math.max(this._selectedIndex-1,r.lo),null,null,!0);break;case 34:this._clearSelection();i=this._getVisibleRowIndices();this._selectedIndexi.first?this._addSelection(i.first,null,null,!0):(e=i.last-i.first+1,this._addSelection(Math.max(this._selectedIndex-e,r.lo),null,null,!0));break;case 39:this.tryToggle(!0,t.shiftKey);break;case 37:if(!this.tryToggle(!1,t.shiftKey))for(s=this._getDataIndex(this._selectedIndex),u=s-1;u>=0;){if(s-u<=Math.abs(this._expandStates[u])){this._selectRow(this._getRowIndex(u),null,null,!0);break}u--}break;case 36:this._clearSelection();this._addSelection(r.lo,null,null,!0);break;case 35:this._clearSelection();this._addSelection(r.hi,null,null,!0);break;case 113:f=this.getRowInfo(this._getDataIndex(this._selectedIndex));f&&(o=this._getFirstEditableCellIndex(f.row.children),o>=0&&this.createEditBox(f.dataIndex,o,f.row.children[o]));break;default:return!0}return this.getSelectedRowIntoView(),t.preventDefault(),!1},c.prototype._getFirstEditableCellIndex=function(n){for(var t=0;t0?this.collapseNode(n.dataIndex):t<0&&this.expandNode(n.dataIndex),this._clearSelection(),this._addSelection(Math.min(n.rowIndex,this._expandedCount-1),n.dataIndex,null,!0),this._layoutContentSpacer(),this._redraw(),this._notifyForPrerender())}},c.prototype.getExpandStates=function(){return this._expandStates},c.TYPE_NAME="GridControl",c.MAX_CELL_CONTENT_SIZE=1e3,c.MAX_COPY_SIZE=1e3,c.PAYLOAD_SIZE=200,c.EVENT_SELECTED_INDEX_CHANGED="selectedIndexChanged",c.INDENT_WIDTH=12,c.GLYPH_WIDTH=10,c.DEFAULT_TOOLTIP_HEIGHT=65,c}(n.Controls.Legacy.Control);t.GridControl=v})(t=n.Grid||(n.Grid={}))}(Common||(Common={}));
//! Copyright (C) Microsoft. All rights reserved.
(function(n){var t;(function(t){"use strict";var i=function(){function t(n,t,i,r,u,f){this._dataIndex=n;this._columnIndex=t;this._ignoreCommitCallback=!1;this._gridControl=r;this._options=u;this._editElement=i;this._textValue=i.hasAttribute("grid-edit-value")?i.getAttribute("grid-edit-value"):i.innerText;this._cachedInnerHTML=i.innerHTML;this._inputElement=f||document.createElement("input");this._inputElement.value=this._textValue;this._inputElement.classList.add("grid-edit-box");this._keyboardHandler=this.keyboardHandler.bind(this);this._inputElement.addEventListener("keydown",this._keyboardHandler);this._focusHandler=this.focusHandler.bind(this);this._inputElement.addEventListener("focusout",this._focusHandler)}return Object.defineProperty(t.prototype,"inputElement",{get:function(){return this._inputElement},enumerable:!0,configurable:!0}),t.prototype.dismiss=function(){this._editElement.innerHTML=this._cachedInnerHTML;this._editElement.focus();this.notifyPostEdit()},t.prototype.notifyPostEdit=function(){this._inputElement.removeEventListener("keydown",this._keyboardHandler);this._inputElement.removeEventListener("focusout",this._focusHandler);typeof this._options.postEditCellCallback!="undefined"&&this._options.postEditCellCallback(this._dataIndex,this._columnIndex)},t.prototype.keyboardHandler=function(t){var e=this._gridControl.getRowInfo(this._dataIndex),f=this._gridControl.getColumns(),u,i,r;if(t.keyCode===13)return this.commitValue(t),t.stopPropagation(),!1;if(t.keyCode===27)return this.dismiss(),t.stopPropagation(),t.preventDefault(),!1;if(t.keyCode===9){if(this._options.commitOnTab)this.commitValue(t);else if(e){if(u=e.row.children,this._ignoreCommitCallback=!0,this._editElement.innerHTML=this._cachedInnerHTML,this.notifyPostEdit(),i=this._columnIndex,t.shiftKey){while(i>0)if(i--,r=u[i],r.classList.contains("grid-cell-editable")){this._gridControl.createEditBox(this._dataIndex,i,r);break}}else{while(i0&&i===f.length-1&&u[0].parentElement.focus()}return t.stopPropagation(),!1}}else return t.keyCode===38||t.keyCode===40||t.keyCode===33||t.keyCode===34?!0:(t.stopPropagation(),n.preventIEKeys(t))},t.prototype.focusHandler=function(n){this.commitValue(n)},t.prototype.commitValue=function(n){var t=this._inputElement.value;return this._editElement.innerText=this._ignoreCommitCallback?this._textValue:t,this._options.commitEditCellCallback&&!this._ignoreCommitCallback&&this._options.commitEditCellCallback(t,this._dataIndex,this._columnIndex),this.notifyPostEdit(),n.stopPropagation(),n.preventDefault(),!1},t}();t.GridCellEditControl=i})(t=n.Grid||(n.Grid={}))})(Common||(Common={}));
//! Copyright (C) Microsoft. All rights reserved.
(function(n){"use strict";var t=Microsoft.Plugin,s,r,u,i,f,e,o,h;(function(n){n[n.IeOnly=0]="IeOnly";n[n.VsOnly=1]="VsOnly";n[n.All=2]="All"})(n.TelemetryEventHost||(n.TelemetryEventHost={}));s=n.TelemetryEventHost,function(n){n[n.Ui=0]="Ui";n[n.KeyboardShortcut=1]="KeyboardShortcut";n[n.ContextMenu=2]="ContextMenu";n[n.Internal=3]="Internal";n[n.Test=4]="Test";n[n.NotSpecified=5]="NotSpecified"}(n.TriggerType||(n.TriggerType={}));r=n.TriggerType;u=function(){function n(){}return n.CONSOLE="Console",n.DEBUGGER="Debugger",n.DOM_EXPLORER="DomExplorer",n.EMULATION="Emulation",n.EXPERIMENTS="Experiments",n.MEMORY="Memory",n.NETWORK="Network",n.PROFILER="Profiler",n.VISUAL_PROFILER="VisualProfiler",n}();n.ToolName=u;i=function(){function n(){}return n.EXECUTE_COMMAND="ExecuteCommand",n.F12_LOAD_END="F12LoadEnd",n.TOOL_LOADED="ToolLoaded",n}();n.TelemetryEventName=i;f=function(){function n(){}return n.prototype.log=function(n,t,i,r){i===void 0&&(i=2);r===void 0&&(r=!0)},n.prototype.logExecuteCommand=function(n,t,i,r){i===void 0&&(i=2);r===void 0&&(r=!0)},n}();n.DoNothingAnalyticsProxy=f;e=function(){function n(n){this._toolName=n;this._selfTestEnabled=t.F12.SelfTest.selfTestEnabled;this._previousCommandName="";this._previousCommandTime=Date.now()}return n.prototype.log=function(n,i,r,u){r===void 0&&(r=2);u===void 0&&(u=!0);r!==1&&(u?t.F12.TelemetryLogger.logAsMeasure(n,i):t.F12.TelemetryLogger.logAsTelemetry(n,i),this._selfTestEnabled&&t.F12.SelfTest.logMessage("Telemetry: "+n+" "+JSON.stringify(i)+" isMeasure: "+u))},n.prototype.logExecuteCommand=function(n,t,u,f){if(u===void 0&&(u=2),f===void 0&&(f=!0),t!==3&&t!==4&&(this._previousCommandName!==n||Date.now()-this._previousCommandTime>1e3)){var e={ToolName:this._toolName,CommandName:n,TriggerType:r[t]};this.log(i.EXECUTE_COMMAND,e,u,f);this._previousCommandName=n;this._previousCommandTime=Date.now()}},n}();n.F12AnalyticsProxy=e;o=function(){function n(n,i){this._proxy=t.Utilities.JSONMarshaler.attachToPublishedObject(n,{},!0);this._toolName=i;this._previousCommandName="";this._previousCommandTime=Date.now()}return n.prototype.log=function(n,t,i,r){i===void 0&&(i=2);r===void 0&&(r=!0);i!==0&&this._proxy._call("reportTelemetryEvent",n,t)},n.prototype.logExecuteCommand=function(n,t,u,f){if(u===void 0&&(u=2),f===void 0&&(f=!0),this._previousCommandName!==n||Date.now()-this._previousCommandTime>1e3){var e={ToolName:this._toolName,CommandName:n,TriggerType:r[t]};this.log(i.EXECUTE_COMMAND,e,u,f);this._previousCommandName=n;this._previousCommandTime=Date.now()}},n}();n.VsAnalyticsProxy=o,function(n){var t=function(){function n(){}return n.FIND_NEXT_OR_PREVIOUS="FindNextOrPrevious",n.DEBUGGER_FIND="DebuggerFind",n.SEARCHBOX_CLEAR="SearchBoxClear",n.UPDATE_SEARCH_NEXT_OR_PREVIOUS="UpdateSearchNextOrPrevious",n}();n.CommandName=t}(h=n.Telemetry||(n.Telemetry={}))})(Common||(Common={}));
//! Copyright (C) Microsoft. All rights reserved.
(function(n){"use strict";(function(n){n[n.Light=0]="Light";n[n.Blue=1]="Blue";n[n.Dark=2]="Dark";n[n.HighContrast=3]="HighContrast";n[n.Unknown=4]="Unknown"})(n.ThemeType||(n.ThemeType={}));var i=n.ThemeType,t=function(){function n(){}return n.getTheme=function(){for(var t,i,r,f=null,e=document.styleSheets,u=0;un.nsec},n.prototype.subtract=function(t){return new n(this._nsec-t.nsec)},n.NANOSECOND_PER_MILLISECOND=1e6,n.NANOSECOND_PER_SECOND=1e9,n.MaxTime=new n(Number.MAX_VALUE),n.OneMillisecond=n.fromMilliseconds(1),n.OneSecond=n.fromSeconds(1),n.Zero=n.fromSeconds(0),n}();n.TimeStamp=t})(Common||(Common={}));
//! Copyright (C) Microsoft. All rights reserved.
(function(n){"use strict";var t=Microsoft.Plugin,i=function(){function i(){}return i.convertFormatString=function(n){for(var t=n,r=0,i;;){if(i="{"+r+"}",t.indexOf(i)===-1)break;while(t.indexOf(i)>=0)t=t.replace(i,"%s");r++}return t},i.getDecimalLocaleString=function(n,r){var u=Math.abs(n).toString(),s=u.split(/e/i),e,f,h;if(u=s[0],e=s.length>1?parseInt(s[1],10):0,s=u.split("."),u=(n<0?"-":"")+s[0],f=s.length>1?s[1]:"",e>0?(f=i.zeroPad(f,e,!1),u+=f.slice(0,e),f=f.substr(e)):e<0&&(e=-e,u=i.zeroPad(u,e+1,!0),f=u.slice(-e,u.length)+f,u=u.slice(0,-e)),h=t.Culture.NumberFormat,h||(h={numberDecimalSeparator:".",numberGroupSizes:[3],numberGroupSeparator:","}),f.length>0&&(f=h.numberDecimalSeparator+f),r){for(var a=h.numberGroupSizes,v=h.numberGroupSeparator,c=a[0],y=1,o=u.length-1,l="";o>=0;){if(c===0||c>o)return l.length>0?u.slice(0,o+1)+v+l+f:u.slice(0,o+1)+f;l=l.length>0?u.slice(o-c+1,o+1)+v+l:u.slice(o-c+1,o+1);o-=c;yi.BYTE_PER_GIGABYTE?(r=n/i.BYTE_PER_GIGABYTE,u=t.Resources.getString("/Common/GigabyteUnits")):Math.abs(n)>i.BYTE_PER_MEGABYTE?(r=n/i.BYTE_PER_MEGABYTE,u=t.Resources.getString("/Common/MegabyteUnits")):Math.abs(n)>i.BYTE_PER_KILLOBYTE?(r=n/i.BYTE_PER_KILLOBYTE,u=t.Resources.getString("/Common/KilobyteUnits")):(r=n,u=t.Resources.getString("/Common/ByteUnits")),i.getDecimalLocaleString(parseFloat(r.toFixed(2)),!0)+" "+u},i.getPrettyPrintTime=function(r,u){var o,f,e,s;return r.nsec===0?(f=0,e=t.Resources.getString("SecondsAbbreviation")):r.lessThan(n.TimeStamp.OneMillisecond)?(f=parseFloat(r.msec.toPrecision(2)),e=t.Resources.getString("MillisecondsAbbreviation")):r.lessThan(n.TimeStamp.OneSecond)?(f=u&&u.roundMillisecondValue?Math.round(r.msec):Math.floor(r.msec*100)/100,e=t.Resources.getString("MillisecondsAbbreviation")):u&&u.showTimeOnly?(s=new Date(r.msec),o=s.toLocaleTimeString()):(f=Math.floor(r.sec*100)/100,e=t.Resources.getString("SecondsAbbreviation")),o||(o=i.getDecimalLocaleString(f,!0)+" "+e),o},i.stripNewLine=function(n){return n.replace(/[\r?\n]/g,"")},i.fileLineColumnFormat=function(n,t,i){return n+" ("+t+","+i+")"},i.fileLineFormat=function(n,t){return n+" ("+t+")"},i.zeroPad=function(n,t,i){for(var r=[],u=n.length;u=1?(this._data+=t.data||"",this._packetCount++,this._packetCount===t.n?(i=this._data,this._packetCount=0,this._data="",n.data=i,n.handled=!1):n.handled=!0):n.handled=!0},n.MAX_MESSAGE_LENGTH=32768,n}(),i;n.MessageThrottle=t;i=function(n){function i(t){n.call(this);this._messageHandlers=[];this._port=t}return __extends(i,n),Object.defineProperty(i.prototype,"name",{get:function(){return this._port.name},enumerable:!0,configurable:!0}),i.prototype.initialize=function(){this._port.addEventListener("message",this.onmessage.bind(this))},i.prototype.postMessage=function(n){for(var r=t.splitMessage(n),f,i=0,u=r.length;i0&&(e=f.toLowerCase()==="true"&&t.F12.isTargetEdge),i[n]=e,e}function e(n,u,f){f===void 0&&(f=!1);i[n]=u;f&&t.F12&&t.F12.setRegEntryForF12("FeatureF12"+r[n],String(u))}var t=Microsoft.Plugin,i=Object.create(null),r;(function(n){n[n.EditOnIdle=0]="EditOnIdle";n[n.ObjectMutationBreakpoint=1]="ObjectMutationBreakpoint"})(n.Feature||(n.Feature={}));r=n.Feature;n.isEditOnIdleEnabled=f;n.isEnabled=u;n.setEnabledState=e})(t=n.FeatureAvailability||(n.FeatureAvailability={}))})(Common||(Common={}));
//! Copyright (C) Microsoft. All rights reserved.
(function(n){var t;(function(t){"use strict";function e(n,t){return n.then(function(n){return u(function(){return t()})().then(function(){return r(n)})},function(n){return u(function(){return t()})().then(function(){return l(n)})})}function s(n,t,i){return e(n.then(undefined,u(t)),i)}function h(){return new i.Promise(function(n){return setImmediate(n)})}function c(n){return new i.Promise(function(t){return setTimeout(t,n)})}function r(n){return new i.Promise(function(t){return setImmediate(t,n)})}function l(n){if(n instanceof Error&&!("stack"in n))try{throw n}catch(t){n=t}return new i.Promise(function(t,i){return setImmediate(i,n)})}function u(n){if(n)return function(t){return r(t).then(n)}}function a(n){return new i.Promise(function(t,i){var u=0,f=function(){if(u0))for(t=this._waiters.splice(0,this._waiters.length),n=0,i=t.length;ni)throw new RangeError;if((i|=0)<1)throw new RangeError;this._currentCount=t;this._initialCount=t;this._maxCount=i}return Object.defineProperty(n.prototype,"isEmpty",{get:function(){return this._currentCount===this._initialCount},enumerable:!0,configurable:!0}),n.prototype.wait=function(){var n=this;return this._currentCount>0?(this._currentCount--,new i.Promise(function(n){setImmediate(n)})):new i.Promise(function(t){n._waiters.push(t)})},n.prototype.release=function(n){if(n===void 0&&(n=1),(n|=0)<1)throw new RangeError;if(this._maxCount-this._currentCount0)if(this._waiters.length>0){var t=this._waiters.shift();setImmediate(t)}else this._currentCount++},n.MAX_INT32=Math.pow(2,31)-1,n}();t.Semaphore=f;t.tryFinally=e;t.tryCatchFinally=s;t.yieldAsync=h;t.sleep=c;t.iterate=a;t.waitForCondition=v})(t=n.Async||(n.Async={}))})(Common||(Common={}));
//! Copyright (C) Microsoft. All rights reserved.
__extends=this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);r.prototype=t.prototype;n.prototype=new r},function(n){"use strict";var t=function(){function t(n){this._uid=0;this._handlers=[];this._processors=[];this._callbacks={};this._pendingMessages=[];this._pendingTimeout=null;this._traceWriter=n}return Object.defineProperty(t.prototype,"engine",{get:function(){return this._engine},enumerable:!0,configurable:!0}),t.prototype.connect=function(n){this._engine=n},t.prototype.post=function(n){for(var i=[n],o,u,f,s,h,e,t=0,r=this._processors.length;t=0&&r=0},n.Enabled=!0,n.Registered=!1,n}();n.NavigationUtilities=i})(Common||(Common={}));
//! Copyright (C) Microsoft. All rights reserved.
(function(n){"use strict";var t=function(){function n(){}return n.addPromiseErrorListener=function(){var t=Microsoft.Plugin;t.Promise.addEventListener("error",function(i){t.F12&&t.F12.SelfTest.selfTestEnabled||!isDebugBuild&&n.ReportedToWatson||i&&i.detail&&i.detail.exception&&(!i.detail.exception.ExceptionType||i.detail.exception.ExceptionType!=="UnexpectedResult")&&(n.reportErrorGivenStack(i.detail.exception),n.ReportedToWatson=!0)})},n.reportErrorGivenStack=function(t){var e=t.message,u,f,i,r;if(!("stack"in t))try{throw t}catch(o){t=o}for(u=t.stack||"",f=u.split("\n"),r=0;r0&&e.removeRange(f)}}}function a(n,t,i){if(n.keyCode===i&&n.ctrlKey&&!n.shiftKey&&!n.altKey){var u=n.target;if(typeof clipboardData!="undefined")return f(clipboardData,t,i,u);if(u)return r(u,i),event.preventDefault(),event.stopPropagation(),!1}return!0}function v(n,t,r){return typeof n.clipboardData!="undefined"?f(n.clipboardData,t,r,i):!0}function f(n,i,r,u){var f=!0,e,o;return r===t.Paste?(e=n.getData("text"),e&&(f=i(e,u))):(o=i(u),o&&(n.setData("text",o),f=!1)),f||(event.preventDefault(),event.stopPropagation()),f}function y(){var n=document.getElementById("clipboardDiv");return n||(n=document.createElement("div"),n.id="clipboardDiv",n.contentEditable="true",document.body.appendChild(n)),n}var t,i;(function(n){n[n.Cut=88]="Cut";n[n.Copy=67]="Copy";n[n.Paste=86]="Paste"})(t||(t={}));n.addPasteListener=e;n.addCutListener=o;n.addCopyListener=s;n.firePasteEvent=h;n.fireCutEvent=c;n.fireCopyEvent=l})(t=n.ClipboardHelper||(n.ClipboardHelper={}))})(Common||(Common={}));
//! Copyright (C) Microsoft. All rights reserved.
(function(n){"use strict";var t=Microsoft.Plugin,i=function(){function n(){}return n.changeButtonStatus=function(t,i,r){var u=n.isEnabled(t);i&&!u?(t.classList.remove("toolbarButtonStateDisabled"),t.setAttribute("aria-disabled","false")):!i&&u&&(t.classList.add("toolbarButtonStateDisabled"),t.setAttribute("aria-disabled","true"));typeof r=="boolean"&&(n.IsChangingAriaPressed=!0,r?(t.setAttribute("aria-pressed","true"),t.classList.add("toolbarButtonStateActive")):(t.setAttribute("aria-pressed","false"),t.classList.remove("toolbarButtonStateActive")),n.IsChangingAriaPressed=!1)},n.isEnabled=function(n){return!n.classList.contains("toolbarButtonStateDisabled")},n.isValidEvent=function(t){return(t.type==="click"||t.keyCode===13||t.keyCode===32)&&n.isEnabled(t.currentTarget)},n.setButtonTooltip=function(n,i,r){r===void 0&&(r=!0);var u=r?t.Resources.getString(i):i;n.setAttribute("data-plugin-vs-tooltip",u);n.setAttribute("aria-label",u)},n.setupButton=function(t,i,r,u,f){u===void 0&&(u=!0);f===void 0&&(f=!0);typeof i=="string"&&(n.setButtonTooltip(t,i,f),t.setAttribute("role","button"));r&&(t.addEventListener("click",function(t){return n.onButtonPress(t,r)}),t.addEventListener("keydown",function(t){return n.onButtonPress(t,r)}),t.addEventListener("DOMAttrModified",function(i){!n.IsChangingAriaPressed&&n.isEnabled(t)&&i.attrName==="aria-pressed"&&i.attrChange===i.MODIFICATION&&r(i)}));t.addEventListener("mousedown",n.onButtonMouseDown);t.addEventListener("mouseenter",n.onButtonMouseEnter);t.addEventListener("mouseleave",n.onButtonMouseLeave);t.addEventListener("mouseup",n.onButtonMouseUp);u||n.changeButtonStatus(t,!1)},n.onButtonMouseDown=function(t){var i=t.currentTarget;n.isEnabled(i)?i.classList.add("toolbarButtonMouseDown"):t.stopImmediatePropagation()},n.onButtonMouseEnter=function(t){var i=t.currentTarget;n.isEnabled(i)?i.classList.add("toolbarButtonMouseHover"):(t.preventDefault(),t.stopImmediatePropagation())},n.onButtonMouseLeave=function(n){var t=n.currentTarget;t.classList.remove("toolbarButtonMouseHover");t.classList.remove("toolbarButtonMouseDown")},n.onButtonMouseUp=function(n){var t=n.currentTarget;t.classList.remove("toolbarButtonMouseDown")},n.onButtonPress=function(t,i){n.isValidEvent(t)&&(i(t),t.preventDefault(),t.stopImmediatePropagation())},n}();n.ButtonHelpers=i})(Common||(Common={}));
//! Copyright (C) Microsoft. All rights reserved.
(function(n){"use strict";var t=function(){function t(){}return t.escapeRegExp=function(n){return String.prototype.replace.call(n,t.ESCAPE_USER_INPUT_REGEX,"\\$&")},t.escapeRegExpWithWildCard=function(n){return String.prototype.replace.call(n,t.ESCAPE_USER_INPUT_REGEX,function(n){return n==="*"?".*":"\\"+n})},t.wrapInQuotes=function(n){return'"'+String.prototype.replace.call(n,/\\"/g,'"')+'"'},t.unescapeHtml=function(n){if(typeof n!="string"){if(n===null||n===undefined)return"";n=""+n}return String.prototype.replace.call(String.prototype.replace.call(String.prototype.replace.call(String.prototype.replace.call(String.prototype.replace.call(n,/>/g,">"),/</g,"<"),/'/g,"'"),/"/g,'"'),/&/g,"&")},t.escapeHtmlAndPreserveWhitespace=function(t){var f=[t],r,u,i;if(t=t.replace(/(\r\n|\n\r|\r|\n)/g,"\r\n"),r=t.split("\r\n"),r.length>0)for(f=[],u=0;u"+i+"<\/pre>",f.push(i);return f},t.escapeHtml=function(n){if(typeof n!="string"){if(n===null||n===undefined)return"";n=""+n}return String.prototype.replace.call(String.prototype.replace.call(String.prototype.replace.call(String.prototype.replace.call(String.prototype.replace.call(n,/&/g,"&"),/"/g,"""),/'/g,"'"),//g,">")},t.replaceSpacesWithNonBreakingSpaceEntities=function(n){return String.prototype.replace.call(n,/ /g," ")},t.replaceLineBreaksWithNonBreakingSpaceEntities=function(n){return String.prototype.replace.call(n,/[\r\n]/g," ")},t.ESCAPE_USER_INPUT_REGEX=/([.+?^=!:${}()|\[\]\/\\])|(\*)/g,t}();n.EncodingUtilities=t})(Common||(Common={}));
//! Copyright (C) Microsoft. All rights reserved.
(function(n){"use strict";(function(n){n[n.Pass=0]="Pass";n[n.Fail=1]="Fail";n[n.Timeout=2]="Timeout"})(n.SelfTestResult||(n.SelfTestResult={}));var i=n.SelfTestResult,t=function(){function n(n,t,i){this.status=n;this.result=t;this.message=i;this.name="SelfTestError"}return n}();n.SelfTestError=t})(Common||(Common={}));
//! Copyright (C) Microsoft. All rights reserved.
(function(n){"use strict";var r,t,u,i;(function(n){n[n.RelativeOrAbsolute=0]="RelativeOrAbsolute";n[n.Absolute=1]="Absolute";n[n.Relative=2]="Relative"})(n.UriKind||(n.UriKind={}));r=n.UriKind,function(n){n[n.Scheme=1]="Scheme";n[n.Userinfo=2]="Userinfo";n[n.Hostname=4]="Hostname";n[n.Port=8]="Port";n[n.Directory=16]="Directory";n[n.FilenameWithoutExtension=32]="FilenameWithoutExtension";n[n.Extension=64]="Extension";n[n.Filename=n.FilenameWithoutExtension|n.Extension]="Filename";n[n.Pathname=n.Directory|n.Filename]="Pathname";n[n.Search=128]="Search";n[n.Hash=256]="Hash";n[n.StrongPort=512]="StrongPort";n[n.KeepDelimiter=1024]="KeepDelimiter";n[n.AbsoluteUri=n.Scheme|n.Userinfo|n.Hostname|n.Port|n.Pathname|n.Search|n.Hash]="AbsoluteUri";n[n.HostnameAndPort=n.Hostname|n.StrongPort]="HostnameAndPort";n[n.StrongAuthority=n.Userinfo|n.Hostname|n.StrongPort]="StrongAuthority";n[n.Origin=n.Scheme|n.Hostname|n.Port]="Origin";n[n.PathnameAndSearch=n.Pathname|n.Search]="PathnameAndSearch"}(n.UriComponents||(n.UriComponents={}));t=n.UriComponents,function(n){n[n.UriEscaped=1]="UriEscaped";n[n.Unescaped=2]="Unescaped";n[n.SafeUnescaped=3]="SafeUnescaped"}(n.UriFormat||(n.UriFormat={}));u=n.UriFormat;i=function(){function i(){for(var f,r,e,u,n=[],t=0;t=2&&n[0]instanceof i){if(f=n[0],n[1]instanceof i)r=n[1];else if(n[1]!==null&&n[1]!==undefined)r=new i(String(n[1]),0);else throw new TypeError("Missing required argument: uri.");i.mergeCore(f,r,this)}else if(n.length>=1&&n[0]!==null&&n[0]!==undefined){if(e=String(n[0]),u=1,n.length>=2)if(typeof n[1]=="number")u=n[1];else throw new TypeError("Invalid argument: kind.");i.parseCore(e,u,this)}else throw new TypeError("Argument not optional.")}return Object.defineProperty(i.prototype,"isRooted",{get:function(){return this.isAbsolute||/^\//.test(this.pathname)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"isAbsolute",{get:function(){return this._scheme===i.UriSchemeFile&&typeof this._pathname=="string"&&/^[\\/]?\.{1,2}([\\/]|$)/.test(this._pathname)?!1:!!this._scheme},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"isFile",{get:function(){return this._scheme===i.UriSchemeFile},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"isUnc",{get:function(){return this.isFile&&!!(this._components&4)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"isDosPath",{get:function(){return this.isFile&&!this._hostname&&/^\/?[a-z][:|]/i.test(this._pathname)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"hasDefaultPort",{get:function(){return this.isAbsolute&&(typeof this._port!="number"||this._scheme===i.UriSchemeHttp&&this._port===80||this._scheme===i.UriSchemeHttps&&this._port===443)?!0:!1},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"raw",{get:function(){return this._raw},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"origin",{get:function(){return this.getComponentsCore(t.Origin,1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"authority",{get:function(){return this.getComponentsCore(t.HostnameAndPort,1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"protocol",{get:function(){return this.getComponentsCore(1025,1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"scheme",{get:function(){return this.getComponentsCore(1,1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"userinfo",{get:function(){return this.getComponentsCore(2,1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"host",{get:function(){return this.getComponentsCore(t.HostnameAndPort,1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"hostname",{get:function(){return this.getComponentsCore(4,1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pathname",{get:function(){return this.getComponentsCore(t.Pathname,1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pathnameAndSearch",{get:function(){return this.getComponentsCore(t.PathnameAndSearch,1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"search",{get:function(){return this.getComponentsCore(1152,1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"hash",{get:function(){return this.getComponentsCore(1280,1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"port",{get:function(){return typeof this._port=="number"?this._port:this._scheme===i.UriSchemeHttp?i.DEFAULT_PORT_HTTP:this._scheme===i.UriSchemeHttps?i.DEFAULT_PORT_HTTPS:undefined},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"absoluteUri",{get:function(){return this.getComponentsCore(t.AbsoluteUri,1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"absolutePath",{get:function(){var n=this.getComponentsCore(t.Pathname|1024,1);return this.isDosPath&&(n=n.substr(1)),n},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"localPath",{get:function(){if(this.isUnc||this.isDosPath){var n=this.getComponentsCore(t.Pathname|1024,1);if(n=n.replace(i.PATH_DELIMITER,i.DOS_PATH_DELIMITER),this.isUnc)return i.UNC_ROOT+this.hostname+n;if(this.isDosPath)return n.substr(1)}return""},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"segments",{get:function(){var n=this.getComponentsCore(t.Pathname|1024,1);return n.length>1?(n=n.substr(1),n.split(i.PATH_DELIMITER)):[]},enumerable:!0,configurable:!0}),i.parse=function(n,t){return t===void 0&&(t=1),new i(n,t)},i.tryParse=function(n,t){if(t===void 0&&(t=1),n===null||n===undefined)throw new TypeError("Missing required argument: text.");return i.parseCore(n,t,undefined)},i.tryMerge=function(n,t){if(n===null||n===undefined)throw new TypeError("Missing required argument: baseUri.");if(t===null||t===undefined)throw new TypeError("Missing required argument: uri.");return i.mergeCore(n,t,undefined)},i.create=function(r){var s,l,a,h,v,e,o,c,f,y,u,p;if(r||(r={}),c=!1,f=0,typeof r.keepDelimiter=="boolean"&&(c=r.keepDelimiter),typeof r.scheme=="string"&&(s=n.ToolWindowHelpers.tryDecodeURIComponent(r.scheme.toLowerCase()),f|=1,(s===i.UriSchemeHttp||s===i.UriSchemeHttps)&&(f|=512)),typeof r.userinfo=="string"&&(l=r.userinfo.toLowerCase(),f|=2),typeof r.hostname=="string"&&(a=r.hostname.toLowerCase(),f|=4),typeof r.port=="number"){if(r instanceof i)y=r,h=y._port;else{if(r.port<0)throw new RangeError("Invalid port.");h=r.port}typeof h=="number"&&(f|=520)}return r.pathname&&(v=r.pathname,f|=t.Pathname),r.search&&(e=r.search,!c&&e.length>0&&e.charAt(0)===i.SEARCH_DELIMITER&&(e=e.substr(1)),f|=128),r.hash&&(o=r.hash,!c&&o.length>0&&o.charAt(0)===i.HASH_DELIMITER&&(o=o.substr(1)),f|=256),u=Object.create(i.prototype),u._scheme=s,u._userinfo=l,u._hostname=a,u._port=h,u._pathname=v,u._search=e,u._hash=o,u._components=f,u=new i(u.toString()),typeof r.uri=="string"&&(p=new i(r.uri),u=new i(p,u)),u},i.equals=function(n,t,r){if(r===void 0&&(r=!1),n===t)return!0;if(n===null)return t===null;if(t===null)return!1;if(n===undefined)return t===undefined;if(t===undefined)return!1;var u,f;return u=typeof n=="string"?new i(n,0):n,f=typeof t=="string"?new i(t,0):t,i.stringEquals(u.toString(),f.toString(),r)?!0:u._scheme===f._scheme&&u._userinfo===f._userinfo&&u._hostname===f._hostname&&u.port===f.port&&i.stringEquals(u._pathname,f._pathname,r)&&i.stringEquals(u._search,f._search,r)&&i.stringEquals(u._hash,f._hash,r)?!0:!1},i.compare=function(n,r,u,f,e){if(u===void 0&&(u=t.AbsoluteUri),f===void 0&&(f=1),e===void 0&&(e=!1),typeof u!="number")throw new TypeError("Invalid argument: partsToCompare.");if(typeof f!="number")throw new TypeError("Invalid argument: compareFormat.");if((f&-4)!=0)throw new RangeError("Argument out of range: compareFormat.");return n===r?0:n===null||n===undefined?r===null||r===undefined?0:-1:r===null||r===undefined?1:n.isAbsolute&&r.isAbsolute?i.compareStrings(n.getComponentsCore(u,f),r.getComponentsCore(u,f),e):n.isAbsolute?1:r.isAbsolute?-1:i.compareStrings(n.raw,r.raw,e)},i.getCurrent=function(){return typeof self!="undefined"?new i(self.location.href):new i(".")},i.prototype.getComponents=function(n,t){if(typeof n!="number"||typeof t!="number")throw new TypeError("Invalid argument: components.");if(typeof t!="number")throw new TypeError("Invalid argument: format.");if((t&-4)!=0)throw new RangeError("Argument out of range: format.");return n=i.adjustComponents(n),this.getComponentsCore(n,t)},i.prototype.toString=function(){return this.getComponentsCore(t.AbsoluteUri,3)},i.prototype.toJSON=function(){return this.toString()},i.prototype.isSameOrigin=function(n){if(n===null||n===undefined)throw new TypeError("Missing required argument: uri.");var r=n instanceof i?n:new i(String(n));return this.isAbsolute?this.getComponentsCore(t.Origin,1)===r.getComponentsCore(t.Origin,1):!r.isAbsolute},i.prototype.isBaseOf=function(n){var r;if(n===null||n===undefined)throw new TypeError("Missing required argument: uri.");var e=this.getComponentsCore(t.AbsoluteUri&-257,3),o=this.getComponentsCore(t.AbsoluteUri&-257,3),u=e.split(i.PATH_DELIMITER),f=o.split(i.PATH_DELIMITER);if(u.length>f.length)return!1;for(r=0;rt?1:nt?1:0},i.formatUserinfo=function(t,r){switch(r){case 1:t=i.escape(t,"?#","%");break;case 2:t=n.ToolWindowHelpers.tryDecodeURIComponent(t);break;case 3:t=i.unescape(t,"@/\\","safe")}return t},i.formatPath=function(t,r){switch(r){case 1:t=i.escape(t,"?#","%");break;case 2:t=n.ToolWindowHelpers.tryDecodeURIComponent(t);break;case 3:t=i.unescape(t,"?#","safe")}return t},i.formatSearch=function(n,t){switch(t){case 1:n=i.escape(n,"#","%");break;case 2:n=i.unescape(n,"#","all");break;case 3:n=i.unescape(n,"#","safe")}return n},i.formatHash=function(n,t){switch(t){case 1:n=i.escape(n,"","%");break;case 2:n=i.unescape(n,"#","all");break;case 3:n=i.unescape(n,"#","safe")}return n},i.escape=function(t,i,r){var u,s,h;if(!t)return t;var f=[],o=0,e="";for(u=0;u-1?e="forced":r.indexOf(s)>-1&&(e="reserved"),e!==""){if(o-1?u+=2:/^[;/?:@&=+$#%\\\x00-\x17]$/.test(f)?u+=2:(s(),a(f,o))}}else if(r==="all")continue;else i.indexOf(f)>-1&&(s(),v(f));return s(),c.join("")},i.parseCore=function(n,r,u){var o,l,e,a,p,f,w,v,y,h=0,b=n,s,c;if(n=n.trim(),f=n,r!==2){if(i.DosPath.test(n)&&(n="file:///"+n),s=i.UriParser.exec(n),s)o=s[i.SCHEME_INDEX],l=s[i.USERINFO_INDEX],e=s[i.HOSTNAME_INDEX],a=s[i.PORT_INDEX],f=s[i.PATHNAME_INDEX],w=!!s[i.SCHEMESEGMENT_INDEX],v=s[i.SEARCH_INDEX],y=s[i.HASH_INDEX],r=1;else{if(r===1){if(u)throw new URIError;return}r=2}if(!o&&w){if(u)throw new URIError;return}(o||e)&&f&&(f=f.replace(/\\/g,i.PATH_DELIMITER));o&&o.toLowerCase()===i.UriSchemeFile&&(/^\.{1,2}$/.test(e)&&/^([\\/]|$)/.test(f)||/^[a-z]$/i.test(e)&&/^:[\\/]/.test(f)?(f=e+f,e=undefined):e||(/^[\\/]\.{1,2}/.test(f)?f=f.substr(1):/^[\\/]{2,}/.test(f)&&(f=f.replace(/^[\\/]{2,}/,""),c=f.indexOf(i.PATH_DELIMITER),c>-1?(e=f.substr(0,c),f=f.substr(c)):(e=f,f=""))))}return typeof o=="string"&&(o=o.toLowerCase(),h|=1,(o===i.UriSchemeHttp||o===i.UriSchemeHttps)&&(h|=512)),typeof l=="string"&&(h|=2),typeof e=="string"&&(e=e.toLowerCase(),h|=4),typeof a=="string"&&(p=parseInt(a),h|=520),typeof f=="string"&&r!==2&&(f=i.normalizePath(f)),f&&(h|=t.Pathname),typeof v=="string"&&(h|=128),typeof y=="string"&&(h|=256),u||(u=Object.create(i.prototype)),u._scheme=o,u._userinfo=l,u._hostname=e,u._port=p,u._pathname=i.escape(f,"","%"),u._search=v,u._hash=y,u._raw=b,u._components=h,u},i.mergeCore=function(n,r,u){if(!u&&r.isAbsolute)return r;var o,h,c,l,f,s,a,e=0;return r._scheme?(o=r._scheme,h=r._userinfo,c=r._hostname,l=r._port,f=i.normalizePath(r._pathname),s=r._search):(r._hostname?(h=r._userinfo,c=r._hostname,l=r._port,f=i.normalizePath(r._pathname),s=r._search):(r._pathname?(r._pathname.charAt(0)===i.PATH_DELIMITER?f=i.normalizePath(r._pathname):(f=i.mergePath(n._pathname,r._pathname),f=i.normalizePath(f)),s=r._search):(f=n._pathname,s=r._search?r._search:n._search),h=n._userinfo,c=n._hostname,l=n._port),o=n._scheme),a=r._hash,typeof o=="string"&&(e|=1,(o===i.UriSchemeHttp||o===i.UriSchemeHttps)&&(e|=512)),typeof h=="string"&&(e|=2),typeof c=="string"&&(e|=4),typeof l=="number"&&(e|=520),f&&(e|=t.Pathname),typeof s=="string"&&(e|=128),typeof a=="string"&&(e|=256),u||(u=Object.create(i.prototype)),u._scheme=o,u._userinfo=h,u._hostname=c,u._port=l,u._pathname=f,u._search=s,u._hash=a,u._components=e,u._raw=u.toString(),u},i.mergePath=function(n,t){var r=-1;return n&&(r=n.lastIndexOf(i.PATH_DELIMITER)),r>=0?n.substr(0,r+1)+t:t},i.normalizePath=function(n){var t,u,r,f;for(n=n.replace(/^\s+|\s+$/g,""),n=n.replace(/\\+|\/+/g,i.PATH_DELIMITER),t=n.split(/\//g),u=t[0]==="",u&&t.shift(),r=0;r=1&&t[r-1]!==i.CURRENT_DIRECTORY_TOKEN&&t[r-1]!==i.PARENT_DIRECTORY_TOKEN){t.splice(--r,2);r===t.length&&t.push("");continue}}r++}return u&&t.unshift(""),t.join(i.PATH_DELIMITER)},i.computePathDifference=function(n,t,r){for(var e=-1,f,u=0;u-1&&(l=i.formatPath(u.substr(0,s+1),r)),o===16)return l;f||(f=[]);f.push(l)}if(a=o&t.Filename,a&&s-1?u.substr(s+1):u,a===t.Filename){if(e=i.formatPath(e,r),o===t.Filename)return e;f||(f=[]);f.push(e)}else if(h=e.lastIndexOf(i.EXTENSION_DELIMITER),a===32){if(v=h===-1?i.formatPath(e,r):h>0?i.formatPath(e.substr(0,h),r):"",o===32)return v;f||(f=[]);f.push(v)}else return h===0?i.formatPath(e,r):h>0?i.formatPath(e.substr(h),r):"";return f?f.join(""):""},i.UriParser=/^(?:([a-z][a-z0-9+.\-]*)[:|])?(?:[\\/]{2}(?:((?:[\w\-._~!$&'()*+,;=:]|%[a-f0-9]{2})*)@)?(\[[^\[\]]+\]|[\w\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF\.\-_]*)(?:\:(\d+))?|(?![\\/]{2}))(([^/\\?#]*:)?[^?#]*?)(?:\?([^#]*?))?(?:#(.*?))?$/i,i.DosPath=/^([a-z]\:|[\\/]{2,}[^\\/@:?#]+)[\\/]/i,i.SCHEME_INDEX=1,i.USERINFO_INDEX=2,i.HOSTNAME_INDEX=3,i.PORT_INDEX=4,i.PATHNAME_INDEX=5,i.SCHEMESEGMENT_INDEX=6,i.SEARCH_INDEX=7,i.HASH_INDEX=8,i.SCHEME_DELIMITER="//",i.PATH_DELIMITER="/",i.DOS_PATH_DELIMITER="\\",i.UNC_ROOT="\\\\",i.USERINFO_DELIMITER="@",i.SEARCH_DELIMITER="?",i.HASH_DELIMITER="#",i.CURRENT_DIRECTORY_TOKEN=".",i.PARENT_DIRECTORY_TOKEN="..",i.PROTOCOL_DELIMITER=":",i.PORT_DELIMITER=":",i.EXTENSION_DELIMITER=".",i.DEFAULT_PORT_HTTP=80,i.DEFAULT_PORT_HTTPS=443,i.SchemeDelimiter="://",i.UriSchemeHttp="http",i.UriSchemeHttps="https",i.UriSchemeFile="file",i.UriSchemeData="data",i}();n.Uri=i})(Common||(Common={}));
//! Copyright (C) Microsoft. All rights reserved.
(function(n){"use strict";var t=Microsoft.Plugin,i;(function(n){function l(n,t){n.metadata=t}function o(){function f(n){return function(){var i=arguments;return t.Promise.timeout().then(function(){return t.F12.SelfTest.logMessage("Executing step "+n+"."),u[n].apply(null,i)})}}for(var i,r,u=[],n=0;n0&&(t.attr("tabindex","1"),t.trigger("focus"),t.trigger("click"),i.removeAttr("tabindex"))}});$m(".BPT-TabCycle-Horizontal, .BPT-TabCycle-Vertical").children(".BPT-TabCycle-Item").bind("mousedown",function(){var t=$m(this).siblings(".BPT-TabCycle-Item").matchAttr("tabindex","1"),n=$m(this);n.length>0&&(n.attr("tabindex","1"),n.trigger("focus"),t.removeAttr("tabindex"))})},i.registerErrorComponent=function(n,t){window.errorComponent=n;window.errorDisplayHandler=t},i.loadString=function(n){for(var i=[],r=1;rr.bottom;if(u||f)return n.scrollIntoView(!0),!0}return!1},i.getSortedObjectProperties=function(t){var i=[];for(var r in t)i.push(r);return i.sort(n.ToolWindowHelpers.naturalSort),i},i.getSortedArrayProperties=function(t,i,r){for(var f=[],e,u=0;u0&&r.length>0){var e=i.shift(),o=r.shift(),u=parseInt(e,10),f=parseInt(o,10);if(isNaN(u)&&isNaN(f)){if(e!==o)return e.localeCompare(o)}else{if(isNaN(u))return 1;if(isNaN(f))return-1;if(u!==f)return u-f}}return i.length-r.length},i.createShortenedUrlText=function(t){var e,h,f;if(!t)return t;if(t instanceof n.Uri)return(e=t,e.scheme==="javascript")?"javascript:":(h=e.segments,f=h.pop(),f||(f=h.pop()),f?e.hostname||e.scheme!=="about"||(f=e.scheme+":"+f):f=e.hostname,i.tryDecodeURIComponent(f));var l=t,r=l,c="javascript:";if(r.toLowerCase().substr(0,c.length)===c)return"javascript:";var o=r.indexOf("#"),s=r.indexOf("?"),u=-1;for(o>-1&&s>-1?u=Math.min(o,s):o>-1?u=o:s>-1&&(u=s),u>-1&&(r=r.substring(0,u)),u=Math.max(r.lastIndexOf("/"),r.lastIndexOf("\\"));u!==-1&&u===r.length-1;)r=r.substring(0,r.length-1),u=Math.max(r.lastIndexOf("/"),r.lastIndexOf("\\"));return u>-1&&(r=r.substring(u+1),r=i.tryDecodeURIComponent(r)),r},i.getTruncatedString=function(n,t){if(t===void 0&&(t=20),!n)return n;if(n.length>t){var i=t/2-2;n=n.substr(0,i)+this.loadString("Ellipsis")+n.substr(n.length-i)}return n},i.getTruncatedFileName=function(n,t){return t===void 0&&(t=20),i.getTruncatedString(i.createShortenedUrlText(n),t)},i.createFileLinkText=function(n,t,i,r){var u=n?this.getTruncatedFileName(n,r):"";return t&&(n&&(u+=" "),u+="("+t,i&&(u+=", "+i),u+=")"),u},i.pathCombine=function(n,t){var i=/[\/\\]/,r;return t?this.isAbsoluteUrl(t)||!n?t:t.charAt(0)==="/"&&this.isAbsoluteUrl(n)?this.getRoot(n)+t:n.charAt(n.length-1).match(i)||t.charAt(0).match(i)?n+t:(r=(n+t).lastIndexOf("\\")>=0?"\\":"/",n+r+t):n},i.getRoot=function(n){return n.substring(0,n.indexOf("/",n.indexOf("://")+3))},i.isAbsoluteUrl=function(n){return this.isUncPath(n)||this.pathStartsWithDriveLetter(n)?!0:!n.match(/^file:\/{2,3}\./i)?!!n.match(/^[a-zA-Z][\w\+\-\.]*:/)||this.isDataURI(n):!1},i.isUncPath=function(n){return!!n.match(/^\\\\/)},i.pathStartsWithDriveLetter=function(n){return!!n.match(/^[A-Za-z]:/)},i.isFileURI=function(n){return n.length>5&&n.substr(0,5).toLocaleLowerCase()==="file:"},i.isDataURI=function(n){return n.length>5&&n.substr(0,5).toLocaleLowerCase()==="data:"},i.addFileProtocolIfNeeded=function(t){return(n.ToolWindowHelpers.pathStartsWithDriveLetter(t)||n.ToolWindowHelpers.isUncPath(t))&&!n.ToolWindowHelpers.isFileURI(t)&&(t="file:///"+t),t},i.truncateProtocolFromUrl=function(n){return n.replace(/^[a-zAZ][\w\+\-\.]*:(\/\/)?/g,"")},i.parseBase64DataUriContent=function(n){if(!i.isDataURI(n)||n.indexOf("base64,")===-1)return null;try{return window.atob(n.substr(n.indexOf("base64,")+7))}catch(t){return null}},i.parseDataUriMimeType=function(n){return!i.isDataURI(n)||n.indexOf(";")===-1?null:n.substring(5,n.indexOf(";"))},i.hasSelectedText=function(){var n=window.getSelection().toString();return!!n},i.getSelectedText=function(){return window.getSelection().toString()},i.getTextForClipboard=function(){var n=window.getSelection().toString();return n&&(n=n.replace(/[\r\n]+/g,"\r\n")),n},i.isDarkThemeBackground=function(n){var i,t,r;if(n){while((!i||i==="transparent")&&n&&n.length>0)i=n.css("background-color"),n=n.parent();if(i&&(t=i.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/),t&&t.length===4))return r=(parseInt(t[1],10)*299+parseInt(t[2],10)*587+parseInt(t[3],10)*114)/1e3,r<127}return!1},i.isContextMenuUp=function(){return n.ToolWindowHelpers.ContextMenuIsUp},i.contextMenuUp=function(t){n.ToolWindowHelpers.ContextMenuIsUp=t},i.nodeInDocument=function(n,t){if(t===void 0&&(t=document),n)while(n=n.parentNode)if(n===t)return!0;return!1},i.isFocusGood=function(){var n=document.querySelector(":focus");return n&&n.tagName!=="BODY"},i.fireCustomEvent=function(n,t){var i=document.createEvent("CustomEvent");i.initEvent(t,!0,!0);n.dispatchEvent(i)},i.getExtension=function(n){if(!n)return"";n=this.createShortenedUrlText(n);var t=n.lastIndexOf(".");return t<0?"":n.substr(t).toLowerCase()},i.guessMimeTypeFromUrlExtension=function(n){switch(this.getExtension(n)){case".html":case".htm":return"text/html";case".xml":case".svg":return"text/xml";case".ts":return"text/typescript";case".js":return"text/javascript";case".css":return"text/css";case".less":return"text/less";case".sass":case".scss":return"text/scss";case".coffee":return"text/coffeescript";case".cs":return"text/x-csharp";default:return"text/plain"}},i.isNumber=function(n){return typeof n=="number"&&!isNaN(n)},i.stringEndsWith=function(n,t){return n===null||typeof n!="string"?!1:t===null||typeof t!="string"?!1:n.indexOf(t,n.length-t.length)>=0},i.replaceTextInRange=function(n,t,i,r){return n.substring(0,t)+r+n.substring(i,n.length)},i.mirrorInputElementOffScreen=function(n){var t=document.createElement("div"),u,f,r;t.id="toolwindow-offScreenMirrorElement";document.body.appendChild(t);u=window.getComputedStyle(n);for(f in i.TextSizingProps)r=i.TextSizingProps[f],u[r]&&(t.style[r]=u[r]);return t.style.visibility="hidden",t.style.position="absolute",t.style.left="-10000px",t.style.whiteSpace="pre-wrap",t.textContent=n.value||".",t},i.getCharScreenPosition=function(t,i){var u=n.ToolWindowHelpers.mirrorInputElementOffScreen(t),s=u.childNodes[0],o=document.createRange();o.setStart(s,i);o.setEnd(s,i);var r=o.getBoundingClientRect(),f=u.getBoundingClientRect(),e=t.getBoundingClientRect();return u.parentElement.removeChild(u),{left:r.left-f.left+e.left,right:r.right-f.left+e.left,top:r.top-f.top+e.top,bottom:r.bottom-f.bottom+e.bottom,width:r.width,height:r.height}},i.tryDecodeURIComponent=function(n){try{return decodeURIComponent(n)}catch(t){return n}},i.tryEncodeURIComponent=function(n){try{return encodeURIComponent(n)}catch(t){return n}},i.tryEncodeURI=function(n){try{return encodeURI(n)}catch(t){return n}},i.getSelection=function(n){var t=0,i=0;try{t=n.selectionStart}catch(r){}try{i=n.selectionEnd}catch(r){}return{start:t,end:i}},i.ContextMenuIsUp=!1,i.TextSizingProps=["boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize"],i.CodeMarkers={perfBrowserTools_DiagnosticsToolWindowsConsoleReady:23609,perfBrowserTools_DiagnosticsToolWindowsDomExplorerReady:23610,perfBrowserTools_DiagnosticsToolWindowsExpandConsoleObjectBegin:23611,perfBrowserTools_DiagnosticsToolWindowsExpandConsoleObjectEnd:23612,perfBrowserTools_DiagnosticsToolWindowsExpandConsoleObjectInteractive:23613,perfBrowserTools_DiagnosticsToolWindowsConsoleEvalBegin:23614,perfBrowserTools_DiagnosticsToolWindowsConsoleEvalEnd:23615,perfBrowserTools_DiagnosticsToolWindowsDataTreeToggleBegin:23616,perfBrowserTools_DiagnosticsToolWindowsDataTreeToggleEnd:23617,perfBrowserTools_DiagnosticsToolWindowsTreeViewToggleBegin:23618,perfBrowserTools_DiagnosticsToolWindowsTreeViewToggleEnd:23619,perfBrowserTools_DiagnosticsToolWindowsDomExplorerRefreshBegin:23620,perfBrowserTools_DiagnosticsToolWindowsDomExplorerRefreshEnd:23621,perfBrowserTools_DiagnosticsToolWindowsDomExplorerAttributeChanged:23622,perfBrowserTools_DiagnosticsToolWindowsDomExplorerTabChanged:23623,perfBrowserTools_DiagnosticsToolWindowsNetworkExplorerReady:23624},i.AreCodeMarkersEnabled=!1,i}();n.ToolWindowHelpers=i})(Common||(Common={}));
//! Copyright (C) Microsoft. All rights reserved.
Proxy=function(){function n(n){this._uid=0;this._callbacks={};this._pendingTimeout=null;this.remotePort=null;this._diagnosticsBridge=n}return n.prototype.callRemote=function(n,t,i,r){var f=this,h=this.getUid(),s,e,u,o,c,l;if(i&&(this._callbacks[h]={synced:!0,callback:i||null}),s=[],e=[],t)for(u=0;u100&&__rpcLog.shift()}},t.prototype.onMessage=function(t){var f=this,r,u;this.logTraffic(t.data);r=JSON.parse(t.data);u=r.id.split("|");n.Utility.Assert.areEqual(u.length,2);u[1]==="NULL"?u[0]!==this._ourIdentifier&&this._jsonRpcNotificationReceive(r.method,r.params):u[0]===this._ourIdentifier?i.RandomDelay?i.queueData(function(){f.handleReply(r)},t.data):this.handleReply(r):i.RandomDelay?i.queueData(function(){f.handleCall(r)},t.data):this.handleCall(r)},t.prototype.handleReply=function(t){if(!this._promiseTable[t.id]){n.Utility.Assert.failDebugOnly("Can't complete a promise that does not exist in the promise table. Probably a dup reply msg.");return}t.error?(n.Utility.Assert.isUndefined(t.data,"Can't have both data and error"),this._promiseTable[t.id].error(t.error)):this._promiseTable[t.id].completed(t.data);delete this._promiseTable[t.id]},t.prototype.handleCall=function(t){var i=this;this._jsonRpcMethodReceive(t.method,t.params,function(r,u){var f;r!==null&&r!==undefined?(n.Utility.Assert.isUndefined(u,"Can't have both data and error"),f=JSON.stringify({id:t.id,data:r})):(n.Utility.Assert.hasValue(u,"RPC call returned no value, but no error object either"),f=JSON.stringify({id:t.id,error:u}));i._postMessage(f)})},t}(),r,i;t.JsonRPCEndpoint=u;r=function(){function n(n,t){this.callback=n;this.message=t}return n}();t.RpcDelayData=r;i=function(){function n(){}return n.enableDelay=function(t,i){n.RandomDelay=!0;n.CalculateDelayTime=t;n.DelayedMessage=i},n.disableDelay=function(){n.RandomDelay=!1;n.RandomDelayTimeout&&(clearTimeout(n.RandomDelayTimeout),n.RandomDelayTimeout=null,n.clearQueue())},n.queueData=function(t,i){var f=new r(t,i),u;n.DelayedQueue.push(f);n.RandomDelayTimeout||(u=n.CalculateDelayTime(i),n.RandomDelayTimeout=setTimeout(n.fireRandomly,u))},n.fireRandomly=function(){var t=n.DelayedQueue.shift(),i;n.DelayedMessage(t.message);t.callback();n.DelayedQueue.length>0?(i=n.CalculateDelayTime(n.DelayedQueue[0].message),n.RandomDelayTimeout=setTimeout(n.fireRandomly,i)):n.RandomDelayTimeout=null},n.clearQueue=function(){for(var i,t=0;t0&&i[0](t)}},n}();n.EventHelperObject=t})(Common||(Common={}));
//! Copyright (C) Microsoft. All rights reserved.
(function(n){"use strict";var t=Microsoft.Plugin,s,r,u,i,f,e,o,h;(function(n){n[n.IeOnly=0]="IeOnly";n[n.VsOnly=1]="VsOnly";n[n.All=2]="All"})(n.TelemetryEventHost||(n.TelemetryEventHost={}));s=n.TelemetryEventHost,function(n){n[n.Ui=0]="Ui";n[n.KeyboardShortcut=1]="KeyboardShortcut";n[n.ContextMenu=2]="ContextMenu";n[n.Internal=3]="Internal";n[n.Test=4]="Test";n[n.NotSpecified=5]="NotSpecified"}(n.TriggerType||(n.TriggerType={}));r=n.TriggerType;u=function(){function n(){}return n.CONSOLE="Console",n.DEBUGGER="Debugger",n.DOM_EXPLORER="DomExplorer",n.EMULATION="Emulation",n.EXPERIMENTS="Experiments",n.MEMORY="Memory",n.NETWORK="Network",n.PROFILER="Profiler",n.VISUAL_PROFILER="VisualProfiler",n}();n.ToolName=u;i=function(){function n(){}return n.EXECUTE_COMMAND="ExecuteCommand",n.F12_LOAD_END="F12LoadEnd",n.TOOL_LOADED="ToolLoaded",n}();n.TelemetryEventName=i;f=function(){function n(){}return n.prototype.log=function(n,t,i,r){i===void 0&&(i=2);r===void 0&&(r=!0)},n.prototype.logExecuteCommand=function(n,t,i,r){i===void 0&&(i=2);r===void 0&&(r=!0)},n}();n.DoNothingAnalyticsProxy=f;e=function(){function n(n){this._toolName=n;this._selfTestEnabled=t.F12.SelfTest.selfTestEnabled;this._previousCommandName="";this._previousCommandTime=Date.now()}return n.prototype.log=function(n,i,r,u){r===void 0&&(r=2);u===void 0&&(u=!0);r!==1&&(u?t.F12.TelemetryLogger.logAsMeasure(n,i):t.F12.TelemetryLogger.logAsTelemetry(n,i),this._selfTestEnabled&&t.F12.SelfTest.logMessage("Telemetry: "+n+" "+JSON.stringify(i)+" isMeasure: "+u))},n.prototype.logExecuteCommand=function(n,t,u,f){if(u===void 0&&(u=2),f===void 0&&(f=!0),t!==3&&t!==4&&(this._previousCommandName!==n||Date.now()-this._previousCommandTime>1e3)){var e={ToolName:this._toolName,CommandName:n,TriggerType:r[t]};this.log(i.EXECUTE_COMMAND,e,u,f);this._previousCommandName=n;this._previousCommandTime=Date.now()}},n}();n.F12AnalyticsProxy=e;o=function(){function n(n,i){this._proxy=t.Utilities.JSONMarshaler.attachToPublishedObject(n,{},!0);this._toolName=i;this._previousCommandName="";this._previousCommandTime=Date.now()}return n.prototype.log=function(n,t,i,r){i===void 0&&(i=2);r===void 0&&(r=!0);i!==0&&this._proxy._call("reportTelemetryEvent",n,t)},n.prototype.logExecuteCommand=function(n,t,u,f){if(u===void 0&&(u=2),f===void 0&&(f=!0),this._previousCommandName!==n||Date.now()-this._previousCommandTime>1e3){var e={ToolName:this._toolName,CommandName:n,TriggerType:r[t]};this.log(i.EXECUTE_COMMAND,e,u,f);this._previousCommandName=n;this._previousCommandTime=Date.now()}},n}();n.VsAnalyticsProxy=o,function(n){var t=function(){function n(){}return n.FIND_NEXT_OR_PREVIOUS="FindNextOrPrevious",n.DEBUGGER_FIND="DebuggerFind",n.SEARCHBOX_CLEAR="SearchBoxClear",n.UPDATE_SEARCH_NEXT_OR_PREVIOUS="UpdateSearchNextOrPrevious",n}();n.CommandName=t}(h=n.Telemetry||(n.Telemetry={}))})(Common||(Common={}))
//# sourceMappingURL=CommonMinimal.min.js.map
//! Copyright (C) Microsoft. All rights reserved.
var Common;(function(n){"use strict";var t=function(){function n(){}return n.addClasses=function(n,t){for(var r=n?n.split(" "):[],u=t?t.split(" "):[],i=0;i .BPT-DataTreeItem-ExpandIcon {
    background-image: url(''); /*[url({vs-image-icon-tree-collapsed})]*/
    background-size: 10px 10px;
}

.BPT-DataTree .BPT-DataTreeItem-Expanded > .BPT-DataTreeItem-ExpandIcon {
    background-image: url(''); /*[url({vs-image-icon-tree-expanded})]*/
    background-size: 10px 10px;
}

.BPT-DataTreeItem-ChildCollection {
    
}

.BPT-DataTreeItem-Header {
    display:inline-block;
    left: 0;
    right: 0;
    border: 1px solid transparent;
    border-radius: 3px;
    margin-left: 8px;
    margin-bottom: 0;
    padding: 1px 0;
}

.BPT-DataTreeItem-CollapsedBlockFooter {
    display: inline;
}

.BPT-DataTreeItem-BlockFooter {
    display: none;
    margin-left: 10px;
}

.BPT-DataTreeItem-Expanded.BPT-DataTreeItem-CollapsibleBlock > .BPT-DataTreeItem-Header > .BPT-DataTreeItem-Name > .BPT-DataTreeItem-CollapsedBlockFooter {
    display: none;
}

.BPT-DataTreeItem-Expanded > .BPT-DataTreeItem-BlockFooter {
    display: block;
}

.BPT-DataTreeItem-FileLink-Right {
    display: block;
    float: right;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 2px;
}

.BPT-DataTreeItem-Header > .BPT-DataTreeItem-FileLink-Right {
    padding: 0;
}

.BPT-DataTreeItem-FileLink-Value {
    max-width: 12em;
    text-overflow: ellipsis;
    overflow: hidden;
    color: #007acc;                 /*[{plugin-link-color}]*/
}

.BPT-DataTreeItem-Name {
    display: inline-block;
    width: 150px;
    min-height: 1.3em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; 
    vertical-align: top;
}

.BPT-DataTreeItem-Name input[type="checkbox"]{
    position: relative;
    top: -1px;
    padding: 0;
    margin: 0 2px 0 3px;
    vertical-align: middle;
}

.BPT-DataTreeItem-Value {
    display: inline-block;
    overflow: auto;
    vertical-align: top;
    min-height: 1.3em;
    min-width: 50px;
}

.BPT-DataTreeItem-CollapsibleBlock > .BPT-DataTreeItem-Header > .BPT-DataTreeItem-Name {
    overflow: hidden;
    width: auto;
    white-space: normal;
    max-width: 100%;
    margin-right: 0;
    word-wrap: break-word;
}

.BPT-DataTreeItem-CollapsibleBlock > .BPT-DataTreeItem-Header > .BPT-DataTreeItem-Value {
    min-width: 0;
}

.BPT-DataTreeItem-Selected {
    border-left: 1px solid transparent;
}

.BPT-DataTreeItem-Selected > .BPT-DataTreeItem-Header {
    background-color: transparent;
    border-color: transparent;
}

body.showFocus .BPT-DataTree-Container-CurrentFocus .BPT-DataTreeItem-Selected > .BPT-FileLink {
    border: 1px dotted #3399FF; /*[1px dotted {plugin-font-editor-selected-background-color}]*/
}

.BPT-DataTreeItem-Selected > .BPT-DataTreeItem-Header .BPT-HTML, 
.BPT-DataTreeItem-Selected > .BPT-DataTreeItem-Header .BPT-HTML-Tag, 
.BPT-DataTreeItem-Selected > .BPT-DataTreeItem-Header .BPT-HTML-Attribute, 
.BPT-DataTreeItem-Selected > .BPT-DataTreeItem-Header .BPT-HTML-Value, 
.BPT-DataTreeItem-Selected > .BPT-DataTreeItem-Header .BPT-HTML-Operator, 
.BPT-DataTreeItem-Selected > .BPT-DataTreeItem-Header .BPT-HTML-Text, 
.BPT-DataTreeItem-Selected > .BPT-DataTreeItem-Header .BPT-HTML-Comment, 
.BPT-DataTreeItem-Selected > .BPT-DataTreeItem-Header .BPT-HTML-Comment + .BPT-HTML-Text, 
.BPT-DataTreeItem-Selected > .BPT-DataTreeItem-Header .BPT-HTML-DocType + .BPT-HTML-Text,
.BPT-DataTreeItem-Selected > .BPT-DataTreeItem-Header .BPT-HTML-CSS-Name,
.BPT-DataTreeItem-Selected > .BPT-DataTreeItem-Header .BPT-HTML-CSS-Value,
.BPT-DataTreeItem-Selected > .BPT-DataTreeItem-Header .BPT-HTML-CSS-Selector,
.BPT-DataTreeItem-Selected > .BPT-DataTreeItem-Header .BPT-HTML-CSS-Text {
    background: transparent;
}

body .BPT-DataTree-Container:focus .BPT-DataTreeItem-Selected,
body .BPT-DataTree-Container-CurrentFocus .BPT-DataTreeItem-Selected,
body .BPT-DataTree-Container-KeepSelection .BPT-DataTreeItem-Selected {
    border-color: #3399FF; /*[{plugin-font-editor-selected-background-color}]*/
}

body .BPT-DataTree-Container:focus .BPT-DataTreeItem-Selected > .BPT-DataTreeItem-Header,
body .BPT-DataTree-Container-CurrentFocus .BPT-DataTreeItem-Selected > .BPT-DataTreeItem-Header,
body .BPT-DataTree-Container-KeepSelection .BPT-DataTreeItem-Selected > .BPT-DataTreeItem-Header {
    background: rgba(51, 153, 255, 0.25); /*[{plugin-font-editor-selected-background-color rgba(0.25)}]*/
    border-color: #3399FF; /*[{plugin-font-editor-selected-background-color}]*/
}

body.BPT-ToolWindow-NoFocus .BPT-DataTree-Container:focus .BPT-DataTreeItem-Selected,
body.BPT-ToolWindow-NoFocus .BPT-DataTree-Container-CurrentFocus .BPT-DataTreeItem-Selected,
body.BPT-ToolWindow-NoFocus .BPT-DataTree-Container-KeepSelection .BPT-DataTreeItem-Selected {
    border-color: transparent;
}

body.BPT-ToolWindow-NoFocus .BPT-DataTree-Container:focus .BPT-DataTreeItem-Selected > .BPT-DataTreeItem-Header,
body.BPT-ToolWindow-NoFocus .BPT-DataTree-Container-CurrentFocus .BPT-DataTreeItem-Selected > .BPT-DataTreeItem-Header,
body.BPT-ToolWindow-NoFocus .BPT-DataTree-Container-KeepSelection .BPT-DataTreeItem-Selected > .BPT-DataTreeItem-Header {
    background: rgba(191, 205, 219, 0.25); /*[{plugin-font-editor-inactive-selected-background-color rgba(0.25)}]*/
    border-color: #BFCDDB; /*[{plugin-font-editor-inactive-selected-background-color}]*/
}
//! Copyright (C) Microsoft. All rights reserved.
var Common;(function(n){"use strict";var t=function(){function t(){}return t.escapeRegExp=function(n){return String.prototype.replace.call(n,t.ESCAPE_USER_INPUT_REGEX,"\\$&")},t.escapeRegExpWithWildCard=function(n){return String.prototype.replace.call(n,t.ESCAPE_USER_INPUT_REGEX,function(n){return n==="*"?".*":"\\"+n})},t.wrapInQuotes=function(n){return'"'+String.prototype.replace.call(n,/\\"/g,'"')+'"'},t.unescapeHtml=function(n){if(typeof n!="string"){if(n===null||n===undefined)return"";n=""+n}return String.prototype.replace.call(String.prototype.replace.call(String.prototype.replace.call(String.prototype.replace.call(String.prototype.replace.call(n,/>/g,">"),/</g,"<"),/'/g,"'"),/"/g,'"'),/&/g,"&")},t.escapeHtmlAndPreserveWhitespace=function(t){var f=[t],r,u,i;if(t=t.replace(/(\r\n|\n\r|\r|\n)/g,"\r\n"),r=t.split("\r\n"),r.length>0)for(f=[],u=0;u"+i+"<\/pre>",f.push(i);return f},t.escapeHtml=function(n){if(typeof n!="string"){if(n===null||n===undefined)return"";n=""+n}return String.prototype.replace.call(String.prototype.replace.call(String.prototype.replace.call(String.prototype.replace.call(String.prototype.replace.call(n,/&/g,"&"),/"/g,"""),/'/g,"'"),//g,">")},t.replaceSpacesWithNonBreakingSpaceEntities=function(n){return String.prototype.replace.call(n,/ /g," ")},t.replaceLineBreaksWithNonBreakingSpaceEntities=function(n){return String.prototype.replace.call(n,/[\r\n]/g," ")},t.ESCAPE_USER_INPUT_REGEX=/([.+?^=!:${}()|\[\]\/\\])|(\*)/g,t}();n.EncodingUtilities=t})(Common||(Common={}))
//# sourceMappingURL=EncodingUtilities.min.js.map
.BPT-HtmlTree-Container:focus {
    outline: 0;
}

.BPT-HTML {
    font-family: "Consolas", Lucida Console, monospace, "Segoe UI Symbol"; /*[{plugin-font-editor} , Lucida Console, monospace, "Segoe UI Symbol"]*/
    font-size: 9pt; /*[{plugin-font-editor-size}]*/
    font-weight: normal; /*[{plugin-font-editor-weight}]*/
    color: TRANSPARENT; /*[{plugin-font-editor-html-tag-color}]*/
}

.BPT-HTML-Tag {
    color: TRANSPARENT; /*[{plugin-font-editor-html-element-color}]*/
    font-weight: normal; /*[{plugin-font-editor-html-element-weight}]*/
}

.BPT-HTML-NewTag {
    color: TRANSPARENT; /*[{plugin-font-editor-html-element-color}]*/
    font-weight: normal; /*[{plugin-font-editor-html-element-weight}]*/
}

.BPT-HTML-DocType, .BPT-HTML-DocType + .BPT-HTML-Text {
    color: TRANSPARENT; /*[{plugin-font-editor-html-comment-color}]*/
    font-weight: normal; /*[{plugin-font-editor-html-comment-weight}]*/
    cursor: default;
}

.BPT-HTML-Comment, .BPT-HTML-Comment + .BPT-HTML-Text {
    color: TRANSPARENT; /*[{plugin-font-editor-html-comment-color}]*/
    font-weight: normal; /*[{plugin-font-editor-html-comment-weight}]*/
    cursor: default;
}

.BPT-HTML-Attribute {
    color: TRANSPARENT; /*[{plugin-font-editor-html-attribute-name-color}]*/
    font-weight: normal; /*[{plugin-font-editor-html-attribute-name-weight}]*/
}

.BPT-HTML-Value {
    color: TRANSPARENT; /*[{plugin-font-editor-html-attribute-value-color}]*/
    font-weight: normal; /*[{plugin-font-editor-html-attribute-value-weight}]*/
}

.BPT-HTML-Text, .BPT-HTML-CData {
    color: TRANSPARENT; /*[{plugin-font-editor-color}]*/
    font-weight: normal; /*[{plugin-font-editor-html-operator-weight}]*/
    white-space: pre-wrap;
}

.BPT-HTML-CSS-Name {
    color: TRANSPARENT; /*[{plugin-font-editor-css-name-color}]*/
    font-weight: normal; /*[{plugin-font-editor-css-name-weight}]*/
}

.BPT-HTML-CSS-Value {
    color: TRANSPARENT; /*[{plugin-font-editor-css-value-color}]*/
    font-weight: normal; /*[{plugin-font-editor-css-value-weight}]*/
}

.BPT-HTML-CSS-Selector {
    color: TRANSPARENT; /*[{plugin-font-editor-css-selector-color}]*/
    font-weight: normal; /*[{plugin-font-editor-css-selector-weight}]*/
}

.BPT-HTML-CSS-ParentRule {
    color: TRANSPARENT; /*[{plugin-font-editor-css-selector-color}]*/
    font-weight: normal;
}

.BPT-HTML-CSS-Text {
    color: TRANSPARENT; /*[{plugin-font-editor-color}]*/
    font-weight: normal; /*[{plugin-font-editor-weight}]*/
}

.BPT-HTML-CSS-SelectorTag {
    font-style:italic;
}

.BPT-HTML-CSS-InlinedSelector {
    font-style:italic;
}

.BPT-HTML-Numbering {
    display: inline-block;
    min-width: 25px;
}

.BPT-HTML-Tag > input {
    vertical-align: -2px
}

.BPT-Style-Disabled span {
    text-decoration: line-through;
}

.BPT-HtmlTree-ChildCollection-ShowAll {
    color: TRANSPARENT;             /*[{plugin-font-editor-color}]*/
    background-color: TRANSPARENT;  /*[{plugin-font-editor-background-color}]*/
    font-weight: normal;        /*[{plugin-font-editor-weight}]*/
    white-space: pre-wrap;

    display: inline-block;
    position: relative;
    margin-left: 10px;
    margin-bottom: 1px;
}

.BPT-HtmlTree-ChildCollection-ShowAll:hover, .BPT-HtmlTree-ChildCollection-ShowAll.BPT-HtmlTreeItem-Selected {
    text-decoration: underline;
}

.BPT-HtmlTreeItem-Hover.BPT-HtmlTreeItem-DropBefore {
    border-top: 1px solid blue;
}

.BPT-HtmlTreeItem-Hover.BPT-HtmlTreeItem-DropAfter {
    border-bottom: 1px solid blue;
}

.BPT-HTML-Punctuation {
    color: TRANSPARENT;             /*[{plugin-font-editor-color}]*/
}

.BPT-HTML-Debug-Uid {
    color: lightgrey;
}
// 
//! Copyright (C) Microsoft. All rights reserved.
//
var isDebugBuild = false;
.listBox {
    padding: 0px;
    cursor: default;
    border: 1px solid black;
    font-family: "Segoe UI", Arial, sans-serif; /*[{plugin-font-family} , Arial, sans-serif]*/
    font-size: 12px;
    list-style-type: none;
    overflow-y: scroll;
    overflow-x: hidden;
    -ms-user-select: none;
}

.listBox ::selection{
	background-color: transparent;
}

.listBox li {
	-ms-user-select: none;
}

.listBox li:hover{
	background-color: #DBFFFC;
}

.listBox li[selected=selected] {
	background-color: blue; 
	color: white;
}
(function(){var u,f=window.external.pluginUrl||(u=document.cookie.match(/(?:^|;)\s?pluginUrl=(.*?)(?:;|$)/))&&unescape(u[1])||"plugin.b.js",i=document.getElementsByTagName("script"),n,t,e,r;if(i&&f)for(n=0;n1)||(this._chainingUid=remoteHelpers.getUid())},n.prototype.disableChaining=function(){if(this._chainingLevel>0&&(this._chainingLevel--,this._chainingLevel===0)){var n=this._peek(this._undoStack),t=n&&n.chainingUid===this._chainingUid;this._chainingUid=null;t&&(this._undoActions++,this._checkIfOverLimit())}},n.prototype.undo=function(){var t=!0,n,i;try{if(this.somethingToUndo()){if(n=this._undoStack.pop(),n.performUndo())for(this._doStack.push(n);this.somethingToUndo()&&n.chainingUid;){if(i=this._undoStack.pop(),i.chainingUid!==n.chainingUid){this._undoStack.push(i);break}if(n=i,n.performUndo())this._doStack.push(n);else{this.reset();t=!1;break}}else this.reset(),t=!1;this._undoActions--;this._doActions++}}catch(r){t=!1}return this._testUndoCallback&&this._testUndoCallback(t),t},n.prototype.performNextEdit=function(){var t=!0,n,i;try{if(this.somethingToDo()){if(n=this._doStack.pop(),n.performEdit(!0))for(this._undoStack.push(n);this.somethingToDo()&&n.chainingUid;){if(i=this._doStack.pop(),i.chainingUid!==n.chainingUid){this._doStack.push(i);break}if(n=i,n.performEdit(!0))this._undoStack.push(n);else{this.reset();t=!1;break}}else this.reset(),t=!1;this._undoActions++;this._doActions--}}catch(r){t=!1}return this._testEditCallback&&this._testEditCallback(t),t},n.prototype.somethingToUndo=function(){return this._undoStack.length>0},n.prototype.somethingToDo=function(){return this._doStack.length>0},n.prototype._pushEdit=function(n){n.chainingUid=this._chainingUid;this._undoStack.push(n);this._doStack=[];this._doActions=0;this._chainingUid||(this._undoActions++,this._checkIfOverLimit())},n.prototype._checkIfOverLimit=function(){while(this._doActions+this._undoActions>this._undoLimit){var n=this._undoStack[0];if(n.chainingUid)while(this._undoStack.length>0&&this._undoStack[0].chainingUid===n.chainingUid)this._undoStack.shift();else this._undoStack.shift();this._undoActions--}},n.prototype._peek=function(n){var t=n.pop();return n.push(t),t},n}();n.EditStack=t})(Common||(Common={}))
//# sourceMappingURL=remoteEditStack.min.js.map
//! Copyright (C) Microsoft. All rights reserved.
var htmlTreeHelpers,errorHandler,Common;(function(n){"use strict";var e,u,t,i,r,f;(function(n){n[n.Previous=-1]="Previous";n[n.Next=1]="Next"})(n.Direction||(n.Direction={}));e=n.Direction;u=function(){function u(n){this.pendingMessages=[];this.pendingMessagesMap={};this.pendingTimeout=!1;this.port=null;this.portId=0;this.portReady=!1;this.onDetachCallback=null;this.initializeDocumentMaxTries=15;this.initializeDocumentTries=0;this.childrenElementLimit=200;this.uid=0;this.isEvalModified=!1;this.isExecScriptModified=!1;this._messageHandlers=n}return u.getJMCScriptUrl=function(n){return u.JMC_SCRIPT_URL.replace("{0}",n)},u.encounteredException=function(){},u.addListener=function(n,t,i,r){u.getDocumentMode()>=9?r?n.addEventListener(t,i,r):n.addEventListener(t,i):typeof n.addEventListener=="function"?n.addEventListener(t,i):n.attachEvent("on"+t,i)},u.addSafeListener=function(t,i,r,f,e){var o=u.createSafeFunction(t,f);return n.RemoteHelpers.addListener(i,r,o,e),o},u.removeListener=function(n,t,i,r){u.getDocumentMode()>=9?r?n.removeEventListener(t,i,r):n.removeEventListener(t,i):typeof n.removeEventListener=="function"?n.removeEventListener(t,i):n.detachEvent("on"+t,i)},u.getDefaultView=function(n){return n?typeof n.defaultView!="undefined"?n.defaultView:n.parentWindow:null},u.isElement=function(n,t){return n&&t?typeof n.Element=="object"?t instanceof n.Element:typeof t=="object"&&t.nodeType===1&&typeof t.nodeName=="string":!1},u.getEventTarget=function(n){return u.getDocumentMode()>=9?n.target:n.srcElement},u.getComputedStyle=function(n,t){var r,f,o,h,c,e,i,s;if(u.getDocumentMode()>=9){for(r=n.getComputedStyle(t),f={},i=0;i=9?{x:t.pageXOffset,y:t.pageYOffset}:{x:t.document.body.scrollLeft,y:t.document.body.scrollTop}},u.getRuleForStyleObject=function(n,t){return u.searchStyleSheetForStyleObject(t.ownerDocument.styleSheets,n)},u.getRuleForStyleObjectByDocument=function(n,t){return u.searchStyleSheetForStyleObject(t.styleSheets,n)},u.getDocumentMode=function(){var n=browser.documentMode;if(browser.documentMode===0)try{n=browser.defaultDocumentMode}catch(t){n=8e4}return n/1e4},u.getIsLeftMouseButton=function(n){return u.getDocumentMode()>=9?n===0:n===1},u.eventHandled=function(n){return u.getDocumentMode()>=9?(n.stopPropagation(),n.preventDefault(),!1):(n.cancelBubble=!0,!1)},u.getLeafTextContentPreview=function(n,t){var f,i,r;return t===void 0&&(t=30),n&&(i=u.getLeafTextContent(n),i!==null&&i!==undefined&&(r=!0,i=i.trim(),i.length>t&&(i=i.substr(0,t)+"…",r=!1),f={isComplete:r,text:i})),f},u.getLeafTextContentPreviewText=function(n,t){t===void 0&&(t=30);var i,r=u.getLeafTextContentPreview(n,t);return r&&(i=r.text),i},u.getLeafTextContent=function(t){if(t.childNodes){if(t.tagName==="IFRAME")return;if(t.childNodes.length>1)return;if(t.childNodes.length===1){var i=t.childNodes[0];if(i.tagName==="IFRAME"||i.childNodes&&i.childNodes.length>0)return}}return n.RemoteHelpers.getTextContent(t)},u.getTextContent=function(n){var t=u.getDocumentMode();if(t!==9||n.nodeType!==n.COMMENT_NODE||!(n.length<0))return t>=9?n.nodeType===n.COMMENT_NODE||n.nodeType===n.TEXT_NODE?n.data:n.childNodes&&n.childNodes.length===1&&n.childNodes[0].nodeType===n.TEXT_NODE?n.childNodes[0].data:n.textContent:n.innerText?n.innerText:typeof n.data=="string"?n.data:void 0},u.setTextContent=function(n,t){u.getDocumentMode()<9?n.innerText=t:n.textContent=t},u.getDocumentTypeNodeText=function(n){var t="";return n.nodeType!==n.DOCUMENT_TYPE_NODE?t:(t="")},u.isWindow=function(n){if(u.getDocumentMode()>8)return Object.prototype.toString.call(n)==="[object Window]";try{return n&&n.toString&&n.toString()==="[object Window]"}catch(t){return!1}},u.isCrossSiteWindow=function(n,t){try{var i=n.Object.getOwnPropertyNames(t)}catch(r){return!0}return!1},u.getValidWindow=function(n,t){try{if(u.isWindow(t)){var i=t;if(u.isCrossSiteWindow(n,t)&&(i=dom.getCrossSiteWindow(n,t)),i&&i.document)return{isValid:!0,window:i}}}catch(r){}return{isValid:!1,window:null}},u.originForWindow=function(t){return t&&t.location&&t.location.protocol&&t.location.host?n.EncodingUtilities.escapeHtml(t.location.protocol+"//"+t.location.host):null},u.createSafeFunction=function(n,t){var i,r,f;return u.getDocumentMode()<9?browser.createSafeFunction(n,t):(i=browser.createSafeFunction(n,function(n){F12.Tools.Utility.Assert.failDebugOnly(n.message||n.description||"Unknown Error")}),n.__BROWSERTOOLS_CONSOLE_SAFEFUNC||(r=function(n,t){return function __BROWSERTOOLS_CONSOLE_SAFEFUNC(){try{return n(arguments)}catch(i){t(i)}}},f="window.__BROWSERTOOLS_CONSOLE_SAFEFUNC = "+r.toString(),u.executeScript(f,n,!0)),n.__BROWSERTOOLS_CONSOLE_SAFEFUNC(browser.createSafeFunction(n,function(i){return t.apply(n,i)}),i))},u.executeScript=function(n,t,i){var r,f;typeof diagnosticsScript!="undefined"&&diagnosticsScript.debugEval&&u.getDocumentMode()>8?(r=diagnosticsScript.debugEval.bind(t),r(n,i)):(f=JSON.stringify(n).slice(1,-1),browser.executeScript(f+(i?u.getJMCScriptUrl("library"):""),t))},u.getWindowIterator=function(n){return new t([n],function(n){for(var i,r=[],t=0;t0){n="";try{n=JSON.stringify(remoteHelpers.pendingMessages)}catch(i){errorHandler.handleError(i.toString(),"remoteHelpers.js",null)}if(remoteHelpers.pendingMessages=[],remoteHelpers.pendingMessagesMap={},remoteHelpers.pendingTimeout=!1,n.length>0)try{remoteHelpers.port.postMessage(n)}catch(i){}}},u.searchStyleSheetForStyleObject=function(t,i){for(var r,o,f,e=0;e0},n.prototype.next=function(){if(!this.hasNext())return null;var n=this._q.pop(),t=this._moreItems(n);return t&&(this._q=this._q.concat(t)),n},n}();n.Iterator=t;i=function(){function t(){}return t.isEmptyTextElement=function(t){if(t.tagName)return!1;var i=n.RemoteHelpers.getLeafTextContent(t);return typeof i!="string"?!1:!/\S/.test(i)},t.prototype.hasSpecialValueAttribute=function(n){switch(n.nodeName){case"INPUT":case"FORM":case"SELECT":case"OPTION":case"TEXTAREA":return!0}return!1},t.prototype.isElementAccessible=function(n){var t=null,i=null;try{i=n.nodeName;t=typeof n}catch(r){return!1}return t==="object"},t}();n.HtmlTreeHelpers=i;r=function(){function t(){}return t.addErrorAdditionalInfo=function(n){var i,t;try{throw new Error("Get Callstack")}catch(r){i=r.stack}t=[];try{t.push("Callstack:\r\n"+i);t.push("BreakFlags: "+toolUI.getBreakFlags());t.push("IsEvalModified: "+remoteHelpers.isEvalModified);t.push("IsExecScriptModified: "+remoteHelpers.isExecScriptModified)}catch(u){}n.additionalInfo=t.join("\r\n\r\n")},t.prototype.initializeListeners=function(){n.RemoteHelpers.addListener(toolUI,"scripterror",this.onScriptError.bind(this));n.RemoteHelpers.addListener(toolUI,"detach",this.onDetach.bind(this))},t.prototype.handleError=function(n,t,i,r){this.onScriptError({message:n,file:t,line:i,column:r})},t.prototype.onDetach=function(){n.RemoteHelpers.removeListener(toolUI,"scripterror",this.onScriptError)},t.prototype.onScriptError=function(n){if(remoteHelpers&&remoteHelpers.port){t.addErrorAdditionalInfo(n);var i=JSON.stringify([{uid:"scriptError",args:[n]}]);try{remoteHelpers.port.postMessage(i)}catch(r){}}},t}();n.ErrorHandlers=r;f=function(){function n(){}return n.propertyEvaluationFunction=function(t,i){var r,u;return t.location.protocol.indexOf("http")>=0?(r=n.HttpObjectWatchList.lastIndexOf(Object.prototype.toString.call(i)),u=n.HttpPropertyIgnorelist[r]):t.location.protocol.indexOf("ms-appx")>=0&&(r=n.FileObjectWatchList.lastIndexOf(Object.prototype.toString.call(i)),u=n.FilePropertyIgnorelist[r]),u?function(n,t){if(!(u.lastIndexOf(t)>=0))try{return n[t]}catch(i){return i.toString()}}:function(n,t){return n[t]}},n.HttpObjectWatchList=["[object Window]"],n.HttpPropertyIgnorelist=[["indexedDB","msIndexedDB"]],n.FileObjectWatchList=["[object Window]"],n.FilePropertyIgnorelist=[["clipboardData"]],n}();n.PropertyEvaluationIgnoreList=f})(Common||(Common={}))
//# sourceMappingURL=remoteHelpers.min.js.map
var Common;(function(n){"use strict";(function(n){n[n.None=0]="None";n[n.Trident=1]="Trident";n[n.Chromium=2]="Chromium"})(n.TargetEngineKind||(n.TargetEngineKind={}));var t=n.TargetEngineKind})(Common||(Common={}))
//# sourceMappingURL=targetEngineKind.min.js.map
html,
body {
    height: 100%;
    margin: 0px;
    -ms-high-contrast-adjust: none;
}

*:focus {
    outline: none;
}

body.showFocus *:focus {
    outline: invert dotted thin;
}

body {
    font-family: "Segoe UI", Arial, sans-serif; /*[{plugin-font-family} , Arial, sans-serif]*/
    font-size: 9pt; /*[{plugin-font-size}]*/
    font-weight: normal; /*[{plugin-font-weight}]*/
    color: TRANSPARENT; /*[{plugin-color}]*/
}

#mainContainer {
    width: 100%;
    height: 100%;
}

.ScrollContainer {
    overflow: auto;
}

.BPT-ToolbarSeparator {
    color: TRANSPARENT; /*[{plugin-contextmenu-separator-color}]*/
    display: inline-block;
    vertical-align: middle;
    border-right: 1px solid TRANSPARENT; /*[1px solid {plugin-contextmenu-separator-color}]*/
    margin-right: 2.166em;
}

.BPT-ToolbarSeparator div {
    float: left;
}

.BPT-ToolbarSpace {
    display: inline-block;
    margin-right: 1em;
    cursor: default;
}

.BPT-ToolbarToggleSeparator {
    margin: 0 3px 0 0;
}

.BPT-ToolbarButton,
.Toolbar-ControlsButton {
    display: inline-block;
    border: 1px solid transparent;
    vertical-align: top;
    padding: 2px;
    margin-top: 2px;
    cursor: default;
}

.BPT-ToolbarButton .buttonText,
.Toolbar-ControlsButton .buttonText {
    display: inline-block;
    float: right;
    min-width: 8px;
    margin: 0px 5px 0px 5px;
    text-align: right;
    cursor: default;
}


.BPT-ToolbarButton img,
.Toolbar-ControlsButton img {
    margin: 2px 4px 0 -2px;
    vertical-align: middle;
}

.BPT-ToolbarButton-StateHidden {
    display: none;
}

.BPT-ToolbarButton-StateDisabled,
.Toolbar-ControlsButton[disabled] {
    background-color: transparent;
    border: 1px solid transparent;
    color: TRANSPARENT; /*[{plugin-inactive-color}]*/
}

.BPT-ToolbarToggleButton,
.ToolbarControlsToggleButton {
    color: TRANSPARENT; /*[{plugin-color}]*/
}

.Toolbar-ControlsButton.FilterToggleButton:hover {
    color: TRANSPARENT; /*[{f12-toolbar-button-hover-text-color}]*/
    background-color: TRANSPARENT; /*[{f12-toolbar-button-hover-color}] */
}

.BPT-ToolbarToggleButton-StateOn,
.ToolbarControlsToggleButton[selected=true] {
    color: TRANSPARENT; /*[{f12-toolbar-button-selected-text-color}]*/
    background-color: TRANSPARENT; /*[{f12-toolbar-button-selected-color}]*/
    border: 1px solid TRANSPARENT; /*[1px solid {f12-toolbar-button-selected-border-color}]*/
}

.ToolbarControlsToggleButton.FilterToggleButton[selected=false] .buttonIcon {
    background-position-y: 0px;
}

.BPT-ToolbarButton-MouseDown:not([disabled]) {
    background-color: TRANSPARENT !important; /*[{f12-toolbar-button-pressed-color} !important]*/
}

.BPT-FileLink,
.BPT-HelpLink,
.BPT-IELink {
    border: 1px solid transparent;
    color: TRANSPARENT; /*[{plugin-link-color}]*/ /*EnvironmentColors.CommandBarMenuLinkTextColorKey*/
    cursor: pointer;
}

.BPT-FileLink:hover,
.BPT-HelpLink:hover,
.BPT-IELink:hover {
    color: TRANSPARENT; /*[{plugin-link-hover-color}]*/ /*EnvironmentColors.CommandBarMenuLinkTextHoverColorKey*/
    text-decoration: underline;
}

.BPT-ContextMenu {
    background-color: TRANSPARENT; /*[{plugin-contextmenu-background-color}]*/
    color: TRANSPARENT; /*[{plugin-contextmenu-color}]*/
    position: fixed;
    border: solid;
    border-width: 1px;
    border-color: TRANSPARENT; /*[{plugin-contextmenu-border-color}]*/
    box-sizing: border-box;
    z-index: 1000;
}

.BPT-ContextMenuItem {
    background-color: TRANSPARENT; /*[{plugin-contextmenu-background-color}]*/
    padding-left: 6px;
    padding-right: 6px;
    padding-top: 3px;
    padding-bottom: 3px;
}

.BPT-ContextMenuItem:hover {
    background-color: TRANSPARENT; /*[{plugin-contextmenu-hover-color}]*/
}

.BPT-ContextMenuItemDisabled {
    color: TRANSPARENT; /*[{plugin-inactive-color}]*/
}
//! Copyright (C) Microsoft. All rights reserved.
var Common;(function(n){"use strict";var t=Microsoft.Plugin,u,f,i,r;(function(n){n[n.Timeline_Zoom_Start=101]="Timeline_Zoom_Start";n[n.Timeline_Zoom_Stop=102]="Timeline_Zoom_Stop";n[n.Timeline_GridSort_Start=103]="Timeline_GridSort_Start";n[n.Timeline_GridSort_Stop=104]="Timeline_GridSort_Stop";n[n.Timeline_LoadGraphs_Start=105]="Timeline_LoadGraphs_Start";n[n.Timeline_LoadGraphs_Stop=106]="Timeline_LoadGraphs_Stop";n[n.Timeline_GridScrolled=107]="Timeline_GridScrolled";n[n.Timeline_GridUpdatedForTimeSelection=108]="Timeline_GridUpdatedForTimeSelection";n[n.Timeline_UserSelectedTimeSlice_Start=109]="Timeline_UserSelectedTimeSlice_Start";n[n.Timeline_UserSelectedTimeSlice_Stop=110]="Timeline_UserSelectedTimeSlice_Stop";n[n.Timeline_GridUpdatedForFilterBackground_Start=111]="Timeline_GridUpdatedForFilterBackground_Start";n[n.Timeline_GridUpdatedForFilterBackground_Stop=112]="Timeline_GridUpdatedForFilterBackground_Stop";n[n.Timeline_GridUpdatedForFilterNetwork_Start=113]="Timeline_GridUpdatedForFilterNetwork_Start";n[n.Timeline_GridUpdatedForFilterNetwork_Stop=114]="Timeline_GridUpdatedForFilterNetwork_Stop";n[n.Timeline_GridUpdatedForFilterMeasures_Start=115]="Timeline_GridUpdatedForFilterMeasures_Start";n[n.Timeline_GridUpdatedForFilterMeasures_Stop=116]="Timeline_GridUpdatedForFilterMeasures_Stop";n[n.Timeline_GridUpdatedForFilterFrames_Start=117]="Timeline_GridUpdatedForFilterFrames_Start";n[n.Timeline_GridUpdatedForFilterFrames_Stop=118]="Timeline_GridUpdatedForFilterFrames_Stop";n[n.Timeline_GridUpdatedForFilterName_Start=119]="Timeline_GridUpdatedForFilterName_Start";n[n.Timeline_GridUpdatedForFilterName_Stop=120]="Timeline_GridUpdatedForFilterName_Stop";n[n.Memory_TakeSnapshot_Start=201]="Memory_TakeSnapshot_Start";n[n.Memory_TakeSnapshot_Stop=202]="Memory_TakeSnapshot_Stop";n[n.Memory_CompareSnapshot_Start=203]="Memory_CompareSnapshot_Start";n[n.Memory_CompareSnapshot_Stop=204]="Memory_CompareSnapshot_Stop";n[n.Memory_ViewSnapshot_Start=205]="Memory_ViewSnapshot_Start";n[n.Memory_ViewSnapshot_Stop=206]="Memory_ViewSnapshot_Stop";n[n.Memory_GridSort_Start=207]="Memory_GridSort_Start";n[n.Memory_GridSort_Stop=208]="Memory_GridSort_Stop";n[n.Memory_DisplayFirstLevelSnapshotData_Start=209]="Memory_DisplayFirstLevelSnapshotData_Start";n[n.Memory_DisplayFirstLevelSnapshotData_Stop=210]="Memory_DisplayFirstLevelSnapshotData_Stop";n[n.Memory_ToolReady_Start=211]="Memory_ToolReady_Start";n[n.Memory_ToolReady_Stop=212]="Memory_ToolReady_Stop";n[n.Memory_GridFilterResponse_Start=213]="Memory_GridFilterResponse_Start";n[n.Memory_GridFilterResponse_Stop=214]="Memory_GridFilterResponse_Stop";n[n.Memory_UpdateObjectReferenceGraph_Start=215]="Memory_UpdateObjectReferenceGraph_Start";n[n.Memory_UpdateObjectReferenceGraph_Stop=216]="Memory_UpdateObjectReferenceGraph_Stop";n[n.Memory_ProcessingSnapshot_Start=217]="Memory_ProcessingSnapshot_Start";n[n.Memory_ProcessingSnapshot_Stop=218]="Memory_ProcessingSnapshot_Stop";n[n.Memory_ProcessingDiffSnapshot_Start=219]="Memory_ProcessingDiffSnapshot_Start";n[n.Memory_ProcessingDiffSnapshot_Stop=220]="Memory_ProcessingDiffSnapshot_Stop";n[n.Debugger_StepOver_Start=301]="Debugger_StepOver_Start";n[n.Debugger_StepInto_Start=302]="Debugger_StepInto_Start";n[n.Debugger_StepOut_Start=303]="Debugger_StepOut_Start";n[n.Debugger_OnBreak_Start=304]="Debugger_OnBreak_Start";n[n.Debugger_OnBreak_Stop=305]="Debugger_OnBreak_Stop";n[n.Debugger_PrettyPrint_Start=306]="Debugger_PrettyPrint_Start";n[n.Debugger_PrettyPrint_Stop=307]="Debugger_PrettyPrint_Stop";n[n.Debugger_CloseDocument_Start=310]="Debugger_CloseDocument_Start";n[n.Debugger_CloseDocument_Stop=311]="Debugger_CloseDocument_Stop";n[n.Debugger_RevealRange_Start=314]="Debugger_RevealRange_Start";n[n.Debugger_RevealRange_Stop=315]="Debugger_RevealRange_Stop";n[n.Debugger_CallstackController_GoTo_Start=316]="Debugger_CallstackController_GoTo_Start";n[n.Debugger_CallstackController_GoTo_Stop=317]="Debugger_CallstackController_GoTo_Stop";n[n.Debugger_BreakpointController_SetAllEnabledStates_Start=318]="Debugger_BreakpointController_SetAllEnabledStates_Start";n[n.Debugger_BreakpointController_SetAllEnabledStates_Stop=319]="Debugger_BreakpointController_SetAllEnabledStates_Stop";n[n.Debugger_EditorWindow_NavigateTo_Start=320]="Debugger_EditorWindow_NavigateTo_Start";n[n.Debugger_EditorWindow_NavigateTo_Stop=321]="Debugger_EditorWindow_NavigateTo_Stop";n[n.Debugger_Editor_SetModel_Start=322]="Debugger_Editor_SetModel_Start";n[n.Debugger_Editor_SetModel_Stop=323]="Debugger_Editor_SetModel_Stop";n[n.Debugger_Editor_CreateModel_Start=324]="Debugger_Editor_CreateModel_Start";n[n.Debugger_Editor_CreateModel_Stop=325]="Debugger_Editor_CreateModel_Stop";n[n.Debugger_Editor_Create_Start=326]="Debugger_Editor_Create_Start";n[n.Debugger_Editor_Create_Stop=327]="Debugger_Editor_Create_Stop";n[n.Debugger_Editor_Layout_Start=328]="Debugger_Editor_Layout_Start";n[n.Debugger_Editor_Layout_Stop=329]="Debugger_Editor_Layout_Stop";n[n.Debugger_Editor_ChangeViewZones_Start=330]="Debugger_Editor_ChangeViewZones_Start";n[n.Debugger_Editor_ChangeViewZones_Stop=331]="Debugger_Editor_ChangeViewZones_Stop";n[n.Debugger_Editor_RevealPosition_Start=332]="Debugger_Editor_RevealPosition_Start";n[n.Debugger_Editor_RevealPosition_Stop=333]="Debugger_Editor_RevealPosition_Stop";n[n.Debugger_Editor_SaveViewState_Start=334]="Debugger_Editor_SaveViewState_Start";n[n.Debugger_Editor_SaveViewState_Stop=335]="Debugger_Editor_SaveViewState_Stop";n[n.Debugger_Editor_RestoreViewState_Start=336]="Debugger_Editor_RestoreViewState_Start";n[n.Debugger_Editor_RestoreViewState_Stop=337]="Debugger_Editor_RestoreViewState_Stop";n[n.Debugger_EditorWindow_CreateDataTipFromPosition_Start=338]="Debugger_EditorWindow_CreateDataTipFromPosition_Start";n[n.Debugger_EditorWindow_CreateDataTipFromPosition_Stop=339]="Debugger_EditorWindow_CreateDataTipFromPosition_Stop";n[n.Debugger_BreakpointController_SetEnabledState_Start=340]="Debugger_BreakpointController_SetEnabledState_Start";n[n.Debugger_BreakpointController_SetEnabledState_Stop=341]="Debugger_BreakpointController_SetEnabledState_Stop";n[n.Debugger_BreakpointController_BreakpointChanged_Start=342]="Debugger_BreakpointController_BreakpointChanged_Start";n[n.Debugger_BreakpointController_BreakpointChanged_Stop=343]="Debugger_BreakpointController_BreakpointChanged_Stop";n[n.Debugger_BreakpointWindow_BreakpointChanged_Start=344]="Debugger_BreakpointWindow_BreakpointChanged_Start";n[n.Debugger_BreakpointWindow_BreakpointChanged_Stop=345]="Debugger_BreakpointWindow_BreakpointChanged_Stop";n[n.Debugger_WatchWindowView_RefreshView_Start=346]="Debugger_WatchWindowView_RefreshView_Start";n[n.Debugger_WatchWindowView_RefreshView_Stop=347]="Debugger_WatchWindowView_RefreshView_Stop";n[n.Debugger_StepDocument_Start=348]="Debugger_StepDocument_Start";n[n.Debugger_ToggleJMC_Start=349]="Debugger_ToggleJMC_Start";n[n.Debugger_ToggleJMC_Stop=350]="Debugger_ToggleJMC_Stop";n[n.Debugger_ToggleCallstackLibraryFrames_Start=351]="Debugger_ToggleCallstackLibraryFrames_Start";n[n.Debugger_ToggleCallstackLibraryFrames_Stop=352]="Debugger_ToggleCallstackLibraryFrames_Stop";n[n.Debugger_SpecifyUrlAsJMCType_Start=353]="Debugger_SpecifyUrlAsJMCType_Start";n[n.Debugger_SpecifyUrlAsJMCType_Stop=354]="Debugger_SpecifyUrlAsJMCType_Stop";n[n.Debugger_Persistence_DataLoad_Start=355]="Debugger_Persistence_DataLoad_Start";n[n.Debugger_Persistence_DataLoad_Stop=356]="Debugger_Persistence_DataLoad_Stop";n[n.Debugger_Persistence_AddBreakpoints_Start=357]="Debugger_Persistence_AddBreakpoints_Start";n[n.Debugger_Persistence_AddBreakpoints_Stop=358]="Debugger_Persistence_AddBreakpoints_Stop";n[n.Debugger_Persistence_AddWatches_Start=359]="Debugger_Persistence_AddWatches_Start";n[n.Debugger_Persistence_AddWatches_Stop=360]="Debugger_Persistence_AddWatches_Stop";n[n.Debugger_Persistence_TabOpen_Start=361]="Debugger_Persistence_TabOpen_Start";n[n.Debugger_Persistence_TabOpen_Stop=362]="Debugger_Persistence_TabOpen_Stop";n[n.Debugger_Persistence_SaveState_Start=363]="Debugger_Persistence_SaveState_Start";n[n.Debugger_Persistence_SaveState_Stop=364]="Debugger_Persistence_SaveState_Stop";n[n.Debugger_SourceMap_ToggleSourceMap_Start=365]="Debugger_SourceMap_ToggleSourceMap_Start";n[n.Debugger_SourceMap_ToggleSourceMap_Stop=366]="Debugger_SourceMap_ToggleSourceMap_Stop";n[n.Debugger_SourceMap_ParseSourceMapAsync_Start=367]="Debugger_SourceMap_ParseSourceMapAsync_Start";n[n.Debugger_SourceMap_ParseSourceMapAsync_Stop=368]="Debugger_SourceMap_ParseSourceMapAsync_Stop";n[n.Debugger_Editor_GetOrCreateMode_Start=369]="Debugger_Editor_GetOrCreateMode_Start";n[n.Debugger_Editor_GetOrCreateMode_Stop=370]="Debugger_Editor_GetOrCreateMode_Stop";n[n.Debugger_OnAddDocuments_Info=371]="Debugger_OnAddDocuments_Info";n[n.Debugger_Intellisense_ListBox_Build_Start=372]="Debugger_Intellisense_ListBox_Build_Start";n[n.Debugger_Intellisense_ListBox_Build_Stop=373]="Debugger_Intellisense_ListBox_Build_Stop";n[n.Debugger_Intellisense_ListBox_Reset_Start=374]="Debugger_Intellisense_ListBox_Reset_Start";n[n.Debugger_Intellisense_ListBox_Reset_Stop=375]="Debugger_Intellisense_ListBox_Reset_Stop";n[n.Debugger_Intellisense_Menu_Filter_Start=376]="Debugger_Intellisense_Menu_Filter_Start";n[n.Debugger_Intellisense_Menu_Filter_Stop=377]="Debugger_Intellisense_Menu_Filter_Stop";n[n.Debugger_Intellisense_Menu_Layout_Start=378]="Debugger_Intellisense_Menu_Layout_Start";n[n.Debugger_Intellisense_Menu_Layout_Stop=379]="Debugger_Intellisense_Menu_Layout_Stop";n[n.Debugger_Intellisense_Provider_Get_Expression_Start=380]="Debugger_Intellisense_Provider_Get_Expression_Start";n[n.Debugger_Intellisense_Provider_Get_Expression_Stop=381]="Debugger_Intellisense_Provider_Get_Expression_Stop";n[n.Debugger_Intellisense_Provider_Update_Start=382]="Debugger_Intellisense_Provider_Update_Start";n[n.Debugger_Intellisense_Provider_Update_Stop=383]="Debugger_Intellisense_Provider_Update_Stop";n[n.Debugger_Intellisense_Provider_Get_Items_Start=384]="Debugger_Intellisense_Provider_Get_Items_Start";n[n.Debugger_Intellisense_Provider_Get_Items_Stop=385]="Debugger_Intellisense_Provider_Get_Items_Stop";n[n.Debugger_AsyncStackProvider_GetFrames_Start=386]="Debugger_AsyncStackProvider_GetFrames_Start";n[n.Debugger_AsyncStackProvider_GetFrames_Stop=387]="Debugger_AsyncStackProvider_GetFrames_Stop";n[n.Debugger_AsyncStackProvider_GetFrames_Timeout=388]="Debugger_AsyncStackProvider_GetFrames_Timeout";n[n.Console_Window_Create_Start=401]="Console_Window_Create_Start";n[n.Console_Window_Create_Stop=402]="Console_Window_Create_Stop";n[n.Console_Attach_Start=403]="Console_Attach_Start";n[n.Console_Attach_Stop=404]="Console_Attach_Stop";n[n.Console_Message_Start=405]="Console_Message_Start";n[n.Console_Message_Stop=406]="Console_Message_Stop";n[n.Console_Input_Start=407]="Console_Input_Start";n[n.Console_Input_Stop=408]="Console_Input_Stop";n[n.Console_Output_Start=409]="Console_Output_Start";n[n.Console_Output_Stop=410]="Console_Output_Stop";n[n.Console_Output_Render_Start=411]="Console_Output_Render_Start";n[n.Console_Output_Render_Stop=412]="Console_Output_Render_Stop";n[n.Console_Item_Toggle_Start=413]="Console_Item_Toggle_Start";n[n.Console_Item_Toggle_Stop=414]="Console_Item_Toggle_Stop";n[n.Console_HtmlLines_Expand_Start=415]="Console_HtmlLines_Expand_Start";n[n.Console_HtmlLines_Expand_Stop=416]="Console_HtmlLines_Expand_Stop";n[n.Console_Context_Menu_Loading_Start=417]="Console_Context_Menu_Loading_Start";n[n.Console_Context_Menu_Loading_Stop=418]="Console_Context_Menu_Loading_Stop";n[n.Console_Scroll_Start=419]="Console_Scroll_Start";n[n.Console_Scroll_Stop=420]="Console_Scroll_Stop";n[n.Console_Intellisense_ListBox_Build_Start=421]="Console_Intellisense_ListBox_Build_Start";n[n.Console_Intellisense_ListBox_Build_Stop=422]="Console_Intellisense_ListBox_Build_Stop";n[n.Console_Intellisense_ListBox_Reset_Start=423]="Console_Intellisense_ListBox_Reset_Start";n[n.Console_Intellisense_ListBox_Reset_Stop=424]="Console_Intellisense_ListBox_Reset_Stop";n[n.Console_Intellisense_Menu_Filter_Start=425]="Console_Intellisense_Menu_Filter_Start";n[n.Console_Intellisense_Menu_Filter_Stop=426]="Console_Intellisense_Menu_Filter_Stop";n[n.Console_Intellisense_Menu_Layout_Start=427]="Console_Intellisense_Menu_Layout_Start";n[n.Console_Intellisense_Menu_Layout_Stop=428]="Console_Intellisense_Menu_Layout_Stop";n[n.Console_Intellisense_Provider_Get_Expression_Start=429]="Console_Intellisense_Provider_Get_Expression_Start";n[n.Console_Intellisense_Provider_Get_Expression_Stop=430]="Console_Intellisense_Provider_Get_Expression_Stop";n[n.Console_Intellisense_Provider_Update_Start=431]="Console_Intellisense_Provider_Update_Start";n[n.Console_Intellisense_Provider_Update_Stop=432]="Console_Intellisense_Provider_Update_Stop";n[n.Console_Intellisense_Provider_Get_Items_Start=433]="Console_Intellisense_Provider_Get_Items_Start";n[n.Console_Intellisense_Provider_Get_Items_Stop=434]="Console_Intellisense_Provider_Get_Items_Stop";n[n.Dom_Window_Create_Start=501]="Dom_Window_Create_Start";n[n.Dom_Window_Create_Stop=502]="Dom_Window_Create_Stop";n[n.Dom_ExpandNode_Start=503]="Dom_ExpandNode_Start";n[n.Dom_ExpandNode_Stop=504]="Dom_ExpandNode_Stop";n[n.Dom_UndoRedo_Start=505]="Dom_UndoRedo_Start";n[n.Dom_UndoRedo_Stop=506]="Dom_UndoRedo_Stop";n[n.Dom_DragDrop_Start=507]="Dom_DragDrop_Start";n[n.Dom_DragDrop_Stop=508]="Dom_DragDrop_Stop";n[n.Dom_AddAttribute_Start=509]="Dom_AddAttribute_Start";n[n.Dom_AddAttribute_Stop=510]="Dom_AddAttribute_Stop";n[n.Dom_Intellisense_Start=511]="Dom_Intellisense_Start";n[n.Dom_Intellisense_Stop=512]="Dom_Intellisense_Stop";n[n.Dom_SelectElement_Start=513]="Dom_SelectElement_Start";n[n.Dom_SelectElement_Stop=514]="Dom_SelectElement_Stop";n[n.Dom_CutElement_Start=515]="Dom_CutElement_Start";n[n.Dom_CutElement_Stop=516]="Dom_CutElement_Stop";n[n.Dom_PasteElement_Start=517]="Dom_PasteElement_Start";n[n.Dom_PasteElement_Stop=518]="Dom_PasteElement_Stop";n[n.Dom_CollapseElement_Start=519]="Dom_CollapseElement_Start";n[n.Dom_CollapseElement_Stop=520]="Dom_CollapseElement_Stop";n[n.Dom_StylesTabLoad_Start=521]="Dom_StylesTabLoad_Start";n[n.Dom_StylesTabLoad_Stop=522]="Dom_StylesTabLoad_Stop";n[n.Dom_StylesTab_Intellisense_Start=523]="Dom_StylesTab_Intellisense_Start";n[n.Dom_StylesTab_Intellisense_Stop=524]="Dom_StylesTab_Intellisense_Stop";n[n.Dom_TreeItemExpand_Start=525]="Dom_TreeItemExpand_Start";n[n.Dom_TreeItemExpand_Stop=526]="Dom_TreeItemExpand_Stop";n[n.Dom_ComputedTabLoad_Start=527]="Dom_ComputedTabLoad_Start";n[n.Dom_ComputedTabLoad_Stop=528]="Dom_ComputedTabLoad_Stop";n[n.Dom_ChangesTabLoad_Start=529]="Dom_ChangesTabLoad_Start";n[n.Dom_ChangesTabLoad_Stop=530]="Dom_ChangesTabLoad_Stop";n[n.Dom_LayoutTabLoad_Start=531]="Dom_LayoutTabLoad_Start";n[n.Dom_LayoutTabLoad_Stop=532]="Dom_LayoutTabLoad_Stop";n[n.Dom_EventsTabLoad_Start=533]="Dom_EventsTabLoad_Start";n[n.Dom_EventsTabLoad_Stop=534]="Dom_EventsTabLoad_Stop";n[n.Dom_TreeItemCollapse_Start=535]="Dom_TreeItemCollapse_Start";n[n.Dom_TreeItemCollapse_Stop=536]="Dom_TreeItemCollapse_Stop";n[n.Dom_Search_Start=537]="Dom_Search_Start";n[n.Dom_Search_Stop=538]="Dom_Search_Stop";n[n.Dom_RemoteInjection_Start=539]="Dom_RemoteInjection_Start";n[n.Dom_RemoteInjection_Stop=540]="Dom_RemoteInjection_Stop";n[n.Dom_EnterEditAsHtml_Start=541]="Dom_EnterEditAsHtml_Start";n[n.Dom_EnterEditAsHtml_Stop=542]="Dom_EnterEditAsHtml_Stop";n[n.Dom_CommitEditAsHtml_Start=543]="Dom_CommitEditAsHtml_Start";n[n.Dom_CommitEditAsHtml_Stop=544]="Dom_CommitEditAsHtml_Stop";n[n.Dom_CommitEditAttribute_Start=545]="Dom_CommitEditAttribute_Start";n[n.Dom_CommitEditAttribute_Stop=546]="Dom_CommitEditAttribute_Stop";n[n.Dom_ShowColorPicker_Start=547]="Dom_ShowColorPicker_Start";n[n.Dom_ShowColorPicker_Stop=548]="Dom_ShowColorPicker_Stop";n[n.Dom_HideColorPicker_Start=549]="Dom_HideColorPicker_Start";n[n.Dom_HideColorPicker_Stop=550]="Dom_HideColorPicker_Stop";n[n.Dom_SetColorUsingColorPicker_Start=551]="Dom_SetColorUsingColorPicker_Start";n[n.Dom_SetColorUsingColorPicker_Stop=552]="Dom_SetColorUsingColorPicker_Stop";n[n.Emulation_Window_Create_Start=601]="Emulation_Window_Create_Start";n[n.Emulation_Window_Create_Stop=602]="Emulation_Window_Create_Stop";n[n.Generic_Debug_1_Start=701]="Generic_Debug_1_Start";n[n.Generic_Debug_1_Stop=702]="Generic_Debug_1_Stop";n[n.Generic_Debug_2_Start=703]="Generic_Debug_2_Start";n[n.Generic_Debug_2_Stop=704]="Generic_Debug_2_Stop";n[n.Generic_Debug_3_Start=705]="Generic_Debug_3_Start";n[n.Generic_Debug_3_Stop=706]="Generic_Debug_3_Stop";n[n.Generic_Debug_4_Start=707]="Generic_Debug_4_Start";n[n.Generic_Debug_4_Stop=708]="Generic_Debug_4_Stop";n[n.Generic_Debug_5_Start=709]="Generic_Debug_5_Start";n[n.Generic_Debug_5_Stop=710]="Generic_Debug_5_Stop";n[n.Generic_Debug_6_Start=711]="Generic_Debug_6_Start";n[n.Generic_Debug_6_Stop=712]="Generic_Debug_6_Stop";n[n.Generic_Debug_7_Start=713]="Generic_Debug_7_Start";n[n.Generic_Debug_7_Stop=714]="Generic_Debug_7_Stop";n[n.Generic_Debug_8_Start=715]="Generic_Debug_8_Start";n[n.Generic_Debug_8_Stop=716]="Generic_Debug_8_Stop";n[n.Generic_Debug_9_Start=717]="Generic_Debug_9_Start";n[n.Generic_Debug_9_Stop=718]="Generic_Debug_9_Stop";n[n.Header_InitializeTabs_Start=801]="Header_InitializeTabs_Start";n[n.Header_InitializeTabs_Stop=802]="Header_InitializeTabs_Stop"})(n.TraceEvents||(n.TraceEvents={}));u=n.TraceEvents,function(n){n[n.Debugger_OpenDocument_Start=308]="Debugger_OpenDocument_Start";n[n.Debugger_OpenDocument_Stop=309]="Debugger_OpenDocument_Stop";n[n.Debugger_SwitchDocument_Start=312]="Debugger_SwitchDocument_Start";n[n.Debugger_SwitchDocument_Stop=313]="Debugger_SwitchDocument_Stop"}(n.TraceEventsWithKey||(n.TraceEventsWithKey={}));f=n.TraceEventsWithKey;i=function(){function n(){}return n.prototype.raiseEvent=function(){},n.prototype.raiseEventWithMessage=function(){},n.prototype.raiseEventWithKey=function(){},n}();n.DefaultTraceWriter=i;r=function(){function n(n){!n&&Microsoft&&t&&(t.F12?n=t.F12.TraceWriter:t.VS&&(n=t.VS.Utilities.createExternalObject("PerformanceTraceExtension","{D76A409F-7234-4B71-9BFD-DEF3DC4CCCA6}")));this._performanceTracer=n}return n.prototype.raiseEventWithKey=function(n,t,i){this._performanceTracer&&this._performanceTracer.raiseEventWithKey(n,t,i)},n.prototype.raiseEventWithMessage=function(n,t){this._performanceTracer&&this._performanceTracer.raiseEvent(n,t)},n.prototype.raiseEvent=function(n){this.raiseEventWithMessage(n,"")},n}();n.TraceWriter=r})(Common||(Common={}))
//# sourceMappingURL=trace.min.js.map
//! Copyright (C) Microsoft. All rights reserved.
var Common;(function(n){"use strict";var r,t,u,i;(function(n){n[n.RelativeOrAbsolute=0]="RelativeOrAbsolute";n[n.Absolute=1]="Absolute";n[n.Relative=2]="Relative"})(n.UriKind||(n.UriKind={}));r=n.UriKind,function(n){n[n.Scheme=1]="Scheme";n[n.Userinfo=2]="Userinfo";n[n.Hostname=4]="Hostname";n[n.Port=8]="Port";n[n.Directory=16]="Directory";n[n.FilenameWithoutExtension=32]="FilenameWithoutExtension";n[n.Extension=64]="Extension";n[n.Filename=n.FilenameWithoutExtension|n.Extension]="Filename";n[n.Pathname=n.Directory|n.Filename]="Pathname";n[n.Search=128]="Search";n[n.Hash=256]="Hash";n[n.StrongPort=512]="StrongPort";n[n.KeepDelimiter=1024]="KeepDelimiter";n[n.AbsoluteUri=n.Scheme|n.Userinfo|n.Hostname|n.Port|n.Pathname|n.Search|n.Hash]="AbsoluteUri";n[n.HostnameAndPort=n.Hostname|n.StrongPort]="HostnameAndPort";n[n.StrongAuthority=n.Userinfo|n.Hostname|n.StrongPort]="StrongAuthority";n[n.Origin=n.Scheme|n.Hostname|n.Port]="Origin";n[n.PathnameAndSearch=n.Pathname|n.Search]="PathnameAndSearch"}(n.UriComponents||(n.UriComponents={}));t=n.UriComponents,function(n){n[n.UriEscaped=1]="UriEscaped";n[n.Unescaped=2]="Unescaped";n[n.SafeUnescaped=3]="SafeUnescaped"}(n.UriFormat||(n.UriFormat={}));u=n.UriFormat;i=function(){function i(){for(var f,r,e,u,n=[],t=0;t=2&&n[0]instanceof i){if(f=n[0],n[1]instanceof i)r=n[1];else if(n[1]!==null&&n[1]!==undefined)r=new i(String(n[1]),0);else throw new TypeError("Missing required argument: uri.");i.mergeCore(f,r,this)}else if(n.length>=1&&n[0]!==null&&n[0]!==undefined){if(e=String(n[0]),u=1,n.length>=2)if(typeof n[1]=="number")u=n[1];else throw new TypeError("Invalid argument: kind.");i.parseCore(e,u,this)}else throw new TypeError("Argument not optional.")}return Object.defineProperty(i.prototype,"isRooted",{get:function(){return this.isAbsolute||/^\//.test(this.pathname)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"isAbsolute",{get:function(){return this._scheme===i.UriSchemeFile&&typeof this._pathname=="string"&&/^[\\/]?\.{1,2}([\\/]|$)/.test(this._pathname)?!1:!!this._scheme},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"isFile",{get:function(){return this._scheme===i.UriSchemeFile},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"isUnc",{get:function(){return this.isFile&&!!(this._components&4)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"isDosPath",{get:function(){return this.isFile&&!this._hostname&&/^\/?[a-z][:|]/i.test(this._pathname)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"hasDefaultPort",{get:function(){return this.isAbsolute&&(typeof this._port!="number"||this._scheme===i.UriSchemeHttp&&this._port===80||this._scheme===i.UriSchemeHttps&&this._port===443)?!0:!1},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"raw",{get:function(){return this._raw},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"origin",{get:function(){return this.getComponentsCore(t.Origin,1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"authority",{get:function(){return this.getComponentsCore(t.HostnameAndPort,1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"protocol",{get:function(){return this.getComponentsCore(1025,1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"scheme",{get:function(){return this.getComponentsCore(1,1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"userinfo",{get:function(){return this.getComponentsCore(2,1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"host",{get:function(){return this.getComponentsCore(t.HostnameAndPort,1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"hostname",{get:function(){return this.getComponentsCore(4,1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pathname",{get:function(){return this.getComponentsCore(t.Pathname,1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pathnameAndSearch",{get:function(){return this.getComponentsCore(t.PathnameAndSearch,1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"search",{get:function(){return this.getComponentsCore(1152,1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"hash",{get:function(){return this.getComponentsCore(1280,1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"port",{get:function(){return typeof this._port=="number"?this._port:this._scheme===i.UriSchemeHttp?i.DEFAULT_PORT_HTTP:this._scheme===i.UriSchemeHttps?i.DEFAULT_PORT_HTTPS:undefined},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"absoluteUri",{get:function(){return this.getComponentsCore(t.AbsoluteUri,1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"absolutePath",{get:function(){var n=this.getComponentsCore(t.Pathname|1024,1);return this.isDosPath&&(n=n.substr(1)),n},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"localPath",{get:function(){if(this.isUnc||this.isDosPath){var n=this.getComponentsCore(t.Pathname|1024,1);if(n=n.replace(i.PATH_DELIMITER,i.DOS_PATH_DELIMITER),this.isUnc)return i.UNC_ROOT+this.hostname+n;if(this.isDosPath)return n.substr(1)}return""},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"segments",{get:function(){var n=this.getComponentsCore(t.Pathname|1024,1);return n.length>1?(n=n.substr(1),n.split(i.PATH_DELIMITER)):[]},enumerable:!0,configurable:!0}),i.parse=function(n,t){return t===void 0&&(t=1),new i(n,t)},i.tryParse=function(n,t){if(t===void 0&&(t=1),n===null||n===undefined)throw new TypeError("Missing required argument: text.");return i.parseCore(n,t,undefined)},i.tryMerge=function(n,t){if(n===null||n===undefined)throw new TypeError("Missing required argument: baseUri.");if(t===null||t===undefined)throw new TypeError("Missing required argument: uri.");return i.mergeCore(n,t,undefined)},i.create=function(r){var s,l,a,h,v,e,o,c,f,y,u,p;if(r||(r={}),c=!1,f=0,typeof r.keepDelimiter=="boolean"&&(c=r.keepDelimiter),typeof r.scheme=="string"&&(s=n.ToolWindowHelpers.tryDecodeURIComponent(r.scheme.toLowerCase()),f|=1,(s===i.UriSchemeHttp||s===i.UriSchemeHttps)&&(f|=512)),typeof r.userinfo=="string"&&(l=r.userinfo.toLowerCase(),f|=2),typeof r.hostname=="string"&&(a=r.hostname.toLowerCase(),f|=4),typeof r.port=="number"){if(r instanceof i)y=r,h=y._port;else{if(r.port<0)throw new RangeError("Invalid port.");h=r.port}typeof h=="number"&&(f|=520)}return r.pathname&&(v=r.pathname,f|=t.Pathname),r.search&&(e=r.search,!c&&e.length>0&&e.charAt(0)===i.SEARCH_DELIMITER&&(e=e.substr(1)),f|=128),r.hash&&(o=r.hash,!c&&o.length>0&&o.charAt(0)===i.HASH_DELIMITER&&(o=o.substr(1)),f|=256),u=Object.create(i.prototype),u._scheme=s,u._userinfo=l,u._hostname=a,u._port=h,u._pathname=v,u._search=e,u._hash=o,u._components=f,u=new i(u.toString()),typeof r.uri=="string"&&(p=new i(r.uri),u=new i(p,u)),u},i.equals=function(n,t,r){if(r===void 0&&(r=!1),n===t)return!0;if(n===null)return t===null;if(t===null)return!1;if(n===undefined)return t===undefined;if(t===undefined)return!1;var u,f;return u=typeof n=="string"?new i(n,0):n,f=typeof t=="string"?new i(t,0):t,i.stringEquals(u.toString(),f.toString(),r)?!0:u._scheme===f._scheme&&u._userinfo===f._userinfo&&u._hostname===f._hostname&&u.port===f.port&&i.stringEquals(u._pathname,f._pathname,r)&&i.stringEquals(u._search,f._search,r)&&i.stringEquals(u._hash,f._hash,r)?!0:!1},i.compare=function(n,r,u,f,e){if(u===void 0&&(u=t.AbsoluteUri),f===void 0&&(f=1),e===void 0&&(e=!1),typeof u!="number")throw new TypeError("Invalid argument: partsToCompare.");if(typeof f!="number")throw new TypeError("Invalid argument: compareFormat.");if((f&-4)!=0)throw new RangeError("Argument out of range: compareFormat.");return n===r?0:n===null||n===undefined?r===null||r===undefined?0:-1:r===null||r===undefined?1:n.isAbsolute&&r.isAbsolute?i.compareStrings(n.getComponentsCore(u,f),r.getComponentsCore(u,f),e):n.isAbsolute?1:r.isAbsolute?-1:i.compareStrings(n.raw,r.raw,e)},i.getCurrent=function(){return typeof self!="undefined"?new i(self.location.href):new i(".")},i.prototype.getComponents=function(n,t){if(typeof n!="number"||typeof t!="number")throw new TypeError("Invalid argument: components.");if(typeof t!="number")throw new TypeError("Invalid argument: format.");if((t&-4)!=0)throw new RangeError("Argument out of range: format.");return n=i.adjustComponents(n),this.getComponentsCore(n,t)},i.prototype.toString=function(){return this.getComponentsCore(t.AbsoluteUri,3)},i.prototype.toJSON=function(){return this.toString()},i.prototype.isSameOrigin=function(n){if(n===null||n===undefined)throw new TypeError("Missing required argument: uri.");var r=n instanceof i?n:new i(String(n));return this.isAbsolute?this.getComponentsCore(t.Origin,1)===r.getComponentsCore(t.Origin,1):!r.isAbsolute},i.prototype.isBaseOf=function(n){var r;if(n===null||n===undefined)throw new TypeError("Missing required argument: uri.");var e=this.getComponentsCore(t.AbsoluteUri&-257,3),o=this.getComponentsCore(t.AbsoluteUri&-257,3),u=e.split(i.PATH_DELIMITER),f=o.split(i.PATH_DELIMITER);if(u.length>f.length)return!1;for(r=0;rt?1:nt?1:0},i.formatUserinfo=function(t,r){switch(r){case 1:t=i.escape(t,"?#","%");break;case 2:t=n.ToolWindowHelpers.tryDecodeURIComponent(t);break;case 3:t=i.unescape(t,"@/\\","safe")}return t},i.formatPath=function(t,r){switch(r){case 1:t=i.escape(t,"?#","%");break;case 2:t=n.ToolWindowHelpers.tryDecodeURIComponent(t);break;case 3:t=i.unescape(t,"?#","safe")}return t},i.formatSearch=function(n,t){switch(t){case 1:n=i.escape(n,"#","%");break;case 2:n=i.unescape(n,"#","all");break;case 3:n=i.unescape(n,"#","safe")}return n},i.formatHash=function(n,t){switch(t){case 1:n=i.escape(n,"","%");break;case 2:n=i.unescape(n,"#","all");break;case 3:n=i.unescape(n,"#","safe")}return n},i.escape=function(t,i,r){var u,s,h;if(!t)return t;var f=[],o=0,e="";for(u=0;u-1?e="forced":r.indexOf(s)>-1&&(e="reserved"),e!==""){if(o-1?u+=2:/^[;/?:@&=+$#%\\\x00-\x17]$/.test(f)?u+=2:(s(),a(f,o))}}else if(r==="all")continue;else i.indexOf(f)>-1&&(s(),v(f));return s(),c.join("")},i.parseCore=function(n,r,u){var o,l,e,a,p,f,w,v,y,h=0,b=n,s,c;if(n=n.trim(),f=n,r!==2){if(i.DosPath.test(n)&&(n="file:///"+n),s=i.UriParser.exec(n),s)o=s[i.SCHEME_INDEX],l=s[i.USERINFO_INDEX],e=s[i.HOSTNAME_INDEX],a=s[i.PORT_INDEX],f=s[i.PATHNAME_INDEX],w=!!s[i.SCHEMESEGMENT_INDEX],v=s[i.SEARCH_INDEX],y=s[i.HASH_INDEX],r=1;else{if(r===1){if(u)throw new URIError;return}r=2}if(!o&&w){if(u)throw new URIError;return}(o||e)&&f&&(f=f.replace(/\\/g,i.PATH_DELIMITER));o&&o.toLowerCase()===i.UriSchemeFile&&(/^\.{1,2}$/.test(e)&&/^([\\/]|$)/.test(f)||/^[a-z]$/i.test(e)&&/^:[\\/]/.test(f)?(f=e+f,e=undefined):e||(/^[\\/]\.{1,2}/.test(f)?f=f.substr(1):/^[\\/]{2,}/.test(f)&&(f=f.replace(/^[\\/]{2,}/,""),c=f.indexOf(i.PATH_DELIMITER),c>-1?(e=f.substr(0,c),f=f.substr(c)):(e=f,f=""))))}return typeof o=="string"&&(o=o.toLowerCase(),h|=1,(o===i.UriSchemeHttp||o===i.UriSchemeHttps)&&(h|=512)),typeof l=="string"&&(h|=2),typeof e=="string"&&(e=e.toLowerCase(),h|=4),typeof a=="string"&&(p=parseInt(a),h|=520),typeof f=="string"&&r!==2&&(f=i.normalizePath(f)),f&&(h|=t.Pathname),typeof v=="string"&&(h|=128),typeof y=="string"&&(h|=256),u||(u=Object.create(i.prototype)),u._scheme=o,u._userinfo=l,u._hostname=e,u._port=p,u._pathname=i.escape(f,"","%"),u._search=v,u._hash=y,u._raw=b,u._components=h,u},i.mergeCore=function(n,r,u){if(!u&&r.isAbsolute)return r;var o,h,c,l,f,s,a,e=0;return r._scheme?(o=r._scheme,h=r._userinfo,c=r._hostname,l=r._port,f=i.normalizePath(r._pathname),s=r._search):(r._hostname?(h=r._userinfo,c=r._hostname,l=r._port,f=i.normalizePath(r._pathname),s=r._search):(r._pathname?(r._pathname.charAt(0)===i.PATH_DELIMITER?f=i.normalizePath(r._pathname):(f=i.mergePath(n._pathname,r._pathname),f=i.normalizePath(f)),s=r._search):(f=n._pathname,s=r._search?r._search:n._search),h=n._userinfo,c=n._hostname,l=n._port),o=n._scheme),a=r._hash,typeof o=="string"&&(e|=1,(o===i.UriSchemeHttp||o===i.UriSchemeHttps)&&(e|=512)),typeof h=="string"&&(e|=2),typeof c=="string"&&(e|=4),typeof l=="number"&&(e|=520),f&&(e|=t.Pathname),typeof s=="string"&&(e|=128),typeof a=="string"&&(e|=256),u||(u=Object.create(i.prototype)),u._scheme=o,u._userinfo=h,u._hostname=c,u._port=l,u._pathname=f,u._search=s,u._hash=a,u._components=e,u._raw=u.toString(),u},i.mergePath=function(n,t){var r=-1;return n&&(r=n.lastIndexOf(i.PATH_DELIMITER)),r>=0?n.substr(0,r+1)+t:t},i.normalizePath=function(n){var t,u,r,f;for(n=n.replace(/^\s+|\s+$/g,""),n=n.replace(/\\+|\/+/g,i.PATH_DELIMITER),t=n.split(/\//g),u=t[0]==="",u&&t.shift(),r=0;r=1&&t[r-1]!==i.CURRENT_DIRECTORY_TOKEN&&t[r-1]!==i.PARENT_DIRECTORY_TOKEN){t.splice(--r,2);r===t.length&&t.push("");continue}}r++}return u&&t.unshift(""),t.join(i.PATH_DELIMITER)},i.computePathDifference=function(n,t,r){for(var e=-1,f,u=0;u-1&&(l=i.formatPath(u.substr(0,s+1),r)),o===16)return l;f||(f=[]);f.push(l)}if(a=o&t.Filename,a&&s-1?u.substr(s+1):u,a===t.Filename){if(e=i.formatPath(e,r),o===t.Filename)return e;f||(f=[]);f.push(e)}else if(h=e.lastIndexOf(i.EXTENSION_DELIMITER),a===32){if(v=h===-1?i.formatPath(e,r):h>0?i.formatPath(e.substr(0,h),r):"",o===32)return v;f||(f=[]);f.push(v)}else return h===0?i.formatPath(e,r):h>0?i.formatPath(e.substr(h),r):"";return f?f.join(""):""},i.UriParser=/^(?:([a-z][a-z0-9+.\-]*)[:|])?(?:[\\/]{2}(?:((?:[\w\-._~!$&'()*+,;=:]|%[a-f0-9]{2})*)@)?(\[[^\[\]]+\]|[\w\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF\.\-_]*)(?:\:(\d+))?|(?![\\/]{2}))(([^/\\?#]*:)?[^?#]*?)(?:\?([^#]*?))?(?:#(.*?))?$/i,i.DosPath=/^([a-z]\:|[\\/]{2,}[^\\/@:?#]+)[\\/]/i,i.SCHEME_INDEX=1,i.USERINFO_INDEX=2,i.HOSTNAME_INDEX=3,i.PORT_INDEX=4,i.PATHNAME_INDEX=5,i.SCHEMESEGMENT_INDEX=6,i.SEARCH_INDEX=7,i.HASH_INDEX=8,i.SCHEME_DELIMITER="//",i.PATH_DELIMITER="/",i.DOS_PATH_DELIMITER="\\",i.UNC_ROOT="\\\\",i.USERINFO_DELIMITER="@",i.SEARCH_DELIMITER="?",i.HASH_DELIMITER="#",i.CURRENT_DIRECTORY_TOKEN=".",i.PARENT_DIRECTORY_TOKEN="..",i.PROTOCOL_DELIMITER=":",i.PORT_DELIMITER=":",i.EXTENSION_DELIMITER=".",i.DEFAULT_PORT_HTTP=80,i.DEFAULT_PORT_HTTPS=443,i.SchemeDelimiter="://",i.UriSchemeHttp="http",i.UriSchemeHttps="https",i.UriSchemeFile="file",i.UriSchemeData="data",i}();n.Uri=i})(Common||(Common={}))
//# sourceMappingURL=uri.min.js.map
/*
 * TemplateControl
 */

.BPT-hidden {
    display: none !important;
}

/*
 *  Toolbar
 */

.BPT-Toolbar {
    width: 100%;
    color: TRANSPARENT; /*[{plugin-color}]*/
    background-color: TRANSPARENT; /*[{f12-toolbar-background-color}]*/
    border-bottom: 1px solid TRANSPARENT; /*[1px solid {plugin-treeview-content-inactive-selected-background-color}]*/
    display: -ms-grid;
    padding-top: 1px;
    padding-bottom: 2px;
    -ms-grid-rows: auto;
    -ms-grid-columns: 1fr auto;
    cursor: default;
}

    .BPT-Toolbar > .BPT-ToolbarContents {
        -ms-grid-column: 1;
        margin-top: 1px;
        padding-left: 14px;
    }

        .BPT-Toolbar > .BPT-ToolbarContents > .buttons {
            display: inline-block;
            margin-right: 10px;
            white-space: nowrap;
        }

        .BPT-Toolbar > .BPT-ToolbarContents > .BPT-ToolTitle {
            font-family: "Segoe UI", Arial, sans-serif; /*[{plugin-font-family} , Arial, sans-serif]*/
            font-size: 20px;
            font-weight: 200;
            padding-right: 42px;
            line-height: 29px;
        }

/* Use less padding in F12 to align to the F12 logo*/
html.hostedF12 .BPT-Toolbar > .BPT-ToolbarContents {
    padding-left: 9px;
}

/*
 *  Button
 */

.BPT-button {
    display: inline-block;
    padding: 2px;
    background: transparent;
    border: 1px solid transparent;
    color: TRANSPARENT; /*[{plugin-color}]*/
}

    .BPT-button.iconButton24x24 {
        height: 24px;
        width: 24px;
    }

    .BPT-button.menuButton33x24 {
        height: 24px;
        width: 33px;
    }

    .BPT-button.labeledIconButton,
    .BPT-button.labeledIconButton33x24,
    .BPT-button.iconButton {
        padding-bottom: 0px;
    }

    .BPT-button .buttonIcon {
        background-color: transparent;
        background-position: 0px 0px;
        background-repeat: no-repeat;
        display: inline-block;
    }

    .BPT-button.iconButton24x24 .buttonIcon {
        background-size: 18px 54px;
        height: 18px;
        width: 18px;
    }

    .BPT-button.menuButton33x24 .buttonIcon {
        background-size: 27px 54px;
        height: 18px;
        width: 27px;
    }

    .BPT-button.iconButton .buttonIcon,
    .BPT-button.labeledIconButton .buttonIcon {
        background-size: 18px 54px;
        padding-bottom: 0px;
        height: 18px;
        width: 18px;
    }

    .BPT-button.labeledIconButton33x24 .buttonIcon {
        background-size: 27px 54px;
        padding-bottom: 0px;
        height: 18px;
        width: 27px;
    }

    .BPT-button.imageStates5 .buttonIcon {
        background-size: 27px 90px;
    }

    .BPT-button .buttonText {
        display: inline-block;
        float: right;
        min-width: 8px;
        margin: 0px 5px 0px 5px;
        text-align: right;
        cursor: default;
    }

    .BPT-button.checked {
        color: TRANSPARENT; /*[{f12-toolbar-button-selected-text-color}]*/
        background-color: TRANSPARENT; /*[{f12-toolbar-button-selected-color}]*/
        border-color: TRANSPARENT; /*[{f12-toolbar-button-selected-border-color}]*/
    }

        .BPT-button.checked .buttonIcon {
            background-position-y: -18px;
        }

    .BPT-button:hover {
        color: TRANSPARENT; /*[{f12-toolbar-button-hover-text-color}]*/
        background-color: TRANSPARENT; /*[{f12-toolbar-button-hover-color}]*/
    }

        .BPT-button:hover .buttonIcon {
            background-position-y: -18px;
        }

    .BPT-button.menuButton33x24:hover .buttonIcon {
        background-position-y: -18px;
    }

    .BPT-button.pressed {
        background-color: TRANSPARENT; /*[{f12-toolbar-button-pressed-color}]*/
    }

    .BPT-button.disabled {
        background-color: transparent;
    }

    .BPT-button.iconButton.disabled .buttonIcon {
        background-position-y: -36px;
    }

    .BPT-button.iconButton24x24.disabled .buttonIcon {
        background-position-y: -36px;
    }

    .BPT-button.menuButton33x24.disabled .buttonIcon {
        background-position-y: -72px;
    }

    .BPT-button.labeledIconButton.disabled .buttonIcon {
        background-position-y: -36px;
    }

    .BPT-button.hidden {
        display: none;
    }

    .BPT-button:focus {
        outline: invert dotted thin;
    }

.BPT-Toolbar .BPT-button {
    margin-right: 7px;
}

/*
 *  Textbox
 */

.BPT-TextBox:not([disabled]):-ms-input-placeholder {
    background-color: TRANSPARENT; /*[{plugin-searchcontrol-unfocused-background-color}]*/
    color: TRANSPARENT; /*[{plugin-searchcontrol-unfocused-watermark-text-color}]*/
}

.BPT-TextBox:not([disabled]):hover:-ms-input-placeholder {
    background-color: TRANSPARENT; /*[{plugin-searchcontrol-mouseover-background-background-color}]*/
    color: TRANSPARENT; /*[{plugin-searchcontrol-mouseover-watermark-text-color}]*/
}


/*
 *  Searchbox
 */

#searchNextResult {
    right: 0;
    top: 2px;
}

#searchPreviousResult {
    right: 11px;
    top: 2px;
}

.BPT-SearchBox {
    color: TRANSPARENT; /*[{plugin-searchcontrol-mouseover-background-foreground-color}]*/
    background-color: transparent;
    border: none;
    height: 18px;
    width: 119px;
    padding: 1px 2px;
    margin-right: 26px;
}

    /* Disable "x" in input boxes. */
    .BPT-SearchBox::-ms-clear {
        display: none;
    }

    .BPT-SearchBox::selection {
        background-color: TRANSPARENT; /*[{plugin-searchcontrol-selection-color}]*/
    }

    .BPT-SearchBox:-ms-input-placeholder {
        color: TRANSPARENT; /*[{plugin-searchcontrol-unfocused-watermark-text-color}]*/
        background-color: TRANSPARENT; /*[{plugin-searchcontrol-unfocused-background-color}]*/
    }

.BPT-SearchBox-Border {
    float: right;
    background-color: TRANSPARENT; /*[{plugin-searchcontrol-mouseover-background-background-color}]*/
    border: 1px solid TRANSPARENT; /*[1px solid {plugin-searchcontrol-unfocused-border-color}]*/
    margin-top: 3px;
    padding: 1px;
    display: inline-block;
    position: relative;
    margin-right: 6px;
}

    .BPT-SearchBox-Border:hover {
        background-color: TRANSPARENT; /*[{plugin-searchcontrol-mouseover-background-background-color}]*/
        border: 1px solid TRANSPARENT; /*[1px solid {plugin-searchcontrol-mouseover-border-color}]*/
    }

.BPT-SearchBox-NoResult {
    border: 1px solid TRANSPARENT; /*[1px solid {plugin-font-console-error-color}]*/
}

    .BPT-SearchBox-NoResult:hover {
        border: 1px solid TRANSPARENT; /*[1px solid {plugin-font-console-error-color}]*/
    }

.BPT-SearchBox-Border .BPT-Search-Button {
    display: inline-block;
    position: absolute;
}

    .BPT-SearchBox-Border .BPT-Search-Button:not([disabled]):hover div {
        background-position-x: -16px;
    }

    .BPT-SearchBox-Border .BPT-Search-Button[disabled] div {
        visibility: hidden;
    }

    .BPT-SearchBox-Border .BPT-Search-Button .BPT-Search-Next {
        background-image: url(""); /*[url({plugin-common-image-find-next})]*/
        background-repeat: no-repeat;
        background-position: 0 0;
        background-size: 48px 16px;
        display: inline-block;
        width: 16px;
        height: 16px;
    }

    .BPT-SearchBox-Border .BPT-Search-Button .BPT-Search-Previous {
        background-image: url(""); /*[url({plugin-common-image-find-previous})]*/
        background-repeat: no-repeat;
        background-position: 0 0;
        background-size: 48px 16px;
        display: inline-block;
        width: 16px;
        height: 16px;
    }

/*
 *  Popup
 */

.BPT-popup {
    position: absolute;
    z-index: 2000;
}

/*
 *  Menu
 */

.BPT-menuControl {
    border: 1px solid TRANSPARENT; /*[1px solid {f12-toolbar-button-selected-border-color}]*/
    box-shadow: 2px 2px 2px TRANSPARENT; /*[2px 2px 2px {plugin-textbox-border-color rgba(0.5)}]*/
    background-color: TRANSPARENT; /*[{plugin-menucontrol-background-color}]*/
    display: table-cell;
    width: auto;
    white-space: nowrap;
}

.BPT-menuContent {
    list-style-type: none;
    padding: 2px;
    margin: 0px;
}

    .BPT-menuContent > li.menuItem {
        cursor: default;
        padding: 4px;
    }

        .BPT-menuContent > li.menuItem:not([disabled]):hover {
            cursor: pointer;
            color: TRANSPARENT; /*[{plugin-treeview-content-mouseover-color}]*/
            background-color: TRANSPARENT; /*[{plugin-treeview-content-mouseover-background-color}]*/
        }

        .BPT-menuContent > li.menuItem.selected {
            color: TRANSPARENT; /*[{plugin-treeview-content-mouseover-color}]*/
            background-color: TRANSPARENT; /*[{plugin-treeview-content-mouseover-background-color}]*/
        }

        .BPT-menuContent > li.menuItem > .gutter {
            height: 12px;
            width: 12px;
            padding-right: 3px;
            vertical-align: middle;
            float: left;
        }

        .BPT-menuContent > li.menuItem.hiddenCheckMark > .menuToggleItem {
            visibility: hidden;
        }

    .BPT-menuContent > hr {
        border: none;
        border-top: 1px solid TRANSPARENT; /*[1px solid {vs-command-bar-menu-separator-color}]*/
        margin: 2px -2px 2px -2px;
    }

    /* Override for checkbocMenuItem*/
    .BPT-menuContent > li.menuItem > input[type="checkbox"] {
        margin-top: -2px;
    }

    /* Override for comboBoxMenuItem */
    .BPT-menuContent > li.menuItem > select {
        width: 100%;
    }

    .BPT-menuContent > li.menuItem:not([disabled]).comboBoxMenuItem {
        background-color: TRANSPARENT;
    }

    /* Override for textBoxMenuItem */
    .BPT-menuContent > li.menuItem:not([disabled]).textBoxMenuItem {
        background-color: TRANSPARENT;
    }

/*
 *  Popup
 */

.BPT-popupActive {
    background-color: TRANSPARENT !important; /*[{f12-toolbar-button-selected-color}  !important]*/
    border-color: TRANSPARENT !important; /*[{f12-toolbar-button-selected-border-color} !important]*/
}

/*
 * Ribbon
 */

.BPT-ribbonPanel {
    overflow: hidden;
    position: relative; /* Ensures the ribbon panel is offset parent, property can be overriden */
}

    .BPT-ribbonPanel > * {
        position: relative;
    }

.BPT-horizontalRibbonPanel {
    white-space: nowrap;
}

    .BPT-horizontalRibbonPanel > * {
        display: inline-block;
    }

/*
 * Color picker
 */

.colorPicker, .colorPicker * {
    box-sizing: border-box;
    overflow: visible;
}

.colorPicker {
    background-color: TRANSPARENT; /*[{plugin-background-color}]*/
    border: 1px solid TRANSPARENT; /*[1px solid {plugin-border-color}]*/
    border-bottom: none;
    box-shadow: 2px 2px 2px TRANSPARENT; /*[2px 2px 2px {plugin-box-shadow-color rgba(0.5)}]*/
    width: 200px;
}
     body.xamlWindow .colorPicker {
        width: 204px;
    }

    .colorPicker .BPT-ribbonPanel:focus, .colorPicker .colorSlider:focus {
        outline: invert dotted thin;
    }

    .colorPicker > * {
        border-bottom: 1px solid TRANSPARENT; /*[1px solid {plugin-border-color}]*/
        height: 27px; /* 24px buttons + 2 * 1px padding + 1px border-bottom */
        padding: 1px;
        width: 100%;
    }

    .colorPicker > .selectedColorPane {
        display: -ms-grid;
    }

    .colorPicker > .slidersPane {
        height: auto;
        overflow-y: auto;
        padding: 12px;
    }

    .colorPicker .BPT-button.colorSquare {
        background-image: url("../common/images/colorPicker/checkeredBackground.png"); /*[url({plugin-common-image-colorpicker-color-background})]*/
        border: 1px solid TRANSPARENT; /*[1px solid {plugin-border-color}]*/
        height: 20px;
        margin: 2px;
        padding: 0;
        width: 20px;
    }

        .colorPicker .BPT-button.colorSquare .buttonIcon {
            height: 100%;
            width: 100%;
        }

    .colorPicker .selectedColorPane .BPT-button.colorSquare {
        outline: none; /* not focusable, don't show indicator on click */
    }

    .colorPicker .selectedColorValue {
        -ms-grid-column: 2;
        -ms-grid-row-align: center;
        background-color: TRANSPARENT;
        border: none;
        width: 140px;
    }

    .colorPicker .eyedropperButton .buttonIcon {
        background-image: url("../common/images/colorPicker/eyedropperButton.png"); /*[url({plugin-common-image-colorpicker-eyedropper})]*/
    }

    .colorPicker .slidersButton .buttonIcon {
        background-image: url("../common/images/colorPicker/sliderButton.png"); /*[url({plugin-common-image-colorpicker-slider-button})]*/
    }

    .colorPicker .colorToolsPane > * {
        float: left;
        height: 24px;
    }

    .colorPicker .colorPalette {
        float: right;
    }

        .colorPicker .colorPalette > * {
            float: left;
        }

    .colorPicker .colorPaletteProgress {
        background-color: TRANSPARENT; /*[{plugin-background-color}]*/
        position: absolute;
        right: 17px; /* 1px padding + 17px arrow button */
        z-index: 5000;
    }

    .colorPicker .colorPalettePanel {
        height: 24px;
        margin-left: 4px;
        margin-right: 4px;
        overflow-x: hidden;
        width: 104px; /* 4 * 20px squares + 6 * 4px margin */
    }

     body.xamlWindow .colorPicker .colorPalettePanel {
        width: 160px; /* 6 * 20px squares + 10 * 4px margin */
    }

        .colorPicker .colorPalettePanel > .BPT-button.colorSquare {
            margin-left: 4px;
            margin-right: 4px;
        }

            .colorPicker .colorPalettePanel > .BPT-button.colorSquare.BPT-selected {
                border-color: TRANSPARENT; /*[{f12-toolbar-button-selected-border-color}]*/
                border-width: 1px;
            }

    .colorPicker .arrowButton {
        background-size: 48px 16px;
        height: 16px;
        margin-bottom: 4px;
        margin-top: 4px;
        width: 16px;
    }

        .colorPicker .arrowButton:hover {
            background-position-x: -16px;
        }

        .colorPicker .arrowButton.disabled {
            background-position-x: -32px;
        }

        .colorPicker .arrowButton.arrowLeft {
            background-image: url("../common/images/i_previous.png"); /*[url({plugin-common-image-icon-previous})]*/
        }

        .colorPicker .arrowButton.arrowRight {
            background-image: url("../common/images/i_next.png"); /*[url({plugin-common-image-icon-next})]*/
        }

    .colorPicker .hslText {
        float: right;
        text-align: right;
        width: 35px;
    }

    .colorPicker input[type=range].colorSlider {
        display: block;
        background-position-y: center;
        background-repeat: no-repeat;
        background-size: 100% 7px;
        border: none;
        height: 15px;
        margin: 4px 0 10px 0;
        padding: 0;
        width: 100%;
    }

        .colorPicker input[type=range].colorSlider:last-child {
            margin-bottom: 0px;
        }

        .colorPicker input[type=range].colorSlider::-ms-track {
            background-color: transparent;
            border-color: transparent;
            width: 0;
        }

        .colorPicker input[type=range].colorSlider::-ms-thumb {
            height: 15px;
            width: 5px;
        }

        .colorPicker input[type=range].colorSlider::-ms-tooltip {
            display: none;
        }

        .colorPicker input[type=range].colorSlider.hueSlider {
            background-image: url("../common/images/colorPicker/hueColorBar.png"); /*[url({plugin-common-image-colorpicker-hue})]*/
        }

        .colorPicker input[type=range].colorSlider.saturationSlider {
            background-image: url("../common/images/colorPicker/saturationColorBar.png"); /*[url({plugin-common-image-colorpicker-saturation})]*/
        }

        .colorPicker input[type=range].colorSlider.lightnessSlider {
            background-image: url("../common/images/colorPicker/lightnessColorBar.png"); /*[url({plugin-common-image-colorpicker-lightness})]*/
        }

        .colorPicker input[type=range].colorSlider.alphaSlider {
            background-image: url("../common/images/colorPicker/alphaColorBar.png"); /*[url({plugin-common-image-colorpicker-alpha})]*/
        }

/*
 *   TabControl styles
 */

.BPT-tabControl {
    height: 100%;
    display: -ms-grid;
    -ms-grid-columns: 1fr;
    -ms-grid-rows: auto 1fr;
    box-sizing: border-box;
    width: 100%;
}

    .BPT-tabControl > .tabHeader {
        -ms-grid-column: 1;
        -ms-grid-columns: auto 1fr auto;
        -ms-grid-row: 1;
        background-color: TRANSPARENT; /*[{plugin-contextmenu-background-color}]*/
        border-bottom: 1px solid #cccedb; /*[1px solid {plugin-border-color}]*/
        display: -ms-grid;
        overflow: visible;
    }

        .BPT-tabControl > .tabHeader * {
            overflow: visible;
        }

        .BPT-tabControl > .tabHeader > .beforeBarContainer {
            -ms-grid-column: 1;
            -ms-grid-row: 1;
            box-sizing: border-box;
        }

        .BPT-tabControl > .tabHeader > .tabBarContainer {
            -ms-grid-column: 2;
            -ms-grid-row: 1;
            -ms-grid-column-align: end;
            -ms-grid-row-align: center;
            box-sizing: border-box;
        }

        .BPT-tabControl > .tabHeader > .tabBarContainerLeftAlign {
            -ms-grid-column-align: start;
        }

        .BPT-tabControl > .tabHeader > .afterBarContainer {
            -ms-grid-column: 3;
            -ms-grid-row: 1;
            box-sizing: border-box;
        }

    .BPT-tabControl ul.tabBar {
        list-style-type: none;
        margin: 0;
        margin-right: 20px;
        padding: 0;
        cursor: default;
    }

        .BPT-tabControl ul.tabBar li {
            border: 1px solid transparent;
            color: black; /*[{plugin-color}]*/
            display: inline-block;
            font-size: 100%;
            font-family: "Segoe UI", Arial, sans-serif; /*[{plugin-font-family} , Arial, sans-serif]*/
            padding: 5px 14px 5px 14px;
            position: relative;
            top: 1px;
        }

            .BPT-tabControl ul.tabBar li.disabled {
                color: black; /*[{plugin-color rgba(0.5)}]*/
            }

            .BPT-tabControl ul.tabBar li:hover:not(.disabled) {
                background-color: lightgray; /*[{plugin-contextmenu-hover-color}]*/
                color: black; /*[{plugin-contextmenu-hover-text-color}]*/
                cursor: pointer;
            }

            .BPT-tabControl ul.tabBar li:focus:not(.disabled) {
                outline: 1px dotted TRANSPARENT; /*[1px dotted {plugin-color}]*/
            }

            .BPT-tabControl ul.tabBar li.active:not(.disabled) {
                background-color: transparent; /*[{plugin-background-color}]*/
                border: 1px solid #cccedb; /*[1px solid {plugin-border-color}]*/
                border-bottom-color: transparent; /*[{plugin-background-color}]*/
                color: #007acc; /*[{plugin-link-color}]*/
            }

    .BPT-tabControl > .tabContentPane {
        -ms-grid-column: 1;
        -ms-grid-column-span: 3;
        -ms-grid-row: 2;
        box-sizing: border-box;
        position: relative;
    }

        .BPT-tabControl > .tabContentPane > .tabItemContent {
            position: absolute;
            visibility: hidden;
        }

        .BPT-tabControl > .tabContentPane > .active {
            visibility: visible;
        }

.BPT-tabItem {
    width: 100%;
    height: 100%;
}

/*
 *   SourceInfo
 */

.BPT-sourceInfoTooltip {
    -ms-grid-columns: auto 5px auto;
    -ms-grid-rows: 4;
    display: -ms-grid;
    width: 237px;
}

    .BPT-sourceInfoTooltip .sourceInfoNameLabel {
        -ms-grid-column: 1;
        -ms-grid-row: 1;
    }

    .BPT-sourceInfoTooltip .sourceInfoName {
        -ms-grid-column: 3;
        -ms-grid-row: 1;
        word-break: break-all;
    }

    .BPT-sourceInfoTooltip .sourceInfoFileLabel {
        -ms-grid-column: 1;
        -ms-grid-row: 2;
    }

    .BPT-sourceInfoTooltip .sourceInfoFile {
        -ms-grid-column: 3;
        -ms-grid-row: 2;
        word-break: break-all;
    }

    .BPT-sourceInfoTooltip .sourceInfoLineLabel {
        -ms-grid-column: 1;
        -ms-grid-row: 3;
    }

    .BPT-sourceInfoTooltip .sourceInfoLine {
        -ms-grid-column: 3;
        -ms-grid-row: 3;
        word-break: break-all;
    }

    .BPT-sourceInfoTooltip .sourceInfoColumnLabel {
        -ms-grid-column: 1;
        -ms-grid-row: 4;
    }

    .BPT-sourceInfoTooltip .sourceInfoColumn {
        -ms-grid-column: 3;
        -ms-grid-row: 4;
        word-break: break-all;
    }

/*
 *  Miscellaneous
 */

/* Hide the tool title in VS but not in F12 */
.BPT-ToolTitle {
    display: none;
}

.iconShell_18x18 {
    background-color: transparent;
    border: 1px solid transparent;
    height: 18px;
    width: 18px;
    margin-left: 8px;
}

.iconShell_24x24 {
    background-color: transparent;
    border: 1px solid transparent;
    height: 24px;
    width: 24px;
}

.iconShell_33x24 {
    background-color: transparent;
    border: 1px solid transparent;
    height: 24px;
    width: 33px;
}

.icon_14x14 {
    background-position: 0px 0px;
    background-repeat: no-repeat;
    background-size: 16px 48px;
    height: 16px;
    width: 16px;
}

.icon_16x16 {
    background-position: 0px 0px;
    background-repeat: no-repeat;
    background-size: 18px 54px;
    height: 18px;
    margin: 3px 0px 0px 3px;
    width: 18px;
}

.icon_25x16 {
    background-position: 0px 0px;
    background-repeat: no-repeat;
    background-size: 27px 90px;
    height: 18px;
    margin: 3px 0px 0px 3px;
    width: 27px;
}

.themeColor {
    color: TRANSPARENT; /*[{plugin-theme-color}]*/
}
//! Copyright (C) Microsoft. All rights reserved.
var Common;(function(n){var t;(function(n){"use strict";var t=Microsoft.Plugin,r=function(){function n(n){if(this._proxy=n,!this._proxy)throw new Error(t.Resources.getErrorString("JSPerf.1055"))}return n.prototype.startSession=function(n,r,u){var f=this;return new t.Promise(function(t,e){f._proxy.startSession(n,r,u,function(n){t(new i(n))},function(n){e&&e(new Error(n.toString()))})})},n.prototype.stopCollection=function(){this._proxy.stopCollection()},n}(),i;n.F12EtwDataCollector=r;i=function(){function n(n){this._proxy=n}return n.prototype.stop=function(){var n=this;return new t.Promise(function(t,i){n._proxy.stop(function(n){t(n)},function(n){i&&i(new Error("Error: "+n))})})},n.prototype.getGraphDataUpdate=function(n){var i=this;return new t.Promise(function(t,r){i._proxy.getGraphDataUpdate(n,function(n){t(n)},function(n){r&&r(new Error("Error: "+n))})})},n.prototype.sendStringToCollectionAgent=function(n){var i=this;return new t.Promise(function(t,r){i._proxy.sendStringToCollectionAgent(n,function(n){t(n)},function(n){r&&r(new Error("Error: "+n))})})},n.prototype.addEventListener=function(n,t){this._proxy.addEventListener(n,t)},n.prototype.removeEventListener=function(n,t){this._proxy.removeEventListener(n,t)},n.prototype.isEventListenerAttached=function(n,t){return this._proxy.isEventListenerAttached(n,t)},n.prototype.removeAllEventListeners=function(){this._proxy.removeAllEventListeners()},n}();n.F12EtwDataCollectorSession=i})(t=n.Data||(n.Data={}))})(Common||(Common={}))
//# sourceMappingURL=EtwDataCollector.min.js.map
//! Copyright (C) Microsoft. All rights reserved.
var Common;(function(n){var t;(function(t){"use strict";var i=function(){function t(n,t,i,r,u,f){this._dataIndex=n;this._columnIndex=t;this._ignoreCommitCallback=!1;this._gridControl=r;this._options=u;this._editElement=i;this._textValue=i.hasAttribute("grid-edit-value")?i.getAttribute("grid-edit-value"):i.innerText;this._cachedInnerHTML=i.innerHTML;this._inputElement=f||document.createElement("input");this._inputElement.value=this._textValue;this._inputElement.classList.add("grid-edit-box");this._keyboardHandler=this.keyboardHandler.bind(this);this._inputElement.addEventListener("keydown",this._keyboardHandler);this._focusHandler=this.focusHandler.bind(this);this._inputElement.addEventListener("focusout",this._focusHandler)}return Object.defineProperty(t.prototype,"inputElement",{get:function(){return this._inputElement},enumerable:!0,configurable:!0}),t.prototype.dismiss=function(){this._editElement.innerHTML=this._cachedInnerHTML;this._editElement.focus();this.notifyPostEdit()},t.prototype.notifyPostEdit=function(){this._inputElement.removeEventListener("keydown",this._keyboardHandler);this._inputElement.removeEventListener("focusout",this._focusHandler);typeof this._options.postEditCellCallback!="undefined"&&this._options.postEditCellCallback(this._dataIndex,this._columnIndex)},t.prototype.keyboardHandler=function(t){var e=this._gridControl.getRowInfo(this._dataIndex),f=this._gridControl.getColumns(),u,i,r;if(t.keyCode===13)return this.commitValue(t),t.stopPropagation(),!1;if(t.keyCode===27)return this.dismiss(),t.stopPropagation(),t.preventDefault(),!1;if(t.keyCode===9){if(this._options.commitOnTab)this.commitValue(t);else if(e){if(u=e.row.children,this._ignoreCommitCallback=!0,this._editElement.innerHTML=this._cachedInnerHTML,this.notifyPostEdit(),i=this._columnIndex,t.shiftKey){while(i>0)if(i--,r=u[i],r.classList.contains("grid-cell-editable")){this._gridControl.createEditBox(this._dataIndex,i,r);break}}else{while(i0&&i===f.length-1&&u[0].parentElement.focus()}return t.stopPropagation(),!1}}else return t.keyCode===38||t.keyCode===40||t.keyCode===33||t.keyCode===34?!0:(t.stopPropagation(),n.preventIEKeys(t))},t.prototype.focusHandler=function(n){this.commitValue(n)},t.prototype.commitValue=function(n){var t=this._inputElement.value;return this._editElement.innerText=this._ignoreCommitCallback?this._textValue:t,this._options.commitEditCellCallback&&!this._ignoreCommitCallback&&this._options.commitEditCellCallback(t,this._dataIndex,this._columnIndex),this.notifyPostEdit(),n.stopPropagation(),n.preventDefault(),!1},t}();t.GridCellEditControl=i})(t=n.Grid||(n.Grid={}))})(Common||(Common={}))
//# sourceMappingURL=gridCellEditControl.min.js.map
//! Copyright (C) Microsoft. All rights reserved.
var __extends=this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);r.prototype=t.prototype;n.prototype=new r},Common;(function(n){var t;(function(t){"use strict";var f,c,i,e,o,s,l,u,a,r,h,v;(function(n){var t=function(){function t(){}return t.stableReverse=function(n,t){for(var r,u,f=[],i=n.length-1;i>=0;i--){for(r=i-1;r>=0;r--)if(0!==t(n[r],n[i]))break;for(u=r+1;u<=i;u++)f.push(n[u]);i=r+1}for(i=0;i0){for(i=[],t={level:1,origCount:n.length,remainingCount:n.length},i.push(t),r=0;r0&&(o={level:u[u.length-1]+1,origCount:f,remainingCount:f},i.push(o),t=o);r++}if(i.length>0)throw new Error("invalid descendant counts, more input expected")}return u},c.addItemsToTree=function(n,t,i,r,u){for(var e,s,h=Math.min(i+r,n.length),f=i;f0&&(c.addItemsToTree(n,t,f+1,s,e),f+=s),u.children.push(e)},c.walkTree=function(n,t){var u,i,r,f;if(t&&(t(n),u=0,i=n.children,i&&(u=i.length)))for(r=0;r1?parseInt(o[1],10):0,o=r.split("."),r=o[0],u=o.length>1?o[1]:"",f>0?(u=y(u,f,!1),r+=u.slice(0,f),u=u.substr(f)):f<0&&(f=-f,r=y(r,f+1,!0),u=r.slice(-f,r.length)+u,r=r.slice(0,-f)),u.length>0&&(u=c.NumberDecimalSeparator+u),t===!0){for(var l=c.NumberGroupSizes,a=c.NumberGroupSeparator,s=l[0],v=1,e=r.length-1,h="";e>=0;){if(s===0||s>e)return h.length>0?r.slice(0,e+1)+a+h+u:r.slice(0,e+1)+u;h=h.length>0?r.slice(e-s+1,e+1)+a+h:r.slice(e-s+1,e+1);e-=s;v=0;r--)u=t[r],Math.abs(u)>f?(t[r]=u<0?u-e:u+e,f=0):f++},c.prototype._takeMeasurements=function(){var f=this._options.coreCssClass,n,r,t,i,u;this._options.cssClass&&(f+=" "+this._options.cssClass);n=this.createElementWithClass("div",f);n.style.position="absolute";n.style.left="-5000px";n.style.top="-5000px";n.style.width="1000px";n.style.height="500px";document.body.appendChild(n);r=this.createElementWithClass("div","grid-row grid-row-normal");n.appendChild(r);t=this.createElementWithClass("div","grid-cell");t.style.width="100px";t.innerText="1";r.appendChild(t);this._measurements.rowHeight=r.offsetHeight;this._measurements.cellOffset=t.offsetWidth-100;i=this.createElementWithClass("div");i.style.overflow="hidden";i.style.width="1em";i.style.height="1ex";t.appendChild(i);this._measurements.unitEx=i.offsetHeight;u=this.createElementWithClass("div","grid-gutter");u.appendChild(this.createElementWithClass("div","grid-gutter-row grid-gutter-row-selected"));n.appendChild(u);this._measurements.gutterWidth=this._gutter?u.clientWidth:0;document.body.removeChild(n)},c.prototype.initializeDataSource=function(){if(this._resetScroll){this._ignoreScroll=!0;try{var n=this._canvas;n.scrollTop=0;n.scrollLeft=0;this._scrollLeft=0;this._scrollTop=0;this._resetScroll=!1}finally{this._ignoreScroll=!1}}this.setDataSource(this._options.source,this._options.expandStates,this._options.columns,this._options.sortOrders);this._expandedCount>0?this._options.keepSelection&&this._selectedIndex>=0?this._selectRow(Math.min(this._selectedIndex,this._expandedCount-1)):this._selectRow(this._options.initialSelection!==!1?0:-1):this.setSelectedRowIndex(-1)},c.prototype.setDataSource=function(n,t,i,r,u,f,e){var h=this,s,l,v,o,a;if(this._rowInfoMap={},this._dataSource=n||[],this._count=v=this._dataSource.length,t?(this._expandStates=t,this._indentLevels=c.expand(t)):(this._indentLevels=null,this._expandStates=null),this.expandedCount=v,this._updateRanges(),this._columns=[],i){var y=function(n,t,i,r,u,f,e){return h._drawCell(n,t,i,r,u,f,e)},p=function(n,t){return h._drawHeaderCellValue(n,t)},w=function(n,t,i){return h.getColumnValue(n,t,i)};for(s=0,l=i.length;s=0&&(this._count<=this._selectedIndex&&(this._selectedIndex=this._count-1),this._selectedIndex!==t&&this._addSelection(this._selectedIndex))},c.prototype.getRowInfo=function(n){return this._rows[n]},c.prototype.getRowData=function(n){return this._dataSource[n]},c.prototype.getColumns=function(){return this._columns||[]},c.prototype.getSortOrder=function(){return this._sortOrder||[]},c.prototype.insertAdditionalDynamicData=function(n,t){typeof n!="undefined"&&this._adjustForDynamicData(n.itemsWithPlaceholders,n.expandStates,t-1)},c.prototype._determineIndentIndex=function(){for(var t=this._columns,n=0,i=t.length;n=t.start){if(n<=t.end)return r+n-t.start}else break;r+=t.end-t.start+1}return-Math.max(0,r-1)},c.prototype._updateRanges=function(){var n=0,i=0,u=this._count,t=[],f=0,e;if(this._expandStates){while(n0)){if(this._options.onRowToggleCallback)this._options.onRowToggleCallback(this._dataSource,n,!1);this._expandStates[n]=-t;this._updateRanges();i=this._rows[n];i&&(i.isDirty=!0)}this.layout()}},c.prototype.expandAllNodes=function(){var n=0,f=this._count,t=this._expandStates,i=!1,e=this._rows,r,u;if(t){while(n0&&(t[n]=-r,i=!0,u=e[n],u&&(u.isDirty=!0)),n++;i&&this._updateRanges()}return i},c.prototype.expandAll=function(){var n=this;this._updateExpansionStateAndRedraw(function(){return n.expandAllNodes})},c.prototype.collapseAll=function(){var n=this;this._updateExpansionStateAndRedraw(function(){return n.collapseAllNodes})},c.prototype._updateExpansionStateAndRedraw=function(n){var i,t=this._selectedIndex;t>=0&&(i=this._getDataIndex(t));n();t>=0&&(this._clearSelection(),this._addSelection(Math.abs(this._getRowIndex(i))));this._layoutContentSpacer();this._redraw();this._notifyForPrerender()},c.prototype.tryToggle=function(n,t,i){var u,r,f;if(!this._expandStates||this._selectedIndex<0||this._expandedCount<=0||(r=typeof i!="undefined"?i:this._getDataIndex(this._selectedIndex),f=this._rows[r],!f))return!1;if(u=this._expandStates[r],u!==0){if(n)if(u<0)this.expandNode(r);else return!1;else if(u>0)this.collapseNode(r);else return!1;return this._clearSelection(),this._addSelection(this._getRowIndex(r),null,null,!0),this._layoutContentSpacer(),this._redraw(),this._notifyForPrerender(),!0}return!1},c.prototype.layoutOnResize=function(){this._onContainerResize(undefined)},c.prototype._getVisibleRowIndices=function(){var n=this._scrollTop,r=n+this._canvasHeight,t=this._expandedCount-1,i=this._measurements.rowHeight;return{first:Math.min(t,Math.max(0,Math.ceil(n/i))),last:Math.min(t,Math.floor(r/i)-1)}},c.prototype._getRowIntoView=function(n,t){if(t)return this._canvas.scrollTop=Math.max(0,Math.min(n||0,this._expandedCount-1))*this._measurements.rowHeight,!0;var u=this._getVisibleRowIndices(),i=u.first,f=u.last,r=f-i;return nf?(i=this._selectedIndex>i?Math.max(n-r,0):Math.max(0,Math.min(n+r,this._expandedCount-1)-r),this._canvas.scrollTop=i*this._measurements.rowHeight,!0):!1},c.prototype.getSelectedRowIntoView=function(n){return this._getRowIntoView(this._selectedIndex,n)},c.prototype.cacheRows=function(){},c.prototype._updateViewport=function(n,t){for(var h,l=this._count,o=[],s=[],e=[],a=this._expandStates||[],v=this._expandedCount-1,f=this.getViewPortRanges(),c=Math.max(0,f.start-this._options.payloadSize),y=Math.min(v,f.end+this._options.payloadSize),i=this._getDataIndex(c),p=f.start,r=c;r<=y&&if.end?s[s.length]=new u(r,i):(e[e.length]=new u(r,i),p=r,this._lastRenderedDataIndex=i),h=a[i],h<0?i+=1-h:i++;this.measureColumnSize(t);this.cacheRows(o,e,s);this._drawRows(e,n)},c.prototype._cleanUpRows=function(){var t=this._rows,r=this._gutter,i,n;for(i in t)n=t[i],n.row.parentElement&&(n.row.parentElement.removeChild(n.row),delete this._rowInfoMap[n.row.id]),r&&n.gutterRow.parentElement&&n.gutterRow.parentElement.removeChild(n.gutterRow);this._rows={}},c.prototype._drawRows=function(n,t){var w=this._expandStates,b=0,tt=this._indentLevels,v=0,c=this._gutter,it=this._canvas,k,f,y,l,o,p,d,a,u,s,h,nt;for(this._editBoxControl&&(this._editBoxControl.dismiss(),this._editBoxControl=null),y=document.createDocumentFragment(),l=null,c&&(k=this._gutter,l=document.createDocumentFragment()),o=this._rows,p={},this._rows=p,d=n.length,a=0;a0?"true":"false"),f.addEventListener("DOMAttrModified",this._onAriaExpandedModifiedHandler))},c.prototype._getGutterIconClass=function(){return""},c.prototype._drawGutterCell=function(){},c._setTooltip=function(n,t,i){var r={content:t,height:i};n.setAttribute("data-plugin-vs-tooltip",JSON.stringify(r))},c.prototype._drawCell=function(n,t,i,r,u,f,e){var p=u.width||20,w,o=this.createElementWithClass("div","grid-cell"),tt,s,b,h,k,l,d,v,g,nt,y,a;if(o.style.width=isNaN(p)?String(p):p+"px",u.cellDecorator?(tt=this._dataSource[t],u.cellDecorator(o,tt)):(typeof u.hrefIndex!="undefined"&&(w=this.getColumnValue(t,u.hrefIndex,-1)),s=this.getColumnText(t,u,e),b=!1,s.length>c.MAX_CELL_CONTENT_SIZE&&(b=!0,o.setAttribute("grid-edit-value",s),s=s.substr(0,c.MAX_CELL_CONTENT_SIZE)),typeof u.getCellTooltip=="function"?c._setTooltip(o,u.getCellTooltip(t,u.index,e,this._dataSource),c.DEFAULT_TOOLTIP_HEIGHT):u.hasHTMLContent||u.hasMixedContent&&u.getCellCSSClass&&u.getCellCSSClass(t,u.index,e,this._dataSource).indexOf("grid-mixed-cell-html")!==-1||c._setTooltip(o,b?s+"...":s,c.DEFAULT_TOOLTIP_HEIGHT),w?(h=document.createElement("a"),h.setAttribute("href",w),h.setAttribute("tabindex","-1"),h.innerText=s,o.appendChild(h)):s?u.hasHTMLContent||u.hasMixedContent&&u.getCellCSSClass&&u.getCellCSSClass(t,u.index,e,this._dataSource).indexOf("grid-mixed-cell-html")!==-1?o.innerHTML=s:o.innerText=s:o.innerHTML=" "),e===f&&r>0&&(k=r*c.INDENT_WIDTH-13,u.indentOffset=k,i!==0&&(l=this.createElementWithClass("div","icon grid-tree-icon"),l.style.left=k+"px",o.appendChild(l),i>0?l.classList.add("icon-tree-expanded"):l.classList.add("icon-tree-collapsed")),o.style.textIndent=r*c.INDENT_WIDTH+"px"),u.hasGlyph&&(d=2,v=u.getGlyphClass(t,u.index,e,this._dataSource),v&&v!==""&&(g=this.createElementWithClass("div",v+" grid-cell-glyph"),g.style.left=r*c.INDENT_WIDTH+d+"px",o.appendChild(g),o.style.textIndent=r*c.INDENT_WIDTH+c.GLYPH_WIDTH+d+"px")),u.getCellCSSClass&&(nt=u.getCellCSSClass(t,u.index,e,this._dataSource),nt))for(y=nt.trim().split(" "),a=0;a0){for(i=this._canvas.querySelectorAll(".grid-row-splitter"),n=0;n=0&&this._addSelection(i,null,null,t);this._layoutHeader();this._drawHeader();this._drawSplitters()},c.prototype._fixScrollPos=function(){var n=this._ignoreScroll;this._ignoreScroll=!0;try{this._canvas.scrollLeft=this._scrollLeft;this._canvas.scrollTop=this._scrollTop}finally{this._ignoreScroll=n}},c.prototype.redraw=function(){this._fixScrollPos();this._redraw(!0)},c.prototype._redraw=function(n){this._layoutHeader();this._updateViewport(n)},c.prototype.getColumnValue=function(n,t){return this._dataSource[n][t]},c.prototype.getColumnText=function(n,t,i){var r,u=t.getColumnValue(n,t.index,i,this._dataSource);return r=typeof u!="string"?c.convertValueToDisplayString(u,t.format):u,t.maxLength=Math.max(t.maxLength||0,r.length),r},c.prototype._getExpandState=function(n){var t=0;return this._expandStates&&typeof this._expandStates[n]=="number"&&(t=this._expandStates[n]),t},c.prototype.getViewPortRanges=function(){var e=this._expandedCount-1,i=this._getVisibleRowIndices(),n=i.first,t=i.last,u,f;return n=Math.max(0,n-this._options.extendViewportBy),t=Math.min(e,t+this._options.extendViewportBy),u=this._getDataIndex(n),f=this._getDataIndex(t),new r(Math.min(u,n),Math.max(f,t))},c.prototype.scrollToBottom=function(n){this._scrollRenderComplete=n;this._canvas.scrollTop+this._canvas.clientHeight>=this._canvas.scrollHeight?this._scrollRenderComplete&&(this._scrollRenderComplete(),this._scrollRenderComplete=null):this._canvas.scrollTop=this._canvas.scrollHeight},c.prototype.setViewState=function(n){this._options.isGridEnabled=n;n?this.rootElement.classList.remove("busy"):this.rootElement.classList.add("busy")},c.prototype._selectRow=function(n,t,i,r){var u=i&&i.ctrl,f=i&&i.shift,e=i&&i.rightClick;u?this._addSelection(n,t,{toggle:!0}):f?(this._clearSelection(),this._addSelectionRange(n,t)):e?this._selectedRows&&this._selectedRows.hasOwnProperty(n)?(this._selectedIndex=n,this._updateAriaAttribute()):(this._clearSelection(),this._addSelection(n,t)):(this._clearSelection(),this._addSelection(n,t,null,r))},c.prototype._selectAll=function(){if(this._count>0&&this._options.allowMultiSelect!==!1){this._clearSelection();this._selectionStart=0;var n=Math.max(0,this._selectedIndex);this._addSelectionRange(this._count-1,undefined,{doNotFireEvent:!0});this._selectedIndex=n;this._updateSelectionStyles();this._selectionChanged()}},c.prototype.getSelectedRowIndex=function(){return this._selectedIndex},c.prototype.setSelectedRowIndex=function(n){this._clearSelection();this._addSelection(n)},c.prototype.getSelectedDataIndex=function(){return this._getDataIndex(this._selectedIndex)},c.prototype.getSelectedDataIndices=function(){var i,n=this._selectedRows,t=[];if(n)for(i in n)t[t.length]=n[i];return t},c.prototype.ensureDataIndexExpanded=function(n){for(var t=this._getRowIndex(n);t<0||n>0&&t===0;)this.expandNode(this._getDataIndex(-t)),t=this._getRowIndex(n);return t},c.prototype.setSelectedDataIndex=function(n,t){var i=t?this.ensureDataIndexExpanded(n):this._getRowIndex(n);this.setSelectedRowIndex(i)},c.prototype.focus=function(n){var t=this,i=function(){var r,n,i;if(document.activeElement!==t._canvas)try{t._selectedIndex>-1&&(r=t._getDataIndex(t._selectedIndex),n=t._rows[r],n&&(i=n.row,i&&i.focus()))}catch(u){}};n?window.setTimeout(function(){i()},n):i()},c.prototype._clearSelection=function(){this._selectionCount=0;this._selectedRows=null},c.prototype._addSelection=function(n,t,i,r){var f=i&&i.keepSelectionStart,e=i&&i.doNotFireEvent,o=i&&i.toggle,u;this._options.allowMultiSelect===!1&&(f=!1,this._clearSelection());this._selectedRows||(this._selectedRows={});n>=0?(u=!0,this._selectedRows.hasOwnProperty(n)?o&&(u=!1,this._selectionCount=Math.max(0,this._selectionCount-1),delete this._selectedRows[n]):this._selectionCount++,typeof t!="number"&&(t=this._getDataIndex(n)),u&&(this._selectedRows[n]=t),this._selectedIndex=n,this._updateAriaAttribute(),(this._selectionStart<0||!f)&&(this._selectionStart=n)):(t=-1,this._selectedIndex=-1);e||(this._updateSelectionStyles(),this._selectionChanged(),r&&this.focus(),this._selectedIndexChanged(this._selectedIndex,t))},c.prototype._addSelectionRange=function(n,t,i){var h=i&&i.doNotFireEvent,o=-1,f,u,s,r,e;if(this._options.allowMultiSelect===!1)this._addSelection(n,t);else{for(this._selectedRows&&(o=this._selectedRows[this._selectedIndex]),this._selectionStart<0&&(this._selectionStart=n),u=Math.min(this._selectionStart,n),s=Math.max(this._selectionStart,n),(typeof t!="number"||u!==n)&&(t=this._getDataIndex(u)),r=u;r<=s;r++)this._addSelection(r,t,{keepSelectionStart:!0,doNotFireEvent:!0}),r===n&&(f=t),e=this._getExpandState(t),e<0?t+=1-e:t++;this._selectedIndex=n;this._updateAriaAttribute();h||(this._updateSelectionStyles(),this._selectionChanged(),o!==f&&this._selectedIndexChanged(this._selectedIndex,f))}},c.prototype._updateAriaAttribute=function(){var i,n,t;this._active&&(i=this._getDataIndex(this._selectedIndex),i>=0&&(n=this.getRowInfo(i),n&&n.row&&(t=n.row.getAttribute("id"),t!==this._activeAriaId&&(this._canvas.setAttribute("aria-activedescendant",t),this._activeAriaId=t))))},c.prototype._updateSelectionStyles=function(){var n=this;this._delayedUpdateCookie&&window.clearTimeout(this._delayedUpdateCookie);this._delayedUpdateCookie=window.setTimeout(function(){var t,u=n._selectedRows,f=n._selectedIndex,i=n._rows,r;for(t in i)r=i[t],n._updateRowSelectionStyle(r,u,f)},10)},c.prototype._selectionChanged=function(){this.selectionChanged(this._selectedIndex,this._selectionCount,this._selectedRows);this.fireCustomEvent(this._element,"selectionchanged",[{selectedIndex:this._selectedIndex,selectedCount:this._selectionCount,selectedRows:this._selectedRows}])},c.prototype.selectionChanged=function(){},c.prototype._selectedIndexChanged=function(n,t){this.selectedIndexChanged(n,t);this.fireCustomEvent(this._element,c.EVENT_SELECTED_INDEX_CHANGED,[n,t])},c.prototype.selectedIndexChanged=function(){},c.prototype._updateRowSelectionStyle=function(n,t,i){var f=n.rowIndex,u=n.row,r=n.gutterRow;u.classList.remove("grid-row-selected");u.classList.remove("grid-row-selected-blur");u.classList.remove("grid-row-current");u.setAttribute("tabindex","-1");r&&(r.classList.remove("grid-gutter-row-selected"),r.classList.remove("grid-gutter-row-selected-blur"),r.classList.remove("grid-gutter-row-current"),r.querySelector("input.checkbox").setAttribute("checked",String(!1)));t&&t.hasOwnProperty(f)&&(r&&r.querySelector("input.checkbox").setAttribute("checked",String(!0)),this._active?(u.classList.add("grid-row-selected"),u.setAttribute("tabindex","1"),r&&r.classList.add("grid-gutter-row-selected")):(u.classList.add("grid-row-selected-blur"),u.setAttribute("tabindex","1"),r&&r.classList.add("grid-gutter-row-selected-blur")));f===i&&(u.classList.add("grid-row-current"),r&&r.classList.add("grid-gutter-row-current"))},c.prototype._notifyForPrerender=function(){if(this._options.prerenderCallback){var n=this.getViewPortRanges();this._options.prerenderCallback(n.start,n.end)}},c.prototype.measureColumnSize=function(n){for(var t,r=this._canvas.clientWidth-(this.isVerticalScrollbarVisible?0:17),i=0;i0){if(n)for(i=0;is?t:s);r=this._columns[u];h=this._columns[u+1];r.hasGlyph&&(t+=c.GLYPH_WIDTH);var f=r.width-(t+3),v=r.width-f,e=h.width+f;v>=i.MIN_RESIZE_WIDTH&&e>=i.MIN_RESIZE_WIDTH?(r.width-=f,h.width+=f,window.setImmediate(function(){y.layout(!0)})):e=i.MIN_RESIZE_WIDTH&&s>=i.MIN_RESIZE_WIDTH&&(e.style.left=e.offsetLeft+f+"px",u=n.clientX,t.width+=f,r.width-=f)}},s=function(){var n=document.querySelector(".grid-row-splitter.active");n&&(n.classList.remove("active"),window.setImmediate(function(){h.layout(!0)}));document.removeEventListener("mousemove",o);document.removeEventListener("mouseup",s)},e;n.button===0&&(e=n.target,f=parseInt(e.getAttribute("grid-splitter-index"),10),t=this._columns[f],r=this._columns[f+1],t.fixed||r.fixed||(e.classList.add("active"),u=n.clientX,document.addEventListener("mousemove",o),document.addEventListener("mouseup",s)))},c.prototype._moveSizingElement=function(n){var r=this._measurements.gutterWidth,t,i;if(!this._sizingElement){if(n<0)return;this._sizingElement=this.createElementWithClass("div","grid-column-sizing");this._canvas.appendChild(this._sizingElement)}if(this._sizingElement.style.height=this._canvas.clientHeight-1+"px",this._sizingElement.style.top=this._scrollTop+"px",n<0)this._sizingElement.style.left="-5000px",this._sizingElement.style.top="-5000px",this._sizingElement.style.height="0px";else{for(t=0;t<=n;)i=this._columns[t++],i.hidden||(r+=i.width);this._sizingElement.style.left=r-1+"px"}},c.prototype._getVisibleColumnIndex=function(n){var t=0,i=0,r=this._columns.length;if(this._columns[n].hidden)return-1;while(t0){for(this._clearSelection(),v=0,r=0;r=0&&(y=this._getRowIndex(u),this._addSelection(y,u),v+=y);this._scrollTop+=(v-h)/this._selectionCount*this._measurements.rowHeight}},c.prototype._onCanvasScroll=function(){var n=this._canvas;return this._resetScroll=!0,this._scrollLeft=n.scrollLeft,this._scrollTop=n.scrollTop,this._ignoreScroll||(this._notifyForPrerender(),this._redraw(),this._scrollRenderComplete&&(this._scrollRenderComplete(),this._scrollRenderComplete=null)),!1},c.prototype.getRowInfoFromEvent=function(n,t){var i=this.findClosestElement(n.target,t);return this._rowInfoMap[i.id]},c.prototype._getClickedCell=function(n){return this.findClosestElement(n.target,".grid-cell")},c.prototype._isCellEditing=function(n){return n.querySelectorAll(".grid-edit-box").length===1},c.prototype.createEditBox=function(n,i,r){if(this._options.isGridEnabled){typeof this._options.preEditCellCallback!="undefined"&&this._options.preEditCellCallback(n,i);var f,u=this.getColumns()[i];u.getEditBox&&(f=u.getEditBox(n,u));this._editBoxControl=new t.GridCellEditControl(n,i,r,this,this._options,f);r.innerHTML="";r.appendChild(this._editBoxControl.inputElement);try{this._editBoxControl.inputElement.select();this._editBoxControl.inputElement.focus()}catch(e){}}},c.prototype.onEditCell=function(n){var e=n.target,t,r,i;if(!e.classList.contains("grid-tree-icon")){if(t=this._getClickedCell(n),this._isCellEditing(t))return;if(t&&t.classList.contains("grid-cell-editable")&&(r=this.getRowInfoFromEvent(n,".grid-row"),r)){var u=r.row.children,o=u.length,f=-1;for(i=0;i0&&(r={lo:0,hi:this._expandedCount-1}),this._selectedIndex<0&&this._addSelection(r.lo),this._options.keyboardEventHandler&&this._options.keyboardEventHandler.keys.indexOf(t.key)!==-1&&(h=this._options.keyboardEventHandler.handler(t,this._dataSource,this._getDataIndex(this._selectedIndex)),h))return t.preventDefault(),!1;switch(t.keyCode){case 40:this._clearSelection();this._addSelection(Math.min(this._selectedIndex+1,r.hi),null,null,!0);break;case 38:this._clearSelection();this._addSelection(Math.max(this._selectedIndex-1,r.lo),null,null,!0);break;case 34:this._clearSelection();i=this._getVisibleRowIndices();this._selectedIndexi.first?this._addSelection(i.first,null,null,!0):(e=i.last-i.first+1,this._addSelection(Math.max(this._selectedIndex-e,r.lo),null,null,!0));break;case 39:this.tryToggle(!0,t.shiftKey);break;case 37:if(!this.tryToggle(!1,t.shiftKey))for(s=this._getDataIndex(this._selectedIndex),u=s-1;u>=0;){if(s-u<=Math.abs(this._expandStates[u])){this._selectRow(this._getRowIndex(u),null,null,!0);break}u--}break;case 36:this._clearSelection();this._addSelection(r.lo,null,null,!0);break;case 35:this._clearSelection();this._addSelection(r.hi,null,null,!0);break;case 113:f=this.getRowInfo(this._getDataIndex(this._selectedIndex));f&&(o=this._getFirstEditableCellIndex(f.row.children),o>=0&&this.createEditBox(f.dataIndex,o,f.row.children[o]));break;default:return!0}return this.getSelectedRowIntoView(),t.preventDefault(),!1},c.prototype._getFirstEditableCellIndex=function(n){for(var t=0;t0?this.collapseNode(n.dataIndex):t<0&&this.expandNode(n.dataIndex),this._clearSelection(),this._addSelection(Math.min(n.rowIndex,this._expandedCount-1),n.dataIndex,null,!0),this._layoutContentSpacer(),this._redraw(),this._notifyForPrerender())}},c.prototype.getExpandStates=function(){return this._expandStates},c.TYPE_NAME="GridControl",c.MAX_CELL_CONTENT_SIZE=1e3,c.MAX_COPY_SIZE=1e3,c.PAYLOAD_SIZE=200,c.EVENT_SELECTED_INDEX_CHANGED="selectedIndexChanged",c.INDENT_WIDTH=12,c.GLYPH_WIDTH=10,c.DEFAULT_TOOLTIP_HEIGHT=65,c}(n.Controls.Legacy.Control);t.GridControl=v})(t=n.Grid||(n.Grid={}))})(Common||(Common={}))
//# sourceMappingURL=gridControl.min.js.map
body {
    margin: 0px;
    padding: 0px;
    color: rgb(0, 0, 0); /*[{plugin-color}]*/
    overflow: hidden;
    font-family: "Segoe UI", Arial, sans-serif; /*[{plugin-font-family} , Arial, sans-serif]*/
    font-size: 12px; /*[{plugin-font-size}]*/
    background-color: rgb(252, 252, 252); /*[{vs-tool-window-background-color}]*/
}

* {
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
}

.add-icon {
    background: url("../Common/images/add_row.png") no-repeat 0 0 !important; /*[url({f12-debugger-image-grid-control-add-row}) no-repeat 0 0 !important]*/
}

.icon-empty {
    background: url("../Common/images/common_icons.png") no-repeat -640px -16px !important; /*[url({f12-image-common-icons}) no-repeat -640px -16px !important]*/
}

.icon-tip {
    background: url("../Common/images/misc_icons.png") no-repeat -3952px -16px !important; /*[url({f12-image-misc-icons}) no-repeat -3952px -16px !important]*/
}

.icon-tools {
    background: url("../Common/images/common_icons.png") no-repeat -2258px -16px !important; /*[url({f12-image-common-icons}) no-repeat -2258px -16px !important]*/
}

.icon-tree {
    background: url("../Common/images/misc_icons.png") no-repeat -3998px -16px !important; /*[url({f12-image-misc-icons}) no-repeat -3998px -16px !important]*/
}

.icon-tree-add {
    background: url("../Common/images/misc_icons.png") no-repeat -4046px -16px !important; /*[url({f12-image-misc-icons}) no-repeat -4046px -16px !important]*/
}

.icon-tree-collapse-all {
    background: url("../Common/images/tree_icons.png") no-repeat -16px -16px !important; /*[url({f12-image-tree-icons}) no-repeat -16px -16px !important]*/
}

.icon-tree-collapsed {
    background-color: transparent;
    background-image: url("../Common/images/itemCollapsedIcon.png"); /*[url({vs-image-icon-tree-collapsed})]*/
    background-repeat: no-repeat;
    background-size: 10px 10px;
    margin: 3px 2px 0px 3px;
}

.icon-tree-collapsed-2 {
    background: url("../Common/images/tree_icons.png") no-repeat -108px -16px !important; /*[url({f12-image-tree-icons}) no-repeat -108px -16px !important]*/
}

.icon-tree-corner {
    background: url("../Common/images/misc_icons.png") no-repeat -4622px -16px !important; /*[url({f12-image-misc-icons}) no-repeat -4622px -16px !important]*/
}

.icon-tree-empty {
    background: url("../Common/images/tree_icons.png") no-repeat -156px -16px !important; /*[url({f12-image-tree-icons}) no-repeat -156px -16px !important]*/
}

.icon-tree-expand-all {
    background: url("../Common/images/tree_icons.png") no-repeat -204px -16px !important; /*[url({f12-image-tree-icons}) no-repeat -204px -16px !important]*/
}

.icon-tree-expanded {
    background-color: transparent;
    background-image: url("../Common/images/itemExpandedIcon.png"); /*[url({vs-image-icon-tree-expanded})]*/
    background-repeat: no-repeat;
    background-size: 10px 10px;
    margin: 3px 2px 0px 3px;
}

.icon-tree-expanded-2 {
    background: url("../Common/images/tree_icons.png") no-repeat -296px -16px !important; /*[url({f12-image-tree-icons}) no-repeat -296px -16px !important]*/
}

.heading {
    text-transform: uppercase;
    line-height: 1.84em;
    font-size: 12pt; /*[{plugin-font-size}]*/
    font-weight: bold;
    margin-right: 6px;
}

.hidden {
    display: none;
}

.icon {
    width: 16px;
    height: 16px;
    overflow: hidden;
    vertical-align: middle;
    display: inline-block;
}

    .icon.action {
        cursor: pointer;
    }

.menu-bar {
    position: relative;
}

.menu-popup {
    position: relative;
}

.menu-popup-static {
    position: relative;
}

.menu {
    margin: 0px;
    padding: 0px;
    list-style-type: none;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
}

.menu-bar {
    margin: 0px;
    padding: 0px;
    list-style-type: none;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
}

.menu-popup {
    margin: 0px;
    padding: 0px;
    list-style-type: none;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
}

.menu-popup-static {
    margin: 0px;
    padding: 0px;
    list-style-type: none;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
}

.sub-menu {
    -ms-overflow-y: auto;
}

.virtualizing-list-view {
    border: 1px solid rgb(204, 204, 204); /*[1px solid {vs-tree-view-selected-item-inactive-color}]*/
    position: relative;
    background-color: rgb(252, 252, 252); /*[{vs-toolbox-background-color}]*/
}

    .virtualizing-list-view > .items {
        margin: 0px;
        padding: 0px;
        left: 0px;
        right: 0px;
        list-style-type: none;
        white-space: nowrap;
        position: absolute;
    }

.scroll.virtualizing-list-view > .items {
    right: 18px;
}


.grid {
    border: 1px solid transparent;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
}

.grid-focus {
    top: 5px;
    width: 50%;
    height: 3px;
    position: absolute;
    outline: none;
}

.grid .grid-canvas {
    left: 0px;
    top: 0px;
    right: 0px;
    bottom: 0px;
    overflow: auto;
    position: absolute;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -moz-user-select: -moz-none;
}

    .grid .grid-canvas .grid-row-splitter {
        cursor: e-resize;
        width: 3px;
        position: absolute;
        z-index: 10;
        height: 100%
    }

    .grid .grid-canvas .grid-row-splitter.active {
        border-left: 3px solid #E5E6ED; /*[3px solid {plugin-debugger-grid-active-splitter-color}]*/
    }

    .grid .grid-canvas .grid-row-splitter.fixed {
        cursor: default;
    }

.has-header.grid .grid-canvas {
    top: 33px;
}

.grid-content-spacer {
    left: 0px;
    top: 0px;
    width: 1px;
    height: 1px;
    position: absolute;
}

.grid-header {
    left: 0px;
    top: 0px;
    height: 2.2em;
    right: 0px;
    overflow: hidden;
    position: absolute;
    z-index: 6;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
}

.grid-header-canvas {
    left: 0px;
    top: 0px;
    width: 999999px;
    bottom: 0px;
    overflow: hidden;
    border-bottom-color: transparent;
    border-bottom-width: 1px;
    border-bottom-style: solid;
    position: absolute;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
}

.grid-header-column {
    background-color: TRANSPARENT; /*[{vs-command-bar-options-background-color}]*/
    width: 20px;
    height: 100%;
    overflow: visible;
    border-right-color: transparent;
    border-right-width: 1px;
    border-right-style: solid;
    float: left;
    position: relative;
    cursor: default;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
}

    .grid-header-column:hover {
        background-color: rgb(238, 238, 238); /*[{vs-command-bar-mouse-over-background-begin-color}]*/
    }

    .grid-header-column > .separator {
        top: 0px;
        width: 12px;
        right: -6px;
        bottom: 0px;
        position: absolute;
        z-index: 6;
        cursor: e-resize;
    }

    .grid-header-column > .sort-handle {
        top: 2px;
        width: 7px;
        height: 7px;
        right: -5000px;
        overflow: hidden;
        position: absolute;
        z-index: 3;
    }

.ascending.grid-header-column > .sort-handle {
    background: url("../Common/images/common_icons.png") no-repeat -2128px 50% !important; /*[url({f12-image-common-icons}) no-repeat -2128px 50% !important]*/
    left: 49%;
}

.descending.grid-header-column > .sort-handle {
    background: url("../Common/images/common_icons.png") no-repeat -2171px 50% !important; /*[url({f12-image-common-icons}) no-repeat -2171px 50% !important]*/
    left: 49%;
}

.grid-header-column > .title {
    padding: 4px;
    left: 0px;
    top: 3px;
    text-align: left;
    right: 0px;
    color: rgb(128, 128, 128); /*[{plugin-color}]*/
    overflow: hidden;
    vertical-align: middle;
    white-space: nowrap;
    position: absolute;
    cursor: default;
    -ms-text-overflow: ellipsis;
    text-overflow: ellipsis;
}

.grid-header-column > .indented-title {
    text-indent: 16px;
}

.ascending.grid-header-column > .title {
}

.descending.grid-header-column > .title {
}

.grid-column-sizing {
    width: 0px;
    border-left-color: rgb(204, 204, 204); /*[{vs-tree-view-selected-item-inactive-color}]*/
    border-left-width: 1px;
    border-left-style: solid;
    position: absolute;
    z-index: 5;
    opacity: 0.5;
    -moz-opacity: 0.5;
}

.grid-column-moving {
    padding: 7px 4px 4px;
    height: 100%;
    overflow: hidden;
    vertical-align: middle;
    white-space: nowrap;
    position: absolute;
    z-index: 5;
    cursor: pointer;
    -ms-text-overflow: ellipsis;
    text-overflow: ellipsis;
    opacity: 0.75;
    background-color: rgb(220, 230, 244) !important; /*[{vs-command-bar-mouse-down-background-begin-color} !important]*/
    -moz-opacity: 0.75;
}

.grid-column-moving-placer {
    background: url("../Common/images/columnmove.png") -2px -4px; /*[url({f12-debugger-image-grid-control-column-move}) -2px -4px]*/
    width: 7px;
    height: 4px;
    font-size: 1pt;
    position: absolute;
    z-index: 100;
}

.grid-gutter {
    left: 0px;
    top: 0px;
    width: 20px;
    height: 50px;
    overflow: hidden;
    position: absolute;
    z-index: 6;
}

.grid-gutter-canvas {
    left: 0px;
    top: 0px;
    width: 29px;
    height: 1px;
    position: absolute;
    z-index: 5;
}

.grid-gutter-header {
    left: 0px;
    top: 0px;
    width: 20px;
    bottom: 0px;
    position: absolute;
    z-index: 7;
}

.grid-gutter-row {
    width: 100%;
    height: 1em;
    overflow: hidden;
    position: absolute;
}

.grid-gutter-cell {
    border: currentColor;
    height: 100%;
    overflow: hidden;
    vertical-align: middle;
    float: left;
    display: table-cell;
    position: relative;
    cursor: default;
}

.grid-gutter-menu {
    margin: 0px 3px;
    width: 12px;
}

.grid-gutter-icon {
    width: 16px;
    height: 100%;
}

.grid-gutter-row-normal {
    border-width: 1px 0px 1px 1px;
    border-style: solid none solid solid;
    border-color: rgb(252, 252, 252) currentColor rgb(252, 252, 252) rgb(252, 252, 252); /*[{vs-toolbox-background-color} currentColor {vs-toolbox-background-color} {vs-toolbox-background-color}]*/
    background-color: rgb(252, 252, 252); /*[{vs-toolbox-background-color}]*/
}

.grid-gutter-row-selected {
    border-width: 1px 0px 1px 1px;
    border-style: solid none solid solid;
    border-color: rgb(252, 252, 252) currentColor rgb(252, 252, 252) rgb(252, 252, 252); /*[{vs-toolbox-background-color} currentColor {vs-toolbox-background-color} {vs-toolbox-background-color}]*/
    background-color: rgb(252, 252, 252); /*[{vs-toolbox-background-color}]*/
}

    .grid-gutter-row-selected .grid-gutter-drop {
        background: url("../Common/images/common_icons.png") no-repeat -401px 50% !important; /*[url({f12-image-common-icons}) no-repeat -401px 50% !important]*/
    }

.grid-gutter-drop:hover {
    background: url("../Common/images/common_icons.png") no-repeat -401px 50% !important; /*[url({f12-image-common-icons}) no-repeat -401px 50% !important]*/
}

.grid-gutter-row-selected-blur {
    border-width: 1px 0px 1px 1px;
    border-style: solid none solid solid;
    border-color: rgb(252, 252, 252) currentColor rgb(252, 252, 252) rgb(252, 252, 252); /*[{vs-toolbox-background-color} currentColor {vs-toolbox-background-color} {vs-toolbox-background-color}]*/
    background-color: rgb(252, 252, 252); /*[{vs-toolbox-background-color}]*/
}

    .grid-gutter-row-selected-blur .grid-gutter-drop {
        background: url("../Common/images/common_icons.png") no-repeat -401px 50% !important; /*[url({f12-image-common-icons}) no-repeat -401px 50% !important]*/
    }

.grid-gutter-row-current {
    border-width: 1px 0px 1px 1px;
    border-style: solid none solid solid;
    border-color: rgb(252, 252, 252) currentColor rgb(252, 252, 252) rgb(252, 252, 252); /*[{vs-toolbox-background-color} currentColor {vs-toolbox-background-color} {vs-toolbox-background-color}]*/
    background-color: rgb(252, 252, 252); /*[{vs-toolbox-background-color}]*/
}

.grid-row {
    margin: 0px;
    width: 100%;
    color: rgb(0, 0, 0); /*[{plugin-color}]*/
    overflow: hidden;
    position: absolute;
    cursor: default;
    display: -ms-inline-flexbox;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
}

    .grid-row:hover {
        background-color: rgb(242, 247, 253); /*[{plugin-treeview-content-mouseover-background-color}]*/
    }

    .grid-row:hover,
    .gird-row:hover a,
    .grid-row:hover a:link,
    .grid-row:hover a:visited,
    .grid-row:hover a:focus {
        color: rgb(0, 0, 0); /*[{plugin-treeview-content-mouseover-color}]*/
    }

.grid-row-normal {
    border: 1px solid transparent;
}

.grid-row-selected, .grid-row-selected:hover {
    color: rgb(0, 0, 0); /*[{plugin-treeview-content-selected-color}]*/
    background-color: rgb(220, 235, 252); /*[{plugin-treeview-content-selected-background-color}]*/
}

    .grid-row-selected a {
        text-decoration: none;
    }

        .grid-row-selected a:hover {
            text-decoration: underline;
        }

        .grid-row-selected a:visited {
        }

        .grid-row-selected a:active {
        }

.grid-row-selected-blur {
    background-color: rgb(230, 230, 230); /*[{plugin-treeview-content-inactive-selected-background-color}]*/
}

.grid-row-selected-blur,
.grid-row-selected-blur a {
    color: rgb(0, 0, 0); /*[{plugin-treeview-content-inactive-selected-color}]*/
}

.grid-row-drop-active {
    border-top-color: blue;
    border-top-width: 2px;
    border-top-style: solid;
}

.grid-row-dragging {
    background-color: rgb(230, 230, 230);
}

.grid-row-group {
    width: 100%;
    color: rgb(0, 0, 0);
    overflow: hidden;
    font-weight: bold;
    border-bottom-color: rgb(240, 240, 240);
    border-bottom-width: 1px;
    border-bottom-style: solid;
    position: absolute;
    cursor: default;
    background-color: rgb(255, 255, 255);
}

.grid-cell {
    padding: 0px 4px 0px 4px;
    border: currentColor;
    width: 100px;
    text-align: left;
    text-indent: 2px;
    overflow: hidden;
    vertical-align: middle;
    float: left;
    display: table-cell;
    white-space: nowrap;
    position: relative;
    cursor: default;
    -ms-text-overflow: ellipsis;
    text-overflow: ellipsis;
    min-height: 18px;
}

    .grid-cell input[type='checkbox'] {
        margin: 0px;
    }

.grid-cell-first {
    width: 100%;
    height: 100%;
    text-align: left;
    overflow: hidden;
    vertical-align: middle;
    cursor: default;
    -ms-text-overflow: ellipsis;
    text-overflow: ellipsis;
}

.grid-edit-box {
    border: none;
    width: 100%;
    height: 100%;
}

.grid-tree-icon {
    text-indent: 0px;
    position: absolute;
    cursor: pointer;
}

.grid-cell-glyph {
    margin-top: 3px;
    position: absolute;
    overflow: hidden;
    vertical-align: middle;
    display: inline-block;
    width: 10px;
    height: 10px;
}

.sample-containers {
    display: none;
}

.samples-main {
    left: 0px;
    top: 0px;
    right: 0px;
    bottom: 0px;
    overflow: hidden;
    position: fixed;
}

    .samples-main > .right {
        left: 200px;
        top: 0px;
        right: 0px;
        bottom: 0px;
        overflow: auto;
        position: absolute;
    }

        .samples-main > .right .demoview > div {
            height: 400px;
            overflow: auto;
        }
PNG


IHDRa	pHYs+4IDATxc}ƦNNNx@8pl#(DєHqvUsҽ
IENDB`PNG


IHDRJ~s	pHYs+ cHRMz%u0`:o_FIDATxc`&?_~
	?(g2H3=7h7:>FX;5[flp?HA;ܼG`Mwad9>@!;̟*
vT;iqف|lv5̇فkہS$k/IENDB`PNG


IHDRp,r	pHYsj։	gAMAaBPLTETTT___tttrfD-!xIDATx PSD"m3^n]b}J/Z'+@
4M*.zu	"{ҶLM^wϋuD{-zE>4,@fJISJgjbQWb17ksH)sH)aIKLҤX488em?i{~{ۻpq/ߛk#PgbJ~݅vSv.<1MeXf)-.,t+gP{v/d׮]n!oΑ1BfO9M]r6;Gw9L۳y?,/nίZFpkjJhq	~&n?k*[8ZJLqHG=b*c*~c`9}%~bY&Ѷ~}%Pߨ6.i߾.g0߅wǙYzZw	2 77jla'+i
g̘EU\zT*{ÇOO.]upBtWXo_WȮ*̳݌s>
pn?^|`QNn(\4X1ɲoy׳e@yi`	8>z\^I'SaT=ڦXXnSOPg{dT0.:.`'?ݻBap8ZB\f>LݱElk-ﯖK6V%ᡭ&|h?U@˱&<1v{c㸟ΉZj,r96; &nQ|n9G9v6ȻJtz`Lp{.#7%0S~ięs~/@ѕ1P%mo8 h7##N2<֏:[~i05;(cFΝ઺c9T;.H0^;pk0tWmzeg}O>43L3y?	!Cs+Yn{$ľ«%!ؖ/F_rksׂt|{W_M,5!D/"bO<;ՋW_}u!SRRr-۫;|Z=xDA2m6+/HJgϪ0fz
=bUQQI@Eii{-	Zʴ?_ \ßѢ]/$~*
EM49:	IucNsœ~eYII!>'ovjTYo%X
ECv$!CyHS'OI1k`G	!/p((siƺv{mT-mO,Tnϱ	GV?Dms&|?>HD:x2.:xYj܃_Naqf($F=_V@~50au&Heڥ;
U9qW3	8tΡHP 8!|(̩K2y(l@>cQZvw°ÇPFATϦD>l۶Nh7V-[I$D҇OšuZ#'C0jDFHp#S!a=rMժUFufڴi29rݻ0a¾l0/$|xꫯ|xKmw̉
M(;Yr(P<9֒bDYvJ)|xӓgC~|ةPE‡̆8b'jOU(EwC@~#4\a>Sfˬ?nٌ~8nT/)р.]@_{xoyc/Ȭ%][$q@pƨ"d!剂QCQ~v†gJK@9w<]!@$%U<k{O>Ԕ)S:u*̙Yfa7nƎ}.]N_3\DA2~=2HPy6`XaxaބСDB- vV	h5N=LuKfPGyKjj!G=СCP5jt܋|8٫{Og((QeҔ(T2pvAN^Y[x:"i(pQ%>vyT/#E|v/*7sfEPsb0>e-y^mG0SŎc_Z)T@a]ޣV9
GP:peT;[\{>%0oWg2It׾j?Y
"gdz3
>ʹl@LI?LD{Yu@0w0꡿y,c3`qь~(ϭ@ѺU}l(c>>[>_]X._lC CbV8
Z&z說fx tPXQet% *;5߬å[+~.W@6C."5kּUVkYfx뭷|W^yeW
Wp@GAgrm>b%ii z1ym2%`/XhOOQb_	@%(B(Yr4;O#؝
 !D?|h(rEh:\,=W_]DE2cnO7Y@.~Nsw!J3_1;cM5"-shBd.C
^C̴! N:M‡ԶS2#eLD63Zf*}l*A8Оum}L kv.E9ATU	{Fʹq2nWDWp}HlemM9Wx49um(r~ KPX9ޟþ;'Sp}?	Uv0x#"NCPAbL{9lu~QD_$pW۶BU t\-gG#^0[" ~@\t-#G{$x;>-[_/馛nT1`|P9`R.We~Kbi`=NCWcqP@İaÐS%$!(,[^]qM#*svC#XuC*~BW4gL0q2…EHw@񝎹Df+_yw/gD鈱8u4ɹs1,s<]KlDQ=eʔ)7O8qh>}~WAD҃7+X؈	@44B!HA^#4t!D׎^&xHՈ~~rl=ae_-߁m'!dJ8F>#c	YhJ⌶?t:"uX"!<]0u>
!ZO}G{M%U<̨iq̺z[H9b+@#o?m}Gٷygd\1U"J
c+xi8@#ı;P{;=ʹ٩Oʱ5@|k_Vhm qѩ?t!o؄CG L3OD &go^3W`Sb{	>FbfeFL8(.bAf^f#Q/hsg`/B8a~7~v1|T!Do2ѣG=a%h#==Ǽ4mڔG0N:ܹsiڵ^wu hxC.9'ADFCa'lx$>T	Ҧ"|wTBQu~Ųh88|>Ѭa#p]+,|X՗mH=vD.̳g6#m8L/]*h
 ޫb~dl#]ߤ?#"iȨ@<.s
vMD33"EF]MSgG0W7lwNJ(wvv'e(S1mw/s)QԹ2lڒG0صGکJO6
b臼	$*4hgɣЯFATQxzǾNsF@
aa%9r2^*U̺+xnݺ5?<^{5tСԫ?ܻ7"yLe2b3|X|`~xޝܵZQTT{|kkB {'h0?ށ
"‡	rK7D4{xm.9N?Kp0m$ɂ<˲@2u^&OiG 8jQ]xD{lBd(mV|?ޫ⏗K
g^u:/œ2F9xMwsL-…lotF`67.td<a{7t(l
ʱT@zt=_@,GG,{k>ro2mFDTQBع"lhy
>|gwgMVXQ|H1(
 >tn&>	]!f*ӑ!Ck֬]F۶mѥKzjW˯;7nIN2
bժUѰaC{iCRe'pDEJCF>Z%l>z,!DUTwIJBPcF@x
(}xwlHeZԟmZ,2(ƣue4X@!bQ ǣmk<h&
 qV
 /Smv~3~4	Ǻ]y
 s2tt"jLDr,d1Db qBTPEis,,?u;Otn>0;| qaN@2a	*Oa4e6ERnrNT'aХ_i(1,(hؚǣǍ29bb_	FS֑MDyNԐ
oh$5Ʊ,c~_KQ}tTƟdz7
|R]O{FC#f4+qS‰Ի	$2wCm*Qve4VF*fh:!
|(WWΖ~8|k#8_wBY!z?ax
2
Οk+‡hLzzzIjVyYy|	͛OӧO>ek	+s$ZYȆ&|m*fy3'YVQQqmذuXUXS|XG/>t@#c$5*b(hõkCebXhCpIF2	`>_2Xeŋ5S(G+_t2,RF&m#LKWB|*m	"5!o߅ʴ?c=!pDz;z%tBF5GYT R!Dkp|h夹I~y`?	dt>*5jԨ|}8ףA7|C{o/I:x+wKHelSb/ZEEEy4kGccfR&&-2xQ}]EE7qޘ9=8:e!\!	_EGYU&)}?Aۮi3#ʙ߮[XO=8&ҿe{(ӳ[IENDB`PNG


IHDR  D	pHYs+BPLTEl`i\[Mwl"AP	tRNS 0P`AaIDATxڕS CQ n*@nJ+DE?*d[zGtpKؐZ^FHD2Xxљ+0B\_aنƼ%/v9Uz1ҞvM`1&%"$ѻ>J0&gb[~?rc/zl4@0IENDB`PNG


IHDR@@`UIDATx ӂ-[H``B`3$09b&y	yr:	!B!@1~$f{&805oDQu1oKBJ)}F鳺\X4V3n82uj`;ZZXXn.X~G+ٸ" _jnRD÷FHwoD{H@44VL
7|B!+k|
IENDB`PNG


IHDR `|"pgAMAasRGB	pHYsodIDATxeIſowc'^6nm7
VQ`c۶mW:Inn^R~>~Ho17w'}/(/,,LnjjM@yyC0ꆑ9KJk	G3$ Q`b=!}\aQ0
	bsss=FVl`GBɦh<:Ƽ$Cv	+TT\<^MhwK2*_LLU2^Bt3NVP3X
b>~qȗ#?E%SfBU
HT8^<,'4EJahq1JMY
PZVVz 1݆T8f"n;`g"|/`6!6#_Ž%jR},8p%;vldٕ%=		
0l8l%ئǬmH`p"?Aџ|j=feܤ?QxI#_aDc֒&lR0`šn\DU `hPV/v2|ԛ@iO9p+IENDB`PNG


IHDR @ލk	pHYs~sBITOlPLTERtRNS@fIDATxڍ@թ`&}'s1'DeϚF4CW~\u5XTXiRU˼<;h۝ԥ1cnS3ѩ:nϞ	CaS3Nh
u\IENDB`PNG


IHDR `K	pHYs+PLTETTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT''''''''''''''''`2.tRNS 0P`pϿp`P0  0@P`p$sRGB, cHRMz&u0`:pQ<;IDATxRۖ@ dʪ++entż䜤jTZYd\DIꋂWnEGnXk_1Vexb)T
;E$)땇.L.@?SI9NItB-#ЍsR+G1NŴ2ց:xmԬU`ԐJ\%) J R	l #ur*(	gTLgr'u		3{5g{^]԰t' 'cfzOA0(
0L]Bs?QKqQRKp˧gM_!M|qX5loX
Hc~᳝\
TU˦y_Ҫ1)䵇ZU	{{]T+#ٵyj)^[JRZѶ|*]Rb.;$BkC%_H
nW<{֔Qr.m[][,m~p$н)󘣟czl7W@/?\zZ"IENDB`PNG


IHDR` f	pHYs(JgAMAaPLTEz̲tRNS@fiIDATx
 BQwvI𒪸dW>`0A@  @ @{ECn_CkWEu]p&7K!#IENDB`PNG


IHDR` `g	pHYsodgAMAaPLTEz̲tRNS@fsRGBgIDATxӱ CQLߍwu.t/3ss4lPxY
F!! `! `! `
'Շ~~5׻n.iYyIENDB`PNG


IHDR$lgAMAasRGB, cHRMz&u0`:pQ<	pHYskMIDATxǍAFah2M$lk"`B@{zdVw)DLk>|;Xիaz}ruCl*IJ:TסRWR:<$upBIARIAV)BT:6J^Q *y/D%b%#z9*%%㕔+IW:^JRQIQJ>} m'k6Ik|<ܮ/#h9]VsjܦԐϠ*P)_J:TסRu9|}^		ЉR#ulAT:>J^QJRGx%㕼*yP:6JRQsJIZa$9CaT[N7	COW_;XTu߂JZuRBJ:Z	AV+!x%Y tpJg)%]QQGATrAAEQGAI=PDD8(AXǮ.1+AJ:^	AJ~)RbuD%I*N߃ Irжk5u5j
VŘ;rvIENDB`PNG


IHDR'ՆiIDATxc` 'Z!=J
AJP8V
QWOPg JTW,.@X}!c2B)$B<
	\a5J[IENDB`PNG


IHDR'ՆRIDATxڭ
PK(Ζt'hiIsJwٌ8Zl`
DZ&M(5!ZۢXDGжhyUMSJbϵIENDB`PNG


IHDR w}YsBIT|d	pHYs~9IDATxcbΨfΜ0OOQ:`P<͟/#Y!IENDB`PNG


IHDR @ލk	pHYs~sBITO	PLTEIIIY'tRNS@fIDATxc`0(
l=RIENDB`PNG


IHDR0gAMAa	pHYsrI3jٲpBYl[N|A?^_]rc?SK/1@̵=o[O
>6r?9|tW'' 
iyʸ~/qKЌ"E)Ra綿֓FQ']0#+(O>)*SuFsG>GNݹw,_;Z	6\߿)رvo,.aKx~okq3-CBZkïR^7blu+ʹ}VmiA}B;riI+T۞|E.@+D	x{<׸R
Ѝw~
'cɘR1{\mdDž=:m(@n6`3;~	e(H"a$zho@wl[))'}rbAg?lPܽY
?`krܸqv#LslWMbiyXw}c_d=!EQsQn:S{j7F}c.cJ7N8*`yڸ;RUc+Wg|7R	V7_P5s>+'Ħz)RH@yS
:NZnwgEuȹ:r`ѹ/x@Xw[TW;%^@,ȑ-@Y`b}A
:f,
>4!y;
iɑsR~~geBגwާ8
;``hb;nAR0S_`u _}'7|Qxoz}J'96~ޭp)J.?{Y(XIѢqkca,bz)tDTgʅ޷TxGYyy Dпz\BocI7`zp^GĐ]5ژKӪ7Uߦ 2~6P}ğ؊0`|bYb=
bS9JޞZkX7ҍ?nhq	Rwww-8=Wd_h*`Y`X~8|uWGa5E,Y]!*g=-`U],t[M"Er:6wʽ_,
jk[$lXߡ~eVyR88w.-,Ol
; O4wwV{젫v"E4
C|I@`%XbYEU6X4`emӅ<^'
2?a%~	Z՘QW@stׅciؐ{,:{SzZ=e~mk-Z^͟rw,ys|xO}^-vܫs"E[mn爂>ע:Gʑ"x/xX$B[ѨzRan-w/K\
|dy_`jU<`R'rU>[/E}s[y,*YbW?m4y%<|9r+y疍{2KA
}	H9oTn4P,-Wܱ"K>PQWkxMq{ZE~O]~pϘ!XK
̫,d0\8C(+ :9v,@4Tscv9J::wv.T>U|J|z-XE)XAȑ-\r%.X
P`UsipT5sk
tg|tg-whW!X׎.|g0C
|[P!XdeZ)3=O-(Q8+C5b,ڢ<MvHr蕥~m3!O;ˊaB/2AZ?g3ӻ>NY!c-Ϙ>0/w_υr^r=چcǎ}ʸqd܏O	O'<(> \&5
t9)?'t㼺̗uYK9`3"eKc*ǵKg*p2Y4};^,9RFuY@e6ѯMZ&`&ݛŅ;j?i|YVpc? ?%x|dƛrيrܾuqL?ٝ ӚE&}Nd0ۋXx򅧮4v#_C=VSOK/zuB]jÇ4@};V?]-hw_1cH=)X#6Q^y`0}>}=-milKhPF=V7!ߵB8
naPBn~
:KE#
y!f"O"~#][hg_m5wU
C>kKXo;,b"}pcak{J9_o1JE8*RmgYtOߜ5hv%'v~~x})EBZ!Dz?%XfJ?)f+F$nU/
wѭlBI" I@[`񻴿G8Wa5etBZ-+FiW)+L4M=f0)W,;^|ջ/1
 XixE?|E
sݪYS,@*_l
;{ѕ#ˁ.Xg`'v3&2p
~X!nC#L@5xW@4cN2T
7oܴ

NXA{z D"#f?e^~c
 
i]rP:&&O^Y	?b"IWw'Bv
G
mIB|NWyPTԏusG3!XvqP`+dݺuqF씮.Swd޽eǎeioo`1X'%U0mnrWo˕u-~Ź5^ b`!W,:E~qܲE2oUt2Xt@jaFR N5Xe`U	q(TTeh-wyLJ
+0
3	VE/Xx`L_VtKC=gE=978o8}es-_@k|oX,RXD;)4KQ3!y6&@b<[VW߽BXyY+`Y%~9\R8I<1ZŴZs`!--?`I"־Y	t;TmNP'A婏-)?cqXL J,nBh\4V|
B	p2|˅?WdǬ>Ƌ=V+/0h;*Sn+(F!ûtËw=`|r3g,]~I*ٶml޼h;w̛7Sp]i5ӯf)~᰼3ޔ߯ʠGkwn6rrڲ?kQFt!w<\Fu]/"mW6B>9};?d`֏.>Y䞳DZsE.D'}FsDF*o1yϿsIBhx)md]	Hp;
cgK+Qc|nxl`|oww]K,qm?|=+W·p5
U9$K.$QymuH㯤,}&f7`K-ΫhV}?kNT*SOzӈB
p'y u>˗ِ'|@??%qƳn9 z|$'Qoy[|Q"^^ƽj-\V7L,UCqYA-!`ª\`(-~A˭%_'oᳳ!X45#fAptcn9r+,`b=.R9/굉T}}\H@فUBA4'0̎I6H<%4;샣CwIEH)}^=ڤ=h,*+ RLr4
tm#kQ}QK}UZי7Zf,[L֭['6m_~hGgӟT؉g53)'ʇ~wa??{'O!l?~&8K~ލY)>'{\,kE2K@+8_)o*l8
of9m,DPϋ<9"}NG卯_\yϚX 9l8ZO$U2'3hLD/¯'o/`𩸶>//.:ӵw.3g?ֹ9on9W: 37?}U>>G>h:9c
9}*3n]_wG%+S|_[EBn4Li"-5]X]/WDEk2B{XX"e2[Num7g?tw#sN_K̙@ӼOWW.}@.S?E.z95r#
&vBfͧe3ϴo?sȏoy+r1ȁ:7.4e?~5Ej^>}Vu`)xnQ
a穟B}5,XSZT]=̷YXLJQ?%X%W
"/ENg;|xG 9$74%>B\7R
%>x//`'|8yk1;Q7"6U
&2y?^0?X%b/Z+|tY~!X½&}:K&q>ˀ
?#ufjiʕ9?(-FQN,4| A*;W#3,rw
pTG߰N
䋒({UAnmXߡe)iz2AVy*
л`5NlL}Gp=jr?+)x`|v\O(#g5

+<X1+A+(wk;.
>,؉ΛC:Tka Cd;'*A
(Z(!Ox+<:s̓y˄EJ[?gʃJ[+,=r}W@'j5Fu5g	9hG\6tرQLjtsX4!W=+M>/M7̓TK93i2V˯=6)
!O׼+|4YTn_:k3|+|tkbz7,|~=½b6eX>'X@R3E;3\ó9ju~~7xuBvIvxHo,[y`B#[tCS5,tae4ř)JX:q,9rN9[H\ރ@	SW:q*\‶V5b}`O7vbUL`(hX(x"k*ON_`i([O,>iXLg
<џ20)e$Ho˩9jY\WltX?3"H"
,+g17
ן]v/	`5k…9
e^n9{d#5	ʼ_k6&XWr/
e^n%]/ݓo|DޘpP͖WB[j	b/{ASxqL=ڜeB7LBI:wym8'&27>OFBK9`
XT>rU(ý*9,o>/_6Bir܋cj $7Q⼢o7!X
"jCkC5+Fgr\e8cV[F
<$O׼?m4`	Wτ/]|tVv?D!X\{cӋKo߼RX%%Ggq RK:~%7WEӴ>`EH^ChA\IOГccxtTYAwȱd`x?UfB A;أH:e@8ϯ~񎺯yNr܁n._k}z$
(&o4h`9;m4=P{:~8?T RM2%];%>X QB^W9Tr0><:_d-0b~`ݶ`8o@zҗ)+pߨumwHVc)RA+6zZX:QZWLC6XJf̘!-rwMXr+y_W~k}X^=;j,|Ǻ%R)8o>R2?L<ϱ'4u΂#~r8B>ƽ`yhc4=?X[`y?,ƟDF^&v2!X6QuZ9)9\>0\yY쥁9)@.TmRVuRO񝸫;2G|ye9ӓVlY]}R\LR!yʸlB0i!*ʅ{XO%Pw}]sumLH"Ez,~8 Ӆ,j&
0TVZXॾ6+W{x;YwG߸k}p;ֈO?|I.:ke{ûvI;y`5hHs^l+,#7-[R*\H5"
V/OC',{\(._}=yk;8|q\e`QƵXo5n %۱7Bs"Eho"g:CZX<9ӝ{нqXO۱Jp>'rN[	kaGpN.jS9`FjgJWcݡaSx6&pM9YA#[_!259KXY#g(UW~.^wuʨ0KmM)Ray}\"#jn׼Z|̝;W}Y|X>A>/S&Z`gQyKX<,'B&>S𫺜a.&]T<7L6:'43ϑhgho4B%]DK^(Ӷ(d1b#@Gk"^)⯪`ݶձ/>7|oï2֡];eUÀ^!2+K)X܎"E)RyuQKrwju8?<03R|,_-|mGƼo&$y[з,zvU@%IENDB`PNG


IHDR w}YsBIT|d	pHYs~IDATxڥo;9njs2.ew~VRnGz{~oLXN5o	ܓjpۇPRV`

;rxP
x뼌)ݥxo,Tt6ӍL6emN%EnIi
|JlcsxZ;**dޗZsSd9oIENDB`PNG


IHDRp,r	pHYsodgAMAaPLTEطο}vz}tuuijj_``UVV!xIO[aуMbsRGBhIDATx۶0i#nz"Zs1kgbffy3WځTOcnk
<'8"-QJ˘6_n_t}b#ʲ]qK.KW|T:2p=6lԲu*bɤIENDB`PNG


IHDR `|"p	pHYs+IDATx[kATQD7h[74	P-x#**Ԉ RoNE"wE,`>_L2D22lv{LZnL&ԘcazIHkB	qWi5BF#DSR	EtPڈ:3˽u%t$Z3OOo'0&[QYGnbb>nho28C̗՘ߐgjrS[ΞC+PxL' c5_Nw,!t1~8tw/9.Cϣ3r4w Bez-WMyطGZW3cr#H7(2@sWejks5Ӗ׬[,Dx8nQ[E[~&E664]r
̾O][lӪv_F?2GUXkhaɸG>C?L|;.jR5(vvDGz5݄ΚlHBcd`'$aY
T[vɘt)z	i||>Ԋ6z}UӔ|i? >@2|‰ǡV7|cc>@;>?>`|s+>@I5N8_>@H>;>| ¼`pfz-W>@:3/&=fԑ`Z>j
!ŜBgM6$N|V|s{>@#>[>@X|ـߖ=L#|!B |N2.7|cc>@;>?>`|s+>@I5N8_>@H>;>| ¼`pfz-W>@:3/&=fԑ`Z>j
!ŜBgM6$N|V|s{>@#>[>@X|f`4IENDB`PNG


IHDR w}YgAMAasRGB	pHYs~XIDATxcbΨfΜ0OO# (
 sB0>::{|90xtFIENDB`PNG


IHDRP0p	pHYsodgAMAaPLTE&&&$$$&&&YYYBBB&&&'=UwtRNS;EwfN>4.)?esRGB[IDATxn0i蝞4!$MTXԙgF`sZqZàsgvѽ>BC_뷗ϻۛJ{>[ޜO|'\1a:)St+VtoΧ4h8
:\):(
ERV*iܙ⪐gt,%W>)U
nz
:=(h.'ӒԂmOa0wdbW\+{\b{ޜPi#υ=W3	mS_fPM;w[=t8ly0[^48+;|
n3ԝ?M7F2I0
IENDB`PNG


IHDR@ C	pHYskgAMAaEPLTEuK0"yxtRNS 0@`pc4IDATxC0FRZR:.:#wql~c]&HC|O*3RɇQ<3~,<Ӑ~Z%C72>rum`su
_r5
tAzA"#+Y-%ROFEAbQ~\[Q5L1Lq<\򹂓DA[IENDB`PNG


IHDR `K	pHYs]PLTEUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU"y"y"y"y"y"y"y"y"y"yWptRNS 0@Ͽ@0  0@*Bd cHRMz%u0`:o_F.IDATxݓ E9u0uNtNC(KՏB[ 4"s5C"f:"=2+;"4+.x̗<4@JK>3_ٞ6ϰ8@o~?Q8pMpCǀhAP[;؍!Myc~WJU_Yy]~F<|']@"DH4td=hYn_x̯Yi:tJoU_r9y]~/_.ȮIENDB`PNG


IHDR `|"p	pHYs+ cHRMz%u0`:o_FIDATxKTmSM%)-T(1E9B?.ZD"pa?muWB}s7A@ZnZd
.	a Dn3A%Gh57BRH50eɛ!22?S5^lA8xuC Je3<;Mw)Ԟ8'YxTF`Xr8s&03/ܿ_ynۊ5-`[1	w c8?Y;x4
]pۘ7YNrJ
7z"s+ކGBdKcySla*?"_";/ufh;'{Q~-r(CW_͹چ"	z0?&r߸9/r_#DO5]^Pj/|@ڵT(KH-8Vio<3ie5bH͏n4ЕIENDB`PNG


IHDR\Y6'	pHYs(JgAMAaPLTExoSIDATxc`O480x0*׬bgaQIENDB`PNG


IHDR:	pHYskgAMAaIDATxc8F3!w߁5IENDB`PNG


IHDR$l	pHYs+IDATxͩ0`KyX%q?m]:,!%XBJH	(l2slcn~vDYo]O_͆a*Ň=%IX1msu
604)Dў3(q@u>J-@'7Ÿic/onߍ
AFަh@~8P@BX'"H$$_7qծfý0OC$\k6:AThg O%dݓB՛P41	qmcJ	Ɔ #oSF ]
Au"D"H|f l89橢Z|(Su3{m^f0W pjC3BP9R$P!{Rz*;9&:!
rLV00dmJ෋!H1ND"H4ȴ[IENDB`PNG


IHDR\E33gAMAa	pHYs(JIDATxR
0mVIENDB`PNG


IHDR\E33gAMAa	pHYs(JqIDATx۵1Џ=bz{͹Ǔ+uz(j(g+ @(B
PRX)Qu,IENDB`PNG


IHDR$l	pHYs+IDATxύ!] V%5e0ܐRoDʜrHn`) BrzHow
O$c{1C{<<<0AdA>4߾6 B@^0j#H%^Ag
$(7꓃)-@*˦
m a50D_V	dt0&`$CvKms|ii<-W.4&_CpI
tĈ6~o)EQ{o85Af8Sxns-
%EZ$3vXS\&.Jc1/'~g2ڴo)?FN-
@ęL MJ
`E4>=zq~` :Ȃ>[@ad*2 I/a :Ȃ|fQhr}m@a GJp
K8%8IP9#2Pn'S%>{[T!ǗM
@j`剾dM':Q$f+`LHB어M#x&ZT\*iLPtmWߔ%6R>3ަyυqj.q$rZK⣋zIgڱL]j];ƌc_NdiRoZ3B@ԙi|{p!IENDB`.intellisenseListBox {
    color: TRANSPARENT; /*[{plugin-select-option-color}]*/
    background-color: TRANSPARENT; /*[{plugin-select-option-background-color}]*/
    padding: 0;
    margin: 0;
    max-width: 500px;
    cursor: default;
    border: 1px solid TRANSPARENT; /*[1px solid {plugin-textbox-border-color}]*/
    font-family: "Consolas", Lucida Console, monospace; /*[{plugin-font-family} , Lucida Console, monospace]*/
    font-size: 9pt; /*[{plugin-font-size}]*/
    list-style-type: none;
    overflow-y: auto;
    overflow-x: hidden;
    -ms-user-select: none;
    z-index: 1000;
}

.intellisenseListBox ::selection{
    background-color: transparent;
}

.intellisenseListBoxItem {
    padding-bottom: 1px;
    padding-left: 2px;
    padding-right: 2px;
    padding-top: 1px;
    -ms-user-select: none;
}

.intellisenseListBoxItem:hover{
    background-color: TRANSPARENT; /*[{f12-intellisense-hover-background-color}]*/
    color: TRANSPARENT; /*[{f12-intellisense-hover-color}]*/
}

.intellisenseListBoxItem[selected=selected] {
    background-color: TRANSPARENT; /*[{f12-intellisense-checked-background-color}]*/
    color: TRANSPARENT; /*[{f12-intellisense-checked-color}]*/
}
//! Copyright (C) Microsoft. All rights reserved.
var Common;(function(n){var t;(function(t){"use strict";var i=function(){function t(n){this._context=n}return t.evaluateProperty=function(n,i,r,u){var f=function(n,i){if(n)try{var u=t.getPagePropertyDescriptor(r,n,i);return u?u:f(r.Object.getPrototypeOf(n),i)}catch(e){return e.name==="TypeError"?{}:void 0}return n},e=function(n,t,i){if(i){if(typeof i.value!="undefined"&&i.value!==null)return i.value;var f=typeof n;if(f!=="object"&&f!=="function"&&(n=new r.Object(n)),i.isSafeGet)return u(n,t)}return};return n&&e(n,i,f(n,i))},t.getObjectContextPropertiesNames=function(t){var r=[],u,f,e,i,o;if(t.object!==null&&t.object!==undefined)for(u=typeof t.object,u!=="object"&&u!=="function"&&(t.object=new t.windowContext.Object(t.object)),f=n.RemoteHelpers.getValidWindow(t.windowContext,t.object),f.isValid&&(t.object=t.windowContext=f.window),e=t.windowContext.Object.getOwnPropertyNames(t.object),e&&(r=e),i=t.windowContext.Object.getPrototypeOf(t.object);i;)o=t.windowContext.Object.getOwnPropertyNames(i),r=Array.prototype.concat.call(r,o),i=t.windowContext.Object.getPrototypeOf(i);return r},t.prototype.getIntellisenseItemsForExpression=function(n){return this.getIntellisenseItemsForExpressionUsingWindowContext(n,this._context.currentWindowContext,this._context.currentWindowContext.window,[])},t.prototype.getIntellisenseItemsForExpressionUsingWindowContext=function(n,i,r,u){var f=this.getObjectContextForExpressionUsingEvaluator(n,i,r,t.evaluateProperty),e=n.length===0&&i===r;return this.getIntellisenseItemsForObjectContext(f,t.getObjectContextPropertiesNames,e,u)},t.getPagePropertyDescriptor=function(t,i,r){var u=function(n,t){var i,r;try{window.__BROWSERTOOLS_CONSOLE_INTELLISENSE_DESCRIPTOR=null;i=Object.getOwnPropertyDescriptor(n,t);i&&(r=!1,i.get&&/\[native code\]/.test(i.get.toString())?r=!0:typeof i.get=="undefined"&&(r=!0),window.__BROWSERTOOLS_CONSOLE_INTELLISENSE_DESCRIPTOR={value:i.value,isSafeGet:r})}catch(u){}};try{return n.RemoteHelpers.executeScript("window.__BROWSERTOOLS_CONSOLE_INTELLISENSE_GET_DESCRIPTOR = "+u.toString(),t,!0),t.__BROWSERTOOLS_CONSOLE_INTELLISENSE_GET_DESCRIPTOR(i,r),t.__BROWSERTOOLS_CONSOLE_INTELLISENSE_DESCRIPTOR}catch(f){return new t.Object(null)}},t.prototype.getObjectContextForExpressionUsingEvaluator=function(t,i,r,u){for(var s,o,e=t.split("."),f=0;f0;++f)s=n.PropertyEvaluationIgnoreList.propertyEvaluationFunction(i,r),r=u(r,e[f],i,s),o=n.RemoteHelpers.getValidWindow(i,r),o.isValid&&(r=i=o.window);return{object:r,windowContext:i}},t.prototype.elementHasId=function(n){return Object.getOwnPropertyDescriptor(n,"id")?!1:typeof n.id!="string"?!1:n.id!==""},t.prototype.getGlobalElementNames=function(n){var t=this,i=n.windowContext.document.querySelectorAll("[id]"),r=Array.prototype.filter.call(i,function(n){return t.elementHasId(n)});return Array.prototype.map.call(r,function(n){return""+n.id})},t.prototype.getIntellisenseItemsForObjectContext=function(n,i,r,u){var e=i(n),o,h,s,f;for(r&&(e=Array.prototype.concat.call(e,t.JSKeywords),e=Array.prototype.concat.call(e,u),e=Array.prototype.concat.call(e,this.getGlobalElementNames(n))),o=[],f=0,h=e.length;ft?1:0},o=Array.prototype.sort.call(o,function(n,t){var i=s(n.name.toLowerCase(),t.name.toLowerCase());return i===0?s(t.name,n.name):i}),f=1;f0)return!0;t=this._context.currentWindowContext.Object.getPrototypeOf(t)}return!1},n}(),r,u;t.TreeViewRemoteObjectExplorer=i;r=function(){function n(){}return n.prototype.getAllPropertyNames=function(n){var i=[];for(var r in n)i.push(r.toString());return i.sort(t.TreeViewUtils.propertyNameCompare)},n.prototype.getNamedProperties=function(n){return i.getNamedPropertiesHelper(n)},n.prototype.hasMembers=function(n){var t=n;for(var i in n)return!0;return!1},n}();t.TreeViewDirectObjectExplorer=r;u=function(){function i(n,t){this._maxItemTraverseCount=500;this._maxUngroupArraySize=50;this._arrayGroupSize=10;this._context=n;this._treeViewObjectExplorer=t}return i.prototype.createOutputObject=function(i,r,u,f){var e=n.ObjectView.TreeViewUtils.getDetailedTypeOf(r,this._context.constructors),h,l,o,s,a,v,p,c,y,w,b;if(u!==undefined&&!f)if(r=r[u],r)e=n.ObjectView.TreeViewUtils.getDetailedTypeOf(r,this._context.constructors);else return null;if(l=!this.isEmpty(r),l){if(h=this.createName(r,e),h==="[object Window]"&&n.RemoteHelpers.isCrossSiteWindow(this._context.currentWindowContext,r))try{a=dom.getCrossSiteWindow(this._context.currentWindowContext,r);a&&(r=a)}catch(k){o=[{propertyName:"error",propertyValue:this.createExceptionValue({message:"Access denied."})}]}o||(s=remoteHelpers.getUid(),this._context.resultMap[s]=r,o=e==="array"?this.createArrayObject(s,r,u,f):this.createValue(r,s,f))}else h=null,o=this.createValue(r);if(v=this._context.getHtmlViewableTypeName(r),p=v!==null&&v!=="AttributeNode",r){y=!1;try{y=r.toString&&r.toString()!=="[object]"&&r.toString.toString().indexOf("[native code]")===-1}catch(k){}y?c=n.EncodingUtilities.escapeHtml(r.toString()):e==="array"&&r.length>this._maxUngroupArraySize?(w=r.slice(0,this._maxUngroupArraySize),b=this.createArrayObject("fakeId",w,u),c=t.TreeViewValueStringBuilder.createValueString(b,e,!0)):c=t.TreeViewValueStringBuilder.createValueString(o,e)}return{inputId:i,consoleType:"consoleItemOutput",detailedType:e,isExpandable:l,isHtmlViewableType:p,name:h,value:o,valueString:c,uid:s}},i.prototype.createArrayObject=function(n,t,i,r){var y=!1,c,u,f,e,a,s,v,h,l,o;if(r&&i&&i.indexOf(":")!==-1?(a=i.split(":",2),f=parseInt(a[0],10),e=parseInt(a[1],10)+1,c=e-f,y=!0):(c=t.length,f=0,e=c,i=null),c<=this._maxUngroupArraySize){if(u=this.createValue(t.slice(f,e),n,!1,!0),u=u.filter(function(n){return!isNaN(parseInt(n.propertyName,10))}),y||e-f!==u.length)for(s=0;f0&&a[c]===a[c-1])continue;h=""+a[c];var v=nt(u,a[c]),y=n.ObjectView.TreeViewUtils.getDetailedTypeOf(v,this._context.constructors),b=null;w=w||y==="function";p=!this.isEmpty(v);p&&(b=this.createName(u[h],y),b==="null"&&(p=!1));var d=this._context.getHtmlViewableTypeName(v),tt=d!==null&&d!=="AttributeNode",it=e&&y==="function"||!e&&y!=="function"||k==="array";it&&(l={detailedType:y,isExpandable:p,isHtmlViewableType:tt,name:b,value:p?f+":"+h:this.createValue(v,undefined,!1),valueString:null},l.valueString=l.isExpandable?t.TreeViewValueStringBuilder.createPropertyValueString(l,v):t.TreeViewValueStringBuilder.formatPropertyValueString(l.value),i.EmptyOrHeadingTrailingWhiteSpaceRegEx.test(h)&&(h='"'+h+'"'),r.push({propertyName:h,propertyValue:l}))}catch(rt){r.push({propertyName:h,propertyValue:this.createExceptionValue(rt)});continue}e||!w||s||r.push({propertyName:"[functions]",propertyValue:{detailedType:"internal",isExpandable:!0,isHtmlViewableType:!1,name:" ",isInternalProperty:!0,value:f+"#internal:[functions]"}})}catch(ut){r.push({propertyName:"0",propertyValue:this.createExceptionValue(ut)})}return r},i.prototype.isEmpty=function(n){if(n===null)return!0;var t=typeof n;if(t==="object"||t==="function")try{if(this._treeViewObjectExplorer.hasMembers(n))return!1}catch(i){return!1}return!0},i.prototype.createName=function(t,i){i||(i=n.ObjectView.TreeViewUtils.getDetailedTypeOf(t,this._context.constructors));switch(i){case"boolean":return""+t;case"date":return"[date] "+t;case"function":return""+t;case"null":return"null";case"number":return""+t;case"regex":return"[regex] "+t;case"string":return'"'+t.slice(0,1024)+'"';case"undefined":return"undefined";case"array":return this.isEmpty(t)?n.ObjectView.TreeViewUtils.ConsoleUITypeStrings.arrayName:this.getPrototypeName(t);case"object":case"htmlElement":return this.isEmpty(t)?n.ObjectView.TreeViewUtils.ConsoleUITypeStrings.objectName:this.getPrototypeName(t);default:return""+t}},i.prototype.getPrototypeName=function(n){var t;try{t=Object.prototype.toString.call(n)}catch(i){t=null}return t},i.prototype.createExceptionValue=function(t){var r=t.message||t.description,i="<"+r.trim()+">";return i==="<>"&&(i=""),{detailedType:"exception",isExpandable:!1,value:i,valueString:n.EncodingUtilities.escapeHtml(i)}},i.EmptyOrHeadingTrailingWhiteSpaceRegEx=/^$|^\s|\s$/,i}();t.TreeViewRemoteHelpers=u})(t=n.ObjectView||(n.ObjectView={}))})(Common||(Common={}))
//# sourceMappingURL=treeViewRemoteHelpers.min.js.map
//! Copyright (C) Microsoft. All rights reserved.
var Common;(function(n){var t;(function(t){"use strict";var u=function(){function t(){}return t.getDetailedTypeOf=function(n,t){var r,i;if(n===undefined)return"undefined";if(r=typeof n,r==="object"&&t){if(n)for(i=0;it?1:0},t.ConsoleNotifyType={assert:"consoleItemError",error:"consoleItemError",info:"consoleItemInfo",log:"consoleItemLog",warn:"consoleItemWarn",internalMessage:"internalMessage"},t.ConsoleInternalMessage={startGroup:"startGroup",startGroupCollapsed:"startGroupCollapsed",endGroup:"endGroup",displayTraceStyles:"displayTraceStyles"},t.ConsoleUITypeStrings={functionName:"[function]",objectName:"[object]",arrayName:"[array]",emptyArray:" [ ]",emptyObject:" { }",expandableArray:" [...]",expandableObject:" {...}"},t.ConsoleFilterId={all:-1,error:0,warning:1,message:2,log:3},t}(),i,r;t.TreeViewUtils=u;i=function(){function t(){}return t.createValueString=function(n,i,r){var u;if(r===void 0&&(r=!1),n&&typeof n=="object"){var e,h=!0,o="",s,f="<\/span>";switch(i){case"object":o=o+"{";s=!0;f="}"+f;break;case"array":o=o+"[";s=!1;f="]"+f;n=n.filter(function(n){return!isNaN(parseInt(n.propertyName,10))});break;default:return}for(e=o,u=0;u20)){r=!0;break}return r&&(f=" ..."+f),e+f}},t.createPropertyValueString=function(t,i){var r,u;try{switch(t.detailedType){case"array":if(r=t.value.indexOf(":"),r!==-1)return"Array["+n.EncodingUtilities.escapeHtml(i.length)+"]";case"object":if(r=t.name.indexOf(" "),r!==-1)return u=n.EncodingUtilities.escapeHtml(t.name.substr(r+1,t.name.length-r-2)),u+" {...}"}}catch(f){}return t.detailedType},t.formatPropertyValueString=function(t){if(t&&typeof t=="string"){var i=t.length>15?t.substr(0,12)+'..."':t;return i=String.prototype.replace.call(i,/(\r\n|\n\r|\r|\n)/g,"  "),n.EncodingUtilities.escapeHtml(i)}return t},t.createPropertyValueToken=function(n){var t;switch(n.propertyValue.detailedType){case"undefined":t="valueStringToken-Undefined";break;case"null":t="valueStringToken-Null";break;case"boolean":t="valueStringToken-Boolean";break;case"number":t="valueStringToken-Number";break;case"string":t="valueStringToken-String";break;case"function":t="valueStringToken-Function";break;case"array":t="valueStringToken-Array";break;case"object":t="valueStringToken-Object";break;default:t="valueStringToken-Default"}return""+n.propertyValue.valueString+"<\/span>"},t.createPropertyNameToken=function(t){var i=n.EncodingUtilities.escapeHtml(t.propertyName);return""+i+"<\/span>"},t}();t.TreeViewValueStringBuilder=i;r=function(){function n(){}return n.formatConsoleMessage=function(){for(var r,t=[],u=0;u=t.length)return r;switch(r){case"%%":return"%";case"%d":case"%i":return n.convertToInteger(t[i++]);case"%f":return n.convertToNumber(t[i++]);case"%s":return n.convertToString(t[i++]);case"%b":return n.convertToBase(t[i++],2);case"%x":case"%X":return n.convertToBase(t[i++],16);case"%E":case"%e":return n.convertToExponential(t[i++]);default:return r}},f=e.replace(/%%|%([sbxXideEfF])/g,o);for(r=i;r0?f+" "+n.convertToString(t[r]):n.convertToString(t[r]);return f.slice(0,1024)},n.convertToString=function(n){var t;try{n===undefined||n===null?t=String(n):(t=n.toString(),typeof t!="string"&&(t="[object Object]"))}catch(i){t="[object Object]"}return t},n.convertToInteger=function(t){var i=n.convertToNumber(t);return isNaN(i)?i.toString():Math.round(i-i%1).toString()},n.convertToBase=function(t,i){var r=n.convertToNumber(t),u;return isNaN(r)?r.toString():(u={"2":"0b","8":"0","16":"0x"}[i]||"",u.toString()+(r<0?(r>>>0).toString(i):r.toString(i)))},n.convertToExponential=function(t){var i=n.convertToNumber(t);return isNaN(i)?i.toString():i.toExponential()},n.convertToNumber=function(t){return isNaN(t)||t===null?Number(n.convertToString(t)):Number(t)},n}();t.TreeViewStringFormatter=r})(t=n.ObjectView||(n.ObjectView={}))})(Common||(Common={}))
//# sourceMappingURL=treeViewUtilities.min.js.map
//! Copyright (C) Microsoft. All rights reserved.
var F12,__rpcLog;(function(n){var t;(function(n){var t;(function(t){"use strict";var u=function(){function t(n,t,i,r,u){var f=this;this._ourIdentifier=n;this._nextId=0;this._promiseTable={};this._jsonRpcMethodReceive=t;this._jsonRpcNotificationReceive=i;this._postMessage=r;Date.now||(Date.now=function(){return+new Date});this._startTime=Date.now();u(function(n){f.onMessage(n)})}return t.prototype.jsonRpcMethodCall=function(n,t,r,u,f){var s=this,o=this._ourIdentifier+"|"+this._nextId,e;return this._nextId++,this._promiseTable[o]={completed:r,error:u},e=JSON.stringify({id:o,method:n,params:t}),this.logTraffic(e),i.RandomDelay?(i.queueData(function(){s._postMessage(e,f)},e),!0):this._postMessage(e,f)},t.prototype.jsonRpcNotification=function(n,t,r){var f=this,e=this._ourIdentifier+"|NULL",u=JSON.stringify({id:e,method:n,params:t});this.logTraffic(u);i.RandomDelay?i.queueData(function(){f._postMessage(u,r)},u):this._postMessage(u,r)},t.prototype.logTraffic=function(n){if(isDebugBuild){var t=("  "+(Date.now()-this._startTime)/1e3).slice(-9);__rpcLog.push(t+" | "+n);__rpcLog.length>100&&__rpcLog.shift()}},t.prototype.onMessage=function(t){var f=this,r,u;this.logTraffic(t.data);r=JSON.parse(t.data);u=r.id.split("|");n.Utility.Assert.areEqual(u.length,2);u[1]==="NULL"?u[0]!==this._ourIdentifier&&this._jsonRpcNotificationReceive(r.method,r.params):u[0]===this._ourIdentifier?i.RandomDelay?i.queueData(function(){f.handleReply(r)},t.data):this.handleReply(r):i.RandomDelay?i.queueData(function(){f.handleCall(r)},t.data):this.handleCall(r)},t.prototype.handleReply=function(t){if(!this._promiseTable[t.id]){n.Utility.Assert.failDebugOnly("Can't complete a promise that does not exist in the promise table. Probably a dup reply msg.");return}t.error?(n.Utility.Assert.isUndefined(t.data,"Can't have both data and error"),this._promiseTable[t.id].error(t.error)):this._promiseTable[t.id].completed(t.data);delete this._promiseTable[t.id]},t.prototype.handleCall=function(t){var i=this;this._jsonRpcMethodReceive(t.method,t.params,function(r,u){var f;r!==null&&r!==undefined?(n.Utility.Assert.isUndefined(u,"Can't have both data and error"),f=JSON.stringify({id:t.id,data:r})):(n.Utility.Assert.hasValue(u,"RPC call returned no value, but no error object either"),f=JSON.stringify({id:t.id,error:u}));i._postMessage(f)})},t}(),r,i;t.JsonRPCEndpoint=u;r=function(){function n(n,t){this.callback=n;this.message=t}return n}();t.RpcDelayData=r;i=function(){function n(){}return n.enableDelay=function(t,i){n.RandomDelay=!0;n.CalculateDelayTime=t;n.DelayedMessage=i},n.disableDelay=function(){n.RandomDelay=!1;n.RandomDelayTimeout&&(clearTimeout(n.RandomDelayTimeout),n.RandomDelayTimeout=null,n.clearQueue())},n.queueData=function(t,i){var f=new r(t,i),u;n.DelayedQueue.push(f);n.RandomDelayTimeout||(u=n.CalculateDelayTime(i),n.RandomDelayTimeout=setTimeout(n.fireRandomly,u))},n.fireRandomly=function(){var t=n.DelayedQueue.shift(),i;n.DelayedMessage(t.message);t.callback();n.DelayedQueue.length>0?(i=n.CalculateDelayTime(n.DelayedQueue[0].message),n.RandomDelayTimeout=setTimeout(n.fireRandomly,i)):n.RandomDelayTimeout=null},n.clearQueue=function(){for(var i,t=0;t