text: (()=>{var e={4376:e=>{function t(e,t,n,a,r,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(a,r)}e.exports=e=>class{get__name(e,t){t(),e.value="".concat(e.value,":regexpaop")}set__name(e,t){const n=e.value.split(":"),a=n.indexOf("regexpaop");a>-1&&n.splice(a,1),e.value=n.join(":"),t()}actionSync(e,t){t(),e.result="".concat(e.result,":regexpaop")}actionAsync(e,n){return(a=function*(){yield n(),e.result="".concat(e.result,":regexpaop")},function(){var e=this,n=arguments;return new Promise((function(r,o){var i=a.apply(e,n);function s(e){t(i,r,o,s,c,"next",e)}function c(e){t(i,r,o,s,c,"throw",e)}s(void 0)}))})();var a}}},786:e=>{function t(e,t,n,a,r,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(a,r)}e.exports=e=>class extends class{actionSync(e,t){t(),e.result="".concat(e.result,":simpleaop")}}{get__magic__(e,t){t(),"magic"===e.prop&&(e.value="magic:simpleaop")}get__name(e,t){t(),e.value="".concat(e.value,":simpleaop")}set__name(e,t){const n=e.value.split(":"),a=n.indexOf("simpleaop");a>-1&&n.splice(a,1),e.value=n.join(":"),t()}actionAsync(e,n){return(a=function*(){yield n(),e.result="".concat(e.result,":simpleaop")},function(){var e=this,n=arguments;return new Promise((function(r,o){var i=a.apply(e,n);function s(e){t(i,r,o,s,c,"next",e)}function c(e){t(i,r,o,s,c,"throw",e)}s(void 0)}))})();var a}}},1129:(e,t,n)=>{const a=n(4376),r=n(786);e.exports=e=>{const t={};return Object.assign(t,{simple:{match:"testctx",mode:"ctx",bean:r},regExp:{match:[/^test-party.test\.\w+$/,"testctx"],mode:"ctx",bean:a}}),t}},7157:e=>{function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function n(e,t,n,a,r,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(a,r)}function a(e){return function(){var t=this,a=arguments;return new Promise((function(r,o){var i=e.apply(t,a);function s(e){n(i,r,o,s,c,"next",e)}function c(e){n(i,r,o,s,c,"throw",e)}s(void 0)}))}}e.exports=e=>{const n={Birthday:"🎂",Dance:"💃",Garden:"🏡"};class r extends e.meta.AtomCmsBase{create(e){var t=()=>super.create,n=this;return a((function*(){let a=e.atomClass,r=e.item,o=e.user;const i=yield t().call(n,{atomClass:a,item:r,user:o}),s=yield n.ctx.model.party.insert({atomId:i.atomId});return{atomId:i.atomId,itemId:s.insertId}}))()}read(e){var t=()=>super.read,n=this;return a((function*(){let a=e.atomClass,r=e.options,o=e.key,i=e.user;const s=yield t().call(n,{atomClass:a,options:r,key:o,user:i});return s?(n._getMeta(s,r),s):null}))()}select(e){var n=()=>super.select,r=this;return a((function*(){let a=e.atomClass,o=e.options,i=e.items,s=e.user;yield n().call(r,{atomClass:a,options:o,items:i,user:s});var c,l=function(e,n){var a="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!a){if(Array.isArray(e)||(a=function(e,n){if(e){if("string"==typeof e)return t(e,n);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?t(e,n):void 0}}(e))||n&&e&&"number"==typeof e.length){a&&(e=a);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,c=!1;return{s:function(){a=a.call(e)},n:function(){var e=a.next();return s=e.done,e},e:function(e){c=!0,i=e},f:function(){try{s||null==a.return||a.return()}finally{if(c)throw i}}}}(i);try{for(l.s();!(c=l.n()).done;){const e=c.value;r._getMeta(e,o)}}catch(e){l.e(e)}finally{l.f()}}))()}write(e){var t=()=>super.write,n=this;return a((function*(){let a=e.atomClass,r=e.target,o=e.key,i=e.item,s=e.options,c=e.user;yield t().call(n,{atomClass:a,target:r,key:o,item:i,options:s,user:c});const l=yield n.ctx.model.party.prepareData(i);l.id=o.itemId,delete l.partyOver,yield n.ctx.model.party.update(l)}))()}delete(e){var t=()=>super.delete,n=this;return a((function*(){let a=e.atomClass,r=e.key,o=e.user;yield n.ctx.model.party.delete({id:r.itemId}),yield t().call(n,{atomClass:a,key:r,user:o})}))()}checkRightAction(e){var t=()=>super.checkRightAction,n=this;return a((function*(){let a=e.atom,r=e.atomClass,o=e.action,i=e.stage,s=e.user,c=e.checkFlow;const l=yield t().call(n,{atom:a,atomClass:r,action:o,stage:i,user:s,checkFlow:c});if(!l)return l;if(1!==a.atomStage)return l;if(101!==o)return l;const d=yield n.ctx.model.party.get({id:a.itemId});return 101===o&&0===d.partyOver?l:null}))()}_getMeta(e,t){const a=t&&t.layout,r=[];let o;e.partyOver&&r.push(this.ctx.text("PartyOverFlag")),"table"!==a&&e.personCount&&r.push(e.personCount+"P"),e.partyTypeName&&(o="".concat(n[e.partyTypeName]).concat(this.ctx.text(e.partyTypeName)));const i={flags:r,summary:o};e._meta=i}}return r}},4724:(e,t,n)=>{function a(e,t,n,a,r,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(a,r)}const r=n(6718)("assert");e.exports=e=>{class t extends e.meta.BeanBase{execute(e){var t,n=this;return(t=function*(){e.sameAsCaller;const t=e.data;r.equal(n.ctx.locale,"zh-cn"),r.equal(t.message,"hello")},function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function s(e){a(i,r,o,s,c,"next",e)}function c(e){a(i,r,o,s,c,"throw",e)}s(void 0)}))})()}}return t}},3055:e=>{function t(e,t,n,a,r,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(a,r)}e.exports=e=>class{execute(e,n){return(a=function*(){e.data.text="hello echo",e.result="".concat(e.result,".echo"),yield n(),e.result="echo.".concat(e.result)},function(){var e=this,n=arguments;return new Promise((function(r,o){var i=a.apply(e,n);function s(e){t(i,r,o,s,c,"next",e)}function c(e){t(i,r,o,s,c,"throw",e)}s(void 0)}))})();var a}}},8931:(e,t,n)=>{function a(e,t,n,a,r,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(a,r)}const r=n(6718)("extend2");e.exports=e=>class{execute(e,t){return(n=function*(){const n=e.data.info,a=n.user&&n.user.provider;a&&"a-authgithub"===a.module&&"authgithub"===a.providerName&&(n.config=r(!0,n.config,{modules:{"a-layoutmobile":{layout:{login:"/a/login/login",loginOnStart:!0,toolbar:{tabbar:!0,labels:!0,bottomMd:!0},tabs:[{name:"Mine",tabLinkActive:!0,iconMaterial:"person",url:"/a/user/user/mine"}]}}}})),yield t()},function(){var e=this,t=arguments;return new Promise((function(r,o){var i=n.apply(e,t);function s(e){a(i,r,o,s,c,"next",e)}function c(e){a(i,r,o,s,c,"throw",e)}s(void 0)}))})();var n}}},5590:(e,t,n)=>{function a(e,t,n,a,r,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(a,r)}const r=n(6718)("extend2");e.exports=e=>class{execute(e,t){return(n=function*(){const n=e.data.info;n.config=r(!0,n.config,{modules:{"a-dashboard":{dashboard:{presets:{anonymous:{home:"test-party:dashboardTest"},authenticated:{home:"test-party:dashboardTest"}}}}}}),yield t()},function(){var e=this,t=arguments;return new Promise((function(r,o){var i=n.apply(e,t);function s(e){a(i,r,o,s,c,"next",e)}function c(e){a(i,r,o,s,c,"throw",e)}s(void 0)}))})();var n}}},2781:(e,t,n)=>{function a(e,t,n,a,r,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(a,r)}const r=n(6718)("assert");e.exports=e=>class{execute(e,t){return(n=function*(){const n=e.data;r(n.profileUser.profileId>0),yield t()},function(){var e=this,t=arguments;return new Promise((function(r,o){var i=n.apply(e,t);function s(e){a(i,r,o,s,c,"next",e)}function c(e){a(i,r,o,s,c,"throw",e)}s(void 0)}))})();var n}}},1200:e=>{function t(e,t,n,a,r,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(a,r)}e.exports=e=>{class n extends(e.app.meta.IOMessageBase(e)){onSaveSync(n){var a,r=()=>super.onSaveSync,o=this;return(a=function*(){let t=n.path,a=n.options,i=n.message,s=n.messageSync,c=n.messageClass;const l=a&&a.scene||"";if(1===s.messageDirection&&0===i.userIdTo){const n=JSON.parse(i.content),r={messageType:i.messageType,messageFilter:i.messageFilter,messageGroup:i.messageGroup,messageScene:l,userIdFrom:0,userIdTo:s.userId,content:{text:"Reply: ".concat(n.text)}};yield e.bean.io.publish({path:t,message:r,messageClass:c,options:a})}return yield r().call(o,{path:t,options:a,message:i,messageSync:s,messageClass:c})},function(){var e=this,n=arguments;return new Promise((function(r,o){var i=a.apply(e,n);function s(e){t(i,r,o,s,c,"next",e)}function c(e){t(i,r,o,s,c,"throw",e)}s(void 0)}))})()}}return n}},5886:e=>{e.exports=e=>class{get name(){return"localTest"}}},9169:e=>{function t(e,t,n,a,r,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(a,r)}e.exports=e=>class{execute(n,a){return(r=function*(){const t=e.request.body,n=t.a,r=t.b;if(void 0===n||void 0===r)return e.throw(1002);yield a()},function(){var e=this,n=arguments;return new Promise((function(a,o){var i=r.apply(e,n);function s(e){t(i,a,o,s,c,"next",e)}function c(e){t(i,a,o,s,c,"throw",e)}s(void 0)}))})();var r}}},6352:e=>{function t(e,t,n,a,r,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(a,r)}e.exports=e=>class{execute(n,a){return(r=function*(){const t=e.request.body,n=t.a,r=t.b;e.request.body.a=parseInt(n),e.request.body.b=parseInt(r),yield a()},function(){var e=this,n=arguments;return new Promise((function(a,o){var i=r.apply(e,n);function s(e){t(i,a,o,s,c,"next",e)}function c(e){t(i,a,o,s,c,"throw",e)}s(void 0)}))})();var r}}},1754:e=>{function t(e,t,n,a,r,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(a,r)}e.exports=e=>{class n extends e.meta.BeanBase{execute(e){return(n=function*(){const t=e.data;return t.a+t.b},function(){var e=this,a=arguments;return new Promise((function(r,o){var i=n.apply(e,a);function s(e){t(i,r,o,s,c,"next",e)}function c(e){t(i,r,o,s,c,"throw",e)}s(void 0)}))})();var n}}return n}},7385:e=>{function t(e,t,n,a,r,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(a,r)}e.exports=e=>{class n extends e.meta.BeanBase{execute(e){var n,a=this;return(n=function*(){const t=e.job;console.log("----- Schedule Test: iid=".concat(a.ctx.instance.id,", every=").concat(t.data.jobOptions.repeat.every,", ").concat(new Date))},function(){var e=this,a=arguments;return new Promise((function(r,o){var i=n.apply(e,a);function s(e){t(i,r,o,s,c,"next",e)}function c(e){t(i,r,o,s,c,"throw",e)}s(void 0)}))})()}}return n}},4858:e=>{function t(e,t,n,a,r,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(a,r)}e.exports=e=>class{execute(e){return(n=function*(){let t=e.value;return++t},function(){var e=this,a=arguments;return new Promise((function(r,o){var i=n.apply(e,a);function s(e){t(i,r,o,s,c,"next",e)}function c(e){t(i,r,o,s,c,"throw",e)}s(void 0)}))})();var n}}},9322:(e,t,n)=>{function a(e,t,n,a,r,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(a,r)}const r=n(6718)("assert");e.exports=e=>{class t extends e.meta.BeanBase{execute(){var e,t=this;return(e=function*(){console.log("test/feat/startup: all"),r.equal(t.ctx.instance,void 0)},function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){a(i,r,o,s,c,"next",e)}function c(e){a(i,r,o,s,c,"throw",e)}s(void 0)}))})()}}return t}},3380:(e,t,n)=>{function a(e,t,n,a,r,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(a,r)}const r=n(6718)("assert");e.exports=e=>{class t extends e.meta.BeanBase{execute(){var e,t=this;return(e=function*(){console.log("test/feat/startup: instance:".concat(t.ctx.instance.id)),r(t.ctx.instance.id>0)},function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){a(i,r,o,s,c,"next",e)}function c(e){a(i,r,o,s,c,"throw",e)}s(void 0)}))})()}}return t}},8646:e=>{function t(e,t,n,a,r,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(a,r)}e.exports=e=>{const n=e.app.meta.mockUtil.parseInfoFromPackage(__dirname);return class{execute(a){return(r=function*(){const t=a.keys.join("."),r=yield e.bean.stats._get({module:n.relativeName,fullName:t});return void 0===r?1:r+1},function(){var e=this,n=arguments;return new Promise((function(a,o){var i=r.apply(e,n);function s(e){t(i,a,o,s,c,"next",e)}function c(e){t(i,a,o,s,c,"throw",e)}s(void 0)}))})();var r}}}},2578:e=>{function t(e,t,n,a,r,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(a,r)}e.exports=e=>{const n=e.app.meta.mockUtil.parseInfoFromPackage(__dirname);return class{execute(a){return(r=function*(){const t=a.keys,r=a.user,o=t.join("."),i=yield e.bean.stats._get({module:n.relativeName,fullName:o,user:r});return void 0===i?1:i+1},function(){var e=this,n=arguments;return new Promise((function(a,o){var i=r.apply(e,n);function s(e){t(i,a,o,s,c,"next",e)}function c(e){t(i,a,o,s,c,"throw",e)}s(void 0)}))})();var r}}}},2556:e=>{function t(e,t,n,a,r,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(a,r)}e.exports=e=>{class n extends e.meta.BeanBase{actionSync(e){return e.a+e.b}actionAsync(e){return(n=function*(){let t=e.a,n=e.b;return Promise.resolve(t+n)},function(){var e=this,a=arguments;return new Promise((function(r,o){var i=n.apply(e,a);function s(e){t(i,r,o,s,c,"next",e)}function c(e){t(i,r,o,s,c,"throw",e)}s(void 0)}))})();var n}}return n}},6139:e=>{function t(e,t,n,a,r,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(a,r)}e.exports=class extends class{constructor(e){this.ctx=e}actionSync(e){return e.a+e.b}}{actionAsync(e){return(n=function*(){let t=e.a,n=e.b;return Promise.resolve(t+n)},function(){var e=this,a=arguments;return new Promise((function(r,o){var i=n.apply(e,a);function s(e){t(i,r,o,s,c,"next",e)}function c(e){t(i,r,o,s,c,"throw",e)}s(void 0)}))})();var n}}},637:e=>{function t(e,t,n,a,r,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(a,r)}function n(e){return function(){var n=this,a=arguments;return new Promise((function(r,o){var i=e.apply(n,a);function s(e){t(i,r,o,s,c,"next",e)}function c(e){t(i,r,o,s,c,"throw",e)}s(void 0)}))}}e.exports=e=>class{constructor(t){this._name=t||e.module.info.relativeName}get name(){return this._name}set name(e){this._name=e}actionSync(e){return e.a+e.b}actionAsync(e){return n((function*(){let t=e.a,n=e.b;return Promise.resolve(t+n)}))()}actionAsync2(e){var t=this;return n((function*(){let n=e.a,a=e.b;const r=t.name,o=yield t.actionAsync({a:n,b:a});return"".concat(r,":").concat(o)}))()}actionAsync3(e){var t=this;return n((function*(){let n=e.a,a=e.b;return yield t.actionAsync2({a:n,b:a})}))()}}},3223:(e,t,n)=>{function a(e,t,n,a,r,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(a,r)}function r(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){a(i,r,o,s,c,"next",e)}function c(e){a(i,r,o,s,c,"throw",e)}s(void 0)}))}}const o=n(6381);e.exports=e=>{class t extends e.meta.BeanBase{update(e){var t=this;return r((function*(){if(1===e.version){let e="\n          CREATE TABLE testParty (\n            id int(11) NOT NULL AUTO_INCREMENT,\n            createdAt timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,\n            updatedAt timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,\n            deleted int(11) DEFAULT '0',\n            iid int(11) DEFAULT '0',\n            atomId int(11) DEFAULT '0',\n            personCount int(11) DEFAULT '0',\n            partyTypeId int(11) DEFAULT '0',\n            partyOver int(11) DEFAULT '0',\n            PRIMARY KEY (id)\n          )\n        ";yield t.ctx.model.query(e),e="\n          CREATE TABLE testPartyType (\n            id int(11) NOT NULL AUTO_INCREMENT,\n            createdAt timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,\n            updatedAt timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,\n            deleted int(11) DEFAULT '0',\n            iid int(11) DEFAULT '0',\n            name varchar(255) DEFAULT NULL,\n            PRIMARY KEY (id)\n          )\n        ",yield t.ctx.model.query(e),e="\n          CREATE VIEW testPartyView as\n            select a.*,b.name as partyTypeName from testParty a\n              left join testPartyType b on a.partyTypeId=b.id\n        ",yield t.ctx.model.query(e)}}))()}init(e){var t=this;return r((function*(){if(1===e.version){for(var n=0,a=["Birthday","Dance","Garden"];n<a.length;n++){const e=a[n];yield t.ctx.model.partyType.insert({name:e})}const e=[{roleName:"system",action:"create"},{roleName:"system",action:"read",scopeNames:"authenticated"},{roleName:"system",action:"write",scopeNames:0},{roleName:"system",action:"delete",scopeNames:0},{roleName:"system",action:"clone",scopeNames:0},{roleName:"system",action:"deleteBulk"},{roleName:"system",action:"exportBulk"},{roleName:"anonymous",action:"read",scopeNames:"authenticated"},{roleName:"system",action:"partyOver",scopeNames:0},{roleName:"system",action:"partyOverBulk"}];yield t.ctx.bean.role.addRoleRightBatch({atomClassName:"party",roleRights:e});const r=new(o(t.ctx));yield r.run()}}))()}test(){return r((function*(){}))()}}return t}},6381:(e,t,n)=>{function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=n){var a,r,o=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(o.push(a.value),!t||o.length!==t);i=!0);}catch(e){s=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(s)throw r}}return o}}(e,t)||o(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=o(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var a=0,r=function(){};return{s:r,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){c=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(c)throw i}}}}function o(e,t){if(e){if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function s(e,t,n,a,r,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(a,r)}function c(e){return function(){var t=this,n=arguments;return new Promise((function(a,r){var o=e.apply(t,n);function i(e){s(o,a,r,i,c,"next",e)}function c(e){s(o,a,r,i,c,"throw",e)}i(void 0)}))}}const l=n(1782);e.exports=function(e){return class{run(){var t=this;return c((function*(){const n=yield t._testRoles();yield t._testRoleIncs(n),yield e.bean.role.setDirty(!0);const a=yield t._testUsers(n);yield t._testRoleRights(n),t._testCache(n,a)}))()}_testCache(t,n){e.cache.mem.set("roleIds",t),e.cache.mem.set("userIds",n)}_testRoles(){return c((function*(){const t={};var n,o=r(e.constant.module("a-base").systemRoles);try{for(o.s();!(n=o.n()).done;){const a=n.value,r=yield e.bean.role.getSystemRole({roleName:a});t[a]=r.id}}catch(e){o.e(e)}finally{o.f()}var i,s=r(l.roles);try{for(s.s();!(i=s.n()).done;){const n=a(i.value,4),r=n[0],o=n[1],s=n[2],c=n[3];t[r]=yield e.bean.role.add({roleName:r,leader:o,catalog:s,roleIdParent:t[c]})}}catch(e){s.e(e)}finally{s.f()}return t}))()}_testRoleIncs(t){return c((function*(){var n,o=r(l.roleIncs);try{for(o.s();!(n=o.n()).done;){const r=a(n.value,2),o=r[0],i=r[1];yield e.bean.role.addRoleInc({roleId:t[o],roleIdInc:t[i]})}}catch(e){o.e(e)}finally{o.f()}}))()}_testUsers(t){var n=this;return c((function*(){const o={};var i,s=r(l.users);try{for(s.s();!(i=s.n()).done;){const n=a(i.value,2),r=n[0],s=n[1];o[r]||(o[r]=yield e.bean.user.add({userName:r,realName:r}),yield e.bean.user.save({user:{id:o[r],activated:1}})),yield e.bean.role.addUserRole({userId:o[r],roleId:t[s]})}}catch(e){s.e(e)}finally{s.f()}yield n._testAuths(o);const c=yield e.bean.user.get({userName:"root"});return o.root=c.id,o}))()}_testRoleRights(){return c((function*(){yield e.bean.role.addRoleRightBatch({atomClassName:"party",roleRights:l.roleRights})}))()}_testAuths(t){return c((function*(){for(const n in t)yield e.executeBean({beanModule:"a-authsimple",beanFullName:"a-authsimple.service.auth",context:{userId:t[n],password:""},fn:"add"})}))()}}}},1782:e=>{e.exports={roles:[["friend",0,0,"external"],["consultant",0,1,"external"],["study",0,0,"consultant"],["work",0,0,"consultant"],["life",0,0,"consultant"],["family",0,1,"internal"],["father",0,0,"family"],["mother",1,0,"family"],["son",0,0,"family"],["daughter",0,0,"family"]],roleIncs:[["friend","family"]],users:[["Tom","father"],["Jane","mother"],["Tomson","son"],["Jannie","daughter"],["Jimmy","friend"],["Rose","friend"],["Smith","life"],["Jone","work"]],roleRights:[{roleName:"family",action:"create"},{roleName:"family",action:"read",scopeNames:"family"},{roleName:"authenticated",action:"read",scopeNames:0},{roleName:"authenticated",action:"write",scopeNames:0},{roleName:"authenticated",action:"delete",scopeNames:0},{roleName:"consultant",action:"read",scopeNames:"family"}]}},7313:(e,t,n)=>{const a=n(3223),r=n(2556),o=n(6139),i=n(637),s=n(5886),c=n(3055),l=n(2781),d=n(8931),m=n(5590),u=n(4724),p=n(1754),h=n(7385),y=n(9322),f=n(3380),v=n(9169),x=n(6352),g=n(7157),b=n(1200),w=n(4858),P=n(2578),S=n(8646);e.exports=e=>{const t={"version.manager":{mode:"app",bean:a}};return Object.assign(t,{"test.app":{mode:"app",bean:r},"test.class":{mode:"app",bean:o},testctx:{mode:"ctx",bean:i,global:!0},"local.test":{mode:"ctx",bean:s},"event.helloEcho":{mode:"ctx",bean:c},"event.userVerify":{mode:"ctx",bean:l},"event.loginInfo":{mode:"ctx",bean:d},"event.loginInfoDashboard":{mode:"ctx",bean:m},"broadcast.test":{mode:"app",bean:u},"queue.test":{mode:"app",bean:p},"schedule.test":{mode:"app",bean:h},"startup.startupAll":{mode:"app",bean:y},"startup.startupInstance":{mode:"app",bean:f},"middleware.testInterception":{mode:"ctx",bean:v},"middleware.testRestructuring":{mode:"ctx",bean:x},"atom.party":{mode:"app",bean:g},"io.message.test":{mode:"ctx",bean:b},"sequence.test":{mode:"ctx",bean:w},"stats.tasksUser":{mode:"ctx",bean:P},"stats.tasksInstance":{mode:"ctx",bean:S}}),t}},817:e=>{e.exports=e=>{const t={};return"unittest"===e.env&&(t.startups={startupAll:{bean:"startupAll"},startupInstance:{bean:"startupInstance",instance:!0}},t.queues={queueTest:{bean:"test"}},t.broadcasts={broadcastTest:{bean:"test"}},t.monkeyed=!1),t.message="Hello World",t.middlewares={testInterception:{bean:"testInterception",global:!1,dependencies:"instance"},testRestructuring:{bean:"testRestructuring",global:!1,dependencies:"instance"}},t.schedules={test:{bean:"test",repeat:{every:3e3},disable:!0}},t.settings={instance:{groupInfo:{slogan:""}},user:{groupInfo:{username:"zhennann"},groupExtra:{panelExtra:{groupInfo:{mobile:"123",sex:1,language:"en-us"}}}}},t.captcha={scenes:{formMobileVerifyTest:{module:"a-authsms",name:"captcha"},formCaptchaTest:null}},t.cms={},t.cms.sites={},t.cms.sites.party={base:{title:"Party",subTitle:"Test",description:"",keywords:""},host:{url:"http://example.com",rootPath:""},language:!1,themes:{default:"test-party"},edit:{mode:0},env:{format:{date:"YYYY-MM-DD",time:"HH:mm:ss"},article2:{recentNum:5},comment:{order:"asc",recentNum:5},brother:{order:"desc"},loadMore:{loadOnScroll:!1}}},t}},1971:e=>{e.exports={1001:"Error Test",1002:"Incomplete Parameters"}},9724:e=>{e.exports={PartyOver:"Party Over",PartyOverFlag:"Over"}},995:e=>{e.exports={Party:"宴会",Review:"评审",Reviewing:"评审中",Reviewed:"已评审",Birthday:"生日",Dance:"跳舞",Garden:"花园",Item:"条目",Products:"产品",Snapshots:"快照",About:"关于",Demonstration:"演示",PartyOver:"宴会结束",PartyOverFlag:"结束","Home(Test)":"首页（测试）","Party Test":"宴会测试","Party Name":"宴会名称","Person Count":"人数","Party Type":"宴会类型","Create Party":"新建宴会","Party List":"宴会列表","Level One":"层级1","Level Two":"层级2","Level Three":"层级3","Well Done":"干得好","Error Test":"错误测试","Hello World":"世界，您好","Fruit Sales":"水果销量","Fruit Sales(Line Chart)":"水果销量（折线图）","Fruit Sales(Pie Chart)":"水果销量（饼图）"}},9266:(e,t,n)=>{e.exports={"en-us":n(9724),"zh-cn":n(995)}},9838:e=>{e.exports=e=>({info:{bean:"test",title:"Test",persistence:!0,push:{channels:[]}}})},8804:e=>{const t={root:{id:"e341b99ef3bc495db8a8c09e6ad6203e",widgets:[{id:"a0031e5e2aef421f8434856512dec714",name:"widgetSales",module:"test-party",properties:{title:{type:1,value:""},height:{type:1,value:"auto"},widthLarge:{type:1,value:25},widthSmall:{type:1,value:100},widthMedium:{type:1,value:50}}},{id:"7aefb0431ef24996ba35b596b53372e7",group:!0,widgets:[{id:"fe96b7ede7f5480a9590e92184272455",name:"widgetSalesLine",module:"test-party",properties:{fruit:{bind:{widgetId:"a0031e5e2aef421f8434856512dec714",propertyName:"fruit"},type:2},title:{type:1,value:""},height:{type:1,value:"auto"},dataSource:{bind:{widgetId:"a0031e5e2aef421f8434856512dec714",propertyName:"dataSource"},type:2},widthLarge:{type:1,value:100},widthSmall:{type:1,value:100},widthMedium:{type:1,value:100}}},{id:"9ee4b1234b4a477890ce094e8eb5e332",name:"widgetSalesPie",module:"test-party",properties:{title:{type:1,value:""},height:{type:1,value:"auto"},season:{bind:{widgetId:"a0031e5e2aef421f8434856512dec714",propertyName:"season"},type:2},dataSource:{bind:{widgetId:"a0031e5e2aef421f8434856512dec714",propertyName:"dataSource"},type:2},widthLarge:{type:1,value:100},widthSmall:{type:1,value:100},widthMedium:{type:1,value:100}}}],properties:{title:{type:1,value:""},height:{type:1,value:"auto"},widthLarge:{type:1,value:25},widthSmall:{type:1,value:100},widthMedium:{type:1,value:50}}},{id:"64f7c356b78f45799e4b3072af73866e",name:"widgetSnapshot",module:"test-party",properties:{title:{type:1,value:""},height:{type:1,value:"auto"},snapshots:{type:2,binds:[{id:"fb3eac5b678e488cb4da60a2bddb0f60",widgetId:"fe96b7ede7f5480a9590e92184272455",propertyName:"snapshot"},{id:"40b8e8ea3007418992f0489cba98129e",widgetId:"9ee4b1234b4a477890ce094e8eb5e332",propertyName:"snapshot"}]},widthLarge:{type:1,value:25},widthSmall:{type:1,value:100},widthMedium:{type:1,value:50}}},{id:"8a04bfa743fb42b2a65a104e018ab924",name:"widgetAbout",module:"a-dashboard",properties:{title:{type:1,value:""},height:{type:1,value:"auto"},widthLarge:{type:1,value:25},widthSmall:{type:1,value:100},widthMedium:{type:1,value:50}}}]}};e.exports=e=>({atomName:"Home(Test)",atomStaticKey:"dashboardTest",atomRevision:0,description:"",content:JSON.stringify(t),resourceRoles:"root"})},1089:(e,t,n)=>{const a=n(8804);e.exports=e=>[a(e)]},4001:e=>{e.exports=e=>{const t=e.meta.mockUtil.parseInfoFromPackage(__dirname);return[{atomName:"Create Party",atomStaticKey:"createParty",atomRevision:0,atomCategoryId:"a-base:menu.Create",resourceType:"a-base:menu",resourceConfig:JSON.stringify({module:t.relativeName,atomClassName:"party",atomAction:"create"}),resourceRoles:"template.system,family"},{atomName:"Party List",atomStaticKey:"listParty",atomRevision:0,atomCategoryId:"a-base:menu.List",resourceType:"a-base:menu",resourceConfig:JSON.stringify({module:t.relativeName,atomClassName:"party",atomAction:"read"}),resourceRoles:"template.system,authenticated"},{atomName:"Kitchen-sink",atomStaticKey:"kitchenSink",atomRevision:0,atomCategoryId:"a-base:menu.Demonstration",resourceType:"a-base:menu",resourceConfig:JSON.stringify({actionModule:t.relativeName,actionPath:"kitchen-sink/index"}),resourceRoles:"root"},{atomName:"Fruit Sales",atomStaticKey:"widgetSales",atomRevision:0,atomCategoryId:"a-dashboard:widget.Demonstration",resourceType:"a-dashboard:widget",resourceConfig:JSON.stringify({module:t.relativeName,component:"widgetSales"}),resourceRoles:"root"},{atomName:"Fruit Sales(Line Chart)",atomStaticKey:"widgetSalesLine",atomRevision:0,atomCategoryId:"a-dashboard:widget.Demonstration",resourceType:"a-dashboard:widget",resourceConfig:JSON.stringify({module:t.relativeName,component:"widgetSalesLine"}),resourceRoles:"root"},{atomName:"Fruit Sales(Pie Chart)",atomStaticKey:"widgetSalesPie",atomRevision:0,atomCategoryId:"a-dashboard:widget.Demonstration",resourceType:"a-dashboard:widget",resourceConfig:JSON.stringify({module:t.relativeName,component:"widgetSalesPie"}),resourceRoles:"root"},{atomName:"Snapshots",atomStaticKey:"widgetSnapshot",atomRevision:0,atomCategoryId:"a-dashboard:widget.Demonstration",resourceType:"a-dashboard:widget",resourceConfig:JSON.stringify({module:t.relativeName,component:"widgetSnapshot"}),resourceRoles:"root"}]}},5623:e=>{function t(e,t,n,a,r,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(a,r)}e.exports=e=>{const n={};return n.languages={async:!0,type:"string",errors:!0,compile:function(){return function(){var n,a=(n=function*(t){if(this.bean.base.locales().findIndex((e=>e.value===t))>-1)return!0;const n=[{keyword:"x-languages",params:[],message:this.text("Not Expected Value")}];throw new e.meta.ajv.ValidationError(n)},function(){var e=this,a=arguments;return new Promise((function(r,o){var i=n.apply(e,a);function s(e){t(i,r,o,s,c,"next",e)}function c(e){t(i,r,o,s,c,"throw",e)}s(void 0)}))});return function(e){return a.apply(this,arguments)}}()}},n}},997:e=>{e.exports=e=>{const t=e.meta.mockUtil.parseInfoFromPackage(__dirname),n={};return n.formTest={type:"object",properties:{__groupInfo:{ebType:"group-flatten",ebTitle:"Info Group"},userName:{type:"string",ebType:"text",ebTitle:"Username",ebDescription:"Your Name",ebHelp:"Please type your name",notEmpty:!0},password:{type:"string",ebType:"text",ebTitle:"Password",ebSecure:!0,notEmpty:!0,minLength:6},passwordAgain:{type:"string",ebType:"text",ebTitle:"Password Again",ebSecure:!0,notEmpty:!0,const:{$data:"1/password"}},sex:{type:"number",ebType:"select",ebTitle:"Sex",ebMultiple:!1,ebOptions:[{title:"Male",value:1},{title:"Female",value:2}],ebOptionsBlankAuto:!0,ebParams:{openIn:"sheet",closeOnSelect:!0},notEmpty:!0},rememberMe:{type:"boolean",ebType:"toggle",ebTitle:"Remember Me"},__groupExtra:{ebType:"group-flatten",ebTitle:"Extra Group"},birthday:{type:["object","null"],ebType:"datepicker",ebTitle:"Birthday",ebParams:{dateFormat:"DD, MM dd, yyyy",header:!1,toolbar:!1},notEmpty:!0,"x-date":!0},language:{type:"string",ebType:"select",ebTitle:"Language",ebOptionsUrl:"/a/base/base/locales",ebOptionsUrlParams:null,ebOptionsBlankAuto:!0,ebParams:{openIn:"sheet",closeOnSelect:!0},"x-languages":!0},avatar:{type:"string",ebType:"file",ebTitle:"Avatar",ebParams:{mode:1,fixed:{width:96,height:96}},notEmpty:!0},motto:{type:"string",ebType:"component",ebRender:{module:t.relativeName,name:"renderMotto",options:{props:{height:"100px"}}},notEmpty:!0}}},n.formCaptchaTest={type:"object",properties:{userName:{type:"string",ebType:"text",ebTitle:"Username",notEmpty:!0},password:{type:"string",ebType:"text",ebTitle:"Password",ebSecure:!0,notEmpty:!0,minLength:6}}},n.formMobileVerifyTest={type:"object",properties:{mobile:{type:"string",ebType:"text",ebInputType:"tel",ebTitle:"Phone Number",notEmpty:!0}}},n}},6636:e=>{e.exports=e=>({party:{type:"object",properties:{atomName:{type:"string",ebType:"text",ebTitle:"Party Name",notEmpty:!0},personCount:{type:"integer",ebType:"text",ebTitle:"Person Count",minimum:1,notEmpty:!0},partyTypeId:{type:"number",ebType:"select",ebTitle:"Party Type",ebOptionsUrl:"/test/party/party/types",ebOptionTitleKey:"name",ebOptionValueKey:"id",ebOptionsBlankAuto:!0,notEmpty:!0},atomCategoryId:{type:"number",ebType:"category",ebTitle:"Category"},atomTags:{type:["string","null"],ebType:"tags",ebTitle:"Tags"}}},partySearch:{type:"object",properties:{partyTypeId:{type:"number",ebType:"select",ebTitle:"Party Type",ebOptionsUrl:"/test/party/party/types",ebOptionTitleKey:"name",ebOptionValueKey:"id",ebOptionsBlankAuto:!0}}}})},1712:e=>{e.exports=e=>({settingsUser:{type:"object",properties:{_myInfo_:{ebType:"text",ebTitle:"My Info",ebComputed:{expression:'groupInfo.username + "(" + (groupExtra.panelExtra.groupInfo.mobile || "-") + ")"',dependencies:["groupInfo.username","groupExtra.panelExtra.groupInfo.mobile"],immediate:!0},ebReadOnly:!0},groupInfo:{type:"object",ebType:"group",ebTitle:"Info Group",properties:{username:{type:"string",ebType:"text",ebTitle:"My Name",notEmpty:!0}}},groupExtra:{type:"object",ebType:"group",ebTitle:"Extra Group",properties:{panelExtra:{type:"object",ebType:"panel",ebTitle:"Extra",$ref:"settingsUserExtra"}}}}},settingsUserExtra:{type:"object",properties:{groupInfo:{type:"object",ebType:"group",ebTitle:"Info Group",ebGroupWhole:!0,properties:{mobile:{type:"string",ebType:"text",ebTitle:"Mobile",notEmpty:!0},sex:{type:"number",ebType:"select",ebTitle:"Sex",ebMultiple:!1,ebOptions:[{title:"Male",value:1},{title:"Female",value:2}],ebParams:{openIn:"page",closeOnSelect:!0},notEmpty:!0},language:{type:"string",ebType:"select",ebTitle:"Language",ebOptionsUrl:"/a/base/base/locales",ebOptionsUrlParams:null,"x-languages":!0,notEmpty:!0}}}}},settingsInstance:{type:"object",properties:{groupInfo:{type:"object",ebType:"group",ebTitle:"Info Group",properties:{slogan:{type:"string",ebType:"text",ebTitle:"Slogan",notEmpty:!0}}}}}})},8326:(e,t,n)=>{const a=n(997),r=n(6636),o=n(1712);e.exports=e=>{const t={};return Object.assign(t,a(e)),Object.assign(t,r(e)),Object.assign(t,o(e)),t}},1910:(e,t,n)=>{function a(e,t,n,a,r,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(a,r)}const r=n(4303);e.exports=e=>{class t extends e.Controller{languages(){var e,t=this;return(e=function*(){const e=t.ctx.params.query;let n;n=e?r.filter((t=>0===t.name.toLowerCase().indexOf(e.toLowerCase()))):[],t.ctx.success(n)},function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){a(i,r,o,s,c,"next",e)}function c(e){a(i,r,o,s,c,"throw",e)}s(void 0)}))})()}}return t}},8349:(e,t,n)=>{function a(e,t,n,a,r,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(a,r)}function r(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){a(i,r,o,s,c,"next",e)}function c(e){a(i,r,o,s,c,"throw",e)}s(void 0)}))}}const o=n(6718)("extend2"),i={userName:"",password:"",passwordAgain:"",sex:0,birthday:null,language:"",avatar:"",rememberMe:!1,motto:""};e.exports=e=>{class t extends e.Controller{load(){var e=this;return r((function*(){const t=e._getCacheName();let n=yield e.ctx.cache.db.get(t);n=o(!0,{},i,n),e.ctx.success(n)}))()}saveSimple(){var e=this;return r((function*(){const t=e.ctx.request.body.data,n=e._getCacheName();yield e.ctx.cache.db.set(n,t),e.ctx.success()}))()}saveValidation(){var e=this;return r((function*(){yield e.saveSimple()}))()}signup(){this.ctx.success()}mobileVerify(){this.ctx.success()}_getCacheName(){const e=this.ctx.state.user.op;return"__formTest:".concat(e.id)}}return t}},4961:e=>{function t(e,t,n,a,r,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(a,r)}function n(e){return function(){var n=this,a=arguments;return new Promise((function(r,o){var i=e.apply(n,a);function s(e){t(i,r,o,s,c,"next",e)}function c(e){t(i,r,o,s,c,"throw",e)}s(void 0)}))}}e.exports=e=>{class t extends e.Controller{echo(){var e=this;return n((function*(){e.ctx.success("Hello World")}))()}echo2(){var e=this;return n((function*(){const t=e.ctx.config.message;e.ctx.success(t)}))()}echo3(){var e=this;return n((function*(){const t=e.ctx.text("Hello World");e.ctx.success(t)}))()}echo4(){var e=this;return n((function*(){const t=e.ctx.request.body,n=t.message,a=t.markCount,r="".concat(n).concat(new Array(a+1).join("!"));e.ctx.success(r)}))()}echo6(){var e=this;return n((function*(){const t=(yield e.ctx.db.insert("testParty",{iid:e.ctx.instance.id,deleted:0,personCount:3})).insertId;yield e.ctx.db.update("testParty",{id:t,personCount:5});const n=yield e.ctx.db.get("testParty",{id:t});yield e.ctx.db.delete("testParty",{id:t}),e.ctx.success(n)}))()}echo7(){var e=this;return n((function*(){const t=(yield e.ctx.model.party.insert({personCount:3})).insertId;yield e.ctx.model.party.update({id:t,personCount:6});const n=yield e.ctx.model.party.get({id:t});yield e.ctx.model.party.delete({id:t}),e.ctx.success(n)}))()}echo8(){var e=this;return n((function*(){const t=(yield e.ctx.model.party.insert({personCount:3})).insertId;yield e.ctx.model.party.update({id:t,personCountA:6}),e.ctx.success()}))()}echo9(){var e=this;return n((function*(){e.ctx.success("ok")}))()}}return t}},5381:e=>{function t(e,t,n,a,r,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(a,r)}e.exports=e=>{class n extends e.Controller{list(){var e,n=this;return(e=function*(){let e=n.ctx.request.body.page;e=n.ctx.bean.util.page(e,!1);const t=[];for(let a=0;a<e.size;a++){const r=e.index+a+1;if(r>89)break;t.push({id:r,title:"".concat(n.ctx.text("Item")," - ").concat(r)})}n.ctx.successMore(t,e.index,e.size)},function(){var n=this,a=arguments;return new Promise((function(r,o){var i=e.apply(n,a);function s(e){t(i,r,o,s,c,"next",e)}function c(e){t(i,r,o,s,c,"throw",e)}s(void 0)}))})()}}return n}},9222:e=>{function t(e,t,n,a,r,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(a,r)}function n(e){return function(){var n=this,a=arguments;return new Promise((function(r,o){var i=e.apply(n,a);function s(e){t(i,r,o,s,c,"next",e)}function c(e){t(i,r,o,s,c,"throw",e)}s(void 0)}))}}e.exports=e=>{class t extends e.Controller{types(){var e=this;return n((function*(){const t=yield e.ctx.service.party.types();e.ctx.success(t)}))()}over(){var e=this;return n((function*(){const t=yield e.ctx.service.party.over({key:e.ctx.request.body.key,user:e.ctx.state.user.op});e.ctx.success(t)}))()}overBulk(){var e=this;return n((function*(){const t=yield e.ctx.service.party.overBulk({keys:e.ctx.request.body.keys,user:e.ctx.state.user.op});e.ctx.success(t)}))()}}return t}},9604:(e,t,n)=>{function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=n){var a,r,o=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(o.push(a.value),!t||o.length!==t);i=!0);}catch(e){s=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(s)throw r}}return o}}(e,t)||r(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function i(e,t,n,a,r,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(a,r)}function s(e){return function(){var t=this,n=arguments;return new Promise((function(a,r){var o=e.apply(t,n);function s(e){i(o,a,r,s,c,"next",e)}function c(e){i(o,a,r,s,c,"throw",e)}s(void 0)}))}}const c=n(6718)("assert");e.exports=e=>{class t extends e.Controller{getRoleIdOwner(e,t){var n=this;return s((function*(){return(yield n.ctx.bean.atom.preferredRoles({atomClass:e,user:{id:t}}))[0].roleIdWho}))()}all(){var e=this;return s((function*(){const t=yield e.ctx.bean.atomClass.get({atomClassName:"party"}),n=e.ctx.cache.mem.get("userIds");yield e._testCheckList("formal",n,[["Tom",0],["Jane",0],["Jimmy",0],["Smith",0],["",0]],((e,t,n)=>{c.equal(e,t,n)}));const r=yield e.getRoleIdOwner(t,n.Tom),o=yield e.ctx.bean.atom.create({atomClass:t,roleIdOwner:r,user:{id:n.Tom}});yield e.ctx.bean.atom.write({key:o,item:{atomName:"test:all",personCount:3},user:{id:n.Tom}}),yield e._testCheckList("draft",n,[["Tom",1],["Jane",0],["Jimmy",0],["Smith",0],["",0]],((e,t,n)=>{c.equal(e,t,n)}));const i=(yield e.ctx.bean.atom.submit({key:o,options:{ignoreFlow:!0},user:{id:n.Tom}})).formal.key;yield e._testCheckList("formal",n,[["Tom",1],["Jane",1],["Jimmy",1],["Smith",1],["",1]],((e,t,n)=>{c.equal(e,t,n)})),yield e.ctx.bean.atom.write({key:o,item:{personCount:8},user:{id:n.Tom}});const s=yield e.ctx.bean.atom.read({key:o,user:{id:n.Tom}});c.equal(s.personCount,8);const l=yield e.ctx.bean.atom.select({atomClass:t,options:{where:{atomName:{val:"test:all",op:"likeRight"}},orders:[["a.createdAt","desc"]],page:{index:0,size:0},stage:"formal"},user:{id:n.Tom}});c.equal(l.length,1);for(var d=0,m=[["Tom",i.atomId,!0]];d<m.length;d++){const t=a(m[d],3),r=t[0],o=t[1],i=t[2],s=yield e.ctx.bean.atom.checkRightRead({atom:{id:o},user:{id:n[r]}});c.equal(!!s,i,r)}for(var u=0,p=[["Tom",i.atomId,!0],["Tomson",i.atomId,!1]];u<p.length;u++){const t=a(p[u],3),r=t[0],o=t[1],i=t[2],s=yield e.ctx.bean.atom.checkRightAction({atom:{id:o},action:"write",user:{id:n[r]}});c.equal(!!s,i,r)}for(var h=0,y=[["Tom",i.atomId,!0],["Tomson",i.atomId,!1]];h<y.length;h++){const t=a(y[h],3),r=t[0],o=t[1],i=t[2],s=yield e.ctx.bean.atom.checkRightAction({atom:{id:o},action:"delete",user:{id:n[r]}});c.equal(!!s,i,r)}for(var f=0,v=[["Tom",!0],["Jimmy",!0],["Smith",!1]];f<v.length;f++){const r=a(v[f],2),o=r[0],i=r[1],s=yield e.ctx.bean.atom.checkRightCreate({atomClass:t,user:{id:n[o]}});c.equal(!!s,i,o)}yield e.ctx.bean.atom.delete({key:i,user:{id:n.Tom}}),yield e._testCheckList("formal",n,[["Tom",0],["Jane",0],["Jimmy",0],["Smith",0],["",0]],((e,t,n)=>{c.equal(e,t,n)})),e.ctx.success()}))()}_testCheckList(e,t,n,o){var i=this;return s((function*(){var s,c=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=r(e))){n&&(e=n);var a=0,o=function(){};return{s:o,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){c=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(c)throw i}}}}(n);try{for(c.s();!(s=c.n()).done;){const n=a(s.value,2),r=n[0],c=n[1],l=yield i.ctx.bean.atom.select({options:{where:{atomName:"test:all","b.module":"test-party"},orders:null,page:null,stage:e},user:r?{id:t[r]}:null});o(l.length,c,r)}}catch(e){c.e(e)}finally{c.f()}}))()}}return t}},3328:e=>{function t(e,t,n,a,r,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(a,r)}function n(e){return function(){var n=this,a=arguments;return new Promise((function(r,o){var i=e.apply(n,a);function s(e){t(i,r,o,s,c,"next",e)}function c(e){t(i,r,o,s,c,"throw",e)}s(void 0)}))}}e.exports=e=>{class t extends e.Controller{checkRightCreate(){var e=this;return n((function*(){e.ctx.success(e.ctx.meta._atomClass)}))()}checkRightRead(){var e=this;return n((function*(){e.ctx.success(e.ctx.meta._atom)}))()}checkRightWrite(){var e=this;return n((function*(){e.ctx.success(e.ctx.meta._atom)}))()}checkRightAction(){var e=this;return n((function*(){e.ctx.success(e.ctx.meta._atom)}))()}}return t}},3252:(e,t,n)=>{function a(e,t,n,a,r,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(a,r)}function r(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){a(i,r,o,s,c,"next",e)}function c(e){a(i,r,o,s,c,"throw",e)}s(void 0)}))}}const o=n(6718)("assert");e.exports=e=>{class t extends e.Controller{getRoleIdOwner(e,t){var n=this;return r((function*(){return(yield n.ctx.bean.atom.preferredRoles({atomClass:e,user:{id:t}}))[0].roleIdWho}))()}starLabel(){var e=this;return r((function*(){const t=yield e.ctx.bean.atomClass.get({atomClassName:"party"}),n=e.ctx.state.user.op,a=yield e.getRoleIdOwner(t,n.id),r=yield e.ctx.bean.atom.create({atomClass:t,roleIdOwner:a,user:n});yield e.ctx.bean.atom.write({key:r,item:{atomName:"test:starLabel"},user:n});const i=(yield e.ctx.bean.atom.submit({key:r,options:{ignoreFlow:!0},user:n})).formal.key;let s=yield e.ctx.bean.atom.read({key:i,user:n});o.equal(s.star,null),o.equal(s.labels,null),yield e.ctx.bean.atom.star({key:i,atom:{star:1},user:n}),yield e.ctx.bean.atom.labels({key:i,atom:{labels:[1]},user:n}),s=yield e.ctx.bean.atom.read({key:i,user:n}),o.equal(s.star,1),o.equal(s.labels,"[1]");let c=yield e.ctx.bean.atom.select({user:n,options:{star:1,where:{atomName:"test:starLabel"},stage:"formal"}});o.equal(c.length,1),c=yield e.ctx.bean.atom.select({user:n,options:{label:1,where:{atomName:"test:starLabel"},stage:"formal"}}),o.equal(c.length,1),c=yield e.ctx.bean.atom.select({user:n,options:{label:2,where:{atomName:"test:starLabel"},stage:"formal"}}),o.equal(c.length,0),yield e.ctx.bean.atom.star({key:i,atom:{star:0},user:n}),yield e.ctx.bean.atom.labels({key:i,atom:{labels:null},user:n}),s=yield e.ctx.bean.atom.read({key:i,user:n}),o.equal(s.star,null),o.equal(s.labels,null),yield e.ctx.bean.atom.delete({key:i,user:n}),e.ctx.success()}))()}}return t}},1399:(e,t,n)=>{function a(e,t,n,a,r,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(a,r)}const r=n(6718)("assert");e.exports=e=>{class t extends e.Controller{db(){var e,t=this;return(e=function*(){let e,n;const a="__test:name:db";n=yield t.ctx.cache._db.getset(a,"zhen.nann"),r.equal(n,void 0),n=yield t.ctx.cache._db.getset(a,"zhennann"),r.equal(n,"zhen.nann"),e=yield t.ctx.cache._db.has(a),r.equal(e,!0),n=yield t.ctx.cache._db.get(a),r.equal(n,"zhennann"),yield t.ctx.cache._db.remove(a),e=yield t.ctx.cache._db.has(a),r.equal(e,!1),yield t.ctx.cache._db.set(a,"zhennann",2e3),n=yield t.ctx.cache._db.get(a),r.equal(n,"zhennann");const o=t.ctx.cache._db.module(t.ctx.module.info.relativeName);n=yield o.get(a),r.equal(n,"zhennann"),yield(3e3,new Promise((e=>setTimeout(e,3e3)))),n=yield t.ctx.cache._db.get(a),r.equal(n,void 0),t.ctx.success()},function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){a(i,r,o,s,c,"next",e)}function c(e){a(i,r,o,s,c,"throw",e)}s(void 0)}))})()}}return t}},1146:(e,t,n)=>{function a(e,t,n,a,r,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(a,r)}const r=n(6718)("assert");e.exports=e=>{class t extends e.Controller{mem(){var e,t=this;return(e=function*(){let e,n;const a="__test:name:mem";n=t.ctx.cache.mem.getset(a,"zhen.nann"),r.equal(n,void 0),n=t.ctx.cache.mem.getset(a,"zhennann"),r.equal(n,"zhen.nann"),e=t.ctx.cache.mem.has(a),r.equal(!!e,!0),n=t.ctx.cache.mem.get(a),r.equal(n,"zhennann"),t.ctx.cache.mem.remove(a),e=t.ctx.cache.mem.has(a),r.equal(e,null),t.ctx.cache.mem.set(a,"zhennann",1e3),n=t.ctx.cache.mem.get(a),r.equal(n,"zhennann"),n=t.ctx.cache.mem.module(t.ctx.module.info.relativeName).get(a),r.equal(n,"zhennann"),yield(1500,new Promise((e=>setTimeout(e,1500)))),n=t.ctx.cache.mem.get(a),r.equal(n,null),t.ctx.success()},function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){a(i,r,o,s,c,"next",e)}function c(e){a(i,r,o,s,c,"throw",e)}s(void 0)}))})()}}return t}},7720:(e,t,n)=>{function a(e,t,n,a,r,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(a,r)}const r=n(6718)("assert");e.exports=e=>{class t extends e.Controller{redis(){var e,t=this;return(e=function*(){let e,n;const a="__test:name:redis";n=yield t.ctx.cache.redis.getset(a,"zhen.nann"),r.equal(n,void 0),n=yield t.ctx.cache.redis.getset(a,"zhennann"),r.equal(n,"zhen.nann"),e=yield t.ctx.cache.redis.has(a),r.equal(e,!0),n=yield t.ctx.cache.redis.get(a),r.equal(n,"zhennann"),yield t.ctx.cache.redis.remove(a),e=yield t.ctx.cache.redis.has(a),r.equal(e,!1),yield t.ctx.cache.redis.set(a,"zhennann",2e3),n=yield t.ctx.cache.redis.get(a),r.equal(n,"zhennann");const o=t.ctx.cache.redis.module(t.ctx.module.info.relativeName);n=yield o.get(a),r.equal(n,"zhennann"),yield(3e3,new Promise((e=>setTimeout(e,3e3)))),n=yield t.ctx.cache.redis.get(a),r.equal(n,void 0),t.ctx.success()},function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){a(i,r,o,s,c,"next",e)}function c(e){a(i,r,o,s,c,"throw",e)}s(void 0)}))})()}}return t}},7437:(e,t,n)=>{function a(e,t,n,a,r,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(a,r)}const r=n(6718)("assert");e.exports=e=>{class t extends e.Controller{test(){var e,t=this;return(e=function*(){let e=t.ctx.config.message;r.equal(e,"Hello World"),e=t.ctx.config.module("test-party").message,r.equal(e,"Hello World"),t.ctx.success()},function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){a(i,r,o,s,c,"next",e)}function c(e){a(i,r,o,s,c,"throw",e)}s(void 0)}))})()}}return t}},4423:(e,t,n)=>{function a(e,t,n,a,r,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(a,r)}function r(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){a(i,r,o,s,c,"next",e)}function c(e){a(i,r,o,s,c,"throw",e)}s(void 0)}))}}n(6718)("assert"),e.exports=e=>{class t extends e.Controller{enus(){var e=this;return r((function*(){const t=e.ctx.config.message,n={enus:e.ctx.text(t),zhcn:e.ctx.text.locale("zh-cn",t)};e.ctx.success(n)}))()}zhcn(){var e=this;return r((function*(){const t=e.ctx.config.message,n={zhcn:e.ctx.text(t),enus:e.ctx.text.locale("en-us",t)};e.ctx.success(n)}))()}}return t}},9447:e=>{function t(e,t,n,a,r,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(a,r)}function n(e){return function(){var n=this,a=arguments;return new Promise((function(r,o){var i=e.apply(n,a);function s(e){t(i,r,o,s,c,"next",e)}function c(e){t(i,r,o,s,c,"throw",e)}s(void 0)}))}}e.exports=e=>{class t extends e.Controller{performAction(){var e=this;return n((function*(){const t=e.ctx.request.body.id,n=yield e.ctx.performAction({method:"post",url:"test/ctx/performAction/echo",body:{id:t}});e.ctx.success(n)}))()}echo(){var e=this;return n((function*(){const t=e.ctx.request.body.id;e.ctx.success(t)}))()}}return t}},5245:(e,t,n)=>{function a(e,t,n,a,r,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(a,r)}function r(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){a(i,r,o,s,c,"next",e)}function c(e){a(i,r,o,s,c,"throw",e)}s(void 0)}))}}const o=n(6718)("assert");e.exports=e=>{class t extends e.Controller{request(){var e=this;return r((function*(){o.equal(e.ctx.params.id,"1"),o.equal(e.ctx.getInt("id"),1),o.equal(e.ctx.query.age,"18"),o.equal(e.ctx.getInt("age"),18),o.equal(e.ctx.request.body.userName,"zhennann"),o.equal(e.ctx.getStr("userName"),"zhennann"),e.ctx.success()}))()}requestXML(){var e=this;return r((function*(){const t=yield e.ctx.getPayload();e.ctx.status=200,e.ctx.type="text/xml",e.ctx.body=t.toString()}))()}}return t}},3686:e=>{function t(e,t,n,a,r,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(a,r)}function n(e){return function(){var n=this,a=arguments;return new Promise((function(r,o){var i=e.apply(n,a);function s(e){t(i,r,o,s,c,"next",e)}function c(e){t(i,r,o,s,c,"throw",e)}s(void 0)}))}}e.exports=e=>{class t extends e.Controller{success(){var e=this;return n((function*(){e.ctx.success({userName:"zhennann"})}))()}successMore(){var e=this;return n((function*(){const t=e.ctx.request.body.page;e.ctx.successMore([{userName:"zhennann"},{userName:"root"}],t.index,t.size)}))()}fail(){var e=this;return n((function*(){e.ctx.fail(1001)}))()}throwError(){var e=this;return n((function*(){e.ctx.throw(1001)}))()}}return t}},4238:(e,t,n)=>{function a(e,t,n,a,r,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(a,r)}function r(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){a(i,r,o,s,c,"next",e)}function c(e){a(i,r,o,s,c,"throw",e)}s(void 0)}))}}const o=n(6718)("assert");e.exports=e=>{class t extends e.Controller{session(){var e=this;return r((function*(){e.ctx.session._key1=1;const t=yield e.ctx.performAction({method:"post",url:"test/ctx/session/echo1"});o.equal(t.user.op.id,e.ctx.state.user.op.id),o.equal(t.instance.id,e.ctx.instance.id),o.equal(e.ctx.session._key2,2),e.ctx.success()}))()}echo1(){var e=this;return r((function*(){const t=yield e.ctx.performAction({method:"post",url:"test/ctx/session/echo2"});e.ctx.success(t)}))()}echo2(){var e=this;return r((function*(){o.equal(e.ctx.session._key1,1),e.ctx.session._key2=2,e.ctx.success({user:e.ctx.state.user,instance:e.ctx.instance})}))()}}return t}},9840:(e,t,n)=>{function a(e,t,n,a,r,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(a,r)}const r=n(6718)("assert");e.exports=e=>{class t extends e.Controller{tail(){var e,t=this;return(e=function*(){t.ctx.meta._tail_test=1,t.ctx.tail((()=>{r.equal(t.ctx.meta._tail_test,2),t.ctx.tail((()=>{r.equal(t.ctx.meta._tail_test,3)})),t.ctx.meta._tail_test=3})),t.ctx.meta._tail_test=2,t.ctx.success()},function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){a(i,r,o,s,c,"next",e)}function c(e){a(i,r,o,s,c,"throw",e)}s(void 0)}))})()}}return t}},8880:e=>{function t(e,t,n,a,r,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(a,r)}e.exports=e=>{class n extends e.Controller{transaction(){var e,n=this;return(e=function*(){const e=n.ctx.state.user.op,t=n.ctx.request.body.key,a=n.ctx.request.body.item;yield n.ctx.bean.atom.write({key:t,item:{atomName:a.atomName},user:e}),yield n.ctx.bean.atom.write({key:t,item:{personCount:a.personCount},user:e}),n.ctx.success()},function(){var n=this,a=arguments;return new Promise((function(r,o){var i=e.apply(n,a);function s(e){t(i,r,o,s,c,"next",e)}function c(e){t(i,r,o,s,c,"throw",e)}s(void 0)}))})()}}return n}},9228:(e,t,n)=>{function a(e,t,n,a,r,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(a,r)}function r(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){a(i,r,o,s,c,"next",e)}function c(e){a(i,r,o,s,c,"throw",e)}s(void 0)}))}}const o=n(6718)("assert");e.exports=e=>{const t=e.meta.mockUtil.parseInfoFromPackage(__dirname);class n extends e.Controller{hello(){var e=this;return r((function*(){const n={text:"hello"};let a="world";var i;a=yield e.ctx.bean.event.invoke({module:t.relativeName,name:"hello",data:n,result:a,next:(i=r((function*(e,t){e.result="".concat(e.result,".hello"),yield t(),e.result="hello.".concat(e.result)})),function(e,t){return i.apply(this,arguments)})}),o.equal(n.text,"hello echo"),o.equal(a,"echo.hello.world.echo.hello"),e.ctx.success()}))()}}return n}},1593:(e,t,n)=>{function a(e,t,n,a,r,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(a,r)}function r(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){a(i,r,o,s,c,"next",e)}function c(e){a(i,r,o,s,c,"throw",e)}s(void 0)}))}}const o=n(6718)("assert");e.exports=e=>{const t=e.meta.mockUtil.parseInfoFromPackage(__dirname);class n extends e.Controller{bean(){var t=this;return r((function*(){let n;o.equal(e.bean["test-party.test.app"],e.bean["test-party.test.app"]),n=e.bean["test-party.test.app"].actionSync({a:3,b:4}),o.equal(n,"".concat(7,":regexpaop")),n=yield e.bean["test-party.test.app"].actionAsync({a:3,b:4}),o.equal(n,"".concat(7,":regexpaop")),o.equal(t.ctx.bean.testctx,t.ctx.bean.testctx),n=t.ctx.bean.testctx.magic,o.equal(n,"magic:simpleaop"),t.ctx.bean.testctx.name="test-party:regexpaop:simpleaop",n=t.ctx.bean.testctx.name,o.equal(n,"test-party:regexpaop:simpleaop"),n=t.ctx.bean.testctx.actionSync({a:3,b:4}),o.equal(n,"".concat(7,":regexpaop:simpleaop")),n=yield t.ctx.bean.testctx.actionAsync({a:3,b:4}),o.equal(n,"".concat(7,":regexpaop:simpleaop")),n=yield t.ctx.bean.testctx.actionAsync2({a:3,b:4}),o.equal(n,"test-party:regexpaop:simpleaop:".concat(7,":regexpaop:simpleaop")),n=yield t.ctx.bean.testctx.actionAsync3({a:3,b:4}),o.equal(n,"test-party:regexpaop:simpleaop:".concat(7,":regexpaop:simpleaop")),o.equal(t.ctx.bean["test-party.test.class"],t.ctx.bean["test-party.test.class"]),n=t.ctx.bean["test-party.test.class"].actionSync({a:3,b:4}),o.equal(n,"".concat(7,":regexpaop")),n=yield t.ctx.bean["test-party.test.class"].actionAsync({a:3,b:4}),o.equal(n,"".concat(7,":regexpaop")),t.ctx.success()}))()}local(){var e=this;return r((function*(){let n;n=e.ctx.bean._getBean(t.relativeName,"local.test").name,o.equal(n,"localTest"),n=e.ctx.bean.local.test.name,o.equal(n,"localTest"),n=e.ctx.bean.local.module(t.relativeName).test.name,o.equal(n,"localTest"),e.ctx.success()}))()}}return n}},2795:e=>{function t(e,t,n,a,r,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(a,r)}e.exports=e=>{class n extends e.Controller{emit(){var e,n=this;return(e=function*(){n.ctx.app.meta.broadcast.emit({locale:"zh-cn",subdomain:n.ctx.subdomain,module:"test-party",broadcastName:"broadcastTest",data:{message:"hello"}}),n.ctx.success()},function(){var n=this,a=arguments;return new Promise((function(r,o){var i=e.apply(n,a);function s(e){t(i,r,o,s,c,"next",e)}function c(e){t(i,r,o,s,c,"throw",e)}s(void 0)}))})()}}return n}},3510:(e,t,n)=>{function a(e,t,n,a,r,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(a,r)}const r=n(6718)("assert");e.exports=e=>{class t extends e.Controller{category(){var e,t=this;return(e=function*(){const e={module:"test-party",atomClassName:"party"},n=yield t.ctx.bean.category.add({atomClass:e,data:{language:"en-us",categoryName:"levelOne",categoryIdParent:0}});r(n>0);const a=yield t.ctx.bean.category.parseCategoryName({atomClass:e,language:"en-us",categoryName:"levelOne.levelTwo.levelThree",force:!0});r.equal(a.categoryName,"levelThree"),t.ctx.success()},function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){a(i,r,o,s,c,"next",e)}function c(e){a(i,r,o,s,c,"throw",e)}s(void 0)}))})()}}return t}},2777:e=>{function t(e,t,n,a,r,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(a,r)}e.exports=e=>{class n extends e.Controller{httpLog(){var e,n=this;return(e=function*(){n.ctx.success("this is a test for httpLog")},function(){var n=this,a=arguments;return new Promise((function(r,o){var i=e.apply(n,a);function s(e){t(i,r,o,s,c,"next",e)}function c(e){t(i,r,o,s,c,"throw",e)}s(void 0)}))})()}}return n}},3879:(e,t,n)=>{function a(e,t,n,a,r,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(a,r)}const r=n(6718)("assert");e.exports=e=>{class t extends e.Controller{instance(){var e,t=this;return(e=function*(){r.equal(!!t.ctx.instance.id,!0),r.equal(!!t.ctx.instance.config,!0),t.ctx.success()},function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){a(i,r,o,s,c,"next",e)}function c(e){a(i,r,o,s,c,"throw",e)}s(void 0)}))})()}}return t}},3639:e=>{function t(e,t,n,a,r,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(a,r)}function n(e){return function(){var n=this,a=arguments;return new Promise((function(r,o){var i=e.apply(n,a);function s(e){t(i,r,o,s,c,"next",e)}function c(e){t(i,r,o,s,c,"throw",e)}s(void 0)}))}}e.exports=e=>{class t extends e.Controller{interception(){var e=this;return n((function*(){const t=e.ctx.request.body,n=t.a,a=t.b,r=parseInt(n)+parseInt(a);e.ctx.success(r)}))()}restructuring(){var e=this;return n((function*(){const t=e.ctx.request.body,n=t.a+t.b;e.ctx.success(n)}))()}}return t}},8061:(e,t,n)=>{function a(e,t,n,a,r,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(a,r)}const r=n(6718)("assert");e.exports=e=>{const t="--model--test--",n=[{atomStaticKey:t,atomName:"atom-one",atomStage:0},{atomStaticKey:t,atomName:"atom-two",atomStage:1},{atomStaticKey:t,atomName:"atom-three",atomStage:2}];class o extends e.Controller{model(){var e,o=this;return(e=function*(){const e=o.ctx.model.module("a-base").atom;yield e.insert(n[0]),yield e.insert(n.slice(1));let a=yield e.select({where:{atomStaticKey:t}});r.equal(a.length,3);const i=yield e.get({atomStaticKey:t,atomName:"atom-one"});yield e.update({id:i.id,readCount:i.readCount+1}),yield e.update({readCount:1},{where:{atomStaticKey:t},columns:["readCount"]}),a=yield e.select({where:{atomStaticKey:[t]}}),r.equal(a.length,3),a=yield e.select({where:{atomStaticKey:{op:"in",val:[t]}}}),r.equal(a.length,3),a=yield e.select({where:{atomStaticKey:[t],atomName:null}}),r.equal(a.length,0),a=yield e.select({where:{atomStaticKey:[t],atomName:{op:"notNull"}}}),r.equal(a.length,3),a=yield e.select({where:{atomStaticKey:[t],atomName:{op:"likeRight",val:"atom-"}}}),r.equal(a.length,3),a=yield e.select({where:{atomStaticKey:[t],__or__:[{atomName:"atom-one"},{atomName:"atom-two"}]}}),r.equal(a.length,2),yield e.delete({atomStaticKey:t});const s=yield e.count({atomStaticKey:t});r.equal(s,0),o.ctx.success()},function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){a(i,r,o,s,c,"next",e)}function c(e){a(i,r,o,s,c,"throw",e)}s(void 0)}))})()}}return o}},7740:e=>{function t(e,t,n,a,r,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(a,r)}function n(e){return function(){var n=this,a=arguments;return new Promise((function(r,o){var i=e.apply(n,a);function s(e){t(i,r,o,s,c,"next",e)}function c(e){t(i,r,o,s,c,"throw",e)}s(void 0)}))}}e.exports=e=>{class t extends e.Controller{progress(){var e=this;return n((function*(){const t=yield e.ctx.bean.progress.create();e.ctx.runInBackground(n((function*(){yield e._progressInBackground({progressId:t})}))),e.ctx.success({progressId:t})}))()}_progressInBackground(e){var t=this;return n((function*(){let n=e.progressId;try{yield t._levelOne({progressId:n,progressNo:0}),yield t.ctx.bean.progress.done({progressId:n,message:t.ctx.text("Well Done")}),t.ctx.success(!0)}catch(e){throw yield t.ctx.bean.progress.error({progressId:n,message:e.message}),e}}))()}_levelOne(e){var t=this;return n((function*(){let n=e.progressId,a=e.progressNo,r=0;for(let e=0;e<2;e++){const o="".concat(t.ctx.text("Level One"),": ").concat(e+1);yield t.ctx.bean.progress.update({progressId:n,progressNo:a,total:2,progress:r++,text:o}),yield t.ctx.bean.util.sleep(1500),yield t._levelTwo({progressId:n,progressNo:a+1})}}))()}_levelTwo(e){var t=this;return n((function*(){let n=e.progressId,a=e.progressNo,r=0;for(let e=0;e<2;e++){const o="".concat(t.ctx.text("Level Two"),": ").concat(e+1);yield t.ctx.bean.progress.update({progressId:n,progressNo:a,total:2,progress:r++,text:o}),yield t.ctx.bean.util.sleep(1500),yield t._levelThree({progressId:n,progressNo:a+1})}}))()}_levelThree(e){var t=this;return n((function*(){let n=e.progressId,a=e.progressNo,r=0;for(let e=0;e<3;e++){const o="".concat(t.ctx.text("Level Three"),": ").concat(e+1);yield t.ctx.bean.progress.update({progressId:n,progressNo:a,total:3,progress:r++,text:o}),yield t.ctx.bean.util.sleep(1500)}}))()}}return t}},5954:(e,t,n)=>{function a(e,t,n,a,r,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(a,r)}function r(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){a(i,r,o,s,c,"next",e)}function c(e){a(i,r,o,s,c,"throw",e)}s(void 0)}))}}const o=n(6718)("assert");e.exports=e=>{class t extends e.Controller{pushAsync(){var e=this;return r((function*(){const t=yield e.ctx.app.meta.queue.pushAsync({locale:e.ctx.locale,subdomain:e.ctx.subdomain,module:"test-party",queueName:"queueTest",data:{a:1,b:2}});o.equal(t,3),e.ctx.success()}))()}push(){var e=this;return r((function*(){e.ctx.app.meta.queue.push({locale:e.ctx.locale,subdomain:e.ctx.subdomain,module:"test-party",queueName:"queueTest",data:{a:1,b:2}}),e.ctx.success()}))()}}return t}},3632:e=>{function t(e,t,n,a,r,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(a,r)}e.exports=e=>{class n extends e.Controller{sendMail(){var e,n=this;return(e=function*(){const e=n.ctx.request.body.data;yield n.ctx.bean.mail.send({scene:"test",message:e}),n.ctx.success()},function(){var n=this,a=arguments;return new Promise((function(r,o){var i=e.apply(n,a);function s(e){t(i,r,o,s,c,"next",e)}function c(e){t(i,r,o,s,c,"throw",e)}s(void 0)}))})()}}return n}},157:(e,t,n)=>{function a(e,t,n,a,r,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(a,r)}function r(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){a(i,r,o,s,c,"next",e)}function c(e){a(i,r,o,s,c,"throw",e)}s(void 0)}))}}const o=n(6718),i=o("assert"),s=o("p-map");e.exports=e=>{class t extends e.Controller{sequence(){var t=this;return r((function*(){const n=[1,2,3,4,5];let a,o=yield t.ctx.bean.sequence.current("test");i.equal(o,0);let c=yield t.ctx.bean.sequence.next("test");i.equal(c,1),o=yield t.ctx.bean.sequence.current("test"),i.equal(o,1),yield t.ctx.bean.sequence.reset("test");const l=t.ctx.bean.sequence.module(t.ctx.module.info.relativeName);c=yield l.next("test"),i.equal(c,1),o=yield l.current("test"),i.equal(o,1),yield l.reset("test"),a=yield s(n,r((function*(){return yield l.next("test")}))),i.equal(new Set(a).size,new Set(n).size),yield l.reset("test"),a=yield s(n,r((function*(){return yield e.meta.util.executeBean({subdomain:t.ctx.subdomain,beanModule:t.ctx.module.info.relativeName,transaction:!0,fn:(n=r((function*(e){let t=e.ctx;const n=yield t.bean.sequence.next("test");return yield t.bean.util.sleep(50),n})),function(e){return n.apply(this,arguments)})});var n}))),i.equal(new Set(a).size,new Set(n).size,"sequence next: ".concat(a)),yield l.reset("test"),t.ctx.success()}))()}}return t}},5573:(e,t,n)=>{function a(e,t,n,a,r,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(a,r)}const r=n(6718)("assert");e.exports=e=>{class t extends e.Controller{settings(){var e,t=this;return(e=function*(){let e=yield t.ctx.bean.settings.getUser({name:"/groupInfo/username"});r.equal(e,"zhennann"),e=yield t.ctx.bean.settings.getUser({name:"/groupExtra/panelExtra/groupInfo/language"}),r.equal(e,"en-us"),e=yield t.ctx.bean.settings.loadSettingsUser(),r.equal(e.groupInfo.username,"zhennann"),e.groupExtra.panelExtra.groupInfo.language="zh-cn",yield t.ctx.bean.settings.saveSettingsUser({data:e}),e=yield t.ctx.bean.settings.getUser({name:"/groupExtra/panelExtra/groupInfo/language"}),r.equal(e,"zh-cn"),e=yield t.ctx.bean.settings.getInstance({name:"/groupInfo/slogan"}),r.equal(e,""),e=yield t.ctx.bean.settings.loadSettingsInstance(),r.equal(e.groupInfo.slogan,""),e.groupInfo.slogan="Less is more, while more is less",yield t.ctx.bean.settings.saveSettingsInstance({data:e}),e=yield t.ctx.bean.settings.getInstance({name:"/groupInfo/slogan"}),r.equal(e,"Less is more, while more is less"),t.ctx.success()},function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){a(i,r,o,s,c,"next",e)}function c(e){a(i,r,o,s,c,"throw",e)}s(void 0)}))})()}}return t}},4231:e=>{function t(e,t,n,a,r,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(a,r)}e.exports=e=>{const n=e.meta.mockUtil.parseInfoFromPackage(__dirname);class a extends e.Controller{publish(){var e,a=this;return(e=function*(){const e=a.ctx.request.body.options,t=a.ctx.request.body.message;t.userIdFrom=a.ctx.state.user.op.id;const r=yield a.ctx.bean.io.publish({path:"/test/party/test",message:t,messageClass:{module:n.relativeName,messageClassName:"test"},options:e});a.ctx.success(r)},function(){var n=this,a=arguments;return new Promise((function(r,o){var i=e.apply(n,a);function s(e){t(i,r,o,s,c,"next",e)}function c(e){t(i,r,o,s,c,"throw",e)}s(void 0)}))})()}}return a}},6993:(e,t,n)=>{function a(e,t,n,a,r,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(a,r)}function r(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){a(i,r,o,s,c,"next",e)}function c(e){a(i,r,o,s,c,"throw",e)}s(void 0)}))}}const o=n(6718)("assert");e.exports=e=>{class t extends e.Controller{stats(){var e=this;return r((function*(){const t={id:e.ctx.cache.mem.get("userIds").Tom};let n=yield e.ctx.bean.stats.get({name:"tasksUser",nameSub:"department.project",user:t});o.equal(n,void 0),yield e.ctx.bean.stats.notifyAsync({name:"tasksUser",nameSub:"department.project",user:t}),n=yield e.ctx.bean.stats.get({name:"tasksUser",nameSub:"department.project",user:t}),o.equal(n,1),n=yield e.ctx.bean.stats.get({name:"tasksInstance",user:t}),o.equal(n,1),e.ctx.success()}))()}plus(){var e=this;return r((function*(){e.ctx.bean.stats.notify({name:"tasksUser",nameSub:"department.project"}),e.ctx.success()}))()}}return t}},1133:(e,t,n)=>{function a(e,t,n,a,r,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(a,r)}const r=n(6718)("assert");e.exports=e=>{class t extends e.Controller{status(){var e,t=this;return(e=function*(){const e="__test_enable";let n=yield t.ctx.bean.status.get(e);r.equal(n,void 0),yield t.ctx.bean.status.set(e,!0),n=yield t.ctx.bean.status.get(e),r.equal(n,!0);const a=t.ctx.bean.status.module(t.ctx.module.info.relativeName);n=yield a.get(e),r.equal(n,!0),yield t.ctx.bean.status.set(e,!1),n=yield t.ctx.bean.status.get(e),r.equal(n,!1),t.ctx.success()},function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){a(i,r,o,s,c,"next",e)}function c(e){a(i,r,o,s,c,"throw",e)}s(void 0)}))})()}}return t}},9712:(e,t,n)=>{function a(e,t,n,a,r,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(a,r)}const r=n(6718)("assert");e.exports=e=>{class t extends e.Controller{tag(){var e,t=this;return(e=function*(){const e={module:"test-party",atomClassName:"party"},n=yield t.ctx.bean.tag.add({atomClass:e,data:{tagName:"tagOne"}});r(n>0);const a=yield t.ctx.bean.tag.parseTags({atomClass:e,tagName:"tagOne,tagTwo,tagThree",force:!0});r.equal(a.length,3),t.ctx.success()},function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){a(i,r,o,s,c,"next",e)}function c(e){a(i,r,o,s,c,"throw",e)}s(void 0)}))})()}}return t}},6333:e=>{function t(e,t,n,a,r,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(a,r)}function n(e){return function(){var n=this,a=arguments;return new Promise((function(r,o){var i=e.apply(n,a);function s(e){t(i,r,o,s,c,"next",e)}function c(e){t(i,r,o,s,c,"throw",e)}s(void 0)}))}}e.exports=e=>{class t extends e.Controller{success(){var e=this;return n((function*(){e.ctx.success()}))()}fail(){var e=this;return n((function*(){e.ctx.success()}))()}schema(){var e=this;return n((function*(){e.ctx.success()}))()}}return t}},8649:e=>{function t(e,t,n,a,r,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(a,r)}e.exports=e=>{const n=e.meta.mockUtil.parseInfoFromPackage(__dirname);class a extends e.Controller{test(){var e,a=this;return(e=function*(){a.ctx.success(n.relativeName)},function(){var n=this,a=arguments;return new Promise((function(r,o){var i=e.apply(n,a);function s(e){t(i,r,o,s,c,"next",e)}function c(e){t(i,r,o,s,c,"throw",e)}s(void 0)}))})()}}return a}},4107:(e,t,n)=>{function a(e,t,n,a,r,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(a,r)}const r=n(6718)("assert");e.exports=e=>{class t extends e.Controller{all(){var e,t=this;return(e=function*(){const e={id:t.ctx.cache.mem.get("userIds").Tom},n=t.ctx.module.main.meta.base.statics["a-base.resource"].items.length;let a=yield t.ctx.bean.resource.select({options:{where:{"a.atomStaticKey":{op:"likeRight",val:"test-party:"}},orders:[["a.id","asc"]],page:{index:0,size:0},locale:"en-us"},user:e});r.equal(a.length,n),r.equal(!!a[0].atomNameLocale,!0);const o=a[0];a=yield t.ctx.bean.resource.check({atomStaticKeys:[o.atomStaticKey],user:e}),r.equal(a[0].passed,!0);const i=yield t.ctx.bean.resource.read({key:{atomId:o.atomId},options:{locale:"en-us"},user:e});r.equal(!!i.atomNameLocale,!0),t.ctx.success()},function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){a(i,r,o,s,c,"next",e)}function c(e){a(i,r,o,s,c,"throw",e)}s(void 0)}))})()}}return t}},9625:e=>{function t(e,t,n,a,r,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(a,r)}e.exports=e=>{class n extends e.Controller{checkRightResourceUser(){var e,n=this;return(e=function*(){n.ctx.success(n.ctx.meta._resource)},function(){var n=this,a=arguments;return new Promise((function(r,o){var i=e.apply(n,a);function s(e){t(i,r,o,s,c,"next",e)}function c(e){t(i,r,o,s,c,"throw",e)}s(void 0)}))})()}}return n}},4477:(e,t,n)=>{function a(e,t,n,a,r,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(a,r)}const r=n(6718)("assert");e.exports=e=>{class t extends e.Controller{userRole(){var e,t=this;return(e=function*(){const e=t.ctx.cache.mem.get("userIds"),n=t.ctx.cache.mem.get("roleIds");let a=yield t.ctx.bean.role.getUserRolesDirect({userId:e.root});r.equal(a.length,1),a=yield t.ctx.bean.role.getUserRolesParent({userId:e.root}),r.equal(a.length,3),a=yield t.ctx.bean.role.getUserRolesExpand({userId:e.root}),r(a.length>3);let o=yield t.ctx.bean.role.userInRoleDirect({userId:e.root,roleId:n.superuser});r.equal(o,!0),o=yield t.ctx.bean.role.userInRoleParent({userId:e.root,roleId:n.root}),r.equal(o,!0),o=yield t.ctx.bean.role.userInRoleExpand({userId:e.root,roleId:n.system}),r.equal(o,!0),t.ctx.success()},function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){a(i,r,o,s,c,"next",e)}function c(e){a(i,r,o,s,c,"throw",e)}s(void 0)}))})()}}return t}},1691:(e,t,n)=>{const a=n(9222),r=n(3252),o=n(9604),i=n(3328),s=n(9625),c=n(4107),l=n(9447),d=n(8880),m=n(9840),u=n(4238),p=n(5245),h=n(3686),y=n(7437),f=n(4423),v=n(1146),x=n(1399),g=n(7720),b=n(4477),w=n(9228),P=n(1593),S=n(2777),C=n(3632),T=n(4231),I=n(3879),L=n(7740),A=n(157),k=n(5573),N=n(6993),R=n(1133),O=n(6333),q=n(3639),M=n(5954),E=n(2795),_=n(8061),F=n(3510),U=n(9712),B=n(8649),D=n(1910),K=n(4961),G=n(8349),j=n(5381);e.exports=e=>({party:a,testAtomStarLabel:r,testAtomAll:o,testAtomRight:i,testResourceRight:s,testResourceAll:c,testCtxPerformAction:l,testCtxTransaction:d,testCtxTail:m,testCtxSession:u,testCtxRequest:p,testCtxResponse:h,testCtxConfig:y,testCtxLocale:f,testCacheMem:v,testCacheDb:x,testCacheRedis:g,testRoleUserRole:b,testEventHello:w,testFeatBean:P,testFeatHttpLog:S,testFeatSendMail:C,testFeatSocketIO:T,testFeatInstance:I,testFeatProgress:L,testFeatSequence:A,testFeatSettings:k,testFeatStats:N,testFeatStatus:R,testFeatValidation:O,testFeatMiddleware:q,testFeatQueue:M,testFeatBroadcast:E,testFeatModel:_,testFeatCategory:F,testFeatTag:U,testMonkeyee:B,testKitchensinkAutocomplete:D,testKitchensinkGuide:K,testKitchensinkFormSchemaValidation:G,testKitchensinkPtrIsLoadMore:j})},312:(e,t,n)=>{const a=n(817),r=n(9266),o=n(1971);e.exports=e=>{const t=n(1129)(e),i=n(7313)(e),s=n(5788)(e),c=n(1691)(e),l=n(2481)(e),d=n(3700)(e),m=n(2730)(e);return{aops:t,beans:i,routes:s,controllers:c,services:l,models:d,config:a,locales:r,errors:o,meta:m}}},2730:(e,t,n)=>{const a=n(6718)("extend2");e.exports=e=>{const t=e.meta.mockUtil.parseInfoFromPackage(__dirname),r={},o=n(8326)(e),i=n(5623)(e),s=n(9838)(e),c=n(1089)(e),l=n(4001)(e);return a(!0,r,{base:{atoms:{party:{info:{bean:"party",title:"Party",tableName:"testParty",tableNameModes:{default:"testPartyView"},language:!1,category:!0,tag:!0,cms:!0},actions:{partyOver:{code:101,title:"PartyOver",actionModule:t.relativeName,actionComponent:"action",icon:{material:"check_circle_outline"},enableOnOpened:!0,stage:"formal"},partyOverBulk:{code:201,title:"PartyOver",actionModule:t.relativeName,actionComponent:"action",icon:{material:"check_circle_outline"},bulk:!0,select:!0,stage:"formal"}},validator:"party",search:{validator:"partySearch"}}},statics:{"a-dashboard.dashboard":{items:c},"a-base.resource":{items:l}}},validation:{validators:{party:{schemas:"party"},partySearch:{schemas:"partySearch"},userTest:{schemas:"settingsUser,settingsUserExtra"},instanceTest:{schemas:"settingsInstance"},formTest:{schemas:"formTest"},formCaptchaTest:{schemas:"formCaptchaTest"},formMobileVerifyTest:{schemas:"formMobileVerifyTest"}},keywords:{"x-languages":i.languages},schemas:o},settings:{user:{validator:"userTest"},instance:{validator:"instanceTest"}},event:{implementations:{"a-base:loginInfo":"loginInfoDashboard"}},index:{indexes:{testParty:"createdAt,updatedAt,atomId,partyTypeId"}},socketio:{messages:{test:s}},stats:{providers:{tasksUser:{user:!0,bean:"tasksUser"},tasksInstance:{user:!1,bean:"tasksInstance",dependencies:"tasksUser"}}}}),e.meta.isTest&&a(!0,r,{base:{},event:{declarations:{hello:"This is a test for event"},implementations:{"test-party:hello":"helloEcho","a-base:userVerify":"userVerify","a-base:loginInfo":"loginInfo"}},sequence:{providers:{test:{bean:"test",start:0}}}}),r}},8435:e=>{e.exports=e=>{class t extends e.meta.Model{constructor(e){super(e,{table:"testParty",options:{disableDeleted:!1}})}}return t}},1253:e=>{e.exports=e=>{class t extends e.meta.Model{constructor(e){super(e,{table:"testPartyType",options:{disableDeleted:!0}})}}return t}},3700:(e,t,n)=>{const a=n(8435),r=n(1253);e.exports=e=>{const t={};return Object.assign(t,{party:a,partyType:r}),t}},5788:e=>{e.exports=e=>{let t=[];return t=t.concat([{method:"post",path:"party/types",controller:"party"},{method:"post",path:"party/over",controller:"party"},{method:"post",path:"party/over",controller:"party",middlewares:"transaction",meta:{right:{type:"atom",action:"partyOver"}}},{method:"post",path:"party/overBulk",controller:"party",middlewares:"transaction",meta:{right:{type:"atom",action:"partyOverBulk"}}},{method:"post",path:"test/atom/starLabel",controller:"testAtomStarLabel",middlewares:"test"},{method:"post",path:"test/atom/all",controller:"testAtomAll",middlewares:"test",meta:{auth:{enable:!1}}},{method:"post",path:"test/atom/checkRightCreate",controller:"testAtomRight",middlewares:"test",meta:{right:{type:"atom",action:"create"}}},{method:"post",path:"test/atom/checkRightRead",controller:"testAtomRight",middlewares:"test",meta:{right:{type:"atom",action:"read"}}},{method:"post",path:"test/atom/checkRightWrite",controller:"testAtomRight",middlewares:"test",meta:{right:{type:"atom",action:"write"}}},{method:"post",path:"test/atom/checkRightAction",controller:"testAtomRight",middlewares:"test",meta:{right:{type:"atom",action:"partyOver"}}},{method:"post",path:"test/resource/checkRightResourceUser",controller:"testResourceRight",middlewares:"test",meta:{right:{type:"resource",module:"test-party",name:"createParty"}}},{method:"post",path:"test/resource/all",controller:"testResourceAll",middlewares:"test",meta:{auth:{enable:!1}}},{method:"post",path:"test/role/userRole",controller:"testRoleUserRole",middlewares:"test",meta:{auth:{enable:!1}}},{method:"post",path:"test/ctx/performAction",controller:"testCtxPerformAction",middlewares:"test"},{method:"post",path:"test/ctx/performAction/echo",controller:"testCtxPerformAction",middlewares:"test"},{method:"post",path:"test/ctx/transaction",controller:"testCtxTransaction",middlewares:"test,transaction"},{method:"post",path:"test/ctx/tail",controller:"testCtxTail",middlewares:"test"},{method:"post",path:"test/ctx/session",controller:"testCtxSession",middlewares:"test"},{method:"post",path:"test/ctx/session/echo1",controller:"testCtxSession",middlewares:"test"},{method:"post",path:"test/ctx/session/echo2",controller:"testCtxSession",middlewares:"test"},{method:"post",path:"test/ctx/request/:id",controller:"testCtxRequest",action:"request",middlewares:"test",meta:{auth:{enable:!1}}},{method:"post",path:"test/ctx/requestXML",controller:"testCtxRequest",middlewares:"test",meta:{auth:{enable:!1}}},{method:"post",path:"test/ctx/response/success",controller:"testCtxResponse",middlewares:"test",meta:{auth:{enable:!1}}},{method:"post",path:"test/ctx/response/successMore",controller:"testCtxResponse",middlewares:"test",meta:{auth:{enable:!1}}},{method:"post",path:"test/ctx/response/fail",controller:"testCtxResponse",middlewares:"test",meta:{auth:{enable:!1}}},{method:"post",path:"test/ctx/response/throwError",controller:"testCtxResponse",middlewares:"test",meta:{auth:{enable:!1}}},{method:"post",path:"test/ctx/config/test",controller:"testCtxConfig",middlewares:"test",meta:{auth:{enable:!1}}},{method:"post",path:"test/ctx/locale/enus",controller:"testCtxLocale",middlewares:"test",meta:{auth:{enable:!1}}},{method:"post",path:"test/ctx/locale/zhcn",controller:"testCtxLocale",middlewares:"test",meta:{auth:{enable:!1}}},{method:"post",path:"test/event/hello",controller:"testEventHello",middlewares:"test",meta:{auth:{enable:!1}}},{method:"post",path:"test/cache/mem",controller:"testCacheMem",middlewares:"test",meta:{auth:{enable:!1}}},{method:"post",path:"test/cache/db",controller:"testCacheDb",middlewares:"test",meta:{auth:{enable:!1}}},{method:"post",path:"test/cache/redis",controller:"testCacheRedis",middlewares:"test",meta:{auth:{enable:!1}}},{method:"get",path:"test/feat/bean",controller:"testFeatBean",middlewares:"test",meta:{auth:{enable:!1}}},{method:"get",path:"test/feat/bean/local",controller:"testFeatBean",middlewares:"test",meta:{auth:{enable:!1}}},{method:"post",path:"test/feat/httpLog",controller:"testFeatHttpLog",middlewares:"test,httpLog",meta:{auth:{enable:!1}}},{method:"post",path:"test/feat/sendMail",controller:"testFeatSendMail",meta:{auth:{enable:!1}}},{method:"post",path:"test/feat/socketio/publish",controller:"testFeatSocketIO",middlewares:"",meta:{auth:{user:!0}}},{method:"post",path:"test/feat/instance",controller:"testFeatInstance",middlewares:"test",meta:{auth:{enable:!1}}},{method:"post",path:"test/feat/progress",controller:"testFeatProgress"},{method:"post",path:"test/feat/sequence",controller:"testFeatSequence",middlewares:"test",meta:{auth:{enable:!1}}},{method:"post",path:"test/feat/settings",controller:"testFeatSettings",middlewares:"test"},{method:"post",path:"test/feat/stats",controller:"testFeatStats",middlewares:"test",meta:{auth:{enable:!1}}},{method:"post",path:"test/feat/stats/plus",controller:"testFeatStats"},{method:"post",path:"test/feat/status",controller:"testFeatStatus",middlewares:"test",meta:{auth:{enable:!1}}},{method:"post",path:"test/feat/validation/success",controller:"testFeatValidation",middlewares:"test,validate",meta:{auth:{enable:!1},validate:{validator:"userTest"}}},{method:"post",path:"test/feat/validation/fail",controller:"testFeatValidation",middlewares:"test,validate",meta:{auth:{enable:!1},validate:{validator:"userTest"}}},{method:"post",path:"test/feat/validation/schema",controller:"testFeatValidation",middlewares:"test,validate",meta:{auth:{enable:!1},validate:{validator:"userTest",schema:"settingsUserExtra"}}},{method:"post",path:"test/feat/middleware/interception",controller:"testFeatMiddleware",middlewares:"test,testInterception"},{method:"post",path:"test/feat/middleware/restructuring",controller:"testFeatMiddleware",middlewares:"test,testInterception,testRestructuring"},{method:"post",path:"test/feat/pushAsync",controller:"testFeatQueue",middlewares:"test"},{method:"post",path:"test/feat/push",controller:"testFeatQueue",middlewares:"test"},{method:"post",path:"test/feat/broadcast/emit",controller:"testFeatBroadcast",middlewares:"test"},{method:"post",path:"test/feat/model",controller:"testFeatModel",middlewares:"test"},{method:"post",path:"test/feat/category",controller:"testFeatCategory",middlewares:"test"},{method:"post",path:"test/feat/tag",controller:"testFeatTag",middlewares:"test"},{method:"post",path:"test/monkey/monkeyee/test",controller:"testMonkeyee",middlewares:"test"},{method:"post",path:"kitchen-sink/guide/echo",controller:"testKitchensinkGuide"},{method:"post",path:"kitchen-sink/guide/echo3",controller:"testKitchensinkGuide"},{method:"post",path:"kitchen-sink/guide/echo4",controller:"testKitchensinkGuide"},{method:"post",path:"kitchen-sink/guide/echo6",controller:"testKitchensinkGuide"},{method:"post",path:"kitchen-sink/guide/echo7",controller:"testKitchensinkGuide"},{method:"post",path:"kitchen-sink/guide/echo8",controller:"testKitchensinkGuide",middlewares:"transaction"},{method:"post",path:"kitchen-sink/guide/echo9",controller:"testKitchensinkGuide",meta:{right:{type:"resource",name:"kitchenSink"}}},{method:"get",path:"kitchen-sink/autocomplete/languages/:query",controller:"testKitchensinkAutocomplete",action:"languages",meta:{auth:{enable:!1}}},{method:"get",path:"kitchen-sink/form-schema-validation/load",controller:"testKitchensinkFormSchemaValidation"},{method:"post",path:"kitchen-sink/form-schema-validation/saveSimple",controller:"testKitchensinkFormSchemaValidation"},{method:"post",path:"kitchen-sink/form-schema-validation/saveValidation",controller:"testKitchensinkFormSchemaValidation",middlewares:"validate",meta:{validate:{validator:"formTest"}}},{method:"post",path:"kitchen-sink/form-captcha/signup",controller:"testKitchensinkFormSchemaValidation",middlewares:"captchaVerify,validate",meta:{captchaVerify:{scene:{name:"formCaptchaTest"}},validate:{validator:"formCaptchaTest"}}},{method:"post",path:"kitchen-sink/form-mobile-verify/mobileVerify",controller:"testKitchensinkFormSchemaValidation",middlewares:"captchaVerify,validate",meta:{captchaVerify:{scene:{name:"formMobileVerifyTest"}},validate:{validator:"formMobileVerifyTest"}}},{method:"post",path:"kitchen-sink/ptr-is-loadmore/list",controller:"testKitchensinkPtrIsLoadMore"}]),t}},2127:e=>{function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function n(e,t,n,a,r,o,i){try{var s=e[o](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(a,r)}function a(e){return function(){var t=this,a=arguments;return new Promise((function(r,o){var i=e.apply(t,a);function s(e){n(i,r,o,s,c,"next",e)}function c(e){n(i,r,o,s,c,"throw",e)}s(void 0)}))}}e.exports=e=>{class n extends e.Service{types(){var e=this;return a((function*(){return(yield e.ctx.model.partyType.select()).map((t=>({id:t.id,name:e.ctx.text(t.name)})))}))()}over(e){var t=this;return a((function*(){let n=e.key;e.user,yield t.ctx.model.party.update({id:n.itemId,partyOver:1}),yield t.ctx.bean.cms.render._renderArticlePush({key:n,inner:!1})}))()}overBulk(e){var n=this;return a((function*(){let a=e.keys,r=e.user;const o=[];var i,s=function(e,n){var a="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!a){if(Array.isArray(e)||(a=function(e,n){if(e){if("string"==typeof e)return t(e,n);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?t(e,n):void 0}}(e))||n&&e&&"number"==typeof e.length){a&&(e=a);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,c=!1;return{s:function(){a=a.call(e)},n:function(){var e=a.next();return s=e.done,e},e:function(e){c=!0,i=e},f:function(){try{s||null==a.return||a.return()}finally{if(c)throw i}}}}(a);try{for(s.s();!(i=s.n()).done;){const e=i.value;(yield n._overBulk_item({key:e,user:r}))&&o.push(e)}}catch(e){s.e(e)}finally{s.f()}return{keys:o}}))()}_overBulk_item(e){var t=this;return a((function*(){let n=e.key,a=e.user;return!!(yield t.ctx.bean.atom.checkRightAction({atom:{id:n.atomId},action:101,user:a}))&&(yield t.over({key:n,user:a}),!0)}))()}}return n}},2481:(e,t,n)=>{const a=n(2127);e.exports=e=>{const t={};return Object.assign(t,{party:a}),t}},4303:e=>{"use strict";e.exports=JSON.parse('[{"id":0,"name":"A# .NET"},{"id":1,"name":"A# (Axiom)"},{"id":2,"name":"A-0 System"},{"id":3,"name":"A+"},{"id":4,"name":"A++"},{"id":5,"name":"ABAP"},{"id":6,"name":"ABC"},{"id":7,"name":"ABC ALGOL"},{"id":8,"name":"ABLE"},{"id":9,"name":"ABSET"},{"id":10,"name":"ABSYS"},{"id":11,"name":"ACC"},{"id":12,"name":"Accent"},{"id":13,"name":"Ace DASL"},{"id":14,"name":"ACL2"},{"id":15,"name":"ACT-III"},{"id":16,"name":"Action!"},{"id":17,"name":"ActionScript"},{"id":18,"name":"Ada"},{"id":19,"name":"Adenine"},{"id":20,"name":"Agda"},{"id":21,"name":"Agilent VEE"},{"id":22,"name":"Agora"},{"id":23,"name":"AIMMS"},{"id":24,"name":"Alef"},{"id":25,"name":"ALF"},{"id":26,"name":"ALGOL 58"},{"id":27,"name":"ALGOL 60"},{"id":28,"name":"ALGOL 68"},{"id":29,"name":"ALGOL W"},{"id":30,"name":"Alice"},{"id":31,"name":"Alma-0"},{"id":32,"name":"AmbientTalk"},{"id":33,"name":"Amiga E"},{"id":34,"name":"AMOS"},{"id":35,"name":"AMPL"},{"id":36,"name":"Apex"},{"id":37,"name":"APL"},{"id":38,"name":"App Inventor for Android\'s visual block language"},{"id":39,"name":"AppleScript"},{"id":40,"name":"Arc"},{"id":41,"name":"ARexx"},{"id":42,"name":"Argus"},{"id":43,"name":"AspectJ"},{"id":44,"name":"Assembly language"},{"id":45,"name":"ATS"},{"id":46,"name":"Ateji PX"},{"id":47,"name":"AutoHotkey"},{"id":48,"name":"Autocoder"},{"id":49,"name":"AutoIt"},{"id":50,"name":"AutoLISP / Visual LISP"},{"id":51,"name":"Averest"},{"id":52,"name":"AWK"},{"id":53,"name":"Axum"},{"id":54,"name":"B"},{"id":55,"name":"Babbage"},{"id":56,"name":"Bash"},{"id":57,"name":"BASIC"},{"id":58,"name":"bc"},{"id":59,"name":"BCPL"},{"id":60,"name":"BeanShell"},{"id":61,"name":"Batch (Windows/Dos)"},{"id":62,"name":"Bertrand"},{"id":63,"name":"BETA"},{"id":64,"name":"Bigwig"},{"id":65,"name":"Bistro"},{"id":66,"name":"BitC"},{"id":67,"name":"BLISS"},{"id":68,"name":"Blue"},{"id":69,"name":"Boo"},{"id":70,"name":"Boomerang"},{"id":71,"name":"Bourne shell"},{"id":72,"name":"bash"},{"id":73,"name":"ksh"},{"id":74,"name":"BREW"},{"id":75,"name":"BPEL"},{"id":76,"name":"C"},{"id":77,"name":"C--"},{"id":78,"name":"C++"},{"id":79,"name":"C#"},{"id":80,"name":"C/AL"},{"id":81,"name":"Caché ObjectScript"},{"id":82,"name":"C Shell"},{"id":83,"name":"Caml"},{"id":84,"name":"Cayenne"},{"id":85,"name":"CDuce"},{"id":86,"name":"Cecil"},{"id":87,"name":"Cel"},{"id":88,"name":"Cesil"},{"id":89,"name":"Ceylon"},{"id":90,"name":"CFEngine"},{"id":91,"name":"CFML"},{"id":92,"name":"Cg"},{"id":93,"name":"Ch"},{"id":94,"name":"Chapel"},{"id":95,"name":"CHAIN"},{"id":96,"name":"Charity"},{"id":97,"name":"Charm"},{"id":98,"name":"Chef"},{"id":99,"name":"CHILL"},{"id":100,"name":"CHIP-8"},{"id":101,"name":"chomski"},{"id":102,"name":"ChucK"},{"id":103,"name":"CICS"},{"id":104,"name":"Cilk"},{"id":105,"name":"CL"},{"id":106,"name":"Claire"},{"id":107,"name":"Clarion"},{"id":108,"name":"Clean"},{"id":109,"name":"Clipper"},{"id":110,"name":"CLIST"},{"id":111,"name":"Clojure"},{"id":112,"name":"CLU"},{"id":113,"name":"CMS-2"},{"id":114,"name":"COBOL"},{"id":115,"name":"Cobra"},{"id":116,"name":"CODE"},{"id":117,"name":"CoffeeScript"},{"id":118,"name":"Cola"},{"id":119,"name":"ColdC"},{"id":120,"name":"ColdFusion"},{"id":121,"name":"COMAL"},{"id":122,"name":"Combined Programming Language"},{"id":123,"name":"COMIT"},{"id":124,"name":"Common Intermediate Language"},{"id":125,"name":"Common Lisp"},{"id":126,"name":"COMPASS"},{"id":127,"name":"Component Pascal"},{"id":128,"name":"Constraint Handling Rules"},{"id":129,"name":"Converge"},{"id":130,"name":"Cool"},{"id":131,"name":"Coq"},{"id":132,"name":"Coral 66"},{"id":133,"name":"Corn"},{"id":134,"name":"CorVision"},{"id":135,"name":"COWSEL"},{"id":136,"name":"CPL"},{"id":137,"name":"csh"},{"id":138,"name":"CSP"},{"id":139,"name":"Cryptol"},{"id":140,"name":"Csound"},{"id":141,"name":"CUDA"},{"id":142,"name":"Curl"},{"id":143,"name":"Curry"},{"id":144,"name":"Cyclone"},{"id":145,"name":"Cython"},{"id":146,"name":"D"},{"id":147,"name":"DASL"},{"id":148,"name":"DASL"},{"id":149,"name":"Dart"},{"id":150,"name":"DataFlex"},{"id":151,"name":"Datalog"},{"id":152,"name":"DATATRIEVE"},{"id":153,"name":"dBase"},{"id":154,"name":"dc"},{"id":155,"name":"DCL"},{"id":156,"name":"Deesel"},{"id":157,"name":"Delphi"},{"id":158,"name":"DinkC"},{"id":159,"name":"DIBOL"},{"id":160,"name":"Dog"},{"id":161,"name":"Draco"},{"id":162,"name":"DRAKON"},{"id":163,"name":"Dylan"},{"id":164,"name":"DYNAMO"},{"id":165,"name":"E"},{"id":166,"name":"E#"},{"id":167,"name":"Ease"},{"id":168,"name":"Easy PL/I"},{"id":169,"name":"Easy Programming Language"},{"id":170,"name":"EASYTRIEVE PLUS"},{"id":171,"name":"ECMAScript"},{"id":172,"name":"Edinburgh IMP"},{"id":173,"name":"EGL"},{"id":174,"name":"Eiffel"},{"id":175,"name":"ELAN"},{"id":176,"name":"Elixir"},{"id":177,"name":"Elm"},{"id":178,"name":"Emacs Lisp"},{"id":179,"name":"Emerald"},{"id":180,"name":"Epigram"},{"id":181,"name":"EPL"},{"id":182,"name":"Erlang"},{"id":183,"name":"es"},{"id":184,"name":"Escher"},{"id":185,"name":"ESPOL"},{"id":186,"name":"Esterel"},{"id":187,"name":"Etoys"},{"id":188,"name":"Euclid"},{"id":189,"name":"Euler"},{"id":190,"name":"Euphoria"},{"id":191,"name":"EusLisp Robot Programming Language"},{"id":192,"name":"CMS EXEC"},{"id":193,"name":"EXEC 2"},{"id":194,"name":"Executable UML"},{"id":195,"name":"F"},{"id":196,"name":"F#"},{"id":197,"name":"Factor"},{"id":198,"name":"Falcon"},{"id":199,"name":"Fantom"},{"id":200,"name":"FAUST"},{"id":201,"name":"FFP"},{"id":202,"name":"Fjölnir"},{"id":203,"name":"FL"},{"id":204,"name":"Flavors"},{"id":205,"name":"Flex"},{"id":206,"name":"FLOW-MATIC"},{"id":207,"name":"FOCAL"},{"id":208,"name":"FOCUS"},{"id":209,"name":"FOIL"},{"id":210,"name":"FORMAC"},{"id":211,"name":"@Formula"},{"id":212,"name":"Forth"},{"id":213,"name":"Fortran"},{"id":214,"name":"Fortress"},{"id":215,"name":"FoxBase"},{"id":216,"name":"FoxPro"},{"id":217,"name":"FP"},{"id":218,"name":"FPr"},{"id":219,"name":"Franz Lisp"},{"id":220,"name":"Frege"},{"id":221,"name":"F-Script"},{"id":222,"name":"G"},{"id":223,"name":"Google Apps Script"},{"id":224,"name":"Game Maker Language"},{"id":225,"name":"GameMonkey Script"},{"id":226,"name":"GAMS"},{"id":227,"name":"GAP"},{"id":228,"name":"G-code"},{"id":229,"name":"Genie"},{"id":230,"name":"GDL"},{"id":231,"name":"GJ"},{"id":232,"name":"GEORGE"},{"id":233,"name":"GLSL"},{"id":234,"name":"GNU E"},{"id":235,"name":"GM"},{"id":236,"name":"Go"},{"id":237,"name":"Go!"},{"id":238,"name":"GOAL"},{"id":239,"name":"Gödel"},{"id":240,"name":"Godiva"},{"id":241,"name":"GOM (Good Old Mad)"},{"id":242,"name":"Goo"},{"id":243,"name":"Gosu"},{"id":244,"name":"GOTRAN"},{"id":245,"name":"GPSS"},{"id":246,"name":"GraphTalk"},{"id":247,"name":"GRASS"},{"id":248,"name":"Groovy"},{"id":249,"name":"Hack"},{"id":250,"name":"HAL/S"},{"id":251,"name":"Hamilton C shell"},{"id":252,"name":"Harbour"},{"id":253,"name":"Hartmann pipelines"},{"id":254,"name":"Haskell"},{"id":255,"name":"Haxe"},{"id":256,"name":"High Level Assembly"},{"id":257,"name":"HLSL"},{"id":258,"name":"Hop"},{"id":259,"name":"Hope"},{"id":260,"name":"Hugo"},{"id":261,"name":"Hume"},{"id":262,"name":"HyperTalk"},{"id":263,"name":"IBM Basic assembly language"},{"id":264,"name":"IBM HAScript"},{"id":265,"name":"IBM Informix-4GL"},{"id":266,"name":"IBM RPG"},{"id":267,"name":"ICI"},{"id":268,"name":"Icon"},{"id":269,"name":"Id"},{"id":270,"name":"IDL"},{"id":271,"name":"Idris"},{"id":272,"name":"IMP"},{"id":273,"name":"Inform"},{"id":274,"name":"Io"},{"id":275,"name":"Ioke"},{"id":276,"name":"IPL"},{"id":277,"name":"IPTSCRAE"},{"id":278,"name":"ISLISP"},{"id":279,"name":"ISPF"},{"id":280,"name":"ISWIM"},{"id":281,"name":"J"},{"id":282,"name":"J#"},{"id":283,"name":"J++"},{"id":284,"name":"JADE"},{"id":285,"name":"Jako"},{"id":286,"name":"JAL"},{"id":287,"name":"Janus"},{"id":288,"name":"JASS"},{"id":289,"name":"Java"},{"id":290,"name":"JavaScript"},{"id":291,"name":"JCL"},{"id":292,"name":"JEAN"},{"id":293,"name":"Join Java"},{"id":294,"name":"JOSS"},{"id":295,"name":"Joule"},{"id":296,"name":"JOVIAL"},{"id":297,"name":"Joy"},{"id":298,"name":"JScript"},{"id":299,"name":"JScript .NET"},{"id":300,"name":"JavaFX Script"},{"id":301,"name":"Julia"},{"id":302,"name":"Jython"},{"id":303,"name":"K"},{"id":304,"name":"Kaleidoscope"},{"id":305,"name":"Karel"},{"id":306,"name":"Karel++"},{"id":307,"name":"KEE"},{"id":308,"name":"Kixtart"},{"id":309,"name":"Klerer-May System"},{"id":310,"name":"KIF"},{"id":311,"name":"Kojo"},{"id":312,"name":"Kotlin"},{"id":313,"name":"KRC"},{"id":314,"name":"KRL"},{"id":315,"name":"KUKA"},{"id":316,"name":"KRYPTON"},{"id":317,"name":"ksh"},{"id":318,"name":"L"},{"id":319,"name":"L# .NET"},{"id":320,"name":"LabVIEW"},{"id":321,"name":"Ladder"},{"id":322,"name":"Lagoona"},{"id":323,"name":"LANSA"},{"id":324,"name":"Lasso"},{"id":325,"name":"LaTeX"},{"id":326,"name":"Lava"},{"id":327,"name":"LC-3"},{"id":328,"name":"Leda"},{"id":329,"name":"Legoscript"},{"id":330,"name":"LIL"},{"id":331,"name":"LilyPond"},{"id":332,"name":"Limbo"},{"id":333,"name":"Limnor"},{"id":334,"name":"LINC"},{"id":335,"name":"Lingo"},{"id":336,"name":"Linoleum"},{"id":337,"name":"LIS"},{"id":338,"name":"LISA"},{"id":339,"name":"Lisaac"},{"id":340,"name":"Lisp"},{"id":341,"name":"Lite-C"},{"id":342,"name":"Lithe"},{"id":343,"name":"Little b"},{"id":344,"name":"Logo"},{"id":345,"name":"Logtalk"},{"id":346,"name":"LotusScript"},{"id":347,"name":"LPC"},{"id":348,"name":"LSE"},{"id":349,"name":"LSL"},{"id":350,"name":"LiveCode"},{"id":351,"name":"LiveScript"},{"id":352,"name":"Lua"},{"id":353,"name":"Lucid"},{"id":354,"name":"Lustre"},{"id":355,"name":"LYaPAS"},{"id":356,"name":"Lynx"},{"id":357,"name":"M2001"},{"id":358,"name":"M4"},{"id":359,"name":"M#"},{"id":360,"name":"Machine code"},{"id":361,"name":"MAD"},{"id":362,"name":"MAD/I"},{"id":363,"name":"Magik"},{"id":364,"name":"Magma"},{"id":365,"name":"make"},{"id":366,"name":"Maple"},{"id":367,"name":"MAPPER"},{"id":368,"name":"MARK-IV"},{"id":369,"name":"Mary"},{"id":370,"name":"MASM Microsoft Assembly x86"},{"id":371,"name":"Mathematica"},{"id":372,"name":"MATLAB"},{"id":373,"name":"Maxima"},{"id":374,"name":"Macsyma"},{"id":375,"name":"Max"},{"id":376,"name":"MaxScript"},{"id":377,"name":"Maya (MEL)"},{"id":378,"name":"MDL"},{"id":379,"name":"Mercury"},{"id":380,"name":"Mesa"},{"id":381,"name":"Metacard"},{"id":382,"name":"Metafont"},{"id":383,"name":"Microcode"},{"id":384,"name":"MicroScript"},{"id":385,"name":"MIIS"},{"id":386,"name":"MillScript"},{"id":387,"name":"MIMIC"},{"id":388,"name":"Mirah"},{"id":389,"name":"Miranda"},{"id":390,"name":"MIVA Script"},{"id":391,"name":"ML"},{"id":392,"name":"Moby"},{"id":393,"name":"Model 204"},{"id":394,"name":"Modelica"},{"id":395,"name":"Modula"},{"id":396,"name":"Modula-2"},{"id":397,"name":"Modula-3"},{"id":398,"name":"Mohol"},{"id":399,"name":"MOO"},{"id":400,"name":"Mortran"},{"id":401,"name":"Mouse"},{"id":402,"name":"MPD"},{"id":403,"name":"CIL"},{"id":404,"name":"MSL"},{"id":405,"name":"MUMPS"},{"id":406,"name":"Mystic Programming Language"},{"id":407,"name":"NASM"},{"id":408,"name":"NATURAL"},{"id":409,"name":"Napier88"},{"id":410,"name":"Neko"},{"id":411,"name":"Nemerle"},{"id":412,"name":"nesC"},{"id":413,"name":"NESL"},{"id":414,"name":"Net.Data"},{"id":415,"name":"NetLogo"},{"id":416,"name":"NetRexx"},{"id":417,"name":"NewLISP"},{"id":418,"name":"NEWP"},{"id":419,"name":"Newspeak"},{"id":420,"name":"NewtonScript"},{"id":421,"name":"NGL"},{"id":422,"name":"Nial"},{"id":423,"name":"Nice"},{"id":424,"name":"Nickle"},{"id":425,"name":"Nim"},{"id":426,"name":"NPL"},{"id":427,"name":"Not eXactly C"},{"id":428,"name":"Not Quite C"},{"id":429,"name":"NSIS"},{"id":430,"name":"Nu"},{"id":431,"name":"NWScript"},{"id":432,"name":"NXT-G"},{"id":433,"name":"o:XML"},{"id":434,"name":"Oak"},{"id":435,"name":"Oberon"},{"id":436,"name":"OBJ2"},{"id":437,"name":"Object Lisp"},{"id":438,"name":"ObjectLOGO"},{"id":439,"name":"Object REXX"},{"id":440,"name":"Object Pascal"},{"id":441,"name":"Objective-C"},{"id":442,"name":"Objective-J"},{"id":443,"name":"Obliq"},{"id":444,"name":"OCaml"},{"id":445,"name":"occam"},{"id":446,"name":"occam-π"},{"id":447,"name":"Octave"},{"id":448,"name":"OmniMark"},{"id":449,"name":"Onyx"},{"id":450,"name":"Opa"},{"id":451,"name":"Opal"},{"id":452,"name":"OpenCL"},{"id":453,"name":"OpenEdge ABL"},{"id":454,"name":"OPL"},{"id":455,"name":"OPS5"},{"id":456,"name":"OptimJ"},{"id":457,"name":"Orc"},{"id":458,"name":"ORCA/Modula-2"},{"id":459,"name":"Oriel"},{"id":460,"name":"Orwell"},{"id":461,"name":"Oxygene"},{"id":462,"name":"Oz"},{"id":463,"name":"P′′"},{"id":464,"name":"P#"},{"id":465,"name":"ParaSail (programming language)"},{"id":466,"name":"PARI/GP"},{"id":467,"name":"Pascal"},{"id":468,"name":"PCASTL"},{"id":469,"name":"PCF"},{"id":470,"name":"PEARL"},{"id":471,"name":"PeopleCode"},{"id":472,"name":"Perl"},{"id":473,"name":"PDL"},{"id":474,"name":"Perl6"},{"id":475,"name":"PHP"},{"id":476,"name":"Phrogram"},{"id":477,"name":"Pico"},{"id":478,"name":"Picolisp"},{"id":479,"name":"Pict"},{"id":480,"name":"Pike"},{"id":481,"name":"PIKT"},{"id":482,"name":"PILOT"},{"id":483,"name":"Pipelines"},{"id":484,"name":"Pizza"},{"id":485,"name":"PL-11"},{"id":486,"name":"PL/0"},{"id":487,"name":"PL/B"},{"id":488,"name":"PL/C"},{"id":489,"name":"PL/I"},{"id":490,"name":"PL/M"},{"id":491,"name":"PL/P"},{"id":492,"name":"PL/SQL"},{"id":493,"name":"PL360"},{"id":494,"name":"PLANC"},{"id":495,"name":"Plankalkül"},{"id":496,"name":"Planner"},{"id":497,"name":"PLEX"},{"id":498,"name":"PLEXIL"},{"id":499,"name":"Plus"},{"id":500,"name":"POP-11"},{"id":501,"name":"PostScript"},{"id":502,"name":"PortablE"},{"id":503,"name":"Powerhouse"},{"id":504,"name":"PowerBuilder"},{"id":505,"name":"PowerShell"},{"id":506,"name":"PPL"},{"id":507,"name":"Processing"},{"id":508,"name":"Processing.js"},{"id":509,"name":"Prograph"},{"id":510,"name":"PROIV"},{"id":511,"name":"Prolog"},{"id":512,"name":"PROMAL"},{"id":513,"name":"Promela"},{"id":514,"name":"PROSE modeling language"},{"id":515,"name":"PROTEL"},{"id":516,"name":"ProvideX"},{"id":517,"name":"Pro*C"},{"id":518,"name":"Pure"},{"id":519,"name":"Python"},{"id":520,"name":"Q (equational programming language)"},{"id":521,"name":"Q (programming language from Kx Systems)"},{"id":522,"name":"Qalb"},{"id":523,"name":"QtScript"},{"id":524,"name":"QuakeC"},{"id":525,"name":"QPL"},{"id":526,"name":"R"},{"id":527,"name":"R++"},{"id":528,"name":"Racket"},{"id":529,"name":"RAPID"},{"id":530,"name":"Rapira"},{"id":531,"name":"Ratfiv"},{"id":532,"name":"Ratfor"},{"id":533,"name":"rc"},{"id":534,"name":"REBOL"},{"id":535,"name":"Red"},{"id":536,"name":"Redcode"},{"id":537,"name":"REFAL"},{"id":538,"name":"Reia"},{"id":539,"name":"Revolution"},{"id":540,"name":"rex"},{"id":541,"name":"REXX"},{"id":542,"name":"Rlab"},{"id":543,"name":"ROOP"},{"id":544,"name":"RPG"},{"id":545,"name":"RPL"},{"id":546,"name":"RSL"},{"id":547,"name":"RTL/2"},{"id":548,"name":"Ruby"},{"id":549,"name":"RuneScript"},{"id":550,"name":"Rust"},{"id":551,"name":"S"},{"id":552,"name":"S2"},{"id":553,"name":"S3"},{"id":554,"name":"S-Lang"},{"id":555,"name":"S-PLUS"},{"id":556,"name":"SA-C"},{"id":557,"name":"SabreTalk"},{"id":558,"name":"SAIL"},{"id":559,"name":"SALSA"},{"id":560,"name":"SAM76"},{"id":561,"name":"SAS"},{"id":562,"name":"SASL"},{"id":563,"name":"Sather"},{"id":564,"name":"Sawzall"},{"id":565,"name":"SBL"},{"id":566,"name":"Scala"},{"id":567,"name":"Scheme"},{"id":568,"name":"Scilab"},{"id":569,"name":"Scratch"},{"id":570,"name":"Script.NET"},{"id":571,"name":"Sed"},{"id":572,"name":"Seed7"},{"id":573,"name":"Self"},{"id":574,"name":"SenseTalk"},{"id":575,"name":"SequenceL"},{"id":576,"name":"SETL"},{"id":577,"name":"SIMPOL"},{"id":578,"name":"SIGNAL"},{"id":579,"name":"SiMPLE"},{"id":580,"name":"SIMSCRIPT"},{"id":581,"name":"Simula"},{"id":582,"name":"Simulink"},{"id":583,"name":"SISAL"},{"id":584,"name":"SLIP"},{"id":585,"name":"SMALL"},{"id":586,"name":"Smalltalk"},{"id":587,"name":"Small Basic"},{"id":588,"name":"SML"},{"id":589,"name":"Snap!"},{"id":590,"name":"SNOBOL"},{"id":591,"name":"SPITBOL"},{"id":592,"name":"Snowball"},{"id":593,"name":"SOL"},{"id":594,"name":"Span"},{"id":595,"name":"SPARK"},{"id":596,"name":"Speedcode"},{"id":597,"name":"SPIN"},{"id":598,"name":"SP/k"},{"id":599,"name":"SPS"},{"id":600,"name":"SQR"},{"id":601,"name":"Squeak"},{"id":602,"name":"Squirrel"},{"id":603,"name":"SR"},{"id":604,"name":"S/SL"},{"id":605,"name":"Stackless Python"},{"id":606,"name":"Starlogo"},{"id":607,"name":"Strand"},{"id":608,"name":"Stata"},{"id":609,"name":"Stateflow"},{"id":610,"name":"Subtext"},{"id":611,"name":"SuperCollider"},{"id":612,"name":"SuperTalk"},{"id":613,"name":"Swift (Apple programming language)"},{"id":614,"name":"Swift (parallel scripting language)"},{"id":615,"name":"SYMPL"},{"id":616,"name":"SyncCharts"},{"id":617,"name":"SystemVerilog"},{"id":618,"name":"T"},{"id":619,"name":"TACL"},{"id":620,"name":"TACPOL"},{"id":621,"name":"TADS"},{"id":622,"name":"TAL"},{"id":623,"name":"Tcl"},{"id":624,"name":"Tea"},{"id":625,"name":"TECO"},{"id":626,"name":"TELCOMP"},{"id":627,"name":"TeX"},{"id":628,"name":"TEX"},{"id":629,"name":"TIE"},{"id":630,"name":"Timber"},{"id":631,"name":"TMG"},{"id":632,"name":"Tom"},{"id":633,"name":"TOM"},{"id":634,"name":"TouchDevelop"},{"id":635,"name":"Topspeed"},{"id":636,"name":"TPU"},{"id":637,"name":"Trac"},{"id":638,"name":"TTM"},{"id":639,"name":"T-SQL"},{"id":640,"name":"TTCN"},{"id":641,"name":"Turing"},{"id":642,"name":"TUTOR"},{"id":643,"name":"TXL"},{"id":644,"name":"TypeScript"},{"id":645,"name":"Turbo C++"},{"id":646,"name":"Ubercode"},{"id":647,"name":"UCSD Pascal"},{"id":648,"name":"Umple"},{"id":649,"name":"Unicon"},{"id":650,"name":"Uniface"},{"id":651,"name":"UNITY"},{"id":652,"name":"Unix shell"},{"id":653,"name":"UnrealScript"},{"id":654,"name":"Vala"},{"id":655,"name":"VBA"},{"id":656,"name":"VBScript"},{"id":657,"name":"Verilog"},{"id":658,"name":"VHDL"},{"id":659,"name":"Visual Basic"},{"id":660,"name":"Visual Basic .NET"},{"id":661,"name":"Visual DataFlex"},{"id":662,"name":"Visual DialogScript"},{"id":663,"name":"Visual Fortran"},{"id":664,"name":"Visual FoxPro"},{"id":665,"name":"Visual J++"},{"id":666,"name":"Visual J#"},{"id":667,"name":"Visual Objects"},{"id":668,"name":"Visual Prolog"},{"id":669,"name":"VSXu"},{"id":670,"name":"vvvv"},{"id":671,"name":"WATFIV, WATFOR"},{"id":672,"name":"WebDNA"},{"id":673,"name":"WebQL"},{"id":674,"name":"Windows PowerShell"},{"id":675,"name":"Winbatch"},{"id":676,"name":"Wolfram Language"},{"id":677,"name":"Wyvern"},{"id":678,"name":"X++"},{"id":679,"name":"X#"},{"id":680,"name":"X10"},{"id":681,"name":"XBL"},{"id":682,"name":"XC"},{"id":683,"name":"XMOS architecture"},{"id":684,"name":"xHarbour"},{"id":685,"name":"XL"},{"id":686,"name":"Xojo"},{"id":687,"name":"XOTcl"},{"id":688,"name":"XPL"},{"id":689,"name":"XPL0"},{"id":690,"name":"XQuery"},{"id":691,"name":"XSB"},{"id":692,"name":"XSLT"},{"id":693,"name":"XPath"},{"id":694,"name":"Xtend"},{"id":695,"name":"Yorick"},{"id":696,"name":"YQL"},{"id":697,"name":"Z notation"},{"id":698,"name":"Zeno"},{"id":699,"name":"ZOPL"},{"id":700,"name":"ZPL"}]')},6718:e=>{"use strict";e.exports=require("require3")}},t={},n=function n(a){var r=t[a];if(void 0!==r)return r.exports;var o=t[a]={exports:{}};return e[a](o,o.exports,n),o.exports}(312);module.exports=n})();