@oinone/kunlun-meta 6.3.0 → 6.3.2

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.
@@ -1,4 +1,4 @@
1
- import{HttpClient as e,gql as t}from"@oinone/kunlun-request";
1
+ import{HttpClient as e,gql as t}from"@oinone/kunlun-request";import{ConfigProviderSPI as n}from"@oinone/kunlun-config";
2
2
  /*! *****************************************************************************
3
3
  Copyright (c) Microsoft Corporation.
4
4
 
@@ -12,7 +12,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12
12
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
13
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
14
  PERFORMANCE OF THIS SOFTWARE.
15
- ***************************************************************************** */var n,i,r,o,a=function(){return a=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},a.apply(this,arguments)};function s(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"}(n||(n={})),function(e){e.DRAFT="DRAFT",e.NOT_ENABLED="NOT_ENABLED",e.ENABLED="ENABLED",e.DISABLED="DISABLED"}(i||(i={})),function(e){e.STORE="STORE",e.TRANSIENT="TRANSIENT",e.ABSTRACT="ABSTRACT",e.PROXY="PROXY",e.CLIENT="CLIENT"}(r||(r={})),function(e){e.String="STRING",e.Text="TEXT",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"}(o||(o={}));const c={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:"邮箱"},l=[{label:c.STRING,value:o.String},{label:c.TEXT,value:o.Text},{label:c.HTML,value:o.HTML},{label:c.PHONE,value:o.Phone},{label:c.EMAIL,value:o.Email},{label:c.INTEGER,value:o.Integer},{label:c.LONG,value:o.Long},{label:c.FLOAT,value:o.Float},{label:c.MONEY,value:o.Currency},{label:c.DATETIME,value:o.DateTime},{label:c.DATE,value:o.Date},{label:c.TIME,value:o.Time},{label:c.YEAR,value:o.Year},{label:c.BOOLEAN,value:o.Boolean},{label:c.ENUM,value:o.Enum},{label:c.MAP,value:o.Map},{label:c.O2M,value:o.OneToMany},{label:c.M2O,value:o.ManyToOne},{label:c.M2M,value:o.ManyToMany}];var u,p,d,f,h,E,m,N,T,O,I,y,_,A;function D(e){return[o.OneToOne,o.OneToMany,o.ManyToOne,o.ManyToMany].includes(e)}function v(e){return[o.OneToOne,o.ManyToOne].includes(e)}function S(e){return[o.ManyToMany,o.OneToMany].includes(e)}function g(e){return e===o.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"}(p||(p={})),function(e){e.GRAPHQL="graphql",e.RESTFUL="restful"}(d||(d={})),function(e){e.PRIMITIVE="primitive",e.OBJECT="object",e.LIST="list"}(f||(f={})),function(e){e.CLIENT="client",e.SERVER="server"}(h||(h={})),function(e){e.CLIENT="client",e.SERVER="server",e.BOTH="both"}(E||(E={})),function(e){e.DOMAIN="domain",e.OBJECT="object",e.LIST="list"}(m||(m={})),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"}(T||(T={})),function(e){e.JAVA="JAVA",e.JS="JS",e.GROOVY="GROOVY"}(O||(O={})),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"}(I||(I={})),function(e){e.ContextAction="contextFreeAction",e.SingleAction="singleAction",e.FooterAction="footer"}(y||(y={})),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"}(_||(_={})),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_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"}(A||(A={}));const M=[A.create,A.update,A.delete,A.redirectDetailPage,A.redirectCreatePage,A.redirectUpdatePage];var L,C,b,R,x,k,P,F,w,B;!function(e){e.Sequential="sequential",e.Parallel="parallel",e.ForkJoin="fork-join",e.Race="race"}(L||(L={})),function(e){e.Client="client",e.Server="server",e.Both="both"}(C||(C={})),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"}(b||(b={})),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"}(R||(R={})),function(e){e.List="LIST",e.Object="OBJECT"}(x||(x={})),function(e){e.PC="PC",e.MOBILE="MOBILE"}(k||(k={})),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"}(P||(P={})),function(e){e.Create="CREATE",e.Editor="EDITOR",e.Lookup="LOOKUP"}(F||(F={})),function(e){e.Router="ROUTER",e.Dialog="DIALOG",e.Drawer="DRAWER",e.Inner="INNER",e.OpenWindow="OPEN_WINDOW",e.Frame="iframe"}(w||(w={})),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"}(B||(B={}));const $={BASE:"base",COMMON:"common",USER:"user",AUTH:"auth",MESSAGE:"message",RESOURCE:"resource",FILE:"file",EIP:"eip",DESIGNER_COMMON:"designer_common"},U={BASE:"base",COMMON:"common",USER:"user",AUTH:"auth",MESSAGE:"message",RESOURCE:"resource",FILE:"file",EIP:"eip",DESIGNER_COMMON:"designerCommon"},V="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 G="function"==typeof Symbol&&null!=Symbol.toStringTag?Symbol.toStringTag:"@@toStringTag";function j(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 H(e){return K(e.source,j(e.source,e.start))}function K(e,t){var n=e.locationOffset.column-1,i=W(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+J([["".concat(a),h[0]]].concat(h.slice(1,d+1).map(function(e){return["",e]}),[[" ",W(f-1)+"^"],["",h[d+1]]]))}return l+J([["".concat(a-1),u[r-1]],["".concat(a),p],["",W(c-1)+"^"],["".concat(a+1),u[r+1]]])}function J(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 W(n-(t=i).length)+t+(r?" | "+r:" |")}).join("\n")}function W(e){return Array(e+1).join(" ")}function q(e){return q="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},q(e)}function X(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 Q(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 Z(e,t){return!t||"object"!==q(t)&&"function"!=typeof t?ee(e):t}function ee(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function te(e){var t="function"==typeof Map?new Map:void 0;return te=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 ne(e,arguments,oe(this).constructor)}return i.prototype=Object.create(e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),re(i,e)},te(e)}function ne(e,t,n){return ne=ie()?Reflect.construct:function(e,t,n){var i=[null];i.push.apply(i,t);var r=new(Function.bind.apply(e,i));return n&&re(r,n.prototype),r},ne.apply(null,arguments)}function ie(){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 re(e,t){return re=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},re(e,t)}function oe(e){return oe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},oe(e)}var ae=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&&re(e,t)}(a,te(Error));var e,t,n,i,r,o=(e=a,t=ie(),function(){var n,i=oe(e);if(t){var r=oe(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return Z(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=se(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=se(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 j(n,e)}):null===(p=f)||void 0===p?void 0:p.map(function(e){return j(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?X(Object(n),!0).forEach(function(t){Q(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},O):d.extensions=null!=c?c:{},Object.defineProperties(ee(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(ee(d),"stack",{value:s.stack,writable:!0,configurable:!0}),Z(d)):(Error.captureStackTrace?Error.captureStackTrace(ee(d),a):Object.defineProperty(ee(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"+H(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"+K(e.source,s)}return t}(this)}},{key:G,get:function(){return"Object"}}])&&z(n.prototype,i),r&&z(n,r),a}();function se(e){return void 0===e||0===e.length?void 0:e}function ce(e,t,n){return new ae("Syntax Error: ".concat(n),void 0,e,[t])}var le=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 ue="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;function pe(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,ue&&(e.prototype[ue]=t)}var de=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}();pe(de);var fe=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}();pe(fe);var he=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 Ee(e){return Ee="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},Ee(e)}function me(e){return Ne(e,[])}function Ne(e,t){switch(Ee(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(ue)];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:Ne(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(Ne(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+": "+Ne(e[n],t)});return"{ "+i.join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}function Te(e,t){if(!Boolean(e))throw new Error(t)}function Oe(e){return Oe="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},Oe(e)}var Ie="production"===process.env.NODE_ENV?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if("object"===Oe(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=me(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 ye(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 _e=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||Te(0,"Body must be a string. Received: ".concat(me(e),".")),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||Te(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||Te(0,"column in locationOffset is 1-indexed and must be positive.")}var t,n,i;return t=e,(n=[{key:G,get:function(){return"Source"}}])&&ye(t.prototype,n),i&&ye(t,i),e}();var Ae=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 De(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&&ve(t[r]);)++r;for(var o=t.length;o>r&&ve(t[o-1]);)--o;return t.slice(r,o).join("\n")}function ve(e){for(var t=0;t<e.length;++t)if(" "!==e[t]&&"\t"!==e[t])return!1;return!0}var Se=function(){function e(e){var t=new fe(he.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!==he.EOF)do{var t;e=null!==(t=e.next)&&void 0!==t?t:e.next=Me(this,e)}while(e.kind===he.COMMENT);return e},e}();function ge(e){return isNaN(e)?he.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function Me(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 fe(he.BANG,o,o+1,s,c,t);case 35:return Ce(n,o,s,c,t);case 36:return new fe(he.DOLLAR,o,o+1,s,c,t);case 38:return new fe(he.AMP,o,o+1,s,c,t);case 40:return new fe(he.PAREN_L,o,o+1,s,c,t);case 41:return new fe(he.PAREN_R,o,o+1,s,c,t);case 46:if(46===i.charCodeAt(o+1)&&46===i.charCodeAt(o+2))return new fe(he.SPREAD,o,o+3,s,c,t);break;case 58:return new fe(he.COLON,o,o+1,s,c,t);case 61:return new fe(he.EQUALS,o,o+1,s,c,t);case 64:return new fe(he.AT,o,o+1,s,c,t);case 91:return new fe(he.BRACKET_L,o,o+1,s,c,t);case 93:return new fe(he.BRACKET_R,o,o+1,s,c,t);case 123:return new fe(he.BRACE_L,o,o+1,s,c,t);case 124:return new fe(he.PIPE,o,o+1,s,c,t);case 125:return new fe(he.BRACE_R,o,o+1,s,c,t);case 34:return 34===i.charCodeAt(o+1)&&34===i.charCodeAt(o+2)?ke(n,o,s,c,t,e):xe(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 be(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 we(n,o,s,c,t)}throw ce(n,o,Le(a))}var l=e.line,u=1+o-e.lineStart;return new fe(he.EOF,r,r,l,u,t)}function Le(e){return e<32&&9!==e&&10!==e&&13!==e?"Cannot contain the invalid character ".concat(ge(e),"."):39===e?"Unexpected single quote character ('), did you mean to use a double quote (\")?":"Cannot parse the unexpected character ".concat(ge(e),".")}function Ce(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 fe(he.COMMENT,t,s,n,i,r,a.slice(t+1,s))}function be(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 ce(e,c,"Invalid number, unexpected digit after 0: ".concat(ge(s),"."))}else c=Re(e,c,s),s=a.charCodeAt(c);if(46===s&&(l=!0,s=a.charCodeAt(++c),c=Re(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=Re(e,c,s),s=a.charCodeAt(c)),46===s||function(e){return 95===e||e>=65&&e<=90||e>=97&&e<=122}(s))throw ce(e,c,"Invalid number, expected digit but got: ".concat(ge(s),"."));return new fe(l?he.FLOAT:he.INT,t,c,i,r,o,a.slice(t,c))}function Re(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 ce(e,r,"Invalid number, expected digit but got: ".concat(ge(o),"."))}function xe(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 fe(he.STRING,t,a+1,n,i,r,l);if(c<32&&9!==c)throw ce(e,a,"Invalid character within String: ".concat(ge(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=Pe(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 ce(e,a,"Invalid character escape sequence: \\u".concat(p,"."))}l+=String.fromCharCode(u),a+=4;break;default:throw ce(e,a,"Invalid character escape sequence: \\".concat(String.fromCharCode(c),"."))}s=++a}}throw ce(e,a,"Unterminated string.")}function ke(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 fe(he.BLOCK_STRING,t,s+3,n,i,r,De(u));if(l<32&&9!==l&&10!==l&&13!==l)throw ce(e,s,"Invalid character within String: ".concat(ge(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 ce(e,s,"Unterminated string.")}function Pe(e,t,n,i){return Fe(e)<<12|Fe(t)<<8|Fe(n)<<4|Fe(i)}function Fe(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function we(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 fe(he.NAME,t,s,n,i,r,o.slice(t,s))}var Be=function(){function e(e,t){var n=function(e){return Ie(e,_e)}(e)?e:new _e(e);this._lexer=new Se(n),this._options=t}var t=e.prototype;return t.parseName=function(){var e=this.expectToken(he.NAME);return{kind:le.NAME,value:e.value,loc:this.loc(e)}},t.parseDocument=function(){var e=this._lexer.token;return{kind:le.DOCUMENT,definitions:this.many(he.SOF,this.parseDefinition,he.EOF),loc:this.loc(e)}},t.parseDefinition=function(){if(this.peek(he.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(he.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(he.BRACE_L))return{kind:le.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(e)};var t,n=this.parseOperationType();return this.peek(he.NAME)&&(t=this.parseName()),{kind:le.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(he.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(he.PAREN_L,this.parseVariableDefinition,he.PAREN_R)},t.parseVariableDefinition=function(){var e=this._lexer.token;return{kind:le.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(he.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(he.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(he.DOLLAR),{kind:le.VARIABLE,name:this.parseName(),loc:this.loc(e)}},t.parseSelectionSet=function(){var e=this._lexer.token;return{kind:le.SELECTION_SET,selections:this.many(he.BRACE_L,this.parseSelection,he.BRACE_R),loc:this.loc(e)}},t.parseSelection=function(){return this.peek(he.SPREAD)?this.parseFragment():this.parseField()},t.parseField=function(){var e,t,n=this._lexer.token,i=this.parseName();return this.expectOptionalToken(he.COLON)?(e=i,t=this.parseName()):t=i,{kind:le.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(he.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(n)}},t.parseArguments=function(e){var t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(he.PAREN_L,t,he.PAREN_R)},t.parseArgument=function(){var e=this._lexer.token,t=this.parseName();return this.expectToken(he.COLON),{kind:le.ARGUMENT,name:t,value:this.parseValueLiteral(!1),loc:this.loc(e)}},t.parseConstArgument=function(){var e=this._lexer.token;return{kind:le.ARGUMENT,name:this.parseName(),value:(this.expectToken(he.COLON),this.parseValueLiteral(!0)),loc:this.loc(e)}},t.parseFragment=function(){var e=this._lexer.token;this.expectToken(he.SPREAD);var t=this.expectOptionalKeyword("on");return!t&&this.peek(he.NAME)?{kind:le.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(e)}:{kind:le.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:le.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:le.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 he.BRACKET_L:return this.parseList(e);case he.BRACE_L:return this.parseObject(e);case he.INT:return this._lexer.advance(),{kind:le.INT,value:t.value,loc:this.loc(t)};case he.FLOAT:return this._lexer.advance(),{kind:le.FLOAT,value:t.value,loc:this.loc(t)};case he.STRING:case he.BLOCK_STRING:return this.parseStringLiteral();case he.NAME:switch(this._lexer.advance(),t.value){case"true":return{kind:le.BOOLEAN,value:!0,loc:this.loc(t)};case"false":return{kind:le.BOOLEAN,value:!1,loc:this.loc(t)};case"null":return{kind:le.NULL,loc:this.loc(t)};default:return{kind:le.ENUM,value:t.value,loc:this.loc(t)}}case he.DOLLAR:if(!e)return this.parseVariable()}throw this.unexpected()},t.parseStringLiteral=function(){var e=this._lexer.token;return this._lexer.advance(),{kind:le.STRING,value:e.value,block:e.kind===he.BLOCK_STRING,loc:this.loc(e)}},t.parseList=function(e){var t=this,n=this._lexer.token;return{kind:le.LIST,values:this.any(he.BRACKET_L,function(){return t.parseValueLiteral(e)},he.BRACKET_R),loc:this.loc(n)}},t.parseObject=function(e){var t=this,n=this._lexer.token;return{kind:le.OBJECT,fields:this.any(he.BRACE_L,function(){return t.parseObjectField(e)},he.BRACE_R),loc:this.loc(n)}},t.parseObjectField=function(e){var t=this._lexer.token,n=this.parseName();return this.expectToken(he.COLON),{kind:le.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e),loc:this.loc(t)}},t.parseDirectives=function(e){for(var t=[];this.peek(he.AT);)t.push(this.parseDirective(e));return t},t.parseDirective=function(e){var t=this._lexer.token;return this.expectToken(he.AT),{kind:le.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e),loc:this.loc(t)}},t.parseTypeReference=function(){var e,t=this._lexer.token;return this.expectOptionalToken(he.BRACKET_L)?(e=this.parseTypeReference(),this.expectToken(he.BRACKET_R),e={kind:le.LIST_TYPE,type:e,loc:this.loc(t)}):e=this.parseNamedType(),this.expectOptionalToken(he.BANG)?{kind:le.NON_NULL_TYPE,type:e,loc:this.loc(t)}:e},t.parseNamedType=function(){var e=this._lexer.token;return{kind:le.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===he.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(he.STRING)||this.peek(he.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(he.BRACE_L,this.parseOperationTypeDefinition,he.BRACE_R);return{kind:le.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(he.COLON);var n=this.parseNamedType();return{kind:le.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:le.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:le.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(he.AMP);do{t.push(this.parseNamedType())}while(this.expectOptionalToken(he.AMP)||this.peek(he.NAME));return t}return this.delimitedMany(he.AMP,this.parseNamedType)},t.parseFieldsDefinition=function(){var e;return!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLEmptyFields)&&this.peek(he.BRACE_L)&&this._lexer.lookahead().kind===he.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(he.BRACE_L,this.parseFieldDefinition,he.BRACE_R)},t.parseFieldDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),i=this.parseArgumentDefs();this.expectToken(he.COLON);var r=this.parseTypeReference(),o=this.parseDirectives(!0);return{kind:le.FIELD_DEFINITION,description:t,name:n,arguments:i,type:r,directives:o,loc:this.loc(e)}},t.parseArgumentDefs=function(){return this.optionalMany(he.PAREN_L,this.parseInputValueDef,he.PAREN_R)},t.parseInputValueDef=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(he.COLON);var i,r=this.parseTypeReference();this.expectOptionalToken(he.EQUALS)&&(i=this.parseValueLiteral(!0));var o=this.parseDirectives(!0);return{kind:le.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:le.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:le.UNION_TYPE_DEFINITION,description:t,name:n,directives:i,types:r,loc:this.loc(e)}},t.parseUnionMemberTypes=function(){return this.expectOptionalToken(he.EQUALS)?this.delimitedMany(he.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:le.ENUM_TYPE_DEFINITION,description:t,name:n,directives:i,values:r,loc:this.loc(e)}},t.parseEnumValuesDefinition=function(){return this.optionalMany(he.BRACE_L,this.parseEnumValueDefinition,he.BRACE_R)},t.parseEnumValueDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),i=this.parseDirectives(!0);return{kind:le.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:le.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:i,fields:r,loc:this.loc(e)}},t.parseInputFieldsDefinition=function(){return this.optionalMany(he.BRACE_L,this.parseInputValueDef,he.BRACE_R)},t.parseTypeSystemExtension=function(){var e=this._lexer.lookahead();if(e.kind===he.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(he.BRACE_L,this.parseOperationTypeDefinition,he.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return{kind:le.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:le.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:le.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:le.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:le.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:le.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:le.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(he.AT);var n=this.parseName(),i=this.parseArgumentDefs(),r=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var o=this.parseDirectiveLocations();return{kind:le.DIRECTIVE_DEFINITION,description:t,name:n,arguments:i,repeatable:r,locations:o,loc:this.loc(e)}},t.parseDirectiveLocations=function(){return this.delimitedMany(he.PIPE,this.parseDirectiveLocation)},t.parseDirectiveLocation=function(){var e=this._lexer.token,t=this.parseName();if(void 0!==Ae[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 de(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 ce(this._lexer.source,t.start,"Expected ".concat(Ue(e),", found ").concat($e(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!==he.NAME||t.value!==e)throw ce(this._lexer.source,t.start,'Expected "'.concat(e,'", found ').concat($e(t),"."));this._lexer.advance()},t.expectOptionalKeyword=function(e){var t=this._lexer.token;return t.kind===he.NAME&&t.value===e&&(this._lexer.advance(),!0)},t.unexpected=function(e){var t=null!=e?e:this._lexer.token;return ce(this._lexer.source,t.start,"Unexpected ".concat($e(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 $e(e){var t=e.value;return Ue(e.kind)+(null!=t?' "'.concat(t,'"'):"")}function Ue(e){return function(e){return e===he.BANG||e===he.DOLLAR||e===he.AMP||e===he.PAREN_L||e===he.PAREN_R||e===he.SPREAD||e===he.COLON||e===he.EQUALS||e===he.AT||e===he.BRACKET_L||e===he.BRACKET_R||e===he.BRACE_L||e===he.PIPE||e===he.BRACE_R}(e)?'"'.concat(e,'"'):e}var Ve=new Map,Ye=new Map,Ge=!0,je=!1;function He(e){return e.replace(/[\s,]+/g," ").trim()}function Ke(e){var t=new Set,n=[];return e.definitions.forEach(function(e){if("FragmentDefinition"===e.kind){var i=e.name.value,r=He((a=e.loc).source.body.substring(a.start,a.end)),o=Ye.get(i);o&&!o.has(r)?Ge&&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}),a(a({},e),{definitions:n})}function Je(e){var t=He(e);if(!Ve.has(t)){var n=function(e,t){return new Be(e,t).parseDocument()}(e,{experimentalFragmentVariables:je,allowLegacyFragmentVariables:je});if(!n||"Document"!==n.kind)throw new Error("Not a valid GraphQL document.");Ve.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}(Ke(n)))}return Ve.get(t)}function We(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]}),Je(i)}var qe,Xe=We,Qe=function(){Ve.clear(),Ye.clear()},ze=function(){Ge=!1},Ze=function(){je=!0},et=function(){je=!1};(qe=We||(We={})).gql=Xe,qe.resetCaches=Qe,qe.disableFragmentWarnings=ze,qe.enableExperimentalFragmentVariables=Ze,qe.disableExperimentalFragmentVariables=et,We.default=We;const tt=We`
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.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_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",COMMON:"common",USER:"user",AUTH:"auth",MESSAGE:"message",RESOURCE:"resource",FILE:"file",EIP:"eip",DESIGNER_COMMON:"designer_common"},V={BASE:"base",COMMON:"common",USER:"user",AUTH:"auth",MESSAGE:"message",RESOURCE:"resource",FILE:"file",EIP:"eip",DESIGNER_COMMON:"designerCommon"},Y="id =notnull= true";function G(e){return G="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},G(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"==G(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 Ye=new Map,Ge=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=Ge.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||Ge.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(!Ye.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.");Ye.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 Ye.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(){Ye.clear(),Ge.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`
16
16
  fragment ViewAction on ViewAction {
17
17
  id
18
18
  name
@@ -37,7 +37,7 @@ PERFORMANCE OF THIS SOFTWARE.
37
37
  priority
38
38
  attributes
39
39
  }
40
- `,nt=We`
40
+ `,it=qe`
41
41
  fragment UrlAction on UrlAction {
42
42
  id
43
43
  name
@@ -56,7 +56,7 @@ PERFORMANCE OF THIS SOFTWARE.
56
56
  context
57
57
  priority
58
58
  }
59
- `,it=We`
59
+ `,rt=qe`
60
60
  fragment ServerAction on ServerAction {
61
61
  id
62
62
  name
@@ -81,7 +81,7 @@ PERFORMANCE OF THIS SOFTWARE.
81
81
  }
82
82
  }
83
83
  }
84
- `,rt=We`
84
+ `,ot=qe`
85
85
  fragment ClientAction on ClientAction {
86
86
  id
87
87
  name
@@ -98,7 +98,7 @@ PERFORMANCE OF THIS SOFTWARE.
98
98
  priority
99
99
  fun
100
100
  }
101
- `,ot=We`
101
+ `,at=qe`
102
102
  fragment Field on Field {
103
103
  id
104
104
  name
@@ -135,7 +135,7 @@ PERFORMANCE OF THIS SOFTWARE.
135
135
  }
136
136
  attributes
137
137
  }
138
- `,at=We`
138
+ `,st=qe`
139
139
  fragment Func on Function {
140
140
  type
141
141
  namespace
@@ -151,7 +151,7 @@ PERFORMANCE OF THIS SOFTWARE.
151
151
  model
152
152
  }
153
153
  }
154
- `,st=We`
154
+ `,ct=qe`
155
155
  fragment View on View {
156
156
  id
157
157
  name
@@ -163,7 +163,7 @@ PERFORMANCE OF THIS SOFTWARE.
163
163
  priority
164
164
  systemSource
165
165
  }
166
- `,ct={Model:We`
166
+ `,lt={Model:qe`
167
167
  fragment Model on Model {
168
168
  id
169
169
  pk
@@ -201,14 +201,14 @@ PERFORMANCE OF THIS SOFTWARE.
201
201
  ...Func
202
202
  }
203
203
  }
204
- ${ot}
205
- ${tt}
206
- ${it}
204
+ ${at}
207
205
  ${nt}
208
206
  ${rt}
207
+ ${it}
208
+ ${ot}
209
+ ${ct}
209
210
  ${st}
210
- ${at}
211
- `,ModelWithFields:We`
211
+ `,ModelWithFields:qe`
212
212
  fragment ModelWithFields on Model {
213
213
  id
214
214
  pk
@@ -228,8 +228,8 @@ PERFORMANCE OF THIS SOFTWARE.
228
228
  ...Field
229
229
  }
230
230
  }
231
- ${ot}
232
- `,Field:ot,UrlAction:nt,ServerAction:it,ViewAction:tt,ClientAction:rt,Action:We`
231
+ ${at}
232
+ `,Field:at,UrlAction:it,ServerAction:rt,ViewAction:nt,ClientAction:ot,Action:qe`
233
233
  fragment Action on Action {
234
234
  id
235
235
  name
@@ -246,7 +246,7 @@ PERFORMANCE OF THIS SOFTWARE.
246
246
  priority
247
247
  attributes
248
248
  }
249
- `,Menu:We`
249
+ `,Menu:qe`
250
250
  fragment Menu on Menu {
251
251
  serverAction {
252
252
  ...ServerAction
@@ -272,10 +272,10 @@ PERFORMANCE OF THIS SOFTWARE.
272
272
  id
273
273
  }
274
274
  }
275
- ${it}
276
- ${tt}
275
+ ${rt}
277
276
  ${nt}
278
- `,View:st,Func:at},lt="...FuncV3",ut=We`
277
+ ${it}
278
+ `,View:ct,Func:st},ut="...FuncV3",pt=qe`
279
279
  fragment FuncV3 on Function {
280
280
  type
281
281
  namespace
@@ -293,7 +293,7 @@ PERFORMANCE OF THIS SOFTWARE.
293
293
  model
294
294
  }
295
295
  }
296
- `,pt="...ModelV3",dt=We`
296
+ `,dt="...ModelV3",ft=qe`
297
297
  fragment ModelV3 on ModelDefinition {
298
298
  id
299
299
  model
@@ -306,18 +306,18 @@ PERFORMANCE OF THIS SOFTWARE.
306
306
  indexes
307
307
  ordering
308
308
  }
309
- `,ft="...ModuleV3",ht=We`
309
+ `,ht="...ModuleV3",Et=qe`
310
310
  fragment ModuleV3 on ModuleDefinition {
311
311
  module
312
312
  name
313
313
  displayName
314
314
  }
315
- `,Et="...MaskV3",mt=We`
315
+ `,mt="...MaskV3",Nt=qe`
316
316
  fragment MaskV3 on MaskDefinition {
317
317
  name
318
318
  template
319
319
  }
320
- `,Nt="...ViewV3",Tt=We`
320
+ `,Tt="...ViewV3",Ot=qe`
321
321
  fragment ViewV3 on View {
322
322
  id
323
323
  model
@@ -337,13 +337,13 @@ PERFORMANCE OF THIS SOFTWARE.
337
337
  ${"...LayoutV3"}
338
338
  }
339
339
  }
340
- ${We`
340
+ ${qe`
341
341
  fragment LayoutV3 on LayoutDefinition {
342
342
  name
343
343
  template
344
344
  }
345
345
  `}
346
- `,Ot={Module:ht,Model:dt,ViewAction:We`
346
+ `,It={Module:Et,Model:ft,ViewAction:qe`
347
347
  fragment ViewActionV3 on ViewAction {
348
348
  id
349
349
  name
@@ -362,36 +362,36 @@ PERFORMANCE OF THIS SOFTWARE.
362
362
  model
363
363
  modelName
364
364
  modelDefinition {
365
- ${pt}
365
+ ${dt}
366
366
  }
367
367
  module
368
368
  moduleName
369
369
  moduleDefinition {
370
- ${ft}
370
+ ${ht}
371
371
  }
372
372
  resModel
373
373
  resModelDefinition {
374
- ${pt}
374
+ ${dt}
375
375
  }
376
376
  resModule
377
377
  resModuleName
378
378
  resModuleDefinition {
379
- ${ft}
379
+ ${ht}
380
380
  }
381
381
  mask
382
382
  maskDefinition {
383
- ${Et}
383
+ ${mt}
384
384
  }
385
385
  resViewName
386
386
  resView {
387
- ${Nt}
387
+ ${Tt}
388
388
  }
389
389
  }
390
- ${dt}
391
- ${ht}
392
- ${mt}
393
- ${Tt}
394
- `,SharedViewAction:We`
390
+ ${ft}
391
+ ${Et}
392
+ ${Nt}
393
+ ${Ot}
394
+ `,SharedViewAction:qe`
395
395
  fragment SharedPageViewActionV3 on SharedPageViewAction {
396
396
  id
397
397
  name
@@ -414,36 +414,36 @@ PERFORMANCE OF THIS SOFTWARE.
414
414
  model
415
415
  modelName
416
416
  modelDefinition {
417
- ${pt}
417
+ ${dt}
418
418
  }
419
419
  module
420
420
  moduleName
421
421
  moduleDefinition {
422
- ${ft}
422
+ ${ht}
423
423
  }
424
424
  resModel
425
425
  resModelDefinition {
426
- ${pt}
426
+ ${dt}
427
427
  }
428
428
  resModule
429
429
  resModuleName
430
430
  resModuleDefinition {
431
- ${ft}
431
+ ${ht}
432
432
  }
433
433
  mask
434
434
  maskDefinition {
435
- ${Et}
435
+ ${mt}
436
436
  }
437
437
  resViewName
438
438
  resView {
439
- ${Nt}
439
+ ${Tt}
440
440
  }
441
441
  }
442
- ${dt}
443
- ${ht}
444
- ${mt}
445
- ${Tt}
446
- `,ServerAction:We`
442
+ ${ft}
443
+ ${Et}
444
+ ${Nt}
445
+ ${Ot}
446
+ `,ServerAction:qe`
447
447
  fragment ServerActionV3 on ServerAction {
448
448
  id
449
449
  name
@@ -460,12 +460,12 @@ PERFORMANCE OF THIS SOFTWARE.
460
460
  priority
461
461
  fun
462
462
  functionDefinition {
463
- ${lt}
463
+ ${ut}
464
464
  }
465
465
  }
466
466
 
467
- ${ut}
468
- `,UrlAction:We`
467
+ ${pt}
468
+ `,UrlAction:qe`
469
469
  fragment UrlActionV3 on UrlAction {
470
470
  id
471
471
  name
@@ -484,7 +484,7 @@ PERFORMANCE OF THIS SOFTWARE.
484
484
  context
485
485
  priority
486
486
  }
487
- `,View:Tt,Function:ut},It={Module:ft,Model:pt,ViewAction:"...ViewActionV3",SharedViewAction:"...SharedPageViewActionV3",ServerAction:"...ServerActionV3",UrlAction:"...UrlActionV3",View:Nt,Function:lt};function yt(e,t){e.onload=_t(e.src,t),e.onerror=At(e.src,t)}function _t(e,t){return()=>{t()}}function At(e,t){return()=>{t(),console.error(`load error. ${e}`)}}let Dt=0;class vt{constructor(){}load(e){return s(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",yt(i,e),document.body.append(i)})})}loadDependencies(e){return s(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-"+Dt++,n.type="importmap",n.text=JSON.stringify({imports:t}),yt(n,e),document.body.append(n)})})}}vt.INSTANCE=new vt;class St{constructor(){}load(e){return vt.INSTANCE.load(e)}loadDependencies(e){return vt.INSTANCE.loadDependencies(e)}}St.INSTANCE=new St;class gt{constructor(){}load(e){return s(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=_t(e.href,t),e.onerror=At(e.href,t)}(i,e),document.body.append(i)})})}loadDependencies(){return s(this,void 0,void 0,function*(){})}}gt.INSTANCE=new gt;class Mt{load(e){return s(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",yt(i,e),document.body.append(i)})})}loadDependencies(e){return s(this,void 0,void 0,function*(){if(!e)return;const t=window;yield Promise.allSettled(Object.entries(e).map(([e,n])=>s(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)}})))})}}Mt.INSTANCE=new Mt;class Lt{constructor(){}load(e){return Mt.INSTANCE.load(e)}loadDependencies(e){return Mt.INSTANCE.loadDependencies(e)}}Lt.INSTANCE=new Lt;class Ct{static get(e){switch(e){case"esm":return vt.INSTANCE;case"cjs":return St.INSTANCE;case"umd":return Mt.INSTANCE;case"iife":return Lt.INSTANCE;case"css":return gt.INSTANCE}}}class bt{static load(e){return s(this,void 0,void 0,function*(){yield Promise.allSettled(e.map(e=>{var t;return null===(t=Ct.get(e.type))||void 0===t?void 0:t.load(e)}))})}static loadDependencies(e,t){var n;return s(this,void 0,void 0,function*(){yield null===(n=Ct.get(e))||void 0===n?void 0:n.loadDependencies(t)})}}let Rt=1;function xt(e){return!!e}class kt{constructor(){}static loadDependencies(e){return s(this,void 0,void 0,function*(){let t;t=Array.isArray(e)?e:[{type:"umd",dependencies:e}],yield Promise.allSettled(t.map(e=>bt.loadDependencies(e.type,e.dependencies)))})}static loadJavascript(e){return bt.load(e.map(e=>"string"==typeof e?{id:"plugin-"+Rt++,type:"umd",path:e}:e.path?{id:"plugin-"+Rt++,type:e.type||"umd",path:e.path}:void console.error("Invalid javascript plugin.",e)).filter(xt))}static loadCSS(e){return bt.load(e.map(e=>({id:"plugin-css-"+Rt++,type:"css",path:e})))}}const Pt=e.getInstance();class Ft{load(){return s(this,void 0,void 0,function*(){let e=this.cache;if(void 0===e&&(e=yield function(){return s(this,void 0,void 0,function*(){const e=t`
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`
488
488
  {
489
489
  widgetDefinitionQuery {
490
490
  loadSDK(data: {}) {
@@ -493,4 +493,4 @@ PERFORMANCE OF THIS SOFTWARE.
493
493
  }
494
494
  }
495
495
  }
496
- `;try{return(yield Pt.query(U.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(kt.loadJavascript(t)),n&&i.push(kt.loadCSS(n)),yield Promise.allSettled(i)}})}}Ft.INSTANCE=new Ft;class wt{static load(e,t){return s(this,void 0,void 0,function*(){const{dependencies:n,mounted:i,usingRemote:r}=e;if(t&&(yield kt.loadDependencies(t)),n&&(yield kt.loadDependencies(n)),i)if(Array.isArray(i))yield kt.loadJavascript(i);else{const{js:e,css:t}=i;e&&(yield kt.loadJavascript(e)),t&&(yield kt.loadCSS(t))}r&&(yield Ft.INSTANCE.load())})}}class Bt{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]}}Bt.defaultLoginPath="/login",Bt._config={};const $t="runtimeConfigResolve",Ut={init:!1,updateTime:new Date,value:{}};class Vt{static init(e){return s(this,void 0,void 0,function*(){if(!Ut.init)return function(){if(Ut.init)return;if(Reflect.get(window,$t))return;return new Promise(e=>{Reflect.set(window,$t,t=>{e(t),Reflect.deleteProperty(window,$t)});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,$t)}}(e);t.onload=n,t.onerror=n,document.body.appendChild(t)}).then(e=>s(this,void 0,void 0,function*(){Ut.updateTime=new Date,Ut.value=e})).finally(()=>{Ut.init=!0})}()})}static get(){return Ut.init?Ut.value||{}:("development"===process.env.NODE_ENV&&console.warn("runtime config is not init."),{})}static getConfig(e){return Vt.get()[e]}}function Yt(e){return null==e?e:JSON.parse(JSON.stringify(e))}const Gt=e=>e?Array.isArray(e)?null:Yt(e):{},jt=e=>e&&e.children?e.children.filter(e=>e.tagName===b.PROP).map(e=>({name:e.name,textContent:e.textContent})):[],Ht=e=>e?Yt(e):{},Kt=e=>e&&e.children?e.children.filter(e=>e.tagName===b.FIELD).map(e=>({name:e.name,textContent:e.textContent,children:Kt(e)})):[],Jt=(e,t)=>{if(!t)return{};const n=Yt(e);if(t.children&&t.children.find(e=>e.tagName===b.API&&e.name===n.submitApi)||null){const e=Wt(t,n.submitApi);if(!e)return{};n.api=e}return n},Wt=(e,t,n)=>{const i=e.children&&e.children.find(e=>e.tagName===b.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:jt(i.children.find(e=>e.tagName===b.CONTEXT))},r.request={fields:qt(Kt(i.children.find(e=>e.tagName===b.REQUEST)),n)},r.response={fields:qt(Kt(i.children.find(e=>e.tagName===b.RESPONSE)),n)},r.clear={fields:Kt(i.children.find(e=>e.tagName===b.CLEAR))},r};function qt(e,t){return e&&e.length?e:(t||[]).map(e=>Qt(e))}const Xt=e=>({name:e.data,ttype:e.ttype,references:e.references,relatedTtype:e.relatedTtype}),Qt=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 Zt=e=>{switch(e.ttype){case o.Boolean:case o.Integer:case o.Long:case o.Float:case o.Currency:case o.String:case o.Email:case o.Phone:case o.ID:case o.Date:case o.DateTime:case o.Time:case o.Year:case o.Enum:case o.MultiEnum:case o.HTML:case o.Map:case o.Text:return!0;default:return!1}},en=e=>[o.OneToOne,o.OneToMany,o.ManyToOne,o.ManyToMany].includes(e),tn=e=>[o.Date,o.DateTime,o.Year,o.Time].includes(e),nn=e=>[o.ID,o.UID,o.Integer,o.Long,o.Float,o.Currency].includes(e),rn=e=>[o.String,o.Text,o.HTML,o.Phone,o.Email].includes(e),on=e=>e===o.Boolean,an=e=>e===o.Enum,sn=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)},cn=e=>sn(e)||Array.isArray(e)&&0===e.length,ln=e=>null==e||""===e||Array.isArray(e)&&0===e.length||"object"==typeof e&&0===Object.keys(e).length;export{L as ActionCompositionType,T as ActionContextType,O as ActionFunctionType,N as ActionType,C as ActionValidationScope,n as ActiveEnum,d as ApiProtocol,V as BASE_RSQL_QUERY_CONDITION,_ as ClientActionName,x as DataClass,i as DataStatusEnum,f as DataType,b as ElementType,p as EnumOptionState,Bt as GlobalConfig,y as IActionTag,h as LoadType,ct as MetadataFragment,Ot as MetadataRuntimeFragment,It as MetadataRuntimeFragmentName,I as ModelActionType,A as ModelDefaultActionName,M as ModelDefaultActionNames,u as ModelFieldSerializeType,o as ModelFieldType,c as ModelFieldTypeDisplayName,l as ModelFieldTypeOptions,r as ModelType,wt as PluginsLoader,m as QueryType,Vt as RuntimeConfig,$ as SYSTEM_MODULE,U as SYSTEM_MODULE_NAME,B as SystemSource,R as UserBehaviorEventEnum,E as ValidationScope,w as ViewActionTarget,k as ViewClientType,F as ViewMode,P as ViewType,Jt as createActionElement,Wt as createApiElement,Ht as createFieldElement,Kt as createFieldElements,jt as createPropElements,Gt as createViewElement,Yt as deepClone,Xt as fieldElement2ModelField,on as isBooleanTtype,en as isComplexTtype,tn as isDateTtype,sn as isEmptyKeObject,ln as isEmptyValue,an as isEnumTtype,nn as isNumberTtype,zt as isPromise,g as isRelatedTtype,D as isRelationTtype,Zt as isSimpleField,rn as isStringTtype,S as isToManyTtype,v as isToOneTtype,cn as isValidateEmpty,Qt as modelField2fieldElement};
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 Yt{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 Yt.get()[e]}}function Gt(e){return null==e?e:JSON.parse(JSON.stringify(e))}n.register({name:"runtimeConfig",priority:90},{getConfig:Yt.getConfig});const jt=e=>e?Array.isArray(e)?null:Gt(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?Gt(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=Gt(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=Gt(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,Y 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,Yt 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,Gt 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};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oinone/kunlun-meta",
3
- "version": "6.3.0",
3
+ "version": "6.3.2",
4
4
  "main": "index.ts",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf dist",
@@ -10,8 +10,11 @@
10
10
  "x-prepublishOnly": "node ../../scripts/prepublish-only.js",
11
11
  "x-postpublish": "node ../../scripts/postpublish.js"
12
12
  },
13
+ "dependencies": {
14
+ "@oinone/kunlun-config": "6.3.2"
15
+ },
13
16
  "devDependencies": {
14
- "@oinone/kunlun-request": "6.3.0"
17
+ "@oinone/kunlun-request": "6.3.2"
15
18
  },
16
19
  "gitHead": "2b4c0c7911626c105ca71c2d41e54af470e2e079"
17
20
  }
package/rollup.config.js CHANGED
@@ -1,4 +1,4 @@
1
1
  import pkg from './package.json';
2
2
  import rollupConfig from '../../scripts/build.config.js';
3
3
 
4
- export default rollupConfig(pkg.name, ['@oinone/kunlun-request']);
4
+ export default rollupConfig(pkg.name, ['@oinone/kunlun-request', '@oinone/kunlun-config']);
@@ -1,3 +1,4 @@
1
+ import { ConfigProviderSPI, ConfigProviderService } from '@oinone/kunlun-config';
1
2
  import { PluginLoadDependencies } from '../plugin-loader';
2
3
 
3
4
  const RUNTIME_CONFIG_RESOLVE = 'runtimeConfigResolve';
@@ -43,6 +44,10 @@ export class RuntimeConfig {
43
44
  }
44
45
  }
45
46
 
47
+ ConfigProviderSPI.register({ name: 'runtimeConfig', priority: 90 }, {
48
+ getConfig: RuntimeConfig.getConfig
49
+ } as ConfigProviderService);
50
+
46
51
  function errorProcess(resolve) {
47
52
  return () => {
48
53
  resolve({});