From 4c8b94aa88db705821e3bd41ff189d466e4bec8b Mon Sep 17 00:00:00 2001 From: Eduardo humberto Date: Mon, 4 Dec 2017 13:37:16 -0200 Subject: [PATCH] init vue structure and improve folder filter types --- .babelrc | 5 ++ .gitignore | 2 + package.json | 26 ++++++++ src/assets/web-components.js | 14 ++++ .../class-tainacan-checkbox.php | 0 .../class-tainacan-relationship.php | 24 ------- .../{ => date}/class-tainacan-date.php | 0 .../class-tainacan-field-type.php | 0 .../{ => numeric}/class-tainacan-numeric.php | 0 .../{ => radio}/class-tainacan-radio.php | 0 .../class-tainacan-relationship.php | 66 +++++++++++++++++++ .../class-tainacan-selectbox.php | 11 ++++ src/classes/field-types/text/Text.vue | 31 +++++++++ .../{ => text}/class-tainacan-text.php | 0 src/classes/field-types/textarea/Textarea.vue | 31 +++++++++ .../class-tainacan-textarea.php | 0 src/classes/tainacan-creator.php | 4 ++ src/js/main.js | 11 ++++ webpack.config.js | 64 ++++++++++++++++++ 19 files changed, 265 insertions(+), 24 deletions(-) create mode 100644 .babelrc create mode 100644 package.json create mode 100644 src/assets/web-components.js rename src/classes/field-types/{ => checkbox}/class-tainacan-checkbox.php (100%) delete mode 100644 src/classes/field-types/class-tainacan-relationship.php rename src/classes/field-types/{ => date}/class-tainacan-date.php (100%) rename src/classes/field-types/{ => field-type}/class-tainacan-field-type.php (100%) rename src/classes/field-types/{ => numeric}/class-tainacan-numeric.php (100%) rename src/classes/field-types/{ => radio}/class-tainacan-radio.php (100%) create mode 100644 src/classes/field-types/relationship/class-tainacan-relationship.php rename src/classes/field-types/{ => selectbox}/class-tainacan-selectbox.php (70%) create mode 100644 src/classes/field-types/text/Text.vue rename src/classes/field-types/{ => text}/class-tainacan-text.php (100%) create mode 100644 src/classes/field-types/textarea/Textarea.vue rename src/classes/field-types/{ => textarea}/class-tainacan-textarea.php (100%) create mode 100644 src/js/main.js create mode 100644 webpack.config.js diff --git a/.babelrc b/.babelrc new file mode 100644 index 000000000..b278904b6 --- /dev/null +++ b/.babelrc @@ -0,0 +1,5 @@ +{ + "presets": [ + ["es2015", { "modules": false }] + ] +} \ No newline at end of file diff --git a/.gitignore b/.gitignore index 995bc48be..83a226d23 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,5 @@ tests/bootstrap-config.php .settings vendor src/vendor +node_modules +npm-debug.log diff --git a/package.json b/package.json new file mode 100644 index 000000000..b03df3991 --- /dev/null +++ b/package.json @@ -0,0 +1,26 @@ +{ + "name": "tainacan", + "description": "Tainacan", + "author": "Eduardo ", + "private": true, + "scripts": { + "dev": "cross-env NODE_ENV=development webpack-dev-server --open --inline --hot", + "build": "cross-env NODE_ENV=production webpack --progress --hide-modules" + }, + "dependencies": { + "bootstrap": "^3.3.7", + "vue": "^2.0.1" + }, + "devDependencies": { + "babel-core": "^6.0.0", + "babel-loader": "^6.0.0", + "babel-preset-es2015": "^6.0.0", + "cross-env": "^3.0.0", + "css-loader": "^0.25.0", + "file-loader": "^0.9.0", + "vue-loader": "^9.7.0", + "vue-custom-element": "^1.0.13", + "webpack": "2.1.0-beta.25", + "webpack-dev-server": "2.1.0-beta.0" + } +} \ No newline at end of file diff --git a/src/assets/web-components.js b/src/assets/web-components.js new file mode 100644 index 000000000..215f57156 --- /dev/null +++ b/src/assets/web-components.js @@ -0,0 +1,14 @@ +!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,t,n){Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="./src/assets/",t(t.s=17)}([function(e,t,n){(function(e,r){function o(e,t){this._id=e,this._clearFn=t}var i=n(11).nextTick,a=Function.prototype.apply,s=Array.prototype.slice,c={},u=0;t.setTimeout=function(){return new o(a.call(setTimeout,window,arguments),clearTimeout)},t.setInterval=function(){return new o(a.call(setInterval,window,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(window,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},t.setImmediate="function"==typeof e?e:function(e){var n=u++,r=!(arguments.length<2)&&s.call(arguments,1);return c[n]=!0,i(function(){c[n]&&(r?e.apply(null,r):e.call(null),t.clearImmediate(n))}),n},t.clearImmediate="function"==typeof r?r:function(e){delete c[e]}}).call(t,n(0).setImmediate,n(0).clearImmediate)},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t=0&&m.splice(t,1)}function a(e){var t=document.createElement("style");return t.type="text/css",o(e,t),t}function s(e,t){var n,r,o;if(t.singleton){var s=h++;n=v||(v=a(t)),r=c.bind(null,n,s,!1),o=c.bind(null,n,s,!0)}else n=a(t),r=u.bind(null,n),o=function(){i(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}function c(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=y(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function u(e,t){var n=t.css,r=t.media,o=t.sourceMap;if(r&&e.setAttribute("media",r),o&&(n+="\n/*# sourceURL="+o.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var l={},f=function(e){var t;return function(){return"undefined"==typeof t&&(t=e.apply(this,arguments)),t}},d=f(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),p=f(function(){return document.head||document.getElementsByTagName("head")[0]}),v=null,h=0,m=[];e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");t=t||{},"undefined"==typeof t.singleton&&(t.singleton=d()),"undefined"==typeof t.insertAt&&(t.insertAt="bottom");var o=r(e);return n(o,t),function(e){for(var i=[],a=0;a1&&void 0!==arguments[1]?arguments[1]:{};if("undefined"!=typeof customElements){if(C){var l=function(e){function n(e){var r;i(this,n);var o=a(this,(n.__proto__||Object.getPrototypeOf(n)).call(this)),s=e?HTMLElement.call(e):o;return t.call(s),r=s,a(o,r)}return s(n,e),x(n,null,[{key:"observedAttributes",get:function(){return u.observedAttributes||[]}}]),n}(c);return l.prototype.connectedCallback=n,l.prototype.disconnectedCallback=r,l.prototype.attributeChangedCallback=o,customElements.define(e,l),l}var f=function(e){var n=e?HTMLElement.call(e):this;return t.call(n),n};return f.observedAttributes=u.observedAttributes||[],f.prototype=Object.create(HTMLElement.prototype,{constructor:{configurable:!0,writable:!0,value:f}}),f.prototype.connectedCallback=n,f.prototype.disconnectedCallback=r,f.prototype.attributeChangedCallback=o,customElements.define(e,f),f}}function l(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function f(e){var t=e,n=["true","false"].indexOf(e)>-1,r=parseFloat(t,10),o=!isNaN(r)&&isFinite(t);return n?t="true"===t:o&&(t=r),t}function d(e,t){if(e&&e.length)e.forEach(function(e){var n=k(e);t.camelCase.indexOf(n)===-1&&t.camelCase.push(n)});else if(e&&"object"===("undefined"==typeof e?"undefined":T(e)))for(var n in e){var r=k(n);t.camelCase.indexOf(r)===-1&&t.camelCase.push(r)}}function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={camelCase:[],hyphenate:[]};if(e.mixins&&e.mixins.forEach(function(e){d(e.props,t)}),e.extends&&e.extends.props){var n=e.extends.props;d(n,t)}return d(e.props,t),t.camelCase.forEach(function(e){t.hyphenate.push(O(e))}),t}function v(e,t){t.camelCase.forEach(function(n,r){Object.defineProperty(e,n,{get:function(){return this.__vue_custom_element__[n]},set:function(e){if("object"!==("undefined"==typeof e?"undefined":T(e))&&"function"!=typeof e||!this.__vue_custom_element__)this.setAttribute(t.hyphenate[r],f(e));else{var n=t.camelCase[r];this.__vue_custom_element__[n]=e}}})})}function h(e,t,n){var r=t.propsData||{};return n.hyphenate.forEach(function(t,o){var i=n.camelCase[o],a=e.attributes[t]||e[i];"object"!==("undefined"==typeof a?"undefined":T(a))||a instanceof Attr?a instanceof Attr&&a.value&&(r[i]=f(a.value)):r[i]=a}),r}function m(e){var t={};return l(e.attributes).forEach(function(e){t["vue-slot"===e.nodeName?"slot":e.nodeName]=e.nodeValue}),t}function y(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1],n=[];return l(e).forEach(function(e){if("#text"===e.nodeName)e.nodeValue.trim()&&n.push(t("span",e.nodeValue));else if("#comment"!==e.nodeName){var r=m(e),o={attrs:r,domProps:{innerHTML:e.innerHTML}};r.slot&&(o.slot=r.slot,r.slot=void 0),n.push(t(e.tagName,o))}}),n}function g(e,t){var n={bubbles:!1,cancelable:!1,detail:t},r=void 0;return"function"==typeof window.CustomEvent?r=new CustomEvent(e,n):(r=document.createEvent("CustomEvent"),r.initCustomEvent(e,n.bubbles,n.cancelable,n.detail)),r}function b(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o=2){var f=e.cloneNode(!0).childNodes;l={propsData:s,props:r.camelCase,computed:{reactiveProps:function(){var e=this,t={};return r.camelCase.forEach(function(n){t[n]=e[n]}),t}},render:function(e){var t={props:this.reactiveProps};return e(a,t,y(f,e))}}}else if(1===c)l=a,l.propsData=s;else{l=a;var d={};Object.keys(s).forEach(function(e){d[e]={default:s[e]}}),l.props=d}var p=c>=2?"
":("
"+e.innerHTML+"
").replace(/vue-slot=/g,"slot=");if(o.shadow&&e.shadowRoot?(e.shadowRoot.innerHTML=p,l.el=e.shadowRoot.children[0]):(e.innerHTML=p,l.el=e.children[0]),v(e,r),e.__vue_custom_element__=new t(l),o.shadow&&o.shadowCss&&e.shadowRoot){var m=document.createElement("style");m.type="text/css",m.appendChild(document.createTextNode(o.shadowCss)),e.shadowRoot.appendChild(m)}e.removeAttribute("vce-cloak"),e.setAttribute("vce-ready",""),b(e,"vce-ready")}}function w(e){e.customElement=function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o="function"==typeof n,i=o&&{props:r.props||[]},a=p(o?i:n),s=u(t,{constructorCallback:function(){"function"==typeof r.constructorCallback&&r.constructorCallback.call(this)},connectedCallback:function(){var i=this,s=o&&n(),c=s&&s.then&&"function"==typeof s.then;if(o&&!c)throw new Error("Async component "+t+" do not returns Promise");this.__detached__||(c?s.then(function(t){var n=p(t);_(i,e,t,n,r)}):_(this,e,n,a,r)),this.__detached__=!1},disconnectedCallback:function(){var e=this;this.__detached__=!0,"function"==typeof r.disconnectedCallback&&r.disconnectedCallback.call(this),setTimeout(function(){e.__detached__&&e.__vue_custom_element__&&e.__vue_custom_element__.$destroy(!0)},r.destroyTimeout||3e3)},attributeChangedCallback:function(e,t,n){if(this.__vue_custom_element__&&"undefined"!=typeof n){var o=k(e);"function"==typeof r.attributeChangedCallback&&r.attributeChangedCallback.call(this,e,t,n),this.__vue_custom_element__[o]=f(n)}},observedAttributes:a.hyphenate,shadow:!!r.shadow&&!!HTMLElement.prototype.attachShadow});return s}}/** + * vue-custom-element v1.4.3 + * (c) 2017 Karol FabjaƄczuk + * @license MIT + */ +Object.setPrototypeOf=Object.setPrototypeOf||r;var C=(r.bind(Object),o()),x=function(){function e(e,t){for(var n=0;n=0&&Math.floor(t)===t&&isFinite(e)}function d(e){return null==e?"":"object"==typeof e?JSON.stringify(e,null,2):String(e)}function p(e){var t=parseFloat(e);return isNaN(t)?e:t}function v(e,t){for(var n=Object.create(null),r=e.split(","),o=0;o-1)return e.splice(n,1)}}function m(e,t){return Ai.call(e,t)}function y(e){var t=Object.create(null);return function(n){var r=t[n];return r||(t[n]=e(n))}}function g(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n}function b(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function _(e,t){for(var n in t)e[n]=t[n];return e}function w(e){for(var t={},n=0;n0&&(s=Ce(s,(n||"")+"_"+i),we(s[0])&&we(u)&&(l[c]=I(u.text+s[0].text),s.shift()),l.push.apply(l,s)):a(s)?we(u)?l[c]=I(u.text+s):""!==s&&l.push(I(s)):we(s)&&we(u)?l[c]=I(u.text+s.text):(o(t._isVList)&&r(s.tag)&&e(s.key)&&r(n)&&(s.key="__vlist"+n+"_"+i+"__"),l.push(s)));return l}function xe(e,t){return(e.__esModule||ra&&"Module"===e[Symbol.toStringTag])&&(e=e.default),s(e)?t.extend(e):e}function $e(e,t,n,r,o){var i=ya();return i.asyncFactory=e,i.asyncMeta={data:t,context:n,children:r,tag:o},i}function ke(t,n,i){if(o(t.error)&&r(t.errorComp))return t.errorComp;if(r(t.resolved))return t.resolved;if(o(t.loading)&&r(t.loadingComp))return t.loadingComp;if(!r(t.contexts)){var a=t.contexts=[i],c=!0,u=function(){for(var e=0,t=a.length;e1?b(r):r;for(var o=b(arguments,1),i=0,a=r.length;iGa)){oa("You may have an infinite update loop "+(e.user?'in watcher with expression "'+e.expression+'"':"in a component render function."),e.vm);break}var n=Za.slice(),r=Ya.slice();ze(),We(n),Je(r),na&&Di.devtools&&na.emit("flush")}function Je(e){for(var t=e.length;t--;){var n=e[t],r=n.vm;r._watcher===n&&r._isMounted&&Be(r,"updated")}}function Ke(e){e._inactive=!1,Za.push(e)}function We(e){for(var t=0;tns&&Ya[n].id>e.id;)n--;Ya.splice(n+1,0,e)}else Ya.push(e);es||(es=!0,fe(qe))}}function Ye(e,t,n){is.get=function(){return this[t][n]},is.set=function(e){this[t][n]=e},Object.defineProperty(e,n,is)}function Ze(e){e._watchers=[];var t=e.$options;t.props&&Xe(e,t.props),t.methods&&ot(e,t.methods),t.data?Qe(e):F(e._data={},!0),t.computed&&tt(e,t.computed),t.watch&&t.watch!==Yi&&it(e,t.watch)}function Xe(e,t){var n=e.$options.propsData||{},r=e._props={},o=e.$options._propKeys=[],i=!e.$parent;wa.shouldConvert=i;var a=function(i){o.push(i);var a=ee(i,t,n,e),s=ji(i);(ki(s)||Di.isReservedAttr(s))&&oa('"'+s+'" is a reserved attribute and cannot be used as component prop.',e),R(r,i,a,function(){e.$parent&&!Wa&&oa("Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property based on the prop's value. Prop being mutated: \""+i+'"',e)}),i in e||Ye(e,"_props",i)};for(var s in t)a(s);wa.shouldConvert=!0}function Qe(e){var t=e.$options.data;t=e._data="function"==typeof t?et(t,e):t||{},u(t)||(t={},oa("data functions should return an object:\nhttps://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function",e));for(var n=Object.keys(t),r=e.$options.props,o=e.$options.methods,i=n.length;i--;){var a=n[i];o&&m(o,a)&&oa('Method "'+a+'" has already been defined as a data property.',e),r&&m(r,a)?oa('The data property "'+a+'" is already declared as a prop. Use prop default value instead.',e):O(a)||Ye(e,"_data",a)}F(t,!0)}function et(e,t){try{return e.call(t,t)}catch(e){return ae(e,t,"data()"),{}}}function tt(e,t){var n=e._computedWatchers=Object.create(null),r=ta();for(var o in t){var i=t[o],a="function"==typeof i?i:i.get;null==a&&oa('Getter is missing for computed property "'+o+'".',e),r||(n[o]=new os(e,a||C,C,as)),o in e?o in e.$data?oa('The computed property "'+o+'" is already defined in data.',e):e.$options.props&&o in e.$options.props&&oa('The computed property "'+o+'" is already defined as a prop.',e):nt(e,o,i)}}function nt(e,t,n){var r=!ta();"function"==typeof n?(is.get=r?rt(t):n,is.set=C):(is.get=n.get?r&&n.cache!==!1?rt(t):n.get:C,is.set=n.set?n.set:C),is.set===C&&(is.set=function(){oa('Computed property "'+t+'" was assigned to but it has no setter.',this)}),Object.defineProperty(e,t,is)}function rt(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),pa.target&&t.depend(),t.value}}function ot(e,t){var n=e.$options.props;for(var r in t)null==t[r]&&oa('Method "'+r+'" has an undefined value in the component definition. Did you reference the function correctly?',e),n&&m(n,r)&&oa('Method "'+r+'" has already been defined as a prop.',e),r in e&&O(r)&&oa('Method "'+r+'" conflicts with an existing Vue instance method. Avoid defining component methods that start with _ or $.'),e[r]=null==t[r]?C:g(t[r],e)}function it(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var o=0;o=0||n.indexOf(e[o])<0)&&r.push(e[o]);return r}return e}function Ht(e){this instanceof Ht||oa("Vue is a constructor and should be called with the `new` keyword"),this._init(e)}function Ut(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=b(arguments,1);return n.unshift(this),"function"==typeof e.install?e.install.apply(e,n):"function"==typeof e&&e.apply(null,n),t.push(e),this}}function Vt(e){e.mixin=function(e){return this.options=X(this.options,e),this}}function Bt(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,r=n.cid,o=e._Ctor||(e._Ctor={});if(o[r])return o[r];var i=e.name||n.options.name;/^[a-zA-Z][\w-]*$/.test(i)||oa('Invalid component name: "'+i+'". Component names can only contain alphanumeric characters and the hyphen, and must start with a letter.');var a=function(e){this._init(e)};return a.prototype=Object.create(n.prototype),a.prototype.constructor=a,a.cid=t++,a.options=X(n.options,e),a.super=n,a.options.props&&zt(a),a.options.computed&&qt(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,Li.forEach(function(e){a[e]=n[e]; +}),i&&(a.options.components[i]=a),a.superOptions=n.options,a.extendOptions=e,a.sealedOptions=_({},a.options),o[r]=a,a}}function zt(e){var t=e.options.props;for(var n in t)Ye(e.prototype,"_props",n)}function qt(e){var t=e.options.computed;for(var n in t)nt(e.prototype,n,t[n])}function Jt(e){Li.forEach(function(t){e[t]=function(e,n){return n?("component"===t&&Di.isReservedTag(e)&&oa("Do not use built-in or reserved HTML elements as component id: "+e),"component"===t&&u(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"==typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}})}function Kt(e){return e&&(e.Ctor.options.name||e.tag)}function Wt(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"==typeof e?e.split(",").indexOf(t)>-1:!!l(e)&&e.test(t)}function Gt(e,t){var n=e.cache,r=e.keys,o=e._vnode;for(var i in n){var a=n[i];if(a){var s=Kt(a.componentOptions);s&&!t(s)&&Yt(n,i,r,o)}}}function Yt(e,t,n,r){var o=e[t];!o||r&&o.tag===r.tag||o.componentInstance.$destroy(),e[t]=null,h(n,t)}function Zt(e){var t={};t.get=function(){return Di},t.set=function(){oa("Do not replace the Vue.config object, set individual fields instead.")},Object.defineProperty(e,"config",t),e.util={warn:oa,extend:_,mergeOptions:X,defineReactive:R},e.set=H,e.delete=U,e.nextTick=fe,e.options=Object.create(null),Li.forEach(function(t){e.options[t+"s"]=Object.create(null)}),e.options._base=e,_(e.options.components,vs),Ut(e),Vt(e),Bt(e),Jt(e)}function Xt(e){for(var t=e.data,n=e,o=e;r(o.componentInstance);)o=o.componentInstance._vnode,o.data&&(t=Qt(o.data,t));for(;r(n=n.parent);)n.data&&(t=Qt(t,n.data));return en(t.staticClass,t.class)}function Qt(e,t){return{staticClass:tn(e.staticClass,t.staticClass),class:r(e.class)?[e.class,t.class]:t.class}}function en(e,t){return r(e)||r(t)?tn(e,nn(t)):""}function tn(e,t){return e?t?e+" "+t:e:t||""}function nn(e){return Array.isArray(e)?rn(e):s(e)?on(e):"string"==typeof e?e:""}function rn(e){for(var t,n="",o=0,i=e.length;o-1?Fs[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:Fs[e]=/HTMLUnknownElement/.test(t.toString())}function cn(e){if("string"==typeof e){var t=document.querySelector(e);return t?t:(oa("Cannot find element: "+e),document.createElement("div"))}return e}function un(e,t){var n=document.createElement(e);return"select"!==e?n:(t.data&&t.data.attrs&&void 0!==t.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n)}function ln(e,t){return document.createElementNS(Is[e],t)}function fn(e){return document.createTextNode(e)}function dn(e){return document.createComment(e)}function pn(e,t,n){e.insertBefore(t,n)}function vn(e,t){e.removeChild(t)}function hn(e,t){e.appendChild(t)}function mn(e){return e.parentNode}function yn(e){return e.nextSibling}function gn(e){return e.tagName}function bn(e,t){e.textContent=t}function _n(e,t,n){e.setAttribute(t,n)}function wn(e,t){var n=e.data.ref;if(n){var r=e.context,o=e.componentInstance||e.elm,i=r.$refs;t?Array.isArray(i[n])?h(i[n],o):i[n]===o&&(i[n]=void 0):e.data.refInFor?Array.isArray(i[n])?i[n].indexOf(o)<0&&i[n].push(o):i[n]=[o]:i[n]=o}}function Cn(t,n){return t.key===n.key&&(t.tag===n.tag&&t.isComment===n.isComment&&r(t.data)===r(n.data)&&xn(t,n)||o(t.isAsyncPlaceholder)&&t.asyncFactory===n.asyncFactory&&e(n.asyncFactory.error))}function xn(e,t){if("input"!==e.tag)return!0;var n,o=r(n=e.data)&&r(n=n.attrs)&&n.type,i=r(n=t.data)&&r(n=n.attrs)&&n.type;return o===i||Rs(o)&&Rs(i)}function $n(e,t,n){var o,i,a={};for(o=t;o<=n;++o)i=e[o].key,r(i)&&(a[i]=o);return a}function kn(t){function n(e){return new ha(N.tagName(e).toLowerCase(),{},[],void 0,e)}function i(e,t){function n(){0===--n.listeners&&s(e)}return n.listeners=t,n}function s(e){var t=N.parentNode(e);r(t)&&N.removeChild(t,e)}function c(e,t){return!t&&!e.ns&&!(Di.ignoredElements.length&&Di.ignoredElements.some(function(t){return l(t)?t.test(e.tag):t===e.tag}))&&Di.isUnknownElement(e.tag)}function u(e,t,n,i,a){if(e.isRootInsert=!a,!f(e,t,n,i)){var s=e.data,u=e.children,l=e.tag;r(l)?(s&&s.pre&&L++,c(e,L)&&oa("Unknown custom element: <"+l+'> - did you register the component correctly? For recursive components, make sure to provide the "name" option.',e.context),e.elm=e.ns?N.createElementNS(e.ns,l):N.createElement(l,e),b(e),m(e,u,t),r(s)&&g(e,t),h(n,e.elm,i),s&&s.pre&&L--):o(e.isComment)?(e.elm=N.createComment(e.text),h(n,e.elm,i)):(e.elm=N.createTextNode(e.text),h(n,e.elm,i))}}function f(e,t,n,i){var a=e.data;if(r(a)){var s=r(e.componentInstance)&&a.keepAlive;if(r(a=a.hook)&&r(a=a.init)&&a(e,!1,n,i),r(e.componentInstance))return d(e,t),o(s)&&p(e,t,n,i),!0}}function d(e,t){r(e.data.pendingInsert)&&(t.push.apply(t,e.data.pendingInsert),e.data.pendingInsert=null),e.elm=e.componentInstance.$el,y(e)?(g(e,t),b(e)):(wn(e),t.push(e))}function p(e,t,n,o){for(var i,a=e;a.componentInstance;)if(a=a.componentInstance._vnode,r(i=a.data)&&r(i=i.transition)){for(i=0;iv?(f=e(o[y+1])?null:o[y+1].elm,_(t,f,o,p,y,i)):p>y&&C(t,n,d,v)}function k(e,t,n,o){for(var i=n;i, or missing . Bailing hydration and performing full client-side render.")}t=n(t)}var v=t.elm,h=N.parentNode(v);if(u(i,d,v._leaveCb?null:h,N.nextSibling(v)),r(i.parent))for(var m=i.parent,g=y(i);m;){for(var b=0;b=0&&(m=e.charAt(h)," "===m);h--);m&&Gs.test(m)||(l=!0)}}else void 0===i?(v=o+1,i=e.slice(0,o).trim()):t();if(void 0===i?i=e.slice(0,o).trim():0!==v&&t(),a)for(o=0;o-1?{exp:e.slice(0,gs),key:'"'+e.slice(gs+1)+'"'}:{exp:e,key:null};for(ms=e,gs=bs=_s=0;!Wn();)ys=Kn(),Gn(ys)?Zn(ys):91===ys&&Yn(ys);return{exp:e.slice(0,bs),key:e.slice(bs+1,_s)}}function Kn(){return ms.charCodeAt(++gs)}function Wn(){return gs>=hs}function Gn(e){return 34===e||39===e}function Yn(e){var t=1;for(bs=gs;!Wn();)if(e=Kn(),Gn(e))Zn(e);else if(91===e&&t++,93===e&&t--,0===t){_s=gs;break}}function Zn(e){for(var t=e;!Wn()&&(e=Kn(),e!==t););}function Xn(e,t,n){ws=n;var r=t.value,o=t.modifiers,i=e.tag,a=e.attrsMap.type;if("input"===i&&"file"===a&&ws("<"+e.tag+' v-model="'+r+'" type="file">:\nFile inputs are read only. Use a v-on:change listener instead.'),e.component)return zn(e,r,o),!1;if("select"===i)tr(e,r,o);else if("input"===i&&"checkbox"===a)Qn(e,r,o);else if("input"===i&&"radio"===a)er(e,r,o);else if("input"===i||"textarea"===i)nr(e,r,o);else{if(!Di.isReservedTag(i))return zn(e,r,o),!1;ws("<"+e.tag+' v-model="'+r+"\">: v-model is not supported on this element type. If you are working with contenteditable, it's recommended to wrap a library dedicated for that purpose inside a custom component.")}return!0}function Qn(e,t,n){var r=n&&n.number,o=Vn(e,"value")||"null",i=Vn(e,"true-value")||"true",a=Vn(e,"false-value")||"false";Fn(e,"checked","Array.isArray("+t+")?_i("+t+","+o+")>-1"+("true"===i?":("+t+")":":_q("+t+","+i+")")),Un(e,"change","var $$a="+t+",$$el=$event.target,$$c=$$el.checked?("+i+"):("+a+");if(Array.isArray($$a)){var $$v="+(r?"_n("+o+")":o)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+t+"=$$a.concat([$$v]))}else{$$i>-1&&("+t+"=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{"+qn(t,"$$c")+"}",null,!0)}function er(e,t,n){var r=n&&n.number,o=Vn(e,"value")||"null";o=r?"_n("+o+")":o,Fn(e,"checked","_q("+t+","+o+")"),Un(e,"change",qn(t,o),null,!0)}function tr(e,t,n){var r=n&&n.number,o='Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return '+(r?"_n(val)":"val")+"})",i="$event.target.multiple ? $$selectedVal : $$selectedVal[0]",a="var $$selectedVal = "+o+";";a=a+" "+qn(t,i),Un(e,"change",a,null,!0)}function nr(e,t,n){var r=e.attrsMap.type,o=e.attrsMap["v-bind:value"]||e.attrsMap[":value"];if(o){var i=e.attrsMap["v-bind:value"]?"v-bind:value":":value";ws(i+'="'+o+'" conflicts with v-model on the same element because the latter already expands to a value binding internally')}var a=n||{},s=a.lazy,c=a.number,u=a.trim,l=!s&&"range"!==r,f=s?"change":"range"===r?Ys:"input",d="$event.target.value";u&&(d="$event.target.value.trim()"),c&&(d="_n("+d+")");var p=qn(t,d);l&&(p="if($event.target.composing)return;"+p),Fn(e,"value","("+t+")"),Un(e,f,p,null,!0),(u||c)&&Un(e,"blur","$forceUpdate()")}function rr(e){if(r(e[Ys])){var t=zi?"change":"input";e[t]=[].concat(e[Ys],e[t]||[]),delete e[Ys]}r(e[Zs])&&(e.change=[].concat(e[Zs],e.change||[]),delete e[Zs])}function or(e,t,n){var r=Cs;return function o(){var i=e.apply(null,arguments);null!==i&&ar(t,o,n,r)}}function ir(e,t,n,r,o){t=le(t),n&&(t=or(t,e,r)),Cs.addEventListener(e,t,Zi?{capture:r,passive:o}:r)}function ar(e,t,n,r){(r||Cs).removeEventListener(e,t._withTask||t,n)}function sr(t,n){if(!e(t.data.on)||!e(n.data.on)){var r=n.data.on||{},o=t.data.on||{};Cs=n.elm,rr(r),he(r,o,ir,ar,n.context),Cs=void 0}}function cr(t,n){if(!e(t.data.domProps)||!e(n.data.domProps)){var o,i,a=n.elm,s=t.data.domProps||{},c=n.data.domProps||{};r(c.__ob__)&&(c=n.data.domProps=_({},c));for(o in s)e(c[o])&&(a[o]="");for(o in c){if(i=c[o],"textContent"===o||"innerHTML"===o){if(n.children&&(n.children.length=0),i===s[o])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===o){a._value=i;var u=e(i)?"":String(i);ur(a,u)&&(a.value=u)}else a[o]=i}}}function ur(e,t){return!e.composing&&("OPTION"===e.tagName||lr(e,t)||fr(e,t))}function lr(e,t){var n=!0;try{n=document.activeElement!==e}catch(e){}return n&&e.value!==t}function fr(e,t){var n=e.value,o=e._vModifiers;return r(o)&&o.number?p(n)!==p(t):r(o)&&o.trim?n.trim()!==t.trim():n!==t}function dr(e){var t=pr(e.style);return e.staticStyle?_(e.staticStyle,t):t}function pr(e){return Array.isArray(e)?w(e):"string"==typeof e?ec(e):e}function vr(e,t){var n,r={};if(t)for(var o=e;o.componentInstance;)o=o.componentInstance._vnode,o.data&&(n=dr(o.data))&&_(r,n);(n=dr(e.data))&&_(r,n);for(var i=e;i=i.parent;)i.data&&(n=dr(i.data))&&_(r,n);return r}function hr(t,n){var o=n.data,i=t.data;if(!(e(o.staticStyle)&&e(o.style)&&e(i.staticStyle)&&e(i.style))){var a,s,c=n.elm,u=i.staticStyle,l=i.normalizedStyle||i.style||{},f=u||l,d=pr(n.data.style)||{};n.data.normalizedStyle=r(d.__ob__)?_({},d):d;var p=vr(n,!0);for(s in f)e(p[s])&&rc(c,s,"");for(s in p)a=p[s],a!==f[s]&&rc(c,s,null==a?"":a)}}function mr(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(/\s+/).forEach(function(t){return e.classList.add(t)}):e.classList.add(t);else{var n=" "+(e.getAttribute("class")||"")+" ";n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function yr(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(/\s+/).forEach(function(t){return e.classList.remove(t)}):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{for(var n=" "+(e.getAttribute("class")||"")+" ",r=" "+t+" ";n.indexOf(r)>=0;)n=n.replace(r," ");n=n.trim(),n?e.setAttribute("class",n):e.removeAttribute("class")}}function gr(e){if(e){if("object"==typeof e){var t={};return e.css!==!1&&_(t,sc(e.name||"v")),_(t,e),t}return"string"==typeof e?sc(e):void 0}}function br(e){hc(function(){hc(e)})}function _r(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),mr(e,t))}function wr(e,t){e._transitionClasses&&h(e._transitionClasses,t),yr(e,t)}function Cr(e,t,n){var r=xr(e,t),o=r.type,i=r.timeout,a=r.propCount;if(!o)return n();var s=o===uc?dc:vc,c=0,u=function(){e.removeEventListener(s,l),n()},l=function(t){t.target===e&&++c>=a&&u()};setTimeout(function(){c0&&(n=uc,l=a,f=i.length):t===lc?u>0&&(n=lc,l=u,f=c.length):(l=Math.max(a,u),n=l>0?a>u?uc:lc:null,f=n?n===uc?i.length:c.length:0);var d=n===uc&&mc.test(r[fc+"Property"]);return{type:n,timeout:l,propCount:f,hasTransform:d}}function $r(e,t){for(;e.length explicit "+t+" duration is not a valid number - got "+JSON.stringify(e)+".",n.context):isNaN(e)&&oa(" explicit "+t+" duration is NaN - the duration expression might be incorrect.",n.context)}function Sr(e){return"number"==typeof e&&!isNaN(e)}function Er(t){if(e(t))return!1;var n=t.fns;return r(n)?Er(Array.isArray(n)?n[0]:n):(t._length||t.length)>1}function jr(e,t){t.data.show!==!0&&Ar(t)}function Mr(e,t,n){Ir(e,t,n),(zi||Ji)&&setTimeout(function(){Ir(e,t,n)},0)}function Ir(e,t,n){var r=t.value,o=e.multiple;if(o&&!Array.isArray(r))return void oa('