diff --git a/404.html b/404.html index 33476eb..3ede91e 100644 --- a/404.html +++ b/404.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/98.7c76ba7c.async.js b/98.7c76ba7c.async.js new file mode 100644 index 0000000..99c7b3d --- /dev/null +++ b/98.7c76ba7c.async.js @@ -0,0 +1 @@ +(self.webpackChunkspeedform_docs=self.webpackChunkspeedform_docs||[]).push([[98],{73894:function(Ce,D,p){"use strict";p.r(D),p.d(D,{$:function(){return w.$},ComputedObjects:function(){return $e},ComputedScopeRef:function(){return S},OBJECT_PATH_DELIMITER:function(){return b},SKIP_COMPUTED:function(){return te},WatchObject:function(){return Me},WatchObjects:function(){return Ue},asyncComputedObject:function(){return st},computed:function(){return fe},createAsyncComputedMutate:function(){return ie},createComputedMutate:function(){return re},createObject:function(){return w.share},createStore:function(){return St},createUseWatch:function(){return Ie},createWatch:function(){return de},getSnap:function(){return w.getSnap},getVal:function(){return E},getValueByPath:function(){return P},installComputed:function(){return se},installWatch:function(){return pe},isIncludePath:function(){return Be},isSkipComputed:function(){return we},markRaw:function(){return w.markRaw},setAsyncComputedObject:function(){return rt},setVal:function(){return R},skipComputed:function(){return N},watch:function(){return bt}});var S=function(e){return e.Root="root",e.Current="current",e.Parent="parent",e.Depends="depends",e.Self="self",e}({});function V(e){return(e||["ROOT"]).map(function(t){return Array.isArray(t)?t.join("."):t}).join("_")}function Oe(e,t){var n="";return t.id?n=t.id:n=V(e),n}function xe(e){return e instanceof Error?e:new Error(e)}var b=".",te=Symbol("SKIP_COMPUTED");function we(e){return e[te]===!0}var ze=p(79664),j=p.n(ze);function ne(e,t,n){if(!Array.isArray(e))throw new Error("curPath must be an array");return t==="self"?e:t==="root"?[]:t==="parent"?e.slice(0,-2):t==="current"?e.slice(0,-1):typeof t=="string"?t.startsWith("./")?[].concat(j()(e.slice(0,-1)),j()(t.slice(2).split(b))):t.startsWith("../")?ne(e.slice(0,-1),t.slice(3),!0):t.startsWith("/")?(t=t.replace(/^(\/)*/,""),j()(t.split(b))):n?[].concat(j()(e.slice(0,-1)),j()(t.split(b))):j()(t.split(b)):Array.isArray(t)?t:e}function je(e,t){var n=e.get(t);if(n!==void 0)return n;var r=e.get(Number(t)||t);if(r!==void 0)return r}function Ae(e){return toString.call(e)==="[object Map]"}function E(e,t){if(t.length===0)return e;var n,r=e;return t.forEach(function(a){n=Ae(r)?je(r,a):r[a],r=n}),n}function He(e,t,n){return e.map(function(r){return E(t,ne(n,r))})}function Se(e){return(e||[]).map(function(t){return Array.isArray(t)?t:typeof t=="string"?["/","./","../"].some(function(n){return t.startsWith(n)})?t:t.includes(b)?t.split(b):t.split("."):[]})}var Fe=p(26851),ke=p.n(Fe);function kt(e){return _typeof(e)=="object"&&e.hasOwnProperty("__COMPUTED__")&&["async","sync"].includes(e.__COMPUTED__)&&e.hasOwnProperty("fn")&&typeof e.fn=="function"&&e.hasOwnProperty("options")&&_typeof(e.options)=="object"}function Et(e){return _typeof(e)=="object"&&["result","loading","timeout","retry","run"].every(function(t){return e.hasOwnProperty(t)})}function Be(e,t){return e.length>t.length?!1:e.every(function(n,r){return n===t[r]})}function Le(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"log",n=typeof e=="function"?e():e instanceof Error?e.stack:e;try{var r;(r=console)[t].apply(r,["[@speedform/reactive] "].concat(j()(Array.isArray(n)?n:[n])))}catch(a){}}function R(e,t,n){var r=e,a=t.length-1;t.forEach(function(i,u){var s=Ae(r);if(u===a){s?r.set(i,n):r[i]=n;return}var o=s?je(r,i):r[i];r=o})}function N(e){return e[te]=!0,e}function P(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:b,r=[];try{return typeof t=="function"&&(t=t.call(e,e)),r=Array.isArray(t)?t:typeof t=="string"?t.split(n):[],r.length>0?E(e,r):e}catch(a){return e}}function Je(e,t){function n(r,a){for(var i in r){var u=r[i];typeof t=="function"&&t({value:u,key:i,parent:r,path:a.concat(i)}),ke()(u)==="object"&&n(u,a.concat(i))}}n(e,[])}function Ye(e,t,n){var r=t==null?n:t;if(typeof r=="function")try{r=r.call(e,e)}catch(a){}return r==null?n==null?S.Root:n:r}function Ee(e,t,n){var r=n.draft,a=n.dependValues,i=n.valuePath,u=n.computedType,s=r;if(typeof e.options.onComputedDraft=="function"){var o=e.options.onComputedDraft.call(r,r,{computedType:u,valuePath:i});o!==void 0&&(s=o)}var f=i.length>=1?i.slice(0,i.length-1):[],c=Ye(r,t.scope,e.options.scope&&e.options.scope(u));try{if(c===S.Current)return P(r,f);if(c===S.Parent)return P(r,i.slice(0,i.length-2));if(c===S.Root)return s;if(c===S.Depends)return Array.isArray(a)?a.map(function(v){return typeof v=="function"?v():v}):[];if(typeof c=="string")return P(r,ne(i,c));if(Array.isArray(c))if(c.length>0&&c[0].startsWith("@")){var l=P(r,[].concat(j()(c[0].substring(1).split(b)),j()(c.slice(1))));return P(r,l)}else return P(r,c);else if(typeof c=="number"){var d=c>i.length-2?i.length-c-1:0;return P(r,i.slice(0,d))}else return r}catch(v){return r}}var Ze=p(77937),K=p.n(Ze),Qe=p(41176),x=p.n(Qe),Xe=p(79862),$=p.n(Xe),Re=function(){function e(t,n,r,a){K()(this,e),$()(this,"options",void 0),this.store=t,this.selfReactiveable=n,this.path=r,this.options=Object.assign({},a)}return x()(e,[{key:"id",get:function(){return this.options.id}},{key:"enable",get:function(){return this.options.enable},set:function(n){this.options.enable=n}},{key:"group",get:function(){return this.options.group}},{key:"async",get:function(){return this.options.async}},{key:"depends",get:function(){return this.options.depends}},{key:"value",get:function(){var n;return E(this.selfReactiveable?(n=this.selfReactiveable)===null||n===void 0?void 0:n.state:this.store.state,this.path)}},{key:"run",value:function(n){var r;return(r=this.store.reactiveable)===null||r===void 0?void 0:r.runComputed(this.id,n)}},{key:"cancel",value:function(){if(this.async)this.value.cancel();else throw new Error("cancel only works for async computed")}}]),e}();function Pe(e,t,n,r){var a=n.options.onCreateComputed;if(typeof a=="function"&&typeof t=="function"){var i=a.call(n,e,t,r);r.scope||(r.scope=S.Current),typeof i=="function"&&(t=i)}}function Q(e,t,n){return Object.assign({loading:!1,timeout:0,retry:0,error:null,result:void 0,progress:0,run:e.reactiveable.markRaw(N(function(r){return e.reactiveable.runComputed(t,Object.assign({},r))})),cancel:e.reactiveable.markRaw(N(function(){console.log("cancel")}))},n)}function qe(e,t,n){var r=e.valuePath,a=e.id,i=e.desc,u=e.resultPath,s=e.getter,o=t.selfReactiveable;n.reactiveable.createComputed({onComputed:function(c){var l=c.draft,d=c.values,v=c.options;if(!n.options.enableComputed||!t.enable&&(v==null?void 0:v.enable)!==!0){n.options.log("Sync computed <".concat(i,"> is disabled"),"warn");return}n.options.log("Run sync computed for : ".concat(i)),e.dependValues=d;var g=Object.assign({},t,v),h=l,A=Ee(n,g,{draft:l,dependValues:d,valuePath:r,computedType:"Computed"}),k=t.initial;try{k=s.call(h,A),n.emit("computed:done",{path:r,id:a,value:k})}catch(C){n.emit("computed:error",{path:r,id:a,error:C})}o?o.setState(function(C){R(C,u,k)}):R(l,u,k)},options:t})}function re(e,t){var n=e.path,r=e.parent,a=e.value,i=a(),u=i.getter,s=i.options;Pe(n,u,t,s);var o=s.selfReactiveable,f=n,c=Oe(n,s),l="".concat(c,"_").concat(n.join(b));t.options.log("Create sync computed: ".concat(l));var d={id:c,desc:l,resultPath:f,isComputedRunning:!1,dependValues:[],valuePath:n,deps:[],getter:u};qe(d,s,t),o||e.replaceValue(E(t.state,n));var v=new Re(t,o,n,s);return s.save&&t.computedObjects.set(c,v),v}var _e=p(90393),O=p.n(_e),et=p(7392),z=p.n(et),tt=p(70125),F=p.n(tt),w=p(67687),nt=p(10346);function rt(e,t,n,r,a){var i=Q(e,r,a),u=E(t,n);Object.assign(u,i,a)}function at(e,t,n){var r=Object.assign({},n),a=r.max,i=a===void 0?100:a,u=r.min,s=u===void 0?0:u,o=r.value,f=o===void 0?0:o;return e(function(c){return R(c,[].concat(j()(t),["progress"]),f)}),{value:function(l){l>i&&(l=i),l0?y-I:0,timeout:G>1?G:Z,progress:0}),!Y){m.next=8;break}throw new Error("Abort");case 8:return Z>0&&(M=setTimeout(function(){W=!0,typeof he=="function"&&he(),T||(clearInterval(ee),B(h,o,{loading:!1,error:"TIMEOUT",timeout:0}))},Z),G>1&&(ee=setInterval(function(){B(h,o,{timeout:G--}),G===0&&clearInterval(ee)},Z/(G+1)))),m.next=11,s.call(A,k,Ge);case 11:if(ye=m.sent,!Y){m.next=14;break}throw new Error("Abort");case 14:W||Object.assign(U,{result:ye,error:null,timeout:0}),m.next=22;break;case 17:m.prev=17,m.t0=m.catch(3),T=!0,W||Object.assign(U,{error:xe(m.t0).message,timeout:0}),y>0&&Object.assign(U,{retry:y-I});case 22:return m.prev=22,clearTimeout(M),clearInterval(ee),(!T||I==y)&&Object.assign(U,{loading:!1}),!T&&!W&&Object.assign(U,{error:null}),B(h,o,U),m.finish(22);case 29:if(!T){m.next=33;break}if(!(y>0&&ve>0&&I is disabled"),"warn"),y.abrupt("return");case 4:if(n.options.log("Run async computed for : ".concat(u)),k=Object.assign({},t,A),!(f&&e.isComputedRunning)){y.next=10;break}return n.options.debug&&n.options.log("Reentry async computed: ".concat(u),"warn"),n.emit("computed:cancel",{path:r,id:a,reason:"reentry"}),y.abrupt("return");case 10:return e.isComputedRunning=!0,e.dependValues=h,y.prev=12,y.next=15,it(g,e,k,n);case 15:return C=y.sent,y.abrupt("return",C);case 17:return y.prev=17,e.isComputedRunning=!1,y.finish(17);case 20:case"end":return y.stop()}},d,null,[[12,,17,20]])}));function l(d){return c.apply(this,arguments)}return l}(),options:t})}function ie(e,t){var n=e.path,r=e.parent,a=e.value,i=a(),u=i.getter,s=i.options;s.async=!0,Pe(n,u,t,s);var o=s.depends,f=o===void 0?[]:o,c=s.selfReactiveable,l=n;f.length==0&&t.options.log("async computed <".concat(n.join("."),"> should specify depends"),"warn");var d=Oe(n,s),v="".concat(d,"_").concat(n.join(b));t.options.log("Create async computed: ".concat(v," (depends=").concat(f.length==0?"None":V(f),")"));var g={id:d,desc:v,resultPath:l,isComputedRunning:!1,dependValues:[],valuePath:n,deps:f,getter:u};ut(g,s,t),c||e.replaceValue(E(t.state,n));var h=new Re(t,c,n,s);return s.save&&t.computedObjects.set(d,h),h}function st(e){return Object.assign({loading:!1,timeout:0,retry:0,error:null,result:void 0,progress:0,run:(0,w.markRaw)(N(function(t){})),cancel:(0,w.markRaw)(N(function(){}))},e)}var ue=p(20649);function se(e,t){var n=e.value,r;return n.__COMPUTED__=="async"?r=ie(e,t):n.__COMPUTED__=="sync"?r=re(e,t):(0,ue.$)(n)?(e.value=function(){return{getter:n,options:{depends:[],initial:void 0,immediate:!0,enable:!0}}},r=ie(e,t)):(e.value=function(){return{getter:n,options:{initial:void 0,enable:!0}}},r=re(e,t)),r&&setTimeout(function(){t.emit("computed:created",r)}),r}var ot=p(71698),oe=p.n(ot),ct=p(44114),L=p.n(ct),lt=p(19365),ft=p.n(lt),dt=p(72904),pt=p.n(dt),vt=p(65523),ce=p.n(vt),ht=p(7122),le=p.n(ht),yt=p(19108),Te=p.n(yt);function fe(e,t,n){if(typeof e!="function")throw new Error("computed getter must be a function");var r=[],a={async:!1,enable:!0,timeout:0,depends:[],immediate:!0,save:!0};if(arguments.length==1)r=[];else if(arguments.length==2)if(Array.isArray(arguments[1]))r=arguments[1];else if(ke()(arguments[1])=="object")Object.assign(a,arguments[1]);else throw new Error("invalid arguments");else arguments.length>=3&&(r=arguments[1],Object.assign(a,arguments[2]));var i=a.async===!0||(0,ue.$)(e)||arguments.length>=2&&Array.isArray(t);a.async=i,a.depends=Se(r);var u=function(){return{getter:e,options:a}};return u.__COMPUTED__=i?"async":"sync",u}function X(){return Math.random().toString(36).slice(2)}var gt=function(){function e(t,n){K()(this,e)}return x()(e,[{key:"state",get:function(){throw new Error("state not implemented.")}},{key:"useState",value:function(n,r){throw new Error("useState not implemented.")}},{key:"setState",value:function(n){throw new Error("setState not implemented.")}},{key:"createAsyncComputed",value:function(n){throw new Error("createAsyncComputed not implemented.")}},{key:"createComputed",value:function(n){throw new Error("createComputed not implemented.")}},{key:"runComputed",value:function(n,r){throw new Error("runComputed not implemented.")}},{key:"markRaw",value:function(n){throw new Error("makeRaw not implemented.")}},{key:"createWatch",value:function(n,r){throw new Error("createWatch not implemented.")}}]),e}(),De=function(e){ce()(n,e);var t=le()(n);function n(r,a){var i,u;return K()(this,n),u=t.call(this,r,a),$()(L()(u),"_stateCtx",void 0),u._stateCtx=(0,w.sharex)(r,{stopArrDep:!1,moduleName:(i=a==null?void 0:a.id)!==null&&i!==void 0?i:X(),onRead:function(o){a!=null&&a.onRead&&a.onRead({path:o.fullKeyPath,value:o.value,parent:o.parent,replaceValue:o.replaceValue})}}),u}return x()(n,[{key:"state",get:function(){return this._stateCtx.state}},{key:"useState",value:function(a,i){var u=this._stateCtx.useState(),s=F()(u,2),o=s[0],f=s[1],c=typeof a=="function"?a(o):o,l=typeof i=="function"?function(d){f(function(v){i.call(v,v,d)})}:f;return[c,l]}},{key:"setState",value:function(a){this._stateCtx.setState(a)}},{key:"createAsyncComputed",value:function(a){var i=a.initial,u=a.onComputed,s=a.depends,o=a.options;return this._stateCtx.mutate({deps:function(c){return typeof s=="function"?s(c):null},fn:function(c,l){l.isFirstCall&&typeof i=="function"&&i(c,l)},task:function(){var f=z()(O()().mark(function l(d){var v,g,h,A;return O()().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:if(v=d.draft,g=d.setState,h=d.input,A=d.extraArgs,typeof i!="function"){C.next=3;break}return C.abrupt("return",u({draft:v,setState:g,values:h,options:Object.assign({},A)}));case 3:case"end":return C.stop()}},l)}));function c(l){return f.apply(this,arguments)}return c}(),immediate:o.immediate,desc:o.id,checkDeadCycle:!1}),o.id}},{key:"createComputed",value:function(a){var i=a.onComputed,u=a.options;return this._stateCtx.mutate({fn:function(o,f){var c=f.input;typeof i=="function"&&i({draft:o,values:c})},task:function(){var s=z()(O()().mark(function f(c){var l,d,v;return O()().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:l=c.draft,d=c.input,v=c.extraArgs,typeof i=="function"&&i({draft:l,values:d,options:v});case 2:case"end":return h.stop()}},f)}));function o(f){return s.apply(this,arguments)}return o}(),desc:u.id,checkDeadCycle:!1}),u.id}},{key:"runComputed",value:function(a,i){var u={desc:a,extraArgs:i};return this._stateCtx.runMutateTask(u)}},{key:"markRaw",value:function(a){return(0,w.markRaw)(a)}},{key:"createWatch",value:function(a,i){var u=this,s=(0,w.watch)(function(f){var c=f.triggerReasons,l=c.map(function(d){return d.keyPath});a(l)},function(){return i==null?void 0:i.map(function(f){return P(u._stateCtx.state,f)})}),o=s.unwatch;return o}}]),n}(gt),mt=p(10948);function Ve(e){function t(n,r,a){var i=Object.assign({id:X(),save:!1},(0,mt.P)(arguments[1])?arguments[1]:arguments[2]);i.depends=Array.isArray(arguments[1])?arguments[1]:[];var u=i.async===!0||(0,ue.$)(n)||Array.isArray(arguments[1]);i.selfReactiveable=new De({value:u?Q(e,i.id,{}):i.initial});var s;u?s={path:["value"],parent:null,value:fe(n,i.depends,i)}:s={path:["value"],parent:null,value:fe(n,i)};var o=se(s,e);return o}return t}var $e=function(e){ce()(n,e);var t=le()(n);function n(r){var a;return K()(this,n),a=t.call(this),$()(L()(a),"_createComputed",void 0),a.store=r,a}return x()(n,[{key:"runGroup",value:function(){var r=z()(O()().mark(function i(u){return O()().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",Promise.all(j()(this.values()).filter(function(f){return f.group==u}).map(function(f){return f.async,f.run()})));case 1:case"end":return o.stop()}},i,this)}));function a(i){return r.apply(this,arguments)}return a}()},{key:"enableGroup",value:function(){var r=z()(O()().mark(function i(u){var s,o,f;return O()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:s=oe()(this.values());try{for(s.s();!(o=s.n()).done;)f=o.value,f.options.enable=u}catch(d){s.e(d)}finally{s.f()}case 2:case"end":return l.stop()}},i,this)}));function a(i){return r.apply(this,arguments)}return a}()},{key:"delete",value:function(a){return ft()(pt()(n.prototype),"delete",this).call(this,a)}},{key:"create",get:function(){return this._createComputed||(this._createComputed=Ve(this.store)),this._createComputed}}]),n}(Te()(Map));function We(e){return typeof e=="function"?e:typeof e=="string"?function(t){return V(t)==V(e.split(b))}:Array.isArray(e)?function(t){return e.map(function(n){return typeof n=="string"?n.split(b):Array.isArray(n)?n:[String(n)]}).some(function(n){return V(t)==V(n)})}:function(){return!1}}function bt(e,t,n){var r=Object.assign({depends:We(t),enable:!0},n),a=function(){return{listener:e,options:r}};return a.__COMPUTED__="watch",a}function de(e){return function(t,n,r){var a=Object.assign({lazy:!1},r),i=a.lazy;if(i)var u=Se(n),s=u.map(function(o){if(Array.isArray(o)&&typeof E(e.state,o)=="function")return o}).filter(function(o){return o});return e.reactiveable.createWatch(t,n)}}var Ct=p(70079);function pe(e,t){t.options.log("install watch for <".concat(e.path.length==0?"Dynamic":e.path.join(b),">"));var n=e.value();n.options.selfPath=e.path;var r=t.watchObjects.add(n),a=n.options.context;return a?a.setState(function(i){i.value=n.options.initial}):(e.replaceValue(n.options.initial),t.stateCtx.setState(function(i){R(i,e.path,n.options.initial)})),r}function Ie(e){return function(t,n,r){(0,Ct.useEffect)(function(){var a={path:["value"],parent:void 0,value:function(){var s={listener:t,options:Object.assign({depends:We(n),context:(0,w.sharex)({value:0}),selfPath:["value"],initial:0,enable:!0,scope:S.Depends},r)};return s}},i=pe(a,e);return function(){e.watchObjects.delete(i.id)}},[n])}}var Me=function(){function e(t,n){if(K()(this,e),$()(this,"_cache",void 0),$()(this,"_listener",void 0),$()(this,"_options",void 0),this.store=t,this._options=Object.assign({enable:!0,selfPath:[],group:void 0,context:void 0,initial:void 0},n.options),typeof this._options.depends!="function")throw new Error("watch options.depends must be a function");if(!this._options.id){var r=this._options.selfPath;this._options.id=this._options.id||this._options.context?X():V(r)}this._listener=n.listener}return x()(e,[{key:"id",get:function(){return this._options.id}},{key:"options",get:function(){return this._options}},{key:"selfPath",get:function(){return this._options.selfPath}},{key:"depends",get:function(){return this._options.depends}},{key:"enable",get:function(){return this._options.enable},set:function(n){this._options.enable=n}},{key:"cache",get:function(){return this._cache||(this._cache={}),this._cache}},{key:"value",get:function(){var n=this._options.context?this._options.context:this.store.state;return E((0,w.getSnap)(n),this.selfPath)}},{key:"getName",value:function(){return this._options.context?this.id:this.selfPath.join(b)}},{key:"reset",value:function(){this._cache={}}},{key:"run",value:function(n,r){var a=this;if(!this.enable){this.store.options.log("WatchObject <".concat(this.getName(),"> is disabled"));return}try{var i=this._listener.call(this,r,n,this);i!==void 0&&(this._options.context?this._options.context.setState(function(u){u.value=i}):this.store.setState(function(u){R(u,a.selfPath,i)}))}catch(u){}}}]),e}(),Ue=function(e){ce()(n,e);var t=le()(n);function n(r){var a;return K()(this,n),a=t.call(this),$()(L()(a),"_off",void 0),$()(L()(a),"_enable",!0),a.store=r,r.on("created",a.onStateCreated.bind(L()(a))),a}return x()(n,[{key:"onStateCreated",value:function(){this.createWacher()}},{key:"enable",get:function(){return this._enable},set:function(a){this._enable=a}},{key:"createWacher",value:function(){var a=this,i=(0,w.watch)(function(s){var o=s.triggerReasons;if(a._enable){var f=o.map(function(c){return c.keyPath});f.forEach(function(c){var l=E(a.store.state,c),d=oe()(a.values()),v;try{for(d.s();!(v=d.n()).done;){var g=v.value;g.depends(c,l)&&g.run(c,l)}}catch(h){d.e(h)}finally{d.f()}})}},function(){return[a.store.state]}),u=i.unwatch;this._off=u}},{key:"reset",value:function(){this._off&&this._off(),this.createWacher()}},{key:"add",value:function(a){var i=new Me(this.store,a);return this.set(i.id,i),i}},{key:"enableGroup",value:function(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,u=oe()(this.values()),s;try{for(u.s();!(s=u.n()).done;){var o=s.value;o.options.group==a&&(o.options.enable=i)}}catch(f){u.e(f)}finally{u.f()}}}]),n}(Te()(Map));function Ot(e,t){var n=e.path,r=e.value,a=V(n);typeof r=="function"&&!t._replacedKeys[a]&&!we(r)&&(t._replacedKeys[a]=!0,r.__COMPUTED__=="watch"?pe(e,t):se(e,t))}function wt(e){return function(t,n){var r=e.reactiveable.useState;if(t==null)return r();var a=r(),i=F()(a,2),u=i[0],s=i[1],o=t(u),f=s;return typeof n=="function"&&(f=function(l){s(function(d){n.call(d,d,l)})}),[o,f]}}function jt(e){return function(t){e.reactiveable.setState(function(n){t(n)})}}var At=p(24222);function St(e,t){var n=Object.assign({id:X(),debug:!0,onceComputed:!1,enableComputed:!0,scope:function(){return S.Current}},t);n.log=function(){n.debug&&Le.apply(void 0,arguments)};var r=(0,At.Z)(),a={options:n,on:r.on,off:r.off,emit:r.emit,_replacedKeys:{}};return a.computedObjects=new $e(a),a.watchObjects=new Ue(a),a.reactiveable=new De(e,{id:n.id,onRead:function(u){Ot(u,a)}}),a.state=a.reactiveable.state,a.emit("created"),a.useState=wt(a),a.setState=jt(a),a.enableComputed=function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return a.options.enableComputed=i},a.watch=de(a),a.useWatch=Ie(a),a.watch=de(a),a.createComputed=Ve(a),n.onceComputed&&Je(a.state),a}},43095:function(Ce){function D(p){var S=new Error("Cannot find module '"+p+"'");throw S.code="MODULE_NOT_FOUND",S}D.keys=function(){return[]},D.resolve=D,D.id=43095,Ce.exports=D}}]); diff --git a/98.86718db2.async.js b/98.86718db2.async.js deleted file mode 100644 index 19bc6d2..0000000 --- a/98.86718db2.async.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkspeedform_docs=self.webpackChunkspeedform_docs||[]).push([[98],{73894:function(Ce,V,p){"use strict";p.r(V),p.d(V,{$:function(){return w.$},ComputedObjects:function(){return Ve},ComputedScopeRef:function(){return S},OBJECT_PATH_DELIMITER:function(){return b},SKIP_COMPUTED:function(){return te},WatchObject:function(){return Ie},WatchObjects:function(){return Me},asyncComputedObject:function(){return st},computed:function(){return fe},createAsyncComputedMutate:function(){return ie},createComputedMutate:function(){return re},createObject:function(){return w.share},createStore:function(){return St},createUseWatch:function(){return We},createWatch:function(){return de},getSnap:function(){return w.getSnap},getVal:function(){return R},getValueByPath:function(){return P},installComputed:function(){return se},installWatch:function(){return pe},isIncludePath:function(){return Be},isSkipComputed:function(){return we},markRaw:function(){return w.markRaw},setAsyncComputedObject:function(){return rt},setVal:function(){return E},skipComputed:function(){return N},watch:function(){return bt}});var S=function(t){return t.Root="root",t.Current="current",t.Parent="parent",t.Depends="depends",t.Self="self",t}({});function $(t){return(t||["ROOT"]).map(function(e){return Array.isArray(e)?e.join("."):e}).join("_")}function Oe(t,e){var n="";return e.id?n=e.id:n=$(t),n}function Ke(t){return t instanceof Error?t:new Error(t)}var b=".",te=Symbol("SKIP_COMPUTED");function we(t){return t[te]===!0}var xe=p(79664),j=p.n(xe);function ne(t,e,n){if(!Array.isArray(t))throw new Error("curPath must be an array");return e==="self"?t:e==="root"?[]:e==="parent"?t.slice(0,-2):e==="current"?t.slice(0,-1):typeof e=="string"?e.startsWith("./")?[].concat(j()(t.slice(0,-1)),j()(e.slice(2).split(b))):e.startsWith("../")?ne(t.slice(0,-1),e.slice(3),!0):e.startsWith("/")?(e=e.replace(/^(\/)*/,""),j()(e.split(b))):n?[].concat(j()(t.slice(0,-1)),j()(e.split(b))):j()(e.split(b)):Array.isArray(e)?e:t}function je(t,e){var n=t.get(e);if(n!==void 0)return n;var r=t.get(Number(e)||e);if(r!==void 0)return r}function Ae(t){return toString.call(t)==="[object Map]"}function R(t,e){if(e.length===0)return t;var n,r=t;return e.forEach(function(a){n=Ae(r)?je(r,a):r[a],r=n}),n}function He(t,e,n){return t.map(function(r){return R(e,ne(n,r))})}function Fe(t){return(t||[]).map(function(e){return Array.isArray(e)?e:typeof e=="string"?["/","./","../"].some(function(n){return e.startsWith(n)})?e:e.includes(b)?e.split(b):e.split("."):[]})}var ze=p(26851),Se=p.n(ze);function kt(t){return _typeof(t)=="object"&&t.hasOwnProperty("__COMPUTED__")&&["async","sync"].includes(t.__COMPUTED__)&&t.hasOwnProperty("fn")&&typeof t.fn=="function"&&t.hasOwnProperty("options")&&_typeof(t.options)=="object"}function Et(t){return _typeof(t)=="object"&&["result","loading","timeout","retry","run"].every(function(e){return t.hasOwnProperty(e)})}function Be(t,e){return t.length>e.length?!1:t.every(function(n,r){return n===e[r]})}function Le(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"log",n=typeof t=="function"?t():t instanceof Error?t.stack:t;try{var r;(r=console)[e].apply(r,["[@speedform/reactive] "].concat(j()(Array.isArray(n)?n:[n])))}catch(a){}}function E(t,e,n){var r=t,a=e.length-1;e.forEach(function(i,u){var s=Ae(r);if(u===a){s?r.set(i,n):r[i]=n;return}var c=s?je(r,i):r[i];r=c})}function N(t){return t[te]=!0,t}function P(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:b,r=[];try{return typeof e=="function"&&(e=e.call(t,t)),r=Array.isArray(e)?e:typeof e=="string"?e.split(n):[],r.length>0?R(t,r):t}catch(a){return t}}function Je(t,e){function n(r,a){for(var i in r){var u=r[i];typeof e=="function"&&e({value:u,key:i,parent:r,path:a.concat(i)}),Se()(u)==="object"&&n(u,a.concat(i))}}n(t,[])}function Ye(t,e,n){var r=e==null?n:e;if(typeof r=="function")try{r=r.call(t,t)}catch(a){}return r==null?n==null?S.Root:n:r}function ke(t,e,n){var r=n.draft,a=n.dependValues,i=n.valuePath,u=n.computedType,s=r;if(typeof t.options.onComputedDraft=="function"){var c=t.options.onComputedDraft.call(r,r,{computedType:u,valuePath:i});c!==void 0&&(s=c)}var f=i.length>=1?i.slice(0,i.length-1):[],o=Ye(r,e.scope,t.options.scope&&t.options.scope(u));try{if(o===S.Current)return P(r,f);if(o===S.Parent)return P(r,i.slice(0,i.length-2));if(o===S.Root)return s;if(o===S.Depends)return Array.isArray(a)?a.map(function(v){return typeof v=="function"?v():v}):[];if(typeof o=="string")return P(r,ne(i,o));if(Array.isArray(o))if(o.length>0&&o[0].startsWith("@")){var l=P(r,[].concat(j()(o[0].substring(1).split(b)),j()(o.slice(1))));return P(r,l)}else return P(r,o);else if(typeof o=="number"){var d=o>i.length-2?i.length-o-1:0;return P(r,i.slice(0,d))}else return r}catch(v){return r}}var Ze=p(77937),K=p.n(Ze),Qe=p(41176),x=p.n(Qe),Xe=p(79862),W=p.n(Xe),Ee=function(){function t(e,n,r,a){K()(this,t),W()(this,"options",void 0),this.store=e,this.selfReactiveable=n,this.path=r,this.options=Object.assign({},a)}return x()(t,[{key:"id",get:function(){return this.options.id}},{key:"enable",get:function(){return this.options.enable},set:function(n){this.options.enable=n}},{key:"group",get:function(){return this.options.group}},{key:"async",get:function(){return this.options.async}},{key:"depends",get:function(){return this.options.depends}},{key:"value",get:function(){var n;return R(this.selfReactiveable?(n=this.selfReactiveable)===null||n===void 0?void 0:n.state:this.store.state,this.path)}},{key:"run",value:function(n){var r;return(r=this.store.reactiveable)===null||r===void 0?void 0:r.runComputed(this.id,n)}},{key:"cancel",value:function(){if(this.async)this.value.cancel();else throw new Error("cancel only works for async computed")}}]),t}();function Re(t,e,n,r){var a=n.options.onCreateComputed;if(typeof a=="function"&&typeof e=="function"){var i=a.call(n,t,e,r);r.scope||(r.scope=S.Current),typeof i=="function"&&(e=i)}}function Q(t,e,n){return Object.assign({loading:!1,timeout:0,retry:0,error:null,result:void 0,progress:0,run:t.reactiveable.markRaw(N(function(r){return t.reactiveable.runComputed(e,Object.assign({},r))})),cancel:t.reactiveable.markRaw(N(function(){console.log("cancel")}))},n)}function qe(t,e,n){var r=t.valuePath,a=t.id,i=t.desc,u=t.resultPath,s=t.getter,c=e.selfReactiveable;n.reactiveable.createComputed({onComputed:function(o){var l=o.draft,d=o.values,v=o.options;if(!n.options.enableComputed||!e.enable&&(v==null?void 0:v.enable)!==!0){n.options.log("Sync computed <".concat(i,"> is disabled"),"warn");return}n.options.log("Run sync computed for : ".concat(i)),t.dependValues=d;var y=Object.assign({},e,v),h=l,A=ke(n,y,{draft:l,dependValues:d,valuePath:r,computedType:"Computed"}),k=e.initial;try{k=s.call(h,A),n.emit("computed:done",{path:r,id:a,value:k})}catch(C){n.emit("computed:error",{path:r,id:a,error:C})}c?c.setState(function(C){E(C,u,k)}):E(l,u,k)},options:e})}function re(t,e){var n=t.path,r=t.parent,a=t.value,i=a(),u=i.getter,s=i.options;Re(n,u,e,s);var c=s.selfReactiveable,f=n,o=Oe(n,s),l="".concat(o,"_").concat(n.join(b));e.options.log("Create sync computed: ".concat(l));var d={id:o,desc:l,resultPath:f,isComputedRunning:!1,dependValues:[],valuePath:n,deps:[],getter:u};qe(d,s,e),c||t.replaceValue(R(e.state,n));var v=new Ee(e,c,n,s);return s.save&&e.computedObjects.set(o,v),v}var _e=p(90393),O=p.n(_e),et=p(7392),H=p.n(et),tt=p(70125),z=p.n(tt),w=p(67687),nt=p(10346);function rt(t,e,n,r,a){var i=Q(t,r,a),u=R(e,n);Object.assign(u,i,a)}function at(t,e,n){var r=Object.assign({},n),a=r.max,i=a===void 0?100:a,u=r.min,s=u===void 0?0:u,c=r.value,f=c===void 0?0:c;return t(function(o){return E(o,[].concat(j()(e),["progress"]),f)}),{value:function(l){l>i&&(l=i),l0?g-I:0,timeout:U>1?U:Z,progress:0}),!Y){m.next=8;break}throw new Error("Abort");case 8:return Z>0&&(M=setTimeout(function(){D=!0,typeof he=="function"&&he(),console.log("hasTimeout=",D),T||(clearInterval(ee),B(h,c,{loading:!1,error:"TIMEOUT",timeout:0}))},Z),U>0&&(ee=setInterval(function(){B(h,c,{timeout:U--}),U===0&&clearInterval(ee),console.log("countdown=",U)},Z/U))),m.next=11,s.call(A,k,Ue);case 11:if(ge=m.sent,!Y){m.next=14;break}throw new Error("Abort");case 14:D||Object.assign(G,{result:ge,error:null,timeout:0}),m.next=22;break;case 17:m.prev=17,m.t0=m.catch(3),T=!0,D||Object.assign(G,{error:Ke(m.t0).message,timeout:0}),g>0&&Object.assign(G,{retry:g-I});case 22:return m.prev=22,clearTimeout(M),clearInterval(ee),(!T||I==g)&&Object.assign(G,{loading:!1}),!T&&!D&&Object.assign(G,{error:null}),B(h,c,G),m.finish(22);case 29:if(!T){m.next=33;break}if(!(g>0&&ve>0&&I is disabled"),"warn"),g.abrupt("return");case 4:if(n.options.log("Run async computed for : ".concat(u)),k=Object.assign({},e,A),!(f&&t.isComputedRunning)){g.next=10;break}return n.options.debug&&n.options.log("Reentry async computed: ".concat(u),"warn"),n.emit("computed:cancel",{path:r,id:a,reason:"reentry"}),g.abrupt("return");case 10:return t.isComputedRunning=!0,t.dependValues=h,g.prev=12,g.next=15,it(y,t,k,n);case 15:return C=g.sent,g.abrupt("return",C);case 17:return g.prev=17,t.isComputedRunning=!1,g.finish(17);case 20:case"end":return g.stop()}},d,null,[[12,,17,20]])}));function l(d){return o.apply(this,arguments)}return l}(),options:e})}function ie(t,e){var n=t.path,r=t.parent,a=t.value,i=a(),u=i.getter,s=i.options;s.async=!0,Re(n,u,e,s);var c=s.depends,f=c===void 0?[]:c,o=s.selfReactiveable,l=n;f.length==0&&e.options.log("async computed <".concat(n.join("."),"> should specify depends"),"warn");var d=Oe(n,s),v="".concat(d,"_").concat(n.join(b));e.options.log("Create async computed: ".concat(v," (depends=").concat(f.length==0?"None":$(f),")"));var y={id:d,desc:v,resultPath:l,isComputedRunning:!1,dependValues:[],valuePath:n,deps:f,getter:u};ut(y,s,e),o||t.replaceValue(R(e.state,n));var h=new Ee(e,o,n,s);return s.save&&e.computedObjects.set(d,h),h}function st(t){return Object.assign({loading:!1,timeout:0,retry:0,error:null,result:void 0,progress:0,run:(0,w.markRaw)(N(function(e){})),cancel:(0,w.markRaw)(N(function(){}))},t)}var ue=p(20649);function se(t,e){var n=t.value,r;return n.__COMPUTED__=="async"?r=ie(t,e):n.__COMPUTED__=="sync"?r=re(t,e):(0,ue.$)(n)?(t.value=function(){return{getter:n,options:{depends:[],initial:void 0,immediate:!0,enable:!0}}},r=ie(t,e)):(t.value=function(){return{getter:n,options:{initial:void 0,enable:!0}}},r=re(t,e)),r&&setTimeout(function(){e.emit("computed:created",r)}),r}var ot=p(71698),oe=p.n(ot),ct=p(44114),L=p.n(ct),lt=p(19365),ft=p.n(lt),dt=p(72904),pt=p.n(dt),vt=p(65523),ce=p.n(vt),ht=p(7122),le=p.n(ht),gt=p(19108),Pe=p.n(gt);function fe(t,e,n){if(typeof t!="function")throw new Error("computed getter must be a function");var r=[],a={async:!1,enable:!0,timeout:0,depends:[],immediate:!0,save:!0};if(arguments.length==1)r=[];else if(arguments.length==2)if(Array.isArray(arguments[1]))r=arguments[1];else if(Se()(arguments[1])=="object")Object.assign(a,arguments[1]);else throw new Error("invalid arguments");else arguments.length>=3&&(r=arguments[1],Object.assign(a,arguments[2]));var i=a.async===!0||(0,ue.$)(t)||arguments.length>=2&&Array.isArray(e);a.async=i,a.depends=Fe(r);var u=function(){return{getter:t,options:a}};return u.__COMPUTED__=i?"async":"sync",u}function X(){return Math.random().toString(36).slice(2)}var yt=function(){function t(e,n){K()(this,t)}return x()(t,[{key:"state",get:function(){throw new Error("state not implemented.")}},{key:"useState",value:function(n,r){throw new Error("useState not implemented.")}},{key:"setState",value:function(n){throw new Error("setState not implemented.")}},{key:"createAsyncComputed",value:function(n){throw new Error("createAsyncComputed not implemented.")}},{key:"createComputed",value:function(n){throw new Error("createComputed not implemented.")}},{key:"runComputed",value:function(n,r){throw new Error("runComputed not implemented.")}},{key:"markRaw",value:function(n){throw new Error("makeRaw not implemented.")}},{key:"createWatch",value:function(n,r){throw new Error("createWatch not implemented.")}}]),t}(),Te=function(t){ce()(n,t);var e=le()(n);function n(r,a){var i,u;return K()(this,n),u=e.call(this,r,a),W()(L()(u),"_stateCtx",void 0),u._stateCtx=(0,w.sharex)(r,{stopArrDep:!1,moduleName:(i=a==null?void 0:a.id)!==null&&i!==void 0?i:X(),onRead:function(c){a!=null&&a.onRead&&a.onRead({path:c.fullKeyPath,value:c.value,parent:c.parent,replaceValue:c.replaceValue})}}),u}return x()(n,[{key:"state",get:function(){return this._stateCtx.state}},{key:"useState",value:function(a,i){var u=this._stateCtx.useState(),s=z()(u,2),c=s[0],f=s[1],o=typeof a=="function"?a(c):c,l=typeof i=="function"?function(d){f(function(v){i.call(v,v,d)})}:f;return[o,l]}},{key:"setState",value:function(a){this._stateCtx.setState(a)}},{key:"createAsyncComputed",value:function(a){var i=a.initial,u=a.onComputed,s=a.depends,c=a.options;return this._stateCtx.mutate({deps:function(o){return typeof s=="function"?s(o):null},fn:function(o,l){l.isFirstCall&&typeof i=="function"&&i(o,l)},task:function(){var f=H()(O()().mark(function l(d){var v,y,h,A;return O()().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:if(v=d.draft,y=d.setState,h=d.input,A=d.extraArgs,typeof i!="function"){C.next=3;break}return C.abrupt("return",u({draft:v,setState:y,values:h,options:Object.assign({},A)}));case 3:case"end":return C.stop()}},l)}));function o(l){return f.apply(this,arguments)}return o}(),immediate:c.immediate,desc:c.id,checkDeadCycle:!1}),c.id}},{key:"createComputed",value:function(a){var i=a.onComputed,u=a.options;return this._stateCtx.mutate({fn:function(c,f){var o=f.input;typeof i=="function"&&i({draft:c,values:o})},task:function(){var s=H()(O()().mark(function f(o){var l,d,v;return O()().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:l=o.draft,d=o.input,v=o.extraArgs,typeof i=="function"&&i({draft:l,values:d,options:v});case 2:case"end":return h.stop()}},f)}));function c(f){return s.apply(this,arguments)}return c}(),desc:u.id,checkDeadCycle:!1}),u.id}},{key:"runComputed",value:function(a,i){var u={desc:a,extraArgs:i};return this._stateCtx.runMutateTask(u)}},{key:"markRaw",value:function(a){return(0,w.markRaw)(a)}},{key:"createWatch",value:function(a,i){var u=this,s=(0,w.watch)(function(f){var o=f.triggerReasons,l=o.map(function(d){return d.keyPath});a(l)},function(){return i==null?void 0:i.map(function(f){return P(u._stateCtx.state,f)})}),c=s.unwatch;return c}}]),n}(yt),mt=p(10948);function De(t){function e(n,r,a){var i=Object.assign({id:X(),save:!1},(0,mt.P)(arguments[1])?arguments[1]:arguments[2]);i.depends=Array.isArray(arguments[1])?arguments[1]:[];var u=i.async===!0||(0,ue.$)(n)||Array.isArray(arguments[1]);i.selfReactiveable=new Te({value:u?Q(t,i.id,{}):i.initial});var s;u?s={path:["value"],parent:null,value:fe(n,i.depends,i)}:s={path:["value"],parent:null,value:fe(n,i)};var c=se(s,t);return c}return e}var Ve=function(t){ce()(n,t);var e=le()(n);function n(r){var a;return K()(this,n),a=e.call(this),W()(L()(a),"_createComputed",void 0),a.store=r,a}return x()(n,[{key:"runGroup",value:function(){var r=H()(O()().mark(function i(u){return O()().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.abrupt("return",Promise.all(j()(this.values()).filter(function(f){return f.group==u}).map(function(f){return f.async,f.run()})));case 1:case"end":return c.stop()}},i,this)}));function a(i){return r.apply(this,arguments)}return a}()},{key:"enableGroup",value:function(){var r=H()(O()().mark(function i(u){var s,c,f;return O()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:s=oe()(this.values());try{for(s.s();!(c=s.n()).done;)f=c.value,f.options.enable=u}catch(d){s.e(d)}finally{s.f()}case 2:case"end":return l.stop()}},i,this)}));function a(i){return r.apply(this,arguments)}return a}()},{key:"delete",value:function(a){return ft()(pt()(n.prototype),"delete",this).call(this,a)}},{key:"create",get:function(){return this._createComputed||(this._createComputed=De(this.store)),this._createComputed}}]),n}(Pe()(Map));function $e(t){return typeof t=="function"?t:typeof t=="string"?function(e){return $(e)==$(t.split(b))}:Array.isArray(t)?function(e){return t.map(function(n){return typeof n=="string"?n.split(b):Array.isArray(n)?n:[String(n)]}).some(function(n){return $(e)==$(n)})}:function(){return!1}}function bt(t,e,n){var r=Object.assign({depends:$e(e),enable:!0},n),a=function(){return{listener:t,options:r}};return a.__COMPUTED__="watch",a}function de(t){return function(e,n){return t.reactiveable.createWatch(e,n)}}var Ct=p(70079);function pe(t,e){e.options.log("install watch for <".concat(t.path.length==0?"Dynamic":t.path.join(b),">"));var n=t.value();n.options.selfPath=t.path;var r=e.watchObjects.add(n),a=n.options.context;return a?a.setState(function(i){i.value=n.options.initial}):(t.replaceValue(n.options.initial),e.stateCtx.setState(function(i){E(i,t.path,n.options.initial)})),r}function We(t){return function(e,n,r){(0,Ct.useEffect)(function(){var a={path:["value"],parent:void 0,value:function(){var s={listener:e,options:Object.assign({depends:$e(n),context:(0,w.sharex)({value:0}),selfPath:["value"],initial:0,enable:!0,scope:S.Depends},r)};return s}},i=pe(a,t);return function(){t.watchObjects.delete(i.id)}},[n])}}var Ie=function(){function t(e,n){if(K()(this,t),W()(this,"_cache",void 0),W()(this,"_listener",void 0),W()(this,"_options",void 0),this.store=e,this._options=Object.assign({enable:!0,selfPath:[],group:void 0,context:void 0,initial:void 0},n.options),typeof this._options.depends!="function")throw new Error("watch options.depends must be a function");if(!this._options.id){var r=this._options.selfPath;this._options.id=this._options.id||this._options.context?X():$(r)}this._listener=n.listener}return x()(t,[{key:"id",get:function(){return this._options.id}},{key:"options",get:function(){return this._options}},{key:"selfPath",get:function(){return this._options.selfPath}},{key:"depends",get:function(){return this._options.depends}},{key:"enable",get:function(){return this._options.enable},set:function(n){this._options.enable=n}},{key:"cache",get:function(){return this._cache||(this._cache={}),this._cache}},{key:"value",get:function(){var n=this._options.context?this._options.context:this.store.state;return R((0,w.getSnap)(n),this.selfPath)}},{key:"getName",value:function(){return this._options.context?this.id:this.selfPath.join(b)}},{key:"reset",value:function(){this._cache={}}},{key:"run",value:function(n,r){var a=this;if(!this.enable){this.store.options.log("WatchObject <".concat(this.getName(),"> is disabled"));return}try{var i=this._listener.call(this,r,n,this);i!==void 0&&(this._options.context?this._options.context.setState(function(u){u.value=i}):this.store.setState(function(u){E(u,a.selfPath,i)}))}catch(u){}}}]),t}(),Me=function(t){ce()(n,t);var e=le()(n);function n(r){var a;return K()(this,n),a=e.call(this),W()(L()(a),"_off",void 0),W()(L()(a),"_enable",!0),a.store=r,r.on("created",a.onStateCreated.bind(L()(a))),a}return x()(n,[{key:"onStateCreated",value:function(){this.createWacher()}},{key:"enable",get:function(){return this._enable},set:function(a){this._enable=a}},{key:"createWacher",value:function(){var a=this,i=(0,w.watch)(function(s){var c=s.triggerReasons;if(a._enable){var f=c.map(function(o){return o.keyPath});f.forEach(function(o){var l=R(a.store.state,o),d=oe()(a.values()),v;try{for(d.s();!(v=d.n()).done;){var y=v.value;y.depends(o,l)&&y.run(o,l)}}catch(h){d.e(h)}finally{d.f()}})}},function(){return[a.store.state]}),u=i.unwatch;this._off=u}},{key:"reset",value:function(){this._off&&this._off(),this.createWacher()}},{key:"add",value:function(a){var i=new Ie(this.store,a);return this.set(i.id,i),i}},{key:"enableGroup",value:function(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,u=oe()(this.values()),s;try{for(u.s();!(s=u.n()).done;){var c=s.value;c.options.group==a&&(c.options.enable=i)}}catch(f){u.e(f)}finally{u.f()}}}]),n}(Pe()(Map));function Ot(t,e){var n=t.path,r=t.value,a=$(n);typeof r=="function"&&!e._replacedKeys[a]&&!we(r)&&(e._replacedKeys[a]=!0,r.__COMPUTED__=="watch"?pe(t,e):se(t,e))}function wt(t){return function(e,n){var r=t.reactiveable.useState;if(e==null)return r();var a=r(),i=z()(a,2),u=i[0],s=i[1],c=e(u),f=s;return typeof n=="function"&&(f=function(l){s(function(d){n.call(d,d,l)})}),[c,f]}}function jt(t){return function(e){t.reactiveable.setState(function(n){e(n)})}}var At=p(24222);function St(t,e){var n=Object.assign({id:X(),debug:!0,onceComputed:!1,enableComputed:!0,scope:function(){return S.Current}},e);n.log=function(){n.debug&&Le.apply(void 0,arguments)};var r=(0,At.Z)(),a={options:n,on:r.on,off:r.off,emit:r.emit,_replacedKeys:{}};return a.computedObjects=new Ve(a),a.watchObjects=new Me(a),a.reactiveable=new Te(t,{id:n.id,onRead:function(u){Ot(u,a)}}),a.state=a.reactiveable.state,a.emit("created"),a.useState=wt(a),a.setState=jt(a),a.enableComputed=function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return a.options.enableComputed=i},a.watch=de(a),a.useWatch=We(a),a.watch=de(a),a.createComputed=De(a),n.onceComputed&&Je(a.state),a}},43095:function(Ce){function V(p){var S=new Error("Cannot find module '"+p+"'");throw S.code="MODULE_NOT_FOUND",S}V.keys=function(){return[]},V.resolve=V,V.id=43095,Ce.exports=V}}]); diff --git a/api/index.html b/api/index.html index 33476eb..3ede91e 100644 --- a/api/index.html +++ b/api/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/core/example-captcha/index.html b/core/example-captcha/index.html index 33476eb..3ede91e 100644 --- a/core/example-captcha/index.html +++ b/core/example-captcha/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/core/example-login/index.html b/core/example-login/index.html index 33476eb..3ede91e 100644 --- a/core/example-login/index.html +++ b/core/example-login/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/core/field-dirty/index.html b/core/field-dirty/index.html index 33476eb..3ede91e 100644 --- a/core/field-dirty/index.html +++ b/core/field-dirty/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/core/field-group/index.html b/core/field-group/index.html index 33476eb..3ede91e 100644 --- a/core/field-group/index.html +++ b/core/field-group/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/core/field-related/index.html b/core/field-related/index.html index 33476eb..3ede91e 100644 --- a/core/field-related/index.html +++ b/core/field-related/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/core/field-render/index.html b/core/field-render/index.html index 33476eb..3ede91e 100644 --- a/core/field-render/index.html +++ b/core/field-render/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/core/field-validate/index.html b/core/field-validate/index.html index 33476eb..3ede91e 100644 --- a/core/field-validate/index.html +++ b/core/field-validate/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/core/field/index.html b/core/field/index.html index 33476eb..3ede91e 100644 --- a/core/field/index.html +++ b/core/field/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/core/form-action/index.html b/core/form-action/index.html index 33476eb..3ede91e 100644 --- a/core/form-action/index.html +++ b/core/form-action/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/core/form-create/index.html b/core/form-create/index.html index 33476eb..3ede91e 100644 --- a/core/form-create/index.html +++ b/core/form-create/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/core/form-dirty/index.html b/core/form-dirty/index.html index 33476eb..3ede91e 100644 --- a/core/form-dirty/index.html +++ b/core/form-dirty/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/core/form-submit/index.html b/core/form-submit/index.html index 33476eb..3ede91e 100644 --- a/core/form-submit/index.html +++ b/core/form-submit/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/core/form-validate/index.html b/core/form-validate/index.html index 33476eb..3ede91e 100644 --- a/core/form-validate/index.html +++ b/core/form-validate/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/core/history/index.html b/core/history/index.html index 33476eb..3ede91e 100644 --- a/core/history/index.html +++ b/core/history/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/core/index.html b/core/index.html index 33476eb..3ede91e 100644 --- a/core/index.html +++ b/core/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/core/install/index.html b/core/install/index.html index 33476eb..3ede91e 100644 --- a/core/install/index.html +++ b/core/install/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/core/question/index.html b/core/question/index.html index 33476eb..3ede91e 100644 --- a/core/question/index.html +++ b/core/question/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/core/quick-start/index.html b/core/quick-start/index.html index 33476eb..3ede91e 100644 --- a/core/quick-start/index.html +++ b/core/quick-start/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/index.html b/index.html index 33476eb..3ede91e 100644 --- a/index.html +++ b/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/reactive/computed-async/index.html b/reactive/computed-async/index.html index 33476eb..3ede91e 100644 --- a/reactive/computed-async/index.html +++ b/reactive/computed-async/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/reactive/computed-intro/index.html b/reactive/computed-intro/index.html index 33476eb..3ede91e 100644 --- a/reactive/computed-intro/index.html +++ b/reactive/computed-intro/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/reactive/computed-objects/index.html b/reactive/computed-objects/index.html index 33476eb..3ede91e 100644 --- a/reactive/computed-objects/index.html +++ b/reactive/computed-objects/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/reactive/computed-options/index.html b/reactive/computed-options/index.html index 33476eb..3ede91e 100644 --- a/reactive/computed-options/index.html +++ b/reactive/computed-options/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/reactive/computed-sync/index.html b/reactive/computed-sync/index.html index 33476eb..3ede91e 100644 --- a/reactive/computed-sync/index.html +++ b/reactive/computed-sync/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/reactive/index.html b/reactive/index.html index 33476eb..3ede91e 100644 --- a/reactive/index.html +++ b/reactive/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/reactive/render/index.html b/reactive/render/index.html index 33476eb..3ede91e 100644 --- a/reactive/render/index.html +++ b/reactive/render/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/reactive/state/index.html b/reactive/state/index.html index 33476eb..3ede91e 100644 --- a/reactive/state/index.html +++ b/reactive/state/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/reactive/store/index.html b/reactive/store/index.html index 33476eb..3ede91e 100644 --- a/reactive/store/index.html +++ b/reactive/store/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/reactive/watch-computed-diff/index.html b/reactive/watch-computed-diff/index.html index 33476eb..3ede91e 100644 --- a/reactive/watch-computed-diff/index.html +++ b/reactive/watch-computed-diff/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/reactive/watch-objects/index.html b/reactive/watch-objects/index.html index 33476eb..3ede91e 100644 --- a/reactive/watch-objects/index.html +++ b/reactive/watch-objects/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/reactive/watch-use/index.html b/reactive/watch-use/index.html index 33476eb..3ede91e 100644 --- a/reactive/watch-use/index.html +++ b/reactive/watch-use/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/reactive/watch/index.html b/reactive/watch/index.html index 33476eb..3ede91e 100644 --- a/reactive/watch/index.html +++ b/reactive/watch/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/render/index.html b/render/index.html index 33476eb..3ede91e 100644 --- a/render/index.html +++ b/render/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/umi.70a4541e.js b/umi.9325d68f.js similarity index 99% rename from umi.70a4541e.js rename to umi.9325d68f.js index e7ed341..aa04b70 100644 --- a/umi.70a4541e.js +++ b/umi.9325d68f.js @@ -2258,7 +2258,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}s.exports=v,s.exports.__esModule=!0,s.exports.default=s.exports},39114:function(s,v,e){var i=e(79862);function a(l,o){var f=Object.keys(l);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(l);o&&(c=c.filter(function(y){return Object.getOwnPropertyDescriptor(l,y).enumerable})),f.push.apply(f,c)}return f}function n(l){for(var o=1;o=0;--Y){var K=this.tryEntries[Y],w=K.completion;if(K.tryLoc==="root")return G("end");if(K.tryLoc<=this.prev){var H=f.call(K,"catchLoc"),Z=f.call(K,"finallyLoc");if(H&&Z){if(this.prev=0;--G){var Y=this.tryEntries[G];if(Y.tryLoc<=this.prev&&f.call(Y,"finallyLoc")&&this.prev=0;--M){var G=this.tryEntries[M];if(G.finallyLoc===O)return this.complete(G.completion,G.afterLoc),Ue(G),L}},catch:function(O){for(var M=this.tryEntries.length-1;M>=0;--M){var G=this.tryEntries[M];if(G.tryLoc===O){var Y=G.completion;if(Y.type==="throw"){var K=Y.arg;Ue(G)}return K}}throw new Error("illegal catch attempt")},delegateYield:function(O,M,G){return this.delegate={iterator:re(O),resultName:M,nextLoc:G},this.method==="next"&&(this.arg=n),L}},l}s.exports=a,s.exports.__esModule=!0,s.exports.default=s.exports},70125:function(s,v,e){var i=e(69605),a=e(40201),n=e(91229),l=e(92725);function o(f,c){return i(f)||a(f,c)||n(f,c)||l()}s.exports=o,s.exports.__esModule=!0,s.exports.default=s.exports},79664:function(s,v,e){var i=e(45466),a=e(52748),n=e(91229),l=e(16207);function o(f){return i(f)||a(f)||n(f)||l()}s.exports=o,s.exports.__esModule=!0,s.exports.default=s.exports},42523:function(s,v,e){var i=e(26851).default;function a(n,l){if(i(n)!=="object"||n===null)return n;var o=n[Symbol.toPrimitive];if(o!==void 0){var f=o.call(n,l||"default");if(i(f)!=="object")return f;throw new TypeError("@@toPrimitive must return a primitive value.")}return(l==="string"?String:Number)(n)}s.exports=a,s.exports.__esModule=!0,s.exports.default=s.exports},80652:function(s,v,e){var i=e(26851).default,a=e(42523);function n(l){var o=a(l,"string");return i(o)==="symbol"?o:String(o)}s.exports=n,s.exports.__esModule=!0,s.exports.default=s.exports},26851:function(s){function v(e){"@babel/helpers - typeof";return s.exports=v=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},s.exports.__esModule=!0,s.exports.default=s.exports,v(e)}s.exports=v,s.exports.__esModule=!0,s.exports.default=s.exports},91229:function(s,v,e){var i=e(16487);function a(n,l){if(n){if(typeof n=="string")return i(n,l);var o=Object.prototype.toString.call(n).slice(8,-1);if(o==="Object"&&n.constructor&&(o=n.constructor.name),o==="Map"||o==="Set")return Array.from(n);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return i(n,l)}}s.exports=a,s.exports.__esModule=!0,s.exports.default=s.exports},5108:function(s,v,e){"use strict";e.d(v,{Z:function(){return i}});function i(a){if(Array.isArray(a))return a}},54744:function(s,v,e){"use strict";e.d(v,{Z:function(){return a}});var i=e(96386);function a(n,l,o){return l=(0,i.Z)(l),l in n?Object.defineProperty(n,l,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[l]=o,n}},5527:function(s,v,e){"use strict";e.d(v,{Z:function(){return i}});function i(){return i=Object.assign?Object.assign.bind():function(a){for(var n=1;n=0)&&(o[c]=n[c]);return o}function a(n,l){if(n==null)return{};var o=i(n,l),f,c;if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(n);for(c=0;c=0)&&Object.prototype.propertyIsEnumerable.call(n,f)&&(o[f]=n[f])}return o}},96386:function(s,v,e){"use strict";e.d(v,{Z:function(){return n}});var i=e(51062);function a(l,o){if((0,i.Z)(l)!=="object"||l===null)return l;var f=l[Symbol.toPrimitive];if(f!==void 0){var c=f.call(l,o||"default");if((0,i.Z)(c)!=="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(l)}function n(l){var o=a(l,"string");return(0,i.Z)(o)==="symbol"?o:String(o)}},51062:function(s,v,e){"use strict";e.d(v,{Z:function(){return i}});function i(a){"@babel/helpers - typeof";return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},i(a)}},4245:function(s,v,e){"use strict";e.d(v,{Z:function(){return a}});function i(n,l){(l==null||l>n.length)&&(l=n.length);for(var o=0,f=new Array(l);oa.length)&&(n=a.length);for(var l=0,o=new Array(n);l=0)&&(o[c]=n[c]);return o}function a(n,l){if(n==null)return{};var o=i(n,l),f,c;if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(n);for(c=0;c=0)&&Object.prototype.propertyIsEnumerable.call(n,f)&&(o[f]=n[f])}return o}},48259:function(s,v,e){"use strict";e.d(v,{Z:function(){return o}});function i(f){if(Array.isArray(f))return f}function a(f,c){var y=f==null?null:typeof Symbol!="undefined"&&f[Symbol.iterator]||f["@@iterator"];if(y!=null){var m,p,h,x,g=[],E=!0,b=!1;try{if(h=(y=y.call(f)).next,c===0){if(Object(y)!==y)return;E=!1}else for(;!(E=(m=h.call(y)).done)&&(g.push(m.value),g.length!==c);E=!0);}catch(R){b=!0,p=R}finally{try{if(!E&&y.return!=null&&(x=y.return(),Object(x)!==x))return}finally{if(b)throw p}}return g}}var n=e(97559);function l(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function o(f,c){return i(f)||a(f,c)||(0,n.Z)(f,c)||l()}},46682:function(s,v,e){"use strict";e.d(v,{Z:function(){return f}});var i=e(16841);function a(c){if(Array.isArray(c))return(0,i.Z)(c)}function n(c){if(typeof Symbol!="undefined"&&c[Symbol.iterator]!=null||c["@@iterator"]!=null)return Array.from(c)}var l=e(97559);function o(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function f(c){return a(c)||n(c)||(0,l.Z)(c)||o()}},50458:function(s,v,e){"use strict";e.d(v,{Z:function(){return n}});var i=e(7301);function a(l,o){if((0,i.Z)(l)!=="object"||l===null)return l;var f=l[Symbol.toPrimitive];if(f!==void 0){var c=f.call(l,o||"default");if((0,i.Z)(c)!=="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(l)}function n(l){var o=a(l,"string");return(0,i.Z)(o)==="symbol"?o:String(o)}},7301:function(s,v,e){"use strict";e.d(v,{Z:function(){return i}});function i(a){"@babel/helpers - typeof";return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},i(a)}},97559:function(s,v,e){"use strict";e.d(v,{Z:function(){return a}});var i=e(16841);function a(n,l){if(n){if(typeof n=="string")return(0,i.Z)(n,l);var o=Object.prototype.toString.call(n).slice(8,-1);if(o==="Object"&&n.constructor&&(o=n.constructor.name),o==="Map"||o==="Set")return Array.from(n);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return(0,i.Z)(n,l)}}},38104:function(s,v,e){"use strict";e.d(v,{ZT:function(){return a},_T:function(){return l},ev:function(){return $},pi:function(){return n}});var i=function(O,M){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(G,Y){G.__proto__=Y}||function(G,Y){for(var K in Y)Object.prototype.hasOwnProperty.call(Y,K)&&(G[K]=Y[K])},i(O,M)};function a(O,M){if(typeof M!="function"&&M!==null)throw new TypeError("Class extends value "+String(M)+" is not a constructor or null");i(O,M);function G(){this.constructor=O}O.prototype=M===null?Object.create(M):(G.prototype=M.prototype,new G)}var n=function(){return n=Object.assign||function(M){for(var G,Y=1,K=arguments.length;Y=0;Z--)(H=O[Z])&&(w=(K<3?H(w):K>3?H(M,G,w):H(M,G))||w);return K>3&&w&&Object.defineProperty(M,G,w),w}function f(O,M){return function(G,Y){M(G,Y,O)}}function c(O,M,G,Y,K,w){function H(fe){if(fe!==void 0&&typeof fe!="function")throw new TypeError("Function expected");return fe}for(var Z=Y.kind,Q=Z==="getter"?"get":Z==="setter"?"set":"value",X=!M&&O?Y.static?O:O.prototype:null,Te=M||(X?Object.getOwnPropertyDescriptor(X,Y.name):{}),Ze,lt=!1,nt=G.length-1;nt>=0;nt--){var it={};for(var wt in Y)it[wt]=wt==="access"?{}:Y[wt];for(var wt in Y.access)it.access[wt]=Y.access[wt];it.addInitializer=function(fe){if(lt)throw new TypeError("Cannot add initializers after decoration has completed");w.push(H(fe||null))};var ee=(0,G[nt])(Z==="accessor"?{get:Te.get,set:Te.set}:Te[Q],it);if(Z==="accessor"){if(ee===void 0)continue;if(ee===null||typeof ee!="object")throw new TypeError("Object expected");(Ze=H(ee.get))&&(Te.get=Ze),(Ze=H(ee.set))&&(Te.set=Ze),(Ze=H(ee.init))&&K.unshift(Ze)}else(Ze=H(ee))&&(Z==="field"?K.unshift(Ze):Te[Q]=Ze)}X&&Object.defineProperty(X,Y.name,Te),lt=!0}function y(O,M,G){for(var Y=arguments.length>2,K=0;K0&&w[w.length-1])&&(X[0]===6||X[0]===2)){G=0;continue}if(X[0]===3&&(!w||X[1]>w[0]&&X[1]=O.length&&(O=void 0),{value:O&&O[Y++],done:!O}}};throw new TypeError(M?"Object is not iterable.":"Symbol.iterator is not defined.")}function N(O,M){var G=typeof Symbol=="function"&&O[Symbol.iterator];if(!G)return O;var Y=G.call(O),K,w=[],H;try{for(;(M===void 0||M-- >0)&&!(K=Y.next()).done;)w.push(K.value)}catch(Z){H={error:Z}}finally{try{K&&!K.done&&(G=Y.return)&&G.call(Y)}finally{if(H)throw H.error}}return w}function B(){for(var O=[],M=0;M1||Z(lt,nt)})})}function Z(lt,nt){try{Q(Y[lt](nt))}catch(it){Ze(w[0][3],it)}}function Q(lt){lt.value instanceof T?Promise.resolve(lt.value.v).then(X,Te):Ze(w[0][2],lt)}function X(lt){Z("next",lt)}function Te(lt){Z("throw",lt)}function Ze(lt,nt){lt(nt),w.shift(),w.length&&Z(w[0][0],w[0][1])}}function z(O){var M,G;return M={},Y("next"),Y("throw",function(K){throw K}),Y("return"),M[Symbol.iterator]=function(){return this},M;function Y(K,w){M[K]=O[K]?function(H){return(G=!G)?{value:T(O[K](H)),done:!1}:w?w(H):H}:w}}function V(O){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var M=O[Symbol.asyncIterator],G;return M?M.call(O):(O=typeof R=="function"?R(O):O[Symbol.iterator](),G={},Y("next"),Y("throw"),Y("return"),G[Symbol.asyncIterator]=function(){return this},G);function Y(w){G[w]=O[w]&&function(H){return new Promise(function(Z,Q){H=O[w](H),K(Z,Q,H.done,H.value)})}}function K(w,H,Z,Q){Promise.resolve(Q).then(function(X){w({value:X,done:Z})},H)}}function te(O,M){return Object.defineProperty?Object.defineProperty(O,"raw",{value:M}):O.raw=M,O}var q=Object.create?function(O,M){Object.defineProperty(O,"default",{enumerable:!0,value:M})}:function(O,M){O.default=M};function de(O){if(O&&O.__esModule)return O;var M={};if(O!=null)for(var G in O)G!=="default"&&Object.prototype.hasOwnProperty.call(O,G)&&E(M,O,G);return q(M,O),M}function Ce(O){return O&&O.__esModule?O:{default:O}}function Oe(O,M,G,Y){if(G==="a"&&!Y)throw new TypeError("Private accessor was defined without a getter");if(typeof M=="function"?O!==M||!Y:!M.has(O))throw new TypeError("Cannot read private member from an object whose class did not declare it");return G==="m"?Y:G==="a"?Y.call(O):Y?Y.value:M.get(O)}function Le(O,M,G,Y,K){if(Y==="m")throw new TypeError("Private method is not writable");if(Y==="a"&&!K)throw new TypeError("Private accessor was defined without a setter");if(typeof M=="function"?O!==M||!K:!M.has(O))throw new TypeError("Cannot write private member to an object whose class did not declare it");return Y==="a"?K.call(O,G):K?K.value=G:M.set(O,G),G}function ke(O,M){if(M===null||typeof M!="object"&&typeof M!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof O=="function"?M===O:O.has(M)}function Ue(O,M,G){if(M!=null){if(typeof M!="object"&&typeof M!="function")throw new TypeError("Object expected.");var Y;if(G){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");Y=M[Symbol.asyncDispose]}if(Y===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");Y=M[Symbol.dispose]}if(typeof Y!="function")throw new TypeError("Object not disposable.");O.stack.push({value:M,dispose:Y,async:G})}else G&&O.stack.push({async:!0});return M}var J=typeof SuppressedError=="function"?SuppressedError:function(O,M,G){var Y=new Error(G);return Y.name="SuppressedError",Y.error=O,Y.suppressed=M,Y};function re(O){function M(Y){O.error=O.hasError?new J(Y,O.error,"An error was suppressed during disposal."):Y,O.hasError=!0}function G(){for(;O.stack.length;){var Y=O.stack.pop();try{var K=Y.dispose&&Y.dispose.call(Y.value);if(Y.async)return Promise.resolve(K).then(G,function(w){return M(w),G()})}catch(w){M(w)}}if(O.hasError)throw O.error}return G()}var ne={__extends:a,__assign:n,__rest:l,__decorate:o,__param:f,__metadata:h,__awaiter:x,__generator:g,__createBinding:E,__exportStar:b,__values:R,__read:N,__spread:B,__spreadArrays:L,__spreadArray:$,__await:T,__asyncGenerator:k,__asyncDelegator:z,__asyncValues:V,__makeTemplateObject:te,__importStar:de,__importDefault:Ce,__classPrivateFieldGet:Oe,__classPrivateFieldSet:Le,__classPrivateFieldIn:ke,__addDisposableResource:Ue,__disposeResources:re}}},__webpack_module_cache__={};function __webpack_require__(s){var v=__webpack_module_cache__[s];if(v!==void 0)return v.exports;var e=__webpack_module_cache__[s]={exports:{}};return __webpack_modules__[s].call(e.exports,e,e.exports,__webpack_require__),e.exports}__webpack_require__.m=__webpack_modules__,function(){__webpack_require__.n=function(s){var v=s&&s.__esModule?function(){return s.default}:function(){return s};return __webpack_require__.d(v,{a:v}),v}}(),function(){var s=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},v;__webpack_require__.t=function(e,i){if(i&1&&(e=this(e)),i&8||typeof e=="object"&&e&&(i&4&&e.__esModule||i&16&&typeof e.then=="function"))return e;var a=Object.create(null);__webpack_require__.r(a);var n={};v=v||[null,s({}),s([]),s(s)];for(var l=i&2&&e;typeof l=="object"&&!~v.indexOf(l);l=s(l))Object.getOwnPropertyNames(l).forEach(function(o){n[o]=function(){return e[o]}});return n.default=function(){return e},__webpack_require__.d(a,n),a}}(),function(){__webpack_require__.d=function(s,v){for(var e in v)__webpack_require__.o(v,e)&&!__webpack_require__.o(s,e)&&Object.defineProperty(s,e,{enumerable:!0,get:v[e]})}}(),function(){__webpack_require__.f={},__webpack_require__.e=function(s){return Promise.all(Object.keys(__webpack_require__.f).reduce(function(v,e){return __webpack_require__.f[e](s,v),v},[]))}}(),function(){__webpack_require__.u=function(s){return""+({1:"docs__reactive__computed-async.md",5:"docs__core__field-render.md",9:"nm__dumi__dist__client__pages__Demo__index",33:"docs__core__field-group.md",65:"nm__dumi__dist__client__pages__404",74:"docs__core__question.md",75:"docs__reactive__watch-objects.md",112:"docs__reactive__watch-use.md",137:"docs__reactive__computed-options.md",164:"docs__core__quick-start.md",244:"docs__reactive__computed-objects.md",252:"docs__reactive__computed-sync.md",290:"docs__core__index.md",396:"docs__reactive__store.md",401:"docs__core__field-validate.md",512:"docs__core__example-login.md",519:"nm__dumi__theme-default__layouts__DocLayout__index",534:"docs__core__form-validate.md",540:"docs__core__history.md",546:"docs__api__index.md",597:"docs__render__index.md",609:"docs__reactive__computed-intro.md",616:"docs__core__form-create.md",684:"docs__core__field-dirty.md",689:"docs__core__form-submit.md",790:"docs__reactive__state.md",865:"docs__core__example-captcha.md",877:"docs__core__field-related.md",901:"docs__core__form-action.md",910:"docs__core__form-dirty.md",920:"docs__reactive__watch.md",921:"docs__reactive__watch-computed-diff.md",923:"dumi__tmp-production__dumi__theme__ContextWrapper",925:"docs__core__field.md",935:"docs__index.md",943:"docs__reactive__index.md",952:"docs__reactive__render.md",985:"docs__core__install.md"}[s]||s)+"."+{1:"a25ae9b5",5:"99a2442d",9:"1a6dbb79",32:"2c0bdc3d",33:"d786d30f",65:"253b9ebe",74:"5403db36",75:"650de020",98:"86718db2",112:"7b828092",137:"68d2e828",164:"c4cef6a7",166:"a424cf24",244:"a88213b2",252:"f7faf3a8",290:"101b6bb8",396:"150f7565",401:"7a2c76db",489:"eb0a29db",512:"a81a0962",519:"eaf36e30",533:"798df0dd",534:"3517045b",540:"6794e468",546:"e43e7765",597:"1b5d5548",609:"d0bd9c46",616:"3097456b",654:"43aed6da",684:"240b57e9",687:"acaf5604",689:"0fcb6d33",733:"7dc8b402",761:"482cba2e",775:"a554f0fb",790:"e0ef441f",865:"8b52cb7d",877:"dd87aec5",901:"c51c3075",910:"dfe31ead",920:"a4e13400",921:"575166a8",922:"fadf1d5a",923:"ba866fcb",925:"4a7e8b38",935:"7e8447ae",943:"d885319f",952:"f2e32c02",985:"371def74"}[s]+".async.js"}}(),function(){__webpack_require__.miniCssF=function(s){return""+({1:"docs__reactive__computed-async.md",5:"docs__core__field-render.md",9:"nm__dumi__dist__client__pages__Demo__index",33:"docs__core__field-group.md",65:"nm__dumi__dist__client__pages__404",74:"docs__core__question.md",75:"docs__reactive__watch-objects.md",112:"docs__reactive__watch-use.md",137:"docs__reactive__computed-options.md",164:"docs__core__quick-start.md",244:"docs__reactive__computed-objects.md",252:"docs__reactive__computed-sync.md",290:"docs__core__index.md",396:"docs__reactive__store.md",401:"docs__core__field-validate.md",512:"docs__core__example-login.md",534:"docs__core__form-validate.md",540:"docs__core__history.md",546:"docs__api__index.md",597:"docs__render__index.md",609:"docs__reactive__computed-intro.md",616:"docs__core__form-create.md",684:"docs__core__field-dirty.md",689:"docs__core__form-submit.md",790:"docs__reactive__state.md",865:"docs__core__example-captcha.md",877:"docs__core__field-related.md",901:"docs__core__form-action.md",910:"docs__core__form-dirty.md",920:"docs__reactive__watch.md",921:"docs__reactive__watch-computed-diff.md",925:"docs__core__field.md",935:"docs__index.md",943:"docs__reactive__index.md",952:"docs__reactive__render.md",985:"docs__core__install.md"}[s]||s)+"."+{1:"778c6473",5:"778c6473",9:"578aa5c0",33:"778c6473",65:"8b85f2d9",74:"778c6473",75:"778c6473",112:"778c6473",137:"778c6473",164:"778c6473",244:"778c6473",252:"778c6473",290:"778c6473",396:"778c6473",401:"778c6473",512:"778c6473",533:"dec64465",534:"778c6473",540:"778c6473",546:"778c6473",597:"778c6473",609:"778c6473",616:"778c6473",684:"778c6473",689:"778c6473",790:"778c6473",865:"778c6473",877:"778c6473",901:"778c6473",910:"778c6473",920:"778c6473",921:"778c6473",925:"778c6473",935:"778c6473",943:"778c6473",952:"778c6473",985:"778c6473"}[s]+".chunk.css"}}(),function(){__webpack_require__.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(s){if(typeof window=="object")return window}}()}(),function(){__webpack_require__.o=function(s,v){return Object.prototype.hasOwnProperty.call(s,v)}}(),function(){var s={},v="speedform-docs:";__webpack_require__.l=function(e,i,a,n){if(s[e]){s[e].push(i);return}var l,o;if(a!==void 0)for(var f=document.getElementsByTagName("script"),c=0;c=0;Z--)(H=O[Z])&&(w=(K<3?H(w):K>3?H(M,G,w):H(M,G))||w);return K>3&&w&&Object.defineProperty(M,G,w),w}function f(O,M){return function(G,Y){M(G,Y,O)}}function c(O,M,G,Y,K,w){function H(fe){if(fe!==void 0&&typeof fe!="function")throw new TypeError("Function expected");return fe}for(var Z=Y.kind,Q=Z==="getter"?"get":Z==="setter"?"set":"value",X=!M&&O?Y.static?O:O.prototype:null,Te=M||(X?Object.getOwnPropertyDescriptor(X,Y.name):{}),Ze,lt=!1,nt=G.length-1;nt>=0;nt--){var it={};for(var wt in Y)it[wt]=wt==="access"?{}:Y[wt];for(var wt in Y.access)it.access[wt]=Y.access[wt];it.addInitializer=function(fe){if(lt)throw new TypeError("Cannot add initializers after decoration has completed");w.push(H(fe||null))};var ee=(0,G[nt])(Z==="accessor"?{get:Te.get,set:Te.set}:Te[Q],it);if(Z==="accessor"){if(ee===void 0)continue;if(ee===null||typeof ee!="object")throw new TypeError("Object expected");(Ze=H(ee.get))&&(Te.get=Ze),(Ze=H(ee.set))&&(Te.set=Ze),(Ze=H(ee.init))&&K.unshift(Ze)}else(Ze=H(ee))&&(Z==="field"?K.unshift(Ze):Te[Q]=Ze)}X&&Object.defineProperty(X,Y.name,Te),lt=!0}function y(O,M,G){for(var Y=arguments.length>2,K=0;K0&&w[w.length-1])&&(X[0]===6||X[0]===2)){G=0;continue}if(X[0]===3&&(!w||X[1]>w[0]&&X[1]=O.length&&(O=void 0),{value:O&&O[Y++],done:!O}}};throw new TypeError(M?"Object is not iterable.":"Symbol.iterator is not defined.")}function N(O,M){var G=typeof Symbol=="function"&&O[Symbol.iterator];if(!G)return O;var Y=G.call(O),K,w=[],H;try{for(;(M===void 0||M-- >0)&&!(K=Y.next()).done;)w.push(K.value)}catch(Z){H={error:Z}}finally{try{K&&!K.done&&(G=Y.return)&&G.call(Y)}finally{if(H)throw H.error}}return w}function B(){for(var O=[],M=0;M1||Z(lt,nt)})})}function Z(lt,nt){try{Q(Y[lt](nt))}catch(it){Ze(w[0][3],it)}}function Q(lt){lt.value instanceof T?Promise.resolve(lt.value.v).then(X,Te):Ze(w[0][2],lt)}function X(lt){Z("next",lt)}function Te(lt){Z("throw",lt)}function Ze(lt,nt){lt(nt),w.shift(),w.length&&Z(w[0][0],w[0][1])}}function z(O){var M,G;return M={},Y("next"),Y("throw",function(K){throw K}),Y("return"),M[Symbol.iterator]=function(){return this},M;function Y(K,w){M[K]=O[K]?function(H){return(G=!G)?{value:T(O[K](H)),done:!1}:w?w(H):H}:w}}function V(O){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var M=O[Symbol.asyncIterator],G;return M?M.call(O):(O=typeof R=="function"?R(O):O[Symbol.iterator](),G={},Y("next"),Y("throw"),Y("return"),G[Symbol.asyncIterator]=function(){return this},G);function Y(w){G[w]=O[w]&&function(H){return new Promise(function(Z,Q){H=O[w](H),K(Z,Q,H.done,H.value)})}}function K(w,H,Z,Q){Promise.resolve(Q).then(function(X){w({value:X,done:Z})},H)}}function te(O,M){return Object.defineProperty?Object.defineProperty(O,"raw",{value:M}):O.raw=M,O}var q=Object.create?function(O,M){Object.defineProperty(O,"default",{enumerable:!0,value:M})}:function(O,M){O.default=M};function de(O){if(O&&O.__esModule)return O;var M={};if(O!=null)for(var G in O)G!=="default"&&Object.prototype.hasOwnProperty.call(O,G)&&E(M,O,G);return q(M,O),M}function Ce(O){return O&&O.__esModule?O:{default:O}}function Oe(O,M,G,Y){if(G==="a"&&!Y)throw new TypeError("Private accessor was defined without a getter");if(typeof M=="function"?O!==M||!Y:!M.has(O))throw new TypeError("Cannot read private member from an object whose class did not declare it");return G==="m"?Y:G==="a"?Y.call(O):Y?Y.value:M.get(O)}function Le(O,M,G,Y,K){if(Y==="m")throw new TypeError("Private method is not writable");if(Y==="a"&&!K)throw new TypeError("Private accessor was defined without a setter");if(typeof M=="function"?O!==M||!K:!M.has(O))throw new TypeError("Cannot write private member to an object whose class did not declare it");return Y==="a"?K.call(O,G):K?K.value=G:M.set(O,G),G}function ke(O,M){if(M===null||typeof M!="object"&&typeof M!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof O=="function"?M===O:O.has(M)}function Ue(O,M,G){if(M!=null){if(typeof M!="object"&&typeof M!="function")throw new TypeError("Object expected.");var Y;if(G){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");Y=M[Symbol.asyncDispose]}if(Y===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");Y=M[Symbol.dispose]}if(typeof Y!="function")throw new TypeError("Object not disposable.");O.stack.push({value:M,dispose:Y,async:G})}else G&&O.stack.push({async:!0});return M}var J=typeof SuppressedError=="function"?SuppressedError:function(O,M,G){var Y=new Error(G);return Y.name="SuppressedError",Y.error=O,Y.suppressed=M,Y};function re(O){function M(Y){O.error=O.hasError?new J(Y,O.error,"An error was suppressed during disposal."):Y,O.hasError=!0}function G(){for(;O.stack.length;){var Y=O.stack.pop();try{var K=Y.dispose&&Y.dispose.call(Y.value);if(Y.async)return Promise.resolve(K).then(G,function(w){return M(w),G()})}catch(w){M(w)}}if(O.hasError)throw O.error}return G()}var ne={__extends:a,__assign:n,__rest:l,__decorate:o,__param:f,__metadata:h,__awaiter:x,__generator:g,__createBinding:E,__exportStar:b,__values:R,__read:N,__spread:B,__spreadArrays:L,__spreadArray:$,__await:T,__asyncGenerator:k,__asyncDelegator:z,__asyncValues:V,__makeTemplateObject:te,__importStar:de,__importDefault:Ce,__classPrivateFieldGet:Oe,__classPrivateFieldSet:Le,__classPrivateFieldIn:ke,__addDisposableResource:Ue,__disposeResources:re}}},__webpack_module_cache__={};function __webpack_require__(s){var v=__webpack_module_cache__[s];if(v!==void 0)return v.exports;var e=__webpack_module_cache__[s]={exports:{}};return __webpack_modules__[s].call(e.exports,e,e.exports,__webpack_require__),e.exports}__webpack_require__.m=__webpack_modules__,function(){__webpack_require__.n=function(s){var v=s&&s.__esModule?function(){return s.default}:function(){return s};return __webpack_require__.d(v,{a:v}),v}}(),function(){var s=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},v;__webpack_require__.t=function(e,i){if(i&1&&(e=this(e)),i&8||typeof e=="object"&&e&&(i&4&&e.__esModule||i&16&&typeof e.then=="function"))return e;var a=Object.create(null);__webpack_require__.r(a);var n={};v=v||[null,s({}),s([]),s(s)];for(var l=i&2&&e;typeof l=="object"&&!~v.indexOf(l);l=s(l))Object.getOwnPropertyNames(l).forEach(function(o){n[o]=function(){return e[o]}});return n.default=function(){return e},__webpack_require__.d(a,n),a}}(),function(){__webpack_require__.d=function(s,v){for(var e in v)__webpack_require__.o(v,e)&&!__webpack_require__.o(s,e)&&Object.defineProperty(s,e,{enumerable:!0,get:v[e]})}}(),function(){__webpack_require__.f={},__webpack_require__.e=function(s){return Promise.all(Object.keys(__webpack_require__.f).reduce(function(v,e){return __webpack_require__.f[e](s,v),v},[]))}}(),function(){__webpack_require__.u=function(s){return""+({1:"docs__reactive__computed-async.md",5:"docs__core__field-render.md",9:"nm__dumi__dist__client__pages__Demo__index",33:"docs__core__field-group.md",65:"nm__dumi__dist__client__pages__404",74:"docs__core__question.md",75:"docs__reactive__watch-objects.md",112:"docs__reactive__watch-use.md",137:"docs__reactive__computed-options.md",164:"docs__core__quick-start.md",244:"docs__reactive__computed-objects.md",252:"docs__reactive__computed-sync.md",290:"docs__core__index.md",396:"docs__reactive__store.md",401:"docs__core__field-validate.md",512:"docs__core__example-login.md",519:"nm__dumi__theme-default__layouts__DocLayout__index",534:"docs__core__form-validate.md",540:"docs__core__history.md",546:"docs__api__index.md",597:"docs__render__index.md",609:"docs__reactive__computed-intro.md",616:"docs__core__form-create.md",684:"docs__core__field-dirty.md",689:"docs__core__form-submit.md",790:"docs__reactive__state.md",865:"docs__core__example-captcha.md",877:"docs__core__field-related.md",901:"docs__core__form-action.md",910:"docs__core__form-dirty.md",920:"docs__reactive__watch.md",921:"docs__reactive__watch-computed-diff.md",923:"dumi__tmp-production__dumi__theme__ContextWrapper",925:"docs__core__field.md",935:"docs__index.md",943:"docs__reactive__index.md",952:"docs__reactive__render.md",985:"docs__core__install.md"}[s]||s)+"."+{1:"a25ae9b5",5:"99a2442d",9:"1a6dbb79",32:"2c0bdc3d",33:"d786d30f",65:"253b9ebe",74:"5403db36",75:"650de020",98:"7c76ba7c",112:"7b828092",137:"68d2e828",164:"c4cef6a7",166:"a424cf24",244:"a88213b2",252:"f7faf3a8",290:"101b6bb8",396:"150f7565",401:"7a2c76db",489:"eb0a29db",512:"a81a0962",519:"eaf36e30",533:"798df0dd",534:"3517045b",540:"6794e468",546:"e43e7765",597:"1b5d5548",609:"d0bd9c46",616:"3097456b",654:"43aed6da",684:"240b57e9",687:"acaf5604",689:"0fcb6d33",733:"7dc8b402",761:"482cba2e",775:"a554f0fb",790:"e0ef441f",865:"8b52cb7d",877:"dd87aec5",901:"c51c3075",910:"dfe31ead",920:"a4e13400",921:"575166a8",922:"fadf1d5a",923:"ba866fcb",925:"4a7e8b38",935:"7e8447ae",943:"d885319f",952:"f2e32c02",985:"371def74"}[s]+".async.js"}}(),function(){__webpack_require__.miniCssF=function(s){return""+({1:"docs__reactive__computed-async.md",5:"docs__core__field-render.md",9:"nm__dumi__dist__client__pages__Demo__index",33:"docs__core__field-group.md",65:"nm__dumi__dist__client__pages__404",74:"docs__core__question.md",75:"docs__reactive__watch-objects.md",112:"docs__reactive__watch-use.md",137:"docs__reactive__computed-options.md",164:"docs__core__quick-start.md",244:"docs__reactive__computed-objects.md",252:"docs__reactive__computed-sync.md",290:"docs__core__index.md",396:"docs__reactive__store.md",401:"docs__core__field-validate.md",512:"docs__core__example-login.md",534:"docs__core__form-validate.md",540:"docs__core__history.md",546:"docs__api__index.md",597:"docs__render__index.md",609:"docs__reactive__computed-intro.md",616:"docs__core__form-create.md",684:"docs__core__field-dirty.md",689:"docs__core__form-submit.md",790:"docs__reactive__state.md",865:"docs__core__example-captcha.md",877:"docs__core__field-related.md",901:"docs__core__form-action.md",910:"docs__core__form-dirty.md",920:"docs__reactive__watch.md",921:"docs__reactive__watch-computed-diff.md",925:"docs__core__field.md",935:"docs__index.md",943:"docs__reactive__index.md",952:"docs__reactive__render.md",985:"docs__core__install.md"}[s]||s)+"."+{1:"778c6473",5:"778c6473",9:"578aa5c0",33:"778c6473",65:"8b85f2d9",74:"778c6473",75:"778c6473",112:"778c6473",137:"778c6473",164:"778c6473",244:"778c6473",252:"778c6473",290:"778c6473",396:"778c6473",401:"778c6473",512:"778c6473",533:"dec64465",534:"778c6473",540:"778c6473",546:"778c6473",597:"778c6473",609:"778c6473",616:"778c6473",684:"778c6473",689:"778c6473",790:"778c6473",865:"778c6473",877:"778c6473",901:"778c6473",910:"778c6473",920:"778c6473",921:"778c6473",925:"778c6473",935:"778c6473",943:"778c6473",952:"778c6473",985:"778c6473"}[s]+".chunk.css"}}(),function(){__webpack_require__.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(s){if(typeof window=="object")return window}}()}(),function(){__webpack_require__.o=function(s,v){return Object.prototype.hasOwnProperty.call(s,v)}}(),function(){var s={},v="speedform-docs:";__webpack_require__.l=function(e,i,a,n){if(s[e]){s[e].push(i);return}var l,o;if(a!==void 0)for(var f=document.getElementsByTagName("script"),c=0;c0&&arguments[0]!==void 0?arguments[0]:"";return ur.endsWith("/")?ur:"".concat(ur,"/")}var Rr=__webpack_require__(85801),fn=__webpack_require__(5527),vn=__webpack_require__(88161),hn=["redirect"];function na(ur){var tr=ur.routesById,Wr=ur.parentId,yn=ur.routeComponents;return Object.keys(tr).filter(function(Nn){return tr[Nn].parentId===Wr}).map(function(Nn){var Un=go((0,F.Z)({route:tr[Nn],routeComponent:yn[Nn],loadingComponent:ur.loadingComponent,reactRouter5Compat:ur.reactRouter5Compat},ur.reactRouter5Compat&&{hasChildren:Object.keys(tr).filter(function(Na){return tr[Na].parentId===Nn}).length>0})),Jn=na({routesById:tr,routeComponents:yn,parentId:Un.id,loadingComponent:ur.loadingComponent,reactRouter5Compat:ur.reactRouter5Compat});return Jn.length>0&&(Un.children=Jn,Un.routes=Jn),Un})}function ma(ur){var tr=(0,nr.UO)(),Wr=(0,F.Z)((0,F.Z)({},ur),{},{to:(0,nr.Gn)(ur.to,tr)});return De.createElement(nr.Fg,(0,fn.Z)({replace:!0},Wr))}function go(ur){var tr=ur.route,Wr=tr.redirect,yn=(0,Rr.Z)(tr,hn),Nn=ur.reactRouter5Compat?oo:io;return(0,F.Z)({element:Wr?De.createElement(ma,{to:Wr}):De.createElement(vn.X.Provider,{value:{route:ur.route}},De.createElement(Nn,{loader:De.memo(ur.routeComponent),loadingComponent:ur.loadingComponent||fi,hasChildren:ur.hasChildren}))},yn)}function fi(){return De.createElement("div",null)}function oo(ur){var tr=(0,vn.Q)(),Wr=tr.route,yn=(0,Ir.Ov)(),Nn=yn.history,Un=yn.clientRoutes,Jn=(0,nr.UO)(),Na={params:Jn,isExact:!0,path:Wr.path,url:Nn.location.pathname},uo=ur.loader;return De.createElement(De.Suspense,{fallback:De.createElement(ur.loadingComponent,null)},De.createElement(uo,{location:Nn.location,match:Na,history:Nn,params:Jn,route:Wr,routes:Un},ur.hasChildren&&De.createElement(nr.j3,null)))}function io(ur){var tr=ur.loader;return De.createElement(De.Suspense,{fallback:De.createElement(ur.loadingComponent,null)},De.createElement(tr,null))}var Ao=null;function vi(){return Ao}function Ui(ur){var tr=ur.history,Wr=De.useState({action:tr.action,location:tr.location}),yn=Ot(Wr,2),Nn=yn[0],Un=yn[1];return(0,De.useLayoutEffect)(function(){return tr.listen(Un)},[tr]),(0,De.useLayoutEffect)(function(){function Jn(Na){ur.pluginManager.applyPlugins({key:"onRouteChange",type:"event",args:{routes:ur.routes,clientRoutes:ur.clientRoutes,location:Na.location,action:Na.action,basename:ur.basename,isFirst:!!Na.isFirst}})}return Jn({location:Nn.location,action:Nn.action,isFirst:!0}),tr.listen(Jn)},[tr,ur.routes,ur.clientRoutes]),De.createElement(nr.F0,{navigator:tr,location:Nn.location,basename:ur.basename},ur.children)}function iu(){var ur=(0,Ir.Ov)(),tr=ur.clientRoutes;return(0,nr.V$)(tr)}var pi=["innerProvider","i18nProvider","accessProvider","dataflowProvider","outerProvider","rootContainer"],Ci=function(tr,Wr){var yn=tr.basename||"/",Nn=na({routesById:tr.routes,routeComponents:tr.routeComponents,loadingComponent:tr.loadingComponent,reactRouter5Compat:tr.reactRouter5Compat});tr.pluginManager.applyPlugins({key:"patchClientRoutes",type:"event",args:{routes:Nn}});for(var Un=De.createElement(Ui,{basename:yn,pluginManager:tr.pluginManager,routes:tr.routes,clientRoutes:Nn,history:tr.history},Wr),Jn=0,Na=pi;Jn1&&location.pathname.endsWith("/")&&history.replaceState({},"",location.pathname.slice(0,-1)+location.search+location.hash),function(){var ur=typeof navigator!="undefined"&&navigator.cookieEnabled&&typeof window.localStorage!="undefined"&&localStorage.getItem("dumi:prefers-color")||"light",tr=window.matchMedia("(prefers-color-scheme: dark)").matches,Wr=["light","dark","auto"];document.documentElement.setAttribute("data-prefers-color",ur===Wr[2]?tr?Wr[1]:Wr[0]:Wr.indexOf(ur)>-1?ur:Wr[0])}(),cl(),window.g_umi={version:"4.0.90"},(0,P.rl)((0,Iu.We)())})()})(); }()); \ No newline at end of file diff --git a/~demos/:id/index.html b/~demos/:id/index.html index 33476eb..3ede91e 100644 --- a/~demos/:id/index.html +++ b/~demos/:id/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/~demos/docs-core-form-action-demo-0/index.html b/~demos/docs-core-form-action-demo-0/index.html index 33476eb..3ede91e 100644 --- a/~demos/docs-core-form-action-demo-0/index.html +++ b/~demos/docs-core-form-action-demo-0/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/~demos/docs-core-quick-start-demo-0/index.html b/~demos/docs-core-quick-start-demo-0/index.html index 33476eb..3ede91e 100644 --- a/~demos/docs-core-quick-start-demo-0/index.html +++ b/~demos/docs-core-quick-start-demo-0/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/~demos/docs-reactive-computed-async-demo-0/index.html b/~demos/docs-reactive-computed-async-demo-0/index.html index 33476eb..3ede91e 100644 --- a/~demos/docs-reactive-computed-async-demo-0/index.html +++ b/~demos/docs-reactive-computed-async-demo-0/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/~demos/docs-reactive-computed-async-demo-1/index.html b/~demos/docs-reactive-computed-async-demo-1/index.html index 33476eb..3ede91e 100644 --- a/~demos/docs-reactive-computed-async-demo-1/index.html +++ b/~demos/docs-reactive-computed-async-demo-1/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/~demos/docs-reactive-computed-async-demo-2/index.html b/~demos/docs-reactive-computed-async-demo-2/index.html index 33476eb..3ede91e 100644 --- a/~demos/docs-reactive-computed-async-demo-2/index.html +++ b/~demos/docs-reactive-computed-async-demo-2/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/~demos/docs-reactive-computed-async-demo-3/index.html b/~demos/docs-reactive-computed-async-demo-3/index.html index 33476eb..3ede91e 100644 --- a/~demos/docs-reactive-computed-async-demo-3/index.html +++ b/~demos/docs-reactive-computed-async-demo-3/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/~demos/docs-reactive-computed-async-demo-4/index.html b/~demos/docs-reactive-computed-async-demo-4/index.html index 33476eb..3ede91e 100644 --- a/~demos/docs-reactive-computed-async-demo-4/index.html +++ b/~demos/docs-reactive-computed-async-demo-4/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/~demos/docs-reactive-computed-async-demo-5/index.html b/~demos/docs-reactive-computed-async-demo-5/index.html index 33476eb..3ede91e 100644 --- a/~demos/docs-reactive-computed-async-demo-5/index.html +++ b/~demos/docs-reactive-computed-async-demo-5/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/~demos/docs-reactive-computed-async-demo-6/index.html b/~demos/docs-reactive-computed-async-demo-6/index.html index 33476eb..3ede91e 100644 --- a/~demos/docs-reactive-computed-async-demo-6/index.html +++ b/~demos/docs-reactive-computed-async-demo-6/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/~demos/docs-reactive-computed-async-demo-7/index.html b/~demos/docs-reactive-computed-async-demo-7/index.html index 33476eb..3ede91e 100644 --- a/~demos/docs-reactive-computed-async-demo-7/index.html +++ b/~demos/docs-reactive-computed-async-demo-7/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/~demos/docs-reactive-computed-async-demo-8/index.html b/~demos/docs-reactive-computed-async-demo-8/index.html index 33476eb..3ede91e 100644 --- a/~demos/docs-reactive-computed-async-demo-8/index.html +++ b/~demos/docs-reactive-computed-async-demo-8/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/~demos/docs-reactive-computed-async-demo-9/index.html b/~demos/docs-reactive-computed-async-demo-9/index.html index 33476eb..3ede91e 100644 --- a/~demos/docs-reactive-computed-async-demo-9/index.html +++ b/~demos/docs-reactive-computed-async-demo-9/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/~demos/docs-reactive-computed-intro-demo-0/index.html b/~demos/docs-reactive-computed-intro-demo-0/index.html index 33476eb..3ede91e 100644 --- a/~demos/docs-reactive-computed-intro-demo-0/index.html +++ b/~demos/docs-reactive-computed-intro-demo-0/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/~demos/docs-reactive-computed-intro-demo-1/index.html b/~demos/docs-reactive-computed-intro-demo-1/index.html index 33476eb..3ede91e 100644 --- a/~demos/docs-reactive-computed-intro-demo-1/index.html +++ b/~demos/docs-reactive-computed-intro-demo-1/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/~demos/docs-reactive-computed-intro-demo-2/index.html b/~demos/docs-reactive-computed-intro-demo-2/index.html index 33476eb..3ede91e 100644 --- a/~demos/docs-reactive-computed-intro-demo-2/index.html +++ b/~demos/docs-reactive-computed-intro-demo-2/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/~demos/docs-reactive-computed-intro-demo-3/index.html b/~demos/docs-reactive-computed-intro-demo-3/index.html index 33476eb..3ede91e 100644 --- a/~demos/docs-reactive-computed-intro-demo-3/index.html +++ b/~demos/docs-reactive-computed-intro-demo-3/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/~demos/docs-reactive-computed-intro-demo-4/index.html b/~demos/docs-reactive-computed-intro-demo-4/index.html index 33476eb..3ede91e 100644 --- a/~demos/docs-reactive-computed-intro-demo-4/index.html +++ b/~demos/docs-reactive-computed-intro-demo-4/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/~demos/docs-reactive-computed-intro-demo-5/index.html b/~demos/docs-reactive-computed-intro-demo-5/index.html index 33476eb..3ede91e 100644 --- a/~demos/docs-reactive-computed-intro-demo-5/index.html +++ b/~demos/docs-reactive-computed-intro-demo-5/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/~demos/docs-reactive-computed-intro-demo-6/index.html b/~demos/docs-reactive-computed-intro-demo-6/index.html index 33476eb..3ede91e 100644 --- a/~demos/docs-reactive-computed-intro-demo-6/index.html +++ b/~demos/docs-reactive-computed-intro-demo-6/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/~demos/docs-reactive-computed-objects-demo-0/index.html b/~demos/docs-reactive-computed-objects-demo-0/index.html index 33476eb..3ede91e 100644 --- a/~demos/docs-reactive-computed-objects-demo-0/index.html +++ b/~demos/docs-reactive-computed-objects-demo-0/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/~demos/docs-reactive-computed-objects-demo-1/index.html b/~demos/docs-reactive-computed-objects-demo-1/index.html index 33476eb..3ede91e 100644 --- a/~demos/docs-reactive-computed-objects-demo-1/index.html +++ b/~demos/docs-reactive-computed-objects-demo-1/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/~demos/docs-reactive-computed-objects-demo-2/index.html b/~demos/docs-reactive-computed-objects-demo-2/index.html index 33476eb..3ede91e 100644 --- a/~demos/docs-reactive-computed-objects-demo-2/index.html +++ b/~demos/docs-reactive-computed-objects-demo-2/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/~demos/docs-reactive-computed-objects-demo-3/index.html b/~demos/docs-reactive-computed-objects-demo-3/index.html index 33476eb..3ede91e 100644 --- a/~demos/docs-reactive-computed-objects-demo-3/index.html +++ b/~demos/docs-reactive-computed-objects-demo-3/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/~demos/docs-reactive-computed-sync-demo-0/index.html b/~demos/docs-reactive-computed-sync-demo-0/index.html index 33476eb..3ede91e 100644 --- a/~demos/docs-reactive-computed-sync-demo-0/index.html +++ b/~demos/docs-reactive-computed-sync-demo-0/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/~demos/docs-reactive-render-demo-0/index.html b/~demos/docs-reactive-render-demo-0/index.html index 33476eb..3ede91e 100644 --- a/~demos/docs-reactive-render-demo-0/index.html +++ b/~demos/docs-reactive-render-demo-0/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/~demos/docs-reactive-render-demo-1/index.html b/~demos/docs-reactive-render-demo-1/index.html index 33476eb..3ede91e 100644 --- a/~demos/docs-reactive-render-demo-1/index.html +++ b/~demos/docs-reactive-render-demo-1/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/~demos/docs-reactive-render-demo-2/index.html b/~demos/docs-reactive-render-demo-2/index.html index 33476eb..3ede91e 100644 --- a/~demos/docs-reactive-render-demo-2/index.html +++ b/~demos/docs-reactive-render-demo-2/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/~demos/docs-reactive-state-demo-0/index.html b/~demos/docs-reactive-state-demo-0/index.html index 33476eb..3ede91e 100644 --- a/~demos/docs-reactive-state-demo-0/index.html +++ b/~demos/docs-reactive-state-demo-0/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/~demos/docs-reactive-state-demo-1/index.html b/~demos/docs-reactive-state-demo-1/index.html index 33476eb..3ede91e 100644 --- a/~demos/docs-reactive-state-demo-1/index.html +++ b/~demos/docs-reactive-state-demo-1/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/~demos/docs-reactive-state-demo-2/index.html b/~demos/docs-reactive-state-demo-2/index.html index 33476eb..3ede91e 100644 --- a/~demos/docs-reactive-state-demo-2/index.html +++ b/~demos/docs-reactive-state-demo-2/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/~demos/docs-reactive-watch-demo-0/index.html b/~demos/docs-reactive-watch-demo-0/index.html index 33476eb..3ede91e 100644 --- a/~demos/docs-reactive-watch-demo-0/index.html +++ b/~demos/docs-reactive-watch-demo-0/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/~demos/docs-reactive-watch-demo-1/index.html b/~demos/docs-reactive-watch-demo-1/index.html index 33476eb..3ede91e 100644 --- a/~demos/docs-reactive-watch-demo-1/index.html +++ b/~demos/docs-reactive-watch-demo-1/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/~demos/docs-reactive-watch-demo-2/index.html b/~demos/docs-reactive-watch-demo-2/index.html index 33476eb..3ede91e 100644 --- a/~demos/docs-reactive-watch-demo-2/index.html +++ b/~demos/docs-reactive-watch-demo-2/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/~demos/docs-reactive-watch-objects-demo-0/index.html b/~demos/docs-reactive-watch-objects-demo-0/index.html index 33476eb..3ede91e 100644 --- a/~demos/docs-reactive-watch-objects-demo-0/index.html +++ b/~demos/docs-reactive-watch-objects-demo-0/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file