UNPKG

word-ability

Version:

一款文本标注,全文查找,替换的插件,基于vue

62 lines 162 kB
(function(e,t){typeof exports=="object"&&typeof module<"u"?t(exports):typeof define=="function"&&define.amd?define(["exports"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e["word-ability"]={}))})(this,function(exports){"use strict";var V=Object.defineProperty;var j=(e,t,i)=>t in e?V(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;var L=(e,t,i)=>(j(e,typeof t!="symbol"?t+"":t,i),i);/**
* @vue/shared v3.4.27
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**//*! #__NO_SIDE_EFFECTS__ */function makeMap(e,t){const i=new Set(e.split(","));return s=>i.has(s)}const EMPTY_OBJ=process.env.NODE_ENV!=="production"?Object.freeze({}):{};process.env.NODE_ENV!=="production"&&Object.freeze([]);const NOOP=()=>{},isOn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),extend=Object.assign,hasOwnProperty$1=Object.prototype.hasOwnProperty,hasOwn$1=(e,t)=>hasOwnProperty$1.call(e,t),isArray=Array.isArray,isMap=e=>toTypeString(e)==="[object Map]",isSet=e=>toTypeString(e)==="[object Set]",isFunction=e=>typeof e=="function",isString=e=>typeof e=="string",isSymbol=e=>typeof e=="symbol",isObject=e=>e!==null&&typeof e=="object",isPromise=e=>(isObject(e)||isFunction(e))&&isFunction(e.then)&&isFunction(e.catch),objectToString=Object.prototype.toString,toTypeString=e=>objectToString.call(e),toRawType=e=>toTypeString(e).slice(8,-1),isPlainObject=e=>toTypeString(e)==="[object Object]",isIntegerKey=e=>isString(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,cacheStringFunction=e=>{const t=Object.create(null);return i=>t[i]||(t[i]=e(i))},capitalize=cacheStringFunction(e=>e.charAt(0).toUpperCase()+e.slice(1)),hasChanged=(e,t)=>!Object.is(e,t),def=(e,t,i,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:i})};let _globalThis;const getGlobalThis=()=>_globalThis||(_globalThis=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function normalizeStyle(e){if(isArray(e)){const t={};for(let i=0;i<e.length;i++){const s=e[i],n=isString(s)?parseStringStyle(s):normalizeStyle(s);if(n)for(const r in n)t[r]=n[r]}return t}else if(isString(e)||isObject(e))return e}const listDelimiterRE=/;(?![^(]*\))/g,propertyDelimiterRE=/:([^]+)/,styleCommentRE=/\/\*[^]*?\*\//g;function parseStringStyle(e){const t={};return e.replace(styleCommentRE,"").split(listDelimiterRE).forEach(i=>{if(i){const s=i.split(propertyDelimiterRE);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function normalizeClass(e){let t="";if(isString(e))t=e;else if(isArray(e))for(let i=0;i<e.length;i++){const s=normalizeClass(e[i]);s&&(t+=s+" ")}else if(isObject(e))for(const i in e)e[i]&&(t+=i+" ");return t.trim()}/**
* @vue/reactivity v3.4.27
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function warn(e,...t){console.warn(`[Vue warn] ${e}`,...t)}let activeEffectScope;function recordEffectScope(e,t=activeEffectScope){t&&t.active&&t.effects.push(e)}let activeEffect;class ReactiveEffect{constructor(t,i,s,n){this.fn=t,this.trigger=i,this.scheduler=s,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,recordEffectScope(this,n)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,pauseTracking();for(let t=0;t<this._depsLength;t++){const i=this.deps[t];if(i.computed&&(triggerComputed(i.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),resetTracking()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=shouldTrack,i=activeEffect;try{return shouldTrack=!0,activeEffect=this,this._runnings++,preCleanupEffect(this),this.fn()}finally{postCleanupEffect(this),this._runnings--,activeEffect=i,shouldTrack=t}}stop(){this.active&&(preCleanupEffect(this),postCleanupEffect(this),this.onStop&&this.onStop(),this.active=!1)}}function triggerComputed(e){return e.value}function preCleanupEffect(e){e._trackId++,e._depsLength=0}function postCleanupEffect(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)cleanupDepEffect(e.deps[t],e);e.deps.length=e._depsLength}}function cleanupDepEffect(e,t){const i=e.get(t);i!==void 0&&t._trackId!==i&&(e.delete(t),e.size===0&&e.cleanup())}let shouldTrack=!0,pauseScheduleStack=0;const trackStack=[];function pauseTracking(){trackStack.push(shouldTrack),shouldTrack=!1}function resetTracking(){const e=trackStack.pop();shouldTrack=e===void 0?!0:e}function pauseScheduling(){pauseScheduleStack++}function resetScheduling(){for(pauseScheduleStack--;!pauseScheduleStack&&queueEffectSchedulers.length;)queueEffectSchedulers.shift()()}function trackEffect(e,t,i){var s;if(t.get(e)!==e._trackId){t.set(e,e._trackId);const n=e.deps[e._depsLength];n!==t?(n&&cleanupDepEffect(n,e),e.deps[e._depsLength++]=t):e._depsLength++,process.env.NODE_ENV!=="production"&&((s=e.onTrack)==null||s.call(e,extend({effect:e},i)))}}const queueEffectSchedulers=[];function triggerEffects(e,t,i){var s;pauseScheduling();for(const n of e.keys()){let r;n._dirtyLevel<t&&(r??(r=e.get(n)===n._trackId))&&(n._shouldSchedule||(n._shouldSchedule=n._dirtyLevel===0),n._dirtyLevel=t),n._shouldSchedule&&(r??(r=e.get(n)===n._trackId))&&(process.env.NODE_ENV!=="production"&&((s=n.onTrigger)==null||s.call(n,extend({effect:n},i))),n.trigger(),(!n._runnings||n.allowRecurse)&&n._dirtyLevel!==2&&(n._shouldSchedule=!1,n.scheduler&&queueEffectSchedulers.push(n.scheduler)))}resetScheduling()}const createDep=(e,t)=>{const i=new Map;return i.cleanup=e,i.computed=t,i},targetMap=new WeakMap,ITERATE_KEY=Symbol(process.env.NODE_ENV!=="production"?"iterate":""),MAP_KEY_ITERATE_KEY=Symbol(process.env.NODE_ENV!=="production"?"Map key iterate":"");function track(e,t,i){if(shouldTrack&&activeEffect){let s=targetMap.get(e);s||targetMap.set(e,s=new Map);let n=s.get(i);n||s.set(i,n=createDep(()=>s.delete(i))),trackEffect(activeEffect,n,process.env.NODE_ENV!=="production"?{target:e,type:t,key:i}:void 0)}}function trigger(e,t,i,s,n,r){const u=targetMap.get(e);if(!u)return;let _=[];if(t==="clear")_=[...u.values()];else if(i==="length"&&isArray(e)){const l=Number(s);u.forEach((b,g)=>{(g==="length"||!isSymbol(g)&&g>=l)&&_.push(b)})}else switch(i!==void 0&&_.push(u.get(i)),t){case"add":isArray(e)?isIntegerKey(i)&&_.push(u.get("length")):(_.push(u.get(ITERATE_KEY)),isMap(e)&&_.push(u.get(MAP_KEY_ITERATE_KEY)));break;case"delete":isArray(e)||(_.push(u.get(ITERATE_KEY)),isMap(e)&&_.push(u.get(MAP_KEY_ITERATE_KEY)));break;case"set":isMap(e)&&_.push(u.get(ITERATE_KEY));break}pauseScheduling();for(const l of _)l&&triggerEffects(l,4,process.env.NODE_ENV!=="production"?{target:e,type:t,key:i,newValue:s,oldValue:n,oldTarget:r}:void 0);resetScheduling()}const isNonTrackableKeys=makeMap("__proto__,__v_isRef,__isVue"),builtInSymbols=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(isSymbol)),arrayInstrumentations=createArrayInstrumentations();function createArrayInstrumentations(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...i){const s=toRaw(this);for(let r=0,u=this.length;r<u;r++)track(s,"get",r+"");const n=s[t](...i);return n===-1||n===!1?s[t](...i.map(toRaw)):n}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...i){pauseTracking(),pauseScheduling();const s=toRaw(this)[t].apply(this,i);return resetScheduling(),resetTracking(),s}}),e}function hasOwnProperty(e){isSymbol(e)||(e=String(e));const t=toRaw(this);return track(t,"has",e),t.hasOwnProperty(e)}class BaseReactiveHandler{constructor(t=!1,i=!1){this._isReadonly=t,this._isShallow=i}get(t,i,s){const n=this._isReadonly,r=this._isShallow;if(i==="__v_isReactive")return!n;if(i==="__v_isReadonly")return n;if(i==="__v_isShallow")return r;if(i==="__v_raw")return s===(n?r?shallowReadonlyMap:readonlyMap:r?shallowReactiveMap:reactiveMap).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const u=isArray(t);if(!n){if(u&&hasOwn$1(arrayInstrumentations,i))return Reflect.get(arrayInstrumentations,i,s);if(i==="hasOwnProperty")return hasOwnProperty}const _=Reflect.get(t,i,s);return(isSymbol(i)?builtInSymbols.has(i):isNonTrackableKeys(i))||(n||track(t,"get",i),r)?_:isRef(_)?u&&isIntegerKey(i)?_:_.value:isObject(_)?n?readonly(_):reactive(_):_}}class MutableReactiveHandler extends BaseReactiveHandler{constructor(t=!1){super(!1,t)}set(t,i,s,n){let r=t[i];if(!this._isShallow){const l=isReadonly(r);if(!isShallow(s)&&!isReadonly(s)&&(r=toRaw(r),s=toRaw(s)),!isArray(t)&&isRef(r)&&!isRef(s))return l?!1:(r.value=s,!0)}const u=isArray(t)&&isIntegerKey(i)?Number(i)<t.length:hasOwn$1(t,i),_=Reflect.set(t,i,s,n);return t===toRaw(n)&&(u?hasChanged(s,r)&&trigger(t,"set",i,s,r):trigger(t,"add",i,s)),_}deleteProperty(t,i){const s=hasOwn$1(t,i),n=t[i],r=Reflect.deleteProperty(t,i);return r&&s&&trigger(t,"delete",i,void 0,n),r}has(t,i){const s=Reflect.has(t,i);return(!isSymbol(i)||!builtInSymbols.has(i))&&track(t,"has",i),s}ownKeys(t){return track(t,"iterate",isArray(t)?"length":ITERATE_KEY),Reflect.ownKeys(t)}}class ReadonlyReactiveHandler extends BaseReactiveHandler{constructor(t=!1){super(!0,t)}set(t,i){return process.env.NODE_ENV!=="production"&&warn(`Set operation on key "${String(i)}" failed: target is readonly.`,t),!0}deleteProperty(t,i){return process.env.NODE_ENV!=="production"&&warn(`Delete operation on key "${String(i)}" failed: target is readonly.`,t),!0}}const mutableHandlers=new MutableReactiveHandler,readonlyHandlers=new ReadonlyReactiveHandler,shallowReadonlyHandlers=new ReadonlyReactiveHandler(!0),toShallow=e=>e,getProto=e=>Reflect.getPrototypeOf(e);function get(e,t,i=!1,s=!1){e=e.__v_raw;const n=toRaw(e),r=toRaw(t);i||(hasChanged(t,r)&&track(n,"get",t),track(n,"get",r));const{has:u}=getProto(n),_=s?toShallow:i?toReadonly:toReactive;if(u.call(n,t))return _(e.get(t));if(u.call(n,r))return _(e.get(r));e!==n&&e.get(t)}function has(e,t=!1){const i=this.__v_raw,s=toRaw(i),n=toRaw(e);return t||(hasChanged(e,n)&&track(s,"has",e),track(s,"has",n)),e===n?i.has(e):i.has(e)||i.has(n)}function size(e,t=!1){return e=e.__v_raw,!t&&track(toRaw(e),"iterate",ITERATE_KEY),Reflect.get(e,"size",e)}function add(e){e=toRaw(e);const t=toRaw(this);return getProto(t).has.call(t,e)||(t.add(e),trigger(t,"add",e,e)),this}function set(e,t){t=toRaw(t);const i=toRaw(this),{has:s,get:n}=getProto(i);let r=s.call(i,e);r?process.env.NODE_ENV!=="production"&&checkIdentityKeys(i,s,e):(e=toRaw(e),r=s.call(i,e));const u=n.call(i,e);return i.set(e,t),r?hasChanged(t,u)&&trigger(i,"set",e,t,u):trigger(i,"add",e,t),this}function deleteEntry(e){const t=toRaw(this),{has:i,get:s}=getProto(t);let n=i.call(t,e);n?process.env.NODE_ENV!=="production"&&checkIdentityKeys(t,i,e):(e=toRaw(e),n=i.call(t,e));const r=s?s.call(t,e):void 0,u=t.delete(e);return n&&trigger(t,"delete",e,void 0,r),u}function clear(){const e=toRaw(this),t=e.size!==0,i=process.env.NODE_ENV!=="production"?isMap(e)?new Map(e):new Set(e):void 0,s=e.clear();return t&&trigger(e,"clear",void 0,void 0,i),s}function createForEach(e,t){return function(s,n){const r=this,u=r.__v_raw,_=toRaw(u),l=t?toShallow:e?toReadonly:toReactive;return!e&&track(_,"iterate",ITERATE_KEY),u.forEach((b,g)=>s.call(n,l(b),l(g),r))}}function createIterableMethod(e,t,i){return function(...s){const n=this.__v_raw,r=toRaw(n),u=isMap(r),_=e==="entries"||e===Symbol.iterator&&u,l=e==="keys"&&u,b=n[e](...s),g=i?toShallow:t?toReadonly:toReactive;return!t&&track(r,"iterate",l?MAP_KEY_ITERATE_KEY:ITERATE_KEY),{next(){const{value:p,done:m}=b.next();return m?{value:p,done:m}:{value:_?[g(p[0]),g(p[1])]:g(p),done:m}},[Symbol.iterator](){return this}}}}function createReadonlyMethod(e){return function(...t){if(process.env.NODE_ENV!=="production"){const i=t[0]?`on key "${t[0]}" `:"";warn(`${capitalize(e)} operation ${i}failed: target is readonly.`,toRaw(this))}return e==="delete"?!1:e==="clear"?void 0:this}}function createInstrumentations(){const e={get(r){return get(this,r)},get size(){return size(this)},has,add,set,delete:deleteEntry,clear,forEach:createForEach(!1,!1)},t={get(r){return get(this,r,!1,!0)},get size(){return size(this)},has,add,set,delete:deleteEntry,clear,forEach:createForEach(!1,!0)},i={get(r){return get(this,r,!0)},get size(){return size(this,!0)},has(r){return has.call(this,r,!0)},add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear"),forEach:createForEach(!0,!1)},s={get(r){return get(this,r,!0,!0)},get size(){return size(this,!0)},has(r){return has.call(this,r,!0)},add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear"),forEach:createForEach(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{e[r]=createIterableMethod(r,!1,!1),i[r]=createIterableMethod(r,!0,!1),t[r]=createIterableMethod(r,!1,!0),s[r]=createIterableMethod(r,!0,!0)}),[e,i,t,s]}const[mutableInstrumentations,readonlyInstrumentations,shallowInstrumentations,shallowReadonlyInstrumentations]=createInstrumentations();function createInstrumentationGetter(e,t){const i=t?e?shallowReadonlyInstrumentations:shallowInstrumentations:e?readonlyInstrumentations:mutableInstrumentations;return(s,n,r)=>n==="__v_isReactive"?!e:n==="__v_isReadonly"?e:n==="__v_raw"?s:Reflect.get(hasOwn$1(i,n)&&n in s?i:s,n,r)}const mutableCollectionHandlers={get:createInstrumentationGetter(!1,!1)},readonlyCollectionHandlers={get:createInstrumentationGetter(!0,!1)},shallowReadonlyCollectionHandlers={get:createInstrumentationGetter(!0,!0)};function checkIdentityKeys(e,t,i){const s=toRaw(i);if(s!==i&&t.call(e,s)){const n=toRawType(e);warn(`Reactive ${n} contains both the raw and reactive versions of the same object${n==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}const reactiveMap=new WeakMap,shallowReactiveMap=new WeakMap,readonlyMap=new WeakMap,shallowReadonlyMap=new WeakMap;function targetTypeMap(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function getTargetType(e){return e.__v_skip||!Object.isExtensible(e)?0:targetTypeMap(toRawType(e))}function reactive(e){return isReadonly(e)?e:createReactiveObject(e,!1,mutableHandlers,mutableCollectionHandlers,reactiveMap)}function readonly(e){return createReactiveObject(e,!0,readonlyHandlers,readonlyCollectionHandlers,readonlyMap)}function shallowReadonly(e){return createReactiveObject(e,!0,shallowReadonlyHandlers,shallowReadonlyCollectionHandlers,shallowReadonlyMap)}function createReactiveObject(e,t,i,s,n){if(!isObject(e))return process.env.NODE_ENV!=="production"&&warn(`value cannot be made reactive: ${String(e)}`),e;if(e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=n.get(e);if(r)return r;const u=getTargetType(e);if(u===0)return e;const _=new Proxy(e,u===2?s:i);return n.set(e,_),_}function isReactive(e){return isReadonly(e)?isReactive(e.__v_raw):!!(e&&e.__v_isReactive)}function isReadonly(e){return!!(e&&e.__v_isReadonly)}function isShallow(e){return!!(e&&e.__v_isShallow)}function isProxy(e){return e?!!e.__v_raw:!1}function toRaw(e){const t=e&&e.__v_raw;return t?toRaw(t):e}function markRaw(e){return Object.isExtensible(e)&&def(e,"__v_skip",!0),e}const toReactive=e=>isObject(e)?reactive(e):e,toReadonly=e=>isObject(e)?readonly(e):e,COMPUTED_SIDE_EFFECT_WARN="Computed is still dirty after getter evaluation, likely because a computed is mutating its own dependency in its getter. State mutations in computed getters should be avoided.  Check the docs for more details: https://vuejs.org/guide/essentials/computed.html#getters-should-be-side-effect-free";class ComputedRefImpl{constructor(t,i,s,n){this.getter=t,this._setter=i,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new ReactiveEffect(()=>t(this._value),()=>triggerRefValue(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!n,this.__v_isReadonly=s}get value(){const t=toRaw(this);return(!t._cacheable||t.effect.dirty)&&hasChanged(t._value,t._value=t.effect.run())&&triggerRefValue(t,4),trackRefValue(t),t.effect._dirtyLevel>=2&&(process.env.NODE_ENV!=="production"&&this._warnRecursive&&warn(COMPUTED_SIDE_EFFECT_WARN,`

getter: `,this.getter),triggerRefValue(t,2)),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function computed$1(e,t,i=!1){let s,n;const r=isFunction(e);r?(s=e,n=process.env.NODE_ENV!=="production"?()=>{warn("Write operation failed: computed value is readonly")}:NOOP):(s=e.get,n=e.set);const u=new ComputedRefImpl(s,n,r||!n,i);return process.env.NODE_ENV!=="production"&&t&&!i&&(u.effect.onTrack=t.onTrack,u.effect.onTrigger=t.onTrigger),u}function trackRefValue(e){var t;shouldTrack&&activeEffect&&(e=toRaw(e),trackEffect(activeEffect,(t=e.dep)!=null?t:e.dep=createDep(()=>e.dep=void 0,e instanceof ComputedRefImpl?e:void 0),process.env.NODE_ENV!=="production"?{target:e,type:"get",key:"value"}:void 0))}function triggerRefValue(e,t=4,i){e=toRaw(e);const s=e.dep;s&&triggerEffects(s,t,process.env.NODE_ENV!=="production"?{target:e,type:"set",key:"value",newValue:i}:void 0)}function isRef(e){return!!(e&&e.__v_isRef===!0)}function ref(e){return createRef(e,!1)}function createRef(e,t){return isRef(e)?e:new RefImpl(e,t)}class RefImpl{constructor(t,i){this.__v_isShallow=i,this.dep=void 0,this.__v_isRef=!0,this._rawValue=i?t:toRaw(t),this._value=i?t:toReactive(t)}get value(){return trackRefValue(this),this._value}set value(t){const i=this.__v_isShallow||isShallow(t)||isReadonly(t);t=i?t:toRaw(t),hasChanged(t,this._rawValue)&&(this._rawValue=t,this._value=i?t:toReactive(t),triggerRefValue(this,4,t))}}function unref(e){return isRef(e)?e.value:e}const shallowUnwrapHandlers={get:(e,t,i)=>unref(Reflect.get(e,t,i)),set:(e,t,i,s)=>{const n=e[t];return isRef(n)&&!isRef(i)?(n.value=i,!0):Reflect.set(e,t,i,s)}};function proxyRefs(e){return isReactive(e)?e:new Proxy(e,shallowUnwrapHandlers)}/**
* @vue/runtime-core v3.4.27
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/const stack=[];function pushWarningContext(e){stack.push(e)}function popWarningContext(){stack.pop()}function warn$1(e,...t){pauseTracking();const i=stack.length?stack[stack.length-1].component:null,s=i&&i.appContext.config.warnHandler,n=getComponentTrace();if(s)callWithErrorHandling(s,i,11,[e+t.map(r=>{var u,_;return(_=(u=r.toString)==null?void 0:u.call(r))!=null?_:JSON.stringify(r)}).join(""),i&&i.proxy,n.map(({vnode:r})=>`at <${formatComponentName(i,r.type)}>`).join(`
`),n]);else{const r=[`[Vue warn]: ${e}`,...t];n.length&&r.push(`
`,...formatTrace(n)),console.warn(...r)}resetTracking()}function getComponentTrace(){let e=stack[stack.length-1];if(!e)return[];const t=[];for(;e;){const i=t[0];i&&i.vnode===e?i.recurseCount++:t.push({vnode:e,recurseCount:0});const s=e.component&&e.component.parent;e=s&&s.vnode}return t}function formatTrace(e){const t=[];return e.forEach((i,s)=>{t.push(...s===0?[]:[`
`],...formatTraceEntry(i))}),t}function formatTraceEntry({vnode:e,recurseCount:t}){const i=t>0?`... (${t} recursive calls)`:"",s=e.component?e.component.parent==null:!1,n=` at <${formatComponentName(e.component,e.type,s)}`,r=">"+i;return e.props?[n,...formatProps(e.props),r]:[n+r]}function formatProps(e){const t=[],i=Object.keys(e);return i.slice(0,3).forEach(s=>{t.push(...formatProp(s,e[s]))}),i.length>3&&t.push(" ..."),t}function formatProp(e,t,i){return isString(t)?(t=JSON.stringify(t),i?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?i?t:[`${e}=${t}`]:isRef(t)?(t=formatProp(e,toRaw(t.value),!0),i?t:[`${e}=Ref<`,t,">"]):isFunction(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=toRaw(t),i?t:[`${e}=`,t])}const ErrorTypeStrings$1={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://github.com/vuejs/core ."};function callWithErrorHandling(e,t,i,s){try{return s?e(...s):e()}catch(n){handleError(n,t,i)}}function callWithAsyncErrorHandling(e,t,i,s){if(isFunction(e)){const n=callWithErrorHandling(e,t,i,s);return n&&isPromise(n)&&n.catch(r=>{handleError(r,t,i)}),n}if(isArray(e)){const n=[];for(let r=0;r<e.length;r++)n.push(callWithAsyncErrorHandling(e[r],t,i,s));return n}else process.env.NODE_ENV!=="production"&&warn$1(`Invalid value type passed to callWithAsyncErrorHandling(): ${typeof e}`)}function handleError(e,t,i,s=!0){const n=t?t.vnode:null;if(t){let r=t.parent;const u=t.proxy,_=process.env.NODE_ENV!=="production"?ErrorTypeStrings$1[i]:`https://vuejs.org/error-reference/#runtime-${i}`;for(;r;){const b=r.ec;if(b){for(let g=0;g<b.length;g++)if(b[g](e,u,_)===!1)return}r=r.parent}const l=t.appContext.config.errorHandler;if(l){pauseTracking(),callWithErrorHandling(l,null,10,[e,u,_]),resetTracking();return}}logError(e,i,n,s)}function logError(e,t,i,s=!0){if(process.env.NODE_ENV!=="production"){const n=ErrorTypeStrings$1[t];if(i&&pushWarningContext(i),warn$1(`Unhandled error${n?` during execution of ${n}`:""}`),i&&popWarningContext(),s)throw e;console.error(e)}else console.error(e)}let isFlushing=!1,isFlushPending=!1;const queue=[];let flushIndex=0;const pendingPostFlushCbs=[];let activePostFlushCbs=null,postFlushIndex=0;const resolvedPromise=Promise.resolve();let currentFlushPromise=null;const RECURSION_LIMIT=100;function nextTick(e){const t=currentFlushPromise||resolvedPromise;return e?t.then(this?e.bind(this):e):t}function findInsertionIndex(e){let t=flushIndex+1,i=queue.length;for(;t<i;){const s=t+i>>>1,n=queue[s],r=getId(n);r<e||r===e&&n.pre?t=s+1:i=s}return t}function queueJob(e){(!queue.length||!queue.includes(e,isFlushing&&e.allowRecurse?flushIndex+1:flushIndex))&&(e.id==null?queue.push(e):queue.splice(findInsertionIndex(e.id),0,e),queueFlush())}function queueFlush(){!isFlushing&&!isFlushPending&&(isFlushPending=!0,currentFlushPromise=resolvedPromise.then(flushJobs))}function queuePostFlushCb(e){isArray(e)?pendingPostFlushCbs.push(...e):(!activePostFlushCbs||!activePostFlushCbs.includes(e,e.allowRecurse?postFlushIndex+1:postFlushIndex))&&pendingPostFlushCbs.push(e),queueFlush()}function flushPostFlushCbs(e){if(pendingPostFlushCbs.length){const t=[...new Set(pendingPostFlushCbs)].sort((i,s)=>getId(i)-getId(s));if(pendingPostFlushCbs.length=0,activePostFlushCbs){activePostFlushCbs.push(...t);return}for(activePostFlushCbs=t,process.env.NODE_ENV!=="production"&&(e=e||new Map),postFlushIndex=0;postFlushIndex<activePostFlushCbs.length;postFlushIndex++)process.env.NODE_ENV!=="production"&&checkRecursiveUpdates(e,activePostFlushCbs[postFlushIndex])||activePostFlushCbs[postFlushIndex]();activePostFlushCbs=null,postFlushIndex=0}}const getId=e=>e.id==null?1/0:e.id,comparator=(e,t)=>{const i=getId(e)-getId(t);if(i===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return i};function flushJobs(e){isFlushPending=!1,isFlushing=!0,process.env.NODE_ENV!=="production"&&(e=e||new Map),queue.sort(comparator);const t=process.env.NODE_ENV!=="production"?i=>checkRecursiveUpdates(e,i):NOOP;try{for(flushIndex=0;flushIndex<queue.length;flushIndex++){const i=queue[flushIndex];if(i&&i.active!==!1){if(process.env.NODE_ENV!=="production"&&t(i))continue;callWithErrorHandling(i,null,14)}}}finally{flushIndex=0,queue.length=0,flushPostFlushCbs(e),isFlushing=!1,currentFlushPromise=null,(queue.length||pendingPostFlushCbs.length)&&flushJobs(e)}}function checkRecursiveUpdates(e,t){if(!e.has(t))e.set(t,1);else{const i=e.get(t);if(i>RECURSION_LIMIT){const s=t.ownerInstance,n=s&&getComponentName(s.type);return handleError(`Maximum recursive updates exceeded${n?` in component <${n}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,null,10),!0}else e.set(t,i+1)}}const hmrDirtyComponents=new Set;process.env.NODE_ENV!=="production"&&(getGlobalThis().__VUE_HMR_RUNTIME__={createRecord:tryWrap(createRecord),rerender:tryWrap(rerender),reload:tryWrap(reload)});const map=new Map;function createRecord(e,t){return map.has(e)?!1:(map.set(e,{initialDef:normalizeClassComponent(t),instances:new Set}),!0)}function normalizeClassComponent(e){return isClassComponent(e)?e.__vccOpts:e}function rerender(e,t){const i=map.get(e);i&&(i.initialDef.render=t,[...i.instances].forEach(s=>{t&&(s.render=t,normalizeClassComponent(s.type).render=t),s.renderCache=[],s.effect.dirty=!0,s.update()}))}function reload(e,t){const i=map.get(e);if(!i)return;t=normalizeClassComponent(t),updateComponentDef(i.initialDef,t);const s=[...i.instances];for(const n of s){const r=normalizeClassComponent(n.type);hmrDirtyComponents.has(r)||(r!==i.initialDef&&updateComponentDef(r,t),hmrDirtyComponents.add(r)),n.appContext.propsCache.delete(n.type),n.appContext.emitsCache.delete(n.type),n.appContext.optionsCache.delete(n.type),n.ceReload?(hmrDirtyComponents.add(r),n.ceReload(t.styles),hmrDirtyComponents.delete(r)):n.parent?(n.parent.effect.dirty=!0,queueJob(n.parent.update)):n.appContext.reload?n.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required.")}queuePostFlushCb(()=>{for(const n of s)hmrDirtyComponents.delete(normalizeClassComponent(n.type))})}function updateComponentDef(e,t){extend(e,t);for(const i in e)i!=="__file"&&!(i in t)&&delete e[i]}function tryWrap(e){return(t,i)=>{try{return e(t,i)}catch(s){console.error(s),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let devtools$1,buffer=[];function setDevtoolsHook$1(e,t){var i,s;devtools$1=e,devtools$1?(devtools$1.enabled=!0,buffer.forEach(({event:n,args:r})=>devtools$1.emit(n,...r)),buffer=[]):typeof window<"u"&&window.HTMLElement&&!((s=(i=window.navigator)==null?void 0:i.userAgent)!=null&&s.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(r=>{setDevtoolsHook$1(r,t)}),setTimeout(()=>{devtools$1||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,buffer=[])},3e3)):buffer=[]}let currentRenderingInstance=null,currentScopeId=null;function markAttrsAccessed(){}const NULL_DYNAMIC_COMPONENT=Symbol.for("v-ndc"),isSuspense=e=>e.__isSuspense;function queueEffectWithSuspense(e,t){t&&t.pendingBranch?isArray(e)?t.effects.push(...e):t.effects.push(e):queuePostFlushCb(e)}const ssrContextKey=Symbol.for("v-scx"),useSSRContext=()=>{{const e=inject(ssrContextKey);return e||process.env.NODE_ENV!=="production"&&warn$1("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),e}},INITIAL_WATCHER_VALUE={};function doWatch(e,t,{immediate:i,deep:s,flush:n,once:r,onTrack:u,onTrigger:_}=EMPTY_OBJ){if(t&&r){const c=t;t=(...y)=>{c(...y),S()}}process.env.NODE_ENV!=="production"&&s!==void 0&&typeof s=="number"&&warn$1('watch() "deep" option with number value will be used as watch depth in future versions. Please use a boolean instead to avoid potential breakage.'),process.env.NODE_ENV!=="production"&&!t&&(i!==void 0&&warn$1('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),s!==void 0&&warn$1('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'),r!==void 0&&warn$1('watch() "once" option is only respected when using the watch(source, callback, options?) signature.'));const l=c=>{warn$1("Invalid watch source: ",c,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},b=currentInstance,g=c=>s===!0?c:traverse(c,s===!1?1:void 0);let p,m=!1,O=!1;if(isRef(e)?(p=()=>e.value,m=isShallow(e)):isReactive(e)?(p=()=>g(e),m=!0):isArray(e)?(O=!0,m=e.some(c=>isReactive(c)||isShallow(c)),p=()=>e.map(c=>{if(isRef(c))return c.value;if(isReactive(c))return g(c);if(isFunction(c))return callWithErrorHandling(c,b,2);process.env.NODE_ENV!=="production"&&l(c)})):isFunction(e)?t?p=()=>callWithErrorHandling(e,b,2):p=()=>(R&&R(),callWithAsyncErrorHandling(e,b,3,[k])):(p=NOOP,process.env.NODE_ENV!=="production"&&l(e)),t&&s){const c=p;p=()=>traverse(c())}let R,k=c=>{R=E.onStop=()=>{callWithErrorHandling(c,b,4),R=E.onStop=void 0}},h;if(isInSSRComponentSetup)if(k=NOOP,t?i&&callWithAsyncErrorHandling(t,b,3,[p(),O?[]:void 0,k]):p(),n==="sync"){const c=useSSRContext();h=c.__watcherHandles||(c.__watcherHandles=[])}else return NOOP;let o=O?new Array(e.length).fill(INITIAL_WATCHER_VALUE):INITIAL_WATCHER_VALUE;const f=()=>{if(!(!E.active||!E.dirty))if(t){const c=E.run();(s||m||(O?c.some((y,d)=>hasChanged(y,o[d])):hasChanged(c,o)))&&(R&&R(),callWithAsyncErrorHandling(t,b,3,[c,o===INITIAL_WATCHER_VALUE?void 0:O&&o[0]===INITIAL_WATCHER_VALUE?[]:o,k]),o=c)}else E.run()};f.allowRecurse=!!t;let T;n==="sync"?T=f:n==="post"?T=()=>queuePostRenderEffect(f,b&&b.suspense):(f.pre=!0,b&&(f.id=b.uid),T=()=>queueJob(f));const E=new ReactiveEffect(p,NOOP,T),S=()=>{E.stop()};return process.env.NODE_ENV!=="production"&&(E.onTrack=u,E.onTrigger=_),t?i?f():o=E.run():n==="post"?queuePostRenderEffect(E.run.bind(E),b&&b.suspense):E.run(),h&&h.push(S),S}function instanceWatch(e,t,i){const s=this.proxy,n=isString(e)?e.includes(".")?createPathGetter(s,e):()=>s[e]:e.bind(s,s);let r;isFunction(t)?r=t:(r=t.handler,i=t);const u=setCurrentInstance(this),_=doWatch(n,r.bind(s),i);return u(),_}function createPathGetter(e,t){const i=t.split(".");return()=>{let s=e;for(let n=0;n<i.length&&s;n++)s=s[i[n]];return s}}function traverse(e,t=1/0,i){if(t<=0||!isObject(e)||e.__v_skip||(i=i||new Set,i.has(e)))return e;if(i.add(e),t--,isRef(e))traverse(e.value,t,i);else if(isArray(e))for(let s=0;s<e.length;s++)traverse(e[s],t,i);else if(isSet(e)||isMap(e))e.forEach(s=>{traverse(s,t,i)});else if(isPlainObject(e))for(const s in e)traverse(e[s],t,i);return e}const getPublicInstance=e=>e?isStatefulComponent(e)?getExposeProxy(e)||e.proxy:getPublicInstance(e.parent):null,publicPropertiesMap=extend(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>process.env.NODE_ENV!=="production"?shallowReadonly(e.props):e.props,$attrs:e=>process.env.NODE_ENV!=="production"?shallowReadonly(e.attrs):e.attrs,$slots:e=>process.env.NODE_ENV!=="production"?shallowReadonly(e.slots):e.slots,$refs:e=>process.env.NODE_ENV!=="production"?shallowReadonly(e.refs):e.refs,$parent:e=>getPublicInstance(e.parent),$root:e=>getPublicInstance(e.root),$emit:e=>e.emit,$options:e=>__VUE_OPTIONS_API__?resolveMergedOptions(e):e.type,$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,queueJob(e.update)}),$nextTick:e=>e.n||(e.n=nextTick.bind(e.proxy)),$watch:e=>__VUE_OPTIONS_API__?instanceWatch.bind(e):NOOP}),isReservedPrefix=e=>e==="_"||e==="$",hasSetupBinding=(e,t)=>e!==EMPTY_OBJ&&!e.__isScriptSetup&&hasOwn$1(e,t),PublicInstanceProxyHandlers={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:i,setupState:s,data:n,props:r,accessCache:u,type:_,appContext:l}=e;if(process.env.NODE_ENV!=="production"&&t==="__isVue")return!0;let b;if(t[0]!=="$"){const O=u[t];if(O!==void 0)switch(O){case 1:return s[t];case 2:return n[t];case 4:return i[t];case 3:return r[t]}else{if(hasSetupBinding(s,t))return u[t]=1,s[t];if(n!==EMPTY_OBJ&&hasOwn$1(n,t))return u[t]=2,n[t];if((b=e.propsOptions[0])&&hasOwn$1(b,t))return u[t]=3,r[t];if(i!==EMPTY_OBJ&&hasOwn$1(i,t))return u[t]=4,i[t];(!__VUE_OPTIONS_API__||shouldCacheAccess)&&(u[t]=0)}}const g=publicPropertiesMap[t];let p,m;if(g)return t==="$attrs"?(track(e.attrs,"get",""),process.env.NODE_ENV!=="production"&&void 0):process.env.NODE_ENV!=="production"&&t==="$slots"&&track(e,"get",t),g(e);if((p=_.__cssModules)&&(p=p[t]))return p;if(i!==EMPTY_OBJ&&hasOwn$1(i,t))return u[t]=4,i[t];if(m=l.config.globalProperties,hasOwn$1(m,t))return m[t];process.env.NODE_ENV!=="production"&&currentRenderingInstance&&(!isString(t)||t.indexOf("__v")!==0)&&(n!==EMPTY_OBJ&&isReservedPrefix(t[0])&&hasOwn$1(n,t)?warn$1(`Property ${JSON.stringify(t)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`):e===currentRenderingInstance&&warn$1(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))},set({_:e},t,i){const{data:s,setupState:n,ctx:r}=e;return hasSetupBinding(n,t)?(n[t]=i,!0):process.env.NODE_ENV!=="production"&&n.__isScriptSetup&&hasOwn$1(n,t)?(warn$1(`Cannot mutate <script setup> binding "${t}" from Options API.`),!1):s!==EMPTY_OBJ&&hasOwn$1(s,t)?(s[t]=i,!0):hasOwn$1(e.props,t)?(process.env.NODE_ENV!=="production"&&warn$1(`Attempting to mutate prop "${t}". Props are readonly.`),!1):t[0]==="$"&&t.slice(1)in e?(process.env.NODE_ENV!=="production"&&warn$1(`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`),!1):(process.env.NODE_ENV!=="production"&&t in e.appContext.config.globalProperties?Object.defineProperty(r,t,{enumerable:!0,configurable:!0,value:i}):r[t]=i,!0)},has({_:{data:e,setupState:t,accessCache:i,ctx:s,appContext:n,propsOptions:r}},u){let _;return!!i[u]||e!==EMPTY_OBJ&&hasOwn$1(e,u)||hasSetupBinding(t,u)||(_=r[0])&&hasOwn$1(_,u)||hasOwn$1(s,u)||hasOwn$1(publicPropertiesMap,u)||hasOwn$1(n.config.globalProperties,u)},defineProperty(e,t,i){return i.get!=null?e._.accessCache[t]=0:hasOwn$1(i,"value")&&this.set(e,t,i.value,null),Reflect.defineProperty(e,t,i)}};process.env.NODE_ENV!=="production"&&(PublicInstanceProxyHandlers.ownKeys=e=>(warn$1("Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."),Reflect.ownKeys(e)));function normalizePropsOrEmits(e){return isArray(e)?e.reduce((t,i)=>(t[i]=null,t),{}):e}let shouldCacheAccess=!0;function resolveMergedOptions(e){const t=e.type,{mixins:i,extends:s}=t,{mixins:n,optionsCache:r,config:{optionMergeStrategies:u}}=e.appContext,_=r.get(t);let l;return _?l=_:!n.length&&!i&&!s?l=t:(l={},n.length&&n.forEach(b=>mergeOptions$1(l,b,u,!0)),mergeOptions$1(l,t,u)),isObject(t)&&r.set(t,l),l}function mergeOptions$1(e,t,i,s=!1){const{mixins:n,extends:r}=t;r&&mergeOptions$1(e,r,i,!0),n&&n.forEach(u=>mergeOptions$1(e,u,i,!0));for(const u in t)if(s&&u==="expose")process.env.NODE_ENV!=="production"&&warn$1('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const _=internalOptionMergeStrats[u]||i&&i[u];e[u]=_?_(e[u],t[u]):t[u]}return e}const internalOptionMergeStrats={data:mergeDataFn,props:mergeEmitsOrPropsOptions,emits:mergeEmitsOrPropsOptions,methods:mergeObjectOptions,computed:mergeObjectOptions,beforeCreate:mergeAsArray,created:mergeAsArray,beforeMount:mergeAsArray,mounted:mergeAsArray,beforeUpdate:mergeAsArray,updated:mergeAsArray,beforeDestroy:mergeAsArray,beforeUnmount:mergeAsArray,destroyed:mergeAsArray,unmounted:mergeAsArray,activated:mergeAsArray,deactivated:mergeAsArray,errorCaptured:mergeAsArray,serverPrefetch:mergeAsArray,components:mergeObjectOptions,directives:mergeObjectOptions,watch:mergeWatchOptions,provide:mergeDataFn,inject:mergeInject};function mergeDataFn(e,t){return t?e?function(){return extend(isFunction(e)?e.call(this,this):e,isFunction(t)?t.call(this,this):t)}:t:e}function mergeInject(e,t){return mergeObjectOptions(normalizeInject(e),normalizeInject(t))}function normalizeInject(e){if(isArray(e)){const t={};for(let i=0;i<e.length;i++)t[e[i]]=e[i];return t}return e}function mergeAsArray(e,t){return e?[...new Set([].concat(e,t))]:t}function mergeObjectOptions(e,t){return e?extend(Object.create(null),e,t):t}function mergeEmitsOrPropsOptions(e,t){return e?isArray(e)&&isArray(t)?[...new Set([...e,...t])]:extend(Object.create(null),normalizePropsOrEmits(e),normalizePropsOrEmits(t??{})):t}function mergeWatchOptions(e,t){if(!e)return t;if(!t)return e;const i=extend(Object.create(null),e);for(const s in t)i[s]=mergeAsArray(e[s],t[s]);return i}let currentApp=null;function inject(e,t,i=!1){const s=currentInstance||currentRenderingInstance;if(s||currentApp){const n=s?s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:currentApp._context.provides;if(n&&e in n)return n[e];if(arguments.length>1)return i&&isFunction(t)?t.call(s&&s.proxy):t;process.env.NODE_ENV!=="production"&&warn$1(`injection "${String(e)}" not found.`)}else process.env.NODE_ENV!=="production"&&warn$1("inject() can only be used inside setup() or functional components.")}const internalObjectProto={},isInternalObject=e=>Object.getPrototypeOf(e)===internalObjectProto,queuePostRenderEffect=queueEffectWithSuspense,isTeleport=e=>e.__isTeleport,Fragment=Symbol.for("v-fgt"),Text=Symbol.for("v-txt"),Comment=Symbol.for("v-cmt");let currentBlock=null;function isVNode(e){return e?e.__v_isVNode===!0:!1}const createVNodeWithArgsTransform=(...e)=>_createVNode(...e),normalizeKey=({key:e})=>e??null,normalizeRef=({ref:e,ref_key:t,ref_for:i})=>(typeof e=="number"&&(e=""+e),e!=null?isString(e)||isRef(e)||isFunction(e)?{i:currentRenderingInstance,r:e,k:t,f:!!i}:e:null);function createBaseVNode(e,t=null,i=null,s=0,n=null,r=e===Fragment?0:1,u=!1,_=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&normalizeKey(t),ref:t&&normalizeRef(t),scopeId:currentScopeId,slotScopeIds:null,children:i,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:s,dynamicProps:n,dynamicChildren:null,appContext:null,ctx:currentRenderingInstance};return _?(normalizeChildren(l,i),r&128&&e.normalize(l)):i&&(l.shapeFlag|=isString(i)?8:16),process.env.NODE_ENV!=="production"&&l.key!==l.key&&warn$1("VNode created with invalid key (NaN). VNode type:",l.type),!u&&currentBlock&&(l.patchFlag>0||r&6)&&l.patchFlag!==32&&currentBlock.push(l),l}const createVNode=process.env.NODE_ENV!=="production"?createVNodeWithArgsTransform:_createVNode;function _createVNode(e,t=null,i=null,s=0,n=null,r=!1){if((!e||e===NULL_DYNAMIC_COMPONENT)&&(process.env.NODE_ENV!=="production"&&!e&&warn$1(`Invalid vnode type when creating vnode: ${e}.`),e=Comment),isVNode(e)){const _=cloneVNode(e,t,!0);return i&&normalizeChildren(_,i),!r&&currentBlock&&(_.shapeFlag&6?currentBlock[currentBlock.indexOf(e)]=_:currentBlock.push(_)),_.patchFlag|=-2,_}if(isClassComponent(e)&&(e=e.__vccOpts),t){t=guardReactiveProps(t);let{class:_,style:l}=t;_&&!isString(_)&&(t.class=normalizeClass(_)),isObject(l)&&(isProxy(l)&&!isArray(l)&&(l=extend({},l)),t.style=normalizeStyle(l))}const u=isString(e)?1:isSuspense(e)?128:isTeleport(e)?64:isObject(e)?4:isFunction(e)?2:0;return process.env.NODE_ENV!=="production"&&u&4&&isProxy(e)&&(e=toRaw(e),warn$1("Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",`
Component that was made reactive: `,e)),createBaseVNode(e,t,i,s,n,u,r,!0)}function guardReactiveProps(e){return e?isProxy(e)||isInternalObject(e)?extend({},e):e:null}function cloneVNode(e,t,i=!1,s=!1){const{props:n,ref:r,patchFlag:u,children:_,transition:l}=e,b=t?mergeProps(n||{},t):n,g={__v_isVNode:!0,__v_skip:!0,type:e.type,props:b,key:b&&normalizeKey(b),ref:t&&t.ref?i&&r?isArray(r)?r.concat(normalizeRef(t)):[r,normalizeRef(t)]:normalizeRef(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:process.env.NODE_ENV!=="production"&&u===-1&&isArray(_)?_.map(deepCloneVNode):_,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Fragment?u===-1?16:u|16:u,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&cloneVNode(e.ssContent),ssFallback:e.ssFallback&&cloneVNode(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&s&&(g.transition=l.clone(g)),g}function deepCloneVNode(e){const t=cloneVNode(e);return isArray(e.children)&&(t.children=e.children.map(deepCloneVNode)),t}function createTextVNode(e=" ",t=0){return createVNode(Text,null,e,t)}function normalizeChildren(e,t){let i=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(isArray(t))i=16;else if(typeof t=="object")if(s&65){const n=t.default;n&&(n._c&&(n._d=!1),normalizeChildren(e,n()),n._c&&(n._d=!0));return}else{i=32;const n=t._;!n&&!isInternalObject(t)?t._ctx=currentRenderingInstance:n===3&&currentRenderingInstance&&(currentRenderingInstance.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else isFunction(t)?(t={default:t,_ctx:currentRenderingInstance},i=32):(t=String(t),s&64?(i=16,t=[createTextVNode(t)]):i=8);e.children=t,e.shapeFlag|=i}function mergeProps(...e){const t={};for(let i=0;i<e.length;i++){const s=e[i];for(const n in s)if(n==="class")t.class!==s.class&&(t.class=normalizeClass([t.class,s.class]));else if(n==="style")t.style=normalizeStyle([t.style,s.style]);else if(isOn(n)){const r=t[n],u=s[n];u&&r!==u&&!(isArray(r)&&r.includes(u))&&(t[n]=r?[].concat(r,u):u)}else n!==""&&(t[n]=s[n])}return t}let currentInstance=null;const getCurrentInstance=()=>currentInstance||currentRenderingInstance;let internalSetCurrentInstance;{const e=getGlobalThis(),t=(i,s)=>{let n;return(n=e[i])||(n=e[i]=[]),n.push(s),r=>{n.length>1?n.forEach(u=>u(r)):n[0](r)}};internalSetCurrentInstance=t("__VUE_INSTANCE_SETTERS__",i=>currentInstance=i),t("__VUE_SSR_SETTERS__",i=>isInSSRComponentSetup=i)}const setCurrentInstance=e=>{const t=currentInstance;return internalSetCurrentInstance(e),e.scope.on(),()=>{e.scope.off(),internalSetCurrentInstance(t)}};function isStatefulComponent(e){return e.vnode.shapeFlag&4}let isInSSRComponentSetup=!1;process.env.NODE_ENV;function getExposeProxy(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(proxyRefs(markRaw(e.exposed)),{get(t,i){if(i in t)return t[i];if(i in publicPropertiesMap)return publicPropertiesMap[i](e)},has(t,i){return i in t||i in publicPropertiesMap}}))}const classifyRE=/(?:^|[-_])(\w)/g,classify=e=>e.replace(classifyRE,t=>t.toUpperCase()).replace(/[-_]/g,"");function getComponentName(e,t=!0){return isFunction(e)?e.displayName||e.name:e.name||t&&e.__name}function formatComponentName(e,t,i=!1){let s=getComponentName(t);if(!s&&t.__file){const n=t.__file.match(/([^/\\]+)\.\w+$/);n&&(s=n[1])}if(!s&&e&&e.parent){const n=r=>{for(const u in r)if(r[u]===t)return u};s=n(e.components||e.parent.type.components)||n(e.appContext.components)}return s?classify(s):i?"App":"Anonymous"}function isClassComponent(e){return isFunction(e)&&"__vccOpts"in e}const computed=(e,t)=>{const i=computed$1(e,t,isInSSRComponentSetup);if(process.env.NODE_ENV!=="production"){const s=getCurrentInstance();s&&s.appContext.config.warnRecursiveComputed&&(i._warnRecursive=!0)}return i};function initCustomFormatter(){if(process.env.NODE_ENV==="production"||typeof window>"u")return;const e={style:"color:#3ba776"},t={style:"color:#1677ff"},i={style:"color:#f5222d"},s={style:"color:#eb2f96"},n={header(p){return isObject(p)?p.__isVue?["div",e,"VueInstance"]:isRef(p)?["div",{},["span",e,g(p)],"<",_(p.value),">"]:isReactive(p)?["div",{},["span",e,isShallow(p)?"ShallowReactive":"Reactive"],"<",_(p),`>${isReadonly(p)?" (readonly)":""}`]:isReadonly(p)?["div",{},["span",e,isShallow(p)?"ShallowReadonly":"Readonly"],"<",_(p),">"]:null:null},hasBody(p){return p&&p.__isVue},body(p){if(p&&p.__isVue)return["div",{},...r(p.$)]}};function r(p){const m=[];p.type.props&&p.props&&m.push(u("props",toRaw(p.props))),p.setupState!==EMPTY_OBJ&&m.push(u("setup",p.setupState)),p.data!==EMPTY_OBJ&&m.push(u("data",toRaw(p.data)));const O=l(p,"computed");O&&m.push(u("computed",O));const R=l(p,"inject");return R&&m.push(u("injected",R)),m.push(["div",{},["span",{style:s.style+";opacity:0.66"},"$ (internal): "],["object",{object:p}]]),m}function u(p,m){return m=extend({},m),Object.keys(m).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},p],["div",{style:"padding-left:1.25em"},...Object.keys(m).map(O=>["div",{},["span",s,O+": "],_(m[O],!1)])]]:["span",{}]}function _(p,m=!0){return typeof p=="number"?["span",t,p]:typeof p=="string"?["span",i,JSON.stringify(p)]:typeof p=="boolean"?["span",s,p]:isObject(p)?["object",{object:m?toRaw(p):p}]:["span",i,String(p)]}function l(p,m){const O=p.type;if(isFunction(O))return;const R={};for(const k in p.ctx)b(O,k,m)&&(R[k]=p.ctx[k]);return R}function b(p,m,O){const R=p[O];if(isArray(R)&&R.includes(m)||isObject(R)&&m in R||p.extends&&b(p.extends,m,O)||p.mixins&&p.mixins.some(k=>b(k,m,O)))return!0}function g(p){return isShallow(p)?"ShallowRef":p.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(n):window.devtoolsFormatters=[n]}process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV;/**
* vue v3.4.27
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function initDev(){initCustomFormatter()}process.env.NODE_ENV!=="production"&&initDev();const defaultParams={dataSource:"",activeKey:1},defaultOptions={zero:0,baseId:"findReplace",findReplaceClassName:""};function useFindReplace(params,options=defaultOptions){params={...defaultParams,...params},options={...defaultOptions,...options};const flagSpecial="饕餮",flagMakeshift="%_%",activeKey=ref(params.activeKey||1),dataSource=ref(params.dataSource),total=ref(options.zero||0),sum=computed(()=>total.value-options.zero);function init(value=""){const searchValue=value.trim();if(!dataSource.value||searchValue.length==0)return;const pattern=/<[^<>]*>|<.*?\/>/g;let elementList=dataSource.value.match(pattern);dataSource.value=dataSource.value.replace(pattern,flagSpecial);let newSearchValue="/";for(const e of searchValue)newSearchValue=`${newSearchValue}(${flagSpecial})*[\\n\\s]*${escapeRegExp(e)}(${flagSpecial})*[\\n\\s]*`;newSearchValue=`${newSearchValue}/g`,dataSource.value=dataSource.value.replace(eval(newSearchValue),function(e){return`${e}${flagMakeshift}`});let nodeList=dataSource.value.split(flagMakeshift);nodeList=nodeList.map(nodeListItem=>{if(!eval(newSearchValue).test(nodeListItem))return nodeListItem;total.value++;let domClass;return total.value===activeKey.value?domClass=`class='findReplace findReplaceActive findReplace${total.value}'`:domClass=`class='findReplace findReplace${total.value}'`,options.findReplaceClassName&&(domClass=domClass+options.findReplaceClassName),nodeListItem=nodeListItem.replace(eval(newSearchValue),function(e){if(e.includes(flagSpecial)){let t=e.split(flagSpecial);return t=t.map((i,s)=>(i.trim()&&(s==0?i=`<span id='${options.baseId}${total.value}' ${domClass}>${i}</span>`:i=`<span ${domClass}>${i}</span>`),i)),t.join(flagSpecial)}else return`<span id='${options.baseId}${total.value}' ${domClass}>${e}</span>`}),nodeListItem}),dataSource.value=nodeList.join(""),elementList&&elementList.length>0&&elementList.map(e=>{dataSource.value=dataSource.value.replace(flagSpecial,e)})}function goNext(e,t){const{isloop:i,loopStart:s,key:n}={isloop:!0,loopStart:1,key:activeKey.value,...e};sum.value&&(n===total.value?activeKey.value=i?s:n:activeKey.value=n+1,dataSource.value=activeChange(dataSource.value,activeKey.value),t&&t(e))}function goPrevious(e,t){const{isloop:i,loopStart:s,key:n}={isloop:!0,loopStart:1,key:activeKey.value,...e};sum.value&&(n===s?activeKey.value=i?total.value:n:activeKey.value=n-1,dataSource.value=activeChange(dataSource.value,activeKey.value),t&&t(e))}function setActiveKey(e,t){activeKey.value=e,dataSource.value=activeChange(dataSource.value,activeKey.value),t&&t()}function replace(e,t){let{replaceValue:i,key:s,replaceAll:n}={key:activeKey.value,replaceAll:!1,...e};if(i===void 0)return;i=i==null?void 0:i.trim();let r=document.createElement("div");r.innerHTML=dataSource.value,n?[...r.querySelectorAll(".findReplace")].map(u=>{u.id?u.innerHTML=i:u.outerHTML=""}):[...r.querySelectorAll(`.findReplace${s}`)].map(u=>{u.id?u.innerHTML=i:u.outerHTML=""}),dataSource.value=r.innerHTML,t&&t()}function removeMark(){let e=document.createElement("div");e.innerHTML=dataSource.value,[...e.querySelectorAll(".findReplace")].map(t=>{t.outerHTML=t.innerHTML}),dataSource.value=e.innerHTML}function reset(){activeKey.value=params.activeKey||1,dataSource.value=params.dataSource,total.value=options.zero||0}function searchChange(e=""){reset(),init(e)}return init(),{dataSource,activeKey,total,sum,params,options,searchChange,goNext,goPrevious,setActiveKey,replace,removeMark,reset}}function escapeRegExp(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function activeChange(e,t){if(!(e&&t))return e;let i=document.createElement("div");return i.innerHTML=e,[...i.querySelectorAll(".findReplaceActive")].map(s=>{s.classList.remove("findReplaceActive")}),[...i.querySelectorAll(`.findReplace${t}`)].map(s=>{s.classList.add("findReplaceActive")}),i.innerHTML}var NodeTypes=(e=>(e[e.ELEMENT_NODE=1]="ELEMENT_NODE",e[e.TEXT_NODE=3]="TEXT_NODE",e))(NodeTypes||{});function hasOwn(e,t){return e.hasOwnProperty(t)}function Guid(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=Math.random()*16|0,i=e=="x"?t:t&3|8;return i.toString(16)})}function getTextNodes(e,t=[],i=!1){var r,u;let s=[],n=e.childNodes;for(let _=0;_<n.length;_++){let l=n[_];l.ignore=i;const b=getClassNames(l);t.length>0&&b.length>0&&t.some(g=>b.includes(g))&&(l.ignore=!0),l.nodeType===NodeTypes.TEXT_NODE&&((r=l.parentElement)==null?void 0:r.nodeName)!=="SCRIPT"&&((u=l.textContent)==null?void 0:u.trim())!==""?l.textContent&&l.textContent!==`
`&&s.push(l):l.nodeType===NodeTypes.ELEMENT_NODE&&s.push(...getTextNodes(l,t,l.ignore))}return s}function getClassNames(e){let t=[];if(e.nodeType===NodeTypes.ELEMENT_NODE){const i=e;t=i.className?i.className.split(" "):[]}return t}function getOffset(e,t){let i=e.offsetParent,s=e.offsetTop,n=e.offsetLeft;for(;i!==t&&i!==null;)s+=i.offsetTop,n+=i.offsetLeft,i=i.offsetParent;return{top:s,left:n}}const config={beautify:!0,isCover:!0,ignoreClass:[]};function mergeOptions(e,t){for(let i in e)hasOwn(t,i)&&(e[i]=t[i]);return e}function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var js={exports:{}},src={},javascript={exports:{}},beautifier$2={},output={},hasRequiredOutput;function requireOutput(){if(hasRequiredOutput)return output;hasRequiredOutput=1;function e(s){this.__parent=s,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}e.prototype.clone_empty=function(){var s=new e(this.__parent);return s.set_indent(this.__indent_count,this.__alignment_count),s},e.prototype.item=function(s){return s<0?this.__items[this.__items.length+s]:this.__items[s]},e.prototype.has_match=function(s){for(var n=this.__items.length-1;n>=0;n--)if(this.__items[n].match(s))return!0;return!1},e.prototype.set_indent=function(s,n){this.is_empty()&&(this.__indent_count=s||0,this.__alignment_count=n||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},e.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)},e.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},e.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var s=this.__parent.current_line;return s.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),s.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),s.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,s.__items[0]===" "&&(s.__items.splice(0,1),s.__character_count-=1),!0}return!1},e.prototype.is_empty=function(){return this.__items.length===0},e.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},e.prototype.push=function(s){this.__items.push(s);var n=s.lastIndexOf(`
`);n!==-1?this.__character_count=s.length-n:this.__character_count+=s.length},e.prototype.pop=function(){var s=null;return this.is_empty()||(s=this.__items.pop(),this.__character_count-=s.length),s},e.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},e.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},e.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},e.prototype.toString=function(){var s="";return this.is_empty()?this.__parent.indent_empty_lines&&(s=this.__parent.get_indent_string(this.__indent_count)):(s=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),s+=this.__items.join("")),s};function t(s,n){this.__cache=[""],this.__indent_size=s.indent_size,this.__indent_string=s.indent_char,s.indent_with_tabs||(this.__indent_string=new Array(s.indent_size+1).join(s.indent_char)),n=n||"",s.indent_level>0&&(n=new Array(s.indent_level+1).join(this.__indent_string)),this.__base_string=n,this.__base_string_length=n.length}t.prototype.get_indent_size=function(s,n){var r=this.__base_string_length;return n=n||0,s<0&&(r=0),r+=s*this.__indent_size,r+=n,r},t.prototype.get_indent_string=function(s,n){var r=this.__base_string;return n=n||0,s<0&&(s=0,r=""),n+=s*this.__indent_size,this.__ensure_cache(n),r+=this.__cache[n],r},t.prototype.__ensure_cache=function(s){for(;s>=this.__cache.length;)this.__add_column()},t.prototype.__add_column=function(){var s=this.__cache.length,n=0,r="";this.__indent_size&&s>=this.__indent_size&&(n=Math.floor(s/this.__indent_size),s-=n*this.__indent_size,r=new Array(n+1).join(this.__indent_string)),s&&(r+=new Array(s+1).join(" ")),this.__cache.push(r)};function i(s,n){this.__indent_cache=new t(s,n),this.raw=!1,this._end_with_newline=s.end_with_newline,this.indent_size=s.indent_size,this.wrap_line_length=s.wrap_line_length,this.indent_empty_lines=s.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new e(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}return i.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},i.prototype.get_line_number=function(){return this.__lines.length},i.prototype.get_indent_string=function(s,n){return this.__indent_cache.get_indent_string(s,n)},i.prototype.get_indent_size=function(s,n){return this.__indent_cache.get_indent_size(s,n)},i.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},i.prototype.add_new_line=function(s){return this.is_empty()||!s&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},i.prototype.get_code=function(s){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 r=this.__lines.join(`
`);return s!==`
`&&(r=r.replace(/[\n]/g,s)),r},i.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},i.prototype.set_indent=function(s,n){return s=s||0,n=n||0,this.next_line.set_indent(s,n),this.__lines.length>1?(this.current_line.set_indent(s,n),!0):(this.current_line.set_indent(),!1)},i.prototype.add_raw_token=function(s){for(var n=0;n<s.newlines;n++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(s.whitespace_before),this.current_line.push(s.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},i.prototype.add_token=function(s){this.__add_space_before_token(),this.current_line.push(s),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},i.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},i.prototype.remove_indent=function(s){for(var n=this.__lines.length;s<n;)this.__lines[s]._remove_indent(),s++;this.current_line._remove_wrap_indent()},i.prototype.trim=function(s){for(s=s===void 0?!1:s,this.current_line.trim();s&&this.__lines.length>1&&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},i.prototype.just_added_newline=function(){return this.current_line.is_empty()},i.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},i.prototype.ensure_empty_line_above=function(s,n){for(var r=this.__lines.length-2;r>=0;){var u=this.__lines[r];if(u.is_empty())break;if(u.item(0).indexOf(s)!==0&&u.item(-1)!==n){this.__lines.splice(r+1,0,new e(this)),this.previous_line=this.__lines[this.__lines.length-2];break}r--}},output.Output=i,output}var token={},hasRequiredToken;function requireToken(){if(hasRequiredToken)return token;hasRequiredToken=1;function e(t,i,s,n){this.type=t,this.text=i,this.comments_before=null,this.newlines=s||0,this.whitespace_before=n||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}return token.Token=e,token}var acorn={},hasRequiredAcorn;function requireAcorn(){return hasRequiredAcorn||(hasRequiredAcorn=1,function(e){var t="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",i="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",s="\\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",r="\\\\u[0-9a-fA-F]{4}|\\\\u\\{[0-9a-fA-F]+\\}",u="(?:"+r+"|["+t+s+"])",_="(?:"+r+"|["+i+s+n+"])*";e.identifier=new RegExp(u+_,"g"),e.identifierStart=new RegExp(u),e.identifierMatch=new RegExp("(?:"+r+"|["+i+s+n+"])+"),e.newline=/[\n\r\u2028\u2029]/,e.lineBreak=new RegExp(`\r
|`+e.newline.source),e.allLineBreaks=new RegExp(e.lineBreak.source,"g")}(acorn)),acorn}var options$3={},options$2={},hasRequiredOptions$3;function requireOptions$3(){if(hasRequiredOptions$3)return options$2;hasRequiredOptions$3=1;function e(s,n){this.raw_options=t(s,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"])}e.prototype._get_array=function(s,n){var r=this.raw_options[s],u=n||[];return typeof r=="object"?r!==null&&typeof r.concat=="function"&&(u=r.concat()):typeof r=="string"&&(u=r.split(/[^a-zA-Z0-9_\/\-]+/)),u},e.prototype._get_boolean=function(s,n){var r=this.raw_options[s],u=r===void 0?!!n:!!r;return u},e.prototype._get_characters=function(s,n){var r=this.raw_options[s],u=n||"";return typeof r=="string"&&(u=r.replace(/\\r/,"\r").replace(/\\n/,`
`).replace(/\\t/,"	")),u},e.prototype._get_number=function(s,n){var r=this.raw_options[s];n=parseInt(n,10),isNaN(n)&&(n=0);var u=parseInt(r,10);return isNaN(u)&&(u=n),u},e.prototype._get_selection=function(s,n,r){var u=this._get_selection_list(s,n,r);if(u.length!==1)throw new Error("Invalid Option Value: The option '"+s+`' can only be one of the following values:
`+n+`
You passed in: '`+this.raw_options[s]+"'");return u[0]},e.prototype._get_selection_list=function(s,n,r){if(!n||n.length===0)throw new Error("Selection list cannot be empty.");if(r=r||[n[0]],!this._is_valid_selection(r,n))throw new Error("Invalid Default Value!");var u=this._get_array(s,r);if(!this._is_valid_selection(u,n))throw new Error("Invalid Option Value: The option '"+s+`' can contain only the following values:
`+n+`
You passed in: '`+this.raw_options[s]+"'");return u},e.prototype._is_valid_selection=function(s,n){return s.length&&n.length&&!s.some(function(r){return n.indexOf(r)===-1})};function t(s,n){var r={};s=i(s);var u;for(u in s)u!==n&&(r[u]=s[u]);if(n&&s[n])for(u in s[n])r[u]=s[n][u];return r}function i(s){var n={},r;for(r in s){var u=r.replace(/-/g,"_");n[u]=s[r]}return n}return options$2.Options=e,options$2.normalizeOpts=i,options$2.mergeOpts=t,options$2}var hasRequiredOptions$2;function requireOptions$2(){if(hasRequiredOptions$2)return options$3;hasRequiredOptions$2=1;var e=requireOptions$3().Options,t=["before-newline","after-newline","preserve-newline"];function i(s){e.call(this,s,"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 r=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var u=0;u<r.length;u++)r[u]==="preserve-inline"?this.brace_preserve_inline=!0:this.brace_style=r[u];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",t),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}return i.prototype=new e,options$3.Options=i,options$3}var tokenizer$2={},inputscanner={},hasRequiredInputscanner;function requireInputscanner(){if(hasRequiredInputscanner)return inputscanner;hasRequiredInputscanner=1;var e=RegExp.prototype.hasOwnProperty("sticky");function t(i){this.__input=i||"",this.__input_length=this.__input.length,this.__position=0}return t.prototype.restart=function(){this.__position=0},t.prototype.back=function(){this.__position>0&&(this.__position-=1)},t.prototype.hasNext=function(){return this.__position<this.__input_length},t.prototype.next=function(){var i=null;return this.hasNext()&&(i=this.__input.charAt(this.__position),this.__position+=1),i},t.prototype.peek=function(i){var s=null;return i=i||0,i+=this.__position,i>=0&&i<this.__input_length&&(s=this.__input.charAt(i)),s},t.prototype.__match=function(i,s){i.lastIndex=s;var n=i.exec(this.__input);return n&&!(e&&i.sticky)&&n.index!==s&&(n=null),n},t.prototype.test=function(i,s){return s=s||0,s+=this.__position,s>=0&&s<this.__input_length?!!this.__match(i,s):!1},t.prototype.testChar=function(i,s){var n=this.peek(s);return i.lastIndex=0,n!==null&&i.test(n)},t.prototype.match=function(i){var s=this.__match(i,this.__position);return s?this.__position+=s[0].length:s=null,s},t.prototype.read=function(i,s,n){var r="",u;return i&&(u=this.match(i),u&&(r+=u[0])),s&&(u||!i)&&(r+=this.readUntil(s,n)),r},t.prototype.readUntil=function(i,s){var n="",r=this.__position;i.lastIndex=this.__position;var u=i.exec(this.__input);return u?(r=u.index,s&&(r+=u[0].length)):r=this.__input_length,n=this.__input.substring(this.__position,r),this.__position=r,n},t.prototype.readUntilAfter=function(i){return this.readUntil(i,!0)},t.prototype.get_regexp=function(i,s){var n=null,r="g";return s&&e&&(r="y"),typeof i=="string"&&i!==""?n=new RegExp(i,r):i&&(n=new RegExp(i.source,r)),n},t.prototype.get_literal_regexp=function(i){return RegExp(i.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},t.prototype.peekUntilAfter=function(i){var s=this.__position,n=this.readUntilAfter(i);return this.__position=s,n},t.prototype.lookBack=function(i){var s=this.__position-1;return s>=i.length&&this.__input.substring(s-i.length,s).toLowerCase()===i},inputscanner.InputScanner=t,inputscanner}var tokenizer$1={},tokenstream={},hasRequiredTokenstream;function requireTokenstream(){if(hasRequiredTokenstream)return tokenstream;hasRequiredTokenstream=1;function e(t){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=t}return e.prototype.restart=function(){this.__position=0},e.prototype.isEmpty=function(){return this.__tokens_length===0},e.prototype.hasNext=function(){return this.__position<this.__tokens_length},e.prototype.next=function(){var t=null;return this.hasNext()&&(t=this.__tokens[this.__position],this.__position+=1),t},e.prototype.peek=function(t){var i=null;return t=t||0,t+=this.__position,t>=0&&t<this.__tokens_length&&(i=this.__tokens[t]),i},e.prototype.add=function(t){this.__parent_token&&(t.parent=this.__parent_token),this.__tokens.push(t),this.__tokens_length+=1},tokenstream.TokenStream=e,tokenstream}var whitespacepattern={},pattern={},hasRequiredPattern;function requirePattern(){if(hasRequiredPattern)return pattern;hasRequiredPattern=1;function e(t,i){this._input=t,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,i&&(this._starting_pattern=this._input.get_regexp(i._starting_pattern,!0),this._match_pattern=this._input.get_regexp(i._match_pattern,!0),this._until_pattern=this._input.get_regexp(i._until_pattern),this._until_after=i._until_after)}return e.prototype.read=function(){var t=this._input.read(this._starting_pattern);return(!this._starting_pattern||t)&&(t+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),t},e.prototype.read_match=function(){return this._input.match(this._match_pattern)},e.prototype.until_after=function(t){var i=this._create();return i._until_after=!0,i._until_pattern=this._input.get_regexp(t),i._update(),i},e.prototype.until=function(t){var i=this._create();return i._until_after=!1,i._until_pattern=this._input.get_regexp(t),i._update(),i},e.prototype.starting_with=function(t){var i=this._create();return i._starting_pattern=this._input.get_regexp(t,!0),i._update(),i},e.prototype.matching=function(t){var i=this._create();return i._match_pattern=this._input.get_regexp(t,!0),i._update(),i},e.prototype._create=function(){return new e(this._input,this)},e.prototype._update=function(){},pattern.Pattern=e,pattern}var hasRequiredWhitespacepattern;function requireWhitespacepattern(){if(hasRequiredWhitespacepattern)return whitespacepattern;hasRequiredWhitespacepattern=1;var e=requirePattern().Pattern;function t(i,s){e.call(this,i,s),s?this._line_regexp=this._input.get_regexp(s._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}return t.prototype=new e,t.prototype.__set_whitespace_patterns=function(i,s){i+="\\t ",s+="\\n\\r",this._match_pattern=this._input.get_regexp("["+i+s+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+s+"]")},t.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var i=this._input.read(this._match_pattern);if(i===" ")this.whitespace_before_token=" ";else if(i){var s=this.__split(this._newline_regexp,i);this.newline_count=s.length-1,this.whitespace_before_token=s[this.newline_count]}return i},t.prototype.matching=function(i,s){var n=this._create();return n.__set_whitespace_patterns(i,s),n._update(),n},t.prototype._create=function(){return new t(this._input,this)},t.prototype.__split=function(i,s){i.lastIndex=0;for(var n=0,r=[],u=i.exec(s);u;)r.push(s.substring(n,u.index)),n=u.index+u[0].length,u=i.exec(s);return n<s.length?r.push(s.substring(n,s.length)):r.push(""),r},whitespacepattern.WhitespacePattern=t,whitespacepattern}var hasRequiredTokenizer$2;function requireTokenizer$2(){if(hasRequiredTokenizer$2)return tokenizer$1;hasRequiredTokenizer$2=1;var e=requireInputscanner().InputScanner,t=requireToken().Token,i=requireTokenstream().TokenStream,s=requireWhitespacepattern().WhitespacePattern,n={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},r=function(u,_){this._input=new e(u),this._options=_||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new s(this._input)};return r.prototype.tokenize=function(){this._input.restart(),this.__tokens=new i,this._reset();for(var u,_=new t(n.START,""),l=null,b=[],g=new i;_.type!==n.EOF;){for(u=this._get_next_token(_,l);this._is_comment(u);)g.add(u),u=this._get_next_token(_,l);g.isEmpty()||(u.comments_before=g,g=new i),u.parent=l,this._is_opening(u)?(b.push(l),l=u):l&&this._is_closing(u,l)&&(u.opened=l,l.closed=u,l=b.pop(),u.parent=l),u.previous=_,_.next=u,this.__tokens.add(u),_=u}return this.__tokens},r.prototype._is_first_token=function(){return this.__tokens.isEmpty()},r.prototype._reset=function(){},r.prototype._get_next_token=function(u,_){this._readWhitespace();var l=this._input.read(/.+/g);return l?this._create_token(n.RAW,l):this._create_token(n.EOF,"")},r.prototype._is_comment=function(u){return!1},r.prototype._is_opening=function(u){return!1},r.prototype._is_closing=function(u,_){return!1},r.prototype._create_token=function(u,_){var l=new t(u,_,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return l},r.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},tokenizer$1.Tokenizer=r,tokenizer$1.TOKEN=n,tokenizer$1}var directives={},hasRequiredDirectives;function requireDirectives(){if(hasRequiredDirectives)return directives;hasRequiredDirectives=1;function e(t,i){t=typeof t=="string"?t:t.source,i=typeof i=="string"?i:i.source,this.__directives_block_pattern=new RegExp(t+/ beautify( \w+[:]\w+)+ /.source+i,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(t+/\sbeautify\signore:end\s/.source+i,"g")}return e.prototype.get_directives=function(t){if(!t.match(this.__directives_block_pattern))return null;var i={};this.__directive_pattern.lastIndex=0;for(var s=this.__directive_pattern.exec(t);s;)i[s[1]]=s[2],s=this.__directive_pattern.exec(t);return i},e.prototype.readIgnored=function(t){return t.readUntilAfter(this.__directives_end_ignore_pattern)},directives.Directives=e,directives}var templatablepattern={},hasRequiredTemplatablepattern;function requireTemplatablepattern(){if(hasRequiredTemplatablepattern)return templatablepattern;hasRequiredTemplatablepattern=1;var e=requirePattern().Pattern,t={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function i(s,n){e.call(this,s,n),this.__template_pattern=null,this._disabled=Object.assign({},t),this._excluded=Object.assign({},t),n&&(this.__template_pattern=this._input.get_regexp(n.__template_pattern),this._excluded=Object.assign(this._excluded,n._excluded),this._disabled=Object.assign(this._disabled,n._disabled));var r=new e(s);this.__patterns={handlebars_comment:r.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:r.starting_with(/{{{/).until_after(/}}}/),handlebars:r.starting_with(/{{/).until_after(/}}/),php:r.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:r.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:r.starting_with(/{%/).until_after(/%}/),django_value:r.starting_with(/{{/).until_after(/}}/),django_comment:r.starting_with(/{#/).until_after(/#}/),smarty:r.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:r.starting_with(/{\*/).until_after(/\*}/),smarty_literal:r.starting_with(/{literal}/).until_after(/{\/literal}/)}}return i.prototype=new e,i.prototype._create=function(){return new i(this._input,this)},i.prototype._update=function(){this.__set_templated_pattern()},i.prototype.disable=function(s){var n=this._create();return n._disabled[s]=!0,n._update(),n},i.prototype.read_options=function(s){var n=this._create();for(var r in t)n._disabled[r]=s.templating.indexOf(r)===-1;return n._update(),n},i.prototype.exclude=function(s){var n=this._create();return n._excluded[s]=!0,n._update(),n},i.prototype.read=function(){var s="";this._match_pattern?s=this._input.read(this._starting_pattern):s=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),s+=n,n=this._read_template();return this._until_after&&(s+=this._input.readUntilAfter(this._until_pattern)),s},i.prototype.__set_templated_pattern=function(){var s=[];this._disabled.php||s.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||s.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||s.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(s.push(this.__patterns.django._starting_pattern.source),s.push(this.__patterns.django_value._starting_pattern.source),s.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||s.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&s.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+s.join("|")+")")},i.prototype._read_template=function(){var s="",n=this._input.peek();if(n==="<"){var r=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&r==="?"&&(s=s||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&r==="%"&&(s=s||this.__patterns.erb.read())}else n==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(s=s||this.__patterns.handlebars_comment.read(),s=s||this.__patterns.handlebars_unescaped.read(),s=s||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(s=s||this.__patterns.django_value.read()),this._excluded.django||(s=s||this.__patterns.django_comment.read(),s=s||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(s=s||this.__patterns.smarty_comment.read(),s=s||this.__patterns.smarty_literal.read(),s=s||this.__patterns.smarty.read()));return s},templatablepattern.TemplatablePattern=i,templatablepattern}var hasRequiredTokenizer$1;function requireTokenizer$1(){if(hasRequiredTokenizer$1)return tokenizer$2;hasRequiredTokenizer$1=1;var e=requireInputscanner().InputScanner,t=requireTokenizer$2().Tokenizer,i=requireTokenizer$2().TOKEN,s=requireDirectives().Directives,n=requireAcorn(),r=requirePattern().Pattern,u=requireTemplatablepattern().TemplatablePattern;function _(c,y){return y.indexOf(c)!==-1}var l={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:i.START,RAW:i.RAW,EOF:i.EOF},b=new s(/\/\*/,/\*\//),g=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,p=/[0-9]/,m=/[^\d\.]/,O=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),R=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";R=R.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),R="\\?\\.(?!\\d) "+R,R=R.replace(/ /g,"|");var k=new RegExp(R),h="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),o=h.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),f=new RegExp("^(?:"+o.join("|")+")$"),T,E=function(c,y){t.call(this,c,y),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var d=new r(this._input),x=new u(this._input).read_options(this._options);this.__patterns={template:x,identifier:x.starting_with(n.identifier).matching(n.identifierMatch),number:d.matching(g),punct:d.matching(k),comment:d.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:d.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:d.matching(/<!--/),html_comment_end:d.matching(/-->/),include:d.starting_with(/#include/).until_after(n.lineBreak),shebang:d.starting_with(/#!/).until_after(n.lineBreak),xml:d.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:x.until(/['\\\n\r\u2028\u2029]/),double_quote:x.until(/["\\\n\r\u2028\u2029]/),template_text:x.until(/[`\\$]/),template_expression:x.until(/[`}\\]/)}};E.prototype=new t,E.prototype._is_comment=function(c){return c.type===l.COMMENT||c.type===l.BLOCK_COMMENT||c.type===l.UNKNOWN},E.prototype._is_opening=function(c){return c.type===l.START_BLOCK||c.type===l.START_EXPR},E.prototype._is_closing=function(c,y){return(c.type===l.END_BLOCK||c.type===l.END_EXPR)&&y&&(c.text==="]"&&y.text==="["||c.text===")"&&y.text==="("||c.text==="}"&&y.text==="{")},E.prototype._reset=function(){T=!1},E.prototype._get_next_token=function(c,y){var d=null;this._readWhitespace();var x=this._input.peek();return x===null?this._create_token(l.EOF,""):(d=d||this._read_non_javascript(x),d=d||this._read_string(x),d=d||this._read_pair(x,this._input.peek(1)),d=d||this._read_word(c),d=d||this._read_singles(x),d=d||this._read_comment(x),d=d||this._read_regexp(x,c),d=d||this._read_xml(x,c),d=d||this._read_punctuation(),d=d||this._create_token(l.UNKNOWN,this._input.next()),d)},E.prototype._read_word=function(c){var y;if(y=this.__patterns.identifier.read(),y!=="")return y=y.replace(n.allLineBreaks,`
`),!(c.type===l.DOT||c.type===l.RESERVED&&(c.text==="set"||c.text==="get"))&&f.test(y)?(y==="in"||y==="of")&&(c.type===l.WORD||c.type===l.STRING)?this._create_token(l.OPERATOR,y):this._create_token(l.RESERVED,y):this._create_token(l.WORD,y);if(y=this.__patterns.number.read(),y!=="")return this._create_token(l.WORD,y)},E.prototype._read_singles=function(c){var y=null;return c==="("||c==="["?y=this._create_token(l.START_EXPR,c):c===")"||c==="]"?y=this._create_token(l.END_EXPR,c):c==="{"?y=this._create_token(l.START_BLOCK,c):c==="}"?y=this._create_token(l.END_BLOCK,c):c===";"?y=this._create_token(l.SEMICOLON,c):c==="."&&m.test(this._input.peek(1))?y=this._create_token(l.DOT,c):c===","&&(y=this._create_token(l.COMMA,c)),y&&this._input.next(),y},E.prototype._read_pair=function(c,y){var d=null;return c==="#"&&y==="{"&&(d=this._create_token(l.START_BLOCK,c+y)),d&&(this._input.next(),this._input.next()),d},E.prototype._read_punctuation=function(){var c=this.__patterns.punct.read();if(c!=="")return c==="="?this._create_token(l.EQUALS,c):c==="?."?this._create_token(l.DOT,c):this._create_token(l.OPERATOR,c)},E.prototype._read_non_javascript=function(c){var y="";if(c==="#"){if(this._is_first_token()&&(y=this.__patterns.shebang.read(),y))return this._create_token(l.UNKNOWN,y.trim()+`
`);if(y=this.__patterns.include.read(),y)return this._create_token(l.UNKNOWN,y.trim()+`
`);c=this._input.next();var d="#";if(this._input.hasNext()&&this._input.testChar(p)){do c=this._input.next(),d+=c;while(this._input.hasNext()&&c!=="#"&&c!=="=");return c==="#"||(this._input.peek()==="["&&this._input.peek(1)==="]"?(d+="[]",this._input.next(),this._input.next()):this._input.peek()==="{"&&this._input.peek(1)==="}"&&(d+="{}",this._input.next(),this._input.next())),this._create_token(l.WORD,d)}this._input.back()}else if(c==="<"&&this._is_first_token()){if(y=this.__patterns.html_comment_start.read(),y){for(;this._input.hasNext()&&!this._input.testChar(n.newline);)y+=this._input.next();return T=!0,this._create_token(l.COMMENT,y)}}else if(T&&c==="-"&&(y=this.__patterns.html_comment_end.read(),y))return T=!1,this._create_token(l.COMMENT,y);return null},E.prototype._read_comment=function(c){var y=null;if(c==="/"){var d="";if(this._input.peek(1)==="*"){d=this.__patterns.block_comment.read();var x=b.get_directives(d);x&&x.ignore==="start"&&(d+=b.readIgnored(this._input)),d=d.replace(n.allLineBreaks,`
`),y=this._create_token(l.BLOCK_COMMENT,d),y.directives=x}else this._input.peek(1)==="/"&&(d=this.__patterns.comment.read(),y=this._create_token(l.COMMENT,d))}return y},E.prototype._read_string=function(c){if(c==="`"||c==="'"||c==='"'){var y=this._input.next();return this.has_char_escapes=!1,c==="`"?y+=this._read_string_recursive("`",!0,"${"):y+=this._read_string_recursive(c),this.has_char_escapes&&this._options.unescape_strings&&(y=S(y)),this._input.peek()===c&&(y+=this._input.next()),y=y.replace(n.allLineBreaks,`
`),this._create_token(l.STRING,y)}return null},E.prototype._allow_regexp_or_xml=function(c){return c.type===l.RESERVED&&_(c.text,["return","case","throw","else","do","typeof","yield"])||c.type===l.END_EXPR&&c.text===")"&&c.opened.previous.type===l.RESERVED&&_(c.opened.previous.text,["if","while","for"])||_(c.type,[l.COMMENT,l.START_EXPR,l.START_BLOCK,l.START,l.END_BLOCK,l.OPERATOR,l.EQUALS,l.EOF,l.SEMICOLON,l.COMMA])},E.prototype._read_regexp=function(c,y){if(c==="/"&&this._allow_regexp_or_xml(y)){for(var d=this._input.next(),x=!1,a=!1;this._input.hasNext()&&(x||a||this._input.peek()!==c)&&!this._input.testChar(n.newline);)d+=this._input.peek(),x?x=!1:(x=this._input.peek()==="\\",this._input.peek()==="["?a=!0:this._input.peek()==="]"&&(a=!1)),this._input.next();return this._input.peek()===c&&(d+=this._input.next(),d+=this._input.read(n.identifier)),this._create_token(l.STRING,d)}return null},E.prototype._read_xml=function(c,y){if(this._options.e4x&&c==="<"&&this._allow_regexp_or_xml(y)){var d="",x=this.__patterns.xml.read_match();if(x){for(var a=x[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),v=a.indexOf("{")===0,w=0;x;){var N=!!x[1],C=x[2],A=!!x[x.length-1]||C.slice(0,8)==="![CDATA[";if(!A&&(C===a||v&&C.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(N?--w:++w),d+=x[0],w<=0)break;x=this.__patterns.xml.read_match()}return x||(d+=this._input.match(/[\s\S]*/g)[0]),d=d.replace(n.allLineBreaks,`
`),this._create_token(l.STRING,d)}}return null};function S(c){for(var y="",d=0,x=new e(c),a=null;x.hasNext();)if(a=x.match(/([\s]|[^\\]|\\\\)+/g),a&&(y+=a[0]),x.peek()==="\\"){if(x.next(),x.peek()==="x")a=x.match(/x([0-9A-Fa-f]{2})/g);else if(x.peek()==="u")a=x.match(/u([0-9A-Fa-f]{4})/g),a||(a=x.match(/u\{([0-9A-Fa-f]+)\}/g));else{y+="\\",x.hasNext()&&(y+=x.next());continue}if(!a||(d=parseInt(a[1],16),d>126&&d<=255&&a[0].indexOf("x")===0))return c;d>=0&&d<32||d>1114111?y+="\\"+a[0]:d===34||d===39||d===92?y+="\\"+String.fromCharCode(d):y+=String.fromCharCode(d)}return y}return E.prototype._read_string_recursive=function(c,y,d){var x,a;c==="'"?a=this.__patterns.single_quote:c==='"'?a=this.__patterns.double_quote:c==="`"?a=this.__patterns.template_text:c==="}"&&(a=this.__patterns.template_expression);for(var v=a.read(),w="";this._input.hasNext();){if(w=this._input.next(),w===c||!y&&n.newline.test(w)){this._input.back();break}else w==="\\"&&this._input.hasNext()?(x=this._input.peek(),x==="x"||x==="u"?this.has_char_escapes=!0:x==="\r"&&this._input.peek(1)===`
`&&this._input.next(),w+=this._input.next()):d&&(d==="${"&&w==="$"&&this._input.peek()==="{"&&(w+=this._input.next()),d===w&&(c==="`"?w+=this._read_string_recursive("}",y,"`"):w+=this._read_string_recursive("`",y,"${"),this._input.hasNext()&&(w+=this._input.next())));w+=a.read(),v+=w}return v},tokenizer$2.Tokenizer=E,tokenizer$2.TOKEN=l,tokenizer$2.positionable_operators=O.slice(),tokenizer$2.line_starters=h.slice(),tokenizer$2}var hasRequiredBeautifier$2;function requireBeautifier$2(){if(hasRequiredBeautifier$2)return beautifier$2;hasRequiredBeautifier$2=1;var e=requireOutput().Output,t=requireToken().Token,i=requireAcorn(),s=requireOptions$2().Options,n=requireTokenizer$1().Tokenizer,r=requireTokenizer$1().line_starters,u=requireTokenizer$1().positionable_operators,_=requireTokenizer$1().TOKEN;function l(a,v){return v.indexOf(a)!==-1}function b(a){return a.replace(/^\s+/g,"")}function g(a){for(var v={},w=0;w<a.length;w++)v[a[w].replace(/-/g,"_")]=a[w];return v}function p(a,v){return a&&a.type===_.RESERVED&&a.text===v}function m(a,v){return a&&a.type===_.RESERVED&&l(a.text,v)}var O=["case","return","do","if","throw","else","await","break","continue","async"],R=["before-newline","after-newline","preserve-newline"],k=g(R),h=[k.before_newline,k.preserve_newline],o={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};function f(a,v){v.multiline_frame||v.mode===o.ForInitializer||v.mode===o.Conditional||a.remove_indent(v.start_line_index)}function T(a){a=a.replace(i.allLineBreaks,`
`);for(var v=[],w=a.indexOf(`
`);w!==-1;)v.push(a.substring(0,w)),a=a.substring(w+1),w=a.indexOf(`
`);return a.length&&v.push(a),v}function E(a){return a===o.ArrayLiteral}function S(a){return l(a,[o.Expression,o.ForInitializer,o.Conditional])}function c(a,v){for(var w=0;w<a.length;w++){var N=a[w].trim();if(N.charAt(0)!==v)return!1}return!0}function y(a,v){for(var w=0,N=a.length,C;w<N;w++)if(C=a[w],C&&C.indexOf(v)!==0)return!1;return!0}function d(a,v){v=v||{},this._source_text=a||"",this._output=null,this._tokens=null,this._last_last_text=null,this._flags=null,this._previous_flags=null,this._flag_store=null,this._options=new s(v)}d.prototype.create_flags=function(a,v){var w=0;a&&(w=a.indentation_level,!this._output.just_added_newline()&&a.line_indent_level>w&&(w=a.line_indent_level));var N={mode:v,parent:a,last_token:a?a.last_token:new t(_.START_BLOCK,""),last_word:a?a.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:w,alignment:0,line_indent_level:a?a.line_indent_level:w,start_line_index:this._output.get_line_number(),ternary_depth:0};return N},d.prototype._reset=function(a){var v=a.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new e(this._options,v),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(o.BlockStatement);var w=new n(a,this._options);return this._tokens=w.tokenize(),a},d.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var a,v=this._reset(this._source_text),w=this._options.eol;this._options.eol==="auto"&&(w=`
`,v&&i.lineBreak.test(v||"")&&(w=v.match(i.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 a=this._output.get_code(w),a},d.prototype.handle_token=function(a,v){a.type===_.START_EXPR?this.handle_start_expr(a):a.type===_.END_EXPR?this.handle_end_expr(a):a.type===_.START_BLOCK?this.handle_start_block(a):a.type===_.END_BLOCK?this.handle_end_block(a):a.type===_.WORD?this.handle_word(a):a.type===_.RESERVED?this.handle_word(a):a.type===_.SEMICOLON?this.handle_semicolon(a):a.type===_.STRING?this.handle_string(a):a.type===_.EQUALS?this.handle_equals(a):a.type===_.OPERATOR?this.handle_operator(a):a.type===_.COMMA?this.handle_comma(a):a.type===_.BLOCK_COMMENT?this.handle_block_comment(a,v):a.type===_.COMMENT?this.handle_comment(a,v):a.type===_.DOT?this.handle_dot(a):a.type===_.EOF?this.handle_eof(a):a.type===_.UNKNOWN?this.handle_unknown(a,v):this.handle_unknown(a,v)},d.prototype.handle_whitespace_and_comments=function(a,v){var w=a.newlines,N=this._options.keep_array_indentation&&E(this._flags.mode);if(a.comments_before)for(var C=a.comments_before.next();C;)this.handle_whitespace_and_comments(C,v),this.handle_token(C,v),C=a.comments_before.next();if(N)for(var A=0;A<w;A+=1)this.print_newline(A>0,v);else if(this._options.max_preserve_newlines&&w>this._options.max_preserve_newlines&&(w=this._options.max_preserve_newlines),this._options.preserve_newlines&&w>1){this.print_newline(!1,v);for(var I=1;I<w;I+=1)this.print_newline(!0,v)}};var x=["async","break","continue","return","throw","yield"];return d.prototype.allow_wrap_or_preserved_newline=function(a,v){if(v=v===void 0?!1:v,!this._output.just_added_newline()){var w=this._options.preserve_newlines&&a.newlines||v,N=l(this._flags.last_token.text,u)||l(a.text,u);if(N){var C=l(this._flags.last_token.text,u)&&l(this._options.operator_position,h)||l(a.text,u);w=w&&C}if(w)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(m(this._flags.last_token,x))return;this._output.set_wrap_point()}}},d.prototype.print_newline=function(a,v){if(!v&&this._flags.last_token.text!==";"&&this._flags.last_token.text!==","&&this._flags.last_token.text!=="="&&(this._flags.last_token.type!==_.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++"))for(var w=this._tokens.peek();this._flags.mode===o.Statement&&!(this._flags.if_block&&p(w,"else"))&&!this._flags.do_block;)this.restore_mode();this._output.add_new_line(a)&&(this._flags.multiline_frame=!0)},d.prototype.print_token_line_indentation=function(a){this._output.just_added_newline()&&(this._options.keep_array_indentation&&a.newlines&&(a.text==="["||E(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(a.whitespace_before),this._output.space_before_token=!1):this._output.set_indent(this._flags.indentation_level,this._flags.alignment)&&(this._flags.line_indent_level=this._flags.indentation_level))},d.prototype.print_token=function(a){if(this._output.raw){this._output.add_raw_token(a);return}if(this._options.comma_first&&a.previous&&a.previous.type===_.COMMA&&this._output.just_added_newline()&&this._output.previous_line.last()===","){var v=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(v),this._output.trim(!0),this._output.current_line.pop(),this._output.trim()),this.print_token_line_indentation(a),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(a),this._output.non_breaking_space=!0,this._output.add_token(a.text),this._output.previous_token_wrapped&&(this._flags.multiline_frame=!0)},d.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},d.prototype.deindent=function(){this._flags.indentation_level>0&&(!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))},d.prototype.set_mode=function(a){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,a),this._flags=this.create_flags(this._previous_flags,a),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},d.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===o.Statement&&f(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},d.prototype.start_of_object_property=function(){return this._flags.parent.mode===o.ObjectLiteral&&this._flags.mode===o.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||m(this._flags.last_token,["get","set"]))},d.prototype.start_of_statement=function(a){var v=!1;return v=v||m(this._flags.last_token,["var","let","const"])&&a.type===_.WORD,v=v||p(this._flags.last_token,"do"),v=v||!(this._flags.parent.mode===o.ObjectLiteral&&this._flags.mode===o.Statement)&&m(this._flags.last_token,x)&&!a.newlines,v=v||p(this._flags.last_token,"else")&&!(p(a,"if")&&!a.comments_before),v=v||this._flags.last_token.type===_.END_EXPR&&(this._previous_flags.mode===o.ForInitializer||this._previous_flags.mode===o.Conditional),v=v||this._flags.last_token.type===_.WORD&&this._flags.mode===o.BlockStatement&&!this._flags.in_case&&!(a.text==="--"||a.text==="++")&&this._last_last_text!=="function"&&a.type!==_.WORD&&a.type!==_.RESERVED,v=v||this._flags.mode===o.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||m(this._flags.last_token,["get","set"])),v?(this.set_mode(o.Statement),this.indent(),this.handle_whitespace_and_comments(a,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(a,m(a,["do","for","if","while"])),!0):!1},d.prototype.handle_start_expr=function(a){this.start_of_statement(a)||this.handle_whitespace_and_comments(a);var v=o.Expression;if(a.text==="["){if(this._flags.last_token.type===_.WORD||this._flags.last_token.text===")"){m(this._flags.last_token,r)&&(this._output.space_before_token=!0),this.print_token(a),this.set_mode(v),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}v=o.ArrayLiteral,E(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()),l(this._flags.last_token.type,[_.START_EXPR,_.END_EXPR,_.WORD,_.OPERATOR,_.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===_.RESERVED)this._flags.last_token.text==="for"?(this._output.space_before_token=this._options.space_before_conditional,v=o.ForInitializer):l(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,v=o.Conditional):l(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:this._flags.last_token.text==="import"&&a.whitespace_before===""?this._output.space_before_token=!1:(l(this._flags.last_token.text,r)||this._flags.last_token.text==="catch")&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===_.EQUALS||this._flags.last_token.type===_.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(a);else if(this._flags.last_token.type===_.WORD){this._output.space_before_token=!1;var w=this._tokens.peek(-3);if(this._options.space_after_named_function&&w){var N=this._tokens.peek(-4);m(w,["async","function"])||w.text==="*"&&m(N,["async","function"])?this._output.space_before_token=!0:this._flags.mode===o.ObjectLiteral?(w.text==="{"||w.text===","||w.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(a);(this._flags.last_token.type===_.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&(l(this._last_last_text,["function","yield"])||this._flags.mode===o.ObjectLiteral&&l(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===_.START_BLOCK?this.print_newline():(this._flags.last_token.type===_.END_EXPR||this._flags.last_token.type===_.START_EXPR||this._flags.last_token.type===_.END_BLOCK||this._flags.last_token.text==="."||this._flags.last_token.type===_.COMMA)&&this.allow_wrap_or_preserved_newline(a,a.newlines),this.print_token(a),this.set_mode(v),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},d.prototype.handle_end_expr=function(a){for(;this._flags.mode===o.Statement;)this.restore_mode();this.handle_whitespace_and_comments(a),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(a,a.text==="]"&&E(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type===_.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(a),this.restore_mode(),f(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===o.Conditional&&(this._previous_flags.mode=o.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},d.prototype.handle_start_block=function(a){this.handle_whitespace_and_comments(a);var v=this._tokens.peek(),w=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===_.END_EXPR?(this.set_mode(o.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(o.BlockStatement):w&&(l(w.text,[":",","])&&l(v.type,[_.STRING,_.WORD,_.RESERVED])||l(v.text,["get","set","..."])&&l(w.type,[_.WORD,_.RESERVED]))?l(this._last_last_text,["class","interface"])&&!l(w.text,[":",","])?this.set_mode(o.BlockStatement):this.set_mode(o.ObjectLiteral):this._flags.last_token.type===_.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(o.BlockStatement):l(this._flags.last_token.type,[_.EQUALS,_.START_EXPR,_.COMMA,_.OPERATOR])||m(this._flags.last_token,["return","throw","import","default"])?this.set_mode(o.ObjectLiteral):this.set_mode(o.BlockStatement),this._flags.last_token&&m(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0);var N=!v.comments_before&&v.text==="}",C=N&&this._flags.last_word==="function"&&this._flags.last_token.type===_.END_EXPR;if(this._options.brace_preserve_inline){var A=0,I=null;this._flags.inline_frame=!0;do if(A+=1,I=this._tokens.peek(A-1),I.newlines){this._flags.inline_frame=!1;break}while(I.type!==_.EOF&&!(I.type===_.END_BLOCK&&I.opened===a))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&a.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==_.OPERATOR&&(C||this._flags.last_token.type===_.EQUALS||m(this._flags.last_token,O)&&this._flags.last_token.text!=="else")?this._output.space_before_token=!0:this.print_newline(!1,!0):(E(this._previous_flags.mode)&&(this._flags.last_token.type===_.START_EXPR||this._flags.last_token.type===_.COMMA)&&((this._flags.last_token.type===_.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===_.COMMA||this._flags.last_token.type===_.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(a),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==_.OPERATOR&&this._flags.last_token.type!==_.START_EXPR&&(l(this._flags.last_token.type,[_.START_BLOCK,_.SEMICOLON])&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(a),this.indent(),!N&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()},d.prototype.handle_end_block=function(a){for(this.handle_whitespace_and_comments(a);this._flags.mode===o.Statement;)this.restore_mode();var v=this._flags.last_token.type===_.START_BLOCK;this._flags.inline_frame&&!v?this._output.space_before_token=!0:this._options.brace_style==="expand"?v||this.print_newline():v||(E(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(a)},d.prototype.handle_word=function(a){if(a.type===_.RESERVED){if(l(a.text,["set","get"])&&this._flags.mode!==o.ObjectLiteral)a.type=_.WORD;else if(a.text==="import"&&l(this._tokens.peek().text,["(","."]))a.type=_.WORD;else if(l(a.text,["as","from"])&&!this._flags.import_block)a.type=_.WORD;else if(this._flags.mode===o.ObjectLiteral){var v=this._tokens.peek();v.text===":"&&(a.type=_.WORD)}}if(this.start_of_statement(a)?m(this._flags.last_token,["var","let","const"])&&a.type===_.WORD&&(this._flags.declaration_statement=!0):a.newlines&&!S(this._flags.mode)&&(this._flags.last_token.type!==_.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")&&this._flags.last_token.type!==_.EQUALS&&(this._options.preserve_newlines||!m(this._flags.last_token,["var","let","const","set","get"]))?(this.handle_whitespace_and_comments(a),this.print_newline()):this.handle_whitespace_and_comments(a),this._flags.do_block&&!this._flags.do_while)if(p(a,"while")){this._output.space_before_token=!0,this.print_token(a),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&&p(a,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===o.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&m(a,["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(a),this._flags.in_case=!0;return}if((this._flags.last_token.type===_.COMMA||this._flags.last_token.type===_.START_EXPR||this._flags.last_token.type===_.EQUALS||this._flags.last_token.type===_.OPERATOR)&&!this.start_of_object_property()&&!(l(this._flags.last_token.text,["+","-"])&&this._last_last_text===":"&&this._flags.parent.mode===o.ObjectLiteral)&&this.allow_wrap_or_preserved_newline(a),p(a,"function")){(l(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(l(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===_.OPERATOR))&&!this._output.just_added_blankline()&&!a.comments_before&&(this.print_newline(),this.print_newline(!0)),this._flags.last_token.type===_.RESERVED||this._flags.last_token.type===_.WORD?m(this._flags.last_token,["get","set","new","export"])||m(this._flags.last_token,x)?this._output.space_before_token=!0:p(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===_.OPERATOR||this._flags.last_token.text==="="?this._output.space_before_token=!0:!this._flags.multiline_frame&&(S(this._flags.mode)||E(this._flags.mode))||this.print_newline(),this.print_token(a),this._flags.last_word=a.text;return}var w="NONE";if(this._flags.last_token.type===_.END_BLOCK?this._previous_flags.inline_frame?w="SPACE":m(a,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&a.newlines?w="NEWLINE":(w="SPACE",this._output.space_before_token=!0):w="NEWLINE":this._flags.last_token.type===_.SEMICOLON&&this._flags.mode===o.BlockStatement?w="NEWLINE":this._flags.last_token.type===_.SEMICOLON&&S(this._flags.mode)?w="SPACE":this._flags.last_token.type===_.STRING?w="NEWLINE":this._flags.last_token.type===_.RESERVED||this._flags.last_token.type===_.WORD||this._flags.last_token.text==="*"&&(l(this._last_last_text,["function","yield"])||this._flags.mode===o.ObjectLiteral&&l(this._last_last_text,["{",","]))?w="SPACE":this._flags.last_token.type===_.START_BLOCK?this._flags.inline_frame?w="SPACE":w="NEWLINE":this._flags.last_token.type===_.END_EXPR&&(this._output.space_before_token=!0,w="NEWLINE"),m(a,r)&&this._flags.last_token.text!==")"&&(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export"?w="SPACE":w="NEWLINE"),m(a,["else","catch","finally"]))if((!(this._flags.last_token.type===_.END_BLOCK&&this._previous_flags.mode===o.BlockStatement)||this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&a.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 w==="NEWLINE"?m(this._flags.last_token,O)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&m(a,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==_.END_EXPR?(this._flags.last_token.type!==_.START_EXPR||!m(a,["var","let","const"]))&&this._flags.last_token.text!==":"&&(p(a,"if")&&p(a.previous,"else")?this._output.space_before_token=!0:this.print_newline()):m(a,r)&&this._flags.last_token.text!==")"&&this.print_newline():this._flags.multiline_frame&&E(this._flags.mode)&&this._flags.last_token.text===","&&this._last_last_text==="}"?this.print_newline():w==="SPACE"&&(this._output.space_before_token=!0);a.previous&&(a.previous.type===_.WORD||a.previous.type===_.RESERVED)&&(this._output.space_before_token=!0),this.print_token(a),this._flags.last_word=a.text,a.type===_.RESERVED&&(a.text==="do"?this._flags.do_block=!0:a.text==="if"?this._flags.if_block=!0:a.text==="import"?this._flags.import_block=!0:this._flags.import_block&&p(a,"from")&&(this._flags.import_block=!1))},d.prototype.handle_semicolon=function(a){this.start_of_statement(a)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(a);for(var v=this._tokens.peek();this._flags.mode===o.Statement&&!(this._flags.if_block&&p(v,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(a)},d.prototype.handle_string=function(a){a.text.startsWith("`")&&a.newlines===0&&a.whitespace_before===""&&(a.previous.text===")"||this._flags.last_token.type===_.WORD)||(this.start_of_statement(a)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(a),this._flags.last_token.type===_.RESERVED||this._flags.last_token.type===_.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===_.COMMA||this._flags.last_token.type===_.START_EXPR||this._flags.last_token.type===_.EQUALS||this._flags.last_token.type===_.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(a):a.text.startsWith("`")&&this._flags.last_token.type===_.END_EXPR&&(a.previous.text==="]"||a.previous.text===")")&&a.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(a)},d.prototype.handle_equals=function(a){this.start_of_statement(a)||this.handle_whitespace_and_comments(a),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(a),this._output.space_before_token=!0},d.prototype.handle_comma=function(a){this.handle_whitespace_and_comments(a,!0),this.print_token(a),this._output.space_before_token=!0,this._flags.declaration_statement?(S(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(a)):this._flags.mode===o.ObjectLiteral||this._flags.mode===o.Statement&&this._flags.parent.mode===o.ObjectLiteral?(this._flags.mode===o.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(a)},d.prototype.handle_operator=function(a){var v=a.text==="*"&&(m(this._flags.last_token,["function","yield"])||l(this._flags.last_token.type,[_.START_BLOCK,_.COMMA,_.END_BLOCK,_.SEMICOLON])),w=l(a.text,["-","+"])&&(l(this._flags.last_token.type,[_.START_BLOCK,_.START_EXPR,_.EQUALS,_.OPERATOR])||l(this._flags.last_token.text,r)||this._flags.last_token.text===",");if(!this.start_of_statement(a)){var N=!v;this.handle_whitespace_and_comments(a,N)}if(a.text==="*"&&this._flags.last_token.type===_.DOT){this.print_token(a);return}if(a.text==="::"){this.print_token(a);return}if(l(a.text,["-","+"])&&this.start_of_object_property()){this.print_token(a);return}if(this._flags.last_token.type===_.OPERATOR&&l(this._options.operator_position,h)&&this.allow_wrap_or_preserved_newline(a),a.text===":"&&this._flags.in_case){this.print_token(a),this._flags.in_case=!1,this._flags.case_body=!0,this._tokens.peek().type!==_.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 C=!0,A=!0,I=!1;if(a.text===":"?this._flags.ternary_depth===0?C=!1:(this._flags.ternary_depth-=1,I=!0):a.text==="?"&&(this._flags.ternary_depth+=1),!w&&!v&&this._options.preserve_newlines&&l(a.text,u)){var P=a.text===":",$=P&&I,M=P&&!I;switch(this._options.operator_position){case k.before_newline:this._output.space_before_token=!M,this.print_token(a),(!P||$)&&this.allow_wrap_or_preserved_newline(a),this._output.space_before_token=!0;return;case k.after_newline:this._output.space_before_token=!0,!P||$?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(a):this._output.space_before_token=!1,this.print_token(a),this._output.space_before_token=!0;return;case k.preserve_newline:M||this.allow_wrap_or_preserved_newline(a),C=!(this._output.just_added_newline()||M),this._output.space_before_token=C,this.print_token(a),this._output.space_before_token=!0;return}}if(v){this.allow_wrap_or_preserved_newline(a),C=!1;var D=this._tokens.peek();A=D&&l(D.type,[_.WORD,_.RESERVED])}else if(a.text==="...")this.allow_wrap_or_preserved_newline(a),C=this._flags.last_token.type===_.START_BLOCK,A=!1;else if(l(a.text,["--","++","!","~"])||w){if((this._flags.last_token.type===_.COMMA||this._flags.last_token.type===_.START_EXPR)&&this.allow_wrap_or_preserved_newline(a),C=!1,A=!1,a.newlines&&(a.text==="--"||a.text==="++"||a.text==="~")){var q=m(this._flags.last_token,O)&&a.newlines;q&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(q,!0)}this._flags.last_token.text===";"&&S(this._flags.mode)&&(C=!0),this._flags.last_token.type===_.RESERVED?C=!0:this._flags.last_token.type===_.END_EXPR?C=!(this._flags.last_token.text==="]"&&(a.text==="--"||a.text==="++")):this._flags.last_token.type===_.OPERATOR&&(C=l(a.text,["--","-","++","+"])&&l(this._flags.last_token.text,["--","-","++","+"]),l(a.text,["+","-"])&&l(this._flags.last_token.text,["--","++"])&&(A=!0)),(this._flags.mode===o.BlockStatement&&!this._flags.inline_frame||this._flags.mode===o.Statement)&&(this._flags.last_token.text==="{"||this._flags.last_token.text===";")&&this.print_newline()}this._output.space_before_token=this._output.space_before_token||C,this.print_token(a),this._output.space_before_token=A},d.prototype.handle_block_comment=function(a,v){if(this._output.raw){this._output.add_raw_token(a),a.directives&&a.directives.preserve==="end"&&(this._output.raw=this._options.test_output_raw);return}if(a.directives){this.print_newline(!1,v),this.print_token(a),a.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!i.newline.test(a.text)&&!a.newlines){this._output.space_before_token=!0,this.print_token(a),this._output.space_before_token=!0;return}else this.print_block_commment(a,v)},d.prototype.print_block_commment=function(a,v){var w=T(a.text),N,C=!1,A=!1,I=a.whitespace_before,P=I.length;if(this.print_newline(!1,v),this.print_token_line_indentation(a),this._output.add_token(w[0]),this.print_newline(!1,v),w.length>1){for(w=w.slice(1),C=c(w,"*"),A=y(w,I),C&&(this._flags.alignment=1),N=0;N<w.length;N++)C?(this.print_token_line_indentation(a),this._output.add_token(b(w[N]))):A&&w[N]?(this.print_token_line_indentation(a),this._output.add_token(w[N].substring(P))):(this._output.current_line.set_indent(-1),this._output.add_token(w[N])),this.print_newline(!1,v);this._flags.alignment=0}},d.prototype.handle_comment=function(a,v){a.newlines?this.print_newline(!1,v):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(a),this.print_newline(!1,v)},d.prototype.handle_dot=function(a){this.start_of_statement(a)||this.handle_whitespace_and_comments(a,!0),this._flags.last_token.text.match("^[0-9]+$")&&(this._output.space_before_token=!0),m(this._flags.last_token,O)?this._output.space_before_token=!1:this.allow_wrap_or_preserved_newline(a,this._flags.last_token.text===")"&&this._options.break_chained_methods),this._options.unindent_chained_methods&&this._output.just_added_newline()&&this.deindent(),this.print_token(a)},d.prototype.handle_unknown=function(a,v){this.print_token(a),a.text[a.text.length-1]===`
`&&this.print_newline(!1,v)},d.prototype.handle_eof=function(a){for(;this._flags.mode===o.Statement;)this.restore_mode();this.handle_whitespace_and_comments(a)},beautifier$2.Beautifier=d,beautifier$2}var hasRequiredJavascript;function requireJavascript(){if(hasRequiredJavascript)return javascript.exports;hasRequiredJavascript=1;var e=requireBeautifier$2().Beautifier,t=requireOptions$2().Options;function i(s,n){var r=new e(s,n);return r.beautify()}return javascript.exports=i,javascript.exports.defaultOptions=function(){return new t},javascript.exports}var css={exports:{}},beautifier$1={},options$1={},hasRequiredOptions$1;function requireOptions$1(){if(hasRequiredOptions$1)return options$1;hasRequiredOptions$1=1;var e=requireOptions$3().Options;function t(i){e.call(this,i,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var s=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||s;var n=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var r=0;r<n.length;r++)n[r]!=="expand"?this.brace_style="collapse":this.brace_style=n[r]}return t.prototype=new e,options$1.Options=t,options$1}var hasRequiredBeautifier$1;function requireBeautifier$1(){if(hasRequiredBeautifier$1)return beautifier$1;hasRequiredBeautifier$1=1;var e=requireOptions$1().Options,t=requireOutput().Output,i=requireInputscanner().InputScanner,s=requireDirectives().Directives,n=new s(/\/\*/,/\*\//),r=/\r\n|[\r\n]/,u=/\r\n|[\r\n]/g,_=/\s/,l=/(?:\s|\n)+/g,b=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,g=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function p(m,O){this._source_text=m||"",this._options=new e(O),this._ch=null,this._input=null,this.NESTED_AT_RULE={page:!0,"font-face":!0,keyframes:!0,media:!0,supports:!0,document:!0},this.CONDITIONAL_GROUP_RULE={media:!0,supports:!0,document:!0},this.NON_SEMICOLON_NEWLINE_PROPERTY=["grid-template-areas","grid-template"]}return p.prototype.eatString=function(m){var O="";for(this._ch=this._input.next();this._ch;){if(O+=this._ch,this._ch==="\\")O+=this._input.next();else if(m.indexOf(this._ch)!==-1||this._ch===`
`)break;this._ch=this._input.next()}return O},p.prototype.eatWhitespace=function(m){for(var O=_.test(this._input.peek()),R=0;_.test(this._input.peek());)this._ch=this._input.next(),m&&this._ch===`
`&&(R===0||R<this._options.max_preserve_newlines)&&(R++,this._output.add_new_line(!0));return O},p.prototype.foundNestedPseudoClass=function(){for(var m=0,O=1,R=this._input.peek(O);R;){if(R==="{")return!0;if(R==="(")m+=1;else if(R===")"){if(m===0)return!1;m-=1}else if(R===";"||R==="}")return!1;O++,R=this._input.peek(O)}return!1},p.prototype.print_string=function(m){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(m)},p.prototype.preserveSingleSpace=function(m){m&&(this._output.space_before_token=!0)},p.prototype.indent=function(){this._indentLevel++},p.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},p.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var m=this._source_text,O=this._options.eol;O==="auto"&&(O=`
`,m&&r.test(m||"")&&(O=m.match(r)[0])),m=m.replace(u,`
`);var R=m.match(/^[\t ]*/)[0];this._output=new t(this._options,R),this._input=new i(m),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var k=0,h=!1,o=!1,f=!1,T=!1,E=!1,S=this._ch,c=!1,y,d,x;y=this._input.read(l),d=y!=="",x=S,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),S=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var a=this._input.read(b),v=n.get_directives(a);v&&v.ignore==="start"&&(a+=n.readIgnored(this._input)),this.print_string(a),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(g)),this.eatWhitespace(!0);else if(this._ch==="$"){this.preserveSingleSpace(d),this.print_string(this._ch);var w=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);w.match(/[ :]$/)&&(w=this.eatString(": ").replace(/\s+$/,""),this.print_string(w),this._output.space_before_token=!0),k===0&&w.indexOf(":")!==-1&&(o=!0,this.indent())}else if(this._ch==="@")if(this.preserveSingleSpace(d),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),k===0&&N.indexOf(":")!==-1?(o=!0,this.indent()):N in this.NESTED_AT_RULE?(this._nestedLevel+=1,N in this.CONDITIONAL_GROUP_RULE&&(f=!0)):k===0&&!o&&(T=!0)}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(d),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")o&&(o=!1,this.outdent()),T=!1,f?(f=!1,h=this._indentLevel>=this._nestedLevel):h=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&h&&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)):(x==="("?this._output.space_before_token=!1:x!==","&&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(),x==="{"&&this._output.trim(!0),o&&(this.outdent(),o=!1),this.print_string(this._ch),h=!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 C=0;C<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;C++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[C])){c=!0;break}(h||f)&&!(this._input.lookBack("&")||this.foundNestedPseudoClass())&&!this._input.lookBack("(")&&!T&&k===0?(this.print_string(":"),o||(o=!0,this._output.space_before_token=!0,this.eatWhitespace(!0),this.indent())):(this._input.lookBack(" ")&&(this._output.space_before_token=!0),this._input.peek()===":"?(this._ch=this._input.next(),this.print_string("::")):this.print_string(":"))}else if(this._ch==='"'||this._ch==="'"){var A=x==='"'||x==="'";this.preserveSingleSpace(A||d),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(this._ch===";")c=!1,k===0?(o&&(this.outdent(),o=!1),T=!1,this.print_string(this._ch),this.eatWhitespace(!0),this._input.peek()!=="/"&&this._output.add_new_line()):(this.print_string(this._ch),this.eatWhitespace(!0),this._output.space_before_token=!0);else if(this._ch==="(")if(this._input.lookBack("url"))this.print_string(this._ch),this.eatWhitespace(),k++,this.indent(),this._ch=this._input.next(),this._ch===")"||this._ch==='"'||this._ch==="'"?this._input.back():this._ch&&(this.print_string(this._ch+this.eatString(")")),k&&(k--,this.outdent()));else{var I=!1;this._input.lookBack("with")&&(I=!0),this.preserveSingleSpace(d||I),this.print_string(this._ch),o&&x==="$"&&this._options.selector_separator_newline?(this._output.add_new_line(),E=!0):(this.eatWhitespace(),k++,this.indent())}else if(this._ch===")")k&&(k--,this.outdent()),E&&this._input.peek()===";"&&this._options.selector_separator_newline&&(E=!1,this.outdent(),this._output.add_new_line()),this.print_string(this._ch);else if(this._ch===",")this.print_string(this._ch),this.eatWhitespace(!0),this._options.selector_separator_newline&&(!o||E)&&k===0&&!T?this._output.add_new_line():this._output.space_before_token=!0;else if((this._ch===">"||this._ch==="+"||this._ch==="~")&&!o&&k===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&&_.test(this._ch)&&(this._ch=""));else if(this._ch==="]")this.print_string(this._ch);else if(this._ch==="[")this.preserveSingleSpace(d),this.print_string(this._ch);else if(this._ch==="=")this.eatWhitespace(),this.print_string("="),_.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 P=x==='"'||x==="'";this.preserveSingleSpace(P||d),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===`
`&&c&&this._output.add_new_line()}var $=this._output.get_code(O);return $},beautifier$1.Beautifier=p,beautifier$1}var hasRequiredCss;function requireCss(){if(hasRequiredCss)return css.exports;hasRequiredCss=1;var e=requireBeautifier$1().Beautifier,t=requireOptions$1().Options;function i(s,n){var r=new e(s,n);return r.beautify()}return css.exports=i,css.exports.defaultOptions=function(){return new t},css.exports}var html={exports:{}},beautifier={},options={},hasRequiredOptions;function requireOptions(){if(hasRequiredOptions)return options;hasRequiredOptions=1;var e=requireOptions$3().Options;function t(i){e.call(this,i,"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 t.prototype=new e,options.Options=t,options}var tokenizer={},hasRequiredTokenizer;function requireTokenizer(){if(hasRequiredTokenizer)return tokenizer;hasRequiredTokenizer=1;var e=requireTokenizer$2().Tokenizer,t=requireTokenizer$2().TOKEN,i=requireDirectives().Directives,s=requireTemplatablepattern().TemplatablePattern,n=requirePattern().Pattern,r={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:t.START,RAW:t.RAW,EOF:t.EOF},u=new i(/<\!--/,/-->/),_=function(l,b){e.call(this,l,b),this._current_tag_name="";var g=new s(this._input).read_options(this._options),p=new n(this._input);if(this.__patterns={word:g.until(/[\n\r\t <]/),word_control_flow_close_excluded:g.until(/[\n\r\t <}]/),single_quote:g.until_after(/'/),double_quote:g.until_after(/"/),attribute:g.until(/[\n\r\t =>]|\/>/),element_name:g.until(/[\n\r\t >\/]/),angular_control_flow_start:p.matching(/\@[a-zA-Z]+[^({]*[({]/),handlebars_comment:p.starting_with(/{{!--/).until_after(/--}}/),handlebars:p.starting_with(/{{/).until_after(/}}/),handlebars_open:p.until(/[\n\r\t }]/),handlebars_raw_close:p.until(/}}/),comment:p.starting_with(/<!--/).until_after(/-->/),cdata:p.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:p.starting_with(/<!\[/).until_after(/]>/),processing:p.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 m=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=p.matching(m).until_after(m)}};return _.prototype=new e,_.prototype._is_comment=function(l){return!1},_.prototype._is_opening=function(l){return l.type===r.TAG_OPEN||l.type===r.CONTROL_FLOW_OPEN},_.prototype._is_closing=function(l,b){return l.type===r.TAG_CLOSE&&b&&((l.text===">"||l.text==="/>")&&b.text[0]==="<"||l.text==="}}"&&b.text[0]==="{"&&b.text[1]==="{")||l.type===r.CONTROL_FLOW_CLOSE&&l.text==="}"&&b.text.endsWith("{")},_.prototype._reset=function(){this._current_tag_name=""},_.prototype._get_next_token=function(l,b){var g=null;this._readWhitespace();var p=this._input.peek();return p===null?this._create_token(r.EOF,""):(g=g||this._read_open_handlebars(p,b),g=g||this._read_attribute(p,l,b),g=g||this._read_close(p,b),g=g||this._read_control_flows(p,b),g=g||this._read_raw_content(p,l,b),g=g||this._read_content_word(p,b),g=g||this._read_comment_or_cdata(p),g=g||this._read_processing(p),g=g||this._read_open(p,b),g=g||this._create_token(r.UNKNOWN,this._input.next()),g)},_.prototype._read_comment_or_cdata=function(l){var b=null,g=null,p=null;if(l==="<"){var m=this._input.peek(1);m==="!"&&(g=this.__patterns.comment.read(),g?(p=u.get_directives(g),p&&p.ignore==="start"&&(g+=u.readIgnored(this._input))):g=this.__patterns.cdata.read()),g&&(b=this._create_token(r.COMMENT,g),b.directives=p)}return b},_.prototype._read_processing=function(l){var b=null,g=null,p=null;if(l==="<"){var m=this._input.peek(1);(m==="!"||m==="?")&&(g=this.__patterns.conditional_comment.read(),g=g||this.__patterns.processing.read()),g&&(b=this._create_token(r.COMMENT,g),b.directives=p)}return b},_.prototype._read_open=function(l,b){var g=null,p=null;return(!b||b.type===r.CONTROL_FLOW_OPEN)&&l==="<"&&(g=this._input.next(),this._input.peek()==="/"&&(g+=this._input.next()),g+=this.__patterns.element_name.read(),p=this._create_token(r.TAG_OPEN,g)),p},_.prototype._read_open_handlebars=function(l,b){var g=null,p=null;return(!b||b.type===r.CONTROL_FLOW_OPEN)&&this._options.indent_handlebars&&l==="{"&&this._input.peek(1)==="{"&&(this._input.peek(2)==="!"?(g=this.__patterns.handlebars_comment.read(),g=g||this.__patterns.handlebars.read(),p=this._create_token(r.COMMENT,g)):(g=this.__patterns.handlebars_open.read(),p=this._create_token(r.TAG_OPEN,g))),p},_.prototype._read_control_flows=function(l,b){var g="",p=null;if(!this._options.templating.includes("angular")||!this._options.indent_handlebars)return p;if(l==="@"){if(g=this.__patterns.angular_control_flow_start.read(),g==="")return p;for(var m=g.endsWith("(")?1:0,O=0;!(g.endsWith("{")&&m===O);){var R=this._input.next();if(R===null)break;R==="("?m++:R===")"&&O++,g+=R}p=this._create_token(r.CONTROL_FLOW_OPEN,g)}else l==="}"&&b&&b.type===r.CONTROL_FLOW_OPEN&&(g=this._input.next(),p=this._create_token(r.CONTROL_FLOW_CLOSE,g));return p},_.prototype._read_close=function(l,b){var g=null,p=null;return b&&b.type===r.TAG_OPEN&&(b.text[0]==="<"&&(l===">"||l==="/"&&this._input.peek(1)===">")?(g=this._input.next(),l==="/"&&(g+=this._input.next()),p=this._create_token(r.TAG_CLOSE,g)):b.text[0]==="{"&&l==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),p=this._create_token(r.TAG_CLOSE,"}}"))),p},_.prototype._read_attribute=function(l,b,g){var p=null,m="";if(g&&g.text[0]==="<")if(l==="=")p=this._create_token(r.EQUALS,this._input.next());else if(l==='"'||l==="'"){var O=this._input.next();l==='"'?O+=this.__patterns.double_quote.read():O+=this.__patterns.single_quote.read(),p=this._create_token(r.VALUE,O)}else m=this.__patterns.attribute.read(),m&&(b.type===r.EQUALS?p=this._create_token(r.VALUE,m):p=this._create_token(r.ATTRIBUTE,m));return p},_.prototype._is_content_unformatted=function(l){return this._options.void_elements.indexOf(l)===-1&&(this._options.content_unformatted.indexOf(l)!==-1||this._options.unformatted.indexOf(l)!==-1)},_.prototype._read_raw_content=function(l,b,g){var p="";if(g&&g.text[0]==="{")p=this.__patterns.handlebars_raw_close.read();else if(b.type===r.TAG_CLOSE&&b.opened.text[0]==="<"&&b.text[0]!=="/"){var m=b.opened.text.substr(1).toLowerCase();if(m==="script"||m==="style"){var O=this._read_comment_or_cdata(l);if(O)return O.type=r.TEXT,O;p=this._input.readUntil(new RegExp("</"+m+"[\\n\\r\\t ]*?>","ig"))}else this._is_content_unformatted(m)&&(p=this._input.readUntil(new RegExp("</"+m+"[\\n\\r\\t ]*?>","ig")))}return p?this._create_token(r.TEXT,p):null},_.prototype._read_content_word=function(l,b){var g="";if(this._options.unformatted_content_delimiter&&l===this._options.unformatted_content_delimiter[0]&&(g=this.__patterns.unformatted_content_delimiter.read()),g||(g=b&&b.type===r.CONTROL_FLOW_OPEN?this.__patterns.word_control_flow_close_excluded.read():this.__patterns.word.read()),g)return this._create_token(r.TEXT,g)},tokenizer.Tokenizer=_,tokenizer.TOKEN=r,tokenizer}var hasRequiredBeautifier;function requireBeautifier(){if(hasRequiredBeautifier)return beautifier;hasRequiredBeautifier=1;var e=requireOptions().Options,t=requireOutput().Output,i=requireTokenizer().Tokenizer,s=requireTokenizer().TOKEN,n=/\r\n|[\r\n]/,r=/\r\n|[\r\n]/g,u=function(h,o){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=h.max_preserve_newlines,this.preserve_newlines=h.preserve_newlines,this._output=new t(h,o)};u.prototype.current_line_has_match=function(h){return this._output.current_line.has_match(h)},u.prototype.set_space_before_token=function(h,o){this._output.space_before_token=h,this._output.non_breaking_space=o},u.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},u.prototype.add_raw_token=function(h){this._output.add_raw_token(h)},u.prototype.print_preserved_newlines=function(h){var o=0;h.type!==s.TEXT&&h.previous.type!==s.TEXT&&(o=h.newlines?1:0),this.preserve_newlines&&(o=h.newlines<this.max_preserve_newlines+1?h.newlines:this.max_preserve_newlines+1);for(var f=0;f<o;f++)this.print_newline(f>0);return o!==0},u.prototype.traverse_whitespace=function(h){return h.whitespace_before||h.newlines?(this.print_preserved_newlines(h)||(this._output.space_before_token=!0),!0):!1},u.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},u.prototype.print_newline=function(h){this._output.add_new_line(h)},u.prototype.print_token=function(h){h.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(h.text))},u.prototype.indent=function(){this.indent_level++},u.prototype.deindent=function(){this.indent_level>0&&(this.indent_level--,this._output.set_indent(this.indent_level,this.alignment_size))},u.prototype.get_full_indent=function(h){return h=this.indent_level+(h||0),h<1?"":this._output.get_indent_string(h)};var _=function(h){for(var o=null,f=h.next;f.type!==s.EOF&&h.closed!==f;){if(f.type===s.ATTRIBUTE&&f.text==="type"){f.next&&f.next.type===s.EQUALS&&f.next.next&&f.next.next.type===s.VALUE&&(o=f.next.next.text);break}f=f.next}return o},l=function(h,o){var f=null,T=null;return o.closed?(h==="script"?f="text/javascript":h==="style"&&(f="text/css"),f=_(o)||f,f.search("text/css")>-1?T="css":f.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?T="javascript":f.search(/(text|application|dojo)\/(x-)?(html)/)>-1?T="html":f.search(/test\/null/)>-1&&(T="null"),T):null};function b(h,o){return o.indexOf(h)!==-1}function g(h,o,f){this.parent=h||null,this.tag=o?o.tag_name:"",this.indent_level=f||0,this.parser_token=o||null}function p(h){this._printer=h,this._current_frame=null}p.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},p.prototype.record_tag=function(h){var o=new g(this._current_frame,h,this._printer.indent_level);this._current_frame=o},p.prototype._try_pop_frame=function(h){var o=null;return h&&(o=h.parser_token,this._printer.indent_level=h.indent_level,this._current_frame=h.parent),o},p.prototype._get_frame=function(h,o){for(var f=this._current_frame;f&&h.indexOf(f.tag)===-1;){if(o&&o.indexOf(f.tag)!==-1){f=null;break}f=f.parent}return f},p.prototype.try_pop=function(h,o){var f=this._get_frame([h],o);return this._try_pop_frame(f)},p.prototype.indent_to_tag=function(h){var o=this._get_frame(h);o&&(this._printer.indent_level=o.indent_level)};function m(h,o,f,T){this._source_text=h||"",o=o||{},this._js_beautify=f,this._css_beautify=T,this._tag_stack=null;var E=new e(o,"html");this._options=E,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"}m.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var h=this._source_text,o=this._options.eol;this._options.eol==="auto"&&(o=`
`,h&&n.test(h)&&(o=h.match(n)[0])),h=h.replace(r,`
`);var f=h.match(/^[\t ]*/)[0],T={text:"",type:""},E=new O,S=new u(this._options,f),c=new i(h,this._options).tokenize();this._tag_stack=new p(S);for(var y=null,d=c.next();d.type!==s.EOF;)d.type===s.TAG_OPEN||d.type===s.COMMENT?(y=this._handle_tag_open(S,d,E,T,c),E=y):d.type===s.ATTRIBUTE||d.type===s.EQUALS||d.type===s.VALUE||d.type===s.TEXT&&!E.tag_complete?y=this._handle_inside_tag(S,d,E,T):d.type===s.TAG_CLOSE?y=this._handle_tag_close(S,d,E):d.type===s.TEXT?y=this._handle_text(S,d,E):d.type===s.CONTROL_FLOW_OPEN?y=this._handle_control_flow_open(S,d):d.type===s.CONTROL_FLOW_CLOSE?y=this._handle_control_flow_close(S,d):S.add_raw_token(d),T=y,d=c.next();var x=S._output.get_code(o);return x},m.prototype._handle_control_flow_open=function(h,o){var f={text:o.text,type:o.type};return h.set_space_before_token(o.newlines||o.whitespace_before!=="",!0),o.newlines?h.print_preserved_newlines(o):h.set_space_before_token(o.newlines||o.whitespace_before!=="",!0),h.print_token(o),h.indent(),f},m.prototype._handle_control_flow_close=function(h,o){var f={text:o.text,type:o.type};return h.deindent(),o.newlines?h.print_preserved_newlines(o):h.set_space_before_token(o.newlines||o.whitespace_before!=="",!0),h.print_token(o),f},m.prototype._handle_tag_close=function(h,o,f){var T={text:o.text,type:o.type};return h.alignment_size=0,f.tag_complete=!0,h.set_space_before_token(o.newlines||o.whitespace_before!=="",!0),f.is_unformatted?h.add_raw_token(o):(f.tag_start_char==="<"&&(h.set_space_before_token(o.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&f.has_wrapped_attrs&&h.print_newline(!1)),h.print_token(o)),f.indent_content&&!(f.is_unformatted||f.is_content_unformatted)&&(h.indent(),f.indent_content=!1),!f.is_inline_element&&!(f.is_unformatted||f.is_content_unformatted)&&h.set_wrap_point(),T},m.prototype._handle_inside_tag=function(h,o,f,T){var E=f.has_wrapped_attrs,S={text:o.text,type:o.type};return h.set_space_before_token(o.newlines||o.whitespace_before!=="",!0),f.is_unformatted?h.add_raw_token(o):f.tag_start_char==="{"&&o.type===s.TEXT?h.print_preserved_newlines(o)?(o.newlines=0,h.add_raw_token(o)):h.print_token(o):(o.type===s.ATTRIBUTE?h.set_space_before_token(!0):(o.type===s.EQUALS||o.type===s.VALUE&&o.previous.type===s.EQUALS)&&h.set_space_before_token(!1),o.type===s.ATTRIBUTE&&f.tag_start_char==="<"&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(h.traverse_whitespace(o),E=E||o.newlines!==0),this._is_wrap_attributes_force&&f.attr_count>=this._options.wrap_attributes_min_attrs&&(T.type!==s.TAG_OPEN||this._is_wrap_attributes_force_expand_multiline)&&(h.print_newline(!1),E=!0)),h.print_token(o),E=E||h.previous_token_wrapped(),f.has_wrapped_attrs=E),S},m.prototype._handle_text=function(h,o,f){var T={text:o.text,type:"TK_CONTENT"};return f.custom_beautifier_name?this._print_custom_beatifier_text(h,o,f):f.is_unformatted||f.is_content_unformatted?h.add_raw_token(o):(h.traverse_whitespace(o),h.print_token(o)),T},m.prototype._print_custom_beatifier_text=function(h,o,f){var T=this;if(o.text!==""){var E=o.text,S,c=1,y="",d="";f.custom_beautifier_name==="javascript"&&typeof this._js_beautify=="function"?S=this._js_beautify:f.custom_beautifier_name==="css"&&typeof this._css_beautify=="function"?S=this._css_beautify:f.custom_beautifier_name==="html"&&(S=function(C,A){var I=new m(C,A,T._js_beautify,T._css_beautify);return I.beautify()}),this._options.indent_scripts==="keep"?c=0:this._options.indent_scripts==="separate"&&(c=-h.indent_level);var x=h.get_full_indent(c);if(E=E.replace(/\n[ \t]*$/,""),f.custom_beautifier_name!=="html"&&E[0]==="<"&&E.match(/^(<!--|<!\[CDATA\[)/)){var a=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(E);if(!a){h.add_raw_token(o);return}y=x+a[1]+`
`,E=a[4],a[5]&&(d=x+a[5]),E=E.replace(/\n[ \t]*$/,""),(a[2]||a[3].indexOf(`
`)!==-1)&&(a=a[3].match(/[ \t]+$/),a&&(o.whitespace_before=a[0]))}if(E)if(S){var v=function(){this.eol=`
`};v.prototype=this._options.raw_options;var w=new v;E=S(x+E,w)}else{var N=o.whitespace_before;N&&(E=E.replace(new RegExp(`
(`+N+")?","g"),`
`)),E=x+E.replace(/\n/g,`
`+x)}y&&(E?E=y+E+`
`+d:E=y+d),h.print_newline(!1),E&&(o.text=E,o.whitespace_before="",o.newlines=0,h.add_raw_token(o),h.print_newline(!0))}},m.prototype._handle_tag_open=function(h,o,f,T,E){var S=this._get_tag_open_token(o);if((f.is_unformatted||f.is_content_unformatted)&&!f.is_empty_element&&o.type===s.TAG_OPEN&&!S.is_start_tag?(h.add_raw_token(o),S.start_tag_token=this._tag_stack.try_pop(S.tag_name)):(h.traverse_whitespace(o),this._set_tag_position(h,o,S,f,T),S.is_inline_element||h.set_wrap_point(),h.print_token(o)),S.is_start_tag&&this._is_wrap_attributes_force){var c=0,y;do y=E.peek(c),y.type===s.ATTRIBUTE&&(S.attr_count+=1),c+=1;while(y.type!==s.EOF&&y.type!==s.TAG_CLOSE)}return(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(S.alignment_size=o.text.length+1),!S.tag_complete&&!S.is_unformatted&&(h.alignment_size=S.alignment_size),S};var O=function(h,o){if(this.parent=h||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="",!o)this.tag_complete=!0;else{var f;this.tag_start_char=o.text[0],this.text=o.text,this.tag_start_char==="<"?(f=o.text.match(/^<([^\s>]*)/),this.tag_check=f?f[1]:""):(f=o.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=f?f[1]:"",(o.text.startsWith("{{#>")||o.text.startsWith("{{~#>"))&&this.tag_check[0]===">"&&(this.tag_check===">"&&o.next!==null?this.tag_check=o.next.text.split(" ")[0]:this.tag_check=o.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),o.type===s.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||o.closed&&o.closed.text==="/>";var T=2;this.tag_start_char==="{"&&this.text.length>=3&&this.text.charAt(2)==="~"&&(T=3),this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(this.text.length<3||/[^#\^]/.test(this.text.charAt(T)))}};m.prototype._get_tag_open_token=function(h){var o=new O(this._tag_stack.get_parser_token(),h);return o.alignment_size=this._options.wrap_attributes_indent_size,o.is_end_tag=o.is_end_tag||b(o.tag_check,this._options.void_elements),o.is_empty_element=o.tag_complete||o.is_start_tag&&o.is_end_tag,o.is_unformatted=!o.tag_complete&&b(o.tag_check,this._options.unformatted),o.is_content_unformatted=!o.is_empty_element&&b(o.tag_check,this._options.content_unformatted),o.is_inline_element=b(o.tag_name,this._options.inline)||this._options.inline_custom_elements&&o.tag_name.includes("-")||o.tag_start_char==="{",o},m.prototype._set_tag_position=function(h,o,f,T,E){if(f.is_empty_element||(f.is_end_tag?f.start_tag_token=this._tag_stack.try_pop(f.tag_name):(this._do_optional_end_element(f)&&(f.is_inline_element||h.print_newline(!1)),this._tag_stack.record_tag(f),(f.tag_name==="script"||f.tag_name==="style")&&!(f.is_unformatted||f.is_content_unformatted)&&(f.custom_beautifier_name=l(f.tag_check,o)))),b(f.tag_check,this._options.extra_liners)&&(h.print_newline(!1),h._output.just_added_blankline()||h.print_newline(!0)),f.is_empty_element){if(f.tag_start_char==="{"&&f.tag_check==="else"){this._tag_stack.indent_to_tag(["if","unless","each"]),f.indent_content=!0;var S=h.current_line_has_match(/{{#if/);S||h.print_newline(!1)}f.tag_name==="!--"&&E.type===s.TAG_CLOSE&&T.is_end_tag&&f.text.indexOf(`
`)===-1||(f.is_inline_element||f.is_unformatted||h.print_newline(!1),this._calcluate_parent_multiline(h,f))}else if(f.is_end_tag){var c=!1;c=f.start_tag_token&&f.start_tag_token.multiline_content,c=c||!f.is_inline_element&&!(T.is_inline_element||T.is_unformatted)&&!(E.type===s.TAG_CLOSE&&f.start_tag_token===T)&&E.type!=="TK_CONTENT",(f.is_content_unformatted||f.is_unformatted)&&(c=!1),c&&h.print_newline(!1)}else f.indent_content=!f.custom_beautifier_name,f.tag_start_char==="<"&&(f.tag_name==="html"?f.indent_content=this._options.indent_inner_html:f.tag_name==="head"?f.indent_content=this._options.indent_head_inner_html:f.tag_name==="body"&&(f.indent_content=this._options.indent_body_inner_html)),!(f.is_inline_element||f.is_unformatted)&&(E.type!=="TK_CONTENT"||f.is_content_unformatted)&&h.print_newline(!1),this._calcluate_parent_multiline(h,f)},m.prototype._calcluate_parent_multiline=function(h,o){o.parent&&h._output.just_added_newline()&&!((o.is_inline_element||o.is_unformatted)&&o.parent.is_inline_element)&&(o.parent.multiline_content=!0)};var R=["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"],k=["a","audio","del","ins","map","noscript","video"];return m.prototype._do_optional_end_element=function(h){var o=null;if(!(h.is_empty_element||!h.is_start_tag||!h.parent)){if(h.tag_name==="body")o=o||this._tag_stack.try_pop("head");else if(h.tag_name==="li")o=o||this._tag_stack.try_pop("li",["ol","ul","menu"]);else if(h.tag_name==="dd"||h.tag_name==="dt")o=o||this._tag_stack.try_pop("dt",["dl"]),o=o||this._tag_stack.try_pop("dd",["dl"]);else if(h.parent.tag_name==="p"&&R.indexOf(h.tag_name)!==-1){var f=h.parent.parent;(!f||k.indexOf(f.tag_name)===-1)&&(o=o||this._tag_stack.try_pop("p"))}else h.tag_name==="rp"||h.tag_name==="rt"?(o=o||this._tag_stack.try_pop("rt",["ruby","rtc"]),o=o||this._tag_stack.try_pop("rp",["ruby","rtc"])):h.tag_name==="optgroup"?o=o||this._tag_stack.try_pop("optgroup",["select"]):h.tag_name==="option"?o=o||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):h.tag_name==="colgroup"?o=o||this._tag_stack.try_pop("caption",["table"]):h.tag_name==="thead"?(o=o||this._tag_stack.try_pop("caption",["table"]),o=o||this._tag_stack.try_pop("colgroup",["table"])):h.tag_name==="tbody"||h.tag_name==="tfoot"?(o=o||this._tag_stack.try_pop("caption",["table"]),o=o||this._tag_stack.try_pop("colgroup",["table"]),o=o||this._tag_stack.try_pop("thead",["table"]),o=o||this._tag_stack.try_pop("tbody",["table"])):h.tag_name==="tr"?(o=o||this._tag_stack.try_pop("caption",["table"]),o=o||this._tag_stack.try_pop("colgroup",["table"]),o=o||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(h.tag_name==="th"||h.tag_name==="td")&&(o=o||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),o=o||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return h.parent=this._tag_stack.get_parser_token(),o}},beautifier.Beautifier=m,beautifier}var hasRequiredHtml;function requireHtml(){if(hasRequiredHtml)return html.exports;hasRequiredHtml=1;var e=requireBeautifier().Beautifier,t=requireOptions().Options;function i(s,n,r,u){var _=new e(s,n,r,u);return _.beautify()}return html.exports=i,html.exports.defaultOptions=function(){return new t},html.exports}var hasRequiredSrc;function requireSrc(){if(hasRequiredSrc)return src;hasRequiredSrc=1;var e=requireJavascript(),t=requireCss(),i=requireHtml();function s(n,r,u,_){return u=u||e,_=_||t,i(n,r,u,_)}return s.defaultOptions=i.defaultOptions,src.js=e,src.css=t,src.html=s,src}(function(e){function t(i,s,n){var r=function(u,_){return i.js_beautify(u,_)};return r.js=i.js_beautify,r.css=s.css_beautify,r.html=n.html_beautify,r.js_beautify=i.js_beautify,r.css_beautify=s.css_beautify,r.html_beautify=n.html_beautify,r}(function(i){var s=requireSrc();s.js_beautify=s.js,s.css_beautify=s.css,s.html_beautify=s.html,i.exports=t(s,s,s)})(e)})(js);var jsExports=js.exports;const jsBeautify=getDefaultExportFromCjs(jsExports);let vTextNodes=[];function initVTextNodes(e){let t=0;vTextNodes=[];for(let i=0;i<e.length;i++){const s=e[i];vTextNodes.push({text:s,ignore:s.ignore||!1,offset:s.ignore?-1:t}),s.ignore||(t+=s.textContent?s.textContent.length:0)}}function splitVTextNode(e,t){var s;let i=vTextNodes.findIndex(n=>n.text===e);if(i!==-1){const r={text:vTextNodes[i].text.splitText(t),ignore:vTextNodes[i].ignore,offset:vTextNodes[i].offset+(((s=vTextNodes[i].text.textContent)==null?void 0:s.length)||0)};return vTextNodes.splice(i+1,0,r),r}else console.error("bug,找不到可以splitVTextNode的节点,请联系开发人员")}function sliceVTextNode(e,t,i=!1){const s=vTextNodes.findIndex(r=>r.text===e.text),n=vTextNodes.findIndex(r=>r.text===t.text);if(s!==-1&&n!==-1){let r=vTextNodes.slice(s,n);return r=i?r.filter(u=>!u.ignore):r,r.map(u=>u.text)}else console.error("bug,找不到可以sliceVTextNode的节点,请联系开发人员")}function getTextContainer(e){let t=vTextNodes.filter(s=>!s.ignore),i=t.findIndex(s=>s.offset+s.text.length>=e);if(i!==-1)return t[i];console.error("bug,找不到可以getTextContainer的节点,请联系开发人员")}function getOptionalVText(e){let t=vTextNodes.findIndex(i=>i===e);if(t!==-1)for(t=t==0?0:t-1;t!==0;){if(!vTextNodes[t].ignore)return vTextNodes[t+1];t--}else console.error("bug,找不到可以getOptionalVText的节点,请联系开发人员")}function matchVText(e){const t=[],i=[];vTextNodes.map(s=>{const n=s.text.textContent,r=new RegExp(e,"g");let u;for(;n&&(u=r.exec(n))!==null;)t.unshift({text:s.text,start:u.index,end:r.lastIndex})});for(let s=0;s<t.length;s++){const n=t[s];splitVTextNode(n.text,n.end);const r=splitVTextNode(n.text,n.start);r&&i.push(r.text)}return i}const markSelector="data-selector",beautify=jsBeautify.html_beautify;let markContainer;class TextMark{constructor(t){L(this,"_element");L(this,"_selection");L(this,"onSelected",null);L(this,"onClick",null);const i=markContainer=this._element=t.el;this._selection=window.getSelection(),i.nodeType!==1&&this._onError("请挂载dom节点"),this._selection||this._onError("浏览器暂不支持标注,请查看文档支持浏览器版本"),mergeOptions(config,t.options),config.beautify&&this._beautifyHTML(i),config.ignoreClass.length>0&&this._setEleNoSelect(this._element,config.ignoreClass),initVTextNodes(getTextNodes(i,config.ignoreClass)),i.addEventListener("mouseup",this._onMouseUp.bind(this))}_beautifyHTML(t){t.innerHTML=beautify(t.innerHTML,{preserve_newlines:!1})}_setEleNoSelect(t,i){i.map(s=>{const n=t.querySelectorAll(`.${s}`);if(n)for(let r=0;r<n.length;r++){const u=n[r];u.style.userSelect="none"}})}_onClick(t){if(t.target!==null&&"dataset"in t.target){let i=t.target.dataset.selector;if(i){let s=document.querySelectorAll(`span[${markSelector}="${i}"]`);const{top:n,left:r}=getOffset(s[0],markContainer);this.onClick&&this.onClick({uid:i,offsetTop:n,offsetLeft:r})}}}_onError(t){throw new Error(t)}_onSelected(t){this.onSelected&&this.onSelected(t)}_onMouseUp(t){let i=this._selection;if(i==null)return;if(i.isCollapsed)return this._onClick&&this._onClick(t);const s=i.getRangeAt(0);this._captureSelection(s)}_captureSelection(t){let i=this._selection;if(!i)return;if(t.startContainer.nodeType!==3||t.endContainer.nodeType!==3)return i.removeAllRanges(),this._onError("只可选中文本节点");if(!config.isCover&&!t.storeRenderOther&&this.hasCoverSelector(t,markSelector))return i.removeAllRanges(),this._onError("不允许覆盖标注,详细请看配置文档,或设置isCover为true");const s=t.startContainer,n=t.endContainer;let r=splitVTextNode(n,t.endOffset);const u=splitVTextNode(s,t.startOffset);if(!u||!r||(config.ignoreClass.length>0&&(r=getOptionalVText(r)),!r))return;const _=sliceVTextNode(u,r,config.ignoreClass.length>0)||[],l=u.offset;let b="";_==null||_.map(g=>b+=g.textContent),this._onSelected({text:b,offset:l,hasStoreRender:hasOwn(t,"storeRenderOther"),textNodes:_,storeRenderOther:t&&t.storeRenderOther?t.storeRenderOther:{}}),i.removeAllRanges(),t.detach&&t.detach()}hasCoverSelector(t,i){var n;let s=!1;return(t.cloneContents().querySelector(`[${i}]`)||((n=t.commonAncestorContainer.parentNode)==null?void 0:n.nodeType)===1&&t.commonAncestorContainer.parentNode.getAttribute(i))&&(s=!0),s}destroy(){this._selection=null,this._element.removeEventListener("mouseup",this._onMouseUp)}renderStore(t){this._selection!=null&&t.map(i=>{const s=i.offset+i.text.length;let n=getTextContainer(i.offset),r=getTextContainer(s);if(n&&r){const u=s-r.offset,_=i.offset-n.offset,l={collapsed:!1,commonAncestorContainer:this._element,endContainer:r.text,endOffset:u,startContainer:n.text,startOffset:_,storeRenderOther:i};this._captureSelection(l)}})}findWord(t){return this.beautifyHTML(),t?matchVText(t):null}repaintRange(t){let{uuid:i,className:s,textNodes:n}=t,r=i||Guid(),u=null,_=null;return n.forEach(l=>{if(l.parentNode){let b=document.createElement("span");if(s?b.className=s:b.style.background="rgba(255, 255, 0, 0.3)",b.setAttribute(markSelector,r),l.parentNode.replaceChild(b,l),b.appendChild(l),u==null){const g=getOffset(b,markContainer);u=g.top,_=g.left}}}),{uid:r,offsetTop:u,offsetLeft:_}}deleteMark(t){let i=document.querySelectorAll(`span[${markSelector}="${t}"]`);this._removeMark(i)}replaceMarkClass(t,i){document.querySelectorAll(`span[${markSelector}="${t}"]`).forEach(n=>{n.className=i})}_removeMark(t){t.forEach(i=>{if(i.parentNode){const s=document.createDocumentFragment();let n=i.childNodes;for(let r=0;r<n.length;r++){const u=n[r];s.appendChild(u.cloneNode(!0))}i.parentNode.replaceChild(s,i)}}),initVTextNodes(getTextNodes(this._element,config.ignoreClass))}beautifyHTML(){this._beautifyHTML(this._element),initVTextNodes(getTextNodes(this._element,config.ignoreClass))}}exports.TextMark=TextMark,exports.useFindReplace=useFindReplace,Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"})});