@vue/composition-api
Advanced tools
Comparing version 1.6.3 to 1.7.0
@@ -1,1 +0,1 @@ | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=function(n,e){return t=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])},t(n,e)};var n,e=function(){return e=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},e.apply(this,arguments)};function r(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 o(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 i(t,n,e){if(e||2===arguments.length)for(var r,o=0,i=n.length;o<i;o++)!r&&o in n||(r||(r=Array.prototype.slice.call(n,0,o)),r[o]=n[o]);return t.concat(r||Array.prototype.slice.call(n))}var u=[],a=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&&(u.push(this),n=this)},t.prototype.off=function(){this.active&&(u.pop(),n=u[u.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}(),f=function(e){function r(t){void 0===t&&(t=!1);var r,o=void 0;return function(t){var n=_;_=!1;try{t()}finally{_=n}}((function(){o=T(h())})),r=e.call(this,o)||this,t||function(t,e){var r;if((e=e||n)&&e.active)return void e.effects.push(t);var o=null===(r=x())||void 0===r?void 0:r.proxy;o&&o.$on("hook:destroyed",(function(){return t.stop()}))}(r),r}return function(n,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=n}t(n,e),n.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}(r,e),r}(a);function c(){return n}function s(){var t,n;return(null===(t=c())||void 0===t?void 0:t.vm)||(null===(n=x())||void 0===n?void 0:n.proxy)}var l=void 0;try{var p=require("vue");p&&y(p)?l=p:p&&"default"in p&&y(p.default)&&(l=p.default)}catch(t){}var v=null,d=null,_=!0;function y(t){return t&&B(t)&&"Vue"===t.name}function h(){return v}function b(){return v||l}function g(t){if(_){var n=d;null==n||n.scope.off(),null==(d=t)||d.scope.on()}}function x(){return d}var m=new WeakMap;function w(t){if(m.has(t))return m.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 a(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){S(n,e,{get:function(){return t["$".concat(e)]}})})),S(n,"isMounted",{get:function(){return t._isMounted}}),S(n,"isUnmounted",{get:function(){return t._isDestroyed}}),S(n,"isDeactivated",{get:function(){return t._inactive}}),S(n,"emitted",{get:function(){return t._events}}),m.set(t,n),t.$parent&&(n.parent=w(t.$parent)),t.$root&&(n.root=w(t.$root)),n}function $(t){return"function"==typeof t&&/native code/.test(t.toString())}var j="undefined"!=typeof Symbol&&$(Symbol)&&"undefined"!=typeof Reflect&&$(Reflect.ownKeys),O=function(t){return t};function S(t,n,e){var r=e.get,o=e.set;Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:r||O,set:o||O})}function k(t,n,e,r){Object.defineProperty(t,n,{value:e,enumerable:!!r,writable:!0,configurable:!0})}function E(t,n){return Object.hasOwnProperty.call(t,n)}function R(t){return Array.isArray(t)}var M,C=Object.prototype.toString,P=function(t){return C.call(t)};function D(t){var n=parseFloat(String(t));return n>=0&&Math.floor(n)===n&&isFinite(t)&&n<=4294967295}function U(t){return null!==t&&"object"==typeof t}function A(t){return"[object Object]"===function(t){return Object.prototype.toString.call(t)}(t)}function B(t){return"function"==typeof t}function W(t,n){return n=n||x()}function T(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 V(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 z(t){return j?Symbol.for(t):t}var F=z("composition-api.preFlushQueue"),K=z("composition-api.postFlushQueue"),I="composition-api.refKey",Q=new WeakMap,q=new WeakMap,G=new WeakMap;function H(t,n,e){var r=h().util;r.warn;var o=r.defineReactive,i=t.__ob__;function u(){i&&U(e)&&!E(e,"__ob__")&&ft(e)}if(R(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),ut(t,n,e),u(),i.dep.notify(),e):(t[n]=e,e)}var J=!1;function L(t){J=t}var N=function(t){S(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&&G.set(o,!0),o}function Y(t){var n;if(Z(t))return t;var e=lt(((n={})[I]=t,n));return X({get:function(){return e[I]},set:function(t){return e[I]=t}})}function Z(t){return t instanceof N}function tt(t){return Z(t)?t.value:t}function nt(t){if(!A(t))return t;var n={};for(var e in t)n[e]=et(t,e);return n}function et(t,n){n in t||H(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&&E(t,"__ob__")&&"object"==typeof t.__ob__&&(null===(n=t.__ob__)||void 0===n?void 0:n.__v_skip))}function ot(t){var n;return Boolean(t&&E(t,"__ob__")&&"object"==typeof t.__ob__&&!(null===(n=t.__ob__)||void 0===n?void 0:n.__v_skip))}function it(t){if(!(!A(t)||rt(t)||R(t)||Z(t)||(n=t,e=h(),e&&n instanceof e)||Q.has(t))){var n,e;Q.set(t,!0);for(var r=Object.keys(t),o=0;o<r.length;o++)ut(t,r[o])}}function ut(t,n,e){if("__ob__"!==n&&!rt(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])}it(e),S(t,n,{get:function(){var o=r?r.call(t):e;return n!==I&&Z(o)?o.value:o},set:function(i){r&&!o||(n!==I&&Z(e)&&!Z(i)?e.value=i:o?(o.call(t,i),e=i):e=i,it(i))}})}}function at(t){var n,e=b();e.observable?n=e.observable(t):n=T(e,{data:{$$state:t}})._data.$$state;return E(n,"__ob__")||ft(n),n}function ft(t,n){var e,o;if(void 0===n&&(n=new Set),!n.has(t)&&!E(t,"__ob__")&&Object.isExtensible(t)){k(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=r(Object.keys(t)),u=i.next();!u.done;u=i.next()){var a=t[u.value];(A(a)||R(a))&&!rt(a)&&Object.isExtensible(a)&&ft(a,n)}}catch(t){e={error:t}}finally{try{u&&!u.done&&(o=i.return)&&o.call(i)}finally{if(e)throw e.error}}}}function ct(){return at({}).__ob__}function st(t){var n,e;if(!U(t))return t;if(!A(t)&&!R(t)||rt(t)||!Object.isExtensible(t))return t;var o=at(R(t)?[]:{}),i=o.__ob__,u=function(n){var e,r,u=t[n],a=Object.getOwnPropertyDescriptor(t,n);if(a){if(!1===a.configurable)return"continue";e=a.get,r=a.set}S(o,n,{get:function(){var t;return null===(t=i.dep)||void 0===t||t.depend(),u},set:function(n){var o;e&&!r||(J||u!==n)&&(r?r.call(t,n):u=n,null===(o=i.dep)||void 0===o||o.notify())}})};try{for(var a=r(Object.keys(t)),f=a.next();!f.done;f=a.next()){u(f.value)}}catch(t){n={error:t}}finally{try{f&&!f.done&&(e=a.return)&&e.call(a)}finally{if(n)throw n.error}}return o}function lt(t){if(!U(t))return t;if(!A(t)&&!R(t)||rt(t)||!Object.isExtensible(t))return t;var n=at(t);return it(n),n}function pt(t){return function(n,e){var r,u=W("on".concat((r=t)[0].toUpperCase()+r.slice(1)),e);return u&&function(t,n,e,r){var u=n.proxy.$options,a=t.config.optionMergeStrategies[e],f=function(t,n){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var u=x();g(t);try{return n.apply(void 0,i([],o(e),!1))}finally{g(u)}}}(n,r);return u[e]=a(u[e],f),f}(h(),u,t,n)}}var vt,dt=pt("beforeMount"),_t=pt("mounted"),yt=pt("beforeUpdate"),ht=pt("updated"),bt=pt("beforeDestroy"),gt=pt("destroyed"),xt=pt("errorCaptured"),mt=pt("activated"),wt=pt("deactivated"),$t=pt("serverPrefetch");function jt(){kt(this,F)}function Ot(){kt(this,K)}function St(){var t=s();return t?function(t){return void 0!==t[F]}(t)||function(t){t[F]=[],t[K]=[],t.$on("hook:beforeUpdate",jt),t.$on("hook:updated",Ot)}(t):(vt||(vt=T(h())),t=vt),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[F].length&&kt(t,F),t[K].length&&kt(t,K)}))};switch(e){case"pre":r(),t[F].push(n);break;case"post":r(),t[K].push(n);break;default:!function(t,n){if(!t)throw new Error("[vue-composition-api] ".concat(n))}(!1,'flush must be one of ["post", "pre", "sync"], but got '.concat(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 u,a,f=r.flush,c="sync"===f,s=function(t){a=function(){try{t()}catch(t){!function(t,n,e){if("undefined"==typeof window||"undefined"==typeof console)throw t;console.error(t)}(t)}}},l=function(){a&&(a(),a=null)},p=function(n){return c||t===vt?n:function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Et(t,(function(){n.apply(void 0,i([],o(e),!1))}),f)}};if(null===e){var v=!1,d=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(!v)try{v=!0,n(s)}finally{v=!1}}),O,{deep:r.deep||!1,sync:c,before:l});Rt(d,l),d.lazy=!1;var _=d.get.bind(d);return d.get=p(_),function(){d.teardown()}}var y,h=r.deep,b=!1;if(Z(n)?y=function(){return n.value}:ot(n)?(y=function(){return n},h=!0):R(n)?(b=!0,y=function(){return n.map((function(t){return Z(t)?t.value:ot(t)?Pt(t):B(t)?t():O}))}):y=B(n)?n:O,h){var g=y;y=function(){return Pt(g())}}var x=function(t,n){if(h||!b||!t.every((function(t,e){return r=t,o=n[e],r===o?0!==r||1/r==1/o:r!=r&&o!=o;var r,o})))return l(),e(t,n,s)},m=p(x);if(r.immediate){var w=m,$=function(t,n){return $=w,x(t,R(t)?[]:n)};m=function(t,n){return $(t,n)}}var j=t.$watch(y,m,{immediate:r.immediate,deep:h,sync:c}),S=t._watchers[t._watchers.length-1];return ot(S.value)&&(null===(u=S.value.__ob__)||void 0===u?void 0:u.dep)&&h&&S.value.__ob__.dep.addSub({update:function(){S.run()}}),Rt(S,l),function(){j()}}function Ct(t,n){var r=function(t){return e({flush:"pre"},t)}(n);return Mt(St(),t,null,r)}function Pt(t,n){if(void 0===n&&(n=new Set),!U(t)||n.has(t)||q.has(t))return t;if(n.add(t),Z(t))Pt(t.value,n);else if(R(t))for(var e=0;e<t.length;e++)Pt(t[e],n);else if("[object Set]"===P(t)||function(t){return"[object Map]"===P(t)}(t))t.forEach((function(t){Pt(t,n)}));else if(A(t))for(var r in t)Pt(t[r],n);return t}var Dt={};function Ut(t,n){for(var e=n;e;){if(e._provided&&E(e._provided,t))return e._provided[t];e=e.$parent}return Dt}var At={},Bt=function(t){var n;void 0===t&&(t="$style");var e=x();if(!e)return At;var r=null===(n=e.proxy)||void 0===n?void 0:n[t];return r||At},Wt=Bt;var Tt;function Vt(){return x().setupContext}var zt={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 Ft(t){var n=zt.get(t,"rawBindings")||{};if(n&&Object.keys(n).length){for(var e=t.$refs,r=zt.get(t,"refs")||[],o=0;o<r.length;o++){var i=n[f=r[o]];!e[f]&&i&&Z(i)&&(i.value=null)}var u=Object.keys(e),a=[];for(o=0;o<u.length;o++){var f;i=n[f=u[o]];e[f]&&i&&Z(i)&&(i.value=e[f],a.push(f))}zt.set(t,"refs",a)}}function Kt(t){for(var n=[t._vnode];n.length;){var e=n.pop();if(e&&(e.context&&Ft(e.context),e.children))for(var r=0;r<e.children.length;++r)n.push(e.children[r])}}function It(t,n){var e,o;if(t){var i=zt.get(t,"attrBindings");if(i||n){if(!i){var u=lt({});i={ctx:n,data:u},zt.set(t,"attrBindings",i),S(n,"attrs",{get:function(){return null==i?void 0:i.data},set:function(){}})}var a=t.$attrs,f=function(n){E(i.data,n)||S(i.data,n,{get:function(){return t.$attrs[n]}})};try{for(var c=r(Object.keys(a)),s=c.next();!s.done;s=c.next()){f(s.value)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(o=c.return)&&o.call(c)}finally{if(e)throw e.error}}}}}function Qt(t,n){var e=t.$options._parentVnode;if(e){for(var r=zt.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[a=r[i]]||delete n[a]}var u=Object.keys(o);for(i=0;i<u.length;i++){var a;n[a=u[i]]||(n[a]=V(t,a))}zt.set(t,"slots",u)}}function qt(t,n,e){var r=x();g(t);try{return n(t)}catch(t){if(!e)throw t;e(t)}finally{g(r)}}function Gt(t){function n(t,e){if(void 0===e&&(e=new Set),!e.has(t)&&A(t)&&!Z(t)&&!ot(t)&&!rt(t)){var r=h().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),R(t)&&ot(t)?(n.set(t,!0),!0):!(!A(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,i=r.render;i&&(r.render=function(){for(var n=this,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return qt(w(t),(function(){return i.apply(n,e)}))});if(!o)return;if(!B(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="$".concat(e);S(n,e,{get:function(){return t[r]},set:function(){}})})),It(t,n),e.forEach((function(e){var r="$".concat(e);S(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),a=w(t);if(a.setupContext=u,k(r,"__ob__",ct()),Qt(t,u.slots),qt(a,(function(){o=i(r,u)})),!o)return;if(B(o)){var f=o;return void(t.$options.render=function(){return Qt(t,u.slots),qt(a,(function(){return f()}))})}if(U(o)){ot(o)&&(o=nt(o)),zt.set(t,"rawBindings",o);var c=o;Object.keys(c).forEach((function(r){var o=c[r];if(!Z(o))if(ot(o))R(o)&&(o=Y(o));else if(B(o)){var i=o;o=o.bind(t),Object.keys(i).forEach((function(t){o[t]=i[t]}))}else U(o)?e(o)&&n(o):o=Y(o);!function(t,n,e){var r=t.$options.props;n in t||r&&E(r,n)||(Z(e)?S(t,n,{get:function(){return e.value},set:function(t){e.value=t}}):S(t,n,{get:function(){return ot(e)&&e.__ob__.dep.depend(),e},set:function(t){e=t}}))}(t,r,o)}))}}(t,t.$props),B(u)?u.call(t,t):u||{}}},mounted:function(){Kt(this)},beforeUpdate:function(){It(this)},updated:function(){Kt(this)}})}function Ht(t,n){if(!t)return n;if(!n)return t;for(var e,r,o,i=j?Reflect.ownKeys(t):Object.keys(t),u=0;u<i.length;u++)"__ob__"!==(e=i[u])&&(r=n[e],o=t[e],E(n,e)?r!==o&&A(r)&&!Z(r)&&A(o)&&!Z(o)&&Ht(o,r):n[e]=o);return n}function Jt(t){(function(t){return v&&E(t,"__composition_api_installed__")})(t)||(t.config.optionMergeStrategies.setup=function(t,n){return function(e,r){return Ht(B(t)?t(e,r)||{}:void 0,B(n)?n(e,r)||{}:void 0)}},function(t){v=t,Object.defineProperty(t,"__composition_api_installed__",{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),exports.EffectScope=f,exports.computed=function(t){var n,e,r,o,i=s();if(B(t)?n=t:(n=t.get,e=t.set),i&&!i.$isServer){var u,a=function(){if(!M){var t=T(h(),{computed:{value:function(){return 0}}}),n=t._computedWatchers.value.constructor,e=t._data.__ob__.dep.constructor;M={Watcher:n,Dep:e},t.$destroy()}return M}(),f=a.Watcher,c=a.Dep;o=function(){return u||(u=new f(i,n,O,{lazy:!0})),u.dirty&&u.evaluate(),c.target&&u.depend(),u.value},r=function(t){e&&e(t)}}else{var l=T(h(),{computed:{$$state:{get:n,set:e}}});i&&i.$on("hook:destroyed",(function(){return l.$destroy()})),o=function(){return l.$$state},r=function(t){l.$$state=t}}return X({get:o,set:r},!e,!0)},exports.createApp=function(t,n){void 0===n&&(n=void 0);var r=h(),o=void 0,i={},u={config:r.config,use:r.use.bind(r),mixin:r.mixin.bind(r),component:r.component.bind(r),provide:function(t,n){return i[t]=n,this},directive:function(t,n){return n?(r.directive(t,n),u):r.directive(t)},mount:function(u,a){return o||((o=new r(e(e({propsData:n},t),{provide:e(e({},i),t.provide)}))).$mount(u,a),o)},unmount:function(){o&&(o.$destroy(),o=void 0)}};return u},exports.createRef=X,exports.customRef=function(t){var n=Y(0);return X(t((function(){n.value}),(function(){++n.value})))},exports.default=Lt,exports.defineAsyncComponent=function(t){B(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 a=t.onError,f=null,c=0,s=function(){var t;return f||(t=f=n().catch((function(t){if(t=t instanceof Error?t:new Error(String(t)),a)return new Promise((function(n,e){a(t,(function(){return n((c++,f=null,s()))}),(function(){return e(t)}),c+1)}));throw t})).then((function(n){return t!==f&&f?f:(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(h().util.warn,R(t)&&D(n))t.splice(n,1);else{var e=t.__ob__;t._isVue||e&&e.vmCount||E(t,n)&&(delete t[n],e&&e.dep.notify())}},exports.effectScope=function(t){return new f(t)},exports.getCurrentInstance=x,exports.getCurrentScope=c,exports.h=function(){for(var t,n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];var r=(null==this?void 0:this.proxy)||(null===(t=x())||void 0===t?void 0:t.proxy);return r?r.$createElement.apply(r,n):(Tt||(Tt=T(h()).$createElement),Tt.apply(Tt,n))},exports.inject=function(t,n,e){var r;void 0===e&&(e=!1);var o=null===(r=x())||void 0===r?void 0:r.proxy;if(o){if(!t)return n;var i=Ut(t,o);return i!==Dt?i:arguments.length>1?e&&B(n)?n():n:void 0}},exports.isRaw=rt,exports.isReactive=ot,exports.isReadonly=function(t){return G.has(t)},exports.isRef=Z,exports.markRaw=function(t){if(!A(t)&&!R(t)||!Object.isExtensible(t))return t;var n=ct();return n.__v_skip=!0,k(t,"__ob__",n),q.set(t,!0),t},exports.nextTick=function(){for(var t,n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return null===(t=h())||void 0===t?void 0:t.nextTick.apply(this,n)},exports.onActivated=mt,exports.onBeforeMount=dt,exports.onBeforeUnmount=bt,exports.onBeforeUpdate=yt,exports.onDeactivated=wt,exports.onErrorCaptured=xt,exports.onMounted=_t,exports.onScopeDispose=function(t){n&&n.cleanups.push(t)},exports.onServerPrefetch=$t,exports.onUnmounted=gt,exports.onUpdated=ht,exports.provide=function(t,n){var e,r=null===(e=W())||void 0===e?void 0:e.proxy;if(r){if(!r._provided){var o={};S(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,o;if(ot(t))return t;var i=lt(((n={})[I]=t,n));k(i,I,i[I],!1);var u=function(t){S(i,t,{get:function(){return Z(i[I][t])?i[I][t].value:i[I][t]},set:function(n){if(Z(i[I][t]))return i[I][t].value=tt(n);i[I][t]=tt(n)}})};try{for(var a=r(Object.keys(t)),f=a.next();!f.done;f=a.next()){u(f.value)}}catch(t){e={error:t}}finally{try{f&&!f.done&&(o=a.return)&&o.call(a)}finally{if(e)throw e.error}}return i},exports.reactive=lt,exports.readonly=function(t){return G.set(t,!0),t},exports.ref=Y,exports.set=H,exports.shallowReactive=st,exports.shallowReadonly=function(t){var n,e;if(!U(t))return t;if(!A(t)&&!R(t)||!Object.isExtensible(t)&&!Z(t))return t;var o=Z(t)?new N({}):ot(t)?at({}):{},i=lt({}).__ob__,u=function(n){var e,r=t[n],u=Object.getOwnPropertyDescriptor(t,n);if(u){if(!1===u.configurable&&!Z(t))return"continue";e=u.get}S(o,n,{get:function(){var n=e?e.call(t):r;return i.dep.depend(),n},set:function(t){}})};try{for(var a=r(Object.keys(t)),f=a.next();!f.done;f=a.next()){u(f.value)}}catch(t){n={error:t}}finally{try{f&&!f.done&&(e=a.return)&&e.call(a)}finally{if(n)throw n.error}}return G.set(o,!0),o},exports.shallowRef=function(t){var n;if(Z(t))return t;var e=st(((n={})[I]=t,n));return X({get:function(){return e[I]},set:function(t){return e[I]=t}})},exports.toRaw=function(t){var n;return rt(t)||!Object.isExtensible(t)?t:(null===(n=null==t?void 0:t.__ob__)||void 0===n?void 0:n.value)||t},exports.toRef=et,exports.toRefs=nt,exports.triggerRef=function(t){Z(t)&&(L(!0),t.value=t.value,L(!1))},exports.unref=tt,exports.useAttrs=function(){return Vt().attrs},exports.useCSSModule=Wt,exports.useCssModule=Bt,exports.useSlots=function(){return Vt().slots},exports.version="1.6.3",exports.warn=function(t){var n,e,r,o;e=t,r=null===(n=x())||void 0===n?void 0:n.proxy,(o=b())&&o.util?o.util.warn(e,r):console.warn("[vue-composition-api] ".concat(e))},exports.watch=function(t,n,r){var o=null;B(n)?o=n:(r=n,o=null);var i=function(t){return e({immediate:!1,deep:!1,flush:"pre"},t)}(r);return Mt(St(),t,o,i)},exports.watchEffect=Ct,exports.watchPostEffect=function(t){return Ct(t,{flush:"post"})},exports.watchSyncEffect=function(t){return Ct(t,{flush:"sync"})}; | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=function(n,e){return t=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])},t(n,e)};var n,e=function(){return e=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},e.apply(this,arguments)};function r(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 o(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 i(t,n,e){if(e||2===arguments.length)for(var r,o=0,i=n.length;o<i;o++)!r&&o in n||(r||(r=Array.prototype.slice.call(n,0,o)),r[o]=n[o]);return t.concat(r||Array.prototype.slice.call(n))}var u=[],a=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&&(u.push(this),n=this)},t.prototype.off=function(){this.active&&(u.pop(),n=u[u.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}(),f=function(e){function r(t){void 0===t&&(t=!1);var r,o=void 0;return function(t){var n=_;_=!1;try{t()}finally{_=n}}((function(){o=T(h())})),r=e.call(this,o)||this,t||function(t,e){var r;if((e=e||n)&&e.active)return void e.effects.push(t);var o=null===(r=x())||void 0===r?void 0:r.proxy;o&&o.$on("hook:destroyed",(function(){return t.stop()}))}(r),r}return function(n,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=n}t(n,e),n.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}(r,e),r}(a);function c(){return n}function s(){var t,n;return(null===(t=c())||void 0===t?void 0:t.vm)||(null===(n=x())||void 0===n?void 0:n.proxy)}var l=void 0;try{var p=require("vue");p&&y(p)?l=p:p&&"default"in p&&y(p.default)&&(l=p.default)}catch(t){}var v=null,d=null,_=!0;function y(t){return t&&B(t)&&"Vue"===t.name}function h(){return v}function b(){return v||l}function g(t){if(_){var n=d;null==n||n.scope.off(),null==(d=t)||d.scope.on()}}function x(){return d}var m=new WeakMap;function w(t){if(m.has(t))return m.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 a(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){S(n,e,{get:function(){return t["$".concat(e)]}})})),S(n,"isMounted",{get:function(){return t._isMounted}}),S(n,"isUnmounted",{get:function(){return t._isDestroyed}}),S(n,"isDeactivated",{get:function(){return t._inactive}}),S(n,"emitted",{get:function(){return t._events}}),m.set(t,n),t.$parent&&(n.parent=w(t.$parent)),t.$root&&(n.root=w(t.$root)),n}function $(t){return"function"==typeof t&&/native code/.test(t.toString())}var j="undefined"!=typeof Symbol&&$(Symbol)&&"undefined"!=typeof Reflect&&$(Reflect.ownKeys),O=function(t){return t};function S(t,n,e){var r=e.get,o=e.set;Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:r||O,set:o||O})}function k(t,n,e,r){Object.defineProperty(t,n,{value:e,enumerable:!!r,writable:!0,configurable:!0})}function E(t,n){return Object.hasOwnProperty.call(t,n)}function R(t){return Array.isArray(t)}var M,C=Object.prototype.toString,P=function(t){return C.call(t)};function D(t){var n=parseFloat(String(t));return n>=0&&Math.floor(n)===n&&isFinite(t)&&n<=4294967295}function U(t){return null!==t&&"object"==typeof t}function A(t){return"[object Object]"===function(t){return Object.prototype.toString.call(t)}(t)}function B(t){return"function"==typeof t}function W(t,n){return n=n||x()}function T(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 V(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 z(t){return j?Symbol.for(t):t}var F=z("composition-api.preFlushQueue"),K=z("composition-api.postFlushQueue"),I="composition-api.refKey",Q=new WeakMap,q=new WeakMap,G=new WeakMap;function H(t,n,e){var r=h().util;r.warn;var o=r.defineReactive,i=t.__ob__;function u(){i&&U(e)&&!E(e,"__ob__")&&ft(e)}if(R(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),ut(t,n,e),u(),i.dep.notify(),e):(t[n]=e,e)}var J=!1;function L(t){J=t}var N=function(t){S(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&&G.set(o,!0),o}function Y(t){var n;if(Z(t))return t;var e=lt(((n={})[I]=t,n));return X({get:function(){return e[I]},set:function(t){return e[I]=t}})}function Z(t){return t instanceof N}function tt(t){return Z(t)?t.value:t}function nt(t){if(!A(t))return t;var n={};for(var e in t)n[e]=et(t,e);return n}function et(t,n){n in t||H(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&&E(t,"__ob__")&&"object"==typeof t.__ob__&&(null===(n=t.__ob__)||void 0===n?void 0:n.__v_skip))}function ot(t){var n;return Boolean(t&&E(t,"__ob__")&&"object"==typeof t.__ob__&&!(null===(n=t.__ob__)||void 0===n?void 0:n.__v_skip))}function it(t){if(!(!A(t)||rt(t)||R(t)||Z(t)||(n=t,e=h(),e&&n instanceof e)||Q.has(t))){var n,e;Q.set(t,!0);for(var r=Object.keys(t),o=0;o<r.length;o++)ut(t,r[o])}}function ut(t,n,e){if("__ob__"!==n&&!rt(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])}it(e),S(t,n,{get:function(){var o=r?r.call(t):e;return n!==I&&Z(o)?o.value:o},set:function(i){r&&!o||(n!==I&&Z(e)&&!Z(i)?e.value=i:o?(o.call(t,i),e=i):e=i,it(i))}})}}function at(t){var n,e=b();e.observable?n=e.observable(t):n=T(e,{data:{$$state:t}})._data.$$state;return E(n,"__ob__")||ft(n),n}function ft(t,n){var e,o;if(void 0===n&&(n=new Set),!n.has(t)&&!E(t,"__ob__")&&Object.isExtensible(t)){k(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=r(Object.keys(t)),u=i.next();!u.done;u=i.next()){var a=t[u.value];(A(a)||R(a))&&!rt(a)&&Object.isExtensible(a)&&ft(a,n)}}catch(t){e={error:t}}finally{try{u&&!u.done&&(o=i.return)&&o.call(i)}finally{if(e)throw e.error}}}}function ct(){return at({}).__ob__}function st(t){var n,e;if(!U(t))return t;if(!A(t)&&!R(t)||rt(t)||!Object.isExtensible(t))return t;var o=at(R(t)?[]:{}),i=o.__ob__,u=function(n){var e,r,u=t[n],a=Object.getOwnPropertyDescriptor(t,n);if(a){if(!1===a.configurable)return"continue";e=a.get,r=a.set}S(o,n,{get:function(){var t;return null===(t=i.dep)||void 0===t||t.depend(),u},set:function(n){var o;e&&!r||(J||u!==n)&&(r?r.call(t,n):u=n,null===(o=i.dep)||void 0===o||o.notify())}})};try{for(var a=r(Object.keys(t)),f=a.next();!f.done;f=a.next()){u(f.value)}}catch(t){n={error:t}}finally{try{f&&!f.done&&(e=a.return)&&e.call(a)}finally{if(n)throw n.error}}return o}function lt(t){if(!U(t))return t;if(!A(t)&&!R(t)||rt(t)||!Object.isExtensible(t))return t;var n=at(t);return it(n),n}function pt(t){return function(n,e){var r,u=W("on".concat((r=t)[0].toUpperCase()+r.slice(1)),e);return u&&function(t,n,e,r){var u=n.proxy.$options,a=t.config.optionMergeStrategies[e],f=function(t,n){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var u=x();g(t);try{return n.apply(void 0,i([],o(e),!1))}finally{g(u)}}}(n,r);return u[e]=a(u[e],f),f}(h(),u,t,n)}}var vt,dt=pt("beforeMount"),_t=pt("mounted"),yt=pt("beforeUpdate"),ht=pt("updated"),bt=pt("beforeDestroy"),gt=pt("destroyed"),xt=pt("errorCaptured"),mt=pt("activated"),wt=pt("deactivated"),$t=pt("serverPrefetch");function jt(){kt(this,F)}function Ot(){kt(this,K)}function St(){var t=s();return t?function(t){return void 0!==t[F]}(t)||function(t){t[F]=[],t[K]=[],t.$on("hook:beforeUpdate",jt),t.$on("hook:updated",Ot)}(t):(vt||(vt=T(h())),t=vt),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[F].length&&kt(t,F),t[K].length&&kt(t,K)}))};switch(e){case"pre":r(),t[F].push(n);break;case"post":r(),t[K].push(n);break;default:!function(t,n){if(!t)throw new Error("[vue-composition-api] ".concat(n))}(!1,'flush must be one of ["post", "pre", "sync"], but got '.concat(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 u,a,f=r.flush,c="sync"===f,s=function(t){a=function(){try{t()}catch(t){!function(t,n,e){if("undefined"==typeof window||"undefined"==typeof console)throw t;console.error(t)}(t)}}},l=function(){a&&(a(),a=null)},p=function(n){return c||t===vt?n:function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Et(t,(function(){n.apply(void 0,i([],o(e),!1))}),f)}};if(null===e){var v=!1,d=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(!v)try{v=!0,n(s)}finally{v=!1}}),O,{deep:r.deep||!1,sync:c,before:l});Rt(d,l),d.lazy=!1;var _=d.get.bind(d);return d.get=p(_),function(){d.teardown()}}var y,h=r.deep,b=!1;if(Z(n)?y=function(){return n.value}:ot(n)?(y=function(){return n},h=!0):R(n)?(b=!0,y=function(){return n.map((function(t){return Z(t)?t.value:ot(t)?Pt(t):B(t)?t():O}))}):y=B(n)?n:O,h){var g=y;y=function(){return Pt(g())}}var x=function(t,n){if(h||!b||!t.every((function(t,e){return r=t,o=n[e],r===o?0!==r||1/r==1/o:r!=r&&o!=o;var r,o})))return l(),e(t,n,s)},m=p(x);if(r.immediate){var w=m,$=function(t,n){return $=w,x(t,R(t)?[]:n)};m=function(t,n){return $(t,n)}}var j=t.$watch(y,m,{immediate:r.immediate,deep:h,sync:c}),S=t._watchers[t._watchers.length-1];return ot(S.value)&&(null===(u=S.value.__ob__)||void 0===u?void 0:u.dep)&&h&&S.value.__ob__.dep.addSub({update:function(){S.run()}}),Rt(S,l),function(){j()}}function Ct(t,n){var r=function(t){return e({flush:"pre"},t)}(n);return Mt(St(),t,null,r)}function Pt(t,n){if(void 0===n&&(n=new Set),!U(t)||n.has(t)||q.has(t))return t;if(n.add(t),Z(t))Pt(t.value,n);else if(R(t))for(var e=0;e<t.length;e++)Pt(t[e],n);else if("[object Set]"===P(t)||function(t){return"[object Map]"===P(t)}(t))t.forEach((function(t){Pt(t,n)}));else if(A(t))for(var r in t)Pt(t[r],n);return t}var Dt={};function Ut(t,n){for(var e=n;e;){if(e._provided&&E(e._provided,t))return e._provided[t];e=e.$parent}return Dt}var At={},Bt=function(t){var n;void 0===t&&(t="$style");var e=x();if(!e)return At;var r=null===(n=e.proxy)||void 0===n?void 0:n[t];return r||At},Wt=Bt;var Tt;function Vt(){return x().setupContext}var zt={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 Ft(t){var n=zt.get(t,"rawBindings")||{};if(n&&Object.keys(n).length){for(var e=t.$refs,r=zt.get(t,"refs")||[],o=0;o<r.length;o++){var i=n[f=r[o]];!e[f]&&i&&Z(i)&&(i.value=null)}var u=Object.keys(e),a=[];for(o=0;o<u.length;o++){var f;i=n[f=u[o]];e[f]&&i&&Z(i)&&(i.value=e[f],a.push(f))}zt.set(t,"refs",a)}}function Kt(t){for(var n=[t._vnode];n.length;){var e=n.pop();if(e&&(e.context&&Ft(e.context),e.children))for(var r=0;r<e.children.length;++r)n.push(e.children[r])}}function It(t,n){var e,o;if(t){var i=zt.get(t,"attrBindings");if(i||n){if(!i){var u=lt({});i={ctx:n,data:u},zt.set(t,"attrBindings",i),S(n,"attrs",{get:function(){return null==i?void 0:i.data},set:function(){}})}var a=t.$attrs,f=function(n){E(i.data,n)||S(i.data,n,{get:function(){return t.$attrs[n]}})};try{for(var c=r(Object.keys(a)),s=c.next();!s.done;s=c.next()){f(s.value)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(o=c.return)&&o.call(c)}finally{if(e)throw e.error}}}}}function Qt(t,n){var e=t.$options._parentVnode;if(e){for(var r=zt.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[a=r[i]]||delete n[a]}var u=Object.keys(o);for(i=0;i<u.length;i++){var a;n[a=u[i]]||(n[a]=V(t,a))}zt.set(t,"slots",u)}}function qt(t,n,e){var r=x();g(t);try{return n(t)}catch(t){if(!e)throw t;e(t)}finally{g(r)}}function Gt(t){function n(t,e){if(void 0===e&&(e=new Set),!e.has(t)&&A(t)&&!Z(t)&&!ot(t)&&!rt(t)){var r=h().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),R(t)&&ot(t)?(n.set(t,!0),!0):!(!A(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,i=r.render;i&&(r.render=function(){for(var n=this,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return qt(w(t),(function(){return i.apply(n,e)}))});if(!o)return;if(!B(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="$".concat(e);S(n,e,{get:function(){return t[r]},set:function(){}})})),It(t,n),e.forEach((function(e){var r="$".concat(e);S(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),a=w(t);if(a.setupContext=u,k(r,"__ob__",ct()),Qt(t,u.slots),qt(a,(function(){o=i(r,u)})),!o)return;if(B(o)){var f=o;return void(t.$options.render=function(){return Qt(t,u.slots),qt(a,(function(){return f()}))})}if(U(o)){ot(o)&&(o=nt(o)),zt.set(t,"rawBindings",o);var c=o;Object.keys(c).forEach((function(r){var o=c[r];if(!Z(o))if(ot(o))R(o)&&(o=Y(o));else if(B(o)){var i=o;o=o.bind(t),Object.keys(i).forEach((function(t){o[t]=i[t]}))}else U(o)?e(o)&&n(o):o=Y(o);!function(t,n,e){var r=t.$options.props;n in t||r&&E(r,n)||(Z(e)?S(t,n,{get:function(){return e.value},set:function(t){e.value=t}}):S(t,n,{get:function(){return ot(e)&&e.__ob__.dep.depend(),e},set:function(t){e=t}}))}(t,r,o)}))}}(t,t.$props),B(u)?u.call(t,t):u||{}}},mounted:function(){Kt(this)},beforeUpdate:function(){It(this)},updated:function(){Kt(this)}})}function Ht(t,n){if(!t)return n;if(!n)return t;for(var e,r,o,i=j?Reflect.ownKeys(t):Object.keys(t),u=0;u<i.length;u++)"__ob__"!==(e=i[u])&&(r=n[e],o=t[e],E(n,e)?r!==o&&A(r)&&!Z(r)&&A(o)&&!Z(o)&&Ht(o,r):n[e]=o);return n}function Jt(t){(function(t){return v&&E(t,"__composition_api_installed__")})(t)||(t.config.optionMergeStrategies.setup=function(t,n){return function(e,r){return Ht(B(t)?t(e,r)||{}:void 0,B(n)?n(e,r)||{}:void 0)}},function(t){v=t,Object.defineProperty(t,"__composition_api_installed__",{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),exports.EffectScope=f,exports.computed=function(t){var n,e,r,o,i=s();if(B(t)?n=t:(n=t.get,e=t.set),i&&!i.$isServer){var u,a=function(){if(!M){var t=T(h(),{computed:{value:function(){return 0}}}),n=t._computedWatchers.value.constructor,e=t._data.__ob__.dep.constructor;M={Watcher:n,Dep:e},t.$destroy()}return M}(),f=a.Watcher,c=a.Dep;o=function(){return u||(u=new f(i,n,O,{lazy:!0})),u.dirty&&u.evaluate(),c.target&&u.depend(),u.value},r=function(t){e&&e(t)}}else{var l=T(h(),{computed:{$$state:{get:n,set:e}}});i&&i.$on("hook:destroyed",(function(){return l.$destroy()})),o=function(){return l.$$state},r=function(t){l.$$state=t}}return X({get:o,set:r},!e,!0)},exports.createApp=function(t,n){void 0===n&&(n=void 0);var r=h(),o=void 0,i={},u={config:r.config,use:r.use.bind(r),mixin:r.mixin.bind(r),component:r.component.bind(r),provide:function(t,n){return i[t]=n,this},directive:function(t,n){return n?(r.directive(t,n),u):r.directive(t)},mount:function(u,a){return o||((o=new r(e(e({propsData:n},t),{provide:e(e({},i),t.provide)}))).$mount(u,a),o)},unmount:function(){o&&(o.$destroy(),o=void 0)}};return u},exports.createRef=X,exports.customRef=function(t){var n=Y(0);return X(t((function(){n.value}),(function(){++n.value})))},exports.default=Lt,exports.defineAsyncComponent=function(t){B(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 a=t.onError,f=null,c=0,s=function(){var t;return f||(t=f=n().catch((function(t){if(t=t instanceof Error?t:new Error(String(t)),a)return new Promise((function(n,e){a(t,(function(){return n((c++,f=null,s()))}),(function(){return e(t)}),c+1)}));throw t})).then((function(n){return t!==f&&f?f:(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(h().util.warn,R(t)&&D(n))t.splice(n,1);else{var e=t.__ob__;t._isVue||e&&e.vmCount||E(t,n)&&(delete t[n],e&&e.dep.notify())}},exports.effectScope=function(t){return new f(t)},exports.getCurrentInstance=x,exports.getCurrentScope=c,exports.h=function(){for(var t,n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];var r=(null==this?void 0:this.proxy)||(null===(t=x())||void 0===t?void 0:t.proxy);return r?r.$createElement.apply(r,n):(Tt||(Tt=T(h()).$createElement),Tt.apply(Tt,n))},exports.inject=function(t,n,e){var r;void 0===e&&(e=!1);var o=null===(r=x())||void 0===r?void 0:r.proxy;if(o){if(!t)return n;var i=Ut(t,o);return i!==Dt?i:arguments.length>1?e&&B(n)?n():n:void 0}},exports.isRaw=rt,exports.isReactive=ot,exports.isReadonly=function(t){return G.has(t)},exports.isRef=Z,exports.markRaw=function(t){if(!A(t)&&!R(t)||!Object.isExtensible(t))return t;var n=ct();return n.__v_skip=!0,k(t,"__ob__",n),q.set(t,!0),t},exports.nextTick=function(){for(var t,n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return null===(t=h())||void 0===t?void 0:t.nextTick.apply(this,n)},exports.onActivated=mt,exports.onBeforeMount=dt,exports.onBeforeUnmount=bt,exports.onBeforeUpdate=yt,exports.onDeactivated=wt,exports.onErrorCaptured=xt,exports.onMounted=_t,exports.onScopeDispose=function(t){n&&n.cleanups.push(t)},exports.onServerPrefetch=$t,exports.onUnmounted=gt,exports.onUpdated=ht,exports.provide=function(t,n){var e,r=null===(e=W())||void 0===e?void 0:e.proxy;if(r){if(!r._provided){var o={};S(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,o;if(ot(t))return t;var i=lt(((n={})[I]=t,n));k(i,I,i[I],!1);var u=function(t){S(i,t,{get:function(){return Z(i[I][t])?i[I][t].value:i[I][t]},set:function(n){if(Z(i[I][t]))return i[I][t].value=tt(n);i[I][t]=tt(n)}})};try{for(var a=r(Object.keys(t)),f=a.next();!f.done;f=a.next()){u(f.value)}}catch(t){e={error:t}}finally{try{f&&!f.done&&(o=a.return)&&o.call(a)}finally{if(e)throw e.error}}return i},exports.reactive=lt,exports.readonly=function(t){return G.set(t,!0),t},exports.ref=Y,exports.set=H,exports.shallowReactive=st,exports.shallowReadonly=function(t){var n,e;if(!U(t))return t;if(!A(t)&&!R(t)||!Object.isExtensible(t)&&!Z(t))return t;var o=Z(t)?new N({}):ot(t)?at({}):{},i=lt({}).__ob__,u=function(n){var e,r=t[n],u=Object.getOwnPropertyDescriptor(t,n);if(u){if(!1===u.configurable&&!Z(t))return"continue";e=u.get}S(o,n,{get:function(){var n=e?e.call(t):r;return i.dep.depend(),n},set:function(t){}})};try{for(var a=r(Object.keys(t)),f=a.next();!f.done;f=a.next()){u(f.value)}}catch(t){n={error:t}}finally{try{f&&!f.done&&(e=a.return)&&e.call(a)}finally{if(n)throw n.error}}return G.set(o,!0),o},exports.shallowRef=function(t){var n;if(Z(t))return t;var e=st(((n={})[I]=t,n));return X({get:function(){return e[I]},set:function(t){return e[I]=t}})},exports.toRaw=function(t){var n;return rt(t)||!Object.isExtensible(t)?t:(null===(n=null==t?void 0:t.__ob__)||void 0===n?void 0:n.value)||t},exports.toRef=et,exports.toRefs=nt,exports.triggerRef=function(t){Z(t)&&(L(!0),t.value=t.value,L(!1))},exports.unref=tt,exports.useAttrs=function(){return Vt().attrs},exports.useCSSModule=Wt,exports.useCssModule=Bt,exports.useSlots=function(){return Vt().slots},exports.version="1.7.0",exports.warn=function(t){var n,e,r,o;e=t,r=null===(n=x())||void 0===n?void 0:n.proxy,(o=b())&&o.util?o.util.warn(e,r):console.warn("[vue-composition-api] ".concat(e))},exports.watch=function(t,n,r){var o=null;B(n)?o=n:(r=n,o=null);var i=function(t){return e({immediate:!1,deep:!1,flush:"pre"},t)}(r);return Mt(St(),t,o,i)},exports.watchEffect=Ct,exports.watchPostEffect=function(t){return Ct(t,{flush:"post"})},exports.watchSyncEffect=function(t){return Ct(t,{flush:"sync"})}; |
@@ -1,1 +0,1 @@ | ||
!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((n="undefined"!=typeof globalThis?globalThis:n||self).VueCompositionAPI={})}(this,(function(n){"use strict";var t=function(n,e){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e])},t(n,e)};var e,r=function(){return r=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var o in t=arguments[e])Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n},r.apply(this,arguments)};function o(n){var t="function"==typeof Symbol&&Symbol.iterator,e=t&&n[t],r=0;if(e)return e.call(n);if(n&&"number"==typeof n.length)return{next:function(){return n&&r>=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function i(n,t){var e="function"==typeof Symbol&&n[Symbol.iterator];if(!e)return n;var r,o,i=e.call(n),u=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)u.push(r.value)}catch(n){o={error:n}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(o)throw o.error}}return u}function u(n,t,e){if(e||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return n.concat(r||Array.prototype.slice.call(t))}var f=[],a=function(){function n(n){this.active=!0,this.effects=[],this.cleanups=[],this.vm=n}return n.prototype.run=function(n){if(this.active)try{return this.on(),n()}finally{this.off()}},n.prototype.on=function(){this.active&&(f.push(this),e=this)},n.prototype.off=function(){this.active&&(f.pop(),e=f[f.length-1])},n.prototype.stop=function(){this.active&&(this.vm.$destroy(),this.effects.forEach((function(n){return n.stop()})),this.cleanups.forEach((function(n){return n()})),this.active=!1)},n}(),c=function(n){function r(t){void 0===t&&(t=!1);var r,o=void 0;return function(n){var t=_;_=!1;try{n()}finally{_=t}}((function(){o=z(g())})),r=n.call(this,o)||this,t||function(n,t){var r;if((t=t||e)&&t.active)return void t.effects.push(n);var o=null===(r=$())||void 0===r?void 0:r.proxy;o&&o.$on("hook:destroyed",(function(){return n.stop()}))}(r),r}return function(n,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=n}t(n,e),n.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}(r,n),r}(a);function l(){return e}function s(){var n,t;return(null===(n=l())||void 0===n?void 0:n.vm)||(null===(t=$())||void 0===t?void 0:t.proxy)}var v=void 0;try{var d=require("vue");d&&b(d)?v=d:d&&"default"in d&&b(d.default)&&(v=d.default)}catch(n){}var p=null,y=null,_=!0,h="__composition_api_installed__";function b(n){return n&&V(n)&&"Vue"===n.name}function g(){return p}function m(){return p||v}function w(n){if(_){var t=y;null==t||t.scope.off(),null==(y=n)||y.scope.on()}}function $(){return y}var j=new WeakMap;function x(n){if(j.has(n))return j.get(n);var t={proxy:n,update:n.$forceUpdate,type:n.$options,uid:n._uid,emit:n.$emit.bind(n),parent:null,root:null};!function(n){if(!n.scope){var t=new a(n.proxy);n.scope=t,n.proxy.$on("hook:destroyed",(function(){return t.stop()}))}n.scope}(t);return["data","props","attrs","refs","vnode","slots"].forEach((function(e){E(t,e,{get:function(){return n["$".concat(e)]}})})),E(t,"isMounted",{get:function(){return n._isMounted}}),E(t,"isUnmounted",{get:function(){return n._isDestroyed}}),E(t,"isDeactivated",{get:function(){return n._inactive}}),E(t,"emitted",{get:function(){return n._events}}),j.set(n,t),n.$parent&&(t.parent=x(n.$parent)),n.$root&&(t.root=x(n.$root)),t}function O(n){return"function"==typeof n&&/native code/.test(n.toString())}var S="undefined"!=typeof Symbol&&O(Symbol)&&"undefined"!=typeof Reflect&&O(Reflect.ownKeys),k=function(n){return n};function E(n,t,e){var r=e.get,o=e.set;Object.defineProperty(n,t,{enumerable:!0,configurable:!0,get:r||k,set:o||k})}function R(n,t,e,r){Object.defineProperty(n,t,{value:e,enumerable:!!r,writable:!0,configurable:!0})}function C(n,t){return Object.hasOwnProperty.call(n,t)}function M(n){return Array.isArray(n)}var P,D=Object.prototype.toString,A=function(n){return D.call(n)};function U(n){var t=parseFloat(String(n));return t>=0&&Math.floor(t)===t&&isFinite(n)&&t<=4294967295}function B(n){return null!==n&&"object"==typeof n}function T(n){return"[object Object]"===function(n){return Object.prototype.toString.call(n)}(n)}function V(n){return"function"==typeof n}function W(n,t){return t=t||$()}function z(n,t){void 0===t&&(t={});var e=n.config.silent;n.config.silent=!0;var r=new n(t);return n.config.silent=e,r}function F(n,t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(n.$scopedSlots[t])return n.$scopedSlots[t].apply(n,e)}}function I(n){return S?Symbol.for(n):n}var K=I("composition-api.preFlushQueue"),Q=I("composition-api.postFlushQueue"),q="composition-api.refKey",G=new WeakMap,H=new WeakMap,J=new WeakMap;function L(n,t,e){var r=g().util;r.warn;var o=r.defineReactive,i=n.__ob__;function u(){i&&B(e)&&!C(e,"__ob__")&&sn(e)}if(M(n)){if(U(t))return n.length=Math.max(n.length,t),n.splice(t,1,e),u(),e;if("length"===t&&e!==n.length)return n.length=e,null==i||i.dep.notify(),e}return t in n&&!(t in Object.prototype)?(n[t]=e,u(),e):n._isVue||i&&i.vmCount?e:i?(o(i.value,t,e),cn(n,t,e),u(),i.dep.notify(),e):(n[t]=e,e)}var N=!1;function X(n){N=n}var Y=function(n){E(this,"value",{get:n.get,set:n.set})};function Z(n,t,e){void 0===t&&(t=!1),void 0===e&&(e=!1);var r=new Y(n);e&&(r.effect=!0);var o=Object.seal(r);return t&&J.set(o,!0),o}function nn(n){var t;if(tn(n))return n;var e=pn(((t={})[q]=n,t));return Z({get:function(){return e[q]},set:function(n){return e[q]=n}})}function tn(n){return n instanceof Y}function en(n){return tn(n)?n.value:n}function rn(n){if(!T(n))return n;var t={};for(var e in n)t[e]=on(n,e);return t}function on(n,t){t in n||L(n,t,void 0);var e=n[t];return tn(e)?e:Z({get:function(){return n[t]},set:function(e){return n[t]=e}})}function un(n){var t;return Boolean(n&&C(n,"__ob__")&&"object"==typeof n.__ob__&&(null===(t=n.__ob__)||void 0===t?void 0:t.__v_skip))}function fn(n){var t;return Boolean(n&&C(n,"__ob__")&&"object"==typeof n.__ob__&&!(null===(t=n.__ob__)||void 0===t?void 0:t.__v_skip))}function an(n){if(!(!T(n)||un(n)||M(n)||tn(n)||(t=n,e=g(),e&&t instanceof e)||G.has(n))){var t,e;G.set(n,!0);for(var r=Object.keys(n),o=0;o<r.length;o++)cn(n,r[o])}}function cn(n,t,e){if("__ob__"!==t&&!un(n[t])){var r,o,i=Object.getOwnPropertyDescriptor(n,t);if(i){if(!1===i.configurable)return;r=i.get,o=i.set,r&&!o||2!==arguments.length||(e=n[t])}an(e),E(n,t,{get:function(){var o=r?r.call(n):e;return t!==q&&tn(o)?o.value:o},set:function(i){r&&!o||(t!==q&&tn(e)&&!tn(i)?e.value=i:o?(o.call(n,i),e=i):e=i,an(i))}})}}function ln(n){var t,e=m();e.observable?t=e.observable(n):t=z(e,{data:{$$state:n}})._data.$$state;return C(t,"__ob__")||sn(t),t}function sn(n,t){var e,r;if(void 0===t&&(t=new Set),!t.has(n)&&!C(n,"__ob__")&&Object.isExtensible(n)){R(n,"__ob__",function(n){void 0===n&&(n={});return{value:n,dep:{notify:k,depend:k,addSub:k,removeSub:k}}}(n)),t.add(n);try{for(var i=o(Object.keys(n)),u=i.next();!u.done;u=i.next()){var f=n[u.value];(T(f)||M(f))&&!un(f)&&Object.isExtensible(f)&&sn(f,t)}}catch(n){e={error:n}}finally{try{u&&!u.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}}}function vn(){return ln({}).__ob__}function dn(n){var t,e;if(!B(n))return n;if(!T(n)&&!M(n)||un(n)||!Object.isExtensible(n))return n;var r=ln(M(n)?[]:{}),i=r.__ob__,u=function(t){var e,o,u=n[t],f=Object.getOwnPropertyDescriptor(n,t);if(f){if(!1===f.configurable)return"continue";e=f.get,o=f.set}E(r,t,{get:function(){var n;return null===(n=i.dep)||void 0===n||n.depend(),u},set:function(t){var r;e&&!o||(N||u!==t)&&(o?o.call(n,t):u=t,null===(r=i.dep)||void 0===r||r.notify())}})};try{for(var f=o(Object.keys(n)),a=f.next();!a.done;a=f.next()){u(a.value)}}catch(n){t={error:n}}finally{try{a&&!a.done&&(e=f.return)&&e.call(f)}finally{if(t)throw t.error}}return r}function pn(n){if(!B(n))return n;if(!T(n)&&!M(n)||un(n)||!Object.isExtensible(n))return n;var t=ln(n);return an(t),t}function yn(n){return function(t,e){var r,o=W("on".concat((r=n)[0].toUpperCase()+r.slice(1)),e);return o&&function(n,t,e,r){var o=t.proxy.$options,f=n.config.optionMergeStrategies[e],a=function(n,t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var o=$();w(n);try{return t.apply(void 0,u([],i(e),!1))}finally{w(o)}}}(t,r);return o[e]=f(o[e],a),a}(g(),o,n,t)}}var _n,hn=yn("beforeMount"),bn=yn("mounted"),gn=yn("beforeUpdate"),mn=yn("updated"),wn=yn("beforeDestroy"),$n=yn("destroyed"),jn=yn("errorCaptured"),xn=yn("activated"),On=yn("deactivated"),Sn=yn("serverPrefetch");function kn(){Cn(this,K)}function En(){Cn(this,Q)}function Rn(){var n=s();return n?function(n){return void 0!==n[K]}(n)||function(n){n[K]=[],n[Q]=[],n.$on("hook:beforeUpdate",kn),n.$on("hook:updated",En)}(n):(_n||(_n=z(g())),n=_n),n}function Cn(n,t){for(var e=n[t],r=0;r<e.length;r++)e[r]();e.length=0}function Mn(n,t,e){var r=function(){n.$nextTick((function(){n[K].length&&Cn(n,K),n[Q].length&&Cn(n,Q)}))};switch(e){case"pre":r(),n[K].push(t);break;case"post":r(),n[Q].push(t);break;default:!function(n,t){if(!n)throw new Error("[vue-composition-api] ".concat(t))}(!1,'flush must be one of ["post", "pre", "sync"], but got '.concat(e))}}function Pn(n,t){var e=n.teardown;n.teardown=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];e.apply(n,r),t()}}function Dn(n,t,e,r){var o,f,a=r.flush,c="sync"===a,l=function(n){f=function(){try{n()}catch(n){!function(n,t,e){if("undefined"==typeof window||"undefined"==typeof console)throw n;console.error(n)}(n)}}},s=function(){f&&(f(),f=null)},v=function(t){return c||n===_n?t:function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Mn(n,(function(){t.apply(void 0,u([],i(e),!1))}),a)}};if(null===e){var d=!1,p=function(n,t,e,r){var o=n._watchers.length;return n.$watch(t,e,{immediate:r.immediateInvokeCallback,deep:r.deep,lazy:r.noRun,sync:r.sync,before:r.before}),n._watchers[o]}(n,(function(){if(!d)try{d=!0,t(l)}finally{d=!1}}),k,{deep:r.deep||!1,sync:c,before:s});Pn(p,s),p.lazy=!1;var y=p.get.bind(p);return p.get=v(y),function(){p.teardown()}}var _,h=r.deep,b=!1;if(tn(t)?_=function(){return t.value}:fn(t)?(_=function(){return t},h=!0):M(t)?(b=!0,_=function(){return t.map((function(n){return tn(n)?n.value:fn(n)?Un(n):V(n)?n():k}))}):_=V(t)?t:k,h){var g=_;_=function(){return Un(g())}}var m=function(n,t){if(h||!b||!n.every((function(n,e){return r=n,o=t[e],r===o?0!==r||1/r==1/o:r!=r&&o!=o;var r,o})))return s(),e(n,t,l)},w=v(m);if(r.immediate){var $=w,j=function(n,t){return j=$,m(n,M(n)?[]:t)};w=function(n,t){return j(n,t)}}var x=n.$watch(_,w,{immediate:r.immediate,deep:h,sync:c}),O=n._watchers[n._watchers.length-1];return fn(O.value)&&(null===(o=O.value.__ob__)||void 0===o?void 0:o.dep)&&h&&O.value.__ob__.dep.addSub({update:function(){O.run()}}),Pn(O,s),function(){x()}}function An(n,t){var e=function(n){return r({flush:"pre"},n)}(t);return Dn(Rn(),n,null,e)}function Un(n,t){if(void 0===t&&(t=new Set),!B(n)||t.has(n)||H.has(n))return n;if(t.add(n),tn(n))Un(n.value,t);else if(M(n))for(var e=0;e<n.length;e++)Un(n[e],t);else if("[object Set]"===A(n)||function(n){return"[object Map]"===A(n)}(n))n.forEach((function(n){Un(n,t)}));else if(T(n))for(var r in n)Un(n[r],t);return n}var Bn={};function Tn(n,t){for(var e=t;e;){if(e._provided&&C(e._provided,n))return e._provided[n];e=e.$parent}return Bn}var Vn={},Wn=function(n){var t;void 0===n&&(n="$style");var e=$();if(!e)return Vn;var r=null===(t=e.proxy)||void 0===t?void 0:t[n];return r||Vn},zn=Wn;var Fn;function In(){return $().setupContext}var Kn={set:function(n,t,e){(n.__composition_api_state__=n.__composition_api_state__||{})[t]=e},get:function(n,t){return(n.__composition_api_state__||{})[t]}};function Qn(n){var t=Kn.get(n,"rawBindings")||{};if(t&&Object.keys(t).length){for(var e=n.$refs,r=Kn.get(n,"refs")||[],o=0;o<r.length;o++){var i=t[a=r[o]];!e[a]&&i&&tn(i)&&(i.value=null)}var u=Object.keys(e),f=[];for(o=0;o<u.length;o++){var a;i=t[a=u[o]];e[a]&&i&&tn(i)&&(i.value=e[a],f.push(a))}Kn.set(n,"refs",f)}}function qn(n){for(var t=[n._vnode];t.length;){var e=t.pop();if(e&&(e.context&&Qn(e.context),e.children))for(var r=0;r<e.children.length;++r)t.push(e.children[r])}}function Gn(n,t){var e,r;if(n){var i=Kn.get(n,"attrBindings");if(i||t){if(!i){var u=pn({});i={ctx:t,data:u},Kn.set(n,"attrBindings",i),E(t,"attrs",{get:function(){return null==i?void 0:i.data},set:function(){}})}var f=n.$attrs,a=function(t){C(i.data,t)||E(i.data,t,{get:function(){return n.$attrs[t]}})};try{for(var c=o(Object.keys(f)),l=c.next();!l.done;l=c.next()){a(l.value)}}catch(n){e={error:n}}finally{try{l&&!l.done&&(r=c.return)&&r.call(c)}finally{if(e)throw e.error}}}}}function Hn(n,t){var e=n.$options._parentVnode;if(e){for(var r=Kn.get(n,"slots")||[],o=function(n,t){var e;if(n){if(n._normalized)return n._normalized;for(var r in e={},n)n[r]&&"$"!==r[0]&&(e[r]=!0)}else e={};for(var r in t)r in e||(e[r]=!0);return e}(e.data.scopedSlots,n.$slots),i=0;i<r.length;i++){o[f=r[i]]||delete t[f]}var u=Object.keys(o);for(i=0;i<u.length;i++){var f;t[f=u[i]]||(t[f]=F(n,f))}Kn.set(n,"slots",u)}}function Jn(n,t,e){var r=$();w(n);try{return t(n)}catch(n){if(!e)throw n;e(n)}finally{w(r)}}function Ln(n){function t(n,e){if(void 0===e&&(e=new Set),!e.has(n)&&T(n)&&!tn(n)&&!fn(n)&&!un(n)){var r=g().util.defineReactive;Object.keys(n).forEach((function(o){var i=n[o];r(n,o,i),i&&(e.add(i),t(i,e))}))}}function e(n,t){return void 0===t&&(t=new Map),t.has(n)?t.get(n):(t.set(n,!1),M(n)&&fn(n)?(t.set(n,!0),!0):!(!T(n)||un(n)||tn(n))&&Object.keys(n).some((function(r){return e(n[r],t)})))}n.mixin({beforeCreate:function(){var n=this,r=n.$options,o=r.setup,i=r.render;i&&(r.render=function(){for(var t=this,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Jn(x(n),(function(){return i.apply(t,e)}))});if(!o)return;if(!V(o))return;var u=r.data;r.data=function(){return function(n,r){void 0===r&&(r={});var o,i=n.$options.setup,u=function(n){var t={slots:{}},e=["emit"];return["root","parent","refs","listeners","isServer","ssrContext"].forEach((function(e){var r="$".concat(e);E(t,e,{get:function(){return n[r]},set:function(){}})})),Gn(n,t),e.forEach((function(e){var r="$".concat(e);E(t,e,{get:function(){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];n[r].apply(n,t)}}})})),t}(n),f=x(n);if(f.setupContext=u,R(r,"__ob__",vn()),Hn(n,u.slots),Jn(f,(function(){o=i(r,u)})),!o)return;if(V(o)){var a=o;return void(n.$options.render=function(){return Hn(n,u.slots),Jn(f,(function(){return a()}))})}if(B(o)){fn(o)&&(o=rn(o)),Kn.set(n,"rawBindings",o);var c=o;Object.keys(c).forEach((function(r){var o=c[r];if(!tn(o))if(fn(o))M(o)&&(o=nn(o));else if(V(o)){var i=o;o=o.bind(n),Object.keys(i).forEach((function(n){o[n]=i[n]}))}else B(o)?e(o)&&t(o):o=nn(o);!function(n,t,e){var r=n.$options.props;t in n||r&&C(r,t)||(tn(e)?E(n,t,{get:function(){return e.value},set:function(n){e.value=n}}):E(n,t,{get:function(){return fn(e)&&e.__ob__.dep.depend(),e},set:function(n){e=n}}))}(n,r,o)}))}}(n,n.$props),V(u)?u.call(n,n):u||{}}},mounted:function(){qn(this)},beforeUpdate:function(){Gn(this)},updated:function(){qn(this)}})}function Nn(n,t){if(!n)return t;if(!t)return n;for(var e,r,o,i=S?Reflect.ownKeys(n):Object.keys(n),u=0;u<i.length;u++)"__ob__"!==(e=i[u])&&(r=t[e],o=n[e],C(t,e)?r!==o&&T(r)&&!tn(r)&&T(o)&&!tn(o)&&Nn(o,r):t[e]=o);return t}function Xn(n){(function(n){return p&&C(n,h)})(n)||(n.config.optionMergeStrategies.setup=function(n,t){return function(e,r){return Nn(V(n)?n(e,r)||{}:void 0,V(t)?t(e,r)||{}:void 0)}},function(n){p=n,Object.defineProperty(n,h,{configurable:!0,writable:!0,value:!0})}(n),Ln(n))}var Yn={install:function(n){return Xn(n)}};"undefined"!=typeof window&&window.Vue&&window.Vue.use(Yn),n.EffectScope=c,n.computed=function(n){var t,e,r,o,i=s();if(V(n)?t=n:(t=n.get,e=n.set),i&&!i.$isServer){var u,f=function(){if(!P){var n=z(g(),{computed:{value:function(){return 0}}}),t=n._computedWatchers.value.constructor,e=n._data.__ob__.dep.constructor;P={Watcher:t,Dep:e},n.$destroy()}return P}(),a=f.Watcher,c=f.Dep;o=function(){return u||(u=new a(i,t,k,{lazy:!0})),u.dirty&&u.evaluate(),c.target&&u.depend(),u.value},r=function(n){e&&e(n)}}else{var l=z(g(),{computed:{$$state:{get:t,set:e}}});i&&i.$on("hook:destroyed",(function(){return l.$destroy()})),o=function(){return l.$$state},r=function(n){l.$$state=n}}return Z({get:o,set:r},!e,!0)},n.createApp=function(n,t){void 0===t&&(t=void 0);var e=g(),o=void 0,i={},u={config:e.config,use:e.use.bind(e),mixin:e.mixin.bind(e),component:e.component.bind(e),provide:function(n,t){return i[n]=t,this},directive:function(n,t){return t?(e.directive(n,t),u):e.directive(n)},mount:function(u,f){return o||((o=new e(r(r({propsData:t},n),{provide:r(r({},i),n.provide)}))).$mount(u,f),o)},unmount:function(){o&&(o.$destroy(),o=void 0)}};return u},n.createRef=Z,n.customRef=function(n){var t=nn(0);return Z(n((function(){t.value}),(function(){++t.value})))},n.default=Yn,n.defineAsyncComponent=function(n){V(n)&&(n={loader:n});var t=n.loader,e=n.loadingComponent,r=n.errorComponent,o=n.delay,i=void 0===o?200:o,u=n.timeout;n.suspensible;var f=n.onError,a=null,c=0,l=function(){var n;return a||(n=a=t().catch((function(n){if(n=n instanceof Error?n:new Error(String(n)),f)return new Promise((function(t,e){f(n,(function(){return t((c++,a=null,l()))}),(function(){return e(n)}),c+1)}));throw n})).then((function(t){return n!==a&&a?a:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),t)})))};return function(){return{component:l(),delay:i,timeout:u,error:r,loading:e}}},n.defineComponent=function(n){return n},n.del=function(n,t){if(g().util.warn,M(n)&&U(t))n.splice(t,1);else{var e=n.__ob__;n._isVue||e&&e.vmCount||C(n,t)&&(delete n[t],e&&e.dep.notify())}},n.effectScope=function(n){return new c(n)},n.getCurrentInstance=$,n.getCurrentScope=l,n.h=function(){for(var n,t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=(null==this?void 0:this.proxy)||(null===(n=$())||void 0===n?void 0:n.proxy);return r?r.$createElement.apply(r,t):(Fn||(Fn=z(g()).$createElement),Fn.apply(Fn,t))},n.inject=function(n,t,e){var r;void 0===e&&(e=!1);var o=null===(r=$())||void 0===r?void 0:r.proxy;if(o){if(!n)return t;var i=Tn(n,o);return i!==Bn?i:arguments.length>1?e&&V(t)?t():t:void 0}},n.isRaw=un,n.isReactive=fn,n.isReadonly=function(n){return J.has(n)},n.isRef=tn,n.markRaw=function(n){if(!T(n)&&!M(n)||!Object.isExtensible(n))return n;var t=vn();return t.__v_skip=!0,R(n,"__ob__",t),H.set(n,!0),n},n.nextTick=function(){for(var n,t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return null===(n=g())||void 0===n?void 0:n.nextTick.apply(this,t)},n.onActivated=xn,n.onBeforeMount=hn,n.onBeforeUnmount=wn,n.onBeforeUpdate=gn,n.onDeactivated=On,n.onErrorCaptured=jn,n.onMounted=bn,n.onScopeDispose=function(n){e&&e.cleanups.push(n)},n.onServerPrefetch=Sn,n.onUnmounted=$n,n.onUpdated=mn,n.provide=function(n,t){var e,r=null===(e=W())||void 0===e?void 0:e.proxy;if(r){if(!r._provided){var o={};E(r,"_provided",{get:function(){return o},set:function(n){return Object.assign(o,n)}})}r._provided[n]=t}},n.proxyRefs=function(n){var t,e,r;if(fn(n))return n;var i=pn(((t={})[q]=n,t));R(i,q,i[q],!1);var u=function(n){E(i,n,{get:function(){return tn(i[q][n])?i[q][n].value:i[q][n]},set:function(t){if(tn(i[q][n]))return i[q][n].value=en(t);i[q][n]=en(t)}})};try{for(var f=o(Object.keys(n)),a=f.next();!a.done;a=f.next()){u(a.value)}}catch(n){e={error:n}}finally{try{a&&!a.done&&(r=f.return)&&r.call(f)}finally{if(e)throw e.error}}return i},n.reactive=pn,n.readonly=function(n){return J.set(n,!0),n},n.ref=nn,n.set=L,n.shallowReactive=dn,n.shallowReadonly=function(n){var t,e;if(!B(n))return n;if(!T(n)&&!M(n)||!Object.isExtensible(n)&&!tn(n))return n;var r=tn(n)?new Y({}):fn(n)?ln({}):{},i=pn({}).__ob__,u=function(t){var e,o=n[t],u=Object.getOwnPropertyDescriptor(n,t);if(u){if(!1===u.configurable&&!tn(n))return"continue";e=u.get}E(r,t,{get:function(){var t=e?e.call(n):o;return i.dep.depend(),t},set:function(n){}})};try{for(var f=o(Object.keys(n)),a=f.next();!a.done;a=f.next()){u(a.value)}}catch(n){t={error:n}}finally{try{a&&!a.done&&(e=f.return)&&e.call(f)}finally{if(t)throw t.error}}return J.set(r,!0),r},n.shallowRef=function(n){var t;if(tn(n))return n;var e=dn(((t={})[q]=n,t));return Z({get:function(){return e[q]},set:function(n){return e[q]=n}})},n.toRaw=function(n){var t;return un(n)||!Object.isExtensible(n)?n:(null===(t=null==n?void 0:n.__ob__)||void 0===t?void 0:t.value)||n},n.toRef=on,n.toRefs=rn,n.triggerRef=function(n){tn(n)&&(X(!0),n.value=n.value,X(!1))},n.unref=en,n.useAttrs=function(){return In().attrs},n.useCSSModule=zn,n.useCssModule=Wn,n.useSlots=function(){return In().slots},n.version="1.6.3",n.warn=function(n){var t,e,r,o;e=n,r=null===(t=$())||void 0===t?void 0:t.proxy,(o=m())&&o.util?o.util.warn(e,r):console.warn("[vue-composition-api] ".concat(e))},n.watch=function(n,t,e){var o=null;V(t)?o=t:(e=t,o=null);var i=function(n){return r({immediate:!1,deep:!1,flush:"pre"},n)}(e);return Dn(Rn(),n,o,i)},n.watchEffect=An,n.watchPostEffect=function(n){return An(n,{flush:"post"})},n.watchSyncEffect=function(n){return An(n,{flush:"sync"})},Object.defineProperty(n,"__esModule",{value:!0})})); | ||
!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((n="undefined"!=typeof globalThis?globalThis:n||self).VueCompositionAPI={})}(this,(function(n){"use strict";var t=function(n,e){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e])},t(n,e)};var e,r=function(){return r=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var o in t=arguments[e])Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n},r.apply(this,arguments)};function o(n){var t="function"==typeof Symbol&&Symbol.iterator,e=t&&n[t],r=0;if(e)return e.call(n);if(n&&"number"==typeof n.length)return{next:function(){return n&&r>=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function i(n,t){var e="function"==typeof Symbol&&n[Symbol.iterator];if(!e)return n;var r,o,i=e.call(n),u=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)u.push(r.value)}catch(n){o={error:n}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(o)throw o.error}}return u}function u(n,t,e){if(e||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return n.concat(r||Array.prototype.slice.call(t))}var f=[],a=function(){function n(n){this.active=!0,this.effects=[],this.cleanups=[],this.vm=n}return n.prototype.run=function(n){if(this.active)try{return this.on(),n()}finally{this.off()}},n.prototype.on=function(){this.active&&(f.push(this),e=this)},n.prototype.off=function(){this.active&&(f.pop(),e=f[f.length-1])},n.prototype.stop=function(){this.active&&(this.vm.$destroy(),this.effects.forEach((function(n){return n.stop()})),this.cleanups.forEach((function(n){return n()})),this.active=!1)},n}(),c=function(n){function r(t){void 0===t&&(t=!1);var r,o=void 0;return function(n){var t=_;_=!1;try{n()}finally{_=t}}((function(){o=z(g())})),r=n.call(this,o)||this,t||function(n,t){var r;if((t=t||e)&&t.active)return void t.effects.push(n);var o=null===(r=$())||void 0===r?void 0:r.proxy;o&&o.$on("hook:destroyed",(function(){return n.stop()}))}(r),r}return function(n,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=n}t(n,e),n.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}(r,n),r}(a);function l(){return e}function s(){var n,t;return(null===(n=l())||void 0===n?void 0:n.vm)||(null===(t=$())||void 0===t?void 0:t.proxy)}var v=void 0;try{var d=require("vue");d&&b(d)?v=d:d&&"default"in d&&b(d.default)&&(v=d.default)}catch(n){}var p=null,y=null,_=!0,h="__composition_api_installed__";function b(n){return n&&V(n)&&"Vue"===n.name}function g(){return p}function m(){return p||v}function w(n){if(_){var t=y;null==t||t.scope.off(),null==(y=n)||y.scope.on()}}function $(){return y}var j=new WeakMap;function x(n){if(j.has(n))return j.get(n);var t={proxy:n,update:n.$forceUpdate,type:n.$options,uid:n._uid,emit:n.$emit.bind(n),parent:null,root:null};!function(n){if(!n.scope){var t=new a(n.proxy);n.scope=t,n.proxy.$on("hook:destroyed",(function(){return t.stop()}))}n.scope}(t);return["data","props","attrs","refs","vnode","slots"].forEach((function(e){E(t,e,{get:function(){return n["$".concat(e)]}})})),E(t,"isMounted",{get:function(){return n._isMounted}}),E(t,"isUnmounted",{get:function(){return n._isDestroyed}}),E(t,"isDeactivated",{get:function(){return n._inactive}}),E(t,"emitted",{get:function(){return n._events}}),j.set(n,t),n.$parent&&(t.parent=x(n.$parent)),n.$root&&(t.root=x(n.$root)),t}function O(n){return"function"==typeof n&&/native code/.test(n.toString())}var S="undefined"!=typeof Symbol&&O(Symbol)&&"undefined"!=typeof Reflect&&O(Reflect.ownKeys),k=function(n){return n};function E(n,t,e){var r=e.get,o=e.set;Object.defineProperty(n,t,{enumerable:!0,configurable:!0,get:r||k,set:o||k})}function R(n,t,e,r){Object.defineProperty(n,t,{value:e,enumerable:!!r,writable:!0,configurable:!0})}function C(n,t){return Object.hasOwnProperty.call(n,t)}function M(n){return Array.isArray(n)}var P,D=Object.prototype.toString,A=function(n){return D.call(n)};function U(n){var t=parseFloat(String(n));return t>=0&&Math.floor(t)===t&&isFinite(n)&&t<=4294967295}function B(n){return null!==n&&"object"==typeof n}function T(n){return"[object Object]"===function(n){return Object.prototype.toString.call(n)}(n)}function V(n){return"function"==typeof n}function W(n,t){return t=t||$()}function z(n,t){void 0===t&&(t={});var e=n.config.silent;n.config.silent=!0;var r=new n(t);return n.config.silent=e,r}function F(n,t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(n.$scopedSlots[t])return n.$scopedSlots[t].apply(n,e)}}function I(n){return S?Symbol.for(n):n}var K=I("composition-api.preFlushQueue"),Q=I("composition-api.postFlushQueue"),q="composition-api.refKey",G=new WeakMap,H=new WeakMap,J=new WeakMap;function L(n,t,e){var r=g().util;r.warn;var o=r.defineReactive,i=n.__ob__;function u(){i&&B(e)&&!C(e,"__ob__")&&sn(e)}if(M(n)){if(U(t))return n.length=Math.max(n.length,t),n.splice(t,1,e),u(),e;if("length"===t&&e!==n.length)return n.length=e,null==i||i.dep.notify(),e}return t in n&&!(t in Object.prototype)?(n[t]=e,u(),e):n._isVue||i&&i.vmCount?e:i?(o(i.value,t,e),cn(n,t,e),u(),i.dep.notify(),e):(n[t]=e,e)}var N=!1;function X(n){N=n}var Y=function(n){E(this,"value",{get:n.get,set:n.set})};function Z(n,t,e){void 0===t&&(t=!1),void 0===e&&(e=!1);var r=new Y(n);e&&(r.effect=!0);var o=Object.seal(r);return t&&J.set(o,!0),o}function nn(n){var t;if(tn(n))return n;var e=pn(((t={})[q]=n,t));return Z({get:function(){return e[q]},set:function(n){return e[q]=n}})}function tn(n){return n instanceof Y}function en(n){return tn(n)?n.value:n}function rn(n){if(!T(n))return n;var t={};for(var e in n)t[e]=on(n,e);return t}function on(n,t){t in n||L(n,t,void 0);var e=n[t];return tn(e)?e:Z({get:function(){return n[t]},set:function(e){return n[t]=e}})}function un(n){var t;return Boolean(n&&C(n,"__ob__")&&"object"==typeof n.__ob__&&(null===(t=n.__ob__)||void 0===t?void 0:t.__v_skip))}function fn(n){var t;return Boolean(n&&C(n,"__ob__")&&"object"==typeof n.__ob__&&!(null===(t=n.__ob__)||void 0===t?void 0:t.__v_skip))}function an(n){if(!(!T(n)||un(n)||M(n)||tn(n)||(t=n,e=g(),e&&t instanceof e)||G.has(n))){var t,e;G.set(n,!0);for(var r=Object.keys(n),o=0;o<r.length;o++)cn(n,r[o])}}function cn(n,t,e){if("__ob__"!==t&&!un(n[t])){var r,o,i=Object.getOwnPropertyDescriptor(n,t);if(i){if(!1===i.configurable)return;r=i.get,o=i.set,r&&!o||2!==arguments.length||(e=n[t])}an(e),E(n,t,{get:function(){var o=r?r.call(n):e;return t!==q&&tn(o)?o.value:o},set:function(i){r&&!o||(t!==q&&tn(e)&&!tn(i)?e.value=i:o?(o.call(n,i),e=i):e=i,an(i))}})}}function ln(n){var t,e=m();e.observable?t=e.observable(n):t=z(e,{data:{$$state:n}})._data.$$state;return C(t,"__ob__")||sn(t),t}function sn(n,t){var e,r;if(void 0===t&&(t=new Set),!t.has(n)&&!C(n,"__ob__")&&Object.isExtensible(n)){R(n,"__ob__",function(n){void 0===n&&(n={});return{value:n,dep:{notify:k,depend:k,addSub:k,removeSub:k}}}(n)),t.add(n);try{for(var i=o(Object.keys(n)),u=i.next();!u.done;u=i.next()){var f=n[u.value];(T(f)||M(f))&&!un(f)&&Object.isExtensible(f)&&sn(f,t)}}catch(n){e={error:n}}finally{try{u&&!u.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}}}function vn(){return ln({}).__ob__}function dn(n){var t,e;if(!B(n))return n;if(!T(n)&&!M(n)||un(n)||!Object.isExtensible(n))return n;var r=ln(M(n)?[]:{}),i=r.__ob__,u=function(t){var e,o,u=n[t],f=Object.getOwnPropertyDescriptor(n,t);if(f){if(!1===f.configurable)return"continue";e=f.get,o=f.set}E(r,t,{get:function(){var n;return null===(n=i.dep)||void 0===n||n.depend(),u},set:function(t){var r;e&&!o||(N||u!==t)&&(o?o.call(n,t):u=t,null===(r=i.dep)||void 0===r||r.notify())}})};try{for(var f=o(Object.keys(n)),a=f.next();!a.done;a=f.next()){u(a.value)}}catch(n){t={error:n}}finally{try{a&&!a.done&&(e=f.return)&&e.call(f)}finally{if(t)throw t.error}}return r}function pn(n){if(!B(n))return n;if(!T(n)&&!M(n)||un(n)||!Object.isExtensible(n))return n;var t=ln(n);return an(t),t}function yn(n){return function(t,e){var r,o=W("on".concat((r=n)[0].toUpperCase()+r.slice(1)),e);return o&&function(n,t,e,r){var o=t.proxy.$options,f=n.config.optionMergeStrategies[e],a=function(n,t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var o=$();w(n);try{return t.apply(void 0,u([],i(e),!1))}finally{w(o)}}}(t,r);return o[e]=f(o[e],a),a}(g(),o,n,t)}}var _n,hn=yn("beforeMount"),bn=yn("mounted"),gn=yn("beforeUpdate"),mn=yn("updated"),wn=yn("beforeDestroy"),$n=yn("destroyed"),jn=yn("errorCaptured"),xn=yn("activated"),On=yn("deactivated"),Sn=yn("serverPrefetch");function kn(){Cn(this,K)}function En(){Cn(this,Q)}function Rn(){var n=s();return n?function(n){return void 0!==n[K]}(n)||function(n){n[K]=[],n[Q]=[],n.$on("hook:beforeUpdate",kn),n.$on("hook:updated",En)}(n):(_n||(_n=z(g())),n=_n),n}function Cn(n,t){for(var e=n[t],r=0;r<e.length;r++)e[r]();e.length=0}function Mn(n,t,e){var r=function(){n.$nextTick((function(){n[K].length&&Cn(n,K),n[Q].length&&Cn(n,Q)}))};switch(e){case"pre":r(),n[K].push(t);break;case"post":r(),n[Q].push(t);break;default:!function(n,t){if(!n)throw new Error("[vue-composition-api] ".concat(t))}(!1,'flush must be one of ["post", "pre", "sync"], but got '.concat(e))}}function Pn(n,t){var e=n.teardown;n.teardown=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];e.apply(n,r),t()}}function Dn(n,t,e,r){var o,f,a=r.flush,c="sync"===a,l=function(n){f=function(){try{n()}catch(n){!function(n,t,e){if("undefined"==typeof window||"undefined"==typeof console)throw n;console.error(n)}(n)}}},s=function(){f&&(f(),f=null)},v=function(t){return c||n===_n?t:function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Mn(n,(function(){t.apply(void 0,u([],i(e),!1))}),a)}};if(null===e){var d=!1,p=function(n,t,e,r){var o=n._watchers.length;return n.$watch(t,e,{immediate:r.immediateInvokeCallback,deep:r.deep,lazy:r.noRun,sync:r.sync,before:r.before}),n._watchers[o]}(n,(function(){if(!d)try{d=!0,t(l)}finally{d=!1}}),k,{deep:r.deep||!1,sync:c,before:s});Pn(p,s),p.lazy=!1;var y=p.get.bind(p);return p.get=v(y),function(){p.teardown()}}var _,h=r.deep,b=!1;if(tn(t)?_=function(){return t.value}:fn(t)?(_=function(){return t},h=!0):M(t)?(b=!0,_=function(){return t.map((function(n){return tn(n)?n.value:fn(n)?Un(n):V(n)?n():k}))}):_=V(t)?t:k,h){var g=_;_=function(){return Un(g())}}var m=function(n,t){if(h||!b||!n.every((function(n,e){return r=n,o=t[e],r===o?0!==r||1/r==1/o:r!=r&&o!=o;var r,o})))return s(),e(n,t,l)},w=v(m);if(r.immediate){var $=w,j=function(n,t){return j=$,m(n,M(n)?[]:t)};w=function(n,t){return j(n,t)}}var x=n.$watch(_,w,{immediate:r.immediate,deep:h,sync:c}),O=n._watchers[n._watchers.length-1];return fn(O.value)&&(null===(o=O.value.__ob__)||void 0===o?void 0:o.dep)&&h&&O.value.__ob__.dep.addSub({update:function(){O.run()}}),Pn(O,s),function(){x()}}function An(n,t){var e=function(n){return r({flush:"pre"},n)}(t);return Dn(Rn(),n,null,e)}function Un(n,t){if(void 0===t&&(t=new Set),!B(n)||t.has(n)||H.has(n))return n;if(t.add(n),tn(n))Un(n.value,t);else if(M(n))for(var e=0;e<n.length;e++)Un(n[e],t);else if("[object Set]"===A(n)||function(n){return"[object Map]"===A(n)}(n))n.forEach((function(n){Un(n,t)}));else if(T(n))for(var r in n)Un(n[r],t);return n}var Bn={};function Tn(n,t){for(var e=t;e;){if(e._provided&&C(e._provided,n))return e._provided[n];e=e.$parent}return Bn}var Vn={},Wn=function(n){var t;void 0===n&&(n="$style");var e=$();if(!e)return Vn;var r=null===(t=e.proxy)||void 0===t?void 0:t[n];return r||Vn},zn=Wn;var Fn;function In(){return $().setupContext}var Kn={set:function(n,t,e){(n.__composition_api_state__=n.__composition_api_state__||{})[t]=e},get:function(n,t){return(n.__composition_api_state__||{})[t]}};function Qn(n){var t=Kn.get(n,"rawBindings")||{};if(t&&Object.keys(t).length){for(var e=n.$refs,r=Kn.get(n,"refs")||[],o=0;o<r.length;o++){var i=t[a=r[o]];!e[a]&&i&&tn(i)&&(i.value=null)}var u=Object.keys(e),f=[];for(o=0;o<u.length;o++){var a;i=t[a=u[o]];e[a]&&i&&tn(i)&&(i.value=e[a],f.push(a))}Kn.set(n,"refs",f)}}function qn(n){for(var t=[n._vnode];t.length;){var e=t.pop();if(e&&(e.context&&Qn(e.context),e.children))for(var r=0;r<e.children.length;++r)t.push(e.children[r])}}function Gn(n,t){var e,r;if(n){var i=Kn.get(n,"attrBindings");if(i||t){if(!i){var u=pn({});i={ctx:t,data:u},Kn.set(n,"attrBindings",i),E(t,"attrs",{get:function(){return null==i?void 0:i.data},set:function(){}})}var f=n.$attrs,a=function(t){C(i.data,t)||E(i.data,t,{get:function(){return n.$attrs[t]}})};try{for(var c=o(Object.keys(f)),l=c.next();!l.done;l=c.next()){a(l.value)}}catch(n){e={error:n}}finally{try{l&&!l.done&&(r=c.return)&&r.call(c)}finally{if(e)throw e.error}}}}}function Hn(n,t){var e=n.$options._parentVnode;if(e){for(var r=Kn.get(n,"slots")||[],o=function(n,t){var e;if(n){if(n._normalized)return n._normalized;for(var r in e={},n)n[r]&&"$"!==r[0]&&(e[r]=!0)}else e={};for(var r in t)r in e||(e[r]=!0);return e}(e.data.scopedSlots,n.$slots),i=0;i<r.length;i++){o[f=r[i]]||delete t[f]}var u=Object.keys(o);for(i=0;i<u.length;i++){var f;t[f=u[i]]||(t[f]=F(n,f))}Kn.set(n,"slots",u)}}function Jn(n,t,e){var r=$();w(n);try{return t(n)}catch(n){if(!e)throw n;e(n)}finally{w(r)}}function Ln(n){function t(n,e){if(void 0===e&&(e=new Set),!e.has(n)&&T(n)&&!tn(n)&&!fn(n)&&!un(n)){var r=g().util.defineReactive;Object.keys(n).forEach((function(o){var i=n[o];r(n,o,i),i&&(e.add(i),t(i,e))}))}}function e(n,t){return void 0===t&&(t=new Map),t.has(n)?t.get(n):(t.set(n,!1),M(n)&&fn(n)?(t.set(n,!0),!0):!(!T(n)||un(n)||tn(n))&&Object.keys(n).some((function(r){return e(n[r],t)})))}n.mixin({beforeCreate:function(){var n=this,r=n.$options,o=r.setup,i=r.render;i&&(r.render=function(){for(var t=this,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Jn(x(n),(function(){return i.apply(t,e)}))});if(!o)return;if(!V(o))return;var u=r.data;r.data=function(){return function(n,r){void 0===r&&(r={});var o,i=n.$options.setup,u=function(n){var t={slots:{}},e=["emit"];return["root","parent","refs","listeners","isServer","ssrContext"].forEach((function(e){var r="$".concat(e);E(t,e,{get:function(){return n[r]},set:function(){}})})),Gn(n,t),e.forEach((function(e){var r="$".concat(e);E(t,e,{get:function(){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];n[r].apply(n,t)}}})})),t}(n),f=x(n);if(f.setupContext=u,R(r,"__ob__",vn()),Hn(n,u.slots),Jn(f,(function(){o=i(r,u)})),!o)return;if(V(o)){var a=o;return void(n.$options.render=function(){return Hn(n,u.slots),Jn(f,(function(){return a()}))})}if(B(o)){fn(o)&&(o=rn(o)),Kn.set(n,"rawBindings",o);var c=o;Object.keys(c).forEach((function(r){var o=c[r];if(!tn(o))if(fn(o))M(o)&&(o=nn(o));else if(V(o)){var i=o;o=o.bind(n),Object.keys(i).forEach((function(n){o[n]=i[n]}))}else B(o)?e(o)&&t(o):o=nn(o);!function(n,t,e){var r=n.$options.props;t in n||r&&C(r,t)||(tn(e)?E(n,t,{get:function(){return e.value},set:function(n){e.value=n}}):E(n,t,{get:function(){return fn(e)&&e.__ob__.dep.depend(),e},set:function(n){e=n}}))}(n,r,o)}))}}(n,n.$props),V(u)?u.call(n,n):u||{}}},mounted:function(){qn(this)},beforeUpdate:function(){Gn(this)},updated:function(){qn(this)}})}function Nn(n,t){if(!n)return t;if(!t)return n;for(var e,r,o,i=S?Reflect.ownKeys(n):Object.keys(n),u=0;u<i.length;u++)"__ob__"!==(e=i[u])&&(r=t[e],o=n[e],C(t,e)?r!==o&&T(r)&&!tn(r)&&T(o)&&!tn(o)&&Nn(o,r):t[e]=o);return t}function Xn(n){(function(n){return p&&C(n,h)})(n)||(n.config.optionMergeStrategies.setup=function(n,t){return function(e,r){return Nn(V(n)?n(e,r)||{}:void 0,V(t)?t(e,r)||{}:void 0)}},function(n){p=n,Object.defineProperty(n,h,{configurable:!0,writable:!0,value:!0})}(n),Ln(n))}var Yn={install:function(n){return Xn(n)}};"undefined"!=typeof window&&window.Vue&&window.Vue.use(Yn),n.EffectScope=c,n.computed=function(n){var t,e,r,o,i=s();if(V(n)?t=n:(t=n.get,e=n.set),i&&!i.$isServer){var u,f=function(){if(!P){var n=z(g(),{computed:{value:function(){return 0}}}),t=n._computedWatchers.value.constructor,e=n._data.__ob__.dep.constructor;P={Watcher:t,Dep:e},n.$destroy()}return P}(),a=f.Watcher,c=f.Dep;o=function(){return u||(u=new a(i,t,k,{lazy:!0})),u.dirty&&u.evaluate(),c.target&&u.depend(),u.value},r=function(n){e&&e(n)}}else{var l=z(g(),{computed:{$$state:{get:t,set:e}}});i&&i.$on("hook:destroyed",(function(){return l.$destroy()})),o=function(){return l.$$state},r=function(n){l.$$state=n}}return Z({get:o,set:r},!e,!0)},n.createApp=function(n,t){void 0===t&&(t=void 0);var e=g(),o=void 0,i={},u={config:e.config,use:e.use.bind(e),mixin:e.mixin.bind(e),component:e.component.bind(e),provide:function(n,t){return i[n]=t,this},directive:function(n,t){return t?(e.directive(n,t),u):e.directive(n)},mount:function(u,f){return o||((o=new e(r(r({propsData:t},n),{provide:r(r({},i),n.provide)}))).$mount(u,f),o)},unmount:function(){o&&(o.$destroy(),o=void 0)}};return u},n.createRef=Z,n.customRef=function(n){var t=nn(0);return Z(n((function(){t.value}),(function(){++t.value})))},n.default=Yn,n.defineAsyncComponent=function(n){V(n)&&(n={loader:n});var t=n.loader,e=n.loadingComponent,r=n.errorComponent,o=n.delay,i=void 0===o?200:o,u=n.timeout;n.suspensible;var f=n.onError,a=null,c=0,l=function(){var n;return a||(n=a=t().catch((function(n){if(n=n instanceof Error?n:new Error(String(n)),f)return new Promise((function(t,e){f(n,(function(){return t((c++,a=null,l()))}),(function(){return e(n)}),c+1)}));throw n})).then((function(t){return n!==a&&a?a:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),t)})))};return function(){return{component:l(),delay:i,timeout:u,error:r,loading:e}}},n.defineComponent=function(n){return n},n.del=function(n,t){if(g().util.warn,M(n)&&U(t))n.splice(t,1);else{var e=n.__ob__;n._isVue||e&&e.vmCount||C(n,t)&&(delete n[t],e&&e.dep.notify())}},n.effectScope=function(n){return new c(n)},n.getCurrentInstance=$,n.getCurrentScope=l,n.h=function(){for(var n,t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=(null==this?void 0:this.proxy)||(null===(n=$())||void 0===n?void 0:n.proxy);return r?r.$createElement.apply(r,t):(Fn||(Fn=z(g()).$createElement),Fn.apply(Fn,t))},n.inject=function(n,t,e){var r;void 0===e&&(e=!1);var o=null===(r=$())||void 0===r?void 0:r.proxy;if(o){if(!n)return t;var i=Tn(n,o);return i!==Bn?i:arguments.length>1?e&&V(t)?t():t:void 0}},n.isRaw=un,n.isReactive=fn,n.isReadonly=function(n){return J.has(n)},n.isRef=tn,n.markRaw=function(n){if(!T(n)&&!M(n)||!Object.isExtensible(n))return n;var t=vn();return t.__v_skip=!0,R(n,"__ob__",t),H.set(n,!0),n},n.nextTick=function(){for(var n,t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return null===(n=g())||void 0===n?void 0:n.nextTick.apply(this,t)},n.onActivated=xn,n.onBeforeMount=hn,n.onBeforeUnmount=wn,n.onBeforeUpdate=gn,n.onDeactivated=On,n.onErrorCaptured=jn,n.onMounted=bn,n.onScopeDispose=function(n){e&&e.cleanups.push(n)},n.onServerPrefetch=Sn,n.onUnmounted=$n,n.onUpdated=mn,n.provide=function(n,t){var e,r=null===(e=W())||void 0===e?void 0:e.proxy;if(r){if(!r._provided){var o={};E(r,"_provided",{get:function(){return o},set:function(n){return Object.assign(o,n)}})}r._provided[n]=t}},n.proxyRefs=function(n){var t,e,r;if(fn(n))return n;var i=pn(((t={})[q]=n,t));R(i,q,i[q],!1);var u=function(n){E(i,n,{get:function(){return tn(i[q][n])?i[q][n].value:i[q][n]},set:function(t){if(tn(i[q][n]))return i[q][n].value=en(t);i[q][n]=en(t)}})};try{for(var f=o(Object.keys(n)),a=f.next();!a.done;a=f.next()){u(a.value)}}catch(n){e={error:n}}finally{try{a&&!a.done&&(r=f.return)&&r.call(f)}finally{if(e)throw e.error}}return i},n.reactive=pn,n.readonly=function(n){return J.set(n,!0),n},n.ref=nn,n.set=L,n.shallowReactive=dn,n.shallowReadonly=function(n){var t,e;if(!B(n))return n;if(!T(n)&&!M(n)||!Object.isExtensible(n)&&!tn(n))return n;var r=tn(n)?new Y({}):fn(n)?ln({}):{},i=pn({}).__ob__,u=function(t){var e,o=n[t],u=Object.getOwnPropertyDescriptor(n,t);if(u){if(!1===u.configurable&&!tn(n))return"continue";e=u.get}E(r,t,{get:function(){var t=e?e.call(n):o;return i.dep.depend(),t},set:function(n){}})};try{for(var f=o(Object.keys(n)),a=f.next();!a.done;a=f.next()){u(a.value)}}catch(n){t={error:n}}finally{try{a&&!a.done&&(e=f.return)&&e.call(f)}finally{if(t)throw t.error}}return J.set(r,!0),r},n.shallowRef=function(n){var t;if(tn(n))return n;var e=dn(((t={})[q]=n,t));return Z({get:function(){return e[q]},set:function(n){return e[q]=n}})},n.toRaw=function(n){var t;return un(n)||!Object.isExtensible(n)?n:(null===(t=null==n?void 0:n.__ob__)||void 0===t?void 0:t.value)||n},n.toRef=on,n.toRefs=rn,n.triggerRef=function(n){tn(n)&&(X(!0),n.value=n.value,X(!1))},n.unref=en,n.useAttrs=function(){return In().attrs},n.useCSSModule=zn,n.useCssModule=Wn,n.useSlots=function(){return In().slots},n.version="1.7.0",n.warn=function(n){var t,e,r,o;e=n,r=null===(t=$())||void 0===t?void 0:t.proxy,(o=m())&&o.util?o.util.warn(e,r):console.warn("[vue-composition-api] ".concat(e))},n.watch=function(n,t,e){var o=null;V(t)?o=t:(e=t,o=null);var i=function(n){return r({immediate:!1,deep:!1,flush:"pre"},n)}(e);return Dn(Rn(),n,o,i)},n.watchEffect=An,n.watchPostEffect=function(n){return An(n,{flush:"post"})},n.watchSyncEffect=function(n){return An(n,{flush:"sync"})},Object.defineProperty(n,"__esModule",{value:!0})})); |
{ | ||
"name": "@vue/composition-api", | ||
"version": "1.6.3", | ||
"version": "1.7.0", | ||
"packageManager": "pnpm@7.0.0", | ||
@@ -54,3 +54,3 @@ "description": "Provide logic composition capabilities for Vue.", | ||
"peerDependencies": { | ||
"vue": ">= 2.5 < 3" | ||
"vue": ">= 2.5 < 2.7" | ||
}, | ||
@@ -57,0 +57,0 @@ "devDependencies": { |
@@ -11,2 +11,5 @@ # @vue/composition-api | ||
> ⚠️ With the release of [Vue 2.7](https://blog.vuejs.org/posts/vue-2-7-naruto.html), which has Composition API built-in, **you no longer need this plugin**. Thereby this plugin has entered maintenance mode and will only support Vue 2.6 or earlier. This project will reach End of Life by the end of 2022. | ||
## Installation | ||
@@ -45,3 +48,3 @@ | ||
<script src="https://cdn.jsdelivr.net/npm/vue@2.6"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/@vue/composition-api@1.6.3"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/@vue/composition-api@1.7.0"></script> | ||
``` | ||
@@ -408,2 +411,3 @@ <!--cdn-links-end--> | ||
<details> | ||
<summary> | ||
@@ -410,0 +414,0 @@ ⚠️ <code>createElement</code> / <code>h</code> workaround |
@@ -10,2 +10,5 @@ # @vue/composition-api | ||
> ⚠️ 随着 [Vue 2.7](https://blog.vuejs.org/posts/vue-2-7-naruto.html)的发布,它内置了Composition API,**你不再需要这个插件了**。因此,这个插件已经进入维护模式,将只支持Vue 2.6 或更早的版本。本项目将在 2022 年底达到生命终点(EOL)。 | ||
## 安装 | ||
@@ -44,3 +47,3 @@ | ||
<script src="https://cdn.jsdelivr.net/npm/vue@2.6"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/@vue/composition-api@1.6.3"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/@vue/composition-api@1.7.0"></script> | ||
``` | ||
@@ -184,25 +187,2 @@ <!--cdn-links-end--> | ||
<details> | ||
<summary> | ||
⚠️ <code>set</code> 和 <code>del</code> 添加与刪除响应式属性变通方案 | ||
</summary> | ||
> ⚠️ 警告: `set` 和 `del` 并非 Vue 3 的一部分。由于 [Vue 2.x 响应式系统的限制](https://vuejs.org/v2/guide/reactivity.html#For-Objects),我们在插件中提供该 API 作为添加响应式属性的一个变通方案。在 Vue 3 中,你只需要直接为属性赋值即可。 | ||
```ts | ||
import { reactive, set, del } from '@vue/composition-api' | ||
const a = reactive({ | ||
foo: 1 | ||
}) | ||
// 添加新的响应式属性 | ||
set(a, 'bar', 1) | ||
// 刪除属性并触发响应式更新 | ||
del(a, 'bar') | ||
``` | ||
</details> | ||
### 模板 Refs | ||
@@ -372,2 +352,28 @@ | ||
<details> | ||
<summary> | ||
⚠️ <code>set</code> 和 <code>del</code> 添加与刪除响应式属性变通方案 | ||
</summary> | ||
> ⚠️ 警告: `set` 和 `del` 并非 Vue 3 的一部分。由于 [Vue 2.x 响应式系统的限制](https://vuejs.org/v2/guide/reactivity.html#For-Objects), 我们在这里提供它们作为一种变通方案。 | ||
> 在 Vue 2中,你将需要调用`set` 去追踪`object`上新的属性 (与`Vue.set`类似,但用于由 Composition API 创建的`reactive objects`)。在 Vue 3 中,你只需要像对待普通对象一样直接为属性赋值即可。 | ||
> | ||
> 同样地, 在 Vue 2 中你将需要调用`del`去 [确保响应式对象中属性的删除将触发视图更新](https://vuejs.org/v2/api/#Vue-delete) (与`Vue.delete`类似,但用于由 Composition API 创建的`reactive objects`)。在Vue3中,你只需要通过调用 `delete foo.bar` 来删除它们。 | ||
```ts | ||
import { reactive, set, del } from '@vue/composition-api' | ||
const a = reactive({ | ||
foo: 1 | ||
}) | ||
// 添加新的响应式属性 | ||
set(a, 'bar', 1) | ||
// 刪除属性并触发响应式更新 | ||
del(a, 'bar') | ||
``` | ||
</details> | ||
### Watch | ||
@@ -415,2 +421,34 @@ | ||
### `createElement` / `h` | ||
<details> | ||
<summary> | ||
⚠️ <code>createElement</code> / <code>h</code> 变通方案 | ||
</summary> | ||
<br> | ||
在 Vue2中 `createElement` / `h` 只能通过 `render()` 函数访问。要在 `render()`之外使用它, 你可以显式地给它绑定一个组件实例。 | ||
> :warning: **警告**: 此功能是作为 Vue 2 的变通方法提供的,它不是 Vue 3 API 的一部分。 | ||
```jsx | ||
import { h as _h } from '@vue/composition-api' | ||
export default { | ||
setup() { | ||
const vm = getCurrentInstance() | ||
const h = _h.bind(vm) | ||
return () => | ||
h('div', { | ||
ref: 'root', | ||
}) | ||
}, | ||
} | ||
``` | ||
</details> | ||
### `shallowReadonly` | ||
@@ -417,0 +455,0 @@ |
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
407324
559