!function(){var e=function(e){function t(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:i})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=6)}([function(e,t){var n="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",i=new RegExp("["+n+"]"),r=new RegExp("["+n+"̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‌‍‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]");t.newline=/[\n\r\u2028\u2029]/,t.lineBreak=new RegExp("\r\n|"+t.newline.source),t.allLineBreaks=new RegExp(t.lineBreak.source,"g"),t.isIdentifierStart=function(e){return e<65?36===e||64===e:e<91||(e<97?95===e:e<123||e>=170&&i.test(String.fromCharCode(e)))},t.isIdentifierChar=function(e){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<123||e>=170&&r.test(String.fromCharCode(e))))}},function(e,t,n){function i(e,t){if(!t.multiline_frame&&t.mode!==T.ForInitializer&&t.mode!==T.Conditional){var n=t.start_line_index;e.remove_indent(n)}}function r(e,t){for(var n=0;nn&&(n=e.line_indent_level)),{mode:t,parent:e,last_text:e?e.last_text:"",last_word:e?e.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,inline_frame:!1,if_block:!1,else_block:!1,do_block:!1,do_while:!1,import_block:!1,in_case_statement:!1,in_case:!1,case_body:!1,indentation_level:n,line_indent_level:e?e.line_indent_level:n,start_line_index:Q.get_line_number(),ternary_depth:0}}function o(e,t){for(var n=e.newlines,i=ae.keep_array_indentation&&K(te.mode),r=q,s=0;s0,t);else if(ae.max_preserve_newlines&&n>ae.max_preserve_newlines&&(n=ae.max_preserve_newlines),ae.preserve_newlines&&e.newlines>1){x(!1,t);for(var _=1;_=ae.wrap_line_length&&x(!1,!0)}}}function x(e,t){if(!t&&";"!==te.last_text&&","!==te.last_text&&"="!==te.last_text&&"TK_OPERATOR"!==H)for(var n=N(1);!(te.mode!==T.Statement||te.if_block&&n&&"TK_RESERVED"===n.type&&"else"===n.text||te.do_block);)k();Q.add_new_line(e)&&(te.multiline_frame=!0)}function m(){Q.just_added_newline()&&(ae.keep_array_indentation&&K(te.mode)&&q.wanted_newline?(Q.current_line.push(q.whitespace_before),Q.space_before_token=!1):Q.set_indent(te.indentation_level)&&(te.line_indent_level=te.indentation_level))}function g(e){if(Q.raw)return void Q.add_raw_token(q);if(ae.comma_first&&"TK_COMMA"===H&&Q.just_added_newline()&&","===Q.previous_line.last()){var t=Q.previous_line.pop();Q.previous_line.is_empty()&&(Q.previous_line.push(t),Q.trim(!0),Q.current_line.pop(),Q.trim()),m(),Q.add_token(","),Q.space_before_token=!0}e=e||q.text,m(),Q.add_token(e)}function b(){te.indentation_level+=1}function v(){te.indentation_level>0&&(!te.parent||te.indentation_level>te.parent.indentation_level)&&(te.indentation_level-=1)}function w(e){te?(ie.push(te),ne=te):ne=n(null,e),te=n(ne,e)}function K(e){return e===T.ArrayLiteral}function R(e){return r(e,[T.Expression,T.ForInitializer,T.Conditional])}function k(){ie.length>0&&(ne=te,te=ie.pop(),ne.mode!==T.Statement||ae.unindent_chained_methods||i(Q,ne))}function y(){return te.parent.mode===T.ObjectLiteral&&te.mode===T.Statement&&(":"===te.last_text&&0===te.ternary_depth||"TK_RESERVED"===H&&r(te.last_text,["get","set"]))}function O(){return!!("TK_RESERVED"===H&&r(te.last_text,["var","let","const"])&&"TK_WORD"===q.type||"TK_RESERVED"===H&&"do"===te.last_text||"TK_RESERVED"===H&&r(te.last_text,ue)&&!q.wanted_newline||"TK_RESERVED"===H&&"else"===te.last_text&&("TK_RESERVED"!==q.type||"if"!==q.text||q.comments_before.length)||"TK_END_EXPR"===H&&(ne.mode===T.ForInitializer||ne.mode===T.Conditional)||"TK_WORD"===H&&te.mode===T.BlockStatement&&!te.in_case&&"--"!==q.text&&"++"!==q.text&&"function"!==J&&"TK_WORD"!==q.type&&"TK_RESERVED"!==q.type||te.mode===T.ObjectLiteral&&(":"===te.last_text&&0===te.ternary_depth||"TK_RESERVED"===H&&r(te.last_text,["get","set"])))&&(w(T.Statement),ae.unindent_chained_methods||b(),o(q,!0),y()||E("TK_RESERVED"===q.type&&r(q.text,["do","for","if","while"])),!0)}function S(e,t){for(var n=0;n=_e.length?null:_e[t]}function D(){O()||o(q);var e=T.Expression;if("["===q.text){if("TK_WORD"===H||")"===te.last_text)return"TK_RESERVED"===H&&r(te.last_text,Y.line_starters)&&(Q.space_before_token=!0),w(e),g(),b(),void(ae.space_in_paren&&(Q.space_before_token=!0));e=T.ArrayLiteral,K(te.mode)&&("["!==te.last_text&&(","!==te.last_text||"]"!==J&&"}"!==J)||ae.keep_array_indentation||x())}else"TK_RESERVED"===H&&"for"===te.last_text?e=T.ForInitializer:"TK_RESERVED"===H&&r(te.last_text,["if","while"])&&(e=T.Conditional);";"===te.last_text||"TK_START_BLOCK"===H?x():"TK_END_EXPR"===H||"TK_START_EXPR"===H||"TK_END_BLOCK"===H||"."===te.last_text?E(q.wanted_newline):"TK_RESERVED"===H&&"("===q.text||"TK_WORD"===H||"TK_OPERATOR"===H?"TK_RESERVED"===H&&("function"===te.last_word||"typeof"===te.last_word)||"*"===te.last_text&&(r(J,["function","yield"])||te.mode===T.ObjectLiteral&&r(J,["{",","]))?ae.space_after_anon_function&&(Q.space_before_token=!0):"TK_RESERVED"!==H||!r(te.last_text,Y.line_starters)&&"catch"!==te.last_text||ae.space_before_conditional&&(Q.space_before_token=!0):Q.space_before_token=!0,"("===q.text&&"TK_RESERVED"===H&&r(te.last_word,["await","async"])&&(Q.space_before_token=!0),"("===q.text&&("TK_EQUALS"!==H&&"TK_OPERATOR"!==H||y()||E()),"("===q.text&&"TK_WORD"!==H&&"TK_RESERVED"!==H&&E(),w(e),g(),ae.space_in_paren&&(Q.space_before_token=!0),b()}function L(){for(;te.mode===T.Statement;)k();o(q),te.multiline_frame&&E("]"===q.text&&K(te.mode)&&!ae.keep_array_indentation),ae.space_in_paren&&("TK_START_EXPR"!==H||ae.space_in_empty_paren?Q.space_before_token=!0:(Q.trim(),Q.space_before_token=!1)),"]"===q.text&&ae.keep_array_indentation?(g(),k()):(k(),g()),i(Q,ne),te.do_while&&ne.mode===T.Conditional&&(ne.mode=T.Expression,te.do_block=!1,te.do_while=!1)}function j(){o(q);var e=N(1),t=N(2);w(t&&(r(t.text,[":",","])&&r(e.type,["TK_STRING","TK_WORD","TK_RESERVED"])||r(e.text,["get","set","..."])&&r(t.type,["TK_WORD","TK_RESERVED"]))?r(J,["class","interface"])?T.BlockStatement:T.ObjectLiteral:"TK_OPERATOR"===H&&"=>"===te.last_text?T.BlockStatement:r(H,["TK_EQUALS","TK_START_EXPR","TK_COMMA","TK_OPERATOR"])||"TK_RESERVED"===H&&r(te.last_text,["return","throw","import","default"])?T.ObjectLiteral:T.BlockStatement);var n=!e.comments_before.length&&"}"===e.text,i=n&&"function"===te.last_word&&"TK_END_EXPR"===H;if(ae.brace_preserve_inline){var s=0,a=null;te.inline_frame=!0;do{if(s+=1,a=N(s),a.wanted_newline){te.inline_frame=!1;break}}while("TK_EOF"!==a.type&&("TK_END_BLOCK"!==a.type||a.opened!==q))}("expand"===ae.brace_style||"none"===ae.brace_style&&q.wanted_newline)&&!te.inline_frame?"TK_OPERATOR"!==H&&(i||"TK_EQUALS"===H||"TK_RESERVED"===H&&C(te.last_text)&&"else"!==te.last_text)?Q.space_before_token=!0:x(!1,!0):(!K(ne.mode)||"TK_START_EXPR"!==H&&"TK_COMMA"!==H||(("TK_COMMA"===H||ae.space_in_paren)&&(Q.space_before_token=!0),("TK_COMMA"===H||"TK_START_EXPR"===H&&te.inline_frame)&&(E(),ne.multiline_frame=ne.multiline_frame||te.multiline_frame,te.multiline_frame=!1)),"TK_OPERATOR"!==H&&"TK_START_EXPR"!==H&&("TK_START_BLOCK"!==H||te.inline_frame?Q.space_before_token=!0:x())),g(),b()}function I(){for(o(q);te.mode===T.Statement;)k();var e="TK_START_BLOCK"===H;te.inline_frame&&!e?Q.space_before_token=!0:"expand"===ae.brace_style?e||x():e||(K(te.mode)&&ae.keep_array_indentation?(ae.keep_array_indentation=!1,x(),ae.keep_array_indentation=!0):x()),k(),g()}function B(){if("TK_RESERVED"===q.type)if(r(q.text,["set","get"])&&te.mode!==T.ObjectLiteral)q.type="TK_WORD";else if(r(q.text,["as","from"])&&!te.import_block)q.type="TK_WORD";else if(te.mode===T.ObjectLiteral){var e=N(1);":"===e.text&&(q.type="TK_WORD")}if(O()?"TK_RESERVED"===H&&r(te.last_text,["var","let","const"])&&"TK_WORD"===q.type&&(te.declaration_statement=!0):!q.wanted_newline||R(te.mode)||"TK_OPERATOR"===H&&"--"!==te.last_text&&"++"!==te.last_text||"TK_EQUALS"===H||!ae.preserve_newlines&&"TK_RESERVED"===H&&r(te.last_text,["var","let","const","set","get"])?o(q):(o(q),x()),te.do_block&&!te.do_while){if("TK_RESERVED"===q.type&&"while"===q.text)return Q.space_before_token=!0,g(),Q.space_before_token=!0,void(te.do_while=!0);x(),te.do_block=!1}if(te.if_block)if(te.else_block||"TK_RESERVED"!==q.type||"else"!==q.text){for(;te.mode===T.Statement;)k();te.if_block=!1,te.else_block=!1}else te.else_block=!0;if("TK_RESERVED"===q.type&&("case"===q.text||"default"===q.text&&te.in_case_statement))return x(),(te.case_body||ae.jslint_happy)&&(v(),te.case_body=!1),g(),te.in_case=!0,void(te.in_case_statement=!0);if("TK_COMMA"!==H&&"TK_START_EXPR"!==H&&"TK_EQUALS"!==H&&"TK_OPERATOR"!==H||y()||E(),"TK_RESERVED"===q.type&&"function"===q.text)return(r(te.last_text,["}",";"])||Q.just_added_newline()&&!r(te.last_text,["(","[","{",":","=",","])&&"TK_OPERATOR"!==H)&&(Q.just_added_blankline()||q.comments_before.length||(x(),x(!0))),"TK_RESERVED"===H||"TK_WORD"===H?"TK_RESERVED"===H&&(r(te.last_text,["get","set","new","export","async"])||r(te.last_text,ue))?Q.space_before_token=!0:"TK_RESERVED"===H&&"default"===te.last_text&&"export"===J?Q.space_before_token=!0:x():"TK_OPERATOR"===H||"="===te.last_text?Q.space_before_token=!0:(te.multiline_frame||!R(te.mode)&&!K(te.mode))&&x(),g(),void(te.last_word=q.text);if(re="NONE","TK_END_BLOCK"===H?ne.inline_frame?re="SPACE":"TK_RESERVED"===q.type&&r(q.text,["else","catch","finally","from"])?"expand"===ae.brace_style||"end-expand"===ae.brace_style||"none"===ae.brace_style&&q.wanted_newline?re="NEWLINE":(re="SPACE",Q.space_before_token=!0):re="NEWLINE":"TK_SEMICOLON"===H&&te.mode===T.BlockStatement?re="NEWLINE":"TK_SEMICOLON"===H&&R(te.mode)?re="SPACE":"TK_STRING"===H?re="NEWLINE":"TK_RESERVED"===H||"TK_WORD"===H||"*"===te.last_text&&(r(J,["function","yield"])||te.mode===T.ObjectLiteral&&r(J,["{",","]))?re="SPACE":"TK_START_BLOCK"===H?re=te.inline_frame?"SPACE":"NEWLINE":"TK_END_EXPR"===H&&(Q.space_before_token=!0,re="NEWLINE"),"TK_RESERVED"===q.type&&r(q.text,Y.line_starters)&&")"!==te.last_text&&(re=te.inline_frame||"else"===te.last_text||"export"===te.last_text?"SPACE":"NEWLINE"),"TK_RESERVED"===q.type&&r(q.text,["else","catch","finally"]))if(("TK_END_BLOCK"!==H||ne.mode!==T.BlockStatement||"expand"===ae.brace_style||"end-expand"===ae.brace_style||"none"===ae.brace_style&&q.wanted_newline)&&!te.inline_frame)x();else{Q.trim(!0);var t=Q.current_line;"}"!==t.last()&&x(),Q.space_before_token=!0}else"NEWLINE"===re?"TK_RESERVED"===H&&C(te.last_text)?Q.space_before_token=!0:"TK_END_EXPR"!==H?"TK_START_EXPR"===H&&"TK_RESERVED"===q.type&&r(q.text,["var","let","const"])||":"===te.last_text||("TK_RESERVED"===q.type&&"if"===q.text&&"else"===te.last_text?Q.space_before_token=!0:x()):"TK_RESERVED"===q.type&&r(q.text,Y.line_starters)&&")"!==te.last_text&&x():te.multiline_frame&&K(te.mode)&&","===te.last_text&&"}"===J?x():"SPACE"===re&&(Q.space_before_token=!0);g(),te.last_word=q.text,"TK_RESERVED"===q.type&&("do"===q.text?te.do_block=!0:"if"===q.text?te.if_block=!0:"import"===q.text?te.import_block=!0:te.import_block&&"TK_RESERVED"===q.type&&"from"===q.text&&(te.import_block=!1))}function P(){O()?Q.space_before_token=!1:o(q);for(var e=N(1);!(te.mode!==T.Statement||te.if_block&&e&&"TK_RESERVED"===e.type&&"else"===e.text||te.do_block);)k();te.import_block&&(te.import_block=!1),g()}function M(){O()?Q.space_before_token=!0:(o(q),"TK_RESERVED"===H||"TK_WORD"===H||te.inline_frame?Q.space_before_token=!0:"TK_COMMA"===H||"TK_START_EXPR"===H||"TK_EQUALS"===H||"TK_OPERATOR"===H?y()||E():x()),g()}function V(){O()||o(q),te.declaration_statement&&(te.declaration_assignment=!0),Q.space_before_token=!0,g(),Q.space_before_token=!0}function U(){o(q,!0),g(),Q.space_before_token=!0,te.declaration_statement?(R(te.parent.mode)&&(te.declaration_assignment=!1),te.declaration_assignment?(te.declaration_assignment=!1,x(!1,!0)):ae.comma_first&&E()):te.mode===T.ObjectLiteral||te.mode===T.Statement&&te.parent.mode===T.ObjectLiteral?(te.mode===T.Statement&&k(),te.inline_frame||x()):ae.comma_first&&E()}function W(){var e="*"===q.text&&("TK_RESERVED"===H&&r(te.last_text,["function","yield"])||r(H,["TK_START_BLOCK","TK_COMMA","TK_END_BLOCK","TK_SEMICOLON"])),t=r(q.text,["-","+"])&&(r(H,["TK_START_BLOCK","TK_START_EXPR","TK_EQUALS","TK_OPERATOR"])||r(te.last_text,Y.line_starters)||","===te.last_text);if(O());else{o(q,!e)}if("TK_RESERVED"===H&&C(te.last_text))return Q.space_before_token=!0,void g();if("*"===q.text&&"TK_DOT"===H)return void g();if("::"===q.text)return void g();if("TK_OPERATOR"===H&&r(ae.operator_position,d)&&E(),":"===q.text&&te.in_case)return te.case_body=!0,b(),g(),x(),void(te.in_case=!1);var n=!0,i=!0,s=!1;if(":"===q.text?0===te.ternary_depth?n=!1:(te.ternary_depth-=1,s=!0):"?"===q.text&&(te.ternary_depth+=1),!t&&!e&&ae.preserve_newlines&&r(q.text,Y.positionable_operators)){var a=":"===q.text,_=a&&s,l=a&&!s;switch(ae.operator_position){case f.before_newline:return Q.space_before_token=!l,g(),a&&!_||E(),void(Q.space_before_token=!0);case f.after_newline:return Q.space_before_token=!0,!a||_?N(1).wanted_newline?x(!1,!0):E():Q.space_before_token=!1,g(),void(Q.space_before_token=!0);case f.preserve_newline:return l||E(),n=!(Q.just_added_newline()||l),Q.space_before_token=n,g(),void(Q.space_before_token=!0)}}if(e){E(),n=!1;var c=N(1);i=c&&r(c.type,["TK_WORD","TK_RESERVED"])}else"..."===q.text?(E(),n="TK_START_BLOCK"===H,i=!1):(r(q.text,["--","++","!","~"])||t)&&(n=!1,i=!1,!q.wanted_newline||"--"!==q.text&&"++"!==q.text||x(!1,!0),";"===te.last_text&&R(te.mode)&&(n=!0),"TK_RESERVED"===H?n=!0:"TK_END_EXPR"===H?n=!("]"===te.last_text&&("--"===q.text||"++"===q.text)):"TK_OPERATOR"===H&&(n=r(q.text,["--","-","++","+"])&&r(te.last_text,["--","-","++","+"]),r(q.text,["+","-"])&&r(te.last_text,["--","++"])&&(i=!0)),(te.mode!==T.BlockStatement||te.inline_frame)&&te.mode!==T.Statement||"{"!==te.last_text&&";"!==te.last_text||x());Q.space_before_token=Q.space_before_token||n,g(),Q.space_before_token=i}function z(e){if(Q.raw)return Q.add_raw_token(q),void(q.directives&&"end"===q.directives.preserve&&(Q.raw=ae.test_output_raw));if(q.directives)return x(!1,e),g(),"start"===q.directives.preserve&&(Q.raw=!0),void x(!1,!0);if(!c.newline.test(q.text)&&!q.wanted_newline)return Q.space_before_token=!0,g(),void(Q.space_before_token=!0);var t,n=p(q.text),i=!1,r=!1,s=q.whitespace_before,_=s.length;for(x(!1,e),n.length>1&&(i=S(n.slice(1),"*"),r=A(n.slice(1),s)),g(n[0]),t=1;t_?g(n[t].substring(_)):Q.add_token(n[t]);x(!1,e)}function X(e){q.wanted_newline?x(!1,e):Q.trim(!0),Q.space_before_token=!0,g(),x(!1,e)}function G(){O()||o(q,!0),"TK_RESERVED"===H&&C(te.last_text)?Q.space_before_token=!0:E(")"===te.last_text&&ae.break_chained_methods),g()}function F(e){g(),"\n"===q.text[q.text.length-1]&&x(!1,e)}function $(){for(;te.mode===T.Statement;)k();o(q)}var Q,Z,Y,q,H,J,ee,te,ne,ie,re,se,ae,_e=[],oe="";se={TK_START_EXPR:D,TK_END_EXPR:L,TK_START_BLOCK:j,TK_END_BLOCK:I,TK_WORD:B,TK_RESERVED:B,TK_SEMICOLON:P,TK_STRING:M,TK_EQUALS:V,TK_OPERATOR:W,TK_COMMA:U,TK_BLOCK_COMMENT:z,TK_COMMENT:X,TK_DOT:G,TK_UNKNOWN:F,TK_EOF:$},t=t||{},t=l(t,"js"),ae={},"expand-strict"===t.brace_style?t.brace_style="expand":"collapse-preserve-inline"===t.brace_style?t.brace_style="collapse,preserve-inline":void 0!==t.braces_on_own_line?t.brace_style=t.braces_on_own_line?"expand":"collapse":t.brace_style||(t.brace_style="collapse");var le=t.brace_style.split(/[^a-zA-Z0-9_\-]+/);ae.brace_preserve_inline=!1,ae.brace_style="collapse";for(var ce=0;ce0;)ee+=ae.indent_char,ae.indent_size-=1;var he=0;if(e&&e.length){for(;" "===e.charAt(he)||"\t"===e.charAt(he);)he+=1;oe=e.substring(0,he),e=e.substring(he)}H="TK_START_BLOCK",J="",Q=new h(ee,oe),Q.raw=ae.test_output_raw,ie=[],w(T.BlockStatement),this.beautify=function(){for(Y=new u(e,ae,ee),_e=Y.tokenize(),Z=0,q=N();q;)se[q.type](),J=te.last_text,H=q.type,te.last_text=q.text,Z+=1,q=N();return Q.get_code(ae.end_with_newline,ae.eol)};var ue=["break","continue","return","throw","yield"]}var l=n(3).mergeOpts,c=n(0),h=n(4).Output,u=n(7).Tokenizer,p=["before-newline","after-newline","preserve-newline"],f=function(e){for(var t={},n=0;n=0&&e=0&&e0&&(n-=1,t-=e.indent_length)},this.trim=function(){for(;" "===this.last();)i.pop(),t-=1;r=0===i.length},this.toString=function(){var t="";return this._empty||(n>=0&&(t=e.indent_cache[n]),t+=i.join("")),t}}function i(e,t){t=t||"",this.indent_cache=[t],this.baseIndentLength=t.length,this.indent_length=e.length,this.raw=!1;var i=[];this.baseIndentString=t,this.indent_string=e,this.previous_line=null,this.current_line=null,this.space_before_token=!1,this.add_outputline=function(){this.previous_line=this.current_line,this.current_line=new n(this),i.push(this.current_line)},this.add_outputline(),this.get_line_number=function(){return i.length},this.add_new_line=function(e){return(1!==this.get_line_number()||!this.just_added_newline())&&(!(!e&&this.just_added_newline())&&(this.raw||this.add_outputline(),!0))},this.get_code=function(e,t){var n=i.join("\n").replace(/[\r\n\t ]+$/,"");return e&&(n+="\n"),"\n"!==t&&(n=n.replace(/[\n]/g,t)),n},this.set_indent=function(e){if(i.length>1){for(;e>=this.indent_cache.length;)this.indent_cache.push(this.indent_cache[this.indent_cache.length-1]+this.indent_string);return this.current_line.set_indent(e),!0}return this.current_line.set_indent(0),!1},this.add_raw_token=function(e){for(var t=0;t1&&this.current_line.is_empty();)i.pop(),this.current_line=i[i.length-1],this.current_line.trim();this.previous_line=i.length>1?i[i.length-2]:null},this.just_added_newline=function(){return this.current_line.is_empty()},this.just_added_blankline=function(){if(this.just_added_newline()){if(1===i.length)return!0;return i[i.length-2].is_empty()}return!1}}e.exports.Output=i},function(e,t){function n(e,t,n,i,r){this.type=e,this.text=t,this.comments_before=[],this.comments_after=[],this.newlines=n||0,this.wanted_newline=n>0,this.whitespace_before=i||"",this.parent=r||null,this.opened=null,this.directives=null}e.exports.Token=n},function(e,t,n){function i(e,t){return new r(e,t).beautify()}var r=n(1).Beautifier;e.exports=i},function(e,t,n){function i(e){return e.replace(/^\s+|\s+$/g,"")}function r(e,t){for(var n=0;n/g;if("`"===a||"'"===a||'"'===a||("/"===a||t.e4x&&"<"===a&&g.test(D,-1))&&("TK_RESERVED"===K.type&&r(K.text,["return","case","throw","else","do","typeof","yield"])||"TK_END_EXPR"===K.type&&")"===K.text&&K.parent&&"TK_RESERVED"===K.parent.type&&r(K.parent.text,["if","while","for"])||r(K.type,["TK_COMMENT","TK_START_EXPR","TK_START_BLOCK","TK_END_BLOCK","TK_OPERATOR","TK_EQUALS","TK_EOF","TK_SEMICOLON","TK_COMMA"]))){var L=a,j=!1,I=!1;if(e=a,"/"===L)for(var B=!1;g.hasNext()&&(j||B||g.peek()!==L)&&!g.testChar(o.newline);)e+=g.peek(),j?j=!1:(j="\\"===g.peek(),"["===g.peek()?B=!0:"]"===g.peek()&&(B=!1)),g.next();else if(t.e4x&&"<"===L){var P=/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[\s\S]+?}|!\[CDATA\[[\s\S]*?\]\])(\s+{[\s\S]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{[\s\S]+?}))*\s*(\/?)\s*>/g;g.back();var M="",V=g.match(D);if(V){for(var U=V[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),W=0===U.indexOf("{"),z=0;V;){var X=!!V[1],G=V[2],F=!!V[V.length-1]||"![CDATA["===G.slice(0,8);if(!F&&(G===U||W&&G.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(X?--z:++z),M+=V[0],z<=0)break;V=g.match(P)}return V||(M+=g.match(/[\s\S]*/g)[0]),M=M.replace(o.allLineBreaks,"\n"),[M,"TK_STRING"]}}else{var $=function(t,n,i){for(var r;g.hasNext()&&(r=g.peek(),j||r!==t&&(n||!o.newline.test(r)));)(j||n)&&o.newline.test(r)?("\r"===r&&"\n"===g.peek(1)&&(g.next(),r=g.peek()),e+="\n"):e+=r,j?("x"!==r&&"u"!==r||(I=!0),j=!1):j="\\"===r,g.next(),i&&-1!==e.indexOf(i,e.length-i.length)&&("`"===t?$("}",n,"`"):$("`",n,"${"),g.hasNext()&&(e+=g.next()))};"`"===L?$("`",!0,"${"):$(L)}if(I&&t.unescape_strings&&(e=l(e)),g.peek()===L&&(e+=L,g.next(),"/"===L))for(;g.hasNext()&&o.isIdentifierStart(g.peekCharCode());)e+=g.next();return[e,"TK_STRING"]}if("#"===a){if(0===m.length&&"!"===g.peek()){for(e=a;g.hasNext()&&"\n"!==a;)a=g.next(),e+=a;return[i(e)+"\n","TK_UNKNOWN"]}var Q="#";if(g.hasNext()&&g.testChar(h)){do{a=g.next(),Q+=a}while(g.hasNext()&&"#"!==a&&"="!==a);return"#"===a||("["===g.peek()&&"]"===g.peek(1)?(Q+="[]",g.next(),g.next()):"{"===g.peek()&&"}"===g.peek(1)&&(Q+="{}",g.next(),g.next())),[Q,"TK_WORD"]}}if("<"===a&&("?"===g.peek()||"%"===g.peek())){g.back();var Z=g.match(y);if(Z)return a=Z[0],a=a.replace(o.allLineBreaks,"\n"),[a,"TK_STRING"]}if("<"===a&&g.match(/\!--/g)){for(a="\x3c!--";g.hasNext()&&!g.testChar(o.newline);)a+=g.next();return x=!0,[a,"TK_COMMENT"]}if("-"===a&&x&&g.match(/->/g))return x=!1,["--\x3e","TK_COMMENT"];if("."===a)return"."===g.peek()&&"."===g.peek(1)?(a+=g.next()+g.next(),[a,"TK_OPERATOR"]):[a,"TK_DOT"];if(r(a,d)){for(;g.hasNext()&&r(a+g.peek(),d)&&(a+=g.next(),g.hasNext()););return","===a?[a,"TK_COMMA"]:"="===a?[a,"TK_EQUALS"]:[a,"TK_OPERATOR"]}return[a,"TK_UNKNOWN"]}function l(e){for(var t="",n=0,i=new a(e),r=null;i.hasNext();)if(r=i.match(/([\s]|[^\\]|\\\\)+/g),r&&(t+=r[0]),"\\"===i.peek()){if(i.next(),"x"===i.peek())r=i.match(/x([0-9A-Fa-f]{2})/g);else{if("u"!==i.peek()){t+="\\",i.hasNext()&&(t+=i.next());continue}r=i.match(/u([0-9A-Fa-f]{4})/g)}if(!r)return e;if((n=parseInt(r[1],16))>126&&n<=255&&0===r[0].indexOf("x"))return e;if(n>=0&&n<32){t+="\\"+r[0];continue}t+=34===n||39===n||92===n?"\\"+String.fromCharCode(n):String.fromCharCode(n)}return t}var c="\n\r\t ".split(""),h=/[0-9]/,u=/[01]/,p=/[01234567]/,f=/[0123456789abcdefABCDEF]/;this.positionable_operators="!= !== % & && * ** + - / : < << <= == === > >= >> >>> ? ^ | ||".split(" ");var d=this.positionable_operators.concat("! %= &= *= **= ++ += , -- -= /= :: <<= = => >>= >>>= ^= |= ~ ...".split(" "));this.line_starters="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(",");var T,E,x,m,g,b=this.line_starters.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as"]),v=/([\s\S]*?)((?:\*\/)|$)/g,w=/([^\n\r\u2028\u2029]*)/g,K=/\/\* beautify( \w+[:]\w+)+ \*\//g,R=/ (\w+)[:](\w+)/g,k=/([\s\S]*?)((?:\/\*\sbeautify\signore:end\s\*\/)|$)/g,y=/((<\?php|<\?=)[\s\S]*?\?>)|(<%[\s\S]*?%>)/g;this.tokenize=function(){g=new a(e),x=!1,m=[];for(var t,n,i,r=null,o=[],l=[];!n||"TK_EOF"!==n.type;){for(i=s(),t=new _(i[1],i[0],T,E);"TK_COMMENT"===t.type||"TK_BLOCK_COMMENT"===t.type||"TK_UNKNOWN"===t.type;)"TK_BLOCK_COMMENT"===t.type&&(t.directives=i[2]),l.push(t),i=s(),t=new _(i[1],i[0],T,E);l.length&&(t.comments_before=l,l=[]),"TK_START_BLOCK"===t.type||"TK_START_EXPR"===t.type?(t.parent=n,o.push(r),r=t):("TK_END_BLOCK"===t.type||"TK_END_EXPR"===t.type)&&r&&("]"===t.text&&"["===r.text||")"===t.text&&"("===r.text||"}"===t.text&&"{"===r.text)&&(t.parent=r.parent,t.opened=r,r=o.pop()),m.push(t),n=t}return m}}var a=n(2).InputScanner,_=n(5).Token,o=n(0);e.exports.Tokenizer=s}]),t=e;"function"==typeof define&&define.amd?define("beautify.js",[],function(){return{js_beautify:t}}):"undefined"!=typeof exports?exports.js_beautify=t:"undefined"!=typeof window?window.js_beautify=t:"undefined"!=typeof global&&(global.js_beautify=t)}(),function(){var e=function(e){function t(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:i})}, t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=3)}([function(e,t,n){function i(e){return e.replace(/^\s+/g,"")}function r(e){return e.replace(/\s+$/g,"")}function s(e,t,n,s){function _(){function e(e){var t="";return{add:function(n){var i=t+n.toLowerCase();t=i.length<=e.length?i:i.substr(i.length-e.length,e.length)},doesNotMatch:function(){return-1===t.indexOf(e)}}}return this.pos=0,this.token="",this.current_mode="CONTENT",this.tags={parent:"parent1",parentcount:1,parent1:""},this.tag_type="",this.token_text=this.last_token=this.last_text=this.token_type="",this.newlines=0,this.indent_content=h,this.indent_body_inner_html=u,this.indent_head_inner_html=p,this.Utils={whitespace:"\n\r\t ".split(""),single_token:t.void_elements||["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr","!doctype","?xml","?php","basefont","isindex"],extra_liners:S,in_array:function(e,t){for(var n=0;n=this.wrap_line_length?(this.print_newline(!1,e),this.print_indentation(e),!0):(this.line_char_count++,e.push(" "),!1)},this.get_content=function(){for(var e="",t=[],n=0;"<"!==this.input.charAt(this.pos)||2===n;){if(this.pos>=this.input.length)return t.length?t.join(""):["","TK_EOF"];if(n<2&&this.traverse_whitespace())this.space_or_wrap(t);else{if(e=this.input.charAt(this.pos),v){if("{"===e?n+=1:n<2&&(n=0),"}"===e&&n>0&&0==n--)break;var i=this.input.substr(this.pos,3);if("{{#"===i||"{{/"===i)break;if("{{!"===i)return[this.get_tag(),"TK_TAG_HANDLEBARS_COMMENT"];if("{{"===this.input.substr(this.pos,2)&&"{{else}}"===this.get_tag(!0))break}this.pos++,this.line_char_count++,t.push(e)}}return t.length?t.join(""):""},this.get_contents_to=function(e){if(this.pos===this.input.length)return["","TK_EOF"];var t="",n=new RegExp("","igm");n.lastIndex=this.pos;var i=n.exec(this.input),r=i?i.index:this.input.length;return this.pos=this.input.length)return e&&(this.pos=c,this.line_char_count=h),s.length?s.join(""):["","TK_EOF"];if(r=this.input.charAt(this.pos),this.pos++,this.Utils.in_array(r,this.Utils.whitespace))_=!0;else{if("'"!==r&&'"'!==r||(r+=this.get_unformatted(r),_=!0),"="===r&&(_=!1),i=this.input.substr(this.pos-1),!k||!l||u||">"!==r&&"/"!==r||i.match(/^\/?\s*>/)&&(_=!1,u=!0,this.print_newline(!1,s),this.print_indentation(s)),s.length&&"="!==s[s.length-1]&&">"!==r&&_){var p=this.space_or_wrap(s),f=p&&"/"!==r&&!R;if(_=!1,R&&"/"!==r){var d=!1;if(k&&o){d=!(null!==i.match(/^\S*(="([^"]|\\")*")?\s*\/?\s*>/))}o&&!d||(this.print_newline(!1,s),this.print_indentation(s),f=!0)}if(f){l=!0;var T=K;y&&(T=s.indexOf(" ")+1);for(var E=0;E=2&&"{"===s[s.length-1]&&"{"===s[s.length-2]&&(t="#"===r||"/"===r||"!"===r?this.pos-3:this.pos-2,n="{"),this.line_char_count++,s.push(r),s[1]&&("!"===s[1]||"?"===s[1]||"%"===s[1])){s=[this.get_comment(t)];break}if(v&&s[1]&&"{"===s[1]&&s[2]&&"!"===s[2]){s=[this.get_comment(t)];break}if(v&&"{"===n&&s.length>2&&"}"===s[s.length-2]&&"}"===s[s.length-1])break}}while(">"!==r);var b,w,O=s.join("");b=-1!==O.indexOf(" ")?O.indexOf(" "):-1!==O.indexOf("\n")?O.indexOf("\n"):"{"===O.charAt(0)?O.indexOf("}"):O.indexOf(">"),w="<"!==O.charAt(0)&&v?"#"===O.charAt(2)?3:2:1;var S=O.substring(w,b).toLowerCase();return"/"===O.charAt(O.length-2)||this.Utils.in_array(S,this.Utils.single_token)?e||(this.tag_type="SINGLE"):v&&"{"===O.charAt(0)&&"else"===S?e||(this.indent_to_tag("if"),this.tag_type="HANDLEBARS_ELSE",this.indent_content=!0,this.traverse_whitespace()):this.is_unformatted(S,x)||this.is_unformatted(S,m)?(a=this.get_unformatted("",O),s.push(a),this.pos-1,this.tag_type="SINGLE"):"script"===S&&(-1===O.search("type")||O.search("type")>-1&&O.search(/\b(text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect)/)>-1)?e||(this.record_tag(S),this.tag_type="SCRIPT"):"style"===S&&(-1===O.search("type")||O.search("type")>-1&&O.search("text/css")>-1)?e||(this.record_tag(S),this.tag_type="STYLE"):"!"===S.charAt(0)?e||(this.tag_type="SINGLE",this.traverse_whitespace()):e||("/"===S.charAt(0)?(this.retrieve_tag(S.substring(1)),this.tag_type="END"):(this.record_tag(S),"html"!==S.toLowerCase()&&(this.indent_content=!0),this.tag_type="START"),this.traverse_whitespace()&&this.space_or_wrap(s),this.Utils.in_array(S,this.Utils.extra_liners)&&(this.print_newline(!1,this.output),this.output.length&&"\n"!==this.output[this.output.length-2]&&this.print_newline(!0,this.output))),e&&(this.pos=c,this.line_char_count=h),s.join("")},this.get_comment=function(e){var t="",n=">",i=!1;this.pos=e;var r=this.input.charAt(this.pos);for(this.pos++;this.pos<=this.input.length&&(t+=r,t.charAt(t.length-1)!==n.charAt(n.length-1)||-1===t.indexOf(n));)!i&&t.length<10&&(0===t.indexOf("",i=!0):0===t.indexOf("",i=!0):0===t.indexOf("",i=!0):0===t.indexOf("\x3c!--")?(n="--\x3e",i=!0):0===t.indexOf("{{!--")?(n="--}}",i=!0):0===t.indexOf("{{!")?5===t.length&&-1===t.indexOf("{{!--")&&(n="}}",i=!0):0===t.indexOf("",i=!0):0===t.indexOf("<%")&&(n="%>",i=!0)),r=this.input.charAt(this.pos),this.pos++;return t},this.get_unformatted=function(t,n){if(n&&-1!==n.toLowerCase().indexOf(t))return"";var i="",r="",s=!0,a=e(t);do{if(this.pos>=this.input.length)return r;if(i=this.input.charAt(this.pos),this.pos++,this.Utils.in_array(i,this.Utils.whitespace)){if(!s){this.line_char_count--;continue}if("\n"===i||"\r"===i){r+="\n",this.line_char_count=0;continue}}r+=i,a.add(i),this.line_char_count++,s=!0,v&&"{"===i&&r.length&&"{"===r.charAt(r.length-2)&&(r+=this.get_unformatted("}}"))}while(a.doesNotMatch());return r},this.get_token=function(){var e;if("TK_TAG_SCRIPT"===this.last_token||"TK_TAG_STYLE"===this.last_token){var t=this.last_token.substr(7);return e=this.get_contents_to(t),"string"!=typeof e?e:[e,"TK_"+t]}if("CONTENT"===this.current_mode)return e=this.get_content(),"string"!=typeof e?e:[e,"TK_CONTENT"];if("TAG"===this.current_mode){if("string"!=typeof(e=this.get_tag()))return e;return[e,"TK_TAG_"+this.tag_type]}},this.get_full_indent=function(e){return e=this.indent_level+e||0,e<1?"":Array(e+1).join(this.indent_string)},this.is_unformatted=function(e,t){if(!this.Utils.in_array(e,t))return!1;if("a"!==e.toLowerCase()||!this.Utils.in_array("a",t))return!0;var n=this.get_tag(!0),i=(n||"").match(/^\s*<\s*\/?([a-z]*)\s*[^>]*>\s*$/);return!(i&&!this.Utils.in_array(i[1],t))},this.printer=function(e,t,n,s,a){this.input=e||"",this.input=this.input.replace(/\r\n|[\r\u2028\u2029]/g,"\n"),this.output=[],this.indent_character=t,this.indent_string="",this.indent_size=n,this.brace_style=a,this.indent_level=0,this.wrap_line_length=s,this.line_char_count=0;for(var _=0;_0&&(e=r(e)),e&&""!==e&&(e.length>1&&"\n"===e.charAt(e.length-1)?(this.output.push(e.slice(0,-1)),this.print_newline(!1,this.output)):this.output.push(e));for(var t=0;t0,this.output);this.newlines=0},this.indent=function(){this.indent_level++},this.unindent=function(){this.indent_level>0&&this.indent_level--}},this}e=e||"";var c,h,u,p,f,d,T,E,x,m,g,b,v,w,K,R,k,y,O,S,A;t=t||{},t=a(t,"html"),void 0!==t.wrap_line_length&&0!==parseInt(t.wrap_line_length,10)||void 0===t.max_char||0===parseInt(t.max_char,10)||(t.wrap_line_length=t.max_char),h=void 0!==t.indent_inner_html&&t.indent_inner_html,u=void 0===t.indent_body_inner_html||t.indent_body_inner_html,p=void 0===t.indent_head_inner_html||t.indent_head_inner_html,f=void 0===t.indent_size?4:parseInt(t.indent_size,10),d=void 0===t.indent_char?" ":t.indent_char,E=void 0===t.brace_style?"collapse":t.brace_style,T=0===parseInt(t.wrap_line_length,10)?32786:parseInt(t.wrap_line_length||250,10),x=t.unformatted||["a","abbr","area","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","keygen","label","map","mark","math","meter","noscript","object","output","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","text","acronym","address","big","dt","ins","strike","tt"],m=t.content_unformatted||["pre"],g=void 0===t.preserve_newlines||t.preserve_newlines,b=g?isNaN(parseInt(t.max_preserve_newlines,10))?32786:parseInt(t.max_preserve_newlines,10):0,v=void 0!==t.indent_handlebars&&t.indent_handlebars,w=void 0===t.wrap_attributes?"auto":t.wrap_attributes,K=isNaN(parseInt(t.wrap_attributes_indent_size,10))?f:parseInt(t.wrap_attributes_indent_size,10),R="force"===w.substr(0,"force".length),k="force-expand-multiline"===w,y="force-aligned"===w,O=void 0!==t.end_with_newline&&t.end_with_newline,S="object"==typeof t.extra_liners&&t.extra_liners?t.extra_liners.concat():"string"==typeof t.extra_liners?t.extra_liners.split(","):"head,body,/html".split(","),A=t.eol?t.eol:"auto",t.indent_with_tabs&&(d="\t",f=1),"auto"===A&&(A="\n",e&&o.test(e||"")&&(A=e.match(o)[0])),A=A.replace(/\\r/,"\r").replace(/\\n/,"\n"),e=e.replace(l,"\n"),this.beautify=function(){for(c=new _,c.printer(e,d,f,T,E);;){var i=c.get_token();if(c.token_text=i[0],c.token_type=i[1],"TK_EOF"===c.token_type)break;switch(c.token_type){case"TK_TAG_START":c.print_newline(!1,c.output),c.print_token(c.token_text),c.indent_content&&(!c.indent_body_inner_html&&c.token_text.match(//)||!c.indent_head_inner_html&&c.token_text.match(//)||c.indent(),c.indent_content=!1),c.current_mode="CONTENT";break;case"TK_TAG_STYLE":case"TK_TAG_SCRIPT":c.print_newline(!1,c.output),c.print_token(c.token_text),c.current_mode="CONTENT";break;case"TK_TAG_END":if("TK_CONTENT"===c.last_token&&""===c.last_text){var r=(c.token_text.match(/\w+/)||[])[0],a=null;c.output.length&&(a=c.output[c.output.length-1].match(/(?:<|{{#)\s*(\w+)/)),(null===a||a[1]!==r&&!c.Utils.in_array(a[1],x))&&c.print_newline(!1,c.output)}c.print_token(c.token_text),c.current_mode="CONTENT";break;case"TK_TAG_SINGLE":var o=c.token_text.match(/^\s*<([a-z-]+)/i);o&&c.Utils.in_array(o[1],x)||c.print_newline(!1,c.output),c.print_token(c.token_text),c.current_mode="CONTENT";break;case"TK_TAG_HANDLEBARS_ELSE":for(var l=!1,h=c.output.length-1;h>=0&&"\n"!==c.output[h];h--)if(c.output[h].match(/{{#if/)){l=!0;break}l||c.print_newline(!1,c.output),c.print_token(c.token_text),c.indent_content&&(c.indent(),c.indent_content=!1),c.current_mode="CONTENT";break;case"TK_TAG_HANDLEBARS_COMMENT":case"TK_CONTENT":c.print_token(c.token_text),c.current_mode="TAG";break;case"TK_STYLE":case"TK_SCRIPT":if(""!==c.token_text){c.print_newline(!1,c.output);var u,p=c.token_text,m=1;"TK_SCRIPT"===c.token_type?u="function"==typeof n&&n:"TK_STYLE"===c.token_type&&(u="function"==typeof s&&s),"keep"===t.indent_scripts?m=0:"separate"===t.indent_scripts&&(m=-c.indent_level);var g=c.get_full_indent(m);if(u){var b=function(){this.eol="\n"};b.prototype=t;var v=new b;p=u(p.replace(/^\s*/,g),v)}else{var w=p.match(/^\s*/)[0],K=w.match(/[^\n\r]*$/)[0].split(c.indent_string).length-1,R=c.get_full_indent(m-K);p=p.replace(/^\s*/,g).replace(/\r\n|\r|\n/g,"\n"+R).replace(/\s+$/,"")}p&&(c.print_token_raw(p),c.print_newline(!0,c.output))}c.current_mode="TAG";break;default:""!==c.token_text&&c.print_token(c.token_text)}c.last_token=c.token_type,c.last_text=c.token_text}var k=c.output.join("").replace(/[\r\n\t ]+$/,"");return O&&(k+="\n"),"\n"!==A&&(k=k.replace(/[\n]/g,A)),k}}var a=n(2).mergeOpts,_=n(1),o=_.lineBreak,l=_.allLineBreaks;e.exports.Beautifier=s},function(e,t){var n="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",i=new RegExp("["+n+"]"),r=new RegExp("["+n+"̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‌‍‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]");t.newline=/[\n\r\u2028\u2029]/,t.lineBreak=new RegExp("\r\n|"+t.newline.source),t.allLineBreaks=new RegExp(t.lineBreak.source,"g"),t.isIdentifierStart=function(e){return e<65?36===e||64===e:e<91||(e<97?95===e:e<123||e>=170&&i.test(String.fromCharCode(e)))},t.isIdentifierChar=function(e){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<123||e>=170&&r.test(String.fromCharCode(e))))}},function(e,t){function n(e,t){var n,i={};for(n in e)n!==t&&(i[n]=e[n]);if(t in e)for(n in e[t])i[n]=e[t][n];return i}e.exports.mergeOpts=n},function(e,t,n){function i(e,t,n,i){return new r(e,t,n,i).beautify()}var r=n(0).Beautifier;e.exports=i}]),t=e;if("function"==typeof define&&define.amd)define("beautify-html.js",["require","./beautify","./beautify-css"],function(e){var n=e("./beautify"),i=e("./beautify-css");return{html_beautify:function(e,r){return t(e,r,n.js_beautify,i.css_beautify)}}});else if("undefined"!=typeof exports){var n=require("./beautify.js"),i=require("./beautify-css.js");exports.html_beautify=function(e,r){return t(e,r,n.js_beautify,i.css_beautify)}}else"undefined"!=typeof window?window.html_beautify=function(e,n){return t(e,n,window.js_beautify,window.css_beautify)}:"undefined"!=typeof global&&(global.html_beautify=function(e,n){return t(e,n,global.js_beautify,global.css_beautify)})}(),function(e){"function"==typeof e.define&&(e.define("beautify",["beautify.js"],function(e){return e}),e.define("beautify-css",[],function(){return{css_beautify:void 0}}),e.define("beautifyModule",["beautify","beautify-html.js"],function(t,n){e.js_beautify=t.js_beautify,e.html_beautify=n.html_beautify}))}(this);