@oinone/kunlun-meta 6.4.1 → 7.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/dist/oinone-kunlun-meta.esm.js +56 -70
  2. package/dist/types/index.d.ts +1 -1
  3. package/dist/types/src/element/ActionElement.d.ts +15 -15
  4. package/dist/types/src/element/ApiElement.d.ts +21 -21
  5. package/dist/types/src/element/ClearElement.d.ts +9 -9
  6. package/dist/types/src/element/ConfigElement.d.ts +6 -6
  7. package/dist/types/src/element/ContextElement.d.ts +9 -9
  8. package/dist/types/src/element/CustomElement.d.ts +7 -7
  9. package/dist/types/src/element/FieldElement.d.ts +25 -25
  10. package/dist/types/src/element/IBaseElement.d.ts +5 -5
  11. package/dist/types/src/element/PropElement.d.ts +6 -6
  12. package/dist/types/src/element/RequestElement.d.ts +9 -9
  13. package/dist/types/src/element/ResponseElement.d.ts +9 -9
  14. package/dist/types/src/element/SubscribeElement.d.ts +9 -9
  15. package/dist/types/src/element/ValidationElement.d.ts +12 -12
  16. package/dist/types/src/element/ViewElement.d.ts +15 -15
  17. package/dist/types/src/element/WidgetElement.d.ts +23 -23
  18. package/dist/types/src/element/index.d.ts +14 -14
  19. package/dist/types/src/global-config/index.d.ts +2 -2
  20. package/dist/types/src/global-config/runtime-config.d.ts +14 -14
  21. package/dist/types/src/global-config/type.d.ts +26 -26
  22. package/dist/types/src/index.d.ts +5 -5
  23. package/dist/types/src/metadata/constant/config.d.ts +1 -1
  24. package/dist/types/src/metadata/constant/index.d.ts +2 -2
  25. package/dist/types/src/metadata/constant/module-name.d.ts +24 -24
  26. package/dist/types/src/metadata/fragment/action.d.ts +6 -6
  27. package/dist/types/src/metadata/fragment/field.d.ts +2 -2
  28. package/dist/types/src/metadata/fragment/func.d.ts +2 -2
  29. package/dist/types/src/metadata/fragment/index.d.ts +13 -13
  30. package/dist/types/src/metadata/fragment/menu.d.ts +2 -2
  31. package/dist/types/src/metadata/fragment/model.d.ts +2 -2
  32. package/dist/types/src/metadata/fragment/page.d.ts +2 -2
  33. package/dist/types/src/metadata/index.d.ts +4 -4
  34. package/dist/types/src/metadata/runtime-fragment/action.d.ts +8 -8
  35. package/dist/types/src/metadata/runtime-fragment/function.d.ts +3 -3
  36. package/dist/types/src/metadata/runtime-fragment/index.d.ts +20 -20
  37. package/dist/types/src/metadata/runtime-fragment/model.d.ts +2 -2
  38. package/dist/types/src/metadata/runtime-fragment/module.d.ts +2 -2
  39. package/dist/types/src/metadata/runtime-fragment/view.d.ts +6 -6
  40. package/dist/types/src/metadata/types/dsl-node.d.ts +12 -12
  41. package/dist/types/src/metadata/types/enumeration.d.ts +18 -18
  42. package/dist/types/src/metadata/types/index.d.ts +8 -8
  43. package/dist/types/src/metadata/types/layout.d.ts +4 -4
  44. package/dist/types/src/metadata/types/model.d.ts +584 -584
  45. package/dist/types/src/metadata/types/tag.d.ts +23 -23
  46. package/dist/types/src/metadata/types/user.d.ts +22 -22
  47. package/dist/types/src/metadata/types/value.d.ts +3 -3
  48. package/dist/types/src/metadata/types/view.d.ts +170 -170
  49. package/dist/types/src/plugin-loader/factory/PluginLoaderFactory.d.ts +4 -4
  50. package/dist/types/src/plugin-loader/factory/index.d.ts +1 -1
  51. package/dist/types/src/plugin-loader/index.d.ts +5 -5
  52. package/dist/types/src/plugin-loader/loader/CJSPluginLoader.d.ts +7 -7
  53. package/dist/types/src/plugin-loader/loader/CSSPluginLoader.d.ts +7 -7
  54. package/dist/types/src/plugin-loader/loader/ESMPluginLoader.d.ts +7 -7
  55. package/dist/types/src/plugin-loader/loader/IIFEPluginLoader.d.ts +7 -7
  56. package/dist/types/src/plugin-loader/loader/LoadedEvent.d.ts +4 -4
  57. package/dist/types/src/plugin-loader/loader/PluginLoader.d.ts +5 -5
  58. package/dist/types/src/plugin-loader/loader/RemotePluginLoader.d.ts +5 -5
  59. package/dist/types/src/plugin-loader/loader/UMDPluginLoader.d.ts +6 -6
  60. package/dist/types/src/plugin-loader/loader/index.d.ts +1 -1
  61. package/dist/types/src/plugin-loader/typing/index.d.ts +2 -2
  62. package/dist/types/src/plugin-loader/typing/load-option.d.ts +48 -48
  63. package/dist/types/src/plugin-loader/typing/loader-config.d.ts +38 -38
  64. package/dist/types/src/plugin-loader/util/PluginLoadHelper.d.ts +7 -7
  65. package/dist/types/src/plugin-loader/util/index.d.ts +1 -1
  66. package/dist/types/src/util/element.d.ts +16 -16
  67. package/dist/types/src/util/field.d.ts +9 -9
  68. package/dist/types/src/util/helper.d.ts +2 -2
  69. package/dist/types/src/util/index.d.ts +6 -6
  70. package/dist/types/src/util/ke-common.d.ts +6 -6
  71. package/dist/types/src/util/lang.d.ts +4 -4
  72. package/dist/types/src/util/validation-utils.d.ts +3 -3
  73. package/package.json +19 -8
  74. package/src/element/SubscribeElement.ts +1 -1
  75. package/src/global-config/runtime-config.ts +1 -1
  76. package/src/metadata/runtime-fragment/index.ts +1 -10
  77. package/src/metadata/types/model.ts +2 -2
  78. package/src/metadata/types/view.ts +1 -1
  79. package/src/plugin-loader/factory/PluginLoaderFactory.ts +1 -1
  80. package/src/plugin-loader/index.ts +1 -1
  81. package/src/plugin-loader/loader/CJSPluginLoader.ts +1 -1
  82. package/src/plugin-loader/loader/CSSPluginLoader.ts +1 -1
  83. package/src/plugin-loader/loader/ESMPluginLoader.ts +1 -1
  84. package/src/plugin-loader/loader/IIFEPluginLoader.ts +1 -1
  85. package/src/plugin-loader/loader/PluginLoader.ts +1 -1
  86. package/src/plugin-loader/loader/RemotePluginLoader.ts +1 -1
  87. package/src/plugin-loader/loader/UMDPluginLoader.ts +1 -1
  88. package/src/plugin-loader/typing/loader-config.ts +1 -1
  89. package/src/plugin-loader/util/PluginLoadHelper.ts +1 -1
  90. package/src/util/element.ts +2 -12
  91. package/src/util/field.ts +1 -1
  92. package/rollup.config.js +0 -4
