You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Fipamo/public/assets/scripts/dash.js.map

1 line
490 KiB
Plaintext

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

{"mappings":";;;;;;;;;;;;;AEAA,uBAAA;AACO,MAAM+D,4CAAoB;AAC1B,MAAMC,4CAAmB;AACzB,MAAMC,4CAAmB;AACzB,MAAMC,4CAAsB;AAE5B,MAAMC,4CAAoB;AAC1B,MAAMC,4CAAoB;AAE1B,MAAMC,4CAAa;AACnB,MAAMC,4CAAmB;AACzB,MAAMC,4CAAsB;AAC5B,MAAMC,4CAAe;AACrB,MAAMC,4CAAgB;AACtB,MAAMC,4CAAkB;AACxB,MAAMC,4CAAoB;AAC1B,MAAMC,4CAAoB;AAC1B,MAAMC,2CAAe;AACrB,MAAMC,4CAAoB;AAC1B,MAAMC,4CAAgB;AACtB,MAAMC,4CAAY;AAElB,MAAMC,4CAAc;AACpB,MAAMC,4CAAsB;AAC5B,MAAMC,4CAAoB;AAC1B,MAAMC,4CAAmB;AACzB,MAAMC,4CAAiB;AACvB,MAAMC,4CAAmB;AACzB,MAAMC,4CAAiB;AACvB,MAAMC,4CAAoB;AAC1B,MAAMC,4CAAqB;AAC3B,MAAMC,4CAAgB;AACtB,MAAMC,4CAAoB;AAC1B,MAAMC,4CAAuB;AAE7B,MAAMC,4CAAkB;AACxB,MAAMC,4CAAiB;AAE9B;;CAEA,GAEA,MAAM3F;IACL;;;;GAID,GACCQ,YAAYoF,UAAU,IAAI,EAAEC,cAAc,IAAI,CAAE;QAC/C,IAAI,CAACC,eAAe,GAAG,GAAG,WAA1B;QACA,IAAI,CAACF,OAAO,GAAG,IAAI;QACnB,IAAI,CAACC,WAAW,GAAGA;QACnB,IAAI,CAACE,MAAM,GAAG,KAAK;QACnB,IAAIH,SAAS,IAAI,CAACA,OAAO,GAAGA;Q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ACC,CAAAA,MAAO;gBACbjB,KAAKd,UAAU,GAAG,KAAK;gBACvBF,6BAAO8C,KAAK,CAACb,KAAK,KAAK;YACxB;QACF,CAAA;IACD;IACAtB,cAAcD,CAAC,EAAE;QAChBA,EAAEwB,eAAe;QACjBxB,EAAEO,cAAc;QAChB,IAAIgC,OAAO1D,SAASc,aAAa,CAAC;QAClC,IAAImC,UAAUjD,SAASc,aAAa,CAAC;QACrC,IAAIK,EAAEgB,MAAM,CAACe,EAAE,KAAK,uBAAuB;YAC1CQ,KAAKC,KAAK,CAACC,OAAO,GAAG;YACrBF,KAAKC,KAAK,CAACE,UAAU,GAAG;YAExBZ,QAAQU,KAAK,CAACC,OAAO,GAAG;YACxBX,QAAQU,KAAK,CAACE,UAAU,GAAG;QAC5B,OAAO;YACNH,KAAKC,KAAK,CAACC,OAAO,GAAG;YACrBF,KAAKC,KAAK,CAACE,UAAU,GAAG;YAExBZ,QAAQU,KAAK,CAACC,OAAO,GAAG;YACxBX,QAAQU,KAAK,CAACE,UAAU,GAAG;QAC5B,CAAA;IACD;AACD;;ADlNA;AAEA7D,SAASC,gBAAgB,CACxB,oBACA,WAAY;IACX,IAAIF,CAAAA,GAAAA,wCAAAA;AACL,GACA,KAAK","sources":["src/com/Start.js","src/com/Base.js","src/libraries/FipamoAdminAPI.js","src/com/controllers/MaintenanceManager.js","src/com/utils/DataUtils.js","src/com/events/DataEvent.js","src/com/controllers/DashManager.js","src/com/controllers/PostIndex.js","src/com/controllers/PageEditor.js","src/com/actions/PageActions.js","src/com/utils/StringUtils.js","src/com/events/EditorEvent.js","src/com/ui/TextEditor.js","src/com/events/EventEmitter.js","node_modules/prismjs/components/prism-core.js","node_modules/prismjs/components/prism-markup.js","node_modules/prismjs/components/prism-markdown.js","src/com/ui/Notifications.js","node_modules/animejs/lib/anime.es.js","src/com/ui/FileManager.js","node_modules/sortablejs/modular/sortable.esm.js","src/com/controllers/SettingsIndex.js","src/com/actions/SettingsActions.js","src/com/actions/Mailer.js","src/com/controllers/NavIndex.js","src/com/actions/NavActions.js","src/com/ui/Menu.js"],"sourcesContent":["import Base from './Base';\n\ndocument.addEventListener(\n\t'DOMContentLoaded',\n\tfunction () {\n\t\tnew Base();\n\t},\n\tfalse\n);\n","import FipamoAdminAPI from '../libraries/FipamoAdminAPI';\nimport Maintenance from './controllers/MaintenanceManager';\nimport DataUitls from './utils/DataUtils';\nimport * as DataEvent from './events/DataEvent';\nimport DashManager from './controllers/DashManager';\nimport Notfications from './ui/Notifications';\nconst data = new DataUitls();\nconst notify = new Notfications();\n\nexport default class Base {\n\t//--------------------------\n\t// constructor\n\t//--------------------------\n\tconstructor() {\n\t\tthis.processing = false;\n\t\tthis.start();\n\t}\n\n\t//--------------------------\n\t// methods\n\t//--------------------------\n\n\t//TODO: Move init functions and set up to their own class\n\tstart() {\n\t\tif (\n\t\t\tdocument.getElementById('login') ||\n\t\t\tdocument.querySelector('[role=\"site-restore\"]')\n\t\t) {\n\t\t\tvar options = document.getElementsByClassName('init-option');\n\t\t\tfor (let index = 0; index < options.length; index++) {\n\t\t\t\toptions[index].addEventListener('click', e => this.handleOptions(e));\n\t\t\t}\n\t\t\tif (document.getElementById('login')) {\n\t\t\t\tdocument\n\t\t\t\t\t.getElementById('login-btn')\n\t\t\t\t\t.addEventListener('click', e => this.handleLogin(e));\n\t\t\t} else {\n\t\t\t\tdocument\n\t\t\t\t\t.getElementById('init-blog')\n\t\t\t\t\t.addEventListener('click', e => this.handleSetup(e));\n\t\t\t\tdocument\n\t\t\t\t\t.getElementById('blog-restore')\n\t\t\t\t\t.addEventListener('click', e => this.handleRestore(e));\n\t\t\t}\n\t\t} else if (document.getElementById('dash-reset')) {\n\t\t\tdocument\n\t\t\t\t.getElementById('get-secret-btn')\n\t\t\t\t.addEventListener('click', e => this.handleReset(e));\n\n\t\t\tdocument\n\t\t\t\t.getElementById('reset-btn')\n\t\t\t\t.addEventListener('click', e => this.handleReset(e));\n\t\t} else {\n\t\t\tnew DashManager();\n\t\t}\n\t}\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n\thandleLogin(e) {\n\t\tif (this.processing) return;\n\t\tlet self = this;\n\t\te.preventDefault();\n\t\tlet authForm = data.formDataToJSON(document.getElementById('login'));\n\t\t//notify.alert('Looking, hold up', null);\n\t\tlet api = new FipamoAdminAPI();\n\t\tthis.processing = true;\n\t\tapi.login(authForm)\n\t\t\t.then(response => {\n\t\t\t\tself.processing = false;\n\t\t\t\tif (response.type === DataEvent.REQUEST_LAME) {\n\t\t\t\t\te.target.innerHTML = response.message;\n\t\t\t\t} else {\n\t\t\t\t\te.target.innerHTML = response.message;\n\t\t\t\t\tsetTimeout(() => {\n\t\t\t\t\t\twindow.location = '/dashboard';\n\t\t\t\t\t}, 500);\n\t\t\t\t}\n\t\t\t})\n\t\t\t.catch(err => {\n\t\t\t\tself.processing = false;\n\t\t\t});\n\t}\n\n\thandleSetup(e) {\n\t\tif (this.processing) return;\n\t\tlet self = this;\n\t\te.stopPropagation();\n\t\te.preventDefault();\n\t\tlet setUpForm = data.formDataToJSON(document.getElementById('init-form'));\n\t\tlet mm = new Maintenance();\n\t\tthis.processing = true;\n\t\tmm.create(setUpForm)\n\t\t\t.then(response => {\n\t\t\t\tif (response.type === DataEvent.API_INIT_LAME) {\n\t\t\t\t\tself.processing = false;\n\t\t\t\t\te.target.innerHTML = response.message;\n\t\t\t\t} else {\n\t\t\t\t\tself.processing = false;\n\t\t\t\t\te.target.innerHTML = response.message;\n\t\t\t\t\tsetTimeout(() => {\n\t\t\t\t\t\twindow.location = '/dashboard';\n\t\t\t\t\t}, 700);\n\t\t\t\t}\n\t\t\t})\n\t\t\t.catch(err => {\n\t\t\t\tself.processing = false;\n\t\t\t\t//notify.alert(err, false);\n\t\t\t});\n\t}\n\n\thandleRestore(e) {\n\t\tif (this.processing) return;\n\t\tlet self = this;\n\t\te.stopPropagation();\n\t\te.preventDefault();\n\t\tlet mm = new Maintenance();\n\t\tvar form = document.getElementById('init-restore');\n\t\tthis.processing = true;\n\t\tmm.restore(form)\n\t\t\t.then(response => {\n\t\t\t\tif (response.type === DataEvent.REQUEST_LAME) {\n\t\t\t\t\tself.processing = false;\n\t\t\t\t\te.target.innerHTML = response.message;\n\t\t\t\t} else {\n\t\t\t\t\tself.processing = false;\n\t\t\t\t\te.target.innerHTML = response.message;\n\t\t\t\t\tsetTimeout(() => {\n\t\t\t\t\t\twindow.location = '/dashboard';\n\t\t\t\t\t}, 1500);\n\t\t\t\t}\n\t\t\t})\n\t\t\t.catch(err => {\n\t\t\t\tself.processing = false;\n\t\t\t\te.target.innerHTML = err;\n\t\t\t});\n\t}\n\n\thandleReset(e) {\n\t\te.stopPropagation();\n\t\te.preventDefault();\n\t\tlet self = this;\n\t\tlet mm = new Maintenance();\n\t\tif (e.target.id == 'get-secret-btn') {\n\t\t\tlet data = {\n\t\t\t\temail: document.getElementById('email').value,\n\t\t\t\ttask: 'retrieveSecret'\n\t\t\t};\n\t\t\tthis.processing = true;\n\t\t\tmm.secret(data)\n\t\t\t\t.then(response => {\n\t\t\t\t\tself.processing = false;\n\t\t\t\t\tif (response.secret) {\n\t\t\t\t\t\tdocument.getElementById('secret').value = response.secret;\n\t\t\t\t\t\tnotify.alert(response.message, true);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (response.type == 'mailSent') {\n\t\t\t\t\t\t\tnotify.alert(response.message, true);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tnotify.alert(response.message, false);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t\t.catch(err => {\n\t\t\t\t\tself.processing = false;\n\t\t\t\t\tnotify.alert(err, false);\n\t\t\t\t});\n\t\t} else {\n\t\t\tlet data = {\n\t\t\t\tnewPass: document.getElementById('new_password').value,\n\t\t\t\tnewPassConfirm: document.getElementById('new_password2').value,\n\t\t\t\tsecret: document.getElementById('secret').value\n\t\t\t};\n\t\t\tmm.newPass(data)\n\t\t\t\t.then(response => {\n\t\t\t\t\tself.processing = false;\n\t\t\t\t\tif (response.type == 'passNotCreated') {\n\t\t\t\t\t\tnotify.alert(response.message, false);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tnotify.alert(response.message, true);\n\t\t\t\t\t\tsetTimeout(() => {\n\t\t\t\t\t\t\twindow.location = '/dashboard';\n\t\t\t\t\t\t}, 1000);\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t\t.catch(err => {\n\t\t\t\t\tself.processing = false;\n\t\t\t\t\tnotify.alert(err, false);\n\t\t\t\t});\n\t\t}\n\t}\n\thandleOptions(e) {\n\t\te.stopPropagation();\n\t\te.preventDefault();\n\t\tlet init = document.querySelector('[role=\"restore-fresh\"]');\n\t\tlet restore = document.querySelector('[role=\"restore-backup\"]');\n\t\tif (e.target.id === 'init-switch-restore') {\n\t\t\tinit.style.display = 'none';\n\t\t\tinit.style.visibility = 'hidden';\n\n\t\t\trestore.style.display = 'grid';\n\t\t\trestore.style.visibility = 'visible';\n\t\t} else {\n\t\t\tinit.style.display = 'grid';\n\t\t\tinit.style.visibility = 'visible';\n\n\t\t\trestore.style.display = 'none';\n\t\t\trestore.style.visibility = 'hidden';\n\t\t}\n\t}\n}\n","//** REQUEST TYPES **//\nexport const REQUEST_TYPE_POST = 'POST';\nexport const REQUEST_TYPE_GET = 'GET';\nexport const REQUEST_TYPE_PUT = 'PUT';\nexport const REQUEST_TYPE_DELETE = 'DELETE';\n//** POST CONTENT TYPES **//\nexport const CONTENT_TYPE_JSON = 'json';\nexport const CONTENT_TYPE_FORM = 'x-www-form-urlencoded';\n//** API URLS **//\nexport const API_STATUS = '/api/v1/status';\nexport const API_GET_SETTINGS = '/api/v1/settings/site';\nexport const API_GET_MEMBER_INFO = '/api/v1/settings/member';\nexport const API_NEW_PAGE = '/api/v1/page/create';\nexport const API_EDIT_PAGE = '/api/v1/page/write';\nexport const API_DELETE_PAGE = '/api/v1/page/delete';\nexport const API_SETTINGS_SYNC = '/api/v1/settings/sync';\nexport const API_PUBLISH_PAGES = '/api/v1/settings/publish';\nexport const API_NAV_SYNC = '/api/v1/settings/nav-sync';\nexport const API_REINDEX_PAGES = '/api/v1/settings/reindex';\nexport const API_SEND_MAIL = '/api/v1/mailer';\nexport const API_LOGIN = '/api/v1/login';\n//** API TASKS **//\nexport const AUTH_STATUS = 'getAuthStatus';\nexport const TASK_SETTINGS_WRITE = 'writeSettings';\nexport const TASK_PUBLISH_SITE = 'publishSite';\nexport const TASK_PAGE_CREATE = 'createNewPage';\nexport const TASK_PAGE_EDIT = 'editPage';\nexport const TASK_PAGE_DELETE = 'deletePage';\nexport const TASK_SEND_MAIL = 'sendMail';\nexport const TASK_REINDEX_PAGE = 'reIndexPages';\nexport const TASK_SYNC_SETTNIGS = 'syncSite';\nexport const TASK_SYNC_NAV = 'syncNav';\nexport const TASK_GET_SETTINGS = 'getSiteSettings';\nexport const TASK_GET_MEMBER_INFO = 'getMemberInfo';\n//** API STATUS **//\nexport const API_ACCESS_GOOD = 'apiUseAuthorized';\nexport const API_ACCESS_BAD = 'apiUseNotAuthorized';\n\n/**\n * A can of methods used to edit install settings, navigation pages and content pages\n */\n\nclass FipamoAdminAPI {\n\t/**\n\t * @constructor\n\t * @param {string} baseURL - url of site; uses local when empty\n\t * @param {object} progressBar - element to be used to display upload progress\n\t */\n\tconstructor(baseURL = null, progressBar = null) {\n\t\tthis.percentComplete = 0; //for later\n\t\tthis.baseURL = null;\n\t\tthis.progressBar = progressBar;\n\t\tthis.status = false;\n\t\tif (baseURL) this.baseURL = baseURL;\n\t\t//asks server if a session is active\n\t\tthis._request(this.baseURL ? this.baseURL + API_STATUS : API_STATUS).then(\n\t\t\tresponse => {\n\t\t\t\tif (response.type === API_ACCESS_GOOD) {\n\t\t\t\t\tthis.token = response.token;\n\t\t\t\t} else {\n\t\t\t\t\t//don't set token\n\t\t\t\t\t//console.log(\"NO TOKEN\");\n\t\t\t\t}\n\t\t\t}\n\t\t);\n\t}\n\t/**\n * Promise method for authenticating and starting a session\\\n * **POST**`/api/v1/login`\n * @param {Object[]} data - json object that contains data for set up\n * @param {string} data[].handle - handle for site user\n * @param {string} data[].password - password for site user\n * @example\n * api.login(data).then(response=>{\n * console.log(\"RESPONSE\", response);\n * })\n * @returns {object} json object that contains type and status of login request\n ```\n {\n \"message\":\"Example Message of Affirmation or what you're missing!\",\n \"type\":\"exampleType\",\n }\n ```\n */\n\tlogin(data) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tthis.baseURL ? (data.remote = true) : (data.remote = false);\n\t\t\tthis.key ? (data.key = this.key) : (data.key = null);\n\t\t\tthis._request(\n\t\t\t\tthis.baseURL ? this.baseURL + API_LOGIN : API_LOGIN,\n\t\t\t\tAUTH_STATUS,\n\t\t\t\tREQUEST_TYPE_POST,\n\t\t\t\tCONTENT_TYPE_JSON,\n\t\t\t\tdata\n\t\t\t)\n\t\t\t\t.then(result => {\n\t\t\t\t\tresolve(result);\n\t\t\t\t})\n\t\t\t\t.catch(err => {\n\t\t\t\t\treject(err);\n\t\t\t\t});\n\t\t});\n\t}\n\t/**\n * Method for saving site and navigation settings\\\n * **POST**`/api/v1/settings/:task`\n * @param {string} task - settings being synced `config | navigation`\n * @param {object[]} data - json object that contains settings data for [site] or [nav]\n * @param {string} data[].global.base_url - base url for site [site]\n * @param {string} data[].global.title - site title [site]\n * @param {string} data[].global.descriptions - brief site summary [site]\n * @param {string} data[].global.background - url for site feature image for header [site]\n * @param {boolean} data[].global.private - privacy state for site [disabled] [site]\n * @param {boolean} data[].global.renderOnSave - property for publishing site when page saved [disabled] [site]\n * @param {string} data[].global.theme - current theme for site [site]\n * @param {boolean} data[].global.externalAPI - toggle for external API access [site]\n * @param {string} data[].member.handle - current member handle [site]\n * @param {string} data[].member.email - current member email [site]\n * @param {string} data[].email.active - current email protocol being used [site]\n * @param {string} data[].email.smtp.domain - url of smtp service being [site]\n * @param {string} data[].email.smtp.email - email account of smtp service [site]\n * @param {string} data[].email.smtp.password - password for email of smtp service [site]\n * @param {string} data[].email.mailgun.domain - mailgun domain url [site]\n * @param {string} data[].email.mailgun.key - mailgun key [site]\n *\n * @param {string} data[].item.title - page title [nav]\n * @param {string} data[].item.slug - url safe title [nav]\n * @param {string} data[].item.uuid - unique identifier [nav]\n * @param {string} data[].item.path - directory path to associated markdown file [nav]\n * @example\n * api.sync(TASK, data).then(response=>{\n * console.log(\"RESPONSE\", response);\n * })\n * @returns {object} json object that contains type and status of sync request\n ```\n *\n {\n \"message\":\"Example Message of Affirmation!\",\n \"type\":\"exampleType\",\n }\n ```\n */\n\tsync(task, data) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tlet url = '';\n\t\t\tswitch (task) {\n\t\t\t\tcase 'syncSite':\n\t\t\t\t\turl = API_SETTINGS_SYNC;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'syncNav':\n\t\t\t\t\turl = API_NAV_SYNC;\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\tthis._request(\n\t\t\t\tthis.baseURL ? this.baseURL + url : url,\n\t\t\t\tTASK_SETTINGS_WRITE,\n\t\t\t\tREQUEST_TYPE_POST,\n\t\t\t\tCONTENT_TYPE_JSON,\n\t\t\t\tdata\n\t\t\t)\n\t\t\t\t.then(result => {\n\t\t\t\t\tresolve(result);\n\t\t\t\t})\n\t\t\t\t.catch(err => {\n\t\t\t\t\treject(err);\n\t\t\t\t});\n\t\t});\n\t}\n\n\t/**\n * Method for retrieving user authorizing user login\n * @param {object[]} data - json object that contains task\n * @param {string} data[].task - publishing task\n * @example\n * api.publish(TASK).then(response=>{\n * console.log(\"RESPONSE\", response);\n * })\n * @returns {object} json object that contains type and status of publis request\n * ```\n {\n \"message\":\"Example Message of Affirmation!\",\n \"type\":\"exampleType\",\n }\n * ```\n */\n\tpublish(data) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tthis._request(\n\t\t\t\t//API_PUBLISH_PAGES,\n\t\t\t\tthis.baseURL ? this.baseURL + API_PUBLISH_PAGES : API_PUBLISH_PAGES,\n\t\t\t\tTASK_PUBLISH_SITE,\n\t\t\t\tREQUEST_TYPE_POST,\n\t\t\t\tCONTENT_TYPE_JSON,\n\t\t\t\tdata\n\t\t\t)\n\t\t\t\t.then(result => {\n\t\t\t\t\tresolve(result);\n\t\t\t\t})\n\t\t\t\t.catch(err => {\n\t\t\t\t\treject(err);\n\t\t\t\t});\n\t\t});\n\t}\n\n\t/**\n * Method for handling page creating and editing\\\n * **POST**`/api/v1/page/:task`\n * @param {string} task - current page action\n * @param {object[]} form - form object that contains info for current page being edited/created\n * @param {string} form[].id - sequence id for page, leave empty for new page\n * @param {string} form[].uuid - unique identifier for page, leave empty for new page\n * @param {string} form[].layout - current page layout\n * @param {string} form[].current_title - saved url save title for persistence when changing title, leave empty for new page\n * @param {string} form[].content - markdown body of page\n * @param {string} form[].title - current title of page\n * @param {string} form[].created - date page was created, leave empty for new page\n * @param {string} form[].slug - url safe string of page title\n * @param {string} form[].tags - comma separated list of tags\n * @param {boolean} form[].menu - property that indicates page is included in site menu\n * @param {boolean} form[].featured - property that indicates page is featured\n * @param {boolean} form[].published - property that indicates page is public\n * @param {string} form[].form_token - hidden property to authenticate form submission\n * @param {input} form[].feature_image - main image for page\n * @example\n * api.pageActions(TASK, data).then(response=>{\n * console.log(\"RESPONSE\", response);\n * })\n * @returns {object} json object that contains type and status of page edit request\n ```\n {\n \"message\":\"Example Message of Affirmation!\",\n \"type\":\"exampleType\",\n }\n ```\n */\n\tpageActions(task, data) {\n\t\tlet url, event, content;\n\t\tswitch (task) {\n\t\t\tcase TASK_PAGE_CREATE:\n\t\t\t\turl = API_NEW_PAGE;\n\t\t\t\tevent = TASK_PAGE_CREATE;\n\t\t\t\tcontent = CONTENT_TYPE_JSON;\n\t\t\t\tbreak;\n\t\t\tcase TASK_PAGE_EDIT:\n\t\t\t\turl = API_EDIT_PAGE;\n\t\t\t\tevent = TASK_PAGE_EDIT;\n\t\t\t\tcontent = CONTENT_TYPE_JSON;\n\t\t\t\tbreak;\n\n\t\t\tcase TASK_PAGE_DELETE:\n\t\t\t\turl = API_DELETE_PAGE;\n\t\t\t\tevent = TASK_PAGE_DELETE;\n\t\t\t\tcontent = CONTENT_TYPE_JSON;\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t}\n\n\t\tif (this.baseURL) {\n\t\t\t//data.key = this.key;\n\t\t\tdata.remote = true;\n\t\t} else {\n\t\t\tdata.remote = false;\n\t\t}\n\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tthis._request(\n\t\t\t\tthis.baseURL ? this.baseURL + url : url,\n\t\t\t\tevent,\n\t\t\t\tREQUEST_TYPE_POST,\n\t\t\t\tcontent,\n\t\t\t\tdata\n\t\t\t)\n\t\t\t\t.then(result => {\n\t\t\t\t\tresolve(result);\n\t\t\t\t})\n\t\t\t\t.catch(err => {\n\t\t\t\t\treject(err);\n\t\t\t\t});\n\t\t});\n\t}\n\n\t/**\n * Method for sending mail (if completed in settings)\\\n * **POST**`/api/v1/mailer`\n * @param {object[]} message - json object that contains items to be included in main site navigation\n * @param {string} message[].content - message to send\n * @example\n * api.sendMail(message).then(response=>{\n * console.log(\"RESPONSE\", response);\n * })\n * @returns {object} json object that contains type and status of page edit request\n ```\n {\n \"message\":\"Example Message of Affirmation!\",\n \"type\":\"exampleType\"\n }\n ```\n */\n\tsendMail(message) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tthis._request(\n\t\t\t\tthis.baseURL ? this.baseURL + API_SEND_MAIL : API_SEND_MAIL,\n\t\t\t\tTASK_SEND_MAIL,\n\t\t\t\tREQUEST_TYPE_POST,\n\t\t\t\tCONTENT_TYPE_JSON,\n\t\t\t\tmessage\n\t\t\t)\n\t\t\t\t.then(result => {\n\t\t\t\t\tresolve(result);\n\t\t\t\t})\n\t\t\t\t.catch(err => {\n\t\t\t\t\treject(err);\n\t\t\t\t});\n\t\t});\n\t}\n\n\t/**\n * *Promise method for retrieving site and member info*\\\n * **GET** `/api/v1/settings/:type`\n * @param {string} type - type of info requested ['site'|'member'];\n * @example\n * api.getInfo(\"type\").then(data=>{\n console.log(\"Info Object\", data);\n * })\n * @returns {object} json object that contains data for requested information\n *\n * *info object example*\n * ```\n {\n \"message\":\"message of affirmation!\",\n \"task\":\"type of info request\",\n \"data\":json-data-object,\n }\n * ```\n */\n\n\tgetInfo(type) {\n\t\tlet url, task;\n\t\tif (type == 'site') {\n\t\t\turl = API_GET_SETTINGS;\n\t\t\ttask = TASK_GET_SETTINGS;\n\t\t} else {\n\t\t\turl = API_GET_MEMBER_INFO;\n\t\t\ttask = TASK_GET_MEMBER_INFO;\n\t\t}\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tthis._request(this.baseURL ? this.baseURL + url : url, task)\n\t\t\t\t.then(result => {\n\t\t\t\t\tresolve(result);\n\t\t\t\t})\n\t\t\t\t.catch(err => {\n\t\t\t\t\treject(err);\n\t\t\t\t});\n\t\t});\n\t}\n\n\t//--------------------------\n\t// private\n\t//--------------------------\n\t_request(\n\t\trequestURL,\n\t\teventType,\n\t\trequestType = REQUEST_TYPE_GET,\n\t\tcontentType = CONTENT_TYPE_JSON,\n\t\trequestData = null\n\t) {\n\t\tvar self = this;\n\t\treturn new Promise(function (resolve, reject) {\n\t\t\tvar request = new XMLHttpRequest();\n\t\t\trequest.upload.addEventListener('progress', e =>\n\t\t\t\tself.handleLoadProgress(e, self.progressBar)\n\t\t\t);\n\t\t\trequest.open(requestType, requestURL, true);\n\t\t\trequest.onload = () => {\n\t\t\t\tif (request.status == 200) {\n\t\t\t\t\tlet response = JSON.parse(request['response']);\n\t\t\t\t\tresolve(response);\n\t\t\t\t} else {\n\t\t\t\t\tlet error = JSON.parse(request['response']);\n\t\t\t\t\treject(error);\n\t\t\t\t}\n\t\t\t};\n\t\t\tif (requestType == REQUEST_TYPE_PUT || requestType == REQUEST_TYPE_POST) {\n\t\t\t\tif (\n\t\t\t\t\teventType === TASK_SETTINGS_WRITE ||\n\t\t\t\t\teventType === TASK_PAGE_EDIT ||\n\t\t\t\t\teventType === TASK_PAGE_CREATE ||\n\t\t\t\t\teventType === TASK_PAGE_DELETE ||\n\t\t\t\t\teventType === TASK_PUBLISH_SITE ||\n\t\t\t\t\teventType === TASK_REINDEX_PAGE\n\t\t\t\t)\n\t\t\t\t\trequest.setRequestHeader('fipamo-access-token', self.token);\n\n\t\t\t\tswitch (contentType) {\n\t\t\t\t\tcase CONTENT_TYPE_JSON:\n\t\t\t\t\t\trequest.setRequestHeader(\n\t\t\t\t\t\t\t'Content-type',\n\t\t\t\t\t\t\t'application/' + contentType\n\t\t\t\t\t\t);\n\t\t\t\t\t\trequest.send(JSON.stringify(requestData));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase CONTENT_TYPE_FORM:\n\t\t\t\t\t\trequest.send(requestData);\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (\n\t\t\t\t\teventType === TASK_GET_SETTINGS ||\n\t\t\t\t\teventType === TASK_GET_MEMBER_INFO\n\t\t\t\t) {\n\t\t\t\t\trequest.setRequestHeader('fipamo-access-token', self.token);\n\t\t\t\t}\n\t\t\t\trequest.send();\n\t\t\t}\n\t\t});\n\t}\n\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n\thandleLoadProgress(e, progressBar) {\n\t\tlet percent = Math.ceil((e.loaded / e.total) * 100);\n\t\t//if a progress bar element is present, talk to it\n\t\tif (progressBar != null) {\n\t\t\tprogressBar.style.width = percent + '%';\n\t\t}\n\t}\n}\n\nexport { FipamoAdminAPI as default };\n","//** REQUEST TYPES **//\nexport const REQUEST_TYPE_POST = 'POST';\nexport const REQUEST_TYPE_GET = 'GET';\nexport const REQUEST_TYPE_PUT = 'PUT';\nexport const REQUEST_TYPE_DELETE = 'DELETE';\n//** POST CONTENT TYPES **//\nexport const CONTENT_TYPE_JSON = 'json';\nexport const CONTENT_TYPE_FORM = 'x-www-form-urlencoded';\n//** API URLS **//\nexport const API_STATUS = '/api/v1/status';\nexport const API_INIT = '/api/v1/init';\nexport const API_RESTORE = '/api/v1/restore';\nexport const API_GET_SECRET = '/api/v1/get-secret';\nexport const API_RESET_PASS = '/api/v1/reset-password';\nexport const API_CREATE_BACKUP = '/api/v1/backup';\nexport const API_DOWNLOAD_BACKUP = '/api/v1/backup/download';\nexport const API_RESTORE_BACKUP = '/api/v1/backup/restore';\nexport const API_UPLOAD_AVATAR = '/api/v1/settings/add-avatar';\nexport const API_UPLOAD_BACKGROUND = '/api/v1/settings/add-feature-background';\nexport const API_IMAGE_UPLOAD = '/api/v1/page/add-entry-image';\nexport const API_FILES_UPLOAD = '/api/v1/files';\n//** API TASKS **//\nexport const TASK_SITE_INIT = 'blogInit';\nexport const TASK_BACKUP_RESTORE = 'restoreBackup';\nexport const TASK_BACKUP_CREATE = 'createBackup';\nexport const TASK_GET_SECRET = 'retrieveSecret';\nexport const TASK_RESET_PASS = 'resetPassword';\nexport const TASK_UPLOAD_FILES = 'uploadFiles';\n//** API STATUS **//\nexport const API_ACCESS_GOOD = 'apiUseAuthorized';\nexport const API_ACCESS_BAD = 'apiUseNotAuthorized';\n\n/**\n * A tub of methods for creating/restoring installs, resetting passwords and uploading images.\n */\nclass MaintenanceManager {\n\t/**\n\t * @constructor\n\t * @param {string} baseURL - url of site; uses local when empty\n\t * @param {string} key - user api key\n\t */\n\tconstructor(baseURL = null, key = null) {\n\t\tthis.accetableFiles = [\n\t\t\t'image/jpeg',\n\t\t\t'image/gif',\n\t\t\t'image/png',\n\t\t\t'image/svg',\n\t\t\t'audio/mpeg',\n\t\t\t'video/mp4',\n\t\t\t'application/pdf',\n\t\t\t'text/plain',\n\t\t\t'text/rtf'\n\t\t];\n\t\tthis.percentComplete = 0; //for later\n\t\tthis.token = null;\n\t\tthis.baseURL = null;\n\t\tthis.key = null;\n\t\tif (key) this.key = key;\n\t\tif (baseURL) this.baseURL = baseURL;\n\t\t//if key is valid, checks to see if a session is active and returns\n\t\tthis._request(\n\t\t\tthis.baseURL\n\t\t\t\t? this.baseURL + API_STATUS + '?key=' + this.key\n\t\t\t\t: API_STATUS + '?key=' + this.key\n\t\t).then(response => {\n\t\t\tif (response.type === API_ACCESS_GOOD) {\n\t\t\t\tthis.token = response.token;\n\t\t\t} else {\n\t\t\t\t//don't set token\n\t\t\t\t//console.log(\"NO TOKEN\");\n\t\t\t}\n\t\t});\n\t}\n\n\t/**\n\t * Promise method used create new site from scratch. For local use only.\n\t * @param {object} data - json object that contains data for set up\n\t * @property {string} new_member_handle - handle for new user\n\t * @property {string} new_member_email - email for new user\n\t * @property {string} new_member_pass - password for new user\n\t * @property {string} new_member_title - title for new user\n\t */\n\tcreate(data) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tthis._request(\n\t\t\t\tAPI_INIT,\n\t\t\t\tnull,\n\t\t\t\tTASK_SITE_INIT,\n\t\t\t\tREQUEST_TYPE_POST,\n\t\t\t\tCONTENT_TYPE_JSON,\n\t\t\t\tdata\n\t\t\t)\n\t\t\t\t.then(result => {\n\t\t\t\t\tresolve(result);\n\t\t\t\t})\n\t\t\t\t.catch(err => {\n\t\t\t\t\treject(err);\n\t\t\t\t});\n\t\t});\n\t}\n\t/**\n\t * Promise method for restoring site from a previous back up. For local use only.\n\t * @param {object} form - form object that contains restore data and files\n\t * @property {string} restore_member_handle - handle for site user\n\t * @property {string} restore_member_pass - password for site user\n\t * @property {file} backup-upload - backup zip file\n\t */\n\trestore(form) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tvar url, event, method, type, data;\n\n\t\t\turl = API_RESTORE;\n\t\t\tevent = TASK_BACKUP_RESTORE;\n\t\t\tmethod = REQUEST_TYPE_POST;\n\t\t\ttype = CONTENT_TYPE_FORM;\n\t\t\tdata = new FormData(form);\n\t\t\tthis._request(url, null, event, method, type, data)\n\t\t\t\t.then(result => {\n\t\t\t\t\tresolve(result);\n\t\t\t\t})\n\t\t\t\t.catch(err => {\n\t\t\t\t\treject(err);\n\t\t\t\t});\n\t\t});\n\t}\n\t/**\n\t * Promise method for creating a zip back up of current site. For local use only.\n\t */\n\n\tbackup() {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tvar url, event, method, type, data;\n\n\t\t\turl = API_CREATE_BACKUP;\n\t\t\tevent = TASK_BACKUP_CREATE;\n\t\t\tmethod = REQUEST_TYPE_POST;\n\t\t\ttype = CONTENT_TYPE_JSON;\n\t\t\tdata = { task: 'create_backup' };\n\t\t\tthis._request(url, null, event, method, type, data)\n\t\t\t\t.then(result => {\n\t\t\t\t\tresolve(result);\n\t\t\t\t})\n\t\t\t\t.catch(err => {\n\t\t\t\t\treject(err);\n\t\t\t\t});\n\t\t});\n\t}\n\n\t/**\n\t * Promise method for retrieving user secret key. For local use only.\n\t * @param {object} data - json object that contains data for set up\n\t * @property {string} email - email for site user\n\t */\n\n\tsecret(data) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tthis._request(\n\t\t\t\tAPI_GET_SECRET,\n\t\t\t\tTASK_GET_SECRET,\n\t\t\t\tREQUEST_TYPE_POST,\n\t\t\t\tCONTENT_TYPE_JSON,\n\t\t\t\tdata\n\t\t\t)\n\t\t\t\t.then(result => {\n\t\t\t\t\tresolve(result);\n\t\t\t\t})\n\t\t\t\t.catch(err => {\n\t\t\t\t\treject(err);\n\t\t\t\t});\n\t\t});\n\t}\n\t/**\n\t * Promise method for resetting password for user. For local use only.\n\t * @param {object} data - json object that contains data for set up\n\t * @property {string} new_password - password for user\n\t * @property {string} new_password2 - confirm password for user\n\t * @property {string} secret - secret key for user\n\t */\n\n\tnewPass(data) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tthis._request(\n\t\t\t\tAPI_RESET_PASS,\n\t\t\t\tTASK_RESET_PASS,\n\t\t\t\tREQUEST_TYPE_POST,\n\t\t\t\tCONTENT_TYPE_JSON,\n\t\t\t\tdata\n\t\t\t)\n\t\t\t\t.then(result => {\n\t\t\t\t\tresolve(result);\n\t\t\t\t})\n\t\t\t\t.catch(err => {\n\t\t\t\t\treject(err);\n\t\t\t\t});\n\t\t});\n\t}\n\n\t/**\n\t * Promise method for uploading files [todo: change to uploading files]\n\t * @param {string} type - type of upload\n\t * @param {input} files - form input containing files\n\t */\n\tfilesUpload(type, files, progress = null) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tlet url = API_FILES_UPLOAD;\n\n\t\t\tif (this.baseURL) {\n\t\t\t\tfiles.append('key', this.key);\n\t\t\t\tfiles.append('remote', true);\n\t\t\t} else {\n\t\t\t\tfiles.append('remote', false);\n\t\t\t}\n\n\t\t\tthis._request(\n\t\t\t\turl,\n\t\t\t\tprogress,\n\t\t\t\tTASK_UPLOAD_FILES,\n\t\t\t\tREQUEST_TYPE_POST,\n\t\t\t\tCONTENT_TYPE_FORM,\n\t\t\t\tfiles\n\t\t\t)\n\t\t\t\t.then(r => {\n\t\t\t\t\tresolve(r);\n\t\t\t\t})\n\t\t\t\t.catch(err => {\n\t\t\t\t\treject(err);\n\t\t\t\t});\n\t\t});\n\t}\n\n\t//--------------------------\n\t// private\n\t//--------------------------\n\t_request(\n\t\trequestURL,\n\t\tprogressBar = null,\n\t\teventType,\n\t\trequestType = REQUEST_TYPE_GET,\n\t\tcontentType = CONTENT_TYPE_JSON,\n\t\trequestData = null\n\t) {\n\t\tvar self = this;\n\t\treturn new Promise(function (resolve, reject) {\n\t\t\tvar request = new XMLHttpRequest();\n\n\t\t\trequest.upload.addEventListener('progress', e =>\n\t\t\t\tself.handleLoadProgress(e, progressBar)\n\t\t\t);\n\t\t\trequest.open(requestType, requestURL, true);\n\t\t\trequest.onload = () => {\n\t\t\t\tif (request.status == 200) {\n\t\t\t\t\tlet response = JSON.parse(request['response']);\n\t\t\t\t\tresolve(response);\n\t\t\t\t} else {\n\t\t\t\t\tlet error = JSON.parse(request['response']);\n\t\t\t\t\treject(error);\n\t\t\t\t}\n\t\t\t};\n\t\t\tif (requestType == REQUEST_TYPE_PUT || requestType == REQUEST_TYPE_POST) {\n\t\t\t\tif (eventType === TASK_UPLOAD_FILES)\n\t\t\t\t\trequest.setRequestHeader('fipamo-access-token', self.token);\n\t\t\t\tswitch (contentType) {\n\t\t\t\t\tcase CONTENT_TYPE_JSON:\n\t\t\t\t\t\trequest.setRequestHeader(\n\t\t\t\t\t\t\t'Content-type',\n\t\t\t\t\t\t\t'application/' + contentType\n\t\t\t\t\t\t);\n\t\t\t\t\t\trequest.send(JSON.stringify(requestData));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase CONTENT_TYPE_FORM:\n\t\t\t\t\t\trequest.send(requestData);\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\trequest.send();\n\t\t\t}\n\t\t});\n\t}\n\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n\thandleLoadProgress(e, progressBar) {\n\t\tlet percent = Math.ceil((e.loaded / e.total) * 100);\n\t\t//if a progress bar element is present, talk to it\n\t\tif (progressBar != null) {\n\t\t\tprogressBar.style.width = percent + '%';\n\t\t}\n\t}\n}\n\nexport { MaintenanceManager as default };\n","export default class DataUtils {\n\t//--------------------------\n\t// constructor\n\t//--------------------------\n\tconstructor() {}\n\t//--------------------------\n\t// methods\n\t//--------------------------\n\n\timgLoad(url) {\n\t\t'use strict';\n\t\t// Create new promise with the Promise() constructor;\n\t\t// This has as its argument a function with two parameters, resolve and reject\n\t\treturn new Promise(function (resolve, reject) {\n\t\t\t// Standard XHR to load an image\n\t\t\tvar request = new XMLHttpRequest();\n\t\t\trequest.open('GET', url);\n\t\t\trequest.responseType = 'blob';\n\t\t\t// When the request loads, check whether it was successful\n\t\t\trequest.onload = function () {\n\t\t\t\tif (request.status === 200) {\n\t\t\t\t\t// If successful, resolve the promise by passing back the request response\n\t\t\t\t\tresolve(request.response);\n\t\t\t\t} else {\n\t\t\t\t\t// If it fails, reject the promise with a error message\n\t\t\t\t\treject(\n\t\t\t\t\t\tnew Error(\n\t\t\t\t\t\t\t\"Image didn't load successfully; error code: \" +\n\t\t\t\t\t\t\t\trequest.status +\n\t\t\t\t\t\t\t\t' ' +\n\t\t\t\t\t\t\t\trequest.statusText\n\t\t\t\t\t\t)\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t};\n\t\t\trequest.onerror = function () {\n\t\t\t\t// Also deal with the case when the entire request fails to begin with\n\t\t\t\t// This is probably a network error, so reject the promise with an appropriate message\n\t\t\t\treject(new Error('There was a network error.'));\n\t\t\t};\n\t\t\t// Send the request\n\t\t\trequest.send();\n\t\t});\n\t}\n\tloadImage(src) {\n\t\t'use strict';\n\t\tlet self = this;\n\t\treturn new Promise(function (resolve, reject) {\n\t\t\t// Get a reference to the body element, and create a new image object\n\t\t\tvar myImage = new Image();\n\t\t\tmyImage.crossOrigin = ''; // or \"anonymous\"\n\t\t\t// Call the function with the URL we want to load, but then chain the\n\t\t\t// promise then() method on to the end of it. This contains two callbacks\n\t\t\tself.imgLoad(src).then(\n\t\t\t\tfunction (response) {\n\t\t\t\t\t// The first runs when the promise resolves, with the request.reponse specified within the resolve() method.\n\t\t\t\t\tvar imageURL = window.URL.createObjectURL(response);\n\t\t\t\t\tresolve(imageURL);\n\t\t\t\t\t//$('background-content').setStyle('background-image', 'url('+imageURL+')') //myImage.src = imageURL;\n\t\t\t\t\t//console.log(imageURL);\n\t\t\t\t\t//body.appendChild(myImage);\n\t\t\t\t\t// The second runs when the promise is rejected, and logs the Error specified with the reject() method.\n\t\t\t\t},\n\t\t\t\tfunction (Error) {\n\t\t\t\t\treject(Error);\n\t\t\t\t}\n\t\t\t);\n\t\t});\n\t}\n\n\t/**\n\t * Create a function to convert the serialize and convert the form data to JSON\n\t * @param : $('#form_example');\n\t * @return a JSON Stringify\n\t */\n\tformDataToJSON(form) {\n\t\tlet object = {};\n\t\tlet formData = new FormData(form);\n\t\tformData.forEach((value, key) => {\n\t\t\tif (!object.hasOwnProperty(key)) {\n\t\t\t\tobject[key] = value;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (!Array.isArray(object[key])) {\n\t\t\t\tobject[key] = [object[key]];\n\t\t\t}\n\t\t\tobject[key].push(value);\n\t\t});\n\t\t//let json = JSON.stringify(object);\n\t\treturn object;\n\t}\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n}\n","export const AUTH_STATUS = \"getAuthStatus\";\nexport const REQUEST_GOOD = \"requestGood\";\nexport const REQUEST_LAME = \"requestLame\";\nexport const API_REQUEST_GOOD = \"apiUseAuthorized\";\nexport const API_REQUEST_LAME = \"apiUseNotAuthorized\";\nexport const IMG_REQUEST_GOOD = \"imgRequestGood\";\nexport const IMG_REQUEST_LAME = \"imgRequestLame\";\nexport const SETTINGS_LOADED = \"settingsLoaded\";\nexport const POST_IMAGE_ADDED = \"postImageAdded\";\nexport const FEATURE_IMAGE_ADDED = \"featureImageAdded\";\nexport const PAGE_ERROR = \"postError\";\nexport const PAGE_ADDED = \"postAdded\";\nexport const PAGE_UPDATED = \"postUpdated\";\nexport const PAGE_DELETED = \"postImageAdded\";\nexport const PAGES_RENDERED = \"pagesRendered\";\nexport const PAGES_NOT_RENDERED = \"pagesNotRendered\";\nexport const TAG_PAGES_RENDERED = \"tagPagesRendered\";\nexport const TAG_PAGES_NOT_RENDERED = \"tagPagesNotRendered\";\nexport const SETTINGS_UPDATED = \"settingsUpdated\";\nexport const SETTINGS_NOT_UPDATED = \"settingsNotUpdated\";\nexport const MENU_ADD_ITEM = \"menuAddItem\";\nexport const MENU_DELETE_ITEM = \"menuDeleteItem\";\nexport const MENU_UPDATED = \"menuUpdated\";\nexport const AVATAR_UPLOADED = \"avatarUploaded\";\nexport const SITE_BACKGROUND_UPLOADED = \"siteBackgroundUploaded\";\nexport const UPLOAD_PROGRESS = \"uploadProgress\";\nexport const API_PAGE_WRITE = \"writingItDown\";\nexport const API_PAGE_CREATE = \"writingNewEntry\";\nexport const API_PAGE_DELETE = \"erasingPage\";\nexport const API_SETTINGS_WRITE = \"savingSettings\";\nexport const API_BACKUP_CREATE = \"createBackup\";\nexport const API_BACKUP_DOWNLOAD = \"downloadBackup\";\nexport const API_BACKUP_RESTORE = \"downloadBackup\";\nexport const API_IMAGES_UPLOAD = \"uploadProfileImages\";\nexport const API_RENDER_PAGES = \"renderPages\";\nexport const API_REINDEX_PAGES = \"reindexPages\";\nexport const API_INIT = \"blogInit\";\nexport const API_INIT_GOOD = \"blogInitGood\";\nexport const API_INIT_LAME = \"blogInitLame\";\nexport const API_GET_SECRET = \"retrieveSecret\";\nexport const API_RESET_PASS = \"resetPassword\";\nexport const SEND_MAIL = \"sendMail\";\nclass DataEvent {\n //--------------------------\n // methods\n //--------------------------\n //--------------------------\n // event handlers\n //--------------------------\n}\nexport default new DataEvent();\n","import PostIndex from './PostIndex';\nimport SettingsIndex from './SettingsIndex';\nimport NaviIndex from './NavIndex';\nimport Menu from '../ui/Menu';\n\nexport default class DashManager {\n\t//--------------------------\n\t// constructor\n\t//--------------------------\n\tconstructor() {\n\t\tthis.currentDisplay = '';\n\t\tthis.urlPieces = document.URL.split('/');\n\t\tthis.chooseDisplay(this.urlPieces[4], this.urlPieces[5]);\n\t\t//start main menu handler\n\t\tnew Menu();\n\t}\n\t//--------------------------\n\t// methods\n\t//--------------------------\n\tstart() {}\n\n\tchooseDisplay(section, page) {\n\t\tthis.currentDisplay = '';\n\t\tswitch (section) {\n\t\t\tcase 'page':\n\t\t\t\tthis.currentDisplay = new PostIndex(page);\n\t\t\t\tbreak;\n\t\t\tcase 'settings':\n\t\t\t\tthis.currentDisplay = new SettingsIndex();\n\t\t\t\tbreak;\n\t\t\tcase 'navigation':\n\t\t\t\tthis.currentDisplay = new NaviIndex();\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\t//just chill\n\t\t\t\tbreak;\n\t\t}\n\t\tthis.start();\n\t}\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n}\n","import PageEditor from \"./PageEditor\";\nexport default class PostIndex {\n //--------------------------\n // constructor\n //--------------------------\n constructor(page) {\n this.currentPage = null;\n this.choosePage(page);\n this.start();\n }\n //--------------------------\n // methods\n //--------------------------\n start() {}\n choosePage(page) {\n this.currentPage = \"\";\n switch (page) {\n case \"edit\":\n case \"add\":\n this.currentPage = new PageEditor();\n break;\n default:\n //just chill\n break;\n }\n }\n //--------------------------\n // event handlers\n //--------------------------\n}\n","//TOOLS\nimport FipamoAdminAPI, {\n\tTASK_PAGE_CREATE,\n\tTASK_PAGE_EDIT,\n\tTASK_PAGE_DELETE\n} from '../../libraries/FipamoAdminAPI';\nimport Maintenance from './MaintenanceManager';\nimport * as DataEvent from '../events/DataEvent';\nimport PageActions from '../actions/PageActions';\nimport * as EditorEvent from '../events/EditorEvent';\n//import TinyDatePicker from 'tiny-date-picker'; TODO: Reactivate for scheduled publishing\nimport TextEditor from '../ui/TextEditor';\nimport Notfications from '../ui/Notifications';\nimport FileManager from '../ui/FileManager';\nconst notify = new Notfications();\nexport default class PostEditor {\n\t//--------------------------\n\t// constructor\n\t//--------------------------\n\tconstructor() {\n\t\tthis.processing = false;\n\t\tlet self = 'this';\n\t\tthis.admin = new FipamoAdminAPI(null, document.getElementById('notify-progress'));\n\t\tthis.mm = new Maintenance(null, null);\n\t\tthis.urlPieces = document.URL.split('/');\n\t\tthis.post = [];\n\t\tthis.postID = null;\n\t\tthis.postUUID = null;\n\t\tthis.postLayout = null;\n\t\tthis.fm = null;\n\t\tif (document.querySelector('[role=\"file-manager\"]').getAttribute('data-index')) {\n\t\t\tthis.postID = document\n\t\t\t\t.querySelector('[role=\"file-manager\"]')\n\t\t\t\t.getAttribute('data-index');\n\t\t\tthis.postUUID = document\n\t\t\t\t.querySelector('[role=\"file-manager\"]')\n\t\t\t\t.getAttribute('data-uuid');\n\t\t\tthis.postLayout = document\n\t\t\t\t.querySelector('[role=\"file-manager\"]')\n\t\t\t\t.getAttribute('data-layout');\n\t\t}\n\t\tif (document.getElementById('edit')) {\n\t\t\tthis.editor = new TextEditor(\n\t\t\t\tdocument.getElementById('edit'),\n\t\t\t\tdocument.querySelector('[role=\"file-manager\"]').offsetHeight +\n\t\t\t\t\tdocument.querySelector('[role=\"page-meta\"]').offsetHeight +\n\t\t\t\t\tdocument.querySelector('[role=\"text-editor\"]').offsetHeight\n\t\t\t);\n\t\t\tthis.editor.addListener(\n\t\t\t\tEditorEvent.EDITOR_DELETE,\n\t\t\t\t() => this.handleEditorOptions(EditorEvent.EDITOR_DELETE),\n\t\t\t\tfalse\n\t\t\t);\n\t\t\tthis.editor.addListener(\n\t\t\t\tEditorEvent.EDITOR_UPLOAD_POST_IMAGE,\n\t\t\t\t() => this.handleEditorOptions(EditorEvent.EDITOR_UPLOAD_POST_IMAGE),\n\t\t\t\tfalse\n\t\t\t);\n\t\t\tthis.editor.addListener(\n\t\t\t\tEditorEvent.EDITOR_UPDATE,\n\t\t\t\t() => this.handleEditorOptions(EditorEvent.EDITOR_UPDATE),\n\t\t\t\tfalse\n\t\t\t);\n\t\t\tthis.editor.addListener(\n\t\t\t\tEditorEvent.EDITOR_SAVE,\n\t\t\t\t() => this.handleEditorOptions(EditorEvent.EDITOR_SAVE),\n\t\t\t\tfalse\n\t\t\t);\n\t\t\tdocument.getElementById('post-image-upload').addEventListener(\n\t\t\t\t'change',\n\t\t\t\te => {\n\t\t\t\t\tthis.handleImageUpload(e.target.id, e.target.files);\n\t\t\t\t},\n\t\t\t\tfalse\n\t\t\t);\n\t\t\t/*\n\t\t\tTinyDatePicker(document.getElementById('post-date'), {\n\t\t\t\tmode: 'dp-below',\n\t\t\t\tformat() {\n\t\t\t\t\t//return self.dateUtils.getDate('origin', date);\n\t\t\t\t}\n\t\t\t});\n\t\t\t*/\n\n\t\t\tthis.start();\n\t\t}\n\t}\n\t//--------------------------\n\t// methods\n\t//--------------------------\n\tstart() {\n\t\tif (document.querySelector('[role=\"file-drop\"]')) {\n\t\t\t//insert fileManager here\n\t\t\tthis.fm = new FileManager(\n\t\t\t\tdocument.querySelector('[role=\"file-drop\"]'),\n\t\t\t\tdocument.getElementById('page-files-upload'),\n\t\t\t\tdocument.querySelector('[role=\"page-images-list\"]'),\n\t\t\t\tdocument.querySelector('[role=\"page-files-list\"]')\n\t\t\t);\n\t\t\tvar optionButtons = document.querySelectorAll('.post-option-btn');\n\t\t\tfor (var i = 0, length = optionButtons.length; i < length; i++) {\n\t\t\t\toptionButtons[i].addEventListener(\n\t\t\t\t\t'click',\n\t\t\t\t\te => this.handlePostOptions(e),\n\t\t\t\t\tfalse\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t}\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n\thandlePostOptions(e) {\n\t\tlet currentOption = null;\n\t\tswitch (e.target.id) {\n\t\t\tcase 'option-page-icon':\n\t\t\tcase 'option-menu-pin':\n\t\t\t\tcurrentOption = document.getElementById('option-menu-pin');\n\t\t\t\tbreak;\n\t\t\tcase 'option-feature-icon':\n\t\t\tcase 'option-feature':\n\t\t\t\tcurrentOption = document.getElementById('option-feature');\n\t\t\t\tbreak;\n\t\t\tcase 'option-published-icon':\n\t\t\tcase 'option-published':\n\t\t\t\tcurrentOption = document.getElementById('option-published');\n\t\t\t\tbreak;\n\t\t}\n\t\tif (currentOption != null) {\n\t\t\tlet active = currentOption.getAttribute('data-active');\n\t\t\tactive == 'false'\n\t\t\t\t? currentOption.setAttribute('data-active', 'true')\n\t\t\t\t: currentOption.setAttribute('data-active', 'false');\n\t\t}\n\t}\n\thandleEditorOptions(e) {\n\t\tif (this.processing) return;\n\t\tlet self = this;\n\t\tswitch (e) {\n\t\t\tcase EditorEvent.EDITOR_SAVE:\n\t\t\tcase EditorEvent.EDITOR_UPDATE:\n\t\t\t\tvar task = '';\n\t\t\t\te === EditorEvent.EDITOR_SAVE\n\t\t\t\t\t? (task = TASK_PAGE_CREATE)\n\t\t\t\t\t: (task = TASK_PAGE_EDIT);\n\t\t\t\tnew PageActions().collectInfo(this.fm.getFileOrder()).then(page => {\n\t\t\t\t\tself.processing = true;\n\t\t\t\t\tnotify.alert('Writing down changes', null);\n\t\t\t\t\tself.admin\n\t\t\t\t\t\t.pageActions(task, page)\n\t\t\t\t\t\t.then(r => {\n\t\t\t\t\t\t\tself.processing = false;\n\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\tr.type === DataEvent.PAGE_ERROR ||\n\t\t\t\t\t\t\t\tr.type === DataEvent.API_REQUEST_LAME\n\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\tnotify.alert(r.message, false);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tif (r.type === DataEvent.PAGE_UPDATED) {\n\t\t\t\t\t\t\t\t\tnotify.alert(r.message, true);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tnotify.alert(r.message, true);\n\t\t\t\t\t\t\t\t\twindow.location = '/dashboard/page/edit/' + r.id;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t})\n\t\t\t\t\t\t.catch(err => {\n\t\t\t\t\t\t\tself.processing = false;\n\t\t\t\t\t\t\tnotify.alert(err, false);\n\t\t\t\t\t\t});\n\t\t\t\t});\n\t\t\t\tbreak;\n\t\t\tcase EditorEvent.EDITOR_DELETE:\n\t\t\t\tif (this.postLayout === 'index') {\n\t\t\t\t\tnotify.alert('Index cannot be deleted', false);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif (confirm(\"AYE! You know you're deleting this post, right?\")) {\n\t\t\t\t\tnew PageActions()\n\t\t\t\t\t\t.collectInfo(this.fm.getFileOrder())\n\t\t\t\t\t\t.then(page => {\n\t\t\t\t\t\t\tself.processing = true;\n\t\t\t\t\t\t\tthis.admin\n\t\t\t\t\t\t\t\t.pageActions(TASK_PAGE_DELETE, page)\n\t\t\t\t\t\t\t\t.then(() => {\n\t\t\t\t\t\t\t\t\tself.processing = false;\n\t\t\t\t\t\t\t\t\twindow.location = '/dashboard/pages';\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t.catch(err => {\n\t\t\t\t\t\t\t\t\tself.processing = false;\n\t\t\t\t\t\t\t\t\tnotify.alert(err, false);\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t})\n\t\t\t\t\t\t.catch(() => {});\n\t\t\t\t} else {\n\t\t\t\t\t// Do nothing!\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase EditorEvent.EDITOR_UPLOAD_POST_IMAGE:\n\t\t\t\tdocument.getElementById('post-image-upload').click();\n\t\t\t\tbreak;\n\t\t}\n\t}\n\n\thandleImageUpload(type, files) {\n\t\tlet self = this;\n\t\tnotify.alert('Uploading Image', null);\n\t\tlet upload = new FormData();\n\t\tupload.enctype = 'multipart/form-data';\n\t\tupload.append('upload_files[]', files[0], files[0].name);\n\t\tthis.mm\n\t\t\t.filesUpload(files[0].type, upload)\n\t\t\t.then(result => {\n\t\t\t\tif (result.message == 'File Uploaded. Great!') {\n\t\t\t\t\tself.editor.notify(\n\t\t\t\t\t\tEditorEvent.EDITOR_UPLOAD_POST_IMAGE,\n\t\t\t\t\t\tresult.filePath\n\t\t\t\t\t);\n\t\t\t\t\tnotify.alert('Image Added to Entry', true);\n\t\t\t\t} else {\n\t\t\t\t\tnotify.alert('Uh oh. Image not added', false);\n\t\t\t\t}\n\t\t\t})\n\t\t\t.catch(() => {\n\t\t\t\tnotify.alert('Uh oh. Image not added', false);\n\t\t\t});\n\t}\n}\n","import StringUtils from '../utils/StringUtils';\nexport default class PostActions {\n\t//--------------------------\n\t// constructor\n\t//--------------------------\n\tconstructor() {}\n\t//--------------------------\n\t// methods\n\t//--------------------------\n\tcollectInfo(files) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tlet pageInfo = [];\n\t\t\tlet pageRef = document.querySelector('[role=\"file-manager\"]');\n\t\t\t//process html content for storage\n\t\t\tlet txt = document.createElement('textarea');\n\t\t\ttxt.innerHTML = document.getElementById('highlight-content').innerHTML;\n\t\t\tlet html = txt.value;\n\t\t\thtml = html.replace(/<\\/?span[^>]*>/g, ''); //removes prism styling\n\t\t\thtml = html.replace(/<\\/?br[^>]*>/g, '\\n'); //convert back to encoded line break for storage\n\t\t\t//build data object\n\t\t\tpageInfo = {\n\t\t\t\tid: pageRef.getAttribute('data-index'),\n\t\t\t\tuuid: pageRef.getAttribute('data-uuid'),\n\t\t\t\tlayout: document.getElementById('page-templates').value,\n\t\t\t\tcurrent_title: pageRef.getAttribute('data-slug'),\n\t\t\t\tcontent: html,\n\t\t\t\ttitle: document.getElementById('post-title-text').value,\n\t\t\t\tcreated: document.getElementById('post-date').getAttribute('data-raw'),\n\t\t\t\tslug: new StringUtils().cleanString(\n\t\t\t\t\tdocument.getElementById('post-title-text').value\n\t\t\t\t),\n\t\t\t\ttags: document.getElementById('post-tags').value,\n\t\t\t\tmenu: document\n\t\t\t\t\t.getElementById('option-menu-pin')\n\t\t\t\t\t.getAttribute('data-active'),\n\t\t\t\tfeatured: document\n\t\t\t\t\t.getElementById('option-feature')\n\t\t\t\t\t.getAttribute('data-active'),\n\t\t\t\tpublished: document\n\t\t\t\t\t.getElementById('option-published')\n\t\t\t\t\t.getAttribute('data-active'),\n\t\t\t\tform_token: document.getElementById('form_token').value,\n\t\t\t\timageList: files.images,\n\t\t\t\tfileList: files.files\n\t\t\t};\n\n\t\t\tresolve(pageInfo);\n\t\t});\n\t}\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n}\n","class StringUtils {\n\t//--------------------------\n\t// constructor\n\t//--------------------------\n\tconstructor() {}\n\t//--------------------------\n\t// methods\n\t//--------------------------\n\tcleanString(string) {\n\t\tvar clean = string\n\t\t\t.replace(/(^\\-+|[^a-zA-Z0-9\\/_| -]+|\\-+$)/g, '')\n\t\t\t.toLowerCase()\n\t\t\t.replace(/[\\/_| -]+/g, '-');\n\t\treturn clean;\n\t}\n\n\tdecodeHTML(string, quote_style) {\n\t\tvar optTemp = 0,\n\t\t\ti = 0,\n\t\t\tnoquotes = false;\n\t\tif (typeof quote_style === 'undefined') {\n\t\t\tquote_style = 2;\n\t\t}\n\t\tstring = string\n\t\t\t.toString()\n\t\t\t.replace(/&lt;/g, '<')\n\t\t\t.replace(/&gt;/g, '>');\n\t\tvar OPTS = {\n\t\t\tENT_NOQUOTES: 0,\n\t\t\tENT_HTML_QUOTE_SINGLE: 1,\n\t\t\tENT_HTML_QUOTE_DOUBLE: 2,\n\t\t\tENT_COMPAT: 2,\n\t\t\tENT_QUOTES: 3,\n\t\t\tENT_IGNORE: 4\n\t\t};\n\t\tif (quote_style === 0) {\n\t\t\tnoquotes = true;\n\t\t}\n\t\tif (typeof quote_style !== 'number') {\n\t\t\t// Allow for a single string or an array of string flags\n\t\t\tquote_style = [].concat(quote_style);\n\t\t\tfor (i = 0; i < quote_style.length; i++) {\n\t\t\t\t// Resolve string input to bitwise e.g. 'PATHINFO_EXTENSION' becomes 4\n\t\t\t\tif (OPTS[quote_style[i]] === 0) {\n\t\t\t\t\tnoquotes = true;\n\t\t\t\t} else if (OPTS[quote_style[i]]) {\n\t\t\t\t\toptTemp = optTemp | OPTS[quote_style[i]];\n\t\t\t\t}\n\t\t\t}\n\t\t\tquote_style = optTemp;\n\t\t}\n\t\tif (quote_style & OPTS.ENT_HTML_QUOTE_SINGLE) {\n\t\t\tstring = string.replace(/&#0*39;/g, \"'\"); // PHP doesn't currently escape if more than one 0, but it should\n\t\t\t// string = string.replace(/&apos;|&#x0*27;/g, \"'\"); // This would also be useful here, but not a part of PHP\n\t\t}\n\t\tif (!noquotes) {\n\t\t\tstring = string.replace(/&quot;/g, '\"');\n\t\t}\n\t\t// Put this in last place to avoid escape being double-decoded\n\t\tstring = string.replace(/&amp;/g, '&');\n\t\treturn string;\n\t}\n\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n}\nexport default StringUtils;\n","export const EDITOR_DELETE = 'editorDelete';\nexport const EDITOR_UPLOAD_POST_IMAGE = 'editorUploadImage';\nexport const EDITOR_SAVE = 'editorSave';\nexport const EDITOR_UPDATE = 'editorUpdate';\n\nclass EditorEvent {\n\t//--------------------------\n\t// methods\n\t//--------------------------\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n}\nexport default new EditorEvent();\n","import * as DataEvent from '../events/DataEvent';\nimport EventEmitter from '../events/EventEmitter';\nimport * as EditorEvent from '../events/EditorEvent';\nimport Prism from 'prismjs';\nclass TextEditor extends EventEmitter {\n\t/**\n\t * Text Editor UI Component\n\t * @constructor\n\t * @param {object} textEditor - Text area that will edit text\n\t * @param {number} scrollLimit - YPos where editor position will become fixed\n\t */\n\t//--------------------------\n\t// constructor\n\t//--------------------------\n\tconstructor(textEditor, scrollLimit) {\n\t\tsuper();\n\n\t\tdocument\n\t\t\t.querySelector('[role=\"text-editor-control\"]')\n\t\t\t.addEventListener('scroll', e => {\n\t\t\t\tconsole.log('HERE');\n\t\t\t});\n\n\t\tdocument.body.addEventListener('scroll', e => {\n\t\t\tvar fixLimit = scrollLimit;\n\t\t\tconsole.log('POSITION', document.body.scrollTop + ' : ' + fixLimit);\n\t\t\tif (document.body.scrollTop + 5 >= fixLimit) {\n\t\t\t\tdocument\n\t\t\t\t\t.querySelector('[role=\"text-editor-control\"]')\n\t\t\t\t\t.classList.add('control-freeze');\n\t\t\t} else {\n\t\t\t\tdocument\n\t\t\t\t\t.querySelector('[role=\"text-editor-control\"]')\n\t\t\t\t\t.classList.remove('control-freeze');\n\t\t\t}\n\t\t});\n\t\tdocument.getElementById('edit').addEventListener('input', e => {\n\t\t\tlet result_element = document.querySelector('#highlight-content');\n\t\t\tthis.textEditor = textEditor;\n\n\t\t\t// Update code\n\t\t\tlet text = e.target.value;\n\t\t\tresult_element.innerHTML = text\n\t\t\t\t.replace(new RegExp('&', 'g'), '&amp;')\n\t\t\t\t.replace(new RegExp('<', 'g'), '&lt;');\n\t\t\tlet editorHeight = document.getElementById('highlight').offsetHeight;\n\t\t\tdocument.querySelector('[role=\"edit-post-wrapper\"]').style.height =\n\t\t\t\teditorHeight + 'px';\n\t\t\te.target.style.height = editorHeight + 30 + 'px'; //TODO: yeah, it's ugly but it works for now, fix soon\n\t\t\t// Syntax Highlight\n\t\t\tPrism.highlightElement(result_element);\n\t\t});\n\t\tdocument.getElementById('edit').addEventListener('scroll', e => {\n\t\t\t/* Scroll result to scroll coords of event - sync with textarea */\n\t\t\tlet result_element = document.querySelector('#highlight');\n\t\t\t// Get and set x and y\n\t\t\tresult_element.scrollTop = e.scrollTop;\n\t\t\tresult_element.scrollLeft = e.scrollLeft;\n\t\t});\n\t\tdocument.getElementById('edit').dispatchEvent(new Event('input'));\n\t\tthis.setInputs();\n\n\t\t//freeze editor formatting so it doesn't scroll off screen\n\t}\n\t//--------------------------\n\t// methods\n\t//--------------------------\n\tsetInputs() {\n\t\tvar editorButtons = document.querySelectorAll('.editor-button');\n\t\tfor (var i = 0, length = editorButtons.length; i < length; i++) {\n\t\t\teditorButtons[i].addEventListener(\n\t\t\t\t'click',\n\t\t\t\te => this.handleEditorOption(e),\n\t\t\t\tfalse\n\t\t\t);\n\t\t}\n\t}\n\tnotify(type, data) {\n\t\tswitch (type) {\n\t\t\tcase DataEvent.PAGE_UPDATED:\n\t\t\t\tdocument.getElementById('submit-update').classList.add('icon-hide');\n\t\t\t\tdocument.getElementById('submit-good').classList.remove('icon-hide');\n\t\t\t\tdocument.getElementById('edit-update').classList.remove('submit-start');\n\t\t\t\tdocument.getElementById('edit-update').classList.add('submit-cool');\n\t\t\t\tsetTimeout(() => {\n\t\t\t\t\tdocument\n\t\t\t\t\t\t.getElementById('submit-update')\n\t\t\t\t\t\t.classList.remove('icon-hide');\n\t\t\t\t\tdocument.getElementById('submit-good').classList.add('icon-hide');\n\t\t\t\t\tdocument.getElementById('edit-update').classList.add('submit-start');\n\t\t\t\t\tdocument\n\t\t\t\t\t\t.getElementById('edit-update')\n\t\t\t\t\t\t.classList.remove('submit-cool');\n\t\t\t\t}, 2000);\n\t\t\t\tbreak;\n\t\t\tcase DataEvent.PAGE_ADDED:\n\t\t\t\t// do nothing\n\t\t\t\tbreak;\n\t\t\tcase EditorEvent.EDITOR_UPLOAD_POST_IMAGE: {\n\t\t\t\tlet len = this.textEditor.value.length;\n\t\t\t\tlet start = this.textEditor.selectionStart;\n\t\t\t\tlet end = this.textEditor.selectionEnd;\n\t\t\t\tlet insert = '![image alt text](' + data + ')';\n\n\t\t\t\tthis.textEditor.value =\n\t\t\t\t\tthis.textEditor.value.substring(0, start) +\n\t\t\t\t\tinsert +\n\t\t\t\t\tthis.textEditor.value.substring(end, len);\n\t\t\t\tdocument.getElementById('edit').dispatchEvent(new Event('input'));\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n\thandleEditorOption(e) {\n\t\te.preventDefault();\n\t\tlet len = this.textEditor.value.length;\n\t\tlet start = this.textEditor.selectionStart;\n\t\tlet end = this.textEditor.selectionEnd;\n\n\t\tlet selectedText = this.textEditor.value.substring(start, end);\n\t\tlet insert = '';\n\t\tswitch (e.target.id) {\n\t\t\tcase 'edit-bold':\n\t\t\t\tinsert = '**' + selectedText + '**';\n\t\t\t\tthis.textEditor.value =\n\t\t\t\t\tthis.textEditor.value.substring(0, start) +\n\t\t\t\t\tinsert +\n\t\t\t\t\tthis.textEditor.value.substring(end, len);\n\n\t\t\t\tbreak;\n\t\t\tcase 'edit-italic':\n\t\t\t\tinsert = '*' + selectedText + '*';\n\t\t\t\t//console.log(this.textEditor);\n\t\t\t\tthis.textEditor.value =\n\t\t\t\t\tthis.textEditor.value.substring(0, start) +\n\t\t\t\t\tinsert +\n\t\t\t\t\tthis.textEditor.value.substring(end, len);\n\t\t\t\tbreak;\n\t\t\tcase 'edit-strikethrough':\n\t\t\t\tinsert = '~~' + selectedText + '~~';\n\t\t\t\tthis.textEditor.value =\n\t\t\t\t\tthis.textEditor.value.substring(0, start) +\n\t\t\t\t\tinsert +\n\t\t\t\t\tthis.textEditor.value.substring(end, len);\n\t\t\t\tbreak;\n\t\t\tcase 'edit-header1':\n\t\t\t\tinsert = '# ' + selectedText + '\\n';\n\t\t\t\tthis.textEditor.value =\n\t\t\t\t\tthis.textEditor.value.substring(0, start) +\n\t\t\t\t\tinsert +\n\t\t\t\t\tthis.textEditor.value.substring(end, len);\n\t\t\t\tbreak;\n\t\t\tcase 'edit-header2':\n\t\t\t\tinsert = '## ' + selectedText + '\\n';\n\t\t\t\tthis.textEditor.value =\n\t\t\t\t\tthis.textEditor.value.substring(0, start) +\n\t\t\t\t\tinsert +\n\t\t\t\t\tthis.textEditor.value.substring(end, len);\n\t\t\t\tbreak;\n\t\t\tcase 'edit-header3':\n\t\t\t\tinsert = '### ' + selectedText + '\\n';\n\t\t\t\tthis.textEditor.value =\n\t\t\t\t\tthis.textEditor.value.substring(0, start) +\n\t\t\t\t\tinsert +\n\t\t\t\t\tthis.textEditor.value.substring(end, len);\n\t\t\t\tbreak;\n\t\t\tcase 'edit-link':\n\t\t\t\t{\n\t\t\t\t\tlet url = prompt(\"Let's get that url, boss\");\n\t\t\t\t\tlet link = url.toLowerCase();\n\t\t\t\t\tinsert = '[' + selectedText + '](' + link + ')';\n\t\t\t\t\tthis.textEditor.value =\n\t\t\t\t\t\tthis.textEditor.value.substring(0, start) +\n\t\t\t\t\t\tinsert +\n\t\t\t\t\t\tthis.textEditor.value.substring(end, len);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'edit-image':\n\t\t\t\t//this.caretPos = position(this.textEditor).pos;\n\t\t\t\tthis.emitEvent(EditorEvent.EDITOR_UPLOAD_POST_IMAGE);\n\t\t\t\tbreak;\n\t\t\tcase 'submit-save':\n\t\t\tcase 'edit-save':\n\t\t\t\tthis.emitEvent(EditorEvent.EDITOR_SAVE);\n\t\t\t\tbreak;\n\t\t\tcase 'submit-update':\n\t\t\tcase 'edit-update':\n\t\t\t\tthis.emitEvent(EditorEvent.EDITOR_UPDATE);\n\t\t\t\tbreak;\n\t\t\tcase 'edit-delete':\n\t\t\t\tthis.emitEvent(EditorEvent.EDITOR_DELETE);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\t//do stuff\n\t\t\t\tbreak;\n\t\t}\n\t\tdocument.getElementById('edit').dispatchEvent(new Event('input'));\n\t}\n}\nexport default TextEditor;\n","class EventEmitter {\n\t//--------------------------\n\t// constructor\n\t//--------------------------\n\tconstructor() {\n\t\tthis.listeners = new Map();\n\t}\n\t//--------------------------\n\t// methods\n\t//--------------------------\n\taddListener(label, callback) {\n\t\tthis.listeners.has(label) || this.listeners.set(label, []);\n\t\tthis.listeners.get(label).push(callback);\n\t}\n\n\tremoveListener(label, callback) {\n\t\tvar isFunction = function(obj) {\n\t\t\treturn typeof obj == 'function' || false;\n\t\t};\n\n\t\tvar listeners = this.listeners.get(label),\n\t\t\tindex;\n\n\t\tif (listeners && listeners.length) {\n\t\t\tindex = listeners.reduce((i, listener, index) => {\n\t\t\t\treturn isFunction(listener) && listener === callback ? (i = index) : i;\n\t\t\t}, -1);\n\n\t\t\tif (index > -1) {\n\t\t\t\tlisteners.splice(index, 1);\n\t\t\t\tthis.listeners.set(label, listeners);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}\n\n\temitEvent(label, ...args) {\n\t\tvar listeners = this.listeners.get(label);\n\t\tif (listeners && listeners.length) {\n\t\t\tlisteners.forEach(listener => {\n\t\t\t\tlistener(...args);\n\t\t\t});\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n}\nexport default EventEmitter;\n","/// <reference lib=\"WebWorker\"/>\n\nvar _self = (typeof window !== 'undefined')\n\t? window // if in browser\n\t: (\n\t\t(typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope)\n\t\t\t? self // if in worker\n\t\t\t: {} // if in node js\n\t);\n\n/**\n * Prism: Lightweight, robust, elegant syntax highlighting\n *\n * @license MIT <https://opensource.org/licenses/MIT>\n * @author Lea Verou <https://lea.verou.me>\n * @namespace\n * @public\n */\nvar Prism = (function (_self) {\n\n\t// Private helper vars\n\tvar lang = /(?:^|\\s)lang(?:uage)?-([\\w-]+)(?=\\s|$)/i;\n\tvar uniqueId = 0;\n\n\t// The grammar object for plaintext\n\tvar plainTextGrammar = {};\n\n\n\tvar _ = {\n\t\t/**\n\t\t * By default, Prism will attempt to highlight all code elements (by calling {@link Prism.highlightAll}) on the\n\t\t * current page after the page finished loading. This might be a problem if e.g. you wanted to asynchronously load\n\t\t * additional languages or plugins yourself.\n\t\t *\n\t\t * By setting this value to `true`, Prism will not automatically highlight all code elements on the page.\n\t\t *\n\t\t * You obviously have to change this value before the automatic highlighting started. To do this, you can add an\n\t\t * empty Prism object into the global scope before loading the Prism script like this:\n\t\t *\n\t\t * ```js\n\t\t * window.Prism = window.Prism || {};\n\t\t * Prism.manual = true;\n\t\t * // add a new <script> to load Prism's script\n\t\t * ```\n\t\t *\n\t\t * @default false\n\t\t * @type {boolean}\n\t\t * @memberof Prism\n\t\t * @public\n\t\t */\n\t\tmanual: _self.Prism && _self.Prism.manual,\n\t\t/**\n\t\t * By default, if Prism is in a web worker, it assumes that it is in a worker it created itself, so it uses\n\t\t * `addEventListener` to communicate with its parent instance. However, if you're using Prism manually in your\n\t\t * own worker, you don't want it to do this.\n\t\t *\n\t\t * By setting this value to `true`, Prism will not add its own listeners to the worker.\n\t\t *\n\t\t * You obviously have to change this value before Prism executes. To do this, you can add an\n\t\t * empty Prism object into the global scope before loading the Prism script like this:\n\t\t *\n\t\t * ```js\n\t\t * window.Prism = window.Prism || {};\n\t\t * Prism.disableWorkerMessageHandler = true;\n\t\t * // Load Prism's script\n\t\t * ```\n\t\t *\n\t\t * @default false\n\t\t * @type {boolean}\n\t\t * @memberof Prism\n\t\t * @public\n\t\t */\n\t\tdisableWorkerMessageHandler: _self.Prism && _self.Prism.disableWorkerMessageHandler,\n\n\t\t/**\n\t\t * A namespace for utility methods.\n\t\t *\n\t\t * All function in this namespace that are not explicitly marked as _public_ are for __internal use only__ and may\n\t\t * change or disappear at any time.\n\t\t *\n\t\t * @namespace\n\t\t * @memberof Prism\n\t\t */\n\t\tutil: {\n\t\t\tencode: function encode(tokens) {\n\t\t\t\tif (tokens instanceof Token) {\n\t\t\t\t\treturn new Token(tokens.type, encode(tokens.content), tokens.alias);\n\t\t\t\t} else if (Array.isArray(tokens)) {\n\t\t\t\t\treturn tokens.map(encode);\n\t\t\t\t} else {\n\t\t\t\t\treturn tokens.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/\\u00a0/g, ' ');\n\t\t\t\t}\n\t\t\t},\n\n\t\t\t/**\n\t\t\t * Returns the name of the type of the given value.\n\t\t\t *\n\t\t\t * @param {any} o\n\t\t\t * @returns {string}\n\t\t\t * @example\n\t\t\t * type(null) === 'Null'\n\t\t\t * type(undefined) === 'Undefined'\n\t\t\t * type(123) === 'Number'\n\t\t\t * type('foo') === 'String'\n\t\t\t * type(true) === 'Boolean'\n\t\t\t * type([1, 2]) === 'Array'\n\t\t\t * type({}) === 'Object'\n\t\t\t * type(String) === 'Function'\n\t\t\t * type(/abc+/) === 'RegExp'\n\t\t\t */\n\t\t\ttype: function (o) {\n\t\t\t\treturn Object.prototype.toString.call(o).slice(8, -1);\n\t\t\t},\n\n\t\t\t/**\n\t\t\t * Returns a unique number for the given object. Later calls will still return the same number.\n\t\t\t *\n\t\t\t * @param {Object} obj\n\t\t\t * @returns {number}\n\t\t\t */\n\t\t\tobjId: function (obj) {\n\t\t\t\tif (!obj['__id']) {\n\t\t\t\t\tObject.defineProperty(obj, '__id', { value: ++uniqueId });\n\t\t\t\t}\n\t\t\t\treturn obj['__id'];\n\t\t\t},\n\n\t\t\t/**\n\t\t\t * Creates a deep clone of the given object.\n\t\t\t *\n\t\t\t * The main intended use of this function is to clone language definitions.\n\t\t\t *\n\t\t\t * @param {T} o\n\t\t\t * @param {Record<number, any>} [visited]\n\t\t\t * @returns {T}\n\t\t\t * @template T\n\t\t\t */\n\t\t\tclone: function deepClone(o, visited) {\n\t\t\t\tvisited = visited || {};\n\n\t\t\t\tvar clone; var id;\n\t\t\t\tswitch (_.util.type(o)) {\n\t\t\t\t\tcase 'Object':\n\t\t\t\t\t\tid = _.util.objId(o);\n\t\t\t\t\t\tif (visited[id]) {\n\t\t\t\t\t\t\treturn visited[id];\n\t\t\t\t\t\t}\n\t\t\t\t\t\tclone = /** @type {Record<string, any>} */ ({});\n\t\t\t\t\t\tvisited[id] = clone;\n\n\t\t\t\t\t\tfor (var key in o) {\n\t\t\t\t\t\t\tif (o.hasOwnProperty(key)) {\n\t\t\t\t\t\t\t\tclone[key] = deepClone(o[key], visited);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\treturn /** @type {any} */ (clone);\n\n\t\t\t\t\tcase 'Array':\n\t\t\t\t\t\tid = _.util.objId(o);\n\t\t\t\t\t\tif (visited[id]) {\n\t\t\t\t\t\t\treturn visited[id];\n\t\t\t\t\t\t}\n\t\t\t\t\t\tclone = [];\n\t\t\t\t\t\tvisited[id] = clone;\n\n\t\t\t\t\t\t(/** @type {Array} */(/** @type {any} */(o))).forEach(function (v, i) {\n\t\t\t\t\t\t\tclone[i] = deepClone(v, visited);\n\t\t\t\t\t\t});\n\n\t\t\t\t\t\treturn /** @type {any} */ (clone);\n\n\t\t\t\t\tdefault:\n\t\t\t\t\t\treturn o;\n\t\t\t\t}\n\t\t\t},\n\n\t\t\t/**\n\t\t\t * Returns the Prism language of the given element set by a `language-xxxx` or `lang-xxxx` class.\n\t\t\t *\n\t\t\t * If no language is set for the element or the element is `null` or `undefined`, `none` will be returned.\n\t\t\t *\n\t\t\t * @param {Element} element\n\t\t\t * @returns {string}\n\t\t\t */\n\t\t\tgetLanguage: function (element) {\n\t\t\t\twhile (element) {\n\t\t\t\t\tvar m = lang.exec(element.className);\n\t\t\t\t\tif (m) {\n\t\t\t\t\t\treturn m[1].toLowerCase();\n\t\t\t\t\t}\n\t\t\t\t\telement = element.parentElement;\n\t\t\t\t}\n\t\t\t\treturn 'none';\n\t\t\t},\n\n\t\t\t/**\n\t\t\t * Sets the Prism `language-xxxx` class of the given element.\n\t\t\t *\n\t\t\t * @param {Element} element\n\t\t\t * @param {string} language\n\t\t\t * @returns {void}\n\t\t\t */\n\t\t\tsetLanguage: function (element, language) {\n\t\t\t\t// remove all `language-xxxx` classes\n\t\t\t\t// (this might leave behind a leading space)\n\t\t\t\telement.className = element.className.replace(RegExp(lang, 'gi'), '');\n\n\t\t\t\t// add the new `language-xxxx` class\n\t\t\t\t// (using `classList` will automatically clean up spaces for us)\n\t\t\t\telement.classList.add('language-' + language);\n\t\t\t},\n\n\t\t\t/**\n\t\t\t * Returns the script element that is currently executing.\n\t\t\t *\n\t\t\t * This does __not__ work for line script element.\n\t\t\t *\n\t\t\t * @returns {HTMLScriptElement | null}\n\t\t\t */\n\t\t\tcurrentScript: function () {\n\t\t\t\tif (typeof document === 'undefined') {\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t\tif ('currentScript' in document && 1 < 2 /* hack to trip TS' flow analysis */) {\n\t\t\t\t\treturn /** @type {any} */ (document.currentScript);\n\t\t\t\t}\n\n\t\t\t\t// IE11 workaround\n\t\t\t\t// we'll get the src of the current script by parsing IE11's error stack trace\n\t\t\t\t// this will not work for inline scripts\n\n\t\t\t\ttry {\n\t\t\t\t\tthrow new Error();\n\t\t\t\t} catch (err) {\n\t\t\t\t\t// Get file src url from stack. Specifically works with the format of stack traces in IE.\n\t\t\t\t\t// A stack will look like this:\n\t\t\t\t\t//\n\t\t\t\t\t// Error\n\t\t\t\t\t// at _.util.currentScript (http://localhost/components/prism-core.js:119:5)\n\t\t\t\t\t// at Global code (http://localhost/components/prism-core.js:606:1)\n\n\t\t\t\t\tvar src = (/at [^(\\r\\n]*\\((.*):[^:]+:[^:]+\\)$/i.exec(err.stack) || [])[1];\n\t\t\t\t\tif (src) {\n\t\t\t\t\t\tvar scripts = document.getElementsByTagName('script');\n\t\t\t\t\t\tfor (var i in scripts) {\n\t\t\t\t\t\t\tif (scripts[i].src == src) {\n\t\t\t\t\t\t\t\treturn scripts[i];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t},\n\n\t\t\t/**\n\t\t\t * Returns whether a given class is active for `element`.\n\t\t\t *\n\t\t\t * The class can be activated if `element` or one of its ancestors has the given class and it can be deactivated\n\t\t\t * if `element` or one of its ancestors has the negated version of the given class. The _negated version_ of the\n\t\t\t * given class is just the given class with a `no-` prefix.\n\t\t\t *\n\t\t\t * Whether the class is active is determined by the closest ancestor of `element` (where `element` itself is\n\t\t\t * closest ancestor) that has the given class or the negated version of it. If neither `element` nor any of its\n\t\t\t * ancestors have the given class or the negated version of it, then the default activation will be returned.\n\t\t\t *\n\t\t\t * In the paradoxical situation where the closest ancestor contains __both__ the given class and the negated\n\t\t\t * version of it, the class is considered active.\n\t\t\t *\n\t\t\t * @param {Element} element\n\t\t\t * @param {string} className\n\t\t\t * @param {boolean} [defaultActivation=false]\n\t\t\t * @returns {boolean}\n\t\t\t */\n\t\t\tisActive: function (element, className, defaultActivation) {\n\t\t\t\tvar no = 'no-' + className;\n\n\t\t\t\twhile (element) {\n\t\t\t\t\tvar classList = element.classList;\n\t\t\t\t\tif (classList.contains(className)) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t\tif (classList.contains(no)) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\telement = element.parentElement;\n\t\t\t\t}\n\t\t\t\treturn !!defaultActivation;\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * This namespace contains all currently loaded languages and the some helper functions to create and modify languages.\n\t\t *\n\t\t * @namespace\n\t\t * @memberof Prism\n\t\t * @public\n\t\t */\n\t\tlanguages: {\n\t\t\t/**\n\t\t\t * The grammar for plain, unformatted text.\n\t\t\t */\n\t\t\tplain: plainTextGrammar,\n\t\t\tplaintext: plainTextGrammar,\n\t\t\ttext: plainTextGrammar,\n\t\t\ttxt: plainTextGrammar,\n\n\t\t\t/**\n\t\t\t * Creates a deep copy of the language with the given id and appends the given tokens.\n\t\t\t *\n\t\t\t * If a token in `redef` also appears in the copied language, then the existing token in the copied language\n\t\t\t * will be overwritten at its original position.\n\t\t\t *\n\t\t\t * ## Best practices\n\t\t\t *\n\t\t\t * Since the position of overwriting tokens (token in `redef` that overwrite tokens in the copied language)\n\t\t\t * doesn't matter, they can technically be in any order. However, this can be confusing to others that trying to\n\t\t\t * understand the language definition because, normally, the order of tokens matters in Prism grammars.\n\t\t\t *\n\t\t\t * Therefore, it is encouraged to order overwriting tokens according to the positions of the overwritten tokens.\n\t\t\t * Furthermore, all non-overwriting tokens should be placed after the overwriting ones.\n\t\t\t *\n\t\t\t * @param {string} id The id of the language to extend. This has to be a key in `Prism.languages`.\n\t\t\t * @param {Grammar} redef The new tokens to append.\n\t\t\t * @returns {Grammar} The new language created.\n\t\t\t * @public\n\t\t\t * @example\n\t\t\t * Prism.languages['css-with-colors'] = Prism.languages.extend('css', {\n\t\t\t * // Prism.languages.css already has a 'comment' token, so this token will overwrite CSS' 'comment' token\n\t\t\t * // at its original position\n\t\t\t * 'comment': { ... },\n\t\t\t * // CSS doesn't have a 'color' token, so this token will be appended\n\t\t\t * 'color': /\\b(?:red|green|blue)\\b/\n\t\t\t * });\n\t\t\t */\n\t\t\textend: function (id, redef) {\n\t\t\t\tvar lang = _.util.clone(_.languages[id]);\n\n\t\t\t\tfor (var key in redef) {\n\t\t\t\t\tlang[key] = redef[key];\n\t\t\t\t}\n\n\t\t\t\treturn lang;\n\t\t\t},\n\n\t\t\t/**\n\t\t\t * Inserts tokens _before_ another token in a language definition or any other grammar.\n\t\t\t *\n\t\t\t * ## Usage\n\t\t\t *\n\t\t\t * This helper method makes it easy to modify existing languages. For example, the CSS language definition\n\t\t\t * not only defines CSS highlighting for CSS documents, but also needs to define highlighting for CSS embedded\n\t\t\t * in HTML through `<style>` elements. To do this, it needs to modify `Prism.languages.markup` and add the\n\t\t\t * appropriate tokens. However, `Prism.languages.markup` is a regular JavaScript object literal, so if you do\n\t\t\t * this:\n\t\t\t *\n\t\t\t * ```js\n\t\t\t * Prism.languages.markup.style = {\n\t\t\t * // token\n\t\t\t * };\n\t\t\t * ```\n\t\t\t *\n\t\t\t * then the `style` token will be added (and processed) at the end. `insertBefore` allows you to insert tokens\n\t\t\t * before existing tokens. For the CSS example above, you would use it like this:\n\t\t\t *\n\t\t\t * ```js\n\t\t\t * Prism.languages.insertBefore('markup', 'cdata', {\n\t\t\t * 'style': {\n\t\t\t * // token\n\t\t\t * }\n\t\t\t * });\n\t\t\t * ```\n\t\t\t *\n\t\t\t * ## Special cases\n\t\t\t *\n\t\t\t * If the grammars of `inside` and `insert` have tokens with the same name, the tokens in `inside`'s grammar\n\t\t\t * will be ignored.\n\t\t\t *\n\t\t\t * This behavior can be used to insert tokens after `before`:\n\t\t\t *\n\t\t\t * ```js\n\t\t\t * Prism.languages.insertBefore('markup', 'comment', {\n\t\t\t * 'comment': Prism.languages.markup.comment,\n\t\t\t * // tokens after 'comment'\n\t\t\t * });\n\t\t\t * ```\n\t\t\t *\n\t\t\t * ## Limitations\n\t\t\t *\n\t\t\t * The main problem `insertBefore` has to solve is iteration order. Since ES2015, the iteration order for object\n\t\t\t * properties is guaranteed to be the insertion order (except for integer keys) but some browsers behave\n\t\t\t * differently when keys are deleted and re-inserted. So `insertBefore` can't be implemented by temporarily\n\t\t\t * deleting properties which is necessary to insert at arbitrary positions.\n\t\t\t *\n\t\t\t * To solve this problem, `insertBefore` doesn't actually insert the given tokens into the target object.\n\t\t\t * Instead, it will create a new object and replace all references to the target object with the new one. This\n\t\t\t * can be done without temporarily deleting properties, so the iteration order is well-defined.\n\t\t\t *\n\t\t\t * However, only references that can be reached from `Prism.languages` or `insert` will be replaced. I.e. if\n\t\t\t * you hold the target object in a variable, then the value of the variable will not change.\n\t\t\t *\n\t\t\t * ```js\n\t\t\t * var oldMarkup = Prism.languages.markup;\n\t\t\t * var newMarkup = Prism.languages.insertBefore('markup', 'comment', { ... });\n\t\t\t *\n\t\t\t * assert(oldMarkup !== Prism.languages.markup);\n\t\t\t * assert(newMarkup === Prism.languages.markup);\n\t\t\t * ```\n\t\t\t *\n\t\t\t * @param {string} inside The property of `root` (e.g. a language id in `Prism.languages`) that contains the\n\t\t\t * object to be modified.\n\t\t\t * @param {string} before The key to insert before.\n\t\t\t * @param {Grammar} insert An object containing the key-value pairs to be inserted.\n\t\t\t * @param {Object<string, any>} [root] The object containing `inside`, i.e. the object that contains the\n\t\t\t * object to be modified.\n\t\t\t *\n\t\t\t * Defaults to `Prism.languages`.\n\t\t\t * @returns {Grammar} The new grammar object.\n\t\t\t * @public\n\t\t\t */\n\t\t\tinsertBefore: function (inside, before, insert, root) {\n\t\t\t\troot = root || /** @type {any} */ (_.languages);\n\t\t\t\tvar grammar = root[inside];\n\t\t\t\t/** @type {Grammar} */\n\t\t\t\tvar ret = {};\n\n\t\t\t\tfor (var token in grammar) {\n\t\t\t\t\tif (grammar.hasOwnProperty(token)) {\n\n\t\t\t\t\t\tif (token == before) {\n\t\t\t\t\t\t\tfor (var newToken in insert) {\n\t\t\t\t\t\t\t\tif (insert.hasOwnProperty(newToken)) {\n\t\t\t\t\t\t\t\t\tret[newToken] = insert[newToken];\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Do not insert token which also occur in insert. See #1525\n\t\t\t\t\t\tif (!insert.hasOwnProperty(token)) {\n\t\t\t\t\t\t\tret[token] = grammar[token];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tvar old = root[inside];\n\t\t\t\troot[inside] = ret;\n\n\t\t\t\t// Update references in other language definitions\n\t\t\t\t_.languages.DFS(_.languages, function (key, value) {\n\t\t\t\t\tif (value === old && key != inside) {\n\t\t\t\t\t\tthis[key] = ret;\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\treturn ret;\n\t\t\t},\n\n\t\t\t// Traverse a language definition with Depth First Search\n\t\t\tDFS: function DFS(o, callback, type, visited) {\n\t\t\t\tvisited = visited || {};\n\n\t\t\t\tvar objId = _.util.objId;\n\n\t\t\t\tfor (var i in o) {\n\t\t\t\t\tif (o.hasOwnProperty(i)) {\n\t\t\t\t\t\tcallback.call(o, i, o[i], type || i);\n\n\t\t\t\t\t\tvar property = o[i];\n\t\t\t\t\t\tvar propertyType = _.util.type(property);\n\n\t\t\t\t\t\tif (propertyType === 'Object' && !visited[objId(property)]) {\n\t\t\t\t\t\t\tvisited[objId(property)] = true;\n\t\t\t\t\t\t\tDFS(property, callback, null, visited);\n\t\t\t\t\t\t} else if (propertyType === 'Array' && !visited[objId(property)]) {\n\t\t\t\t\t\t\tvisited[objId(property)] = true;\n\t\t\t\t\t\t\tDFS(property, callback, i, visited);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\n\t\tplugins: {},\n\n\t\t/**\n\t\t * This is the most high-level function in Prisms API.\n\t\t * It fetches all the elements that have a `.language-xxxx` class and then calls {@link Prism.highlightElement} on\n\t\t * each one of them.\n\t\t *\n\t\t * This is equivalent to `Prism.highlightAllUnder(document, async, callback)`.\n\t\t *\n\t\t * @param {boolean} [async=false] Same as in {@link Prism.highlightAllUnder}.\n\t\t * @param {HighlightCallback} [callback] Same as in {@link Prism.highlightAllUnder}.\n\t\t * @memberof Prism\n\t\t * @public\n\t\t */\n\t\thighlightAll: function (async, callback) {\n\t\t\t_.highlightAllUnder(document, async, callback);\n\t\t},\n\n\t\t/**\n\t\t * Fetches all the descendants of `container` that have a `.language-xxxx` class and then calls\n\t\t * {@link Prism.highlightElement} on each one of them.\n\t\t *\n\t\t * The following hooks will be run:\n\t\t * 1. `before-highlightall`\n\t\t * 2. `before-all-elements-highlight`\n\t\t * 3. All hooks of {@link Prism.highlightElement} for each element.\n\t\t *\n\t\t * @param {ParentNode} container The root element, whose descendants that have a `.language-xxxx` class will be highlighted.\n\t\t * @param {boolean} [async=false] Whether each element is to be highlighted asynchronously using Web Workers.\n\t\t * @param {HighlightCallback} [callback] An optional callback to be invoked on each element after its highlighting is done.\n\t\t * @memberof Prism\n\t\t * @public\n\t\t */\n\t\thighlightAllUnder: function (container, async, callback) {\n\t\t\tvar env = {\n\t\t\t\tcallback: callback,\n\t\t\t\tcontainer: container,\n\t\t\t\tselector: 'code[class*=\"language-\"], [class*=\"language-\"] code, code[class*=\"lang-\"], [class*=\"lang-\"] code'\n\t\t\t};\n\n\t\t\t_.hooks.run('before-highlightall', env);\n\n\t\t\tenv.elements = Array.prototype.slice.apply(env.container.querySelectorAll(env.selector));\n\n\t\t\t_.hooks.run('before-all-elements-highlight', env);\n\n\t\t\tfor (var i = 0, element; (element = env.elements[i++]);) {\n\t\t\t\t_.highlightElement(element, async === true, env.callback);\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * Highlights the code inside a single element.\n\t\t *\n\t\t * The following hooks will be run:\n\t\t * 1. `before-sanity-check`\n\t\t * 2. `before-highlight`\n\t\t * 3. All hooks of {@link Prism.highlight}. These hooks will be run by an asynchronous worker if `async` is `true`.\n\t\t * 4. `before-insert`\n\t\t * 5. `after-highlight`\n\t\t * 6. `complete`\n\t\t *\n\t\t * Some the above hooks will be skipped if the element doesn't contain any text or there is no grammar loaded for\n\t\t * the element's language.\n\t\t *\n\t\t * @param {Element} element The element containing the code.\n\t\t * It must have a class of `language-xxxx` to be processed, where `xxxx` is a valid language identifier.\n\t\t * @param {boolean} [async=false] Whether the element is to be highlighted asynchronously using Web Workers\n\t\t * to improve performance and avoid blocking the UI when highlighting very large chunks of code. This option is\n\t\t * [disabled by default](https://prismjs.com/faq.html#why-is-asynchronous-highlighting-disabled-by-default).\n\t\t *\n\t\t * Note: All language definitions required to highlight the code must be included in the main `prism.js` file for\n\t\t * asynchronous highlighting to work. You can build your own bundle on the\n\t\t * [Download page](https://prismjs.com/download.html).\n\t\t * @param {HighlightCallback} [callback] An optional callback to be invoked after the highlighting is done.\n\t\t * Mostly useful when `async` is `true`, since in that case, the highlighting is done asynchronously.\n\t\t * @memberof Prism\n\t\t * @public\n\t\t */\n\t\thighlightElement: function (element, async, callback) {\n\t\t\t// Find language\n\t\t\tvar language = _.util.getLanguage(element);\n\t\t\tvar grammar = _.languages[language];\n\n\t\t\t// Set language on the element, if not present\n\t\t\t_.util.setLanguage(element, language);\n\n\t\t\t// Set language on the parent, for styling\n\t\t\tvar parent = element.parentElement;\n\t\t\tif (parent && parent.nodeName.toLowerCase() === 'pre') {\n\t\t\t\t_.util.setLanguage(parent, language);\n\t\t\t}\n\n\t\t\tvar code = element.textContent;\n\n\t\t\tvar env = {\n\t\t\t\telement: element,\n\t\t\t\tlanguage: language,\n\t\t\t\tgrammar: grammar,\n\t\t\t\tcode: code\n\t\t\t};\n\n\t\t\tfunction insertHighlightedCode(highlightedCode) {\n\t\t\t\tenv.highlightedCode = highlightedCode;\n\n\t\t\t\t_.hooks.run('before-insert', env);\n\n\t\t\t\tenv.element.innerHTML = env.highlightedCode;\n\n\t\t\t\t_.hooks.run('after-highlight', env);\n\t\t\t\t_.hooks.run('complete', env);\n\t\t\t\tcallback && callback.call(env.element);\n\t\t\t}\n\n\t\t\t_.hooks.run('before-sanity-check', env);\n\n\t\t\t// plugins may change/add the parent/element\n\t\t\tparent = env.element.parentElement;\n\t\t\tif (parent && parent.nodeName.toLowerCase() === 'pre' && !parent.hasAttribute('tabindex')) {\n\t\t\t\tparent.setAttribute('tabindex', '0');\n\t\t\t}\n\n\t\t\tif (!env.code) {\n\t\t\t\t_.hooks.run('complete', env);\n\t\t\t\tcallback && callback.call(env.element);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t_.hooks.run('before-highlight', env);\n\n\t\t\tif (!env.grammar) {\n\t\t\t\tinsertHighlightedCode(_.util.encode(env.code));\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (async && _self.Worker) {\n\t\t\t\tvar worker = new Worker(_.filename);\n\n\t\t\t\tworker.onmessage = function (evt) {\n\t\t\t\t\tinsertHighlightedCode(evt.data);\n\t\t\t\t};\n\n\t\t\t\tworker.postMessage(JSON.stringify({\n\t\t\t\t\tlanguage: env.language,\n\t\t\t\t\tcode: env.code,\n\t\t\t\t\timmediateClose: true\n\t\t\t\t}));\n\t\t\t} else {\n\t\t\t\tinsertHighlightedCode(_.highlight(env.code, env.grammar, env.language));\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * Low-level function, only use if you know what youre doing. It accepts a string of text as input\n\t\t * and the language definitions to use, and returns a string with the HTML produced.\n\t\t *\n\t\t * The following hooks will be run:\n\t\t * 1. `before-tokenize`\n\t\t * 2. `after-tokenize`\n\t\t * 3. `wrap`: On each {@link Token}.\n\t\t *\n\t\t * @param {string} text A string with the code to be highlighted.\n\t\t * @param {Grammar} grammar An object containing the tokens to use.\n\t\t *\n\t\t * Usually a language definition like `Prism.languages.markup`.\n\t\t * @param {string} language The name of the language definition passed to `grammar`.\n\t\t * @returns {string} The highlighted HTML.\n\t\t * @memberof Prism\n\t\t * @public\n\t\t * @example\n\t\t * Prism.highlight('var foo = true;', Prism.languages.javascript, 'javascript');\n\t\t */\n\t\thighlight: function (text, grammar, language) {\n\t\t\tvar env = {\n\t\t\t\tcode: text,\n\t\t\t\tgrammar: grammar,\n\t\t\t\tlanguage: language\n\t\t\t};\n\t\t\t_.hooks.run('before-tokenize', env);\n\t\t\tif (!env.grammar) {\n\t\t\t\tthrow new Error('The language \"' + env.language + '\" has no grammar.');\n\t\t\t}\n\t\t\tenv.tokens = _.tokenize(env.code, env.grammar);\n\t\t\t_.hooks.run('after-tokenize', env);\n\t\t\treturn Token.stringify(_.util.encode(env.tokens), env.language);\n\t\t},\n\n\t\t/**\n\t\t * This is the heart of Prism, and the most low-level function you can use. It accepts a string of text as input\n\t\t * and the language definitions to use, and returns an array with the tokenized code.\n\t\t *\n\t\t * When the language definition includes nested tokens, the function is called recursively on each of these tokens.\n\t\t *\n\t\t * This method could be useful in other contexts as well, as a very crude parser.\n\t\t *\n\t\t * @param {string} text A string with the code to be highlighted.\n\t\t * @param {Grammar} grammar An object containing the tokens to use.\n\t\t *\n\t\t * Usually a language definition like `Prism.languages.markup`.\n\t\t * @returns {TokenStream} An array of strings and tokens, a token stream.\n\t\t * @memberof Prism\n\t\t * @public\n\t\t * @example\n\t\t * let code = `var foo = 0;`;\n\t\t * let tokens = Prism.tokenize(code, Prism.languages.javascript);\n\t\t * tokens.forEach(token => {\n\t\t * if (token instanceof Prism.Token && token.type === 'number') {\n\t\t * console.log(`Found numeric literal: ${token.content}`);\n\t\t * }\n\t\t * });\n\t\t */\n\t\ttokenize: function (text, grammar) {\n\t\t\tvar rest = grammar.rest;\n\t\t\tif (rest) {\n\t\t\t\tfor (var token in rest) {\n\t\t\t\t\tgrammar[token] = rest[token];\n\t\t\t\t}\n\n\t\t\t\tdelete grammar.rest;\n\t\t\t}\n\n\t\t\tvar tokenList = new LinkedList();\n\t\t\taddAfter(tokenList, tokenList.head, text);\n\n\t\t\tmatchGrammar(text, tokenList, grammar, tokenList.head, 0);\n\n\t\t\treturn toArray(tokenList);\n\t\t},\n\n\t\t/**\n\t\t * @namespace\n\t\t * @memberof Prism\n\t\t * @public\n\t\t */\n\t\thooks: {\n\t\t\tall: {},\n\n\t\t\t/**\n\t\t\t * Adds the given callback to the list of callbacks for the given hook.\n\t\t\t *\n\t\t\t * The callback will be invoked when the hook it is registered for is run.\n\t\t\t * Hooks are usually directly run by a highlight function but you can also run hooks yourself.\n\t\t\t *\n\t\t\t * One callback function can be registered to multiple hooks and the same hook multiple times.\n\t\t\t *\n\t\t\t * @param {string} name The name of the hook.\n\t\t\t * @param {HookCallback} callback The callback function which is given environment variables.\n\t\t\t * @public\n\t\t\t */\n\t\t\tadd: function (name, callback) {\n\t\t\t\tvar hooks = _.hooks.all;\n\n\t\t\t\thooks[name] = hooks[name] || [];\n\n\t\t\t\thooks[name].push(callback);\n\t\t\t},\n\n\t\t\t/**\n\t\t\t * Runs a hook invoking all registered callbacks with the given environment variables.\n\t\t\t *\n\t\t\t * Callbacks will be invoked synchronously and in the order in which they were registered.\n\t\t\t *\n\t\t\t * @param {string} name The name of the hook.\n\t\t\t * @param {Object<string, any>} env The environment variables of the hook passed to all callbacks registered.\n\t\t\t * @public\n\t\t\t */\n\t\t\trun: function (name, env) {\n\t\t\t\tvar callbacks = _.hooks.all[name];\n\n\t\t\t\tif (!callbacks || !callbacks.length) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tfor (var i = 0, callback; (callback = callbacks[i++]);) {\n\t\t\t\t\tcallback(env);\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\n\t\tToken: Token\n\t};\n\t_self.Prism = _;\n\n\n\t// Typescript note:\n\t// The following can be used to import the Token type in JSDoc:\n\t//\n\t// @typedef {InstanceType<import(\"./prism-core\")[\"Token\"]>} Token\n\n\t/**\n\t * Creates a new token.\n\t *\n\t * @param {string} type See {@link Token#type type}\n\t * @param {string | TokenStream} content See {@link Token#content content}\n\t * @param {string|string[]} [alias] The alias(es) of the token.\n\t * @param {string} [matchedStr=\"\"] A copy of the full string this token was created from.\n\t * @class\n\t * @global\n\t * @public\n\t */\n\tfunction Token(type, content, alias, matchedStr) {\n\t\t/**\n\t\t * The type of the token.\n\t\t *\n\t\t * This is usually the key of a pattern in a {@link Grammar}.\n\t\t *\n\t\t * @type {string}\n\t\t * @see GrammarToken\n\t\t * @public\n\t\t */\n\t\tthis.type = type;\n\t\t/**\n\t\t * The strings or tokens contained by this token.\n\t\t *\n\t\t * This will be a token stream if the pattern matched also defined an `inside` grammar.\n\t\t *\n\t\t * @type {string | TokenStream}\n\t\t * @public\n\t\t */\n\t\tthis.content = content;\n\t\t/**\n\t\t * The alias(es) of the token.\n\t\t *\n\t\t * @type {string|string[]}\n\t\t * @see GrammarToken\n\t\t * @public\n\t\t */\n\t\tthis.alias = alias;\n\t\t// Copy of the full string this token was created from\n\t\tthis.length = (matchedStr || '').length | 0;\n\t}\n\n\t/**\n\t * A token stream is an array of strings and {@link Token Token} objects.\n\t *\n\t * Token streams have to fulfill a few properties that are assumed by most functions (mostly internal ones) that process\n\t * them.\n\t *\n\t * 1. No adjacent strings.\n\t * 2. No empty strings.\n\t *\n\t * The only exception here is the token stream that only contains the empty string and nothing else.\n\t *\n\t * @typedef {Array<string | Token>} TokenStream\n\t * @global\n\t * @public\n\t */\n\n\t/**\n\t * Converts the given token or token stream to an HTML representation.\n\t *\n\t * The following hooks will be run:\n\t * 1. `wrap`: On each {@link Token}.\n\t *\n\t * @param {string | Token | TokenStream} o The token or token stream to be converted.\n\t * @param {string} language The name of current language.\n\t * @returns {string} The HTML representation of the token or token stream.\n\t * @memberof Token\n\t * @static\n\t */\n\tToken.stringify = function stringify(o, language) {\n\t\tif (typeof o == 'string') {\n\t\t\treturn o;\n\t\t}\n\t\tif (Array.isArray(o)) {\n\t\t\tvar s = '';\n\t\t\to.forEach(function (e) {\n\t\t\t\ts += stringify(e, language);\n\t\t\t});\n\t\t\treturn s;\n\t\t}\n\n\t\tvar env = {\n\t\t\ttype: o.type,\n\t\t\tcontent: stringify(o.content, language),\n\t\t\ttag: 'span',\n\t\t\tclasses: ['token', o.type],\n\t\t\tattributes: {},\n\t\t\tlanguage: language\n\t\t};\n\n\t\tvar aliases = o.alias;\n\t\tif (aliases) {\n\t\t\tif (Array.isArray(aliases)) {\n\t\t\t\tArray.prototype.push.apply(env.classes, aliases);\n\t\t\t} else {\n\t\t\t\tenv.classes.push(aliases);\n\t\t\t}\n\t\t}\n\n\t\t_.hooks.run('wrap', env);\n\n\t\tvar attributes = '';\n\t\tfor (var name in env.attributes) {\n\t\t\tattributes += ' ' + name + '=\"' + (env.attributes[name] || '').replace(/\"/g, '&quot;') + '\"';\n\t\t}\n\n\t\treturn '<' + env.tag + ' class=\"' + env.classes.join(' ') + '\"' + attributes + '>' + env.content + '</' + env.tag + '>';\n\t};\n\n\t/**\n\t * @param {RegExp} pattern\n\t * @param {number} pos\n\t * @param {string} text\n\t * @param {boolean} lookbehind\n\t * @returns {RegExpExecArray | null}\n\t */\n\tfunction matchPattern(pattern, pos, text, lookbehind) {\n\t\tpattern.lastIndex = pos;\n\t\tvar match = pattern.exec(text);\n\t\tif (match && lookbehind && match[1]) {\n\t\t\t// change the match to remove the text matched by the Prism lookbehind group\n\t\t\tvar lookbehindLength = match[1].length;\n\t\t\tmatch.index += lookbehindLength;\n\t\t\tmatch[0] = match[0].slice(lookbehindLength);\n\t\t}\n\t\treturn match;\n\t}\n\n\t/**\n\t * @param {string} text\n\t * @param {LinkedList<string | Token>} tokenList\n\t * @param {any} grammar\n\t * @param {LinkedListNode<string | Token>} startNode\n\t * @param {number} startPos\n\t * @param {RematchOptions} [rematch]\n\t * @returns {void}\n\t * @private\n\t *\n\t * @typedef RematchOptions\n\t * @property {string} cause\n\t * @property {number} reach\n\t */\n\tfunction matchGrammar(text, tokenList, grammar, startNode, startPos, rematch) {\n\t\tfor (var token in grammar) {\n\t\t\tif (!grammar.hasOwnProperty(token) || !grammar[token]) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tvar patterns = grammar[token];\n\t\t\tpatterns = Array.isArray(patterns) ? patterns : [patterns];\n\n\t\t\tfor (var j = 0; j < patterns.length; ++j) {\n\t\t\t\tif (rematch && rematch.cause == token + ',' + j) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tvar patternObj = patterns[j];\n\t\t\t\tvar inside = patternObj.inside;\n\t\t\t\tvar lookbehind = !!patternObj.lookbehind;\n\t\t\t\tvar greedy = !!patternObj.greedy;\n\t\t\t\tvar alias = patternObj.alias;\n\n\t\t\t\tif (greedy && !patternObj.pattern.global) {\n\t\t\t\t\t// Without the global flag, lastIndex won't work\n\t\t\t\t\tvar flags = patternObj.pattern.toString().match(/[imsuy]*$/)[0];\n\t\t\t\t\tpatternObj.pattern = RegExp(patternObj.pattern.source, flags + 'g');\n\t\t\t\t}\n\n\t\t\t\t/** @type {RegExp} */\n\t\t\t\tvar pattern = patternObj.pattern || patternObj;\n\n\t\t\t\tfor ( // iterate the token list and keep track of the current token/string position\n\t\t\t\t\tvar currentNode = startNode.next, pos = startPos;\n\t\t\t\t\tcurrentNode !== tokenList.tail;\n\t\t\t\t\tpos += currentNode.value.length, currentNode = currentNode.next\n\t\t\t\t) {\n\n\t\t\t\t\tif (rematch && pos >= rematch.reach) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t\tvar str = currentNode.value;\n\n\t\t\t\t\tif (tokenList.length > text.length) {\n\t\t\t\t\t\t// Something went terribly wrong, ABORT, ABORT!\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (str instanceof Token) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\tvar removeCount = 1; // this is the to parameter of removeBetween\n\t\t\t\t\tvar match;\n\n\t\t\t\t\tif (greedy) {\n\t\t\t\t\t\tmatch = matchPattern(pattern, pos, text, lookbehind);\n\t\t\t\t\t\tif (!match || match.index >= text.length) {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tvar from = match.index;\n\t\t\t\t\t\tvar to = match.index + match[0].length;\n\t\t\t\t\t\tvar p = pos;\n\n\t\t\t\t\t\t// find the node that contains the match\n\t\t\t\t\t\tp += currentNode.value.length;\n\t\t\t\t\t\twhile (from >= p) {\n\t\t\t\t\t\t\tcurrentNode = currentNode.next;\n\t\t\t\t\t\t\tp += currentNode.value.length;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// adjust pos (and p)\n\t\t\t\t\t\tp -= currentNode.value.length;\n\t\t\t\t\t\tpos = p;\n\n\t\t\t\t\t\t// the current node is a Token, then the match starts inside another Token, which is invalid\n\t\t\t\t\t\tif (currentNode.value instanceof Token) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// find the last node which is affected by this match\n\t\t\t\t\t\tfor (\n\t\t\t\t\t\t\tvar k = currentNode;\n\t\t\t\t\t\t\tk !== tokenList.tail && (p < to || typeof k.value === 'string');\n\t\t\t\t\t\t\tk = k.next\n\t\t\t\t\t\t) {\n\t\t\t\t\t\t\tremoveCount++;\n\t\t\t\t\t\t\tp += k.value.length;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tremoveCount--;\n\n\t\t\t\t\t\t// replace with the new match\n\t\t\t\t\t\tstr = text.slice(pos, p);\n\t\t\t\t\t\tmatch.index -= pos;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tmatch = matchPattern(pattern, 0, str, lookbehind);\n\t\t\t\t\t\tif (!match) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// eslint-disable-next-line no-redeclare\n\t\t\t\t\tvar from = match.index;\n\t\t\t\t\tvar matchStr = match[0];\n\t\t\t\t\tvar before = str.slice(0, from);\n\t\t\t\t\tvar after = str.slice(from + matchStr.length);\n\n\t\t\t\t\tvar reach = pos + str.length;\n\t\t\t\t\tif (rematch && reach > rematch.reach) {\n\t\t\t\t\t\trematch.reach = reach;\n\t\t\t\t\t}\n\n\t\t\t\t\tvar removeFrom = currentNode.prev;\n\n\t\t\t\t\tif (before) {\n\t\t\t\t\t\tremoveFrom = addAfter(tokenList, removeFrom, before);\n\t\t\t\t\t\tpos += before.length;\n\t\t\t\t\t}\n\n\t\t\t\t\tremoveRange(tokenList, removeFrom, removeCount);\n\n\t\t\t\t\tvar wrapped = new Token(token, inside ? _.tokenize(matchStr, inside) : matchStr, alias, matchStr);\n\t\t\t\t\tcurrentNode = addAfter(tokenList, removeFrom, wrapped);\n\n\t\t\t\t\tif (after) {\n\t\t\t\t\t\taddAfter(tokenList, currentNode, after);\n\t\t\t\t\t}\n\n\t\t\t\t\tif (removeCount > 1) {\n\t\t\t\t\t\t// at least one Token object was removed, so we have to do some rematching\n\t\t\t\t\t\t// this can only happen if the current pattern is greedy\n\n\t\t\t\t\t\t/** @type {RematchOptions} */\n\t\t\t\t\t\tvar nestedRematch = {\n\t\t\t\t\t\t\tcause: token + ',' + j,\n\t\t\t\t\t\t\treach: reach\n\t\t\t\t\t\t};\n\t\t\t\t\t\tmatchGrammar(text, tokenList, grammar, currentNode.prev, pos, nestedRematch);\n\n\t\t\t\t\t\t// the reach might have been extended because of the rematching\n\t\t\t\t\t\tif (rematch && nestedRematch.reach > rematch.reach) {\n\t\t\t\t\t\t\trematch.reach = nestedRematch.reach;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * @typedef LinkedListNode\n\t * @property {T} value\n\t * @property {LinkedListNode<T> | null} prev The previous node.\n\t * @property {LinkedListNode<T> | null} next The next node.\n\t * @template T\n\t * @private\n\t */\n\n\t/**\n\t * @template T\n\t * @private\n\t */\n\tfunction LinkedList() {\n\t\t/** @type {LinkedListNode<T>} */\n\t\tvar head = { value: null, prev: null, next: null };\n\t\t/** @type {LinkedListNode<T>} */\n\t\tvar tail = { value: null, prev: head, next: null };\n\t\thead.next = tail;\n\n\t\t/** @type {LinkedListNode<T>} */\n\t\tthis.head = head;\n\t\t/** @type {LinkedListNode<T>} */\n\t\tthis.tail = tail;\n\t\tthis.length = 0;\n\t}\n\n\t/**\n\t * Adds a new node with the given value to the list.\n\t *\n\t * @param {LinkedList<T>} list\n\t * @param {LinkedListNode<T>} node\n\t * @param {T} value\n\t * @returns {LinkedListNode<T>} The added node.\n\t * @template T\n\t */\n\tfunction addAfter(list, node, value) {\n\t\t// assumes that node != list.tail && values.length >= 0\n\t\tvar next = node.next;\n\n\t\tvar newNode = { value: value, prev: node, next: next };\n\t\tnode.next = newNode;\n\t\tnext.prev = newNode;\n\t\tlist.length++;\n\n\t\treturn newNode;\n\t}\n\t/**\n\t * Removes `count` nodes after the given node. The given node will not be removed.\n\t *\n\t * @param {LinkedList<T>} list\n\t * @param {LinkedListNode<T>} node\n\t * @param {number} count\n\t * @template T\n\t */\n\tfunction removeRange(list, node, count) {\n\t\tvar next = node.next;\n\t\tfor (var i = 0; i < count && next !== list.tail; i++) {\n\t\t\tnext = next.next;\n\t\t}\n\t\tnode.next = next;\n\t\tnext.prev = node;\n\t\tlist.length -= i;\n\t}\n\t/**\n\t * @param {LinkedList<T>} list\n\t * @returns {T[]}\n\t * @template T\n\t */\n\tfunction toArray(list) {\n\t\tvar array = [];\n\t\tvar node = list.head.next;\n\t\twhile (node !== list.tail) {\n\t\t\tarray.push(node.value);\n\t\t\tnode = node.next;\n\t\t}\n\t\treturn array;\n\t}\n\n\n\tif (!_self.document) {\n\t\tif (!_self.addEventListener) {\n\t\t\t// in Node.js\n\t\t\treturn _;\n\t\t}\n\n\t\tif (!_.disableWorkerMessageHandler) {\n\t\t\t// In worker\n\t\t\t_self.addEventListener('message', function (evt) {\n\t\t\t\tvar message = JSON.parse(evt.data);\n\t\t\t\tvar lang = message.language;\n\t\t\t\tvar code = message.code;\n\t\t\t\tvar immediateClose = message.immediateClose;\n\n\t\t\t\t_self.postMessage(_.highlight(code, _.languages[lang], lang));\n\t\t\t\tif (immediateClose) {\n\t\t\t\t\t_self.close();\n\t\t\t\t}\n\t\t\t}, false);\n\t\t}\n\n\t\treturn _;\n\t}\n\n\t// Get current script and highlight\n\tvar script = _.util.currentScript();\n\n\tif (script) {\n\t\t_.filename = script.src;\n\n\t\tif (script.hasAttribute('data-manual')) {\n\t\t\t_.manual = true;\n\t\t}\n\t}\n\n\tfunction highlightAutomaticallyCallback() {\n\t\tif (!_.manual) {\n\t\t\t_.highlightAll();\n\t\t}\n\t}\n\n\tif (!_.manual) {\n\t\t// If the document state is \"loading\", then we'll use DOMContentLoaded.\n\t\t// If the document state is \"interactive\" and the prism.js script is deferred, then we'll also use the\n\t\t// DOMContentLoaded event because there might be some plugins or languages which have also been deferred and they\n\t\t// might take longer one animation frame to execute which can create a race condition where only some plugins have\n\t\t// been loaded when Prism.highlightAll() is executed, depending on how fast resources are loaded.\n\t\t// See https://github.com/PrismJS/prism/issues/2102\n\t\tvar readyState = document.readyState;\n\t\tif (readyState === 'loading' || readyState === 'interactive' && script && script.defer) {\n\t\t\tdocument.addEventListener('DOMContentLoaded', highlightAutomaticallyCallback);\n\t\t} else {\n\t\t\tif (window.requestAnimationFrame) {\n\t\t\t\twindow.requestAnimationFrame(highlightAutomaticallyCallback);\n\t\t\t} else {\n\t\t\t\twindow.setTimeout(highlightAutomaticallyCallback, 16);\n\t\t\t}\n\t\t}\n\t}\n\n\treturn _;\n\n}(_self));\n\nif (typeof module !== 'undefined' && module.exports) {\n\tmodule.exports = Prism;\n}\n\n// hack for components to work correctly in node.js\nif (typeof global !== 'undefined') {\n\tglobal.Prism = Prism;\n}\n\n// some additional documentation/types\n\n/**\n * The expansion of a simple `RegExp` literal to support additional properties.\n *\n * @typedef GrammarToken\n * @property {RegExp} pattern The regular expression of the token.\n * @property {boolean} [lookbehind=false] If `true`, then the first capturing group of `pattern` will (effectively)\n * behave as a lookbehind group meaning that the captured text will not be part of the matched text of the new token.\n * @property {boolean} [greedy=false] Whether the token is greedy.\n * @property {string|string[]} [alias] An optional alias or list of aliases.\n * @property {Grammar} [inside] The nested grammar of this token.\n *\n * The `inside` grammar will be used to tokenize the text value of each token of this kind.\n *\n * This can be used to make nested and even recursive language definitions.\n *\n * Note: This can cause infinite recursion. Be careful when you embed different languages or even the same language into\n * each another.\n * @global\n * @public\n */\n\n/**\n * @typedef Grammar\n * @type {Object<string, RegExp | GrammarToken | Array<RegExp | GrammarToken>>}\n * @property {Grammar} [rest] An optional grammar object that will be appended to this grammar.\n * @global\n * @public\n */\n\n/**\n * A function which will invoked after an element was successfully highlighted.\n *\n * @callback HighlightCallback\n * @param {Element} element The element successfully highlighted.\n * @returns {void}\n * @global\n * @public\n */\n\n/**\n * @callback HookCallback\n * @param {Object<string, any>} env The environment variables of the hook.\n * @returns {void}\n * @global\n * @public\n */\n","Prism.languages.markup = {\n\t'comment': {\n\t\tpattern: /<!--(?:(?!<!--)[\\s\\S])*?-->/,\n\t\tgreedy: true\n\t},\n\t'prolog': {\n\t\tpattern: /<\\?[\\s\\S]+?\\?>/,\n\t\tgreedy: true\n\t},\n\t'doctype': {\n\t\t// https://www.w3.org/TR/xml/#NT-doctypedecl\n\t\tpattern: /<!DOCTYPE(?:[^>\"'[\\]]|\"[^\"]*\"|'[^']*')+(?:\\[(?:[^<\"'\\]]|\"[^\"]*\"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\\]\\s*)?>/i,\n\t\tgreedy: true,\n\t\tinside: {\n\t\t\t'internal-subset': {\n\t\t\t\tpattern: /(^[^\\[]*\\[)[\\s\\S]+(?=\\]>$)/,\n\t\t\t\tlookbehind: true,\n\t\t\t\tgreedy: true,\n\t\t\t\tinside: null // see below\n\t\t\t},\n\t\t\t'string': {\n\t\t\t\tpattern: /\"[^\"]*\"|'[^']*'/,\n\t\t\t\tgreedy: true\n\t\t\t},\n\t\t\t'punctuation': /^<!|>$|[[\\]]/,\n\t\t\t'doctype-tag': /^DOCTYPE/i,\n\t\t\t'name': /[^\\s<>'\"]+/\n\t\t}\n\t},\n\t'cdata': {\n\t\tpattern: /<!\\[CDATA\\[[\\s\\S]*?\\]\\]>/i,\n\t\tgreedy: true\n\t},\n\t'tag': {\n\t\tpattern: /<\\/?(?!\\d)[^\\s>\\/=$<%]+(?:\\s(?:\\s*[^\\s>\\/=]+(?:\\s*=\\s*(?:\"[^\"]*\"|'[^']*'|[^\\s'\">=]+(?=[\\s>]))|(?=[\\s/>])))+)?\\s*\\/?>/,\n\t\tgreedy: true,\n\t\tinside: {\n\t\t\t'tag': {\n\t\t\t\tpattern: /^<\\/?[^\\s>\\/]+/,\n\t\t\t\tinside: {\n\t\t\t\t\t'punctuation': /^<\\/?/,\n\t\t\t\t\t'namespace': /^[^\\s>\\/:]+:/\n\t\t\t\t}\n\t\t\t},\n\t\t\t'special-attr': [],\n\t\t\t'attr-value': {\n\t\t\t\tpattern: /=\\s*(?:\"[^\"]*\"|'[^']*'|[^\\s'\">=]+)/,\n\t\t\t\tinside: {\n\t\t\t\t\t'punctuation': [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tpattern: /^=/,\n\t\t\t\t\t\t\talias: 'attr-equals'\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tpattern: /^(\\s*)[\"']|[\"']$/,\n\t\t\t\t\t\t\tlookbehind: true\n\t\t\t\t\t\t}\n\t\t\t\t\t]\n\t\t\t\t}\n\t\t\t},\n\t\t\t'punctuation': /\\/?>/,\n\t\t\t'attr-name': {\n\t\t\t\tpattern: /[^\\s>\\/]+/,\n\t\t\t\tinside: {\n\t\t\t\t\t'namespace': /^[^\\s>\\/:]+:/\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t},\n\t'entity': [\n\t\t{\n\t\t\tpattern: /&[\\da-z]{1,8};/i,\n\t\t\talias: 'named-entity'\n\t\t},\n\t\t/&#x?[\\da-f]{1,8};/i\n\t]\n};\n\nPrism.languages.markup['tag'].inside['attr-value'].inside['entity'] =\n\tPrism.languages.markup['entity'];\nPrism.languages.markup['doctype'].inside['internal-subset'].inside = Prism.languages.markup;\n\n// Plugin to make entity title show the real entity, idea by Roman Komarov\nPrism.hooks.add('wrap', function (env) {\n\n\tif (env.type === 'entity') {\n\t\tenv.attributes['title'] = env.content.replace(/&amp;/, '&');\n\t}\n});\n\nObject.defineProperty(Prism.languages.markup.tag, 'addInlined', {\n\t/**\n\t * Adds an inlined language to markup.\n\t *\n\t * An example of an inlined language is CSS with `<style>` tags.\n\t *\n\t * @param {string} tagName The name of the tag that contains the inlined language. This name will be treated as\n\t * case insensitive.\n\t * @param {string} lang The language key.\n\t * @example\n\t * addInlined('style', 'css');\n\t */\n\tvalue: function addInlined(tagName, lang) {\n\t\tvar includedCdataInside = {};\n\t\tincludedCdataInside['language-' + lang] = {\n\t\t\tpattern: /(^<!\\[CDATA\\[)[\\s\\S]+?(?=\\]\\]>$)/i,\n\t\t\tlookbehind: true,\n\t\t\tinside: Prism.languages[lang]\n\t\t};\n\t\tincludedCdataInside['cdata'] = /^<!\\[CDATA\\[|\\]\\]>$/i;\n\n\t\tvar inside = {\n\t\t\t'included-cdata': {\n\t\t\t\tpattern: /<!\\[CDATA\\[[\\s\\S]*?\\]\\]>/i,\n\t\t\t\tinside: includedCdataInside\n\t\t\t}\n\t\t};\n\t\tinside['language-' + lang] = {\n\t\t\tpattern: /[\\s\\S]+/,\n\t\t\tinside: Prism.languages[lang]\n\t\t};\n\n\t\tvar def = {};\n\t\tdef[tagName] = {\n\t\t\tpattern: RegExp(/(<__[^>]*>)(?:<!\\[CDATA\\[(?:[^\\]]|\\](?!\\]>))*\\]\\]>|(?!<!\\[CDATA\\[)[\\s\\S])*?(?=<\\/__>)/.source.replace(/__/g, function () { return tagName; }), 'i'),\n\t\t\tlookbehind: true,\n\t\t\tgreedy: true,\n\t\t\tinside: inside\n\t\t};\n\n\t\tPrism.languages.insertBefore('markup', 'cdata', def);\n\t}\n});\nObject.defineProperty(Prism.languages.markup.tag, 'addAttribute', {\n\t/**\n\t * Adds an pattern to highlight languages embedded in HTML attributes.\n\t *\n\t * An example of an inlined language is CSS with `style` attributes.\n\t *\n\t * @param {string} attrName The name of the tag that contains the inlined language. This name will be treated as\n\t * case insensitive.\n\t * @param {string} lang The language key.\n\t * @example\n\t * addAttribute('style', 'css');\n\t */\n\tvalue: function (attrName, lang) {\n\t\tPrism.languages.markup.tag.inside['special-attr'].push({\n\t\t\tpattern: RegExp(\n\t\t\t\t/(^|[\"'\\s])/.source + '(?:' + attrName + ')' + /\\s*=\\s*(?:\"[^\"]*\"|'[^']*'|[^\\s'\">=]+(?=[\\s>]))/.source,\n\t\t\t\t'i'\n\t\t\t),\n\t\t\tlookbehind: true,\n\t\t\tinside: {\n\t\t\t\t'attr-name': /^[^\\s=]+/,\n\t\t\t\t'attr-value': {\n\t\t\t\t\tpattern: /=[\\s\\S]+/,\n\t\t\t\t\tinside: {\n\t\t\t\t\t\t'value': {\n\t\t\t\t\t\t\tpattern: /(^=\\s*([\"']|(?![\"'])))\\S[\\s\\S]*(?=\\2$)/,\n\t\t\t\t\t\t\tlookbehind: true,\n\t\t\t\t\t\t\talias: [lang, 'language-' + lang],\n\t\t\t\t\t\t\tinside: Prism.languages[lang]\n\t\t\t\t\t\t},\n\t\t\t\t\t\t'punctuation': [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tpattern: /^=/,\n\t\t\t\t\t\t\t\talias: 'attr-equals'\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t/\"|'/\n\t\t\t\t\t\t]\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}\n});\n\nPrism.languages.html = Prism.languages.markup;\nPrism.languages.mathml = Prism.languages.markup;\nPrism.languages.svg = Prism.languages.markup;\n\nPrism.languages.xml = Prism.languages.extend('markup', {});\nPrism.languages.ssml = Prism.languages.xml;\nPrism.languages.atom = Prism.languages.xml;\nPrism.languages.rss = Prism.languages.xml;\n","(function (Prism) {\n\n\t// Allow only one line break\n\tvar inner = /(?:\\\\.|[^\\\\\\n\\r]|(?:\\n|\\r\\n?)(?![\\r\\n]))/.source;\n\n\t/**\n\t * This function is intended for the creation of the bold or italic pattern.\n\t *\n\t * This also adds a lookbehind group to the given pattern to ensure that the pattern is not backslash-escaped.\n\t *\n\t * _Note:_ Keep in mind that this adds a capturing group.\n\t *\n\t * @param {string} pattern\n\t * @returns {RegExp}\n\t */\n\tfunction createInline(pattern) {\n\t\tpattern = pattern.replace(/<inner>/g, function () { return inner; });\n\t\treturn RegExp(/((?:^|[^\\\\])(?:\\\\{2})*)/.source + '(?:' + pattern + ')');\n\t}\n\n\n\tvar tableCell = /(?:\\\\.|``(?:[^`\\r\\n]|`(?!`))+``|`[^`\\r\\n]+`|[^\\\\|\\r\\n`])+/.source;\n\tvar tableRow = /\\|?__(?:\\|__)+\\|?(?:(?:\\n|\\r\\n?)|(?![\\s\\S]))/.source.replace(/__/g, function () { return tableCell; });\n\tvar tableLine = /\\|?[ \\t]*:?-{3,}:?[ \\t]*(?:\\|[ \\t]*:?-{3,}:?[ \\t]*)+\\|?(?:\\n|\\r\\n?)/.source;\n\n\n\tPrism.languages.markdown = Prism.languages.extend('markup', {});\n\tPrism.languages.insertBefore('markdown', 'prolog', {\n\t\t'front-matter-block': {\n\t\t\tpattern: /(^(?:\\s*[\\r\\n])?)---(?!.)[\\s\\S]*?[\\r\\n]---(?!.)/,\n\t\t\tlookbehind: true,\n\t\t\tgreedy: true,\n\t\t\tinside: {\n\t\t\t\t'punctuation': /^---|---$/,\n\t\t\t\t'front-matter': {\n\t\t\t\t\tpattern: /\\S+(?:\\s+\\S+)*/,\n\t\t\t\t\talias: ['yaml', 'language-yaml'],\n\t\t\t\t\tinside: Prism.languages.yaml\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t'blockquote': {\n\t\t\t// > ...\n\t\t\tpattern: /^>(?:[\\t ]*>)*/m,\n\t\t\talias: 'punctuation'\n\t\t},\n\t\t'table': {\n\t\t\tpattern: RegExp('^' + tableRow + tableLine + '(?:' + tableRow + ')*', 'm'),\n\t\t\tinside: {\n\t\t\t\t'table-data-rows': {\n\t\t\t\t\tpattern: RegExp('^(' + tableRow + tableLine + ')(?:' + tableRow + ')*$'),\n\t\t\t\t\tlookbehind: true,\n\t\t\t\t\tinside: {\n\t\t\t\t\t\t'table-data': {\n\t\t\t\t\t\t\tpattern: RegExp(tableCell),\n\t\t\t\t\t\t\tinside: Prism.languages.markdown\n\t\t\t\t\t\t},\n\t\t\t\t\t\t'punctuation': /\\|/\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t'table-line': {\n\t\t\t\t\tpattern: RegExp('^(' + tableRow + ')' + tableLine + '$'),\n\t\t\t\t\tlookbehind: true,\n\t\t\t\t\tinside: {\n\t\t\t\t\t\t'punctuation': /\\||:?-{3,}:?/\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t'table-header-row': {\n\t\t\t\t\tpattern: RegExp('^' + tableRow + '$'),\n\t\t\t\t\tinside: {\n\t\t\t\t\t\t'table-header': {\n\t\t\t\t\t\t\tpattern: RegExp(tableCell),\n\t\t\t\t\t\t\talias: 'important',\n\t\t\t\t\t\t\tinside: Prism.languages.markdown\n\t\t\t\t\t\t},\n\t\t\t\t\t\t'punctuation': /\\|/\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t'code': [\n\t\t\t{\n\t\t\t\t// Prefixed by 4 spaces or 1 tab and preceded by an empty line\n\t\t\t\tpattern: /((?:^|\\n)[ \\t]*\\n|(?:^|\\r\\n?)[ \\t]*\\r\\n?)(?: {4}|\\t).+(?:(?:\\n|\\r\\n?)(?: {4}|\\t).+)*/,\n\t\t\t\tlookbehind: true,\n\t\t\t\talias: 'keyword'\n\t\t\t},\n\t\t\t{\n\t\t\t\t// ```optional language\n\t\t\t\t// code block\n\t\t\t\t// ```\n\t\t\t\tpattern: /^```[\\s\\S]*?^```$/m,\n\t\t\t\tgreedy: true,\n\t\t\t\tinside: {\n\t\t\t\t\t'code-block': {\n\t\t\t\t\t\tpattern: /^(```.*(?:\\n|\\r\\n?))[\\s\\S]+?(?=(?:\\n|\\r\\n?)^```$)/m,\n\t\t\t\t\t\tlookbehind: true\n\t\t\t\t\t},\n\t\t\t\t\t'code-language': {\n\t\t\t\t\t\tpattern: /^(```).+/,\n\t\t\t\t\t\tlookbehind: true\n\t\t\t\t\t},\n\t\t\t\t\t'punctuation': /```/\n\t\t\t\t}\n\t\t\t}\n\t\t],\n\t\t'title': [\n\t\t\t{\n\t\t\t\t// title 1\n\t\t\t\t// =======\n\n\t\t\t\t// title 2\n\t\t\t\t// -------\n\t\t\t\tpattern: /\\S.*(?:\\n|\\r\\n?)(?:==+|--+)(?=[ \\t]*$)/m,\n\t\t\t\talias: 'important',\n\t\t\t\tinside: {\n\t\t\t\t\tpunctuation: /==+$|--+$/\n\t\t\t\t}\n\t\t\t},\n\t\t\t{\n\t\t\t\t// # title 1\n\t\t\t\t// ###### title 6\n\t\t\t\tpattern: /(^\\s*)#.+/m,\n\t\t\t\tlookbehind: true,\n\t\t\t\talias: 'important',\n\t\t\t\tinside: {\n\t\t\t\t\tpunctuation: /^#+|#+$/\n\t\t\t\t}\n\t\t\t}\n\t\t],\n\t\t'hr': {\n\t\t\t// ***\n\t\t\t// ---\n\t\t\t// * * *\n\t\t\t// -----------\n\t\t\tpattern: /(^\\s*)([*-])(?:[\\t ]*\\2){2,}(?=\\s*$)/m,\n\t\t\tlookbehind: true,\n\t\t\talias: 'punctuation'\n\t\t},\n\t\t'list': {\n\t\t\t// * item\n\t\t\t// + item\n\t\t\t// - item\n\t\t\t// 1. item\n\t\t\tpattern: /(^\\s*)(?:[*+-]|\\d+\\.)(?=[\\t ].)/m,\n\t\t\tlookbehind: true,\n\t\t\talias: 'punctuation'\n\t\t},\n\t\t'url-reference': {\n\t\t\t// [id]: http://example.com \"Optional title\"\n\t\t\t// [id]: http://example.com 'Optional title'\n\t\t\t// [id]: http://example.com (Optional title)\n\t\t\t// [id]: <http://example.com> \"Optional title\"\n\t\t\tpattern: /!?\\[[^\\]]+\\]:[\\t ]+(?:\\S+|<(?:\\\\.|[^>\\\\])+>)(?:[\\t ]+(?:\"(?:\\\\.|[^\"\\\\])*\"|'(?:\\\\.|[^'\\\\])*'|\\((?:\\\\.|[^)\\\\])*\\)))?/,\n\t\t\tinside: {\n\t\t\t\t'variable': {\n\t\t\t\t\tpattern: /^(!?\\[)[^\\]]+/,\n\t\t\t\t\tlookbehind: true\n\t\t\t\t},\n\t\t\t\t'string': /(?:\"(?:\\\\.|[^\"\\\\])*\"|'(?:\\\\.|[^'\\\\])*'|\\((?:\\\\.|[^)\\\\])*\\))$/,\n\t\t\t\t'punctuation': /^[\\[\\]!:]|[<>]/\n\t\t\t},\n\t\t\talias: 'url'\n\t\t},\n\t\t'bold': {\n\t\t\t// **strong**\n\t\t\t// __strong__\n\n\t\t\t// allow one nested instance of italic text using the same delimiter\n\t\t\tpattern: createInline(/\\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\\b|\\*\\*(?:(?!\\*)<inner>|\\*(?:(?!\\*)<inner>)+\\*)+\\*\\*/.source),\n\t\t\tlookbehind: true,\n\t\t\tgreedy: true,\n\t\t\tinside: {\n\t\t\t\t'content': {\n\t\t\t\t\tpattern: /(^..)[\\s\\S]+(?=..$)/,\n\t\t\t\t\tlookbehind: true,\n\t\t\t\t\tinside: {} // see below\n\t\t\t\t},\n\t\t\t\t'punctuation': /\\*\\*|__/\n\t\t\t}\n\t\t},\n\t\t'italic': {\n\t\t\t// *em*\n\t\t\t// _em_\n\n\t\t\t// allow one nested instance of bold text using the same delimiter\n\t\t\tpattern: createInline(/\\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\\b|\\*(?:(?!\\*)<inner>|\\*\\*(?:(?!\\*)<inner>)+\\*\\*)+\\*/.source),\n\t\t\tlookbehind: true,\n\t\t\tgreedy: true,\n\t\t\tinside: {\n\t\t\t\t'content': {\n\t\t\t\t\tpattern: /(^.)[\\s\\S]+(?=.$)/,\n\t\t\t\t\tlookbehind: true,\n\t\t\t\t\tinside: {} // see below\n\t\t\t\t},\n\t\t\t\t'punctuation': /[*_]/\n\t\t\t}\n\t\t},\n\t\t'strike': {\n\t\t\t// ~~strike through~~\n\t\t\t// ~strike~\n\t\t\t// eslint-disable-next-line regexp/strict\n\t\t\tpattern: createInline(/(~~?)(?:(?!~)<inner>)+\\2/.source),\n\t\t\tlookbehind: true,\n\t\t\tgreedy: true,\n\t\t\tinside: {\n\t\t\t\t'content': {\n\t\t\t\t\tpattern: /(^~~?)[\\s\\S]+(?=\\1$)/,\n\t\t\t\t\tlookbehind: true,\n\t\t\t\t\tinside: {} // see below\n\t\t\t\t},\n\t\t\t\t'punctuation': /~~?/\n\t\t\t}\n\t\t},\n\t\t'code-snippet': {\n\t\t\t// `code`\n\t\t\t// ``code``\n\t\t\tpattern: /(^|[^\\\\`])(?:``[^`\\r\\n]+(?:`[^`\\r\\n]+)*``(?!`)|`[^`\\r\\n]+`(?!`))/,\n\t\t\tlookbehind: true,\n\t\t\tgreedy: true,\n\t\t\talias: ['code', 'keyword']\n\t\t},\n\t\t'url': {\n\t\t\t// [example](http://example.com \"Optional title\")\n\t\t\t// [example][id]\n\t\t\t// [example] [id]\n\t\t\tpattern: createInline(/!?\\[(?:(?!\\])<inner>)+\\](?:\\([^\\s)]+(?:[\\t ]+\"(?:\\\\.|[^\"\\\\])*\")?\\)|[ \\t]?\\[(?:(?!\\])<inner>)+\\])/.source),\n\t\t\tlookbehind: true,\n\t\t\tgreedy: true,\n\t\t\tinside: {\n\t\t\t\t'operator': /^!/,\n\t\t\t\t'content': {\n\t\t\t\t\tpattern: /(^\\[)[^\\]]+(?=\\])/,\n\t\t\t\t\tlookbehind: true,\n\t\t\t\t\tinside: {} // see below\n\t\t\t\t},\n\t\t\t\t'variable': {\n\t\t\t\t\tpattern: /(^\\][ \\t]?\\[)[^\\]]+(?=\\]$)/,\n\t\t\t\t\tlookbehind: true\n\t\t\t\t},\n\t\t\t\t'url': {\n\t\t\t\t\tpattern: /(^\\]\\()[^\\s)]+/,\n\t\t\t\t\tlookbehind: true\n\t\t\t\t},\n\t\t\t\t'string': {\n\t\t\t\t\tpattern: /(^[ \\t]+)\"(?:\\\\.|[^\"\\\\])*\"(?=\\)$)/,\n\t\t\t\t\tlookbehind: true\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t});\n\n\t['url', 'bold', 'italic', 'strike'].forEach(function (token) {\n\t\t['url', 'bold', 'italic', 'strike', 'code-snippet'].forEach(function (inside) {\n\t\t\tif (token !== inside) {\n\t\t\t\tPrism.languages.markdown[token].inside.content.inside[inside] = Prism.languages.markdown[inside];\n\t\t\t}\n\t\t});\n\t});\n\n\tPrism.hooks.add('after-tokenize', function (env) {\n\t\tif (env.language !== 'markdown' && env.language !== 'md') {\n\t\t\treturn;\n\t\t}\n\n\t\tfunction walkTokens(tokens) {\n\t\t\tif (!tokens || typeof tokens === 'string') {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tfor (var i = 0, l = tokens.length; i < l; i++) {\n\t\t\t\tvar token = tokens[i];\n\n\t\t\t\tif (token.type !== 'code') {\n\t\t\t\t\twalkTokens(token.content);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t/*\n\t\t\t\t * Add the correct `language-xxxx` class to this code block. Keep in mind that the `code-language` token\n\t\t\t\t * is optional. But the grammar is defined so that there is only one case we have to handle:\n\t\t\t\t *\n\t\t\t\t * token.content = [\n\t\t\t\t * <span class=\"punctuation\">```</span>,\n\t\t\t\t * <span class=\"code-language\">xxxx</span>,\n\t\t\t\t * '\\n', // exactly one new lines (\\r or \\n or \\r\\n)\n\t\t\t\t * <span class=\"code-block\">...</span>,\n\t\t\t\t * '\\n', // exactly one new lines again\n\t\t\t\t * <span class=\"punctuation\">```</span>\n\t\t\t\t * ];\n\t\t\t\t */\n\n\t\t\t\tvar codeLang = token.content[1];\n\t\t\t\tvar codeBlock = token.content[3];\n\n\t\t\t\tif (codeLang && codeBlock &&\n\t\t\t\t\tcodeLang.type === 'code-language' && codeBlock.type === 'code-block' &&\n\t\t\t\t\ttypeof codeLang.content === 'string') {\n\n\t\t\t\t\t// this might be a language that Prism does not support\n\n\t\t\t\t\t// do some replacements to support C++, C#, and F#\n\t\t\t\t\tvar lang = codeLang.content.replace(/\\b#/g, 'sharp').replace(/\\b\\+\\+/g, 'pp');\n\t\t\t\t\t// only use the first word\n\t\t\t\t\tlang = (/[a-z][\\w-]*/i.exec(lang) || [''])[0].toLowerCase();\n\t\t\t\t\tvar alias = 'language-' + lang;\n\n\t\t\t\t\t// add alias\n\t\t\t\t\tif (!codeBlock.alias) {\n\t\t\t\t\t\tcodeBlock.alias = [alias];\n\t\t\t\t\t} else if (typeof codeBlock.alias === 'string') {\n\t\t\t\t\t\tcodeBlock.alias = [codeBlock.alias, alias];\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcodeBlock.alias.push(alias);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\twalkTokens(env.tokens);\n\t});\n\n\tPrism.hooks.add('wrap', function (env) {\n\t\tif (env.type !== 'code-block') {\n\t\t\treturn;\n\t\t}\n\n\t\tvar codeLang = '';\n\t\tfor (var i = 0, l = env.classes.length; i < l; i++) {\n\t\t\tvar cls = env.classes[i];\n\t\t\tvar match = /language-(.+)/.exec(cls);\n\t\t\tif (match) {\n\t\t\t\tcodeLang = match[1];\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tvar grammar = Prism.languages[codeLang];\n\n\t\tif (!grammar) {\n\t\t\tif (codeLang && codeLang !== 'none' && Prism.plugins.autoloader) {\n\t\t\t\tvar id = 'md-' + new Date().valueOf() + '-' + Math.floor(Math.random() * 1e16);\n\t\t\t\tenv.attributes['id'] = id;\n\n\t\t\t\tPrism.plugins.autoloader.loadLanguages(codeLang, function () {\n\t\t\t\t\tvar ele = document.getElementById(id);\n\t\t\t\t\tif (ele) {\n\t\t\t\t\t\tele.innerHTML = Prism.highlight(ele.textContent, Prism.languages[codeLang], codeLang);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t} else {\n\t\t\tenv.content = Prism.highlight(textContent(env.content), grammar, codeLang);\n\t\t}\n\t});\n\n\tvar tagPattern = RegExp(Prism.languages.markup.tag.pattern.source, 'gi');\n\n\t/**\n\t * A list of known entity names.\n\t *\n\t * This will always be incomplete to save space. The current list is the one used by lowdash's unescape function.\n\t *\n\t * @see {@link https://github.com/lodash/lodash/blob/2da024c3b4f9947a48517639de7560457cd4ec6c/unescape.js#L2}\n\t */\n\tvar KNOWN_ENTITY_NAMES = {\n\t\t'amp': '&',\n\t\t'lt': '<',\n\t\t'gt': '>',\n\t\t'quot': '\"',\n\t};\n\n\t// IE 11 doesn't support `String.fromCodePoint`\n\tvar fromCodePoint = String.fromCodePoint || String.fromCharCode;\n\n\t/**\n\t * Returns the text content of a given HTML source code string.\n\t *\n\t * @param {string} html\n\t * @returns {string}\n\t */\n\tfunction textContent(html) {\n\t\t// remove all tags\n\t\tvar text = html.replace(tagPattern, '');\n\n\t\t// decode known entities\n\t\ttext = text.replace(/&(\\w{1,8}|#x?[\\da-f]{1,8});/gi, function (m, code) {\n\t\t\tcode = code.toLowerCase();\n\n\t\t\tif (code[0] === '#') {\n\t\t\t\tvar value;\n\t\t\t\tif (code[1] === 'x') {\n\t\t\t\t\tvalue = parseInt(code.slice(2), 16);\n\t\t\t\t} else {\n\t\t\t\t\tvalue = Number(code.slice(1));\n\t\t\t\t}\n\n\t\t\t\treturn fromCodePoint(value);\n\t\t\t} else {\n\t\t\t\tvar known = KNOWN_ENTITY_NAMES[code];\n\t\t\t\tif (known) {\n\t\t\t\t\treturn known;\n\t\t\t\t}\n\n\t\t\t\t// unable to decode\n\t\t\t\treturn m;\n\t\t\t}\n\t\t});\n\n\t\treturn text;\n\t}\n\n\tPrism.languages.md = Prism.languages.markdown;\n\n}(Prism));\n","import anime from 'animejs/lib/anime.es.js';\nconst notifcation = document.querySelector('.notify-message');\nconst notify = document.getElementById('notify-message');\nconst responseText = document.querySelector('.response-text');\nconst notifyText = document.querySelector('.notify-text');\nconst notifyIcons = document.querySelector('.notify-icons');\n//const notifyProgress = document.getElementById('notify-progress');\nconst iconGood = document.querySelector('.notify-good');\nconst iconNotGood = document.querySelector('.notify-notgood');\nconst iconWorking = document.querySelector('.notify-working');\n\nexport default class Notfications {\n\t//--------------------------\n\t// constructor\n\t//--------------------------\n\tconstructor() {}\n\t//--------------------------\n\t// methods\n\t//--------------------------\n\n\talert(text, status) {\n\t\ticonWorking.style.display = 'none';\n\t\ticonGood.style.display = 'none';\n\t\ticonNotGood.style.display = 'none';\n\n\t\tvar color = '';\n\t\tresponseText.innerHTML = text;\n\t\tif (status !== null) {\n\t\t\tif (status) {\n\t\t\t\tcolor = '#32cd32';\n\t\t\t\ticonWorking.style.display = 'none';\n\t\t\t\ticonGood.style.display = 'block';\n\t\t\t} else {\n\t\t\t\tcolor = '#F64747';\n\t\t\t\ticonWorking.style.display = 'none';\n\t\t\t\ticonNotGood.style.display = 'block';\n\t\t\t}\n\t\t} else {\n\t\t\tcolor = '#200317';\n\t\t\ticonWorking.style.display = 'block';\n\t\t}\n\n\t\tnew anime({\n\t\t\ttargets: document.querySelector('.top-nav'),\n\t\t\trotateX: '180deg',\n\t\t\teasing: 'easeOutQuint'\n\t\t});\n\n\t\tnew anime({\n\t\t\ttargets: document.querySelector('.notify'),\n\t\t\trotateX: '10deg',\n\t\t\teasing: 'easeOutQuint',\n\t\t\tcomplete: () => {\n\t\t\t\tnew anime({\n\t\t\t\t\ttargets: notifyIcons,\n\t\t\t\t\twidth: 39,\n\t\t\t\t\topacity: 1,\n\t\t\t\t\teasing: 'easeInQuint',\n\t\t\t\t\tduration: 300\n\t\t\t\t});\n\n\t\t\t\tnew anime({\n\t\t\t\t\ttargets: notifyText,\n\t\t\t\t\tbackgroundColor: color,\n\t\t\t\t\topacity: 1,\n\t\t\t\t\teasing: 'easeInOutQuad',\n\t\t\t\t\tduration: 400,\n\t\t\t\t\tcomplete: () => {\n\t\t\t\t\t\tsetTimeout(() => {\n\t\t\t\t\t\t\tif (status !== null) {\n\t\t\t\t\t\t\t\tanime({\n\t\t\t\t\t\t\t\t\ttargets: notifyText,\n\t\t\t\t\t\t\t\t\tbackgroundColor: color,\n\t\t\t\t\t\t\t\t\topacity: 0,\n\t\t\t\t\t\t\t\t\teasing: 'easeInOutQuad',\n\t\t\t\t\t\t\t\t\tduration: 400\n\t\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\t\tanime({\n\t\t\t\t\t\t\t\t\ttargets: notifyIcons,\n\t\t\t\t\t\t\t\t\twidth: 0,\n\t\t\t\t\t\t\t\t\topacity: 0,\n\t\t\t\t\t\t\t\t\teasing: 'easeOutQuint',\n\t\t\t\t\t\t\t\t\tduration: 350\n\t\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\t\tnew anime({\n\t\t\t\t\t\t\t\t\ttargets: document.querySelector('.top-nav'),\n\t\t\t\t\t\t\t\t\trotateX: '0deg',\n\t\t\t\t\t\t\t\t\teasing: 'easeOutQuint'\n\t\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\t\tnew anime({\n\t\t\t\t\t\t\t\t\ttargets: document.querySelector('.notify'),\n\t\t\t\t\t\t\t\t\trotateX: '180deg',\n\t\t\t\t\t\t\t\t\teasing: 'easeOutQuint'\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}, 2500);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\t}\n\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n}\n","/*\n * anime.js v3.2.1\n * (c) 2020 Julian Garnier\n * Released under the MIT license\n * animejs.com\n */\n\n// Defaults\n\nvar defaultInstanceSettings = {\n update: null,\n begin: null,\n loopBegin: null,\n changeBegin: null,\n change: null,\n changeComplete: null,\n loopComplete: null,\n complete: null,\n loop: 1,\n direction: 'normal',\n autoplay: true,\n timelineOffset: 0\n};\n\nvar defaultTweenSettings = {\n duration: 1000,\n delay: 0,\n endDelay: 0,\n easing: 'easeOutElastic(1, .5)',\n round: 0\n};\n\nvar validTransforms = ['translateX', 'translateY', 'translateZ', 'rotate', 'rotateX', 'rotateY', 'rotateZ', 'scale', 'scaleX', 'scaleY', 'scaleZ', 'skew', 'skewX', 'skewY', 'perspective', 'matrix', 'matrix3d'];\n\n// Caching\n\nvar cache = {\n CSS: {},\n springs: {}\n};\n\n// Utils\n\nfunction minMax(val, min, max) {\n return Math.min(Math.max(val, min), max);\n}\n\nfunction stringContains(str, text) {\n return str.indexOf(text) > -1;\n}\n\nfunction applyArguments(func, args) {\n return func.apply(null, args);\n}\n\nvar is = {\n arr: function (a) { return Array.isArray(a); },\n obj: function (a) { return stringContains(Object.prototype.toString.call(a), 'Object'); },\n pth: function (a) { return is.obj(a) && a.hasOwnProperty('totalLength'); },\n svg: function (a) { return a instanceof SVGElement; },\n inp: function (a) { return a instanceof HTMLInputElement; },\n dom: function (a) { return a.nodeType || is.svg(a); },\n str: function (a) { return typeof a === 'string'; },\n fnc: function (a) { return typeof a === 'function'; },\n und: function (a) { return typeof a === 'undefined'; },\n nil: function (a) { return is.und(a) || a === null; },\n hex: function (a) { return /(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(a); },\n rgb: function (a) { return /^rgb/.test(a); },\n hsl: function (a) { return /^hsl/.test(a); },\n col: function (a) { return (is.hex(a) || is.rgb(a) || is.hsl(a)); },\n key: function (a) { return !defaultInstanceSettings.hasOwnProperty(a) && !defaultTweenSettings.hasOwnProperty(a) && a !== 'targets' && a !== 'keyframes'; },\n};\n\n// Easings\n\nfunction parseEasingParameters(string) {\n var match = /\\(([^)]+)\\)/.exec(string);\n return match ? match[1].split(',').map(function (p) { return parseFloat(p); }) : [];\n}\n\n// Spring solver inspired by Webkit Copyright © 2016 Apple Inc. All rights reserved. https://webkit.org/demos/spring/spring.js\n\nfunction spring(string, duration) {\n\n var params = parseEasingParameters(string);\n var mass = minMax(is.und(params[0]) ? 1 : params[0], .1, 100);\n var stiffness = minMax(is.und(params[1]) ? 100 : params[1], .1, 100);\n var damping = minMax(is.und(params[2]) ? 10 : params[2], .1, 100);\n var velocity = minMax(is.und(params[3]) ? 0 : params[3], .1, 100);\n var w0 = Math.sqrt(stiffness / mass);\n var zeta = damping / (2 * Math.sqrt(stiffness * mass));\n var wd = zeta < 1 ? w0 * Math.sqrt(1 - zeta * zeta) : 0;\n var a = 1;\n var b = zeta < 1 ? (zeta * w0 + -velocity) / wd : -velocity + w0;\n\n function solver(t) {\n var progress = duration ? (duration * t) / 1000 : t;\n if (zeta < 1) {\n progress = Math.exp(-progress * zeta * w0) * (a * Math.cos(wd * progress) + b * Math.sin(wd * progress));\n } else {\n progress = (a + b * progress) * Math.exp(-progress * w0);\n }\n if (t === 0 || t === 1) { return t; }\n return 1 - progress;\n }\n\n function getDuration() {\n var cached = cache.springs[string];\n if (cached) { return cached; }\n var frame = 1/6;\n var elapsed = 0;\n var rest = 0;\n while(true) {\n elapsed += frame;\n if (solver(elapsed) === 1) {\n rest++;\n if (rest >= 16) { break; }\n } else {\n rest = 0;\n }\n }\n var duration = elapsed * frame * 1000;\n cache.springs[string] = duration;\n return duration;\n }\n\n return duration ? solver : getDuration;\n\n}\n\n// Basic steps easing implementation https://developer.mozilla.org/fr/docs/Web/CSS/transition-timing-function\n\nfunction steps(steps) {\n if ( steps === void 0 ) steps = 10;\n\n return function (t) { return Math.ceil((minMax(t, 0.000001, 1)) * steps) * (1 / steps); };\n}\n\n// BezierEasing https://github.com/gre/bezier-easing\n\nvar bezier = (function () {\n\n var kSplineTableSize = 11;\n var kSampleStepSize = 1.0 / (kSplineTableSize - 1.0);\n\n function A(aA1, aA2) { return 1.0 - 3.0 * aA2 + 3.0 * aA1 }\n function B(aA1, aA2) { return 3.0 * aA2 - 6.0 * aA1 }\n function C(aA1) { return 3.0 * aA1 }\n\n function calcBezier(aT, aA1, aA2) { return ((A(aA1, aA2) * aT + B(aA1, aA2)) * aT + C(aA1)) * aT }\n function getSlope(aT, aA1, aA2) { return 3.0 * A(aA1, aA2) * aT * aT + 2.0 * B(aA1, aA2) * aT + C(aA1) }\n\n function binarySubdivide(aX, aA, aB, mX1, mX2) {\n var currentX, currentT, i = 0;\n do {\n currentT = aA + (aB - aA) / 2.0;\n currentX = calcBezier(currentT, mX1, mX2) - aX;\n if (currentX > 0.0) { aB = currentT; } else { aA = currentT; }\n } while (Math.abs(currentX) > 0.0000001 && ++i < 10);\n return currentT;\n }\n\n function newtonRaphsonIterate(aX, aGuessT, mX1, mX2) {\n for (var i = 0; i < 4; ++i) {\n var currentSlope = getSlope(aGuessT, mX1, mX2);\n if (currentSlope === 0.0) { return aGuessT; }\n var currentX = calcBezier(aGuessT, mX1, mX2) - aX;\n aGuessT -= currentX / currentSlope;\n }\n return aGuessT;\n }\n\n function bezier(mX1, mY1, mX2, mY2) {\n\n if (!(0 <= mX1 && mX1 <= 1 && 0 <= mX2 && mX2 <= 1)) { return; }\n var sampleValues = new Float32Array(kSplineTableSize);\n\n if (mX1 !== mY1 || mX2 !== mY2) {\n for (var i = 0; i < kSplineTableSize; ++i) {\n sampleValues[i] = calcBezier(i * kSampleStepSize, mX1, mX2);\n }\n }\n\n function getTForX(aX) {\n\n var intervalStart = 0;\n var currentSample = 1;\n var lastSample = kSplineTableSize - 1;\n\n for (; currentSample !== lastSample && sampleValues[currentSample] <= aX; ++currentSample) {\n intervalStart += kSampleStepSize;\n }\n\n --currentSample;\n\n var dist = (aX - sampleValues[currentSample]) / (sampleValues[currentSample + 1] - sampleValues[currentSample]);\n var guessForT = intervalStart + dist * kSampleStepSize;\n var initialSlope = getSlope(guessForT, mX1, mX2);\n\n if (initialSlope >= 0.001) {\n return newtonRaphsonIterate(aX, guessForT, mX1, mX2);\n } else if (initialSlope === 0.0) {\n return guessForT;\n } else {\n return binarySubdivide(aX, intervalStart, intervalStart + kSampleStepSize, mX1, mX2);\n }\n\n }\n\n return function (x) {\n if (mX1 === mY1 && mX2 === mY2) { return x; }\n if (x === 0 || x === 1) { return x; }\n return calcBezier(getTForX(x), mY1, mY2);\n }\n\n }\n\n return bezier;\n\n})();\n\nvar penner = (function () {\n\n // Based on jQuery UI's implemenation of easing equations from Robert Penner (http://www.robertpenner.com/easing)\n\n var eases = { linear: function () { return function (t) { return t; }; } };\n\n var functionEasings = {\n Sine: function () { return function (t) { return 1 - Math.cos(t * Math.PI / 2); }; },\n Circ: function () { return function (t) { return 1 - Math.sqrt(1 - t * t); }; },\n Back: function () { return function (t) { return t * t * (3 * t - 2); }; },\n Bounce: function () { return function (t) {\n var pow2, b = 4;\n while (t < (( pow2 = Math.pow(2, --b)) - 1) / 11) {}\n return 1 / Math.pow(4, 3 - b) - 7.5625 * Math.pow(( pow2 * 3 - 2 ) / 22 - t, 2)\n }; },\n Elastic: function (amplitude, period) {\n if ( amplitude === void 0 ) amplitude = 1;\n if ( period === void 0 ) period = .5;\n\n var a = minMax(amplitude, 1, 10);\n var p = minMax(period, .1, 2);\n return function (t) {\n return (t === 0 || t === 1) ? t : \n -a * Math.pow(2, 10 * (t - 1)) * Math.sin((((t - 1) - (p / (Math.PI * 2) * Math.asin(1 / a))) * (Math.PI * 2)) / p);\n }\n }\n };\n\n var baseEasings = ['Quad', 'Cubic', 'Quart', 'Quint', 'Expo'];\n\n baseEasings.forEach(function (name, i) {\n functionEasings[name] = function () { return function (t) { return Math.pow(t, i + 2); }; };\n });\n\n Object.keys(functionEasings).forEach(function (name) {\n var easeIn = functionEasings[name];\n eases['easeIn' + name] = easeIn;\n eases['easeOut' + name] = function (a, b) { return function (t) { return 1 - easeIn(a, b)(1 - t); }; };\n eases['easeInOut' + name] = function (a, b) { return function (t) { return t < 0.5 ? easeIn(a, b)(t * 2) / 2 : \n 1 - easeIn(a, b)(t * -2 + 2) / 2; }; };\n eases['easeOutIn' + name] = function (a, b) { return function (t) { return t < 0.5 ? (1 - easeIn(a, b)(1 - t * 2)) / 2 : \n (easeIn(a, b)(t * 2 - 1) + 1) / 2; }; };\n });\n\n return eases;\n\n})();\n\nfunction parseEasings(easing, duration) {\n if (is.fnc(easing)) { return easing; }\n var name = easing.split('(')[0];\n var ease = penner[name];\n var args = parseEasingParameters(easing);\n switch (name) {\n case 'spring' : return spring(easing, duration);\n case 'cubicBezier' : return applyArguments(bezier, args);\n case 'steps' : return applyArguments(steps, args);\n default : return applyArguments(ease, args);\n }\n}\n\n// Strings\n\nfunction selectString(str) {\n try {\n var nodes = document.querySelectorAll(str);\n return nodes;\n } catch(e) {\n return;\n }\n}\n\n// Arrays\n\nfunction filterArray(arr, callback) {\n var len = arr.length;\n var thisArg = arguments.length >= 2 ? arguments[1] : void 0;\n var result = [];\n for (var i = 0; i < len; i++) {\n if (i in arr) {\n var val = arr[i];\n if (callback.call(thisArg, val, i, arr)) {\n result.push(val);\n }\n }\n }\n return result;\n}\n\nfunction flattenArray(arr) {\n return arr.reduce(function (a, b) { return a.concat(is.arr(b) ? flattenArray(b) : b); }, []);\n}\n\nfunction toArray(o) {\n if (is.arr(o)) { return o; }\n if (is.str(o)) { o = selectString(o) || o; }\n if (o instanceof NodeList || o instanceof HTMLCollection) { return [].slice.call(o); }\n return [o];\n}\n\nfunction arrayContains(arr, val) {\n return arr.some(function (a) { return a === val; });\n}\n\n// Objects\n\nfunction cloneObject(o) {\n var clone = {};\n for (var p in o) { clone[p] = o[p]; }\n return clone;\n}\n\nfunction replaceObjectProps(o1, o2) {\n var o = cloneObject(o1);\n for (var p in o1) { o[p] = o2.hasOwnProperty(p) ? o2[p] : o1[p]; }\n return o;\n}\n\nfunction mergeObjects(o1, o2) {\n var o = cloneObject(o1);\n for (var p in o2) { o[p] = is.und(o1[p]) ? o2[p] : o1[p]; }\n return o;\n}\n\n// Colors\n\nfunction rgbToRgba(rgbValue) {\n var rgb = /rgb\\((\\d+,\\s*[\\d]+,\\s*[\\d]+)\\)/g.exec(rgbValue);\n return rgb ? (\"rgba(\" + (rgb[1]) + \",1)\") : rgbValue;\n}\n\nfunction hexToRgba(hexValue) {\n var rgx = /^#?([a-f\\d])([a-f\\d])([a-f\\d])$/i;\n var hex = hexValue.replace(rgx, function (m, r, g, b) { return r + r + g + g + b + b; } );\n var rgb = /^#?([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})$/i.exec(hex);\n var r = parseInt(rgb[1], 16);\n var g = parseInt(rgb[2], 16);\n var b = parseInt(rgb[3], 16);\n return (\"rgba(\" + r + \",\" + g + \",\" + b + \",1)\");\n}\n\nfunction hslToRgba(hslValue) {\n var hsl = /hsl\\((\\d+),\\s*([\\d.]+)%,\\s*([\\d.]+)%\\)/g.exec(hslValue) || /hsla\\((\\d+),\\s*([\\d.]+)%,\\s*([\\d.]+)%,\\s*([\\d.]+)\\)/g.exec(hslValue);\n var h = parseInt(hsl[1], 10) / 360;\n var s = parseInt(hsl[2], 10) / 100;\n var l = parseInt(hsl[3], 10) / 100;\n var a = hsl[4] || 1;\n function hue2rgb(p, q, t) {\n if (t < 0) { t += 1; }\n if (t > 1) { t -= 1; }\n if (t < 1/6) { return p + (q - p) * 6 * t; }\n if (t < 1/2) { return q; }\n if (t < 2/3) { return p + (q - p) * (2/3 - t) * 6; }\n return p;\n }\n var r, g, b;\n if (s == 0) {\n r = g = b = l;\n } else {\n var q = l < 0.5 ? l * (1 + s) : l + s - l * s;\n var p = 2 * l - q;\n r = hue2rgb(p, q, h + 1/3);\n g = hue2rgb(p, q, h);\n b = hue2rgb(p, q, h - 1/3);\n }\n return (\"rgba(\" + (r * 255) + \",\" + (g * 255) + \",\" + (b * 255) + \",\" + a + \")\");\n}\n\nfunction colorToRgb(val) {\n if (is.rgb(val)) { return rgbToRgba(val); }\n if (is.hex(val)) { return hexToRgba(val); }\n if (is.hsl(val)) { return hslToRgba(val); }\n}\n\n// Units\n\nfunction getUnit(val) {\n var split = /[+-]?\\d*\\.?\\d+(?:\\.\\d+)?(?:[eE][+-]?\\d+)?(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(val);\n if (split) { return split[1]; }\n}\n\nfunction getTransformUnit(propName) {\n if (stringContains(propName, 'translate') || propName === 'perspective') { return 'px'; }\n if (stringContains(propName, 'rotate') || stringContains(propName, 'skew')) { return 'deg'; }\n}\n\n// Values\n\nfunction getFunctionValue(val, animatable) {\n if (!is.fnc(val)) { return val; }\n return val(animatable.target, animatable.id, animatable.total);\n}\n\nfunction getAttribute(el, prop) {\n return el.getAttribute(prop);\n}\n\nfunction convertPxToUnit(el, value, unit) {\n var valueUnit = getUnit(value);\n if (arrayContains([unit, 'deg', 'rad', 'turn'], valueUnit)) { return value; }\n var cached = cache.CSS[value + unit];\n if (!is.und(cached)) { return cached; }\n var baseline = 100;\n var tempEl = document.createElement(el.tagName);\n var parentEl = (el.parentNode && (el.parentNode !== document)) ? el.parentNode : document.body;\n parentEl.appendChild(tempEl);\n tempEl.style.position = 'absolute';\n tempEl.style.width = baseline + unit;\n var factor = baseline / tempEl.offsetWidth;\n parentEl.removeChild(tempEl);\n var convertedUnit = factor * parseFloat(value);\n cache.CSS[value + unit] = convertedUnit;\n return convertedUnit;\n}\n\nfunction getCSSValue(el, prop, unit) {\n if (prop in el.style) {\n var uppercasePropName = prop.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();\n var value = el.style[prop] || getComputedStyle(el).getPropertyValue(uppercasePropName) || '0';\n return unit ? convertPxToUnit(el, value, unit) : value;\n }\n}\n\nfunction getAnimationType(el, prop) {\n if (is.dom(el) && !is.inp(el) && (!is.nil(getAttribute(el, prop)) || (is.svg(el) && el[prop]))) { return 'attribute'; }\n if (is.dom(el) && arrayContains(validTransforms, prop)) { return 'transform'; }\n if (is.dom(el) && (prop !== 'transform' && getCSSValue(el, prop))) { return 'css'; }\n if (el[prop] != null) { return 'object'; }\n}\n\nfunction getElementTransforms(el) {\n if (!is.dom(el)) { return; }\n var str = el.style.transform || '';\n var reg = /(\\w+)\\(([^)]*)\\)/g;\n var transforms = new Map();\n var m; while (m = reg.exec(str)) { transforms.set(m[1], m[2]); }\n return transforms;\n}\n\nfunction getTransformValue(el, propName, animatable, unit) {\n var defaultVal = stringContains(propName, 'scale') ? 1 : 0 + getTransformUnit(propName);\n var value = getElementTransforms(el).get(propName) || defaultVal;\n if (animatable) {\n animatable.transforms.list.set(propName, value);\n animatable.transforms['last'] = propName;\n }\n return unit ? convertPxToUnit(el, value, unit) : value;\n}\n\nfunction getOriginalTargetValue(target, propName, unit, animatable) {\n switch (getAnimationType(target, propName)) {\n case 'transform': return getTransformValue(target, propName, animatable, unit);\n case 'css': return getCSSValue(target, propName, unit);\n case 'attribute': return getAttribute(target, propName);\n default: return target[propName] || 0;\n }\n}\n\nfunction getRelativeValue(to, from) {\n var operator = /^(\\*=|\\+=|-=)/.exec(to);\n if (!operator) { return to; }\n var u = getUnit(to) || 0;\n var x = parseFloat(from);\n var y = parseFloat(to.replace(operator[0], ''));\n switch (operator[0][0]) {\n case '+': return x + y + u;\n case '-': return x - y + u;\n case '*': return x * y + u;\n }\n}\n\nfunction validateValue(val, unit) {\n if (is.col(val)) { return colorToRgb(val); }\n if (/\\s/g.test(val)) { return val; }\n var originalUnit = getUnit(val);\n var unitLess = originalUnit ? val.substr(0, val.length - originalUnit.length) : val;\n if (unit) { return unitLess + unit; }\n return unitLess;\n}\n\n// getTotalLength() equivalent for circle, rect, polyline, polygon and line shapes\n// adapted from https://gist.github.com/SebLambla/3e0550c496c236709744\n\nfunction getDistance(p1, p2) {\n return Math.sqrt(Math.pow(p2.x - p1.x, 2) + Math.pow(p2.y - p1.y, 2));\n}\n\nfunction getCircleLength(el) {\n return Math.PI * 2 * getAttribute(el, 'r');\n}\n\nfunction getRectLength(el) {\n return (getAttribute(el, 'width') * 2) + (getAttribute(el, 'height') * 2);\n}\n\nfunction getLineLength(el) {\n return getDistance(\n {x: getAttribute(el, 'x1'), y: getAttribute(el, 'y1')}, \n {x: getAttribute(el, 'x2'), y: getAttribute(el, 'y2')}\n );\n}\n\nfunction getPolylineLength(el) {\n var points = el.points;\n var totalLength = 0;\n var previousPos;\n for (var i = 0 ; i < points.numberOfItems; i++) {\n var currentPos = points.getItem(i);\n if (i > 0) { totalLength += getDistance(previousPos, currentPos); }\n previousPos = currentPos;\n }\n return totalLength;\n}\n\nfunction getPolygonLength(el) {\n var points = el.points;\n return getPolylineLength(el) + getDistance(points.getItem(points.numberOfItems - 1), points.getItem(0));\n}\n\n// Path animation\n\nfunction getTotalLength(el) {\n if (el.getTotalLength) { return el.getTotalLength(); }\n switch(el.tagName.toLowerCase()) {\n case 'circle': return getCircleLength(el);\n case 'rect': return getRectLength(el);\n case 'line': return getLineLength(el);\n case 'polyline': return getPolylineLength(el);\n case 'polygon': return getPolygonLength(el);\n }\n}\n\nfunction setDashoffset(el) {\n var pathLength = getTotalLength(el);\n el.setAttribute('stroke-dasharray', pathLength);\n return pathLength;\n}\n\n// Motion path\n\nfunction getParentSvgEl(el) {\n var parentEl = el.parentNode;\n while (is.svg(parentEl)) {\n if (!is.svg(parentEl.parentNode)) { break; }\n parentEl = parentEl.parentNode;\n }\n return parentEl;\n}\n\nfunction getParentSvg(pathEl, svgData) {\n var svg = svgData || {};\n var parentSvgEl = svg.el || getParentSvgEl(pathEl);\n var rect = parentSvgEl.getBoundingClientRect();\n var viewBoxAttr = getAttribute(parentSvgEl, 'viewBox');\n var width = rect.width;\n var height = rect.height;\n var viewBox = svg.viewBox || (viewBoxAttr ? viewBoxAttr.split(' ') : [0, 0, width, height]);\n return {\n el: parentSvgEl,\n viewBox: viewBox,\n x: viewBox[0] / 1,\n y: viewBox[1] / 1,\n w: width,\n h: height,\n vW: viewBox[2],\n vH: viewBox[3]\n }\n}\n\nfunction getPath(path, percent) {\n var pathEl = is.str(path) ? selectString(path)[0] : path;\n var p = percent || 100;\n return function(property) {\n return {\n property: property,\n el: pathEl,\n svg: getParentSvg(pathEl),\n totalLength: getTotalLength(pathEl) * (p / 100)\n }\n }\n}\n\nfunction getPathProgress(path, progress, isPathTargetInsideSVG) {\n function point(offset) {\n if ( offset === void 0 ) offset = 0;\n\n var l = progress + offset >= 1 ? progress + offset : 0;\n return path.el.getPointAtLength(l);\n }\n var svg = getParentSvg(path.el, path.svg);\n var p = point();\n var p0 = point(-1);\n var p1 = point(+1);\n var scaleX = isPathTargetInsideSVG ? 1 : svg.w / svg.vW;\n var scaleY = isPathTargetInsideSVG ? 1 : svg.h / svg.vH;\n switch (path.property) {\n case 'x': return (p.x - svg.x) * scaleX;\n case 'y': return (p.y - svg.y) * scaleY;\n case 'angle': return Math.atan2(p1.y - p0.y, p1.x - p0.x) * 180 / Math.PI;\n }\n}\n\n// Decompose value\n\nfunction decomposeValue(val, unit) {\n // const rgx = /-?\\d*\\.?\\d+/g; // handles basic numbers\n // const rgx = /[+-]?\\d+(?:\\.\\d+)?(?:[eE][+-]?\\d+)?/g; // handles exponents notation\n var rgx = /[+-]?\\d*\\.?\\d+(?:\\.\\d+)?(?:[eE][+-]?\\d+)?/g; // handles exponents notation\n var value = validateValue((is.pth(val) ? val.totalLength : val), unit) + '';\n return {\n original: value,\n numbers: value.match(rgx) ? value.match(rgx).map(Number) : [0],\n strings: (is.str(val) || unit) ? value.split(rgx) : []\n }\n}\n\n// Animatables\n\nfunction parseTargets(targets) {\n var targetsArray = targets ? (flattenArray(is.arr(targets) ? targets.map(toArray) : toArray(targets))) : [];\n return filterArray(targetsArray, function (item, pos, self) { return self.indexOf(item) === pos; });\n}\n\nfunction getAnimatables(targets) {\n var parsed = parseTargets(targets);\n return parsed.map(function (t, i) {\n return {target: t, id: i, total: parsed.length, transforms: { list: getElementTransforms(t) } };\n });\n}\n\n// Properties\n\nfunction normalizePropertyTweens(prop, tweenSettings) {\n var settings = cloneObject(tweenSettings);\n // Override duration if easing is a spring\n if (/^spring/.test(settings.easing)) { settings.duration = spring(settings.easing); }\n if (is.arr(prop)) {\n var l = prop.length;\n var isFromTo = (l === 2 && !is.obj(prop[0]));\n if (!isFromTo) {\n // Duration divided by the number of tweens\n if (!is.fnc(tweenSettings.duration)) { settings.duration = tweenSettings.duration / l; }\n } else {\n // Transform [from, to] values shorthand to a valid tween value\n prop = {value: prop};\n }\n }\n var propArray = is.arr(prop) ? prop : [prop];\n return propArray.map(function (v, i) {\n var obj = (is.obj(v) && !is.pth(v)) ? v : {value: v};\n // Default delay value should only be applied to the first tween\n if (is.und(obj.delay)) { obj.delay = !i ? tweenSettings.delay : 0; }\n // Default endDelay value should only be applied to the last tween\n if (is.und(obj.endDelay)) { obj.endDelay = i === propArray.length - 1 ? tweenSettings.endDelay : 0; }\n return obj;\n }).map(function (k) { return mergeObjects(k, settings); });\n}\n\n\nfunction flattenKeyframes(keyframes) {\n var propertyNames = filterArray(flattenArray(keyframes.map(function (key) { return Object.keys(key); })), function (p) { return is.key(p); })\n .reduce(function (a,b) { if (a.indexOf(b) < 0) { a.push(b); } return a; }, []);\n var properties = {};\n var loop = function ( i ) {\n var propName = propertyNames[i];\n properties[propName] = keyframes.map(function (key) {\n var newKey = {};\n for (var p in key) {\n if (is.key(p)) {\n if (p == propName) { newKey.value = key[p]; }\n } else {\n newKey[p] = key[p];\n }\n }\n return newKey;\n });\n };\n\n for (var i = 0; i < propertyNames.length; i++) loop( i );\n return properties;\n}\n\nfunction getProperties(tweenSettings, params) {\n var properties = [];\n var keyframes = params.keyframes;\n if (keyframes) { params = mergeObjects(flattenKeyframes(keyframes), params); }\n for (var p in params) {\n if (is.key(p)) {\n properties.push({\n name: p,\n tweens: normalizePropertyTweens(params[p], tweenSettings)\n });\n }\n }\n return properties;\n}\n\n// Tweens\n\nfunction normalizeTweenValues(tween, animatable) {\n var t = {};\n for (var p in tween) {\n var value = getFunctionValue(tween[p], animatable);\n if (is.arr(value)) {\n value = value.map(function (v) { return getFunctionValue(v, animatable); });\n if (value.length === 1) { value = value[0]; }\n }\n t[p] = value;\n }\n t.duration = parseFloat(t.duration);\n t.delay = parseFloat(t.delay);\n return t;\n}\n\nfunction normalizeTweens(prop, animatable) {\n var previousTween;\n return prop.tweens.map(function (t) {\n var tween = normalizeTweenValues(t, animatable);\n var tweenValue = tween.value;\n var to = is.arr(tweenValue) ? tweenValue[1] : tweenValue;\n var toUnit = getUnit(to);\n var originalValue = getOriginalTargetValue(animatable.target, prop.name, toUnit, animatable);\n var previousValue = previousTween ? previousTween.to.original : originalValue;\n var from = is.arr(tweenValue) ? tweenValue[0] : previousValue;\n var fromUnit = getUnit(from) || getUnit(originalValue);\n var unit = toUnit || fromUnit;\n if (is.und(to)) { to = previousValue; }\n tween.from = decomposeValue(from, unit);\n tween.to = decomposeValue(getRelativeValue(to, from), unit);\n tween.start = previousTween ? previousTween.end : 0;\n tween.end = tween.start + tween.delay + tween.duration + tween.endDelay;\n tween.easing = parseEasings(tween.easing, tween.duration);\n tween.isPath = is.pth(tweenValue);\n tween.isPathTargetInsideSVG = tween.isPath && is.svg(animatable.target);\n tween.isColor = is.col(tween.from.original);\n if (tween.isColor) { tween.round = 1; }\n previousTween = tween;\n return tween;\n });\n}\n\n// Tween progress\n\nvar setProgressValue = {\n css: function (t, p, v) { return t.style[p] = v; },\n attribute: function (t, p, v) { return t.setAttribute(p, v); },\n object: function (t, p, v) { return t[p] = v; },\n transform: function (t, p, v, transforms, manual) {\n transforms.list.set(p, v);\n if (p === transforms.last || manual) {\n var str = '';\n transforms.list.forEach(function (value, prop) { str += prop + \"(\" + value + \") \"; });\n t.style.transform = str;\n }\n }\n};\n\n// Set Value helper\n\nfunction setTargetsValue(targets, properties) {\n var animatables = getAnimatables(targets);\n animatables.forEach(function (animatable) {\n for (var property in properties) {\n var value = getFunctionValue(properties[property], animatable);\n var target = animatable.target;\n var valueUnit = getUnit(value);\n var originalValue = getOriginalTargetValue(target, property, valueUnit, animatable);\n var unit = valueUnit || getUnit(originalValue);\n var to = getRelativeValue(validateValue(value, unit), originalValue);\n var animType = getAnimationType(target, property);\n setProgressValue[animType](target, property, to, animatable.transforms, true);\n }\n });\n}\n\n// Animations\n\nfunction createAnimation(animatable, prop) {\n var animType = getAnimationType(animatable.target, prop.name);\n if (animType) {\n var tweens = normalizeTweens(prop, animatable);\n var lastTween = tweens[tweens.length - 1];\n return {\n type: animType,\n property: prop.name,\n animatable: animatable,\n tweens: tweens,\n duration: lastTween.end,\n delay: tweens[0].delay,\n endDelay: lastTween.endDelay\n }\n }\n}\n\nfunction getAnimations(animatables, properties) {\n return filterArray(flattenArray(animatables.map(function (animatable) {\n return properties.map(function (prop) {\n return createAnimation(animatable, prop);\n });\n })), function (a) { return !is.und(a); });\n}\n\n// Create Instance\n\nfunction getInstanceTimings(animations, tweenSettings) {\n var animLength = animations.length;\n var getTlOffset = function (anim) { return anim.timelineOffset ? anim.timelineOffset : 0; };\n var timings = {};\n timings.duration = animLength ? Math.max.apply(Math, animations.map(function (anim) { return getTlOffset(anim) + anim.duration; })) : tweenSettings.duration;\n timings.delay = animLength ? Math.min.apply(Math, animations.map(function (anim) { return getTlOffset(anim) + anim.delay; })) : tweenSettings.delay;\n timings.endDelay = animLength ? timings.duration - Math.max.apply(Math, animations.map(function (anim) { return getTlOffset(anim) + anim.duration - anim.endDelay; })) : tweenSettings.endDelay;\n return timings;\n}\n\nvar instanceID = 0;\n\nfunction createNewInstance(params) {\n var instanceSettings = replaceObjectProps(defaultInstanceSettings, params);\n var tweenSettings = replaceObjectProps(defaultTweenSettings, params);\n var properties = getProperties(tweenSettings, params);\n var animatables = getAnimatables(params.targets);\n var animations = getAnimations(animatables, properties);\n var timings = getInstanceTimings(animations, tweenSettings);\n var id = instanceID;\n instanceID++;\n return mergeObjects(instanceSettings, {\n id: id,\n children: [],\n animatables: animatables,\n animations: animations,\n duration: timings.duration,\n delay: timings.delay,\n endDelay: timings.endDelay\n });\n}\n\n// Core\n\nvar activeInstances = [];\n\nvar engine = (function () {\n var raf;\n\n function play() {\n if (!raf && (!isDocumentHidden() || !anime.suspendWhenDocumentHidden) && activeInstances.length > 0) {\n raf = requestAnimationFrame(step);\n }\n }\n function step(t) {\n // memo on algorithm issue:\n // dangerous iteration over mutable `activeInstances`\n // (that collection may be updated from within callbacks of `tick`-ed animation instances)\n var activeInstancesLength = activeInstances.length;\n var i = 0;\n while (i < activeInstancesLength) {\n var activeInstance = activeInstances[i];\n if (!activeInstance.paused) {\n activeInstance.tick(t);\n i++;\n } else {\n activeInstances.splice(i, 1);\n activeInstancesLength--;\n }\n }\n raf = i > 0 ? requestAnimationFrame(step) : undefined;\n }\n\n function handleVisibilityChange() {\n if (!anime.suspendWhenDocumentHidden) { return; }\n\n if (isDocumentHidden()) {\n // suspend ticks\n raf = cancelAnimationFrame(raf);\n } else { // is back to active tab\n // first adjust animations to consider the time that ticks were suspended\n activeInstances.forEach(\n function (instance) { return instance ._onDocumentVisibility(); }\n );\n engine();\n }\n }\n if (typeof document !== 'undefined') {\n document.addEventListener('visibilitychange', handleVisibilityChange);\n }\n\n return play;\n})();\n\nfunction isDocumentHidden() {\n return !!document && document.hidden;\n}\n\n// Public Instance\n\nfunction anime(params) {\n if ( params === void 0 ) params = {};\n\n\n var startTime = 0, lastTime = 0, now = 0;\n var children, childrenLength = 0;\n var resolve = null;\n\n function makePromise(instance) {\n var promise = window.Promise && new Promise(function (_resolve) { return resolve = _resolve; });\n instance.finished = promise;\n return promise;\n }\n\n var instance = createNewInstance(params);\n var promise = makePromise(instance);\n\n function toggleInstanceDirection() {\n var direction = instance.direction;\n if (direction !== 'alternate') {\n instance.direction = direction !== 'normal' ? 'normal' : 'reverse';\n }\n instance.reversed = !instance.reversed;\n children.forEach(function (child) { return child.reversed = instance.reversed; });\n }\n\n function adjustTime(time) {\n return instance.reversed ? instance.duration - time : time;\n }\n\n function resetTime() {\n startTime = 0;\n lastTime = adjustTime(instance.currentTime) * (1 / anime.speed);\n }\n\n function seekChild(time, child) {\n if (child) { child.seek(time - child.timelineOffset); }\n }\n\n function syncInstanceChildren(time) {\n if (!instance.reversePlayback) {\n for (var i = 0; i < childrenLength; i++) { seekChild(time, children[i]); }\n } else {\n for (var i$1 = childrenLength; i$1--;) { seekChild(time, children[i$1]); }\n }\n }\n\n function setAnimationsProgress(insTime) {\n var i = 0;\n var animations = instance.animations;\n var animationsLength = animations.length;\n while (i < animationsLength) {\n var anim = animations[i];\n var animatable = anim.animatable;\n var tweens = anim.tweens;\n var tweenLength = tweens.length - 1;\n var tween = tweens[tweenLength];\n // Only check for keyframes if there is more than one tween\n if (tweenLength) { tween = filterArray(tweens, function (t) { return (insTime < t.end); })[0] || tween; }\n var elapsed = minMax(insTime - tween.start - tween.delay, 0, tween.duration) / tween.duration;\n var eased = isNaN(elapsed) ? 1 : tween.easing(elapsed);\n var strings = tween.to.strings;\n var round = tween.round;\n var numbers = [];\n var toNumbersLength = tween.to.numbers.length;\n var progress = (void 0);\n for (var n = 0; n < toNumbersLength; n++) {\n var value = (void 0);\n var toNumber = tween.to.numbers[n];\n var fromNumber = tween.from.numbers[n] || 0;\n if (!tween.isPath) {\n value = fromNumber + (eased * (toNumber - fromNumber));\n } else {\n value = getPathProgress(tween.value, eased * toNumber, tween.isPathTargetInsideSVG);\n }\n if (round) {\n if (!(tween.isColor && n > 2)) {\n value = Math.round(value * round) / round;\n }\n }\n numbers.push(value);\n }\n // Manual Array.reduce for better performances\n var stringsLength = strings.length;\n if (!stringsLength) {\n progress = numbers[0];\n } else {\n progress = strings[0];\n for (var s = 0; s < stringsLength; s++) {\n var a = strings[s];\n var b = strings[s + 1];\n var n$1 = numbers[s];\n if (!isNaN(n$1)) {\n if (!b) {\n progress += n$1 + ' ';\n } else {\n progress += n$1 + b;\n }\n }\n }\n }\n setProgressValue[anim.type](animatable.target, anim.property, progress, animatable.transforms);\n anim.currentValue = progress;\n i++;\n }\n }\n\n function setCallback(cb) {\n if (instance[cb] && !instance.passThrough) { instance[cb](instance); }\n }\n\n function countIteration() {\n if (instance.remaining && instance.remaining !== true) {\n instance.remaining--;\n }\n }\n\n function setInstanceProgress(engineTime) {\n var insDuration = instance.duration;\n var insDelay = instance.delay;\n var insEndDelay = insDuration - instance.endDelay;\n var insTime = adjustTime(engineTime);\n instance.progress = minMax((insTime / insDuration) * 100, 0, 100);\n instance.reversePlayback = insTime < instance.currentTime;\n if (children) { syncInstanceChildren(insTime); }\n if (!instance.began && instance.currentTime > 0) {\n instance.began = true;\n setCallback('begin');\n }\n if (!instance.loopBegan && instance.currentTime > 0) {\n instance.loopBegan = true;\n setCallback('loopBegin');\n }\n if (insTime <= insDelay && instance.currentTime !== 0) {\n setAnimationsProgress(0);\n }\n if ((insTime >= insEndDelay && instance.currentTime !== insDuration) || !insDuration) {\n setAnimationsProgress(insDuration);\n }\n if (insTime > insDelay && insTime < insEndDelay) {\n if (!instance.changeBegan) {\n instance.changeBegan = true;\n instance.changeCompleted = false;\n setCallback('changeBegin');\n }\n setCallback('change');\n setAnimationsProgress(insTime);\n } else {\n if (instance.changeBegan) {\n instance.changeCompleted = true;\n instance.changeBegan = false;\n setCallback('changeComplete');\n }\n }\n instance.currentTime = minMax(insTime, 0, insDuration);\n if (instance.began) { setCallback('update'); }\n if (engineTime >= insDuration) {\n lastTime = 0;\n countIteration();\n if (!instance.remaining) {\n instance.paused = true;\n if (!instance.completed) {\n instance.completed = true;\n setCallback('loopComplete');\n setCallback('complete');\n if (!instance.passThrough && 'Promise' in window) {\n resolve();\n promise = makePromise(instance);\n }\n }\n } else {\n startTime = now;\n setCallback('loopComplete');\n instance.loopBegan = false;\n if (instance.direction === 'alternate') {\n toggleInstanceDirection();\n }\n }\n }\n }\n\n instance.reset = function() {\n var direction = instance.direction;\n instance.passThrough = false;\n instance.currentTime = 0;\n instance.progress = 0;\n instance.paused = true;\n instance.began = false;\n instance.loopBegan = false;\n instance.changeBegan = false;\n instance.completed = false;\n instance.changeCompleted = false;\n instance.reversePlayback = false;\n instance.reversed = direction === 'reverse';\n instance.remaining = instance.loop;\n children = instance.children;\n childrenLength = children.length;\n for (var i = childrenLength; i--;) { instance.children[i].reset(); }\n if (instance.reversed && instance.loop !== true || (direction === 'alternate' && instance.loop === 1)) { instance.remaining++; }\n setAnimationsProgress(instance.reversed ? instance.duration : 0);\n };\n\n // internal method (for engine) to adjust animation timings before restoring engine ticks (rAF)\n instance._onDocumentVisibility = resetTime;\n\n // Set Value helper\n\n instance.set = function(targets, properties) {\n setTargetsValue(targets, properties);\n return instance;\n };\n\n instance.tick = function(t) {\n now = t;\n if (!startTime) { startTime = now; }\n setInstanceProgress((now + (lastTime - startTime)) * anime.speed);\n };\n\n instance.seek = function(time) {\n setInstanceProgress(adjustTime(time));\n };\n\n instance.pause = function() {\n instance.paused = true;\n resetTime();\n };\n\n instance.play = function() {\n if (!instance.paused) { return; }\n if (instance.completed) { instance.reset(); }\n instance.paused = false;\n activeInstances.push(instance);\n resetTime();\n engine();\n };\n\n instance.reverse = function() {\n toggleInstanceDirection();\n instance.completed = instance.reversed ? false : true;\n resetTime();\n };\n\n instance.restart = function() {\n instance.reset();\n instance.play();\n };\n\n instance.remove = function(targets) {\n var targetsArray = parseTargets(targets);\n removeTargetsFromInstance(targetsArray, instance);\n };\n\n instance.reset();\n\n if (instance.autoplay) { instance.play(); }\n\n return instance;\n\n}\n\n// Remove targets from animation\n\nfunction removeTargetsFromAnimations(targetsArray, animations) {\n for (var a = animations.length; a--;) {\n if (arrayContains(targetsArray, animations[a].animatable.target)) {\n animations.splice(a, 1);\n }\n }\n}\n\nfunction removeTargetsFromInstance(targetsArray, instance) {\n var animations = instance.animations;\n var children = instance.children;\n removeTargetsFromAnimations(targetsArray, animations);\n for (var c = children.length; c--;) {\n var child = children[c];\n var childAnimations = child.animations;\n removeTargetsFromAnimations(targetsArray, childAnimations);\n if (!childAnimations.length && !child.children.length) { children.splice(c, 1); }\n }\n if (!animations.length && !children.length) { instance.pause(); }\n}\n\nfunction removeTargetsFromActiveInstances(targets) {\n var targetsArray = parseTargets(targets);\n for (var i = activeInstances.length; i--;) {\n var instance = activeInstances[i];\n removeTargetsFromInstance(targetsArray, instance);\n }\n}\n\n// Stagger helpers\n\nfunction stagger(val, params) {\n if ( params === void 0 ) params = {};\n\n var direction = params.direction || 'normal';\n var easing = params.easing ? parseEasings(params.easing) : null;\n var grid = params.grid;\n var axis = params.axis;\n var fromIndex = params.from || 0;\n var fromFirst = fromIndex === 'first';\n var fromCenter = fromIndex === 'center';\n var fromLast = fromIndex === 'last';\n var isRange = is.arr(val);\n var val1 = isRange ? parseFloat(val[0]) : parseFloat(val);\n var val2 = isRange ? parseFloat(val[1]) : 0;\n var unit = getUnit(isRange ? val[1] : val) || 0;\n var start = params.start || 0 + (isRange ? val1 : 0);\n var values = [];\n var maxValue = 0;\n return function (el, i, t) {\n if (fromFirst) { fromIndex = 0; }\n if (fromCenter) { fromIndex = (t - 1) / 2; }\n if (fromLast) { fromIndex = t - 1; }\n if (!values.length) {\n for (var index = 0; index < t; index++) {\n if (!grid) {\n values.push(Math.abs(fromIndex - index));\n } else {\n var fromX = !fromCenter ? fromIndex%grid[0] : (grid[0]-1)/2;\n var fromY = !fromCenter ? Math.floor(fromIndex/grid[0]) : (grid[1]-1)/2;\n var toX = index%grid[0];\n var toY = Math.floor(index/grid[0]);\n var distanceX = fromX - toX;\n var distanceY = fromY - toY;\n var value = Math.sqrt(distanceX * distanceX + distanceY * distanceY);\n if (axis === 'x') { value = -distanceX; }\n if (axis === 'y') { value = -distanceY; }\n values.push(value);\n }\n maxValue = Math.max.apply(Math, values);\n }\n if (easing) { values = values.map(function (val) { return easing(val / maxValue) * maxValue; }); }\n if (direction === 'reverse') { values = values.map(function (val) { return axis ? (val < 0) ? val * -1 : -val : Math.abs(maxValue - val); }); }\n }\n var spacing = isRange ? (val2 - val1) / maxValue : val1;\n return start + (spacing * (Math.round(values[i] * 100) / 100)) + unit;\n }\n}\n\n// Timeline\n\nfunction timeline(params) {\n if ( params === void 0 ) params = {};\n\n var tl = anime(params);\n tl.duration = 0;\n tl.add = function(instanceParams, timelineOffset) {\n var tlIndex = activeInstances.indexOf(tl);\n var children = tl.children;\n if (tlIndex > -1) { activeInstances.splice(tlIndex, 1); }\n function passThrough(ins) { ins.passThrough = true; }\n for (var i = 0; i < children.length; i++) { passThrough(children[i]); }\n var insParams = mergeObjects(instanceParams, replaceObjectProps(defaultTweenSettings, params));\n insParams.targets = insParams.targets || params.targets;\n var tlDuration = tl.duration;\n insParams.autoplay = false;\n insParams.direction = tl.direction;\n insParams.timelineOffset = is.und(timelineOffset) ? tlDuration : getRelativeValue(timelineOffset, tlDuration);\n passThrough(tl);\n tl.seek(insParams.timelineOffset);\n var ins = anime(insParams);\n passThrough(ins);\n children.push(ins);\n var timings = getInstanceTimings(children, params);\n tl.delay = timings.delay;\n tl.endDelay = timings.endDelay;\n tl.duration = timings.duration;\n tl.seek(0);\n tl.reset();\n if (tl.autoplay) { tl.play(); }\n return tl;\n };\n return tl;\n}\n\nanime.version = '3.2.1';\nanime.speed = 1;\n// TODO:#review: naming, documentation\nanime.suspendWhenDocumentHidden = true;\nanime.running = activeInstances;\nanime.remove = removeTargetsFromActiveInstances;\nanime.get = getOriginalTargetValue;\nanime.set = setTargetsValue;\nanime.convertPx = convertPxToUnit;\nanime.path = getPath;\nanime.setDashoffset = setDashoffset;\nanime.stagger = stagger;\nanime.timeline = timeline;\nanime.easing = parseEasings;\nanime.penner = penner;\nanime.random = function (min, max) { return Math.floor(Math.random() * (max - min + 1)) + min; };\n\nexport default anime;\n","import Sortable from 'sortablejs';\nimport anime from 'animejs/lib/anime.es.js';\nimport DataUtils from '../utils/DataUtils';\nimport Notfications from './Notifications.js';\nimport Maintenance from '../controllers/MaintenanceManager';\nconst notify = new Notfications();\n\nexport default class FileManager {\n\t//--------------------------\n\t// constructor\n\t//--------------------------\n\tconstructor(upload, input, imageList, fileList) {\n\t\tthis.mm = new Maintenance(null, null, document.getElementById('notify-progress'));\n\t\tthis.upload = upload;\n\t\tthis.input = input;\n\t\tthis.imageList = imageList;\n\t\tthis.fileList = fileList;\n\t\tthis.accetableFiles = [\n\t\t\t'image/jpeg',\n\t\t\t'image/gif',\n\t\t\t'image/png',\n\t\t\t'image/svg',\n\t\t\t'audio/mpeg',\n\t\t\t'video/mp4',\n\t\t\t'application/pdf',\n\t\t\t'text/plain',\n\t\t\t'text/rtf'\n\t\t];\n\t\tthis.files = [];\n\t\tthis.sortedFiles = [];\n\t\tthis.storage = [];\n\t\tthis.mediaSort = Sortable.create(this.imageList, {\n\t\t\tanimation: 150,\n\t\t\tonUpdate: () => {\n\t\t\t\t//notify.alert('REINDEXING MEDIA', null);\n\t\t\t\t//this.updateFiles();\n\t\t\t}\n\t\t});\n\t\tthis.fileSort = Sortable.create(this.fileList, {\n\t\t\tanimation: 150,\n\t\t\tonUpdate: () => {\n\t\t\t\t//notify.alert('REINDEXING FILES', null);\n\t\t\t\t//this.updateFiles();\n\t\t\t}\n\t\t});\n\t\tthis.start();\n\t}\n\t//--------------------------\n\t// methods\n\t//--------------------------\n\tstart() {\n\t\tthis.upload.addEventListener('dragover', e => this.handleFileActions(e), false);\n\t\tthis.upload.addEventListener('drop', e => this.handleFileActions(e), false);\n\t\tthis.input.addEventListener('change', e => this.handleFileActions(e), false);\n\t\tvar removeMedia = document.querySelectorAll('.media-remove');\n\t\tfor (var i = 0, length = removeMedia.length; i < length; i++) {\n\t\t\tremoveMedia[i].addEventListener(\n\t\t\t\t'click',\n\t\t\t\te => this.removeFile(e, 'media'),\n\t\t\t\tfalse\n\t\t\t);\n\t\t}\n\t}\n\tgetFileOrder() {\n\t\tlet imgList = '';\n\t\tlet fileList = '';\n\t\tfor (var i = 0, length = this.imageList.childNodes.length; i < length; i++) {\n\t\t\tlet div = this.imageList.childNodes[i];\n\t\t\timgList = imgList + div.getAttribute('data-source') + ',';\n\t\t}\n\t\tfor (var i = 0, length = this.fileList.childNodes.length; i < length; i++) {\n\t\t\tlet div = this.fileList.childNodes[i];\n\t\t\tfileList = fileList + div.getAttribute('data-source') + ',';\n\t\t}\n\t\tlet media = { images: imgList, files: fileList };\n\t\treturn media;\n\t}\n\n\tsortFiles(files) {\n\t\tvar self = this;\n\t\tfor (var i = 0, file; (file = files[i]); i++) {\n\t\t\tvar reader = new FileReader();\n\t\t\t// Closure to capture the file information\n\t\t\treader.onload = (theFile => {\n\t\t\t\treturn function (f) {\n\t\t\t\t\t//create remove button object\n\t\t\t\t\tvar remove = document.createElement('button');\n\t\t\t\t\tvar removeIcon = document.createElement('i');\n\t\t\t\t\tremoveIcon.classList.add('ti', 'ti-x');\n\t\t\t\t\tremove.className = 'media-remove';\n\t\t\t\t\tremove.appendChild(removeIcon);\n\t\t\t\t\t//remove.setAttribute('id', mediaCount);\n\t\t\t\t\tremove.addEventListener(\n\t\t\t\t\t\t'click',\n\t\t\t\t\t\te => self.removeFile(e, 'media'),\n\t\t\t\t\t\tfalse\n\t\t\t\t\t);\n\n\t\t\t\t\t//upload the file\n\t\t\t\t\tlet upload = new FormData();\n\t\t\t\t\tupload.enctype = 'multipart/form-data';\n\t\t\t\t\tupload.append('upload_files[]', theFile, theFile.name);\n\t\t\t\t\tlet item = null;\n\t\t\t\t\tlet progress = null;\n\n\t\t\t\t\t// sort files\n\t\t\t\t\tswitch (theFile.type) {\n\t\t\t\t\t\tcase 'image/jpg':\n\t\t\t\t\t\tcase 'image/jpeg':\n\t\t\t\t\t\tcase 'image/gif':\n\t\t\t\t\t\tcase 'image/svg':\n\t\t\t\t\t\tcase 'image/png':\n\t\t\t\t\t\t\titem = self.itemFactory('img-item');\n\t\t\t\t\t\t\tprogress = document.getElementById(\n\t\t\t\t\t\t\t\t'pgs' + item.getAttribute('id')\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\tself.mm\n\t\t\t\t\t\t\t\t.filesUpload(theFile.type, upload, progress)\n\t\t\t\t\t\t\t\t.then(result => {\n\t\t\t\t\t\t\t\t\titem.setAttribute('data-source', result.filePath);\n\t\t\t\t\t\t\t\t\titem.style.background =\n\t\t\t\t\t\t\t\t\t\t'url(' +\n\t\t\t\t\t\t\t\t\t\tf.target.result +\n\t\t\t\t\t\t\t\t\t\t') no-repeat center center / cover';\n\t\t\t\t\t\t\t\t\tanime({\n\t\t\t\t\t\t\t\t\t\ttargets: progress,\n\t\t\t\t\t\t\t\t\t\twidth: 0,\n\t\t\t\t\t\t\t\t\t\teasing: 'easeInOutQuint',\n\t\t\t\t\t\t\t\t\t\tduration: 1000,\n\t\t\t\t\t\t\t\t\t\tcomplete: () => {\n\t\t\t\t\t\t\t\t\t\t\titem.removeChild(progress);\n\t\t\t\t\t\t\t\t\t\t\titem.appendChild(remove);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'video/mp4':\n\t\t\t\t\t\t\titem = self.itemFactory('video-item');\n\t\t\t\t\t\t\tprogress = document.getElementById(\n\t\t\t\t\t\t\t\t'pgs' + item.getAttribute('id')\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\tself.mm\n\t\t\t\t\t\t\t\t.filesUpload(theFile.type, upload, progress)\n\t\t\t\t\t\t\t\t.then(result => {\n\t\t\t\t\t\t\t\t\titem.setAttribute('data-source', result.filePath);\n\t\t\t\t\t\t\t\t\tlet video = document.createElement('video');\n\t\t\t\t\t\t\t\t\tlet source = document.createElement('source');\n\t\t\t\t\t\t\t\t\tsource.src = f.target.result;\n\t\t\t\t\t\t\t\t\tvideo.appendChild(source);\n\t\t\t\t\t\t\t\t\titem.appendChild(video);\n\t\t\t\t\t\t\t\t\tanime({\n\t\t\t\t\t\t\t\t\t\ttargets: progress,\n\t\t\t\t\t\t\t\t\t\twidth: 0,\n\t\t\t\t\t\t\t\t\t\teasing: 'easeInOutQuint',\n\t\t\t\t\t\t\t\t\t\tduration: 1000,\n\t\t\t\t\t\t\t\t\t\tcomplete: () => {\n\t\t\t\t\t\t\t\t\t\t\titem.removeChild(progress);\n\t\t\t\t\t\t\t\t\t\t\titem.appendChild(remove);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'audio/mpeg':\n\t\t\t\t\t\t\titem = self.itemFactory('audio-item');\n\t\t\t\t\t\t\tprogress = document.getElementById(\n\t\t\t\t\t\t\t\t'pgs' + item.getAttribute('id')\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\tself.mm\n\t\t\t\t\t\t\t\t.filesUpload(theFile.type, upload, progress)\n\t\t\t\t\t\t\t\t.then(result => {\n\t\t\t\t\t\t\t\t\titem.setAttribute('data-source', result.filePath);\n\t\t\t\t\t\t\t\t\tlet audio = document.createElement('audio');\n\t\t\t\t\t\t\t\t\taudio.setAttribute('controls', true);\n\t\t\t\t\t\t\t\t\tlet source = document.createElement('source');\n\t\t\t\t\t\t\t\t\tsource.src = f.target.result;\n\t\t\t\t\t\t\t\t\taudio.appendChild(source);\n\t\t\t\t\t\t\t\t\titem.appendChild(audio);\n\t\t\t\t\t\t\t\t\tanime({\n\t\t\t\t\t\t\t\t\t\ttargets: progress,\n\t\t\t\t\t\t\t\t\t\twidth: 0,\n\t\t\t\t\t\t\t\t\t\teasing: 'easeInOutQuint',\n\t\t\t\t\t\t\t\t\t\tduration: 1000,\n\t\t\t\t\t\t\t\t\t\tcomplete: () => {\n\t\t\t\t\t\t\t\t\t\t\titem.removeChild(progress);\n\t\t\t\t\t\t\t\t\t\t\titem.appendChild(remove);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'application/pdf':\n\t\t\t\t\t\tcase 'text/plain':\n\t\t\t\t\t\tcase 'text/rtf':\n\t\t\t\t\t\t\titem = self.itemFactory('file-item');\n\t\t\t\t\t\t\tprogress = document.getElementById(\n\t\t\t\t\t\t\t\t'pgs' + item.getAttribute('id')\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\tself.mm\n\t\t\t\t\t\t\t\t.filesUpload(theFile.type, upload, progress)\n\t\t\t\t\t\t\t\t.then(result => {\n\t\t\t\t\t\t\t\t\titem.setAttribute('data-source', result.filePath);\n\t\t\t\t\t\t\t\t\tlet link = document.createElement('a');\n\t\t\t\t\t\t\t\t\tlink.href = result.filePath;\n\t\t\t\t\t\t\t\t\tlink.innerHTML = result.fileName;\n\t\t\t\t\t\t\t\t\titem.appendChild(link);\n\t\t\t\t\t\t\t\t\tanime({\n\t\t\t\t\t\t\t\t\t\ttargets: progress,\n\t\t\t\t\t\t\t\t\t\twidth: 0,\n\t\t\t\t\t\t\t\t\t\teasing: 'easeInOutQuint',\n\t\t\t\t\t\t\t\t\t\tduration: 1000,\n\t\t\t\t\t\t\t\t\t\tcomplete: () => {\n\t\t\t\t\t\t\t\t\t\t\titem.removeChild(progress);\n\t\t\t\t\t\t\t\t\t\t\titem.appendChild(remove);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t})(file);\n\t\t\t// Read in the image file as a data URL.\n\t\t\treader.readAsDataURL(file);\n\t\t}\n\t}\n\titemFactory(type = null) {\n\t\t//get counts for lists\n\t\tvar mediaCount = this.imageList.childNodes.length;\n\t\tvar fileCount = this.fileList.childNodes.length;\n\t\tif (mediaCount < 0) mediaCount = 0;\n\t\tif (fileCount < 0) fileCount = 0;\n\t\tvar item = document.createElement('div');\n\t\titem.className = type;\n\t\tvar progress = document.createElement('div');\n\t\tprogress.className = 'item-progress';\n\t\titem.appendChild(progress);\n\n\t\tif (type == 'img-item' || type == 'video-item') {\n\t\t\tthis.imageList.appendChild(item);\n\t\t\tprogress.setAttribute('id', 'pgs' + mediaCount);\n\t\t\titem.setAttribute('id', mediaCount);\n\t\t} else {\n\t\t\tthis.fileList.appendChild(item);\n\t\t\tprogress.setAttribute('id', 'pgs' + fileCount);\n\t\t\titem.setAttribute('id', fileCount);\n\t\t}\n\t\treturn item;\n\t}\n\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n\tremoveFile(e) {\n\t\tvar item = e.target.parentNode.parentNode;\n\t\tswitch (item.className) {\n\t\t\tcase 'img-item':\n\t\t\tcase 'video-item':\n\t\t\t\tthis.imageList.removeChild(item);\n\t\t\t\tbreak;\n\t\t\tcase 'audio-item':\n\t\t\tcase 'file-item':\n\t\t\t\tthis.fileList.removeChild(item);\n\t\t\t\tbreak;\n\t\t}\n\t\tnotify.alert('File Removed!', true);\n\t}\n\n\thandleFileActions(e) {\n\t\te.stopPropagation();\n\t\te.preventDefault();\n\t\tlet self = this;\n\t\tlet rawList = [];\n\t\tlet sortedList = [];\n\t\tlet notOnTheList = [];\n\n\t\tswitch (e.type) {\n\t\t\tcase 'dragover':\n\t\t\t\te.dataTransfer.dropEffect = 'copy'; // Explicitly show this is a copy.\n\t\t\t\tbreak;\n\t\t\tcase 'change':\n\t\t\tcase 'drop':\n\t\t\t\te.type == 'drop'\n\t\t\t\t\t? (rawList = e.dataTransfer.files)\n\t\t\t\t\t: (rawList = e.target.files);\n\t\t\t\tfor (var i = 0, f; (f = rawList[i]); i++) {\n\t\t\t\t\t// check witch files are cool to upload\n\t\t\t\t\tif (this.accetableFiles.includes(f.type)) {\n\t\t\t\t\t\tsortedList.push(f);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tnotOnTheList.push(f);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//send for sorting\n\t\t\t\tself.sortFiles(sortedList);\n\t\t\t\tbreak;\n\t\t}\n\t}\n}\n","/**!\n * Sortable 1.15.0\n * @author\tRubaXa <trash@rubaxa.org>\n * @author\towenm <owen23355@gmail.com>\n * @license MIT\n */\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n\n if (enumerableOnly) {\n symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n }\n\n keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n\n if (i % 2) {\n ownKeys(Object(source), true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n\n return target;\n}\n\nfunction _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n _typeof = function (obj) {\n return typeof obj;\n };\n } else {\n _typeof = function (obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n\n return _typeof(obj);\n}\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n\n var target = _objectWithoutPropertiesLoose(source, excluded);\n\n var key, i;\n\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n\n return target;\n}\n\nfunction _toConsumableArray(arr) {\n return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();\n}\n\nfunction _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return _arrayLikeToArray(arr);\n}\n\nfunction _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter);\n}\n\nfunction _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);\n}\n\nfunction _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n\n for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];\n\n return arr2;\n}\n\nfunction _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\n\nvar version = \"1.15.0\";\n\nfunction userAgent(pattern) {\n if (typeof window !== 'undefined' && window.navigator) {\n return !! /*@__PURE__*/navigator.userAgent.match(pattern);\n }\n}\n\nvar IE11OrLess = userAgent(/(?:Trident.*rv[ :]?11\\.|msie|iemobile|Windows Phone)/i);\nvar Edge = userAgent(/Edge/i);\nvar FireFox = userAgent(/firefox/i);\nvar Safari = userAgent(/safari/i) && !userAgent(/chrome/i) && !userAgent(/android/i);\nvar IOS = userAgent(/iP(ad|od|hone)/i);\nvar ChromeForAndroid = userAgent(/chrome/i) && userAgent(/android/i);\n\nvar captureMode = {\n capture: false,\n passive: false\n};\n\nfunction on(el, event, fn) {\n el.addEventListener(event, fn, !IE11OrLess && captureMode);\n}\n\nfunction off(el, event, fn) {\n el.removeEventListener(event, fn, !IE11OrLess && captureMode);\n}\n\nfunction matches(\n/**HTMLElement*/\nel,\n/**String*/\nselector) {\n if (!selector) return;\n selector[0] === '>' && (selector = selector.substring(1));\n\n if (el) {\n try {\n if (el.matches) {\n return el.matches(selector);\n } else if (el.msMatchesSelector) {\n return el.msMatchesSelector(selector);\n } else if (el.webkitMatchesSelector) {\n return el.webkitMatchesSelector(selector);\n }\n } catch (_) {\n return false;\n }\n }\n\n return false;\n}\n\nfunction getParentOrHost(el) {\n return el.host && el !== document && el.host.nodeType ? el.host : el.parentNode;\n}\n\nfunction closest(\n/**HTMLElement*/\nel,\n/**String*/\nselector,\n/**HTMLElement*/\nctx, includeCTX) {\n if (el) {\n ctx = ctx || document;\n\n do {\n if (selector != null && (selector[0] === '>' ? el.parentNode === ctx && matches(el, selector) : matches(el, selector)) || includeCTX && el === ctx) {\n return el;\n }\n\n if (el === ctx) break;\n /* jshint boss:true */\n } while (el = getParentOrHost(el));\n }\n\n return null;\n}\n\nvar R_SPACE = /\\s+/g;\n\nfunction toggleClass(el, name, state) {\n if (el && name) {\n if (el.classList) {\n el.classList[state ? 'add' : 'remove'](name);\n } else {\n var className = (' ' + el.className + ' ').replace(R_SPACE, ' ').replace(' ' + name + ' ', ' ');\n el.className = (className + (state ? ' ' + name : '')).replace(R_SPACE, ' ');\n }\n }\n}\n\nfunction css(el, prop, val) {\n var style = el && el.style;\n\n if (style) {\n if (val === void 0) {\n if (document.defaultView && document.defaultView.getComputedStyle) {\n val = document.defaultView.getComputedStyle(el, '');\n } else if (el.currentStyle) {\n val = el.currentStyle;\n }\n\n return prop === void 0 ? val : val[prop];\n } else {\n if (!(prop in style) && prop.indexOf('webkit') === -1) {\n prop = '-webkit-' + prop;\n }\n\n style[prop] = val + (typeof val === 'string' ? '' : 'px');\n }\n }\n}\n\nfunction matrix(el, selfOnly) {\n var appliedTransforms = '';\n\n if (typeof el === 'string') {\n appliedTransforms = el;\n } else {\n do {\n var transform = css(el, 'transform');\n\n if (transform && transform !== 'none') {\n appliedTransforms = transform + ' ' + appliedTransforms;\n }\n /* jshint boss:true */\n\n } while (!selfOnly && (el = el.parentNode));\n }\n\n var matrixFn = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;\n /*jshint -W056 */\n\n return matrixFn && new matrixFn(appliedTransforms);\n}\n\nfunction find(ctx, tagName, iterator) {\n if (ctx) {\n var list = ctx.getElementsByTagName(tagName),\n i = 0,\n n = list.length;\n\n if (iterator) {\n for (; i < n; i++) {\n iterator(list[i], i);\n }\n }\n\n return list;\n }\n\n return [];\n}\n\nfunction getWindowScrollingElement() {\n var scrollingElement = document.scrollingElement;\n\n if (scrollingElement) {\n return scrollingElement;\n } else {\n return document.documentElement;\n }\n}\n/**\n * Returns the \"bounding client rect\" of given element\n * @param {HTMLElement} el The element whose boundingClientRect is wanted\n * @param {[Boolean]} relativeToContainingBlock Whether the rect should be relative to the containing block of (including) the container\n * @param {[Boolean]} relativeToNonStaticParent Whether the rect should be relative to the relative parent of (including) the contaienr\n * @param {[Boolean]} undoScale Whether the container's scale() should be undone\n * @param {[HTMLElement]} container The parent the element will be placed in\n * @return {Object} The boundingClientRect of el, with specified adjustments\n */\n\n\nfunction getRect(el, relativeToContainingBlock, relativeToNonStaticParent, undoScale, container) {\n if (!el.getBoundingClientRect && el !== window) return;\n var elRect, top, left, bottom, right, height, width;\n\n if (el !== window && el.parentNode && el !== getWindowScrollingElement()) {\n elRect = el.getBoundingClientRect();\n top = elRect.top;\n left = elRect.left;\n bottom = elRect.bottom;\n right = elRect.right;\n height = elRect.height;\n width = elRect.width;\n } else {\n top = 0;\n left = 0;\n bottom = window.innerHeight;\n right = window.innerWidth;\n height = window.innerHeight;\n width = window.innerWidth;\n }\n\n if ((relativeToContainingBlock || relativeToNonStaticParent) && el !== window) {\n // Adjust for translate()\n container = container || el.parentNode; // solves #1123 (see: https://stackoverflow.com/a/37953806/6088312)\n // Not needed on <= IE11\n\n if (!IE11OrLess) {\n do {\n if (container && container.getBoundingClientRect && (css(container, 'transform') !== 'none' || relativeToNonStaticParent && css(container, 'position') !== 'static')) {\n var containerRect = container.getBoundingClientRect(); // Set relative to edges of padding box of container\n\n top -= containerRect.top + parseInt(css(container, 'border-top-width'));\n left -= containerRect.left + parseInt(css(container, 'border-left-width'));\n bottom = top + elRect.height;\n right = left + elRect.width;\n break;\n }\n /* jshint boss:true */\n\n } while (container = container.parentNode);\n }\n }\n\n if (undoScale && el !== window) {\n // Adjust for scale()\n var elMatrix = matrix(container || el),\n scaleX = elMatrix && elMatrix.a,\n scaleY = elMatrix && elMatrix.d;\n\n if (elMatrix) {\n top /= scaleY;\n left /= scaleX;\n width /= scaleX;\n height /= scaleY;\n bottom = top + height;\n right = left + width;\n }\n }\n\n return {\n top: top,\n left: left,\n bottom: bottom,\n right: right,\n width: width,\n height: height\n };\n}\n/**\n * Checks if a side of an element is scrolled past a side of its parents\n * @param {HTMLElement} el The element who's side being scrolled out of view is in question\n * @param {String} elSide Side of the element in question ('top', 'left', 'right', 'bottom')\n * @param {String} parentSide Side of the parent in question ('top', 'left', 'right', 'bottom')\n * @return {HTMLElement} The parent scroll element that the el's side is scrolled past, or null if there is no such element\n */\n\n\nfunction isScrolledPast(el, elSide, parentSide) {\n var parent = getParentAutoScrollElement(el, true),\n elSideVal = getRect(el)[elSide];\n /* jshint boss:true */\n\n while (parent) {\n var parentSideVal = getRect(parent)[parentSide],\n visible = void 0;\n\n if (parentSide === 'top' || parentSide === 'left') {\n visible = elSideVal >= parentSideVal;\n } else {\n visible = elSideVal <= parentSideVal;\n }\n\n if (!visible) return parent;\n if (parent === getWindowScrollingElement()) break;\n parent = getParentAutoScrollElement(parent, false);\n }\n\n return false;\n}\n/**\n * Gets nth child of el, ignoring hidden children, sortable's elements (does not ignore clone if it's visible)\n * and non-draggable elements\n * @param {HTMLElement} el The parent element\n * @param {Number} childNum The index of the child\n * @param {Object} options Parent Sortable's options\n * @return {HTMLElement} The child at index childNum, or null if not found\n */\n\n\nfunction getChild(el, childNum, options, includeDragEl) {\n var currentChild = 0,\n i = 0,\n children = el.children;\n\n while (i < children.length) {\n if (children[i].style.display !== 'none' && children[i] !== Sortable.ghost && (includeDragEl || children[i] !== Sortable.dragged) && closest(children[i], options.draggable, el, false)) {\n if (currentChild === childNum) {\n return children[i];\n }\n\n currentChild++;\n }\n\n i++;\n }\n\n return null;\n}\n/**\n * Gets the last child in the el, ignoring ghostEl or invisible elements (clones)\n * @param {HTMLElement} el Parent element\n * @param {selector} selector Any other elements that should be ignored\n * @return {HTMLElement} The last child, ignoring ghostEl\n */\n\n\nfunction lastChild(el, selector) {\n var last = el.lastElementChild;\n\n while (last && (last === Sortable.ghost || css(last, 'display') === 'none' || selector && !matches(last, selector))) {\n last = last.previousElementSibling;\n }\n\n return last || null;\n}\n/**\n * Returns the index of an element within its parent for a selected set of\n * elements\n * @param {HTMLElement} el\n * @param {selector} selector\n * @return {number}\n */\n\n\nfunction index(el, selector) {\n var index = 0;\n\n if (!el || !el.parentNode) {\n return -1;\n }\n /* jshint boss:true */\n\n\n while (el = el.previousElementSibling) {\n if (el.nodeName.toUpperCase() !== 'TEMPLATE' && el !== Sortable.clone && (!selector || matches(el, selector))) {\n index++;\n }\n }\n\n return index;\n}\n/**\n * Returns the scroll offset of the given element, added with all the scroll offsets of parent elements.\n * The value is returned in real pixels.\n * @param {HTMLElement} el\n * @return {Array} Offsets in the format of [left, top]\n */\n\n\nfunction getRelativeScrollOffset(el) {\n var offsetLeft = 0,\n offsetTop = 0,\n winScroller = getWindowScrollingElement();\n\n if (el) {\n do {\n var elMatrix = matrix(el),\n scaleX = elMatrix.a,\n scaleY = elMatrix.d;\n offsetLeft += el.scrollLeft * scaleX;\n offsetTop += el.scrollTop * scaleY;\n } while (el !== winScroller && (el = el.parentNode));\n }\n\n return [offsetLeft, offsetTop];\n}\n/**\n * Returns the index of the object within the given array\n * @param {Array} arr Array that may or may not hold the object\n * @param {Object} obj An object that has a key-value pair unique to and identical to a key-value pair in the object you want to find\n * @return {Number} The index of the object in the array, or -1\n */\n\n\nfunction indexOfObject(arr, obj) {\n for (var i in arr) {\n if (!arr.hasOwnProperty(i)) continue;\n\n for (var key in obj) {\n if (obj.hasOwnProperty(key) && obj[key] === arr[i][key]) return Number(i);\n }\n }\n\n return -1;\n}\n\nfunction getParentAutoScrollElement(el, includeSelf) {\n // skip to window\n if (!el || !el.getBoundingClientRect) return getWindowScrollingElement();\n var elem = el;\n var gotSelf = false;\n\n do {\n // we don't need to get elem css if it isn't even overflowing in the first place (performance)\n if (elem.clientWidth < elem.scrollWidth || elem.clientHeight < elem.scrollHeight) {\n var elemCSS = css(elem);\n\n if (elem.clientWidth < elem.scrollWidth && (elemCSS.overflowX == 'auto' || elemCSS.overflowX == 'scroll') || elem.clientHeight < elem.scrollHeight && (elemCSS.overflowY == 'auto' || elemCSS.overflowY == 'scroll')) {\n if (!elem.getBoundingClientRect || elem === document.body) return getWindowScrollingElement();\n if (gotSelf || includeSelf) return elem;\n gotSelf = true;\n }\n }\n /* jshint boss:true */\n\n } while (elem = elem.parentNode);\n\n return getWindowScrollingElement();\n}\n\nfunction extend(dst, src) {\n if (dst && src) {\n for (var key in src) {\n if (src.hasOwnProperty(key)) {\n dst[key] = src[key];\n }\n }\n }\n\n return dst;\n}\n\nfunction isRectEqual(rect1, rect2) {\n return Math.round(rect1.top) === Math.round(rect2.top) && Math.round(rect1.left) === Math.round(rect2.left) && Math.round(rect1.height) === Math.round(rect2.height) && Math.round(rect1.width) === Math.round(rect2.width);\n}\n\nvar _throttleTimeout;\n\nfunction throttle(callback, ms) {\n return function () {\n if (!_throttleTimeout) {\n var args = arguments,\n _this = this;\n\n if (args.length === 1) {\n callback.call(_this, args[0]);\n } else {\n callback.apply(_this, args);\n }\n\n _throttleTimeout = setTimeout(function () {\n _throttleTimeout = void 0;\n }, ms);\n }\n };\n}\n\nfunction cancelThrottle() {\n clearTimeout(_throttleTimeout);\n _throttleTimeout = void 0;\n}\n\nfunction scrollBy(el, x, y) {\n el.scrollLeft += x;\n el.scrollTop += y;\n}\n\nfunction clone(el) {\n var Polymer = window.Polymer;\n var $ = window.jQuery || window.Zepto;\n\n if (Polymer && Polymer.dom) {\n return Polymer.dom(el).cloneNode(true);\n } else if ($) {\n return $(el).clone(true)[0];\n } else {\n return el.cloneNode(true);\n }\n}\n\nfunction setRect(el, rect) {\n css(el, 'position', 'absolute');\n css(el, 'top', rect.top);\n css(el, 'left', rect.left);\n css(el, 'width', rect.width);\n css(el, 'height', rect.height);\n}\n\nfunction unsetRect(el) {\n css(el, 'position', '');\n css(el, 'top', '');\n css(el, 'left', '');\n css(el, 'width', '');\n css(el, 'height', '');\n}\n\nvar expando = 'Sortable' + new Date().getTime();\n\nfunction AnimationStateManager() {\n var animationStates = [],\n animationCallbackId;\n return {\n captureAnimationState: function captureAnimationState() {\n animationStates = [];\n if (!this.options.animation) return;\n var children = [].slice.call(this.el.children);\n children.forEach(function (child) {\n if (css(child, 'display') === 'none' || child === Sortable.ghost) return;\n animationStates.push({\n target: child,\n rect: getRect(child)\n });\n\n var fromRect = _objectSpread2({}, animationStates[animationStates.length - 1].rect); // If animating: compensate for current animation\n\n\n if (child.thisAnimationDuration) {\n var childMatrix = matrix(child, true);\n\n if (childMatrix) {\n fromRect.top -= childMatrix.f;\n fromRect.left -= childMatrix.e;\n }\n }\n\n child.fromRect = fromRect;\n });\n },\n addAnimationState: function addAnimationState(state) {\n animationStates.push(state);\n },\n removeAnimationState: function removeAnimationState(target) {\n animationStates.splice(indexOfObject(animationStates, {\n target: target\n }), 1);\n },\n animateAll: function animateAll(callback) {\n var _this = this;\n\n if (!this.options.animation) {\n clearTimeout(animationCallbackId);\n if (typeof callback === 'function') callback();\n return;\n }\n\n var animating = false,\n animationTime = 0;\n animationStates.forEach(function (state) {\n var time = 0,\n target = state.target,\n fromRect = target.fromRect,\n toRect = getRect(target),\n prevFromRect = target.prevFromRect,\n prevToRect = target.prevToRect,\n animatingRect = state.rect,\n targetMatrix = matrix(target, true);\n\n if (targetMatrix) {\n // Compensate for current animation\n toRect.top -= targetMatrix.f;\n toRect.left -= targetMatrix.e;\n }\n\n target.toRect = toRect;\n\n if (target.thisAnimationDuration) {\n // Could also check if animatingRect is between fromRect and toRect\n if (isRectEqual(prevFromRect, toRect) && !isRectEqual(fromRect, toRect) && // Make sure animatingRect is on line between toRect & fromRect\n (animatingRect.top - toRect.top) / (animatingRect.left - toRect.left) === (fromRect.top - toRect.top) / (fromRect.left - toRect.left)) {\n // If returning to same place as started from animation and on same axis\n time = calculateRealTime(animatingRect, prevFromRect, prevToRect, _this.options);\n }\n } // if fromRect != toRect: animate\n\n\n if (!isRectEqual(toRect, fromRect)) {\n target.prevFromRect = fromRect;\n target.prevToRect = toRect;\n\n if (!time) {\n time = _this.options.animation;\n }\n\n _this.animate(target, animatingRect, toRect, time);\n }\n\n if (time) {\n animating = true;\n animationTime = Math.max(animationTime, time);\n clearTimeout(target.animationResetTimer);\n target.animationResetTimer = setTimeout(function () {\n target.animationTime = 0;\n target.prevFromRect = null;\n target.fromRect = null;\n target.prevToRect = null;\n target.thisAnimationDuration = null;\n }, time);\n target.thisAnimationDuration = time;\n }\n });\n clearTimeout(animationCallbackId);\n\n if (!animating) {\n if (typeof callback === 'function') callback();\n } else {\n animationCallbackId = setTimeout(function () {\n if (typeof callback === 'function') callback();\n }, animationTime);\n }\n\n animationStates = [];\n },\n animate: function animate(target, currentRect, toRect, duration) {\n if (duration) {\n css(target, 'transition', '');\n css(target, 'transform', '');\n var elMatrix = matrix(this.el),\n scaleX = elMatrix && elMatrix.a,\n scaleY = elMatrix && elMatrix.d,\n translateX = (currentRect.left - toRect.left) / (scaleX || 1),\n translateY = (currentRect.top - toRect.top) / (scaleY || 1);\n target.animatingX = !!translateX;\n target.animatingY = !!translateY;\n css(target, 'transform', 'translate3d(' + translateX + 'px,' + translateY + 'px,0)');\n this.forRepaintDummy = repaint(target); // repaint\n\n css(target, 'transition', 'transform ' + duration + 'ms' + (this.options.easing ? ' ' + this.options.easing : ''));\n css(target, 'transform', 'translate3d(0,0,0)');\n typeof target.animated === 'number' && clearTimeout(target.animated);\n target.animated = setTimeout(function () {\n css(target, 'transition', '');\n css(target, 'transform', '');\n target.animated = false;\n target.animatingX = false;\n target.animatingY = false;\n }, duration);\n }\n }\n };\n}\n\nfunction repaint(target) {\n return target.offsetWidth;\n}\n\nfunction calculateRealTime(animatingRect, fromRect, toRect, options) {\n return Math.sqrt(Math.pow(fromRect.top - animatingRect.top, 2) + Math.pow(fromRect.left - animatingRect.left, 2)) / Math.sqrt(Math.pow(fromRect.top - toRect.top, 2) + Math.pow(fromRect.left - toRect.left, 2)) * options.animation;\n}\n\nvar plugins = [];\nvar defaults = {\n initializeByDefault: true\n};\nvar PluginManager = {\n mount: function mount(plugin) {\n // Set default static properties\n for (var option in defaults) {\n if (defaults.hasOwnProperty(option) && !(option in plugin)) {\n plugin[option] = defaults[option];\n }\n }\n\n plugins.forEach(function (p) {\n if (p.pluginName === plugin.pluginName) {\n throw \"Sortable: Cannot mount plugin \".concat(plugin.pluginName, \" more than once\");\n }\n });\n plugins.push(plugin);\n },\n pluginEvent: function pluginEvent(eventName, sortable, evt) {\n var _this = this;\n\n this.eventCanceled = false;\n\n evt.cancel = function () {\n _this.eventCanceled = true;\n };\n\n var eventNameGlobal = eventName + 'Global';\n plugins.forEach(function (plugin) {\n if (!sortable[plugin.pluginName]) return; // Fire global events if it exists in this sortable\n\n if (sortable[plugin.pluginName][eventNameGlobal]) {\n sortable[plugin.pluginName][eventNameGlobal](_objectSpread2({\n sortable: sortable\n }, evt));\n } // Only fire plugin event if plugin is enabled in this sortable,\n // and plugin has event defined\n\n\n if (sortable.options[plugin.pluginName] && sortable[plugin.pluginName][eventName]) {\n sortable[plugin.pluginName][eventName](_objectSpread2({\n sortable: sortable\n }, evt));\n }\n });\n },\n initializePlugins: function initializePlugins(sortable, el, defaults, options) {\n plugins.forEach(function (plugin) {\n var pluginName = plugin.pluginName;\n if (!sortable.options[pluginName] && !plugin.initializeByDefault) return;\n var initialized = new plugin(sortable, el, sortable.options);\n initialized.sortable = sortable;\n initialized.options = sortable.options;\n sortable[pluginName] = initialized; // Add default options from plugin\n\n _extends(defaults, initialized.defaults);\n });\n\n for (var option in sortable.options) {\n if (!sortable.options.hasOwnProperty(option)) continue;\n var modified = this.modifyOption(sortable, option, sortable.options[option]);\n\n if (typeof modified !== 'undefined') {\n sortable.options[option] = modified;\n }\n }\n },\n getEventProperties: function getEventProperties(name, sortable) {\n var eventProperties = {};\n plugins.forEach(function (plugin) {\n if (typeof plugin.eventProperties !== 'function') return;\n\n _extends(eventProperties, plugin.eventProperties.call(sortable[plugin.pluginName], name));\n });\n return eventProperties;\n },\n modifyOption: function modifyOption(sortable, name, value) {\n var modifiedValue;\n plugins.forEach(function (plugin) {\n // Plugin must exist on the Sortable\n if (!sortable[plugin.pluginName]) return; // If static option listener exists for this option, call in the context of the Sortable's instance of this plugin\n\n if (plugin.optionListeners && typeof plugin.optionListeners[name] === 'function') {\n modifiedValue = plugin.optionListeners[name].call(sortable[plugin.pluginName], value);\n }\n });\n return modifiedValue;\n }\n};\n\nfunction dispatchEvent(_ref) {\n var sortable = _ref.sortable,\n rootEl = _ref.rootEl,\n name = _ref.name,\n targetEl = _ref.targetEl,\n cloneEl = _ref.cloneEl,\n toEl = _ref.toEl,\n fromEl = _ref.fromEl,\n oldIndex = _ref.oldIndex,\n newIndex = _ref.newIndex,\n oldDraggableIndex = _ref.oldDraggableIndex,\n newDraggableIndex = _ref.newDraggableIndex,\n originalEvent = _ref.originalEvent,\n putSortable = _ref.putSortable,\n extraEventProperties = _ref.extraEventProperties;\n sortable = sortable || rootEl && rootEl[expando];\n if (!sortable) return;\n var evt,\n options = sortable.options,\n onName = 'on' + name.charAt(0).toUpperCase() + name.substr(1); // Support for new CustomEvent feature\n\n if (window.CustomEvent && !IE11OrLess && !Edge) {\n evt = new CustomEvent(name, {\n bubbles: true,\n cancelable: true\n });\n } else {\n evt = document.createEvent('Event');\n evt.initEvent(name, true, true);\n }\n\n evt.to = toEl || rootEl;\n evt.from = fromEl || rootEl;\n evt.item = targetEl || rootEl;\n evt.clone = cloneEl;\n evt.oldIndex = oldIndex;\n evt.newIndex = newIndex;\n evt.oldDraggableIndex = oldDraggableIndex;\n evt.newDraggableIndex = newDraggableIndex;\n evt.originalEvent = originalEvent;\n evt.pullMode = putSortable ? putSortable.lastPutMode : undefined;\n\n var allEventProperties = _objectSpread2(_objectSpread2({}, extraEventProperties), PluginManager.getEventProperties(name, sortable));\n\n for (var option in allEventProperties) {\n evt[option] = allEventProperties[option];\n }\n\n if (rootEl) {\n rootEl.dispatchEvent(evt);\n }\n\n if (options[onName]) {\n options[onName].call(sortable, evt);\n }\n}\n\nvar _excluded = [\"evt\"];\n\nvar pluginEvent = function pluginEvent(eventName, sortable) {\n var _ref = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},\n originalEvent = _ref.evt,\n data = _objectWithoutProperties(_ref, _excluded);\n\n PluginManager.pluginEvent.bind(Sortable)(eventName, sortable, _objectSpread2({\n dragEl: dragEl,\n parentEl: parentEl,\n ghostEl: ghostEl,\n rootEl: rootEl,\n nextEl: nextEl,\n lastDownEl: lastDownEl,\n cloneEl: cloneEl,\n cloneHidden: cloneHidden,\n dragStarted: moved,\n putSortable: putSortable,\n activeSortable: Sortable.active,\n originalEvent: originalEvent,\n oldIndex: oldIndex,\n oldDraggableIndex: oldDraggableIndex,\n newIndex: newIndex,\n newDraggableIndex: newDraggableIndex,\n hideGhostForTarget: _hideGhostForTarget,\n unhideGhostForTarget: _unhideGhostForTarget,\n cloneNowHidden: function cloneNowHidden() {\n cloneHidden = true;\n },\n cloneNowShown: function cloneNowShown() {\n cloneHidden = false;\n },\n dispatchSortableEvent: function dispatchSortableEvent(name) {\n _dispatchEvent({\n sortable: sortable,\n name: name,\n originalEvent: originalEvent\n });\n }\n }, data));\n};\n\nfunction _dispatchEvent(info) {\n dispatchEvent(_objectSpread2({\n putSortable: putSortable,\n cloneEl: cloneEl,\n targetEl: dragEl,\n rootEl: rootEl,\n oldIndex: oldIndex,\n oldDraggableIndex: oldDraggableIndex,\n newIndex: newIndex,\n newDraggableIndex: newDraggableIndex\n }, info));\n}\n\nvar dragEl,\n parentEl,\n ghostEl,\n rootEl,\n nextEl,\n lastDownEl,\n cloneEl,\n cloneHidden,\n oldIndex,\n newIndex,\n oldDraggableIndex,\n newDraggableIndex,\n activeGroup,\n putSortable,\n awaitingDragStarted = false,\n ignoreNextClick = false,\n sortables = [],\n tapEvt,\n touchEvt,\n lastDx,\n lastDy,\n tapDistanceLeft,\n tapDistanceTop,\n moved,\n lastTarget,\n lastDirection,\n pastFirstInvertThresh = false,\n isCircumstantialInvert = false,\n targetMoveDistance,\n // For positioning ghost absolutely\nghostRelativeParent,\n ghostRelativeParentInitialScroll = [],\n // (left, top)\n_silent = false,\n savedInputChecked = [];\n/** @const */\n\nvar documentExists = typeof document !== 'undefined',\n PositionGhostAbsolutely = IOS,\n CSSFloatProperty = Edge || IE11OrLess ? 'cssFloat' : 'float',\n // This will not pass for IE9, because IE9 DnD only works on anchors\nsupportDraggable = documentExists && !ChromeForAndroid && !IOS && 'draggable' in document.createElement('div'),\n supportCssPointerEvents = function () {\n if (!documentExists) return; // false when <= IE11\n\n if (IE11OrLess) {\n return false;\n }\n\n var el = document.createElement('x');\n el.style.cssText = 'pointer-events:auto';\n return el.style.pointerEvents === 'auto';\n}(),\n _detectDirection = function _detectDirection(el, options) {\n var elCSS = css(el),\n elWidth = parseInt(elCSS.width) - parseInt(elCSS.paddingLeft) - parseInt(elCSS.paddingRight) - parseInt(elCSS.borderLeftWidth) - parseInt(elCSS.borderRightWidth),\n child1 = getChild(el, 0, options),\n child2 = getChild(el, 1, options),\n firstChildCSS = child1 && css(child1),\n secondChildCSS = child2 && css(child2),\n firstChildWidth = firstChildCSS && parseInt(firstChildCSS.marginLeft) + parseInt(firstChildCSS.marginRight) + getRect(child1).width,\n secondChildWidth = secondChildCSS && parseInt(secondChildCSS.marginLeft) + parseInt(secondChildCSS.marginRight) + getRect(child2).width;\n\n if (elCSS.display === 'flex') {\n return elCSS.flexDirection === 'column' || elCSS.flexDirection === 'column-reverse' ? 'vertical' : 'horizontal';\n }\n\n if (elCSS.display === 'grid') {\n return elCSS.gridTemplateColumns.split(' ').length <= 1 ? 'vertical' : 'horizontal';\n }\n\n if (child1 && firstChildCSS[\"float\"] && firstChildCSS[\"float\"] !== 'none') {\n var touchingSideChild2 = firstChildCSS[\"float\"] === 'left' ? 'left' : 'right';\n return child2 && (secondChildCSS.clear === 'both' || secondChildCSS.clear === touchingSideChild2) ? 'vertical' : 'horizontal';\n }\n\n return child1 && (firstChildCSS.display === 'block' || firstChildCSS.display === 'flex' || firstChildCSS.display === 'table' || firstChildCSS.display === 'grid' || firstChildWidth >= elWidth && elCSS[CSSFloatProperty] === 'none' || child2 && elCSS[CSSFloatProperty] === 'none' && firstChildWidth + secondChildWidth > elWidth) ? 'vertical' : 'horizontal';\n},\n _dragElInRowColumn = function _dragElInRowColumn(dragRect, targetRect, vertical) {\n var dragElS1Opp = vertical ? dragRect.left : dragRect.top,\n dragElS2Opp = vertical ? dragRect.right : dragRect.bottom,\n dragElOppLength = vertical ? dragRect.width : dragRect.height,\n targetS1Opp = vertical ? targetRect.left : targetRect.top,\n targetS2Opp = vertical ? targetRect.right : targetRect.bottom,\n targetOppLength = vertical ? targetRect.width : targetRect.height;\n return dragElS1Opp === targetS1Opp || dragElS2Opp === targetS2Opp || dragElS1Opp + dragElOppLength / 2 === targetS1Opp + targetOppLength / 2;\n},\n\n/**\r\n * Detects first nearest empty sortable to X and Y position using emptyInsertThreshold.\r\n * @param {Number} x X position\r\n * @param {Number} y Y position\r\n * @return {HTMLElement} Element of the first found nearest Sortable\r\n */\n_detectNearestEmptySortable = function _detectNearestEmptySortable(x, y) {\n var ret;\n sortables.some(function (sortable) {\n var threshold = sortable[expando].options.emptyInsertThreshold;\n if (!threshold || lastChild(sortable)) return;\n var rect = getRect(sortable),\n insideHorizontally = x >= rect.left - threshold && x <= rect.right + threshold,\n insideVertically = y >= rect.top - threshold && y <= rect.bottom + threshold;\n\n if (insideHorizontally && insideVertically) {\n return ret = sortable;\n }\n });\n return ret;\n},\n _prepareGroup = function _prepareGroup(options) {\n function toFn(value, pull) {\n return function (to, from, dragEl, evt) {\n var sameGroup = to.options.group.name && from.options.group.name && to.options.group.name === from.options.group.name;\n\n if (value == null && (pull || sameGroup)) {\n // Default pull value\n // Default pull and put value if same group\n return true;\n } else if (value == null || value === false) {\n return false;\n } else if (pull && value === 'clone') {\n return value;\n } else if (typeof value === 'function') {\n return toFn(value(to, from, dragEl, evt), pull)(to, from, dragEl, evt);\n } else {\n var otherGroup = (pull ? to : from).options.group.name;\n return value === true || typeof value === 'string' && value === otherGroup || value.join && value.indexOf(otherGroup) > -1;\n }\n };\n }\n\n var group = {};\n var originalGroup = options.group;\n\n if (!originalGroup || _typeof(originalGroup) != 'object') {\n originalGroup = {\n name: originalGroup\n };\n }\n\n group.name = originalGroup.name;\n group.checkPull = toFn(originalGroup.pull, true);\n group.checkPut = toFn(originalGroup.put);\n group.revertClone = originalGroup.revertClone;\n options.group = group;\n},\n _hideGhostForTarget = function _hideGhostForTarget() {\n if (!supportCssPointerEvents && ghostEl) {\n css(ghostEl, 'display', 'none');\n }\n},\n _unhideGhostForTarget = function _unhideGhostForTarget() {\n if (!supportCssPointerEvents && ghostEl) {\n css(ghostEl, 'display', '');\n }\n}; // #1184 fix - Prevent click event on fallback if dragged but item not changed position\n\n\nif (documentExists && !ChromeForAndroid) {\n document.addEventListener('click', function (evt) {\n if (ignoreNextClick) {\n evt.preventDefault();\n evt.stopPropagation && evt.stopPropagation();\n evt.stopImmediatePropagation && evt.stopImmediatePropagation();\n ignoreNextClick = false;\n return false;\n }\n }, true);\n}\n\nvar nearestEmptyInsertDetectEvent = function nearestEmptyInsertDetectEvent(evt) {\n if (dragEl) {\n evt = evt.touches ? evt.touches[0] : evt;\n\n var nearest = _detectNearestEmptySortable(evt.clientX, evt.clientY);\n\n if (nearest) {\n // Create imitation event\n var event = {};\n\n for (var i in evt) {\n if (evt.hasOwnProperty(i)) {\n event[i] = evt[i];\n }\n }\n\n event.target = event.rootEl = nearest;\n event.preventDefault = void 0;\n event.stopPropagation = void 0;\n\n nearest[expando]._onDragOver(event);\n }\n }\n};\n\nvar _checkOutsideTargetEl = function _checkOutsideTargetEl(evt) {\n if (dragEl) {\n dragEl.parentNode[expando]._isOutsideThisEl(evt.target);\n }\n};\n/**\r\n * @class Sortable\r\n * @param {HTMLElement} el\r\n * @param {Object} [options]\r\n */\n\n\nfunction Sortable(el, options) {\n if (!(el && el.nodeType && el.nodeType === 1)) {\n throw \"Sortable: `el` must be an HTMLElement, not \".concat({}.toString.call(el));\n }\n\n this.el = el; // root element\n\n this.options = options = _extends({}, options); // Export instance\n\n el[expando] = this;\n var defaults = {\n group: null,\n sort: true,\n disabled: false,\n store: null,\n handle: null,\n draggable: /^[uo]l$/i.test(el.nodeName) ? '>li' : '>*',\n swapThreshold: 1,\n // percentage; 0 <= x <= 1\n invertSwap: false,\n // invert always\n invertedSwapThreshold: null,\n // will be set to same as swapThreshold if default\n removeCloneOnHide: true,\n direction: function direction() {\n return _detectDirection(el, this.options);\n },\n ghostClass: 'sortable-ghost',\n chosenClass: 'sortable-chosen',\n dragClass: 'sortable-drag',\n ignore: 'a, img',\n filter: null,\n preventOnFilter: true,\n animation: 0,\n easing: null,\n setData: function setData(dataTransfer, dragEl) {\n dataTransfer.setData('Text', dragEl.textContent);\n },\n dropBubble: false,\n dragoverBubble: false,\n dataIdAttr: 'data-id',\n delay: 0,\n delayOnTouchOnly: false,\n touchStartThreshold: (Number.parseInt ? Number : window).parseInt(window.devicePixelRatio, 10) || 1,\n forceFallback: false,\n fallbackClass: 'sortable-fallback',\n fallbackOnBody: false,\n fallbackTolerance: 0,\n fallbackOffset: {\n x: 0,\n y: 0\n },\n supportPointer: Sortable.supportPointer !== false && 'PointerEvent' in window && !Safari,\n emptyInsertThreshold: 5\n };\n PluginManager.initializePlugins(this, el, defaults); // Set default options\n\n for (var name in defaults) {\n !(name in options) && (options[name] = defaults[name]);\n }\n\n _prepareGroup(options); // Bind all private methods\n\n\n for (var fn in this) {\n if (fn.charAt(0) === '_' && typeof this[fn] === 'function') {\n this[fn] = this[fn].bind(this);\n }\n } // Setup drag mode\n\n\n this.nativeDraggable = options.forceFallback ? false : supportDraggable;\n\n if (this.nativeDraggable) {\n // Touch start threshold cannot be greater than the native dragstart threshold\n this.options.touchStartThreshold = 1;\n } // Bind events\n\n\n if (options.supportPointer) {\n on(el, 'pointerdown', this._onTapStart);\n } else {\n on(el, 'mousedown', this._onTapStart);\n on(el, 'touchstart', this._onTapStart);\n }\n\n if (this.nativeDraggable) {\n on(el, 'dragover', this);\n on(el, 'dragenter', this);\n }\n\n sortables.push(this.el); // Restore sorting\n\n options.store && options.store.get && this.sort(options.store.get(this) || []); // Add animation state manager\n\n _extends(this, AnimationStateManager());\n}\n\nSortable.prototype =\n/** @lends Sortable.prototype */\n{\n constructor: Sortable,\n _isOutsideThisEl: function _isOutsideThisEl(target) {\n if (!this.el.contains(target) && target !== this.el) {\n lastTarget = null;\n }\n },\n _getDirection: function _getDirection(evt, target) {\n return typeof this.options.direction === 'function' ? this.options.direction.call(this, evt, target, dragEl) : this.options.direction;\n },\n _onTapStart: function _onTapStart(\n /** Event|TouchEvent */\n evt) {\n if (!evt.cancelable) return;\n\n var _this = this,\n el = this.el,\n options = this.options,\n preventOnFilter = options.preventOnFilter,\n type = evt.type,\n touch = evt.touches && evt.touches[0] || evt.pointerType && evt.pointerType === 'touch' && evt,\n target = (touch || evt).target,\n originalTarget = evt.target.shadowRoot && (evt.path && evt.path[0] || evt.composedPath && evt.composedPath()[0]) || target,\n filter = options.filter;\n\n _saveInputCheckedState(el); // Don't trigger start event when an element is been dragged, otherwise the evt.oldindex always wrong when set option.group.\n\n\n if (dragEl) {\n return;\n }\n\n if (/mousedown|pointerdown/.test(type) && evt.button !== 0 || options.disabled) {\n return; // only left button and enabled\n } // cancel dnd if original target is content editable\n\n\n if (originalTarget.isContentEditable) {\n return;\n } // Safari ignores further event handling after mousedown\n\n\n if (!this.nativeDraggable && Safari && target && target.tagName.toUpperCase() === 'SELECT') {\n return;\n }\n\n target = closest(target, options.draggable, el, false);\n\n if (target && target.animated) {\n return;\n }\n\n if (lastDownEl === target) {\n // Ignoring duplicate `down`\n return;\n } // Get the index of the dragged element within its parent\n\n\n oldIndex = index(target);\n oldDraggableIndex = index(target, options.draggable); // Check filter\n\n if (typeof filter === 'function') {\n if (filter.call(this, evt, target, this)) {\n _dispatchEvent({\n sortable: _this,\n rootEl: originalTarget,\n name: 'filter',\n targetEl: target,\n toEl: el,\n fromEl: el\n });\n\n pluginEvent('filter', _this, {\n evt: evt\n });\n preventOnFilter && evt.cancelable && evt.preventDefault();\n return; // cancel dnd\n }\n } else if (filter) {\n filter = filter.split(',').some(function (criteria) {\n criteria = closest(originalTarget, criteria.trim(), el, false);\n\n if (criteria) {\n _dispatchEvent({\n sortable: _this,\n rootEl: criteria,\n name: 'filter',\n targetEl: target,\n fromEl: el,\n toEl: el\n });\n\n pluginEvent('filter', _this, {\n evt: evt\n });\n return true;\n }\n });\n\n if (filter) {\n preventOnFilter && evt.cancelable && evt.preventDefault();\n return; // cancel dnd\n }\n }\n\n if (options.handle && !closest(originalTarget, options.handle, el, false)) {\n return;\n } // Prepare `dragstart`\n\n\n this._prepareDragStart(evt, touch, target);\n },\n _prepareDragStart: function _prepareDragStart(\n /** Event */\n evt,\n /** Touch */\n touch,\n /** HTMLElement */\n target) {\n var _this = this,\n el = _this.el,\n options = _this.options,\n ownerDocument = el.ownerDocument,\n dragStartFn;\n\n if (target && !dragEl && target.parentNode === el) {\n var dragRect = getRect(target);\n rootEl = el;\n dragEl = target;\n parentEl = dragEl.parentNode;\n nextEl = dragEl.nextSibling;\n lastDownEl = target;\n activeGroup = options.group;\n Sortable.dragged = dragEl;\n tapEvt = {\n target: dragEl,\n clientX: (touch || evt).clientX,\n clientY: (touch || evt).clientY\n };\n tapDistanceLeft = tapEvt.clientX - dragRect.left;\n tapDistanceTop = tapEvt.clientY - dragRect.top;\n this._lastX = (touch || evt).clientX;\n this._lastY = (touch || evt).clientY;\n dragEl.style['will-change'] = 'all';\n\n dragStartFn = function dragStartFn() {\n pluginEvent('delayEnded', _this, {\n evt: evt\n });\n\n if (Sortable.eventCanceled) {\n _this._onDrop();\n\n return;\n } // Delayed drag has been triggered\n // we can re-enable the events: touchmove/mousemove\n\n\n _this._disableDelayedDragEvents();\n\n if (!FireFox && _this.nativeDraggable) {\n dragEl.draggable = true;\n } // Bind the events: dragstart/dragend\n\n\n _this._triggerDragStart(evt, touch); // Drag start event\n\n\n _dispatchEvent({\n sortable: _this,\n name: 'choose',\n originalEvent: evt\n }); // Chosen item\n\n\n toggleClass(dragEl, options.chosenClass, true);\n }; // Disable \"draggable\"\n\n\n options.ignore.split(',').forEach(function (criteria) {\n find(dragEl, criteria.trim(), _disableDraggable);\n });\n on(ownerDocument, 'dragover', nearestEmptyInsertDetectEvent);\n on(ownerDocument, 'mousemove', nearestEmptyInsertDetectEvent);\n on(ownerDocument, 'touchmove', nearestEmptyInsertDetectEvent);\n on(ownerDocument, 'mouseup', _this._onDrop);\n on(ownerDocument, 'touchend', _this._onDrop);\n on(ownerDocument, 'touchcancel', _this._onDrop); // Make dragEl draggable (must be before delay for FireFox)\n\n if (FireFox && this.nativeDraggable) {\n this.options.touchStartThreshold = 4;\n dragEl.draggable = true;\n }\n\n pluginEvent('delayStart', this, {\n evt: evt\n }); // Delay is impossible for native DnD in Edge or IE\n\n if (options.delay && (!options.delayOnTouchOnly || touch) && (!this.nativeDraggable || !(Edge || IE11OrLess))) {\n if (Sortable.eventCanceled) {\n this._onDrop();\n\n return;\n } // If the user moves the pointer or let go the click or touch\n // before the delay has been reached:\n // disable the delayed drag\n\n\n on(ownerDocument, 'mouseup', _this._disableDelayedDrag);\n on(ownerDocument, 'touchend', _this._disableDelayedDrag);\n on(ownerDocument, 'touchcancel', _this._disableDelayedDrag);\n on(ownerDocument, 'mousemove', _this._delayedDragTouchMoveHandler);\n on(ownerDocument, 'touchmove', _this._delayedDragTouchMoveHandler);\n options.supportPointer && on(ownerDocument, 'pointermove', _this._delayedDragTouchMoveHandler);\n _this._dragStartTimer = setTimeout(dragStartFn, options.delay);\n } else {\n dragStartFn();\n }\n }\n },\n _delayedDragTouchMoveHandler: function _delayedDragTouchMoveHandler(\n /** TouchEvent|PointerEvent **/\n e) {\n var touch = e.touches ? e.touches[0] : e;\n\n if (Math.max(Math.abs(touch.clientX - this._lastX), Math.abs(touch.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1))) {\n this._disableDelayedDrag();\n }\n },\n _disableDelayedDrag: function _disableDelayedDrag() {\n dragEl && _disableDraggable(dragEl);\n clearTimeout(this._dragStartTimer);\n\n this._disableDelayedDragEvents();\n },\n _disableDelayedDragEvents: function _disableDelayedDragEvents() {\n var ownerDocument = this.el.ownerDocument;\n off(ownerDocument, 'mouseup', this._disableDelayedDrag);\n off(ownerDocument, 'touchend', this._disableDelayedDrag);\n off(ownerDocument, 'touchcancel', this._disableDelayedDrag);\n off(ownerDocument, 'mousemove', this._delayedDragTouchMoveHandler);\n off(ownerDocument, 'touchmove', this._delayedDragTouchMoveHandler);\n off(ownerDocument, 'pointermove', this._delayedDragTouchMoveHandler);\n },\n _triggerDragStart: function _triggerDragStart(\n /** Event */\n evt,\n /** Touch */\n touch) {\n touch = touch || evt.pointerType == 'touch' && evt;\n\n if (!this.nativeDraggable || touch) {\n if (this.options.supportPointer) {\n on(document, 'pointermove', this._onTouchMove);\n } else if (touch) {\n on(document, 'touchmove', this._onTouchMove);\n } else {\n on(document, 'mousemove', this._onTouchMove);\n }\n } else {\n on(dragEl, 'dragend', this);\n on(rootEl, 'dragstart', this._onDragStart);\n }\n\n try {\n if (document.selection) {\n // Timeout neccessary for IE9\n _nextTick(function () {\n document.selection.empty();\n });\n } else {\n window.getSelection().removeAllRanges();\n }\n } catch (err) {}\n },\n _dragStarted: function _dragStarted(fallback, evt) {\n\n awaitingDragStarted = false;\n\n if (rootEl && dragEl) {\n pluginEvent('dragStarted', this, {\n evt: evt\n });\n\n if (this.nativeDraggable) {\n on(document, 'dragover', _checkOutsideTargetEl);\n }\n\n var options = this.options; // Apply effect\n\n !fallback && toggleClass(dragEl, options.dragClass, false);\n toggleClass(dragEl, options.ghostClass, true);\n Sortable.active = this;\n fallback && this._appendGhost(); // Drag start event\n\n _dispatchEvent({\n sortable: this,\n name: 'start',\n originalEvent: evt\n });\n } else {\n this._nulling();\n }\n },\n _emulateDragOver: function _emulateDragOver() {\n if (touchEvt) {\n this._lastX = touchEvt.clientX;\n this._lastY = touchEvt.clientY;\n\n _hideGhostForTarget();\n\n var target = document.elementFromPoint(touchEvt.clientX, touchEvt.clientY);\n var parent = target;\n\n while (target && target.shadowRoot) {\n target = target.shadowRoot.elementFromPoint(touchEvt.clientX, touchEvt.clientY);\n if (target === parent) break;\n parent = target;\n }\n\n dragEl.parentNode[expando]._isOutsideThisEl(target);\n\n if (parent) {\n do {\n if (parent[expando]) {\n var inserted = void 0;\n inserted = parent[expando]._onDragOver({\n clientX: touchEvt.clientX,\n clientY: touchEvt.clientY,\n target: target,\n rootEl: parent\n });\n\n if (inserted && !this.options.dragoverBubble) {\n break;\n }\n }\n\n target = parent; // store last element\n }\n /* jshint boss:true */\n while (parent = parent.parentNode);\n }\n\n _unhideGhostForTarget();\n }\n },\n _onTouchMove: function _onTouchMove(\n /**TouchEvent*/\n evt) {\n if (tapEvt) {\n var options = this.options,\n fallbackTolerance = options.fallbackTolerance,\n fallbackOffset = options.fallbackOffset,\n touch = evt.touches ? evt.touches[0] : evt,\n ghostMatrix = ghostEl && matrix(ghostEl, true),\n scaleX = ghostEl && ghostMatrix && ghostMatrix.a,\n scaleY = ghostEl && ghostMatrix && ghostMatrix.d,\n relativeScrollOffset = PositionGhostAbsolutely && ghostRelativeParent && getRelativeScrollOffset(ghostRelativeParent),\n dx = (touch.clientX - tapEvt.clientX + fallbackOffset.x) / (scaleX || 1) + (relativeScrollOffset ? relativeScrollOffset[0] - ghostRelativeParentInitialScroll[0] : 0) / (scaleX || 1),\n dy = (touch.clientY - tapEvt.clientY + fallbackOffset.y) / (scaleY || 1) + (relativeScrollOffset ? relativeScrollOffset[1] - ghostRelativeParentInitialScroll[1] : 0) / (scaleY || 1); // only set the status to dragging, when we are actually dragging\n\n if (!Sortable.active && !awaitingDragStarted) {\n if (fallbackTolerance && Math.max(Math.abs(touch.clientX - this._lastX), Math.abs(touch.clientY - this._lastY)) < fallbackTolerance) {\n return;\n }\n\n this._onDragStart(evt, true);\n }\n\n if (ghostEl) {\n if (ghostMatrix) {\n ghostMatrix.e += dx - (lastDx || 0);\n ghostMatrix.f += dy - (lastDy || 0);\n } else {\n ghostMatrix = {\n a: 1,\n b: 0,\n c: 0,\n d: 1,\n e: dx,\n f: dy\n };\n }\n\n var cssMatrix = \"matrix(\".concat(ghostMatrix.a, \",\").concat(ghostMatrix.b, \",\").concat(ghostMatrix.c, \",\").concat(ghostMatrix.d, \",\").concat(ghostMatrix.e, \",\").concat(ghostMatrix.f, \")\");\n css(ghostEl, 'webkitTransform', cssMatrix);\n css(ghostEl, 'mozTransform', cssMatrix);\n css(ghostEl, 'msTransform', cssMatrix);\n css(ghostEl, 'transform', cssMatrix);\n lastDx = dx;\n lastDy = dy;\n touchEvt = touch;\n }\n\n evt.cancelable && evt.preventDefault();\n }\n },\n _appendGhost: function _appendGhost() {\n // Bug if using scale(): https://stackoverflow.com/questions/2637058\n // Not being adjusted for\n if (!ghostEl) {\n var container = this.options.fallbackOnBody ? document.body : rootEl,\n rect = getRect(dragEl, true, PositionGhostAbsolutely, true, container),\n options = this.options; // Position absolutely\n\n if (PositionGhostAbsolutely) {\n // Get relatively positioned parent\n ghostRelativeParent = container;\n\n while (css(ghostRelativeParent, 'position') === 'static' && css(ghostRelativeParent, 'transform') === 'none' && ghostRelativeParent !== document) {\n ghostRelativeParent = ghostRelativeParent.parentNode;\n }\n\n if (ghostRelativeParent !== document.body && ghostRelativeParent !== document.documentElement) {\n if (ghostRelativeParent === document) ghostRelativeParent = getWindowScrollingElement();\n rect.top += ghostRelativeParent.scrollTop;\n rect.left += ghostRelativeParent.scrollLeft;\n } else {\n ghostRelativeParent = getWindowScrollingElement();\n }\n\n ghostRelativeParentInitialScroll = getRelativeScrollOffset(ghostRelativeParent);\n }\n\n ghostEl = dragEl.cloneNode(true);\n toggleClass(ghostEl, options.ghostClass, false);\n toggleClass(ghostEl, options.fallbackClass, true);\n toggleClass(ghostEl, options.dragClass, true);\n css(ghostEl, 'transition', '');\n css(ghostEl, 'transform', '');\n css(ghostEl, 'box-sizing', 'border-box');\n css(ghostEl, 'margin', 0);\n css(ghostEl, 'top', rect.top);\n css(ghostEl, 'left', rect.left);\n css(ghostEl, 'width', rect.width);\n css(ghostEl, 'height', rect.height);\n css(ghostEl, 'opacity', '0.8');\n css(ghostEl, 'position', PositionGhostAbsolutely ? 'absolute' : 'fixed');\n css(ghostEl, 'zIndex', '100000');\n css(ghostEl, 'pointerEvents', 'none');\n Sortable.ghost = ghostEl;\n container.appendChild(ghostEl); // Set transform-origin\n\n css(ghostEl, 'transform-origin', tapDistanceLeft / parseInt(ghostEl.style.width) * 100 + '% ' + tapDistanceTop / parseInt(ghostEl.style.height) * 100 + '%');\n }\n },\n _onDragStart: function _onDragStart(\n /**Event*/\n evt,\n /**boolean*/\n fallback) {\n var _this = this;\n\n var dataTransfer = evt.dataTransfer;\n var options = _this.options;\n pluginEvent('dragStart', this, {\n evt: evt\n });\n\n if (Sortable.eventCanceled) {\n this._onDrop();\n\n return;\n }\n\n pluginEvent('setupClone', this);\n\n if (!Sortable.eventCanceled) {\n cloneEl = clone(dragEl);\n cloneEl.removeAttribute(\"id\");\n cloneEl.draggable = false;\n cloneEl.style['will-change'] = '';\n\n this._hideClone();\n\n toggleClass(cloneEl, this.options.chosenClass, false);\n Sortable.clone = cloneEl;\n } // #1143: IFrame support workaround\n\n\n _this.cloneId = _nextTick(function () {\n pluginEvent('clone', _this);\n if (Sortable.eventCanceled) return;\n\n if (!_this.options.removeCloneOnHide) {\n rootEl.insertBefore(cloneEl, dragEl);\n }\n\n _this._hideClone();\n\n _dispatchEvent({\n sortable: _this,\n name: 'clone'\n });\n });\n !fallback && toggleClass(dragEl, options.dragClass, true); // Set proper drop events\n\n if (fallback) {\n ignoreNextClick = true;\n _this._loopId = setInterval(_this._emulateDragOver, 50);\n } else {\n // Undo what was set in _prepareDragStart before drag started\n off(document, 'mouseup', _this._onDrop);\n off(document, 'touchend', _this._onDrop);\n off(document, 'touchcancel', _this._onDrop);\n\n if (dataTransfer) {\n dataTransfer.effectAllowed = 'move';\n options.setData && options.setData.call(_this, dataTransfer, dragEl);\n }\n\n on(document, 'drop', _this); // #1276 fix:\n\n css(dragEl, 'transform', 'translateZ(0)');\n }\n\n awaitingDragStarted = true;\n _this._dragStartId = _nextTick(_this._dragStarted.bind(_this, fallback, evt));\n on(document, 'selectstart', _this);\n moved = true;\n\n if (Safari) {\n css(document.body, 'user-select', 'none');\n }\n },\n // Returns true - if no further action is needed (either inserted or another condition)\n _onDragOver: function _onDragOver(\n /**Event*/\n evt) {\n var el = this.el,\n target = evt.target,\n dragRect,\n targetRect,\n revert,\n options = this.options,\n group = options.group,\n activeSortable = Sortable.active,\n isOwner = activeGroup === group,\n canSort = options.sort,\n fromSortable = putSortable || activeSortable,\n vertical,\n _this = this,\n completedFired = false;\n\n if (_silent) return;\n\n function dragOverEvent(name, extra) {\n pluginEvent(name, _this, _objectSpread2({\n evt: evt,\n isOwner: isOwner,\n axis: vertical ? 'vertical' : 'horizontal',\n revert: revert,\n dragRect: dragRect,\n targetRect: targetRect,\n canSort: canSort,\n fromSortable: fromSortable,\n target: target,\n completed: completed,\n onMove: function onMove(target, after) {\n return _onMove(rootEl, el, dragEl, dragRect, target, getRect(target), evt, after);\n },\n changed: changed\n }, extra));\n } // Capture animation state\n\n\n function capture() {\n dragOverEvent('dragOverAnimationCapture');\n\n _this.captureAnimationState();\n\n if (_this !== fromSortable) {\n fromSortable.captureAnimationState();\n }\n } // Return invocation when dragEl is inserted (or completed)\n\n\n function completed(insertion) {\n dragOverEvent('dragOverCompleted', {\n insertion: insertion\n });\n\n if (insertion) {\n // Clones must be hidden before folding animation to capture dragRectAbsolute properly\n if (isOwner) {\n activeSortable._hideClone();\n } else {\n activeSortable._showClone(_this);\n }\n\n if (_this !== fromSortable) {\n // Set ghost class to new sortable's ghost class\n toggleClass(dragEl, putSortable ? putSortable.options.ghostClass : activeSortable.options.ghostClass, false);\n toggleClass(dragEl, options.ghostClass, true);\n }\n\n if (putSortable !== _this && _this !== Sortable.active) {\n putSortable = _this;\n } else if (_this === Sortable.active && putSortable) {\n putSortable = null;\n } // Animation\n\n\n if (fromSortable === _this) {\n _this._ignoreWhileAnimating = target;\n }\n\n _this.animateAll(function () {\n dragOverEvent('dragOverAnimationComplete');\n _this._ignoreWhileAnimating = null;\n });\n\n if (_this !== fromSortable) {\n fromSortable.animateAll();\n fromSortable._ignoreWhileAnimating = null;\n }\n } // Null lastTarget if it is not inside a previously swapped element\n\n\n if (target === dragEl && !dragEl.animated || target === el && !target.animated) {\n lastTarget = null;\n } // no bubbling and not fallback\n\n\n if (!options.dragoverBubble && !evt.rootEl && target !== document) {\n dragEl.parentNode[expando]._isOutsideThisEl(evt.target); // Do not detect for empty insert if already inserted\n\n\n !insertion && nearestEmptyInsertDetectEvent(evt);\n }\n\n !options.dragoverBubble && evt.stopPropagation && evt.stopPropagation();\n return completedFired = true;\n } // Call when dragEl has been inserted\n\n\n function changed() {\n newIndex = index(dragEl);\n newDraggableIndex = index(dragEl, options.draggable);\n\n _dispatchEvent({\n sortable: _this,\n name: 'change',\n toEl: el,\n newIndex: newIndex,\n newDraggableIndex: newDraggableIndex,\n originalEvent: evt\n });\n }\n\n if (evt.preventDefault !== void 0) {\n evt.cancelable && evt.preventDefault();\n }\n\n target = closest(target, options.draggable, el, true);\n dragOverEvent('dragOver');\n if (Sortable.eventCanceled) return completedFired;\n\n if (dragEl.contains(evt.target) || target.animated && target.animatingX && target.animatingY || _this._ignoreWhileAnimating === target) {\n return completed(false);\n }\n\n ignoreNextClick = false;\n\n if (activeSortable && !options.disabled && (isOwner ? canSort || (revert = parentEl !== rootEl) // Reverting item into the original list\n : putSortable === this || (this.lastPutMode = activeGroup.checkPull(this, activeSortable, dragEl, evt)) && group.checkPut(this, activeSortable, dragEl, evt))) {\n vertical = this._getDirection(evt, target) === 'vertical';\n dragRect = getRect(dragEl);\n dragOverEvent('dragOverValid');\n if (Sortable.eventCanceled) return completedFired;\n\n if (revert) {\n parentEl = rootEl; // actualization\n\n capture();\n\n this._hideClone();\n\n dragOverEvent('revert');\n\n if (!Sortable.eventCanceled) {\n if (nextEl) {\n rootEl.insertBefore(dragEl, nextEl);\n } else {\n rootEl.appendChild(dragEl);\n }\n }\n\n return completed(true);\n }\n\n var elLastChild = lastChild(el, options.draggable);\n\n if (!elLastChild || _ghostIsLast(evt, vertical, this) && !elLastChild.animated) {\n // Insert to end of list\n // If already at end of list: Do not insert\n if (elLastChild === dragEl) {\n return completed(false);\n } // if there is a last element, it is the target\n\n\n if (elLastChild && el === evt.target) {\n target = elLastChild;\n }\n\n if (target) {\n targetRect = getRect(target);\n }\n\n if (_onMove(rootEl, el, dragEl, dragRect, target, targetRect, evt, !!target) !== false) {\n capture();\n\n if (elLastChild && elLastChild.nextSibling) {\n // the last draggable element is not the last node\n el.insertBefore(dragEl, elLastChild.nextSibling);\n } else {\n el.appendChild(dragEl);\n }\n\n parentEl = el; // actualization\n\n changed();\n return completed(true);\n }\n } else if (elLastChild && _ghostIsFirst(evt, vertical, this)) {\n // Insert to start of list\n var firstChild = getChild(el, 0, options, true);\n\n if (firstChild === dragEl) {\n return completed(false);\n }\n\n target = firstChild;\n targetRect = getRect(target);\n\n if (_onMove(rootEl, el, dragEl, dragRect, target, targetRect, evt, false) !== false) {\n capture();\n el.insertBefore(dragEl, firstChild);\n parentEl = el; // actualization\n\n changed();\n return completed(true);\n }\n } else if (target.parentNode === el) {\n targetRect = getRect(target);\n var direction = 0,\n targetBeforeFirstSwap,\n differentLevel = dragEl.parentNode !== el,\n differentRowCol = !_dragElInRowColumn(dragEl.animated && dragEl.toRect || dragRect, target.animated && target.toRect || targetRect, vertical),\n side1 = vertical ? 'top' : 'left',\n scrolledPastTop = isScrolledPast(target, 'top', 'top') || isScrolledPast(dragEl, 'top', 'top'),\n scrollBefore = scrolledPastTop ? scrolledPastTop.scrollTop : void 0;\n\n if (lastTarget !== target) {\n targetBeforeFirstSwap = targetRect[side1];\n pastFirstInvertThresh = false;\n isCircumstantialInvert = !differentRowCol && options.invertSwap || differentLevel;\n }\n\n direction = _getSwapDirection(evt, target, targetRect, vertical, differentRowCol ? 1 : options.swapThreshold, options.invertedSwapThreshold == null ? options.swapThreshold : options.invertedSwapThreshold, isCircumstantialInvert, lastTarget === target);\n var sibling;\n\n if (direction !== 0) {\n // Check if target is beside dragEl in respective direction (ignoring hidden elements)\n var dragIndex = index(dragEl);\n\n do {\n dragIndex -= direction;\n sibling = parentEl.children[dragIndex];\n } while (sibling && (css(sibling, 'display') === 'none' || sibling === ghostEl));\n } // If dragEl is already beside target: Do not insert\n\n\n if (direction === 0 || sibling === target) {\n return completed(false);\n }\n\n lastTarget = target;\n lastDirection = direction;\n var nextSibling = target.nextElementSibling,\n after = false;\n after = direction === 1;\n\n var moveVector = _onMove(rootEl, el, dragEl, dragRect, target, targetRect, evt, after);\n\n if (moveVector !== false) {\n if (moveVector === 1 || moveVector === -1) {\n after = moveVector === 1;\n }\n\n _silent = true;\n setTimeout(_unsilent, 30);\n capture();\n\n if (after && !nextSibling) {\n el.appendChild(dragEl);\n } else {\n target.parentNode.insertBefore(dragEl, after ? nextSibling : target);\n } // Undo chrome's scroll adjustment (has no effect on other browsers)\n\n\n if (scrolledPastTop) {\n scrollBy(scrolledPastTop, 0, scrollBefore - scrolledPastTop.scrollTop);\n }\n\n parentEl = dragEl.parentNode; // actualization\n // must be done before animation\n\n if (targetBeforeFirstSwap !== undefined && !isCircumstantialInvert) {\n targetMoveDistance = Math.abs(targetBeforeFirstSwap - getRect(target)[side1]);\n }\n\n changed();\n return completed(true);\n }\n }\n\n if (el.contains(dragEl)) {\n return completed(false);\n }\n }\n\n return false;\n },\n _ignoreWhileAnimating: null,\n _offMoveEvents: function _offMoveEvents() {\n off(document, 'mousemove', this._onTouchMove);\n off(document, 'touchmove', this._onTouchMove);\n off(document, 'pointermove', this._onTouchMove);\n off(document, 'dragover', nearestEmptyInsertDetectEvent);\n off(document, 'mousemove', nearestEmptyInsertDetectEvent);\n off(document, 'touchmove', nearestEmptyInsertDetectEvent);\n },\n _offUpEvents: function _offUpEvents() {\n var ownerDocument = this.el.ownerDocument;\n off(ownerDocument, 'mouseup', this._onDrop);\n off(ownerDocument, 'touchend', this._onDrop);\n off(ownerDocument, 'pointerup', this._onDrop);\n off(ownerDocument, 'touchcancel', this._onDrop);\n off(document, 'selectstart', this);\n },\n _onDrop: function _onDrop(\n /**Event*/\n evt) {\n var el = this.el,\n options = this.options; // Get the index of the dragged element within its parent\n\n newIndex = index(dragEl);\n newDraggableIndex = index(dragEl, options.draggable);\n pluginEvent('drop', this, {\n evt: evt\n });\n parentEl = dragEl && dragEl.parentNode; // Get again after plugin event\n\n newIndex = index(dragEl);\n newDraggableIndex = index(dragEl, options.draggable);\n\n if (Sortable.eventCanceled) {\n this._nulling();\n\n return;\n }\n\n awaitingDragStarted = false;\n isCircumstantialInvert = false;\n pastFirstInvertThresh = false;\n clearInterval(this._loopId);\n clearTimeout(this._dragStartTimer);\n\n _cancelNextTick(this.cloneId);\n\n _cancelNextTick(this._dragStartId); // Unbind events\n\n\n if (this.nativeDraggable) {\n off(document, 'drop', this);\n off(el, 'dragstart', this._onDragStart);\n }\n\n this._offMoveEvents();\n\n this._offUpEvents();\n\n if (Safari) {\n css(document.body, 'user-select', '');\n }\n\n css(dragEl, 'transform', '');\n\n if (evt) {\n if (moved) {\n evt.cancelable && evt.preventDefault();\n !options.dropBubble && evt.stopPropagation();\n }\n\n ghostEl && ghostEl.parentNode && ghostEl.parentNode.removeChild(ghostEl);\n\n if (rootEl === parentEl || putSortable && putSortable.lastPutMode !== 'clone') {\n // Remove clone(s)\n cloneEl && cloneEl.parentNode && cloneEl.parentNode.removeChild(cloneEl);\n }\n\n if (dragEl) {\n if (this.nativeDraggable) {\n off(dragEl, 'dragend', this);\n }\n\n _disableDraggable(dragEl);\n\n dragEl.style['will-change'] = ''; // Remove classes\n // ghostClass is added in dragStarted\n\n if (moved && !awaitingDragStarted) {\n toggleClass(dragEl, putSortable ? putSortable.options.ghostClass : this.options.ghostClass, false);\n }\n\n toggleClass(dragEl, this.options.chosenClass, false); // Drag stop event\n\n _dispatchEvent({\n sortable: this,\n name: 'unchoose',\n toEl: parentEl,\n newIndex: null,\n newDraggableIndex: null,\n originalEvent: evt\n });\n\n if (rootEl !== parentEl) {\n if (newIndex >= 0) {\n // Add event\n _dispatchEvent({\n rootEl: parentEl,\n name: 'add',\n toEl: parentEl,\n fromEl: rootEl,\n originalEvent: evt\n }); // Remove event\n\n\n _dispatchEvent({\n sortable: this,\n name: 'remove',\n toEl: parentEl,\n originalEvent: evt\n }); // drag from one list and drop into another\n\n\n _dispatchEvent({\n rootEl: parentEl,\n name: 'sort',\n toEl: parentEl,\n fromEl: rootEl,\n originalEvent: evt\n });\n\n _dispatchEvent({\n sortable: this,\n name: 'sort',\n toEl: parentEl,\n originalEvent: evt\n });\n }\n\n putSortable && putSortable.save();\n } else {\n if (newIndex !== oldIndex) {\n if (newIndex >= 0) {\n // drag & drop within the same list\n _dispatchEvent({\n sortable: this,\n name: 'update',\n toEl: parentEl,\n originalEvent: evt\n });\n\n _dispatchEvent({\n sortable: this,\n name: 'sort',\n toEl: parentEl,\n originalEvent: evt\n });\n }\n }\n }\n\n if (Sortable.active) {\n /* jshint eqnull:true */\n if (newIndex == null || newIndex === -1) {\n newIndex = oldIndex;\n newDraggableIndex = oldDraggableIndex;\n }\n\n _dispatchEvent({\n sortable: this,\n name: 'end',\n toEl: parentEl,\n originalEvent: evt\n }); // Save sorting\n\n\n this.save();\n }\n }\n }\n\n this._nulling();\n },\n _nulling: function _nulling() {\n pluginEvent('nulling', this);\n rootEl = dragEl = parentEl = ghostEl = nextEl = cloneEl = lastDownEl = cloneHidden = tapEvt = touchEvt = moved = newIndex = newDraggableIndex = oldIndex = oldDraggableIndex = lastTarget = lastDirection = putSortable = activeGroup = Sortable.dragged = Sortable.ghost = Sortable.clone = Sortable.active = null;\n savedInputChecked.forEach(function (el) {\n el.checked = true;\n });\n savedInputChecked.length = lastDx = lastDy = 0;\n },\n handleEvent: function handleEvent(\n /**Event*/\n evt) {\n switch (evt.type) {\n case 'drop':\n case 'dragend':\n this._onDrop(evt);\n\n break;\n\n case 'dragenter':\n case 'dragover':\n if (dragEl) {\n this._onDragOver(evt);\n\n _globalDragOver(evt);\n }\n\n break;\n\n case 'selectstart':\n evt.preventDefault();\n break;\n }\n },\n\n /**\r\n * Serializes the item into an array of string.\r\n * @returns {String[]}\r\n */\n toArray: function toArray() {\n var order = [],\n el,\n children = this.el.children,\n i = 0,\n n = children.length,\n options = this.options;\n\n for (; i < n; i++) {\n el = children[i];\n\n if (closest(el, options.draggable, this.el, false)) {\n order.push(el.getAttribute(options.dataIdAttr) || _generateId(el));\n }\n }\n\n return order;\n },\n\n /**\r\n * Sorts the elements according to the array.\r\n * @param {String[]} order order of the items\r\n */\n sort: function sort(order, useAnimation) {\n var items = {},\n rootEl = this.el;\n this.toArray().forEach(function (id, i) {\n var el = rootEl.children[i];\n\n if (closest(el, this.options.draggable, rootEl, false)) {\n items[id] = el;\n }\n }, this);\n useAnimation && this.captureAnimationState();\n order.forEach(function (id) {\n if (items[id]) {\n rootEl.removeChild(items[id]);\n rootEl.appendChild(items[id]);\n }\n });\n useAnimation && this.animateAll();\n },\n\n /**\r\n * Save the current sorting\r\n */\n save: function save() {\n var store = this.options.store;\n store && store.set && store.set(this);\n },\n\n /**\r\n * For each element in the set, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree.\r\n * @param {HTMLElement} el\r\n * @param {String} [selector] default: `options.draggable`\r\n * @returns {HTMLElement|null}\r\n */\n closest: function closest$1(el, selector) {\n return closest(el, selector || this.options.draggable, this.el, false);\n },\n\n /**\r\n * Set/get option\r\n * @param {string} name\r\n * @param {*} [value]\r\n * @returns {*}\r\n */\n option: function option(name, value) {\n var options = this.options;\n\n if (value === void 0) {\n return options[name];\n } else {\n var modifiedValue = PluginManager.modifyOption(this, name, value);\n\n if (typeof modifiedValue !== 'undefined') {\n options[name] = modifiedValue;\n } else {\n options[name] = value;\n }\n\n if (name === 'group') {\n _prepareGroup(options);\n }\n }\n },\n\n /**\r\n * Destroy\r\n */\n destroy: function destroy() {\n pluginEvent('destroy', this);\n var el = this.el;\n el[expando] = null;\n off(el, 'mousedown', this._onTapStart);\n off(el, 'touchstart', this._onTapStart);\n off(el, 'pointerdown', this._onTapStart);\n\n if (this.nativeDraggable) {\n off(el, 'dragover', this);\n off(el, 'dragenter', this);\n } // Remove draggable attributes\n\n\n Array.prototype.forEach.call(el.querySelectorAll('[draggable]'), function (el) {\n el.removeAttribute('draggable');\n });\n\n this._onDrop();\n\n this._disableDelayedDragEvents();\n\n sortables.splice(sortables.indexOf(this.el), 1);\n this.el = el = null;\n },\n _hideClone: function _hideClone() {\n if (!cloneHidden) {\n pluginEvent('hideClone', this);\n if (Sortable.eventCanceled) return;\n css(cloneEl, 'display', 'none');\n\n if (this.options.removeCloneOnHide && cloneEl.parentNode) {\n cloneEl.parentNode.removeChild(cloneEl);\n }\n\n cloneHidden = true;\n }\n },\n _showClone: function _showClone(putSortable) {\n if (putSortable.lastPutMode !== 'clone') {\n this._hideClone();\n\n return;\n }\n\n if (cloneHidden) {\n pluginEvent('showClone', this);\n if (Sortable.eventCanceled) return; // show clone at dragEl or original position\n\n if (dragEl.parentNode == rootEl && !this.options.group.revertClone) {\n rootEl.insertBefore(cloneEl, dragEl);\n } else if (nextEl) {\n rootEl.insertBefore(cloneEl, nextEl);\n } else {\n rootEl.appendChild(cloneEl);\n }\n\n if (this.options.group.revertClone) {\n this.animate(dragEl, cloneEl);\n }\n\n css(cloneEl, 'display', '');\n cloneHidden = false;\n }\n }\n};\n\nfunction _globalDragOver(\n/**Event*/\nevt) {\n if (evt.dataTransfer) {\n evt.dataTransfer.dropEffect = 'move';\n }\n\n evt.cancelable && evt.preventDefault();\n}\n\nfunction _onMove(fromEl, toEl, dragEl, dragRect, targetEl, targetRect, originalEvent, willInsertAfter) {\n var evt,\n sortable = fromEl[expando],\n onMoveFn = sortable.options.onMove,\n retVal; // Support for new CustomEvent feature\n\n if (window.CustomEvent && !IE11OrLess && !Edge) {\n evt = new CustomEvent('move', {\n bubbles: true,\n cancelable: true\n });\n } else {\n evt = document.createEvent('Event');\n evt.initEvent('move', true, true);\n }\n\n evt.to = toEl;\n evt.from = fromEl;\n evt.dragged = dragEl;\n evt.draggedRect = dragRect;\n evt.related = targetEl || toEl;\n evt.relatedRect = targetRect || getRect(toEl);\n evt.willInsertAfter = willInsertAfter;\n evt.originalEvent = originalEvent;\n fromEl.dispatchEvent(evt);\n\n if (onMoveFn) {\n retVal = onMoveFn.call(sortable, evt, originalEvent);\n }\n\n return retVal;\n}\n\nfunction _disableDraggable(el) {\n el.draggable = false;\n}\n\nfunction _unsilent() {\n _silent = false;\n}\n\nfunction _ghostIsFirst(evt, vertical, sortable) {\n var rect = getRect(getChild(sortable.el, 0, sortable.options, true));\n var spacer = 10;\n return vertical ? evt.clientX < rect.left - spacer || evt.clientY < rect.top && evt.clientX < rect.right : evt.clientY < rect.top - spacer || evt.clientY < rect.bottom && evt.clientX < rect.left;\n}\n\nfunction _ghostIsLast(evt, vertical, sortable) {\n var rect = getRect(lastChild(sortable.el, sortable.options.draggable));\n var spacer = 10;\n return vertical ? evt.clientX > rect.right + spacer || evt.clientX <= rect.right && evt.clientY > rect.bottom && evt.clientX >= rect.left : evt.clientX > rect.right && evt.clientY > rect.top || evt.clientX <= rect.right && evt.clientY > rect.bottom + spacer;\n}\n\nfunction _getSwapDirection(evt, target, targetRect, vertical, swapThreshold, invertedSwapThreshold, invertSwap, isLastTarget) {\n var mouseOnAxis = vertical ? evt.clientY : evt.clientX,\n targetLength = vertical ? targetRect.height : targetRect.width,\n targetS1 = vertical ? targetRect.top : targetRect.left,\n targetS2 = vertical ? targetRect.bottom : targetRect.right,\n invert = false;\n\n if (!invertSwap) {\n // Never invert or create dragEl shadow when target movemenet causes mouse to move past the end of regular swapThreshold\n if (isLastTarget && targetMoveDistance < targetLength * swapThreshold) {\n // multiplied only by swapThreshold because mouse will already be inside target by (1 - threshold) * targetLength / 2\n // check if past first invert threshold on side opposite of lastDirection\n if (!pastFirstInvertThresh && (lastDirection === 1 ? mouseOnAxis > targetS1 + targetLength * invertedSwapThreshold / 2 : mouseOnAxis < targetS2 - targetLength * invertedSwapThreshold / 2)) {\n // past first invert threshold, do not restrict inverted threshold to dragEl shadow\n pastFirstInvertThresh = true;\n }\n\n if (!pastFirstInvertThresh) {\n // dragEl shadow (target move distance shadow)\n if (lastDirection === 1 ? mouseOnAxis < targetS1 + targetMoveDistance // over dragEl shadow\n : mouseOnAxis > targetS2 - targetMoveDistance) {\n return -lastDirection;\n }\n } else {\n invert = true;\n }\n } else {\n // Regular\n if (mouseOnAxis > targetS1 + targetLength * (1 - swapThreshold) / 2 && mouseOnAxis < targetS2 - targetLength * (1 - swapThreshold) / 2) {\n return _getInsertDirection(target);\n }\n }\n }\n\n invert = invert || invertSwap;\n\n if (invert) {\n // Invert of regular\n if (mouseOnAxis < targetS1 + targetLength * invertedSwapThreshold / 2 || mouseOnAxis > targetS2 - targetLength * invertedSwapThreshold / 2) {\n return mouseOnAxis > targetS1 + targetLength / 2 ? 1 : -1;\n }\n }\n\n return 0;\n}\n/**\r\n * Gets the direction dragEl must be swapped relative to target in order to make it\r\n * seem that dragEl has been \"inserted\" into that element's position\r\n * @param {HTMLElement} target The target whose position dragEl is being inserted at\r\n * @return {Number} Direction dragEl must be swapped\r\n */\n\n\nfunction _getInsertDirection(target) {\n if (index(dragEl) < index(target)) {\n return 1;\n } else {\n return -1;\n }\n}\n/**\r\n * Generate id\r\n * @param {HTMLElement} el\r\n * @returns {String}\r\n * @private\r\n */\n\n\nfunction _generateId(el) {\n var str = el.tagName + el.className + el.src + el.href + el.textContent,\n i = str.length,\n sum = 0;\n\n while (i--) {\n sum += str.charCodeAt(i);\n }\n\n return sum.toString(36);\n}\n\nfunction _saveInputCheckedState(root) {\n savedInputChecked.length = 0;\n var inputs = root.getElementsByTagName('input');\n var idx = inputs.length;\n\n while (idx--) {\n var el = inputs[idx];\n el.checked && savedInputChecked.push(el);\n }\n}\n\nfunction _nextTick(fn) {\n return setTimeout(fn, 0);\n}\n\nfunction _cancelNextTick(id) {\n return clearTimeout(id);\n} // Fixed #973:\n\n\nif (documentExists) {\n on(document, 'touchmove', function (evt) {\n if ((Sortable.active || awaitingDragStarted) && evt.cancelable) {\n evt.preventDefault();\n }\n });\n} // Export utils\n\n\nSortable.utils = {\n on: on,\n off: off,\n css: css,\n find: find,\n is: function is(el, selector) {\n return !!closest(el, selector, el, false);\n },\n extend: extend,\n throttle: throttle,\n closest: closest,\n toggleClass: toggleClass,\n clone: clone,\n index: index,\n nextTick: _nextTick,\n cancelNextTick: _cancelNextTick,\n detectDirection: _detectDirection,\n getChild: getChild\n};\n/**\r\n * Get the Sortable instance of an element\r\n * @param {HTMLElement} element The element\r\n * @return {Sortable|undefined} The instance of Sortable\r\n */\n\nSortable.get = function (element) {\n return element[expando];\n};\n/**\r\n * Mount a plugin to Sortable\r\n * @param {...SortablePlugin|SortablePlugin[]} plugins Plugins being mounted\r\n */\n\n\nSortable.mount = function () {\n for (var _len = arguments.length, plugins = new Array(_len), _key = 0; _key < _len; _key++) {\n plugins[_key] = arguments[_key];\n }\n\n if (plugins[0].constructor === Array) plugins = plugins[0];\n plugins.forEach(function (plugin) {\n if (!plugin.prototype || !plugin.prototype.constructor) {\n throw \"Sortable: Mounted plugin must be a constructor function, not \".concat({}.toString.call(plugin));\n }\n\n if (plugin.utils) Sortable.utils = _objectSpread2(_objectSpread2({}, Sortable.utils), plugin.utils);\n PluginManager.mount(plugin);\n });\n};\n/**\r\n * Create sortable instance\r\n * @param {HTMLElement} el\r\n * @param {Object} [options]\r\n */\n\n\nSortable.create = function (el, options) {\n return new Sortable(el, options);\n}; // Export\n\n\nSortable.version = version;\n\nvar autoScrolls = [],\n scrollEl,\n scrollRootEl,\n scrolling = false,\n lastAutoScrollX,\n lastAutoScrollY,\n touchEvt$1,\n pointerElemChangedInterval;\n\nfunction AutoScrollPlugin() {\n function AutoScroll() {\n this.defaults = {\n scroll: true,\n forceAutoScrollFallback: false,\n scrollSensitivity: 30,\n scrollSpeed: 10,\n bubbleScroll: true\n }; // Bind all private methods\n\n for (var fn in this) {\n if (fn.charAt(0) === '_' && typeof this[fn] === 'function') {\n this[fn] = this[fn].bind(this);\n }\n }\n }\n\n AutoScroll.prototype = {\n dragStarted: function dragStarted(_ref) {\n var originalEvent = _ref.originalEvent;\n\n if (this.sortable.nativeDraggable) {\n on(document, 'dragover', this._handleAutoScroll);\n } else {\n if (this.options.supportPointer) {\n on(document, 'pointermove', this._handleFallbackAutoScroll);\n } else if (originalEvent.touches) {\n on(document, 'touchmove', this._handleFallbackAutoScroll);\n } else {\n on(document, 'mousemove', this._handleFallbackAutoScroll);\n }\n }\n },\n dragOverCompleted: function dragOverCompleted(_ref2) {\n var originalEvent = _ref2.originalEvent;\n\n // For when bubbling is canceled and using fallback (fallback 'touchmove' always reached)\n if (!this.options.dragOverBubble && !originalEvent.rootEl) {\n this._handleAutoScroll(originalEvent);\n }\n },\n drop: function drop() {\n if (this.sortable.nativeDraggable) {\n off(document, 'dragover', this._handleAutoScroll);\n } else {\n off(document, 'pointermove', this._handleFallbackAutoScroll);\n off(document, 'touchmove', this._handleFallbackAutoScroll);\n off(document, 'mousemove', this._handleFallbackAutoScroll);\n }\n\n clearPointerElemChangedInterval();\n clearAutoScrolls();\n cancelThrottle();\n },\n nulling: function nulling() {\n touchEvt$1 = scrollRootEl = scrollEl = scrolling = pointerElemChangedInterval = lastAutoScrollX = lastAutoScrollY = null;\n autoScrolls.length = 0;\n },\n _handleFallbackAutoScroll: function _handleFallbackAutoScroll(evt) {\n this._handleAutoScroll(evt, true);\n },\n _handleAutoScroll: function _handleAutoScroll(evt, fallback) {\n var _this = this;\n\n var x = (evt.touches ? evt.touches[0] : evt).clientX,\n y = (evt.touches ? evt.touches[0] : evt).clientY,\n elem = document.elementFromPoint(x, y);\n touchEvt$1 = evt; // IE does not seem to have native autoscroll,\n // Edge's autoscroll seems too conditional,\n // MACOS Safari does not have autoscroll,\n // Firefox and Chrome are good\n\n if (fallback || this.options.forceAutoScrollFallback || Edge || IE11OrLess || Safari) {\n autoScroll(evt, this.options, elem, fallback); // Listener for pointer element change\n\n var ogElemScroller = getParentAutoScrollElement(elem, true);\n\n if (scrolling && (!pointerElemChangedInterval || x !== lastAutoScrollX || y !== lastAutoScrollY)) {\n pointerElemChangedInterval && clearPointerElemChangedInterval(); // Detect for pointer elem change, emulating native DnD behaviour\n\n pointerElemChangedInterval = setInterval(function () {\n var newElem = getParentAutoScrollElement(document.elementFromPoint(x, y), true);\n\n if (newElem !== ogElemScroller) {\n ogElemScroller = newElem;\n clearAutoScrolls();\n }\n\n autoScroll(evt, _this.options, newElem, fallback);\n }, 10);\n lastAutoScrollX = x;\n lastAutoScrollY = y;\n }\n } else {\n // if DnD is enabled (and browser has good autoscrolling), first autoscroll will already scroll, so get parent autoscroll of first autoscroll\n if (!this.options.bubbleScroll || getParentAutoScrollElement(elem, true) === getWindowScrollingElement()) {\n clearAutoScrolls();\n return;\n }\n\n autoScroll(evt, this.options, getParentAutoScrollElement(elem, false), false);\n }\n }\n };\n return _extends(AutoScroll, {\n pluginName: 'scroll',\n initializeByDefault: true\n });\n}\n\nfunction clearAutoScrolls() {\n autoScrolls.forEach(function (autoScroll) {\n clearInterval(autoScroll.pid);\n });\n autoScrolls = [];\n}\n\nfunction clearPointerElemChangedInterval() {\n clearInterval(pointerElemChangedInterval);\n}\n\nvar autoScroll = throttle(function (evt, options, rootEl, isFallback) {\n // Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=505521\n if (!options.scroll) return;\n var x = (evt.touches ? evt.touches[0] : evt).clientX,\n y = (evt.touches ? evt.touches[0] : evt).clientY,\n sens = options.scrollSensitivity,\n speed = options.scrollSpeed,\n winScroller = getWindowScrollingElement();\n var scrollThisInstance = false,\n scrollCustomFn; // New scroll root, set scrollEl\n\n if (scrollRootEl !== rootEl) {\n scrollRootEl = rootEl;\n clearAutoScrolls();\n scrollEl = options.scroll;\n scrollCustomFn = options.scrollFn;\n\n if (scrollEl === true) {\n scrollEl = getParentAutoScrollElement(rootEl, true);\n }\n }\n\n var layersOut = 0;\n var currentParent = scrollEl;\n\n do {\n var el = currentParent,\n rect = getRect(el),\n top = rect.top,\n bottom = rect.bottom,\n left = rect.left,\n right = rect.right,\n width = rect.width,\n height = rect.height,\n canScrollX = void 0,\n canScrollY = void 0,\n scrollWidth = el.scrollWidth,\n scrollHeight = el.scrollHeight,\n elCSS = css(el),\n scrollPosX = el.scrollLeft,\n scrollPosY = el.scrollTop;\n\n if (el === winScroller) {\n canScrollX = width < scrollWidth && (elCSS.overflowX === 'auto' || elCSS.overflowX === 'scroll' || elCSS.overflowX === 'visible');\n canScrollY = height < scrollHeight && (elCSS.overflowY === 'auto' || elCSS.overflowY === 'scroll' || elCSS.overflowY === 'visible');\n } else {\n canScrollX = width < scrollWidth && (elCSS.overflowX === 'auto' || elCSS.overflowX === 'scroll');\n canScrollY = height < scrollHeight && (elCSS.overflowY === 'auto' || elCSS.overflowY === 'scroll');\n }\n\n var vx = canScrollX && (Math.abs(right - x) <= sens && scrollPosX + width < scrollWidth) - (Math.abs(left - x) <= sens && !!scrollPosX);\n var vy = canScrollY && (Math.abs(bottom - y) <= sens && scrollPosY + height < scrollHeight) - (Math.abs(top - y) <= sens && !!scrollPosY);\n\n if (!autoScrolls[layersOut]) {\n for (var i = 0; i <= layersOut; i++) {\n if (!autoScrolls[i]) {\n autoScrolls[i] = {};\n }\n }\n }\n\n if (autoScrolls[layersOut].vx != vx || autoScrolls[layersOut].vy != vy || autoScrolls[layersOut].el !== el) {\n autoScrolls[layersOut].el = el;\n autoScrolls[layersOut].vx = vx;\n autoScrolls[layersOut].vy = vy;\n clearInterval(autoScrolls[layersOut].pid);\n\n if (vx != 0 || vy != 0) {\n scrollThisInstance = true;\n /* jshint loopfunc:true */\n\n autoScrolls[layersOut].pid = setInterval(function () {\n // emulate drag over during autoscroll (fallback), emulating native DnD behaviour\n if (isFallback && this.layer === 0) {\n Sortable.active._onTouchMove(touchEvt$1); // To move ghost if it is positioned absolutely\n\n }\n\n var scrollOffsetY = autoScrolls[this.layer].vy ? autoScrolls[this.layer].vy * speed : 0;\n var scrollOffsetX = autoScrolls[this.layer].vx ? autoScrolls[this.layer].vx * speed : 0;\n\n if (typeof scrollCustomFn === 'function') {\n if (scrollCustomFn.call(Sortable.dragged.parentNode[expando], scrollOffsetX, scrollOffsetY, evt, touchEvt$1, autoScrolls[this.layer].el) !== 'continue') {\n return;\n }\n }\n\n scrollBy(autoScrolls[this.layer].el, scrollOffsetX, scrollOffsetY);\n }.bind({\n layer: layersOut\n }), 24);\n }\n }\n\n layersOut++;\n } while (options.bubbleScroll && currentParent !== winScroller && (currentParent = getParentAutoScrollElement(currentParent, false)));\n\n scrolling = scrollThisInstance; // in case another function catches scrolling as false in between when it is not\n}, 30);\n\nvar drop = function drop(_ref) {\n var originalEvent = _ref.originalEvent,\n putSortable = _ref.putSortable,\n dragEl = _ref.dragEl,\n activeSortable = _ref.activeSortable,\n dispatchSortableEvent = _ref.dispatchSortableEvent,\n hideGhostForTarget = _ref.hideGhostForTarget,\n unhideGhostForTarget = _ref.unhideGhostForTarget;\n if (!originalEvent) return;\n var toSortable = putSortable || activeSortable;\n hideGhostForTarget();\n var touch = originalEvent.changedTouches && originalEvent.changedTouches.length ? originalEvent.changedTouches[0] : originalEvent;\n var target = document.elementFromPoint(touch.clientX, touch.clientY);\n unhideGhostForTarget();\n\n if (toSortable && !toSortable.el.contains(target)) {\n dispatchSortableEvent('spill');\n this.onSpill({\n dragEl: dragEl,\n putSortable: putSortable\n });\n }\n};\n\nfunction Revert() {}\n\nRevert.prototype = {\n startIndex: null,\n dragStart: function dragStart(_ref2) {\n var oldDraggableIndex = _ref2.oldDraggableIndex;\n this.startIndex = oldDraggableIndex;\n },\n onSpill: function onSpill(_ref3) {\n var dragEl = _ref3.dragEl,\n putSortable = _ref3.putSortable;\n this.sortable.captureAnimationState();\n\n if (putSortable) {\n putSortable.captureAnimationState();\n }\n\n var nextSibling = getChild(this.sortable.el, this.startIndex, this.options);\n\n if (nextSibling) {\n this.sortable.el.insertBefore(dragEl, nextSibling);\n } else {\n this.sortable.el.appendChild(dragEl);\n }\n\n this.sortable.animateAll();\n\n if (putSortable) {\n putSortable.animateAll();\n }\n },\n drop: drop\n};\n\n_extends(Revert, {\n pluginName: 'revertOnSpill'\n});\n\nfunction Remove() {}\n\nRemove.prototype = {\n onSpill: function onSpill(_ref4) {\n var dragEl = _ref4.dragEl,\n putSortable = _ref4.putSortable;\n var parentSortable = putSortable || this.sortable;\n parentSortable.captureAnimationState();\n dragEl.parentNode && dragEl.parentNode.removeChild(dragEl);\n parentSortable.animateAll();\n },\n drop: drop\n};\n\n_extends(Remove, {\n pluginName: 'removeOnSpill'\n});\n\nvar lastSwapEl;\n\nfunction SwapPlugin() {\n function Swap() {\n this.defaults = {\n swapClass: 'sortable-swap-highlight'\n };\n }\n\n Swap.prototype = {\n dragStart: function dragStart(_ref) {\n var dragEl = _ref.dragEl;\n lastSwapEl = dragEl;\n },\n dragOverValid: function dragOverValid(_ref2) {\n var completed = _ref2.completed,\n target = _ref2.target,\n onMove = _ref2.onMove,\n activeSortable = _ref2.activeSortable,\n changed = _ref2.changed,\n cancel = _ref2.cancel;\n if (!activeSortable.options.swap) return;\n var el = this.sortable.el,\n options = this.options;\n\n if (target && target !== el) {\n var prevSwapEl = lastSwapEl;\n\n if (onMove(target) !== false) {\n toggleClass(target, options.swapClass, true);\n lastSwapEl = target;\n } else {\n lastSwapEl = null;\n }\n\n if (prevSwapEl && prevSwapEl !== lastSwapEl) {\n toggleClass(prevSwapEl, options.swapClass, false);\n }\n }\n\n changed();\n completed(true);\n cancel();\n },\n drop: function drop(_ref3) {\n var activeSortable = _ref3.activeSortable,\n putSortable = _ref3.putSortable,\n dragEl = _ref3.dragEl;\n var toSortable = putSortable || this.sortable;\n var options = this.options;\n lastSwapEl && toggleClass(lastSwapEl, options.swapClass, false);\n\n if (lastSwapEl && (options.swap || putSortable && putSortable.options.swap)) {\n if (dragEl !== lastSwapEl) {\n toSortable.captureAnimationState();\n if (toSortable !== activeSortable) activeSortable.captureAnimationState();\n swapNodes(dragEl, lastSwapEl);\n toSortable.animateAll();\n if (toSortable !== activeSortable) activeSortable.animateAll();\n }\n }\n },\n nulling: function nulling() {\n lastSwapEl = null;\n }\n };\n return _extends(Swap, {\n pluginName: 'swap',\n eventProperties: function eventProperties() {\n return {\n swapItem: lastSwapEl\n };\n }\n });\n}\n\nfunction swapNodes(n1, n2) {\n var p1 = n1.parentNode,\n p2 = n2.parentNode,\n i1,\n i2;\n if (!p1 || !p2 || p1.isEqualNode(n2) || p2.isEqualNode(n1)) return;\n i1 = index(n1);\n i2 = index(n2);\n\n if (p1.isEqualNode(p2) && i1 < i2) {\n i2++;\n }\n\n p1.insertBefore(n2, p1.children[i1]);\n p2.insertBefore(n1, p2.children[i2]);\n}\n\nvar multiDragElements = [],\n multiDragClones = [],\n lastMultiDragSelect,\n // for selection with modifier key down (SHIFT)\nmultiDragSortable,\n initialFolding = false,\n // Initial multi-drag fold when drag started\nfolding = false,\n // Folding any other time\ndragStarted = false,\n dragEl$1,\n clonesFromRect,\n clonesHidden;\n\nfunction MultiDragPlugin() {\n function MultiDrag(sortable) {\n // Bind all private methods\n for (var fn in this) {\n if (fn.charAt(0) === '_' && typeof this[fn] === 'function') {\n this[fn] = this[fn].bind(this);\n }\n }\n\n if (!sortable.options.avoidImplicitDeselect) {\n if (sortable.options.supportPointer) {\n on(document, 'pointerup', this._deselectMultiDrag);\n } else {\n on(document, 'mouseup', this._deselectMultiDrag);\n on(document, 'touchend', this._deselectMultiDrag);\n }\n }\n\n on(document, 'keydown', this._checkKeyDown);\n on(document, 'keyup', this._checkKeyUp);\n this.defaults = {\n selectedClass: 'sortable-selected',\n multiDragKey: null,\n avoidImplicitDeselect: false,\n setData: function setData(dataTransfer, dragEl) {\n var data = '';\n\n if (multiDragElements.length && multiDragSortable === sortable) {\n multiDragElements.forEach(function (multiDragElement, i) {\n data += (!i ? '' : ', ') + multiDragElement.textContent;\n });\n } else {\n data = dragEl.textContent;\n }\n\n dataTransfer.setData('Text', data);\n }\n };\n }\n\n MultiDrag.prototype = {\n multiDragKeyDown: false,\n isMultiDrag: false,\n delayStartGlobal: function delayStartGlobal(_ref) {\n var dragged = _ref.dragEl;\n dragEl$1 = dragged;\n },\n delayEnded: function delayEnded() {\n this.isMultiDrag = ~multiDragElements.indexOf(dragEl$1);\n },\n setupClone: function setupClone(_ref2) {\n var sortable = _ref2.sortable,\n cancel = _ref2.cancel;\n if (!this.isMultiDrag) return;\n\n for (var i = 0; i < multiDragElements.length; i++) {\n multiDragClones.push(clone(multiDragElements[i]));\n multiDragClones[i].sortableIndex = multiDragElements[i].sortableIndex;\n multiDragClones[i].draggable = false;\n multiDragClones[i].style['will-change'] = '';\n toggleClass(multiDragClones[i], this.options.selectedClass, false);\n multiDragElements[i] === dragEl$1 && toggleClass(multiDragClones[i], this.options.chosenClass, false);\n }\n\n sortable._hideClone();\n\n cancel();\n },\n clone: function clone(_ref3) {\n var sortable = _ref3.sortable,\n rootEl = _ref3.rootEl,\n dispatchSortableEvent = _ref3.dispatchSortableEvent,\n cancel = _ref3.cancel;\n if (!this.isMultiDrag) return;\n\n if (!this.options.removeCloneOnHide) {\n if (multiDragElements.length && multiDragSortable === sortable) {\n insertMultiDragClones(true, rootEl);\n dispatchSortableEvent('clone');\n cancel();\n }\n }\n },\n showClone: function showClone(_ref4) {\n var cloneNowShown = _ref4.cloneNowShown,\n rootEl = _ref4.rootEl,\n cancel = _ref4.cancel;\n if (!this.isMultiDrag) return;\n insertMultiDragClones(false, rootEl);\n multiDragClones.forEach(function (clone) {\n css(clone, 'display', '');\n });\n cloneNowShown();\n clonesHidden = false;\n cancel();\n },\n hideClone: function hideClone(_ref5) {\n var _this = this;\n\n var sortable = _ref5.sortable,\n cloneNowHidden = _ref5.cloneNowHidden,\n cancel = _ref5.cancel;\n if (!this.isMultiDrag) return;\n multiDragClones.forEach(function (clone) {\n css(clone, 'display', 'none');\n\n if (_this.options.removeCloneOnHide && clone.parentNode) {\n clone.parentNode.removeChild(clone);\n }\n });\n cloneNowHidden();\n clonesHidden = true;\n cancel();\n },\n dragStartGlobal: function dragStartGlobal(_ref6) {\n var sortable = _ref6.sortable;\n\n if (!this.isMultiDrag && multiDragSortable) {\n multiDragSortable.multiDrag._deselectMultiDrag();\n }\n\n multiDragElements.forEach(function (multiDragElement) {\n multiDragElement.sortableIndex = index(multiDragElement);\n }); // Sort multi-drag elements\n\n multiDragElements = multiDragElements.sort(function (a, b) {\n return a.sortableIndex - b.sortableIndex;\n });\n dragStarted = true;\n },\n dragStarted: function dragStarted(_ref7) {\n var _this2 = this;\n\n var sortable = _ref7.sortable;\n if (!this.isMultiDrag) return;\n\n if (this.options.sort) {\n // Capture rects,\n // hide multi drag elements (by positioning them absolute),\n // set multi drag elements rects to dragRect,\n // show multi drag elements,\n // animate to rects,\n // unset rects & remove from DOM\n sortable.captureAnimationState();\n\n if (this.options.animation) {\n multiDragElements.forEach(function (multiDragElement) {\n if (multiDragElement === dragEl$1) return;\n css(multiDragElement, 'position', 'absolute');\n });\n var dragRect = getRect(dragEl$1, false, true, true);\n multiDragElements.forEach(function (multiDragElement) {\n if (multiDragElement === dragEl$1) return;\n setRect(multiDragElement, dragRect);\n });\n folding = true;\n initialFolding = true;\n }\n }\n\n sortable.animateAll(function () {\n folding = false;\n initialFolding = false;\n\n if (_this2.options.animation) {\n multiDragElements.forEach(function (multiDragElement) {\n unsetRect(multiDragElement);\n });\n } // Remove all auxiliary multidrag items from el, if sorting enabled\n\n\n if (_this2.options.sort) {\n removeMultiDragElements();\n }\n });\n },\n dragOver: function dragOver(_ref8) {\n var target = _ref8.target,\n completed = _ref8.completed,\n cancel = _ref8.cancel;\n\n if (folding && ~multiDragElements.indexOf(target)) {\n completed(false);\n cancel();\n }\n },\n revert: function revert(_ref9) {\n var fromSortable = _ref9.fromSortable,\n rootEl = _ref9.rootEl,\n sortable = _ref9.sortable,\n dragRect = _ref9.dragRect;\n\n if (multiDragElements.length > 1) {\n // Setup unfold animation\n multiDragElements.forEach(function (multiDragElement) {\n sortable.addAnimationState({\n target: multiDragElement,\n rect: folding ? getRect(multiDragElement) : dragRect\n });\n unsetRect(multiDragElement);\n multiDragElement.fromRect = dragRect;\n fromSortable.removeAnimationState(multiDragElement);\n });\n folding = false;\n insertMultiDragElements(!this.options.removeCloneOnHide, rootEl);\n }\n },\n dragOverCompleted: function dragOverCompleted(_ref10) {\n var sortable = _ref10.sortable,\n isOwner = _ref10.isOwner,\n insertion = _ref10.insertion,\n activeSortable = _ref10.activeSortable,\n parentEl = _ref10.parentEl,\n putSortable = _ref10.putSortable;\n var options = this.options;\n\n if (insertion) {\n // Clones must be hidden before folding animation to capture dragRectAbsolute properly\n if (isOwner) {\n activeSortable._hideClone();\n }\n\n initialFolding = false; // If leaving sort:false root, or already folding - Fold to new location\n\n if (options.animation && multiDragElements.length > 1 && (folding || !isOwner && !activeSortable.options.sort && !putSortable)) {\n // Fold: Set all multi drag elements's rects to dragEl's rect when multi-drag elements are invisible\n var dragRectAbsolute = getRect(dragEl$1, false, true, true);\n multiDragElements.forEach(function (multiDragElement) {\n if (multiDragElement === dragEl$1) return;\n setRect(multiDragElement, dragRectAbsolute); // Move element(s) to end of parentEl so that it does not interfere with multi-drag clones insertion if they are inserted\n // while folding, and so that we can capture them again because old sortable will no longer be fromSortable\n\n parentEl.appendChild(multiDragElement);\n });\n folding = true;\n } // Clones must be shown (and check to remove multi drags) after folding when interfering multiDragElements are moved out\n\n\n if (!isOwner) {\n // Only remove if not folding (folding will remove them anyways)\n if (!folding) {\n removeMultiDragElements();\n }\n\n if (multiDragElements.length > 1) {\n var clonesHiddenBefore = clonesHidden;\n\n activeSortable._showClone(sortable); // Unfold animation for clones if showing from hidden\n\n\n if (activeSortable.options.animation && !clonesHidden && clonesHiddenBefore) {\n multiDragClones.forEach(function (clone) {\n activeSortable.addAnimationState({\n target: clone,\n rect: clonesFromRect\n });\n clone.fromRect = clonesFromRect;\n clone.thisAnimationDuration = null;\n });\n }\n } else {\n activeSortable._showClone(sortable);\n }\n }\n }\n },\n dragOverAnimationCapture: function dragOverAnimationCapture(_ref11) {\n var dragRect = _ref11.dragRect,\n isOwner = _ref11.isOwner,\n activeSortable = _ref11.activeSortable;\n multiDragElements.forEach(function (multiDragElement) {\n multiDragElement.thisAnimationDuration = null;\n });\n\n if (activeSortable.options.animation && !isOwner && activeSortable.multiDrag.isMultiDrag) {\n clonesFromRect = _extends({}, dragRect);\n var dragMatrix = matrix(dragEl$1, true);\n clonesFromRect.top -= dragMatrix.f;\n clonesFromRect.left -= dragMatrix.e;\n }\n },\n dragOverAnimationComplete: function dragOverAnimationComplete() {\n if (folding) {\n folding = false;\n removeMultiDragElements();\n }\n },\n drop: function drop(_ref12) {\n var evt = _ref12.originalEvent,\n rootEl = _ref12.rootEl,\n parentEl = _ref12.parentEl,\n sortable = _ref12.sortable,\n dispatchSortableEvent = _ref12.dispatchSortableEvent,\n oldIndex = _ref12.oldIndex,\n putSortable = _ref12.putSortable;\n var toSortable = putSortable || this.sortable;\n if (!evt) return;\n var options = this.options,\n children = parentEl.children; // Multi-drag selection\n\n if (!dragStarted) {\n if (options.multiDragKey && !this.multiDragKeyDown) {\n this._deselectMultiDrag();\n }\n\n toggleClass(dragEl$1, options.selectedClass, !~multiDragElements.indexOf(dragEl$1));\n\n if (!~multiDragElements.indexOf(dragEl$1)) {\n multiDragElements.push(dragEl$1);\n dispatchEvent({\n sortable: sortable,\n rootEl: rootEl,\n name: 'select',\n targetEl: dragEl$1,\n originalEvent: evt\n }); // Modifier activated, select from last to dragEl\n\n if (evt.shiftKey && lastMultiDragSelect && sortable.el.contains(lastMultiDragSelect)) {\n var lastIndex = index(lastMultiDragSelect),\n currentIndex = index(dragEl$1);\n\n if (~lastIndex && ~currentIndex && lastIndex !== currentIndex) {\n // Must include lastMultiDragSelect (select it), in case modified selection from no selection\n // (but previous selection existed)\n var n, i;\n\n if (currentIndex > lastIndex) {\n i = lastIndex;\n n = currentIndex;\n } else {\n i = currentIndex;\n n = lastIndex + 1;\n }\n\n for (; i < n; i++) {\n if (~multiDragElements.indexOf(children[i])) continue;\n toggleClass(children[i], options.selectedClass, true);\n multiDragElements.push(children[i]);\n dispatchEvent({\n sortable: sortable,\n rootEl: rootEl,\n name: 'select',\n targetEl: children[i],\n originalEvent: evt\n });\n }\n }\n } else {\n lastMultiDragSelect = dragEl$1;\n }\n\n multiDragSortable = toSortable;\n } else {\n multiDragElements.splice(multiDragElements.indexOf(dragEl$1), 1);\n lastMultiDragSelect = null;\n dispatchEvent({\n sortable: sortable,\n rootEl: rootEl,\n name: 'deselect',\n targetEl: dragEl$1,\n originalEvent: evt\n });\n }\n } // Multi-drag drop\n\n\n if (dragStarted && this.isMultiDrag) {\n folding = false; // Do not \"unfold\" after around dragEl if reverted\n\n if ((parentEl[expando].options.sort || parentEl !== rootEl) && multiDragElements.length > 1) {\n var dragRect = getRect(dragEl$1),\n multiDragIndex = index(dragEl$1, ':not(.' + this.options.selectedClass + ')');\n if (!initialFolding && options.animation) dragEl$1.thisAnimationDuration = null;\n toSortable.captureAnimationState();\n\n if (!initialFolding) {\n if (options.animation) {\n dragEl$1.fromRect = dragRect;\n multiDragElements.forEach(function (multiDragElement) {\n multiDragElement.thisAnimationDuration = null;\n\n if (multiDragElement !== dragEl$1) {\n var rect = folding ? getRect(multiDragElement) : dragRect;\n multiDragElement.fromRect = rect; // Prepare unfold animation\n\n toSortable.addAnimationState({\n target: multiDragElement,\n rect: rect\n });\n }\n });\n } // Multi drag elements are not necessarily removed from the DOM on drop, so to reinsert\n // properly they must all be removed\n\n\n removeMultiDragElements();\n multiDragElements.forEach(function (multiDragElement) {\n if (children[multiDragIndex]) {\n parentEl.insertBefore(multiDragElement, children[multiDragIndex]);\n } else {\n parentEl.appendChild(multiDragElement);\n }\n\n multiDragIndex++;\n }); // If initial folding is done, the elements may have changed position because they are now\n // unfolding around dragEl, even though dragEl may not have his index changed, so update event\n // must be fired here as Sortable will not.\n\n if (oldIndex === index(dragEl$1)) {\n var update = false;\n multiDragElements.forEach(function (multiDragElement) {\n if (multiDragElement.sortableIndex !== index(multiDragElement)) {\n update = true;\n return;\n }\n });\n\n if (update) {\n dispatchSortableEvent('update');\n }\n }\n } // Must be done after capturing individual rects (scroll bar)\n\n\n multiDragElements.forEach(function (multiDragElement) {\n unsetRect(multiDragElement);\n });\n toSortable.animateAll();\n }\n\n multiDragSortable = toSortable;\n } // Remove clones if necessary\n\n\n if (rootEl === parentEl || putSortable && putSortable.lastPutMode !== 'clone') {\n multiDragClones.forEach(function (clone) {\n clone.parentNode && clone.parentNode.removeChild(clone);\n });\n }\n },\n nullingGlobal: function nullingGlobal() {\n this.isMultiDrag = dragStarted = false;\n multiDragClones.length = 0;\n },\n destroyGlobal: function destroyGlobal() {\n this._deselectMultiDrag();\n\n off(document, 'pointerup', this._deselectMultiDrag);\n off(document, 'mouseup', this._deselectMultiDrag);\n off(document, 'touchend', this._deselectMultiDrag);\n off(document, 'keydown', this._checkKeyDown);\n off(document, 'keyup', this._checkKeyUp);\n },\n _deselectMultiDrag: function _deselectMultiDrag(evt) {\n if (typeof dragStarted !== \"undefined\" && dragStarted) return; // Only deselect if selection is in this sortable\n\n if (multiDragSortable !== this.sortable) return; // Only deselect if target is not item in this sortable\n\n if (evt && closest(evt.target, this.options.draggable, this.sortable.el, false)) return; // Only deselect if left click\n\n if (evt && evt.button !== 0) return;\n\n while (multiDragElements.length) {\n var el = multiDragElements[0];\n toggleClass(el, this.options.selectedClass, false);\n multiDragElements.shift();\n dispatchEvent({\n sortable: this.sortable,\n rootEl: this.sortable.el,\n name: 'deselect',\n targetEl: el,\n originalEvent: evt\n });\n }\n },\n _checkKeyDown: function _checkKeyDown(evt) {\n if (evt.key === this.options.multiDragKey) {\n this.multiDragKeyDown = true;\n }\n },\n _checkKeyUp: function _checkKeyUp(evt) {\n if (evt.key === this.options.multiDragKey) {\n this.multiDragKeyDown = false;\n }\n }\n };\n return _extends(MultiDrag, {\n // Static methods & properties\n pluginName: 'multiDrag',\n utils: {\n /**\r\n * Selects the provided multi-drag item\r\n * @param {HTMLElement} el The element to be selected\r\n */\n select: function select(el) {\n var sortable = el.parentNode[expando];\n if (!sortable || !sortable.options.multiDrag || ~multiDragElements.indexOf(el)) return;\n\n if (multiDragSortable && multiDragSortable !== sortable) {\n multiDragSortable.multiDrag._deselectMultiDrag();\n\n multiDragSortable = sortable;\n }\n\n toggleClass(el, sortable.options.selectedClass, true);\n multiDragElements.push(el);\n },\n\n /**\r\n * Deselects the provided multi-drag item\r\n * @param {HTMLElement} el The element to be deselected\r\n */\n deselect: function deselect(el) {\n var sortable = el.parentNode[expando],\n index = multiDragElements.indexOf(el);\n if (!sortable || !sortable.options.multiDrag || !~index) return;\n toggleClass(el, sortable.options.selectedClass, false);\n multiDragElements.splice(index, 1);\n }\n },\n eventProperties: function eventProperties() {\n var _this3 = this;\n\n var oldIndicies = [],\n newIndicies = [];\n multiDragElements.forEach(function (multiDragElement) {\n oldIndicies.push({\n multiDragElement: multiDragElement,\n index: multiDragElement.sortableIndex\n }); // multiDragElements will already be sorted if folding\n\n var newIndex;\n\n if (folding && multiDragElement !== dragEl$1) {\n newIndex = -1;\n } else if (folding) {\n newIndex = index(multiDragElement, ':not(.' + _this3.options.selectedClass + ')');\n } else {\n newIndex = index(multiDragElement);\n }\n\n newIndicies.push({\n multiDragElement: multiDragElement,\n index: newIndex\n });\n });\n return {\n items: _toConsumableArray(multiDragElements),\n clones: [].concat(multiDragClones),\n oldIndicies: oldIndicies,\n newIndicies: newIndicies\n };\n },\n optionListeners: {\n multiDragKey: function multiDragKey(key) {\n key = key.toLowerCase();\n\n if (key === 'ctrl') {\n key = 'Control';\n } else if (key.length > 1) {\n key = key.charAt(0).toUpperCase() + key.substr(1);\n }\n\n return key;\n }\n }\n });\n}\n\nfunction insertMultiDragElements(clonesInserted, rootEl) {\n multiDragElements.forEach(function (multiDragElement, i) {\n var target = rootEl.children[multiDragElement.sortableIndex + (clonesInserted ? Number(i) : 0)];\n\n if (target) {\n rootEl.insertBefore(multiDragElement, target);\n } else {\n rootEl.appendChild(multiDragElement);\n }\n });\n}\n/**\r\n * Insert multi-drag clones\r\n * @param {[Boolean]} elementsInserted Whether the multi-drag elements are inserted\r\n * @param {HTMLElement} rootEl\r\n */\n\n\nfunction insertMultiDragClones(elementsInserted, rootEl) {\n multiDragClones.forEach(function (clone, i) {\n var target = rootEl.children[clone.sortableIndex + (elementsInserted ? Number(i) : 0)];\n\n if (target) {\n rootEl.insertBefore(clone, target);\n } else {\n rootEl.appendChild(clone);\n }\n });\n}\n\nfunction removeMultiDragElements() {\n multiDragElements.forEach(function (multiDragElement) {\n if (multiDragElement === dragEl$1) return;\n multiDragElement.parentNode && multiDragElement.parentNode.removeChild(multiDragElement);\n });\n}\n\nSortable.mount(new AutoScrollPlugin());\nSortable.mount(Remove, Revert);\n\nexport default Sortable;\nexport { MultiDragPlugin as MultiDrag, Sortable, SwapPlugin as Swap };\n","import SettingsActions from '../actions/SettingsActions';\nimport Maintenance from './MaintenanceManager';\nimport FipamoAdminAPI, { TASK_SYNC_SETTNIGS } from '../../libraries/FipamoAdminAPI';\nimport * as DataEvent from '../../../src/com/events/DataEvent';\nimport Mailer from '../actions/Mailer';\nimport Notifications from '../ui/Notifications';\nconst notify = new Notifications();\nexport default class SettingsIndex {\n\t//--------------------------\n\t// constructor\n\t//--------------------------\n\tconstructor() {\n\t\tthis.processing = false;\n\t\tthis.start();\n\t\tthis.admin = new FipamoAdminAPI(null);\n\t\tthis.mm = new Maintenance(null, null);\n\t}\n\t//--------------------------\n\t// methods\n\t//--------------------------\n\tstart() {\n\t\tlet self = this;\n\t\t//handle save button\n\t\tdocument.getElementById('save-toggle').addEventListener('click', () =>\n\t\t\tnew SettingsActions()\n\t\t\t\t.getInfo()\n\t\t\t\t.then(data => {\n\t\t\t\t\tnotify.alert('Saving Settings', null);\n\t\t\t\t\tself.admin.sync(TASK_SYNC_SETTNIGS, data).then(r => {\n\t\t\t\t\t\tif (r.type == DataEvent.SETTINGS_UPDATED) {\n\t\t\t\t\t\t\tnotify.alert(r.message, true);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tnotify.alert(r.message, true);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t})\n\t\t\t\t.catch(() => {\n\t\t\t\t\t//console.log(err);\n\t\t\t\t})\n\t\t);\n\t\t//handle set up image uploads\n\t\tdocument.querySelector('[role=\"avatar\"]').addEventListener('click', () => {\n\t\t\tdocument.getElementById('avatar-upload').click();\n\t\t});\n\t\tdocument.querySelector('[role=\"background\"]').addEventListener('click', () => {\n\t\t\tdocument.getElementById('background-upload').click();\n\t\t});\n\t\tdocument.getElementById('avatar-upload').addEventListener(\n\t\t\t'change',\n\t\t\te => {\n\t\t\t\tself.handleImageUpload(e.target.id, e.target.files);\n\t\t\t},\n\t\t\tfalse\n\t\t);\n\t\tdocument.getElementById('background-upload').addEventListener(\n\t\t\t'change',\n\t\t\te => {\n\t\t\t\tself.handleImageUpload(e.target.id, e.target.files);\n\t\t\t},\n\t\t\tfalse\n\t\t);\n\t\t//handle api access toggle\n\t\tvar apiButton = document.getElementById('api-access-toggle');\n\t\tvar apiStatus = document.getElementById('api-status');\n\t\tapiButton.addEventListener('click', e => {\n\t\t\te.stopPropagation();\n\t\t\te.preventDefault();\n\t\t\tif (apiButton.getAttribute('data-enabled') == 'false') {\n\t\t\t\tapiButton.setAttribute('data-enabled', 'true');\n\t\t\t\tapiStatus.innerHTML = 'API ACCESS IS ENABLED';\n\t\t\t} else {\n\t\t\t\tapiButton.setAttribute('data-enabled', 'false');\n\t\t\t\tapiStatus.innerHTML = 'API ACCESS IS DISABLED';\n\t\t\t}\n\t\t});\n\n\t\t//handle dynamic page rendering\n\t\tvar dynamicRenderButton = document.getElementById('dynamic-render-toggle');\n\t\tvar dynamicRenderStatus = document.getElementById('dynamic-render-status');\n\t\tdynamicRenderButton.addEventListener('click', e => {\n\t\t\te.stopPropagation();\n\t\t\te.preventDefault();\n\t\t\tif (dynamicRenderButton.getAttribute('data-enabled') == 'false') {\n\t\t\t\tdynamicRenderButton.setAttribute('data-enabled', 'true');\n\t\t\t\tdynamicRenderStatus.innerHTML = 'DYNAMIC PAGE RENDERING';\n\t\t\t} else {\n\t\t\t\tdynamicRenderButton.setAttribute('data-enabled', 'false');\n\t\t\t\tdynamicRenderStatus.innerHTML = 'STATIC PAGE RENDERING';\n\t\t\t}\n\t\t});\n\n\t\tdocument\n\t\t\t.getElementById('send-mail')\n\t\t\t.addEventListener('click', e => this.handleMailer(e));\n\t\tdocument\n\t\t\t.getElementById('publish-pages')\n\t\t\t.addEventListener('click', e => this.handlePublished(e));\n\t\t//handle page render on save toggle\n\t\tdocument\n\t\t\t.getElementById('render-toggle')\n\t\t\t.addEventListener('click', e => this.toggleRender(e));\n\t\t//handle theme toggle\n\t\tlet themeBtns = document.querySelectorAll('.theme-select');\n\t\tfor (var i = 0, length = themeBtns.length; i < length; i++) {\n\t\t\tthemeBtns[i].addEventListener('click', e => this.handleThemes(e));\n\t\t}\n\t\t//handle mail options\n\t\tlet mailBtn = document.querySelectorAll('.mail-option');\n\t\tfor (i = 0, length = mailBtn.length; i < length; i++) {\n\t\t\tmailBtn[i].addEventListener('click', e => this.handleMailOptions(e));\n\t\t}\n\t\t//handle backup from settings [disabled]\n\n\t\tdocument\n\t\t\t.getElementById('create-backup')\n\t\t\t.addEventListener('click', e => this.handleBackup(e));\n\n\t\t/*\n document\n .getElementById(\"reindex-pages\")\n .addEventListener(\"click\", (e) => this.handleReindex(e));\n */\n\t}\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n\ttogglePrivacy(e) {\n\t\te.stopPropagation();\n\t\te.preventDefault();\n\t\tif (e.target.getAttribute('data-private') == 'false') {\n\t\t\te.target.setAttribute('data-private', 'true');\n\t\t\te.target.innerHTML = 'SITE IS PUBLIC';\n\t\t} else {\n\t\t\te.target.setAttribute('data-private', 'false');\n\t\t\te.target.innerHTML = 'SITE IS PRIVATE';\n\t\t}\n\t}\n\ttoggleRender(e) {\n\t\te.stopPropagation();\n\t\te.preventDefault();\n\t\tlet button = document.getElementById('render-toggle');\n\t\tif (button.getAttribute('data-render') == 'false') {\n\t\t\tbutton.setAttribute('data-render', 'true');\n\t\t\t//e.target.innerHTML = 'RENDER PAGES ON SAVE';\n\t\t} else {\n\t\t\tbutton.setAttribute('data-render', 'false');\n\t\t\t//e.target.innerHTML = \"DON'T RENDER PAGES ON SAVE\";\n\t\t}\n\t}\n\thandleMailer() {\n\t\tlet mailer = new Mailer();\n\t\tmailer.testMail();\n\t\t//mailer.sendMail();\n\t}\n\thandleThemes(e) {\n\t\te.stopPropagation();\n\t\te.preventDefault();\n\t\tlet themes = document.querySelectorAll('.theme-select');\n\t\tfor (var i = 0, length = themes.length; i < length; i++) {\n\t\t\te.target.id == themes[i].id\n\t\t\t\t? themes[i].setAttribute('data-enabled', 'true')\n\t\t\t\t: themes[i].setAttribute('data-enabled', 'false');\n\t\t}\n\t}\n\thandleMailOptions(e) {\n\t\te.preventDefault();\n\t\te.stopPropagation();\n\t\tlet smtp = document.getElementById('mail-smtp');\n\t\tlet mailgun = document.getElementById('mail-mg');\n\t\tlet mail = document.querySelectorAll('.mail-option');\n\t\tfor (var i = 0, length = mail.length; i < length; i++) {\n\t\t\tif (e.target.id == mail[i].id) {\n\t\t\t\tmail[i].setAttribute('data-enabled', 'true');\n\t\t\t\tif (e.target.id == 'option-smtp') {\n\t\t\t\t\tsmtp.setAttribute('data-enabled', 'true');\n\t\t\t\t\tmailgun.setAttribute('data-enabled', 'false');\n\t\t\t\t} else if (e.target.id == 'option-none') {\n\t\t\t\t\tsmtp.setAttribute('data-enabled', 'false');\n\t\t\t\t\tmailgun.setAttribute('data-enabled', 'false');\n\t\t\t\t} else {\n\t\t\t\t\tsmtp.setAttribute('data-enabled', 'false');\n\t\t\t\t\tmailgun.setAttribute('data-enabled', 'true');\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tmail[i].setAttribute('data-enabled', 'false');\n\t\t\t}\n\t\t}\n\t}\n\thandleImageUpload(type, files) {\n\t\tnotify.alert('Uploading Image... ', null);\n\t\tlet self = this;\n\t\tnotify.alert('Uploading Image', null);\n\t\tlet upload = new FormData();\n\t\tupload.enctype = 'multipart/form-data';\n\t\tupload.append('source', type);\n\t\tupload.append('upload_files[]', files[0], files[0].name);\n\n\t\tthis.mm\n\t\t\t.filesUpload(files[0].type, upload)\n\t\t\t.then(r => {\n\t\t\t\tif (type == 'avatar-upload') {\n\t\t\t\t\tnotify.alert(r.message, true);\n\t\t\t\t\tdocument.querySelector('[role=\"avatar\"]').style.background =\n\t\t\t\t\t\t'url(' + r.filePath + ') no-repeat center center / cover';\n\t\t\t\t} else {\n\t\t\t\t\tnotify.alert(r.message, true);\n\t\t\t\t\tdocument.querySelector('[role=\"background\"]').style.background =\n\t\t\t\t\t\t'url(' + r.filePath + ') no-repeat center center / cover';\n\t\t\t\t}\n\t\t\t})\n\t\t\t.catch(() => {\n\t\t\t\t//console.log(err)\n\t\t\t});\n\t}\n\thandlePublished(e) {\n\t\tif (this.processing) return;\n\t\te.preventDefault();\n\t\te.stopPropagation();\n\t\tlet self = this;\n\t\tlet task = { task: 'PUBLISH_ALL' };\n\t\tthis.processing = true;\n\t\tnotify.alert('Publishing site...', null);\n\t\tthis.admin\n\t\t\t.publish(task)\n\t\t\t.then(r => {\n\t\t\t\tself.processing = false;\n\t\t\t\tnotify.alert(r.message, true);\n\t\t\t})\n\t\t\t.catch(err => {\n\t\t\t\tself.processing = false;\n\t\t\t\tnotify.alert(err, false);\n\t\t\t});\n\t}\n\n\thandleBackup(e) {\n\t\te.preventDefault();\n\t\te.stopPropagation();\n\t\tnotify.alert('Creating backup', null);\n\t\tthis.mm\n\t\t\t.backup()\n\t\t\t.then(r => {\n\t\t\t\tnotify.alert(r.message, true);\n\t\t\t})\n\t\t\t.catch(err => {\n\t\t\t\tnotify.alert(err, false);\n\t\t\t});\n\t}\n\n\thandleReindex(e) {\n\t\tif (this.processing) return;\n\t\tlet self = this;\n\t\te.preventDefault();\n\t\te.stopPropagation();\n\t\tlet task = { task: 'cleanup pages indexes' };\n\t\tthis.processing = true;\n\t\tnotify.alert('Cleaning up page indexes', null);\n\t\tthis.admin\n\t\t\t.handleReindex(task)\n\t\t\t.then(r => {\n\t\t\t\tself.processing = false;\n\t\t\t\tnotify.alert(r.message, true);\n\t\t\t})\n\t\t\t.catch(err => {\n\t\t\t\tself.processing = false;\n\t\t\t\tnotify.alert(err, false);\n\t\t\t});\n\t}\n}\n","export default class SettingsActions {\n\t//--------------------------\n\t// constructor\n\t//--------------------------\n\tconstructor() {}\n\t//--------------------------\n\t// methods\n\t//--------------------------\n\tgetInfo() {\n\t\tlet handle = document.getElementById('settings-handle').value;\n\t\tlet email = document.getElementById('settings-email').value;\n\t\tlet url = document.getElementById('settings-url').value;\n\t\tlet title = document.getElementById('settings-title').value;\n\t\tlet desc = document.getElementById('settings-desc').value;\n\t\t//let privacy = document.getElementById('privacy-toggle').getAttribute('data-private');\n\t\tlet render = document.getElementById('render-toggle').getAttribute('data-render');\n\t\tlet background = document\n\t\t\t.querySelector('[role=\"background\"]')\n\t\t\t.style.backgroundImage.slice(4, -1)\n\t\t\t.replace(/\"/g, '');\n\t\tlet selected = '';\n\t\tlet selects = document.querySelectorAll('.theme-select');\n\t\tlet smtpDomain = document.getElementById('smtp-domain').value;\n\t\tlet smtpEmail = document.getElementById('smtp-email').value;\n\t\tlet smtpPass = document.getElementById('smtp-pass').value;\n\t\tlet mgDomain = document.getElementById('mg-domain').value;\n\t\tlet mgKey = document.getElementById('mg-key').value;\n\t\tlet mailActive = '';\n\t\tlet mailOptions = document.querySelectorAll('.mail-option');\n\t\tlet apiStatus = document\n\t\t\t.getElementById('api-access-toggle')\n\t\t\t.getAttribute('data-enabled');\n\t\tlet dynamicRenderStatus = document\n\t\t\t.getElementById('dynamic-render-toggle')\n\t\t\t.getAttribute('data-enabled');\n\t\tvar i, count;\n\t\tfor (i = 0, count = selects.length; i < count; i++) {\n\t\t\tif (selects[i].getAttribute('data-enabled') == 'true')\n\t\t\t\tselected = selects[i].id;\n\t\t}\n\n\t\tfor (i = 0, count = mailOptions.length; i < count; i++) {\n\t\t\tif (mailOptions[i].getAttribute('data-enabled') == 'true')\n\t\t\t\tmailActive = mailOptions[i].id;\n\t\t}\n\t\tlet settingsData = {\n\t\t\tglobal: {\n\t\t\t\tbase_url: url,\n\t\t\t\ttitle: title,\n\t\t\t\tdescriptions: desc,\n\t\t\t\tbackground: background,\n\t\t\t\tprivate: false,\n\t\t\t\trenderOnSave: render,\n\t\t\t\ttheme: selected,\n\t\t\t\texternalAPI: apiStatus,\n\t\t\t\tdynamicRender: dynamicRenderStatus\n\t\t\t},\n\t\t\tmember: { handle: handle, email: email },\n\t\t\temail: {\n\t\t\t\tactive: mailActive,\n\t\t\t\tsmtp: {\n\t\t\t\t\tdomain: smtpDomain,\n\t\t\t\t\temail: smtpEmail,\n\t\t\t\t\tpassword: smtpPass\n\t\t\t\t},\n\t\t\t\tmailgun: {\n\t\t\t\t\tdomain: mgDomain,\n\t\t\t\t\tkey: mgKey\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\treturn new Promise(function (resolve) {\n\t\t\tresolve(settingsData);\n\t\t});\n\t}\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n}\n","import FipamoAdminAPI from \"../../libraries/FipamoAdminAPI\";\nimport Notficaton from \"../ui/Notifications\";\nconst notify = new Notficaton();\nexport default class Mailer {\n //--------------------------\n // constructor\n //--------------------------\n constructor() {}\n //--------------------------\n // methods\n //--------------------------\n sendMail() {\n let mailData = {\n content: \"This is a test email\"\n };\n let admin = new FipamoAdminAPI();\n admin\n .sendMail(mailData)\n .then((result) => {\n notify.alert(result.message, true);\n })\n .catch((err) => {\n notify.alert(err.message, false);\n });\n }\n testMail() {\n let mailData = {\n content: \"This is a test email\",\n mail_task: \"TESTING\"\n };\n let admin = new FipamoAdminAPI();\n admin\n .sendMail(mailData)\n .then((result) => {\n notify.alert(result.message, true);\n })\n .catch((err) => {\n notify.alert(err.message, false);\n });\n }\n //--------------------------\n // event handlers\n //--------------------------\n}\n","import FipamoAdminAPI, { TASK_SYNC_NAV } from '../../libraries/FipamoAdminAPI';\nimport NavActions from '../actions/NavActions';\nimport * as DataEvent from '../events/DataEvent';\nimport Notifications from '../ui/Notifications';\nimport Sortable from 'sortablejs';\nconst notify = new Notifications();\n\nexport default class NavIndex {\n\t//--------------------------\n\t// constructor\n\t//--------------------------\n\tconstructor() {\n\t\tthis.processing = false;\n\t\tthis.admin = new FipamoAdminAPI(null);\n\t\tthis.start();\n\t}\n\t//--------------------------\n\t// methods\n\t//--------------------------\n\tstart() {\n\t\t//grabs elements and makes them sortables\n\t\tlet self = this;\n\t\tSortable.create(document.getElementById('nav-items'), {\n\t\t\tonUpdate: () => {\n\t\t\t\tnew NavActions().syncMenu().then(data => {\n\t\t\t\t\tnotify.alert('Updating Menu', null);\n\t\t\t\t\tself.admin.sync(TASK_SYNC_NAV, data).then(r => {\n\t\t\t\t\t\tif (r.type == DataEvent.MENU_UPDATED) {\n\t\t\t\t\t\t\tnotify.alert(r.message, true);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tnotify.alert(r.message, true);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\t\tvar nav = document.querySelectorAll('.nav-btn');\n\t\tfor (var i = 0, length = nav.length; i < length; i++) {\n\t\t\tnav[i].addEventListener('click', e => this.handleNavButton(e), false);\n\t\t}\n\t}\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n\thandleNavButton(e) {\n\t\tif (this.processing) return;\n\t\tlet id = '';\n\t\tlet self = this;\n\t\tswitch (e.target.id) {\n\t\t\tcase 'remove-item':\n\t\t\t\tid = e.target.getAttribute('data-id');\n\t\t\t\tnew NavActions().removeItem(id);\n\t\t\t\tnew NavActions().syncMenu().then(data => {\n\t\t\t\t\tdata.remove = e.target.getAttribute('data-uuid');\n\t\t\t\t\tnotify.alert('Editing Menu', null);\n\t\t\t\t\tself.processing = true;\n\t\t\t\t\tself.admin.sync(TASK_SYNC_NAV, data).then(r => {\n\t\t\t\t\t\tself.processing = false;\n\t\t\t\t\t\tif (r.type == DataEvent.MENU_UPDATED) {\n\t\t\t\t\t\t\tnotify.alert(r.message, true);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tnotify.alert(r.message, true);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t});\n\t\t\t\tbreak;\n\t\t\tcase 'edit-item':\n\t\t\t\tself.processing = false;\n\t\t\t\twindow.location =\n\t\t\t\t\t'/dashboard/page/edit/' + e.target.getAttribute('data-id');\n\t\t\t\tbreak;\n\t\t}\n\t}\n}\n","export default class NavActions {\n\t//--------------------------\n\t// constructor\n\t//--------------------------\n\tconstructor() {}\n\t//--------------------------\n\t// methods\n\t//--------------------------\n\tsyncMenu() {\n\t\tlet navData = [];\n\t\tlet items = document.getElementById('nav-items').children;\n\t\tfor (let index = 0; index < items.length; index++) {\n\t\t\tnavData.push({\n\t\t\t\ttitle: items[index].getElementsByTagName('label')[0].innerHTML,\n\t\t\t\tid: items[index].id,\n\t\t\t\tslug: items[index].getAttribute('data-slug'),\n\t\t\t\tuuid: items[index].getAttribute('data-uuid'),\n\t\t\t\tpath: items[index].getAttribute('data-path')\n\t\t\t});\n\t\t}\n\n\t\tlet data = { menu: navData, remove: null };\n\t\treturn new Promise(function (resolve) {\n\t\t\tresolve(data);\n\t\t});\n\t}\n\n\tremoveItem(id) {\n\t\tdocument.getElementById('nav-items').removeChild(document.getElementById(id));\n\t}\n\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n}\n","export default class Menu {\n\t//--------------------------\n\t// constructor\n\t//--------------------------\n\tconstructor() {\n\t\tthis.mobile = false;\n\t\tthis.mobileMenu = document.querySelector('.mobile-menu');\n\t\tdocument\n\t\t\t.querySelector('.menu-toggle')\n\t\t\t.addEventListener('click', e => this.handleMobile(e));\n\t}\n\t//--------------------------\n\t// methods\n\t//--------------------------\n\tstart() {}\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n\thandleMobile(e) {\n\t\tif (this.mobile) {\n\t\t\tthis.mobile = false;\n\t\t\tthis.mobileMenu.style.display = 'none';\n\t\t} else {\n\t\t\tthis.mobile = true;\n\t\t\tthis.mobileMenu.style.display = 'inline';\n\t\t}\n\t}\n}\n"],"names":["Base","document","addEventListener","FipamoAdminAPI","Maintenance","DataUitls","DataEvent","DashManager","Notfications","data","notify","constructor","processing","start","getElementById","querySelector","options","getElementsByClassName","index","length","e","handleOptions","handleLogin","handleSetup","handleRestore","handleReset","self","preventDefault","authForm","formDataToJSON","api","login","then","response","type","REQUEST_LAME","target","innerHTML","message","setTimeout","window","location","catch","err","stopPropagation","setUpForm","mm","create","API_INIT_LAME","form","restore","id","email","value","task","secret","alert","newPass","newPassConfirm","init","style","display","visibility","REQUEST_TYPE_POST","REQUEST_TYPE_GET","REQUEST_TYPE_PUT","REQUEST_TYPE_DELETE","CONTENT_TYPE_JSON","CONTENT_TYPE_FORM","API_STATUS","API_GET_SETTINGS","API_GET_MEMBER_INFO","API_NEW_PAGE","API_EDIT_PAGE","API_DELETE_PAGE","API_SETTINGS_SYNC","API_PUBLISH_PAGES","API_NAV_SYNC","API_REINDEX_PAGES","API_SEND_MAIL","API_LOGIN","AUTH_STATUS","TASK_SETTINGS_WRITE","TASK_PUBLISH_SITE","TASK_PAGE_CREATE","TASK_PAGE_EDIT","TASK_PAGE_DELETE","TASK_SEND_MAIL","TASK_REINDEX_PAGE","TASK_SYNC_SETTNIGS","TASK_SYNC_NAV","TASK_GET_SETTINGS","TASK_GET_MEMBER_INFO","API_ACCESS_GOOD","API_ACCESS_BAD","baseURL","progressBar","percentComplete","status","_request","token","Promise","resolve","reject","remote","key","result","sync","url","publish","pageActions","event","content","sendMail","getInfo","requestURL","eventType","requestType","contentType","requestData","request","XMLHttpRequest","upload","handleLoadProgress","open","onload","JSON","parse","error","setRequestHeader","send","stringify","percent","Math","ceil","loaded","total","width","default","API_INIT","API_RESTORE","API_GET_SECRET","API_RESET_PASS","API_CREATE_BACKUP","API_DOWNLOAD_BACKUP","API_RESTORE_BACKUP","API_UPLOAD_AVATAR","API_UPLOAD_BACKGROUND","API_IMAGE_UPLOAD","API_FILES_UPLOAD","TASK_SITE_INIT","TASK_BACKUP_RESTORE","TASK_BACKUP_CREATE","TASK_GET_SECRET","TASK_RESET_PASS","TASK_UPLOAD_FILES","MaintenanceManager","accetableFiles","method","FormData","backup","filesUpload","files","progress","append","r","DataUtils","imgLoad","responseType","Error","statusText","onerror","loadImage","src","myImage","Image","crossOrigin","imageURL","URL","createObjectURL","object","formData","forEach","hasOwnProperty","Array","isArray","push","REQUEST_GOOD","API_REQUEST_GOOD","API_REQUEST_LAME","IMG_REQUEST_GOOD","IMG_REQUEST_LAME","SETTINGS_LOADED","POST_IMAGE_ADDED","FEATURE_IMAGE_ADDED","PAGE_ERROR","PAGE_ADDED","PAGE_UPDATED","PAGE_DELETED","PAGES_RENDERED","PAGES_NOT_RENDERED","TAG_PAGES_RENDERED","TAG_PAGES_NOT_RENDERED","SETTINGS_UPDATED","SETTINGS_NOT_UPDATED","MENU_ADD_ITEM","MENU_DELETE_ITEM","MENU_UPDATED","AVATAR_UPLOADED","SITE_BACKGROUND_UPLOADED","UPLOAD_PROGRESS","API_PAGE_WRITE","API_PAGE_CREATE","API_PAGE_DELETE","API_SETTINGS_WRITE","API_BACKUP_CREATE","API_BACKUP_DOWNLOAD","API_BACKUP_RESTORE","API_IMAGES_UPLOAD","API_RENDER_PAGES","API_INIT_GOOD","SEND_MAIL","PostIndex","SettingsIndex","NaviIndex","Menu","currentDisplay","urlPieces","split","chooseDisplay","section","page","PageEditor","currentPage","choosePage","PageActions","EditorEvent","TextEditor","FileManager","PostEditor","admin","post","postID","postUUID","postLayout","fm","getAttribute","editor","offsetHeight","addListener","EDITOR_DELETE","handleEditorOptions","EDITOR_UPLOAD_POST_IMAGE","EDITOR_UPDATE","EDITOR_SAVE","handleImageUpload","optionButtons","querySelectorAll","i","handlePostOptions","currentOption","active","setAttribute","collectInfo","getFileOrder","confirm","click","enctype","name","filePath","StringUtils","PostActions","pageInfo","pageRef","txt","createElement","html","replace","uuid","layout","current_title","title","created","slug","cleanString","tags","menu","featured","published","form_token","imageList","images","fileList","string","clean","toLowerCase","decodeHTML","quote_style","optTemp","noquotes","toString","OPTS","ENT_NOQUOTES","ENT_HTML_QUOTE_SINGLE","ENT_HTML_QUOTE_DOUBLE","ENT_COMPAT","ENT_QUOTES","ENT_IGNORE","concat","EventEmitter","Prism","textEditor","scrollLimit","console","log","body","fixLimit","scrollTop","classList","add","remove","result_element","text","RegExp","editorHeight","height","highlightElement","scrollLeft","dispatchEvent","Event","setInputs","editorButtons","handleEditorOption","len","selectionStart","end","selectionEnd","insert","substring","selectedText","prompt","link","emitEvent","listeners","Map","label","callback","has","set","get","removeListener","isFunction","obj","reduce","listener","splice","args","anime","notifcation","responseText","notifyText","notifyIcons","iconGood","iconNotGood","iconWorking","color","targets","rotateX","easing","complete","opacity","duration","backgroundColor","Sortable","input","sortedFiles","storage","mediaSort","animation","onUpdate","fileSort","handleFileActions","removeMedia","removeFile","imgList","childNodes","div","media","sortFiles","file","reader","FileReader","theFile","f","removeIcon","className","appendChild","item","itemFactory","background","removeChild","video","source","audio","href","fileName","readAsDataURL","mediaCount","fileCount","parentNode","rawList","sortedList","notOnTheList","dataTransfer","dropEffect","includes","SettingsActions","Mailer","Notifications","apiButton","apiStatus","dynamicRenderButton","dynamicRenderStatus","handleMailer","handlePublished","toggleRender","themeBtns","handleThemes","mailBtn","handleMailOptions","handleBackup","togglePrivacy","button","mailer","testMail","themes","smtp","mailgun","mail","handleReindex","handle","desc","render","backgroundImage","slice","selected","selects","smtpDomain","smtpEmail","smtpPass","mgDomain","mgKey","mailActive","mailOptions","count","settingsData","global","base_url","descriptions","private","renderOnSave","theme","externalAPI","dynamicRender","member","domain","password","Notficaton","mailData","mail_task","NavActions","NavIndex","syncMenu","nav","handleNavButton","removeItem","navData","items","children","getElementsByTagName","path","mobile","mobileMenu","handleMobile"],"version":3,"file":"dash.js.map","sourceRoot":"../../../"}