@vue-skuilder/platform-ui 0.1.31 → 0.1.32-b
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{About-D3O4ft8c.js → About-BaAnvLBW.js} +2 -2
- package/dist/assets/{About-D3O4ft8c.js.map → About-BaAnvLBW.js.map} +1 -1
- package/dist/assets/{AdminDashboard-DH-Wi1tp.js → AdminDashboard-CqjTUAz6.js} +2 -2
- package/dist/assets/{AdminDashboard-DH-Wi1tp.js.map → AdminDashboard-CqjTUAz6.js.map} +1 -1
- package/dist/assets/ClassroomCtrlPanel-DY_JOO4n.js +2 -0
- package/dist/assets/{ClassroomCtrlPanel-BZ2Jso_N.js.map → ClassroomCtrlPanel-DY_JOO4n.js.map} +1 -1
- package/dist/assets/{Classrooms-Dk081Q6U.js → Classrooms-C2axF94L.js} +2 -2
- package/dist/assets/{Classrooms-Dk081Q6U.js.map → Classrooms-C2axF94L.js.map} +1 -1
- package/dist/assets/CourseRouter-Cpx3l0G5.js +2 -0
- package/dist/assets/{CourseRouter-BK4PYhtA.js.map → CourseRouter-Cpx3l0G5.js.map} +1 -1
- package/dist/assets/Courses-JnwlMj7_.js +2 -0
- package/dist/assets/{Courses-DU7lVPoV.js.map → Courses-JnwlMj7_.js.map} +1 -1
- package/dist/assets/{DataInputFormTester-CL0gV9cw.js → DataInputFormTester-COeenuPs.js} +2 -2
- package/dist/assets/{DataInputFormTester-CL0gV9cw.js.map → DataInputFormTester-COeenuPs.js.map} +1 -1
- package/dist/assets/{EloModeration-DfSLA79x.js → EloModeration-WKZ0ZI9K.js} +2 -2
- package/dist/assets/{EloModeration-DfSLA79x.js.map → EloModeration-WKZ0ZI9K.js.map} +1 -1
- package/dist/assets/{JoinCode-njKk1YJx.js → JoinCode-BC6k_fbV.js} +2 -2
- package/dist/assets/{JoinCode-njKk1YJx.js.map → JoinCode-BC6k_fbV.js.map} +1 -1
- package/dist/assets/NewCourseDialog-CP_yAeBS.js +2 -0
- package/dist/assets/{NewCourseDialog-gxkU-IdZ.js.map → NewCourseDialog-CP_yAeBS.js.map} +1 -1
- package/dist/assets/{ReleaseNotes-Dp_ykMR1.js → ReleaseNotes-Du1rXmdr.js} +2 -2
- package/dist/assets/{ReleaseNotes-Dp_ykMR1.js.map → ReleaseNotes-Du1rXmdr.js.map} +1 -1
- package/dist/assets/{RequestPasswordReset-BavuuCBu.js → RequestPasswordReset-CD6KAb-x.js} +2 -2
- package/dist/assets/{RequestPasswordReset-BavuuCBu.js.map → RequestPasswordReset-CD6KAb-x.js.map} +1 -1
- package/dist/assets/{ResetPassword-CA8HHOIy.js → ResetPassword-CdcPL1lR.js} +2 -2
- package/dist/assets/{ResetPassword-CA8HHOIy.js.map → ResetPassword-CdcPL1lR.js.map} +1 -1
- package/dist/assets/Study-CiczyXm5.js +2 -0
- package/dist/assets/{Study-B4tBks0X.js.map → Study-CiczyXm5.js.map} +1 -1
- package/dist/assets/{TagInformation-CHi7V_t8.js → TagInformation-C_wEpXyQ.js} +2 -2
- package/dist/assets/{TagInformation-CHi7V_t8.js.map → TagInformation-C_wEpXyQ.js.map} +1 -1
- package/dist/assets/{User-DbWphbh1.js → User-9YKBLtBO.js} +2 -2
- package/dist/assets/{User-DbWphbh1.js.map → User-9YKBLtBO.js.map} +1 -1
- package/dist/assets/UserStats-DceiClex.js +2 -0
- package/dist/assets/{UserStats-rzVY5epq.js.map → UserStats-DceiClex.js.map} +1 -1
- package/dist/assets/{VerifyEmail-pMcSlNzF.js → VerifyEmail-z-t9eEy2.js} +2 -2
- package/dist/assets/{VerifyEmail-pMcSlNzF.js.map → VerifyEmail-z-t9eEy2.js.map} +1 -1
- package/dist/assets/{edit-ui.es-DGbs4pNc.js → edit-ui.es-XlgQUjdy.js} +2 -2
- package/dist/assets/{edit-ui.es-DGbs4pNc.js.map → edit-ui.es-XlgQUjdy.js.map} +1 -1
- package/dist/assets/index-BweUwxDQ.js +3 -0
- package/dist/assets/{index-CSo_psn8.js.map → index-BweUwxDQ.js.map} +1 -1
- package/dist/assets/{index-aYts26PW.css → index-CGPKQ_L0.css} +1 -1
- package/dist/assets/index-dF8VqAFl.js +3 -0
- package/dist/assets/index-dF8VqAFl.js.map +1 -0
- package/dist/assets/{mousetrap-DZcUUEaw.js → mousetrap-DtEBLuOp.js} +2 -2
- package/dist/assets/{mousetrap-DZcUUEaw.js.map → mousetrap-DtEBLuOp.js.map} +1 -1
- package/dist/index.html +2 -2
- package/dist/sw.js +1 -1
- package/dist/sw.js.map +1 -1
- package/package.json +6 -6
- package/dist/assets/ClassroomCtrlPanel-BZ2Jso_N.js +0 -2
- package/dist/assets/CourseRouter-BK4PYhtA.js +0 -2
- package/dist/assets/Courses-DU7lVPoV.js +0 -2
- package/dist/assets/NewCourseDialog-gxkU-IdZ.js +0 -2
- package/dist/assets/Study-B4tBks0X.js +0 -2
- package/dist/assets/UserStats-rzVY5epq.js +0 -2
- package/dist/assets/index-CSo_psn8.js +0 -3
- package/dist/assets/index-PISHyq1I.js +0 -3
- package/dist/assets/index-PISHyq1I.js.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
//# sourceMappingURL=mousetrap-
|
|
1
|
+
import{m as e,E as t,y as n}from"./index-dF8VqAFl.js";const r=t.EXPRESS_SERVER_PROTOCOL+"://"+t.EXPRESS_SERVER_URL;async function o(t){return new Promise((n=>{try{const o=new XMLHttpRequest;o.withCredentials=!0,o.open("POST",r,!0),o.setRequestHeader("Content-Type","application/json"),o.timeout=t.timeout||7e3,o.onload=function(){try{t.response=JSON.parse(o.responseText),n(t)}catch(r){t.response={status:e.error,ok:!1,errorText:`Failed to parse response: ${r instanceof Error?r.message:JSON.stringify(r)}`},n(t)}},o.onerror=function(){t.response={status:e.error,ok:!1,errorText:"Network error occurred"},n(t)},o.ontimeout=function(){t.response={status:e.error,ok:!1,errorText:"Request timed out"},n(t)},o.send(JSON.stringify(t))}catch(o){t.response={status:e.error,ok:!1,errorText:o instanceof Error?o.message:JSON.stringify(o)},n(t)}}))}var a,i,s={exports:{}};const c=n((a||(a=1,i=s,function(e,t){if(e){for(var n,r={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},o={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},a={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},s={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},c=1;c<20;++c)r[111+c]="f"+c;for(c=0;c<=9;++c)r[c+96]=c.toString();y.prototype.bind=function(e,t,n){var r=this;return e=e instanceof Array?e:[e],r._bindMultiple.call(r,e,t,n),r},y.prototype.unbind=function(e,t){return this.bind.call(this,e,(function(){}),t)},y.prototype.trigger=function(e,t){var n=this;return n._directMap[e+":"+t]&&n._directMap[e+":"+t]({},e),n},y.prototype.reset=function(){var e=this;return e._callbacks={},e._directMap={},e},y.prototype.stopCallback=function(e,t){if((" "+t.className+" ").indexOf(" mousetrap ")>-1)return!1;if(d(t,this.target))return!1;if("composedPath"in e&&"function"==typeof e.composedPath){var n=e.composedPath()[0];n!==e.target&&(t=n)}return"INPUT"==t.tagName||"SELECT"==t.tagName||"TEXTAREA"==t.tagName||t.isContentEditable},y.prototype.handleKey=function(){return this._handleKey.apply(this,arguments)},y.addKeycodes=function(e){for(var t in e)e.hasOwnProperty(t)&&(r[t]=e[t]);n=null},y.init=function(){var e=y(t);for(var n in e)"_"!==n.charAt(0)&&(y[n]=function(t){return function(){return e[t].apply(e,arguments)}}(n))},y.init(),e.Mousetrap=y,i.exports&&(i.exports=y)}function u(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)}function p(e){if("keypress"==e.type){var t=String.fromCharCode(e.which);return e.shiftKey||(t=t.toLowerCase()),t}return r[e.which]?r[e.which]:o[e.which]?o[e.which]:String.fromCharCode(e.which).toLowerCase()}function l(e){return"shift"==e||"ctrl"==e||"alt"==e||"meta"==e}function f(e,t,o){return o||(o=function(){if(!n)for(var e in n={},r)e>95&&e<112||r.hasOwnProperty(e)&&(n[r[e]]=e);return n}()[e]?"keydown":"keypress"),"keypress"==o&&t.length&&(o="keydown"),o}function h(e,t){var n,r,o,i=[];for(n=function(e){return"+"===e?["+"]:(e=e.replace(/\+{2}/g,"+plus")).split("+")}(e),o=0;o<n.length;++o)r=n[o],s[r]&&(r=s[r]),t&&"keypress"!=t&&a[r]&&(r=a[r],i.push("shift")),l(r)&&i.push(r);return{key:r,modifiers:i,action:t=f(r,i,t)}}function d(e,n){return null!==e&&e!==t&&(e===n||d(e.parentNode,n))}function y(e){var n=this;if(e=e||t,!(n instanceof y))return new y(e);n.target=e,n._callbacks={},n._directMap={};var r,o={},a=!1,i=!1,s=!1;function c(e){e=e||{};var t,n=!1;for(t in o)e[t]?n=!0:o[t]=0;n||(s=!1)}function f(e,t,r,a,i,s){var c,u,p,f,h=[],d=r.type;if(!n._callbacks[e])return[];for("keyup"==d&&l(e)&&(t=[e]),c=0;c<n._callbacks[e].length;++c)if(u=n._callbacks[e][c],(a||!u.seq||o[u.seq]==u.level)&&d==u.action&&("keypress"==d&&!r.metaKey&&!r.ctrlKey||(p=t,f=u.modifiers,p.sort().join(",")===f.sort().join(",")))){var y=!a&&u.combo==i,m=a&&u.seq==a&&u.level==s;(y||m)&&n._callbacks[e].splice(c,1),h.push(u)}return h}function d(e,t,r,o){n.stopCallback(t,t.target||t.srcElement,r,o)||!1===e(t,r)&&(function(e){e.preventDefault?e.preventDefault():e.returnValue=!1}(t),function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}(t))}function m(e){"number"!=typeof e.which&&(e.which=e.keyCode);var t=p(e);t&&("keyup"!=e.type||a!==t?n.handleKey(t,function(e){var t=[];return e.shiftKey&&t.push("shift"),e.altKey&&t.push("alt"),e.ctrlKey&&t.push("ctrl"),e.metaKey&&t.push("meta"),t}(e),e):a=!1)}function k(e,t,n,i){function u(t){return function(){s=t,++o[e],clearTimeout(r),r=setTimeout(c,1e3)}}function l(t){d(n,t,e),"keyup"!==i&&(a=p(t)),setTimeout(c,10)}o[e]=0;for(var f=0;f<t.length;++f){var y=f+1===t.length?l:u(i||h(t[f+1]).action);v(t[f],y,i,e,f)}}function v(e,t,r,o,a){n._directMap[e+":"+r]=t;var i,s=(e=e.replace(/\s+/g," ")).split(" ");s.length>1?k(e,s,t,r):(i=h(e,r),n._callbacks[i.key]=n._callbacks[i.key]||[],f(i.key,i.modifiers,{type:i.action},o,e,a),n._callbacks[i.key][o?"unshift":"push"]({callback:t,modifiers:i.modifiers,action:i.action,seq:o,level:a,combo:e}))}n._handleKey=function(e,t,n){var r,o=f(e,t,n),a={},u=0,p=!1;for(r=0;r<o.length;++r)o[r].seq&&(u=Math.max(u,o[r].level));for(r=0;r<o.length;++r)if(o[r].seq){if(o[r].level!=u)continue;p=!0,a[o[r].seq]=1,d(o[r].callback,n,o[r].combo,o[r].seq)}else p||d(o[r].callback,n,o[r].combo);var h="keypress"==n.type&&i;n.type!=s||l(e)||h||c(a),i=p&&"keydown"==n.type},n._bindMultiple=function(e,t,n){for(var r=0;r<e.length;++r)v(e[r],t,n)},u(e,"keypress",m),u(e,"keydown",m),u(e,"keyup",m)}}("undefined"!=typeof window?window:null,"undefined"!=typeof window?document:null)),s.exports));export{c as M,o as s};
|
|
2
|
+
//# sourceMappingURL=mousetrap-DtEBLuOp.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mousetrap-DZcUUEaw.js","sources":["../../src/server/index.ts","../../../../node_modules/mousetrap/mousetrap.js"],"sourcesContent":["import { Status } from '@vue-skuilder/common';\nimport ENV from '../ENVIRONMENT_VARS';\nimport { ServerRequest } from '@vue-skuilder/common';\n\nconst SERVER = ENV.EXPRESS_SERVER_PROTOCOL + '://' + ENV.EXPRESS_SERVER_URL;\n\n/**\n* Makes an authenticated request to the express backend and returns the response.\n\n* @param requestData\n* @returns\n*/\nexport default async function serverRequest<T extends ServerRequest>(requestData: T): Promise<T> {\n return new Promise<T>((resolve) => {\n try {\n const xml = new XMLHttpRequest();\n xml.withCredentials = true;\n xml.open('POST', SERVER, true);\n xml.setRequestHeader('Content-Type', 'application/json');\n xml.timeout = requestData.timeout || 7000;\n\n // Handle the response when it completes\n xml.onload = function () {\n try {\n requestData.response = JSON.parse(xml.responseText);\n resolve(requestData);\n } catch (parseError) {\n requestData.response = {\n status: Status.error,\n ok: false,\n errorText: `Failed to parse response: ${\n parseError instanceof Error ? parseError.message : JSON.stringify(parseError)\n }`,\n };\n resolve(requestData);\n }\n };\n\n // Handle network errors\n xml.onerror = function () {\n requestData.response = {\n status: Status.error,\n ok: false,\n errorText: 'Network error occurred',\n };\n resolve(requestData);\n };\n\n // Handle timeouts\n xml.ontimeout = function () {\n requestData.response = {\n status: Status.error,\n ok: false,\n errorText: 'Request timed out',\n };\n resolve(requestData);\n };\n\n // Send the request\n xml.send(JSON.stringify(requestData));\n } catch (error) {\n // Handle any errors that occur during setup\n requestData.response = {\n status: Status.error,\n ok: false,\n errorText: error instanceof Error ? error.message : JSON.stringify(error),\n };\n resolve(requestData);\n }\n });\n}\n","/*global define:false */\n/**\n * Copyright 2012-2017 Craig Campbell\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * Mousetrap is a simple keyboard shortcut library for Javascript with\n * no external dependencies\n *\n * @version 1.6.5\n * @url craig.is/killing/mice\n */\n(function(window, document, undefined) {\n\n // Check if mousetrap is used inside browser, if not, return\n if (!window) {\n return;\n }\n\n /**\n * mapping of special keycodes to their corresponding keys\n *\n * everything in this dictionary cannot use keypress events\n * so it has to be here to map to the correct keycodes for\n * keyup/keydown events\n *\n * @type {Object}\n */\n var _MAP = {\n 8: 'backspace',\n 9: 'tab',\n 13: 'enter',\n 16: 'shift',\n 17: 'ctrl',\n 18: 'alt',\n 20: 'capslock',\n 27: 'esc',\n 32: 'space',\n 33: 'pageup',\n 34: 'pagedown',\n 35: 'end',\n 36: 'home',\n 37: 'left',\n 38: 'up',\n 39: 'right',\n 40: 'down',\n 45: 'ins',\n 46: 'del',\n 91: 'meta',\n 93: 'meta',\n 224: 'meta'\n };\n\n /**\n * mapping for special characters so they can support\n *\n * this dictionary is only used incase you want to bind a\n * keyup or keydown event to one of these keys\n *\n * @type {Object}\n */\n var _KEYCODE_MAP = {\n 106: '*',\n 107: '+',\n 109: '-',\n 110: '.',\n 111 : '/',\n 186: ';',\n 187: '=',\n 188: ',',\n 189: '-',\n 190: '.',\n 191: '/',\n 192: '`',\n 219: '[',\n 220: '\\\\',\n 221: ']',\n 222: '\\''\n };\n\n /**\n * this is a mapping of keys that require shift on a US keypad\n * back to the non shift equivelents\n *\n * this is so you can use keyup events with these keys\n *\n * note that this will only work reliably on US keyboards\n *\n * @type {Object}\n */\n var _SHIFT_MAP = {\n '~': '`',\n '!': '1',\n '@': '2',\n '#': '3',\n '$': '4',\n '%': '5',\n '^': '6',\n '&': '7',\n '*': '8',\n '(': '9',\n ')': '0',\n '_': '-',\n '+': '=',\n ':': ';',\n '\\\"': '\\'',\n '<': ',',\n '>': '.',\n '?': '/',\n '|': '\\\\'\n };\n\n /**\n * this is a list of special strings you can use to map\n * to modifier keys when you specify your keyboard shortcuts\n *\n * @type {Object}\n */\n var _SPECIAL_ALIASES = {\n 'option': 'alt',\n 'command': 'meta',\n 'return': 'enter',\n 'escape': 'esc',\n 'plus': '+',\n 'mod': /Mac|iPod|iPhone|iPad/.test(navigator.platform) ? 'meta' : 'ctrl'\n };\n\n /**\n * variable to store the flipped version of _MAP from above\n * needed to check if we should use keypress or not when no action\n * is specified\n *\n * @type {Object|undefined}\n */\n var _REVERSE_MAP;\n\n /**\n * loop through the f keys, f1 to f19 and add them to the map\n * programatically\n */\n for (var i = 1; i < 20; ++i) {\n _MAP[111 + i] = 'f' + i;\n }\n\n /**\n * loop through to map numbers on the numeric keypad\n */\n for (i = 0; i <= 9; ++i) {\n\n // This needs to use a string cause otherwise since 0 is falsey\n // mousetrap will never fire for numpad 0 pressed as part of a keydown\n // event.\n //\n // @see https://github.com/ccampbell/mousetrap/pull/258\n _MAP[i + 96] = i.toString();\n }\n\n /**\n * cross browser add event method\n *\n * @param {Element|HTMLDocument} object\n * @param {string} type\n * @param {Function} callback\n * @returns void\n */\n function _addEvent(object, type, callback) {\n if (object.addEventListener) {\n object.addEventListener(type, callback, false);\n return;\n }\n\n object.attachEvent('on' + type, callback);\n }\n\n /**\n * takes the event and returns the key character\n *\n * @param {Event} e\n * @return {string}\n */\n function _characterFromEvent(e) {\n\n // for keypress events we should return the character as is\n if (e.type == 'keypress') {\n var character = String.fromCharCode(e.which);\n\n // if the shift key is not pressed then it is safe to assume\n // that we want the character to be lowercase. this means if\n // you accidentally have caps lock on then your key bindings\n // will continue to work\n //\n // the only side effect that might not be desired is if you\n // bind something like 'A' cause you want to trigger an\n // event when capital A is pressed caps lock will no longer\n // trigger the event. shift+a will though.\n if (!e.shiftKey) {\n character = character.toLowerCase();\n }\n\n return character;\n }\n\n // for non keypress events the special maps are needed\n if (_MAP[e.which]) {\n return _MAP[e.which];\n }\n\n if (_KEYCODE_MAP[e.which]) {\n return _KEYCODE_MAP[e.which];\n }\n\n // if it is not in the special map\n\n // with keydown and keyup events the character seems to always\n // come in as an uppercase character whether you are pressing shift\n // or not. we should make sure it is always lowercase for comparisons\n return String.fromCharCode(e.which).toLowerCase();\n }\n\n /**\n * checks if two arrays are equal\n *\n * @param {Array} modifiers1\n * @param {Array} modifiers2\n * @returns {boolean}\n */\n function _modifiersMatch(modifiers1, modifiers2) {\n return modifiers1.sort().join(',') === modifiers2.sort().join(',');\n }\n\n /**\n * takes a key event and figures out what the modifiers are\n *\n * @param {Event} e\n * @returns {Array}\n */\n function _eventModifiers(e) {\n var modifiers = [];\n\n if (e.shiftKey) {\n modifiers.push('shift');\n }\n\n if (e.altKey) {\n modifiers.push('alt');\n }\n\n if (e.ctrlKey) {\n modifiers.push('ctrl');\n }\n\n if (e.metaKey) {\n modifiers.push('meta');\n }\n\n return modifiers;\n }\n\n /**\n * prevents default for this event\n *\n * @param {Event} e\n * @returns void\n */\n function _preventDefault(e) {\n if (e.preventDefault) {\n e.preventDefault();\n return;\n }\n\n e.returnValue = false;\n }\n\n /**\n * stops propogation for this event\n *\n * @param {Event} e\n * @returns void\n */\n function _stopPropagation(e) {\n if (e.stopPropagation) {\n e.stopPropagation();\n return;\n }\n\n e.cancelBubble = true;\n }\n\n /**\n * determines if the keycode specified is a modifier key or not\n *\n * @param {string} key\n * @returns {boolean}\n */\n function _isModifier(key) {\n return key == 'shift' || key == 'ctrl' || key == 'alt' || key == 'meta';\n }\n\n /**\n * reverses the map lookup so that we can look for specific keys\n * to see what can and can't use keypress\n *\n * @return {Object}\n */\n function _getReverseMap() {\n if (!_REVERSE_MAP) {\n _REVERSE_MAP = {};\n for (var key in _MAP) {\n\n // pull out the numeric keypad from here cause keypress should\n // be able to detect the keys from the character\n if (key > 95 && key < 112) {\n continue;\n }\n\n if (_MAP.hasOwnProperty(key)) {\n _REVERSE_MAP[_MAP[key]] = key;\n }\n }\n }\n return _REVERSE_MAP;\n }\n\n /**\n * picks the best action based on the key combination\n *\n * @param {string} key - character for key\n * @param {Array} modifiers\n * @param {string=} action passed in\n */\n function _pickBestAction(key, modifiers, action) {\n\n // if no action was picked in we should try to pick the one\n // that we think would work best for this key\n if (!action) {\n action = _getReverseMap()[key] ? 'keydown' : 'keypress';\n }\n\n // modifier keys don't work as expected with keypress,\n // switch to keydown\n if (action == 'keypress' && modifiers.length) {\n action = 'keydown';\n }\n\n return action;\n }\n\n /**\n * Converts from a string key combination to an array\n *\n * @param {string} combination like \"command+shift+l\"\n * @return {Array}\n */\n function _keysFromString(combination) {\n if (combination === '+') {\n return ['+'];\n }\n\n combination = combination.replace(/\\+{2}/g, '+plus');\n return combination.split('+');\n }\n\n /**\n * Gets info for a specific key combination\n *\n * @param {string} combination key combination (\"command+s\" or \"a\" or \"*\")\n * @param {string=} action\n * @returns {Object}\n */\n function _getKeyInfo(combination, action) {\n var keys;\n var key;\n var i;\n var modifiers = [];\n\n // take the keys from this pattern and figure out what the actual\n // pattern is all about\n keys = _keysFromString(combination);\n\n for (i = 0; i < keys.length; ++i) {\n key = keys[i];\n\n // normalize key names\n if (_SPECIAL_ALIASES[key]) {\n key = _SPECIAL_ALIASES[key];\n }\n\n // if this is not a keypress event then we should\n // be smart about using shift keys\n // this will only work for US keyboards however\n if (action && action != 'keypress' && _SHIFT_MAP[key]) {\n key = _SHIFT_MAP[key];\n modifiers.push('shift');\n }\n\n // if this key is a modifier then add it to the list of modifiers\n if (_isModifier(key)) {\n modifiers.push(key);\n }\n }\n\n // depending on what the key combination is\n // we will try to pick the best event for it\n action = _pickBestAction(key, modifiers, action);\n\n return {\n key: key,\n modifiers: modifiers,\n action: action\n };\n }\n\n function _belongsTo(element, ancestor) {\n if (element === null || element === document) {\n return false;\n }\n\n if (element === ancestor) {\n return true;\n }\n\n return _belongsTo(element.parentNode, ancestor);\n }\n\n function Mousetrap(targetElement) {\n var self = this;\n\n targetElement = targetElement || document;\n\n if (!(self instanceof Mousetrap)) {\n return new Mousetrap(targetElement);\n }\n\n /**\n * element to attach key events to\n *\n * @type {Element}\n */\n self.target = targetElement;\n\n /**\n * a list of all the callbacks setup via Mousetrap.bind()\n *\n * @type {Object}\n */\n self._callbacks = {};\n\n /**\n * direct map of string combinations to callbacks used for trigger()\n *\n * @type {Object}\n */\n self._directMap = {};\n\n /**\n * keeps track of what level each sequence is at since multiple\n * sequences can start out with the same sequence\n *\n * @type {Object}\n */\n var _sequenceLevels = {};\n\n /**\n * variable to store the setTimeout call\n *\n * @type {null|number}\n */\n var _resetTimer;\n\n /**\n * temporary state where we will ignore the next keyup\n *\n * @type {boolean|string}\n */\n var _ignoreNextKeyup = false;\n\n /**\n * temporary state where we will ignore the next keypress\n *\n * @type {boolean}\n */\n var _ignoreNextKeypress = false;\n\n /**\n * are we currently inside of a sequence?\n * type of action (\"keyup\" or \"keydown\" or \"keypress\") or false\n *\n * @type {boolean|string}\n */\n var _nextExpectedAction = false;\n\n /**\n * resets all sequence counters except for the ones passed in\n *\n * @param {Object} doNotReset\n * @returns void\n */\n function _resetSequences(doNotReset) {\n doNotReset = doNotReset || {};\n\n var activeSequences = false,\n key;\n\n for (key in _sequenceLevels) {\n if (doNotReset[key]) {\n activeSequences = true;\n continue;\n }\n _sequenceLevels[key] = 0;\n }\n\n if (!activeSequences) {\n _nextExpectedAction = false;\n }\n }\n\n /**\n * finds all callbacks that match based on the keycode, modifiers,\n * and action\n *\n * @param {string} character\n * @param {Array} modifiers\n * @param {Event|Object} e\n * @param {string=} sequenceName - name of the sequence we are looking for\n * @param {string=} combination\n * @param {number=} level\n * @returns {Array}\n */\n function _getMatches(character, modifiers, e, sequenceName, combination, level) {\n var i;\n var callback;\n var matches = [];\n var action = e.type;\n\n // if there are no events related to this keycode\n if (!self._callbacks[character]) {\n return [];\n }\n\n // if a modifier key is coming up on its own we should allow it\n if (action == 'keyup' && _isModifier(character)) {\n modifiers = [character];\n }\n\n // loop through all callbacks for the key that was pressed\n // and see if any of them match\n for (i = 0; i < self._callbacks[character].length; ++i) {\n callback = self._callbacks[character][i];\n\n // if a sequence name is not specified, but this is a sequence at\n // the wrong level then move onto the next match\n if (!sequenceName && callback.seq && _sequenceLevels[callback.seq] != callback.level) {\n continue;\n }\n\n // if the action we are looking for doesn't match the action we got\n // then we should keep going\n if (action != callback.action) {\n continue;\n }\n\n // if this is a keypress event and the meta key and control key\n // are not pressed that means that we need to only look at the\n // character, otherwise check the modifiers as well\n //\n // chrome will not fire a keypress if meta or control is down\n // safari will fire a keypress if meta or meta+shift is down\n // firefox will fire a keypress if meta or control is down\n if ((action == 'keypress' && !e.metaKey && !e.ctrlKey) || _modifiersMatch(modifiers, callback.modifiers)) {\n\n // when you bind a combination or sequence a second time it\n // should overwrite the first one. if a sequenceName or\n // combination is specified in this call it does just that\n //\n // @todo make deleting its own method?\n var deleteCombo = !sequenceName && callback.combo == combination;\n var deleteSequence = sequenceName && callback.seq == sequenceName && callback.level == level;\n if (deleteCombo || deleteSequence) {\n self._callbacks[character].splice(i, 1);\n }\n\n matches.push(callback);\n }\n }\n\n return matches;\n }\n\n /**\n * actually calls the callback function\n *\n * if your callback function returns false this will use the jquery\n * convention - prevent default and stop propogation on the event\n *\n * @param {Function} callback\n * @param {Event} e\n * @returns void\n */\n function _fireCallback(callback, e, combo, sequence) {\n\n // if this event should not happen stop here\n if (self.stopCallback(e, e.target || e.srcElement, combo, sequence)) {\n return;\n }\n\n if (callback(e, combo) === false) {\n _preventDefault(e);\n _stopPropagation(e);\n }\n }\n\n /**\n * handles a character key event\n *\n * @param {string} character\n * @param {Array} modifiers\n * @param {Event} e\n * @returns void\n */\n self._handleKey = function(character, modifiers, e) {\n var callbacks = _getMatches(character, modifiers, e);\n var i;\n var doNotReset = {};\n var maxLevel = 0;\n var processedSequenceCallback = false;\n\n // Calculate the maxLevel for sequences so we can only execute the longest callback sequence\n for (i = 0; i < callbacks.length; ++i) {\n if (callbacks[i].seq) {\n maxLevel = Math.max(maxLevel, callbacks[i].level);\n }\n }\n\n // loop through matching callbacks for this key event\n for (i = 0; i < callbacks.length; ++i) {\n\n // fire for all sequence callbacks\n // this is because if for example you have multiple sequences\n // bound such as \"g i\" and \"g t\" they both need to fire the\n // callback for matching g cause otherwise you can only ever\n // match the first one\n if (callbacks[i].seq) {\n\n // only fire callbacks for the maxLevel to prevent\n // subsequences from also firing\n //\n // for example 'a option b' should not cause 'option b' to fire\n // even though 'option b' is part of the other sequence\n //\n // any sequences that do not match here will be discarded\n // below by the _resetSequences call\n if (callbacks[i].level != maxLevel) {\n continue;\n }\n\n processedSequenceCallback = true;\n\n // keep a list of which sequences were matches for later\n doNotReset[callbacks[i].seq] = 1;\n _fireCallback(callbacks[i].callback, e, callbacks[i].combo, callbacks[i].seq);\n continue;\n }\n\n // if there were no sequence matches but we are still here\n // that means this is a regular match so we should fire that\n if (!processedSequenceCallback) {\n _fireCallback(callbacks[i].callback, e, callbacks[i].combo);\n }\n }\n\n // if the key you pressed matches the type of sequence without\n // being a modifier (ie \"keyup\" or \"keypress\") then we should\n // reset all sequences that were not matched by this event\n //\n // this is so, for example, if you have the sequence \"h a t\" and you\n // type \"h e a r t\" it does not match. in this case the \"e\" will\n // cause the sequence to reset\n //\n // modifier keys are ignored because you can have a sequence\n // that contains modifiers such as \"enter ctrl+space\" and in most\n // cases the modifier key will be pressed before the next key\n //\n // also if you have a sequence such as \"ctrl+b a\" then pressing the\n // \"b\" key will trigger a \"keypress\" and a \"keydown\"\n //\n // the \"keydown\" is expected when there is a modifier, but the\n // \"keypress\" ends up matching the _nextExpectedAction since it occurs\n // after and that causes the sequence to reset\n //\n // we ignore keypresses in a sequence that directly follow a keydown\n // for the same character\n var ignoreThisKeypress = e.type == 'keypress' && _ignoreNextKeypress;\n if (e.type == _nextExpectedAction && !_isModifier(character) && !ignoreThisKeypress) {\n _resetSequences(doNotReset);\n }\n\n _ignoreNextKeypress = processedSequenceCallback && e.type == 'keydown';\n };\n\n /**\n * handles a keydown event\n *\n * @param {Event} e\n * @returns void\n */\n function _handleKeyEvent(e) {\n\n // normalize e.which for key events\n // @see http://stackoverflow.com/questions/4285627/javascript-keycode-vs-charcode-utter-confusion\n if (typeof e.which !== 'number') {\n e.which = e.keyCode;\n }\n\n var character = _characterFromEvent(e);\n\n // no character found then stop\n if (!character) {\n return;\n }\n\n // need to use === for the character check because the character can be 0\n if (e.type == 'keyup' && _ignoreNextKeyup === character) {\n _ignoreNextKeyup = false;\n return;\n }\n\n self.handleKey(character, _eventModifiers(e), e);\n }\n\n /**\n * called to set a 1 second timeout on the specified sequence\n *\n * this is so after each key press in the sequence you have 1 second\n * to press the next key before you have to start over\n *\n * @returns void\n */\n function _resetSequenceTimer() {\n clearTimeout(_resetTimer);\n _resetTimer = setTimeout(_resetSequences, 1000);\n }\n\n /**\n * binds a key sequence to an event\n *\n * @param {string} combo - combo specified in bind call\n * @param {Array} keys\n * @param {Function} callback\n * @param {string=} action\n * @returns void\n */\n function _bindSequence(combo, keys, callback, action) {\n\n // start off by adding a sequence level record for this combination\n // and setting the level to 0\n _sequenceLevels[combo] = 0;\n\n /**\n * callback to increase the sequence level for this sequence and reset\n * all other sequences that were active\n *\n * @param {string} nextAction\n * @returns {Function}\n */\n function _increaseSequence(nextAction) {\n return function() {\n _nextExpectedAction = nextAction;\n ++_sequenceLevels[combo];\n _resetSequenceTimer();\n };\n }\n\n /**\n * wraps the specified callback inside of another function in order\n * to reset all sequence counters as soon as this sequence is done\n *\n * @param {Event} e\n * @returns void\n */\n function _callbackAndReset(e) {\n _fireCallback(callback, e, combo);\n\n // we should ignore the next key up if the action is key down\n // or keypress. this is so if you finish a sequence and\n // release the key the final key will not trigger a keyup\n if (action !== 'keyup') {\n _ignoreNextKeyup = _characterFromEvent(e);\n }\n\n // weird race condition if a sequence ends with the key\n // another sequence begins with\n setTimeout(_resetSequences, 10);\n }\n\n // loop through keys one at a time and bind the appropriate callback\n // function. for any key leading up to the final one it should\n // increase the sequence. after the final, it should reset all sequences\n //\n // if an action is specified in the original bind call then that will\n // be used throughout. otherwise we will pass the action that the\n // next key in the sequence should match. this allows a sequence\n // to mix and match keypress and keydown events depending on which\n // ones are better suited to the key provided\n for (var i = 0; i < keys.length; ++i) {\n var isFinal = i + 1 === keys.length;\n var wrappedCallback = isFinal ? _callbackAndReset : _increaseSequence(action || _getKeyInfo(keys[i + 1]).action);\n _bindSingle(keys[i], wrappedCallback, action, combo, i);\n }\n }\n\n /**\n * binds a single keyboard combination\n *\n * @param {string} combination\n * @param {Function} callback\n * @param {string=} action\n * @param {string=} sequenceName - name of sequence if part of sequence\n * @param {number=} level - what part of the sequence the command is\n * @returns void\n */\n function _bindSingle(combination, callback, action, sequenceName, level) {\n\n // store a direct mapped reference for use with Mousetrap.trigger\n self._directMap[combination + ':' + action] = callback;\n\n // make sure multiple spaces in a row become a single space\n combination = combination.replace(/\\s+/g, ' ');\n\n var sequence = combination.split(' ');\n var info;\n\n // if this pattern is a sequence of keys then run through this method\n // to reprocess each pattern one key at a time\n if (sequence.length > 1) {\n _bindSequence(combination, sequence, callback, action);\n return;\n }\n\n info = _getKeyInfo(combination, action);\n\n // make sure to initialize array if this is the first time\n // a callback is added for this key\n self._callbacks[info.key] = self._callbacks[info.key] || [];\n\n // remove an existing match if there is one\n _getMatches(info.key, info.modifiers, {type: info.action}, sequenceName, combination, level);\n\n // add this call back to the array\n // if it is a sequence put it at the beginning\n // if not put it at the end\n //\n // this is important because the way these are processed expects\n // the sequence ones to come first\n self._callbacks[info.key][sequenceName ? 'unshift' : 'push']({\n callback: callback,\n modifiers: info.modifiers,\n action: info.action,\n seq: sequenceName,\n level: level,\n combo: combination\n });\n }\n\n /**\n * binds multiple combinations to the same callback\n *\n * @param {Array} combinations\n * @param {Function} callback\n * @param {string|undefined} action\n * @returns void\n */\n self._bindMultiple = function(combinations, callback, action) {\n for (var i = 0; i < combinations.length; ++i) {\n _bindSingle(combinations[i], callback, action);\n }\n };\n\n // start!\n _addEvent(targetElement, 'keypress', _handleKeyEvent);\n _addEvent(targetElement, 'keydown', _handleKeyEvent);\n _addEvent(targetElement, 'keyup', _handleKeyEvent);\n }\n\n /**\n * binds an event to mousetrap\n *\n * can be a single key, a combination of keys separated with +,\n * an array of keys, or a sequence of keys separated by spaces\n *\n * be sure to list the modifier keys first to make sure that the\n * correct key ends up getting bound (the last key in the pattern)\n *\n * @param {string|Array} keys\n * @param {Function} callback\n * @param {string=} action - 'keypress', 'keydown', or 'keyup'\n * @returns void\n */\n Mousetrap.prototype.bind = function(keys, callback, action) {\n var self = this;\n keys = keys instanceof Array ? keys : [keys];\n self._bindMultiple.call(self, keys, callback, action);\n return self;\n };\n\n /**\n * unbinds an event to mousetrap\n *\n * the unbinding sets the callback function of the specified key combo\n * to an empty function and deletes the corresponding key in the\n * _directMap dict.\n *\n * TODO: actually remove this from the _callbacks dictionary instead\n * of binding an empty function\n *\n * the keycombo+action has to be exactly the same as\n * it was defined in the bind method\n *\n * @param {string|Array} keys\n * @param {string} action\n * @returns void\n */\n Mousetrap.prototype.unbind = function(keys, action) {\n var self = this;\n return self.bind.call(self, keys, function() {}, action);\n };\n\n /**\n * triggers an event that has already been bound\n *\n * @param {string} keys\n * @param {string=} action\n * @returns void\n */\n Mousetrap.prototype.trigger = function(keys, action) {\n var self = this;\n if (self._directMap[keys + ':' + action]) {\n self._directMap[keys + ':' + action]({}, keys);\n }\n return self;\n };\n\n /**\n * resets the library back to its initial state. this is useful\n * if you want to clear out the current keyboard shortcuts and bind\n * new ones - for example if you switch to another page\n *\n * @returns void\n */\n Mousetrap.prototype.reset = function() {\n var self = this;\n self._callbacks = {};\n self._directMap = {};\n return self;\n };\n\n /**\n * should we stop this event before firing off callbacks\n *\n * @param {Event} e\n * @param {Element} element\n * @return {boolean}\n */\n Mousetrap.prototype.stopCallback = function(e, element) {\n var self = this;\n\n // if the element has the class \"mousetrap\" then no need to stop\n if ((' ' + element.className + ' ').indexOf(' mousetrap ') > -1) {\n return false;\n }\n\n if (_belongsTo(element, self.target)) {\n return false;\n }\n\n // Events originating from a shadow DOM are re-targetted and `e.target` is the shadow host,\n // not the initial event target in the shadow tree. Note that not all events cross the\n // shadow boundary.\n // For shadow trees with `mode: 'open'`, the initial event target is the first element in\n // the event’s composed path. For shadow trees with `mode: 'closed'`, the initial event\n // target cannot be obtained.\n if ('composedPath' in e && typeof e.composedPath === 'function') {\n // For open shadow trees, update `element` so that the following check works.\n var initialEventTarget = e.composedPath()[0];\n if (initialEventTarget !== e.target) {\n element = initialEventTarget;\n }\n }\n\n // stop for input, select, and textarea\n return element.tagName == 'INPUT' || element.tagName == 'SELECT' || element.tagName == 'TEXTAREA' || element.isContentEditable;\n };\n\n /**\n * exposes _handleKey publicly so it can be overwritten by extensions\n */\n Mousetrap.prototype.handleKey = function() {\n var self = this;\n return self._handleKey.apply(self, arguments);\n };\n\n /**\n * allow custom key mappings\n */\n Mousetrap.addKeycodes = function(object) {\n for (var key in object) {\n if (object.hasOwnProperty(key)) {\n _MAP[key] = object[key];\n }\n }\n _REVERSE_MAP = null;\n };\n\n /**\n * Init the global mousetrap functions\n *\n * This method is needed to allow the global mousetrap functions to work\n * now that mousetrap is a constructor function.\n */\n Mousetrap.init = function() {\n var documentMousetrap = Mousetrap(document);\n for (var method in documentMousetrap) {\n if (method.charAt(0) !== '_') {\n Mousetrap[method] = (function(method) {\n return function() {\n return documentMousetrap[method].apply(documentMousetrap, arguments);\n };\n } (method));\n }\n }\n };\n\n Mousetrap.init();\n\n // expose mousetrap to the global object\n window.Mousetrap = Mousetrap;\n\n // expose as a common js module\n if (typeof module !== 'undefined' && module.exports) {\n module.exports = Mousetrap;\n }\n\n // expose mousetrap as an AMD module\n if (typeof define === 'function' && define.amd) {\n define(function() {\n return Mousetrap;\n });\n }\n}) (typeof window !== 'undefined' ? window : null, typeof window !== 'undefined' ? document : null);\n"],"names":["SERVER","ENV","EXPRESS_SERVER_PROTOCOL","EXPRESS_SERVER_URL","async","serverRequest","requestData","Promise","resolve","xml","XMLHttpRequest","withCredentials","open","setRequestHeader","timeout","onload","response","JSON","parse","responseText","parseError","status","Status","error","ok","errorText","Error","message","stringify","onerror","ontimeout","send","window","document","_REVERSE_MAP","_MAP","_KEYCODE_MAP","_SHIFT_MAP","$","_","_SPECIAL_ALIASES","option","command","return","escape","plus","mod","test","navigator","platform","i","toString","Mousetrap","prototype","bind","keys","callback","action","self","this","Array","_bindMultiple","call","unbind","trigger","_directMap","reset","_callbacks","stopCallback","e","element","className","indexOf","_belongsTo","target","composedPath","initialEventTarget","tagName","isContentEditable","handleKey","_handleKey","apply","arguments","addKeycodes","object","key","hasOwnProperty","init","documentMousetrap","method","charAt","module","exports","_addEvent","type","addEventListener","attachEvent","_characterFromEvent","character","String","fromCharCode","which","shiftKey","toLowerCase","_isModifier","_pickBestAction","modifiers","_getReverseMap","length","_getKeyInfo","combination","replace","split","_keysFromString","push","ancestor","parentNode","targetElement","_resetTimer","_sequenceLevels","_ignoreNextKeyup","_ignoreNextKeypress","_nextExpectedAction","_resetSequences","doNotReset","activeSequences","_getMatches","sequenceName","level","modifiers1","modifiers2","matches","seq","metaKey","ctrlKey","sort","join","deleteCombo","combo","deleteSequence","splice","_fireCallback","sequence","srcElement","preventDefault","returnValue","_preventDefault","stopPropagation","cancelBubble","_stopPropagation","_handleKeyEvent","keyCode","altKey","_eventModifiers","_bindSequence","_increaseSequence","nextAction","clearTimeout","setTimeout","_callbackAndReset","wrappedCallback","_bindSingle","info","callbacks","maxLevel","processedSequenceCallback","Math","max","ignoreThisKeypress","combinations"],"mappings":"sDAIA,MAAMA,EAASC,EAAIC,wBAA0B,MAAQD,EAAIE,mBAQzDC,eAA8BC,EAAuCC,GACnE,OAAO,IAAIC,SAAYC,IACrB,IACE,MAAMC,EAAM,IAAIC,eAChBD,EAAIE,iBAAkB,EACtBF,EAAIG,KAAK,OAAQZ,GAAQ,GACzBS,EAAII,iBAAiB,eAAgB,oBACrCJ,EAAIK,QAAUR,EAAYQ,SAAW,IAGrCL,EAAIM,OAAS,WACX,IACET,EAAYU,SAAWC,KAAKC,MAAMT,EAAIU,cACtCX,EAAQF,EACV,OAASc,GACPd,EAAYU,SAAW,CACrBK,OAAQC,EAAOC,MACfC,I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AAKG,cAAgB,SAAS4G,EAAcjH,EAAUC,GAClD,IAAA,IAASP,EAAI,EAAGA,EAAIuH,EAAa7D,SAAU1D,EACvC+G,EAAYQ,EAAavH,GAAIM,EAAUC,EAC3C,EAIJoC,EAAUwB,EAAe,WAAYiC,GACrCzD,EAAUwB,EAAe,UAAWiC,GACpCzD,EAAUwB,EAAe,QAASiC,EAAe,CAuKzD,EAAsB,oBAAXtH,OAAyBA,OAAS,KAAyB,oBAAXA,OAAyBC,SAAW","x_google_ignoreList":[1]}
|
|
1
|
+
{"version":3,"file":"mousetrap-DtEBLuOp.js","sources":["../../src/server/index.ts","../../../../node_modules/mousetrap/mousetrap.js"],"sourcesContent":["import { Status } from '@vue-skuilder/common';\nimport ENV from '../ENVIRONMENT_VARS';\nimport { ServerRequest } from '@vue-skuilder/common';\n\nconst SERVER = ENV.EXPRESS_SERVER_PROTOCOL + '://' + ENV.EXPRESS_SERVER_URL;\n\n/**\n* Makes an authenticated request to the express backend and returns the response.\n\n* @param requestData\n* @returns\n*/\nexport default async function serverRequest<T extends ServerRequest>(requestData: T): Promise<T> {\n return new Promise<T>((resolve) => {\n try {\n const xml = new XMLHttpRequest();\n xml.withCredentials = true;\n xml.open('POST', SERVER, true);\n xml.setRequestHeader('Content-Type', 'application/json');\n xml.timeout = requestData.timeout || 7000;\n\n // Handle the response when it completes\n xml.onload = function () {\n try {\n requestData.response = JSON.parse(xml.responseText);\n resolve(requestData);\n } catch (parseError) {\n requestData.response = {\n status: Status.error,\n ok: false,\n errorText: `Failed to parse response: ${\n parseError instanceof Error ? parseError.message : JSON.stringify(parseError)\n }`,\n };\n resolve(requestData);\n }\n };\n\n // Handle network errors\n xml.onerror = function () {\n requestData.response = {\n status: Status.error,\n ok: false,\n errorText: 'Network error occurred',\n };\n resolve(requestData);\n };\n\n // Handle timeouts\n xml.ontimeout = function () {\n requestData.response = {\n status: Status.error,\n ok: false,\n errorText: 'Request timed out',\n };\n resolve(requestData);\n };\n\n // Send the request\n xml.send(JSON.stringify(requestData));\n } catch (error) {\n // Handle any errors that occur during setup\n requestData.response = {\n status: Status.error,\n ok: false,\n errorText: error instanceof Error ? error.message : JSON.stringify(error),\n };\n resolve(requestData);\n }\n });\n}\n","/*global define:false */\n/**\n * Copyright 2012-2017 Craig Campbell\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * Mousetrap is a simple keyboard shortcut library for Javascript with\n * no external dependencies\n *\n * @version 1.6.5\n * @url craig.is/killing/mice\n */\n(function(window, document, undefined) {\n\n // Check if mousetrap is used inside browser, if not, return\n if (!window) {\n return;\n }\n\n /**\n * mapping of special keycodes to their corresponding keys\n *\n * everything in this dictionary cannot use keypress events\n * so it has to be here to map to the correct keycodes for\n * keyup/keydown events\n *\n * @type {Object}\n */\n var _MAP = {\n 8: 'backspace',\n 9: 'tab',\n 13: 'enter',\n 16: 'shift',\n 17: 'ctrl',\n 18: 'alt',\n 20: 'capslock',\n 27: 'esc',\n 32: 'space',\n 33: 'pageup',\n 34: 'pagedown',\n 35: 'end',\n 36: 'home',\n 37: 'left',\n 38: 'up',\n 39: 'right',\n 40: 'down',\n 45: 'ins',\n 46: 'del',\n 91: 'meta',\n 93: 'meta',\n 224: 'meta'\n };\n\n /**\n * mapping for special characters so they can support\n *\n * this dictionary is only used incase you want to bind a\n * keyup or keydown event to one of these keys\n *\n * @type {Object}\n */\n var _KEYCODE_MAP = {\n 106: '*',\n 107: '+',\n 109: '-',\n 110: '.',\n 111 : '/',\n 186: ';',\n 187: '=',\n 188: ',',\n 189: '-',\n 190: '.',\n 191: '/',\n 192: '`',\n 219: '[',\n 220: '\\\\',\n 221: ']',\n 222: '\\''\n };\n\n /**\n * this is a mapping of keys that require shift on a US keypad\n * back to the non shift equivelents\n *\n * this is so you can use keyup events with these keys\n *\n * note that this will only work reliably on US keyboards\n *\n * @type {Object}\n */\n var _SHIFT_MAP = {\n '~': '`',\n '!': '1',\n '@': '2',\n '#': '3',\n '$': '4',\n '%': '5',\n '^': '6',\n '&': '7',\n '*': '8',\n '(': '9',\n ')': '0',\n '_': '-',\n '+': '=',\n ':': ';',\n '\\\"': '\\'',\n '<': ',',\n '>': '.',\n '?': '/',\n '|': '\\\\'\n };\n\n /**\n * this is a list of special strings you can use to map\n * to modifier keys when you specify your keyboard shortcuts\n *\n * @type {Object}\n */\n var _SPECIAL_ALIASES = {\n 'option': 'alt',\n 'command': 'meta',\n 'return': 'enter',\n 'escape': 'esc',\n 'plus': '+',\n 'mod': /Mac|iPod|iPhone|iPad/.test(navigator.platform) ? 'meta' : 'ctrl'\n };\n\n /**\n * variable to store the flipped version of _MAP from above\n * needed to check if we should use keypress or not when no action\n * is specified\n *\n * @type {Object|undefined}\n */\n var _REVERSE_MAP;\n\n /**\n * loop through the f keys, f1 to f19 and add them to the map\n * programatically\n */\n for (var i = 1; i < 20; ++i) {\n _MAP[111 + i] = 'f' + i;\n }\n\n /**\n * loop through to map numbers on the numeric keypad\n */\n for (i = 0; i <= 9; ++i) {\n\n // This needs to use a string cause otherwise since 0 is falsey\n // mousetrap will never fire for numpad 0 pressed as part of a keydown\n // event.\n //\n // @see https://github.com/ccampbell/mousetrap/pull/258\n _MAP[i + 96] = i.toString();\n }\n\n /**\n * cross browser add event method\n *\n * @param {Element|HTMLDocument} object\n * @param {string} type\n * @param {Function} callback\n * @returns void\n */\n function _addEvent(object, type, callback) {\n if (object.addEventListener) {\n object.addEventListener(type, callback, false);\n return;\n }\n\n object.attachEvent('on' + type, callback);\n }\n\n /**\n * takes the event and returns the key character\n *\n * @param {Event} e\n * @return {string}\n */\n function _characterFromEvent(e) {\n\n // for keypress events we should return the character as is\n if (e.type == 'keypress') {\n var character = String.fromCharCode(e.which);\n\n // if the shift key is not pressed then it is safe to assume\n // that we want the character to be lowercase. this means if\n // you accidentally have caps lock on then your key bindings\n // will continue to work\n //\n // the only side effect that might not be desired is if you\n // bind something like 'A' cause you want to trigger an\n // event when capital A is pressed caps lock will no longer\n // trigger the event. shift+a will though.\n if (!e.shiftKey) {\n character = character.toLowerCase();\n }\n\n return character;\n }\n\n // for non keypress events the special maps are needed\n if (_MAP[e.which]) {\n return _MAP[e.which];\n }\n\n if (_KEYCODE_MAP[e.which]) {\n return _KEYCODE_MAP[e.which];\n }\n\n // if it is not in the special map\n\n // with keydown and keyup events the character seems to always\n // come in as an uppercase character whether you are pressing shift\n // or not. we should make sure it is always lowercase for comparisons\n return String.fromCharCode(e.which).toLowerCase();\n }\n\n /**\n * checks if two arrays are equal\n *\n * @param {Array} modifiers1\n * @param {Array} modifiers2\n * @returns {boolean}\n */\n function _modifiersMatch(modifiers1, modifiers2) {\n return modifiers1.sort().join(',') === modifiers2.sort().join(',');\n }\n\n /**\n * takes a key event and figures out what the modifiers are\n *\n * @param {Event} e\n * @returns {Array}\n */\n function _eventModifiers(e) {\n var modifiers = [];\n\n if (e.shiftKey) {\n modifiers.push('shift');\n }\n\n if (e.altKey) {\n modifiers.push('alt');\n }\n\n if (e.ctrlKey) {\n modifiers.push('ctrl');\n }\n\n if (e.metaKey) {\n modifiers.push('meta');\n }\n\n return modifiers;\n }\n\n /**\n * prevents default for this event\n *\n * @param {Event} e\n * @returns void\n */\n function _preventDefault(e) {\n if (e.preventDefault) {\n e.preventDefault();\n return;\n }\n\n e.returnValue = false;\n }\n\n /**\n * stops propogation for this event\n *\n * @param {Event} e\n * @returns void\n */\n function _stopPropagation(e) {\n if (e.stopPropagation) {\n e.stopPropagation();\n return;\n }\n\n e.cancelBubble = true;\n }\n\n /**\n * determines if the keycode specified is a modifier key or not\n *\n * @param {string} key\n * @returns {boolean}\n */\n function _isModifier(key) {\n return key == 'shift' || key == 'ctrl' || key == 'alt' || key == 'meta';\n }\n\n /**\n * reverses the map lookup so that we can look for specific keys\n * to see what can and can't use keypress\n *\n * @return {Object}\n */\n function _getReverseMap() {\n if (!_REVERSE_MAP) {\n _REVERSE_MAP = {};\n for (var key in _MAP) {\n\n // pull out the numeric keypad from here cause keypress should\n // be able to detect the keys from the character\n if (key > 95 && key < 112) {\n continue;\n }\n\n if (_MAP.hasOwnProperty(key)) {\n _REVERSE_MAP[_MAP[key]] = key;\n }\n }\n }\n return _REVERSE_MAP;\n }\n\n /**\n * picks the best action based on the key combination\n *\n * @param {string} key - character for key\n * @param {Array} modifiers\n * @param {string=} action passed in\n */\n function _pickBestAction(key, modifiers, action) {\n\n // if no action was picked in we should try to pick the one\n // that we think would work best for this key\n if (!action) {\n action = _getReverseMap()[key] ? 'keydown' : 'keypress';\n }\n\n // modifier keys don't work as expected with keypress,\n // switch to keydown\n if (action == 'keypress' && modifiers.length) {\n action = 'keydown';\n }\n\n return action;\n }\n\n /**\n * Converts from a string key combination to an array\n *\n * @param {string} combination like \"command+shift+l\"\n * @return {Array}\n */\n function _keysFromString(combination) {\n if (combination === '+') {\n return ['+'];\n }\n\n combination = combination.replace(/\\+{2}/g, '+plus');\n return combination.split('+');\n }\n\n /**\n * Gets info for a specific key combination\n *\n * @param {string} combination key combination (\"command+s\" or \"a\" or \"*\")\n * @param {string=} action\n * @returns {Object}\n */\n function _getKeyInfo(combination, action) {\n var keys;\n var key;\n var i;\n var modifiers = [];\n\n // take the keys from this pattern and figure out what the actual\n // pattern is all about\n keys = _keysFromString(combination);\n\n for (i = 0; i < keys.length; ++i) {\n key = keys[i];\n\n // normalize key names\n if (_SPECIAL_ALIASES[key]) {\n key = _SPECIAL_ALIASES[key];\n }\n\n // if this is not a keypress event then we should\n // be smart about using shift keys\n // this will only work for US keyboards however\n if (action && action != 'keypress' && _SHIFT_MAP[key]) {\n key = _SHIFT_MAP[key];\n modifiers.push('shift');\n }\n\n // if this key is a modifier then add it to the list of modifiers\n if (_isModifier(key)) {\n modifiers.push(key);\n }\n }\n\n // depending on what the key combination is\n // we will try to pick the best event for it\n action = _pickBestAction(key, modifiers, action);\n\n return {\n key: key,\n modifiers: modifiers,\n action: action\n };\n }\n\n function _belongsTo(element, ancestor) {\n if (element === null || element === document) {\n return false;\n }\n\n if (element === ancestor) {\n return true;\n }\n\n return _belongsTo(element.parentNode, ancestor);\n }\n\n function Mousetrap(targetElement) {\n var self = this;\n\n targetElement = targetElement || document;\n\n if (!(self instanceof Mousetrap)) {\n return new Mousetrap(targetElement);\n }\n\n /**\n * element to attach key events to\n *\n * @type {Element}\n */\n self.target = targetElement;\n\n /**\n * a list of all the callbacks setup via Mousetrap.bind()\n *\n * @type {Object}\n */\n self._callbacks = {};\n\n /**\n * direct map of string combinations to callbacks used for trigger()\n *\n * @type {Object}\n */\n self._directMap = {};\n\n /**\n * keeps track of what level each sequence is at since multiple\n * sequences can start out with the same sequence\n *\n * @type {Object}\n */\n var _sequenceLevels = {};\n\n /**\n * variable to store the setTimeout call\n *\n * @type {null|number}\n */\n var _resetTimer;\n\n /**\n * temporary state where we will ignore the next keyup\n *\n * @type {boolean|string}\n */\n var _ignoreNextKeyup = false;\n\n /**\n * temporary state where we will ignore the next keypress\n *\n * @type {boolean}\n */\n var _ignoreNextKeypress = false;\n\n /**\n * are we currently inside of a sequence?\n * type of action (\"keyup\" or \"keydown\" or \"keypress\") or false\n *\n * @type {boolean|string}\n */\n var _nextExpectedAction = false;\n\n /**\n * resets all sequence counters except for the ones passed in\n *\n * @param {Object} doNotReset\n * @returns void\n */\n function _resetSequences(doNotReset) {\n doNotReset = doNotReset || {};\n\n var activeSequences = false,\n key;\n\n for (key in _sequenceLevels) {\n if (doNotReset[key]) {\n activeSequences = true;\n continue;\n }\n _sequenceLevels[key] = 0;\n }\n\n if (!activeSequences) {\n _nextExpectedAction = false;\n }\n }\n\n /**\n * finds all callbacks that match based on the keycode, modifiers,\n * and action\n *\n * @param {string} character\n * @param {Array} modifiers\n * @param {Event|Object} e\n * @param {string=} sequenceName - name of the sequence we are looking for\n * @param {string=} combination\n * @param {number=} level\n * @returns {Array}\n */\n function _getMatches(character, modifiers, e, sequenceName, combination, level) {\n var i;\n var callback;\n var matches = [];\n var action = e.type;\n\n // if there are no events related to this keycode\n if (!self._callbacks[character]) {\n return [];\n }\n\n // if a modifier key is coming up on its own we should allow it\n if (action == 'keyup' && _isModifier(character)) {\n modifiers = [character];\n }\n\n // loop through all callbacks for the key that was pressed\n // and see if any of them match\n for (i = 0; i < self._callbacks[character].length; ++i) {\n callback = self._callbacks[character][i];\n\n // if a sequence name is not specified, but this is a sequence at\n // the wrong level then move onto the next match\n if (!sequenceName && callback.seq && _sequenceLevels[callback.seq] != callback.level) {\n continue;\n }\n\n // if the action we are looking for doesn't match the action we got\n // then we should keep going\n if (action != callback.action) {\n continue;\n }\n\n // if this is a keypress event and the meta key and control key\n // are not pressed that means that we need to only look at the\n // character, otherwise check the modifiers as well\n //\n // chrome will not fire a keypress if meta or control is down\n // safari will fire a keypress if meta or meta+shift is down\n // firefox will fire a keypress if meta or control is down\n if ((action == 'keypress' && !e.metaKey && !e.ctrlKey) || _modifiersMatch(modifiers, callback.modifiers)) {\n\n // when you bind a combination or sequence a second time it\n // should overwrite the first one. if a sequenceName or\n // combination is specified in this call it does just that\n //\n // @todo make deleting its own method?\n var deleteCombo = !sequenceName && callback.combo == combination;\n var deleteSequence = sequenceName && callback.seq == sequenceName && callback.level == level;\n if (deleteCombo || deleteSequence) {\n self._callbacks[character].splice(i, 1);\n }\n\n matches.push(callback);\n }\n }\n\n return matches;\n }\n\n /**\n * actually calls the callback function\n *\n * if your callback function returns false this will use the jquery\n * convention - prevent default and stop propogation on the event\n *\n * @param {Function} callback\n * @param {Event} e\n * @returns void\n */\n function _fireCallback(callback, e, combo, sequence) {\n\n // if this event should not happen stop here\n if (self.stopCallback(e, e.target || e.srcElement, combo, sequence)) {\n return;\n }\n\n if (callback(e, combo) === false) {\n _preventDefault(e);\n _stopPropagation(e);\n }\n }\n\n /**\n * handles a character key event\n *\n * @param {string} character\n * @param {Array} modifiers\n * @param {Event} e\n * @returns void\n */\n self._handleKey = function(character, modifiers, e) {\n var callbacks = _getMatches(character, modifiers, e);\n var i;\n var doNotReset = {};\n var maxLevel = 0;\n var processedSequenceCallback = false;\n\n // Calculate the maxLevel for sequences so we can only execute the longest callback sequence\n for (i = 0; i < callbacks.length; ++i) {\n if (callbacks[i].seq) {\n maxLevel = Math.max(maxLevel, callbacks[i].level);\n }\n }\n\n // loop through matching callbacks for this key event\n for (i = 0; i < callbacks.length; ++i) {\n\n // fire for all sequence callbacks\n // this is because if for example you have multiple sequences\n // bound such as \"g i\" and \"g t\" they both need to fire the\n // callback for matching g cause otherwise you can only ever\n // match the first one\n if (callbacks[i].seq) {\n\n // only fire callbacks for the maxLevel to prevent\n // subsequences from also firing\n //\n // for example 'a option b' should not cause 'option b' to fire\n // even though 'option b' is part of the other sequence\n //\n // any sequences that do not match here will be discarded\n // below by the _resetSequences call\n if (callbacks[i].level != maxLevel) {\n continue;\n }\n\n processedSequenceCallback = true;\n\n // keep a list of which sequences were matches for later\n doNotReset[callbacks[i].seq] = 1;\n _fireCallback(callbacks[i].callback, e, callbacks[i].combo, callbacks[i].seq);\n continue;\n }\n\n // if there were no sequence matches but we are still here\n // that means this is a regular match so we should fire that\n if (!processedSequenceCallback) {\n _fireCallback(callbacks[i].callback, e, callbacks[i].combo);\n }\n }\n\n // if the key you pressed matches the type of sequence without\n // being a modifier (ie \"keyup\" or \"keypress\") then we should\n // reset all sequences that were not matched by this event\n //\n // this is so, for example, if you have the sequence \"h a t\" and you\n // type \"h e a r t\" it does not match. in this case the \"e\" will\n // cause the sequence to reset\n //\n // modifier keys are ignored because you can have a sequence\n // that contains modifiers such as \"enter ctrl+space\" and in most\n // cases the modifier key will be pressed before the next key\n //\n // also if you have a sequence such as \"ctrl+b a\" then pressing the\n // \"b\" key will trigger a \"keypress\" and a \"keydown\"\n //\n // the \"keydown\" is expected when there is a modifier, but the\n // \"keypress\" ends up matching the _nextExpectedAction since it occurs\n // after and that causes the sequence to reset\n //\n // we ignore keypresses in a sequence that directly follow a keydown\n // for the same character\n var ignoreThisKeypress = e.type == 'keypress' && _ignoreNextKeypress;\n if (e.type == _nextExpectedAction && !_isModifier(character) && !ignoreThisKeypress) {\n _resetSequences(doNotReset);\n }\n\n _ignoreNextKeypress = processedSequenceCallback && e.type == 'keydown';\n };\n\n /**\n * handles a keydown event\n *\n * @param {Event} e\n * @returns void\n */\n function _handleKeyEvent(e) {\n\n // normalize e.which for key events\n // @see http://stackoverflow.com/questions/4285627/javascript-keycode-vs-charcode-utter-confusion\n if (typeof e.which !== 'number') {\n e.which = e.keyCode;\n }\n\n var character = _characterFromEvent(e);\n\n // no character found then stop\n if (!character) {\n return;\n }\n\n // need to use === for the character check because the character can be 0\n if (e.type == 'keyup' && _ignoreNextKeyup === character) {\n _ignoreNextKeyup = false;\n return;\n }\n\n self.handleKey(character, _eventModifiers(e), e);\n }\n\n /**\n * called to set a 1 second timeout on the specified sequence\n *\n * this is so after each key press in the sequence you have 1 second\n * to press the next key before you have to start over\n *\n * @returns void\n */\n function _resetSequenceTimer() {\n clearTimeout(_resetTimer);\n _resetTimer = setTimeout(_resetSequences, 1000);\n }\n\n /**\n * binds a key sequence to an event\n *\n * @param {string} combo - combo specified in bind call\n * @param {Array} keys\n * @param {Function} callback\n * @param {string=} action\n * @returns void\n */\n function _bindSequence(combo, keys, callback, action) {\n\n // start off by adding a sequence level record for this combination\n // and setting the level to 0\n _sequenceLevels[combo] = 0;\n\n /**\n * callback to increase the sequence level for this sequence and reset\n * all other sequences that were active\n *\n * @param {string} nextAction\n * @returns {Function}\n */\n function _increaseSequence(nextAction) {\n return function() {\n _nextExpectedAction = nextAction;\n ++_sequenceLevels[combo];\n _resetSequenceTimer();\n };\n }\n\n /**\n * wraps the specified callback inside of another function in order\n * to reset all sequence counters as soon as this sequence is done\n *\n * @param {Event} e\n * @returns void\n */\n function _callbackAndReset(e) {\n _fireCallback(callback, e, combo);\n\n // we should ignore the next key up if the action is key down\n // or keypress. this is so if you finish a sequence and\n // release the key the final key will not trigger a keyup\n if (action !== 'keyup') {\n _ignoreNextKeyup = _characterFromEvent(e);\n }\n\n // weird race condition if a sequence ends with the key\n // another sequence begins with\n setTimeout(_resetSequences, 10);\n }\n\n // loop through keys one at a time and bind the appropriate callback\n // function. for any key leading up to the final one it should\n // increase the sequence. after the final, it should reset all sequences\n //\n // if an action is specified in the original bind call then that will\n // be used throughout. otherwise we will pass the action that the\n // next key in the sequence should match. this allows a sequence\n // to mix and match keypress and keydown events depending on which\n // ones are better suited to the key provided\n for (var i = 0; i < keys.length; ++i) {\n var isFinal = i + 1 === keys.length;\n var wrappedCallback = isFinal ? _callbackAndReset : _increaseSequence(action || _getKeyInfo(keys[i + 1]).action);\n _bindSingle(keys[i], wrappedCallback, action, combo, i);\n }\n }\n\n /**\n * binds a single keyboard combination\n *\n * @param {string} combination\n * @param {Function} callback\n * @param {string=} action\n * @param {string=} sequenceName - name of sequence if part of sequence\n * @param {number=} level - what part of the sequence the command is\n * @returns void\n */\n function _bindSingle(combination, callback, action, sequenceName, level) {\n\n // store a direct mapped reference for use with Mousetrap.trigger\n self._directMap[combination + ':' + action] = callback;\n\n // make sure multiple spaces in a row become a single space\n combination = combination.replace(/\\s+/g, ' ');\n\n var sequence = combination.split(' ');\n var info;\n\n // if this pattern is a sequence of keys then run through this method\n // to reprocess each pattern one key at a time\n if (sequence.length > 1) {\n _bindSequence(combination, sequence, callback, action);\n return;\n }\n\n info = _getKeyInfo(combination, action);\n\n // make sure to initialize array if this is the first time\n // a callback is added for this key\n self._callbacks[info.key] = self._callbacks[info.key] || [];\n\n // remove an existing match if there is one\n _getMatches(info.key, info.modifiers, {type: info.action}, sequenceName, combination, level);\n\n // add this call back to the array\n // if it is a sequence put it at the beginning\n // if not put it at the end\n //\n // this is important because the way these are processed expects\n // the sequence ones to come first\n self._callbacks[info.key][sequenceName ? 'unshift' : 'push']({\n callback: callback,\n modifiers: info.modifiers,\n action: info.action,\n seq: sequenceName,\n level: level,\n combo: combination\n });\n }\n\n /**\n * binds multiple combinations to the same callback\n *\n * @param {Array} combinations\n * @param {Function} callback\n * @param {string|undefined} action\n * @returns void\n */\n self._bindMultiple = function(combinations, callback, action) {\n for (var i = 0; i < combinations.length; ++i) {\n _bindSingle(combinations[i], callback, action);\n }\n };\n\n // start!\n _addEvent(targetElement, 'keypress', _handleKeyEvent);\n _addEvent(targetElement, 'keydown', _handleKeyEvent);\n _addEvent(targetElement, 'keyup', _handleKeyEvent);\n }\n\n /**\n * binds an event to mousetrap\n *\n * can be a single key, a combination of keys separated with +,\n * an array of keys, or a sequence of keys separated by spaces\n *\n * be sure to list the modifier keys first to make sure that the\n * correct key ends up getting bound (the last key in the pattern)\n *\n * @param {string|Array} keys\n * @param {Function} callback\n * @param {string=} action - 'keypress', 'keydown', or 'keyup'\n * @returns void\n */\n Mousetrap.prototype.bind = function(keys, callback, action) {\n var self = this;\n keys = keys instanceof Array ? keys : [keys];\n self._bindMultiple.call(self, keys, callback, action);\n return self;\n };\n\n /**\n * unbinds an event to mousetrap\n *\n * the unbinding sets the callback function of the specified key combo\n * to an empty function and deletes the corresponding key in the\n * _directMap dict.\n *\n * TODO: actually remove this from the _callbacks dictionary instead\n * of binding an empty function\n *\n * the keycombo+action has to be exactly the same as\n * it was defined in the bind method\n *\n * @param {string|Array} keys\n * @param {string} action\n * @returns void\n */\n Mousetrap.prototype.unbind = function(keys, action) {\n var self = this;\n return self.bind.call(self, keys, function() {}, action);\n };\n\n /**\n * triggers an event that has already been bound\n *\n * @param {string} keys\n * @param {string=} action\n * @returns void\n */\n Mousetrap.prototype.trigger = function(keys, action) {\n var self = this;\n if (self._directMap[keys + ':' + action]) {\n self._directMap[keys + ':' + action]({}, keys);\n }\n return self;\n };\n\n /**\n * resets the library back to its initial state. this is useful\n * if you want to clear out the current keyboard shortcuts and bind\n * new ones - for example if you switch to another page\n *\n * @returns void\n */\n Mousetrap.prototype.reset = function() {\n var self = this;\n self._callbacks = {};\n self._directMap = {};\n return self;\n };\n\n /**\n * should we stop this event before firing off callbacks\n *\n * @param {Event} e\n * @param {Element} element\n * @return {boolean}\n */\n Mousetrap.prototype.stopCallback = function(e, element) {\n var self = this;\n\n // if the element has the class \"mousetrap\" then no need to stop\n if ((' ' + element.className + ' ').indexOf(' mousetrap ') > -1) {\n return false;\n }\n\n if (_belongsTo(element, self.target)) {\n return false;\n }\n\n // Events originating from a shadow DOM are re-targetted and `e.target` is the shadow host,\n // not the initial event target in the shadow tree. Note that not all events cross the\n // shadow boundary.\n // For shadow trees with `mode: 'open'`, the initial event target is the first element in\n // the event’s composed path. For shadow trees with `mode: 'closed'`, the initial event\n // target cannot be obtained.\n if ('composedPath' in e && typeof e.composedPath === 'function') {\n // For open shadow trees, update `element` so that the following check works.\n var initialEventTarget = e.composedPath()[0];\n if (initialEventTarget !== e.target) {\n element = initialEventTarget;\n }\n }\n\n // stop for input, select, and textarea\n return element.tagName == 'INPUT' || element.tagName == 'SELECT' || element.tagName == 'TEXTAREA' || element.isContentEditable;\n };\n\n /**\n * exposes _handleKey publicly so it can be overwritten by extensions\n */\n Mousetrap.prototype.handleKey = function() {\n var self = this;\n return self._handleKey.apply(self, arguments);\n };\n\n /**\n * allow custom key mappings\n */\n Mousetrap.addKeycodes = function(object) {\n for (var key in object) {\n if (object.hasOwnProperty(key)) {\n _MAP[key] = object[key];\n }\n }\n _REVERSE_MAP = null;\n };\n\n /**\n * Init the global mousetrap functions\n *\n * This method is needed to allow the global mousetrap functions to work\n * now that mousetrap is a constructor function.\n */\n Mousetrap.init = function() {\n var documentMousetrap = Mousetrap(document);\n for (var method in documentMousetrap) {\n if (method.charAt(0) !== '_') {\n Mousetrap[method] = (function(method) {\n return function() {\n return documentMousetrap[method].apply(documentMousetrap, arguments);\n };\n } (method));\n }\n }\n };\n\n Mousetrap.init();\n\n // expose mousetrap to the global object\n window.Mousetrap = Mousetrap;\n\n // expose as a common js module\n if (typeof module !== 'undefined' && module.exports) {\n module.exports = Mousetrap;\n }\n\n // expose mousetrap as an AMD module\n if (typeof define === 'function' && define.amd) {\n define(function() {\n return Mousetrap;\n });\n }\n}) (typeof window !== 'undefined' ? window : null, typeof window !== 'undefined' ? document : null);\n"],"names":["SERVER","ENV","EXPRESS_SERVER_PROTOCOL","EXPRESS_SERVER_URL","async","serverRequest","requestData","Promise","resolve","xml","XMLHttpRequest","withCredentials","open","setRequestHeader","timeout","onload","response","JSON","parse","responseText","parseError","status","Status","error","ok","errorText","Error","message","stringify","onerror","ontimeout","send","window","document","_REVERSE_MAP","_MAP","_KEYCODE_MAP","_SHIFT_MAP","$","_","_SPECIAL_ALIASES","option","command","return","escape","plus","mod","test","navigator","platform","i","toString","Mousetrap","prototype","bind","keys","callback","action","self","this","Array","_bindMultiple","call","unbind","trigger","_directMap","reset","_callbacks","stopCallback","e","element","className","indexOf","_belongsTo","target","composedPath","initialEventTarget","tagName","isContentEditable","handleKey","_handleKey","apply","arguments","addKeycodes","object","key","hasOwnProperty","init","documentMousetrap","method","charAt","module","exports","_addEvent","type","addEventListener","attachEvent","_characterFromEvent","character","String","fromCharCode","which","shiftKey","toLowerCase","_isModifier","_pickBestAction","modifiers","_getReverseMap","length","_getKeyInfo","combination","replace","split","_keysFromString","push","ancestor","parentNode","targetElement","_resetTimer","_sequenceLevels","_ignoreNextKeyup","_ignoreNextKeypress","_nextExpectedAction","_resetSequences","doNotReset","activeSequences","_getMatches","sequenceName","level","modifiers1","modifiers2","matches","seq","metaKey","ctrlKey","sort","join","deleteCombo","combo","deleteSequence","splice","_fireCallback","sequence","srcElement","preventDefault","returnValue","_preventDefault","stopPropagation","cancelBubble","_stopPropagation","_handleKeyEvent","keyCode","altKey","_eventModifiers","_bindSequence","_increaseSequence","nextAction","clearTimeout","setTimeout","_callbackAndReset","wrappedCallback","_bindSingle","info","callbacks","maxLevel","processedSequenceCallback","Math","max","ignoreThisKeypress","combinations"],"m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,SAGJC,GAA4B,EAG5BzC,EAAWuC,EAAUjH,GAAGkF,KAAO,EAC/BS,EAAcsB,EAAUjH,GAAGM,SAAUa,EAAG8F,EAAUjH,GAAGwF,MAAOyB,EAAUjH,GAAGkF,IACzE,MAKCiC,GACDxB,EAAcsB,EAAUjH,GAAGM,SAAUa,EAAG8F,EAAUjH,GAAGwF,OAyB7D,IAAI8B,EAA+B,YAAVnG,EAAEyB,MAAsB2B,EAC7CpD,EAAEyB,MAAQ4B,GAAwBlB,EAAYN,IAAesE,GAC7D7C,EAAgBC,GAGpBH,EAAsB4C,GAAuC,WAAVhG,EAAEyB,IAAQ,EA+KjEpC,EAAKG,cAAgB,SAAS4G,EAAcjH,EAAUC,GAClD,IAAA,IAASP,EAAI,EAAGA,EAAIuH,EAAa7D,SAAU1D,EACvC+G,EAAYQ,EAAavH,GAAIM,EAAUC,EAC3C,EAIJoC,EAAUwB,EAAe,WAAYiC,GACrCzD,EAAUwB,EAAe,UAAWiC,GACpCzD,EAAUwB,EAAe,QAASiC,EAAe,CAuKzD,EAAsB,oBAAXtH,OAAyBA,OAAS,KAAyB,oBAAXA,OAAyBC,SAAW","x_google_ignoreList":[1]}
|
package/dist/index.html
CHANGED
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
|
|
9
9
|
<link rel="shortcut icon" href="/favicon.ico" />
|
|
10
10
|
<title>eduQuilt</title>
|
|
11
|
-
<script type="module" crossorigin src="/assets/index-
|
|
12
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
11
|
+
<script type="module" crossorigin src="/assets/index-dF8VqAFl.js"></script>
|
|
12
|
+
<link rel="stylesheet" crossorigin href="/assets/index-CGPKQ_L0.css">
|
|
13
13
|
<link rel="manifest" href="/manifest.webmanifest"></head>
|
|
14
14
|
|
|
15
15
|
<body>
|
package/dist/sw.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
if(!self.define){let s,e={};const l=(l,o)=>(l=new URL(l+".js",o).href,e[l]||new Promise((e=>{if("document"in self){const s=document.createElement("script");s.src=l,s.onload=e,document.head.appendChild(s)}else s=l,importScripts(l),e()})).then((()=>{let s=e[l];if(!s)throw new Error(`Module ${l} didn’t register its module`);return s})));self.define=(o,i)=>{const r=s||("document"in self?document.currentScript.src:"")||location.href;if(e[r])return;let n={};const u=s=>l(s,r),t={module:{uri:r},exports:n,require:u};e[r]=Promise.all(o.map((s=>t[s]||u(s)))).then((s=>(i(...s),n)))}}define(["./workbox-1be04862"],(function(s){"use strict";self.skipWaiting(),s.clientsClaim(),s.precacheAndRoute([{url:"assets/About-
|
|
1
|
+
if(!self.define){let s,e={};const l=(l,o)=>(l=new URL(l+".js",o).href,e[l]||new Promise((e=>{if("document"in self){const s=document.createElement("script");s.src=l,s.onload=e,document.head.appendChild(s)}else s=l,importScripts(l),e()})).then((()=>{let s=e[l];if(!s)throw new Error(`Module ${l} didn’t register its module`);return s})));self.define=(o,i)=>{const r=s||("document"in self?document.currentScript.src:"")||location.href;if(e[r])return;let n={};const u=s=>l(s,r),t={module:{uri:r},exports:n,require:u};e[r]=Promise.all(o.map((s=>t[s]||u(s)))).then((s=>(i(...s),n)))}}define(["./workbox-1be04862"],(function(s){"use strict";self.skipWaiting(),s.clientsClaim(),s.precacheAndRoute([{url:"assets/About-BaAnvLBW.js",revision:null},{url:"assets/AdminDashboard-CqjTUAz6.js",revision:null},{url:"assets/AdminDashboard-CWnC_vEI.css",revision:null},{url:"assets/ClassroomCtrlPanel-DY_JOO4n.js",revision:null},{url:"assets/Classrooms-C2axF94L.js",revision:null},{url:"assets/CourseRouter-Cpx3l0G5.js",revision:null},{url:"assets/CourseRouter-DuzvSsqI.css",revision:null},{url:"assets/Courses-DQW3kca9.css",revision:null},{url:"assets/Courses-JnwlMj7_.js",revision:null},{url:"assets/DataInputFormTester-COeenuPs.js",revision:null},{url:"assets/edit-ui.es-XlgQUjdy.js",revision:null},{url:"assets/EloModeration-B90G61YI.css",revision:null},{url:"assets/EloModeration-WKZ0ZI9K.js",revision:null},{url:"assets/index-BweUwxDQ.js",revision:null},{url:"assets/index-CGPKQ_L0.css",revision:null},{url:"assets/index-dF8VqAFl.js",revision:null},{url:"assets/JoinCode-BC6k_fbV.js",revision:null},{url:"assets/JoinCode-DFiral3R.css",revision:null},{url:"assets/materialdesignicons-webfont-Dp5v-WZN.woff2",revision:null},{url:"assets/mousetrap-DtEBLuOp.js",revision:null},{url:"assets/NewCourseDialog-CP_yAeBS.js",revision:null},{url:"assets/ReleaseNotes-Du1rXmdr.js",revision:null},{url:"assets/RequestPasswordReset-CD6KAb-x.js",revision:null},{url:"assets/RequestPasswordReset-Du5-awJG.css",revision:null},{url:"assets/ResetPassword-CdcPL1lR.js",revision:null},{url:"assets/Roboto-Black-VhoA2qKx.woff2",revision:null},{url:"assets/Roboto-BlackItalic-D4yie1YO.woff2",revision:null},{url:"assets/Roboto-Bold-hN3duQhD.woff2",revision:null},{url:"assets/Roboto-BoldItalic-BWDm51uc.woff2",revision:null},{url:"assets/Roboto-Light-DHTugVNA.woff2",revision:null},{url:"assets/Roboto-LightItalic-JQyp2Y3P.woff2",revision:null},{url:"assets/Roboto-Medium-ByKogCTi.woff2",revision:null},{url:"assets/Roboto-MediumItalic-i1eR0KbF.woff2",revision:null},{url:"assets/Roboto-Regular-C6rbFxYz.woff2",revision:null},{url:"assets/Roboto-RegularItalic-CvPUdkvM.woff2",revision:null},{url:"assets/Roboto-Thin-NicBC1pN.woff2",revision:null},{url:"assets/Roboto-ThinItalic-CKlCjrO_.woff2",revision:null},{url:"assets/Study-CiczyXm5.js",revision:null},{url:"assets/Study-Cxxw_AYM.css",revision:null},{url:"assets/TagInformation-C_wEpXyQ.js",revision:null},{url:"assets/User-9YKBLtBO.js",revision:null},{url:"assets/UserStats-DceiClex.js",revision:null},{url:"assets/VerifyEmail-z-t9eEy2.js",revision:null},{url:"assets/workbox-window.prod.es5-p40uij6f.js",revision:null},{url:"favicon.ico",revision:"b71387b4508120b59615e43d5e103706"},{url:"img/icons/safari-pinned-tab.svg",revision:"f22d501a35a87d9f21701cb031f6ea17"},{url:"index.html",revision:"97a5b778ca35a7530f2bc84878f9335b"},{url:"manifest.json",revision:"14a155103e25199244cdda503219c3e1"},{url:"robots.txt",revision:"b6216d61c03e6ce0c9aea6ca7808f7ca"},{url:"manifest.webmanifest",revision:"0ad80257ac95729a8c88588d23a396c1"}],{}),s.cleanupOutdatedCaches(),s.registerRoute(new s.NavigationRoute(s.createHandlerBoundToURL("/index.html"),{allowlist:[/^(?!\/(couch|express)).*$/]}))}));
|
|
2
2
|
//# sourceMappingURL=sw.js.map
|
package/dist/sw.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sw.js","sources":["../../../../../../../tmp/
|
|
1
|
+
{"version":3,"file":"sw.js","sources":["../../../../../../../tmp/ad9d0421667e3bb7b7912614f4650ccb/sw.js"],"sourcesContent":["import {clientsClaim as workbox_core_clientsClaim} from '/home/runner/work/vue-skuilder/vue-skuilder/node_modules/workbox-core/clientsClaim.mjs';\nimport {precacheAndRoute as workbox_precaching_precacheAndRoute} from '/home/runner/work/vue-skuilder/vue-skuilder/node_modules/workbox-precaching/precacheAndRoute.mjs';\nimport {cleanupOutdatedCaches as workbox_precaching_cleanupOutdatedCaches} from '/home/runner/work/vue-skuilder/vue-skuilder/node_modules/workbox-precaching/cleanupOutdatedCaches.mjs';\nimport {registerRoute as workbox_routing_registerRoute} from '/home/runner/work/vue-skuilder/vue-skuilder/node_modules/workbox-routing/registerRoute.mjs';\nimport {NavigationRoute as workbox_routing_NavigationRoute} from '/home/runner/work/vue-skuilder/vue-skuilder/node_modules/workbox-routing/NavigationRoute.mjs';\nimport {createHandlerBoundToURL as workbox_precaching_createHandlerBoundToURL} from '/home/runner/work/vue-skuilder/vue-skuilder/node_modules/workbox-precaching/createHandlerBoundToURL.mjs';/**\n * Welcome to your Workbox-powered service worker!\n *\n * You'll need to register this file in your web app.\n * See https://goo.gl/nhQhGp\n *\n * The rest of the code is auto-generated. Please don't update this file\n * directly; instead, make changes to your Workbox build configuration\n * and re-run your build process.\n * See https://goo.gl/2aRDsh\n */\n\n\n\n\n\n\n\n\nself.skipWaiting();\n\nworkbox_core_clientsClaim();\n\n\n/**\n * The precacheAndRoute() method efficiently caches and responds to\n * requests for URLs in the manifest.\n * See https://goo.gl/S9QRab\n */\nworkbox_precaching_precacheAndRoute([\n {\n \"url\": \"assets/About-BaAnvLBW.js\",\n \"revision\": null\n },\n {\n \"url\": \"assets/AdminDashboard-CqjTUAz6.js\",\n \"revision\": null\n },\n {\n \"url\": \"assets/AdminDashboard-CWnC_vEI.css\",\n \"revision\": null\n },\n {\n \"url\": \"assets/ClassroomCtrlPanel-DY_JOO4n.js\",\n \"revision\": null\n },\n {\n \"url\": \"assets/Classrooms-C2axF94L.js\",\n \"revision\": null\n },\n {\n \"url\": \"assets/CourseRouter-Cpx3l0G5.js\",\n \"revision\": null\n },\n {\n \"url\": \"assets/CourseRouter-DuzvSsqI.css\",\n \"revision\": null\n },\n {\n \"url\": \"assets/Courses-DQW3kca9.css\",\n \"revision\": null\n },\n {\n \"url\": \"assets/Courses-JnwlMj7_.js\",\n \"revision\": null\n },\n {\n \"url\": \"assets/DataInputFormTester-COeenuPs.js\",\n \"revision\": null\n },\n {\n \"url\": \"assets/edit-ui.es-XlgQUjdy.js\",\n \"revision\": null\n },\n {\n \"url\": \"assets/EloModeration-B90G61YI.css\",\n \"revision\": null\n },\n {\n \"url\": \"assets/EloModeration-WKZ0ZI9K.js\",\n \"revision\": null\n },\n {\n \"url\": \"assets/index-BweUwxDQ.js\",\n \"revision\": null\n },\n {\n \"url\": \"assets/index-CGPKQ_L0.css\",\n \"revision\": null\n },\n {\n \"url\": \"assets/index-dF8VqAFl.js\",\n \"revision\": null\n },\n {\n \"url\": \"assets/JoinCode-BC6k_fbV.js\",\n \"revision\": null\n },\n {\n \"url\": \"assets/JoinCode-DFiral3R.css\",\n \"revision\": null\n },\n {\n \"url\": \"assets/materialdesignicons-webfont-Dp5v-WZN.woff2\",\n \"revision\": null\n },\n {\n \"url\": \"assets/mousetrap-DtEBLuOp.js\",\n \"revision\": null\n },\n {\n \"url\": \"assets/NewCourseDialog-CP_yAeBS.js\",\n \"revision\": null\n },\n {\n \"url\": \"assets/ReleaseNotes-Du1rXmdr.js\",\n \"revision\": null\n },\n {\n \"url\": \"assets/RequestPasswordReset-CD6KAb-x.js\",\n \"revision\": null\n },\n {\n \"url\": \"assets/RequestPasswordReset-Du5-awJG.css\",\n \"revision\": null\n },\n {\n \"url\": \"assets/ResetPassword-CdcPL1lR.js\",\n \"revision\": null\n },\n {\n \"url\": \"assets/Roboto-Black-VhoA2qKx.woff2\",\n \"revision\": null\n },\n {\n \"url\": \"assets/Roboto-BlackItalic-D4yie1YO.woff2\",\n \"revision\": null\n },\n {\n \"url\": \"assets/Roboto-Bold-hN3duQhD.woff2\",\n \"revision\": null\n },\n {\n \"url\": \"assets/Roboto-BoldItalic-BWDm51uc.woff2\",\n \"revision\": null\n },\n {\n \"url\": \"assets/Roboto-Light-DHTugVNA.woff2\",\n \"revision\": null\n },\n {\n \"url\": \"assets/Roboto-LightItalic-JQyp2Y3P.woff2\",\n \"revision\": null\n },\n {\n \"url\": \"assets/Roboto-Medium-ByKogCTi.woff2\",\n \"revision\": null\n },\n {\n \"url\": \"assets/Roboto-MediumItalic-i1eR0KbF.woff2\",\n \"revision\": null\n },\n {\n \"url\": \"assets/Roboto-Regular-C6rbFxYz.woff2\",\n \"revision\": null\n },\n {\n \"url\": \"assets/Roboto-RegularItalic-CvPUdkvM.woff2\",\n \"revision\": null\n },\n {\n \"url\": \"assets/Roboto-Thin-NicBC1pN.woff2\",\n \"revision\": null\n },\n {\n \"url\": \"assets/Roboto-ThinItalic-CKlCjrO_.woff2\",\n \"revision\": null\n },\n {\n \"url\": \"assets/Study-CiczyXm5.js\",\n \"revision\": null\n },\n {\n \"url\": \"assets/Study-Cxxw_AYM.css\",\n \"revision\": null\n },\n {\n \"url\": \"assets/TagInformation-C_wEpXyQ.js\",\n \"revision\": null\n },\n {\n \"url\": \"assets/User-9YKBLtBO.js\",\n \"revision\": null\n },\n {\n \"url\": \"assets/UserStats-DceiClex.js\",\n \"revision\": null\n },\n {\n \"url\": \"assets/VerifyEmail-z-t9eEy2.js\",\n \"revision\": null\n },\n {\n \"url\": \"assets/workbox-window.prod.es5-p40uij6f.js\",\n \"revision\": null\n },\n {\n \"url\": \"favicon.ico\",\n \"revision\": \"b71387b4508120b59615e43d5e103706\"\n },\n {\n \"url\": \"img/icons/safari-pinned-tab.svg\",\n \"revision\": \"f22d501a35a87d9f21701cb031f6ea17\"\n },\n {\n \"url\": \"index.html\",\n \"revision\": \"97a5b778ca35a7530f2bc84878f9335b\"\n },\n {\n \"url\": \"manifest.json\",\n \"revision\": \"14a155103e25199244cdda503219c3e1\"\n },\n {\n \"url\": \"robots.txt\",\n \"revision\": \"b6216d61c03e6ce0c9aea6ca7808f7ca\"\n },\n {\n \"url\": \"manifest.webmanifest\",\n \"revision\": \"0ad80257ac95729a8c88588d23a396c1\"\n }\n], {});\nworkbox_precaching_cleanupOutdatedCaches();\nworkbox_routing_registerRoute(new workbox_routing_NavigationRoute(workbox_precaching_createHandlerBoundToURL(\"/index.html\"), {\n allowlist: [/^(?!\\/(couch|express)).*$/],\n \n}));\n\n\n\n\n\n\n"],"names":["self","skipWaiting","workbox_core_clientsClaim","workbox_precaching_precacheAndRoute","url","revision","workbox_precaching_cleanupOutdatedCaches","workbox","registerRoute","workbox_routing_NavigationRoute","NavigationRoute","workbox_precaching_createHandlerBoundToURL","allowlist"],"mappings":"0nBAwBAA,KAAKC,cAELC,EAAAA,eAQAC,EAAAA,iBAAoC,CAClC,CACEC,IAAO,2BACPC,SAAY,MAEd,CACED,IAAO,oCACPC,SAAY,MAEd,CACED,IAAO,qCACPC,SAAY,MAEd,CACED,IAAO,wCACPC,SAAY,MAEd,CACED,IAAO,gCACPC,SAAY,MAEd,CACED,IAAO,kCACPC,SAAY,MAEd,CACED,IAAO,mCACPC,SAAY,MAEd,CACED,IAAO,8BACPC,SAAY,MAEd,CACED,IAAO,6BACPC,SAAY,MAEd,CACED,IAAO,yCACPC,SAAY,MAEd,CACED,IAAO,gCACPC,SAAY,MAEd,CACED,IAAO,oCACPC,SAAY,MAEd,CACED,IAAO,mCACPC,SAAY,MAEd,CACED,IAAO,2BACPC,SAAY,MAEd,CACED,IAAO,4BACPC,SAAY,MAEd,CACED,IAAO,2BACPC,SAAY,MAEd,CACED,IAAO,8BACPC,SAAY,MAEd,CACED,IAAO,+BACPC,SAAY,MAEd,CACED,IAAO,oDACPC,SAAY,MAEd,CACED,IAAO,+BACPC,SAAY,MAEd,CACED,IAAO,qCACPC,SAAY,MAEd,CACED,IAAO,kCACPC,SAAY,MAEd,CACED,IAAO,0CACPC,SAAY,MAEd,CACED,IAAO,2CACPC,SAAY,MAEd,CACED,IAAO,mCACPC,SAAY,MAEd,CACED,IAAO,qCACPC,SAAY,MAEd,CACED,IAAO,2CACPC,SAAY,MAEd,CACED,IAAO,oCACPC,SAAY,MAEd,CACED,IAAO,0CACPC,SAAY,MAEd,CACED,IAAO,qCACPC,SAAY,MAEd,CACED,IAAO,2CACPC,SAAY,MAEd,CACED,IAAO,sCACPC,SAAY,MAEd,CACED,IAAO,4CACPC,SAAY,MAEd,CACED,IAAO,uCACPC,SAAY,MAEd,CACED,IAAO,6CACPC,SAAY,MAEd,CACED,IAAO,oCACPC,SAAY,MAEd,CACED,IAAO,0CACPC,SAAY,MAEd,CACED,IAAO,2BACPC,SAAY,MAEd,CACED,IAAO,4BACPC,SAAY,MAEd,CACED,IAAO,oCACPC,SAAY,MAEd,CACED,IAAO,0BACPC,SAAY,MAEd,CACED,IAAO,+BACPC,SAAY,MAEd,CACED,IAAO,iCACPC,SAAY,MAEd,CACED,IAAO,6CACPC,SAAY,MAEd,CACED,IAAO,cACPC,SAAY,oCAEd,CACED,IAAO,kCACPC,SAAY,oCAEd,CACED,IAAO,aACPC,SAAY,oCAEd,CACED,IAAO,gBACPC,SAAY,oCAEd,CACED,IAAO,aACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,qCAEb,CAAE,GACLC,EAAAA,wBAC6BC,EAAAC,cAAC,IAAIC,EAA+BC,gBAACC,0BAA2C,eAAgB,CAC3HC,UAAW,CAAC"}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "0.1.
|
|
6
|
+
"version": "0.1.32-b",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"dev": "vite",
|
|
9
9
|
"build": "vite build",
|
|
@@ -25,11 +25,11 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@mdi/font": "^7.3.67",
|
|
27
27
|
"@tonaljs/tonal": "^3.6.0",
|
|
28
|
-
"@vue-skuilder/common": "0.1.
|
|
29
|
-
"@vue-skuilder/common-ui": "0.1.
|
|
30
|
-
"@vue-skuilder/courseware": "0.1.
|
|
31
|
-
"@vue-skuilder/db": "0.1.
|
|
32
|
-
"@vue-skuilder/edit-ui": "0.1.
|
|
28
|
+
"@vue-skuilder/common": "0.1.32-b",
|
|
29
|
+
"@vue-skuilder/common-ui": "0.1.32-b",
|
|
30
|
+
"@vue-skuilder/courseware": "0.1.32-b",
|
|
31
|
+
"@vue-skuilder/db": "0.1.32-b",
|
|
32
|
+
"@vue-skuilder/edit-ui": "0.1.32-b",
|
|
33
33
|
"@vue/compiler-sfc": "^3.5.13",
|
|
34
34
|
"abcjs": "^6.2.2",
|
|
35
35
|
"canvas-confetti": "^1.9.3",
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{d as e,s,m as t,g as a,_ as l,r as o,f as n,h as i,o as r,b as d,a as c,e as u,w as m,t as g,c as C,F as h,n as f}from"./index-PISHyq1I.js";const v=e({name:"ClassroomCtrlPanel",props:{classroomId:{type:String,required:!0}},data:()=>({classroomCfg:null,classroomDB:null,assignedContent:[],nameRules:[e=>!(e.length>30)||"Course name must be 30 characters or less"],updatePending:!0,addingContent:!1,availableCourses:[],selectedCourse:"",availableTags:[],selectedTags:[]}),computed:{_assignedCourses(){return this.assignedContent.filter((e=>"course"===e.type))},_assignedTags(){return this.assignedContent.filter((e=>"tag"===e.type))}},watch:{async selectedCourse(){if(this.selectedCourse){const e=a().getCourseDB(this.selectedCourse),s=await e.getCourseTagStubs();this.availableTags=s.rows.map((e=>e.doc))}else this.availableTags=[]}},async created(){try{this.classroomDB=await a().getClassroomDB(this.classroomId,"teacher"),this.assignedContent=await this.classroomDB.getAssignedContent(),this.classroomCfg=this.classroomDB.getConfig(),console.log(`[ClassroomCtrlPanel] Route loaded w/ (prop) _id: ${this.classroomId}`),console.log(`[ClassroomCtrlPanel] Config: ${JSON.stringify(this.classroomCfg)}`),this.availableCourses=await a().getCoursesDB().getCourseList(),this.updatePending=!1}catch(e){console.error("[ClassroomCtrlPanel] Error initializing:",e)}},methods:{async assignContent(){if(!this.classroomDB)return;const e=await s();0===this.selectedTags.length?await(this.classroomDB.assignContent?.({assignedOn:t(),activeOn:t(),type:"course",courseID:this.selectedCourse,assignedBy:e.getUsername()})):await Promise.all(this.selectedTags.map((s=>this.classroomDB.assignContent?.({assignedOn:t(),activeOn:t(),type:"tag",courseID:this.selectedCourse,tagID:s,assignedBy:e.getUsername()})))),this.assignedContent=await this.classroomDB.getAssignedContent(),this.addingContent=!1,this.selectedCourse="",this.selectedTags=[],this.availableTags=[]},async removeContent(e){this.classroomDB&&this.classroomDB.removeContent&&(await this.classroomDB.removeContent(e),this.assignedContent=await this.classroomDB.getAssignedContent())},async submit(){this.updatePending=!0}}}),p={key:0},y=["onClick"],D=["onClick"];const _=l(v,[["render",function(e,s,t,a,l,v){const _=o("router-link"),b=o("v-btn"),k=o("v-checkbox"),B=o("v-col"),T=o("v-icon"),w=o("v-fade-transition"),A=o("v-toolbar-title"),I=o("v-spacer"),P=o("v-toolbar"),V=o("v-select"),S=o("v-card-text"),x=o("v-card-actions"),O=o("v-card"),U=o("v-row");return e.updatePending?i("",!0):(r(),n("div",p,[d("h1",null,[c(_,{to:"/classrooms"},{default:m((()=>s[5]||(s[5]=[u("My Classrooms")]))),_:1}),u(" / "+g(e.classroomCfg.name),1)]),d("h3",null,[u(" Join code: "+g(e.classroomCfg.joinCode)+" ",1),c(_,{to:`/classrooms/${e.classroomId}/code`},{default:m((()=>[c(b,{size:"x-small",icon:"mdi-fullscreen",color:"accent",alt:"Make Fullscreen"})])),_:1},8,["to"])]),c(U,null,{default:m((()=>[c(B,{cols:"12",sm:"6",md:"4"},{default:m((()=>[c(k,{modelValue:e.classroomCfg.peerAssist,"onUpdate:modelValue":s[0]||(s[0]=s=>e.classroomCfg.peerAssist=s),label:"Allow peer instruction"},null,8,["modelValue"])])),_:1}),e.classroomDB?(r(),C(B,{key:0,cols:"12"},{default:m((()=>[s[10]||(s[10]=d("h2",null,"Assigned Content:",-1)),s[11]||(s[11]=d("h3",null,"Quilts:",-1)),s[12]||(s[12]=d("ul",null,null,-1)),d("ul",null,[(r(!0),n(h,null,f(e._assignedCourses,(s=>(r(),n("li",{key:s.courseID},[u(g(s.courseID)+" ",1),d("a",{onClick:t=>e.removeContent(s)},"Remove",8,y)])))),128))]),s[13]||(s[13]=d("h3",null,"Tags:",-1)),d("ul",null,[(r(!0),n(h,null,f(e._assignedTags,((s,t)=>(r(),n("li",{key:t},[u(g(s.courseID)+" - "+g(s.tagID)+" ",1),d("a",{onClick:t=>e.removeContent(s)},"Remove",8,D)])))),128))]),c(w,null,{default:m((()=>[e.addingContent?i("",!0):(r(),C(b,{key:0,color:"primary",onClick:s[1]||(s[1]=s=>e.addingContent=!0)},{default:m((()=>[s[7]||(s[7]=u(" Assign New Content ")),c(T,{end:""},{default:m((()=>s[6]||(s[6]=[u("mdi-plus")]))),_:1})])),_:1}))])),_:1}),e.addingContent?(r(),C(O,{key:0},{default:m((()=>[c(P,null,{default:m((()=>[c(A,null,{default:m((()=>s[8]||(s[8]=[u("Add Content")]))),_:1}),c(I),c(b,{icon:"mdi-close",color:"error",onClick:s[2]||(s[2]=s=>e.addingContent=!1)})])),_:1}),c(S,null,{default:m((()=>[c(V,{modelValue:e.selectedCourse,"onUpdate:modelValue":s[3]||(s[3]=s=>e.selectedCourse=s),label:"Select Quilt",items:e.availableCourses,"item-title":"name","item-value":"_id",title:"Select Quilt"},null,8,["modelValue","items"]),c(V,{modelValue:e.selectedTags,"onUpdate:modelValue":s[4]||(s[4]=s=>e.selectedTags=s),label:"Select Tags",items:e.availableTags,"item-title":"name","item-value":"name",multiple:"",chips:"",hint:"","persistent-hint":""},null,8,["modelValue","items"])])),_:1}),c(x,null,{default:m((()=>[""!==e.selectedCourse?(r(),C(b,{key:0,color:"primary",onClick:e.assignContent},{default:m((()=>[u(g(0==e.selectedTags.length?"Add Entire Quilt":"Add Tags")+" ",1),c(T,{end:""},{default:m((()=>s[9]||(s[9]=[u("mdi-plus")]))),_:1})])),_:1},8,["onClick"])):i("",!0)])),_:1})])),_:1})):i("",!0)])),_:1})):i("",!0)])),_:1})]))}]]);export{_ as default};
|
|
2
|
-
//# sourceMappingURL=ClassroomCtrlPanel-BZ2Jso_N.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{d as e,_ as t,r as n,c as r,h as o,o as s,w as a,a as i,e as l,b as c,f as u,t as d,F as f,n as h,u as p,y as m,Q as g,g as y,s as b,v as w,p as S}from"./index-PISHyq1I.js";import{N as v}from"./NewCourseDialog-gxkU-IdZ.js";import{MidiConfig as E,allCourseWare as x}from"./index-CSo_psn8.js";import"./mousetrap-DZcUUEaw.js";function O(e,t){return function(){return e.apply(t,arguments)}}const{toString:R}=Object.prototype,{getPrototypeOf:C}=Object,{iterator:_,toStringTag:A}=Symbol,T=(e=>t=>{const n=R.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),k=e=>(e=e.toLowerCase(),t=>T(t)===e),D=e=>t=>typeof t===e,{isArray:U}=Array,j=D("undefined");function N(e){return null!==e&&!j(e)&&null!==e.constructor&&!j(e.constructor)&&P(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const F=k("ArrayBuffer");const L=D("string"),P=D("function"),I=D("number"),B=e=>null!==e&&"object"==typeof e,q=e=>{if("object"!==T(e))return!1;const t=C(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||A in e||_ in e)},M=k("Date"),z=k("File"),$=k("Blob"),W=k("FileList"),V=k("URLSearchParams"),[H,J,K,G]=["ReadableStream","Request","Response","Headers"].map(k);function Q(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),U(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(N(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),s=o.length;let a;for(r=0;r<s;r++)a=o[r],t.call(null,e[a],a,e)}}function X(e,t){if(N(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const Z="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:window,Y=e=>!j(e)&&e!==Z;const ee=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&C(Uint8Array)),te=k("HTMLFormElement"),ne=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),re=k("RegExp"),oe=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Q(n,((n,o)=>{let s;!1!==(s=t(n,o,e))&&(r[o]=s||n)})),Object.defineProperties(e,r)};const se=k("AsyncFunction"),ae=(ie="function"==typeof setImmediate,le=P(Z.postMessage),ie?setImmediate:le?(ce=`axios@${Math.random()}`,ue=[],Z.addEventListener("message",(({source:e,data:t})=>{e===Z&&t===ce&&ue.length&&ue.shift()()}),!1),e=>{ue.push(e),Z.postMessage(ce,"*")}):e=>setTimeout(e));var ie,le,ce,ue;const de="undefined"!=typeof queueMicrotask?queueMicrotask.bind(Z):"undefined"!=typeof process&&process.nextTick||ae,fe={isArray:U,isArrayBuffer:F,isBuffer:N,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||P(e.append)&&("formdata"===(t=T(e))||"object"===t&&P(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&F(e.buffer),t},isString:L,isNumber:I,isBoolean:e=>!0===e||!1===e,isObject:B,isPlainObject:q,isEmptyObject:e=>{if(!B(e)||N(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(t){return!1}},isReadableStream:H,isRequest:J,isResponse:K,isHeaders:G,isUndefined:j,isDate:M,isFile:z,isBlob:$,isRegExp:re,isFunction:P,isStream:e=>B(e)&&P(e.pipe),isURLSearchParams:V,isTypedArray:ee,isFileList:W,forEach:Q,merge:function e(){const{caseless:t,skipUndefined:n}=Y(this)&&this||{},r={},o=(o,s)=>{const a=t&&X(r,s)||s;q(r[a])&&q(o)?r[a]=e(r[a],o):q(o)?r[a]=e({},o):U(o)?r[a]=o.slice():n&&j(o)||(r[a]=o)};for(let s=0,a=arguments.length;s<a;s++)arguments[s]&&Q(arguments[s],o);return r},extend:(e,t,n,{allOwnKeys:r}={})=>(Q(t,((t,r)=>{n&&P(t)?e[r]=O(t,n):e[r]=t}),{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,s,a;const i={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)a=o[s],r&&!r(a,e,t)||i[a]||(t[a]=e[a],i[a]=!0);e=!1!==n&&C(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:T,kindOfTest:k,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(U(e))return e;let t=e.length;if(!I(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[_]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:te,hasOwnProperty:ne,hasOwnProp:ne,reduceDescriptors:oe,freezeMethods:e=>{oe(e,((t,n)=>{if(P(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];P(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return U(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:X,global:Z,isContextDefined:Y,isSpecCompliantForm:function(e){return!!(e&&P(e.append)&&"FormData"===e[A]&&e[_])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(B(e)){if(t.indexOf(e)>=0)return;if(N(e))return e;if(!("toJSON"in e)){t[r]=e;const o=U(e)?[]:{};return Q(e,((e,t)=>{const s=n(e,r+1);!j(s)&&(o[t]=s)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:se,isThenable:e=>e&&(B(e)||P(e))&&P(e.then)&&P(e.catch),setImmediate:ae,asap:de,isIterable:e=>null!=e&&P(e[_])};function he(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}fe.inherits(he,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:fe.toJSONObject(this.config),code:this.code,status:this.status}}});const pe=he.prototype,me={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{me[e]={value:e}})),Object.defineProperties(he,me),Object.defineProperty(pe,"isAxiosError",{value:!0}),he.from=(e,t,n,r,o,s)=>{const a=Object.create(pe);fe.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e));const i=e&&e.message?e.message:"Error",l=null==t&&e?e.code:t;return he.call(a,i,l,n,r,o),e&&null==a.cause&&Object.defineProperty(a,"cause",{value:e,configurable:!0}),a.name=e&&e.name||"Error",s&&Object.assign(a,s),a};function ge(e){return fe.isPlainObject(e)||fe.isArray(e)}function ye(e){return fe.endsWith(e,"[]")?e.slice(0,-2):e}function be(e,t,n){return e?e.concat(t).map((function(e,t){return e=ye(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const we=fe.toFlatObject(fe,{},null,(function(e){return/^is[A-Z]/.test(e)}));function Se(e,t,n){if(!fe.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=fe.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!fe.isUndefined(t[e])}))).metaTokens,o=n.visitor||c,s=n.dots,a=n.indexes,i=(n.Blob||"undefined"!=typeof Blob&&Blob)&&fe.isSpecCompliantForm(t);if(!fe.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(fe.isDate(e))return e.toISOString();if(fe.isBoolean(e))return e.toString();if(!i&&fe.isBlob(e))throw new he("Blob is not supported. Use a Buffer instead.");return fe.isArrayBuffer(e)||fe.isTypedArray(e)?i&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,o){let i=e;if(e&&!o&&"object"==typeof e)if(fe.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(fe.isArray(e)&&function(e){return fe.isArray(e)&&!e.some(ge)}(e)||(fe.isFileList(e)||fe.endsWith(n,"[]"))&&(i=fe.toArray(e)))return n=ye(n),i.forEach((function(e,r){!fe.isUndefined(e)&&null!==e&&t.append(!0===a?be([n],r,s):null===a?n:n+"[]",l(e))})),!1;return!!ge(e)||(t.append(be(o,n,s),l(e)),!1)}const u=[],d=Object.assign(we,{defaultVisitor:c,convertValue:l,isVisitable:ge});if(!fe.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!fe.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),fe.forEach(n,(function(n,s){!0===(!(fe.isUndefined(n)||null===n)&&o.call(t,n,fe.isString(s)?s.trim():s,r,d))&&e(n,r?r.concat(s):[s])})),u.pop()}}(e),t}function ve(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Ee(e,t){this._pairs=[],e&&Se(e,this,t)}const xe=Ee.prototype;function Oe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Re(e,t,n){if(!t)return e;const r=n&&n.encode||Oe;fe.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let s;if(s=o?o(t,n):fe.isURLSearchParams(t)?t.toString():new Ee(t,n).toString(r),s){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+s}return e}xe.append=function(e,t){this._pairs.push([e,t])},xe.toString=function(e){const t=e?function(t){return e.call(this,t,ve)}:ve;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};class InterceptorManager{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){fe.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}const Ce={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},_e={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Ee,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},Ae="undefined"!=typeof window&&"undefined"!=typeof document,Te="object"==typeof navigator&&navigator||void 0,ke=Ae&&(!Te||["ReactNative","NativeScript","NS"].indexOf(Te.product)<0),De="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Ue=Ae&&window.location.href||"http://localhost",je={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ae,hasStandardBrowserEnv:ke,hasStandardBrowserWebWorkerEnv:De,navigator:Te,origin:Ue},Symbol.toStringTag,{value:"Module"})),..._e};function Ne(e){function t(e,n,r,o){let s=e[o++];if("__proto__"===s)return!0;const a=Number.isFinite(+s),i=o>=e.length;if(s=!s&&fe.isArray(r)?r.length:s,i)return fe.hasOwnProp(r,s)?r[s]=[r[s],n]:r[s]=n,!a;r[s]&&fe.isObject(r[s])||(r[s]=[]);return t(e,n,r[s],o)&&fe.isArray(r[s])&&(r[s]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let s;for(r=0;r<o;r++)s=n[r],t[s]=e[s];return t}(r[s])),!a}if(fe.isFormData(e)&&fe.isFunction(e.entries)){const n={};return fe.forEachEntry(e,((e,r)=>{t(function(e){return fe.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null}const Fe={transitional:Ce,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=fe.isObject(e);o&&fe.isHTMLForm(e)&&(e=new FormData(e));if(fe.isFormData(e))return r?JSON.stringify(Ne(e)):e;if(fe.isArrayBuffer(e)||fe.isBuffer(e)||fe.isStream(e)||fe.isFile(e)||fe.isBlob(e)||fe.isReadableStream(e))return e;if(fe.isArrayBufferView(e))return e.buffer;if(fe.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Se(e,new je.classes.URLSearchParams,{visitor:function(e,t,n,r){return je.isNode&&fe.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((s=fe.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Se(s?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(fe.isString(e))try{return(t||JSON.parse)(e),fe.trim(e)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Fe.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(fe.isResponse(e)||fe.isReadableStream(e))return e;if(e&&fe.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e,this.parseReviver)}catch(o){if(n){if("SyntaxError"===o.name)throw he.from(o,he.ERR_BAD_RESPONSE,this,null,this.response);throw o}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:je.classes.FormData,Blob:je.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};fe.forEach(["delete","get","head","post","put","patch"],(e=>{Fe.headers[e]={}}));const Le=fe.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Pe=Symbol("internals");function Ie(e){return e&&String(e).trim().toLowerCase()}function Be(e){return!1===e||null==e?e:fe.isArray(e)?e.map(Be):String(e)}function qe(e,t,n,r,o){return fe.isFunction(r)?r.call(this,t,n):(o&&(t=n),fe.isString(t)?fe.isString(r)?-1!==t.indexOf(r):fe.isRegExp(r)?r.test(t):void 0:void 0)}let Me=class AxiosHeaders{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=Ie(t);if(!o)throw new Error("header name must be a non-empty string");const s=fe.findKey(r,o);(!s||void 0===r[s]||!0===n||void 0===n&&!1!==r[s])&&(r[s||t]=Be(e))}const s=(e,t)=>fe.forEach(e,((e,n)=>o(e,n,t)));if(fe.isPlainObject(e)||e instanceof this.constructor)s(e,t);else if(fe.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))s((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&Le[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t);else if(fe.isObject(e)&&fe.isIterable(e)){let n,r,o={};for(const t of e){if(!fe.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[r=t[0]]=(n=o[r])?fe.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}s(o,t)}else null!=e&&o(t,e,n);return this}get(e,t){if(e=Ie(e)){const n=fe.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(fe.isFunction(t))return t.call(this,e,n);if(fe.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Ie(e)){const n=fe.findKey(this,e);return!(!n||void 0===this[n]||t&&!qe(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=Ie(e)){const o=fe.findKey(n,e);!o||t&&!qe(0,n[o],o,t)||(delete n[o],r=!0)}}return fe.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!qe(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return fe.forEach(this,((r,o)=>{const s=fe.findKey(n,o);if(s)return t[s]=Be(r),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();a!==o&&delete t[o],t[a]=Be(r),n[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return fe.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&fe.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[Pe]=this[Pe]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Ie(e);t[r]||(!function(e,t){const n=fe.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return fe.isArray(e)?e.forEach(r):r(e),this}};function ze(e,t){const n=this||Fe,r=t||n,o=Me.from(r.headers);let s=r.data;return fe.forEach(e,(function(e){s=e.call(n,s,o.normalize(),t?t.status:void 0)})),o.normalize(),s}function $e(e){return!(!e||!e.__CANCEL__)}function We(e,t,n){he.call(this,null==e?"canceled":e,he.ERR_CANCELED,t,n),this.name="CanceledError"}function Ve(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new he("Request failed with status code "+n.status,[he.ERR_BAD_REQUEST,he.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}Me.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),fe.reduceDescriptors(Me.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),fe.freezeMethods(Me),fe.inherits(We,he,{__CANCEL__:!0});const He=(e,t,n=3)=>{let r=0;const o=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,s=0,a=0;return t=void 0!==t?t:1e3,function(i){const l=Date.now(),c=r[a];o||(o=l),n[s]=i,r[s]=l;let u=a,d=0;for(;u!==s;)d+=n[u++],u%=e;if(s=(s+1)%e,s===a&&(a=(a+1)%e),l-o<t)return;const f=c&&l-c;return f?Math.round(1e3*d/f):void 0}}(50,250);return function(e,t){let n,r,o=0,s=1e3/t;const a=(t,s=Date.now())=>{o=s,n=null,r&&(clearTimeout(r),r=null),e(...t)};return[(...e)=>{const t=Date.now(),i=t-o;i>=s?a(e,t):(n=e,r||(r=setTimeout((()=>{r=null,a(n)}),s-i)))},()=>n&&a(n)]}((n=>{const s=n.loaded,a=n.lengthComputable?n.total:void 0,i=s-r,l=o(i);r=s;e({loaded:s,total:a,progress:a?s/a:void 0,bytes:i,rate:l||void 0,estimated:l&&a&&s<=a?(a-s)/l:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})}),n)},Je=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Ke=e=>(...t)=>fe.asap((()=>e(...t))),Ge=je.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,je.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(je.origin),je.navigator&&/(msie|trident)/i.test(je.navigator.userAgent)):()=>!0,Qe=je.hasStandardBrowserEnv?{write(e,t,n,r,o,s,a){if("undefined"==typeof document)return;const i=[`${e}=${encodeURIComponent(t)}`];fe.isNumber(n)&&i.push(`expires=${new Date(n).toUTCString()}`),fe.isString(r)&&i.push(`path=${r}`),fe.isString(o)&&i.push(`domain=${o}`),!0===s&&i.push("secure"),fe.isString(a)&&i.push(`SameSite=${a}`),document.cookie=i.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function Xe(e,t,n){let r=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(r||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Ze=e=>e instanceof Me?{...e}:e;function Ye(e,t){t=t||{};const n={};function r(e,t,n,r){return fe.isPlainObject(e)&&fe.isPlainObject(t)?fe.merge.call({caseless:r},e,t):fe.isPlainObject(t)?fe.merge({},t):fe.isArray(t)?t.slice():t}function o(e,t,n,o){return fe.isUndefined(t)?fe.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function s(e,t){if(!fe.isUndefined(t))return r(void 0,t)}function a(e,t){return fe.isUndefined(t)?fe.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function i(n,o,s){return s in t?r(n,o):s in e?r(void 0,n):void 0}const l={url:s,method:s,data:s,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:i,headers:(e,t,n)=>o(Ze(e),Ze(t),0,!0)};return fe.forEach(Object.keys({...e,...t}),(function(r){const s=l[r]||o,a=s(e[r],t[r],r);fe.isUndefined(a)&&s!==i||(n[r]=a)})),n}const et=e=>{const t=Ye({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:s,headers:a,auth:i}=t;if(t.headers=a=Me.from(a),t.url=Re(Xe(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),i&&a.set("Authorization","Basic "+btoa((i.username||"")+":"+(i.password?unescape(encodeURIComponent(i.password)):""))),fe.isFormData(n))if(je.hasStandardBrowserEnv||je.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(fe.isFunction(n.getHeaders)){const e=n.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach((([e,n])=>{t.includes(e.toLowerCase())&&a.set(e,n)}))}if(je.hasStandardBrowserEnv&&(r&&fe.isFunction(r)&&(r=r(t)),r||!1!==r&&Ge(t.url))){const e=o&&s&&Qe.read(s);e&&a.set(o,e)}return t},tt="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=et(e);let o=r.data;const s=Me.from(r.headers).normalize();let a,i,l,c,u,{responseType:d,onUploadProgress:f,onDownloadProgress:h}=r;function p(){c&&c(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let m=new XMLHttpRequest;function g(){if(!m)return;const r=Me.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());Ve((function(e){t(e),p()}),(function(e){n(e),p()}),{data:d&&"text"!==d&&"json"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(n(new he("Request aborted",he.ECONNABORTED,e,m)),m=null)},m.onerror=function(t){const r=new he(t&&t.message?t.message:"Network Error",he.ERR_NETWORK,e,m);r.event=t||null,n(r),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||Ce;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new he(t,o.clarifyTimeoutError?he.ETIMEDOUT:he.ECONNABORTED,e,m)),m=null},void 0===o&&s.setContentType(null),"setRequestHeader"in m&&fe.forEach(s.toJSON(),(function(e,t){m.setRequestHeader(t,e)})),fe.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),d&&"json"!==d&&(m.responseType=r.responseType),h&&([l,u]=He(h,!0),m.addEventListener("progress",l)),f&&m.upload&&([i,c]=He(f),m.upload.addEventListener("progress",i),m.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(a=t=>{m&&(n(!t||t.type?new We(null,e,m):t),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const y=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);y&&-1===je.protocols.indexOf(y)?n(new he("Unsupported protocol "+y+":",he.ERR_BAD_REQUEST,e)):m.send(o||null)}))},nt=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const o=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof he?t:new We(t instanceof Error?t.message:t))}};let s=t&&setTimeout((()=>{s=null,o(new he(`timeout ${t} of ms exceeded`,he.ETIMEDOUT))}),t);const a=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)})),e=null)};e.forEach((e=>e.addEventListener("abort",o)));const{signal:i}=r;return i.unsubscribe=()=>fe.asap(a),i}},rt=function*(e,t){let n=e.byteLength;if(n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},ot=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},st=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of ot(e))yield*rt(n,t)}(e,t);let s,a=0,i=e=>{s||(s=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return i(),void e.close();let s=r.byteLength;if(n){let e=a+=s;n(e)}e.enqueue(new Uint8Array(r))}catch(t){throw i(t),t}},cancel:e=>(i(e),o.return())},{highWaterMark:2})},{isFunction:at}=fe,it=(({Request:e,Response:t})=>({Request:e,Response:t}))(fe.global),{ReadableStream:lt,TextEncoder:ct}=fe.global,ut=(e,...t)=>{try{return!!e(...t)}catch(n){return!1}},dt=e=>{e=fe.merge.call({skipUndefined:!0},it,e);const{fetch:t,Request:n,Response:r}=e,o=t?at(t):"function"==typeof fetch,s=at(n),a=at(r);if(!o)return!1;const i=o&&at(lt),l=o&&("function"==typeof ct?(e=>t=>e.encode(t))(new ct):async e=>new Uint8Array(await new n(e).arrayBuffer())),c=s&&i&&ut((()=>{let e=!1;const t=new n(je.origin,{body:new lt,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),u=a&&i&&ut((()=>fe.isReadableStream(new r("").body))),d={stream:u&&(e=>e.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!d[e]&&(d[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new he(`Response type '${e}' is not supported`,he.ERR_NOT_SUPPORT,n)})}));const f=async(e,t)=>{const r=fe.toFiniteNumber(e.getContentLength());return null==r?(async e=>{if(null==e)return 0;if(fe.isBlob(e))return e.size;if(fe.isSpecCompliantForm(e)){const t=new n(je.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return fe.isArrayBufferView(e)||fe.isArrayBuffer(e)?e.byteLength:(fe.isURLSearchParams(e)&&(e+=""),fe.isString(e)?(await l(e)).byteLength:void 0)})(t):r};return async e=>{let{url:o,method:a,data:i,signal:l,cancelToken:h,timeout:p,onDownloadProgress:m,onUploadProgress:g,responseType:y,headers:b,withCredentials:w="same-origin",fetchOptions:S}=et(e),v=t||fetch;y=y?(y+"").toLowerCase():"text";let E=nt([l,h&&h.toAbortSignal()],p),x=null;const O=E&&E.unsubscribe&&(()=>{E.unsubscribe()});let R;try{if(g&&c&&"get"!==a&&"head"!==a&&0!==(R=await f(b,i))){let e,t=new n(o,{method:"POST",body:i,duplex:"half"});if(fe.isFormData(i)&&(e=t.headers.get("content-type"))&&b.setContentType(e),t.body){const[e,n]=Je(R,He(Ke(g)));i=st(t.body,65536,e,n)}}fe.isString(w)||(w=w?"include":"omit");const t=s&&"credentials"in n.prototype,l={...S,signal:E,method:a.toUpperCase(),headers:b.normalize().toJSON(),body:i,duplex:"half",credentials:t?w:void 0};x=s&&new n(o,l);let h=await(s?v(x,S):v(o,l));const p=u&&("stream"===y||"response"===y);if(u&&(m||p&&O)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=h[t]}));const t=fe.toFiniteNumber(h.headers.get("content-length")),[n,o]=m&&Je(t,He(Ke(m),!0))||[];h=new r(st(h.body,65536,n,(()=>{o&&o(),O&&O()})),e)}y=y||"text";let C=await d[fe.findKey(d,y)||"text"](h,e);return!p&&O&&O(),await new Promise(((t,n)=>{Ve(t,n,{data:C,headers:Me.from(h.headers),status:h.status,statusText:h.statusText,config:e,request:x})}))}catch(C){if(O&&O(),C&&"TypeError"===C.name&&/Load failed|fetch/i.test(C.message))throw Object.assign(new he("Network Error",he.ERR_NETWORK,e,x),{cause:C.cause||C});throw he.from(C,C&&C.code,e,x)}}},ft=new Map,ht=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:o}=t,s=[r,o,n];let a,i,l=s.length,c=ft;for(;l--;)a=s[l],i=c.get(a),void 0===i&&c.set(a,i=l?new Map:dt(t)),c=i;return i};ht();const pt={http:null,xhr:tt,fetch:{get:ht}};fe.forEach(pt,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(n){}Object.defineProperty(e,"adapterName",{value:t})}}));const mt=e=>`- ${e}`,gt=e=>fe.isFunction(e)||null===e||!1===e;const yt={getAdapter:function(e,t){e=fe.isArray(e)?e:[e];const{length:n}=e;let r,o;const s={};for(let a=0;a<n;a++){let n;if(r=e[a],o=r,!gt(r)&&(o=pt[(n=String(r)).toLowerCase()],void 0===o))throw new he(`Unknown adapter '${n}'`);if(o&&(fe.isFunction(o)||(o=o.get(t))))break;s[n||"#"+a]=o}if(!o){const e=Object.entries(s).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new he("There is no suitable adapter to dispatch the request "+(n?e.length>1?"since :\n"+e.map(mt).join("\n"):" "+mt(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return o},adapters:pt};function bt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new We(null,e)}function wt(e){bt(e),e.headers=Me.from(e.headers),e.data=ze.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return yt.getAdapter(e.adapter||Fe.adapter,e)(e).then((function(t){return bt(e),t.data=ze.call(e,e.transformResponse,t),t.headers=Me.from(t.headers),t}),(function(t){return $e(t)||(bt(e),t&&t.response&&(t.response.data=ze.call(e,e.transformResponse,t.response),t.response.headers=Me.from(t.response.headers))),Promise.reject(t)}))}const St="1.13.2",vt={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{vt[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const Et={};vt.transitional=function(e,t,n){function r(e,t){return"[Axios v"+St+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,s)=>{if(!1===e)throw new he(r(o," has been removed"+(t?" in "+t:"")),he.ERR_DEPRECATED);return t&&!Et[o]&&(Et[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,s)}},vt.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};const xt={assertOptions:function(e,t,n){if("object"!=typeof e)throw new he("options must be an object",he.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const s=r[o],a=t[s];if(a){const t=e[s],n=void 0===t||a(t,s,e);if(!0!==n)throw new he("option "+s+" must be "+n,he.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new he("Unknown option "+s,he.ERR_BAD_OPTION)}},validators:vt},Ot=xt.validators;let Rt=class Axios{constructor(e){this.defaults=e||{},this.interceptors={request:new InterceptorManager,response:new InterceptorManager}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";try{n.stack?t&&!String(n.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+t):n.stack=t}catch(r){}}throw n}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Ye(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&xt.assertOptions(n,{silentJSONParsing:Ot.transitional(Ot.boolean),forcedJSONParsing:Ot.transitional(Ot.boolean),clarifyTimeoutError:Ot.transitional(Ot.boolean)},!1),null!=r&&(fe.isFunction(r)?t.paramsSerializer={serialize:r}:xt.assertOptions(r,{encode:Ot.function,serialize:Ot.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),xt.assertOptions(t,{baseUrl:Ot.spelling("baseURL"),withXsrfToken:Ot.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=o&&fe.merge(o.common,o[t.method]);o&&fe.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=Me.concat(s,o);const a=[];let i=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(i=i&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let u,d=0;if(!i){const e=[wt.bind(this),void 0];for(e.unshift(...a),e.push(...l),u=e.length,c=Promise.resolve(t);d<u;)c=c.then(e[d++],e[d++]);return c}u=a.length;let f=t;for(;d<u;){const e=a[d++],t=a[d++];try{f=e(f)}catch(h){t.call(this,h);break}}try{c=wt.call(this,f)}catch(h){return Promise.reject(h)}for(d=0,u=l.length;d<u;)c=c.then(l[d++],l[d++]);return c}getUri(e){return Re(Xe((e=Ye(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};fe.forEach(["delete","get","head","options"],(function(e){Rt.prototype[e]=function(t,n){return this.request(Ye(n||{},{method:e,url:t,data:(n||{}).data}))}})),fe.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(Ye(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Rt.prototype[e]=t(),Rt.prototype[e+"Form"]=t(!0)}));const Ct={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Ct).forEach((([e,t])=>{Ct[t]=e}));const _t=function e(t){const n=new Rt(t),r=O(Rt.prototype.request,n);return fe.extend(r,Rt.prototype,n,{allOwnKeys:!0}),fe.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Ye(t,n))},r}(Fe);_t.Axios=Rt,_t.CanceledError=We,_t.CancelToken=class CancelToken{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new We(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new CancelToken((function(t){e=t})),cancel:e}}},_t.isCancel=$e,_t.VERSION=St,_t.toFormData=Se,_t.AxiosError=he,_t.Cancel=_t.CanceledError,_t.all=function(e){return Promise.all(e)},_t.spread=function(e){return function(t){return e.apply(null,t)}},_t.isAxiosError=function(e){return fe.isObject(e)&&!0===e.isAxiosError},_t.mergeConfig=Ye,_t.AxiosHeaders=Me,_t.formToJSON=e=>Ne(fe.isHTMLForm(e)?new FormData(e):e),_t.getAdapter=yt.getAdapter,_t.HttpStatusCode=Ct,_t.default=_t;const{Axios:At,AxiosError:Tt,CanceledError:kt,isCancel:Dt,CancelToken:Ut,VERSION:jt,all:Nt,Cancel:Ft,isAxiosError:Lt,spread:Pt,toFormData:It,AxiosHeaders:Bt,HttpStatusCode:qt,formToJSON:Mt,getAdapter:zt,mergeConfig:$t}=_t,Wt=e({name:"OrchestrationDashboard",props:{courseId:{type:String,required:!0},isAdmin:{type:Boolean,default:!1}},data:()=>({loading:!1,updating:!1,error:null,weights:[],lastUpdate:null,detailsDialog:!1,selectedStrategy:null,selectedStrategyState:null,scatterData:null}),async created(){this.isAdmin&&await this.loadWeights()},methods:{async loadWeights(){this.loading=!0,this.error=null;try{const e=await _t.get(`/orchestration/${this.courseId}/weights`);this.weights=e.data.weights}catch(e){this.error=`Failed to load weights: ${e instanceof Error?e.message:String(e)}`}finally{this.loading=!1}},async triggerUpdate(){this.updating=!0,this.error=null;try{const e=await _t.post(`/orchestration/${this.courseId}/update`);this.lastUpdate=(new Date).toISOString(),await this.loadWeights();const{strategiesUpdated:t,outcomesProcessed:n}=e.data;alert(`Update complete!\n${t} strategies updated\n${n} outcomes processed`)}catch(e){const t=e&&"object"==typeof e&&"response"in e?e.response?.data?.error:e instanceof Error?e.message:String(e);this.error=`Failed to trigger update: ${t}`}finally{this.updating=!1}},async showStrategyDetails(e){this.selectedStrategy=this.weights.find((t=>t.strategyId===e))||null,this.selectedStrategyState=null,this.scatterData=null,this.detailsDialog=!0;try{const t=await _t.get(`/orchestration/${this.courseId}/strategy/${e}/history`);this.selectedStrategyState=t.data;const n=await _t.get(`/orchestration/${this.courseId}/strategy/${e}/scatter`);this.scatterData=n.data}catch(t){this.error=`Failed to load strategy details: ${t instanceof Error?t.message:String(t)}`}},getWeightColor:e=>e<.5?"red":e<.8?"orange":e<1.2?"green":e<1.5?"blue":"purple",getConfidenceColor:e=>e<.3?"red":e<.6?"orange":e<.8?"blue":"green",getGradientColor:e=>e?e>.01?"text-green":e<-.01?"text-red":"text-grey":""}}),Vt={class:"mb-4"},Ht={key:0,class:"ml-3 text-caption"},Jt={class:"text-caption"},Kt={key:1,class:"text-caption text-medium-emphasis"},Gt={key:1,class:"text-caption text-medium-emphasis"},Qt={key:0,class:"text-caption"},Xt={key:1,class:"text-caption text-medium-emphasis"},Zt={class:"text-h6"},Yt={class:"text-h6"},en={class:"text-h6"},tn={class:"text-body-2"},nn={class:"text-body-2"},rn={class:"text-body-2"},on={class:"text-caption"},sn={key:0,class:"mb-2"},an={class:"text-caption"},ln={class:"text-caption"},cn={key:1,class:"text-caption text-center mt-2"};const un=e({name:"CourseInformationWrapper",components:{CourseInformation:g,MidiConfig:E,UserTagPreferences:m,OrchestrationDashboard:t(Wt,[["render",function(e,t,m,g,y,b){const w=n("v-icon"),S=n("v-chip"),v=n("v-expansion-panel-title"),E=n("v-btn"),x=n("v-card-title"),O=n("v-progress-linear"),R=n("v-table"),C=n("v-card-text"),_=n("v-card"),A=n("v-col"),T=n("v-row"),k=n("v-spacer"),D=n("v-card-actions"),U=n("v-dialog"),j=n("v-alert"),N=n("v-expansion-panel-text"),F=n("v-expansion-panel"),L=n("v-expansion-panels");return e.isAdmin?(s(),r(L,{key:0,class:"my-3"},{default:a((()=>[i(F,null,{default:a((()=>[i(v,null,{default:a((()=>[i(w,{start:""},{default:a((()=>t[2]||(t[2]=[l("mdi-chart-line")]))),_:1}),t[4]||(t[4]=l(" Orchestration Dashboard ")),e.loading?(s(),r(S,{key:0,size:"small",class:"ml-2"},{default:a((()=>t[3]||(t[3]=[l("Loading...")]))),_:1})):o("",!0)])),_:1}),i(N,null,{default:a((()=>[i(_,{flat:""},{default:a((()=>[i(C,null,{default:a((()=>[c("div",Vt,[i(E,{color:"primary",loading:e.updating,disabled:e.updating,onClick:e.triggerUpdate},{default:a((()=>[i(w,{start:""},{default:a((()=>t[5]||(t[5]=[l("mdi-refresh")]))),_:1}),t[6]||(t[6]=l(" Trigger Period Update "))])),_:1},8,["loading","disabled","onClick"]),e.lastUpdate?(s(),u("span",Ht," Last update: "+d(new Date(e.lastUpdate).toLocaleString()),1)):o("",!0)]),e.weights.length>0?(s(),r(_,{key:0,class:"mb-4"},{default:a((()=>[i(x,null,{default:a((()=>t[7]||(t[7]=[l("Current Strategy Weights")]))),_:1}),i(C,null,{default:a((()=>[i(R,{density:"compact"},{default:a((()=>[t[10]||(t[10]=c("thead",null,[c("tr",null,[c("th",null,"Strategy"),c("th",null,"Implementation"),c("th",null,"Weight"),c("th",null,"Confidence"),c("th",null,"Samples"),c("th",null,"Static"),c("th",null,"Actions")])],-1)),c("tbody",null,[(s(!0),u(f,null,h(e.weights,(n=>(s(),u("tr",{key:n.strategyId},[c("td",null,d(n.strategyName),1),c("td",null,[c("code",Jt,d(n.implementingClass),1)]),c("td",null,[n.learnable?(s(),r(S,{key:0,size:"small",color:e.getWeightColor(n.learnable.weight)},{default:a((()=>[l(d(n.learnable.weight.toFixed(2)),1)])),_:2},1032,["color"])):(s(),u("span",Kt,"—"))]),c("td",null,[n.learnable?(s(),r(O,{key:0,"model-value":100*n.learnable.confidence,height:"8",color:e.getConfidenceColor(n.learnable.confidence)},null,8,["model-value","color"])):(s(),u("span",Gt,"—"))]),c("td",null,[n.learnable?(s(),u("span",Qt,d(n.learnable.sampleSize),1)):(s(),u("span",Xt,"—"))]),c("td",null,[n.staticWeight?(s(),r(w,{key:0,size:"small",color:"warning"},{default:a((()=>t[8]||(t[8]=[l(" mdi-lock ")]))),_:1})):o("",!0)]),c("td",null,[n.learnable?(s(),r(E,{key:0,size:"x-small",variant:"text",onClick:t=>e.showStrategyDetails(n.strategyId)},{default:a((()=>t[9]||(t[9]=[l(" Details ")]))),_:2},1032,["onClick"])):o("",!0)])])))),128))])])),_:1})])),_:1})])),_:1})):o("",!0),i(U,{modelValue:e.detailsDialog,"onUpdate:modelValue":t[1]||(t[1]=t=>e.detailsDialog=t),"max-width":"1000"},{default:a((()=>[e.selectedStrategy?(s(),r(_,{key:0},{default:a((()=>[i(x,null,{default:a((()=>[l(d(e.selectedStrategy.strategyName)+" ",1),i(S,{size:"small",class:"ml-2"},{default:a((()=>[l(d(e.selectedStrategy.strategyId),1)])),_:1})])),_:1}),i(C,null,{default:a((()=>[i(_,{class:"mb-4",variant:"outlined"},{default:a((()=>[i(x,{class:"text-subtitle-1"},{default:a((()=>t[11]||(t[11]=[l("Current State")]))),_:1}),i(C,null,{default:a((()=>[i(T,null,{default:a((()=>[i(A,{cols:"3"},{default:a((()=>[t[12]||(t[12]=c("div",{class:"text-caption text-medium-emphasis"},"Peak Weight",-1)),c("div",Zt,d(e.selectedStrategyState?.currentWeight?.weight.toFixed(3)||"—"),1)])),_:1}),i(A,{cols:"3"},{default:a((()=>[t[13]||(t[13]=c("div",{class:"text-caption text-medium-emphasis"},"Confidence",-1)),c("div",Yt,d((100*e.selectedStrategyState?.currentWeight?.confidence).toFixed(1)||"—")+"%",1)])),_:1}),i(A,{cols:"3"},{default:a((()=>[t[14]||(t[14]=c("div",{class:"text-caption text-medium-emphasis"},"Samples",-1)),c("div",en,d(e.selectedStrategyState?.currentWeight?.sampleSize||0),1)])),_:1}),i(A,{cols:"3"},{default:a((()=>[t[15]||(t[15]=c("div",{class:"text-caption text-medium-emphasis"},"Gradient",-1)),c("div",{class:p(["text-h6",e.getGradientColor(e.selectedStrategyState?.regression?.gradient)])},d(e.selectedStrategyState?.regression?.gradient.toFixed(4)||"—"),3)])),_:1})])),_:1}),e.selectedStrategyState?.regression?(s(),r(T,{key:0},{default:a((()=>[i(A,{cols:"4"},{default:a((()=>[t[16]||(t[16]=c("div",{class:"text-caption text-medium-emphasis"},"R²",-1)),c("div",tn,d(e.selectedStrategyState.regression.rSquared.toFixed(3)),1)])),_:1}),i(A,{cols:"4"},{default:a((()=>[t[17]||(t[17]=c("div",{class:"text-caption text-medium-emphasis"},"Intercept",-1)),c("div",nn,d(e.selectedStrategyState.regression.intercept.toFixed(3)),1)])),_:1}),i(A,{cols:"4"},{default:a((()=>[t[18]||(t[18]=c("div",{class:"text-caption text-medium-emphasis"},"Last Computed",-1)),c("div",rn,d(new Date(e.selectedStrategyState.regression.computedAt).toLocaleString()),1)])),_:1})])),_:1})):o("",!0)])),_:1})])),_:1}),e.selectedStrategyState?.history?.length?(s(),r(_,{key:0,class:"mb-4",variant:"outlined"},{default:a((()=>[i(x,{class:"text-subtitle-1"},{default:a((()=>t[19]||(t[19]=[l("Weight Trajectory (last 10)")]))),_:1}),i(C,null,{default:a((()=>[i(R,{density:"compact"},{default:a((()=>[t[20]||(t[20]=c("thead",null,[c("tr",null,[c("th",null,"Timestamp"),c("th",null,"Weight"),c("th",null,"Confidence"),c("th",null,"Gradient")])],-1)),c("tbody",null,[(s(!0),u(f,null,h(e.selectedStrategyState.history.slice(-10).reverse(),((t,n)=>(s(),u("tr",{key:n},[c("td",on,d(new Date(t.timestamp).toLocaleString()),1),c("td",null,[i(S,{size:"x-small",color:e.getWeightColor(t.weight)},{default:a((()=>[l(d(t.weight.toFixed(3)),1)])),_:2},1032,["color"])]),c("td",null,[i(O,{"model-value":100*t.confidence,height:"6",color:e.getConfidenceColor(t.confidence)},null,8,["model-value","color"])]),c("td",{class:p(e.getGradientColor(t.gradient))},d(t.gradient.toFixed(4)),3)])))),128))])])),_:1})])),_:1})])),_:1})):o("",!0),e.scatterData?.data?.length?(s(),r(_,{key:1,variant:"outlined"},{default:a((()=>[i(x,{class:"text-subtitle-1"},{default:a((()=>[l(" Recent Observations ("+d(e.scatterData.observations)+") ",1),i(S,{size:"small",class:"ml-2"},{default:a((()=>t[21]||(t[21]=[l("Last 7 days")]))),_:1})])),_:1}),i(C,null,{default:a((()=>[e.scatterData.regression?(s(),u("div",sn,[t[22]||(t[22]=c("strong",null,"Regression:",-1)),l(" outcome = "+d(e.scatterData.regression.gradient.toFixed(4))+" × deviation + "+d(e.scatterData.regression.intercept.toFixed(4))+" (R² = "+d(e.scatterData.regression.rSquared.toFixed(3))+") ",1)])):o("",!0),i(R,{density:"compact"},{default:a((()=>[t[23]||(t[23]=c("thead",null,[c("tr",null,[c("th",null,"User"),c("th",null,"Deviation"),c("th",null,"Outcome"),c("th",null,"Period End")])],-1)),c("tbody",null,[(s(!0),u(f,null,h(e.scatterData.data.slice(0,20),((e,t)=>(s(),u("tr",{key:t},[c("td",an,d(e.userId.substring(0,8))+"...",1),c("td",null,[i(S,{size:"x-small",color:e.deviation>0?"blue":"orange"},{default:a((()=>[l(d(e.deviation.toFixed(3)),1)])),_:2},1032,["color"])]),c("td",null,[i(S,{size:"x-small",color:e.outcome>.7?"green":"red"},{default:a((()=>[l(d(e.outcome.toFixed(3)),1)])),_:2},1032,["color"])]),c("td",ln,d(new Date(e.periodEnd).toLocaleString()),1)])))),128))])])),_:1}),e.scatterData.data.length>20?(s(),u("div",cn," Showing 20 of "+d(e.scatterData.data.length)+" observations ",1)):o("",!0)])),_:1})])),_:1})):o("",!0)])),_:1}),i(D,null,{default:a((()=>[i(k),i(E,{onClick:t[0]||(t[0]=t=>e.detailsDialog=!1)},{default:a((()=>t[24]||(t[24]=[l("Close")]))),_:1})])),_:1})])),_:1})):o("",!0)])),_:1},8,["modelValue"]),e.error?(s(),r(j,{key:1,type:"error",class:"mt-4"},{default:a((()=>[l(d(e.error),1)])),_:1})):o("",!0)])),_:1})])),_:1})])),_:1})])),_:1})])),_:1})):o("",!0)}],["__scopeId","data-v-b32c2c08"]])},props:{courseId:{type:String,required:!0}},data:()=>({courseConfig:{},user:null,editMode:"full",userIsRegistered:!1}),computed:{isPianoCourse(){return this.courseConfig.name?.toLowerCase().includes("piano")??!1},isAdmin(){return"admin"===this.user?.getUsername()}},async created(){const e=y(),t=e.getCourseDB(this.courseId);if(this.courseConfig=await t.getCourseConfig(),this.user=await b(),this.user){const e=await this.user.getCourseRegistrationsDoc();this.userIsRegistered="admin"===this.user.getUsername()||e.courses.some((e=>e.courseID===this.courseId&&("active"===e.status||void 0===e.status)))}this.editMode=e.isReadOnly()?"readonly":"full"},methods:{viewLookup:e=>x.getView(e)}}),dn={class:"text-h4 mb-2"},fn={key:0},hn={key:1};const pn=e({name:"CourseRouter",components:{CourseInformationWrapper:t(un,[["render",function(e,t,f,h,p,m){const g=n("router-link"),y=n("v-btn"),b=n("v-icon"),S=n("v-chip"),v=n("midi-config"),E=n("orchestration-dashboard"),x=n("v-expansion-panel-title"),O=n("user-tag-preferences"),R=n("v-expansion-panel-text"),C=n("v-expansion-panel"),_=n("v-expansion-panels"),A=n("course-information");return s(),u("div",null,[i(A,{"course-id":e.courseId,"view-lookup-function":e.viewLookup,"edit-mode":e.editMode,"user-is-registered":e.userIsRegistered},{header:a((({courseConfig:e})=>[c("h1",dn,[i(g,{to:"/q"},{default:a((()=>t[0]||(t[0]=[l("Quilts")]))),_:1}),l(" / "+d(e.name),1)])])),actions:a((({userIsRegistered:e,courseId:n,editMode:c,register:d,drop:f})=>[i(w,{name:"component-fade",mode:"out-in"},{default:a((()=>[e?(s(),u("div",fn,[i(g,{to:`/study/${n}`,class:"me-2"},{default:a((()=>[i(y,{color:"success","data-cy":"focused-study-session-btn"},{default:a((()=>t[1]||(t[1]=[l("Start a study session *")]))),_:1})])),_:2},1032,["to"]),"full"===c?(s(),r(g,{key:0,to:`/edit/${n}`,class:"me-2"},{default:a((()=>[i(y,{"data-cy":"add-content-btn",color:"indigo-lighten-1"},{default:a((()=>[i(b,{start:""},{default:a((()=>t[2]||(t[2]=[l("mdi-plus")]))),_:1}),t[3]||(t[3]=l(" Add content "))])),_:1})])),_:2},1032,["to"])):o("",!0),"full"===c?(s(),r(g,{key:1,to:`/courses/${n}/elo`,class:"me-2"},{default:a((()=>[i(y,{color:"green-darken-2",title:"Rank course content for difficulty"},{default:a((()=>[i(b,{start:""},{default:a((()=>t[4]||(t[4]=[l("mdi-format-list-numbered")]))),_:1}),t[5]||(t[5]=l(" Arrange "))])),_:1})])),_:2},1032,["to"])):o("",!0),"full"===c?(s(),r(y,{key:2,color:"error",size:"small",variant:"outlined",onClick:f},{default:a((()=>t[6]||(t[6]=[l(" Drop this course ")]))),_:2},1032,["onClick"])):o("",!0)])):(s(),u("div",hn,[i(y,{"data-cy":"register-btn",color:"primary",class:"me-2",onClick:d},{default:a((()=>t[7]||(t[7]=[l("Register")]))),_:2},1032,["onClick"]),i(g,{to:`/q/${n}/preview`},{default:a((()=>[i(y,{variant:"outlined",color:"primary",class:"me-2"},{default:a((()=>t[8]||(t[8]=[l("Start a trial study session")]))),_:1})])),_:2},1032,["to"])]))])),_:2},1024)])),"tag-link":a((({tag:e,courseId:t})=>[i(g,{to:`/q/${t}/tags/${e.name}`},{default:a((()=>[i(S,{variant:"tonal",class:"me-2 mb-2"},{default:a((()=>[l(d(e.name),1)])),_:2},1024)])),_:2},1032,["to"])])),"additional-content":a((()=>[e.isPianoCourse?(s(),r(v,{key:0,_id:e.courseId,user:e.user,class:"my-3"},null,8,["_id","user"])):o("",!0),i(E,{"course-id":e.courseId,"is-admin":e.isAdmin},null,8,["course-id","is-admin"]),e.userIsRegistered?(s(),r(_,{key:1,class:"my-3"},{default:a((()=>[i(C,null,{default:a((()=>[i(x,null,{default:a((()=>[i(b,{start:""},{default:a((()=>t[9]||(t[9]=[l("mdi-tune")]))),_:1}),t[10]||(t[10]=l(" Learning Preferences "))])),_:1}),i(R,null,{default:a((()=>[i(O,{"course-id":e.courseId},null,8,["course-id"])])),_:1})])),_:1})])),_:1})):o("",!0)])),_:1},8,["course-id","view-lookup-function","edit-mode","user-is-registered"])])}],["__scopeId","data-v-aa3214c2"]]),NewCourseDialog:v},props:{query:{type:String,required:!0}},data:()=>({courseList:[],courseId:void 0,candidates:[],newCourseDialog:!1,initComplete:!1}),async created(){this.courseList=await y().getCoursesDB().getCourseList(),this.loadQuery()},methods:{update(e){e.courseID&&e.disambiguator&&y().getCoursesDB().disambiguateCourse(e.courseID,e.disambiguator)},loadQuery(e){let t;t=e?e.toLowerCase():this.query.toLowerCase(),this.candidates=this.courseList.filter((e=>{const n=e.name.replaceAll(" ","_").toLowerCase();return t===n||t===e.courseID||t===`${n}_(${e.disambiguator})`})),1===this.candidates.length?this.courseId=this.candidates[0].courseID:0===this.candidates.length&&(this.courseId=""),this.initComplete=!0}}}),mn={key:0},gn={class:"text-h3"},yn=["onClick"];const bn=t(pn,[["render",function(e,t,p,m,g,y){const b=n("course-information-wrapper"),w=n("v-row"),v=n("v-divider"),E=n("v-btn"),x=n("new-course-dialog"),O=n("v-dialog"),R=n("v-container"),C=n("v-text-field");return s(),u("div",null,[e.initComplete?(s(),u("div",mn,[void 0!==e.courseId&&""!==e.courseId?(s(),r(b,{key:0,"course-id":e.courseId},null,8,["course-id"])):0===e.candidates.length?(s(),r(R,{key:1},{default:a((()=>[i(w,{class:"text-h4"},{default:a((()=>[l(d(e.query),1)])),_:1}),i(v),i(w,{class:"ma-3 text-h5"},{default:a((()=>t[2]||(t[2]=[l("Nothing here!")]))),_:1}),i(w,{class:"ma-3"},{default:a((()=>[i(O,{modelValue:e.newCourseDialog,"onUpdate:modelValue":t[1]||(t[1]=t=>e.newCourseDialog=t),fullscreen:"",transition:"dialog-bottom-transition",overlay:!1},{activator:a((({props:e})=>[i(E,S({color:"primary"},e),{default:a((()=>t[3]||(t[3]=[l("Start a new Quilt")]))),_:2},1040)])),default:a((()=>[i(x,{name:e.query,onCourseEditingComplete:t[0]||(t[0]=t=>e.newCourseDialog=!1)},null,8,["name"])])),_:1},8,["modelValue"])])),_:1})])),_:1})):(s(),r(R,{key:2},{default:a((()=>[c("div",null,[c("span",gn,d(e.query),1),t[5]||(t[5]=l()),t[6]||(t[6]=c("span",{class:"text-h5"},"could refer to:",-1)),i(v),(s(!0),u(f,null,h(e.candidates,((n,r)=>(s(),u("div",{key:r,class:"ma-5"},[i(w,{class:"text-h5"},{default:a((()=>[c("a",{onClick:t=>e.loadQuery(n.courseID)},d(n.name),9,yn),t[4]||(t[4]=l(" - ")),i(C,{id:`${r}-disambiguator`,modelValue:n.disambiguator,"onUpdate:modelValue":e=>n.disambiguator=e,label:"Disambiguator",onChange:t=>e.update(n)},null,8,["id","modelValue","onUpdate:modelValue","onChange"]),l(" "+d(n.description),1)])),_:2},1024)])))),128))])])),_:1}))])):o("",!0)])}]]);export{bn as default};
|
|
2
|
-
//# sourceMappingURL=CourseRouter-BK4PYhtA.js.map
|