@@ -1,18 +1,4 @@
1
- import{HttpClient as e,gql as t}from"@oinone/kunlun-request";import{ConfigProviderSPI as n}from"@oinone/kunlun-config";
2
- /*! *****************************************************************************
3
- Copyright (c) Microsoft Corporation.
4
-
5
- Permission to use, copy, modify, and/or distribute this software for any
6
- purpose with or without fee is hereby granted.
7
-
8
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
9
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
11
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
- PERFORMANCE OF THIS SOFTWARE.
15
- ***************************************************************************** */var i,r,o,a,s=function(){return s=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},s.apply(this,arguments)};function c(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}c((i=i.apply(e,t||[])).next())})}!function(e){e.ACTIVE="ACTIVE",e.INACTIVE="INACTIVE"}(i||(i={})),function(e){e.DRAFT="DRAFT",e.NOT_ENABLED="NOT_ENABLED",e.ENABLED="ENABLED",e.DISABLED="DISABLED"}(r||(r={})),function(e){e.STORE="STORE",e.TRANSIENT="TRANSIENT",e.ABSTRACT="ABSTRACT",e.PROXY="PROXY",e.CLIENT="CLIENT"}(o||(o={})),function(e){e.String="STRING",e.Text="TEXT",e.HTML="HTML",e.Html="HTML",e.Phone="PHONE",e.Email="EMAIL",e.Integer="INTEGER",e.Long="LONG",e.Float="FLOAT",e.Currency="MONEY",e.DateTime="DATETIME",e.Date="DATE",e.Time="TIME",e.Year="YEAR",e.Boolean="BOOLEAN",e.Enum="ENUM",e.Map="MAP",e.Related="RELATED",e.OneToOne="O2O",e.OneToMany="O2M",e.ManyToOne="M2O",e.ManyToMany="M2M",e.OBJ="OBJ",e.ID="ID",e.Null="NULL",e.UID="UID",e.MultiEnum="MULTI_ENUM"}(a||(a={}));const l={ID:"ID",NULL:"空",INTEGER:"整数",LONG:"长整型",FLOAT:"浮点数",BOOLEAN:"布尔型",STRING:"文本",TEXT:"多行文本",DATETIME:"时间日期",DATE:"日期",TIME:"时间",YEAR:"年份",HTML:"富文本",MONEY:"金额",ENUM:"数据字典",MULTI_ENUM:"多枚举",O2O:"一对一",O2M:"一对多",M2O:"多对一",M2M:"多对多",RELATED:"引用类型",MAP:"键值对",UID:"用户ID",PHONE:"手机",EMAIL:"邮箱"},u=[{label:l.STRING,value:a.String},{label:l.TEXT,value:a.Text},{label:l.HTML,value:a.HTML},{label:l.PHONE,value:a.Phone},{label:l.EMAIL,value:a.Email},{label:l.INTEGER,value:a.Integer},{label:l.LONG,value:a.Long},{label:l.FLOAT,value:a.Float},{label:l.MONEY,value:a.Currency},{label:l.DATETIME,value:a.DateTime},{label:l.DATE,value:a.Date},{label:l.TIME,value:a.Time},{label:l.YEAR,value:a.Year},{label:l.BOOLEAN,value:a.Boolean},{label:l.ENUM,value:a.Enum},{label:l.MAP,value:a.Map},{label:l.O2M,value:a.OneToMany},{label:l.M2O,value:a.ManyToOne},{label:l.M2M,value:a.ManyToMany}];var p,d,f,h,E,m,N,T,O,I,y,_,A,D;function v(e){return[a.OneToOne,a.OneToMany,a.ManyToOne,a.ManyToMany].includes(e)}function S(e){return[a.OneToOne,a.ManyToOne].includes(e)}function g(e){return[a.ManyToMany,a.OneToMany].includes(e)}function M(e){return e===a.Related}!function(e){e.NON="NON",e.JSON="JSON",e.COMMA="COMMA",e.BIT="BIT",e.DOT="DOT"}(p||(p={})),function(e){e.ACTIVE="ACTIVE",e.INACTIVE="INACTIVE"}(d||(d={})),function(e){e.GRAPHQL="graphql",e.RESTFUL="restful"}(f||(f={})),function(e){e.PRIMITIVE="primitive",e.OBJECT="object",e.LIST="list"}(h||(h={})),function(e){e.CLIENT="client",e.SERVER="server"}(E||(E={})),function(e){e.CLIENT="client",e.SERVER="server",e.BOTH="both"}(m||(m={})),function(e){e.DOMAIN="domain",e.OBJECT="object",e.LIST="list"}(N||(N={})),function(e){e.Server="SERVER",e.View="VIEW",e.URL="URL",e.Client="CLIENT",e.Model="model",e.Composition="COMPOSITION",e.Custom="custom"}(T||(T={})),function(e){e.Single="SINGLE",e.Batch="BATCH",e.SingleAndBatch="SINGLE_AND_BATCH",e.ContextFree="CONTEXT_FREE"}(O||(O={})),function(e){e.JAVA="JAVA",e.JS="JS",e.GROOVY="GROOVY"}(I||(I={})),function(e){e.FindOne="FindOne",e.FindList="FindList",e.FindAll="FindAll",e.InsertOne="InsertOne",e.UpdateOne="UpdateOne",e.DeleteOne="DeleteOne",e.DeleteOneInline="DeleteOneInline",e.UpdateList="UpdateList",e.DeleteList="DeleteList"}(y||(y={})),function(e){e.ContextAction="contextFreeAction",e.SingleAction="singleAction",e.FooterAction="footer"}(_||(_={})),function(e){e.ValidateForm="validateForm",e.UpdateContext="updateContext",e.ShowDialog="showDialog",e.SubmitDialog="submitDialog",e.CloseDialog="closeDialog",e.InsertEmptyItemToList="insertEmptyItemToList",e.InsertEmptyItemToBefore="insertEmptyItemToBefore",e.InsertEmptyItemToAfter="insertEmptyItemToAfter",e.DeleteListItem="deleteListItem",e.ReloadData="reloadData",e.CopyText="copyText",e.Confirm="confirm",e.StartCreate="startCreate",e.StartInlineEdit="startInlineEdit",e.SubmitInlineEdit="submitInlineEdit",e.CancelInlineEdit="cancelInlineEdit",e.HistoryBack="historyBack",e.O2MCreateForm="O2MCreateForm",e.O2MEditForm="O2MEditForm",e.O2MDelete="O2MDelete",e.O2MCreateFormConfirm="O2MCreateFormConfirm",e.O2MEditFormConfirm="O2MEditFormConfirm",e.M2MCreateTable="M2MCreateTable",e.M2MDelete="M2MDelete",e.M2MCreateTableConfirm="M2MCreateTableConfirm",e.O2MCloseForm="O2MCloseForm"}(A||(A={})),function(e){e.create="create",e.update="update",e.delete="delete",e.redirectDetailPage="redirectDetailPage",e.redirectCreatePage="redirectCreatePage",e.redirectUpdatePage="redirectUpdatePage",e.$$internal_AddOne="$$internal_AddOne",e.$$internal_EditOne="$$internal_EditOne",e.$$internal_CopyOne="$$internal_CopyOne",e.$$internal_DeleteOne="$$internal_DeleteOne",e.$$internal_ListInsertOneAndBackToList="$$internal_ListInsertOneAndBackToList",e.$$internal_ListUpdateOneAndBackToList="$$internal_ListUpdateOneAndBackToList",e.$$internal_GotoListImportDialog="$$internal_GotoListImportDialog",e.$$internal_GotoListExportDialog="$$internal_GotoListExportDialog",e.$$internal_GotoListTableRouter="$$internal_GotoListTableRouter",e.$$internal_DialogCancel="$$internal_DialogCancel",e.$$internal_GotoO2MCreateDialog="$$internal_GotoO2MCreateDialog",e.$$internal_GotoO2MEditDialog="$$internal_GotoO2MEditDialog",e.$$internal_O2MUpdateOneAndSubmitDialog="$$internal_O2MUpdateOneAndSubmitDialog",e.$$internal_O2MDeleteOne="$$internal_O2MDeleteOne",e.$$internal_DialogSubmit="$$internal_DialogSubmit",e.$$internal_O2MInsertOneAndSubmitDialog="$$internal_O2MInsertOneAndSubmitDialog",e.$$internal_ListUpdateAndCloseDialogReloadOpenerAction="$$internal_ListUpdateAndCloseDialogReloadOpenerAction",e.$$internal_ListInsertOneAndCloseDialog="$$internal_ListInsertOneAndCloseDialog",e.$$internal_GotoM2MListDialog="$$internal_GotoM2MListDialog",e.$$internal_ReloadData="$$internal_ReloadData",e.$$internal_ValidateForm="$$internal_ValidateForm",e.$$internal_SaveDraft="$$internal_SaveDraft",e.$$internal_Download="$$internal_Download",e.$$internal_BatchUpdate="$$internal_BatchUpdate",e.$$internal_DownloadImportWorkbook="$$internal_DownloadImportWorkbook",e.$$internal_ImportWorkbook="$$internal_ImportWorkbook",e.$$internal_ExportWorkbook="$$internal_ExportWorkbook",e.$$internal_PrintPdfDocument="$$internal_PrintPdfDocument"}(D||(D={}));const L=[D.create,D.update,D.delete,D.redirectDetailPage,D.redirectCreatePage,D.redirectUpdatePage];var C,b,R,x,k,P,F,w,B,$;!function(e){e.Sequential="sequential",e.Parallel="parallel",e.ForkJoin="fork-join",e.Race="race"}(C||(C={})),function(e){e.Client="client",e.Server="server",e.Both="both"}(b||(b={})),function(e){e.MASK="MASK",e.BLOCK="BLOCK",e.HEADER="HEADER",e.CONTAINER="CONTAINER",e.SIDEBAR="SIDEBAR",e.CONTENT="CONTENT",e.VIEW="VIEW",e.FIELD="FIELD",e.GROUP="GROUP",e.GRID="GRID",e.ACTION="ACTION",e.API="API",e.CONTEXT="CONTEXT",e.REQUEST="REQUEST",e.RESPONSE="RESPONSE",e.CLEAR="CLEAR",e.FILTER="FILTER",e.WIDGET="WIDGET",e.PROP="PROP",e.VALIDATION="VALIDATION"}(R||(R={})),function(e){e.SIGN_UP_PHONE="SIGN_UP_PHONE",e.SIGN_UP_EMAIL="SIGN_UP_EMAIL",e.PHONE_MODIFY_PASSWORD_BY_PHONE_SUBMIT="MODIFY_PASSWORD_BY_PHONE",e.PHONE_MODIFY_PASSWORD_BY_PHONE_SEND_CODE="MODIFY_PASSWORD_BYPHONE_SEND_CODE",e.EMAIL_MODIFY_PASSWORD_BY_EMAIL_SUBMIT="MODIFY_PASSWORD_BY_EMAIL",e.EMAIL_MODIFY_PASSWORD_BY_EMAIL_SEND_CODE="MODIFY_PASSWORD_SEND_RESET_EMAIL",e.PHONE_MODIFY_PHONE_SUBMIT="MODIFY_PHONE",e.PHONE_MODIFY_PHONE_OLD_PHONE_CODE="MODIFY_PHONE_OLD_PHONE_CODE",e.EMAIL_MODIFY_PHONE_SEND_EMAIL_CODE="MODIFY_PHONE_SEND_EMAIL",e.PHONE_MODIFY_PHONE_NEW_PHONE_CODE="MODIFY_PHONE_NEW_PHONE_CODE",e.EMAIL_MODIFY_EMAIL_SUBMIT="MODIFY_EMAIL",e.EMAIL_MODIFY_EMAIL_SEND_OLD_EMAIL="MODIFY_EMAIL_SEND_OLD_EMAIL",e.PHONE_MODIFY_EMAIL_SEND_PHONE_CODE="MODIFY_EMAIL_SEND_PHONE_CODE",e.EMAIL_MODIFY_EMAIL_SEND_NEW_EMAIL="MODIFY_EMAIL_SEND_NEW_EMAIL",e.PHONE_ADD_CORP_SEND_PHONE_CODE="ADD_CORP_SEND_PHONE_CODE",e.EMAIL_ADD_CORP_SEND_EMAIL_CODE="ADD_CORP_SEND_EMAIL_CODE",e.PHONE_LOGIN_BY_PHONE_CODE="LOGIN_BY_PHONE_CODE",e.PHONE_SEND_LOGIN_BY_PHONE_CODE="SEND_LOGIN_BY_PHONE_CODE",e.EMAIL_LOGIN_BY_EMAIL_CODE="LOGIN_BY_EMAIL_CODE",e.EMAIL_SEND_LOGIN_BY_EMAIL_CODE="SEND_LOGIN_BY_EMAIL_CODE"}(x||(x={})),function(e){e.List="LIST",e.Object="OBJECT"}(k||(k={})),function(e){e.PC="PC",e.MOBILE="MOBILE"}(P||(P={})),function(e){e.Table="TABLE",e.Form="FORM",e.Detail="DETAIL",e.Search="SEARCH",e.Gallery="GALLERY",e.Tree="TREE",e.Multiple="MULTIPLE",e.Custom="CUSTOM"}(F||(F={})),function(e){e.Create="CREATE",e.Editor="EDITOR",e.Lookup="LOOKUP"}(w||(w={})),function(e){e.Router="ROUTER",e.Dialog="DIALOG",e.Drawer="DRAWER",e.Inner="INNER",e.OpenWindow="OPEN_WINDOW",e.Frame="iframe"}(B||(B={})),function(e){e.SYSTEM="SYSTEM",e.BASE="BASE",e.MANUAL="MANUAL",e.UI="UI",e.RELATION="RELATION",e.ABSTRACT_INHERITED="ABSTRACT_INHERITED",e.TRANSIENT_INHERITED="TRANSIENT_INHERITED",e.EXTEND_INHERITED="EXTEND_INHERITED",e.MULTI_TABLE_INHERITED="MULTI_TABLE_INHERITED",e.PROXY_INHERITED="PROXY_INHERITED"}($||($={}));const U={BASE:"base",GROUPING:"grouping",COMMON:"common",USER:"user",AUTH:"auth",MESSAGE:"message",RESOURCE:"resource",FILE:"file",EIP:"eip",DESIGNER_COMMON:"designer_common"},V={BASE:"base",GROUPING:"grouping",COMMON:"common",USER:"user",AUTH:"auth",MESSAGE:"message",RESOURCE:"resource",FILE:"file",EIP:"eip",DESIGNER_COMMON:"designerCommon"},G="id =notnull= true";function Y(e){return Y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Y(e)}var j="function"==typeof Symbol&&null!=Symbol.toStringTag?Symbol.toStringTag:"@@toStringTag";function H(e,t){for(var n,i=/\r\n|[\n\r]/g,r=1,o=t+1;(n=i.exec(e.body))&&n.index<t;)r+=1,o=t+1-(n.index+n[0].length);return{line:r,column:o}}function K(e){return J(e.source,H(e.source,e.start))}function J(e,t){var n=e.locationOffset.column-1,i=q(n)+e.body,r=t.line-1,o=e.locationOffset.line-1,a=t.line+o,s=1===t.line?n:0,c=t.column+s,l="".concat(e.name,":").concat(a,":").concat(c,"\n"),u=i.split(/\r\n|[\n\r]/g),p=u[r];if(p.length>120){for(var d=Math.floor(c/80),f=c%80,h=[],E=0;E<p.length;E+=80)h.push(p.slice(E,E+80));return l+W([["".concat(a),h[0]]].concat(h.slice(1,d+1).map(function(e){return["",e]}),[[" ",q(f-1)+"^"],["",h[d+1]]]))}return l+W([["".concat(a-1),u[r-1]],["".concat(a),p],["",q(c-1)+"^"],["".concat(a+1),u[r+1]]])}function W(e){var t=e.filter(function(e){return e[0],void 0!==e[1]}),n=Math.max.apply(Math,t.map(function(e){return e[0].length}));return t.map(function(e){var t,i=e[0],r=e[1];return q(n-(t=i).length)+t+(r?" | "+r:" |")}).join("\n")}function q(e){return Array(e+1).join(" ")}function X(e){return X="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},X(e)}function Q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function z(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Z(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function ee(e,t){return!t||"object"!==X(t)&&"function"!=typeof t?te(e):t}function te(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ne(e){var t="function"==typeof Map?new Map:void 0;return ne=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,i)}function i(){return ie(e,arguments,ae(this).constructor)}return i.prototype=Object.create(e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),oe(i,e)},ne(e)}function ie(e,t,n){return ie=re()?Reflect.construct:function(e,t,n){var i=[null];i.push.apply(i,t);var r=new(Function.bind.apply(e,i));return n&&oe(r,n.prototype),r},ie.apply(null,arguments)}function re(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function oe(e,t){return oe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},oe(e,t)}function ae(e){return ae=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ae(e)}var se=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&oe(e,t)}(a,ne(Error));var e,t,n,i,r,o=(e=a,t=re(),function(){var n,i=ae(e);if(t){var r=ae(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return ee(this,n)});function a(e,t,n,i,r,s,c){var l,u,p,d;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(d=o.call(this,e)).name="GraphQLError",d.originalError=null!=s?s:void 0,d.nodes=ce(Array.isArray(t)?t:t?[t]:void 0);for(var f=[],h=0,E=null!==(m=d.nodes)&&void 0!==m?m:[];h<E.length;h++){var m,N=E[h].loc;null!=N&&f.push(N)}f=ce(f),d.source=null!=n?n:null===(l=f)||void 0===l?void 0:l[0].source,d.positions=null!=i?i:null===(u=f)||void 0===u?void 0:u.map(function(e){return e.start}),d.locations=i&&n?i.map(function(e){return H(n,e)}):null===(p=f)||void 0===p?void 0:p.map(function(e){return H(e.source,e.start)}),d.path=null!=r?r:void 0;var T,O=null==s?void 0:s.extensions;return null==c&&("object"==Y(T=O)&&null!==T)?d.extensions=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Q(Object(n),!0).forEach(function(t){z(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Q(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},O):d.extensions=null!=c?c:{},Object.defineProperties(te(d),{message:{enumerable:!0},locations:{enumerable:null!=d.locations},path:{enumerable:null!=d.path},extensions:{enumerable:null!=d.extensions&&Object.keys(d.extensions).length>0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=s&&s.stack?(Object.defineProperty(te(d),"stack",{value:s.stack,writable:!0,configurable:!0}),ee(d)):(Error.captureStackTrace?Error.captureStackTrace(te(d),a):Object.defineProperty(te(d),"stack",{value:Error().stack,writable:!0,configurable:!0}),d)}return n=a,(i=[{key:"toString",value:function(){return function(e){var t=e.message;if(e.nodes)for(var n=0,i=e.nodes;n<i.length;n++){var r=i[n];r.loc&&(t+="\n\n"+K(r.loc))}else if(e.source&&e.locations)for(var o=0,a=e.locations;o<a.length;o++){var s=a[o];t+="\n\n"+J(e.source,s)}return t}(this)}},{key:j,get:function(){return"Object"}}])&&Z(n.prototype,i),r&&Z(n,r),a}();function ce(e){return void 0===e||0===e.length?void 0:e}function le(e,t,n){return new se("Syntax Error: ".concat(n),void 0,e,[t])}var ue=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension"});var pe="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;function de(e){var t=e.prototype.toJSON;"function"==typeof t||function(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}(0),e.prototype.inspect=t,pe&&(e.prototype[pe]=t)}var fe=function(){function e(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}return e.prototype.toJSON=function(){return{start:this.start,end:this.end}},e}();de(fe);var he=function(){function e(e,t,n,i,r,o,a){this.kind=e,this.start=t,this.end=n,this.line=i,this.column=r,this.value=a,this.prev=o,this.next=null}return e.prototype.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},e}();de(he);var Ee=Object.freeze({SOF:"<SOF>",EOF:"<EOF>",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"});function me(e){return me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},me(e)}function Ne(e){return Te(e,[])}function Te(e,t){switch(me(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return null===e?"null":function(e,t){if(-1!==t.indexOf(e))return"[Circular]";var n=[].concat(t,[e]),i=function(e){var t=e[String(pe)];if("function"==typeof t)return t;if("function"==typeof e.inspect)return e.inspect}(e);if(void 0!==i){var r=i.call(e);if(r!==e)return"string"==typeof r?r:Te(r,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";for(var n=Math.min(10,e.length),i=e.length-n,r=[],o=0;o<n;++o)r.push(Te(e[o],t));1===i?r.push("... 1 more item"):i>1&&r.push("... ".concat(i," more items"));return"["+r.join(", ")+"]"}(e,n);return function(e,t){var n=Object.keys(e);if(0===n.length)return"{}";if(t.length>2)return"["+function(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){var n=e.constructor.name;if("string"==typeof n&&""!==n)return n}return t}(e)+"]";var i=n.map(function(n){return n+": "+Te(e[n],t)});return"{ "+i.join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}function Oe(e,t){if(!Boolean(e))throw new Error(t)}function Ie(e){return Ie="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ie(e)}var ye="production"===process.env.NODE_ENV?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if("object"===Ie(e)&&null!==e){var n,i=t.prototype[Symbol.toStringTag];if(i===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null===(n=e.constructor)||void 0===n?void 0:n.name)){var r=Ne(e);throw new Error("Cannot use ".concat(i,' "').concat(r,'" from another module or realm.\n\nEnsure that there is only one instance of "graphql" in the node_modules\ndirectory. If different versions of "graphql" are the dependencies of other\nrelied on modules, use "resolutions" to ensure only one version is installed.\n\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\n\nDuplicate "graphql" modules cannot be used at the same time since different\nversions may have different capabilities and behavior. The data from one\nversion used in the function from another could produce confusing and\nspurious results.'))}}return!1};function _e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var Ae=function(){function e(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GraphQL request",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{line:1,column:1};"string"==typeof e||Oe(0,"Body must be a string. Received: ".concat(Ne(e),".")),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||Oe(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||Oe(0,"column in locationOffset is 1-indexed and must be positive.")}var t,n,i;return t=e,(n=[{key:j,get:function(){return"Source"}}])&&_e(t.prototype,n),i&&_e(t,i),e}();var De=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"});function ve(e){var t=e.split(/\r\n|[\n\r]/g),n=function(e){for(var t,n=!0,i=!0,r=0,o=null,a=0;a<e.length;++a)switch(e.charCodeAt(a)){case 13:10===e.charCodeAt(a+1)&&++a;case 10:n=!1,i=!0,r=0;break;case 9:case 32:++r;break;default:i&&!n&&(null===o||r<o)&&(o=r),i=!1}return null!==(t=o)&&void 0!==t?t:0}(e);if(0!==n)for(var i=1;i<t.length;i++)t[i]=t[i].slice(n);for(var r=0;r<t.length&&Se(t[r]);)++r;for(var o=t.length;o>r&&Se(t[o-1]);)--o;return t.slice(r,o).join("\n")}function Se(e){for(var t=0;t<e.length;++t)if(" "!==e[t]&&"\t"!==e[t])return!1;return!0}var ge=function(){function e(e){var t=new he(Ee.SOF,0,0,0,0,null);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}var t=e.prototype;return t.advance=function(){return this.lastToken=this.token,this.token=this.lookahead()},t.lookahead=function(){var e=this.token;if(e.kind!==Ee.EOF)do{var t;e=null!==(t=e.next)&&void 0!==t?t:e.next=Le(this,e)}while(e.kind===Ee.COMMENT);return e},e}();function Me(e){return isNaN(e)?Ee.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function Le(e,t){for(var n=e.source,i=n.body,r=i.length,o=t.end;o<r;){var a=i.charCodeAt(o),s=e.line,c=1+o-e.lineStart;switch(a){case 65279:case 9:case 32:case 44:++o;continue;case 10:++o,++e.line,e.lineStart=o;continue;case 13:10===i.charCodeAt(o+1)?o+=2:++o,++e.line,e.lineStart=o;continue;case 33:return new he(Ee.BANG,o,o+1,s,c,t);case 35:return be(n,o,s,c,t);case 36:return new he(Ee.DOLLAR,o,o+1,s,c,t);case 38:return new he(Ee.AMP,o,o+1,s,c,t);case 40:return new he(Ee.PAREN_L,o,o+1,s,c,t);case 41:return new he(Ee.PAREN_R,o,o+1,s,c,t);case 46:if(46===i.charCodeAt(o+1)&&46===i.charCodeAt(o+2))return new he(Ee.SPREAD,o,o+3,s,c,t);break;case 58:return new he(Ee.COLON,o,o+1,s,c,t);case 61:return new he(Ee.EQUALS,o,o+1,s,c,t);case 64:return new he(Ee.AT,o,o+1,s,c,t);case 91:return new he(Ee.BRACKET_L,o,o+1,s,c,t);case 93:return new he(Ee.BRACKET_R,o,o+1,s,c,t);case 123:return new he(Ee.BRACE_L,o,o+1,s,c,t);case 124:return new he(Ee.PIPE,o,o+1,s,c,t);case 125:return new he(Ee.BRACE_R,o,o+1,s,c,t);case 34:return 34===i.charCodeAt(o+1)&&34===i.charCodeAt(o+2)?Pe(n,o,s,c,t,e):ke(n,o,s,c,t);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return Re(n,o,a,s,c,t);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return Be(n,o,s,c,t)}throw le(n,o,Ce(a))}var l=e.line,u=1+o-e.lineStart;return new he(Ee.EOF,r,r,l,u,t)}function Ce(e){return e<32&&9!==e&&10!==e&&13!==e?"Cannot contain the invalid character ".concat(Me(e),"."):39===e?"Unexpected single quote character ('), did you mean to use a double quote (\")?":"Cannot parse the unexpected character ".concat(Me(e),".")}function be(e,t,n,i,r){var o,a=e.body,s=t;do{o=a.charCodeAt(++s)}while(!isNaN(o)&&(o>31||9===o));return new he(Ee.COMMENT,t,s,n,i,r,a.slice(t+1,s))}function Re(e,t,n,i,r,o){var a=e.body,s=n,c=t,l=!1;if(45===s&&(s=a.charCodeAt(++c)),48===s){if((s=a.charCodeAt(++c))>=48&&s<=57)throw le(e,c,"Invalid number, unexpected digit after 0: ".concat(Me(s),"."))}else c=xe(e,c,s),s=a.charCodeAt(c);if(46===s&&(l=!0,s=a.charCodeAt(++c),c=xe(e,c,s),s=a.charCodeAt(c)),69!==s&&101!==s||(l=!0,43!==(s=a.charCodeAt(++c))&&45!==s||(s=a.charCodeAt(++c)),c=xe(e,c,s),s=a.charCodeAt(c)),46===s||function(e){return 95===e||e>=65&&e<=90||e>=97&&e<=122}(s))throw le(e,c,"Invalid number, expected digit but got: ".concat(Me(s),"."));return new he(l?Ee.FLOAT:Ee.INT,t,c,i,r,o,a.slice(t,c))}function xe(e,t,n){var i=e.body,r=t,o=n;if(o>=48&&o<=57){do{o=i.charCodeAt(++r)}while(o>=48&&o<=57);return r}throw le(e,r,"Invalid number, expected digit but got: ".concat(Me(o),"."))}function ke(e,t,n,i,r){for(var o=e.body,a=t+1,s=a,c=0,l="";a<o.length&&!isNaN(c=o.charCodeAt(a))&&10!==c&&13!==c;){if(34===c)return l+=o.slice(s,a),new he(Ee.STRING,t,a+1,n,i,r,l);if(c<32&&9!==c)throw le(e,a,"Invalid character within String: ".concat(Me(c),"."));if(++a,92===c){switch(l+=o.slice(s,a-1),c=o.charCodeAt(a)){case 34:l+='"';break;case 47:l+="/";break;case 92:l+="\\";break;case 98:l+="\b";break;case 102:l+="\f";break;case 110:l+="\n";break;case 114:l+="\r";break;case 116:l+="\t";break;case 117:var u=Fe(o.charCodeAt(a+1),o.charCodeAt(a+2),o.charCodeAt(a+3),o.charCodeAt(a+4));if(u<0){var p=o.slice(a+1,a+5);throw le(e,a,"Invalid character escape sequence: \\u".concat(p,"."))}l+=String.fromCharCode(u),a+=4;break;default:throw le(e,a,"Invalid character escape sequence: \\".concat(String.fromCharCode(c),"."))}s=++a}}throw le(e,a,"Unterminated string.")}function Pe(e,t,n,i,r,o){for(var a=e.body,s=t+3,c=s,l=0,u="";s<a.length&&!isNaN(l=a.charCodeAt(s));){if(34===l&&34===a.charCodeAt(s+1)&&34===a.charCodeAt(s+2))return u+=a.slice(c,s),new he(Ee.BLOCK_STRING,t,s+3,n,i,r,ve(u));if(l<32&&9!==l&&10!==l&&13!==l)throw le(e,s,"Invalid character within String: ".concat(Me(l),"."));10===l?(++s,++o.line,o.lineStart=s):13===l?(10===a.charCodeAt(s+1)?s+=2:++s,++o.line,o.lineStart=s):92===l&&34===a.charCodeAt(s+1)&&34===a.charCodeAt(s+2)&&34===a.charCodeAt(s+3)?(u+=a.slice(c,s)+'"""',c=s+=4):++s}throw le(e,s,"Unterminated string.")}function Fe(e,t,n,i){return we(e)<<12|we(t)<<8|we(n)<<4|we(i)}function we(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function Be(e,t,n,i,r){for(var o=e.body,a=o.length,s=t+1,c=0;s!==a&&!isNaN(c=o.charCodeAt(s))&&(95===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122);)++s;return new he(Ee.NAME,t,s,n,i,r,o.slice(t,s))}var $e=function(){function e(e,t){var n=function(e){return ye(e,Ae)}(e)?e:new Ae(e);this._lexer=new ge(n),this._options=t}var t=e.prototype;return t.parseName=function(){var e=this.expectToken(Ee.NAME);return{kind:ue.NAME,value:e.value,loc:this.loc(e)}},t.parseDocument=function(){var e=this._lexer.token;return{kind:ue.DOCUMENT,definitions:this.many(Ee.SOF,this.parseDefinition,Ee.EOF),loc:this.loc(e)}},t.parseDefinition=function(){if(this.peek(Ee.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(Ee.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},t.parseOperationDefinition=function(){var e=this._lexer.token;if(this.peek(Ee.BRACE_L))return{kind:ue.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(e)};var t,n=this.parseOperationType();return this.peek(Ee.NAME)&&(t=this.parseName()),{kind:ue.OPERATION_DEFINITION,operation:n,name:t,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseOperationType=function(){var e=this.expectToken(Ee.NAME);switch(e.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(e)},t.parseVariableDefinitions=function(){return this.optionalMany(Ee.PAREN_L,this.parseVariableDefinition,Ee.PAREN_R)},t.parseVariableDefinition=function(){var e=this._lexer.token;return{kind:ue.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(Ee.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(Ee.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(e)}},t.parseVariable=function(){var e=this._lexer.token;return this.expectToken(Ee.DOLLAR),{kind:ue.VARIABLE,name:this.parseName(),loc:this.loc(e)}},t.parseSelectionSet=function(){var e=this._lexer.token;return{kind:ue.SELECTION_SET,selections:this.many(Ee.BRACE_L,this.parseSelection,Ee.BRACE_R),loc:this.loc(e)}},t.parseSelection=function(){return this.peek(Ee.SPREAD)?this.parseFragment():this.parseField()},t.parseField=function(){var e,t,n=this._lexer.token,i=this.parseName();return this.expectOptionalToken(Ee.COLON)?(e=i,t=this.parseName()):t=i,{kind:ue.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(Ee.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(n)}},t.parseArguments=function(e){var t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(Ee.PAREN_L,t,Ee.PAREN_R)},t.parseArgument=function(){var e=this._lexer.token,t=this.parseName();return this.expectToken(Ee.COLON),{kind:ue.ARGUMENT,name:t,value:this.parseValueLiteral(!1),loc:this.loc(e)}},t.parseConstArgument=function(){var e=this._lexer.token;return{kind:ue.ARGUMENT,name:this.parseName(),value:(this.expectToken(Ee.COLON),this.parseValueLiteral(!0)),loc:this.loc(e)}},t.parseFragment=function(){var e=this._lexer.token;this.expectToken(Ee.SPREAD);var t=this.expectOptionalKeyword("on");return!t&&this.peek(Ee.NAME)?{kind:ue.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(e)}:{kind:ue.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseFragmentDefinition=function(){var e,t=this._lexer.token;return this.expectKeyword("fragment"),!0===(null===(e=this._options)||void 0===e?void 0:e.experimentalFragmentVariables)?{kind:ue.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}:{kind:ue.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}},t.parseFragmentName=function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},t.parseValueLiteral=function(e){var t=this._lexer.token;switch(t.kind){case Ee.BRACKET_L:return this.parseList(e);case Ee.BRACE_L:return this.parseObject(e);case Ee.INT:return this._lexer.advance(),{kind:ue.INT,value:t.value,loc:this.loc(t)};case Ee.FLOAT:return this._lexer.advance(),{kind:ue.FLOAT,value:t.value,loc:this.loc(t)};case Ee.STRING:case Ee.BLOCK_STRING:return this.parseStringLiteral();case Ee.NAME:switch(this._lexer.advance(),t.value){case"true":return{kind:ue.BOOLEAN,value:!0,loc:this.loc(t)};case"false":return{kind:ue.BOOLEAN,value:!1,loc:this.loc(t)};case"null":return{kind:ue.NULL,loc:this.loc(t)};default:return{kind:ue.ENUM,value:t.value,loc:this.loc(t)}}case Ee.DOLLAR:if(!e)return this.parseVariable()}throw this.unexpected()},t.parseStringLiteral=function(){var e=this._lexer.token;return this._lexer.advance(),{kind:ue.STRING,value:e.value,block:e.kind===Ee.BLOCK_STRING,loc:this.loc(e)}},t.parseList=function(e){var t=this,n=this._lexer.token;return{kind:ue.LIST,values:this.any(Ee.BRACKET_L,function(){return t.parseValueLiteral(e)},Ee.BRACKET_R),loc:this.loc(n)}},t.parseObject=function(e){var t=this,n=this._lexer.token;return{kind:ue.OBJECT,fields:this.any(Ee.BRACE_L,function(){return t.parseObjectField(e)},Ee.BRACE_R),loc:this.loc(n)}},t.parseObjectField=function(e){var t=this._lexer.token,n=this.parseName();return this.expectToken(Ee.COLON),{kind:ue.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e),loc:this.loc(t)}},t.parseDirectives=function(e){for(var t=[];this.peek(Ee.AT);)t.push(this.parseDirective(e));return t},t.parseDirective=function(e){var t=this._lexer.token;return this.expectToken(Ee.AT),{kind:ue.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e),loc:this.loc(t)}},t.parseTypeReference=function(){var e,t=this._lexer.token;return this.expectOptionalToken(Ee.BRACKET_L)?(e=this.parseTypeReference(),this.expectToken(Ee.BRACKET_R),e={kind:ue.LIST_TYPE,type:e,loc:this.loc(t)}):e=this.parseNamedType(),this.expectOptionalToken(Ee.BANG)?{kind:ue.NON_NULL_TYPE,type:e,loc:this.loc(t)}:e},t.parseNamedType=function(){var e=this._lexer.token;return{kind:ue.NAMED_TYPE,name:this.parseName(),loc:this.loc(e)}},t.parseTypeSystemDefinition=function(){var e=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(e.kind===Ee.NAME)switch(e.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(e)},t.peekDescription=function(){return this.peek(Ee.STRING)||this.peek(Ee.BLOCK_STRING)},t.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},t.parseSchemaDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");var n=this.parseDirectives(!0),i=this.many(Ee.BRACE_L,this.parseOperationTypeDefinition,Ee.BRACE_R);return{kind:ue.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:i,loc:this.loc(e)}},t.parseOperationTypeDefinition=function(){var e=this._lexer.token,t=this.parseOperationType();this.expectToken(Ee.COLON);var n=this.parseNamedType();return{kind:ue.OPERATION_TYPE_DEFINITION,operation:t,type:n,loc:this.loc(e)}},t.parseScalarTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");var n=this.parseName(),i=this.parseDirectives(!0);return{kind:ue.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:i,loc:this.loc(e)}},t.parseObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");var n=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:ue.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:i,directives:r,fields:o,loc:this.loc(e)}},t.parseImplementsInterfaces=function(){var e;if(!this.expectOptionalKeyword("implements"))return[];if(!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLImplementsInterfaces)){var t=[];this.expectOptionalToken(Ee.AMP);do{t.push(this.parseNamedType())}while(this.expectOptionalToken(Ee.AMP)||this.peek(Ee.NAME));return t}return this.delimitedMany(Ee.AMP,this.parseNamedType)},t.parseFieldsDefinition=function(){var e;return!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLEmptyFields)&&this.peek(Ee.BRACE_L)&&this._lexer.lookahead().kind===Ee.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(Ee.BRACE_L,this.parseFieldDefinition,Ee.BRACE_R)},t.parseFieldDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),i=this.parseArgumentDefs();this.expectToken(Ee.COLON);var r=this.parseTypeReference(),o=this.parseDirectives(!0);return{kind:ue.FIELD_DEFINITION,description:t,name:n,arguments:i,type:r,directives:o,loc:this.loc(e)}},t.parseArgumentDefs=function(){return this.optionalMany(Ee.PAREN_L,this.parseInputValueDef,Ee.PAREN_R)},t.parseInputValueDef=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(Ee.COLON);var i,r=this.parseTypeReference();this.expectOptionalToken(Ee.EQUALS)&&(i=this.parseValueLiteral(!0));var o=this.parseDirectives(!0);return{kind:ue.INPUT_VALUE_DEFINITION,description:t,name:n,type:r,defaultValue:i,directives:o,loc:this.loc(e)}},t.parseInterfaceTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");var n=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:ue.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:i,directives:r,fields:o,loc:this.loc(e)}},t.parseUnionTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");var n=this.parseName(),i=this.parseDirectives(!0),r=this.parseUnionMemberTypes();return{kind:ue.UNION_TYPE_DEFINITION,description:t,name:n,directives:i,types:r,loc:this.loc(e)}},t.parseUnionMemberTypes=function(){return this.expectOptionalToken(Ee.EQUALS)?this.delimitedMany(Ee.PIPE,this.parseNamedType):[]},t.parseEnumTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");var n=this.parseName(),i=this.parseDirectives(!0),r=this.parseEnumValuesDefinition();return{kind:ue.ENUM_TYPE_DEFINITION,description:t,name:n,directives:i,values:r,loc:this.loc(e)}},t.parseEnumValuesDefinition=function(){return this.optionalMany(Ee.BRACE_L,this.parseEnumValueDefinition,Ee.BRACE_R)},t.parseEnumValueDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),i=this.parseDirectives(!0);return{kind:ue.ENUM_VALUE_DEFINITION,description:t,name:n,directives:i,loc:this.loc(e)}},t.parseInputObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");var n=this.parseName(),i=this.parseDirectives(!0),r=this.parseInputFieldsDefinition();return{kind:ue.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:i,fields:r,loc:this.loc(e)}},t.parseInputFieldsDefinition=function(){return this.optionalMany(Ee.BRACE_L,this.parseInputValueDef,Ee.BRACE_R)},t.parseTypeSystemExtension=function(){var e=this._lexer.lookahead();if(e.kind===Ee.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)},t.parseSchemaExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var t=this.parseDirectives(!0),n=this.optionalMany(Ee.BRACE_L,this.parseOperationTypeDefinition,Ee.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return{kind:ue.SCHEMA_EXTENSION,directives:t,operationTypes:n,loc:this.loc(e)}},t.parseScalarTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var t=this.parseName(),n=this.parseDirectives(!0);if(0===n.length)throw this.unexpected();return{kind:ue.SCALAR_TYPE_EXTENSION,name:t,directives:n,loc:this.loc(e)}},t.parseObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var t=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),r=this.parseFieldsDefinition();if(0===n.length&&0===i.length&&0===r.length)throw this.unexpected();return{kind:ue.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:i,fields:r,loc:this.loc(e)}},t.parseInterfaceTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var t=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),r=this.parseFieldsDefinition();if(0===n.length&&0===i.length&&0===r.length)throw this.unexpected();return{kind:ue.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:i,fields:r,loc:this.loc(e)}},t.parseUnionTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var t=this.parseName(),n=this.parseDirectives(!0),i=this.parseUnionMemberTypes();if(0===n.length&&0===i.length)throw this.unexpected();return{kind:ue.UNION_TYPE_EXTENSION,name:t,directives:n,types:i,loc:this.loc(e)}},t.parseEnumTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var t=this.parseName(),n=this.parseDirectives(!0),i=this.parseEnumValuesDefinition();if(0===n.length&&0===i.length)throw this.unexpected();return{kind:ue.ENUM_TYPE_EXTENSION,name:t,directives:n,values:i,loc:this.loc(e)}},t.parseInputObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var t=this.parseName(),n=this.parseDirectives(!0),i=this.parseInputFieldsDefinition();if(0===n.length&&0===i.length)throw this.unexpected();return{kind:ue.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:i,loc:this.loc(e)}},t.parseDirectiveDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(Ee.AT);var n=this.parseName(),i=this.parseArgumentDefs(),r=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var o=this.parseDirectiveLocations();return{kind:ue.DIRECTIVE_DEFINITION,description:t,name:n,arguments:i,repeatable:r,locations:o,loc:this.loc(e)}},t.parseDirectiveLocations=function(){return this.delimitedMany(Ee.PIPE,this.parseDirectiveLocation)},t.parseDirectiveLocation=function(){var e=this._lexer.token,t=this.parseName();if(void 0!==De[t.value])return t;throw this.unexpected(e)},t.loc=function(e){var t;if(!0!==(null===(t=this._options)||void 0===t?void 0:t.noLocation))return new fe(e,this._lexer.lastToken,this._lexer.source)},t.peek=function(e){return this._lexer.token.kind===e},t.expectToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t;throw le(this._lexer.source,t.start,"Expected ".concat(Ve(e),", found ").concat(Ue(t),"."))},t.expectOptionalToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t},t.expectKeyword=function(e){var t=this._lexer.token;if(t.kind!==Ee.NAME||t.value!==e)throw le(this._lexer.source,t.start,'Expected "'.concat(e,'", found ').concat(Ue(t),"."));this._lexer.advance()},t.expectOptionalKeyword=function(e){var t=this._lexer.token;return t.kind===Ee.NAME&&t.value===e&&(this._lexer.advance(),!0)},t.unexpected=function(e){var t=null!=e?e:this._lexer.token;return le(this._lexer.source,t.start,"Unexpected ".concat(Ue(t),"."))},t.any=function(e,t,n){this.expectToken(e);for(var i=[];!this.expectOptionalToken(n);)i.push(t.call(this));return i},t.optionalMany=function(e,t,n){if(this.expectOptionalToken(e)){var i=[];do{i.push(t.call(this))}while(!this.expectOptionalToken(n));return i}return[]},t.many=function(e,t,n){this.expectToken(e);var i=[];do{i.push(t.call(this))}while(!this.expectOptionalToken(n));return i},t.delimitedMany=function(e,t){this.expectOptionalToken(e);var n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n},e}();function Ue(e){var t=e.value;return Ve(e.kind)+(null!=t?' "'.concat(t,'"'):"")}function Ve(e){return function(e){return e===Ee.BANG||e===Ee.DOLLAR||e===Ee.AMP||e===Ee.PAREN_L||e===Ee.PAREN_R||e===Ee.SPREAD||e===Ee.COLON||e===Ee.EQUALS||e===Ee.AT||e===Ee.BRACKET_L||e===Ee.BRACKET_R||e===Ee.BRACE_L||e===Ee.PIPE||e===Ee.BRACE_R}(e)?'"'.concat(e,'"'):e}var Ge=new Map,Ye=new Map,je=!0,He=!1;function Ke(e){return e.replace(/[\s,]+/g," ").trim()}function Je(e){var t=new Set,n=[];return e.definitions.forEach(function(e){if("FragmentDefinition"===e.kind){var i=e.name.value,r=Ke((a=e.loc).source.body.substring(a.start,a.end)),o=Ye.get(i);o&&!o.has(r)?je&&console.warn("Warning: fragment with name "+i+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):o||Ye.set(i,o=new Set),o.add(r),t.has(r)||(t.add(r),n.push(e))}else n.push(e);var a}),s(s({},e),{definitions:n})}function We(e){var t=Ke(e);if(!Ge.has(t)){var n=function(e,t){return new $e(e,t).parseDocument()}(e,{experimentalFragmentVariables:He,allowLegacyFragmentVariables:He});if(!n||"Document"!==n.kind)throw new Error("Not a valid GraphQL document.");Ge.set(t,function(e){var t=new Set(e.definitions);t.forEach(function(e){e.loc&&delete e.loc,Object.keys(e).forEach(function(n){var i=e[n];i&&"object"==typeof i&&t.add(i)})});var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}(Je(n)))}return Ge.get(t)}function qe(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];"string"==typeof e&&(e=[e]);var i=e[0];return t.forEach(function(t,n){t&&"Document"===t.kind?i+=t.loc.source.body:i+=t,i+=e[n+1]}),We(i)}var Xe,Qe=qe,ze=function(){Ge.clear(),Ye.clear()},Ze=function(){je=!1},et=function(){He=!0},tt=function(){He=!1};(Xe=qe||(qe={})).gql=Qe,Xe.resetCaches=ze,Xe.disableFragmentWarnings=Ze,Xe.enableExperimentalFragmentVariables=et,Xe.disableExperimentalFragmentVariables=tt,qe.default=qe;const nt=qe`
1
+ import{HttpClient as e,gql as n}from"@oinone/kunlun-request";import t from"graphql-tag";import{ConfigProviderSPI as i}from"@oinone/kunlun-config";function o(e,n,t,i){return new(t||(t=Promise))(function(o,a){function r(e){try{d(i.next(e))}catch(e){a(e)}}function l(e){try{d(i.throw(e))}catch(e){a(e)}}function d(e){var n;e.done?o(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(r,l)}d((i=i.apply(e,n||[])).next())})}var a,r,l,d;"function"==typeof SuppressedError&&SuppressedError,function(e){e.ACTIVE="ACTIVE",e.INACTIVE="INACTIVE"}(a||(a={})),function(e){e.DRAFT="DRAFT",e.NOT_ENABLED="NOT_ENABLED",e.ENABLED="ENABLED",e.DISABLED="DISABLED"}(r||(r={})),function(e){e.STORE="STORE",e.TRANSIENT="TRANSIENT",e.ABSTRACT="ABSTRACT",e.PROXY="PROXY",e.CLIENT="CLIENT"}(l||(l={})),function(e){e.String="STRING",e.Text="TEXT",e.HTML="HTML",e.Html="HTML",e.Phone="PHONE",e.Email="EMAIL",e.Integer="INTEGER",e.Long="LONG",e.Float="FLOAT",e.Currency="MONEY",e.DateTime="DATETIME",e.Date="DATE",e.Time="TIME",e.Year="YEAR",e.Boolean="BOOLEAN",e.Enum="ENUM",e.Map="MAP",e.Related="RELATED",e.OneToOne="O2O",e.OneToMany="O2M",e.ManyToOne="M2O",e.ManyToMany="M2M",e.OBJ="OBJ",e.ID="ID",e.Null="NULL",e.UID="UID",e.MultiEnum="MULTI_ENUM"}(d||(d={}));const s={ID:"ID",NULL:"空",INTEGER:"整数",LONG:"长整型",FLOAT:"浮点数",BOOLEAN:"布尔型",STRING:"文本",TEXT:"多行文本",DATETIME:"时间日期",DATE:"日期",TIME:"时间",YEAR:"年份",HTML:"富文本",MONEY:"金额",ENUM:"数据字典",MULTI_ENUM:"多枚举",O2O:"一对一",O2M:"一对多",M2O:"多对一",M2M:"多对多",RELATED:"引用类型",MAP:"键值对",UID:"用户ID",PHONE:"手机",EMAIL:"邮箱"},c=[{label:s.STRING,value:d.String},{label:s.TEXT,value:d.Text},{label:s.HTML,value:d.HTML},{label:s.PHONE,value:d.Phone},{label:s.EMAIL,value:d.Email},{label:s.INTEGER,value:d.Integer},{label:s.LONG,value:d.Long},{label:s.FLOAT,value:d.Float},{label:s.MONEY,value:d.Currency},{label:s.DATETIME,value:d.DateTime},{label:s.DATE,value:d.Date},{label:s.TIME,value:d.Time},{label:s.YEAR,value:d.Year},{label:s.BOOLEAN,value:d.Boolean},{label:s.ENUM,value:d.Enum},{label:s.MAP,value:d.Map},{label:s.O2M,value:d.OneToMany},{label:s.M2O,value:d.ManyToOne},{label:s.M2M,value:d.ManyToMany}];var u,E,m,O,p,I,D,N,A,T,M,_,f,g;function L(e){return[d.OneToOne,d.OneToMany,d.ManyToOne,d.ManyToMany].includes(e)}function S(e){return[d.OneToOne,d.ManyToOne].includes(e)}function y(e){return[d.ManyToMany,d.OneToMany].includes(e)}function C(e){return e===d.Related}!function(e){e.NON="NON",e.JSON="JSON",e.COMMA="COMMA",e.BIT="BIT",e.DOT="DOT"}(u||(u={})),function(e){e.ACTIVE="ACTIVE",e.INACTIVE="INACTIVE"}(E||(E={})),function(e){e.GRAPHQL="graphql",e.RESTFUL="restful"}(m||(m={})),function(e){e.PRIMITIVE="primitive",e.OBJECT="object",e.LIST="list"}(O||(O={})),function(e){e.CLIENT="client",e.SERVER="server"}(p||(p={})),function(e){e.CLIENT="client",e.SERVER="server",e.BOTH="both"}(I||(I={})),function(e){e.DOMAIN="domain",e.OBJECT="object",e.LIST="list"}(D||(D={})),function(e){e.Server="SERVER",e.View="VIEW",e.URL="URL",e.Client="CLIENT",e.Model="model",e.Composition="COMPOSITION",e.Custom="custom"}(N||(N={})),function(e){e.Single="SINGLE",e.Batch="BATCH",e.SingleAndBatch="SINGLE_AND_BATCH",e.ContextFree="CONTEXT_FREE"}(A||(A={})),function(e){e.JAVA="JAVA",e.JS="JS",e.GROOVY="GROOVY"}(T||(T={})),function(e){e.FindOne="FindOne",e.FindList="FindList",e.FindAll="FindAll",e.InsertOne="InsertOne",e.UpdateOne="UpdateOne",e.DeleteOne="DeleteOne",e.DeleteOneInline="DeleteOneInline",e.UpdateList="UpdateList",e.DeleteList="DeleteList"}(M||(M={})),function(e){e.ContextAction="contextFreeAction",e.SingleAction="singleAction",e.FooterAction="footer"}(_||(_={})),function(e){e.ValidateForm="validateForm",e.UpdateContext="updateContext",e.ShowDialog="showDialog",e.SubmitDialog="submitDialog",e.CloseDialog="closeDialog",e.InsertEmptyItemToList="insertEmptyItemToList",e.InsertEmptyItemToBefore="insertEmptyItemToBefore",e.InsertEmptyItemToAfter="insertEmptyItemToAfter",e.DeleteListItem="deleteListItem",e.ReloadData="reloadData",e.CopyText="copyText",e.Confirm="confirm",e.StartCreate="startCreate",e.StartInlineEdit="startInlineEdit",e.SubmitInlineEdit="submitInlineEdit",e.CancelInlineEdit="cancelInlineEdit",e.HistoryBack="historyBack",e.O2MCreateForm="O2MCreateForm",e.O2MEditForm="O2MEditForm",e.O2MDelete="O2MDelete",e.O2MCreateFormConfirm="O2MCreateFormConfirm",e.O2MEditFormConfirm="O2MEditFormConfirm",e.M2MCreateTable="M2MCreateTable",e.M2MDelete="M2MDelete",e.M2MCreateTableConfirm="M2MCreateTableConfirm",e.O2MCloseForm="O2MCloseForm"}(f||(f={})),function(e){e.create="create",e.update="update",e.delete="delete",e.redirectDetailPage="redirectDetailPage",e.redirectCreatePage="redirectCreatePage",e.redirectUpdatePage="redirectUpdatePage",e.$$internal_AddOne="$$internal_AddOne",e.$$internal_EditOne="$$internal_EditOne",e.$$internal_CopyOne="$$internal_CopyOne",e.$$internal_DeleteOne="$$internal_DeleteOne",e.$$internal_ListInsertOneAndBackToList="$$internal_ListInsertOneAndBackToList",e.$$internal_ListUpdateOneAndBackToList="$$internal_ListUpdateOneAndBackToList",e.$$internal_GotoListImportDialog="$$internal_GotoListImportDialog",e.$$internal_GotoListExportDialog="$$internal_GotoListExportDialog",e.$$internal_GotoListTableRouter="$$internal_GotoListTableRouter",e.$$internal_DialogCancel="$$internal_DialogCancel",e.$$internal_GotoO2MCreateDialog="$$internal_GotoO2MCreateDialog",e.$$internal_GotoO2MEditDialog="$$internal_GotoO2MEditDialog",e.$$internal_O2MUpdateOneAndSubmitDialog="$$internal_O2MUpdateOneAndSubmitDialog",e.$$internal_O2MDeleteOne="$$internal_O2MDeleteOne",e.$$internal_DialogSubmit="$$internal_DialogSubmit",e.$$internal_O2MInsertOneAndSubmitDialog="$$internal_O2MInsertOneAndSubmitDialog",e.$$internal_ListUpdateAndCloseDialogReloadOpenerAction="$$internal_ListUpdateAndCloseDialogReloadOpenerAction",e.$$internal_ListInsertOneAndCloseDialog="$$internal_ListInsertOneAndCloseDialog",e.$$internal_GotoM2MListDialog="$$internal_GotoM2MListDialog",e.$$internal_ReloadData="$$internal_ReloadData",e.$$internal_ValidateForm="$$internal_ValidateForm",e.$$internal_SaveDraft="$$internal_SaveDraft",e.$$internal_Download="$$internal_Download",e.$$internal_BatchUpdate="$$internal_BatchUpdate",e.$$internal_DownloadImportWorkbook="$$internal_DownloadImportWorkbook",e.$$internal_ImportWorkbook="$$internal_ImportWorkbook",e.$$internal_ExportWorkbook="$$internal_ExportWorkbook",e.$$internal_PrintPdfDocument="$$internal_PrintPdfDocument"}(g||(g={}));const P=[g.create,g.update,g.delete,g.redirectDetailPage,g.redirectCreatePage,g.redirectUpdatePage];var $,R,h,v,F,b,U,w,B,H;!function(e){e.Sequential="sequential",e.Parallel="parallel",e.ForkJoin="fork-join",e.Race="race"}($||($={})),function(e){e.Client="client",e.Server="server",e.Both="both"}(R||(R={})),function(e){e.MASK="MASK",e.BLOCK="BLOCK",e.HEADER="HEADER",e.CONTAINER="CONTAINER",e.SIDEBAR="SIDEBAR",e.CONTENT="CONTENT",e.VIEW="VIEW",e.FIELD="FIELD",e.GROUP="GROUP",e.GRID="GRID",e.ACTION="ACTION",e.API="API",e.CONTEXT="CONTEXT",e.REQUEST="REQUEST",e.RESPONSE="RESPONSE",e.CLEAR="CLEAR",e.FILTER="FILTER",e.WIDGET="WIDGET",e.PROP="PROP",e.VALIDATION="VALIDATION"}(h||(h={})),function(e){e.SIGN_UP_PHONE="SIGN_UP_PHONE",e.SIGN_UP_EMAIL="SIGN_UP_EMAIL",e.PHONE_MODIFY_PASSWORD_BY_PHONE_SUBMIT="MODIFY_PASSWORD_BY_PHONE",e.PHONE_MODIFY_PASSWORD_BY_PHONE_SEND_CODE="MODIFY_PASSWORD_BYPHONE_SEND_CODE",e.EMAIL_MODIFY_PASSWORD_BY_EMAIL_SUBMIT="MODIFY_PASSWORD_BY_EMAIL",e.EMAIL_MODIFY_PASSWORD_BY_EMAIL_SEND_CODE="MODIFY_PASSWORD_SEND_RESET_EMAIL",e.PHONE_MODIFY_PHONE_SUBMIT="MODIFY_PHONE",e.PHONE_MODIFY_PHONE_OLD_PHONE_CODE="MODIFY_PHONE_OLD_PHONE_CODE",e.EMAIL_MODIFY_PHONE_SEND_EMAIL_CODE="MODIFY_PHONE_SEND_EMAIL",e.PHONE_MODIFY_PHONE_NEW_PHONE_CODE="MODIFY_PHONE_NEW_PHONE_CODE",e.EMAIL_MODIFY_EMAIL_SUBMIT="MODIFY_EMAIL",e.EMAIL_MODIFY_EMAIL_SEND_OLD_EMAIL="MODIFY_EMAIL_SEND_OLD_EMAIL",e.PHONE_MODIFY_EMAIL_SEND_PHONE_CODE="MODIFY_EMAIL_SEND_PHONE_CODE",e.EMAIL_MODIFY_EMAIL_SEND_NEW_EMAIL="MODIFY_EMAIL_SEND_NEW_EMAIL",e.PHONE_ADD_CORP_SEND_PHONE_CODE="ADD_CORP_SEND_PHONE_CODE",e.EMAIL_ADD_CORP_SEND_EMAIL_CODE="ADD_CORP_SEND_EMAIL_CODE",e.PHONE_LOGIN_BY_PHONE_CODE="LOGIN_BY_PHONE_CODE",e.PHONE_SEND_LOGIN_BY_PHONE_CODE="SEND_LOGIN_BY_PHONE_CODE",e.EMAIL_LOGIN_BY_EMAIL_CODE="LOGIN_BY_EMAIL_CODE",e.EMAIL_SEND_LOGIN_BY_EMAIL_CODE="SEND_LOGIN_BY_EMAIL_CODE"}(v||(v={})),function(e){e.List="LIST",e.Object="OBJECT"}(F||(F={})),function(e){e.PC="PC",e.MOBILE="MOBILE"}(b||(b={})),function(e){e.Table="TABLE",e.Form="FORM",e.Detail="DETAIL",e.Search="SEARCH",e.Gallery="GALLERY",e.Tree="TREE",e.Multiple="MULTIPLE",e.Custom="CUSTOM"}(U||(U={})),function(e){e.Create="CREATE",e.Editor="EDITOR",e.Lookup="LOOKUP"}(w||(w={})),function(e){e.Router="ROUTER",e.Dialog="DIALOG",e.Drawer="DRAWER",e.Inner="INNER",e.OpenWindow="OPEN_WINDOW",e.Frame="iframe"}(B||(B={})),function(e){e.SYSTEM="SYSTEM",e.BASE="BASE",e.MANUAL="MANUAL",e.UI="UI",e.RELATION="RELATION",e.ABSTRACT_INHERITED="ABSTRACT_INHERITED",e.TRANSIENT_INHERITED="TRANSIENT_INHERITED",e.EXTEND_INHERITED="EXTEND_INHERITED",e.MULTI_TABLE_INHERITED="MULTI_TABLE_INHERITED",e.PROXY_INHERITED="PROXY_INHERITED"}(H||(H={}));const V={BASE:"base",GROUPING:"grouping",COMMON:"common",USER:"user",AUTH:"auth",MESSAGE:"message",RESOURCE:"resource",FILE:"file",EIP:"eip",DESIGNER_COMMON:"designer_common"},G={BASE:"base",GROUPING:"grouping",COMMON:"common",USER:"user",AUTH:"auth",MESSAGE:"message",RESOURCE:"resource",FILE:"file",EIP:"eip",DESIGNER_COMMON:"designerCommon"},Y="id =notnull= true",x=t`
16
2
  fragment ViewAction on ViewAction {
17
3
  id
18
4
  name
@@ -37,7 +23,7 @@ PERFORMANCE OF THIS SOFTWARE.
37
23
  priority
38
24
  attributes
39
25
  }
40
- `,it=qe`
26
+ `,k=t`
41
27
  fragment UrlAction on UrlAction {
42
28
  id
43
29
  name
@@ -56,7 +42,7 @@ PERFORMANCE OF THIS SOFTWARE.
56
42
  context
57
43
  priority
58
44
  }
59
- `,rt=qe`
45
+ `,W=t`
60
46
  fragment ServerAction on ServerAction {
61
47
  id
62
48
  name
@@ -81,7 +67,7 @@ PERFORMANCE OF THIS SOFTWARE.
81
67
  }
82
68
  }
83
69
  }
84
- `,ot=qe`
70
+ `,J=t`
85
71
  fragment ClientAction on ClientAction {
86
72
  id
87
73
  name
@@ -98,7 +84,7 @@ PERFORMANCE OF THIS SOFTWARE.
98
84
  priority
99
85
  fun
100
86
  }
101
- `,at=qe`
87
+ `,j=t`
102
88
  fragment Field on Field {
103
89
  id
104
90
  name
@@ -135,7 +121,7 @@ PERFORMANCE OF THIS SOFTWARE.
135
121
  }
136
122
  attributes
137
123
  }
138
- `,st=qe`
124
+ `,q=t`
139
125
  fragment Func on Function {
140
126
  type
141
127
  namespace
@@ -151,7 +137,7 @@ PERFORMANCE OF THIS SOFTWARE.
151
137
  model
152
138
  }
153
139
  }
154
- `,ct=qe`
140
+ `,X=t`
155
141
  fragment View on View {
156
142
  id
157
143
  name
@@ -163,7 +149,7 @@ PERFORMANCE OF THIS SOFTWARE.
163
149
  priority
164
150
  systemSource
165
151
  }
166
- `,lt={Model:qe`
152
+ `,K={Model:t`
167
153
  fragment Model on Model {
168
154
  id
169
155
  pk
@@ -201,14 +187,14 @@ PERFORMANCE OF THIS SOFTWARE.
201
187
  ...Func
202
188
  }
203
189
  }
204
- ${at}
205
- ${nt}
206
- ${rt}
207
- ${it}
208
- ${ot}
209
- ${ct}
210
- ${st}
211
- `,ModelWithFields:qe`
190
+ ${j}
191
+ ${x}
192
+ ${W}
193
+ ${k}
194
+ ${J}
195
+ ${X}
196
+ ${q}
197
+ `,ModelWithFields:t`
212
198
  fragment ModelWithFields on Model {
213
199
  id
214
200
  pk
@@ -228,8 +214,8 @@ PERFORMANCE OF THIS SOFTWARE.
228
214
  ...Field
229
215
  }
230
216
  }
231
- ${at}
232
- `,Field:at,UrlAction:it,ServerAction:rt,ViewAction:nt,ClientAction:ot,Action:qe`
217
+ ${j}
218
+ `,Field:j,UrlAction:k,ServerAction:W,ViewAction:x,ClientAction:J,Action:t`
233
219
  fragment Action on Action {
234
220
  id
235
221
  name
@@ -246,7 +232,7 @@ PERFORMANCE OF THIS SOFTWARE.
246
232
  priority
247
233
  attributes
248
234
  }
249
- `,Menu:qe`
235
+ `,Menu:t`
250
236
  fragment Menu on Menu {
251
237
  serverAction {
252
238
  ...ServerAction
@@ -272,10 +258,10 @@ PERFORMANCE OF THIS SOFTWARE.
272
258
  id
273
259
  }
274
260
  }
275
- ${rt}
276
- ${nt}
277
- ${it}
278
- `,View:ct,Func:st},ut="...FuncV3",pt=qe`
261
+ ${W}
262
+ ${x}
263
+ ${k}
264
+ `,View:X,Func:q},Q="...FuncV3",z=t`
279
265
  fragment FuncV3 on Function {
280
266
  type
281
267
  namespace
@@ -293,7 +279,7 @@ PERFORMANCE OF THIS SOFTWARE.
293
279
  model
294
280
  }
295
281
  }
296
- `,dt="...ModelV3",ft=qe`
282
+ `,Z="...ModelV3",ee=t`
297
283
  fragment ModelV3 on ModelDefinition {
298
284
  id
299
285
  model
@@ -306,18 +292,18 @@ PERFORMANCE OF THIS SOFTWARE.
306
292
  indexes
307
293
  ordering
308
294
  }
309
- `,ht="...ModuleV3",Et=qe`
295
+ `,ne="...ModuleV3",te=t`
310
296
  fragment ModuleV3 on ModuleDefinition {
311
297
  module
312
298
  name
313
299
  displayName
314
300
  }
315
- `,mt="...MaskV3",Nt=qe`
301
+ `,ie="...MaskV3",oe=t`
316
302
  fragment MaskV3 on MaskDefinition {
317
303
  name
318
304
  template
319
305
  }
320
- `,Tt="...ViewV3",Ot=qe`
306
+ `,ae="...ViewV3",re=t`
321
307
  fragment ViewV3 on View {
322
308
  id
323
309
  model
@@ -337,13 +323,13 @@ PERFORMANCE OF THIS SOFTWARE.
337
323
  ${"...LayoutV3"}
338
324
  }
339
325
  }
340
- ${qe`
326
+ ${t`
341
327
  fragment LayoutV3 on LayoutDefinition {
342
328
  name
343
329
  template
344
330
  }
345
331
  `}
346
- `,It={Module:Et,Model:ft,ViewAction:qe`
332
+ `,le={Module:te,Model:ee,ViewAction:t`
347
333
  fragment ViewActionV3 on ViewAction {
348
334
  id
349
335
  name
@@ -362,36 +348,36 @@ PERFORMANCE OF THIS SOFTWARE.
362
348
  model
363
349
  modelName
364
350
  modelDefinition {
365
- ${dt}
351
+ ${Z}
366
352
  }
367
353
  module
368
354
  moduleName
369
355
  moduleDefinition {
370
- ${ht}
356
+ ${ne}
371
357
  }
372
358
  resModel
373
359
  resModelDefinition {
374
- ${dt}
360
+ ${Z}
375
361
  }
376
362
  resModule
377
363
  resModuleName
378
364
  resModuleDefinition {
379
- ${ht}
365
+ ${ne}
380
366
  }
381
367
  mask
382
368
  maskDefinition {
383
- ${mt}
369
+ ${ie}
384
370
  }
385
371
  resViewName
386
372
  resView {
387
- ${Tt}
373
+ ${ae}
388
374
  }
389
375
  }
390
- ${ft}
391
- ${Et}
392
- ${Nt}
393
- ${Ot}
394
- `,SharedViewAction:qe`
376
+ ${ee}
377
+ ${te}
378
+ ${oe}
379
+ ${re}
380
+ `,SharedViewAction:t`
395
381
  fragment SharedPageViewActionV3 on SharedPageViewAction {
396
382
  id
397
383
  name
@@ -414,36 +400,36 @@ PERFORMANCE OF THIS SOFTWARE.
414
400
  model
415
401
  modelName
416
402
  modelDefinition {
417
- ${dt}
403
+ ${Z}
418
404
  }
419
405
  module
420
406
  moduleName
421
407
  moduleDefinition {
422
- ${ht}
408
+ ${ne}
423
409
  }
424
410
  resModel
425
411
  resModelDefinition {
426
- ${dt}
412
+ ${Z}
427
413
  }
428
414
  resModule
429
415
  resModuleName
430
416
  resModuleDefinition {
431
- ${ht}
417
+ ${ne}
432
418
  }
433
419
  mask
434
420
  maskDefinition {
435
- ${mt}
421
+ ${ie}
436
422
  }
437
423
  resViewName
438
424
  resView {
439
- ${Tt}
425
+ ${ae}
440
426
  }
441
427
  }
442
- ${ft}
443
- ${Et}
444
- ${Nt}
445
- ${Ot}
446
- `,ServerAction:qe`
428
+ ${ee}
429
+ ${te}
430
+ ${oe}
431
+ ${re}
432
+ `,ServerAction:t`
447
433
  fragment ServerActionV3 on ServerAction {
448
434
  id
449
435
  name
@@ -460,12 +446,12 @@ PERFORMANCE OF THIS SOFTWARE.
460
446
  priority
461
447
  fun
462
448
  functionDefinition {
463
- ${ut}
449
+ ${Q}
464
450
  }
465
451
  }
466
452
 
467
- ${pt}
468
- `,UrlAction:qe`
453
+ ${z}
454
+ `,UrlAction:t`
469
455
  fragment UrlActionV3 on UrlAction {
470
456
  id
471
457
  name
@@ -484,7 +470,7 @@ PERFORMANCE OF THIS SOFTWARE.
484
470
  context
485
471
  priority
486
472
  }
487
- `,View:Ot,Function:pt},yt={Module:ht,Model:dt,ViewAction:"...ViewActionV3",SharedViewAction:"...SharedPageViewActionV3",ServerAction:"...ServerActionV3",UrlAction:"...UrlActionV3",View:Tt,Function:ut};function _t(e,t){e.onload=At(e.src,t),e.onerror=Dt(e.src,t)}function At(e,t){return()=>{t()}}function Dt(e,t){return()=>{t(),console.error(`load error. ${e}`)}}let vt=0;class St{constructor(){}load(e){return c(this,void 0,void 0,function*(){const{id:t,path:n,dependencies:i}=e;if(!document.getElementById(t))return i&&(yield this.loadDependencies(i)),new Promise(e=>{const i=document.createElement("script");i.id=t,i.src=n,i.type="module",_t(i,e),document.body.append(i)})})}loadDependencies(e){return c(this,void 0,void 0,function*(){const t={};if(Object.entries(e).forEach(([e,n])=>{"string"==typeof n&&(t[e]=n)}),Object.keys(t).length)return new Promise(e=>{const n=document.createElement("script");n.id="import-map-"+vt++,n.type="importmap",n.text=JSON.stringify({imports:t}),_t(n,e),document.body.append(n)})})}}St.INSTANCE=new St;class gt{constructor(){}load(e){return St.INSTANCE.load(e)}loadDependencies(e){return St.INSTANCE.loadDependencies(e)}}gt.INSTANCE=new gt;class Mt{constructor(){}load(e){return c(this,void 0,void 0,function*(){const{id:t,path:n}=e;if(!document.getElementById(t))return new Promise(e=>{const i=document.createElement("link");i.id=t,i.href=n,i.rel="stylesheet",i.type="text/css",function(e,t){e.onload=At(e.href,t),e.onerror=Dt(e.href,t)}(i,e),document.body.append(i)})})}loadDependencies(){return c(this,void 0,void 0,function*(){})}}Mt.INSTANCE=new Mt;class Lt{load(e){return c(this,void 0,void 0,function*(){const{id:t,path:n,dependencies:i}=e;if(!document.getElementById(t))return i&&(yield this.loadDependencies(i)),new Promise(e=>{const i=document.createElement("script");i.id=t,i.src=n,i.type="text/javascript",_t(i,e),document.body.append(i)})})}loadDependencies(e){return c(this,void 0,void 0,function*(){if(!e)return;const t=window;yield Promise.allSettled(Object.entries(e).map(([e,n])=>c(this,void 0,void 0,function*(){if(void 0===t[e]){let i;i="string"==typeof n?yield import(n):yield n,i||(i=null),void 0===t[e]&&(t[e]=i)}})))})}}Lt.INSTANCE=new Lt;class Ct{constructor(){}load(e){return Lt.INSTANCE.load(e)}loadDependencies(e){return Lt.INSTANCE.loadDependencies(e)}}Ct.INSTANCE=new Ct;class bt{static get(e){switch(e){case"esm":return St.INSTANCE;case"cjs":return gt.INSTANCE;case"umd":return Lt.INSTANCE;case"iife":return Ct.INSTANCE;case"css":return Mt.INSTANCE}}}class Rt{static load(e){return c(this,void 0,void 0,function*(){yield Promise.allSettled(e.map(e=>{var t;return null===(t=bt.get(e.type))||void 0===t?void 0:t.load(e)}))})}static loadDependencies(e,t){var n;return c(this,void 0,void 0,function*(){yield null===(n=bt.get(e))||void 0===n?void 0:n.loadDependencies(t)})}}let xt=1;function kt(e){return!!e}class Pt{constructor(){}static loadDependencies(e){return c(this,void 0,void 0,function*(){let t;t=Array.isArray(e)?e:[{type:"umd",dependencies:e}],yield Promise.allSettled(t.map(e=>Rt.loadDependencies(e.type,e.dependencies)))})}static loadJavascript(e){return Rt.load(e.map(e=>"string"==typeof e?{id:"plugin-"+xt++,type:"umd",path:e}:e.path?{id:"plugin-"+xt++,type:e.type||"umd",path:e.path}:void console.error("Invalid javascript plugin.",e)).filter(kt))}static loadCSS(e){return Rt.load(e.map(e=>({id:"plugin-css-"+xt++,type:"css",path:e})))}}const Ft=e.getInstance();class wt{load(){return c(this,void 0,void 0,function*(){let e=this.cache;if(void 0===e&&(e=yield function(){return c(this,void 0,void 0,function*(){const e=t`
473
+ `,View:re,Function:z},de={Module:ne,Model:Z,ViewAction:"...ViewActionV3",SharedViewAction:"...SharedPageViewActionV3",ServerAction:"...ServerActionV3",UrlAction:"...UrlActionV3",View:ae,Function:Q};function se(e,n){e.onload=ce(e.src,n),e.onerror=ue(e.src,n)}function ce(e,n){return()=>{n()}}function ue(e,n){return()=>{n(),console.error(`load error. ${e}`)}}let Ee=0;class ESMPluginLoader{constructor(){}load(e){return o(this,void 0,void 0,function*(){const{id:n,path:t,dependencies:i}=e;if(!document.getElementById(n))return i&&(yield this.loadDependencies(i)),new Promise(e=>{const i=document.createElement("script");i.id=n,i.src=t,i.type="module",se(i,e),document.body.append(i)})})}loadDependencies(e){return o(this,void 0,void 0,function*(){const n={};if(Object.entries(e).forEach(([e,t])=>{"string"==typeof t&&(n[e]=t)}),Object.keys(n).length)return new Promise(e=>{const t=document.createElement("script");t.id="import-map-"+Ee++,t.type="importmap",t.text=JSON.stringify({imports:n}),se(t,e),document.body.append(t)})})}}ESMPluginLoader.INSTANCE=new ESMPluginLoader;class CJSPluginLoader{constructor(){}load(e){return ESMPluginLoader.INSTANCE.load(e)}loadDependencies(e){return ESMPluginLoader.INSTANCE.loadDependencies(e)}}CJSPluginLoader.INSTANCE=new CJSPluginLoader;class CSSPluginLoader{constructor(){}load(e){return o(this,void 0,void 0,function*(){const{id:n,path:t}=e;if(!document.getElementById(n))return new Promise(e=>{const i=document.createElement("link");i.id=n,i.href=t,i.rel="stylesheet",i.type="text/css",function(e,n){e.onload=ce(e.href,n),e.onerror=ue(e.href,n)}(i,e),document.body.append(i)})})}loadDependencies(){return o(this,void 0,void 0,function*(){})}}CSSPluginLoader.INSTANCE=new CSSPluginLoader;class UMDPluginLoader{load(e){return o(this,void 0,void 0,function*(){const{id:n,path:t,dependencies:i}=e;if(!document.getElementById(n))return i&&(yield this.loadDependencies(i)),new Promise(e=>{const i=document.createElement("script");i.id=n,i.src=t,i.type="text/javascript",se(i,e),document.body.append(i)})})}loadDependencies(e){return o(this,void 0,void 0,function*(){if(!e)return;const n=window;yield Promise.allSettled(Object.entries(e).map(e=>o(this,[e],void 0,function*([e,t]){if(void 0===n[e]){let i;i="string"==typeof t?yield import(t):yield t,i||(i=null),void 0===n[e]&&(n[e]=i)}})))})}}UMDPluginLoader.INSTANCE=new UMDPluginLoader;class IIFEPluginLoader{constructor(){}load(e){return UMDPluginLoader.INSTANCE.load(e)}loadDependencies(e){return UMDPluginLoader.INSTANCE.loadDependencies(e)}}IIFEPluginLoader.INSTANCE=new IIFEPluginLoader;class PluginLoaderFactory{static get(e){switch(e){case"esm":return ESMPluginLoader.INSTANCE;case"cjs":return CJSPluginLoader.INSTANCE;case"umd":return UMDPluginLoader.INSTANCE;case"iife":return IIFEPluginLoader.INSTANCE;case"css":return CSSPluginLoader.INSTANCE}}}class PluginLoader{static load(e){return o(this,void 0,void 0,function*(){yield Promise.allSettled(e.map(e=>{var n;return null===(n=PluginLoaderFactory.get(e.type))||void 0===n?void 0:n.load(e)}))})}static loadDependencies(e,n){return o(this,void 0,void 0,function*(){var t;yield null===(t=PluginLoaderFactory.get(e))||void 0===t?void 0:t.loadDependencies(n)})}}let me=1;function Oe(e){return!!e}class PluginLoadHelper{constructor(){}static loadDependencies(e){return o(this,void 0,void 0,function*(){let n;n=Array.isArray(e)?e:[{type:"umd",dependencies:e}],yield Promise.allSettled(n.map(e=>PluginLoader.loadDependencies(e.type,e.dependencies)))})}static loadJavascript(e){return PluginLoader.load(e.map(e=>"string"==typeof e?{id:"plugin-"+me++,type:"umd",path:e}:e.path?{id:"plugin-"+me++,type:e.type||"umd",path:e.path}:void console.error("Invalid javascript plugin.",e)).filter(Oe))}static loadCSS(e){return PluginLoader.load(e.map(e=>({id:"plugin-css-"+me++,type:"css",path:e})))}}const pe=e.getInstance();class RemotePluginLoader{load(){return o(this,void 0,void 0,function*(){let e=this.cache;if(void 0===e&&(e=yield function(){return o(this,void 0,void 0,function*(){const e=n`
488
474
  {
489
475
  widgetDefinitionQuery {
490
476
  loadSDK(data: {}) {
@@ -493,4 +479,4 @@ PERFORMANCE OF THIS SOFTWARE.
493
479
  }
494
480
  }
495
481
  }
496
- `;try{return(yield Ft.query(V.BASE,e)).data.widgetDefinitionQuery.loadSDK}catch(e){return void console.error("remote plugin load error.",e)}})}(),e||(e=null),this.cache=e),e){const{javascript:t,css:n}=e,i=[];t&&i.push(Pt.loadJavascript(t)),n&&i.push(Pt.loadCSS(n)),yield Promise.allSettled(i)}})}}wt.INSTANCE=new wt;class Bt{static load(e,t){return c(this,void 0,void 0,function*(){const{dependencies:n,mounted:i,usingRemote:r}=e;if(t&&(yield Pt.loadDependencies(t)),n&&(yield Pt.loadDependencies(n)),i)if(Array.isArray(i))yield Pt.loadJavascript(i);else{const{js:e,css:t}=i;e&&(yield Pt.loadJavascript(e)),t&&(yield Pt.loadCSS(t))}r&&(yield wt.INSTANCE.load())})}}class $t{static resister(e){this._config=e}static getConfig(){return this._config}static getConfigByName(e){return"login"===e?this._config.login||this.defaultLoginPath:this._config[e]}}$t.defaultLoginPath="/login",$t._config={};const Ut="runtimeConfigResolve",Vt={init:!1,updateTime:new Date,value:{}};class Gt{static init(e){return c(this,void 0,void 0,function*(){if(!Vt.init)return function(){if(Vt.init)return;if(Reflect.get(window,Ut))return;return new Promise(e=>{Reflect.set(window,Ut,t=>{e(t),Reflect.deleteProperty(window,Ut)});const t=document.createElement("script");t.src=`${process.env.RUNTIME_CONFIG_BASE_URL||""}/${process.env.RUNTIME_CONFIG_FILENAME||"manifest"}.js`;const n=function(e){return()=>{e({}),Reflect.deleteProperty(window,Ut)}}(e);t.onload=n,t.onerror=n,document.body.appendChild(t)}).then(e=>c(this,void 0,void 0,function*(){Vt.updateTime=new Date,Vt.value=e})).finally(()=>{Vt.init=!0})}()})}static get(){return Vt.init?Vt.value||{}:("development"===process.env.NODE_ENV&&console.warn("runtime config is not init."),{})}static getConfig(e){return Gt.get()[e]}}function Yt(e){return null==e?e:JSON.parse(JSON.stringify(e))}n.register({name:"runtimeConfig",priority:90},{getConfig:Gt.getConfig});const jt=e=>e?Array.isArray(e)?null:Yt(e):{},Ht=e=>e&&e.children?e.children.filter(e=>e.tagName===R.PROP).map(e=>({name:e.name,textContent:e.textContent})):[],Kt=e=>e?Yt(e):{},Jt=e=>e&&e.children?e.children.filter(e=>e.tagName===R.FIELD).map(e=>({name:e.name,textContent:e.textContent,children:Jt(e)})):[],Wt=(e,t)=>{if(!t)return{};const n=Yt(e);if(t.children&&t.children.find(e=>e.tagName===R.API&&e.name===n.submitApi)||null){const e=qt(t,n.submitApi);if(!e)return{};n.api=e}return n},qt=(e,t,n)=>{const i=e.children&&e.children.find(e=>e.tagName===R.API&&e.name===t)||null;if(!i)return console.warn(`api not fund: ${t}`,e),null;const r=Yt(i);return r.fun||console.warn(`api fun not fund: ${t}`,e),r.type||console.warn(`api type not fund: ${t}`,e),r.context={props:Ht(i.children.find(e=>e.tagName===R.CONTEXT))},r.request={fields:Xt(Jt(i.children.find(e=>e.tagName===R.REQUEST)),n)},r.response={fields:Xt(Jt(i.children.find(e=>e.tagName===R.RESPONSE)),n)},r.clear={fields:Jt(i.children.find(e=>e.tagName===R.CLEAR))},r};function Xt(e,t){return e&&e.length?e:(t||[]).map(e=>zt(e))}const Qt=e=>({name:e.data,ttype:e.ttype,references:e.references,relatedTtype:e.relatedTtype}),zt=e=>({data:e.name,name:e.name,ttype:e.ttype,references:e.references,relatedTtype:e.relatedTtype});function Zt(e){return!!e&&"function"==typeof e.then}const en=e=>{switch(e.ttype){case a.Boolean:case a.Integer:case a.Long:case a.Float:case a.Currency:case a.String:case a.Email:case a.Phone:case a.ID:case a.Date:case a.DateTime:case a.Time:case a.Year:case a.Enum:case a.MultiEnum:case a.HTML:case a.Map:case a.Text:return!0;default:return!1}},tn=e=>[a.OneToOne,a.OneToMany,a.ManyToOne,a.ManyToMany].includes(e),nn=e=>[a.Date,a.DateTime,a.Year,a.Time].includes(e),rn=e=>[a.ID,a.UID,a.Integer,a.Long,a.Float,a.Currency].includes(e),on=e=>[a.String,a.Text,a.HTML,a.Phone,a.Email].includes(e),an=e=>e===a.Boolean,sn=e=>e===a.Enum,cn=e=>{if(!1===e||0===e)return!1;if(!e)return!0;if(e instanceof Object){if(0===Object.keys(e||{}).length)return!0;return 0===Object.keys(e||{}).filter(e=>!e.startsWith("_")).length}return!(!Array.isArray(e)||0!==e.length)},ln=e=>cn(e)||Array.isArray(e)&&0===e.length,un=e=>null==e||""===e||Array.isArray(e)&&0===e.length||"object"==typeof e&&0===Object.keys(e).length;export{C as ActionCompositionType,O as ActionContextType,I as ActionFunctionType,T as ActionType,b as ActionValidationScope,i as ActiveEnum,f as ApiProtocol,G as BASE_RSQL_QUERY_CONDITION,A as ClientActionName,k as DataClass,r as DataStatusEnum,h as DataType,R as ElementType,d as EnumOptionState,$t as GlobalConfig,_ as IActionTag,E as LoadType,lt as MetadataFragment,It as MetadataRuntimeFragment,yt as MetadataRuntimeFragmentName,y as ModelActionType,D as ModelDefaultActionName,L as ModelDefaultActionNames,p as ModelFieldSerializeType,a as ModelFieldType,l as ModelFieldTypeDisplayName,u as ModelFieldTypeOptions,o as ModelType,Bt as PluginsLoader,N as QueryType,Gt as RuntimeConfig,U as SYSTEM_MODULE,V as SYSTEM_MODULE_NAME,$ as SystemSource,x as UserBehaviorEventEnum,m as ValidationScope,B as ViewActionTarget,P as ViewClientType,w as ViewMode,F as ViewType,Wt as createActionElement,qt as createApiElement,Kt as createFieldElement,Jt as createFieldElements,Ht as createPropElements,jt as createViewElement,Yt as deepClone,Qt as fieldElement2ModelField,an as isBooleanTtype,tn as isComplexTtype,nn as isDateTtype,cn as isEmptyKeObject,un as isEmptyValue,sn as isEnumTtype,rn as isNumberTtype,Zt as isPromise,M as isRelatedTtype,v as isRelationTtype,en as isSimpleField,on as isStringTtype,g as isToManyTtype,S as isToOneTtype,ln as isValidateEmpty,zt as modelField2fieldElement};
482
+ `;try{return(yield pe.query(G.BASE,e)).data.widgetDefinitionQuery.loadSDK}catch(e){return void console.error("remote plugin load error.",e)}})}(),e||(e=null),this.cache=e),e){const{javascript:n,css:t}=e,i=[];n&&i.push(PluginLoadHelper.loadJavascript(n)),t&&i.push(PluginLoadHelper.loadCSS(t)),yield Promise.allSettled(i)}})}}RemotePluginLoader.INSTANCE=new RemotePluginLoader;class PluginsLoader{static load(e,n){return o(this,void 0,void 0,function*(){const{dependencies:t,mounted:i,usingRemote:o}=e;if(n&&(yield PluginLoadHelper.loadDependencies(n)),t&&(yield PluginLoadHelper.loadDependencies(t)),i)if(Array.isArray(i))yield PluginLoadHelper.loadJavascript(i);else{const{js:e,css:n}=i;e&&(yield PluginLoadHelper.loadJavascript(e)),n&&(yield PluginLoadHelper.loadCSS(n))}o&&(yield RemotePluginLoader.INSTANCE.load())})}}class GlobalConfig{static resister(e){this._config=e}static getConfig(){return this._config}static getConfigByName(e){return"login"===e?this._config.login||this.defaultLoginPath:this._config[e]}}GlobalConfig.defaultLoginPath="/login",GlobalConfig._config={};const Ie="runtimeConfigResolve",De={init:!1,updateTime:new Date,value:{}};class RuntimeConfig{static init(e){return o(this,void 0,void 0,function*(){if(!De.init)return function(){if(De.init)return;if(Reflect.get(window,Ie))return;return new Promise(e=>{Reflect.set(window,Ie,n=>{e(n),Reflect.deleteProperty(window,Ie)});const n=document.createElement("script");n.src=`${process.env.RUNTIME_CONFIG_BASE_URL||""}/${process.env.RUNTIME_CONFIG_FILENAME||"manifest"}.js`;const t=function(e){return()=>{e({}),Reflect.deleteProperty(window,Ie)}}(e);n.onload=t,n.onerror=t,document.body.appendChild(n)}).then(e=>o(this,void 0,void 0,function*(){De.updateTime=new Date,De.value=e})).finally(()=>{De.init=!0})}()})}static get(){return De.init?De.value||{}:(console.warn("runtime config is not init."),{})}static getConfig(e){return RuntimeConfig.get()[e]}}function Ne(e){return null==e?e:JSON.parse(JSON.stringify(e))}i.register({name:"runtimeConfig",priority:90},{getConfig:RuntimeConfig.getConfig});const Ae=e=>e?Array.isArray(e)?null:Ne(e):{},Te=e=>e&&e.children?e.children.filter(e=>e.tagName===h.PROP).map(e=>({name:e.name,textContent:e.textContent})):[],Me=e=>e?Ne(e):{},_e=e=>e&&e.children?e.children.filter(e=>e.tagName===h.FIELD).map(e=>({name:e.name,textContent:e.textContent,children:_e(e)})):[],fe=(e,n)=>{if(!n)return{};const t=Ne(e);if(n.children&&n.children.find(e=>e.tagName===h.API&&e.name===t.submitApi)||null){const e=ge(n,t.submitApi);if(!e)return{};t.api=e}return t},ge=(e,n,t)=>{const i=e.children&&e.children.find(e=>e.tagName===h.API&&e.name===n)||null;if(!i)return console.warn(`api not fund: ${n}`,e),null;const o=Ne(i);return o.fun||console.warn(`api fun not fund: ${n}`,e),o.type||console.warn(`api type not fund: ${n}`,e),o.context={props:Te(i.children.find(e=>e.tagName===h.CONTEXT))},o.request={fields:Le(_e(i.children.find(e=>e.tagName===h.REQUEST)),t)},o.response={fields:Le(_e(i.children.find(e=>e.tagName===h.RESPONSE)),t)},o.clear={fields:_e(i.children.find(e=>e.tagName===h.CLEAR))},o};function Le(e,n){return e&&e.length?e:(n||[]).map(e=>ye(e))}const Se=e=>({name:e.data,ttype:e.ttype,references:e.references,relatedTtype:e.relatedTtype}),ye=e=>({data:e.name,name:e.name,ttype:e.ttype,references:e.references,relatedTtype:e.relatedTtype});function Ce(e){return!!e&&"function"==typeof e.then}const Pe=e=>{switch(e.ttype){case d.Boolean:case d.Integer:case d.Long:case d.Float:case d.Currency:case d.String:case d.Email:case d.Phone:case d.ID:case d.Date:case d.DateTime:case d.Time:case d.Year:case d.Enum:case d.MultiEnum:case d.HTML:case d.Map:case d.Text:return!0;default:return!1}},$e=e=>[d.OneToOne,d.OneToMany,d.ManyToOne,d.ManyToMany].includes(e),Re=e=>[d.Date,d.DateTime,d.Year,d.Time].includes(e),he=e=>[d.ID,d.UID,d.Integer,d.Long,d.Float,d.Currency].includes(e),ve=e=>[d.String,d.Text,d.HTML,d.Phone,d.Email].includes(e),Fe=e=>e===d.Boolean,be=e=>e===d.Enum,Ue=e=>{if(!1===e||0===e)return!1;if(!e)return!0;if(e instanceof Object){if(0===Object.keys(e||{}).length)return!0;return 0===Object.keys(e||{}).filter(e=>!e.startsWith("_")).length}return!(!Array.isArray(e)||0!==e.length)},we=e=>Ue(e)||Array.isArray(e)&&0===e.length,Be=e=>null==e||""===e||Array.isArray(e)&&0===e.length||"object"==typeof e&&0===Object.keys(e).length;export{$ as ActionCompositionType,A as ActionContextType,T as ActionFunctionType,N as ActionType,R as ActionValidationScope,a as ActiveEnum,m as ApiProtocol,Y as BASE_RSQL_QUERY_CONDITION,f as ClientActionName,F as DataClass,r as DataStatusEnum,O as DataType,h as ElementType,E as EnumOptionState,GlobalConfig,_ as IActionTag,p as LoadType,K as MetadataFragment,le as MetadataRuntimeFragment,de as MetadataRuntimeFragmentName,M as ModelActionType,g as ModelDefaultActionName,P as ModelDefaultActionNames,u as ModelFieldSerializeType,d as ModelFieldType,s as ModelFieldTypeDisplayName,c as ModelFieldTypeOptions,l as ModelType,PluginsLoader,D as QueryType,RuntimeConfig,V as SYSTEM_MODULE,G as SYSTEM_MODULE_NAME,H as SystemSource,v as UserBehaviorEventEnum,I as ValidationScope,B as ViewActionTarget,b as ViewClientType,w as ViewMode,U as ViewType,fe as createActionElement,ge as createApiElement,Me as createFieldElement,_e as createFieldElements,Te as createPropElements,Ae as createViewElement,Ne as deepClone,Se as fieldElement2ModelField,Fe as isBooleanTtype,$e as isComplexTtype,Re as isDateTtype,Ue as isEmptyKeObject,Be as isEmptyValue,be as isEnumTtype,he as isNumberTtype,Ce as isPromise,C as isRelatedTtype,L as isRelationTtype,Pe as isSimpleField,ve as isStringTtype,y as isToManyTtype,S as isToOneTtype,we as isValidateEmpty,ye as modelField2fieldElement};
@@ -1 +1 @@
1
- export * from './src';
1
+ export * from './src';
@@ -1,15 +1,15 @@
1
- import { IBaseElement } from './IBaseElement';
2
- import { ApiElement } from './ApiElement';
3
- /**
4
- * 动作按钮
5
- */
6
- interface ActionElement extends IBaseElement {
7
- displayName: string;
8
- model: string;
9
- refs: string;
10
- rule: string;
11
- type: string;
12
- submitApi: string;
13
- api: ApiElement;
14
- }
15
- export { ActionElement };
1
+ import { IBaseElement } from './IBaseElement';
2
+ import { ApiElement } from './ApiElement';
3
+ /**
4
+ * 动作按钮
5
+ */
6
+ interface ActionElement extends IBaseElement {
7
+ displayName: string;
8
+ model: string;
9
+ refs: string;
10
+ rule: string;
11
+ type: string;
12
+ submitApi: string;
13
+ api: ApiElement;
14
+ }
15
+ export { ActionElement };
@@ -1,21 +1,21 @@
1
- import { IBaseElement } from './IBaseElement';
2
- import { LoadType } from '../metadata';
3
- import { ContextElement } from './ContextElement';
4
- import { RequestElement } from './RequestElement';
5
- import { ResponseElement } from './ResponseElement';
6
- import { ClearElement } from './ClearElement';
7
- import { ValidationElement } from './ValidationElement';
8
- /**
9
- * 自定义api
10
- */
11
- interface ApiElement extends IBaseElement {
12
- model: string;
13
- fun: string;
14
- type: LoadType;
15
- context: ContextElement;
16
- request: RequestElement;
17
- response: ResponseElement;
18
- clear: ClearElement;
19
- validation: ValidationElement;
20
- }
21
- export { ApiElement };
1
+ import { IBaseElement } from './IBaseElement';
2
+ import { LoadType } from '../metadata';
3
+ import { ContextElement } from './ContextElement';
4
+ import { RequestElement } from './RequestElement';
5
+ import { ResponseElement } from './ResponseElement';
6
+ import { ClearElement } from './ClearElement';
7
+ import { ValidationElement } from './ValidationElement';
8
+ /**
9
+ * 自定义api
10
+ */
11
+ interface ApiElement extends IBaseElement {
12
+ model: string;
13
+ fun: string;
14
+ type: LoadType;
15
+ context: ContextElement;
16
+ request: RequestElement;
17
+ response: ResponseElement;
18
+ clear: ClearElement;
19
+ validation: ValidationElement;
20
+ }
21
+ export { ApiElement };
@@ -1,9 +1,9 @@
1
- import { IBaseElement } from './IBaseElement';
2
- import { FieldElement } from './FieldElement';
3
- /**
4
- * 待响应后清理的字段
5
- */
6
- interface ClearElement extends IBaseElement {
7
- fields: FieldElement[];
8
- }
9
- export { ClearElement };
1
+ import { IBaseElement } from './IBaseElement';
2
+ import { FieldElement } from './FieldElement';
3
+ /**
4
+ * 待响应后清理的字段
5
+ */
6
+ interface ClearElement extends IBaseElement {
7
+ fields: FieldElement[];
8
+ }
9
+ export { ClearElement };
@@ -1,6 +1,6 @@
1
- import { IBaseElement } from './IBaseElement';
2
- /**
3
- * 配置
4
- */
5
- declare type ConfigElement = IBaseElement;
6
- export { ConfigElement };
1
+ import { IBaseElement } from './IBaseElement';
2
+ /**
3
+ * 配置
4
+ */
5
+ type ConfigElement = IBaseElement;
6
+ export { ConfigElement };
@@ -1,9 +1,9 @@
1
- import { IBaseElement } from './IBaseElement';
2
- import { PropElement } from './PropElement';
3
- /**
4
- * 上下文,提交数据的时候会转换为variables参数放在请求中
5
- */
6
- interface ContextElement extends IBaseElement {
7
- props: PropElement[];
8
- }
9
- export { ContextElement };
1
+ import { IBaseElement } from './IBaseElement';
2
+ import { PropElement } from './PropElement';
3
+ /**
4
+ * 上下文,提交数据的时候会转换为variables参数放在请求中
5
+ */
6
+ interface ContextElement extends IBaseElement {
7
+ props: PropElement[];
8
+ }
9
+ export { ContextElement };