From d80daf6fddd0ed618b044852d9b284516da8e6ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=99=9A=E9=A3=8E=E6=8B=82=E6=9F=B3=E9=A2=9C?= <434857005@qq.com> Date: Mon, 8 May 2023 18:13:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=9D=E8=AF=95=E5=A2=9E=E5=8A=A0=E7=BD=91?= =?UTF-8?q?=E9=A1=B5=E6=A8=A1=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/dbnavigator.xml | 418 ++++++++++ app.py | 2 + controllers/__init__.py | 3 +- controllers/vod.py | 80 +- controllers/web.py | 46 ++ static/js/axios.min.js | 2 + static/js/eruda.js | 24 + static/js/vue3.js | 8 + templates/404.html | 19 + templates/cms/mxpro/categoryContent.html | 10 + templates/cms/mxpro/css/iconfont.css | 145 ++++ templates/cms/mxpro/css/notice.css | 113 +++ templates/cms/mxpro/css/stui_default.css | 479 +++++++++++ templates/cms/mxpro/detailContent.html | 10 + templates/cms/mxpro/homeContent.html | 434 ++++++++++ templates/cms/mxpro/img/back.png | Bin 0 -> 4751 bytes templates/cms/mxpro/img/help.png | Bin 0 -> 6017 bytes templates/cms/mxpro/img/logo.png | Bin 0 -> 151861 bytes templates/cms/mxpro/img/show.png | Bin 0 -> 5176 bytes templates/cms/mxpro/js/home.js | 770 ++++++++++++++++++ templates/cms/mxpro/js/index.js | 90 ++ templates/cms/mxpro/js/jquery.cookie.min.js | 2 + templates/cms/mxpro/js/jquery.lazyload.min.js | 2 + templates/cms/mxpro/js/jquery.min.js | 2 + templates/cms/mxpro/js/js-sdk-pro.min.js | 6 + templates/cms/mxpro/js/mxhtml.js | 21 + templates/cms/mxpro/js/rich-tf.js | 28 + templates/cms/mxpro/js/stui_default.js | 179 ++++ templates/cms/mxpro/searchContent.html | 10 + 29 files changed, 2870 insertions(+), 33 deletions(-) create mode 100644 .idea/dbnavigator.xml create mode 100644 controllers/web.py create mode 100644 static/js/axios.min.js create mode 100644 static/js/eruda.js create mode 100644 static/js/vue3.js create mode 100644 templates/404.html create mode 100644 templates/cms/mxpro/categoryContent.html create mode 100644 templates/cms/mxpro/css/iconfont.css create mode 100644 templates/cms/mxpro/css/notice.css create mode 100644 templates/cms/mxpro/css/stui_default.css create mode 100644 templates/cms/mxpro/detailContent.html create mode 100644 templates/cms/mxpro/homeContent.html create mode 100644 templates/cms/mxpro/img/back.png create mode 100644 templates/cms/mxpro/img/help.png create mode 100644 templates/cms/mxpro/img/logo.png create mode 100644 templates/cms/mxpro/img/show.png create mode 100644 templates/cms/mxpro/js/home.js create mode 100644 templates/cms/mxpro/js/index.js create mode 100644 templates/cms/mxpro/js/jquery.cookie.min.js create mode 100644 templates/cms/mxpro/js/jquery.lazyload.min.js create mode 100644 templates/cms/mxpro/js/jquery.min.js create mode 100644 templates/cms/mxpro/js/js-sdk-pro.min.js create mode 100644 templates/cms/mxpro/js/mxhtml.js create mode 100644 templates/cms/mxpro/js/rich-tf.js create mode 100644 templates/cms/mxpro/js/stui_default.js create mode 100644 templates/cms/mxpro/searchContent.html diff --git a/.idea/dbnavigator.xml b/.idea/dbnavigator.xml new file mode 100644 index 0000000..368a099 --- /dev/null +++ b/.idea/dbnavigator.xml @@ -0,0 +1,418 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app.py b/app.py index 1e9a562..b3992b7 100644 --- a/app.py +++ b/app.py @@ -23,6 +23,8 @@ def create_flask_app(): app.register_blueprint(cls.cls, url_prefix='/cls') app.register_blueprint(layui.layui, url_prefix='/layui') app.register_blueprint(parse.parse, url_prefix='/parse') + # app.register_blueprint(web.web, url_prefix='/web',template_folder='templates/cmsV10/mxpro/html/index/') + app.register_blueprint(web.web, url_prefix='/web') app.logger.name = "drLogger" # lsg = service.storage_service() logger.info(f"默认解析地址:{app.config.get('PLAY_URL')}") diff --git a/controllers/__init__.py b/controllers/__init__.py index cac280e..28c0520 100644 --- a/controllers/__init__.py +++ b/controllers/__init__.py @@ -12,4 +12,5 @@ from . import cms from . import cls from . import classes from . import layui -from . import parse \ No newline at end of file +from . import parse +from . import web \ No newline at end of file diff --git a/controllers/vod.py b/controllers/vod.py index 9fd8c55..48b1964 100644 --- a/controllers/vod.py +++ b/controllers/vod.py @@ -6,12 +6,13 @@ import functools import json -from flask import Blueprint,abort,request,render_template,render_template_string,jsonify,make_response,redirect,current_app +from flask import Blueprint, abort, request, render_template, render_template_string, jsonify, make_response, redirect, \ + current_app from time import time -from utils.web import getParmas,get_interval +from utils.web import getParmas, get_interval from utils.cfg import cfg from utils.env import get_env -from js.rules import getRuleLists,getJxs +from js.rules import getRuleLists, getJxs from base.R import R from utils.log import logger from utils import parser @@ -20,12 +21,14 @@ from base.database import db from models.ruleclass import RuleClass from models.playparse import PlayParse from js.rules import getRules -from controllers.service import storage_service,rules_service -from concurrent.futures import ThreadPoolExecutor,as_completed,thread # 引入线程池 -from quickjs import Function,Context +from controllers.service import storage_service, rules_service +from concurrent.futures import ThreadPoolExecutor, as_completed, thread # 引入线程池 +from quickjs import Function, Context import ujson + vod = Blueprint("vod", __name__) + def search_one_py(rule, wd, before: str = ''): t1 = time() if not before: @@ -46,7 +49,8 @@ def search_one_py(rule, wd, before: str = ''): print(f'{rule}发生错误:{e}') return None -def search_one(rule, wd, before: str = '',env:dict=None,app=None): + +def search_one(rule, wd, before: str = '', env: dict = None, app=None): t1 = time() if not before: with open('js/模板.js', encoding='utf-8') as f: @@ -81,6 +85,7 @@ def search_one(rule, wd, before: str = '',env:dict=None,app=None): logger.info(f'{e}') return R.failed('爬虫规则加载失败') + def multi_search2(wd): t1 = time() lsg = storage_service() @@ -123,7 +128,8 @@ def multi_search2(wd): result = { 'list': [] } - logger.info(f'drpy聚搜{len(search_sites)}个源耗时{get_interval(t2)}毫秒,含准备共计耗时:{get_interval(t1)}毫秒,发生错误:{e}') + logger.info( + f'drpy聚搜{len(search_sites)}个源耗时{get_interval(t2)}毫秒,含准备共计耗时:{get_interval(t1)}毫秒,发生错误:{e}') return jsonify(result) @@ -134,6 +140,7 @@ def merged_hide(merged_rules): hide_rule_names = list(map(lambda x: x['name'], hide_rules)) # print('隐藏:',hide_rule_names) all_cnt = len(merged_rules) + # print(merged_rules) def filter_show(x): @@ -144,21 +151,25 @@ def merged_hide(merged_rules): merged_rules = list(filter(filter_show, merged_rules)) # print('隐藏后:',merged_rules) - logger.info(f'数据库筛选隐藏规则耗时{get_interval(t1)}毫秒,共计{all_cnt}条规则,隐藏后可渲染{len(merged_rules)}条规则') + logger.info( + f'数据库筛选隐藏规则耗时{get_interval(t1)}毫秒,共计{all_cnt}条规则,隐藏后可渲染{len(merged_rules)}条规则') # merged_rules = [] return merged_rules + def disable_exit_for_threadpool_executor(): import atexit import concurrent.futures atexit.unregister(concurrent.futures.thread._python_exit) -def sort_lsg_rules(sites:list): + +def sort_lsg_rules(sites: list): """ 查询结果按order和write_date 联合排序 :param sites: :return: """ + def comp(x, y): if x['order'] > y['order']: return 1 @@ -175,12 +186,14 @@ def sort_lsg_rules(sites:list): sites.sort(key=functools.cmp_to_key(comp), reverse=False) return sites -def sort_lsg_rules2(sites:list,lsg_rule_names:list): + +def sort_lsg_rules2(sites: list, lsg_rule_names: list): """ 查询结果按order和write_date 联合排序 :param sites: :return: """ + def comp(x, y): try: x1 = lsg_rule_names.index(x) @@ -200,11 +213,12 @@ def sort_lsg_rules2(sites:list,lsg_rule_names:list): sites.sort(key=functools.cmp_to_key(comp), reverse=False) return sites + def getSearchSites(): val = {} lsg = storage_service() try: - timeout = round(int(lsg.getItem('SEARCH_TIMEOUT',5000))/1000,2) + timeout = round(int(lsg.getItem('SEARCH_TIMEOUT', 5000)) / 1000, 2) except: timeout = 5 val['timeout'] = timeout @@ -236,6 +250,7 @@ def getSearchSites(): val['search_sites'] = search_sites return val + def multi_search(wd): t1 = time() val = getSearchSites() @@ -259,13 +274,13 @@ def multi_search(wd): with ThreadPoolExecutor(max_workers=len(search_sites)) as executor: to_do = [] for site in search_sites: - future = executor.submit(search_one, site, wd, before,env,current_app._get_current_object()) + future = executor.submit(search_one, site, wd, before, env, current_app._get_current_object()) to_do.append(future) try: for future in as_completed(to_do, timeout=timeout): # 并发执行 ret = future.result() # print(ret) - if ret and isinstance(ret,dict) and ret.get('list'): + if ret and isinstance(ret, dict) and ret.get('list'): res.extend(ret['list']) except Exception as e: print(f'发生错误:{e}') @@ -279,18 +294,20 @@ def multi_search(wd): "list": res }) + @vod.route('/vods') def vods_search(): val = getSearchSites() print(val) # return jsonify(val) - return render_template('show_search.html',val=val) + return render_template('show_search.html', val=val) + @vod.route('/vod') def vod_home(): lsg = storage_service() - js0_disable = lsg.getItem('JS0_DISABLE',cfg.get('JS0_DISABLE',0)) + js0_disable = lsg.getItem('JS0_DISABLE', cfg.get('JS0_DISABLE', 0)) if js0_disable: abort(403) js0_password = lsg.getItem('JS0_PASSWORD', cfg.get('JS0_PASSWORD', '')) @@ -331,7 +348,6 @@ def vod_home(): logger.info(f'参数检验js读取共计耗时:{get_interval(t0)}毫秒') t2 = time() - # ctx, js_code = parser.runJs(js_path,before=before) # if not js_code: # return R.failed('爬虫规则加载失败') @@ -341,13 +357,13 @@ def vod_home(): ctx = Context() try: - with open(js_path,encoding='utf-8') as f2: + with open(js_path, encoding='utf-8') as f2: jscode = f2.read() env = get_env() for k in env: # print(f'${k}',f'{env[k]}') if f'${k}' in jscode: - jscode = jscode.replace(f'${k}',f'{env[k]}') + jscode = jscode.replace(f'${k}', f'{env[k]}') # print(env) # if env: # jscode = render_template_string(jscode,**env) @@ -372,14 +388,14 @@ def vod_home(): logger.info(f'js装载耗时:{get_interval(t2)}毫秒') # print(ruleDict) # print(rule) - cms = CMS(ruleDict,db,RuleClass,PlayParse,cfg,ext) + cms = CMS(ruleDict, db, RuleClass, PlayParse, cfg, ext) wd = getParmas('wd') quick = getParmas('quick') - play = getParmas('play') # 类型为4的时候点击播放会带上来 - flag = getParmas('flag') # 类型为4的时候点击播放会带上来 + play = getParmas('play') # 类型为4的时候点击播放会带上来 + flag = getParmas('flag') # 类型为4的时候点击播放会带上来 # myfilter = getParmas('filter') t = getParmas('t') - pg = getParmas('pg','1') + pg = getParmas('pg', '1') pg = int(pg) q = getParmas('q') play_url = getParmas('play_url') @@ -387,7 +403,7 @@ def vod_home(): if play: jxs = getJxs() play_url = play.split('play_url=')[1] - play_url = cms.playContent(play_url, jxs,flag) + play_url = cms.playContent(play_url, jxs, flag) if isinstance(play_url, str): # return redirect(play_url) # return jsonify({'parse': 0, 'playUrl': play_url, 'jx': 0, 'url': play_url}) @@ -400,10 +416,10 @@ def vod_home(): if play_url: # 播放 jxs = getJxs() - play_url = cms.playContent(play_url,jxs) - if isinstance(play_url,str): + play_url = cms.playContent(play_url, jxs) + if isinstance(play_url, str): return redirect(play_url) - elif isinstance(play_url,dict): + elif isinstance(play_url, dict): return jsonify(play_url) else: return play_url @@ -414,21 +430,21 @@ def vod_home(): fl = json.loads(filters) # print(filters,type(filters)) # print(fl,type(fl)) - data = cms.categoryContent(t,pg,fl) + data = cms.categoryContent(t, pg, fl) # print(data) return jsonify(data) - if ac and ids: # 二级 + if ac and ids: # 二级 id_list = ids.split(',') show_name = False if ids.find('#') > -1: - id_list = list(map(lambda x:x.split('#')[0],id_list)) + id_list = list(map(lambda x: x.split('#')[0], id_list)) show_name = True # print('app:377',len(id_list)) # print(id_list) - data = cms.detailContent(pg,id_list,show_name) + data = cms.detailContent(pg, id_list, show_name) # print(data) return jsonify(data) - if wd: # 搜索 + if wd: # 搜索 if rule == 'drpy': print(f'准备单独处理聚合搜索:{wd}') return multi_search(wd) diff --git a/controllers/web.py b/controllers/web.py new file mode 100644 index 0000000..dd1b78d --- /dev/null +++ b/controllers/web.py @@ -0,0 +1,46 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +# File : vod.py +# Author: DaShenHan&道长-----先苦后甜,任凭晚风拂柳颜------ +# Date : 2022/9/6 +import functools +import json + +from flask import Blueprint, abort, request, render_template, send_from_directory, render_template_string, jsonify, \ + make_response, redirect, \ + current_app +from time import time +from utils.web import getParmas, get_interval +from utils.cfg import cfg +from utils.env import get_env +from js.rules import getRuleLists, getJxs +from base.R import R +from utils.log import logger +from utils import parser +from controllers.cms import CMS +from base.database import db +from models.ruleclass import RuleClass +from models.playparse import PlayParse +from js.rules import getRules +from controllers.service import storage_service, rules_service +from concurrent.futures import ThreadPoolExecutor, as_completed, thread # 引入线程池 +from quickjs import Function, Context +import ujson + +# web = Blueprint("web", __name__, template_folder='templates/cmsV10/mxpro/html/index/') +web = Blueprint("web", __name__) + + +@web.route('/cms/') +def custom_static_js(filename): + # 自定义静态目录 {{ url_for('custom_static',filename='help.txt')}} + # print(filename) + return send_from_directory('templates/cms', filename) + +@web.route('//') +def web_index(web_name, theme): + ctx = {'web_name': web_name, 'key': '关键词', 'description': '描述'} + try: + return render_template(f'cms/{theme}/homeContent.html', ctx=ctx) + except Exception as e: + return render_template('404.html', ctx=ctx, error=f'发生错误的原因可能是下面路径未找到:{e}') \ No newline at end of file diff --git a/static/js/axios.min.js b/static/js/axios.min.js new file mode 100644 index 0000000..7641553 --- /dev/null +++ b/static/js/axios.min.js @@ -0,0 +1,2 @@ +!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).axios=t()}(this,(function(){"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&void 0!==arguments[2]?arguments[2]:{},a=i.allOwnKeys,s=void 0!==a&&a;if(null!=t)if("object"!==e(t)&&(t=[t]),h(t))for(r=0,o=t.length;r0;)if(t===(n=r[o]).toLowerCase())return n;return null}var N="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,x=function(e){return!p(e)&&e!==N};var C,P=(C="undefined"!=typeof Uint8Array&&c(Uint8Array),function(e){return C&&e instanceof C}),k=l("HTMLFormElement"),U=function(e){var t=Object.prototype.hasOwnProperty;return function(e,n){return t.call(e,n)}}(),_=l("RegExp"),F=function(e,t){var n=Object.getOwnPropertyDescriptors(e),r={};T(n,(function(n,o){!1!==t(n,o,e)&&(r[o]=n)})),Object.defineProperties(e,r)},L="abcdefghijklmnopqrstuvwxyz",B="0123456789",D={DIGIT:B,ALPHA:L,ALPHA_DIGIT:L+L.toUpperCase()+B};var I={isArray:h,isArrayBuffer:m,isBuffer:function(e){return null!==e&&!p(e)&&null!==e.constructor&&!p(e.constructor)&&v(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:function(e){var t="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||u.call(e)===t||v(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&m(e.buffer)},isString:y,isNumber:b,isBoolean:function(e){return!0===e||!1===e},isObject:g,isPlainObject:w,isUndefined:p,isDate:E,isFile:O,isBlob:S,isRegExp:_,isFunction:v,isStream:function(e){return g(e)&&v(e.pipe)},isURLSearchParams:A,isTypedArray:P,isFileList:R,forEach:T,merge:function e(){for(var t=x(this)&&this||{},n=t.caseless,r={},o=function(t,o){var i=n&&j(r,o)||o;w(r[i])&&w(t)?r[i]=e(r[i],t):w(t)?r[i]=e({},t):h(t)?r[i]=t.slice():r[i]=t},i=0,a=arguments.length;i3&&void 0!==arguments[3]?arguments[3]:{},o=r.allOwnKeys;return T(t,(function(t,r){n&&v(t)?e[r]=a(t,n):e[r]=t}),{allOwnKeys:o}),e},trim:function(e){return e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,n,r){e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:function(e,t,n,r){var o,i,a,s={};if(t=t||{},null==e)return t;do{for(i=(o=Object.getOwnPropertyNames(e)).length;i-- >0;)a=o[i],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&c(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:f,kindOfTest:l,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return-1!==r&&r===n},toArray:function(e){if(!e)return null;if(h(e))return e;var t=e.length;if(!b(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},forEachEntry:function(e,t){for(var n,r=(e&&e[Symbol.iterator]).call(e);(n=r.next())&&!n.done;){var o=n.value;t.call(e,o[0],o[1])}},matchAll:function(e,t){for(var n,r=[];null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:k,hasOwnProperty:U,hasOwnProp:U,reduceDescriptors:F,freezeMethods:function(e){F(e,(function(t,n){if(v(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;var r=e[n];v(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=function(){throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:function(e,t){var n={},r=function(e){e.forEach((function(e){n[e]=!0}))};return h(e)?r(e):r(String(e).split(t)),n},toCamelCase:function(e){return e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n}))},noop:function(){},toFiniteNumber:function(e,t){return e=+e,Number.isFinite(e)?e:t},findKey:j,global:N,isContextDefined:x,ALPHABET:D,generateString:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:16,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:D.ALPHA_DIGIT,n="",r=t.length;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&v(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:function(e){var t=new Array(10);return function e(n,r){if(g(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[r]=n;var o=h(n)?[]:{};return T(n,(function(t,n){var i=e(t,r+1);!p(i)&&(o[n]=i)})),t[r]=void 0,o}}return n}(e,0)}};function q(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}I.inherits(q,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:I.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var M=q.prototype,z={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((function(e){z[e]={value:e}})),Object.defineProperties(q,z),Object.defineProperty(M,"isAxiosError",{value:!0}),q.from=function(e,t,n,r,o,i){var a=Object.create(M);return I.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(function(e){return"isAxiosError"!==e})),q.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};function H(e){return I.isPlainObject(e)||I.isArray(e)}function J(e){return I.endsWith(e,"[]")?e.slice(0,-2):e}function W(e,t,n){return e?e.concat(t).map((function(e,t){return e=J(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}var K=I.toFlatObject(I,{},null,(function(e){return/^is[A-Z]/.test(e)}));function V(t,n,r){if(!I.isObject(t))throw new TypeError("target must be an object");n=n||new FormData;var o=(r=I.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!I.isUndefined(t[e])}))).metaTokens,i=r.visitor||f,a=r.dots,s=r.indexes,u=(r.Blob||"undefined"!=typeof Blob&&Blob)&&I.isSpecCompliantForm(n);if(!I.isFunction(i))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(I.isDate(e))return e.toISOString();if(!u&&I.isBlob(e))throw new q("Blob is not supported. Use a Buffer instead.");return I.isArrayBuffer(e)||I.isTypedArray(e)?u&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function f(t,r,i){var u=t;if(t&&!i&&"object"===e(t))if(I.endsWith(r,"{}"))r=o?r:r.slice(0,-2),t=JSON.stringify(t);else if(I.isArray(t)&&function(e){return I.isArray(e)&&!e.some(H)}(t)||(I.isFileList(t)||I.endsWith(r,"[]"))&&(u=I.toArray(t)))return r=J(r),u.forEach((function(e,t){!I.isUndefined(e)&&null!==e&&n.append(!0===s?W([r],t,a):null===s?r:r+"[]",c(e))})),!1;return!!H(t)||(n.append(W(i,r,a),c(t)),!1)}var l=[],d=Object.assign(K,{defaultVisitor:f,convertValue:c,isVisitable:H});if(!I.isObject(t))throw new TypeError("data must be an object");return function e(t,r){if(!I.isUndefined(t)){if(-1!==l.indexOf(t))throw Error("Circular reference detected in "+r.join("."));l.push(t),I.forEach(t,(function(t,o){!0===(!(I.isUndefined(t)||null===t)&&i.call(n,t,I.isString(o)?o.trim():o,r,d))&&e(t,r?r.concat(o):[o])})),l.pop()}}(t),n}function G(e){var t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function $(e,t){this._pairs=[],e&&V(e,this,t)}var X=$.prototype;function Q(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Z(e,t,n){if(!t)return e;var r,o=n&&n.encode||Q,i=n&&n.serialize;if(r=i?i(t,n):I.isURLSearchParams(t)?t.toString():new $(t,n).toString(o)){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e}X.append=function(e,t){this._pairs.push([e,t])},X.toString=function(e){var t=e?function(t){return e.call(this,t,G)}:G;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var Y,ee=function(){function e(){t(this,e),this.handlers=[]}return r(e,[{key:"use",value:function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}},{key:"eject",value:function(e){this.handlers[e]&&(this.handlers[e]=null)}},{key:"clear",value:function(){this.handlers&&(this.handlers=[])}},{key:"forEach",value:function(e){I.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}]),e}(),te={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ne="undefined"!=typeof URLSearchParams?URLSearchParams:$,re="undefined"!=typeof FormData?FormData:null,oe=("undefined"==typeof navigator||"ReactNative"!==(Y=navigator.product)&&"NativeScript"!==Y&&"NS"!==Y)&&"undefined"!=typeof window&&"undefined"!=typeof document,ie="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,ae={isBrowser:!0,classes:{URLSearchParams:ne,FormData:re,Blob:Blob},isStandardBrowserEnv:oe,isStandardBrowserWebWorkerEnv:ie,protocols:["http","https","file","blob","url","data"]};function se(e){function t(e,n,r,o){var i=e[o++],a=Number.isFinite(+i),s=o>=e.length;return i=!i&&I.isArray(r)?r.length:i,s?(I.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a):(r[i]&&I.isObject(r[i])||(r[i]=[]),t(e,n,r[i],o)&&I.isArray(r[i])&&(r[i]=function(e){var t,n,r={},o=Object.keys(e),i=o.length;for(t=0;t-1,i=I.isObject(e);if(i&&I.isHTMLForm(e)&&(e=new FormData(e)),I.isFormData(e))return o&&o?JSON.stringify(se(e)):e;if(I.isArrayBuffer(e)||I.isBuffer(e)||I.isStream(e)||I.isFile(e)||I.isBlob(e))return e;if(I.isArrayBufferView(e))return e.buffer;if(I.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return V(e,new ae.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return ae.isNode&&I.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((n=I.isFileList(e))||r.indexOf("multipart/form-data")>-1){var a=this.env&&this.env.FormData;return V(n?{"files[]":e}:e,a&&new a,this.formSerializer)}}return i||o?(t.setContentType("application/json",!1),function(e,t,n){if(I.isString(e))try{return(t||JSON.parse)(e),I.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||ce.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(e&&I.isString(e)&&(n&&!this.responseType||r)){var o=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(o){if("SyntaxError"===e.name)throw q.from(e,q.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ae.classes.FormData,Blob:ae.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};I.forEach(["delete","get","head"],(function(e){ce.headers[e]={}})),I.forEach(["post","put","patch"],(function(e){ce.headers[e]=I.merge(ue)}));var fe=ce,le=I.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),de=Symbol("internals");function he(e){return e&&String(e).trim().toLowerCase()}function pe(e){return!1===e||null==e?e:I.isArray(e)?e.map(pe):String(e)}function me(e,t,n,r,o){return I.isFunction(r)?r.call(this,t,n):(o&&(t=n),I.isString(t)?I.isString(r)?-1!==t.indexOf(r):I.isRegExp(r)?r.test(t):void 0:void 0)}var ye=function(e,n){function i(e){t(this,i),e&&this.set(e)}return r(i,[{key:"set",value:function(e,t,n){var r=this;function o(e,t,n){var o=he(t);if(!o)throw new Error("header name must be a non-empty string");var i=I.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=pe(e))}var i,a,s,u,c,f=function(e,t){return I.forEach(e,(function(e,n){return o(e,n,t)}))};return I.isPlainObject(e)||e instanceof this.constructor?f(e,t):I.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z]+$/.test(e.trim())?f((c={},(i=e)&&i.split("\n").forEach((function(e){u=e.indexOf(":"),a=e.substring(0,u).trim().toLowerCase(),s=e.substring(u+1).trim(),!a||c[a]&&le[a]||("set-cookie"===a?c[a]?c[a].push(s):c[a]=[s]:c[a]=c[a]?c[a]+", "+s:s)})),c),t):null!=e&&o(t,e,n),this}},{key:"get",value:function(e,t){if(e=he(e)){var n=I.findKey(this,e);if(n){var r=this[n];if(!t)return r;if(!0===t)return function(e){for(var t,n=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;t=r.exec(e);)n[t[1]]=t[2];return n}(r);if(I.isFunction(t))return t.call(this,r,n);if(I.isRegExp(t))return t.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}},{key:"has",value:function(e,t){if(e=he(e)){var n=I.findKey(this,e);return!(!n||void 0===this[n]||t&&!me(0,this[n],n,t))}return!1}},{key:"delete",value:function(e,t){var n=this,r=!1;function o(e){if(e=he(e)){var o=I.findKey(n,e);!o||t&&!me(0,n[o],o,t)||(delete n[o],r=!0)}}return I.isArray(e)?e.forEach(o):o(e),r}},{key:"clear",value:function(e){for(var t=Object.keys(this),n=t.length,r=!1;n--;){var o=t[n];e&&!me(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}},{key:"normalize",value:function(e){var t=this,n={};return I.forEach(this,(function(r,o){var i=I.findKey(n,o);if(i)return t[i]=pe(r),void delete t[o];var a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n}))}(o):String(o).trim();a!==o&&delete t[o],t[a]=pe(r),n[a]=!0})),this}},{key:"concat",value:function(){for(var e,t=arguments.length,n=new Array(t),r=0;r1?n-1:0),o=1;o0;){var a=o[i],s=n[a];if(s){var u=t[a],c=void 0===u||s(u,a,t);if(!0!==c)throw new q("option "+a+" must be "+c,q.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new q("Unknown option "+a,q.ERR_BAD_OPTION)}},validators:ke},Fe=_e.validators,Le=function(){function e(n){t(this,e),this.defaults=n,this.interceptors={request:new ee,response:new ee}}return r(e,[{key:"request",value:function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{};var n,r=t=Ce(this.defaults,t),o=r.transitional,i=r.paramsSerializer,a=r.headers;void 0!==o&&_e.assertOptions(o,{silentJSONParsing:Fe.transitional(Fe.boolean),forcedJSONParsing:Fe.transitional(Fe.boolean),clarifyTimeoutError:Fe.transitional(Fe.boolean)},!1),void 0!==i&&_e.assertOptions(i,{encode:Fe.function,serialize:Fe.function},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase(),(n=a&&I.merge(a.common,a[t.method]))&&I.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete a[e]})),t.headers=ve.concat(n,a);var s=[],u=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(u=u&&e.synchronous,s.unshift(e.fulfilled,e.rejected))}));var c,f=[];this.interceptors.response.forEach((function(e){f.push(e.fulfilled,e.rejected)}));var l,d=0;if(!u){var h=[Ne.bind(this),void 0];for(h.unshift.apply(h,s),h.push.apply(h,f),l=h.length,c=Promise.resolve(t);d0;)o._listeners[t](e);o._listeners=null}})),this.promise.then=function(e){var t,n=new Promise((function(e){o.subscribe(e),t=e})).then(e);return n.cancel=function(){o.unsubscribe(t)},n},n((function(e,t,n){o.reason||(o.reason=new we(e,t,n),r(o.reason))}))}return r(e,[{key:"throwIfRequested",value:function(){if(this.reason)throw this.reason}},{key:"subscribe",value:function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}},{key:"unsubscribe",value:function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}}}],[{key:"source",value:function(){var t;return{token:new e((function(e){t=e})),cancel:t}}}]),e}();var Ie={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ie).forEach((function(e){var t=o(e,2),n=t[0],r=t[1];Ie[r]=n}));var qe=Ie;var Me=function e(t){var n=new Be(t),r=a(Be.prototype.request,n);return I.extend(r,Be.prototype,n,{allOwnKeys:!0}),I.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Ce(t,n))},r}(fe);return Me.Axios=Be,Me.CanceledError=we,Me.CancelToken=De,Me.isCancel=ge,Me.VERSION=Pe,Me.toFormData=V,Me.AxiosError=q,Me.Cancel=Me.CanceledError,Me.all=function(e){return Promise.all(e)},Me.spread=function(e){return function(t){return e.apply(null,t)}},Me.isAxiosError=function(e){return I.isObject(e)&&!0===e.isAxiosError},Me.mergeConfig=Ce,Me.AxiosHeaders=ve,Me.formToJSON=function(e){return se(I.isHTMLForm(e)?new FormData(e):e)},Me.HttpStatusCode=qe,Me.default=Me,Me})); +//# sourceMappingURL=axios.min.js.map diff --git a/static/js/eruda.js b/static/js/eruda.js new file mode 100644 index 0000000..1d40f6d --- /dev/null +++ b/static/js/eruda.js @@ -0,0 +1,24 @@ +/*! eruda v2.3.3 https://eruda.liriliri.io/ */ +!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.eruda=e():t.eruda=e()}(window,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/assets/",n(n.s=31)}([function(t,e,n){"use strict";(function(t,r,i){n.d(e,"bb",(function(){return j})),n.d(e,"Y",(function(){return A})),n.d(e,"U",(function(){return S})),n.d(e,"ab",(function(){return P})),n.d(e,"ib",(function(){return N})),n.d(e,"Z",(function(){return I})),n.d(e,"zb",(function(){return W})),n.d(e,"t",(function(){return X})),n.d(e,"v",(function(){return J})),n.d(e,"w",(function(){return Z})),n.d(e,"x",(function(){return et})),n.d(e,"y",(function(){return nt})),n.d(e,"A",(function(){return rt})),n.d(e,"C",(function(){return it})),n.d(e,"Eb",(function(){return at})),n.d(e,"E",(function(){return ot})),n.d(e,"G",(function(){return ct})),n.d(e,"qb",(function(){return ht})),n.d(e,"N",(function(){return dt})),n.d(e,"T",(function(){return mt})),n.d(e,"u",(function(){return yt})),n.d(e,"X",(function(){return $t})),n.d(e,"m",(function(){return Ot})),n.d(e,"L",(function(){return Et})),n.d(e,"H",(function(){return jt})),n.d(e,"tb",(function(){return St})),n.d(e,"I",(function(){return Tt})),n.d(e,"K",(function(){return Ct})),n.d(e,"M",(function(){return Pt})),n.d(e,"O",(function(){return Dt})),n.d(e,"P",(function(){return Mt})),n.d(e,"Q",(function(){return zt})),n.d(e,"R",(function(){return Ht})),n.d(e,"S",(function(){return Ut})),n.d(e,"V",(function(){return Kt})),n.d(e,"W",(function(){return Gt})),n.d(e,"db",(function(){return Vt})),n.d(e,"eb",(function(){return Xt})),n.d(e,"o",(function(){return Jt})),n.d(e,"rb",(function(){return ne})),n.d(e,"yb",(function(){return re})),n.d(e,"gb",(function(){return ie})),n.d(e,"xb",(function(){return ae})),n.d(e,"s",(function(){return oe})),n.d(e,"hb",(function(){return se})),n.d(e,"jb",(function(){return ue})),n.d(e,"lb",(function(){return le})),n.d(e,"mb",(function(){return ce})),n.d(e,"B",(function(){return pe})),n.d(e,"Db",(function(){return de})),n.d(e,"r",(function(){return ge})),n.d(e,"F",(function(){return me})),n.d(e,"z",(function(){return be})),n.d(e,"j",(function(){return ye})),n.d(e,"n",(function(){return we})),n.d(e,"fb",(function(){return xe})),n.d(e,"p",(function(){return ke})),n.d(e,"wb",(function(){return Oe})),n.d(e,"b",(function(){return Ee})),n.d(e,"f",(function(){return Ae})),n.d(e,"g",(function(){return ze})),n.d(e,"l",(function(){return He})),n.d(e,"c",(function(){return Ge})),n.d(e,"e",(function(){return qe})),n.d(e,"J",(function(){return Xe})),n.d(e,"kb",(function(){return Qe})),n.d(e,"k",(function(){return Ze})),n.d(e,"a",(function(){return nn})),n.d(e,"nb",(function(){return rn})),n.d(e,"ob",(function(){return an})),n.d(e,"pb",(function(){return on})),n.d(e,"Ab",(function(){return un})),n.d(e,"cb",(function(){return cn})),n.d(e,"h",(function(){return hn})),n.d(e,"D",(function(){return pn})),n.d(e,"i",(function(){return fn})),n.d(e,"sb",(function(){return dn})),n.d(e,"d",(function(){return mn})),n.d(e,"ub",(function(){return bn})),n.d(e,"vb",(function(){return yn})),n.d(e,"Bb",(function(){return wn})),n.d(e,"Cb",(function(){return xn})),n.d(e,"Fb",(function(){return kn})),n.d(e,"Gb",(function(){return $n})),n.d(e,"Hb",(function(){return On}));var a,o,s,u,l,c,_,h,p,f,d,v,g,m,b,y,w,x,k,$=n(12),O=n.n($),E={},j=E.last=function(t){var e=t?t.length:0;if(e)return t[e-1]},A=E.isUndef=function(t){return void 0===t},S=(E.types={},E.isObj=function(t){var e=O()(t);return!!t&&("function"===e||"object"===e)}),T=E.has=(a=Object.prototype.hasOwnProperty,function(t,e){return a.call(t,e)}),C=E.slice=function(t,e,n){var r=t.length;e=null==e?0:e<0?Math.max(r+e,0):Math.min(e,r),n=null==n?r:n<0?Math.max(r+n,0):Math.min(n,r);for(var i=[];e0&&(n=e.apply(this,arguments)),t<=1&&(e=null),n}},F=E.splitCase=(o=/([A-Z])/g,s=/[_.\- ]+/g,u=/(^-)|(-$)/g,function(t){return(t=t.replace(o,"-$1").toLowerCase().replace(s,"-").replace(u,"")).split("-")}),z=E.camelCase=function(t){function e(t,e){this[e]=t.replace(/\w/,(function(t){return t.toUpperCase()}))}return function(t){var n=F(t),r=n[0];return n.shift(),n.forEach(e,n),r+=n.join("")}}(),I=E.kebabCase=function(t){return F(t).join("-")},B=E.clamp=function(t,e,n){return A(n)&&(n=e,e=void 0),!A(e)&&tn?n:t},H=E.idxOf=function(t,e,n){return Array.prototype.indexOf.call(t,e,n)},U=E.create=function(t){t=function(t){if(!S(t))return{};if(e)return e(t);function n(){}return n.prototype=t,new n};var e=Object.create;return t}({}),K=E.inherits=function(t,e){t.prototype=U(e.prototype)},W=E.toStr=function(t){return null==t?"":t.toString()},G=E.debounce=function(t,e,n){var r;return function(){var i=this,a=arguments,o=function(){r=null,t.apply(i,a)};n||clearTimeout(r),n&&r||(r=setTimeout(o,e))}},q=E.ucs2={encode:function(t){return String.fromCodePoint.apply(String,t)},decode:function(t){for(var e=[],n=0,r=t.length;n=55296&&i<=56319&&n>6*e)+n);e>0;){r+=l(128|63&t>>6*(e-1)),e--}return r}function _(t){for(;;){if(n>=r&&o){if(t)return h();throw new Error("Invalid byte index")}if(n===r)return!1;var l=e[n];if(n++,o){if(lu){if(t)return n--,h();throw new Error("Invalid continuation byte")}if(s=128,u=191,i=i<<6|63&l,++a===o){var c=i;return i=0,o=0,a=0,c}}else{if(0==(128&l))return l;if(192==(224&l))o=1,i=31&l;else if(224==(240&l))224===l&&(s=160),237===l&&(u=159),o=2,i=15&l;else{if(240!=(248&l)){if(t)return h();throw new Error("Invalid UTF-8 detected")}240===l&&(s=144),244===l&&(u=143),o=3,i=7&l}}}}function h(){var t=n-a-1;return n=t+1,i=0,o=0,a=0,s=128,u=191,e[t]}return t}({}),X=E.detectOs=function(t){if(t=(t=t||(L?navigator.userAgent:"")).toLowerCase(),e("windows phone"))return"windows phone";if(e("win"))return"windows";if(e("android"))return"android";if(e("ipad")||e("iphone")||e("ipod"))return"ios";if(e("mac"))return"os x";if(e("linux"))return"linux";function e(e){return t.indexOf(e)>-1}return"unknown"},Y=E.restArgs=function(t,e){return e=null==e?t.length-1:+e,function(){var n,r=Math.max(arguments.length-e,0),i=new Array(r);for(n=0;n=0&&t.indexOf(e,n)===n},Z=E.escape=function(t){var e=(t=function(t){return r.test(t)?t.replace(i,a):t}).map={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},n="(?:"+P(e).join("|")+")",r=new RegExp(n),i=new RegExp(n,"g"),a=function(t){return e[t]};return t}({}),tt=E.escapeJsStr=function(t){t=function(t){return W(t).replace(e,(function(t){switch(t){case'"':case"'":case"\\":return"\\"+t;case"\n":return"\\n";case"\r":return"\\r";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029"}}))};var e=/["'\\\n\r\u2028\u2029]/g;return t}({}),et=E.escapeJsonStr=function(t){return tt(t).replace(/\\'/g,"'").replace(/\t/g,"\\t")},nt=E.escapeRegExp=function(t){return t.replace(/\W/g,"\\$&")},rt=E.fileSize=function(t){t=function(t){if(t<=0)return"0";var n=Math.floor(Math.log(t)/Math.log(1024));return+(t/Math.pow(2,10*n)).toFixed(2)+e[n]};var e=["","K","M","G","T"];return t}({}),it=E.fullUrl=(l=document.createElement("a"),function(t){return l.href=t,l.protocol+"//"+l.host+l.pathname+l.search+l.hash}),at=E.upperFirst=function(t){return t.length<1?t:t[0].toUpperCase()+t.slice(1)},ot=E.getObjType=function(t){return t.constructor&&t.constructor.name?t.constructor.name:at({}.toString.call(t).replace(/(\[object )|]/g,""))},st=E.identity=function(t){return t},ut=E.objToStr=(c=Object.prototype.toString,function(t){return c.call(t)}),lt=E.isArgs=function(t){return"[object Arguments]"===ut(t)},ct=E.isArr=Array.isArray?Array.isArray:function(t){return"[object Array]"===ut(t)},_t=E.castPath=function(t){t=function(t,r){if(ct(t))return t;if(r&&T(r,t))return[t];var i=[];return t.replace(e,(function(t,e,r,a){i.push(r?a.replace(n,"$1"):e||t)})),i};var e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g;return t}({}),ht=E.safeGet=function(t,e){var n;for(n=(e=_t(e,t)).shift();!A(n);){if(null==(t=t[n]))return;n=e.shift()}return t},pt=E.flatten=function(t){return function t(e,n){for(var r,i=e.length,a=-1;i--;)r=e[++a],ct(r)?t(r,n):n.push(r);return n}(t,[])},ft=E.isDate=function(t){return"[object Date]"===ut(t)},dt=E.isFn=function(t){var e=ut(t);return"[object Function]"===e||"[object GeneratorFunction]"===e||"[object AsyncFunction]"===e},vt=E.getProto=(_=Object.getPrototypeOf,h={}.constructor,function(t){if(S(t)){if(_)return _(t);var e=t.__proto__;return e||null===e?e:dt(t.constructor)?t.constructor.prototype:t instanceof h?h.prototype:void 0}}),gt=E.isMiniProgram="undefined"!=typeof wx&&dt(wx.openLocation),mt=E.isNum=function(t){return"[object Number]"===ut(t)},bt=E.isArrLike=(p=Math.pow(2,53)-1,function(t){if(!t)return!1;var e=t.length;return mt(e)&&e>=0&&e<=p&&!dt(t)}),yt=E.each=function(t,e,n){var r,i;if(e=Q(e,n),bt(t))for(r=0,i=t.length;r-1:(bt(t)||(t=kt(t)),H(t,e)>=0)},Et=E.isEmpty=function(t){return null==t||(bt(t)&&(ct(t)||$t(t)||lt(t))?0===t.length:0===P(t).length)},jt=E.isBool=function(t){return!0===t||!1===t},At=E.isBuffer=function(t){return null!=t&&(!!t._isBuffer||t.constructor&&dt(t.constructor.isBuffer)&&t.constructor.isBuffer(t))},St=E.startWith=function(t,e){return 0===t.indexOf(e)},Tt=E.isCrossOrig=(f=window.location.origin,function(t){return!St(t,f)}),Ct=E.isEl=function(t){return!(!t||1!==t.nodeType)},Pt=E.isErr=function(t){return"[object Error]"===ut(t)},Rt=E.root=L?window:t,Dt=E.isHidden=function(t){var e=Rt.getComputedStyle,n=Rt.document;function r(t,e){return t.righte.right||t.bottome.bottom}return function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=i.display,o=void 0===a||a,s=i.visibility,u=void 0!==s&&s,l=i.opacity,c=void 0!==l&&l,_=i.size,h=void 0!==_&&_,p=i.viewport,f=void 0!==p&&p,d=i.overflow,v=void 0!==d&&d;if(o)return null===t.offsetParent;var g=e(t);if(u&&"hidden"===g.visibility)return!0;if(c){if("0"===g.opacity)return!0;for(var m=t;m=m.parentElement;){var b=e(m);if("0"===b.opacity)return!0}}var y=t.getBoundingClientRect();if(h&&(0===y.width||0===y.height))return!0;if(f){var w={top:0,left:0,right:n.documentElement.clientWidth,bottom:n.documentElement.clientHeight};return r(y,w)}if(v)for(var x=t;x=x.parentElement;){var k=e(x),$=k.overflow;if("scroll"===$||"hidden"===$){var O=x.getBoundingClientRect();if(r(y,O))return!0}}return!1}}(),Lt=E.isMatch=function(t,e){var n=P(e),r=n.length;if(null==t)return!r;t=Object(t);for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:g.defComparator,n=0,r=t.length;n0)return!1;return!0}).defComparator=function(t,e){return te?1:0},g),Vt=E.loadJs=function(t,e){var n=document.createElement("script");n.src=t,n.onload=function(){var t=n.readyState&&"complete"!=n.readyState&&"loaded"!=n.readyState;e&&e(!t)},n.onerror=function(){e(!1)},document.body.appendChild(n)},Xt=E.lowerCase=function(t){return W(t).toLocaleLowerCase()},Yt=E.repeat=function(t,e){var n="";if(e<1)return"";for(;e>0;)1&e&&(n+=t),e>>=1,t+=t;return n},Qt=E.lpad=function(t,e,n){var r=(t=W(t)).length;return n=n||" ",r0?"-":"+")+e(100*Math.floor(Math.abs(y)/60)+Math.abs(y)%60,4),S:["th","st","nd","rd"][h%10>3?0:(h%100-h%10!=10)*h%10]};return s.replace(n,(function(t){return t in w?w[t]:t.slice(1,t.length-1)}))};var e=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return Qt(W(t),e,"0")},n=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|"[^"]*"|'[^']*'/g,r=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,i=/\d/,a=/[^-+\dA-Z]/g;return t.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},t.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]},t}({}),Zt=E.ltrim=(m=/^\s+/,function(t,e){if(null==e)return t.replace(m,"");for(var n,r,i=0,a=t.length,o=e.length,s=!0;s&&i=a?"":t.substr(i,a)}),te=E.matcher=function(t){return t=xt({},t),function(e){return Lt(e,t)}},ee=E.memStorage=function(t){t={getItem:function(t){return(n[t]?e[t]:this[t])||null},setItem:function(t,r){n[t]?e[t]=r:this[t]=r},removeItem:function(t){n[t]?delete e[t]:delete this[t]},key:function(t){var e=r();return t>=0&&t=e[n[s]]){o=n[s];break}return+(a/e[o]).toFixed(2)+o};var e={ms:1,s:1e3};e.m=60*e.s,e.h=60*e.m,e.d=24*e.h,e.y=365.25*e.d;var n=["y","d","h","m","s"],r=/^((?:\d+)?\.?\d+) *(s|m|h|d|y)?$/;return t}({}),ae=E.toInt=function(t){return t?(t=re(t))-t%1:0===t?t:0},oe=E.detectBrowser=function(t){t=function(t){var a=i(t=(t=t||(L?navigator.userAgent:"")).toLowerCase(),"msie ");if(a)return{version:a,name:"ie"};if(n.test(t))return{version:11,name:"ie"};for(var o=0,s=r.length;o-1)return ae(t.substring(n+e.length,t.indexOf(".",n)))}return t}({}),se=E.nextTick=function(t){function e(t){if("function"!=typeof t)throw new TypeError(t+" is not a function");return t}return"object"===(void 0===r?"undefined":O()(r))&&r.nextTick?r.nextTick:"function"==typeof i?function(t){i(e(t))}:function(t){setTimeout(e(t),0)}}(),ue=E.now=Date.now?Date.now:function(){return(new Date).getTime()},le=E.perfNow=function(t){var e,n=Rt.performance,r=Rt.process;if(n&&n.now)t=function(){return n.now()};else if(r&&r.hrtime){var i=function(){var t=r.hrtime();return 1e9*t[0]+t[1]};e=i()-1e9*r.uptime(),t=function(){return(i()-e)/1e6}}else e=ue(),t=function(){return ue()-e};return t}({}),ce=E.pick=function(t,e,n){if($t(e)&&(e=[e]),ct(e)){var r=e;e=function(t,e){return Ot(r,e)}}var i={},a=function(t,n){e(t,n)&&(i[n]=t)};return n&&(a=function(t,n){e(t,n)||(i[n]=t)}),yt(t,a),i},_e=E.property=function(t){return ct(t)?function(e){return ht(e,t)}:(e=t,function(t){return null==t?void 0:t[e]});var e},he=E.safeCb=function(t,e,n){return null==t?st:dt(t)?Q(t,e,n):S(t)&&!ct(t)?te(t):_e(t)},pe=E.filter=function(t,e,n){var r=[];return e=he(e,n),yt(t,(function(t,n,i){e(t,n,i)&&r.push(t)})),r},fe=E.difference=Y((function(t,e){return e=pt(e),pe(t,(function(t){return!Ot(e,t)}))})),de=E.unique=function(t){function e(t,e){return t===e}return function(t,n){return n=n||e,pe(t,(function(t,e,r){for(var i=r.length;++e1&&void 0!==arguments[1]?arguments[1]:{},n=e.prototype,r=void 0===n||n,i=e.unenumerable,a=void 0!==i&&i,o=e.symbol,s=void 0!==o&&o,u=[];if((a||s)&&b){var l=P;a&&b&&(l=b);do{u=u.concat(l(t)),s&&y&&(u=u.concat(y(t)))}while(r&&(t=vt(t))&&t!==Object.prototype);u=de(u)}else if(r)for(var c in t)u.push(c);else u=P(t);return u}),ge=E.defaults=wt(ve,!0),me=E.highlight=function(t){t=function(r){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"js",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};ge(a,e),r=r.replace(//g,">"),i=n[i];var o=0,s=[];yt(i,(function(e){e.language&&(r=r.replace(e.re,(function(n,r){return s[o++]=t(r,e.language,a),n.replace(r,"___subtmpl"+(o-1)+"___")})))})),yt(i,(function(t,e){n[t.language]||(r=r.replace(t.re,"___"+e+"___$1___end"+e+"___"))}));var u=[];return r=r.replace(/___(?!subtmpl)\w+?___/g,(function(t){var e="end"===t.substr(3,3),n=(e?t.substr(6):t.substr(3)).replace(/_/g,""),r=u.length>0?u[u.length-1]:null;return!e&&(null==r||n==r||null!=r&&i[r]&&null!=i[r].embed&&i[r].embed.indexOf(n)>-1)?(u.push(n),t):e&&n==r?(u.pop(),t):""})),yt(i,(function(t,e){r=r.replace(new RegExp("___end"+e+"___","g"),"").replace(new RegExp("___"+e+"___","g"),'')})),yt(i,(function(t){t.language&&(r=r.replace(/___subtmpl\d+___/g,(function(t){var e=parseInt(t.replace(/___subtmpl(\d+)___/,"$1"),10);return s[e]})))})),r};var e={comment:"color:#63a35c;",string:"color:#183691;",number:"color:#0086b3;",keyword:"color:#a71d5d;",operator:"color:#994500;"},n={js:{comment:{re:/(\/\/.*|\/\*([\s\S]*?)\*\/)/g,style:"comment"},string:{re:/(('.*?')|(".*?"))/g,style:"string"},numbers:{re:/(-?(\d+|\d+\.\d+|\.\d+))/g,style:"number"},keywords:{re:/(?:\b)(function|for|foreach|while|if|else|elseif|switch|break|as|return|this|class|self|default|var|const|let|false|true|null|undefined)(?:\b)/gi,style:"keyword"},operator:{re:/(\+|-|\/|\*|%|=|<|>|\||\?|\.)/g,style:"operator"}}};return n.html={comment:{re:/(<!--([\s\S]*?)-->)/g,style:"comment"},tag:{re:/(<\/?\w(.|\n)*?\/?>)/g,style:"keyword",embed:["string"]},string:n.js.string,css:{re:/(?:<style.*?>)([\s\S]*)?(?:<\/style>)/gi,language:"css"},script:{re:/(?:<script.*?>)([\s\S]*?)(?:<\/script>)/gi,language:"js"}},n.css={comment:n.js.comment,string:n.js.string,numbers:{re:/((-?(\d+|\d+\.\d+|\.\d+)(%|px|em|pt|in)?)|#[0-9a-fA-F]{3}[0-9a-fA-F]{3})/g,style:"number"},keywords:{re:/(@\w+|:?:\w+|[a-z-]+:)/g,style:"keyword"}},t}({}),be=E.extend=wt(ve),ye=E.clone=function(t){return S(t)?ct(t)?t.slice():be({},t):t},we=E.copy=function(t,e){e=e||N;var n=document.createElement("textarea"),r=document.body;be(n.style,{fontSize:"12pt",border:"0",padding:"0",margin:"0",position:"absolute",left:"-9999px"}),n.value=t,r.appendChild(n),n.setAttribute("readonly",""),n.select(),n.setSelectionRange(0,t.length);try{document.execCommand("copy"),e()}catch(t){e(t)}finally{r.removeChild(n)}},xe=E.map=function(t,e,n){e=he(e,n);for(var r=!bt(t)&&P(t),i=(r||t).length,a=Array(i),o=0;o1?e:this;for(var n=this._items,r=this.size-1,i=0;r>=0;r--,i++)t.call(e,n[r],i,this)},toArr:function(){return D(this._items)}}),Ie=E.delegate=function(t){function e(){return!0}function n(){return!1}function r(e){var n,r=this.events[e.type],a=i.call(this,e,r);e=new t.Event(e);for(var o,s,u=0;(s=a[u++])&&!e.isPropagationStopped();)for(e.curTarget=s.el,o=0;(n=s.handlers[o++])&&!e.isImmediatePropagationStopped();)!1===n.handler.apply(s.el,[e])&&(e.preventDefault(),e.stopPropagation())}function i(t,e){var n,r,i,a,o=t.target,s=[],u=e.delegateCount;if(o.nodeType)for(;o!==this;o=o.parentNode||this){for(r=[],a=0;awindow.innerHeight?"landscape":"portrait"}},Ge.mixin(t),window.addEventListener("orientationchange",(function(){setTimeout((function(){t.emit("change",t.get())}),200)}),!1),t}({}),Je=E.mapObj=function(t,e,n){e=he(e,n);for(var r=P(t),i=r.length,a={},o=0;o=0;l--){var c=a[l];if(""!==c){if(p({domain:s=""===s?c:c+"."+s,path:e="/"})||p({domain:s}))return;for(var _=0;_=0;)for(s=!1,r=-1,i=t.charAt(a);++r=0?t.substring(0,a+1):""}}(),un=E.trim=function(t){var e=/^\s+|\s+$/g;return function(t,n){return null==n?t.replace(e,""):Zt(sn(t,n),n)}}(),ln=E.extractUrls=function(t){t=function(t){var n=Oe(t.match(e));return de(xe(n,(function(t){return un(t)})))};var e=/((https?)|(ftp)):\/\/[\w.]+[^ \f\n\r\t\v"\\<>[\]\u2100-\uFFFF(),]*/gi;return t}({}),cn=E.linkify=function(t){function e(t){return''+t+""}return function(t,n){n=n||e;var r=ln(t);return yt(r,(function(e){t=t.replace(new RegExp(nt(e),"g"),n)})),t}}(),_n=E.query=function(t){t={parse:function(t){var n={};return t=un(t).replace(e,""),yt(t.split("&"),(function(t){var e=t.split("="),r=e.shift(),i=e.length>0?e.join("="):null;r=decodeURIComponent(r),i=decodeURIComponent(i),A(n[r])?n[r]=i:ct(n[r])?n[r].push(i):n[r]=[n[r],i]})),n},stringify:function(e,n){return pe(xe(e,(function(e,r){return S(e)&&Et(e)?"":ct(e)?t.stringify(e,r):(n?encodeURIComponent(n):encodeURIComponent(r))+"="+encodeURIComponent(e)})),(function(t){return t.length>0})).join("&")}};var e=/^(\?|#|&)/g;return t}({}),hn=E.Url=function(t){t=Ee({className:"Url",initialize:function(e){!e&&L&&(e=window.location.href),be(this,t.parse(e||""))},setQuery:function(t,e){var n=this.query;return S(t)?yt(t,(function(t,e){n[e]=t})):n[t]=e,this},rmQuery:function(t){var e=this.query;return ct(t)||(t=Oe(t)),yt(t,(function(t){delete e[t]})),this},toString:function(){return t.stringify(this)}},{parse:function(t){var i={protocol:"",auth:"",hostname:"",hash:"",query:{},port:"",pathname:"",slashes:!1},a=un(t),o=!1,s=a.match(e);if(s&&(s=s[0],i.protocol=s.toLowerCase(),a=a.substr(s.length)),s&&(o="//"===a.substr(0,2))&&(a=a.slice(2),i.slashes=!0),o){for(var u=a,l=-1,c=0,_=r.length;c<_;c++){var h=a.indexOf(r[c]);-1!==h&&(-1===l||h-1&&(u=a.slice(0,l),a=a.slice(l));var p=u.lastIndexOf("@");-1!==p&&(i.auth=decodeURIComponent(u.slice(0,p)),u=u.slice(p+1)),i.hostname=u;var f=u.match(n);f&&(":"!==(f=f[0])&&(i.port=f.substr(1)),i.hostname=u.substr(0,u.length-f.length))}var d=a.indexOf("#");-1!==d&&(i.hash=a.substr(d),a=a.slice(0,d));var v=a.indexOf("?");return-1!==v&&(i.query=_n.parse(a.substr(v+1)),a=a.slice(0,v)),i.pathname=a||"/",i},stringify:function(t){var e=t.protocol+(t.slashes?"//":"")+(t.auth?encodeURIComponent(t.auth)+"@":"")+t.hostname+(t.port?":"+t.port:"")+t.pathname;return Et(t.query)||(e+="?"+_n.stringify(t.query)),t.hash&&(e+=t.hash),e}});var e=/^([a-z0-9.+-]+:)/i,n=/:[0-9]*$/,r=["/","?","#"];return t}({}),pn=E.getFileName=function(t){var e=j(t.split("/"));return e.indexOf("?")>-1&&(e=un(e.split("?")[0])),""===e&&(e=(t=new hn(t)).hostname),e},fn=E.ajax=function(t){function e(t,e,n,r){return dt(e)&&(r=n,n=e,e={}),{url:t,data:e,success:n,dataType:r}}return(t=function(e){ge(e,t.setting);var n,r=e.type,i=e.url,a=e.data,o=e.dataType,s=e.success,u=e.error,l=e.timeout,c=e.complete,_=e.xhr();return _.onreadystatechange=function(){if(4===_.readyState){var t;clearTimeout(n);var e=_.status;if(e>=200&&e<300||304===e){t=_.responseText,"xml"===o&&(t=_.responseXML);try{"json"===o&&(t=JSON.parse(t))}catch(t){}s(t,_)}else u(_);c(_)}},"GET"===r?(a=_n.stringify(a),i+=i.indexOf("?")>-1?"&"+a:"?"+a):"application/x-www-form-urlencoded"===e.contentType?S(a)&&(a=_n.stringify(a)):"application/json"===e.contentType&&S(a)&&(a=JSON.stringify(a)),_.open(r,i,!0),_.setRequestHeader("Content-Type",e.contentType),l>0&&(n=setTimeout((function(){_.onreadystatechange=N,_.abort(),u(_,"timeout"),c(_)}),l)),_.send("GET"===r?null:a),_}).setting={type:"GET",success:N,error:N,complete:N,dataType:"json",contentType:"application/x-www-form-urlencoded",data:{},xhr:function(){return new XMLHttpRequest},timeout:0},t.get=function(){return t(e.apply(null,arguments))},t.post=function(){var n=e.apply(null,arguments);return n.type="POST",t(n)},t}({}),dn=E.sortKeys=function(t){t=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ge(n,e);var r=n.deep,i=n.comparator,a=[],o=[];function s(t){var e,n=a.indexOf(t);if(n>-1)return o[n];if(ct(t)){e=[],a.push(t),o.push(e);for(var u=0,l=t.length;u1&&void 0!==arguments[1])||arguments[1];return null===t&&(n="Null"),void 0===t&&(n="Undefined"),zt(t)&&(n="NaN"),At(t)&&(n="Buffer"),n||(n=ut(t).match(e))&&(n=n[1]),n?r?Xt(n):n:""};var e=/^\[object\s+(.*?)]$/;return t}({}),gn=E.stringify=function(t,e){return JSON.stringify(t,function(){var t=[],e=[];return function(n,r){if(t.length>0){var i=t.indexOf(this);i>-1?(t.splice(i+1),e.splice(i,1/0,n)):(t.push(this),e.push(n));var a=t.indexOf(r);a>-1&&(r=t[0]===r?"[Circular ~]":"[Circular ~."+e.slice(0,a).join(".")+"]")}else t.push(r);return Gt(r)||dt(r)?r="["+at(vn(r))+" "+W(r)+"]":A(r)&&(r=null),r}}(),e)},mn=E.LocalStore=function(t){var e=ne("local");return Ye.extend({initialize:function(t,n){this._name=t,n=n||{};var r=e.getItem(t);try{r=JSON.parse(r)}catch(t){r={}}S(r)||(r={}),n=ge(r,n),this.callSuper(Ye,"initialize",[n])},save:function(t){if(Et(t))return e.removeItem(this._name);e.setItem(this._name,gn(t))}})}(),bn=E.stringifyAll=function(t){function e(e,r,i,a){var o=[];return yt(r,(function(e){var r,s=Object.getOwnPropertyDescriptor(i,e),u=s&&s.get,l=s&&s.set;if(!a.accessGetter&&u)r="(...)";else try{if(r=i[e],Ot(a.ignore,r))return;Wt(r)&&r.catch((function(){}))}catch(t){r=t.message}o.push("".concat(n(e),":").concat(t(r,a))),u&&o.push("".concat(n("get "+W(e)),":").concat(t(s.get,a))),l&&o.push("".concat(n("set "+W(e)),":").concat(t(s.set,a)))})),'"'.concat(e,'":{')+o.join(",")+"}"}function n(t){return'"'.concat(i(t),'"')}function r(t){return'"'.concat(i(W(t)),'"')}function i(t){return tt(t).replace(/\\'/g,"'").replace(/\t/g,"\\t")}t=function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=i.self,s=i.startTime,u=void 0===s?ue():s,l=i.timeout,c=void 0===l?0:l,_=i.depth,h=void 0===_?0:_,p=i.curDepth,f=void 0===p?1:p,d=i.visitor,v=void 0===d?new a:d,g=i.unenumerable,m=void 0!==g&&g,b=i.symbol,y=void 0!==b&&b,w=i.accessGetter,x=void 0!==w&&w,k=i.ignore,$=void 0===k?[]:k,E="",j={visitor:v,unenumerable:m,symbol:y,accessGetter:x,depth:h,curDepth:f+1,timeout:c,startTime:u,ignore:$},A=vn(n,!1);if("String"===A)E=r(n);else if("Number"===A)E=W(n),J(E,"Infinity")&&(E='{"value":"'.concat(E,'","type":"Number"}'));else if("NaN"===A)E='{"value":"NaN","type":"Number"}';else if("Boolean"===A)E=n?"true":"false";else if("Null"===A)E="null";else if("Undefined"===A)E='{"type":"Undefined"}';else if("Symbol"===A){var S="Symbol";try{S=W(n)}catch(t){}E='{"value":'.concat(r(S),',"type":"Symbol"}')}else{if(c&&ue()-u>c)return r("Timeout");if(h&&f>h)return r("{...}");E="{";var T,C=[],R=v.get(n);if(R?(T=R.id,C.push('"reference":'.concat(T))):(T=v.set(n),C.push('"id":'.concat(T))),C.push('"type":"'.concat(A,'"')),J(A,"Function")?C.push('"value":'.concat(r(Bt(n)))):"RegExp"===A&&C.push('"value":'.concat(r(n))),!R){var D=P(n);if(D.length&&C.push(e("enumerable",D,o||n,j)),m){var L=fe(ve(n,{prototype:!1,unenumerable:!0}),D);L.length&&C.push(e("unenumerable",L,o||n,j))}if(y){var N=pe(ve(n,{prototype:!1,symbol:!0}),(function(t){return"symbol"===O()(t)}));N.length&&C.push(e("symbol",N,o||n,j))}var M=vt(n);if(M&&!Ot($,M)){var F='"proto":'.concat(t(M,be(j,{self:o||n})));C.push(F)}}E+=C.join(",")+"}"}return E};var a=Ee({initialize:function(){this.id=0,this.visited=[]},set:function(t){var e=this.visited,n=this.id,r={id:n,val:t};return e.push(r),this.id++,n},get:function(t){for(var e=this.visited,n=0,r=e.length;n-1&&e.splice(n,1)},rmAllListeners:function(){e=[]}},L?(window.addEventListener("error",(function(t){i(t.error)})),window.addEventListener("unhandledrejection",(function(t){i(t.reason)}))):(r.on("uncaughtException",i),r.on("unhandledRejection",i)),t}({}),xn=E.uniqId=(k=0,function(t){var e=++k+"";return t?t+e:e}),kn=E.viewportScale=function(){var t=Ue("viewport");if(!t)return 1;t=xe(t.split(","),(function(t){return un(t)}));var e=.25,n=5,r=1;yt(t,(function(t){var i=(t=t.split("="))[0];t=t[1],"initial-scale"===i&&(r=+t),"maximum-scale"===i&&(n=+t),"minimum-scale"===i&&(e=+t)}));var i=B(r,e,n);return zt(i)?1:i},$n=E.wrap=function(t,e){return Ke(e,t)},On=E.xpath=function(t){for(var e=[],n=document.evaluate(t,document,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null),r=0;r0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0;if(t<1)return e.inverse(this);var n=1,r=0,i=t*n+r,a=r,o="";do{var s={index:a,count:t,start:r,step:n,first:a===r,last:a>=i-n},u=[a,s];o+=e.fn(this,{data:s,blockParams:u}),a+=s.step}while(a":">",'"':""","'":"'","`":"`","=":"="},i=/[&<>"'`=]/g,a=/[&<>"'`=]/;function o(t){return r[t]}function s(t){for(var e=1;e=0&&e<=a&&!i(t)},t.exports=e},function(t,e){var n=Object.prototype.toString;e=function(t){return n.call(t)},t.exports=e},function(t,e){var n=Object.prototype.hasOwnProperty;e=function(t,e){return n.call(t,e)},t.exports=e},function(t,e,n){var r=n(9),i=n(47),a=n(8),o=n(1);e=function(t){return t?a(t)?t:r(t)&&!o(t)?i(t):[t]:[]},t.exports=e},function(t,e,n){var r=n(21),i=n(12),a=n(48),o=n(26),s=n(50),u=(e=function(t,e){return u.extend(t,e)}).Base=function t(e,n,u){u=u||{};var l=n.className||o(n,"initialize.name")||"";delete n.className;var c=function(){var t=i(arguments);return this.initialize&&this.initialize.apply(this,t)||this};if(!s)try{c=new Function("toArr","return function "+l+"(){var args = toArr(arguments);return this.initialize ? this.initialize.apply(this, args) || this : this;};")(i)}catch(t){}return a(c,e),c.prototype.constructor=c,c.extend=function(e,n){return t(c,e,n)},c.inherits=function(t){a(c,t)},c.methods=function(t){return r(c.prototype,t),c},c.statics=function(t){return r(c,t),c},c.methods(n).statics(u),c}(Object,{className:"Base",callSuper:function(t,e,n){return t.prototype[e].apply(this,n)},toString:function(){return this.constructor.name}});t.exports=e},function(t,e,n){var r=n(15),i=n(0);e=function(t,e,n){var a=[];return e=r(e,n),i(t,(function(t,n,r){e(t,n,r)&&a.push(t)})),a},t.exports=e},function(t,e,n){var r=n(6),i=n(2),a=n(8),o=n(23),s=n(41),u=n(44),l=n(45);e=function(t,e,n){return null==t?u:r(t)?o(t,e,n):i(t)&&!a(t)?s(t):l(t)},t.exports=e},function(t,e,n){var r=n(17);e=function(t){return r(t).toLocaleLowerCase()},t.exports=e},function(t,e){e=function(t){return null==t?"":t.toString()},t.exports=e},function(t,e){e=function(t){return t.length<1?t:t[0].toUpperCase()+t.slice(1)},t.exports=e},function(t,e,n){var r=n(63),i=n(1),a=n(9),o=n(64);e=function(t,e){return i(t)?t.indexOf(e)>-1:(a(t)||(t=o(t)),r(t,e)>=0)},t.exports=e},function(t,e,n){var r=n(13),i=n(11),a=n(0),o=n(51),s=n(52);e=r({initialize:function(){this._events=this._events||{}},on:function(t,e){return this._events[t]=this._events[t]||[],this._events[t].push(e),this},off:function(t,e){if(i(this._events,t))return this._events[t].splice(this._events[t].indexOf(e),1),this},once:function(t,e){return this.on(t,s(e)),this},emit:function(t){if(i(this._events,t)){var e=o(arguments,1);return a(this._events[t],(function(t){t.apply(this,e)}),this),this}}},{mixin:function(t){a(["on","off","once","emit"],(function(n){t[n]=e.prototype[n]})),t._events=t._events||{}}}),t.exports=e},function(t,e,n){e=n(22)(n(24)),t.exports=e},function(t,e,n){var r=n(5),i=n(0);e=function(t,e){return function(n){return i(arguments,(function(a,o){if(0!==o){var s=t(a);i(s,(function(t){e&&!r(n[t])||(n[t]=a[t])}))}})),n}},t.exports=e},function(t,e,n){var r=n(5);e=function(t,e,n){if(r(e))return t;switch(null==n?3:n){case 1:return function(n){return t.call(e,n)};case 3:return function(n,r,i){return t.call(e,n,r,i)};case 4:return function(n,r,i,a){return t.call(e,n,r,i,a)}}return function(){return t.apply(e,arguments)}},t.exports=e},function(t,e,n){var r=n(4),i=n(25),a=n(40),o=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols;e=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.prototype,u=void 0===n||n,l=e.unenumerable,c=void 0!==l&&l,_=e.symbol,h=void 0!==_&&_,p=[];if((c||h)&&o){var f=r;c&&o&&(f=o);do{p=p.concat(f(t)),h&&s&&(p=p.concat(s(t)))}while(u&&(t=i(t))&&t!==Object.prototype);p=a(p)}else if(u)for(var d in t)p.push(d);else p=r(t);return p},t.exports=e},function(t,e,n){var r=n(2),i=n(6),a=Object.getPrototypeOf,o={}.constructor;e=function(t){if(r(t)){if(a)return a(t);var e=t.__proto__;return e||null===e?e:i(t.constructor)?t.constructor.prototype:t instanceof o?o.prototype:void 0}},t.exports=e},function(t,e,n){var r=n(5),i=n(46);e=function(t,e){var n;for(n=(e=i(e,t)).shift();!r(n);){if(null==(t=t[n]))return;n=e.shift()}return t},t.exports=e},function(t,e){e=function(t,e){return e=null==e?t.length-1:+e,function(){var n,r=Math.max(arguments.length-e,0),i=new Array(r);for(n=0;n500&&(t=t.slice(0,500)+"..."),"ƒ "+a.default(function(t){var e=t.match(l);return e?e[0]:t}(t).replace("function",""))};var l=/function(.*?)\((.*?)\)/;function c(t,e){return(t=_(t))>(e=_(e))?1:tr?1:nu?u:a,_=0;_u?1:a100){l.unshift("virtual"),a=!0;var b=0,y={};v.default($.default(t,100),(function(t){var e=Object.create(null),n=b,r="["+n;v.default(t,(function(t){e[b]=t,y[b]=!0,b++}));var i=b-1;g[r+=(i-n>0?" … "+i:"")+"]"]=e})),f=d.default(g),c=k.default(c,(function(t){return!y[t]}))}v.default(l,(function(r){var o=[];o="symbol"===r?h:"unenumerable"===r?_:"virtual"===r?f:c,a||o.sort(A.sortObjName);for(var u=0,l=o.length;u"+y(t)+'null';if(l.default(n)||c.default(n))return"
  • "+y(t)+''+A.encode(n)+"
  • ";if("RegExp"===s&&(o="regexp"),"Number"===s&&(o="number"),"Number"===s||"RegExp"===s)return"
  • "+y(t)+''+A.encode(n.value)+"
  • ";if("Undefined"===s||"Symbol"===s)return"
  • "+y(t)+''+_.default(s)+"
  • ";if("(...)"===n)return"
  • "+y(t)+''+n+"
  • ";if(h.default(n)){var u=a.get(n),p=void 0;if(u)p=u.id;else{var d={};"proto"===r&&(d.self=e),p=a.set(n,d),this.map[p]=n}var v=function(t,e){if(e)return"Function"===e?A.getFnAbstract(g.default(t)):"Array"===e?"Array("+t.length+")":e}(n,s)||f.default(o),m="
  • '+y(t)+''+(i?"":v)+'
      ";return i&&(m+=this.objToHtml(n)),m+'
  • '}function y(t){if(i)return"";if(h.default(n)&&"virtual"===r)return"";var e=T+"key";return"unenumerable"!==r&&"proto"!==r&&"symbol"!==r||(e=T+"key-lighter"),''+A.encode(t)+": "}return"
  • "+y(t)+'"'+A.encode(n)+'"
  • '},e.prototype.appendTpl=function(){this.$container.html(this.objToHtml(this.data,!0))},e.prototype.bindEvent=function(){var t=this;this.$container.on("click","li",(function(e){var n=t.map,r=y.default(this),i=r.data("object-id"),a=y.default(this).find("span").eq(0);if(!r.data("first-level")&&(i&&(r.find("ul").html(t.objToHtml(n[i],!1)),r.rmAttr("data-object-id")),e.stopImmediatePropagation(),a.hasClass(T+"expanded"))){var o=r.find("ul").eq(0);a.hasClass(T+"collapsed")?(a.rmClass(T+"collapsed"),o.show()):(a.addClass(T+"collapsed"),o.hide()),t.emit("change")}}))},e}(s.default)).Static=S.default,i)},function(t,e,n){var r=n(14);function i(t,e){return t===e}e=function(t,e){return e=e||i,r(t,(function(t,n,r){for(var i=r.length;++n0&&(n=e.apply(this,arguments)),t<=1&&(e=null),n}},t.exports=e},function(t,e,n){var r=n(56);e=function(t){if(r(t))return"";try{return i.call(t)}catch(t){}try{return t+""}catch(t){}return""};var i=Function.prototype.toString;t.exports=e},function(t,e){e=function(t){return null==t},t.exports=e},function(t,e,n){var r=n(2),i=n(6);e=function(t){return r(t)&&i(t.then)&&i(t.catch)},t.exports=e},function(t,e,n){var r=n(10),i=n(29),a=n(16),o=n(59);e=function(t){var e,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return null===t&&(e="Null"),void 0===t&&(e="Undefined"),i(t)&&(e="NaN"),o(t)&&(e="Buffer"),e||(e=r(t).match(s))&&(e=e[1]),e?n?a(e):e:""};var s=/^\[object\s+(.*?)]$/;t.exports=e},function(t,e,n){var r=n(6);e=function(t){return null!=t&&(!!t._isBuffer||t.constructor&&r(t.constructor.isBuffer)&&t.constructor.isBuffer(t))},t.exports=e},function(t,e,n){var r=n(3);e=function(t){var e=(t=r(t))[0].getBoundingClientRect();return{left:e.left+window.pageXOffset,top:e.top+window.pageYOffset,width:Math.round(e.width),height:Math.round(e.height)}},t.exports=e},function(t,e,n){var r=n(0),i=n(3);e=function(t){t=i(t),r(t,(function(t){(function(t){return"none"==getComputedStyle(t,"").getPropertyValue("display")})(t)&&(t.style.display=function(t){var e,n;return a[t]||(e=document.createElement(t),document.documentElement.appendChild(e),n=getComputedStyle(e,"").getPropertyValue("display"),e.parentNode.removeChild(e),"none"==n&&(n="block"),a[t]=n),a[t]}(t.nodeName))}))};var a={};t.exports=e},function(t,e,n){var r=n(1),i=n(2),a=n(32),o=n(5),s=n(19),u=n(7),l=n(3),c=n(65),_=n(0);e=function(t,e,n){if(t=l(t),o(n)&&r(e))return function(t,e){return t.style[c(e)]||getComputedStyle(t,"").getPropertyValue(e)}(t[0],e);var p=e;i(p)||((p={})[e]=n),function(t,e){_(t,(function(t){var n=";";_(e,(function(t,e){e=c.dash(e),n+=e+":"+function(t,e){return u(e)&&!s(h,a(t))?e+"px":e}(e,t)+";"})),t.style.cssText+=n}))}(t,p)};var h=["column-count","columns","font-weight","line-weight","opacity","z-index","zoom"];t.exports=e},function(t,e){e=function(t,e,n){return Array.prototype.indexOf.call(t,e,n)},t.exports=e},function(t,e,n){var r=n(0);e=function(t){var e=[];return r(t,(function(t){e.push(t)})),e},t.exports=e},function(t,e,n){var r=n(66),i=n(67),a=n(18),o=n(11),s=n(32);(e=r((function(t){if(t=t.replace(l,""),t=i(t),o(c,t))return t;for(var e=u.length;e--;){var n=u[e]+a(t);if(o(c,n))return n}return t}))).dash=r((function(t){var n=e(t);return(l.test(n)?"-":"")+s(n)}));var u=["O","ms","Moz","Webkit"],l=/^(O)|(ms)|(Moz)|(Webkit)|(-o-)|(-ms-)|(-moz-)|(-webkit-)/g,c=document.createElement("p").style;t.exports=e},function(t,e,n){var r=n(11);e=function(t,e){var n=function(i){var a=n.cache,o=""+(e?e.apply(this,arguments):i);return r(a,o)||(a[o]=t.apply(this,arguments)),a[o]};return n.cache={},n},t.exports=e},function(t,e,n){var r=n(33);function i(t,e){this[e]=t.replace(/\w/,(function(t){return t.toUpperCase()}))}e=function(t){var e=r(t),n=e[0];return e.shift(),e.forEach(i,e),n+e.join("")},t.exports=e},function(t,e,n){var r=n(5),i=n(0),a=n(3);function o(t){return function(e,n){var o=(e=a(e))[0];if(r(n))return o?o[t]:"";o&&i(e,(function(e){e[t]=n}))}}e={html:o("innerHTML"),text:o("textContent"),val:o("value")},t.exports=e},function(t,e){e=function(t){var e=t?t.length:0;if(e)return t[e-1]},t.exports=e},function(t,e,n){var r=n(0),i=n(3);e=function(t){t=i(t),r(t,(function(t){var e=t.parentNode;e&&e.removeChild(t)}))},t.exports=e},function(t,e,n){var r=n(34),i=n(1),a=n(2),o=n(0);n(3),e=function(t,e,n){var s=e;return i(e)&&(s="data-"+e),a(e)&&(s={},o(e,(function(t,e){s["data-"+e]=t}))),r(t,s,n)},t.exports=e},function(t,e,n){var r=n(73),i=n(5),a=n(3),o=n(0);function s(t){return function(e,n,s,u){e=a(e),i(u)&&(u=s,s=void 0),o(e,(function(e){r[t](e,n,s,u)}))}}e={on:s("add"),off:s("remove")},t.exports=e},function(t,e,n){var r=n(13),i=n(19);function a(){return!0}function o(){return!1}function s(t){var n,r=this.events[t.type],i=u.call(this,t,r);t=new e.Event(t);for(var a,o,s=0;(o=i[s++])&&!t.isPropagationStopped();)for(t.curTarget=o.el,a=0;(n=o.handlers[a++])&&!t.isImmediatePropagationStopped();)!1===n.handler.apply(o.el,[t])&&(t.preventDefault(),t.stopPropagation())}function u(t,e){var n,r,a,o,s=t.target,u=[],l=e.delegateCount;if(s.nodeType)for(;s!==this;s=s.parentNode||this){for(r=[],o=0;o=o?"":t.substr(a,o)},t.exports=e},function(t,e){var n=/\s+$/;e=function(t,e){if(null==e)return t.replace(n,"");for(var r,i,a=t.length-1,o=e.length,s=!0;s&&a>=0;)for(s=!1,r=-1,i=t.charAt(a);++r=0?t.substring(0,a+1):""},t.exports=e},function(t,e,n){var r=n(4),i=(e=function(t){return o.test(t)?t.replace(s,u):t}).map={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},a="(?:"+r(i).join("|")+")",o=new RegExp(a),s=new RegExp(a,"g"),u=function(t){return i[t]};t.exports=e},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=a(n(30)),s=a(n(38)),u=a(n(2)),l=a(n(86)),c=a(n(18)),_=a(n(37)),h=a(n(35)),p=a(n(0)),f=a(n(29)),d=a(n(7)),v=a(n(28)),g=a(n(1)),m=a(n(4)),b=a(n(16)),y=a(n(20)),w=n(36),x="luna-object-viewer-",k=function(t){function e(e){var n=t.call(this)||this;return n.$container=o.default(e),n.$container.addClass("luna-object-viewer"),n.bindEvent(),n}return i(e,t),e.prototype.set=function(t){g.default(t)&&(t=JSON.parse(t)),this.data={id:l.default("json"),enumerable:{0:t}},this.map={},function t(e,n){var r=n.id;if(r||0===r){if(n.type&&s.default(n.type,"Array")&&n.enumerable){var i=function(t,e,n){var r=[],i={};return p.default(t.enumerable,(function(t,e){var n=_.default(e);f.default(n)?i[e]=t:r[n]=t})),r.enumerable=i,r.type=n,r.id=e,t.unenumerable&&(r.unenumerable=t.unenumerable),t.symbol&&(r.symbol=t.symbol),t.proto&&(r.proto=t.proto),r}(n,r,n.type);i.length>100&&(n=function(t){var e=0,n={};p.default(h.default(t,100),(function(t){var r={},i=e;r.type="["+i,r.enumerable={},p.default(t,(function(t){r.enumerable[e]=t,e+=1}));var a=e-1;r.type+=(a-i>0?" … "+a:"")+"]",r.id=l.default("json"),r.jsonSplitArr=!0,n[e]=r}));var r={};return r.enumerable=n,r.id=t.id,r.type=t.type,t.unenumerable&&(r.unenumerable=t.unenumerable),t.symbol&&(r.symbol=t.symbol),t.proto&&(r.proto=t.proto),r}(i))}e[r]=n;var a=[];p.default(["enumerable","unenumerable","symbol"],(function(t){if(n[t])for(var e in n[t])a.push(n[t][e])})),n.proto&&a.push(n.proto);for(var o=0,c=a.length;o"+_(t)+'null';if(d.default(e)||v.default(e))return"
  • "+_(t)+''+w.encode(e)+"
  • ";if("RegExp"===e.type&&(i="regexp"),"Number"===e.type&&(i="number"),"Number"===e.type||"RegExp"===e.type)return"
  • "+_(t)+''+w.encode(e.value)+"
  • ";if("Undefined"===e.type||"Symbol"===e.type)return"
  • "+_(t)+''+b.default(e.type)+"
  • ";if("(...)"===e)return"
  • "+_(t)+''+e+"
  • ";if(u.default(e)){var a=e.id,o=e.reference,s=$(e)||c.default(i),l="
  • '+_(t)+''+(r?"":s)+'
      ";return r&&(l+=this.objToHtml(this.map[a])),l+'
  • '}function _(t){if(r)return"";if(u.default(e)&&e.jsonSplitArr)return"";var i=x+"key";return"unenumerable"!==n&&"proto"!==n&&"symbol"!==n||(i=x+"key-lighter"),''+w.encode(t)+": "}return"
  • "+_(t)+'"'+w.encode(e)+'"
  • '},e.prototype.appendTpl=function(){var t=this.map[this.data.id];this.$container.html(this.objToHtml(t,!0))},e.prototype.bindEvent=function(){var t=this;this.$container.on("click","li",(function(e){var n=t.map,r=o.default(this),i=r.data("object-id"),a=o.default(this).find("span").eq(0);if(!r.data("first-level")&&(i&&(r.find("ul").html(t.objToHtml(n[i],!1)),r.rmAttr("data-object-id")),e.stopImmediatePropagation(),a.hasClass(x+"expanded"))){var s=r.find("ul").eq(0);a.hasClass(x+"collapsed")?(a.rmClass(x+"collapsed"),s.show()):(a.addClass(x+"collapsed"),s.hide()),t.emit("change")}}))},e}(y.default);function $(t){var e=t.type,n=t.value;if(e)return"Function"===e?w.getFnAbstract(n):"Array"===e&&t.unenumerable?"Array("+t.unenumerable.length+")":t.type}e.default=k,e.getObjAbstract=$},function(t,e){var n=0;e=function(t){var e=++n+"";return t?t+e:e},t.exports=e},function(t,e,n){}])},function(t,e,n){var r,i;i=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}([function(t,e,n){"use strict";var r=n(1).Beautifier,i=n(5).Options;t.exports=function(t,e){return new r(t,e).beautify()},t.exports.defaultOptions=function(){return new i}},function(t,e,n){"use strict";var r=n(2).Output,i=n(3).Token,a=n(4),o=n(5).Options,s=n(7).Tokenizer,u=n(7).line_starters,l=n(7).positionable_operators,c=n(7).TOKEN;function _(t,e){return-1!==e.indexOf(t)}function h(t,e){return t&&t.type===c.RESERVED&&t.text===e}function p(t,e){return t&&t.type===c.RESERVED&&_(t.text,e)}var f=["case","return","do","if","throw","else","await","break","continue","async"],d=function(t){for(var e={},n=0;nn&&(n=t.line_indent_level)),{mode:e,parent:t,last_token:t?t.last_token:new i(c.START_BLOCK,""),last_word:t?t.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,inline_frame:!1,if_block:!1,else_block:!1,do_block:!1,do_while:!1,import_block:!1,in_case_statement:!1,in_case:!1,case_body:!1,indentation_level:n,alignment:0,line_indent_level:t?t.line_indent_level:n,start_line_index:this._output.get_line_number(),ternary_depth:0}},j.prototype._reset=function(t){var e=t.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new r(this._options,e),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(g);var n=new s(t,this._options);return this._tokens=n.tokenize(),t},j.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var t=this._reset(this._source_text),e=this._options.eol;"auto"===this._options.eol&&(e="\n",t&&a.lineBreak.test(t||"")&&(e=t.match(a.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 this._output.get_code(e)},j.prototype.handle_token=function(t,e){t.type===c.START_EXPR?this.handle_start_expr(t):t.type===c.END_EXPR?this.handle_end_expr(t):t.type===c.START_BLOCK?this.handle_start_block(t):t.type===c.END_BLOCK?this.handle_end_block(t):t.type===c.WORD||t.type===c.RESERVED?this.handle_word(t):t.type===c.SEMICOLON?this.handle_semicolon(t):t.type===c.STRING?this.handle_string(t):t.type===c.EQUALS?this.handle_equals(t):t.type===c.OPERATOR?this.handle_operator(t):t.type===c.COMMA?this.handle_comma(t):t.type===c.BLOCK_COMMENT?this.handle_block_comment(t,e):t.type===c.COMMENT?this.handle_comment(t,e):t.type===c.DOT?this.handle_dot(t):t.type===c.EOF?this.handle_eof(t):(t.type,c.UNKNOWN,this.handle_unknown(t,e))},j.prototype.handle_whitespace_and_comments=function(t,e){var n=t.newlines,r=this._options.keep_array_indentation&&O(this._flags.mode);if(t.comments_before)for(var i=t.comments_before.next();i;)this.handle_whitespace_and_comments(i,e),this.handle_token(i,e),i=t.comments_before.next();if(r)for(var a=0;a0,e);else if(this._options.max_preserve_newlines&&n>this._options.max_preserve_newlines&&(n=this._options.max_preserve_newlines),this._options.preserve_newlines&&n>1){this.print_newline(!1,e);for(var o=1;o0&&(!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))},j.prototype.set_mode=function(t){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,t),this._flags=this.create_flags(this._previous_flags,t),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},j.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===m&&$(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},j.prototype.start_of_object_property=function(){return this._flags.parent.mode===b&&this._flags.mode===m&&(":"===this._flags.last_token.text&&0===this._flags.ternary_depth||p(this._flags.last_token,["get","set"]))},j.prototype.start_of_statement=function(t){var e=!1;return!!(e=(e=(e=(e=(e=(e=(e=e||p(this._flags.last_token,["var","let","const"])&&t.type===c.WORD)||h(this._flags.last_token,"do"))||!(this._flags.parent.mode===b&&this._flags.mode===m)&&p(this._flags.last_token,A)&&!t.newlines)||h(this._flags.last_token,"else")&&!(h(t,"if")&&!t.comments_before))||this._flags.last_token.type===c.END_EXPR&&(this._previous_flags.mode===w||this._previous_flags.mode===x))||this._flags.last_token.type===c.WORD&&this._flags.mode===g&&!this._flags.in_case&&!("--"===t.text||"++"===t.text)&&"function"!==this._last_last_text&&t.type!==c.WORD&&t.type!==c.RESERVED)||this._flags.mode===b&&(":"===this._flags.last_token.text&&0===this._flags.ternary_depth||p(this._flags.last_token,["get","set"])))&&(this.set_mode(m),this.indent(),this.handle_whitespace_and_comments(t,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(t,p(t,["do","for","if","while"])),!0)},j.prototype.handle_start_expr=function(t){this.start_of_statement(t)||this.handle_whitespace_and_comments(t);var e=k;if("["===t.text){if(this._flags.last_token.type===c.WORD||")"===this._flags.last_token.text)return p(this._flags.last_token,u)&&(this._output.space_before_token=!0),this.print_token(t),this.set_mode(e),this.indent(),void(this._options.space_in_paren&&(this._output.space_before_token=!0));e=y,O(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()),_(this._flags.last_token.type,[c.START_EXPR,c.END_EXPR,c.WORD,c.OPERATOR])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===c.RESERVED)"for"===this._flags.last_token.text?(this._output.space_before_token=this._options.space_before_conditional,e=w):_(this._flags.last_token.text,["if","while"])?(this._output.space_before_token=this._options.space_before_conditional,e=x):_(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:"import"===this._flags.last_token.text&&""===t.whitespace_before?this._output.space_before_token=!1:(_(this._flags.last_token.text,u)||"catch"===this._flags.last_token.text)&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===c.EQUALS||this._flags.last_token.type===c.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(t);else if(this._flags.last_token.type===c.WORD){this._output.space_before_token=!1;var n=this._tokens.peek(-3);if(this._options.space_after_named_function&&n){var r=this._tokens.peek(-4);p(n,["async","function"])||"*"===n.text&&p(r,["async","function"])?this._output.space_before_token=!0:this._flags.mode===b&&("{"!==n.text&&","!==n.text&&("*"!==n.text||"{"!==r.text&&","!==r.text)||(this._output.space_before_token=!0))}}else this.allow_wrap_or_preserved_newline(t);(this._flags.last_token.type===c.RESERVED&&("function"===this._flags.last_word||"typeof"===this._flags.last_word)||"*"===this._flags.last_token.text&&(_(this._last_last_text,["function","yield"])||this._flags.mode===b&&_(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===c.START_BLOCK?this.print_newline():this._flags.last_token.type!==c.END_EXPR&&this._flags.last_token.type!==c.START_EXPR&&this._flags.last_token.type!==c.END_BLOCK&&"."!==this._flags.last_token.text&&this._flags.last_token.type!==c.COMMA||this.allow_wrap_or_preserved_newline(t,t.newlines),this.print_token(t),this.set_mode(e),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},j.prototype.handle_end_expr=function(t){for(;this._flags.mode===m;)this.restore_mode();this.handle_whitespace_and_comments(t),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(t,"]"===t.text&&O(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type!==c.START_EXPR||this._options.space_in_empty_paren?this._output.space_before_token=!0:(this._output.trim(),this._output.space_before_token=!1)),this.deindent(),this.print_token(t),this.restore_mode(),$(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===x&&(this._previous_flags.mode=k,this._flags.do_block=!1,this._flags.do_while=!1)},j.prototype.handle_start_block=function(t){this.handle_whitespace_and_comments(t);var e=this._tokens.peek(),n=this._tokens.peek(1);"switch"===this._flags.last_word&&this._flags.last_token.type===c.END_EXPR?(this.set_mode(g),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(g):n&&(_(n.text,[":",","])&&_(e.type,[c.STRING,c.WORD,c.RESERVED])||_(e.text,["get","set","..."])&&_(n.type,[c.WORD,c.RESERVED]))?_(this._last_last_text,["class","interface"])?this.set_mode(g):this.set_mode(b):this._flags.last_token.type===c.OPERATOR&&"=>"===this._flags.last_token.text?this.set_mode(g):_(this._flags.last_token.type,[c.EQUALS,c.START_EXPR,c.COMMA,c.OPERATOR])||p(this._flags.last_token,["return","throw","import","default"])?this.set_mode(b):this.set_mode(g);var r=!e.comments_before&&"}"===e.text,i=r&&"function"===this._flags.last_word&&this._flags.last_token.type===c.END_EXPR;if(this._options.brace_preserve_inline){var a=0,o=null;this._flags.inline_frame=!0;do{if(a+=1,(o=this._tokens.peek(a-1)).newlines){this._flags.inline_frame=!1;break}}while(o.type!==c.EOF&&(o.type!==c.END_BLOCK||o.opened!==t))}("expand"===this._options.brace_style||"none"===this._options.brace_style&&t.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==c.OPERATOR&&(i||this._flags.last_token.type===c.EQUALS||p(this._flags.last_token,f)&&"else"!==this._flags.last_token.text)?this._output.space_before_token=!0:this.print_newline(!1,!0):(!O(this._previous_flags.mode)||this._flags.last_token.type!==c.START_EXPR&&this._flags.last_token.type!==c.COMMA||((this._flags.last_token.type===c.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===c.COMMA||this._flags.last_token.type===c.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(t),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==c.OPERATOR&&this._flags.last_token.type!==c.START_EXPR&&(this._flags.last_token.type!==c.START_BLOCK||this._flags.inline_frame?this._output.space_before_token=!0:this.print_newline())),this.print_token(t),this.indent(),r||this._options.brace_preserve_inline&&this._flags.inline_frame||this.print_newline()},j.prototype.handle_end_block=function(t){for(this.handle_whitespace_and_comments(t);this._flags.mode===m;)this.restore_mode();var e=this._flags.last_token.type===c.START_BLOCK;this._flags.inline_frame&&!e?this._output.space_before_token=!0:"expand"===this._options.brace_style?e||this.print_newline():e||(O(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(t)},j.prototype.handle_word=function(t){if(t.type===c.RESERVED&&(_(t.text,["set","get"])&&this._flags.mode!==b||"import"===t.text&&"("===this._tokens.peek().text||_(t.text,["as","from"])&&!this._flags.import_block||this._flags.mode===b&&":"===this._tokens.peek().text)&&(t.type=c.WORD),this.start_of_statement(t)?p(this._flags.last_token,["var","let","const"])&&t.type===c.WORD&&(this._flags.declaration_statement=!0):!t.newlines||E(this._flags.mode)||this._flags.last_token.type===c.OPERATOR&&"--"!==this._flags.last_token.text&&"++"!==this._flags.last_token.text||this._flags.last_token.type===c.EQUALS||!this._options.preserve_newlines&&p(this._flags.last_token,["var","let","const","set","get"])?this.handle_whitespace_and_comments(t):(this.handle_whitespace_and_comments(t),this.print_newline()),this._flags.do_block&&!this._flags.do_while){if(h(t,"while"))return this._output.space_before_token=!0,this.print_token(t),this._output.space_before_token=!0,void(this._flags.do_while=!0);this.print_newline(),this._flags.do_block=!1}if(this._flags.if_block)if(!this._flags.else_block&&h(t,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===m;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&p(t,["case","default"]))return this.print_newline(),this._flags.last_token.type!==c.END_BLOCK&&(this._flags.case_body||this._options.jslint_happy)&&this.deindent(),this._flags.case_body=!1,this.print_token(t),void(this._flags.in_case=!0);if(this._flags.last_token.type!==c.COMMA&&this._flags.last_token.type!==c.START_EXPR&&this._flags.last_token.type!==c.EQUALS&&this._flags.last_token.type!==c.OPERATOR||this.start_of_object_property()||this.allow_wrap_or_preserved_newline(t),h(t,"function"))return(_(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!_(this._flags.last_token.text,["(","[","{",":","=",","])&&this._flags.last_token.type!==c.OPERATOR)&&(this._output.just_added_blankline()||t.comments_before||(this.print_newline(),this.print_newline(!0))),this._flags.last_token.type===c.RESERVED||this._flags.last_token.type===c.WORD?p(this._flags.last_token,["get","set","new","export"])||p(this._flags.last_token,A)||h(this._flags.last_token,"default")&&"export"===this._last_last_text||"declare"===this._flags.last_token.text?this._output.space_before_token=!0:this.print_newline():this._flags.last_token.type===c.OPERATOR||"="===this._flags.last_token.text?this._output.space_before_token=!0:(this._flags.multiline_frame||!E(this._flags.mode)&&!O(this._flags.mode))&&this.print_newline(),this.print_token(t),void(this._flags.last_word=t.text);var e="NONE";this._flags.last_token.type===c.END_BLOCK?this._previous_flags.inline_frame?e="SPACE":p(t,["else","catch","finally","from"])?"expand"===this._options.brace_style||"end-expand"===this._options.brace_style||"none"===this._options.brace_style&&t.newlines?e="NEWLINE":(e="SPACE",this._output.space_before_token=!0):e="NEWLINE":this._flags.last_token.type===c.SEMICOLON&&this._flags.mode===g?e="NEWLINE":this._flags.last_token.type===c.SEMICOLON&&E(this._flags.mode)?e="SPACE":this._flags.last_token.type===c.STRING?e="NEWLINE":this._flags.last_token.type===c.RESERVED||this._flags.last_token.type===c.WORD||"*"===this._flags.last_token.text&&(_(this._last_last_text,["function","yield"])||this._flags.mode===b&&_(this._last_last_text,["{",","]))?e="SPACE":this._flags.last_token.type===c.START_BLOCK?e=this._flags.inline_frame?"SPACE":"NEWLINE":this._flags.last_token.type===c.END_EXPR&&(this._output.space_before_token=!0,e="NEWLINE"),p(t,u)&&")"!==this._flags.last_token.text&&(e=this._flags.inline_frame||"else"===this._flags.last_token.text||"export"===this._flags.last_token.text?"SPACE":"NEWLINE"),p(t,["else","catch","finally"])?(this._flags.last_token.type!==c.END_BLOCK||this._previous_flags.mode!==g||"expand"===this._options.brace_style||"end-expand"===this._options.brace_style||"none"===this._options.brace_style&&t.newlines)&&!this._flags.inline_frame?this.print_newline():(this._output.trim(!0),"}"!==this._output.current_line.last()&&this.print_newline(),this._output.space_before_token=!0):"NEWLINE"===e?p(this._flags.last_token,f)||"declare"===this._flags.last_token.text&&p(t,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==c.END_EXPR?this._flags.last_token.type===c.START_EXPR&&p(t,["var","let","const"])||":"===this._flags.last_token.text||(h(t,"if")&&h(t.previous,"else")?this._output.space_before_token=!0:this.print_newline()):p(t,u)&&")"!==this._flags.last_token.text&&this.print_newline():this._flags.multiline_frame&&O(this._flags.mode)&&","===this._flags.last_token.text&&"}"===this._last_last_text?this.print_newline():"SPACE"===e&&(this._output.space_before_token=!0),!t.previous||t.previous.type!==c.WORD&&t.previous.type!==c.RESERVED||(this._output.space_before_token=!0),this.print_token(t),this._flags.last_word=t.text,t.type===c.RESERVED&&("do"===t.text?this._flags.do_block=!0:"if"===t.text?this._flags.if_block=!0:"import"===t.text?this._flags.import_block=!0:this._flags.import_block&&h(t,"from")&&(this._flags.import_block=!1))},j.prototype.handle_semicolon=function(t){this.start_of_statement(t)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(t);for(var e=this._tokens.peek();!(this._flags.mode!==m||this._flags.if_block&&h(e,"else")||this._flags.do_block);)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(t)},j.prototype.handle_string=function(t){this.start_of_statement(t)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(t),this._flags.last_token.type===c.RESERVED||this._flags.last_token.type===c.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===c.COMMA||this._flags.last_token.type===c.START_EXPR||this._flags.last_token.type===c.EQUALS||this._flags.last_token.type===c.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(t):this.print_newline()),this.print_token(t)},j.prototype.handle_equals=function(t){this.start_of_statement(t)||this.handle_whitespace_and_comments(t),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(t),this._output.space_before_token=!0},j.prototype.handle_comma=function(t){this.handle_whitespace_and_comments(t,!0),this.print_token(t),this._output.space_before_token=!0,this._flags.declaration_statement?(E(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(t)):this._flags.mode===b||this._flags.mode===m&&this._flags.parent.mode===b?(this._flags.mode===m&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(t)},j.prototype.handle_operator=function(t){var e="*"===t.text&&(p(this._flags.last_token,["function","yield"])||_(this._flags.last_token.type,[c.START_BLOCK,c.COMMA,c.END_BLOCK,c.SEMICOLON])),n=_(t.text,["-","+"])&&(_(this._flags.last_token.type,[c.START_BLOCK,c.START_EXPR,c.EQUALS,c.OPERATOR])||_(this._flags.last_token.text,u)||","===this._flags.last_token.text);if(this.start_of_statement(t));else{var r=!e;this.handle_whitespace_and_comments(t,r)}if(p(this._flags.last_token,f))return this._output.space_before_token=!0,void this.print_token(t);if("*"!==t.text||this._flags.last_token.type!==c.DOT)if("::"!==t.text){if(this._flags.last_token.type===c.OPERATOR&&_(this._options.operator_position,v)&&this.allow_wrap_or_preserved_newline(t),":"===t.text&&this._flags.in_case)return this.print_token(t),this._flags.in_case=!1,this._flags.case_body=!0,void(this._tokens.peek().type!==c.START_BLOCK?(this.indent(),this.print_newline()):this._output.space_before_token=!0);var i=!0,a=!0,o=!1;if(":"===t.text?0===this._flags.ternary_depth?i=!1:(this._flags.ternary_depth-=1,o=!0):"?"===t.text&&(this._flags.ternary_depth+=1),!n&&!e&&this._options.preserve_newlines&&_(t.text,l)){var s=":"===t.text,h=s&&o,b=s&&!o;switch(this._options.operator_position){case d.before_newline:return this._output.space_before_token=!b,this.print_token(t),s&&!h||this.allow_wrap_or_preserved_newline(t),void(this._output.space_before_token=!0);case d.after_newline:return this._output.space_before_token=!0,!s||h?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(t):this._output.space_before_token=!1,this.print_token(t),void(this._output.space_before_token=!0);case d.preserve_newline:return b||this.allow_wrap_or_preserved_newline(t),i=!(this._output.just_added_newline()||b),this._output.space_before_token=i,this.print_token(t),void(this._output.space_before_token=!0)}}if(e){this.allow_wrap_or_preserved_newline(t),i=!1;var y=this._tokens.peek();a=y&&_(y.type,[c.WORD,c.RESERVED])}else"..."===t.text?(this.allow_wrap_or_preserved_newline(t),i=this._flags.last_token.type===c.START_BLOCK,a=!1):(_(t.text,["--","++","!","~"])||n)&&(this._flags.last_token.type!==c.COMMA&&this._flags.last_token.type!==c.START_EXPR||this.allow_wrap_or_preserved_newline(t),i=!1,a=!1,!t.newlines||"--"!==t.text&&"++"!==t.text||this.print_newline(!1,!0),";"===this._flags.last_token.text&&E(this._flags.mode)&&(i=!0),this._flags.last_token.type===c.RESERVED?i=!0:this._flags.last_token.type===c.END_EXPR?i=!("]"===this._flags.last_token.text&&("--"===t.text||"++"===t.text)):this._flags.last_token.type===c.OPERATOR&&(i=_(t.text,["--","-","++","+"])&&_(this._flags.last_token.text,["--","-","++","+"]),_(t.text,["+","-"])&&_(this._flags.last_token.text,["--","++"])&&(a=!0)),(this._flags.mode!==g||this._flags.inline_frame)&&this._flags.mode!==m||"{"!==this._flags.last_token.text&&";"!==this._flags.last_token.text||this.print_newline());this._output.space_before_token=this._output.space_before_token||i,this.print_token(t),this._output.space_before_token=a}else this.print_token(t);else this.print_token(t)},j.prototype.handle_block_comment=function(t,e){return this._output.raw?(this._output.add_raw_token(t),void(t.directives&&"end"===t.directives.preserve&&(this._output.raw=this._options.test_output_raw))):t.directives?(this.print_newline(!1,e),this.print_token(t),"start"===t.directives.preserve&&(this._output.raw=!0),void this.print_newline(!1,!0)):a.newline.test(t.text)||t.newlines?void this.print_block_commment(t,e):(this._output.space_before_token=!0,this.print_token(t),void(this._output.space_before_token=!0))},j.prototype.print_block_commment=function(t,e){var n,r=function(t){for(var e=[],n=(t=t.replace(a.allLineBreaks,"\n")).indexOf("\n");-1!==n;)e.push(t.substring(0,n)),n=(t=t.substring(n+1)).indexOf("\n");return t.length&&e.push(t),e}(t.text),i=!1,o=!1,s=t.whitespace_before,u=s.length;if(this.print_newline(!1,e),this.print_token_line_indentation(t),this._output.add_token(r[0]),this.print_newline(!1,e),r.length>1){for(i=function(t,e){for(var n=0;n0&&(e=new Array(t.indent_level+1).join(this.__indent_string)),this.__base_string=e,this.__base_string_length=e.length}function a(t,e){this.__indent_cache=new i(t,e),this.raw=!1,this._end_with_newline=t.end_with_newline,this.indent_size=t.indent_size,this.wrap_line_length=t.wrap_line_length,this.indent_empty_lines=t.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new r(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}r.prototype.clone_empty=function(){var t=new r(this.__parent);return t.set_indent(this.__indent_count,this.__alignment_count),t},r.prototype.item=function(t){return t<0?this.__items[this.__items.length+t]:this.__items[t]},r.prototype.has_match=function(t){for(var e=this.__items.length-1;e>=0;e--)if(this.__items[e].match(t))return!0;return!1},r.prototype.set_indent=function(t,e){this.is_empty()&&(this.__indent_count=t||0,this.__alignment_count=e||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},r.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)},r.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},r.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var t=this.__parent.current_line;return t.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),t.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),t.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count," "===t.__items[0]&&(t.__items.splice(0,1),t.__character_count-=1),!0}return!1},r.prototype.is_empty=function(){return 0===this.__items.length},r.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},r.prototype.push=function(t){this.__items.push(t);var e=t.lastIndexOf("\n");-1!==e?this.__character_count=t.length-e:this.__character_count+=t.length},r.prototype.pop=function(){var t=null;return this.is_empty()||(t=this.__items.pop(),this.__character_count-=t.length),t},r.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},r.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},r.prototype.trim=function(){for(;" "===this.last();)this.__items.pop(),this.__character_count-=1},r.prototype.toString=function(){var t="";return this.is_empty()?this.__parent.indent_empty_lines&&(t=this.__parent.get_indent_string(this.__indent_count)):(t=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),t+=this.__items.join("")),t},i.prototype.get_indent_size=function(t,e){var n=this.__base_string_length;return e=e||0,t<0&&(n=0),n+=t*this.__indent_size,n+=e},i.prototype.get_indent_string=function(t,e){var n=this.__base_string;return e=e||0,t<0&&(t=0,n=""),e+=t*this.__indent_size,this.__ensure_cache(e),n+=this.__cache[e]},i.prototype.__ensure_cache=function(t){for(;t>=this.__cache.length;)this.__add_column()},i.prototype.__add_column=function(){var t=this.__cache.length,e=0,n="";this.__indent_size&&t>=this.__indent_size&&(t-=(e=Math.floor(t/this.__indent_size))*this.__indent_size,n=new Array(e+1).join(this.__indent_string)),t&&(n+=new Array(t+1).join(" ")),this.__cache.push(n)},a.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},a.prototype.get_line_number=function(){return this.__lines.length},a.prototype.get_indent_string=function(t,e){return this.__indent_cache.get_indent_string(t,e)},a.prototype.get_indent_size=function(t,e){return this.__indent_cache.get_indent_size(t,e)},a.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},a.prototype.add_new_line=function(t){return!(this.is_empty()||!t&&this.just_added_newline()||(this.raw||this.__add_outputline(),0))},a.prototype.get_code=function(t){this.trim(!0);var e=this.current_line.pop();e&&("\n"===e[e.length-1]&&(e=e.replace(/\n+$/g,"")),this.current_line.push(e)),this._end_with_newline&&this.__add_outputline();var n=this.__lines.join("\n");return"\n"!==t&&(n=n.replace(/[\n]/g,t)),n},a.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},a.prototype.set_indent=function(t,e){return t=t||0,e=e||0,this.next_line.set_indent(t,e),this.__lines.length>1?(this.current_line.set_indent(t,e),!0):(this.current_line.set_indent(),!1)},a.prototype.add_raw_token=function(t){for(var e=0;e1&&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},a.prototype.just_added_newline=function(){return this.current_line.is_empty()},a.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},a.prototype.ensure_empty_line_above=function(t,e){for(var n=this.__lines.length-2;n>=0;){var i=this.__lines[n];if(i.is_empty())break;if(0!==i.item(0).indexOf(t)&&i.item(-1)!==e){this.__lines.splice(n+1,0,new r(this)),this.previous_line=this.__lines[this.__lines.length-2];break}n--}},t.exports.Output=a},function(t,e,n){"use strict";t.exports.Token=function(t,e,n,r){this.type=t,this.text=e,this.comments_before=null,this.newlines=n||0,this.whitespace_before=r||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}},function(t,e,n){"use strict";var r="\\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",i="\\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",a="(?:\\\\u[0-9a-fA-F]{4}|[\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a"+r+"])";e.identifier=new RegExp(a+"(?:\\\\u[0-9a-fA-F]{4}|[\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a\\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\\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])*","g"),e.identifierStart=new RegExp(a),e.identifierMatch=new RegExp("(?:\\\\u[0-9a-fA-F]{4}|[\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a"+r+i+"])+"),e.newline=/[\n\r\u2028\u2029]/,e.lineBreak=new RegExp("\r\n|"+e.newline.source),e.allLineBreaks=new RegExp(e.lineBreak.source,"g")},function(t,e,n){"use strict";var r=n(6).Options,i=["before-newline","after-newline","preserve-newline"];function a(t){r.call(this,t,"js");var e=this.raw_options.brace_style||null;"expand-strict"===e?this.raw_options.brace_style="expand":"collapse-preserve-inline"===e?this.raw_options.brace_style="collapse,preserve-inline":void 0!==this.raw_options.braces_on_own_line&&(this.raw_options.brace_style=this.raw_options.braces_on_own_line?"expand":"collapse");var n=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var a=0;a>> === !== << && >= ** != == <= >> || |> < / - + > : & % ? ^ | *".split(" "),g=">>>= ... >>= <<= === >>> !== **= => ^= :: /= << <= == && -= >= >> != -- += ** || ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";g=(g="\\?\\.(?!\\d) "+(g=g.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"))).replace(/ /g,"|");var m,b=new RegExp(g),y="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),w=y.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as"]),x=new RegExp("^(?:"+w.join("|")+")$"),k=function(t,e){i.call(this,t,e),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var n=new u(this._input),r=new l(this._input).read_options(this._options);this.__patterns={template:r,identifier:r.starting_with(s.identifier).matching(s.identifierMatch),number:n.matching(p),punct:n.matching(b),comment:n.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:n.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:n.matching(//),include:n.starting_with(/#include/).until_after(s.lineBreak),shebang:n.starting_with(/#!/).until_after(s.lineBreak),xml:n.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[\s\S]+?}|!\[CDATA\[[\s\S]*?\]\])(\s+{[\s\S]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{[\s\S]+?}))*\s*(\/?)\s*>/),single_quote:r.until(/['\\\n\r\u2028\u2029]/),double_quote:r.until(/["\\\n\r\u2028\u2029]/),template_text:r.until(/[`\\$]/),template_expression:r.until(/[`}\\]/)}};(k.prototype=new i)._is_comment=function(t){return t.type===_.COMMENT||t.type===_.BLOCK_COMMENT||t.type===_.UNKNOWN},k.prototype._is_opening=function(t){return t.type===_.START_BLOCK||t.type===_.START_EXPR},k.prototype._is_closing=function(t,e){return(t.type===_.END_BLOCK||t.type===_.END_EXPR)&&e&&("]"===t.text&&"["===e.text||")"===t.text&&"("===e.text||"}"===t.text&&"{"===e.text)},k.prototype._reset=function(){m=!1},k.prototype._get_next_token=function(t,e){var n=null;this._readWhitespace();var r=this._input.peek();return null===r?this._create_token(_.EOF,""):n=(n=(n=(n=(n=(n=(n=(n=(n=n||this._read_non_javascript(r))||this._read_string(r))||this._read_word(t))||this._read_singles(r))||this._read_comment(r))||this._read_regexp(r,t))||this._read_xml(r,t))||this._read_punctuation())||this._create_token(_.UNKNOWN,this._input.next())},k.prototype._read_word=function(t){var e;return""!==(e=this.__patterns.identifier.read())?(e=e.replace(s.allLineBreaks,"\n"),t.type!==_.DOT&&(t.type!==_.RESERVED||"set"!==t.text&&"get"!==t.text)&&x.test(e)?"in"===e||"of"===e?this._create_token(_.OPERATOR,e):this._create_token(_.RESERVED,e):this._create_token(_.WORD,e)):""!==(e=this.__patterns.number.read())?this._create_token(_.WORD,e):void 0},k.prototype._read_singles=function(t){var e=null;return"("===t||"["===t?e=this._create_token(_.START_EXPR,t):")"===t||"]"===t?e=this._create_token(_.END_EXPR,t):"{"===t?e=this._create_token(_.START_BLOCK,t):"}"===t?e=this._create_token(_.END_BLOCK,t):";"===t?e=this._create_token(_.SEMICOLON,t):"."===t&&d.test(this._input.peek(1))?e=this._create_token(_.DOT,t):","===t&&(e=this._create_token(_.COMMA,t)),e&&this._input.next(),e},k.prototype._read_punctuation=function(){var t=this.__patterns.punct.read();if(""!==t)return"="===t?this._create_token(_.EQUALS,t):"?."===t?this._create_token(_.DOT,t):this._create_token(_.OPERATOR,t)},k.prototype._read_non_javascript=function(t){var e="";if("#"===t){if(this._is_first_token()&&(e=this.__patterns.shebang.read()))return this._create_token(_.UNKNOWN,e.trim()+"\n");if(e=this.__patterns.include.read())return this._create_token(_.UNKNOWN,e.trim()+"\n");t=this._input.next();var n="#";if(this._input.hasNext()&&this._input.testChar(f)){do{n+=t=this._input.next()}while(this._input.hasNext()&&"#"!==t&&"="!==t);return"#"===t||("["===this._input.peek()&&"]"===this._input.peek(1)?(n+="[]",this._input.next(),this._input.next()):"{"===this._input.peek()&&"}"===this._input.peek(1)&&(n+="{}",this._input.next(),this._input.next())),this._create_token(_.WORD,n)}this._input.back()}else if("<"===t&&this._is_first_token()){if(e=this.__patterns.html_comment_start.read()){for(;this._input.hasNext()&&!this._input.testChar(s.newline);)e+=this._input.next();return m=!0,this._create_token(_.COMMENT,e)}}else if(m&&"-"===t&&(e=this.__patterns.html_comment_end.read()))return m=!1,this._create_token(_.COMMENT,e);return null},k.prototype._read_comment=function(t){var e=null;if("/"===t){var n="";if("*"===this._input.peek(1)){n=this.__patterns.block_comment.read();var r=h.get_directives(n);r&&"start"===r.ignore&&(n+=h.readIgnored(this._input)),n=n.replace(s.allLineBreaks,"\n"),(e=this._create_token(_.BLOCK_COMMENT,n)).directives=r}else"/"===this._input.peek(1)&&(n=this.__patterns.comment.read(),e=this._create_token(_.COMMENT,n))}return e},k.prototype._read_string=function(t){if("`"===t||"'"===t||'"'===t){var e=this._input.next();return this.has_char_escapes=!1,e+="`"===t?this._read_string_recursive("`",!0,"${"):this._read_string_recursive(t),this.has_char_escapes&&this._options.unescape_strings&&(e=function(t){for(var e="",n=0,i=new r(t),a=null;i.hasNext();)if((a=i.match(/([\s]|[^\\]|\\\\)+/g))&&(e+=a[0]),"\\"===i.peek()){if(i.next(),"x"===i.peek())a=i.match(/x([0-9A-Fa-f]{2})/g);else{if("u"!==i.peek()){e+="\\",i.hasNext()&&(e+=i.next());continue}a=i.match(/u([0-9A-Fa-f]{4})/g)}if(!a)return t;if((n=parseInt(a[1],16))>126&&n<=255&&0===a[0].indexOf("x"))return t;if(n>=0&&n<32){e+="\\"+a[0];continue}e+=34===n||39===n||92===n?"\\"+String.fromCharCode(n):String.fromCharCode(n)}return e}(e)),this._input.peek()===t&&(e+=this._input.next()),e=e.replace(s.allLineBreaks,"\n"),this._create_token(_.STRING,e)}return null},k.prototype._allow_regexp_or_xml=function(t){return t.type===_.RESERVED&&c(t.text,["return","case","throw","else","do","typeof","yield"])||t.type===_.END_EXPR&&")"===t.text&&t.opened.previous.type===_.RESERVED&&c(t.opened.previous.text,["if","while","for"])||c(t.type,[_.COMMENT,_.START_EXPR,_.START_BLOCK,_.START,_.END_BLOCK,_.OPERATOR,_.EQUALS,_.EOF,_.SEMICOLON,_.COMMA])},k.prototype._read_regexp=function(t,e){if("/"===t&&this._allow_regexp_or_xml(e)){for(var n=this._input.next(),r=!1,i=!1;this._input.hasNext()&&(r||i||this._input.peek()!==t)&&!this._input.testChar(s.newline);)n+=this._input.peek(),r?r=!1:(r="\\"===this._input.peek(),"["===this._input.peek()?i=!0:"]"===this._input.peek()&&(i=!1)),this._input.next();return this._input.peek()===t&&(n+=this._input.next(),n+=this._input.read(s.identifier)),this._create_token(_.STRING,n)}return null},k.prototype._read_xml=function(t,e){if(this._options.e4x&&"<"===t&&this._allow_regexp_or_xml(e)){var n="",r=this.__patterns.xml.read_match();if(r){for(var i=r[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),a=0===i.indexOf("{"),o=0;r;){var u=!!r[1],l=r[2];if(!(r[r.length-1]||"![CDATA["===l.slice(0,8))&&(l===i||a&&l.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(u?--o:++o),n+=r[0],o<=0)break;r=this.__patterns.xml.read_match()}return r||(n+=this._input.match(/[\s\S]*/g)[0]),n=n.replace(s.allLineBreaks,"\n"),this._create_token(_.STRING,n)}}return null},k.prototype._read_string_recursive=function(t,e,n){var r,i;"'"===t?i=this.__patterns.single_quote:'"'===t?i=this.__patterns.double_quote:"`"===t?i=this.__patterns.template_text:"}"===t&&(i=this.__patterns.template_expression);for(var a=i.read(),o="";this._input.hasNext();){if((o=this._input.next())===t||!e&&s.newline.test(o)){this._input.back();break}"\\"===o&&this._input.hasNext()?("x"===(r=this._input.peek())||"u"===r?this.has_char_escapes=!0:"\r"===r&&"\n"===this._input.peek(1)&&this._input.next(),o+=this._input.next()):n&&("${"===n&&"$"===o&&"{"===this._input.peek()&&(o+=this._input.next()),n===o&&(o+="`"===t?this._read_string_recursive("}",e,"`"):this._read_string_recursive("`",e,"${"),this._input.hasNext()&&(o+=this._input.next()))),a+=o+=i.read()}return a},t.exports.Tokenizer=k,t.exports.TOKEN=_,t.exports.positionable_operators=v.slice(),t.exports.line_starters=y.slice()},function(t,e,n){"use strict";var r=RegExp.prototype.hasOwnProperty("sticky");function i(t){this.__input=t||"",this.__input_length=this.__input.length,this.__position=0}i.prototype.restart=function(){this.__position=0},i.prototype.back=function(){this.__position>0&&(this.__position-=1)},i.prototype.hasNext=function(){return this.__position=0&&t=0&&e=t.length&&this.__input.substring(e-t.length,e).toLowerCase()===t},t.exports.InputScanner=i},function(t,e,n){"use strict";var r=n(8).InputScanner,i=n(3).Token,a=n(10).TokenStream,o=n(11).WhitespacePattern,s={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},u=function(t,e){this._input=new r(t),this._options=e||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new o(this._input)};u.prototype.tokenize=function(){var t;this._input.restart(),this.__tokens=new a,this._reset();for(var e=new i(s.START,""),n=null,r=[],o=new a;e.type!==s.EOF;){for(t=this._get_next_token(e,n);this._is_comment(t);)o.add(t),t=this._get_next_token(e,n);o.isEmpty()||(t.comments_before=o,o=new a),t.parent=n,this._is_opening(t)?(r.push(n),n=t):n&&this._is_closing(t,n)&&(t.opened=n,n.closed=t,n=r.pop(),t.parent=n),t.previous=e,e.next=t,this.__tokens.add(t),e=t}return this.__tokens},u.prototype._is_first_token=function(){return this.__tokens.isEmpty()},u.prototype._reset=function(){},u.prototype._get_next_token=function(t,e){this._readWhitespace();var n=this._input.read(/.+/g);return n?this._create_token(s.RAW,n):this._create_token(s.EOF,"")},u.prototype._is_comment=function(t){return!1},u.prototype._is_opening=function(t){return!1},u.prototype._is_closing=function(t,e){return!1},u.prototype._create_token=function(t,e){return new i(t,e,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token)},u.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},t.exports.Tokenizer=u,t.exports.TOKEN=s},function(t,e,n){"use strict";function r(t){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=t}r.prototype.restart=function(){this.__position=0},r.prototype.isEmpty=function(){return 0===this.__tokens_length},r.prototype.hasNext=function(){return this.__position=0&&t/),erb:n.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:n.starting_with(/{%/).until_after(/%}/),django_value:n.starting_with(/{{/).until_after(/}}/),django_comment:n.starting_with(/{#/).until_after(/#}/)}}a.prototype=new r,a.prototype._create=function(){return new a(this._input,this)},a.prototype._update=function(){this.__set_templated_pattern()},a.prototype.disable=function(t){var e=this._create();return e._disabled[t]=!0,e._update(),e},a.prototype.read_options=function(t){var e=this._create();for(var n in i)e._disabled[n]=-1===t.templating.indexOf(n);return e._update(),e},a.prototype.exclude=function(t){var e=this._create();return e._excluded[t]=!0,e._update(),e},a.prototype.read=function(){var t="";t=this._match_pattern?this._input.read(this._starting_pattern):this._input.read(this._starting_pattern,this.__template_pattern);for(var e=this._read_template();e;)this._match_pattern?e+=this._input.read(this._match_pattern):e+=this._input.readUntil(this.__template_pattern),t+=e,e=this._read_template();return this._until_after&&(t+=this._input.readUntilAfter(this._until_pattern)),t},a.prototype.__set_templated_pattern=function(){var t=[];this._disabled.php||t.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||t.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||t.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(t.push(this.__patterns.django._starting_pattern.source),t.push(this.__patterns.django_value._starting_pattern.source),t.push(this.__patterns.django_comment._starting_pattern.source)),this._until_pattern&&t.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+t.join("|")+")")},a.prototype._read_template=function(){var t="",e=this._input.peek();if("<"===e){var n=this._input.peek(1);this._disabled.php||this._excluded.php||"?"!==n||(t=t||this.__patterns.php.read()),this._disabled.erb||this._excluded.erb||"%"!==n||(t=t||this.__patterns.erb.read())}else"{"===e&&(this._disabled.handlebars||this._excluded.handlebars||(t=(t=(t=t||this.__patterns.handlebars_comment.read())||this.__patterns.handlebars_unescaped.read())||this.__patterns.handlebars.read()),this._disabled.django||(this._excluded.django||this._excluded.handlebars||(t=t||this.__patterns.django_value.read()),this._excluded.django||(t=(t=t||this.__patterns.django_comment.read())||this.__patterns.django.read())));return t},t.exports.TemplatablePattern=a}]),void 0===(r=function(){return{js_beautify:i}}.apply(e,[]))||(t.exports=r)},function(t,e,n){var r,i;i=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=15)}([,,function(t,e,n){"use strict";function r(t){this.__parent=t,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=[]}function i(t,e){this.__cache=[""],this.__indent_size=t.indent_size,this.__indent_string=t.indent_char,t.indent_with_tabs||(this.__indent_string=new Array(t.indent_size+1).join(t.indent_char)),e=e||"",t.indent_level>0&&(e=new Array(t.indent_level+1).join(this.__indent_string)),this.__base_string=e,this.__base_string_length=e.length}function a(t,e){this.__indent_cache=new i(t,e),this.raw=!1,this._end_with_newline=t.end_with_newline,this.indent_size=t.indent_size,this.wrap_line_length=t.wrap_line_length,this.indent_empty_lines=t.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new r(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}r.prototype.clone_empty=function(){var t=new r(this.__parent);return t.set_indent(this.__indent_count,this.__alignment_count),t},r.prototype.item=function(t){return t<0?this.__items[this.__items.length+t]:this.__items[t]},r.prototype.has_match=function(t){for(var e=this.__items.length-1;e>=0;e--)if(this.__items[e].match(t))return!0;return!1},r.prototype.set_indent=function(t,e){this.is_empty()&&(this.__indent_count=t||0,this.__alignment_count=e||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},r.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)},r.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},r.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var t=this.__parent.current_line;return t.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),t.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),t.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count," "===t.__items[0]&&(t.__items.splice(0,1),t.__character_count-=1),!0}return!1},r.prototype.is_empty=function(){return 0===this.__items.length},r.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},r.prototype.push=function(t){this.__items.push(t);var e=t.lastIndexOf("\n");-1!==e?this.__character_count=t.length-e:this.__character_count+=t.length},r.prototype.pop=function(){var t=null;return this.is_empty()||(t=this.__items.pop(),this.__character_count-=t.length),t},r.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},r.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},r.prototype.trim=function(){for(;" "===this.last();)this.__items.pop(),this.__character_count-=1},r.prototype.toString=function(){var t="";return this.is_empty()?this.__parent.indent_empty_lines&&(t=this.__parent.get_indent_string(this.__indent_count)):(t=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),t+=this.__items.join("")),t},i.prototype.get_indent_size=function(t,e){var n=this.__base_string_length;return e=e||0,t<0&&(n=0),n+=t*this.__indent_size,n+=e},i.prototype.get_indent_string=function(t,e){var n=this.__base_string;return e=e||0,t<0&&(t=0,n=""),e+=t*this.__indent_size,this.__ensure_cache(e),n+=this.__cache[e]},i.prototype.__ensure_cache=function(t){for(;t>=this.__cache.length;)this.__add_column()},i.prototype.__add_column=function(){var t=this.__cache.length,e=0,n="";this.__indent_size&&t>=this.__indent_size&&(t-=(e=Math.floor(t/this.__indent_size))*this.__indent_size,n=new Array(e+1).join(this.__indent_string)),t&&(n+=new Array(t+1).join(" ")),this.__cache.push(n)},a.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},a.prototype.get_line_number=function(){return this.__lines.length},a.prototype.get_indent_string=function(t,e){return this.__indent_cache.get_indent_string(t,e)},a.prototype.get_indent_size=function(t,e){return this.__indent_cache.get_indent_size(t,e)},a.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},a.prototype.add_new_line=function(t){return!(this.is_empty()||!t&&this.just_added_newline()||(this.raw||this.__add_outputline(),0))},a.prototype.get_code=function(t){this.trim(!0);var e=this.current_line.pop();e&&("\n"===e[e.length-1]&&(e=e.replace(/\n+$/g,"")),this.current_line.push(e)),this._end_with_newline&&this.__add_outputline();var n=this.__lines.join("\n");return"\n"!==t&&(n=n.replace(/[\n]/g,t)),n},a.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},a.prototype.set_indent=function(t,e){return t=t||0,e=e||0,this.next_line.set_indent(t,e),this.__lines.length>1?(this.current_line.set_indent(t,e),!0):(this.current_line.set_indent(),!1)},a.prototype.add_raw_token=function(t){for(var e=0;e1&&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},a.prototype.just_added_newline=function(){return this.current_line.is_empty()},a.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},a.prototype.ensure_empty_line_above=function(t,e){for(var n=this.__lines.length-2;n>=0;){var i=this.__lines[n];if(i.is_empty())break;if(0!==i.item(0).indexOf(t)&&i.item(-1)!==e){this.__lines.splice(n+1,0,new r(this)),this.previous_line=this.__lines[this.__lines.length-2];break}n--}},t.exports.Output=a},,,,function(t,e,n){"use strict";function r(t,e){this.raw_options=i(t,e),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","\t"===this.indent_char),this.indent_with_tabs&&(this.indent_char="\t",1===this.indent_size&&(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","django","erb","handlebars","php"],["auto"])}function i(t,e){var n,r={};for(n in t=a(t))n!==e&&(r[n]=t[n]);if(e&&t[e])for(n in t[e])r[n]=t[e][n];return r}function a(t){var e,n={};for(e in t)n[e.replace(/-/g,"_")]=t[e];return n}r.prototype._get_array=function(t,e){var n=this.raw_options[t],r=e||[];return"object"==typeof n?null!==n&&"function"==typeof n.concat&&(r=n.concat()):"string"==typeof n&&(r=n.split(/[^a-zA-Z0-9_\/\-]+/)),r},r.prototype._get_boolean=function(t,e){var n=this.raw_options[t];return void 0===n?!!e:!!n},r.prototype._get_characters=function(t,e){var n=this.raw_options[t],r=e||"";return"string"==typeof n&&(r=n.replace(/\\r/,"\r").replace(/\\n/,"\n").replace(/\\t/,"\t")),r},r.prototype._get_number=function(t,e){var n=this.raw_options[t];e=parseInt(e,10),isNaN(e)&&(e=0);var r=parseInt(n,10);return isNaN(r)&&(r=e),r},r.prototype._get_selection=function(t,e,n){var r=this._get_selection_list(t,e,n);if(1!==r.length)throw new Error("Invalid Option Value: The option '"+t+"' can only be one of the following values:\n"+e+"\nYou passed in: '"+this.raw_options[t]+"'");return r[0]},r.prototype._get_selection_list=function(t,e,n){if(!e||0===e.length)throw new Error("Selection list cannot be empty.");if(n=n||[e[0]],!this._is_valid_selection(n,e))throw new Error("Invalid Default Value!");var r=this._get_array(t,n);if(!this._is_valid_selection(r,e))throw new Error("Invalid Option Value: The option '"+t+"' can contain only the following values:\n"+e+"\nYou passed in: '"+this.raw_options[t]+"'");return r},r.prototype._is_valid_selection=function(t,e){return t.length&&e.length&&!t.some((function(t){return-1===e.indexOf(t)}))},t.exports.Options=r,t.exports.normalizeOpts=a,t.exports.mergeOpts=i},,function(t,e,n){"use strict";var r=RegExp.prototype.hasOwnProperty("sticky");function i(t){this.__input=t||"",this.__input_length=this.__input.length,this.__position=0}i.prototype.restart=function(){this.__position=0},i.prototype.back=function(){this.__position>0&&(this.__position-=1)},i.prototype.hasNext=function(){return this.__position=0&&t=0&&e=t.length&&this.__input.substring(e-t.length,e).toLowerCase()===t},t.exports.InputScanner=i},,,,,function(t,e,n){"use strict";function r(t,e){t="string"==typeof t?t:t.source,e="string"==typeof e?e:e.source,this.__directives_block_pattern=new RegExp(t+/ beautify( \w+[:]\w+)+ /.source+e,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(t+/\sbeautify\signore:end\s/.source+e,"g")}r.prototype.get_directives=function(t){if(!t.match(this.__directives_block_pattern))return null;var e={};this.__directive_pattern.lastIndex=0;for(var n=this.__directive_pattern.exec(t);n;)e[n[1]]=n[2],n=this.__directive_pattern.exec(t);return e},r.prototype.readIgnored=function(t){return t.readUntilAfter(this.__directives_end_ignore_pattern)},t.exports.Directives=r},,function(t,e,n){"use strict";var r=n(16).Beautifier,i=n(17).Options;t.exports=function(t,e){return new r(t,e).beautify()},t.exports.defaultOptions=function(){return new i}},function(t,e,n){"use strict";var r=n(17).Options,i=n(2).Output,a=n(8).InputScanner,o=new(0,n(13).Directives)(/\/\*/,/\*\//),s=/\r\n|[\r\n]/,u=/\r\n|[\r\n]/g,l=/\s/,c=/(?:\s|\n)+/g,_=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,h=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function p(t,e){this._source_text=t||"",this._options=new r(e),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}}p.prototype.eatString=function(t){var e="";for(this._ch=this._input.next();this._ch;){if(e+=this._ch,"\\"===this._ch)e+=this._input.next();else if(-1!==t.indexOf(this._ch)||"\n"===this._ch)break;this._ch=this._input.next()}return e},p.prototype.eatWhitespace=function(t){for(var e=l.test(this._input.peek()),n=!0;l.test(this._input.peek());)this._ch=this._input.next(),t&&"\n"===this._ch&&(this._options.preserve_newlines||n)&&(n=!1,this._output.add_new_line(!0));return e},p.prototype.foundNestedPseudoClass=function(){for(var t=0,e=1,n=this._input.peek(e);n;){if("{"===n)return!0;if("("===n)t+=1;else if(")"===n){if(0===t)return!1;t-=1}else if(";"===n||"}"===n)return!1;e++,n=this._input.peek(e)}return!1},p.prototype.print_string=function(t){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(t)},p.prototype.preserveSingleSpace=function(t){t&&(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 t=this._source_text,e=this._options.eol;"auto"===e&&(e="\n",t&&s.test(t||"")&&(e=t.match(s)[0]));var n=(t=t.replace(u,"\n")).match(/^[\t ]*/)[0];this._output=new i(this._options,n),this._input=new a(t),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var r,p,f=0,d=!1,v=!1,g=!1,m=!1,b=!1,y=this._ch;r=""!==this._input.read(c),p=y,this._ch=this._input.next(),"\\"===this._ch&&this._input.hasNext()&&(this._ch+=this._input.next()),y=this._ch,this._ch;)if("/"===this._ch&&"*"===this._input.peek()){this._output.add_new_line(),this._input.back();var w=this._input.read(_),x=o.get_directives(w);x&&"start"===x.ignore&&(w+=o.readIgnored(this._input)),this.print_string(w),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(h)),this.eatWhitespace(!0);else if("@"===this._ch)if(this.preserveSingleSpace(r),"{"===this._input.peek())this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var k=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);k.match(/[ :]$/)&&(k=this.eatString(": ").replace(/\s$/,""),this.print_string(k),this._output.space_before_token=!0),"extend"===(k=k.replace(/\s$/,""))?m=!0:"import"===k&&(b=!0),k in this.NESTED_AT_RULE?(this._nestedLevel+=1,k in this.CONDITIONAL_GROUP_RULE&&(g=!0)):d||0!==f||-1===k.indexOf(":")||(v=!0,this.indent())}else"#"===this._ch&&"{"===this._input.peek()?(this.preserveSingleSpace(r),this.print_string(this._ch+this.eatString("}"))):"{"===this._ch?(v&&(v=!1,this.outdent()),this.indent(),this._output.space_before_token=!0,this.print_string(this._ch),g?(g=!1,d=this._indentLevel>this._nestedLevel):d=this._indentLevel>=this._nestedLevel,this._options.newline_between_rules&&d&&this._output.previous_line&&"{"!==this._output.previous_line.item(-1)&&this._output.ensure_empty_line_above("/",","),this.eatWhitespace(!0),this._output.add_new_line()):"}"===this._ch?(this.outdent(),this._output.add_new_line(),"{"===p&&this._output.trim(!0),b=!1,m=!1,v&&(this.outdent(),v=!1),this.print_string(this._ch),d=!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._ch?!d&&!g||this._input.lookBack("&")||this.foundNestedPseudoClass()||this._input.lookBack("(")||m||0!==f?(this._input.lookBack(" ")&&(this._output.space_before_token=!0),":"===this._input.peek()?(this._ch=this._input.next(),this.print_string("::")):this.print_string(":")):(this.print_string(":"),v||(v=!0,this._output.space_before_token=!0,this.eatWhitespace(!0),this.indent())):'"'===this._ch||"'"===this._ch?(this.preserveSingleSpace(r),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)):";"===this._ch?0===f?(v&&(this.outdent(),v=!1),m=!1,b=!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):"("===this._ch?this._input.lookBack("url")?(this.print_string(this._ch),this.eatWhitespace(),f++,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(")")),f&&(f--,this.outdent()))):(this.preserveSingleSpace(r),this.print_string(this._ch),this.eatWhitespace(),f++,this.indent()):")"===this._ch?(f&&(f--,this.outdent()),this.print_string(this._ch)):","===this._ch?(this.print_string(this._ch),this.eatWhitespace(!0),!this._options.selector_separator_newline||v||0!==f||b?this._output.space_before_token=!0:this._output.add_new_line()):">"!==this._ch&&"+"!==this._ch&&"~"!==this._ch||v||0!==f?"]"===this._ch?this.print_string(this._ch):"["===this._ch?(this.preserveSingleSpace(r),this.print_string(this._ch)):"="===this._ch?(this.eatWhitespace(),this.print_string("="),l.test(this._ch)&&(this._ch="")):"!"!==this._ch||this._input.lookBack("\\")?(this.preserveSingleSpace(r),this.print_string(this._ch)):(this.print_string(" "),this.print_string(this._ch)):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&&l.test(this._ch)&&(this._ch=""));return this._output.get_code(e)},t.exports.Beautifier=p},function(t,e,n){"use strict";var r=n(6).Options;function i(t){r.call(this,t,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var e=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||e}i.prototype=new r,t.exports.Options=i}]),void 0===(r=function(){return{css_beautify:i}}.apply(e,[]))||(t.exports=r)},function(t,e){function n(e,r){return t.exports=n=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},n(e,r)}t.exports=n},function(t,e){var n,r,i=t.exports={};function a(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(t){n=a}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(t){r=o}}();var u,l=[],c=!1,_=-1;function h(){c&&u&&(c=!1,u.length?l=u.concat(l):_=-1,l.length&&p())}function p(){if(!c){var t=s(h);c=!0;for(var e=l.length;e;){for(u=l,l=[];++_1)for(var n=1;n= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};function c(t,e,n){this.helpers=t||{},this.partials=e||{},this.decorators=n||{},o.registerDefaultHelpers(this),s.registerDefaultDecorators(this)}c.prototype={constructor:c,logger:u.default,log:u.default.log,registerHelper:function(t,e){if("[object Object]"===i.toString.call(t)){if(e)throw new a.default("Arg not supported with multiple helpers");i.extend(this.helpers,t)}else this.helpers[t]=e},unregisterHelper:function(t){delete this.helpers[t]},registerPartial:function(t,e){if("[object Object]"===i.toString.call(t))i.extend(this.partials,t);else{if(void 0===e)throw new a.default('Attempting to register a partial called "'+t+'" as undefined');this.partials[t]=e}},unregisterPartial:function(t){delete this.partials[t]},registerDecorator:function(t,e){if("[object Object]"===i.toString.call(t)){if(e)throw new a.default("Arg not supported with multiple decorators");i.extend(this.decorators,t)}else this.decorators[t]=e},unregisterDecorator:function(t){delete this.decorators[t]},resetLoggedPropertyAccesses:function(){l.resetLoggedProperties()}};var _=u.default.log;e.log=_,e.createFrame=i.createFrame,e.logger=u.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0,e.registerDefaultHelpers=function(t){i.default(t),a.default(t),o.default(t),s.default(t),u.default(t),l.default(t),c.default(t)},e.moveHelperToHooks=function(t,e,n){t.helpers[e]&&(t.hooks[e]=t.helpers[e],n||delete t.helpers[e])};var i=r(n(42)),a=r(n(43)),o=r(n(44)),s=r(n(45)),u=r(n(46)),l=r(n(47)),c=r(n(48))},function(t,e,n){"use strict";e.__esModule=!0;var r=n(10),i={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(t){if("string"==typeof t){var e=r.indexOf(i.methodMap,t.toLowerCase());t=e>=0?e:parseInt(t,10)}return t},log:function(t){if(t=i.lookupLevel(t),"undefined"!=typeof console&&i.lookupLevel(i.level)<=t){var e=i.methodMap[t];console[e]||(e="log");for(var n=arguments.length,r=Array(n>1?n-1:0),a=1;a=0&&e<=a&&!i(t)},t.exports=e},function(t,e){e=function(t){var e=typeof t;return!!t&&("function"===e||"object"===e)},t.exports=e},function(t,e,n){var r=n(10),i=n(6),a=n(12),o=n(17),s=n(32),u=n(35),l=n(36);e=function(t,e,n){return null==t?u:r(t)?o(t,e,n):i(t)&&!a(t)?s(t):l(t)},t.exports=e},function(t,e,n){var r=n(5),i=n(19),a=n(12),o=n(1);e=function(t){return t?a(t)?t:r(t)&&!o(t)?i(t):[t]:[]},t.exports=e},function(t,e){var n=Object.prototype.toString;e=function(t){return n.call(t)},t.exports=e},function(t,e,n){var r=n(9);e=function(t){var e=r(t);return"[object Function]"===e||"[object GeneratorFunction]"===e||"[object AsyncFunction]"===e},t.exports=e},function(t,e){var n=Object.prototype.hasOwnProperty;e=function(t,e){return n.call(t,e)},t.exports=e},function(t,e,n){var r=n(9);e=Array.isArray?Array.isArray:function(t){return"[object Array]"===r(t)},t.exports=e},function(t,e,n){var r=n(14),i=n(1),a=n(0),o=new(e=r({className:"Select",initialize:function(t){return this.length=0,t?i(t)?o.find(t):void(t.nodeType&&(this[0]=t,this.length=1)):this},find:function(t){var n=new e;return this.each((function(){!function(t,e){for(var n=e.length,r=t.length,i=0;i-1:(a(t)||(t=o(t)),r(t,e)>=0)},t.exports=e},function(t,e,n){var r=n(8),i=n(6),a=n(1),o=n(0),s=n(3),u=n(2);(e=function(t,e,n){if(t=u(t),s(n)&&a(e))return function(t,e){return t.getAttribute(e)}(t[0],e);var r=e;i(r)||((r={})[e]=n),function(t,e){o(t,(function(t){o(e,(function(e,n){t.setAttribute(n,e)}))}))}(t,r)}).remove=function(t,e){t=u(t),e=r(e),o(t,(function(t){o(e,(function(e){t.removeAttribute(e)}))}))},t.exports=e},function(t,e,n){"use strict";var r=this&&this.__makeTemplateObject||function(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),n(25);var a,o,s=i(n(26)),u=i(n(59)),l=i(n(64)),c=i(n(65)),_=function(){function t(t,e){var n=void 0===e?{}:e,r=n.position,i=void 0===r?{x:"right",y:"bottom"}:r,a=n.duration,o=void 0===a?2e3:a;this.notifications=[],this.$container=s.default(t),this.position=i,this.duration=o,this.appendTpl()}return t.prototype.notify=function(t,e){var n=this,r=(void 0===e?{}:e).duration,i=void 0===r?this.duration:r,a=new h(this,t);this.notifications.push(a),this.add(a),i&&setTimeout((function(){return n.remove(a.id)}),i)},t.prototype.dismissAll=function(){for(var t=this.notifications,e=t[0];e;)this.remove(e.id),e=t[0]},t.prototype.add=function(t){this.$notification.append(t.html())},t.prototype.remove=function(t){var e=this.notifications,n=c.default(e,(function(e){return e.id===t}));if(n){this.$notification.find("#"+t).remove();var r=e.indexOf(n);e.splice(r,1)}},t.prototype.appendTpl=function(){var t=this.$container,e=this.position,n=e.x,i=e.y,o="flex-end",s="flex-end";switch(n){case"center":s="center";break;case"left":s="flex-start"}"top"===i&&(o="flex-start"),t.append(u.default(a||(a=r(['\n
    \n '],['\n
    \n '])),o,s)),this.$notification=t.find(".luna-notification")},t}(),h=function(){function t(t,e){this.container=t,this.content=e,this.id=l.default("luna-notification-")}return t.prototype.html=function(){var t=this.container.position.y;return u.default(o||(o=r(['\n
    \n
    ',"
    \n
    \n "],['\n
    \n
    ',"
    \n
    \n "])),this.id,"bottom"===t?"lower":"upper",this.content)},t}();t.exports=_},function(t,e,n){},function(t,e,n){var r=n(13),i=n(41),a=n(42),o=n(43),s=n(23),u=n(50),l=n(51),c=n(52),_=n(53),h=n(54),p=n(56),f=n(58),d=n(3),v=n(1);e=function(t){return new r(t)},r.methods({offset:function(){return i(this)},hide:function(){return this.css("display","none")},show:function(){return a(this),this},first:function(){return e(this[0])},last:function(){return e(l(this))},get:function(t){return this[t]},eq:function(t){return e(this[t])},on:function(t,e,n){return h.on(this,t,e,n),this},off:function(t,e,n){return h.off(this,t,e,n),this},html:function(t){var e=u.html(this,t);return d(t)?e:this},text:function(t){var e=u.text(this,t);return d(t)?e:this},val:function(t){var e=u.val(this,t);return d(t)?e:this},css:function(t,e){var n=o(this,t,e);return g(t,e)?n:this},attr:function(t,e){var n=s(this,t,e);return g(t,e)?n:this},data:function(t,e){var n=_(this,t,e);return g(t,e)?n:this},rmAttr:function(t){return s.remove(this,t),this},remove:function(){return c(this),this},addClass:function(t){return p.add(this,t),this},rmClass:function(t){return p.remove(this,t),this},toggleClass:function(t){return p.toggle(this,t),this},hasClass:function(t){return p.has(this,t)},parent:function(){return e(this[0].parentNode)},append:function(t){return f.append(this,t),this},prepend:function(t){return f.prepend(this,t),this},before:function(t){return f.before(this,t),this},after:function(t){return f.after(this,t),this}});var g=function(t,e){return d(e)&&v(t)};t.exports=e},function(t,e,n){e=n(15)(n(28)),t.exports=e},function(t,e,n){var r=n(4),i=n(29),a=n(30),o=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols;e=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.prototype,u=void 0===n||n,l=e.unenumerable,c=void 0!==l&&l,_=e.symbol,h=void 0!==_&&_,p=[];if((c||h)&&o){var f=r;c&&o&&(f=o);do{p=p.concat(f(t)),h&&s&&(p=p.concat(s(t)))}while(u&&(t=i(t))&&t!==Object.prototype);p=a(p)}else if(u)for(var d in t)p.push(d);else p=r(t);return p},t.exports=e},function(t,e,n){var r=n(6),i=n(10),a=Object.getPrototypeOf,o={}.constructor;e=function(t){if(r(t)){if(a)return a(t);var e=t.__proto__;return e||null===e?e:i(t.constructor)?t.constructor.prototype:t instanceof o?o.prototype:void 0}},t.exports=e},function(t,e,n){var r=n(31);function i(t,e){return t===e}e=function(t,e){return e=e||i,r(t,(function(t,n,r){for(var i=r.length;++n1?n-1:0),c=1;c0?a.apply(null,f):0;return s(o(p,(function(t){return" "===t[0]?t.slice(b):t})).join("\n"))};var u=/^(\s+)\S+/;t.exports=e},function(t,e){e=function(){for(var t=arguments,e=t[0],n=1,r=t.length;n=o?"":t.substr(a,o)},t.exports=e},function(t,e){var n=/\s+$/;e=function(t,e){if(null==e)return t.replace(n,"");for(var r,i,a=t.length-1,o=e.length,s=!0;s&&a>=0;)for(s=!1,r=-1,i=t.charAt(a);++r=0?t.substring(0,a+1):""},t.exports=e},function(t,e){var n=0;e=function(t){var e=++n+"";return t?t+e:e},t.exports=e},function(t,e,n){var r=n(66),i=n(67),a=n(5),o=n(3);e=function(t,e,n){var s=(a(t)?i:r)(t,e,n);if(!o(s)&&-1!==s)return t[s]},t.exports=e},function(t,e,n){var r=n(7),i=n(4);e=function(t,e,n){e=r(e,n);for(var a,o=i(t),s=0,u=o.length;s0?0:a-1;o>=0&&o