import{X as ge,r as G,J as $e,w as zt,K as ke,al as Re,am as Se,d as tt,o as et,g as at,i as F,l as W,an as Ae,n as J,k as K,f as X,t as vt,e as Ne,z as Ce,O as Le,B as Pe,M as Wt,ao as Me}from"./index-pKLhwQli.js";import{t as De,d as rt,b as Ie}from"./index-C9c2mdkE.js";import{t as ft,f as je,i as Be,s as ze,l as We,R as Ke}from"./RightPanel-CJkieNIg.js";import Ue from"./DraggableItem-D7_hYMUS.js";import Fe from"./CodeTypeDialog-rU0l1Fci.js";import"./IconsDialog-CAS6P4vw.js";import"./TreeNodeDialog-D65yulcR.js";var ct={exports:{}};/*! * clipboard.js v2.0.11 * https://clipboardjs.com/ * * Licensed MIT © Zeno Rocha */var qe=ct.exports,Kt;function Ve(){return Kt||(Kt=1,(function(t,u){(function(e,n){t.exports=n()})(qe,function(){return(function(){var r={686:(function(_,p,s){s.d(p,{default:function(){return Y}});var o=s(279),v=s.n(o),c=s(370),d=s.n(c),b=s(817),S=s.n(b);function k(D){try{return document.execCommand(D)}catch{return!1}}var L=function($){var R=S()($);return k("cut"),R},l=L;function a(D){var $=document.documentElement.getAttribute("dir")==="rtl",R=document.createElement("textarea");R.style.fontSize="12pt",R.style.border="0",R.style.padding="0",R.style.margin="0",R.style.position="absolute",R.style[$?"right":"left"]="-9999px";var P=window.pageYOffset||document.documentElement.scrollTop;return R.style.top="".concat(P,"px"),R.setAttribute("readonly",""),R.value=D,R}var h=function($,R){var P=a($);R.container.appendChild(P);var I=S()(P);return k("copy"),P.remove(),I},A=function($){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},P="";return typeof $=="string"?P=h($,R):$ instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes($==null?void 0:$.type)?P=h($.value,R):(P=S()($),k("copy")),P},x=A;function C(D){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?C=function(R){return typeof R}:C=function(R){return R&&typeof Symbol=="function"&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R},C(D)}var g=function(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},R=$.action,P=R===void 0?"copy":R,I=$.container,j=$.target,V=$.text;if(P!=="copy"&&P!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(j!==void 0)if(j&&C(j)==="object"&&j.nodeType===1){if(P==="copy"&&j.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(P==="cut"&&(j.hasAttribute("readonly")||j.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(V)return x(V,{container:I});if(j)return P==="cut"?l(j):x(j,{container:I})},w=g;function f(D){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?f=function(R){return typeof R}:f=function(R){return R&&typeof Symbol=="function"&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R},f(D)}function O(D,$){if(!(D instanceof $))throw new TypeError("Cannot call a class as a function")}function i(D,$){for(var R=0;R<$.length;R++){var P=$[R];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(D,P.key,P)}}function m(D,$,R){return $&&i(D.prototype,$),R&&i(D,R),D}function y(D,$){if(typeof $!="function"&&$!==null)throw new TypeError("Super expression must either be null or a function");D.prototype=Object.create($&&$.prototype,{constructor:{value:D,writable:!0,configurable:!0}}),$&&N(D,$)}function N(D,$){return N=Object.setPrototypeOf||function(P,I){return P.__proto__=I,P},N(D,$)}function M(D){var $=T();return function(){var P=B(D),I;if($){var j=B(this).constructor;I=Reflect.construct(P,arguments,j)}else I=P.apply(this,arguments);return z(this,I)}}function z(D,$){return $&&(f($)==="object"||typeof $=="function")?$:E(D)}function E(D){if(D===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return D}function T(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function B(D){return B=Object.setPrototypeOf?Object.getPrototypeOf:function(R){return R.__proto__||Object.getPrototypeOf(R)},B(D)}function U(D,$){var R="data-clipboard-".concat(D);if($.hasAttribute(R))return $.getAttribute(R)}var Q=(function(D){y(R,D);var $=M(R);function R(P,I){var j;return O(this,R),j=$.call(this),j.resolveOptions(I),j.listenClick(P),j}return m(R,[{key:"resolveOptions",value:function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof I.action=="function"?I.action:this.defaultAction,this.target=typeof I.target=="function"?I.target:this.defaultTarget,this.text=typeof I.text=="function"?I.text:this.defaultText,this.container=f(I.container)==="object"?I.container:document.body}},{key:"listenClick",value:function(I){var j=this;this.listener=d()(I,"click",function(V){return j.onClick(V)})}},{key:"onClick",value:function(I){var j=I.delegateTarget||I.currentTarget,V=this.action(j)||"copy",nt=w({action:V,container:this.container,target:this.target(j),text:this.text(j)});this.emit(nt?"success":"error",{action:V,text:nt,trigger:j,clearSelection:function(){j&&j.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(I){return U("action",I)}},{key:"defaultTarget",value:function(I){var j=U("target",I);if(j)return document.querySelector(j)}},{key:"defaultText",value:function(I){return U("text",I)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(I){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return x(I,j)}},{key:"cut",value:function(I){return l(I)}},{key:"isSupported",value:function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],j=typeof I=="string"?[I]:I,V=!!document.queryCommandSupported;return j.forEach(function(nt){V=V&&!!document.queryCommandSupported(nt)}),V}}]),R})(v()),Y=Q}),828:(function(_){var p=9;if(typeof Element<"u"&&!Element.prototype.matches){var s=Element.prototype;s.matches=s.matchesSelector||s.mozMatchesSelector||s.msMatchesSelector||s.oMatchesSelector||s.webkitMatchesSelector}function o(v,c){for(;v&&v.nodeType!==p;){if(typeof v.matches=="function"&&v.matches(c))return v;v=v.parentNode}}_.exports=o}),438:(function(_,p,s){var o=s(828);function v(b,S,k,L,l){var a=d.apply(this,arguments);return b.addEventListener(k,a,l),{destroy:function(){b.removeEventListener(k,a,l)}}}function c(b,S,k,L,l){return typeof b.addEventListener=="function"?v.apply(null,arguments):typeof k=="function"?v.bind(null,document).apply(null,arguments):(typeof b=="string"&&(b=document.querySelectorAll(b)),Array.prototype.map.call(b,function(a){return v(a,S,k,L,l)}))}function d(b,S,k,L){return function(l){l.delegateTarget=o(l.target,S),l.delegateTarget&&L.call(b,l)}}_.exports=c}),879:(function(_,p){p.node=function(s){return s!==void 0&&s instanceof HTMLElement&&s.nodeType===1},p.nodeList=function(s){var o=Object.prototype.toString.call(s);return s!==void 0&&(o==="[object NodeList]"||o==="[object HTMLCollection]")&&"length"in s&&(s.length===0||p.node(s[0]))},p.string=function(s){return typeof s=="string"||s instanceof String},p.fn=function(s){var o=Object.prototype.toString.call(s);return o==="[object Function]"}}),370:(function(_,p,s){var o=s(879),v=s(438);function c(k,L,l){if(!k&&!L&&!l)throw new Error("Missing required arguments");if(!o.string(L))throw new TypeError("Second argument must be a String");if(!o.fn(l))throw new TypeError("Third argument must be a Function");if(o.node(k))return d(k,L,l);if(o.nodeList(k))return b(k,L,l);if(o.string(k))return S(k,L,l);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function d(k,L,l){return k.addEventListener(L,l),{destroy:function(){k.removeEventListener(L,l)}}}function b(k,L,l){return Array.prototype.forEach.call(k,function(a){a.addEventListener(L,l)}),{destroy:function(){Array.prototype.forEach.call(k,function(a){a.removeEventListener(L,l)})}}}function S(k,L,l){return v(document.body,k,L,l)}_.exports=c}),817:(function(_){function p(s){var o;if(s.nodeName==="SELECT")s.focus(),o=s.value;else if(s.nodeName==="INPUT"||s.nodeName==="TEXTAREA"){var v=s.hasAttribute("readonly");v||s.setAttribute("readonly",""),s.select(),s.setSelectionRange(0,s.value.length),v||s.removeAttribute("readonly"),o=s.value}else{s.hasAttribute("contenteditable")&&s.focus();var c=window.getSelection(),d=document.createRange();d.selectNodeContents(s),c.removeAllRanges(),c.addRange(d),o=c.toString()}return o}_.exports=p}),279:(function(_){function p(){}p.prototype={on:function(s,o,v){var c=this.e||(this.e={});return(c[s]||(c[s]=[])).push({fn:o,ctx:v}),this},once:function(s,o,v){var c=this;function d(){c.off(s,d),o.apply(v,arguments)}return d._=o,this.on(s,d,v)},emit:function(s){var o=[].slice.call(arguments,1),v=((this.e||(this.e={}))[s]||[]).slice(),c=0,d=v.length;for(c;c=0;n--)if(this.__items[n].match(e))return!0;return!1},t.prototype.set_indent=function(e,n){this.is_empty()&&(this.__indent_count=e||0,this.__alignment_count=n||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},t.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},t.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},t.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var e=this.__parent.current_line;return e.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),e.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),e.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,e.__items[0]===" "&&(e.__items.splice(0,1),e.__character_count-=1),!0}return!1},t.prototype.is_empty=function(){return this.__items.length===0},t.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},t.prototype.push=function(e){this.__items.push(e);var n=e.lastIndexOf(` `);n!==-1?this.__character_count=e.length-n:this.__character_count+=e.length},t.prototype.pop=function(){var e=null;return this.is_empty()||(e=this.__items.pop(),this.__character_count-=e.length),e},t.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},t.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},t.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},t.prototype.toString=function(){var e="";return this.is_empty()?this.__parent.indent_empty_lines&&(e=this.__parent.get_indent_string(this.__indent_count)):(e=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),e+=this.__items.join("")),e};function u(e,n){this.__cache=[""],this.__indent_size=e.indent_size,this.__indent_string=e.indent_char,e.indent_with_tabs||(this.__indent_string=new Array(e.indent_size+1).join(e.indent_char)),n=n||"",e.indent_level>0&&(n=new Array(e.indent_level+1).join(this.__indent_string)),this.__base_string=n,this.__base_string_length=n.length}u.prototype.get_indent_size=function(e,n){var _=this.__base_string_length;return n=n||0,e<0&&(_=0),_+=e*this.__indent_size,_+=n,_},u.prototype.get_indent_string=function(e,n){var _=this.__base_string;return n=n||0,e<0&&(e=0,_=""),n+=e*this.__indent_size,this.__ensure_cache(n),_+=this.__cache[n],_},u.prototype.__ensure_cache=function(e){for(;e>=this.__cache.length;)this.__add_column()},u.prototype.__add_column=function(){var e=this.__cache.length,n=0,_="";this.__indent_size&&e>=this.__indent_size&&(n=Math.floor(e/this.__indent_size),e-=n*this.__indent_size,_=new Array(n+1).join(this.__indent_string)),e&&(_+=new Array(e+1).join(" ")),this.__cache.push(_)};function r(e,n){this.__indent_cache=new u(e,n),this.raw=!1,this._end_with_newline=e.end_with_newline,this.indent_size=e.indent_size,this.wrap_line_length=e.wrap_line_length,this.indent_empty_lines=e.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new t(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}return r.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},r.prototype.get_line_number=function(){return this.__lines.length},r.prototype.get_indent_string=function(e,n){return this.__indent_cache.get_indent_string(e,n)},r.prototype.get_indent_size=function(e,n){return this.__indent_cache.get_indent_size(e,n)},r.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},r.prototype.add_new_line=function(e){return this.is_empty()||!e&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},r.prototype.get_code=function(e){this.trim(!0);var n=this.current_line.pop();n&&(n[n.length-1]===` `&&(n=n.replace(/\n+$/g,"")),this.current_line.push(n)),this._end_with_newline&&this.__add_outputline();var _=this.__lines.join(` `);return e!==` `&&(_=_.replace(/[\n]/g,e)),_},r.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},r.prototype.set_indent=function(e,n){return e=e||0,n=n||0,this.next_line.set_indent(e,n),this.__lines.length>1?(this.current_line.set_indent(e,n),!0):(this.current_line.set_indent(),!1)},r.prototype.add_raw_token=function(e){for(var n=0;n1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},r.prototype.just_added_newline=function(){return this.current_line.is_empty()},r.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},r.prototype.ensure_empty_line_above=function(e,n){for(var _=this.__lines.length-2;_>=0;){var p=this.__lines[_];if(p.is_empty())break;if(p.item(0).indexOf(e)!==0&&p.item(-1)!==n){this.__lines.splice(_+1,0,new t(this)),this.previous_line=this.__lines[this.__lines.length-2];break}_--}},xt.Output=r,xt}var Ot={},Ft;function me(){if(Ft)return Ot;Ft=1;function t(u,r,e,n){this.type=u,this.text=r,this.comments_before=null,this.newlines=e||0,this.whitespace_before=n||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}return Ot.Token=t,Ot}var Et={},qt;function be(){return qt||(qt=1,(function(t){var u="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",r="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",e="\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05d0-\\u05ea\\u05f0-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u08a0\\u08a2-\\u08ac\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097f\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c33\\u0c35-\\u0c39\\u0c3d\\u0c58\\u0c59\\u0c60\\u0c61\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d05-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d60\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e87\\u0e88\\u0e8a\\u0e8d\\u0e94-\\u0e97\\u0e99-\\u0e9f\\u0ea1-\\u0ea3\\u0ea5\\u0ea7\\u0eaa\\u0eab\\u0ead-\\u0eb0\\u0eb2\\u0eb3\\u0ebd\\u0ec0-\\u0ec4\\u0ec6\\u0edc-\\u0edf\\u0f00\\u0f40-\\u0f47\\u0f49-\\u0f6c\\u0f88-\\u0f8c\\u1000-\\u102a\\u103f\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\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\\u1380-\\u138f\\u13a0-\\u13f4\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f0\\u1700-\\u170c\\u170e-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1877\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191c\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19c1-\\u19c7\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4b\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1ce9-\\u1cec\\u1cee-\\u1cf1\\u1cf5\\u1cf6\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\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-\\u2cee\\u2cf2\\u2cf3\\u2d00-\\u2d25\\u2d27\\u2d2d\\u2d30-\\u2d67\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u2e2f\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309d-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312d\\u3131-\\u318e\\u31a0-\\u31ba\\u31f0-\\u31ff\\u3400-\\u4db5\\u4e00-\\u9fcc\\ua000-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua697\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua78e\\ua790-\\ua793\\ua7a0-\\ua7aa\\ua7f8-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa80-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uabc0-\\uabe2\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc",n="\\u0300-\\u036f\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u0620-\\u0649\\u0672-\\u06d3\\u06e7-\\u06e8\\u06fb-\\u06fc\\u0730-\\u074a\\u0800-\\u0814\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0840-\\u0857\\u08e4-\\u08fe\\u0900-\\u0903\\u093a-\\u093c\\u093e-\\u094f\\u0951-\\u0957\\u0962-\\u0963\\u0966-\\u096f\\u0981-\\u0983\\u09bc\\u09be-\\u09c4\\u09c7\\u09c8\\u09d7\\u09df-\\u09e0\\u0a01-\\u0a03\\u0a3c\\u0a3e-\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a66-\\u0a71\\u0a75\\u0a81-\\u0a83\\u0abc\\u0abe-\\u0ac5\\u0ac7-\\u0ac9\\u0acb-\\u0acd\\u0ae2-\\u0ae3\\u0ae6-\\u0aef\\u0b01-\\u0b03\\u0b3c\\u0b3e-\\u0b44\\u0b47\\u0b48\\u0b4b-\\u0b4d\\u0b56\\u0b57\\u0b5f-\\u0b60\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c01-\\u0c03\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62-\\u0c63\\u0c66-\\u0c6f\\u0c82\\u0c83\\u0cbc\\u0cbe-\\u0cc4\\u0cc6-\\u0cc8\\u0cca-\\u0ccd\\u0cd5\\u0cd6\\u0ce2-\\u0ce3\\u0ce6-\\u0cef\\u0d02\\u0d03\\u0d46-\\u0d48\\u0d57\\u0d62-\\u0d63\\u0d66-\\u0d6f\\u0d82\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0df2\\u0df3\\u0e34-\\u0e3a\\u0e40-\\u0e45\\u0e50-\\u0e59\\u0eb4-\\u0eb9\\u0ec8-\\u0ecd\\u0ed0-\\u0ed9\\u0f18\\u0f19\\u0f20-\\u0f29\\u0f35\\u0f37\\u0f39\\u0f41-\\u0f47\\u0f71-\\u0f84\\u0f86-\\u0f87\\u0f8d-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u1000-\\u1029\\u1040-\\u1049\\u1067-\\u106d\\u1071-\\u1074\\u1082-\\u108d\\u108f-\\u109d\\u135d-\\u135f\\u170e-\\u1710\\u1720-\\u1730\\u1740-\\u1750\\u1772\\u1773\\u1780-\\u17b2\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u1810-\\u1819\\u1920-\\u192b\\u1930-\\u193b\\u1951-\\u196d\\u19b0-\\u19c0\\u19c8-\\u19c9\\u19d0-\\u19d9\\u1a00-\\u1a15\\u1a20-\\u1a53\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1b46-\\u1b4b\\u1b50-\\u1b59\\u1b6b-\\u1b73\\u1bb0-\\u1bb9\\u1be6-\\u1bf3\\u1c00-\\u1c22\\u1c40-\\u1c49\\u1c5b-\\u1c7d\\u1cd0-\\u1cd2\\u1d00-\\u1dbe\\u1e01-\\u1f15\\u200c\\u200d\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2d81-\\u2d96\\u2de0-\\u2dff\\u3021-\\u3028\\u3099\\u309a\\ua640-\\ua66d\\ua674-\\ua67d\\ua69f\\ua6f0-\\ua6f1\\ua7f8-\\ua800\\ua806\\ua80b\\ua823-\\ua827\\ua880-\\ua881\\ua8b4-\\ua8c4\\ua8d0-\\ua8d9\\ua8f3-\\ua8f7\\ua900-\\ua909\\ua926-\\ua92d\\ua930-\\ua945\\ua980-\\ua983\\ua9b3-\\ua9c0\\uaa00-\\uaa27\\uaa40-\\uaa41\\uaa4c-\\uaa4d\\uaa50-\\uaa59\\uaa7b\\uaae0-\\uaae9\\uaaf2-\\uaaf3\\uabc0-\\uabe1\\uabec\\uabed\\uabf0-\\uabf9\\ufb20-\\ufb28\\ufe00-\\ufe0f\\ufe20-\\ufe26\\ufe33\\ufe34\\ufe4d-\\ufe4f\\uff10-\\uff19\\uff3f",_="\\\\u[0-9a-fA-F]{4}|\\\\u\\{[0-9a-fA-F]+\\}",p="(?:"+_+"|["+u+e+"])",s="(?:"+_+"|["+r+e+n+"])*";t.identifier=new RegExp(p+s,"g"),t.identifierStart=new RegExp(p),t.identifierMatch=new RegExp("(?:"+_+"|["+r+e+n+"])+"),t.newline=/[\n\r\u2028\u2029]/,t.lineBreak=new RegExp(`\r |`+t.newline.source),t.allLineBreaks=new RegExp(t.lineBreak.source,"g")})(Et)),Et}var Tt={},st={},Vt;function It(){if(Vt)return st;Vt=1;function t(e,n){this.raw_options=u(e,n),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}t.prototype._get_array=function(e,n){var _=this.raw_options[e],p=n||[];return typeof _=="object"?_!==null&&typeof _.concat=="function"&&(p=_.concat()):typeof _=="string"&&(p=_.split(/[^a-zA-Z0-9_\/\-]+/)),p},t.prototype._get_boolean=function(e,n){var _=this.raw_options[e],p=_===void 0?!!n:!!_;return p},t.prototype._get_characters=function(e,n){var _=this.raw_options[e],p=n||"";return typeof _=="string"&&(p=_.replace(/\\r/,"\r").replace(/\\n/,` `).replace(/\\t/," ")),p},t.prototype._get_number=function(e,n){var _=this.raw_options[e];n=parseInt(n,10),isNaN(n)&&(n=0);var p=parseInt(_,10);return isNaN(p)&&(p=n),p},t.prototype._get_selection=function(e,n,_){var p=this._get_selection_list(e,n,_);if(p.length!==1)throw new Error("Invalid Option Value: The option '"+e+`' can only be one of the following values: `+n+` You passed in: '`+this.raw_options[e]+"'");return p[0]},t.prototype._get_selection_list=function(e,n,_){if(!n||n.length===0)throw new Error("Selection list cannot be empty.");if(_=_||[n[0]],!this._is_valid_selection(_,n))throw new Error("Invalid Default Value!");var p=this._get_array(e,_);if(!this._is_valid_selection(p,n))throw new Error("Invalid Option Value: The option '"+e+`' can contain only the following values: `+n+` You passed in: '`+this.raw_options[e]+"'");return p},t.prototype._is_valid_selection=function(e,n){return e.length&&n.length&&!e.some(function(_){return n.indexOf(_)===-1})};function u(e,n){var _={};e=r(e);var p;for(p in e)p!==n&&(_[p]=e[p]);if(n&&e[n])for(p in e[n])_[p]=e[n][p];return _}function r(e){var n={},_;for(_ in e){var p=_.replace(/-/g,"_");n[p]=e[_]}return n}return st.Options=t,st.normalizeOpts=r,st.mergeOpts=u,st}var Xt;function ve(){if(Xt)return Tt;Xt=1;var t=It().Options,u=["before-newline","after-newline","preserve-newline"];function r(e){t.call(this,e,"js");var n=this.raw_options.brace_style||null;n==="expand-strict"?this.raw_options.brace_style="expand":n==="collapse-preserve-inline"?this.raw_options.brace_style="collapse,preserve-inline":this.raw_options.braces_on_own_line!==void 0&&(this.raw_options.brace_style=this.raw_options.braces_on_own_line?"expand":"collapse");var _=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var p=0;p<_.length;p++)_[p]==="preserve-inline"?this.brace_preserve_inline=!0:this.brace_style=_[p];this.unindent_chained_methods=this._get_boolean("unindent_chained_methods"),this.break_chained_methods=this._get_boolean("break_chained_methods"),this.space_in_paren=this._get_boolean("space_in_paren"),this.space_in_empty_paren=this._get_boolean("space_in_empty_paren"),this.jslint_happy=this._get_boolean("jslint_happy"),this.space_after_anon_function=this._get_boolean("space_after_anon_function"),this.space_after_named_function=this._get_boolean("space_after_named_function"),this.keep_array_indentation=this._get_boolean("keep_array_indentation"),this.space_before_conditional=this._get_boolean("space_before_conditional",!0),this.unescape_strings=this._get_boolean("unescape_strings"),this.e4x=this._get_boolean("e4x"),this.comma_first=this._get_boolean("comma_first"),this.operator_position=this._get_selection("operator_position",u),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}return r.prototype=new t,Tt.Options=r,Tt}var Z={},$t={},Gt;function jt(){if(Gt)return $t;Gt=1;var t=RegExp.prototype.hasOwnProperty("sticky");function u(r){this.__input=r||"",this.__input_length=this.__input.length,this.__position=0}return u.prototype.restart=function(){this.__position=0},u.prototype.back=function(){this.__position>0&&(this.__position-=1)},u.prototype.hasNext=function(){return this.__position=0&&r=0&&e=r.length&&this.__input.substring(e-r.length,e).toLowerCase()===r},$t.InputScanner=u,$t}var ot={},kt={},Jt;function Je(){if(Jt)return kt;Jt=1;function t(u){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=u}return t.prototype.restart=function(){this.__position=0},t.prototype.isEmpty=function(){return this.__tokens_length===0},t.prototype.hasNext=function(){return this.__position=0&&u/),erb:_.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:_.starting_with(/{%/).until_after(/%}/),django_value:_.starting_with(/{{/).until_after(/}}/),django_comment:_.starting_with(/{#/).until_after(/#}/),smarty:_.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:_.starting_with(/{\*/).until_after(/\*}/),smarty_literal:_.starting_with(/{literal}/).until_after(/{\/literal}/)}}return r.prototype=new t,r.prototype._create=function(){return new r(this._input,this)},r.prototype._update=function(){this.__set_templated_pattern()},r.prototype.disable=function(e){var n=this._create();return n._disabled[e]=!0,n._update(),n},r.prototype.read_options=function(e){var n=this._create();for(var _ in u)n._disabled[_]=e.templating.indexOf(_)===-1;return n._update(),n},r.prototype.exclude=function(e){var n=this._create();return n._excluded[e]=!0,n._update(),n},r.prototype.read=function(){var e="";this._match_pattern?e=this._input.read(this._starting_pattern):e=this._input.read(this._starting_pattern,this.__template_pattern);for(var n=this._read_template();n;)this._match_pattern?n+=this._input.read(this._match_pattern):n+=this._input.readUntil(this.__template_pattern),e+=n,n=this._read_template();return this._until_after&&(e+=this._input.readUntilAfter(this._until_pattern)),e},r.prototype.__set_templated_pattern=function(){var e=[];this._disabled.php||e.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||e.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.angular||e.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||e.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(e.push(this.__patterns.django._starting_pattern.source),e.push(this.__patterns.django_value._starting_pattern.source),e.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||e.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&e.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+e.join("|")+")")},r.prototype._read_template=function(){var e="",n=this._input.peek();if(n==="<"){var _=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&_==="?"&&(e=e||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&_==="%"&&(e=e||this.__patterns.erb.read())}else n==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(e=e||this.__patterns.handlebars_comment.read(),e=e||this.__patterns.handlebars_unescaped.read(),e=e||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(e=e||this.__patterns.django_value.read()),this._excluded.django||(e=e||this.__patterns.django_comment.read(),e=e||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(e=e||this.__patterns.smarty_comment.read(),e=e||this.__patterns.smarty_literal.read(),e=e||this.__patterns.smarty.read()));return e},Nt.TemplatablePattern=r,Nt}var ee;function ut(){if(ee)return Z;ee=1;var t=jt().InputScanner,u=dt().Tokenizer,r=dt().TOKEN,e=Bt().Directives,n=be(),_=mt().Pattern,p=ye().TemplatablePattern;function s(g,w){return w.indexOf(g)!==-1}var o={START_EXPR:"TK_START_EXPR",END_EXPR:"TK_END_EXPR",START_BLOCK:"TK_START_BLOCK",END_BLOCK:"TK_END_BLOCK",WORD:"TK_WORD",RESERVED:"TK_RESERVED",SEMICOLON:"TK_SEMICOLON",STRING:"TK_STRING",EQUALS:"TK_EQUALS",OPERATOR:"TK_OPERATOR",COMMA:"TK_COMMA",BLOCK_COMMENT:"TK_BLOCK_COMMENT",COMMENT:"TK_COMMENT",DOT:"TK_DOT",UNKNOWN:"TK_UNKNOWN",START:r.START,RAW:r.RAW,EOF:r.EOF},v=new e(/\/\*/,/\*\//),c=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,d=/[0-9]/,b=/[^\d\.]/,S=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),k=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";k=k.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),k="\\?\\.(?!\\d) "+k,k=k.replace(/ /g,"|");var L=new RegExp(k),l="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),a=l.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),h=new RegExp("^(?:"+a.join("|")+")$"),A,x=function(g,w){u.call(this,g,w),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var f=new _(this._input),O=new p(this._input).read_options(this._options);this.__patterns={template:O,identifier:O.starting_with(n.identifier).matching(n.identifierMatch),number:f.matching(c),punct:f.matching(L),comment:f.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:f.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:f.matching(//),include:f.starting_with(/#include/).until_after(n.lineBreak),shebang:f.starting_with(/#!/).until_after(n.lineBreak),xml:f.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[^}]+?}|!\[CDATA\[[^\]]*?\]\]|)(\s*{[^}]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{([^{}]|{[^}]+?})+?}))*\s*(\/?)\s*>/),single_quote:O.until(/['\\\n\r\u2028\u2029]/),double_quote:O.until(/["\\\n\r\u2028\u2029]/),template_text:O.until(/[`\\$]/),template_expression:O.until(/[`}\\]/)}};x.prototype=new u,x.prototype._is_comment=function(g){return g.type===o.COMMENT||g.type===o.BLOCK_COMMENT||g.type===o.UNKNOWN},x.prototype._is_opening=function(g){return g.type===o.START_BLOCK||g.type===o.START_EXPR},x.prototype._is_closing=function(g,w){return(g.type===o.END_BLOCK||g.type===o.END_EXPR)&&w&&(g.text==="]"&&w.text==="["||g.text===")"&&w.text==="("||g.text==="}"&&w.text==="{")},x.prototype._reset=function(){A=!1},x.prototype._get_next_token=function(g,w){var f=null;this._readWhitespace();var O=this._input.peek();return O===null?this._create_token(o.EOF,""):(f=f||this._read_non_javascript(O),f=f||this._read_string(O),f=f||this._read_pair(O,this._input.peek(1)),f=f||this._read_word(g),f=f||this._read_singles(O),f=f||this._read_comment(O),f=f||this._read_regexp(O,g),f=f||this._read_xml(O,g),f=f||this._read_punctuation(),f=f||this._create_token(o.UNKNOWN,this._input.next()),f)},x.prototype._read_word=function(g){var w;if(w=this.__patterns.identifier.read(),w!=="")return w=w.replace(n.allLineBreaks,` `),!(g.type===o.DOT||g.type===o.RESERVED&&(g.text==="set"||g.text==="get"))&&h.test(w)?(w==="in"||w==="of")&&(g.type===o.WORD||g.type===o.STRING)?this._create_token(o.OPERATOR,w):this._create_token(o.RESERVED,w):this._create_token(o.WORD,w);if(w=this.__patterns.number.read(),w!=="")return this._create_token(o.WORD,w)},x.prototype._read_singles=function(g){var w=null;return g==="("||g==="["?w=this._create_token(o.START_EXPR,g):g===")"||g==="]"?w=this._create_token(o.END_EXPR,g):g==="{"?w=this._create_token(o.START_BLOCK,g):g==="}"?w=this._create_token(o.END_BLOCK,g):g===";"?w=this._create_token(o.SEMICOLON,g):g==="."&&b.test(this._input.peek(1))?w=this._create_token(o.DOT,g):g===","&&(w=this._create_token(o.COMMA,g)),w&&this._input.next(),w},x.prototype._read_pair=function(g,w){var f=null;return g==="#"&&w==="{"&&(f=this._create_token(o.START_BLOCK,g+w)),f&&(this._input.next(),this._input.next()),f},x.prototype._read_punctuation=function(){var g=this.__patterns.punct.read();if(g!=="")return g==="="?this._create_token(o.EQUALS,g):g==="?."?this._create_token(o.DOT,g):this._create_token(o.OPERATOR,g)},x.prototype._read_non_javascript=function(g){var w="";if(g==="#"){if(this._is_first_token()&&(w=this.__patterns.shebang.read(),w))return this._create_token(o.UNKNOWN,w.trim()+` `);if(w=this.__patterns.include.read(),w)return this._create_token(o.UNKNOWN,w.trim()+` `);g=this._input.next();var f="#";if(this._input.hasNext()&&this._input.testChar(d)){do g=this._input.next(),f+=g;while(this._input.hasNext()&&g!=="#"&&g!=="=");return g==="#"||(this._input.peek()==="["&&this._input.peek(1)==="]"?(f+="[]",this._input.next(),this._input.next()):this._input.peek()==="{"&&this._input.peek(1)==="}"&&(f+="{}",this._input.next(),this._input.next())),this._create_token(o.WORD,f)}this._input.back()}else if(g==="<"&&this._is_first_token()){if(w=this.__patterns.html_comment_start.read(),w){for(;this._input.hasNext()&&!this._input.testChar(n.newline);)w+=this._input.next();return A=!0,this._create_token(o.COMMENT,w)}}else if(A&&g==="-"&&(w=this.__patterns.html_comment_end.read(),w))return A=!1,this._create_token(o.COMMENT,w);return null},x.prototype._read_comment=function(g){var w=null;if(g==="/"){var f="";if(this._input.peek(1)==="*"){f=this.__patterns.block_comment.read();var O=v.get_directives(f);O&&O.ignore==="start"&&(f+=v.readIgnored(this._input)),f=f.replace(n.allLineBreaks,` `),w=this._create_token(o.BLOCK_COMMENT,f),w.directives=O}else this._input.peek(1)==="/"&&(f=this.__patterns.comment.read(),w=this._create_token(o.COMMENT,f))}return w},x.prototype._read_string=function(g){if(g==="`"||g==="'"||g==='"'){var w=this._input.next();return this.has_char_escapes=!1,g==="`"?w+=this._read_string_recursive("`",!0,"${"):w+=this._read_string_recursive(g),this.has_char_escapes&&this._options.unescape_strings&&(w=C(w)),this._input.peek()===g&&(w+=this._input.next()),w=w.replace(n.allLineBreaks,` `),this._create_token(o.STRING,w)}return null},x.prototype._allow_regexp_or_xml=function(g){return g.type===o.RESERVED&&s(g.text,["return","case","throw","else","do","typeof","yield"])||g.type===o.END_EXPR&&g.text===")"&&g.opened.previous.type===o.RESERVED&&s(g.opened.previous.text,["if","while","for"])||s(g.type,[o.COMMENT,o.START_EXPR,o.START_BLOCK,o.START,o.END_BLOCK,o.OPERATOR,o.EQUALS,o.EOF,o.SEMICOLON,o.COMMA])},x.prototype._read_regexp=function(g,w){if(g==="/"&&this._allow_regexp_or_xml(w)){for(var f=this._input.next(),O=!1,i=!1;this._input.hasNext()&&(O||i||this._input.peek()!==g)&&!this._input.testChar(n.newline);)f+=this._input.peek(),O?O=!1:(O=this._input.peek()==="\\",this._input.peek()==="["?i=!0:this._input.peek()==="]"&&(i=!1)),this._input.next();return this._input.peek()===g&&(f+=this._input.next(),f+=this._input.read(n.identifier)),this._create_token(o.STRING,f)}return null},x.prototype._read_xml=function(g,w){if(this._options.e4x&&g==="<"&&this._allow_regexp_or_xml(w)){var f="",O=this.__patterns.xml.read_match();if(O){for(var i=O[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),m=i.indexOf("{")===0,y=0;O;){var N=!!O[1],M=O[2],z=!!O[O.length-1]||M.slice(0,8)==="![CDATA[";if(!z&&(M===i||m&&M.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(N?--y:++y),f+=O[0],y<=0)break;O=this.__patterns.xml.read_match()}return O||(f+=this._input.match(/[\s\S]*/g)[0]),f=f.replace(n.allLineBreaks,` `),this._create_token(o.STRING,f)}}return null};function C(g){for(var w="",f=0,O=new t(g),i=null;O.hasNext();)if(i=O.match(/([\s]|[^\\]|\\\\)+/g),i&&(w+=i[0]),O.peek()==="\\"){if(O.next(),O.peek()==="x")i=O.match(/x([0-9A-Fa-f]{2})/g);else if(O.peek()==="u")i=O.match(/u([0-9A-Fa-f]{4})/g),i||(i=O.match(/u\{([0-9A-Fa-f]+)\}/g));else{w+="\\",O.hasNext()&&(w+=O.next());continue}if(!i||(f=parseInt(i[1],16),f>126&&f<=255&&i[0].indexOf("x")===0))return g;f>=0&&f<32||f>1114111?w+="\\"+i[0]:f===34||f===39||f===92?w+="\\"+String.fromCharCode(f):w+=String.fromCharCode(f)}return w}return x.prototype._read_string_recursive=function(g,w,f){var O,i;g==="'"?i=this.__patterns.single_quote:g==='"'?i=this.__patterns.double_quote:g==="`"?i=this.__patterns.template_text:g==="}"&&(i=this.__patterns.template_expression);for(var m=i.read(),y="";this._input.hasNext();){if(y=this._input.next(),y===g||!w&&n.newline.test(y)){this._input.back();break}else y==="\\"&&this._input.hasNext()?(O=this._input.peek(),O==="x"||O==="u"?this.has_char_escapes=!0:O==="\r"&&this._input.peek(1)===` `&&this._input.next(),y+=this._input.next()):f&&(f==="${"&&y==="$"&&this._input.peek()==="{"&&(y+=this._input.next()),f===y&&(g==="`"?y+=this._read_string_recursive("}",w,"`"):y+=this._read_string_recursive("`",w,"${"),this._input.hasNext()&&(y+=this._input.next())));y+=i.read(),m+=y}return m},Z.Tokenizer=x,Z.TOKEN=o,Z.positionable_operators=S.slice(),Z.line_starters=l.slice(),Z}var ie;function He(){if(ie)return wt;ie=1;var t=Dt().Output,u=me().Token,r=be(),e=ve().Options,n=ut().Tokenizer,_=ut().line_starters,p=ut().positionable_operators,s=ut().TOKEN;function o(i,m){return m.indexOf(i)!==-1}function v(i){return i.replace(/^\s+/g,"")}function c(i){for(var m={},y=0;yy&&(y=i.line_indent_level));var N={mode:m,parent:i,last_token:i?i.last_token:new u(s.START_BLOCK,""),last_word:i?i.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,inline_frame:!1,if_block:!1,else_block:!1,class_start_block:!1,do_block:!1,do_while:!1,import_block:!1,in_case_statement:!1,in_case:!1,case_body:!1,case_block:!1,indentation_level:y,alignment:0,line_indent_level:i?i.line_indent_level:y,start_line_index:this._output.get_line_number(),ternary_depth:0};return N},f.prototype._reset=function(i){var m=i.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new t(this._options,m),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(a.BlockStatement);var y=new n(i,this._options);return this._tokens=y.tokenize(),i},f.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var i,m=this._reset(this._source_text),y=this._options.eol;this._options.eol==="auto"&&(y=` `,m&&r.lineBreak.test(m||"")&&(y=m.match(r.lineBreak)[0]));for(var N=this._tokens.next();N;)this.handle_token(N),this._last_last_text=this._flags.last_token.text,this._flags.last_token=N,N=this._tokens.next();return i=this._output.get_code(y),i},f.prototype.handle_token=function(i,m){i.type===s.START_EXPR?this.handle_start_expr(i):i.type===s.END_EXPR?this.handle_end_expr(i):i.type===s.START_BLOCK?this.handle_start_block(i):i.type===s.END_BLOCK?this.handle_end_block(i):i.type===s.WORD?this.handle_word(i):i.type===s.RESERVED?this.handle_word(i):i.type===s.SEMICOLON?this.handle_semicolon(i):i.type===s.STRING?this.handle_string(i):i.type===s.EQUALS?this.handle_equals(i):i.type===s.OPERATOR?this.handle_operator(i):i.type===s.COMMA?this.handle_comma(i):i.type===s.BLOCK_COMMENT?this.handle_block_comment(i,m):i.type===s.COMMENT?this.handle_comment(i,m):i.type===s.DOT?this.handle_dot(i):i.type===s.EOF?this.handle_eof(i):i.type===s.UNKNOWN?this.handle_unknown(i,m):this.handle_unknown(i,m)},f.prototype.handle_whitespace_and_comments=function(i,m){var y=i.newlines,N=this._options.keep_array_indentation&&x(this._flags.mode);if(i.comments_before)for(var M=i.comments_before.next();M;)this.handle_whitespace_and_comments(M,m),this.handle_token(M,m),M=i.comments_before.next();if(N)for(var z=0;z0,m);else if(this._options.max_preserve_newlines&&y>this._options.max_preserve_newlines&&(y=this._options.max_preserve_newlines),this._options.preserve_newlines&&y>1){this.print_newline(!1,m);for(var E=1;E0&&(!this._flags.parent||this._flags.indentation_level>this._flags.parent.indentation_level)&&(this._flags.indentation_level-=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},f.prototype.set_mode=function(i){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,i),this._flags=this.create_flags(this._previous_flags,i),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},f.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===a.Statement&&h(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},f.prototype.start_of_object_property=function(){return this._flags.parent.mode===a.ObjectLiteral&&this._flags.mode===a.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||b(this._flags.last_token,["get","set"]))},f.prototype.start_of_statement=function(i){var m=!1;return m=m||b(this._flags.last_token,["var","let","const"])&&i.type===s.WORD,m=m||d(this._flags.last_token,"do"),m=m||!(this._flags.parent.mode===a.ObjectLiteral&&this._flags.mode===a.Statement)&&b(this._flags.last_token,O)&&!i.newlines,m=m||d(this._flags.last_token,"else")&&!(d(i,"if")&&!i.comments_before),m=m||this._flags.last_token.type===s.END_EXPR&&(this._previous_flags.mode===a.ForInitializer||this._previous_flags.mode===a.Conditional),m=m||this._flags.last_token.type===s.WORD&&this._flags.mode===a.BlockStatement&&!this._flags.in_case&&!(i.text==="--"||i.text==="++")&&this._last_last_text!=="function"&&i.type!==s.WORD&&i.type!==s.RESERVED,m=m||this._flags.mode===a.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||b(this._flags.last_token,["get","set"])),m?(this.set_mode(a.Statement),this.indent(),this.handle_whitespace_and_comments(i,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(i,b(i,["do","for","if","while"])),!0):!1},f.prototype.handle_start_expr=function(i){this.start_of_statement(i)||this.handle_whitespace_and_comments(i);var m=a.Expression;if(i.text==="["){if(this._flags.last_token.type===s.WORD||this._flags.last_token.text===")"){b(this._flags.last_token,_)&&(this._output.space_before_token=!0),this.print_token(i),this.set_mode(m),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}m=a.ArrayLiteral,x(this._flags.mode)&&(this._flags.last_token.text==="["||this._flags.last_token.text===","&&(this._last_last_text==="]"||this._last_last_text==="}"))&&(this._options.keep_array_indentation||this.print_newline()),o(this._flags.last_token.type,[s.START_EXPR,s.END_EXPR,s.WORD,s.OPERATOR,s.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===s.RESERVED)this._flags.last_token.text==="for"?(this._output.space_before_token=this._options.space_before_conditional,m=a.ForInitializer):o(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,m=a.Conditional):o(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:this._flags.last_token.text==="import"&&i.whitespace_before===""?this._output.space_before_token=!1:(o(this._flags.last_token.text,_)||this._flags.last_token.text==="catch")&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===s.EQUALS||this._flags.last_token.type===s.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(i);else if(this._flags.last_token.type===s.WORD){this._output.space_before_token=!1;var y=this._tokens.peek(-3);if(this._options.space_after_named_function&&y){var N=this._tokens.peek(-4);b(y,["async","function"])||y.text==="*"&&b(N,["async","function"])?this._output.space_before_token=!0:this._flags.mode===a.ObjectLiteral?(y.text==="{"||y.text===","||y.text==="*"&&(N.text==="{"||N.text===","))&&(this._output.space_before_token=!0):this._flags.parent&&this._flags.parent.class_start_block&&(this._output.space_before_token=!0)}}else this.allow_wrap_or_preserved_newline(i);(this._flags.last_token.type===s.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&(o(this._last_last_text,["function","yield"])||this._flags.mode===a.ObjectLiteral&&o(this._last_last_text,["{",","])))&&(this._output.space_before_token=this._options.space_after_anon_function)}this._flags.last_token.text===";"||this._flags.last_token.type===s.START_BLOCK?this.print_newline():(this._flags.last_token.type===s.END_EXPR||this._flags.last_token.type===s.START_EXPR||this._flags.last_token.type===s.END_BLOCK||this._flags.last_token.text==="."||this._flags.last_token.type===s.COMMA)&&this.allow_wrap_or_preserved_newline(i,i.newlines),this.print_token(i),this.set_mode(m),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},f.prototype.handle_end_expr=function(i){for(;this._flags.mode===a.Statement;)this.restore_mode();this.handle_whitespace_and_comments(i),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(i,i.text==="]"&&x(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type===s.START_EXPR&&!this._options.space_in_empty_paren?(this._output.trim(),this._output.space_before_token=!1):this._output.space_before_token=!0),this.deindent(),this.print_token(i),this.restore_mode(),h(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===a.Conditional&&(this._previous_flags.mode=a.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},f.prototype.handle_start_block=function(i){this.handle_whitespace_and_comments(i);var m=this._tokens.peek(),y=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===s.END_EXPR?(this.set_mode(a.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(a.BlockStatement):y&&(o(y.text,[":",","])&&o(m.type,[s.STRING,s.WORD,s.RESERVED])||o(m.text,["get","set","..."])&&o(y.type,[s.WORD,s.RESERVED]))?o(this._last_last_text,["class","interface"])&&!o(y.text,[":",","])?this.set_mode(a.BlockStatement):this.set_mode(a.ObjectLiteral):this._flags.last_token.type===s.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(a.BlockStatement):o(this._flags.last_token.type,[s.EQUALS,s.START_EXPR,s.COMMA,s.OPERATOR])||b(this._flags.last_token,["return","throw","import","default"])?this.set_mode(a.ObjectLiteral):this.set_mode(a.BlockStatement),this._flags.last_token&&b(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0);var N=!m.comments_before&&m.text==="}",M=N&&this._flags.last_word==="function"&&this._flags.last_token.type===s.END_EXPR;if(this._options.brace_preserve_inline){var z=0,E=null;this._flags.inline_frame=!0;do if(z+=1,E=this._tokens.peek(z-1),E.newlines){this._flags.inline_frame=!1;break}while(E.type!==s.EOF&&!(E.type===s.END_BLOCK&&E.opened===i))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&i.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==s.OPERATOR&&(M||this._flags.last_token.type===s.EQUALS||b(this._flags.last_token,S)&&this._flags.last_token.text!=="else")?this._output.space_before_token=!0:this.print_newline(!1,!0):(x(this._previous_flags.mode)&&(this._flags.last_token.type===s.START_EXPR||this._flags.last_token.type===s.COMMA)&&((this._flags.last_token.type===s.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===s.COMMA||this._flags.last_token.type===s.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(i),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==s.OPERATOR&&this._flags.last_token.type!==s.START_EXPR&&(o(this._flags.last_token.type,[s.START_BLOCK,s.SEMICOLON])&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(i),this.indent(),!N&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()},f.prototype.handle_end_block=function(i){for(this.handle_whitespace_and_comments(i);this._flags.mode===a.Statement;)this.restore_mode();var m=this._flags.last_token.type===s.START_BLOCK;this._flags.inline_frame&&!m?this._output.space_before_token=!0:this._options.brace_style==="expand"?m||this.print_newline():m||(x(this._flags.mode)&&this._options.keep_array_indentation?(this._options.keep_array_indentation=!1,this.print_newline(),this._options.keep_array_indentation=!0):this.print_newline()),this.restore_mode(),this.print_token(i)},f.prototype.handle_word=function(i){if(i.type===s.RESERVED){if(o(i.text,["set","get"])&&this._flags.mode!==a.ObjectLiteral)i.type=s.WORD;else if(i.text==="import"&&o(this._tokens.peek().text,["(","."]))i.type=s.WORD;else if(o(i.text,["as","from"])&&!this._flags.import_block)i.type=s.WORD;else if(this._flags.mode===a.ObjectLiteral){var m=this._tokens.peek();m.text===":"&&(i.type=s.WORD)}}if(this.start_of_statement(i)?b(this._flags.last_token,["var","let","const"])&&i.type===s.WORD&&(this._flags.declaration_statement=!0):i.newlines&&!C(this._flags.mode)&&(this._flags.last_token.type!==s.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")&&this._flags.last_token.type!==s.EQUALS&&(this._options.preserve_newlines||!b(this._flags.last_token,["var","let","const","set","get"]))?(this.handle_whitespace_and_comments(i),this.print_newline()):this.handle_whitespace_and_comments(i),this._flags.do_block&&!this._flags.do_while)if(d(i,"while")){this._output.space_before_token=!0,this.print_token(i),this._output.space_before_token=!0,this._flags.do_while=!0;return}else this.print_newline(),this._flags.do_block=!1;if(this._flags.if_block)if(!this._flags.else_block&&d(i,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===a.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&b(i,["case","default"])){this.print_newline(),!this._flags.case_block&&(this._flags.case_body||this._options.jslint_happy)&&this.deindent(),this._flags.case_body=!1,this.print_token(i),this._flags.in_case=!0;return}if((this._flags.last_token.type===s.COMMA||this._flags.last_token.type===s.START_EXPR||this._flags.last_token.type===s.EQUALS||this._flags.last_token.type===s.OPERATOR)&&!this.start_of_object_property()&&!(o(this._flags.last_token.text,["+","-"])&&this._last_last_text===":"&&this._flags.parent.mode===a.ObjectLiteral)&&this.allow_wrap_or_preserved_newline(i),d(i,"function")){(o(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(o(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===s.OPERATOR))&&!this._output.just_added_blankline()&&!i.comments_before&&(this.print_newline(),this.print_newline(!0)),this._flags.last_token.type===s.RESERVED||this._flags.last_token.type===s.WORD?b(this._flags.last_token,["get","set","new","export"])||b(this._flags.last_token,O)?this._output.space_before_token=!0:d(this._flags.last_token,"default")&&this._last_last_text==="export"?this._output.space_before_token=!0:this._flags.last_token.text==="declare"?this._output.space_before_token=!0:this.print_newline():this._flags.last_token.type===s.OPERATOR||this._flags.last_token.text==="="?this._output.space_before_token=!0:!this._flags.multiline_frame&&(C(this._flags.mode)||x(this._flags.mode))||this.print_newline(),this.print_token(i),this._flags.last_word=i.text;return}var y="NONE";if(this._flags.last_token.type===s.END_BLOCK?this._previous_flags.inline_frame?y="SPACE":b(i,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&i.newlines?y="NEWLINE":(y="SPACE",this._output.space_before_token=!0):y="NEWLINE":this._flags.last_token.type===s.SEMICOLON&&this._flags.mode===a.BlockStatement?y="NEWLINE":this._flags.last_token.type===s.SEMICOLON&&C(this._flags.mode)?y="SPACE":this._flags.last_token.type===s.STRING?y="NEWLINE":this._flags.last_token.type===s.RESERVED||this._flags.last_token.type===s.WORD||this._flags.last_token.text==="*"&&(o(this._last_last_text,["function","yield"])||this._flags.mode===a.ObjectLiteral&&o(this._last_last_text,["{",","]))?y="SPACE":this._flags.last_token.type===s.START_BLOCK?this._flags.inline_frame?y="SPACE":y="NEWLINE":this._flags.last_token.type===s.END_EXPR&&(this._output.space_before_token=!0,y="NEWLINE"),b(i,_)&&this._flags.last_token.text!==")"&&(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export"?y="SPACE":y="NEWLINE"),b(i,["else","catch","finally"]))if((!(this._flags.last_token.type===s.END_BLOCK&&this._previous_flags.mode===a.BlockStatement)||this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&i.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var N=this._output.current_line;N.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else y==="NEWLINE"?b(this._flags.last_token,S)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&b(i,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==s.END_EXPR?(this._flags.last_token.type!==s.START_EXPR||!b(i,["var","let","const"]))&&this._flags.last_token.text!==":"&&(d(i,"if")&&d(i.previous,"else")?this._output.space_before_token=!0:this.print_newline()):b(i,_)&&this._flags.last_token.text!==")"&&this.print_newline():this._flags.multiline_frame&&x(this._flags.mode)&&this._flags.last_token.text===","&&this._last_last_text==="}"?this.print_newline():y==="SPACE"&&(this._output.space_before_token=!0);i.previous&&(i.previous.type===s.WORD||i.previous.type===s.RESERVED)&&(this._output.space_before_token=!0),this.print_token(i),this._flags.last_word=i.text,i.type===s.RESERVED&&(i.text==="do"?this._flags.do_block=!0:i.text==="if"?this._flags.if_block=!0:i.text==="import"?this._flags.import_block=!0:this._flags.import_block&&d(i,"from")&&(this._flags.import_block=!1))},f.prototype.handle_semicolon=function(i){this.start_of_statement(i)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(i);for(var m=this._tokens.peek();this._flags.mode===a.Statement&&!(this._flags.if_block&&d(m,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(i)},f.prototype.handle_string=function(i){i.text.startsWith("`")&&i.newlines===0&&i.whitespace_before===""&&(i.previous.text===")"||this._flags.last_token.type===s.WORD)||(this.start_of_statement(i)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(i),this._flags.last_token.type===s.RESERVED||this._flags.last_token.type===s.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===s.COMMA||this._flags.last_token.type===s.START_EXPR||this._flags.last_token.type===s.EQUALS||this._flags.last_token.type===s.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(i):i.text.startsWith("`")&&this._flags.last_token.type===s.END_EXPR&&(i.previous.text==="]"||i.previous.text===")")&&i.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(i)},f.prototype.handle_equals=function(i){this.start_of_statement(i)||this.handle_whitespace_and_comments(i),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(i),this._output.space_before_token=!0},f.prototype.handle_comma=function(i){this.handle_whitespace_and_comments(i,!0),this.print_token(i),this._output.space_before_token=!0,this._flags.declaration_statement?(C(this._flags.parent.mode)&&(this._flags.declaration_assignment=!1),this._flags.declaration_assignment?(this._flags.declaration_assignment=!1,this.print_newline(!1,!0)):this._options.comma_first&&this.allow_wrap_or_preserved_newline(i)):this._flags.mode===a.ObjectLiteral||this._flags.mode===a.Statement&&this._flags.parent.mode===a.ObjectLiteral?(this._flags.mode===a.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(i)},f.prototype.handle_operator=function(i){var m=i.text==="*"&&(b(this._flags.last_token,["function","yield"])||o(this._flags.last_token.type,[s.START_BLOCK,s.COMMA,s.END_BLOCK,s.SEMICOLON])),y=o(i.text,["-","+"])&&(o(this._flags.last_token.type,[s.START_BLOCK,s.START_EXPR,s.EQUALS,s.OPERATOR])||o(this._flags.last_token.text,_)||this._flags.last_token.text===",");if(!this.start_of_statement(i)){var N=!m;this.handle_whitespace_and_comments(i,N)}if(i.text==="*"&&this._flags.last_token.type===s.DOT){this.print_token(i);return}if(i.text==="::"){this.print_token(i);return}if(o(i.text,["-","+"])&&this.start_of_object_property()){this.print_token(i);return}if(this._flags.last_token.type===s.OPERATOR&&o(this._options.operator_position,l)&&this.allow_wrap_or_preserved_newline(i),i.text===":"&&this._flags.in_case){this.print_token(i),this._flags.in_case=!1,this._flags.case_body=!0,this._tokens.peek().type!==s.START_BLOCK?(this.indent(),this.print_newline(),this._flags.case_block=!1):(this._flags.case_block=!0,this._output.space_before_token=!0);return}var M=!0,z=!0,E=!1;if(i.text===":"?this._flags.ternary_depth===0?M=!1:(this._flags.ternary_depth-=1,E=!0):i.text==="?"&&(this._flags.ternary_depth+=1),!y&&!m&&this._options.preserve_newlines&&o(i.text,p)){var T=i.text===":",B=T&&E,U=T&&!E;switch(this._options.operator_position){case L.before_newline:this._output.space_before_token=!U,this.print_token(i),(!T||B)&&this.allow_wrap_or_preserved_newline(i),this._output.space_before_token=!0;return;case L.after_newline:this._output.space_before_token=!0,!T||B?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(i):this._output.space_before_token=!1,this.print_token(i),this._output.space_before_token=!0;return;case L.preserve_newline:U||this.allow_wrap_or_preserved_newline(i),M=!(this._output.just_added_newline()||U),this._output.space_before_token=M,this.print_token(i),this._output.space_before_token=!0;return}}if(m){this.allow_wrap_or_preserved_newline(i),M=!1;var Q=this._tokens.peek();z=Q&&o(Q.type,[s.WORD,s.RESERVED])}else if(i.text==="...")this.allow_wrap_or_preserved_newline(i),M=this._flags.last_token.type===s.START_BLOCK,z=!1;else if(o(i.text,["--","++","!","~"])||y){if((this._flags.last_token.type===s.COMMA||this._flags.last_token.type===s.START_EXPR)&&this.allow_wrap_or_preserved_newline(i),M=!1,z=!1,i.newlines&&(i.text==="--"||i.text==="++"||i.text==="~")){var Y=b(this._flags.last_token,S)&&i.newlines;Y&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(Y,!0)}this._flags.last_token.text===";"&&C(this._flags.mode)&&(M=!0),this._flags.last_token.type===s.RESERVED?M=!0:this._flags.last_token.type===s.END_EXPR?M=!(this._flags.last_token.text==="]"&&(i.text==="--"||i.text==="++")):this._flags.last_token.type===s.OPERATOR&&(M=o(i.text,["--","-","++","+"])&&o(this._flags.last_token.text,["--","-","++","+"]),o(i.text,["+","-"])&&o(this._flags.last_token.text,["--","++"])&&(z=!0)),(this._flags.mode===a.BlockStatement&&!this._flags.inline_frame||this._flags.mode===a.Statement)&&(this._flags.last_token.text==="{"||this._flags.last_token.text===";")&&this.print_newline()}this._output.space_before_token=this._output.space_before_token||M,this.print_token(i),this._output.space_before_token=z},f.prototype.handle_block_comment=function(i,m){if(this._output.raw){this._output.add_raw_token(i),i.directives&&i.directives.preserve==="end"&&(this._output.raw=this._options.test_output_raw);return}if(i.directives){this.print_newline(!1,m),this.print_token(i),i.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!r.newline.test(i.text)&&!i.newlines){this._output.space_before_token=!0,this.print_token(i),this._output.space_before_token=!0;return}else this.print_block_commment(i,m)},f.prototype.print_block_commment=function(i,m){var y=A(i.text),N,M=!1,z=!1,E=i.whitespace_before,T=E.length;if(this.print_newline(!1,m),this.print_token_line_indentation(i),this._output.add_token(y[0]),this.print_newline(!1,m),y.length>1){for(y=y.slice(1),M=g(y,"*"),z=w(y,E),M&&(this._flags.alignment=1),N=0;N0&&this._indentLevel--},d.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var b=this._source_text,S=this._options.eol;S==="auto"&&(S=` `,b&&_.test(b||"")&&(S=b.match(_)[0])),b=b.replace(p,` `);var k=b.match(/^[\t ]*/)[0];this._output=new u(this._options,k),this._input=new r(b),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var L=0,l=!1,a=!1,h=!1,A=!1,x=!1,C=this._ch,g=!1,w,f,O;w=this._input.read(o),f=w!=="",O=C,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),C=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var i=this._input.read(v),m=n.get_directives(i);m&&m.ignore==="start"&&(i+=n.readIgnored(this._input)),this.print_string(i),this.eatWhitespace(!0),this._output.add_new_line()}else if(this._ch==="/"&&this._input.peek()==="/")this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(c)),this.eatWhitespace(!0);else if(this._ch==="$"){this.preserveSingleSpace(f),this.print_string(this._ch);var y=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);y.match(/[ :]$/)&&(y=this.eatString(": ").replace(/\s+$/,""),this.print_string(y),this._output.space_before_token=!0),L===0&&y.indexOf(":")!==-1&&(a=!0,this.indent())}else if(this._ch==="@")if(this.preserveSingleSpace(f),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var N=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);N.match(/[ :]$/)&&(N=this.eatString(": ").replace(/\s+$/,""),this.print_string(N),this._output.space_before_token=!0),L===0&&N.indexOf(":")!==-1?(a=!0,this.indent()):N in this.NESTED_AT_RULE?(this._nestedLevel+=1,N in this.CONDITIONAL_GROUP_RULE&&(h=!0)):L===0&&!a&&(A=!0)}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(f),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")a&&(a=!1,this.outdent()),A=!1,h?(h=!1,l=this._indentLevel>=this._nestedLevel):l=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&l&&this._output.previous_line&&this._output.previous_line.item(-1)!=="{"&&this._output.ensure_empty_line_above("/",","),this._output.space_before_token=!0,this._options.brace_style==="expand"?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):(O==="("?this._output.space_before_token=!1:O!==","&&this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line();else if(this._ch==="}")this.outdent(),this._output.add_new_line(),O==="{"&&this._output.trim(!0),a&&(this.outdent(),a=!1),this.print_string(this._ch),l=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&this._input.peek()!=="}"&&this._output.add_new_line(!0),this._input.peek()===")"&&(this._output.trim(!0),this._options.brace_style==="expand"&&this._output.add_new_line(!0));else if(this._ch===":"){for(var M=0;M"||this._ch==="+"||this._ch==="~")&&!a&&L===0)this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&s.test(this._ch)&&(this._ch=""));else if(this._ch==="]")this.print_string(this._ch);else if(this._ch==="[")this.preserveSingleSpace(f),this.print_string(this._ch);else if(this._ch==="=")this.eatWhitespace(),this.print_string("="),s.test(this._ch)&&(this._ch="");else if(this._ch==="!"&&!this._input.lookBack("\\"))this._output.space_before_token=!0,this.print_string(this._ch);else{var T=O==='"'||O==="'";this.preserveSingleSpace(T||f),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===` `&&g&&this._output.add_new_line()}var B=this._output.get_code(S);return B},Ct.Beautifier=d,Ct}var re;function ti(){if(re)return lt.exports;re=1;var t=Ze().Beautifier,u=we().Options;function r(e,n){var _=new t(e,n);return _.beautify()}return lt.exports=r,lt.exports.defaultOptions=function(){return new u},lt.exports}var pt={exports:{}},Pt={},Mt={},_e;function xe(){if(_e)return Mt;_e=1;var t=It().Options;function u(r){t.call(this,r,"html"),this.templating.length===1&&this.templating[0]==="auto"&&(this.templating=["django","erb","handlebars","php"]),this.indent_inner_html=this._get_boolean("indent_inner_html"),this.indent_body_inner_html=this._get_boolean("indent_body_inner_html",!0),this.indent_head_inner_html=this._get_boolean("indent_head_inner_html",!0),this.indent_handlebars=this._get_boolean("indent_handlebars",!0),this.wrap_attributes=this._get_selection("wrap_attributes",["auto","force","force-aligned","force-expand-multiline","aligned-multiple","preserve","preserve-aligned"]),this.wrap_attributes_min_attrs=this._get_number("wrap_attributes_min_attrs",2),this.wrap_attributes_indent_size=this._get_number("wrap_attributes_indent_size",this.indent_size),this.extra_liners=this._get_array("extra_liners",["head","body","/html"]),this.inline=this._get_array("inline",["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","big","strike","tt"]),this.inline_custom_elements=this._get_boolean("inline_custom_elements",!0),this.void_elements=this._get_array("void_elements",["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr","!doctype","?xml","basefont","isindex"]),this.unformatted=this._get_array("unformatted",[]),this.content_unformatted=this._get_array("content_unformatted",["pre","textarea"]),this.unformatted_content_delimiter=this._get_characters("unformatted_content_delimiter"),this.indent_scripts=this._get_selection("indent_scripts",["normal","keep","separate"])}return u.prototype=new t,Mt.Options=u,Mt}var ht={},oe;function ue(){if(oe)return ht;oe=1;var t=dt().Tokenizer,u=dt().TOKEN,r=Bt().Directives,e=ye().TemplatablePattern,n=mt().Pattern,_={TAG_OPEN:"TK_TAG_OPEN",TAG_CLOSE:"TK_TAG_CLOSE",CONTROL_FLOW_OPEN:"TK_CONTROL_FLOW_OPEN",CONTROL_FLOW_CLOSE:"TK_CONTROL_FLOW_CLOSE",ATTRIBUTE:"TK_ATTRIBUTE",EQUALS:"TK_EQUALS",VALUE:"TK_VALUE",COMMENT:"TK_COMMENT",TEXT:"TK_TEXT",UNKNOWN:"TK_UNKNOWN",START:u.START,RAW:u.RAW,EOF:u.EOF},p=new r(/<\!--/,/-->/),s=function(o,v){t.call(this,o,v),this._current_tag_name="";var c=new e(this._input).read_options(this._options),d=new n(this._input);if(this.__patterns={word:c.until(/[\n\r\t <]/),word_control_flow_close_excluded:c.until(/[\n\r\t <}]/),single_quote:c.until_after(/'/),double_quote:c.until_after(/"/),attribute:c.until(/[\n\r\t =>]|\/>/),element_name:c.until(/[\n\r\t >\/]/),angular_control_flow_start:d.matching(/\@[a-zA-Z]+[^({]*[({]/),handlebars_comment:d.starting_with(/{{!--/).until_after(/--}}/),handlebars:d.starting_with(/{{/).until_after(/}}/),handlebars_open:d.until(/[\n\r\t }]/),handlebars_raw_close:d.until(/}}/),comment:d.starting_with(//),cdata:d.starting_with(//),conditional_comment:d.starting_with(//),processing:d.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars"),this.__patterns.word_control_flow_close_excluded=this.__patterns.word_control_flow_close_excluded.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var b=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=d.matching(b).until_after(b)}};return s.prototype=new t,s.prototype._is_comment=function(o){return!1},s.prototype._is_opening=function(o){return o.type===_.TAG_OPEN||o.type===_.CONTROL_FLOW_OPEN},s.prototype._is_closing=function(o,v){return o.type===_.TAG_CLOSE&&v&&((o.text===">"||o.text==="/>")&&v.text[0]==="<"||o.text==="}}"&&v.text[0]==="{"&&v.text[1]==="{")||o.type===_.CONTROL_FLOW_CLOSE&&o.text==="}"&&v.text.endsWith("{")},s.prototype._reset=function(){this._current_tag_name=""},s.prototype._get_next_token=function(o,v){var c=null;this._readWhitespace();var d=this._input.peek();return d===null?this._create_token(_.EOF,""):(c=c||this._read_open_handlebars(d,v),c=c||this._read_attribute(d,o,v),c=c||this._read_close(d,v),c=c||this._read_script_and_style(d,o),c=c||this._read_control_flows(d,v),c=c||this._read_raw_content(d,o,v),c=c||this._read_content_word(d,v),c=c||this._read_comment_or_cdata(d),c=c||this._read_processing(d),c=c||this._read_open(d,v),c=c||this._create_token(_.UNKNOWN,this._input.next()),c)},s.prototype._read_comment_or_cdata=function(o){var v=null,c=null,d=null;if(o==="<"){var b=this._input.peek(1);b==="!"&&(c=this.__patterns.comment.read(),c?(d=p.get_directives(c),d&&d.ignore==="start"&&(c+=p.readIgnored(this._input))):c=this.__patterns.cdata.read()),c&&(v=this._create_token(_.COMMENT,c),v.directives=d)}return v},s.prototype._read_processing=function(o){var v=null,c=null,d=null;if(o==="<"){var b=this._input.peek(1);(b==="!"||b==="?")&&(c=this.__patterns.conditional_comment.read(),c=c||this.__patterns.processing.read()),c&&(v=this._create_token(_.COMMENT,c),v.directives=d)}return v},s.prototype._read_open=function(o,v){var c=null,d=null;return(!v||v.type===_.CONTROL_FLOW_OPEN)&&o==="<"&&(c=this._input.next(),this._input.peek()==="/"&&(c+=this._input.next()),c+=this.__patterns.element_name.read(),d=this._create_token(_.TAG_OPEN,c)),d},s.prototype._read_open_handlebars=function(o,v){var c=null,d=null;return(!v||v.type===_.CONTROL_FLOW_OPEN)&&(this._options.templating.includes("angular")||this._options.indent_handlebars)&&o==="{"&&this._input.peek(1)==="{"&&(this._options.indent_handlebars&&this._input.peek(2)==="!"?(c=this.__patterns.handlebars_comment.read(),c=c||this.__patterns.handlebars.read(),d=this._create_token(_.COMMENT,c)):(c=this.__patterns.handlebars_open.read(),d=this._create_token(_.TAG_OPEN,c))),d},s.prototype._read_control_flows=function(o,v){var c="",d=null;if(!this._options.templating.includes("angular"))return d;if(o==="@"){if(c=this.__patterns.angular_control_flow_start.read(),c==="")return d;for(var b=c.endsWith("(")?1:0,S=0;!(c.endsWith("{")&&b===S);){var k=this._input.next();if(k===null)break;k==="("?b++:k===")"&&S++,c+=k}d=this._create_token(_.CONTROL_FLOW_OPEN,c)}else o==="}"&&v&&v.type===_.CONTROL_FLOW_OPEN&&(c=this._input.next(),d=this._create_token(_.CONTROL_FLOW_CLOSE,c));return d},s.prototype._read_close=function(o,v){var c=null,d=null;return v&&v.type===_.TAG_OPEN&&(v.text[0]==="<"&&(o===">"||o==="/"&&this._input.peek(1)===">")?(c=this._input.next(),o==="/"&&(c+=this._input.next()),d=this._create_token(_.TAG_CLOSE,c)):v.text[0]==="{"&&o==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),d=this._create_token(_.TAG_CLOSE,"}}"))),d},s.prototype._read_attribute=function(o,v,c){var d=null,b="";if(c&&c.text[0]==="<")if(o==="=")d=this._create_token(_.EQUALS,this._input.next());else if(o==='"'||o==="'"){var S=this._input.next();o==='"'?S+=this.__patterns.double_quote.read():S+=this.__patterns.single_quote.read(),d=this._create_token(_.VALUE,S)}else b=this.__patterns.attribute.read(),b&&(v.type===_.EQUALS?d=this._create_token(_.VALUE,b):d=this._create_token(_.ATTRIBUTE,b));return d},s.prototype._is_content_unformatted=function(o){return this._options.void_elements.indexOf(o)===-1&&(this._options.content_unformatted.indexOf(o)!==-1||this._options.unformatted.indexOf(o)!==-1)},s.prototype._read_raw_content=function(o,v,c){var d="";if(c&&c.text[0]==="{")d=this.__patterns.handlebars_raw_close.read();else if(v.type===_.TAG_CLOSE&&v.opened.text[0]==="<"&&v.text[0]!=="/"){var b=v.opened.text.substr(1).toLowerCase();this._is_content_unformatted(b)&&(d=this._input.readUntil(new RegExp("","ig")))}return d?this._create_token(_.TEXT,d):null},s.prototype._read_script_and_style=function(o,v){if(v.type===_.TAG_CLOSE&&v.opened.text[0]==="<"&&v.text[0]!=="/"){var c=v.opened.text.substr(1).toLowerCase();if(c==="script"||c==="style"){var d=this._read_comment_or_cdata(o);if(d)return d.type=_.TEXT,d;var b=this._input.readUntil(new RegExp("","ig"));if(b)return this._create_token(_.TEXT,b)}}return null},s.prototype._read_content_word=function(o,v){var c="";return this._options.unformatted_content_delimiter&&o===this._options.unformatted_content_delimiter[0]&&(c=this.__patterns.unformatted_content_delimiter.read()),c||(c=v&&v.type===_.CONTROL_FLOW_OPEN?this.__patterns.word_control_flow_close_excluded.read():this.__patterns.word.read()),c?this._create_token(_.TEXT,c):null},ht.Tokenizer=s,ht.TOKEN=_,ht}var le;function ei(){if(le)return Pt;le=1;var t=xe().Options,u=Dt().Output,r=ue().Tokenizer,e=ue().TOKEN,n=/\r\n|[\r\n]/,_=/\r\n|[\r\n]/g,p=function(l,a){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=l.max_preserve_newlines,this.preserve_newlines=l.preserve_newlines,this._output=new u(l,a)};p.prototype.current_line_has_match=function(l){return this._output.current_line.has_match(l)},p.prototype.set_space_before_token=function(l,a){this._output.space_before_token=l,this._output.non_breaking_space=a},p.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},p.prototype.add_raw_token=function(l){this._output.add_raw_token(l)},p.prototype.print_preserved_newlines=function(l){var a=0;l.type!==e.TEXT&&l.previous.type!==e.TEXT&&(a=l.newlines?1:0),this.preserve_newlines&&(a=l.newlines0);return a!==0},p.prototype.traverse_whitespace=function(l){return l.whitespace_before||l.newlines?(this.print_preserved_newlines(l)||(this._output.space_before_token=!0),!0):!1},p.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},p.prototype.print_newline=function(l){this._output.add_new_line(l)},p.prototype.print_token=function(l){l.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(l.text))},p.prototype.indent=function(){this.indent_level++},p.prototype.deindent=function(){this.indent_level>0&&(this.indent_level--,this._output.set_indent(this.indent_level,this.alignment_size))},p.prototype.get_full_indent=function(l){return l=this.indent_level+(l||0),l<1?"":this._output.get_indent_string(l)};var s=function(l){for(var a=null,h=l.next;h.type!==e.EOF&&l.closed!==h;){if(h.type===e.ATTRIBUTE&&h.text==="type"){h.next&&h.next.type===e.EQUALS&&h.next.next&&h.next.next.type===e.VALUE&&(a=h.next.next.text);break}h=h.next}return a},o=function(l,a){var h=null,A=null;return a.closed?(l==="script"?h="text/javascript":l==="style"&&(h="text/css"),h=s(a)||h,h.search("text/css")>-1?A="css":h.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?A="javascript":h.search(/(text|application|dojo)\/(x-)?(html)/)>-1?A="html":h.search(/test\/null/)>-1&&(A="null"),A):null};function v(l,a){return a.indexOf(l)!==-1}function c(l,a,h){this.parent=l||null,this.tag=a?a.tag_name:"",this.indent_level=h||0,this.parser_token=a||null}function d(l){this._printer=l,this._current_frame=null}d.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},d.prototype.record_tag=function(l){var a=new c(this._current_frame,l,this._printer.indent_level);this._current_frame=a},d.prototype._try_pop_frame=function(l){var a=null;return l&&(a=l.parser_token,this._printer.indent_level=l.indent_level,this._current_frame=l.parent),a},d.prototype._get_frame=function(l,a){for(var h=this._current_frame;h&&l.indexOf(h.tag)===-1;){if(a&&a.indexOf(h.tag)!==-1){h=null;break}h=h.parent}return h},d.prototype.try_pop=function(l,a){var h=this._get_frame([l],a);return this._try_pop_frame(h)},d.prototype.indent_to_tag=function(l){var a=this._get_frame(l);a&&(this._printer.indent_level=a.indent_level)};function b(l,a,h,A){this._source_text=l||"",a=a||{},this._js_beautify=h,this._css_beautify=A,this._tag_stack=null;var x=new t(a,"html");this._options=x,this._is_wrap_attributes_force=this._options.wrap_attributes.substr(0,5)==="force",this._is_wrap_attributes_force_expand_multiline=this._options.wrap_attributes==="force-expand-multiline",this._is_wrap_attributes_force_aligned=this._options.wrap_attributes==="force-aligned",this._is_wrap_attributes_aligned_multiple=this._options.wrap_attributes==="aligned-multiple",this._is_wrap_attributes_preserve=this._options.wrap_attributes.substr(0,8)==="preserve",this._is_wrap_attributes_preserve_aligned=this._options.wrap_attributes==="preserve-aligned"}b.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var l=this._source_text,a=this._options.eol;this._options.eol==="auto"&&(a=` `,l&&n.test(l)&&(a=l.match(n)[0])),l=l.replace(_,` `);var h=l.match(/^[\t ]*/)[0],A={text:"",type:""},x=new S(this._options),C=new p(this._options,h),g=new r(l,this._options).tokenize();this._tag_stack=new d(C);for(var w=null,f=g.next();f.type!==e.EOF;)f.type===e.TAG_OPEN||f.type===e.COMMENT?(w=this._handle_tag_open(C,f,x,A,g),x=w):f.type===e.ATTRIBUTE||f.type===e.EQUALS||f.type===e.VALUE||f.type===e.TEXT&&!x.tag_complete?w=this._handle_inside_tag(C,f,x,A):f.type===e.TAG_CLOSE?w=this._handle_tag_close(C,f,x):f.type===e.TEXT?w=this._handle_text(C,f,x):f.type===e.CONTROL_FLOW_OPEN?w=this._handle_control_flow_open(C,f):f.type===e.CONTROL_FLOW_CLOSE?w=this._handle_control_flow_close(C,f):C.add_raw_token(f),A=w,f=g.next();var O=C._output.get_code(a);return O},b.prototype._handle_control_flow_open=function(l,a){var h={text:a.text,type:a.type};return l.set_space_before_token(a.newlines||a.whitespace_before!=="",!0),a.newlines?l.print_preserved_newlines(a):l.set_space_before_token(a.newlines||a.whitespace_before!=="",!0),l.print_token(a),l.indent(),h},b.prototype._handle_control_flow_close=function(l,a){var h={text:a.text,type:a.type};return l.deindent(),a.newlines?l.print_preserved_newlines(a):l.set_space_before_token(a.newlines||a.whitespace_before!=="",!0),l.print_token(a),h},b.prototype._handle_tag_close=function(l,a,h){var A={text:a.text,type:a.type};return l.alignment_size=0,h.tag_complete=!0,l.set_space_before_token(a.newlines||a.whitespace_before!=="",!0),h.is_unformatted?l.add_raw_token(a):(h.tag_start_char==="<"&&(l.set_space_before_token(a.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&h.has_wrapped_attrs&&l.print_newline(!1)),l.print_token(a)),h.indent_content&&!(h.is_unformatted||h.is_content_unformatted)&&(l.indent(),h.indent_content=!1),!h.is_inline_element&&!(h.is_unformatted||h.is_content_unformatted)&&l.set_wrap_point(),A},b.prototype._handle_inside_tag=function(l,a,h,A){var x=h.has_wrapped_attrs,C={text:a.text,type:a.type};return l.set_space_before_token(a.newlines||a.whitespace_before!=="",!0),h.is_unformatted?l.add_raw_token(a):h.tag_start_char==="{"&&a.type===e.TEXT?l.print_preserved_newlines(a)?(a.newlines=0,l.add_raw_token(a)):l.print_token(a):(a.type===e.ATTRIBUTE?l.set_space_before_token(!0):(a.type===e.EQUALS||a.type===e.VALUE&&a.previous.type===e.EQUALS)&&l.set_space_before_token(!1),a.type===e.ATTRIBUTE&&h.tag_start_char==="<"&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(l.traverse_whitespace(a),x=x||a.newlines!==0),this._is_wrap_attributes_force&&h.attr_count>=this._options.wrap_attributes_min_attrs&&(A.type!==e.TAG_OPEN||this._is_wrap_attributes_force_expand_multiline)&&(l.print_newline(!1),x=!0)),l.print_token(a),x=x||l.previous_token_wrapped(),h.has_wrapped_attrs=x),C},b.prototype._handle_text=function(l,a,h){var A={text:a.text,type:"TK_CONTENT"};return h.custom_beautifier_name?this._print_custom_beatifier_text(l,a,h):h.is_unformatted||h.is_content_unformatted?l.add_raw_token(a):(l.traverse_whitespace(a),l.print_token(a)),A},b.prototype._print_custom_beatifier_text=function(l,a,h){var A=this;if(a.text!==""){var x=a.text,C,g=1,w="",f="";h.custom_beautifier_name==="javascript"&&typeof this._js_beautify=="function"?C=this._js_beautify:h.custom_beautifier_name==="css"&&typeof this._css_beautify=="function"?C=this._css_beautify:h.custom_beautifier_name==="html"&&(C=function(M,z){var E=new b(M,z,A._js_beautify,A._css_beautify);return E.beautify()}),this._options.indent_scripts==="keep"?g=0:this._options.indent_scripts==="separate"&&(g=-l.indent_level);var O=l.get_full_indent(g);if(x=x.replace(/\n[ \t]*$/,""),h.custom_beautifier_name!=="html"&&x[0]==="<"&&x.match(/^(|]]>)$/.exec(x);if(!i){l.add_raw_token(a);return}w=O+i[1]+` `,x=i[4],i[5]&&(f=O+i[5]),x=x.replace(/\n[ \t]*$/,""),(i[2]||i[3].indexOf(` `)!==-1)&&(i=i[3].match(/[ \t]+$/),i&&(a.whitespace_before=i[0]))}if(x)if(C){var m=function(){this.eol=` `};m.prototype=this._options.raw_options;var y=new m;x=C(O+x,y)}else{var N=a.whitespace_before;N&&(x=x.replace(new RegExp(` (`+N+")?","g"),` `)),x=O+x.replace(/\n/g,` `+O)}w&&(x?x=w+x+` `+f:x=w+f),l.print_newline(!1),x&&(a.text=x,a.whitespace_before="",a.newlines=0,l.add_raw_token(a),l.print_newline(!0))}},b.prototype._handle_tag_open=function(l,a,h,A,x){var C=this._get_tag_open_token(a);if((h.is_unformatted||h.is_content_unformatted)&&!h.is_empty_element&&a.type===e.TAG_OPEN&&!C.is_start_tag?(l.add_raw_token(a),C.start_tag_token=this._tag_stack.try_pop(C.tag_name)):(l.traverse_whitespace(a),this._set_tag_position(l,a,C,h,A),C.is_inline_element||l.set_wrap_point(),l.print_token(a)),C.is_start_tag&&this._is_wrap_attributes_force){var g=0,w;do w=x.peek(g),w.type===e.ATTRIBUTE&&(C.attr_count+=1),g+=1;while(w.type!==e.EOF&&w.type!==e.TAG_CLOSE)}return(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(C.alignment_size=a.text.length+1),!C.tag_complete&&!C.is_unformatted&&(l.alignment_size=C.alignment_size),C};var S=function(l,a,h){if(this.parent=a||null,this.text="",this.type="TK_TAG_OPEN",this.tag_name="",this.is_inline_element=!1,this.is_unformatted=!1,this.is_content_unformatted=!1,this.is_empty_element=!1,this.is_start_tag=!1,this.is_end_tag=!1,this.indent_content=!1,this.multiline_content=!1,this.custom_beautifier_name=null,this.start_tag_token=null,this.attr_count=0,this.has_wrapped_attrs=!1,this.alignment_size=0,this.tag_complete=!1,this.tag_start_char="",this.tag_check="",!h)this.tag_complete=!0;else{var A;this.tag_start_char=h.text[0],this.text=h.text,this.tag_start_char==="<"?(A=h.text.match(/^<([^\s>]*)/),this.tag_check=A?A[1]:""):(A=h.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=A?A[1]:"",(h.text.startsWith("{{#>")||h.text.startsWith("{{~#>"))&&this.tag_check[0]===">"&&(this.tag_check===">"&&h.next!==null?this.tag_check=h.next.text.split(" ")[0]:this.tag_check=h.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),h.type===e.COMMENT&&(this.tag_complete=!0),this.is_start_tag=this.tag_check.charAt(0)!=="/",this.tag_name=this.is_start_tag?this.tag_check:this.tag_check.substr(1),this.is_end_tag=!this.is_start_tag||h.closed&&h.closed.text==="/>";var x=2;this.tag_start_char==="{"&&this.text.length>=3&&this.text.charAt(2)==="~"&&(x=3),this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(!l.indent_handlebars||this.text.length<3||/[^#\^]/.test(this.text.charAt(x)))}};b.prototype._get_tag_open_token=function(l){var a=new S(this._options,this._tag_stack.get_parser_token(),l);return a.alignment_size=this._options.wrap_attributes_indent_size,a.is_end_tag=a.is_end_tag||v(a.tag_check,this._options.void_elements),a.is_empty_element=a.tag_complete||a.is_start_tag&&a.is_end_tag,a.is_unformatted=!a.tag_complete&&v(a.tag_check,this._options.unformatted),a.is_content_unformatted=!a.is_empty_element&&v(a.tag_check,this._options.content_unformatted),a.is_inline_element=v(a.tag_name,this._options.inline)||this._options.inline_custom_elements&&a.tag_name.includes("-")||a.tag_start_char==="{",a},b.prototype._set_tag_position=function(l,a,h,A,x){if(h.is_empty_element||(h.is_end_tag?h.start_tag_token=this._tag_stack.try_pop(h.tag_name):(this._do_optional_end_element(h)&&(h.is_inline_element||l.print_newline(!1)),this._tag_stack.record_tag(h),(h.tag_name==="script"||h.tag_name==="style")&&!(h.is_unformatted||h.is_content_unformatted)&&(h.custom_beautifier_name=o(h.tag_check,a)))),v(h.tag_check,this._options.extra_liners)&&(l.print_newline(!1),l._output.just_added_blankline()||l.print_newline(!0)),h.is_empty_element){if(h.tag_start_char==="{"&&h.tag_check==="else"){this._tag_stack.indent_to_tag(["if","unless","each"]),h.indent_content=!0;var C=l.current_line_has_match(/{{#if/);C||l.print_newline(!1)}h.tag_name==="!--"&&x.type===e.TAG_CLOSE&&A.is_end_tag&&h.text.indexOf(` `)===-1||(h.is_inline_element||h.is_unformatted||l.print_newline(!1),this._calcluate_parent_multiline(l,h))}else if(h.is_end_tag){var g=!1;g=h.start_tag_token&&h.start_tag_token.multiline_content,g=g||!h.is_inline_element&&!(A.is_inline_element||A.is_unformatted)&&!(x.type===e.TAG_CLOSE&&h.start_tag_token===A)&&x.type!=="TK_CONTENT",(h.is_content_unformatted||h.is_unformatted)&&(g=!1),g&&l.print_newline(!1)}else h.indent_content=!h.custom_beautifier_name,h.tag_start_char==="<"&&(h.tag_name==="html"?h.indent_content=this._options.indent_inner_html:h.tag_name==="head"?h.indent_content=this._options.indent_head_inner_html:h.tag_name==="body"&&(h.indent_content=this._options.indent_body_inner_html)),!(h.is_inline_element||h.is_unformatted)&&(x.type!=="TK_CONTENT"||h.is_content_unformatted)&&l.print_newline(!1),this._calcluate_parent_multiline(l,h)},b.prototype._calcluate_parent_multiline=function(l,a){a.parent&&l._output.just_added_newline()&&!((a.is_inline_element||a.is_unformatted)&&a.parent.is_inline_element)&&(a.parent.multiline_content=!0)};var k=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","menu","nav","ol","p","pre","section","table","ul"],L=["a","audio","del","ins","map","noscript","video"];return b.prototype._do_optional_end_element=function(l){var a=null;if(!(l.is_empty_element||!l.is_start_tag||!l.parent)){if(l.tag_name==="body")a=a||this._tag_stack.try_pop("head");else if(l.tag_name==="li")a=a||this._tag_stack.try_pop("li",["ol","ul","menu"]);else if(l.tag_name==="dd"||l.tag_name==="dt")a=a||this._tag_stack.try_pop("dt",["dl"]),a=a||this._tag_stack.try_pop("dd",["dl"]);else if(l.parent.tag_name==="p"&&k.indexOf(l.tag_name)!==-1){var h=l.parent.parent;(!h||L.indexOf(h.tag_name)===-1)&&(a=a||this._tag_stack.try_pop("p"))}else l.tag_name==="rp"||l.tag_name==="rt"?(a=a||this._tag_stack.try_pop("rt",["ruby","rtc"]),a=a||this._tag_stack.try_pop("rp",["ruby","rtc"])):l.tag_name==="optgroup"?a=a||this._tag_stack.try_pop("optgroup",["select"]):l.tag_name==="option"?a=a||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):l.tag_name==="colgroup"?a=a||this._tag_stack.try_pop("caption",["table"]):l.tag_name==="thead"?(a=a||this._tag_stack.try_pop("caption",["table"]),a=a||this._tag_stack.try_pop("colgroup",["table"])):l.tag_name==="tbody"||l.tag_name==="tfoot"?(a=a||this._tag_stack.try_pop("caption",["table"]),a=a||this._tag_stack.try_pop("colgroup",["table"]),a=a||this._tag_stack.try_pop("thead",["table"]),a=a||this._tag_stack.try_pop("tbody",["table"])):l.tag_name==="tr"?(a=a||this._tag_stack.try_pop("caption",["table"]),a=a||this._tag_stack.try_pop("colgroup",["table"]),a=a||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(l.tag_name==="th"||l.tag_name==="td")&&(a=a||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),a=a||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return l.parent=this._tag_stack.get_parser_token(),a}},Pt.Beautifier=b,Pt}var pe;function ii(){if(pe)return pt.exports;pe=1;var t=ei().Beautifier,u=xe().Options;function r(e,n,_,p){var s=new t(e,n,_,p);return s.beautify()}return pt.exports=r,pt.exports.defaultOptions=function(){return new u},pt.exports}var he;function si(){if(he)return it;he=1;var t=Ye(),u=ti(),r=ii();function e(n,_,p,s){return p=p||t,s=s||u,r(n,_,p,s)}return e.defaultOptions=r.defaultOptions,it.js=t,it.css=u,it.html=e,it}var fe;function ni(){return fe||(fe=1,(function(t){function u(r,e,n){var _=function(p,s){return r.js_beautify(p,s)};return _.js=r.js_beautify,_.css=e.css_beautify,_.html=n.html_beautify,_.js_beautify=r.js_beautify,_.css_beautify=e.css_beautify,_.html_beautify=n.html_beautify,_}(function(r){var e=si();e.js_beautify=e.js,e.css_beautify=e.css,e.html_beautify=e.html,r.exports=u(e,e,e)})(t)})(yt)),yt.exports}var ai=ni();const ri=ge(ai),H=[];function _i(){H.length===0&&H.push({layout:"colFormItem",tagIcon:"input",label:"手机号",vModel:"mobile",formId:6,tag:"el-input",placeholder:"请输入手机号",defaultValue:"",span:24,style:{width:"100%"},clearable:!0,prepend:"",append:"","prefix-icon":"Cellphone","suffix-icon":"",maxlength:11,"show-word-limit":!0,readonly:!1,disabled:!1,required:!0,changeTag:!0,regList:[{pattern:"/^1(3|4|5|7|8|9)\\d{9}$/",message:"手机号格式错误"}]})}function oi(){H.splice(0,H.length)}let gt,bt;function ui(t){return` ${t} `}function li(t){return``}function pi(t){return`