UNPKG

vsm-box

Version:

Webcomponent for building and showing a VSM-sentence

19 lines 214 kB
!function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=40)}([function(t,e,n){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=function(t,e){var n=t[1]||"",i=t[3];if(!i)return n;if(e&&"function"==typeof btoa){var r=(s=i,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(s))))+" */"),o=i.sources.map((function(t){return"/*# sourceURL="+i.sourceRoot+t+" */"}));return[n].concat(o).concat([r]).join("\n")}var s;return[n].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+n+"}":n})).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var i={},r=0;r<this.length;r++){var o=this[r][0];null!=o&&(i[o]=!0)}for(r=0;r<t.length;r++){var s=t[r];null!=s[0]&&i[s[0]]||(n&&!s[2]?s[2]=n:n&&(s[2]="("+s[2]+") and ("+n+")"),e.push(s))}},e}},function(t,e,n){var i,r,o={},s=(i=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===r&&(r=i.apply(this,arguments)),r}),a=function(t,e){return e?e.querySelector(t):document.querySelector(t)},l=function(t){var e={};return function(t,n){if("function"==typeof t)return t();if(void 0===e[t]){var i=a.call(this,t,n);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(t){i=null}e[t]=i}return e[t]}}(),c=null,u=0,d=[],h=n(21);function p(t,e){for(var n=0;n<t.length;n++){var i=t[n],r=o[i.id];if(r){r.refs++;for(var s=0;s<r.parts.length;s++)r.parts[s](i.parts[s]);for(;s<i.parts.length;s++)r.parts.push(b(i.parts[s],e))}else{var a=[];for(s=0;s<i.parts.length;s++)a.push(b(i.parts[s],e));o[i.id]={id:i.id,refs:1,parts:a}}}}function f(t,e){for(var n=[],i={},r=0;r<t.length;r++){var o=t[r],s=e.base?o[0]+e.base:o[0],a={css:o[1],media:o[2],sourceMap:o[3]};i[s]?i[s].parts.push(a):n.push(i[s]={id:s,parts:[a]})}return n}function m(t,e){var n=l(t.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var i=d[d.length-1];if("top"===t.insertAt)i?i.nextSibling?n.insertBefore(e,i.nextSibling):n.appendChild(e):n.insertBefore(e,n.firstChild),d.push(e);else if("bottom"===t.insertAt)n.appendChild(e);else{if("object"!=typeof t.insertAt||!t.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var r=l(t.insertAt.before,n);n.insertBefore(e,r)}}function v(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t);var e=d.indexOf(t);e>=0&&d.splice(e,1)}function y(t){var e=document.createElement("style");if(void 0===t.attrs.type&&(t.attrs.type="text/css"),void 0===t.attrs.nonce){var i=function(){0;return n.nc}();i&&(t.attrs.nonce=i)}return g(e,t.attrs),m(t,e),e}function g(t,e){Object.keys(e).forEach((function(n){t.setAttribute(n,e[n])}))}function b(t,e){var n,i,r,o;if(e.transform&&t.css){if(!(o="function"==typeof e.transform?e.transform(t.css):e.transform.default(t.css)))return function(){};t.css=o}if(e.singleton){var s=u++;n=c||(c=y(e)),i=w.bind(null,n,s,!1),r=w.bind(null,n,s,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(t){var e=document.createElement("link");return void 0===t.attrs.type&&(t.attrs.type="text/css"),t.attrs.rel="stylesheet",g(e,t.attrs),m(t,e),e}(e),i=x.bind(null,n,e),r=function(){v(n),n.href&&URL.revokeObjectURL(n.href)}):(n=y(e),i=T.bind(null,n),r=function(){v(n)});return i(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;i(t=e)}else r()}}t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(e=e||{}).attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||"boolean"==typeof e.singleton||(e.singleton=s()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var n=f(t,e);return p(n,e),function(t){for(var i=[],r=0;r<n.length;r++){var s=n[r];(a=o[s.id]).refs--,i.push(a)}t&&p(f(t,e),e);for(r=0;r<i.length;r++){var a;if(0===(a=i[r]).refs){for(var l=0;l<a.parts.length;l++)a.parts[l]();delete o[a.id]}}}};var C,_=(C=[],function(t,e){return C[t]=e,C.filter(Boolean).join("\n")});function w(t,e,n,i){var r=n?"":i.css;if(t.styleSheet)t.styleSheet.cssText=_(e,r);else{var o=document.createTextNode(r),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(o,s[e]):t.appendChild(o)}}function T(t,e){var n=e.css,i=e.media;if(i&&t.setAttribute("media",i),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}function x(t,e,n){var i=n.css,r=n.sourceMap,o=void 0===e.convertToAbsoluteUrls&&r;(e.convertToAbsoluteUrls||o)&&(i=h(i)),r&&(i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var s=new Blob([i],{type:"text/css"}),a=t.href;t.href=URL.createObjectURL(s),a&&URL.revokeObjectURL(a)}},function(t,e){var n=/^([bisu])(?:(\d+)(?:-(\d+))?)?$/,i={b:"b",i:"i",s:"sub",u:"sup"};function r(t){return String(t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}t.exports=function(t,e,o){if(!e||"string"!=typeof e)return r(t);if(e.includes("<"))return e;var s=e.split(";"),a=Array.from({length:t.length+1},()=>""),l=(o?" "+o:"")+">";return s.forEach(e=>{var r=e.match(n);if(r){var[,o,s,c]=r;if(o=i[o],void 0===s?(s=0,c=t.length):void 0===c&&(c=Number(s)+1),s=Number(s),(c=Number(c))<s){var u=s;s=c,c=u}if(!(s>=t.length)){c=Math.min(c,t.length);var d="<"+o+l,h="</"+o+">";a[s]=a[s]+d;for(var p=s+1;p<c;p++)""!=a[p]&&(a[p]=h+a[p]+d);a[c]=h+a[c]}}}),t.split("").map((t,e)=>a[e]+r(t)).join("")+a[t.length]}},function(t,e,n){var i=n(20);"string"==typeof i&&(i=[[t.i,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n(1)(i,r);i.locals&&(t.exports=i.locals)},function(t,e,n){var i=n(23);"string"==typeof i&&(i=[[t.i,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n(1)(i,r);i.locals&&(t.exports=i.locals)},function(t,e,n){var i=n(25);"string"==typeof i&&(i=[[t.i,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n(1)(i,r);i.locals&&(t.exports=i.locals)},function(t,e,n){var i=n(27);"string"==typeof i&&(i=[[t.i,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n(1)(i,r);i.locals&&(t.exports=i.locals)},function(t,e,n){var i=n(29);"string"==typeof i&&(i=[[t.i,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n(1)(i,r);i.locals&&(t.exports=i.locals)},function(t,e,n){var i=n(31);"string"==typeof i&&(i=[[t.i,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n(1)(i,r);i.locals&&(t.exports=i.locals)},function(t,e,n){var i=n(33);"string"==typeof i&&(i=[[t.i,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n(1)(i,r);i.locals&&(t.exports=i.locals)},function(t,e,n){var i=n(35);"string"==typeof i&&(i=[[t.i,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n(1)(i,r);i.locals&&(t.exports=i.locals)},function(t,e,n){var i=n(37);"string"==typeof i&&(i=[[t.i,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n(1)(i,r);i.locals&&(t.exports=i.locals)},function(t,e,n){var i=n(39);"string"==typeof i&&(i=[[t.i,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n(1)(i,r);i.locals&&(t.exports=i.locals)},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";(function(t,n){ /*! * Vue.js v2.5.22 * (c) 2014-2019 Evan You * Released under the MIT License. */ var i=Object.freeze({});function r(t){return null==t}function o(t){return null!=t}function s(t){return!0===t}function a(t){return"string"==typeof t||"number"==typeof t||"symbol"==typeof t||"boolean"==typeof t}function l(t){return null!==t&&"object"==typeof t}var c=Object.prototype.toString;function u(t){return"[object Object]"===c.call(t)}function d(t){return"[object RegExp]"===c.call(t)}function h(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function p(t){return null==t?"":"object"==typeof t?JSON.stringify(t,null,2):String(t)}function f(t){var e=parseFloat(t);return isNaN(e)?t:e}function m(t,e){for(var n=Object.create(null),i=t.split(","),r=0;r<i.length;r++)n[i[r]]=!0;return e?function(t){return n[t.toLowerCase()]}:function(t){return n[t]}}m("slot,component",!0);var v=m("key,ref,slot,slot-scope,is");function y(t,e){if(t.length){var n=t.indexOf(e);if(n>-1)return t.splice(n,1)}}var g=Object.prototype.hasOwnProperty;function b(t,e){return g.call(t,e)}function C(t){var e=Object.create(null);return function(n){return e[n]||(e[n]=t(n))}}var _=/-(\w)/g,w=C((function(t){return t.replace(_,(function(t,e){return e?e.toUpperCase():""}))})),T=C((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),x=/\B([A-Z])/g,k=C((function(t){return t.replace(x,"-$1").toLowerCase()}));var L=Function.prototype.bind?function(t,e){return t.bind(e)}:function(t,e){function n(n){var i=arguments.length;return i?i>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n};function E(t,e){e=e||0;for(var n=t.length-e,i=new Array(n);n--;)i[n]=t[n+e];return i}function I(t,e){for(var n in e)t[n]=e[n];return t}function S(t){for(var e={},n=0;n<t.length;n++)t[n]&&I(e,t[n]);return e}function O(t,e,n){}var M=function(t,e,n){return!1},A=function(t){return t};function D(t,e){if(t===e)return!0;var n=l(t),i=l(e);if(!n||!i)return!n&&!i&&String(t)===String(e);try{var r=Array.isArray(t),o=Array.isArray(e);if(r&&o)return t.length===e.length&&t.every((function(t,n){return D(t,e[n])}));if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();if(r||o)return!1;var s=Object.keys(t),a=Object.keys(e);return s.length===a.length&&s.every((function(n){return D(t[n],e[n])}))}catch(t){return!1}}function P(t,e){for(var n=0;n<t.length;n++)if(D(t[n],e))return n;return-1}function $(t){var e=!1;return function(){e||(e=!0,t.apply(this,arguments))}}var H=["component","directive","filter"],K=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured"],j={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:M,isReservedAttr:M,isUnknownElement:M,getTagNamespace:O,parsePlatformTagName:A,mustUseProp:M,async:!0,_lifecycleHooks:K};function F(t,e,n,i){Object.defineProperty(t,e,{value:n,enumerable:!!i,writable:!0,configurable:!0})}var R=/[^\w.$]/;var N,z="__proto__"in{},B="undefined"!=typeof window,U="undefined"!=typeof WXEnvironment&&!!WXEnvironment.platform,q=U&&WXEnvironment.platform.toLowerCase(),W=B&&window.navigator.userAgent.toLowerCase(),V=W&&/msie|trident/.test(W),X=W&&W.indexOf("msie 9.0")>0,Z=W&&W.indexOf("edge/")>0,Y=(W&&W.indexOf("android"),W&&/iphone|ipad|ipod|ios/.test(W)||"ios"===q),J=(W&&/chrome\/\d+/.test(W),{}.watch),G=!1;if(B)try{var Q={};Object.defineProperty(Q,"passive",{get:function(){G=!0}}),window.addEventListener("test-passive",null,Q)}catch(t){}var tt=function(){return void 0===N&&(N=!B&&!U&&void 0!==t&&(t.process&&"server"===t.process.env.VUE_ENV)),N},et=B&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function nt(t){return"function"==typeof t&&/native code/.test(t.toString())}var it,rt="undefined"!=typeof Symbol&&nt(Symbol)&&"undefined"!=typeof Reflect&&nt(Reflect.ownKeys);it="undefined"!=typeof Set&&nt(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var ot=O,st=0,at=function(){this.id=st++,this.subs=[]};at.prototype.addSub=function(t){this.subs.push(t)},at.prototype.removeSub=function(t){y(this.subs,t)},at.prototype.depend=function(){at.target&&at.target.addDep(this)},at.prototype.notify=function(){var t=this.subs.slice();for(var e=0,n=t.length;e<n;e++)t[e].update()},at.target=null;var lt=[];function ct(t){lt.push(t),at.target=t}function ut(){lt.pop(),at.target=lt[lt.length-1]}var dt=function(t,e,n,i,r,o,s,a){this.tag=t,this.data=e,this.children=n,this.text=i,this.elm=r,this.ns=void 0,this.context=o,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=e&&e.key,this.componentOptions=s,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=a,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},ht={child:{configurable:!0}};ht.child.get=function(){return this.componentInstance},Object.defineProperties(dt.prototype,ht);var pt=function(t){void 0===t&&(t="");var e=new dt;return e.text=t,e.isComment=!0,e};function ft(t){return new dt(void 0,void 0,void 0,String(t))}function mt(t){var e=new dt(t.tag,t.data,t.children&&t.children.slice(),t.text,t.elm,t.context,t.componentOptions,t.asyncFactory);return e.ns=t.ns,e.isStatic=t.isStatic,e.key=t.key,e.isComment=t.isComment,e.fnContext=t.fnContext,e.fnOptions=t.fnOptions,e.fnScopeId=t.fnScopeId,e.asyncMeta=t.asyncMeta,e.isCloned=!0,e}var vt=Array.prototype,yt=Object.create(vt);["push","pop","shift","unshift","splice","sort","reverse"].forEach((function(t){var e=vt[t];F(yt,t,(function(){for(var n=[],i=arguments.length;i--;)n[i]=arguments[i];var r,o=e.apply(this,n),s=this.__ob__;switch(t){case"push":case"unshift":r=n;break;case"splice":r=n.slice(2)}return r&&s.observeArray(r),s.dep.notify(),o}))}));var gt=Object.getOwnPropertyNames(yt),bt=!0;function Ct(t){bt=t}var _t=function(t){this.value=t,this.dep=new at,this.vmCount=0,F(t,"__ob__",this),Array.isArray(t)?(z?function(t,e){t.__proto__=e}(t,yt):function(t,e,n){for(var i=0,r=n.length;i<r;i++){var o=n[i];F(t,o,e[o])}}(t,yt,gt),this.observeArray(t)):this.walk(t)};function wt(t,e){var n;if(l(t)&&!(t instanceof dt))return b(t,"__ob__")&&t.__ob__ instanceof _t?n=t.__ob__:bt&&!tt()&&(Array.isArray(t)||u(t))&&Object.isExtensible(t)&&!t._isVue&&(n=new _t(t)),e&&n&&n.vmCount++,n}function Tt(t,e,n,i,r){var o=new at,s=Object.getOwnPropertyDescriptor(t,e);if(!s||!1!==s.configurable){var a=s&&s.get,l=s&&s.set;a&&!l||2!==arguments.length||(n=t[e]);var c=!r&&wt(n);Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){var e=a?a.call(t):n;return at.target&&(o.depend(),c&&(c.dep.depend(),Array.isArray(e)&&Lt(e))),e},set:function(e){var i=a?a.call(t):n;e===i||e!=e&&i!=i||a&&!l||(l?l.call(t,e):n=e,c=!r&&wt(e),o.notify())}})}}function xt(t,e,n){if(Array.isArray(t)&&h(e))return t.length=Math.max(t.length,e),t.splice(e,1,n),n;if(e in t&&!(e in Object.prototype))return t[e]=n,n;var i=t.__ob__;return t._isVue||i&&i.vmCount?n:i?(Tt(i.value,e,n),i.dep.notify(),n):(t[e]=n,n)}function kt(t,e){if(Array.isArray(t)&&h(e))t.splice(e,1);else{var n=t.__ob__;t._isVue||n&&n.vmCount||b(t,e)&&(delete t[e],n&&n.dep.notify())}}function Lt(t){for(var e=void 0,n=0,i=t.length;n<i;n++)(e=t[n])&&e.__ob__&&e.__ob__.dep.depend(),Array.isArray(e)&&Lt(e)}_t.prototype.walk=function(t){for(var e=Object.keys(t),n=0;n<e.length;n++)Tt(t,e[n])},_t.prototype.observeArray=function(t){for(var e=0,n=t.length;e<n;e++)wt(t[e])};var Et=j.optionMergeStrategies;function It(t,e){if(!e)return t;for(var n,i,r,o=Object.keys(e),s=0;s<o.length;s++)i=t[n=o[s]],r=e[n],b(t,n)?i!==r&&u(i)&&u(r)&&It(i,r):xt(t,n,r);return t}function St(t,e,n){return n?function(){var i="function"==typeof e?e.call(n,n):e,r="function"==typeof t?t.call(n,n):t;return i?It(i,r):r}:e?t?function(){return It("function"==typeof e?e.call(this,this):e,"function"==typeof t?t.call(this,this):t)}:e:t}function Ot(t,e){var n=e?t?t.concat(e):Array.isArray(e)?e:[e]:t;return n?function(t){for(var e=[],n=0;n<t.length;n++)-1===e.indexOf(t[n])&&e.push(t[n]);return e}(n):n}function Mt(t,e,n,i){var r=Object.create(t||null);return e?I(r,e):r}Et.data=function(t,e,n){return n?St(t,e,n):e&&"function"!=typeof e?t:St(t,e)},K.forEach((function(t){Et[t]=Ot})),H.forEach((function(t){Et[t+"s"]=Mt})),Et.watch=function(t,e,n,i){if(t===J&&(t=void 0),e===J&&(e=void 0),!e)return Object.create(t||null);if(!t)return e;var r={};for(var o in I(r,t),e){var s=r[o],a=e[o];s&&!Array.isArray(s)&&(s=[s]),r[o]=s?s.concat(a):Array.isArray(a)?a:[a]}return r},Et.props=Et.methods=Et.inject=Et.computed=function(t,e,n,i){if(!t)return e;var r=Object.create(null);return I(r,t),e&&I(r,e),r},Et.provide=St;var At=function(t,e){return void 0===e?t:e};function Dt(t,e,n){if("function"==typeof e&&(e=e.options),function(t,e){var n=t.props;if(n){var i,r,o={};if(Array.isArray(n))for(i=n.length;i--;)"string"==typeof(r=n[i])&&(o[w(r)]={type:null});else if(u(n))for(var s in n)r=n[s],o[w(s)]=u(r)?r:{type:r};else 0;t.props=o}}(e),function(t,e){var n=t.inject;if(n){var i=t.inject={};if(Array.isArray(n))for(var r=0;r<n.length;r++)i[n[r]]={from:n[r]};else if(u(n))for(var o in n){var s=n[o];i[o]=u(s)?I({from:o},s):{from:s}}else 0}}(e),function(t){var e=t.directives;if(e)for(var n in e){var i=e[n];"function"==typeof i&&(e[n]={bind:i,update:i})}}(e),!e._base&&(e.extends&&(t=Dt(t,e.extends,n)),e.mixins))for(var i=0,r=e.mixins.length;i<r;i++)t=Dt(t,e.mixins[i],n);var o,s={};for(o in t)a(o);for(o in e)b(t,o)||a(o);function a(i){var r=Et[i]||At;s[i]=r(t[i],e[i],n,i)}return s}function Pt(t,e,n,i){if("string"==typeof n){var r=t[e];if(b(r,n))return r[n];var o=w(n);if(b(r,o))return r[o];var s=T(o);return b(r,s)?r[s]:r[n]||r[o]||r[s]}}function $t(t,e,n,i){var r=e[t],o=!b(n,t),s=n[t],a=jt(Boolean,r.type);if(a>-1)if(o&&!b(r,"default"))s=!1;else if(""===s||s===k(t)){var l=jt(String,r.type);(l<0||a<l)&&(s=!0)}if(void 0===s){s=function(t,e,n){if(!b(e,"default"))return;var i=e.default;0;if(t&&t.$options.propsData&&void 0===t.$options.propsData[n]&&void 0!==t._props[n])return t._props[n];return"function"==typeof i&&"Function"!==Ht(e.type)?i.call(t):i}(i,r,t);var c=bt;Ct(!0),wt(s),Ct(c)}return s}function Ht(t){var e=t&&t.toString().match(/^\s*function (\w+)/);return e?e[1]:""}function Kt(t,e){return Ht(t)===Ht(e)}function jt(t,e){if(!Array.isArray(e))return Kt(e,t)?0:-1;for(var n=0,i=e.length;n<i;n++)if(Kt(e[n],t))return n;return-1}function Ft(t,e,n){if(e)for(var i=e;i=i.$parent;){var r=i.$options.errorCaptured;if(r)for(var o=0;o<r.length;o++)try{if(!1===r[o].call(i,t,e,n))return}catch(t){Rt(t,i,"errorCaptured hook")}}Rt(t,e,n)}function Rt(t,e,n){if(j.errorHandler)try{return j.errorHandler.call(null,t,e,n)}catch(t){Nt(t,null,"config.errorHandler")}Nt(t,e,n)}function Nt(t,e,n){if(!B&&!U||"undefined"==typeof console)throw t;console.error(t)}var zt,Bt,Ut=[],qt=!1;function Wt(){qt=!1;var t=Ut.slice(0);Ut.length=0;for(var e=0;e<t.length;e++)t[e]()}var Vt=!1;if(void 0!==n&&nt(n))Bt=function(){n(Wt)};else if("undefined"==typeof MessageChannel||!nt(MessageChannel)&&"[object MessageChannelConstructor]"!==MessageChannel.toString())Bt=function(){setTimeout(Wt,0)};else{var Xt=new MessageChannel,Zt=Xt.port2;Xt.port1.onmessage=Wt,Bt=function(){Zt.postMessage(1)}}if("undefined"!=typeof Promise&&nt(Promise)){var Yt=Promise.resolve();zt=function(){Yt.then(Wt),Y&&setTimeout(O)}}else zt=Bt;function Jt(t,e){var n;if(Ut.push((function(){if(t)try{t.call(e)}catch(t){Ft(t,e,"nextTick")}else n&&n(e)})),qt||(qt=!0,Vt?Bt():zt()),!t&&"undefined"!=typeof Promise)return new Promise((function(t){n=t}))}var Gt=new it;function Qt(t){!function t(e,n){var i,r,o=Array.isArray(e);if(!o&&!l(e)||Object.isFrozen(e)||e instanceof dt)return;if(e.__ob__){var s=e.__ob__.dep.id;if(n.has(s))return;n.add(s)}if(o)for(i=e.length;i--;)t(e[i],n);else for(r=Object.keys(e),i=r.length;i--;)t(e[r[i]],n)}(t,Gt),Gt.clear()}var te,ee=C((function(t){var e="&"===t.charAt(0),n="~"===(t=e?t.slice(1):t).charAt(0),i="!"===(t=n?t.slice(1):t).charAt(0);return{name:t=i?t.slice(1):t,once:n,capture:i,passive:e}}));function ne(t){function e(){var t=arguments,n=e.fns;if(!Array.isArray(n))return n.apply(null,arguments);for(var i=n.slice(),r=0;r<i.length;r++)i[r].apply(null,t)}return e.fns=t,e}function ie(t,e,n,i,o,a){var l,c,u,d;for(l in t)c=t[l],u=e[l],d=ee(l),r(c)||(r(u)?(r(c.fns)&&(c=t[l]=ne(c)),s(d.once)&&(c=t[l]=o(d.name,c,d.capture)),n(d.name,c,d.capture,d.passive,d.params)):c!==u&&(u.fns=c,t[l]=u));for(l in e)r(t[l])&&i((d=ee(l)).name,e[l],d.capture)}function re(t,e,n){var i;t instanceof dt&&(t=t.data.hook||(t.data.hook={}));var a=t[e];function l(){n.apply(this,arguments),y(i.fns,l)}r(a)?i=ne([l]):o(a.fns)&&s(a.merged)?(i=a).fns.push(l):i=ne([a,l]),i.merged=!0,t[e]=i}function oe(t,e,n,i,r){if(o(e)){if(b(e,n))return t[n]=e[n],r||delete e[n],!0;if(b(e,i))return t[n]=e[i],r||delete e[i],!0}return!1}function se(t){return a(t)?[ft(t)]:Array.isArray(t)?function t(e,n){var i,l,c,u,d=[];for(i=0;i<e.length;i++)r(l=e[i])||"boolean"==typeof l||(c=d.length-1,u=d[c],Array.isArray(l)?l.length>0&&(ae((l=t(l,(n||"")+"_"+i))[0])&&ae(u)&&(d[c]=ft(u.text+l[0].text),l.shift()),d.push.apply(d,l)):a(l)?ae(u)?d[c]=ft(u.text+l):""!==l&&d.push(ft(l)):ae(l)&&ae(u)?d[c]=ft(u.text+l.text):(s(e._isVList)&&o(l.tag)&&r(l.key)&&o(n)&&(l.key="__vlist"+n+"_"+i+"__"),d.push(l)));return d}(t):void 0}function ae(t){return o(t)&&o(t.text)&&!1===t.isComment}function le(t,e){return(t.__esModule||rt&&"Module"===t[Symbol.toStringTag])&&(t=t.default),l(t)?e.extend(t):t}function ce(t){return t.isComment&&t.asyncFactory}function ue(t){if(Array.isArray(t))for(var e=0;e<t.length;e++){var n=t[e];if(o(n)&&(o(n.componentOptions)||ce(n)))return n}}function de(t,e){te.$on(t,e)}function he(t,e){te.$off(t,e)}function pe(t,e){var n=te;return function i(){var r=e.apply(null,arguments);null!==r&&n.$off(t,i)}}function fe(t,e,n){te=t,ie(e,n||{},de,he,pe),te=void 0}function me(t,e){var n={};if(!t)return n;for(var i=0,r=t.length;i<r;i++){var o=t[i],s=o.data;if(s&&s.attrs&&s.attrs.slot&&delete s.attrs.slot,o.context!==e&&o.fnContext!==e||!s||null==s.slot)(n.default||(n.default=[])).push(o);else{var a=s.slot,l=n[a]||(n[a]=[]);"template"===o.tag?l.push.apply(l,o.children||[]):l.push(o)}}for(var c in n)n[c].every(ve)&&delete n[c];return n}function ve(t){return t.isComment&&!t.asyncFactory||" "===t.text}function ye(t,e){e=e||{};for(var n=0;n<t.length;n++)Array.isArray(t[n])?ye(t[n],e):e[t[n].key]=t[n].fn;return e}var ge=null;function be(t){var e=ge;return ge=t,function(){ge=e}}function Ce(t){for(;t&&(t=t.$parent);)if(t._inactive)return!0;return!1}function _e(t,e){if(e){if(t._directInactive=!1,Ce(t))return}else if(t._directInactive)return;if(t._inactive||null===t._inactive){t._inactive=!1;for(var n=0;n<t.$children.length;n++)_e(t.$children[n]);we(t,"activated")}}function we(t,e){ct();var n=t.$options[e];if(n)for(var i=0,r=n.length;i<r;i++)try{n[i].call(t)}catch(n){Ft(n,t,e+" hook")}t._hasHookEvent&&t.$emit("hook:"+e),ut()}var Te=[],xe=[],ke={},Le=!1,Ee=!1,Ie=0;function Se(){var t,e;for(Ee=!0,Te.sort((function(t,e){return t.id-e.id})),Ie=0;Ie<Te.length;Ie++)(t=Te[Ie]).before&&t.before(),e=t.id,ke[e]=null,t.run();var n=xe.slice(),i=Te.slice();Ie=Te.length=xe.length=0,ke={},Le=Ee=!1,function(t){for(var e=0;e<t.length;e++)t[e]._inactive=!0,_e(t[e],!0)}(n),function(t){var e=t.length;for(;e--;){var n=t[e],i=n.vm;i._watcher===n&&i._isMounted&&!i._isDestroyed&&we(i,"updated")}}(i),et&&j.devtools&&et.emit("flush")}var Oe=0,Me=function(t,e,n,i,r){this.vm=t,r&&(t._watcher=this),t._watchers.push(this),i?(this.deep=!!i.deep,this.user=!!i.user,this.lazy=!!i.lazy,this.sync=!!i.sync,this.before=i.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++Oe,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new it,this.newDepIds=new it,this.expression="","function"==typeof e?this.getter=e:(this.getter=function(t){if(!R.test(t)){var e=t.split(".");return function(t){for(var n=0;n<e.length;n++){if(!t)return;t=t[e[n]]}return t}}}(e),this.getter||(this.getter=O)),this.value=this.lazy?void 0:this.get()};Me.prototype.get=function(){var t;ct(this);var e=this.vm;try{t=this.getter.call(e,e)}catch(t){if(!this.user)throw t;Ft(t,e,'getter for watcher "'+this.expression+'"')}finally{this.deep&&Qt(t),ut(),this.cleanupDeps()}return t},Me.prototype.addDep=function(t){var e=t.id;this.newDepIds.has(e)||(this.newDepIds.add(e),this.newDeps.push(t),this.depIds.has(e)||t.addSub(this))},Me.prototype.cleanupDeps=function(){for(var t=this.deps.length;t--;){var e=this.deps[t];this.newDepIds.has(e.id)||e.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},Me.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():function(t){var e=t.id;if(null==ke[e]){if(ke[e]=!0,Ee){for(var n=Te.length-1;n>Ie&&Te[n].id>t.id;)n--;Te.splice(n+1,0,t)}else Te.push(t);Le||(Le=!0,Jt(Se))}}(this)},Me.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||l(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(t){Ft(t,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,t,e)}}},Me.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},Me.prototype.depend=function(){for(var t=this.deps.length;t--;)this.deps[t].depend()},Me.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||y(this.vm._watchers,this);for(var t=this.deps.length;t--;)this.deps[t].removeSub(this);this.active=!1}};var Ae={enumerable:!0,configurable:!0,get:O,set:O};function De(t,e,n){Ae.get=function(){return this[e][n]},Ae.set=function(t){this[e][n]=t},Object.defineProperty(t,n,Ae)}function Pe(t){t._watchers=[];var e=t.$options;e.props&&function(t,e){var n=t.$options.propsData||{},i=t._props={},r=t.$options._propKeys=[];t.$parent&&Ct(!1);var o=function(o){r.push(o);var s=$t(o,e,n,t);Tt(i,o,s),o in t||De(t,"_props",o)};for(var s in e)o(s);Ct(!0)}(t,e.props),e.methods&&function(t,e){t.$options.props;for(var n in e)t[n]="function"!=typeof e[n]?O:L(e[n],t)}(t,e.methods),e.data?function(t){var e=t.$options.data;u(e=t._data="function"==typeof e?function(t,e){ct();try{return t.call(e,e)}catch(t){return Ft(t,e,"data()"),{}}finally{ut()}}(e,t):e||{})||(e={});var n=Object.keys(e),i=t.$options.props,r=(t.$options.methods,n.length);for(;r--;){var o=n[r];0,i&&b(i,o)||(s=void 0,36!==(s=(o+"").charCodeAt(0))&&95!==s&&De(t,"_data",o))}var s;wt(e,!0)}(t):wt(t._data={},!0),e.computed&&function(t,e){var n=t._computedWatchers=Object.create(null),i=tt();for(var r in e){var o=e[r],s="function"==typeof o?o:o.get;0,i||(n[r]=new Me(t,s||O,O,$e)),r in t||He(t,r,o)}}(t,e.computed),e.watch&&e.watch!==J&&function(t,e){for(var n in e){var i=e[n];if(Array.isArray(i))for(var r=0;r<i.length;r++)Fe(t,n,i[r]);else Fe(t,n,i)}}(t,e.watch)}var $e={lazy:!0};function He(t,e,n){var i=!tt();"function"==typeof n?(Ae.get=i?Ke(e):je(n),Ae.set=O):(Ae.get=n.get?i&&!1!==n.cache?Ke(e):je(n.get):O,Ae.set=n.set||O),Object.defineProperty(t,e,Ae)}function Ke(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),at.target&&e.depend(),e.value}}function je(t){return function(){return t.call(this,this)}}function Fe(t,e,n,i){return u(n)&&(i=n,n=n.handler),"string"==typeof n&&(n=t[n]),t.$watch(e,n,i)}function Re(t,e){if(t){for(var n=Object.create(null),i=rt?Reflect.ownKeys(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})):Object.keys(t),r=0;r<i.length;r++){for(var o=i[r],s=t[o].from,a=e;a;){if(a._provided&&b(a._provided,s)){n[o]=a._provided[s];break}a=a.$parent}if(!a)if("default"in t[o]){var l=t[o].default;n[o]="function"==typeof l?l.call(e):l}else 0}return n}}function Ne(t,e){var n,i,r,s,a;if(Array.isArray(t)||"string"==typeof t)for(n=new Array(t.length),i=0,r=t.length;i<r;i++)n[i]=e(t[i],i);else if("number"==typeof t)for(n=new Array(t),i=0;i<t;i++)n[i]=e(i+1,i);else if(l(t))for(s=Object.keys(t),n=new Array(s.length),i=0,r=s.length;i<r;i++)a=s[i],n[i]=e(t[a],a,i);return o(n)||(n=[]),n._isVList=!0,n}function ze(t,e,n,i){var r,o=this.$scopedSlots[t];o?(n=n||{},i&&(n=I(I({},i),n)),r=o(n)||e):r=this.$slots[t]||e;var s=n&&n.slot;return s?this.$createElement("template",{slot:s},r):r}function Be(t){return Pt(this.$options,"filters",t)||A}function Ue(t,e){return Array.isArray(t)?-1===t.indexOf(e):t!==e}function qe(t,e,n,i,r){var o=j.keyCodes[e]||n;return r&&i&&!j.keyCodes[e]?Ue(r,i):o?Ue(o,t):i?k(i)!==e:void 0}function We(t,e,n,i,r){if(n)if(l(n)){var o;Array.isArray(n)&&(n=S(n));var s=function(s){if("class"===s||"style"===s||v(s))o=t;else{var a=t.attrs&&t.attrs.type;o=i||j.mustUseProp(e,a,s)?t.domProps||(t.domProps={}):t.attrs||(t.attrs={})}var l=w(s);s in o||l in o||(o[s]=n[s],r&&((t.on||(t.on={}))["update:"+l]=function(t){n[s]=t}))};for(var a in n)s(a)}else;return t}function Ve(t,e){var n=this._staticTrees||(this._staticTrees=[]),i=n[t];return i&&!e||Ze(i=n[t]=this.$options.staticRenderFns[t].call(this._renderProxy,null,this),"__static__"+t,!1),i}function Xe(t,e,n){return Ze(t,"__once__"+e+(n?"_"+n:""),!0),t}function Ze(t,e,n){if(Array.isArray(t))for(var i=0;i<t.length;i++)t[i]&&"string"!=typeof t[i]&&Ye(t[i],e+"_"+i,n);else Ye(t,e,n)}function Ye(t,e,n){t.isStatic=!0,t.key=e,t.isOnce=n}function Je(t,e){if(e)if(u(e)){var n=t.on=t.on?I({},t.on):{};for(var i in e){var r=n[i],o=e[i];n[i]=r?[].concat(r,o):o}}else;return t}function Ge(t){t._o=Xe,t._n=f,t._s=p,t._l=Ne,t._t=ze,t._q=D,t._i=P,t._m=Ve,t._f=Be,t._k=qe,t._b=We,t._v=ft,t._e=pt,t._u=ye,t._g=Je}function Qe(t,e,n,r,o){var a,l=o.options;b(r,"_uid")?(a=Object.create(r))._original=r:(a=r,r=r._original);var c=s(l._compiled),u=!c;this.data=t,this.props=e,this.children=n,this.parent=r,this.listeners=t.on||i,this.injections=Re(l.inject,r),this.slots=function(){return me(n,r)},c&&(this.$options=l,this.$slots=this.slots(),this.$scopedSlots=t.scopedSlots||i),l._scopeId?this._c=function(t,e,n,i){var o=an(a,t,e,n,i,u);return o&&!Array.isArray(o)&&(o.fnScopeId=l._scopeId,o.fnContext=r),o}:this._c=function(t,e,n,i){return an(a,t,e,n,i,u)}}function tn(t,e,n,i,r){var o=mt(t);return o.fnContext=n,o.fnOptions=i,e.slot&&((o.data||(o.data={})).slot=e.slot),o}function en(t,e){for(var n in e)t[w(n)]=e[n]}Ge(Qe.prototype);var nn={init:function(t,e){if(t.componentInstance&&!t.componentInstance._isDestroyed&&t.data.keepAlive){var n=t;nn.prepatch(n,n)}else{(t.componentInstance=function(t,e){var n={_isComponent:!0,_parentVnode:t,parent:e},i=t.data.inlineTemplate;o(i)&&(n.render=i.render,n.staticRenderFns=i.staticRenderFns);return new t.componentOptions.Ctor(n)}(t,ge)).$mount(e?t.elm:void 0,e)}},prepatch:function(t,e){var n=e.componentOptions;!function(t,e,n,r,o){var s=!!(o||t.$options._renderChildren||r.data.scopedSlots||t.$scopedSlots!==i);if(t.$options._parentVnode=r,t.$vnode=r,t._vnode&&(t._vnode.parent=r),t.$options._renderChildren=o,t.$attrs=r.data.attrs||i,t.$listeners=n||i,e&&t.$options.props){Ct(!1);for(var a=t._props,l=t.$options._propKeys||[],c=0;c<l.length;c++){var u=l[c],d=t.$options.props;a[u]=$t(u,d,e,t)}Ct(!0),t.$options.propsData=e}n=n||i;var h=t.$options._parentListeners;t.$options._parentListeners=n,fe(t,n,h),s&&(t.$slots=me(o,r.context),t.$forceUpdate())}(e.componentInstance=t.componentInstance,n.propsData,n.listeners,e,n.children)},insert:function(t){var e,n=t.context,i=t.componentInstance;i._isMounted||(i._isMounted=!0,we(i,"mounted")),t.data.keepAlive&&(n._isMounted?((e=i)._inactive=!1,xe.push(e)):_e(i,!0))},destroy:function(t){var e=t.componentInstance;e._isDestroyed||(t.data.keepAlive?function t(e,n){if(!(n&&(e._directInactive=!0,Ce(e))||e._inactive)){e._inactive=!0;for(var i=0;i<e.$children.length;i++)t(e.$children[i]);we(e,"deactivated")}}(e,!0):e.$destroy())}},rn=Object.keys(nn);function on(t,e,n,a,c){if(!r(t)){var u=n.$options._base;if(l(t)&&(t=u.extend(t)),"function"==typeof t){var d;if(r(t.cid)&&void 0===(t=function(t,e,n){if(s(t.error)&&o(t.errorComp))return t.errorComp;if(o(t.resolved))return t.resolved;if(s(t.loading)&&o(t.loadingComp))return t.loadingComp;if(!o(t.contexts)){var i=t.contexts=[n],a=!0,c=function(t){for(var e=0,n=i.length;e<n;e++)i[e].$forceUpdate();t&&(i.length=0)},u=$((function(n){t.resolved=le(n,e),a?i.length=0:c(!0)})),d=$((function(e){o(t.errorComp)&&(t.error=!0,c(!0))})),h=t(u,d);return l(h)&&("function"==typeof h.then?r(t.resolved)&&h.then(u,d):o(h.component)&&"function"==typeof h.component.then&&(h.component.then(u,d),o(h.error)&&(t.errorComp=le(h.error,e)),o(h.loading)&&(t.loadingComp=le(h.loading,e),0===h.delay?t.loading=!0:setTimeout((function(){r(t.resolved)&&r(t.error)&&(t.loading=!0,c(!1))}),h.delay||200)),o(h.timeout)&&setTimeout((function(){r(t.resolved)&&d(null)}),h.timeout))),a=!1,t.loading?t.loadingComp:t.resolved}t.contexts.push(n)}(d=t,u,n)))return function(t,e,n,i,r){var o=pt();return o.asyncFactory=t,o.asyncMeta={data:e,context:n,children:i,tag:r},o}(d,e,n,a,c);e=e||{},cn(t),o(e.model)&&function(t,e){var n=t.model&&t.model.prop||"value",i=t.model&&t.model.event||"input";(e.props||(e.props={}))[n]=e.model.value;var r=e.on||(e.on={}),s=r[i],a=e.model.callback;o(s)?(Array.isArray(s)?-1===s.indexOf(a):s!==a)&&(r[i]=[a].concat(s)):r[i]=a}(t.options,e);var h=function(t,e,n){var i=e.options.props;if(!r(i)){var s={},a=t.attrs,l=t.props;if(o(a)||o(l))for(var c in i){var u=k(c);oe(s,l,c,u,!0)||oe(s,a,c,u,!1)}return s}}(e,t);if(s(t.options.functional))return function(t,e,n,r,s){var a=t.options,l={},c=a.props;if(o(c))for(var u in c)l[u]=$t(u,c,e||i);else o(n.attrs)&&en(l,n.attrs),o(n.props)&&en(l,n.props);var d=new Qe(n,l,s,r,t),h=a.render.call(null,d._c,d);if(h instanceof dt)return tn(h,n,d.parent,a,d);if(Array.isArray(h)){for(var p=se(h)||[],f=new Array(p.length),m=0;m<p.length;m++)f[m]=tn(p[m],n,d.parent,a,d);return f}}(t,h,e,n,a);var p=e.on;if(e.on=e.nativeOn,s(t.options.abstract)){var f=e.slot;e={},f&&(e.slot=f)}!function(t){for(var e=t.hook||(t.hook={}),n=0;n<rn.length;n++){var i=rn[n],r=e[i],o=nn[i];r===o||r&&r._merged||(e[i]=r?sn(o,r):o)}}(e);var m=t.options.name||c;return new dt("vue-component-"+t.cid+(m?"-"+m:""),e,void 0,void 0,void 0,n,{Ctor:t,propsData:h,listeners:p,tag:c,children:a},d)}}}function sn(t,e){var n=function(n,i){t(n,i),e(n,i)};return n._merged=!0,n}function an(t,e,n,i,c,u){return(Array.isArray(n)||a(n))&&(c=i,i=n,n=void 0),s(u)&&(c=2),function(t,e,n,i,a){if(o(n)&&o(n.__ob__))return pt();o(n)&&o(n.is)&&(e=n.is);if(!e)return pt();0;Array.isArray(i)&&"function"==typeof i[0]&&((n=n||{}).scopedSlots={default:i[0]},i.length=0);2===a?i=se(i):1===a&&(i=function(t){for(var e=0;e<t.length;e++)if(Array.isArray(t[e]))return Array.prototype.concat.apply([],t);return t}(i));var c,u;if("string"==typeof e){var d;u=t.$vnode&&t.$vnode.ns||j.getTagNamespace(e),c=j.isReservedTag(e)?new dt(j.parsePlatformTagName(e),n,i,void 0,void 0,t):n&&n.pre||!o(d=Pt(t.$options,"components",e))?new dt(e,n,i,void 0,void 0,t):on(d,n,t,i,e)}else c=on(e,n,t,i);return Array.isArray(c)?c:o(c)?(o(u)&&function t(e,n,i){e.ns=n,"foreignObject"===e.tag&&(n=void 0,i=!0);if(o(e.children))for(var a=0,l=e.children.length;a<l;a++){var c=e.children[a];o(c.tag)&&(r(c.ns)||s(i)&&"svg"!==c.tag)&&t(c,n,i)}}(c,u),o(n)&&function(t){l(t.style)&&Qt(t.style);l(t.class)&&Qt(t.class)}(n),c):pt()}(t,e,n,i,c)}var ln=0;function cn(t){var e=t.options;if(t.super){var n=cn(t.super);if(n!==t.superOptions){t.superOptions=n;var i=function(t){var e,n=t.options,i=t.sealedOptions;for(var r in n)n[r]!==i[r]&&(e||(e={}),e[r]=n[r]);return e}(t);i&&I(t.extendOptions,i),(e=t.options=Dt(n,t.extendOptions)).name&&(e.components[e.name]=t)}}return e}function un(t){this._init(t)}function dn(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,i=n.cid,r=t._Ctor||(t._Ctor={});if(r[i])return r[i];var o=t.name||n.options.name;var s=function(t){this._init(t)};return(s.prototype=Object.create(n.prototype)).constructor=s,s.cid=e++,s.options=Dt(n.options,t),s.super=n,s.options.props&&function(t){var e=t.options.props;for(var n in e)De(t.prototype,"_props",n)}(s),s.options.computed&&function(t){var e=t.options.computed;for(var n in e)He(t.prototype,n,e[n])}(s),s.extend=n.extend,s.mixin=n.mixin,s.use=n.use,H.forEach((function(t){s[t]=n[t]})),o&&(s.options.components[o]=s),s.superOptions=n.options,s.extendOptions=t,s.sealedOptions=I({},s.options),r[i]=s,s}}function hn(t){return t&&(t.Ctor.options.name||t.tag)}function pn(t,e){return Array.isArray(t)?t.indexOf(e)>-1:"string"==typeof t?t.split(",").indexOf(e)>-1:!!d(t)&&t.test(e)}function fn(t,e){var n=t.cache,i=t.keys,r=t._vnode;for(var o in n){var s=n[o];if(s){var a=hn(s.componentOptions);a&&!e(a)&&mn(n,o,i,r)}}}function mn(t,e,n,i){var r=t[e];!r||i&&r.tag===i.tag||r.componentInstance.$destroy(),t[e]=null,y(n,e)}!function(t){t.prototype._init=function(t){var e=this;e._uid=ln++,e._isVue=!0,t&&t._isComponent?function(t,e){var n=t.$options=Object.create(t.constructor.options),i=e._parentVnode;n.parent=e.parent,n._parentVnode=i;var r=i.componentOptions;n.propsData=r.propsData,n._parentListeners=r.listeners,n._renderChildren=r.children,n._componentTag=r.tag,e.render&&(n.render=e.render,n.staticRenderFns=e.staticRenderFns)}(e,t):e.$options=Dt(cn(e.constructor),t||{},e),e._renderProxy=e,e._self=e,function(t){var e=t.$options,n=e.parent;if(n&&!e.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(t)}t.$parent=n,t.$root=n?n.$root:t,t.$children=[],t.$refs={},t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}(e),function(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&fe(t,e)}(e),function(t){t._vnode=null,t._staticTrees=null;var e=t.$options,n=t.$vnode=e._parentVnode,r=n&&n.context;t.$slots=me(e._renderChildren,r),t.$scopedSlots=i,t._c=function(e,n,i,r){return an(t,e,n,i,r,!1)},t.$createElement=function(e,n,i,r){return an(t,e,n,i,r,!0)};var o=n&&n.data;Tt(t,"$attrs",o&&o.attrs||i,null,!0),Tt(t,"$listeners",e._parentListeners||i,null,!0)}(e),we(e,"beforeCreate"),function(t){var e=Re(t.$options.inject,t);e&&(Ct(!1),Object.keys(e).forEach((function(n){Tt(t,n,e[n])})),Ct(!0))}(e),Pe(e),function(t){var e=t.$options.provide;e&&(t._provided="function"==typeof e?e.call(t):e)}(e),we(e,"created"),e.$options.el&&e.$mount(e.$options.el)}}(un),function(t){var e={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(t.prototype,"$data",e),Object.defineProperty(t.prototype,"$props",n),t.prototype.$set=xt,t.prototype.$delete=kt,t.prototype.$watch=function(t,e,n){if(u(e))return Fe(this,t,e,n);(n=n||{}).user=!0;var i=new Me(this,t,e,n);if(n.immediate)try{e.call(this,i.value)}catch(t){Ft(t,this,'callback for immediate watcher "'+i.expression+'"')}return function(){i.teardown()}}}(un),function(t){var e=/^hook:/;t.prototype.$on=function(t,n){var i=this;if(Array.isArray(t))for(var r=0,o=t.length;r<o;r++)i.$on(t[r],n);else(i._events[t]||(i._events[t]=[])).push(n),e.test(t)&&(i._hasHookEvent=!0);return i},t.prototype.$once=function(t,e){var n=this;function i(){n.$off(t,i),e.apply(n,arguments)}return i.fn=e,n.$on(t,i),n},t.prototype.$off=function(t,e){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(Array.isArray(t)){for(var i=0,r=t.length;i<r;i++)n.$off(t[i],e);return n}var o,s=n._events[t];if(!s)return n;if(!e)return n._events[t]=null,n;for(var a=s.length;a--;)if((o=s[a])===e||o.fn===e){s.splice(a,1);break}return n},t.prototype.$emit=function(t){var e=this,n=e._events[t];if(n){n=n.length>1?E(n):n;for(var i=E(arguments,1),r=0,o=n.length;r<o;r++)try{n[r].apply(e,i)}catch(n){Ft(n,e,'event handler for "'+t+'"')}}return e}}(un),function(t){t.prototype._update=function(t,e){var n=this,i=n.$el,r=n._vnode,o=be(n);n._vnode=t,n.$el=r?n.__patch__(r,t):n.__patch__(n.$el,t,e,!1),o(),i&&(i.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},t.prototype.$forceUpdate=function(){this._watcher&&this._watcher.update()},t.prototype.$destroy=function(){var t=this;if(!t._isBeingDestroyed){we(t,"beforeDestroy"),t._isBeingDestroyed=!0;var e=t.$parent;!e||e._isBeingDestroyed||t.$options.abstract||y(e.$children,t),t._watcher&&t._watcher.teardown();for(var n=t._watchers.length;n--;)t._watchers[n].teardown();t._data.__ob__&&t._data.__ob__.vmCount--,t._isDestroyed=!0,t.__patch__(t._vnode,null),we(t,"destroyed"),t.$off(),t.$el&&(t.$el.__vue__=null),t.$vnode&&(t.$vnode.parent=null)}}}(un),function(t){Ge(t.prototype),t.prototype.$nextTick=function(t){return Jt(t,this)},t.prototype._render=function(){var t,e=this,n=e.$options,r=n.render,o=n._parentVnode;o&&(e.$scopedSlots=o.data.scopedSlots||i),e.$vnode=o;try{t=r.call(e._renderProxy,e.$createElement)}catch(n){Ft(n,e,"render"),t=e._vnode}return t instanceof dt||(t=pt()),t.parent=o,t}}(un);var vn=[String,RegExp,Array],yn={KeepAlive:{name:"keep-alive",abstract:!0,props:{include:vn,exclude:vn,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var t in this.cache)mn(this.cache,t,this.keys)},mounted:function(){var t=this;this.$watch("include",(function(e){fn(t,(function(t){return pn(e,t)}))})),this.$watch("exclude",(function(e){fn(t,(function(t){return!pn(e,t)}))}))},render:function(){var t=this.$slots.default,e=ue(t),n=e&&e.componentOptions;if(n){var i=hn(n),r=this.include,o=this.exclude;if(r&&(!i||!pn(r,i))||o&&i&&pn(o,i))return e;var s=this.cache,a=this.keys,l=null==e.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):e.key;s[l]?(e.componentInstance=s[l].componentInstance,y(a,l),a.push(l)):(s[l]=e,a.push(l),this.max&&a.length>parseInt(this.max)&&mn(s,a[0],a,this._vnode)),e.data.keepAlive=!0}return e||t&&t[0]}}};!function(t){var e={get:function(){return j}};Object.defineProperty(t,"config",e),t.util={warn:ot,extend:I,mergeOptions:Dt,defineReactive:Tt},t.set=xt,t.delete=kt,t.nextTick=Jt,t.options=Object.create(null),H.forEach((function(e){t.options[e+"s"]=Object.create(null)})),t.options._base=t,I(t.options.components,yn),function(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var n=E(arguments,1);return n.unshift(this),"function"==typeof t.install?t.install.apply(t,n):"function"==typeof t&&t.apply(null,n),e.push(t),this}}(t),function(t){t.mixin=function(t){return this.options=Dt(this.options,t),this}}(t),dn(t),function(t){H.forEach((function(e){t[e]=function(t,n){return n?("component"===e&&u(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"==typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}}))}(t)}(un),Object.defineProperty(un.prototype,"$isServer",{get:tt}),Object.defineProperty(un.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(un,"FunctionalRenderContext",{value:Qe}),un.version="2.5.22";var gn=m("style,class"),bn=m("input,textarea,option,select,progress"),Cn=m("contenteditable,draggable,spellcheck"),_n=m("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),wn="http://www.w3.org/1999/xlink",Tn=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},xn=function(t){return Tn(t)?t.slice(6,t.length):""},kn=function(t){return null==t||!1===t};function Ln(t){for(var e=t.data,n=t,i=t;o(i.componentInstance);)(i=i.componentInstance._vnode)&&i.data&&(e=En(i.data,e));for(;o(n=n.parent);)n&&n.data&&(e=En(e,n.data));return function(t,e){if(o(t)||o(e))return In(t,Sn(e));return""}(e.staticClass,e.class)}function En(t,e){return{staticClass:In(t.staticClass,e.staticClass),class:o(t.class)?[t.class,e.class]:e.class}}function In(t,e){return t?e?t+" "+e:t:e||""}function Sn(t){return Array.isArray(t)?function(t){for(var e,n="",i=0,r=t.length;i<r;i++)o(e=Sn(t[i]))&&""!==e&&(n&&(n+=" "),n+=e);return n}(t):l(t)?function(t){var e="";for(var n in t)t[n]&&(e&&(e+=" "),e+=n);return e}(t):"string"==typeof t?t:""}var On={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},Mn=m("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),An=m("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),Dn=function(t){return Mn(t)||An(t)};var Pn=Object.create(null);var $n=m("text,number,password,search,email,tel,url");var Hn=Object.freeze({createElement:function(t,e){var n=document.createElement(t);return"select"!==t||e.data&&e.data.attrs&&void 0!==e.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n},createElementNS:function(t,e){return document.createElementNS(On[t],e)},createTextNode:function(t){return document.createTextNode(t)},createComment:function(t){return document.createComment(t)},insertBefore:function(t,e,n){t.insertBefore(e,n)},removeChild:function(t,e){t.removeChild(e)},appendChild:function(t,e){t.appendChild(e)},parentNode:function(t){return t.parentNode},nextSibling:function(t){return t.nextSibling},tagName:function(t){return t.tagName},setTextContent:function(t,e){t.textContent=e},setStyleScope:function(t,e){t.setAttribute(e,"")}}),Kn={create:function(t,e){jn(e)},update:function(t,e){t.data.ref!==e.data.ref&&(jn(t,!0),jn(e))},destroy:function(t){jn(t,!0)}};function jn(t,e){var n=t.data.ref;if(o(n)){var i=t.context,r=t.componentInstance||t.elm,s=i.$refs;e?Array.isArray(s[n])?y(s[n],r):s[n]===r&&(s[n]=void 0):t.data.refInFor?Array.isArray(s[n])?s[n].indexOf(r)<0&&s[n].push(r):s[n]=[r]:s[n]=r}}var Fn=new dt("",{},[]),Rn=["create","activate","update","remove","destroy"];function Nn(t,e){return t.key===e.key&&(t.tag===e.tag&&t.isComment===e.isComment&&o(t.data)===o(e.data)&&function(t,e){if("input"!==t.tag)return!0;var n,i=o(n=t.data)&&o(n=n.attrs)&&n.type,r=o(n=e.data)&&o(n=n.attrs)&&n.type;return i===r||$n(i)&&$n(r)}(t,e)||s(t.isAsyncPlaceholder)&&t.asyncFactory===e.asyncFactory&&r(e.asyncFactory.error))}function zn(t,e,n){var i,r,s={};for(i=e;i<=n;++i)o(r=t[i].key)&&(s[r]=i);return s}var Bn={create:Un,update:Un,destroy:function(t){Un(t,Fn)}};function Un(t,e){(t.data.directives||e.data.directives)&&function(t,e){var n,i,r,o=t===Fn,s=e===Fn,a=Wn(t.data.directives,t.context),l=Wn(e.data.directives,e.context),c=[],u=[];for(n in l)i=a[n],r=l[n],i?(r.oldValue=i.value,Xn(r,"update",e,t),r.def&&r.def.componentUpdated&&u.push(r)):(Xn(r,"bind",e,t),r.def&&r.def.inserted&&c.push(r));if(c.length){var d=function(){for(var n=0;n<c.length;n++)Xn(c[n],"inserted",e,t)};o?re(e,"insert",d):d()}u.length&&re(e,"postpatch",(function(){for(var n=0;n<u.length;n++)Xn(u[n],"componentUpdated",e,t)}));if(!o)for(n in a)l[n]||Xn(a[n],"unbind",t,t,s)}(t,e)}var qn=Object.create(null);function Wn(t,e){var n,i,r=Object.create(null);if(!t)return r;for(n=0;n<t.length;n++)(i=t[n]).modifiers||(i.modifiers=qn),r[Vn(i)]=i,i.def=Pt(e.$options,"directives",i.name);return r}function Vn(t){return t.rawName||t.name+"."+Object.keys(t.modifiers||{}).join(".")}function Xn(t,e,n,i,r){var o=t.def&&t.def[e];if(o)try{o(n.elm,t,n,i,r)}catch(i){Ft(i,n.context,"directive "+t.name+" "+e+" hook")}}var Zn=[Kn,Bn];function Yn(t,e){var n=e.componentOptions;if(!(o(n)&&!1===n.Ctor.options.inheritAttrs||r(t.data.attrs)&&r(e.data.attrs))){var i,s,a=e.elm,l=t.data.attrs||{},c=e.data.attrs||{};for(i in o(c.__ob__)&&(c=e.data.attrs=I({},c)),c)s=c[i],l[i]!==s&&Jn(a,i,s);for(i in(V||Z)&&c.value!==l.value&&Jn(a,"value",c.value),l)r(c[i])&&(Tn(i)?a.removeAttributeNS(wn,xn(i)):Cn(i)||a.removeAttribute(i))}}function Jn(t,e,n){t.tagName.indexOf("-")>-1?Gn(t,e,n):_n(e)?kn(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):Cn(e)?t.setAttribute(e,kn(n)||"false"===n?"false":"true"):Tn(e)?kn(n)?t.removeAttributeNS(wn,xn(e)):t.setAttributeNS(wn,e,n):Gn(t,e,n)}function Gn(t,e,n){if(kn(n))t.removeAttribute(e);else{if(V&&!X&&("TEXTAREA"===t.tagName||"INPUT"===t.tagName)&&"placeholder"===e&&!t.__ieph){var i=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",i)};t.addEventListener("input",i),t.__ieph=!0}t.setAttribute(e,n)}}var Qn={create:Yn,update:Yn};function ti(t,e){var n=e.elm,i=e.data,s=t.data;if(!(r(i.staticClass)&&r(i.class)&&(r(s)||r(s.staticClass)&&r(s.class)))){var a=Ln(e),l=n._transitionClasses;o(l)&&(a=In(a,Sn(l))),a!==n._prevClass&&(n.setAttribute("class",a),n._prevClass=a)}}var ei,ni={create:ti,update:ti};function ii(t,e,n){var i=ei;return function r(){var o=e.apply(null,arguments);null!==o&&oi(t,r,n,i)}}function ri(t,e,n,i){var r;e=(r=e)._withTask||(r._withTask=function(){Vt=!0;try{return r.apply(null,arguments)}finally{Vt=!1}}),ei.addEventListener(t,e,G?{capture:n,passive:i}:n)}function oi(t,e,n,i){(i||ei).removeEventListener(t,e._withTask||e,n)}function si(t,e){if(!r(t.data.on)||!r(e.data.on)){var n=e.data.on||{},i=t.data.on||{};ei=e.elm,function(t){if(o(t.__r)){var e=V?"change":"input";t[e]=[].concat(t.__r,t[e]||[]),delete t.__r}o(t.__c)&&(t.change=[].concat(t.__c,t.change||[]),delete t.__c)}(n),ie(n,i,ri,oi,ii,e.context),ei=void 0}}var ai={create:si,update:si};function li(t,e){if(!r(t.data.domProps)||!r(e.data.domProps)){var n,i,s=e.elm,a=t.data.domProps||{},l=e.data.domProps||{};for(n in o(l.__ob__)&&(l=e.data.domProps=I({},l)),a)r(l[n])&&(s[n]="");for(n in l){if(i=l[n],"textContent"===n||"innerHTML"===n){if(e.children&&(e.children.length=0),i===a[n])continue;1===s.childNodes.length&&s.removeChild(s.childNodes[0])}if("value"===n){s._value=i;var c=r(i)?"":String(i);ci(s,c)&&(s.value=c)}else s[n]=i}}}function ci(t,e){return!t.composing&&("OPTION"===t.tagName||function(t,e){var n=!0;try{n=document.activeElement!==t}catch(t){}return n&&t.value!==e}(t,e)||function(t,e){var n=t.value,i=t._vModifiers;if(o(i)){if(i.lazy)return!1;if(i.number)return f(n)!==f(e);if(i.trim)return n.trim()!==e.trim()}return n!==e}(t,e))}var ui={create:li,update:li},di=C((function(t){var e={},n=/:(.+)/;return t.split(/;(?![^(]*\))/g).forEach((function(t){if(t){var i=t.split(n);i.length>1&&(e[i[0].trim()]=i[1].trim())}})),e}));function hi(t){var e=pi(t.style);return t.staticStyle?I(t.staticStyle,e):e}function pi(t){return Array.isArray(t)?S(t):"string"==typeof t?di(t):t}var fi,mi=/^--/,vi=/\s*!important$/,yi=function(t,e,n){if(mi.test(e))t.style.setProperty(e,n);else if(vi.test(n))t.style.setProperty(e,n.replace(vi,""),"important");else{var i=bi(e);if(Array.isArray(n))for(var r=0,o=n.length;r<o;r++)t.style[i]=n[r];else t.style[i]=n}},gi=["Webkit","Moz","ms"],bi=C((function(t){if(fi=fi||document.createElement("div").style,"filter"!==(t=w(t))&&t in fi)return t;for(var e=t.charAt(0).toUpperCase()+t.slice(1),n=0;n<gi.length;n++){var i=gi[n]+e;if(i in fi)return i}}));function Ci(t,e){var n=e.data,i=t.data;if(!(r(n.staticStyle)&&r(n.style)&&r(i.staticStyle)&&r(i.style))){var s,a,l=e.elm,c=i.staticStyle,u=i.normalizedStyle||i.style||{},d=c||u,h=pi(e.data.style)||{};e.data.normalizedStyle=o(h.__ob__)?I({},h):h;var p=function(t,e){var n,i={};if(e)for(var r=t;r.componentInstance;)(r=r.componentInstance._vnode)&&r.data&&(n=hi(r.data))&&I(i,n);(n=hi(t.data))&&I(i,n);for(var o=t;o=o.parent;)o.data&&(n=hi(o.data))&&I(i,n);return i}(e,!0);for(a in d)r(p[a])&&yi(l,a,"");for(a in p)(s=p[a])!==d[a]&&yi(l,a,null==s?"":s)}}var _i={create:Ci,update:Ci},wi=/\s+/;function Ti(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(wi).forEach((function(e){return t.classList.add(e)})):t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function xi(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(wi).forEach((function(e){return t.classList.remove(e)})):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var n=" "+(t.getAttribute("class")||"")+" ",i=" "+e+" ";n.indexOf(i)>=0;)n=n.replace(i," ");(n=n.trim())?t.setAttribute("class",n):t.removeAttribute("class")}}function ki(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&I(e,Li(t.name||"v")),I(e,t),e}return"string"==typeof t?Li(t):void 0}}var Li=C((function(t){return{enterClass:t+"-enter",enterToClass:t+"-enter-to",enterActiveClass:t+"-enter-active",leaveClass:t+"-leave",leaveToClass:t+"-leave-to",leaveActiveClass:t+"-leave-active"}})),Ei=B&&!X,Ii="transition",Si="transitionend",Oi="animation",Mi="animationend";Ei&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Ii="WebkitTransition",Si="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Oi="WebkitAnimation",Mi="webkitAnimationEnd"));var Ai=B?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function Di(t){Ai((function(){Ai(t)}))}function Pi(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),Ti(t,e))}function $i(t,e){t._transitionClasses&&y(t._transitionClasses,e),xi(t,e)}function Hi(t,e,n){var i=ji(t,e),r=i.type,o=i.timeout,s=i.propCount;if(!r)return n();var a="transition"===r?Si:Mi,l=0,c=function(){t.removeEventListener(a,u),n()},u=function(e){e.target===t&&++l>=s&&c()};setTimeout((function(){l<s&&c()}),o+1),t.addEventListener(a,u)}var Ki=/\b(transform|all)(,|$)/;function ji(t,e){var n,i=window.getComputedStyle(t),r=(i[Ii+"Delay"]||"").split(", "),o=(i[Ii+"Duration"]||"").split(", "),s=Fi(r,o),a=(i[Oi+"Delay"]||"").split(", "),l=(i[Oi+"Duration"]||"").split(", "),c=Fi(a,l),u=0,d=0;return"transition"===e?s>0&&(n="transition",u=s,d=o.length):"animation"===e?c>0&&(n="animation",u=c,d=l.length):d=(n=(u=Math.max(s,c))>0?s>c?"transition":"animation":null)?"transition"===n?o.length:l.length:0,{type:n,timeout:u,propCount:d,hasTransform:"transition"===n&&Ki.test(i[Ii+"Property"])}}function Fi(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max.apply(null,e.map((function(e,n){return Ri(e)+Ri(t[n])})))}function Ri(t){return 1e3*Number(t.slice(0,-1).replace(",","."))}function Ni(t,e){var n=t.elm;o(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());var i=ki(t.data.transition);if(!r(i)&&!o(n._enterCb)&&1===n.nodeType){for(var s=i.css,a=i.type,c=i.enterClass,u=i.enterToClass,d=i.enterActiveClass,h=i.appearClass,p=i.appearToClass,m=i.appearActiveClass,v=i.beforeEnter,y=i.enter,g=i.afterEnter,b=i.enterCancelled,C=i.beforeAppear,_=i.appear,w=i.afterAppear,T=i.appearCancelled,x=i.duration,k=ge,L=ge.$vnode;L&&L.parent;)k=(L=L.parent).context;var E=!k._isMounted||!t.isRootInsert;if(!E||_||""===_){var I=E&&h?h:c,S=E&&m?m:d,O=E&&p?p:u,M=E&&C||v,A=E&&"function"==typeof _?_:y,D=E&&w||g,P=E&&T||b,H=f(l(x)?x.enter:x);0;var K=!1!==s&&!X,j=Ui(A),F=n._enterCb=$((function(){K&&($i(n,O),$i(n,S)),F.cancelled?(K&&$i(n,I),P&&P(n)):D&&D(n),n._enterCb=null}));t.data.show||re(t,"insert",(function(){var e=n.parentNode,i=e&&e._pending&&e._pending[t.key];i&&i.tag===t.tag&&i.elm._leaveCb&&i.elm._leaveCb(),A&&A(n,F)})),M&&M(n),K&&(Pi(n,I),Pi(n,S),Di((function(){$i(n,I),F.cancelled||(Pi(n,O),j||(Bi(H)?setTimeout(F,H):Hi(n,a,F)))}))),t.data.show&&(e&&e(),A&&A(n,F)),K||j||F()}}}function zi(t,e){var n=t.elm;o(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());var i=ki(t.data.transition);if(r(i)||1!==n.nodeType)return e();if(!o(n._leaveCb)){var s=i.css,a=i.type,c=i.leaveClass,u=i.leaveToClass,d=i.leaveActiveClass,h=i.beforeLeave,p=i.leave,m=i.afterLeave,v=i.leaveCancelled,y=i.delayLeave,g=i.duration,b=!1!==s&&!X,C=Ui(p),_=f(l(g)?g.leave:g);0;var w=n._leaveCb=$((function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[t.key]=null),b&&($i(n,u),$i(n,d)),w.cancelled?(b&&$i(n,c),v&&v(n)):(e(),m&&m(n)),n._leaveCb=null}));y?y(T):T()}function T(){w.cancelled||(!t.data.show&&n.parentNode&&((n.parentNode._pending||(n.parentNode._pending={}))[t.key]=t),h&&h(n),b&&(Pi(n,c),Pi(n,d),Di((function(){$i(n,c),w.cancelled||(Pi(n,u),C||(Bi(_)?setTimeout(w,_):Hi(n,a,w)))}))),p&&p(n,w),b||C||w())}}function Bi(t){return"number"==typeof t&&!isNaN(t)}function Ui(t){if(r(t))return!1;var e=t.fns;return o(e)?Ui(Array.isArray(e)?e[0]:e):(t._length||t.length)>1}function qi(t,e){!0!==e.data.show&&Ni(e)}var Wi=function(t){var e,n,i={},l=t.modules,c=t.nodeOps;for(e=0;e<Rn.length;++e)for(i[Rn[e]]=[],n=0;n<l.length;++n)o(l[n][Rn[e]])&&i[Rn[e]].push(l[n][Rn[e]]);function u(t){var e=c.parentNode(t);o(e)&&c.removeChild(e,t)}function d(t,e,n,r,a,l,u){if(o(t.elm)&&o(l)&&(t=l[u]=mt(t)),t.isRootInsert=!a,!function(t,e,n,r){var a=t.data;if(o(a)){var l=o(t.componentInstance)&&a.keepAlive;if(o(a=a.hook)&&o(a=a.init)&&a(t,!1),o(t.componentInstance))return h(t,e),p(n,t.elm,r),s(l)&&function(t,e,n,r){var s,a=t;for(;a.componentInstance;)if(a=a.componentInstance._vnode,o(s=a.data)&&o(s=s.transition)){for(s=0;s<i.activate.length;++s)i.activate[s](Fn,a);e.push(a);break}p(n,t.elm,r)}(t,e,n,r),!0}}(t,e,n,r)){var d=t.data,m=t.children,v=t.tag;o(v)?(t.elm=t.ns?c.createElementNS(t.ns,v):c.createElement(v,t),g(t),f(t,m,e),o(d)&&y(t,e),p(n,t.elm,r)):s(t.isComment)?(t.elm=c.createComment(t.text),p(n,t.elm,r)):(t.elm=c.createTextNode(t.text),p(n,t.elm,r))}}function h(t,e){o(t.data.pendingInsert)&&(e.push.apply(e,t.data.pendingInsert),t.data.pendingInsert=null),t.elm=t.componentInstance.$el,v(t)?(y(t,e),g(t)):(jn(t),e.push(t))}function p(t,e,n){o(t)&&(o(n)?c.parentNode(n)===t&&c.insertBefore(t,e,n):c.appendChild(t,e))}function f(t,e,n){if(Array.isArray(e)){0;for(var i=0;i<e.length;++i)d(e[i],n,t.elm,null,!0,e,i)}else a(t.text)&&c.appendChild(t.elm,c.createTextNode(String(t.text)))}function v(t){for(;t.componentInstance;)t=t.componentInstance._vnode;return o(t.tag)}function y(t,n){for(var r=0;r<i.create.length;++r)i.create[r](Fn,t);o(e=t.data.hook)&&(o(e.create)&&e.create(Fn,t),o(e.insert)&&n.push(t))}function g(t){var e;if(o(e=t.fnScopeId))c.setStyleScope(t.elm,e);else for(var n=t;n;)o(e=n.context)&&o(e=e.$options._scopeId)&&c.setStyleScope(t.elm,e),n=n.parent;o(e=ge)&&e!==t.context&&e!==t.fnContext&&o(e=e.$options._scopeId)&&c.setStyleScope(t.elm,e)}function b(t,e,n,i,r,o){for(;i<=r;++i)d(n[i],o,t,e,!1,n,i)}function C(t){var e,n,r=t.data;if(o(r))for(o(e=r.hook)&&o(e=e.destroy)&&e(t),e=0;e<i.destroy.length;++e)i.destroy[e](t);if(o(e=t.children))for(n=0;n<t.children.length;++n)C(t.children[n])}function _(t,e,n,i){for(;n<=i;++n){var r=e[n];o(r)&&(o(r.tag)?(w(r),C(r)):u(r.elm))}}function w(t,e){if(o(e)||o(t.data)){var n,r=i.remove.length+1;for(o(e)?e.listeners+=r:e=function(t,e){function n(){0==--n.listeners&&u(t)}return n.listeners=e,n}(t.elm,r),o(n=t.componentInstance)&&o(n=n._vnode)&&o(n.data)&&w(n,e),n=0;n<i.remove.length;++n)i.remove[n](t,e);o(n=t.data.hook)&&o(n=n.remove)?n(t,e):e()}else u(t.elm)}function T(t,e,n,i){for(var r=n;r<i;r++){var s=e[r];if(o(s)&&Nn(t,s))return r}}function x(t,e,n,a,l,u){if(t!==e){o(e.elm)&&o(a)&&(e=a[l]=mt(e));var h=e.elm=t.elm;if(s(t.isAsyncPlaceholder))o(e.asyncFactory.resolved)?E(t.elm,e,n):e.isAsyncPlaceholder=!0;else if(s(e.isStatic)&&s(t.isStatic)&&e.key===t.key&&(s(e.isCloned)||s(e.isOnce)))e.componentInstance=t.componentInstance;else{var p,f=e.data;o(f)&&o(p=f.hook)&&o(p=p.prepatch)&&p(t,e);var m=t.children,y=e.children;if(o(f)&&v(e)){for(p=0;p<i.update.length;++p)i.update[p](t,e);o(p=f.hook)&&o(p=p.update)&&p(t,e)}r(e.text)?o(m)&&o(y)?m!==y&&function(t,e,n,i,s){var a,l,u,h=0,p=0,f=e.length-1,m=e[0],v=e[f],y=n.length-1,g=n[0],C=n[y],w=!s;for(0;h<=f&&p<=y;)r(m)?m=e[++h]:r(v)?v=e[--f]:Nn(m,g)?(x(m,g,i,n,p),m=e[++h],g=n[++p]):Nn(v,C)?(x(v,C,i,n,y),v=e[--f],C=n[--y]):Nn(m,C)?(x(m,C,i,n,y),w&&c.insertBefore(t,m.elm,c.nextSibling(v.elm)),m=e[++h],C=n[--y]):Nn(v,g)?(x(v,g,i,n,p),w&&c.insertBefore(t,v.elm,m.elm),v=e[--f],g=n[++p]):(r(a)&&(a=zn(e,h,f)),r(l=o(g.key)?a[g.key]:T(g,e,h,f))?d(g,i,t,m.elm,!1,n,p):Nn(u=e[l],g)?(x(u,g,i,n,p),e[l]=void 0,w&&c.insertBefore(t,u.elm,m.elm)):d(g,i,t,m.elm,!1,n,p),g=n[++p]);h>f?b(t,r(n[y+1])?null:n[y+1].elm,n,p,y,i):p>y&&_(0,e,h,f)}(h,m,y,n,u):o(y)?(o(t.text)&&c.setTextContent(h,""),b(h,null,y,0,y.length-1,n)):o(m)?_(0,m,0,m.length-1):o(t.text)&&c.setTextContent(h,""):t.text!==e.text&&c.setTextContent(h,e.text),o(f)&&o(p=f.hook)&&o(p=p.postpatch)&&p(t,e)}}}function k(t,e,n){if(s(n)&&o(t.parent))t.parent.data.pendingInsert=e;else for(var i=0;i<e.length;++i)e[i].data.hook.insert(e[i])}var L=m("attrs,class,staticClass,staticStyle,key");function E(t,e,n,i){var r,a=e.tag,l=e.data,c=e.children;if(i=i||l&&l.pre,e.elm=t,s(e.isComment)&&o(e.asyncFactory))return e.isAsyncPlaceholder=!0,!0;if(o(l)&&(o(r=l.hook)&&o(r=r.init)&&r(e,!0),o(r=e.componentInstance)))return h(e,n),!0;if(o(a)){if(o(c))if(t.hasChildNodes())if(o(r=l)&&o(r=r.domProps)&&o(r=r.innerHTML)){if(r!==t.innerHTML)return!1}else{for(var u=!0,d=t.firstChild,p=0;p<c.length;p++){if(!d||!E(d,c[p],n,i)){u=!1;break}d=d.nextSibling}if(!u||d)return!1}else f(e,c,n);if(o(l)){var m=!1;for(var v in l)if(!L(v)){m=!0,y(e,n);break}!m&&l.class&&Qt(l.class)}}else t.data!==e.text&&(t.data=e.text);return!0}return function(t,e,n,a){if(!r(e)){var l,u=!1,h=[];if(r(t))u=!0,d(e,h);else{var p=o(t.nodeType);if(!p&&Nn(t,e))x(t,e,h,null,null,a);else{if(p){if(1===t.nodeType&&t.hasAttribute("data-server-rendered")&&(t.removeAttribute("data-server-rendered"),n=!0),s(n)&&E(t,e,h))return k(e,h,!0),t;l=t,t=new dt(c.tagName(l).toLowerCase(),{},[],void 0,l)}var f=t.elm,m=c.parentNode(f);if(d(e,h,f._leaveCb?null:m,c.nextSibling(f)),o(e.parent))for(var y=e.parent,g=v(e);y;){for(var b=0;b<i.destroy.length;++b)i.destroy[b](y);if(y.elm=e.elm,g){for(var w=0;w<i.create.length;++w)i.create[w](Fn,y);var T=y.data.hook.insert;if(T.merged)for(var L=1;L<T.fns.length;L++)T.fns[L]()}else jn(y);y=y.parent}o(m)?_(0,[t],0,0):o(t.tag)&&C(t)}}return k(e,h,u),e.elm}o(t)&&C(t)}}({nodeOps:Hn,modules:[Qn,ni,ai,ui,_i,B?{create:qi,activate:qi,remove:function(t,e){!0!==t.data.show?zi(t,e):e()}}:{}].concat(Zn)});X&&document.addEventListener("selectionchange",(function(){var t=document.activeElement;t&&t.vmodel&&tr(t,"input")}));var Vi={inserted:function(t,e,n,i){"select"===n.tag?(i.elm&&!i.elm._vOptions?re(n,"postpatch",(function(){Vi.componentUpdated(t,e,n)})):Xi(t,e,n.context),t._vOptions=[].map.call(t.options,Ji)):("textarea"===n.tag||$n(t.type))&&(t._vModifiers=e.modifiers,e.modifiers.lazy||(t.addEventListener("compositionstart",Gi),t.addEventListener("compositionend",Qi),t.addEventListener("change",Qi),X&&(t.vmodel=!0)))},componentUpdated:function(t,e,n){if("select"===n.tag){Xi(t,e,n.context);var i=t._vOptions,r=t._vOptions=[].map.call(t.options,Ji);if(r.some((function(t,e){return!D(t,i[e])})))(t.multiple?e.value.some((function(t){return Yi(t,r)})):e.value!==e.oldValue&&Yi(e.value,r))&&tr(t,"change")}}};function Xi(t,e,n){Zi(t,e,n),(V||Z)&&setTimeout((function(){Zi(t,e,n)}),0)}function Zi(t,e,n){var i=e.value,r=t.multiple;if(!r||Array.isArray(i)){for(var o,s,a=0,l=t.options.length;a<l;a++)if(s=t.options[a],r)o=P(i,Ji(s))>-1,s.selected!==o&&(s.selected=o);else if(D(Ji(s),i))return void(t.selectedIndex!==a&&(t.selectedIndex=a));r||(t.selectedIndex=-1)}}function Yi(t,e){return e.every((function(e){return!D(e,t)}))}function Ji(t){return"_value"in t?t._value:t.value}function Gi(t){t.target.composing=!0}function Qi(t){t.target.composing&&(t.target.composing=!1,tr(t.target,"input"))}function tr(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function er(t){return!t.componentInstance||t.data&&t.data.transition?t:er(t.componentInstance._vnode)}var nr={model:Vi,show:{bind:function(t,e,n){var i=e.value,r=(n=er(n)).data&&n.data.transition,o=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;i&&r?(n.data.show=!0,Ni(n,(function(){t.style.display=o}))):t.style.display=i?o:"none"},update:function(t,e,n){var i=e.value;!i!=!e.oldValue&&((n=er(n)).data&&n.data.transition?(n.data.show=!0,i?Ni(n,(function(){t.style.display=t.__vOriginalDisplay})):zi(n,(function(){t.style.display="none"}))):t.style.display=i?t.__vOriginalDisplay:"none")},unbind:function(t,e,n,i,r){r||(t.style.display=t.__vOriginalDisplay)}}},ir={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function rr(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?rr(ue(e.children)):t}function or(t){var e={},n=t.$options;for(var i in n.propsData)e[i]=t[i];var r=n._parentListeners;for(var o in r)e[w(o)]=r[o];return e}function sr(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}var ar=function(t){return t.tag||ce(t)},lr=function(t){return"show"===t.name},cr={name:"transition",props:ir,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(ar)).length){0;var i=this.mode;0;var r=n[0];if(function(t){for(;t=t.parent;)if(t.data.transition)return!0}(this.$vnode))return r;var o=rr(r);if(!o)return r;if(this._leaving)return sr(t,r);var s="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?s+"comment":s+o.tag:a(o.key)?0===String(o.key).indexOf(s)?o.key:s+o.key:o.key;var l=(o.data||(o.data={})).transition=or(this),c=this._vnode,u=rr(c);if(o.data.directives&&o.data.directives.some(lr)&&(o.data.show=!0),u&&u.data&&!function(t,e){return e.key===t.key&&e.tag===t.tag}(o,u)&&!ce(u)&&(!u.componentInstance||!u.componentInstance._vnode.isComment)){var d=u.data.transition=I({},l);if("out-in"===i)return this._leaving=!0,re(d,"afterLeave",(function(){e._leaving=!1,e.$forceUpdate()})),sr(t,r);if("in-out"===i){if(ce(o))return c;var h,p=function(){h()};re(l,"afterEnter",p),re(l,"enterCancelled",p),re(d,"delayLeave",(function(t){h=t}))}}return r}}},ur=I({tag:String,moveClass:String},ir);function dr(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function hr(t){t.data.newPos=t.elm.getBoundingClientRect()}function pr(t){var e=t.data.pos,n=t.data.newPos,i=e.left-n.left,r=e.top-n.top;if(i||r){t.data.moved=!0;var o=t.elm.style;o.transform=o.WebkitTransform="translate("+i+"px,"+r+"px)",o.transitionDuration="0s"}}delete ur.mode;var fr={Transition:cr,TransitionGroup:{props:ur,beforeMount:function(){var t=this,e=this._update;this._update=function(n,i){var r=be(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,r(),e.call(t,n,i)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),i=this.prevChildren=this.children,r=this.$slots.default||[],o=this.children=[],s=or(this),a=0;a<r.length;a++){var l=r[a];if(l.tag)if(null!=l.key&&0!==String(l.key).indexOf("__vlist"))o.push(l),n[l.key]=l,(l.data||(l.data={})).transition=s;else;}if(i){for(var c=[],u=[],d=0;d<i.length;d++){var h=i[d];h.data.transition=s,h.data.pos=h.elm.getBoundingClientRect(),n[h.key]?c.push(h):u.push(h)}this.kept=t(e,null,c),this.removed=u}return t(e,null,o)},updated:function(){var t=this.prevChildren,e=this.moveClass||(this.name||"v")+"-move";t.length&&this.hasMove(t[0].elm,e)&&(t.forEach(dr),t.forEach(hr),t.forEach(pr),this._reflow=document.body.offsetHeight,t.forEach((function(t){if(t.data.moved){var n=t.elm,i=n.style;Pi(n,e),i.transform=i.WebkitTransform=i.transitionDuration="",n.addEventListener(Si,n._moveCb=function t(i){i&&i.target!==n||i&&!/transform$/.test(i.propertyName)||(n.removeEventListener(Si,t),n._moveCb=null,$i(n,e))})}})))},methods:{hasMove:function(t,e){if(!Ei)return!1;if(this._hasMove)return this._hasMove;var n=t.cloneNode();t._transitionClasses&&t._transitionClasses.forEach((function(t){xi(n,t)})),Ti(n,e),n.style.display="none",this.$el.appendChild(n);var i=ji(n);return this.$el.removeChild(n),this._hasMove=i.hasTransform}}}};un.config.mustUseProp=function(t,e,n){return"value"===n&&bn(t)&&"button"!==e||"selected"===n&&"option"===t||"checked"===n&&"input"===t||"muted"===n&&"video"===t},un.config.isReservedTag=Dn,un.config.isReservedAttr=gn,un.config.getTagNamespace=function(t){return An(t)?"svg":"math"===t?"math":void 0},un.config.isUnknownElement=function(t){if(!B)return!0;if(Dn(t))return!1;if(t=t.toLowerCase(),null!=Pn[t])return Pn[t];var e=document.createElement(t);return t.indexOf("-")>-1?Pn[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:Pn[t]=/HTMLUnknownElement/.test(e.toString())},I(un.options.directives,nr),I(un.options.components,fr),un.prototype.__patch__=B?Wi:O,un.prototype.$mount=function(t,e){return function(t,e,n){var i;return t.$el=e,t.$options.render||(t.$options.render=pt),we(t,"beforeMount"),i=function(){t._update(t._render(),n)},new Me(t,i,O,{before:function(){t._isMounted&&!t._isDestroyed&&we(t,"beforeUpdate")}},!0),n=!1,null==t.$vnode&&(t._isMounted=!0,we(t,"mounted")),t}(this,t=t&&B?function(t){if("string"==typeof t){var e=document.querySelector(t);return e||document.createElement("div")}return t}(t):void 0,e)},B&&setTimeout((function(){j.devtools&&et&&et.emit("init",un)}),0),e.a=un}).call(this,n(13),n(16).setImmediate)},function(t,e){ /*! (C) Andrea Giammarchi - @WebReflection - ISC Style License */ !function(t,e){"use strict";function n(){var t=k.splice(0,k.length);for(Zt=0;t.length;)t.shift().call(null,t.shift())}function i(t,e){for(var n=0,i=t.length;n<i;n++)f(t[n],e)}function r(t){return function(e){$t(e)&&(f(e,t),rt.length&&i(e.querySelectorAll(rt),t))}}function o(t){var e=Rt.call(t,"is"),n=t.nodeName.toUpperCase(),i=st.call(nt,e?Q+e.toUpperCase():G+n);return e&&-1<i&&!s(n,e)?-1:i}function s(t,e){return-1<rt.indexOf(t+'[is="'+e+'"]')}function a(t){var e=t.currentTarget,n=t.attrChange,i=t.attrName,r=t.target,o=t[V]||2,s=t[X]||3;!ee||r&&r!==e||!e[N]||"style"===i||t.prevValue===t.newValue&&(""!==t.newValue||n!==o&&n!==s)||e[N](i,n===o?null:t.prevValue,n===s?null:t.newValue)}function l(t){var e=r(t);return function(t){k.push(e,t.target),Zt&&clearTimeout(Zt),Zt=setTimeout(n,1)}}function c(t){te&&(te=!1,t.currentTarget.removeEventListener(Y,c)),rt.length&&i((t.target||w).querySelectorAll(rt),t.detail===F?F:K),Dt&&function(){for(var t,e=0,n=Ht.length;e<n;e++)t=Ht[e],ot.contains(t)||(n--,Ht.splice(e--,1),f(t,F))}()}function u(t,e){var n=this;Bt.call(n,t,e),L.call(n,{target:n})}function d(t,e,n){var i=e.apply(t,n),r=o(i);return-1<r&&A(i,it[r]),n.pop()&&rt.length&&function(t){for(var e,n=0,i=t.length;n<i;n++)e=t[n],A(e,it[o(e)])}(i.querySelectorAll(rt)),i}function h(t,e){St(t,e),S?S.observe(t,Vt):(Qt&&(t.setAttribute=u,t[$]=I(t),t[H](J,L)),t[H](Z,a)),t[q]&&ee&&(t.created=!0,t[q](),t.created=!1)}function p(t){throw new Error("A "+t+" type is already registered")}function f(t,e){var n,i,r=o(t);-1<r&&(M(t,it[r]),r=0,e!==K||t[K]?e!==F||t[F]||(t[K]=!1,t[F]=!0,i="disconnected",r=1):(t[F]=!1,t[K]=!0,i="connected",r=1,Dt&&st.call(Ht,t)<0&&Ht.push(t)),r&&(n=t[e+j]||t[i+j])&&n.call(t))}function m(){}function v(t,e,n){var i=n&&n[R]||"",r=e.prototype,o=It(r),s=e.observedAttributes||dt,a={prototype:o};Pt(o,q,{value:function(){if(Tt)Tt=!1;else if(!this[yt]){this[yt]=!0,new e(this),r[q]&&r[q].call(this);var t=xt[Lt.get(e)];(!bt||t.create.length>1)&&b(this)}}}),Pt(o,N,{value:function(t){-1<st.call(s,t)&&r[N]&&r[N].apply(this,arguments)}}),r[B]&&Pt(o,z,{value:r[B]}),r[U]&&Pt(o,W,{value:r[U]}),i&&(a[R]=i),t=t.toUpperCase(),xt[t]={constructor:e,create:i?[i,Et(t)]:[t]},Lt.set(e,t),w[P](t.toLowerCase(),a),C(t),kt[t].r()}function y(t){var e=xt[t.toUpperCase()];return e&&e.constructor}function g(t){return"string"==typeof t?t:t&&t.is||""}function b(t){for(var e,n=t[N],i=n?t.attributes:dt,r=i.length;r--;)e=i[r],n.call(t,e.name||e.nodeName,null,e.value||e.nodeValue)}function C(t){return(t=t.toUpperCase())in kt||(kt[t]={},kt[t].p=new wt((function(e){kt[t].r=e}))),kt[t].p}function _(){gt&&delete t.customElements,ut(t,"customElements",{configurable:!0,value:new m}),ut(t,"CustomElementRegistry",{configurable:!0,value:m});for(var e=x.get(/^HTML[A-Z]*[a-z]/),n=e.length;n--;function(e){var n=t[e];if(n){t[e]=function(t){var e,i;return t||(t=this),t[yt]||(Tt=!0,e=xt[Lt.get(t.constructor)],(t=(i=bt&&1===e.create.length)?Reflect.construct(n,dt,e.constructor):w.createElement.apply(w,e.create))[yt]=!0,Tt=!1,i||b(t)),t},t[e].prototype=n.prototype;try{n.prototype.constructor=t[e]}catch(i){!0,ut(n,yt,{value:t[e]})}}}(e[n]));w.createElement=function(t,e){var n=g(e);return n?Wt.call(this,t,Et(n)):Wt.call(this,t)},Yt||(Gt=!0,w[P](""))}var w=t.document,T=t.Object,x=function(t){var e,n,i,r,o=/^[A-Z]+[a-z]/,s=function(t,e){(e=e.toLowerCase())in a||(a[t]=(a[t]||[]).concat(e),a[e]=a[e.toUpperCase()]=t)},a=(T.create||T)(null),l={};for(n in t)for(r in t[n])for(i=t[n][r],a[r]=i,e=0;e<i.length;e++)a[i[e].toLowerCase()]=a[i[e].toUpperCase()]=r;return l.get=function(t){return"string"==typeof t?a[t]||(o.test(t)?[]:""):function(t){var e,n=[];for(e in a)t.test(e)&&n.push(e);return n}(t)},l.set=function(t,e){return o.test(t)?s(t,e):s(e,t),l},l}({collections:{HTMLAllCollection:["all"],HTMLCollection:["forms"],HTMLFormControlsCollection:["elements"],HTMLOptionsCollection:["options"]},elements:{Element:["element"],HTMLAnchorElement:["a"],HTMLAppletElement:["applet"],HTMLAreaElement:["area"],HTMLAttachmentElement:["attachment"],HTMLAudioElement:["audio"],HTMLBRElement:["br"],HTMLBaseElement:["base"],HTMLBodyElement:["body"],HTMLButtonElement:["button"],HTMLCanvasElement:["canvas"],HTMLContentElement:["content"],HTMLDListElement:["dl"],HTMLDataElement:["data"],HTMLDataListElement:["datalist"],HTMLDetailsElement:["details"],HTMLDialogElement:["dialog"],HTMLDirectoryElement:["dir"],HTMLDivElement:["div"],HTMLDocument:["document"],HTMLElement:["element","abbr","address","article","aside","b","bdi","bdo","cite","code","command","dd","dfn","dt","em","figcaption","figure","footer","header","i","kbd","mark","nav","noscript","rp","rt","ruby","s","samp","section","small","strong","sub","summary","sup","u","var","wbr"],HTMLEmbedElement:["embed"],HTMLFieldSetElement:["fieldset"],HTMLFontElement:["font"],HTMLFormElement:["form"],HTMLFrameElement:["frame"],HTMLFrameSetElement:["frameset"],HTMLHRElement:["hr"],HTMLHeadElement:["head"],HTMLHeadingElement:["h1","h2","h3","h4","h5","h6"],HTMLHtmlElement:["html"],HTMLIFrameElement:["iframe"],HTMLImageElement:["img"],HTMLInputElement:["input"],HTMLKeygenElement:["keygen"],HTMLLIElement:["li"],HTMLLabelElement:["label"],HTMLLegendElement:["legend"],HTMLLinkElement:["link"],HTMLMapElement:["map"],HTMLMarqueeElement:["marquee"],HTMLMediaElement:["media"],HTMLMenuElement:["menu"],HTMLMenuItemElement:["menuitem"],HTMLMetaElement:["meta"],HTMLMeterElement:["meter"],HTMLModElement:["del","ins"],HTMLOListElement:["ol"],HTMLObjectElement:["object"],HTMLOptGroupElement:["optgroup"],HTMLOptionElement:["option"],HTMLOutputElement:["output"],HTMLParagraphElement:["p"],HTMLParamElement:["param"],HTMLPictureElement:["picture"],HTMLPreElement:["pre"],HTMLProgressElement:["progress"],HTMLQuoteElement:["blockquote","q","quote"],HTMLScriptElement:["script"],HTMLSelectElement:["select"],HTMLShadowElement:["shadow"],HTMLSlotElement:["slot"],HTMLSourceElement:["source"],HTMLSpanElement:["span"],HTMLStyleElement:["style"],HTMLTableCaptionElement:["caption"],HTMLTableCellElement:["td","th"],HTMLTableColElement:["col","colgroup"],HTMLTableElement:["table"],HTMLTableRowElement:["tr"],HTMLTableSectionElement:["thead","tbody","tfoot"],HTMLTemplateElement:["template"],HTMLTextAreaElement:["textarea"],HTMLTimeElement:["time"],HTMLTitleElement:["title"],HTMLTrackElement:["track"],HTMLUListElement:["ul"],HTMLUnknownElement:["unknown","vhgroupv","vkeygen"],HTMLVideoElement:["video"]},nodes:{Attr:["node"],Audio:["audio"],CDATASection:["node"],CharacterData:["node"],Comment:["#comment"],Document:["#document"],DocumentFragment:["#document-fragment"],DocumentType:["node"],HTMLDocument:["#document"],Image:["img"],Option:["option"],ProcessingInstruction:["node"],ShadowRoot:["#shadow-root"],Text:["#text"],XMLDocument:["xml"]}});"object"!=typeof e&&(e={type:e||"auto"});var k,L,E,I,S,O,M,A,D,P="registerElement",$="__"+P+(1e5*t.Math.random()>>0),H="addEventListener",K="attached",j="Callback",F="detached",R="extends",N="attributeChanged"+j,z=K+j,B="connected"+j,U="disconnected"+j,q="created"+j,W=F+j,V="ADDITION",X="REMOVAL",Z="DOMAttrModified",Y="DOMContentLoaded",J="DOMSubtreeModified",G="<",Q="=",tt=/^[A-Z][A-Z0-9]*(?:-[A-Z0-9]+)+$/,et=["ANNOTATION-XML","COLOR-PROFILE","FONT-FACE","FONT-FACE-SRC","FONT-FACE-URI","FONT-FACE-FORMAT","FONT-FACE-NAME","MISSING-GLYPH"],nt=[],it=[],rt="",ot=w.documentElement,st=nt.indexOf||function(t){for(var e=this.length;e--&&this[e]!==t;);return e},at=T.prototype,lt=at.hasOwnProperty,ct=at.isPrototypeOf,ut=T.defineProperty,dt=[],ht=T.getOwnPropertyDescriptor,pt=T.getOwnPropertyNames,ft=T.getPrototypeOf,mt=T.setPrototypeOf,vt=!!T.__proto__,yt="__dreCEv1",gt=t.customElements,bt=!/^force/.test(e.type)&&!!(gt&&gt.define&&gt.get&&gt.whenDefined),Ct=T.create||T,_t=t.Map||function(){var t,e=[],n=[];return{get:function(t){return n[st.call(e,t)]},set:function(i,r){(t=st.call(e,i))<0?n[e.push(i)-1]=r:n[t]=r}}},wt=t.Promise||function(t){function e(t){for(i=!0;n.length;)n.shift()(t)}var n=[],i=!1,r={catch:function(){return r},then:function(t){return n.push(t),i&&setTimeout(e,1),r}};return t(e),r},Tt=!1,xt=Ct(null),kt=Ct(null),Lt=new _t,Et=function(t){return t.toLowerCase()},It=T.create||function t(e){return e?(t.prototype=e,new t):this},St=mt||(vt?function(t,e){return t.__proto__=e,t}:pt&&ht?function(){function t(t,e){for(var n,i=pt(e),r=0,o=i.length;r<o;r++)n=i[r],lt.call(t,n)||ut(t,n,ht(e,n))}return function(e,n){do{t(e,n)}while((n=ft(n))&&!ct.call(n,e));return e}}():function(t,e){for(var n in e)t[n]=e[n];return t}),Ot=t.MutationObserver||t.WebKitMutationObserver,Mt=t.HTMLAnchorElement,At=(t.HTMLElement||t.Element||t.Node).prototype,Dt=!ct.call(At,ot),Pt=Dt?function(t,e,n){return t[e]=n.value,t}:ut,$t=Dt?function(t){return 1===t.nodeType}:function(t){return ct.call(At,t)},Ht=Dt&&[],Kt=At.attachShadow,jt=At.cloneNode,Ft=At.dispatchEvent,Rt=At.getAttribute,Nt=At.hasAttribute,zt=At.removeAttribute,Bt=At.setAttribute,Ut=w.createElement,qt=w.importNode,Wt=Ut,Vt=Ot&&{attributes:!0,characterData:!0,attributeOldValue:!0},Xt=Ot||function(t){Qt=!1,ot.removeEventListener(Z,Xt)},Zt=0,Yt=P in w&&!/^force-all/.test(e.type),Jt=!0,Gt=!1,Qt=!0,te=!0,ee=!0;if(Ot&&((D=w.createElement("div")).innerHTML="<div><div></div></div>",new Ot((function(t,e){if(t[0]&&"childList"==t[0].type&&!t[0].removedNodes[0].childNodes.length){var n=(D=ht(At,"innerHTML"))&&D.set;n&&ut(At,"innerHTML",{set:function(t){for(;this.lastChild;)this.removeChild(this.lastChild);n.call(this,t)}})}e.disconnect(),D=null})).observe(D,{childList:!0,subtree:!0}),D.innerHTML=""),Yt||(mt||vt?(M=function(t,e){ct.call(e,t)||h(t,e)},A=h):A=M=function(t,e){t[$]||(t[$]=T(!0),h(t,e))},Dt?(Qt=!1,function(){var t=ht(At,H),e=t.value,n=function(t){var e=new CustomEvent(Z,{bubbles:!0});e.attrName=t,e.prevValue=Rt.call(this,t),e.newValue=null,e[X]=e.attrChange=2,zt.call(this,t),Ft.call(this,e)},i=function(t,e){var n=Nt.call(this,t),i=n&&Rt.call(this,t),r=new CustomEvent(Z,{bubbles:!0});Bt.call(this,t,e),r.attrName=t,r.prevValue=n?i:null,r.newValue=e,n?r.MODIFICATION=r.attrChange=1:r[V]=r.attrChange=0,Ft.call(this,r)},r=function(t){var e,n=t.currentTarget,i=n[$],r=t.propertyName;i.hasOwnProperty(r)&&(i=i[r],(e=new CustomEvent(Z,{bubbles:!0})).attrName=i.name,e.prevValue=i.value||null,e.newValue=i.value=n[r]||null,null==e.prevValue?e[V]=e.attrChange=0:e.MODIFICATION=e.attrChange=1,Ft.call(n,e))};t.value=function(t,o,s){t===Z&&this[N]&&this.setAttribute!==i&&(this[$]={className:{name:"class",value:this.className}},this.setAttribute=i,this.removeAttribute=n,e.call(this,"propertychange",r)),e.call(this,t,o,s)},ut(At,H,t)}()):Ot||(ot[H](Z,Xt),ot.setAttribute($,1),ot.removeAttribute($),Qt&&(L=function(t){var e,n,i,r=this;if(r===t.target){for(i in e=r[$],r[$]=n=I(r),n){if(!(i in e))return E(0,r,i,e[i],n[i],V);if(n[i]!==e[i])return E(1,r,i,e[i],n[i],"MODIFICATION")}for(i in e)if(!(i in n))return E(2,r,i,e[i],n[i],X)}},E=function(t,e,n,i,r,o){var s={attrChange:t,currentTarget:e,attrName:n,prevValue:i,newValue:r};s[o]=t,a(s)},I=function(t){for(var e,n,i={},r=t.attributes,o=0,s=r.length;o<s;o++)"setAttribute"!==(n=(e=r[o]).name)&&(i[n]=e.value);return i})),w[P]=function(t,e){if(n=t.toUpperCase(),Jt&&(Jt=!1,Ot?(S=function(t,e){function n(t,e){for(var n=0,i=t.length;n<i;e(t[n++]));}return new Ot((function(i){for(var r,o,s,a=0,l=i.length;a<l;a++)"childList"===(r=i[a]).type?(n(r.addedNodes,t),n(r.removedNodes,e)):(o=r.target,ee&&o[N]&&"style"!==r.attributeName&&(s=Rt.call(o,r.attributeName))!==r.oldValue&&o[N](r.attributeName,r.oldValue,s))}))}(r(K),r(F)),(O=function(t){return S.observe(t,{childList:!0,subtree:!0}),t})(w),Kt&&(At.attachShadow=function(){return O(Kt.apply(this,arguments))})):(k=[],w[H]("DOMNodeInserted",l(K)),w[H]("DOMNodeRemoved",l(F))),w[H](Y,c),w[H]("readystatechange",c),w.importNode=function(t,e){switch(t.nodeType){case 1:return d(w,qt,[t,!!e]);case 11:for(var n=w.createDocumentFragment(),i=t.childNodes,r=i.length,o=0;o<r;o++)n.appendChild(w.importNode(i[o],!!e));return n;default:return jt.call(t,!!e)}},At.cloneNode=function(t){return d(this,jt,[!!t])}),Gt)return Gt=!1;if(-2<st.call(nt,Q+n)+st.call(nt,G+n)&&p(t),!tt.test(n)||-1<st.call(et,n))throw new Error("The type "+t+" is invalid");var n,o,s=function(){return u?w.createElement(h,n):w.createElement(h)},a=e||at,u=lt.call(a,R),h=u?e[R].toUpperCase():n;return u&&-1<st.call(nt,G+h)&&p(h),o=nt.push((u?Q:G)+n)-1,rt=rt.concat(rt.length?",":"",u?h+'[is="'+t.toLowerCase()+'"]':h),s.prototype=it[o]=lt.call(a,"prototype")?a.prototype:It(At),rt.length&&i(w.querySelectorAll(rt),K),s},w.createElement=Wt=function(t,e){var n=g(e),i=n?Ut.call(w,t,Et(n)):Ut.call(w,t),r=""+t,o=st.call(nt,(n?Q:G)+(n||r).toUpperCase()),a=-1<o;return n&&(i.setAttribute("is",n=n.toLowerCase()),a&&(a=s(r.toUpperCase(),n))),ee=!w.createElement.innerHTMLHelper,a&&A(i,it[o]),i}),m.prototype={constructor:m,define:bt?function(t,e,n){if(n)v(t,e,n);else{var i=t.toUpperCase();xt[i]={constructor:e,create:[i]},Lt.set(e,i),gt.define(t,e)}}:v,get:bt?function(t){return gt.get(t)||y(t)}:y,whenDefined:bt?function(t){return wt.race([gt.whenDefined(t),C(t)])}:C},!gt||/^force/.test(e.type))_();else if(!e.noBuiltIn)try{!function(e,n,i){var r=new RegExp("^<a\\s+is=('|\")"+i+"\\1></a>$");if(n[R]="a",(e.prototype=It(Mt.prototype)).constructor=e,t.customElements.define(i,e,n),!r.test(w.createElement("a",{is:i}).outerHTML)||!r.test((new e).outerHTML))throw n}((function t(){return Reflect.construct(Mt,[],t)}),{},"document-register-element-a")}catch(t){_()}if(!e.noBuiltIn)try{if(Ut.call(w,"a","a").outerHTML.indexOf("is")<0)throw{}}catch(t){Et=function(t){return{is:t.toLowerCase()}}}}(window)},function(t,e,n){(function(t){var i=void 0!==t&&t||"undefined"!=typeof self&&self||window,r=Function.prototype.apply;function o(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new o(r.call(setTimeout,i,arguments),clearTimeout)},e.setInterval=function(){return new o(r.call(setInterval,i,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(i,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout((function(){t._onTimeout&&t._onTimeout()}),e))},n(17),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,n(13))},function(t,e,n){(function(t,e){!function(t,n){"use strict";if(!t.setImmediate){var i,r,o,s,a,l=1,c={},u=!1,d=t.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(t);h=h&&h.setTimeout?h:t,"[object process]"==={}.toString.call(t.process)?i=function(t){e.nextTick((function(){f(t)}))}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?t.MessageChannel?((o=new MessageChannel).port1.onmessage=function(t){f(t.data)},i=function(t){o.port2.postMessage(t)}):d&&"onreadystatechange"in d.createElement("script")?(r=d.documentElement,i=function(t){var e=d.createElement("script");e.onreadystatechange=function(){f(t),e.onreadystatechange=null,r.removeChild(e),e=null},r.appendChild(e)}):i=function(t){setTimeout(f,0,t)}:(s="setImmediate$"+Math.random()+"$",a=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(s)&&f(+e.data.slice(s.length))},t.addEventListener?t.addEventListener("message",a,!1):t.attachEvent("onmessage",a),i=function(e){t.postMessage(s+e,"*")}),h.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n<e.length;n++)e[n]=arguments[n+1];var r={callback:t,args:e};return c[l]=r,i(l),l++},h.clearImmediate=p}function p(t){delete c[t]}function f(t){if(u)setTimeout(f,0,t);else{var e=c[t];if(e){u=!0;try{!function(t){var e=t.callback,n=t.args;switch(n.length){case 0:e();break;case 1:e(n[0]);break;case 2:e(n[0],n[1]);break;case 3:e(n[0],n[1],n[2]);break;default:e.apply(void 0,n)}}(e)}finally{p(t),u=!1}}}}}("undefined"==typeof self?void 0===t?this:t:self)}).call(this,n(13),n(18))},function(t,e){var n,i,r=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{i="function"==typeof clearTimeout?clearTimeout:s}catch(t){i=s}}();var l,c=[],u=!1,d=-1;function h(){u&&l&&(u=!1,l.length?c=l.concat(c):d=-1,c.length&&p())}function p(){if(!u){var t=a(h);u=!0;for(var e=c.length;e;){for(l=c,c=[];++d<e;)l&&l[d].run();d=-1,e=c.length}l=null,u=!1,function(t){if(i===clearTimeout)return clearTimeout(t);if((i===s||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(t);try{i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}(t)}}function f(t,e){this.fun=t,this.array=e}function m(){}r.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];c.push(new f(t,e)),1!==c.length||u||a(p)},f.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=m,r.addListener=m,r.once=m,r.off=m,r.removeListener=m,r.removeAllListeners=m,r.emit=m,r.prependListener=m,r.prependOnceListener=m,r.listeners=function(t){return[]},r.binding=function(t){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(t){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},function(t,e,n){"use strict";var i=n(3);n.n(i).a},function(t,e,n){(t.exports=n(0)(!1)).push([t.i,"\n.conns[data-v-9e1325b0] {\n box-sizing: border-box;\n padding: 0;\n background-color: #fbfbfb;\n}\n\n/* This seems to prevent the problem of sometimes not receiving a 'mouseleave',\n which could leave a connector highlighted after the mouse left TheConns. */\n.conns *[data-v-9e1325b0] {\n pointer-events: none;\n}\n.conns g.conn-remove-icon[data-v-9e1325b0]:not([class*=\"fade-leave\"]) {\n pointer-events: auto;\n}\n.fade-enter[data-v-9e1325b0]:not(.pos-highlight),\n.fade-leave-to[data-v-9e1325b0] {\n opacity: 0;\n}\n.fade-enter-active[data-v-9e1325b0]:not(.pos-highlight) {\n transition: opacity 0.08s ease-in;\n}\n.fade-enter-active.conn-remove-icon[data-v-9e1325b0] {\n transition-duration: 0.16s;\n}\n.fade-leave-active[data-v-9e1325b0] {\n transition: opacity 0.14s ease-in;\n}\n",""])},function(t,e){t.exports=function(t){var e="undefined"!=typeof window&&window.location;if(!e)throw new Error("fixUrls requires window.location");if(!t||"string"!=typeof t)return t;var n=e.protocol+"//"+e.host,i=n+e.pathname.replace(/\/[^\/]*$/,"/");return t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,(function(t,e){var r,o=e.trim().replace(/^"(.*)"$/,(function(t,e){return e})).replace(/^'(.*)'$/,(function(t,e){return e}));return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(o)?t:(r=0===o.indexOf("//")?o:0===o.indexOf("/")?n+o:i+o.replace(/^\.\//,""),"url("+JSON.stringify(r)+")")}))}},function(t,e,n){"use strict";var i=n(4);n.n(i).a},function(t,e,n){(t.exports=n(0)(!1)).push([t.i,"\n.input-wrap[data-v-819a3320] {\n position: relative;\n}\n.input-wrap[data-v-819a3320],\n.input[data-v-819a3320] { /* The $-marked ones undo the automatic 'user agent stylesheets' */\n width: 100%;\n height: 100%;\n padding: 0; /* $ */\n font: inherit; /* $ */\n font-size: 13px; /* Larger than the ListItems. */\n color: #000;\n cursor: text;\n background-color: #fff;\n border: 0; /* $ */\n outline: none; /* $ */\n box-shadow: none; /* $ */\n}\n.placehold[data-v-819a3320] {\n position: absolute;\n top: 0;\n left: 0;\n color: #aaa;\n pointer-events: none;\n transition: 0.2s ease all;\n}\n.placehold.focus[data-v-819a3320] {\n top: -2px;\n left: 2px;\n font-size: 10px;\n color: #ccc;\n opacity: 1;\n}\n.placehold.hidden[data-v-819a3320] {\n display: none;\n}\n.error[data-v-819a3320] {\n background-color: #ffe8e8;\n}\n",""])},function(t,e,n){"use strict";var i=n(5);n.n(i).a},function(t,e,n){(t.exports=n(0)(!1)).push([t.i,"\n.item-part-str[data-v-0e6a8568] {\n font-weight: bold;\n}\n.item-part-descr[data-v-0e6a8568] {\n padding-left: 4px;\n}\n.item-part-info[data-v-0e6a8568] {\n padding-left: 5px;\n}\n.item-part-extra[data-v-0e6a8568] {\n padding-left: 4px;\n}\n.item > .item-part-str[data-v-0e6a8568] {\n color: #3b5998;\n}\n.item > .item-part-descr[data-v-0e6a8568] {\n color: #222;\n}\n.item > .item-part-info[data-v-0e6a8568] {\n color: #aaa;\n}\n",""])},function(t,e,n){"use strict";var i=n(6);n.n(i).a},function(t,e,n){(t.exports=n(0)(!1)).push([t.i,'\n.item-type-literal[data-v-b1fa2252] {\n padding-left: 11px;\n font-weight: bold;\n}\n.item.item-type-literal[data-v-b1fa2252] {\n color: #929292;\n}\n.item-type-literal[data-v-b1fa2252]::after {\n margin-left: 4px;\n content: "▸";\n}\n',""])},function(t,e,n){"use strict";var i=n(7);n.n(i).a},function(t,e,n){(t.exports=n(0)(!1)).push([t.i,"\n.list[data-v-1938b968] {\n position: absolute;\n z-index: 2;\n display: block;\n min-width: 320px;\n margin: 4px 0 0 -4px;\n line-height: 14px; /* Prevents special chars from making ListItems higher. */\n cursor: default;\n background-color: #fff;\n border: 1px solid #999;\n}\n.item[data-v-1938b968] {\n padding: 2px 3px 3px 4px;\n -moz-user-select: none;\n -khtml-user-select: none;\n -webkit-user-select: none;\n -o-user-select: none;\n -ms-user-select: none;\n user-select: none;\n border: 0 solid #fff;\n border-width: 1px 0;\n}\n.item-pos-first[data-v-1938b968] {\n margin-top: 2px;\n}\n.item-pos-last[data-v-1938b968] {\n margin-bottom: 2px;\n}\n.item-type-number[data-v-1938b968],\n.item-type-ref[data-v-1938b968],\n.item-type-fixed[data-v-1938b968],\n.item-type-fixed-last[data-v-1938b968] {\n background-color: #f4f4f4;\n border-color: #f4f4f4;\n}\n.item-type-number[data-v-1938b968],\n.item-type-ref[data-v-1938b968],\n.item-type-fixed-last[data-v-1938b968] {\n border-bottom-color: #ddd;\n}\n.item-type-literal[data-v-1938b968] {\n background-color: #fcfcfc;\n border-top-color: #ddd;\n border-bottom-color: #fcfcfc;\n}\n.item-state-active[data-v-1938b968] {\n background-color: #e6ebf4;\n border-color: #ced6ea;\n}\n.item-type-literal.item-state-active[data-v-1938b968] {\n background-color: #e6ebf4;\n border-top-color: #c9d1e7;\n border-bottom-color: #e6ebf4;\n}\n",""])},function(t,e,n){"use strict";var i=n(8);n.n(i).a},function(t,e,n){(t.exports=n(0)(!1)).push([t.i,"\n.spinner[data-v-9aab1482] {\n position: absolute;\n z-index: 3;\n display: block;\n width: 9px;\n height: 9px;\n margin: 9px 0 0 0;\n pointer-events: none;\n border: 2px solid;\n border-color: #ccc transparent #ccc transparent;\n border-radius: 50%;\n animation: spinning-data-v-9aab1482 1.2s linear infinite;\n}\n.spinner.list-closed[data-v-9aab1482] {\n margin-top: 6px;\n}\n.fade-enter-active[data-v-9aab1482] {\n transition: opacity 0.5s;\n transition-delay: 10ms;\n}\n.fade-enter[data-v-9aab1482],\n.fade-leave[data-v-9aab1482], \n.fade-leave-to[data-v-9aab1482] {\n opacity: 0;\n}\n@keyframes spinning-data-v-9aab1482 {\n0% { transform: rotate(0deg);\n}\n100% { transform: rotate(360deg);\n}\n}\n",""])},function(t,e,n){"use strict";var i=n(9);n.n(i).a},function(t,e,n){(t.exports=n(0)(!1)).push([t.i,'\n.vsm-autocomplete[data-v-7667f44a] {\n overflow: hidden;\n font-size: 11px;\n}\n.vsm-autocomplete[data-v-7667f44a],\n.input[data-v-7667f44a] {\n font-family: "lucida grande", tahoma, verdana, arial, sans-serif;\n}\n',""])},function(t,e,n){"use strict";var i=n(10);n.n(i).a},function(t,e,n){(t.exports=n(0)(!1)).push([t.i,'\n.popup[data-v-a3f7a6e6],\n.arrow[data-v-a3f7a6e6],\n.arrow-inner[data-v-a3f7a6e6],\n.hover-extend[data-v-a3f7a6e6] {\n position: absolute;\n display: block;\n line-height: normal;\n cursor: default;\n}\n.popup[data-v-a3f7a6e6] {\n z-index: 4; /* This places it above any Term\'s TheList and TheSpinner */\n width: 240px;\n margin-top: 8px;\n border: 1px solid #c4c4c4;\n box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);\n}\n.hover-extend[data-v-a3f7a6e6] {\n /* Put all `.ext*` elem.s\' coo.-origin back at Term\'s bottom-left corner: */\n margin-top: -9px; /* Equals `.arrow-inner`\'s `top` */\n margin-left: -1px; /* Equals `.popup`\'s `border-left-width` */\n background-color: transparent;\n}\n.ext3[data-v-a3f7a6e6] { /* => No \'mouseleave\' from the visual gap between popup & Terms */\n width: 100%; /* Fallback */\n width: calc(100% + 2px); /* Adds `.popup`\'s left&right border */\n height: 9px; /* Equals: minus `.arrow`\'s `top` */\n\n /* Note: `.ext1/2` => Same for gap between Term\'s left/right neighbor */\n}\n.arrow[data-v-a3f7a6e6],\n.arrow-inner[data-v-a3f7a6e6] {\n top: -9px;\n left: 1px;\n width: 0;\n height: 0;\n border-right: 9px solid transparent;\n border-bottom: 9px solid #c4c4c4; /* Equals `.popup`\'s `border-color` */\n border-left: 9px solid transparent;\n}\n.arrow-inner[data-v-a3f7a6e6] {\n top: -7.5px; /* A bit below `.arrow` => only `.arrow`\'s top-borders show */\n left: 2.5px;\n border-width: 0 7.5px 7.5px 7.5px; /* Make it not overlap `.content` */\n border-bottom-color: #fff; /* Equals `.content`\'s `background-color` */\n}\n.arrow-inner.no-info-panel[data-v-a3f7a6e6] {\n border-bottom-color: #f6f6f6; /* Equals `.menu`\'s `background-color` */\n}\n.content[data-v-a3f7a6e6] { /* Covers (vertically-down-shifted) `.arrow-inner`\'s bottom part */\n z-index: 500; /* Equals `.popup`\'s `z-index` + 1 : to cover `arrow-inner` */\n width: 100%;\n color: #000;\n background-color: #fff;\n}\n.popup[data-v-a3f7a6e6],\n.content[data-v-a3f7a6e6] {\n border-radius: 1.5px;\n}\n.info[data-v-a3f7a6e6] {\n max-height: 111px;\n padding: 8px 0 0 0;\n overflow: auto;\n border-bottom: 1px solid #c4c4c4;\n}\n.info[data-v-a3f7a6e6]::after { /* Instead of padding-bottom. Circumvents bug in Firefox 64 */\n display: block;\n height: 8px;\n line-height: 0;\n content: " ";\n}\n.info > div[data-v-a3f7a6e6] {\n padding: 0 8px 0 9px;\n}\n.info > div[data-v-a3f7a6e6]:not(:first-child)::before,\n.menu > div[data-v-a3f7a6e6]:not(:first-child)::before {\n display: block;\n height: 0;\n margin: 7px -2px 5px -2px;\n line-height: 0;\n content: " ";\n border-top: 1px dotted #e0e0e0;\n}\n.menu > div[data-v-a3f7a6e6]:not(:first-child)::before {\n margin: 2px 0 2px 0;\n border-top: 1px solid #d7d7d7; /* Color: equals `.menu-sep`\'s bkgr-color */\n}\n.str[data-v-a3f7a6e6] {\n font-size: 12px;\n font-weight: bold;\n}\n.descr[data-v-a3f7a6e6] {\n min-height: 14px;\n padding: 6px 0 0 1px;\n}\n.dict[data-v-a3f7a6e6] {\n padding: 6px 0 0 0;\n}\n.grey[data-v-a3f7a6e6] {\n color: #888;\n}\n.info[data-v-a3f7a6e6] a { /* `>>>` makes it work with `v-html`-injected HTML-code. */\n color: #6a88d4;\n text-decoration: none;\n}\n.info[data-v-a3f7a6e6] a:hover {\n text-decoration: underline;\n}\n.info-settings[data-v-a3f7a6e6] {\n font-size: 10px;\n color: #aaa;\n}\n.info-settings > div[data-v-a3f7a6e6] {\n padding-top: 2px;\n}\n.info-settings > div > div[data-v-a3f7a6e6]:first-child {\n padding-top: 1px;\n}\n.dict[data-v-a3f7a6e6]::before {\n content: "Dict: ";\n}\n.comma-sep > span[data-v-a3f7a6e6]:not(:last-child)::after {\n content: ", ";\n}\n.class-id[data-v-a3f7a6e6]::before {\n content: "Class: ";\n}\n.parent-id[data-v-a3f7a6e6]::before {\n content: "\\a0Parent: "; /* \'\\a0\' = \'&nbsp;\' */\n}\n.inst-id[data-v-a3f7a6e6]::before {\n content: "\\a0Inst: ";\n}\n.info-settings .list > div[data-v-a3f7a6e6]::before {\n padding-left: 6px;\n content: "- ";\n}\n.query-filter[data-v-a3f7a6e6]::before {\n content: "Autocomplete limits to: ";\n}\n.query-sort[data-v-a3f7a6e6]::before {\n content: "Autocomplete prioritizes: ";\n}\n.query-fixedterms[data-v-a3f7a6e6]::before {\n content: "Autocomplete\'s fixedTerms: ";\n}\n.query-z[data-v-a3f7a6e6]::before {\n content: "Customizers get only extra: ";\n}\n.widths[data-v-a3f7a6e6]::before {\n content: "Widths: ";\n}\n.placeholder[data-v-a3f7a6e6]::before {\n content: "Placeholder: ";\n}\n.min-width[data-v-a3f7a6e6]::before {\n content: "min:";\n}\n.max-width[data-v-a3f7a6e6]::before {\n content: "max:";\n}\n.edit-width[data-v-a3f7a6e6]::before {\n content: "edit:";\n}\n.width-scale[data-v-a3f7a6e6]::before {\n content: "scale:";\n}\n.menu[data-v-a3f7a6e6] {\n padding: 2px 0 2px 0;\n background-color: #f6f6f6;\n}\n.item[data-v-a3f7a6e6],\n.menu-extra1[data-v-a3f7a6e6],\n.menu-extra2[data-v-a3f7a6e6] {\n padding: 3px 16px 2px 22px;\n}\n.item[data-v-a3f7a6e6] {\n border: 1px solid #f6f6f6; /* Same as `.content/.menu`\'s bkgr-color */\n border-width: 1px 0;\n}\n.item .hotkey[data-v-a3f7a6e6] {\n position: relative;\n float: right;\n color: #c1c1c1;\n}\n.item[data-v-a3f7a6e6]:hover {\n background-color: #d1e2f2;\n border-color: #81b4e7;\n}\n.item.inactive[data-v-a3f7a6e6],\n.types .type.inactive[data-v-a3f7a6e6],\n.hotkey.help[data-v-a3f7a6e6] {\n color: #8a8a8a;\n}\n.item.inactive[data-v-a3f7a6e6]:hover {\n background-color: #e1e1e1;\n border-color: #b4b4b4;\n}\n.types .type[data-v-a3f7a6e6] {\n padding: 3px 4px 2px 4px;\n}\n.types:not(:hover) .type.selected[data-v-a3f7a6e6] {\n padding-top: 2px;\n border: 1px solid #d1d1d1;\n}\n.types:hover .type.selected[data-v-a3f7a6e6] {\n background-color: #add2f8;\n border: 1px solid #add2f8;\n border-width: 0 1px;\n}\n.types:hover .type[data-v-a3f7a6e6]:not(.selected):not(.inactive):hover {\n background-color: #8ebef3;\n}\n.hotkey.help[data-v-a3f7a6e6] {\n padding: 0 0 1px 8px;\n border: 0 solid #c1c1c1;\n border-left-width: 1px;\n}\n.hotkey.help[data-v-a3f7a6e6]:hover {\n color: #6d7dbd;\n border-color: #7c8dcd;\n}\n',""])},function(t,e,n){"use strict";var i=n(11);n.n(i).a},function(t,e,n){(t.exports=n(0)(!1)).push([t.i,"\n.terms[data-v-4c9a1fe8] {\n position: relative;\n box-sizing: border-box;\n padding: 0 2px 2px 2px;\n background-color: inherit;\n}\nspan.ruler[data-v-4c9a1fe8] { /* For measuring Term string-pixel-width */\n visibility: hidden;\n}\nspan.ruler[data-v-4c9a1fe8],\n.term[data-v-4c9a1fe8] {\n position: absolute;\n line-height: normal;\n}\n.term[data-v-4c9a1fe8] {\n box-sizing: border-box;\n display: inline-block;\n padding: 0 3px;\n margin: 0 2px; /* Is later zero'ed, but abs. positioning uses this value */\n white-space: nowrap;\n cursor: default;\n border: 1px solid transparent;\n border-radius: 2px;\n}\n.term[data-v-4c9a1fe8] sup,\n.term[data-v-4c9a1fe8] sub {\n position: relative;\n top: -0.4em;\n vertical-align: baseline;\n}\n.term[data-v-4c9a1fe8] sub {\n top: 0.15em;\n}\n.term[data-v-4c9a1fe8]:not(.edit),\n.terms[data-v-4c9a1fe8] .popup .menu {\n -moz-user-select: none;\n -khtml-user-select: none;\n -webkit-user-select: none;\n -o-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.term[data-v-4c9a1fe8]:not(.nofade),\n.term[data-v-4c9a1fe8]:not(.nofade):hover {\n transition: border-color 0.1s ease;\n}\n.edit[data-v-4c9a1fe8] {\n color: #000;\n cursor: text;\n background-color: inherit;\n}\n.edit.inp[data-v-4c9a1fe8] {\n overflow: visible; /* Makes autocomplete results visible */\n}\n.edit[data-v-4c9a1fe8]:not(.inp) {\n text-overflow: clip; /* No ellipsis for Edit-Terms without <input> elem. */\n}\n.edit[data-v-4c9a1fe8]:not(.inp),\n.edit[data-v-4c9a1fe8]:not(.focus) input {\n color: #7a7a7a; /* Color for non-focused input, or Edit-term label text */\n}\n.inp[data-v-4c9a1fe8] .list {\n margin-top: 3px;\n box-shadow: 0 2px 5px rgba(0, 0, 0, 0.23);\n}\n.inp[data-v-4c9a1fe8] .item {\n padding-top: 2px;\n}\n.inp[data-v-4c9a1fe8] .item.item-type-literal .hotkey {\n float: right;\n font-weight: normal;\n color: #e0e0e0;\n}\n.inst[data-v-4c9a1fe8] {\n color: #1c2a47;\n background-color: #e2e6f0;\n border-color: #b1bed8;\n}\n.inst[data-v-4c9a1fe8]:hover {\n background-color: #e1e5ef;\n border-color: #95a5c7;\n}\n.edit[data-v-4c9a1fe8]:not(.end) {\n border-color: #c4c4c4;\n}\n.edit[data-v-4c9a1fe8]:hover {\n border-color: #b4b4b4;\n}\n\n/* `.inp.focus`: a VsmBox that just displays a stored VSM-sentence won't show\n a border around the endTerm (that has the input then) when not focused. */\n.end.inp.focus[data-v-4c9a1fe8],\n.end[data-v-4c9a1fe8]:hover {\n border-color: #f0f0f0;\n}\n.end.inp.focus[data-v-4c9a1fe8]:hover {\n border-color: #ebebeb;\n}\n.end[data-v-4c9a1fe8]:not(.inp):not(.nofade):hover {\n transition-duration: 0.18s;\n}\n.ref[data-v-4c9a1fe8]:not(.end),\n.ref.end.inp[data-v-4c9a1fe8] {\n border-style: dashed;\n}\n.ref.end.inp[data-v-4c9a1fe8] {\n border-color: #b1bed8;\n}\n.ref.end.inp[data-v-4c9a1fe8]:hover {\n border-color: #95a5c7;\n}\n.class[data-v-4c9a1fe8]:not(.edit) {\n color: #2a2a05;\n background-color: #f9f2b9;\n border-color: #e5c547;\n}\n.class[data-v-4c9a1fe8]:not(.edit):hover {\n background-color: #f8f1b8;\n border-color: #dab43f;\n}\n.class.edit[data-v-4c9a1fe8]:not(.end),\n.class.edit.inp[data-v-4c9a1fe8] {\n border-color: #ebd262;\n}\n.class.edit[data-v-4c9a1fe8]:not(.end):hover,\n.class.edit.inp[data-v-4c9a1fe8]:hover {\n border-color: #e5c547;\n}\n.lit[data-v-4c9a1fe8]:not(.edit) {\n color: #200505;\n background-color: #f0e2e6;\n border-color: #d8b1ba;\n}\n.lit[data-v-4c9a1fe8]:not(.edit):hover {\n background-color: #efe1e5;\n border-color: #c795a5;\n}\n.lit.edit[data-v-4c9a1fe8]:not(.end),\n.lit.edit.inp[data-v-4c9a1fe8] {\n border-color: #e1c2c7;\n}\n.lit.edit[data-v-4c9a1fe8]:not(.end):hover,\n.lit.edit.inp[data-v-4c9a1fe8]:hover {\n border-color: #dfb1b9;\n}\n.term[data-v-4c9a1fe8] input.input { /* $'s undo automatic 'user agent stylesheets' */\n width: 100%;\n height: 100%;\n padding: 0; /* $ */\n line-height: normal;\n cursor: text;\n background-color: transparent;\n border: 0; /* $ */\n outline: none; /* $ */\n box-shadow: none; /* $ */\n}\n\n/*\n Note: 'placehold' = input-label used as a placeholder.\n Note: .placehold-related CSS is defined in vsm-autocomplete, but needs to be\n mostly repeated here, so EL/ER terms get a same placeholder layout.\n Note: some small positioning adjustments need to be made for vsmAC's\n placehold only, for yet unknown reason.\n*/\n.term[data-v-4c9a1fe8] .input-wrap {\n position: relative;\n line-height: 0;\n background-color: transparent; /* different from vsmAC */\n}\n.term[data-v-4c9a1fe8] .placehold {\n position: absolute;\n top: 0;\n left: 0;\n line-height: normal;\n color: #aaa;\n pointer-events: none;\n transition: 0.2s ease all;\n}\n.term[data-v-4c9a1fe8] .placehold.focus {\n top: -2px;\n left: 1.5px; /* different from vsmAC */\n font-size: 9px; /* different from vsmAC */\n color: #d0d0d0; /* different from vsmAC */\n opacity: 1;\n}\n.term[data-v-4c9a1fe8] .placehold.hidden {\n display: none;\n}\n.term[data-v-4c9a1fe8] .label,\nspan.ruler[data-v-4c9a1fe8] {\n white-space: pre;\n}\n.term[data-v-4c9a1fe8] .label {\n display: inline-block;\n width: calc(100% + 1px);\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n/* placeholder for Term not having the <input>. Cf.: `.term >>> .placehold` */\n.term[data-v-4c9a1fe8] .label-placehold {\n color: #aaa;\n}\n.term.drag[data-v-4c9a1fe8] {\n z-index: 3;\n opacity: 0.65;\n}\n.term.drag[data-v-4c9a1fe8],\n.term.drag[data-v-4c9a1fe8] input {\n cursor: grabbing;\n}\n.drag-placeholder[data-v-4c9a1fe8] {\n margin: 0;\n background-color: #e9e9e9;\n border-color: #ebebeb;\n}\n\n/* * */\n.focal[data-v-4c9a1fe8]::before {\n position: absolute;\n top: 0.5px;\n right: 0;\n bottom: 0.5px;\n left: 0;\n width: 100%;\n height: 1px;\n overflow: visible;\n pointer-events: none;\n content: \" \";\n border-top: 1.5px dotted #aaa;\n}\n\n/* * */\n\n",""])},function(t,e,n){"use strict";var i=n(12);n.n(i).a},function(t,e,n){(t.exports=n(0)(!1)).push([t.i,"\n*[data-v-271a8614],\n*[data-v-271a8614]::before,\n*[data-v-271a8614]::after {\n line-height: 0;\n}\n.vsm-box[data-v-271a8614] {\n box-sizing: content-box;\n text-align: left;\n background-color: #fff;\n border: 1px solid #d3d9e5;\n}\n.vsm-box[data-v-271a8614],\n.vsm-box[data-v-271a8614] input, \n.vsm-box[data-v-271a8614] .placehold {\n /* This sets both vsm-autocomplete and plain <input>'s style */\n font-family: tahoma, arial, sans-serif;\n\n /* 'font-size' should equal TheTerms's `defaultFontSize`. External CSS may\n override this CSS-value; if so then `widthScale` will automatically\n update accordingly. */\n font-size: 11px;\n}\n.vsm-box[data-v-271a8614],\n.vsm-box[data-v-271a8614] input {\n color: #000;\n}\n.terms[data-v-271a8614],\n.conns[data-v-271a8614] {\n margin: 0;\n}\n\n/* If Tahoma is not installed, then use a metric-compatible, free alternative\n from the Wine project. But don't use its faulty bold version. */\n@font-face {\n font-family: 'Tahoma';\n src:\n local('Tahoma'),\n local('WineTahoma'),\n url('https://vsm.github.io/bin/font/wine-tahoma.woff') format('woff');\n font-style: normal;\n font-weight: normal;\n}\n@font-face {\n font-family: 'Tahoma';\n src: local('Tahoma Bold'), local('Verdana Bold');\n font-style: normal;\n font-weight: bold;\n}\n",""])},function(t,e,n){"use strict";n.r(e);n(15);var i=n(14);function r(t,e){return t.__proto__=e,t} /** * vue-custom-element v3.2.6 * (c) 2018 Karol Fabjańczuk * @license MIT */ Object.setPrototypeOf=Object.setPrototypeOf||r;r.bind(Object);var o="undefined"!=typeof Symbol&&"undefined"!=typeof Reflect&&"undefined"!=typeof Proxy&&!Object.isSealed(Proxy),s=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}();function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function c(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function u(){return Reflect.construct(HTMLElement,[],this.__proto__.constructor)}function d(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("undefined"!=typeof customElements){if(o){var n=function(t){function n(t){a(this,n);var e=l(this,(n.__proto__||Object.getPrototypeOf(n)).call(this)),i=t?HTMLElement.call(t):e;return r.call(i),l(e,i)}return c(n,t),s(n,null,[{key:"observedAttributes",get:function(){return e.observedAttributes||[]}}]),n}(u);return n.prototype.connectedCallback=d,n.prototype.disconnectedCallback=h,n.prototype.attributeChangedCallback=p,f(t,n),n}var i=function(t){var e=t?HTMLElement.call(t):this;return r.call(e),e};return i.observedAttributes=e.observedAttributes||[],i.prototype=Object.create(HTMLElement.prototype,{constructor:{configurable:!0,writable:!0,value:i}}),i.prototype.connectedCallback=d,i.prototype.disconnectedCallback=h,i.prototype.attributeChangedCallback=p,f(t,i),i}function r(){!0===e.shadow&&HTMLElement.prototype.attachShadow&&this.attachShadow({mode:"open"}),"function"==typeof e.constructorCallback&&e.constructorCallback.call(this)}function d(){"function"==typeof e.connectedCallback&&e.connectedCallback.call(this)}function h(){"function"==typeof e.disconnectedCallback&&e.disconnectedCallback.call(this)}function p(t,n,i){"function"==typeof e.attributeChangedCallback&&e.attributeChangedCallback.call(this,t,n,i)}function f(t,e){var n=customElements.get(t);return void 0!==n?n:customElements.define(t,e)}}Object.setPrototypeOf(u.prototype,HTMLElement.prototype),Object.setPrototypeOf(u,HTMLElement);var h=/-(\w)/g,p=function(t){return t.replace(h,(function(t,e){return e?e.toUpperCase():""}))},f=/([^-])([A-Z])/g,m=function(t){return t.replace(f,"$1-$2").replace(f,"$1-$2").toLowerCase()};function v(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=t.length-e,i=new Array(n);n--;)i[n]=t[n+e];return i}var y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};function g(t,e){var n=t,i=["true","false"].indexOf(t)>-1,r=parseFloat(n,10),o=!isNaN(r)&&isFinite(n)&&"string"==typeof n&&!n.match(/^0+[^.]\d*$/g);return e&&e!==Boolean&&(void 0===n?"undefined":y(n))!==e?n=e(t):i||e===Boolean?n=""===n||"true"===n:o&&(n=r),n}function b(t,e){if(t&&t.length)t.forEach((function(t){var n=p(t);-1===e.camelCase.indexOf(n)&&e.camelCase.push(n)}));else if(t&&"object"===(void 0===t?"undefined":y(t)))for(var n in t){var i=p(n);-1===e.camelCase.indexOf(i)&&e.camelCase.push(i),t[i]&&t[i].type&&(e.types[n]=[].concat(t[i].type)[0])}}function C(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e={camelCase:[],hyphenate:[],types:{}};if(t.mixins&&t.mixins.forEach((function(t){b(t.props,e)})),t.extends&&t.extends.props){var n=t.extends.props;b(n,e)}return b(t.props,e),e.camelCase.forEach((function(t){e.hyphenate.push(m(t))})),e}function _(t){var e={};return v(t.attributes).forEach((function(t){e["vue-slot"===t.nodeName?"slot":t.nodeName]=t.nodeValue})),e}function w(t,e,n){var i=v(function(t){if(t.childNodes.length)return t.childNodes;if(t.content&&t.content.childNodes&&t.content.childNodes.length)return t.content.childNodes;var e=document.createElement("div");return e.innerHTML=t.innerHTML,e.childNodes}(e)).map((function(e){return"#text"===e.nodeName?e.nodeValue:t(e.tagName,{attrs:_(e),domProps:{innerHTML:e.innerHTML}})}));return n.slot=e.id,t("template",n,i)}function T(t,e){var n={bubbles:!1,cancelable:!1,detail:e},i=void 0;return"function"==typeof window.CustomEvent?i=new CustomEvent(t,n):(i=document.createEvent("CustomEvent")).initCustomEvent(t,n.bubbles,n.cancelable,n.detail),i}function x(t,e){for(var n=arguments.length,i=Array(n>2?n-2:0),r=2;r<n;r++)i[r-2]=arguments[r];var o=T(e,[].concat(i));t.dispatchEvent(o)}function k(t,e,n,i,r){if(!t.__vue_custom_element__){var o=e.util.extend({},n),s=function(t,e,n){var i=e.propsData||{};return n.hyphenate.forEach((function(e,r){var o=n.camelCase[r],s=t.attributes[e]||t[o],a=null;n.types[o]&&(a=n.types[o]),s instanceof Attr?i[o]=g(s.value,a):void 0!==s&&(i[o]=s)})),i}(t,o,i),a=e.version&&parseInt(e.version.split(".")[0],10)||0;if(o.beforeCreate=[].concat(o.beforeCreate||[],(function(){this.$emit=function(){for(var e,n=arguments.length,i=Array(n),r=0;r<n;r++)i[r]=arguments[r];x.apply(void 0,[t].concat(i)),this.__proto__&&(e=this.__proto__.$emit).call.apply(e,[this].concat(i))}})),o._compiled){var l={};o._Ctor&&(l=Object.values(o._Ctor)[0].options),l.beforeCreate=o.beforeCreate}var c=void 0;if(a>=2){var u=t.cloneNode(!0).childNodes;c={propsData:s,props:i.camelCase,computed:{reactiveProps:function(){var t=this,e={};return i.camelCase.forEach((function(n){void 0!==t[n]&&(e[n]=t[n])})),e}},render:function(t){var e={props:this.reactiveProps};return t(o,e,function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments[1],n=[];return v(t).forEach((function(t){if("#text"===t.nodeName)t.nodeValue.trim()&&n.push(e("span",t.nodeValue));else if("#comment"!==t.nodeName){var i=_(t),r={attrs:i,domProps:{innerHTML:""===t.innerHTML?t.innerText:t.innerHTML}};i.slot&&(r.slot=i.slot,i.slot=void 0);var o="TEMPLATE"===t.tagName?w(e,t,r):e(t.tagName,r);n.push(o)}})),n}(u,t))}}}else if(1===a)(c=o).propsData=s;else{c=o;var d={};Object.keys(s).forEach((function(t){d[t]={default:s[t]}})),c.props=d}var h=a>=2?"<div></div>":("<div>"+t.innerHTML+"</div>").replace(/vue-slot=/g,"slot=");if(r.shadow&&t.shadowRoot?(t.shadowRoot.innerHTML=h,c.el=t.shadowRoot.children[0]):(t.innerHTML=h,c.el=t.children[0]),function(t,e){e.camelCase.forEach((function(n,i){Object.defineProperty(t,n,{get:function(){return this.__vue_custom_element__[n]},set:function(t){if("object"!==(void 0===t?"undefined":y(t))&&"function"!=typeof t||!this.__vue_custom_element__){var n=e.types[e.camelCase[i]];this.setAttribute(e.hyphenate[i],g(t,n))}else{var r=e.camelCase[i];this.__vue_custom_element__[r]=t}}})}))}(t,i),"function"==typeof r.beforeCreateVueInstance&&(c=r.beforeCreateVueInstance(c)||c),t.__vue_custom_element__=new e(c),t.__vue_custom_element_props__=i,t.getVueInstance=function(){return t.__vue_custom_element__.$children[0]},r.shadow&&r.shadowCss&&t.shadowRoot){var p=document.createElement("style");p.type="text/css",p.appendChild(document.createTextNode(r.shadowCss)),t.shadowRoot.appendChild(p)}t.removeAttribute("vce-cloak"),t.setAttribute("vce-ready",""),x(t,"vce-ready")}}function L(t){t.customElement=function(e,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r="function"==typeof n,o=r&&{props:i.props||[]},s=C(r?o:n),a=d(e,{constructorCallback:function(){"function"==typeof i.constructorCallback&&i.constructorCallback.call(this)},connectedCallback:function(){var o=this,a=r&&n(),l=a&&a.then&&"function"==typeof a.then;if("function"==typeof i.connectedCallback&&i.connectedCallback.call(this),r&&!l)throw new Error("Async component "+e+" do not returns Promise");this.__detached__||(l?a.then((function(e){var n=C(e);k(o,t,e,n,i),"function"==typeof i.vueInstanceCreatedCallback&&i.vueInstanceCreatedCallback.call(o)})):(k(this,t,n,s,i),"function"==typeof i.vueInstanceCreatedCallback&&i.vueInstanceCreatedCallback.call(this))),this.__detached__=!1},disconnectedCallback:function(){var t=this;this.__detached__=!0,"function"==typeof i.disconnectedCallback&&i.disconnectedCallback.call(this),setTimeout((function(){t.__detached__&&t.__vue_custom_element__&&(t.__vue_custom_element__.$destroy(!0),delete t.__vue_custom_element__,delete t.__vue_custom_element_props__)}),i.destroyTimeout||3e3)},attributeChangedCallback:function(t,e,n){if(this.__vue_custom_element__&&void 0!==n){var r=p(t);"function"==typeof i.attributeChangedCallback&&i.attributeChangedCallback.call(this,t,e,n);var o=this.__vue_custom_element_props__.types[r];this.__vue_custom_element__[r]=g(n,o)}},observedAttributes:s.hyphenate,shadow:!!i.shadow&&!!HTMLElement.prototype.attachShadow});return a}}"undefined"!=typeof window&&window.Vue&&(window.Vue.use(L),L.installed&&(L.installed=!1));var E=L,I=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"vsm-box",style:{width:t.width+"px"}},[n("the-conns",{attrs:{"orig-conns":t.origConns,width:t.width,sizes:t.sizesFull,"terms-change-nr":t.termsChangeNr,enabled:t.isTheConnsEnabled},on:{change:t.onConnsChange,"change-init":t.onConnsChangeInit,"click-above-end-term":t.onClickAboveEndTerm}}),t._v(" "),n("the-terms",{ref:"theTerms",attrs:{"vsm-dictionary":t.vsmDictionary,"query-options":t.queryOptions,autofocus:t.autofocus,placeholder:t.placeholder,"cycle-on-tab":t.cycleOnTab,"max-string-lengths":t.maxStringLengths,"fresh-list-delay":t.freshListDelay,"advanced-search":t.advancedSearch,"allow-class-null":t.allowClassNull,"orig-terms":t.origTerms,sizes:t.sizesFull,"custom-item":t.customItem,"custom-item-literal":t.customItemLiteral,"custom-term":t.customTerm,"custom-popup":t.customPopup,"term-copy":t.termCopy,"term-paste":t.termPaste},on:{width:t.onTermsWidth,change:function(e){return e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:t.onTermsChange(e)},"change-init":t.onTermsChangeInit,"drag-start":t.onDragStart,"drag-stop":t.onDragStop},nativeOn:{change:function(t){return t.stopPropagation(),t}}})],1)};I._withStripped=!0;var S=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("svg",{staticClass:"conns",attrs:{width:t.width,height:t.height,unselectable:"on"},on:{mousemove:t.onMousemove,mouseleave:t.onMouseleave,mousedown:function(e){return"button"in e||!t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])?"button"in e&&0!==e.button?null:(e.stopPropagation(),t.onMousedown(e)):null}}},[n("rect",{staticClass:"terms-top-margin",style:"fill: "+(t.$parent.$refs.theTerms||{}).bkgrColor+";",attrs:{y:t.height-t.sizes.theConnsMarginBottom,height:t.sizes.theConnsMarginBottom,x:"0",width:"100%"}}),t._v(" "),t.showAnyHighlight?n("g",[n("transition",{attrs:{name:"fade",appear:""}},[t.showPosHighlight?n("rect",{key:"phl0",staticClass:"pos-highlight",style:"fill: "+t.sizes.connHLColorLight+";",attrs:{x:t.colX1s[t.hlPosNr],width:t.colX1s[t.hlPosNr+1]-t.colX1s[t.hlPosNr],y:"0",height:"100%"}}):t._e()])],1):t._e(),t._v(" "),t.showAnyHighlight?n("g",[n("transition",{attrs:{name:"fade",appear:""}},[t.showConnHighlight?n("conn-highlight",{key:"chl"+t.hlConnNr,attrs:{conn:t.conns[t.hlConnNr],sizes:t.sizes,"level-top":t.levelTop,termX1s:t.termX1s,termX2s:t.termX2s}}):t._e()],1)],1):t._e(),t._v(" "),t._l(t.conns,(function(e,i){return n("g",{key:i},[e.justRemoved?t._e():n("conn",{attrs:{conn:e,sizes:t.sizes,"level-top":t.levelTop,termX1s:t.termX1s,termX2s:t.termX2s}})],1)})),t._v(" "),t.showAnyHighlight?n("g",[n("transition",{attrs:{name:"fade",appear:""}},[t.showConnHighlight?n("conn-remove-icon",{key:"cri"+t.hlConnNr,attrs:{conn:t.conns[t.hlConnNr],connNr:t.hlConnNr,sizes:t.sizes,"level-top":t.levelTop,termX2s:t.termX2s},on:{remove:t.onConnRemove}}):t._e()],1)],1):t._e()],2)};S._withStripped=!0;var O=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("g",{class:["conn",{t:!t.isList&&!t.isRef,l:t.isList,r:t.isRef,uc:t.isUC}]},[!t.isRef&&t.drawBack?n("line",{staticClass:"back",style:t.backStyle,attrs:{x1:t.backX1-t.lwh,y1:t.backY+t.h,x2:t.backX2+t.lwh+t.h+t.h,y2:t.backY+t.h}}):t._e(),t._v(" "),t.isList&&t.drawBack?n("line",{staticClass:"back two",style:t.backStyle,attrs:{x1:t.backX1-t.lwh,y1:t.backY+t.h+t.sizes.connListBackSep,x2:t.backX2+t.lwh+t.h+t.h,y2:t.backY+t.h+t.sizes.connListBackSep}}):t._e(),t._v(" "),t.isRef&&t.drawBack?n("line",{staticClass:"back left",style:t.backStyle,attrs:{x1:t.backX1-t.lwh,y1:t.backY+t.h,x2:t.backXM,y2:t.backY+t.h,"stroke-dasharray":t.sizes.connRefDashes}}):t._e(),t._v(" "),t.isRef&&t.drawBack?n("line",{staticClass:"back right",style:t.backStyle,attrs:{x1:t.backX2+t.lwh+t.h+t.h,y1:t.backY+t.h,x2:t.backXM,y2:t.backY+t.h,"stroke-dasharray":t.sizes.connRefDashes}}):t._e(),t._v(" "),t._l(t.legs,(function(e,i){return n("conn-leg",{key:i,attrs:{leg:e,sizes:t.sizes,l:t.l}})})),t._v(" "),t.legStub?n("conn-leg-stub",{attrs:{stub:t.legStub,sizes:t.sizes,l:t.l}}):t._e()],2)};O._withStripped=!0;var M=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("g",{class:["conn-leg",{uc:t.leg.isUC}]},[!t.isRef&&t.showFoot?n("line",{staticClass:"foot",style:"stroke: "+t.footColor+"; stroke-width: "+t.l.lw+";",attrs:{x1:t.leg.footX1+t.sizes.connFootIndent,y1:t.footY,x2:t.leg.footX2-t.sizes.connFootIndent,y2:t.footY}}):t._e(),t._v(" "),t.isRef&&t.showFoot?n("line",{staticClass:"foot left",style:"stroke: "+t.footColor+"; stroke-width: "+t.l.lw+";",attrs:{x1:t.footXM,y1:t.footY,x2:t.leg.footX1+t.sizes.connFootIndent,y2:t.footY,"stroke-dasharray":t.sizes.connRefDashes}}):t._e(),t._v(" "),t.isRef&&t.showFoot?n("line",{staticClass:"foot right",style:"stroke: "+t.footColor+"; stroke-width: "+t.l.lw+";",attrs:{x1:t.footXM,y1:t.footY,x2:t.leg.footX2-t.sizes.connFootIndent,y2:t.footY,"stroke-dasharray":t.sizes.connRefDashes}}):t._e(),t._v(" "),n("line",{staticClass:"leg",style:"stroke: "+t.legColor+"; stroke-width: "+t.l.lw+";",attrs:{x1:t.x,y1:t.legY2,x2:t.x,y2:t.leg.y1-t.l.lwh+(t.leg.isUC?t.l.lw:0),"stroke-dasharray":!!t.isRef&&t.sizes.connRefDashes}}),t._v(" "),"R"==t.leg.type?n("path",{staticClass:"pointer relation",style:"fill: "+t.legColor+"; stroke-width: 0;",attrs:{d:"M"+t.x+" "+(t.y2lwh-t.sizes.connTridRelH)+" L"+(t.x+t.sizes.connTridRelW)+" "+t.y2lwh+" H"+(t.x-t.sizes.connTridRelW)+" Z"}}):t._e(),t._v(" "),"O"==t.leg.type?n("path",{staticClass:"pointer object",style:"\n fill: none; stroke: "+t.legColor+"; stroke-width: "+t.l.lw+";",attrs:{d:"M"+(t.x-t.sizes.connTridObjW)+" "+(t.y2-t.sizes.connTridObjH)+" L"+t.x+" "+t.y2+" L"+(t.x+t.sizes.connTridObjW)+" "+(t.y2-t.sizes.connTridObjH)}}):t._e(),t._v(" "),"L"==t.leg.type?n("path",{staticClass:"pointer list-relation",style:"fill: "+t.legColor+"; stroke-width: 0;",attrs:{d:"M"+(t.x-t.sizes.connListRelW)+" "+(t.y2lwh-t.sizes.connListRelH)+" H"+(t.x+t.sizes.connListRelW)+" V"+t.y2lwh+" H"+(t.x-t.sizes.connListRelW)+" Z"}}):t._e(),t._v(" "),"P"==t.leg.type?n("path",{staticClass:"pointer parent",style:"\n fill: none; stroke: "+t.legColor+"; stroke-width: "+t.l.lw+";",attrs:{d:"M"+(t.x-t.sizes.connRefParW)+" "+(t.y2-t.sizes.connRefParH)+" L"+t.x+" "+t.y2+" L"+(t.x+t.sizes.connRefParW)+" "+(t.y2-t.sizes.connRefParH)+" Z"}}):t._e()])};function A(t,e,n,i,r,o,s,a){var l,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),s?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},c._ssrRegister=l):r&&(l=a?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(t,e){return l.call(e),u(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:t,options:c}}M._withStripped=!0;var D=A({name:"ConnLeg",props:{leg:{type:Object,required:!0},sizes:{type:Object,required:!0},l:{type:Object,required:!0}},computed:{isRef:function(){return["C","P"].includes(this.leg.type)},x:function(){return this.leg.x+this.l.h+(this.leg.isUC&&"E"==this.leg.type&&this.leg.doublesUp?this.l.lw:0)},y2:function(){return this.leg.y2-(this.leg.isUC?this.sizes.connUCLegShorter:0)},legY2:function(){var t=this,e=t.l.lwh+t.l.h;return t.y2-("R"==t.leg.type?t.sizes.connTridRelH-e-t.l.h-t.l.lw:"L"==t.leg.type?t.sizes.connListRelH-e-t.l.h:"P"==t.leg.type?t.sizes.connRefParH+e:t.sizes.connFootVisible||"O"==t.leg.type||t.leg.isUC?t.l.lwh:t.l.lwh-t.l.lw)},y2lwh:function(){return this.y2+this.l.lwh+this.l.h+this.l.h},footY:function(){return this.leg.y2+this.l.h},footXM:function(){return(this.leg.footX1+this.leg.footX2-1)/2+.5},showFoot:function(){return this.sizes.connFootVisible&&(!this.leg.isUC||!this.leg.doublesUp)},legColor:function(){return this.leg.isUC?this.sizes.connUCLegColor:this.sizes.connLegColor},footColor:function(){return this.leg.isUC?this.sizes.connUCFootColor:this.sizes.connFootColor}}},M,[],!1,null,null,null);D.options.__file="src/subcomponents/ConnLeg.vue";var P=D.exports,$=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.stub?n("g",{staticClass:"conn-leg-stub"},[t.stub.side?n("line",{staticClass:"stub-back",style:"stroke: "+t.sizes.connStubBackColor+"; stroke-width: "+t.l.lw+";",attrs:{x1:t.x+(t.stub.side<0?-t.l.lwh-t.l.h:t.l.lwh+t.l.h),y1:t.stub.y1,x2:t.stub.x+(t.stub.side<0?-t.l.lwh:t.l.lwh+t.l.h+t.l.h),y2:t.stub.y1}}):t._e(),t._v(" "),n("line",{staticClass:"stub-foot",style:"stroke: "+t.sizes.connStubFootColor+"; stroke-width: "+t.l.lw+";",attrs:{x1:t.x-t.footW,y1:t.y2+t.l.h+t.l.lwh,x2:t.x+t.footW,y2:t.y2+t.l.h+t.l.lwh}}),t._v(" "),n("line",{staticClass:"stub-leg",style:"stroke: "+t.sizes.connStubLegColor+"; stroke-width: "+t.l.lw+";",attrs:{x1:t.x,y1:t.y1,x2:t.x,y2:t.y2}}),t._v(" "),"R"==t.stub.type?n("path",{staticClass:"stub-pointer relation",style:"fill: "+t.sizes.connStubLegColor+"; stroke-width: 0;",attrs:{d:"M"+t.x+" "+(t.l.h+t.y2-t.sizes.connStubRelH)+" L"+(t.x+t.sizes.connStubRelW)+" "+t.y2+" H"+(t.x-t.sizes.connStubRelW)+" Z"}}):t._e(),t._v(" "),"O"==t.stub.type?n("path",{staticClass:"stub-pointer object",style:"\n fill: none; stroke: "+t.sizes.connStubLegColor+"; stroke-width: "+t.l.lw+";",attrs:{d:"M"+(t.x-t.sizes.connStubObjW)+" "+(t.y2+t.l.h-t.sizes.connStubObjH)+" L"+t.x+" "+(t.y2-t.l.h-t.l.lwh)+" L"+(t.x+t.sizes.connStubObjW)+" "+(t.y2+t.l.h-t.sizes.connStubObjH)}}):t._e()]):t._e()};$._withStripped=!0;var H=A({name:"ConnLegStub",props:{stub:{type:Object,required:!0},sizes:{type:Object,required:!0},l:{type:Object,required:!0}},computed:{x:function(){return this.stub.x+this.l.h+this.stub.side*("S"==this.stub.type?this.sizes.connStubSubBackW:"O"==this.stub.type?this.sizes.connStubObjBackW:0)},y1:function(){return this.stub.y1+this.l.h+this.l.lwh},y2:function(){return this.stub.y1+("S"==this.stub.type?this.sizes.connStubSubLegH:"R"==this.stub.type?this.sizes.connStubRelLegH:"O"==this.stub.type?this.sizes.connStubObjLegH:0)},footW:function(){return"S"==this.stub.type?this.sizes.connStubSubFootW:"R"==this.stub.type?this.sizes.connStubRelFootW:"O"==this.stub.type?this.sizes.connStubObjFootW:0}}},$,[],!1,null,null,null);H.options.__file="src/subcomponents/ConnLegStub.vue";var K=H.exports;function j(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var F=function(t,e){return~~((t+e-1)/2)},R=A({name:"Conn",components:{"conn-leg":P,"conn-leg-stub":K},props:{conn:{type:Object,required:!0},sizes:{type:Object,required:!0},levelTop:{type:Function,required:!0},termX1s:{type:Array,required:!0},termX2s:{type:Array,required:!0}},computed:{h:function(){return this.sizes.connLineWidth%2/2},lw:function(){return this.sizes.connLineWidth},lwh:function(){return~~(this.lw/2)},l:function(){return{h:this.h,lw:this.lw,lwh:this.lwh}},isRef:function(){return"R"==this.conn.type},isList:function(){return"L"==this.conn.type},isUC:function(){return this.legs.filter((function(t){return t.isUC})).length>0},realPos:function(){return this.conn.pos.filter((function(t){return t>=0}))},posA:function(){return Math.min.apply(Math,j(this.realPos))},posZ:function(){return Math.max.apply(Math,j(this.realPos))},backX1:function(){return F(this.termX1s[this.conn.posA],this.termX2s[this.conn.posA])||0},backX2:function(){return F(this.termX1s[this.conn.posZ],this.termX2s[this.conn.posZ])||0},backXM:function(){return(this.backX1+this.backX2-1)/2+.5},backY:function(){return this.levelTop(this.conn.backLevel)+this.sizes.connBackDepth},drawBack:function(){return this.conn.pos.length>1},backStyle:function(){return"stroke: ".concat(this.sizes.connBackColor,"; stroke-width: ").concat(this.lw,";")},legs:function(){var t=this;return this.conn.pos.reduce((function(e,n,i){if(n>=0){var r="T"==t.conn.type?i?1==i?"R":2==i?"O":"":"S":"L"==t.conn.type?i?"E":"L":"R"==t.conn.type?i?1==i?"P":"":"C":"";if(r){var o=t.termX1s[n]||0,s=t.termX2s[n]||0,a=t.conn.footLevels[i],l=t.conn.isUC&&i==t.conn.pos.length-1;e.push({x:F(o,s),y1:t.backY,y2:t.levelTop(a)+t.sizes.connFootDepth,footX1:o,footX2:s,type:r,isUC:l,doublesUp:t.conn.pos.slice(0,i).includes(n)})}}return e}),[])},legStub:function(){var t=this,e=function(e,n){return t.conn.pos[e]>t.conn.pos[n]};if("T"==this.conn.type){var n=this.backY+this.h;if(this.conn.pos[0]<0){var i=e(1,2);return{type:"S",side:i?1:-1,x:i?this.backX2:this.backX1,y1:n}}if(this.conn.pos[1]<0)return{type:"R",side:0,x:this.backXM,y1:n};if(this.conn.pos[2]<0)return{type:"O",side:(i=e(0,1))?-1:1,x:i?this.backX1:this.backX2,y1:n}}return!1}}},O,[],!1,null,null,null);R.options.__file="src/subcomponents/Conn.vue";var N=R.exports,z=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("g",{staticClass:"conn-highlight"},[n("path",{staticClass:"hl-back-top",style:"fill: "+t.sizes.connHLColor+"; stroke-width: 0;",attrs:{d:t.hlBackPath}}),t._v(" "),t._l(t.realPos,(function(e,i){return n("rect",{key:i,staticClass:"hl-leg",style:"fill: "+t.sizes.connHLColor+";",attrs:{x:t.termX1s[e]-t.sizes.connHLLegOutdent,y:t.topY+t.sizes.connHLBackHeight,width:t.hlLegW(e),height:t.hlLegHeight(i)}})})),t._v(" "),t._l(t.realPos,(function(e,i){return n("g",{key:"u"+i},[t.realFootLevels[i]>0?n("rect",{staticClass:"hl-leg-under",style:"fill: "+t.sizes.connHLColorLight+";",attrs:{x:t.termX1s[e]-t.sizes.connHLLegOutdent,y:t.levelTop(t.realFootLevels[i]-1),width:t.hlLegW(e),height:t.realFootLevels[i]*t.sizes.theConnsLevelHeight+t.sizes.theConnsSpaceBelow+t.sizes.theConnsMarginBottom}}):t._e()])}))],2)};z._withStripped=!0;var B=A({name:"ConnHL",props:{conn:{type:Object,required:!0},sizes:{type:Object,required:!0},levelTop:{type:Function,required:!0},termX1s:{type:Array,required:!0},termX2s:{type:Array,required:!0}},computed:{topY:function(){return this.levelTop(this.conn.backLevel)},backW:function(){return this.termX2s[this.conn.posZ]-this.termX1s[this.conn.posA]+2*this.sizes.connHLLegOutdent},hlBackPath:function(){var t=this.termX1s[this.conn.posA]-this.sizes.connHLLegOutdent,e=this.levelTop(this.conn.backLevel),n=this.backW,i=this.sizes.connHLBackHeight,r=this.sizes.connHLBorderRadius,o="a ".concat(r," ").concat(r," 0 0 1 ").concat(r," ");return"M ".concat(t," ").concat(e+r)+o+"-".concat(r)+"h ".concat(n-r-r)+o+r+"v ".concat(i-r)+"h -".concat(n," Z")},realPos:function(){return this.conn.pos.filter((function(t){return t>=0}))},realFootLevels:function(){return this.conn.footLevels.filter((function(t){return t>=0}))}},methods:{hlLegW:function(t){return this.termX2s[t]-this.termX1s[t]+2*this.sizes.connHLLegOutdent},hlLegHeight:function(t){var e=this.realFootLevels[t],n=this.sizes;return this.levelTop(e)-this.levelTop(this.conn.backLevel)+n.theConnsLevelHeight-n.connHLBackHeight+(e>0?0:n.theConnsSpaceBelow+n.theConnsMarginBottom)}}},z,[],!1,null,null,null);B.options.__file="src/subcomponents/ConnHighlight.vue";var U=B.exports,q=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("g",{staticClass:"conn-remove-icon",on:{mouseenter:t.onMouseenter,mouseleave:t.onMouseleave,mousedown:t.onMousedown,mouseup:t.onMouseup}},[n("rect",{staticClass:"ri-bg",style:"fill: "+t.sizes.connRIBGColor[t.state]+";",attrs:{x:t.x1,y:t.y1,width:t.sizes.connRIW,height:t.sizes.connRIW,rx:t.sizes.connHLBorderRadius,ry:t.sizes.connHLBorderRadius}}),t._v(" "),n("path",{staticClass:"ri-fg",style:"stroke: "+t.sizes.connRIFGColor[t.state]+";\n stroke-width: "+t.sizes.connRILineWidth+";",attrs:{d:t.crossPath}})])};q._withStripped=!0;var W=A({name:"ConnRemoveIcon",props:{conn:{type:Object,required:!0},connNr:{type:Number,required:!0},sizes:{type:Object,required:!0},levelTop:{type:Function,required:!0},termX2s:{type:Array,required:!0}},data:function(){return{state:0}},computed:{x1:function(){return this.termX2s[this.conn.posZ]+this.sizes.connHLLegOutdent-this.sizes.connRIW},y1:function(){return this.levelTop(this.conn.backLevel)},crossPath:function(){var t=this.x1+this.sizes.connRIPadding,e=this.y1+this.sizes.connRIPadding,n=this.x1+this.sizes.connRIW-this.sizes.connRIPadding,i=this.y1+this.sizes.connRIW-this.sizes.connRIPadding;return"M ".concat(t," ").concat(e," L ").concat(n," ").concat(i)+"M ".concat(t," ").concat(i," L ").concat(n," ").concat(e)}},methods:{onMouseenter:function(){this.state=1},onMouseleave:function(){this.state=0},onMousedown:function(){this.state=2},onMouseup:function(){2==this.state&&(this.state=1,this.$emit("remove",this.connNr))}}},q,[],!1,null,null,null);W.options.__file="src/subcomponents/ConnRemoveIcon.vue";var V=W.exports;function X(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var Z=function(t){return JSON.parse(JSON.stringify(t))},Y={prepConnToReceive:function(t){var e=Z(t);return Y.pruneProperties(e),e},prepConnToEmit:function(t){var e=Z(t);return Y.pruneProperties(e),e},pruneProperties:function(t){delete t.backLevel,delete t.footLevels,delete t.posA,delete t.posZ,delete t.isUC,delete t.justRemoved,delete t.justAdded},sortListConnElemPos:function(t){t.pos=[t.pos[0]].concat(t.pos.slice(1).sort((function(t,e){return t-e})))},sortConnectors:function(t){var e=t.map((function(t,e){return{type:"T"==t.type?0:"L"==t.type?1:2,ttd:t.pos.map((function(t){return{eid:t<0?null:"pos-".concat(t),pos:t}})),pos0:Math.min.apply(Math,X(t.pos.filter((function(t){return t>=0})))),pos1:Math.max.apply(Math,X(t.pos)),origIndex:e}})),n=t.length&&t[t.length-1].isUC?1:0,i=0;return t.forEach((function(t){return i=Math.max.apply(Math,[i].concat(X(t.pos)))})),(e=Y.protoSortVSMConns(e,n,i+1)).map((function(e){return t[e.origIndex]}))},protoSortVSMConns:function(t,e,n){var i,r,o,s,a,l,c,u,d,h,p,f,m,v=[],y=[],g=[],b=[],C=n,_=t,w=_.length,T=function(t,e){for(var n=0;n<t.length;n++)if(t[n]===e)return!0;return!1};for(i=0;i<C;i++)v.push([]);for(e>0&&(f=_[--w]),i=0;i<w;i++)for(s=0,a=(o=(r=_[i]).ttd).length;s<a;s++)if(null!=(l=o[s]).eid){switch(r.type){case 0:d=0==s?a<3||(null==(c=o[1]).eid||l.pos<c.pos)&&(null==(c=o[2]).eid||l.pos<c.pos)?3:2:2==s?a<3||(null==(c=o[0]).eid||l.pos>c.pos)&&(null==(c=o[1]).eid||l.pos>c.pos)?5:4:1;break;case 1:d=0==s?0:6;break;default:d=0==s?7:8}v[l.pos].push({nr:i,t:d})}var x=function(t,e){var n,i,r,o,s,a,l;for(n=0;n<C;n++){for(i=0,o=(r=v[n]).length,a=l=-1;i<o;i++)(s=r[i]).nr==t&&(a=s.t),s.nr==e&&(l=s.t);if(a>=0&&l>=0)break}return n==C||a==l?0:a<l?-1:1};for(i=0;i<C;i++)y.push(i);for(i=0;i<w;i++)g.push({nr:i,v:_[i],c:0,s:!1});for(;g.length>0;){for(i=0,h=g.length,u=C;i<h;i++){for(o=(r=g[i].v).ttd,s=r.pos0,p=[];s<=r.pos1;s++)0!=!v[s].length||T(p,c=y[s])||p.push(c);u=Math.min(u,g[i].c=p.length-(o.length-(0!=r.type||null!=o[0].eid&&null!=o[1].eid&&null!=o[2].eid?0:1)))}for(m=[],i=0;i<h;i++)(c=g[i]).c==u&&m.push(c);for(i=0,a=m.length;i<a;i++)m[i].s=!1;for(i=0;i<a;i++)for(s=i+1;s<a;s++)(u=x(m[i].nr,m[s].nr))>0?m[i].s=!0:u<0&&(m[s].s=!0);for(i=0,u=!0;i<a;i++)u=u&&m[i].s;for(i=0,p=C,s=0;i<a;i++)(!(c=m[i]).s||u)&&(l=c.v.pos0)<p&&(p=l,s=i);for(b.push((c=m[s]).v),i=0,s=c.nr;i<h;i++)if(g[i].nr==s){g.splice(i,1);break}for(i=0,p=[],h=(o=c.v.ttd).length;i<h;i++)null!=(c=o[i]).eid&&p.push(y[c.pos]);for(i=0,l=p.pop();i<C;i++)T(p,y[i])&&(y[i]=l)}return e>0&&(b.push(f),w++),_=t=b,t}},J=Y;function G(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var Q=function(t){return JSON.parse(JSON.stringify(t))},tt=window.addEventListener,et=window.removeEventListener,nt={name:"TheConns",components:{conn:N,"conn-highlight":U,"conn-remove-icon":V},props:{origConns:{type:[Array,Boolean],required:!0},width:{type:Number,required:!0},sizes:{type:Object,required:!0},termsChangeNr:{type:Number,required:!0},enabled:{type:Boolean,default:!0}},data:function(){return{conns:[],lastKeys:[],fullTerms:[],termX1s:[],termX2s:[],colX1s:[],highLevels:[],hlConnNr:-1,levelCount:this.sizes.theConnsMinLevels,cellOwner:[[]],finalizeTimer:0,shiftCtrlListener:0,escListener:0,clickOutListener:0}},computed:{lastConn:function(){var t=this.conns.length;return!!t&&this.conns[t-1]},hasUCConn:function(){return this.lastConn&&!!this.lastConn.isUC},hasActiveUCConn:function(){return this.lastConn.isUC&&this.lastConn.pos.length>1},height:function(){return this.levelCount*this.sizes.theConnsLevelHeight+this.sizes.theConnsMarginBottom+this.sizes.theConnsSpaceBelow},hlPosNr:function(){if(!this.hasUCConn)return-1;var t=this.lastConn.pos;return t[t.length-1]},showPosHighlight:function(){return this.hlPosNr>=0&&this.hlPosNr<this.colX1s.length-1},showConnHighlight:function(){return this.hlConnNr>=0&&this.hlConnNr<this.conns.length&&!this.conns[this.hlConnNr].justRemoved&&!this.conns[this.hlConnNr].justAdded&&!this.conns[this.hlConnNr].isUC&&!this.hasActiveUCConn},showAnyHighlight:function(){return this.showPosHighlight||this.showConnHighlight},anyConnJustAddedOrRemoved:function(){return this.conns.filter((function(t){return t.justRemoved||t.justAdded})).length}},watch:{origConns:function(t){this.updateTermsRef(),!1===t?this.reset():this.initForNewConns()},termsChangeNr:function(t){this.updateAfterTermsChange(t)},height:function(){this.calcCoordinates()},enabled:function(t){t||(this.hlConnNr=-1,this.hasUCConn&&this.removeUCConn())}},created:function(){var t=this;this.shiftCtrlListener=function(e){var n=t.eventModifiersToConnType(e);t.updateUCConnType(n)},this.escListener=function(e){"Escape"==e.key&&t.stopUCConn()},this.clickOutListener=function(){return t.stopUCConn()}},destroyed:function(){this.setShiftCtrlListeners(!1),this.setStopUCConnListeners(!1)},methods:{updateTermsRef:function(){this.fullTerms=this.$parent.$refs.theTerms.terms},getCurrentTermKeys:function(){return this.fullTerms.slice(0,-1).map((function(t){return t.key}))},reset:function(){this.conns=[],this.lastKeys=[]},emitValue:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.conns.filter((function(t){return!t.isUC&&!t.justRemoved})).map(J.prepConnToEmit);this.$emit(t||"change",{conns:n,termsChangeNr:e})},initForNewConns:function(){var t=this;this.hlConnNr=-1,this.lastKeys=this.getCurrentTermKeys(),this.conns=this.origConns.map((function(e){return!(Math.max.apply(Math,G(e.pos))>t.fullTerms.length-2)&&J.prepConnToReceive(e)})).filter((function(t){return t})),this.sortConnectors(),this.emitValue("change-init")},updateAfterTermsChange:function(t){this.hlConnNr=-1,this.updateTermsRef(),this.hasUCConn&&this.removeUCConn(),this.makeLegsFollowTerms(),this.emitValue(0,t)},makeLegsFollowTerms:function(){var t=this,e=this.getCurrentTermKeys(),n={},i={};this.lastKeys.forEach((function(t,r){var o=e.indexOf(t);-1==o?n[r]=!0:o!=r&&(i[r]=o)}));var r=this.conns.map((function(t){var e=Q(t);return e.pos=e.pos.map((function(t){return n[t]?-2:void 0!==i[t]?i[t]:t})),e.pos.includes(-2)&&(e.justRemoved=!0),"L"==e.type&&J.sortListConnElemPos(e),e}));this.lastKeys=e,this.conns=r;var o=Object.keys(n);o.length?(o.sort((function(t,e){return t-e})).reverse().forEach((function(e){t.highLevels.splice(e,1),t.cellOwner.splice(e,1)})),this.calcCoordinates(!1),this.delayedFinalizeChanges()):this.sortConnectors()},calcCoordinates:function(){var t=this,e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n=[],i=[],r=[],o=[],s=-1;if(this.fullTerms.forEach((function(e,s){n[s]=e.x,i[s]=e.x+e.width,r[s]=0==s?0:e.x-((t.$parent.$refs.theTerms||{}).termMarginHor||0)/2,o[s]=-1})),this.termX1s=n,this.termX2s=i,this.colX1s=r,this.conns=this.conns.map((function(n){if(n=Object.assign({},n),t.setConnPosAZ(n),!e)return n;n.footLevels=[],n.pos.forEach((function(t,e){n.footLevels[e]=t<0?t:n.pos.slice(0,e).includes(t)?o[t]:++o[t]}));for(var i=0,r=n.pos.filter((function(t){return t>=0})),a=n.posA;a<=n.posZ;a++)i=Math.max(i,o[a]+(r.includes(a)?0:1));for(a=n.posA;a<=n.posZ;a++)o[a]=i;return n.backLevel=i,n.isUC||(s=Math.max.apply(Math,o)),n})),e){this.highLevels=o,this.levelCount=Math.max(this.sizes.theConnsMinLevels,s+2);for(var a=[],l=this.fullTerms.length,c=this.levelCount,u=0;u<l;u++){a[u]=[];for(var d=0;d<c;d++)a[u][d]=-1}this.conns.forEach((function(t,e){for(t.pos.forEach((function(n,i){for(d=t.footLevels[i];d<=t.backLevel;d++)n>=0&&(a[n][d]=e)})),u=t.posA;u<t.posZ;u++)a[u][t.backLevel]=e})),this.cellOwner=a}},setConnPosAZ:function(t){var e=t.pos.filter((function(t){return t>=0}));t.posA=Math.min.apply(Math,G(e)),t.posZ=Math.max.apply(Math,G(e))},levelTop:function(t){return this.height-this.sizes.theConnsMarginBottom-this.sizes.theConnsSpaceBelow-this.sizes.theConnsLevelHeight*(t+1)},eventToCoos:function(t){var e=this.$el.getBoundingClientRect();return[t.clientX-~~e.left,t.clientY-~~e.top]},coosToCell:function(t,e){for(var n=this.fullTerms.length-1;n>0&&!(t>=this.colX1s[n]);n--);for(var i=this.levelCount;i>0&&!(e<this.levelTop(i-1));i--);return{pos:n,level:i}},eventToCell:function(t){return this.coosToCell.apply(this,G(this.eventToCoos(t)))},onMousemove:function(t){if(this.enabled&&!this.anyConnJustAddedOrRemoved){var e=this.eventToCell(t);this.updateHLConnNr(e),this.handleUCConnAfterMousemove(t,e)}},onMouseleave:function(){this.enabled&&(this.hlConnNr=-1,this.hasUCConn&&!this.hasActiveUCConn&&this.removeUCConn())},onMousedown:function(t){if(this.enabled){var e=this.eventToCell(t);e.pos!=this.fullTerms.length-1?this.handleUCConnAfterMousedown(t,e):this.hasActiveUCConn||this.$emit("click-above-end-term")}},updateHLConnNr:function(t){var e=this.cellOwner[t.pos][t.level],n=this.conns[e];this.hlConnNr=!n||n.justRemoved||n.isUC||this.hasActiveUCConn?-1:e},onConnRemove:function(t){this.enabled&&(this.hlConnNr=-1,this.$set(this.conns[t],"justRemoved",!0),this.emitValue(),this.delayedFinalizeChanges())},delayedFinalizeChanges:function(){this.finalizeTimer&&clearTimeout(this.finalizeTimer),this.finalizeTimer=setTimeout(this.finalizeChanges.bind(this),this.sizes.theConnsResortDelay)},finalizeChanges:function(){var t=this;clearTimeout(this.finalizeTimer),this.hlConnNr=-1,this.conns=this.conns.reduce((function(e,n){return n.justRemoved||(n.justAdded&&t.$delete(n,"justAdded"),e.push(n)),e}),[]),this.sortConnectors()},handleUCConnAfterMousemove:function(t,e){if(this.hlConnNr<0&&e.pos<this.fullTerms.length-1){var n=this.eventModifiersToConnType(t);this.hasUCConn?(this.updateUCConnType(n),this.updateUCConnPos(e)):this.createUCConn(n,e)}else this.hasUCConn&&!this.hasActiveUCConn&&this.removeUCConn()},handleUCConnAfterMousedown:function(t,e){this.updateHLConnNr(e),!this.hasUCConn&&this.hlConnNr<0&&this.handleUCConnAfterMousemove(t,e),this.hasUCConn&&(this.updateUCConnType(this.eventModifiersToConnType(t)),this.updateUCConnOnClick(e))},eventModifiersToConnType:function(t){return t.shiftKey?"L":t.ctrlKey?"R":"T"},createUCConn:function(t,e){this.setShiftCtrlListeners(!0),this.conns.push({type:t,pos:[e.pos],isUC:!0}),this.calcCoordinates()},updateUCConnType:function(t){if(this.hasUCConn&&!this.hasActiveUCConn&&this.lastConn.type!=t){var e=Q(this.lastConn);e.type=t,this.$set(this.conns,this.conns.length-1,e)}},updateUCConnPos:function(t){if(this.hasUCConn){var e=this.lastConn.pos;if(e[e.length-1]!=t.pos){var n=Q(this.lastConn);n.pos[e.length-1]=t.pos,this.$set(this.conns,this.conns.length-1,n),this.calcCoordinates()}}},updateUCConnOnClick:function(t){var e=Q(this.lastConn),n=e.type,i=e.pos.length,r=t.pos;if(1==i)this.setShiftCtrlListeners(!1),e.pos.push(r);else if("T"==n)if(2==i)e.pos[0]==r&&(e.pos[0]=-1),e.pos.push(r);else{if(e.pos[0]==r)return;if(e.pos[1]==r){if(-1==e.pos[0])return this.removeUCConn();e.pos[1]=-1}e.justAdded=!0}else if("L"==n)if(2==i){if(e.pos[0]==r)return this.removeUCConn();e.pos.push(r)}else e.pos.slice(0,i-1).includes(r)?(e.pos.pop(),J.sortListConnElemPos(e),e.justAdded=!0):e.pos.push(r);else if("R"==n){if(e.pos[0]==r)return this.removeUCConn();e.justAdded=!0}2==e.pos.length&&this.setStopUCConnListeners(!0),this.$set(this.conns,this.conns.length-1,e),e.justAdded?(delete e.isUC,this.setStopUCConnListeners(!1),this.emitValue(),this.delayedFinalizeChanges()):this.calcCoordinates()},removeUCConn:function(){this.setShiftCtrlListeners(!1),this.conns.pop(),this.calcCoordinates()},stopUCConn:function(){if(this.hasUCConn){this.setStopUCConnListeners(!1);var t=Q(this.lastConn);t.pos.length<2||("T"==t.type&&3==t.pos.length&&-1!=t.pos[0]?(t.pos[2]=-1,t.justAdded=!0):"L"==t.type&&t.pos.length>2&&(t.pos.pop(),J.sortListConnElemPos(t),t.justAdded=!0),t.justAdded?(delete t.isUC,this.setConnPosAZ(t),this.$set(this.conns,this.conns.length-1,t),this.emitValue(),this.delayedFinalizeChanges()):this.removeUCConn())}},setShiftCtrlListeners:function(t){var e=t?tt:et;e("keydown",this.shiftCtrlListener),e("keyup",this.shiftCtrlListener)},setStopUCConnListeners:function(t){var e=t?tt:et;e("keydown",this.escListener),e("mousedown",this.clickOutListener)},sortConnectors:function(){this.conns=J.sortConnectors(this.conns),this.calcCoordinates()}}},it=(n(19),A(nt,S,[],!1,null,"9e1325b0",null));it.options.__file="src/subcomponents/TheConns.vue";var rt=it.exports,ot=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"terms",style:{width:t.width+"px",height:t.height+"px"},on:{mousedown:function(e){return"button"in e||!t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])?"button"in e&&0!==e.button||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:t.onMousedown_div(e):null}}},[n("span",{ref:"ruler",staticClass:"ruler term"}),t._v(" "),t._l(t.terms,(function(e,i){return n("term",{key:e.key,attrs:{term:e,index:i,"has-input":i==t.inputIndex,"vsm-dictionary":t.vsmDictionary,"query-options":t.queryOptions,autofocus:i==t.inputIndex&&t.autofocus,placeholder:1==t.terms.length&&t.placeholder,"tab-listen-mode":i==t.inputIndex?t.inputTabListenMode:3,"fresh-list-delay":t.freshListDelay,"max-string-lengths":t.maxStringLengths,"has-item-literal":!(!t.allowClassNull&&!t.advancedSearch),"custom-item":t.customItem,"custom-item-literal":t.customItemLiteral2,unselectable:"on"},on:{input:t.onInput,"key-esc":t.onKeyEsc,"key-bksp":t.onKeyBksp,"key-ctrl-enter":t.onKeyCtrlEnter,"key-tab":t.onKeyTab,"key-alt-up":t.onKeyAltUp,"key-alt-down":t.onKeyAltDown,"key-ctrl-delete":t.onKeyCtrlDelete,"key-ctrl-bksp":t.onKeyCtrlBksp,"key-shift-enter":t.onKeyShiftEnter,mouseenter:t.onMouseenter,mouseleave:t.onMouseleave,focus:t.onFocus,blur:t.onBlur,"list-open":t.onListOpen,"item-select":t.insertFromMatch,"item-literal-select":t.onItemLiteralSelect,"plain-enter":t.onPlainEnter,mousedown:t.onMousedown,"ctrl-mousedown":t.onCtrlMousedown,"ctrl-shift-mousedown":t.onCtrlShiftMousedown,"alt-mousedown":t.onAltMousedown,click:t.onClick,dblclick:t.onDblclick}})})),t._v(" "),t.dragIndex>=0?n("div",{staticClass:"term drag-placeholder",style:{width:t.terms[t.dragIndex].width+"px",height:t.terms[t.dragIndex].height+"px",top:t.terms[t.dragIndex].y+"px",left:t.terms[t.dragIndex].x+"px"}}):t._e(),t._v(" "),t.popupLoc>=0&&t.popupLoc<t.terms.length?n("the-popup",{attrs:{index:t.popupLoc,term:t.terms[t.popupLoc],"vsm-dictionary":t.vsmDictionary,sizes:t.sizes,"allow-class-null":t.allowClassNull,"term-margin":t.popupTermMargin,"custom-popup":t.customPopup,"term-copy":t.termCopy,"term-paste":t.termPaste},on:{mouseenter:t.onMouseenter_popup,mouseleave:t.onMouseleave,edit:t.onDblclick,"undo-edit":t.onKeyEsc,"toggle-focal":t.onAltMousedown,insert:t.onInsertBefore,remove:t.onKeyCtrlDelete,"set-type":t.onSetType,copy:t.onCopy,"copy-ref":t.onCopyRef,paste:t.onPaste},nativeOn:{mousedown:function(t){return t.stopPropagation(),t}}}):t._e()],2)};ot._withStripped=!0;var st=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["term",{edit:t.isEditType,lit:"L"==t.term.type||"EL"==t.term.type,class:"C"==t.term.type||"EC"==t.term.type,inst:"I"==t.term.type||"R"==t.term.type,ref:"R"==t.term.type||"ER"==t.term.type,focal:t.term.isFocal,end:t.term.isEndTerm,drag:t.term.drag,inp:t.hasInput||t.showAutocomplete,focus:t.hasFocus&&t.hasInput,nofade:t.noFade}],style:{width:t.term.width+"px",height:t.term.height+"px",top:(t.term.drag?t.term.drag.y:t.term.y)+"px",left:(t.term.drag?t.term.drag.x:t.term.x)+"px",margin:0},on:{keydown:[function(e){return("button"in e||!t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"]))&&e.altKey?e.ctrlKey||e.shiftKey||e.metaKey?null:t.onKeyAltUp(e):null},function(e){return("button"in e||!t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"]))&&e.altKey?e.ctrlKey||e.shiftKey||e.metaKey?null:t.onKeyAltDown(e):null},function(e){return("button"in e||46===e.keyCode)&&e.ctrlKey?e.shiftKey||e.altKey||e.metaKey?null:t.onKeyCtrlDelete(e):null},function(e){return("button"in e||8===e.keyCode)&&e.ctrlKey?e.shiftKey||e.altKey||e.metaKey?null:t.onKeyCtrlBksp(e):null},function(e){return"button"in e||!t._k(e.keyCode,"tab",9,e.key,"Tab")?e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:t.onKeyTab(e):null},function(e){return("button"in e||!t._k(e.keyCode,"tab",9,e.key,"Tab"))&&e.shiftKey?e.ctrlKey||e.altKey||e.metaKey?null:t.onKeyShiftTab(e):null}],mouseover:t.onMouseenter,mouseleave:t.onMouseleave,mousedown:[function(e){return"button"in e||!t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])?"button"in e&&0!==e.button||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey||e.target!==e.currentTarget?null:(e.preventDefault(),e.stopPropagation(),t.onMousedown_div(e)):null},function(e){return"button"in e||!t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])?"button"in e&&0!==e.button||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:(e.stopPropagation(),t.onMousedown(e)):null},function(e){return"button"in e||!t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])?"button"in e&&0!==e.button?null:e.ctrlKey?e.shiftKey||e.altKey||e.metaKey?null:t.onCtrlMousedown(e):null:null},function(e){return"button"in e||!t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])?"button"in e&&0!==e.button?null:e.ctrlKey&&e.shiftKey?e.altKey||e.metaKey?null:(e.preventDefault(),t.onCtrlShiftMousedown(e)):null:null},function(e){return"button"in e||!t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])?"button"in e&&0!==e.button?null:e.altKey?e.ctrlKey||e.shiftKey||e.metaKey?null:t.onAltMousedown(e):null:null}],click:[function(e){return"button"in e||!t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])?"button"in e&&0!==e.button||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey||e.target!==e.currentTarget?null:(e.preventDefault(),e.stopPropagation(),t.onClick_div(e)):null},function(e){return"button"in e||!t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])?"button"in e&&0!==e.button||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:(e.stopPropagation(),t.onClick(e)):null}],dblclick:function(e){return"button"in e||!t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])?"button"in e&&0!==e.button||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:t.onDblclick(e):null}}},[t.showPlain?n("div",{staticClass:"input-wrap plain"},[n("input",{ref:"input_plain",staticClass:"input plain",attrs:{autofocus:t.autofocus,spellcheck:"false"},domProps:{value:t.term.str},on:{input:function(e){return t.onInput(e.target.value)},focus:t.onFocus,blur:t.onBlur,keydown:[function(e){return"button"in e||!t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"])?e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:(e.preventDefault(),t.onKeyEsc(e)):null},function(e){return"button"in e||8===e.keyCode?e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:t.onKeyBksp_plain(e):null},function(e){return("button"in e||8===e.keyCode)&&e.ctrlKey?e.shiftKey||e.altKey||e.metaKey?null:(e.stopPropagation(),t.onKeyCtrlBksp(e)):null},function(e){return"button"in e||!t._k(e.keyCode,"enter",13,e.key,"Enter")?e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:t.onKeyEnter_plain(e):null},function(e){return("button"in e||!t._k(e.keyCode,"enter",13,e.key,"Enter"))&&e.ctrlKey?e.shiftKey||e.altKey||e.metaKey?null:t.onKeyCtrlEnter(e):null},function(e){return("button"in e||!t._k(e.keyCode,"enter",13,e.key,"Enter"))&&e.shiftKey?e.ctrlKey||e.altKey||e.metaKey?null:t.onKeyShiftEnter(e):null}]}}),t.finalPlaceholder?n("span",{class:["placehold plain",{focus:t.hasFocus,hidden:!t.showPlainPlaceholder}],domProps:{textContent:t._s(t.finalPlaceholder)}}):t._e()]):t.showAutocomplete?n("vsm-autocomplete",t._g({ref:"vsmac",attrs:{"vsm-dictionary":t.vsmDictionary,autofocus:t.autofocus,placeholder:t.finalPlaceholder,"query-options":t.finalQueryOptions,"max-string-lengths":t.maxStringLengths,"fresh-list-delay":t.freshListDelay,"initial-value":t.term.str,"custom-item":t.customItem,"custom-item-literal":t.customItemLiteral},on:{input:t.onInput,focus:t.onFocus,blur:t.onBlur,"key-esc":t.onKeyEsc,"key-bksp":t.onKeyBksp,"key-ctrl-enter":t.onKeyCtrlEnter,"key-shift-enter":t.onKeyShiftEnter,"item-select":t.onItemSelect,"list-open":t.onListOpen,"mouseover-input":t.onMouseenter},nativeOn:{mouseover:function(t){return t.stopPropagation(),t}}},t.hasItemLiteral?{"item-literal-select":t.onItemLiteralSelect}:{})):n("span",{class:["label",{"label-placehold":!t.term.label&&t.finalPlaceholder}],domProps:{innerHTML:t._s(t.term.label||t.finalPlaceholder)}})],1)};st._withStripped=!0;var at=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"vsm-autocomplete"},[n("the-input",{ref:"theInput",attrs:{placeholder:t.placeholder,autofocus:t.autofocus,"show-error":t.showError},on:{focus:t.onInputFocus,blur:t.onInputBlur,"key-ctrl-enter":t.onKeyCtrlEnter,"key-shift-enter":t.onKeyShiftEnter,"key-up":t.onKeyUp,"key-down":t.onKeyDown,"key-esc":t.onKeyEsc,"key-enter":t.onKeyEnter,"key-bksp":t.onKeyBksp,"key-tab":t.onKeyTab,click:t.onInputClick,dblclick:t.onInputDblclick},nativeOn:{mouseover:function(e){return t.onInputHover(e)}},model:{value:t.inputStr,callback:function(e){t.inputStr=e},expression:"inputStr"}}),t._v(" "),t.isListOpen?n("the-list",{attrs:{"search-str":t.activeSearchStr||"",items:t.matches,"max-string-lengths":t.sanitizedMaxStringLengths,"query-options":t.queryOptions2,"dict-infos":t.dictInfos,"has-item-literal":t.hasItemLiteral,"custom-item-literal":t.customItemLiteral,"custom-item":t.customItem,"active-index":t.activeIndex,"vsm-dictionary":t.vsmDictionary},on:{"item-hover":t.onItemHover,"item-click":t.onItemClick}}):t._e(),t._v(" "),t.isSpinnerShown?n("the-spinner",{class:{"list-closed":!t.isListOpen}}):t._e()],1)};at._withStripped=!0;var lt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"input-wrap"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.str,expression:"str"}],ref:"input",class:["input",{error:t.showError}],attrs:{autofocus:t.autofocus,spellcheck:"false"},domProps:{value:t.str},on:{focus:t.onFocus,blur:t.onBlur,keydown:[function(e){return"button"in e||!t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"])?e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:t.onKeyUp(e):null},function(e){return"button"in e||!t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"])?e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:t.onKeyDown(e):null},function(e){return"button"in e||!t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"])?e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:(e.preventDefault(),t.onKeyEsc(e)):null},function(e){return"button"in e||!t._k(e.keyCode,"enter",13,e.key,"Enter")?e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:t.onKeyEnter(e):null},function(e){return"button"in e||8===e.keyCode?e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:t.onKeyBksp(e):null},function(e){return"button"in e||!t._k(e.keyCode,"tab",9,e.key,"Tab")?e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:t.onKeyTab(e):null},function(e){return("button"in e||!t._k(e.keyCode,"tab",9,e.key,"Tab"))&&e.shiftKey?e.ctrlKey||e.altKey||e.metaKey?null:t.onKeyShiftTab(e):null},function(e){return("button"in e||!t._k(e.keyCode,"enter",13,e.key,"Enter"))&&e.ctrlKey?e.shiftKey||e.altKey||e.metaKey?null:t.onKeyCtrlEnter(e):null},function(e){return("button"in e||!t._k(e.keyCode,"enter",13,e.key,"Enter"))&&e.shiftKey?e.ctrlKey||e.altKey||e.metaKey?null:t.onKeyShiftEnter(e):null}],click:function(e){return"button"in e||!t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])?"button"in e&&0!==e.button||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:t.onClick(e):null},dblclick:function(e){return"button"in e||!t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])?"button"in e&&0!==e.button||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:t.onDblclick(e):null},input:function(e){e.target.composing||(t.str=e.target.value)}}}),t._v(" "),t.placeholder?n("span",{class:["placehold",{focus:t.hasFocus,hidden:!t.showPlaceholder}],domProps:{textContent:t._s(t.placeholder)}}):t._e()])};lt._withStripped=!0;var ct={name:"TheInput",props:{placeholder:{type:[String,Boolean],default:!1},autofocus:{type:Boolean,default:!1},showError:{type:Boolean,default:!1},value:{type:String,default:""}},data:function(){return{input:null,str:this.value,hasFocus:!1}},computed:{showPlaceholder(){return this.placeholder&&!this.str}},watch:{value:function(t){this.str=t},str:function(t){this.$emit("input",t)}},mounted:function(){this.input=this.$refs.input},methods:{onFocus(){this.cursorToEnd(),this.hasFocus=!0,this.$emit("focus")},onBlur(){this.hasFocus=!1,this.$emit("blur")},cursorToEnd(){setTimeout(()=>{this.input.selectionStart=this.input.selectionEnd=this.str.length},0)},onKeyUp(){this.$emit("key-up")},onKeyDown(){this.$emit("key-down")},onKeyEsc(){this.$emit("key-esc")},onKeyEnter(){this.$emit("key-enter")},onKeyBksp(t){this.$emit("key-bksp",t)},onKeyTab(t){this.$emit("key-tab","",t)},onKeyShiftTab(t){this.$emit("key-tab","shift",t)},onKeyCtrlEnter(){this.$emit("key-ctrl-enter")},onKeyShiftEnter(){this.$emit("key-shift-enter")},onClick(){this.hasFocus=!0,this.$emit("click")},onDblclick(){this.cursorToEnd(),this.hasFocus=!0,this.$emit("dblclick")}}},ut=(n(22),A(ct,lt,[],!1,null,"819a3320",null));ut.options.__file="node_modules/vsm-autocomplete/src/subcomponents/TheInput.vue";var dt=ut.exports,ht=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"list",on:{mousedown:function(e){return"button"in e||!t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])?"button"in e&&0!==e.button||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:(e.preventDefault(),e):null},click:function(e){return"button"in e||!t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])?"button"in e&&0!==e.button||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:t.onClick(e):null}}},[t._l(t.items,(function(e,i){return n("list-item",{key:i+e.id+e.str,class:["item",{"item-pos-first":0==i,"item-pos-last":i==t.items.length-1,"item-type-number":"N"==e.type,"item-type-ref":"R"==e.type,"item-type-fixed":"F"==e.type||"G"==e.type,"item-type-fixed-last":i==t.indexLastFixedItem,"item-state-active":t.isActive(i)}],attrs:{"search-str":t.searchStr,index:i,item:e,"max-string-lengths":t.maxStringLengths,"query-options":t.queryOptions,"custom-item":t.customItem,"dict-info":t.dictInfos[e.dictID],"vsm-dictionary":t.vsmDictionary,unselectable:"on"},on:{hover:t.onItemHover,click:t.onItemClick}})})),t._v(" "),t.hasItemLiteral?n("list-item-literal",{class:["item","item-type-literal",{"item-state-active":t.isActive(t.items.length)}],attrs:{"search-str":t.searchStr,index:t.items.length,"max-string-lengths":t.maxStringLengths,"custom-item-literal":t.customItemLiteral,unselectable:"on"},on:{hover:t.onItemHover,click:t.onItemClick}}):t._e()],2)};ht._withStripped=!0;var pt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{on:{mousemove:t.onHover,mousedown:function(e){return e.preventDefault(),t.onMousedown(e)},click:function(e){return"button"in e||!t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])?"button"in e&&0!==e.button||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:t.onClick(e):null}}},[n("span",{staticClass:"item-part-str",attrs:{title:t.strs.strTitle},domProps:{innerHTML:t._s(t.strs.str)}}),t._v(" "),t.strs.descr?n("span",{staticClass:"item-part-descr",attrs:{title:t.strs.descrTitle},domProps:{innerHTML:t._s(t.strs.descr)}}):t._e(),t._v(" "),t.strs.info?n("span",{staticClass:"item-part-info",attrs:{title:t.strs.infoTitle},domProps:{innerHTML:t._s(t.strs.info)}}):t._e(),t._v(" "),t.strs.extra?n("span",{staticClass:"item-part-extra",domProps:{innerHTML:t._s(t.strs.extra)}}):t._e()])};pt._withStripped=!0;var ft=n(2),mt=n.n(ft);function vt(t,e){return t.length<=e?t:t.substr(0,e-1)+"…"}function yt(t){return t.replace(/<(\s*(script|iframe|style|textarea)\W)/g,"&lt;$1")}var gt={name:"ListItem",props:{searchStr:{type:String,default:""},index:{type:Number,default:0},item:{type:Object,required:!0},maxStringLengths:{type:Object,required:!0},queryOptions:{type:Object,default:()=>({})},customItem:{type:[Function,Boolean],default:!1},dictInfo:{type:Object,default:void 0},vsmDictionary:{type:Object,default:()=>({})}},computed:{isNumberItem(){return"N"==this.item.type||this.vsmDictionary&&this.vsmDictionary.numberMatchConfig&&this.item.dictID==this.vsmDictionary.numberMatchConfig.dictID},strs(){var t=this.item.str||"",e=mt()(vt(t,this.maxStringLengths.str),this.item.style),n=t.length>this.maxStringLengths.str?t:"",i=Math.min(t.length,this.maxStringLengths.str),r=this.item.descr||"",o=vt(r,this.maxStringLengths.strAndDescr-i),s=i+r.length>this.maxStringLengths.strAndDescr?r:"",a=this.isNumberItem?this.uriTail(this.item.id):"R"==this.item.type?"":(this.dictInfo||{}).abbrev||this.uriTail(this.item.dictID);if(this.isNumberItem){var l=this.vsmDictionary&&this.vsmDictionary.numberMatchConfig?this.vsmDictionary.numberMatchConfig.conceptIDPrefix:"";a=a.replace(l,"")}var c={str:e,strTitle:n,descr:o,descrTitle:s,info:a,infoTitle:this.uriTail(this.item.id)+(this.dictInfo&&this.dictInfo.name?` in ${this.dictInfo.name}`:""),extra:""};return this.customItem&&(c=this.customItem({item:this.item,searchStr:this.searchStr,maxStringLengths:this.maxStringLengths,queryOptions:this.queryOptions,dictInfo:this.dictInfo,vsmDictionary:this.vsmDictionary,strs:c})),c.strTitle||(c.strTitle=!1),c.descrTitle||(c.descrTitle=!1),c.infoTitle||(c.infoTitle=!1),c.str=yt(c.str),c.descr=!!c.descr&&yt(this.isNumberItem||"R"==this.item.type?"["+c.descr+"]":"("+c.descr+")"),c.info=!!c.info&&yt("("+c.info+")"),c.extra=!!c.extra&&yt(c.extra),c}},methods:{onHover(){this.$emit("hover",this.index)},onMousedown(){this.$emit("hover",this.index)},onClick(){this.$emit("click",this.index)},uriTail:t=>(t||"").replace(/^.*\/([^/]*)$/,"$1")}},bt=(n(24),A(gt,pt,[],!1,null,"0e6a8568",null));bt.options.__file="node_modules/vsm-autocomplete/src/subcomponents/ListItem.vue";var Ct=bt.exports,_t=function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{attrs:{title:t.strs.strTitle},domProps:{innerHTML:t._s(t.strs.str)},on:{mousemove:t.onHover,mousedown:function(e){return e.preventDefault(),t.onMousedown(e)},click:function(e){return"button"in e||!t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])?"button"in e&&0!==e.button||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:t.onClick(e):null}}})};_t._withStripped=!0;var wt={name:"ListItemLiteral",props:{searchStr:{type:String,default:""},index:{type:Number,default:0},maxStringLengths:{type:Object,required:!0},customItemLiteral:{type:[Function,Boolean],default:!1}},computed:{strs(){var t={str:vt(this.searchStr,this.maxStringLengths.str),strTitle:`Search for '${this.searchStr}'`};return this.customItemLiteral&&(t=this.customItemLiteral({searchStr:this.searchStr,maxStringLengths:this.maxStringLengths,strs:t})),t.str=yt(t.str),t}},methods:{onHover(){this.$emit("hover",this.index)},onMousedown(){this.$emit("hover",this.index)},onClick(){this.$emit("click",this.index)}}},Tt=(n(26),A(wt,_t,[],!1,null,"b1fa2252",null));Tt.options.__file="node_modules/vsm-autocomplete/src/subcomponents/ListItemLiteral.vue";var xt={name:"TheList",components:{ListItem:Ct,ListItemLiteral:Tt.exports},props:{searchStr:{type:String,default:""},items:{type:Array,required:!0},maxStringLengths:{type:Object,required:!0},queryOptions:{type:Object,default:()=>({})},dictInfos:{type:Object,required:!0},hasItemLiteral:{type:Boolean,default:!1},customItemLiteral:{type:[Function,Boolean],default:!1},customItem:{type:[Function,Boolean],default:!1},activeIndex:{type:Number,default:0},vsmDictionary:{type:Object,default:()=>({})}},computed:{indexLastFixedItem(){return this.items.reduce((t,e,n)=>"F"==e.type||"G"==e.type?n:t,-1)}},methods:{isActive(t){return t==this.activeIndex},onClick(){this.onItemClick(this.activeIndex)},onItemHover(t){this.$emit("item-hover",t)},onItemClick(t){this.$emit("item-click",t)}}},kt=(n(28),A(xt,ht,[],!1,null,"1938b968",null));kt.options.__file="node_modules/vsm-autocomplete/src/subcomponents/TheList.vue";var Lt=kt.exports,Et=function(){var t=this.$createElement,e=this._self._c||t;return e("transition",{attrs:{name:"fade"}},[e("div",{staticClass:"spinner"})])};Et._withStripped=!0;var It={name:"TheSpinner"},St=(n(30),A(It,Et,[],!1,null,"9aab1482",null));St.options.__file="node_modules/vsm-autocomplete/src/subcomponents/TheSpinner.vue";var Ot=St.exports,Mt=[["α","alpha"],["β","beta"],["γ","gamma"],["δ","delta"],["ε","epsilon"],["ζ","zeta"],["η","eta"],["θ","theta"],["ι","iota"],["κ","kappa"],["λ","lambda"],["μ","mu"],["ν","nu"],["ξ","xi"],["ο","omicron"],["π","pi"],["ρ","rho"],["σ","sigma"],["τ","tau"],["υ","upsilon"],["φ","phi"],["χ","chi"],["ψ","psi"],["ω","omega"],["∀","forall"],["∃","exist"],["∧","and"],["∨","or"],["¬","not"],["∏","prod"],["∑","sum"],["µ","micro"]];var At={name:"VsmAutocomplete",components:{TheInput:dt,TheList:Lt,TheSpinner:Ot},props:{vsmDictionary:{type:Object,required:!0},autofocus:{type:Boolean,default:!1},placeholder:{type:[String,Boolean],default:!1},initialValue:{type:String,default:""},queryOptions:{type:Object,default:()=>({perPage:20})},maxStringLengths:{type:Object,default:()=>({str:40,strAndDescr:70})},freshListDelay:{type:Number,default:0},customItemLiteral:{type:[Function,Boolean],default:!1},customItem:{type:[Function,Boolean],default:!1}},data:function(){return{inputStr:this.initialValue,activeSearchStr:!1,loadingFixedTerms:0,showError:!1,mayListOpen:!1,listClosedHard:!1,autoChangedInputStr:!1,matches:[],dictInfos:{},activeIndex:0}},computed:{searchStr(){return this.inputStr.trim()},queryOptions2(){return Object.assign({},this.queryOptions,{page:1},this.customItem?{}:{z:[]})},hasItemLiteral(){return this.$listeners&&this.$listeners["item-literal-select"]&&!!this.activeSearchStr},listLength(){return this.matches.length+(this.hasItemLiteral?1:0)},isListOpen(){return this.mayListOpen&&this.listLength>0},isListStale(){return this.searchStr!==this.activeSearchStr},isSpinnerShown(){return this.mayListOpen&&this.isListStale},hasKeyTabListener(){return this.$listeners&&this.$listeners["key-tab"]},hasItemActiveListener(){return this.$listeners&&this.$listeners["item-active-change"]},activeItemKey(){if(this.hasItemActiveListener){if(this.isListOpen){if(this.hasItemLiteral&&this.activeIndex==this.listLength-1)return"-"+this.searchStr;var t=this.matches[this.activeIndex];return this.activeIndex+","+t.id+t.str}return!1}},sanitizedMaxStringLengths(){return Object.assign({str:Number.MAX_VALUE,strAndDescr:Number.MAX_VALUE},this.maxStringLengths)}},watch:{vsmDictionary:function(){this.resetComponent()},initialValue:function(t){this.inputStr!==t&&(this.inputStr=this.autoChangedInputStr=t)},queryOptions:function(){this.resetComponent()},searchStr:function(){this.onInputChange(),this.$emit("input-change",this.searchStr)},inputStr:function(){this.$emit("input",this.inputStr)},isListOpen:function(t){this.$emit("list-"+(t?"open":"close"))},activeItemKey:function(t){this.$emit("item-active-change",!!t&&(t.startsWith("-")?t.substr(1):this.matches[+t.replace(/^(\d+),.*$/,"$1")]))}},created:function(){this.resetComponent()},mounted:function(){this.$emit("input-change",this.searchStr),this.$emit("input",this.inputStr)},methods:{resetComponent(){this.resetList(),this.loadingFixedTerms++,this.loadFixedTermsMaybe(()=>{0==--this.loadingFixedTerms&&this.requestListDataMaybe()})},loadFixedTermsMaybe(t){this.queryOptions2.idts?this.vsmDictionary.loadFixedTerms(this.queryOptions2.idts,this.queryOptions2,t):t(null)},onInputChange(){var t=!this.isListOpen&&this.inputStr===this.autoChangedInputStr;this.autoChangedInputStr=!1,this.isListOpen||this.resetList(),t||this.openList()},onKeyCtrlEnter(){var t=function(t){return Mt.reduce((t,e)=>t.replace(new RegExp("[\\\\/]"+e[1],"g"),e[0]).replace(new RegExp("[\\\\/]"+e[1],"gi"),e[0].toUpperCase()),t)}(this.inputStr);t!=this.inputStr?this.inputStr=t:(this.closeList(),this.$emit("key-ctrl-enter"))},onKeyShiftEnter(){this.closeList(),this.$emit("key-shift-enter")},onInputFocus(){this.openList(!1),this.$emit("focus")},onInputBlur(){this.closeList(!1),this.$emit("blur")},openList(t=!0){this.listClosedHard&&!t||(this.listClosedHard=!1,this.mayListOpen=!0,this.requestListDataMaybe())},closeList(t=!0){this.mayListOpen=!1,t&&(this.listClosedHard=!0),this.isListStale&&this.resetList()},resetList(){this.matches=[],this.dictInfos={},this.activeIndex=0,this.activeSearchStr=!1},requestListDataMaybe(){!this.loadingFixedTerms&&this.mayListOpen&&this.isListStale&&this.requestListData()},requestListData(){this.vsmDictionary.getMatchesForString(this.searchStr,this.queryOptions2,this.newMatchesArrived.bind(this,this.searchStr,this.queryOptions2))},newMatchesArrived(t,e,n,i){if(t===this.searchStr&&e===this.queryOptions2&&this.mayListOpen){var r=n?[]:i.items,o=this.newDictInfosArrived.bind(this,t,e,r);if(n)return o(n);var s=[...new Set(r.map(t=>t.dictID))];if(!s.length)return o(null,{items:[]});this.vsmDictionary.getDictInfos({filter:{id:s}},o)}},newDictInfosArrived(t,e,n,i,r){if(t===this.searchStr&&e===this.queryOptions2){if(this.showError=!!i,!i){var o={};[this.vsmDictionary.getExtraDictInfos(),r.items].forEach(t=>t.forEach(t=>o[t.id]=t)),this.dictInfos=o}this.isListStale&&(this.activeIndex=0),this.matches=i?[]:n,this.activeSearchStr=t,this.lastFreshListTime=Date.now()}},openFreshList(){this.isListStale&&this.resetList(),this.openList()},onKeyUp(){this.isListOpen?this.isListStale||(this.activeIndex=(this.activeIndex||this.listLength)-1):this.openFreshList()},onKeyDown(){this.isListOpen?this.isListStale||(this.activeIndex=this.activeIndex>=this.listLength-1?0:this.activeIndex+1):this.openFreshList()},onKeyEsc(){this.isListOpen||this.$emit("key-esc"),this.closeList()},onKeyEnter(){this.isListOpen?this.selectItem(this.activeIndex):this.openFreshList()},onKeyBksp(t){!this.inputStr||this.searchStr||this.$refs.theInput.input.selectionStart||(this.inputStr=""),this.inputStr||(this.closeList(),t.preventDefault(),this.$emit("key-bksp"))},onKeyTab(t,e){this.hasKeyTabListener&&(this.$emit("key-tab",t),e.preventDefault())},onInputClick(){this.openList()},onInputDblclick(){this.closeList(),this.$emit("dblclick")},onInputHover(){this.$emit("mouseover-input")},onItemHover(t){this.isListStale||(this.activeIndex=t)},onItemClick(t){this.selectItem(t)},isListTooFresh(){return Date.now()-this.lastFreshListTime<this.freshListDelay},selectItem(t){this.isListStale||this.isListTooFresh()||(this.closeList(),this.hasItemLiteral&&t==this.listLength-1?this.$emit("item-literal-select",this.searchStr):this.$emit("item-select",this.matches[t]),this.resetList())}}},Dt=(n(32),A(At,at,[],!1,null,"7667f44a",null));Dt.options.__file="node_modules/vsm-autocomplete/src/VsmAutocomplete.vue";var Pt=Dt.exports;function $t(t){return t.replace(/<(\s*(script|iframe|style|textarea)\W)/gi,"&lt;$1")}function Ht(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),i.forEach((function(e){Kt(t,e,n[e])}))}return t}function Kt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var jt=-1,Ft={newEndTerm:function(){return Ft.newEditTerm(!0)},newEditTerm:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return Ht({str:"",label:"",x:0,y:0,width:0,height:0,type:"EI",key:++jt},t&&{isEndTerm:t})},clone:function(t){return JSON.parse(JSON.stringify(t))},prepToReceive:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=Ft.clone(t);return Ft.inferType(n),e&&(n.key=++jt),Ft.pruneProperties(n),n},prepToReceiveForPaste:function(t){var e=Ft.prepToReceive(t,!1);return Ft.deleteInternallyUsedProperties(e),delete e.isFocal,delete e.minWidth,delete e.maxWidth,delete e.editWidth,delete e.queryOptions,delete e.placeholder,e},inferType:function(t){t.type=void 0===t.str?["ER","EC","EL"].includes(t.type)?t.type:"EI":void 0===t.classID?"L":void 0===t.instID?"C":void 0===t.parentID?"I":"R"},pruneProperties:function(t){var e=t.type;"R"==e?t.classID&&t.parentID||(t.classID=t.parentID=null):(delete t.parentID,"I"!=e&&(delete t.instID,"C"!=e&&delete t.classID));var n=!["R","I","C"].includes(e);!n&&t.dictID||delete t.dictID,!n&&t.descr||delete t.descr,t.style&&!Ft.isEditable(t)||delete t.style,delete t.label,delete t.backup,delete t.drag},isEditable:function(t){return"E"==t.type[0]},cycleType:function(t,e,n){var i=Ft.isEditable(t)?"E":"",r=(i||t.classID||e?["I","C","L","R","I"]:["L","R","L"]).map((function(t){return i+t}));t.type=r[r.indexOf(t.type)+1],Ft.ensureIDs(t,n)},setType:function(t,e,n){t.type=e,Ft.ensureIDs(t,n)},ensureIDs:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];["classID","instID","parentID"].forEach((function(n){void 0===t[n]&&(e?e.$set(t,n,null):t[n]=null)}))},makeFocal:function(t,e,n){e?n.$set(t,"isFocal",!0):n.$delete(t,"isFocal")},prepToEmit:function(t){var e=Ft.clone(t),n=Ft.isEditable(e);return Ft.pruneProperties(e),n&&delete e.str,n&&"EI"!=e.type||delete e.type,Ft.deleteInternallyUsedProperties(e),e},deleteInternallyUsedProperties:function(t){delete t.label,delete t.key,delete t.x,delete t.width,delete t.y,delete t.height,delete t.isEndTerm,delete t.drag,delete t.backup},createEditTerm:function(t){var e=$t(t.str),n=Object.assign(Ft.clone(t),{type:"E"+t.type,label:e,backup:Ht({type:t.type,str:t.str},t.style&&{style:t.style},{label:t.label})});return delete n.style,n},createRestoredTerm:function(t){var e=Object.assign(Ft.clone(t),t.backup);return delete e.backup,e},unsetAsEndTerm:function(t,e){e.$delete(t,"isEndTerm")},createRorLTerm:function(t){return t=Object.assign(Ft.clone(t),{type:t.type.replace("E","")}),Ft.ensureIDs(t),t},createTermFromMatch:function(t,e){return t=Object.assign(Ft.clone(t),{type:e.termType||(""===e.id?"R":"EC"==t.type?"C":"I"),str:e.str,classID:e.id||null,instID:null,parentID:e.parentID||null,style:e.style||"",dictID:e.dictID,descr:e.descr}),"R"!=e.type&&"N"!=e.type||(t.descr=""),Ft.pruneProperties(t),t},keepCoreProps:function(t){return["str","style","type","dictID","descr","classID","instID","parentID"].reduce((function(e,n){return void 0!==t[n]&&(e[n]=t[n]),e}),{})},prepForCopy:function(t,e){var n=Ft.keepCoreProps(Ft.prepToEmit(t));return void 0!==n.instID&&(e&&(n.parentID=n.instID),n.instID=null),n},prepForPaste:function(t,e){var n=Ft.clone(t);return delete n.style,delete n.label,Object.assign(n,Ft.prepToReceiveForPaste(e),{instID:null})}},Rt=Ft,Nt=A({name:"Term",components:{"vsm-autocomplete":Pt},props:{index:{type:Number,required:!0},term:{type:Object,required:!0},hasInput:{type:Boolean,default:!1},vsmDictionary:{type:Object,required:!0},queryOptions:{type:[Object,Boolean],default:!1},autofocus:{type:Boolean,default:!1},placeholder:{type:[String,Boolean],default:!1},tabListenMode:{type:Number,default:3},maxStringLengths:{type:Object,required:!0},freshListDelay:{type:Number,default:0},hasItemLiteral:{type:Boolean,default:!0},customItem:{type:[Function,Boolean],default:!1},customItemLiteral:{type:[Function,Boolean],default:!1}},data:function(){return{hasFocus:!1,noFade:!1}},computed:{isEditType:function(){return this.term.type&&"E"==this.term.type[0]},showPlain:function(){return this.hasInput&&("EL"==this.term.type||"ER"==this.term.type)},showAutocomplete:function(){return this.hasInput&&!this.showPlain},finalQueryOptions:function(){return Rt.clone(Object.assign({},this.queryOptions,this.term.queryOptions))},finalPlaceholder:function(){return this.isEditType&&(this.term.placeholder||this.placeholder)||""},showPlainPlaceholder:function(){return this.showPlain&&this.finalPlaceholder&&!this.term.str}},watch:{showPlain:{immediate:!0,handler:function(t){t&&this.emitInput(this.term.str)}},term:{deep:!0,immediate:!0,handler:function(){var t=this;this.noFade=!0,setTimeout((function(){return t.noFade=!1}),2)}}},methods:{emit2:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];this.$emit.apply(this,[t,this.index].concat(n))},inputElement:function(){return this.$el.querySelector("input")},onKeyBksp_plain:function(t){var e=this.$refs.input_plain;!e.value||e.value.trim()||e.selectionStart||this.emitInput(e.value=""),e.value||(this.onKeyBksp(),t.preventDefault())},onKeyCtrlBksp:function(){if(this.term.str.trim()){var t=this.inputElement();t&&!t.selectionStart&&this.emitInput(t.value="")}else this.emit2("key-ctrl-bksp")},onKeyTab:function(t){this.tabHandler(t,"",1&this.tabListenMode)},onKeyShiftTab:function(t){this.tabHandler(t,"shift",2&this.tabListenMode)},tabHandler:function(t,e,n){n&&t.preventDefault(),this.emit2("key-tab",n?e:"ignore")},onKeyEsc:function(){this.emit2("key-esc")},onKeyBksp:function(){this.emit2("key-bksp")},onKeyCtrlEnter:function(){this.emit2("key-ctrl-enter")},onKeyAltUp:function(){this.emit2("key-alt-up")},onKeyAltDown:function(){this.emit2("key-alt-down")},onKeyCtrlDelete:function(){this.emit2("key-ctrl-delete")},onKeyShiftEnter:function(){this.emit2("key-shift-enter")},onMouseleave:function(){this.emit2("mouseleave")},onMouseenter:function(){this.emit2("mouseenter")},emitInput:function(t){this.emit2("input",t)},onInput:function(t){this.emitInput(t)},onFocus:function(){this.hasFocus=!0,this.emit2("focus")},onBlur:function(){this.hasFocus=!1,this.emit2("blur")},onListOpen:function(){this.emit2("list-open")},onItemSelect:function(t){this.emit2("item-select",t)},onItemLiteralSelect:function(){this.emit2("item-literal-select")},onKeyEnter_plain:function(){this.emit2("plain-enter")},onMousedown_div:function(){(this.showPlain||this.showAutocomplete)&&this.inputElement().focus()},onMousedown:function(t){this.emit2("mousedown",t)},onCtrlShiftMousedown:function(t){this.emit2("ctrl-shift-mousedown",t)},onCtrlMousedown:function(){this.emit2("ctrl-mousedown")},onAltMousedown:function(){this.emit2("alt-mousedown")},onClick:function(){this.emit2("click")},onClick_div:function(){this.sendToAC("click")},onDblclick:function(){var t=this.$refs.input_plain;t&&(t.selectionStart=t.selectionEnd=this.term.str.length),this.sendToAC("dblclick"),this.emit2("dblclick")},sendToAC:function(t){var e=this.$refs.vsmac;e&&(e=this.inputElement()),e&&e.dispatchEvent(new MouseEvent(t,{bubbles:!1}))}}},st,[],!1,null,"179b8284",null);Nt.options.__file="src/subcomponents/Term.vue";var zt=Nt.exports,Bt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"popup",style:{top:t.px(t.term.y+t.term.height),left:t.px(t.term.x)},on:{mouseenter:t.onMouseenter,mouseleave:t.onMouseleave}},[n("div",{staticClass:"hover-extend ext1",style:{top:t.px(-t.term.height),left:t.px(-t.termMargin.left),width:t.px(t.termMargin.left),height:t.px(t.term.height)}}),t._v(" "),n("div",{staticClass:"hover-extend ext2",style:{top:t.px(-t.term.height),left:t.px(t.term.width),width:t.px(t.termMargin.right),height:t.px(t.term.height)}}),t._v(" "),n("div",{staticClass:"hover-extend ext3"}),t._v(" "),n("div",{staticClass:"arrow"}),t._v(" "),n("div",{class:["arrow-inner",{"no-info-panel":!t.hasInfo}]}),t._v(" "),n("div",{staticClass:"content"},[t.hasInfo?n("div",{staticClass:"info"},[t.isTypeRIC?n("div",{staticClass:"info-term"},[n("div",{staticClass:"str",domProps:{innerHTML:t._s(t.strs.str)}}),t._v(" "),n("div",{staticClass:"descr",domProps:{innerHTML:t._s(t.strs.descr)}}),t._v(" "),n("div",{staticClass:"grey dict",domProps:{innerHTML:t._s(t.strs.dict)}}),t._v(" "),n("div",{staticClass:"grey ids comma-sep"},[t.isTypeRIC?n("span",{staticClass:"class-id",domProps:{innerHTML:t._s(t.strs.classID)}}):t._e(),"R"==t.term.type?n("span",{staticClass:"parent-id",domProps:{innerHTML:t._s(t.strs.parentID)}}):t._e(),t.isTypeRI?n("span",{staticClass:"inst-id",domProps:{innerHTML:t._s(t.strs.instID)}}):t._e()])]):t._e(),t._v(" "),t.strs.infoExtra1?n("div",{staticClass:"grey info-extra1",domProps:{innerHTML:t._s(t.strs.infoExtra1)}}):t._e(),t._v(" "),t.hasSettings?n("div",{staticClass:"info-settings"},[t.strs.queryFilter.length?n("div",{staticClass:"query-filter list"},t._l(t.strs.queryFilter,(function(e){return n("div",{key:e,domProps:{innerHTML:t._s(e)}})})),0):t._e(),t._v(" "),t.strs.querySort.length?n("div",{staticClass:"query-sort list"},t._l(t.strs.querySort,(function(e){return n("div",{key:e,domProps:{innerHTML:t._s(e)}})})),0):t._e(),t._v(" "),t.strs.queryFixedTerms.length?n("div",{staticClass:"query-fixedterms list"},t._l(t.strs.queryFixedTerms,(function(e){return n("div",{key:e,domProps:{innerHTML:t._s(e)}})})),0):t._e(),t._v(" "),t.strs.queryZ?n("div",{staticClass:"query-z",domProps:{innerHTML:t._s(t.strs.queryZ)}}):t._e(),t._v(" "),t.strs.placeholder?n("div",{staticClass:"placeholder",domProps:{innerHTML:t._s(t.strs.placeholder)}}):t._e(),t._v(" "),t.hasWidths?n("div",{staticClass:"widths comma-sep"},[t.strs.minWidth?n("span",{staticClass:"min-width",domProps:{innerHTML:t._s(t.strs.minWidth)}}):t._e(),t._v(" "),t.strs.maxWidth?n("span",{staticClass:"max-width",domProps:{innerHTML:t._s(t.strs.maxWidth)}}):t._e(),t._v(" "),t.strs.editWidth?n("span",{staticClass:"edit-width",domProps:{innerHTML:t._s(t.strs.editWidth)}}):t._e(),t._v(" "),t.strs.widthScale?n("span",{staticClass:"width-scale",domProps:{innerHTML:t._s(t.strs.widthScale)}}):t._e()]):t._e()]):t._e(),t._v(" "),t.strs.infoExtra2?n("div",{staticClass:"grey info-extra2",domProps:{innerHTML:t._s(t.strs.infoExtra2)}}):t._e()]):t._e(),t._v(" "),n("div",{staticClass:"menu"},[t.strs.menuExtra1?n("div",{staticClass:"menu-block"},[n("div",{staticClass:"menu-extra1",domProps:{innerHTML:t._s(t.strs.menuExtra1)}})]):t._e(),t._v(" "),n("div",{staticClass:"menu-block"},[t.isTermEditable?t._e():n("div",{staticClass:"item edit",on:{click:t.onMenuEdit}},[t._v("Edit"),n("span",{staticClass:"hotkey"},[t._v("Doubleclick")])]),t._v(" "),t.isTermEditable&&t.term.backup?n("div",{staticClass:"item undo-edit",on:{click:t.onMenuUndoEdit}},[t._v("Undo edit"),n("span",{staticClass:"hotkey"},[t._v("Esc")])]):t._e(),t._v(" "),t.isTermEditable?t._e():n("div",{class:["item","copy",{inactive:!t.isCopyActive}],on:{click:t.onMenuCopy}},[t._v("Copy")]),t._v(" "),t.isTermEditable?t._e():n("div",{class:["item","copy-ref",{inactive:!t.isCopyRefActive}],on:{click:t.onMenuCopyRef}},[t._v("Copy reference")]),t._v(" "),t.isTermEditable?n("div",{class:["item","paste",{inactive:!t.isPasteActive}],on:{click:t.onMenuPaste}},[t._v("Paste")]):t._e()]),t._v(" "),n("div",{staticClass:"menu-block"},[n("div",{staticClass:"item types"},[t._v("\n Type:\n "),n("span",{class:["type","ref",{selected:t.isTypeLike("R")}],attrs:{title:"Referring instance"},on:{click:function(){return t.onMenuSetType("R")}}},[t._v("Ref.")]),n("span",{class:["type","inst",{selected:t.isTypeLike("I"),inactive:!t.canBecomeTypeIorC}],attrs:{title:"Instance"},on:{click:function(){return t.onMenuSetType("I")}}},[t._v("Inst.")]),n("span",{class:["type","class",{selected:t.isTypeLike("C"),inactive:!t.canBecomeTypeIorC}],on:{click:function(){return t.onMenuSetType("C")}}},[t._v("Class")]),n("span",{class:["type","lit",{selected:t.isTypeLike("L")}],attrs:{title:"Literal data"},on:{click:function(){return t.onMenuSetType("L")}}},[t._v("Lit.")]),t._v(" "),n("span",{staticClass:"hotkey"},[t._v("Ctrl+click")])]),t._v(" "),t.isTermEditable&&"EI"!=t.term.type?n("div",{staticClass:"item reset",on:{click:function(){return t.onMenuSetType("I")}}},[t._v("\n Reset type\n "),t.term.isEndTerm?n("span",{staticClass:"hotkey"},[t._v("Ctrl+Del")]):t._e()]):t._e(),t._v(" "),t.term.isEndTerm?t._e():n("div",{staticClass:"item focal",on:{click:t.onMenuFocal}},[t._v("\n "+t._s(t.term.isFocal?"Unset as":"Make")+" focal\n "),n("span",{staticClass:"hotkey"},[t._v("Alt+click")])])]),t._v(" "),n("div",{staticClass:"menu-block"},[n("div",{staticClass:"item insert",on:{click:t.onMenuInsert}},[t._v("\n Insert term\n "),t.term.isEndTerm?n("help"):t._e()],1),t._v(" "),t.term.isEndTerm?t._e():n("div",{staticClass:"item remove",on:{click:t.onMenuRemove}},[t._v("\n Remove\n "),n("help")],1)]),t._v(" "),t.strs.menuExtra2?n("div",{staticClass:"menu-block"},[n("div",{staticClass:"menu-extra2",domProps:{innerHTML:t._s(t.strs.menuExtra2)}})]):t._e()])])])};Bt._withStripped=!0;var Ut=function(){var t=this.$createElement;return(this._self._c||t)("span",{staticClass:"hotkey help",attrs:{title:"--Terms--\nDoubleclick: show popup for empty Term, or edit normal Term\nMousehover: show popup for normal Term\nMousedrag: move normal Term\nCtrl+Shift+Mousedrag: move empty Term\nAlt+Up/Down: move empty Term\nCtrl+Del: remove empty Term, or reset empty end-Term\nCtrl+Bksp: remove Term to the left\nCtrl+Enter: insert empty Term to the right\nAlt+Click: assign Term as sentence head\n--Connectors--\nAdd trident: click above 3 Terms and above any other connector,\n to assign subject, relation, object.\nAdd bident: click twice above a Term to omit subject or relation,\n or Esc (or click outside vsm-box) to omit object.\nAdd list: Shift+click for relation, then click for elements, then Esc.\nAdd coreference: Ctrl+click for child, then click for parent.\nRemove connector: hover it and click the X.\n['vsm-box': developed by stcruy]"},on:{click:function(t){return t.stopPropagation(),t}}},[this._v("\n Help (hover me)\n ")])};Ut._withStripped=!0;var qt=A({},Ut,[],!1,null,null,null);qt.options.__file="src/subcomponents/Help.vue";var Wt=qt.exports;function Vt(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function Xt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),i.forEach((function(e){Zt(t,e,n[e])}))}return t}function Zt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Yt=0,Jt={name:"ThePopup",components:{help:Wt},props:{index:{type:Number,required:!0},term:{type:Object,required:!0},vsmDictionary:{type:Object,default:function(){return{}}},sizes:{type:Object,default:function(){return{}}},allowClassNull:{type:Boolean,default:!0},termMargin:{type:Object,default:function(){return{left:0,right:0}}},customPopup:{type:[Function,Boolean],default:!1},termCopy:{type:[Function,Boolean],default:!1},termPaste:{type:[Function,Boolean],default:!1}},data:function(){return{descr:"",dictID:"",filterIDs:[],sortIDs:[],idts:[],zFilter:!0,contentKey:0,zObj:{},dictInfos:{}}},computed:{isTypeRIC:function(){return["R","I","C"].includes(this.term.type)},isTypeRI:function(){return["R","I"].includes(this.term.type)},hasSettings:function(){var t=this.strs;return t.queryFilter.length||t.querySort.length||t.queryFixedTerms.length||t.queryZ||t.placeholder||this.hasWidths},hasInfo:function(){return this.isTypeRIC||this.hasSettings},hasWidths:function(){return this.strs.minWidth||this.strs.maxWidth||this.strs.editWidth||!!(this.sizes.widthScale-1)},strs:function(){return this.calcStrs()},isTermEditable:function(){return"E"==this.term.type[0]},isCopyActive:function(){return this.termCopy&&!this.isTermEditable},isCopyRefActive:function(){return this.isCopyActive&&this.isTypeRI&&this.term.instID},isPasteActive:function(){return this.termPaste&&this.isTermEditable},canBecomeTypeIorC:function(){return this.isTermEditable||this.allowClassNull||this.term.classID}},watch:{term:{immediate:!0,handler:function(){this.initForNewTerm()}}},methods:{initForNewTerm:function(){var t=null===this.term.classID?"-":"";this.descr=this.term.descr||t,this.dictID=this.term.dictID||t;var e=this.term.queryOptions||{};this.filterIDs=(e.filter||{}).dictID||[],this.sortIDs=(e.sort||{}).dictID||[],this.idts=e.idts||[],this.zFilter=e.z||!0,this.contentKey=Yt++,this.zObj={},this.dictInfos={},this.loadNewData()},loadNewData:function(){this.isTypeRIC&&this.term.classID&&(!this.dictID||!this.descr||this.customPopup&&0!=this.zFilter.length)?this.loadTermData():this.loadDictInfos(),this.loadFixedTermData()},loadTermData:function(){var t=this,e=this.contentKey;this.vsmDictionary.getEntries({filter:Xt({id:[this.term.classID]},this.dictID&&{dictID:[this.dictID]}),z:this.customPopup?this.zFilter:[]},(function(n,i){if(e==t.contentKey){if(!n&&i.items.length){var r=i.items[0];t.dictID=r.dictID||t.dictID||"",t.descr=r.descr||t.descr||"",(r.terms||[]).forEach((function(e){t.term.str==e.str&&e.descr&&(t.descr=e.descr)})),t.zObj=r.z||{}}t.dictID=t.dictID||"-",t.descr=t.descr||"-",t.loadDictInfos()}}))},loadFixedTermData:function(){var t=this;if(this.idts.length){var e=this.contentKey;this.vsmDictionary.getEntries({filter:{id:this.idts.map((function(t){return t.id})),z:[]}},(function(n,i){e!=t.contentKey||n||(t.idts=t.idts.map((function(t){return t=Object.assign({},t),i.items.forEach((function(e){if(t.id==e.id){var n=e.terms.find((function(e){return t.str==e.str}))||e.terms[0];t.str=n.str||"",t.style=n.style}})),t})))}))}},loadDictInfos:function(){var t=this,e=Vt(new Set((this.dictID&&"-"!=this.dictID?[this.dictID]:[]).concat(this.filterIDs).concat(this.sortIDs)));if(e.length){var n=this.contentKey;this.vsmDictionary.getDictInfos({filter:{id:e}},(function(e,i){n!=t.contentKey||e||i.items.forEach((function(e){return t.$set(t.dictInfos,e.id,e)}))}))}},calcStrs:function(){var t=this,e=this.term,n=function(t){return void 0===t?"":""+t},i="R"!=e.type||e.parentID&&e.classID?1:null,r={str:mt()(e.str||"",e.style),descr:this.descr,dict:this.dictString(this.dictID),classID:this.idCalc(i&&e.classID),instID:this.idCalc(e.instID),parentID:this.idCalc(i&&e.parentID),queryFilter:this.filterIDs.map((function(e){return t.dictString(e)})),querySort:this.sortIDs.map((function(e){return t.dictString(e)})),queryFixedTerms:this.idts.map((function(e){return t.idtsString(e)})),queryZ:this.zString(),placeholder:e.placeholder||"",minWidth:n(e.minWidth),maxWidth:n(e.maxWidth),editWidth:n(e.editWidth),widthScale:1==this.sizes.widthScale?"":n(~~(100*this.sizes.widthScale+.5)/100),infoExtra1:"",infoExtra2:"",menuExtra1:"",menuExtra2:""};return this.customPopup&&(r=this.customPopup({strs:r,term:e,type:e.type,dictInfo:this.dictInfos[this.dictID]||{},z:this.zObj,vsmDictionary:this.vsmDictionary,sizes:this.sizes})),Object.keys(r).forEach((function(t){return r[t]=Array.isArray(r[t])?r[t].map((function(t){return $t(t)})):$t(r[t])})),r},idCalc:function(t){var e=void 0===t?"":this.uriTail(t)||"&hellip;";return/^https?:\/\/./.test(t)&&(e='<a href="'.concat(t,'" target="_blank">').concat(e,"</a>")),e},uriTail:function(t){return(t||"").replace(/^.*\/([^/]*)$/,"$1")},dictString:function(t){if("-"==t||!t)return t;var e=this.dictInfos[t]||{id:t};return[e.name?e.name:0,e.abbrev?"("+e.abbrev+")":"["+this.uriTail(e.id)+"]"].filter((function(t){return t})).join(" ")},idtsString:function(t){return(t.str?mt()(t.str,t.style)+" ":"")+"["+this.uriTail(t.id)+"]"},zString:function(){return!0===this.zFilter?"":this.zFilter.length?this.zFilter.join(", "):"(none)"},px:function(t){return t+"px"},onMouseenter:function(){this.$emit("mouseenter")},onMouseleave:function(){this.$emit("mouseleave")},emit2:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];this.$emit.apply(this,[t,this.index].concat(n))},onMenuEdit:function(){this.emit2("edit")},onMenuUndoEdit:function(){this.emit2("undo-edit")},onMenuCopy:function(){this.isCopyActive&&this.emit2("copy")},onMenuCopyRef:function(){this.isCopyRefActive&&this.emit2("copy-ref")},onMenuPaste:function(){this.isPasteActive&&this.emit2("paste")},isTypeLike:function(t){return[t,"E"+t].includes(this.term.type)},onMenuSetType:function(t){var e=(this.isTermEditable?"E":"")+t;e==this.term.type||!this.canBecomeTypeIorC&&["I","C"].includes(e)||this.emit2("set-type",e)},onMenuFocal:function(){this.emit2("toggle-focal")},onMenuInsert:function(){this.emit2("insert")},onMenuRemove:function(){this.emit2("remove")}}},Gt=(n(34),A(Jt,Bt,[],!1,null,"a3f7a6e6",null));Gt.options.__file="src/subcomponents/ThePopup.vue";var Qt=Gt.exports,te={name:"TheTerms",components:{term:zt,"the-popup":Qt},props:{vsmDictionary:{type:Object,required:!0},queryOptions:{type:[Object,Boolean],default:!1},autofocus:{type:Boolean,default:!1},placeholder:{type:[String,Boolean],default:!1},cycleOnTab:{type:Boolean,default:!1},maxStringLengths:{type:Object,required:!0},freshListDelay:{type:Number,default:0},advancedSearch:{type:[Function,Boolean],default:!1},allowClassNull:{type:Boolean,default:!0},origTerms:{type:Array,required:!0},sizes:{type:Object,required:!0},customItem:{type:[Function,Boolean],default:!1},customItemLiteral:{type:[Function,Boolean],default:!1},customTerm:{type:[Function,Boolean],default:!1},customPopup:{type:[Function,Boolean],default:!1},termCopy:{type:[Function,Boolean],default:!1},termPaste:{type:[Function,Boolean],default:!1}},data:function(){return{terms:[],padTop:0,padRight:0,padBottom:0,padLeft:0,bkgrColor:"",termPadBordLR:0,termMarginHor:0,termHeight:0,inputIndex:0,popupLoc:-1,width:0,hasEndTermFocus:!1,endSpaceX:0,dragIndex:-1,enablePopup:!0,timerPopupHide:0,timerPopupShow:0,popupEscListener:!1,mayNarrow:!1}},computed:{height:function(){return this.termHeight+this.padTop+this.padBottom},inputTabListenMode:function(){if(this.cycleOnTab)return 3;for(var t=0,e=[];t<this.terms.length;t++)Rt.isEditable(this.terms[t])&&e.push(t);return(this.inputIndex==e[e.length-1]?0:1)+(this.inputIndex==e[0]?0:2)},customItemLiteral2:function(){var t=this,e=function(e){return e.strs.strTitle=t.advancedSearch?"Advanced search":"Create new concept",t.customItemLiteral?e.strs=t.customItemLiteral(e):e.strs.str=(t.advancedSearch?"Search":"Create")+" '".concat(e.strs.str,"'"),e.strs};return this.advancedSearch?function(t){return t.strs=e(t),t.strs.str+='<span class="hotkey">Shift+Enter</span>',t.strs}:e},popupTermMargin:function(){var t=this.popupLoc;return t<0?{}:{left:t?this.termMarginHor:this.padLeft,right:t<this.terms.length-1?this.termMarginHor:this.padRight}}},watch:{origTerms:function(){this.initForNewTerms()},sizes:function(){this.measureSizes(),this.setTermCoordinates(),this.emitValue("change")},customTerm:function(){this.setTermCoordinates(),this.emitValue("change")},hasEndTermFocus:function(t){t&&this.setTermCoordinates(this.terms.length-1)}},mounted:function(){this.measureSizes(),this.initForNewTerms()},methods:{getRuler:function(){return this.$refs.ruler},measureSizes:function(){var t=getComputedStyle(this.$el),e=function(t){return+t.replace(/px$/,"")},n=function(n){return e(t["padding-"+n])};this.padTop=n("top"),this.padRight=n("right"),this.padBottom=n("bottom"),this.padLeft=n("left"),this.bkgrColor=t["background-color"];var i=this.getRuler();t=getComputedStyle(i),n=function(n){return e(t["padding-"+n])+e(t["border-"+n+"-width"])},this.termPadBordLR=n("left")+n("right"),n=function(n){return e(t["margin-"+n])},this.termMarginHor=n("left")+n("right"),i.innerHTML="W",this.termHeight=i.offsetHeight,this.sizes.widthScale=this.sizes.widthScale||e(t["font-size"])/11||1},termWidth:function(t,e,n){var i=this,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=function(t){return Math.ceil(t*i.sizes.widthScale)+i.termPadBordLR},s=this.$refs.ruler;s.innerHTML=t,s.style=r?"width:".concat(o(r),"px;"):(e?"min-width:".concat(o(e),"px;"):"")+(n?"max-width:".concat(o(n),"px;"):"");var a=Math.ceil(s.getBoundingClientRect().width);return s.style="",a},initForNewTerms:function(){this.dragIndex>=0&&window.dispatchEvent(new MouseEvent("mouseup")),this.tempDisablePopup();var t=this.origTerms.map((function(t){return Rt.prepToReceive(t)}));t.push(Rt.newEndTerm());for(var e=0;e<t.length;e++)if(Rt.isEditable(t[e])){this.inputIndex=e;break}this.setTermCoordinates(0,t),this.terms=t,this.emitValue("change-init")},setTermCoordinates:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0;e=e||this.terms;for(var n,i,r=(t=0)-1,o=t?e[r].x+e[r].width+this.termMarginHor:this.padLeft;n=e[++r];){if(n.str=n.str||"",n.isEndTerm){this.endSpaceX=r?o-this.termMarginHor:0,i=Math.ceil(this.sizes.widthScale*(this.hasEndTermFocus?this.sizes.minEndTermWideWidth:this.sizes.minEndTermWidth));var s=Math.max(this.sizes.minWidth,this.mayNarrow?0:this.width)-o-i-this.termPadBordLR-this.padRight;this.mayNarrow=!1,n.width=i+Math.max(0,s)+this.termPadBordLR}else{i=Rt.isEditable(n)&&(n.editWidth||this.sizes.defaultEditWidth);var a=void 0===n.maxWidth?this.sizes.defaultMaxWidth:n.maxWidth;n.label=this.termLabel(n,r),n.width=this.termWidth(n.label,n.minWidth,a,i)}n.height=this.termHeight,n.x=o,n.y=this.padTop,o+=n.width+this.termMarginHor}(o=o-this.termMarginHor+this.padRight)!=this.width&&this.$emit("width",this.width=o)},termLabel:function(t,e){var n={str:mt()(t.str,t.style)};return this.customTerm&&!Rt.isEditable(t)&&(n=this.customTerm({strs:n,index:e,type:t.type,term:Rt.prepToEmit(t),vsmDictionary:this.vsmDictionary})),$t(n.str)},onFocus:function(t){this.hasEndTermFocus=t==this.terms.length-1},onBlur:function(t){t==this.terms.length-1&&(this.hasEndTermFocus=!1)},onInput:function(t,e){this.hidePopup();var n=this.terms[t];n.str=e,n.label=$t(e)},onKeyTab:function(t,e){if("ignore"==e)return this.hidePopup();this.moveInputToNextEditTerm(t,e?-1:1)},moveInputToNextEditTerm:function(t,e){this.moveInputTo(this.getNextEditTermIndex(t,e))},getNextEditTermIndex:function(t,e){for(var n=this.terms.length,i=t;;)if((i=(i+e+n)%n)==t||Rt.isEditable(this.terms[i]))return i},onMousedown_div:function(t){var e=this.$el.getBoundingClientRect(),n=t.clientX-e.left;this.endSpaceX<=n?this.moveInputTo(this.terms.length-1):this.focusInput()},onMousedown:function(t,e){this.hidePopup(),Rt.isEditable(this.terms[t])?this.moveInputTo(t):this.initDrag(t,e)},moveInputTo:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.hidePopup(),Rt.isEditable(this.terms[t])&&(this.inputIndex=t),this.focusInput(e)},focusInput:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.hidePopup(),this.$nextTick((function(){var n=t.inputElement();n.focus(),e&&(n.selectionStart=n.selectionEnd=n.value.length)}))},inputElement:function(){return this.$el.querySelector(".input")},moveInputToEndTerm:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.moveInputTo(this.terms.length-1,t)},onCtrlMousedown:function(t){var e=this.terms[t];Rt.cycleType(e,this.allowClassNull,this),this.moveInputTo(t,!0),e.isEndTerm||this.emitValue()},onAltMousedown:function(t){var e=this,n=this.terms[t];n.isEndTerm||(Rt.makeFocal(n,!n.isFocal,this),n.isFocal&&this.terms.forEach((function(t){return t==n||Rt.makeFocal(t,!1,e)}))),this.moveInputTo(t,!0),n.isEndTerm||this.emitValue()},emitValue:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"change";this.$emit(t,this.terms.slice(0,-1).map(Rt.prepToEmit))},onDblclick:function(t){Rt.isEditable(this.terms[t])?this.showPopup(t):(this.makeTermEditable(t),this.moveInputTo(t),this.setTermCoordinates(t),this.emitValue())},makeTermEditable:function(t){this.$set(this.terms,t,Rt.createEditTerm(this.terms[t]))},onKeyEsc:function(t){this.hidePopup();var e=this.terms[t];Rt.isEditable(e)&&e.backup&&this.replaceTerm(t,Rt.createRestoredTerm(e))},onKeyBksp:function(t){if(this.hidePopup(),t){this.hasEndTermFocus=!1,t=--this.inputIndex;var e=!Rt.isEditable(this.terms[t]);e&&this.makeTermEditable(t),this.focusInput(!0),this.setTermCoordinates(t),e&&this.emitValue()}},onKeyCtrlDelete:function(t){this.hidePopup();var e=this.terms[t];if(e.isEndTerm)return e.str=e.label="",Rt.setType(e,"EI",this),this.mayNarrow=!0,this.setTermCoordinates(t),this.focusInput();var n=Rt.isEditable(this.terms[t+1])?t:t&&Rt.isEditable(this.terms[t-1])?t-1:this.getNextEditTermIndex(t,1)-1;this.deleteTerm(t),this.moveInputTo(n,!0),this.setTermCoordinates(t),this.emitValue()},onKeyCtrlBksp:function(t){t?this.onKeyCtrlDelete(t-1):1==this.terms.length&&this.onKeyCtrlDelete(0)},deleteTerm:function(t){t==this.inputIndex&&this.inputElement().blur(),this.terms.splice(t,1)},onKeyCtrlEnter:function(t){this.insertEmptyTerm(t)},insertEmptyTerm:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=this.terms[t],i=Rt.newEditTerm(n.isEndTerm&&e);e?Rt.unsetAsEndTerm(n,this):this.hasEndTermFocus=!1,this.terms.splice(t+e,0,i),this.moveInputTo(t+e),this.setTermCoordinates(t),this.emitValue()},onKeyAltUp:function(t){this.moveEditTerm(t,t-1)},onKeyAltDown:function(t){this.moveEditTerm(t,t+1)},moveEditTerm:function(t,e){this.hidePopup();var n=this.terms.length;t==n-1||n<3||(e<0?e=n-2:e>n-2&&(e=0),this.moveTerm(t,e,!0))},moveTerm:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=this.terms.slice(0,t).concat(this.terms.slice(t+1));i.splice(e,0,this.terms[t]),n&&(this.inputIndex=e,this.focusInput()),this.setTermCoordinates(Math.min(t,e),i),this.terms=i,this.emitValue()},onPlainEnter:function(t){this.hidePopup(),this.fillInTerm(t,Rt.createRorLTerm(this.terms[t]))},onItemLiteralSelect:function(t){this.hidePopup(),this.advancedSearch?this.launchAdvancedSearch(t):this.allowClassNull&&this.insertFromMatch(t,{str:this.terms[t].str,id:null})},onKeyShiftEnter:function(t){this.hidePopup(),this.advancedSearch&&this.launchAdvancedSearch(t)},launchAdvancedSearch:function(t){var e=this,n=this.terms[t],i=Rt.clone(n.queryOptions||{});delete i.sort,this.$nextTick((function(){return e.advancedSearch({str:n.str,termType:n.type.replace("E",""),vsmDictionary:e.vsmDictionary,queryOptions:i,allowClassNull:e.allowClassNull},(function(n){return e.insertFromMatch(t,n)}))}))},insertFromMatch:function(t,e){e&&this.fillInTerm(t,Rt.createTermFromMatch(this.terms[t],e))},fillInTerm:function(t,e){e&&e.str&&(null!==e.classID||this.allowClassNull||"R"==e.type)&&(e.isEndTerm&&(Rt.unsetAsEndTerm(e,this),this.terms.push(Rt.newEndTerm())),this.replaceTerm(t,e))},replaceTerm:function(t,e){this.moveInputToNextEditTerm(t,1),this.$set(this.terms,t,e),this.setTermCoordinates(t),this.emitValue(),this.tempDisablePopup()},onCtrlShiftMousedown:function(t,e){this.hidePopup(),this.initDrag(t,e)},initDrag:function(t,e){var n=this,i=this.$el.getBoundingClientRect();i={x:~~i.left,y:~~i.top};var r=function(e){var r=n.terms[t];return{x:e.clientX-i.x-r.x,y:e.clientY-i.y-r.y}},o=r(e),s=Math.pow(this.sizes.termDragThreshold,2),a=function(t){t("mousemove",u),t("mouseup",d),t("blur",h)},l=document.body.style.cursor,c=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];document.body.style.cursor=t?"grabbing":l},u=function(e){var i=n.terms[t],a=r(e);if(n.dragIndex<0){if(i.isEndTerm)return;var l=a.x-o.x,u=a.y-o.y;if(l*l+u*u<s)return;n.dragIndex=t,n.$set(i,"drag",{x:i.x,y:i.y}),n.inputElement().blur(),c(),n.$emit("drag-start")}i.drag.x=Math.min(Math.max(n.padLeft-i.width,i.x+a.x-o.x),n.endSpaceX),i.drag.y=Math.min(Math.max(i.y-i.height,i.y+a.y-o.y),i.y+i.height);for(var d=0;d<n.terms.length-1;d++){var h=n.terms[d];if(a.x+i.x<=h.x+h.width/2)break}if(d>t&&d--,t!=d){var p=t,f=n.terms[n.inputIndex].key;n.moveTerm(p,d),n.dragIndex=t=d,n.inputIndex=n.terms.findIndex((function(t){return t.key==f}))}},d=function(t){u(t),h()},h=function(){a(window.removeEventListener),n.dragIndex>=0&&(n.dragIndex=-1,n.$delete(n.terms[t],"drag"),c(!1),n.tempDisablePopup(),n.$emit("drag-stop"))};a(window.addEventListener)},clearPopupTimers:function(){clearTimeout(this.timerPopupHide),clearTimeout(this.timerPopupShow)},showPopup:function(t){this.clearPopupTimers(),this.popupLoc=t,this.addPopupEscListener(t)},hidePopup:function(){this.clearPopupTimers(),this.showPopup(-1),this.removePopupEscListener()},showPopupDelayed:function(t){var e=this;this.clearPopupTimers(),(!Rt.isEditable(this.terms[t])||this.popupLoc>=0)&&this.dragIndex<0&&this.enablePopup&&(this.timerPopupShow=setTimeout((function(){return e.showPopup(t)}),this.popupLoc<0?this.sizes.delayPopupShow:this.sizes.delayPopupSwitch),this.addPopupEscListener(t))},hidePopupDelayed:function(){var t=this;this.clearPopupTimers(),this.timerPopupHide=setTimeout((function(){return t.hidePopup()}),this.sizes.delayPopupHide)},tempDisablePopup:function(){var t=this;this.hidePopup(),this.enablePopup=!1,setTimeout((function(){return t.enablePopup=!0}),200)},addPopupEscListener:function(t){var e=this;t>=0&&!this.popupEscListener&&(this.popupEscListener=function(t){"Escape"==t.key&&e.hidePopup()},window.addEventListener("keydown",this.popupEscListener))},removePopupEscListener:function(){this.popupEscListener&&(window.removeEventListener("keydown",this.popupEscListener),this.popupEscListener=!1)},onMouseenter_popup:function(){clearTimeout(this.timerPopupHide)},onMouseenter:function(t){this.showPopupDelayed(t)},onMouseleave:function(){this.hidePopupDelayed()},onClick:function(t){this.showPopupDelayed(t)},onListOpen:function(t){this.hidePopup()},onInsertBefore:function(t){this.hidePopup(),this.insertEmptyTerm(t,0)},onSetType:function(t,e){this.hidePopup();var n=this.terms[t];Rt.setType(n,e,this),Rt.isEditable(n)&&this.moveInputTo(t),n.isEndTerm||this.emitValue()},onCopy:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.hidePopup(),this.$nextTick((function(){return e.termCopy(Rt.prepForCopy(e.terms[t],n))}))},onCopyRef:function(t){this.onCopy(t,!0)},onPaste:function(t){var e=this;this.hidePopup(),this.$nextTick((function(){return e.fillInTerm(t,Rt.prepForPaste(e.terms[t],e.termPaste()))}))}}},ee=(n(36),A(te,ot,[],!1,null,"4c9a1fe8",null));ee.options.__file="src/subcomponents/TheTerms.vue";var ne=ee.exports,ie=function(t){return JSON.parse(JSON.stringify(t))},re={minWidth:200,minEndTermWidth:40,minEndTermWideWidth:100,defaultEditWidth:80,defaultMaxWidth:200,widthScale:!1,termDragThreshold:3,delayPopupShow:650,delayPopupSwitch:300,delayPopupHide:200,theConnsMarginBottom:2,theConnsSpaceBelow:3,theConnsMinLevels:3,theConnsLevelHeight:19,theConnsResortDelay:300,connLineWidth:1,connBackDepth:6,connFootDepth:17,connBackColor:"#7a7a7a",connLegColor:"#7a7a7a",connFootColor:"#b6b6b6",connFootIndent:1,connFootVisible:!0,connTridRelW:3.9,connTridRelH:6.9,connTridObjW:3.5,connTridObjH:4.72,connListBackSep:1.79,connListRelW:3.2,connListRelH:5.8,connRefDashes:"2 1",connRefParW:2.85,connRefParH:4.5,connStubBackColor:"#c3c3c3",connStubLegColor:"#c3c3c3",connStubFootColor:"#cbcbcb",connStubSubBackW:9,connStubObjBackW:10,connStubSubLegH:3.5,connStubRelLegH:4.5,connStubObjLegH:4.5,connStubSubFootW:2.7,connStubRelFootW:2.8,connStubObjFootW:2.8,connStubRelW:1.7,connStubRelH:3.55,connStubObjW:1.8,connStubObjH:3.7,connUCLegColor:"rgba(46,72,255,0.56)",connUCFootColor:"#e6e6e6",connUCLegShorter:4,connHLColor:"#e5e9fb",connHLColorLight:"#f0f4fb",connHLBackHeight:10,connHLLegOutdent:1,connHLBorderRadius:2.6,connRIW:11,connRIPadding:2.5,connRILineWidth:2,connRIFGColor:["#aabcce","#fff","#fff"],connRIBGColor:["transparent","#7491ab","#446d9c"]},oe={name:"VsmBox",components:{"the-conns":rt,"the-terms":ne},props:{vsmDictionary:{type:Object,default:function(){return{loadFixedTerms:function(t,e,n){return n(null)},getExtraDictInfos:function(){return[]},getDictInfos:function(t,e){return e(null,{items:[]})},getEntries:function(t,e){return e(null,{items:[]})},getMatchesForString:function(t,e,n){return n(null,{items:[]})}}}},queryOptions:{type:[Object,Boolean],default:!1},autofocus:{type:Boolean,default:!1},placeholder:{type:[String,Boolean],default:!1},cycleOnTab:{type:Boolean,default:!1},maxStringLengths:{type:Object,default:function(){return{str:50,strAndDescr:80}}},freshListDelay:{type:Number,default:250},advancedSearch:{type:[Function,Boolean],default:!1},allowClassNull:{type:Boolean,default:!0},initialValue:{type:[Object,Boolean],default:function(){return{terms:[],conns:[]}}},sizes:{type:Object,default:function(){return{}}},customTerm:{type:[Function,Boolean],default:!1},customPopup:{type:[Function,Boolean],default:!1},customItem:{type:[Function,Boolean],default:!1},customItemLiteral:{type:[Function,Boolean],default:!1},termCopy:{type:[Function,Boolean],default:!1},termPaste:{type:[Function,Boolean],default:!1}},data:function(){return{origTerms:[],origConns:[],latestTerms:[],termsChangeNr:1,width:0,isTheConnsEnabled:!0}},computed:{sizesFull:function(){return Object.assign({},re,this.sizes)}},watch:{initialValue:{immediate:!0,handler:function(t,e){if(t!=e){this.origConns=!1;var n=t.terms||[];n=this.mapFixedTerms(n,!0),this.preloadFixedTerms(n),this.preloadDictInfos(n),this.origTerms=n}}},vsmDictionary:function(t,e){t!=e&&(this.preloadFixedTerms(this.origTerms),this.preloadDictInfos(this.origTerms))}},created:function(){this.width=this.sizesFull.minWidth||re.minWidth},methods:{preloadFixedTerms:function(t){var e=this,n={};t.forEach((function(t){if(t.queryOptions){var e=JSON.stringify(t.queryOptions.z||!0);n[e]=(n[e]||[]).concat(t.queryOptions.idts||[])}})),Object.keys(n).forEach((function(t){e.vsmDictionary.loadFixedTerms(n[t],{z:JSON.parse(t)},(function(){}))}))},preloadDictInfos:function(t){if(this.vsmDictionary.cacheDI){var e=[];t.forEach((function(t){t.queryOptions&&void 0===t.str&&(e=e.concat((t.queryOptions.filter||{}).dictID||[]).concat((t.queryOptions.sort||{}).dictID||[]))})),this.vsmDictionary.getDictInfos({filter:{id:e}},(function(){}))}},onTermsWidth:function(t){this.width=t},onTermsChangeInit:function(t){this.latestTerms=t,this.origConns=this.initialValue.conns||[]},onConnsChangeInit:function(t){this.emitValue(t.conns,"change-init")},onTermsChange:function(t){this.latestTerms=t,this.termsChangeNr++},onConnsChange:function(t){t.termsChangeNr&&t.termsChangeNr!=this.termsChangeNr||this.emitValue(t.conns)},onClickAboveEndTerm:function(){this.$refs.theTerms.moveInputToEndTerm(!0)},onDragStart:function(){this.isTheConnsEnabled=!1},onDragStop:function(){this.isTheConnsEnabled=!0},emitValue:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"change",n=ie(this.latestTerms);n=this.mapFixedTerms(n),this.$emit(e,{terms:n,conns:t})},mapFixedTerms:function(t,e){var n=e?"fixedTerms":"idts",i=e?"idts":"fixedTerms";return t.map((function(t){return t.queryOptions&&t.queryOptions[n]&&((t=ie(t)).queryOptions[i]=t.queryOptions[n],delete t.queryOptions[n]),t}))}}},se=(n(38),A(oe,I,[],!1,null,"271a8614",null)); /**! * vsm-box * By Steven Vercruysse, https://orcid.org/0000-0002-3136-7353 */se.options.__file="src/VsmBox.vue";var ae=se.exports;i.a.use(E),i.a.customElement("vsm-box",ae)}]);