var _=(r,i)=>()=>(i||r((i={exports:{}}).exports,i),i.exports);var y=_(d=>{"use strict";Object.defineProperty(d,"__esModule",{value:!0}),d.createActions=d.createDataFieldsReactions=void 0;var A,x,m=require("mobx-miniprogram");function O(r){if(Array.isArray(r)){for(var i=0,e=new Array(r.length);i{"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.behavior=void 0;var g=y(),R=Behavior({definitionFilter:function(r){r.methods=r.methods||{};var i=r.storeBindings;r.methods._mobxMiniprogramBindings=function(){return i},i&&(Array.isArray(i)?i.forEach(function(e){g.createActions(r.methods,e)}):g.createActions(r.methods,i))},lifetimes:{attached:function(){if(typeof this._mobxMiniprogramBindings=="function"){var r=this._mobxMiniprogramBindings();if(!r)return void(this._mobxMiniprogramBindings=null);if(Array.isArray(r)){var i=this;this._mobxMiniprogramBindings=r.map(function(e){var n=g.createDataFieldsReactions(i,e);return n.updateStoreBindings(),n})}else this._mobxMiniprogramBindings=g.createDataFieldsReactions(this,r),this._mobxMiniprogramBindings.updateStoreBindings()}},detached:function(){this._mobxMiniprogramBindings&&(Array.isArray(this._mobxMiniprogramBindings)?this._mobxMiniprogramBindings.forEach(function(r){r.destroyStoreBindings()}):this._mobxMiniprogramBindings.destroyStoreBindings())}},methods:{updateStoreBindings:function(){this._mobxMiniprogramBindings&&typeof this._mobxMiniprogramBindings!="function"&&(Array.isArray(this._mobxMiniprogramBindings)?this._mobxMiniprogramBindings.forEach(function(r){r.updateStoreBindings()}):this._mobxMiniprogramBindings.updateStoreBindings())}}});p.behavior=R});"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ComponentWithStore=I,exports.BehaviorWithStore=W,exports.createStoreBindings=exports.storeBindingsBehavior=void 0;var v=M(),E=y();function I(r){return Array.isArray(r.behaviors)||(r.behaviors=[]),r.behaviors.unshift(v.behavior),Component(r)}function W(r){return Array.isArray(r.behaviors)||(r.behaviors=[]),r.behaviors.unshift(v.behavior),Behavior(r)}var k=function(r,i){return E.createActions(r,i),E.createDataFieldsReactions(r,i)};exports.createStoreBindings=k;var P=v.behavior;exports.storeBindingsBehavior=P;