@vue/composition-api
Advanced tools
Comparing version 1.4.0 to 1.4.1
@@ -0,1 +1,16 @@ | ||
<a name="1.4.1"></a> | ||
## [1.4.1](https://github.com/vuejs/composition-api/compare/v1.4.0...v1.4.1) (2021-11-30) | ||
### Bug Fixes | ||
* **toRef:** issue [#855](https://github.com/vuejs/composition-api/issues/855) ([#859](https://github.com/vuejs/composition-api/issues/859)) ([b3e61a4](https://github.com/vuejs/composition-api/commit/b3e61a4)) | ||
### Features | ||
* add directives type support ([#863](https://github.com/vuejs/composition-api/issues/863)) ([678a4b3](https://github.com/vuejs/composition-api/commit/678a4b3)) | ||
<a name="1.4.0"></a> | ||
@@ -2,0 +17,0 @@ # [1.4.0](https://github.com/vuejs/composition-api/compare/v1.4.0-beta.0...v1.4.0) (2021-11-14) |
@@ -16,2 +16,2 @@ "use strict";function t(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}Object.defineProperty(exports,"__esModule",{value:!0});var n=t(require("vue"));function e(t){return"function"==typeof t&&/native code/.test(t.toString())}var r="undefined"!=typeof Symbol&&e(Symbol)&&"undefined"!=typeof Reflect&&e(Reflect.ownKeys),o=function(t){return t};function i(t,n,e){var r=e.get,i=e.set;Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:r||o,set:i||o})}function u(t,n,e,r){Object.defineProperty(t,n,{value:e,enumerable:!!r,writable:!0,configurable:!0})}function f(t,n){return Object.hasOwnProperty.call(t,n)}function a(t){return Array.isArray(t)}var c=Object.prototype.toString,s=function(t){return c.call(t)};function l(t){var n=parseFloat(String(t));return n>=0&&Math.floor(n)===n&&isFinite(t)&&n<=4294967295}function v(t){return null!==t&&"object"==typeof t}function p(t){return"[object Object]"===function(t){return Object.prototype.toString.call(t)}(t)}function d(t){return"function"==typeof t}function _(t,e){n.default.util.warn(t,e)} | ||
***************************************************************************** */ | ||
var y=function(t,n){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])},y(t,n)};var h,b=function(){return b=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++)for(var o in n=arguments[e])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},b.apply(this,arguments)};function g(t){var n="function"==typeof Symbol&&Symbol.iterator,e=n&&t[n],r=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function x(t,n){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var r,o,i=e.call(t),u=[];try{for(;(void 0===n||n-- >0)&&!(r=i.next()).done;)u.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(o)throw o.error}}return u}function w(t,n){for(var e=0,r=n.length,o=t.length;e<r;e++,o++)t[o]=n[e];return t}var m=[],$=function(){function t(t){this.active=!0,this.effects=[],this.cleanups=[],this.vm=t}return t.prototype.run=function(t){if(this.active)try{return this.on(),t()}finally{this.off()}},t.prototype.on=function(){this.active&&(m.push(this),h=this)},t.prototype.off=function(){this.active&&(m.pop(),h=m[m.length-1])},t.prototype.stop=function(){this.active&&(this.vm.$destroy(),this.effects.forEach((function(t){return t.stop()})),this.cleanups.forEach((function(t){return t()})),this.active=!1)},t}(),j=function(t){function n(n){void 0===n&&(n=!1);var e,r=void 0;return function(t){var n=C;C=!1;try{t()}finally{C=n}}((function(){r=z(D())})),e=t.call(this,r)||this,n||function(t,n){var e;if((n=n||h)&&n.active)return void n.effects.push(t);var r=null===(e=B())||void 0===e?void 0:e.proxy;r&&r.$on("hook:destroyed",(function(){return t.stop()}))}(e),e}return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=t}y(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}(n,t),n}($);function O(){return h}function S(){var t,n;return(null===(t=O())||void 0===t?void 0:t.vm)||(null===(n=B())||void 0===n?void 0:n.proxy)}var k=void 0;try{var E=require("vue");E&&P(E)?k=E:E&&"default"in E&&P(E.default)&&(k=E.default)}catch(t){}var R=null,M=null,C=!0;function P(t){return t&&d(t)&&"Vue"===t.name}function D(){return R}function U(t){if(C){var n=M;null==n||n.scope.off(),null==(M=t)||M.scope.on()}}function B(){return M}var A,W=new WeakMap;function T(t){if(W.has(t))return W.get(t);var n={proxy:t,update:t.$forceUpdate,type:t.$options,uid:t._uid,emit:t.$emit.bind(t),parent:null,root:null};!function(t){if(!t.scope){var n=new $(t.proxy);t.scope=n,t.proxy.$on("hook:destroyed",(function(){return n.stop()}))}t.scope}(n);return["data","props","attrs","refs","vnode","slots"].forEach((function(e){i(n,e,{get:function(){return t["$"+e]}})})),i(n,"isMounted",{get:function(){return t._isMounted}}),i(n,"isUnmounted",{get:function(){return t._isDestroyed}}),i(n,"isDeactivated",{get:function(){return t._inactive}}),i(n,"emitted",{get:function(){return t._events}}),W.set(t,n),t.$parent&&(n.parent=T(t.$parent)),t.$root&&(n.root=T(t.$root)),n}function V(t,n){return n=n||B()}function z(t,n){void 0===n&&(n={});var e=t.config.silent;t.config.silent=!0;var r=new t(n);return t.config.silent=e,r}function F(t,n){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(t.$scopedSlots[n])return t.$scopedSlots[n].apply(t,e)}}function K(t){return r?Symbol.for(t):t}var q=K("composition-api.preFlushQueue"),I=K("composition-api.postFlushQueue"),Q="composition-api.refKey",G=new WeakMap,H=new WeakMap,J=new WeakMap,L=function(t){i(this,"value",{get:t.get,set:t.set})};function N(t,n,e){void 0===n&&(n=!1),void 0===e&&(e=!1);var r=new L(t);e&&(r.effect=!0);var o=Object.seal(r);return n&&J.set(o,!0),o}function X(t){var n;if(Y(t))return t;var e=st(((n={})[Q]=t,n));return N({get:function(){return e[Q]},set:function(t){return e[Q]=t}})}function Y(t){return t instanceof L}function Z(t){return Y(t)?t.value:t}function tt(t){if(!p(t))return t;var n={};for(var e in t)n[e]=nt(t,e);return n}function nt(t,n){var e=t[n];return Y(e)?e:N({get:function(){return t[n]},set:function(e){return t[n]=e}})}function et(t){var n;return Boolean(t&&f(t,"__ob__")&&"object"==typeof t.__ob__&&(null===(n=t.__ob__)||void 0===n?void 0:n.__raw__))}function rt(t){var n;return Boolean(t&&f(t,"__ob__")&&"object"==typeof t.__ob__&&!(null===(n=t.__ob__)||void 0===n?void 0:n.__raw__))}function ot(t){if(!(!p(t)||et(t)||a(t)||Y(t)||function(t){var n=D();return n&&t instanceof n}(t)||G.has(t))){G.set(t,!0);for(var n=Object.keys(t),e=0;e<n.length;e++)it(t,n[e])}}function it(t,n,e){if("__ob__"!==n&&!et(t[n])){var r,o,u=Object.getOwnPropertyDescriptor(t,n);if(u){if(!1===u.configurable)return;r=u.get,o=u.set,r&&!o||2!==arguments.length||(e=t[n])}ot(e),i(t,n,{get:function(){var o=r?r.call(t):e;return n!==Q&&Y(o)?o.value:o},set:function(i){r&&!o||(n!==Q&&Y(e)&&!Y(i)?e.value=i:o?(o.call(t,i),e=i):e=i,ot(i))}})}}function ut(t){var n,e=R||k;e.observable?n=e.observable(t):n=z(e,{data:{$$state:t}})._data.$$state;return f(n,"__ob__")||ft(n),n}function ft(t,n){var e,r;if(void 0===n&&(n=new Set),!n.has(t)&&!f(t,"__ob__")&&Object.isExtensible(t)){u(t,"__ob__",function(t){void 0===t&&(t={});return{value:t,dep:{notify:o,depend:o,addSub:o,removeSub:o}}}(t)),n.add(t);try{for(var i=g(Object.keys(t)),c=i.next();!c.done;c=i.next()){var s=t[c.value];(p(s)||a(s))&&!et(s)&&Object.isExtensible(s)&&ft(s,n)}}catch(t){e={error:t}}finally{try{c&&!c.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}}}function at(){return ut({}).__ob__}function ct(t){var n,e;if(!v(t))return t;if(!p(t)&&!a(t)||et(t)||!Object.isExtensible(t))return t;var r=ut(a(t)?[]:{});ot(r);var o=r.__ob__,u=function(n){var e,u,f=t[n],a=Object.getOwnPropertyDescriptor(t,n);if(a){if(!1===a.configurable)return"continue";e=a.get,u=a.set}i(r,n,{get:function(){var n,r=e?e.call(t):f;return null===(n=o.dep)||void 0===n||n.depend(),r},set:function(n){var r;e&&!u||(u?u.call(t,n):f=n,null===(r=o.dep)||void 0===r||r.notify())}})};try{for(var f=g(Object.keys(t)),c=f.next();!c.done;c=f.next()){u(c.value)}}catch(t){n={error:t}}finally{try{c&&!c.done&&(e=f.return)&&e.call(f)}finally{if(n)throw n.error}}return r}function st(t){if(!v(t))return t;if(!p(t)&&!a(t)||et(t)||!Object.isExtensible(t))return t;var n=ut(t);return ot(n),n}function lt(t){return function(n,e){var r,o=V(((r=t)[0].toUpperCase(),r.slice(1)),e);return o&&function(t,n,e,r){var o=n.proxy.$options,i=t.config.optionMergeStrategies[e],u=function(t,n){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var o=B();U(t);try{return n.apply(void 0,w([],x(e)))}finally{U(o)}}}(n,r);return o[e]=i(o[e],u),u}(D(),o,t,n)}}var vt,pt=lt("beforeMount"),dt=lt("mounted"),_t=lt("beforeUpdate"),yt=lt("updated"),ht=lt("beforeDestroy"),bt=lt("destroyed"),gt=lt("errorCaptured"),xt=lt("activated"),wt=lt("deactivated"),mt=lt("serverPrefetch");function $t(){St(this,q)}function jt(){St(this,I)}function Ot(){var t=S();return t?function(t){return void 0!==t[q]}(t)||function(t){t[q]=[],t[I]=[],t.$on("hook:beforeUpdate",$t),t.$on("hook:updated",jt)}(t):(vt||(vt=z(D())),t=vt),t}function St(t,n){for(var e=t[n],r=0;r<e.length;r++)e[r]();e.length=0}function kt(t,n,e){var r=function(){t.$nextTick((function(){t[q].length&&St(t,q),t[I].length&&St(t,I)}))};switch(e){case"pre":r(),t[q].push(n);break;case"post":r(),t[I].push(n);break;default:!function(t,n){if(!t)throw new Error("[vue-composition-api] "+n)}(!1,'flush must be one of ["post", "pre", "sync"], but got '+e)}}function Et(t,n){var e=t.teardown;t.teardown=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];e.apply(t,r),n()}}function Rt(t,n,e,r){var i,u,f=r.flush,c="sync"===f,s=function(t){u=function(){try{t()}catch(t){!function(t,n,e){if("undefined"==typeof window||"undefined"==typeof console)throw t;console.error(t)}(t)}}},l=function(){u&&(u(),u=null)},v=function(n){return c||t===vt?n:function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return kt(t,(function(){n.apply(void 0,w([],x(e)))}),f)}};if(null===e){var p=!1,_=function(t,n,e,r){var o=t._watchers.length;return t.$watch(n,e,{immediate:r.immediateInvokeCallback,deep:r.deep,lazy:r.noRun,sync:r.sync,before:r.before}),t._watchers[o]}(t,(function(){if(!p)try{p=!0,n(s)}finally{p=!1}}),o,{deep:r.deep||!1,sync:c,before:l});Et(_,l),_.lazy=!1;var y=_.get.bind(_);return _.get=v(y),function(){_.teardown()}}var h,b=r.deep,g=!1;if(Y(n)?h=function(){return n.value}:rt(n)?(h=function(){return n},b=!0):a(n)?(g=!0,h=function(){return n.map((function(t){return Y(t)?t.value:rt(t)?Ct(t):d(t)?t():o}))}):h=d(n)?n:o,b){var m=h;h=function(){return Ct(m())}}var $=function(t,n){if(b||!g||!t.every((function(t,e){return Object.is(t,n[e])})))return l(),e(t,n,s)},j=v($);if(r.immediate){var O=j,S=function(t,n){return S=O,$(t,a(t)?[]:n)};j=function(t,n){return S(t,n)}}var k=t.$watch(h,j,{immediate:r.immediate,deep:b,sync:c}),E=t._watchers[t._watchers.length-1];return rt(E.value)&&(null===(i=E.value.__ob__)||void 0===i?void 0:i.dep)&&b&&E.value.__ob__.dep.addSub({update:function(){E.run()}}),Et(E,l),function(){k()}}function Mt(t,n){var e=function(t){return b({flush:"pre"},t)}(n);return Rt(Ot(),t,null,e)}function Ct(t,n){if(void 0===n&&(n=new Set),!v(t)||n.has(t))return t;if(n.add(t),Y(t))Ct(t.value,n);else if(a(t))for(var e=0;e<t.length;e++)Ct(t[e],n);else if("[object Set]"===s(t)||function(t){return"[object Map]"===s(t)}(t))t.forEach((function(t){Ct(t,n)}));else if(p(t))for(var r in t)Ct(t[r],n);return t}var Pt={};var Dt={},Ut=function(t){var n;void 0===t&&(t="$style");var e=B();if(!e)return Dt;var r=null===(n=e.proxy)||void 0===n?void 0:n[t];return r||Dt},Bt=Ut;var At;function Wt(){return B().setupContext}var Tt={set:function(t,n,e){(t.__composition_api_state__=t.__composition_api_state__||{})[n]=e},get:function(t,n){return(t.__composition_api_state__||{})[n]}};function Vt(t){var n=Tt.get(t,"rawBindings")||{};if(n&&Object.keys(n).length){for(var e=t.$refs,r=Tt.get(t,"refs")||[],o=0;o<r.length;o++){var i=n[a=r[o]];!e[a]&&i&&Y(i)&&(i.value=null)}var u=Object.keys(e),f=[];for(o=0;o<u.length;o++){var a;i=n[a=u[o]];e[a]&&i&&Y(i)&&(i.value=e[a],f.push(a))}Tt.set(t,"refs",f)}}function zt(t,n){var e,r;if(t){var o=Tt.get(t,"attrBindings");if(o||n){if(!o){var u=st({});o={ctx:n,data:u},Tt.set(t,"attrBindings",o),i(n,"attrs",{get:function(){return null==o?void 0:o.data},set:function(){}})}var a=t.$attrs,c=function(n){f(o.data,n)||i(o.data,n,{get:function(){return t.$attrs[n]}})};try{for(var s=g(Object.keys(a)),l=s.next();!l.done;l=s.next()){c(l.value)}}catch(t){e={error:t}}finally{try{l&&!l.done&&(r=s.return)&&r.call(s)}finally{if(e)throw e.error}}}}}function Ft(t,n){var e=t.$options._parentVnode;if(e){for(var r=Tt.get(t,"slots")||[],o=function(t,n){var e;if(t){if(t._normalized)return t._normalized;for(var r in e={},t)t[r]&&"$"!==r[0]&&(e[r]=!0)}else e={};for(var r in n)r in e||(e[r]=!0);return e}(e.data.scopedSlots,t.$slots),i=0;i<r.length;i++){o[f=r[i]]||delete n[f]}var u=Object.keys(o);for(i=0;i<u.length;i++){var f;n[f=u[i]]||(n[f]=F(t,f))}Tt.set(t,"slots",u)}}function Kt(t,n,e){var r=B();U(t);try{return n(t)}catch(t){if(!e)throw t;e(t)}finally{U(r)}}function qt(t){function n(t,e){if(void 0===e&&(e=new Set),!e.has(t)&&p(t)&&!Y(t)&&!rt(t)&&!et(t)){var r=D().util.defineReactive;Object.keys(t).forEach((function(o){var i=t[o];r(t,o,i),i&&(e.add(i),n(i,e))}))}}function e(t,n){return void 0===n&&(n=new Map),n.has(t)?n.get(t):(n.set(t,!1),a(t)&&rt(t)?(n.set(t,!0),!0):!(!p(t)||et(t)||Y(t))&&Object.keys(t).some((function(r){return e(t[r],n)})))}t.mixin({beforeCreate:function(){var t=this,r=t.$options,o=r.setup,c=r.render;c&&(r.render=function(){for(var n=this,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Kt(T(t),(function(){return c.apply(n,e)}))});if(!o)return;if(!d(o))return;var s=r.data;r.data=function(){return function(t,r){void 0===r&&(r={});var o,c=t.$options.setup,s=function(t){var n={slots:{}},e=["emit"];return["root","parent","refs","listeners","isServer","ssrContext"].forEach((function(e){var r="$"+e;i(n,e,{get:function(){return t[r]},set:function(){}})})),zt(t,n),e.forEach((function(e){var r="$"+e;i(n,e,{get:function(){return function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];t[r].apply(t,n)}}})})),n}(t),l=T(t);if(l.setupContext=s,u(r,"__ob__",at()),Ft(t,s.slots),Kt(l,(function(){o=c(r,s)})),!o)return;if(d(o)){var _=o;return void(t.$options.render=function(){return Ft(t,s.slots),Kt(l,(function(){return _()}))})}if(p(o)){rt(o)&&(o=tt(o)),Tt.set(t,"rawBindings",o);var y=o;Object.keys(y).forEach((function(r){var o=y[r];if(!Y(o))if(rt(o))a(o)&&(o=X(o));else if(d(o)){var u=o;o=o.bind(t),Object.keys(u).forEach((function(t){o[t]=u[t]}))}else v(o)?e(o)&&n(o):o=X(o);!function(t,n,e){var r=t.$options.props;n in t||r&&f(r,n)||(Y(e)?i(t,n,{get:function(){return e.value},set:function(t){e.value=t}}):i(t,n,{get:function(){return rt(e)&&e.__ob__.dep.depend(),e},set:function(t){e=t}}))}(t,r,o)}))}}(t,t.$props),d(s)?s.call(t,t):s||{}}},mounted:function(){Vt(this)},beforeUpdate:function(){zt(this)},updated:function(){var t;Vt(this),(null===(t=this.$vnode)||void 0===t?void 0:t.context)&&Vt(this.$vnode.context)}})}function It(t,n){if(!t)return n;if(!n)return t;for(var e,o,i,u=r?Reflect.ownKeys(t):Object.keys(t),a=0;a<u.length;a++)"__ob__"!==(e=u[a])&&(o=n[e],i=t[e],f(n,e)?o!==i&&p(o)&&!Y(o)&&p(i)&&!Y(i)&&It(i,o):n[e]=i);return n}function Qt(t){(function(t){return f(t,"__composition_api_installed__")})(t)||(t.config.optionMergeStrategies.setup=function(t,n){return function(e,r){return It(d(t)?t(e,r)||{}:void 0,d(n)?n(e,r)||{}:void 0)}},function(t){R=t,Object.defineProperty(t,"__composition_api_installed__",{configurable:!0,writable:!0,value:!0})}(t),qt(t))}var Gt={install:function(t){return Qt(t)}};"undefined"!=typeof window&&window.Vue&&window.Vue.use(Gt),exports.EffectScope=j,exports.computed=function(t){var n,e,r,i,u=S();if(d(t)?n=t:(n=t.get,e=t.set),u&&!u.$isServer){var f,a=function(){if(!A){var t=z(D(),{computed:{value:function(){return 0}}}),n=t._computedWatchers.value.constructor,e=t._data.__ob__.dep.constructor;A={Watcher:n,Dep:e},t.$destroy()}return A}(),c=a.Watcher,s=a.Dep;i=function(){return f||(f=new c(u,n,o,{lazy:!0})),f.dirty&&f.evaluate(),s.target&&f.depend(),f.value},r=function(t){e&&e(t)}}else{var l=z(D(),{computed:{$$state:{get:n,set:e}}});u&&u.$on("hook:destroyed",(function(){return l.$destroy()})),i=function(){return l.$$state},r=function(t){l.$$state=t}}return N({get:i,set:r},!e,!0)},exports.createApp=function(t,n){void 0===n&&(n=void 0);var e=D(),r=void 0;return{config:e.config,use:e.use.bind(e),mixin:e.mixin.bind(e),component:e.component.bind(e),directive:e.directive.bind(e),mount:function(o,i){return r||((r=new e(b({propsData:n},t))).$mount(o,i),r)},unmount:function(){r&&(r.$destroy(),r=void 0)}}},exports.createRef=N,exports.customRef=function(t){var n=X(0);return N(t((function(){n.value}),(function(){++n.value})))},exports.default=Gt,exports.defineAsyncComponent=function(t){d(t)&&(t={loader:t});var n=t.loader,e=t.loadingComponent,r=t.errorComponent,o=t.delay,i=void 0===o?200:o,u=t.timeout;t.suspensible;var f=t.onError,a=null,c=0,s=function(){var t;return a||(t=a=n().catch((function(t){if(t=t instanceof Error?t:new Error(String(t)),f)return new Promise((function(n,e){f(t,(function(){return n((c++,a=null,s()))}),(function(){return e(t)}),c+1)}));throw t})).then((function(n){return t!==a&&a?a:(n&&(n.__esModule||"Module"===n[Symbol.toStringTag])&&(n=n.default),n)})))};return function(){return{component:s(),delay:i,timeout:u,error:r,loading:e}}},exports.defineComponent=function(t){return t},exports.del=function(t,n){if(D().util.warn,a(t)&&l(n))t.splice(n,1);else{var e=t.__ob__;t._isVue||e&&e.vmCount||f(t,n)&&(delete t[n],e&&e.dep.notify())}},exports.effectScope=function(t){return new j(t)},exports.getCurrentInstance=B,exports.getCurrentScope=O,exports.h=function(){for(var t,n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];var r=null===(t=B())||void 0===t?void 0:t.proxy;return r?r.$createElement.apply(r,n):(At||(At=z(D()).$createElement),At.apply(At,n))},exports.inject=function(t,n,e){var r;void 0===e&&(e=!1);var o=null===(r=B())||void 0===r?void 0:r.proxy;if(o){if(!t)return n;var i=function(t,n){for(var e=n;e;){if(e._provided&&f(e._provided,t))return e._provided[t];e=e.$parent}return Pt}(t,o);return i!==Pt?i:e&&d(n)?n():n}},exports.isRaw=et,exports.isReactive=rt,exports.isReadonly=function(t){return J.has(t)},exports.isRef=Y,exports.markRaw=function(t){if(!p(t)&&!a(t)||!Object.isExtensible(t))return t;var n=at();return n.__raw__=!0,u(t,"__ob__",n),H.set(t,!0),t},exports.nextTick=function(){for(var t,n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return null===(t=D())||void 0===t?void 0:t.nextTick.apply(this,n)},exports.onActivated=xt,exports.onBeforeMount=pt,exports.onBeforeUnmount=ht,exports.onBeforeUpdate=_t,exports.onDeactivated=wt,exports.onErrorCaptured=gt,exports.onMounted=dt,exports.onScopeDispose=function(t){h&&h.cleanups.push(t)},exports.onServerPrefetch=mt,exports.onUnmounted=bt,exports.onUpdated=yt,exports.provide=function(t,n){var e,r=null===(e=V())||void 0===e?void 0:e.proxy;if(r){if(!r._provided){var o={};i(r,"_provided",{get:function(){return o},set:function(t){return Object.assign(o,t)}})}r._provided[t]=n}},exports.proxyRefs=function(t){var n,e,r;if(rt(t))return t;var o=st(((n={})[Q]=t,n));u(o,Q,o[Q],!1);var f=function(t){i(o,t,{get:function(){return Y(o[Q][t])?o[Q][t].value:o[Q][t]},set:function(n){if(Y(o[Q][t]))return o[Q][t].value=Z(n);o[Q][t]=Z(n)}})};try{for(var a=g(Object.keys(t)),c=a.next();!c.done;c=a.next()){f(c.value)}}catch(t){e={error:t}}finally{try{c&&!c.done&&(r=a.return)&&r.call(a)}finally{if(e)throw e.error}}return o},exports.reactive=st,exports.readonly=function(t){return J.set(t,!0),t},exports.ref=X,exports.set=function(t,n,e){var r=D().util;r.warn;var o=r.defineReactive,i=t.__ob__;function u(){i&&v(e)&&!f(e,"__ob__")&&ft(e)}if(a(t)){if(l(n))return t.length=Math.max(t.length,n),t.splice(n,1,e),u(),e;if("length"===n&&e!==t.length)return t.length=e,null==i||i.dep.notify(),e}return n in t&&!(n in Object.prototype)?(t[n]=e,u(),e):t._isVue||i&&i.vmCount?e:i?(o(i.value,n,e),it(t,n,e),u(),i.dep.notify(),e):(t[n]=e,e)},exports.shallowReactive=ct,exports.shallowReadonly=function(t){var n,e;if(!v(t))return t;if(!p(t)&&!a(t)||!Object.isExtensible(t)&&!Y(t))return t;var r=Y(t)?new L({}):rt(t)?ut({}):{},o=st({}).__ob__,u=function(n){var e,u=t[n],f=Object.getOwnPropertyDescriptor(t,n);if(f){if(!1===f.configurable&&!Y(t))return"continue";e=f.get}i(r,n,{get:function(){var n=e?e.call(t):u;return o.dep.depend(),n},set:function(t){}})};try{for(var f=g(Object.keys(t)),c=f.next();!c.done;c=f.next()){u(c.value)}}catch(t){n={error:t}}finally{try{c&&!c.done&&(e=f.return)&&e.call(f)}finally{if(n)throw n.error}}return J.set(r,!0),r},exports.shallowRef=function(t){var n;if(Y(t))return t;var e=ct(((n={})[Q]=t,n));return N({get:function(){return e[Q]},set:function(t){return e[Q]=t}})},exports.toRaw=function(t){var n,e;return et(t)||!Object.isExtensible(t)?t:(null===(e=null===(n=t)||void 0===n?void 0:n.__ob__)||void 0===e?void 0:e.value)||t},exports.toRef=nt,exports.toRefs=tt,exports.triggerRef=function(t){Y(t)&&(t.value=t.value)},exports.unref=Z,exports.useAttrs=function(){return Wt().attrs},exports.useCSSModule=Bt,exports.useCssModule=Ut,exports.useSlots=function(){return Wt().slots},exports.version="1.4.0",exports.warn=function(t){var n;_(t,null===(n=B())||void 0===n?void 0:n.proxy)},exports.watch=function(t,n,e){var r=null;d(n)?r=n:(e=n,r=null);var o=function(t){return b({immediate:!1,deep:!1,flush:"pre"},t)}(e);return Rt(Ot(),t,r,o)},exports.watchEffect=Mt,exports.watchPostEffect=function(t){return Mt(t,{flush:"post"})},exports.watchSyncEffect=function(t){return Mt(t,{flush:"sync"})}; | ||
var y=function(t,n){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])},y(t,n)};var h,b=function(){return b=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++)for(var o in n=arguments[e])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},b.apply(this,arguments)};function g(t){var n="function"==typeof Symbol&&Symbol.iterator,e=n&&t[n],r=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function x(t,n){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var r,o,i=e.call(t),u=[];try{for(;(void 0===n||n-- >0)&&!(r=i.next()).done;)u.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(o)throw o.error}}return u}function w(t,n){for(var e=0,r=n.length,o=t.length;e<r;e++,o++)t[o]=n[e];return t}var m=[],$=function(){function t(t){this.active=!0,this.effects=[],this.cleanups=[],this.vm=t}return t.prototype.run=function(t){if(this.active)try{return this.on(),t()}finally{this.off()}},t.prototype.on=function(){this.active&&(m.push(this),h=this)},t.prototype.off=function(){this.active&&(m.pop(),h=m[m.length-1])},t.prototype.stop=function(){this.active&&(this.vm.$destroy(),this.effects.forEach((function(t){return t.stop()})),this.cleanups.forEach((function(t){return t()})),this.active=!1)},t}(),j=function(t){function n(n){void 0===n&&(n=!1);var e,r=void 0;return function(t){var n=C;C=!1;try{t()}finally{C=n}}((function(){r=z(D())})),e=t.call(this,r)||this,n||function(t,n){var e;if((n=n||h)&&n.active)return void n.effects.push(t);var r=null===(e=B())||void 0===e?void 0:e.proxy;r&&r.$on("hook:destroyed",(function(){return t.stop()}))}(e),e}return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=t}y(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}(n,t),n}($);function O(){return h}function S(){var t,n;return(null===(t=O())||void 0===t?void 0:t.vm)||(null===(n=B())||void 0===n?void 0:n.proxy)}var k=void 0;try{var E=require("vue");E&&P(E)?k=E:E&&"default"in E&&P(E.default)&&(k=E.default)}catch(t){}var R=null,M=null,C=!0;function P(t){return t&&d(t)&&"Vue"===t.name}function D(){return R}function U(t){if(C){var n=M;null==n||n.scope.off(),null==(M=t)||M.scope.on()}}function B(){return M}var A,W=new WeakMap;function T(t){if(W.has(t))return W.get(t);var n={proxy:t,update:t.$forceUpdate,type:t.$options,uid:t._uid,emit:t.$emit.bind(t),parent:null,root:null};!function(t){if(!t.scope){var n=new $(t.proxy);t.scope=n,t.proxy.$on("hook:destroyed",(function(){return n.stop()}))}t.scope}(n);return["data","props","attrs","refs","vnode","slots"].forEach((function(e){i(n,e,{get:function(){return t["$"+e]}})})),i(n,"isMounted",{get:function(){return t._isMounted}}),i(n,"isUnmounted",{get:function(){return t._isDestroyed}}),i(n,"isDeactivated",{get:function(){return t._inactive}}),i(n,"emitted",{get:function(){return t._events}}),W.set(t,n),t.$parent&&(n.parent=T(t.$parent)),t.$root&&(n.root=T(t.$root)),n}function V(t,n){return n=n||B()}function z(t,n){void 0===n&&(n={});var e=t.config.silent;t.config.silent=!0;var r=new t(n);return t.config.silent=e,r}function F(t,n){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(t.$scopedSlots[n])return t.$scopedSlots[n].apply(t,e)}}function K(t){return r?Symbol.for(t):t}var q=K("composition-api.preFlushQueue"),I=K("composition-api.postFlushQueue"),Q="composition-api.refKey",G=new WeakMap,H=new WeakMap,J=new WeakMap;function L(t,n,e){var r=D().util;r.warn;var o=r.defineReactive,i=t.__ob__;function u(){i&&v(e)&&!f(e,"__ob__")&&at(e)}if(a(t)){if(l(n))return t.length=Math.max(t.length,n),t.splice(n,1,e),u(),e;if("length"===n&&e!==t.length)return t.length=e,null==i||i.dep.notify(),e}return n in t&&!(n in Object.prototype)?(t[n]=e,u(),e):t._isVue||i&&i.vmCount?e:i?(o(i.value,n,e),ut(t,n,e),u(),i.dep.notify(),e):(t[n]=e,e)}var N=function(t){i(this,"value",{get:t.get,set:t.set})};function X(t,n,e){void 0===n&&(n=!1),void 0===e&&(e=!1);var r=new N(t);e&&(r.effect=!0);var o=Object.seal(r);return n&&J.set(o,!0),o}function Y(t){var n;if(Z(t))return t;var e=lt(((n={})[Q]=t,n));return X({get:function(){return e[Q]},set:function(t){return e[Q]=t}})}function Z(t){return t instanceof N}function tt(t){return Z(t)?t.value:t}function nt(t){if(!p(t))return t;var n={};for(var e in t)n[e]=et(t,e);return n}function et(t,n){n in t||L(t,n,void 0);var e=t[n];return Z(e)?e:X({get:function(){return t[n]},set:function(e){return t[n]=e}})}function rt(t){var n;return Boolean(t&&f(t,"__ob__")&&"object"==typeof t.__ob__&&(null===(n=t.__ob__)||void 0===n?void 0:n.__raw__))}function ot(t){var n;return Boolean(t&&f(t,"__ob__")&&"object"==typeof t.__ob__&&!(null===(n=t.__ob__)||void 0===n?void 0:n.__raw__))}function it(t){if(!(!p(t)||rt(t)||a(t)||Z(t)||function(t){var n=D();return n&&t instanceof n}(t)||G.has(t))){G.set(t,!0);for(var n=Object.keys(t),e=0;e<n.length;e++)ut(t,n[e])}}function ut(t,n,e){if("__ob__"!==n&&!rt(t[n])){var r,o,u=Object.getOwnPropertyDescriptor(t,n);if(u){if(!1===u.configurable)return;r=u.get,o=u.set,r&&!o||2!==arguments.length||(e=t[n])}it(e),i(t,n,{get:function(){var o=r?r.call(t):e;return n!==Q&&Z(o)?o.value:o},set:function(i){r&&!o||(n!==Q&&Z(e)&&!Z(i)?e.value=i:o?(o.call(t,i),e=i):e=i,it(i))}})}}function ft(t){var n,e=R||k;e.observable?n=e.observable(t):n=z(e,{data:{$$state:t}})._data.$$state;return f(n,"__ob__")||at(n),n}function at(t,n){var e,r;if(void 0===n&&(n=new Set),!n.has(t)&&!f(t,"__ob__")&&Object.isExtensible(t)){u(t,"__ob__",function(t){void 0===t&&(t={});return{value:t,dep:{notify:o,depend:o,addSub:o,removeSub:o}}}(t)),n.add(t);try{for(var i=g(Object.keys(t)),c=i.next();!c.done;c=i.next()){var s=t[c.value];(p(s)||a(s))&&!rt(s)&&Object.isExtensible(s)&&at(s,n)}}catch(t){e={error:t}}finally{try{c&&!c.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}}}function ct(){return ft({}).__ob__}function st(t){var n,e;if(!v(t))return t;if(!p(t)&&!a(t)||rt(t)||!Object.isExtensible(t))return t;var r=ft(a(t)?[]:{});it(r);var o=r.__ob__,u=function(n){var e,u,f=t[n],a=Object.getOwnPropertyDescriptor(t,n);if(a){if(!1===a.configurable)return"continue";e=a.get,u=a.set}i(r,n,{get:function(){var n,r=e?e.call(t):f;return null===(n=o.dep)||void 0===n||n.depend(),r},set:function(n){var r;e&&!u||(u?u.call(t,n):f=n,null===(r=o.dep)||void 0===r||r.notify())}})};try{for(var f=g(Object.keys(t)),c=f.next();!c.done;c=f.next()){u(c.value)}}catch(t){n={error:t}}finally{try{c&&!c.done&&(e=f.return)&&e.call(f)}finally{if(n)throw n.error}}return r}function lt(t){if(!v(t))return t;if(!p(t)&&!a(t)||rt(t)||!Object.isExtensible(t))return t;var n=ft(t);return it(n),n}function vt(t){return function(n,e){var r,o=V(((r=t)[0].toUpperCase(),r.slice(1)),e);return o&&function(t,n,e,r){var o=n.proxy.$options,i=t.config.optionMergeStrategies[e],u=function(t,n){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var o=B();U(t);try{return n.apply(void 0,w([],x(e)))}finally{U(o)}}}(n,r);return o[e]=i(o[e],u),u}(D(),o,t,n)}}var pt,dt=vt("beforeMount"),_t=vt("mounted"),yt=vt("beforeUpdate"),ht=vt("updated"),bt=vt("beforeDestroy"),gt=vt("destroyed"),xt=vt("errorCaptured"),wt=vt("activated"),mt=vt("deactivated"),$t=vt("serverPrefetch");function jt(){kt(this,q)}function Ot(){kt(this,I)}function St(){var t=S();return t?function(t){return void 0!==t[q]}(t)||function(t){t[q]=[],t[I]=[],t.$on("hook:beforeUpdate",jt),t.$on("hook:updated",Ot)}(t):(pt||(pt=z(D())),t=pt),t}function kt(t,n){for(var e=t[n],r=0;r<e.length;r++)e[r]();e.length=0}function Et(t,n,e){var r=function(){t.$nextTick((function(){t[q].length&&kt(t,q),t[I].length&&kt(t,I)}))};switch(e){case"pre":r(),t[q].push(n);break;case"post":r(),t[I].push(n);break;default:!function(t,n){if(!t)throw new Error("[vue-composition-api] "+n)}(!1,'flush must be one of ["post", "pre", "sync"], but got '+e)}}function Rt(t,n){var e=t.teardown;t.teardown=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];e.apply(t,r),n()}}function Mt(t,n,e,r){var i,u,f=r.flush,c="sync"===f,s=function(t){u=function(){try{t()}catch(t){!function(t,n,e){if("undefined"==typeof window||"undefined"==typeof console)throw t;console.error(t)}(t)}}},l=function(){u&&(u(),u=null)},v=function(n){return c||t===pt?n:function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Et(t,(function(){n.apply(void 0,w([],x(e)))}),f)}};if(null===e){var p=!1,_=function(t,n,e,r){var o=t._watchers.length;return t.$watch(n,e,{immediate:r.immediateInvokeCallback,deep:r.deep,lazy:r.noRun,sync:r.sync,before:r.before}),t._watchers[o]}(t,(function(){if(!p)try{p=!0,n(s)}finally{p=!1}}),o,{deep:r.deep||!1,sync:c,before:l});Rt(_,l),_.lazy=!1;var y=_.get.bind(_);return _.get=v(y),function(){_.teardown()}}var h,b=r.deep,g=!1;if(Z(n)?h=function(){return n.value}:ot(n)?(h=function(){return n},b=!0):a(n)?(g=!0,h=function(){return n.map((function(t){return Z(t)?t.value:ot(t)?Pt(t):d(t)?t():o}))}):h=d(n)?n:o,b){var m=h;h=function(){return Pt(m())}}var $=function(t,n){if(b||!g||!t.every((function(t,e){return Object.is(t,n[e])})))return l(),e(t,n,s)},j=v($);if(r.immediate){var O=j,S=function(t,n){return S=O,$(t,a(t)?[]:n)};j=function(t,n){return S(t,n)}}var k=t.$watch(h,j,{immediate:r.immediate,deep:b,sync:c}),E=t._watchers[t._watchers.length-1];return ot(E.value)&&(null===(i=E.value.__ob__)||void 0===i?void 0:i.dep)&&b&&E.value.__ob__.dep.addSub({update:function(){E.run()}}),Rt(E,l),function(){k()}}function Ct(t,n){var e=function(t){return b({flush:"pre"},t)}(n);return Mt(St(),t,null,e)}function Pt(t,n){if(void 0===n&&(n=new Set),!v(t)||n.has(t))return t;if(n.add(t),Z(t))Pt(t.value,n);else if(a(t))for(var e=0;e<t.length;e++)Pt(t[e],n);else if("[object Set]"===s(t)||function(t){return"[object Map]"===s(t)}(t))t.forEach((function(t){Pt(t,n)}));else if(p(t))for(var r in t)Pt(t[r],n);return t}var Dt={};var Ut={},Bt=function(t){var n;void 0===t&&(t="$style");var e=B();if(!e)return Ut;var r=null===(n=e.proxy)||void 0===n?void 0:n[t];return r||Ut},At=Bt;var Wt;function Tt(){return B().setupContext}var Vt={set:function(t,n,e){(t.__composition_api_state__=t.__composition_api_state__||{})[n]=e},get:function(t,n){return(t.__composition_api_state__||{})[n]}};function zt(t){var n=Vt.get(t,"rawBindings")||{};if(n&&Object.keys(n).length){for(var e=t.$refs,r=Vt.get(t,"refs")||[],o=0;o<r.length;o++){var i=n[a=r[o]];!e[a]&&i&&Z(i)&&(i.value=null)}var u=Object.keys(e),f=[];for(o=0;o<u.length;o++){var a;i=n[a=u[o]];e[a]&&i&&Z(i)&&(i.value=e[a],f.push(a))}Vt.set(t,"refs",f)}}function Ft(t,n){var e,r;if(t){var o=Vt.get(t,"attrBindings");if(o||n){if(!o){var u=lt({});o={ctx:n,data:u},Vt.set(t,"attrBindings",o),i(n,"attrs",{get:function(){return null==o?void 0:o.data},set:function(){}})}var a=t.$attrs,c=function(n){f(o.data,n)||i(o.data,n,{get:function(){return t.$attrs[n]}})};try{for(var s=g(Object.keys(a)),l=s.next();!l.done;l=s.next()){c(l.value)}}catch(t){e={error:t}}finally{try{l&&!l.done&&(r=s.return)&&r.call(s)}finally{if(e)throw e.error}}}}}function Kt(t,n){var e=t.$options._parentVnode;if(e){for(var r=Vt.get(t,"slots")||[],o=function(t,n){var e;if(t){if(t._normalized)return t._normalized;for(var r in e={},t)t[r]&&"$"!==r[0]&&(e[r]=!0)}else e={};for(var r in n)r in e||(e[r]=!0);return e}(e.data.scopedSlots,t.$slots),i=0;i<r.length;i++){o[f=r[i]]||delete n[f]}var u=Object.keys(o);for(i=0;i<u.length;i++){var f;n[f=u[i]]||(n[f]=F(t,f))}Vt.set(t,"slots",u)}}function qt(t,n,e){var r=B();U(t);try{return n(t)}catch(t){if(!e)throw t;e(t)}finally{U(r)}}function It(t){function n(t,e){if(void 0===e&&(e=new Set),!e.has(t)&&p(t)&&!Z(t)&&!ot(t)&&!rt(t)){var r=D().util.defineReactive;Object.keys(t).forEach((function(o){var i=t[o];r(t,o,i),i&&(e.add(i),n(i,e))}))}}function e(t,n){return void 0===n&&(n=new Map),n.has(t)?n.get(t):(n.set(t,!1),a(t)&&ot(t)?(n.set(t,!0),!0):!(!p(t)||rt(t)||Z(t))&&Object.keys(t).some((function(r){return e(t[r],n)})))}t.mixin({beforeCreate:function(){var t=this,r=t.$options,o=r.setup,c=r.render;c&&(r.render=function(){for(var n=this,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return qt(T(t),(function(){return c.apply(n,e)}))});if(!o)return;if(!d(o))return;var s=r.data;r.data=function(){return function(t,r){void 0===r&&(r={});var o,c=t.$options.setup,s=function(t){var n={slots:{}},e=["emit"];return["root","parent","refs","listeners","isServer","ssrContext"].forEach((function(e){var r="$"+e;i(n,e,{get:function(){return t[r]},set:function(){}})})),Ft(t,n),e.forEach((function(e){var r="$"+e;i(n,e,{get:function(){return function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];t[r].apply(t,n)}}})})),n}(t),l=T(t);if(l.setupContext=s,u(r,"__ob__",ct()),Kt(t,s.slots),qt(l,(function(){o=c(r,s)})),!o)return;if(d(o)){var _=o;return void(t.$options.render=function(){return Kt(t,s.slots),qt(l,(function(){return _()}))})}if(p(o)){ot(o)&&(o=nt(o)),Vt.set(t,"rawBindings",o);var y=o;Object.keys(y).forEach((function(r){var o=y[r];if(!Z(o))if(ot(o))a(o)&&(o=Y(o));else if(d(o)){var u=o;o=o.bind(t),Object.keys(u).forEach((function(t){o[t]=u[t]}))}else v(o)?e(o)&&n(o):o=Y(o);!function(t,n,e){var r=t.$options.props;n in t||r&&f(r,n)||(Z(e)?i(t,n,{get:function(){return e.value},set:function(t){e.value=t}}):i(t,n,{get:function(){return ot(e)&&e.__ob__.dep.depend(),e},set:function(t){e=t}}))}(t,r,o)}))}}(t,t.$props),d(s)?s.call(t,t):s||{}}},mounted:function(){zt(this)},beforeUpdate:function(){Ft(this)},updated:function(){var t;zt(this),(null===(t=this.$vnode)||void 0===t?void 0:t.context)&&zt(this.$vnode.context)}})}function Qt(t,n){if(!t)return n;if(!n)return t;for(var e,o,i,u=r?Reflect.ownKeys(t):Object.keys(t),a=0;a<u.length;a++)"__ob__"!==(e=u[a])&&(o=n[e],i=t[e],f(n,e)?o!==i&&p(o)&&!Z(o)&&p(i)&&!Z(i)&&Qt(i,o):n[e]=i);return n}function Gt(t){(function(t){return f(t,"__composition_api_installed__")})(t)||(t.config.optionMergeStrategies.setup=function(t,n){return function(e,r){return Qt(d(t)?t(e,r)||{}:void 0,d(n)?n(e,r)||{}:void 0)}},function(t){R=t,Object.defineProperty(t,"__composition_api_installed__",{configurable:!0,writable:!0,value:!0})}(t),It(t))}var Ht={install:function(t){return Gt(t)}};"undefined"!=typeof window&&window.Vue&&window.Vue.use(Ht),exports.EffectScope=j,exports.computed=function(t){var n,e,r,i,u=S();if(d(t)?n=t:(n=t.get,e=t.set),u&&!u.$isServer){var f,a=function(){if(!A){var t=z(D(),{computed:{value:function(){return 0}}}),n=t._computedWatchers.value.constructor,e=t._data.__ob__.dep.constructor;A={Watcher:n,Dep:e},t.$destroy()}return A}(),c=a.Watcher,s=a.Dep;i=function(){return f||(f=new c(u,n,o,{lazy:!0})),f.dirty&&f.evaluate(),s.target&&f.depend(),f.value},r=function(t){e&&e(t)}}else{var l=z(D(),{computed:{$$state:{get:n,set:e}}});u&&u.$on("hook:destroyed",(function(){return l.$destroy()})),i=function(){return l.$$state},r=function(t){l.$$state=t}}return X({get:i,set:r},!e,!0)},exports.createApp=function(t,n){void 0===n&&(n=void 0);var e=D(),r=void 0,o={config:e.config,use:e.use.bind(e),mixin:e.mixin.bind(e),component:e.component.bind(e),directive:function(t,n){return n?(e.directive(t,n),o):e.directive(t)},mount:function(o,i){return r||((r=new e(b({propsData:n},t))).$mount(o,i),r)},unmount:function(){r&&(r.$destroy(),r=void 0)}};return o},exports.createRef=X,exports.customRef=function(t){var n=Y(0);return X(t((function(){n.value}),(function(){++n.value})))},exports.default=Ht,exports.defineAsyncComponent=function(t){d(t)&&(t={loader:t});var n=t.loader,e=t.loadingComponent,r=t.errorComponent,o=t.delay,i=void 0===o?200:o,u=t.timeout;t.suspensible;var f=t.onError,a=null,c=0,s=function(){var t;return a||(t=a=n().catch((function(t){if(t=t instanceof Error?t:new Error(String(t)),f)return new Promise((function(n,e){f(t,(function(){return n((c++,a=null,s()))}),(function(){return e(t)}),c+1)}));throw t})).then((function(n){return t!==a&&a?a:(n&&(n.__esModule||"Module"===n[Symbol.toStringTag])&&(n=n.default),n)})))};return function(){return{component:s(),delay:i,timeout:u,error:r,loading:e}}},exports.defineComponent=function(t){return t},exports.del=function(t,n){if(D().util.warn,a(t)&&l(n))t.splice(n,1);else{var e=t.__ob__;t._isVue||e&&e.vmCount||f(t,n)&&(delete t[n],e&&e.dep.notify())}},exports.effectScope=function(t){return new j(t)},exports.getCurrentInstance=B,exports.getCurrentScope=O,exports.h=function(){for(var t,n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];var r=null===(t=B())||void 0===t?void 0:t.proxy;return r?r.$createElement.apply(r,n):(Wt||(Wt=z(D()).$createElement),Wt.apply(Wt,n))},exports.inject=function(t,n,e){var r;void 0===e&&(e=!1);var o=null===(r=B())||void 0===r?void 0:r.proxy;if(o){if(!t)return n;var i=function(t,n){for(var e=n;e;){if(e._provided&&f(e._provided,t))return e._provided[t];e=e.$parent}return Dt}(t,o);return i!==Dt?i:e&&d(n)?n():n}},exports.isRaw=rt,exports.isReactive=ot,exports.isReadonly=function(t){return J.has(t)},exports.isRef=Z,exports.markRaw=function(t){if(!p(t)&&!a(t)||!Object.isExtensible(t))return t;var n=ct();return n.__raw__=!0,u(t,"__ob__",n),H.set(t,!0),t},exports.nextTick=function(){for(var t,n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return null===(t=D())||void 0===t?void 0:t.nextTick.apply(this,n)},exports.onActivated=wt,exports.onBeforeMount=dt,exports.onBeforeUnmount=bt,exports.onBeforeUpdate=yt,exports.onDeactivated=mt,exports.onErrorCaptured=xt,exports.onMounted=_t,exports.onScopeDispose=function(t){h&&h.cleanups.push(t)},exports.onServerPrefetch=$t,exports.onUnmounted=gt,exports.onUpdated=ht,exports.provide=function(t,n){var e,r=null===(e=V())||void 0===e?void 0:e.proxy;if(r){if(!r._provided){var o={};i(r,"_provided",{get:function(){return o},set:function(t){return Object.assign(o,t)}})}r._provided[t]=n}},exports.proxyRefs=function(t){var n,e,r;if(ot(t))return t;var o=lt(((n={})[Q]=t,n));u(o,Q,o[Q],!1);var f=function(t){i(o,t,{get:function(){return Z(o[Q][t])?o[Q][t].value:o[Q][t]},set:function(n){if(Z(o[Q][t]))return o[Q][t].value=tt(n);o[Q][t]=tt(n)}})};try{for(var a=g(Object.keys(t)),c=a.next();!c.done;c=a.next()){f(c.value)}}catch(t){e={error:t}}finally{try{c&&!c.done&&(r=a.return)&&r.call(a)}finally{if(e)throw e.error}}return o},exports.reactive=lt,exports.readonly=function(t){return J.set(t,!0),t},exports.ref=Y,exports.set=L,exports.shallowReactive=st,exports.shallowReadonly=function(t){var n,e;if(!v(t))return t;if(!p(t)&&!a(t)||!Object.isExtensible(t)&&!Z(t))return t;var r=Z(t)?new N({}):ot(t)?ft({}):{},o=lt({}).__ob__,u=function(n){var e,u=t[n],f=Object.getOwnPropertyDescriptor(t,n);if(f){if(!1===f.configurable&&!Z(t))return"continue";e=f.get}i(r,n,{get:function(){var n=e?e.call(t):u;return o.dep.depend(),n},set:function(t){}})};try{for(var f=g(Object.keys(t)),c=f.next();!c.done;c=f.next()){u(c.value)}}catch(t){n={error:t}}finally{try{c&&!c.done&&(e=f.return)&&e.call(f)}finally{if(n)throw n.error}}return J.set(r,!0),r},exports.shallowRef=function(t){var n;if(Z(t))return t;var e=st(((n={})[Q]=t,n));return X({get:function(){return e[Q]},set:function(t){return e[Q]=t}})},exports.toRaw=function(t){var n,e;return rt(t)||!Object.isExtensible(t)?t:(null===(e=null===(n=t)||void 0===n?void 0:n.__ob__)||void 0===e?void 0:e.value)||t},exports.toRef=et,exports.toRefs=nt,exports.triggerRef=function(t){Z(t)&&(t.value=t.value)},exports.unref=tt,exports.useAttrs=function(){return Tt().attrs},exports.useCSSModule=At,exports.useCssModule=Bt,exports.useSlots=function(){return Tt().slots},exports.version="1.4.1",exports.warn=function(t){var n;_(t,null===(n=B())||void 0===n?void 0:n.proxy)},exports.watch=function(t,n,e){var r=null;d(n)?r=n:(e=n,r=null);var o=function(t){return b({immediate:!1,deep:!1,flush:"pre"},t)}(e);return Mt(St(),t,r,o)},exports.watchEffect=Ct,exports.watchPostEffect=function(t){return Ct(t,{flush:"post"})},exports.watchSyncEffect=function(t){return Ct(t,{flush:"sync"})}; |
@@ -1,2 +0,2 @@ | ||
import Vue$1, { VNode, VueConstructor, ComponentOptions, AsyncComponent, CreateElement } from 'vue'; | ||
import Vue$1, { VNode, VueConstructor, ComponentOptions, AsyncComponent, VNodeDirective, CreateElement } from 'vue'; | ||
@@ -265,2 +265,19 @@ declare type Data = { | ||
declare type DirectiveModifiers = Record<string, boolean>; | ||
interface DirectiveBinding<V> extends Readonly<VNodeDirective> { | ||
readonly modifiers: DirectiveModifiers; | ||
readonly value: V; | ||
readonly oldValue: V | null; | ||
} | ||
declare type DirectiveHook<T = any, Prev = VNode | null, V = any> = (el: T, binding: DirectiveBinding<V>, vnode: VNode, prevVNode: Prev) => void; | ||
interface ObjectDirective<T = any, V = any> { | ||
bind?: DirectiveHook<T, any, V>; | ||
inserted?: DirectiveHook<T, any, V>; | ||
update?: DirectiveHook<T, any, V>; | ||
componentUpdated?: DirectiveHook<T, any, V>; | ||
unbind?: DirectiveHook<T, any, V>; | ||
} | ||
declare type FunctionDirective<T = any, V = any> = DirectiveHook<T, any, V>; | ||
declare type Directive<T = any, V = any> = ObjectDirective<T, V> | FunctionDirective<T, V>; | ||
declare const Plugin: { | ||
@@ -441,3 +458,4 @@ install: (Vue: VueConstructor) => void; | ||
component: VueConstructor['component']; | ||
directive: VueConstructor['directive']; | ||
directive(name: string): Directive | undefined; | ||
directive(name: string, directive: Directive): this; | ||
mount: Vue$1['$mount']; | ||
@@ -489,2 +507,2 @@ unmount: Vue$1['$destroy']; | ||
export { App, ComponentInstance, ComponentInternalInstance, ComponentPropsOptions, ComponentPublicInstance, ComponentRenderProxy, ComputedGetter, ComputedOptions, ComputedRef, ComputedSetter, Data, DeepReadonly, EffectScope, ExtractDefaultPropTypes, ExtractPropTypes, FlushMode, InjectionKey, MethodOptions, PropOptions, PropType, Ref, SetupContext, SetupFunction, ShallowUnwrapRef, ToRefs, UnwrapNestedRefs, UnwrapRef, UnwrapRefSimple, VueWatcher, WatchCallback, WatchEffect, WatchOptions, WatchOptionsBase, WatchSource, WatchStopHandle, WritableComputedOptions, WritableComputedRef, computed, createApp, createRef, customRef, Plugin as default, defineAsyncComponent, defineComponent, del, effectScope, getCurrentInstance, getCurrentScope, createElement as h, inject, isRaw, isReactive, isReadonly, isRef, markRaw, nextTick, onActivated, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, onErrorCaptured, onMounted, onScopeDispose, onServerPrefetch, onUnmounted, onUpdated, provide, proxyRefs, reactive, readonly, ref, set, shallowReactive, shallowReadonly, shallowRef, toRaw, toRef, toRefs, triggerRef, unref, useAttrs, useCSSModule, useCssModule, useSlots, version, warn, watch, watchEffect, watchPostEffect, watchSyncEffect }; | ||
export { App, ComponentInstance, ComponentInternalInstance, ComponentPropsOptions, ComponentPublicInstance, ComponentRenderProxy, ComputedGetter, ComputedOptions, ComputedRef, ComputedSetter, Data, DeepReadonly, DirectiveBinding, DirectiveHook, DirectiveModifiers, EffectScope, ExtractDefaultPropTypes, ExtractPropTypes, FlushMode, FunctionDirective, InjectionKey, MethodOptions, ObjectDirective, PropOptions, PropType, Ref, SetupContext, SetupFunction, ShallowUnwrapRef, ToRefs, UnwrapNestedRefs, UnwrapRef, UnwrapRefSimple, VueWatcher, WatchCallback, WatchEffect, WatchOptions, WatchOptionsBase, WatchSource, WatchStopHandle, WritableComputedOptions, WritableComputedRef, computed, createApp, createRef, customRef, Plugin as default, defineAsyncComponent, defineComponent, del, effectScope, getCurrentInstance, getCurrentScope, createElement as h, inject, isRaw, isReactive, isReadonly, isRef, markRaw, nextTick, onActivated, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, onErrorCaptured, onMounted, onScopeDispose, onServerPrefetch, onUnmounted, onUpdated, provide, proxyRefs, reactive, readonly, ref, set, shallowReactive, shallowReadonly, shallowRef, toRaw, toRef, toRefs, triggerRef, unref, useAttrs, useCSSModule, useCssModule, useSlots, version, warn, watch, watchEffect, watchPostEffect, watchSyncEffect }; |
@@ -16,2 +16,2 @@ !function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],n):n((t="undefined"!=typeof globalThis?globalThis:t||self).VueCompositionAPI={},t.Vue)}(this,(function(t,n){"use strict";function e(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var r=e(n);function o(t){return"function"==typeof t&&/native code/.test(t.toString())}var i="undefined"!=typeof Symbol&&o(Symbol)&&"undefined"!=typeof Reflect&&o(Reflect.ownKeys),u=function(t){return t};function f(t,n,e){var r=e.get,o=e.set;Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:r||u,set:o||u})}function a(t,n,e,r){Object.defineProperty(t,n,{value:e,enumerable:!!r,writable:!0,configurable:!0})}function c(t,n){return Object.hasOwnProperty.call(t,n)}function l(t){return Array.isArray(t)}var s=Object.prototype.toString,v=function(t){return s.call(t)};function d(t){var n=parseFloat(String(t));return n>=0&&Math.floor(n)===n&&isFinite(t)&&n<=4294967295}function p(t){return null!==t&&"object"==typeof t}function y(t){return"[object Object]"===function(t){return Object.prototype.toString.call(t)}(t)}function _(t){return"function"==typeof t}function h(t,n){r.default.util.warn(t,n)} | ||
***************************************************************************** */ | ||
var b=function(t,n){return b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])},b(t,n)};var g,m=function(){return m=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++)for(var o in n=arguments[e])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},m.apply(this,arguments)};function w(t){var n="function"==typeof Symbol&&Symbol.iterator,e=n&&t[n],r=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function $(t,n){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var r,o,i=e.call(t),u=[];try{for(;(void 0===n||n-- >0)&&!(r=i.next()).done;)u.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(o)throw o.error}}return u}function j(t,n){for(var e=0,r=n.length,o=t.length;e<r;e++,o++)t[o]=n[e];return t}var O=[],x=function(){function t(t){this.active=!0,this.effects=[],this.cleanups=[],this.vm=t}return t.prototype.run=function(t){if(this.active)try{return this.on(),t()}finally{this.off()}},t.prototype.on=function(){this.active&&(O.push(this),g=this)},t.prototype.off=function(){this.active&&(O.pop(),g=O[O.length-1])},t.prototype.stop=function(){this.active&&(this.vm.$destroy(),this.effects.forEach((function(t){return t.stop()})),this.cleanups.forEach((function(t){return t()})),this.active=!1)},t}(),S=function(t){function n(n){void 0===n&&(n=!1);var e,r=void 0;return function(t){var n=D;D=!1;try{t()}finally{D=n}}((function(){r=K(A())})),e=t.call(this,r)||this,n||function(t,n){var e;if((n=n||g)&&n.active)return void n.effects.push(t);var r=null===(e=V())||void 0===e?void 0:e.proxy;r&&r.$on("hook:destroyed",(function(){return t.stop()}))}(e),e}return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=t}b(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}(n,t),n}(x);function k(){return g}function E(){var t,n;return(null===(t=k())||void 0===t?void 0:t.vm)||(null===(n=V())||void 0===n?void 0:n.proxy)}var R=void 0;try{var C=require("vue");C&&B(C)?R=C:C&&"default"in C&&B(C.default)&&(R=C.default)}catch(t){}var M=null,P=null,D=!0,U="__composition_api_installed__";function B(t){return t&&_(t)&&"Vue"===t.name}function A(){return M}function T(t){if(D){var n=P;null==n||n.scope.off(),null==(P=t)||P.scope.on()}}function V(){return P}var W,z=new WeakMap;function F(t){if(z.has(t))return z.get(t);var n={proxy:t,update:t.$forceUpdate,type:t.$options,uid:t._uid,emit:t.$emit.bind(t),parent:null,root:null};!function(t){if(!t.scope){var n=new x(t.proxy);t.scope=n,t.proxy.$on("hook:destroyed",(function(){return n.stop()}))}t.scope}(n);return["data","props","attrs","refs","vnode","slots"].forEach((function(e){f(n,e,{get:function(){return t["$"+e]}})})),f(n,"isMounted",{get:function(){return t._isMounted}}),f(n,"isUnmounted",{get:function(){return t._isDestroyed}}),f(n,"isDeactivated",{get:function(){return t._inactive}}),f(n,"emitted",{get:function(){return t._events}}),z.set(t,n),t.$parent&&(n.parent=F(t.$parent)),t.$root&&(n.root=F(t.$root)),n}function I(t,n){return n=n||V()}function K(t,n){void 0===n&&(n={});var e=t.config.silent;t.config.silent=!0;var r=new t(n);return t.config.silent=e,r}function q(t,n){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(t.$scopedSlots[n])return t.$scopedSlots[n].apply(t,e)}}function Q(t){return i?Symbol.for(t):t}var G=Q("composition-api.preFlushQueue"),H=Q("composition-api.postFlushQueue"),J="composition-api.refKey",L=new WeakMap,N=new WeakMap,X=new WeakMap,Y=function(t){f(this,"value",{get:t.get,set:t.set})};function Z(t,n,e){void 0===n&&(n=!1),void 0===e&&(e=!1);var r=new Y(t);e&&(r.effect=!0);var o=Object.seal(r);return n&&X.set(o,!0),o}function tt(t){var n;if(nt(t))return t;var e=dt(((n={})[J]=t,n));return Z({get:function(){return e[J]},set:function(t){return e[J]=t}})}function nt(t){return t instanceof Y}function et(t){return nt(t)?t.value:t}function rt(t){if(!y(t))return t;var n={};for(var e in t)n[e]=ot(t,e);return n}function ot(t,n){var e=t[n];return nt(e)?e:Z({get:function(){return t[n]},set:function(e){return t[n]=e}})}function it(t){var n;return Boolean(t&&c(t,"__ob__")&&"object"==typeof t.__ob__&&(null===(n=t.__ob__)||void 0===n?void 0:n.__raw__))}function ut(t){var n;return Boolean(t&&c(t,"__ob__")&&"object"==typeof t.__ob__&&!(null===(n=t.__ob__)||void 0===n?void 0:n.__raw__))}function ft(t){if(!(!y(t)||it(t)||l(t)||nt(t)||function(t){var n=A();return n&&t instanceof n}(t)||L.has(t))){L.set(t,!0);for(var n=Object.keys(t),e=0;e<n.length;e++)at(t,n[e])}}function at(t,n,e){if("__ob__"!==n&&!it(t[n])){var r,o,i=Object.getOwnPropertyDescriptor(t,n);if(i){if(!1===i.configurable)return;r=i.get,o=i.set,r&&!o||2!==arguments.length||(e=t[n])}ft(e),f(t,n,{get:function(){var o=r?r.call(t):e;return n!==J&&nt(o)?o.value:o},set:function(i){r&&!o||(n!==J&&nt(e)&&!nt(i)?e.value=i:o?(o.call(t,i),e=i):e=i,ft(i))}})}}function ct(t){var n,e=M||R;e.observable?n=e.observable(t):n=K(e,{data:{$$state:t}})._data.$$state;return c(n,"__ob__")||lt(n),n}function lt(t,n){var e,r;if(void 0===n&&(n=new Set),!n.has(t)&&!c(t,"__ob__")&&Object.isExtensible(t)){a(t,"__ob__",function(t){void 0===t&&(t={});return{value:t,dep:{notify:u,depend:u,addSub:u,removeSub:u}}}(t)),n.add(t);try{for(var o=w(Object.keys(t)),i=o.next();!i.done;i=o.next()){var f=t[i.value];(y(f)||l(f))&&!it(f)&&Object.isExtensible(f)&<(f,n)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}}}function st(){return ct({}).__ob__}function vt(t){var n,e;if(!p(t))return t;if(!y(t)&&!l(t)||it(t)||!Object.isExtensible(t))return t;var r=ct(l(t)?[]:{});ft(r);var o=r.__ob__,i=function(n){var e,i,u=t[n],a=Object.getOwnPropertyDescriptor(t,n);if(a){if(!1===a.configurable)return"continue";e=a.get,i=a.set}f(r,n,{get:function(){var n,r=e?e.call(t):u;return null===(n=o.dep)||void 0===n||n.depend(),r},set:function(n){var r;e&&!i||(i?i.call(t,n):u=n,null===(r=o.dep)||void 0===r||r.notify())}})};try{for(var u=w(Object.keys(t)),a=u.next();!a.done;a=u.next()){i(a.value)}}catch(t){n={error:t}}finally{try{a&&!a.done&&(e=u.return)&&e.call(u)}finally{if(n)throw n.error}}return r}function dt(t){if(!p(t))return t;if(!y(t)&&!l(t)||it(t)||!Object.isExtensible(t))return t;var n=ct(t);return ft(n),n}function pt(t){return function(n,e){var r,o=I(((r=t)[0].toUpperCase(),r.slice(1)),e);return o&&function(t,n,e,r){var o=n.proxy.$options,i=t.config.optionMergeStrategies[e],u=function(t,n){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var o=V();T(t);try{return n.apply(void 0,j([],$(e)))}finally{T(o)}}}(n,r);return o[e]=i(o[e],u),u}(A(),o,t,n)}}var yt,_t=pt("beforeMount"),ht=pt("mounted"),bt=pt("beforeUpdate"),gt=pt("updated"),mt=pt("beforeDestroy"),wt=pt("destroyed"),$t=pt("errorCaptured"),jt=pt("activated"),Ot=pt("deactivated"),xt=pt("serverPrefetch");function St(){Rt(this,G)}function kt(){Rt(this,H)}function Et(){var t=E();return t?function(t){return void 0!==t[G]}(t)||function(t){t[G]=[],t[H]=[],t.$on("hook:beforeUpdate",St),t.$on("hook:updated",kt)}(t):(yt||(yt=K(A())),t=yt),t}function Rt(t,n){for(var e=t[n],r=0;r<e.length;r++)e[r]();e.length=0}function Ct(t,n,e){var r=function(){t.$nextTick((function(){t[G].length&&Rt(t,G),t[H].length&&Rt(t,H)}))};switch(e){case"pre":r(),t[G].push(n);break;case"post":r(),t[H].push(n);break;default:!function(t,n){if(!t)throw new Error("[vue-composition-api] "+n)}(!1,'flush must be one of ["post", "pre", "sync"], but got '+e)}}function Mt(t,n){var e=t.teardown;t.teardown=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];e.apply(t,r),n()}}function Pt(t,n,e,r){var o,i,f=r.flush,a="sync"===f,c=function(t){i=function(){try{t()}catch(t){!function(t,n,e){if("undefined"==typeof window||"undefined"==typeof console)throw t;console.error(t)}(t)}}},s=function(){i&&(i(),i=null)},v=function(n){return a||t===yt?n:function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Ct(t,(function(){n.apply(void 0,j([],$(e)))}),f)}};if(null===e){var d=!1,p=function(t,n,e,r){var o=t._watchers.length;return t.$watch(n,e,{immediate:r.immediateInvokeCallback,deep:r.deep,lazy:r.noRun,sync:r.sync,before:r.before}),t._watchers[o]}(t,(function(){if(!d)try{d=!0,n(c)}finally{d=!1}}),u,{deep:r.deep||!1,sync:a,before:s});Mt(p,s),p.lazy=!1;var y=p.get.bind(p);return p.get=v(y),function(){p.teardown()}}var h,b=r.deep,g=!1;if(nt(n)?h=function(){return n.value}:ut(n)?(h=function(){return n},b=!0):l(n)?(g=!0,h=function(){return n.map((function(t){return nt(t)?t.value:ut(t)?Ut(t):_(t)?t():u}))}):h=_(n)?n:u,b){var m=h;h=function(){return Ut(m())}}var w=function(t,n){if(b||!g||!t.every((function(t,e){return Object.is(t,n[e])})))return s(),e(t,n,c)},O=v(w);if(r.immediate){var x=O,S=function(t,n){return S=x,w(t,l(t)?[]:n)};O=function(t,n){return S(t,n)}}var k=t.$watch(h,O,{immediate:r.immediate,deep:b,sync:a}),E=t._watchers[t._watchers.length-1];return ut(E.value)&&(null===(o=E.value.__ob__)||void 0===o?void 0:o.dep)&&b&&E.value.__ob__.dep.addSub({update:function(){E.run()}}),Mt(E,s),function(){k()}}function Dt(t,n){var e=function(t){return m({flush:"pre"},t)}(n);return Pt(Et(),t,null,e)}function Ut(t,n){if(void 0===n&&(n=new Set),!p(t)||n.has(t))return t;if(n.add(t),nt(t))Ut(t.value,n);else if(l(t))for(var e=0;e<t.length;e++)Ut(t[e],n);else if("[object Set]"===v(t)||function(t){return"[object Map]"===v(t)}(t))t.forEach((function(t){Ut(t,n)}));else if(y(t))for(var r in t)Ut(t[r],n);return t}var Bt={};var At={},Tt=function(t){var n;void 0===t&&(t="$style");var e=V();if(!e)return At;var r=null===(n=e.proxy)||void 0===n?void 0:n[t];return r||At},Vt=Tt;var Wt;function zt(){return V().setupContext}var Ft={set:function(t,n,e){(t.__composition_api_state__=t.__composition_api_state__||{})[n]=e},get:function(t,n){return(t.__composition_api_state__||{})[n]}};function It(t){var n=Ft.get(t,"rawBindings")||{};if(n&&Object.keys(n).length){for(var e=t.$refs,r=Ft.get(t,"refs")||[],o=0;o<r.length;o++){var i=n[a=r[o]];!e[a]&&i&&nt(i)&&(i.value=null)}var u=Object.keys(e),f=[];for(o=0;o<u.length;o++){var a;i=n[a=u[o]];e[a]&&i&&nt(i)&&(i.value=e[a],f.push(a))}Ft.set(t,"refs",f)}}function Kt(t,n){var e,r;if(t){var o=Ft.get(t,"attrBindings");if(o||n){if(!o){var i=dt({});o={ctx:n,data:i},Ft.set(t,"attrBindings",o),f(n,"attrs",{get:function(){return null==o?void 0:o.data},set:function(){}})}var u=t.$attrs,a=function(n){c(o.data,n)||f(o.data,n,{get:function(){return t.$attrs[n]}})};try{for(var l=w(Object.keys(u)),s=l.next();!s.done;s=l.next()){a(s.value)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(r=l.return)&&r.call(l)}finally{if(e)throw e.error}}}}}function qt(t,n){var e=t.$options._parentVnode;if(e){for(var r=Ft.get(t,"slots")||[],o=function(t,n){var e;if(t){if(t._normalized)return t._normalized;for(var r in e={},t)t[r]&&"$"!==r[0]&&(e[r]=!0)}else e={};for(var r in n)r in e||(e[r]=!0);return e}(e.data.scopedSlots,t.$slots),i=0;i<r.length;i++){o[f=r[i]]||delete n[f]}var u=Object.keys(o);for(i=0;i<u.length;i++){var f;n[f=u[i]]||(n[f]=q(t,f))}Ft.set(t,"slots",u)}}function Qt(t,n,e){var r=V();T(t);try{return n(t)}catch(t){if(!e)throw t;e(t)}finally{T(r)}}function Gt(t){function n(t,e){if(void 0===e&&(e=new Set),!e.has(t)&&y(t)&&!nt(t)&&!ut(t)&&!it(t)){var r=A().util.defineReactive;Object.keys(t).forEach((function(o){var i=t[o];r(t,o,i),i&&(e.add(i),n(i,e))}))}}function e(t,n){return void 0===n&&(n=new Map),n.has(t)?n.get(t):(n.set(t,!1),l(t)&&ut(t)?(n.set(t,!0),!0):!(!y(t)||it(t)||nt(t))&&Object.keys(t).some((function(r){return e(t[r],n)})))}t.mixin({beforeCreate:function(){var t=this,r=t.$options,o=r.setup,i=r.render;i&&(r.render=function(){for(var n=this,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Qt(F(t),(function(){return i.apply(n,e)}))});if(!o)return;if(!_(o))return;var u=r.data;r.data=function(){return function(t,r){void 0===r&&(r={});var o,i=t.$options.setup,u=function(t){var n={slots:{}},e=["emit"];return["root","parent","refs","listeners","isServer","ssrContext"].forEach((function(e){var r="$"+e;f(n,e,{get:function(){return t[r]},set:function(){}})})),Kt(t,n),e.forEach((function(e){var r="$"+e;f(n,e,{get:function(){return function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];t[r].apply(t,n)}}})})),n}(t),s=F(t);if(s.setupContext=u,a(r,"__ob__",st()),qt(t,u.slots),Qt(s,(function(){o=i(r,u)})),!o)return;if(_(o)){var v=o;return void(t.$options.render=function(){return qt(t,u.slots),Qt(s,(function(){return v()}))})}if(y(o)){ut(o)&&(o=rt(o)),Ft.set(t,"rawBindings",o);var d=o;Object.keys(d).forEach((function(r){var o=d[r];if(!nt(o))if(ut(o))l(o)&&(o=tt(o));else if(_(o)){var i=o;o=o.bind(t),Object.keys(i).forEach((function(t){o[t]=i[t]}))}else p(o)?e(o)&&n(o):o=tt(o);!function(t,n,e){var r=t.$options.props;n in t||r&&c(r,n)||(nt(e)?f(t,n,{get:function(){return e.value},set:function(t){e.value=t}}):f(t,n,{get:function(){return ut(e)&&e.__ob__.dep.depend(),e},set:function(t){e=t}}))}(t,r,o)}))}}(t,t.$props),_(u)?u.call(t,t):u||{}}},mounted:function(){It(this)},beforeUpdate:function(){Kt(this)},updated:function(){var t;It(this),(null===(t=this.$vnode)||void 0===t?void 0:t.context)&&It(this.$vnode.context)}})}function Ht(t,n){if(!t)return n;if(!n)return t;for(var e,r,o,u=i?Reflect.ownKeys(t):Object.keys(t),f=0;f<u.length;f++)"__ob__"!==(e=u[f])&&(r=n[e],o=t[e],c(n,e)?r!==o&&y(r)&&!nt(r)&&y(o)&&!nt(o)&&Ht(o,r):n[e]=o);return n}function Jt(t){(function(t){return c(t,U)})(t)||(t.config.optionMergeStrategies.setup=function(t,n){return function(e,r){return Ht(_(t)?t(e,r)||{}:void 0,_(n)?n(e,r)||{}:void 0)}},function(t){M=t,Object.defineProperty(t,U,{configurable:!0,writable:!0,value:!0})}(t),Gt(t))}var Lt={install:function(t){return Jt(t)}};"undefined"!=typeof window&&window.Vue&&window.Vue.use(Lt),t.EffectScope=S,t.computed=function(t){var n,e,r,o,i=E();if(_(t)?n=t:(n=t.get,e=t.set),i&&!i.$isServer){var f,a=function(){if(!W){var t=K(A(),{computed:{value:function(){return 0}}}),n=t._computedWatchers.value.constructor,e=t._data.__ob__.dep.constructor;W={Watcher:n,Dep:e},t.$destroy()}return W}(),c=a.Watcher,l=a.Dep;o=function(){return f||(f=new c(i,n,u,{lazy:!0})),f.dirty&&f.evaluate(),l.target&&f.depend(),f.value},r=function(t){e&&e(t)}}else{var s=K(A(),{computed:{$$state:{get:n,set:e}}});i&&i.$on("hook:destroyed",(function(){return s.$destroy()})),o=function(){return s.$$state},r=function(t){s.$$state=t}}return Z({get:o,set:r},!e,!0)},t.createApp=function(t,n){void 0===n&&(n=void 0);var e=A(),r=void 0;return{config:e.config,use:e.use.bind(e),mixin:e.mixin.bind(e),component:e.component.bind(e),directive:e.directive.bind(e),mount:function(o,i){return r||((r=new e(m({propsData:n},t))).$mount(o,i),r)},unmount:function(){r&&(r.$destroy(),r=void 0)}}},t.createRef=Z,t.customRef=function(t){var n=tt(0);return Z(t((function(){n.value}),(function(){++n.value})))},t.default=Lt,t.defineAsyncComponent=function(t){_(t)&&(t={loader:t});var n=t.loader,e=t.loadingComponent,r=t.errorComponent,o=t.delay,i=void 0===o?200:o,u=t.timeout;t.suspensible;var f=t.onError,a=null,c=0,l=function(){var t;return a||(t=a=n().catch((function(t){if(t=t instanceof Error?t:new Error(String(t)),f)return new Promise((function(n,e){f(t,(function(){return n((c++,a=null,l()))}),(function(){return e(t)}),c+1)}));throw t})).then((function(n){return t!==a&&a?a:(n&&(n.__esModule||"Module"===n[Symbol.toStringTag])&&(n=n.default),n)})))};return function(){return{component:l(),delay:i,timeout:u,error:r,loading:e}}},t.defineComponent=function(t){return t},t.del=function(t,n){if(A().util.warn,l(t)&&d(n))t.splice(n,1);else{var e=t.__ob__;t._isVue||e&&e.vmCount||c(t,n)&&(delete t[n],e&&e.dep.notify())}},t.effectScope=function(t){return new S(t)},t.getCurrentInstance=V,t.getCurrentScope=k,t.h=function(){for(var t,n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];var r=null===(t=V())||void 0===t?void 0:t.proxy;return r?r.$createElement.apply(r,n):(Wt||(Wt=K(A()).$createElement),Wt.apply(Wt,n))},t.inject=function(t,n,e){var r;void 0===e&&(e=!1);var o=null===(r=V())||void 0===r?void 0:r.proxy;if(o){if(!t)return n;var i=function(t,n){for(var e=n;e;){if(e._provided&&c(e._provided,t))return e._provided[t];e=e.$parent}return Bt}(t,o);return i!==Bt?i:e&&_(n)?n():n}},t.isRaw=it,t.isReactive=ut,t.isReadonly=function(t){return X.has(t)},t.isRef=nt,t.markRaw=function(t){if(!y(t)&&!l(t)||!Object.isExtensible(t))return t;var n=st();return n.__raw__=!0,a(t,"__ob__",n),N.set(t,!0),t},t.nextTick=function(){for(var t,n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return null===(t=A())||void 0===t?void 0:t.nextTick.apply(this,n)},t.onActivated=jt,t.onBeforeMount=_t,t.onBeforeUnmount=mt,t.onBeforeUpdate=bt,t.onDeactivated=Ot,t.onErrorCaptured=$t,t.onMounted=ht,t.onScopeDispose=function(t){g&&g.cleanups.push(t)},t.onServerPrefetch=xt,t.onUnmounted=wt,t.onUpdated=gt,t.provide=function(t,n){var e,r=null===(e=I())||void 0===e?void 0:e.proxy;if(r){if(!r._provided){var o={};f(r,"_provided",{get:function(){return o},set:function(t){return Object.assign(o,t)}})}r._provided[t]=n}},t.proxyRefs=function(t){var n,e,r;if(ut(t))return t;var o=dt(((n={})[J]=t,n));a(o,J,o[J],!1);var i=function(t){f(o,t,{get:function(){return nt(o[J][t])?o[J][t].value:o[J][t]},set:function(n){if(nt(o[J][t]))return o[J][t].value=et(n);o[J][t]=et(n)}})};try{for(var u=w(Object.keys(t)),c=u.next();!c.done;c=u.next()){i(c.value)}}catch(t){e={error:t}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}finally{if(e)throw e.error}}return o},t.reactive=dt,t.readonly=function(t){return X.set(t,!0),t},t.ref=tt,t.set=function(t,n,e){var r=A().util;r.warn;var o=r.defineReactive,i=t.__ob__;function u(){i&&p(e)&&!c(e,"__ob__")&<(e)}if(l(t)){if(d(n))return t.length=Math.max(t.length,n),t.splice(n,1,e),u(),e;if("length"===n&&e!==t.length)return t.length=e,null==i||i.dep.notify(),e}return n in t&&!(n in Object.prototype)?(t[n]=e,u(),e):t._isVue||i&&i.vmCount?e:i?(o(i.value,n,e),at(t,n,e),u(),i.dep.notify(),e):(t[n]=e,e)},t.shallowReactive=vt,t.shallowReadonly=function(t){var n,e;if(!p(t))return t;if(!y(t)&&!l(t)||!Object.isExtensible(t)&&!nt(t))return t;var r=nt(t)?new Y({}):ut(t)?ct({}):{},o=dt({}).__ob__,i=function(n){var e,i=t[n],u=Object.getOwnPropertyDescriptor(t,n);if(u){if(!1===u.configurable&&!nt(t))return"continue";e=u.get}f(r,n,{get:function(){var n=e?e.call(t):i;return o.dep.depend(),n},set:function(t){}})};try{for(var u=w(Object.keys(t)),a=u.next();!a.done;a=u.next()){i(a.value)}}catch(t){n={error:t}}finally{try{a&&!a.done&&(e=u.return)&&e.call(u)}finally{if(n)throw n.error}}return X.set(r,!0),r},t.shallowRef=function(t){var n;if(nt(t))return t;var e=vt(((n={})[J]=t,n));return Z({get:function(){return e[J]},set:function(t){return e[J]=t}})},t.toRaw=function(t){var n,e;return it(t)||!Object.isExtensible(t)?t:(null===(e=null===(n=t)||void 0===n?void 0:n.__ob__)||void 0===e?void 0:e.value)||t},t.toRef=ot,t.toRefs=rt,t.triggerRef=function(t){nt(t)&&(t.value=t.value)},t.unref=et,t.useAttrs=function(){return zt().attrs},t.useCSSModule=Vt,t.useCssModule=Tt,t.useSlots=function(){return zt().slots},t.version="1.4.0",t.warn=function(t){var n;h(t,null===(n=V())||void 0===n?void 0:n.proxy)},t.watch=function(t,n,e){var r=null;_(n)?r=n:(e=n,r=null);var o=function(t){return m({immediate:!1,deep:!1,flush:"pre"},t)}(e);return Pt(Et(),t,r,o)},t.watchEffect=Dt,t.watchPostEffect=function(t){return Dt(t,{flush:"post"})},t.watchSyncEffect=function(t){return Dt(t,{flush:"sync"})},Object.defineProperty(t,"__esModule",{value:!0})})); | ||
var b=function(t,n){return b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])},b(t,n)};var g,m=function(){return m=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++)for(var o in n=arguments[e])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},m.apply(this,arguments)};function w(t){var n="function"==typeof Symbol&&Symbol.iterator,e=n&&t[n],r=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function $(t,n){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var r,o,i=e.call(t),u=[];try{for(;(void 0===n||n-- >0)&&!(r=i.next()).done;)u.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(o)throw o.error}}return u}function j(t,n){for(var e=0,r=n.length,o=t.length;e<r;e++,o++)t[o]=n[e];return t}var O=[],x=function(){function t(t){this.active=!0,this.effects=[],this.cleanups=[],this.vm=t}return t.prototype.run=function(t){if(this.active)try{return this.on(),t()}finally{this.off()}},t.prototype.on=function(){this.active&&(O.push(this),g=this)},t.prototype.off=function(){this.active&&(O.pop(),g=O[O.length-1])},t.prototype.stop=function(){this.active&&(this.vm.$destroy(),this.effects.forEach((function(t){return t.stop()})),this.cleanups.forEach((function(t){return t()})),this.active=!1)},t}(),S=function(t){function n(n){void 0===n&&(n=!1);var e,r=void 0;return function(t){var n=D;D=!1;try{t()}finally{D=n}}((function(){r=K(A())})),e=t.call(this,r)||this,n||function(t,n){var e;if((n=n||g)&&n.active)return void n.effects.push(t);var r=null===(e=V())||void 0===e?void 0:e.proxy;r&&r.$on("hook:destroyed",(function(){return t.stop()}))}(e),e}return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=t}b(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}(n,t),n}(x);function k(){return g}function E(){var t,n;return(null===(t=k())||void 0===t?void 0:t.vm)||(null===(n=V())||void 0===n?void 0:n.proxy)}var R=void 0;try{var C=require("vue");C&&B(C)?R=C:C&&"default"in C&&B(C.default)&&(R=C.default)}catch(t){}var M=null,P=null,D=!0,U="__composition_api_installed__";function B(t){return t&&_(t)&&"Vue"===t.name}function A(){return M}function T(t){if(D){var n=P;null==n||n.scope.off(),null==(P=t)||P.scope.on()}}function V(){return P}var W,z=new WeakMap;function F(t){if(z.has(t))return z.get(t);var n={proxy:t,update:t.$forceUpdate,type:t.$options,uid:t._uid,emit:t.$emit.bind(t),parent:null,root:null};!function(t){if(!t.scope){var n=new x(t.proxy);t.scope=n,t.proxy.$on("hook:destroyed",(function(){return n.stop()}))}t.scope}(n);return["data","props","attrs","refs","vnode","slots"].forEach((function(e){f(n,e,{get:function(){return t["$"+e]}})})),f(n,"isMounted",{get:function(){return t._isMounted}}),f(n,"isUnmounted",{get:function(){return t._isDestroyed}}),f(n,"isDeactivated",{get:function(){return t._inactive}}),f(n,"emitted",{get:function(){return t._events}}),z.set(t,n),t.$parent&&(n.parent=F(t.$parent)),t.$root&&(n.root=F(t.$root)),n}function I(t,n){return n=n||V()}function K(t,n){void 0===n&&(n={});var e=t.config.silent;t.config.silent=!0;var r=new t(n);return t.config.silent=e,r}function q(t,n){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(t.$scopedSlots[n])return t.$scopedSlots[n].apply(t,e)}}function Q(t){return i?Symbol.for(t):t}var G=Q("composition-api.preFlushQueue"),H=Q("composition-api.postFlushQueue"),J="composition-api.refKey",L=new WeakMap,N=new WeakMap,X=new WeakMap;function Y(t,n,e){var r=A().util;r.warn;var o=r.defineReactive,i=t.__ob__;function u(){i&&p(e)&&!c(e,"__ob__")&&st(e)}if(l(t)){if(d(n))return t.length=Math.max(t.length,n),t.splice(n,1,e),u(),e;if("length"===n&&e!==t.length)return t.length=e,null==i||i.dep.notify(),e}return n in t&&!(n in Object.prototype)?(t[n]=e,u(),e):t._isVue||i&&i.vmCount?e:i?(o(i.value,n,e),ct(t,n,e),u(),i.dep.notify(),e):(t[n]=e,e)}var Z=function(t){f(this,"value",{get:t.get,set:t.set})};function tt(t,n,e){void 0===n&&(n=!1),void 0===e&&(e=!1);var r=new Z(t);e&&(r.effect=!0);var o=Object.seal(r);return n&&X.set(o,!0),o}function nt(t){var n;if(et(t))return t;var e=pt(((n={})[J]=t,n));return tt({get:function(){return e[J]},set:function(t){return e[J]=t}})}function et(t){return t instanceof Z}function rt(t){return et(t)?t.value:t}function ot(t){if(!y(t))return t;var n={};for(var e in t)n[e]=it(t,e);return n}function it(t,n){n in t||Y(t,n,void 0);var e=t[n];return et(e)?e:tt({get:function(){return t[n]},set:function(e){return t[n]=e}})}function ut(t){var n;return Boolean(t&&c(t,"__ob__")&&"object"==typeof t.__ob__&&(null===(n=t.__ob__)||void 0===n?void 0:n.__raw__))}function ft(t){var n;return Boolean(t&&c(t,"__ob__")&&"object"==typeof t.__ob__&&!(null===(n=t.__ob__)||void 0===n?void 0:n.__raw__))}function at(t){if(!(!y(t)||ut(t)||l(t)||et(t)||function(t){var n=A();return n&&t instanceof n}(t)||L.has(t))){L.set(t,!0);for(var n=Object.keys(t),e=0;e<n.length;e++)ct(t,n[e])}}function ct(t,n,e){if("__ob__"!==n&&!ut(t[n])){var r,o,i=Object.getOwnPropertyDescriptor(t,n);if(i){if(!1===i.configurable)return;r=i.get,o=i.set,r&&!o||2!==arguments.length||(e=t[n])}at(e),f(t,n,{get:function(){var o=r?r.call(t):e;return n!==J&&et(o)?o.value:o},set:function(i){r&&!o||(n!==J&&et(e)&&!et(i)?e.value=i:o?(o.call(t,i),e=i):e=i,at(i))}})}}function lt(t){var n,e=M||R;e.observable?n=e.observable(t):n=K(e,{data:{$$state:t}})._data.$$state;return c(n,"__ob__")||st(n),n}function st(t,n){var e,r;if(void 0===n&&(n=new Set),!n.has(t)&&!c(t,"__ob__")&&Object.isExtensible(t)){a(t,"__ob__",function(t){void 0===t&&(t={});return{value:t,dep:{notify:u,depend:u,addSub:u,removeSub:u}}}(t)),n.add(t);try{for(var o=w(Object.keys(t)),i=o.next();!i.done;i=o.next()){var f=t[i.value];(y(f)||l(f))&&!ut(f)&&Object.isExtensible(f)&&st(f,n)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}}}function vt(){return lt({}).__ob__}function dt(t){var n,e;if(!p(t))return t;if(!y(t)&&!l(t)||ut(t)||!Object.isExtensible(t))return t;var r=lt(l(t)?[]:{});at(r);var o=r.__ob__,i=function(n){var e,i,u=t[n],a=Object.getOwnPropertyDescriptor(t,n);if(a){if(!1===a.configurable)return"continue";e=a.get,i=a.set}f(r,n,{get:function(){var n,r=e?e.call(t):u;return null===(n=o.dep)||void 0===n||n.depend(),r},set:function(n){var r;e&&!i||(i?i.call(t,n):u=n,null===(r=o.dep)||void 0===r||r.notify())}})};try{for(var u=w(Object.keys(t)),a=u.next();!a.done;a=u.next()){i(a.value)}}catch(t){n={error:t}}finally{try{a&&!a.done&&(e=u.return)&&e.call(u)}finally{if(n)throw n.error}}return r}function pt(t){if(!p(t))return t;if(!y(t)&&!l(t)||ut(t)||!Object.isExtensible(t))return t;var n=lt(t);return at(n),n}function yt(t){return function(n,e){var r,o=I(((r=t)[0].toUpperCase(),r.slice(1)),e);return o&&function(t,n,e,r){var o=n.proxy.$options,i=t.config.optionMergeStrategies[e],u=function(t,n){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var o=V();T(t);try{return n.apply(void 0,j([],$(e)))}finally{T(o)}}}(n,r);return o[e]=i(o[e],u),u}(A(),o,t,n)}}var _t,ht=yt("beforeMount"),bt=yt("mounted"),gt=yt("beforeUpdate"),mt=yt("updated"),wt=yt("beforeDestroy"),$t=yt("destroyed"),jt=yt("errorCaptured"),Ot=yt("activated"),xt=yt("deactivated"),St=yt("serverPrefetch");function kt(){Ct(this,G)}function Et(){Ct(this,H)}function Rt(){var t=E();return t?function(t){return void 0!==t[G]}(t)||function(t){t[G]=[],t[H]=[],t.$on("hook:beforeUpdate",kt),t.$on("hook:updated",Et)}(t):(_t||(_t=K(A())),t=_t),t}function Ct(t,n){for(var e=t[n],r=0;r<e.length;r++)e[r]();e.length=0}function Mt(t,n,e){var r=function(){t.$nextTick((function(){t[G].length&&Ct(t,G),t[H].length&&Ct(t,H)}))};switch(e){case"pre":r(),t[G].push(n);break;case"post":r(),t[H].push(n);break;default:!function(t,n){if(!t)throw new Error("[vue-composition-api] "+n)}(!1,'flush must be one of ["post", "pre", "sync"], but got '+e)}}function Pt(t,n){var e=t.teardown;t.teardown=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];e.apply(t,r),n()}}function Dt(t,n,e,r){var o,i,f=r.flush,a="sync"===f,c=function(t){i=function(){try{t()}catch(t){!function(t,n,e){if("undefined"==typeof window||"undefined"==typeof console)throw t;console.error(t)}(t)}}},s=function(){i&&(i(),i=null)},v=function(n){return a||t===_t?n:function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Mt(t,(function(){n.apply(void 0,j([],$(e)))}),f)}};if(null===e){var d=!1,p=function(t,n,e,r){var o=t._watchers.length;return t.$watch(n,e,{immediate:r.immediateInvokeCallback,deep:r.deep,lazy:r.noRun,sync:r.sync,before:r.before}),t._watchers[o]}(t,(function(){if(!d)try{d=!0,n(c)}finally{d=!1}}),u,{deep:r.deep||!1,sync:a,before:s});Pt(p,s),p.lazy=!1;var y=p.get.bind(p);return p.get=v(y),function(){p.teardown()}}var h,b=r.deep,g=!1;if(et(n)?h=function(){return n.value}:ft(n)?(h=function(){return n},b=!0):l(n)?(g=!0,h=function(){return n.map((function(t){return et(t)?t.value:ft(t)?Bt(t):_(t)?t():u}))}):h=_(n)?n:u,b){var m=h;h=function(){return Bt(m())}}var w=function(t,n){if(b||!g||!t.every((function(t,e){return Object.is(t,n[e])})))return s(),e(t,n,c)},O=v(w);if(r.immediate){var x=O,S=function(t,n){return S=x,w(t,l(t)?[]:n)};O=function(t,n){return S(t,n)}}var k=t.$watch(h,O,{immediate:r.immediate,deep:b,sync:a}),E=t._watchers[t._watchers.length-1];return ft(E.value)&&(null===(o=E.value.__ob__)||void 0===o?void 0:o.dep)&&b&&E.value.__ob__.dep.addSub({update:function(){E.run()}}),Pt(E,s),function(){k()}}function Ut(t,n){var e=function(t){return m({flush:"pre"},t)}(n);return Dt(Rt(),t,null,e)}function Bt(t,n){if(void 0===n&&(n=new Set),!p(t)||n.has(t))return t;if(n.add(t),et(t))Bt(t.value,n);else if(l(t))for(var e=0;e<t.length;e++)Bt(t[e],n);else if("[object Set]"===v(t)||function(t){return"[object Map]"===v(t)}(t))t.forEach((function(t){Bt(t,n)}));else if(y(t))for(var r in t)Bt(t[r],n);return t}var At={};var Tt={},Vt=function(t){var n;void 0===t&&(t="$style");var e=V();if(!e)return Tt;var r=null===(n=e.proxy)||void 0===n?void 0:n[t];return r||Tt},Wt=Vt;var zt;function Ft(){return V().setupContext}var It={set:function(t,n,e){(t.__composition_api_state__=t.__composition_api_state__||{})[n]=e},get:function(t,n){return(t.__composition_api_state__||{})[n]}};function Kt(t){var n=It.get(t,"rawBindings")||{};if(n&&Object.keys(n).length){for(var e=t.$refs,r=It.get(t,"refs")||[],o=0;o<r.length;o++){var i=n[a=r[o]];!e[a]&&i&&et(i)&&(i.value=null)}var u=Object.keys(e),f=[];for(o=0;o<u.length;o++){var a;i=n[a=u[o]];e[a]&&i&&et(i)&&(i.value=e[a],f.push(a))}It.set(t,"refs",f)}}function qt(t,n){var e,r;if(t){var o=It.get(t,"attrBindings");if(o||n){if(!o){var i=pt({});o={ctx:n,data:i},It.set(t,"attrBindings",o),f(n,"attrs",{get:function(){return null==o?void 0:o.data},set:function(){}})}var u=t.$attrs,a=function(n){c(o.data,n)||f(o.data,n,{get:function(){return t.$attrs[n]}})};try{for(var l=w(Object.keys(u)),s=l.next();!s.done;s=l.next()){a(s.value)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(r=l.return)&&r.call(l)}finally{if(e)throw e.error}}}}}function Qt(t,n){var e=t.$options._parentVnode;if(e){for(var r=It.get(t,"slots")||[],o=function(t,n){var e;if(t){if(t._normalized)return t._normalized;for(var r in e={},t)t[r]&&"$"!==r[0]&&(e[r]=!0)}else e={};for(var r in n)r in e||(e[r]=!0);return e}(e.data.scopedSlots,t.$slots),i=0;i<r.length;i++){o[f=r[i]]||delete n[f]}var u=Object.keys(o);for(i=0;i<u.length;i++){var f;n[f=u[i]]||(n[f]=q(t,f))}It.set(t,"slots",u)}}function Gt(t,n,e){var r=V();T(t);try{return n(t)}catch(t){if(!e)throw t;e(t)}finally{T(r)}}function Ht(t){function n(t,e){if(void 0===e&&(e=new Set),!e.has(t)&&y(t)&&!et(t)&&!ft(t)&&!ut(t)){var r=A().util.defineReactive;Object.keys(t).forEach((function(o){var i=t[o];r(t,o,i),i&&(e.add(i),n(i,e))}))}}function e(t,n){return void 0===n&&(n=new Map),n.has(t)?n.get(t):(n.set(t,!1),l(t)&&ft(t)?(n.set(t,!0),!0):!(!y(t)||ut(t)||et(t))&&Object.keys(t).some((function(r){return e(t[r],n)})))}t.mixin({beforeCreate:function(){var t=this,r=t.$options,o=r.setup,i=r.render;i&&(r.render=function(){for(var n=this,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Gt(F(t),(function(){return i.apply(n,e)}))});if(!o)return;if(!_(o))return;var u=r.data;r.data=function(){return function(t,r){void 0===r&&(r={});var o,i=t.$options.setup,u=function(t){var n={slots:{}},e=["emit"];return["root","parent","refs","listeners","isServer","ssrContext"].forEach((function(e){var r="$"+e;f(n,e,{get:function(){return t[r]},set:function(){}})})),qt(t,n),e.forEach((function(e){var r="$"+e;f(n,e,{get:function(){return function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];t[r].apply(t,n)}}})})),n}(t),s=F(t);if(s.setupContext=u,a(r,"__ob__",vt()),Qt(t,u.slots),Gt(s,(function(){o=i(r,u)})),!o)return;if(_(o)){var v=o;return void(t.$options.render=function(){return Qt(t,u.slots),Gt(s,(function(){return v()}))})}if(y(o)){ft(o)&&(o=ot(o)),It.set(t,"rawBindings",o);var d=o;Object.keys(d).forEach((function(r){var o=d[r];if(!et(o))if(ft(o))l(o)&&(o=nt(o));else if(_(o)){var i=o;o=o.bind(t),Object.keys(i).forEach((function(t){o[t]=i[t]}))}else p(o)?e(o)&&n(o):o=nt(o);!function(t,n,e){var r=t.$options.props;n in t||r&&c(r,n)||(et(e)?f(t,n,{get:function(){return e.value},set:function(t){e.value=t}}):f(t,n,{get:function(){return ft(e)&&e.__ob__.dep.depend(),e},set:function(t){e=t}}))}(t,r,o)}))}}(t,t.$props),_(u)?u.call(t,t):u||{}}},mounted:function(){Kt(this)},beforeUpdate:function(){qt(this)},updated:function(){var t;Kt(this),(null===(t=this.$vnode)||void 0===t?void 0:t.context)&&Kt(this.$vnode.context)}})}function Jt(t,n){if(!t)return n;if(!n)return t;for(var e,r,o,u=i?Reflect.ownKeys(t):Object.keys(t),f=0;f<u.length;f++)"__ob__"!==(e=u[f])&&(r=n[e],o=t[e],c(n,e)?r!==o&&y(r)&&!et(r)&&y(o)&&!et(o)&&Jt(o,r):n[e]=o);return n}function Lt(t){(function(t){return c(t,U)})(t)||(t.config.optionMergeStrategies.setup=function(t,n){return function(e,r){return Jt(_(t)?t(e,r)||{}:void 0,_(n)?n(e,r)||{}:void 0)}},function(t){M=t,Object.defineProperty(t,U,{configurable:!0,writable:!0,value:!0})}(t),Ht(t))}var Nt={install:function(t){return Lt(t)}};"undefined"!=typeof window&&window.Vue&&window.Vue.use(Nt),t.EffectScope=S,t.computed=function(t){var n,e,r,o,i=E();if(_(t)?n=t:(n=t.get,e=t.set),i&&!i.$isServer){var f,a=function(){if(!W){var t=K(A(),{computed:{value:function(){return 0}}}),n=t._computedWatchers.value.constructor,e=t._data.__ob__.dep.constructor;W={Watcher:n,Dep:e},t.$destroy()}return W}(),c=a.Watcher,l=a.Dep;o=function(){return f||(f=new c(i,n,u,{lazy:!0})),f.dirty&&f.evaluate(),l.target&&f.depend(),f.value},r=function(t){e&&e(t)}}else{var s=K(A(),{computed:{$$state:{get:n,set:e}}});i&&i.$on("hook:destroyed",(function(){return s.$destroy()})),o=function(){return s.$$state},r=function(t){s.$$state=t}}return tt({get:o,set:r},!e,!0)},t.createApp=function(t,n){void 0===n&&(n=void 0);var e=A(),r=void 0,o={config:e.config,use:e.use.bind(e),mixin:e.mixin.bind(e),component:e.component.bind(e),directive:function(t,n){return n?(e.directive(t,n),o):e.directive(t)},mount:function(o,i){return r||((r=new e(m({propsData:n},t))).$mount(o,i),r)},unmount:function(){r&&(r.$destroy(),r=void 0)}};return o},t.createRef=tt,t.customRef=function(t){var n=nt(0);return tt(t((function(){n.value}),(function(){++n.value})))},t.default=Nt,t.defineAsyncComponent=function(t){_(t)&&(t={loader:t});var n=t.loader,e=t.loadingComponent,r=t.errorComponent,o=t.delay,i=void 0===o?200:o,u=t.timeout;t.suspensible;var f=t.onError,a=null,c=0,l=function(){var t;return a||(t=a=n().catch((function(t){if(t=t instanceof Error?t:new Error(String(t)),f)return new Promise((function(n,e){f(t,(function(){return n((c++,a=null,l()))}),(function(){return e(t)}),c+1)}));throw t})).then((function(n){return t!==a&&a?a:(n&&(n.__esModule||"Module"===n[Symbol.toStringTag])&&(n=n.default),n)})))};return function(){return{component:l(),delay:i,timeout:u,error:r,loading:e}}},t.defineComponent=function(t){return t},t.del=function(t,n){if(A().util.warn,l(t)&&d(n))t.splice(n,1);else{var e=t.__ob__;t._isVue||e&&e.vmCount||c(t,n)&&(delete t[n],e&&e.dep.notify())}},t.effectScope=function(t){return new S(t)},t.getCurrentInstance=V,t.getCurrentScope=k,t.h=function(){for(var t,n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];var r=null===(t=V())||void 0===t?void 0:t.proxy;return r?r.$createElement.apply(r,n):(zt||(zt=K(A()).$createElement),zt.apply(zt,n))},t.inject=function(t,n,e){var r;void 0===e&&(e=!1);var o=null===(r=V())||void 0===r?void 0:r.proxy;if(o){if(!t)return n;var i=function(t,n){for(var e=n;e;){if(e._provided&&c(e._provided,t))return e._provided[t];e=e.$parent}return At}(t,o);return i!==At?i:e&&_(n)?n():n}},t.isRaw=ut,t.isReactive=ft,t.isReadonly=function(t){return X.has(t)},t.isRef=et,t.markRaw=function(t){if(!y(t)&&!l(t)||!Object.isExtensible(t))return t;var n=vt();return n.__raw__=!0,a(t,"__ob__",n),N.set(t,!0),t},t.nextTick=function(){for(var t,n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return null===(t=A())||void 0===t?void 0:t.nextTick.apply(this,n)},t.onActivated=Ot,t.onBeforeMount=ht,t.onBeforeUnmount=wt,t.onBeforeUpdate=gt,t.onDeactivated=xt,t.onErrorCaptured=jt,t.onMounted=bt,t.onScopeDispose=function(t){g&&g.cleanups.push(t)},t.onServerPrefetch=St,t.onUnmounted=$t,t.onUpdated=mt,t.provide=function(t,n){var e,r=null===(e=I())||void 0===e?void 0:e.proxy;if(r){if(!r._provided){var o={};f(r,"_provided",{get:function(){return o},set:function(t){return Object.assign(o,t)}})}r._provided[t]=n}},t.proxyRefs=function(t){var n,e,r;if(ft(t))return t;var o=pt(((n={})[J]=t,n));a(o,J,o[J],!1);var i=function(t){f(o,t,{get:function(){return et(o[J][t])?o[J][t].value:o[J][t]},set:function(n){if(et(o[J][t]))return o[J][t].value=rt(n);o[J][t]=rt(n)}})};try{for(var u=w(Object.keys(t)),c=u.next();!c.done;c=u.next()){i(c.value)}}catch(t){e={error:t}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}finally{if(e)throw e.error}}return o},t.reactive=pt,t.readonly=function(t){return X.set(t,!0),t},t.ref=nt,t.set=Y,t.shallowReactive=dt,t.shallowReadonly=function(t){var n,e;if(!p(t))return t;if(!y(t)&&!l(t)||!Object.isExtensible(t)&&!et(t))return t;var r=et(t)?new Z({}):ft(t)?lt({}):{},o=pt({}).__ob__,i=function(n){var e,i=t[n],u=Object.getOwnPropertyDescriptor(t,n);if(u){if(!1===u.configurable&&!et(t))return"continue";e=u.get}f(r,n,{get:function(){var n=e?e.call(t):i;return o.dep.depend(),n},set:function(t){}})};try{for(var u=w(Object.keys(t)),a=u.next();!a.done;a=u.next()){i(a.value)}}catch(t){n={error:t}}finally{try{a&&!a.done&&(e=u.return)&&e.call(u)}finally{if(n)throw n.error}}return X.set(r,!0),r},t.shallowRef=function(t){var n;if(et(t))return t;var e=dt(((n={})[J]=t,n));return tt({get:function(){return e[J]},set:function(t){return e[J]=t}})},t.toRaw=function(t){var n,e;return ut(t)||!Object.isExtensible(t)?t:(null===(e=null===(n=t)||void 0===n?void 0:n.__ob__)||void 0===e?void 0:e.value)||t},t.toRef=it,t.toRefs=ot,t.triggerRef=function(t){et(t)&&(t.value=t.value)},t.unref=rt,t.useAttrs=function(){return Ft().attrs},t.useCSSModule=Wt,t.useCssModule=Vt,t.useSlots=function(){return Ft().slots},t.version="1.4.1",t.warn=function(t){var n;h(t,null===(n=V())||void 0===n?void 0:n.proxy)},t.watch=function(t,n,e){var r=null;_(n)?r=n:(e=n,r=null);var o=function(t){return m({immediate:!1,deep:!1,flush:"pre"},t)}(e);return Dt(Rt(),t,r,o)},t.watchEffect=Ut,t.watchPostEffect=function(t){return Ut(t,{flush:"post"})},t.watchSyncEffect=function(t){return Ut(t,{flush:"sync"})},Object.defineProperty(t,"__esModule",{value:!0})})); |
{ | ||
"name": "@vue/composition-api", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"description": "Provide logic composition capabilities for Vue.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -44,3 +44,3 @@ # @vue/composition-api | ||
<script src="https://cdn.jsdelivr.net/npm/vue@2.6"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/@vue/composition-api@1.4.0"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/@vue/composition-api@1.4.1"></script> | ||
``` | ||
@@ -47,0 +47,0 @@ <!--cdn-links-end--> |
@@ -43,3 +43,3 @@ # @vue/composition-api | ||
<script src="https://cdn.jsdelivr.net/npm/vue@2.6"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/@vue/composition-api@1.4.0"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/@vue/composition-api@1.4.1"></script> | ||
``` | ||
@@ -46,0 +46,0 @@ <!--cdn-links-end--> |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
439837
9440