@gisce/react-ooui 1.2.0-rc.4 → 1.2.0-rc.5
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.
- package/dist/actionbar/TreeActionBar.d.ts.map +1 -1
- package/dist/locales/ca_ES.d.ts +2 -0
- package/dist/locales/ca_ES.d.ts.map +1 -1
- package/dist/locales/en_US.d.ts +2 -0
- package/dist/locales/en_US.d.ts.map +1 -1
- package/dist/locales/es_ES.d.ts +2 -0
- package/dist/locales/es_ES.d.ts.map +1 -1
- package/dist/react-ooui.es.js +3949 -3936
- package/dist/react-ooui.es.js.map +1 -1
- package/dist/react-ooui.umd.js +19 -18
- package/dist/react-ooui.umd.js.map +1 -1
- package/dist/views/ActionView.d.ts.map +1 -1
- package/dist/widgets/modals/ExportModal.d.ts +0 -1
- package/dist/widgets/modals/ExportModal.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/actionbar/TreeActionBar.tsx +70 -48
- package/src/locales/ca_ES.tsx +2 -0
- package/src/locales/en_US.tsx +2 -0
- package/src/locales/es_ES.tsx +2 -0
- package/src/views/ActionView.tsx +12 -4
- package/src/widgets/modals/ExportModal.tsx +22 -9
package/dist/react-ooui.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(e,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("react"),require("antd"),require("@gisce/ooui"),require("@ant-design/icons"),require("react/jsx-runtime"),require("@tabler/icons"),require("react-dom"),require("styled-components"),require("react-measure"),require("@ant-design/plots"),require("use-deep-compare-effect"),require("buffer"),require("@gisce/react-formiga-table"),require("fiber-diagram"),require("react-hotkeys-hook"),require("@monaco-editor/react"),require("react-grid-layout")):typeof define=="function"&&define.amd?define(["exports","react","antd","@gisce/ooui","@ant-design/icons","react/jsx-runtime","@tabler/icons","react-dom","styled-components","react-measure","@ant-design/plots","use-deep-compare-effect","buffer","@gisce/react-formiga-table","fiber-diagram","react-hotkeys-hook","@monaco-editor/react","react-grid-layout"],o):(e=typeof globalThis<"u"?globalThis:e||self,o(e["react-ooui"]={},e.React,e.antd,e.ooui,e.Icon,e.jsxRuntime,e.icons,e.ReactDOM,e.styled,e.Measure,e.plots,e.useDeepCompareEffect,e.require$$0,e.reactFormigaTable,e.fiberDiagram,e.reactHotkeysHook,e.Editor,e.reactGridLayout))})(this,function(exports,React,antd,ooui,Icon,jsxRuntime,icons,ReactDOM,k,Measure,plots,useDeepCompareEffect,require$$0,reactFormigaTable,fiberDiagram,reactHotkeysHook,Editor,reactGridLayout){"use strict";const _interopDefaultLegacy=e=>e&&typeof e=="object"&&"default"in e?e:{default:e};function _interopNamespace(e){if(e&&e.__esModule)return e;const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(o,r,a.get?a:{enumerable:!0,get:()=>e[r]})}}return o.default=e,Object.freeze(o)}const React__default=_interopDefaultLegacy(React),React__namespace=_interopNamespace(React),Icon__default=_interopDefaultLegacy(Icon),ReactDOM__default=_interopDefaultLegacy(ReactDOM),k__default=_interopDefaultLegacy(k),Measure__default=_interopDefaultLegacy(Measure),useDeepCompareEffect__default=_interopDefaultLegacy(useDeepCompareEffect),require$$0__default=_interopDefaultLegacy(require$$0),Editor__default=_interopDefaultLegacy(Editor),{Text:Text$3,Title:Title$4}=antd.Typography,alignClass={left:"justify-start",center:"justify-center",right:"justify-end"},Label=e=>{const{ooui:o,align:r,responsiveBehaviour:a}=e,{label:s,tooltip:c,fieldForLabel:l,labelSize:d,labelType:u}=o,p=l!==null&&s.length>1?s+" :":s,I=r||(l?a?"left":"right":"left"),h=d==="text"?Text$3:Title$4;return jsxRuntime.jsxs("div",{className:`flex flex-row items-center pb-1 pt-1 ${alignClass[I]}`,children:[c&&jsxRuntime.jsx(antd.Tooltip,{title:c,children:jsxRuntime.jsx(Icon.QuestionCircleOutlined,{className:"pr-1 text-xs text-blue-400"})}),jsxRuntime.jsx("span",{className:"pr-2",children:jsxRuntime.jsx(h,{level:d!=="text"?d:null,type:u,children:p})})]})},ca_ES={true:"S\xED",false:"No",simple_search:"B\xFAsqueda simple",advanced_search:"B\xFAsqueda avan\xE7ada",search:"Buscar",parameters:"Par\xE0metres",limit:"Limit",first:"Primer",no_results:"No hi ha resultats",summary:"Mostrant resultats des de {from} fins {to} d'un total de {total} registres",welcome:"Benvingut",attachments:"Adjunts",addNewAttachment:"Afegir nou adjunt",listAllAttachments:"Veure tots els adjunts",viewAs:"Veure com",confirmRemoveItem:"Est\xE0s segur de volguer eliminar aquest item?",save:"Desar",delete:"Eliminar",refresh:"Refrescar",previous:"Anterior",next:"Seg\xFCent",actions:"Accions",reports:"Informes",related:"Relacionat",new:"Nou",fillRequiredField:"Siusplau, omple aquest camp obligatori",fillRequiredFields:"Siusplau, omple tots els camps obligatoris",generatingReport:"Generant informe...",confirmation:"Confirmaci\xF3",ok:"D'acord",cancel:"Cancel\xB7lar",formHasErrors:"El formulari t\xE9 errors",unsavedChanges:"Hi ha canvis sense guardar",confirmRefreshWithoutSave:"Est\xE0s segur de volguer refrescar la p\xE0gina sense guardar els canvis?",discardAndRefresh:"Descarta els canvis i refresca",removeItems:"Elimina el registre/s",confirmRemove:"Est\xE0s segur de volguer eliminar els registre/s seleccionats?",yesConfirmRemove:"S\xED, elimina",unlinkItems:"Desenlla\xE7a registre/s",confirmUnlink:"Est\xE0s segur de volguer desenlla\xE7ar els registre/s seleccionats?",yesConfirmUnlink:"S\xED, desenlla\xE7a",confirmCloseWithoutSave:"Est\xE0s segur de volguer tancar aquesta finestra sense guardar?",closeWithoutSaving:"Tancar sense guardar",action:"Acci\xF3",report:"Informe",selectAction:"Selecciona una acci\xF3",download:"Descarrega",clear:"Neteja",open:"Obre",uploadNewImage:"Puja una nova imatge",noCurrentEntries:"No hi ha registres",duplicate:"Duplicar",downloadingAttachment:"Descarregant adjunt...",tree:"llista",form:"formulari",favorites:"Els meus favorits",edit_favorites:"Edita els favorits",no_favorites:"No tens favorits guardats",register:"Registre",of:"de",editingDocument:"Editant document",showLogs:"Veure logs",createdBy:"Creat per l'usuari",creationDate:"Data creaci\xF3",lastUpdatedBy:"\xDAltima modificaci\xF3 per",lastUpdatedDate:"Data \xFAltima modificaci\xF3",goToResourceId:"V\xE9s al recurs amb ID",searchId:"ID de cerca:",idNotFound:"No es troba aquesta id de recurs per l'objecte",selectedRegisters:"registres seleccionats",translate:"Tradu\xEFr",enterTextBeforeTranslate:"Introdueix algun text al camp abans d'afegir traduccions",saveBeforeTranslate:"Heu de desar el registre abans d'afegir les traduccions",configDashboard:"Configurar panell",moveDashboard:"Moure items del panell",openAttachment:"Veure detall de l'adjunt",openAttachmentLink:"Obrir enlla\xE7 de l'adjunt",uninformed:"Sense informar",totalRegisters:"Registres totals:",export:"Exportar",selectAtLeastOneField:"Selecciona almenys un camp per a l'exportaci\xF3"},en_US$5={true:"Yes",false:"No",simple_search:"Simple search",advanced_search:"Advanced search",search:"Search",parameters:"Parameters",limit:"Limit",first:"First",no_results:"No results",summary:"Showing registers from {from} to {to} of {total} registers",welcome:"Welcome",attachments:"Attachments",addNewAttachment:"Add new attachment",listAllAttachments:"View all the attachments",viewAs:"View as",confirmRemoveItem:"Are you sure to remove this item?",save:"Save",delete:"Delete",refresh:"Refresh",previous:"Previous",next:"Next",actions:"Actions",reports:"Reports",related:"Related",new:"New",fillRequiredField:"Please fill this required field",fillRequiredFields:"Please fill all the required fields",generatingReport:"Generating report...",confirmation:"Confirmation",ok:"OK",cancel:"Cancel",formHasErrors:"Form has errors",unsavedChanges:"There are unsaved changes",confirmRefreshWithoutSave:"Do you really want to refresh this window without saving?",discardAndRefresh:"Discard changes and refresh",removeItems:"Remove item/s",confirmRemove:"Are you sure you want to remove the selected item/s?",yesConfirmRemove:"Yes, remove",unlinkItems:"Unlink item/s",confirmUnlink:"Are you sure you want to unlink the selected item/s?",yesConfirmUnlink:"Yes, unlink",confirmCloseWithoutSave:"Do you really want to close this window without saving?",closeWithoutSaving:"Close without saving",action:"Action",report:"Report",selectAction:"Select an action",download:"Download",clear:"Clear",open:"Open",uploadNewImage:"Upload new image",noCurrentEntries:"No current entries",duplicate:"Duplicate",downloadingAttachment:"Downloading attachment...",tree:"list",form:"form",favorites:"My shortcuts",edit_favorites:"Edit shortcuts",no_favorites:"You don't have any shortcuts saved yet",register:"Register",of:"of",editingDocument:"Editing document",showLogs:"Show logs",createdBy:"Created by user",creationDate:"Creation date",lastUpdatedBy:"Last modified by",lastUpdatedDate:"Date of last modification",goToResourceId:"Go to resource ID",searchId:"Search ID:",idNotFound:"Resource ID does not exist for this object!",selectedRegisters:"selected registers",translate:"Translate",enterTextBeforeTranslate:"Enter some text to the related field before adding translations",saveBeforeTranslate:"You must save the record before adding translations",configDashboard:"Setup dashboard",moveDashboard:"Move dashboard items",openAttachment:"Open attachment detail",openAttachmentLink:"Open attachment link",uninformed:"Uninformed",totalRegisters:"Total registers:",export:"Export",selectAtLeastOneField:"Select at least one field for the export"},es_ES={true:"S\xED",false:"No",simple_search:"B\xFAsqueda simple",advanced_search:"B\xFAsqueda avanzada",search:"Buscar",parameters:"Parametros",limit:"L\xEDmite",first:"Primero",no_results:"No hay resultados",summary:"Mostrando resultado desde {from} hasta {to} de un total de {total} registros",welcome:"Bienvenido",attachments:"Adjuntos",addNewAttachment:"A\xF1adir nuevo adjunto",listAllAttachments:"Ver todos los adjuntos",viewAs:"Ver c\xF3mo",confirmRemoveItem:"Est\xE1s seguro de querer eliminar \xE9ste registro?",save:"Guardar",delete:"Eliminar",refresh:"Refrescar",previous:"Anterior",next:"Siguiente",actions:"Acciones",reports:"Informes",related:"Relacionado",new:"Nuevo",fillRequiredField:"Por favor, rellena \xE9ste campo obligatorio",fillRequiredFields:"Por favor, rellena todos los campos obligatorios",generatingReport:"Generando informe...",confirmation:"Confirmaci\xF3m",ok:"De acuerdo",cancel:"Cancelar",formHasErrors:"El formulario tiene errores",unsavedChanges:"Hay cambios sin guardar",confirmRefreshWithoutSave:"Est\xE1s seguro de querer refrescar la p\xE1gina sin guardar los cambios?",discardAndRefresh:"Descarta los cambios y refresca",removeItems:"Eliminar el registro/s",confirmRemove:"Est\xE1s seguro de querer eliminar los registro/s seleccionados?",yesConfirmRemove:"S\xED, elimina",unlinkItems:"Desenlaza registro/s",confirmUnlink:"Est\xE1s seguro de querer desenlazar los registro/s seleccionados?",yesConfirmUnlink:"S\xED, desenlaza",confirmCloseWithoutSave:"Est\xE1s seguro de querer cerrar \xE9sta ventana sin cerrar?",closeWithoutSaving:"Cerrar sin guardar",action:"Acci\xF3n",report:"Informe",selectAction:"Selecciona una acci\xF3n",download:"Descarga",clear:"Limpiar",open:"Abrir",uploadNewImage:"Subir una nueva im\xE1gen",noCurrentEntries:"No hay registros",duplicate:"Duplicar",downloadingAttachment:"Descargando adjunto...",tree:"lista",form:"formulario",favorites:"Mis favoritos",edit_favorites:"Edita los favoritos",no_favorites:"No tienes favoritos guardados",register:"Registro",of:"de",editingDocument:"Editando documento",showLogs:"Ver logs",createdBy:"Creado por el usuario",creationDate:"Fecha creaci\xF3n",lastUpdatedBy:"\xDAltima modificaci\xF3n por",lastUpdatedDate:"Fecha \xFAltima modificaci\xF3n",goToResourceId:"Ir al recurso con ID",searchId:"ID de b\xFAsqueda:",idNotFound:"No se encuentra \xE9sta ID de recursos para el objeto",selectedRegisters:"registros seleccionados",translate:"Traducir",enterTextBeforeTranslate:"Introduce algun texto en el campo antes de a\xF1adir traducciones",saveBeforeTranslate:"Tienes que guardar el registro antes de a\xF1adir las traducciones",configDashboard:"Configurar panel",moveDashboard:"Mover items del panel",openAttachment:"Ver detalle del adjunto",openAttachmentLink:"Abrir enlace del adjunto",uninformed:"Sin informar",totalRegisters:"Registros totales:",export:"Exportar",selectAtLeastOneField:"Selecciona al menos un campo para la exportaci\xF3n"},localeStrings={ca_ES,en_US:en_US$5,es_ES},LocaleContext=React__default.default.createContext(null),LocaleContextProvider=e=>{const{children:o,lang:r}=e;function a(s){return tForLang(s,r)}return jsxRuntime.jsx(LocaleContext.Provider,{value:{lang:r,t:a},children:o})},tForLang=(e,o)=>{var a;return((a=localeStrings[o])==null?void 0:a[e])||e};function Field$1({ooui:e,children:o,layout:r="horizontal",valuePropName:a,showLabel:s=!1,alignLabel:c="left",required:l=!1,type:d,validator:u}){const{id:f,label:p,tooltip:m}=e,{t:I}=React.useContext(LocaleContext),h=l?[{required:!0,message:I("fillRequiredField"),type:d,validator:u}]:void 0,v=()=>jsxRuntime.jsx(antd.Form.Item,{className:"mb-0",name:f,valuePropName:a,rules:h,children:o});if(!s)return v();const C=jsxRuntime.jsx(Label,{ooui:new ooui.Label({name:f+"_label",string:p,help:m,fieldForLabel:f}),align:c});return r==="horizontal"?(()=>jsxRuntime.jsxs(antd.Row,{align:"middle",className:"pb-1 pt-1",children:[jsxRuntime.jsx(antd.Col,{className:"ml-2",flex:"7rem",children:jsxRuntime.jsx("div",{className:"flex flex-col items-end",children:C})}),jsxRuntime.jsx(antd.Col,{flex:"auto",children:v()})]}))():(()=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[C,v()]}))()}const{confirm:confirm$4}=antd.Modal,showDialog$9=({onOk:e,confirmMessage:o,lang:r})=>{confirm$4({title:tForLang("confirmation",r),icon:jsxRuntime.jsx(Icon.ExclamationCircleOutlined,{}),centered:!0,content:o,okText:tForLang("ok",r),cancelText:tForLang("cancel",r),onOk:e})},FormContext$1=React__default.default.createContext(null),FormProvider$1=e=>{const{children:o,activeId:r,activeModel:a,setFieldValue:s,getFieldValue:c,executeButtonAction:l,getContext:d,getValues:u,getPlainValues:f,setOriginalValue:p,domain:m,submitForm:I,fetchValues:h,formHasChanges:v,elementHasLostFocus:C,getFields:b}=e;return jsxRuntime.jsx(FormContext$1.Provider,{value:{domain:m,getValues:u,getPlainValues:f,getFields:b,activeId:r,activeModel:a,setFieldValue:s,getFieldValue:c,executeButtonAction:l,getContext:d,setOriginalValue:p,submitForm:I,fetchValues:h,formHasChanges:v,elementHasLostFocus:C},children:o})},AntIcons={AccountBookFilled:Icon.AccountBookFilled,AccountBookOutlined:Icon.AccountBookOutlined,AccountBookTwoTone:Icon.AccountBookTwoTone,AimOutlined:Icon.AimOutlined,AlertFilled:Icon.AlertFilled,AlertOutlined:Icon.AlertOutlined,AlertTwoTone:Icon.AlertTwoTone,AlibabaOutlined:Icon.AlibabaOutlined,AlignCenterOutlined:Icon.AlignCenterOutlined,AlignLeftOutlined:Icon.AlignLeftOutlined,AlignRightOutlined:Icon.AlignRightOutlined,AlipayCircleFilled:Icon.AlipayCircleFilled,AlipayCircleOutlined:Icon.AlipayCircleOutlined,AlipayOutlined:Icon.AlipayOutlined,AlipaySquareFilled:Icon.AlipaySquareFilled,AliwangwangFilled:Icon.AliwangwangFilled,AliwangwangOutlined:Icon.AliwangwangOutlined,AliyunOutlined:Icon.AliyunOutlined,AmazonCircleFilled:Icon.AmazonCircleFilled,AmazonOutlined:Icon.AmazonOutlined,AmazonSquareFilled:Icon.AmazonSquareFilled,AndroidFilled:Icon.AndroidFilled,AndroidOutlined:Icon.AndroidOutlined,AntCloudOutlined:Icon.AntCloudOutlined,AntDesignOutlined:Icon.AntDesignOutlined,ApartmentOutlined:Icon.ApartmentOutlined,ApiFilled:Icon.ApiFilled,ApiOutlined:Icon.ApiOutlined,ApiTwoTone:Icon.ApiTwoTone,AppleFilled:Icon.AppleFilled,AppleOutlined:Icon.AppleOutlined,AppstoreAddOutlined:Icon.AppstoreAddOutlined,AppstoreFilled:Icon.AppstoreFilled,AppstoreOutlined:Icon.AppstoreOutlined,AppstoreTwoTone:Icon.AppstoreTwoTone,AreaChartOutlined:Icon.AreaChartOutlined,ArrowDownOutlined:Icon.ArrowDownOutlined,ArrowLeftOutlined:Icon.ArrowLeftOutlined,ArrowRightOutlined:Icon.ArrowRightOutlined,ArrowUpOutlined:Icon.ArrowUpOutlined,ArrowsAltOutlined:Icon.ArrowsAltOutlined,AudioFilled:Icon.AudioFilled,AudioMutedOutlined:Icon.AudioMutedOutlined,AudioOutlined:Icon.AudioOutlined,AudioTwoTone:Icon.AudioTwoTone,AuditOutlined:Icon.AuditOutlined,BackwardFilled:Icon.BackwardFilled,BackwardOutlined:Icon.BackwardOutlined,BankFilled:Icon.BankFilled,BankOutlined:Icon.BankOutlined,BankTwoTone:Icon.BankTwoTone,BarChartOutlined:Icon.BarChartOutlined,BarcodeOutlined:Icon.BarcodeOutlined,BarsOutlined:Icon.BarsOutlined,BehanceCircleFilled:Icon.BehanceCircleFilled,BehanceOutlined:Icon.BehanceOutlined,BehanceSquareFilled:Icon.BehanceSquareFilled,BehanceSquareOutlined:Icon.BehanceSquareOutlined,BellFilled:Icon.BellFilled,BellOutlined:Icon.BellOutlined,BellTwoTone:Icon.BellTwoTone,BgColorsOutlined:Icon.BgColorsOutlined,BlockOutlined:Icon.BlockOutlined,BoldOutlined:Icon.BoldOutlined,BookFilled:Icon.BookFilled,BookOutlined:Icon.BookOutlined,BookTwoTone:Icon.BookTwoTone,BorderBottomOutlined:Icon.BorderBottomOutlined,BorderHorizontalOutlined:Icon.BorderHorizontalOutlined,BorderInnerOutlined:Icon.BorderInnerOutlined,BorderLeftOutlined:Icon.BorderLeftOutlined,BorderOuterOutlined:Icon.BorderOuterOutlined,BorderOutlined:Icon.BorderOutlined,BorderRightOutlined:Icon.BorderRightOutlined,BorderTopOutlined:Icon.BorderTopOutlined,BorderVerticleOutlined:Icon.BorderVerticleOutlined,BorderlessTableOutlined:Icon.BorderlessTableOutlined,BoxPlotFilled:Icon.BoxPlotFilled,BoxPlotOutlined:Icon.BoxPlotOutlined,BoxPlotTwoTone:Icon.BoxPlotTwoTone,BranchesOutlined:Icon.BranchesOutlined,BugFilled:Icon.BugFilled,BugOutlined:Icon.BugOutlined,BugTwoTone:Icon.BugTwoTone,BuildFilled:Icon.BuildFilled,BuildOutlined:Icon.BuildOutlined,BuildTwoTone:Icon.BuildTwoTone,BulbFilled:Icon.BulbFilled,BulbOutlined:Icon.BulbOutlined,BulbTwoTone:Icon.BulbTwoTone,CalculatorFilled:Icon.CalculatorFilled,CalculatorOutlined:Icon.CalculatorOutlined,CalculatorTwoTone:Icon.CalculatorTwoTone,CalendarFilled:Icon.CalendarFilled,CalendarOutlined:Icon.CalendarOutlined,CalendarTwoTone:Icon.CalendarTwoTone,CameraFilled:Icon.CameraFilled,CameraOutlined:Icon.CameraOutlined,CameraTwoTone:Icon.CameraTwoTone,CarFilled:Icon.CarFilled,CarOutlined:Icon.CarOutlined,CarTwoTone:Icon.CarTwoTone,CaretDownFilled:Icon.CaretDownFilled,CaretDownOutlined:Icon.CaretDownOutlined,CaretLeftFilled:Icon.CaretLeftFilled,CaretLeftOutlined:Icon.CaretLeftOutlined,CaretRightFilled:Icon.CaretRightFilled,CaretRightOutlined:Icon.CaretRightOutlined,CaretUpFilled:Icon.CaretUpFilled,CaretUpOutlined:Icon.CaretUpOutlined,CarryOutFilled:Icon.CarryOutFilled,CarryOutOutlined:Icon.CarryOutOutlined,CarryOutTwoTone:Icon.CarryOutTwoTone,CheckCircleFilled:Icon.CheckCircleFilled,CheckCircleOutlined:Icon.CheckCircleOutlined,CheckCircleTwoTone:Icon.CheckCircleTwoTone,CheckOutlined:Icon.CheckOutlined,CheckSquareFilled:Icon.CheckSquareFilled,CheckSquareOutlined:Icon.CheckSquareOutlined,CheckSquareTwoTone:Icon.CheckSquareTwoTone,ChromeFilled:Icon.ChromeFilled,ChromeOutlined:Icon.ChromeOutlined,CiCircleFilled:Icon.CiCircleFilled,CiCircleOutlined:Icon.CiCircleOutlined,CiCircleTwoTone:Icon.CiCircleTwoTone,CiOutlined:Icon.CiOutlined,CiTwoTone:Icon.CiTwoTone,ClearOutlined:Icon.ClearOutlined,ClockCircleFilled:Icon.ClockCircleFilled,ClockCircleOutlined:Icon.ClockCircleOutlined,ClockCircleTwoTone:Icon.ClockCircleTwoTone,CloseCircleFilled:Icon.CloseCircleFilled,CloseCircleOutlined:Icon.CloseCircleOutlined,CloseCircleTwoTone:Icon.CloseCircleTwoTone,CloseOutlined:Icon.CloseOutlined,CloseSquareFilled:Icon.CloseSquareFilled,CloseSquareOutlined:Icon.CloseSquareOutlined,CloseSquareTwoTone:Icon.CloseSquareTwoTone,CloudDownloadOutlined:Icon.CloudDownloadOutlined,CloudFilled:Icon.CloudFilled,CloudOutlined:Icon.CloudOutlined,CloudServerOutlined:Icon.CloudServerOutlined,CloudSyncOutlined:Icon.CloudSyncOutlined,CloudTwoTone:Icon.CloudTwoTone,CloudUploadOutlined:Icon.CloudUploadOutlined,ClusterOutlined:Icon.ClusterOutlined,CodeFilled:Icon.CodeFilled,CodeOutlined:Icon.CodeOutlined,CodeSandboxCircleFilled:Icon.CodeSandboxCircleFilled,CodeSandboxOutlined:Icon.CodeSandboxOutlined,CodeSandboxSquareFilled:Icon.CodeSandboxSquareFilled,CodeTwoTone:Icon.CodeTwoTone,CodepenCircleFilled:Icon.CodepenCircleFilled,CodepenCircleOutlined:Icon.CodepenCircleOutlined,CodepenOutlined:Icon.CodepenOutlined,CodepenSquareFilled:Icon.CodepenSquareFilled,CoffeeOutlined:Icon.CoffeeOutlined,ColumnHeightOutlined:Icon.ColumnHeightOutlined,ColumnWidthOutlined:Icon.ColumnWidthOutlined,CommentOutlined:Icon.CommentOutlined,CompassFilled:Icon.CompassFilled,CompassOutlined:Icon.CompassOutlined,CompassTwoTone:Icon.CompassTwoTone,CompressOutlined:Icon.CompressOutlined,ConsoleSqlOutlined:Icon.ConsoleSqlOutlined,ContactsFilled:Icon.ContactsFilled,ContactsOutlined:Icon.ContactsOutlined,ContactsTwoTone:Icon.ContactsTwoTone,ContainerFilled:Icon.ContainerFilled,ContainerOutlined:Icon.ContainerOutlined,ContainerTwoTone:Icon.ContainerTwoTone,ControlFilled:Icon.ControlFilled,ControlOutlined:Icon.ControlOutlined,ControlTwoTone:Icon.ControlTwoTone,CopyFilled:Icon.CopyFilled,CopyOutlined:Icon.CopyOutlined,CopyTwoTone:Icon.CopyTwoTone,CopyrightCircleFilled:Icon.CopyrightCircleFilled,CopyrightCircleOutlined:Icon.CopyrightCircleOutlined,CopyrightCircleTwoTone:Icon.CopyrightCircleTwoTone,CopyrightOutlined:Icon.CopyrightOutlined,CopyrightTwoTone:Icon.CopyrightTwoTone,CreditCardFilled:Icon.CreditCardFilled,CreditCardOutlined:Icon.CreditCardOutlined,CreditCardTwoTone:Icon.CreditCardTwoTone,CrownFilled:Icon.CrownFilled,CrownOutlined:Icon.CrownOutlined,CrownTwoTone:Icon.CrownTwoTone,CustomerServiceFilled:Icon.CustomerServiceFilled,CustomerServiceOutlined:Icon.CustomerServiceOutlined,CustomerServiceTwoTone:Icon.CustomerServiceTwoTone,DashOutlined:Icon.DashOutlined,DashboardFilled:Icon.DashboardFilled,DashboardOutlined:Icon.DashboardOutlined,DashboardTwoTone:Icon.DashboardTwoTone,DatabaseFilled:Icon.DatabaseFilled,DatabaseOutlined:Icon.DatabaseOutlined,DatabaseTwoTone:Icon.DatabaseTwoTone,DeleteColumnOutlined:Icon.DeleteColumnOutlined,DeleteFilled:Icon.DeleteFilled,DeleteOutlined:Icon.DeleteOutlined,DeleteRowOutlined:Icon.DeleteRowOutlined,DeleteTwoTone:Icon.DeleteTwoTone,DeliveredProcedureOutlined:Icon.DeliveredProcedureOutlined,DeploymentUnitOutlined:Icon.DeploymentUnitOutlined,DesktopOutlined:Icon.DesktopOutlined,DiffFilled:Icon.DiffFilled,DiffOutlined:Icon.DiffOutlined,DiffTwoTone:Icon.DiffTwoTone,DingdingOutlined:Icon.DingdingOutlined,DingtalkCircleFilled:Icon.DingtalkCircleFilled,DingtalkOutlined:Icon.DingtalkOutlined,DingtalkSquareFilled:Icon.DingtalkSquareFilled,DisconnectOutlined:Icon.DisconnectOutlined,DislikeFilled:Icon.DislikeFilled,DislikeOutlined:Icon.DislikeOutlined,DislikeTwoTone:Icon.DislikeTwoTone,DollarCircleFilled:Icon.DollarCircleFilled,DollarCircleOutlined:Icon.DollarCircleOutlined,DollarCircleTwoTone:Icon.DollarCircleTwoTone,DollarOutlined:Icon.DollarOutlined,DollarTwoTone:Icon.DollarTwoTone,DotChartOutlined:Icon.DotChartOutlined,DoubleLeftOutlined:Icon.DoubleLeftOutlined,DoubleRightOutlined:Icon.DoubleRightOutlined,DownCircleFilled:Icon.DownCircleFilled,DownCircleOutlined:Icon.DownCircleOutlined,DownCircleTwoTone:Icon.DownCircleTwoTone,DownOutlined:Icon.DownOutlined,DownSquareFilled:Icon.DownSquareFilled,DownSquareOutlined:Icon.DownSquareOutlined,DownSquareTwoTone:Icon.DownSquareTwoTone,DownloadOutlined:Icon.DownloadOutlined,DragOutlined:Icon.DragOutlined,DribbbleCircleFilled:Icon.DribbbleCircleFilled,DribbbleOutlined:Icon.DribbbleOutlined,DribbbleSquareFilled:Icon.DribbbleSquareFilled,DribbbleSquareOutlined:Icon.DribbbleSquareOutlined,DropboxCircleFilled:Icon.DropboxCircleFilled,DropboxOutlined:Icon.DropboxOutlined,DropboxSquareFilled:Icon.DropboxSquareFilled,EditFilled:Icon.EditFilled,EditOutlined:Icon.EditOutlined,EditTwoTone:Icon.EditTwoTone,EllipsisOutlined:Icon.EllipsisOutlined,EnterOutlined:Icon.EnterOutlined,EnvironmentFilled:Icon.EnvironmentFilled,EnvironmentOutlined:Icon.EnvironmentOutlined,EnvironmentTwoTone:Icon.EnvironmentTwoTone,EuroCircleFilled:Icon.EuroCircleFilled,EuroCircleOutlined:Icon.EuroCircleOutlined,EuroCircleTwoTone:Icon.EuroCircleTwoTone,EuroOutlined:Icon.EuroOutlined,EuroTwoTone:Icon.EuroTwoTone,ExceptionOutlined:Icon.ExceptionOutlined,ExclamationCircleFilled:Icon.ExclamationCircleFilled,ExclamationCircleOutlined:Icon.ExclamationCircleOutlined,ExclamationCircleTwoTone:Icon.ExclamationCircleTwoTone,ExclamationOutlined:Icon.ExclamationOutlined,ExpandAltOutlined:Icon.ExpandAltOutlined,ExpandOutlined:Icon.ExpandOutlined,ExperimentFilled:Icon.ExperimentFilled,ExperimentOutlined:Icon.ExperimentOutlined,ExperimentTwoTone:Icon.ExperimentTwoTone,ExportOutlined:Icon.ExportOutlined,EyeFilled:Icon.EyeFilled,EyeInvisibleFilled:Icon.EyeInvisibleFilled,EyeInvisibleOutlined:Icon.EyeInvisibleOutlined,EyeInvisibleTwoTone:Icon.EyeInvisibleTwoTone,EyeOutlined:Icon.EyeOutlined,EyeTwoTone:Icon.EyeTwoTone,FacebookFilled:Icon.FacebookFilled,FacebookOutlined:Icon.FacebookOutlined,FallOutlined:Icon.FallOutlined,FastBackwardFilled:Icon.FastBackwardFilled,FastBackwardOutlined:Icon.FastBackwardOutlined,FastForwardFilled:Icon.FastForwardFilled,FastForwardOutlined:Icon.FastForwardOutlined,FieldBinaryOutlined:Icon.FieldBinaryOutlined,FieldNumberOutlined:Icon.FieldNumberOutlined,FieldStringOutlined:Icon.FieldStringOutlined,FieldTimeOutlined:Icon.FieldTimeOutlined,FileAddFilled:Icon.FileAddFilled,FileAddOutlined:Icon.FileAddOutlined,FileAddTwoTone:Icon.FileAddTwoTone,FileDoneOutlined:Icon.FileDoneOutlined,FileExcelFilled:Icon.FileExcelFilled,FileExcelOutlined:Icon.FileExcelOutlined,FileExcelTwoTone:Icon.FileExcelTwoTone,FileExclamationFilled:Icon.FileExclamationFilled,FileExclamationOutlined:Icon.FileExclamationOutlined,FileExclamationTwoTone:Icon.FileExclamationTwoTone,FileFilled:Icon.FileFilled,FileGifOutlined:Icon.FileGifOutlined,FileImageFilled:Icon.FileImageFilled,FileImageOutlined:Icon.FileImageOutlined,FileImageTwoTone:Icon.FileImageTwoTone,FileJpgOutlined:Icon.FileJpgOutlined,FileMarkdownFilled:Icon.FileMarkdownFilled,FileMarkdownOutlined:Icon.FileMarkdownOutlined,FileMarkdownTwoTone:Icon.FileMarkdownTwoTone,FileOutlined:Icon.FileOutlined,FilePdfFilled:Icon.FilePdfFilled,FilePdfOutlined:Icon.FilePdfOutlined,FilePdfTwoTone:Icon.FilePdfTwoTone,FilePptFilled:Icon.FilePptFilled,FilePptOutlined:Icon.FilePptOutlined,FilePptTwoTone:Icon.FilePptTwoTone,FileProtectOutlined:Icon.FileProtectOutlined,FileSearchOutlined:Icon.FileSearchOutlined,FileSyncOutlined:Icon.FileSyncOutlined,FileTextFilled:Icon.FileTextFilled,FileTextOutlined:Icon.FileTextOutlined,FileTextTwoTone:Icon.FileTextTwoTone,FileTwoTone:Icon.FileTwoTone,FileUnknownFilled:Icon.FileUnknownFilled,FileUnknownOutlined:Icon.FileUnknownOutlined,FileUnknownTwoTone:Icon.FileUnknownTwoTone,FileWordFilled:Icon.FileWordFilled,FileWordOutlined:Icon.FileWordOutlined,FileWordTwoTone:Icon.FileWordTwoTone,FileZipFilled:Icon.FileZipFilled,FileZipOutlined:Icon.FileZipOutlined,FileZipTwoTone:Icon.FileZipTwoTone,FilterFilled:Icon.FilterFilled,FilterOutlined:Icon.FilterOutlined,FilterTwoTone:Icon.FilterTwoTone,FireFilled:Icon.FireFilled,FireOutlined:Icon.FireOutlined,FireTwoTone:Icon.FireTwoTone,FlagFilled:Icon.FlagFilled,FlagOutlined:Icon.FlagOutlined,FlagTwoTone:Icon.FlagTwoTone,FolderAddFilled:Icon.FolderAddFilled,FolderAddOutlined:Icon.FolderAddOutlined,FolderAddTwoTone:Icon.FolderAddTwoTone,FolderFilled:Icon.FolderFilled,FolderOpenFilled:Icon.FolderOpenFilled,FolderOpenOutlined:Icon.FolderOpenOutlined,FolderOpenTwoTone:Icon.FolderOpenTwoTone,FolderOutlined:Icon.FolderOutlined,FolderTwoTone:Icon.FolderTwoTone,FolderViewOutlined:Icon.FolderViewOutlined,FontColorsOutlined:Icon.FontColorsOutlined,FontSizeOutlined:Icon.FontSizeOutlined,ForkOutlined:Icon.ForkOutlined,FormOutlined:Icon.FormOutlined,FormatPainterFilled:Icon.FormatPainterFilled,FormatPainterOutlined:Icon.FormatPainterOutlined,ForwardFilled:Icon.ForwardFilled,ForwardOutlined:Icon.ForwardOutlined,FrownFilled:Icon.FrownFilled,FrownOutlined:Icon.FrownOutlined,FrownTwoTone:Icon.FrownTwoTone,FullscreenExitOutlined:Icon.FullscreenExitOutlined,FullscreenOutlined:Icon.FullscreenOutlined,FunctionOutlined:Icon.FunctionOutlined,FundFilled:Icon.FundFilled,FundOutlined:Icon.FundOutlined,FundProjectionScreenOutlined:Icon.FundProjectionScreenOutlined,FundTwoTone:Icon.FundTwoTone,FundViewOutlined:Icon.FundViewOutlined,FunnelPlotFilled:Icon.FunnelPlotFilled,FunnelPlotOutlined:Icon.FunnelPlotOutlined,FunnelPlotTwoTone:Icon.FunnelPlotTwoTone,GatewayOutlined:Icon.GatewayOutlined,GifOutlined:Icon.GifOutlined,GiftFilled:Icon.GiftFilled,GiftOutlined:Icon.GiftOutlined,GiftTwoTone:Icon.GiftTwoTone,GithubFilled:Icon.GithubFilled,GithubOutlined:Icon.GithubOutlined,GitlabFilled:Icon.GitlabFilled,GitlabOutlined:Icon.GitlabOutlined,GlobalOutlined:Icon.GlobalOutlined,GoldFilled:Icon.GoldFilled,GoldOutlined:Icon.GoldOutlined,GoldTwoTone:Icon.GoldTwoTone,GoldenFilled:Icon.GoldenFilled,GoogleCircleFilled:Icon.GoogleCircleFilled,GoogleOutlined:Icon.GoogleOutlined,GooglePlusCircleFilled:Icon.GooglePlusCircleFilled,GooglePlusOutlined:Icon.GooglePlusOutlined,GooglePlusSquareFilled:Icon.GooglePlusSquareFilled,GoogleSquareFilled:Icon.GoogleSquareFilled,GroupOutlined:Icon.GroupOutlined,HddFilled:Icon.HddFilled,HddOutlined:Icon.HddOutlined,HddTwoTone:Icon.HddTwoTone,HeartFilled:Icon.HeartFilled,HeartOutlined:Icon.HeartOutlined,HeartTwoTone:Icon.HeartTwoTone,HeatMapOutlined:Icon.HeatMapOutlined,HighlightFilled:Icon.HighlightFilled,HighlightOutlined:Icon.HighlightOutlined,HighlightTwoTone:Icon.HighlightTwoTone,HistoryOutlined:Icon.HistoryOutlined,HolderOutlined:Icon.HolderOutlined,HomeFilled:Icon.HomeFilled,HomeOutlined:Icon.HomeOutlined,HomeTwoTone:Icon.HomeTwoTone,HourglassFilled:Icon.HourglassFilled,HourglassOutlined:Icon.HourglassOutlined,HourglassTwoTone:Icon.HourglassTwoTone,Html5Filled:Icon.Html5Filled,Html5Outlined:Icon.Html5Outlined,Html5TwoTone:Icon.Html5TwoTone,IdcardFilled:Icon.IdcardFilled,IdcardOutlined:Icon.IdcardOutlined,IdcardTwoTone:Icon.IdcardTwoTone,IeCircleFilled:Icon.IeCircleFilled,IeOutlined:Icon.IeOutlined,IeSquareFilled:Icon.IeSquareFilled,ImportOutlined:Icon.ImportOutlined,InboxOutlined:Icon.InboxOutlined,InfoCircleFilled:Icon.InfoCircleFilled,InfoCircleOutlined:Icon.InfoCircleOutlined,InfoCircleTwoTone:Icon.InfoCircleTwoTone,InfoOutlined:Icon.InfoOutlined,InsertRowAboveOutlined:Icon.InsertRowAboveOutlined,InsertRowBelowOutlined:Icon.InsertRowBelowOutlined,InsertRowLeftOutlined:Icon.InsertRowLeftOutlined,InsertRowRightOutlined:Icon.InsertRowRightOutlined,InstagramFilled:Icon.InstagramFilled,InstagramOutlined:Icon.InstagramOutlined,InsuranceFilled:Icon.InsuranceFilled,InsuranceOutlined:Icon.InsuranceOutlined,InsuranceTwoTone:Icon.InsuranceTwoTone,InteractionFilled:Icon.InteractionFilled,InteractionOutlined:Icon.InteractionOutlined,InteractionTwoTone:Icon.InteractionTwoTone,IssuesCloseOutlined:Icon.IssuesCloseOutlined,ItalicOutlined:Icon.ItalicOutlined,KeyOutlined:Icon.KeyOutlined,LaptopOutlined:Icon.LaptopOutlined,LayoutFilled:Icon.LayoutFilled,LayoutOutlined:Icon.LayoutOutlined,LayoutTwoTone:Icon.LayoutTwoTone,LeftCircleFilled:Icon.LeftCircleFilled,LeftCircleOutlined:Icon.LeftCircleOutlined,LeftCircleTwoTone:Icon.LeftCircleTwoTone,LeftOutlined:Icon.LeftOutlined,LeftSquareFilled:Icon.LeftSquareFilled,LeftSquareOutlined:Icon.LeftSquareOutlined,LeftSquareTwoTone:Icon.LeftSquareTwoTone,LikeFilled:Icon.LikeFilled,LikeOutlined:Icon.LikeOutlined,LikeTwoTone:Icon.LikeTwoTone,LineChartOutlined:Icon.LineChartOutlined,LineHeightOutlined:Icon.LineHeightOutlined,LineOutlined:Icon.LineOutlined,LinkOutlined:Icon.LinkOutlined,LinkedinFilled:Icon.LinkedinFilled,LinkedinOutlined:Icon.LinkedinOutlined,Loading3QuartersOutlined:Icon.Loading3QuartersOutlined,LoadingOutlined:Icon.LoadingOutlined,LockFilled:Icon.LockFilled,LockOutlined:Icon.LockOutlined,LockTwoTone:Icon.LockTwoTone,LoginOutlined:Icon.LoginOutlined,LogoutOutlined:Icon.LogoutOutlined,MacCommandFilled:Icon.MacCommandFilled,MacCommandOutlined:Icon.MacCommandOutlined,MailFilled:Icon.MailFilled,MailOutlined:Icon.MailOutlined,MailTwoTone:Icon.MailTwoTone,ManOutlined:Icon.ManOutlined,MedicineBoxFilled:Icon.MedicineBoxFilled,MedicineBoxOutlined:Icon.MedicineBoxOutlined,MedicineBoxTwoTone:Icon.MedicineBoxTwoTone,MediumCircleFilled:Icon.MediumCircleFilled,MediumOutlined:Icon.MediumOutlined,MediumSquareFilled:Icon.MediumSquareFilled,MediumWorkmarkOutlined:Icon.MediumWorkmarkOutlined,MehFilled:Icon.MehFilled,MehOutlined:Icon.MehOutlined,MehTwoTone:Icon.MehTwoTone,MenuFoldOutlined:Icon.MenuFoldOutlined,MenuOutlined:Icon.MenuOutlined,MenuUnfoldOutlined:Icon.MenuUnfoldOutlined,MergeCellsOutlined:Icon.MergeCellsOutlined,MessageFilled:Icon.MessageFilled,MessageOutlined:Icon.MessageOutlined,MessageTwoTone:Icon.MessageTwoTone,MinusCircleFilled:Icon.MinusCircleFilled,MinusCircleOutlined:Icon.MinusCircleOutlined,MinusCircleTwoTone:Icon.MinusCircleTwoTone,MinusOutlined:Icon.MinusOutlined,MinusSquareFilled:Icon.MinusSquareFilled,MinusSquareOutlined:Icon.MinusSquareOutlined,MinusSquareTwoTone:Icon.MinusSquareTwoTone,MobileFilled:Icon.MobileFilled,MobileOutlined:Icon.MobileOutlined,MobileTwoTone:Icon.MobileTwoTone,MoneyCollectFilled:Icon.MoneyCollectFilled,MoneyCollectOutlined:Icon.MoneyCollectOutlined,MoneyCollectTwoTone:Icon.MoneyCollectTwoTone,MonitorOutlined:Icon.MonitorOutlined,MoreOutlined:Icon.MoreOutlined,NodeCollapseOutlined:Icon.NodeCollapseOutlined,NodeExpandOutlined:Icon.NodeExpandOutlined,NodeIndexOutlined:Icon.NodeIndexOutlined,NotificationFilled:Icon.NotificationFilled,NotificationOutlined:Icon.NotificationOutlined,NotificationTwoTone:Icon.NotificationTwoTone,NumberOutlined:Icon.NumberOutlined,OneToOneOutlined:Icon.OneToOneOutlined,OrderedListOutlined:Icon.OrderedListOutlined,PaperClipOutlined:Icon.PaperClipOutlined,PartitionOutlined:Icon.PartitionOutlined,PauseCircleFilled:Icon.PauseCircleFilled,PauseCircleOutlined:Icon.PauseCircleOutlined,PauseCircleTwoTone:Icon.PauseCircleTwoTone,PauseOutlined:Icon.PauseOutlined,PayCircleFilled:Icon.PayCircleFilled,PayCircleOutlined:Icon.PayCircleOutlined,PercentageOutlined:Icon.PercentageOutlined,PhoneFilled:Icon.PhoneFilled,PhoneOutlined:Icon.PhoneOutlined,PhoneTwoTone:Icon.PhoneTwoTone,PicCenterOutlined:Icon.PicCenterOutlined,PicLeftOutlined:Icon.PicLeftOutlined,PicRightOutlined:Icon.PicRightOutlined,PictureFilled:Icon.PictureFilled,PictureOutlined:Icon.PictureOutlined,PictureTwoTone:Icon.PictureTwoTone,PieChartFilled:Icon.PieChartFilled,PieChartOutlined:Icon.PieChartOutlined,PieChartTwoTone:Icon.PieChartTwoTone,PlayCircleFilled:Icon.PlayCircleFilled,PlayCircleOutlined:Icon.PlayCircleOutlined,PlayCircleTwoTone:Icon.PlayCircleTwoTone,PlaySquareFilled:Icon.PlaySquareFilled,PlaySquareOutlined:Icon.PlaySquareOutlined,PlaySquareTwoTone:Icon.PlaySquareTwoTone,PlusCircleFilled:Icon.PlusCircleFilled,PlusCircleOutlined:Icon.PlusCircleOutlined,PlusCircleTwoTone:Icon.PlusCircleTwoTone,PlusOutlined:Icon.PlusOutlined,PlusSquareFilled:Icon.PlusSquareFilled,PlusSquareOutlined:Icon.PlusSquareOutlined,PlusSquareTwoTone:Icon.PlusSquareTwoTone,PoundCircleFilled:Icon.PoundCircleFilled,PoundCircleOutlined:Icon.PoundCircleOutlined,PoundCircleTwoTone:Icon.PoundCircleTwoTone,PoundOutlined:Icon.PoundOutlined,PoweroffOutlined:Icon.PoweroffOutlined,PrinterFilled:Icon.PrinterFilled,PrinterOutlined:Icon.PrinterOutlined,PrinterTwoTone:Icon.PrinterTwoTone,ProfileFilled:Icon.ProfileFilled,ProfileOutlined:Icon.ProfileOutlined,ProfileTwoTone:Icon.ProfileTwoTone,ProjectFilled:Icon.ProjectFilled,ProjectOutlined:Icon.ProjectOutlined,ProjectTwoTone:Icon.ProjectTwoTone,PropertySafetyFilled:Icon.PropertySafetyFilled,PropertySafetyOutlined:Icon.PropertySafetyOutlined,PropertySafetyTwoTone:Icon.PropertySafetyTwoTone,PullRequestOutlined:Icon.PullRequestOutlined,PushpinFilled:Icon.PushpinFilled,PushpinOutlined:Icon.PushpinOutlined,PushpinTwoTone:Icon.PushpinTwoTone,QqCircleFilled:Icon.QqCircleFilled,QqOutlined:Icon.QqOutlined,QqSquareFilled:Icon.QqSquareFilled,QrcodeOutlined:Icon.QrcodeOutlined,QuestionCircleFilled:Icon.QuestionCircleFilled,QuestionCircleOutlined:Icon.QuestionCircleOutlined,QuestionCircleTwoTone:Icon.QuestionCircleTwoTone,QuestionOutlined:Icon.QuestionOutlined,RadarChartOutlined:Icon.RadarChartOutlined,RadiusBottomleftOutlined:Icon.RadiusBottomleftOutlined,RadiusBottomrightOutlined:Icon.RadiusBottomrightOutlined,RadiusSettingOutlined:Icon.RadiusSettingOutlined,RadiusUpleftOutlined:Icon.RadiusUpleftOutlined,RadiusUprightOutlined:Icon.RadiusUprightOutlined,ReadFilled:Icon.ReadFilled,ReadOutlined:Icon.ReadOutlined,ReconciliationFilled:Icon.ReconciliationFilled,ReconciliationOutlined:Icon.ReconciliationOutlined,ReconciliationTwoTone:Icon.ReconciliationTwoTone,RedEnvelopeFilled:Icon.RedEnvelopeFilled,RedEnvelopeOutlined:Icon.RedEnvelopeOutlined,RedEnvelopeTwoTone:Icon.RedEnvelopeTwoTone,RedditCircleFilled:Icon.RedditCircleFilled,RedditOutlined:Icon.RedditOutlined,RedditSquareFilled:Icon.RedditSquareFilled,RedoOutlined:Icon.RedoOutlined,ReloadOutlined:Icon.ReloadOutlined,RestFilled:Icon.RestFilled,RestOutlined:Icon.RestOutlined,RestTwoTone:Icon.RestTwoTone,RetweetOutlined:Icon.RetweetOutlined,RightCircleFilled:Icon.RightCircleFilled,RightCircleOutlined:Icon.RightCircleOutlined,RightCircleTwoTone:Icon.RightCircleTwoTone,RightOutlined:Icon.RightOutlined,RightSquareFilled:Icon.RightSquareFilled,RightSquareOutlined:Icon.RightSquareOutlined,RightSquareTwoTone:Icon.RightSquareTwoTone,RiseOutlined:Icon.RiseOutlined,RobotFilled:Icon.RobotFilled,RobotOutlined:Icon.RobotOutlined,RocketFilled:Icon.RocketFilled,RocketOutlined:Icon.RocketOutlined,RocketTwoTone:Icon.RocketTwoTone,RollbackOutlined:Icon.RollbackOutlined,RotateLeftOutlined:Icon.RotateLeftOutlined,RotateRightOutlined:Icon.RotateRightOutlined,SafetyCertificateFilled:Icon.SafetyCertificateFilled,SafetyCertificateOutlined:Icon.SafetyCertificateOutlined,SafetyCertificateTwoTone:Icon.SafetyCertificateTwoTone,SafetyOutlined:Icon.SafetyOutlined,SaveFilled:Icon.SaveFilled,SaveOutlined:Icon.SaveOutlined,SaveTwoTone:Icon.SaveTwoTone,ScanOutlined:Icon.ScanOutlined,ScheduleFilled:Icon.ScheduleFilled,ScheduleOutlined:Icon.ScheduleOutlined,ScheduleTwoTone:Icon.ScheduleTwoTone,ScissorOutlined:Icon.ScissorOutlined,SearchOutlined:Icon.SearchOutlined,SecurityScanFilled:Icon.SecurityScanFilled,SecurityScanOutlined:Icon.SecurityScanOutlined,SecurityScanTwoTone:Icon.SecurityScanTwoTone,SelectOutlined:Icon.SelectOutlined,SendOutlined:Icon.SendOutlined,SettingFilled:Icon.SettingFilled,SettingOutlined:Icon.SettingOutlined,SettingTwoTone:Icon.SettingTwoTone,ShakeOutlined:Icon.ShakeOutlined,ShareAltOutlined:Icon.ShareAltOutlined,ShopFilled:Icon.ShopFilled,ShopOutlined:Icon.ShopOutlined,ShopTwoTone:Icon.ShopTwoTone,ShoppingCartOutlined:Icon.ShoppingCartOutlined,ShoppingFilled:Icon.ShoppingFilled,ShoppingOutlined:Icon.ShoppingOutlined,ShoppingTwoTone:Icon.ShoppingTwoTone,ShrinkOutlined:Icon.ShrinkOutlined,SignalFilled:Icon.SignalFilled,SisternodeOutlined:Icon.SisternodeOutlined,SketchCircleFilled:Icon.SketchCircleFilled,SketchOutlined:Icon.SketchOutlined,SketchSquareFilled:Icon.SketchSquareFilled,SkinFilled:Icon.SkinFilled,SkinOutlined:Icon.SkinOutlined,SkinTwoTone:Icon.SkinTwoTone,SkypeFilled:Icon.SkypeFilled,SkypeOutlined:Icon.SkypeOutlined,SlackCircleFilled:Icon.SlackCircleFilled,SlackOutlined:Icon.SlackOutlined,SlackSquareFilled:Icon.SlackSquareFilled,SlackSquareOutlined:Icon.SlackSquareOutlined,SlidersFilled:Icon.SlidersFilled,SlidersOutlined:Icon.SlidersOutlined,SlidersTwoTone:Icon.SlidersTwoTone,SmallDashOutlined:Icon.SmallDashOutlined,SmileFilled:Icon.SmileFilled,SmileOutlined:Icon.SmileOutlined,SmileTwoTone:Icon.SmileTwoTone,SnippetsFilled:Icon.SnippetsFilled,SnippetsOutlined:Icon.SnippetsOutlined,SnippetsTwoTone:Icon.SnippetsTwoTone,SolutionOutlined:Icon.SolutionOutlined,SortAscendingOutlined:Icon.SortAscendingOutlined,SortDescendingOutlined:Icon.SortDescendingOutlined,SoundFilled:Icon.SoundFilled,SoundOutlined:Icon.SoundOutlined,SoundTwoTone:Icon.SoundTwoTone,SplitCellsOutlined:Icon.SplitCellsOutlined,StarFilled:Icon.StarFilled,StarOutlined:Icon.StarOutlined,StarTwoTone:Icon.StarTwoTone,StepBackwardFilled:Icon.StepBackwardFilled,StepBackwardOutlined:Icon.StepBackwardOutlined,StepForwardFilled:Icon.StepForwardFilled,StepForwardOutlined:Icon.StepForwardOutlined,StockOutlined:Icon.StockOutlined,StopFilled:Icon.StopFilled,StopOutlined:Icon.StopOutlined,StopTwoTone:Icon.StopTwoTone,StrikethroughOutlined:Icon.StrikethroughOutlined,SubnodeOutlined:Icon.SubnodeOutlined,SwapLeftOutlined:Icon.SwapLeftOutlined,SwapOutlined:Icon.SwapOutlined,SwapRightOutlined:Icon.SwapRightOutlined,SwitcherFilled:Icon.SwitcherFilled,SwitcherOutlined:Icon.SwitcherOutlined,SwitcherTwoTone:Icon.SwitcherTwoTone,SyncOutlined:Icon.SyncOutlined,TableOutlined:Icon.TableOutlined,TabletFilled:Icon.TabletFilled,TabletOutlined:Icon.TabletOutlined,TabletTwoTone:Icon.TabletTwoTone,TagFilled:Icon.TagFilled,TagOutlined:Icon.TagOutlined,TagTwoTone:Icon.TagTwoTone,TagsFilled:Icon.TagsFilled,TagsOutlined:Icon.TagsOutlined,TagsTwoTone:Icon.TagsTwoTone,TaobaoCircleFilled:Icon.TaobaoCircleFilled,TaobaoCircleOutlined:Icon.TaobaoCircleOutlined,TaobaoOutlined:Icon.TaobaoOutlined,TaobaoSquareFilled:Icon.TaobaoSquareFilled,TeamOutlined:Icon.TeamOutlined,ThunderboltFilled:Icon.ThunderboltFilled,ThunderboltOutlined:Icon.ThunderboltOutlined,ThunderboltTwoTone:Icon.ThunderboltTwoTone,ToTopOutlined:Icon.ToTopOutlined,ToolFilled:Icon.ToolFilled,ToolOutlined:Icon.ToolOutlined,ToolTwoTone:Icon.ToolTwoTone,TrademarkCircleFilled:Icon.TrademarkCircleFilled,TrademarkCircleOutlined:Icon.TrademarkCircleOutlined,TrademarkCircleTwoTone:Icon.TrademarkCircleTwoTone,TrademarkOutlined:Icon.TrademarkOutlined,TransactionOutlined:Icon.TransactionOutlined,TranslationOutlined:Icon.TranslationOutlined,TrophyFilled:Icon.TrophyFilled,TrophyOutlined:Icon.TrophyOutlined,TrophyTwoTone:Icon.TrophyTwoTone,TwitterCircleFilled:Icon.TwitterCircleFilled,TwitterOutlined:Icon.TwitterOutlined,TwitterSquareFilled:Icon.TwitterSquareFilled,UnderlineOutlined:Icon.UnderlineOutlined,UndoOutlined:Icon.UndoOutlined,UngroupOutlined:Icon.UngroupOutlined,UnlockFilled:Icon.UnlockFilled,UnlockOutlined:Icon.UnlockOutlined,UnlockTwoTone:Icon.UnlockTwoTone,UnorderedListOutlined:Icon.UnorderedListOutlined,UpCircleFilled:Icon.UpCircleFilled,UpCircleOutlined:Icon.UpCircleOutlined,UpCircleTwoTone:Icon.UpCircleTwoTone,UpOutlined:Icon.UpOutlined,UpSquareFilled:Icon.UpSquareFilled,UpSquareOutlined:Icon.UpSquareOutlined,UpSquareTwoTone:Icon.UpSquareTwoTone,UploadOutlined:Icon.UploadOutlined,UsbFilled:Icon.UsbFilled,UsbOutlined:Icon.UsbOutlined,UsbTwoTone:Icon.UsbTwoTone,UserAddOutlined:Icon.UserAddOutlined,UserDeleteOutlined:Icon.UserDeleteOutlined,UserOutlined:Icon.UserOutlined,UserSwitchOutlined:Icon.UserSwitchOutlined,UsergroupAddOutlined:Icon.UsergroupAddOutlined,UsergroupDeleteOutlined:Icon.UsergroupDeleteOutlined,VerifiedOutlined:Icon.VerifiedOutlined,VerticalAlignBottomOutlined:Icon.VerticalAlignBottomOutlined,VerticalAlignMiddleOutlined:Icon.VerticalAlignMiddleOutlined,VerticalAlignTopOutlined:Icon.VerticalAlignTopOutlined,VerticalLeftOutlined:Icon.VerticalLeftOutlined,VerticalRightOutlined:Icon.VerticalRightOutlined,VideoCameraAddOutlined:Icon.VideoCameraAddOutlined,VideoCameraFilled:Icon.VideoCameraFilled,VideoCameraOutlined:Icon.VideoCameraOutlined,VideoCameraTwoTone:Icon.VideoCameraTwoTone,WalletFilled:Icon.WalletFilled,WalletOutlined:Icon.WalletOutlined,WalletTwoTone:Icon.WalletTwoTone,WarningFilled:Icon.WarningFilled,WarningOutlined:Icon.WarningOutlined,WarningTwoTone:Icon.WarningTwoTone,WechatFilled:Icon.WechatFilled,WechatOutlined:Icon.WechatOutlined,WeiboCircleFilled:Icon.WeiboCircleFilled,WeiboCircleOutlined:Icon.WeiboCircleOutlined,WeiboOutlined:Icon.WeiboOutlined,WeiboSquareFilled:Icon.WeiboSquareFilled,WeiboSquareOutlined:Icon.WeiboSquareOutlined,WhatsAppOutlined:Icon.WhatsAppOutlined,WifiOutlined:Icon.WifiOutlined,WindowsFilled:Icon.WindowsFilled,WindowsOutlined:Icon.WindowsOutlined,WomanOutlined:Icon.WomanOutlined,YahooFilled:Icon.YahooFilled,YahooOutlined:Icon.YahooOutlined,YoutubeFilled:Icon.YoutubeFilled,YoutubeOutlined:Icon.YoutubeOutlined,YuqueFilled:Icon.YuqueFilled,YuqueOutlined:Icon.YuqueOutlined,ZhihuCircleFilled:Icon.ZhihuCircleFilled,ZhihuOutlined:Icon.ZhihuOutlined,ZhihuSquareFilled:Icon.ZhihuSquareFilled,ZoomInOutlined:Icon.ZoomInOutlined,ZoomOutOutlined:Icon.ZoomOutOutlined},TablerIcons={Icon2fa:icons.Icon2fa,Icon3dCubeSphereOff:icons.Icon3dCubeSphereOff,Icon3dCubeSphere:icons.Icon3dCubeSphere,Icon3dRotate:icons.Icon3dRotate,IconAB2:icons.IconAB2,IconABOff:icons.IconABOff,IconAB:icons.IconAB,IconAbacusOff:icons.IconAbacusOff,IconAbacus:icons.IconAbacus,IconAccessPointOff:icons.IconAccessPointOff,IconAccessPoint:icons.IconAccessPoint,IconAccessibleOff:icons.IconAccessibleOff,IconAccessible:icons.IconAccessible,IconActivityHeartbeat:icons.IconActivityHeartbeat,IconActivity:icons.IconActivity,IconAd2:icons.IconAd2,IconAdOff:icons.IconAdOff,IconAd:icons.IconAd,IconAddressBookOff:icons.IconAddressBookOff,IconAddressBook:icons.IconAddressBook,IconAdjustmentsAlt:icons.IconAdjustmentsAlt,IconAdjustmentsHorizontal:icons.IconAdjustmentsHorizontal,IconAdjustmentsOff:icons.IconAdjustmentsOff,IconAdjustments:icons.IconAdjustments,IconAerialLift:icons.IconAerialLift,IconAffiliate:icons.IconAffiliate,IconAirConditioning:icons.IconAirConditioning,IconAlarmOff:icons.IconAlarmOff,IconAlarm:icons.IconAlarm,IconAlbumOff:icons.IconAlbumOff,IconAlbum:icons.IconAlbum,IconAlertCircle:icons.IconAlertCircle,IconAlertOctagon:icons.IconAlertOctagon,IconAlertTriangle:icons.IconAlertTriangle,IconAlien:icons.IconAlien,IconAlignCenter:icons.IconAlignCenter,IconAlignJustified:icons.IconAlignJustified,IconAlignLeft:icons.IconAlignLeft,IconAlignRight:icons.IconAlignRight,IconAlphabetCyrillic:icons.IconAlphabetCyrillic,IconAlphabetGreek:icons.IconAlphabetGreek,IconAlphabetLatin:icons.IconAlphabetLatin,IconAmbulance:icons.IconAmbulance,IconAmpersand:icons.IconAmpersand,IconAnalyzeOff:icons.IconAnalyzeOff,IconAnalyze:icons.IconAnalyze,IconAnchorOff:icons.IconAnchorOff,IconAnchor:icons.IconAnchor,IconAngle:icons.IconAngle,IconAnkh:icons.IconAnkh,IconAntennaBars1:icons.IconAntennaBars1,IconAntennaBars2:icons.IconAntennaBars2,IconAntennaBars3:icons.IconAntennaBars3,IconAntennaBars4:icons.IconAntennaBars4,IconAntennaBars5:icons.IconAntennaBars5,IconAntennaBarsOff:icons.IconAntennaBarsOff,IconAntennaOff:icons.IconAntennaOff,IconAntenna:icons.IconAntenna,IconApertureOff:icons.IconApertureOff,IconAperture:icons.IconAperture,IconApiAppOff:icons.IconApiAppOff,IconApiApp:icons.IconApiApp,IconApiOff:icons.IconApiOff,IconApi:icons.IconApi,IconAppWindow:icons.IconAppWindow,IconApple:icons.IconApple,IconAppsOff:icons.IconAppsOff,IconApps:icons.IconApps,IconArchiveOff:icons.IconArchiveOff,IconArchive:icons.IconArchive,IconArmchair2Off:icons.IconArmchair2Off,IconArmchair2:icons.IconArmchair2,IconArmchairOff:icons.IconArmchairOff,IconArmchair:icons.IconArmchair,IconArrowAutofitContent:icons.IconArrowAutofitContent,IconArrowAutofitDown:icons.IconArrowAutofitDown,IconArrowAutofitHeight:icons.IconArrowAutofitHeight,IconArrowAutofitLeft:icons.IconArrowAutofitLeft,IconArrowAutofitRight:icons.IconArrowAutofitRight,IconArrowAutofitUp:icons.IconArrowAutofitUp,IconArrowAutofitWidth:icons.IconArrowAutofitWidth,IconArrowBackUp:icons.IconArrowBackUp,IconArrowBack:icons.IconArrowBack,IconArrowBarDown:icons.IconArrowBarDown,IconArrowBarLeft:icons.IconArrowBarLeft,IconArrowBarRight:icons.IconArrowBarRight,IconArrowBarToDown:icons.IconArrowBarToDown,IconArrowBarToLeft:icons.IconArrowBarToLeft,IconArrowBarToRight:icons.IconArrowBarToRight,IconArrowBarToUp:icons.IconArrowBarToUp,IconArrowBarUp:icons.IconArrowBarUp,IconArrowBearLeft2:icons.IconArrowBearLeft2,IconArrowBearLeft:icons.IconArrowBearLeft,IconArrowBearRight2:icons.IconArrowBearRight2,IconArrowBearRight:icons.IconArrowBearRight,IconArrowBigDownLine:icons.IconArrowBigDownLine,IconArrowBigDownLines:icons.IconArrowBigDownLines,IconArrowBigDown:icons.IconArrowBigDown,IconArrowBigLeftLine:icons.IconArrowBigLeftLine,IconArrowBigLeftLines:icons.IconArrowBigLeftLines,IconArrowBigLeft:icons.IconArrowBigLeft,IconArrowBigRightLine:icons.IconArrowBigRightLine,IconArrowBigRightLines:icons.IconArrowBigRightLines,IconArrowBigRight:icons.IconArrowBigRight,IconArrowBigTop:icons.IconArrowBigTop,IconArrowBigUpLine:icons.IconArrowBigUpLine,IconArrowBigUpLines:icons.IconArrowBigUpLines,IconArrowBottomBar:icons.IconArrowBottomBar,IconArrowBottomCircle:icons.IconArrowBottomCircle,IconArrowBottomSquare:icons.IconArrowBottomSquare,IconArrowBottomTail:icons.IconArrowBottomTail,IconArrowBounce:icons.IconArrowBounce,IconArrowCurveLeft:icons.IconArrowCurveLeft,IconArrowCurveRight:icons.IconArrowCurveRight,IconArrowDownCircle:icons.IconArrowDownCircle,IconArrowDownLeftCircle:icons.IconArrowDownLeftCircle,IconArrowDownLeft:icons.IconArrowDownLeft,IconArrowDownRightCircle:icons.IconArrowDownRightCircle,IconArrowDownRight:icons.IconArrowDownRight,IconArrowDown:icons.IconArrowDown,IconArrowFork:icons.IconArrowFork,IconArrowForwardUp:icons.IconArrowForwardUp,IconArrowForward:icons.IconArrowForward,IconArrowGuide:icons.IconArrowGuide,IconArrowLeftBar:icons.IconArrowLeftBar,IconArrowLeftCircle:icons.IconArrowLeftCircle,IconArrowLeftRight:icons.IconArrowLeftRight,IconArrowLeftSquare:icons.IconArrowLeftSquare,IconArrowLeftTail:icons.IconArrowLeftTail,IconArrowLeft:icons.IconArrowLeft,IconArrowLoopLeft2:icons.IconArrowLoopLeft2,IconArrowLoopLeft:icons.IconArrowLoopLeft,IconArrowLoopRight2:icons.IconArrowLoopRight2,IconArrowLoopRight:icons.IconArrowLoopRight,IconArrowMergeBoth:icons.IconArrowMergeBoth,IconArrowMergeLeft:icons.IconArrowMergeLeft,IconArrowMergeRight:icons.IconArrowMergeRight,IconArrowMerge:icons.IconArrowMerge,IconArrowMoveDown:icons.IconArrowMoveDown,IconArrowMoveLeft:icons.IconArrowMoveLeft,IconArrowMoveRight:icons.IconArrowMoveRight,IconArrowMoveUp:icons.IconArrowMoveUp,IconArrowNarrowDown:icons.IconArrowNarrowDown,IconArrowNarrowLeft:icons.IconArrowNarrowLeft,IconArrowNarrowRight:icons.IconArrowNarrowRight,IconArrowNarrowUp:icons.IconArrowNarrowUp,IconArrowRampLeft2:icons.IconArrowRampLeft2,IconArrowRampLeft3:icons.IconArrowRampLeft3,IconArrowRampLeft:icons.IconArrowRampLeft,IconArrowRampRight2:icons.IconArrowRampRight2,IconArrowRampRight3:icons.IconArrowRampRight3,IconArrowRampRight:icons.IconArrowRampRight,IconArrowRightBar:icons.IconArrowRightBar,IconArrowRightCircle:icons.IconArrowRightCircle,IconArrowRightSquare:icons.IconArrowRightSquare,IconArrowRightTail:icons.IconArrowRightTail,IconArrowRight:icons.IconArrowRight,IconArrowRotaryFirstLeft:icons.IconArrowRotaryFirstLeft,IconArrowRotaryFirstRight:icons.IconArrowRotaryFirstRight,IconArrowRotaryLastLeft:icons.IconArrowRotaryLastLeft,IconArrowRotaryLastRight:icons.IconArrowRotaryLastRight,IconArrowRotaryLeft:icons.IconArrowRotaryLeft,IconArrowRotaryRight:icons.IconArrowRotaryRight,IconArrowRotaryStraight:icons.IconArrowRotaryStraight,IconArrowRoundaboutLeft:icons.IconArrowRoundaboutLeft,IconArrowRoundaboutRight:icons.IconArrowRoundaboutRight,IconArrowSharpTurnLeft:icons.IconArrowSharpTurnLeft,IconArrowSharpTurnRight:icons.IconArrowSharpTurnRight,IconArrowTopBar:icons.IconArrowTopBar,IconArrowTopCircle:icons.IconArrowTopCircle,IconArrowTopSquare:icons.IconArrowTopSquare,IconArrowTopTail:icons.IconArrowTopTail,IconArrowUpCircle:icons.IconArrowUpCircle,IconArrowUpLeftCircle:icons.IconArrowUpLeftCircle,IconArrowUpLeft:icons.IconArrowUpLeft,IconArrowUpRightCircle:icons.IconArrowUpRightCircle,IconArrowUpRight:icons.IconArrowUpRight,IconArrowUp:icons.IconArrowUp,IconArrowWaveLeftDown:icons.IconArrowWaveLeftDown,IconArrowWaveLeftUp:icons.IconArrowWaveLeftUp,IconArrowWaveRightDown:icons.IconArrowWaveRightDown,IconArrowWaveRightUp:icons.IconArrowWaveRightUp,IconArrowsCross:icons.IconArrowsCross,IconArrowsDiagonal2:icons.IconArrowsDiagonal2,IconArrowsDiagonalMinimize2:icons.IconArrowsDiagonalMinimize2,IconArrowsDiagonalMinimize:icons.IconArrowsDiagonalMinimize,IconArrowsDiagonal:icons.IconArrowsDiagonal,IconArrowsDiff:icons.IconArrowsDiff,IconArrowsDoubleNeSw:icons.IconArrowsDoubleNeSw,IconArrowsDoubleNwSe:icons.IconArrowsDoubleNwSe,IconArrowsDoubleSeNw:icons.IconArrowsDoubleSeNw,IconArrowsDoubleSwNe:icons.IconArrowsDoubleSwNe,IconArrowsDownUp:icons.IconArrowsDownUp,IconArrowsDown:icons.IconArrowsDown,IconArrowsExchange2:icons.IconArrowsExchange2,IconArrowsExchange:icons.IconArrowsExchange,IconArrowsHorizontal:icons.IconArrowsHorizontal,IconArrowsJoin2:icons.IconArrowsJoin2,IconArrowsJoin:icons.IconArrowsJoin,IconArrowsLeftDown:icons.IconArrowsLeftDown,IconArrowsLeftRight:icons.IconArrowsLeftRight,IconArrowsLeft:icons.IconArrowsLeft,IconArrowsMaximize:icons.IconArrowsMaximize,IconArrowsMinimize:icons.IconArrowsMinimize,IconArrowsMoveHorizontal:icons.IconArrowsMoveHorizontal,IconArrowsMoveVertical:icons.IconArrowsMoveVertical,IconArrowsMove:icons.IconArrowsMove,IconArrowsRandom:icons.IconArrowsRandom,IconArrowsRightDown:icons.IconArrowsRightDown,IconArrowsRightLeft:icons.IconArrowsRightLeft,IconArrowsRight:icons.IconArrowsRight,IconArrowsShuffle2:icons.IconArrowsShuffle2,IconArrowsShuffle:icons.IconArrowsShuffle,IconArrowsSort:icons.IconArrowsSort,IconArrowsSplit2:icons.IconArrowsSplit2,IconArrowsSplit:icons.IconArrowsSplit,IconArrowsTransferDown:icons.IconArrowsTransferDown,IconArrowsTransferUp:icons.IconArrowsTransferUp,IconArrowsUpDown:icons.IconArrowsUpDown,IconArrowsUpLeft:icons.IconArrowsUpLeft,IconArrowsUpRight:icons.IconArrowsUpRight,IconArrowsUp:icons.IconArrowsUp,IconArrowsVertical:icons.IconArrowsVertical,IconArtboardOff:icons.IconArtboardOff,IconArtboard:icons.IconArtboard,IconArticleOff:icons.IconArticleOff,IconArticle:icons.IconArticle,IconAspectRatioOff:icons.IconAspectRatioOff,IconAspectRatio:icons.IconAspectRatio,IconAssemblyOff:icons.IconAssemblyOff,IconAssembly:icons.IconAssembly,IconAsset:icons.IconAsset,IconAsteriskSimple:icons.IconAsteriskSimple,IconAsterisk:icons.IconAsterisk,IconAtOff:icons.IconAtOff,IconAt:icons.IconAt,IconAtom2:icons.IconAtom2,IconAtomOff:icons.IconAtomOff,IconAtom:icons.IconAtom,IconAugmentedReality2:icons.IconAugmentedReality2,IconAugmentedRealityOff:icons.IconAugmentedRealityOff,IconAugmentedReality:icons.IconAugmentedReality,IconAwardOff:icons.IconAwardOff,IconAward:icons.IconAward,IconAxe:icons.IconAxe,IconAxisX:icons.IconAxisX,IconAxisY:icons.IconAxisY,IconBabyCarriage:icons.IconBabyCarriage,IconBackhoe:icons.IconBackhoe,IconBackpackOff:icons.IconBackpackOff,IconBackpack:icons.IconBackpack,IconBackspace:icons.IconBackspace,IconBadgeOff:icons.IconBadgeOff,IconBadge:icons.IconBadge,IconBadgesOff:icons.IconBadgesOff,IconBadges:icons.IconBadges,IconBaguette:icons.IconBaguette,IconBallAmericanFootballOff:icons.IconBallAmericanFootballOff,IconBallAmericanFootball:icons.IconBallAmericanFootball,IconBallBaseball:icons.IconBallBaseball,IconBallBasketball:icons.IconBallBasketball,IconBallBowling:icons.IconBallBowling,IconBallFootballOff:icons.IconBallFootballOff,IconBallFootball:icons.IconBallFootball,IconBallTennis:icons.IconBallTennis,IconBallVolleyball:icons.IconBallVolleyball,IconBallonOff:icons.IconBallonOff,IconBallon:icons.IconBallon,IconBallpenOff:icons.IconBallpenOff,IconBallpen:icons.IconBallpen,IconBan:icons.IconBan,IconBandageOff:icons.IconBandageOff,IconBandage:icons.IconBandage,IconBarbellOff:icons.IconBarbellOff,IconBarbell:icons.IconBarbell,IconBarcodeOff:icons.IconBarcodeOff,IconBarcode:icons.IconBarcode,IconBarrelOff:icons.IconBarrelOff,IconBarrel:icons.IconBarrel,IconBarrierBlockOff:icons.IconBarrierBlockOff,IconBarrierBlock:icons.IconBarrierBlock,IconBaseline:icons.IconBaseline,IconBasketOff:icons.IconBasketOff,IconBasket:icons.IconBasket,IconBat:icons.IconBat,IconBathOff:icons.IconBathOff,IconBath:icons.IconBath,IconBattery1:icons.IconBattery1,IconBattery2:icons.IconBattery2,IconBattery3:icons.IconBattery3,IconBattery4:icons.IconBattery4,IconBatteryAutomotive:icons.IconBatteryAutomotive,IconBatteryCharging2:icons.IconBatteryCharging2,IconBatteryCharging:icons.IconBatteryCharging,IconBatteryEco:icons.IconBatteryEco,IconBatteryOff:icons.IconBatteryOff,IconBattery:icons.IconBattery,IconBeachOff:icons.IconBeachOff,IconBeach:icons.IconBeach,IconBedOff:icons.IconBedOff,IconBed:icons.IconBed,IconBeerOff:icons.IconBeerOff,IconBeer:icons.IconBeer,IconBellMinus:icons.IconBellMinus,IconBellOff:icons.IconBellOff,IconBellPlus:icons.IconBellPlus,IconBellRinging2:icons.IconBellRinging2,IconBellRinging:icons.IconBellRinging,IconBellSchool:icons.IconBellSchool,IconBellX:icons.IconBellX,IconBellZ:icons.IconBellZ,IconBell:icons.IconBell,IconBible:icons.IconBible,IconBikeOff:icons.IconBikeOff,IconBike:icons.IconBike,IconBinaryOff:icons.IconBinaryOff,IconBinary:icons.IconBinary,IconBiohazardOff:icons.IconBiohazardOff,IconBiohazard:icons.IconBiohazard,IconBleachChlorine:icons.IconBleachChlorine,IconBleachNoChlorine:icons.IconBleachNoChlorine,IconBleachOff:icons.IconBleachOff,IconBleach:icons.IconBleach,IconBlockquote:icons.IconBlockquote,IconBluetoothConnected:icons.IconBluetoothConnected,IconBluetoothOff:icons.IconBluetoothOff,IconBluetoothX:icons.IconBluetoothX,IconBluetooth:icons.IconBluetooth,IconBlurOff:icons.IconBlurOff,IconBlur:icons.IconBlur,IconBmp:icons.IconBmp,IconBoldOff:icons.IconBoldOff,IconBold:icons.IconBold,IconBoltOff:icons.IconBoltOff,IconBolt:icons.IconBolt,IconBoneOff:icons.IconBoneOff,IconBone:icons.IconBone,IconBongOff:icons.IconBongOff,IconBong:icons.IconBong,IconBook2:icons.IconBook2,IconBookDownload:icons.IconBookDownload,IconBookOff:icons.IconBookOff,IconBookUpload:icons.IconBookUpload,IconBook:icons.IconBook,IconBookmarkOff:icons.IconBookmarkOff,IconBookmark:icons.IconBookmark,IconBookmarksOff:icons.IconBookmarksOff,IconBookmarks:icons.IconBookmarks,IconBooksOff:icons.IconBooksOff,IconBooks:icons.IconBooks,IconBorderAll:icons.IconBorderAll,IconBorderBottom:icons.IconBorderBottom,IconBorderHorizontal:icons.IconBorderHorizontal,IconBorderInner:icons.IconBorderInner,IconBorderLeft:icons.IconBorderLeft,IconBorderNone:icons.IconBorderNone,IconBorderOuter:icons.IconBorderOuter,IconBorderRadius:icons.IconBorderRadius,IconBorderRight:icons.IconBorderRight,IconBorderStyle2:icons.IconBorderStyle2,IconBorderStyle:icons.IconBorderStyle,IconBorderTop:icons.IconBorderTop,IconBorderVertical:icons.IconBorderVertical,IconBottleOff:icons.IconBottleOff,IconBottle:icons.IconBottle,IconBow:icons.IconBow,IconBoxAlignBottomLeft:icons.IconBoxAlignBottomLeft,IconBoxAlignBottomRight:icons.IconBoxAlignBottomRight,IconBoxAlignBottom:icons.IconBoxAlignBottom,IconBoxAlignLeft:icons.IconBoxAlignLeft,IconBoxAlignRight:icons.IconBoxAlignRight,IconBoxAlignTopLeft:icons.IconBoxAlignTopLeft,IconBoxAlignTopRight:icons.IconBoxAlignTopRight,IconBoxAlignTop:icons.IconBoxAlignTop,IconBoxMargin:icons.IconBoxMargin,IconBoxModel2Off:icons.IconBoxModel2Off,IconBoxModel2:icons.IconBoxModel2,IconBoxModelOff:icons.IconBoxModelOff,IconBoxModel:icons.IconBoxModel,IconBoxMultiple0:icons.IconBoxMultiple0,IconBoxMultiple1:icons.IconBoxMultiple1,IconBoxMultiple2:icons.IconBoxMultiple2,IconBoxMultiple3:icons.IconBoxMultiple3,IconBoxMultiple4:icons.IconBoxMultiple4,IconBoxMultiple5:icons.IconBoxMultiple5,IconBoxMultiple6:icons.IconBoxMultiple6,IconBoxMultiple7:icons.IconBoxMultiple7,IconBoxMultiple8:icons.IconBoxMultiple8,IconBoxMultiple9:icons.IconBoxMultiple9,IconBoxMultiple:icons.IconBoxMultiple,IconBoxOff:icons.IconBoxOff,IconBoxPadding:icons.IconBoxPadding,IconBox:icons.IconBox,IconBracesOff:icons.IconBracesOff,IconBraces:icons.IconBraces,IconBracketsContainEnd:icons.IconBracketsContainEnd,IconBracketsContainStart:icons.IconBracketsContainStart,IconBracketsContain:icons.IconBracketsContain,IconBracketsOff:icons.IconBracketsOff,IconBrackets:icons.IconBrackets,IconBrand4chan:icons.IconBrand4chan,IconBrandAbstract:icons.IconBrandAbstract,IconBrandAdobe:icons.IconBrandAdobe,IconBrandAdonisJs:icons.IconBrandAdonisJs,IconBrandAirbnb:icons.IconBrandAirbnb,IconBrandAirtable:icons.IconBrandAirtable,IconBrandAlbolia:icons.IconBrandAlbolia,IconBrandAlpineJs:icons.IconBrandAlpineJs,IconBrandAmazon:icons.IconBrandAmazon,IconBrandAmongus:icons.IconBrandAmongus,IconBrandAndroid:icons.IconBrandAndroid,IconBrandAngular:icons.IconBrandAngular,IconBrandAppgallery:icons.IconBrandAppgallery,IconBrandAppleArcade:icons.IconBrandAppleArcade,IconBrandApplePodcast:icons.IconBrandApplePodcast,IconBrandApple:icons.IconBrandApple,IconBrandAppstore:icons.IconBrandAppstore,IconBrandAsana:icons.IconBrandAsana,IconBrandBackbone:icons.IconBrandBackbone,IconBrandBadoo:icons.IconBrandBadoo,IconBrandBandcamp:icons.IconBrandBandcamp,IconBrandBeats:icons.IconBrandBeats,IconBrandBehance:icons.IconBrandBehance,IconBrandBing:icons.IconBrandBing,IconBrandBitbucket:icons.IconBrandBitbucket,IconBrandBlender:icons.IconBrandBlender,IconBrandBlogger:icons.IconBrandBlogger,IconBrandBooking:icons.IconBrandBooking,IconBrandBootstrap:icons.IconBrandBootstrap,IconBrandBulma:icons.IconBrandBulma,IconBrandCampaignmonitor:icons.IconBrandCampaignmonitor,IconBrandCarbon:icons.IconBrandCarbon,IconBrandCashapp:icons.IconBrandCashapp,IconBrandChrome:icons.IconBrandChrome,IconBrandCodecov:icons.IconBrandCodecov,IconBrandCodepen:icons.IconBrandCodepen,IconBrandCodesandbox:icons.IconBrandCodesandbox,IconBrandCoinbase:icons.IconBrandCoinbase,IconBrandComedyCentral:icons.IconBrandComedyCentral,IconBrandCouchsurfing:icons.IconBrandCouchsurfing,IconBrandCss3:icons.IconBrandCss3,IconBrandCucumber:icons.IconBrandCucumber,IconBrandCypress:icons.IconBrandCypress,IconBrandD3:icons.IconBrandD3,IconBrandDcos:icons.IconBrandDcos,IconBrandDebian:icons.IconBrandDebian,IconBrandDeno:icons.IconBrandDeno,IconBrandDeviantart:icons.IconBrandDeviantart,IconBrandDiscord:icons.IconBrandDiscord,IconBrandDisney:icons.IconBrandDisney,IconBrandDisqus:icons.IconBrandDisqus,IconBrandDjango:icons.IconBrandDjango,IconBrandDocker:icons.IconBrandDocker,IconBrandDoctrine:icons.IconBrandDoctrine,IconBrandDribbble:icons.IconBrandDribbble,IconBrandDrupal:icons.IconBrandDrupal,IconBrandEdge:icons.IconBrandEdge,IconBrandEmber:icons.IconBrandEmber,IconBrandEnvato:icons.IconBrandEnvato,IconBrandFacebook:icons.IconBrandFacebook,IconBrandFigma:icons.IconBrandFigma,IconBrandFinder:icons.IconBrandFinder,IconBrandFirebase:icons.IconBrandFirebase,IconBrandFirefox:icons.IconBrandFirefox,IconBrandFlickr:icons.IconBrandFlickr,IconBrandFlipboard:icons.IconBrandFlipboard,IconBrandFlutter:icons.IconBrandFlutter,IconBrandFortnite:icons.IconBrandFortnite,IconBrandFoursquare:icons.IconBrandFoursquare,IconBrandFramer:icons.IconBrandFramer,IconBrandGatsby:icons.IconBrandGatsby,IconBrandGit:icons.IconBrandGit,IconBrandGithub:icons.IconBrandGithub,IconBrandGitlab:icons.IconBrandGitlab,IconBrandGmail:icons.IconBrandGmail,IconBrandGoogleAnalytics:icons.IconBrandGoogleAnalytics,IconBrandGoogleDrive:icons.IconBrandGoogleDrive,IconBrandGoogleFit:icons.IconBrandGoogleFit,IconBrandGoogleOne:icons.IconBrandGoogleOne,IconBrandGooglePhotos:icons.IconBrandGooglePhotos,IconBrandGooglePlay:icons.IconBrandGooglePlay,IconBrandGoogle:icons.IconBrandGoogle,IconBrandGrammarly:icons.IconBrandGrammarly,IconBrandGraphql:icons.IconBrandGraphql,IconBrandGravatar:icons.IconBrandGravatar,IconBrandGrindr:icons.IconBrandGrindr,IconBrandHeadlessui:icons.IconBrandHeadlessui,IconBrandHipchat:icons.IconBrandHipchat,IconBrandHtml5:icons.IconBrandHtml5,IconBrandInertia:icons.IconBrandInertia,IconBrandInstagram:icons.IconBrandInstagram,IconBrandIntercom:icons.IconBrandIntercom,IconBrandJavascript:icons.IconBrandJavascript,IconBrandKickstarter:icons.IconBrandKickstarter,IconBrandKotlin:icons.IconBrandKotlin,IconBrandLaravel:icons.IconBrandLaravel,IconBrandLastfm:icons.IconBrandLastfm,IconBrandLinkedin:icons.IconBrandLinkedin,IconBrandLinktree:icons.IconBrandLinktree,IconBrandLoom:icons.IconBrandLoom,IconBrandMailgun:icons.IconBrandMailgun,IconBrandMantine:icons.IconBrandMantine,IconBrandMastercard:icons.IconBrandMastercard,IconBrandMastodon:icons.IconBrandMastodon,IconBrandMcdonalds:icons.IconBrandMcdonalds,IconBrandMedium:icons.IconBrandMedium,IconBrandMercedes:icons.IconBrandMercedes,IconBrandMessenger:icons.IconBrandMessenger,IconBrandMeta:icons.IconBrandMeta,IconBrandMixpanel:icons.IconBrandMixpanel,IconBrandMonday:icons.IconBrandMonday,IconBrandNetbeans:icons.IconBrandNetbeans,IconBrandNetflix:icons.IconBrandNetflix,IconBrandNextjs:icons.IconBrandNextjs,IconBrandNordVpn:icons.IconBrandNordVpn,IconBrandNotion:icons.IconBrandNotion,IconBrandNuxt:icons.IconBrandNuxt,IconBrandNytimes:icons.IconBrandNytimes,IconBrandOffice:icons.IconBrandOffice,IconBrandOkRu:icons.IconBrandOkRu,IconBrandOpenSource:icons.IconBrandOpenSource,IconBrandOpenvpn:icons.IconBrandOpenvpn,IconBrandOpera:icons.IconBrandOpera,IconBrandPagekit:icons.IconBrandPagekit,IconBrandPatreon:icons.IconBrandPatreon,IconBrandPaypal:icons.IconBrandPaypal,IconBrandPeanut:icons.IconBrandPeanut,IconBrandPepsi:icons.IconBrandPepsi,IconBrandPhp:icons.IconBrandPhp,IconBrandPinterest:icons.IconBrandPinterest,IconBrandPocket:icons.IconBrandPocket,IconBrandPolymer:icons.IconBrandPolymer,IconBrandPrisma:icons.IconBrandPrisma,IconBrandProducthunt:icons.IconBrandProducthunt,IconBrandPushbullet:icons.IconBrandPushbullet,IconBrandPushover:icons.IconBrandPushover,IconBrandPython:icons.IconBrandPython,IconBrandReactNative:icons.IconBrandReactNative,IconBrandReact:icons.IconBrandReact,IconBrandReason:icons.IconBrandReason,IconBrandReddit:icons.IconBrandReddit,IconBrandRedhat:icons.IconBrandRedhat,IconBrandRedux:icons.IconBrandRedux,IconBrandSafari:icons.IconBrandSafari,IconBrandSass:icons.IconBrandSass,IconBrandSentry:icons.IconBrandSentry,IconBrandShazam:icons.IconBrandShazam,IconBrandShopee:icons.IconBrandShopee,IconBrandSketch:icons.IconBrandSketch,IconBrandSkype:icons.IconBrandSkype,IconBrandSlack:icons.IconBrandSlack,IconBrandSnapchat:icons.IconBrandSnapchat,IconBrandSnapseed:icons.IconBrandSnapseed,IconBrandSocketIo:icons.IconBrandSocketIo,IconBrandSoundcloud:icons.IconBrandSoundcloud,IconBrandSpotify:icons.IconBrandSpotify,IconBrandStackoverflow:icons.IconBrandStackoverflow,IconBrandSteam:icons.IconBrandSteam,IconBrandStorybook:icons.IconBrandStorybook,IconBrandStrava:icons.IconBrandStrava,IconBrandStripe:icons.IconBrandStripe,IconBrandSublimeText:icons.IconBrandSublimeText,IconBrandSupernova:icons.IconBrandSupernova,IconBrandSurfshark:icons.IconBrandSurfshark,IconBrandSvelte:icons.IconBrandSvelte,IconBrandTabler:icons.IconBrandTabler,IconBrandTailwind:icons.IconBrandTailwind,IconBrandTelegram:icons.IconBrandTelegram,IconBrandTidal:icons.IconBrandTidal,IconBrandTiktok:icons.IconBrandTiktok,IconBrandTinder:icons.IconBrandTinder,IconBrandToyota:icons.IconBrandToyota,IconBrandTrello:icons.IconBrandTrello,IconBrandTripadvisor:icons.IconBrandTripadvisor,IconBrandTumblr:icons.IconBrandTumblr,IconBrandTwitch:icons.IconBrandTwitch,IconBrandTwitter:icons.IconBrandTwitter,IconBrandUber:icons.IconBrandUber,IconBrandUbuntu:icons.IconBrandUbuntu,IconBrandUnity:icons.IconBrandUnity,IconBrandUnsplash:icons.IconBrandUnsplash,IconBrandUpwork:icons.IconBrandUpwork,IconBrandValorant:icons.IconBrandValorant,IconBrandVercel:icons.IconBrandVercel,IconBrandVimeo:icons.IconBrandVimeo,IconBrandVinted:icons.IconBrandVinted,IconBrandVisa:icons.IconBrandVisa,IconBrandVisualStudio:icons.IconBrandVisualStudio,IconBrandVivaldi:icons.IconBrandVivaldi,IconBrandVk:icons.IconBrandVk,IconBrandVsco:icons.IconBrandVsco,IconBrandVscode:icons.IconBrandVscode,IconBrandVue:icons.IconBrandVue,IconBrandWalmart:icons.IconBrandWalmart,IconBrandWebflow:icons.IconBrandWebflow,IconBrandWhatsapp:icons.IconBrandWhatsapp,IconBrandWindows:icons.IconBrandWindows,IconBrandWish:icons.IconBrandWish,IconBrandWix:icons.IconBrandWix,IconBrandWordpress:icons.IconBrandWordpress,IconBrandXbox:icons.IconBrandXbox,IconBrandXing:icons.IconBrandXing,IconBrandYahoo:icons.IconBrandYahoo,IconBrandYatse:icons.IconBrandYatse,IconBrandYcombinator:icons.IconBrandYcombinator,IconBrandYoutubeKids:icons.IconBrandYoutubeKids,IconBrandYoutube:icons.IconBrandYoutube,IconBrandZalando:icons.IconBrandZalando,IconBrandZapier:icons.IconBrandZapier,IconBrandZeit:icons.IconBrandZeit,IconBrandZoom:icons.IconBrandZoom,IconBrandZwift:icons.IconBrandZwift,IconBreadOff:icons.IconBreadOff,IconBread:icons.IconBread,IconBriefcaseOff:icons.IconBriefcaseOff,IconBriefcase:icons.IconBriefcase,IconBrightness2:icons.IconBrightness2,IconBrightnessDown:icons.IconBrightnessDown,IconBrightnessHalf:icons.IconBrightnessHalf,IconBrightnessOff:icons.IconBrightnessOff,IconBrightnessUp:icons.IconBrightnessUp,IconBrightness:icons.IconBrightness,IconBroadcastOff:icons.IconBroadcastOff,IconBroadcast:icons.IconBroadcast,IconBrowserCheck:icons.IconBrowserCheck,IconBrowserOff:icons.IconBrowserOff,IconBrowserPlus:icons.IconBrowserPlus,IconBrowserX:icons.IconBrowserX,IconBrowser:icons.IconBrowser,IconBrushOff:icons.IconBrushOff,IconBrush:icons.IconBrush,IconBucketOff:icons.IconBucketOff,IconBucket:icons.IconBucket,IconBugOff:icons.IconBugOff,IconBug:icons.IconBug,IconBuildingArch:icons.IconBuildingArch,IconBuildingBank:icons.IconBuildingBank,IconBuildingBridge2:icons.IconBuildingBridge2,IconBuildingBridge:icons.IconBuildingBridge,IconBuildingCarousel:icons.IconBuildingCarousel,IconBuildingCastle:icons.IconBuildingCastle,IconBuildingChurch:icons.IconBuildingChurch,IconBuildingCommunity:icons.IconBuildingCommunity,IconBuildingCottage:icons.IconBuildingCottage,IconBuildingFactory2:icons.IconBuildingFactory2,IconBuildingFactory:icons.IconBuildingFactory,IconBuildingFortress:icons.IconBuildingFortress,IconBuildingHospital:icons.IconBuildingHospital,IconBuildingLighthouse:icons.IconBuildingLighthouse,IconBuildingMonument:icons.IconBuildingMonument,IconBuildingPavilon:icons.IconBuildingPavilon,IconBuildingSkyscraper:icons.IconBuildingSkyscraper,IconBuildingStore:icons.IconBuildingStore,IconBuildingWarehouse:icons.IconBuildingWarehouse,IconBuilding:icons.IconBuilding,IconBulbOff:icons.IconBulbOff,IconBulb:icons.IconBulb,IconBulldozer:icons.IconBulldozer,IconBusOff:icons.IconBusOff,IconBusStop:icons.IconBusStop,IconBus:icons.IconBus,IconBusinessplan:icons.IconBusinessplan,IconButterfly:icons.IconButterfly,IconCSharp:icons.IconCSharp,IconCactusOff:icons.IconCactusOff,IconCactus:icons.IconCactus,IconCakeOff:icons.IconCakeOff,IconCake:icons.IconCake,IconCalculatorOff:icons.IconCalculatorOff,IconCalculator:icons.IconCalculator,IconCalendarEvent:icons.IconCalendarEvent,IconCalendarMinus:icons.IconCalendarMinus,IconCalendarOff:icons.IconCalendarOff,IconCalendarPlus:icons.IconCalendarPlus,IconCalendarStats:icons.IconCalendarStats,IconCalendarTime:icons.IconCalendarTime,IconCalendar:icons.IconCalendar,IconCameraMinus:icons.IconCameraMinus,IconCameraOff:icons.IconCameraOff,IconCameraPlus:icons.IconCameraPlus,IconCameraRotate:icons.IconCameraRotate,IconCameraSelfie:icons.IconCameraSelfie,IconCamera:icons.IconCamera,IconCandle:icons.IconCandle,IconCandyOff:icons.IconCandyOff,IconCandy:icons.IconCandy,IconCaptureOff:icons.IconCaptureOff,IconCapture:icons.IconCapture,IconCarCrane:icons.IconCarCrane,IconCarCrash:icons.IconCarCrash,IconCarOff:icons.IconCarOff,IconCar:icons.IconCar,IconCaravan:icons.IconCaravan,IconCardboardsOff:icons.IconCardboardsOff,IconCardboards:icons.IconCardboards,IconCaretDown:icons.IconCaretDown,IconCaretLeft:icons.IconCaretLeft,IconCaretRight:icons.IconCaretRight,IconCaretUp:icons.IconCaretUp,IconCarrotOff:icons.IconCarrotOff,IconCarrot:icons.IconCarrot,IconCashBanknoteOff:icons.IconCashBanknoteOff,IconCashBanknote:icons.IconCashBanknote,IconCashOff:icons.IconCashOff,IconCash:icons.IconCash,IconCastOff:icons.IconCastOff,IconCast:icons.IconCast,IconCategory2:icons.IconCategory2,IconCategory:icons.IconCategory,IconCeOff:icons.IconCeOff,IconCe:icons.IconCe,IconCellSignal1:icons.IconCellSignal1,IconCellSignal2:icons.IconCellSignal2,IconCellSignal3:icons.IconCellSignal3,IconCellSignal4:icons.IconCellSignal4,IconCellSignal5:icons.IconCellSignal5,IconCellSignalOff:icons.IconCellSignalOff,IconCell:icons.IconCell,IconCertificate2Off:icons.IconCertificate2Off,IconCertificate2:icons.IconCertificate2,IconCertificateOff:icons.IconCertificateOff,IconCertificate:icons.IconCertificate,IconChairDirector:icons.IconChairDirector,IconChalkboardOff:icons.IconChalkboardOff,IconChalkboard:icons.IconChalkboard,IconChargingPile:icons.IconChargingPile,IconChartArcs3:icons.IconChartArcs3,IconChartArcs:icons.IconChartArcs,IconChartAreaLine:icons.IconChartAreaLine,IconChartArea:icons.IconChartArea,IconChartArrowsVertical:icons.IconChartArrowsVertical,IconChartArrows:icons.IconChartArrows,IconChartBarOff:icons.IconChartBarOff,IconChartBar:icons.IconChartBar,IconChartBubble:icons.IconChartBubble,IconChartCandle:icons.IconChartCandle,IconChartCircles:icons.IconChartCircles,IconChartDonut2:icons.IconChartDonut2,IconChartDonut3:icons.IconChartDonut3,IconChartDonut4:icons.IconChartDonut4,IconChartDonut:icons.IconChartDonut,IconChartDots2:icons.IconChartDots2,IconChartDots3:icons.IconChartDots3,IconChartDots:icons.IconChartDots,IconChartInfographic:icons.IconChartInfographic,IconChartLine:icons.IconChartLine,IconChartPie2:icons.IconChartPie2,IconChartPie3:icons.IconChartPie3,IconChartPie4:icons.IconChartPie4,IconChartPieOff:icons.IconChartPieOff,IconChartPie:icons.IconChartPie,IconChartRadar:icons.IconChartRadar,IconChartTreemap:icons.IconChartTreemap,IconCheck:icons.IconCheck,IconCheckbox:icons.IconCheckbox,IconChecklist:icons.IconChecklist,IconChecks:icons.IconChecks,IconCheckupList:icons.IconCheckupList,IconCheese:icons.IconCheese,IconChefHatOff:icons.IconChefHatOff,IconChefHat:icons.IconChefHat,IconChess:icons.IconChess,IconChevronDownLeft:icons.IconChevronDownLeft,IconChevronDownRight:icons.IconChevronDownRight,IconChevronDown:icons.IconChevronDown,IconChevronLeft:icons.IconChevronLeft,IconChevronRight:icons.IconChevronRight,IconChevronUpLeft:icons.IconChevronUpLeft,IconChevronUpRight:icons.IconChevronUpRight,IconChevronUp:icons.IconChevronUp,IconChevronsDownLeft:icons.IconChevronsDownLeft,IconChevronsDownRight:icons.IconChevronsDownRight,IconChevronsDown:icons.IconChevronsDown,IconChevronsLeft:icons.IconChevronsLeft,IconChevronsRight:icons.IconChevronsRight,IconChevronsUpLeft:icons.IconChevronsUpLeft,IconChevronsUpRight:icons.IconChevronsUpRight,IconChevronsUp:icons.IconChevronsUp,IconChisel:icons.IconChisel,IconChristmasTreeOff:icons.IconChristmasTreeOff,IconChristmasTree:icons.IconChristmasTree,IconCircle0:icons.IconCircle0,IconCircle1:icons.IconCircle1,IconCircle2:icons.IconCircle2,IconCircle3:icons.IconCircle3,IconCircle4:icons.IconCircle4,IconCircle5:icons.IconCircle5,IconCircle6:icons.IconCircle6,IconCircle7:icons.IconCircle7,IconCircle8:icons.IconCircle8,IconCircle9:icons.IconCircle9,IconCircleA:icons.IconCircleA,IconCircleB:icons.IconCircleB,IconCircleC:icons.IconCircleC,IconCircleCheck:icons.IconCircleCheck,IconCircleD:icons.IconCircleD,IconCircleDashed:icons.IconCircleDashed,IconCircleDot:icons.IconCircleDot,IconCircleDotted:icons.IconCircleDotted,IconCircleE:icons.IconCircleE,IconCircleF:icons.IconCircleF,IconCircleG:icons.IconCircleG,IconCircleH:icons.IconCircleH,IconCircleHalf2:icons.IconCircleHalf2,IconCircleHalfVertical:icons.IconCircleHalfVertical,IconCircleHalf:icons.IconCircleHalf,IconCircleI:icons.IconCircleI,IconCircleJ:icons.IconCircleJ,IconCircleK:icons.IconCircleK,IconCircleL:icons.IconCircleL,IconCircleM:icons.IconCircleM,IconCircleMinus:icons.IconCircleMinus,IconCircleN:icons.IconCircleN,IconCircleO:icons.IconCircleO,IconCircleOff:icons.IconCircleOff,IconCircleP:icons.IconCircleP,IconCirclePlus:icons.IconCirclePlus,IconCircleQ:icons.IconCircleQ,IconCircleR:icons.IconCircleR,IconCircleRectangleOff:icons.IconCircleRectangleOff,IconCircleRectangle:icons.IconCircleRectangle,IconCircleS:icons.IconCircleS,IconCircleSquare:icons.IconCircleSquare,IconCircleT:icons.IconCircleT,IconCircleTriangle:icons.IconCircleTriangle,IconCircleU:icons.IconCircleU,IconCircleW:icons.IconCircleW,IconCircleX:icons.IconCircleX,IconCircleY:icons.IconCircleY,IconCircleZ:icons.IconCircleZ,IconCircle:icons.IconCircle,IconCircles:icons.IconCircles,IconCircuitAmmeter:icons.IconCircuitAmmeter,IconCircuitBattery:icons.IconCircuitBattery,IconCircuitBulb:icons.IconCircuitBulb,IconCircuitCapacitorPolarized:icons.IconCircuitCapacitorPolarized,IconCircuitCapacitor:icons.IconCircuitCapacitor,IconCircuitCellPlus:icons.IconCircuitCellPlus,IconCircuitCell:icons.IconCircuitCell,IconCircuitChangeover:icons.IconCircuitChangeover,IconCircuitDiodeZener:icons.IconCircuitDiodeZener,IconCircuitDiode:icons.IconCircuitDiode,IconCircuitGroundDigital:icons.IconCircuitGroundDigital,IconCircuitGround:icons.IconCircuitGround,IconCircuitInductor:icons.IconCircuitInductor,IconCircuitMotor:icons.IconCircuitMotor,IconCircuitPushbutton:icons.IconCircuitPushbutton,IconCircuitResistor:icons.IconCircuitResistor,IconCircuitSwitchClosed:icons.IconCircuitSwitchClosed,IconCircuitSwitchOpen:icons.IconCircuitSwitchOpen,IconCircuitVoltmeter:icons.IconCircuitVoltmeter,IconClearAll:icons.IconClearAll,IconClearFormatting:icons.IconClearFormatting,IconClick:icons.IconClick,IconClipboardCheck:icons.IconClipboardCheck,IconClipboardCopy:icons.IconClipboardCopy,IconClipboardHeart:icons.IconClipboardHeart,IconClipboardList:icons.IconClipboardList,IconClipboardOff:icons.IconClipboardOff,IconClipboardPlus:icons.IconClipboardPlus,IconClipboardText:icons.IconClipboardText,IconClipboardTypography:icons.IconClipboardTypography,IconClipboardX:icons.IconClipboardX,IconClipboard:icons.IconClipboard,IconClock2:icons.IconClock2,IconClockHour1:icons.IconClockHour1,IconClockHour10:icons.IconClockHour10,IconClockHour11:icons.IconClockHour11,IconClockHour12:icons.IconClockHour12,IconClockHour2:icons.IconClockHour2,IconClockHour3:icons.IconClockHour3,IconClockHour4:icons.IconClockHour4,IconClockHour5:icons.IconClockHour5,IconClockHour6:icons.IconClockHour6,IconClockHour7:icons.IconClockHour7,IconClockHour8:icons.IconClockHour8,IconClockHour9:icons.IconClockHour9,IconClockOff:icons.IconClockOff,IconClock:icons.IconClock,IconClothesRackOff:icons.IconClothesRackOff,IconClothesRack:icons.IconClothesRack,IconCloudComputing:icons.IconCloudComputing,IconCloudDataConnection:icons.IconCloudDataConnection,IconCloudDownload:icons.IconCloudDownload,IconCloudFog:icons.IconCloudFog,IconCloudLockOpen:icons.IconCloudLockOpen,IconCloudLock:icons.IconCloudLock,IconCloudOff:icons.IconCloudOff,IconCloudRain:icons.IconCloudRain,IconCloudSnow:icons.IconCloudSnow,IconCloudStorm:icons.IconCloudStorm,IconCloudUpload:icons.IconCloudUpload,IconCloud:icons.IconCloud,IconClover2:icons.IconClover2,IconClover:icons.IconClover,IconClubs:icons.IconClubs,IconCodeAsterix:icons.IconCodeAsterix,IconCodeMinus:icons.IconCodeMinus,IconCodeOff:icons.IconCodeOff,IconCodePlus:icons.IconCodePlus,IconCode:icons.IconCode,IconCoffeeOff:icons.IconCoffeeOff,IconCoffee:icons.IconCoffee,IconCoinBitcoin:icons.IconCoinBitcoin,IconCoinEuro:icons.IconCoinEuro,IconCoinMonero:icons.IconCoinMonero,IconCoinOff:icons.IconCoinOff,IconCoinPound:icons.IconCoinPound,IconCoinRupee:icons.IconCoinRupee,IconCoinYen:icons.IconCoinYen,IconCoinYuan:icons.IconCoinYuan,IconCoin:icons.IconCoin,IconColorPickerOff:icons.IconColorPickerOff,IconColorPicker:icons.IconColorPicker,IconColorSwatchOff:icons.IconColorSwatchOff,IconColorSwatch:icons.IconColorSwatch,IconColumnInsertLeft:icons.IconColumnInsertLeft,IconColumnInsertRight:icons.IconColumnInsertRight,IconColumnsOff:icons.IconColumnsOff,IconColumns:icons.IconColumns,IconComet:icons.IconComet,IconCommandOff:icons.IconCommandOff,IconCommand:icons.IconCommand,IconCompassOff:icons.IconCompassOff,IconCompass:icons.IconCompass,IconComponentsOff:icons.IconComponentsOff,IconComponents:icons.IconComponents,IconCone2:icons.IconCone2,IconConeOff:icons.IconConeOff,IconCone:icons.IconCone,IconConfettiOff:icons.IconConfettiOff,IconConfetti:icons.IconConfetti,IconContainerOff:icons.IconContainerOff,IconContainer:icons.IconContainer,IconContrast2Off:icons.IconContrast2Off,IconContrast2:icons.IconContrast2,IconContrastOff:icons.IconContrastOff,IconContrast:icons.IconContrast,IconCookieOff:icons.IconCookieOff,IconCookie:icons.IconCookie,IconCopyOff:icons.IconCopyOff,IconCopy:icons.IconCopy,IconCopyleftOff:icons.IconCopyleftOff,IconCopyleft:icons.IconCopyleft,IconCopyrightOff:icons.IconCopyrightOff,IconCopyright:icons.IconCopyright,IconCornerDownLeftDouble:icons.IconCornerDownLeftDouble,IconCornerDownLeft:icons.IconCornerDownLeft,IconCornerDownRightDouble:icons.IconCornerDownRightDouble,IconCornerDownRight:icons.IconCornerDownRight,IconCornerLeftDownDouble:icons.IconCornerLeftDownDouble,IconCornerLeftDown:icons.IconCornerLeftDown,IconCornerLeftUpDouble:icons.IconCornerLeftUpDouble,IconCornerLeftUp:icons.IconCornerLeftUp,IconCornerRightDownDouble:icons.IconCornerRightDownDouble,IconCornerRightDown:icons.IconCornerRightDown,IconCornerRightUpDouble:icons.IconCornerRightUpDouble,IconCornerRightUp:icons.IconCornerRightUp,IconCornerUpLeftDouble:icons.IconCornerUpLeftDouble,IconCornerUpLeft:icons.IconCornerUpLeft,IconCornerUpRightDouble:icons.IconCornerUpRightDouble,IconCornerUpRight:icons.IconCornerUpRight,IconCpu2:icons.IconCpu2,IconCpuOff:icons.IconCpuOff,IconCpu:icons.IconCpu,IconCraneOff:icons.IconCraneOff,IconCrane:icons.IconCrane,IconCreativeCommonsBy:icons.IconCreativeCommonsBy,IconCreativeCommonsNc:icons.IconCreativeCommonsNc,IconCreativeCommonsNd:icons.IconCreativeCommonsNd,IconCreativeCommonsOff:icons.IconCreativeCommonsOff,IconCreativeCommonsSa:icons.IconCreativeCommonsSa,IconCreativeCommonsZero:icons.IconCreativeCommonsZero,IconCreativeCommons:icons.IconCreativeCommons,IconCreditCardOff:icons.IconCreditCardOff,IconCreditCard:icons.IconCreditCard,IconCricket:icons.IconCricket,IconCrop:icons.IconCrop,IconCrossOff:icons.IconCrossOff,IconCross:icons.IconCross,IconCrosshair:icons.IconCrosshair,IconCrownOff:icons.IconCrownOff,IconCrown:icons.IconCrown,IconCrutchesOff:icons.IconCrutchesOff,IconCrutches:icons.IconCrutches,IconCupOff:icons.IconCupOff,IconCup:icons.IconCup,IconCurling:icons.IconCurling,IconCurlyLoop:icons.IconCurlyLoop,IconCurrencyBahraini:icons.IconCurrencyBahraini,IconCurrencyBaht:icons.IconCurrencyBaht,IconCurrencyBitcoin:icons.IconCurrencyBitcoin,IconCurrencyCent:icons.IconCurrencyCent,IconCurrencyDinar:icons.IconCurrencyDinar,IconCurrencyDirham:icons.IconCurrencyDirham,IconCurrencyDogecoin:icons.IconCurrencyDogecoin,IconCurrencyDollarAustralian:icons.IconCurrencyDollarAustralian,IconCurrencyDollarBrunei:icons.IconCurrencyDollarBrunei,IconCurrencyDollarCanadian:icons.IconCurrencyDollarCanadian,IconCurrencyDollarGuyanese:icons.IconCurrencyDollarGuyanese,IconCurrencyDollarOff:icons.IconCurrencyDollarOff,IconCurrencyDollarSingapore:icons.IconCurrencyDollarSingapore,IconCurrencyDollarZimbabwean:icons.IconCurrencyDollarZimbabwean,IconCurrencyDollar:icons.IconCurrencyDollar,IconCurrencyDong:icons.IconCurrencyDong,IconCurrencyDram:icons.IconCurrencyDram,IconCurrencyEthereum:icons.IconCurrencyEthereum,IconCurrencyEuroOff:icons.IconCurrencyEuroOff,IconCurrencyEuro:icons.IconCurrencyEuro,IconCurrencyForint:icons.IconCurrencyForint,IconCurrencyFrank:icons.IconCurrencyFrank,IconCurrencyGuarani:icons.IconCurrencyGuarani,IconCurrencyHryvnia:icons.IconCurrencyHryvnia,IconCurrencyKip:icons.IconCurrencyKip,IconCurrencyKroneCzech:icons.IconCurrencyKroneCzech,IconCurrencyKroneDanish:icons.IconCurrencyKroneDanish,IconCurrencyKroneSwedish:icons.IconCurrencyKroneSwedish,IconCurrencyLari:icons.IconCurrencyLari,IconCurrencyLeu:icons.IconCurrencyLeu,IconCurrencyLira:icons.IconCurrencyLira,IconCurrencyLitecoin:icons.IconCurrencyLitecoin,IconCurrencyLyd:icons.IconCurrencyLyd,IconCurrencyManat:icons.IconCurrencyManat,IconCurrencyMonero:icons.IconCurrencyMonero,IconCurrencyNaira:icons.IconCurrencyNaira,IconCurrencyOff:icons.IconCurrencyOff,IconCurrencyPaanga:icons.IconCurrencyPaanga,IconCurrencyPoundOff:icons.IconCurrencyPoundOff,IconCurrencyPound:icons.IconCurrencyPound,IconCurrencyQuetzal:icons.IconCurrencyQuetzal,IconCurrencyReal:icons.IconCurrencyReal,IconCurrencyRenminbi:icons.IconCurrencyRenminbi,IconCurrencyRipple:icons.IconCurrencyRipple,IconCurrencyRiyal:icons.IconCurrencyRiyal,IconCurrencyRubel:icons.IconCurrencyRubel,IconCurrencyRufiyaa:icons.IconCurrencyRufiyaa,IconCurrencyRupeeNepalese:icons.IconCurrencyRupeeNepalese,IconCurrencyRupee:icons.IconCurrencyRupee,IconCurrencyShekel:icons.IconCurrencyShekel,IconCurrencySolana:icons.IconCurrencySolana,IconCurrencySom:icons.IconCurrencySom,IconCurrencyTaka:icons.IconCurrencyTaka,IconCurrencyTenge:icons.IconCurrencyTenge,IconCurrencyTugrik:icons.IconCurrencyTugrik,IconCurrencyWon:icons.IconCurrencyWon,IconCurrencyYenOff:icons.IconCurrencyYenOff,IconCurrencyYen:icons.IconCurrencyYen,IconCurrencyYuan:icons.IconCurrencyYuan,IconCurrencyZloty:icons.IconCurrencyZloty,IconCurrency:icons.IconCurrency,IconCurrentLocationOff:icons.IconCurrentLocationOff,IconCurrentLocation:icons.IconCurrentLocation,IconCursorOff:icons.IconCursorOff,IconCursorText:icons.IconCursorText,IconCut:icons.IconCut,IconDashboardOff:icons.IconDashboardOff,IconDashboard:icons.IconDashboard,IconDatabaseExport:icons.IconDatabaseExport,IconDatabaseImport:icons.IconDatabaseImport,IconDatabaseOff:icons.IconDatabaseOff,IconDatabase:icons.IconDatabase,IconDentalBroken:icons.IconDentalBroken,IconDentalOff:icons.IconDentalOff,IconDental:icons.IconDental,IconDetailsOff:icons.IconDetailsOff,IconDetails:icons.IconDetails,IconDeviceAnalytics:icons.IconDeviceAnalytics,IconDeviceAudioTape:icons.IconDeviceAudioTape,IconDeviceCameraPhone:icons.IconDeviceCameraPhone,IconDeviceCctvOff:icons.IconDeviceCctvOff,IconDeviceCctv:icons.IconDeviceCctv,IconDeviceComputerCameraOff:icons.IconDeviceComputerCameraOff,IconDeviceComputerCamera:icons.IconDeviceComputerCamera,IconDeviceDesktopAnalytics:icons.IconDeviceDesktopAnalytics,IconDeviceDesktopOff:icons.IconDeviceDesktopOff,IconDeviceDesktop:icons.IconDeviceDesktop,IconDeviceFloppy:icons.IconDeviceFloppy,IconDeviceGamepad2:icons.IconDeviceGamepad2,IconDeviceGamepad:icons.IconDeviceGamepad,IconDeviceHeartMonitor:icons.IconDeviceHeartMonitor,IconDeviceLaptopOff:icons.IconDeviceLaptopOff,IconDeviceLaptop:icons.IconDeviceLaptop,IconDeviceMobileCharging:icons.IconDeviceMobileCharging,IconDeviceMobileMessage:icons.IconDeviceMobileMessage,IconDeviceMobileOff:icons.IconDeviceMobileOff,IconDeviceMobileRotated:icons.IconDeviceMobileRotated,IconDeviceMobileVibration:icons.IconDeviceMobileVibration,IconDeviceMobile:icons.IconDeviceMobile,IconDeviceNintendoOff:icons.IconDeviceNintendoOff,IconDeviceNintendo:icons.IconDeviceNintendo,IconDeviceSdCard:icons.IconDeviceSdCard,IconDeviceSpeakerOff:icons.IconDeviceSpeakerOff,IconDeviceSpeaker:icons.IconDeviceSpeaker,IconDeviceTabletOff:icons.IconDeviceTabletOff,IconDeviceTablet:icons.IconDeviceTablet,IconDeviceTvOff:icons.IconDeviceTvOff,IconDeviceTvOld:icons.IconDeviceTvOld,IconDeviceTv:icons.IconDeviceTv,IconDeviceWatchOff:icons.IconDeviceWatchOff,IconDeviceWatchStats2:icons.IconDeviceWatchStats2,IconDeviceWatchStats:icons.IconDeviceWatchStats,IconDeviceWatch:icons.IconDeviceWatch,IconDevices2:icons.IconDevices2,IconDevicesOff:icons.IconDevicesOff,IconDevicesPcOff:icons.IconDevicesPcOff,IconDevicesPc:icons.IconDevicesPc,IconDevices:icons.IconDevices,IconDialpadOff:icons.IconDialpadOff,IconDialpad:icons.IconDialpad,IconDiamondOff:icons.IconDiamondOff,IconDiamond:icons.IconDiamond,IconDiamonds:icons.IconDiamonds,IconDice1:icons.IconDice1,IconDice2:icons.IconDice2,IconDice3:icons.IconDice3,IconDice4:icons.IconDice4,IconDice5:icons.IconDice5,IconDice6:icons.IconDice6,IconDice:icons.IconDice,IconDimensions:icons.IconDimensions,IconDirectionHorizontal:icons.IconDirectionHorizontal,IconDirectionSignOff:icons.IconDirectionSignOff,IconDirectionSign:icons.IconDirectionSign,IconDirection:icons.IconDirection,IconDirectionsOff:icons.IconDirectionsOff,IconDirections:icons.IconDirections,IconDisabled2:icons.IconDisabled2,IconDisabledOff:icons.IconDisabledOff,IconDisabled:icons.IconDisabled,IconDiscGolf:icons.IconDiscGolf,IconDiscOff:icons.IconDiscOff,IconDisc:icons.IconDisc,IconDiscount2Off:icons.IconDiscount2Off,IconDiscount2:icons.IconDiscount2,IconDiscountCheck:icons.IconDiscountCheck,IconDiscountOff:icons.IconDiscountOff,IconDiscount:icons.IconDiscount,IconDivide:icons.IconDivide,IconDna2Off:icons.IconDna2Off,IconDna2:icons.IconDna2,IconDnaOff:icons.IconDnaOff,IconDna:icons.IconDna,IconDogBowl:icons.IconDogBowl,IconDoorEnter:icons.IconDoorEnter,IconDoorExit:icons.IconDoorExit,IconDoorOff:icons.IconDoorOff,IconDoor:icons.IconDoor,IconDotsCircleHorizontal:icons.IconDotsCircleHorizontal,IconDotsDiagonal2:icons.IconDotsDiagonal2,IconDotsDiagonal:icons.IconDotsDiagonal,IconDotsVertical:icons.IconDotsVertical,IconDots:icons.IconDots,IconDownloadOff:icons.IconDownloadOff,IconDownload:icons.IconDownload,IconDragDrop2:icons.IconDragDrop2,IconDragDrop:icons.IconDragDrop,IconDroneOff:icons.IconDroneOff,IconDrone:icons.IconDrone,IconDropCircle:icons.IconDropCircle,IconDropletFilled2:icons.IconDropletFilled2,IconDropletFilled:icons.IconDropletFilled,IconDropletHalf2:icons.IconDropletHalf2,IconDropletHalf:icons.IconDropletHalf,IconDropletOff:icons.IconDropletOff,IconDroplet:icons.IconDroplet,IconEarOff:icons.IconEarOff,IconEar:icons.IconEar,IconEditCircleOff:icons.IconEditCircleOff,IconEditCircle:icons.IconEditCircle,IconEditOff:icons.IconEditOff,IconEdit:icons.IconEdit,IconEggCracked:icons.IconEggCracked,IconEggFried:icons.IconEggFried,IconEggOff:icons.IconEggOff,IconEgg:icons.IconEgg,IconElevatorOff:icons.IconElevatorOff,IconElevator:icons.IconElevator,IconEmergencyBed:icons.IconEmergencyBed,IconEmpathizeOff:icons.IconEmpathizeOff,IconEmpathize:icons.IconEmpathize,IconEmphasis:icons.IconEmphasis,IconEngineOff:icons.IconEngineOff,IconEngine:icons.IconEngine,IconEqualNot:icons.IconEqualNot,IconEqual:icons.IconEqual,IconEraserOff:icons.IconEraserOff,IconEraser:icons.IconEraser,IconError404Off:icons.IconError404Off,IconError404:icons.IconError404,IconExchangeOff:icons.IconExchangeOff,IconExchange:icons.IconExchange,IconExclamationMarkOff:icons.IconExclamationMarkOff,IconExclamationMark:icons.IconExclamationMark,IconExplicitOff:icons.IconExplicitOff,IconExplicit:icons.IconExplicit,IconExposure0:icons.IconExposure0,IconExposureMinus1:icons.IconExposureMinus1,IconExposureMinus2:icons.IconExposureMinus2,IconExposureOff:icons.IconExposureOff,IconExposurePlus1:icons.IconExposurePlus1,IconExposurePlus2:icons.IconExposurePlus2,IconExposure:icons.IconExposure,IconExternalLinkOff:icons.IconExternalLinkOff,IconExternalLink:icons.IconExternalLink,IconEyeCheck:icons.IconEyeCheck,IconEyeOff:icons.IconEyeOff,IconEyeTable:icons.IconEyeTable,IconEye:icons.IconEye,IconEyeglass2:icons.IconEyeglass2,IconEyeglassOff:icons.IconEyeglassOff,IconEyeglass:icons.IconEyeglass,IconFaceIdError:icons.IconFaceIdError,IconFaceId:icons.IconFaceId,IconFaceMaskOff:icons.IconFaceMaskOff,IconFaceMask:icons.IconFaceMask,IconFall:icons.IconFall,IconFeatherOff:icons.IconFeatherOff,IconFeather:icons.IconFeather,IconFenceOff:icons.IconFenceOff,IconFence:icons.IconFence,IconFidgetSpinner:icons.IconFidgetSpinner,IconFile3d:icons.IconFile3d,IconFileAlert:icons.IconFileAlert,IconFileAnalytics:icons.IconFileAnalytics,IconFileArrowLeft:icons.IconFileArrowLeft,IconFileArrowRight:icons.IconFileArrowRight,IconFileBarcode:icons.IconFileBarcode,IconFileCertificate:icons.IconFileCertificate,IconFileChart:icons.IconFileChart,IconFileCheck:icons.IconFileCheck,IconFileCode2:icons.IconFileCode2,IconFileCode:icons.IconFileCode,IconFileDatabase:icons.IconFileDatabase,IconFileDescription:icons.IconFileDescription,IconFileDiff:icons.IconFileDiff,IconFileDigit:icons.IconFileDigit,IconFileDislike:icons.IconFileDislike,IconFileDollar:icons.IconFileDollar,IconFileDots:icons.IconFileDots,IconFileDownload:icons.IconFileDownload,IconFileEuro:icons.IconFileEuro,IconFileExport:icons.IconFileExport,IconFileHorizontal:icons.IconFileHorizontal,IconFileImport:icons.IconFileImport,IconFileInfo:icons.IconFileInfo,IconFileInvoice:icons.IconFileInvoice,IconFileLike:icons.IconFileLike,IconFileMinus:icons.IconFileMinus,IconFileMusic:icons.IconFileMusic,IconFileOff:icons.IconFileOff,IconFileOrientation:icons.IconFileOrientation,IconFilePencil:icons.IconFilePencil,IconFilePhone:icons.IconFilePhone,IconFilePlus:icons.IconFilePlus,IconFilePower:icons.IconFilePower,IconFileReport:icons.IconFileReport,IconFileRss:icons.IconFileRss,IconFileScissors:icons.IconFileScissors,IconFileSearch:icons.IconFileSearch,IconFileSettings:icons.IconFileSettings,IconFileShredder:icons.IconFileShredder,IconFileSignal:icons.IconFileSignal,IconFileSpreadsheet:icons.IconFileSpreadsheet,IconFileStar:icons.IconFileStar,IconFileSymlink:icons.IconFileSymlink,IconFileText:icons.IconFileText,IconFileTime:icons.IconFileTime,IconFileTypography:icons.IconFileTypography,IconFileUnknown:icons.IconFileUnknown,IconFileUpload:icons.IconFileUpload,IconFileVector:icons.IconFileVector,IconFileX:icons.IconFileX,IconFileZip:icons.IconFileZip,IconFile:icons.IconFile,IconFilesOff:icons.IconFilesOff,IconFiles:icons.IconFiles,IconFilterOff:icons.IconFilterOff,IconFilter:icons.IconFilter,IconFingerprintOff:icons.IconFingerprintOff,IconFingerprint:icons.IconFingerprint,IconFireHydrantOff:icons.IconFireHydrantOff,IconFireHydrant:icons.IconFireHydrant,IconFiretruck:icons.IconFiretruck,IconFirstAidKitOff:icons.IconFirstAidKitOff,IconFirstAidKit:icons.IconFirstAidKit,IconFishBone:icons.IconFishBone,IconFishHookOff:icons.IconFishHookOff,IconFishHook:icons.IconFishHook,IconFishOff:icons.IconFishOff,IconFish:icons.IconFish,IconFlag2Off:icons.IconFlag2Off,IconFlag2:icons.IconFlag2,IconFlag3:icons.IconFlag3,IconFlagOff:icons.IconFlagOff,IconFlag:icons.IconFlag,IconFlameOff:icons.IconFlameOff,IconFlame:icons.IconFlame,IconFlare:icons.IconFlare,IconFlask2Off:icons.IconFlask2Off,IconFlask2:icons.IconFlask2,IconFlaskOff:icons.IconFlaskOff,IconFlask:icons.IconFlask,IconFlipHorizontal:icons.IconFlipHorizontal,IconFlipVertical:icons.IconFlipVertical,IconFloatCenter:icons.IconFloatCenter,IconFloatLeft:icons.IconFloatLeft,IconFloatNone:icons.IconFloatNone,IconFloatRight:icons.IconFloatRight,IconFlowerOff:icons.IconFlowerOff,IconFlower:icons.IconFlower,IconFocus2:icons.IconFocus2,IconFocusCentered:icons.IconFocusCentered,IconFocus:icons.IconFocus,IconFoldDown:icons.IconFoldDown,IconFoldUp:icons.IconFoldUp,IconFold:icons.IconFold,IconFolderMinus:icons.IconFolderMinus,IconFolderOff:icons.IconFolderOff,IconFolderPlus:icons.IconFolderPlus,IconFolderX:icons.IconFolderX,IconFolder:icons.IconFolder,IconFoldersOff:icons.IconFoldersOff,IconFolders:icons.IconFolders,IconForbid2:icons.IconForbid2,IconForbid:icons.IconForbid,IconForklift:icons.IconForklift,IconForms:icons.IconForms,IconFountainOff:icons.IconFountainOff,IconFountain:icons.IconFountain,IconFrameOff:icons.IconFrameOff,IconFrame:icons.IconFrame,IconFreeRights:icons.IconFreeRights,IconFridgeOff:icons.IconFridgeOff,IconFridge:icons.IconFridge,IconFriendsOff:icons.IconFriendsOff,IconFriends:icons.IconFriends,IconFunctionOff:icons.IconFunctionOff,IconFunction:icons.IconFunction,IconGardenCartOff:icons.IconGardenCartOff,IconGardenCart:icons.IconGardenCart,IconGasStationOff:icons.IconGasStationOff,IconGasStation:icons.IconGasStation,IconGaugeOff:icons.IconGaugeOff,IconGauge:icons.IconGauge,IconGavel:icons.IconGavel,IconGenderAgender:icons.IconGenderAgender,IconGenderAndrogyne:icons.IconGenderAndrogyne,IconGenderBigender:icons.IconGenderBigender,IconGenderDemiboy:icons.IconGenderDemiboy,IconGenderDemigirl:icons.IconGenderDemigirl,IconGenderEpicene:icons.IconGenderEpicene,IconGenderFemale:icons.IconGenderFemale,IconGenderFemme:icons.IconGenderFemme,IconGenderGenderfluid:icons.IconGenderGenderfluid,IconGenderGenderless:icons.IconGenderGenderless,IconGenderGenderqueer:icons.IconGenderGenderqueer,IconGenderHermaphrodite:icons.IconGenderHermaphrodite,IconGenderIntergender:icons.IconGenderIntergender,IconGenderMale:icons.IconGenderMale,IconGenderNeutrois:icons.IconGenderNeutrois,IconGenderThird:icons.IconGenderThird,IconGenderTransgender:icons.IconGenderTransgender,IconGenderTrasvesti:icons.IconGenderTrasvesti,IconGeometry:icons.IconGeometry,IconGhostOff:icons.IconGhostOff,IconGhost:icons.IconGhost,IconGif:icons.IconGif,IconGiftCard:icons.IconGiftCard,IconGiftOff:icons.IconGiftOff,IconGift:icons.IconGift,IconGitBranch:icons.IconGitBranch,IconGitCommit:icons.IconGitCommit,IconGitCompare:icons.IconGitCompare,IconGitFork:icons.IconGitFork,IconGitMerge:icons.IconGitMerge,IconGitPullRequestClosed:icons.IconGitPullRequestClosed,IconGitPullRequestDraft:icons.IconGitPullRequestDraft,IconGitPullRequest:icons.IconGitPullRequest,IconGizmo:icons.IconGizmo,IconGlassFull:icons.IconGlassFull,IconGlassOff:icons.IconGlassOff,IconGlass:icons.IconGlass,IconGlobeOff:icons.IconGlobeOff,IconGlobe:icons.IconGlobe,IconGolfOff:icons.IconGolfOff,IconGolf:icons.IconGolf,IconGps:icons.IconGps,IconGradienter:icons.IconGradienter,IconGrain:icons.IconGrain,IconGraphOff:icons.IconGraphOff,IconGraph:icons.IconGraph,IconGridDots:icons.IconGridDots,IconGridPattern:icons.IconGridPattern,IconGrillFork:icons.IconGrillFork,IconGrillOff:icons.IconGrillOff,IconGrillSpatula:icons.IconGrillSpatula,IconGrill:icons.IconGrill,IconGripHorizontal:icons.IconGripHorizontal,IconGripVertical:icons.IconGripVertical,IconGrowth:icons.IconGrowth,IconH1:icons.IconH1,IconH2:icons.IconH2,IconH3:icons.IconH3,IconH4:icons.IconH4,IconH5:icons.IconH5,IconH6:icons.IconH6,IconHammerOff:icons.IconHammerOff,IconHammer:icons.IconHammer,IconHandClick:icons.IconHandClick,IconHandFingerOff:icons.IconHandFingerOff,IconHandFinger:icons.IconHandFinger,IconHandGrab:icons.IconHandGrab,IconHandLittleFinger:icons.IconHandLittleFinger,IconHandMiddleFinger:icons.IconHandMiddleFinger,IconHandMove:icons.IconHandMove,IconHandOff:icons.IconHandOff,IconHandRingFinger:icons.IconHandRingFinger,IconHandRock:icons.IconHandRock,IconHandStop:icons.IconHandStop,IconHandThreeFingers:icons.IconHandThreeFingers,IconHandTwoFingers:icons.IconHandTwoFingers,IconHanger2:icons.IconHanger2,IconHangerOff:icons.IconHangerOff,IconHanger:icons.IconHanger,IconHash:icons.IconHash,IconHaze:icons.IconHaze,IconHeadingOff:icons.IconHeadingOff,IconHeading:icons.IconHeading,IconHeadphonesOff:icons.IconHeadphonesOff,IconHeadphones:icons.IconHeadphones,IconHeadsetOff:icons.IconHeadsetOff,IconHeadset:icons.IconHeadset,IconHealthRecognition:icons.IconHealthRecognition,IconHeartBroken:icons.IconHeartBroken,IconHeartHandshake:icons.IconHeartHandshake,IconHeartMinus:icons.IconHeartMinus,IconHeartOff:icons.IconHeartOff,IconHeartPlus:icons.IconHeartPlus,IconHeartRateMonitor:icons.IconHeartRateMonitor,IconHeart:icons.IconHeart,IconHeartbeat:icons.IconHeartbeat,IconHeartsOff:icons.IconHeartsOff,IconHearts:icons.IconHearts,IconHelicopterLanding:icons.IconHelicopterLanding,IconHelicopter:icons.IconHelicopter,IconHelmetOff:icons.IconHelmetOff,IconHelmet:icons.IconHelmet,IconHelpOff:icons.IconHelpOff,IconHelp:icons.IconHelp,IconHexagon0:icons.IconHexagon0,IconHexagon1:icons.IconHexagon1,IconHexagon2:icons.IconHexagon2,IconHexagon3:icons.IconHexagon3,IconHexagon4:icons.IconHexagon4,IconHexagon5:icons.IconHexagon5,IconHexagon6:icons.IconHexagon6,IconHexagon7:icons.IconHexagon7,IconHexagon8:icons.IconHexagon8,IconHexagon9:icons.IconHexagon9,IconHexagonA:icons.IconHexagonA,IconHexagonB:icons.IconHexagonB,IconHexagonC:icons.IconHexagonC,IconHexagonD:icons.IconHexagonD,IconHexagonE:icons.IconHexagonE,IconHexagonF:icons.IconHexagonF,IconHexagonG:icons.IconHexagonG,IconHexagonH:icons.IconHexagonH,IconHexagonI:icons.IconHexagonI,IconHexagonJ:icons.IconHexagonJ,IconHexagonK:icons.IconHexagonK,IconHexagonL:icons.IconHexagonL,IconHexagonM:icons.IconHexagonM,IconHexagonN:icons.IconHexagonN,IconHexagonO:icons.IconHexagonO,IconHexagonOff:icons.IconHexagonOff,IconHexagonP:icons.IconHexagonP,IconHexagonQ:icons.IconHexagonQ,IconHexagonR:icons.IconHexagonR,IconHexagonS:icons.IconHexagonS,IconHexagonT:icons.IconHexagonT,IconHexagonU:icons.IconHexagonU,IconHexagonW:icons.IconHexagonW,IconHexagonX:icons.IconHexagonX,IconHexagonY:icons.IconHexagonY,IconHexagonZ:icons.IconHexagonZ,IconHexagon:icons.IconHexagon,IconHexagonsOff:icons.IconHexagonsOff,IconHexagons:icons.IconHexagons,IconHierarchy2:icons.IconHierarchy2,IconHierarchy3:icons.IconHierarchy3,IconHierarchyOff:icons.IconHierarchyOff,IconHierarchy:icons.IconHierarchy,IconHighlightOff:icons.IconHighlightOff,IconHighlight:icons.IconHighlight,IconHistoryOff:icons.IconHistoryOff,IconHistoryToggle:icons.IconHistoryToggle,IconHistory:icons.IconHistory,IconHome2:icons.IconHome2,IconHomeBolt:icons.IconHomeBolt,IconHomeCancel:icons.IconHomeCancel,IconHomeCheck:icons.IconHomeCheck,IconHomeCog:icons.IconHomeCog,IconHomeDollar:icons.IconHomeDollar,IconHomeDot:icons.IconHomeDot,IconHomeDown:icons.IconHomeDown,IconHomeEco:icons.IconHomeEco,IconHomeEdit:icons.IconHomeEdit,IconHomeExclamation:icons.IconHomeExclamation,IconHomeHeart:icons.IconHomeHeart,IconHomeLink:icons.IconHomeLink,IconHomeMinus:icons.IconHomeMinus,IconHomeMove:icons.IconHomeMove,IconHomeOff:icons.IconHomeOff,IconHomePlus:icons.IconHomePlus,IconHomeQuestion:icons.IconHomeQuestion,IconHomeRibbon:icons.IconHomeRibbon,IconHomeSearch:icons.IconHomeSearch,IconHomeShare:icons.IconHomeShare,IconHomeShield:icons.IconHomeShield,IconHomeSignal:icons.IconHomeSignal,IconHomeStar:icons.IconHomeStar,IconHomeStats:icons.IconHomeStats,IconHomeUp:icons.IconHomeUp,IconHomeX:icons.IconHomeX,IconHome:icons.IconHome,IconHorseToy:icons.IconHorseToy,IconHotelService:icons.IconHotelService,IconHourglassEmpty:icons.IconHourglassEmpty,IconHourglassHigh:icons.IconHourglassHigh,IconHourglassLow:icons.IconHourglassLow,IconHourglassOff:icons.IconHourglassOff,IconHourglass:icons.IconHourglass,IconIceCream2:icons.IconIceCream2,IconIceCreamOff:icons.IconIceCreamOff,IconIceCream:icons.IconIceCream,IconIceSkating:icons.IconIceSkating,IconIconsOff:icons.IconIconsOff,IconIcons:icons.IconIcons,IconIdBadge2:icons.IconIdBadge2,IconIdBadgeOff:icons.IconIdBadgeOff,IconIdBadge:icons.IconIdBadge,IconIdOff:icons.IconIdOff,IconId:icons.IconId,IconInboxOff:icons.IconInboxOff,IconInbox:icons.IconInbox,IconIndentDecrease:icons.IconIndentDecrease,IconIndentIncrease:icons.IconIndentIncrease,IconInfinityOff:icons.IconInfinityOff,IconInfinity:icons.IconInfinity,IconInfoCircle:icons.IconInfoCircle,IconInfoSquare:icons.IconInfoSquare,IconInputSearch:icons.IconInputSearch,IconIroning1:icons.IconIroning1,IconIroning2:icons.IconIroning2,IconIroning3:icons.IconIroning3,IconIroningOff:icons.IconIroningOff,IconIroningSteamOff:icons.IconIroningSteamOff,IconIroningSteam:icons.IconIroningSteam,IconItalic:icons.IconItalic,IconJewishStar:icons.IconJewishStar,IconJpg:icons.IconJpg,IconJumpRope:icons.IconJumpRope,IconKarate:icons.IconKarate,IconKayak:icons.IconKayak,IconKering:icons.IconKering,IconKeyOff:icons.IconKeyOff,IconKey:icons.IconKey,IconKeyboardHide:icons.IconKeyboardHide,IconKeyboardOff:icons.IconKeyboardOff,IconKeyboardShow:icons.IconKeyboardShow,IconKeyboard:icons.IconKeyboard,IconLadderOff:icons.IconLadderOff,IconLadder:icons.IconLadder,IconLamp2:icons.IconLamp2,IconLampOff:icons.IconLampOff,IconLamp:icons.IconLamp,IconLanguageHiragana:icons.IconLanguageHiragana,IconLanguageKatakana:icons.IconLanguageKatakana,IconLanguageOff:icons.IconLanguageOff,IconLanguage:icons.IconLanguage,IconLassoOff:icons.IconLassoOff,IconLassoPolygon:icons.IconLassoPolygon,IconLasso:icons.IconLasso,IconLayersDifference:icons.IconLayersDifference,IconLayersIntersect2:icons.IconLayersIntersect2,IconLayersIntersect:icons.IconLayersIntersect,IconLayersLinked:icons.IconLayersLinked,IconLayersOff:icons.IconLayersOff,IconLayersSubtract:icons.IconLayersSubtract,IconLayersUnion:icons.IconLayersUnion,IconLayout2:icons.IconLayout2,IconLayoutAlignBottom:icons.IconLayoutAlignBottom,IconLayoutAlignCenter:icons.IconLayoutAlignCenter,IconLayoutAlignLeft:icons.IconLayoutAlignLeft,IconLayoutAlignMiddle:icons.IconLayoutAlignMiddle,IconLayoutAlignRight:icons.IconLayoutAlignRight,IconLayoutAlignTop:icons.IconLayoutAlignTop,IconLayoutBoardSplit:icons.IconLayoutBoardSplit,IconLayoutBoard:icons.IconLayoutBoard,IconLayoutBottombarCollapse:icons.IconLayoutBottombarCollapse,IconLayoutBottombarExpand:icons.IconLayoutBottombarExpand,IconLayoutBottombar:icons.IconLayoutBottombar,IconLayoutCards:icons.IconLayoutCards,IconLayoutCollage:icons.IconLayoutCollage,IconLayoutColumns:icons.IconLayoutColumns,IconLayoutDashboard:icons.IconLayoutDashboard,IconLayoutDistributeHorizontal:icons.IconLayoutDistributeHorizontal,IconLayoutDistributeVertical:icons.IconLayoutDistributeVertical,IconLayoutGridAdd:icons.IconLayoutGridAdd,IconLayoutGrid:icons.IconLayoutGrid,IconLayoutKanban:icons.IconLayoutKanban,IconLayoutList:icons.IconLayoutList,IconLayoutNavbarCollapse:icons.IconLayoutNavbarCollapse,IconLayoutNavbarExpand:icons.IconLayoutNavbarExpand,IconLayoutNavbar:icons.IconLayoutNavbar,IconLayoutOff:icons.IconLayoutOff,IconLayoutRows:icons.IconLayoutRows,IconLayoutSidebarLeftCollapse:icons.IconLayoutSidebarLeftCollapse,IconLayoutSidebarLeftExpand:icons.IconLayoutSidebarLeftExpand,IconLayoutSidebarRightCollapse:icons.IconLayoutSidebarRightCollapse,IconLayoutSidebarRightExpand:icons.IconLayoutSidebarRightExpand,IconLayoutSidebarRight:icons.IconLayoutSidebarRight,IconLayoutSidebar:icons.IconLayoutSidebar,IconLayout:icons.IconLayout,IconLeafOff:icons.IconLeafOff,IconLeaf:icons.IconLeaf,IconLegoOff:icons.IconLegoOff,IconLego:icons.IconLego,IconLemon2:icons.IconLemon2,IconLemon:icons.IconLemon,IconLetterA:icons.IconLetterA,IconLetterB:icons.IconLetterB,IconLetterC:icons.IconLetterC,IconLetterCaseLower:icons.IconLetterCaseLower,IconLetterCaseToggle:icons.IconLetterCaseToggle,IconLetterCaseUpper:icons.IconLetterCaseUpper,IconLetterCase:icons.IconLetterCase,IconLetterD:icons.IconLetterD,IconLetterE:icons.IconLetterE,IconLetterF:icons.IconLetterF,IconLetterG:icons.IconLetterG,IconLetterH:icons.IconLetterH,IconLetterI:icons.IconLetterI,IconLetterJ:icons.IconLetterJ,IconLetterK:icons.IconLetterK,IconLetterL:icons.IconLetterL,IconLetterM:icons.IconLetterM,IconLetterN:icons.IconLetterN,IconLetterO:icons.IconLetterO,IconLetterP:icons.IconLetterP,IconLetterQ:icons.IconLetterQ,IconLetterR:icons.IconLetterR,IconLetterS:icons.IconLetterS,IconLetterSpacing:icons.IconLetterSpacing,IconLetterT:icons.IconLetterT,IconLetterU:icons.IconLetterU,IconLetterV:icons.IconLetterV,IconLetterW:icons.IconLetterW,IconLetterX:icons.IconLetterX,IconLetterY:icons.IconLetterY,IconLetterZ:icons.IconLetterZ,IconLicenseOff:icons.IconLicenseOff,IconLicense:icons.IconLicense,IconLifebuoyOff:icons.IconLifebuoyOff,IconLifebuoy:icons.IconLifebuoy,IconLineDashed:icons.IconLineDashed,IconLineDotted:icons.IconLineDotted,IconLineHeight:icons.IconLineHeight,IconLine:icons.IconLine,IconLinkOff:icons.IconLinkOff,IconLink:icons.IconLink,IconListCheck:icons.IconListCheck,IconListDetails:icons.IconListDetails,IconListNumbers:icons.IconListNumbers,IconListSearch:icons.IconListSearch,IconList:icons.IconList,IconLivePhotoOff:icons.IconLivePhotoOff,IconLivePhoto:icons.IconLivePhoto,IconLiveView:icons.IconLiveView,IconLoader2:icons.IconLoader2,IconLoaderQuarter:icons.IconLoaderQuarter,IconLoader:icons.IconLoader,IconLocationBroken:icons.IconLocationBroken,IconLocationOff:icons.IconLocationOff,IconLocation:icons.IconLocation,IconLockAccessOff:icons.IconLockAccessOff,IconLockAccess:icons.IconLockAccess,IconLockOff:icons.IconLockOff,IconLockOpenOff:icons.IconLockOpenOff,IconLockOpen:icons.IconLockOpen,IconLockSquare:icons.IconLockSquare,IconLock:icons.IconLock,IconLogicAnd:icons.IconLogicAnd,IconLogicBuffer:icons.IconLogicBuffer,IconLogicNand:icons.IconLogicNand,IconLogicNor:icons.IconLogicNor,IconLogicNot:icons.IconLogicNot,IconLogicOr:icons.IconLogicOr,IconLogicXnor:icons.IconLogicXnor,IconLogicXor:icons.IconLogicXor,IconLogin:icons.IconLogin,IconLogout:icons.IconLogout,IconLollipopOff:icons.IconLollipopOff,IconLollipop:icons.IconLollipop,IconLuggageOff:icons.IconLuggageOff,IconLuggage:icons.IconLuggage,IconLungsOff:icons.IconLungsOff,IconLungs:icons.IconLungs,IconMacroOff:icons.IconMacroOff,IconMacro:icons.IconMacro,IconMagnetOff:icons.IconMagnetOff,IconMagnet:icons.IconMagnet,IconMailFast:icons.IconMailFast,IconMailForward:icons.IconMailForward,IconMailOff:icons.IconMailOff,IconMailOpened:icons.IconMailOpened,IconMail:icons.IconMail,IconMailboxOff:icons.IconMailboxOff,IconMailbox:icons.IconMailbox,IconMan:icons.IconMan,IconManualGearbox:icons.IconManualGearbox,IconMap2:icons.IconMap2,IconMapOff:icons.IconMapOff,IconMapPinOff:icons.IconMapPinOff,IconMapPin:icons.IconMapPin,IconMapPins:icons.IconMapPins,IconMapSearch:icons.IconMapSearch,IconMap:icons.IconMap,IconMarkdownOff:icons.IconMarkdownOff,IconMarkdown:icons.IconMarkdown,IconMarquee2:icons.IconMarquee2,IconMarqueeOff:icons.IconMarqueeOff,IconMarquee:icons.IconMarquee,IconMars:icons.IconMars,IconMaskOff:icons.IconMaskOff,IconMask:icons.IconMask,IconMasksTheaterOff:icons.IconMasksTheaterOff,IconMasksTheater:icons.IconMasksTheater,IconMassage:icons.IconMassage,IconMathAvg:icons.IconMathAvg,IconMathFunctionOff:icons.IconMathFunctionOff,IconMathFunction:icons.IconMathFunction,IconMathMax:icons.IconMathMax,IconMathMin:icons.IconMathMin,IconMathOff:icons.IconMathOff,IconMathSymbols:icons.IconMathSymbols,IconMath:icons.IconMath,IconMaximizeOff:icons.IconMaximizeOff,IconMaximize:icons.IconMaximize,IconMeatOff:icons.IconMeatOff,IconMeat:icons.IconMeat,IconMedal2:icons.IconMedal2,IconMedal:icons.IconMedal,IconMedicalCrossOff:icons.IconMedicalCrossOff,IconMedicalCross:icons.IconMedicalCross,IconMedicineSyrup:icons.IconMedicineSyrup,IconMenu2:icons.IconMenu2,IconMenu:icons.IconMenu,IconMessage2Code:icons.IconMessage2Code,IconMessage2Off:icons.IconMessage2Off,IconMessage2Share:icons.IconMessage2Share,IconMessage2:icons.IconMessage2,IconMessageChatbot:icons.IconMessageChatbot,IconMessageCircle2:icons.IconMessageCircle2,IconMessageCircleOff:icons.IconMessageCircleOff,IconMessageCircle:icons.IconMessageCircle,IconMessageCode:icons.IconMessageCode,IconMessageDots:icons.IconMessageDots,IconMessageForward:icons.IconMessageForward,IconMessageLanguage:icons.IconMessageLanguage,IconMessageOff:icons.IconMessageOff,IconMessagePlus:icons.IconMessagePlus,IconMessageReport:icons.IconMessageReport,IconMessageShare:icons.IconMessageShare,IconMessage:icons.IconMessage,IconMessagesOff:icons.IconMessagesOff,IconMessages:icons.IconMessages,IconMeteorOff:icons.IconMeteorOff,IconMeteor:icons.IconMeteor,IconMickey:icons.IconMickey,IconMicrophone2Off:icons.IconMicrophone2Off,IconMicrophone2:icons.IconMicrophone2,IconMicrophoneOff:icons.IconMicrophoneOff,IconMicrophone:icons.IconMicrophone,IconMicroscopeOff:icons.IconMicroscopeOff,IconMicroscope:icons.IconMicroscope,IconMicrowaveOff:icons.IconMicrowaveOff,IconMicrowave:icons.IconMicrowave,IconMilitaryAward:icons.IconMilitaryAward,IconMilitaryRank:icons.IconMilitaryRank,IconMilkOff:icons.IconMilkOff,IconMilk:icons.IconMilk,IconMinimize:icons.IconMinimize,IconMinusVertical:icons.IconMinusVertical,IconMinus:icons.IconMinus,IconMistOff:icons.IconMistOff,IconMist:icons.IconMist,IconMoodAngry:icons.IconMoodAngry,IconMoodAnnoyed2:icons.IconMoodAnnoyed2,IconMoodAnnoyed:icons.IconMoodAnnoyed,IconMoodBoy:icons.IconMoodBoy,IconMoodConfuzed:icons.IconMoodConfuzed,IconMoodCrazyHappy:icons.IconMoodCrazyHappy,IconMoodCry:icons.IconMoodCry,IconMoodEmpty:icons.IconMoodEmpty,IconMoodHappy:icons.IconMoodHappy,IconMoodKid:icons.IconMoodKid,IconMoodLookLeft:icons.IconMoodLookLeft,IconMoodLookRight:icons.IconMoodLookRight,IconMoodNerd:icons.IconMoodNerd,IconMoodNervous:icons.IconMoodNervous,IconMoodNeutral:icons.IconMoodNeutral,IconMoodOff:icons.IconMoodOff,IconMoodSad2:icons.IconMoodSad2,IconMoodSadDizzy:icons.IconMoodSadDizzy,IconMoodSadSquint:icons.IconMoodSadSquint,IconMoodSad:icons.IconMoodSad,IconMoodSick:icons.IconMoodSick,IconMoodSilence:icons.IconMoodSilence,IconMoodSing:icons.IconMoodSing,IconMoodSmileBeam:icons.IconMoodSmileBeam,IconMoodSmileDizzy:icons.IconMoodSmileDizzy,IconMoodSmile:icons.IconMoodSmile,IconMoodSuprised:icons.IconMoodSuprised,IconMoodTongueWink2:icons.IconMoodTongueWink2,IconMoodTongueWink:icons.IconMoodTongueWink,IconMoodTongue:icons.IconMoodTongue,IconMoodUnamused:icons.IconMoodUnamused,IconMoodWink2:icons.IconMoodWink2,IconMoodWink:icons.IconMoodWink,IconMoodWrrr:icons.IconMoodWrrr,IconMoodXd:icons.IconMoodXd,IconMoon2:icons.IconMoon2,IconMoonOff:icons.IconMoonOff,IconMoonStars:icons.IconMoonStars,IconMoon:icons.IconMoon,IconMoped:icons.IconMoped,IconMotorbike:icons.IconMotorbike,IconMountainOff:icons.IconMountainOff,IconMountain:icons.IconMountain,IconMouse2:icons.IconMouse2,IconMouseOff:icons.IconMouseOff,IconMouse:icons.IconMouse,IconMovieOff:icons.IconMovieOff,IconMovie:icons.IconMovie,IconMugOff:icons.IconMugOff,IconMug:icons.IconMug,IconMultiplier05x:icons.IconMultiplier05x,IconMultiplier15x:icons.IconMultiplier15x,IconMultiplier1x:icons.IconMultiplier1x,IconMultiplier2x:icons.IconMultiplier2x,IconMushroomOff:icons.IconMushroomOff,IconMushroom:icons.IconMushroom,IconMusicOff:icons.IconMusicOff,IconMusic:icons.IconMusic,IconNavigationOff:icons.IconNavigationOff,IconNavigation:icons.IconNavigation,IconNetworkOff:icons.IconNetworkOff,IconNetwork:icons.IconNetwork,IconNewSection:icons.IconNewSection,IconNewsOff:icons.IconNewsOff,IconNews:icons.IconNews,IconNfcOff:icons.IconNfcOff,IconNfc:icons.IconNfc,IconNoCopyright:icons.IconNoCopyright,IconNoCreativeCommons:icons.IconNoCreativeCommons,IconNoDerivatives:icons.IconNoDerivatives,IconNorthStar:icons.IconNorthStar,IconNoteOff:icons.IconNoteOff,IconNote:icons.IconNote,IconNotebookOff:icons.IconNotebookOff,IconNotebook:icons.IconNotebook,IconNotesOff:icons.IconNotesOff,IconNotes:icons.IconNotes,IconNotificationOff:icons.IconNotificationOff,IconNotification:icons.IconNotification,IconNumber0:icons.IconNumber0,IconNumber1:icons.IconNumber1,IconNumber2:icons.IconNumber2,IconNumber3:icons.IconNumber3,IconNumber4:icons.IconNumber4,IconNumber5:icons.IconNumber5,IconNumber6:icons.IconNumber6,IconNumber7:icons.IconNumber7,IconNumber8:icons.IconNumber8,IconNumber9:icons.IconNumber9,IconNumber:icons.IconNumber,IconNumbers:icons.IconNumbers,IconNurse:icons.IconNurse,IconOctagonOff:icons.IconOctagonOff,IconOctagon:icons.IconOctagon,IconOld:icons.IconOld,IconOlympicsOff:icons.IconOlympicsOff,IconOlympics:icons.IconOlympics,IconOmega:icons.IconOmega,IconOutbound:icons.IconOutbound,IconOutlet:icons.IconOutlet,IconOvalVertical:icons.IconOvalVertical,IconOval:icons.IconOval,IconOverline:icons.IconOverline,IconPackageOff:icons.IconPackageOff,IconPackage:icons.IconPackage,IconPackages:icons.IconPackages,IconPackgeExport:icons.IconPackgeExport,IconPackgeImport:icons.IconPackgeImport,IconPacman:icons.IconPacman,IconPageBreak:icons.IconPageBreak,IconPaintOff:icons.IconPaintOff,IconPaint:icons.IconPaint,IconPaletteOff:icons.IconPaletteOff,IconPalette:icons.IconPalette,IconPanoramaHorizontalOff:icons.IconPanoramaHorizontalOff,IconPanoramaHorizontal:icons.IconPanoramaHorizontal,IconPanoramaVerticalOff:icons.IconPanoramaVerticalOff,IconPanoramaVertical:icons.IconPanoramaVertical,IconPaperBagOff:icons.IconPaperBagOff,IconPaperBag:icons.IconPaperBag,IconPaperclip:icons.IconPaperclip,IconParachuteOff:icons.IconParachuteOff,IconParachute:icons.IconParachute,IconParenthesesOff:icons.IconParenthesesOff,IconParentheses:icons.IconParentheses,IconParkingOff:icons.IconParkingOff,IconParking:icons.IconParking,IconPawOff:icons.IconPawOff,IconPaw:icons.IconPaw,IconPeace:icons.IconPeace,IconPencilMinus:icons.IconPencilMinus,IconPencilOff:icons.IconPencilOff,IconPencilPlus:icons.IconPencilPlus,IconPencil:icons.IconPencil,IconPennant2:icons.IconPennant2,IconPennantOff:icons.IconPennantOff,IconPennant:icons.IconPennant,IconPentagonOff:icons.IconPentagonOff,IconPentagon:icons.IconPentagon,IconPepperOff:icons.IconPepperOff,IconPepper:icons.IconPepper,IconPercentage:icons.IconPercentage,IconPerspectiveOff:icons.IconPerspectiveOff,IconPerspective:icons.IconPerspective,IconPhoneCall:icons.IconPhoneCall,IconPhoneCalling:icons.IconPhoneCalling,IconPhoneCheck:icons.IconPhoneCheck,IconPhoneIncoming:icons.IconPhoneIncoming,IconPhoneOff:icons.IconPhoneOff,IconPhoneOutgoing:icons.IconPhoneOutgoing,IconPhonePause:icons.IconPhonePause,IconPhonePlus:icons.IconPhonePlus,IconPhoneX:icons.IconPhoneX,IconPhone:icons.IconPhone,IconPhotoCancel:icons.IconPhotoCancel,IconPhotoCheck:icons.IconPhotoCheck,IconPhotoDown:icons.IconPhotoDown,IconPhotoEdit:icons.IconPhotoEdit,IconPhotoHeart:icons.IconPhotoHeart,IconPhotoMinus:icons.IconPhotoMinus,IconPhotoOff:icons.IconPhotoOff,IconPhotoPlus:icons.IconPhotoPlus,IconPhotoSearch:icons.IconPhotoSearch,IconPhotoShield:icons.IconPhotoShield,IconPhotoStar:icons.IconPhotoStar,IconPhotoUp:icons.IconPhotoUp,IconPhotoX:icons.IconPhotoX,IconPhoto:icons.IconPhoto,IconPhysotherapist:icons.IconPhysotherapist,IconPictureInPictureOff:icons.IconPictureInPictureOff,IconPictureInPictureOn:icons.IconPictureInPictureOn,IconPictureInPictureTop:icons.IconPictureInPictureTop,IconPictureInPicture:icons.IconPictureInPicture,IconPigMoney:icons.IconPigMoney,IconPigOff:icons.IconPigOff,IconPig:icons.IconPig,IconPillOff:icons.IconPillOff,IconPill:icons.IconPill,IconPills:icons.IconPills,IconPin:icons.IconPin,IconPingPong:icons.IconPingPong,IconPinnedOff:icons.IconPinnedOff,IconPinned:icons.IconPinned,IconPizzaOff:icons.IconPizzaOff,IconPizza:icons.IconPizza,IconPlaneArrival:icons.IconPlaneArrival,IconPlaneDeparture:icons.IconPlaneDeparture,IconPlaneInflight:icons.IconPlaneInflight,IconPlaneOff:icons.IconPlaneOff,IconPlaneTilt:icons.IconPlaneTilt,IconPlane:icons.IconPlane,IconPlanetOff:icons.IconPlanetOff,IconPlanet:icons.IconPlanet,IconPlant2Off:icons.IconPlant2Off,IconPlant2:icons.IconPlant2,IconPlantOff:icons.IconPlantOff,IconPlant:icons.IconPlant,IconPlayCardOff:icons.IconPlayCardOff,IconPlayCard:icons.IconPlayCard,IconPlayerEject:icons.IconPlayerEject,IconPlayerPause:icons.IconPlayerPause,IconPlayerPlay:icons.IconPlayerPlay,IconPlayerRecord:icons.IconPlayerRecord,IconPlayerSkipBack:icons.IconPlayerSkipBack,IconPlayerSkipForward:icons.IconPlayerSkipForward,IconPlayerStop:icons.IconPlayerStop,IconPlayerTrackNext:icons.IconPlayerTrackNext,IconPlayerTrackPrev:icons.IconPlayerTrackPrev,IconPlaylistAdd:icons.IconPlaylistAdd,IconPlaylistOff:icons.IconPlaylistOff,IconPlaylistX:icons.IconPlaylistX,IconPlaylist:icons.IconPlaylist,IconPlaystationCircle:icons.IconPlaystationCircle,IconPlaystationSquare:icons.IconPlaystationSquare,IconPlaystationTriangle:icons.IconPlaystationTriangle,IconPlaystationX:icons.IconPlaystationX,IconPlugConnectedX:icons.IconPlugConnectedX,IconPlugConnected:icons.IconPlugConnected,IconPlugOff:icons.IconPlugOff,IconPlugX:icons.IconPlugX,IconPlug:icons.IconPlug,IconPlus:icons.IconPlus,IconPng:icons.IconPng,IconPodiumOff:icons.IconPodiumOff,IconPodium:icons.IconPodium,IconPointOff:icons.IconPointOff,IconPoint:icons.IconPoint,IconPointer:icons.IconPointer,IconPokeballOff:icons.IconPokeballOff,IconPokeball:icons.IconPokeball,IconPolaroid:icons.IconPolaroid,IconPolygonOff:icons.IconPolygonOff,IconPolygon:icons.IconPolygon,IconPoo:icons.IconPoo,IconPoolOff:icons.IconPoolOff,IconPool:icons.IconPool,IconPower:icons.IconPower,IconPray:icons.IconPray,IconPremiumRights:icons.IconPremiumRights,IconPrescription:icons.IconPrescription,IconPresentationAnalytics:icons.IconPresentationAnalytics,IconPresentationOff:icons.IconPresentationOff,IconPresentation:icons.IconPresentation,IconPrinterOff:icons.IconPrinterOff,IconPrinter:icons.IconPrinter,IconPrison:icons.IconPrison,IconPrompt:icons.IconPrompt,IconPropellerOff:icons.IconPropellerOff,IconPropeller:icons.IconPropeller,IconPuzzle2:icons.IconPuzzle2,IconPuzzleOff:icons.IconPuzzleOff,IconPuzzle:icons.IconPuzzle,IconPyramidOff:icons.IconPyramidOff,IconPyramid:icons.IconPyramid,IconQrcodeOff:icons.IconQrcodeOff,IconQrcode:icons.IconQrcode,IconQuestionMark:icons.IconQuestionMark,IconQuoteOff:icons.IconQuoteOff,IconQuote:icons.IconQuote,IconRadar2:icons.IconRadar2,IconRadarOff:icons.IconRadarOff,IconRadar:icons.IconRadar,IconRadioOff:icons.IconRadioOff,IconRadio:icons.IconRadio,IconRadioactiveOff:icons.IconRadioactiveOff,IconRadioactive:icons.IconRadioactive,IconRadiusBottomLeft:icons.IconRadiusBottomLeft,IconRadiusBottomRight:icons.IconRadiusBottomRight,IconRadiusTopLeft:icons.IconRadiusTopLeft,IconRadiusTopRight:icons.IconRadiusTopRight,IconRainbowOff:icons.IconRainbowOff,IconRainbow:icons.IconRainbow,IconRating12Plus:icons.IconRating12Plus,IconRating14Plus:icons.IconRating14Plus,IconRating16Plus:icons.IconRating16Plus,IconRating18Plus:icons.IconRating18Plus,IconRating21Plus:icons.IconRating21Plus,IconReceipt2:icons.IconReceipt2,IconReceiptOff:icons.IconReceiptOff,IconReceiptRefund:icons.IconReceiptRefund,IconReceiptTax:icons.IconReceiptTax,IconReceipt:icons.IconReceipt,IconRecharging:icons.IconRecharging,IconRecordMailOff:icons.IconRecordMailOff,IconRecordMail:icons.IconRecordMail,IconRectangleVertical:icons.IconRectangleVertical,IconRectangle:icons.IconRectangle,IconRecycleOff:icons.IconRecycleOff,IconRecycle:icons.IconRecycle,IconRefreshAlert:icons.IconRefreshAlert,IconRefreshDot:icons.IconRefreshDot,IconRefreshOff:icons.IconRefreshOff,IconRefresh:icons.IconRefresh,IconRegexOff:icons.IconRegexOff,IconRegex:icons.IconRegex,IconRegistered:icons.IconRegistered,IconRelationManyToMany:icons.IconRelationManyToMany,IconRelationOneToMany:icons.IconRelationOneToMany,IconRelationOneToOne:icons.IconRelationOneToOne,IconReload:icons.IconReload,IconRepeatOff:icons.IconRepeatOff,IconRepeatOnce:icons.IconRepeatOnce,IconRepeat:icons.IconRepeat,IconReplaceOff:icons.IconReplaceOff,IconReplace:icons.IconReplace,IconReportAnalytics:icons.IconReportAnalytics,IconReportMedical:icons.IconReportMedical,IconReportMoney:icons.IconReportMoney,IconReportOff:icons.IconReportOff,IconReportSearch:icons.IconReportSearch,IconReport:icons.IconReport,IconResize:icons.IconResize,IconRippleOff:icons.IconRippleOff,IconRipple:icons.IconRipple,IconRoadOff:icons.IconRoadOff,IconRoadSign:icons.IconRoadSign,IconRoad:icons.IconRoad,IconRobotOff:icons.IconRobotOff,IconRobot:icons.IconRobot,IconRocketOff:icons.IconRocketOff,IconRocket:icons.IconRocket,IconRollerSkating:icons.IconRollerSkating,IconRollercoasterOff:icons.IconRollercoasterOff,IconRollercoaster:icons.IconRollercoaster,IconRotate2:icons.IconRotate2,IconRotate360:icons.IconRotate360,IconRotateClockwise2:icons.IconRotateClockwise2,IconRotateClockwise:icons.IconRotateClockwise,IconRotateDot:icons.IconRotateDot,IconRotateRectangle:icons.IconRotateRectangle,IconRotate:icons.IconRotate,IconRouteOff:icons.IconRouteOff,IconRoute:icons.IconRoute,IconRouterOff:icons.IconRouterOff,IconRouter:icons.IconRouter,IconRowInsertBottom:icons.IconRowInsertBottom,IconRowInsertTop:icons.IconRowInsertTop,IconRss:icons.IconRss,IconRuler2Off:icons.IconRuler2Off,IconRuler2:icons.IconRuler2,IconRuler3:icons.IconRuler3,IconRulerMeasure:icons.IconRulerMeasure,IconRulerOff:icons.IconRulerOff,IconRuler:icons.IconRuler,IconRun:icons.IconRun,IconSailboatOff:icons.IconSailboatOff,IconSailboat:icons.IconSailboat,IconSalt:icons.IconSalt,IconSatelliteOff:icons.IconSatelliteOff,IconSatellite:icons.IconSatellite,IconSausage:icons.IconSausage,IconScaleOff:icons.IconScaleOff,IconScaleOutlineOff:icons.IconScaleOutlineOff,IconScaleOutline:icons.IconScaleOutline,IconScale:icons.IconScale,IconScanEye:icons.IconScanEye,IconScan:icons.IconScan,IconSchemaOff:icons.IconSchemaOff,IconSchema:icons.IconSchema,IconSchoolOff:icons.IconSchoolOff,IconSchool:icons.IconSchool,IconScissorsOff:icons.IconScissorsOff,IconScissors:icons.IconScissors,IconScooterElectric:icons.IconScooterElectric,IconScooter:icons.IconScooter,IconScreenShareOff:icons.IconScreenShareOff,IconScreenShare:icons.IconScreenShare,IconScreenshot:icons.IconScreenshot,IconScribbleOff:icons.IconScribbleOff,IconScribble:icons.IconScribble,IconScriptMinus:icons.IconScriptMinus,IconScriptPlus:icons.IconScriptPlus,IconScriptX:icons.IconScriptX,IconScript:icons.IconScript,IconScubaMaskOff:icons.IconScubaMaskOff,IconScubaMask:icons.IconScubaMask,IconSdk:icons.IconSdk,IconSearchOff:icons.IconSearchOff,IconSearch:icons.IconSearch,IconSectionSign:icons.IconSectionSign,IconSection:icons.IconSection,IconSeedingOff:icons.IconSeedingOff,IconSeeding:icons.IconSeeding,IconSelect:icons.IconSelect,IconSelector:icons.IconSelector,IconSendOff:icons.IconSendOff,IconSend:icons.IconSend,IconSeo:icons.IconSeo,IconSeparatorHorizontal:icons.IconSeparatorHorizontal,IconSeparatorVertical:icons.IconSeparatorVertical,IconSeparator:icons.IconSeparator,IconServer2:icons.IconServer2,IconServerBolt:icons.IconServerBolt,IconServerCog:icons.IconServerCog,IconServerOff:icons.IconServerOff,IconServer:icons.IconServer,IconServicemark:icons.IconServicemark,IconSettingsAutomation:icons.IconSettingsAutomation,IconSettingsOff:icons.IconSettingsOff,IconSettings:icons.IconSettings,IconShadowOff:icons.IconShadowOff,IconShadow:icons.IconShadow,IconShape2:icons.IconShape2,IconShape3:icons.IconShape3,IconShapeOff:icons.IconShapeOff,IconShape:icons.IconShape,IconShareOff:icons.IconShareOff,IconShare:icons.IconShare,IconShieldCheck:icons.IconShieldCheck,IconShieldCheckered:icons.IconShieldCheckered,IconShieldChevron:icons.IconShieldChevron,IconShieldHalfFilled:icons.IconShieldHalfFilled,IconShieldHalf:icons.IconShieldHalf,IconShieldLock:icons.IconShieldLock,IconShieldOff:icons.IconShieldOff,IconShieldX:icons.IconShieldX,IconShield:icons.IconShield,IconShipOff:icons.IconShipOff,IconShip:icons.IconShip,IconShirtOff:icons.IconShirtOff,IconShirtSport:icons.IconShirtSport,IconShirt:icons.IconShirt,IconShoeOff:icons.IconShoeOff,IconShoe:icons.IconShoe,IconShoppingCartDiscount:icons.IconShoppingCartDiscount,IconShoppingCartOff:icons.IconShoppingCartOff,IconShoppingCartPlus:icons.IconShoppingCartPlus,IconShoppingCartX:icons.IconShoppingCartX,IconShoppingCart:icons.IconShoppingCart,IconShovel:icons.IconShovel,IconShredder:icons.IconShredder,IconSignLeft:icons.IconSignLeft,IconSignRight:icons.IconSignRight,IconSignal3g:icons.IconSignal3g,IconSignal4gPlus:icons.IconSignal4gPlus,IconSignal4g:icons.IconSignal4g,IconSignal5g:icons.IconSignal5g,IconSignatureOff:icons.IconSignatureOff,IconSignature:icons.IconSignature,IconSitemapOff:icons.IconSitemapOff,IconSitemap:icons.IconSitemap,IconSkateboardOff:icons.IconSkateboardOff,IconSkateboard:icons.IconSkateboard,IconSkull:icons.IconSkull,IconSleigh:icons.IconSleigh,IconSlice:icons.IconSlice,IconSlideshow:icons.IconSlideshow,IconSmartHomeOff:icons.IconSmartHomeOff,IconSmartHome:icons.IconSmartHome,IconSmokingNo:icons.IconSmokingNo,IconSmoking:icons.IconSmoking,IconSnowflakeOff:icons.IconSnowflakeOff,IconSnowflake:icons.IconSnowflake,IconSnowman:icons.IconSnowman,IconSoccerField:icons.IconSoccerField,IconSocialOff:icons.IconSocialOff,IconSocial:icons.IconSocial,IconSock:icons.IconSock,IconSofaOff:icons.IconSofaOff,IconSofa:icons.IconSofa,IconSortAscending2:icons.IconSortAscending2,IconSortAscendingLetters:icons.IconSortAscendingLetters,IconSortAscendingNumbers:icons.IconSortAscendingNumbers,IconSortAscending:icons.IconSortAscending,IconSortDescending2:icons.IconSortDescending2,IconSortDescendingLetters:icons.IconSortDescendingLetters,IconSortDescendingNumbers:icons.IconSortDescendingNumbers,IconSortDescending:icons.IconSortDescending,IconSos:icons.IconSos,IconSoupOff:icons.IconSoupOff,IconSoup:icons.IconSoup,IconSourceCode:icons.IconSourceCode,IconSpaceOff:icons.IconSpaceOff,IconSpace:icons.IconSpace,IconSpacingHorizontal:icons.IconSpacingHorizontal,IconSpacingVertical:icons.IconSpacingVertical,IconSpade:icons.IconSpade,IconSpeakerphone:icons.IconSpeakerphone,IconSpeedboat:icons.IconSpeedboat,IconSpider:icons.IconSpider,IconSpiralOff:icons.IconSpiralOff,IconSpiral:icons.IconSpiral,IconSportBillard:icons.IconSportBillard,IconSpyOff:icons.IconSpyOff,IconSpy:icons.IconSpy,IconSquare0:icons.IconSquare0,IconSquare1:icons.IconSquare1,IconSquare2:icons.IconSquare2,IconSquare3:icons.IconSquare3,IconSquare4:icons.IconSquare4,IconSquare5:icons.IconSquare5,IconSquare6:icons.IconSquare6,IconSquare7:icons.IconSquare7,IconSquare8:icons.IconSquare8,IconSquare9:icons.IconSquare9,IconSquareA:icons.IconSquareA,IconSquareAsterisk:icons.IconSquareAsterisk,IconSquareB:icons.IconSquareB,IconSquareC:icons.IconSquareC,IconSquareCheck:icons.IconSquareCheck,IconSquareD:icons.IconSquareD,IconSquareDot:icons.IconSquareDot,IconSquareE:icons.IconSquareE,IconSquareF:icons.IconSquareF,IconSquareForbid2:icons.IconSquareForbid2,IconSquareForbid:icons.IconSquareForbid,IconSquareG:icons.IconSquareG,IconSquareH:icons.IconSquareH,IconSquareHalf:icons.IconSquareHalf,IconSquareI:icons.IconSquareI,IconSquareJ:icons.IconSquareJ,IconSquareK:icons.IconSquareK,IconSquareL:icons.IconSquareL,IconSquareM:icons.IconSquareM,IconSquareMinus:icons.IconSquareMinus,IconSquareN:icons.IconSquareN,IconSquareO:icons.IconSquareO,IconSquareOff:icons.IconSquareOff,IconSquareP:icons.IconSquareP,IconSquarePlus:icons.IconSquarePlus,IconSquareQ:icons.IconSquareQ,IconSquareR:icons.IconSquareR,IconSquareRoot2:icons.IconSquareRoot2,IconSquareRoot:icons.IconSquareRoot,IconSquareRotatedForbid2:icons.IconSquareRotatedForbid2,IconSquareRotatedForbid:icons.IconSquareRotatedForbid,IconSquareRotatedOff:icons.IconSquareRotatedOff,IconSquareRotated:icons.IconSquareRotated,IconSquareS:icons.IconSquareS,IconSquareT:icons.IconSquareT,IconSquareToggleHorizontal:icons.IconSquareToggleHorizontal,IconSquareToggle:icons.IconSquareToggle,IconSquareU:icons.IconSquareU,IconSquareW:icons.IconSquareW,IconSquareX:icons.IconSquareX,IconSquareY:icons.IconSquareY,IconSquareZ:icons.IconSquareZ,IconSquare:icons.IconSquare,IconSquaresDiagonal:icons.IconSquaresDiagonal,IconSquaresFilled:icons.IconSquaresFilled,IconStack2:icons.IconStack2,IconStack3:icons.IconStack3,IconStackPop:icons.IconStackPop,IconStackPush:icons.IconStackPush,IconStack:icons.IconStack,IconStairsDown:icons.IconStairsDown,IconStairsUp:icons.IconStairsUp,IconStairs:icons.IconStairs,IconStarHalf:icons.IconStarHalf,IconStarOff:icons.IconStarOff,IconStar:icons.IconStar,IconStarsOff:icons.IconStarsOff,IconStars:icons.IconStars,IconStatusChange:icons.IconStatusChange,IconSteam:icons.IconSteam,IconSteeringWheelOff:icons.IconSteeringWheelOff,IconSteeringWheel:icons.IconSteeringWheel,IconStepInto:icons.IconStepInto,IconStepOut:icons.IconStepOut,IconStethoscopeOff:icons.IconStethoscopeOff,IconStethoscope:icons.IconStethoscope,IconSticker:icons.IconSticker,IconStormOff:icons.IconStormOff,IconStorm:icons.IconStorm,IconStretching:icons.IconStretching,IconStrikethrough:icons.IconStrikethrough,IconSubmarine:icons.IconSubmarine,IconSubscript:icons.IconSubscript,IconSubtask:icons.IconSubtask,IconSumOff:icons.IconSumOff,IconSum:icons.IconSum,IconSunHigh:icons.IconSunHigh,IconSunLow:icons.IconSunLow,IconSunMoon:icons.IconSunMoon,IconSunOff:icons.IconSunOff,IconSunWind:icons.IconSunWind,IconSun:icons.IconSun,IconSunglasses:icons.IconSunglasses,IconSunrise:icons.IconSunrise,IconSunset2:icons.IconSunset2,IconSunset:icons.IconSunset,IconSuperscript:icons.IconSuperscript,IconSvg:icons.IconSvg,IconSwimming:icons.IconSwimming,IconSwitch2:icons.IconSwitch2,IconSwitch3:icons.IconSwitch3,IconSwitchHorizontal:icons.IconSwitchHorizontal,IconSwitchVertical:icons.IconSwitchVertical,IconSwitch:icons.IconSwitch,IconSwordOff:icons.IconSwordOff,IconSword:icons.IconSword,IconSwords:icons.IconSwords,IconTableAlias:icons.IconTableAlias,IconTableExport:icons.IconTableExport,IconTableImport:icons.IconTableImport,IconTableOff:icons.IconTableOff,IconTableOptions:icons.IconTableOptions,IconTableShortcut:icons.IconTableShortcut,IconTable:icons.IconTable,IconTagOff:icons.IconTagOff,IconTag:icons.IconTag,IconTagsOff:icons.IconTagsOff,IconTags:icons.IconTags,IconTallymark1:icons.IconTallymark1,IconTallymark2:icons.IconTallymark2,IconTallymark3:icons.IconTallymark3,IconTallymark4:icons.IconTallymark4,IconTallymarks:icons.IconTallymarks,IconTank:icons.IconTank,IconTargetOff:icons.IconTargetOff,IconTarget:icons.IconTarget,IconTelescopeOff:icons.IconTelescopeOff,IconTelescope:icons.IconTelescope,IconTemperatureCelsius:icons.IconTemperatureCelsius,IconTemperatureFahrenheit:icons.IconTemperatureFahrenheit,IconTemperatureMinus:icons.IconTemperatureMinus,IconTemperatureOff:icons.IconTemperatureOff,IconTemperaturePlus:icons.IconTemperaturePlus,IconTemperature:icons.IconTemperature,IconTemplateOff:icons.IconTemplateOff,IconTemplate:icons.IconTemplate,IconTentOff:icons.IconTentOff,IconTent:icons.IconTent,IconTerminal2:icons.IconTerminal2,IconTerminal:icons.IconTerminal,IconTestPipe2:icons.IconTestPipe2,IconTestPipeOff:icons.IconTestPipeOff,IconTestPipe:icons.IconTestPipe,IconTextCaption:icons.IconTextCaption,IconTextColor:icons.IconTextColor,IconTextDecrease:icons.IconTextDecrease,IconTextDirectionLtr:icons.IconTextDirectionLtr,IconTextDirectionRtl:icons.IconTextDirectionRtl,IconTextIncrease:icons.IconTextIncrease,IconTextOrientation:icons.IconTextOrientation,IconTextPlus:icons.IconTextPlus,IconTextRecognition:icons.IconTextRecognition,IconTextResize:icons.IconTextResize,IconTextSize:icons.IconTextSize,IconTextSpellcheck:icons.IconTextSpellcheck,IconTextWrapDisabled:icons.IconTextWrapDisabled,IconTextWrap:icons.IconTextWrap,IconThermometer:icons.IconThermometer,IconThumbDownOff:icons.IconThumbDownOff,IconThumbDown:icons.IconThumbDown,IconThumbUpOff:icons.IconThumbUpOff,IconThumbUp:icons.IconThumbUp,IconTicketOff:icons.IconTicketOff,IconTicket:icons.IconTicket,IconTie:icons.IconTie,IconTilde:icons.IconTilde,IconTiltShiftOff:icons.IconTiltShiftOff,IconTiltShift:icons.IconTiltShift,IconTimeline:icons.IconTimeline,IconTir:icons.IconTir,IconToggleLeft:icons.IconToggleLeft,IconToggleRight:icons.IconToggleRight,IconToiletPaperOff:icons.IconToiletPaperOff,IconToiletPaper:icons.IconToiletPaper,IconTool:icons.IconTool,IconToolsKitchen2Off:icons.IconToolsKitchen2Off,IconToolsKitchen2:icons.IconToolsKitchen2,IconToolsKitchenOff:icons.IconToolsKitchenOff,IconToolsKitchen:icons.IconToolsKitchen,IconToolsOff:icons.IconToolsOff,IconTools:icons.IconTools,IconTooltip:icons.IconTooltip,IconTornado:icons.IconTornado,IconTournament:icons.IconTournament,IconTowerOff:icons.IconTowerOff,IconTower:icons.IconTower,IconTrack:icons.IconTrack,IconTractor:icons.IconTractor,IconTrademark:icons.IconTrademark,IconTrafficConeOff:icons.IconTrafficConeOff,IconTrafficCone:icons.IconTrafficCone,IconTrafficLightsOff:icons.IconTrafficLightsOff,IconTrafficLights:icons.IconTrafficLights,IconTrain:icons.IconTrain,IconTransferIn:icons.IconTransferIn,IconTransferOut:icons.IconTransferOut,IconTransform:icons.IconTransform,IconTransitionBottom:icons.IconTransitionBottom,IconTransitionLeft:icons.IconTransitionLeft,IconTransitionRight:icons.IconTransitionRight,IconTransitionTop:icons.IconTransitionTop,IconTrashOff:icons.IconTrashOff,IconTrashX:icons.IconTrashX,IconTrash:icons.IconTrash,IconTree:icons.IconTree,IconTrees:icons.IconTrees,IconTrendingDown2:icons.IconTrendingDown2,IconTrendingDown3:icons.IconTrendingDown3,IconTrendingDown:icons.IconTrendingDown,IconTrendingUp2:icons.IconTrendingUp2,IconTrendingUp3:icons.IconTrendingUp3,IconTrendingUp:icons.IconTrendingUp,IconTriangleInverted:icons.IconTriangleInverted,IconTriangleOff:icons.IconTriangleOff,IconTriangleSquareCircle:icons.IconTriangleSquareCircle,IconTriangle:icons.IconTriangle,IconTriangles:icons.IconTriangles,IconTrident:icons.IconTrident,IconTrophyOff:icons.IconTrophyOff,IconTrophy:icons.IconTrophy,IconTrowel:icons.IconTrowel,IconTruckDelivery:icons.IconTruckDelivery,IconTruckLoading:icons.IconTruckLoading,IconTruckOff:icons.IconTruckOff,IconTruckReturn:icons.IconTruckReturn,IconTruck:icons.IconTruck,IconTxt:icons.IconTxt,IconTypographyOff:icons.IconTypographyOff,IconTypography:icons.IconTypography,IconUfOff:icons.IconUfOff,IconUfo:icons.IconUfo,IconUmbrellaOff:icons.IconUmbrellaOff,IconUmbrella:icons.IconUmbrella,IconUnderline:icons.IconUnderline,IconUnlink:icons.IconUnlink,IconUpload:icons.IconUpload,IconUrgent:icons.IconUrgent,IconUsb:icons.IconUsb,IconUserCheck:icons.IconUserCheck,IconUserCircle:icons.IconUserCircle,IconUserExclamation:icons.IconUserExclamation,IconUserMinus:icons.IconUserMinus,IconUserOff:icons.IconUserOff,IconUserPlus:icons.IconUserPlus,IconUserSearch:icons.IconUserSearch,IconUserX:icons.IconUserX,IconUser:icons.IconUser,IconUsers:icons.IconUsers,IconUvIndex:icons.IconUvIndex,IconUxCircle:icons.IconUxCircle,IconVaccineBottleOff:icons.IconVaccineBottleOff,IconVaccineBottle:icons.IconVaccineBottle,IconVaccineOff:icons.IconVaccineOff,IconVaccine:icons.IconVaccine,IconVariableMinus:icons.IconVariableMinus,IconVariableOff:icons.IconVariableOff,IconVariablePlus:icons.IconVariablePlus,IconVariable:icons.IconVariable,IconVectorBezier2:icons.IconVectorBezier2,IconVectorBezier:icons.IconVectorBezier,IconVectorOff:icons.IconVectorOff,IconVectorTriangleOff:icons.IconVectorTriangleOff,IconVectorTriangle:icons.IconVectorTriangle,IconVector:icons.IconVector,IconVenus:icons.IconVenus,IconVersionsOff:icons.IconVersionsOff,IconVersions:icons.IconVersions,IconVideoMinus:icons.IconVideoMinus,IconVideoOff:icons.IconVideoOff,IconVideoPlus:icons.IconVideoPlus,IconVideo:icons.IconVideo,IconView360Off:icons.IconView360Off,IconView360:icons.IconView360,IconViewfinderOff:icons.IconViewfinderOff,IconViewfinder:icons.IconViewfinder,IconViewportNarrow:icons.IconViewportNarrow,IconViewportWide:icons.IconViewportWide,IconVinyl:icons.IconVinyl,IconVipOff:icons.IconVipOff,IconVip:icons.IconVip,IconVirusOff:icons.IconVirusOff,IconVirusSearch:icons.IconVirusSearch,IconVirus:icons.IconVirus,IconVocabularyOff:icons.IconVocabularyOff,IconVocabulary:icons.IconVocabulary,IconVolume2:icons.IconVolume2,IconVolume3:icons.IconVolume3,IconVolumeOff:icons.IconVolumeOff,IconVolume:icons.IconVolume,IconWalk:icons.IconWalk,IconWallOff:icons.IconWallOff,IconWall:icons.IconWall,IconWalletOff:icons.IconWalletOff,IconWallet:icons.IconWallet,IconWallpaperOff:icons.IconWallpaperOff,IconWallpaper:icons.IconWallpaper,IconWandOff:icons.IconWandOff,IconWand:icons.IconWand,IconWashDry1:icons.IconWashDry1,IconWashDry2:icons.IconWashDry2,IconWashDry3:icons.IconWashDry3,IconWashDryA:icons.IconWashDryA,IconWashDryDip:icons.IconWashDryDip,IconWashDryF:icons.IconWashDryF,IconWashDryHang:icons.IconWashDryHang,IconWashDryOff:icons.IconWashDryOff,IconWashDryP:icons.IconWashDryP,IconWashDryShade:icons.IconWashDryShade,IconWashDryW:icons.IconWashDryW,IconWashDry:icons.IconWashDry,IconWashDrycleanOff:icons.IconWashDrycleanOff,IconWashDryclean:icons.IconWashDryclean,IconWashGentle:icons.IconWashGentle,IconWashMachine:icons.IconWashMachine,IconWashOff:icons.IconWashOff,IconWashPress:icons.IconWashPress,IconWashTemperature1:icons.IconWashTemperature1,IconWashTemperature2:icons.IconWashTemperature2,IconWashTemperature3:icons.IconWashTemperature3,IconWashTemperature4:icons.IconWashTemperature4,IconWashTemperature5:icons.IconWashTemperature5,IconWashTemperature6:icons.IconWashTemperature6,IconWashTumbleDry:icons.IconWashTumbleDry,IconWashTumbleOff:icons.IconWashTumbleOff,IconWash:icons.IconWash,IconWaveSawTool:icons.IconWaveSawTool,IconWaveSine:icons.IconWaveSine,IconWaveSquare:icons.IconWaveSquare,IconWebhookOff:icons.IconWebhookOff,IconWebhook:icons.IconWebhook,IconWheelchairOff:icons.IconWheelchairOff,IconWheelchair:icons.IconWheelchair,IconWifi0:icons.IconWifi0,IconWifi1:icons.IconWifi1,IconWifi2:icons.IconWifi2,IconWifiOff:icons.IconWifiOff,IconWifi:icons.IconWifi,IconWindOff:icons.IconWindOff,IconWind:icons.IconWind,IconWindmillOff:icons.IconWindmillOff,IconWindmill:icons.IconWindmill,IconWindowMaximize:icons.IconWindowMaximize,IconWindowMinimize:icons.IconWindowMinimize,IconWindowOff:icons.IconWindowOff,IconWindow:icons.IconWindow,IconWindsock:icons.IconWindsock,IconWiperWash:icons.IconWiperWash,IconWiper:icons.IconWiper,IconWoman:icons.IconWoman,IconWood:icons.IconWood,IconWorldDownload:icons.IconWorldDownload,IconWorldLatitude:icons.IconWorldLatitude,IconWorldLongitude:icons.IconWorldLongitude,IconWorldOff:icons.IconWorldOff,IconWorldUpload:icons.IconWorldUpload,IconWorldWww:icons.IconWorldWww,IconWorld:icons.IconWorld,IconWreckingBall:icons.IconWreckingBall,IconWritingOff:icons.IconWritingOff,IconWritingSignOff:icons.IconWritingSignOff,IconWritingSign:icons.IconWritingSign,IconWriting:icons.IconWriting,IconX:icons.IconX,IconXboxA:icons.IconXboxA,IconXboxB:icons.IconXboxB,IconXboxX:icons.IconXboxX,IconXboxY:icons.IconXboxY,IconYinYang:icons.IconYinYang,IconYoga:icons.IconYoga,IconZeppelinOff:icons.IconZeppelinOff,IconZeppelin:icons.IconZeppelin,IconZip:icons.IconZip,IconZodiacAquarius:icons.IconZodiacAquarius,IconZodiacAries:icons.IconZodiacAries,IconZodiacCancer:icons.IconZodiacCancer,IconZodiacCapricorn:icons.IconZodiacCapricorn,IconZodiacGemini:icons.IconZodiacGemini,IconZodiacLeo:icons.IconZodiacLeo,IconZodiacLibra:icons.IconZodiacLibra,IconZodiacPisces:icons.IconZodiacPisces,IconZodiacSagittarius:icons.IconZodiacSagittarius,IconZodiacScorpio:icons.IconZodiacScorpio,IconZodiacTaurus:icons.IconZodiacTaurus,IconZodiacVirgo:icons.IconZodiacVirgo,IconZoomCancel:icons.IconZoomCancel,IconZoomCheck:icons.IconZoomCheck,IconZoomCode:icons.IconZoomCode,IconZoomExclamation:icons.IconZoomExclamation,IconZoomInArea:icons.IconZoomInArea,IconZoomIn:icons.IconZoomIn,IconZoomMoney:icons.IconZoomMoney,IconZoomOutArea:icons.IconZoomOutArea,IconZoomOut:icons.IconZoomOut,IconZoomPan:icons.IconZoomPan,IconZoomQuestion:icons.IconZoomQuestion,IconZoomReplace:icons.IconZoomReplace,IconZoomReset:icons.IconZoomReset,IconZzzOff:icons.IconZzzOff,IconZzz:icons.IconZzz},iconMapping={"terp-purchase":AntIcons.ShoppingCartOutlined,"terp-graph":AntIcons.PieChartOutlined,"terp-crm":AntIcons.ContactsOutlined,"terp-hr":TablerIcons.IconFriends,"terp-account":TablerIcons.IconBuildingBank,"terp-project":TablerIcons.IconChecklist,"terp-administration":TablerIcons.IconAdjustments,"terp-partner":AntIcons.TeamOutlined,"terp-mrp":AntIcons.BuildOutlined,"terp-product":AntIcons.ShoppingOutlined,STOCK_JUSTIFY_FILL:AntIcons.UnorderedListOutlined,STOCK_INDENT:TablerIcons.IconIndentIncrease,STOCK_HELP:AntIcons.QuestionOutlined,STOCK_GO_UP:AntIcons.ArrowUpOutlined,STOCK_SORT_DESCENDING:AntIcons.SortDescendingOutlined,STOCK_ADD:AntIcons.PlusOutlined,STOCK_GOTO_LAST:AntIcons.FastForwardOutlined,STOCK_FIND:AntIcons.SearchOutlined,STOCK_PROPERTIES:AntIcons.ControlOutlined,STOCK_DIALOG_INFO:AntIcons.InfoOutlined,STOCK_FLOPPY:AntIcons.UsbOutlined,STOCK_JUSTIFY_CENTER:AntIcons.AlignCenterOutlined,STOCK_GO_BACK:AntIcons.ArrowLeftOutlined,STOCK_UNDERLINE:AntIcons.UnderlineOutlined,STOCK_BOLD:AntIcons.BoldOutlined,STOCK_APPLY:AntIcons.CheckOutlined,STOCK_ZOOM_OUT:AntIcons.ZoomOutOutlined,STOCK_STRIKETHROUGH:AntIcons.StrikethroughOutlined,STOCK_MEDIA_REWIND:AntIcons.BackwardOutlined,STOCK_PRINT:AntIcons.PrinterOutlined,STOCK_NO:AntIcons.CloseOutlined,STOCK_GOTO_FIRST:AntIcons.FastBackwardOutlined,STOCK_CLOSE:AntIcons.CloseOutlined,STOCK_REMOVE:AntIcons.MinusOutlined,STOCK_CUT:AntIcons.ScissorOutlined,STOCK_DIALOG_AUTHENTICATION:AntIcons.SafetyOutlined,STOCK_ZOOM_FIT:AntIcons.ExpandOutlined,STOCK_JUMP_TO:AntIcons.SelectOutlined,STOCK_HARDDISK:AntIcons.HddOutlined,STOCK_SAVE_AS:AntIcons.SaveOutlined,STOCK_UNDO:AntIcons.UndoOutlined,STOCK_JUSTIFY_RIGHT:AntIcons.AlignRightOutlined,STOCK_DIALOG_ERROR:AntIcons.CloseCircleOutlined,STOCK_INDEX:AntIcons.ProfileOutlined,STOCK_GOTO_BOTTOM:AntIcons.VerticalAlignBottomOutlined,STOCK_MEDIA_NEXT:AntIcons.StepForwardOutlined,STOCK_REDO:AntIcons.RedoOutlined,STOCK_COPY:AntIcons.CopyOutlined,STOCK_MEDIA_PAUSE:AntIcons.PauseOutlined,STOCK_GO_FORWARD:AntIcons.ArrowRightOutlined,STOCK_UNDELETE:AntIcons.UndoOutlined,STOCK_EXECUTE:AntIcons.SettingOutlined,STOCK_SAVE:AntIcons.SaveOutlined,STOCK_DIALOG_QUESTION:AntIcons.QuestionCircleOutlined,STOCK_SORT_ASCENDING:AntIcons.SortAscendingOutlined,STOCK_REFRESH:AntIcons.ReloadOutlined,STOCK_MEDIA_FORWARD:AntIcons.ForwardOutlined,STOCK_STOP:AntIcons.BorderOutlined,STOCK_PRINT_PREVIEW:AntIcons.PrinterOutlined,STOCK_HOME:AntIcons.HomeOutlined,STOCK_PASTE:AntIcons.CarryOutOutlined,STOCK_ZOOM_100:AntIcons.ZoomInOutlined,STOCK_FIND_AND_REPLACE:AntIcons.FileSearchOutlined,STOCK_DIALOG_WARNING:AntIcons.WarningOutlined,STOCK_ZOOM_IN:AntIcons.ZoomInOutlined,STOCK_CONVERT:AntIcons.ExportOutlined,STOCK_ITALIC:AntIcons.ItalicOutlined,STOCK_YES:AntIcons.CheckOutlined,STOCK_MEDIA_PLAY:AntIcons.PlayCircleOutlined,STOCK_MEDIA_RECORD:AntIcons.VideoCameraOutlined,STOCK_MEDIA_PREVIOUS:AntIcons.StepBackwardOutlined,STOCK_NEW:AntIcons.FileAddOutlined,STOCK_CANCEL:AntIcons.CloseOutlined,STOCK_DISCONNECT:AntIcons.ApiOutlined,STOCK_JUSTIFY_LEFT:AntIcons.AlignLeftOutlined,STOCK_FILE:AntIcons.FileOutlined,STOCK_QUIT:AntIcons.LogoutOutlined,STOCK_EDIT:AntIcons.EditOutlined,STOCK_CONNECT:AntIcons.ApiOutlined,STOCK_GO_DOWN:AntIcons.CaretDownOutlined,STOCK_NETWORK:AntIcons.ApartmentOutlined,STOCK_OK:AntIcons.CheckOutlined,STOCK_GOTO_TOP:AntIcons.VerticalAlignTopOutlined,STOCK_ABOUT:AntIcons.StarOutlined,STOCK_COLOR_PICKER:AntIcons.AimOutlined,STOCK_SELECT_FONT:AntIcons.FontSizeOutlined,STOCK_DELETE:AntIcons.DeleteOutlined,STOCK_DND:AntIcons.FileTextOutlined,STOCK_CLEAR:AntIcons.CloseSquareOutlined,STOCK_UNINDENT:AntIcons.AlignLeftOutlined,STOCK_PREFERENCES:AntIcons.SettingOutlined},iconMapper=e=>{if(e.indexOf("gtk-")!==-1){const c=`STOCK_${e.replace("gtk-","").replace("-","_").toUpperCase()}`;return iconMapping[c]}if(iconMapping.hasOwnProperty(e))return iconMapping[e];const o=`${e.split("-").map(s=>s.replace(/\w\S*/g,c=>c.charAt(0).toUpperCase()+c.slice(1).toLowerCase())).join("")}`,r=`${o}Outlined`;if(AntIcons.hasOwnProperty(r))return AntIcons[r];const a=`Icon${o}`;if(TablerIcons.hasOwnProperty(a))return()=>React__default.default.createElement(Icon__default.default,{component:TablerIcons[a]})},Button=e=>{const{ooui:o}=e,{id:r,label:a,activated:s,buttonType:c,confirmMessage:l,icon:d,context:u,readOnly:f}=o,p=React.useContext(FormContext$1),{executeButtonAction:m}=p||{},[I,h]=React.useState(!1),{lang:v}=React.useContext(LocaleContext);async function C(){h(!0),await m({type:c,action:r,context:u}),h(!1)}function b(){if(l){showDialog$9({confirmMessage:l,lang:v,onOk:()=>{C()}});return}C()}function y(){if(I)return jsxRuntime.jsx(Icon.LoadingOutlined,{});if(d){const g=iconMapper(d);return g&&jsxRuntime.jsx(g,{})}}return jsxRuntime.jsx(Field$1,{ooui:o,children:jsxRuntime.jsx(antd.Button,{block:!0,disabled:!s||f,onClick:b,icon:y(),type:o.primary?"primary":"default",danger:o.danger,style:{whiteSpace:"normal",height:"auto"},children:a})})},ButtonGroup=e=>{const{ooui:o}=e,{defaultButton:r,secondaryButtons:a}=o,{id:s,caption:c,activated:l,buttonType:d,confirmMessage:u,icon:f,primary:p,danger:m,context:I,readOnly:h}=r||{},v=React.useContext(FormContext$1),{executeButtonAction:C}=v||{},[b,y]=React.useState(!1),{lang:g}=React.useContext(LocaleContext);function O(){if(b)return jsxRuntime.jsx(Icon.LoadingOutlined,{});if(f){const F=iconMapper(f);return F&&jsxRuntime.jsx(F,{})}}async function w(){d&&s&&(y(!0),await C({type:d,action:s,context:I}),y(!1))}function _(){if(u){showDialog$9({confirmMessage:u,lang:g,onOk:()=>{w()}});return}w()}return jsxRuntime.jsx(Field$1,{ooui:new ooui.Field({ooui:o}),children:jsxRuntime.jsxs(antd.Dropdown.Button,{disabled:!l||h,onClick:_,icon:jsxRuntime.jsx(Icon.DownOutlined,{}),type:p?"primary":void 0,overlay:jsxRuntime.jsx(Items,{ooui:a}),children:[O(),c]})})},Items=e=>{const{ooui:o}=e,r=o.map(a=>{const{id:s,caption:c,activated:l,buttonType:d,confirmMessage:u,icon:f,context:p,readOnly:m,danger:I}=a,h=React.useContext(FormContext$1),{executeButtonAction:v}=h||{},[C,b]=React.useState(!1),{lang:y}=React.useContext(LocaleContext);async function g(){b(!0),await v({type:d,action:s,context:p}),b(!1)}function O(){if(u){showDialog$9({confirmMessage:u,lang:y,onOk:()=>{g()}});return}g()}function w(){if(C)return jsxRuntime.jsx(Icon.LoadingOutlined,{});if(f){const _=iconMapper(f);return _&&jsxRuntime.jsx(_,{})}}return jsxRuntime.jsx(antd.Menu.Item,{disabled:!l||m,onClick:O,icon:w(),danger:I,children:c})});return jsxRuntime.jsx(antd.Menu,{children:r})},Config={requiredClass:"bg-blue-100",requiredColor:"#DBEAFE"},MODAL_WIDTH_CONSTANT=.7;function getWindowDimensions(){const{innerWidth:e,innerHeight:o}=window;return{width:e,height:o}}function useWindowDimensions(){const[e,o]=React.useState(getWindowDimensions());return React.useEffect(()=>{function r(){o(getWindowDimensions())}return window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)},[]),{modalWidth:e.width*MODAL_WIDTH_CONSTANT,modalHeight:e.height,width:e.width,height:e.height}}class ConnectionProvider{static init(o){ConnectionProvider.handler=o}static getHandler(){if(!ConnectionProvider.handler)throw"Must call init() first with a valid ConnectionProvider instance";return ConnectionProvider.handler}}var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function getAugmentedNamespace(e){var o=e.default;if(typeof o=="function"){var r=function(){return o.apply(this,arguments)};r.prototype=o.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(a){var s=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(r,a,s.get?s:{enumerable:!0,get:function(){return e[a]}})}),r}var TextArea$2={},interopRequireWildcard={exports:{}},_typeof$2={exports:{}};(function(e){function o(r){return e.exports=o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},e.exports.__esModule=!0,e.exports.default=e.exports,o(r)}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports})(_typeof$2),function(e){var o=_typeof$2.exports.default;function r(s){if(typeof WeakMap!="function")return null;var c=new WeakMap,l=new WeakMap;return(r=function(u){return u?l:c})(s)}function a(s,c){if(!c&&s&&s.__esModule)return s;if(s===null||o(s)!=="object"&&typeof s!="function")return{default:s};var l=r(c);if(l&&l.has(s))return l.get(s);var d={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in s)if(f!=="default"&&Object.prototype.hasOwnProperty.call(s,f)){var p=u?Object.getOwnPropertyDescriptor(s,f):null;p&&(p.get||p.set)?Object.defineProperty(d,f,p):d[f]=s[f]}return d.default=s,l&&l.set(s,d),d}e.exports=a,e.exports.__esModule=!0,e.exports.default=e.exports}(interopRequireWildcard);var interopRequireDefault={exports:{}};(function(e){function o(r){return r&&r.__esModule?r:{default:r}}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports})(interopRequireDefault);var toConsumableArray={exports:{}},arrayWithoutHoles={exports:{}},arrayLikeToArray={exports:{}},hasRequiredArrayLikeToArray;function requireArrayLikeToArray(){return hasRequiredArrayLikeToArray||(hasRequiredArrayLikeToArray=1,function(e){function o(r,a){(a==null||a>r.length)&&(a=r.length);for(var s=0,c=new Array(a);s<a;s++)c[s]=r[s];return c}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports}(arrayLikeToArray)),arrayLikeToArray.exports}var hasRequiredArrayWithoutHoles;function requireArrayWithoutHoles(){return hasRequiredArrayWithoutHoles||(hasRequiredArrayWithoutHoles=1,function(e){var o=requireArrayLikeToArray();function r(a){if(Array.isArray(a))return o(a)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(arrayWithoutHoles)),arrayWithoutHoles.exports}var iterableToArray={exports:{}},hasRequiredIterableToArray;function requireIterableToArray(){return hasRequiredIterableToArray||(hasRequiredIterableToArray=1,function(e){function o(r){if(typeof Symbol<"u"&&r[Symbol.iterator]!=null||r["@@iterator"]!=null)return Array.from(r)}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports}(iterableToArray)),iterableToArray.exports}var unsupportedIterableToArray={exports:{}},hasRequiredUnsupportedIterableToArray;function requireUnsupportedIterableToArray(){return hasRequiredUnsupportedIterableToArray||(hasRequiredUnsupportedIterableToArray=1,function(e){var o=requireArrayLikeToArray();function r(a,s){if(!!a){if(typeof a=="string")return o(a,s);var c=Object.prototype.toString.call(a).slice(8,-1);if(c==="Object"&&a.constructor&&(c=a.constructor.name),c==="Map"||c==="Set")return Array.from(a);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return o(a,s)}}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(unsupportedIterableToArray)),unsupportedIterableToArray.exports}var nonIterableSpread={exports:{}},hasRequiredNonIterableSpread;function requireNonIterableSpread(){return hasRequiredNonIterableSpread||(hasRequiredNonIterableSpread=1,function(e){function o(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
1
|
+
(function(e,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("react"),require("antd"),require("@gisce/ooui"),require("@ant-design/icons"),require("react/jsx-runtime"),require("@tabler/icons"),require("react-dom"),require("styled-components"),require("react-measure"),require("@ant-design/plots"),require("use-deep-compare-effect"),require("buffer"),require("@gisce/react-formiga-table"),require("fiber-diagram"),require("react-hotkeys-hook"),require("@monaco-editor/react"),require("react-grid-layout")):typeof define=="function"&&define.amd?define(["exports","react","antd","@gisce/ooui","@ant-design/icons","react/jsx-runtime","@tabler/icons","react-dom","styled-components","react-measure","@ant-design/plots","use-deep-compare-effect","buffer","@gisce/react-formiga-table","fiber-diagram","react-hotkeys-hook","@monaco-editor/react","react-grid-layout"],o):(e=typeof globalThis<"u"?globalThis:e||self,o(e["react-ooui"]={},e.React,e.antd,e.ooui,e.Icon,e.jsxRuntime,e.icons,e.ReactDOM,e.styled,e.Measure,e.plots,e.useDeepCompareEffect,e.require$$0,e.reactFormigaTable,e.fiberDiagram,e.reactHotkeysHook,e.Editor,e.reactGridLayout))})(this,function(exports,React,antd,ooui,Icon,jsxRuntime,icons,ReactDOM,k,Measure,plots,useDeepCompareEffect,require$$0,reactFormigaTable,fiberDiagram,reactHotkeysHook,Editor,reactGridLayout){"use strict";const _interopDefaultLegacy=e=>e&&typeof e=="object"&&"default"in e?e:{default:e};function _interopNamespace(e){if(e&&e.__esModule)return e;const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(o,r,a.get?a:{enumerable:!0,get:()=>e[r]})}}return o.default=e,Object.freeze(o)}const React__default=_interopDefaultLegacy(React),React__namespace=_interopNamespace(React),Icon__default=_interopDefaultLegacy(Icon),ReactDOM__default=_interopDefaultLegacy(ReactDOM),k__default=_interopDefaultLegacy(k),Measure__default=_interopDefaultLegacy(Measure),useDeepCompareEffect__default=_interopDefaultLegacy(useDeepCompareEffect),require$$0__default=_interopDefaultLegacy(require$$0),Editor__default=_interopDefaultLegacy(Editor),{Text:Text$3,Title:Title$4}=antd.Typography,alignClass={left:"justify-start",center:"justify-center",right:"justify-end"},Label=e=>{const{ooui:o,align:r,responsiveBehaviour:a}=e,{label:s,tooltip:c,fieldForLabel:l,labelSize:d,labelType:u}=o,p=l!==null&&s.length>1?s+" :":s,I=r||(l?a?"left":"right":"left"),h=d==="text"?Text$3:Title$4;return jsxRuntime.jsxs("div",{className:`flex flex-row items-center pb-1 pt-1 ${alignClass[I]}`,children:[c&&jsxRuntime.jsx(antd.Tooltip,{title:c,children:jsxRuntime.jsx(Icon.QuestionCircleOutlined,{className:"pr-1 text-xs text-blue-400"})}),jsxRuntime.jsx("span",{className:"pr-2",children:jsxRuntime.jsx(h,{level:d!=="text"?d:null,type:u,children:p})})]})},ca_ES={true:"S\xED",false:"No",simple_search:"B\xFAsqueda simple",advanced_search:"B\xFAsqueda avan\xE7ada",search:"Buscar",parameters:"Par\xE0metres",limit:"Limit",first:"Primer",no_results:"No hi ha resultats",summary:"Mostrant resultats des de {from} fins {to} d'un total de {total} registres",welcome:"Benvingut",attachments:"Adjunts",addNewAttachment:"Afegir nou adjunt",listAllAttachments:"Veure tots els adjunts",viewAs:"Veure com",confirmRemoveItem:"Est\xE0s segur de volguer eliminar aquest item?",save:"Desar",delete:"Eliminar",refresh:"Refrescar",previous:"Anterior",next:"Seg\xFCent",actions:"Accions",reports:"Informes",related:"Relacionat",new:"Nou",fillRequiredField:"Siusplau, omple aquest camp obligatori",fillRequiredFields:"Siusplau, omple tots els camps obligatoris",generatingReport:"Generant informe...",confirmation:"Confirmaci\xF3",ok:"D'acord",cancel:"Cancel\xB7lar",formHasErrors:"El formulari t\xE9 errors",unsavedChanges:"Hi ha canvis sense guardar",confirmRefreshWithoutSave:"Est\xE0s segur de volguer refrescar la p\xE0gina sense guardar els canvis?",discardAndRefresh:"Descarta els canvis i refresca",removeItems:"Elimina el registre/s",confirmRemove:"Est\xE0s segur de volguer eliminar els registre/s seleccionats?",yesConfirmRemove:"S\xED, elimina",unlinkItems:"Desenlla\xE7a registre/s",confirmUnlink:"Est\xE0s segur de volguer desenlla\xE7ar els registre/s seleccionats?",yesConfirmUnlink:"S\xED, desenlla\xE7a",confirmCloseWithoutSave:"Est\xE0s segur de volguer tancar aquesta finestra sense guardar?",closeWithoutSaving:"Tancar sense guardar",action:"Acci\xF3",report:"Informe",selectAction:"Selecciona una acci\xF3",download:"Descarrega",clear:"Neteja",open:"Obre",uploadNewImage:"Puja una nova imatge",noCurrentEntries:"No hi ha registres",duplicate:"Duplicar",downloadingAttachment:"Descarregant adjunt...",tree:"llista",form:"formulari",favorites:"Els meus favorits",edit_favorites:"Edita els favorits",no_favorites:"No tens favorits guardats",register:"Registre",of:"de",editingDocument:"Editant document",showLogs:"Veure logs",createdBy:"Creat per l'usuari",creationDate:"Data creaci\xF3",lastUpdatedBy:"\xDAltima modificaci\xF3 per",lastUpdatedDate:"Data \xFAltima modificaci\xF3",goToResourceId:"V\xE9s al recurs amb ID",searchId:"ID de cerca:",idNotFound:"No es troba aquesta id de recurs per l'objecte",selectedRegisters:"registres seleccionats",translate:"Tradu\xEFr",enterTextBeforeTranslate:"Introdueix algun text al camp abans d'afegir traduccions",saveBeforeTranslate:"Heu de desar el registre abans d'afegir les traduccions",configDashboard:"Configurar panell",moveDashboard:"Moure items del panell",openAttachment:"Veure detall de l'adjunt",openAttachmentLink:"Obrir enlla\xE7 de l'adjunt",uninformed:"Sense informar",totalRegisters:"Registres totals:",export:"Exportar",selectAtLeastOneField:"Selecciona almenys un camp per a l'exportaci\xF3",printScreen:"Imprimir pantalla",advancedExport:"Exportaci\xF3 avan\xE7ada"},en_US$5={true:"Yes",false:"No",simple_search:"Simple search",advanced_search:"Advanced search",search:"Search",parameters:"Parameters",limit:"Limit",first:"First",no_results:"No results",summary:"Showing registers from {from} to {to} of {total} registers",welcome:"Welcome",attachments:"Attachments",addNewAttachment:"Add new attachment",listAllAttachments:"View all the attachments",viewAs:"View as",confirmRemoveItem:"Are you sure to remove this item?",save:"Save",delete:"Delete",refresh:"Refresh",previous:"Previous",next:"Next",actions:"Actions",reports:"Reports",related:"Related",new:"New",fillRequiredField:"Please fill this required field",fillRequiredFields:"Please fill all the required fields",generatingReport:"Generating report...",confirmation:"Confirmation",ok:"OK",cancel:"Cancel",formHasErrors:"Form has errors",unsavedChanges:"There are unsaved changes",confirmRefreshWithoutSave:"Do you really want to refresh this window without saving?",discardAndRefresh:"Discard changes and refresh",removeItems:"Remove item/s",confirmRemove:"Are you sure you want to remove the selected item/s?",yesConfirmRemove:"Yes, remove",unlinkItems:"Unlink item/s",confirmUnlink:"Are you sure you want to unlink the selected item/s?",yesConfirmUnlink:"Yes, unlink",confirmCloseWithoutSave:"Do you really want to close this window without saving?",closeWithoutSaving:"Close without saving",action:"Action",report:"Report",selectAction:"Select an action",download:"Download",clear:"Clear",open:"Open",uploadNewImage:"Upload new image",noCurrentEntries:"No current entries",duplicate:"Duplicate",downloadingAttachment:"Downloading attachment...",tree:"list",form:"form",favorites:"My shortcuts",edit_favorites:"Edit shortcuts",no_favorites:"You don't have any shortcuts saved yet",register:"Register",of:"of",editingDocument:"Editing document",showLogs:"Show logs",createdBy:"Created by user",creationDate:"Creation date",lastUpdatedBy:"Last modified by",lastUpdatedDate:"Date of last modification",goToResourceId:"Go to resource ID",searchId:"Search ID:",idNotFound:"Resource ID does not exist for this object!",selectedRegisters:"selected registers",translate:"Translate",enterTextBeforeTranslate:"Enter some text to the related field before adding translations",saveBeforeTranslate:"You must save the record before adding translations",configDashboard:"Setup dashboard",moveDashboard:"Move dashboard items",openAttachment:"Open attachment detail",openAttachmentLink:"Open attachment link",uninformed:"Uninformed",totalRegisters:"Total registers:",export:"Export",selectAtLeastOneField:"Select at least one field for the export",printScreen:"Print screen",advancedExport:"Advanced export"},es_ES={true:"S\xED",false:"No",simple_search:"B\xFAsqueda simple",advanced_search:"B\xFAsqueda avanzada",search:"Buscar",parameters:"Parametros",limit:"L\xEDmite",first:"Primero",no_results:"No hay resultados",summary:"Mostrando resultado desde {from} hasta {to} de un total de {total} registros",welcome:"Bienvenido",attachments:"Adjuntos",addNewAttachment:"A\xF1adir nuevo adjunto",listAllAttachments:"Ver todos los adjuntos",viewAs:"Ver c\xF3mo",confirmRemoveItem:"Est\xE1s seguro de querer eliminar \xE9ste registro?",save:"Guardar",delete:"Eliminar",refresh:"Refrescar",previous:"Anterior",next:"Siguiente",actions:"Acciones",reports:"Informes",related:"Relacionado",new:"Nuevo",fillRequiredField:"Por favor, rellena \xE9ste campo obligatorio",fillRequiredFields:"Por favor, rellena todos los campos obligatorios",generatingReport:"Generando informe...",confirmation:"Confirmaci\xF3m",ok:"De acuerdo",cancel:"Cancelar",formHasErrors:"El formulario tiene errores",unsavedChanges:"Hay cambios sin guardar",confirmRefreshWithoutSave:"Est\xE1s seguro de querer refrescar la p\xE1gina sin guardar los cambios?",discardAndRefresh:"Descarta los cambios y refresca",removeItems:"Eliminar el registro/s",confirmRemove:"Est\xE1s seguro de querer eliminar los registro/s seleccionados?",yesConfirmRemove:"S\xED, elimina",unlinkItems:"Desenlaza registro/s",confirmUnlink:"Est\xE1s seguro de querer desenlazar los registro/s seleccionados?",yesConfirmUnlink:"S\xED, desenlaza",confirmCloseWithoutSave:"Est\xE1s seguro de querer cerrar \xE9sta ventana sin cerrar?",closeWithoutSaving:"Cerrar sin guardar",action:"Acci\xF3n",report:"Informe",selectAction:"Selecciona una acci\xF3n",download:"Descarga",clear:"Limpiar",open:"Abrir",uploadNewImage:"Subir una nueva im\xE1gen",noCurrentEntries:"No hay registros",duplicate:"Duplicar",downloadingAttachment:"Descargando adjunto...",tree:"lista",form:"formulario",favorites:"Mis favoritos",edit_favorites:"Edita los favoritos",no_favorites:"No tienes favoritos guardados",register:"Registro",of:"de",editingDocument:"Editando documento",showLogs:"Ver logs",createdBy:"Creado por el usuario",creationDate:"Fecha creaci\xF3n",lastUpdatedBy:"\xDAltima modificaci\xF3n por",lastUpdatedDate:"Fecha \xFAltima modificaci\xF3n",goToResourceId:"Ir al recurso con ID",searchId:"ID de b\xFAsqueda:",idNotFound:"No se encuentra \xE9sta ID de recursos para el objeto",selectedRegisters:"registros seleccionados",translate:"Traducir",enterTextBeforeTranslate:"Introduce algun texto en el campo antes de a\xF1adir traducciones",saveBeforeTranslate:"Tienes que guardar el registro antes de a\xF1adir las traducciones",configDashboard:"Configurar panel",moveDashboard:"Mover items del panel",openAttachment:"Ver detalle del adjunto",openAttachmentLink:"Abrir enlace del adjunto",uninformed:"Sin informar",totalRegisters:"Registros totales:",export:"Exportar",selectAtLeastOneField:"Selecciona al menos un campo para la exportaci\xF3n",printScreen:"Imprimir pantalla",advancedExport:"Exportaci\xF3n avanzada"},localeStrings={ca_ES,en_US:en_US$5,es_ES},LocaleContext=React__default.default.createContext(null),LocaleContextProvider=e=>{const{children:o,lang:r}=e;function a(s){return tForLang(s,r)}return jsxRuntime.jsx(LocaleContext.Provider,{value:{lang:r,t:a},children:o})},tForLang=(e,o)=>{var a;return((a=localeStrings[o])==null?void 0:a[e])||e};function Field$1({ooui:e,children:o,layout:r="horizontal",valuePropName:a,showLabel:s=!1,alignLabel:c="left",required:l=!1,type:d,validator:u}){const{id:f,label:p,tooltip:m}=e,{t:I}=React.useContext(LocaleContext),h=l?[{required:!0,message:I("fillRequiredField"),type:d,validator:u}]:void 0,g=()=>jsxRuntime.jsx(antd.Form.Item,{className:"mb-0",name:f,valuePropName:a,rules:h,children:o});if(!s)return g();const C=jsxRuntime.jsx(Label,{ooui:new ooui.Label({name:f+"_label",string:p,help:m,fieldForLabel:f}),align:c});return r==="horizontal"?(()=>jsxRuntime.jsxs(antd.Row,{align:"middle",className:"pb-1 pt-1",children:[jsxRuntime.jsx(antd.Col,{className:"ml-2",flex:"7rem",children:jsxRuntime.jsx("div",{className:"flex flex-col items-end",children:C})}),jsxRuntime.jsx(antd.Col,{flex:"auto",children:g()})]}))():(()=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[C,g()]}))()}const{confirm:confirm$4}=antd.Modal,showDialog$9=({onOk:e,confirmMessage:o,lang:r})=>{confirm$4({title:tForLang("confirmation",r),icon:jsxRuntime.jsx(Icon.ExclamationCircleOutlined,{}),centered:!0,content:o,okText:tForLang("ok",r),cancelText:tForLang("cancel",r),onOk:e})},FormContext$1=React__default.default.createContext(null),FormProvider$1=e=>{const{children:o,activeId:r,activeModel:a,setFieldValue:s,getFieldValue:c,executeButtonAction:l,getContext:d,getValues:u,getPlainValues:f,setOriginalValue:p,domain:m,submitForm:I,fetchValues:h,formHasChanges:g,elementHasLostFocus:C,getFields:b}=e;return jsxRuntime.jsx(FormContext$1.Provider,{value:{domain:m,getValues:u,getPlainValues:f,getFields:b,activeId:r,activeModel:a,setFieldValue:s,getFieldValue:c,executeButtonAction:l,getContext:d,setOriginalValue:p,submitForm:I,fetchValues:h,formHasChanges:g,elementHasLostFocus:C},children:o})},AntIcons={AccountBookFilled:Icon.AccountBookFilled,AccountBookOutlined:Icon.AccountBookOutlined,AccountBookTwoTone:Icon.AccountBookTwoTone,AimOutlined:Icon.AimOutlined,AlertFilled:Icon.AlertFilled,AlertOutlined:Icon.AlertOutlined,AlertTwoTone:Icon.AlertTwoTone,AlibabaOutlined:Icon.AlibabaOutlined,AlignCenterOutlined:Icon.AlignCenterOutlined,AlignLeftOutlined:Icon.AlignLeftOutlined,AlignRightOutlined:Icon.AlignRightOutlined,AlipayCircleFilled:Icon.AlipayCircleFilled,AlipayCircleOutlined:Icon.AlipayCircleOutlined,AlipayOutlined:Icon.AlipayOutlined,AlipaySquareFilled:Icon.AlipaySquareFilled,AliwangwangFilled:Icon.AliwangwangFilled,AliwangwangOutlined:Icon.AliwangwangOutlined,AliyunOutlined:Icon.AliyunOutlined,AmazonCircleFilled:Icon.AmazonCircleFilled,AmazonOutlined:Icon.AmazonOutlined,AmazonSquareFilled:Icon.AmazonSquareFilled,AndroidFilled:Icon.AndroidFilled,AndroidOutlined:Icon.AndroidOutlined,AntCloudOutlined:Icon.AntCloudOutlined,AntDesignOutlined:Icon.AntDesignOutlined,ApartmentOutlined:Icon.ApartmentOutlined,ApiFilled:Icon.ApiFilled,ApiOutlined:Icon.ApiOutlined,ApiTwoTone:Icon.ApiTwoTone,AppleFilled:Icon.AppleFilled,AppleOutlined:Icon.AppleOutlined,AppstoreAddOutlined:Icon.AppstoreAddOutlined,AppstoreFilled:Icon.AppstoreFilled,AppstoreOutlined:Icon.AppstoreOutlined,AppstoreTwoTone:Icon.AppstoreTwoTone,AreaChartOutlined:Icon.AreaChartOutlined,ArrowDownOutlined:Icon.ArrowDownOutlined,ArrowLeftOutlined:Icon.ArrowLeftOutlined,ArrowRightOutlined:Icon.ArrowRightOutlined,ArrowUpOutlined:Icon.ArrowUpOutlined,ArrowsAltOutlined:Icon.ArrowsAltOutlined,AudioFilled:Icon.AudioFilled,AudioMutedOutlined:Icon.AudioMutedOutlined,AudioOutlined:Icon.AudioOutlined,AudioTwoTone:Icon.AudioTwoTone,AuditOutlined:Icon.AuditOutlined,BackwardFilled:Icon.BackwardFilled,BackwardOutlined:Icon.BackwardOutlined,BankFilled:Icon.BankFilled,BankOutlined:Icon.BankOutlined,BankTwoTone:Icon.BankTwoTone,BarChartOutlined:Icon.BarChartOutlined,BarcodeOutlined:Icon.BarcodeOutlined,BarsOutlined:Icon.BarsOutlined,BehanceCircleFilled:Icon.BehanceCircleFilled,BehanceOutlined:Icon.BehanceOutlined,BehanceSquareFilled:Icon.BehanceSquareFilled,BehanceSquareOutlined:Icon.BehanceSquareOutlined,BellFilled:Icon.BellFilled,BellOutlined:Icon.BellOutlined,BellTwoTone:Icon.BellTwoTone,BgColorsOutlined:Icon.BgColorsOutlined,BlockOutlined:Icon.BlockOutlined,BoldOutlined:Icon.BoldOutlined,BookFilled:Icon.BookFilled,BookOutlined:Icon.BookOutlined,BookTwoTone:Icon.BookTwoTone,BorderBottomOutlined:Icon.BorderBottomOutlined,BorderHorizontalOutlined:Icon.BorderHorizontalOutlined,BorderInnerOutlined:Icon.BorderInnerOutlined,BorderLeftOutlined:Icon.BorderLeftOutlined,BorderOuterOutlined:Icon.BorderOuterOutlined,BorderOutlined:Icon.BorderOutlined,BorderRightOutlined:Icon.BorderRightOutlined,BorderTopOutlined:Icon.BorderTopOutlined,BorderVerticleOutlined:Icon.BorderVerticleOutlined,BorderlessTableOutlined:Icon.BorderlessTableOutlined,BoxPlotFilled:Icon.BoxPlotFilled,BoxPlotOutlined:Icon.BoxPlotOutlined,BoxPlotTwoTone:Icon.BoxPlotTwoTone,BranchesOutlined:Icon.BranchesOutlined,BugFilled:Icon.BugFilled,BugOutlined:Icon.BugOutlined,BugTwoTone:Icon.BugTwoTone,BuildFilled:Icon.BuildFilled,BuildOutlined:Icon.BuildOutlined,BuildTwoTone:Icon.BuildTwoTone,BulbFilled:Icon.BulbFilled,BulbOutlined:Icon.BulbOutlined,BulbTwoTone:Icon.BulbTwoTone,CalculatorFilled:Icon.CalculatorFilled,CalculatorOutlined:Icon.CalculatorOutlined,CalculatorTwoTone:Icon.CalculatorTwoTone,CalendarFilled:Icon.CalendarFilled,CalendarOutlined:Icon.CalendarOutlined,CalendarTwoTone:Icon.CalendarTwoTone,CameraFilled:Icon.CameraFilled,CameraOutlined:Icon.CameraOutlined,CameraTwoTone:Icon.CameraTwoTone,CarFilled:Icon.CarFilled,CarOutlined:Icon.CarOutlined,CarTwoTone:Icon.CarTwoTone,CaretDownFilled:Icon.CaretDownFilled,CaretDownOutlined:Icon.CaretDownOutlined,CaretLeftFilled:Icon.CaretLeftFilled,CaretLeftOutlined:Icon.CaretLeftOutlined,CaretRightFilled:Icon.CaretRightFilled,CaretRightOutlined:Icon.CaretRightOutlined,CaretUpFilled:Icon.CaretUpFilled,CaretUpOutlined:Icon.CaretUpOutlined,CarryOutFilled:Icon.CarryOutFilled,CarryOutOutlined:Icon.CarryOutOutlined,CarryOutTwoTone:Icon.CarryOutTwoTone,CheckCircleFilled:Icon.CheckCircleFilled,CheckCircleOutlined:Icon.CheckCircleOutlined,CheckCircleTwoTone:Icon.CheckCircleTwoTone,CheckOutlined:Icon.CheckOutlined,CheckSquareFilled:Icon.CheckSquareFilled,CheckSquareOutlined:Icon.CheckSquareOutlined,CheckSquareTwoTone:Icon.CheckSquareTwoTone,ChromeFilled:Icon.ChromeFilled,ChromeOutlined:Icon.ChromeOutlined,CiCircleFilled:Icon.CiCircleFilled,CiCircleOutlined:Icon.CiCircleOutlined,CiCircleTwoTone:Icon.CiCircleTwoTone,CiOutlined:Icon.CiOutlined,CiTwoTone:Icon.CiTwoTone,ClearOutlined:Icon.ClearOutlined,ClockCircleFilled:Icon.ClockCircleFilled,ClockCircleOutlined:Icon.ClockCircleOutlined,ClockCircleTwoTone:Icon.ClockCircleTwoTone,CloseCircleFilled:Icon.CloseCircleFilled,CloseCircleOutlined:Icon.CloseCircleOutlined,CloseCircleTwoTone:Icon.CloseCircleTwoTone,CloseOutlined:Icon.CloseOutlined,CloseSquareFilled:Icon.CloseSquareFilled,CloseSquareOutlined:Icon.CloseSquareOutlined,CloseSquareTwoTone:Icon.CloseSquareTwoTone,CloudDownloadOutlined:Icon.CloudDownloadOutlined,CloudFilled:Icon.CloudFilled,CloudOutlined:Icon.CloudOutlined,CloudServerOutlined:Icon.CloudServerOutlined,CloudSyncOutlined:Icon.CloudSyncOutlined,CloudTwoTone:Icon.CloudTwoTone,CloudUploadOutlined:Icon.CloudUploadOutlined,ClusterOutlined:Icon.ClusterOutlined,CodeFilled:Icon.CodeFilled,CodeOutlined:Icon.CodeOutlined,CodeSandboxCircleFilled:Icon.CodeSandboxCircleFilled,CodeSandboxOutlined:Icon.CodeSandboxOutlined,CodeSandboxSquareFilled:Icon.CodeSandboxSquareFilled,CodeTwoTone:Icon.CodeTwoTone,CodepenCircleFilled:Icon.CodepenCircleFilled,CodepenCircleOutlined:Icon.CodepenCircleOutlined,CodepenOutlined:Icon.CodepenOutlined,CodepenSquareFilled:Icon.CodepenSquareFilled,CoffeeOutlined:Icon.CoffeeOutlined,ColumnHeightOutlined:Icon.ColumnHeightOutlined,ColumnWidthOutlined:Icon.ColumnWidthOutlined,CommentOutlined:Icon.CommentOutlined,CompassFilled:Icon.CompassFilled,CompassOutlined:Icon.CompassOutlined,CompassTwoTone:Icon.CompassTwoTone,CompressOutlined:Icon.CompressOutlined,ConsoleSqlOutlined:Icon.ConsoleSqlOutlined,ContactsFilled:Icon.ContactsFilled,ContactsOutlined:Icon.ContactsOutlined,ContactsTwoTone:Icon.ContactsTwoTone,ContainerFilled:Icon.ContainerFilled,ContainerOutlined:Icon.ContainerOutlined,ContainerTwoTone:Icon.ContainerTwoTone,ControlFilled:Icon.ControlFilled,ControlOutlined:Icon.ControlOutlined,ControlTwoTone:Icon.ControlTwoTone,CopyFilled:Icon.CopyFilled,CopyOutlined:Icon.CopyOutlined,CopyTwoTone:Icon.CopyTwoTone,CopyrightCircleFilled:Icon.CopyrightCircleFilled,CopyrightCircleOutlined:Icon.CopyrightCircleOutlined,CopyrightCircleTwoTone:Icon.CopyrightCircleTwoTone,CopyrightOutlined:Icon.CopyrightOutlined,CopyrightTwoTone:Icon.CopyrightTwoTone,CreditCardFilled:Icon.CreditCardFilled,CreditCardOutlined:Icon.CreditCardOutlined,CreditCardTwoTone:Icon.CreditCardTwoTone,CrownFilled:Icon.CrownFilled,CrownOutlined:Icon.CrownOutlined,CrownTwoTone:Icon.CrownTwoTone,CustomerServiceFilled:Icon.CustomerServiceFilled,CustomerServiceOutlined:Icon.CustomerServiceOutlined,CustomerServiceTwoTone:Icon.CustomerServiceTwoTone,DashOutlined:Icon.DashOutlined,DashboardFilled:Icon.DashboardFilled,DashboardOutlined:Icon.DashboardOutlined,DashboardTwoTone:Icon.DashboardTwoTone,DatabaseFilled:Icon.DatabaseFilled,DatabaseOutlined:Icon.DatabaseOutlined,DatabaseTwoTone:Icon.DatabaseTwoTone,DeleteColumnOutlined:Icon.DeleteColumnOutlined,DeleteFilled:Icon.DeleteFilled,DeleteOutlined:Icon.DeleteOutlined,DeleteRowOutlined:Icon.DeleteRowOutlined,DeleteTwoTone:Icon.DeleteTwoTone,DeliveredProcedureOutlined:Icon.DeliveredProcedureOutlined,DeploymentUnitOutlined:Icon.DeploymentUnitOutlined,DesktopOutlined:Icon.DesktopOutlined,DiffFilled:Icon.DiffFilled,DiffOutlined:Icon.DiffOutlined,DiffTwoTone:Icon.DiffTwoTone,DingdingOutlined:Icon.DingdingOutlined,DingtalkCircleFilled:Icon.DingtalkCircleFilled,DingtalkOutlined:Icon.DingtalkOutlined,DingtalkSquareFilled:Icon.DingtalkSquareFilled,DisconnectOutlined:Icon.DisconnectOutlined,DislikeFilled:Icon.DislikeFilled,DislikeOutlined:Icon.DislikeOutlined,DislikeTwoTone:Icon.DislikeTwoTone,DollarCircleFilled:Icon.DollarCircleFilled,DollarCircleOutlined:Icon.DollarCircleOutlined,DollarCircleTwoTone:Icon.DollarCircleTwoTone,DollarOutlined:Icon.DollarOutlined,DollarTwoTone:Icon.DollarTwoTone,DotChartOutlined:Icon.DotChartOutlined,DoubleLeftOutlined:Icon.DoubleLeftOutlined,DoubleRightOutlined:Icon.DoubleRightOutlined,DownCircleFilled:Icon.DownCircleFilled,DownCircleOutlined:Icon.DownCircleOutlined,DownCircleTwoTone:Icon.DownCircleTwoTone,DownOutlined:Icon.DownOutlined,DownSquareFilled:Icon.DownSquareFilled,DownSquareOutlined:Icon.DownSquareOutlined,DownSquareTwoTone:Icon.DownSquareTwoTone,DownloadOutlined:Icon.DownloadOutlined,DragOutlined:Icon.DragOutlined,DribbbleCircleFilled:Icon.DribbbleCircleFilled,DribbbleOutlined:Icon.DribbbleOutlined,DribbbleSquareFilled:Icon.DribbbleSquareFilled,DribbbleSquareOutlined:Icon.DribbbleSquareOutlined,DropboxCircleFilled:Icon.DropboxCircleFilled,DropboxOutlined:Icon.DropboxOutlined,DropboxSquareFilled:Icon.DropboxSquareFilled,EditFilled:Icon.EditFilled,EditOutlined:Icon.EditOutlined,EditTwoTone:Icon.EditTwoTone,EllipsisOutlined:Icon.EllipsisOutlined,EnterOutlined:Icon.EnterOutlined,EnvironmentFilled:Icon.EnvironmentFilled,EnvironmentOutlined:Icon.EnvironmentOutlined,EnvironmentTwoTone:Icon.EnvironmentTwoTone,EuroCircleFilled:Icon.EuroCircleFilled,EuroCircleOutlined:Icon.EuroCircleOutlined,EuroCircleTwoTone:Icon.EuroCircleTwoTone,EuroOutlined:Icon.EuroOutlined,EuroTwoTone:Icon.EuroTwoTone,ExceptionOutlined:Icon.ExceptionOutlined,ExclamationCircleFilled:Icon.ExclamationCircleFilled,ExclamationCircleOutlined:Icon.ExclamationCircleOutlined,ExclamationCircleTwoTone:Icon.ExclamationCircleTwoTone,ExclamationOutlined:Icon.ExclamationOutlined,ExpandAltOutlined:Icon.ExpandAltOutlined,ExpandOutlined:Icon.ExpandOutlined,ExperimentFilled:Icon.ExperimentFilled,ExperimentOutlined:Icon.ExperimentOutlined,ExperimentTwoTone:Icon.ExperimentTwoTone,ExportOutlined:Icon.ExportOutlined,EyeFilled:Icon.EyeFilled,EyeInvisibleFilled:Icon.EyeInvisibleFilled,EyeInvisibleOutlined:Icon.EyeInvisibleOutlined,EyeInvisibleTwoTone:Icon.EyeInvisibleTwoTone,EyeOutlined:Icon.EyeOutlined,EyeTwoTone:Icon.EyeTwoTone,FacebookFilled:Icon.FacebookFilled,FacebookOutlined:Icon.FacebookOutlined,FallOutlined:Icon.FallOutlined,FastBackwardFilled:Icon.FastBackwardFilled,FastBackwardOutlined:Icon.FastBackwardOutlined,FastForwardFilled:Icon.FastForwardFilled,FastForwardOutlined:Icon.FastForwardOutlined,FieldBinaryOutlined:Icon.FieldBinaryOutlined,FieldNumberOutlined:Icon.FieldNumberOutlined,FieldStringOutlined:Icon.FieldStringOutlined,FieldTimeOutlined:Icon.FieldTimeOutlined,FileAddFilled:Icon.FileAddFilled,FileAddOutlined:Icon.FileAddOutlined,FileAddTwoTone:Icon.FileAddTwoTone,FileDoneOutlined:Icon.FileDoneOutlined,FileExcelFilled:Icon.FileExcelFilled,FileExcelOutlined:Icon.FileExcelOutlined,FileExcelTwoTone:Icon.FileExcelTwoTone,FileExclamationFilled:Icon.FileExclamationFilled,FileExclamationOutlined:Icon.FileExclamationOutlined,FileExclamationTwoTone:Icon.FileExclamationTwoTone,FileFilled:Icon.FileFilled,FileGifOutlined:Icon.FileGifOutlined,FileImageFilled:Icon.FileImageFilled,FileImageOutlined:Icon.FileImageOutlined,FileImageTwoTone:Icon.FileImageTwoTone,FileJpgOutlined:Icon.FileJpgOutlined,FileMarkdownFilled:Icon.FileMarkdownFilled,FileMarkdownOutlined:Icon.FileMarkdownOutlined,FileMarkdownTwoTone:Icon.FileMarkdownTwoTone,FileOutlined:Icon.FileOutlined,FilePdfFilled:Icon.FilePdfFilled,FilePdfOutlined:Icon.FilePdfOutlined,FilePdfTwoTone:Icon.FilePdfTwoTone,FilePptFilled:Icon.FilePptFilled,FilePptOutlined:Icon.FilePptOutlined,FilePptTwoTone:Icon.FilePptTwoTone,FileProtectOutlined:Icon.FileProtectOutlined,FileSearchOutlined:Icon.FileSearchOutlined,FileSyncOutlined:Icon.FileSyncOutlined,FileTextFilled:Icon.FileTextFilled,FileTextOutlined:Icon.FileTextOutlined,FileTextTwoTone:Icon.FileTextTwoTone,FileTwoTone:Icon.FileTwoTone,FileUnknownFilled:Icon.FileUnknownFilled,FileUnknownOutlined:Icon.FileUnknownOutlined,FileUnknownTwoTone:Icon.FileUnknownTwoTone,FileWordFilled:Icon.FileWordFilled,FileWordOutlined:Icon.FileWordOutlined,FileWordTwoTone:Icon.FileWordTwoTone,FileZipFilled:Icon.FileZipFilled,FileZipOutlined:Icon.FileZipOutlined,FileZipTwoTone:Icon.FileZipTwoTone,FilterFilled:Icon.FilterFilled,FilterOutlined:Icon.FilterOutlined,FilterTwoTone:Icon.FilterTwoTone,FireFilled:Icon.FireFilled,FireOutlined:Icon.FireOutlined,FireTwoTone:Icon.FireTwoTone,FlagFilled:Icon.FlagFilled,FlagOutlined:Icon.FlagOutlined,FlagTwoTone:Icon.FlagTwoTone,FolderAddFilled:Icon.FolderAddFilled,FolderAddOutlined:Icon.FolderAddOutlined,FolderAddTwoTone:Icon.FolderAddTwoTone,FolderFilled:Icon.FolderFilled,FolderOpenFilled:Icon.FolderOpenFilled,FolderOpenOutlined:Icon.FolderOpenOutlined,FolderOpenTwoTone:Icon.FolderOpenTwoTone,FolderOutlined:Icon.FolderOutlined,FolderTwoTone:Icon.FolderTwoTone,FolderViewOutlined:Icon.FolderViewOutlined,FontColorsOutlined:Icon.FontColorsOutlined,FontSizeOutlined:Icon.FontSizeOutlined,ForkOutlined:Icon.ForkOutlined,FormOutlined:Icon.FormOutlined,FormatPainterFilled:Icon.FormatPainterFilled,FormatPainterOutlined:Icon.FormatPainterOutlined,ForwardFilled:Icon.ForwardFilled,ForwardOutlined:Icon.ForwardOutlined,FrownFilled:Icon.FrownFilled,FrownOutlined:Icon.FrownOutlined,FrownTwoTone:Icon.FrownTwoTone,FullscreenExitOutlined:Icon.FullscreenExitOutlined,FullscreenOutlined:Icon.FullscreenOutlined,FunctionOutlined:Icon.FunctionOutlined,FundFilled:Icon.FundFilled,FundOutlined:Icon.FundOutlined,FundProjectionScreenOutlined:Icon.FundProjectionScreenOutlined,FundTwoTone:Icon.FundTwoTone,FundViewOutlined:Icon.FundViewOutlined,FunnelPlotFilled:Icon.FunnelPlotFilled,FunnelPlotOutlined:Icon.FunnelPlotOutlined,FunnelPlotTwoTone:Icon.FunnelPlotTwoTone,GatewayOutlined:Icon.GatewayOutlined,GifOutlined:Icon.GifOutlined,GiftFilled:Icon.GiftFilled,GiftOutlined:Icon.GiftOutlined,GiftTwoTone:Icon.GiftTwoTone,GithubFilled:Icon.GithubFilled,GithubOutlined:Icon.GithubOutlined,GitlabFilled:Icon.GitlabFilled,GitlabOutlined:Icon.GitlabOutlined,GlobalOutlined:Icon.GlobalOutlined,GoldFilled:Icon.GoldFilled,GoldOutlined:Icon.GoldOutlined,GoldTwoTone:Icon.GoldTwoTone,GoldenFilled:Icon.GoldenFilled,GoogleCircleFilled:Icon.GoogleCircleFilled,GoogleOutlined:Icon.GoogleOutlined,GooglePlusCircleFilled:Icon.GooglePlusCircleFilled,GooglePlusOutlined:Icon.GooglePlusOutlined,GooglePlusSquareFilled:Icon.GooglePlusSquareFilled,GoogleSquareFilled:Icon.GoogleSquareFilled,GroupOutlined:Icon.GroupOutlined,HddFilled:Icon.HddFilled,HddOutlined:Icon.HddOutlined,HddTwoTone:Icon.HddTwoTone,HeartFilled:Icon.HeartFilled,HeartOutlined:Icon.HeartOutlined,HeartTwoTone:Icon.HeartTwoTone,HeatMapOutlined:Icon.HeatMapOutlined,HighlightFilled:Icon.HighlightFilled,HighlightOutlined:Icon.HighlightOutlined,HighlightTwoTone:Icon.HighlightTwoTone,HistoryOutlined:Icon.HistoryOutlined,HolderOutlined:Icon.HolderOutlined,HomeFilled:Icon.HomeFilled,HomeOutlined:Icon.HomeOutlined,HomeTwoTone:Icon.HomeTwoTone,HourglassFilled:Icon.HourglassFilled,HourglassOutlined:Icon.HourglassOutlined,HourglassTwoTone:Icon.HourglassTwoTone,Html5Filled:Icon.Html5Filled,Html5Outlined:Icon.Html5Outlined,Html5TwoTone:Icon.Html5TwoTone,IdcardFilled:Icon.IdcardFilled,IdcardOutlined:Icon.IdcardOutlined,IdcardTwoTone:Icon.IdcardTwoTone,IeCircleFilled:Icon.IeCircleFilled,IeOutlined:Icon.IeOutlined,IeSquareFilled:Icon.IeSquareFilled,ImportOutlined:Icon.ImportOutlined,InboxOutlined:Icon.InboxOutlined,InfoCircleFilled:Icon.InfoCircleFilled,InfoCircleOutlined:Icon.InfoCircleOutlined,InfoCircleTwoTone:Icon.InfoCircleTwoTone,InfoOutlined:Icon.InfoOutlined,InsertRowAboveOutlined:Icon.InsertRowAboveOutlined,InsertRowBelowOutlined:Icon.InsertRowBelowOutlined,InsertRowLeftOutlined:Icon.InsertRowLeftOutlined,InsertRowRightOutlined:Icon.InsertRowRightOutlined,InstagramFilled:Icon.InstagramFilled,InstagramOutlined:Icon.InstagramOutlined,InsuranceFilled:Icon.InsuranceFilled,InsuranceOutlined:Icon.InsuranceOutlined,InsuranceTwoTone:Icon.InsuranceTwoTone,InteractionFilled:Icon.InteractionFilled,InteractionOutlined:Icon.InteractionOutlined,InteractionTwoTone:Icon.InteractionTwoTone,IssuesCloseOutlined:Icon.IssuesCloseOutlined,ItalicOutlined:Icon.ItalicOutlined,KeyOutlined:Icon.KeyOutlined,LaptopOutlined:Icon.LaptopOutlined,LayoutFilled:Icon.LayoutFilled,LayoutOutlined:Icon.LayoutOutlined,LayoutTwoTone:Icon.LayoutTwoTone,LeftCircleFilled:Icon.LeftCircleFilled,LeftCircleOutlined:Icon.LeftCircleOutlined,LeftCircleTwoTone:Icon.LeftCircleTwoTone,LeftOutlined:Icon.LeftOutlined,LeftSquareFilled:Icon.LeftSquareFilled,LeftSquareOutlined:Icon.LeftSquareOutlined,LeftSquareTwoTone:Icon.LeftSquareTwoTone,LikeFilled:Icon.LikeFilled,LikeOutlined:Icon.LikeOutlined,LikeTwoTone:Icon.LikeTwoTone,LineChartOutlined:Icon.LineChartOutlined,LineHeightOutlined:Icon.LineHeightOutlined,LineOutlined:Icon.LineOutlined,LinkOutlined:Icon.LinkOutlined,LinkedinFilled:Icon.LinkedinFilled,LinkedinOutlined:Icon.LinkedinOutlined,Loading3QuartersOutlined:Icon.Loading3QuartersOutlined,LoadingOutlined:Icon.LoadingOutlined,LockFilled:Icon.LockFilled,LockOutlined:Icon.LockOutlined,LockTwoTone:Icon.LockTwoTone,LoginOutlined:Icon.LoginOutlined,LogoutOutlined:Icon.LogoutOutlined,MacCommandFilled:Icon.MacCommandFilled,MacCommandOutlined:Icon.MacCommandOutlined,MailFilled:Icon.MailFilled,MailOutlined:Icon.MailOutlined,MailTwoTone:Icon.MailTwoTone,ManOutlined:Icon.ManOutlined,MedicineBoxFilled:Icon.MedicineBoxFilled,MedicineBoxOutlined:Icon.MedicineBoxOutlined,MedicineBoxTwoTone:Icon.MedicineBoxTwoTone,MediumCircleFilled:Icon.MediumCircleFilled,MediumOutlined:Icon.MediumOutlined,MediumSquareFilled:Icon.MediumSquareFilled,MediumWorkmarkOutlined:Icon.MediumWorkmarkOutlined,MehFilled:Icon.MehFilled,MehOutlined:Icon.MehOutlined,MehTwoTone:Icon.MehTwoTone,MenuFoldOutlined:Icon.MenuFoldOutlined,MenuOutlined:Icon.MenuOutlined,MenuUnfoldOutlined:Icon.MenuUnfoldOutlined,MergeCellsOutlined:Icon.MergeCellsOutlined,MessageFilled:Icon.MessageFilled,MessageOutlined:Icon.MessageOutlined,MessageTwoTone:Icon.MessageTwoTone,MinusCircleFilled:Icon.MinusCircleFilled,MinusCircleOutlined:Icon.MinusCircleOutlined,MinusCircleTwoTone:Icon.MinusCircleTwoTone,MinusOutlined:Icon.MinusOutlined,MinusSquareFilled:Icon.MinusSquareFilled,MinusSquareOutlined:Icon.MinusSquareOutlined,MinusSquareTwoTone:Icon.MinusSquareTwoTone,MobileFilled:Icon.MobileFilled,MobileOutlined:Icon.MobileOutlined,MobileTwoTone:Icon.MobileTwoTone,MoneyCollectFilled:Icon.MoneyCollectFilled,MoneyCollectOutlined:Icon.MoneyCollectOutlined,MoneyCollectTwoTone:Icon.MoneyCollectTwoTone,MonitorOutlined:Icon.MonitorOutlined,MoreOutlined:Icon.MoreOutlined,NodeCollapseOutlined:Icon.NodeCollapseOutlined,NodeExpandOutlined:Icon.NodeExpandOutlined,NodeIndexOutlined:Icon.NodeIndexOutlined,NotificationFilled:Icon.NotificationFilled,NotificationOutlined:Icon.NotificationOutlined,NotificationTwoTone:Icon.NotificationTwoTone,NumberOutlined:Icon.NumberOutlined,OneToOneOutlined:Icon.OneToOneOutlined,OrderedListOutlined:Icon.OrderedListOutlined,PaperClipOutlined:Icon.PaperClipOutlined,PartitionOutlined:Icon.PartitionOutlined,PauseCircleFilled:Icon.PauseCircleFilled,PauseCircleOutlined:Icon.PauseCircleOutlined,PauseCircleTwoTone:Icon.PauseCircleTwoTone,PauseOutlined:Icon.PauseOutlined,PayCircleFilled:Icon.PayCircleFilled,PayCircleOutlined:Icon.PayCircleOutlined,PercentageOutlined:Icon.PercentageOutlined,PhoneFilled:Icon.PhoneFilled,PhoneOutlined:Icon.PhoneOutlined,PhoneTwoTone:Icon.PhoneTwoTone,PicCenterOutlined:Icon.PicCenterOutlined,PicLeftOutlined:Icon.PicLeftOutlined,PicRightOutlined:Icon.PicRightOutlined,PictureFilled:Icon.PictureFilled,PictureOutlined:Icon.PictureOutlined,PictureTwoTone:Icon.PictureTwoTone,PieChartFilled:Icon.PieChartFilled,PieChartOutlined:Icon.PieChartOutlined,PieChartTwoTone:Icon.PieChartTwoTone,PlayCircleFilled:Icon.PlayCircleFilled,PlayCircleOutlined:Icon.PlayCircleOutlined,PlayCircleTwoTone:Icon.PlayCircleTwoTone,PlaySquareFilled:Icon.PlaySquareFilled,PlaySquareOutlined:Icon.PlaySquareOutlined,PlaySquareTwoTone:Icon.PlaySquareTwoTone,PlusCircleFilled:Icon.PlusCircleFilled,PlusCircleOutlined:Icon.PlusCircleOutlined,PlusCircleTwoTone:Icon.PlusCircleTwoTone,PlusOutlined:Icon.PlusOutlined,PlusSquareFilled:Icon.PlusSquareFilled,PlusSquareOutlined:Icon.PlusSquareOutlined,PlusSquareTwoTone:Icon.PlusSquareTwoTone,PoundCircleFilled:Icon.PoundCircleFilled,PoundCircleOutlined:Icon.PoundCircleOutlined,PoundCircleTwoTone:Icon.PoundCircleTwoTone,PoundOutlined:Icon.PoundOutlined,PoweroffOutlined:Icon.PoweroffOutlined,PrinterFilled:Icon.PrinterFilled,PrinterOutlined:Icon.PrinterOutlined,PrinterTwoTone:Icon.PrinterTwoTone,ProfileFilled:Icon.ProfileFilled,ProfileOutlined:Icon.ProfileOutlined,ProfileTwoTone:Icon.ProfileTwoTone,ProjectFilled:Icon.ProjectFilled,ProjectOutlined:Icon.ProjectOutlined,ProjectTwoTone:Icon.ProjectTwoTone,PropertySafetyFilled:Icon.PropertySafetyFilled,PropertySafetyOutlined:Icon.PropertySafetyOutlined,PropertySafetyTwoTone:Icon.PropertySafetyTwoTone,PullRequestOutlined:Icon.PullRequestOutlined,PushpinFilled:Icon.PushpinFilled,PushpinOutlined:Icon.PushpinOutlined,PushpinTwoTone:Icon.PushpinTwoTone,QqCircleFilled:Icon.QqCircleFilled,QqOutlined:Icon.QqOutlined,QqSquareFilled:Icon.QqSquareFilled,QrcodeOutlined:Icon.QrcodeOutlined,QuestionCircleFilled:Icon.QuestionCircleFilled,QuestionCircleOutlined:Icon.QuestionCircleOutlined,QuestionCircleTwoTone:Icon.QuestionCircleTwoTone,QuestionOutlined:Icon.QuestionOutlined,RadarChartOutlined:Icon.RadarChartOutlined,RadiusBottomleftOutlined:Icon.RadiusBottomleftOutlined,RadiusBottomrightOutlined:Icon.RadiusBottomrightOutlined,RadiusSettingOutlined:Icon.RadiusSettingOutlined,RadiusUpleftOutlined:Icon.RadiusUpleftOutlined,RadiusUprightOutlined:Icon.RadiusUprightOutlined,ReadFilled:Icon.ReadFilled,ReadOutlined:Icon.ReadOutlined,ReconciliationFilled:Icon.ReconciliationFilled,ReconciliationOutlined:Icon.ReconciliationOutlined,ReconciliationTwoTone:Icon.ReconciliationTwoTone,RedEnvelopeFilled:Icon.RedEnvelopeFilled,RedEnvelopeOutlined:Icon.RedEnvelopeOutlined,RedEnvelopeTwoTone:Icon.RedEnvelopeTwoTone,RedditCircleFilled:Icon.RedditCircleFilled,RedditOutlined:Icon.RedditOutlined,RedditSquareFilled:Icon.RedditSquareFilled,RedoOutlined:Icon.RedoOutlined,ReloadOutlined:Icon.ReloadOutlined,RestFilled:Icon.RestFilled,RestOutlined:Icon.RestOutlined,RestTwoTone:Icon.RestTwoTone,RetweetOutlined:Icon.RetweetOutlined,RightCircleFilled:Icon.RightCircleFilled,RightCircleOutlined:Icon.RightCircleOutlined,RightCircleTwoTone:Icon.RightCircleTwoTone,RightOutlined:Icon.RightOutlined,RightSquareFilled:Icon.RightSquareFilled,RightSquareOutlined:Icon.RightSquareOutlined,RightSquareTwoTone:Icon.RightSquareTwoTone,RiseOutlined:Icon.RiseOutlined,RobotFilled:Icon.RobotFilled,RobotOutlined:Icon.RobotOutlined,RocketFilled:Icon.RocketFilled,RocketOutlined:Icon.RocketOutlined,RocketTwoTone:Icon.RocketTwoTone,RollbackOutlined:Icon.RollbackOutlined,RotateLeftOutlined:Icon.RotateLeftOutlined,RotateRightOutlined:Icon.RotateRightOutlined,SafetyCertificateFilled:Icon.SafetyCertificateFilled,SafetyCertificateOutlined:Icon.SafetyCertificateOutlined,SafetyCertificateTwoTone:Icon.SafetyCertificateTwoTone,SafetyOutlined:Icon.SafetyOutlined,SaveFilled:Icon.SaveFilled,SaveOutlined:Icon.SaveOutlined,SaveTwoTone:Icon.SaveTwoTone,ScanOutlined:Icon.ScanOutlined,ScheduleFilled:Icon.ScheduleFilled,ScheduleOutlined:Icon.ScheduleOutlined,ScheduleTwoTone:Icon.ScheduleTwoTone,ScissorOutlined:Icon.ScissorOutlined,SearchOutlined:Icon.SearchOutlined,SecurityScanFilled:Icon.SecurityScanFilled,SecurityScanOutlined:Icon.SecurityScanOutlined,SecurityScanTwoTone:Icon.SecurityScanTwoTone,SelectOutlined:Icon.SelectOutlined,SendOutlined:Icon.SendOutlined,SettingFilled:Icon.SettingFilled,SettingOutlined:Icon.SettingOutlined,SettingTwoTone:Icon.SettingTwoTone,ShakeOutlined:Icon.ShakeOutlined,ShareAltOutlined:Icon.ShareAltOutlined,ShopFilled:Icon.ShopFilled,ShopOutlined:Icon.ShopOutlined,ShopTwoTone:Icon.ShopTwoTone,ShoppingCartOutlined:Icon.ShoppingCartOutlined,ShoppingFilled:Icon.ShoppingFilled,ShoppingOutlined:Icon.ShoppingOutlined,ShoppingTwoTone:Icon.ShoppingTwoTone,ShrinkOutlined:Icon.ShrinkOutlined,SignalFilled:Icon.SignalFilled,SisternodeOutlined:Icon.SisternodeOutlined,SketchCircleFilled:Icon.SketchCircleFilled,SketchOutlined:Icon.SketchOutlined,SketchSquareFilled:Icon.SketchSquareFilled,SkinFilled:Icon.SkinFilled,SkinOutlined:Icon.SkinOutlined,SkinTwoTone:Icon.SkinTwoTone,SkypeFilled:Icon.SkypeFilled,SkypeOutlined:Icon.SkypeOutlined,SlackCircleFilled:Icon.SlackCircleFilled,SlackOutlined:Icon.SlackOutlined,SlackSquareFilled:Icon.SlackSquareFilled,SlackSquareOutlined:Icon.SlackSquareOutlined,SlidersFilled:Icon.SlidersFilled,SlidersOutlined:Icon.SlidersOutlined,SlidersTwoTone:Icon.SlidersTwoTone,SmallDashOutlined:Icon.SmallDashOutlined,SmileFilled:Icon.SmileFilled,SmileOutlined:Icon.SmileOutlined,SmileTwoTone:Icon.SmileTwoTone,SnippetsFilled:Icon.SnippetsFilled,SnippetsOutlined:Icon.SnippetsOutlined,SnippetsTwoTone:Icon.SnippetsTwoTone,SolutionOutlined:Icon.SolutionOutlined,SortAscendingOutlined:Icon.SortAscendingOutlined,SortDescendingOutlined:Icon.SortDescendingOutlined,SoundFilled:Icon.SoundFilled,SoundOutlined:Icon.SoundOutlined,SoundTwoTone:Icon.SoundTwoTone,SplitCellsOutlined:Icon.SplitCellsOutlined,StarFilled:Icon.StarFilled,StarOutlined:Icon.StarOutlined,StarTwoTone:Icon.StarTwoTone,StepBackwardFilled:Icon.StepBackwardFilled,StepBackwardOutlined:Icon.StepBackwardOutlined,StepForwardFilled:Icon.StepForwardFilled,StepForwardOutlined:Icon.StepForwardOutlined,StockOutlined:Icon.StockOutlined,StopFilled:Icon.StopFilled,StopOutlined:Icon.StopOutlined,StopTwoTone:Icon.StopTwoTone,StrikethroughOutlined:Icon.StrikethroughOutlined,SubnodeOutlined:Icon.SubnodeOutlined,SwapLeftOutlined:Icon.SwapLeftOutlined,SwapOutlined:Icon.SwapOutlined,SwapRightOutlined:Icon.SwapRightOutlined,SwitcherFilled:Icon.SwitcherFilled,SwitcherOutlined:Icon.SwitcherOutlined,SwitcherTwoTone:Icon.SwitcherTwoTone,SyncOutlined:Icon.SyncOutlined,TableOutlined:Icon.TableOutlined,TabletFilled:Icon.TabletFilled,TabletOutlined:Icon.TabletOutlined,TabletTwoTone:Icon.TabletTwoTone,TagFilled:Icon.TagFilled,TagOutlined:Icon.TagOutlined,TagTwoTone:Icon.TagTwoTone,TagsFilled:Icon.TagsFilled,TagsOutlined:Icon.TagsOutlined,TagsTwoTone:Icon.TagsTwoTone,TaobaoCircleFilled:Icon.TaobaoCircleFilled,TaobaoCircleOutlined:Icon.TaobaoCircleOutlined,TaobaoOutlined:Icon.TaobaoOutlined,TaobaoSquareFilled:Icon.TaobaoSquareFilled,TeamOutlined:Icon.TeamOutlined,ThunderboltFilled:Icon.ThunderboltFilled,ThunderboltOutlined:Icon.ThunderboltOutlined,ThunderboltTwoTone:Icon.ThunderboltTwoTone,ToTopOutlined:Icon.ToTopOutlined,ToolFilled:Icon.ToolFilled,ToolOutlined:Icon.ToolOutlined,ToolTwoTone:Icon.ToolTwoTone,TrademarkCircleFilled:Icon.TrademarkCircleFilled,TrademarkCircleOutlined:Icon.TrademarkCircleOutlined,TrademarkCircleTwoTone:Icon.TrademarkCircleTwoTone,TrademarkOutlined:Icon.TrademarkOutlined,TransactionOutlined:Icon.TransactionOutlined,TranslationOutlined:Icon.TranslationOutlined,TrophyFilled:Icon.TrophyFilled,TrophyOutlined:Icon.TrophyOutlined,TrophyTwoTone:Icon.TrophyTwoTone,TwitterCircleFilled:Icon.TwitterCircleFilled,TwitterOutlined:Icon.TwitterOutlined,TwitterSquareFilled:Icon.TwitterSquareFilled,UnderlineOutlined:Icon.UnderlineOutlined,UndoOutlined:Icon.UndoOutlined,UngroupOutlined:Icon.UngroupOutlined,UnlockFilled:Icon.UnlockFilled,UnlockOutlined:Icon.UnlockOutlined,UnlockTwoTone:Icon.UnlockTwoTone,UnorderedListOutlined:Icon.UnorderedListOutlined,UpCircleFilled:Icon.UpCircleFilled,UpCircleOutlined:Icon.UpCircleOutlined,UpCircleTwoTone:Icon.UpCircleTwoTone,UpOutlined:Icon.UpOutlined,UpSquareFilled:Icon.UpSquareFilled,UpSquareOutlined:Icon.UpSquareOutlined,UpSquareTwoTone:Icon.UpSquareTwoTone,UploadOutlined:Icon.UploadOutlined,UsbFilled:Icon.UsbFilled,UsbOutlined:Icon.UsbOutlined,UsbTwoTone:Icon.UsbTwoTone,UserAddOutlined:Icon.UserAddOutlined,UserDeleteOutlined:Icon.UserDeleteOutlined,UserOutlined:Icon.UserOutlined,UserSwitchOutlined:Icon.UserSwitchOutlined,UsergroupAddOutlined:Icon.UsergroupAddOutlined,UsergroupDeleteOutlined:Icon.UsergroupDeleteOutlined,VerifiedOutlined:Icon.VerifiedOutlined,VerticalAlignBottomOutlined:Icon.VerticalAlignBottomOutlined,VerticalAlignMiddleOutlined:Icon.VerticalAlignMiddleOutlined,VerticalAlignTopOutlined:Icon.VerticalAlignTopOutlined,VerticalLeftOutlined:Icon.VerticalLeftOutlined,VerticalRightOutlined:Icon.VerticalRightOutlined,VideoCameraAddOutlined:Icon.VideoCameraAddOutlined,VideoCameraFilled:Icon.VideoCameraFilled,VideoCameraOutlined:Icon.VideoCameraOutlined,VideoCameraTwoTone:Icon.VideoCameraTwoTone,WalletFilled:Icon.WalletFilled,WalletOutlined:Icon.WalletOutlined,WalletTwoTone:Icon.WalletTwoTone,WarningFilled:Icon.WarningFilled,WarningOutlined:Icon.WarningOutlined,WarningTwoTone:Icon.WarningTwoTone,WechatFilled:Icon.WechatFilled,WechatOutlined:Icon.WechatOutlined,WeiboCircleFilled:Icon.WeiboCircleFilled,WeiboCircleOutlined:Icon.WeiboCircleOutlined,WeiboOutlined:Icon.WeiboOutlined,WeiboSquareFilled:Icon.WeiboSquareFilled,WeiboSquareOutlined:Icon.WeiboSquareOutlined,WhatsAppOutlined:Icon.WhatsAppOutlined,WifiOutlined:Icon.WifiOutlined,WindowsFilled:Icon.WindowsFilled,WindowsOutlined:Icon.WindowsOutlined,WomanOutlined:Icon.WomanOutlined,YahooFilled:Icon.YahooFilled,YahooOutlined:Icon.YahooOutlined,YoutubeFilled:Icon.YoutubeFilled,YoutubeOutlined:Icon.YoutubeOutlined,YuqueFilled:Icon.YuqueFilled,YuqueOutlined:Icon.YuqueOutlined,ZhihuCircleFilled:Icon.ZhihuCircleFilled,ZhihuOutlined:Icon.ZhihuOutlined,ZhihuSquareFilled:Icon.ZhihuSquareFilled,ZoomInOutlined:Icon.ZoomInOutlined,ZoomOutOutlined:Icon.ZoomOutOutlined},TablerIcons={Icon2fa:icons.Icon2fa,Icon3dCubeSphereOff:icons.Icon3dCubeSphereOff,Icon3dCubeSphere:icons.Icon3dCubeSphere,Icon3dRotate:icons.Icon3dRotate,IconAB2:icons.IconAB2,IconABOff:icons.IconABOff,IconAB:icons.IconAB,IconAbacusOff:icons.IconAbacusOff,IconAbacus:icons.IconAbacus,IconAccessPointOff:icons.IconAccessPointOff,IconAccessPoint:icons.IconAccessPoint,IconAccessibleOff:icons.IconAccessibleOff,IconAccessible:icons.IconAccessible,IconActivityHeartbeat:icons.IconActivityHeartbeat,IconActivity:icons.IconActivity,IconAd2:icons.IconAd2,IconAdOff:icons.IconAdOff,IconAd:icons.IconAd,IconAddressBookOff:icons.IconAddressBookOff,IconAddressBook:icons.IconAddressBook,IconAdjustmentsAlt:icons.IconAdjustmentsAlt,IconAdjustmentsHorizontal:icons.IconAdjustmentsHorizontal,IconAdjustmentsOff:icons.IconAdjustmentsOff,IconAdjustments:icons.IconAdjustments,IconAerialLift:icons.IconAerialLift,IconAffiliate:icons.IconAffiliate,IconAirConditioning:icons.IconAirConditioning,IconAlarmOff:icons.IconAlarmOff,IconAlarm:icons.IconAlarm,IconAlbumOff:icons.IconAlbumOff,IconAlbum:icons.IconAlbum,IconAlertCircle:icons.IconAlertCircle,IconAlertOctagon:icons.IconAlertOctagon,IconAlertTriangle:icons.IconAlertTriangle,IconAlien:icons.IconAlien,IconAlignCenter:icons.IconAlignCenter,IconAlignJustified:icons.IconAlignJustified,IconAlignLeft:icons.IconAlignLeft,IconAlignRight:icons.IconAlignRight,IconAlphabetCyrillic:icons.IconAlphabetCyrillic,IconAlphabetGreek:icons.IconAlphabetGreek,IconAlphabetLatin:icons.IconAlphabetLatin,IconAmbulance:icons.IconAmbulance,IconAmpersand:icons.IconAmpersand,IconAnalyzeOff:icons.IconAnalyzeOff,IconAnalyze:icons.IconAnalyze,IconAnchorOff:icons.IconAnchorOff,IconAnchor:icons.IconAnchor,IconAngle:icons.IconAngle,IconAnkh:icons.IconAnkh,IconAntennaBars1:icons.IconAntennaBars1,IconAntennaBars2:icons.IconAntennaBars2,IconAntennaBars3:icons.IconAntennaBars3,IconAntennaBars4:icons.IconAntennaBars4,IconAntennaBars5:icons.IconAntennaBars5,IconAntennaBarsOff:icons.IconAntennaBarsOff,IconAntennaOff:icons.IconAntennaOff,IconAntenna:icons.IconAntenna,IconApertureOff:icons.IconApertureOff,IconAperture:icons.IconAperture,IconApiAppOff:icons.IconApiAppOff,IconApiApp:icons.IconApiApp,IconApiOff:icons.IconApiOff,IconApi:icons.IconApi,IconAppWindow:icons.IconAppWindow,IconApple:icons.IconApple,IconAppsOff:icons.IconAppsOff,IconApps:icons.IconApps,IconArchiveOff:icons.IconArchiveOff,IconArchive:icons.IconArchive,IconArmchair2Off:icons.IconArmchair2Off,IconArmchair2:icons.IconArmchair2,IconArmchairOff:icons.IconArmchairOff,IconArmchair:icons.IconArmchair,IconArrowAutofitContent:icons.IconArrowAutofitContent,IconArrowAutofitDown:icons.IconArrowAutofitDown,IconArrowAutofitHeight:icons.IconArrowAutofitHeight,IconArrowAutofitLeft:icons.IconArrowAutofitLeft,IconArrowAutofitRight:icons.IconArrowAutofitRight,IconArrowAutofitUp:icons.IconArrowAutofitUp,IconArrowAutofitWidth:icons.IconArrowAutofitWidth,IconArrowBackUp:icons.IconArrowBackUp,IconArrowBack:icons.IconArrowBack,IconArrowBarDown:icons.IconArrowBarDown,IconArrowBarLeft:icons.IconArrowBarLeft,IconArrowBarRight:icons.IconArrowBarRight,IconArrowBarToDown:icons.IconArrowBarToDown,IconArrowBarToLeft:icons.IconArrowBarToLeft,IconArrowBarToRight:icons.IconArrowBarToRight,IconArrowBarToUp:icons.IconArrowBarToUp,IconArrowBarUp:icons.IconArrowBarUp,IconArrowBearLeft2:icons.IconArrowBearLeft2,IconArrowBearLeft:icons.IconArrowBearLeft,IconArrowBearRight2:icons.IconArrowBearRight2,IconArrowBearRight:icons.IconArrowBearRight,IconArrowBigDownLine:icons.IconArrowBigDownLine,IconArrowBigDownLines:icons.IconArrowBigDownLines,IconArrowBigDown:icons.IconArrowBigDown,IconArrowBigLeftLine:icons.IconArrowBigLeftLine,IconArrowBigLeftLines:icons.IconArrowBigLeftLines,IconArrowBigLeft:icons.IconArrowBigLeft,IconArrowBigRightLine:icons.IconArrowBigRightLine,IconArrowBigRightLines:icons.IconArrowBigRightLines,IconArrowBigRight:icons.IconArrowBigRight,IconArrowBigTop:icons.IconArrowBigTop,IconArrowBigUpLine:icons.IconArrowBigUpLine,IconArrowBigUpLines:icons.IconArrowBigUpLines,IconArrowBottomBar:icons.IconArrowBottomBar,IconArrowBottomCircle:icons.IconArrowBottomCircle,IconArrowBottomSquare:icons.IconArrowBottomSquare,IconArrowBottomTail:icons.IconArrowBottomTail,IconArrowBounce:icons.IconArrowBounce,IconArrowCurveLeft:icons.IconArrowCurveLeft,IconArrowCurveRight:icons.IconArrowCurveRight,IconArrowDownCircle:icons.IconArrowDownCircle,IconArrowDownLeftCircle:icons.IconArrowDownLeftCircle,IconArrowDownLeft:icons.IconArrowDownLeft,IconArrowDownRightCircle:icons.IconArrowDownRightCircle,IconArrowDownRight:icons.IconArrowDownRight,IconArrowDown:icons.IconArrowDown,IconArrowFork:icons.IconArrowFork,IconArrowForwardUp:icons.IconArrowForwardUp,IconArrowForward:icons.IconArrowForward,IconArrowGuide:icons.IconArrowGuide,IconArrowLeftBar:icons.IconArrowLeftBar,IconArrowLeftCircle:icons.IconArrowLeftCircle,IconArrowLeftRight:icons.IconArrowLeftRight,IconArrowLeftSquare:icons.IconArrowLeftSquare,IconArrowLeftTail:icons.IconArrowLeftTail,IconArrowLeft:icons.IconArrowLeft,IconArrowLoopLeft2:icons.IconArrowLoopLeft2,IconArrowLoopLeft:icons.IconArrowLoopLeft,IconArrowLoopRight2:icons.IconArrowLoopRight2,IconArrowLoopRight:icons.IconArrowLoopRight,IconArrowMergeBoth:icons.IconArrowMergeBoth,IconArrowMergeLeft:icons.IconArrowMergeLeft,IconArrowMergeRight:icons.IconArrowMergeRight,IconArrowMerge:icons.IconArrowMerge,IconArrowMoveDown:icons.IconArrowMoveDown,IconArrowMoveLeft:icons.IconArrowMoveLeft,IconArrowMoveRight:icons.IconArrowMoveRight,IconArrowMoveUp:icons.IconArrowMoveUp,IconArrowNarrowDown:icons.IconArrowNarrowDown,IconArrowNarrowLeft:icons.IconArrowNarrowLeft,IconArrowNarrowRight:icons.IconArrowNarrowRight,IconArrowNarrowUp:icons.IconArrowNarrowUp,IconArrowRampLeft2:icons.IconArrowRampLeft2,IconArrowRampLeft3:icons.IconArrowRampLeft3,IconArrowRampLeft:icons.IconArrowRampLeft,IconArrowRampRight2:icons.IconArrowRampRight2,IconArrowRampRight3:icons.IconArrowRampRight3,IconArrowRampRight:icons.IconArrowRampRight,IconArrowRightBar:icons.IconArrowRightBar,IconArrowRightCircle:icons.IconArrowRightCircle,IconArrowRightSquare:icons.IconArrowRightSquare,IconArrowRightTail:icons.IconArrowRightTail,IconArrowRight:icons.IconArrowRight,IconArrowRotaryFirstLeft:icons.IconArrowRotaryFirstLeft,IconArrowRotaryFirstRight:icons.IconArrowRotaryFirstRight,IconArrowRotaryLastLeft:icons.IconArrowRotaryLastLeft,IconArrowRotaryLastRight:icons.IconArrowRotaryLastRight,IconArrowRotaryLeft:icons.IconArrowRotaryLeft,IconArrowRotaryRight:icons.IconArrowRotaryRight,IconArrowRotaryStraight:icons.IconArrowRotaryStraight,IconArrowRoundaboutLeft:icons.IconArrowRoundaboutLeft,IconArrowRoundaboutRight:icons.IconArrowRoundaboutRight,IconArrowSharpTurnLeft:icons.IconArrowSharpTurnLeft,IconArrowSharpTurnRight:icons.IconArrowSharpTurnRight,IconArrowTopBar:icons.IconArrowTopBar,IconArrowTopCircle:icons.IconArrowTopCircle,IconArrowTopSquare:icons.IconArrowTopSquare,IconArrowTopTail:icons.IconArrowTopTail,IconArrowUpCircle:icons.IconArrowUpCircle,IconArrowUpLeftCircle:icons.IconArrowUpLeftCircle,IconArrowUpLeft:icons.IconArrowUpLeft,IconArrowUpRightCircle:icons.IconArrowUpRightCircle,IconArrowUpRight:icons.IconArrowUpRight,IconArrowUp:icons.IconArrowUp,IconArrowWaveLeftDown:icons.IconArrowWaveLeftDown,IconArrowWaveLeftUp:icons.IconArrowWaveLeftUp,IconArrowWaveRightDown:icons.IconArrowWaveRightDown,IconArrowWaveRightUp:icons.IconArrowWaveRightUp,IconArrowsCross:icons.IconArrowsCross,IconArrowsDiagonal2:icons.IconArrowsDiagonal2,IconArrowsDiagonalMinimize2:icons.IconArrowsDiagonalMinimize2,IconArrowsDiagonalMinimize:icons.IconArrowsDiagonalMinimize,IconArrowsDiagonal:icons.IconArrowsDiagonal,IconArrowsDiff:icons.IconArrowsDiff,IconArrowsDoubleNeSw:icons.IconArrowsDoubleNeSw,IconArrowsDoubleNwSe:icons.IconArrowsDoubleNwSe,IconArrowsDoubleSeNw:icons.IconArrowsDoubleSeNw,IconArrowsDoubleSwNe:icons.IconArrowsDoubleSwNe,IconArrowsDownUp:icons.IconArrowsDownUp,IconArrowsDown:icons.IconArrowsDown,IconArrowsExchange2:icons.IconArrowsExchange2,IconArrowsExchange:icons.IconArrowsExchange,IconArrowsHorizontal:icons.IconArrowsHorizontal,IconArrowsJoin2:icons.IconArrowsJoin2,IconArrowsJoin:icons.IconArrowsJoin,IconArrowsLeftDown:icons.IconArrowsLeftDown,IconArrowsLeftRight:icons.IconArrowsLeftRight,IconArrowsLeft:icons.IconArrowsLeft,IconArrowsMaximize:icons.IconArrowsMaximize,IconArrowsMinimize:icons.IconArrowsMinimize,IconArrowsMoveHorizontal:icons.IconArrowsMoveHorizontal,IconArrowsMoveVertical:icons.IconArrowsMoveVertical,IconArrowsMove:icons.IconArrowsMove,IconArrowsRandom:icons.IconArrowsRandom,IconArrowsRightDown:icons.IconArrowsRightDown,IconArrowsRightLeft:icons.IconArrowsRightLeft,IconArrowsRight:icons.IconArrowsRight,IconArrowsShuffle2:icons.IconArrowsShuffle2,IconArrowsShuffle:icons.IconArrowsShuffle,IconArrowsSort:icons.IconArrowsSort,IconArrowsSplit2:icons.IconArrowsSplit2,IconArrowsSplit:icons.IconArrowsSplit,IconArrowsTransferDown:icons.IconArrowsTransferDown,IconArrowsTransferUp:icons.IconArrowsTransferUp,IconArrowsUpDown:icons.IconArrowsUpDown,IconArrowsUpLeft:icons.IconArrowsUpLeft,IconArrowsUpRight:icons.IconArrowsUpRight,IconArrowsUp:icons.IconArrowsUp,IconArrowsVertical:icons.IconArrowsVertical,IconArtboardOff:icons.IconArtboardOff,IconArtboard:icons.IconArtboard,IconArticleOff:icons.IconArticleOff,IconArticle:icons.IconArticle,IconAspectRatioOff:icons.IconAspectRatioOff,IconAspectRatio:icons.IconAspectRatio,IconAssemblyOff:icons.IconAssemblyOff,IconAssembly:icons.IconAssembly,IconAsset:icons.IconAsset,IconAsteriskSimple:icons.IconAsteriskSimple,IconAsterisk:icons.IconAsterisk,IconAtOff:icons.IconAtOff,IconAt:icons.IconAt,IconAtom2:icons.IconAtom2,IconAtomOff:icons.IconAtomOff,IconAtom:icons.IconAtom,IconAugmentedReality2:icons.IconAugmentedReality2,IconAugmentedRealityOff:icons.IconAugmentedRealityOff,IconAugmentedReality:icons.IconAugmentedReality,IconAwardOff:icons.IconAwardOff,IconAward:icons.IconAward,IconAxe:icons.IconAxe,IconAxisX:icons.IconAxisX,IconAxisY:icons.IconAxisY,IconBabyCarriage:icons.IconBabyCarriage,IconBackhoe:icons.IconBackhoe,IconBackpackOff:icons.IconBackpackOff,IconBackpack:icons.IconBackpack,IconBackspace:icons.IconBackspace,IconBadgeOff:icons.IconBadgeOff,IconBadge:icons.IconBadge,IconBadgesOff:icons.IconBadgesOff,IconBadges:icons.IconBadges,IconBaguette:icons.IconBaguette,IconBallAmericanFootballOff:icons.IconBallAmericanFootballOff,IconBallAmericanFootball:icons.IconBallAmericanFootball,IconBallBaseball:icons.IconBallBaseball,IconBallBasketball:icons.IconBallBasketball,IconBallBowling:icons.IconBallBowling,IconBallFootballOff:icons.IconBallFootballOff,IconBallFootball:icons.IconBallFootball,IconBallTennis:icons.IconBallTennis,IconBallVolleyball:icons.IconBallVolleyball,IconBallonOff:icons.IconBallonOff,IconBallon:icons.IconBallon,IconBallpenOff:icons.IconBallpenOff,IconBallpen:icons.IconBallpen,IconBan:icons.IconBan,IconBandageOff:icons.IconBandageOff,IconBandage:icons.IconBandage,IconBarbellOff:icons.IconBarbellOff,IconBarbell:icons.IconBarbell,IconBarcodeOff:icons.IconBarcodeOff,IconBarcode:icons.IconBarcode,IconBarrelOff:icons.IconBarrelOff,IconBarrel:icons.IconBarrel,IconBarrierBlockOff:icons.IconBarrierBlockOff,IconBarrierBlock:icons.IconBarrierBlock,IconBaseline:icons.IconBaseline,IconBasketOff:icons.IconBasketOff,IconBasket:icons.IconBasket,IconBat:icons.IconBat,IconBathOff:icons.IconBathOff,IconBath:icons.IconBath,IconBattery1:icons.IconBattery1,IconBattery2:icons.IconBattery2,IconBattery3:icons.IconBattery3,IconBattery4:icons.IconBattery4,IconBatteryAutomotive:icons.IconBatteryAutomotive,IconBatteryCharging2:icons.IconBatteryCharging2,IconBatteryCharging:icons.IconBatteryCharging,IconBatteryEco:icons.IconBatteryEco,IconBatteryOff:icons.IconBatteryOff,IconBattery:icons.IconBattery,IconBeachOff:icons.IconBeachOff,IconBeach:icons.IconBeach,IconBedOff:icons.IconBedOff,IconBed:icons.IconBed,IconBeerOff:icons.IconBeerOff,IconBeer:icons.IconBeer,IconBellMinus:icons.IconBellMinus,IconBellOff:icons.IconBellOff,IconBellPlus:icons.IconBellPlus,IconBellRinging2:icons.IconBellRinging2,IconBellRinging:icons.IconBellRinging,IconBellSchool:icons.IconBellSchool,IconBellX:icons.IconBellX,IconBellZ:icons.IconBellZ,IconBell:icons.IconBell,IconBible:icons.IconBible,IconBikeOff:icons.IconBikeOff,IconBike:icons.IconBike,IconBinaryOff:icons.IconBinaryOff,IconBinary:icons.IconBinary,IconBiohazardOff:icons.IconBiohazardOff,IconBiohazard:icons.IconBiohazard,IconBleachChlorine:icons.IconBleachChlorine,IconBleachNoChlorine:icons.IconBleachNoChlorine,IconBleachOff:icons.IconBleachOff,IconBleach:icons.IconBleach,IconBlockquote:icons.IconBlockquote,IconBluetoothConnected:icons.IconBluetoothConnected,IconBluetoothOff:icons.IconBluetoothOff,IconBluetoothX:icons.IconBluetoothX,IconBluetooth:icons.IconBluetooth,IconBlurOff:icons.IconBlurOff,IconBlur:icons.IconBlur,IconBmp:icons.IconBmp,IconBoldOff:icons.IconBoldOff,IconBold:icons.IconBold,IconBoltOff:icons.IconBoltOff,IconBolt:icons.IconBolt,IconBoneOff:icons.IconBoneOff,IconBone:icons.IconBone,IconBongOff:icons.IconBongOff,IconBong:icons.IconBong,IconBook2:icons.IconBook2,IconBookDownload:icons.IconBookDownload,IconBookOff:icons.IconBookOff,IconBookUpload:icons.IconBookUpload,IconBook:icons.IconBook,IconBookmarkOff:icons.IconBookmarkOff,IconBookmark:icons.IconBookmark,IconBookmarksOff:icons.IconBookmarksOff,IconBookmarks:icons.IconBookmarks,IconBooksOff:icons.IconBooksOff,IconBooks:icons.IconBooks,IconBorderAll:icons.IconBorderAll,IconBorderBottom:icons.IconBorderBottom,IconBorderHorizontal:icons.IconBorderHorizontal,IconBorderInner:icons.IconBorderInner,IconBorderLeft:icons.IconBorderLeft,IconBorderNone:icons.IconBorderNone,IconBorderOuter:icons.IconBorderOuter,IconBorderRadius:icons.IconBorderRadius,IconBorderRight:icons.IconBorderRight,IconBorderStyle2:icons.IconBorderStyle2,IconBorderStyle:icons.IconBorderStyle,IconBorderTop:icons.IconBorderTop,IconBorderVertical:icons.IconBorderVertical,IconBottleOff:icons.IconBottleOff,IconBottle:icons.IconBottle,IconBow:icons.IconBow,IconBoxAlignBottomLeft:icons.IconBoxAlignBottomLeft,IconBoxAlignBottomRight:icons.IconBoxAlignBottomRight,IconBoxAlignBottom:icons.IconBoxAlignBottom,IconBoxAlignLeft:icons.IconBoxAlignLeft,IconBoxAlignRight:icons.IconBoxAlignRight,IconBoxAlignTopLeft:icons.IconBoxAlignTopLeft,IconBoxAlignTopRight:icons.IconBoxAlignTopRight,IconBoxAlignTop:icons.IconBoxAlignTop,IconBoxMargin:icons.IconBoxMargin,IconBoxModel2Off:icons.IconBoxModel2Off,IconBoxModel2:icons.IconBoxModel2,IconBoxModelOff:icons.IconBoxModelOff,IconBoxModel:icons.IconBoxModel,IconBoxMultiple0:icons.IconBoxMultiple0,IconBoxMultiple1:icons.IconBoxMultiple1,IconBoxMultiple2:icons.IconBoxMultiple2,IconBoxMultiple3:icons.IconBoxMultiple3,IconBoxMultiple4:icons.IconBoxMultiple4,IconBoxMultiple5:icons.IconBoxMultiple5,IconBoxMultiple6:icons.IconBoxMultiple6,IconBoxMultiple7:icons.IconBoxMultiple7,IconBoxMultiple8:icons.IconBoxMultiple8,IconBoxMultiple9:icons.IconBoxMultiple9,IconBoxMultiple:icons.IconBoxMultiple,IconBoxOff:icons.IconBoxOff,IconBoxPadding:icons.IconBoxPadding,IconBox:icons.IconBox,IconBracesOff:icons.IconBracesOff,IconBraces:icons.IconBraces,IconBracketsContainEnd:icons.IconBracketsContainEnd,IconBracketsContainStart:icons.IconBracketsContainStart,IconBracketsContain:icons.IconBracketsContain,IconBracketsOff:icons.IconBracketsOff,IconBrackets:icons.IconBrackets,IconBrand4chan:icons.IconBrand4chan,IconBrandAbstract:icons.IconBrandAbstract,IconBrandAdobe:icons.IconBrandAdobe,IconBrandAdonisJs:icons.IconBrandAdonisJs,IconBrandAirbnb:icons.IconBrandAirbnb,IconBrandAirtable:icons.IconBrandAirtable,IconBrandAlbolia:icons.IconBrandAlbolia,IconBrandAlpineJs:icons.IconBrandAlpineJs,IconBrandAmazon:icons.IconBrandAmazon,IconBrandAmongus:icons.IconBrandAmongus,IconBrandAndroid:icons.IconBrandAndroid,IconBrandAngular:icons.IconBrandAngular,IconBrandAppgallery:icons.IconBrandAppgallery,IconBrandAppleArcade:icons.IconBrandAppleArcade,IconBrandApplePodcast:icons.IconBrandApplePodcast,IconBrandApple:icons.IconBrandApple,IconBrandAppstore:icons.IconBrandAppstore,IconBrandAsana:icons.IconBrandAsana,IconBrandBackbone:icons.IconBrandBackbone,IconBrandBadoo:icons.IconBrandBadoo,IconBrandBandcamp:icons.IconBrandBandcamp,IconBrandBeats:icons.IconBrandBeats,IconBrandBehance:icons.IconBrandBehance,IconBrandBing:icons.IconBrandBing,IconBrandBitbucket:icons.IconBrandBitbucket,IconBrandBlender:icons.IconBrandBlender,IconBrandBlogger:icons.IconBrandBlogger,IconBrandBooking:icons.IconBrandBooking,IconBrandBootstrap:icons.IconBrandBootstrap,IconBrandBulma:icons.IconBrandBulma,IconBrandCampaignmonitor:icons.IconBrandCampaignmonitor,IconBrandCarbon:icons.IconBrandCarbon,IconBrandCashapp:icons.IconBrandCashapp,IconBrandChrome:icons.IconBrandChrome,IconBrandCodecov:icons.IconBrandCodecov,IconBrandCodepen:icons.IconBrandCodepen,IconBrandCodesandbox:icons.IconBrandCodesandbox,IconBrandCoinbase:icons.IconBrandCoinbase,IconBrandComedyCentral:icons.IconBrandComedyCentral,IconBrandCouchsurfing:icons.IconBrandCouchsurfing,IconBrandCss3:icons.IconBrandCss3,IconBrandCucumber:icons.IconBrandCucumber,IconBrandCypress:icons.IconBrandCypress,IconBrandD3:icons.IconBrandD3,IconBrandDcos:icons.IconBrandDcos,IconBrandDebian:icons.IconBrandDebian,IconBrandDeno:icons.IconBrandDeno,IconBrandDeviantart:icons.IconBrandDeviantart,IconBrandDiscord:icons.IconBrandDiscord,IconBrandDisney:icons.IconBrandDisney,IconBrandDisqus:icons.IconBrandDisqus,IconBrandDjango:icons.IconBrandDjango,IconBrandDocker:icons.IconBrandDocker,IconBrandDoctrine:icons.IconBrandDoctrine,IconBrandDribbble:icons.IconBrandDribbble,IconBrandDrupal:icons.IconBrandDrupal,IconBrandEdge:icons.IconBrandEdge,IconBrandEmber:icons.IconBrandEmber,IconBrandEnvato:icons.IconBrandEnvato,IconBrandFacebook:icons.IconBrandFacebook,IconBrandFigma:icons.IconBrandFigma,IconBrandFinder:icons.IconBrandFinder,IconBrandFirebase:icons.IconBrandFirebase,IconBrandFirefox:icons.IconBrandFirefox,IconBrandFlickr:icons.IconBrandFlickr,IconBrandFlipboard:icons.IconBrandFlipboard,IconBrandFlutter:icons.IconBrandFlutter,IconBrandFortnite:icons.IconBrandFortnite,IconBrandFoursquare:icons.IconBrandFoursquare,IconBrandFramer:icons.IconBrandFramer,IconBrandGatsby:icons.IconBrandGatsby,IconBrandGit:icons.IconBrandGit,IconBrandGithub:icons.IconBrandGithub,IconBrandGitlab:icons.IconBrandGitlab,IconBrandGmail:icons.IconBrandGmail,IconBrandGoogleAnalytics:icons.IconBrandGoogleAnalytics,IconBrandGoogleDrive:icons.IconBrandGoogleDrive,IconBrandGoogleFit:icons.IconBrandGoogleFit,IconBrandGoogleOne:icons.IconBrandGoogleOne,IconBrandGooglePhotos:icons.IconBrandGooglePhotos,IconBrandGooglePlay:icons.IconBrandGooglePlay,IconBrandGoogle:icons.IconBrandGoogle,IconBrandGrammarly:icons.IconBrandGrammarly,IconBrandGraphql:icons.IconBrandGraphql,IconBrandGravatar:icons.IconBrandGravatar,IconBrandGrindr:icons.IconBrandGrindr,IconBrandHeadlessui:icons.IconBrandHeadlessui,IconBrandHipchat:icons.IconBrandHipchat,IconBrandHtml5:icons.IconBrandHtml5,IconBrandInertia:icons.IconBrandInertia,IconBrandInstagram:icons.IconBrandInstagram,IconBrandIntercom:icons.IconBrandIntercom,IconBrandJavascript:icons.IconBrandJavascript,IconBrandKickstarter:icons.IconBrandKickstarter,IconBrandKotlin:icons.IconBrandKotlin,IconBrandLaravel:icons.IconBrandLaravel,IconBrandLastfm:icons.IconBrandLastfm,IconBrandLinkedin:icons.IconBrandLinkedin,IconBrandLinktree:icons.IconBrandLinktree,IconBrandLoom:icons.IconBrandLoom,IconBrandMailgun:icons.IconBrandMailgun,IconBrandMantine:icons.IconBrandMantine,IconBrandMastercard:icons.IconBrandMastercard,IconBrandMastodon:icons.IconBrandMastodon,IconBrandMcdonalds:icons.IconBrandMcdonalds,IconBrandMedium:icons.IconBrandMedium,IconBrandMercedes:icons.IconBrandMercedes,IconBrandMessenger:icons.IconBrandMessenger,IconBrandMeta:icons.IconBrandMeta,IconBrandMixpanel:icons.IconBrandMixpanel,IconBrandMonday:icons.IconBrandMonday,IconBrandNetbeans:icons.IconBrandNetbeans,IconBrandNetflix:icons.IconBrandNetflix,IconBrandNextjs:icons.IconBrandNextjs,IconBrandNordVpn:icons.IconBrandNordVpn,IconBrandNotion:icons.IconBrandNotion,IconBrandNuxt:icons.IconBrandNuxt,IconBrandNytimes:icons.IconBrandNytimes,IconBrandOffice:icons.IconBrandOffice,IconBrandOkRu:icons.IconBrandOkRu,IconBrandOpenSource:icons.IconBrandOpenSource,IconBrandOpenvpn:icons.IconBrandOpenvpn,IconBrandOpera:icons.IconBrandOpera,IconBrandPagekit:icons.IconBrandPagekit,IconBrandPatreon:icons.IconBrandPatreon,IconBrandPaypal:icons.IconBrandPaypal,IconBrandPeanut:icons.IconBrandPeanut,IconBrandPepsi:icons.IconBrandPepsi,IconBrandPhp:icons.IconBrandPhp,IconBrandPinterest:icons.IconBrandPinterest,IconBrandPocket:icons.IconBrandPocket,IconBrandPolymer:icons.IconBrandPolymer,IconBrandPrisma:icons.IconBrandPrisma,IconBrandProducthunt:icons.IconBrandProducthunt,IconBrandPushbullet:icons.IconBrandPushbullet,IconBrandPushover:icons.IconBrandPushover,IconBrandPython:icons.IconBrandPython,IconBrandReactNative:icons.IconBrandReactNative,IconBrandReact:icons.IconBrandReact,IconBrandReason:icons.IconBrandReason,IconBrandReddit:icons.IconBrandReddit,IconBrandRedhat:icons.IconBrandRedhat,IconBrandRedux:icons.IconBrandRedux,IconBrandSafari:icons.IconBrandSafari,IconBrandSass:icons.IconBrandSass,IconBrandSentry:icons.IconBrandSentry,IconBrandShazam:icons.IconBrandShazam,IconBrandShopee:icons.IconBrandShopee,IconBrandSketch:icons.IconBrandSketch,IconBrandSkype:icons.IconBrandSkype,IconBrandSlack:icons.IconBrandSlack,IconBrandSnapchat:icons.IconBrandSnapchat,IconBrandSnapseed:icons.IconBrandSnapseed,IconBrandSocketIo:icons.IconBrandSocketIo,IconBrandSoundcloud:icons.IconBrandSoundcloud,IconBrandSpotify:icons.IconBrandSpotify,IconBrandStackoverflow:icons.IconBrandStackoverflow,IconBrandSteam:icons.IconBrandSteam,IconBrandStorybook:icons.IconBrandStorybook,IconBrandStrava:icons.IconBrandStrava,IconBrandStripe:icons.IconBrandStripe,IconBrandSublimeText:icons.IconBrandSublimeText,IconBrandSupernova:icons.IconBrandSupernova,IconBrandSurfshark:icons.IconBrandSurfshark,IconBrandSvelte:icons.IconBrandSvelte,IconBrandTabler:icons.IconBrandTabler,IconBrandTailwind:icons.IconBrandTailwind,IconBrandTelegram:icons.IconBrandTelegram,IconBrandTidal:icons.IconBrandTidal,IconBrandTiktok:icons.IconBrandTiktok,IconBrandTinder:icons.IconBrandTinder,IconBrandToyota:icons.IconBrandToyota,IconBrandTrello:icons.IconBrandTrello,IconBrandTripadvisor:icons.IconBrandTripadvisor,IconBrandTumblr:icons.IconBrandTumblr,IconBrandTwitch:icons.IconBrandTwitch,IconBrandTwitter:icons.IconBrandTwitter,IconBrandUber:icons.IconBrandUber,IconBrandUbuntu:icons.IconBrandUbuntu,IconBrandUnity:icons.IconBrandUnity,IconBrandUnsplash:icons.IconBrandUnsplash,IconBrandUpwork:icons.IconBrandUpwork,IconBrandValorant:icons.IconBrandValorant,IconBrandVercel:icons.IconBrandVercel,IconBrandVimeo:icons.IconBrandVimeo,IconBrandVinted:icons.IconBrandVinted,IconBrandVisa:icons.IconBrandVisa,IconBrandVisualStudio:icons.IconBrandVisualStudio,IconBrandVivaldi:icons.IconBrandVivaldi,IconBrandVk:icons.IconBrandVk,IconBrandVsco:icons.IconBrandVsco,IconBrandVscode:icons.IconBrandVscode,IconBrandVue:icons.IconBrandVue,IconBrandWalmart:icons.IconBrandWalmart,IconBrandWebflow:icons.IconBrandWebflow,IconBrandWhatsapp:icons.IconBrandWhatsapp,IconBrandWindows:icons.IconBrandWindows,IconBrandWish:icons.IconBrandWish,IconBrandWix:icons.IconBrandWix,IconBrandWordpress:icons.IconBrandWordpress,IconBrandXbox:icons.IconBrandXbox,IconBrandXing:icons.IconBrandXing,IconBrandYahoo:icons.IconBrandYahoo,IconBrandYatse:icons.IconBrandYatse,IconBrandYcombinator:icons.IconBrandYcombinator,IconBrandYoutubeKids:icons.IconBrandYoutubeKids,IconBrandYoutube:icons.IconBrandYoutube,IconBrandZalando:icons.IconBrandZalando,IconBrandZapier:icons.IconBrandZapier,IconBrandZeit:icons.IconBrandZeit,IconBrandZoom:icons.IconBrandZoom,IconBrandZwift:icons.IconBrandZwift,IconBreadOff:icons.IconBreadOff,IconBread:icons.IconBread,IconBriefcaseOff:icons.IconBriefcaseOff,IconBriefcase:icons.IconBriefcase,IconBrightness2:icons.IconBrightness2,IconBrightnessDown:icons.IconBrightnessDown,IconBrightnessHalf:icons.IconBrightnessHalf,IconBrightnessOff:icons.IconBrightnessOff,IconBrightnessUp:icons.IconBrightnessUp,IconBrightness:icons.IconBrightness,IconBroadcastOff:icons.IconBroadcastOff,IconBroadcast:icons.IconBroadcast,IconBrowserCheck:icons.IconBrowserCheck,IconBrowserOff:icons.IconBrowserOff,IconBrowserPlus:icons.IconBrowserPlus,IconBrowserX:icons.IconBrowserX,IconBrowser:icons.IconBrowser,IconBrushOff:icons.IconBrushOff,IconBrush:icons.IconBrush,IconBucketOff:icons.IconBucketOff,IconBucket:icons.IconBucket,IconBugOff:icons.IconBugOff,IconBug:icons.IconBug,IconBuildingArch:icons.IconBuildingArch,IconBuildingBank:icons.IconBuildingBank,IconBuildingBridge2:icons.IconBuildingBridge2,IconBuildingBridge:icons.IconBuildingBridge,IconBuildingCarousel:icons.IconBuildingCarousel,IconBuildingCastle:icons.IconBuildingCastle,IconBuildingChurch:icons.IconBuildingChurch,IconBuildingCommunity:icons.IconBuildingCommunity,IconBuildingCottage:icons.IconBuildingCottage,IconBuildingFactory2:icons.IconBuildingFactory2,IconBuildingFactory:icons.IconBuildingFactory,IconBuildingFortress:icons.IconBuildingFortress,IconBuildingHospital:icons.IconBuildingHospital,IconBuildingLighthouse:icons.IconBuildingLighthouse,IconBuildingMonument:icons.IconBuildingMonument,IconBuildingPavilon:icons.IconBuildingPavilon,IconBuildingSkyscraper:icons.IconBuildingSkyscraper,IconBuildingStore:icons.IconBuildingStore,IconBuildingWarehouse:icons.IconBuildingWarehouse,IconBuilding:icons.IconBuilding,IconBulbOff:icons.IconBulbOff,IconBulb:icons.IconBulb,IconBulldozer:icons.IconBulldozer,IconBusOff:icons.IconBusOff,IconBusStop:icons.IconBusStop,IconBus:icons.IconBus,IconBusinessplan:icons.IconBusinessplan,IconButterfly:icons.IconButterfly,IconCSharp:icons.IconCSharp,IconCactusOff:icons.IconCactusOff,IconCactus:icons.IconCactus,IconCakeOff:icons.IconCakeOff,IconCake:icons.IconCake,IconCalculatorOff:icons.IconCalculatorOff,IconCalculator:icons.IconCalculator,IconCalendarEvent:icons.IconCalendarEvent,IconCalendarMinus:icons.IconCalendarMinus,IconCalendarOff:icons.IconCalendarOff,IconCalendarPlus:icons.IconCalendarPlus,IconCalendarStats:icons.IconCalendarStats,IconCalendarTime:icons.IconCalendarTime,IconCalendar:icons.IconCalendar,IconCameraMinus:icons.IconCameraMinus,IconCameraOff:icons.IconCameraOff,IconCameraPlus:icons.IconCameraPlus,IconCameraRotate:icons.IconCameraRotate,IconCameraSelfie:icons.IconCameraSelfie,IconCamera:icons.IconCamera,IconCandle:icons.IconCandle,IconCandyOff:icons.IconCandyOff,IconCandy:icons.IconCandy,IconCaptureOff:icons.IconCaptureOff,IconCapture:icons.IconCapture,IconCarCrane:icons.IconCarCrane,IconCarCrash:icons.IconCarCrash,IconCarOff:icons.IconCarOff,IconCar:icons.IconCar,IconCaravan:icons.IconCaravan,IconCardboardsOff:icons.IconCardboardsOff,IconCardboards:icons.IconCardboards,IconCaretDown:icons.IconCaretDown,IconCaretLeft:icons.IconCaretLeft,IconCaretRight:icons.IconCaretRight,IconCaretUp:icons.IconCaretUp,IconCarrotOff:icons.IconCarrotOff,IconCarrot:icons.IconCarrot,IconCashBanknoteOff:icons.IconCashBanknoteOff,IconCashBanknote:icons.IconCashBanknote,IconCashOff:icons.IconCashOff,IconCash:icons.IconCash,IconCastOff:icons.IconCastOff,IconCast:icons.IconCast,IconCategory2:icons.IconCategory2,IconCategory:icons.IconCategory,IconCeOff:icons.IconCeOff,IconCe:icons.IconCe,IconCellSignal1:icons.IconCellSignal1,IconCellSignal2:icons.IconCellSignal2,IconCellSignal3:icons.IconCellSignal3,IconCellSignal4:icons.IconCellSignal4,IconCellSignal5:icons.IconCellSignal5,IconCellSignalOff:icons.IconCellSignalOff,IconCell:icons.IconCell,IconCertificate2Off:icons.IconCertificate2Off,IconCertificate2:icons.IconCertificate2,IconCertificateOff:icons.IconCertificateOff,IconCertificate:icons.IconCertificate,IconChairDirector:icons.IconChairDirector,IconChalkboardOff:icons.IconChalkboardOff,IconChalkboard:icons.IconChalkboard,IconChargingPile:icons.IconChargingPile,IconChartArcs3:icons.IconChartArcs3,IconChartArcs:icons.IconChartArcs,IconChartAreaLine:icons.IconChartAreaLine,IconChartArea:icons.IconChartArea,IconChartArrowsVertical:icons.IconChartArrowsVertical,IconChartArrows:icons.IconChartArrows,IconChartBarOff:icons.IconChartBarOff,IconChartBar:icons.IconChartBar,IconChartBubble:icons.IconChartBubble,IconChartCandle:icons.IconChartCandle,IconChartCircles:icons.IconChartCircles,IconChartDonut2:icons.IconChartDonut2,IconChartDonut3:icons.IconChartDonut3,IconChartDonut4:icons.IconChartDonut4,IconChartDonut:icons.IconChartDonut,IconChartDots2:icons.IconChartDots2,IconChartDots3:icons.IconChartDots3,IconChartDots:icons.IconChartDots,IconChartInfographic:icons.IconChartInfographic,IconChartLine:icons.IconChartLine,IconChartPie2:icons.IconChartPie2,IconChartPie3:icons.IconChartPie3,IconChartPie4:icons.IconChartPie4,IconChartPieOff:icons.IconChartPieOff,IconChartPie:icons.IconChartPie,IconChartRadar:icons.IconChartRadar,IconChartTreemap:icons.IconChartTreemap,IconCheck:icons.IconCheck,IconCheckbox:icons.IconCheckbox,IconChecklist:icons.IconChecklist,IconChecks:icons.IconChecks,IconCheckupList:icons.IconCheckupList,IconCheese:icons.IconCheese,IconChefHatOff:icons.IconChefHatOff,IconChefHat:icons.IconChefHat,IconChess:icons.IconChess,IconChevronDownLeft:icons.IconChevronDownLeft,IconChevronDownRight:icons.IconChevronDownRight,IconChevronDown:icons.IconChevronDown,IconChevronLeft:icons.IconChevronLeft,IconChevronRight:icons.IconChevronRight,IconChevronUpLeft:icons.IconChevronUpLeft,IconChevronUpRight:icons.IconChevronUpRight,IconChevronUp:icons.IconChevronUp,IconChevronsDownLeft:icons.IconChevronsDownLeft,IconChevronsDownRight:icons.IconChevronsDownRight,IconChevronsDown:icons.IconChevronsDown,IconChevronsLeft:icons.IconChevronsLeft,IconChevronsRight:icons.IconChevronsRight,IconChevronsUpLeft:icons.IconChevronsUpLeft,IconChevronsUpRight:icons.IconChevronsUpRight,IconChevronsUp:icons.IconChevronsUp,IconChisel:icons.IconChisel,IconChristmasTreeOff:icons.IconChristmasTreeOff,IconChristmasTree:icons.IconChristmasTree,IconCircle0:icons.IconCircle0,IconCircle1:icons.IconCircle1,IconCircle2:icons.IconCircle2,IconCircle3:icons.IconCircle3,IconCircle4:icons.IconCircle4,IconCircle5:icons.IconCircle5,IconCircle6:icons.IconCircle6,IconCircle7:icons.IconCircle7,IconCircle8:icons.IconCircle8,IconCircle9:icons.IconCircle9,IconCircleA:icons.IconCircleA,IconCircleB:icons.IconCircleB,IconCircleC:icons.IconCircleC,IconCircleCheck:icons.IconCircleCheck,IconCircleD:icons.IconCircleD,IconCircleDashed:icons.IconCircleDashed,IconCircleDot:icons.IconCircleDot,IconCircleDotted:icons.IconCircleDotted,IconCircleE:icons.IconCircleE,IconCircleF:icons.IconCircleF,IconCircleG:icons.IconCircleG,IconCircleH:icons.IconCircleH,IconCircleHalf2:icons.IconCircleHalf2,IconCircleHalfVertical:icons.IconCircleHalfVertical,IconCircleHalf:icons.IconCircleHalf,IconCircleI:icons.IconCircleI,IconCircleJ:icons.IconCircleJ,IconCircleK:icons.IconCircleK,IconCircleL:icons.IconCircleL,IconCircleM:icons.IconCircleM,IconCircleMinus:icons.IconCircleMinus,IconCircleN:icons.IconCircleN,IconCircleO:icons.IconCircleO,IconCircleOff:icons.IconCircleOff,IconCircleP:icons.IconCircleP,IconCirclePlus:icons.IconCirclePlus,IconCircleQ:icons.IconCircleQ,IconCircleR:icons.IconCircleR,IconCircleRectangleOff:icons.IconCircleRectangleOff,IconCircleRectangle:icons.IconCircleRectangle,IconCircleS:icons.IconCircleS,IconCircleSquare:icons.IconCircleSquare,IconCircleT:icons.IconCircleT,IconCircleTriangle:icons.IconCircleTriangle,IconCircleU:icons.IconCircleU,IconCircleW:icons.IconCircleW,IconCircleX:icons.IconCircleX,IconCircleY:icons.IconCircleY,IconCircleZ:icons.IconCircleZ,IconCircle:icons.IconCircle,IconCircles:icons.IconCircles,IconCircuitAmmeter:icons.IconCircuitAmmeter,IconCircuitBattery:icons.IconCircuitBattery,IconCircuitBulb:icons.IconCircuitBulb,IconCircuitCapacitorPolarized:icons.IconCircuitCapacitorPolarized,IconCircuitCapacitor:icons.IconCircuitCapacitor,IconCircuitCellPlus:icons.IconCircuitCellPlus,IconCircuitCell:icons.IconCircuitCell,IconCircuitChangeover:icons.IconCircuitChangeover,IconCircuitDiodeZener:icons.IconCircuitDiodeZener,IconCircuitDiode:icons.IconCircuitDiode,IconCircuitGroundDigital:icons.IconCircuitGroundDigital,IconCircuitGround:icons.IconCircuitGround,IconCircuitInductor:icons.IconCircuitInductor,IconCircuitMotor:icons.IconCircuitMotor,IconCircuitPushbutton:icons.IconCircuitPushbutton,IconCircuitResistor:icons.IconCircuitResistor,IconCircuitSwitchClosed:icons.IconCircuitSwitchClosed,IconCircuitSwitchOpen:icons.IconCircuitSwitchOpen,IconCircuitVoltmeter:icons.IconCircuitVoltmeter,IconClearAll:icons.IconClearAll,IconClearFormatting:icons.IconClearFormatting,IconClick:icons.IconClick,IconClipboardCheck:icons.IconClipboardCheck,IconClipboardCopy:icons.IconClipboardCopy,IconClipboardHeart:icons.IconClipboardHeart,IconClipboardList:icons.IconClipboardList,IconClipboardOff:icons.IconClipboardOff,IconClipboardPlus:icons.IconClipboardPlus,IconClipboardText:icons.IconClipboardText,IconClipboardTypography:icons.IconClipboardTypography,IconClipboardX:icons.IconClipboardX,IconClipboard:icons.IconClipboard,IconClock2:icons.IconClock2,IconClockHour1:icons.IconClockHour1,IconClockHour10:icons.IconClockHour10,IconClockHour11:icons.IconClockHour11,IconClockHour12:icons.IconClockHour12,IconClockHour2:icons.IconClockHour2,IconClockHour3:icons.IconClockHour3,IconClockHour4:icons.IconClockHour4,IconClockHour5:icons.IconClockHour5,IconClockHour6:icons.IconClockHour6,IconClockHour7:icons.IconClockHour7,IconClockHour8:icons.IconClockHour8,IconClockHour9:icons.IconClockHour9,IconClockOff:icons.IconClockOff,IconClock:icons.IconClock,IconClothesRackOff:icons.IconClothesRackOff,IconClothesRack:icons.IconClothesRack,IconCloudComputing:icons.IconCloudComputing,IconCloudDataConnection:icons.IconCloudDataConnection,IconCloudDownload:icons.IconCloudDownload,IconCloudFog:icons.IconCloudFog,IconCloudLockOpen:icons.IconCloudLockOpen,IconCloudLock:icons.IconCloudLock,IconCloudOff:icons.IconCloudOff,IconCloudRain:icons.IconCloudRain,IconCloudSnow:icons.IconCloudSnow,IconCloudStorm:icons.IconCloudStorm,IconCloudUpload:icons.IconCloudUpload,IconCloud:icons.IconCloud,IconClover2:icons.IconClover2,IconClover:icons.IconClover,IconClubs:icons.IconClubs,IconCodeAsterix:icons.IconCodeAsterix,IconCodeMinus:icons.IconCodeMinus,IconCodeOff:icons.IconCodeOff,IconCodePlus:icons.IconCodePlus,IconCode:icons.IconCode,IconCoffeeOff:icons.IconCoffeeOff,IconCoffee:icons.IconCoffee,IconCoinBitcoin:icons.IconCoinBitcoin,IconCoinEuro:icons.IconCoinEuro,IconCoinMonero:icons.IconCoinMonero,IconCoinOff:icons.IconCoinOff,IconCoinPound:icons.IconCoinPound,IconCoinRupee:icons.IconCoinRupee,IconCoinYen:icons.IconCoinYen,IconCoinYuan:icons.IconCoinYuan,IconCoin:icons.IconCoin,IconColorPickerOff:icons.IconColorPickerOff,IconColorPicker:icons.IconColorPicker,IconColorSwatchOff:icons.IconColorSwatchOff,IconColorSwatch:icons.IconColorSwatch,IconColumnInsertLeft:icons.IconColumnInsertLeft,IconColumnInsertRight:icons.IconColumnInsertRight,IconColumnsOff:icons.IconColumnsOff,IconColumns:icons.IconColumns,IconComet:icons.IconComet,IconCommandOff:icons.IconCommandOff,IconCommand:icons.IconCommand,IconCompassOff:icons.IconCompassOff,IconCompass:icons.IconCompass,IconComponentsOff:icons.IconComponentsOff,IconComponents:icons.IconComponents,IconCone2:icons.IconCone2,IconConeOff:icons.IconConeOff,IconCone:icons.IconCone,IconConfettiOff:icons.IconConfettiOff,IconConfetti:icons.IconConfetti,IconContainerOff:icons.IconContainerOff,IconContainer:icons.IconContainer,IconContrast2Off:icons.IconContrast2Off,IconContrast2:icons.IconContrast2,IconContrastOff:icons.IconContrastOff,IconContrast:icons.IconContrast,IconCookieOff:icons.IconCookieOff,IconCookie:icons.IconCookie,IconCopyOff:icons.IconCopyOff,IconCopy:icons.IconCopy,IconCopyleftOff:icons.IconCopyleftOff,IconCopyleft:icons.IconCopyleft,IconCopyrightOff:icons.IconCopyrightOff,IconCopyright:icons.IconCopyright,IconCornerDownLeftDouble:icons.IconCornerDownLeftDouble,IconCornerDownLeft:icons.IconCornerDownLeft,IconCornerDownRightDouble:icons.IconCornerDownRightDouble,IconCornerDownRight:icons.IconCornerDownRight,IconCornerLeftDownDouble:icons.IconCornerLeftDownDouble,IconCornerLeftDown:icons.IconCornerLeftDown,IconCornerLeftUpDouble:icons.IconCornerLeftUpDouble,IconCornerLeftUp:icons.IconCornerLeftUp,IconCornerRightDownDouble:icons.IconCornerRightDownDouble,IconCornerRightDown:icons.IconCornerRightDown,IconCornerRightUpDouble:icons.IconCornerRightUpDouble,IconCornerRightUp:icons.IconCornerRightUp,IconCornerUpLeftDouble:icons.IconCornerUpLeftDouble,IconCornerUpLeft:icons.IconCornerUpLeft,IconCornerUpRightDouble:icons.IconCornerUpRightDouble,IconCornerUpRight:icons.IconCornerUpRight,IconCpu2:icons.IconCpu2,IconCpuOff:icons.IconCpuOff,IconCpu:icons.IconCpu,IconCraneOff:icons.IconCraneOff,IconCrane:icons.IconCrane,IconCreativeCommonsBy:icons.IconCreativeCommonsBy,IconCreativeCommonsNc:icons.IconCreativeCommonsNc,IconCreativeCommonsNd:icons.IconCreativeCommonsNd,IconCreativeCommonsOff:icons.IconCreativeCommonsOff,IconCreativeCommonsSa:icons.IconCreativeCommonsSa,IconCreativeCommonsZero:icons.IconCreativeCommonsZero,IconCreativeCommons:icons.IconCreativeCommons,IconCreditCardOff:icons.IconCreditCardOff,IconCreditCard:icons.IconCreditCard,IconCricket:icons.IconCricket,IconCrop:icons.IconCrop,IconCrossOff:icons.IconCrossOff,IconCross:icons.IconCross,IconCrosshair:icons.IconCrosshair,IconCrownOff:icons.IconCrownOff,IconCrown:icons.IconCrown,IconCrutchesOff:icons.IconCrutchesOff,IconCrutches:icons.IconCrutches,IconCupOff:icons.IconCupOff,IconCup:icons.IconCup,IconCurling:icons.IconCurling,IconCurlyLoop:icons.IconCurlyLoop,IconCurrencyBahraini:icons.IconCurrencyBahraini,IconCurrencyBaht:icons.IconCurrencyBaht,IconCurrencyBitcoin:icons.IconCurrencyBitcoin,IconCurrencyCent:icons.IconCurrencyCent,IconCurrencyDinar:icons.IconCurrencyDinar,IconCurrencyDirham:icons.IconCurrencyDirham,IconCurrencyDogecoin:icons.IconCurrencyDogecoin,IconCurrencyDollarAustralian:icons.IconCurrencyDollarAustralian,IconCurrencyDollarBrunei:icons.IconCurrencyDollarBrunei,IconCurrencyDollarCanadian:icons.IconCurrencyDollarCanadian,IconCurrencyDollarGuyanese:icons.IconCurrencyDollarGuyanese,IconCurrencyDollarOff:icons.IconCurrencyDollarOff,IconCurrencyDollarSingapore:icons.IconCurrencyDollarSingapore,IconCurrencyDollarZimbabwean:icons.IconCurrencyDollarZimbabwean,IconCurrencyDollar:icons.IconCurrencyDollar,IconCurrencyDong:icons.IconCurrencyDong,IconCurrencyDram:icons.IconCurrencyDram,IconCurrencyEthereum:icons.IconCurrencyEthereum,IconCurrencyEuroOff:icons.IconCurrencyEuroOff,IconCurrencyEuro:icons.IconCurrencyEuro,IconCurrencyForint:icons.IconCurrencyForint,IconCurrencyFrank:icons.IconCurrencyFrank,IconCurrencyGuarani:icons.IconCurrencyGuarani,IconCurrencyHryvnia:icons.IconCurrencyHryvnia,IconCurrencyKip:icons.IconCurrencyKip,IconCurrencyKroneCzech:icons.IconCurrencyKroneCzech,IconCurrencyKroneDanish:icons.IconCurrencyKroneDanish,IconCurrencyKroneSwedish:icons.IconCurrencyKroneSwedish,IconCurrencyLari:icons.IconCurrencyLari,IconCurrencyLeu:icons.IconCurrencyLeu,IconCurrencyLira:icons.IconCurrencyLira,IconCurrencyLitecoin:icons.IconCurrencyLitecoin,IconCurrencyLyd:icons.IconCurrencyLyd,IconCurrencyManat:icons.IconCurrencyManat,IconCurrencyMonero:icons.IconCurrencyMonero,IconCurrencyNaira:icons.IconCurrencyNaira,IconCurrencyOff:icons.IconCurrencyOff,IconCurrencyPaanga:icons.IconCurrencyPaanga,IconCurrencyPoundOff:icons.IconCurrencyPoundOff,IconCurrencyPound:icons.IconCurrencyPound,IconCurrencyQuetzal:icons.IconCurrencyQuetzal,IconCurrencyReal:icons.IconCurrencyReal,IconCurrencyRenminbi:icons.IconCurrencyRenminbi,IconCurrencyRipple:icons.IconCurrencyRipple,IconCurrencyRiyal:icons.IconCurrencyRiyal,IconCurrencyRubel:icons.IconCurrencyRubel,IconCurrencyRufiyaa:icons.IconCurrencyRufiyaa,IconCurrencyRupeeNepalese:icons.IconCurrencyRupeeNepalese,IconCurrencyRupee:icons.IconCurrencyRupee,IconCurrencyShekel:icons.IconCurrencyShekel,IconCurrencySolana:icons.IconCurrencySolana,IconCurrencySom:icons.IconCurrencySom,IconCurrencyTaka:icons.IconCurrencyTaka,IconCurrencyTenge:icons.IconCurrencyTenge,IconCurrencyTugrik:icons.IconCurrencyTugrik,IconCurrencyWon:icons.IconCurrencyWon,IconCurrencyYenOff:icons.IconCurrencyYenOff,IconCurrencyYen:icons.IconCurrencyYen,IconCurrencyYuan:icons.IconCurrencyYuan,IconCurrencyZloty:icons.IconCurrencyZloty,IconCurrency:icons.IconCurrency,IconCurrentLocationOff:icons.IconCurrentLocationOff,IconCurrentLocation:icons.IconCurrentLocation,IconCursorOff:icons.IconCursorOff,IconCursorText:icons.IconCursorText,IconCut:icons.IconCut,IconDashboardOff:icons.IconDashboardOff,IconDashboard:icons.IconDashboard,IconDatabaseExport:icons.IconDatabaseExport,IconDatabaseImport:icons.IconDatabaseImport,IconDatabaseOff:icons.IconDatabaseOff,IconDatabase:icons.IconDatabase,IconDentalBroken:icons.IconDentalBroken,IconDentalOff:icons.IconDentalOff,IconDental:icons.IconDental,IconDetailsOff:icons.IconDetailsOff,IconDetails:icons.IconDetails,IconDeviceAnalytics:icons.IconDeviceAnalytics,IconDeviceAudioTape:icons.IconDeviceAudioTape,IconDeviceCameraPhone:icons.IconDeviceCameraPhone,IconDeviceCctvOff:icons.IconDeviceCctvOff,IconDeviceCctv:icons.IconDeviceCctv,IconDeviceComputerCameraOff:icons.IconDeviceComputerCameraOff,IconDeviceComputerCamera:icons.IconDeviceComputerCamera,IconDeviceDesktopAnalytics:icons.IconDeviceDesktopAnalytics,IconDeviceDesktopOff:icons.IconDeviceDesktopOff,IconDeviceDesktop:icons.IconDeviceDesktop,IconDeviceFloppy:icons.IconDeviceFloppy,IconDeviceGamepad2:icons.IconDeviceGamepad2,IconDeviceGamepad:icons.IconDeviceGamepad,IconDeviceHeartMonitor:icons.IconDeviceHeartMonitor,IconDeviceLaptopOff:icons.IconDeviceLaptopOff,IconDeviceLaptop:icons.IconDeviceLaptop,IconDeviceMobileCharging:icons.IconDeviceMobileCharging,IconDeviceMobileMessage:icons.IconDeviceMobileMessage,IconDeviceMobileOff:icons.IconDeviceMobileOff,IconDeviceMobileRotated:icons.IconDeviceMobileRotated,IconDeviceMobileVibration:icons.IconDeviceMobileVibration,IconDeviceMobile:icons.IconDeviceMobile,IconDeviceNintendoOff:icons.IconDeviceNintendoOff,IconDeviceNintendo:icons.IconDeviceNintendo,IconDeviceSdCard:icons.IconDeviceSdCard,IconDeviceSpeakerOff:icons.IconDeviceSpeakerOff,IconDeviceSpeaker:icons.IconDeviceSpeaker,IconDeviceTabletOff:icons.IconDeviceTabletOff,IconDeviceTablet:icons.IconDeviceTablet,IconDeviceTvOff:icons.IconDeviceTvOff,IconDeviceTvOld:icons.IconDeviceTvOld,IconDeviceTv:icons.IconDeviceTv,IconDeviceWatchOff:icons.IconDeviceWatchOff,IconDeviceWatchStats2:icons.IconDeviceWatchStats2,IconDeviceWatchStats:icons.IconDeviceWatchStats,IconDeviceWatch:icons.IconDeviceWatch,IconDevices2:icons.IconDevices2,IconDevicesOff:icons.IconDevicesOff,IconDevicesPcOff:icons.IconDevicesPcOff,IconDevicesPc:icons.IconDevicesPc,IconDevices:icons.IconDevices,IconDialpadOff:icons.IconDialpadOff,IconDialpad:icons.IconDialpad,IconDiamondOff:icons.IconDiamondOff,IconDiamond:icons.IconDiamond,IconDiamonds:icons.IconDiamonds,IconDice1:icons.IconDice1,IconDice2:icons.IconDice2,IconDice3:icons.IconDice3,IconDice4:icons.IconDice4,IconDice5:icons.IconDice5,IconDice6:icons.IconDice6,IconDice:icons.IconDice,IconDimensions:icons.IconDimensions,IconDirectionHorizontal:icons.IconDirectionHorizontal,IconDirectionSignOff:icons.IconDirectionSignOff,IconDirectionSign:icons.IconDirectionSign,IconDirection:icons.IconDirection,IconDirectionsOff:icons.IconDirectionsOff,IconDirections:icons.IconDirections,IconDisabled2:icons.IconDisabled2,IconDisabledOff:icons.IconDisabledOff,IconDisabled:icons.IconDisabled,IconDiscGolf:icons.IconDiscGolf,IconDiscOff:icons.IconDiscOff,IconDisc:icons.IconDisc,IconDiscount2Off:icons.IconDiscount2Off,IconDiscount2:icons.IconDiscount2,IconDiscountCheck:icons.IconDiscountCheck,IconDiscountOff:icons.IconDiscountOff,IconDiscount:icons.IconDiscount,IconDivide:icons.IconDivide,IconDna2Off:icons.IconDna2Off,IconDna2:icons.IconDna2,IconDnaOff:icons.IconDnaOff,IconDna:icons.IconDna,IconDogBowl:icons.IconDogBowl,IconDoorEnter:icons.IconDoorEnter,IconDoorExit:icons.IconDoorExit,IconDoorOff:icons.IconDoorOff,IconDoor:icons.IconDoor,IconDotsCircleHorizontal:icons.IconDotsCircleHorizontal,IconDotsDiagonal2:icons.IconDotsDiagonal2,IconDotsDiagonal:icons.IconDotsDiagonal,IconDotsVertical:icons.IconDotsVertical,IconDots:icons.IconDots,IconDownloadOff:icons.IconDownloadOff,IconDownload:icons.IconDownload,IconDragDrop2:icons.IconDragDrop2,IconDragDrop:icons.IconDragDrop,IconDroneOff:icons.IconDroneOff,IconDrone:icons.IconDrone,IconDropCircle:icons.IconDropCircle,IconDropletFilled2:icons.IconDropletFilled2,IconDropletFilled:icons.IconDropletFilled,IconDropletHalf2:icons.IconDropletHalf2,IconDropletHalf:icons.IconDropletHalf,IconDropletOff:icons.IconDropletOff,IconDroplet:icons.IconDroplet,IconEarOff:icons.IconEarOff,IconEar:icons.IconEar,IconEditCircleOff:icons.IconEditCircleOff,IconEditCircle:icons.IconEditCircle,IconEditOff:icons.IconEditOff,IconEdit:icons.IconEdit,IconEggCracked:icons.IconEggCracked,IconEggFried:icons.IconEggFried,IconEggOff:icons.IconEggOff,IconEgg:icons.IconEgg,IconElevatorOff:icons.IconElevatorOff,IconElevator:icons.IconElevator,IconEmergencyBed:icons.IconEmergencyBed,IconEmpathizeOff:icons.IconEmpathizeOff,IconEmpathize:icons.IconEmpathize,IconEmphasis:icons.IconEmphasis,IconEngineOff:icons.IconEngineOff,IconEngine:icons.IconEngine,IconEqualNot:icons.IconEqualNot,IconEqual:icons.IconEqual,IconEraserOff:icons.IconEraserOff,IconEraser:icons.IconEraser,IconError404Off:icons.IconError404Off,IconError404:icons.IconError404,IconExchangeOff:icons.IconExchangeOff,IconExchange:icons.IconExchange,IconExclamationMarkOff:icons.IconExclamationMarkOff,IconExclamationMark:icons.IconExclamationMark,IconExplicitOff:icons.IconExplicitOff,IconExplicit:icons.IconExplicit,IconExposure0:icons.IconExposure0,IconExposureMinus1:icons.IconExposureMinus1,IconExposureMinus2:icons.IconExposureMinus2,IconExposureOff:icons.IconExposureOff,IconExposurePlus1:icons.IconExposurePlus1,IconExposurePlus2:icons.IconExposurePlus2,IconExposure:icons.IconExposure,IconExternalLinkOff:icons.IconExternalLinkOff,IconExternalLink:icons.IconExternalLink,IconEyeCheck:icons.IconEyeCheck,IconEyeOff:icons.IconEyeOff,IconEyeTable:icons.IconEyeTable,IconEye:icons.IconEye,IconEyeglass2:icons.IconEyeglass2,IconEyeglassOff:icons.IconEyeglassOff,IconEyeglass:icons.IconEyeglass,IconFaceIdError:icons.IconFaceIdError,IconFaceId:icons.IconFaceId,IconFaceMaskOff:icons.IconFaceMaskOff,IconFaceMask:icons.IconFaceMask,IconFall:icons.IconFall,IconFeatherOff:icons.IconFeatherOff,IconFeather:icons.IconFeather,IconFenceOff:icons.IconFenceOff,IconFence:icons.IconFence,IconFidgetSpinner:icons.IconFidgetSpinner,IconFile3d:icons.IconFile3d,IconFileAlert:icons.IconFileAlert,IconFileAnalytics:icons.IconFileAnalytics,IconFileArrowLeft:icons.IconFileArrowLeft,IconFileArrowRight:icons.IconFileArrowRight,IconFileBarcode:icons.IconFileBarcode,IconFileCertificate:icons.IconFileCertificate,IconFileChart:icons.IconFileChart,IconFileCheck:icons.IconFileCheck,IconFileCode2:icons.IconFileCode2,IconFileCode:icons.IconFileCode,IconFileDatabase:icons.IconFileDatabase,IconFileDescription:icons.IconFileDescription,IconFileDiff:icons.IconFileDiff,IconFileDigit:icons.IconFileDigit,IconFileDislike:icons.IconFileDislike,IconFileDollar:icons.IconFileDollar,IconFileDots:icons.IconFileDots,IconFileDownload:icons.IconFileDownload,IconFileEuro:icons.IconFileEuro,IconFileExport:icons.IconFileExport,IconFileHorizontal:icons.IconFileHorizontal,IconFileImport:icons.IconFileImport,IconFileInfo:icons.IconFileInfo,IconFileInvoice:icons.IconFileInvoice,IconFileLike:icons.IconFileLike,IconFileMinus:icons.IconFileMinus,IconFileMusic:icons.IconFileMusic,IconFileOff:icons.IconFileOff,IconFileOrientation:icons.IconFileOrientation,IconFilePencil:icons.IconFilePencil,IconFilePhone:icons.IconFilePhone,IconFilePlus:icons.IconFilePlus,IconFilePower:icons.IconFilePower,IconFileReport:icons.IconFileReport,IconFileRss:icons.IconFileRss,IconFileScissors:icons.IconFileScissors,IconFileSearch:icons.IconFileSearch,IconFileSettings:icons.IconFileSettings,IconFileShredder:icons.IconFileShredder,IconFileSignal:icons.IconFileSignal,IconFileSpreadsheet:icons.IconFileSpreadsheet,IconFileStar:icons.IconFileStar,IconFileSymlink:icons.IconFileSymlink,IconFileText:icons.IconFileText,IconFileTime:icons.IconFileTime,IconFileTypography:icons.IconFileTypography,IconFileUnknown:icons.IconFileUnknown,IconFileUpload:icons.IconFileUpload,IconFileVector:icons.IconFileVector,IconFileX:icons.IconFileX,IconFileZip:icons.IconFileZip,IconFile:icons.IconFile,IconFilesOff:icons.IconFilesOff,IconFiles:icons.IconFiles,IconFilterOff:icons.IconFilterOff,IconFilter:icons.IconFilter,IconFingerprintOff:icons.IconFingerprintOff,IconFingerprint:icons.IconFingerprint,IconFireHydrantOff:icons.IconFireHydrantOff,IconFireHydrant:icons.IconFireHydrant,IconFiretruck:icons.IconFiretruck,IconFirstAidKitOff:icons.IconFirstAidKitOff,IconFirstAidKit:icons.IconFirstAidKit,IconFishBone:icons.IconFishBone,IconFishHookOff:icons.IconFishHookOff,IconFishHook:icons.IconFishHook,IconFishOff:icons.IconFishOff,IconFish:icons.IconFish,IconFlag2Off:icons.IconFlag2Off,IconFlag2:icons.IconFlag2,IconFlag3:icons.IconFlag3,IconFlagOff:icons.IconFlagOff,IconFlag:icons.IconFlag,IconFlameOff:icons.IconFlameOff,IconFlame:icons.IconFlame,IconFlare:icons.IconFlare,IconFlask2Off:icons.IconFlask2Off,IconFlask2:icons.IconFlask2,IconFlaskOff:icons.IconFlaskOff,IconFlask:icons.IconFlask,IconFlipHorizontal:icons.IconFlipHorizontal,IconFlipVertical:icons.IconFlipVertical,IconFloatCenter:icons.IconFloatCenter,IconFloatLeft:icons.IconFloatLeft,IconFloatNone:icons.IconFloatNone,IconFloatRight:icons.IconFloatRight,IconFlowerOff:icons.IconFlowerOff,IconFlower:icons.IconFlower,IconFocus2:icons.IconFocus2,IconFocusCentered:icons.IconFocusCentered,IconFocus:icons.IconFocus,IconFoldDown:icons.IconFoldDown,IconFoldUp:icons.IconFoldUp,IconFold:icons.IconFold,IconFolderMinus:icons.IconFolderMinus,IconFolderOff:icons.IconFolderOff,IconFolderPlus:icons.IconFolderPlus,IconFolderX:icons.IconFolderX,IconFolder:icons.IconFolder,IconFoldersOff:icons.IconFoldersOff,IconFolders:icons.IconFolders,IconForbid2:icons.IconForbid2,IconForbid:icons.IconForbid,IconForklift:icons.IconForklift,IconForms:icons.IconForms,IconFountainOff:icons.IconFountainOff,IconFountain:icons.IconFountain,IconFrameOff:icons.IconFrameOff,IconFrame:icons.IconFrame,IconFreeRights:icons.IconFreeRights,IconFridgeOff:icons.IconFridgeOff,IconFridge:icons.IconFridge,IconFriendsOff:icons.IconFriendsOff,IconFriends:icons.IconFriends,IconFunctionOff:icons.IconFunctionOff,IconFunction:icons.IconFunction,IconGardenCartOff:icons.IconGardenCartOff,IconGardenCart:icons.IconGardenCart,IconGasStationOff:icons.IconGasStationOff,IconGasStation:icons.IconGasStation,IconGaugeOff:icons.IconGaugeOff,IconGauge:icons.IconGauge,IconGavel:icons.IconGavel,IconGenderAgender:icons.IconGenderAgender,IconGenderAndrogyne:icons.IconGenderAndrogyne,IconGenderBigender:icons.IconGenderBigender,IconGenderDemiboy:icons.IconGenderDemiboy,IconGenderDemigirl:icons.IconGenderDemigirl,IconGenderEpicene:icons.IconGenderEpicene,IconGenderFemale:icons.IconGenderFemale,IconGenderFemme:icons.IconGenderFemme,IconGenderGenderfluid:icons.IconGenderGenderfluid,IconGenderGenderless:icons.IconGenderGenderless,IconGenderGenderqueer:icons.IconGenderGenderqueer,IconGenderHermaphrodite:icons.IconGenderHermaphrodite,IconGenderIntergender:icons.IconGenderIntergender,IconGenderMale:icons.IconGenderMale,IconGenderNeutrois:icons.IconGenderNeutrois,IconGenderThird:icons.IconGenderThird,IconGenderTransgender:icons.IconGenderTransgender,IconGenderTrasvesti:icons.IconGenderTrasvesti,IconGeometry:icons.IconGeometry,IconGhostOff:icons.IconGhostOff,IconGhost:icons.IconGhost,IconGif:icons.IconGif,IconGiftCard:icons.IconGiftCard,IconGiftOff:icons.IconGiftOff,IconGift:icons.IconGift,IconGitBranch:icons.IconGitBranch,IconGitCommit:icons.IconGitCommit,IconGitCompare:icons.IconGitCompare,IconGitFork:icons.IconGitFork,IconGitMerge:icons.IconGitMerge,IconGitPullRequestClosed:icons.IconGitPullRequestClosed,IconGitPullRequestDraft:icons.IconGitPullRequestDraft,IconGitPullRequest:icons.IconGitPullRequest,IconGizmo:icons.IconGizmo,IconGlassFull:icons.IconGlassFull,IconGlassOff:icons.IconGlassOff,IconGlass:icons.IconGlass,IconGlobeOff:icons.IconGlobeOff,IconGlobe:icons.IconGlobe,IconGolfOff:icons.IconGolfOff,IconGolf:icons.IconGolf,IconGps:icons.IconGps,IconGradienter:icons.IconGradienter,IconGrain:icons.IconGrain,IconGraphOff:icons.IconGraphOff,IconGraph:icons.IconGraph,IconGridDots:icons.IconGridDots,IconGridPattern:icons.IconGridPattern,IconGrillFork:icons.IconGrillFork,IconGrillOff:icons.IconGrillOff,IconGrillSpatula:icons.IconGrillSpatula,IconGrill:icons.IconGrill,IconGripHorizontal:icons.IconGripHorizontal,IconGripVertical:icons.IconGripVertical,IconGrowth:icons.IconGrowth,IconH1:icons.IconH1,IconH2:icons.IconH2,IconH3:icons.IconH3,IconH4:icons.IconH4,IconH5:icons.IconH5,IconH6:icons.IconH6,IconHammerOff:icons.IconHammerOff,IconHammer:icons.IconHammer,IconHandClick:icons.IconHandClick,IconHandFingerOff:icons.IconHandFingerOff,IconHandFinger:icons.IconHandFinger,IconHandGrab:icons.IconHandGrab,IconHandLittleFinger:icons.IconHandLittleFinger,IconHandMiddleFinger:icons.IconHandMiddleFinger,IconHandMove:icons.IconHandMove,IconHandOff:icons.IconHandOff,IconHandRingFinger:icons.IconHandRingFinger,IconHandRock:icons.IconHandRock,IconHandStop:icons.IconHandStop,IconHandThreeFingers:icons.IconHandThreeFingers,IconHandTwoFingers:icons.IconHandTwoFingers,IconHanger2:icons.IconHanger2,IconHangerOff:icons.IconHangerOff,IconHanger:icons.IconHanger,IconHash:icons.IconHash,IconHaze:icons.IconHaze,IconHeadingOff:icons.IconHeadingOff,IconHeading:icons.IconHeading,IconHeadphonesOff:icons.IconHeadphonesOff,IconHeadphones:icons.IconHeadphones,IconHeadsetOff:icons.IconHeadsetOff,IconHeadset:icons.IconHeadset,IconHealthRecognition:icons.IconHealthRecognition,IconHeartBroken:icons.IconHeartBroken,IconHeartHandshake:icons.IconHeartHandshake,IconHeartMinus:icons.IconHeartMinus,IconHeartOff:icons.IconHeartOff,IconHeartPlus:icons.IconHeartPlus,IconHeartRateMonitor:icons.IconHeartRateMonitor,IconHeart:icons.IconHeart,IconHeartbeat:icons.IconHeartbeat,IconHeartsOff:icons.IconHeartsOff,IconHearts:icons.IconHearts,IconHelicopterLanding:icons.IconHelicopterLanding,IconHelicopter:icons.IconHelicopter,IconHelmetOff:icons.IconHelmetOff,IconHelmet:icons.IconHelmet,IconHelpOff:icons.IconHelpOff,IconHelp:icons.IconHelp,IconHexagon0:icons.IconHexagon0,IconHexagon1:icons.IconHexagon1,IconHexagon2:icons.IconHexagon2,IconHexagon3:icons.IconHexagon3,IconHexagon4:icons.IconHexagon4,IconHexagon5:icons.IconHexagon5,IconHexagon6:icons.IconHexagon6,IconHexagon7:icons.IconHexagon7,IconHexagon8:icons.IconHexagon8,IconHexagon9:icons.IconHexagon9,IconHexagonA:icons.IconHexagonA,IconHexagonB:icons.IconHexagonB,IconHexagonC:icons.IconHexagonC,IconHexagonD:icons.IconHexagonD,IconHexagonE:icons.IconHexagonE,IconHexagonF:icons.IconHexagonF,IconHexagonG:icons.IconHexagonG,IconHexagonH:icons.IconHexagonH,IconHexagonI:icons.IconHexagonI,IconHexagonJ:icons.IconHexagonJ,IconHexagonK:icons.IconHexagonK,IconHexagonL:icons.IconHexagonL,IconHexagonM:icons.IconHexagonM,IconHexagonN:icons.IconHexagonN,IconHexagonO:icons.IconHexagonO,IconHexagonOff:icons.IconHexagonOff,IconHexagonP:icons.IconHexagonP,IconHexagonQ:icons.IconHexagonQ,IconHexagonR:icons.IconHexagonR,IconHexagonS:icons.IconHexagonS,IconHexagonT:icons.IconHexagonT,IconHexagonU:icons.IconHexagonU,IconHexagonW:icons.IconHexagonW,IconHexagonX:icons.IconHexagonX,IconHexagonY:icons.IconHexagonY,IconHexagonZ:icons.IconHexagonZ,IconHexagon:icons.IconHexagon,IconHexagonsOff:icons.IconHexagonsOff,IconHexagons:icons.IconHexagons,IconHierarchy2:icons.IconHierarchy2,IconHierarchy3:icons.IconHierarchy3,IconHierarchyOff:icons.IconHierarchyOff,IconHierarchy:icons.IconHierarchy,IconHighlightOff:icons.IconHighlightOff,IconHighlight:icons.IconHighlight,IconHistoryOff:icons.IconHistoryOff,IconHistoryToggle:icons.IconHistoryToggle,IconHistory:icons.IconHistory,IconHome2:icons.IconHome2,IconHomeBolt:icons.IconHomeBolt,IconHomeCancel:icons.IconHomeCancel,IconHomeCheck:icons.IconHomeCheck,IconHomeCog:icons.IconHomeCog,IconHomeDollar:icons.IconHomeDollar,IconHomeDot:icons.IconHomeDot,IconHomeDown:icons.IconHomeDown,IconHomeEco:icons.IconHomeEco,IconHomeEdit:icons.IconHomeEdit,IconHomeExclamation:icons.IconHomeExclamation,IconHomeHeart:icons.IconHomeHeart,IconHomeLink:icons.IconHomeLink,IconHomeMinus:icons.IconHomeMinus,IconHomeMove:icons.IconHomeMove,IconHomeOff:icons.IconHomeOff,IconHomePlus:icons.IconHomePlus,IconHomeQuestion:icons.IconHomeQuestion,IconHomeRibbon:icons.IconHomeRibbon,IconHomeSearch:icons.IconHomeSearch,IconHomeShare:icons.IconHomeShare,IconHomeShield:icons.IconHomeShield,IconHomeSignal:icons.IconHomeSignal,IconHomeStar:icons.IconHomeStar,IconHomeStats:icons.IconHomeStats,IconHomeUp:icons.IconHomeUp,IconHomeX:icons.IconHomeX,IconHome:icons.IconHome,IconHorseToy:icons.IconHorseToy,IconHotelService:icons.IconHotelService,IconHourglassEmpty:icons.IconHourglassEmpty,IconHourglassHigh:icons.IconHourglassHigh,IconHourglassLow:icons.IconHourglassLow,IconHourglassOff:icons.IconHourglassOff,IconHourglass:icons.IconHourglass,IconIceCream2:icons.IconIceCream2,IconIceCreamOff:icons.IconIceCreamOff,IconIceCream:icons.IconIceCream,IconIceSkating:icons.IconIceSkating,IconIconsOff:icons.IconIconsOff,IconIcons:icons.IconIcons,IconIdBadge2:icons.IconIdBadge2,IconIdBadgeOff:icons.IconIdBadgeOff,IconIdBadge:icons.IconIdBadge,IconIdOff:icons.IconIdOff,IconId:icons.IconId,IconInboxOff:icons.IconInboxOff,IconInbox:icons.IconInbox,IconIndentDecrease:icons.IconIndentDecrease,IconIndentIncrease:icons.IconIndentIncrease,IconInfinityOff:icons.IconInfinityOff,IconInfinity:icons.IconInfinity,IconInfoCircle:icons.IconInfoCircle,IconInfoSquare:icons.IconInfoSquare,IconInputSearch:icons.IconInputSearch,IconIroning1:icons.IconIroning1,IconIroning2:icons.IconIroning2,IconIroning3:icons.IconIroning3,IconIroningOff:icons.IconIroningOff,IconIroningSteamOff:icons.IconIroningSteamOff,IconIroningSteam:icons.IconIroningSteam,IconItalic:icons.IconItalic,IconJewishStar:icons.IconJewishStar,IconJpg:icons.IconJpg,IconJumpRope:icons.IconJumpRope,IconKarate:icons.IconKarate,IconKayak:icons.IconKayak,IconKering:icons.IconKering,IconKeyOff:icons.IconKeyOff,IconKey:icons.IconKey,IconKeyboardHide:icons.IconKeyboardHide,IconKeyboardOff:icons.IconKeyboardOff,IconKeyboardShow:icons.IconKeyboardShow,IconKeyboard:icons.IconKeyboard,IconLadderOff:icons.IconLadderOff,IconLadder:icons.IconLadder,IconLamp2:icons.IconLamp2,IconLampOff:icons.IconLampOff,IconLamp:icons.IconLamp,IconLanguageHiragana:icons.IconLanguageHiragana,IconLanguageKatakana:icons.IconLanguageKatakana,IconLanguageOff:icons.IconLanguageOff,IconLanguage:icons.IconLanguage,IconLassoOff:icons.IconLassoOff,IconLassoPolygon:icons.IconLassoPolygon,IconLasso:icons.IconLasso,IconLayersDifference:icons.IconLayersDifference,IconLayersIntersect2:icons.IconLayersIntersect2,IconLayersIntersect:icons.IconLayersIntersect,IconLayersLinked:icons.IconLayersLinked,IconLayersOff:icons.IconLayersOff,IconLayersSubtract:icons.IconLayersSubtract,IconLayersUnion:icons.IconLayersUnion,IconLayout2:icons.IconLayout2,IconLayoutAlignBottom:icons.IconLayoutAlignBottom,IconLayoutAlignCenter:icons.IconLayoutAlignCenter,IconLayoutAlignLeft:icons.IconLayoutAlignLeft,IconLayoutAlignMiddle:icons.IconLayoutAlignMiddle,IconLayoutAlignRight:icons.IconLayoutAlignRight,IconLayoutAlignTop:icons.IconLayoutAlignTop,IconLayoutBoardSplit:icons.IconLayoutBoardSplit,IconLayoutBoard:icons.IconLayoutBoard,IconLayoutBottombarCollapse:icons.IconLayoutBottombarCollapse,IconLayoutBottombarExpand:icons.IconLayoutBottombarExpand,IconLayoutBottombar:icons.IconLayoutBottombar,IconLayoutCards:icons.IconLayoutCards,IconLayoutCollage:icons.IconLayoutCollage,IconLayoutColumns:icons.IconLayoutColumns,IconLayoutDashboard:icons.IconLayoutDashboard,IconLayoutDistributeHorizontal:icons.IconLayoutDistributeHorizontal,IconLayoutDistributeVertical:icons.IconLayoutDistributeVertical,IconLayoutGridAdd:icons.IconLayoutGridAdd,IconLayoutGrid:icons.IconLayoutGrid,IconLayoutKanban:icons.IconLayoutKanban,IconLayoutList:icons.IconLayoutList,IconLayoutNavbarCollapse:icons.IconLayoutNavbarCollapse,IconLayoutNavbarExpand:icons.IconLayoutNavbarExpand,IconLayoutNavbar:icons.IconLayoutNavbar,IconLayoutOff:icons.IconLayoutOff,IconLayoutRows:icons.IconLayoutRows,IconLayoutSidebarLeftCollapse:icons.IconLayoutSidebarLeftCollapse,IconLayoutSidebarLeftExpand:icons.IconLayoutSidebarLeftExpand,IconLayoutSidebarRightCollapse:icons.IconLayoutSidebarRightCollapse,IconLayoutSidebarRightExpand:icons.IconLayoutSidebarRightExpand,IconLayoutSidebarRight:icons.IconLayoutSidebarRight,IconLayoutSidebar:icons.IconLayoutSidebar,IconLayout:icons.IconLayout,IconLeafOff:icons.IconLeafOff,IconLeaf:icons.IconLeaf,IconLegoOff:icons.IconLegoOff,IconLego:icons.IconLego,IconLemon2:icons.IconLemon2,IconLemon:icons.IconLemon,IconLetterA:icons.IconLetterA,IconLetterB:icons.IconLetterB,IconLetterC:icons.IconLetterC,IconLetterCaseLower:icons.IconLetterCaseLower,IconLetterCaseToggle:icons.IconLetterCaseToggle,IconLetterCaseUpper:icons.IconLetterCaseUpper,IconLetterCase:icons.IconLetterCase,IconLetterD:icons.IconLetterD,IconLetterE:icons.IconLetterE,IconLetterF:icons.IconLetterF,IconLetterG:icons.IconLetterG,IconLetterH:icons.IconLetterH,IconLetterI:icons.IconLetterI,IconLetterJ:icons.IconLetterJ,IconLetterK:icons.IconLetterK,IconLetterL:icons.IconLetterL,IconLetterM:icons.IconLetterM,IconLetterN:icons.IconLetterN,IconLetterO:icons.IconLetterO,IconLetterP:icons.IconLetterP,IconLetterQ:icons.IconLetterQ,IconLetterR:icons.IconLetterR,IconLetterS:icons.IconLetterS,IconLetterSpacing:icons.IconLetterSpacing,IconLetterT:icons.IconLetterT,IconLetterU:icons.IconLetterU,IconLetterV:icons.IconLetterV,IconLetterW:icons.IconLetterW,IconLetterX:icons.IconLetterX,IconLetterY:icons.IconLetterY,IconLetterZ:icons.IconLetterZ,IconLicenseOff:icons.IconLicenseOff,IconLicense:icons.IconLicense,IconLifebuoyOff:icons.IconLifebuoyOff,IconLifebuoy:icons.IconLifebuoy,IconLineDashed:icons.IconLineDashed,IconLineDotted:icons.IconLineDotted,IconLineHeight:icons.IconLineHeight,IconLine:icons.IconLine,IconLinkOff:icons.IconLinkOff,IconLink:icons.IconLink,IconListCheck:icons.IconListCheck,IconListDetails:icons.IconListDetails,IconListNumbers:icons.IconListNumbers,IconListSearch:icons.IconListSearch,IconList:icons.IconList,IconLivePhotoOff:icons.IconLivePhotoOff,IconLivePhoto:icons.IconLivePhoto,IconLiveView:icons.IconLiveView,IconLoader2:icons.IconLoader2,IconLoaderQuarter:icons.IconLoaderQuarter,IconLoader:icons.IconLoader,IconLocationBroken:icons.IconLocationBroken,IconLocationOff:icons.IconLocationOff,IconLocation:icons.IconLocation,IconLockAccessOff:icons.IconLockAccessOff,IconLockAccess:icons.IconLockAccess,IconLockOff:icons.IconLockOff,IconLockOpenOff:icons.IconLockOpenOff,IconLockOpen:icons.IconLockOpen,IconLockSquare:icons.IconLockSquare,IconLock:icons.IconLock,IconLogicAnd:icons.IconLogicAnd,IconLogicBuffer:icons.IconLogicBuffer,IconLogicNand:icons.IconLogicNand,IconLogicNor:icons.IconLogicNor,IconLogicNot:icons.IconLogicNot,IconLogicOr:icons.IconLogicOr,IconLogicXnor:icons.IconLogicXnor,IconLogicXor:icons.IconLogicXor,IconLogin:icons.IconLogin,IconLogout:icons.IconLogout,IconLollipopOff:icons.IconLollipopOff,IconLollipop:icons.IconLollipop,IconLuggageOff:icons.IconLuggageOff,IconLuggage:icons.IconLuggage,IconLungsOff:icons.IconLungsOff,IconLungs:icons.IconLungs,IconMacroOff:icons.IconMacroOff,IconMacro:icons.IconMacro,IconMagnetOff:icons.IconMagnetOff,IconMagnet:icons.IconMagnet,IconMailFast:icons.IconMailFast,IconMailForward:icons.IconMailForward,IconMailOff:icons.IconMailOff,IconMailOpened:icons.IconMailOpened,IconMail:icons.IconMail,IconMailboxOff:icons.IconMailboxOff,IconMailbox:icons.IconMailbox,IconMan:icons.IconMan,IconManualGearbox:icons.IconManualGearbox,IconMap2:icons.IconMap2,IconMapOff:icons.IconMapOff,IconMapPinOff:icons.IconMapPinOff,IconMapPin:icons.IconMapPin,IconMapPins:icons.IconMapPins,IconMapSearch:icons.IconMapSearch,IconMap:icons.IconMap,IconMarkdownOff:icons.IconMarkdownOff,IconMarkdown:icons.IconMarkdown,IconMarquee2:icons.IconMarquee2,IconMarqueeOff:icons.IconMarqueeOff,IconMarquee:icons.IconMarquee,IconMars:icons.IconMars,IconMaskOff:icons.IconMaskOff,IconMask:icons.IconMask,IconMasksTheaterOff:icons.IconMasksTheaterOff,IconMasksTheater:icons.IconMasksTheater,IconMassage:icons.IconMassage,IconMathAvg:icons.IconMathAvg,IconMathFunctionOff:icons.IconMathFunctionOff,IconMathFunction:icons.IconMathFunction,IconMathMax:icons.IconMathMax,IconMathMin:icons.IconMathMin,IconMathOff:icons.IconMathOff,IconMathSymbols:icons.IconMathSymbols,IconMath:icons.IconMath,IconMaximizeOff:icons.IconMaximizeOff,IconMaximize:icons.IconMaximize,IconMeatOff:icons.IconMeatOff,IconMeat:icons.IconMeat,IconMedal2:icons.IconMedal2,IconMedal:icons.IconMedal,IconMedicalCrossOff:icons.IconMedicalCrossOff,IconMedicalCross:icons.IconMedicalCross,IconMedicineSyrup:icons.IconMedicineSyrup,IconMenu2:icons.IconMenu2,IconMenu:icons.IconMenu,IconMessage2Code:icons.IconMessage2Code,IconMessage2Off:icons.IconMessage2Off,IconMessage2Share:icons.IconMessage2Share,IconMessage2:icons.IconMessage2,IconMessageChatbot:icons.IconMessageChatbot,IconMessageCircle2:icons.IconMessageCircle2,IconMessageCircleOff:icons.IconMessageCircleOff,IconMessageCircle:icons.IconMessageCircle,IconMessageCode:icons.IconMessageCode,IconMessageDots:icons.IconMessageDots,IconMessageForward:icons.IconMessageForward,IconMessageLanguage:icons.IconMessageLanguage,IconMessageOff:icons.IconMessageOff,IconMessagePlus:icons.IconMessagePlus,IconMessageReport:icons.IconMessageReport,IconMessageShare:icons.IconMessageShare,IconMessage:icons.IconMessage,IconMessagesOff:icons.IconMessagesOff,IconMessages:icons.IconMessages,IconMeteorOff:icons.IconMeteorOff,IconMeteor:icons.IconMeteor,IconMickey:icons.IconMickey,IconMicrophone2Off:icons.IconMicrophone2Off,IconMicrophone2:icons.IconMicrophone2,IconMicrophoneOff:icons.IconMicrophoneOff,IconMicrophone:icons.IconMicrophone,IconMicroscopeOff:icons.IconMicroscopeOff,IconMicroscope:icons.IconMicroscope,IconMicrowaveOff:icons.IconMicrowaveOff,IconMicrowave:icons.IconMicrowave,IconMilitaryAward:icons.IconMilitaryAward,IconMilitaryRank:icons.IconMilitaryRank,IconMilkOff:icons.IconMilkOff,IconMilk:icons.IconMilk,IconMinimize:icons.IconMinimize,IconMinusVertical:icons.IconMinusVertical,IconMinus:icons.IconMinus,IconMistOff:icons.IconMistOff,IconMist:icons.IconMist,IconMoodAngry:icons.IconMoodAngry,IconMoodAnnoyed2:icons.IconMoodAnnoyed2,IconMoodAnnoyed:icons.IconMoodAnnoyed,IconMoodBoy:icons.IconMoodBoy,IconMoodConfuzed:icons.IconMoodConfuzed,IconMoodCrazyHappy:icons.IconMoodCrazyHappy,IconMoodCry:icons.IconMoodCry,IconMoodEmpty:icons.IconMoodEmpty,IconMoodHappy:icons.IconMoodHappy,IconMoodKid:icons.IconMoodKid,IconMoodLookLeft:icons.IconMoodLookLeft,IconMoodLookRight:icons.IconMoodLookRight,IconMoodNerd:icons.IconMoodNerd,IconMoodNervous:icons.IconMoodNervous,IconMoodNeutral:icons.IconMoodNeutral,IconMoodOff:icons.IconMoodOff,IconMoodSad2:icons.IconMoodSad2,IconMoodSadDizzy:icons.IconMoodSadDizzy,IconMoodSadSquint:icons.IconMoodSadSquint,IconMoodSad:icons.IconMoodSad,IconMoodSick:icons.IconMoodSick,IconMoodSilence:icons.IconMoodSilence,IconMoodSing:icons.IconMoodSing,IconMoodSmileBeam:icons.IconMoodSmileBeam,IconMoodSmileDizzy:icons.IconMoodSmileDizzy,IconMoodSmile:icons.IconMoodSmile,IconMoodSuprised:icons.IconMoodSuprised,IconMoodTongueWink2:icons.IconMoodTongueWink2,IconMoodTongueWink:icons.IconMoodTongueWink,IconMoodTongue:icons.IconMoodTongue,IconMoodUnamused:icons.IconMoodUnamused,IconMoodWink2:icons.IconMoodWink2,IconMoodWink:icons.IconMoodWink,IconMoodWrrr:icons.IconMoodWrrr,IconMoodXd:icons.IconMoodXd,IconMoon2:icons.IconMoon2,IconMoonOff:icons.IconMoonOff,IconMoonStars:icons.IconMoonStars,IconMoon:icons.IconMoon,IconMoped:icons.IconMoped,IconMotorbike:icons.IconMotorbike,IconMountainOff:icons.IconMountainOff,IconMountain:icons.IconMountain,IconMouse2:icons.IconMouse2,IconMouseOff:icons.IconMouseOff,IconMouse:icons.IconMouse,IconMovieOff:icons.IconMovieOff,IconMovie:icons.IconMovie,IconMugOff:icons.IconMugOff,IconMug:icons.IconMug,IconMultiplier05x:icons.IconMultiplier05x,IconMultiplier15x:icons.IconMultiplier15x,IconMultiplier1x:icons.IconMultiplier1x,IconMultiplier2x:icons.IconMultiplier2x,IconMushroomOff:icons.IconMushroomOff,IconMushroom:icons.IconMushroom,IconMusicOff:icons.IconMusicOff,IconMusic:icons.IconMusic,IconNavigationOff:icons.IconNavigationOff,IconNavigation:icons.IconNavigation,IconNetworkOff:icons.IconNetworkOff,IconNetwork:icons.IconNetwork,IconNewSection:icons.IconNewSection,IconNewsOff:icons.IconNewsOff,IconNews:icons.IconNews,IconNfcOff:icons.IconNfcOff,IconNfc:icons.IconNfc,IconNoCopyright:icons.IconNoCopyright,IconNoCreativeCommons:icons.IconNoCreativeCommons,IconNoDerivatives:icons.IconNoDerivatives,IconNorthStar:icons.IconNorthStar,IconNoteOff:icons.IconNoteOff,IconNote:icons.IconNote,IconNotebookOff:icons.IconNotebookOff,IconNotebook:icons.IconNotebook,IconNotesOff:icons.IconNotesOff,IconNotes:icons.IconNotes,IconNotificationOff:icons.IconNotificationOff,IconNotification:icons.IconNotification,IconNumber0:icons.IconNumber0,IconNumber1:icons.IconNumber1,IconNumber2:icons.IconNumber2,IconNumber3:icons.IconNumber3,IconNumber4:icons.IconNumber4,IconNumber5:icons.IconNumber5,IconNumber6:icons.IconNumber6,IconNumber7:icons.IconNumber7,IconNumber8:icons.IconNumber8,IconNumber9:icons.IconNumber9,IconNumber:icons.IconNumber,IconNumbers:icons.IconNumbers,IconNurse:icons.IconNurse,IconOctagonOff:icons.IconOctagonOff,IconOctagon:icons.IconOctagon,IconOld:icons.IconOld,IconOlympicsOff:icons.IconOlympicsOff,IconOlympics:icons.IconOlympics,IconOmega:icons.IconOmega,IconOutbound:icons.IconOutbound,IconOutlet:icons.IconOutlet,IconOvalVertical:icons.IconOvalVertical,IconOval:icons.IconOval,IconOverline:icons.IconOverline,IconPackageOff:icons.IconPackageOff,IconPackage:icons.IconPackage,IconPackages:icons.IconPackages,IconPackgeExport:icons.IconPackgeExport,IconPackgeImport:icons.IconPackgeImport,IconPacman:icons.IconPacman,IconPageBreak:icons.IconPageBreak,IconPaintOff:icons.IconPaintOff,IconPaint:icons.IconPaint,IconPaletteOff:icons.IconPaletteOff,IconPalette:icons.IconPalette,IconPanoramaHorizontalOff:icons.IconPanoramaHorizontalOff,IconPanoramaHorizontal:icons.IconPanoramaHorizontal,IconPanoramaVerticalOff:icons.IconPanoramaVerticalOff,IconPanoramaVertical:icons.IconPanoramaVertical,IconPaperBagOff:icons.IconPaperBagOff,IconPaperBag:icons.IconPaperBag,IconPaperclip:icons.IconPaperclip,IconParachuteOff:icons.IconParachuteOff,IconParachute:icons.IconParachute,IconParenthesesOff:icons.IconParenthesesOff,IconParentheses:icons.IconParentheses,IconParkingOff:icons.IconParkingOff,IconParking:icons.IconParking,IconPawOff:icons.IconPawOff,IconPaw:icons.IconPaw,IconPeace:icons.IconPeace,IconPencilMinus:icons.IconPencilMinus,IconPencilOff:icons.IconPencilOff,IconPencilPlus:icons.IconPencilPlus,IconPencil:icons.IconPencil,IconPennant2:icons.IconPennant2,IconPennantOff:icons.IconPennantOff,IconPennant:icons.IconPennant,IconPentagonOff:icons.IconPentagonOff,IconPentagon:icons.IconPentagon,IconPepperOff:icons.IconPepperOff,IconPepper:icons.IconPepper,IconPercentage:icons.IconPercentage,IconPerspectiveOff:icons.IconPerspectiveOff,IconPerspective:icons.IconPerspective,IconPhoneCall:icons.IconPhoneCall,IconPhoneCalling:icons.IconPhoneCalling,IconPhoneCheck:icons.IconPhoneCheck,IconPhoneIncoming:icons.IconPhoneIncoming,IconPhoneOff:icons.IconPhoneOff,IconPhoneOutgoing:icons.IconPhoneOutgoing,IconPhonePause:icons.IconPhonePause,IconPhonePlus:icons.IconPhonePlus,IconPhoneX:icons.IconPhoneX,IconPhone:icons.IconPhone,IconPhotoCancel:icons.IconPhotoCancel,IconPhotoCheck:icons.IconPhotoCheck,IconPhotoDown:icons.IconPhotoDown,IconPhotoEdit:icons.IconPhotoEdit,IconPhotoHeart:icons.IconPhotoHeart,IconPhotoMinus:icons.IconPhotoMinus,IconPhotoOff:icons.IconPhotoOff,IconPhotoPlus:icons.IconPhotoPlus,IconPhotoSearch:icons.IconPhotoSearch,IconPhotoShield:icons.IconPhotoShield,IconPhotoStar:icons.IconPhotoStar,IconPhotoUp:icons.IconPhotoUp,IconPhotoX:icons.IconPhotoX,IconPhoto:icons.IconPhoto,IconPhysotherapist:icons.IconPhysotherapist,IconPictureInPictureOff:icons.IconPictureInPictureOff,IconPictureInPictureOn:icons.IconPictureInPictureOn,IconPictureInPictureTop:icons.IconPictureInPictureTop,IconPictureInPicture:icons.IconPictureInPicture,IconPigMoney:icons.IconPigMoney,IconPigOff:icons.IconPigOff,IconPig:icons.IconPig,IconPillOff:icons.IconPillOff,IconPill:icons.IconPill,IconPills:icons.IconPills,IconPin:icons.IconPin,IconPingPong:icons.IconPingPong,IconPinnedOff:icons.IconPinnedOff,IconPinned:icons.IconPinned,IconPizzaOff:icons.IconPizzaOff,IconPizza:icons.IconPizza,IconPlaneArrival:icons.IconPlaneArrival,IconPlaneDeparture:icons.IconPlaneDeparture,IconPlaneInflight:icons.IconPlaneInflight,IconPlaneOff:icons.IconPlaneOff,IconPlaneTilt:icons.IconPlaneTilt,IconPlane:icons.IconPlane,IconPlanetOff:icons.IconPlanetOff,IconPlanet:icons.IconPlanet,IconPlant2Off:icons.IconPlant2Off,IconPlant2:icons.IconPlant2,IconPlantOff:icons.IconPlantOff,IconPlant:icons.IconPlant,IconPlayCardOff:icons.IconPlayCardOff,IconPlayCard:icons.IconPlayCard,IconPlayerEject:icons.IconPlayerEject,IconPlayerPause:icons.IconPlayerPause,IconPlayerPlay:icons.IconPlayerPlay,IconPlayerRecord:icons.IconPlayerRecord,IconPlayerSkipBack:icons.IconPlayerSkipBack,IconPlayerSkipForward:icons.IconPlayerSkipForward,IconPlayerStop:icons.IconPlayerStop,IconPlayerTrackNext:icons.IconPlayerTrackNext,IconPlayerTrackPrev:icons.IconPlayerTrackPrev,IconPlaylistAdd:icons.IconPlaylistAdd,IconPlaylistOff:icons.IconPlaylistOff,IconPlaylistX:icons.IconPlaylistX,IconPlaylist:icons.IconPlaylist,IconPlaystationCircle:icons.IconPlaystationCircle,IconPlaystationSquare:icons.IconPlaystationSquare,IconPlaystationTriangle:icons.IconPlaystationTriangle,IconPlaystationX:icons.IconPlaystationX,IconPlugConnectedX:icons.IconPlugConnectedX,IconPlugConnected:icons.IconPlugConnected,IconPlugOff:icons.IconPlugOff,IconPlugX:icons.IconPlugX,IconPlug:icons.IconPlug,IconPlus:icons.IconPlus,IconPng:icons.IconPng,IconPodiumOff:icons.IconPodiumOff,IconPodium:icons.IconPodium,IconPointOff:icons.IconPointOff,IconPoint:icons.IconPoint,IconPointer:icons.IconPointer,IconPokeballOff:icons.IconPokeballOff,IconPokeball:icons.IconPokeball,IconPolaroid:icons.IconPolaroid,IconPolygonOff:icons.IconPolygonOff,IconPolygon:icons.IconPolygon,IconPoo:icons.IconPoo,IconPoolOff:icons.IconPoolOff,IconPool:icons.IconPool,IconPower:icons.IconPower,IconPray:icons.IconPray,IconPremiumRights:icons.IconPremiumRights,IconPrescription:icons.IconPrescription,IconPresentationAnalytics:icons.IconPresentationAnalytics,IconPresentationOff:icons.IconPresentationOff,IconPresentation:icons.IconPresentation,IconPrinterOff:icons.IconPrinterOff,IconPrinter:icons.IconPrinter,IconPrison:icons.IconPrison,IconPrompt:icons.IconPrompt,IconPropellerOff:icons.IconPropellerOff,IconPropeller:icons.IconPropeller,IconPuzzle2:icons.IconPuzzle2,IconPuzzleOff:icons.IconPuzzleOff,IconPuzzle:icons.IconPuzzle,IconPyramidOff:icons.IconPyramidOff,IconPyramid:icons.IconPyramid,IconQrcodeOff:icons.IconQrcodeOff,IconQrcode:icons.IconQrcode,IconQuestionMark:icons.IconQuestionMark,IconQuoteOff:icons.IconQuoteOff,IconQuote:icons.IconQuote,IconRadar2:icons.IconRadar2,IconRadarOff:icons.IconRadarOff,IconRadar:icons.IconRadar,IconRadioOff:icons.IconRadioOff,IconRadio:icons.IconRadio,IconRadioactiveOff:icons.IconRadioactiveOff,IconRadioactive:icons.IconRadioactive,IconRadiusBottomLeft:icons.IconRadiusBottomLeft,IconRadiusBottomRight:icons.IconRadiusBottomRight,IconRadiusTopLeft:icons.IconRadiusTopLeft,IconRadiusTopRight:icons.IconRadiusTopRight,IconRainbowOff:icons.IconRainbowOff,IconRainbow:icons.IconRainbow,IconRating12Plus:icons.IconRating12Plus,IconRating14Plus:icons.IconRating14Plus,IconRating16Plus:icons.IconRating16Plus,IconRating18Plus:icons.IconRating18Plus,IconRating21Plus:icons.IconRating21Plus,IconReceipt2:icons.IconReceipt2,IconReceiptOff:icons.IconReceiptOff,IconReceiptRefund:icons.IconReceiptRefund,IconReceiptTax:icons.IconReceiptTax,IconReceipt:icons.IconReceipt,IconRecharging:icons.IconRecharging,IconRecordMailOff:icons.IconRecordMailOff,IconRecordMail:icons.IconRecordMail,IconRectangleVertical:icons.IconRectangleVertical,IconRectangle:icons.IconRectangle,IconRecycleOff:icons.IconRecycleOff,IconRecycle:icons.IconRecycle,IconRefreshAlert:icons.IconRefreshAlert,IconRefreshDot:icons.IconRefreshDot,IconRefreshOff:icons.IconRefreshOff,IconRefresh:icons.IconRefresh,IconRegexOff:icons.IconRegexOff,IconRegex:icons.IconRegex,IconRegistered:icons.IconRegistered,IconRelationManyToMany:icons.IconRelationManyToMany,IconRelationOneToMany:icons.IconRelationOneToMany,IconRelationOneToOne:icons.IconRelationOneToOne,IconReload:icons.IconReload,IconRepeatOff:icons.IconRepeatOff,IconRepeatOnce:icons.IconRepeatOnce,IconRepeat:icons.IconRepeat,IconReplaceOff:icons.IconReplaceOff,IconReplace:icons.IconReplace,IconReportAnalytics:icons.IconReportAnalytics,IconReportMedical:icons.IconReportMedical,IconReportMoney:icons.IconReportMoney,IconReportOff:icons.IconReportOff,IconReportSearch:icons.IconReportSearch,IconReport:icons.IconReport,IconResize:icons.IconResize,IconRippleOff:icons.IconRippleOff,IconRipple:icons.IconRipple,IconRoadOff:icons.IconRoadOff,IconRoadSign:icons.IconRoadSign,IconRoad:icons.IconRoad,IconRobotOff:icons.IconRobotOff,IconRobot:icons.IconRobot,IconRocketOff:icons.IconRocketOff,IconRocket:icons.IconRocket,IconRollerSkating:icons.IconRollerSkating,IconRollercoasterOff:icons.IconRollercoasterOff,IconRollercoaster:icons.IconRollercoaster,IconRotate2:icons.IconRotate2,IconRotate360:icons.IconRotate360,IconRotateClockwise2:icons.IconRotateClockwise2,IconRotateClockwise:icons.IconRotateClockwise,IconRotateDot:icons.IconRotateDot,IconRotateRectangle:icons.IconRotateRectangle,IconRotate:icons.IconRotate,IconRouteOff:icons.IconRouteOff,IconRoute:icons.IconRoute,IconRouterOff:icons.IconRouterOff,IconRouter:icons.IconRouter,IconRowInsertBottom:icons.IconRowInsertBottom,IconRowInsertTop:icons.IconRowInsertTop,IconRss:icons.IconRss,IconRuler2Off:icons.IconRuler2Off,IconRuler2:icons.IconRuler2,IconRuler3:icons.IconRuler3,IconRulerMeasure:icons.IconRulerMeasure,IconRulerOff:icons.IconRulerOff,IconRuler:icons.IconRuler,IconRun:icons.IconRun,IconSailboatOff:icons.IconSailboatOff,IconSailboat:icons.IconSailboat,IconSalt:icons.IconSalt,IconSatelliteOff:icons.IconSatelliteOff,IconSatellite:icons.IconSatellite,IconSausage:icons.IconSausage,IconScaleOff:icons.IconScaleOff,IconScaleOutlineOff:icons.IconScaleOutlineOff,IconScaleOutline:icons.IconScaleOutline,IconScale:icons.IconScale,IconScanEye:icons.IconScanEye,IconScan:icons.IconScan,IconSchemaOff:icons.IconSchemaOff,IconSchema:icons.IconSchema,IconSchoolOff:icons.IconSchoolOff,IconSchool:icons.IconSchool,IconScissorsOff:icons.IconScissorsOff,IconScissors:icons.IconScissors,IconScooterElectric:icons.IconScooterElectric,IconScooter:icons.IconScooter,IconScreenShareOff:icons.IconScreenShareOff,IconScreenShare:icons.IconScreenShare,IconScreenshot:icons.IconScreenshot,IconScribbleOff:icons.IconScribbleOff,IconScribble:icons.IconScribble,IconScriptMinus:icons.IconScriptMinus,IconScriptPlus:icons.IconScriptPlus,IconScriptX:icons.IconScriptX,IconScript:icons.IconScript,IconScubaMaskOff:icons.IconScubaMaskOff,IconScubaMask:icons.IconScubaMask,IconSdk:icons.IconSdk,IconSearchOff:icons.IconSearchOff,IconSearch:icons.IconSearch,IconSectionSign:icons.IconSectionSign,IconSection:icons.IconSection,IconSeedingOff:icons.IconSeedingOff,IconSeeding:icons.IconSeeding,IconSelect:icons.IconSelect,IconSelector:icons.IconSelector,IconSendOff:icons.IconSendOff,IconSend:icons.IconSend,IconSeo:icons.IconSeo,IconSeparatorHorizontal:icons.IconSeparatorHorizontal,IconSeparatorVertical:icons.IconSeparatorVertical,IconSeparator:icons.IconSeparator,IconServer2:icons.IconServer2,IconServerBolt:icons.IconServerBolt,IconServerCog:icons.IconServerCog,IconServerOff:icons.IconServerOff,IconServer:icons.IconServer,IconServicemark:icons.IconServicemark,IconSettingsAutomation:icons.IconSettingsAutomation,IconSettingsOff:icons.IconSettingsOff,IconSettings:icons.IconSettings,IconShadowOff:icons.IconShadowOff,IconShadow:icons.IconShadow,IconShape2:icons.IconShape2,IconShape3:icons.IconShape3,IconShapeOff:icons.IconShapeOff,IconShape:icons.IconShape,IconShareOff:icons.IconShareOff,IconShare:icons.IconShare,IconShieldCheck:icons.IconShieldCheck,IconShieldCheckered:icons.IconShieldCheckered,IconShieldChevron:icons.IconShieldChevron,IconShieldHalfFilled:icons.IconShieldHalfFilled,IconShieldHalf:icons.IconShieldHalf,IconShieldLock:icons.IconShieldLock,IconShieldOff:icons.IconShieldOff,IconShieldX:icons.IconShieldX,IconShield:icons.IconShield,IconShipOff:icons.IconShipOff,IconShip:icons.IconShip,IconShirtOff:icons.IconShirtOff,IconShirtSport:icons.IconShirtSport,IconShirt:icons.IconShirt,IconShoeOff:icons.IconShoeOff,IconShoe:icons.IconShoe,IconShoppingCartDiscount:icons.IconShoppingCartDiscount,IconShoppingCartOff:icons.IconShoppingCartOff,IconShoppingCartPlus:icons.IconShoppingCartPlus,IconShoppingCartX:icons.IconShoppingCartX,IconShoppingCart:icons.IconShoppingCart,IconShovel:icons.IconShovel,IconShredder:icons.IconShredder,IconSignLeft:icons.IconSignLeft,IconSignRight:icons.IconSignRight,IconSignal3g:icons.IconSignal3g,IconSignal4gPlus:icons.IconSignal4gPlus,IconSignal4g:icons.IconSignal4g,IconSignal5g:icons.IconSignal5g,IconSignatureOff:icons.IconSignatureOff,IconSignature:icons.IconSignature,IconSitemapOff:icons.IconSitemapOff,IconSitemap:icons.IconSitemap,IconSkateboardOff:icons.IconSkateboardOff,IconSkateboard:icons.IconSkateboard,IconSkull:icons.IconSkull,IconSleigh:icons.IconSleigh,IconSlice:icons.IconSlice,IconSlideshow:icons.IconSlideshow,IconSmartHomeOff:icons.IconSmartHomeOff,IconSmartHome:icons.IconSmartHome,IconSmokingNo:icons.IconSmokingNo,IconSmoking:icons.IconSmoking,IconSnowflakeOff:icons.IconSnowflakeOff,IconSnowflake:icons.IconSnowflake,IconSnowman:icons.IconSnowman,IconSoccerField:icons.IconSoccerField,IconSocialOff:icons.IconSocialOff,IconSocial:icons.IconSocial,IconSock:icons.IconSock,IconSofaOff:icons.IconSofaOff,IconSofa:icons.IconSofa,IconSortAscending2:icons.IconSortAscending2,IconSortAscendingLetters:icons.IconSortAscendingLetters,IconSortAscendingNumbers:icons.IconSortAscendingNumbers,IconSortAscending:icons.IconSortAscending,IconSortDescending2:icons.IconSortDescending2,IconSortDescendingLetters:icons.IconSortDescendingLetters,IconSortDescendingNumbers:icons.IconSortDescendingNumbers,IconSortDescending:icons.IconSortDescending,IconSos:icons.IconSos,IconSoupOff:icons.IconSoupOff,IconSoup:icons.IconSoup,IconSourceCode:icons.IconSourceCode,IconSpaceOff:icons.IconSpaceOff,IconSpace:icons.IconSpace,IconSpacingHorizontal:icons.IconSpacingHorizontal,IconSpacingVertical:icons.IconSpacingVertical,IconSpade:icons.IconSpade,IconSpeakerphone:icons.IconSpeakerphone,IconSpeedboat:icons.IconSpeedboat,IconSpider:icons.IconSpider,IconSpiralOff:icons.IconSpiralOff,IconSpiral:icons.IconSpiral,IconSportBillard:icons.IconSportBillard,IconSpyOff:icons.IconSpyOff,IconSpy:icons.IconSpy,IconSquare0:icons.IconSquare0,IconSquare1:icons.IconSquare1,IconSquare2:icons.IconSquare2,IconSquare3:icons.IconSquare3,IconSquare4:icons.IconSquare4,IconSquare5:icons.IconSquare5,IconSquare6:icons.IconSquare6,IconSquare7:icons.IconSquare7,IconSquare8:icons.IconSquare8,IconSquare9:icons.IconSquare9,IconSquareA:icons.IconSquareA,IconSquareAsterisk:icons.IconSquareAsterisk,IconSquareB:icons.IconSquareB,IconSquareC:icons.IconSquareC,IconSquareCheck:icons.IconSquareCheck,IconSquareD:icons.IconSquareD,IconSquareDot:icons.IconSquareDot,IconSquareE:icons.IconSquareE,IconSquareF:icons.IconSquareF,IconSquareForbid2:icons.IconSquareForbid2,IconSquareForbid:icons.IconSquareForbid,IconSquareG:icons.IconSquareG,IconSquareH:icons.IconSquareH,IconSquareHalf:icons.IconSquareHalf,IconSquareI:icons.IconSquareI,IconSquareJ:icons.IconSquareJ,IconSquareK:icons.IconSquareK,IconSquareL:icons.IconSquareL,IconSquareM:icons.IconSquareM,IconSquareMinus:icons.IconSquareMinus,IconSquareN:icons.IconSquareN,IconSquareO:icons.IconSquareO,IconSquareOff:icons.IconSquareOff,IconSquareP:icons.IconSquareP,IconSquarePlus:icons.IconSquarePlus,IconSquareQ:icons.IconSquareQ,IconSquareR:icons.IconSquareR,IconSquareRoot2:icons.IconSquareRoot2,IconSquareRoot:icons.IconSquareRoot,IconSquareRotatedForbid2:icons.IconSquareRotatedForbid2,IconSquareRotatedForbid:icons.IconSquareRotatedForbid,IconSquareRotatedOff:icons.IconSquareRotatedOff,IconSquareRotated:icons.IconSquareRotated,IconSquareS:icons.IconSquareS,IconSquareT:icons.IconSquareT,IconSquareToggleHorizontal:icons.IconSquareToggleHorizontal,IconSquareToggle:icons.IconSquareToggle,IconSquareU:icons.IconSquareU,IconSquareW:icons.IconSquareW,IconSquareX:icons.IconSquareX,IconSquareY:icons.IconSquareY,IconSquareZ:icons.IconSquareZ,IconSquare:icons.IconSquare,IconSquaresDiagonal:icons.IconSquaresDiagonal,IconSquaresFilled:icons.IconSquaresFilled,IconStack2:icons.IconStack2,IconStack3:icons.IconStack3,IconStackPop:icons.IconStackPop,IconStackPush:icons.IconStackPush,IconStack:icons.IconStack,IconStairsDown:icons.IconStairsDown,IconStairsUp:icons.IconStairsUp,IconStairs:icons.IconStairs,IconStarHalf:icons.IconStarHalf,IconStarOff:icons.IconStarOff,IconStar:icons.IconStar,IconStarsOff:icons.IconStarsOff,IconStars:icons.IconStars,IconStatusChange:icons.IconStatusChange,IconSteam:icons.IconSteam,IconSteeringWheelOff:icons.IconSteeringWheelOff,IconSteeringWheel:icons.IconSteeringWheel,IconStepInto:icons.IconStepInto,IconStepOut:icons.IconStepOut,IconStethoscopeOff:icons.IconStethoscopeOff,IconStethoscope:icons.IconStethoscope,IconSticker:icons.IconSticker,IconStormOff:icons.IconStormOff,IconStorm:icons.IconStorm,IconStretching:icons.IconStretching,IconStrikethrough:icons.IconStrikethrough,IconSubmarine:icons.IconSubmarine,IconSubscript:icons.IconSubscript,IconSubtask:icons.IconSubtask,IconSumOff:icons.IconSumOff,IconSum:icons.IconSum,IconSunHigh:icons.IconSunHigh,IconSunLow:icons.IconSunLow,IconSunMoon:icons.IconSunMoon,IconSunOff:icons.IconSunOff,IconSunWind:icons.IconSunWind,IconSun:icons.IconSun,IconSunglasses:icons.IconSunglasses,IconSunrise:icons.IconSunrise,IconSunset2:icons.IconSunset2,IconSunset:icons.IconSunset,IconSuperscript:icons.IconSuperscript,IconSvg:icons.IconSvg,IconSwimming:icons.IconSwimming,IconSwitch2:icons.IconSwitch2,IconSwitch3:icons.IconSwitch3,IconSwitchHorizontal:icons.IconSwitchHorizontal,IconSwitchVertical:icons.IconSwitchVertical,IconSwitch:icons.IconSwitch,IconSwordOff:icons.IconSwordOff,IconSword:icons.IconSword,IconSwords:icons.IconSwords,IconTableAlias:icons.IconTableAlias,IconTableExport:icons.IconTableExport,IconTableImport:icons.IconTableImport,IconTableOff:icons.IconTableOff,IconTableOptions:icons.IconTableOptions,IconTableShortcut:icons.IconTableShortcut,IconTable:icons.IconTable,IconTagOff:icons.IconTagOff,IconTag:icons.IconTag,IconTagsOff:icons.IconTagsOff,IconTags:icons.IconTags,IconTallymark1:icons.IconTallymark1,IconTallymark2:icons.IconTallymark2,IconTallymark3:icons.IconTallymark3,IconTallymark4:icons.IconTallymark4,IconTallymarks:icons.IconTallymarks,IconTank:icons.IconTank,IconTargetOff:icons.IconTargetOff,IconTarget:icons.IconTarget,IconTelescopeOff:icons.IconTelescopeOff,IconTelescope:icons.IconTelescope,IconTemperatureCelsius:icons.IconTemperatureCelsius,IconTemperatureFahrenheit:icons.IconTemperatureFahrenheit,IconTemperatureMinus:icons.IconTemperatureMinus,IconTemperatureOff:icons.IconTemperatureOff,IconTemperaturePlus:icons.IconTemperaturePlus,IconTemperature:icons.IconTemperature,IconTemplateOff:icons.IconTemplateOff,IconTemplate:icons.IconTemplate,IconTentOff:icons.IconTentOff,IconTent:icons.IconTent,IconTerminal2:icons.IconTerminal2,IconTerminal:icons.IconTerminal,IconTestPipe2:icons.IconTestPipe2,IconTestPipeOff:icons.IconTestPipeOff,IconTestPipe:icons.IconTestPipe,IconTextCaption:icons.IconTextCaption,IconTextColor:icons.IconTextColor,IconTextDecrease:icons.IconTextDecrease,IconTextDirectionLtr:icons.IconTextDirectionLtr,IconTextDirectionRtl:icons.IconTextDirectionRtl,IconTextIncrease:icons.IconTextIncrease,IconTextOrientation:icons.IconTextOrientation,IconTextPlus:icons.IconTextPlus,IconTextRecognition:icons.IconTextRecognition,IconTextResize:icons.IconTextResize,IconTextSize:icons.IconTextSize,IconTextSpellcheck:icons.IconTextSpellcheck,IconTextWrapDisabled:icons.IconTextWrapDisabled,IconTextWrap:icons.IconTextWrap,IconThermometer:icons.IconThermometer,IconThumbDownOff:icons.IconThumbDownOff,IconThumbDown:icons.IconThumbDown,IconThumbUpOff:icons.IconThumbUpOff,IconThumbUp:icons.IconThumbUp,IconTicketOff:icons.IconTicketOff,IconTicket:icons.IconTicket,IconTie:icons.IconTie,IconTilde:icons.IconTilde,IconTiltShiftOff:icons.IconTiltShiftOff,IconTiltShift:icons.IconTiltShift,IconTimeline:icons.IconTimeline,IconTir:icons.IconTir,IconToggleLeft:icons.IconToggleLeft,IconToggleRight:icons.IconToggleRight,IconToiletPaperOff:icons.IconToiletPaperOff,IconToiletPaper:icons.IconToiletPaper,IconTool:icons.IconTool,IconToolsKitchen2Off:icons.IconToolsKitchen2Off,IconToolsKitchen2:icons.IconToolsKitchen2,IconToolsKitchenOff:icons.IconToolsKitchenOff,IconToolsKitchen:icons.IconToolsKitchen,IconToolsOff:icons.IconToolsOff,IconTools:icons.IconTools,IconTooltip:icons.IconTooltip,IconTornado:icons.IconTornado,IconTournament:icons.IconTournament,IconTowerOff:icons.IconTowerOff,IconTower:icons.IconTower,IconTrack:icons.IconTrack,IconTractor:icons.IconTractor,IconTrademark:icons.IconTrademark,IconTrafficConeOff:icons.IconTrafficConeOff,IconTrafficCone:icons.IconTrafficCone,IconTrafficLightsOff:icons.IconTrafficLightsOff,IconTrafficLights:icons.IconTrafficLights,IconTrain:icons.IconTrain,IconTransferIn:icons.IconTransferIn,IconTransferOut:icons.IconTransferOut,IconTransform:icons.IconTransform,IconTransitionBottom:icons.IconTransitionBottom,IconTransitionLeft:icons.IconTransitionLeft,IconTransitionRight:icons.IconTransitionRight,IconTransitionTop:icons.IconTransitionTop,IconTrashOff:icons.IconTrashOff,IconTrashX:icons.IconTrashX,IconTrash:icons.IconTrash,IconTree:icons.IconTree,IconTrees:icons.IconTrees,IconTrendingDown2:icons.IconTrendingDown2,IconTrendingDown3:icons.IconTrendingDown3,IconTrendingDown:icons.IconTrendingDown,IconTrendingUp2:icons.IconTrendingUp2,IconTrendingUp3:icons.IconTrendingUp3,IconTrendingUp:icons.IconTrendingUp,IconTriangleInverted:icons.IconTriangleInverted,IconTriangleOff:icons.IconTriangleOff,IconTriangleSquareCircle:icons.IconTriangleSquareCircle,IconTriangle:icons.IconTriangle,IconTriangles:icons.IconTriangles,IconTrident:icons.IconTrident,IconTrophyOff:icons.IconTrophyOff,IconTrophy:icons.IconTrophy,IconTrowel:icons.IconTrowel,IconTruckDelivery:icons.IconTruckDelivery,IconTruckLoading:icons.IconTruckLoading,IconTruckOff:icons.IconTruckOff,IconTruckReturn:icons.IconTruckReturn,IconTruck:icons.IconTruck,IconTxt:icons.IconTxt,IconTypographyOff:icons.IconTypographyOff,IconTypography:icons.IconTypography,IconUfOff:icons.IconUfOff,IconUfo:icons.IconUfo,IconUmbrellaOff:icons.IconUmbrellaOff,IconUmbrella:icons.IconUmbrella,IconUnderline:icons.IconUnderline,IconUnlink:icons.IconUnlink,IconUpload:icons.IconUpload,IconUrgent:icons.IconUrgent,IconUsb:icons.IconUsb,IconUserCheck:icons.IconUserCheck,IconUserCircle:icons.IconUserCircle,IconUserExclamation:icons.IconUserExclamation,IconUserMinus:icons.IconUserMinus,IconUserOff:icons.IconUserOff,IconUserPlus:icons.IconUserPlus,IconUserSearch:icons.IconUserSearch,IconUserX:icons.IconUserX,IconUser:icons.IconUser,IconUsers:icons.IconUsers,IconUvIndex:icons.IconUvIndex,IconUxCircle:icons.IconUxCircle,IconVaccineBottleOff:icons.IconVaccineBottleOff,IconVaccineBottle:icons.IconVaccineBottle,IconVaccineOff:icons.IconVaccineOff,IconVaccine:icons.IconVaccine,IconVariableMinus:icons.IconVariableMinus,IconVariableOff:icons.IconVariableOff,IconVariablePlus:icons.IconVariablePlus,IconVariable:icons.IconVariable,IconVectorBezier2:icons.IconVectorBezier2,IconVectorBezier:icons.IconVectorBezier,IconVectorOff:icons.IconVectorOff,IconVectorTriangleOff:icons.IconVectorTriangleOff,IconVectorTriangle:icons.IconVectorTriangle,IconVector:icons.IconVector,IconVenus:icons.IconVenus,IconVersionsOff:icons.IconVersionsOff,IconVersions:icons.IconVersions,IconVideoMinus:icons.IconVideoMinus,IconVideoOff:icons.IconVideoOff,IconVideoPlus:icons.IconVideoPlus,IconVideo:icons.IconVideo,IconView360Off:icons.IconView360Off,IconView360:icons.IconView360,IconViewfinderOff:icons.IconViewfinderOff,IconViewfinder:icons.IconViewfinder,IconViewportNarrow:icons.IconViewportNarrow,IconViewportWide:icons.IconViewportWide,IconVinyl:icons.IconVinyl,IconVipOff:icons.IconVipOff,IconVip:icons.IconVip,IconVirusOff:icons.IconVirusOff,IconVirusSearch:icons.IconVirusSearch,IconVirus:icons.IconVirus,IconVocabularyOff:icons.IconVocabularyOff,IconVocabulary:icons.IconVocabulary,IconVolume2:icons.IconVolume2,IconVolume3:icons.IconVolume3,IconVolumeOff:icons.IconVolumeOff,IconVolume:icons.IconVolume,IconWalk:icons.IconWalk,IconWallOff:icons.IconWallOff,IconWall:icons.IconWall,IconWalletOff:icons.IconWalletOff,IconWallet:icons.IconWallet,IconWallpaperOff:icons.IconWallpaperOff,IconWallpaper:icons.IconWallpaper,IconWandOff:icons.IconWandOff,IconWand:icons.IconWand,IconWashDry1:icons.IconWashDry1,IconWashDry2:icons.IconWashDry2,IconWashDry3:icons.IconWashDry3,IconWashDryA:icons.IconWashDryA,IconWashDryDip:icons.IconWashDryDip,IconWashDryF:icons.IconWashDryF,IconWashDryHang:icons.IconWashDryHang,IconWashDryOff:icons.IconWashDryOff,IconWashDryP:icons.IconWashDryP,IconWashDryShade:icons.IconWashDryShade,IconWashDryW:icons.IconWashDryW,IconWashDry:icons.IconWashDry,IconWashDrycleanOff:icons.IconWashDrycleanOff,IconWashDryclean:icons.IconWashDryclean,IconWashGentle:icons.IconWashGentle,IconWashMachine:icons.IconWashMachine,IconWashOff:icons.IconWashOff,IconWashPress:icons.IconWashPress,IconWashTemperature1:icons.IconWashTemperature1,IconWashTemperature2:icons.IconWashTemperature2,IconWashTemperature3:icons.IconWashTemperature3,IconWashTemperature4:icons.IconWashTemperature4,IconWashTemperature5:icons.IconWashTemperature5,IconWashTemperature6:icons.IconWashTemperature6,IconWashTumbleDry:icons.IconWashTumbleDry,IconWashTumbleOff:icons.IconWashTumbleOff,IconWash:icons.IconWash,IconWaveSawTool:icons.IconWaveSawTool,IconWaveSine:icons.IconWaveSine,IconWaveSquare:icons.IconWaveSquare,IconWebhookOff:icons.IconWebhookOff,IconWebhook:icons.IconWebhook,IconWheelchairOff:icons.IconWheelchairOff,IconWheelchair:icons.IconWheelchair,IconWifi0:icons.IconWifi0,IconWifi1:icons.IconWifi1,IconWifi2:icons.IconWifi2,IconWifiOff:icons.IconWifiOff,IconWifi:icons.IconWifi,IconWindOff:icons.IconWindOff,IconWind:icons.IconWind,IconWindmillOff:icons.IconWindmillOff,IconWindmill:icons.IconWindmill,IconWindowMaximize:icons.IconWindowMaximize,IconWindowMinimize:icons.IconWindowMinimize,IconWindowOff:icons.IconWindowOff,IconWindow:icons.IconWindow,IconWindsock:icons.IconWindsock,IconWiperWash:icons.IconWiperWash,IconWiper:icons.IconWiper,IconWoman:icons.IconWoman,IconWood:icons.IconWood,IconWorldDownload:icons.IconWorldDownload,IconWorldLatitude:icons.IconWorldLatitude,IconWorldLongitude:icons.IconWorldLongitude,IconWorldOff:icons.IconWorldOff,IconWorldUpload:icons.IconWorldUpload,IconWorldWww:icons.IconWorldWww,IconWorld:icons.IconWorld,IconWreckingBall:icons.IconWreckingBall,IconWritingOff:icons.IconWritingOff,IconWritingSignOff:icons.IconWritingSignOff,IconWritingSign:icons.IconWritingSign,IconWriting:icons.IconWriting,IconX:icons.IconX,IconXboxA:icons.IconXboxA,IconXboxB:icons.IconXboxB,IconXboxX:icons.IconXboxX,IconXboxY:icons.IconXboxY,IconYinYang:icons.IconYinYang,IconYoga:icons.IconYoga,IconZeppelinOff:icons.IconZeppelinOff,IconZeppelin:icons.IconZeppelin,IconZip:icons.IconZip,IconZodiacAquarius:icons.IconZodiacAquarius,IconZodiacAries:icons.IconZodiacAries,IconZodiacCancer:icons.IconZodiacCancer,IconZodiacCapricorn:icons.IconZodiacCapricorn,IconZodiacGemini:icons.IconZodiacGemini,IconZodiacLeo:icons.IconZodiacLeo,IconZodiacLibra:icons.IconZodiacLibra,IconZodiacPisces:icons.IconZodiacPisces,IconZodiacSagittarius:icons.IconZodiacSagittarius,IconZodiacScorpio:icons.IconZodiacScorpio,IconZodiacTaurus:icons.IconZodiacTaurus,IconZodiacVirgo:icons.IconZodiacVirgo,IconZoomCancel:icons.IconZoomCancel,IconZoomCheck:icons.IconZoomCheck,IconZoomCode:icons.IconZoomCode,IconZoomExclamation:icons.IconZoomExclamation,IconZoomInArea:icons.IconZoomInArea,IconZoomIn:icons.IconZoomIn,IconZoomMoney:icons.IconZoomMoney,IconZoomOutArea:icons.IconZoomOutArea,IconZoomOut:icons.IconZoomOut,IconZoomPan:icons.IconZoomPan,IconZoomQuestion:icons.IconZoomQuestion,IconZoomReplace:icons.IconZoomReplace,IconZoomReset:icons.IconZoomReset,IconZzzOff:icons.IconZzzOff,IconZzz:icons.IconZzz},iconMapping={"terp-purchase":AntIcons.ShoppingCartOutlined,"terp-graph":AntIcons.PieChartOutlined,"terp-crm":AntIcons.ContactsOutlined,"terp-hr":TablerIcons.IconFriends,"terp-account":TablerIcons.IconBuildingBank,"terp-project":TablerIcons.IconChecklist,"terp-administration":TablerIcons.IconAdjustments,"terp-partner":AntIcons.TeamOutlined,"terp-mrp":AntIcons.BuildOutlined,"terp-product":AntIcons.ShoppingOutlined,STOCK_JUSTIFY_FILL:AntIcons.UnorderedListOutlined,STOCK_INDENT:TablerIcons.IconIndentIncrease,STOCK_HELP:AntIcons.QuestionOutlined,STOCK_GO_UP:AntIcons.ArrowUpOutlined,STOCK_SORT_DESCENDING:AntIcons.SortDescendingOutlined,STOCK_ADD:AntIcons.PlusOutlined,STOCK_GOTO_LAST:AntIcons.FastForwardOutlined,STOCK_FIND:AntIcons.SearchOutlined,STOCK_PROPERTIES:AntIcons.ControlOutlined,STOCK_DIALOG_INFO:AntIcons.InfoOutlined,STOCK_FLOPPY:AntIcons.UsbOutlined,STOCK_JUSTIFY_CENTER:AntIcons.AlignCenterOutlined,STOCK_GO_BACK:AntIcons.ArrowLeftOutlined,STOCK_UNDERLINE:AntIcons.UnderlineOutlined,STOCK_BOLD:AntIcons.BoldOutlined,STOCK_APPLY:AntIcons.CheckOutlined,STOCK_ZOOM_OUT:AntIcons.ZoomOutOutlined,STOCK_STRIKETHROUGH:AntIcons.StrikethroughOutlined,STOCK_MEDIA_REWIND:AntIcons.BackwardOutlined,STOCK_PRINT:AntIcons.PrinterOutlined,STOCK_NO:AntIcons.CloseOutlined,STOCK_GOTO_FIRST:AntIcons.FastBackwardOutlined,STOCK_CLOSE:AntIcons.CloseOutlined,STOCK_REMOVE:AntIcons.MinusOutlined,STOCK_CUT:AntIcons.ScissorOutlined,STOCK_DIALOG_AUTHENTICATION:AntIcons.SafetyOutlined,STOCK_ZOOM_FIT:AntIcons.ExpandOutlined,STOCK_JUMP_TO:AntIcons.SelectOutlined,STOCK_HARDDISK:AntIcons.HddOutlined,STOCK_SAVE_AS:AntIcons.SaveOutlined,STOCK_UNDO:AntIcons.UndoOutlined,STOCK_JUSTIFY_RIGHT:AntIcons.AlignRightOutlined,STOCK_DIALOG_ERROR:AntIcons.CloseCircleOutlined,STOCK_INDEX:AntIcons.ProfileOutlined,STOCK_GOTO_BOTTOM:AntIcons.VerticalAlignBottomOutlined,STOCK_MEDIA_NEXT:AntIcons.StepForwardOutlined,STOCK_REDO:AntIcons.RedoOutlined,STOCK_COPY:AntIcons.CopyOutlined,STOCK_MEDIA_PAUSE:AntIcons.PauseOutlined,STOCK_GO_FORWARD:AntIcons.ArrowRightOutlined,STOCK_UNDELETE:AntIcons.UndoOutlined,STOCK_EXECUTE:AntIcons.SettingOutlined,STOCK_SAVE:AntIcons.SaveOutlined,STOCK_DIALOG_QUESTION:AntIcons.QuestionCircleOutlined,STOCK_SORT_ASCENDING:AntIcons.SortAscendingOutlined,STOCK_REFRESH:AntIcons.ReloadOutlined,STOCK_MEDIA_FORWARD:AntIcons.ForwardOutlined,STOCK_STOP:AntIcons.BorderOutlined,STOCK_PRINT_PREVIEW:AntIcons.PrinterOutlined,STOCK_HOME:AntIcons.HomeOutlined,STOCK_PASTE:AntIcons.CarryOutOutlined,STOCK_ZOOM_100:AntIcons.ZoomInOutlined,STOCK_FIND_AND_REPLACE:AntIcons.FileSearchOutlined,STOCK_DIALOG_WARNING:AntIcons.WarningOutlined,STOCK_ZOOM_IN:AntIcons.ZoomInOutlined,STOCK_CONVERT:AntIcons.ExportOutlined,STOCK_ITALIC:AntIcons.ItalicOutlined,STOCK_YES:AntIcons.CheckOutlined,STOCK_MEDIA_PLAY:AntIcons.PlayCircleOutlined,STOCK_MEDIA_RECORD:AntIcons.VideoCameraOutlined,STOCK_MEDIA_PREVIOUS:AntIcons.StepBackwardOutlined,STOCK_NEW:AntIcons.FileAddOutlined,STOCK_CANCEL:AntIcons.CloseOutlined,STOCK_DISCONNECT:AntIcons.ApiOutlined,STOCK_JUSTIFY_LEFT:AntIcons.AlignLeftOutlined,STOCK_FILE:AntIcons.FileOutlined,STOCK_QUIT:AntIcons.LogoutOutlined,STOCK_EDIT:AntIcons.EditOutlined,STOCK_CONNECT:AntIcons.ApiOutlined,STOCK_GO_DOWN:AntIcons.CaretDownOutlined,STOCK_NETWORK:AntIcons.ApartmentOutlined,STOCK_OK:AntIcons.CheckOutlined,STOCK_GOTO_TOP:AntIcons.VerticalAlignTopOutlined,STOCK_ABOUT:AntIcons.StarOutlined,STOCK_COLOR_PICKER:AntIcons.AimOutlined,STOCK_SELECT_FONT:AntIcons.FontSizeOutlined,STOCK_DELETE:AntIcons.DeleteOutlined,STOCK_DND:AntIcons.FileTextOutlined,STOCK_CLEAR:AntIcons.CloseSquareOutlined,STOCK_UNINDENT:AntIcons.AlignLeftOutlined,STOCK_PREFERENCES:AntIcons.SettingOutlined},iconMapper=e=>{if(e.indexOf("gtk-")!==-1){const c=`STOCK_${e.replace("gtk-","").replace("-","_").toUpperCase()}`;return iconMapping[c]}if(iconMapping.hasOwnProperty(e))return iconMapping[e];const o=`${e.split("-").map(s=>s.replace(/\w\S*/g,c=>c.charAt(0).toUpperCase()+c.slice(1).toLowerCase())).join("")}`,r=`${o}Outlined`;if(AntIcons.hasOwnProperty(r))return AntIcons[r];const a=`Icon${o}`;if(TablerIcons.hasOwnProperty(a))return()=>React__default.default.createElement(Icon__default.default,{component:TablerIcons[a]})},Button=e=>{const{ooui:o}=e,{id:r,label:a,activated:s,buttonType:c,confirmMessage:l,icon:d,context:u,readOnly:f}=o,p=React.useContext(FormContext$1),{executeButtonAction:m}=p||{},[I,h]=React.useState(!1),{lang:g}=React.useContext(LocaleContext);async function C(){h(!0),await m({type:c,action:r,context:u}),h(!1)}function b(){if(l){showDialog$9({confirmMessage:l,lang:g,onOk:()=>{C()}});return}C()}function y(){if(I)return jsxRuntime.jsx(Icon.LoadingOutlined,{});if(d){const v=iconMapper(d);return v&&jsxRuntime.jsx(v,{})}}return jsxRuntime.jsx(Field$1,{ooui:o,children:jsxRuntime.jsx(antd.Button,{block:!0,disabled:!s||f,onClick:b,icon:y(),type:o.primary?"primary":"default",danger:o.danger,style:{whiteSpace:"normal",height:"auto"},children:a})})},ButtonGroup=e=>{const{ooui:o}=e,{defaultButton:r,secondaryButtons:a}=o,{id:s,caption:c,activated:l,buttonType:d,confirmMessage:u,icon:f,primary:p,danger:m,context:I,readOnly:h}=r||{},g=React.useContext(FormContext$1),{executeButtonAction:C}=g||{},[b,y]=React.useState(!1),{lang:v}=React.useContext(LocaleContext);function O(){if(b)return jsxRuntime.jsx(Icon.LoadingOutlined,{});if(f){const F=iconMapper(f);return F&&jsxRuntime.jsx(F,{})}}async function w(){d&&s&&(y(!0),await C({type:d,action:s,context:I}),y(!1))}function _(){if(u){showDialog$9({confirmMessage:u,lang:v,onOk:()=>{w()}});return}w()}return jsxRuntime.jsx(Field$1,{ooui:new ooui.Field({ooui:o}),children:jsxRuntime.jsxs(antd.Dropdown.Button,{disabled:!l||h,onClick:_,icon:jsxRuntime.jsx(Icon.DownOutlined,{}),type:p?"primary":void 0,overlay:jsxRuntime.jsx(Items,{ooui:a}),children:[O(),c]})})},Items=e=>{const{ooui:o}=e,r=o.map(a=>{const{id:s,caption:c,activated:l,buttonType:d,confirmMessage:u,icon:f,context:p,readOnly:m,danger:I}=a,h=React.useContext(FormContext$1),{executeButtonAction:g}=h||{},[C,b]=React.useState(!1),{lang:y}=React.useContext(LocaleContext);async function v(){b(!0),await g({type:d,action:s,context:p}),b(!1)}function O(){if(u){showDialog$9({confirmMessage:u,lang:y,onOk:()=>{v()}});return}v()}function w(){if(C)return jsxRuntime.jsx(Icon.LoadingOutlined,{});if(f){const _=iconMapper(f);return _&&jsxRuntime.jsx(_,{})}}return jsxRuntime.jsx(antd.Menu.Item,{disabled:!l||m,onClick:O,icon:w(),danger:I,children:c})});return jsxRuntime.jsx(antd.Menu,{children:r})},Config={requiredClass:"bg-blue-100",requiredColor:"#DBEAFE"},MODAL_WIDTH_CONSTANT=.7;function getWindowDimensions(){const{innerWidth:e,innerHeight:o}=window;return{width:e,height:o}}function useWindowDimensions(){const[e,o]=React.useState(getWindowDimensions());return React.useEffect(()=>{function r(){o(getWindowDimensions())}return window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)},[]),{modalWidth:e.width*MODAL_WIDTH_CONSTANT,modalHeight:e.height,width:e.width,height:e.height}}class ConnectionProvider{static init(o){ConnectionProvider.handler=o}static getHandler(){if(!ConnectionProvider.handler)throw"Must call init() first with a valid ConnectionProvider instance";return ConnectionProvider.handler}}var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function getAugmentedNamespace(e){var o=e.default;if(typeof o=="function"){var r=function(){return o.apply(this,arguments)};r.prototype=o.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(a){var s=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(r,a,s.get?s:{enumerable:!0,get:function(){return e[a]}})}),r}var TextArea$2={},interopRequireWildcard={exports:{}},_typeof$2={exports:{}};(function(e){function o(r){return e.exports=o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},e.exports.__esModule=!0,e.exports.default=e.exports,o(r)}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports})(_typeof$2),function(e){var o=_typeof$2.exports.default;function r(s){if(typeof WeakMap!="function")return null;var c=new WeakMap,l=new WeakMap;return(r=function(u){return u?l:c})(s)}function a(s,c){if(!c&&s&&s.__esModule)return s;if(s===null||o(s)!=="object"&&typeof s!="function")return{default:s};var l=r(c);if(l&&l.has(s))return l.get(s);var d={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in s)if(f!=="default"&&Object.prototype.hasOwnProperty.call(s,f)){var p=u?Object.getOwnPropertyDescriptor(s,f):null;p&&(p.get||p.set)?Object.defineProperty(d,f,p):d[f]=s[f]}return d.default=s,l&&l.set(s,d),d}e.exports=a,e.exports.__esModule=!0,e.exports.default=e.exports}(interopRequireWildcard);var interopRequireDefault={exports:{}};(function(e){function o(r){return r&&r.__esModule?r:{default:r}}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports})(interopRequireDefault);var toConsumableArray={exports:{}},arrayWithoutHoles={exports:{}},arrayLikeToArray={exports:{}},hasRequiredArrayLikeToArray;function requireArrayLikeToArray(){return hasRequiredArrayLikeToArray||(hasRequiredArrayLikeToArray=1,function(e){function o(r,a){(a==null||a>r.length)&&(a=r.length);for(var s=0,c=new Array(a);s<a;s++)c[s]=r[s];return c}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports}(arrayLikeToArray)),arrayLikeToArray.exports}var hasRequiredArrayWithoutHoles;function requireArrayWithoutHoles(){return hasRequiredArrayWithoutHoles||(hasRequiredArrayWithoutHoles=1,function(e){var o=requireArrayLikeToArray();function r(a){if(Array.isArray(a))return o(a)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(arrayWithoutHoles)),arrayWithoutHoles.exports}var iterableToArray={exports:{}},hasRequiredIterableToArray;function requireIterableToArray(){return hasRequiredIterableToArray||(hasRequiredIterableToArray=1,function(e){function o(r){if(typeof Symbol<"u"&&r[Symbol.iterator]!=null||r["@@iterator"]!=null)return Array.from(r)}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports}(iterableToArray)),iterableToArray.exports}var unsupportedIterableToArray={exports:{}},hasRequiredUnsupportedIterableToArray;function requireUnsupportedIterableToArray(){return hasRequiredUnsupportedIterableToArray||(hasRequiredUnsupportedIterableToArray=1,function(e){var o=requireArrayLikeToArray();function r(a,s){if(!!a){if(typeof a=="string")return o(a,s);var c=Object.prototype.toString.call(a).slice(8,-1);if(c==="Object"&&a.constructor&&(c=a.constructor.name),c==="Map"||c==="Set")return Array.from(a);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return o(a,s)}}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(unsupportedIterableToArray)),unsupportedIterableToArray.exports}var nonIterableSpread={exports:{}},hasRequiredNonIterableSpread;function requireNonIterableSpread(){return hasRequiredNonIterableSpread||(hasRequiredNonIterableSpread=1,function(e){function o(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
2
2
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports}(nonIterableSpread)),nonIterableSpread.exports}var hasRequiredToConsumableArray;function requireToConsumableArray(){return hasRequiredToConsumableArray||(hasRequiredToConsumableArray=1,function(e){var o=requireArrayWithoutHoles(),r=requireIterableToArray(),a=requireUnsupportedIterableToArray(),s=requireNonIterableSpread();function c(l){return o(l)||r(l)||a(l)||s()}e.exports=c,e.exports.__esModule=!0,e.exports.default=e.exports}(toConsumableArray)),toConsumableArray.exports}var _extends$1={exports:{}},hasRequired_extends;function require_extends(){return hasRequired_extends||(hasRequired_extends=1,function(e){function o(){return e.exports=o=Object.assign?Object.assign.bind():function(r){for(var a=1;a<arguments.length;a++){var s=arguments[a];for(var c in s)Object.prototype.hasOwnProperty.call(s,c)&&(r[c]=s[c])}return r},e.exports.__esModule=!0,e.exports.default=e.exports,o.apply(this,arguments)}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports}(_extends$1)),_extends$1.exports}var defineProperty={exports:{}},hasRequiredDefineProperty;function requireDefineProperty(){return hasRequiredDefineProperty||(hasRequiredDefineProperty=1,function(e){function o(r,a,s){return a in r?Object.defineProperty(r,a,{value:s,enumerable:!0,configurable:!0,writable:!0}):r[a]=s,r}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports}(defineProperty)),defineProperty.exports}var slicedToArray={exports:{}},arrayWithHoles={exports:{}},hasRequiredArrayWithHoles;function requireArrayWithHoles(){return hasRequiredArrayWithHoles||(hasRequiredArrayWithHoles=1,function(e){function o(r){if(Array.isArray(r))return r}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports}(arrayWithHoles)),arrayWithHoles.exports}var iterableToArrayLimit={exports:{}},hasRequiredIterableToArrayLimit;function requireIterableToArrayLimit(){return hasRequiredIterableToArrayLimit||(hasRequiredIterableToArrayLimit=1,function(e){function o(r,a){var s=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var c=[],l=!0,d=!1,u,f;try{for(s=s.call(r);!(l=(u=s.next()).done)&&(c.push(u.value),!(a&&c.length===a));l=!0);}catch(p){d=!0,f=p}finally{try{!l&&s.return!=null&&s.return()}finally{if(d)throw f}}return c}}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports}(iterableToArrayLimit)),iterableToArrayLimit.exports}var nonIterableRest={exports:{}},hasRequiredNonIterableRest;function requireNonIterableRest(){return hasRequiredNonIterableRest||(hasRequiredNonIterableRest=1,function(e){function o(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
3
3
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports}(nonIterableRest)),nonIterableRest.exports}var hasRequiredSlicedToArray;function requireSlicedToArray(){return hasRequiredSlicedToArray||(hasRequiredSlicedToArray=1,function(e){var o=requireArrayWithHoles(),r=requireIterableToArrayLimit(),a=requireUnsupportedIterableToArray(),s=requireNonIterableRest();function c(l,d){return o(l)||r(l,d)||a(l,d)||s()}e.exports=c,e.exports.__esModule=!0,e.exports.default=e.exports}(slicedToArray)),slicedToArray.exports}function _classCallCheck(e,o){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,o){for(var r=0;r<o.length;r++){var a=o[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function _createClass(e,o,r){return o&&_defineProperties(e.prototype,o),r&&_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function _setPrototypeOf$1(e,o){return _setPrototypeOf$1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,s){return a.__proto__=s,a},_setPrototypeOf$1(e,o)}function _inherits(e,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(o&&o.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),o&&_setPrototypeOf$1(e,o)}function _getPrototypeOf$1(e){return _getPrototypeOf$1=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},_getPrototypeOf$1(e)}function _isNativeReflectConstruct$1(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _typeof$1(e){return _typeof$1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof$1(e)}function _assertThisInitialized(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _possibleConstructorReturn(e,o){if(o&&(_typeof$1(o)==="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(e)}function _createSuper(e){var o=_isNativeReflectConstruct$1();return function(){var a=_getPrototypeOf$1(e),s;if(o){var c=_getPrototypeOf$1(this).constructor;s=Reflect.construct(a,arguments,c)}else s=a.apply(this,arguments);return _possibleConstructorReturn(this,s)}}function _defineProperty$1(e,o,r){return o in e?Object.defineProperty(e,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[o]=r,e}function ownKeys$3(e,o){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);o&&(a=a.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,a)}return r}function _objectSpread2$1(e){for(var o=1;o<arguments.length;o++){var r=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$3(Object(r),!0).forEach(function(a){_defineProperty$1(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys$3(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function findDOMNode(e){return e instanceof HTMLElement?e:ReactDOM__default.default.findDOMNode(e)}var reactIs={exports:{}},reactIs_production_min={};/** @license React v16.13.1
|
|
4
4
|
* react-is.production.min.js
|
|
@@ -7,14 +7,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7
7
|
*
|
|
8
8
|
* This source code is licensed under the MIT license found in the
|
|
9
9
|
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/var hasRequiredReactIs_production_min;function requireReactIs_production_min(){if(hasRequiredReactIs_production_min)return reactIs_production_min;hasRequiredReactIs_production_min=1;var e=typeof Symbol=="function"&&Symbol.for,o=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,a=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,c=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,d=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,I=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,
|
|
10
|
+
*/var hasRequiredReactIs_production_min;function requireReactIs_production_min(){if(hasRequiredReactIs_production_min)return reactIs_production_min;hasRequiredReactIs_production_min=1;var e=typeof Symbol=="function"&&Symbol.for,o=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,a=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,c=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,d=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,I=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,C=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function O(_){if(typeof _=="object"&&_!==null){var F=_.$$typeof;switch(F){case o:switch(_=_.type,_){case u:case f:case a:case c:case s:case m:return _;default:switch(_=_&&_.$$typeof,_){case d:case p:case g:case h:case l:return _;default:return F}}case r:return F}}}function w(_){return O(_)===f}return reactIs_production_min.AsyncMode=u,reactIs_production_min.ConcurrentMode=f,reactIs_production_min.ContextConsumer=d,reactIs_production_min.ContextProvider=l,reactIs_production_min.Element=o,reactIs_production_min.ForwardRef=p,reactIs_production_min.Fragment=a,reactIs_production_min.Lazy=g,reactIs_production_min.Memo=h,reactIs_production_min.Portal=r,reactIs_production_min.Profiler=c,reactIs_production_min.StrictMode=s,reactIs_production_min.Suspense=m,reactIs_production_min.isAsyncMode=function(_){return w(_)||O(_)===u},reactIs_production_min.isConcurrentMode=w,reactIs_production_min.isContextConsumer=function(_){return O(_)===d},reactIs_production_min.isContextProvider=function(_){return O(_)===l},reactIs_production_min.isElement=function(_){return typeof _=="object"&&_!==null&&_.$$typeof===o},reactIs_production_min.isForwardRef=function(_){return O(_)===p},reactIs_production_min.isFragment=function(_){return O(_)===a},reactIs_production_min.isLazy=function(_){return O(_)===g},reactIs_production_min.isMemo=function(_){return O(_)===h},reactIs_production_min.isPortal=function(_){return O(_)===r},reactIs_production_min.isProfiler=function(_){return O(_)===c},reactIs_production_min.isStrictMode=function(_){return O(_)===s},reactIs_production_min.isSuspense=function(_){return O(_)===m},reactIs_production_min.isValidElementType=function(_){return typeof _=="string"||typeof _=="function"||_===a||_===f||_===c||_===s||_===m||_===I||typeof _=="object"&&_!==null&&(_.$$typeof===g||_.$$typeof===h||_.$$typeof===l||_.$$typeof===d||_.$$typeof===p||_.$$typeof===b||_.$$typeof===y||_.$$typeof===v||_.$$typeof===C)},reactIs_production_min.typeOf=O,reactIs_production_min}var reactIs_development={};/** @license React v16.13.1
|
|
11
11
|
* react-is.development.js
|
|
12
12
|
*
|
|
13
13
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var hasRequiredReactIs_development;function requireReactIs_development(){return hasRequiredReactIs_development||(hasRequiredReactIs_development=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,o=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,a=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,c=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,d=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,I=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,C=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,g=e?Symbol.for("react.scope"):60119;function O(j){return typeof j=="string"||typeof j=="function"||j===a||j===f||j===c||j===s||j===m||j===I||typeof j=="object"&&j!==null&&(j.$$typeof===v||j.$$typeof===h||j.$$typeof===l||j.$$typeof===d||j.$$typeof===p||j.$$typeof===b||j.$$typeof===y||j.$$typeof===g||j.$$typeof===C)}function w(j){if(typeof j=="object"&&j!==null){var we=j.$$typeof;switch(we){case o:var je=j.type;switch(je){case u:case f:case a:case c:case s:case m:return je;default:var tt=je&&je.$$typeof;switch(tt){case d:case p:case v:case h:case l:return tt;default:return we}}case r:return we}}}var _=u,F=f,L=d,E=l,P=o,A=p,W=a,J=v,Y=h,z=r,Q=c,oe=s,te=m,X=!1;function ce(j){return X||(X=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),Re(j)||w(j)===u}function Re(j){return w(j)===f}function xe(j){return w(j)===d}function de(j){return w(j)===l}function Ce(j){return typeof j=="object"&&j!==null&&j.$$typeof===o}function ee(j){return w(j)===p}function ue(j){return w(j)===a}function N(j){return w(j)===v}function U(j){return w(j)===h}function re(j){return w(j)===r}function Te(j){return w(j)===c}function Fe(j){return w(j)===s}function M(j){return w(j)===m}reactIs_development.AsyncMode=_,reactIs_development.ConcurrentMode=F,reactIs_development.ContextConsumer=L,reactIs_development.ContextProvider=E,reactIs_development.Element=P,reactIs_development.ForwardRef=A,reactIs_development.Fragment=W,reactIs_development.Lazy=J,reactIs_development.Memo=Y,reactIs_development.Portal=z,reactIs_development.Profiler=Q,reactIs_development.StrictMode=oe,reactIs_development.Suspense=te,reactIs_development.isAsyncMode=ce,reactIs_development.isConcurrentMode=Re,reactIs_development.isContextConsumer=xe,reactIs_development.isContextProvider=de,reactIs_development.isElement=Ce,reactIs_development.isForwardRef=ee,reactIs_development.isFragment=ue,reactIs_development.isLazy=N,reactIs_development.isMemo=U,reactIs_development.isPortal=re,reactIs_development.isProfiler=Te,reactIs_development.isStrictMode=Fe,reactIs_development.isSuspense=M,reactIs_development.isValidElementType=O,reactIs_development.typeOf=w}()),reactIs_development}var hasRequiredReactIs;function requireReactIs(){return hasRequiredReactIs||(hasRequiredReactIs=1,function(e){process.env.NODE_ENV==="production"?e.exports=requireReactIs_production_min():e.exports=requireReactIs_development()}(reactIs)),reactIs.exports}var reactIsExports=requireReactIs();function toArray$3(e){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[];return React__default.default.Children.forEach(e,function(a){a==null&&!o.keepEmpty||(Array.isArray(a)?r=r.concat(toArray$3(a)):reactIsExports.isFragment(a)&&a.props?r=r.concat(toArray$3(a.props.children,o)):r.push(a))}),r}var warned={};function warning$5(e,o){process.env.NODE_ENV!=="production"&&!e&&console!==void 0&&console.error("Warning: ".concat(o))}function call$1(e,o,r){!o&&!warned[r]&&(e(!1,r),warned[r]=!0)}function warningOnce(e,o){call$1(warning$5,e,o)}function fillRef(e,o){typeof e=="function"?e(o):_typeof$1(e)==="object"&&e&&"current"in e&&(e.current=o)}function composeRef(){for(var e=arguments.length,o=new Array(e),r=0;r<e;r++)o[r]=arguments[r];return function(a){o.forEach(function(s){fillRef(s,a)})}}function supportRef(e){var o,r,a=reactIsExports.isMemo(e)?e.type.type:e.type;return!(typeof a=="function"&&!(!((o=a.prototype)===null||o===void 0)&&o.render)||typeof e=="function"&&!(!((r=e.prototype)===null||r===void 0)&&r.render))}var MapShim=function(){if(typeof Map<"u")return Map;function e(o,r){var a=-1;return o.some(function(s,c){return s[0]===r?(a=c,!0):!1}),a}return function(){function o(){this.__entries__=[]}return Object.defineProperty(o.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),o.prototype.get=function(r){var a=e(this.__entries__,r),s=this.__entries__[a];return s&&s[1]},o.prototype.set=function(r,a){var s=e(this.__entries__,r);~s?this.__entries__[s][1]=a:this.__entries__.push([r,a])},o.prototype.delete=function(r){var a=this.__entries__,s=e(a,r);~s&&a.splice(s,1)},o.prototype.has=function(r){return!!~e(this.__entries__,r)},o.prototype.clear=function(){this.__entries__.splice(0)},o.prototype.forEach=function(r,a){a===void 0&&(a=null);for(var s=0,c=this.__entries__;s<c.length;s++){var l=c[s];r.call(a,l[1],l[0])}},o}()}(),isBrowser=typeof window<"u"&&typeof document<"u"&&window.document===document,global$1=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),requestAnimationFrame$1=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(global$1):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),trailingTimeout=2;function throttle(e,o){var r=!1,a=!1,s=0;function c(){r&&(r=!1,e()),a&&d()}function l(){requestAnimationFrame$1(c)}function d(){var u=Date.now();if(r){if(u-s<trailingTimeout)return;a=!0}else r=!0,a=!1,setTimeout(l,o);s=u}return d}var REFRESH_DELAY=20,transitionKeys=["top","right","bottom","left","width","height","size","weight"],mutationObserverSupported=typeof MutationObserver<"u",ResizeObserverController=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=throttle(this.refresh.bind(this),REFRESH_DELAY)}return e.prototype.addObserver=function(o){~this.observers_.indexOf(o)||this.observers_.push(o),this.connected_||this.connect_()},e.prototype.removeObserver=function(o){var r=this.observers_,a=r.indexOf(o);~a&&r.splice(a,1),!r.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var o=this.updateObservers_();o&&this.refresh()},e.prototype.updateObservers_=function(){var o=this.observers_.filter(function(r){return r.gatherActive(),r.hasActive()});return o.forEach(function(r){return r.broadcastActive()}),o.length>0},e.prototype.connect_=function(){!isBrowser||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),mutationObserverSupported?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!isBrowser||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(o){var r=o.propertyName,a=r===void 0?"":r,s=transitionKeys.some(function(c){return!!~a.indexOf(c)});s&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),defineConfigurable=function(e,o){for(var r=0,a=Object.keys(o);r<a.length;r++){var s=a[r];Object.defineProperty(e,s,{value:o[s],enumerable:!1,writable:!1,configurable:!0})}return e},getWindowOf=function(e){var o=e&&e.ownerDocument&&e.ownerDocument.defaultView;return o||global$1},emptyRect=createRectInit(0,0,0,0);function toFloat(e){return parseFloat(e)||0}function getBordersSize(e){for(var o=[],r=1;r<arguments.length;r++)o[r-1]=arguments[r];return o.reduce(function(a,s){var c=e["border-"+s+"-width"];return a+toFloat(c)},0)}function getPaddings(e){for(var o=["top","right","bottom","left"],r={},a=0,s=o;a<s.length;a++){var c=s[a],l=e["padding-"+c];r[c]=toFloat(l)}return r}function getSVGContentRect(e){var o=e.getBBox();return createRectInit(0,0,o.width,o.height)}function getHTMLElementContentRect(e){var o=e.clientWidth,r=e.clientHeight;if(!o&&!r)return emptyRect;var a=getWindowOf(e).getComputedStyle(e),s=getPaddings(a),c=s.left+s.right,l=s.top+s.bottom,d=toFloat(a.width),u=toFloat(a.height);if(a.boxSizing==="border-box"&&(Math.round(d+c)!==o&&(d-=getBordersSize(a,"left","right")+c),Math.round(u+l)!==r&&(u-=getBordersSize(a,"top","bottom")+l)),!isDocumentElement(e)){var f=Math.round(d+c)-o,p=Math.round(u+l)-r;Math.abs(f)!==1&&(d-=f),Math.abs(p)!==1&&(u-=p)}return createRectInit(s.left,s.top,d,u)}var isSVGGraphicsElement=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof getWindowOf(e).SVGGraphicsElement}:function(e){return e instanceof getWindowOf(e).SVGElement&&typeof e.getBBox=="function"}}();function isDocumentElement(e){return e===getWindowOf(e).document.documentElement}function getContentRect(e){return isBrowser?isSVGGraphicsElement(e)?getSVGContentRect(e):getHTMLElementContentRect(e):emptyRect}function createReadOnlyRect(e){var o=e.x,r=e.y,a=e.width,s=e.height,c=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,l=Object.create(c.prototype);return defineConfigurable(l,{x:o,y:r,width:a,height:s,top:r,right:o+a,bottom:s+r,left:o}),l}function createRectInit(e,o,r,a){return{x:e,y:o,width:r,height:a}}var ResizeObservation=function(){function e(o){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=createRectInit(0,0,0,0),this.target=o}return e.prototype.isActive=function(){var o=getContentRect(this.target);return this.contentRect_=o,o.width!==this.broadcastWidth||o.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var o=this.contentRect_;return this.broadcastWidth=o.width,this.broadcastHeight=o.height,o},e}(),ResizeObserverEntry=function(){function e(o,r){var a=createReadOnlyRect(r);defineConfigurable(this,{target:o,contentRect:a})}return e}(),ResizeObserverSPI=function(){function e(o,r,a){if(this.activeObservations_=[],this.observations_=new MapShim,typeof o!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=o,this.controller_=r,this.callbackCtx_=a}return e.prototype.observe=function(o){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(o instanceof getWindowOf(o).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(o)||(r.set(o,new ResizeObservation(o)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(o){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(o instanceof getWindowOf(o).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;!r.has(o)||(r.delete(o),r.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var o=this;this.clearActive(),this.observations_.forEach(function(r){r.isActive()&&o.activeObservations_.push(r)})},e.prototype.broadcastActive=function(){if(!!this.hasActive()){var o=this.callbackCtx_,r=this.activeObservations_.map(function(a){return new ResizeObserverEntry(a.target,a.broadcastRect())});this.callback_.call(o,r,o),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),observers=typeof WeakMap<"u"?new WeakMap:new MapShim,ResizeObserver=function(){function e(o){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=ResizeObserverController.getInstance(),a=new ResizeObserverSPI(o,r,this);observers.set(this,a)}return e}();["observe","unobserve","disconnect"].forEach(function(e){ResizeObserver.prototype[e]=function(){var o;return(o=observers.get(this))[e].apply(o,arguments)}});var index=function(){return typeof global$1.ResizeObserver<"u"?global$1.ResizeObserver:ResizeObserver}(),INTERNAL_PREFIX_KEY="rc-observer-key",ReactResizeObserver=function(e){_inherits(r,e);var o=_createSuper(r);function r(){var a;return _classCallCheck(this,r),a=o.apply(this,arguments),a.resizeObserver=null,a.childNode=null,a.currentElement=null,a.state={width:0,height:0,offsetHeight:0,offsetWidth:0},a.onResize=function(s){var c=a.props.onResize,l=s[0].target,d=l.getBoundingClientRect(),u=d.width,f=d.height,p=l.offsetWidth,m=l.offsetHeight,I=Math.floor(u),h=Math.floor(f);if(a.state.width!==I||a.state.height!==h||a.state.offsetWidth!==p||a.state.offsetHeight!==m){var v={width:I,height:h,offsetWidth:p,offsetHeight:m};a.setState(v),c&&Promise.resolve().then(function(){c(_objectSpread2$1(_objectSpread2$1({},v),{},{offsetWidth:p,offsetHeight:m}),l)})}},a.setChildNode=function(s){a.childNode=s},a}return _createClass(r,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){var s=this.props.disabled;if(s){this.destroyObserver();return}var c=findDOMNode(this.childNode||this),l=c!==this.currentElement;l&&(this.destroyObserver(),this.currentElement=c),!this.resizeObserver&&c&&(this.resizeObserver=new index(this.onResize),this.resizeObserver.observe(c))}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var s=this.props.children,c=toArray$3(s);if(c.length>1)warningOnce(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(c.length===0)return warningOnce(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var l=c[0];if(React__namespace.isValidElement(l)&&supportRef(l)){var d=l.ref;c[0]=React__namespace.cloneElement(l,{ref:composeRef(d,this.setChildNode)})}return c.length===1?c[0]:c.map(function(u,f){return!React__namespace.isValidElement(u)||"key"in u&&u.key!==null?u:React__namespace.cloneElement(u,{key:"".concat(INTERNAL_PREFIX_KEY,"-").concat(f)})})}}]),r}(React__namespace.Component);ReactResizeObserver.displayName="ResizeObserver";const es$4=Object.freeze(Object.defineProperty({__proto__:null,default:ReactResizeObserver},Symbol.toStringTag,{value:"Module"}));function ownKeys$2(e,o){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);o&&(a=a.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,a)}return r}function _objectSpread$1(e){for(var o=1;o<arguments.length;o++){var r=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$2(Object(r),!0).forEach(function(a){_defineProperty$1(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys$2(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function omit$1(e,o){var r=_objectSpread$1({},e);return Array.isArray(o)&&o.forEach(function(a){delete r[a]}),r}var classnames={exports:{}};/*!
|
|
17
|
+
*/var hasRequiredReactIs_development;function requireReactIs_development(){return hasRequiredReactIs_development||(hasRequiredReactIs_development=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,o=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,a=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,c=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,d=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,I=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,C=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function O(j){return typeof j=="string"||typeof j=="function"||j===a||j===f||j===c||j===s||j===m||j===I||typeof j=="object"&&j!==null&&(j.$$typeof===g||j.$$typeof===h||j.$$typeof===l||j.$$typeof===d||j.$$typeof===p||j.$$typeof===b||j.$$typeof===y||j.$$typeof===v||j.$$typeof===C)}function w(j){if(typeof j=="object"&&j!==null){var we=j.$$typeof;switch(we){case o:var je=j.type;switch(je){case u:case f:case a:case c:case s:case m:return je;default:var tt=je&&je.$$typeof;switch(tt){case d:case p:case g:case h:case l:return tt;default:return we}}case r:return we}}}var _=u,F=f,L=d,E=l,P=o,A=p,W=a,J=g,z=h,Y=r,Q=c,oe=s,ee=m,X=!1;function ue(j){return X||(X=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),Re(j)||w(j)===u}function Re(j){return w(j)===f}function xe(j){return w(j)===d}function ce(j){return w(j)===l}function Ce(j){return typeof j=="object"&&j!==null&&j.$$typeof===o}function te(j){return w(j)===p}function de(j){return w(j)===a}function N(j){return w(j)===g}function U(j){return w(j)===h}function re(j){return w(j)===r}function Te(j){return w(j)===c}function Fe(j){return w(j)===s}function M(j){return w(j)===m}reactIs_development.AsyncMode=_,reactIs_development.ConcurrentMode=F,reactIs_development.ContextConsumer=L,reactIs_development.ContextProvider=E,reactIs_development.Element=P,reactIs_development.ForwardRef=A,reactIs_development.Fragment=W,reactIs_development.Lazy=J,reactIs_development.Memo=z,reactIs_development.Portal=Y,reactIs_development.Profiler=Q,reactIs_development.StrictMode=oe,reactIs_development.Suspense=ee,reactIs_development.isAsyncMode=ue,reactIs_development.isConcurrentMode=Re,reactIs_development.isContextConsumer=xe,reactIs_development.isContextProvider=ce,reactIs_development.isElement=Ce,reactIs_development.isForwardRef=te,reactIs_development.isFragment=de,reactIs_development.isLazy=N,reactIs_development.isMemo=U,reactIs_development.isPortal=re,reactIs_development.isProfiler=Te,reactIs_development.isStrictMode=Fe,reactIs_development.isSuspense=M,reactIs_development.isValidElementType=O,reactIs_development.typeOf=w}()),reactIs_development}var hasRequiredReactIs;function requireReactIs(){return hasRequiredReactIs||(hasRequiredReactIs=1,function(e){process.env.NODE_ENV==="production"?e.exports=requireReactIs_production_min():e.exports=requireReactIs_development()}(reactIs)),reactIs.exports}var reactIsExports=requireReactIs();function toArray$3(e){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[];return React__default.default.Children.forEach(e,function(a){a==null&&!o.keepEmpty||(Array.isArray(a)?r=r.concat(toArray$3(a)):reactIsExports.isFragment(a)&&a.props?r=r.concat(toArray$3(a.props.children,o)):r.push(a))}),r}var warned={};function warning$5(e,o){process.env.NODE_ENV!=="production"&&!e&&console!==void 0&&console.error("Warning: ".concat(o))}function call$1(e,o,r){!o&&!warned[r]&&(e(!1,r),warned[r]=!0)}function warningOnce(e,o){call$1(warning$5,e,o)}function fillRef(e,o){typeof e=="function"?e(o):_typeof$1(e)==="object"&&e&&"current"in e&&(e.current=o)}function composeRef(){for(var e=arguments.length,o=new Array(e),r=0;r<e;r++)o[r]=arguments[r];return function(a){o.forEach(function(s){fillRef(s,a)})}}function supportRef(e){var o,r,a=reactIsExports.isMemo(e)?e.type.type:e.type;return!(typeof a=="function"&&!(!((o=a.prototype)===null||o===void 0)&&o.render)||typeof e=="function"&&!(!((r=e.prototype)===null||r===void 0)&&r.render))}var MapShim=function(){if(typeof Map<"u")return Map;function e(o,r){var a=-1;return o.some(function(s,c){return s[0]===r?(a=c,!0):!1}),a}return function(){function o(){this.__entries__=[]}return Object.defineProperty(o.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),o.prototype.get=function(r){var a=e(this.__entries__,r),s=this.__entries__[a];return s&&s[1]},o.prototype.set=function(r,a){var s=e(this.__entries__,r);~s?this.__entries__[s][1]=a:this.__entries__.push([r,a])},o.prototype.delete=function(r){var a=this.__entries__,s=e(a,r);~s&&a.splice(s,1)},o.prototype.has=function(r){return!!~e(this.__entries__,r)},o.prototype.clear=function(){this.__entries__.splice(0)},o.prototype.forEach=function(r,a){a===void 0&&(a=null);for(var s=0,c=this.__entries__;s<c.length;s++){var l=c[s];r.call(a,l[1],l[0])}},o}()}(),isBrowser=typeof window<"u"&&typeof document<"u"&&window.document===document,global$1=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),requestAnimationFrame$1=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(global$1):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),trailingTimeout=2;function throttle(e,o){var r=!1,a=!1,s=0;function c(){r&&(r=!1,e()),a&&d()}function l(){requestAnimationFrame$1(c)}function d(){var u=Date.now();if(r){if(u-s<trailingTimeout)return;a=!0}else r=!0,a=!1,setTimeout(l,o);s=u}return d}var REFRESH_DELAY=20,transitionKeys=["top","right","bottom","left","width","height","size","weight"],mutationObserverSupported=typeof MutationObserver<"u",ResizeObserverController=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=throttle(this.refresh.bind(this),REFRESH_DELAY)}return e.prototype.addObserver=function(o){~this.observers_.indexOf(o)||this.observers_.push(o),this.connected_||this.connect_()},e.prototype.removeObserver=function(o){var r=this.observers_,a=r.indexOf(o);~a&&r.splice(a,1),!r.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var o=this.updateObservers_();o&&this.refresh()},e.prototype.updateObservers_=function(){var o=this.observers_.filter(function(r){return r.gatherActive(),r.hasActive()});return o.forEach(function(r){return r.broadcastActive()}),o.length>0},e.prototype.connect_=function(){!isBrowser||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),mutationObserverSupported?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!isBrowser||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(o){var r=o.propertyName,a=r===void 0?"":r,s=transitionKeys.some(function(c){return!!~a.indexOf(c)});s&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),defineConfigurable=function(e,o){for(var r=0,a=Object.keys(o);r<a.length;r++){var s=a[r];Object.defineProperty(e,s,{value:o[s],enumerable:!1,writable:!1,configurable:!0})}return e},getWindowOf=function(e){var o=e&&e.ownerDocument&&e.ownerDocument.defaultView;return o||global$1},emptyRect=createRectInit(0,0,0,0);function toFloat(e){return parseFloat(e)||0}function getBordersSize(e){for(var o=[],r=1;r<arguments.length;r++)o[r-1]=arguments[r];return o.reduce(function(a,s){var c=e["border-"+s+"-width"];return a+toFloat(c)},0)}function getPaddings(e){for(var o=["top","right","bottom","left"],r={},a=0,s=o;a<s.length;a++){var c=s[a],l=e["padding-"+c];r[c]=toFloat(l)}return r}function getSVGContentRect(e){var o=e.getBBox();return createRectInit(0,0,o.width,o.height)}function getHTMLElementContentRect(e){var o=e.clientWidth,r=e.clientHeight;if(!o&&!r)return emptyRect;var a=getWindowOf(e).getComputedStyle(e),s=getPaddings(a),c=s.left+s.right,l=s.top+s.bottom,d=toFloat(a.width),u=toFloat(a.height);if(a.boxSizing==="border-box"&&(Math.round(d+c)!==o&&(d-=getBordersSize(a,"left","right")+c),Math.round(u+l)!==r&&(u-=getBordersSize(a,"top","bottom")+l)),!isDocumentElement(e)){var f=Math.round(d+c)-o,p=Math.round(u+l)-r;Math.abs(f)!==1&&(d-=f),Math.abs(p)!==1&&(u-=p)}return createRectInit(s.left,s.top,d,u)}var isSVGGraphicsElement=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof getWindowOf(e).SVGGraphicsElement}:function(e){return e instanceof getWindowOf(e).SVGElement&&typeof e.getBBox=="function"}}();function isDocumentElement(e){return e===getWindowOf(e).document.documentElement}function getContentRect(e){return isBrowser?isSVGGraphicsElement(e)?getSVGContentRect(e):getHTMLElementContentRect(e):emptyRect}function createReadOnlyRect(e){var o=e.x,r=e.y,a=e.width,s=e.height,c=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,l=Object.create(c.prototype);return defineConfigurable(l,{x:o,y:r,width:a,height:s,top:r,right:o+a,bottom:s+r,left:o}),l}function createRectInit(e,o,r,a){return{x:e,y:o,width:r,height:a}}var ResizeObservation=function(){function e(o){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=createRectInit(0,0,0,0),this.target=o}return e.prototype.isActive=function(){var o=getContentRect(this.target);return this.contentRect_=o,o.width!==this.broadcastWidth||o.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var o=this.contentRect_;return this.broadcastWidth=o.width,this.broadcastHeight=o.height,o},e}(),ResizeObserverEntry=function(){function e(o,r){var a=createReadOnlyRect(r);defineConfigurable(this,{target:o,contentRect:a})}return e}(),ResizeObserverSPI=function(){function e(o,r,a){if(this.activeObservations_=[],this.observations_=new MapShim,typeof o!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=o,this.controller_=r,this.callbackCtx_=a}return e.prototype.observe=function(o){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(o instanceof getWindowOf(o).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(o)||(r.set(o,new ResizeObservation(o)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(o){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(o instanceof getWindowOf(o).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;!r.has(o)||(r.delete(o),r.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var o=this;this.clearActive(),this.observations_.forEach(function(r){r.isActive()&&o.activeObservations_.push(r)})},e.prototype.broadcastActive=function(){if(!!this.hasActive()){var o=this.callbackCtx_,r=this.activeObservations_.map(function(a){return new ResizeObserverEntry(a.target,a.broadcastRect())});this.callback_.call(o,r,o),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),observers=typeof WeakMap<"u"?new WeakMap:new MapShim,ResizeObserver=function(){function e(o){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=ResizeObserverController.getInstance(),a=new ResizeObserverSPI(o,r,this);observers.set(this,a)}return e}();["observe","unobserve","disconnect"].forEach(function(e){ResizeObserver.prototype[e]=function(){var o;return(o=observers.get(this))[e].apply(o,arguments)}});var index=function(){return typeof global$1.ResizeObserver<"u"?global$1.ResizeObserver:ResizeObserver}(),INTERNAL_PREFIX_KEY="rc-observer-key",ReactResizeObserver=function(e){_inherits(r,e);var o=_createSuper(r);function r(){var a;return _classCallCheck(this,r),a=o.apply(this,arguments),a.resizeObserver=null,a.childNode=null,a.currentElement=null,a.state={width:0,height:0,offsetHeight:0,offsetWidth:0},a.onResize=function(s){var c=a.props.onResize,l=s[0].target,d=l.getBoundingClientRect(),u=d.width,f=d.height,p=l.offsetWidth,m=l.offsetHeight,I=Math.floor(u),h=Math.floor(f);if(a.state.width!==I||a.state.height!==h||a.state.offsetWidth!==p||a.state.offsetHeight!==m){var g={width:I,height:h,offsetWidth:p,offsetHeight:m};a.setState(g),c&&Promise.resolve().then(function(){c(_objectSpread2$1(_objectSpread2$1({},g),{},{offsetWidth:p,offsetHeight:m}),l)})}},a.setChildNode=function(s){a.childNode=s},a}return _createClass(r,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){var s=this.props.disabled;if(s){this.destroyObserver();return}var c=findDOMNode(this.childNode||this),l=c!==this.currentElement;l&&(this.destroyObserver(),this.currentElement=c),!this.resizeObserver&&c&&(this.resizeObserver=new index(this.onResize),this.resizeObserver.observe(c))}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var s=this.props.children,c=toArray$3(s);if(c.length>1)warningOnce(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(c.length===0)return warningOnce(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var l=c[0];if(React__namespace.isValidElement(l)&&supportRef(l)){var d=l.ref;c[0]=React__namespace.cloneElement(l,{ref:composeRef(d,this.setChildNode)})}return c.length===1?c[0]:c.map(function(u,f){return!React__namespace.isValidElement(u)||"key"in u&&u.key!==null?u:React__namespace.cloneElement(u,{key:"".concat(INTERNAL_PREFIX_KEY,"-").concat(f)})})}}]),r}(React__namespace.Component);ReactResizeObserver.displayName="ResizeObserver";const es$4=Object.freeze(Object.defineProperty({__proto__:null,default:ReactResizeObserver},Symbol.toStringTag,{value:"Module"}));function ownKeys$2(e,o){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);o&&(a=a.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,a)}return r}function _objectSpread$1(e){for(var o=1;o<arguments.length;o++){var r=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$2(Object(r),!0).forEach(function(a){_defineProperty$1(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys$2(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function omit$1(e,o){var r=_objectSpread$1({},e);return Array.isArray(o)&&o.forEach(function(a){delete r[a]}),r}var classnames={exports:{}};/*!
|
|
18
18
|
Copyright (c) 2018 Jed Watson.
|
|
19
19
|
Licensed under the MIT License (MIT), see
|
|
20
20
|
http://jedwatson.github.io/classnames
|
|
@@ -28,7 +28,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
28
28
|
z-index:-1000 !important;
|
|
29
29
|
top:0 !important;
|
|
30
30
|
right:0 !important
|
|
31
|
-
`,SIZING_STYLE=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"],computedStyleCache={},hiddenTextarea;function calculateNodeStyling(e){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(o&&computedStyleCache[r])return computedStyleCache[r];var a=window.getComputedStyle(e),s=a.getPropertyValue("box-sizing")||a.getPropertyValue("-moz-box-sizing")||a.getPropertyValue("-webkit-box-sizing"),c=parseFloat(a.getPropertyValue("padding-bottom"))+parseFloat(a.getPropertyValue("padding-top")),l=parseFloat(a.getPropertyValue("border-bottom-width"))+parseFloat(a.getPropertyValue("border-top-width")),d=SIZING_STYLE.map(function(f){return"".concat(f,":").concat(a.getPropertyValue(f))}).join(";"),u={sizingStyle:d,paddingSize:c,borderSize:l,boxSizing:s};return o&&r&&(computedStyleCache[r]=u),u}function calculateNodeHeight(e){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;hiddenTextarea||(hiddenTextarea=document.createElement("textarea"),hiddenTextarea.setAttribute("tab-index","-1"),hiddenTextarea.setAttribute("aria-hidden","true"),document.body.appendChild(hiddenTextarea)),e.getAttribute("wrap")?hiddenTextarea.setAttribute("wrap",e.getAttribute("wrap")):hiddenTextarea.removeAttribute("wrap");var s=calculateNodeStyling(e,o),c=s.paddingSize,l=s.borderSize,d=s.boxSizing,u=s.sizingStyle;hiddenTextarea.setAttribute("style","".concat(u,";").concat(HIDDEN_TEXTAREA_STYLE)),hiddenTextarea.value=e.value||e.placeholder||"";var f=Number.MIN_SAFE_INTEGER,p=Number.MAX_SAFE_INTEGER,m=hiddenTextarea.scrollHeight,I;if(d==="border-box"?m+=l:d==="content-box"&&(m-=c),r!==null||a!==null){hiddenTextarea.value=" ";var h=hiddenTextarea.scrollHeight-c;r!==null&&(f=h*r,d==="border-box"&&(f=f+c+l),m=Math.max(f,m)),a!==null&&(p=h*a,d==="border-box"&&(p=p+c+l),I=m>p?"":"hidden",m=Math.min(p,m))}return{height:m,minHeight:f,maxHeight:p,overflowY:I,resize:"none"}}var RESIZE_STATUS;(function(e){e[e.NONE=0]="NONE",e[e.RESIZING=1]="RESIZING",e[e.RESIZED=2]="RESIZED"})(RESIZE_STATUS||(RESIZE_STATUS={}));var ResizableTextArea=function(e){_inherits(r,e);var o=_createSuper(r);function r(a){var s;return _classCallCheck(this,r),s=o.call(this,a),s.saveTextArea=function(c){s.textArea=c},s.handleResize=function(c){var l=s.state.resizeStatus,d=s.props,u=d.autoSize,f=d.onResize;l===RESIZE_STATUS.NONE&&(typeof f=="function"&&f(c),u&&s.resizeOnNextFrame())},s.resizeOnNextFrame=function(){cancelAnimationFrame(s.nextFrameActionId),s.nextFrameActionId=requestAnimationFrame(s.resizeTextarea)},s.resizeTextarea=function(){var c=s.props.autoSize;if(!(!c||!s.textArea)){var l=c.minRows,d=c.maxRows,u=calculateNodeHeight(s.textArea,!1,l,d);s.setState({textareaStyles:u,resizeStatus:RESIZE_STATUS.RESIZING},function(){cancelAnimationFrame(s.resizeFrameId),s.resizeFrameId=requestAnimationFrame(function(){s.setState({resizeStatus:RESIZE_STATUS.RESIZED},function(){s.resizeFrameId=requestAnimationFrame(function(){s.setState({resizeStatus:RESIZE_STATUS.NONE}),s.fixFirefoxAutoScroll()})})})})}},s.renderTextArea=function(){var c=s.props,l=c.prefixCls,d=l===void 0?"rc-textarea":l,u=c.autoSize,f=c.onResize,p=c.className,m=c.disabled,I=s.state,h=I.textareaStyles,v=I.resizeStatus,C=omit$1(s.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),b=classnamesExports(d,p,_defineProperty$1({},"".concat(d,"-disabled"),m));"value"in C&&(C.value=C.value||"");var y=_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({},s.props.style),h),v===RESIZE_STATUS.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return jsxRuntime.jsx(ReactResizeObserver,{onResize:s.handleResize,disabled:!(u||f),children:jsxRuntime.jsx("textarea",{...C,className:b,style:y,ref:s.saveTextArea})})},s.state={textareaStyles:{},resizeStatus:RESIZE_STATUS.NONE},s}return _createClass(r,[{key:"componentDidMount",value:function(){this.resizeTextarea()}},{key:"componentDidUpdate",value:function(s){s.value!==this.props.value&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var s=this.textArea.selectionStart,c=this.textArea.selectionEnd;this.textArea.setSelectionRange(s,c)}}catch{}}},{key:"render",value:function(){return this.renderTextArea()}}]),r}(React__namespace.Component),TextArea$1=function(e){_inherits(r,e);var o=_createSuper(r);function r(a){var s;_classCallCheck(this,r),s=o.call(this,a),s.focus=function(){s.resizableTextArea.textArea.focus()},s.saveTextArea=function(l){s.resizableTextArea=l},s.handleChange=function(l){var d=s.props.onChange;s.setValue(l.target.value,function(){s.resizableTextArea.resizeTextarea()}),d&&d(l)},s.handleKeyDown=function(l){var d=s.props,u=d.onPressEnter,f=d.onKeyDown;l.keyCode===13&&u&&u(l),f&&f(l)};var c=typeof a.value>"u"||a.value===null?a.defaultValue:a.value;return s.state={value:c},s}return _createClass(r,[{key:"setValue",value:function(s,c){"value"in this.props||this.setState({value:s},c)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return jsxRuntime.jsx(ResizableTextArea,{...this.props,value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea})}}],[{key:"getDerivedStateFromProps",value:function(s){return"value"in s?{value:s.value}:null}}]),r}(React__namespace.Component);const es$3=Object.freeze(Object.defineProperty({__proto__:null,ResizableTextArea,default:TextArea$1},Symbol.toStringTag,{value:"Module"})),require$$8=getAugmentedNamespace(es$3);var omit={},hasRequiredOmit;function requireOmit(){if(hasRequiredOmit)return omit;hasRequiredOmit=1;var e=interopRequireDefault.exports;Object.defineProperty(omit,"__esModule",{value:!0}),omit.default=s;var o=e(requireDefineProperty());function r(c,l){var d=Object.keys(c);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(c);l&&(u=u.filter(function(f){return Object.getOwnPropertyDescriptor(c,f).enumerable})),d.push.apply(d,u)}return d}function a(c){for(var l=1;l<arguments.length;l++){var d=arguments[l]!=null?arguments[l]:{};l%2?r(Object(d),!0).forEach(function(u){(0,o.default)(c,u,d[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(d)):r(Object(d)).forEach(function(u){Object.defineProperty(c,u,Object.getOwnPropertyDescriptor(d,u))})}return c}function s(c,l){var d=a({},c);return Array.isArray(l)&&l.forEach(function(u){delete d[u]}),d}return omit}var useMergedState={},hasRequiredUseMergedState;function requireUseMergedState(){if(hasRequiredUseMergedState)return useMergedState;hasRequiredUseMergedState=1;var e=interopRequireWildcard.exports,o=interopRequireDefault.exports;Object.defineProperty(useMergedState,"__esModule",{value:!0}),useMergedState.default=s;var r=o(requireSlicedToArray()),a=e(React__default.default);function s(c,l){var d=l||{},u=d.defaultValue,f=d.value,p=d.onChange,m=d.postState,I=a.useState(function(){return f!==void 0?f:u!==void 0?typeof u=="function"?u():u:typeof c=="function"?c():c}),h=(0,r.default)(I,2),v=h[0],C=h[1],b=f!==void 0?f:v;m&&(b=m(b));function y(O){C(O),b!==O&&p&&p(O,b)}var g=a.useRef(!0);return a.useEffect(function(){if(g.current){g.current=!1;return}f===void 0&&C(f)},[f]),[b,y]}return useMergedState}var ClearableLabeledInput={},classCallCheck={exports:{}},hasRequiredClassCallCheck;function requireClassCallCheck(){return hasRequiredClassCallCheck||(hasRequiredClassCallCheck=1,function(e){function o(r,a){if(!(r instanceof a))throw new TypeError("Cannot call a class as a function")}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports}(classCallCheck)),classCallCheck.exports}var createClass={exports:{}},hasRequiredCreateClass;function requireCreateClass(){return hasRequiredCreateClass||(hasRequiredCreateClass=1,function(e){function o(a,s){for(var c=0;c<s.length;c++){var l=s[c];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(a,l.key,l)}}function r(a,s,c){return s&&o(a.prototype,s),c&&o(a,c),Object.defineProperty(a,"prototype",{writable:!1}),a}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(createClass)),createClass.exports}var inherits={exports:{}},setPrototypeOf={exports:{}},hasRequiredSetPrototypeOf;function requireSetPrototypeOf(){return hasRequiredSetPrototypeOf||(hasRequiredSetPrototypeOf=1,function(e){function o(r,a){return e.exports=o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(c,l){return c.__proto__=l,c},e.exports.__esModule=!0,e.exports.default=e.exports,o(r,a)}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports}(setPrototypeOf)),setPrototypeOf.exports}var hasRequiredInherits;function requireInherits(){return hasRequiredInherits||(hasRequiredInherits=1,function(e){var o=requireSetPrototypeOf();function r(a,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(s&&s.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),Object.defineProperty(a,"prototype",{writable:!1}),s&&o(a,s)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(inherits)),inherits.exports}var createSuper={exports:{}},getPrototypeOf={exports:{}},hasRequiredGetPrototypeOf;function requireGetPrototypeOf(){return hasRequiredGetPrototypeOf||(hasRequiredGetPrototypeOf=1,function(e){function o(r){return e.exports=o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(s){return s.__proto__||Object.getPrototypeOf(s)},e.exports.__esModule=!0,e.exports.default=e.exports,o(r)}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports}(getPrototypeOf)),getPrototypeOf.exports}var isNativeReflectConstruct={exports:{}},hasRequiredIsNativeReflectConstruct;function requireIsNativeReflectConstruct(){return hasRequiredIsNativeReflectConstruct||(hasRequiredIsNativeReflectConstruct=1,function(e){function o(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports}(isNativeReflectConstruct)),isNativeReflectConstruct.exports}var possibleConstructorReturn={exports:{}},assertThisInitialized={exports:{}},hasRequiredAssertThisInitialized;function requireAssertThisInitialized(){return hasRequiredAssertThisInitialized||(hasRequiredAssertThisInitialized=1,function(e){function o(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports}(assertThisInitialized)),assertThisInitialized.exports}var hasRequiredPossibleConstructorReturn;function requirePossibleConstructorReturn(){return hasRequiredPossibleConstructorReturn||(hasRequiredPossibleConstructorReturn=1,function(e){var o=_typeof$2.exports.default,r=requireAssertThisInitialized();function a(s,c){if(c&&(o(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return r(s)}e.exports=a,e.exports.__esModule=!0,e.exports.default=e.exports}(possibleConstructorReturn)),possibleConstructorReturn.exports}var hasRequiredCreateSuper;function requireCreateSuper(){return hasRequiredCreateSuper||(hasRequiredCreateSuper=1,function(e){var o=requireGetPrototypeOf(),r=requireIsNativeReflectConstruct(),a=requirePossibleConstructorReturn();function s(c){var l=r();return function(){var u=o(c),f;if(l){var p=o(this).constructor;f=Reflect.construct(u,arguments,p)}else f=u.apply(this,arguments);return a(this,f)}}e.exports=s,e.exports.__esModule=!0,e.exports.default=e.exports}(createSuper)),createSuper.exports}var CloseCircleFilled$2={exports:{}},CloseCircleFilled$1={},objectSpread2={exports:{}},hasRequiredObjectSpread2;function requireObjectSpread2(){return hasRequiredObjectSpread2||(hasRequiredObjectSpread2=1,function(e){var o=requireDefineProperty();function r(s,c){var l=Object.keys(s);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(s);c&&(d=d.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),l.push.apply(l,d)}return l}function a(s){for(var c=1;c<arguments.length;c++){var l=arguments[c]!=null?arguments[c]:{};c%2?r(Object(l),!0).forEach(function(d){o(s,d,l[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(l)):r(Object(l)).forEach(function(d){Object.defineProperty(s,d,Object.getOwnPropertyDescriptor(l,d))})}return s}e.exports=a,e.exports.__esModule=!0,e.exports.default=e.exports}(objectSpread2)),objectSpread2.exports}var CloseCircleFilled={},hasRequiredCloseCircleFilled$2;function requireCloseCircleFilled$2(){if(hasRequiredCloseCircleFilled$2)return CloseCircleFilled;hasRequiredCloseCircleFilled$2=1,Object.defineProperty(CloseCircleFilled,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 01-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z"}}]},name:"close-circle",theme:"filled"};return CloseCircleFilled.default=e,CloseCircleFilled}var AntdIcon={},objectWithoutProperties={exports:{}},objectWithoutPropertiesLoose={exports:{}},hasRequiredObjectWithoutPropertiesLoose;function requireObjectWithoutPropertiesLoose(){return hasRequiredObjectWithoutPropertiesLoose||(hasRequiredObjectWithoutPropertiesLoose=1,function(e){function o(r,a){if(r==null)return{};var s={},c=Object.keys(r),l,d;for(d=0;d<c.length;d++)l=c[d],!(a.indexOf(l)>=0)&&(s[l]=r[l]);return s}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports}(objectWithoutPropertiesLoose)),objectWithoutPropertiesLoose.exports}var hasRequiredObjectWithoutProperties;function requireObjectWithoutProperties(){return hasRequiredObjectWithoutProperties||(hasRequiredObjectWithoutProperties=1,function(e){var o=requireObjectWithoutPropertiesLoose();function r(a,s){if(a==null)return{};var c=o(a,s),l,d;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(a);for(d=0;d<u.length;d++)l=u[d],!(s.indexOf(l)>=0)&&(!Object.prototype.propertyIsEnumerable.call(a,l)||(c[l]=a[l]))}return c}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(objectWithoutProperties)),objectWithoutProperties.exports}var Context$1={},hasRequiredContext$2;function requireContext$2(){if(hasRequiredContext$2)return Context$1;hasRequiredContext$2=1,Object.defineProperty(Context$1,"__esModule",{value:!0}),Context$1.default=void 0;var e=React__default.default,o=(0,e.createContext)({}),r=o;return Context$1.default=r,Context$1}var IconBase={},utils$1={};function bound01(e,o){isOnePointZero(e)&&(e="100%");var r=isPercentage(e);return e=o===360?e:Math.min(o,Math.max(0,parseFloat(e))),r&&(e=parseInt(String(e*o),10)/100),Math.abs(e-o)<1e-6?1:(o===360?e=(e<0?e%o+o:e%o)/parseFloat(String(o)):e=e%o/parseFloat(String(o)),e)}function isOnePointZero(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function isPercentage(e){return typeof e=="string"&&e.indexOf("%")!==-1}function boundAlpha(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function convertToPercentage(e){return e<=1?Number(e)*100+"%":e}function pad2(e){return e.length===1?"0"+e:String(e)}function rgbToRgb(e,o,r){return{r:bound01(e,255)*255,g:bound01(o,255)*255,b:bound01(r,255)*255}}function hue2rgb(e,o,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(o-e)*(6*r):r<1/2?o:r<2/3?e+(o-e)*(2/3-r)*6:e}function hslToRgb(e,o,r){var a,s,c;if(e=bound01(e,360),o=bound01(o,100),r=bound01(r,100),o===0)s=r,c=r,a=r;else{var l=r<.5?r*(1+o):r+o-r*o,d=2*r-l;a=hue2rgb(d,l,e+1/3),s=hue2rgb(d,l,e),c=hue2rgb(d,l,e-1/3)}return{r:a*255,g:s*255,b:c*255}}function rgbToHsv(e,o,r){e=bound01(e,255),o=bound01(o,255),r=bound01(r,255);var a=Math.max(e,o,r),s=Math.min(e,o,r),c=0,l=a,d=a-s,u=a===0?0:d/a;if(a===s)c=0;else{switch(a){case e:c=(o-r)/d+(o<r?6:0);break;case o:c=(r-e)/d+2;break;case r:c=(e-o)/d+4;break}c/=6}return{h:c,s:u,v:l}}function hsvToRgb(e,o,r){e=bound01(e,360)*6,o=bound01(o,100),r=bound01(r,100);var a=Math.floor(e),s=e-a,c=r*(1-o),l=r*(1-s*o),d=r*(1-(1-s)*o),u=a%6,f=[r,l,c,c,d,r][u],p=[d,r,r,l,c,c][u],m=[c,c,d,r,r,l][u];return{r:f*255,g:p*255,b:m*255}}function rgbToHex(e,o,r,a){var s=[pad2(Math.round(e).toString(16)),pad2(Math.round(o).toString(16)),pad2(Math.round(r).toString(16))];return a&&s[0].startsWith(s[0].charAt(1))&&s[1].startsWith(s[1].charAt(1))&&s[2].startsWith(s[2].charAt(1))?s[0].charAt(0)+s[1].charAt(0)+s[2].charAt(0):s.join("")}function convertHexToDecimal(e){return parseIntFromHex(e)/255}function parseIntFromHex(e){return parseInt(e,16)}var names={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function inputToRGB(e){var o={r:0,g:0,b:0},r=1,a=null,s=null,c=null,l=!1,d=!1;return typeof e=="string"&&(e=stringInputToObject(e)),typeof e=="object"&&(isValidCSSUnit(e.r)&&isValidCSSUnit(e.g)&&isValidCSSUnit(e.b)?(o=rgbToRgb(e.r,e.g,e.b),l=!0,d=String(e.r).substr(-1)==="%"?"prgb":"rgb"):isValidCSSUnit(e.h)&&isValidCSSUnit(e.s)&&isValidCSSUnit(e.v)?(a=convertToPercentage(e.s),s=convertToPercentage(e.v),o=hsvToRgb(e.h,a,s),l=!0,d="hsv"):isValidCSSUnit(e.h)&&isValidCSSUnit(e.s)&&isValidCSSUnit(e.l)&&(a=convertToPercentage(e.s),c=convertToPercentage(e.l),o=hslToRgb(e.h,a,c),l=!0,d="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=boundAlpha(r),{ok:l,format:e.format||d,r:Math.min(255,Math.max(o.r,0)),g:Math.min(255,Math.max(o.g,0)),b:Math.min(255,Math.max(o.b,0)),a:r}}var CSS_INTEGER="[-\\+]?\\d+%?",CSS_NUMBER="[-\\+]?\\d*\\.\\d+%?",CSS_UNIT="(?:"+CSS_NUMBER+")|(?:"+CSS_INTEGER+")",PERMISSIVE_MATCH3="[\\s|\\(]+("+CSS_UNIT+")[,|\\s]+("+CSS_UNIT+")[,|\\s]+("+CSS_UNIT+")\\s*\\)?",PERMISSIVE_MATCH4="[\\s|\\(]+("+CSS_UNIT+")[,|\\s]+("+CSS_UNIT+")[,|\\s]+("+CSS_UNIT+")[,|\\s]+("+CSS_UNIT+")\\s*\\)?",matchers={CSS_UNIT:new RegExp(CSS_UNIT),rgb:new RegExp("rgb"+PERMISSIVE_MATCH3),rgba:new RegExp("rgba"+PERMISSIVE_MATCH4),hsl:new RegExp("hsl"+PERMISSIVE_MATCH3),hsla:new RegExp("hsla"+PERMISSIVE_MATCH4),hsv:new RegExp("hsv"+PERMISSIVE_MATCH3),hsva:new RegExp("hsva"+PERMISSIVE_MATCH4),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function stringInputToObject(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var o=!1;if(names[e])e=names[e],o=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r=matchers.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=matchers.rgba.exec(e),r?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=matchers.hsl.exec(e),r?{h:r[1],s:r[2],l:r[3]}:(r=matchers.hsla.exec(e),r?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=matchers.hsv.exec(e),r?{h:r[1],s:r[2],v:r[3]}:(r=matchers.hsva.exec(e),r?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=matchers.hex8.exec(e),r?{r:parseIntFromHex(r[1]),g:parseIntFromHex(r[2]),b:parseIntFromHex(r[3]),a:convertHexToDecimal(r[4]),format:o?"name":"hex8"}:(r=matchers.hex6.exec(e),r?{r:parseIntFromHex(r[1]),g:parseIntFromHex(r[2]),b:parseIntFromHex(r[3]),format:o?"name":"hex"}:(r=matchers.hex4.exec(e),r?{r:parseIntFromHex(r[1]+r[1]),g:parseIntFromHex(r[2]+r[2]),b:parseIntFromHex(r[3]+r[3]),a:convertHexToDecimal(r[4]+r[4]),format:o?"name":"hex8"}:(r=matchers.hex3.exec(e),r?{r:parseIntFromHex(r[1]+r[1]),g:parseIntFromHex(r[2]+r[2]),b:parseIntFromHex(r[3]+r[3]),format:o?"name":"hex"}:!1)))))))))}function isValidCSSUnit(e){return Boolean(matchers.CSS_UNIT.exec(String(e)))}var hueStep=2,saturationStep=.16,saturationStep2=.05,brightnessStep1=.05,brightnessStep2=.15,lightColorCount=5,darkColorCount=4,darkColorMap=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function toHsv(e){var o=e.r,r=e.g,a=e.b,s=rgbToHsv(o,r,a);return{h:s.h*360,s:s.s,v:s.v}}function toHex(e){var o=e.r,r=e.g,a=e.b;return"#".concat(rgbToHex(o,r,a,!1))}function mix$1(e,o,r){var a=r/100,s={r:(o.r-e.r)*a+e.r,g:(o.g-e.g)*a+e.g,b:(o.b-e.b)*a+e.b};return s}function getHue(e,o,r){var a;return Math.round(e.h)>=60&&Math.round(e.h)<=240?a=r?Math.round(e.h)-hueStep*o:Math.round(e.h)+hueStep*o:a=r?Math.round(e.h)+hueStep*o:Math.round(e.h)-hueStep*o,a<0?a+=360:a>=360&&(a-=360),a}function getSaturation(e,o,r){if(e.h===0&&e.s===0)return e.s;var a;return r?a=e.s-saturationStep*o:o===darkColorCount?a=e.s+saturationStep:a=e.s+saturationStep2*o,a>1&&(a=1),r&&o===lightColorCount&&a>.1&&(a=.1),a<.06&&(a=.06),Number(a.toFixed(2))}function getValue$1(e,o,r){var a;return r?a=e.v+brightnessStep1*o:a=e.v-brightnessStep2*o,a>1&&(a=1),Number(a.toFixed(2))}function generate(e){for(var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],a=inputToRGB(e),s=lightColorCount;s>0;s-=1){var c=toHsv(a),l=toHex(inputToRGB({h:getHue(c,s,!0),s:getSaturation(c,s,!0),v:getValue$1(c,s,!0)}));r.push(l)}r.push(toHex(a));for(var d=1;d<=darkColorCount;d+=1){var u=toHsv(a),f=toHex(inputToRGB({h:getHue(u,d),s:getSaturation(u,d),v:getValue$1(u,d)}));r.push(f)}return o.theme==="dark"?darkColorMap.map(function(p){var m=p.index,I=p.opacity,h=toHex(mix$1(inputToRGB(o.backgroundColor||"#141414"),inputToRGB(r[m]),I*100));return h}):r}var presetPrimaryColors={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},presetPalettes={},presetDarkPalettes={};Object.keys(presetPrimaryColors).forEach(function(e){presetPalettes[e]=generate(presetPrimaryColors[e]),presetPalettes[e].primary=presetPalettes[e][5],presetDarkPalettes[e]=generate(presetPrimaryColors[e],{theme:"dark",backgroundColor:"#141414"}),presetDarkPalettes[e].primary=presetDarkPalettes[e][5]});var red=presetPalettes.red,volcano=presetPalettes.volcano,gold=presetPalettes.gold,orange=presetPalettes.orange,yellow=presetPalettes.yellow,lime=presetPalettes.lime,green=presetPalettes.green,cyan=presetPalettes.cyan,blue=presetPalettes.blue,geekblue=presetPalettes.geekblue,purple=presetPalettes.purple,magenta=presetPalettes.magenta,grey=presetPalettes.grey;const index_esm=Object.freeze(Object.defineProperty({__proto__:null,blue,cyan,geekblue,generate,gold,green,grey,lime,magenta,orange,presetDarkPalettes,presetPalettes,presetPrimaryColors,purple,red,volcano,yellow},Symbol.toStringTag,{value:"Module"})),require$$4=getAugmentedNamespace(index_esm);var warning$4={},hasRequiredWarning$1;function requireWarning$1(){if(hasRequiredWarning$1)return warning$4;hasRequiredWarning$1=1,Object.defineProperty(warning$4,"__esModule",{value:!0}),warning$4.call=s,warning$4.default=void 0,warning$4.note=r,warning$4.noteOnce=l,warning$4.resetWarned=a,warning$4.warning=o,warning$4.warningOnce=c;var e={};function o(u,f){process.env.NODE_ENV!=="production"&&!u&&console!==void 0&&console.error("Warning: ".concat(f))}function r(u,f){process.env.NODE_ENV!=="production"&&!u&&console!==void 0&&console.warn("Note: ".concat(f))}function a(){e={}}function s(u,f,p){!f&&!e[p]&&(u(!1,p),e[p]=!0)}function c(u,f){s(o,u,f)}function l(u,f){s(r,u,f)}var d=c;return warning$4.default=d,warning$4}var dynamicCSS={},canUseDom$2={},hasRequiredCanUseDom$1;function requireCanUseDom$1(){if(hasRequiredCanUseDom$1)return canUseDom$2;hasRequiredCanUseDom$1=1,Object.defineProperty(canUseDom$2,"__esModule",{value:!0}),canUseDom$2.default=e;function e(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}return canUseDom$2}var hasRequiredDynamicCSS;function requireDynamicCSS(){if(hasRequiredDynamicCSS)return dynamicCSS;hasRequiredDynamicCSS=1;var e=interopRequireDefault.exports;Object.defineProperty(dynamicCSS,"__esModule",{value:!0}),dynamicCSS.injectCSS=c,dynamicCSS.removeCSS=u,dynamicCSS.updateCSS=f;var o=e(requireCanUseDom$1()),r="rc-util-key";function a(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},m=p.mark;return m?m.startsWith("data-")?m:"data-".concat(m):r}function s(p){if(p.attachTo)return p.attachTo;var m=document.querySelector("head");return m||document.body}function c(p){var m,I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!(0,o.default)())return null;var h=document.createElement("style");if(!((m=I.csp)===null||m===void 0)&&m.nonce){var v;h.nonce=(v=I.csp)===null||v===void 0?void 0:v.nonce}h.innerHTML=p;var C=s(I),b=C.firstChild;return I.prepend&&C.prepend?C.prepend(h):I.prepend&&b?C.insertBefore(h,b):C.appendChild(h),h}var l=new Map;function d(p){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},I=s(m);return Array.from(l.get(I).children).find(function(h){return h.tagName==="STYLE"&&h.getAttribute(a(m))===p})}function u(p){var m,I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},h=d(p,I);h==null||(m=h.parentNode)===null||m===void 0||m.removeChild(h)}function f(p,m){var I=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},h=s(I);if(!l.has(h)){var v=c("",I),C=v.parentNode;l.set(h,C),C.removeChild(v)}var b=d(m,I);if(b){var y,g;if(((y=I.csp)===null||y===void 0?void 0:y.nonce)&&b.nonce!==((g=I.csp)===null||g===void 0?void 0:g.nonce)){var O;b.nonce=(O=I.csp)===null||O===void 0?void 0:O.nonce}return b.innerHTML!==p&&(b.innerHTML=p),b}var w=c(p,I);return w.setAttribute(a(I),m),w}return dynamicCSS}var hasRequiredUtils;function requireUtils(){if(hasRequiredUtils)return utils$1;hasRequiredUtils=1;var e=interopRequireWildcard.exports,o=interopRequireDefault.exports;Object.defineProperty(utils$1,"__esModule",{value:!0}),utils$1.warning=f,utils$1.isIconDefinition=p,utils$1.normalizeAttrs=m,utils$1.generate=I,utils$1.getSecondaryColor=h,utils$1.normalizeTwoToneColors=v,utils$1.useInsertStyles=utils$1.iconStyles=utils$1.svgBaseProps=void 0;var r=o(requireObjectSpread2()),a=o(_typeof$2.exports),s=require$$4,c=e(React__default.default),l=o(requireWarning$1()),d=requireDynamicCSS(),u=o(requireContext$2());function f(g,O){(0,l.default)(g,"[@ant-design/icons] ".concat(O))}function p(g){return(0,a.default)(g)==="object"&&typeof g.name=="string"&&typeof g.theme=="string"&&((0,a.default)(g.icon)==="object"||typeof g.icon=="function")}function m(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(g).reduce(function(O,w){var _=g[w];switch(w){case"class":O.className=_,delete O.class;break;default:O[w]=_}return O},{})}function I(g,O,w){return w?c.default.createElement(g.tag,(0,r.default)((0,r.default)({key:O},m(g.attrs)),w),(g.children||[]).map(function(_,F){return I(_,"".concat(O,"-").concat(g.tag,"-").concat(F))})):c.default.createElement(g.tag,(0,r.default)({key:O},m(g.attrs)),(g.children||[]).map(function(_,F){return I(_,"".concat(O,"-").concat(g.tag,"-").concat(F))}))}function h(g){return(0,s.generate)(g)[0]}function v(g){return g?Array.isArray(g)?g:[g]:[]}var C={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"};utils$1.svgBaseProps=C;var b=`
|
|
31
|
+
`,SIZING_STYLE=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"],computedStyleCache={},hiddenTextarea;function calculateNodeStyling(e){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(o&&computedStyleCache[r])return computedStyleCache[r];var a=window.getComputedStyle(e),s=a.getPropertyValue("box-sizing")||a.getPropertyValue("-moz-box-sizing")||a.getPropertyValue("-webkit-box-sizing"),c=parseFloat(a.getPropertyValue("padding-bottom"))+parseFloat(a.getPropertyValue("padding-top")),l=parseFloat(a.getPropertyValue("border-bottom-width"))+parseFloat(a.getPropertyValue("border-top-width")),d=SIZING_STYLE.map(function(f){return"".concat(f,":").concat(a.getPropertyValue(f))}).join(";"),u={sizingStyle:d,paddingSize:c,borderSize:l,boxSizing:s};return o&&r&&(computedStyleCache[r]=u),u}function calculateNodeHeight(e){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;hiddenTextarea||(hiddenTextarea=document.createElement("textarea"),hiddenTextarea.setAttribute("tab-index","-1"),hiddenTextarea.setAttribute("aria-hidden","true"),document.body.appendChild(hiddenTextarea)),e.getAttribute("wrap")?hiddenTextarea.setAttribute("wrap",e.getAttribute("wrap")):hiddenTextarea.removeAttribute("wrap");var s=calculateNodeStyling(e,o),c=s.paddingSize,l=s.borderSize,d=s.boxSizing,u=s.sizingStyle;hiddenTextarea.setAttribute("style","".concat(u,";").concat(HIDDEN_TEXTAREA_STYLE)),hiddenTextarea.value=e.value||e.placeholder||"";var f=Number.MIN_SAFE_INTEGER,p=Number.MAX_SAFE_INTEGER,m=hiddenTextarea.scrollHeight,I;if(d==="border-box"?m+=l:d==="content-box"&&(m-=c),r!==null||a!==null){hiddenTextarea.value=" ";var h=hiddenTextarea.scrollHeight-c;r!==null&&(f=h*r,d==="border-box"&&(f=f+c+l),m=Math.max(f,m)),a!==null&&(p=h*a,d==="border-box"&&(p=p+c+l),I=m>p?"":"hidden",m=Math.min(p,m))}return{height:m,minHeight:f,maxHeight:p,overflowY:I,resize:"none"}}var RESIZE_STATUS;(function(e){e[e.NONE=0]="NONE",e[e.RESIZING=1]="RESIZING",e[e.RESIZED=2]="RESIZED"})(RESIZE_STATUS||(RESIZE_STATUS={}));var ResizableTextArea=function(e){_inherits(r,e);var o=_createSuper(r);function r(a){var s;return _classCallCheck(this,r),s=o.call(this,a),s.saveTextArea=function(c){s.textArea=c},s.handleResize=function(c){var l=s.state.resizeStatus,d=s.props,u=d.autoSize,f=d.onResize;l===RESIZE_STATUS.NONE&&(typeof f=="function"&&f(c),u&&s.resizeOnNextFrame())},s.resizeOnNextFrame=function(){cancelAnimationFrame(s.nextFrameActionId),s.nextFrameActionId=requestAnimationFrame(s.resizeTextarea)},s.resizeTextarea=function(){var c=s.props.autoSize;if(!(!c||!s.textArea)){var l=c.minRows,d=c.maxRows,u=calculateNodeHeight(s.textArea,!1,l,d);s.setState({textareaStyles:u,resizeStatus:RESIZE_STATUS.RESIZING},function(){cancelAnimationFrame(s.resizeFrameId),s.resizeFrameId=requestAnimationFrame(function(){s.setState({resizeStatus:RESIZE_STATUS.RESIZED},function(){s.resizeFrameId=requestAnimationFrame(function(){s.setState({resizeStatus:RESIZE_STATUS.NONE}),s.fixFirefoxAutoScroll()})})})})}},s.renderTextArea=function(){var c=s.props,l=c.prefixCls,d=l===void 0?"rc-textarea":l,u=c.autoSize,f=c.onResize,p=c.className,m=c.disabled,I=s.state,h=I.textareaStyles,g=I.resizeStatus,C=omit$1(s.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),b=classnamesExports(d,p,_defineProperty$1({},"".concat(d,"-disabled"),m));"value"in C&&(C.value=C.value||"");var y=_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({},s.props.style),h),g===RESIZE_STATUS.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return jsxRuntime.jsx(ReactResizeObserver,{onResize:s.handleResize,disabled:!(u||f),children:jsxRuntime.jsx("textarea",{...C,className:b,style:y,ref:s.saveTextArea})})},s.state={textareaStyles:{},resizeStatus:RESIZE_STATUS.NONE},s}return _createClass(r,[{key:"componentDidMount",value:function(){this.resizeTextarea()}},{key:"componentDidUpdate",value:function(s){s.value!==this.props.value&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var s=this.textArea.selectionStart,c=this.textArea.selectionEnd;this.textArea.setSelectionRange(s,c)}}catch{}}},{key:"render",value:function(){return this.renderTextArea()}}]),r}(React__namespace.Component),TextArea$1=function(e){_inherits(r,e);var o=_createSuper(r);function r(a){var s;_classCallCheck(this,r),s=o.call(this,a),s.focus=function(){s.resizableTextArea.textArea.focus()},s.saveTextArea=function(l){s.resizableTextArea=l},s.handleChange=function(l){var d=s.props.onChange;s.setValue(l.target.value,function(){s.resizableTextArea.resizeTextarea()}),d&&d(l)},s.handleKeyDown=function(l){var d=s.props,u=d.onPressEnter,f=d.onKeyDown;l.keyCode===13&&u&&u(l),f&&f(l)};var c=typeof a.value>"u"||a.value===null?a.defaultValue:a.value;return s.state={value:c},s}return _createClass(r,[{key:"setValue",value:function(s,c){"value"in this.props||this.setState({value:s},c)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return jsxRuntime.jsx(ResizableTextArea,{...this.props,value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea})}}],[{key:"getDerivedStateFromProps",value:function(s){return"value"in s?{value:s.value}:null}}]),r}(React__namespace.Component);const es$3=Object.freeze(Object.defineProperty({__proto__:null,ResizableTextArea,default:TextArea$1},Symbol.toStringTag,{value:"Module"})),require$$8=getAugmentedNamespace(es$3);var omit={},hasRequiredOmit;function requireOmit(){if(hasRequiredOmit)return omit;hasRequiredOmit=1;var e=interopRequireDefault.exports;Object.defineProperty(omit,"__esModule",{value:!0}),omit.default=s;var o=e(requireDefineProperty());function r(c,l){var d=Object.keys(c);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(c);l&&(u=u.filter(function(f){return Object.getOwnPropertyDescriptor(c,f).enumerable})),d.push.apply(d,u)}return d}function a(c){for(var l=1;l<arguments.length;l++){var d=arguments[l]!=null?arguments[l]:{};l%2?r(Object(d),!0).forEach(function(u){(0,o.default)(c,u,d[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(d)):r(Object(d)).forEach(function(u){Object.defineProperty(c,u,Object.getOwnPropertyDescriptor(d,u))})}return c}function s(c,l){var d=a({},c);return Array.isArray(l)&&l.forEach(function(u){delete d[u]}),d}return omit}var useMergedState={},hasRequiredUseMergedState;function requireUseMergedState(){if(hasRequiredUseMergedState)return useMergedState;hasRequiredUseMergedState=1;var e=interopRequireWildcard.exports,o=interopRequireDefault.exports;Object.defineProperty(useMergedState,"__esModule",{value:!0}),useMergedState.default=s;var r=o(requireSlicedToArray()),a=e(React__default.default);function s(c,l){var d=l||{},u=d.defaultValue,f=d.value,p=d.onChange,m=d.postState,I=a.useState(function(){return f!==void 0?f:u!==void 0?typeof u=="function"?u():u:typeof c=="function"?c():c}),h=(0,r.default)(I,2),g=h[0],C=h[1],b=f!==void 0?f:g;m&&(b=m(b));function y(O){C(O),b!==O&&p&&p(O,b)}var v=a.useRef(!0);return a.useEffect(function(){if(v.current){v.current=!1;return}f===void 0&&C(f)},[f]),[b,y]}return useMergedState}var ClearableLabeledInput={},classCallCheck={exports:{}},hasRequiredClassCallCheck;function requireClassCallCheck(){return hasRequiredClassCallCheck||(hasRequiredClassCallCheck=1,function(e){function o(r,a){if(!(r instanceof a))throw new TypeError("Cannot call a class as a function")}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports}(classCallCheck)),classCallCheck.exports}var createClass={exports:{}},hasRequiredCreateClass;function requireCreateClass(){return hasRequiredCreateClass||(hasRequiredCreateClass=1,function(e){function o(a,s){for(var c=0;c<s.length;c++){var l=s[c];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(a,l.key,l)}}function r(a,s,c){return s&&o(a.prototype,s),c&&o(a,c),Object.defineProperty(a,"prototype",{writable:!1}),a}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(createClass)),createClass.exports}var inherits={exports:{}},setPrototypeOf={exports:{}},hasRequiredSetPrototypeOf;function requireSetPrototypeOf(){return hasRequiredSetPrototypeOf||(hasRequiredSetPrototypeOf=1,function(e){function o(r,a){return e.exports=o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(c,l){return c.__proto__=l,c},e.exports.__esModule=!0,e.exports.default=e.exports,o(r,a)}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports}(setPrototypeOf)),setPrototypeOf.exports}var hasRequiredInherits;function requireInherits(){return hasRequiredInherits||(hasRequiredInherits=1,function(e){var o=requireSetPrototypeOf();function r(a,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(s&&s.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),Object.defineProperty(a,"prototype",{writable:!1}),s&&o(a,s)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(inherits)),inherits.exports}var createSuper={exports:{}},getPrototypeOf={exports:{}},hasRequiredGetPrototypeOf;function requireGetPrototypeOf(){return hasRequiredGetPrototypeOf||(hasRequiredGetPrototypeOf=1,function(e){function o(r){return e.exports=o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(s){return s.__proto__||Object.getPrototypeOf(s)},e.exports.__esModule=!0,e.exports.default=e.exports,o(r)}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports}(getPrototypeOf)),getPrototypeOf.exports}var isNativeReflectConstruct={exports:{}},hasRequiredIsNativeReflectConstruct;function requireIsNativeReflectConstruct(){return hasRequiredIsNativeReflectConstruct||(hasRequiredIsNativeReflectConstruct=1,function(e){function o(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports}(isNativeReflectConstruct)),isNativeReflectConstruct.exports}var possibleConstructorReturn={exports:{}},assertThisInitialized={exports:{}},hasRequiredAssertThisInitialized;function requireAssertThisInitialized(){return hasRequiredAssertThisInitialized||(hasRequiredAssertThisInitialized=1,function(e){function o(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports}(assertThisInitialized)),assertThisInitialized.exports}var hasRequiredPossibleConstructorReturn;function requirePossibleConstructorReturn(){return hasRequiredPossibleConstructorReturn||(hasRequiredPossibleConstructorReturn=1,function(e){var o=_typeof$2.exports.default,r=requireAssertThisInitialized();function a(s,c){if(c&&(o(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return r(s)}e.exports=a,e.exports.__esModule=!0,e.exports.default=e.exports}(possibleConstructorReturn)),possibleConstructorReturn.exports}var hasRequiredCreateSuper;function requireCreateSuper(){return hasRequiredCreateSuper||(hasRequiredCreateSuper=1,function(e){var o=requireGetPrototypeOf(),r=requireIsNativeReflectConstruct(),a=requirePossibleConstructorReturn();function s(c){var l=r();return function(){var u=o(c),f;if(l){var p=o(this).constructor;f=Reflect.construct(u,arguments,p)}else f=u.apply(this,arguments);return a(this,f)}}e.exports=s,e.exports.__esModule=!0,e.exports.default=e.exports}(createSuper)),createSuper.exports}var CloseCircleFilled$2={exports:{}},CloseCircleFilled$1={},objectSpread2={exports:{}},hasRequiredObjectSpread2;function requireObjectSpread2(){return hasRequiredObjectSpread2||(hasRequiredObjectSpread2=1,function(e){var o=requireDefineProperty();function r(s,c){var l=Object.keys(s);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(s);c&&(d=d.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),l.push.apply(l,d)}return l}function a(s){for(var c=1;c<arguments.length;c++){var l=arguments[c]!=null?arguments[c]:{};c%2?r(Object(l),!0).forEach(function(d){o(s,d,l[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(l)):r(Object(l)).forEach(function(d){Object.defineProperty(s,d,Object.getOwnPropertyDescriptor(l,d))})}return s}e.exports=a,e.exports.__esModule=!0,e.exports.default=e.exports}(objectSpread2)),objectSpread2.exports}var CloseCircleFilled={},hasRequiredCloseCircleFilled$2;function requireCloseCircleFilled$2(){if(hasRequiredCloseCircleFilled$2)return CloseCircleFilled;hasRequiredCloseCircleFilled$2=1,Object.defineProperty(CloseCircleFilled,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 01-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z"}}]},name:"close-circle",theme:"filled"};return CloseCircleFilled.default=e,CloseCircleFilled}var AntdIcon={},objectWithoutProperties={exports:{}},objectWithoutPropertiesLoose={exports:{}},hasRequiredObjectWithoutPropertiesLoose;function requireObjectWithoutPropertiesLoose(){return hasRequiredObjectWithoutPropertiesLoose||(hasRequiredObjectWithoutPropertiesLoose=1,function(e){function o(r,a){if(r==null)return{};var s={},c=Object.keys(r),l,d;for(d=0;d<c.length;d++)l=c[d],!(a.indexOf(l)>=0)&&(s[l]=r[l]);return s}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports}(objectWithoutPropertiesLoose)),objectWithoutPropertiesLoose.exports}var hasRequiredObjectWithoutProperties;function requireObjectWithoutProperties(){return hasRequiredObjectWithoutProperties||(hasRequiredObjectWithoutProperties=1,function(e){var o=requireObjectWithoutPropertiesLoose();function r(a,s){if(a==null)return{};var c=o(a,s),l,d;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(a);for(d=0;d<u.length;d++)l=u[d],!(s.indexOf(l)>=0)&&(!Object.prototype.propertyIsEnumerable.call(a,l)||(c[l]=a[l]))}return c}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(objectWithoutProperties)),objectWithoutProperties.exports}var Context$1={},hasRequiredContext$2;function requireContext$2(){if(hasRequiredContext$2)return Context$1;hasRequiredContext$2=1,Object.defineProperty(Context$1,"__esModule",{value:!0}),Context$1.default=void 0;var e=React__default.default,o=(0,e.createContext)({}),r=o;return Context$1.default=r,Context$1}var IconBase={},utils$1={};function bound01(e,o){isOnePointZero(e)&&(e="100%");var r=isPercentage(e);return e=o===360?e:Math.min(o,Math.max(0,parseFloat(e))),r&&(e=parseInt(String(e*o),10)/100),Math.abs(e-o)<1e-6?1:(o===360?e=(e<0?e%o+o:e%o)/parseFloat(String(o)):e=e%o/parseFloat(String(o)),e)}function isOnePointZero(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function isPercentage(e){return typeof e=="string"&&e.indexOf("%")!==-1}function boundAlpha(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function convertToPercentage(e){return e<=1?Number(e)*100+"%":e}function pad2(e){return e.length===1?"0"+e:String(e)}function rgbToRgb(e,o,r){return{r:bound01(e,255)*255,g:bound01(o,255)*255,b:bound01(r,255)*255}}function hue2rgb(e,o,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(o-e)*(6*r):r<1/2?o:r<2/3?e+(o-e)*(2/3-r)*6:e}function hslToRgb(e,o,r){var a,s,c;if(e=bound01(e,360),o=bound01(o,100),r=bound01(r,100),o===0)s=r,c=r,a=r;else{var l=r<.5?r*(1+o):r+o-r*o,d=2*r-l;a=hue2rgb(d,l,e+1/3),s=hue2rgb(d,l,e),c=hue2rgb(d,l,e-1/3)}return{r:a*255,g:s*255,b:c*255}}function rgbToHsv(e,o,r){e=bound01(e,255),o=bound01(o,255),r=bound01(r,255);var a=Math.max(e,o,r),s=Math.min(e,o,r),c=0,l=a,d=a-s,u=a===0?0:d/a;if(a===s)c=0;else{switch(a){case e:c=(o-r)/d+(o<r?6:0);break;case o:c=(r-e)/d+2;break;case r:c=(e-o)/d+4;break}c/=6}return{h:c,s:u,v:l}}function hsvToRgb(e,o,r){e=bound01(e,360)*6,o=bound01(o,100),r=bound01(r,100);var a=Math.floor(e),s=e-a,c=r*(1-o),l=r*(1-s*o),d=r*(1-(1-s)*o),u=a%6,f=[r,l,c,c,d,r][u],p=[d,r,r,l,c,c][u],m=[c,c,d,r,r,l][u];return{r:f*255,g:p*255,b:m*255}}function rgbToHex(e,o,r,a){var s=[pad2(Math.round(e).toString(16)),pad2(Math.round(o).toString(16)),pad2(Math.round(r).toString(16))];return a&&s[0].startsWith(s[0].charAt(1))&&s[1].startsWith(s[1].charAt(1))&&s[2].startsWith(s[2].charAt(1))?s[0].charAt(0)+s[1].charAt(0)+s[2].charAt(0):s.join("")}function convertHexToDecimal(e){return parseIntFromHex(e)/255}function parseIntFromHex(e){return parseInt(e,16)}var names={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function inputToRGB(e){var o={r:0,g:0,b:0},r=1,a=null,s=null,c=null,l=!1,d=!1;return typeof e=="string"&&(e=stringInputToObject(e)),typeof e=="object"&&(isValidCSSUnit(e.r)&&isValidCSSUnit(e.g)&&isValidCSSUnit(e.b)?(o=rgbToRgb(e.r,e.g,e.b),l=!0,d=String(e.r).substr(-1)==="%"?"prgb":"rgb"):isValidCSSUnit(e.h)&&isValidCSSUnit(e.s)&&isValidCSSUnit(e.v)?(a=convertToPercentage(e.s),s=convertToPercentage(e.v),o=hsvToRgb(e.h,a,s),l=!0,d="hsv"):isValidCSSUnit(e.h)&&isValidCSSUnit(e.s)&&isValidCSSUnit(e.l)&&(a=convertToPercentage(e.s),c=convertToPercentage(e.l),o=hslToRgb(e.h,a,c),l=!0,d="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=boundAlpha(r),{ok:l,format:e.format||d,r:Math.min(255,Math.max(o.r,0)),g:Math.min(255,Math.max(o.g,0)),b:Math.min(255,Math.max(o.b,0)),a:r}}var CSS_INTEGER="[-\\+]?\\d+%?",CSS_NUMBER="[-\\+]?\\d*\\.\\d+%?",CSS_UNIT="(?:"+CSS_NUMBER+")|(?:"+CSS_INTEGER+")",PERMISSIVE_MATCH3="[\\s|\\(]+("+CSS_UNIT+")[,|\\s]+("+CSS_UNIT+")[,|\\s]+("+CSS_UNIT+")\\s*\\)?",PERMISSIVE_MATCH4="[\\s|\\(]+("+CSS_UNIT+")[,|\\s]+("+CSS_UNIT+")[,|\\s]+("+CSS_UNIT+")[,|\\s]+("+CSS_UNIT+")\\s*\\)?",matchers={CSS_UNIT:new RegExp(CSS_UNIT),rgb:new RegExp("rgb"+PERMISSIVE_MATCH3),rgba:new RegExp("rgba"+PERMISSIVE_MATCH4),hsl:new RegExp("hsl"+PERMISSIVE_MATCH3),hsla:new RegExp("hsla"+PERMISSIVE_MATCH4),hsv:new RegExp("hsv"+PERMISSIVE_MATCH3),hsva:new RegExp("hsva"+PERMISSIVE_MATCH4),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function stringInputToObject(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var o=!1;if(names[e])e=names[e],o=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r=matchers.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=matchers.rgba.exec(e),r?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=matchers.hsl.exec(e),r?{h:r[1],s:r[2],l:r[3]}:(r=matchers.hsla.exec(e),r?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=matchers.hsv.exec(e),r?{h:r[1],s:r[2],v:r[3]}:(r=matchers.hsva.exec(e),r?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=matchers.hex8.exec(e),r?{r:parseIntFromHex(r[1]),g:parseIntFromHex(r[2]),b:parseIntFromHex(r[3]),a:convertHexToDecimal(r[4]),format:o?"name":"hex8"}:(r=matchers.hex6.exec(e),r?{r:parseIntFromHex(r[1]),g:parseIntFromHex(r[2]),b:parseIntFromHex(r[3]),format:o?"name":"hex"}:(r=matchers.hex4.exec(e),r?{r:parseIntFromHex(r[1]+r[1]),g:parseIntFromHex(r[2]+r[2]),b:parseIntFromHex(r[3]+r[3]),a:convertHexToDecimal(r[4]+r[4]),format:o?"name":"hex8"}:(r=matchers.hex3.exec(e),r?{r:parseIntFromHex(r[1]+r[1]),g:parseIntFromHex(r[2]+r[2]),b:parseIntFromHex(r[3]+r[3]),format:o?"name":"hex"}:!1)))))))))}function isValidCSSUnit(e){return Boolean(matchers.CSS_UNIT.exec(String(e)))}var hueStep=2,saturationStep=.16,saturationStep2=.05,brightnessStep1=.05,brightnessStep2=.15,lightColorCount=5,darkColorCount=4,darkColorMap=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function toHsv(e){var o=e.r,r=e.g,a=e.b,s=rgbToHsv(o,r,a);return{h:s.h*360,s:s.s,v:s.v}}function toHex(e){var o=e.r,r=e.g,a=e.b;return"#".concat(rgbToHex(o,r,a,!1))}function mix$1(e,o,r){var a=r/100,s={r:(o.r-e.r)*a+e.r,g:(o.g-e.g)*a+e.g,b:(o.b-e.b)*a+e.b};return s}function getHue(e,o,r){var a;return Math.round(e.h)>=60&&Math.round(e.h)<=240?a=r?Math.round(e.h)-hueStep*o:Math.round(e.h)+hueStep*o:a=r?Math.round(e.h)+hueStep*o:Math.round(e.h)-hueStep*o,a<0?a+=360:a>=360&&(a-=360),a}function getSaturation(e,o,r){if(e.h===0&&e.s===0)return e.s;var a;return r?a=e.s-saturationStep*o:o===darkColorCount?a=e.s+saturationStep:a=e.s+saturationStep2*o,a>1&&(a=1),r&&o===lightColorCount&&a>.1&&(a=.1),a<.06&&(a=.06),Number(a.toFixed(2))}function getValue$1(e,o,r){var a;return r?a=e.v+brightnessStep1*o:a=e.v-brightnessStep2*o,a>1&&(a=1),Number(a.toFixed(2))}function generate(e){for(var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],a=inputToRGB(e),s=lightColorCount;s>0;s-=1){var c=toHsv(a),l=toHex(inputToRGB({h:getHue(c,s,!0),s:getSaturation(c,s,!0),v:getValue$1(c,s,!0)}));r.push(l)}r.push(toHex(a));for(var d=1;d<=darkColorCount;d+=1){var u=toHsv(a),f=toHex(inputToRGB({h:getHue(u,d),s:getSaturation(u,d),v:getValue$1(u,d)}));r.push(f)}return o.theme==="dark"?darkColorMap.map(function(p){var m=p.index,I=p.opacity,h=toHex(mix$1(inputToRGB(o.backgroundColor||"#141414"),inputToRGB(r[m]),I*100));return h}):r}var presetPrimaryColors={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},presetPalettes={},presetDarkPalettes={};Object.keys(presetPrimaryColors).forEach(function(e){presetPalettes[e]=generate(presetPrimaryColors[e]),presetPalettes[e].primary=presetPalettes[e][5],presetDarkPalettes[e]=generate(presetPrimaryColors[e],{theme:"dark",backgroundColor:"#141414"}),presetDarkPalettes[e].primary=presetDarkPalettes[e][5]});var red=presetPalettes.red,volcano=presetPalettes.volcano,gold=presetPalettes.gold,orange=presetPalettes.orange,yellow=presetPalettes.yellow,lime=presetPalettes.lime,green=presetPalettes.green,cyan=presetPalettes.cyan,blue=presetPalettes.blue,geekblue=presetPalettes.geekblue,purple=presetPalettes.purple,magenta=presetPalettes.magenta,grey=presetPalettes.grey;const index_esm=Object.freeze(Object.defineProperty({__proto__:null,blue,cyan,geekblue,generate,gold,green,grey,lime,magenta,orange,presetDarkPalettes,presetPalettes,presetPrimaryColors,purple,red,volcano,yellow},Symbol.toStringTag,{value:"Module"})),require$$4=getAugmentedNamespace(index_esm);var warning$4={},hasRequiredWarning$1;function requireWarning$1(){if(hasRequiredWarning$1)return warning$4;hasRequiredWarning$1=1,Object.defineProperty(warning$4,"__esModule",{value:!0}),warning$4.call=s,warning$4.default=void 0,warning$4.note=r,warning$4.noteOnce=l,warning$4.resetWarned=a,warning$4.warning=o,warning$4.warningOnce=c;var e={};function o(u,f){process.env.NODE_ENV!=="production"&&!u&&console!==void 0&&console.error("Warning: ".concat(f))}function r(u,f){process.env.NODE_ENV!=="production"&&!u&&console!==void 0&&console.warn("Note: ".concat(f))}function a(){e={}}function s(u,f,p){!f&&!e[p]&&(u(!1,p),e[p]=!0)}function c(u,f){s(o,u,f)}function l(u,f){s(r,u,f)}var d=c;return warning$4.default=d,warning$4}var dynamicCSS={},canUseDom$2={},hasRequiredCanUseDom$1;function requireCanUseDom$1(){if(hasRequiredCanUseDom$1)return canUseDom$2;hasRequiredCanUseDom$1=1,Object.defineProperty(canUseDom$2,"__esModule",{value:!0}),canUseDom$2.default=e;function e(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}return canUseDom$2}var hasRequiredDynamicCSS;function requireDynamicCSS(){if(hasRequiredDynamicCSS)return dynamicCSS;hasRequiredDynamicCSS=1;var e=interopRequireDefault.exports;Object.defineProperty(dynamicCSS,"__esModule",{value:!0}),dynamicCSS.injectCSS=c,dynamicCSS.removeCSS=u,dynamicCSS.updateCSS=f;var o=e(requireCanUseDom$1()),r="rc-util-key";function a(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},m=p.mark;return m?m.startsWith("data-")?m:"data-".concat(m):r}function s(p){if(p.attachTo)return p.attachTo;var m=document.querySelector("head");return m||document.body}function c(p){var m,I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!(0,o.default)())return null;var h=document.createElement("style");if(!((m=I.csp)===null||m===void 0)&&m.nonce){var g;h.nonce=(g=I.csp)===null||g===void 0?void 0:g.nonce}h.innerHTML=p;var C=s(I),b=C.firstChild;return I.prepend&&C.prepend?C.prepend(h):I.prepend&&b?C.insertBefore(h,b):C.appendChild(h),h}var l=new Map;function d(p){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},I=s(m);return Array.from(l.get(I).children).find(function(h){return h.tagName==="STYLE"&&h.getAttribute(a(m))===p})}function u(p){var m,I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},h=d(p,I);h==null||(m=h.parentNode)===null||m===void 0||m.removeChild(h)}function f(p,m){var I=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},h=s(I);if(!l.has(h)){var g=c("",I),C=g.parentNode;l.set(h,C),C.removeChild(g)}var b=d(m,I);if(b){var y,v;if(((y=I.csp)===null||y===void 0?void 0:y.nonce)&&b.nonce!==((v=I.csp)===null||v===void 0?void 0:v.nonce)){var O;b.nonce=(O=I.csp)===null||O===void 0?void 0:O.nonce}return b.innerHTML!==p&&(b.innerHTML=p),b}var w=c(p,I);return w.setAttribute(a(I),m),w}return dynamicCSS}var hasRequiredUtils;function requireUtils(){if(hasRequiredUtils)return utils$1;hasRequiredUtils=1;var e=interopRequireWildcard.exports,o=interopRequireDefault.exports;Object.defineProperty(utils$1,"__esModule",{value:!0}),utils$1.warning=f,utils$1.isIconDefinition=p,utils$1.normalizeAttrs=m,utils$1.generate=I,utils$1.getSecondaryColor=h,utils$1.normalizeTwoToneColors=g,utils$1.useInsertStyles=utils$1.iconStyles=utils$1.svgBaseProps=void 0;var r=o(requireObjectSpread2()),a=o(_typeof$2.exports),s=require$$4,c=e(React__default.default),l=o(requireWarning$1()),d=requireDynamicCSS(),u=o(requireContext$2());function f(v,O){(0,l.default)(v,"[@ant-design/icons] ".concat(O))}function p(v){return(0,a.default)(v)==="object"&&typeof v.name=="string"&&typeof v.theme=="string"&&((0,a.default)(v.icon)==="object"||typeof v.icon=="function")}function m(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(v).reduce(function(O,w){var _=v[w];switch(w){case"class":O.className=_,delete O.class;break;default:O[w]=_}return O},{})}function I(v,O,w){return w?c.default.createElement(v.tag,(0,r.default)((0,r.default)({key:O},m(v.attrs)),w),(v.children||[]).map(function(_,F){return I(_,"".concat(O,"-").concat(v.tag,"-").concat(F))})):c.default.createElement(v.tag,(0,r.default)({key:O},m(v.attrs)),(v.children||[]).map(function(_,F){return I(_,"".concat(O,"-").concat(v.tag,"-").concat(F))}))}function h(v){return(0,s.generate)(v)[0]}function g(v){return v?Array.isArray(v)?v:[v]:[]}var C={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"};utils$1.svgBaseProps=C;var b=`
|
|
32
32
|
.anticon {
|
|
33
33
|
display: inline-block;
|
|
34
34
|
color: inherit;
|
|
@@ -82,13 +82,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
82
82
|
transform: rotate(360deg);
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
|
-
`;utils$1.iconStyles=b;var y=function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:b,w=(0,c.useContext)(u.default),_=w.csp;(0,c.useEffect)(function(){(0,d.updateCSS)(O,"@ant-design-icons",{prepend:!0,csp:_})},[])};return utils$1.useInsertStyles=y,utils$1}var hasRequiredIconBase;function requireIconBase(){if(hasRequiredIconBase)return IconBase;hasRequiredIconBase=1;var e=interopRequireDefault.exports;Object.defineProperty(IconBase,"__esModule",{value:!0}),IconBase.default=void 0;var o=e(requireObjectWithoutProperties()),r=e(requireObjectSpread2()),a=requireUtils(),s=["icon","className","onClick","style","primaryColor","secondaryColor"],c={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function l(p){var m=p.primaryColor,I=p.secondaryColor;c.primaryColor=m,c.secondaryColor=I||(0,a.getSecondaryColor)(m),c.calculated=!!I}function d(){return(0,r.default)({},c)}var u=function(m){var I=m.icon,h=m.className,
|
|
86
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}var HOOK_MARK="RC_FORM_INTERNAL_HOOKS",warningFunc=function(){warningOnce(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Context=React__namespace.createContext({getFieldValue:warningFunc,getFieldsValue:warningFunc,getFieldError:warningFunc,getFieldsError:warningFunc,isFieldsTouched:warningFunc,isFieldTouched:warningFunc,isFieldValidating:warningFunc,isFieldsValidating:warningFunc,resetFields:warningFunc,setFields:warningFunc,setFieldsValue:warningFunc,validateFields:warningFunc,submit:warningFunc,getInternalHooks:function(){return warningFunc(),{dispatch:warningFunc,initEntityValue:warningFunc,registerField:warningFunc,useSubscribe:warningFunc,setInitialValues:warningFunc,setCallbacks:warningFunc,getFields:warningFunc,setValidateMessages:warningFunc,setPreserve:warningFunc}}});function toArray$2(e){return e==null?[]:Array.isArray(e)?e:[e]}var regeneratorRuntime$1={exports:{}},hasRequiredRegeneratorRuntime;function requireRegeneratorRuntime(){return hasRequiredRegeneratorRuntime||(hasRequiredRegeneratorRuntime=1,function(e){var o=_typeof$2.exports.default;function r(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e.exports=r=function(){return a},e.exports.__esModule=!0,e.exports.default=e.exports;var a={},s=Object.prototype,c=s.hasOwnProperty,l=typeof Symbol=="function"?Symbol:{},d=l.iterator||"@@iterator",u=l.asyncIterator||"@@asyncIterator",f=l.toStringTag||"@@toStringTag";function p(Y,z,Q){return Object.defineProperty(Y,z,{value:Q,enumerable:!0,configurable:!0,writable:!0}),Y[z]}try{p({},"")}catch{p=function(Q,oe,te){return Q[oe]=te}}function m(Y,z,Q,oe){var te=z&&z.prototype instanceof v?z:v,X=Object.create(te.prototype),ce=new A(oe||[]);return X._invoke=function(Re,xe,de){var Ce="suspendedStart";return function(ee,ue){if(Ce==="executing")throw new Error("Generator is already running");if(Ce==="completed"){if(ee==="throw")throw ue;return J()}for(de.method=ee,de.arg=ue;;){var N=de.delegate;if(N){var U=L(N,de);if(U){if(U===h)continue;return U}}if(de.method==="next")de.sent=de._sent=de.arg;else if(de.method==="throw"){if(Ce==="suspendedStart")throw Ce="completed",de.arg;de.dispatchException(de.arg)}else de.method==="return"&&de.abrupt("return",de.arg);Ce="executing";var re=I(Re,xe,de);if(re.type==="normal"){if(Ce=de.done?"completed":"suspendedYield",re.arg===h)continue;return{value:re.arg,done:de.done}}re.type==="throw"&&(Ce="completed",de.method="throw",de.arg=re.arg)}}}(Y,Q,ce),X}function I(Y,z,Q){try{return{type:"normal",arg:Y.call(z,Q)}}catch(oe){return{type:"throw",arg:oe}}}a.wrap=m;var h={};function v(){}function C(){}function b(){}var y={};p(y,d,function(){return this});var g=Object.getPrototypeOf,O=g&&g(g(W([])));O&&O!==s&&c.call(O,d)&&(y=O);var w=b.prototype=v.prototype=Object.create(y);function _(Y){["next","throw","return"].forEach(function(z){p(Y,z,function(Q){return this._invoke(z,Q)})})}function F(Y,z){function Q(te,X,ce,Re){var xe=I(Y[te],Y,X);if(xe.type!=="throw"){var de=xe.arg,Ce=de.value;return Ce&&o(Ce)=="object"&&c.call(Ce,"__await")?z.resolve(Ce.__await).then(function(ee){Q("next",ee,ce,Re)},function(ee){Q("throw",ee,ce,Re)}):z.resolve(Ce).then(function(ee){de.value=ee,ce(de)},function(ee){return Q("throw",ee,ce,Re)})}Re(xe.arg)}var oe;this._invoke=function(te,X){function ce(){return new z(function(Re,xe){Q(te,X,Re,xe)})}return oe=oe?oe.then(ce,ce):ce()}}function L(Y,z){var Q=Y.iterator[z.method];if(Q===void 0){if(z.delegate=null,z.method==="throw"){if(Y.iterator.return&&(z.method="return",z.arg=void 0,L(Y,z),z.method==="throw"))return h;z.method="throw",z.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var oe=I(Q,Y.iterator,z.arg);if(oe.type==="throw")return z.method="throw",z.arg=oe.arg,z.delegate=null,h;var te=oe.arg;return te?te.done?(z[Y.resultName]=te.value,z.next=Y.nextLoc,z.method!=="return"&&(z.method="next",z.arg=void 0),z.delegate=null,h):te:(z.method="throw",z.arg=new TypeError("iterator result is not an object"),z.delegate=null,h)}function E(Y){var z={tryLoc:Y[0]};1 in Y&&(z.catchLoc=Y[1]),2 in Y&&(z.finallyLoc=Y[2],z.afterLoc=Y[3]),this.tryEntries.push(z)}function P(Y){var z=Y.completion||{};z.type="normal",delete z.arg,Y.completion=z}function A(Y){this.tryEntries=[{tryLoc:"root"}],Y.forEach(E,this),this.reset(!0)}function W(Y){if(Y){var z=Y[d];if(z)return z.call(Y);if(typeof Y.next=="function")return Y;if(!isNaN(Y.length)){var Q=-1,oe=function te(){for(;++Q<Y.length;)if(c.call(Y,Q))return te.value=Y[Q],te.done=!1,te;return te.value=void 0,te.done=!0,te};return oe.next=oe}}return{next:J}}function J(){return{value:void 0,done:!0}}return C.prototype=b,p(w,"constructor",b),p(b,"constructor",C),C.displayName=p(b,f,"GeneratorFunction"),a.isGeneratorFunction=function(Y){var z=typeof Y=="function"&&Y.constructor;return!!z&&(z===C||(z.displayName||z.name)==="GeneratorFunction")},a.mark=function(Y){return Object.setPrototypeOf?Object.setPrototypeOf(Y,b):(Y.__proto__=b,p(Y,f,"GeneratorFunction")),Y.prototype=Object.create(w),Y},a.awrap=function(Y){return{__await:Y}},_(F.prototype),p(F.prototype,u,function(){return this}),a.AsyncIterator=F,a.async=function(Y,z,Q,oe,te){te===void 0&&(te=Promise);var X=new F(m(Y,z,Q,oe),te);return a.isGeneratorFunction(z)?X:X.next().then(function(ce){return ce.done?ce.value:X.next()})},_(w),p(w,f,"Generator"),p(w,d,function(){return this}),p(w,"toString",function(){return"[object Generator]"}),a.keys=function(Y){var z=[];for(var Q in Y)z.push(Q);return z.reverse(),function oe(){for(;z.length;){var te=z.pop();if(te in Y)return oe.value=te,oe.done=!1,oe}return oe.done=!0,oe}},a.values=W,A.prototype={constructor:A,reset:function(z){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(P),!z)for(var Q in this)Q.charAt(0)==="t"&&c.call(this,Q)&&!isNaN(+Q.slice(1))&&(this[Q]=void 0)},stop:function(){this.done=!0;var z=this.tryEntries[0].completion;if(z.type==="throw")throw z.arg;return this.rval},dispatchException:function(z){if(this.done)throw z;var Q=this;function oe(de,Ce){return ce.type="throw",ce.arg=z,Q.next=de,Ce&&(Q.method="next",Q.arg=void 0),!!Ce}for(var te=this.tryEntries.length-1;te>=0;--te){var X=this.tryEntries[te],ce=X.completion;if(X.tryLoc==="root")return oe("end");if(X.tryLoc<=this.prev){var Re=c.call(X,"catchLoc"),xe=c.call(X,"finallyLoc");if(Re&&xe){if(this.prev<X.catchLoc)return oe(X.catchLoc,!0);if(this.prev<X.finallyLoc)return oe(X.finallyLoc)}else if(Re){if(this.prev<X.catchLoc)return oe(X.catchLoc,!0)}else{if(!xe)throw new Error("try statement without catch or finally");if(this.prev<X.finallyLoc)return oe(X.finallyLoc)}}}},abrupt:function(z,Q){for(var oe=this.tryEntries.length-1;oe>=0;--oe){var te=this.tryEntries[oe];if(te.tryLoc<=this.prev&&c.call(te,"finallyLoc")&&this.prev<te.finallyLoc){var X=te;break}}X&&(z==="break"||z==="continue")&&X.tryLoc<=Q&&Q<=X.finallyLoc&&(X=null);var ce=X?X.completion:{};return ce.type=z,ce.arg=Q,X?(this.method="next",this.next=X.finallyLoc,h):this.complete(ce)},complete:function(z,Q){if(z.type==="throw")throw z.arg;return z.type==="break"||z.type==="continue"?this.next=z.arg:z.type==="return"?(this.rval=this.arg=z.arg,this.method="return",this.next="end"):z.type==="normal"&&Q&&(this.next=Q),h},finish:function(z){for(var Q=this.tryEntries.length-1;Q>=0;--Q){var oe=this.tryEntries[Q];if(oe.finallyLoc===z)return this.complete(oe.completion,oe.afterLoc),P(oe),h}},catch:function(z){for(var Q=this.tryEntries.length-1;Q>=0;--Q){var oe=this.tryEntries[Q];if(oe.tryLoc===z){var te=oe.completion;if(te.type==="throw"){var X=te.arg;P(oe)}return X}}throw new Error("illegal catch attempt")},delegateYield:function(z,Q,oe){return this.delegate={iterator:W(z),resultName:Q,nextLoc:oe},this.method==="next"&&(this.arg=void 0),h}},a}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(regeneratorRuntime$1)),regeneratorRuntime$1.exports}var regenerator,hasRequiredRegenerator;function requireRegenerator(){if(hasRequiredRegenerator)return regenerator;hasRequiredRegenerator=1;var e=requireRegeneratorRuntime()();regenerator=e;try{regeneratorRuntime=e}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}return regenerator}var regeneratorExports=requireRegenerator();function asyncGeneratorStep(e,o,r,a,s,c,l){try{var d=e[c](l),u=d.value}catch(f){r(f);return}d.done?o(u):Promise.resolve(u).then(a,s)}function _asyncToGenerator(e){return function(){var o=this,r=arguments;return new Promise(function(a,s){var c=e.apply(o,r);function l(u){asyncGeneratorStep(c,a,s,l,d,"next",u)}function d(u){asyncGeneratorStep(c,a,s,l,d,"throw",u)}l(void 0)})}}function _extends(){return _extends=Object.assign||function(e){for(var o=1;o<arguments.length;o++){var r=arguments[o];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},_extends.apply(this,arguments)}function _inheritsLoose$1(e,o){e.prototype=Object.create(o.prototype),e.prototype.constructor=e,e.__proto__=o}function _getPrototypeOf(e){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},_getPrototypeOf(e)}function _setPrototypeOf(e,o){return _setPrototypeOf=Object.setPrototypeOf||function(a,s){return a.__proto__=s,a},_setPrototypeOf(e,o)}function _isNativeReflectConstruct(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function _construct(e,o,r){return _isNativeReflectConstruct()?_construct=Reflect.construct:_construct=function(s,c,l){var d=[null];d.push.apply(d,c);var u=Function.bind.apply(s,d),f=new u;return l&&_setPrototypeOf(f,l.prototype),f},_construct.apply(null,arguments)}function _isNativeFunction(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function _wrapNativeSuper(e){var o=typeof Map=="function"?new Map:void 0;return _wrapNativeSuper=function(a){if(a===null||!_isNativeFunction(a))return a;if(typeof a!="function")throw new TypeError("Super expression must either be null or a function");if(typeof o<"u"){if(o.has(a))return o.get(a);o.set(a,s)}function s(){return _construct(a,arguments,_getPrototypeOf(this).constructor)}return s.prototype=Object.create(a.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(s,a)},_wrapNativeSuper(e)}var formatRegExp=/%[sdj%]/g,warning$3=function(){};typeof process<"u"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof document<"u"&&(warning$3=function(o,r){typeof console<"u"&&console.warn&&r.every(function(a){return typeof a=="string"})&&console.warn(o,r)});function convertFieldsError(e){if(!e||!e.length)return null;var o={};return e.forEach(function(r){var a=r.field;o[a]=o[a]||[],o[a].push(r)}),o}function format$1(){for(var e=arguments.length,o=new Array(e),r=0;r<e;r++)o[r]=arguments[r];var a=1,s=o[0],c=o.length;if(typeof s=="function")return s.apply(null,o.slice(1));if(typeof s=="string"){var l=String(s).replace(formatRegExp,function(d){if(d==="%%")return"%";if(a>=c)return d;switch(d){case"%s":return String(o[a++]);case"%d":return Number(o[a++]);case"%j":try{return JSON.stringify(o[a++])}catch{return"[Circular]"}break;default:return d}});return l}return s}function isNativeStringType(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function isEmptyValue(e,o){return!!(e==null||o==="array"&&Array.isArray(e)&&!e.length||isNativeStringType(o)&&typeof e=="string"&&!e)}function asyncParallelArray(e,o,r){var a=[],s=0,c=e.length;function l(d){a.push.apply(a,d),s++,s===c&&r(a)}e.forEach(function(d){o(d,l)})}function asyncSerialArray(e,o,r){var a=0,s=e.length;function c(l){if(l&&l.length){r(l);return}var d=a;a=a+1,d<s?o(e[d],c):r([])}c([])}function flattenObjArr(e){var o=[];return Object.keys(e).forEach(function(r){o.push.apply(o,e[r])}),o}var AsyncValidationError=function(e){_inheritsLoose$1(o,e);function o(r,a){var s;return s=e.call(this,"Async Validation Error")||this,s.errors=r,s.fields=a,s}return o}(_wrapNativeSuper(Error));function asyncMap(e,o,r,a){if(o.first){var s=new Promise(function(m,I){var h=function(b){return a(b),b.length?I(new AsyncValidationError(b,convertFieldsError(b))):m()},v=flattenObjArr(e);asyncSerialArray(v,r,h)});return s.catch(function(m){return m}),s}var c=o.firstFields||[];c===!0&&(c=Object.keys(e));var l=Object.keys(e),d=l.length,u=0,f=[],p=new Promise(function(m,I){var h=function(C){if(f.push.apply(f,C),u++,u===d)return a(f),f.length?I(new AsyncValidationError(f,convertFieldsError(f))):m()};l.length||(a(f),m()),l.forEach(function(v){var C=e[v];c.indexOf(v)!==-1?asyncSerialArray(C,r,h):asyncParallelArray(C,r,h)})});return p.catch(function(m){return m}),p}function complementError(e){return function(o){return o&&o.message?(o.field=o.field||e.fullField,o):{message:typeof o=="function"?o():o,field:o.field||e.fullField}}}function deepMerge(e,o){if(o){for(var r in o)if(o.hasOwnProperty(r)){var a=o[r];typeof a=="object"&&typeof e[r]=="object"?e[r]=_extends(_extends({},e[r]),a):e[r]=a}}return e}function required(e,o,r,a,s,c){e.required&&(!r.hasOwnProperty(e.field)||isEmptyValue(o,c||e.type))&&a.push(format$1(s.messages.required,e.fullField))}function whitespace(e,o,r,a,s){(/^\s+$/.test(o)||o==="")&&a.push(format$1(s.messages.whitespace,e.fullField))}var pattern={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},types$2={integer:function(o){return types$2.number(o)&&parseInt(o,10)===o},float:function(o){return types$2.number(o)&&!types$2.integer(o)},array:function(o){return Array.isArray(o)},regexp:function(o){if(o instanceof RegExp)return!0;try{return!!new RegExp(o)}catch{return!1}},date:function(o){return typeof o.getTime=="function"&&typeof o.getMonth=="function"&&typeof o.getYear=="function"&&!isNaN(o.getTime())},number:function(o){return isNaN(o)?!1:typeof o=="number"},object:function(o){return typeof o=="object"&&!types$2.array(o)},method:function(o){return typeof o=="function"},email:function(o){return typeof o=="string"&&!!o.match(pattern.email)&&o.length<255},url:function(o){return typeof o=="string"&&!!o.match(pattern.url)},hex:function(o){return typeof o=="string"&&!!o.match(pattern.hex)}};function type(e,o,r,a,s){if(e.required&&o===void 0){required(e,o,r,a,s);return}var c=["integer","float","array","regexp","object","method","email","number","date","url","hex"],l=e.type;c.indexOf(l)>-1?types$2[l](o)||a.push(format$1(s.messages.types[l],e.fullField,e.type)):l&&typeof o!==e.type&&a.push(format$1(s.messages.types[l],e.fullField,e.type))}function range(e,o,r,a,s){var c=typeof e.len=="number",l=typeof e.min=="number",d=typeof e.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,f=o,p=null,m=typeof o=="number",I=typeof o=="string",h=Array.isArray(o);if(m?p="number":I?p="string":h&&(p="array"),!p)return!1;h&&(f=o.length),I&&(f=o.replace(u,"_").length),c?f!==e.len&&a.push(format$1(s.messages[p].len,e.fullField,e.len)):l&&!d&&f<e.min?a.push(format$1(s.messages[p].min,e.fullField,e.min)):d&&!l&&f>e.max?a.push(format$1(s.messages[p].max,e.fullField,e.max)):l&&d&&(f<e.min||f>e.max)&&a.push(format$1(s.messages[p].range,e.fullField,e.min,e.max))}var ENUM="enum";function enumerable(e,o,r,a,s){e[ENUM]=Array.isArray(e[ENUM])?e[ENUM]:[],e[ENUM].indexOf(o)===-1&&a.push(format$1(s.messages[ENUM],e.fullField,e[ENUM].join(", ")))}function pattern$1(e,o,r,a,s){if(e.pattern){if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(o)||a.push(format$1(s.messages.pattern.mismatch,e.fullField,o,e.pattern));else if(typeof e.pattern=="string"){var c=new RegExp(e.pattern);c.test(o)||a.push(format$1(s.messages.pattern.mismatch,e.fullField,o,e.pattern))}}}var rules={required,whitespace,type,range,enum:enumerable,pattern:pattern$1};function string(e,o,r,a,s){var c=[],l=e.required||!e.required&&a.hasOwnProperty(e.field);if(l){if(isEmptyValue(o,"string")&&!e.required)return r();rules.required(e,o,a,c,s,"string"),isEmptyValue(o,"string")||(rules.type(e,o,a,c,s),rules.range(e,o,a,c,s),rules.pattern(e,o,a,c,s),e.whitespace===!0&&rules.whitespace(e,o,a,c,s))}r(c)}function method(e,o,r,a,s){var c=[],l=e.required||!e.required&&a.hasOwnProperty(e.field);if(l){if(isEmptyValue(o)&&!e.required)return r();rules.required(e,o,a,c,s),o!==void 0&&rules.type(e,o,a,c,s)}r(c)}function number(e,o,r,a,s){var c=[],l=e.required||!e.required&&a.hasOwnProperty(e.field);if(l){if(o===""&&(o=void 0),isEmptyValue(o)&&!e.required)return r();rules.required(e,o,a,c,s),o!==void 0&&(rules.type(e,o,a,c,s),rules.range(e,o,a,c,s))}r(c)}function _boolean(e,o,r,a,s){var c=[],l=e.required||!e.required&&a.hasOwnProperty(e.field);if(l){if(isEmptyValue(o)&&!e.required)return r();rules.required(e,o,a,c,s),o!==void 0&&rules.type(e,o,a,c,s)}r(c)}function regexp(e,o,r,a,s){var c=[],l=e.required||!e.required&&a.hasOwnProperty(e.field);if(l){if(isEmptyValue(o)&&!e.required)return r();rules.required(e,o,a,c,s),isEmptyValue(o)||rules.type(e,o,a,c,s)}r(c)}function integer(e,o,r,a,s){var c=[],l=e.required||!e.required&&a.hasOwnProperty(e.field);if(l){if(isEmptyValue(o)&&!e.required)return r();rules.required(e,o,a,c,s),o!==void 0&&(rules.type(e,o,a,c,s),rules.range(e,o,a,c,s))}r(c)}function floatFn(e,o,r,a,s){var c=[],l=e.required||!e.required&&a.hasOwnProperty(e.field);if(l){if(isEmptyValue(o)&&!e.required)return r();rules.required(e,o,a,c,s),o!==void 0&&(rules.type(e,o,a,c,s),rules.range(e,o,a,c,s))}r(c)}function array(e,o,r,a,s){var c=[],l=e.required||!e.required&&a.hasOwnProperty(e.field);if(l){if(o==null&&!e.required)return r();rules.required(e,o,a,c,s,"array"),o!=null&&(rules.type(e,o,a,c,s),rules.range(e,o,a,c,s))}r(c)}function object(e,o,r,a,s){var c=[],l=e.required||!e.required&&a.hasOwnProperty(e.field);if(l){if(isEmptyValue(o)&&!e.required)return r();rules.required(e,o,a,c,s),o!==void 0&&rules.type(e,o,a,c,s)}r(c)}var ENUM$1="enum";function enumerable$1(e,o,r,a,s){var c=[],l=e.required||!e.required&&a.hasOwnProperty(e.field);if(l){if(isEmptyValue(o)&&!e.required)return r();rules.required(e,o,a,c,s),o!==void 0&&rules[ENUM$1](e,o,a,c,s)}r(c)}function pattern$2(e,o,r,a,s){var c=[],l=e.required||!e.required&&a.hasOwnProperty(e.field);if(l){if(isEmptyValue(o,"string")&&!e.required)return r();rules.required(e,o,a,c,s),isEmptyValue(o,"string")||rules.pattern(e,o,a,c,s)}r(c)}function date(e,o,r,a,s){var c=[],l=e.required||!e.required&&a.hasOwnProperty(e.field);if(l){if(isEmptyValue(o,"date")&&!e.required)return r();if(rules.required(e,o,a,c,s),!isEmptyValue(o,"date")){var d;o instanceof Date?d=o:d=new Date(o),rules.type(e,d,a,c,s),d&&rules.range(e,d.getTime(),a,c,s)}}r(c)}function required$1(e,o,r,a,s){var c=[],l=Array.isArray(o)?"array":typeof o;rules.required(e,o,a,c,s,l),r(c)}function type$1(e,o,r,a,s){var c=e.type,l=[],d=e.required||!e.required&&a.hasOwnProperty(e.field);if(d){if(isEmptyValue(o,c)&&!e.required)return r();rules.required(e,o,a,l,s,c),isEmptyValue(o,c)||rules.type(e,o,a,l,s)}r(l)}function any(e,o,r,a,s){var c=[],l=e.required||!e.required&&a.hasOwnProperty(e.field);if(l){if(isEmptyValue(o)&&!e.required)return r();rules.required(e,o,a,c,s)}r(c)}var validators={string,method,number,boolean:_boolean,regexp,integer,float:floatFn,array,object,enum:enumerable$1,pattern:pattern$2,date,url:type$1,hex:type$1,email:type$1,required:required$1,any};function newMessages(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var o=JSON.parse(JSON.stringify(this));return o.clone=this.clone,o}}}var messages=newMessages();function Schema(e){this.rules=null,this._messages=messages,this.define(e)}Schema.prototype={messages:function(o){return o&&(this._messages=deepMerge(newMessages(),o)),this._messages},define:function(o){if(!o)throw new Error("Cannot configure a schema with no rules");if(typeof o!="object"||Array.isArray(o))throw new Error("Rules must be an object");this.rules={};var r,a;for(r in o)o.hasOwnProperty(r)&&(a=o[r],this.rules[r]=Array.isArray(a)?a:[a])},validate:function(o,r,a){var s=this;r===void 0&&(r={}),a===void 0&&(a=function(){});var c=o,l=r,d=a;if(typeof l=="function"&&(d=l,l={}),!this.rules||Object.keys(this.rules).length===0)return d&&d(),Promise.resolve();function u(C){var b,y=[],g={};function O(w){if(Array.isArray(w)){var _;y=(_=y).concat.apply(_,w)}else y.push(w)}for(b=0;b<C.length;b++)O(C[b]);y.length?g=convertFieldsError(y):(y=null,g=null),d(y,g)}if(l.messages){var f=this.messages();f===messages&&(f=newMessages()),deepMerge(f,l.messages),l.messages=f}else l.messages=this.messages();var p,m,I={},h=l.keys||Object.keys(this.rules);h.forEach(function(C){p=s.rules[C],m=c[C],p.forEach(function(b){var y=b;typeof y.transform=="function"&&(c===o&&(c=_extends({},c)),m=c[C]=y.transform(m)),typeof y=="function"?y={validator:y}:y=_extends({},y),y.validator=s.getValidationMethod(y),y.field=C,y.fullField=y.fullField||C,y.type=s.getType(y),y.validator&&(I[C]=I[C]||[],I[C].push({rule:y,value:m,source:c,field:C}))})});var v={};return asyncMap(I,l,function(C,b){var y=C.rule,g=(y.type==="object"||y.type==="array")&&(typeof y.fields=="object"||typeof y.defaultField=="object");g=g&&(y.required||!y.required&&C.value),y.field=C.field;function O(F,L){return _extends(_extends({},L),{},{fullField:y.fullField+"."+F})}function w(F){F===void 0&&(F=[]);var L=F;if(Array.isArray(L)||(L=[L]),!l.suppressWarning&&L.length&&Schema.warning("async-validator:",L),L.length&&y.message!==void 0&&(L=[].concat(y.message)),L=L.map(complementError(y)),l.first&&L.length)return v[y.field]=1,b(L);if(!g)b(L);else{if(y.required&&!C.value)return y.message!==void 0?L=[].concat(y.message).map(complementError(y)):l.error&&(L=[l.error(y,format$1(l.messages.required,y.field))]),b(L);var E={};if(y.defaultField)for(var P in C.value)C.value.hasOwnProperty(P)&&(E[P]=y.defaultField);E=_extends(_extends({},E),C.rule.fields);for(var A in E)if(E.hasOwnProperty(A)){var W=Array.isArray(E[A])?E[A]:[E[A]];E[A]=W.map(O.bind(null,A))}var J=new Schema(E);J.messages(l.messages),C.rule.options&&(C.rule.options.messages=l.messages,C.rule.options.error=l.error),J.validate(C.value,C.rule.options||l,function(Y){var z=[];L&&L.length&&z.push.apply(z,L),Y&&Y.length&&z.push.apply(z,Y),b(z.length?z:null)})}}var _;y.asyncValidator?_=y.asyncValidator(y,C.value,w,C.source,l):y.validator&&(_=y.validator(y,C.value,w,C.source,l),_===!0?w():_===!1?w(y.message||y.field+" fails"):_ instanceof Array?w(_):_ instanceof Error&&w(_.message)),_&&_.then&&_.then(function(){return w()},function(F){return w(F)})},function(C){u(C)})},getType:function(o){if(o.type===void 0&&o.pattern instanceof RegExp&&(o.type="pattern"),typeof o.validator!="function"&&o.type&&!validators.hasOwnProperty(o.type))throw new Error(format$1("Unknown rule type %s",o.type));return o.type||"string"},getValidationMethod:function(o){if(typeof o.validator=="function")return o.validator;var r=Object.keys(o),a=r.indexOf("message");return a!==-1&&r.splice(a,1),r.length===1&&r[0]==="required"?validators.required:validators[this.getType(o)]||!1}},Schema.register=function(o,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");validators[o]=r},Schema.warning=warning$3,Schema.messages=messages,Schema.validators=validators;function get$3(e,o){for(var r=e,a=0;a<o.length;a+=1){if(r==null)return;r=r[o[a]]}return r}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _nonIterableRest(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
87
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _toArray(e){return _arrayWithHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableRest()}function ownKeys$1(e,o){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);o&&(a=a.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,a)}return r}function _objectSpread(e){for(var o=1;o<arguments.length;o++){var r=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$1(Object(r),!0).forEach(function(a){_defineProperty$1(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys$1(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function internalSet(e,o,r,a){if(!o.length)return r;var s=_toArray(o),c=s[0],l=s.slice(1),d;return!e&&typeof c=="number"?d=[]:Array.isArray(e)?d=_toConsumableArray(e):d=_objectSpread({},e),a&&r===void 0&&l.length===1?delete d[c][l[0]]:d[c]=internalSet(d[c],l,r,a),d}function set$2(e,o,r){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return o.length&&a&&r===void 0&&!get$3(e,o.slice(0,-1))?e:internalSet(e,o,r,a)}function getNamePath(e){return toArray$2(e)}function getValue(e,o){var r=get$3(e,o);return r}function setValue(e,o,r){var a=set$2(e,o,r);return a}function cloneByNamePathList(e,o){var r={};return o.forEach(function(a){var s=getValue(e,a);r=setValue(r,a,s)}),r}function containsNamePath(e,o){return e&&e.some(function(r){return matchNamePath(r,o)})}function isObject$4(e){return _typeof$1(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function internalSetValues(e,o){var r=Array.isArray(e)?_toConsumableArray(e):_objectSpread2$1({},e);return o&&Object.keys(o).forEach(function(a){var s=r[a],c=o[a],l=isObject$4(s)&&isObject$4(c);r[a]=l?internalSetValues(s,c||{}):c}),r}function setValues(e){for(var o=arguments.length,r=new Array(o>1?o-1:0),a=1;a<o;a++)r[a-1]=arguments[a];return r.reduce(function(s,c){return internalSetValues(s,c)},e)}function matchNamePath(e,o){return!e||!o||e.length!==o.length?!1:e.every(function(r,a){return o[a]===r})}function isSimilar(e,o){if(e===o)return!0;if(!e&&o||e&&!o||!e||!o||_typeof$1(e)!=="object"||_typeof$1(o)!=="object")return!1;var r=Object.keys(e),a=Object.keys(o),s=new Set([].concat(_toConsumableArray(r),_toConsumableArray(a)));return _toConsumableArray(s).every(function(c){var l=e[c],d=o[c];return typeof l=="function"&&typeof d=="function"?!0:l===d})}function defaultGetValueFromEvent(e){var o=arguments.length<=1?void 0:arguments[1];return o&&o.target&&e in o.target?o.target[e]:o}function move(e,o,r){var a=e.length;if(o<0||o>=a||r<0||r>=a)return e;var s=e[o],c=o-r;return c>0?[].concat(_toConsumableArray(e.slice(0,r)),[s],_toConsumableArray(e.slice(r,o)),_toConsumableArray(e.slice(o+1,a))):c<0?[].concat(_toConsumableArray(e.slice(0,o)),_toConsumableArray(e.slice(o+1,r+1)),[s],_toConsumableArray(e.slice(r+1,a))):e}var typeTemplate="'${name}' is not a valid ${type}",defaultValidateMessages={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:typeTemplate,method:typeTemplate,array:typeTemplate,object:typeTemplate,number:typeTemplate,date:typeTemplate,boolean:typeTemplate,integer:typeTemplate,float:typeTemplate,regexp:typeTemplate,email:typeTemplate,url:typeTemplate,hex:typeTemplate},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},AsyncValidator=Schema;function replaceMessage(e,o){return e.replace(/\$\{\w+\}/g,function(r){var a=r.slice(2,-1);return o[a]})}function convertMessages(e,o,r,a){var s=_objectSpread2$1(_objectSpread2$1({},r),{},{name:o,enum:(r.enum||[]).join(", ")}),c=function(u,f){return function(){return replaceMessage(u,_objectSpread2$1(_objectSpread2$1({},s),f))}};function l(d){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(d).forEach(function(f){var p=d[f];typeof p=="string"?u[f]=c(p,a):p&&_typeof$1(p)==="object"?(u[f]={},l(p,u[f])):u[f]=p}),u}return l(setValues({},defaultValidateMessages,e))}function validateRule(e,o,r,a,s){return _validateRule.apply(this,arguments)}function _validateRule(){return _validateRule=_asyncToGenerator(regeneratorExports.mark(function e(o,r,a,s,c){var l,d,u,f,p,m;return regeneratorExports.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return l=_objectSpread2$1({},a),d=null,l&&l.type==="array"&&l.defaultField&&(d=l.defaultField,delete l.defaultField),u=new AsyncValidator(_defineProperty$1({},o,[l])),f=convertMessages(s.validateMessages,o,l,c),u.messages(f),p=[],h.prev=7,h.next=10,Promise.resolve(u.validate(_defineProperty$1({},o,r),_objectSpread2$1({},s)));case 10:h.next=15;break;case 12:h.prev=12,h.t0=h.catch(7),h.t0.errors?p=h.t0.errors.map(function(v,C){var b=v.message;return React__namespace.isValidElement(b)?React__namespace.cloneElement(b,{key:"error_".concat(C)}):b}):(console.error(h.t0),p=[f.default()]);case 15:if(!(!p.length&&d)){h.next=20;break}return h.next=18,Promise.all(r.map(function(v,C){return validateRule("".concat(o,".").concat(C),v,d,s,c)}));case 18:return m=h.sent,h.abrupt("return",m.reduce(function(v,C){return[].concat(_toConsumableArray(v),_toConsumableArray(C))},[]));case 20:return h.abrupt("return",p);case 21:case"end":return h.stop()}},e,null,[[7,12]])})),_validateRule.apply(this,arguments)}function validateRules(e,o,r,a,s,c){var l=e.join("."),d=r.map(function(p){var m=p.validator;return m?_objectSpread2$1(_objectSpread2$1({},p),{},{validator:function(h,v,C){var b=!1,y=function(){for(var w=arguments.length,_=new Array(w),F=0;F<w;F++)_[F]=arguments[F];Promise.resolve().then(function(){warningOnce(!b,"Your validator function has already return a promise. `callback` will be ignored."),b||C.apply(void 0,_)})},g=m(h,v,y);b=g&&typeof g.then=="function"&&typeof g.catch=="function",warningOnce(b,"`callback` is deprecated. Please return a promise instead."),b&&g.then(function(){C()}).catch(function(O){C(O||" ")})}}):p}),u;if(s===!0)u=new Promise(function(){var p=_asyncToGenerator(regeneratorExports.mark(function m(I,h){var v,C;return regeneratorExports.wrap(function(y){for(;;)switch(y.prev=y.next){case 0:v=0;case 1:if(!(v<d.length)){y.next=11;break}return y.next=4,validateRule(l,o,d[v],a,c);case 4:if(C=y.sent,!C.length){y.next=8;break}return h(C),y.abrupt("return");case 8:v+=1,y.next=1;break;case 11:I([]);case 12:case"end":return y.stop()}},m)}));return function(m,I){return p.apply(this,arguments)}}());else{var f=d.map(function(p){return validateRule(l,o,p,a,c)});u=(s?finishOnFirstFailed(f):finishOnAllFailed(f)).then(function(p){return p.length?Promise.reject(p):[]})}return u.catch(function(p){return p}),u}function finishOnAllFailed(e){return _finishOnAllFailed.apply(this,arguments)}function _finishOnAllFailed(){return _finishOnAllFailed=_asyncToGenerator(regeneratorExports.mark(function e(o){return regeneratorExports.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",Promise.all(o).then(function(s){var c,l=(c=[]).concat.apply(c,_toConsumableArray(s));return l}));case 1:case"end":return a.stop()}},e)})),_finishOnAllFailed.apply(this,arguments)}function finishOnFirstFailed(e){return _finishOnFirstFailed.apply(this,arguments)}function _finishOnFirstFailed(){return _finishOnFirstFailed=_asyncToGenerator(regeneratorExports.mark(function e(o){var r;return regeneratorExports.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return r=0,s.abrupt("return",new Promise(function(c){o.forEach(function(l){l.then(function(d){d.length&&c(d),r+=1,r===o.length&&c([])})})}));case 2:case"end":return s.stop()}},e)})),_finishOnFirstFailed.apply(this,arguments)}function requireUpdate(e,o,r,a,s,c){return typeof e=="function"?e(o,r,"source"in c?{source:c.source}:{}):a!==s}var Field=function(e){_inherits(r,e);var o=_createSuper(r);function r(a){var s;if(_classCallCheck(this,r),s=o.call(this,a),s.state={resetCount:0},s.cancelRegisterFunc=null,s.mounted=!1,s.touched=!1,s.dirty=!1,s.validatePromise=null,s.errors=[],s.cancelRegister=function(){var u=s.props,f=u.preserve,p=u.isListField;s.cancelRegisterFunc&&s.cancelRegisterFunc(p,f),s.cancelRegisterFunc=null},s.getNamePath=function(){var u=s.props,f=u.name,p=u.fieldContext,m=p.prefixName,I=m===void 0?[]:m;return f!==void 0?[].concat(_toConsumableArray(I),_toConsumableArray(f)):[]},s.getRules=function(){var u=s.props,f=u.rules,p=f===void 0?[]:f,m=u.fieldContext;return p.map(function(I){return typeof I=="function"?I(m):I})},s.refresh=function(){!s.mounted||s.setState(function(u){var f=u.resetCount;return{resetCount:f+1}})},s.onStoreChange=function(u,f,p){var m=s.props,I=m.shouldUpdate,h=m.dependencies,v=h===void 0?[]:h,C=m.onReset,b=p.store,y=s.getNamePath(),g=s.getValue(u),O=s.getValue(b),w=f&&containsNamePath(f,y);switch(p.type==="valueUpdate"&&p.source==="external"&&g!==O&&(s.touched=!0,s.dirty=!0,s.validatePromise=null,s.errors=[]),p.type){case"reset":if(!f||w){s.touched=!1,s.dirty=!1,s.validatePromise=null,s.errors=[],C&&C(),s.refresh();return}break;case"setField":{if(w){var _=p.data;"touched"in _&&(s.touched=_.touched),"validating"in _&&!("originRCField"in _)&&(s.validatePromise=_.validating?Promise.resolve([]):null),"errors"in _&&(s.errors=_.errors||[]),s.dirty=!0,s.reRender();return}if(I&&!y.length&&requireUpdate(I,u,b,g,O,p)){s.reRender();return}break}case"dependenciesUpdate":{var F=v.map(getNamePath);if(F.some(function(L){return containsNamePath(p.relatedFields,L)})){s.reRender();return}break}default:if(w||(!v.length||y.length||I)&&requireUpdate(I,u,b,g,O,p)){s.reRender();return}break}I===!0&&s.reRender()},s.validateRules=function(u){var f=s.getNamePath(),p=s.getValue(),m=Promise.resolve().then(function(){if(!s.mounted)return[];var I=s.props,h=I.validateFirst,v=h===void 0?!1:h,C=I.messageVariables,b=u||{},y=b.triggerName,g=s.getRules();y&&(g=g.filter(function(w){var _=w.validateTrigger;if(!_)return!0;var F=toArray$2(_);return F.includes(y)}));var O=validateRules(f,p,g,u,v,C);return O.catch(function(w){return w}).then(function(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];s.validatePromise===m&&(s.validatePromise=null,s.errors=w,s.reRender())}),O});return s.validatePromise=m,s.dirty=!0,s.errors=[],s.reRender(),m},s.isFieldValidating=function(){return!!s.validatePromise},s.isFieldTouched=function(){return s.touched},s.isFieldDirty=function(){return s.dirty},s.getErrors=function(){return s.errors},s.isListField=function(){return s.props.isListField},s.isList=function(){return s.props.isList},s.isPreserve=function(){return s.props.preserve},s.getMeta=function(){s.prevValidating=s.isFieldValidating();var u={touched:s.isFieldTouched(),validating:s.prevValidating,errors:s.errors,name:s.getNamePath()};return u},s.getOnlyChild=function(u){if(typeof u=="function"){var f=s.getMeta();return _objectSpread2$1(_objectSpread2$1({},s.getOnlyChild(u(s.getControlled(),f,s.props.fieldContext))),{},{isFunction:!0})}var p=toArray$3(u);return p.length!==1||!React__namespace.isValidElement(p[0])?{child:p,isFunction:!1}:{child:p[0],isFunction:!1}},s.getValue=function(u){var f=s.props.fieldContext.getFieldsValue,p=s.getNamePath();return getValue(u||f(!0),p)},s.getControlled=function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},f=s.props,p=f.trigger,m=f.validateTrigger,I=f.getValueFromEvent,h=f.normalize,v=f.valuePropName,C=f.getValueProps,b=f.fieldContext,y=m!==void 0?m:b.validateTrigger,g=s.getNamePath(),O=b.getInternalHooks,w=b.getFieldsValue,_=O(HOOK_MARK),F=_.dispatch,L=s.getValue(),E=C||function(J){return _defineProperty$1({},v,J)},P=u[p],A=_objectSpread2$1(_objectSpread2$1({},u),E(L));A[p]=function(){s.touched=!0,s.dirty=!0;for(var J,Y=arguments.length,z=new Array(Y),Q=0;Q<Y;Q++)z[Q]=arguments[Q];I?J=I.apply(void 0,z):J=defaultGetValueFromEvent.apply(void 0,[v].concat(z)),h&&(J=h(J,L,w(!0))),F({type:"updateValue",namePath:g,value:J}),P&&P.apply(void 0,z)};var W=toArray$2(y||[]);return W.forEach(function(J){var Y=A[J];A[J]=function(){Y&&Y.apply(void 0,arguments);var z=s.props.rules;z&&z.length&&F({type:"validateField",namePath:g,triggerName:J})}}),A},a.fieldContext){var c=a.fieldContext.getInternalHooks,l=c(HOOK_MARK),d=l.initEntityValue;d(_assertThisInitialized(s))}return s}return _createClass(r,[{key:"componentDidMount",value:function(){var s=this.props,c=s.shouldUpdate,l=s.fieldContext;if(this.mounted=!0,l){var d=l.getInternalHooks,u=d(HOOK_MARK),f=u.registerField;this.cancelRegisterFunc=f(this)}c===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.mounted=!1}},{key:"reRender",value:function(){!this.mounted||this.forceUpdate()}},{key:"render",value:function(){this.state.resetCount;var s=this.props.children,c=this.getOnlyChild(s),l=c.child,d=c.isFunction,u;return d?u=l:React__namespace.isValidElement(l)?u=React__namespace.cloneElement(l,this.getControlled(l.props)):(warningOnce(!l,"`children` of Field is not validate ReactElement."),u=l),jsxRuntime.jsx(jsxRuntime.Fragment,{children:u})}}]),r}(React__namespace.Component);Field.contextType=Context,Field.defaultProps={trigger:"onChange",valuePropName:"value"};function WrapperField(e){var o=e.name,r=_objectWithoutProperties(e,["name"]),a=React__namespace.useContext(Context),s=o!==void 0?getNamePath(o):void 0,c="keep";return r.isListField||(c="_".concat((s||[]).join("_"))),process.env.NODE_ENV!=="production"&&warningOnce(r.preserve!==!1||!r.isListField,"`preserve` should not apply on Form.List fields."),jsxRuntime.jsx(Field,{name:s,...r,fieldContext:a},c)}var List=function(o){var r=o.name,a=o.initialValue,s=o.children,c=o.rules,l=o.validateTrigger,d=React__namespace.useContext(Context),u=React__namespace.useRef({keys:[],id:0}),f=u.current;if(typeof s!="function")return warningOnce(!1,"Form.List only accepts function as children."),null;var p=getNamePath(d.prefixName)||[],m=[].concat(_toConsumableArray(p),_toConsumableArray(getNamePath(r))),I=function(v,C,b){var y=b.source;return y==="internal"?!1:v!==C};return jsxRuntime.jsx(Context.Provider,{value:_objectSpread2$1(_objectSpread2$1({},d),{},{prefixName:m}),children:jsxRuntime.jsx(WrapperField,{name:[],shouldUpdate:I,rules:c,validateTrigger:l,initialValue:a,isList:!0,children:function(h,v){var C=h.value,b=C===void 0?[]:C,y=h.onChange,g=d.getFieldValue,O=function(){var L=g(m||[]);return L||[]},w={add:function(L,E){var P=O();E>=0&&E<=P.length?(f.keys=[].concat(_toConsumableArray(f.keys.slice(0,E)),[f.id],_toConsumableArray(f.keys.slice(E))),y([].concat(_toConsumableArray(P.slice(0,E)),[L],_toConsumableArray(P.slice(E))))):(process.env.NODE_ENV!=="production"&&(E<0||E>P.length)&&warningOnce(!1,"The second parameter of the add function should be a valid positive number."),f.keys=[].concat(_toConsumableArray(f.keys),[f.id]),y([].concat(_toConsumableArray(P),[L]))),f.id+=1},remove:function(L){var E=O(),P=new Set(Array.isArray(L)?L:[L]);P.size<=0||(f.keys=f.keys.filter(function(A,W){return!P.has(W)}),y(E.filter(function(A,W){return!P.has(W)})))},move:function(L,E){if(L!==E){var P=O();L<0||L>=P.length||E<0||E>=P.length||(f.keys=move(f.keys,L,E),y(move(P,L,E)))}}},_=b||[];return Array.isArray(_)||(_=[],process.env.NODE_ENV!=="production"&&warningOnce(!1,"Current value of '".concat(m.join(" > "),"' is not an array type."))),s(_.map(function(F,L){var E=f.keys[L];return E===void 0&&(f.keys[L]=f.id,E=f.keys[L],f.id+=1),{name:L,key:E,isListField:!0}}),w,v)}})})};function _iterableToArrayLimit(e,o){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var a=[],s=!0,c=!1,l,d;try{for(r=r.call(e);!(s=(l=r.next()).done)&&(a.push(l.value),!(o&&a.length===o));s=!0);}catch(u){c=!0,d=u}finally{try{!s&&r.return!=null&&r.return()}finally{if(c)throw d}}return a}}function _slicedToArray(e,o){return _arrayWithHoles(e)||_iterableToArrayLimit(e,o)||_unsupportedIterableToArray(e,o)||_nonIterableRest()}function allPromiseFinish(e){var o=!1,r=e.length,a=[];return e.length?new Promise(function(s,c){e.forEach(function(l,d){l.catch(function(u){return o=!0,u}).then(function(u){r-=1,a[d]=u,!(r>0)&&(o&&c(a),s(a))})})}):Promise.resolve([])}var SPLIT="__@field_split__";function normalize(e){return e.map(function(o){return"".concat(_typeof$1(o),":").concat(o)}).join(SPLIT)}var NameMap=function(){function e(){_classCallCheck(this,e),this.kvs=new Map}return _createClass(e,[{key:"set",value:function(r,a){this.kvs.set(normalize(r),a)}},{key:"get",value:function(r){return this.kvs.get(normalize(r))}},{key:"update",value:function(r,a){var s=this.get(r),c=a(s);c?this.set(r,c):this.delete(r)}},{key:"delete",value:function(r){this.kvs.delete(normalize(r))}},{key:"map",value:function(r){return _toConsumableArray(this.kvs.entries()).map(function(a){var s=_slicedToArray(a,2),c=s[0],l=s[1],d=c.split(SPLIT);return r({key:d.map(function(u){var f=u.match(/^([^:]*):(.*)$/),p=_slicedToArray(f,3),m=p[1],I=p[2];return m==="number"?Number(I):I}),value:l})})}},{key:"toJSON",value:function(){var r={};return this.map(function(a){var s=a.key,c=a.value;return r[s.join(".")]=c,null}),r}}]),e}(),FormStore=function e(o){var r=this;_classCallCheck(this,e),this.formHooked=!1,this.subscribable=!0,this.store={},this.fieldEntities=[],this.initialValues={},this.callbacks={},this.validateMessages=null,this.preserve=null,this.lastValidatePromise=null,this.getForm=function(){return{getFieldValue:r.getFieldValue,getFieldsValue:r.getFieldsValue,getFieldError:r.getFieldError,getFieldsError:r.getFieldsError,isFieldsTouched:r.isFieldsTouched,isFieldTouched:r.isFieldTouched,isFieldValidating:r.isFieldValidating,isFieldsValidating:r.isFieldsValidating,resetFields:r.resetFields,setFields:r.setFields,setFieldsValue:r.setFieldsValue,validateFields:r.validateFields,submit:r.submit,getInternalHooks:r.getInternalHooks}},this.getInternalHooks=function(a){return a===HOOK_MARK?(r.formHooked=!0,{dispatch:r.dispatch,initEntityValue:r.initEntityValue,registerField:r.registerField,useSubscribe:r.useSubscribe,setInitialValues:r.setInitialValues,setCallbacks:r.setCallbacks,setValidateMessages:r.setValidateMessages,getFields:r.getFields,setPreserve:r.setPreserve}):(warningOnce(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)},this.useSubscribe=function(a){r.subscribable=a},this.setInitialValues=function(a,s){r.initialValues=a||{},s&&(r.store=setValues({},a,r.store))},this.getInitialValue=function(a){return getValue(r.initialValues,a)},this.setCallbacks=function(a){r.callbacks=a},this.setValidateMessages=function(a){r.validateMessages=a},this.setPreserve=function(a){r.preserve=a},this.timeoutId=null,this.warningUnhooked=function(){process.env.NODE_ENV!=="production"&&!r.timeoutId&&typeof window<"u"&&(r.timeoutId=window.setTimeout(function(){r.timeoutId=null,r.formHooked||warningOnce(!1,"Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?")}))},this.getFieldEntities=function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return a?r.fieldEntities.filter(function(s){return s.getNamePath().length}):r.fieldEntities},this.getFieldsMap=function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,s=new NameMap;return r.getFieldEntities(a).forEach(function(c){var l=c.getNamePath();s.set(l,c)}),s},this.getFieldEntitiesForNamePathList=function(a){if(!a)return r.getFieldEntities(!0);var s=r.getFieldsMap(!0);return a.map(function(c){var l=getNamePath(c);return s.get(l)||{INVALIDATE_NAME_PATH:getNamePath(c)}})},this.getFieldsValue=function(a,s){if(r.warningUnhooked(),a===!0&&!s)return r.store;var c=r.getFieldEntitiesForNamePathList(Array.isArray(a)?a:null),l=[];return c.forEach(function(d){var u,f="INVALIDATE_NAME_PATH"in d?d.INVALIDATE_NAME_PATH:d.getNamePath();if(!(!a&&((u=d.isListField)===null||u===void 0?void 0:u.call(d))))if(!s)l.push(f);else{var p="getMeta"in d?d.getMeta():null;s(p)&&l.push(f)}}),cloneByNamePathList(r.store,l.map(getNamePath))},this.getFieldValue=function(a){r.warningUnhooked();var s=getNamePath(a);return getValue(r.store,s)},this.getFieldsError=function(a){r.warningUnhooked();var s=r.getFieldEntitiesForNamePathList(a);return s.map(function(c,l){return c&&!("INVALIDATE_NAME_PATH"in c)?{name:c.getNamePath(),errors:c.getErrors()}:{name:getNamePath(a[l]),errors:[]}})},this.getFieldError=function(a){r.warningUnhooked();var s=getNamePath(a),c=r.getFieldsError([s])[0];return c.errors},this.isFieldsTouched=function(){r.warningUnhooked();for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];var l=s[0],d=s[1],u,f=!1;s.length===0?u=null:s.length===1?Array.isArray(l)?(u=l.map(getNamePath),f=!1):(u=null,f=l):(u=l.map(getNamePath),f=d);var p=r.getFieldEntities(!0),m=function(b){return b.isFieldTouched()};if(!u)return f?p.every(m):p.some(m);var I=new NameMap;u.forEach(function(C){I.set(C,[])}),p.forEach(function(C){var b=C.getNamePath();u.forEach(function(y){y.every(function(g,O){return b[O]===g})&&I.update(y,function(g){return[].concat(_toConsumableArray(g),[C])})})});var h=function(b){return b.some(m)},v=I.map(function(C){var b=C.value;return b});return f?v.every(h):v.some(h)},this.isFieldTouched=function(a){return r.warningUnhooked(),r.isFieldsTouched([a])},this.isFieldsValidating=function(a){r.warningUnhooked();var s=r.getFieldEntities();if(!a)return s.some(function(l){return l.isFieldValidating()});var c=a.map(getNamePath);return s.some(function(l){var d=l.getNamePath();return containsNamePath(c,d)&&l.isFieldValidating()})},this.isFieldValidating=function(a){return r.warningUnhooked(),r.isFieldsValidating([a])},this.resetWithFieldInitialValue=function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=new NameMap,c=r.getFieldEntities(!0);c.forEach(function(u){var f=u.props.initialValue,p=u.getNamePath();if(f!==void 0){var m=s.get(p)||new Set;m.add({entity:u,value:f}),s.set(p,m)}});var l=function(f){f.forEach(function(p){var m=p.props.initialValue;if(m!==void 0){var I=p.getNamePath(),h=r.getInitialValue(I);if(h!==void 0)warningOnce(!1,"Form already set 'initialValues' with path '".concat(I.join("."),"'. Field can not overwrite it."));else{var v=s.get(I);if(v&&v.size>1)warningOnce(!1,"Multiple Field with path '".concat(I.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(v){var C=r.getFieldValue(I);(!a.skipExist||C===void 0)&&(r.store=setValue(r.store,I,_toConsumableArray(v)[0].value))}}}})},d;a.entities?d=a.entities:a.namePathList?(d=[],a.namePathList.forEach(function(u){var f=s.get(u);if(f){var p;(p=d).push.apply(p,_toConsumableArray(_toConsumableArray(f).map(function(m){return m.entity})))}})):d=c,l(d)},this.resetFields=function(a){r.warningUnhooked();var s=r.store;if(!a){r.store=setValues({},r.initialValues),r.resetWithFieldInitialValue(),r.notifyObservers(s,null,{type:"reset"});return}var c=a.map(getNamePath);c.forEach(function(l){var d=r.getInitialValue(l);r.store=setValue(r.store,l,d)}),r.resetWithFieldInitialValue({namePathList:c}),r.notifyObservers(s,c,{type:"reset"})},this.setFields=function(a){r.warningUnhooked();var s=r.store;a.forEach(function(c){var l=c.name;c.errors;var d=_objectWithoutProperties(c,["name","errors"]),u=getNamePath(l);"value"in d&&(r.store=setValue(r.store,u,d.value)),r.notifyObservers(s,[u],{type:"setField",data:c})})},this.getFields=function(){var a=r.getFieldEntities(!0),s=a.map(function(c){var l=c.getNamePath(),d=c.getMeta(),u=_objectSpread2$1(_objectSpread2$1({},d),{},{name:l,value:r.getFieldValue(l)});return Object.defineProperty(u,"originRCField",{value:!0}),u});return s},this.initEntityValue=function(a){var s=a.props.initialValue;if(s!==void 0){var c=a.getNamePath(),l=getValue(r.store,c);l===void 0&&(r.store=setValue(r.store,c,s))}},this.registerField=function(a){if(r.fieldEntities.push(a),a.props.initialValue!==void 0){var s=r.store;r.resetWithFieldInitialValue({entities:[a],skipExist:!0}),r.notifyObservers(s,[a.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(c,l){r.fieldEntities=r.fieldEntities.filter(function(p){return p!==a});var d=l!==void 0?l:r.preserve;if(d===!1&&!c){var u=a.getNamePath(),f=getValue(r.initialValues,u);u.length&&r.getFieldValue(u)!==f&&r.fieldEntities.every(function(p){return!matchNamePath(p.getNamePath(),u)})&&(r.store=setValue(r.store,u,f))}}},this.dispatch=function(a){switch(a.type){case"updateValue":{var s=a.namePath,c=a.value;r.updateValue(s,c);break}case"validateField":{var l=a.namePath,d=a.triggerName;r.validateFields([l],{triggerName:d});break}}},this.notifyObservers=function(a,s,c){if(r.subscribable){var l=_objectSpread2$1(_objectSpread2$1({},c),{},{store:r.getFieldsValue(!0)});r.getFieldEntities().forEach(function(d){var u=d.onStoreChange;u(a,s,l)})}else r.forceRootUpdate()},this.updateValue=function(a,s){var c=getNamePath(a),l=r.store;r.store=setValue(r.store,c,s),r.notifyObservers(l,[c],{type:"valueUpdate",source:"internal"});var d=r.getDependencyChildrenFields(c);d.length&&r.validateFields(d),r.notifyObservers(l,d,{type:"dependenciesUpdate",relatedFields:[c].concat(_toConsumableArray(d))});var u=r.callbacks.onValuesChange;if(u){var f=cloneByNamePathList(r.store,[c]);u(f,r.getFieldsValue())}r.triggerOnFieldsChange([c].concat(_toConsumableArray(d)))},this.setFieldsValue=function(a){r.warningUnhooked();var s=r.store;a&&(r.store=setValues(r.store,a)),r.notifyObservers(s,null,{type:"valueUpdate",source:"external"})},this.getDependencyChildrenFields=function(a){var s=new Set,c=[],l=new NameMap;r.getFieldEntities().forEach(function(u){var f=u.props.dependencies;(f||[]).forEach(function(p){var m=getNamePath(p);l.update(m,function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return I.add(u),I})})});var d=function u(f){var p=l.get(f)||new Set;p.forEach(function(m){if(!s.has(m)){s.add(m);var I=m.getNamePath();m.isFieldDirty()&&I.length&&(c.push(I),u(I))}})};return d(a),c},this.triggerOnFieldsChange=function(a,s){var c=r.callbacks.onFieldsChange;if(c){var l=r.getFields();if(s){var d=new NameMap;s.forEach(function(f){var p=f.name,m=f.errors;d.set(p,m)}),l.forEach(function(f){f.errors=d.get(f.name)||f.errors})}var u=l.filter(function(f){var p=f.name;return containsNamePath(a,p)});c(u,l)}},this.validateFields=function(a,s){r.warningUnhooked();var c=!!a,l=c?a.map(getNamePath):[],d=[];r.getFieldEntities(!0).forEach(function(p){if(c||l.push(p.getNamePath()),(s==null?void 0:s.recursive)&&c){var m=p.getNamePath();m.every(function(v,C){return a[C]===v||a[C]===void 0})&&l.push(m)}if(!(!p.props.rules||!p.props.rules.length)){var I=p.getNamePath();if(!c||containsNamePath(l,I)){var h=p.validateRules(_objectSpread2$1({validateMessages:_objectSpread2$1(_objectSpread2$1({},defaultValidateMessages),r.validateMessages)},s));d.push(h.then(function(){return{name:I,errors:[]}}).catch(function(v){return Promise.reject({name:I,errors:v})}))}}});var u=allPromiseFinish(d);r.lastValidatePromise=u,u.catch(function(p){return p}).then(function(p){var m=p.map(function(I){var h=I.name;return h});r.notifyObservers(r.store,m,{type:"validateFinish"}),r.triggerOnFieldsChange(m,p)});var f=u.then(function(){return r.lastValidatePromise===u?Promise.resolve(r.getFieldsValue(l)):Promise.reject([])}).catch(function(p){var m=p.filter(function(I){return I&&I.errors.length});return Promise.reject({values:r.getFieldsValue(l),errorFields:m,outOfDate:r.lastValidatePromise!==u})});return f.catch(function(p){return p}),f},this.submit=function(){r.warningUnhooked(),r.validateFields().then(function(a){var s=r.callbacks.onFinish;if(s)try{s(a)}catch(c){console.error(c)}}).catch(function(a){var s=r.callbacks.onFinishFailed;s&&s(a)})},this.forceRootUpdate=o};function useForm(e){var o=React__namespace.useRef(),r=React__namespace.useState({}),a=_slicedToArray(r,2),s=a[1];if(!o.current)if(e)o.current=e;else{var c=function(){s({})},l=new FormStore(c);o.current=l.getForm()}return[o.current]}var FormContext=React__namespace.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),FormProvider=function(o){var r=o.validateMessages,a=o.onFormChange,s=o.onFormFinish,c=o.children,l=React__namespace.useContext(FormContext),d=React__namespace.useRef({});return jsxRuntime.jsx(FormContext.Provider,{value:_objectSpread2$1(_objectSpread2$1({},l),{},{validateMessages:_objectSpread2$1(_objectSpread2$1({},l.validateMessages),r),triggerFormChange:function(f,p){a&&a(f,{changedFields:p,forms:d.current}),l.triggerFormChange(f,p)},triggerFormFinish:function(f,p){s&&s(f,{values:p,forms:d.current}),l.triggerFormFinish(f,p)},registerForm:function(f,p){f&&(d.current=_objectSpread2$1(_objectSpread2$1({},d.current),{},_defineProperty$1({},f,p))),l.registerForm(f,p)},unregisterForm:function(f){var p=_objectSpread2$1({},d.current);delete p[f],d.current=p,l.unregisterForm(f)}}),children:c})},Form$2=function(o,r){var a=o.name,s=o.initialValues,c=o.fields,l=o.form,d=o.preserve,u=o.children,f=o.component,p=f===void 0?"form":f,m=o.validateMessages,I=o.validateTrigger,h=I===void 0?"onChange":I,v=o.onValuesChange,C=o.onFieldsChange,b=o.onFinish,y=o.onFinishFailed,g=_objectWithoutProperties(o,["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"]),O=React__namespace.useContext(FormContext),w=useForm(l),_=_slicedToArray(w,1),F=_[0],L=F.getInternalHooks(HOOK_MARK),E=L.useSubscribe,P=L.setInitialValues,A=L.setCallbacks,W=L.setValidateMessages,J=L.setPreserve;React__namespace.useImperativeHandle(r,function(){return F}),React__namespace.useEffect(function(){return O.registerForm(a,F),function(){O.unregisterForm(a)}},[O,F,a]),W(_objectSpread2$1(_objectSpread2$1({},O.validateMessages),m)),A({onValuesChange:v,onFieldsChange:function(xe){if(O.triggerFormChange(a,xe),C){for(var de=arguments.length,Ce=new Array(de>1?de-1:0),ee=1;ee<de;ee++)Ce[ee-1]=arguments[ee];C.apply(void 0,[xe].concat(Ce))}},onFinish:function(xe){O.triggerFormFinish(a,xe),b&&b(xe)},onFinishFailed:y}),J(d);var Y=React__namespace.useRef(null);P(s,!Y.current),Y.current||(Y.current=!0);var z=u,Q=typeof u=="function";if(Q){var oe=F.getFieldsValue(!0);z=u(oe,F)}E(!Q);var te=React__namespace.useRef();React__namespace.useEffect(function(){isSimilar(te.current||[],c||[])||F.setFields(c||[]),te.current=c},[c,F]);var X=React__namespace.useMemo(function(){return _objectSpread2$1(_objectSpread2$1({},F),{},{validateTrigger:h})},[F,h]),ce=jsxRuntime.jsx(Context.Provider,{value:X,children:z});return p===!1?ce:jsxRuntime.jsx(p,{...g,onSubmit:function(xe){xe.preventDefault(),xe.stopPropagation(),F.submit()},children:ce})},InternalForm=React__namespace.forwardRef(Form$2),RefForm=InternalForm;RefForm.FormProvider=FormProvider,RefForm.Field=WrapperField,RefForm.List=List,RefForm.useForm=useForm;const es$2=Object.freeze(Object.defineProperty({__proto__:null,Field:WrapperField,List,useForm,FormProvider,default:RefForm},Symbol.toStringTag,{value:"Module"})),require$$5=getAugmentedNamespace(es$2);var useMemo={},hasRequiredUseMemo;function requireUseMemo(){if(hasRequiredUseMemo)return useMemo;hasRequiredUseMemo=1;var e=interopRequireWildcard.exports;Object.defineProperty(useMemo,"__esModule",{value:!0}),useMemo.default=r;var o=e(React__default.default);function r(a,s,c){var l=o.useRef({});return(!("value"in l.current)||c(l.current.condition,s))&&(l.current.value=a(),l.current.condition=s),l.current.value}return useMemo}var localeProvider={},devWarning={},warning$2={},hasRequiredWarning;function requireWarning(){if(hasRequiredWarning)return warning$2;hasRequiredWarning=1,Object.defineProperty(warning$2,"__esModule",{value:!0}),warning$2.warning=o,warning$2.note=r,warning$2.resetWarned=a,warning$2.call=s,warning$2.warningOnce=c,warning$2.noteOnce=l,warning$2.default=void 0;var e={};function o(u,f){process.env.NODE_ENV!=="production"&&!u&&console!==void 0&&console.error("Warning: ".concat(f))}function r(u,f){process.env.NODE_ENV!=="production"&&!u&&console!==void 0&&console.warn("Note: ".concat(f))}function a(){e={}}function s(u,f,p){!f&&!e[p]&&(u(!1,p),e[p]=!0)}function c(u,f){s(o,u,f)}function l(u,f){s(r,u,f)}var d=c;return warning$2.default=d,warning$2}var hasRequiredDevWarning;function requireDevWarning(){return hasRequiredDevWarning||(hasRequiredDevWarning=1,function(e){var o=interopRequireWildcard.exports;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"resetWarned",{enumerable:!0,get:function(){return r.resetWarned}}),e.default=void 0;var r=o(requireWarning()),a=function(c,l,d){(0,r.default)(c,"[antd: ".concat(l,"] ").concat(d))};e.default=a}(devWarning)),devWarning}var locale$1={},_default$1={},en_US$4={},hasRequiredEn_US$4;function requireEn_US$4(){if(hasRequiredEn_US$4)return en_US$4;hasRequiredEn_US$4=1,Object.defineProperty(en_US$4,"__esModule",{value:!0}),en_US$4.default=void 0;var e={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages"};return en_US$4.default=e,en_US$4}var en_US$3={},en_US$2={},hasRequiredEn_US$3;function requireEn_US$3(){if(hasRequiredEn_US$3)return en_US$2;hasRequiredEn_US$3=1,Object.defineProperty(en_US$2,"__esModule",{value:!0}),en_US$2.default=void 0;var e={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"Ok",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"},o=e;return en_US$2.default=o,en_US$2}var en_US$1={},hasRequiredEn_US$2;function requireEn_US$2(){return hasRequiredEn_US$2||(hasRequiredEn_US$2=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},r=o;e.default=r}(en_US$1)),en_US$1}var hasRequiredEn_US$1;function requireEn_US$1(){return hasRequiredEn_US$1||(hasRequiredEn_US$1=1,function(e){var o=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=o(require_extends()),a=o(requireEn_US$3()),s=o(requireEn_US$2()),c={lang:(0,r.default)({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},a.default),timePickerLocale:(0,r.default)({},s.default)},l=c;e.default=l}(en_US$3)),en_US$3}var en_US={},hasRequiredEn_US;function requireEn_US(){return hasRequiredEn_US||(hasRequiredEn_US=1,function(e){var o=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=o(requireEn_US$1()),a=r.default;e.default=a}(en_US)),en_US}var hasRequired_default$1;function require_default$1(){return hasRequired_default$1||(hasRequired_default$1=1,function(e){var o=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=o(requireEn_US$4()),a=o(requireEn_US$1()),s=o(requireEn_US$2()),c=o(requireEn_US()),l="${label} is not a valid ${type}",d={locale:"en",Pagination:r.default,DatePicker:a.default,TimePicker:s.default,Calendar:c.default,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No Data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:l,method:l,array:l,object:l,number:l,date:l,boolean:l,integer:l,float:l,regexp:l,email:l,url:l,hex:l},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"}},u=d;e.default=u}(_default$1)),_default$1}var hasRequiredLocale;function requireLocale(){if(hasRequiredLocale)return locale$1;hasRequiredLocale=1;var e=interopRequireDefault.exports;Object.defineProperty(locale$1,"__esModule",{value:!0}),locale$1.changeConfirmLocale=s,locale$1.getConfirmLocale=c;var o=e(require_extends()),r=e(require_default$1()),a=(0,o.default)({},r.default.Modal);function s(l){l?a=(0,o.default)((0,o.default)({},a),l):a=(0,o.default)({},r.default.Modal)}function c(){return a}return locale$1}var context$1={},hasRequiredContext$1;function requireContext$1(){return hasRequiredContext$1||(hasRequiredContext$1=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=React__default.default,r=(0,o.createContext)(void 0),a=r;e.default=a}(context$1)),context$1}var hasRequiredLocaleProvider;function requireLocaleProvider(){return hasRequiredLocaleProvider||(hasRequiredLocaleProvider=1,function(e){var o=interopRequireWildcard.exports,r=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.ANT_MARK=void 0;var a=r(require_extends()),s=r(requireClassCallCheck()),c=r(requireCreateClass()),l=r(requireInherits()),d=r(requireCreateSuper()),u=o(React__default.default),f=r(requireDevWarning()),p=requireLocale(),m=r(requireContext$1()),I="internalMark";e.ANT_MARK=I;var h=function(v){(0,l.default)(b,v);var C=(0,d.default)(b);function b(y){var g;return(0,s.default)(this,b),g=C.call(this,y),(0,p.changeConfirmLocale)(y.locale&&y.locale.Modal),(0,f.default)(y._ANT_MARK__===I,"LocaleProvider","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale"),g}return(0,c.default)(b,[{key:"componentDidUpdate",value:function(g){var O=this.props.locale;g.locale!==O&&(0,p.changeConfirmLocale)(O&&O.Modal)}},{key:"componentWillUnmount",value:function(){(0,p.changeConfirmLocale)()}},{key:"render",value:function(){var g=this.props,O=g.locale,w=g.children;return u.createElement(m.default.Provider,{value:(0,a.default)((0,a.default)({},O),{exist:!0})},w)}}]),b}(u.Component);e.default=h,h.defaultProps={locale:{}}}(localeProvider)),localeProvider}var LocaleReceiver={},_default={},hasRequired_default;function require_default(){return hasRequired_default||(hasRequired_default=1,function(e){var o=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=o(require_default$1()),a=r.default;e.default=a}(_default)),_default}var hasRequiredLocaleReceiver;function requireLocaleReceiver(){return hasRequiredLocaleReceiver||(hasRequiredLocaleReceiver=1,function(e){var o=interopRequireWildcard.exports,r=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.useLocaleReceiver=I,e.default=void 0;var a=r(require_extends()),s=r(requireClassCallCheck()),c=r(requireCreateClass()),l=r(requireInherits()),d=r(requireCreateSuper()),u=o(React__default.default),f=r(require_default()),p=r(requireContext$1()),m=function(h){(0,l.default)(C,h);var v=(0,d.default)(C);function C(){return(0,s.default)(this,C),v.apply(this,arguments)}return(0,c.default)(C,[{key:"getLocale",value:function(){var y=this.props,g=y.componentName,O=y.defaultLocale,w=O||f.default[g||"global"],_=this.context,F=g&&_?_[g]:{};return(0,a.default)((0,a.default)({},typeof w=="function"?w():w),F||{})}},{key:"getLocaleCode",value:function(){var y=this.context,g=y&&y.locale;return y&&y.exist&&!g?f.default.locale:g}},{key:"render",value:function(){return this.props.children(this.getLocale(),this.getLocaleCode(),this.context)}}]),C}(u.Component);e.default=m,m.defaultProps={componentName:"global"},m.contextType=p.default;function I(h,v){var C=u.useContext(p.default),b=u.useMemo(function(){var y=v||f.default[h||"global"],g=h&&C?C[h]:{};return(0,a.default)((0,a.default)({},typeof y=="function"?y():y),g||{})},[h,v,C]);return[b]}}(LocaleReceiver)),LocaleReceiver}var context={},renderEmpty={},empty$1={},empty={},hasRequiredEmpty$1;function requireEmpty$1(){return hasRequiredEmpty$1||(hasRequiredEmpty$1=1,function(e){var o=interopRequireWildcard.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=o(React__default.default),a=requireConfigProvider(),s=function(){var d=r.useContext(a.ConfigContext),u=d.getPrefixCls,f=u("empty-img-default");return r.createElement("svg",{className:f,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},r.createElement("g",{fill:"none",fillRule:"evenodd"},r.createElement("g",{transform:"translate(24 31.67)"},r.createElement("ellipse",{className:"".concat(f,"-ellipse"),cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),r.createElement("path",{className:"".concat(f,"-path-1"),d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z"}),r.createElement("path",{className:"".concat(f,"-path-2"),d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",transform:"translate(13.56)"}),r.createElement("path",{className:"".concat(f,"-path-3"),d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z"}),r.createElement("path",{className:"".concat(f,"-path-4"),d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z"})),r.createElement("path",{className:"".concat(f,"-path-5"),d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z"}),r.createElement("g",{className:"".concat(f,"-g"),transform:"translate(149.65 15.383)"},r.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),r.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},c=s;e.default=c}(empty)),empty}var simple={},hasRequiredSimple;function requireSimple(){return hasRequiredSimple||(hasRequiredSimple=1,function(e){var o=interopRequireWildcard.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=o(React__default.default),a=requireConfigProvider(),s=function(){var d=r.useContext(a.ConfigContext),u=d.getPrefixCls,f=u("empty-img-simple");return r.createElement("svg",{className:f,width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},r.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},r.createElement("ellipse",{className:"".concat(f,"-ellipse"),cx:"32",cy:"33",rx:"32",ry:"7"}),r.createElement("g",{className:"".concat(f,"-g"),fillRule:"nonzero"},r.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),r.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",className:"".concat(f,"-path")}))))},c=s;e.default=c}(simple)),simple}var hasRequiredEmpty;function requireEmpty(){return hasRequiredEmpty||(hasRequiredEmpty=1,function(e){var o=interopRequireWildcard.exports,r=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=r(require_extends()),s=r(requireDefineProperty()),c=o(React__default.default),l=r(requireClassnames()),d=requireConfigProvider(),u=r(requireLocaleReceiver()),f=r(requireEmpty$1()),p=r(requireSimple()),m=function(b,y){var g={};for(var O in b)Object.prototype.hasOwnProperty.call(b,O)&&y.indexOf(O)<0&&(g[O]=b[O]);if(b!=null&&typeof Object.getOwnPropertySymbols=="function")for(var w=0,O=Object.getOwnPropertySymbols(b);w<O.length;w++)y.indexOf(O[w])<0&&Object.prototype.propertyIsEnumerable.call(b,O[w])&&(g[O[w]]=b[O[w]]);return g},I=c.createElement(f.default,null),h=c.createElement(p.default,null),v=function(y){var g=y.className,O=y.prefixCls,w=y.image,_=w===void 0?I:w,F=y.description,L=y.children,E=y.imageStyle,P=m(y,["className","prefixCls","image","description","children","imageStyle"]),A=c.useContext(d.ConfigContext),W=A.getPrefixCls,J=A.direction;return c.createElement(u.default,{componentName:"Empty"},function(Y){var z,Q=W("empty",O),oe=typeof F<"u"?F:Y.description,te=typeof oe=="string"?oe:"empty",X=null;return typeof _=="string"?X=c.createElement("img",{alt:te,src:_}):X=_,c.createElement("div",(0,a.default)({className:(0,l.default)(Q,(z={},(0,s.default)(z,"".concat(Q,"-normal"),_===h),(0,s.default)(z,"".concat(Q,"-rtl"),J==="rtl"),z),g)},P),c.createElement("div",{className:"".concat(Q,"-image"),style:E},X),oe&&c.createElement("div",{className:"".concat(Q,"-description")},oe),L&&c.createElement("div",{className:"".concat(Q,"-footer")},L))})};v.PRESENTED_IMAGE_DEFAULT=I,v.PRESENTED_IMAGE_SIMPLE=h;var C=v;e.default=C}(empty$1)),empty$1}var hasRequiredRenderEmpty;function requireRenderEmpty(){return hasRequiredRenderEmpty||(hasRequiredRenderEmpty=1,function(e){var o=interopRequireDefault.exports,r=interopRequireWildcard.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=r(React__default.default),s=o(requireEmpty()),c=requireConfigProvider(),l=function(f){return a.createElement(c.ConfigConsumer,null,function(p){var m=p.getPrefixCls,I=m("empty");switch(f){case"Table":case"List":return a.createElement(s.default,{image:s.default.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return a.createElement(s.default,{image:s.default.PRESENTED_IMAGE_SIMPLE,className:"".concat(I,"-small")});default:return a.createElement(s.default,null)}})},d=l;e.default=d}(renderEmpty)),renderEmpty}var hasRequiredContext;function requireContext(){if(hasRequiredContext)return context;hasRequiredContext=1;var e=interopRequireWildcard.exports,o=interopRequireDefault.exports;Object.defineProperty(context,"__esModule",{value:!0}),context.withConfigConsumer=u,context.ConfigConsumer=context.ConfigContext=void 0;var r=o(require_extends()),a=e(React__default.default),s=o(requireRenderEmpty()),c=function(p,m){return m||(p?"ant-".concat(p):"ant")},l=a.createContext({getPrefixCls:c,renderEmpty:s.default});context.ConfigContext=l;var d=l.Consumer;context.ConfigConsumer=d;function u(f){return function(m){var I=function(b){return a.createElement(d,null,function(y){var g=f.prefixCls,O=y.getPrefixCls,w=b.prefixCls,_=O(g,w);return a.createElement(m,(0,r.default)({},y,b,{prefixCls:_}))})},h=m.constructor,v=h&&h.displayName||m.name||"Component";return I.displayName="withConfigConsumer(".concat(v,")"),I}}return context}var SizeContext={},hasRequiredSizeContext;function requireSizeContext(){return hasRequiredSizeContext||(hasRequiredSizeContext=1,function(e){var o=interopRequireWildcard.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.SizeContextProvider=void 0;var r=o(React__default.default),a=r.createContext(void 0),s=function(d){var u=d.children,f=d.size;return r.createElement(a.Consumer,null,function(p){return r.createElement(a.Provider,{value:f||p},u)})};e.SizeContextProvider=s;var c=a;e.default=c}(SizeContext)),SizeContext}var message={};function canUseDom$1(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function makePrefixMap(e,o){var r={};return r[e.toLowerCase()]=o.toLowerCase(),r["Webkit".concat(e)]="webkit".concat(o),r["Moz".concat(e)]="moz".concat(o),r["ms".concat(e)]="MS".concat(o),r["O".concat(e)]="o".concat(o.toLowerCase()),r}function getVendorPrefixes(e,o){var r={animationend:makePrefixMap("Animation","AnimationEnd"),transitionend:makePrefixMap("Transition","TransitionEnd")};return e&&("AnimationEvent"in o||delete r.animationend.animation,"TransitionEvent"in o||delete r.transitionend.transition),r}var vendorPrefixes=getVendorPrefixes(canUseDom$1(),typeof window<"u"?window:{}),style={};if(canUseDom$1()){var _document$createEleme=document.createElement("div");style=_document$createEleme.style}var prefixedEventNames={};function getVendorPrefixedEventName(e){if(prefixedEventNames[e])return prefixedEventNames[e];var o=vendorPrefixes[e];if(o)for(var r=Object.keys(o),a=r.length,s=0;s<a;s+=1){var c=r[s];if(Object.prototype.hasOwnProperty.call(o,c)&&c in style)return prefixedEventNames[e]=o[c],prefixedEventNames[e]}return""}var internalAnimationEndName=getVendorPrefixedEventName("animationend"),internalTransitionEndName=getVendorPrefixedEventName("transitionend"),supportTransition=!!(internalAnimationEndName&&internalTransitionEndName),animationEndName=internalAnimationEndName||"animationend",transitionEndName=internalTransitionEndName||"transitionend";function getTransitionName$1(e,o){if(!e)return null;if(_typeof$1(e)==="object"){var r=o.replace(/-\w/g,function(a){return a[1].toUpperCase()});return e[r]}return"".concat(e,"-").concat(o)}var STATUS_NONE="none",STATUS_APPEAR="appear",STATUS_ENTER="enter",STATUS_LEAVE="leave",STEP_NONE="none",STEP_PREPARE="prepare",STEP_START="start",STEP_ACTIVE="active",STEP_ACTIVATED="end";function useMountStatus(e){var o=React.useRef(!1),r=React.useState(e),a=_slicedToArray(r,2),s=a[0],c=a[1];function l(d){o.current||c(d)}return React.useEffect(function(){return function(){o.current=!0}},[]),[s,l]}var useIsomorphicLayoutEffect=canUseDom$1()?React.useLayoutEffect:React.useEffect,raf$2=function(o){return+setTimeout(o,16)},caf=function(o){return clearTimeout(o)};typeof window<"u"&&"requestAnimationFrame"in window&&(raf$2=function(o){return window.requestAnimationFrame(o)},caf=function(o){return window.cancelAnimationFrame(o)});function wrapperRaf(e){return raf$2(e)}wrapperRaf.cancel=caf;const useNextFrame=function(){var e=React__namespace.useRef(null);function o(){wrapperRaf.cancel(e.current)}function r(a){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;o();var c=wrapperRaf(function(){s<=1?a({isCanceled:function(){return c!==e.current}}):r(a,s-1)});e.current=c}return React__namespace.useEffect(function(){return function(){o()}},[]),[r,o]};var STEP_QUEUE=[STEP_PREPARE,STEP_START,STEP_ACTIVE,STEP_ACTIVATED],SkipStep=!1,DoStep=!0;function isActive(e){return e===STEP_ACTIVE||e===STEP_ACTIVATED}const useStepQueue=function(e,o){var r=React__namespace.useState(STEP_NONE),a=_slicedToArray(r,2),s=a[0],c=a[1],l=useNextFrame(),d=_slicedToArray(l,2),u=d[0],f=d[1];function p(){c(STEP_PREPARE)}return useIsomorphicLayoutEffect(function(){if(s!==STEP_NONE&&s!==STEP_ACTIVATED){var m=STEP_QUEUE.indexOf(s),I=STEP_QUEUE[m+1],h=o(s);h===SkipStep?c(I):u(function(v){function C(){v.isCanceled()||c(I)}h===!0?C():Promise.resolve(h).then(C)})}},[e,s]),React__namespace.useEffect(function(){return function(){f()}},[]),[p,s]},useDomMotionEvents=function(e){var o=React.useRef(),r=React.useRef(e);r.current=e;var a=React__namespace.useCallback(function(l){r.current(l)},[]);function s(l){l&&(l.removeEventListener(transitionEndName,a),l.removeEventListener(animationEndName,a))}function c(l){o.current&&o.current!==l&&s(o.current),l&&l!==o.current&&(l.addEventListener(transitionEndName,a),l.addEventListener(animationEndName,a),o.current=l)}return React__namespace.useEffect(function(){return function(){s(o.current)}},[]),[c,s]};function useStatus(e,o,r,a){var s=a.motionEnter,c=s===void 0?!0:s,l=a.motionAppear,d=l===void 0?!0:l,u=a.motionLeave,f=u===void 0?!0:u,p=a.motionDeadline,m=a.motionLeaveImmediately,I=a.onAppearPrepare,h=a.onEnterPrepare,v=a.onLeavePrepare,C=a.onAppearStart,b=a.onEnterStart,y=a.onLeaveStart,g=a.onAppearActive,O=a.onEnterActive,w=a.onLeaveActive,_=a.onAppearEnd,F=a.onEnterEnd,L=a.onLeaveEnd,E=a.onVisibleChanged,P=useMountStatus(),A=_slicedToArray(P,2),W=A[0],J=A[1],Y=useMountStatus(STATUS_NONE),z=_slicedToArray(Y,2),Q=z[0],oe=z[1],te=useMountStatus(null),X=_slicedToArray(te,2),ce=X[0],Re=X[1],xe=React.useRef(!1),de=React.useRef(null),Ce=React.useRef(!1),ee=React.useRef(null);function ue(){var yt=r();return yt||ee.current}var N=React.useRef(!1);function U(yt){var Tt=ue();if(!(yt&&!yt.deadline&&yt.target!==Tt)){var Ot;Q===STATUS_APPEAR&&N.current?Ot=_==null?void 0:_(Tt,yt):Q===STATUS_ENTER&&N.current?Ot=F==null?void 0:F(Tt,yt):Q===STATUS_LEAVE&&N.current&&(Ot=L==null?void 0:L(Tt,yt)),Ot!==!1&&!Ce.current&&(oe(STATUS_NONE),Re(null))}}var re=useDomMotionEvents(U),Te=_slicedToArray(re,1),Fe=Te[0],M=React__namespace.useMemo(function(){var yt,Tt,Ot;switch(Q){case"appear":return yt={},_defineProperty$1(yt,STEP_PREPARE,I),_defineProperty$1(yt,STEP_START,C),_defineProperty$1(yt,STEP_ACTIVE,g),yt;case"enter":return Tt={},_defineProperty$1(Tt,STEP_PREPARE,h),_defineProperty$1(Tt,STEP_START,b),_defineProperty$1(Tt,STEP_ACTIVE,O),Tt;case"leave":return Ot={},_defineProperty$1(Ot,STEP_PREPARE,v),_defineProperty$1(Ot,STEP_START,y),_defineProperty$1(Ot,STEP_ACTIVE,w),Ot;default:return{}}},[Q]),j=useStepQueue(Q,function(yt){if(yt===STEP_PREPARE){var Tt=M[STEP_PREPARE];return Tt?Tt(ue()):SkipStep}if(tt in M){var Ot;Re(((Ot=M[tt])===null||Ot===void 0?void 0:Ot.call(M,ue(),null))||null)}return tt===STEP_ACTIVE&&(Fe(ue()),p>0&&(clearTimeout(de.current),de.current=setTimeout(function(){U({deadline:!0})},p))),DoStep}),we=_slicedToArray(j,2),je=we[0],tt=we[1],Ne=isActive(tt);N.current=Ne,useIsomorphicLayoutEffect(function(){if(J(o),!!e){var yt=xe.current;xe.current=!0;var Tt;!yt&&o&&d&&(Tt=STATUS_APPEAR),yt&&o&&c&&(Tt=STATUS_ENTER),(yt&&!o&&f||!yt&&m&&!o&&f)&&(Tt=STATUS_LEAVE),Tt&&(oe(Tt),je())}},[o]),React.useEffect(function(){(Q===STATUS_APPEAR&&!d||Q===STATUS_ENTER&&!c||Q===STATUS_LEAVE&&!f)&&oe(STATUS_NONE)},[d,c,f]),React.useEffect(function(){return function(){clearTimeout(de.current),Ce.current=!0}},[]),React.useEffect(function(){W!==void 0&&Q===STATUS_NONE&&(E==null||E(W))},[W,Q]);var Ge=ce;return M[STEP_PREPARE]&&tt===STEP_START&&(Ge=_objectSpread2$1({transition:"none"},Ge)),[Q,tt,Ge,W!=null?W:o]}var DomWrapper=function(e){_inherits(r,e);var o=_createSuper(r);function r(){return _classCallCheck(this,r),o.apply(this,arguments)}return _createClass(r,[{key:"render",value:function(){return this.props.children}}]),r}(React__namespace.Component);function genCSSMotion(e){var o=e;_typeof$1(e)==="object"&&(o=e.transitionSupport);function r(s){return!!(s.motionName&&o)}var a=React__namespace.forwardRef(function(s,c){var l=s.visible,d=l===void 0?!0:l,u=s.removeOnLeave,f=u===void 0?!0:u,p=s.forceRender,m=s.children,I=s.motionName,h=s.leavedClassName,v=s.eventProps,C=r(s),b=React.useRef(),y=React.useRef();function g(){try{return findDOMNode(b.current||y.current)}catch{return null}}var O=useStatus(C,d,g,s),w=_slicedToArray(O,4),_=w[0],F=w[1],L=w[2],E=w[3],P=React.useRef(c);P.current=c;var A=React__namespace.useCallback(function(Q){b.current=Q,fillRef(P.current,Q)},[]),W,J=_objectSpread2$1(_objectSpread2$1({},v),{},{visible:d});if(!m)W=null;else if(_===STATUS_NONE||!r(s))E?W=m(_objectSpread2$1({},J),A):f?p?W=m(_objectSpread2$1(_objectSpread2$1({},J),{},{style:{display:"none"}}),A):W=null:W=m(_objectSpread2$1(_objectSpread2$1({},J),{},{className:h}),A);else{var Y,z;F===STEP_PREPARE?z="prepare":isActive(F)?z="active":F===STEP_START&&(z="start"),W=m(_objectSpread2$1(_objectSpread2$1({},J),{},{className:classnamesExports(getTransitionName$1(I,_),(Y={},_defineProperty$1(Y,getTransitionName$1(I,"".concat(_,"-").concat(z)),z),_defineProperty$1(Y,I,typeof I=="string"),Y)),style:L}),A)}return jsxRuntime.jsx(DomWrapper,{ref:y,children:W})});return a.displayName="CSSMotion",a}const CSSMotion=genCSSMotion(supportTransition);var STATUS_ADD="add",STATUS_KEEP="keep",STATUS_REMOVE="remove",STATUS_REMOVED="removed";function wrapKeyToObject(e){var o;return e&&_typeof$1(e)==="object"&&"key"in e?o=e:o={key:e},_objectSpread2$1(_objectSpread2$1({},o),{},{key:String(o.key)})}function parseKeys(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(wrapKeyToObject)}function diffKeys(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=[],a=0,s=o.length,c=parseKeys(e),l=parseKeys(o);c.forEach(function(f){for(var p=!1,m=a;m<s;m+=1){var I=l[m];if(I.key===f.key){a<m&&(r=r.concat(l.slice(a,m).map(function(h){return _objectSpread2$1(_objectSpread2$1({},h),{},{status:STATUS_ADD})})),a=m),r.push(_objectSpread2$1(_objectSpread2$1({},I),{},{status:STATUS_KEEP})),a+=1,p=!0;break}}p||r.push(_objectSpread2$1(_objectSpread2$1({},f),{},{status:STATUS_REMOVE}))}),a<s&&(r=r.concat(l.slice(a).map(function(f){return _objectSpread2$1(_objectSpread2$1({},f),{},{status:STATUS_ADD})})));var d={};r.forEach(function(f){var p=f.key;d[p]=(d[p]||0)+1});var u=Object.keys(d).filter(function(f){return d[f]>1});return u.forEach(function(f){r=r.filter(function(p){var m=p.key,I=p.status;return m!==f||I!==STATUS_REMOVE}),r.forEach(function(p){p.key===f&&(p.status=STATUS_KEEP)})}),r}var MOTION_PROP_NAMES=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function genCSSMotionList(e){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:CSSMotion,r=function(a){_inherits(c,a);var s=_createSuper(c);function c(){var l;return _classCallCheck(this,c),l=s.apply(this,arguments),l.state={keyEntities:[]},l.removeKey=function(d){l.setState(function(u){var f=u.keyEntities;return{keyEntities:f.map(function(p){return p.key!==d?p:_objectSpread2$1(_objectSpread2$1({},p),{},{status:STATUS_REMOVED})})}})},l}return _createClass(c,[{key:"render",value:function(){var d=this,u=this.state.keyEntities,f=this.props,p=f.component,m=f.children,I=f.onVisibleChanged,h=_objectWithoutProperties(f,["component","children","onVisibleChanged"]),v=p||React__namespace.Fragment,C={};return MOTION_PROP_NAMES.forEach(function(b){C[b]=h[b],delete h[b]}),delete h.keys,jsxRuntime.jsx(v,{...Object.assign({},h),children:u.map(function(b){var y=b.status,g=_objectWithoutProperties(b,["status"]),O=y===STATUS_ADD||y===STATUS_KEEP;return jsxRuntime.jsx(o,{...Object.assign({},C,{key:g.key,visible:O,eventProps:g,onVisibleChanged:function(_){I==null||I(_,{key:g.key}),_||d.removeKey(g.key)}}),children:m})})})}}],[{key:"getDerivedStateFromProps",value:function(d,u){var f=d.keys,p=u.keyEntities,m=parseKeys(f),I=diffKeys(p,m);return{keyEntities:I.filter(function(h){var v=p.find(function(C){var b=C.key;return h.key===b});return!(v&&v.status===STATUS_REMOVED&&h.status===STATUS_REMOVE)})}}}]),c}(React__namespace.Component);return r.defaultProps={component:"div"},r}const CSSMotionList=genCSSMotionList(supportTransition);var Notice$1=function(e){_inherits(r,e);var o=_createSuper(r);function r(){var a;return _classCallCheck(this,r),a=o.apply(this,arguments),a.closeTimer=null,a.close=function(s){s&&s.stopPropagation(),a.clearCloseTimer();var c=a.props,l=c.onClose,d=c.noticeKey;l&&l(d)},a.startCloseTimer=function(){a.props.duration&&(a.closeTimer=window.setTimeout(function(){a.close()},a.props.duration*1e3))},a.clearCloseTimer=function(){a.closeTimer&&(clearTimeout(a.closeTimer),a.closeTimer=null)},a}return _createClass(r,[{key:"componentDidMount",value:function(){this.startCloseTimer()}},{key:"componentDidUpdate",value:function(s){(this.props.duration!==s.duration||this.props.updateMark!==s.updateMark)&&this.restartCloseTimer()}},{key:"componentWillUnmount",value:function(){this.clearCloseTimer()}},{key:"restartCloseTimer",value:function(){this.clearCloseTimer(),this.startCloseTimer()}},{key:"render",value:function(){var s=this,c=this.props,l=c.prefixCls,d=c.className,u=c.closable,f=c.closeIcon,p=c.style,m=c.onClick,I=c.children,h=c.holder,v="".concat(l,"-notice"),C=Object.keys(this.props).reduce(function(y,g){return(g.substr(0,5)==="data-"||g.substr(0,5)==="aria-"||g==="role")&&(y[g]=s.props[g]),y},{}),b=jsxRuntime.jsxs("div",{...Object.assign({className:classnamesExports(v,d,_defineProperty$1({},"".concat(v,"-closable"),u)),style:p,onMouseEnter:this.clearCloseTimer,onMouseLeave:this.startCloseTimer,onClick:m},C),children:[jsxRuntime.jsx("div",{className:"".concat(v,"-content"),children:I}),u?jsxRuntime.jsx("a",{tabIndex:0,onClick:this.close,className:"".concat(v,"-close"),children:f||jsxRuntime.jsx("span",{className:"".concat(v,"-close-x")})}):null]});return h?ReactDOM__default.default.createPortal(b,h):b}}]),r}(React.Component);Notice$1.defaultProps={onClose:function(){},duration:1.5};function useNotification$2(e){var o=React__namespace.useRef({}),r=React__namespace.useState([]),a=_slicedToArray(r,2),s=a[0],c=a[1];function l(d){e.add(d,function(u,f){var p=f.key;if(u&&!o.current[p]){var m=jsxRuntime.jsx(Notice$1,{...Object.assign({},f,{holder:u})});o.current[p]=m,c(function(I){return[].concat(_toConsumableArray(I),[m])})}})}return[l,jsxRuntime.jsx(jsxRuntime.Fragment,{children:s})]}var seed=0,now$3=Date.now();function getUuid(){var e=seed;return seed+=1,"rcNotification_".concat(now$3,"_").concat(e)}var Notification=function(e){_inherits(r,e);var o=_createSuper(r);function r(){var a;return _classCallCheck(this,r),a=o.apply(this,arguments),a.state={notices:[]},a.hookRefs=new Map,a.add=function(s,c){var l=s.key||getUuid(),d=_objectSpread2$1(_objectSpread2$1({},s),{},{key:l}),u=a.props.maxCount;a.setState(function(f){var p=f.notices,m=p.map(function(h){return h.notice.key}).indexOf(l),I=p.concat();return m!==-1?I.splice(m,1,{notice:d,holderCallback:c}):(u&&p.length>=u&&(d.key=I[0].notice.key,d.updateMark=getUuid(),d.userPassKey=l,I.shift()),I.push({notice:d,holderCallback:c})),{notices:I}})},a.remove=function(s){a.setState(function(c){var l=c.notices;return{notices:l.filter(function(d){var u=d.notice,f=u.key,p=u.userPassKey,m=p||f;return m!==s})}})},a.noticePropsMap={},a}return _createClass(r,[{key:"getTransitionName",value:function(){var s=this.props,c=s.prefixCls,l=s.animation,d=this.props.transitionName;return!d&&l&&(d="".concat(c,"-").concat(l)),d}},{key:"render",value:function(){var s=this,c=this.state.notices,l=this.props,d=l.prefixCls,u=l.className,f=l.closeIcon,p=l.style,m=[];return c.forEach(function(I,h){var v=I.notice,C=I.holderCallback,b=h===c.length-1?v.updateMark:void 0,y=v.key,g=v.userPassKey,O=_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({prefixCls:d,closeIcon:f},v),v.props),{},{key:y,noticeKey:g||y,updateMark:b,onClose:function(_){var F;s.remove(_),(F=v.onClose)===null||F===void 0||F.call(v)},onClick:v.onClick,children:v.content});m.push(y),s.noticePropsMap[y]={props:O,holderCallback:C}}),jsxRuntime.jsx("div",{className:classnamesExports(d,u),style:p,children:jsxRuntime.jsx(CSSMotionList,{keys:m,motionName:this.getTransitionName(),onVisibleChanged:function(h,v){var C=v.key;h||delete s.noticePropsMap[C]},children:function(I){var h=I.key,v=I.className,C=I.style,b=s.noticePropsMap[h],y=b.props,g=b.holderCallback;return g?jsxRuntime.jsx("div",{className:classnamesExports(v,"".concat(d,"-hook-holder")),style:_objectSpread2$1({},C),ref:function(w){typeof h>"u"||(w?(s.hookRefs.set(h,w),g(w,y)):s.hookRefs.delete(h))}},h):jsxRuntime.jsx(Notice$1,{...Object.assign({},y,{className:classnamesExports(v,y==null?void 0:y.className),style:_objectSpread2$1(_objectSpread2$1({},C),y==null?void 0:y.style)})})}})})}}]),r}(React.Component);Notification.defaultProps={prefixCls:"rc-notification",animation:"fade",style:{top:65,left:"50%"}},Notification.newInstance=function(o,r){var a=o||{},s=a.getContainer,c=_objectWithoutProperties(a,["getContainer"]),l=document.createElement("div");if(s){var d=s();d.appendChild(l)}else document.body.appendChild(l);var u=!1;function f(p){u||(u=!0,r({notice:function(I){p.add(I)},removeNotice:function(I){p.remove(I)},component:p,destroy:function(){ReactDOM__default.default.unmountComponentAtNode(l),l.parentNode&&l.parentNode.removeChild(l)},useNotification:function(){return useNotification$2(p)}}))}if(process.env.NODE_ENV==="test"&&o.TEST_RENDER){o.TEST_RENDER(jsxRuntime.jsx(Notification,{...Object.assign({},c,{ref:f})}));return}ReactDOM__default.default.render(jsxRuntime.jsx(Notification,{...Object.assign({},c,{ref:f})}),l)};const es$1=Object.freeze(Object.defineProperty({__proto__:null,default:Notification},Symbol.toStringTag,{value:"Module"})),require$$6$1=getAugmentedNamespace(es$1);var LoadingOutlined$2={exports:{}},LoadingOutlined$1={},LoadingOutlined={},hasRequiredLoadingOutlined$2;function requireLoadingOutlined$2(){if(hasRequiredLoadingOutlined$2)return LoadingOutlined;hasRequiredLoadingOutlined$2=1,Object.defineProperty(LoadingOutlined,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};return LoadingOutlined.default=e,LoadingOutlined}var hasRequiredLoadingOutlined$1;function requireLoadingOutlined$1(){if(hasRequiredLoadingOutlined$1)return LoadingOutlined$1;hasRequiredLoadingOutlined$1=1;var e=interopRequireWildcard.exports,o=interopRequireDefault.exports;Object.defineProperty(LoadingOutlined$1,"__esModule",{value:!0}),LoadingOutlined$1.default=void 0;var r=o(requireObjectSpread2()),a=e(React__default.default),s=o(requireLoadingOutlined$2()),c=o(requireAntdIcon()),l=function(f,p){return a.createElement(c.default,(0,r.default)((0,r.default)({},f),{},{ref:p,icon:s.default}))};l.displayName="LoadingOutlined";var d=a.forwardRef(l);return LoadingOutlined$1.default=d,LoadingOutlined$1}var hasRequiredLoadingOutlined;function requireLoadingOutlined(){return hasRequiredLoadingOutlined||(hasRequiredLoadingOutlined=1,function(e,o){Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var r=a(requireLoadingOutlined$1());function a(c){return c&&c.__esModule?c:{default:c}}var s=r;o.default=s,e.exports=s}(LoadingOutlined$2,LoadingOutlined$2.exports)),LoadingOutlined$2.exports}var ExclamationCircleFilled$2={exports:{}},ExclamationCircleFilled$1={},ExclamationCircleFilled={},hasRequiredExclamationCircleFilled$2;function requireExclamationCircleFilled$2(){if(hasRequiredExclamationCircleFilled$2)return ExclamationCircleFilled;hasRequiredExclamationCircleFilled$2=1,Object.defineProperty(ExclamationCircleFilled,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"};return ExclamationCircleFilled.default=e,ExclamationCircleFilled}var hasRequiredExclamationCircleFilled$1;function requireExclamationCircleFilled$1(){if(hasRequiredExclamationCircleFilled$1)return ExclamationCircleFilled$1;hasRequiredExclamationCircleFilled$1=1;var e=interopRequireWildcard.exports,o=interopRequireDefault.exports;Object.defineProperty(ExclamationCircleFilled$1,"__esModule",{value:!0}),ExclamationCircleFilled$1.default=void 0;var r=o(requireObjectSpread2()),a=e(React__default.default),s=o(requireExclamationCircleFilled$2()),c=o(requireAntdIcon()),l=function(f,p){return a.createElement(c.default,(0,r.default)((0,r.default)({},f),{},{ref:p,icon:s.default}))};l.displayName="ExclamationCircleFilled";var d=a.forwardRef(l);return ExclamationCircleFilled$1.default=d,ExclamationCircleFilled$1}var hasRequiredExclamationCircleFilled;function requireExclamationCircleFilled(){return hasRequiredExclamationCircleFilled||(hasRequiredExclamationCircleFilled=1,function(e,o){Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var r=a(requireExclamationCircleFilled$1());function a(c){return c&&c.__esModule?c:{default:c}}var s=r;o.default=s,e.exports=s}(ExclamationCircleFilled$2,ExclamationCircleFilled$2.exports)),ExclamationCircleFilled$2.exports}var CheckCircleFilled$2={exports:{}},CheckCircleFilled$1={},CheckCircleFilled={},hasRequiredCheckCircleFilled$2;function requireCheckCircleFilled$2(){if(hasRequiredCheckCircleFilled$2)return CheckCircleFilled;hasRequiredCheckCircleFilled$2=1,Object.defineProperty(CheckCircleFilled,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};return CheckCircleFilled.default=e,CheckCircleFilled}var hasRequiredCheckCircleFilled$1;function requireCheckCircleFilled$1(){if(hasRequiredCheckCircleFilled$1)return CheckCircleFilled$1;hasRequiredCheckCircleFilled$1=1;var e=interopRequireWildcard.exports,o=interopRequireDefault.exports;Object.defineProperty(CheckCircleFilled$1,"__esModule",{value:!0}),CheckCircleFilled$1.default=void 0;var r=o(requireObjectSpread2()),a=e(React__default.default),s=o(requireCheckCircleFilled$2()),c=o(requireAntdIcon()),l=function(f,p){return a.createElement(c.default,(0,r.default)((0,r.default)({},f),{},{ref:p,icon:s.default}))};l.displayName="CheckCircleFilled";var d=a.forwardRef(l);return CheckCircleFilled$1.default=d,CheckCircleFilled$1}var hasRequiredCheckCircleFilled;function requireCheckCircleFilled(){return hasRequiredCheckCircleFilled||(hasRequiredCheckCircleFilled=1,function(e,o){Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var r=a(requireCheckCircleFilled$1());function a(c){return c&&c.__esModule?c:{default:c}}var s=r;o.default=s,e.exports=s}(CheckCircleFilled$2,CheckCircleFilled$2.exports)),CheckCircleFilled$2.exports}var InfoCircleFilled$2={exports:{}},InfoCircleFilled$1={},InfoCircleFilled={},hasRequiredInfoCircleFilled$2;function requireInfoCircleFilled$2(){if(hasRequiredInfoCircleFilled$2)return InfoCircleFilled;hasRequiredInfoCircleFilled$2=1,Object.defineProperty(InfoCircleFilled,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"};return InfoCircleFilled.default=e,InfoCircleFilled}var hasRequiredInfoCircleFilled$1;function requireInfoCircleFilled$1(){if(hasRequiredInfoCircleFilled$1)return InfoCircleFilled$1;hasRequiredInfoCircleFilled$1=1;var e=interopRequireWildcard.exports,o=interopRequireDefault.exports;Object.defineProperty(InfoCircleFilled$1,"__esModule",{value:!0}),InfoCircleFilled$1.default=void 0;var r=o(requireObjectSpread2()),a=e(React__default.default),s=o(requireInfoCircleFilled$2()),c=o(requireAntdIcon()),l=function(f,p){return a.createElement(c.default,(0,r.default)((0,r.default)({},f),{},{ref:p,icon:s.default}))};l.displayName="InfoCircleFilled";var d=a.forwardRef(l);return InfoCircleFilled$1.default=d,InfoCircleFilled$1}var hasRequiredInfoCircleFilled;function requireInfoCircleFilled(){return hasRequiredInfoCircleFilled||(hasRequiredInfoCircleFilled=1,function(e,o){Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var r=a(requireInfoCircleFilled$1());function a(c){return c&&c.__esModule?c:{default:c}}var s=r;o.default=s,e.exports=s}(InfoCircleFilled$2,InfoCircleFilled$2.exports)),InfoCircleFilled$2.exports}var useMessage={},useNotification$1={},Notice={},hasRequiredNotice;function requireNotice(){if(hasRequiredNotice)return Notice;hasRequiredNotice=1;var e=interopRequireWildcard.exports,o=interopRequireDefault.exports;Object.defineProperty(Notice,"__esModule",{value:!0}),Notice.default=void 0;var r=o(requireDefineProperty()),a=o(requireClassCallCheck()),s=o(requireCreateClass()),c=o(requireInherits()),l=o(requireCreateSuper()),d=e(React__default.default),u=o(ReactDOM__default.default),f=o(requireClassnames()),p=function(m){(0,c.default)(h,m);var I=(0,l.default)(h);function h(){var v;return(0,a.default)(this,h),v=I.apply(this,arguments),v.closeTimer=null,v.close=function(C){C&&C.stopPropagation(),v.clearCloseTimer();var b=v.props,y=b.onClose,g=b.noticeKey;y&&y(g)},v.startCloseTimer=function(){v.props.duration&&(v.closeTimer=window.setTimeout(function(){v.close()},v.props.duration*1e3))},v.clearCloseTimer=function(){v.closeTimer&&(clearTimeout(v.closeTimer),v.closeTimer=null)},v}return(0,s.default)(h,[{key:"componentDidMount",value:function(){this.startCloseTimer()}},{key:"componentDidUpdate",value:function(C){(this.props.duration!==C.duration||this.props.updateMark!==C.updateMark)&&this.restartCloseTimer()}},{key:"componentWillUnmount",value:function(){this.clearCloseTimer()}},{key:"restartCloseTimer",value:function(){this.clearCloseTimer(),this.startCloseTimer()}},{key:"render",value:function(){var C=this,b=this.props,y=b.prefixCls,g=b.className,O=b.closable,w=b.closeIcon,_=b.style,F=b.onClick,L=b.children,E=b.holder,P="".concat(y,"-notice"),A=Object.keys(this.props).reduce(function(J,Y){return(Y.substr(0,5)==="data-"||Y.substr(0,5)==="aria-"||Y==="role")&&(J[Y]=C.props[Y]),J},{}),W=d.createElement("div",Object.assign({className:(0,f.default)(P,g,(0,r.default)({},"".concat(P,"-closable"),O)),style:_,onMouseEnter:this.clearCloseTimer,onMouseLeave:this.startCloseTimer,onClick:F},A),d.createElement("div",{className:"".concat(P,"-content")},L),O?d.createElement("a",{tabIndex:0,onClick:this.close,className:"".concat(P,"-close")},w||d.createElement("span",{className:"".concat(P,"-close-x")})):null);return E?u.default.createPortal(W,E):W}}]),h}(d.Component);return Notice.default=p,p.defaultProps={onClose:function(){},duration:1.5},Notice}var hasRequiredUseNotification$1;function requireUseNotification$1(){if(hasRequiredUseNotification$1)return useNotification$1;hasRequiredUseNotification$1=1;var e=interopRequireWildcard.exports,o=interopRequireDefault.exports;Object.defineProperty(useNotification$1,"__esModule",{value:!0}),useNotification$1.default=l;var r=o(requireToConsumableArray()),a=o(requireSlicedToArray()),s=e(React__default.default),c=o(requireNotice());function l(d){var u=s.useRef({}),f=s.useState([]),p=(0,a.default)(f,2),m=p[0],I=p[1];function h(v){d.add(v,function(C,b){var y=b.key;if(C&&!u.current[y]){var g=s.createElement(c.default,Object.assign({},b,{holder:C}));u.current[y]=g,I(function(O){return[].concat((0,r.default)(O),[g])})}})}return[h,s.createElement(s.Fragment,null,m)]}return useNotification$1}var hasRequiredUseMessage;function requireUseMessage(){return hasRequiredUseMessage||(hasRequiredUseMessage=1,function(e){var o=interopRequireWildcard.exports,r=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=f;var a=r(require_extends()),s=r(requireSlicedToArray()),c=o(React__default.default),l=r(requireUseNotification$1()),d=requireConfigProvider(),u=requireMessage();function f(p,m){var I=function(){var v,C=null,b={add:function(E,P){C==null||C.component.add(E,P)}},y=(0,l.default)(b),g=(0,s.default)(y,2),O=g[0],w=g[1];function _(L){var E=L.prefixCls,P=v("message",E),A=L.key||(0,u.getKeyThenIncreaseKey)(),W=new Promise(function(Y){var z=function(){return typeof L.onClose=="function"&&L.onClose(),Y(!0)};p((0,a.default)((0,a.default)({},L),{prefixCls:P}),function(Q){var oe=Q.prefixCls,te=Q.instance;C=te,O(m((0,a.default)((0,a.default)({},L),{key:A,onClose:z}),oe))})}),J=function(){C&&C.removeNotice(A)};return J.then=function(Y,z){return W.then(Y,z)},J.promise=W,J}var F=c.useRef({});return F.current.open=_,["success","info","warning","error","loading"].forEach(function(L){return(0,u.attachTypeApi)(F.current,L)}),[F.current,c.createElement(d.ConfigConsumer,{key:"holder"},function(L){return v=L.getPrefixCls,w})]};return I}}(useMessage)),useMessage}var hasRequiredMessage;function requireMessage(){return hasRequiredMessage||(hasRequiredMessage=1,function(e){var o=interopRequireWildcard.exports,r=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.getKeyThenIncreaseKey=L,e.attachTypeApi=Q,e.default=e.getInstance=void 0;var a=r(require_extends()),s=r(requireDefineProperty()),c=o(React__default.default),l=r(requireClassnames()),d=r(require$$6$1),u=r(requireLoadingOutlined()),f=r(requireExclamationCircleFilled()),p=r(requireCloseCircleFilled()),m=r(requireCheckCircleFilled()),I=r(requireInfoCircleFilled()),h=r(requireUseMessage()),v,C=3,b,y=1,g="ant-message",O="move-up",w,_,F=!1;function L(){return y++}function E(X){X.top!==void 0&&(b=X.top,v=null),X.duration!==void 0&&(C=X.duration),X.prefixCls!==void 0&&(g=X.prefixCls),X.getContainer!==void 0&&(w=X.getContainer),X.transitionName!==void 0&&(O=X.transitionName,v=null),X.maxCount!==void 0&&(_=X.maxCount,v=null),X.rtl!==void 0&&(F=X.rtl)}function P(X,ce){var Re=X.prefixCls||g;if(v){ce({prefixCls:Re,instance:v});return}d.default.newInstance({prefixCls:Re,transitionName:O,style:{top:b},getContainer:w,maxCount:_},function(xe){if(v){ce({prefixCls:Re,instance:v});return}v=xe,ce({prefixCls:Re,instance:xe})})}var A={info:I.default,success:m.default,error:p.default,warning:f.default,loading:u.default};function W(X,ce){var Re,xe=X.duration!==void 0?X.duration:C,de=A[X.type],Ce=(0,l.default)("".concat(ce,"-custom-content"),(Re={},(0,s.default)(Re,"".concat(ce,"-").concat(X.type),X.type),(0,s.default)(Re,"".concat(ce,"-rtl"),F===!0),Re));return{key:X.key,duration:xe,style:X.style||{},className:X.className,content:c.createElement("div",{className:Ce},X.icon||de&&c.createElement(de,null),c.createElement("span",null,X.content)),onClose:X.onClose,onClick:X.onClick}}function J(X){var ce=X.key||y++,Re=new Promise(function(de){var Ce=function(){return typeof X.onClose=="function"&&X.onClose(),de(!0)};P(X,function(ee){var ue=ee.prefixCls,N=ee.instance;N.notice(W((0,a.default)((0,a.default)({},X),{key:ce,onClose:Ce}),ue))})}),xe=function(){v&&v.removeNotice(ce)};return xe.then=function(de,Ce){return Re.then(de,Ce)},xe.promise=Re,xe}function Y(X){return Object.prototype.toString.call(X)==="[object Object]"&&!!X.content}var z={open:J,config:E,destroy:function(ce){if(v)if(ce){var Re=v,xe=Re.removeNotice;xe(ce)}else{var de=v,Ce=de.destroy;Ce(),v=null}}};function Q(X,ce){X[ce]=function(Re,xe,de){return Y(Re)?X.open((0,a.default)((0,a.default)({},Re),{type:ce})):(typeof xe=="function"&&(de=xe,xe=void 0),X.open({content:Re,duration:xe,type:ce,onClose:de}))}}["success","info","warning","error","loading"].forEach(function(X){return Q(z,X)}),z.warn=z.warning,z.useMessage=(0,h.default)(P,W);var oe=function(){return process.env.NODE_ENV==="test"?v:null};e.getInstance=oe;var te=z;e.default=te}(message)),message}var notification={},CloseOutlined$2={exports:{}},CloseOutlined$1={},CloseOutlined={},hasRequiredCloseOutlined$2;function requireCloseOutlined$2(){if(hasRequiredCloseOutlined$2)return CloseOutlined;hasRequiredCloseOutlined$2=1,Object.defineProperty(CloseOutlined,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"}}]},name:"close",theme:"outlined"};return CloseOutlined.default=e,CloseOutlined}var hasRequiredCloseOutlined$1;function requireCloseOutlined$1(){if(hasRequiredCloseOutlined$1)return CloseOutlined$1;hasRequiredCloseOutlined$1=1;var e=interopRequireWildcard.exports,o=interopRequireDefault.exports;Object.defineProperty(CloseOutlined$1,"__esModule",{value:!0}),CloseOutlined$1.default=void 0;var r=o(requireObjectSpread2()),a=e(React__default.default),s=o(requireCloseOutlined$2()),c=o(requireAntdIcon()),l=function(f,p){return a.createElement(c.default,(0,r.default)((0,r.default)({},f),{},{ref:p,icon:s.default}))};l.displayName="CloseOutlined";var d=a.forwardRef(l);return CloseOutlined$1.default=d,CloseOutlined$1}var hasRequiredCloseOutlined;function requireCloseOutlined(){return hasRequiredCloseOutlined||(hasRequiredCloseOutlined=1,function(e,o){Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var r=a(requireCloseOutlined$1());function a(c){return c&&c.__esModule?c:{default:c}}var s=r;o.default=s,e.exports=s}(CloseOutlined$2,CloseOutlined$2.exports)),CloseOutlined$2.exports}var CheckCircleOutlined$2={exports:{}},CheckCircleOutlined$1={},CheckCircleOutlined={},hasRequiredCheckCircleOutlined$2;function requireCheckCircleOutlined$2(){if(hasRequiredCheckCircleOutlined$2)return CheckCircleOutlined;hasRequiredCheckCircleOutlined$2=1,Object.defineProperty(CheckCircleOutlined,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"};return CheckCircleOutlined.default=e,CheckCircleOutlined}var hasRequiredCheckCircleOutlined$1;function requireCheckCircleOutlined$1(){if(hasRequiredCheckCircleOutlined$1)return CheckCircleOutlined$1;hasRequiredCheckCircleOutlined$1=1;var e=interopRequireWildcard.exports,o=interopRequireDefault.exports;Object.defineProperty(CheckCircleOutlined$1,"__esModule",{value:!0}),CheckCircleOutlined$1.default=void 0;var r=o(requireObjectSpread2()),a=e(React__default.default),s=o(requireCheckCircleOutlined$2()),c=o(requireAntdIcon()),l=function(f,p){return a.createElement(c.default,(0,r.default)((0,r.default)({},f),{},{ref:p,icon:s.default}))};l.displayName="CheckCircleOutlined";var d=a.forwardRef(l);return CheckCircleOutlined$1.default=d,CheckCircleOutlined$1}var hasRequiredCheckCircleOutlined;function requireCheckCircleOutlined(){return hasRequiredCheckCircleOutlined||(hasRequiredCheckCircleOutlined=1,function(e,o){Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var r=a(requireCheckCircleOutlined$1());function a(c){return c&&c.__esModule?c:{default:c}}var s=r;o.default=s,e.exports=s}(CheckCircleOutlined$2,CheckCircleOutlined$2.exports)),CheckCircleOutlined$2.exports}var CloseCircleOutlined$2={exports:{}},CloseCircleOutlined$1={},CloseCircleOutlined={},hasRequiredCloseCircleOutlined$2;function requireCloseCircleOutlined$2(){if(hasRequiredCloseCircleOutlined$2)return CloseCircleOutlined;hasRequiredCloseCircleOutlined$2=1,Object.defineProperty(CloseCircleOutlined,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M685.4 354.8c0-4.4-3.6-8-8-8l-66 .3L512 465.6l-99.3-118.4-66.1-.3c-4.4 0-8 3.5-8 8 0 1.9.7 3.7 1.9 5.2l130.1 155L340.5 670a8.32 8.32 0 00-1.9 5.2c0 4.4 3.6 8 8 8l66.1-.3L512 564.4l99.3 118.4 66 .3c4.4 0 8-3.5 8-8 0-1.9-.7-3.7-1.9-5.2L553.5 515l130.1-155c1.2-1.4 1.8-3.3 1.8-5.2z"}},{tag:"path",attrs:{d:"M512 65C264.6 65 64 265.6 64 513s200.6 448 448 448 448-200.6 448-448S759.4 65 512 65zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"close-circle",theme:"outlined"};return CloseCircleOutlined.default=e,CloseCircleOutlined}var hasRequiredCloseCircleOutlined$1;function requireCloseCircleOutlined$1(){if(hasRequiredCloseCircleOutlined$1)return CloseCircleOutlined$1;hasRequiredCloseCircleOutlined$1=1;var e=interopRequireWildcard.exports,o=interopRequireDefault.exports;Object.defineProperty(CloseCircleOutlined$1,"__esModule",{value:!0}),CloseCircleOutlined$1.default=void 0;var r=o(requireObjectSpread2()),a=e(React__default.default),s=o(requireCloseCircleOutlined$2()),c=o(requireAntdIcon()),l=function(f,p){return a.createElement(c.default,(0,r.default)((0,r.default)({},f),{},{ref:p,icon:s.default}))};l.displayName="CloseCircleOutlined";var d=a.forwardRef(l);return CloseCircleOutlined$1.default=d,CloseCircleOutlined$1}var hasRequiredCloseCircleOutlined;function requireCloseCircleOutlined(){return hasRequiredCloseCircleOutlined||(hasRequiredCloseCircleOutlined=1,function(e,o){Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var r=a(requireCloseCircleOutlined$1());function a(c){return c&&c.__esModule?c:{default:c}}var s=r;o.default=s,e.exports=s}(CloseCircleOutlined$2,CloseCircleOutlined$2.exports)),CloseCircleOutlined$2.exports}var ExclamationCircleOutlined$2={exports:{}},ExclamationCircleOutlined$1={},ExclamationCircleOutlined={},hasRequiredExclamationCircleOutlined$2;function requireExclamationCircleOutlined$2(){if(hasRequiredExclamationCircleOutlined$2)return ExclamationCircleOutlined;hasRequiredExclamationCircleOutlined$2=1,Object.defineProperty(ExclamationCircleOutlined,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"};return ExclamationCircleOutlined.default=e,ExclamationCircleOutlined}var hasRequiredExclamationCircleOutlined$1;function requireExclamationCircleOutlined$1(){if(hasRequiredExclamationCircleOutlined$1)return ExclamationCircleOutlined$1;hasRequiredExclamationCircleOutlined$1=1;var e=interopRequireWildcard.exports,o=interopRequireDefault.exports;Object.defineProperty(ExclamationCircleOutlined$1,"__esModule",{value:!0}),ExclamationCircleOutlined$1.default=void 0;var r=o(requireObjectSpread2()),a=e(React__default.default),s=o(requireExclamationCircleOutlined$2()),c=o(requireAntdIcon()),l=function(f,p){return a.createElement(c.default,(0,r.default)((0,r.default)({},f),{},{ref:p,icon:s.default}))};l.displayName="ExclamationCircleOutlined";var d=a.forwardRef(l);return ExclamationCircleOutlined$1.default=d,ExclamationCircleOutlined$1}var hasRequiredExclamationCircleOutlined;function requireExclamationCircleOutlined(){return hasRequiredExclamationCircleOutlined||(hasRequiredExclamationCircleOutlined=1,function(e,o){Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var r=a(requireExclamationCircleOutlined$1());function a(c){return c&&c.__esModule?c:{default:c}}var s=r;o.default=s,e.exports=s}(ExclamationCircleOutlined$2,ExclamationCircleOutlined$2.exports)),ExclamationCircleOutlined$2.exports}var InfoCircleOutlined$2={exports:{}},InfoCircleOutlined$1={},InfoCircleOutlined={},hasRequiredInfoCircleOutlined$2;function requireInfoCircleOutlined$2(){if(hasRequiredInfoCircleOutlined$2)return InfoCircleOutlined;hasRequiredInfoCircleOutlined$2=1,Object.defineProperty(InfoCircleOutlined,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"};return InfoCircleOutlined.default=e,InfoCircleOutlined}var hasRequiredInfoCircleOutlined$1;function requireInfoCircleOutlined$1(){if(hasRequiredInfoCircleOutlined$1)return InfoCircleOutlined$1;hasRequiredInfoCircleOutlined$1=1;var e=interopRequireWildcard.exports,o=interopRequireDefault.exports;Object.defineProperty(InfoCircleOutlined$1,"__esModule",{value:!0}),InfoCircleOutlined$1.default=void 0;var r=o(requireObjectSpread2()),a=e(React__default.default),s=o(requireInfoCircleOutlined$2()),c=o(requireAntdIcon()),l=function(f,p){return a.createElement(c.default,(0,r.default)((0,r.default)({},f),{},{ref:p,icon:s.default}))};l.displayName="InfoCircleOutlined";var d=a.forwardRef(l);return InfoCircleOutlined$1.default=d,InfoCircleOutlined$1}var hasRequiredInfoCircleOutlined;function requireInfoCircleOutlined(){return hasRequiredInfoCircleOutlined||(hasRequiredInfoCircleOutlined=1,function(e,o){Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var r=a(requireInfoCircleOutlined$1());function a(c){return c&&c.__esModule?c:{default:c}}var s=r;o.default=s,e.exports=s}(InfoCircleOutlined$2,InfoCircleOutlined$2.exports)),InfoCircleOutlined$2.exports}var useNotification={},hasRequiredUseNotification;function requireUseNotification(){return hasRequiredUseNotification||(hasRequiredUseNotification=1,function(e){var o=interopRequireWildcard.exports,r=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=u;var a=r(require_extends()),s=r(requireSlicedToArray()),c=o(React__default.default),l=r(requireUseNotification$1()),d=requireConfigProvider();function u(f,p){var m=function(){var h,v=null,C={add:function(L,E){v==null||v.component.add(L,E)}},b=(0,l.default)(C),y=(0,s.default)(b,2),g=y[0],O=y[1];function w(F){var L=F.prefixCls,E=h("notification",L);f((0,a.default)((0,a.default)({},F),{prefixCls:E}),function(P){var A=P.prefixCls,W=P.instance;v=W,g(p(F,A))})}var _=c.useRef({});return _.current.open=w,["success","info","warning","error"].forEach(function(F){_.current[F]=function(L){return _.current.open((0,a.default)((0,a.default)({},L),{type:F}))}}),[_.current,c.createElement(d.ConfigConsumer,{key:"holder"},function(F){return h=F.getPrefixCls,O})]};return m}}(useNotification)),useNotification}var hasRequiredNotification;function requireNotification(){return hasRequiredNotification||(hasRequiredNotification=1,function(e){var o=interopRequireWildcard.exports,r=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.getInstance=void 0;var a=r(requireRegenerator()),s=r(require_extends()),c=r(requireDefineProperty()),l=o(React__default.default),d=r(require$$6$1),u=r(requireCloseOutlined()),f=r(requireClassnames()),p=r(requireCheckCircleOutlined()),m=r(requireCloseCircleOutlined()),I=r(requireExclamationCircleOutlined()),h=r(requireInfoCircleOutlined()),v=r(requireUseNotification()),C=function(X,ce,Re,xe){function de(Ce){return Ce instanceof Re?Ce:new Re(function(ee){ee(Ce)})}return new(Re||(Re=Promise))(function(Ce,ee){function ue(re){try{U(xe.next(re))}catch(Te){ee(Te)}}function N(re){try{U(xe.throw(re))}catch(Te){ee(Te)}}function U(re){re.done?Ce(re.value):de(re.value).then(ue,N)}U((xe=xe.apply(X,ce||[])).next())})},b={},y=4.5,g=24,O=24,w="ant-notification",_="topRight",F,L,E=!1;function P(X){var ce=X.duration,Re=X.placement,xe=X.bottom,de=X.top,Ce=X.getContainer,ee=X.closeIcon,ue=X.prefixCls;ue!==void 0&&(w=ue),ce!==void 0&&(y=ce),Re!==void 0?_=Re:X.rtl&&(_="topLeft"),xe!==void 0&&(O=xe),de!==void 0&&(g=de),Ce!==void 0&&(F=Ce),ee!==void 0&&(L=ee),X.rtl!==void 0&&(E=X.rtl)}function A(X){var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:g,Re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:O,xe;switch(X){case"topLeft":xe={left:0,top:ce,bottom:"auto"};break;case"topRight":xe={right:0,top:ce,bottom:"auto"};break;case"bottomLeft":xe={left:0,top:"auto",bottom:Re};break;default:xe={right:0,top:"auto",bottom:Re};break}return xe}function W(X,ce){var Re=X.placement,xe=Re===void 0?_:Re,de=X.top,Ce=X.bottom,ee=X.getContainer,ue=ee===void 0?F:ee,N=X.closeIcon,U=N===void 0?L:N,re=X.prefixCls||w,Te="".concat(re,"-notice"),Fe="".concat(re,"-").concat(xe),M=b[Fe];if(M){Promise.resolve(M).then(function(je){ce({prefixCls:Te,instance:je})});return}var j=l.createElement("span",{className:"".concat(re,"-close-x")},U||l.createElement(u.default,{className:"".concat(re,"-close-icon")})),we=(0,f.default)("".concat(re,"-").concat(xe),(0,c.default)({},"".concat(re,"-rtl"),E===!0));b[Fe]=new Promise(function(je){d.default.newInstance({prefixCls:re,className:we,style:A(xe,de,Ce),getContainer:ue,closeIcon:j},function(tt){je(tt),ce({prefixCls:Te,instance:tt})})})}var J={success:p.default,info:h.default,error:m.default,warning:I.default};function Y(X,ce){var Re=X.duration===void 0?y:X.duration,xe=null;X.icon?xe=l.createElement("span",{className:"".concat(ce,"-icon")},X.icon):X.type&&(xe=l.createElement(J[X.type]||null,{className:"".concat(ce,"-icon ").concat(ce,"-icon-").concat(X.type)}));var de=!X.description&&xe?l.createElement("span",{className:"".concat(ce,"-message-single-line-auto-margin")}):null;return{content:l.createElement("div",{className:xe?"".concat(ce,"-with-icon"):"",role:"alert"},xe,l.createElement("div",{className:"".concat(ce,"-message")},de,X.message),l.createElement("div",{className:"".concat(ce,"-description")},X.description),X.btn?l.createElement("span",{className:"".concat(ce,"-btn")},X.btn):null),duration:Re,closable:!0,onClose:X.onClose,onClick:X.onClick,key:X.key,style:X.style||{},className:X.className}}function z(X){W(X,function(ce){var Re=ce.prefixCls,xe=ce.instance;xe.notice(Y(X,Re))})}var Q={open:z,close:function(ce){Object.keys(b).forEach(function(Re){return Promise.resolve(b[Re]).then(function(xe){xe.removeNotice(ce)})})},config:P,destroy:function(){Object.keys(b).forEach(function(ce){Promise.resolve(b[ce]).then(function(Re){Re.destroy()}),delete b[ce]})}};["success","info","warning","error"].forEach(function(X){Q[X]=function(ce){return Q.open((0,s.default)((0,s.default)({},ce),{type:X}))}}),Q.warn=Q.warning,Q.useNotification=(0,v.default)(W,Y);var oe=function(ce){return C(void 0,void 0,void 0,a.default.mark(function Re(){return a.default.wrap(function(de){for(;;)switch(de.prev=de.next){case 0:return de.abrupt("return",process.env.NODE_ENV==="test"?b[ce]:null);case 1:case"end":return de.stop()}},Re)}))};e.getInstance=oe;var te=Q;e.default=te}(notification)),notification}var hasRequiredConfigProvider;function requireConfigProvider(){return hasRequiredConfigProvider||(hasRequiredConfigProvider=1,function(e){var o=interopRequireWildcard.exports,r=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ConfigConsumer",{enumerable:!0,get:function(){return p.ConfigConsumer}}),Object.defineProperty(e,"ConfigContext",{enumerable:!0,get:function(){return p.ConfigContext}}),e.default=e.configConsumerProps=void 0;var a=r(require_extends()),s=o(React__default.default),c=r(requireContext$2()),l=require$$5,d=r(requireUseMemo()),u=o(requireLocaleProvider()),f=r(requireLocaleReceiver()),p=requireContext(),m=o(requireSizeContext()),I=r(requireMessage()),h=r(requireNotification()),v=["getTargetContainer","getPopupContainer","rootPrefixCls","getPrefixCls","renderEmpty","csp","autoInsertSpaceInButton","locale","pageHeader"];e.configConsumerProps=v;var C=["getTargetContainer","getPopupContainer","renderEmpty","pageHeader","input","form"],b=function(w){var _=w.children,F=w.csp,L=w.autoInsertSpaceInButton,E=w.form,P=w.locale,A=w.componentSize,W=w.direction,J=w.space,Y=w.virtual,z=w.dropdownMatchSelectWidth,Q=w.legacyLocale,oe=w.parentContext,te=w.iconPrefixCls,X=s.useCallback(function(ee,ue){var N=w.prefixCls;if(ue)return ue;var U=N||oe.getPrefixCls("");return ee?"".concat(U,"-").concat(ee):U},[oe.getPrefixCls]),ce=(0,a.default)((0,a.default)({},oe),{csp:F,autoInsertSpaceInButton:L,locale:P||Q,direction:W,space:J,virtual:Y,dropdownMatchSelectWidth:z,getPrefixCls:X});C.forEach(function(ee){var ue=w[ee];ue&&(ce[ee]=ue)});var Re=(0,d.default)(function(){return ce},ce,function(ee,ue){var N=Object.keys(ee),U=Object.keys(ue);return N.length!==U.length||N.some(function(re){return ee[re]!==ue[re]})}),xe=s.useMemo(function(){return{prefixCls:te}},[te]),de=_,Ce={};return P&&P.Form&&P.Form.defaultValidateMessages&&(Ce=P.Form.defaultValidateMessages),E&&E.validateMessages&&(Ce=(0,a.default)((0,a.default)({},Ce),E.validateMessages)),Object.keys(Ce).length>0&&(de=s.createElement(l.FormProvider,{validateMessages:Ce},_)),P&&(de=s.createElement(u.default,{locale:P,_ANT_MARK__:u.ANT_MARK},de)),te&&(de=s.createElement(c.default.Provider,{value:xe},de)),A&&(de=s.createElement(m.SizeContextProvider,{size:A},de)),s.createElement(p.ConfigContext.Provider,{value:Re},de)},y=function(w){return s.useEffect(function(){w.direction&&(I.default.config({rtl:w.direction==="rtl"}),h.default.config({rtl:w.direction==="rtl"}))},[w.direction]),s.createElement(f.default,null,function(_,F,L){return s.createElement(p.ConfigConsumer,null,function(E){return s.createElement(b,(0,a.default)({parentContext:E,legacyLocale:L},w))})})};y.ConfigContext=p.ConfigContext,y.SizeContext=m.default;var g=y;e.default=g}(configProvider)),configProvider}var hasRequiredInput;function requireInput(){return hasRequiredInput||(hasRequiredInput=1,function(e){var o=interopRequireWildcard.exports,r=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.fixControlledValue=b,e.resolveOnChange=y,e.getInputClassName=g,e.triggerFocus=O,e.default=void 0;var a=r(require_extends()),s=r(requireClassCallCheck()),c=r(requireCreateClass()),l=r(requireInherits()),d=r(requireCreateSuper()),u=r(requireDefineProperty()),f=o(React__default.default),p=r(requireClassnames()),m=r(requireOmit()),I=o(requireClearableLabeledInput()),h=requireConfigProvider(),v=r(requireSizeContext()),C=r(requireDevWarning());function b(F){return typeof F>"u"||F===null?"":F}function y(F,L,E){if(E){var P=L;if(L.type==="click"){P=Object.create(L),P.target=F,P.currentTarget=F;var A=F.value;F.value="",E(P),F.value=A;return}E(P)}}function g(F,L,E,P,A){var W;return(0,p.default)(F,(W={},(0,u.default)(W,"".concat(F,"-sm"),E==="small"),(0,u.default)(W,"".concat(F,"-lg"),E==="large"),(0,u.default)(W,"".concat(F,"-disabled"),P),(0,u.default)(W,"".concat(F,"-rtl"),A==="rtl"),(0,u.default)(W,"".concat(F,"-borderless"),!L),W))}function O(F,L){if(!!F){F.focus(L);var E=L||{},P=E.cursor;if(P){var A=F.value.length;switch(P){case"start":F.setSelectionRange(0,0);break;case"end":F.setSelectionRange(A,A);break;default:F.setSelectionRange(0,A)}}}}var w=function(F){(0,l.default)(E,F);var L=(0,d.default)(E);function E(P){var A;(0,s.default)(this,E),A=L.call(this,P),A.direction="ltr",A.focus=function(J){O(A.input,J)},A.saveClearableInput=function(J){A.clearableInput=J},A.saveInput=function(J){A.input=J},A.onFocus=function(J){var Y=A.props.onFocus;A.setState({focused:!0},A.clearPasswordValueAttribute),Y&&Y(J)},A.onBlur=function(J){var Y=A.props.onBlur;A.setState({focused:!1},A.clearPasswordValueAttribute),Y&&Y(J)},A.handleReset=function(J){A.setValue("",function(){A.focus()}),y(A.input,J,A.props.onChange)},A.renderInput=function(J,Y,z){var Q=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},oe=A.props,te=oe.className,X=oe.addonBefore,ce=oe.addonAfter,Re=oe.size,xe=oe.disabled,de=(0,m.default)(A.props,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","size","inputType","bordered"]);return f.createElement("input",(0,a.default)({autoComplete:Q.autoComplete},de,{onChange:A.handleChange,onFocus:A.onFocus,onBlur:A.onBlur,onKeyDown:A.handleKeyDown,className:(0,p.default)(g(J,z,Re||Y,xe,A.direction),(0,u.default)({},te,te&&!X&&!ce)),ref:A.saveInput}))},A.clearPasswordValueAttribute=function(){A.removePasswordTimeout=setTimeout(function(){A.input&&A.input.getAttribute("type")==="password"&&A.input.hasAttribute("value")&&A.input.removeAttribute("value")})},A.handleChange=function(J){A.setValue(J.target.value,A.clearPasswordValueAttribute),y(A.input,J,A.props.onChange)},A.handleKeyDown=function(J){var Y=A.props,z=Y.onPressEnter,Q=Y.onKeyDown;J.keyCode===13&&z&&z(J),Q&&Q(J)},A.renderComponent=function(J){var Y=J.getPrefixCls,z=J.direction,Q=J.input,oe=A.state,te=oe.value,X=oe.focused,ce=A.props,Re=ce.prefixCls,xe=ce.bordered,de=xe===void 0?!0:xe,Ce=Y("input",Re);return A.direction=z,f.createElement(v.default.Consumer,null,function(ee){return f.createElement(I.default,(0,a.default)({size:ee},A.props,{prefixCls:Ce,inputType:"input",value:b(te),element:A.renderInput(Ce,ee,de,Q),handleReset:A.handleReset,ref:A.saveClearableInput,direction:z,focused:X,triggerFocus:A.focus,bordered:de}))})};var W=typeof P.value>"u"?P.defaultValue:P.value;return A.state={value:W,focused:!1,prevValue:P.value},A}return(0,c.default)(E,[{key:"componentDidMount",value:function(){this.clearPasswordValueAttribute()}},{key:"componentDidUpdate",value:function(){}},{key:"getSnapshotBeforeUpdate",value:function(A){return(0,I.hasPrefixSuffix)(A)!==(0,I.hasPrefixSuffix)(this.props)&&(0,C.default)(this.input!==document.activeElement,"Input","When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"),null}},{key:"componentWillUnmount",value:function(){this.removePasswordTimeout&&clearTimeout(this.removePasswordTimeout)}},{key:"blur",value:function(){this.input.blur()}},{key:"setSelectionRange",value:function(A,W,J){this.input.setSelectionRange(A,W,J)}},{key:"select",value:function(){this.input.select()}},{key:"setValue",value:function(A,W){this.props.value===void 0?this.setState({value:A},W):W==null||W()}},{key:"render",value:function(){return f.createElement(h.ConfigConsumer,null,this.renderComponent)}}],[{key:"getDerivedStateFromProps",value:function(A,W){var J=W.prevValue,Y={prevValue:A.value};return(A.value!==void 0||J!==A.value)&&(Y.value=A.value),Y}}]),E}(f.Component);w.defaultProps={type:"text"};var _=w;e.default=_}(Input)),Input}var reactNode={},hasRequiredReactNode;function requireReactNode(){if(hasRequiredReactNode)return reactNode;hasRequiredReactNode=1;var e=interopRequireWildcard.exports;Object.defineProperty(reactNode,"__esModule",{value:!0}),reactNode.replaceElement=a,reactNode.cloneElement=s,reactNode.isValidElement=void 0;var o=e(React__default.default),r=o.isValidElement;reactNode.isValidElement=r;function a(c,l,d){return r(c)?o.cloneElement(c,typeof d=="function"?d(c.props||{}):d):l}function s(c,l){return a(c,c,l)}return reactNode}var hasRequiredClearableLabeledInput;function requireClearableLabeledInput(){return hasRequiredClearableLabeledInput||(hasRequiredClearableLabeledInput=1,function(e){var o=interopRequireWildcard.exports,r=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.hasPrefixSuffix=C,e.default=void 0;var a=r(requireDefineProperty()),s=r(requireClassCallCheck()),c=r(requireCreateClass()),l=r(requireInherits()),d=r(requireCreateSuper()),u=o(React__default.default),f=r(requireClassnames()),p=r(requireCloseCircleFilled()),m=requireType(),I=requireInput(),h=requireReactNode(),v=(0,m.tuple)("text","input");function C(O){return!!(O.prefix||O.suffix||O.allowClear)}function b(O){return!!(O.addonBefore||O.addonAfter)}var y=function(O){(0,l.default)(_,O);var w=(0,d.default)(_);function _(){var F;return(0,s.default)(this,_),F=w.apply(this,arguments),F.containerRef=u.createRef(),F.onInputMouseUp=function(L){var E;if(!((E=F.containerRef.current)===null||E===void 0)&&E.contains(L.target)){var P=F.props.triggerFocus;P==null||P()}},F}return(0,c.default)(_,[{key:"renderClearIcon",value:function(L){var E=this.props,P=E.allowClear,A=E.value,W=E.disabled,J=E.readOnly,Y=E.handleReset;if(!P)return null;var z=!W&&!J&&A,Q="".concat(L,"-clear-icon");return u.createElement(p.default,{onClick:Y,className:(0,f.default)((0,a.default)({},"".concat(Q,"-hidden"),!z),Q),role:"button"})}},{key:"renderSuffix",value:function(L){var E=this.props,P=E.suffix,A=E.allowClear;return P||A?u.createElement("span",{className:"".concat(L,"-suffix")},this.renderClearIcon(L),P):null}},{key:"renderLabeledIcon",value:function(L,E){var P,A=this.props,W=A.focused,J=A.value,Y=A.prefix,z=A.className,Q=A.size,oe=A.suffix,te=A.disabled,X=A.allowClear,ce=A.direction,Re=A.style,xe=A.readOnly,de=A.bordered,Ce=this.renderSuffix(L);if(!C(this.props))return(0,h.cloneElement)(E,{value:J});var ee=Y?u.createElement("span",{className:"".concat(L,"-prefix")},Y):null,ue=(0,f.default)("".concat(L,"-affix-wrapper"),(P={},(0,a.default)(P,"".concat(L,"-affix-wrapper-focused"),W),(0,a.default)(P,"".concat(L,"-affix-wrapper-disabled"),te),(0,a.default)(P,"".concat(L,"-affix-wrapper-sm"),Q==="small"),(0,a.default)(P,"".concat(L,"-affix-wrapper-lg"),Q==="large"),(0,a.default)(P,"".concat(L,"-affix-wrapper-input-with-clear-btn"),oe&&X&&J),(0,a.default)(P,"".concat(L,"-affix-wrapper-rtl"),ce==="rtl"),(0,a.default)(P,"".concat(L,"-affix-wrapper-readonly"),xe),(0,a.default)(P,"".concat(L,"-affix-wrapper-borderless"),!de),(0,a.default)(P,"".concat(z),!b(this.props)&&z),P));return u.createElement("span",{ref:this.containerRef,className:ue,style:Re,onMouseUp:this.onInputMouseUp},ee,(0,h.cloneElement)(E,{style:null,value:J,className:(0,I.getInputClassName)(L,de,Q,te)}),Ce)}},{key:"renderInputWithLabel",value:function(L,E){var P,A=this.props,W=A.addonBefore,J=A.addonAfter,Y=A.style,z=A.size,Q=A.className,oe=A.direction;if(!b(this.props))return E;var te="".concat(L,"-group"),X="".concat(te,"-addon"),ce=W?u.createElement("span",{className:X},W):null,Re=J?u.createElement("span",{className:X},J):null,xe=(0,f.default)("".concat(L,"-wrapper"),te,(0,a.default)({},"".concat(te,"-rtl"),oe==="rtl")),de=(0,f.default)("".concat(L,"-group-wrapper"),(P={},(0,a.default)(P,"".concat(L,"-group-wrapper-sm"),z==="small"),(0,a.default)(P,"".concat(L,"-group-wrapper-lg"),z==="large"),(0,a.default)(P,"".concat(L,"-group-wrapper-rtl"),oe==="rtl"),P),Q);return u.createElement("span",{className:de,style:Y},u.createElement("span",{className:xe},ce,(0,h.cloneElement)(E,{style:null}),Re))}},{key:"renderTextAreaWithClearIcon",value:function(L,E){var P,A=this.props,W=A.value,J=A.allowClear,Y=A.className,z=A.style,Q=A.direction,oe=A.bordered;if(!J)return(0,h.cloneElement)(E,{value:W});var te=(0,f.default)("".concat(L,"-affix-wrapper"),"".concat(L,"-affix-wrapper-textarea-with-clear-btn"),(P={},(0,a.default)(P,"".concat(L,"-affix-wrapper-rtl"),Q==="rtl"),(0,a.default)(P,"".concat(L,"-affix-wrapper-borderless"),!oe),(0,a.default)(P,"".concat(Y),!b(this.props)&&Y),P));return u.createElement("span",{className:te,style:z},(0,h.cloneElement)(E,{style:null,value:W}),this.renderClearIcon(L))}},{key:"render",value:function(){var L=this.props,E=L.prefixCls,P=L.inputType,A=L.element;return P===v[0]?this.renderTextAreaWithClearIcon(E,A):this.renderInputWithLabel(E,this.renderLabeledIcon(E,A))}}]),_}(u.Component),g=y;e.default=g}(ClearableLabeledInput)),ClearableLabeledInput}(function(e){var o=interopRequireWildcard.exports,r=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=r(_typeof$2.exports),s=r(requireToConsumableArray()),c=r(require_extends()),l=r(requireDefineProperty()),d=r(requireSlicedToArray()),u=o(React__default.default),f=r(require$$8),p=r(requireOmit()),m=r(requireClassnames()),I=r(requireUseMergedState()),h=r(requireClearableLabeledInput()),v=requireConfigProvider(),C=requireInput(),b=r(requireSizeContext()),y=function(w,_){var F={};for(var L in w)Object.prototype.hasOwnProperty.call(w,L)&&_.indexOf(L)<0&&(F[L]=w[L]);if(w!=null&&typeof Object.getOwnPropertySymbols=="function")for(var E=0,L=Object.getOwnPropertySymbols(w);E<L.length;E++)_.indexOf(L[E])<0&&Object.prototype.propertyIsEnumerable.call(w,L[E])&&(F[L[E]]=w[L[E]]);return F},g=u.forwardRef(function(w,_){var F,L=w.prefixCls,E=w.bordered,P=E===void 0?!0:E,A=w.showCount,W=A===void 0?!1:A,J=w.maxLength,Y=w.className,z=w.style,Q=w.size,oe=y(w,["prefixCls","bordered","showCount","maxLength","className","style","size"]),te=u.useContext(v.ConfigContext),X=te.getPrefixCls,ce=te.direction,Re=u.useContext(b.default),xe=u.useRef(null),de=u.useRef(null),Ce=(0,I.default)(oe.defaultValue,{value:oe.value}),ee=(0,d.default)(Ce,2),ue=ee[0],N=ee[1],U=u.useRef(oe.value);u.useEffect(function(){(oe.value!==void 0||U.current!==oe.value)&&(N(oe.value),U.current=oe.value)},[oe.value,U.current]);var re=function(Tt,Ot){oe.value===void 0&&(N(Tt),Ot==null||Ot())},Te=function(Tt){re(Tt.target.value),(0,C.resolveOnChange)(xe.current,Tt,oe.onChange)},Fe=function(Tt){re("",function(){var Ot;(Ot=xe.current)===null||Ot===void 0||Ot.focus()}),(0,C.resolveOnChange)(xe.current,Tt,oe.onChange)},M=X("input",L);u.useImperativeHandle(_,function(){var yt;return{resizableTextArea:(yt=xe.current)===null||yt===void 0?void 0:yt.resizableTextArea,focus:function(Ot){var $t,Vt;(0,C.triggerFocus)((Vt=($t=xe.current)===null||$t===void 0?void 0:$t.resizableTextArea)===null||Vt===void 0?void 0:Vt.textArea,Ot)},blur:function(){var Ot;return(Ot=xe.current)===null||Ot===void 0?void 0:Ot.blur()}}});var j=u.createElement(f.default,(0,c.default)({},(0,p.default)(oe,["allowClear"]),{maxLength:J,className:(0,m.default)((F={},(0,l.default)(F,"".concat(M,"-borderless"),!P),(0,l.default)(F,Y,Y&&!W),(0,l.default)(F,"".concat(M,"-sm"),Re==="small"||Q==="small"),(0,l.default)(F,"".concat(M,"-lg"),Re==="large"||Q==="large"),F)),style:W?void 0:z,prefixCls:M,onChange:Te,ref:xe})),we=(0,C.fixControlledValue)(ue),je=Number(J)>0;we=je?(0,s.default)(we).slice(0,J).join(""):we;var tt=u.createElement(h.default,(0,c.default)({},oe,{prefixCls:M,direction:ce,inputType:"text",value:we,element:j,handleReset:Fe,ref:de,bordered:P}));if(W){var Ne=Math.min(we.length,J!=null?J:1/0),Ge="";return(0,a.default)(W)==="object"?Ge=W.formatter({count:Ne,maxLength:J}):Ge="".concat(Ne).concat(je?" / ".concat(J):""),u.createElement("div",{className:(0,m.default)("".concat(M,"-textarea"),(0,l.default)({},"".concat(M,"-textarea-rtl"),ce==="rtl"),"".concat(M,"-textarea-show-count"),Y),style:z,"data-count":Ge},tt)}return tt}),O=g;e.default=O})(TextArea$2);const Jt=getDefaultExportFromCjs(TextArea$2),{error:error$2,warning:warning$1}=antd.Modal,showDialog$8=e=>{let o,r,a;if(typeof e=="string"&&e.indexOf(" -- ")!==-1&&e.indexOf(`
|
|
85
|
+
`;utils$1.iconStyles=b;var y=function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:b,w=(0,c.useContext)(u.default),_=w.csp;(0,c.useEffect)(function(){(0,d.updateCSS)(O,"@ant-design-icons",{prepend:!0,csp:_})},[])};return utils$1.useInsertStyles=y,utils$1}var hasRequiredIconBase;function requireIconBase(){if(hasRequiredIconBase)return IconBase;hasRequiredIconBase=1;var e=interopRequireDefault.exports;Object.defineProperty(IconBase,"__esModule",{value:!0}),IconBase.default=void 0;var o=e(requireObjectWithoutProperties()),r=e(requireObjectSpread2()),a=requireUtils(),s=["icon","className","onClick","style","primaryColor","secondaryColor"],c={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function l(p){var m=p.primaryColor,I=p.secondaryColor;c.primaryColor=m,c.secondaryColor=I||(0,a.getSecondaryColor)(m),c.calculated=!!I}function d(){return(0,r.default)({},c)}var u=function(m){var I=m.icon,h=m.className,g=m.onClick,C=m.style,b=m.primaryColor,y=m.secondaryColor,v=(0,o.default)(m,s),O=c;if(b&&(O={primaryColor:b,secondaryColor:y||(0,a.getSecondaryColor)(b)}),(0,a.useInsertStyles)(),(0,a.warning)((0,a.isIconDefinition)(I),"icon should be icon definiton, but got ".concat(I)),!(0,a.isIconDefinition)(I))return null;var w=I;return w&&typeof w.icon=="function"&&(w=(0,r.default)((0,r.default)({},w),{},{icon:w.icon(O.primaryColor,O.secondaryColor)})),(0,a.generate)(w.icon,"svg-".concat(w.name),(0,r.default)({className:h,onClick:g,style:C,"data-icon":w.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},v))};u.displayName="IconReact",u.getTwoToneColors=d,u.setTwoToneColors=l;var f=u;return IconBase.default=f,IconBase}var twoTonePrimaryColor={},hasRequiredTwoTonePrimaryColor;function requireTwoTonePrimaryColor(){if(hasRequiredTwoTonePrimaryColor)return twoTonePrimaryColor;hasRequiredTwoTonePrimaryColor=1;var e=interopRequireDefault.exports;Object.defineProperty(twoTonePrimaryColor,"__esModule",{value:!0}),twoTonePrimaryColor.setTwoToneColor=s,twoTonePrimaryColor.getTwoToneColor=c;var o=e(requireSlicedToArray()),r=e(requireIconBase()),a=requireUtils();function s(l){var d=(0,a.normalizeTwoToneColors)(l),u=(0,o.default)(d,2),f=u[0],p=u[1];return r.default.setTwoToneColors({primaryColor:f,secondaryColor:p})}function c(){var l=r.default.getTwoToneColors();return l.calculated?[l.primaryColor,l.secondaryColor]:l.primaryColor}return twoTonePrimaryColor}var hasRequiredAntdIcon;function requireAntdIcon(){if(hasRequiredAntdIcon)return AntdIcon;hasRequiredAntdIcon=1;var e=interopRequireDefault.exports,o=interopRequireWildcard.exports;Object.defineProperty(AntdIcon,"__esModule",{value:!0}),AntdIcon.default=void 0;var r=e(requireObjectSpread2()),a=e(requireSlicedToArray()),s=e(requireDefineProperty()),c=e(requireObjectWithoutProperties()),l=o(React__default.default),d=e(requireClassnames()),u=e(requireContext$2()),f=e(requireIconBase()),p=requireTwoTonePrimaryColor(),m=requireUtils(),I=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];(0,p.setTwoToneColor)("#1890ff");var h=l.forwardRef(function(C,b){var y,v=C.className,O=C.icon,w=C.spin,_=C.rotate,F=C.tabIndex,L=C.onClick,E=C.twoToneColor,P=(0,c.default)(C,I),A=l.useContext(u.default),W=A.prefixCls,J=W===void 0?"anticon":W,z=(0,d.default)(J,(y={},(0,s.default)(y,"".concat(J,"-").concat(O.name),!!O.name),(0,s.default)(y,"".concat(J,"-spin"),!!w||O.name==="loading"),y),v),Y=F;Y===void 0&&L&&(Y=-1);var Q=_?{msTransform:"rotate(".concat(_,"deg)"),transform:"rotate(".concat(_,"deg)")}:void 0,oe=(0,m.normalizeTwoToneColors)(E),ee=(0,a.default)(oe,2),X=ee[0],ue=ee[1];return l.createElement("span",(0,r.default)((0,r.default)({role:"img","aria-label":O.name},P),{},{ref:b,tabIndex:Y,onClick:L,className:z}),l.createElement(f.default,{icon:O,primaryColor:X,secondaryColor:ue,style:Q}))});h.displayName="AntdIcon",h.getTwoToneColor=p.getTwoToneColor,h.setTwoToneColor=p.setTwoToneColor;var g=h;return AntdIcon.default=g,AntdIcon}var hasRequiredCloseCircleFilled$1;function requireCloseCircleFilled$1(){if(hasRequiredCloseCircleFilled$1)return CloseCircleFilled$1;hasRequiredCloseCircleFilled$1=1;var e=interopRequireWildcard.exports,o=interopRequireDefault.exports;Object.defineProperty(CloseCircleFilled$1,"__esModule",{value:!0}),CloseCircleFilled$1.default=void 0;var r=o(requireObjectSpread2()),a=e(React__default.default),s=o(requireCloseCircleFilled$2()),c=o(requireAntdIcon()),l=function(f,p){return a.createElement(c.default,(0,r.default)((0,r.default)({},f),{},{ref:p,icon:s.default}))};l.displayName="CloseCircleFilled";var d=a.forwardRef(l);return CloseCircleFilled$1.default=d,CloseCircleFilled$1}var hasRequiredCloseCircleFilled;function requireCloseCircleFilled(){return hasRequiredCloseCircleFilled||(hasRequiredCloseCircleFilled=1,function(e,o){Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var r=a(requireCloseCircleFilled$1());function a(c){return c&&c.__esModule?c:{default:c}}var s=r;o.default=s,e.exports=s}(CloseCircleFilled$2,CloseCircleFilled$2.exports)),CloseCircleFilled$2.exports}var type$2={},hasRequiredType;function requireType(){if(hasRequiredType)return type$2;hasRequiredType=1,Object.defineProperty(type$2,"__esModule",{value:!0}),type$2.tupleNum=type$2.tuple=void 0;var e=function(){for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];return s};type$2.tuple=e;var o=function(){for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];return s};return type$2.tupleNum=o,type$2}var Input={},configProvider={};function _objectWithoutPropertiesLoose(e,o){if(e==null)return{};var r={},a=Object.keys(e),s,c;for(c=0;c<a.length;c++)s=a[c],!(o.indexOf(s)>=0)&&(r[s]=e[s]);return r}function _objectWithoutProperties(e,o){if(e==null)return{};var r=_objectWithoutPropertiesLoose(e,o),a,s;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(s=0;s<c.length;s++)a=c[s],!(o.indexOf(a)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,a)||(r[a]=e[a]))}return r}function _arrayLikeToArray(e,o){(o==null||o>e.length)&&(o=e.length);for(var r=0,a=new Array(o);r<o;r++)a[r]=e[r];return a}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _iterableToArray(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function _unsupportedIterableToArray(e,o){if(!!e){if(typeof e=="string")return _arrayLikeToArray(e,o);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _arrayLikeToArray(e,o)}}function _nonIterableSpread(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
86
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}var HOOK_MARK="RC_FORM_INTERNAL_HOOKS",warningFunc=function(){warningOnce(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Context=React__namespace.createContext({getFieldValue:warningFunc,getFieldsValue:warningFunc,getFieldError:warningFunc,getFieldsError:warningFunc,isFieldsTouched:warningFunc,isFieldTouched:warningFunc,isFieldValidating:warningFunc,isFieldsValidating:warningFunc,resetFields:warningFunc,setFields:warningFunc,setFieldsValue:warningFunc,validateFields:warningFunc,submit:warningFunc,getInternalHooks:function(){return warningFunc(),{dispatch:warningFunc,initEntityValue:warningFunc,registerField:warningFunc,useSubscribe:warningFunc,setInitialValues:warningFunc,setCallbacks:warningFunc,getFields:warningFunc,setValidateMessages:warningFunc,setPreserve:warningFunc}}});function toArray$2(e){return e==null?[]:Array.isArray(e)?e:[e]}var regeneratorRuntime$1={exports:{}},hasRequiredRegeneratorRuntime;function requireRegeneratorRuntime(){return hasRequiredRegeneratorRuntime||(hasRequiredRegeneratorRuntime=1,function(e){var o=_typeof$2.exports.default;function r(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e.exports=r=function(){return a},e.exports.__esModule=!0,e.exports.default=e.exports;var a={},s=Object.prototype,c=s.hasOwnProperty,l=typeof Symbol=="function"?Symbol:{},d=l.iterator||"@@iterator",u=l.asyncIterator||"@@asyncIterator",f=l.toStringTag||"@@toStringTag";function p(z,Y,Q){return Object.defineProperty(z,Y,{value:Q,enumerable:!0,configurable:!0,writable:!0}),z[Y]}try{p({},"")}catch{p=function(Q,oe,ee){return Q[oe]=ee}}function m(z,Y,Q,oe){var ee=Y&&Y.prototype instanceof g?Y:g,X=Object.create(ee.prototype),ue=new A(oe||[]);return X._invoke=function(Re,xe,ce){var Ce="suspendedStart";return function(te,de){if(Ce==="executing")throw new Error("Generator is already running");if(Ce==="completed"){if(te==="throw")throw de;return J()}for(ce.method=te,ce.arg=de;;){var N=ce.delegate;if(N){var U=L(N,ce);if(U){if(U===h)continue;return U}}if(ce.method==="next")ce.sent=ce._sent=ce.arg;else if(ce.method==="throw"){if(Ce==="suspendedStart")throw Ce="completed",ce.arg;ce.dispatchException(ce.arg)}else ce.method==="return"&&ce.abrupt("return",ce.arg);Ce="executing";var re=I(Re,xe,ce);if(re.type==="normal"){if(Ce=ce.done?"completed":"suspendedYield",re.arg===h)continue;return{value:re.arg,done:ce.done}}re.type==="throw"&&(Ce="completed",ce.method="throw",ce.arg=re.arg)}}}(z,Q,ue),X}function I(z,Y,Q){try{return{type:"normal",arg:z.call(Y,Q)}}catch(oe){return{type:"throw",arg:oe}}}a.wrap=m;var h={};function g(){}function C(){}function b(){}var y={};p(y,d,function(){return this});var v=Object.getPrototypeOf,O=v&&v(v(W([])));O&&O!==s&&c.call(O,d)&&(y=O);var w=b.prototype=g.prototype=Object.create(y);function _(z){["next","throw","return"].forEach(function(Y){p(z,Y,function(Q){return this._invoke(Y,Q)})})}function F(z,Y){function Q(ee,X,ue,Re){var xe=I(z[ee],z,X);if(xe.type!=="throw"){var ce=xe.arg,Ce=ce.value;return Ce&&o(Ce)=="object"&&c.call(Ce,"__await")?Y.resolve(Ce.__await).then(function(te){Q("next",te,ue,Re)},function(te){Q("throw",te,ue,Re)}):Y.resolve(Ce).then(function(te){ce.value=te,ue(ce)},function(te){return Q("throw",te,ue,Re)})}Re(xe.arg)}var oe;this._invoke=function(ee,X){function ue(){return new Y(function(Re,xe){Q(ee,X,Re,xe)})}return oe=oe?oe.then(ue,ue):ue()}}function L(z,Y){var Q=z.iterator[Y.method];if(Q===void 0){if(Y.delegate=null,Y.method==="throw"){if(z.iterator.return&&(Y.method="return",Y.arg=void 0,L(z,Y),Y.method==="throw"))return h;Y.method="throw",Y.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var oe=I(Q,z.iterator,Y.arg);if(oe.type==="throw")return Y.method="throw",Y.arg=oe.arg,Y.delegate=null,h;var ee=oe.arg;return ee?ee.done?(Y[z.resultName]=ee.value,Y.next=z.nextLoc,Y.method!=="return"&&(Y.method="next",Y.arg=void 0),Y.delegate=null,h):ee:(Y.method="throw",Y.arg=new TypeError("iterator result is not an object"),Y.delegate=null,h)}function E(z){var Y={tryLoc:z[0]};1 in z&&(Y.catchLoc=z[1]),2 in z&&(Y.finallyLoc=z[2],Y.afterLoc=z[3]),this.tryEntries.push(Y)}function P(z){var Y=z.completion||{};Y.type="normal",delete Y.arg,z.completion=Y}function A(z){this.tryEntries=[{tryLoc:"root"}],z.forEach(E,this),this.reset(!0)}function W(z){if(z){var Y=z[d];if(Y)return Y.call(z);if(typeof z.next=="function")return z;if(!isNaN(z.length)){var Q=-1,oe=function ee(){for(;++Q<z.length;)if(c.call(z,Q))return ee.value=z[Q],ee.done=!1,ee;return ee.value=void 0,ee.done=!0,ee};return oe.next=oe}}return{next:J}}function J(){return{value:void 0,done:!0}}return C.prototype=b,p(w,"constructor",b),p(b,"constructor",C),C.displayName=p(b,f,"GeneratorFunction"),a.isGeneratorFunction=function(z){var Y=typeof z=="function"&&z.constructor;return!!Y&&(Y===C||(Y.displayName||Y.name)==="GeneratorFunction")},a.mark=function(z){return Object.setPrototypeOf?Object.setPrototypeOf(z,b):(z.__proto__=b,p(z,f,"GeneratorFunction")),z.prototype=Object.create(w),z},a.awrap=function(z){return{__await:z}},_(F.prototype),p(F.prototype,u,function(){return this}),a.AsyncIterator=F,a.async=function(z,Y,Q,oe,ee){ee===void 0&&(ee=Promise);var X=new F(m(z,Y,Q,oe),ee);return a.isGeneratorFunction(Y)?X:X.next().then(function(ue){return ue.done?ue.value:X.next()})},_(w),p(w,f,"Generator"),p(w,d,function(){return this}),p(w,"toString",function(){return"[object Generator]"}),a.keys=function(z){var Y=[];for(var Q in z)Y.push(Q);return Y.reverse(),function oe(){for(;Y.length;){var ee=Y.pop();if(ee in z)return oe.value=ee,oe.done=!1,oe}return oe.done=!0,oe}},a.values=W,A.prototype={constructor:A,reset:function(Y){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(P),!Y)for(var Q in this)Q.charAt(0)==="t"&&c.call(this,Q)&&!isNaN(+Q.slice(1))&&(this[Q]=void 0)},stop:function(){this.done=!0;var Y=this.tryEntries[0].completion;if(Y.type==="throw")throw Y.arg;return this.rval},dispatchException:function(Y){if(this.done)throw Y;var Q=this;function oe(ce,Ce){return ue.type="throw",ue.arg=Y,Q.next=ce,Ce&&(Q.method="next",Q.arg=void 0),!!Ce}for(var ee=this.tryEntries.length-1;ee>=0;--ee){var X=this.tryEntries[ee],ue=X.completion;if(X.tryLoc==="root")return oe("end");if(X.tryLoc<=this.prev){var Re=c.call(X,"catchLoc"),xe=c.call(X,"finallyLoc");if(Re&&xe){if(this.prev<X.catchLoc)return oe(X.catchLoc,!0);if(this.prev<X.finallyLoc)return oe(X.finallyLoc)}else if(Re){if(this.prev<X.catchLoc)return oe(X.catchLoc,!0)}else{if(!xe)throw new Error("try statement without catch or finally");if(this.prev<X.finallyLoc)return oe(X.finallyLoc)}}}},abrupt:function(Y,Q){for(var oe=this.tryEntries.length-1;oe>=0;--oe){var ee=this.tryEntries[oe];if(ee.tryLoc<=this.prev&&c.call(ee,"finallyLoc")&&this.prev<ee.finallyLoc){var X=ee;break}}X&&(Y==="break"||Y==="continue")&&X.tryLoc<=Q&&Q<=X.finallyLoc&&(X=null);var ue=X?X.completion:{};return ue.type=Y,ue.arg=Q,X?(this.method="next",this.next=X.finallyLoc,h):this.complete(ue)},complete:function(Y,Q){if(Y.type==="throw")throw Y.arg;return Y.type==="break"||Y.type==="continue"?this.next=Y.arg:Y.type==="return"?(this.rval=this.arg=Y.arg,this.method="return",this.next="end"):Y.type==="normal"&&Q&&(this.next=Q),h},finish:function(Y){for(var Q=this.tryEntries.length-1;Q>=0;--Q){var oe=this.tryEntries[Q];if(oe.finallyLoc===Y)return this.complete(oe.completion,oe.afterLoc),P(oe),h}},catch:function(Y){for(var Q=this.tryEntries.length-1;Q>=0;--Q){var oe=this.tryEntries[Q];if(oe.tryLoc===Y){var ee=oe.completion;if(ee.type==="throw"){var X=ee.arg;P(oe)}return X}}throw new Error("illegal catch attempt")},delegateYield:function(Y,Q,oe){return this.delegate={iterator:W(Y),resultName:Q,nextLoc:oe},this.method==="next"&&(this.arg=void 0),h}},a}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(regeneratorRuntime$1)),regeneratorRuntime$1.exports}var regenerator,hasRequiredRegenerator;function requireRegenerator(){if(hasRequiredRegenerator)return regenerator;hasRequiredRegenerator=1;var e=requireRegeneratorRuntime()();regenerator=e;try{regeneratorRuntime=e}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}return regenerator}var regeneratorExports=requireRegenerator();function asyncGeneratorStep(e,o,r,a,s,c,l){try{var d=e[c](l),u=d.value}catch(f){r(f);return}d.done?o(u):Promise.resolve(u).then(a,s)}function _asyncToGenerator(e){return function(){var o=this,r=arguments;return new Promise(function(a,s){var c=e.apply(o,r);function l(u){asyncGeneratorStep(c,a,s,l,d,"next",u)}function d(u){asyncGeneratorStep(c,a,s,l,d,"throw",u)}l(void 0)})}}function _extends(){return _extends=Object.assign||function(e){for(var o=1;o<arguments.length;o++){var r=arguments[o];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},_extends.apply(this,arguments)}function _inheritsLoose$1(e,o){e.prototype=Object.create(o.prototype),e.prototype.constructor=e,e.__proto__=o}function _getPrototypeOf(e){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},_getPrototypeOf(e)}function _setPrototypeOf(e,o){return _setPrototypeOf=Object.setPrototypeOf||function(a,s){return a.__proto__=s,a},_setPrototypeOf(e,o)}function _isNativeReflectConstruct(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function _construct(e,o,r){return _isNativeReflectConstruct()?_construct=Reflect.construct:_construct=function(s,c,l){var d=[null];d.push.apply(d,c);var u=Function.bind.apply(s,d),f=new u;return l&&_setPrototypeOf(f,l.prototype),f},_construct.apply(null,arguments)}function _isNativeFunction(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function _wrapNativeSuper(e){var o=typeof Map=="function"?new Map:void 0;return _wrapNativeSuper=function(a){if(a===null||!_isNativeFunction(a))return a;if(typeof a!="function")throw new TypeError("Super expression must either be null or a function");if(typeof o<"u"){if(o.has(a))return o.get(a);o.set(a,s)}function s(){return _construct(a,arguments,_getPrototypeOf(this).constructor)}return s.prototype=Object.create(a.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(s,a)},_wrapNativeSuper(e)}var formatRegExp=/%[sdj%]/g,warning$3=function(){};typeof process<"u"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof document<"u"&&(warning$3=function(o,r){typeof console<"u"&&console.warn&&r.every(function(a){return typeof a=="string"})&&console.warn(o,r)});function convertFieldsError(e){if(!e||!e.length)return null;var o={};return e.forEach(function(r){var a=r.field;o[a]=o[a]||[],o[a].push(r)}),o}function format$1(){for(var e=arguments.length,o=new Array(e),r=0;r<e;r++)o[r]=arguments[r];var a=1,s=o[0],c=o.length;if(typeof s=="function")return s.apply(null,o.slice(1));if(typeof s=="string"){var l=String(s).replace(formatRegExp,function(d){if(d==="%%")return"%";if(a>=c)return d;switch(d){case"%s":return String(o[a++]);case"%d":return Number(o[a++]);case"%j":try{return JSON.stringify(o[a++])}catch{return"[Circular]"}break;default:return d}});return l}return s}function isNativeStringType(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function isEmptyValue(e,o){return!!(e==null||o==="array"&&Array.isArray(e)&&!e.length||isNativeStringType(o)&&typeof e=="string"&&!e)}function asyncParallelArray(e,o,r){var a=[],s=0,c=e.length;function l(d){a.push.apply(a,d),s++,s===c&&r(a)}e.forEach(function(d){o(d,l)})}function asyncSerialArray(e,o,r){var a=0,s=e.length;function c(l){if(l&&l.length){r(l);return}var d=a;a=a+1,d<s?o(e[d],c):r([])}c([])}function flattenObjArr(e){var o=[];return Object.keys(e).forEach(function(r){o.push.apply(o,e[r])}),o}var AsyncValidationError=function(e){_inheritsLoose$1(o,e);function o(r,a){var s;return s=e.call(this,"Async Validation Error")||this,s.errors=r,s.fields=a,s}return o}(_wrapNativeSuper(Error));function asyncMap(e,o,r,a){if(o.first){var s=new Promise(function(m,I){var h=function(b){return a(b),b.length?I(new AsyncValidationError(b,convertFieldsError(b))):m()},g=flattenObjArr(e);asyncSerialArray(g,r,h)});return s.catch(function(m){return m}),s}var c=o.firstFields||[];c===!0&&(c=Object.keys(e));var l=Object.keys(e),d=l.length,u=0,f=[],p=new Promise(function(m,I){var h=function(C){if(f.push.apply(f,C),u++,u===d)return a(f),f.length?I(new AsyncValidationError(f,convertFieldsError(f))):m()};l.length||(a(f),m()),l.forEach(function(g){var C=e[g];c.indexOf(g)!==-1?asyncSerialArray(C,r,h):asyncParallelArray(C,r,h)})});return p.catch(function(m){return m}),p}function complementError(e){return function(o){return o&&o.message?(o.field=o.field||e.fullField,o):{message:typeof o=="function"?o():o,field:o.field||e.fullField}}}function deepMerge(e,o){if(o){for(var r in o)if(o.hasOwnProperty(r)){var a=o[r];typeof a=="object"&&typeof e[r]=="object"?e[r]=_extends(_extends({},e[r]),a):e[r]=a}}return e}function required(e,o,r,a,s,c){e.required&&(!r.hasOwnProperty(e.field)||isEmptyValue(o,c||e.type))&&a.push(format$1(s.messages.required,e.fullField))}function whitespace(e,o,r,a,s){(/^\s+$/.test(o)||o==="")&&a.push(format$1(s.messages.whitespace,e.fullField))}var pattern={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},types$2={integer:function(o){return types$2.number(o)&&parseInt(o,10)===o},float:function(o){return types$2.number(o)&&!types$2.integer(o)},array:function(o){return Array.isArray(o)},regexp:function(o){if(o instanceof RegExp)return!0;try{return!!new RegExp(o)}catch{return!1}},date:function(o){return typeof o.getTime=="function"&&typeof o.getMonth=="function"&&typeof o.getYear=="function"&&!isNaN(o.getTime())},number:function(o){return isNaN(o)?!1:typeof o=="number"},object:function(o){return typeof o=="object"&&!types$2.array(o)},method:function(o){return typeof o=="function"},email:function(o){return typeof o=="string"&&!!o.match(pattern.email)&&o.length<255},url:function(o){return typeof o=="string"&&!!o.match(pattern.url)},hex:function(o){return typeof o=="string"&&!!o.match(pattern.hex)}};function type(e,o,r,a,s){if(e.required&&o===void 0){required(e,o,r,a,s);return}var c=["integer","float","array","regexp","object","method","email","number","date","url","hex"],l=e.type;c.indexOf(l)>-1?types$2[l](o)||a.push(format$1(s.messages.types[l],e.fullField,e.type)):l&&typeof o!==e.type&&a.push(format$1(s.messages.types[l],e.fullField,e.type))}function range(e,o,r,a,s){var c=typeof e.len=="number",l=typeof e.min=="number",d=typeof e.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,f=o,p=null,m=typeof o=="number",I=typeof o=="string",h=Array.isArray(o);if(m?p="number":I?p="string":h&&(p="array"),!p)return!1;h&&(f=o.length),I&&(f=o.replace(u,"_").length),c?f!==e.len&&a.push(format$1(s.messages[p].len,e.fullField,e.len)):l&&!d&&f<e.min?a.push(format$1(s.messages[p].min,e.fullField,e.min)):d&&!l&&f>e.max?a.push(format$1(s.messages[p].max,e.fullField,e.max)):l&&d&&(f<e.min||f>e.max)&&a.push(format$1(s.messages[p].range,e.fullField,e.min,e.max))}var ENUM="enum";function enumerable(e,o,r,a,s){e[ENUM]=Array.isArray(e[ENUM])?e[ENUM]:[],e[ENUM].indexOf(o)===-1&&a.push(format$1(s.messages[ENUM],e.fullField,e[ENUM].join(", ")))}function pattern$1(e,o,r,a,s){if(e.pattern){if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(o)||a.push(format$1(s.messages.pattern.mismatch,e.fullField,o,e.pattern));else if(typeof e.pattern=="string"){var c=new RegExp(e.pattern);c.test(o)||a.push(format$1(s.messages.pattern.mismatch,e.fullField,o,e.pattern))}}}var rules={required,whitespace,type,range,enum:enumerable,pattern:pattern$1};function string(e,o,r,a,s){var c=[],l=e.required||!e.required&&a.hasOwnProperty(e.field);if(l){if(isEmptyValue(o,"string")&&!e.required)return r();rules.required(e,o,a,c,s,"string"),isEmptyValue(o,"string")||(rules.type(e,o,a,c,s),rules.range(e,o,a,c,s),rules.pattern(e,o,a,c,s),e.whitespace===!0&&rules.whitespace(e,o,a,c,s))}r(c)}function method(e,o,r,a,s){var c=[],l=e.required||!e.required&&a.hasOwnProperty(e.field);if(l){if(isEmptyValue(o)&&!e.required)return r();rules.required(e,o,a,c,s),o!==void 0&&rules.type(e,o,a,c,s)}r(c)}function number(e,o,r,a,s){var c=[],l=e.required||!e.required&&a.hasOwnProperty(e.field);if(l){if(o===""&&(o=void 0),isEmptyValue(o)&&!e.required)return r();rules.required(e,o,a,c,s),o!==void 0&&(rules.type(e,o,a,c,s),rules.range(e,o,a,c,s))}r(c)}function _boolean(e,o,r,a,s){var c=[],l=e.required||!e.required&&a.hasOwnProperty(e.field);if(l){if(isEmptyValue(o)&&!e.required)return r();rules.required(e,o,a,c,s),o!==void 0&&rules.type(e,o,a,c,s)}r(c)}function regexp(e,o,r,a,s){var c=[],l=e.required||!e.required&&a.hasOwnProperty(e.field);if(l){if(isEmptyValue(o)&&!e.required)return r();rules.required(e,o,a,c,s),isEmptyValue(o)||rules.type(e,o,a,c,s)}r(c)}function integer(e,o,r,a,s){var c=[],l=e.required||!e.required&&a.hasOwnProperty(e.field);if(l){if(isEmptyValue(o)&&!e.required)return r();rules.required(e,o,a,c,s),o!==void 0&&(rules.type(e,o,a,c,s),rules.range(e,o,a,c,s))}r(c)}function floatFn(e,o,r,a,s){var c=[],l=e.required||!e.required&&a.hasOwnProperty(e.field);if(l){if(isEmptyValue(o)&&!e.required)return r();rules.required(e,o,a,c,s),o!==void 0&&(rules.type(e,o,a,c,s),rules.range(e,o,a,c,s))}r(c)}function array(e,o,r,a,s){var c=[],l=e.required||!e.required&&a.hasOwnProperty(e.field);if(l){if(o==null&&!e.required)return r();rules.required(e,o,a,c,s,"array"),o!=null&&(rules.type(e,o,a,c,s),rules.range(e,o,a,c,s))}r(c)}function object(e,o,r,a,s){var c=[],l=e.required||!e.required&&a.hasOwnProperty(e.field);if(l){if(isEmptyValue(o)&&!e.required)return r();rules.required(e,o,a,c,s),o!==void 0&&rules.type(e,o,a,c,s)}r(c)}var ENUM$1="enum";function enumerable$1(e,o,r,a,s){var c=[],l=e.required||!e.required&&a.hasOwnProperty(e.field);if(l){if(isEmptyValue(o)&&!e.required)return r();rules.required(e,o,a,c,s),o!==void 0&&rules[ENUM$1](e,o,a,c,s)}r(c)}function pattern$2(e,o,r,a,s){var c=[],l=e.required||!e.required&&a.hasOwnProperty(e.field);if(l){if(isEmptyValue(o,"string")&&!e.required)return r();rules.required(e,o,a,c,s),isEmptyValue(o,"string")||rules.pattern(e,o,a,c,s)}r(c)}function date(e,o,r,a,s){var c=[],l=e.required||!e.required&&a.hasOwnProperty(e.field);if(l){if(isEmptyValue(o,"date")&&!e.required)return r();if(rules.required(e,o,a,c,s),!isEmptyValue(o,"date")){var d;o instanceof Date?d=o:d=new Date(o),rules.type(e,d,a,c,s),d&&rules.range(e,d.getTime(),a,c,s)}}r(c)}function required$1(e,o,r,a,s){var c=[],l=Array.isArray(o)?"array":typeof o;rules.required(e,o,a,c,s,l),r(c)}function type$1(e,o,r,a,s){var c=e.type,l=[],d=e.required||!e.required&&a.hasOwnProperty(e.field);if(d){if(isEmptyValue(o,c)&&!e.required)return r();rules.required(e,o,a,l,s,c),isEmptyValue(o,c)||rules.type(e,o,a,l,s)}r(l)}function any(e,o,r,a,s){var c=[],l=e.required||!e.required&&a.hasOwnProperty(e.field);if(l){if(isEmptyValue(o)&&!e.required)return r();rules.required(e,o,a,c,s)}r(c)}var validators={string,method,number,boolean:_boolean,regexp,integer,float:floatFn,array,object,enum:enumerable$1,pattern:pattern$2,date,url:type$1,hex:type$1,email:type$1,required:required$1,any};function newMessages(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var o=JSON.parse(JSON.stringify(this));return o.clone=this.clone,o}}}var messages=newMessages();function Schema(e){this.rules=null,this._messages=messages,this.define(e)}Schema.prototype={messages:function(o){return o&&(this._messages=deepMerge(newMessages(),o)),this._messages},define:function(o){if(!o)throw new Error("Cannot configure a schema with no rules");if(typeof o!="object"||Array.isArray(o))throw new Error("Rules must be an object");this.rules={};var r,a;for(r in o)o.hasOwnProperty(r)&&(a=o[r],this.rules[r]=Array.isArray(a)?a:[a])},validate:function(o,r,a){var s=this;r===void 0&&(r={}),a===void 0&&(a=function(){});var c=o,l=r,d=a;if(typeof l=="function"&&(d=l,l={}),!this.rules||Object.keys(this.rules).length===0)return d&&d(),Promise.resolve();function u(C){var b,y=[],v={};function O(w){if(Array.isArray(w)){var _;y=(_=y).concat.apply(_,w)}else y.push(w)}for(b=0;b<C.length;b++)O(C[b]);y.length?v=convertFieldsError(y):(y=null,v=null),d(y,v)}if(l.messages){var f=this.messages();f===messages&&(f=newMessages()),deepMerge(f,l.messages),l.messages=f}else l.messages=this.messages();var p,m,I={},h=l.keys||Object.keys(this.rules);h.forEach(function(C){p=s.rules[C],m=c[C],p.forEach(function(b){var y=b;typeof y.transform=="function"&&(c===o&&(c=_extends({},c)),m=c[C]=y.transform(m)),typeof y=="function"?y={validator:y}:y=_extends({},y),y.validator=s.getValidationMethod(y),y.field=C,y.fullField=y.fullField||C,y.type=s.getType(y),y.validator&&(I[C]=I[C]||[],I[C].push({rule:y,value:m,source:c,field:C}))})});var g={};return asyncMap(I,l,function(C,b){var y=C.rule,v=(y.type==="object"||y.type==="array")&&(typeof y.fields=="object"||typeof y.defaultField=="object");v=v&&(y.required||!y.required&&C.value),y.field=C.field;function O(F,L){return _extends(_extends({},L),{},{fullField:y.fullField+"."+F})}function w(F){F===void 0&&(F=[]);var L=F;if(Array.isArray(L)||(L=[L]),!l.suppressWarning&&L.length&&Schema.warning("async-validator:",L),L.length&&y.message!==void 0&&(L=[].concat(y.message)),L=L.map(complementError(y)),l.first&&L.length)return g[y.field]=1,b(L);if(!v)b(L);else{if(y.required&&!C.value)return y.message!==void 0?L=[].concat(y.message).map(complementError(y)):l.error&&(L=[l.error(y,format$1(l.messages.required,y.field))]),b(L);var E={};if(y.defaultField)for(var P in C.value)C.value.hasOwnProperty(P)&&(E[P]=y.defaultField);E=_extends(_extends({},E),C.rule.fields);for(var A in E)if(E.hasOwnProperty(A)){var W=Array.isArray(E[A])?E[A]:[E[A]];E[A]=W.map(O.bind(null,A))}var J=new Schema(E);J.messages(l.messages),C.rule.options&&(C.rule.options.messages=l.messages,C.rule.options.error=l.error),J.validate(C.value,C.rule.options||l,function(z){var Y=[];L&&L.length&&Y.push.apply(Y,L),z&&z.length&&Y.push.apply(Y,z),b(Y.length?Y:null)})}}var _;y.asyncValidator?_=y.asyncValidator(y,C.value,w,C.source,l):y.validator&&(_=y.validator(y,C.value,w,C.source,l),_===!0?w():_===!1?w(y.message||y.field+" fails"):_ instanceof Array?w(_):_ instanceof Error&&w(_.message)),_&&_.then&&_.then(function(){return w()},function(F){return w(F)})},function(C){u(C)})},getType:function(o){if(o.type===void 0&&o.pattern instanceof RegExp&&(o.type="pattern"),typeof o.validator!="function"&&o.type&&!validators.hasOwnProperty(o.type))throw new Error(format$1("Unknown rule type %s",o.type));return o.type||"string"},getValidationMethod:function(o){if(typeof o.validator=="function")return o.validator;var r=Object.keys(o),a=r.indexOf("message");return a!==-1&&r.splice(a,1),r.length===1&&r[0]==="required"?validators.required:validators[this.getType(o)]||!1}},Schema.register=function(o,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");validators[o]=r},Schema.warning=warning$3,Schema.messages=messages,Schema.validators=validators;function get$3(e,o){for(var r=e,a=0;a<o.length;a+=1){if(r==null)return;r=r[o[a]]}return r}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _nonIterableRest(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
87
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _toArray(e){return _arrayWithHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableRest()}function ownKeys$1(e,o){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);o&&(a=a.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,a)}return r}function _objectSpread(e){for(var o=1;o<arguments.length;o++){var r=arguments[o]!=null?arguments[o]:{};o%2?ownKeys$1(Object(r),!0).forEach(function(a){_defineProperty$1(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys$1(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function internalSet(e,o,r,a){if(!o.length)return r;var s=_toArray(o),c=s[0],l=s.slice(1),d;return!e&&typeof c=="number"?d=[]:Array.isArray(e)?d=_toConsumableArray(e):d=_objectSpread({},e),a&&r===void 0&&l.length===1?delete d[c][l[0]]:d[c]=internalSet(d[c],l,r,a),d}function set$2(e,o,r){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return o.length&&a&&r===void 0&&!get$3(e,o.slice(0,-1))?e:internalSet(e,o,r,a)}function getNamePath(e){return toArray$2(e)}function getValue(e,o){var r=get$3(e,o);return r}function setValue(e,o,r){var a=set$2(e,o,r);return a}function cloneByNamePathList(e,o){var r={};return o.forEach(function(a){var s=getValue(e,a);r=setValue(r,a,s)}),r}function containsNamePath(e,o){return e&&e.some(function(r){return matchNamePath(r,o)})}function isObject$4(e){return _typeof$1(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function internalSetValues(e,o){var r=Array.isArray(e)?_toConsumableArray(e):_objectSpread2$1({},e);return o&&Object.keys(o).forEach(function(a){var s=r[a],c=o[a],l=isObject$4(s)&&isObject$4(c);r[a]=l?internalSetValues(s,c||{}):c}),r}function setValues(e){for(var o=arguments.length,r=new Array(o>1?o-1:0),a=1;a<o;a++)r[a-1]=arguments[a];return r.reduce(function(s,c){return internalSetValues(s,c)},e)}function matchNamePath(e,o){return!e||!o||e.length!==o.length?!1:e.every(function(r,a){return o[a]===r})}function isSimilar(e,o){if(e===o)return!0;if(!e&&o||e&&!o||!e||!o||_typeof$1(e)!=="object"||_typeof$1(o)!=="object")return!1;var r=Object.keys(e),a=Object.keys(o),s=new Set([].concat(_toConsumableArray(r),_toConsumableArray(a)));return _toConsumableArray(s).every(function(c){var l=e[c],d=o[c];return typeof l=="function"&&typeof d=="function"?!0:l===d})}function defaultGetValueFromEvent(e){var o=arguments.length<=1?void 0:arguments[1];return o&&o.target&&e in o.target?o.target[e]:o}function move(e,o,r){var a=e.length;if(o<0||o>=a||r<0||r>=a)return e;var s=e[o],c=o-r;return c>0?[].concat(_toConsumableArray(e.slice(0,r)),[s],_toConsumableArray(e.slice(r,o)),_toConsumableArray(e.slice(o+1,a))):c<0?[].concat(_toConsumableArray(e.slice(0,o)),_toConsumableArray(e.slice(o+1,r+1)),[s],_toConsumableArray(e.slice(r+1,a))):e}var typeTemplate="'${name}' is not a valid ${type}",defaultValidateMessages={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:typeTemplate,method:typeTemplate,array:typeTemplate,object:typeTemplate,number:typeTemplate,date:typeTemplate,boolean:typeTemplate,integer:typeTemplate,float:typeTemplate,regexp:typeTemplate,email:typeTemplate,url:typeTemplate,hex:typeTemplate},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},AsyncValidator=Schema;function replaceMessage(e,o){return e.replace(/\$\{\w+\}/g,function(r){var a=r.slice(2,-1);return o[a]})}function convertMessages(e,o,r,a){var s=_objectSpread2$1(_objectSpread2$1({},r),{},{name:o,enum:(r.enum||[]).join(", ")}),c=function(u,f){return function(){return replaceMessage(u,_objectSpread2$1(_objectSpread2$1({},s),f))}};function l(d){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(d).forEach(function(f){var p=d[f];typeof p=="string"?u[f]=c(p,a):p&&_typeof$1(p)==="object"?(u[f]={},l(p,u[f])):u[f]=p}),u}return l(setValues({},defaultValidateMessages,e))}function validateRule(e,o,r,a,s){return _validateRule.apply(this,arguments)}function _validateRule(){return _validateRule=_asyncToGenerator(regeneratorExports.mark(function e(o,r,a,s,c){var l,d,u,f,p,m;return regeneratorExports.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return l=_objectSpread2$1({},a),d=null,l&&l.type==="array"&&l.defaultField&&(d=l.defaultField,delete l.defaultField),u=new AsyncValidator(_defineProperty$1({},o,[l])),f=convertMessages(s.validateMessages,o,l,c),u.messages(f),p=[],h.prev=7,h.next=10,Promise.resolve(u.validate(_defineProperty$1({},o,r),_objectSpread2$1({},s)));case 10:h.next=15;break;case 12:h.prev=12,h.t0=h.catch(7),h.t0.errors?p=h.t0.errors.map(function(g,C){var b=g.message;return React__namespace.isValidElement(b)?React__namespace.cloneElement(b,{key:"error_".concat(C)}):b}):(console.error(h.t0),p=[f.default()]);case 15:if(!(!p.length&&d)){h.next=20;break}return h.next=18,Promise.all(r.map(function(g,C){return validateRule("".concat(o,".").concat(C),g,d,s,c)}));case 18:return m=h.sent,h.abrupt("return",m.reduce(function(g,C){return[].concat(_toConsumableArray(g),_toConsumableArray(C))},[]));case 20:return h.abrupt("return",p);case 21:case"end":return h.stop()}},e,null,[[7,12]])})),_validateRule.apply(this,arguments)}function validateRules(e,o,r,a,s,c){var l=e.join("."),d=r.map(function(p){var m=p.validator;return m?_objectSpread2$1(_objectSpread2$1({},p),{},{validator:function(h,g,C){var b=!1,y=function(){for(var w=arguments.length,_=new Array(w),F=0;F<w;F++)_[F]=arguments[F];Promise.resolve().then(function(){warningOnce(!b,"Your validator function has already return a promise. `callback` will be ignored."),b||C.apply(void 0,_)})},v=m(h,g,y);b=v&&typeof v.then=="function"&&typeof v.catch=="function",warningOnce(b,"`callback` is deprecated. Please return a promise instead."),b&&v.then(function(){C()}).catch(function(O){C(O||" ")})}}):p}),u;if(s===!0)u=new Promise(function(){var p=_asyncToGenerator(regeneratorExports.mark(function m(I,h){var g,C;return regeneratorExports.wrap(function(y){for(;;)switch(y.prev=y.next){case 0:g=0;case 1:if(!(g<d.length)){y.next=11;break}return y.next=4,validateRule(l,o,d[g],a,c);case 4:if(C=y.sent,!C.length){y.next=8;break}return h(C),y.abrupt("return");case 8:g+=1,y.next=1;break;case 11:I([]);case 12:case"end":return y.stop()}},m)}));return function(m,I){return p.apply(this,arguments)}}());else{var f=d.map(function(p){return validateRule(l,o,p,a,c)});u=(s?finishOnFirstFailed(f):finishOnAllFailed(f)).then(function(p){return p.length?Promise.reject(p):[]})}return u.catch(function(p){return p}),u}function finishOnAllFailed(e){return _finishOnAllFailed.apply(this,arguments)}function _finishOnAllFailed(){return _finishOnAllFailed=_asyncToGenerator(regeneratorExports.mark(function e(o){return regeneratorExports.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",Promise.all(o).then(function(s){var c,l=(c=[]).concat.apply(c,_toConsumableArray(s));return l}));case 1:case"end":return a.stop()}},e)})),_finishOnAllFailed.apply(this,arguments)}function finishOnFirstFailed(e){return _finishOnFirstFailed.apply(this,arguments)}function _finishOnFirstFailed(){return _finishOnFirstFailed=_asyncToGenerator(regeneratorExports.mark(function e(o){var r;return regeneratorExports.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return r=0,s.abrupt("return",new Promise(function(c){o.forEach(function(l){l.then(function(d){d.length&&c(d),r+=1,r===o.length&&c([])})})}));case 2:case"end":return s.stop()}},e)})),_finishOnFirstFailed.apply(this,arguments)}function requireUpdate(e,o,r,a,s,c){return typeof e=="function"?e(o,r,"source"in c?{source:c.source}:{}):a!==s}var Field=function(e){_inherits(r,e);var o=_createSuper(r);function r(a){var s;if(_classCallCheck(this,r),s=o.call(this,a),s.state={resetCount:0},s.cancelRegisterFunc=null,s.mounted=!1,s.touched=!1,s.dirty=!1,s.validatePromise=null,s.errors=[],s.cancelRegister=function(){var u=s.props,f=u.preserve,p=u.isListField;s.cancelRegisterFunc&&s.cancelRegisterFunc(p,f),s.cancelRegisterFunc=null},s.getNamePath=function(){var u=s.props,f=u.name,p=u.fieldContext,m=p.prefixName,I=m===void 0?[]:m;return f!==void 0?[].concat(_toConsumableArray(I),_toConsumableArray(f)):[]},s.getRules=function(){var u=s.props,f=u.rules,p=f===void 0?[]:f,m=u.fieldContext;return p.map(function(I){return typeof I=="function"?I(m):I})},s.refresh=function(){!s.mounted||s.setState(function(u){var f=u.resetCount;return{resetCount:f+1}})},s.onStoreChange=function(u,f,p){var m=s.props,I=m.shouldUpdate,h=m.dependencies,g=h===void 0?[]:h,C=m.onReset,b=p.store,y=s.getNamePath(),v=s.getValue(u),O=s.getValue(b),w=f&&containsNamePath(f,y);switch(p.type==="valueUpdate"&&p.source==="external"&&v!==O&&(s.touched=!0,s.dirty=!0,s.validatePromise=null,s.errors=[]),p.type){case"reset":if(!f||w){s.touched=!1,s.dirty=!1,s.validatePromise=null,s.errors=[],C&&C(),s.refresh();return}break;case"setField":{if(w){var _=p.data;"touched"in _&&(s.touched=_.touched),"validating"in _&&!("originRCField"in _)&&(s.validatePromise=_.validating?Promise.resolve([]):null),"errors"in _&&(s.errors=_.errors||[]),s.dirty=!0,s.reRender();return}if(I&&!y.length&&requireUpdate(I,u,b,v,O,p)){s.reRender();return}break}case"dependenciesUpdate":{var F=g.map(getNamePath);if(F.some(function(L){return containsNamePath(p.relatedFields,L)})){s.reRender();return}break}default:if(w||(!g.length||y.length||I)&&requireUpdate(I,u,b,v,O,p)){s.reRender();return}break}I===!0&&s.reRender()},s.validateRules=function(u){var f=s.getNamePath(),p=s.getValue(),m=Promise.resolve().then(function(){if(!s.mounted)return[];var I=s.props,h=I.validateFirst,g=h===void 0?!1:h,C=I.messageVariables,b=u||{},y=b.triggerName,v=s.getRules();y&&(v=v.filter(function(w){var _=w.validateTrigger;if(!_)return!0;var F=toArray$2(_);return F.includes(y)}));var O=validateRules(f,p,v,u,g,C);return O.catch(function(w){return w}).then(function(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];s.validatePromise===m&&(s.validatePromise=null,s.errors=w,s.reRender())}),O});return s.validatePromise=m,s.dirty=!0,s.errors=[],s.reRender(),m},s.isFieldValidating=function(){return!!s.validatePromise},s.isFieldTouched=function(){return s.touched},s.isFieldDirty=function(){return s.dirty},s.getErrors=function(){return s.errors},s.isListField=function(){return s.props.isListField},s.isList=function(){return s.props.isList},s.isPreserve=function(){return s.props.preserve},s.getMeta=function(){s.prevValidating=s.isFieldValidating();var u={touched:s.isFieldTouched(),validating:s.prevValidating,errors:s.errors,name:s.getNamePath()};return u},s.getOnlyChild=function(u){if(typeof u=="function"){var f=s.getMeta();return _objectSpread2$1(_objectSpread2$1({},s.getOnlyChild(u(s.getControlled(),f,s.props.fieldContext))),{},{isFunction:!0})}var p=toArray$3(u);return p.length!==1||!React__namespace.isValidElement(p[0])?{child:p,isFunction:!1}:{child:p[0],isFunction:!1}},s.getValue=function(u){var f=s.props.fieldContext.getFieldsValue,p=s.getNamePath();return getValue(u||f(!0),p)},s.getControlled=function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},f=s.props,p=f.trigger,m=f.validateTrigger,I=f.getValueFromEvent,h=f.normalize,g=f.valuePropName,C=f.getValueProps,b=f.fieldContext,y=m!==void 0?m:b.validateTrigger,v=s.getNamePath(),O=b.getInternalHooks,w=b.getFieldsValue,_=O(HOOK_MARK),F=_.dispatch,L=s.getValue(),E=C||function(J){return _defineProperty$1({},g,J)},P=u[p],A=_objectSpread2$1(_objectSpread2$1({},u),E(L));A[p]=function(){s.touched=!0,s.dirty=!0;for(var J,z=arguments.length,Y=new Array(z),Q=0;Q<z;Q++)Y[Q]=arguments[Q];I?J=I.apply(void 0,Y):J=defaultGetValueFromEvent.apply(void 0,[g].concat(Y)),h&&(J=h(J,L,w(!0))),F({type:"updateValue",namePath:v,value:J}),P&&P.apply(void 0,Y)};var W=toArray$2(y||[]);return W.forEach(function(J){var z=A[J];A[J]=function(){z&&z.apply(void 0,arguments);var Y=s.props.rules;Y&&Y.length&&F({type:"validateField",namePath:v,triggerName:J})}}),A},a.fieldContext){var c=a.fieldContext.getInternalHooks,l=c(HOOK_MARK),d=l.initEntityValue;d(_assertThisInitialized(s))}return s}return _createClass(r,[{key:"componentDidMount",value:function(){var s=this.props,c=s.shouldUpdate,l=s.fieldContext;if(this.mounted=!0,l){var d=l.getInternalHooks,u=d(HOOK_MARK),f=u.registerField;this.cancelRegisterFunc=f(this)}c===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.mounted=!1}},{key:"reRender",value:function(){!this.mounted||this.forceUpdate()}},{key:"render",value:function(){this.state.resetCount;var s=this.props.children,c=this.getOnlyChild(s),l=c.child,d=c.isFunction,u;return d?u=l:React__namespace.isValidElement(l)?u=React__namespace.cloneElement(l,this.getControlled(l.props)):(warningOnce(!l,"`children` of Field is not validate ReactElement."),u=l),jsxRuntime.jsx(jsxRuntime.Fragment,{children:u})}}]),r}(React__namespace.Component);Field.contextType=Context,Field.defaultProps={trigger:"onChange",valuePropName:"value"};function WrapperField(e){var o=e.name,r=_objectWithoutProperties(e,["name"]),a=React__namespace.useContext(Context),s=o!==void 0?getNamePath(o):void 0,c="keep";return r.isListField||(c="_".concat((s||[]).join("_"))),process.env.NODE_ENV!=="production"&&warningOnce(r.preserve!==!1||!r.isListField,"`preserve` should not apply on Form.List fields."),jsxRuntime.jsx(Field,{name:s,...r,fieldContext:a},c)}var List=function(o){var r=o.name,a=o.initialValue,s=o.children,c=o.rules,l=o.validateTrigger,d=React__namespace.useContext(Context),u=React__namespace.useRef({keys:[],id:0}),f=u.current;if(typeof s!="function")return warningOnce(!1,"Form.List only accepts function as children."),null;var p=getNamePath(d.prefixName)||[],m=[].concat(_toConsumableArray(p),_toConsumableArray(getNamePath(r))),I=function(g,C,b){var y=b.source;return y==="internal"?!1:g!==C};return jsxRuntime.jsx(Context.Provider,{value:_objectSpread2$1(_objectSpread2$1({},d),{},{prefixName:m}),children:jsxRuntime.jsx(WrapperField,{name:[],shouldUpdate:I,rules:c,validateTrigger:l,initialValue:a,isList:!0,children:function(h,g){var C=h.value,b=C===void 0?[]:C,y=h.onChange,v=d.getFieldValue,O=function(){var L=v(m||[]);return L||[]},w={add:function(L,E){var P=O();E>=0&&E<=P.length?(f.keys=[].concat(_toConsumableArray(f.keys.slice(0,E)),[f.id],_toConsumableArray(f.keys.slice(E))),y([].concat(_toConsumableArray(P.slice(0,E)),[L],_toConsumableArray(P.slice(E))))):(process.env.NODE_ENV!=="production"&&(E<0||E>P.length)&&warningOnce(!1,"The second parameter of the add function should be a valid positive number."),f.keys=[].concat(_toConsumableArray(f.keys),[f.id]),y([].concat(_toConsumableArray(P),[L]))),f.id+=1},remove:function(L){var E=O(),P=new Set(Array.isArray(L)?L:[L]);P.size<=0||(f.keys=f.keys.filter(function(A,W){return!P.has(W)}),y(E.filter(function(A,W){return!P.has(W)})))},move:function(L,E){if(L!==E){var P=O();L<0||L>=P.length||E<0||E>=P.length||(f.keys=move(f.keys,L,E),y(move(P,L,E)))}}},_=b||[];return Array.isArray(_)||(_=[],process.env.NODE_ENV!=="production"&&warningOnce(!1,"Current value of '".concat(m.join(" > "),"' is not an array type."))),s(_.map(function(F,L){var E=f.keys[L];return E===void 0&&(f.keys[L]=f.id,E=f.keys[L],f.id+=1),{name:L,key:E,isListField:!0}}),w,g)}})})};function _iterableToArrayLimit(e,o){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var a=[],s=!0,c=!1,l,d;try{for(r=r.call(e);!(s=(l=r.next()).done)&&(a.push(l.value),!(o&&a.length===o));s=!0);}catch(u){c=!0,d=u}finally{try{!s&&r.return!=null&&r.return()}finally{if(c)throw d}}return a}}function _slicedToArray(e,o){return _arrayWithHoles(e)||_iterableToArrayLimit(e,o)||_unsupportedIterableToArray(e,o)||_nonIterableRest()}function allPromiseFinish(e){var o=!1,r=e.length,a=[];return e.length?new Promise(function(s,c){e.forEach(function(l,d){l.catch(function(u){return o=!0,u}).then(function(u){r-=1,a[d]=u,!(r>0)&&(o&&c(a),s(a))})})}):Promise.resolve([])}var SPLIT="__@field_split__";function normalize(e){return e.map(function(o){return"".concat(_typeof$1(o),":").concat(o)}).join(SPLIT)}var NameMap=function(){function e(){_classCallCheck(this,e),this.kvs=new Map}return _createClass(e,[{key:"set",value:function(r,a){this.kvs.set(normalize(r),a)}},{key:"get",value:function(r){return this.kvs.get(normalize(r))}},{key:"update",value:function(r,a){var s=this.get(r),c=a(s);c?this.set(r,c):this.delete(r)}},{key:"delete",value:function(r){this.kvs.delete(normalize(r))}},{key:"map",value:function(r){return _toConsumableArray(this.kvs.entries()).map(function(a){var s=_slicedToArray(a,2),c=s[0],l=s[1],d=c.split(SPLIT);return r({key:d.map(function(u){var f=u.match(/^([^:]*):(.*)$/),p=_slicedToArray(f,3),m=p[1],I=p[2];return m==="number"?Number(I):I}),value:l})})}},{key:"toJSON",value:function(){var r={};return this.map(function(a){var s=a.key,c=a.value;return r[s.join(".")]=c,null}),r}}]),e}(),FormStore=function e(o){var r=this;_classCallCheck(this,e),this.formHooked=!1,this.subscribable=!0,this.store={},this.fieldEntities=[],this.initialValues={},this.callbacks={},this.validateMessages=null,this.preserve=null,this.lastValidatePromise=null,this.getForm=function(){return{getFieldValue:r.getFieldValue,getFieldsValue:r.getFieldsValue,getFieldError:r.getFieldError,getFieldsError:r.getFieldsError,isFieldsTouched:r.isFieldsTouched,isFieldTouched:r.isFieldTouched,isFieldValidating:r.isFieldValidating,isFieldsValidating:r.isFieldsValidating,resetFields:r.resetFields,setFields:r.setFields,setFieldsValue:r.setFieldsValue,validateFields:r.validateFields,submit:r.submit,getInternalHooks:r.getInternalHooks}},this.getInternalHooks=function(a){return a===HOOK_MARK?(r.formHooked=!0,{dispatch:r.dispatch,initEntityValue:r.initEntityValue,registerField:r.registerField,useSubscribe:r.useSubscribe,setInitialValues:r.setInitialValues,setCallbacks:r.setCallbacks,setValidateMessages:r.setValidateMessages,getFields:r.getFields,setPreserve:r.setPreserve}):(warningOnce(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)},this.useSubscribe=function(a){r.subscribable=a},this.setInitialValues=function(a,s){r.initialValues=a||{},s&&(r.store=setValues({},a,r.store))},this.getInitialValue=function(a){return getValue(r.initialValues,a)},this.setCallbacks=function(a){r.callbacks=a},this.setValidateMessages=function(a){r.validateMessages=a},this.setPreserve=function(a){r.preserve=a},this.timeoutId=null,this.warningUnhooked=function(){process.env.NODE_ENV!=="production"&&!r.timeoutId&&typeof window<"u"&&(r.timeoutId=window.setTimeout(function(){r.timeoutId=null,r.formHooked||warningOnce(!1,"Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?")}))},this.getFieldEntities=function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return a?r.fieldEntities.filter(function(s){return s.getNamePath().length}):r.fieldEntities},this.getFieldsMap=function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,s=new NameMap;return r.getFieldEntities(a).forEach(function(c){var l=c.getNamePath();s.set(l,c)}),s},this.getFieldEntitiesForNamePathList=function(a){if(!a)return r.getFieldEntities(!0);var s=r.getFieldsMap(!0);return a.map(function(c){var l=getNamePath(c);return s.get(l)||{INVALIDATE_NAME_PATH:getNamePath(c)}})},this.getFieldsValue=function(a,s){if(r.warningUnhooked(),a===!0&&!s)return r.store;var c=r.getFieldEntitiesForNamePathList(Array.isArray(a)?a:null),l=[];return c.forEach(function(d){var u,f="INVALIDATE_NAME_PATH"in d?d.INVALIDATE_NAME_PATH:d.getNamePath();if(!(!a&&((u=d.isListField)===null||u===void 0?void 0:u.call(d))))if(!s)l.push(f);else{var p="getMeta"in d?d.getMeta():null;s(p)&&l.push(f)}}),cloneByNamePathList(r.store,l.map(getNamePath))},this.getFieldValue=function(a){r.warningUnhooked();var s=getNamePath(a);return getValue(r.store,s)},this.getFieldsError=function(a){r.warningUnhooked();var s=r.getFieldEntitiesForNamePathList(a);return s.map(function(c,l){return c&&!("INVALIDATE_NAME_PATH"in c)?{name:c.getNamePath(),errors:c.getErrors()}:{name:getNamePath(a[l]),errors:[]}})},this.getFieldError=function(a){r.warningUnhooked();var s=getNamePath(a),c=r.getFieldsError([s])[0];return c.errors},this.isFieldsTouched=function(){r.warningUnhooked();for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];var l=s[0],d=s[1],u,f=!1;s.length===0?u=null:s.length===1?Array.isArray(l)?(u=l.map(getNamePath),f=!1):(u=null,f=l):(u=l.map(getNamePath),f=d);var p=r.getFieldEntities(!0),m=function(b){return b.isFieldTouched()};if(!u)return f?p.every(m):p.some(m);var I=new NameMap;u.forEach(function(C){I.set(C,[])}),p.forEach(function(C){var b=C.getNamePath();u.forEach(function(y){y.every(function(v,O){return b[O]===v})&&I.update(y,function(v){return[].concat(_toConsumableArray(v),[C])})})});var h=function(b){return b.some(m)},g=I.map(function(C){var b=C.value;return b});return f?g.every(h):g.some(h)},this.isFieldTouched=function(a){return r.warningUnhooked(),r.isFieldsTouched([a])},this.isFieldsValidating=function(a){r.warningUnhooked();var s=r.getFieldEntities();if(!a)return s.some(function(l){return l.isFieldValidating()});var c=a.map(getNamePath);return s.some(function(l){var d=l.getNamePath();return containsNamePath(c,d)&&l.isFieldValidating()})},this.isFieldValidating=function(a){return r.warningUnhooked(),r.isFieldsValidating([a])},this.resetWithFieldInitialValue=function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=new NameMap,c=r.getFieldEntities(!0);c.forEach(function(u){var f=u.props.initialValue,p=u.getNamePath();if(f!==void 0){var m=s.get(p)||new Set;m.add({entity:u,value:f}),s.set(p,m)}});var l=function(f){f.forEach(function(p){var m=p.props.initialValue;if(m!==void 0){var I=p.getNamePath(),h=r.getInitialValue(I);if(h!==void 0)warningOnce(!1,"Form already set 'initialValues' with path '".concat(I.join("."),"'. Field can not overwrite it."));else{var g=s.get(I);if(g&&g.size>1)warningOnce(!1,"Multiple Field with path '".concat(I.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(g){var C=r.getFieldValue(I);(!a.skipExist||C===void 0)&&(r.store=setValue(r.store,I,_toConsumableArray(g)[0].value))}}}})},d;a.entities?d=a.entities:a.namePathList?(d=[],a.namePathList.forEach(function(u){var f=s.get(u);if(f){var p;(p=d).push.apply(p,_toConsumableArray(_toConsumableArray(f).map(function(m){return m.entity})))}})):d=c,l(d)},this.resetFields=function(a){r.warningUnhooked();var s=r.store;if(!a){r.store=setValues({},r.initialValues),r.resetWithFieldInitialValue(),r.notifyObservers(s,null,{type:"reset"});return}var c=a.map(getNamePath);c.forEach(function(l){var d=r.getInitialValue(l);r.store=setValue(r.store,l,d)}),r.resetWithFieldInitialValue({namePathList:c}),r.notifyObservers(s,c,{type:"reset"})},this.setFields=function(a){r.warningUnhooked();var s=r.store;a.forEach(function(c){var l=c.name;c.errors;var d=_objectWithoutProperties(c,["name","errors"]),u=getNamePath(l);"value"in d&&(r.store=setValue(r.store,u,d.value)),r.notifyObservers(s,[u],{type:"setField",data:c})})},this.getFields=function(){var a=r.getFieldEntities(!0),s=a.map(function(c){var l=c.getNamePath(),d=c.getMeta(),u=_objectSpread2$1(_objectSpread2$1({},d),{},{name:l,value:r.getFieldValue(l)});return Object.defineProperty(u,"originRCField",{value:!0}),u});return s},this.initEntityValue=function(a){var s=a.props.initialValue;if(s!==void 0){var c=a.getNamePath(),l=getValue(r.store,c);l===void 0&&(r.store=setValue(r.store,c,s))}},this.registerField=function(a){if(r.fieldEntities.push(a),a.props.initialValue!==void 0){var s=r.store;r.resetWithFieldInitialValue({entities:[a],skipExist:!0}),r.notifyObservers(s,[a.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(c,l){r.fieldEntities=r.fieldEntities.filter(function(p){return p!==a});var d=l!==void 0?l:r.preserve;if(d===!1&&!c){var u=a.getNamePath(),f=getValue(r.initialValues,u);u.length&&r.getFieldValue(u)!==f&&r.fieldEntities.every(function(p){return!matchNamePath(p.getNamePath(),u)})&&(r.store=setValue(r.store,u,f))}}},this.dispatch=function(a){switch(a.type){case"updateValue":{var s=a.namePath,c=a.value;r.updateValue(s,c);break}case"validateField":{var l=a.namePath,d=a.triggerName;r.validateFields([l],{triggerName:d});break}}},this.notifyObservers=function(a,s,c){if(r.subscribable){var l=_objectSpread2$1(_objectSpread2$1({},c),{},{store:r.getFieldsValue(!0)});r.getFieldEntities().forEach(function(d){var u=d.onStoreChange;u(a,s,l)})}else r.forceRootUpdate()},this.updateValue=function(a,s){var c=getNamePath(a),l=r.store;r.store=setValue(r.store,c,s),r.notifyObservers(l,[c],{type:"valueUpdate",source:"internal"});var d=r.getDependencyChildrenFields(c);d.length&&r.validateFields(d),r.notifyObservers(l,d,{type:"dependenciesUpdate",relatedFields:[c].concat(_toConsumableArray(d))});var u=r.callbacks.onValuesChange;if(u){var f=cloneByNamePathList(r.store,[c]);u(f,r.getFieldsValue())}r.triggerOnFieldsChange([c].concat(_toConsumableArray(d)))},this.setFieldsValue=function(a){r.warningUnhooked();var s=r.store;a&&(r.store=setValues(r.store,a)),r.notifyObservers(s,null,{type:"valueUpdate",source:"external"})},this.getDependencyChildrenFields=function(a){var s=new Set,c=[],l=new NameMap;r.getFieldEntities().forEach(function(u){var f=u.props.dependencies;(f||[]).forEach(function(p){var m=getNamePath(p);l.update(m,function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return I.add(u),I})})});var d=function u(f){var p=l.get(f)||new Set;p.forEach(function(m){if(!s.has(m)){s.add(m);var I=m.getNamePath();m.isFieldDirty()&&I.length&&(c.push(I),u(I))}})};return d(a),c},this.triggerOnFieldsChange=function(a,s){var c=r.callbacks.onFieldsChange;if(c){var l=r.getFields();if(s){var d=new NameMap;s.forEach(function(f){var p=f.name,m=f.errors;d.set(p,m)}),l.forEach(function(f){f.errors=d.get(f.name)||f.errors})}var u=l.filter(function(f){var p=f.name;return containsNamePath(a,p)});c(u,l)}},this.validateFields=function(a,s){r.warningUnhooked();var c=!!a,l=c?a.map(getNamePath):[],d=[];r.getFieldEntities(!0).forEach(function(p){if(c||l.push(p.getNamePath()),(s==null?void 0:s.recursive)&&c){var m=p.getNamePath();m.every(function(g,C){return a[C]===g||a[C]===void 0})&&l.push(m)}if(!(!p.props.rules||!p.props.rules.length)){var I=p.getNamePath();if(!c||containsNamePath(l,I)){var h=p.validateRules(_objectSpread2$1({validateMessages:_objectSpread2$1(_objectSpread2$1({},defaultValidateMessages),r.validateMessages)},s));d.push(h.then(function(){return{name:I,errors:[]}}).catch(function(g){return Promise.reject({name:I,errors:g})}))}}});var u=allPromiseFinish(d);r.lastValidatePromise=u,u.catch(function(p){return p}).then(function(p){var m=p.map(function(I){var h=I.name;return h});r.notifyObservers(r.store,m,{type:"validateFinish"}),r.triggerOnFieldsChange(m,p)});var f=u.then(function(){return r.lastValidatePromise===u?Promise.resolve(r.getFieldsValue(l)):Promise.reject([])}).catch(function(p){var m=p.filter(function(I){return I&&I.errors.length});return Promise.reject({values:r.getFieldsValue(l),errorFields:m,outOfDate:r.lastValidatePromise!==u})});return f.catch(function(p){return p}),f},this.submit=function(){r.warningUnhooked(),r.validateFields().then(function(a){var s=r.callbacks.onFinish;if(s)try{s(a)}catch(c){console.error(c)}}).catch(function(a){var s=r.callbacks.onFinishFailed;s&&s(a)})},this.forceRootUpdate=o};function useForm(e){var o=React__namespace.useRef(),r=React__namespace.useState({}),a=_slicedToArray(r,2),s=a[1];if(!o.current)if(e)o.current=e;else{var c=function(){s({})},l=new FormStore(c);o.current=l.getForm()}return[o.current]}var FormContext=React__namespace.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),FormProvider=function(o){var r=o.validateMessages,a=o.onFormChange,s=o.onFormFinish,c=o.children,l=React__namespace.useContext(FormContext),d=React__namespace.useRef({});return jsxRuntime.jsx(FormContext.Provider,{value:_objectSpread2$1(_objectSpread2$1({},l),{},{validateMessages:_objectSpread2$1(_objectSpread2$1({},l.validateMessages),r),triggerFormChange:function(f,p){a&&a(f,{changedFields:p,forms:d.current}),l.triggerFormChange(f,p)},triggerFormFinish:function(f,p){s&&s(f,{values:p,forms:d.current}),l.triggerFormFinish(f,p)},registerForm:function(f,p){f&&(d.current=_objectSpread2$1(_objectSpread2$1({},d.current),{},_defineProperty$1({},f,p))),l.registerForm(f,p)},unregisterForm:function(f){var p=_objectSpread2$1({},d.current);delete p[f],d.current=p,l.unregisterForm(f)}}),children:c})},Form$2=function(o,r){var a=o.name,s=o.initialValues,c=o.fields,l=o.form,d=o.preserve,u=o.children,f=o.component,p=f===void 0?"form":f,m=o.validateMessages,I=o.validateTrigger,h=I===void 0?"onChange":I,g=o.onValuesChange,C=o.onFieldsChange,b=o.onFinish,y=o.onFinishFailed,v=_objectWithoutProperties(o,["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"]),O=React__namespace.useContext(FormContext),w=useForm(l),_=_slicedToArray(w,1),F=_[0],L=F.getInternalHooks(HOOK_MARK),E=L.useSubscribe,P=L.setInitialValues,A=L.setCallbacks,W=L.setValidateMessages,J=L.setPreserve;React__namespace.useImperativeHandle(r,function(){return F}),React__namespace.useEffect(function(){return O.registerForm(a,F),function(){O.unregisterForm(a)}},[O,F,a]),W(_objectSpread2$1(_objectSpread2$1({},O.validateMessages),m)),A({onValuesChange:g,onFieldsChange:function(xe){if(O.triggerFormChange(a,xe),C){for(var ce=arguments.length,Ce=new Array(ce>1?ce-1:0),te=1;te<ce;te++)Ce[te-1]=arguments[te];C.apply(void 0,[xe].concat(Ce))}},onFinish:function(xe){O.triggerFormFinish(a,xe),b&&b(xe)},onFinishFailed:y}),J(d);var z=React__namespace.useRef(null);P(s,!z.current),z.current||(z.current=!0);var Y=u,Q=typeof u=="function";if(Q){var oe=F.getFieldsValue(!0);Y=u(oe,F)}E(!Q);var ee=React__namespace.useRef();React__namespace.useEffect(function(){isSimilar(ee.current||[],c||[])||F.setFields(c||[]),ee.current=c},[c,F]);var X=React__namespace.useMemo(function(){return _objectSpread2$1(_objectSpread2$1({},F),{},{validateTrigger:h})},[F,h]),ue=jsxRuntime.jsx(Context.Provider,{value:X,children:Y});return p===!1?ue:jsxRuntime.jsx(p,{...v,onSubmit:function(xe){xe.preventDefault(),xe.stopPropagation(),F.submit()},children:ue})},InternalForm=React__namespace.forwardRef(Form$2),RefForm=InternalForm;RefForm.FormProvider=FormProvider,RefForm.Field=WrapperField,RefForm.List=List,RefForm.useForm=useForm;const es$2=Object.freeze(Object.defineProperty({__proto__:null,Field:WrapperField,List,useForm,FormProvider,default:RefForm},Symbol.toStringTag,{value:"Module"})),require$$5=getAugmentedNamespace(es$2);var useMemo={},hasRequiredUseMemo;function requireUseMemo(){if(hasRequiredUseMemo)return useMemo;hasRequiredUseMemo=1;var e=interopRequireWildcard.exports;Object.defineProperty(useMemo,"__esModule",{value:!0}),useMemo.default=r;var o=e(React__default.default);function r(a,s,c){var l=o.useRef({});return(!("value"in l.current)||c(l.current.condition,s))&&(l.current.value=a(),l.current.condition=s),l.current.value}return useMemo}var localeProvider={},devWarning={},warning$2={},hasRequiredWarning;function requireWarning(){if(hasRequiredWarning)return warning$2;hasRequiredWarning=1,Object.defineProperty(warning$2,"__esModule",{value:!0}),warning$2.warning=o,warning$2.note=r,warning$2.resetWarned=a,warning$2.call=s,warning$2.warningOnce=c,warning$2.noteOnce=l,warning$2.default=void 0;var e={};function o(u,f){process.env.NODE_ENV!=="production"&&!u&&console!==void 0&&console.error("Warning: ".concat(f))}function r(u,f){process.env.NODE_ENV!=="production"&&!u&&console!==void 0&&console.warn("Note: ".concat(f))}function a(){e={}}function s(u,f,p){!f&&!e[p]&&(u(!1,p),e[p]=!0)}function c(u,f){s(o,u,f)}function l(u,f){s(r,u,f)}var d=c;return warning$2.default=d,warning$2}var hasRequiredDevWarning;function requireDevWarning(){return hasRequiredDevWarning||(hasRequiredDevWarning=1,function(e){var o=interopRequireWildcard.exports;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"resetWarned",{enumerable:!0,get:function(){return r.resetWarned}}),e.default=void 0;var r=o(requireWarning()),a=function(c,l,d){(0,r.default)(c,"[antd: ".concat(l,"] ").concat(d))};e.default=a}(devWarning)),devWarning}var locale$1={},_default$1={},en_US$4={},hasRequiredEn_US$4;function requireEn_US$4(){if(hasRequiredEn_US$4)return en_US$4;hasRequiredEn_US$4=1,Object.defineProperty(en_US$4,"__esModule",{value:!0}),en_US$4.default=void 0;var e={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages"};return en_US$4.default=e,en_US$4}var en_US$3={},en_US$2={},hasRequiredEn_US$3;function requireEn_US$3(){if(hasRequiredEn_US$3)return en_US$2;hasRequiredEn_US$3=1,Object.defineProperty(en_US$2,"__esModule",{value:!0}),en_US$2.default=void 0;var e={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"Ok",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"},o=e;return en_US$2.default=o,en_US$2}var en_US$1={},hasRequiredEn_US$2;function requireEn_US$2(){return hasRequiredEn_US$2||(hasRequiredEn_US$2=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},r=o;e.default=r}(en_US$1)),en_US$1}var hasRequiredEn_US$1;function requireEn_US$1(){return hasRequiredEn_US$1||(hasRequiredEn_US$1=1,function(e){var o=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=o(require_extends()),a=o(requireEn_US$3()),s=o(requireEn_US$2()),c={lang:(0,r.default)({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},a.default),timePickerLocale:(0,r.default)({},s.default)},l=c;e.default=l}(en_US$3)),en_US$3}var en_US={},hasRequiredEn_US;function requireEn_US(){return hasRequiredEn_US||(hasRequiredEn_US=1,function(e){var o=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=o(requireEn_US$1()),a=r.default;e.default=a}(en_US)),en_US}var hasRequired_default$1;function require_default$1(){return hasRequired_default$1||(hasRequired_default$1=1,function(e){var o=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=o(requireEn_US$4()),a=o(requireEn_US$1()),s=o(requireEn_US$2()),c=o(requireEn_US()),l="${label} is not a valid ${type}",d={locale:"en",Pagination:r.default,DatePicker:a.default,TimePicker:s.default,Calendar:c.default,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No Data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:l,method:l,array:l,object:l,number:l,date:l,boolean:l,integer:l,float:l,regexp:l,email:l,url:l,hex:l},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"}},u=d;e.default=u}(_default$1)),_default$1}var hasRequiredLocale;function requireLocale(){if(hasRequiredLocale)return locale$1;hasRequiredLocale=1;var e=interopRequireDefault.exports;Object.defineProperty(locale$1,"__esModule",{value:!0}),locale$1.changeConfirmLocale=s,locale$1.getConfirmLocale=c;var o=e(require_extends()),r=e(require_default$1()),a=(0,o.default)({},r.default.Modal);function s(l){l?a=(0,o.default)((0,o.default)({},a),l):a=(0,o.default)({},r.default.Modal)}function c(){return a}return locale$1}var context$1={},hasRequiredContext$1;function requireContext$1(){return hasRequiredContext$1||(hasRequiredContext$1=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=React__default.default,r=(0,o.createContext)(void 0),a=r;e.default=a}(context$1)),context$1}var hasRequiredLocaleProvider;function requireLocaleProvider(){return hasRequiredLocaleProvider||(hasRequiredLocaleProvider=1,function(e){var o=interopRequireWildcard.exports,r=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.ANT_MARK=void 0;var a=r(require_extends()),s=r(requireClassCallCheck()),c=r(requireCreateClass()),l=r(requireInherits()),d=r(requireCreateSuper()),u=o(React__default.default),f=r(requireDevWarning()),p=requireLocale(),m=r(requireContext$1()),I="internalMark";e.ANT_MARK=I;var h=function(g){(0,l.default)(b,g);var C=(0,d.default)(b);function b(y){var v;return(0,s.default)(this,b),v=C.call(this,y),(0,p.changeConfirmLocale)(y.locale&&y.locale.Modal),(0,f.default)(y._ANT_MARK__===I,"LocaleProvider","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale"),v}return(0,c.default)(b,[{key:"componentDidUpdate",value:function(v){var O=this.props.locale;v.locale!==O&&(0,p.changeConfirmLocale)(O&&O.Modal)}},{key:"componentWillUnmount",value:function(){(0,p.changeConfirmLocale)()}},{key:"render",value:function(){var v=this.props,O=v.locale,w=v.children;return u.createElement(m.default.Provider,{value:(0,a.default)((0,a.default)({},O),{exist:!0})},w)}}]),b}(u.Component);e.default=h,h.defaultProps={locale:{}}}(localeProvider)),localeProvider}var LocaleReceiver={},_default={},hasRequired_default;function require_default(){return hasRequired_default||(hasRequired_default=1,function(e){var o=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=o(require_default$1()),a=r.default;e.default=a}(_default)),_default}var hasRequiredLocaleReceiver;function requireLocaleReceiver(){return hasRequiredLocaleReceiver||(hasRequiredLocaleReceiver=1,function(e){var o=interopRequireWildcard.exports,r=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.useLocaleReceiver=I,e.default=void 0;var a=r(require_extends()),s=r(requireClassCallCheck()),c=r(requireCreateClass()),l=r(requireInherits()),d=r(requireCreateSuper()),u=o(React__default.default),f=r(require_default()),p=r(requireContext$1()),m=function(h){(0,l.default)(C,h);var g=(0,d.default)(C);function C(){return(0,s.default)(this,C),g.apply(this,arguments)}return(0,c.default)(C,[{key:"getLocale",value:function(){var y=this.props,v=y.componentName,O=y.defaultLocale,w=O||f.default[v||"global"],_=this.context,F=v&&_?_[v]:{};return(0,a.default)((0,a.default)({},typeof w=="function"?w():w),F||{})}},{key:"getLocaleCode",value:function(){var y=this.context,v=y&&y.locale;return y&&y.exist&&!v?f.default.locale:v}},{key:"render",value:function(){return this.props.children(this.getLocale(),this.getLocaleCode(),this.context)}}]),C}(u.Component);e.default=m,m.defaultProps={componentName:"global"},m.contextType=p.default;function I(h,g){var C=u.useContext(p.default),b=u.useMemo(function(){var y=g||f.default[h||"global"],v=h&&C?C[h]:{};return(0,a.default)((0,a.default)({},typeof y=="function"?y():y),v||{})},[h,g,C]);return[b]}}(LocaleReceiver)),LocaleReceiver}var context={},renderEmpty={},empty$1={},empty={},hasRequiredEmpty$1;function requireEmpty$1(){return hasRequiredEmpty$1||(hasRequiredEmpty$1=1,function(e){var o=interopRequireWildcard.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=o(React__default.default),a=requireConfigProvider(),s=function(){var d=r.useContext(a.ConfigContext),u=d.getPrefixCls,f=u("empty-img-default");return r.createElement("svg",{className:f,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},r.createElement("g",{fill:"none",fillRule:"evenodd"},r.createElement("g",{transform:"translate(24 31.67)"},r.createElement("ellipse",{className:"".concat(f,"-ellipse"),cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),r.createElement("path",{className:"".concat(f,"-path-1"),d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z"}),r.createElement("path",{className:"".concat(f,"-path-2"),d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",transform:"translate(13.56)"}),r.createElement("path",{className:"".concat(f,"-path-3"),d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z"}),r.createElement("path",{className:"".concat(f,"-path-4"),d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z"})),r.createElement("path",{className:"".concat(f,"-path-5"),d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z"}),r.createElement("g",{className:"".concat(f,"-g"),transform:"translate(149.65 15.383)"},r.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),r.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},c=s;e.default=c}(empty)),empty}var simple={},hasRequiredSimple;function requireSimple(){return hasRequiredSimple||(hasRequiredSimple=1,function(e){var o=interopRequireWildcard.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=o(React__default.default),a=requireConfigProvider(),s=function(){var d=r.useContext(a.ConfigContext),u=d.getPrefixCls,f=u("empty-img-simple");return r.createElement("svg",{className:f,width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},r.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},r.createElement("ellipse",{className:"".concat(f,"-ellipse"),cx:"32",cy:"33",rx:"32",ry:"7"}),r.createElement("g",{className:"".concat(f,"-g"),fillRule:"nonzero"},r.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),r.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",className:"".concat(f,"-path")}))))},c=s;e.default=c}(simple)),simple}var hasRequiredEmpty;function requireEmpty(){return hasRequiredEmpty||(hasRequiredEmpty=1,function(e){var o=interopRequireWildcard.exports,r=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=r(require_extends()),s=r(requireDefineProperty()),c=o(React__default.default),l=r(requireClassnames()),d=requireConfigProvider(),u=r(requireLocaleReceiver()),f=r(requireEmpty$1()),p=r(requireSimple()),m=function(b,y){var v={};for(var O in b)Object.prototype.hasOwnProperty.call(b,O)&&y.indexOf(O)<0&&(v[O]=b[O]);if(b!=null&&typeof Object.getOwnPropertySymbols=="function")for(var w=0,O=Object.getOwnPropertySymbols(b);w<O.length;w++)y.indexOf(O[w])<0&&Object.prototype.propertyIsEnumerable.call(b,O[w])&&(v[O[w]]=b[O[w]]);return v},I=c.createElement(f.default,null),h=c.createElement(p.default,null),g=function(y){var v=y.className,O=y.prefixCls,w=y.image,_=w===void 0?I:w,F=y.description,L=y.children,E=y.imageStyle,P=m(y,["className","prefixCls","image","description","children","imageStyle"]),A=c.useContext(d.ConfigContext),W=A.getPrefixCls,J=A.direction;return c.createElement(u.default,{componentName:"Empty"},function(z){var Y,Q=W("empty",O),oe=typeof F<"u"?F:z.description,ee=typeof oe=="string"?oe:"empty",X=null;return typeof _=="string"?X=c.createElement("img",{alt:ee,src:_}):X=_,c.createElement("div",(0,a.default)({className:(0,l.default)(Q,(Y={},(0,s.default)(Y,"".concat(Q,"-normal"),_===h),(0,s.default)(Y,"".concat(Q,"-rtl"),J==="rtl"),Y),v)},P),c.createElement("div",{className:"".concat(Q,"-image"),style:E},X),oe&&c.createElement("div",{className:"".concat(Q,"-description")},oe),L&&c.createElement("div",{className:"".concat(Q,"-footer")},L))})};g.PRESENTED_IMAGE_DEFAULT=I,g.PRESENTED_IMAGE_SIMPLE=h;var C=g;e.default=C}(empty$1)),empty$1}var hasRequiredRenderEmpty;function requireRenderEmpty(){return hasRequiredRenderEmpty||(hasRequiredRenderEmpty=1,function(e){var o=interopRequireDefault.exports,r=interopRequireWildcard.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=r(React__default.default),s=o(requireEmpty()),c=requireConfigProvider(),l=function(f){return a.createElement(c.ConfigConsumer,null,function(p){var m=p.getPrefixCls,I=m("empty");switch(f){case"Table":case"List":return a.createElement(s.default,{image:s.default.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return a.createElement(s.default,{image:s.default.PRESENTED_IMAGE_SIMPLE,className:"".concat(I,"-small")});default:return a.createElement(s.default,null)}})},d=l;e.default=d}(renderEmpty)),renderEmpty}var hasRequiredContext;function requireContext(){if(hasRequiredContext)return context;hasRequiredContext=1;var e=interopRequireWildcard.exports,o=interopRequireDefault.exports;Object.defineProperty(context,"__esModule",{value:!0}),context.withConfigConsumer=u,context.ConfigConsumer=context.ConfigContext=void 0;var r=o(require_extends()),a=e(React__default.default),s=o(requireRenderEmpty()),c=function(p,m){return m||(p?"ant-".concat(p):"ant")},l=a.createContext({getPrefixCls:c,renderEmpty:s.default});context.ConfigContext=l;var d=l.Consumer;context.ConfigConsumer=d;function u(f){return function(m){var I=function(b){return a.createElement(d,null,function(y){var v=f.prefixCls,O=y.getPrefixCls,w=b.prefixCls,_=O(v,w);return a.createElement(m,(0,r.default)({},y,b,{prefixCls:_}))})},h=m.constructor,g=h&&h.displayName||m.name||"Component";return I.displayName="withConfigConsumer(".concat(g,")"),I}}return context}var SizeContext={},hasRequiredSizeContext;function requireSizeContext(){return hasRequiredSizeContext||(hasRequiredSizeContext=1,function(e){var o=interopRequireWildcard.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.SizeContextProvider=void 0;var r=o(React__default.default),a=r.createContext(void 0),s=function(d){var u=d.children,f=d.size;return r.createElement(a.Consumer,null,function(p){return r.createElement(a.Provider,{value:f||p},u)})};e.SizeContextProvider=s;var c=a;e.default=c}(SizeContext)),SizeContext}var message={};function canUseDom$1(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function makePrefixMap(e,o){var r={};return r[e.toLowerCase()]=o.toLowerCase(),r["Webkit".concat(e)]="webkit".concat(o),r["Moz".concat(e)]="moz".concat(o),r["ms".concat(e)]="MS".concat(o),r["O".concat(e)]="o".concat(o.toLowerCase()),r}function getVendorPrefixes(e,o){var r={animationend:makePrefixMap("Animation","AnimationEnd"),transitionend:makePrefixMap("Transition","TransitionEnd")};return e&&("AnimationEvent"in o||delete r.animationend.animation,"TransitionEvent"in o||delete r.transitionend.transition),r}var vendorPrefixes=getVendorPrefixes(canUseDom$1(),typeof window<"u"?window:{}),style={};if(canUseDom$1()){var _document$createEleme=document.createElement("div");style=_document$createEleme.style}var prefixedEventNames={};function getVendorPrefixedEventName(e){if(prefixedEventNames[e])return prefixedEventNames[e];var o=vendorPrefixes[e];if(o)for(var r=Object.keys(o),a=r.length,s=0;s<a;s+=1){var c=r[s];if(Object.prototype.hasOwnProperty.call(o,c)&&c in style)return prefixedEventNames[e]=o[c],prefixedEventNames[e]}return""}var internalAnimationEndName=getVendorPrefixedEventName("animationend"),internalTransitionEndName=getVendorPrefixedEventName("transitionend"),supportTransition=!!(internalAnimationEndName&&internalTransitionEndName),animationEndName=internalAnimationEndName||"animationend",transitionEndName=internalTransitionEndName||"transitionend";function getTransitionName$1(e,o){if(!e)return null;if(_typeof$1(e)==="object"){var r=o.replace(/-\w/g,function(a){return a[1].toUpperCase()});return e[r]}return"".concat(e,"-").concat(o)}var STATUS_NONE="none",STATUS_APPEAR="appear",STATUS_ENTER="enter",STATUS_LEAVE="leave",STEP_NONE="none",STEP_PREPARE="prepare",STEP_START="start",STEP_ACTIVE="active",STEP_ACTIVATED="end";function useMountStatus(e){var o=React.useRef(!1),r=React.useState(e),a=_slicedToArray(r,2),s=a[0],c=a[1];function l(d){o.current||c(d)}return React.useEffect(function(){return function(){o.current=!0}},[]),[s,l]}var useIsomorphicLayoutEffect=canUseDom$1()?React.useLayoutEffect:React.useEffect,raf$2=function(o){return+setTimeout(o,16)},caf=function(o){return clearTimeout(o)};typeof window<"u"&&"requestAnimationFrame"in window&&(raf$2=function(o){return window.requestAnimationFrame(o)},caf=function(o){return window.cancelAnimationFrame(o)});function wrapperRaf(e){return raf$2(e)}wrapperRaf.cancel=caf;const useNextFrame=function(){var e=React__namespace.useRef(null);function o(){wrapperRaf.cancel(e.current)}function r(a){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;o();var c=wrapperRaf(function(){s<=1?a({isCanceled:function(){return c!==e.current}}):r(a,s-1)});e.current=c}return React__namespace.useEffect(function(){return function(){o()}},[]),[r,o]};var STEP_QUEUE=[STEP_PREPARE,STEP_START,STEP_ACTIVE,STEP_ACTIVATED],SkipStep=!1,DoStep=!0;function isActive(e){return e===STEP_ACTIVE||e===STEP_ACTIVATED}const useStepQueue=function(e,o){var r=React__namespace.useState(STEP_NONE),a=_slicedToArray(r,2),s=a[0],c=a[1],l=useNextFrame(),d=_slicedToArray(l,2),u=d[0],f=d[1];function p(){c(STEP_PREPARE)}return useIsomorphicLayoutEffect(function(){if(s!==STEP_NONE&&s!==STEP_ACTIVATED){var m=STEP_QUEUE.indexOf(s),I=STEP_QUEUE[m+1],h=o(s);h===SkipStep?c(I):u(function(g){function C(){g.isCanceled()||c(I)}h===!0?C():Promise.resolve(h).then(C)})}},[e,s]),React__namespace.useEffect(function(){return function(){f()}},[]),[p,s]},useDomMotionEvents=function(e){var o=React.useRef(),r=React.useRef(e);r.current=e;var a=React__namespace.useCallback(function(l){r.current(l)},[]);function s(l){l&&(l.removeEventListener(transitionEndName,a),l.removeEventListener(animationEndName,a))}function c(l){o.current&&o.current!==l&&s(o.current),l&&l!==o.current&&(l.addEventListener(transitionEndName,a),l.addEventListener(animationEndName,a),o.current=l)}return React__namespace.useEffect(function(){return function(){s(o.current)}},[]),[c,s]};function useStatus(e,o,r,a){var s=a.motionEnter,c=s===void 0?!0:s,l=a.motionAppear,d=l===void 0?!0:l,u=a.motionLeave,f=u===void 0?!0:u,p=a.motionDeadline,m=a.motionLeaveImmediately,I=a.onAppearPrepare,h=a.onEnterPrepare,g=a.onLeavePrepare,C=a.onAppearStart,b=a.onEnterStart,y=a.onLeaveStart,v=a.onAppearActive,O=a.onEnterActive,w=a.onLeaveActive,_=a.onAppearEnd,F=a.onEnterEnd,L=a.onLeaveEnd,E=a.onVisibleChanged,P=useMountStatus(),A=_slicedToArray(P,2),W=A[0],J=A[1],z=useMountStatus(STATUS_NONE),Y=_slicedToArray(z,2),Q=Y[0],oe=Y[1],ee=useMountStatus(null),X=_slicedToArray(ee,2),ue=X[0],Re=X[1],xe=React.useRef(!1),ce=React.useRef(null),Ce=React.useRef(!1),te=React.useRef(null);function de(){var yt=r();return yt||te.current}var N=React.useRef(!1);function U(yt){var Tt=de();if(!(yt&&!yt.deadline&&yt.target!==Tt)){var Ot;Q===STATUS_APPEAR&&N.current?Ot=_==null?void 0:_(Tt,yt):Q===STATUS_ENTER&&N.current?Ot=F==null?void 0:F(Tt,yt):Q===STATUS_LEAVE&&N.current&&(Ot=L==null?void 0:L(Tt,yt)),Ot!==!1&&!Ce.current&&(oe(STATUS_NONE),Re(null))}}var re=useDomMotionEvents(U),Te=_slicedToArray(re,1),Fe=Te[0],M=React__namespace.useMemo(function(){var yt,Tt,Ot;switch(Q){case"appear":return yt={},_defineProperty$1(yt,STEP_PREPARE,I),_defineProperty$1(yt,STEP_START,C),_defineProperty$1(yt,STEP_ACTIVE,v),yt;case"enter":return Tt={},_defineProperty$1(Tt,STEP_PREPARE,h),_defineProperty$1(Tt,STEP_START,b),_defineProperty$1(Tt,STEP_ACTIVE,O),Tt;case"leave":return Ot={},_defineProperty$1(Ot,STEP_PREPARE,g),_defineProperty$1(Ot,STEP_START,y),_defineProperty$1(Ot,STEP_ACTIVE,w),Ot;default:return{}}},[Q]),j=useStepQueue(Q,function(yt){if(yt===STEP_PREPARE){var Tt=M[STEP_PREPARE];return Tt?Tt(de()):SkipStep}if(tt in M){var Ot;Re(((Ot=M[tt])===null||Ot===void 0?void 0:Ot.call(M,de(),null))||null)}return tt===STEP_ACTIVE&&(Fe(de()),p>0&&(clearTimeout(ce.current),ce.current=setTimeout(function(){U({deadline:!0})},p))),DoStep}),we=_slicedToArray(j,2),je=we[0],tt=we[1],Ne=isActive(tt);N.current=Ne,useIsomorphicLayoutEffect(function(){if(J(o),!!e){var yt=xe.current;xe.current=!0;var Tt;!yt&&o&&d&&(Tt=STATUS_APPEAR),yt&&o&&c&&(Tt=STATUS_ENTER),(yt&&!o&&f||!yt&&m&&!o&&f)&&(Tt=STATUS_LEAVE),Tt&&(oe(Tt),je())}},[o]),React.useEffect(function(){(Q===STATUS_APPEAR&&!d||Q===STATUS_ENTER&&!c||Q===STATUS_LEAVE&&!f)&&oe(STATUS_NONE)},[d,c,f]),React.useEffect(function(){return function(){clearTimeout(ce.current),Ce.current=!0}},[]),React.useEffect(function(){W!==void 0&&Q===STATUS_NONE&&(E==null||E(W))},[W,Q]);var Ge=ue;return M[STEP_PREPARE]&&tt===STEP_START&&(Ge=_objectSpread2$1({transition:"none"},Ge)),[Q,tt,Ge,W!=null?W:o]}var DomWrapper=function(e){_inherits(r,e);var o=_createSuper(r);function r(){return _classCallCheck(this,r),o.apply(this,arguments)}return _createClass(r,[{key:"render",value:function(){return this.props.children}}]),r}(React__namespace.Component);function genCSSMotion(e){var o=e;_typeof$1(e)==="object"&&(o=e.transitionSupport);function r(s){return!!(s.motionName&&o)}var a=React__namespace.forwardRef(function(s,c){var l=s.visible,d=l===void 0?!0:l,u=s.removeOnLeave,f=u===void 0?!0:u,p=s.forceRender,m=s.children,I=s.motionName,h=s.leavedClassName,g=s.eventProps,C=r(s),b=React.useRef(),y=React.useRef();function v(){try{return findDOMNode(b.current||y.current)}catch{return null}}var O=useStatus(C,d,v,s),w=_slicedToArray(O,4),_=w[0],F=w[1],L=w[2],E=w[3],P=React.useRef(c);P.current=c;var A=React__namespace.useCallback(function(Q){b.current=Q,fillRef(P.current,Q)},[]),W,J=_objectSpread2$1(_objectSpread2$1({},g),{},{visible:d});if(!m)W=null;else if(_===STATUS_NONE||!r(s))E?W=m(_objectSpread2$1({},J),A):f?p?W=m(_objectSpread2$1(_objectSpread2$1({},J),{},{style:{display:"none"}}),A):W=null:W=m(_objectSpread2$1(_objectSpread2$1({},J),{},{className:h}),A);else{var z,Y;F===STEP_PREPARE?Y="prepare":isActive(F)?Y="active":F===STEP_START&&(Y="start"),W=m(_objectSpread2$1(_objectSpread2$1({},J),{},{className:classnamesExports(getTransitionName$1(I,_),(z={},_defineProperty$1(z,getTransitionName$1(I,"".concat(_,"-").concat(Y)),Y),_defineProperty$1(z,I,typeof I=="string"),z)),style:L}),A)}return jsxRuntime.jsx(DomWrapper,{ref:y,children:W})});return a.displayName="CSSMotion",a}const CSSMotion=genCSSMotion(supportTransition);var STATUS_ADD="add",STATUS_KEEP="keep",STATUS_REMOVE="remove",STATUS_REMOVED="removed";function wrapKeyToObject(e){var o;return e&&_typeof$1(e)==="object"&&"key"in e?o=e:o={key:e},_objectSpread2$1(_objectSpread2$1({},o),{},{key:String(o.key)})}function parseKeys(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(wrapKeyToObject)}function diffKeys(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=[],a=0,s=o.length,c=parseKeys(e),l=parseKeys(o);c.forEach(function(f){for(var p=!1,m=a;m<s;m+=1){var I=l[m];if(I.key===f.key){a<m&&(r=r.concat(l.slice(a,m).map(function(h){return _objectSpread2$1(_objectSpread2$1({},h),{},{status:STATUS_ADD})})),a=m),r.push(_objectSpread2$1(_objectSpread2$1({},I),{},{status:STATUS_KEEP})),a+=1,p=!0;break}}p||r.push(_objectSpread2$1(_objectSpread2$1({},f),{},{status:STATUS_REMOVE}))}),a<s&&(r=r.concat(l.slice(a).map(function(f){return _objectSpread2$1(_objectSpread2$1({},f),{},{status:STATUS_ADD})})));var d={};r.forEach(function(f){var p=f.key;d[p]=(d[p]||0)+1});var u=Object.keys(d).filter(function(f){return d[f]>1});return u.forEach(function(f){r=r.filter(function(p){var m=p.key,I=p.status;return m!==f||I!==STATUS_REMOVE}),r.forEach(function(p){p.key===f&&(p.status=STATUS_KEEP)})}),r}var MOTION_PROP_NAMES=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function genCSSMotionList(e){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:CSSMotion,r=function(a){_inherits(c,a);var s=_createSuper(c);function c(){var l;return _classCallCheck(this,c),l=s.apply(this,arguments),l.state={keyEntities:[]},l.removeKey=function(d){l.setState(function(u){var f=u.keyEntities;return{keyEntities:f.map(function(p){return p.key!==d?p:_objectSpread2$1(_objectSpread2$1({},p),{},{status:STATUS_REMOVED})})}})},l}return _createClass(c,[{key:"render",value:function(){var d=this,u=this.state.keyEntities,f=this.props,p=f.component,m=f.children,I=f.onVisibleChanged,h=_objectWithoutProperties(f,["component","children","onVisibleChanged"]),g=p||React__namespace.Fragment,C={};return MOTION_PROP_NAMES.forEach(function(b){C[b]=h[b],delete h[b]}),delete h.keys,jsxRuntime.jsx(g,{...Object.assign({},h),children:u.map(function(b){var y=b.status,v=_objectWithoutProperties(b,["status"]),O=y===STATUS_ADD||y===STATUS_KEEP;return jsxRuntime.jsx(o,{...Object.assign({},C,{key:v.key,visible:O,eventProps:v,onVisibleChanged:function(_){I==null||I(_,{key:v.key}),_||d.removeKey(v.key)}}),children:m})})})}}],[{key:"getDerivedStateFromProps",value:function(d,u){var f=d.keys,p=u.keyEntities,m=parseKeys(f),I=diffKeys(p,m);return{keyEntities:I.filter(function(h){var g=p.find(function(C){var b=C.key;return h.key===b});return!(g&&g.status===STATUS_REMOVED&&h.status===STATUS_REMOVE)})}}}]),c}(React__namespace.Component);return r.defaultProps={component:"div"},r}const CSSMotionList=genCSSMotionList(supportTransition);var Notice$1=function(e){_inherits(r,e);var o=_createSuper(r);function r(){var a;return _classCallCheck(this,r),a=o.apply(this,arguments),a.closeTimer=null,a.close=function(s){s&&s.stopPropagation(),a.clearCloseTimer();var c=a.props,l=c.onClose,d=c.noticeKey;l&&l(d)},a.startCloseTimer=function(){a.props.duration&&(a.closeTimer=window.setTimeout(function(){a.close()},a.props.duration*1e3))},a.clearCloseTimer=function(){a.closeTimer&&(clearTimeout(a.closeTimer),a.closeTimer=null)},a}return _createClass(r,[{key:"componentDidMount",value:function(){this.startCloseTimer()}},{key:"componentDidUpdate",value:function(s){(this.props.duration!==s.duration||this.props.updateMark!==s.updateMark)&&this.restartCloseTimer()}},{key:"componentWillUnmount",value:function(){this.clearCloseTimer()}},{key:"restartCloseTimer",value:function(){this.clearCloseTimer(),this.startCloseTimer()}},{key:"render",value:function(){var s=this,c=this.props,l=c.prefixCls,d=c.className,u=c.closable,f=c.closeIcon,p=c.style,m=c.onClick,I=c.children,h=c.holder,g="".concat(l,"-notice"),C=Object.keys(this.props).reduce(function(y,v){return(v.substr(0,5)==="data-"||v.substr(0,5)==="aria-"||v==="role")&&(y[v]=s.props[v]),y},{}),b=jsxRuntime.jsxs("div",{...Object.assign({className:classnamesExports(g,d,_defineProperty$1({},"".concat(g,"-closable"),u)),style:p,onMouseEnter:this.clearCloseTimer,onMouseLeave:this.startCloseTimer,onClick:m},C),children:[jsxRuntime.jsx("div",{className:"".concat(g,"-content"),children:I}),u?jsxRuntime.jsx("a",{tabIndex:0,onClick:this.close,className:"".concat(g,"-close"),children:f||jsxRuntime.jsx("span",{className:"".concat(g,"-close-x")})}):null]});return h?ReactDOM__default.default.createPortal(b,h):b}}]),r}(React.Component);Notice$1.defaultProps={onClose:function(){},duration:1.5};function useNotification$2(e){var o=React__namespace.useRef({}),r=React__namespace.useState([]),a=_slicedToArray(r,2),s=a[0],c=a[1];function l(d){e.add(d,function(u,f){var p=f.key;if(u&&!o.current[p]){var m=jsxRuntime.jsx(Notice$1,{...Object.assign({},f,{holder:u})});o.current[p]=m,c(function(I){return[].concat(_toConsumableArray(I),[m])})}})}return[l,jsxRuntime.jsx(jsxRuntime.Fragment,{children:s})]}var seed=0,now$3=Date.now();function getUuid(){var e=seed;return seed+=1,"rcNotification_".concat(now$3,"_").concat(e)}var Notification=function(e){_inherits(r,e);var o=_createSuper(r);function r(){var a;return _classCallCheck(this,r),a=o.apply(this,arguments),a.state={notices:[]},a.hookRefs=new Map,a.add=function(s,c){var l=s.key||getUuid(),d=_objectSpread2$1(_objectSpread2$1({},s),{},{key:l}),u=a.props.maxCount;a.setState(function(f){var p=f.notices,m=p.map(function(h){return h.notice.key}).indexOf(l),I=p.concat();return m!==-1?I.splice(m,1,{notice:d,holderCallback:c}):(u&&p.length>=u&&(d.key=I[0].notice.key,d.updateMark=getUuid(),d.userPassKey=l,I.shift()),I.push({notice:d,holderCallback:c})),{notices:I}})},a.remove=function(s){a.setState(function(c){var l=c.notices;return{notices:l.filter(function(d){var u=d.notice,f=u.key,p=u.userPassKey,m=p||f;return m!==s})}})},a.noticePropsMap={},a}return _createClass(r,[{key:"getTransitionName",value:function(){var s=this.props,c=s.prefixCls,l=s.animation,d=this.props.transitionName;return!d&&l&&(d="".concat(c,"-").concat(l)),d}},{key:"render",value:function(){var s=this,c=this.state.notices,l=this.props,d=l.prefixCls,u=l.className,f=l.closeIcon,p=l.style,m=[];return c.forEach(function(I,h){var g=I.notice,C=I.holderCallback,b=h===c.length-1?g.updateMark:void 0,y=g.key,v=g.userPassKey,O=_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({prefixCls:d,closeIcon:f},g),g.props),{},{key:y,noticeKey:v||y,updateMark:b,onClose:function(_){var F;s.remove(_),(F=g.onClose)===null||F===void 0||F.call(g)},onClick:g.onClick,children:g.content});m.push(y),s.noticePropsMap[y]={props:O,holderCallback:C}}),jsxRuntime.jsx("div",{className:classnamesExports(d,u),style:p,children:jsxRuntime.jsx(CSSMotionList,{keys:m,motionName:this.getTransitionName(),onVisibleChanged:function(h,g){var C=g.key;h||delete s.noticePropsMap[C]},children:function(I){var h=I.key,g=I.className,C=I.style,b=s.noticePropsMap[h],y=b.props,v=b.holderCallback;return v?jsxRuntime.jsx("div",{className:classnamesExports(g,"".concat(d,"-hook-holder")),style:_objectSpread2$1({},C),ref:function(w){typeof h>"u"||(w?(s.hookRefs.set(h,w),v(w,y)):s.hookRefs.delete(h))}},h):jsxRuntime.jsx(Notice$1,{...Object.assign({},y,{className:classnamesExports(g,y==null?void 0:y.className),style:_objectSpread2$1(_objectSpread2$1({},C),y==null?void 0:y.style)})})}})})}}]),r}(React.Component);Notification.defaultProps={prefixCls:"rc-notification",animation:"fade",style:{top:65,left:"50%"}},Notification.newInstance=function(o,r){var a=o||{},s=a.getContainer,c=_objectWithoutProperties(a,["getContainer"]),l=document.createElement("div");if(s){var d=s();d.appendChild(l)}else document.body.appendChild(l);var u=!1;function f(p){u||(u=!0,r({notice:function(I){p.add(I)},removeNotice:function(I){p.remove(I)},component:p,destroy:function(){ReactDOM__default.default.unmountComponentAtNode(l),l.parentNode&&l.parentNode.removeChild(l)},useNotification:function(){return useNotification$2(p)}}))}if(process.env.NODE_ENV==="test"&&o.TEST_RENDER){o.TEST_RENDER(jsxRuntime.jsx(Notification,{...Object.assign({},c,{ref:f})}));return}ReactDOM__default.default.render(jsxRuntime.jsx(Notification,{...Object.assign({},c,{ref:f})}),l)};const es$1=Object.freeze(Object.defineProperty({__proto__:null,default:Notification},Symbol.toStringTag,{value:"Module"})),require$$6$1=getAugmentedNamespace(es$1);var LoadingOutlined$2={exports:{}},LoadingOutlined$1={},LoadingOutlined={},hasRequiredLoadingOutlined$2;function requireLoadingOutlined$2(){if(hasRequiredLoadingOutlined$2)return LoadingOutlined;hasRequiredLoadingOutlined$2=1,Object.defineProperty(LoadingOutlined,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};return LoadingOutlined.default=e,LoadingOutlined}var hasRequiredLoadingOutlined$1;function requireLoadingOutlined$1(){if(hasRequiredLoadingOutlined$1)return LoadingOutlined$1;hasRequiredLoadingOutlined$1=1;var e=interopRequireWildcard.exports,o=interopRequireDefault.exports;Object.defineProperty(LoadingOutlined$1,"__esModule",{value:!0}),LoadingOutlined$1.default=void 0;var r=o(requireObjectSpread2()),a=e(React__default.default),s=o(requireLoadingOutlined$2()),c=o(requireAntdIcon()),l=function(f,p){return a.createElement(c.default,(0,r.default)((0,r.default)({},f),{},{ref:p,icon:s.default}))};l.displayName="LoadingOutlined";var d=a.forwardRef(l);return LoadingOutlined$1.default=d,LoadingOutlined$1}var hasRequiredLoadingOutlined;function requireLoadingOutlined(){return hasRequiredLoadingOutlined||(hasRequiredLoadingOutlined=1,function(e,o){Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var r=a(requireLoadingOutlined$1());function a(c){return c&&c.__esModule?c:{default:c}}var s=r;o.default=s,e.exports=s}(LoadingOutlined$2,LoadingOutlined$2.exports)),LoadingOutlined$2.exports}var ExclamationCircleFilled$2={exports:{}},ExclamationCircleFilled$1={},ExclamationCircleFilled={},hasRequiredExclamationCircleFilled$2;function requireExclamationCircleFilled$2(){if(hasRequiredExclamationCircleFilled$2)return ExclamationCircleFilled;hasRequiredExclamationCircleFilled$2=1,Object.defineProperty(ExclamationCircleFilled,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"};return ExclamationCircleFilled.default=e,ExclamationCircleFilled}var hasRequiredExclamationCircleFilled$1;function requireExclamationCircleFilled$1(){if(hasRequiredExclamationCircleFilled$1)return ExclamationCircleFilled$1;hasRequiredExclamationCircleFilled$1=1;var e=interopRequireWildcard.exports,o=interopRequireDefault.exports;Object.defineProperty(ExclamationCircleFilled$1,"__esModule",{value:!0}),ExclamationCircleFilled$1.default=void 0;var r=o(requireObjectSpread2()),a=e(React__default.default),s=o(requireExclamationCircleFilled$2()),c=o(requireAntdIcon()),l=function(f,p){return a.createElement(c.default,(0,r.default)((0,r.default)({},f),{},{ref:p,icon:s.default}))};l.displayName="ExclamationCircleFilled";var d=a.forwardRef(l);return ExclamationCircleFilled$1.default=d,ExclamationCircleFilled$1}var hasRequiredExclamationCircleFilled;function requireExclamationCircleFilled(){return hasRequiredExclamationCircleFilled||(hasRequiredExclamationCircleFilled=1,function(e,o){Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var r=a(requireExclamationCircleFilled$1());function a(c){return c&&c.__esModule?c:{default:c}}var s=r;o.default=s,e.exports=s}(ExclamationCircleFilled$2,ExclamationCircleFilled$2.exports)),ExclamationCircleFilled$2.exports}var CheckCircleFilled$2={exports:{}},CheckCircleFilled$1={},CheckCircleFilled={},hasRequiredCheckCircleFilled$2;function requireCheckCircleFilled$2(){if(hasRequiredCheckCircleFilled$2)return CheckCircleFilled;hasRequiredCheckCircleFilled$2=1,Object.defineProperty(CheckCircleFilled,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};return CheckCircleFilled.default=e,CheckCircleFilled}var hasRequiredCheckCircleFilled$1;function requireCheckCircleFilled$1(){if(hasRequiredCheckCircleFilled$1)return CheckCircleFilled$1;hasRequiredCheckCircleFilled$1=1;var e=interopRequireWildcard.exports,o=interopRequireDefault.exports;Object.defineProperty(CheckCircleFilled$1,"__esModule",{value:!0}),CheckCircleFilled$1.default=void 0;var r=o(requireObjectSpread2()),a=e(React__default.default),s=o(requireCheckCircleFilled$2()),c=o(requireAntdIcon()),l=function(f,p){return a.createElement(c.default,(0,r.default)((0,r.default)({},f),{},{ref:p,icon:s.default}))};l.displayName="CheckCircleFilled";var d=a.forwardRef(l);return CheckCircleFilled$1.default=d,CheckCircleFilled$1}var hasRequiredCheckCircleFilled;function requireCheckCircleFilled(){return hasRequiredCheckCircleFilled||(hasRequiredCheckCircleFilled=1,function(e,o){Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var r=a(requireCheckCircleFilled$1());function a(c){return c&&c.__esModule?c:{default:c}}var s=r;o.default=s,e.exports=s}(CheckCircleFilled$2,CheckCircleFilled$2.exports)),CheckCircleFilled$2.exports}var InfoCircleFilled$2={exports:{}},InfoCircleFilled$1={},InfoCircleFilled={},hasRequiredInfoCircleFilled$2;function requireInfoCircleFilled$2(){if(hasRequiredInfoCircleFilled$2)return InfoCircleFilled;hasRequiredInfoCircleFilled$2=1,Object.defineProperty(InfoCircleFilled,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"};return InfoCircleFilled.default=e,InfoCircleFilled}var hasRequiredInfoCircleFilled$1;function requireInfoCircleFilled$1(){if(hasRequiredInfoCircleFilled$1)return InfoCircleFilled$1;hasRequiredInfoCircleFilled$1=1;var e=interopRequireWildcard.exports,o=interopRequireDefault.exports;Object.defineProperty(InfoCircleFilled$1,"__esModule",{value:!0}),InfoCircleFilled$1.default=void 0;var r=o(requireObjectSpread2()),a=e(React__default.default),s=o(requireInfoCircleFilled$2()),c=o(requireAntdIcon()),l=function(f,p){return a.createElement(c.default,(0,r.default)((0,r.default)({},f),{},{ref:p,icon:s.default}))};l.displayName="InfoCircleFilled";var d=a.forwardRef(l);return InfoCircleFilled$1.default=d,InfoCircleFilled$1}var hasRequiredInfoCircleFilled;function requireInfoCircleFilled(){return hasRequiredInfoCircleFilled||(hasRequiredInfoCircleFilled=1,function(e,o){Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var r=a(requireInfoCircleFilled$1());function a(c){return c&&c.__esModule?c:{default:c}}var s=r;o.default=s,e.exports=s}(InfoCircleFilled$2,InfoCircleFilled$2.exports)),InfoCircleFilled$2.exports}var useMessage={},useNotification$1={},Notice={},hasRequiredNotice;function requireNotice(){if(hasRequiredNotice)return Notice;hasRequiredNotice=1;var e=interopRequireWildcard.exports,o=interopRequireDefault.exports;Object.defineProperty(Notice,"__esModule",{value:!0}),Notice.default=void 0;var r=o(requireDefineProperty()),a=o(requireClassCallCheck()),s=o(requireCreateClass()),c=o(requireInherits()),l=o(requireCreateSuper()),d=e(React__default.default),u=o(ReactDOM__default.default),f=o(requireClassnames()),p=function(m){(0,c.default)(h,m);var I=(0,l.default)(h);function h(){var g;return(0,a.default)(this,h),g=I.apply(this,arguments),g.closeTimer=null,g.close=function(C){C&&C.stopPropagation(),g.clearCloseTimer();var b=g.props,y=b.onClose,v=b.noticeKey;y&&y(v)},g.startCloseTimer=function(){g.props.duration&&(g.closeTimer=window.setTimeout(function(){g.close()},g.props.duration*1e3))},g.clearCloseTimer=function(){g.closeTimer&&(clearTimeout(g.closeTimer),g.closeTimer=null)},g}return(0,s.default)(h,[{key:"componentDidMount",value:function(){this.startCloseTimer()}},{key:"componentDidUpdate",value:function(C){(this.props.duration!==C.duration||this.props.updateMark!==C.updateMark)&&this.restartCloseTimer()}},{key:"componentWillUnmount",value:function(){this.clearCloseTimer()}},{key:"restartCloseTimer",value:function(){this.clearCloseTimer(),this.startCloseTimer()}},{key:"render",value:function(){var C=this,b=this.props,y=b.prefixCls,v=b.className,O=b.closable,w=b.closeIcon,_=b.style,F=b.onClick,L=b.children,E=b.holder,P="".concat(y,"-notice"),A=Object.keys(this.props).reduce(function(J,z){return(z.substr(0,5)==="data-"||z.substr(0,5)==="aria-"||z==="role")&&(J[z]=C.props[z]),J},{}),W=d.createElement("div",Object.assign({className:(0,f.default)(P,v,(0,r.default)({},"".concat(P,"-closable"),O)),style:_,onMouseEnter:this.clearCloseTimer,onMouseLeave:this.startCloseTimer,onClick:F},A),d.createElement("div",{className:"".concat(P,"-content")},L),O?d.createElement("a",{tabIndex:0,onClick:this.close,className:"".concat(P,"-close")},w||d.createElement("span",{className:"".concat(P,"-close-x")})):null);return E?u.default.createPortal(W,E):W}}]),h}(d.Component);return Notice.default=p,p.defaultProps={onClose:function(){},duration:1.5},Notice}var hasRequiredUseNotification$1;function requireUseNotification$1(){if(hasRequiredUseNotification$1)return useNotification$1;hasRequiredUseNotification$1=1;var e=interopRequireWildcard.exports,o=interopRequireDefault.exports;Object.defineProperty(useNotification$1,"__esModule",{value:!0}),useNotification$1.default=l;var r=o(requireToConsumableArray()),a=o(requireSlicedToArray()),s=e(React__default.default),c=o(requireNotice());function l(d){var u=s.useRef({}),f=s.useState([]),p=(0,a.default)(f,2),m=p[0],I=p[1];function h(g){d.add(g,function(C,b){var y=b.key;if(C&&!u.current[y]){var v=s.createElement(c.default,Object.assign({},b,{holder:C}));u.current[y]=v,I(function(O){return[].concat((0,r.default)(O),[v])})}})}return[h,s.createElement(s.Fragment,null,m)]}return useNotification$1}var hasRequiredUseMessage;function requireUseMessage(){return hasRequiredUseMessage||(hasRequiredUseMessage=1,function(e){var o=interopRequireWildcard.exports,r=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=f;var a=r(require_extends()),s=r(requireSlicedToArray()),c=o(React__default.default),l=r(requireUseNotification$1()),d=requireConfigProvider(),u=requireMessage();function f(p,m){var I=function(){var g,C=null,b={add:function(E,P){C==null||C.component.add(E,P)}},y=(0,l.default)(b),v=(0,s.default)(y,2),O=v[0],w=v[1];function _(L){var E=L.prefixCls,P=g("message",E),A=L.key||(0,u.getKeyThenIncreaseKey)(),W=new Promise(function(z){var Y=function(){return typeof L.onClose=="function"&&L.onClose(),z(!0)};p((0,a.default)((0,a.default)({},L),{prefixCls:P}),function(Q){var oe=Q.prefixCls,ee=Q.instance;C=ee,O(m((0,a.default)((0,a.default)({},L),{key:A,onClose:Y}),oe))})}),J=function(){C&&C.removeNotice(A)};return J.then=function(z,Y){return W.then(z,Y)},J.promise=W,J}var F=c.useRef({});return F.current.open=_,["success","info","warning","error","loading"].forEach(function(L){return(0,u.attachTypeApi)(F.current,L)}),[F.current,c.createElement(d.ConfigConsumer,{key:"holder"},function(L){return g=L.getPrefixCls,w})]};return I}}(useMessage)),useMessage}var hasRequiredMessage;function requireMessage(){return hasRequiredMessage||(hasRequiredMessage=1,function(e){var o=interopRequireWildcard.exports,r=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.getKeyThenIncreaseKey=L,e.attachTypeApi=Q,e.default=e.getInstance=void 0;var a=r(require_extends()),s=r(requireDefineProperty()),c=o(React__default.default),l=r(requireClassnames()),d=r(require$$6$1),u=r(requireLoadingOutlined()),f=r(requireExclamationCircleFilled()),p=r(requireCloseCircleFilled()),m=r(requireCheckCircleFilled()),I=r(requireInfoCircleFilled()),h=r(requireUseMessage()),g,C=3,b,y=1,v="ant-message",O="move-up",w,_,F=!1;function L(){return y++}function E(X){X.top!==void 0&&(b=X.top,g=null),X.duration!==void 0&&(C=X.duration),X.prefixCls!==void 0&&(v=X.prefixCls),X.getContainer!==void 0&&(w=X.getContainer),X.transitionName!==void 0&&(O=X.transitionName,g=null),X.maxCount!==void 0&&(_=X.maxCount,g=null),X.rtl!==void 0&&(F=X.rtl)}function P(X,ue){var Re=X.prefixCls||v;if(g){ue({prefixCls:Re,instance:g});return}d.default.newInstance({prefixCls:Re,transitionName:O,style:{top:b},getContainer:w,maxCount:_},function(xe){if(g){ue({prefixCls:Re,instance:g});return}g=xe,ue({prefixCls:Re,instance:xe})})}var A={info:I.default,success:m.default,error:p.default,warning:f.default,loading:u.default};function W(X,ue){var Re,xe=X.duration!==void 0?X.duration:C,ce=A[X.type],Ce=(0,l.default)("".concat(ue,"-custom-content"),(Re={},(0,s.default)(Re,"".concat(ue,"-").concat(X.type),X.type),(0,s.default)(Re,"".concat(ue,"-rtl"),F===!0),Re));return{key:X.key,duration:xe,style:X.style||{},className:X.className,content:c.createElement("div",{className:Ce},X.icon||ce&&c.createElement(ce,null),c.createElement("span",null,X.content)),onClose:X.onClose,onClick:X.onClick}}function J(X){var ue=X.key||y++,Re=new Promise(function(ce){var Ce=function(){return typeof X.onClose=="function"&&X.onClose(),ce(!0)};P(X,function(te){var de=te.prefixCls,N=te.instance;N.notice(W((0,a.default)((0,a.default)({},X),{key:ue,onClose:Ce}),de))})}),xe=function(){g&&g.removeNotice(ue)};return xe.then=function(ce,Ce){return Re.then(ce,Ce)},xe.promise=Re,xe}function z(X){return Object.prototype.toString.call(X)==="[object Object]"&&!!X.content}var Y={open:J,config:E,destroy:function(ue){if(g)if(ue){var Re=g,xe=Re.removeNotice;xe(ue)}else{var ce=g,Ce=ce.destroy;Ce(),g=null}}};function Q(X,ue){X[ue]=function(Re,xe,ce){return z(Re)?X.open((0,a.default)((0,a.default)({},Re),{type:ue})):(typeof xe=="function"&&(ce=xe,xe=void 0),X.open({content:Re,duration:xe,type:ue,onClose:ce}))}}["success","info","warning","error","loading"].forEach(function(X){return Q(Y,X)}),Y.warn=Y.warning,Y.useMessage=(0,h.default)(P,W);var oe=function(){return process.env.NODE_ENV==="test"?g:null};e.getInstance=oe;var ee=Y;e.default=ee}(message)),message}var notification={},CloseOutlined$2={exports:{}},CloseOutlined$1={},CloseOutlined={},hasRequiredCloseOutlined$2;function requireCloseOutlined$2(){if(hasRequiredCloseOutlined$2)return CloseOutlined;hasRequiredCloseOutlined$2=1,Object.defineProperty(CloseOutlined,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"}}]},name:"close",theme:"outlined"};return CloseOutlined.default=e,CloseOutlined}var hasRequiredCloseOutlined$1;function requireCloseOutlined$1(){if(hasRequiredCloseOutlined$1)return CloseOutlined$1;hasRequiredCloseOutlined$1=1;var e=interopRequireWildcard.exports,o=interopRequireDefault.exports;Object.defineProperty(CloseOutlined$1,"__esModule",{value:!0}),CloseOutlined$1.default=void 0;var r=o(requireObjectSpread2()),a=e(React__default.default),s=o(requireCloseOutlined$2()),c=o(requireAntdIcon()),l=function(f,p){return a.createElement(c.default,(0,r.default)((0,r.default)({},f),{},{ref:p,icon:s.default}))};l.displayName="CloseOutlined";var d=a.forwardRef(l);return CloseOutlined$1.default=d,CloseOutlined$1}var hasRequiredCloseOutlined;function requireCloseOutlined(){return hasRequiredCloseOutlined||(hasRequiredCloseOutlined=1,function(e,o){Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var r=a(requireCloseOutlined$1());function a(c){return c&&c.__esModule?c:{default:c}}var s=r;o.default=s,e.exports=s}(CloseOutlined$2,CloseOutlined$2.exports)),CloseOutlined$2.exports}var CheckCircleOutlined$2={exports:{}},CheckCircleOutlined$1={},CheckCircleOutlined={},hasRequiredCheckCircleOutlined$2;function requireCheckCircleOutlined$2(){if(hasRequiredCheckCircleOutlined$2)return CheckCircleOutlined;hasRequiredCheckCircleOutlined$2=1,Object.defineProperty(CheckCircleOutlined,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"};return CheckCircleOutlined.default=e,CheckCircleOutlined}var hasRequiredCheckCircleOutlined$1;function requireCheckCircleOutlined$1(){if(hasRequiredCheckCircleOutlined$1)return CheckCircleOutlined$1;hasRequiredCheckCircleOutlined$1=1;var e=interopRequireWildcard.exports,o=interopRequireDefault.exports;Object.defineProperty(CheckCircleOutlined$1,"__esModule",{value:!0}),CheckCircleOutlined$1.default=void 0;var r=o(requireObjectSpread2()),a=e(React__default.default),s=o(requireCheckCircleOutlined$2()),c=o(requireAntdIcon()),l=function(f,p){return a.createElement(c.default,(0,r.default)((0,r.default)({},f),{},{ref:p,icon:s.default}))};l.displayName="CheckCircleOutlined";var d=a.forwardRef(l);return CheckCircleOutlined$1.default=d,CheckCircleOutlined$1}var hasRequiredCheckCircleOutlined;function requireCheckCircleOutlined(){return hasRequiredCheckCircleOutlined||(hasRequiredCheckCircleOutlined=1,function(e,o){Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var r=a(requireCheckCircleOutlined$1());function a(c){return c&&c.__esModule?c:{default:c}}var s=r;o.default=s,e.exports=s}(CheckCircleOutlined$2,CheckCircleOutlined$2.exports)),CheckCircleOutlined$2.exports}var CloseCircleOutlined$2={exports:{}},CloseCircleOutlined$1={},CloseCircleOutlined={},hasRequiredCloseCircleOutlined$2;function requireCloseCircleOutlined$2(){if(hasRequiredCloseCircleOutlined$2)return CloseCircleOutlined;hasRequiredCloseCircleOutlined$2=1,Object.defineProperty(CloseCircleOutlined,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M685.4 354.8c0-4.4-3.6-8-8-8l-66 .3L512 465.6l-99.3-118.4-66.1-.3c-4.4 0-8 3.5-8 8 0 1.9.7 3.7 1.9 5.2l130.1 155L340.5 670a8.32 8.32 0 00-1.9 5.2c0 4.4 3.6 8 8 8l66.1-.3L512 564.4l99.3 118.4 66 .3c4.4 0 8-3.5 8-8 0-1.9-.7-3.7-1.9-5.2L553.5 515l130.1-155c1.2-1.4 1.8-3.3 1.8-5.2z"}},{tag:"path",attrs:{d:"M512 65C264.6 65 64 265.6 64 513s200.6 448 448 448 448-200.6 448-448S759.4 65 512 65zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"close-circle",theme:"outlined"};return CloseCircleOutlined.default=e,CloseCircleOutlined}var hasRequiredCloseCircleOutlined$1;function requireCloseCircleOutlined$1(){if(hasRequiredCloseCircleOutlined$1)return CloseCircleOutlined$1;hasRequiredCloseCircleOutlined$1=1;var e=interopRequireWildcard.exports,o=interopRequireDefault.exports;Object.defineProperty(CloseCircleOutlined$1,"__esModule",{value:!0}),CloseCircleOutlined$1.default=void 0;var r=o(requireObjectSpread2()),a=e(React__default.default),s=o(requireCloseCircleOutlined$2()),c=o(requireAntdIcon()),l=function(f,p){return a.createElement(c.default,(0,r.default)((0,r.default)({},f),{},{ref:p,icon:s.default}))};l.displayName="CloseCircleOutlined";var d=a.forwardRef(l);return CloseCircleOutlined$1.default=d,CloseCircleOutlined$1}var hasRequiredCloseCircleOutlined;function requireCloseCircleOutlined(){return hasRequiredCloseCircleOutlined||(hasRequiredCloseCircleOutlined=1,function(e,o){Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var r=a(requireCloseCircleOutlined$1());function a(c){return c&&c.__esModule?c:{default:c}}var s=r;o.default=s,e.exports=s}(CloseCircleOutlined$2,CloseCircleOutlined$2.exports)),CloseCircleOutlined$2.exports}var ExclamationCircleOutlined$2={exports:{}},ExclamationCircleOutlined$1={},ExclamationCircleOutlined={},hasRequiredExclamationCircleOutlined$2;function requireExclamationCircleOutlined$2(){if(hasRequiredExclamationCircleOutlined$2)return ExclamationCircleOutlined;hasRequiredExclamationCircleOutlined$2=1,Object.defineProperty(ExclamationCircleOutlined,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"};return ExclamationCircleOutlined.default=e,ExclamationCircleOutlined}var hasRequiredExclamationCircleOutlined$1;function requireExclamationCircleOutlined$1(){if(hasRequiredExclamationCircleOutlined$1)return ExclamationCircleOutlined$1;hasRequiredExclamationCircleOutlined$1=1;var e=interopRequireWildcard.exports,o=interopRequireDefault.exports;Object.defineProperty(ExclamationCircleOutlined$1,"__esModule",{value:!0}),ExclamationCircleOutlined$1.default=void 0;var r=o(requireObjectSpread2()),a=e(React__default.default),s=o(requireExclamationCircleOutlined$2()),c=o(requireAntdIcon()),l=function(f,p){return a.createElement(c.default,(0,r.default)((0,r.default)({},f),{},{ref:p,icon:s.default}))};l.displayName="ExclamationCircleOutlined";var d=a.forwardRef(l);return ExclamationCircleOutlined$1.default=d,ExclamationCircleOutlined$1}var hasRequiredExclamationCircleOutlined;function requireExclamationCircleOutlined(){return hasRequiredExclamationCircleOutlined||(hasRequiredExclamationCircleOutlined=1,function(e,o){Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var r=a(requireExclamationCircleOutlined$1());function a(c){return c&&c.__esModule?c:{default:c}}var s=r;o.default=s,e.exports=s}(ExclamationCircleOutlined$2,ExclamationCircleOutlined$2.exports)),ExclamationCircleOutlined$2.exports}var InfoCircleOutlined$2={exports:{}},InfoCircleOutlined$1={},InfoCircleOutlined={},hasRequiredInfoCircleOutlined$2;function requireInfoCircleOutlined$2(){if(hasRequiredInfoCircleOutlined$2)return InfoCircleOutlined;hasRequiredInfoCircleOutlined$2=1,Object.defineProperty(InfoCircleOutlined,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"};return InfoCircleOutlined.default=e,InfoCircleOutlined}var hasRequiredInfoCircleOutlined$1;function requireInfoCircleOutlined$1(){if(hasRequiredInfoCircleOutlined$1)return InfoCircleOutlined$1;hasRequiredInfoCircleOutlined$1=1;var e=interopRequireWildcard.exports,o=interopRequireDefault.exports;Object.defineProperty(InfoCircleOutlined$1,"__esModule",{value:!0}),InfoCircleOutlined$1.default=void 0;var r=o(requireObjectSpread2()),a=e(React__default.default),s=o(requireInfoCircleOutlined$2()),c=o(requireAntdIcon()),l=function(f,p){return a.createElement(c.default,(0,r.default)((0,r.default)({},f),{},{ref:p,icon:s.default}))};l.displayName="InfoCircleOutlined";var d=a.forwardRef(l);return InfoCircleOutlined$1.default=d,InfoCircleOutlined$1}var hasRequiredInfoCircleOutlined;function requireInfoCircleOutlined(){return hasRequiredInfoCircleOutlined||(hasRequiredInfoCircleOutlined=1,function(e,o){Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var r=a(requireInfoCircleOutlined$1());function a(c){return c&&c.__esModule?c:{default:c}}var s=r;o.default=s,e.exports=s}(InfoCircleOutlined$2,InfoCircleOutlined$2.exports)),InfoCircleOutlined$2.exports}var useNotification={},hasRequiredUseNotification;function requireUseNotification(){return hasRequiredUseNotification||(hasRequiredUseNotification=1,function(e){var o=interopRequireWildcard.exports,r=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=u;var a=r(require_extends()),s=r(requireSlicedToArray()),c=o(React__default.default),l=r(requireUseNotification$1()),d=requireConfigProvider();function u(f,p){var m=function(){var h,g=null,C={add:function(L,E){g==null||g.component.add(L,E)}},b=(0,l.default)(C),y=(0,s.default)(b,2),v=y[0],O=y[1];function w(F){var L=F.prefixCls,E=h("notification",L);f((0,a.default)((0,a.default)({},F),{prefixCls:E}),function(P){var A=P.prefixCls,W=P.instance;g=W,v(p(F,A))})}var _=c.useRef({});return _.current.open=w,["success","info","warning","error"].forEach(function(F){_.current[F]=function(L){return _.current.open((0,a.default)((0,a.default)({},L),{type:F}))}}),[_.current,c.createElement(d.ConfigConsumer,{key:"holder"},function(F){return h=F.getPrefixCls,O})]};return m}}(useNotification)),useNotification}var hasRequiredNotification;function requireNotification(){return hasRequiredNotification||(hasRequiredNotification=1,function(e){var o=interopRequireWildcard.exports,r=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.getInstance=void 0;var a=r(requireRegenerator()),s=r(require_extends()),c=r(requireDefineProperty()),l=o(React__default.default),d=r(require$$6$1),u=r(requireCloseOutlined()),f=r(requireClassnames()),p=r(requireCheckCircleOutlined()),m=r(requireCloseCircleOutlined()),I=r(requireExclamationCircleOutlined()),h=r(requireInfoCircleOutlined()),g=r(requireUseNotification()),C=function(X,ue,Re,xe){function ce(Ce){return Ce instanceof Re?Ce:new Re(function(te){te(Ce)})}return new(Re||(Re=Promise))(function(Ce,te){function de(re){try{U(xe.next(re))}catch(Te){te(Te)}}function N(re){try{U(xe.throw(re))}catch(Te){te(Te)}}function U(re){re.done?Ce(re.value):ce(re.value).then(de,N)}U((xe=xe.apply(X,ue||[])).next())})},b={},y=4.5,v=24,O=24,w="ant-notification",_="topRight",F,L,E=!1;function P(X){var ue=X.duration,Re=X.placement,xe=X.bottom,ce=X.top,Ce=X.getContainer,te=X.closeIcon,de=X.prefixCls;de!==void 0&&(w=de),ue!==void 0&&(y=ue),Re!==void 0?_=Re:X.rtl&&(_="topLeft"),xe!==void 0&&(O=xe),ce!==void 0&&(v=ce),Ce!==void 0&&(F=Ce),te!==void 0&&(L=te),X.rtl!==void 0&&(E=X.rtl)}function A(X){var ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:v,Re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:O,xe;switch(X){case"topLeft":xe={left:0,top:ue,bottom:"auto"};break;case"topRight":xe={right:0,top:ue,bottom:"auto"};break;case"bottomLeft":xe={left:0,top:"auto",bottom:Re};break;default:xe={right:0,top:"auto",bottom:Re};break}return xe}function W(X,ue){var Re=X.placement,xe=Re===void 0?_:Re,ce=X.top,Ce=X.bottom,te=X.getContainer,de=te===void 0?F:te,N=X.closeIcon,U=N===void 0?L:N,re=X.prefixCls||w,Te="".concat(re,"-notice"),Fe="".concat(re,"-").concat(xe),M=b[Fe];if(M){Promise.resolve(M).then(function(je){ue({prefixCls:Te,instance:je})});return}var j=l.createElement("span",{className:"".concat(re,"-close-x")},U||l.createElement(u.default,{className:"".concat(re,"-close-icon")})),we=(0,f.default)("".concat(re,"-").concat(xe),(0,c.default)({},"".concat(re,"-rtl"),E===!0));b[Fe]=new Promise(function(je){d.default.newInstance({prefixCls:re,className:we,style:A(xe,ce,Ce),getContainer:de,closeIcon:j},function(tt){je(tt),ue({prefixCls:Te,instance:tt})})})}var J={success:p.default,info:h.default,error:m.default,warning:I.default};function z(X,ue){var Re=X.duration===void 0?y:X.duration,xe=null;X.icon?xe=l.createElement("span",{className:"".concat(ue,"-icon")},X.icon):X.type&&(xe=l.createElement(J[X.type]||null,{className:"".concat(ue,"-icon ").concat(ue,"-icon-").concat(X.type)}));var ce=!X.description&&xe?l.createElement("span",{className:"".concat(ue,"-message-single-line-auto-margin")}):null;return{content:l.createElement("div",{className:xe?"".concat(ue,"-with-icon"):"",role:"alert"},xe,l.createElement("div",{className:"".concat(ue,"-message")},ce,X.message),l.createElement("div",{className:"".concat(ue,"-description")},X.description),X.btn?l.createElement("span",{className:"".concat(ue,"-btn")},X.btn):null),duration:Re,closable:!0,onClose:X.onClose,onClick:X.onClick,key:X.key,style:X.style||{},className:X.className}}function Y(X){W(X,function(ue){var Re=ue.prefixCls,xe=ue.instance;xe.notice(z(X,Re))})}var Q={open:Y,close:function(ue){Object.keys(b).forEach(function(Re){return Promise.resolve(b[Re]).then(function(xe){xe.removeNotice(ue)})})},config:P,destroy:function(){Object.keys(b).forEach(function(ue){Promise.resolve(b[ue]).then(function(Re){Re.destroy()}),delete b[ue]})}};["success","info","warning","error"].forEach(function(X){Q[X]=function(ue){return Q.open((0,s.default)((0,s.default)({},ue),{type:X}))}}),Q.warn=Q.warning,Q.useNotification=(0,g.default)(W,z);var oe=function(ue){return C(void 0,void 0,void 0,a.default.mark(function Re(){return a.default.wrap(function(ce){for(;;)switch(ce.prev=ce.next){case 0:return ce.abrupt("return",process.env.NODE_ENV==="test"?b[ue]:null);case 1:case"end":return ce.stop()}},Re)}))};e.getInstance=oe;var ee=Q;e.default=ee}(notification)),notification}var hasRequiredConfigProvider;function requireConfigProvider(){return hasRequiredConfigProvider||(hasRequiredConfigProvider=1,function(e){var o=interopRequireWildcard.exports,r=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ConfigConsumer",{enumerable:!0,get:function(){return p.ConfigConsumer}}),Object.defineProperty(e,"ConfigContext",{enumerable:!0,get:function(){return p.ConfigContext}}),e.default=e.configConsumerProps=void 0;var a=r(require_extends()),s=o(React__default.default),c=r(requireContext$2()),l=require$$5,d=r(requireUseMemo()),u=o(requireLocaleProvider()),f=r(requireLocaleReceiver()),p=requireContext(),m=o(requireSizeContext()),I=r(requireMessage()),h=r(requireNotification()),g=["getTargetContainer","getPopupContainer","rootPrefixCls","getPrefixCls","renderEmpty","csp","autoInsertSpaceInButton","locale","pageHeader"];e.configConsumerProps=g;var C=["getTargetContainer","getPopupContainer","renderEmpty","pageHeader","input","form"],b=function(w){var _=w.children,F=w.csp,L=w.autoInsertSpaceInButton,E=w.form,P=w.locale,A=w.componentSize,W=w.direction,J=w.space,z=w.virtual,Y=w.dropdownMatchSelectWidth,Q=w.legacyLocale,oe=w.parentContext,ee=w.iconPrefixCls,X=s.useCallback(function(te,de){var N=w.prefixCls;if(de)return de;var U=N||oe.getPrefixCls("");return te?"".concat(U,"-").concat(te):U},[oe.getPrefixCls]),ue=(0,a.default)((0,a.default)({},oe),{csp:F,autoInsertSpaceInButton:L,locale:P||Q,direction:W,space:J,virtual:z,dropdownMatchSelectWidth:Y,getPrefixCls:X});C.forEach(function(te){var de=w[te];de&&(ue[te]=de)});var Re=(0,d.default)(function(){return ue},ue,function(te,de){var N=Object.keys(te),U=Object.keys(de);return N.length!==U.length||N.some(function(re){return te[re]!==de[re]})}),xe=s.useMemo(function(){return{prefixCls:ee}},[ee]),ce=_,Ce={};return P&&P.Form&&P.Form.defaultValidateMessages&&(Ce=P.Form.defaultValidateMessages),E&&E.validateMessages&&(Ce=(0,a.default)((0,a.default)({},Ce),E.validateMessages)),Object.keys(Ce).length>0&&(ce=s.createElement(l.FormProvider,{validateMessages:Ce},_)),P&&(ce=s.createElement(u.default,{locale:P,_ANT_MARK__:u.ANT_MARK},ce)),ee&&(ce=s.createElement(c.default.Provider,{value:xe},ce)),A&&(ce=s.createElement(m.SizeContextProvider,{size:A},ce)),s.createElement(p.ConfigContext.Provider,{value:Re},ce)},y=function(w){return s.useEffect(function(){w.direction&&(I.default.config({rtl:w.direction==="rtl"}),h.default.config({rtl:w.direction==="rtl"}))},[w.direction]),s.createElement(f.default,null,function(_,F,L){return s.createElement(p.ConfigConsumer,null,function(E){return s.createElement(b,(0,a.default)({parentContext:E,legacyLocale:L},w))})})};y.ConfigContext=p.ConfigContext,y.SizeContext=m.default;var v=y;e.default=v}(configProvider)),configProvider}var hasRequiredInput;function requireInput(){return hasRequiredInput||(hasRequiredInput=1,function(e){var o=interopRequireWildcard.exports,r=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.fixControlledValue=b,e.resolveOnChange=y,e.getInputClassName=v,e.triggerFocus=O,e.default=void 0;var a=r(require_extends()),s=r(requireClassCallCheck()),c=r(requireCreateClass()),l=r(requireInherits()),d=r(requireCreateSuper()),u=r(requireDefineProperty()),f=o(React__default.default),p=r(requireClassnames()),m=r(requireOmit()),I=o(requireClearableLabeledInput()),h=requireConfigProvider(),g=r(requireSizeContext()),C=r(requireDevWarning());function b(F){return typeof F>"u"||F===null?"":F}function y(F,L,E){if(E){var P=L;if(L.type==="click"){P=Object.create(L),P.target=F,P.currentTarget=F;var A=F.value;F.value="",E(P),F.value=A;return}E(P)}}function v(F,L,E,P,A){var W;return(0,p.default)(F,(W={},(0,u.default)(W,"".concat(F,"-sm"),E==="small"),(0,u.default)(W,"".concat(F,"-lg"),E==="large"),(0,u.default)(W,"".concat(F,"-disabled"),P),(0,u.default)(W,"".concat(F,"-rtl"),A==="rtl"),(0,u.default)(W,"".concat(F,"-borderless"),!L),W))}function O(F,L){if(!!F){F.focus(L);var E=L||{},P=E.cursor;if(P){var A=F.value.length;switch(P){case"start":F.setSelectionRange(0,0);break;case"end":F.setSelectionRange(A,A);break;default:F.setSelectionRange(0,A)}}}}var w=function(F){(0,l.default)(E,F);var L=(0,d.default)(E);function E(P){var A;(0,s.default)(this,E),A=L.call(this,P),A.direction="ltr",A.focus=function(J){O(A.input,J)},A.saveClearableInput=function(J){A.clearableInput=J},A.saveInput=function(J){A.input=J},A.onFocus=function(J){var z=A.props.onFocus;A.setState({focused:!0},A.clearPasswordValueAttribute),z&&z(J)},A.onBlur=function(J){var z=A.props.onBlur;A.setState({focused:!1},A.clearPasswordValueAttribute),z&&z(J)},A.handleReset=function(J){A.setValue("",function(){A.focus()}),y(A.input,J,A.props.onChange)},A.renderInput=function(J,z,Y){var Q=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},oe=A.props,ee=oe.className,X=oe.addonBefore,ue=oe.addonAfter,Re=oe.size,xe=oe.disabled,ce=(0,m.default)(A.props,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","size","inputType","bordered"]);return f.createElement("input",(0,a.default)({autoComplete:Q.autoComplete},ce,{onChange:A.handleChange,onFocus:A.onFocus,onBlur:A.onBlur,onKeyDown:A.handleKeyDown,className:(0,p.default)(v(J,Y,Re||z,xe,A.direction),(0,u.default)({},ee,ee&&!X&&!ue)),ref:A.saveInput}))},A.clearPasswordValueAttribute=function(){A.removePasswordTimeout=setTimeout(function(){A.input&&A.input.getAttribute("type")==="password"&&A.input.hasAttribute("value")&&A.input.removeAttribute("value")})},A.handleChange=function(J){A.setValue(J.target.value,A.clearPasswordValueAttribute),y(A.input,J,A.props.onChange)},A.handleKeyDown=function(J){var z=A.props,Y=z.onPressEnter,Q=z.onKeyDown;J.keyCode===13&&Y&&Y(J),Q&&Q(J)},A.renderComponent=function(J){var z=J.getPrefixCls,Y=J.direction,Q=J.input,oe=A.state,ee=oe.value,X=oe.focused,ue=A.props,Re=ue.prefixCls,xe=ue.bordered,ce=xe===void 0?!0:xe,Ce=z("input",Re);return A.direction=Y,f.createElement(g.default.Consumer,null,function(te){return f.createElement(I.default,(0,a.default)({size:te},A.props,{prefixCls:Ce,inputType:"input",value:b(ee),element:A.renderInput(Ce,te,ce,Q),handleReset:A.handleReset,ref:A.saveClearableInput,direction:Y,focused:X,triggerFocus:A.focus,bordered:ce}))})};var W=typeof P.value>"u"?P.defaultValue:P.value;return A.state={value:W,focused:!1,prevValue:P.value},A}return(0,c.default)(E,[{key:"componentDidMount",value:function(){this.clearPasswordValueAttribute()}},{key:"componentDidUpdate",value:function(){}},{key:"getSnapshotBeforeUpdate",value:function(A){return(0,I.hasPrefixSuffix)(A)!==(0,I.hasPrefixSuffix)(this.props)&&(0,C.default)(this.input!==document.activeElement,"Input","When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"),null}},{key:"componentWillUnmount",value:function(){this.removePasswordTimeout&&clearTimeout(this.removePasswordTimeout)}},{key:"blur",value:function(){this.input.blur()}},{key:"setSelectionRange",value:function(A,W,J){this.input.setSelectionRange(A,W,J)}},{key:"select",value:function(){this.input.select()}},{key:"setValue",value:function(A,W){this.props.value===void 0?this.setState({value:A},W):W==null||W()}},{key:"render",value:function(){return f.createElement(h.ConfigConsumer,null,this.renderComponent)}}],[{key:"getDerivedStateFromProps",value:function(A,W){var J=W.prevValue,z={prevValue:A.value};return(A.value!==void 0||J!==A.value)&&(z.value=A.value),z}}]),E}(f.Component);w.defaultProps={type:"text"};var _=w;e.default=_}(Input)),Input}var reactNode={},hasRequiredReactNode;function requireReactNode(){if(hasRequiredReactNode)return reactNode;hasRequiredReactNode=1;var e=interopRequireWildcard.exports;Object.defineProperty(reactNode,"__esModule",{value:!0}),reactNode.replaceElement=a,reactNode.cloneElement=s,reactNode.isValidElement=void 0;var o=e(React__default.default),r=o.isValidElement;reactNode.isValidElement=r;function a(c,l,d){return r(c)?o.cloneElement(c,typeof d=="function"?d(c.props||{}):d):l}function s(c,l){return a(c,c,l)}return reactNode}var hasRequiredClearableLabeledInput;function requireClearableLabeledInput(){return hasRequiredClearableLabeledInput||(hasRequiredClearableLabeledInput=1,function(e){var o=interopRequireWildcard.exports,r=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.hasPrefixSuffix=C,e.default=void 0;var a=r(requireDefineProperty()),s=r(requireClassCallCheck()),c=r(requireCreateClass()),l=r(requireInherits()),d=r(requireCreateSuper()),u=o(React__default.default),f=r(requireClassnames()),p=r(requireCloseCircleFilled()),m=requireType(),I=requireInput(),h=requireReactNode(),g=(0,m.tuple)("text","input");function C(O){return!!(O.prefix||O.suffix||O.allowClear)}function b(O){return!!(O.addonBefore||O.addonAfter)}var y=function(O){(0,l.default)(_,O);var w=(0,d.default)(_);function _(){var F;return(0,s.default)(this,_),F=w.apply(this,arguments),F.containerRef=u.createRef(),F.onInputMouseUp=function(L){var E;if(!((E=F.containerRef.current)===null||E===void 0)&&E.contains(L.target)){var P=F.props.triggerFocus;P==null||P()}},F}return(0,c.default)(_,[{key:"renderClearIcon",value:function(L){var E=this.props,P=E.allowClear,A=E.value,W=E.disabled,J=E.readOnly,z=E.handleReset;if(!P)return null;var Y=!W&&!J&&A,Q="".concat(L,"-clear-icon");return u.createElement(p.default,{onClick:z,className:(0,f.default)((0,a.default)({},"".concat(Q,"-hidden"),!Y),Q),role:"button"})}},{key:"renderSuffix",value:function(L){var E=this.props,P=E.suffix,A=E.allowClear;return P||A?u.createElement("span",{className:"".concat(L,"-suffix")},this.renderClearIcon(L),P):null}},{key:"renderLabeledIcon",value:function(L,E){var P,A=this.props,W=A.focused,J=A.value,z=A.prefix,Y=A.className,Q=A.size,oe=A.suffix,ee=A.disabled,X=A.allowClear,ue=A.direction,Re=A.style,xe=A.readOnly,ce=A.bordered,Ce=this.renderSuffix(L);if(!C(this.props))return(0,h.cloneElement)(E,{value:J});var te=z?u.createElement("span",{className:"".concat(L,"-prefix")},z):null,de=(0,f.default)("".concat(L,"-affix-wrapper"),(P={},(0,a.default)(P,"".concat(L,"-affix-wrapper-focused"),W),(0,a.default)(P,"".concat(L,"-affix-wrapper-disabled"),ee),(0,a.default)(P,"".concat(L,"-affix-wrapper-sm"),Q==="small"),(0,a.default)(P,"".concat(L,"-affix-wrapper-lg"),Q==="large"),(0,a.default)(P,"".concat(L,"-affix-wrapper-input-with-clear-btn"),oe&&X&&J),(0,a.default)(P,"".concat(L,"-affix-wrapper-rtl"),ue==="rtl"),(0,a.default)(P,"".concat(L,"-affix-wrapper-readonly"),xe),(0,a.default)(P,"".concat(L,"-affix-wrapper-borderless"),!ce),(0,a.default)(P,"".concat(Y),!b(this.props)&&Y),P));return u.createElement("span",{ref:this.containerRef,className:de,style:Re,onMouseUp:this.onInputMouseUp},te,(0,h.cloneElement)(E,{style:null,value:J,className:(0,I.getInputClassName)(L,ce,Q,ee)}),Ce)}},{key:"renderInputWithLabel",value:function(L,E){var P,A=this.props,W=A.addonBefore,J=A.addonAfter,z=A.style,Y=A.size,Q=A.className,oe=A.direction;if(!b(this.props))return E;var ee="".concat(L,"-group"),X="".concat(ee,"-addon"),ue=W?u.createElement("span",{className:X},W):null,Re=J?u.createElement("span",{className:X},J):null,xe=(0,f.default)("".concat(L,"-wrapper"),ee,(0,a.default)({},"".concat(ee,"-rtl"),oe==="rtl")),ce=(0,f.default)("".concat(L,"-group-wrapper"),(P={},(0,a.default)(P,"".concat(L,"-group-wrapper-sm"),Y==="small"),(0,a.default)(P,"".concat(L,"-group-wrapper-lg"),Y==="large"),(0,a.default)(P,"".concat(L,"-group-wrapper-rtl"),oe==="rtl"),P),Q);return u.createElement("span",{className:ce,style:z},u.createElement("span",{className:xe},ue,(0,h.cloneElement)(E,{style:null}),Re))}},{key:"renderTextAreaWithClearIcon",value:function(L,E){var P,A=this.props,W=A.value,J=A.allowClear,z=A.className,Y=A.style,Q=A.direction,oe=A.bordered;if(!J)return(0,h.cloneElement)(E,{value:W});var ee=(0,f.default)("".concat(L,"-affix-wrapper"),"".concat(L,"-affix-wrapper-textarea-with-clear-btn"),(P={},(0,a.default)(P,"".concat(L,"-affix-wrapper-rtl"),Q==="rtl"),(0,a.default)(P,"".concat(L,"-affix-wrapper-borderless"),!oe),(0,a.default)(P,"".concat(z),!b(this.props)&&z),P));return u.createElement("span",{className:ee,style:Y},(0,h.cloneElement)(E,{style:null,value:W}),this.renderClearIcon(L))}},{key:"render",value:function(){var L=this.props,E=L.prefixCls,P=L.inputType,A=L.element;return P===g[0]?this.renderTextAreaWithClearIcon(E,A):this.renderInputWithLabel(E,this.renderLabeledIcon(E,A))}}]),_}(u.Component),v=y;e.default=v}(ClearableLabeledInput)),ClearableLabeledInput}(function(e){var o=interopRequireWildcard.exports,r=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=r(_typeof$2.exports),s=r(requireToConsumableArray()),c=r(require_extends()),l=r(requireDefineProperty()),d=r(requireSlicedToArray()),u=o(React__default.default),f=r(require$$8),p=r(requireOmit()),m=r(requireClassnames()),I=r(requireUseMergedState()),h=r(requireClearableLabeledInput()),g=requireConfigProvider(),C=requireInput(),b=r(requireSizeContext()),y=function(w,_){var F={};for(var L in w)Object.prototype.hasOwnProperty.call(w,L)&&_.indexOf(L)<0&&(F[L]=w[L]);if(w!=null&&typeof Object.getOwnPropertySymbols=="function")for(var E=0,L=Object.getOwnPropertySymbols(w);E<L.length;E++)_.indexOf(L[E])<0&&Object.prototype.propertyIsEnumerable.call(w,L[E])&&(F[L[E]]=w[L[E]]);return F},v=u.forwardRef(function(w,_){var F,L=w.prefixCls,E=w.bordered,P=E===void 0?!0:E,A=w.showCount,W=A===void 0?!1:A,J=w.maxLength,z=w.className,Y=w.style,Q=w.size,oe=y(w,["prefixCls","bordered","showCount","maxLength","className","style","size"]),ee=u.useContext(g.ConfigContext),X=ee.getPrefixCls,ue=ee.direction,Re=u.useContext(b.default),xe=u.useRef(null),ce=u.useRef(null),Ce=(0,I.default)(oe.defaultValue,{value:oe.value}),te=(0,d.default)(Ce,2),de=te[0],N=te[1],U=u.useRef(oe.value);u.useEffect(function(){(oe.value!==void 0||U.current!==oe.value)&&(N(oe.value),U.current=oe.value)},[oe.value,U.current]);var re=function(Tt,Ot){oe.value===void 0&&(N(Tt),Ot==null||Ot())},Te=function(Tt){re(Tt.target.value),(0,C.resolveOnChange)(xe.current,Tt,oe.onChange)},Fe=function(Tt){re("",function(){var Ot;(Ot=xe.current)===null||Ot===void 0||Ot.focus()}),(0,C.resolveOnChange)(xe.current,Tt,oe.onChange)},M=X("input",L);u.useImperativeHandle(_,function(){var yt;return{resizableTextArea:(yt=xe.current)===null||yt===void 0?void 0:yt.resizableTextArea,focus:function(Ot){var $t,Vt;(0,C.triggerFocus)((Vt=($t=xe.current)===null||$t===void 0?void 0:$t.resizableTextArea)===null||Vt===void 0?void 0:Vt.textArea,Ot)},blur:function(){var Ot;return(Ot=xe.current)===null||Ot===void 0?void 0:Ot.blur()}}});var j=u.createElement(f.default,(0,c.default)({},(0,p.default)(oe,["allowClear"]),{maxLength:J,className:(0,m.default)((F={},(0,l.default)(F,"".concat(M,"-borderless"),!P),(0,l.default)(F,z,z&&!W),(0,l.default)(F,"".concat(M,"-sm"),Re==="small"||Q==="small"),(0,l.default)(F,"".concat(M,"-lg"),Re==="large"||Q==="large"),F)),style:W?void 0:Y,prefixCls:M,onChange:Te,ref:xe})),we=(0,C.fixControlledValue)(de),je=Number(J)>0;we=je?(0,s.default)(we).slice(0,J).join(""):we;var tt=u.createElement(h.default,(0,c.default)({},oe,{prefixCls:M,direction:ue,inputType:"text",value:we,element:j,handleReset:Fe,ref:ce,bordered:P}));if(W){var Ne=Math.min(we.length,J!=null?J:1/0),Ge="";return(0,a.default)(W)==="object"?Ge=W.formatter({count:Ne,maxLength:J}):Ge="".concat(Ne).concat(je?" / ".concat(J):""),u.createElement("div",{className:(0,m.default)("".concat(M,"-textarea"),(0,l.default)({},"".concat(M,"-textarea-rtl"),ue==="rtl"),"".concat(M,"-textarea-show-count"),z),style:Y,"data-count":Ge},tt)}return tt}),O=v;e.default=O})(TextArea$2);const Jt=getDefaultExportFromCjs(TextArea$2),{error:error$2,warning:warning$1}=antd.Modal,showDialog$8=e=>{let o,r,a;if(typeof e=="string"&&e.indexOf(" -- ")!==-1&&e.indexOf(`
|
|
88
88
|
|
|
89
89
|
`)!==-1){const l=e.split(`
|
|
90
90
|
|
|
91
|
-
`);o=l[1];const d=l[0].split(" -- ");r=d[0],a=d[1]}else o=e,r="error",a="Error";const s=r==="error"?jsxRuntime.jsx(Icon.ExclamationCircleOutlined,{}):jsxRuntime.jsx(Icon.WarningOutlined,{});(r==="error"?error$2:warning$1)({title:a,icon:s,centered:!0,content:o})},TranslationModal=e=>{const{visible:o,onCloseModal:r,model:a,id:s,field:c,onSubmitSucceed:l}=e,{modalWidth:d}=useWindowDimensions(),{t:u}=React.useContext(LocaleContext),[f,p]=React.useState([]),[m,I]=React.useState(!1),[h,
|
|
91
|
+
`);o=l[1];const d=l[0].split(" -- ");r=d[0],a=d[1]}else o=e,r="error",a="Error";const s=r==="error"?jsxRuntime.jsx(Icon.ExclamationCircleOutlined,{}):jsxRuntime.jsx(Icon.WarningOutlined,{});(r==="error"?error$2:warning$1)({title:a,icon:s,centered:!0,content:o})},TranslationModal=e=>{const{visible:o,onCloseModal:r,model:a,id:s,field:c,onSubmitSucceed:l}=e,{modalWidth:d}=useWindowDimensions(),{t:u}=React.useContext(LocaleContext),[f,p]=React.useState([]),[m,I]=React.useState(!1),[h,g]=React.useState(!1),[C,b]=React.useState({}),y=React.useRef();React.useEffect(()=>{o?v():b({})},[o]);async function v(){I(!0);try{const E=await O();await w(E)}catch(E){showDialog$8(E)}I(!1)}async function O(){const P=(await ConnectionProvider.getHandler().search({params:[["translatable","=","1"]],fields:["code","name"],model:"res.lang"})).map(A=>({code:A.code,name:A.name}));return p==null||p(P),P}async function w(E){const P={};for(const A of E){const W=(await ConnectionProvider.getHandler().readObjects({model:a,ids:[s],fieldsToRetrieve:[c],context:{lang:A.code}}))[0];P[A.code]=W[c]||""}y.current=P,b(P)}function _(){return f.map((E,P)=>jsxRuntime.jsxs(antd.Row,{style:{paddingBottom:20},children:[jsxRuntime.jsx(antd.Col,{flex:"8rem",style:{paddingRight:10},children:E.name}),jsxRuntime.jsx(antd.Col,{flex:"auto",children:jsxRuntime.jsx(Jt,{rows:4,value:C[E.code]||"",onChange:A=>{b({...C,[E.code]:A.target.value})},disabled:h})})]},P))}async function F(){g(!0);try{for(const E of Object.keys(C))C[E]!==y.current[E]&&await ConnectionProvider.getHandler().update({model:a,id:s,values:{[c]:C[E]},context:{lang:E},fields:{}})}catch(E){showDialog$8(E)}g(!1),l()}function L(){return m?jsxRuntime.jsx(antd.Spin,{}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[_(),jsxRuntime.jsx(antd.Divider,{}),jsxRuntime.jsx(antd.Row,{justify:"end",children:jsxRuntime.jsxs(antd.Space,{children:[jsxRuntime.jsx(antd.Button,{icon:jsxRuntime.jsx(Icon.CloseOutlined,{}),onClick:r,disabled:h,children:u("cancel")}),jsxRuntime.jsx(antd.Button,{icon:h?jsxRuntime.jsx(Icon.LoadingOutlined,{}):jsxRuntime.jsx(Icon.CheckOutlined,{}),disabled:h,onClick:F,style:{marginLeft:15},type:"primary",children:u("ok")})]})})]})}return jsxRuntime.jsx(antd.Modal,{title:u("translate"),centered:!0,width:d,visible:o,closable:!0,onCancel:r,footer:null,destroyOnClose:!0,maskClosable:!1,children:L()})};function ButtonWithTooltip(e){const{tooltip:o,...r}=e;return jsxRuntime.jsx(antd.Tooltip,{title:o,children:jsxRuntime.jsx(antd.Button,{...r})})}const{info}=antd.Modal,showDialog$7=e=>{info({title:"",centered:!0,content:e})},Char=e=>{const{ooui:o,isSearchField:r=!1}=e,{id:a,readOnly:s,isPassword:c,required:l,translatable:d}=o,u=l&&!s?Config.requiredClass:void 0,f=React.useContext(FormContext$1),{elementHasLostFocus:p}=f||{};let m=jsxRuntime.jsx(antd.Input,{disabled:s||d&&!r,id:a,className:u,maxLength:o.size,onBlur:p});return c&&(m=jsxRuntime.jsx(antd.Input.Password,{disabled:s,id:a,onBlur:p})),d&&!s&&!r&&(m=jsxRuntime.jsx(TranslatableChar,{field:a,requiredClass:u})),jsxRuntime.jsx(Field$1,{required:l,...e,children:m})},TranslatableChar=({value:e,field:o,requiredClass:r,onChange:a})=>{const s=React.useContext(FormContext$1),{activeId:c,activeModel:l,fetchValues:d,formHasChanges:u,elementHasLostFocus:f}=s||{},[p,m]=React.useState(!1),{t:I}=React.useContext(LocaleContext);return c?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{onClick:()=>{if(u!=null&&u()){showDialog$7(I("saveBeforeTranslate"));return}p||m(!0)},children:jsxRuntime.jsx(antd.Input,{value:e,disabled:!0,id:o,className:r,onChange:h=>{a==null||a(h.target.value)},onBlur:f,style:{cursor:"pointer"}})}),jsxRuntime.jsx(TranslationModal,{id:c,model:l,field:o,visible:p,onCloseModal:()=>{m(!1)},onSubmitSucceed:()=>{m(!1),d==null||d()}})]}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:jsxRuntime.jsxs(antd.Row,{gutter:8,wrap:!1,children:[jsxRuntime.jsx(antd.Col,{flex:"auto",children:jsxRuntime.jsx(antd.Input,{value:e,id:o,className:r,onChange:h=>{a==null||a(h.target.value)},onBlur:f})}),jsxRuntime.jsx(antd.Col,{flex:"32px",children:jsxRuntime.jsx(ButtonWithTooltip,{tooltip:I("translate"),icon:jsxRuntime.jsx(Icon.TranslationOutlined,{}),onClick:async()=>{u!=null&&u()?showDialog$7(I("saveBeforeTranslate")):showDialog$7(I("enterTextBeforeTranslate"))},children:I("translate")})})]})})},{Option:Option$1}=antd.Select,Selection=e=>{const{ooui:o}=e,{required:r}=o;return jsxRuntime.jsx(Field$1,{required:r,type:"any",...e,children:jsxRuntime.jsx(SelectionInput$1,{...e})})},SelectionInput$1=e=>{const{ooui:o,onChange:r,value:a}=e,{selectionValues:s,readOnly:c,required:l}=o,d=Array.from(s.entries()),u=d&&d.length&&d.map(p=>{const[m,I]=p;return jsxRuntime.jsx(Option$1,{value:m,children:I},m)}),f=l&&!c?RequiredSelect$1:antd.Select;return jsxRuntime.jsx(f,{disabled:c,onChange:r,value:a,optionFilterProp:"children",filterOption:(p,m)=>m.children.toLowerCase().indexOf(p.toLowerCase())>=0,showSearch:!0,children:u})},RequiredSelect$1=k__default.default(antd.Select)`
|
|
92
92
|
&.ant-select:not(.ant-select-customize-input) .ant-select-selector {
|
|
93
93
|
background-color: ${Config.requiredColor};
|
|
94
94
|
}
|
|
@@ -100,11 +100,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
100
100
|
.ant-checkbox-checked .ant-checkbox-inner {
|
|
101
101
|
background-color: #089cff;
|
|
102
102
|
}
|
|
103
|
-
`;function isObject$3(e){var o=typeof e;return e!=null&&(o=="object"||o=="function")}var isObject_1=isObject$3,freeGlobal$1=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,_freeGlobal=freeGlobal$1,freeGlobal=_freeGlobal,freeSelf=typeof self=="object"&&self&&self.Object===Object&&self,root$2=freeGlobal||freeSelf||Function("return this")(),_root=root$2,root$1=_root,now$2=function(){return root$1.Date.now()},now_1=now$2,reWhitespace=/\s/;function trimmedEndIndex$1(e){for(var o=e.length;o--&&reWhitespace.test(e.charAt(o)););return o}var _trimmedEndIndex=trimmedEndIndex$1,trimmedEndIndex=_trimmedEndIndex,reTrimStart=/^\s+/;function baseTrim$1(e){return e&&e.slice(0,trimmedEndIndex(e)+1).replace(reTrimStart,"")}var _baseTrim=baseTrim$1,root=_root,Symbol$3=root.Symbol,_Symbol=Symbol$3,Symbol$2=_Symbol,objectProto$1=Object.prototype,hasOwnProperty=objectProto$1.hasOwnProperty,nativeObjectToString$1=objectProto$1.toString,symToStringTag$1=Symbol$2?Symbol$2.toStringTag:void 0;function getRawTag$1(e){var o=hasOwnProperty.call(e,symToStringTag$1),r=e[symToStringTag$1];try{e[symToStringTag$1]=void 0;var a=!0}catch{}var s=nativeObjectToString$1.call(e);return a&&(o?e[symToStringTag$1]=r:delete e[symToStringTag$1]),s}var _getRawTag=getRawTag$1,objectProto=Object.prototype,nativeObjectToString=objectProto.toString;function objectToString$1(e){return nativeObjectToString.call(e)}var _objectToString=objectToString$1,Symbol$1=_Symbol,getRawTag=_getRawTag,objectToString=_objectToString,nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=Symbol$1?Symbol$1.toStringTag:void 0;function baseGetTag$1(e){return e==null?e===void 0?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(e)?getRawTag(e):objectToString(e)}var _baseGetTag=baseGetTag$1;function isObjectLike$1(e){return e!=null&&typeof e=="object"}var isObjectLike_1=isObjectLike$1,baseGetTag=_baseGetTag,isObjectLike=isObjectLike_1,symbolTag="[object Symbol]";function isSymbol$1(e){return typeof e=="symbol"||isObjectLike(e)&&baseGetTag(e)==symbolTag}var isSymbol_1=isSymbol$1,baseTrim=_baseTrim,isObject$2=isObject_1,isSymbol=isSymbol_1,NAN=0/0,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=parseInt;function toNumber$1(e){if(typeof e=="number")return e;if(isSymbol(e))return NAN;if(isObject$2(e)){var o=typeof e.valueOf=="function"?e.valueOf():e;e=isObject$2(o)?o+"":o}if(typeof e!="string")return e===0?e:+e;e=baseTrim(e);var r=reIsBinary.test(e);return r||reIsOctal.test(e)?freeParseInt(e.slice(2),r?2:8):reIsBadHex.test(e)?NAN:+e}var toNumber_1=toNumber$1,isObject$1=isObject_1,now$1=now_1,toNumber=toNumber_1,FUNC_ERROR_TEXT="Expected a function",nativeMax=Math.max,nativeMin=Math.min;function debounce(e,o,r){var a,s,c,l,d,u,f=0,p=!1,m=!1,I=!0;if(typeof e!="function")throw new TypeError(FUNC_ERROR_TEXT);o=toNumber(o)||0,isObject$1(r)&&(p=!!r.leading,m="maxWait"in r,c=m?nativeMax(toNumber(r.maxWait)||0,o):c,I="trailing"in r?!!r.trailing:I);function h(F){var L=a,E=s;return a=s=void 0,f=F,l=e.apply(E,L),l}function v(F){return f=F,d=setTimeout(y,o),p?h(F):l}function C(F){var L=F-u,E=F-f,P=o-L;return m?nativeMin(P,c-E):P}function b(F){var L=F-u,E=F-f;return u===void 0||L>=o||L<0||m&&E>=c}function y(){var F=now$1();if(b(F))return g(F);d=setTimeout(y,C(F))}function g(F){return d=void 0,I&&a?h(F):(a=s=void 0,l)}function O(){d!==void 0&&clearTimeout(d),f=0,a=u=s=d=void 0}function w(){return d===void 0?l:g(now$1())}function _(){var F=now$1(),L=b(F);if(a=arguments,s=this,u=F,L){if(d===void 0)return v(u);if(m)return clearTimeout(d),d=setTimeout(y,o),h(u)}return d===void 0&&(d=setTimeout(y,o)),l}return _.cancel=O,_.flush=w,_}var debounce_1=debounce,browser$1={exports:{}},lib$2={},readableBrowser={exports:{}},events={exports:{}},R=typeof Reflect=="object"?Reflect:null,ReflectApply=R&&typeof R.apply=="function"?R.apply:function(o,r,a){return Function.prototype.apply.call(o,r,a)},ReflectOwnKeys;R&&typeof R.ownKeys=="function"?ReflectOwnKeys=R.ownKeys:Object.getOwnPropertySymbols?ReflectOwnKeys=function(o){return Object.getOwnPropertyNames(o).concat(Object.getOwnPropertySymbols(o))}:ReflectOwnKeys=function(o){return Object.getOwnPropertyNames(o)};function ProcessEmitWarning(e){console&&console.warn&&console.warn(e)}var NumberIsNaN=Number.isNaN||function(o){return o!==o};function EventEmitter(){EventEmitter.init.call(this)}events.exports=EventEmitter,events.exports.once=once$2,EventEmitter.EventEmitter=EventEmitter,EventEmitter.prototype._events=void 0,EventEmitter.prototype._eventsCount=0,EventEmitter.prototype._maxListeners=void 0;var defaultMaxListeners=10;function checkListener(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(EventEmitter,"defaultMaxListeners",{enumerable:!0,get:function(){return defaultMaxListeners},set:function(e){if(typeof e!="number"||e<0||NumberIsNaN(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");defaultMaxListeners=e}}),EventEmitter.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},EventEmitter.prototype.setMaxListeners=function(o){if(typeof o!="number"||o<0||NumberIsNaN(o))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+o+".");return this._maxListeners=o,this};function _getMaxListeners(e){return e._maxListeners===void 0?EventEmitter.defaultMaxListeners:e._maxListeners}EventEmitter.prototype.getMaxListeners=function(){return _getMaxListeners(this)},EventEmitter.prototype.emit=function(o){for(var r=[],a=1;a<arguments.length;a++)r.push(arguments[a]);var s=o==="error",c=this._events;if(c!==void 0)s=s&&c.error===void 0;else if(!s)return!1;if(s){var l;if(r.length>0&&(l=r[0]),l instanceof Error)throw l;var d=new Error("Unhandled error."+(l?" ("+l.message+")":""));throw d.context=l,d}var u=c[o];if(u===void 0)return!1;if(typeof u=="function")ReflectApply(u,this,r);else for(var f=u.length,p=arrayClone(u,f),a=0;a<f;++a)ReflectApply(p[a],this,r);return!0};function _addListener(e,o,r,a){var s,c,l;if(checkListener(r),c=e._events,c===void 0?(c=e._events=Object.create(null),e._eventsCount=0):(c.newListener!==void 0&&(e.emit("newListener",o,r.listener?r.listener:r),c=e._events),l=c[o]),l===void 0)l=c[o]=r,++e._eventsCount;else if(typeof l=="function"?l=c[o]=a?[r,l]:[l,r]:a?l.unshift(r):l.push(r),s=_getMaxListeners(e),s>0&&l.length>s&&!l.warned){l.warned=!0;var d=new Error("Possible EventEmitter memory leak detected. "+l.length+" "+String(o)+" listeners added. Use emitter.setMaxListeners() to increase limit");d.name="MaxListenersExceededWarning",d.emitter=e,d.type=o,d.count=l.length,ProcessEmitWarning(d)}return e}EventEmitter.prototype.addListener=function(o,r){return _addListener(this,o,r,!1)},EventEmitter.prototype.on=EventEmitter.prototype.addListener,EventEmitter.prototype.prependListener=function(o,r){return _addListener(this,o,r,!0)};function onceWrapper(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function _onceWrap(e,o,r){var a={fired:!1,wrapFn:void 0,target:e,type:o,listener:r},s=onceWrapper.bind(a);return s.listener=r,a.wrapFn=s,s}EventEmitter.prototype.once=function(o,r){return checkListener(r),this.on(o,_onceWrap(this,o,r)),this},EventEmitter.prototype.prependOnceListener=function(o,r){return checkListener(r),this.prependListener(o,_onceWrap(this,o,r)),this},EventEmitter.prototype.removeListener=function(o,r){var a,s,c,l,d;if(checkListener(r),s=this._events,s===void 0)return this;if(a=s[o],a===void 0)return this;if(a===r||a.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete s[o],s.removeListener&&this.emit("removeListener",o,a.listener||r));else if(typeof a!="function"){for(c=-1,l=a.length-1;l>=0;l--)if(a[l]===r||a[l].listener===r){d=a[l].listener,c=l;break}if(c<0)return this;c===0?a.shift():spliceOne(a,c),a.length===1&&(s[o]=a[0]),s.removeListener!==void 0&&this.emit("removeListener",o,d||r)}return this},EventEmitter.prototype.off=EventEmitter.prototype.removeListener,EventEmitter.prototype.removeAllListeners=function(o){var r,a,s;if(a=this._events,a===void 0)return this;if(a.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):a[o]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete a[o]),this;if(arguments.length===0){var c=Object.keys(a),l;for(s=0;s<c.length;++s)l=c[s],l!=="removeListener"&&this.removeAllListeners(l);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(r=a[o],typeof r=="function")this.removeListener(o,r);else if(r!==void 0)for(s=r.length-1;s>=0;s--)this.removeListener(o,r[s]);return this};function _listeners(e,o,r){var a=e._events;if(a===void 0)return[];var s=a[o];return s===void 0?[]:typeof s=="function"?r?[s.listener||s]:[s]:r?unwrapListeners(s):arrayClone(s,s.length)}EventEmitter.prototype.listeners=function(o){return _listeners(this,o,!0)},EventEmitter.prototype.rawListeners=function(o){return _listeners(this,o,!1)},EventEmitter.listenerCount=function(e,o){return typeof e.listenerCount=="function"?e.listenerCount(o):listenerCount.call(e,o)},EventEmitter.prototype.listenerCount=listenerCount;function listenerCount(e){var o=this._events;if(o!==void 0){var r=o[e];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}EventEmitter.prototype.eventNames=function(){return this._eventsCount>0?ReflectOwnKeys(this._events):[]};function arrayClone(e,o){for(var r=new Array(o),a=0;a<o;++a)r[a]=e[a];return r}function spliceOne(e,o){for(;o+1<e.length;o++)e[o]=e[o+1];e.pop()}function unwrapListeners(e){for(var o=new Array(e.length),r=0;r<o.length;++r)o[r]=e[r].listener||e[r];return o}function once$2(e,o){return new Promise(function(r,a){function s(l){e.removeListener(o,c),a(l)}function c(){typeof e.removeListener=="function"&&e.removeListener("error",s),r([].slice.call(arguments))}eventTargetAgnosticAddListener(e,o,c,{once:!0}),o!=="error"&&addErrorHandlerIfEventEmitter(e,s,{once:!0})})}function addErrorHandlerIfEventEmitter(e,o,r){typeof e.on=="function"&&eventTargetAgnosticAddListener(e,"error",o,r)}function eventTargetAgnosticAddListener(e,o,r,a){if(typeof e.on=="function")a.once?e.once(o,r):e.on(o,r);else if(typeof e.addEventListener=="function")e.addEventListener(o,function s(c){a.once&&e.removeEventListener(o,s),r(c)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}var streamBrowser=events.exports.EventEmitter;const __viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$3=getAugmentedNamespace(__viteBrowserExternal$1);var buffer_list,hasRequiredBuffer_list;function requireBuffer_list(){if(hasRequiredBuffer_list)return buffer_list;hasRequiredBuffer_list=1;function e(I,h){var v=Object.keys(I);if(Object.getOwnPropertySymbols){var C=Object.getOwnPropertySymbols(I);h&&(C=C.filter(function(b){return Object.getOwnPropertyDescriptor(I,b).enumerable})),v.push.apply(v,C)}return v}function o(I){for(var h=1;h<arguments.length;h++){var v=arguments[h]!=null?arguments[h]:{};h%2?e(Object(v),!0).forEach(function(C){r(I,C,v[C])}):Object.getOwnPropertyDescriptors?Object.defineProperties(I,Object.getOwnPropertyDescriptors(v)):e(Object(v)).forEach(function(C){Object.defineProperty(I,C,Object.getOwnPropertyDescriptor(v,C))})}return I}function r(I,h,v){return h in I?Object.defineProperty(I,h,{value:v,enumerable:!0,configurable:!0,writable:!0}):I[h]=v,I}function a(I,h){if(!(I instanceof h))throw new TypeError("Cannot call a class as a function")}function s(I,h){for(var v=0;v<h.length;v++){var C=h[v];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(I,C.key,C)}}function c(I,h,v){return h&&s(I.prototype,h),v&&s(I,v),I}var l=require$$0__default.default,d=l.Buffer,u=require$$3,f=u.inspect,p=f&&f.custom||"inspect";function m(I,h,v){d.prototype.copy.call(I,h,v)}return buffer_list=function(){function I(){a(this,I),this.head=null,this.tail=null,this.length=0}return c(I,[{key:"push",value:function(v){var C={data:v,next:null};this.length>0?this.tail.next=C:this.head=C,this.tail=C,++this.length}},{key:"unshift",value:function(v){var C={data:v,next:this.head};this.length===0&&(this.tail=C),this.head=C,++this.length}},{key:"shift",value:function(){if(this.length!==0){var v=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,v}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(v){if(this.length===0)return"";for(var C=this.head,b=""+C.data;C=C.next;)b+=v+C.data;return b}},{key:"concat",value:function(v){if(this.length===0)return d.alloc(0);for(var C=d.allocUnsafe(v>>>0),b=this.head,y=0;b;)m(b.data,C,y),y+=b.data.length,b=b.next;return C}},{key:"consume",value:function(v,C){var b;return v<this.head.data.length?(b=this.head.data.slice(0,v),this.head.data=this.head.data.slice(v)):v===this.head.data.length?b=this.shift():b=C?this._getString(v):this._getBuffer(v),b}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(v){var C=this.head,b=1,y=C.data;for(v-=y.length;C=C.next;){var g=C.data,O=v>g.length?g.length:v;if(O===g.length?y+=g:y+=g.slice(0,v),v-=O,v===0){O===g.length?(++b,C.next?this.head=C.next:this.head=this.tail=null):(this.head=C,C.data=g.slice(O));break}++b}return this.length-=b,y}},{key:"_getBuffer",value:function(v){var C=d.allocUnsafe(v),b=this.head,y=1;for(b.data.copy(C),v-=b.data.length;b=b.next;){var g=b.data,O=v>g.length?g.length:v;if(g.copy(C,C.length-v,0,O),v-=O,v===0){O===g.length?(++y,b.next?this.head=b.next:this.head=this.tail=null):(this.head=b,b.data=g.slice(O));break}++y}return this.length-=y,C}},{key:p,value:function(v,C){return f(this,o({},C,{depth:0,customInspect:!1}))}}]),I}(),buffer_list}function destroy(e,o){var r=this,a=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return a||s?(o?o(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(emitErrorNT,this,e)):process.nextTick(emitErrorNT,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(c){!o&&c?r._writableState?r._writableState.errorEmitted?process.nextTick(emitCloseNT,r):(r._writableState.errorEmitted=!0,process.nextTick(emitErrorAndCloseNT,r,c)):process.nextTick(emitErrorAndCloseNT,r,c):o?(process.nextTick(emitCloseNT,r),o(c)):process.nextTick(emitCloseNT,r)}),this)}function emitErrorAndCloseNT(e,o){emitErrorNT(e,o),emitCloseNT(e)}function emitCloseNT(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function undestroy(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function emitErrorNT(e,o){e.emit("error",o)}function errorOrDestroy(e,o){var r=e._readableState,a=e._writableState;r&&r.autoDestroy||a&&a.autoDestroy?e.destroy(o):e.emit("error",o)}var destroy_1={destroy,undestroy,errorOrDestroy},errorsBrowser={};function _inheritsLoose(e,o){e.prototype=Object.create(o.prototype),e.prototype.constructor=e,e.__proto__=o}var codes={};function createErrorType(e,o,r){r||(r=Error);function a(c,l,d){return typeof o=="string"?o:o(c,l,d)}var s=function(c){_inheritsLoose(l,c);function l(d,u,f){return c.call(this,a(d,u,f))||this}return l}(r);s.prototype.name=r.name,s.prototype.code=e,codes[e]=s}function oneOf(e,o){if(Array.isArray(e)){var r=e.length;return e=e.map(function(a){return String(a)}),r>2?"one of ".concat(o," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:r===2?"one of ".concat(o," ").concat(e[0]," or ").concat(e[1]):"of ".concat(o," ").concat(e[0])}else return"of ".concat(o," ").concat(String(e))}function startsWith(e,o,r){return e.substr(!r||r<0?0:+r,o.length)===o}function endsWith(e,o,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-o.length,r)===o}function includes(e,o,r){return typeof r!="number"&&(r=0),r+o.length>e.length?!1:e.indexOf(o,r)!==-1}createErrorType("ERR_INVALID_OPT_VALUE",function(e,o){return'The value "'+o+'" is invalid for option "'+e+'"'},TypeError),createErrorType("ERR_INVALID_ARG_TYPE",function(e,o,r){var a;typeof o=="string"&&startsWith(o,"not ")?(a="must not be",o=o.replace(/^not /,"")):a="must be";var s;if(endsWith(e," argument"))s="The ".concat(e," ").concat(a," ").concat(oneOf(o,"type"));else{var c=includes(e,".")?"property":"argument";s='The "'.concat(e,'" ').concat(c," ").concat(a," ").concat(oneOf(o,"type"))}return s+=". Received type ".concat(typeof r),s},TypeError),createErrorType("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),createErrorType("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),createErrorType("ERR_STREAM_PREMATURE_CLOSE","Premature close"),createErrorType("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),createErrorType("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),createErrorType("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),createErrorType("ERR_STREAM_WRITE_AFTER_END","write after end"),createErrorType("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),createErrorType("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),createErrorType("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),errorsBrowser.codes=codes;var ERR_INVALID_OPT_VALUE=errorsBrowser.codes.ERR_INVALID_OPT_VALUE;function highWaterMarkFrom(e,o,r){return e.highWaterMark!=null?e.highWaterMark:o?e[r]:null}function getHighWaterMark(e,o,r,a){var s=highWaterMarkFrom(o,a,r);if(s!=null){if(!(isFinite(s)&&Math.floor(s)===s)||s<0){var c=a?r:"highWaterMark";throw new ERR_INVALID_OPT_VALUE(c,s)}return Math.floor(s)}return e.objectMode?16:16*1024}var state={getHighWaterMark},inherits_browser={exports:{}};typeof Object.create=="function"?inherits_browser.exports=function(o,r){r&&(o.super_=r,o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}))}:inherits_browser.exports=function(o,r){if(r){o.super_=r;var a=function(){};a.prototype=r.prototype,o.prototype=new a,o.prototype.constructor=o}};var browser=deprecate$1;function deprecate$1(e,o){if(config("noDeprecation"))return e;var r=!1;function a(){if(!r){if(config("throwDeprecation"))throw new Error(o);config("traceDeprecation")?console.trace(o):console.warn(o),r=!0}return e.apply(this,arguments)}return a}function config(e){try{if(!commonjsGlobal.localStorage)return!1}catch{return!1}var o=commonjsGlobal.localStorage[e];return o==null?!1:String(o).toLowerCase()==="true"}var _stream_writable,hasRequired_stream_writable;function require_stream_writable(){if(hasRequired_stream_writable)return _stream_writable;hasRequired_stream_writable=1,_stream_writable=E;function e(N){var U=this;this.next=null,this.entry=null,this.finish=function(){ue(U,N)}}var o;E.WritableState=F;var r={deprecate:browser},a=streamBrowser,s=require$$0__default.default.Buffer,c=commonjsGlobal.Uint8Array||function(){};function l(N){return s.from(N)}function d(N){return s.isBuffer(N)||N instanceof c}var u=destroy_1,f=state,p=f.getHighWaterMark,m=errorsBrowser.codes,I=m.ERR_INVALID_ARG_TYPE,h=m.ERR_METHOD_NOT_IMPLEMENTED,v=m.ERR_MULTIPLE_CALLBACK,C=m.ERR_STREAM_CANNOT_PIPE,b=m.ERR_STREAM_DESTROYED,y=m.ERR_STREAM_NULL_VALUES,g=m.ERR_STREAM_WRITE_AFTER_END,O=m.ERR_UNKNOWN_ENCODING,w=u.errorOrDestroy;inherits_browser.exports(E,a);function _(){}function F(N,U,re){o=o||require_stream_duplex(),N=N||{},typeof re!="boolean"&&(re=U instanceof o),this.objectMode=!!N.objectMode,re&&(this.objectMode=this.objectMode||!!N.writableObjectMode),this.highWaterMark=p(this,N,"writableHighWaterMark",re),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var Te=N.decodeStrings===!1;this.decodeStrings=!Te,this.defaultEncoding=N.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Fe){oe(U,Fe)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=N.emitClose!==!1,this.autoDestroy=!!N.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}F.prototype.getBuffer=function(){for(var U=this.bufferedRequest,re=[];U;)re.push(U),U=U.next;return re},function(){try{Object.defineProperty(F.prototype,"buffer",{get:r.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var L;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(L=Function.prototype[Symbol.hasInstance],Object.defineProperty(E,Symbol.hasInstance,{value:function(U){return L.call(this,U)?!0:this!==E?!1:U&&U._writableState instanceof F}})):L=function(U){return U instanceof this};function E(N){o=o||require_stream_duplex();var U=this instanceof o;if(!U&&!L.call(E,this))return new E(N);this._writableState=new F(N,this,U),this.writable=!0,N&&(typeof N.write=="function"&&(this._write=N.write),typeof N.writev=="function"&&(this._writev=N.writev),typeof N.destroy=="function"&&(this._destroy=N.destroy),typeof N.final=="function"&&(this._final=N.final)),a.call(this)}E.prototype.pipe=function(){w(this,new C)};function P(N,U){var re=new g;w(N,re),process.nextTick(U,re)}function A(N,U,re,Te){var Fe;return re===null?Fe=new y:typeof re!="string"&&!U.objectMode&&(Fe=new I("chunk",["string","Buffer"],re)),Fe?(w(N,Fe),process.nextTick(Te,Fe),!1):!0}E.prototype.write=function(N,U,re){var Te=this._writableState,Fe=!1,M=!Te.objectMode&&d(N);return M&&!s.isBuffer(N)&&(N=l(N)),typeof U=="function"&&(re=U,U=null),M?U="buffer":U||(U=Te.defaultEncoding),typeof re!="function"&&(re=_),Te.ending?P(this,re):(M||A(this,Te,N,re))&&(Te.pendingcb++,Fe=J(this,Te,M,N,U,re)),Fe},E.prototype.cork=function(){this._writableState.corked++},E.prototype.uncork=function(){var N=this._writableState;N.corked&&(N.corked--,!N.writing&&!N.corked&&!N.bufferProcessing&&N.bufferedRequest&&ce(this,N))},E.prototype.setDefaultEncoding=function(U){if(typeof U=="string"&&(U=U.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((U+"").toLowerCase())>-1))throw new O(U);return this._writableState.defaultEncoding=U,this},Object.defineProperty(E.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function W(N,U,re){return!N.objectMode&&N.decodeStrings!==!1&&typeof U=="string"&&(U=s.from(U,re)),U}Object.defineProperty(E.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function J(N,U,re,Te,Fe,M){if(!re){var j=W(U,Te,Fe);Te!==j&&(re=!0,Fe="buffer",Te=j)}var we=U.objectMode?1:Te.length;U.length+=we;var je=U.length<U.highWaterMark;if(je||(U.needDrain=!0),U.writing||U.corked){var tt=U.lastBufferedRequest;U.lastBufferedRequest={chunk:Te,encoding:Fe,isBuf:re,callback:M,next:null},tt?tt.next=U.lastBufferedRequest:U.bufferedRequest=U.lastBufferedRequest,U.bufferedRequestCount+=1}else Y(N,U,!1,we,Te,Fe,M);return je}function Y(N,U,re,Te,Fe,M,j){U.writelen=Te,U.writecb=j,U.writing=!0,U.sync=!0,U.destroyed?U.onwrite(new b("write")):re?N._writev(Fe,U.onwrite):N._write(Fe,M,U.onwrite),U.sync=!1}function z(N,U,re,Te,Fe){--U.pendingcb,re?(process.nextTick(Fe,Te),process.nextTick(Ce,N,U),N._writableState.errorEmitted=!0,w(N,Te)):(Fe(Te),N._writableState.errorEmitted=!0,w(N,Te),Ce(N,U))}function Q(N){N.writing=!1,N.writecb=null,N.length-=N.writelen,N.writelen=0}function oe(N,U){var re=N._writableState,Te=re.sync,Fe=re.writecb;if(typeof Fe!="function")throw new v;if(Q(re),U)z(N,re,Te,U,Fe);else{var M=Re(re)||N.destroyed;!M&&!re.corked&&!re.bufferProcessing&&re.bufferedRequest&&ce(N,re),Te?process.nextTick(te,N,re,M,Fe):te(N,re,M,Fe)}}function te(N,U,re,Te){re||X(N,U),U.pendingcb--,Te(),Ce(N,U)}function X(N,U){U.length===0&&U.needDrain&&(U.needDrain=!1,N.emit("drain"))}function ce(N,U){U.bufferProcessing=!0;var re=U.bufferedRequest;if(N._writev&&re&&re.next){var Te=U.bufferedRequestCount,Fe=new Array(Te),M=U.corkedRequestsFree;M.entry=re;for(var j=0,we=!0;re;)Fe[j]=re,re.isBuf||(we=!1),re=re.next,j+=1;Fe.allBuffers=we,Y(N,U,!0,U.length,Fe,"",M.finish),U.pendingcb++,U.lastBufferedRequest=null,M.next?(U.corkedRequestsFree=M.next,M.next=null):U.corkedRequestsFree=new e(U),U.bufferedRequestCount=0}else{for(;re;){var je=re.chunk,tt=re.encoding,Ne=re.callback,Ge=U.objectMode?1:je.length;if(Y(N,U,!1,Ge,je,tt,Ne),re=re.next,U.bufferedRequestCount--,U.writing)break}re===null&&(U.lastBufferedRequest=null)}U.bufferedRequest=re,U.bufferProcessing=!1}E.prototype._write=function(N,U,re){re(new h("_write()"))},E.prototype._writev=null,E.prototype.end=function(N,U,re){var Te=this._writableState;return typeof N=="function"?(re=N,N=null,U=null):typeof U=="function"&&(re=U,U=null),N!=null&&this.write(N,U),Te.corked&&(Te.corked=1,this.uncork()),Te.ending||ee(this,Te,re),this},Object.defineProperty(E.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Re(N){return N.ending&&N.length===0&&N.bufferedRequest===null&&!N.finished&&!N.writing}function xe(N,U){N._final(function(re){U.pendingcb--,re&&w(N,re),U.prefinished=!0,N.emit("prefinish"),Ce(N,U)})}function de(N,U){!U.prefinished&&!U.finalCalled&&(typeof N._final=="function"&&!U.destroyed?(U.pendingcb++,U.finalCalled=!0,process.nextTick(xe,N,U)):(U.prefinished=!0,N.emit("prefinish")))}function Ce(N,U){var re=Re(U);if(re&&(de(N,U),U.pendingcb===0&&(U.finished=!0,N.emit("finish"),U.autoDestroy))){var Te=N._readableState;(!Te||Te.autoDestroy&&Te.endEmitted)&&N.destroy()}return re}function ee(N,U,re){U.ending=!0,Ce(N,U),re&&(U.finished?process.nextTick(re):N.once("finish",re)),U.ended=!0,N.writable=!1}function ue(N,U,re){var Te=N.entry;for(N.entry=null;Te;){var Fe=Te.callback;U.pendingcb--,Fe(re),Te=Te.next}U.corkedRequestsFree.next=N}return Object.defineProperty(E.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(U){!this._writableState||(this._writableState.destroyed=U)}}),E.prototype.destroy=u.destroy,E.prototype._undestroy=u.undestroy,E.prototype._destroy=function(N,U){U(N)},_stream_writable}var _stream_duplex,hasRequired_stream_duplex;function require_stream_duplex(){if(hasRequired_stream_duplex)return _stream_duplex;hasRequired_stream_duplex=1;var e=Object.keys||function(f){var p=[];for(var m in f)p.push(m);return p};_stream_duplex=l;var o=require_stream_readable(),r=require_stream_writable();inherits_browser.exports(l,o);for(var a=e(r.prototype),s=0;s<a.length;s++){var c=a[s];l.prototype[c]||(l.prototype[c]=r.prototype[c])}function l(f){if(!(this instanceof l))return new l(f);o.call(this,f),r.call(this,f),this.allowHalfOpen=!0,f&&(f.readable===!1&&(this.readable=!1),f.writable===!1&&(this.writable=!1),f.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",d)))}Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(l.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(l.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function d(){this._writableState.ended||process.nextTick(u,this)}function u(f){f.end()}return Object.defineProperty(l.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(p){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=p,this._writableState.destroyed=p)}}),_stream_duplex}var string_decoder={},safeBuffer={exports:{}},hasRequiredSafeBuffer;function requireSafeBuffer(){return hasRequiredSafeBuffer||(hasRequiredSafeBuffer=1,function(e,o){var r=require$$0__default.default,a=r.Buffer;function s(l,d){for(var u in l)d[u]=l[u]}a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?e.exports=r:(s(r,o),o.Buffer=c);function c(l,d,u){return a(l,d,u)}s(a,c),c.from=function(l,d,u){if(typeof l=="number")throw new TypeError("Argument must not be a number");return a(l,d,u)},c.alloc=function(l,d,u){if(typeof l!="number")throw new TypeError("Argument must be a number");var f=a(l);return d!==void 0?typeof u=="string"?f.fill(d,u):f.fill(d):f.fill(0),f},c.allocUnsafe=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return a(l)},c.allocUnsafeSlow=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(l)}}(safeBuffer,safeBuffer.exports)),safeBuffer.exports}var hasRequiredString_decoder;function requireString_decoder(){if(hasRequiredString_decoder)return string_decoder;hasRequiredString_decoder=1;var e=requireSafeBuffer().Buffer,o=e.isEncoding||function(y){switch(y=""+y,y&&y.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function r(y){if(!y)return"utf8";for(var g;;)switch(y){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return y;default:if(g)return;y=(""+y).toLowerCase(),g=!0}}function a(y){var g=r(y);if(typeof g!="string"&&(e.isEncoding===o||!o(y)))throw new Error("Unknown encoding: "+y);return g||y}string_decoder.StringDecoder=s;function s(y){this.encoding=a(y);var g;switch(this.encoding){case"utf16le":this.text=m,this.end=I,g=4;break;case"utf8":this.fillLast=u,g=4;break;case"base64":this.text=h,this.end=v,g=3;break;default:this.write=C,this.end=b;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(g)}s.prototype.write=function(y){if(y.length===0)return"";var g,O;if(this.lastNeed){if(g=this.fillLast(y),g===void 0)return"";O=this.lastNeed,this.lastNeed=0}else O=0;return O<y.length?g?g+this.text(y,O):this.text(y,O):g||""},s.prototype.end=p,s.prototype.text=f,s.prototype.fillLast=function(y){if(this.lastNeed<=y.length)return y.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);y.copy(this.lastChar,this.lastTotal-this.lastNeed,0,y.length),this.lastNeed-=y.length};function c(y){return y<=127?0:y>>5===6?2:y>>4===14?3:y>>3===30?4:y>>6===2?-1:-2}function l(y,g,O){var w=g.length-1;if(w<O)return 0;var _=c(g[w]);return _>=0?(_>0&&(y.lastNeed=_-1),_):--w<O||_===-2?0:(_=c(g[w]),_>=0?(_>0&&(y.lastNeed=_-2),_):--w<O||_===-2?0:(_=c(g[w]),_>=0?(_>0&&(_===2?_=0:y.lastNeed=_-3),_):0))}function d(y,g,O){if((g[0]&192)!==128)return y.lastNeed=0,"\uFFFD";if(y.lastNeed>1&&g.length>1){if((g[1]&192)!==128)return y.lastNeed=1,"\uFFFD";if(y.lastNeed>2&&g.length>2&&(g[2]&192)!==128)return y.lastNeed=2,"\uFFFD"}}function u(y){var g=this.lastTotal-this.lastNeed,O=d(this,y);if(O!==void 0)return O;if(this.lastNeed<=y.length)return y.copy(this.lastChar,g,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);y.copy(this.lastChar,g,0,y.length),this.lastNeed-=y.length}function f(y,g){var O=l(this,y,g);if(!this.lastNeed)return y.toString("utf8",g);this.lastTotal=O;var w=y.length-(O-this.lastNeed);return y.copy(this.lastChar,0,w),y.toString("utf8",g,w)}function p(y){var g=y&&y.length?this.write(y):"";return this.lastNeed?g+"\uFFFD":g}function m(y,g){if((y.length-g)%2===0){var O=y.toString("utf16le",g);if(O){var w=O.charCodeAt(O.length-1);if(w>=55296&&w<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=y[y.length-2],this.lastChar[1]=y[y.length-1],O.slice(0,-1)}return O}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=y[y.length-1],y.toString("utf16le",g,y.length-1)}function I(y){var g=y&&y.length?this.write(y):"";if(this.lastNeed){var O=this.lastTotal-this.lastNeed;return g+this.lastChar.toString("utf16le",0,O)}return g}function h(y,g){var O=(y.length-g)%3;return O===0?y.toString("base64",g):(this.lastNeed=3-O,this.lastTotal=3,O===1?this.lastChar[0]=y[y.length-1]:(this.lastChar[0]=y[y.length-2],this.lastChar[1]=y[y.length-1]),y.toString("base64",g,y.length-O))}function v(y){var g=y&&y.length?this.write(y):"";return this.lastNeed?g+this.lastChar.toString("base64",0,3-this.lastNeed):g}function C(y){return y.toString(this.encoding)}function b(y){return y&&y.length?this.write(y):""}return string_decoder}var ERR_STREAM_PREMATURE_CLOSE=errorsBrowser.codes.ERR_STREAM_PREMATURE_CLOSE;function once$1(e){var o=!1;return function(){if(!o){o=!0;for(var r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];e.apply(this,a)}}}function noop$2(){}function isRequest$1(e){return e.setHeader&&typeof e.abort=="function"}function eos$1(e,o,r){if(typeof o=="function")return eos$1(e,null,o);o||(o={}),r=once$1(r||noop$2);var a=o.readable||o.readable!==!1&&e.readable,s=o.writable||o.writable!==!1&&e.writable,c=function(){e.writable||d()},l=e._writableState&&e._writableState.finished,d=function(){s=!1,l=!0,a||r.call(e)},u=e._readableState&&e._readableState.endEmitted,f=function(){a=!1,u=!0,s||r.call(e)},p=function(v){r.call(e,v)},m=function(){var v;if(a&&!u)return(!e._readableState||!e._readableState.ended)&&(v=new ERR_STREAM_PREMATURE_CLOSE),r.call(e,v);if(s&&!l)return(!e._writableState||!e._writableState.ended)&&(v=new ERR_STREAM_PREMATURE_CLOSE),r.call(e,v)},I=function(){e.req.on("finish",d)};return isRequest$1(e)?(e.on("complete",d),e.on("abort",m),e.req?I():e.on("request",I)):s&&!e._writableState&&(e.on("end",c),e.on("close",c)),e.on("end",f),e.on("finish",d),o.error!==!1&&e.on("error",p),e.on("close",m),function(){e.removeListener("complete",d),e.removeListener("abort",m),e.removeListener("request",I),e.req&&e.req.removeListener("finish",d),e.removeListener("end",c),e.removeListener("close",c),e.removeListener("finish",d),e.removeListener("end",f),e.removeListener("error",p),e.removeListener("close",m)}}var endOfStream=eos$1,async_iterator,hasRequiredAsync_iterator;function requireAsync_iterator(){if(hasRequiredAsync_iterator)return async_iterator;hasRequiredAsync_iterator=1;var e;function o(y,g,O){return g in y?Object.defineProperty(y,g,{value:O,enumerable:!0,configurable:!0,writable:!0}):y[g]=O,y}var r=endOfStream,a=Symbol("lastResolve"),s=Symbol("lastReject"),c=Symbol("error"),l=Symbol("ended"),d=Symbol("lastPromise"),u=Symbol("handlePromise"),f=Symbol("stream");function p(y,g){return{value:y,done:g}}function m(y){var g=y[a];if(g!==null){var O=y[f].read();O!==null&&(y[d]=null,y[a]=null,y[s]=null,g(p(O,!1)))}}function I(y){process.nextTick(m,y)}function h(y,g){return function(O,w){y.then(function(){if(g[l]){O(p(void 0,!0));return}g[u](O,w)},w)}}var v=Object.getPrototypeOf(function(){}),C=Object.setPrototypeOf((e={get stream(){return this[f]},next:function(){var g=this,O=this[c];if(O!==null)return Promise.reject(O);if(this[l])return Promise.resolve(p(void 0,!0));if(this[f].destroyed)return new Promise(function(L,E){process.nextTick(function(){g[c]?E(g[c]):L(p(void 0,!0))})});var w=this[d],_;if(w)_=new Promise(h(w,this));else{var F=this[f].read();if(F!==null)return Promise.resolve(p(F,!1));_=new Promise(this[u])}return this[d]=_,_}},o(e,Symbol.asyncIterator,function(){return this}),o(e,"return",function(){var g=this;return new Promise(function(O,w){g[f].destroy(null,function(_){if(_){w(_);return}O(p(void 0,!0))})})}),e),v),b=function(g){var O,w=Object.create(C,(O={},o(O,f,{value:g,writable:!0}),o(O,a,{value:null,writable:!0}),o(O,s,{value:null,writable:!0}),o(O,c,{value:null,writable:!0}),o(O,l,{value:g._readableState.endEmitted,writable:!0}),o(O,u,{value:function(F,L){var E=w[f].read();E?(w[d]=null,w[a]=null,w[s]=null,F(p(E,!1))):(w[a]=F,w[s]=L)},writable:!0}),O));return w[d]=null,r(g,function(_){if(_&&_.code!=="ERR_STREAM_PREMATURE_CLOSE"){var F=w[s];F!==null&&(w[d]=null,w[a]=null,w[s]=null,F(_)),w[c]=_;return}var L=w[a];L!==null&&(w[d]=null,w[a]=null,w[s]=null,L(p(void 0,!0))),w[l]=!0}),g.on("readable",I.bind(null,w)),w};return async_iterator=b,async_iterator}var fromBrowser,hasRequiredFromBrowser;function requireFromBrowser(){return hasRequiredFromBrowser||(hasRequiredFromBrowser=1,fromBrowser=function(){throw new Error("Readable.from is not available in the browser")}),fromBrowser}var _stream_readable,hasRequired_stream_readable;function require_stream_readable(){if(hasRequired_stream_readable)return _stream_readable;hasRequired_stream_readable=1,_stream_readable=P;var e;P.ReadableState=E,events.exports.EventEmitter;var o=function(j,we){return j.listeners(we).length},r=streamBrowser,a=require$$0__default.default.Buffer,s=commonjsGlobal.Uint8Array||function(){};function c(M){return a.from(M)}function l(M){return a.isBuffer(M)||M instanceof s}var d=require$$3,u;d&&d.debuglog?u=d.debuglog("stream"):u=function(){};var f=requireBuffer_list(),p=destroy_1,m=state,I=m.getHighWaterMark,h=errorsBrowser.codes,v=h.ERR_INVALID_ARG_TYPE,C=h.ERR_STREAM_PUSH_AFTER_EOF,b=h.ERR_METHOD_NOT_IMPLEMENTED,y=h.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,g,O,w;inherits_browser.exports(P,r);var _=p.errorOrDestroy,F=["error","close","destroy","pause","resume"];function L(M,j,we){if(typeof M.prependListener=="function")return M.prependListener(j,we);!M._events||!M._events[j]?M.on(j,we):Array.isArray(M._events[j])?M._events[j].unshift(we):M._events[j]=[we,M._events[j]]}function E(M,j,we){e=e||require_stream_duplex(),M=M||{},typeof we!="boolean"&&(we=j instanceof e),this.objectMode=!!M.objectMode,we&&(this.objectMode=this.objectMode||!!M.readableObjectMode),this.highWaterMark=I(this,M,"readableHighWaterMark",we),this.buffer=new f,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=M.emitClose!==!1,this.autoDestroy=!!M.autoDestroy,this.destroyed=!1,this.defaultEncoding=M.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,M.encoding&&(g||(g=requireString_decoder().StringDecoder),this.decoder=new g(M.encoding),this.encoding=M.encoding)}function P(M){if(e=e||require_stream_duplex(),!(this instanceof P))return new P(M);var j=this instanceof e;this._readableState=new E(M,this,j),this.readable=!0,M&&(typeof M.read=="function"&&(this._read=M.read),typeof M.destroy=="function"&&(this._destroy=M.destroy)),r.call(this)}Object.defineProperty(P.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(j){!this._readableState||(this._readableState.destroyed=j)}}),P.prototype.destroy=p.destroy,P.prototype._undestroy=p.undestroy,P.prototype._destroy=function(M,j){j(M)},P.prototype.push=function(M,j){var we=this._readableState,je;return we.objectMode?je=!0:typeof M=="string"&&(j=j||we.defaultEncoding,j!==we.encoding&&(M=a.from(M,j),j=""),je=!0),A(this,M,j,!1,je)},P.prototype.unshift=function(M){return A(this,M,null,!0,!1)};function A(M,j,we,je,tt){u("readableAddChunk",j);var Ne=M._readableState;if(j===null)Ne.reading=!1,oe(M,Ne);else{var Ge;if(tt||(Ge=J(Ne,j)),Ge)_(M,Ge);else if(Ne.objectMode||j&&j.length>0)if(typeof j!="string"&&!Ne.objectMode&&Object.getPrototypeOf(j)!==a.prototype&&(j=c(j)),je)Ne.endEmitted?_(M,new y):W(M,Ne,j,!0);else if(Ne.ended)_(M,new C);else{if(Ne.destroyed)return!1;Ne.reading=!1,Ne.decoder&&!we?(j=Ne.decoder.write(j),Ne.objectMode||j.length!==0?W(M,Ne,j,!1):ce(M,Ne)):W(M,Ne,j,!1)}else je||(Ne.reading=!1,ce(M,Ne))}return!Ne.ended&&(Ne.length<Ne.highWaterMark||Ne.length===0)}function W(M,j,we,je){j.flowing&&j.length===0&&!j.sync?(j.awaitDrain=0,M.emit("data",we)):(j.length+=j.objectMode?1:we.length,je?j.buffer.unshift(we):j.buffer.push(we),j.needReadable&&te(M)),ce(M,j)}function J(M,j){var we;return!l(j)&&typeof j!="string"&&j!==void 0&&!M.objectMode&&(we=new v("chunk",["string","Buffer","Uint8Array"],j)),we}P.prototype.isPaused=function(){return this._readableState.flowing===!1},P.prototype.setEncoding=function(M){g||(g=requireString_decoder().StringDecoder);var j=new g(M);this._readableState.decoder=j,this._readableState.encoding=this._readableState.decoder.encoding;for(var we=this._readableState.buffer.head,je="";we!==null;)je+=j.write(we.data),we=we.next;return this._readableState.buffer.clear(),je!==""&&this._readableState.buffer.push(je),this._readableState.length=je.length,this};var Y=1073741824;function z(M){return M>=Y?M=Y:(M--,M|=M>>>1,M|=M>>>2,M|=M>>>4,M|=M>>>8,M|=M>>>16,M++),M}function Q(M,j){return M<=0||j.length===0&&j.ended?0:j.objectMode?1:M!==M?j.flowing&&j.length?j.buffer.head.data.length:j.length:(M>j.highWaterMark&&(j.highWaterMark=z(M)),M<=j.length?M:j.ended?j.length:(j.needReadable=!0,0))}P.prototype.read=function(M){u("read",M),M=parseInt(M,10);var j=this._readableState,we=M;if(M!==0&&(j.emittedReadable=!1),M===0&&j.needReadable&&((j.highWaterMark!==0?j.length>=j.highWaterMark:j.length>0)||j.ended))return u("read: emitReadable",j.length,j.ended),j.length===0&&j.ended?re(this):te(this),null;if(M=Q(M,j),M===0&&j.ended)return j.length===0&&re(this),null;var je=j.needReadable;u("need readable",je),(j.length===0||j.length-M<j.highWaterMark)&&(je=!0,u("length less than watermark",je)),j.ended||j.reading?(je=!1,u("reading or ended",je)):je&&(u("do read"),j.reading=!0,j.sync=!0,j.length===0&&(j.needReadable=!0),this._read(j.highWaterMark),j.sync=!1,j.reading||(M=Q(we,j)));var tt;return M>0?tt=U(M,j):tt=null,tt===null?(j.needReadable=j.length<=j.highWaterMark,M=0):(j.length-=M,j.awaitDrain=0),j.length===0&&(j.ended||(j.needReadable=!0),we!==M&&j.ended&&re(this)),tt!==null&&this.emit("data",tt),tt};function oe(M,j){if(u("onEofChunk"),!j.ended){if(j.decoder){var we=j.decoder.end();we&&we.length&&(j.buffer.push(we),j.length+=j.objectMode?1:we.length)}j.ended=!0,j.sync?te(M):(j.needReadable=!1,j.emittedReadable||(j.emittedReadable=!0,X(M)))}}function te(M){var j=M._readableState;u("emitReadable",j.needReadable,j.emittedReadable),j.needReadable=!1,j.emittedReadable||(u("emitReadable",j.flowing),j.emittedReadable=!0,process.nextTick(X,M))}function X(M){var j=M._readableState;u("emitReadable_",j.destroyed,j.length,j.ended),!j.destroyed&&(j.length||j.ended)&&(M.emit("readable"),j.emittedReadable=!1),j.needReadable=!j.flowing&&!j.ended&&j.length<=j.highWaterMark,N(M)}function ce(M,j){j.readingMore||(j.readingMore=!0,process.nextTick(Re,M,j))}function Re(M,j){for(;!j.reading&&!j.ended&&(j.length<j.highWaterMark||j.flowing&&j.length===0);){var we=j.length;if(u("maybeReadMore read 0"),M.read(0),we===j.length)break}j.readingMore=!1}P.prototype._read=function(M){_(this,new b("_read()"))},P.prototype.pipe=function(M,j){var we=this,je=this._readableState;switch(je.pipesCount){case 0:je.pipes=M;break;case 1:je.pipes=[je.pipes,M];break;default:je.pipes.push(M);break}je.pipesCount+=1,u("pipe count=%d opts=%j",je.pipesCount,j);var tt=(!j||j.end!==!1)&&M!==process.stdout&&M!==process.stderr,Ne=tt?yt:Gt;je.endEmitted?process.nextTick(Ne):we.once("end",Ne),M.on("unpipe",Ge);function Ge(Qt,Wt){u("onunpipe"),Qt===we&&Wt&&Wt.hasUnpiped===!1&&(Wt.hasUnpiped=!0,$t())}function yt(){u("onend"),M.end()}var Tt=xe(we);M.on("drain",Tt);var Ot=!1;function $t(){u("cleanup"),M.removeListener("close",Ft),M.removeListener("finish",Ut),M.removeListener("drain",Tt),M.removeListener("error",Ct),M.removeListener("unpipe",Ge),we.removeListener("end",yt),we.removeListener("end",Gt),we.removeListener("data",Vt),Ot=!0,je.awaitDrain&&(!M._writableState||M._writableState.needDrain)&&Tt()}we.on("data",Vt);function Vt(Qt){u("ondata");var Wt=M.write(Qt);u("dest.write",Wt),Wt===!1&&((je.pipesCount===1&&je.pipes===M||je.pipesCount>1&&Fe(je.pipes,M)!==-1)&&!Ot&&(u("false write response, pause",je.awaitDrain),je.awaitDrain++),we.pause())}function Ct(Qt){u("onerror",Qt),Gt(),M.removeListener("error",Ct),o(M,"error")===0&&_(M,Qt)}L(M,"error",Ct);function Ft(){M.removeListener("finish",Ut),Gt()}M.once("close",Ft);function Ut(){u("onfinish"),M.removeListener("close",Ft),Gt()}M.once("finish",Ut);function Gt(){u("unpipe"),we.unpipe(M)}return M.emit("pipe",we),je.flowing||(u("pipe resume"),we.resume()),M};function xe(M){return function(){var we=M._readableState;u("pipeOnDrain",we.awaitDrain),we.awaitDrain&&we.awaitDrain--,we.awaitDrain===0&&o(M,"data")&&(we.flowing=!0,N(M))}}P.prototype.unpipe=function(M){var j=this._readableState,we={hasUnpiped:!1};if(j.pipesCount===0)return this;if(j.pipesCount===1)return M&&M!==j.pipes?this:(M||(M=j.pipes),j.pipes=null,j.pipesCount=0,j.flowing=!1,M&&M.emit("unpipe",this,we),this);if(!M){var je=j.pipes,tt=j.pipesCount;j.pipes=null,j.pipesCount=0,j.flowing=!1;for(var Ne=0;Ne<tt;Ne++)je[Ne].emit("unpipe",this,{hasUnpiped:!1});return this}var Ge=Fe(j.pipes,M);return Ge===-1?this:(j.pipes.splice(Ge,1),j.pipesCount-=1,j.pipesCount===1&&(j.pipes=j.pipes[0]),M.emit("unpipe",this,we),this)},P.prototype.on=function(M,j){var we=r.prototype.on.call(this,M,j),je=this._readableState;return M==="data"?(je.readableListening=this.listenerCount("readable")>0,je.flowing!==!1&&this.resume()):M==="readable"&&!je.endEmitted&&!je.readableListening&&(je.readableListening=je.needReadable=!0,je.flowing=!1,je.emittedReadable=!1,u("on readable",je.length,je.reading),je.length?te(this):je.reading||process.nextTick(Ce,this)),we},P.prototype.addListener=P.prototype.on,P.prototype.removeListener=function(M,j){var we=r.prototype.removeListener.call(this,M,j);return M==="readable"&&process.nextTick(de,this),we},P.prototype.removeAllListeners=function(M){var j=r.prototype.removeAllListeners.apply(this,arguments);return(M==="readable"||M===void 0)&&process.nextTick(de,this),j};function de(M){var j=M._readableState;j.readableListening=M.listenerCount("readable")>0,j.resumeScheduled&&!j.paused?j.flowing=!0:M.listenerCount("data")>0&&M.resume()}function Ce(M){u("readable nexttick read 0"),M.read(0)}P.prototype.resume=function(){var M=this._readableState;return M.flowing||(u("resume"),M.flowing=!M.readableListening,ee(this,M)),M.paused=!1,this};function ee(M,j){j.resumeScheduled||(j.resumeScheduled=!0,process.nextTick(ue,M,j))}function ue(M,j){u("resume",j.reading),j.reading||M.read(0),j.resumeScheduled=!1,M.emit("resume"),N(M),j.flowing&&!j.reading&&M.read(0)}P.prototype.pause=function(){return u("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(u("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function N(M){var j=M._readableState;for(u("flow",j.flowing);j.flowing&&M.read()!==null;);}P.prototype.wrap=function(M){var j=this,we=this._readableState,je=!1;M.on("end",function(){if(u("wrapped end"),we.decoder&&!we.ended){var Ge=we.decoder.end();Ge&&Ge.length&&j.push(Ge)}j.push(null)}),M.on("data",function(Ge){if(u("wrapped data"),we.decoder&&(Ge=we.decoder.write(Ge)),!(we.objectMode&&Ge==null)&&!(!we.objectMode&&(!Ge||!Ge.length))){var yt=j.push(Ge);yt||(je=!0,M.pause())}});for(var tt in M)this[tt]===void 0&&typeof M[tt]=="function"&&(this[tt]=function(yt){return function(){return M[yt].apply(M,arguments)}}(tt));for(var Ne=0;Ne<F.length;Ne++)M.on(F[Ne],this.emit.bind(this,F[Ne]));return this._read=function(Ge){u("wrapped _read",Ge),je&&(je=!1,M.resume())},this},typeof Symbol=="function"&&(P.prototype[Symbol.asyncIterator]=function(){return O===void 0&&(O=requireAsync_iterator()),O(this)}),Object.defineProperty(P.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(P.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(P.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(j){this._readableState&&(this._readableState.flowing=j)}}),P._fromList=U,Object.defineProperty(P.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function U(M,j){if(j.length===0)return null;var we;return j.objectMode?we=j.buffer.shift():!M||M>=j.length?(j.decoder?we=j.buffer.join(""):j.buffer.length===1?we=j.buffer.first():we=j.buffer.concat(j.length),j.buffer.clear()):we=j.buffer.consume(M,j.decoder),we}function re(M){var j=M._readableState;u("endReadable",j.endEmitted),j.endEmitted||(j.ended=!0,process.nextTick(Te,j,M))}function Te(M,j){if(u("endReadableNT",M.endEmitted,M.length),!M.endEmitted&&M.length===0&&(M.endEmitted=!0,j.readable=!1,j.emit("end"),M.autoDestroy)){var we=j._writableState;(!we||we.autoDestroy&&we.finished)&&j.destroy()}}typeof Symbol=="function"&&(P.from=function(M,j){return w===void 0&&(w=requireFromBrowser()),w(P,M,j)});function Fe(M,j){for(var we=0,je=M.length;we<je;we++)if(M[we]===j)return we;return-1}return _stream_readable}var _stream_transform=Transform$1,_require$codes$1=errorsBrowser.codes,ERR_METHOD_NOT_IMPLEMENTED=_require$codes$1.ERR_METHOD_NOT_IMPLEMENTED,ERR_MULTIPLE_CALLBACK=_require$codes$1.ERR_MULTIPLE_CALLBACK,ERR_TRANSFORM_ALREADY_TRANSFORMING=_require$codes$1.ERR_TRANSFORM_ALREADY_TRANSFORMING,ERR_TRANSFORM_WITH_LENGTH_0=_require$codes$1.ERR_TRANSFORM_WITH_LENGTH_0,Duplex=require_stream_duplex();inherits_browser.exports(Transform$1,Duplex);function afterTransform(e,o){var r=this._transformState;r.transforming=!1;var a=r.writecb;if(a===null)return this.emit("error",new ERR_MULTIPLE_CALLBACK);r.writechunk=null,r.writecb=null,o!=null&&this.push(o),a(e);var s=this._readableState;s.reading=!1,(s.needReadable||s.length<s.highWaterMark)&&this._read(s.highWaterMark)}function Transform$1(e){if(!(this instanceof Transform$1))return new Transform$1(e);Duplex.call(this,e),this._transformState={afterTransform:afterTransform.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",prefinish)}function prefinish(){var e=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(o,r){done(e,o,r)}):done(this,null,null)}Transform$1.prototype.push=function(e,o){return this._transformState.needTransform=!1,Duplex.prototype.push.call(this,e,o)},Transform$1.prototype._transform=function(e,o,r){r(new ERR_METHOD_NOT_IMPLEMENTED("_transform()"))},Transform$1.prototype._write=function(e,o,r){var a=this._transformState;if(a.writecb=r,a.writechunk=e,a.writeencoding=o,!a.transforming){var s=this._readableState;(a.needTransform||s.needReadable||s.length<s.highWaterMark)&&this._read(s.highWaterMark)}},Transform$1.prototype._read=function(e){var o=this._transformState;o.writechunk!==null&&!o.transforming?(o.transforming=!0,this._transform(o.writechunk,o.writeencoding,o.afterTransform)):o.needTransform=!0},Transform$1.prototype._destroy=function(e,o){Duplex.prototype._destroy.call(this,e,function(r){o(r)})};function done(e,o,r){if(o)return e.emit("error",o);if(r!=null&&e.push(r),e._writableState.length)throw new ERR_TRANSFORM_WITH_LENGTH_0;if(e._transformState.transforming)throw new ERR_TRANSFORM_ALREADY_TRANSFORMING;return e.push(null)}var _stream_passthrough=PassThrough,Transform=_stream_transform;inherits_browser.exports(PassThrough,Transform);function PassThrough(e){if(!(this instanceof PassThrough))return new PassThrough(e);Transform.call(this,e)}PassThrough.prototype._transform=function(e,o,r){r(null,e)};var eos;function once(e){var o=!1;return function(){o||(o=!0,e.apply(void 0,arguments))}}var _require$codes=errorsBrowser.codes,ERR_MISSING_ARGS=_require$codes.ERR_MISSING_ARGS,ERR_STREAM_DESTROYED=_require$codes.ERR_STREAM_DESTROYED;function noop$1(e){if(e)throw e}function isRequest(e){return e.setHeader&&typeof e.abort=="function"}function destroyer(e,o,r,a){a=once(a);var s=!1;e.on("close",function(){s=!0}),eos===void 0&&(eos=endOfStream),eos(e,{readable:o,writable:r},function(l){if(l)return a(l);s=!0,a()});var c=!1;return function(l){if(!s&&!c){if(c=!0,isRequest(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();a(l||new ERR_STREAM_DESTROYED("pipe"))}}}function call(e){e()}function pipe(e,o){return e.pipe(o)}function popCallback(e){return!e.length||typeof e[e.length-1]!="function"?noop$1:e.pop()}function pipeline(){for(var e=arguments.length,o=new Array(e),r=0;r<e;r++)o[r]=arguments[r];var a=popCallback(o);if(Array.isArray(o[0])&&(o=o[0]),o.length<2)throw new ERR_MISSING_ARGS("streams");var s,c=o.map(function(l,d){var u=d<o.length-1,f=d>0;return destroyer(l,u,f,function(p){s||(s=p),p&&c.forEach(call),!u&&(c.forEach(call),a(s))})});return o.reduce(pipe)}var pipeline_1=pipeline;(function(e,o){o=e.exports=require_stream_readable(),o.Stream=o,o.Readable=o,o.Writable=require_stream_writable(),o.Duplex=require_stream_duplex(),o.Transform=_stream_transform,o.PassThrough=_stream_passthrough,o.finished=endOfStream,o.pipeline=pipeline_1})(readableBrowser,readableBrowser.exports),Object.defineProperty(lib$2,"__esModule",{value:!0}),lib$2.ReadableWebToNodeStream=void 0;const readable_stream_1=readableBrowser.exports;class ReadableWebToNodeStream extends readable_stream_1.Readable{constructor(o){super(),this.bytesRead=0,this.released=!1,this.reader=o.getReader()}async _read(){if(this.released){this.push(null);return}this.pendingRead=this.reader.read();const o=await this.pendingRead;delete this.pendingRead,o.done||this.released?this.push(null):(this.bytesRead+=o.value.length,this.push(o.value))}async waitForReadToComplete(){this.pendingRead&&await this.pendingRead}async close(){await this.syncAndRelease()}async syncAndRelease(){this.released=!0,await this.waitForReadToComplete(),await this.reader.releaseLock()}}lib$2.ReadableWebToNodeStream=ReadableWebToNodeStream;var lib$1={},ieee754={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */ieee754.read=function(e,o,r,a,s){var c,l,d=s*8-a-1,u=(1<<d)-1,f=u>>1,p=-7,m=r?s-1:0,I=r?-1:1,h=e[o+m];for(m+=I,c=h&(1<<-p)-1,h>>=-p,p+=d;p>0;c=c*256+e[o+m],m+=I,p-=8);for(l=c&(1<<-p)-1,c>>=-p,p+=a;p>0;l=l*256+e[o+m],m+=I,p-=8);if(c===0)c=1-f;else{if(c===u)return l?NaN:(h?-1:1)*(1/0);l=l+Math.pow(2,a),c=c-f}return(h?-1:1)*l*Math.pow(2,c-a)},ieee754.write=function(e,o,r,a,s,c){var l,d,u,f=c*8-s-1,p=(1<<f)-1,m=p>>1,I=s===23?Math.pow(2,-24)-Math.pow(2,-77):0,h=a?0:c-1,v=a?1:-1,C=o<0||o===0&&1/o<0?1:0;for(o=Math.abs(o),isNaN(o)||o===1/0?(d=isNaN(o)?1:0,l=p):(l=Math.floor(Math.log(o)/Math.LN2),o*(u=Math.pow(2,-l))<1&&(l--,u*=2),l+m>=1?o+=I/u:o+=I*Math.pow(2,1-m),o*u>=2&&(l++,u/=2),l+m>=p?(d=0,l=p):l+m>=1?(d=(o*u-1)*Math.pow(2,s),l=l+m):(d=o*Math.pow(2,m-1)*Math.pow(2,s),l=0));s>=8;e[r+h]=d&255,h+=v,d/=256,s-=8);for(l=l<<s|d,f+=s;f>0;e[r+h]=l&255,h+=v,l/=256,f-=8);e[r+h-v]|=C*128},function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.AnsiStringType=e.StringType=e.BufferType=e.Uint8ArrayType=e.IgnoreType=e.Float80_LE=e.Float80_BE=e.Float64_LE=e.Float64_BE=e.Float32_LE=e.Float32_BE=e.Float16_LE=e.Float16_BE=e.INT64_BE=e.UINT64_BE=e.INT64_LE=e.UINT64_LE=e.INT32_LE=e.INT32_BE=e.INT24_BE=e.INT24_LE=e.INT16_LE=e.INT16_BE=e.INT8=e.UINT32_BE=e.UINT32_LE=e.UINT24_BE=e.UINT24_LE=e.UINT16_BE=e.UINT16_LE=e.UINT8=void 0;const o=ieee754;function r(u){return new DataView(u.buffer,u.byteOffset)}e.UINT8={len:1,get(u,f){return r(u).getUint8(f)},put(u,f,p){return r(u).setUint8(f,p),f+1}},e.UINT16_LE={len:2,get(u,f){return r(u).getUint16(f,!0)},put(u,f,p){return r(u).setUint16(f,p,!0),f+2}},e.UINT16_BE={len:2,get(u,f){return r(u).getUint16(f)},put(u,f,p){return r(u).setUint16(f,p),f+2}},e.UINT24_LE={len:3,get(u,f){const p=r(u);return p.getUint8(f)+(p.getUint16(f+1,!0)<<8)},put(u,f,p){const m=r(u);return m.setUint8(f,p&255),m.setUint16(f+1,p>>8,!0),f+3}},e.UINT24_BE={len:3,get(u,f){const p=r(u);return(p.getUint16(f)<<8)+p.getUint8(f+2)},put(u,f,p){const m=r(u);return m.setUint16(f,p>>8),m.setUint8(f+2,p&255),f+3}},e.UINT32_LE={len:4,get(u,f){return r(u).getUint32(f,!0)},put(u,f,p){return r(u).setUint32(f,p,!0),f+4}},e.UINT32_BE={len:4,get(u,f){return r(u).getUint32(f)},put(u,f,p){return r(u).setUint32(f,p),f+4}},e.INT8={len:1,get(u,f){return r(u).getInt8(f)},put(u,f,p){return r(u).setInt8(f,p),f+1}},e.INT16_BE={len:2,get(u,f){return r(u).getInt16(f)},put(u,f,p){return r(u).setInt16(f,p),f+2}},e.INT16_LE={len:2,get(u,f){return r(u).getInt16(f,!0)},put(u,f,p){return r(u).setInt16(f,p,!0),f+2}},e.INT24_LE={len:3,get(u,f){const p=e.UINT24_LE.get(u,f);return p>8388607?p-16777216:p},put(u,f,p){const m=r(u);return m.setUint8(f,p&255),m.setUint16(f+1,p>>8,!0),f+3}},e.INT24_BE={len:3,get(u,f){const p=e.UINT24_BE.get(u,f);return p>8388607?p-16777216:p},put(u,f,p){const m=r(u);return m.setUint16(f,p>>8),m.setUint8(f+2,p&255),f+3}},e.INT32_BE={len:4,get(u,f){return r(u).getInt32(f)},put(u,f,p){return r(u).setInt32(f,p),f+4}},e.INT32_LE={len:4,get(u,f){return r(u).getInt32(f,!0)},put(u,f,p){return r(u).setInt32(f,p,!0),f+4}},e.UINT64_LE={len:8,get(u,f){return r(u).getBigUint64(f,!0)},put(u,f,p){return r(u).setBigUint64(f,p,!0),f+8}},e.INT64_LE={len:8,get(u,f){return r(u).getBigInt64(f,!0)},put(u,f,p){return r(u).setBigInt64(f,p,!0),f+8}},e.UINT64_BE={len:8,get(u,f){return r(u).getBigUint64(f)},put(u,f,p){return r(u).setBigUint64(f,p),f+8}},e.INT64_BE={len:8,get(u,f){return r(u).getBigInt64(f)},put(u,f,p){return r(u).setBigInt64(f,p),f+8}},e.Float16_BE={len:2,get(u,f){return o.read(u,f,!1,10,this.len)},put(u,f,p){return o.write(u,p,f,!1,10,this.len),f+this.len}},e.Float16_LE={len:2,get(u,f){return o.read(u,f,!0,10,this.len)},put(u,f,p){return o.write(u,p,f,!0,10,this.len),f+this.len}},e.Float32_BE={len:4,get(u,f){return r(u).getFloat32(f)},put(u,f,p){return r(u).setFloat32(f,p),f+4}},e.Float32_LE={len:4,get(u,f){return r(u).getFloat32(f,!0)},put(u,f,p){return r(u).setFloat32(f,p,!0),f+4}},e.Float64_BE={len:8,get(u,f){return r(u).getFloat64(f)},put(u,f,p){return r(u).setFloat64(f,p),f+8}},e.Float64_LE={len:8,get(u,f){return r(u).getFloat64(f,!0)},put(u,f,p){return r(u).setFloat64(f,p,!0),f+8}},e.Float80_BE={len:10,get(u,f){return o.read(u,f,!1,63,this.len)},put(u,f,p){return o.write(u,p,f,!1,63,this.len),f+this.len}},e.Float80_LE={len:10,get(u,f){return o.read(u,f,!0,63,this.len)},put(u,f,p){return o.write(u,p,f,!0,63,this.len),f+this.len}};class a{constructor(f){this.len=f}get(f,p){}}e.IgnoreType=a;class s{constructor(f){this.len=f}get(f,p){return f.subarray(p,p+this.len)}}e.Uint8ArrayType=s;class c{constructor(f){this.len=f}get(f,p){return Buffer.from(f.subarray(p,p+this.len))}}e.BufferType=c;class l{constructor(f,p){this.len=f,this.encoding=p}get(f,p){return Buffer.from(f).toString(this.encoding,p,p+this.len)}}e.StringType=l;class d{constructor(f){this.len=f}static decode(f,p,m){let I="";for(let h=p;h<m;++h)I+=d.codePointToString(d.singleByteDecoder(f[h]));return I}static inRange(f,p,m){return p<=f&&f<=m}static codePointToString(f){return f<=65535?String.fromCharCode(f):(f-=65536,String.fromCharCode((f>>10)+55296,(f&1023)+56320))}static singleByteDecoder(f){if(d.inRange(f,0,127))return f;const p=d.windows1252[f-128];if(p===null)throw Error("invaliding encoding");return p}get(f,p=0){return d.decode(f,p,p+this.len)}}e.AnsiStringType=d,d.windows1252=[8364,129,8218,402,8222,8230,8224,8225,710,8240,352,8249,338,141,381,143,144,8216,8217,8220,8221,8226,8211,8212,732,8482,353,8250,339,157,382,376,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255]}(lib$1);var core$1={},ReadStreamTokenizer$1={},AbstractTokenizer$1={},lib={},EndOfFileStream={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EndOfStreamError=e.defaultMessages=void 0,e.defaultMessages="End-Of-Stream";class o extends Error{constructor(){super(e.defaultMessages)}}e.EndOfStreamError=o})(EndOfFileStream);var StreamReader={},Deferred$1={};Object.defineProperty(Deferred$1,"__esModule",{value:!0}),Deferred$1.Deferred=void 0;class Deferred{constructor(){this.resolve=()=>null,this.reject=()=>null,this.promise=new Promise((o,r)=>{this.reject=r,this.resolve=o})}}Deferred$1.Deferred=Deferred,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.StreamReader=e.EndOfStreamError=void 0;const o=EndOfFileStream,r=Deferred$1;var a=EndOfFileStream;Object.defineProperty(e,"EndOfStreamError",{enumerable:!0,get:function(){return a.EndOfStreamError}});const s=1*1024*1024;class c{constructor(d){if(this.s=d,this.deferred=null,this.endOfStream=!1,this.peekQueue=[],!d.read||!d.once)throw new Error("Expected an instance of stream.Readable");this.s.once("end",()=>this.reject(new o.EndOfStreamError)),this.s.once("error",u=>this.reject(u)),this.s.once("close",()=>this.reject(new Error("Stream closed")))}async peek(d,u,f){const p=await this.read(d,u,f);return this.peekQueue.push(d.subarray(u,u+p)),p}async read(d,u,f){if(f===0)return 0;if(this.peekQueue.length===0&&this.endOfStream)throw new o.EndOfStreamError;let p=f,m=0;for(;this.peekQueue.length>0&&p>0;){const I=this.peekQueue.pop();if(!I)throw new Error("peekData should be defined");const h=Math.min(I.length,p);d.set(I.subarray(0,h),u+m),m+=h,p-=h,h<I.length&&this.peekQueue.push(I.subarray(h))}for(;p>0&&!this.endOfStream;){const I=Math.min(p,s),h=await this.readFromStream(d,u+m,I);if(m+=h,h<I)break;p-=h}return m}async readFromStream(d,u,f){const p=this.s.read(f);if(p)return d.set(p,u),p.length;{const m={buffer:d,offset:u,length:f,deferred:new r.Deferred};return this.deferred=m.deferred,this.s.once("readable",()=>{this.readDeferred(m)}),m.deferred.promise}}readDeferred(d){const u=this.s.read(d.length);u?(d.buffer.set(u,d.offset),d.deferred.resolve(u.length),this.deferred=null):this.s.once("readable",()=>{this.readDeferred(d)})}reject(d){this.endOfStream=!0,this.deferred&&(this.deferred.reject(d),this.deferred=null)}}e.StreamReader=c}(StreamReader),function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.StreamReader=e.EndOfStreamError=void 0;var o=EndOfFileStream;Object.defineProperty(e,"EndOfStreamError",{enumerable:!0,get:function(){return o.EndOfStreamError}});var r=StreamReader;Object.defineProperty(e,"StreamReader",{enumerable:!0,get:function(){return r.StreamReader}})}(lib),Object.defineProperty(AbstractTokenizer$1,"__esModule",{value:!0}),AbstractTokenizer$1.AbstractTokenizer=void 0;const peek_readable_1$2=lib;class AbstractTokenizer{constructor(o){this.position=0,this.numBuffer=new Uint8Array(8),this.fileInfo=o||{}}async readToken(o,r=this.position){const a=Buffer.alloc(o.len);if(await this.readBuffer(a,{position:r})<o.len)throw new peek_readable_1$2.EndOfStreamError;return o.get(a,0)}async peekToken(o,r=this.position){const a=Buffer.alloc(o.len);if(await this.peekBuffer(a,{position:r})<o.len)throw new peek_readable_1$2.EndOfStreamError;return o.get(a,0)}async readNumber(o){if(await this.readBuffer(this.numBuffer,{length:o.len})<o.len)throw new peek_readable_1$2.EndOfStreamError;return o.get(this.numBuffer,0)}async peekNumber(o){if(await this.peekBuffer(this.numBuffer,{length:o.len})<o.len)throw new peek_readable_1$2.EndOfStreamError;return o.get(this.numBuffer,0)}async ignore(o){if(this.fileInfo.size!==void 0){const r=this.fileInfo.size-this.position;if(o>r)return this.position+=r,r}return this.position+=o,o}async close(){}normalizeOptions(o,r){if(r&&r.position!==void 0&&r.position<this.position)throw new Error("`options.position` must be equal or greater than `tokenizer.position`");return r?{mayBeLess:r.mayBeLess===!0,offset:r.offset?r.offset:0,length:r.length?r.length:o.length-(r.offset?r.offset:0),position:r.position?r.position:this.position}:{mayBeLess:!1,offset:0,length:o.length,position:this.position}}}AbstractTokenizer$1.AbstractTokenizer=AbstractTokenizer,Object.defineProperty(ReadStreamTokenizer$1,"__esModule",{value:!0}),ReadStreamTokenizer$1.ReadStreamTokenizer=void 0;const AbstractTokenizer_1$1=AbstractTokenizer$1,peek_readable_1$1=lib,maxBufferSize=256e3;class ReadStreamTokenizer extends AbstractTokenizer_1$1.AbstractTokenizer{constructor(o,r){super(r),this.streamReader=new peek_readable_1$1.StreamReader(o)}async getFileInfo(){return this.fileInfo}async readBuffer(o,r){const a=this.normalizeOptions(o,r),s=a.position-this.position;if(s>0)return await this.ignore(s),this.readBuffer(o,r);if(s<0)throw new Error("`options.position` must be equal or greater than `tokenizer.position`");if(a.length===0)return 0;const c=await this.streamReader.read(o,a.offset,a.length);if(this.position+=c,(!r||!r.mayBeLess)&&c<a.length)throw new peek_readable_1$1.EndOfStreamError;return c}async peekBuffer(o,r){const a=this.normalizeOptions(o,r);let s=0;if(a.position){const c=a.position-this.position;if(c>0){const l=new Uint8Array(a.length+c);return s=await this.peekBuffer(l,{mayBeLess:a.mayBeLess}),o.set(l.subarray(c),a.offset),s-c}else if(c<0)throw new Error("Cannot peek from a negative offset in a stream")}if(a.length>0){try{s=await this.streamReader.peek(o,a.offset,a.length)}catch(c){if(r&&r.mayBeLess&&c instanceof peek_readable_1$1.EndOfStreamError)return 0;throw c}if(!a.mayBeLess&&s<a.length)throw new peek_readable_1$1.EndOfStreamError}return s}async ignore(o){const r=Math.min(maxBufferSize,o),a=new Uint8Array(r);let s=0;for(;s<o;){const c=o-s,l=await this.readBuffer(a,{length:Math.min(r,c)});if(l<0)return l;s+=l}return s}}ReadStreamTokenizer$1.ReadStreamTokenizer=ReadStreamTokenizer;var BufferTokenizer$1={};Object.defineProperty(BufferTokenizer$1,"__esModule",{value:!0}),BufferTokenizer$1.BufferTokenizer=void 0;const peek_readable_1=lib,AbstractTokenizer_1=AbstractTokenizer$1;class BufferTokenizer extends AbstractTokenizer_1.AbstractTokenizer{constructor(o,r){super(r),this.uint8Array=o,this.fileInfo.size=this.fileInfo.size?this.fileInfo.size:o.length}async readBuffer(o,r){if(r&&r.position){if(r.position<this.position)throw new Error("`options.position` must be equal or greater than `tokenizer.position`");this.position=r.position}const a=await this.peekBuffer(o,r);return this.position+=a,a}async peekBuffer(o,r){const a=this.normalizeOptions(o,r),s=Math.min(this.uint8Array.length-a.position,a.length);if(!a.mayBeLess&&s<a.length)throw new peek_readable_1.EndOfStreamError;return o.set(this.uint8Array.subarray(a.position,a.position+s),a.offset),s}async close(){}}BufferTokenizer$1.BufferTokenizer=BufferTokenizer,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.fromBuffer=e.fromStream=e.EndOfStreamError=void 0;const o=ReadStreamTokenizer$1,r=BufferTokenizer$1;var a=lib;Object.defineProperty(e,"EndOfStreamError",{enumerable:!0,get:function(){return a.EndOfStreamError}});function s(l,d){return d=d||{},new o.ReadStreamTokenizer(l,d)}e.fromStream=s;function c(l,d){return new r.BufferTokenizer(l,d)}e.fromBuffer=c}(core$1);var util$1={};util$1.stringToBytes=e=>[...e].map(o=>o.charCodeAt(0)),util$1.tarHeaderChecksumMatches=(e,o=0)=>{const r=parseInt(e.toString("utf8",148,154).replace(/\0.*$/,"").trim(),8);if(isNaN(r))return!1;let a=8*32;for(let s=o;s<o+148;s++)a+=e[s];for(let s=o+156;s<o+512;s++)a+=e[s];return r===a},util$1.uint32SyncSafeToken={get:(e,o)=>e[o+3]&127|e[o+2]<<7|e[o+1]<<14|e[o]<<21,len:4};var supported$1={extensions:["jpg","png","apng","gif","webp","flif","xcf","cr2","cr3","orf","arw","dng","nef","rw2","raf","tif","bmp","icns","jxr","psd","indd","zip","tar","rar","gz","bz2","7z","dmg","mp4","mid","mkv","webm","mov","avi","mpg","mp2","mp3","m4a","oga","ogg","ogv","opus","flac","wav","spx","amr","pdf","epub","exe","swf","rtf","wasm","woff","woff2","eot","ttf","otf","ico","flv","ps","xz","sqlite","nes","crx","xpi","cab","deb","ar","rpm","Z","lz","cfb","mxf","mts","blend","bpg","docx","pptx","xlsx","3gp","3g2","jp2","jpm","jpx","mj2","aif","qcp","odt","ods","odp","xml","mobi","heic","cur","ktx","ape","wv","dcm","ics","glb","pcap","dsf","lnk","alias","voc","ac3","m4v","m4p","m4b","f4v","f4p","f4b","f4a","mie","asf","ogm","ogx","mpc","arrow","shp","aac","mp1","it","s3m","xm","ai","skp","avif","eps","lzh","pgp","asar","stl","chm","3mf","zst","jxl","vcf"],mimeTypes:["image/jpeg","image/png","image/gif","image/webp","image/flif","image/x-xcf","image/x-canon-cr2","image/x-canon-cr3","image/tiff","image/bmp","image/vnd.ms-photo","image/vnd.adobe.photoshop","application/x-indesign","application/epub+zip","application/x-xpinstall","application/vnd.oasis.opendocument.text","application/vnd.oasis.opendocument.spreadsheet","application/vnd.oasis.opendocument.presentation","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/zip","application/x-tar","application/x-rar-compressed","application/gzip","application/x-bzip2","application/x-7z-compressed","application/x-apple-diskimage","application/x-apache-arrow","video/mp4","audio/midi","video/x-matroska","video/webm","video/quicktime","video/vnd.avi","audio/vnd.wave","audio/qcelp","audio/x-ms-asf","video/x-ms-asf","application/vnd.ms-asf","video/mpeg","video/3gpp","audio/mpeg","audio/mp4","audio/opus","video/ogg","audio/ogg","application/ogg","audio/x-flac","audio/ape","audio/wavpack","audio/amr","application/pdf","application/x-msdownload","application/x-shockwave-flash","application/rtf","application/wasm","font/woff","font/woff2","application/vnd.ms-fontobject","font/ttf","font/otf","image/x-icon","video/x-flv","application/postscript","application/eps","application/x-xz","application/x-sqlite3","application/x-nintendo-nes-rom","application/x-google-chrome-extension","application/vnd.ms-cab-compressed","application/x-deb","application/x-unix-archive","application/x-rpm","application/x-compress","application/x-lzip","application/x-cfb","application/x-mie","application/mxf","video/mp2t","application/x-blender","image/bpg","image/jp2","image/jpx","image/jpm","image/mj2","audio/aiff","application/xml","application/x-mobipocket-ebook","image/heif","image/heif-sequence","image/heic","image/heic-sequence","image/icns","image/ktx","application/dicom","audio/x-musepack","text/calendar","text/vcard","model/gltf-binary","application/vnd.tcpdump.pcap","audio/x-dsf","application/x.ms.shortcut","application/x.apple.alias","audio/x-voc","audio/vnd.dolby.dd-raw","audio/x-m4a","image/apng","image/x-olympus-orf","image/x-sony-arw","image/x-adobe-dng","image/x-nikon-nef","image/x-panasonic-rw2","image/x-fujifilm-raf","video/x-m4v","video/3gpp2","application/x-esri-shape","audio/aac","audio/x-it","audio/x-s3m","audio/x-xm","video/MP1S","video/MP2P","application/vnd.sketchup.skp","image/avif","application/x-lzh-compressed","application/pgp-encrypted","application/x-asar","model/stl","application/vnd.ms-htmlhelp","model/3mf","image/jxl","application/zstd"]};const Token=lib$1,strtok3=core$1,{stringToBytes,tarHeaderChecksumMatches,uint32SyncSafeToken}=util$1,supported=supported$1,minimumBytes=4100;async function fromStream(e){const o=await strtok3.fromStream(e);try{return await fromTokenizer(o)}finally{await o.close()}}async function fromBuffer(e){if(!(e instanceof Uint8Array||e instanceof ArrayBuffer||Buffer.isBuffer(e)))throw new TypeError(`Expected the \`input\` argument to be of type \`Uint8Array\` or \`Buffer\` or \`ArrayBuffer\`, got \`${typeof e}\``);const o=e instanceof Buffer?e:Buffer.from(e);if(!(o&&o.length>1))return;const r=strtok3.fromBuffer(o);return fromTokenizer(r)}function _check(e,o,r){r={offset:0,...r};for(const[a,s]of o.entries())if(r.mask){if(s!==(r.mask[a]&e[a+r.offset]))return!1}else if(s!==e[a+r.offset])return!1;return!0}async function fromTokenizer(e){try{return _fromTokenizer(e)}catch(o){if(!(o instanceof strtok3.EndOfStreamError))throw o}}async function _fromTokenizer(e){let o=Buffer.alloc(minimumBytes);const r=12,a=(c,l)=>_check(o,c,l),s=(c,l)=>a(stringToBytes(c),l);if(e.fileInfo.size||(e.fileInfo.size=Number.MAX_SAFE_INTEGER),await e.peekBuffer(o,{length:r,mayBeLess:!0}),a([66,77]))return{ext:"bmp",mime:"image/bmp"};if(a([11,119]))return{ext:"ac3",mime:"audio/vnd.dolby.dd-raw"};if(a([120,1]))return{ext:"dmg",mime:"application/x-apple-diskimage"};if(a([77,90]))return{ext:"exe",mime:"application/x-msdownload"};if(a([37,33]))return await e.peekBuffer(o,{length:24,mayBeLess:!0}),s("PS-Adobe-",{offset:2})&&s(" EPSF-",{offset:14})?{ext:"eps",mime:"application/eps"}:{ext:"ps",mime:"application/postscript"};if(a([31,160])||a([31,157]))return{ext:"Z",mime:"application/x-compress"};if(a([255,216,255]))return{ext:"jpg",mime:"image/jpeg"};if(a([73,73,188]))return{ext:"jxr",mime:"image/vnd.ms-photo"};if(a([31,139,8]))return{ext:"gz",mime:"application/gzip"};if(a([66,90,104]))return{ext:"bz2",mime:"application/x-bzip2"};if(s("ID3")){await e.ignore(6);const c=await e.readToken(uint32SyncSafeToken);return e.position+c>e.fileInfo.size?{ext:"mp3",mime:"audio/mpeg"}:(await e.ignore(c),fromTokenizer(e))}if(s("MP+"))return{ext:"mpc",mime:"audio/x-musepack"};if((o[0]===67||o[0]===70)&&a([87,83],{offset:1}))return{ext:"swf",mime:"application/x-shockwave-flash"};if(a([71,73,70]))return{ext:"gif",mime:"image/gif"};if(s("FLIF"))return{ext:"flif",mime:"image/flif"};if(s("8BPS"))return{ext:"psd",mime:"image/vnd.adobe.photoshop"};if(s("WEBP",{offset:8}))return{ext:"webp",mime:"image/webp"};if(s("MPCK"))return{ext:"mpc",mime:"audio/x-musepack"};if(s("FORM"))return{ext:"aif",mime:"audio/aiff"};if(s("icns",{offset:0}))return{ext:"icns",mime:"image/icns"};if(a([80,75,3,4])){try{for(;e.position+30<e.fileInfo.size;){await e.readBuffer(o,{length:30});const c={compressedSize:o.readUInt32LE(18),uncompressedSize:o.readUInt32LE(22),filenameLength:o.readUInt16LE(26),extraFieldLength:o.readUInt16LE(28)};if(c.filename=await e.readToken(new Token.StringType(c.filenameLength,"utf-8")),await e.ignore(c.extraFieldLength),c.filename==="META-INF/mozilla.rsa")return{ext:"xpi",mime:"application/x-xpinstall"};if(c.filename.endsWith(".rels")||c.filename.endsWith(".xml"))switch(c.filename.split("/")[0]){case"_rels":break;case"word":return{ext:"docx",mime:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"};case"ppt":return{ext:"pptx",mime:"application/vnd.openxmlformats-officedocument.presentationml.presentation"};case"xl":return{ext:"xlsx",mime:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"};default:break}if(c.filename.startsWith("xl/"))return{ext:"xlsx",mime:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"};if(c.filename.startsWith("3D/")&&c.filename.endsWith(".model"))return{ext:"3mf",mime:"model/3mf"};if(c.filename==="mimetype"&&c.compressedSize===c.uncompressedSize)switch(await e.readToken(new Token.StringType(c.compressedSize,"utf-8"))){case"application/epub+zip":return{ext:"epub",mime:"application/epub+zip"};case"application/vnd.oasis.opendocument.text":return{ext:"odt",mime:"application/vnd.oasis.opendocument.text"};case"application/vnd.oasis.opendocument.spreadsheet":return{ext:"ods",mime:"application/vnd.oasis.opendocument.spreadsheet"};case"application/vnd.oasis.opendocument.presentation":return{ext:"odp",mime:"application/vnd.oasis.opendocument.presentation"};default:}if(c.compressedSize===0){let l=-1;for(;l<0&&e.position<e.fileInfo.size;)await e.peekBuffer(o,{mayBeLess:!0}),l=o.indexOf("504B0304",0,"hex"),await e.ignore(l>=0?l:o.length)}else await e.ignore(c.compressedSize)}}catch(c){if(!(c instanceof strtok3.EndOfStreamError))throw c}return{ext:"zip",mime:"application/zip"}}if(s("OggS")){await e.ignore(28);const c=Buffer.alloc(8);return await e.readBuffer(c),_check(c,[79,112,117,115,72,101,97,100])?{ext:"opus",mime:"audio/opus"}:_check(c,[128,116,104,101,111,114,97])?{ext:"ogv",mime:"video/ogg"}:_check(c,[1,118,105,100,101,111,0])?{ext:"ogm",mime:"video/ogg"}:_check(c,[127,70,76,65,67])?{ext:"oga",mime:"audio/ogg"}:_check(c,[83,112,101,101,120,32,32])?{ext:"spx",mime:"audio/ogg"}:_check(c,[1,118,111,114,98,105,115])?{ext:"ogg",mime:"audio/ogg"}:{ext:"ogx",mime:"application/ogg"}}if(a([80,75])&&(o[2]===3||o[2]===5||o[2]===7)&&(o[3]===4||o[3]===6||o[3]===8))return{ext:"zip",mime:"application/zip"};if(s("ftyp",{offset:4})&&(o[8]&96)!==0){const c=o.toString("binary",8,12).replace("\0"," ").trim();switch(c){case"avif":return{ext:"avif",mime:"image/avif"};case"mif1":return{ext:"heic",mime:"image/heif"};case"msf1":return{ext:"heic",mime:"image/heif-sequence"};case"heic":case"heix":return{ext:"heic",mime:"image/heic"};case"hevc":case"hevx":return{ext:"heic",mime:"image/heic-sequence"};case"qt":return{ext:"mov",mime:"video/quicktime"};case"M4V":case"M4VH":case"M4VP":return{ext:"m4v",mime:"video/x-m4v"};case"M4P":return{ext:"m4p",mime:"video/mp4"};case"M4B":return{ext:"m4b",mime:"audio/mp4"};case"M4A":return{ext:"m4a",mime:"audio/x-m4a"};case"F4V":return{ext:"f4v",mime:"video/mp4"};case"F4P":return{ext:"f4p",mime:"video/mp4"};case"F4A":return{ext:"f4a",mime:"audio/mp4"};case"F4B":return{ext:"f4b",mime:"audio/mp4"};case"crx":return{ext:"cr3",mime:"image/x-canon-cr3"};default:return c.startsWith("3g")?c.startsWith("3g2")?{ext:"3g2",mime:"video/3gpp2"}:{ext:"3gp",mime:"video/3gpp"}:{ext:"mp4",mime:"video/mp4"}}}if(s("MThd"))return{ext:"mid",mime:"audio/midi"};if(s("wOFF")&&(a([0,1,0,0],{offset:4})||s("OTTO",{offset:4})))return{ext:"woff",mime:"font/woff"};if(s("wOF2")&&(a([0,1,0,0],{offset:4})||s("OTTO",{offset:4})))return{ext:"woff2",mime:"font/woff2"};if(a([212,195,178,161])||a([161,178,195,212]))return{ext:"pcap",mime:"application/vnd.tcpdump.pcap"};if(s("DSD "))return{ext:"dsf",mime:"audio/x-dsf"};if(s("LZIP"))return{ext:"lz",mime:"application/x-lzip"};if(s("fLaC"))return{ext:"flac",mime:"audio/x-flac"};if(a([66,80,71,251]))return{ext:"bpg",mime:"image/bpg"};if(s("wvpk"))return{ext:"wv",mime:"audio/wavpack"};if(s("%PDF")){await e.ignore(1350);const c=10*1024*1024,l=Buffer.alloc(Math.min(c,e.fileInfo.size));return await e.readBuffer(l,{mayBeLess:!0}),l.includes(Buffer.from("AIPrivateData"))?{ext:"ai",mime:"application/postscript"}:{ext:"pdf",mime:"application/pdf"}}if(a([0,97,115,109]))return{ext:"wasm",mime:"application/wasm"};if(a([73,73,42,0]))return s("CR",{offset:8})?{ext:"cr2",mime:"image/x-canon-cr2"}:a([28,0,254,0],{offset:8})||a([31,0,11,0],{offset:8})?{ext:"nef",mime:"image/x-nikon-nef"}:a([8,0,0,0],{offset:4})&&(a([45,0,254,0],{offset:8})||a([39,0,254,0],{offset:8}))?{ext:"dng",mime:"image/x-adobe-dng"}:(o=Buffer.alloc(24),await e.peekBuffer(o),(a([16,251,134,1],{offset:4})||a([8,0,0,0],{offset:4}))&&a([0,254,0,4,0,1,0,0,0,1,0,0,0,3,1],{offset:9})?{ext:"arw",mime:"image/x-sony-arw"}:{ext:"tif",mime:"image/tiff"});if(a([77,77,0,42]))return{ext:"tif",mime:"image/tiff"};if(s("MAC "))return{ext:"ape",mime:"audio/ape"};if(a([26,69,223,163])){async function c(){const p=await e.peekNumber(Token.UINT8);let m=128,I=0;for(;(p&m)===0&&m!==0;)++I,m>>=1;const h=Buffer.alloc(I+1);return await e.readBuffer(h),h}async function l(){const p=await c(),m=await c();m[0]^=128>>m.length-1;const I=Math.min(6,m.length);return{id:p.readUIntBE(0,p.length),len:m.readUIntBE(m.length-I,I)}}async function d(p,m){for(;m>0;){const I=await l();if(I.id===17026)return e.readToken(new Token.StringType(I.len,"utf-8"));await e.ignore(I.len),--m}}const u=await l();switch(await d(1,u.len)){case"webm":return{ext:"webm",mime:"video/webm"};case"matroska":return{ext:"mkv",mime:"video/x-matroska"};default:return}}if(a([82,73,70,70])){if(a([65,86,73],{offset:8}))return{ext:"avi",mime:"video/vnd.avi"};if(a([87,65,86,69],{offset:8}))return{ext:"wav",mime:"audio/vnd.wave"};if(a([81,76,67,77],{offset:8}))return{ext:"qcp",mime:"audio/qcelp"}}if(s("SQLi"))return{ext:"sqlite",mime:"application/x-sqlite3"};if(a([78,69,83,26]))return{ext:"nes",mime:"application/x-nintendo-nes-rom"};if(s("Cr24"))return{ext:"crx",mime:"application/x-google-chrome-extension"};if(s("MSCF")||s("ISc("))return{ext:"cab",mime:"application/vnd.ms-cab-compressed"};if(a([237,171,238,219]))return{ext:"rpm",mime:"application/x-rpm"};if(a([197,208,211,198]))return{ext:"eps",mime:"application/eps"};if(a([40,181,47,253]))return{ext:"zst",mime:"application/zstd"};if(a([79,84,84,79,0]))return{ext:"otf",mime:"font/otf"};if(s("#!AMR"))return{ext:"amr",mime:"audio/amr"};if(s("{\\rtf"))return{ext:"rtf",mime:"application/rtf"};if(a([70,76,86,1]))return{ext:"flv",mime:"video/x-flv"};if(s("IMPM"))return{ext:"it",mime:"audio/x-it"};if(s("-lh0-",{offset:2})||s("-lh1-",{offset:2})||s("-lh2-",{offset:2})||s("-lh3-",{offset:2})||s("-lh4-",{offset:2})||s("-lh5-",{offset:2})||s("-lh6-",{offset:2})||s("-lh7-",{offset:2})||s("-lzs-",{offset:2})||s("-lz4-",{offset:2})||s("-lz5-",{offset:2})||s("-lhd-",{offset:2}))return{ext:"lzh",mime:"application/x-lzh-compressed"};if(a([0,0,1,186])){if(a([33],{offset:4,mask:[241]}))return{ext:"mpg",mime:"video/MP1S"};if(a([68],{offset:4,mask:[196]}))return{ext:"mpg",mime:"video/MP2P"}}if(s("ITSF"))return{ext:"chm",mime:"application/vnd.ms-htmlhelp"};if(a([253,55,122,88,90,0]))return{ext:"xz",mime:"application/x-xz"};if(s("<?xml "))return{ext:"xml",mime:"application/xml"};if(a([55,122,188,175,39,28]))return{ext:"7z",mime:"application/x-7z-compressed"};if(a([82,97,114,33,26,7])&&(o[6]===0||o[6]===1))return{ext:"rar",mime:"application/x-rar-compressed"};if(s("solid "))return{ext:"stl",mime:"model/stl"};if(s("BLENDER"))return{ext:"blend",mime:"application/x-blender"};if(s("!<arch>"))return await e.ignore(8),await e.readToken(new Token.StringType(13,"ascii"))==="debian-binary"?{ext:"deb",mime:"application/x-deb"}:{ext:"ar",mime:"application/x-unix-archive"};if(a([137,80,78,71,13,10,26,10])){await e.ignore(8);async function c(){return{length:await e.readToken(Token.INT32_BE),type:await e.readToken(new Token.StringType(4,"binary"))}}do{const l=await c();if(l.length<0)return;switch(l.type){case"IDAT":return{ext:"png",mime:"image/png"};case"acTL":return{ext:"apng",mime:"image/apng"};default:await e.ignore(l.length+4)}}while(e.position+8<e.fileInfo.size);return{ext:"png",mime:"image/png"}}if(a([65,82,82,79,87,49,0,0]))return{ext:"arrow",mime:"application/x-apache-arrow"};if(a([103,108,84,70,2,0,0,0]))return{ext:"glb",mime:"model/gltf-binary"};if(a([102,114,101,101],{offset:4})||a([109,100,97,116],{offset:4})||a([109,111,111,118],{offset:4})||a([119,105,100,101],{offset:4}))return{ext:"mov",mime:"video/quicktime"};if(a([73,73,82,79,8,0,0,0,24]))return{ext:"orf",mime:"image/x-olympus-orf"};if(s("gimp xcf "))return{ext:"xcf",mime:"image/x-xcf"};if(a([73,73,85,0,24,0,0,0,136,231,116,216]))return{ext:"rw2",mime:"image/x-panasonic-rw2"};if(a([48,38,178,117,142,102,207,17,166,217])){async function c(){const l=Buffer.alloc(16);return await e.readBuffer(l),{id:l,size:Number(await e.readToken(Token.UINT64_LE))}}for(await e.ignore(30);e.position+24<e.fileInfo.size;){const l=await c();let d=l.size-24;if(_check(l.id,[145,7,220,183,183,169,207,17,142,230,0,192,12,32,83,101])){const u=Buffer.alloc(16);if(d-=await e.readBuffer(u),_check(u,[64,158,105,248,77,91,207,17,168,253,0,128,95,92,68,43]))return{ext:"asf",mime:"audio/x-ms-asf"};if(_check(u,[192,239,25,188,77,91,207,17,168,253,0,128,95,92,68,43]))return{ext:"asf",mime:"video/x-ms-asf"};break}await e.ignore(d)}return{ext:"asf",mime:"application/vnd.ms-asf"}}if(a([171,75,84,88,32,49,49,187,13,10,26,10]))return{ext:"ktx",mime:"image/ktx"};if((a([126,16,4])||a([126,24,4]))&&a([48,77,73,69],{offset:4}))return{ext:"mie",mime:"application/x-mie"};if(a([39,10,0,0,0,0,0,0,0,0,0,0],{offset:2}))return{ext:"shp",mime:"application/x-esri-shape"};if(a([0,0,0,12,106,80,32,32,13,10,135,10]))switch(await e.ignore(20),await e.readToken(new Token.StringType(4,"ascii"))){case"jp2 ":return{ext:"jp2",mime:"image/jp2"};case"jpx ":return{ext:"jpx",mime:"image/jpx"};case"jpm ":return{ext:"jpm",mime:"image/jpm"};case"mjp2":return{ext:"mj2",mime:"image/mj2"};default:return}if(a([255,10])||a([0,0,0,12,74,88,76,32,13,10,135,10]))return{ext:"jxl",mime:"image/jxl"};if(a([0,0,1,186])||a([0,0,1,179]))return{ext:"mpg",mime:"video/mpeg"};if(a([0,1,0,0,0]))return{ext:"ttf",mime:"font/ttf"};if(a([0,0,1,0]))return{ext:"ico",mime:"image/x-icon"};if(a([0,0,2,0]))return{ext:"cur",mime:"image/x-icon"};if(a([208,207,17,224,161,177,26,225]))return{ext:"cfb",mime:"application/x-cfb"};if(await e.peekBuffer(o,{length:Math.min(256,e.fileInfo.size),mayBeLess:!0}),s("BEGIN:")){if(s("VCARD",{offset:6}))return{ext:"vcf",mime:"text/vcard"};if(s("VCALENDAR",{offset:6}))return{ext:"ics",mime:"text/calendar"}}if(s("FUJIFILMCCD-RAW"))return{ext:"raf",mime:"image/x-fujifilm-raf"};if(s("Extended Module:"))return{ext:"xm",mime:"audio/x-xm"};if(s("Creative Voice File"))return{ext:"voc",mime:"audio/x-voc"};if(a([4,0,0,0])&&o.length>=16){const c=o.readUInt32LE(12);if(c>12&&o.length>=c+16)try{const l=o.slice(16,c+16).toString();if(JSON.parse(l).files)return{ext:"asar",mime:"application/x-asar"}}catch{}}if(a([6,14,43,52,2,5,1,1,13,1,2,1,1,2]))return{ext:"mxf",mime:"application/mxf"};if(s("SCRM",{offset:44}))return{ext:"s3m",mime:"audio/x-s3m"};if(a([71],{offset:4})&&(a([71],{offset:192})||a([71],{offset:196})))return{ext:"mts",mime:"video/mp2t"};if(a([66,79,79,75,77,79,66,73],{offset:60}))return{ext:"mobi",mime:"application/x-mobipocket-ebook"};if(a([68,73,67,77],{offset:128}))return{ext:"dcm",mime:"application/dicom"};if(a([76,0,0,0,1,20,2,0,0,0,0,0,192,0,0,0,0,0,0,70]))return{ext:"lnk",mime:"application/x.ms.shortcut"};if(a([98,111,111,107,0,0,0,0,109,97,114,107,0,0,0,0]))return{ext:"alias",mime:"application/x.apple.alias"};if(a([76,80],{offset:34})&&(a([0,0,1],{offset:8})||a([1,0,2],{offset:8})||a([2,0,2],{offset:8})))return{ext:"eot",mime:"application/vnd.ms-fontobject"};if(a([6,6,237,245,216,29,70,229,189,49,239,231,254,116,183,29]))return{ext:"indd",mime:"application/x-indesign"};if(await e.peekBuffer(o,{length:Math.min(512,e.fileInfo.size),mayBeLess:!0}),tarHeaderChecksumMatches(o))return{ext:"tar",mime:"application/x-tar"};if(a([255,254,255,14,83,0,107,0,101,0,116,0,99,0,104,0,85,0,112,0,32,0,77,0,111,0,100,0,101,0,108,0]))return{ext:"skp",mime:"application/vnd.sketchup.skp"};if(s("-----BEGIN PGP MESSAGE-----"))return{ext:"pgp",mime:"application/pgp-encrypted"};if(o.length>=2&&a([255,224],{offset:0,mask:[255,224]})){if(a([16],{offset:1,mask:[22]}))return a([8],{offset:1,mask:[8]})?{ext:"aac",mime:"audio/aac"}:{ext:"aac",mime:"audio/aac"};if(a([2],{offset:1,mask:[6]}))return{ext:"mp3",mime:"audio/mpeg"};if(a([4],{offset:1,mask:[6]}))return{ext:"mp2",mime:"audio/mpeg"};if(a([6],{offset:1,mask:[6]}))return{ext:"mp1",mime:"audio/mpeg"}}}const stream=readableStream=>new Promise((resolve,reject)=>{const stream=eval("require")("stream");readableStream.on("error",reject),readableStream.once("readable",async()=>{const e=new stream.PassThrough;let o;stream.pipeline?o=stream.pipeline(readableStream,e,()=>{}):o=readableStream.pipe(e);const r=readableStream.read(minimumBytes)||readableStream.read()||Buffer.alloc(0);try{const a=await fromBuffer(r);e.fileType=a}catch(a){reject(a)}resolve(o)})}),fileType={fromStream,fromTokenizer,fromBuffer,stream};Object.defineProperty(fileType,"extensions",{get(){return new Set(supported.extensions)}}),Object.defineProperty(fileType,"mimeTypes",{get(){return new Set(supported.mimeTypes)}});var core=fileType;(function(e){const{ReadableWebToNodeStream:o}=lib$2,r=core;async function a(l){const d=new o(l),u=await r.fromStream(d);return await d.close(),u}async function s(l){const d=await c(l);return r.fromBuffer(Buffer.from(d))}function c(l){return l.arrayBuffer?l.arrayBuffer():new Promise((d,u)=>{const f=new FileReader;f.addEventListener("loadend",p=>{d(p.target.result)}),f.addEventListener("error",p=>{u(new Error(p.message))}),f.addEventListener("abort",p=>{u(new Error(p.type))}),f.readAsArrayBuffer(l)})}Object.assign(e.exports,r,{fromStream:a,fromBlob:s})})(browser$1);const FileType=browser$1.exports;function getFilesize(e){const r=require$$0.Buffer.from(e,"base64").length/1e3;return`${Math.round((r+Number.EPSILON)*100)/100} KB`}async function getMimeType(e){const o=await FileType.fromBuffer(require$$0.Buffer.from(e,"base64"));return o||{mime:"text/plain",ext:"txt"}}const toBase64=e=>new Promise((o,r)=>{const a=new FileReader;a.readAsDataURL(e),a.onload=s=>o(s.target.result.split(",")[1]),a.onerror=s=>r(s)});function openBase64InNewTab(e,o){for(var r=atob(e),a=new Array(r.length),s=0;s<r.length;s++)a[s]=r.charCodeAt(s);var c=new Uint8Array(a),l=new Blob([c],{type:o+";base64"}),d=URL.createObjectURL(l);window.open(d)}const Image=e=>{const{ooui:o}=e,{required:r,id:a}=o,s=iconMapper(a);return s?jsxRuntime.jsx(s,{}):jsxRuntime.jsx(Field$1,{required:r,...e,children:jsxRuntime.jsx(ImageInput,{ooui:o})})},ImageInput=e=>{const{ooui:o,value:r,onChange:a}=e,{readOnly:s}=o,c=React.useRef(null),{t:l}=React.useContext(LocaleContext),d=m=>{a==null||a(m)};async function u(){const m=await getMimeType(r),I=`data:${m==null?void 0:m.mime};base64,${r}`,h=document.createElement("a");h.href=I,h.download=`image.${m==null?void 0:m.ext}`,h.click()}async function f(m){m.stopPropagation(),m.preventDefault();const I=m.target.files[0],h=await toBase64(I);d(h)}function p(){d(void 0)}return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs(antd.Row,{gutter:8,wrap:!1,justify:"center",children:[r&&jsxRuntime.jsx("img",{src:`data:image/*;base64,${r}`,style:{maxWidth:"100px"}}),jsxRuntime.jsx("input",{type:"file",id:"file",ref:c,accept:"image/*",style:{display:"none"},onChange:f})]}),jsxRuntime.jsx(antd.Row,{gutter:8,wrap:!1,justify:"center",className:"pt-5",children:jsxRuntime.jsxs(antd.Space,{children:[jsxRuntime.jsx(ButtonWithTooltip,{tooltip:l("uploadNewImage"),icon:jsxRuntime.jsx(Icon.FolderOpenOutlined,{}),disabled:s,onClick:()=>{c.current.click()}}),jsxRuntime.jsx(ButtonWithTooltip,{tooltip:l("download"),disabled:!r,onClick:u,icon:jsxRuntime.jsx(Icon.DownloadOutlined,{})}),jsxRuntime.jsx(ButtonWithTooltip,{tooltip:l("clear"),disabled:s||!r,onClick:p,icon:jsxRuntime.jsx(Icon.ClearOutlined,{})})]})})]})},FiberGrid=e=>{const{ooui:o}=e,{id:r,readOnly:a,required:s}=o;return jsxRuntime.jsx(Field$1,{required:s,...e,children:jsxRuntime.jsx(FiberGridInput,{})})},FiberGridInput=e=>{const{value:o,onChange:r}=e;if(!o)return null;try{JSON.parse(o)}catch(a){return console.log(a),null}return jsxRuntime.jsx(fiberDiagram.GridUi,{inputJson:o,onChange:a=>{r&&r(a)}})},readObjectValues=async e=>{const{items:o,model:r,formFields:a,treeFields:s,context:c={}}=e,l=o.filter(I=>I.operation!=="original"),d=o.filter(I=>I.operation==="original").map(I=>I.id),u=await ConnectionProvider.getHandler().readObjects({model:r,ids:d,fields:{...a,...s},context:c}),f=u.map(I=>{const h={};return Object.keys(I).forEach(v=>{(a.hasOwnProperty(v)||v==="id")&&(h[v]=I[v])}),h}),p=u.map(I=>{const h={};return Object.keys(I).forEach(v=>{(s.hasOwnProperty(v)||v==="id")&&(h[v]=I[v])}),h});return o.map(I=>{const h=f.find(C=>C.id===I.id),v=p.find(C=>C.id===I.id);return{...I,values:h,treeValues:v}}).concat(l)},getNextPendingId=e=>{const o=e.filter(r=>r.id&&r.id<0).map(r=>r.id);return o.length===0?-1:Math.min(...o)-1},Timeline=e=>{const{ooui:o}=e,{relation:r,context:a,views:s}=o,[c,l]=React.useState(!0),[d,u]=React.useState(),[f,p]=React.useState(new Map),m=React.useContext(FormContext$1),{getContext:I}=m||{};useDeepCompareEffect__default.default(()=>{v()},[o]);const h=async C=>s&&s[C]?s[C]:await ConnectionProvider.getHandler().getView({model:r,type:C,context:{...I==null?void 0:I(),...a}}),v=async()=>{l(!0),u(void 0);try{const C=await h("form"),b=await h("tree");f.set("form",C),f.set("tree",b),p(f)}catch(C){u(C)}finally{l(!1)}};return c?jsxRuntime.jsx(antd.Spin,{}):d?jsxRuntime.jsx(antd.Alert,{className:"mt-10",message:d,type:"error",banner:!0}):jsxRuntime.jsx(Field$1,{type:"array",...e,children:jsxRuntime.jsx(TimelineInput,{ooui:o,views:f})})},TimelineInput=e=>{const{value:o,views:r,ooui:a,onChange:s}=e,{items:c=[]}=o||{},[l,d]=React.useState(!1),[u,f]=React.useState(),[p,m]=React.useState(!1),[I,h]=React.useState(),{relation:v,context:C,readOnly:b,summaryField:y,titleField:g}=a,O=c.filter(E=>E.values),w=React.useContext(FormContext$1),{getContext:_}=w||{};useDeepCompareEffect__default.default(()=>{L()},[c]);const F=E=>{s==null||s({items:E})};async function L(){d(!0),f(void 0);try{const E=await readObjectValues({treeFields:r.get("tree").fields,formFields:r.get("form").fields,model:v,items:c,context:{..._==null?void 0:_(),...C}});F(E)}catch(E){f(E)}finally{d(!1)}}return u?jsxRuntime.jsx(antd.Alert,{className:"mt-10",message:u,type:"error",banner:!0}):l?jsxRuntime.jsx(antd.Spin,{}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(antd.Timeline,{style:{padding:"1rem"},children:O.map((E,P)=>{var A,W;return jsxRuntime.jsx("div",{children:jsxRuntime.jsxs(antd.Timeline.Item,{children:[jsxRuntime.jsx("div",{style:{display:"inline-block",cursor:"pointer"},onClick:()=>{h(O.find(J=>E.id===J.id)),m(!0)},children:jsxRuntime.jsx("strong",{children:(A=E.values)==null?void 0:A[g]})}),jsxRuntime.jsx("br",{}),jsxRuntime.jsx("div",{style:{display:"inline-block",cursor:"pointer"},onClick:()=>{h(O.find(J=>E.id===J.id)),m(!0)},children:(W=E.values)==null?void 0:W[y]})]},P)},P)})}),jsxRuntime.jsx(FormModal,{formView:r.get("form"),model:v,id:I==null?void 0:I.id,values:I==null?void 0:I.values,defaultValues:I==null?void 0:I.defaultValues,visible:p,onSubmitSucceed:()=>{m(!1)},parentContext:{..._==null?void 0:_(),...C},onCancel:()=>{m(!1)},readOnly:b,postSaveAction:L})]})},Indicator=e=>{const{ooui:o}=e;return jsxRuntime.jsx(Field$1,{ooui:o,children:jsxRuntime.jsx(IndicatorInput,{ooui:o})})},IndicatorInput=e=>{const{ooui:o,value:r}=e,a=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("span",{children:[o.label," "]}),o.tooltip&&jsxRuntime.jsx(antd.Tooltip,{title:o.tooltip,children:jsxRuntime.jsx(Icon.QuestionCircleOutlined,{className:"pr-1 text-xs text-blue-400"})})]}),s=iconMapper(o.icon);let c=r;o.selectionValues.size?c=o.selectionValues.get(r):Array.isArray(r)&&(c=r[1]);const l=jsxRuntime.jsx(antd.Statistic,{title:a,prefix:s&&jsxRuntime.jsx(s,{}),suffix:o.suffix,value:c});return o.card?jsxRuntime.jsx(antd.Card,{children:l}):l},filteredValues=(e,o)=>{if(!o)return e;const r={};return Object.keys(e).forEach(a=>{if(o[a]===void 0)r[a]=e[a];else if(!(e[a]===!1&&o[a].type!=="boolean"))if(o[a].type==="boolean"){const s=e[a];s===0?r[a]=!1:s===1?r[a]=!0:r[a]=e[a]}else r[a]=e[a]}),r},processValues=(e,o)=>filteredValues(e,o),getTouchedValues=({source:e,target:o,fields:r})=>{const a={};return Object.keys(o).forEach(s=>{var l,d;if(r[s]?r[s].type==="one2many"||r[s].type==="many2many":!1){const u=JSON.stringify(e[s]),f=JSON.stringify(o[s]);if(u===f)return;(((d=(l=o[s])==null?void 0:l.items)==null?void 0:d.filter(m=>m.operation!=="original"))||[]).length>0&&(a[s]=o[s])}else if(Array.isArray(o[s]))if(e[s]===void 0)a[s]=o[s];else if(r[s].type==="many2one")if(Array.isArray(e[s])){const u=JSON.stringify(e[s]),f=JSON.stringify(o[s]);u!==f&&(a[s]=o[s])}else{const u=e[s],[f]=o[s];u!==f&&(a[s]=o[s])}else{const u=JSON.stringify(e[s]),f=JSON.stringify(o[s]);u!==f&&(a[s]=o[s])}else e[s]!==o[s]&&(o[s]===void 0?a[s]=null:a[s]=o[s])}),a},checkFieldsType=({changedFields:e,fields:o,types:r})=>e.map(s=>{var c;return r.includes((c=o[s])==null?void 0:c.type)}).some(s=>s===!0),mergeFieldsDomain=({fieldsDomain:e,fields:o})=>{const r={};return Object.keys(o).forEach(a=>{r[a]=o[a],e[a]&&(r[a].domain=e[a])}),r},getValuesForDomain=e=>{const o={};return!e||!Array.isArray(e)||(e==null?void 0:e.length)===0?{}:(e.forEach(r=>{(r==null?void 0:r[1])==="="&&(o[r[0]]=r[2])}),o)},getOnChangePayload=({onChangeFieldActionArgs:e,values:o})=>{const r={};return e.forEach(a=>{o[a]?r[a]=o[a]:a[0]==="'"?r[a]=a.replace(/'/g,""):r[a]=!1}),r},mergeSearchFields=e=>{const o={primary:[],secondary:[]};return e.forEach(r=>{!r||(o.primary=o.primary.concat(r.primary),o.secondary=o.secondary.concat(r.secondary))}),{primary:o.primary.filter(onlyUnique),secondary:o.secondary.filter(onlyUnique)}};function onlyUnique(e,o,r){return r.indexOf(e)===o}const transformPlainMany2Ones=({values:e,fields:o})=>{let r={};return Object.keys(e).forEach(a=>{const s=e[a];o[a]&&o[a].type==="many2one"&&s&&Array.isArray(s)&&s.length===2?r[a]=s[0]:r[a]=s}),r},colorFromString=e=>{let o=0;for(let s=0;s<e.length;s++)o=e.charCodeAt(s)+((o<<5)-o);let r="#";for(let s=0;s<3;s++){var a=o>>s*8&255;r+=("00"+a.toString(16)).slice(-2)}return r},Tags=e=>{const{ooui:o}=e;return jsxRuntime.jsx(Field$1,{type:"array",...e,children:jsxRuntime.jsx(TagsInput,{ooui:o})})},TagsInput=e=>{const{value:o,ooui:r,onChange:a}=e,{items:s=[]}=o||{},c=s.filter(F=>F.operation!=="pendingRemove").map(F=>F.id),[l,d]=React.useState([]),[u,f]=React.useState(),[p,m]=React.useState(!1),{relation:I,context:h,readOnly:v,field:C}=r,b=React.useContext(FormContext$1),{getContext:y}=b||{};useDeepCompareEffect__default.default(()=>{O()},[s]);const g=F=>{a==null||a({items:F})};async function O(){m(!0);let F=[];try{if(v&&(F=[["id","in",c]]),r.domain){const P=await ConnectionProvider.getHandler().evalDomain({domain:r.domain,values:transformPlainMany2Ones({fields:b==null?void 0:b.getFields(),values:b.getPlainValues()}),context:b.getContext()});F=[...F,...P]}const E=(await ConnectionProvider.getHandler().search({model:I,params:F,fields:[C],context:{...y==null?void 0:y(),...h}})).map(P=>{const A=P[C];let W=A;return Array.isArray(A)&&(W=A[1]),{label:W,value:P.id}});d(E)}catch(L){f(L)}finally{m(!1)}}const w=F=>{const L=s.map(P=>F.includes(P.id)?P.operation=="pendingRemove"?{...P,operation:"pendingLink"}:P:{id:P.id,operation:"pendingRemove"}),E=L.map(P=>P.id);F.filter(P=>!E.includes(P)).map(P=>{L.push({id:P,operation:"pendingLink"})}),g(L)},_=F=>{const{label:L,closable:E,onClose:P}=F,A=W=>{W.preventDefault(),W.stopPropagation()};return jsxRuntime.jsx(antd.Tag,{color:colorFromString(L),onMouseDown:A,style:{margin:"5px"},closable:E,onClose:P,children:L})};return u?jsxRuntime.jsx(antd.Alert,{className:"mt-10",message:u,type:"error",banner:!0}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:jsxRuntime.jsx("div",{className:"flex flex-row",children:jsxRuntime.jsx(antd.Select,{mode:"multiple",value:l.length?c:[],tagRender:_,bordered:!v,disabled:v,options:l,onChange:w,loading:p})})})},getWidgetType=e=>{switch(e){case"form":return Form$1;case"tree":return Tree;case"notebook":return Notebook;case"group":return Group;case"label":return Label;case"char":return Char;case"text":return Text$2;case"button":return Button;case"buttonGroup":return ButtonGroup;case"selection":return Selection;case"many2one":return Many2one;case"boolean":return Boolean$1;case"integer":return Integer;case"float":return Float;case"progressbar":return ProgressBar;case"date":return Date$1;case"datetime":return DateTime;case"one2many":case"one2many_list":case"many2many":return One2many;case"separator":return Separator;case"reference":return Reference;case"binary":return Binary;case"image":return Image;case"url":return Url;case"email":return Email;case"float_time":return FloatTime;case"fiber_grid":return FiberGrid;case"timeline":return Timeline;case"indicator":return Indicator;case"tags":return Tags;case"multicheckbox":return MultiCheckbox;case"radio":return Radio;case"switch":return Switch;case"steps":return Steps;case"codeeditor":return CodeEditor;default:return}},createReactWidget=e=>{const{ooui:o}=e,{type:r}=o,a=getWidgetType(r);return a?React__default.default.createElement(a,e):null},getSpanStyleForItem=({item:e,responsiveBehaviour:o})=>({gridColumnStart:"span "+(o?1:e.colspan)}),fillRowWithEmptiesToFit=({row:e,mustFillWithEmpties:o,numberOfColumns:r})=>{const a=[];let s=0;const c=l=>l+1===e.length&&s<r&&!o;return e.map((l,d)=>{if(s+=l.colspan,c(d)){const u=r-s;l.colspan=l.colspan+u,s+=u}if(a.push(l),c(d)){const u=r-s;for(let f=0;f<u;f+=1)a.push(new ooui.Label({string:""}))}}),a},expandWidgetsIfNeeded=({row:e,numberOfColumns:o})=>e.map(r=>(r._mustExpand&&(r.colspan=o),r)),getSingleRowTemplateColumns=(e,o)=>{const r=e.map(a=>a instanceof ooui.Label&&a.fieldForLabel||a instanceof ooui.Container?"auto":"1fr");if(r.length<o){const a=o-r.length;for(let s=0;s<a;s++)r.push("1fr")}return r.join(" ")},getTemplateColumns=(e,o)=>{const r=o?"1fr":"auto",a="auto";let s="";for(let c=0;c<e;c++)s+=c%2?r:a,c+1<e&&(s+=" ");return s},getMaxColspanForRows=e=>e.map(r=>r.reduce((a,s)=>a+s.colspan,0)).reduce((r,a)=>Math.max(r,a)),Container=e=>{const{container:o,responsiveBehaviour:r}=e,{rows:a}=o;let{columns:s}=o;const c=getMaxColspanForRows(a);c<s&&(s=c);let l=!1,d=[];const u=a.map((m,I)=>{const h=m.filter(b=>!b.invisible),v=expandWidgetsIfNeeded({row:h,numberOfColumns:s});let C=v;return(I===0||!(m.length===1&&m.some(b=>b.type==="group")))&&(C=fillRowWithEmptiesToFit({row:v,numberOfColumns:s,mustFillWithEmpties:r}),d=d.concat(C)),C.map(b=>(b instanceof ooui.Label&&b.fieldForLabel&&(l=!0),jsxRuntime.jsx("div",{style:{...getSpanStyleForItem({item:b,responsiveBehaviour:r}),minWidth:0},children:createReactWidget({ooui:b,responsiveBehaviour:r})},b.key)))}),f=a.length===1?getSingleRowTemplateColumns(d,s):getTemplateColumns(s,l),p={display:"grid",gridTemplateColumns:r?"auto":f,gap:"1rem",minHeight:0,minWidth:0};return jsxRuntime.jsx("div",{style:p,children:u})},{confirm:confirm$3}=antd.Modal,showDialog$6=({onOk:e,onCancel:o,lang:r})=>{confirm$3({title:tForLang("unsavedChanges",r),icon:jsxRuntime.jsx(Icon.ExclamationCircleOutlined,{}),centered:!0,content:tForLang("confirmCloseWithoutSave",r),okText:tForLang("closeWithoutSaving",r),onOk:e,onCancel:o,cancelText:tForLang("cancel",r)})},{error:error$1}=antd.Modal,showDialog$5=e=>{error$1({title:tForLang("formHasErrors",e),icon:jsxRuntime.jsx(Icon.ExclamationCircleOutlined,{}),centered:!0,content:tForLang("fillRequiredFields",e)})},{warning}=antd.Modal,showDialog$4=(e,o,r)=>{warning({title:e,icon:jsxRuntime.jsx(Icon.WarningOutlined,{}),centered:!0,content:o,onOk:r})},FormModalContext=React__default.default.createContext(null),FormModalProvider=e=>{const{children:o,setTitle:r}=e;return jsxRuntime.jsx(FormModalContext.Provider,{value:{setTitle:r},children:o})},convertBooleanParamIfNeeded=e=>typeof e=="string"&&e==="true"||e==="false"?e==="true":e,getParamsForFields=(e,o)=>{const r=removeUndefinedFields(e),a=groupDateTimeValuesIfNeeded(r),s=ungroupDateValuesIfNeeded(a,o);return[...Object.keys(s).map(d=>getParamForField(d,s[d],o))].reduce((d,u)=>Array.isArray(u[0])?d.concat(u):[...d,u],[])},getParamForField=(e,o,r)=>{const a=e.split("#")[0],s=r[a].type;if(s==="char"||s==="text"||s==="many2one"||s==="many2many"||s==="one2many")return[e,"ilike",o];if(s==="float"||s==="integer"||s==="float_time"||s==="progressbar"){const c=e.indexOf("#from")!==-1?">=":"<=";return[a,c,o]}else if(s==="date"){const c=e.indexOf("#from")!==-1?">=":"<=";return[a,c,o.format("YYYY-MM-DD")]}else if(s==="datetime"){const c=[];return o[0]&&c.push([a,">=",o[0]]),o[1]&&c.push([a,"<=",o[1]]),c}else return s==="selection"?[e,"in",o.map(c=>convertBooleanParamIfNeeded(c))]:[e,"=",convertBooleanParamIfNeeded(o)]},getDatetimeDateFields=e=>Object.keys(e).filter(o=>o.indexOf("#date")!==-1),removeDateTimeSingleFields=e=>{const o={...e};return Object.keys(o).forEach(r=>(r.indexOf("#time")!==-1||r.indexOf("#date")!==-1)&&delete o[r]),o},groupDateTimeValuesIfNeeded=e=>{const o={...removeDateTimeSingleFields(e)};return getDatetimeDateFields(e).forEach(a=>{const s=e[a],c=a.split("#")[0],l=c+"#time",d=e[l];let u,f;if(s[0]!==null&&(u=s[0].format("YYYY-MM-DD"),d&&d[0]!==null)){const m=d[0].format("HH:mm:ss");u=u+" "+m}if(s[1]!==null&&(f=s[1].format("YYYY-MM-DD"),d&&d[1]!==null)){const m=d[1].format("HH:mm:ss");f=f+" "+m}o[c+"#datetime"]=[u,f]}),o},ungroupDateValuesIfNeeded=(e,o)=>{const r=Object.keys(e).filter(s=>o[s]&&o[s].type==="date");let a={...e};return r.forEach(s=>{delete a[s],e[s][0]!==null&&(a[s+"#from"]=e[s][0]),e[s][1]!==null&&(a[s+"#to"]=e[s][1])}),a},removeUndefinedFields=e=>{const o={...e};return Object.keys(o).forEach(r=>(o[r]===void 0||o[r]===null||o[r]==="")&&delete o[r]),o},getUniqueFieldsForParams=e=>{const o={};return e.forEach(r=>{Array.isArray(r)&&r[0]?o[r[0]]=!0:o[r]=!0}),Object.keys(o)},mergeParams=(e,o)=>{const r=[...e],a=getUniqueFieldsForParams(e);return o.forEach(s=>{Array.isArray(s)&&s[0]?a.includes(s[0])||r.push(s):a.includes(s)||r.push(s)}),r},getTree=e=>{const o=e.arch,r=e.fields,a=new ooui.Tree(r);return a.parse(o),a},getTableColumns=(e,o)=>e.columns.map(a=>{const s=a.type,c=a.id,l=o==null?void 0:o[s];let d;return l&&(d=u=>l(u)),{key:c,dataIndex:c,title:a.label,render:d,sorter:(u,f)=>{var I,h;let p=u[c]||"",m=f[c]||"";return s==="many2one"&&(p=((I=u[c])==null?void 0:I.value)||"",m=((h=f[c])==null?void 0:h.value)||""),p<m?-1:p>m?1:0}}}),getTableItems=(e,o)=>o.map(a=>{const s={};return Object.keys(a).map(c=>{if(c==="id")s[c]=a[c];else{const l=e.findById(c);if(l instanceof ooui.Selection){const d=l;s[c]=d.selectionValues.get(a[c])}else l instanceof ooui.Many2one?s[c]=a[c]&&Array.isArray(a[c])&&a[c].length===2&&{model:l.relation,id:a[c][0],value:a[c][1]}:l instanceof ooui.Boolean?s[c]=a[c]:l?s[c]=a[c]===!1?"":a[c]:s[c]=a[c]}}),s});function getColorMap(e){if(!e)return;const o={};return e.forEach(r=>{o[r.id]=r.colors}),o}function sortResults({resultsToSort:e,sorter:o,fields:r}){if(!o)return e;const{id:a,desc:s}=o,c=s===!1?"ascend":"descend",l=r[a].type,d=(u,f)=>{var I,h;let p=u[a]||"",m=f[a]||"";return l==="many2one"&&(p=((I=u[a])==null?void 0:I[1])||"",m=((h=f[a])==null?void 0:h[1])||""),p===m?0:c==="ascend"?p>m?1:-1:p<m?1:-1};return e.sort(d)}const DEFAULT_SEARCH_LIMIT$1=80,useSearch=e=>{const{model:o,setSearchTreeNameSearch:r,setSelectedRowItems:a,setSearchParams:s,setSearchVisible:c,setTreeIsLoading:l,nameSearch:d,searchNameGetDoneRef:u,context:f,setActionViewTotalItems:p,treeView:m,formView:I,sorter:h,setSorter:v,setCurrentItemIndex:C,setResultsActionView:b,resultsActionView:y,domain:g,currentId:O,limit:w,setLimit:_,searchParams:F=[],setSearchValues:L}=e,[E,P]=React.useState(!1),[A,W]=React.useState(!1),[J,Y]=React.useState(),[z,Q]=React.useState(1),[oe,te]=React.useState(0),[X,ce]=React.useState(),[Re,xe]=React.useState([]),[de,Ce]=React.useState(void 0),ee=React.useRef(w||DEFAULT_SEARCH_LIMIT$1),ue=React.useRef([]),N=React.useCallback(Ne=>{b==null||b([...Ne]),xe([...Ne])},[]),U=React.useCallback(()=>y||Re,[y,Re]),re=React.useCallback(async()=>{const Ne=await ConnectionProvider.getHandler().nameSearch({model:o,payload:d,limit:ee.current,attrs:g,context:f});if(ce(Ne.length),p==null||p(Ne.length),Ne.length>0){const Ge=Ne.map(Ct=>Ct==null?void 0:Ct[0]),{colors:yt}=getTree(m),Tt=await ConnectionProvider.getHandler().readEvalUiObjects({model:o,ids:Ge,arch:m==null?void 0:m.arch,fields:m.field_parent?{...m.fields,[m.field_parent]:{}}:m.fields,context:f,attrs:yt&&{colors:yt}}),Ot=Tt[0];ue.current=[...Ot],Ce(getColorMap(Tt[1]));const $t=Ot.map(Ct=>Ct.id),Vt=h!==void 0?sortResults({resultsToSort:Ot,sorter:h,fields:{...m.fields,...I.fields}}):[...ue.current];N(Vt),$t.length>0?C==null||C(0):C==null||C(void 0)}else N([]),C==null||C(void 0);u.current=!0},[N,u,d,o,f,g,m,I,h,C,p]),Te=React.useCallback(async Ne=>{const{params:Ge,newOffset:yt}=Ne||{},Tt=mergeParams(Ge||F,g),{colors:Ot}=getTree(m),{totalItems:$t,results:Vt,attrsEvaluated:Ct}=await ConnectionProvider.getHandler().searchForTree({params:Tt,limit:ee.current,offset:yt||oe,model:o,fields:m.field_parent?{...m.fields,[m.field_parent]:{}}:m.fields,context:f,attrs:Ot&&{colors:Ot}});Ce(getColorMap(Ct)),ue.current=[...Vt];const Ft=h!==void 0?sortResults({resultsToSort:Vt,sorter:h,fields:{...m.fields,...I.fields}}):[...ue.current];if(N(Ft),y&&Ft.length>0){const Gt=Ft.findIndex(Qt=>O===Qt.id);Gt===-1?C==null||C(0):C==null||C(Gt)}else C==null||C(void 0);const Ut=await $t;ce(Ut),p==null||p(Ut)},[C,y,N,O,o,f,g,m,I,h,p,w,oe,F]),Fe=React.useCallback(async Ne=>{try{P(!0),l==null||l(!0),d&&!u.current?await re():await Te(Ne)}catch(Ge){Y(Ge.message)}finally{P(!1),W(!1),l==null||l(!1)}},[f,O,g,I,w,o,d,oe,y,u,p,C,N,Y,W,P,l,h,m]),M=React.useCallback(Ne=>{v==null||v(Ne);const Ge=Ne!==void 0?sortResults({resultsToSort:U(),sorter:Ne,fields:{...m.fields,...I.fields}}):[...ue.current];N(Ge)},[v,U,m,I,N]),j=React.useCallback(Ne=>{const{params:Ge,searchValues:yt,limit:Tt,offset:Ot}=Ne;E||(r==null||r(void 0),a==null||a([]),L==null||L(yt),s==null||s(Ge),c==null||c(!1),W(!0),Y(void 0),Q(1),Tt&&(ee.current=Tt,_==null||_(Tt)),Ot&&te(Ot),Fe({params:Ge,newOffset:Ot}))},[E,r,a,s,c,W,Y,Q,_,te,Fe]),we=React.useCallback(Ne=>{P(!0),Q(Ne),te((Ne-1)*w)},[P,w,te,Q]),je=React.useCallback(()=>{E||(r==null||r(void 0),s==null||s([]),L==null||L({}),Y(void 0),te(0),Q(1),_==null||_(w||DEFAULT_SEARCH_LIMIT$1))},[E,r,s,Y,te,Q,_,w]),tt=React.useCallback(async Ne=>{const Ge=Ne[(m==null?void 0:m.field_parent)||"child_id"],yt=await ConnectionProvider.getHandler().readObjects({model:o,ids:Ge,fields:m.field_parent?{...m.fields,[m.field_parent]:{}}:m.fields,context:f});return N([...U(),...yt]),getTableItems(getTree(m),yt)},[m,o,f,U,N]);return{submit:j,clear:je,fetchResults:Fe,tableRefreshing:E,searchFilterLoading:A,searchError:J,page:z,offset:oe,limit:w,getResults:U,requestPageChange:we,changeSort:M,fetchChildrenForRecord:tt,colorsForResults:de,totalItems:X}},ActionViewContext=React__default.default.createContext(null),ActionViewProvider=e=>{const{children:o,currentView:r,title:a,setCurrentView:s,availableViews:c,formRef:l,searchTreeRef:d,onNewClicked:u,currentId:f,setCurrentId:p,setResults:m,results:I,currentItemIndex:h,setCurrentItemIndex:v,currentModel:C,sorter:b,setSorter:y,totalItems:g,setTotalItems:O,setSelectedRowItems:w,selectedRowItems:_,searchTreeNameSearch:F,setSearchTreeNameSearch:L,goToResourceId:E,limit:P}=e,[A,W]=React.useState(!1),[J,Y]=React.useState(!1),[z,Q]=React.useState(!1),[oe,te]=React.useState(!0),[X,ce]=React.useState(!0),[Re,xe]=React.useState([]),[de,Ce]=React.useState(!1),[ee,ue]=React.useState([]),[N,U]=React.useState(!1),[re,Te]=React.useState(!0),[Fe,M]=React.useState(),[j,we]=React.useState({}),[je,tt]=React.useState(P!==void 0?P:DEFAULT_SEARCH_LIMIT$1);React.useEffect(()=>{I&&I.length>0&&!h&&(v==null||v(0),p==null||p(I[0].id))},[I]),React.useEffect(()=>{tt(P!==void 0?P:DEFAULT_SEARCH_LIMIT$1)},[P]),React.useEffect(()=>{c.length===1?M(c[0]):c.length>1&&M(c.filter(Ge=>Ge.view_id!==r.view_id)[0])},[c]),React.useEffect(()=>{(Fe==null?void 0:Fe.view_id)===r.view_id&&c.length>1&&M(c.filter(Ge=>Ge.view_id!==r.view_id)[0])},[r]);const Ne=()=>{var Ge;(Ge=l.current)==null||Ge.submitForm()};return jsxRuntime.jsx(ActionViewContext.Provider,{value:{title:a,currentView:r,setCurrentView:s,availableViews:c,formIsSaving:A,setFormIsSaving:W,formHasChanges:J,setFormHasChanges:Y,formRef:l,searchTreeRef:d,onFormSave:Ne,onNewClicked:u,currentId:f,setCurrentId:p,currentItemIndex:h,setCurrentItemIndex:v,results:I,setResults:m,currentModel:C,removingItem:z,setRemovingItem:Q,formIsLoading:oe,setFormIsLoading:te,treeIsLoading:X,setTreeIsLoading:ce,attachments:Re,setAttachments:xe,selectedRowItems:_,setSelectedRowItems:w,duplicatingItem:de,setDuplicatingItem:Ce,setSearchParams:ue,searchParams:ee,searchVisible:N,setSearchVisible:U,sorter:b,setSorter:y,totalItems:g,setTotalItems:O,searchTreeNameSearch:F,setSearchTreeNameSearch:L,setGraphIsLoading:Te,graphIsLoading:re,previousView:Fe,setPreviousView:M,goToResourceId:E,searchValues:j,setSearchValues:we,limit:je,setLimit:tt},children:o})},TabManagerContext=React__default.default.createContext(null),TabManagerProvider=e=>{const{children:o,openAction:r,openRelate:a,openDefaultActionForModel:s,openShortcut:c,activeKey:l,onChangeTab:d,onRemoveTab:u,tabs:f}=e,[p,m]=React.useState(),[I,h]=React.useState();return jsxRuntime.jsx(TabManagerContext.Provider,{value:{openAction:r,openRelate:a,openDefaultActionForModel:s,activeKey:l,openShortcut:c,onChangeTab:d,onRemoveTab:u,tabs:f,currentId:I,currentView:p,setCurrentId:h,setCurrentView:m},children:o})},ContentRootContext=React__default.default.createContext(null),ContentRootProvider=(e,o)=>{const{children:r,globalValues:a={}}=e,s=React.useRef(),c=React.useRef(),[l,d]=React.useState(!1),u=React.useContext(TabManagerContext),{openAction:f}=u||{},p=React.useRef(),{t:m}=React.useContext(LocaleContext);React.useImperativeHandle(o,()=>({openActionModal:w}));const[I,h]=React.useState(!1),[v,C]=React.useState({context:{}});async function b(L){const{reportData:E,fields:P,values:A,context:W={}}=L,{context:J,model:Y,datas:z={},report_name:Q,type:oe}=E;if(oe!=="ir.actions.report.xml"){showDialog$8(`${oe} action not supported`);return}const{ids:te}=z||{};let X=te||[];const ce=typeof J=="string"?ooui.parseContext({context:J,fields:P,values:A}):J;try{const Re=await ConnectionProvider.getHandler().createReport({model:Y,name:Q,datas:z,ids:X,context:{...W,...ce}});d(!0),c.current=!0,s.current=setInterval(()=>{y(Re)},1e3)}catch(Re){c.current=!1,clearInterval(s.current),showDialog$8(Re),d(!1)}}async function y(L){let E;try{if(E=await ConnectionProvider.getHandler().getReport({id:L}),E.state&&c.current===!0){c.current=!1,clearInterval(s.current),d(!1);const P=await getMimeType(E.result);openBase64InNewTab(E.result,P.mime)}}catch(P){c.current=!1,clearInterval(s.current),d(!1),showDialog$8(P.exception||P)}}async function g({actionData:L,fields:E,values:P,context:A,onRefreshParentValues:W}){const{type:J}=L;return p.current=W,J==="ir.actions.report.xml"?await b({reportData:L,fields:E,values:P,context:A}):J==="ir.actions.act_window"?await O({actionData:L,fields:E,values:P,context:A}):(showDialog$8(`${J} action not supported`),{})}async function O({actionData:L,fields:E={},values:P={},context:A={}}){var Q;let W=L;L.res_model||(W=(await ConnectionProvider.getHandler().readObjects({model:"ir.actions.act_window",ids:[parseInt(L.id)],context:A}))[0]);const Y={...typeof(W==null?void 0:W.context)=="string"?ooui.parseContext({context:W.context,fields:E,values:{...P,...a}}):W.context,...A};let z=[];if(W.domain&&(z=await ConnectionProvider.getHandler().evalDomain({domain:W.domain,values:transformPlainMany2Ones({fields:E,values:{...P,...a}}),context:Y})),W.target==="new"){const oe=await ConnectionProvider.getHandler().getView({model:W.res_model,type:"form",id:((Q=W==null?void 0:W.view_id)==null?void 0:Q[0])||void 0,context:Y});return w({domain:z,model:W.res_model,formView:oe,context:Y}),{}}else{let oe;const te=W.view_mode.split(","),X=[];for(const ce of te){const Re=await ConnectionProvider.getHandler().getView({model:W.res_model,type:ce,context:Y});X.push([Re.view_id,ce])}if(W.view_id)oe={id:W.view_id,type:W.view_mode.split(",")[0]};else{const ce=W.view_mode.split(",")[0],[Re]=X.find(([xe,de])=>de===ce);oe={id:Re,type:ce}}return f==null||f({target:"current",context:Y,domain:z,model:W.res_model,views:X,title:W.name,initialView:oe,action_id:W.id,action_type:W.type}),{closeParent:!0}}}function w({domain:L,model:E,formView:P,context:A,actionData:W}){I?_({domain:L,model:E,formView:P,context:A,actionData:W}):(C({domain:L,model:E,context:A,formView:P,actionData:W}),h(!0))}async function _({domain:L,model:E,formView:P,context:A,actionData:W}){C({domain:void 0,model:void 0,context:{},formView:void 0,actionData:void 0}),h(!1),await new Promise(J=>setTimeout(J,300)),C({domain:L,model:E,context:A,formView:P,actionData:W}),h(!0)}async function F(){var L;(L=p.current)==null||L.call(p),h(!1),C({domain:void 0,model:void 0,context:{},formView:void 0,actionData:void 0})}return jsxRuntime.jsx(jsxRuntime.Fragment,{children:jsxRuntime.jsx(ContentRootContext.Provider,{value:{processAction:g,globalValues:a},children:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[r,jsxRuntime.jsx(antd.Modal,{title:m("generatingReport"),visible:l,footer:null,closable:!1,centered:!0,maskClosable:!1,children:jsxRuntime.jsx(antd.Spin,{})}),jsxRuntime.jsx(FormModal,{buttonModal:!0,parentContext:v.context,model:v.model,formView:v.formView,visible:I,onSubmitSucceed:F,onCancel:()=>{var L;(L=p.current)==null||L.call(p),h(!1),C({domain:void 0,model:void 0,context:{},formView:void 0,actionData:void 0})},showFooter:!1,actionDomain:v.domain,isMenuAction:(v==null?void 0:v.actionData)!==void 0,actionData:v==null?void 0:v.actionData})]})})})},ContentRootProvider$1=React.forwardRef(ContentRootProvider),WIDTH_BREAKPOINT=800;function Form(e,o){const{model:r,id:a,onCancel:s,onSubmitSucceed:c,showFooter:l=!1,getDataFromAction:d=!1,onFieldsChange:u,onSubmitError:f,readOnly:p=!1,mustClearAfterSave:m=!1,submitMode:I="api",values:h,formView:v,postSaveAction:C,insideButtonModal:b=!1,parentContext:y={},actionDomain:g,visible:O=!0,rootForm:w=!1,defaultValues:_,forcedValues:F={}}=e,{lang:L}=React.useContext(LocaleContext),[E,P]=React.useState(!1),[A,W]=React.useState(),[J,Y]=React.useState(),[z]=antd.Form.useForm(),[Q,oe]=React.useState(),[te,X]=React.useState(),ce=React.useContext(FormModalContext),[Re,xe]=React.useState(),[de,Ce]=React.useState(!1),ee=React.useRef(),ue=React.useRef({}),N=React.useRef({}),U=React.useRef(!1),re=React.useRef(!1),Te=Re<WIDTH_BREAKPOINT,Fe=React.useContext(FormContext$1),{activeId:M}=Fe||{},j=React.useContext(ActionViewContext),{setFormIsSaving:we=void 0,setFormHasChanges:je=void 0,setCurrentId:tt=void 0,setFormIsLoading:Ne=void 0,setAttachments:Ge=void 0}=(w?j:{})||{},yt=React.useContext(ContentRootContext),{processAction:Tt,globalValues:Ot}=yt||{};React.useImperativeHandle(o,()=>({submitForm:vn,getFields:Ut,getValues:Gt,getPlainValues:Qt,getContext:fn,fetchValues:pn,cancelUnsavedChanges:rn,clearAndReload:()=>{ee.current=void 0,Y(void 0),mn()}})),React.useEffect(()=>{if(W(void 0),!(!r&&!v)){if(!O){ee.current=void 0,Y(void 0);return}(a===void 0&&te||a!==void 0&&te&&a<0)&&(ee.current=void 0,Y(void 0)),mn()}},[a,r,h,v,O]),React.useEffect(()=>{de&&(yn({elementHasLostFocus:!0}),Ce(!1))},[de]);const $t=(gt,Qe,Mt)=>{je==null||je(!1),we==null||we(!1),c==null||c(gt,Qe,Mt),tt==null||tt(gt)},Vt=()=>{we==null||we(!1),s==null||s()},Ct=gt=>{we==null||we(!1),f==null||f(gt)};function Ft(){return a||ee.current}function Ut(){return te}function Gt(){const gt={...zt(te),...un()};for(const Qe in gt)gt[Qe]===void 0&&delete gt[Qe];return gt}function Qt(){const gt=Gt(),Qe=Ut();let Mt={};return Object.keys(gt).forEach(Lt=>{const Kt=gt[Lt];Qe[Lt]&&Qe[Lt].type==="many2one"&&Kt&&Array.isArray(Kt)&&Kt.length===2?Mt[Lt]=Kt[0]:Qe[Lt]&&(Qe[Lt].type==="one2many"||Qe[Lt].type==="many2many")&&Kt&&Kt.items?Mt[Lt]=Kt.items.filter(In=>In.operation!=="pendingRemove").map(In=>In.id):Mt[Lt]=Kt}),Mt}function Wt(){const gt={...zt(te)};for(const Qe in gt)gt[Qe]===void 0&&delete gt[Qe];return gt}function fn(){return{...y,...J==null?void 0:J.context}}function un(){return{id:Ft(),active_id:Ft(),active_ids:[Ft()],parent_id:M,...Ot}}const _t=async gt=>{const Qe=Ft()?J==null?void 0:J.context:{};return await ConnectionProvider.getHandler().defaultGet({model:r,fields:gt,context:{...y,...Qe},extraValues:_})},Dt=()=>Object.keys(getTouchedValues({source:ue.current,target:zt(te),fields:te})).length!==0,zt=gt=>{const Qe=z.getFieldsValue(!0);return processValues(Qe,gt)},Yt=(gt,Qe)=>{gn({values:{...processValues(z.getFieldsValue(!0),te),[gt]:Qe},fields:te,reset:!1})},en=gt=>z.getFieldsValue(!0)[gt];async function nn(){try{return await z.validateFields(),!1}catch{return!0}}const mn=async()=>{W(void 0),Ne==null||Ne(!0);let gt;try{v?gt={arch:v.arch,fields:v.fields}:gt=await hn();const{fields:Qe,arch:Mt}=gt;X(Qe),oe(Mt),await pn({fields:Qe,arch:Mt})}catch(Qe){W(Qe!=null&&Qe.message?Qe.message+Qe.stack:Qe),Ne==null||Ne(!1)}},pn=async gt=>{let Qe,Mt,Lt,Kt;Ne==null||Ne(!0),W(void 0),gt?(Mt=gt.fields,Lt=gt.arch):(Mt=te,Lt=Q),h?Qe=h:{values:Qe,defaultGetCalled:Kt}=await bn({fields:Mt,arch:Lt}),g&&(Qe={...getValuesForDomain(g),...Qe}),ue.current=processValues(Qe,Mt),gn({values:Qe,fields:Mt,reset:!0,isDefaultGet:Kt}),xn({fields:Mt,arch:Lt,values:Qe}),Ne==null||Ne(!1),je==null||je(!1),Kt&&Ce(!0)};function tn(gt,Qe){ue.current[gt]=Qe,je==null||je(Dt())}const rn=async()=>new Promise(async gt=>{Dt()?showDialog$6({lang:L,onOk:()=>{Vt==null||Vt(),gt(!0)},onCancel:()=>{gt(!1)}}):(Vt==null||Vt(),gt(!0))}),hn=async()=>{if(d){const gt=await ConnectionProvider.getHandler().getActionStringForModel(r);return(await ConnectionProvider.getHandler().getViewsForAction({action:gt,context:y})).views.get("form")}return await ConnectionProvider.getHandler().getView({model:r,type:"form",context:y})},gn=({values:gt,fields:Qe,reset:Mt,isDefaultGet:Lt=!1})=>{const In={...Mt?{}:z.getFieldsValue(!0),...gt},Cn=processValues(In,Qe),Bn=Object.keys(Qe).map(Rn=>{const Ln=Cn[Rn]!==void 0?Cn[Rn]:void 0;return{name:Rn,touched:!1,value:Ln}});Lt||(N.current=Cn),z.setFields(Bn)},bn=async({fields:gt,arch:Qe})=>{let Mt={},Lt=!1;if(Ft()){Mt=(await ConnectionProvider.getHandler().readObjects({model:r,ids:[Ft()],fields:gt,context:y}))[0];const Kt=await ConnectionProvider.getHandler().search({params:[["res_model","=",r],["res_id","=",Ft()]],fields:["id","name"],context:fn(),model:"ir.attachment"});Ge==null||Ge(Kt)}else Ge==null||Ge([]),Mt=await _t(gt),Lt=!0;return{values:Mt,defaultGetCalled:Lt}},wn=async gt=>{const{callOnSubmitSucceed:Qe=!0}=gt||{};if(Ft()){const Mt=getTouchedValues({source:ue.current,target:zt(te),fields:te});await ConnectionProvider.getHandler().update({model:r,id:Ft(),values:{...Mt,...F},fields:te,context:{...y,...J==null?void 0:J.context}}),ue.current=zt(te)}else{const Mt=zt(te),Lt=await ConnectionProvider.getHandler().create({model:r,values:{...Mt,...F},fields:te,context:{...y,...J==null?void 0:J.context}});ee.current=Lt,ue.current=Mt}C&&await C([Ft()]),!b&&Qe&&($t==null||$t(Ft(),Gt(),Wt()))},Sn=async gt=>{const{callOnSubmitSucceed:Qe=!0}=gt||{};!b&&Qe&&($t==null||$t(Ft(),Gt(),Wt()))},vn=async gt=>{let Qe=!1;const{callOnSubmitSucceed:Mt=!0}=gt||{};if(re.current=!0,W(void 0),!Dt()&&Ft()&&Mt)return re.current=!1,je==null||je(!1),Vt==null||Vt(),!0;if(await nn())return re.current=!1,showDialog$5(L),!1;P(!0),we==null||we(!0);try{I==="api"?await wn(gt):await Sn(gt),m&&(ee.current=void 0,gn({values:{},fields:te,reset:!0})),await pn(),Qe=!0}catch(Lt){re.current=!1,P(!1),we==null||we(!1),Ct==null||Ct(Lt),W(Lt!=null&&Lt.message?Lt.message:Lt)}finally{re.current=!1,we==null||we(!1),P(!1)}return Qe},xn=({fields:gt,arch:Qe,values:Mt})=>{var Kt;const Lt=new ooui.Form(gt);Lt.parse(Qe,{readOnly:p,values:{...Mt,...un()}}),Y(Lt),ce&&Lt.string&&((Kt=ce.setTitle)==null||Kt.call(ce,Lt.string))},yn=async({elementHasLostFocus:gt=!1})=>{if(re.current)return;const Qe=getTouchedValues({source:N.current,target:zt(te),fields:te}),Mt=Object.keys(Qe);if(Mt.length!==0){if(checkFieldsType({changedFields:Mt,fields:te,types:["text","codeeditor","email","url","char","float","float_time","integer","many2one"]})&>!==!0)return;{const Lt=processValues(z.getFieldsValue(!0),te);N.current=Lt,u==null||u(Lt),je==null||je(!0),Tn(Mt)}}},_n=debounce_1(yn,100),Tn=async gt=>{try{for(let Qe=0;Qe<gt.length;Qe+=1){const Mt=gt[Qe];await En(Mt)}}catch(Qe){showDialog$8(Qe)}},En=async gt=>{const Qe=J==null?void 0:J.onChangeFields[gt];if(!Qe){xn({fields:te,arch:Q,values:zt(te)});return}const Mt=getOnChangePayload({values:{...zt(te),context:{...y,...J==null?void 0:J.context}},onChangeFieldActionArgs:Qe.args}),Lt=await ConnectionProvider.getHandler().executeOnChange({model:r,action:Qe.method,ids:Ft()?[Ft()]:[],payload:Mt,fields:te});if(Lt.value){const Kt={...zt(te),...Lt.value};xn({fields:te,arch:Q,values:Kt}),gn({values:Kt,fields:te,reset:!1})}if(Lt.warning&&Lt.warning.title&&Lt.warning.message&&!U.current){const{title:Kt,message:In}=Lt.warning;U.current=!0,showDialog$4(Kt,In,()=>{U.current=!1})}if(Lt.domain&&Object.keys(Lt.domain).length>0){const Kt=mergeFieldsDomain({fieldsDomain:Lt.domain,fields:te});xn({fields:Kt,arch:Q,values:zt(Kt)}),X(Kt)}};async function Fn({action:gt,context:Qe}){const Mt=await ConnectionProvider.getHandler().execute({model:r,action:gt,payload:[Ft()],context:{...Qe,...J==null?void 0:J.context,...y}});if(typeof Mt=="object"&&Mt!==null&&Object.keys(Mt).length===0&&b)$t==null||$t(Ft(),Gt(),Wt());else if(Mt.type&&Mt.type==="ir.actions.act_window_close")$t==null||$t(Ft(),Gt(),Wt());else if(Mt.type){let Lt={};Mt.context&&(Lt=ooui.parseContext({context:Mt.context,fields:te,values:Gt()})),await On({actionData:Mt,context:{...Qe,...Lt}})}else await pn()}async function An({action:gt}){const Qe=await ConnectionProvider.getHandler().executeWorkflow({model:r,action:gt,payload:Ft()});Qe.type&&Qe.type==="ir.actions.act_window_close"?$t==null||$t(Ft(),Gt(),Wt()):await pn()}async function Pn({action:gt,context:Qe}){const Mt=(await ConnectionProvider.getHandler().readObjects({model:"ir.actions.actions",ids:[parseInt(gt)],context:y}))[0];await On({actionData:Mt,context:Qe})}async function On({actionData:gt,context:Qe}){const{closeParent:Mt}=await(Tt==null?void 0:Tt({actionData:gt,fields:te,values:Gt(),context:{...y,...J==null?void 0:J.context,...Qe},onRefreshParentValues:()=>{pn()}}))||{};!w&&Mt&&($t==null||$t(Ft(),Gt(),Wt()))}function kn(){yn({elementHasLostFocus:!0})}async function jn({type:gt,action:Qe,context:Mt}){if(gt==="cancel"){Vt==null||Vt();return}if(await nn()){showDialog$5(L);return}try{await vn({callOnSubmitSucceed:!1}),gt==="object"?await Fn({action:Qe,context:Mt}):gt==="workflow"?await An({action:Qe}):gt==="action"&&await Pn({action:Qe,context:Mt})}catch(Lt){showDialog$8(Lt)}}const Mn=()=>!J&&!A?jsxRuntime.jsx(antd.Spin,{}):!r&&!v||!O?null:jsxRuntime.jsx(jsxRuntime.Fragment,{children:jsxRuntime.jsx(FormProvider$1,{getValues:Gt,getPlainValues:Qt,getFields:Ut,domain:g,activeId:a,activeModel:r,setFieldValue:Yt,getFieldValue:en,executeButtonAction:jn,getContext:fn,setOriginalValue:tn,submitForm:vn,fetchValues:pn,formHasChanges:Dt,elementHasLostFocus:kn,children:jsxRuntime.jsx(antd.Form,{form:z,onFieldsChange:()=>{_n({elementHasLostFocus:!1})},component:!1,children:J&&jsxRuntime.jsx(Container,{container:J.container,responsiveBehaviour:Te})})})}),Dn=()=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(antd.Divider,{}),jsxRuntime.jsx(antd.Row,{justify:"end",children:jsxRuntime.jsxs(antd.Space,{children:[jsxRuntime.jsx(antd.Button,{icon:jsxRuntime.jsx(Icon.CloseOutlined,{}),disabled:E,onClick:async()=>{await rn()},children:"Cancel"}),jsxRuntime.jsx(antd.Button,{disabled:E||p,loading:E,icon:jsxRuntime.jsx(Icon.CheckOutlined,{}),onClick:async()=>{await vn()},type:"primary",children:"OK"})]})})]});return O?jsxRuntime.jsx(Measure__default.default,{bounds:!0,onResize:gt=>{var Qe;xe((Qe=gt.bounds)==null?void 0:Qe.width)},children:({measureRef:gt})=>jsxRuntime.jsxs("div",{className:"pb-2",ref:gt,children:[A&&jsxRuntime.jsx(antd.Alert,{className:"mt-10 mb-20",message:JSON.stringify(A),type:"error",banner:!0}),Mn(),l&&Dn()]})}):null}const Form$1=React.forwardRef(Form),FormModal=e=>{const{visible:o,id:r,title:a,buttonModal:s=!1,onCancel:c,isMenuAction:l=!1,actionData:d,...u}=e,{modalWidth:f}=useWindowDimensions(),[p,m]=React.useState(a),[I,h]=React.useState(!1),[v,C]=React.useState();React.useEffect(()=>{l&&b()},[d,l]);async function b(){const{action_id:O,res_id:w,action_type:_,view_id:F}=d,L=await ConnectionProvider.getHandler().isShortcutFavorite({action_id:O,action_type:_,view_id:F,res_id:w||!1});h(L!==!1),L!==!1&&C(L)}async function y(){if(I&&v)await ConnectionProvider.getHandler().removeFavourite({shortcut_id:v});else{const{action_id:O,res_id:w,action_type:_,view_id:F}=d;await ConnectionProvider.getHandler().addFavourite({action_id:O,action_type:_,view_id:F,res_id:w||!1})}h(!I)}function g(){return jsxRuntime.jsxs(antd.Row,{align:"middle",children:[jsxRuntime.jsx(antd.Col,{children:jsxRuntime.jsx(antd.Button,{type:I?"primary":"default",icon:I?jsxRuntime.jsx(Icon.StarFilled,{style:{color:"white"}}):jsxRuntime.jsx(Icon.StarOutlined,{}),style:{width:30},onClick:y})}),jsxRuntime.jsx(antd.Col,{style:{paddingLeft:10},children:p})]})}return jsxRuntime.jsx(FormModalProvider,{setTitle:m,children:jsxRuntime.jsx(antd.Modal,{title:l?g():p,centered:!0,width:f,visible:o,footer:null,destroyOnClose:!0,onCancel:c,maskClosable:!1,children:jsxRuntime.jsx(Form$1,{id:r,showFooter:!0,insideButtonModal:s,onCancel:c,...u})})})},DateRangePicker=e=>jsxRuntime.jsx(Field$1,{...e,layout:"vertical",children:jsxRuntime.jsx(antd.DatePicker.RangePicker,{allowEmpty:[!0,!0],format:"DD/MM/YYYY"})}),DateTimeRangePicker=e=>{const{ooui:o,showLabel:r=!1}=e,{label:a,id:s}=o,c=[new ooui.Field({name:s+"#date",label:""}),new ooui.Field({name:s+"#time",label:""})];return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[r&&jsxRuntime.jsx(Label,{ooui:new ooui.Label({name:s+"_label",string:a,help:o.tooltip,fieldForLabel:s}),align:"left"}),jsxRuntime.jsxs(antd.Row,{align:"bottom",className:"p-0",children:[jsxRuntime.jsx(antd.Col,{className:"mr-2",children:jsxRuntime.jsx(Field$1,{...e,ooui:c[0],showLabel:!1,children:jsxRuntime.jsx(antd.DatePicker.RangePicker,{className:"w-60",allowEmpty:[!0,!0],format:"DD/MM/YYYY"})})}),jsxRuntime.jsx(antd.Col,{children:jsxRuntime.jsx(Field$1,{...e,ooui:c[1],showLabel:!1,children:jsxRuntime.jsx(antd.TimePicker.RangePicker,{className:"w-60",allowEmpty:[!0,!0],format:"HH:mm"})})})]})]})},Float=e=>{const{ooui:o}=e,{id:r,decimalDigits:a,readOnly:s,required:c}=o,l=c&&!s?Config.requiredClass:void 0,d=React.useContext(FormContext$1),{elementHasLostFocus:u}=d||{};return jsxRuntime.jsx(Field$1,{required:c,type:"number",...e,children:jsxRuntime.jsx(antd.InputNumber,{disabled:s,className:"w-full "+l,id:r,precision:a,formatter:f=>`${f}`.replace(/[^0-9\.\-]+/g,""),defaultValue:0,decimalSeparator:".",onBlur:u})})},Integer=e=>{const{ooui:o,onChange:r}=e,{id:a,readOnly:s,required:c}=o,l=c&&!s?Config.requiredClass:void 0,d=React.useContext(FormContext$1),{elementHasLostFocus:u}=d||{};return jsxRuntime.jsx(Field$1,{required:c,type:"number",...e,children:jsxRuntime.jsx(antd.InputNumber,{id:a,className:"w-full "+l,disabled:s,formatter:f=>`${f}`.replace(/[^0-9\-]+/g,""),onChange:f=>{const p=f;r==null||r(p)},defaultValue:0,onBlur:u})})};function PairFields(e){const{ooui:o,showLabel:r}=e,{id:a,label:s,tooltip:c}=o,l=o instanceof ooui.Integer?Integer:Float,d=u=>jsxRuntime.jsx(l,{ooui:{...o,id:a+u,label:"",tooltip:void 0},layout:"vertical"});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[r&&jsxRuntime.jsx(Label,{ooui:new ooui.Label({name:a+"_label",string:s,help:c,fieldForLabel:a}),align:"left"}),jsxRuntime.jsxs(antd.Row,{align:"bottom",className:"mt-0",wrap:!1,children:[jsxRuntime.jsx(antd.Col,{children:d("#from")}),jsxRuntime.jsx(antd.Col,{className:"pb-1",children:jsxRuntime.jsx("span",{className:"pl-2 pr-2 h-full",children:" - "})}),jsxRuntime.jsx(antd.Col,{children:d("#to")})]})]})}const{Option}=antd.Select,MultiSelection=e=>{const{ooui:o}=e,{required:r}=o;return jsxRuntime.jsx(Field$1,{required:r,type:"any",...e,children:jsxRuntime.jsx(MultiSelectionInput,{...e})})},MultiSelectionInput=e=>{const{ooui:o,onChange:r,value:a}=e,{selectionValues:s,readOnly:c,required:l}=o,d=Array.from(s.entries()),u=d&&d.length&&d.filter(m=>{const[I]=m;return a?!a.includes(I):!0}).map(m=>{const[I,h]=m;return jsxRuntime.jsx(Option,{value:h,children:h},I)}),f=l&&!c?RequiredSelect:antd.Select;function p(m){const I=m.map(h=>{const v=d.find(([C,b])=>h===b);return v&&v[0]});if(I.length===0){r==null||r(void 0);return}r==null||r(I)}return jsxRuntime.jsx(f,{disabled:c,onChange:p,value:a==null?void 0:a.map(m=>s.get(m)),mode:"multiple",showArrow:!0,children:u})},RequiredSelect=k__default.default(antd.Select)`
|
|
103
|
+
`;function isObject$3(e){var o=typeof e;return e!=null&&(o=="object"||o=="function")}var isObject_1=isObject$3,freeGlobal$1=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,_freeGlobal=freeGlobal$1,freeGlobal=_freeGlobal,freeSelf=typeof self=="object"&&self&&self.Object===Object&&self,root$2=freeGlobal||freeSelf||Function("return this")(),_root=root$2,root$1=_root,now$2=function(){return root$1.Date.now()},now_1=now$2,reWhitespace=/\s/;function trimmedEndIndex$1(e){for(var o=e.length;o--&&reWhitespace.test(e.charAt(o)););return o}var _trimmedEndIndex=trimmedEndIndex$1,trimmedEndIndex=_trimmedEndIndex,reTrimStart=/^\s+/;function baseTrim$1(e){return e&&e.slice(0,trimmedEndIndex(e)+1).replace(reTrimStart,"")}var _baseTrim=baseTrim$1,root=_root,Symbol$3=root.Symbol,_Symbol=Symbol$3,Symbol$2=_Symbol,objectProto$1=Object.prototype,hasOwnProperty=objectProto$1.hasOwnProperty,nativeObjectToString$1=objectProto$1.toString,symToStringTag$1=Symbol$2?Symbol$2.toStringTag:void 0;function getRawTag$1(e){var o=hasOwnProperty.call(e,symToStringTag$1),r=e[symToStringTag$1];try{e[symToStringTag$1]=void 0;var a=!0}catch{}var s=nativeObjectToString$1.call(e);return a&&(o?e[symToStringTag$1]=r:delete e[symToStringTag$1]),s}var _getRawTag=getRawTag$1,objectProto=Object.prototype,nativeObjectToString=objectProto.toString;function objectToString$1(e){return nativeObjectToString.call(e)}var _objectToString=objectToString$1,Symbol$1=_Symbol,getRawTag=_getRawTag,objectToString=_objectToString,nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=Symbol$1?Symbol$1.toStringTag:void 0;function baseGetTag$1(e){return e==null?e===void 0?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(e)?getRawTag(e):objectToString(e)}var _baseGetTag=baseGetTag$1;function isObjectLike$1(e){return e!=null&&typeof e=="object"}var isObjectLike_1=isObjectLike$1,baseGetTag=_baseGetTag,isObjectLike=isObjectLike_1,symbolTag="[object Symbol]";function isSymbol$1(e){return typeof e=="symbol"||isObjectLike(e)&&baseGetTag(e)==symbolTag}var isSymbol_1=isSymbol$1,baseTrim=_baseTrim,isObject$2=isObject_1,isSymbol=isSymbol_1,NAN=0/0,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=parseInt;function toNumber$1(e){if(typeof e=="number")return e;if(isSymbol(e))return NAN;if(isObject$2(e)){var o=typeof e.valueOf=="function"?e.valueOf():e;e=isObject$2(o)?o+"":o}if(typeof e!="string")return e===0?e:+e;e=baseTrim(e);var r=reIsBinary.test(e);return r||reIsOctal.test(e)?freeParseInt(e.slice(2),r?2:8):reIsBadHex.test(e)?NAN:+e}var toNumber_1=toNumber$1,isObject$1=isObject_1,now$1=now_1,toNumber=toNumber_1,FUNC_ERROR_TEXT="Expected a function",nativeMax=Math.max,nativeMin=Math.min;function debounce(e,o,r){var a,s,c,l,d,u,f=0,p=!1,m=!1,I=!0;if(typeof e!="function")throw new TypeError(FUNC_ERROR_TEXT);o=toNumber(o)||0,isObject$1(r)&&(p=!!r.leading,m="maxWait"in r,c=m?nativeMax(toNumber(r.maxWait)||0,o):c,I="trailing"in r?!!r.trailing:I);function h(F){var L=a,E=s;return a=s=void 0,f=F,l=e.apply(E,L),l}function g(F){return f=F,d=setTimeout(y,o),p?h(F):l}function C(F){var L=F-u,E=F-f,P=o-L;return m?nativeMin(P,c-E):P}function b(F){var L=F-u,E=F-f;return u===void 0||L>=o||L<0||m&&E>=c}function y(){var F=now$1();if(b(F))return v(F);d=setTimeout(y,C(F))}function v(F){return d=void 0,I&&a?h(F):(a=s=void 0,l)}function O(){d!==void 0&&clearTimeout(d),f=0,a=u=s=d=void 0}function w(){return d===void 0?l:v(now$1())}function _(){var F=now$1(),L=b(F);if(a=arguments,s=this,u=F,L){if(d===void 0)return g(u);if(m)return clearTimeout(d),d=setTimeout(y,o),h(u)}return d===void 0&&(d=setTimeout(y,o)),l}return _.cancel=O,_.flush=w,_}var debounce_1=debounce,browser$1={exports:{}},lib$2={},readableBrowser={exports:{}},events={exports:{}},R=typeof Reflect=="object"?Reflect:null,ReflectApply=R&&typeof R.apply=="function"?R.apply:function(o,r,a){return Function.prototype.apply.call(o,r,a)},ReflectOwnKeys;R&&typeof R.ownKeys=="function"?ReflectOwnKeys=R.ownKeys:Object.getOwnPropertySymbols?ReflectOwnKeys=function(o){return Object.getOwnPropertyNames(o).concat(Object.getOwnPropertySymbols(o))}:ReflectOwnKeys=function(o){return Object.getOwnPropertyNames(o)};function ProcessEmitWarning(e){console&&console.warn&&console.warn(e)}var NumberIsNaN=Number.isNaN||function(o){return o!==o};function EventEmitter(){EventEmitter.init.call(this)}events.exports=EventEmitter,events.exports.once=once$2,EventEmitter.EventEmitter=EventEmitter,EventEmitter.prototype._events=void 0,EventEmitter.prototype._eventsCount=0,EventEmitter.prototype._maxListeners=void 0;var defaultMaxListeners=10;function checkListener(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(EventEmitter,"defaultMaxListeners",{enumerable:!0,get:function(){return defaultMaxListeners},set:function(e){if(typeof e!="number"||e<0||NumberIsNaN(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");defaultMaxListeners=e}}),EventEmitter.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},EventEmitter.prototype.setMaxListeners=function(o){if(typeof o!="number"||o<0||NumberIsNaN(o))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+o+".");return this._maxListeners=o,this};function _getMaxListeners(e){return e._maxListeners===void 0?EventEmitter.defaultMaxListeners:e._maxListeners}EventEmitter.prototype.getMaxListeners=function(){return _getMaxListeners(this)},EventEmitter.prototype.emit=function(o){for(var r=[],a=1;a<arguments.length;a++)r.push(arguments[a]);var s=o==="error",c=this._events;if(c!==void 0)s=s&&c.error===void 0;else if(!s)return!1;if(s){var l;if(r.length>0&&(l=r[0]),l instanceof Error)throw l;var d=new Error("Unhandled error."+(l?" ("+l.message+")":""));throw d.context=l,d}var u=c[o];if(u===void 0)return!1;if(typeof u=="function")ReflectApply(u,this,r);else for(var f=u.length,p=arrayClone(u,f),a=0;a<f;++a)ReflectApply(p[a],this,r);return!0};function _addListener(e,o,r,a){var s,c,l;if(checkListener(r),c=e._events,c===void 0?(c=e._events=Object.create(null),e._eventsCount=0):(c.newListener!==void 0&&(e.emit("newListener",o,r.listener?r.listener:r),c=e._events),l=c[o]),l===void 0)l=c[o]=r,++e._eventsCount;else if(typeof l=="function"?l=c[o]=a?[r,l]:[l,r]:a?l.unshift(r):l.push(r),s=_getMaxListeners(e),s>0&&l.length>s&&!l.warned){l.warned=!0;var d=new Error("Possible EventEmitter memory leak detected. "+l.length+" "+String(o)+" listeners added. Use emitter.setMaxListeners() to increase limit");d.name="MaxListenersExceededWarning",d.emitter=e,d.type=o,d.count=l.length,ProcessEmitWarning(d)}return e}EventEmitter.prototype.addListener=function(o,r){return _addListener(this,o,r,!1)},EventEmitter.prototype.on=EventEmitter.prototype.addListener,EventEmitter.prototype.prependListener=function(o,r){return _addListener(this,o,r,!0)};function onceWrapper(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function _onceWrap(e,o,r){var a={fired:!1,wrapFn:void 0,target:e,type:o,listener:r},s=onceWrapper.bind(a);return s.listener=r,a.wrapFn=s,s}EventEmitter.prototype.once=function(o,r){return checkListener(r),this.on(o,_onceWrap(this,o,r)),this},EventEmitter.prototype.prependOnceListener=function(o,r){return checkListener(r),this.prependListener(o,_onceWrap(this,o,r)),this},EventEmitter.prototype.removeListener=function(o,r){var a,s,c,l,d;if(checkListener(r),s=this._events,s===void 0)return this;if(a=s[o],a===void 0)return this;if(a===r||a.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete s[o],s.removeListener&&this.emit("removeListener",o,a.listener||r));else if(typeof a!="function"){for(c=-1,l=a.length-1;l>=0;l--)if(a[l]===r||a[l].listener===r){d=a[l].listener,c=l;break}if(c<0)return this;c===0?a.shift():spliceOne(a,c),a.length===1&&(s[o]=a[0]),s.removeListener!==void 0&&this.emit("removeListener",o,d||r)}return this},EventEmitter.prototype.off=EventEmitter.prototype.removeListener,EventEmitter.prototype.removeAllListeners=function(o){var r,a,s;if(a=this._events,a===void 0)return this;if(a.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):a[o]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete a[o]),this;if(arguments.length===0){var c=Object.keys(a),l;for(s=0;s<c.length;++s)l=c[s],l!=="removeListener"&&this.removeAllListeners(l);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(r=a[o],typeof r=="function")this.removeListener(o,r);else if(r!==void 0)for(s=r.length-1;s>=0;s--)this.removeListener(o,r[s]);return this};function _listeners(e,o,r){var a=e._events;if(a===void 0)return[];var s=a[o];return s===void 0?[]:typeof s=="function"?r?[s.listener||s]:[s]:r?unwrapListeners(s):arrayClone(s,s.length)}EventEmitter.prototype.listeners=function(o){return _listeners(this,o,!0)},EventEmitter.prototype.rawListeners=function(o){return _listeners(this,o,!1)},EventEmitter.listenerCount=function(e,o){return typeof e.listenerCount=="function"?e.listenerCount(o):listenerCount.call(e,o)},EventEmitter.prototype.listenerCount=listenerCount;function listenerCount(e){var o=this._events;if(o!==void 0){var r=o[e];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}EventEmitter.prototype.eventNames=function(){return this._eventsCount>0?ReflectOwnKeys(this._events):[]};function arrayClone(e,o){for(var r=new Array(o),a=0;a<o;++a)r[a]=e[a];return r}function spliceOne(e,o){for(;o+1<e.length;o++)e[o]=e[o+1];e.pop()}function unwrapListeners(e){for(var o=new Array(e.length),r=0;r<o.length;++r)o[r]=e[r].listener||e[r];return o}function once$2(e,o){return new Promise(function(r,a){function s(l){e.removeListener(o,c),a(l)}function c(){typeof e.removeListener=="function"&&e.removeListener("error",s),r([].slice.call(arguments))}eventTargetAgnosticAddListener(e,o,c,{once:!0}),o!=="error"&&addErrorHandlerIfEventEmitter(e,s,{once:!0})})}function addErrorHandlerIfEventEmitter(e,o,r){typeof e.on=="function"&&eventTargetAgnosticAddListener(e,"error",o,r)}function eventTargetAgnosticAddListener(e,o,r,a){if(typeof e.on=="function")a.once?e.once(o,r):e.on(o,r);else if(typeof e.addEventListener=="function")e.addEventListener(o,function s(c){a.once&&e.removeEventListener(o,s),r(c)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}var streamBrowser=events.exports.EventEmitter;const __viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$3=getAugmentedNamespace(__viteBrowserExternal$1);var buffer_list,hasRequiredBuffer_list;function requireBuffer_list(){if(hasRequiredBuffer_list)return buffer_list;hasRequiredBuffer_list=1;function e(I,h){var g=Object.keys(I);if(Object.getOwnPropertySymbols){var C=Object.getOwnPropertySymbols(I);h&&(C=C.filter(function(b){return Object.getOwnPropertyDescriptor(I,b).enumerable})),g.push.apply(g,C)}return g}function o(I){for(var h=1;h<arguments.length;h++){var g=arguments[h]!=null?arguments[h]:{};h%2?e(Object(g),!0).forEach(function(C){r(I,C,g[C])}):Object.getOwnPropertyDescriptors?Object.defineProperties(I,Object.getOwnPropertyDescriptors(g)):e(Object(g)).forEach(function(C){Object.defineProperty(I,C,Object.getOwnPropertyDescriptor(g,C))})}return I}function r(I,h,g){return h in I?Object.defineProperty(I,h,{value:g,enumerable:!0,configurable:!0,writable:!0}):I[h]=g,I}function a(I,h){if(!(I instanceof h))throw new TypeError("Cannot call a class as a function")}function s(I,h){for(var g=0;g<h.length;g++){var C=h[g];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(I,C.key,C)}}function c(I,h,g){return h&&s(I.prototype,h),g&&s(I,g),I}var l=require$$0__default.default,d=l.Buffer,u=require$$3,f=u.inspect,p=f&&f.custom||"inspect";function m(I,h,g){d.prototype.copy.call(I,h,g)}return buffer_list=function(){function I(){a(this,I),this.head=null,this.tail=null,this.length=0}return c(I,[{key:"push",value:function(g){var C={data:g,next:null};this.length>0?this.tail.next=C:this.head=C,this.tail=C,++this.length}},{key:"unshift",value:function(g){var C={data:g,next:this.head};this.length===0&&(this.tail=C),this.head=C,++this.length}},{key:"shift",value:function(){if(this.length!==0){var g=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,g}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(g){if(this.length===0)return"";for(var C=this.head,b=""+C.data;C=C.next;)b+=g+C.data;return b}},{key:"concat",value:function(g){if(this.length===0)return d.alloc(0);for(var C=d.allocUnsafe(g>>>0),b=this.head,y=0;b;)m(b.data,C,y),y+=b.data.length,b=b.next;return C}},{key:"consume",value:function(g,C){var b;return g<this.head.data.length?(b=this.head.data.slice(0,g),this.head.data=this.head.data.slice(g)):g===this.head.data.length?b=this.shift():b=C?this._getString(g):this._getBuffer(g),b}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(g){var C=this.head,b=1,y=C.data;for(g-=y.length;C=C.next;){var v=C.data,O=g>v.length?v.length:g;if(O===v.length?y+=v:y+=v.slice(0,g),g-=O,g===0){O===v.length?(++b,C.next?this.head=C.next:this.head=this.tail=null):(this.head=C,C.data=v.slice(O));break}++b}return this.length-=b,y}},{key:"_getBuffer",value:function(g){var C=d.allocUnsafe(g),b=this.head,y=1;for(b.data.copy(C),g-=b.data.length;b=b.next;){var v=b.data,O=g>v.length?v.length:g;if(v.copy(C,C.length-g,0,O),g-=O,g===0){O===v.length?(++y,b.next?this.head=b.next:this.head=this.tail=null):(this.head=b,b.data=v.slice(O));break}++y}return this.length-=y,C}},{key:p,value:function(g,C){return f(this,o({},C,{depth:0,customInspect:!1}))}}]),I}(),buffer_list}function destroy(e,o){var r=this,a=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return a||s?(o?o(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(emitErrorNT,this,e)):process.nextTick(emitErrorNT,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(c){!o&&c?r._writableState?r._writableState.errorEmitted?process.nextTick(emitCloseNT,r):(r._writableState.errorEmitted=!0,process.nextTick(emitErrorAndCloseNT,r,c)):process.nextTick(emitErrorAndCloseNT,r,c):o?(process.nextTick(emitCloseNT,r),o(c)):process.nextTick(emitCloseNT,r)}),this)}function emitErrorAndCloseNT(e,o){emitErrorNT(e,o),emitCloseNT(e)}function emitCloseNT(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function undestroy(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function emitErrorNT(e,o){e.emit("error",o)}function errorOrDestroy(e,o){var r=e._readableState,a=e._writableState;r&&r.autoDestroy||a&&a.autoDestroy?e.destroy(o):e.emit("error",o)}var destroy_1={destroy,undestroy,errorOrDestroy},errorsBrowser={};function _inheritsLoose(e,o){e.prototype=Object.create(o.prototype),e.prototype.constructor=e,e.__proto__=o}var codes={};function createErrorType(e,o,r){r||(r=Error);function a(c,l,d){return typeof o=="string"?o:o(c,l,d)}var s=function(c){_inheritsLoose(l,c);function l(d,u,f){return c.call(this,a(d,u,f))||this}return l}(r);s.prototype.name=r.name,s.prototype.code=e,codes[e]=s}function oneOf(e,o){if(Array.isArray(e)){var r=e.length;return e=e.map(function(a){return String(a)}),r>2?"one of ".concat(o," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:r===2?"one of ".concat(o," ").concat(e[0]," or ").concat(e[1]):"of ".concat(o," ").concat(e[0])}else return"of ".concat(o," ").concat(String(e))}function startsWith(e,o,r){return e.substr(!r||r<0?0:+r,o.length)===o}function endsWith(e,o,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-o.length,r)===o}function includes(e,o,r){return typeof r!="number"&&(r=0),r+o.length>e.length?!1:e.indexOf(o,r)!==-1}createErrorType("ERR_INVALID_OPT_VALUE",function(e,o){return'The value "'+o+'" is invalid for option "'+e+'"'},TypeError),createErrorType("ERR_INVALID_ARG_TYPE",function(e,o,r){var a;typeof o=="string"&&startsWith(o,"not ")?(a="must not be",o=o.replace(/^not /,"")):a="must be";var s;if(endsWith(e," argument"))s="The ".concat(e," ").concat(a," ").concat(oneOf(o,"type"));else{var c=includes(e,".")?"property":"argument";s='The "'.concat(e,'" ').concat(c," ").concat(a," ").concat(oneOf(o,"type"))}return s+=". Received type ".concat(typeof r),s},TypeError),createErrorType("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),createErrorType("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),createErrorType("ERR_STREAM_PREMATURE_CLOSE","Premature close"),createErrorType("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),createErrorType("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),createErrorType("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),createErrorType("ERR_STREAM_WRITE_AFTER_END","write after end"),createErrorType("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),createErrorType("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),createErrorType("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),errorsBrowser.codes=codes;var ERR_INVALID_OPT_VALUE=errorsBrowser.codes.ERR_INVALID_OPT_VALUE;function highWaterMarkFrom(e,o,r){return e.highWaterMark!=null?e.highWaterMark:o?e[r]:null}function getHighWaterMark(e,o,r,a){var s=highWaterMarkFrom(o,a,r);if(s!=null){if(!(isFinite(s)&&Math.floor(s)===s)||s<0){var c=a?r:"highWaterMark";throw new ERR_INVALID_OPT_VALUE(c,s)}return Math.floor(s)}return e.objectMode?16:16*1024}var state={getHighWaterMark},inherits_browser={exports:{}};typeof Object.create=="function"?inherits_browser.exports=function(o,r){r&&(o.super_=r,o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}))}:inherits_browser.exports=function(o,r){if(r){o.super_=r;var a=function(){};a.prototype=r.prototype,o.prototype=new a,o.prototype.constructor=o}};var browser=deprecate$1;function deprecate$1(e,o){if(config("noDeprecation"))return e;var r=!1;function a(){if(!r){if(config("throwDeprecation"))throw new Error(o);config("traceDeprecation")?console.trace(o):console.warn(o),r=!0}return e.apply(this,arguments)}return a}function config(e){try{if(!commonjsGlobal.localStorage)return!1}catch{return!1}var o=commonjsGlobal.localStorage[e];return o==null?!1:String(o).toLowerCase()==="true"}var _stream_writable,hasRequired_stream_writable;function require_stream_writable(){if(hasRequired_stream_writable)return _stream_writable;hasRequired_stream_writable=1,_stream_writable=E;function e(N){var U=this;this.next=null,this.entry=null,this.finish=function(){de(U,N)}}var o;E.WritableState=F;var r={deprecate:browser},a=streamBrowser,s=require$$0__default.default.Buffer,c=commonjsGlobal.Uint8Array||function(){};function l(N){return s.from(N)}function d(N){return s.isBuffer(N)||N instanceof c}var u=destroy_1,f=state,p=f.getHighWaterMark,m=errorsBrowser.codes,I=m.ERR_INVALID_ARG_TYPE,h=m.ERR_METHOD_NOT_IMPLEMENTED,g=m.ERR_MULTIPLE_CALLBACK,C=m.ERR_STREAM_CANNOT_PIPE,b=m.ERR_STREAM_DESTROYED,y=m.ERR_STREAM_NULL_VALUES,v=m.ERR_STREAM_WRITE_AFTER_END,O=m.ERR_UNKNOWN_ENCODING,w=u.errorOrDestroy;inherits_browser.exports(E,a);function _(){}function F(N,U,re){o=o||require_stream_duplex(),N=N||{},typeof re!="boolean"&&(re=U instanceof o),this.objectMode=!!N.objectMode,re&&(this.objectMode=this.objectMode||!!N.writableObjectMode),this.highWaterMark=p(this,N,"writableHighWaterMark",re),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var Te=N.decodeStrings===!1;this.decodeStrings=!Te,this.defaultEncoding=N.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Fe){oe(U,Fe)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=N.emitClose!==!1,this.autoDestroy=!!N.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}F.prototype.getBuffer=function(){for(var U=this.bufferedRequest,re=[];U;)re.push(U),U=U.next;return re},function(){try{Object.defineProperty(F.prototype,"buffer",{get:r.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var L;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(L=Function.prototype[Symbol.hasInstance],Object.defineProperty(E,Symbol.hasInstance,{value:function(U){return L.call(this,U)?!0:this!==E?!1:U&&U._writableState instanceof F}})):L=function(U){return U instanceof this};function E(N){o=o||require_stream_duplex();var U=this instanceof o;if(!U&&!L.call(E,this))return new E(N);this._writableState=new F(N,this,U),this.writable=!0,N&&(typeof N.write=="function"&&(this._write=N.write),typeof N.writev=="function"&&(this._writev=N.writev),typeof N.destroy=="function"&&(this._destroy=N.destroy),typeof N.final=="function"&&(this._final=N.final)),a.call(this)}E.prototype.pipe=function(){w(this,new C)};function P(N,U){var re=new v;w(N,re),process.nextTick(U,re)}function A(N,U,re,Te){var Fe;return re===null?Fe=new y:typeof re!="string"&&!U.objectMode&&(Fe=new I("chunk",["string","Buffer"],re)),Fe?(w(N,Fe),process.nextTick(Te,Fe),!1):!0}E.prototype.write=function(N,U,re){var Te=this._writableState,Fe=!1,M=!Te.objectMode&&d(N);return M&&!s.isBuffer(N)&&(N=l(N)),typeof U=="function"&&(re=U,U=null),M?U="buffer":U||(U=Te.defaultEncoding),typeof re!="function"&&(re=_),Te.ending?P(this,re):(M||A(this,Te,N,re))&&(Te.pendingcb++,Fe=J(this,Te,M,N,U,re)),Fe},E.prototype.cork=function(){this._writableState.corked++},E.prototype.uncork=function(){var N=this._writableState;N.corked&&(N.corked--,!N.writing&&!N.corked&&!N.bufferProcessing&&N.bufferedRequest&&ue(this,N))},E.prototype.setDefaultEncoding=function(U){if(typeof U=="string"&&(U=U.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((U+"").toLowerCase())>-1))throw new O(U);return this._writableState.defaultEncoding=U,this},Object.defineProperty(E.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function W(N,U,re){return!N.objectMode&&N.decodeStrings!==!1&&typeof U=="string"&&(U=s.from(U,re)),U}Object.defineProperty(E.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function J(N,U,re,Te,Fe,M){if(!re){var j=W(U,Te,Fe);Te!==j&&(re=!0,Fe="buffer",Te=j)}var we=U.objectMode?1:Te.length;U.length+=we;var je=U.length<U.highWaterMark;if(je||(U.needDrain=!0),U.writing||U.corked){var tt=U.lastBufferedRequest;U.lastBufferedRequest={chunk:Te,encoding:Fe,isBuf:re,callback:M,next:null},tt?tt.next=U.lastBufferedRequest:U.bufferedRequest=U.lastBufferedRequest,U.bufferedRequestCount+=1}else z(N,U,!1,we,Te,Fe,M);return je}function z(N,U,re,Te,Fe,M,j){U.writelen=Te,U.writecb=j,U.writing=!0,U.sync=!0,U.destroyed?U.onwrite(new b("write")):re?N._writev(Fe,U.onwrite):N._write(Fe,M,U.onwrite),U.sync=!1}function Y(N,U,re,Te,Fe){--U.pendingcb,re?(process.nextTick(Fe,Te),process.nextTick(Ce,N,U),N._writableState.errorEmitted=!0,w(N,Te)):(Fe(Te),N._writableState.errorEmitted=!0,w(N,Te),Ce(N,U))}function Q(N){N.writing=!1,N.writecb=null,N.length-=N.writelen,N.writelen=0}function oe(N,U){var re=N._writableState,Te=re.sync,Fe=re.writecb;if(typeof Fe!="function")throw new g;if(Q(re),U)Y(N,re,Te,U,Fe);else{var M=Re(re)||N.destroyed;!M&&!re.corked&&!re.bufferProcessing&&re.bufferedRequest&&ue(N,re),Te?process.nextTick(ee,N,re,M,Fe):ee(N,re,M,Fe)}}function ee(N,U,re,Te){re||X(N,U),U.pendingcb--,Te(),Ce(N,U)}function X(N,U){U.length===0&&U.needDrain&&(U.needDrain=!1,N.emit("drain"))}function ue(N,U){U.bufferProcessing=!0;var re=U.bufferedRequest;if(N._writev&&re&&re.next){var Te=U.bufferedRequestCount,Fe=new Array(Te),M=U.corkedRequestsFree;M.entry=re;for(var j=0,we=!0;re;)Fe[j]=re,re.isBuf||(we=!1),re=re.next,j+=1;Fe.allBuffers=we,z(N,U,!0,U.length,Fe,"",M.finish),U.pendingcb++,U.lastBufferedRequest=null,M.next?(U.corkedRequestsFree=M.next,M.next=null):U.corkedRequestsFree=new e(U),U.bufferedRequestCount=0}else{for(;re;){var je=re.chunk,tt=re.encoding,Ne=re.callback,Ge=U.objectMode?1:je.length;if(z(N,U,!1,Ge,je,tt,Ne),re=re.next,U.bufferedRequestCount--,U.writing)break}re===null&&(U.lastBufferedRequest=null)}U.bufferedRequest=re,U.bufferProcessing=!1}E.prototype._write=function(N,U,re){re(new h("_write()"))},E.prototype._writev=null,E.prototype.end=function(N,U,re){var Te=this._writableState;return typeof N=="function"?(re=N,N=null,U=null):typeof U=="function"&&(re=U,U=null),N!=null&&this.write(N,U),Te.corked&&(Te.corked=1,this.uncork()),Te.ending||te(this,Te,re),this},Object.defineProperty(E.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Re(N){return N.ending&&N.length===0&&N.bufferedRequest===null&&!N.finished&&!N.writing}function xe(N,U){N._final(function(re){U.pendingcb--,re&&w(N,re),U.prefinished=!0,N.emit("prefinish"),Ce(N,U)})}function ce(N,U){!U.prefinished&&!U.finalCalled&&(typeof N._final=="function"&&!U.destroyed?(U.pendingcb++,U.finalCalled=!0,process.nextTick(xe,N,U)):(U.prefinished=!0,N.emit("prefinish")))}function Ce(N,U){var re=Re(U);if(re&&(ce(N,U),U.pendingcb===0&&(U.finished=!0,N.emit("finish"),U.autoDestroy))){var Te=N._readableState;(!Te||Te.autoDestroy&&Te.endEmitted)&&N.destroy()}return re}function te(N,U,re){U.ending=!0,Ce(N,U),re&&(U.finished?process.nextTick(re):N.once("finish",re)),U.ended=!0,N.writable=!1}function de(N,U,re){var Te=N.entry;for(N.entry=null;Te;){var Fe=Te.callback;U.pendingcb--,Fe(re),Te=Te.next}U.corkedRequestsFree.next=N}return Object.defineProperty(E.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(U){!this._writableState||(this._writableState.destroyed=U)}}),E.prototype.destroy=u.destroy,E.prototype._undestroy=u.undestroy,E.prototype._destroy=function(N,U){U(N)},_stream_writable}var _stream_duplex,hasRequired_stream_duplex;function require_stream_duplex(){if(hasRequired_stream_duplex)return _stream_duplex;hasRequired_stream_duplex=1;var e=Object.keys||function(f){var p=[];for(var m in f)p.push(m);return p};_stream_duplex=l;var o=require_stream_readable(),r=require_stream_writable();inherits_browser.exports(l,o);for(var a=e(r.prototype),s=0;s<a.length;s++){var c=a[s];l.prototype[c]||(l.prototype[c]=r.prototype[c])}function l(f){if(!(this instanceof l))return new l(f);o.call(this,f),r.call(this,f),this.allowHalfOpen=!0,f&&(f.readable===!1&&(this.readable=!1),f.writable===!1&&(this.writable=!1),f.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",d)))}Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(l.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(l.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function d(){this._writableState.ended||process.nextTick(u,this)}function u(f){f.end()}return Object.defineProperty(l.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(p){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=p,this._writableState.destroyed=p)}}),_stream_duplex}var string_decoder={},safeBuffer={exports:{}},hasRequiredSafeBuffer;function requireSafeBuffer(){return hasRequiredSafeBuffer||(hasRequiredSafeBuffer=1,function(e,o){var r=require$$0__default.default,a=r.Buffer;function s(l,d){for(var u in l)d[u]=l[u]}a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?e.exports=r:(s(r,o),o.Buffer=c);function c(l,d,u){return a(l,d,u)}s(a,c),c.from=function(l,d,u){if(typeof l=="number")throw new TypeError("Argument must not be a number");return a(l,d,u)},c.alloc=function(l,d,u){if(typeof l!="number")throw new TypeError("Argument must be a number");var f=a(l);return d!==void 0?typeof u=="string"?f.fill(d,u):f.fill(d):f.fill(0),f},c.allocUnsafe=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return a(l)},c.allocUnsafeSlow=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(l)}}(safeBuffer,safeBuffer.exports)),safeBuffer.exports}var hasRequiredString_decoder;function requireString_decoder(){if(hasRequiredString_decoder)return string_decoder;hasRequiredString_decoder=1;var e=requireSafeBuffer().Buffer,o=e.isEncoding||function(y){switch(y=""+y,y&&y.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function r(y){if(!y)return"utf8";for(var v;;)switch(y){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return y;default:if(v)return;y=(""+y).toLowerCase(),v=!0}}function a(y){var v=r(y);if(typeof v!="string"&&(e.isEncoding===o||!o(y)))throw new Error("Unknown encoding: "+y);return v||y}string_decoder.StringDecoder=s;function s(y){this.encoding=a(y);var v;switch(this.encoding){case"utf16le":this.text=m,this.end=I,v=4;break;case"utf8":this.fillLast=u,v=4;break;case"base64":this.text=h,this.end=g,v=3;break;default:this.write=C,this.end=b;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(v)}s.prototype.write=function(y){if(y.length===0)return"";var v,O;if(this.lastNeed){if(v=this.fillLast(y),v===void 0)return"";O=this.lastNeed,this.lastNeed=0}else O=0;return O<y.length?v?v+this.text(y,O):this.text(y,O):v||""},s.prototype.end=p,s.prototype.text=f,s.prototype.fillLast=function(y){if(this.lastNeed<=y.length)return y.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);y.copy(this.lastChar,this.lastTotal-this.lastNeed,0,y.length),this.lastNeed-=y.length};function c(y){return y<=127?0:y>>5===6?2:y>>4===14?3:y>>3===30?4:y>>6===2?-1:-2}function l(y,v,O){var w=v.length-1;if(w<O)return 0;var _=c(v[w]);return _>=0?(_>0&&(y.lastNeed=_-1),_):--w<O||_===-2?0:(_=c(v[w]),_>=0?(_>0&&(y.lastNeed=_-2),_):--w<O||_===-2?0:(_=c(v[w]),_>=0?(_>0&&(_===2?_=0:y.lastNeed=_-3),_):0))}function d(y,v,O){if((v[0]&192)!==128)return y.lastNeed=0,"\uFFFD";if(y.lastNeed>1&&v.length>1){if((v[1]&192)!==128)return y.lastNeed=1,"\uFFFD";if(y.lastNeed>2&&v.length>2&&(v[2]&192)!==128)return y.lastNeed=2,"\uFFFD"}}function u(y){var v=this.lastTotal-this.lastNeed,O=d(this,y);if(O!==void 0)return O;if(this.lastNeed<=y.length)return y.copy(this.lastChar,v,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);y.copy(this.lastChar,v,0,y.length),this.lastNeed-=y.length}function f(y,v){var O=l(this,y,v);if(!this.lastNeed)return y.toString("utf8",v);this.lastTotal=O;var w=y.length-(O-this.lastNeed);return y.copy(this.lastChar,0,w),y.toString("utf8",v,w)}function p(y){var v=y&&y.length?this.write(y):"";return this.lastNeed?v+"\uFFFD":v}function m(y,v){if((y.length-v)%2===0){var O=y.toString("utf16le",v);if(O){var w=O.charCodeAt(O.length-1);if(w>=55296&&w<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=y[y.length-2],this.lastChar[1]=y[y.length-1],O.slice(0,-1)}return O}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=y[y.length-1],y.toString("utf16le",v,y.length-1)}function I(y){var v=y&&y.length?this.write(y):"";if(this.lastNeed){var O=this.lastTotal-this.lastNeed;return v+this.lastChar.toString("utf16le",0,O)}return v}function h(y,v){var O=(y.length-v)%3;return O===0?y.toString("base64",v):(this.lastNeed=3-O,this.lastTotal=3,O===1?this.lastChar[0]=y[y.length-1]:(this.lastChar[0]=y[y.length-2],this.lastChar[1]=y[y.length-1]),y.toString("base64",v,y.length-O))}function g(y){var v=y&&y.length?this.write(y):"";return this.lastNeed?v+this.lastChar.toString("base64",0,3-this.lastNeed):v}function C(y){return y.toString(this.encoding)}function b(y){return y&&y.length?this.write(y):""}return string_decoder}var ERR_STREAM_PREMATURE_CLOSE=errorsBrowser.codes.ERR_STREAM_PREMATURE_CLOSE;function once$1(e){var o=!1;return function(){if(!o){o=!0;for(var r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];e.apply(this,a)}}}function noop$2(){}function isRequest$1(e){return e.setHeader&&typeof e.abort=="function"}function eos$1(e,o,r){if(typeof o=="function")return eos$1(e,null,o);o||(o={}),r=once$1(r||noop$2);var a=o.readable||o.readable!==!1&&e.readable,s=o.writable||o.writable!==!1&&e.writable,c=function(){e.writable||d()},l=e._writableState&&e._writableState.finished,d=function(){s=!1,l=!0,a||r.call(e)},u=e._readableState&&e._readableState.endEmitted,f=function(){a=!1,u=!0,s||r.call(e)},p=function(g){r.call(e,g)},m=function(){var g;if(a&&!u)return(!e._readableState||!e._readableState.ended)&&(g=new ERR_STREAM_PREMATURE_CLOSE),r.call(e,g);if(s&&!l)return(!e._writableState||!e._writableState.ended)&&(g=new ERR_STREAM_PREMATURE_CLOSE),r.call(e,g)},I=function(){e.req.on("finish",d)};return isRequest$1(e)?(e.on("complete",d),e.on("abort",m),e.req?I():e.on("request",I)):s&&!e._writableState&&(e.on("end",c),e.on("close",c)),e.on("end",f),e.on("finish",d),o.error!==!1&&e.on("error",p),e.on("close",m),function(){e.removeListener("complete",d),e.removeListener("abort",m),e.removeListener("request",I),e.req&&e.req.removeListener("finish",d),e.removeListener("end",c),e.removeListener("close",c),e.removeListener("finish",d),e.removeListener("end",f),e.removeListener("error",p),e.removeListener("close",m)}}var endOfStream=eos$1,async_iterator,hasRequiredAsync_iterator;function requireAsync_iterator(){if(hasRequiredAsync_iterator)return async_iterator;hasRequiredAsync_iterator=1;var e;function o(y,v,O){return v in y?Object.defineProperty(y,v,{value:O,enumerable:!0,configurable:!0,writable:!0}):y[v]=O,y}var r=endOfStream,a=Symbol("lastResolve"),s=Symbol("lastReject"),c=Symbol("error"),l=Symbol("ended"),d=Symbol("lastPromise"),u=Symbol("handlePromise"),f=Symbol("stream");function p(y,v){return{value:y,done:v}}function m(y){var v=y[a];if(v!==null){var O=y[f].read();O!==null&&(y[d]=null,y[a]=null,y[s]=null,v(p(O,!1)))}}function I(y){process.nextTick(m,y)}function h(y,v){return function(O,w){y.then(function(){if(v[l]){O(p(void 0,!0));return}v[u](O,w)},w)}}var g=Object.getPrototypeOf(function(){}),C=Object.setPrototypeOf((e={get stream(){return this[f]},next:function(){var v=this,O=this[c];if(O!==null)return Promise.reject(O);if(this[l])return Promise.resolve(p(void 0,!0));if(this[f].destroyed)return new Promise(function(L,E){process.nextTick(function(){v[c]?E(v[c]):L(p(void 0,!0))})});var w=this[d],_;if(w)_=new Promise(h(w,this));else{var F=this[f].read();if(F!==null)return Promise.resolve(p(F,!1));_=new Promise(this[u])}return this[d]=_,_}},o(e,Symbol.asyncIterator,function(){return this}),o(e,"return",function(){var v=this;return new Promise(function(O,w){v[f].destroy(null,function(_){if(_){w(_);return}O(p(void 0,!0))})})}),e),g),b=function(v){var O,w=Object.create(C,(O={},o(O,f,{value:v,writable:!0}),o(O,a,{value:null,writable:!0}),o(O,s,{value:null,writable:!0}),o(O,c,{value:null,writable:!0}),o(O,l,{value:v._readableState.endEmitted,writable:!0}),o(O,u,{value:function(F,L){var E=w[f].read();E?(w[d]=null,w[a]=null,w[s]=null,F(p(E,!1))):(w[a]=F,w[s]=L)},writable:!0}),O));return w[d]=null,r(v,function(_){if(_&&_.code!=="ERR_STREAM_PREMATURE_CLOSE"){var F=w[s];F!==null&&(w[d]=null,w[a]=null,w[s]=null,F(_)),w[c]=_;return}var L=w[a];L!==null&&(w[d]=null,w[a]=null,w[s]=null,L(p(void 0,!0))),w[l]=!0}),v.on("readable",I.bind(null,w)),w};return async_iterator=b,async_iterator}var fromBrowser,hasRequiredFromBrowser;function requireFromBrowser(){return hasRequiredFromBrowser||(hasRequiredFromBrowser=1,fromBrowser=function(){throw new Error("Readable.from is not available in the browser")}),fromBrowser}var _stream_readable,hasRequired_stream_readable;function require_stream_readable(){if(hasRequired_stream_readable)return _stream_readable;hasRequired_stream_readable=1,_stream_readable=P;var e;P.ReadableState=E,events.exports.EventEmitter;var o=function(j,we){return j.listeners(we).length},r=streamBrowser,a=require$$0__default.default.Buffer,s=commonjsGlobal.Uint8Array||function(){};function c(M){return a.from(M)}function l(M){return a.isBuffer(M)||M instanceof s}var d=require$$3,u;d&&d.debuglog?u=d.debuglog("stream"):u=function(){};var f=requireBuffer_list(),p=destroy_1,m=state,I=m.getHighWaterMark,h=errorsBrowser.codes,g=h.ERR_INVALID_ARG_TYPE,C=h.ERR_STREAM_PUSH_AFTER_EOF,b=h.ERR_METHOD_NOT_IMPLEMENTED,y=h.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,v,O,w;inherits_browser.exports(P,r);var _=p.errorOrDestroy,F=["error","close","destroy","pause","resume"];function L(M,j,we){if(typeof M.prependListener=="function")return M.prependListener(j,we);!M._events||!M._events[j]?M.on(j,we):Array.isArray(M._events[j])?M._events[j].unshift(we):M._events[j]=[we,M._events[j]]}function E(M,j,we){e=e||require_stream_duplex(),M=M||{},typeof we!="boolean"&&(we=j instanceof e),this.objectMode=!!M.objectMode,we&&(this.objectMode=this.objectMode||!!M.readableObjectMode),this.highWaterMark=I(this,M,"readableHighWaterMark",we),this.buffer=new f,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=M.emitClose!==!1,this.autoDestroy=!!M.autoDestroy,this.destroyed=!1,this.defaultEncoding=M.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,M.encoding&&(v||(v=requireString_decoder().StringDecoder),this.decoder=new v(M.encoding),this.encoding=M.encoding)}function P(M){if(e=e||require_stream_duplex(),!(this instanceof P))return new P(M);var j=this instanceof e;this._readableState=new E(M,this,j),this.readable=!0,M&&(typeof M.read=="function"&&(this._read=M.read),typeof M.destroy=="function"&&(this._destroy=M.destroy)),r.call(this)}Object.defineProperty(P.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(j){!this._readableState||(this._readableState.destroyed=j)}}),P.prototype.destroy=p.destroy,P.prototype._undestroy=p.undestroy,P.prototype._destroy=function(M,j){j(M)},P.prototype.push=function(M,j){var we=this._readableState,je;return we.objectMode?je=!0:typeof M=="string"&&(j=j||we.defaultEncoding,j!==we.encoding&&(M=a.from(M,j),j=""),je=!0),A(this,M,j,!1,je)},P.prototype.unshift=function(M){return A(this,M,null,!0,!1)};function A(M,j,we,je,tt){u("readableAddChunk",j);var Ne=M._readableState;if(j===null)Ne.reading=!1,oe(M,Ne);else{var Ge;if(tt||(Ge=J(Ne,j)),Ge)_(M,Ge);else if(Ne.objectMode||j&&j.length>0)if(typeof j!="string"&&!Ne.objectMode&&Object.getPrototypeOf(j)!==a.prototype&&(j=c(j)),je)Ne.endEmitted?_(M,new y):W(M,Ne,j,!0);else if(Ne.ended)_(M,new C);else{if(Ne.destroyed)return!1;Ne.reading=!1,Ne.decoder&&!we?(j=Ne.decoder.write(j),Ne.objectMode||j.length!==0?W(M,Ne,j,!1):ue(M,Ne)):W(M,Ne,j,!1)}else je||(Ne.reading=!1,ue(M,Ne))}return!Ne.ended&&(Ne.length<Ne.highWaterMark||Ne.length===0)}function W(M,j,we,je){j.flowing&&j.length===0&&!j.sync?(j.awaitDrain=0,M.emit("data",we)):(j.length+=j.objectMode?1:we.length,je?j.buffer.unshift(we):j.buffer.push(we),j.needReadable&&ee(M)),ue(M,j)}function J(M,j){var we;return!l(j)&&typeof j!="string"&&j!==void 0&&!M.objectMode&&(we=new g("chunk",["string","Buffer","Uint8Array"],j)),we}P.prototype.isPaused=function(){return this._readableState.flowing===!1},P.prototype.setEncoding=function(M){v||(v=requireString_decoder().StringDecoder);var j=new v(M);this._readableState.decoder=j,this._readableState.encoding=this._readableState.decoder.encoding;for(var we=this._readableState.buffer.head,je="";we!==null;)je+=j.write(we.data),we=we.next;return this._readableState.buffer.clear(),je!==""&&this._readableState.buffer.push(je),this._readableState.length=je.length,this};var z=1073741824;function Y(M){return M>=z?M=z:(M--,M|=M>>>1,M|=M>>>2,M|=M>>>4,M|=M>>>8,M|=M>>>16,M++),M}function Q(M,j){return M<=0||j.length===0&&j.ended?0:j.objectMode?1:M!==M?j.flowing&&j.length?j.buffer.head.data.length:j.length:(M>j.highWaterMark&&(j.highWaterMark=Y(M)),M<=j.length?M:j.ended?j.length:(j.needReadable=!0,0))}P.prototype.read=function(M){u("read",M),M=parseInt(M,10);var j=this._readableState,we=M;if(M!==0&&(j.emittedReadable=!1),M===0&&j.needReadable&&((j.highWaterMark!==0?j.length>=j.highWaterMark:j.length>0)||j.ended))return u("read: emitReadable",j.length,j.ended),j.length===0&&j.ended?re(this):ee(this),null;if(M=Q(M,j),M===0&&j.ended)return j.length===0&&re(this),null;var je=j.needReadable;u("need readable",je),(j.length===0||j.length-M<j.highWaterMark)&&(je=!0,u("length less than watermark",je)),j.ended||j.reading?(je=!1,u("reading or ended",je)):je&&(u("do read"),j.reading=!0,j.sync=!0,j.length===0&&(j.needReadable=!0),this._read(j.highWaterMark),j.sync=!1,j.reading||(M=Q(we,j)));var tt;return M>0?tt=U(M,j):tt=null,tt===null?(j.needReadable=j.length<=j.highWaterMark,M=0):(j.length-=M,j.awaitDrain=0),j.length===0&&(j.ended||(j.needReadable=!0),we!==M&&j.ended&&re(this)),tt!==null&&this.emit("data",tt),tt};function oe(M,j){if(u("onEofChunk"),!j.ended){if(j.decoder){var we=j.decoder.end();we&&we.length&&(j.buffer.push(we),j.length+=j.objectMode?1:we.length)}j.ended=!0,j.sync?ee(M):(j.needReadable=!1,j.emittedReadable||(j.emittedReadable=!0,X(M)))}}function ee(M){var j=M._readableState;u("emitReadable",j.needReadable,j.emittedReadable),j.needReadable=!1,j.emittedReadable||(u("emitReadable",j.flowing),j.emittedReadable=!0,process.nextTick(X,M))}function X(M){var j=M._readableState;u("emitReadable_",j.destroyed,j.length,j.ended),!j.destroyed&&(j.length||j.ended)&&(M.emit("readable"),j.emittedReadable=!1),j.needReadable=!j.flowing&&!j.ended&&j.length<=j.highWaterMark,N(M)}function ue(M,j){j.readingMore||(j.readingMore=!0,process.nextTick(Re,M,j))}function Re(M,j){for(;!j.reading&&!j.ended&&(j.length<j.highWaterMark||j.flowing&&j.length===0);){var we=j.length;if(u("maybeReadMore read 0"),M.read(0),we===j.length)break}j.readingMore=!1}P.prototype._read=function(M){_(this,new b("_read()"))},P.prototype.pipe=function(M,j){var we=this,je=this._readableState;switch(je.pipesCount){case 0:je.pipes=M;break;case 1:je.pipes=[je.pipes,M];break;default:je.pipes.push(M);break}je.pipesCount+=1,u("pipe count=%d opts=%j",je.pipesCount,j);var tt=(!j||j.end!==!1)&&M!==process.stdout&&M!==process.stderr,Ne=tt?yt:Ut;je.endEmitted?process.nextTick(Ne):we.once("end",Ne),M.on("unpipe",Ge);function Ge(Qt,Gt){u("onunpipe"),Qt===we&&Gt&&Gt.hasUnpiped===!1&&(Gt.hasUnpiped=!0,$t())}function yt(){u("onend"),M.end()}var Tt=xe(we);M.on("drain",Tt);var Ot=!1;function $t(){u("cleanup"),M.removeListener("close",Dt),M.removeListener("finish",zt),M.removeListener("drain",Tt),M.removeListener("error",Ct),M.removeListener("unpipe",Ge),we.removeListener("end",yt),we.removeListener("end",Ut),we.removeListener("data",Vt),Ot=!0,je.awaitDrain&&(!M._writableState||M._writableState.needDrain)&&Tt()}we.on("data",Vt);function Vt(Qt){u("ondata");var Gt=M.write(Qt);u("dest.write",Gt),Gt===!1&&((je.pipesCount===1&&je.pipes===M||je.pipesCount>1&&Fe(je.pipes,M)!==-1)&&!Ot&&(u("false write response, pause",je.awaitDrain),je.awaitDrain++),we.pause())}function Ct(Qt){u("onerror",Qt),Ut(),M.removeListener("error",Ct),o(M,"error")===0&&_(M,Qt)}L(M,"error",Ct);function Dt(){M.removeListener("finish",zt),Ut()}M.once("close",Dt);function zt(){u("onfinish"),M.removeListener("close",Dt),Ut()}M.once("finish",zt);function Ut(){u("unpipe"),we.unpipe(M)}return M.emit("pipe",we),je.flowing||(u("pipe resume"),we.resume()),M};function xe(M){return function(){var we=M._readableState;u("pipeOnDrain",we.awaitDrain),we.awaitDrain&&we.awaitDrain--,we.awaitDrain===0&&o(M,"data")&&(we.flowing=!0,N(M))}}P.prototype.unpipe=function(M){var j=this._readableState,we={hasUnpiped:!1};if(j.pipesCount===0)return this;if(j.pipesCount===1)return M&&M!==j.pipes?this:(M||(M=j.pipes),j.pipes=null,j.pipesCount=0,j.flowing=!1,M&&M.emit("unpipe",this,we),this);if(!M){var je=j.pipes,tt=j.pipesCount;j.pipes=null,j.pipesCount=0,j.flowing=!1;for(var Ne=0;Ne<tt;Ne++)je[Ne].emit("unpipe",this,{hasUnpiped:!1});return this}var Ge=Fe(j.pipes,M);return Ge===-1?this:(j.pipes.splice(Ge,1),j.pipesCount-=1,j.pipesCount===1&&(j.pipes=j.pipes[0]),M.emit("unpipe",this,we),this)},P.prototype.on=function(M,j){var we=r.prototype.on.call(this,M,j),je=this._readableState;return M==="data"?(je.readableListening=this.listenerCount("readable")>0,je.flowing!==!1&&this.resume()):M==="readable"&&!je.endEmitted&&!je.readableListening&&(je.readableListening=je.needReadable=!0,je.flowing=!1,je.emittedReadable=!1,u("on readable",je.length,je.reading),je.length?ee(this):je.reading||process.nextTick(Ce,this)),we},P.prototype.addListener=P.prototype.on,P.prototype.removeListener=function(M,j){var we=r.prototype.removeListener.call(this,M,j);return M==="readable"&&process.nextTick(ce,this),we},P.prototype.removeAllListeners=function(M){var j=r.prototype.removeAllListeners.apply(this,arguments);return(M==="readable"||M===void 0)&&process.nextTick(ce,this),j};function ce(M){var j=M._readableState;j.readableListening=M.listenerCount("readable")>0,j.resumeScheduled&&!j.paused?j.flowing=!0:M.listenerCount("data")>0&&M.resume()}function Ce(M){u("readable nexttick read 0"),M.read(0)}P.prototype.resume=function(){var M=this._readableState;return M.flowing||(u("resume"),M.flowing=!M.readableListening,te(this,M)),M.paused=!1,this};function te(M,j){j.resumeScheduled||(j.resumeScheduled=!0,process.nextTick(de,M,j))}function de(M,j){u("resume",j.reading),j.reading||M.read(0),j.resumeScheduled=!1,M.emit("resume"),N(M),j.flowing&&!j.reading&&M.read(0)}P.prototype.pause=function(){return u("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(u("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function N(M){var j=M._readableState;for(u("flow",j.flowing);j.flowing&&M.read()!==null;);}P.prototype.wrap=function(M){var j=this,we=this._readableState,je=!1;M.on("end",function(){if(u("wrapped end"),we.decoder&&!we.ended){var Ge=we.decoder.end();Ge&&Ge.length&&j.push(Ge)}j.push(null)}),M.on("data",function(Ge){if(u("wrapped data"),we.decoder&&(Ge=we.decoder.write(Ge)),!(we.objectMode&&Ge==null)&&!(!we.objectMode&&(!Ge||!Ge.length))){var yt=j.push(Ge);yt||(je=!0,M.pause())}});for(var tt in M)this[tt]===void 0&&typeof M[tt]=="function"&&(this[tt]=function(yt){return function(){return M[yt].apply(M,arguments)}}(tt));for(var Ne=0;Ne<F.length;Ne++)M.on(F[Ne],this.emit.bind(this,F[Ne]));return this._read=function(Ge){u("wrapped _read",Ge),je&&(je=!1,M.resume())},this},typeof Symbol=="function"&&(P.prototype[Symbol.asyncIterator]=function(){return O===void 0&&(O=requireAsync_iterator()),O(this)}),Object.defineProperty(P.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(P.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(P.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(j){this._readableState&&(this._readableState.flowing=j)}}),P._fromList=U,Object.defineProperty(P.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function U(M,j){if(j.length===0)return null;var we;return j.objectMode?we=j.buffer.shift():!M||M>=j.length?(j.decoder?we=j.buffer.join(""):j.buffer.length===1?we=j.buffer.first():we=j.buffer.concat(j.length),j.buffer.clear()):we=j.buffer.consume(M,j.decoder),we}function re(M){var j=M._readableState;u("endReadable",j.endEmitted),j.endEmitted||(j.ended=!0,process.nextTick(Te,j,M))}function Te(M,j){if(u("endReadableNT",M.endEmitted,M.length),!M.endEmitted&&M.length===0&&(M.endEmitted=!0,j.readable=!1,j.emit("end"),M.autoDestroy)){var we=j._writableState;(!we||we.autoDestroy&&we.finished)&&j.destroy()}}typeof Symbol=="function"&&(P.from=function(M,j){return w===void 0&&(w=requireFromBrowser()),w(P,M,j)});function Fe(M,j){for(var we=0,je=M.length;we<je;we++)if(M[we]===j)return we;return-1}return _stream_readable}var _stream_transform=Transform$1,_require$codes$1=errorsBrowser.codes,ERR_METHOD_NOT_IMPLEMENTED=_require$codes$1.ERR_METHOD_NOT_IMPLEMENTED,ERR_MULTIPLE_CALLBACK=_require$codes$1.ERR_MULTIPLE_CALLBACK,ERR_TRANSFORM_ALREADY_TRANSFORMING=_require$codes$1.ERR_TRANSFORM_ALREADY_TRANSFORMING,ERR_TRANSFORM_WITH_LENGTH_0=_require$codes$1.ERR_TRANSFORM_WITH_LENGTH_0,Duplex=require_stream_duplex();inherits_browser.exports(Transform$1,Duplex);function afterTransform(e,o){var r=this._transformState;r.transforming=!1;var a=r.writecb;if(a===null)return this.emit("error",new ERR_MULTIPLE_CALLBACK);r.writechunk=null,r.writecb=null,o!=null&&this.push(o),a(e);var s=this._readableState;s.reading=!1,(s.needReadable||s.length<s.highWaterMark)&&this._read(s.highWaterMark)}function Transform$1(e){if(!(this instanceof Transform$1))return new Transform$1(e);Duplex.call(this,e),this._transformState={afterTransform:afterTransform.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",prefinish)}function prefinish(){var e=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(o,r){done(e,o,r)}):done(this,null,null)}Transform$1.prototype.push=function(e,o){return this._transformState.needTransform=!1,Duplex.prototype.push.call(this,e,o)},Transform$1.prototype._transform=function(e,o,r){r(new ERR_METHOD_NOT_IMPLEMENTED("_transform()"))},Transform$1.prototype._write=function(e,o,r){var a=this._transformState;if(a.writecb=r,a.writechunk=e,a.writeencoding=o,!a.transforming){var s=this._readableState;(a.needTransform||s.needReadable||s.length<s.highWaterMark)&&this._read(s.highWaterMark)}},Transform$1.prototype._read=function(e){var o=this._transformState;o.writechunk!==null&&!o.transforming?(o.transforming=!0,this._transform(o.writechunk,o.writeencoding,o.afterTransform)):o.needTransform=!0},Transform$1.prototype._destroy=function(e,o){Duplex.prototype._destroy.call(this,e,function(r){o(r)})};function done(e,o,r){if(o)return e.emit("error",o);if(r!=null&&e.push(r),e._writableState.length)throw new ERR_TRANSFORM_WITH_LENGTH_0;if(e._transformState.transforming)throw new ERR_TRANSFORM_ALREADY_TRANSFORMING;return e.push(null)}var _stream_passthrough=PassThrough,Transform=_stream_transform;inherits_browser.exports(PassThrough,Transform);function PassThrough(e){if(!(this instanceof PassThrough))return new PassThrough(e);Transform.call(this,e)}PassThrough.prototype._transform=function(e,o,r){r(null,e)};var eos;function once(e){var o=!1;return function(){o||(o=!0,e.apply(void 0,arguments))}}var _require$codes=errorsBrowser.codes,ERR_MISSING_ARGS=_require$codes.ERR_MISSING_ARGS,ERR_STREAM_DESTROYED=_require$codes.ERR_STREAM_DESTROYED;function noop$1(e){if(e)throw e}function isRequest(e){return e.setHeader&&typeof e.abort=="function"}function destroyer(e,o,r,a){a=once(a);var s=!1;e.on("close",function(){s=!0}),eos===void 0&&(eos=endOfStream),eos(e,{readable:o,writable:r},function(l){if(l)return a(l);s=!0,a()});var c=!1;return function(l){if(!s&&!c){if(c=!0,isRequest(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();a(l||new ERR_STREAM_DESTROYED("pipe"))}}}function call(e){e()}function pipe(e,o){return e.pipe(o)}function popCallback(e){return!e.length||typeof e[e.length-1]!="function"?noop$1:e.pop()}function pipeline(){for(var e=arguments.length,o=new Array(e),r=0;r<e;r++)o[r]=arguments[r];var a=popCallback(o);if(Array.isArray(o[0])&&(o=o[0]),o.length<2)throw new ERR_MISSING_ARGS("streams");var s,c=o.map(function(l,d){var u=d<o.length-1,f=d>0;return destroyer(l,u,f,function(p){s||(s=p),p&&c.forEach(call),!u&&(c.forEach(call),a(s))})});return o.reduce(pipe)}var pipeline_1=pipeline;(function(e,o){o=e.exports=require_stream_readable(),o.Stream=o,o.Readable=o,o.Writable=require_stream_writable(),o.Duplex=require_stream_duplex(),o.Transform=_stream_transform,o.PassThrough=_stream_passthrough,o.finished=endOfStream,o.pipeline=pipeline_1})(readableBrowser,readableBrowser.exports),Object.defineProperty(lib$2,"__esModule",{value:!0}),lib$2.ReadableWebToNodeStream=void 0;const readable_stream_1=readableBrowser.exports;class ReadableWebToNodeStream extends readable_stream_1.Readable{constructor(o){super(),this.bytesRead=0,this.released=!1,this.reader=o.getReader()}async _read(){if(this.released){this.push(null);return}this.pendingRead=this.reader.read();const o=await this.pendingRead;delete this.pendingRead,o.done||this.released?this.push(null):(this.bytesRead+=o.value.length,this.push(o.value))}async waitForReadToComplete(){this.pendingRead&&await this.pendingRead}async close(){await this.syncAndRelease()}async syncAndRelease(){this.released=!0,await this.waitForReadToComplete(),await this.reader.releaseLock()}}lib$2.ReadableWebToNodeStream=ReadableWebToNodeStream;var lib$1={},ieee754={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */ieee754.read=function(e,o,r,a,s){var c,l,d=s*8-a-1,u=(1<<d)-1,f=u>>1,p=-7,m=r?s-1:0,I=r?-1:1,h=e[o+m];for(m+=I,c=h&(1<<-p)-1,h>>=-p,p+=d;p>0;c=c*256+e[o+m],m+=I,p-=8);for(l=c&(1<<-p)-1,c>>=-p,p+=a;p>0;l=l*256+e[o+m],m+=I,p-=8);if(c===0)c=1-f;else{if(c===u)return l?NaN:(h?-1:1)*(1/0);l=l+Math.pow(2,a),c=c-f}return(h?-1:1)*l*Math.pow(2,c-a)},ieee754.write=function(e,o,r,a,s,c){var l,d,u,f=c*8-s-1,p=(1<<f)-1,m=p>>1,I=s===23?Math.pow(2,-24)-Math.pow(2,-77):0,h=a?0:c-1,g=a?1:-1,C=o<0||o===0&&1/o<0?1:0;for(o=Math.abs(o),isNaN(o)||o===1/0?(d=isNaN(o)?1:0,l=p):(l=Math.floor(Math.log(o)/Math.LN2),o*(u=Math.pow(2,-l))<1&&(l--,u*=2),l+m>=1?o+=I/u:o+=I*Math.pow(2,1-m),o*u>=2&&(l++,u/=2),l+m>=p?(d=0,l=p):l+m>=1?(d=(o*u-1)*Math.pow(2,s),l=l+m):(d=o*Math.pow(2,m-1)*Math.pow(2,s),l=0));s>=8;e[r+h]=d&255,h+=g,d/=256,s-=8);for(l=l<<s|d,f+=s;f>0;e[r+h]=l&255,h+=g,l/=256,f-=8);e[r+h-g]|=C*128},function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.AnsiStringType=e.StringType=e.BufferType=e.Uint8ArrayType=e.IgnoreType=e.Float80_LE=e.Float80_BE=e.Float64_LE=e.Float64_BE=e.Float32_LE=e.Float32_BE=e.Float16_LE=e.Float16_BE=e.INT64_BE=e.UINT64_BE=e.INT64_LE=e.UINT64_LE=e.INT32_LE=e.INT32_BE=e.INT24_BE=e.INT24_LE=e.INT16_LE=e.INT16_BE=e.INT8=e.UINT32_BE=e.UINT32_LE=e.UINT24_BE=e.UINT24_LE=e.UINT16_BE=e.UINT16_LE=e.UINT8=void 0;const o=ieee754;function r(u){return new DataView(u.buffer,u.byteOffset)}e.UINT8={len:1,get(u,f){return r(u).getUint8(f)},put(u,f,p){return r(u).setUint8(f,p),f+1}},e.UINT16_LE={len:2,get(u,f){return r(u).getUint16(f,!0)},put(u,f,p){return r(u).setUint16(f,p,!0),f+2}},e.UINT16_BE={len:2,get(u,f){return r(u).getUint16(f)},put(u,f,p){return r(u).setUint16(f,p),f+2}},e.UINT24_LE={len:3,get(u,f){const p=r(u);return p.getUint8(f)+(p.getUint16(f+1,!0)<<8)},put(u,f,p){const m=r(u);return m.setUint8(f,p&255),m.setUint16(f+1,p>>8,!0),f+3}},e.UINT24_BE={len:3,get(u,f){const p=r(u);return(p.getUint16(f)<<8)+p.getUint8(f+2)},put(u,f,p){const m=r(u);return m.setUint16(f,p>>8),m.setUint8(f+2,p&255),f+3}},e.UINT32_LE={len:4,get(u,f){return r(u).getUint32(f,!0)},put(u,f,p){return r(u).setUint32(f,p,!0),f+4}},e.UINT32_BE={len:4,get(u,f){return r(u).getUint32(f)},put(u,f,p){return r(u).setUint32(f,p),f+4}},e.INT8={len:1,get(u,f){return r(u).getInt8(f)},put(u,f,p){return r(u).setInt8(f,p),f+1}},e.INT16_BE={len:2,get(u,f){return r(u).getInt16(f)},put(u,f,p){return r(u).setInt16(f,p),f+2}},e.INT16_LE={len:2,get(u,f){return r(u).getInt16(f,!0)},put(u,f,p){return r(u).setInt16(f,p,!0),f+2}},e.INT24_LE={len:3,get(u,f){const p=e.UINT24_LE.get(u,f);return p>8388607?p-16777216:p},put(u,f,p){const m=r(u);return m.setUint8(f,p&255),m.setUint16(f+1,p>>8,!0),f+3}},e.INT24_BE={len:3,get(u,f){const p=e.UINT24_BE.get(u,f);return p>8388607?p-16777216:p},put(u,f,p){const m=r(u);return m.setUint16(f,p>>8),m.setUint8(f+2,p&255),f+3}},e.INT32_BE={len:4,get(u,f){return r(u).getInt32(f)},put(u,f,p){return r(u).setInt32(f,p),f+4}},e.INT32_LE={len:4,get(u,f){return r(u).getInt32(f,!0)},put(u,f,p){return r(u).setInt32(f,p,!0),f+4}},e.UINT64_LE={len:8,get(u,f){return r(u).getBigUint64(f,!0)},put(u,f,p){return r(u).setBigUint64(f,p,!0),f+8}},e.INT64_LE={len:8,get(u,f){return r(u).getBigInt64(f,!0)},put(u,f,p){return r(u).setBigInt64(f,p,!0),f+8}},e.UINT64_BE={len:8,get(u,f){return r(u).getBigUint64(f)},put(u,f,p){return r(u).setBigUint64(f,p),f+8}},e.INT64_BE={len:8,get(u,f){return r(u).getBigInt64(f)},put(u,f,p){return r(u).setBigInt64(f,p),f+8}},e.Float16_BE={len:2,get(u,f){return o.read(u,f,!1,10,this.len)},put(u,f,p){return o.write(u,p,f,!1,10,this.len),f+this.len}},e.Float16_LE={len:2,get(u,f){return o.read(u,f,!0,10,this.len)},put(u,f,p){return o.write(u,p,f,!0,10,this.len),f+this.len}},e.Float32_BE={len:4,get(u,f){return r(u).getFloat32(f)},put(u,f,p){return r(u).setFloat32(f,p),f+4}},e.Float32_LE={len:4,get(u,f){return r(u).getFloat32(f,!0)},put(u,f,p){return r(u).setFloat32(f,p,!0),f+4}},e.Float64_BE={len:8,get(u,f){return r(u).getFloat64(f)},put(u,f,p){return r(u).setFloat64(f,p),f+8}},e.Float64_LE={len:8,get(u,f){return r(u).getFloat64(f,!0)},put(u,f,p){return r(u).setFloat64(f,p,!0),f+8}},e.Float80_BE={len:10,get(u,f){return o.read(u,f,!1,63,this.len)},put(u,f,p){return o.write(u,p,f,!1,63,this.len),f+this.len}},e.Float80_LE={len:10,get(u,f){return o.read(u,f,!0,63,this.len)},put(u,f,p){return o.write(u,p,f,!0,63,this.len),f+this.len}};class a{constructor(f){this.len=f}get(f,p){}}e.IgnoreType=a;class s{constructor(f){this.len=f}get(f,p){return f.subarray(p,p+this.len)}}e.Uint8ArrayType=s;class c{constructor(f){this.len=f}get(f,p){return Buffer.from(f.subarray(p,p+this.len))}}e.BufferType=c;class l{constructor(f,p){this.len=f,this.encoding=p}get(f,p){return Buffer.from(f).toString(this.encoding,p,p+this.len)}}e.StringType=l;class d{constructor(f){this.len=f}static decode(f,p,m){let I="";for(let h=p;h<m;++h)I+=d.codePointToString(d.singleByteDecoder(f[h]));return I}static inRange(f,p,m){return p<=f&&f<=m}static codePointToString(f){return f<=65535?String.fromCharCode(f):(f-=65536,String.fromCharCode((f>>10)+55296,(f&1023)+56320))}static singleByteDecoder(f){if(d.inRange(f,0,127))return f;const p=d.windows1252[f-128];if(p===null)throw Error("invaliding encoding");return p}get(f,p=0){return d.decode(f,p,p+this.len)}}e.AnsiStringType=d,d.windows1252=[8364,129,8218,402,8222,8230,8224,8225,710,8240,352,8249,338,141,381,143,144,8216,8217,8220,8221,8226,8211,8212,732,8482,353,8250,339,157,382,376,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255]}(lib$1);var core$1={},ReadStreamTokenizer$1={},AbstractTokenizer$1={},lib={},EndOfFileStream={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EndOfStreamError=e.defaultMessages=void 0,e.defaultMessages="End-Of-Stream";class o extends Error{constructor(){super(e.defaultMessages)}}e.EndOfStreamError=o})(EndOfFileStream);var StreamReader={},Deferred$1={};Object.defineProperty(Deferred$1,"__esModule",{value:!0}),Deferred$1.Deferred=void 0;class Deferred{constructor(){this.resolve=()=>null,this.reject=()=>null,this.promise=new Promise((o,r)=>{this.reject=r,this.resolve=o})}}Deferred$1.Deferred=Deferred,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.StreamReader=e.EndOfStreamError=void 0;const o=EndOfFileStream,r=Deferred$1;var a=EndOfFileStream;Object.defineProperty(e,"EndOfStreamError",{enumerable:!0,get:function(){return a.EndOfStreamError}});const s=1*1024*1024;class c{constructor(d){if(this.s=d,this.deferred=null,this.endOfStream=!1,this.peekQueue=[],!d.read||!d.once)throw new Error("Expected an instance of stream.Readable");this.s.once("end",()=>this.reject(new o.EndOfStreamError)),this.s.once("error",u=>this.reject(u)),this.s.once("close",()=>this.reject(new Error("Stream closed")))}async peek(d,u,f){const p=await this.read(d,u,f);return this.peekQueue.push(d.subarray(u,u+p)),p}async read(d,u,f){if(f===0)return 0;if(this.peekQueue.length===0&&this.endOfStream)throw new o.EndOfStreamError;let p=f,m=0;for(;this.peekQueue.length>0&&p>0;){const I=this.peekQueue.pop();if(!I)throw new Error("peekData should be defined");const h=Math.min(I.length,p);d.set(I.subarray(0,h),u+m),m+=h,p-=h,h<I.length&&this.peekQueue.push(I.subarray(h))}for(;p>0&&!this.endOfStream;){const I=Math.min(p,s),h=await this.readFromStream(d,u+m,I);if(m+=h,h<I)break;p-=h}return m}async readFromStream(d,u,f){const p=this.s.read(f);if(p)return d.set(p,u),p.length;{const m={buffer:d,offset:u,length:f,deferred:new r.Deferred};return this.deferred=m.deferred,this.s.once("readable",()=>{this.readDeferred(m)}),m.deferred.promise}}readDeferred(d){const u=this.s.read(d.length);u?(d.buffer.set(u,d.offset),d.deferred.resolve(u.length),this.deferred=null):this.s.once("readable",()=>{this.readDeferred(d)})}reject(d){this.endOfStream=!0,this.deferred&&(this.deferred.reject(d),this.deferred=null)}}e.StreamReader=c}(StreamReader),function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.StreamReader=e.EndOfStreamError=void 0;var o=EndOfFileStream;Object.defineProperty(e,"EndOfStreamError",{enumerable:!0,get:function(){return o.EndOfStreamError}});var r=StreamReader;Object.defineProperty(e,"StreamReader",{enumerable:!0,get:function(){return r.StreamReader}})}(lib),Object.defineProperty(AbstractTokenizer$1,"__esModule",{value:!0}),AbstractTokenizer$1.AbstractTokenizer=void 0;const peek_readable_1$2=lib;class AbstractTokenizer{constructor(o){this.position=0,this.numBuffer=new Uint8Array(8),this.fileInfo=o||{}}async readToken(o,r=this.position){const a=Buffer.alloc(o.len);if(await this.readBuffer(a,{position:r})<o.len)throw new peek_readable_1$2.EndOfStreamError;return o.get(a,0)}async peekToken(o,r=this.position){const a=Buffer.alloc(o.len);if(await this.peekBuffer(a,{position:r})<o.len)throw new peek_readable_1$2.EndOfStreamError;return o.get(a,0)}async readNumber(o){if(await this.readBuffer(this.numBuffer,{length:o.len})<o.len)throw new peek_readable_1$2.EndOfStreamError;return o.get(this.numBuffer,0)}async peekNumber(o){if(await this.peekBuffer(this.numBuffer,{length:o.len})<o.len)throw new peek_readable_1$2.EndOfStreamError;return o.get(this.numBuffer,0)}async ignore(o){if(this.fileInfo.size!==void 0){const r=this.fileInfo.size-this.position;if(o>r)return this.position+=r,r}return this.position+=o,o}async close(){}normalizeOptions(o,r){if(r&&r.position!==void 0&&r.position<this.position)throw new Error("`options.position` must be equal or greater than `tokenizer.position`");return r?{mayBeLess:r.mayBeLess===!0,offset:r.offset?r.offset:0,length:r.length?r.length:o.length-(r.offset?r.offset:0),position:r.position?r.position:this.position}:{mayBeLess:!1,offset:0,length:o.length,position:this.position}}}AbstractTokenizer$1.AbstractTokenizer=AbstractTokenizer,Object.defineProperty(ReadStreamTokenizer$1,"__esModule",{value:!0}),ReadStreamTokenizer$1.ReadStreamTokenizer=void 0;const AbstractTokenizer_1$1=AbstractTokenizer$1,peek_readable_1$1=lib,maxBufferSize=256e3;class ReadStreamTokenizer extends AbstractTokenizer_1$1.AbstractTokenizer{constructor(o,r){super(r),this.streamReader=new peek_readable_1$1.StreamReader(o)}async getFileInfo(){return this.fileInfo}async readBuffer(o,r){const a=this.normalizeOptions(o,r),s=a.position-this.position;if(s>0)return await this.ignore(s),this.readBuffer(o,r);if(s<0)throw new Error("`options.position` must be equal or greater than `tokenizer.position`");if(a.length===0)return 0;const c=await this.streamReader.read(o,a.offset,a.length);if(this.position+=c,(!r||!r.mayBeLess)&&c<a.length)throw new peek_readable_1$1.EndOfStreamError;return c}async peekBuffer(o,r){const a=this.normalizeOptions(o,r);let s=0;if(a.position){const c=a.position-this.position;if(c>0){const l=new Uint8Array(a.length+c);return s=await this.peekBuffer(l,{mayBeLess:a.mayBeLess}),o.set(l.subarray(c),a.offset),s-c}else if(c<0)throw new Error("Cannot peek from a negative offset in a stream")}if(a.length>0){try{s=await this.streamReader.peek(o,a.offset,a.length)}catch(c){if(r&&r.mayBeLess&&c instanceof peek_readable_1$1.EndOfStreamError)return 0;throw c}if(!a.mayBeLess&&s<a.length)throw new peek_readable_1$1.EndOfStreamError}return s}async ignore(o){const r=Math.min(maxBufferSize,o),a=new Uint8Array(r);let s=0;for(;s<o;){const c=o-s,l=await this.readBuffer(a,{length:Math.min(r,c)});if(l<0)return l;s+=l}return s}}ReadStreamTokenizer$1.ReadStreamTokenizer=ReadStreamTokenizer;var BufferTokenizer$1={};Object.defineProperty(BufferTokenizer$1,"__esModule",{value:!0}),BufferTokenizer$1.BufferTokenizer=void 0;const peek_readable_1=lib,AbstractTokenizer_1=AbstractTokenizer$1;class BufferTokenizer extends AbstractTokenizer_1.AbstractTokenizer{constructor(o,r){super(r),this.uint8Array=o,this.fileInfo.size=this.fileInfo.size?this.fileInfo.size:o.length}async readBuffer(o,r){if(r&&r.position){if(r.position<this.position)throw new Error("`options.position` must be equal or greater than `tokenizer.position`");this.position=r.position}const a=await this.peekBuffer(o,r);return this.position+=a,a}async peekBuffer(o,r){const a=this.normalizeOptions(o,r),s=Math.min(this.uint8Array.length-a.position,a.length);if(!a.mayBeLess&&s<a.length)throw new peek_readable_1.EndOfStreamError;return o.set(this.uint8Array.subarray(a.position,a.position+s),a.offset),s}async close(){}}BufferTokenizer$1.BufferTokenizer=BufferTokenizer,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.fromBuffer=e.fromStream=e.EndOfStreamError=void 0;const o=ReadStreamTokenizer$1,r=BufferTokenizer$1;var a=lib;Object.defineProperty(e,"EndOfStreamError",{enumerable:!0,get:function(){return a.EndOfStreamError}});function s(l,d){return d=d||{},new o.ReadStreamTokenizer(l,d)}e.fromStream=s;function c(l,d){return new r.BufferTokenizer(l,d)}e.fromBuffer=c}(core$1);var util$1={};util$1.stringToBytes=e=>[...e].map(o=>o.charCodeAt(0)),util$1.tarHeaderChecksumMatches=(e,o=0)=>{const r=parseInt(e.toString("utf8",148,154).replace(/\0.*$/,"").trim(),8);if(isNaN(r))return!1;let a=8*32;for(let s=o;s<o+148;s++)a+=e[s];for(let s=o+156;s<o+512;s++)a+=e[s];return r===a},util$1.uint32SyncSafeToken={get:(e,o)=>e[o+3]&127|e[o+2]<<7|e[o+1]<<14|e[o]<<21,len:4};var supported$1={extensions:["jpg","png","apng","gif","webp","flif","xcf","cr2","cr3","orf","arw","dng","nef","rw2","raf","tif","bmp","icns","jxr","psd","indd","zip","tar","rar","gz","bz2","7z","dmg","mp4","mid","mkv","webm","mov","avi","mpg","mp2","mp3","m4a","oga","ogg","ogv","opus","flac","wav","spx","amr","pdf","epub","exe","swf","rtf","wasm","woff","woff2","eot","ttf","otf","ico","flv","ps","xz","sqlite","nes","crx","xpi","cab","deb","ar","rpm","Z","lz","cfb","mxf","mts","blend","bpg","docx","pptx","xlsx","3gp","3g2","jp2","jpm","jpx","mj2","aif","qcp","odt","ods","odp","xml","mobi","heic","cur","ktx","ape","wv","dcm","ics","glb","pcap","dsf","lnk","alias","voc","ac3","m4v","m4p","m4b","f4v","f4p","f4b","f4a","mie","asf","ogm","ogx","mpc","arrow","shp","aac","mp1","it","s3m","xm","ai","skp","avif","eps","lzh","pgp","asar","stl","chm","3mf","zst","jxl","vcf"],mimeTypes:["image/jpeg","image/png","image/gif","image/webp","image/flif","image/x-xcf","image/x-canon-cr2","image/x-canon-cr3","image/tiff","image/bmp","image/vnd.ms-photo","image/vnd.adobe.photoshop","application/x-indesign","application/epub+zip","application/x-xpinstall","application/vnd.oasis.opendocument.text","application/vnd.oasis.opendocument.spreadsheet","application/vnd.oasis.opendocument.presentation","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/zip","application/x-tar","application/x-rar-compressed","application/gzip","application/x-bzip2","application/x-7z-compressed","application/x-apple-diskimage","application/x-apache-arrow","video/mp4","audio/midi","video/x-matroska","video/webm","video/quicktime","video/vnd.avi","audio/vnd.wave","audio/qcelp","audio/x-ms-asf","video/x-ms-asf","application/vnd.ms-asf","video/mpeg","video/3gpp","audio/mpeg","audio/mp4","audio/opus","video/ogg","audio/ogg","application/ogg","audio/x-flac","audio/ape","audio/wavpack","audio/amr","application/pdf","application/x-msdownload","application/x-shockwave-flash","application/rtf","application/wasm","font/woff","font/woff2","application/vnd.ms-fontobject","font/ttf","font/otf","image/x-icon","video/x-flv","application/postscript","application/eps","application/x-xz","application/x-sqlite3","application/x-nintendo-nes-rom","application/x-google-chrome-extension","application/vnd.ms-cab-compressed","application/x-deb","application/x-unix-archive","application/x-rpm","application/x-compress","application/x-lzip","application/x-cfb","application/x-mie","application/mxf","video/mp2t","application/x-blender","image/bpg","image/jp2","image/jpx","image/jpm","image/mj2","audio/aiff","application/xml","application/x-mobipocket-ebook","image/heif","image/heif-sequence","image/heic","image/heic-sequence","image/icns","image/ktx","application/dicom","audio/x-musepack","text/calendar","text/vcard","model/gltf-binary","application/vnd.tcpdump.pcap","audio/x-dsf","application/x.ms.shortcut","application/x.apple.alias","audio/x-voc","audio/vnd.dolby.dd-raw","audio/x-m4a","image/apng","image/x-olympus-orf","image/x-sony-arw","image/x-adobe-dng","image/x-nikon-nef","image/x-panasonic-rw2","image/x-fujifilm-raf","video/x-m4v","video/3gpp2","application/x-esri-shape","audio/aac","audio/x-it","audio/x-s3m","audio/x-xm","video/MP1S","video/MP2P","application/vnd.sketchup.skp","image/avif","application/x-lzh-compressed","application/pgp-encrypted","application/x-asar","model/stl","application/vnd.ms-htmlhelp","model/3mf","image/jxl","application/zstd"]};const Token=lib$1,strtok3=core$1,{stringToBytes,tarHeaderChecksumMatches,uint32SyncSafeToken}=util$1,supported=supported$1,minimumBytes=4100;async function fromStream(e){const o=await strtok3.fromStream(e);try{return await fromTokenizer(o)}finally{await o.close()}}async function fromBuffer(e){if(!(e instanceof Uint8Array||e instanceof ArrayBuffer||Buffer.isBuffer(e)))throw new TypeError(`Expected the \`input\` argument to be of type \`Uint8Array\` or \`Buffer\` or \`ArrayBuffer\`, got \`${typeof e}\``);const o=e instanceof Buffer?e:Buffer.from(e);if(!(o&&o.length>1))return;const r=strtok3.fromBuffer(o);return fromTokenizer(r)}function _check(e,o,r){r={offset:0,...r};for(const[a,s]of o.entries())if(r.mask){if(s!==(r.mask[a]&e[a+r.offset]))return!1}else if(s!==e[a+r.offset])return!1;return!0}async function fromTokenizer(e){try{return _fromTokenizer(e)}catch(o){if(!(o instanceof strtok3.EndOfStreamError))throw o}}async function _fromTokenizer(e){let o=Buffer.alloc(minimumBytes);const r=12,a=(c,l)=>_check(o,c,l),s=(c,l)=>a(stringToBytes(c),l);if(e.fileInfo.size||(e.fileInfo.size=Number.MAX_SAFE_INTEGER),await e.peekBuffer(o,{length:r,mayBeLess:!0}),a([66,77]))return{ext:"bmp",mime:"image/bmp"};if(a([11,119]))return{ext:"ac3",mime:"audio/vnd.dolby.dd-raw"};if(a([120,1]))return{ext:"dmg",mime:"application/x-apple-diskimage"};if(a([77,90]))return{ext:"exe",mime:"application/x-msdownload"};if(a([37,33]))return await e.peekBuffer(o,{length:24,mayBeLess:!0}),s("PS-Adobe-",{offset:2})&&s(" EPSF-",{offset:14})?{ext:"eps",mime:"application/eps"}:{ext:"ps",mime:"application/postscript"};if(a([31,160])||a([31,157]))return{ext:"Z",mime:"application/x-compress"};if(a([255,216,255]))return{ext:"jpg",mime:"image/jpeg"};if(a([73,73,188]))return{ext:"jxr",mime:"image/vnd.ms-photo"};if(a([31,139,8]))return{ext:"gz",mime:"application/gzip"};if(a([66,90,104]))return{ext:"bz2",mime:"application/x-bzip2"};if(s("ID3")){await e.ignore(6);const c=await e.readToken(uint32SyncSafeToken);return e.position+c>e.fileInfo.size?{ext:"mp3",mime:"audio/mpeg"}:(await e.ignore(c),fromTokenizer(e))}if(s("MP+"))return{ext:"mpc",mime:"audio/x-musepack"};if((o[0]===67||o[0]===70)&&a([87,83],{offset:1}))return{ext:"swf",mime:"application/x-shockwave-flash"};if(a([71,73,70]))return{ext:"gif",mime:"image/gif"};if(s("FLIF"))return{ext:"flif",mime:"image/flif"};if(s("8BPS"))return{ext:"psd",mime:"image/vnd.adobe.photoshop"};if(s("WEBP",{offset:8}))return{ext:"webp",mime:"image/webp"};if(s("MPCK"))return{ext:"mpc",mime:"audio/x-musepack"};if(s("FORM"))return{ext:"aif",mime:"audio/aiff"};if(s("icns",{offset:0}))return{ext:"icns",mime:"image/icns"};if(a([80,75,3,4])){try{for(;e.position+30<e.fileInfo.size;){await e.readBuffer(o,{length:30});const c={compressedSize:o.readUInt32LE(18),uncompressedSize:o.readUInt32LE(22),filenameLength:o.readUInt16LE(26),extraFieldLength:o.readUInt16LE(28)};if(c.filename=await e.readToken(new Token.StringType(c.filenameLength,"utf-8")),await e.ignore(c.extraFieldLength),c.filename==="META-INF/mozilla.rsa")return{ext:"xpi",mime:"application/x-xpinstall"};if(c.filename.endsWith(".rels")||c.filename.endsWith(".xml"))switch(c.filename.split("/")[0]){case"_rels":break;case"word":return{ext:"docx",mime:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"};case"ppt":return{ext:"pptx",mime:"application/vnd.openxmlformats-officedocument.presentationml.presentation"};case"xl":return{ext:"xlsx",mime:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"};default:break}if(c.filename.startsWith("xl/"))return{ext:"xlsx",mime:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"};if(c.filename.startsWith("3D/")&&c.filename.endsWith(".model"))return{ext:"3mf",mime:"model/3mf"};if(c.filename==="mimetype"&&c.compressedSize===c.uncompressedSize)switch(await e.readToken(new Token.StringType(c.compressedSize,"utf-8"))){case"application/epub+zip":return{ext:"epub",mime:"application/epub+zip"};case"application/vnd.oasis.opendocument.text":return{ext:"odt",mime:"application/vnd.oasis.opendocument.text"};case"application/vnd.oasis.opendocument.spreadsheet":return{ext:"ods",mime:"application/vnd.oasis.opendocument.spreadsheet"};case"application/vnd.oasis.opendocument.presentation":return{ext:"odp",mime:"application/vnd.oasis.opendocument.presentation"};default:}if(c.compressedSize===0){let l=-1;for(;l<0&&e.position<e.fileInfo.size;)await e.peekBuffer(o,{mayBeLess:!0}),l=o.indexOf("504B0304",0,"hex"),await e.ignore(l>=0?l:o.length)}else await e.ignore(c.compressedSize)}}catch(c){if(!(c instanceof strtok3.EndOfStreamError))throw c}return{ext:"zip",mime:"application/zip"}}if(s("OggS")){await e.ignore(28);const c=Buffer.alloc(8);return await e.readBuffer(c),_check(c,[79,112,117,115,72,101,97,100])?{ext:"opus",mime:"audio/opus"}:_check(c,[128,116,104,101,111,114,97])?{ext:"ogv",mime:"video/ogg"}:_check(c,[1,118,105,100,101,111,0])?{ext:"ogm",mime:"video/ogg"}:_check(c,[127,70,76,65,67])?{ext:"oga",mime:"audio/ogg"}:_check(c,[83,112,101,101,120,32,32])?{ext:"spx",mime:"audio/ogg"}:_check(c,[1,118,111,114,98,105,115])?{ext:"ogg",mime:"audio/ogg"}:{ext:"ogx",mime:"application/ogg"}}if(a([80,75])&&(o[2]===3||o[2]===5||o[2]===7)&&(o[3]===4||o[3]===6||o[3]===8))return{ext:"zip",mime:"application/zip"};if(s("ftyp",{offset:4})&&(o[8]&96)!==0){const c=o.toString("binary",8,12).replace("\0"," ").trim();switch(c){case"avif":return{ext:"avif",mime:"image/avif"};case"mif1":return{ext:"heic",mime:"image/heif"};case"msf1":return{ext:"heic",mime:"image/heif-sequence"};case"heic":case"heix":return{ext:"heic",mime:"image/heic"};case"hevc":case"hevx":return{ext:"heic",mime:"image/heic-sequence"};case"qt":return{ext:"mov",mime:"video/quicktime"};case"M4V":case"M4VH":case"M4VP":return{ext:"m4v",mime:"video/x-m4v"};case"M4P":return{ext:"m4p",mime:"video/mp4"};case"M4B":return{ext:"m4b",mime:"audio/mp4"};case"M4A":return{ext:"m4a",mime:"audio/x-m4a"};case"F4V":return{ext:"f4v",mime:"video/mp4"};case"F4P":return{ext:"f4p",mime:"video/mp4"};case"F4A":return{ext:"f4a",mime:"audio/mp4"};case"F4B":return{ext:"f4b",mime:"audio/mp4"};case"crx":return{ext:"cr3",mime:"image/x-canon-cr3"};default:return c.startsWith("3g")?c.startsWith("3g2")?{ext:"3g2",mime:"video/3gpp2"}:{ext:"3gp",mime:"video/3gpp"}:{ext:"mp4",mime:"video/mp4"}}}if(s("MThd"))return{ext:"mid",mime:"audio/midi"};if(s("wOFF")&&(a([0,1,0,0],{offset:4})||s("OTTO",{offset:4})))return{ext:"woff",mime:"font/woff"};if(s("wOF2")&&(a([0,1,0,0],{offset:4})||s("OTTO",{offset:4})))return{ext:"woff2",mime:"font/woff2"};if(a([212,195,178,161])||a([161,178,195,212]))return{ext:"pcap",mime:"application/vnd.tcpdump.pcap"};if(s("DSD "))return{ext:"dsf",mime:"audio/x-dsf"};if(s("LZIP"))return{ext:"lz",mime:"application/x-lzip"};if(s("fLaC"))return{ext:"flac",mime:"audio/x-flac"};if(a([66,80,71,251]))return{ext:"bpg",mime:"image/bpg"};if(s("wvpk"))return{ext:"wv",mime:"audio/wavpack"};if(s("%PDF")){await e.ignore(1350);const c=10*1024*1024,l=Buffer.alloc(Math.min(c,e.fileInfo.size));return await e.readBuffer(l,{mayBeLess:!0}),l.includes(Buffer.from("AIPrivateData"))?{ext:"ai",mime:"application/postscript"}:{ext:"pdf",mime:"application/pdf"}}if(a([0,97,115,109]))return{ext:"wasm",mime:"application/wasm"};if(a([73,73,42,0]))return s("CR",{offset:8})?{ext:"cr2",mime:"image/x-canon-cr2"}:a([28,0,254,0],{offset:8})||a([31,0,11,0],{offset:8})?{ext:"nef",mime:"image/x-nikon-nef"}:a([8,0,0,0],{offset:4})&&(a([45,0,254,0],{offset:8})||a([39,0,254,0],{offset:8}))?{ext:"dng",mime:"image/x-adobe-dng"}:(o=Buffer.alloc(24),await e.peekBuffer(o),(a([16,251,134,1],{offset:4})||a([8,0,0,0],{offset:4}))&&a([0,254,0,4,0,1,0,0,0,1,0,0,0,3,1],{offset:9})?{ext:"arw",mime:"image/x-sony-arw"}:{ext:"tif",mime:"image/tiff"});if(a([77,77,0,42]))return{ext:"tif",mime:"image/tiff"};if(s("MAC "))return{ext:"ape",mime:"audio/ape"};if(a([26,69,223,163])){async function c(){const p=await e.peekNumber(Token.UINT8);let m=128,I=0;for(;(p&m)===0&&m!==0;)++I,m>>=1;const h=Buffer.alloc(I+1);return await e.readBuffer(h),h}async function l(){const p=await c(),m=await c();m[0]^=128>>m.length-1;const I=Math.min(6,m.length);return{id:p.readUIntBE(0,p.length),len:m.readUIntBE(m.length-I,I)}}async function d(p,m){for(;m>0;){const I=await l();if(I.id===17026)return e.readToken(new Token.StringType(I.len,"utf-8"));await e.ignore(I.len),--m}}const u=await l();switch(await d(1,u.len)){case"webm":return{ext:"webm",mime:"video/webm"};case"matroska":return{ext:"mkv",mime:"video/x-matroska"};default:return}}if(a([82,73,70,70])){if(a([65,86,73],{offset:8}))return{ext:"avi",mime:"video/vnd.avi"};if(a([87,65,86,69],{offset:8}))return{ext:"wav",mime:"audio/vnd.wave"};if(a([81,76,67,77],{offset:8}))return{ext:"qcp",mime:"audio/qcelp"}}if(s("SQLi"))return{ext:"sqlite",mime:"application/x-sqlite3"};if(a([78,69,83,26]))return{ext:"nes",mime:"application/x-nintendo-nes-rom"};if(s("Cr24"))return{ext:"crx",mime:"application/x-google-chrome-extension"};if(s("MSCF")||s("ISc("))return{ext:"cab",mime:"application/vnd.ms-cab-compressed"};if(a([237,171,238,219]))return{ext:"rpm",mime:"application/x-rpm"};if(a([197,208,211,198]))return{ext:"eps",mime:"application/eps"};if(a([40,181,47,253]))return{ext:"zst",mime:"application/zstd"};if(a([79,84,84,79,0]))return{ext:"otf",mime:"font/otf"};if(s("#!AMR"))return{ext:"amr",mime:"audio/amr"};if(s("{\\rtf"))return{ext:"rtf",mime:"application/rtf"};if(a([70,76,86,1]))return{ext:"flv",mime:"video/x-flv"};if(s("IMPM"))return{ext:"it",mime:"audio/x-it"};if(s("-lh0-",{offset:2})||s("-lh1-",{offset:2})||s("-lh2-",{offset:2})||s("-lh3-",{offset:2})||s("-lh4-",{offset:2})||s("-lh5-",{offset:2})||s("-lh6-",{offset:2})||s("-lh7-",{offset:2})||s("-lzs-",{offset:2})||s("-lz4-",{offset:2})||s("-lz5-",{offset:2})||s("-lhd-",{offset:2}))return{ext:"lzh",mime:"application/x-lzh-compressed"};if(a([0,0,1,186])){if(a([33],{offset:4,mask:[241]}))return{ext:"mpg",mime:"video/MP1S"};if(a([68],{offset:4,mask:[196]}))return{ext:"mpg",mime:"video/MP2P"}}if(s("ITSF"))return{ext:"chm",mime:"application/vnd.ms-htmlhelp"};if(a([253,55,122,88,90,0]))return{ext:"xz",mime:"application/x-xz"};if(s("<?xml "))return{ext:"xml",mime:"application/xml"};if(a([55,122,188,175,39,28]))return{ext:"7z",mime:"application/x-7z-compressed"};if(a([82,97,114,33,26,7])&&(o[6]===0||o[6]===1))return{ext:"rar",mime:"application/x-rar-compressed"};if(s("solid "))return{ext:"stl",mime:"model/stl"};if(s("BLENDER"))return{ext:"blend",mime:"application/x-blender"};if(s("!<arch>"))return await e.ignore(8),await e.readToken(new Token.StringType(13,"ascii"))==="debian-binary"?{ext:"deb",mime:"application/x-deb"}:{ext:"ar",mime:"application/x-unix-archive"};if(a([137,80,78,71,13,10,26,10])){await e.ignore(8);async function c(){return{length:await e.readToken(Token.INT32_BE),type:await e.readToken(new Token.StringType(4,"binary"))}}do{const l=await c();if(l.length<0)return;switch(l.type){case"IDAT":return{ext:"png",mime:"image/png"};case"acTL":return{ext:"apng",mime:"image/apng"};default:await e.ignore(l.length+4)}}while(e.position+8<e.fileInfo.size);return{ext:"png",mime:"image/png"}}if(a([65,82,82,79,87,49,0,0]))return{ext:"arrow",mime:"application/x-apache-arrow"};if(a([103,108,84,70,2,0,0,0]))return{ext:"glb",mime:"model/gltf-binary"};if(a([102,114,101,101],{offset:4})||a([109,100,97,116],{offset:4})||a([109,111,111,118],{offset:4})||a([119,105,100,101],{offset:4}))return{ext:"mov",mime:"video/quicktime"};if(a([73,73,82,79,8,0,0,0,24]))return{ext:"orf",mime:"image/x-olympus-orf"};if(s("gimp xcf "))return{ext:"xcf",mime:"image/x-xcf"};if(a([73,73,85,0,24,0,0,0,136,231,116,216]))return{ext:"rw2",mime:"image/x-panasonic-rw2"};if(a([48,38,178,117,142,102,207,17,166,217])){async function c(){const l=Buffer.alloc(16);return await e.readBuffer(l),{id:l,size:Number(await e.readToken(Token.UINT64_LE))}}for(await e.ignore(30);e.position+24<e.fileInfo.size;){const l=await c();let d=l.size-24;if(_check(l.id,[145,7,220,183,183,169,207,17,142,230,0,192,12,32,83,101])){const u=Buffer.alloc(16);if(d-=await e.readBuffer(u),_check(u,[64,158,105,248,77,91,207,17,168,253,0,128,95,92,68,43]))return{ext:"asf",mime:"audio/x-ms-asf"};if(_check(u,[192,239,25,188,77,91,207,17,168,253,0,128,95,92,68,43]))return{ext:"asf",mime:"video/x-ms-asf"};break}await e.ignore(d)}return{ext:"asf",mime:"application/vnd.ms-asf"}}if(a([171,75,84,88,32,49,49,187,13,10,26,10]))return{ext:"ktx",mime:"image/ktx"};if((a([126,16,4])||a([126,24,4]))&&a([48,77,73,69],{offset:4}))return{ext:"mie",mime:"application/x-mie"};if(a([39,10,0,0,0,0,0,0,0,0,0,0],{offset:2}))return{ext:"shp",mime:"application/x-esri-shape"};if(a([0,0,0,12,106,80,32,32,13,10,135,10]))switch(await e.ignore(20),await e.readToken(new Token.StringType(4,"ascii"))){case"jp2 ":return{ext:"jp2",mime:"image/jp2"};case"jpx ":return{ext:"jpx",mime:"image/jpx"};case"jpm ":return{ext:"jpm",mime:"image/jpm"};case"mjp2":return{ext:"mj2",mime:"image/mj2"};default:return}if(a([255,10])||a([0,0,0,12,74,88,76,32,13,10,135,10]))return{ext:"jxl",mime:"image/jxl"};if(a([0,0,1,186])||a([0,0,1,179]))return{ext:"mpg",mime:"video/mpeg"};if(a([0,1,0,0,0]))return{ext:"ttf",mime:"font/ttf"};if(a([0,0,1,0]))return{ext:"ico",mime:"image/x-icon"};if(a([0,0,2,0]))return{ext:"cur",mime:"image/x-icon"};if(a([208,207,17,224,161,177,26,225]))return{ext:"cfb",mime:"application/x-cfb"};if(await e.peekBuffer(o,{length:Math.min(256,e.fileInfo.size),mayBeLess:!0}),s("BEGIN:")){if(s("VCARD",{offset:6}))return{ext:"vcf",mime:"text/vcard"};if(s("VCALENDAR",{offset:6}))return{ext:"ics",mime:"text/calendar"}}if(s("FUJIFILMCCD-RAW"))return{ext:"raf",mime:"image/x-fujifilm-raf"};if(s("Extended Module:"))return{ext:"xm",mime:"audio/x-xm"};if(s("Creative Voice File"))return{ext:"voc",mime:"audio/x-voc"};if(a([4,0,0,0])&&o.length>=16){const c=o.readUInt32LE(12);if(c>12&&o.length>=c+16)try{const l=o.slice(16,c+16).toString();if(JSON.parse(l).files)return{ext:"asar",mime:"application/x-asar"}}catch{}}if(a([6,14,43,52,2,5,1,1,13,1,2,1,1,2]))return{ext:"mxf",mime:"application/mxf"};if(s("SCRM",{offset:44}))return{ext:"s3m",mime:"audio/x-s3m"};if(a([71],{offset:4})&&(a([71],{offset:192})||a([71],{offset:196})))return{ext:"mts",mime:"video/mp2t"};if(a([66,79,79,75,77,79,66,73],{offset:60}))return{ext:"mobi",mime:"application/x-mobipocket-ebook"};if(a([68,73,67,77],{offset:128}))return{ext:"dcm",mime:"application/dicom"};if(a([76,0,0,0,1,20,2,0,0,0,0,0,192,0,0,0,0,0,0,70]))return{ext:"lnk",mime:"application/x.ms.shortcut"};if(a([98,111,111,107,0,0,0,0,109,97,114,107,0,0,0,0]))return{ext:"alias",mime:"application/x.apple.alias"};if(a([76,80],{offset:34})&&(a([0,0,1],{offset:8})||a([1,0,2],{offset:8})||a([2,0,2],{offset:8})))return{ext:"eot",mime:"application/vnd.ms-fontobject"};if(a([6,6,237,245,216,29,70,229,189,49,239,231,254,116,183,29]))return{ext:"indd",mime:"application/x-indesign"};if(await e.peekBuffer(o,{length:Math.min(512,e.fileInfo.size),mayBeLess:!0}),tarHeaderChecksumMatches(o))return{ext:"tar",mime:"application/x-tar"};if(a([255,254,255,14,83,0,107,0,101,0,116,0,99,0,104,0,85,0,112,0,32,0,77,0,111,0,100,0,101,0,108,0]))return{ext:"skp",mime:"application/vnd.sketchup.skp"};if(s("-----BEGIN PGP MESSAGE-----"))return{ext:"pgp",mime:"application/pgp-encrypted"};if(o.length>=2&&a([255,224],{offset:0,mask:[255,224]})){if(a([16],{offset:1,mask:[22]}))return a([8],{offset:1,mask:[8]})?{ext:"aac",mime:"audio/aac"}:{ext:"aac",mime:"audio/aac"};if(a([2],{offset:1,mask:[6]}))return{ext:"mp3",mime:"audio/mpeg"};if(a([4],{offset:1,mask:[6]}))return{ext:"mp2",mime:"audio/mpeg"};if(a([6],{offset:1,mask:[6]}))return{ext:"mp1",mime:"audio/mpeg"}}}const stream=readableStream=>new Promise((resolve,reject)=>{const stream=eval("require")("stream");readableStream.on("error",reject),readableStream.once("readable",async()=>{const e=new stream.PassThrough;let o;stream.pipeline?o=stream.pipeline(readableStream,e,()=>{}):o=readableStream.pipe(e);const r=readableStream.read(minimumBytes)||readableStream.read()||Buffer.alloc(0);try{const a=await fromBuffer(r);e.fileType=a}catch(a){reject(a)}resolve(o)})}),fileType={fromStream,fromTokenizer,fromBuffer,stream};Object.defineProperty(fileType,"extensions",{get(){return new Set(supported.extensions)}}),Object.defineProperty(fileType,"mimeTypes",{get(){return new Set(supported.mimeTypes)}});var core=fileType;(function(e){const{ReadableWebToNodeStream:o}=lib$2,r=core;async function a(l){const d=new o(l),u=await r.fromStream(d);return await d.close(),u}async function s(l){const d=await c(l);return r.fromBuffer(Buffer.from(d))}function c(l){return l.arrayBuffer?l.arrayBuffer():new Promise((d,u)=>{const f=new FileReader;f.addEventListener("loadend",p=>{d(p.target.result)}),f.addEventListener("error",p=>{u(new Error(p.message))}),f.addEventListener("abort",p=>{u(new Error(p.type))}),f.readAsArrayBuffer(l)})}Object.assign(e.exports,r,{fromStream:a,fromBlob:s})})(browser$1);const FileType=browser$1.exports;function getFilesize(e){const r=require$$0.Buffer.from(e,"base64").length/1e3;return`${Math.round((r+Number.EPSILON)*100)/100} KB`}async function getMimeType(e){const o=await FileType.fromBuffer(require$$0.Buffer.from(e,"base64"));return o||{mime:"text/plain",ext:"txt"}}const toBase64=e=>new Promise((o,r)=>{const a=new FileReader;a.readAsDataURL(e),a.onload=s=>o(s.target.result.split(",")[1]),a.onerror=s=>r(s)});function openBase64InNewTab(e,o){for(var r=atob(e),a=new Array(r.length),s=0;s<r.length;s++)a[s]=r.charCodeAt(s);var c=new Uint8Array(a),l=new Blob([c],{type:o+";base64"}),d=URL.createObjectURL(l);window.open(d)}const Image=e=>{const{ooui:o}=e,{required:r,id:a}=o,s=iconMapper(a);return s?jsxRuntime.jsx(s,{}):jsxRuntime.jsx(Field$1,{required:r,...e,children:jsxRuntime.jsx(ImageInput,{ooui:o})})},ImageInput=e=>{const{ooui:o,value:r,onChange:a}=e,{readOnly:s}=o,c=React.useRef(null),{t:l}=React.useContext(LocaleContext),d=m=>{a==null||a(m)};async function u(){const m=await getMimeType(r),I=`data:${m==null?void 0:m.mime};base64,${r}`,h=document.createElement("a");h.href=I,h.download=`image.${m==null?void 0:m.ext}`,h.click()}async function f(m){m.stopPropagation(),m.preventDefault();const I=m.target.files[0],h=await toBase64(I);d(h)}function p(){d(void 0)}return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs(antd.Row,{gutter:8,wrap:!1,justify:"center",children:[r&&jsxRuntime.jsx("img",{src:`data:image/*;base64,${r}`,style:{maxWidth:"100px"}}),jsxRuntime.jsx("input",{type:"file",id:"file",ref:c,accept:"image/*",style:{display:"none"},onChange:f})]}),jsxRuntime.jsx(antd.Row,{gutter:8,wrap:!1,justify:"center",className:"pt-5",children:jsxRuntime.jsxs(antd.Space,{children:[jsxRuntime.jsx(ButtonWithTooltip,{tooltip:l("uploadNewImage"),icon:jsxRuntime.jsx(Icon.FolderOpenOutlined,{}),disabled:s,onClick:()=>{c.current.click()}}),jsxRuntime.jsx(ButtonWithTooltip,{tooltip:l("download"),disabled:!r,onClick:u,icon:jsxRuntime.jsx(Icon.DownloadOutlined,{})}),jsxRuntime.jsx(ButtonWithTooltip,{tooltip:l("clear"),disabled:s||!r,onClick:p,icon:jsxRuntime.jsx(Icon.ClearOutlined,{})})]})})]})},FiberGrid=e=>{const{ooui:o}=e,{id:r,readOnly:a,required:s}=o;return jsxRuntime.jsx(Field$1,{required:s,...e,children:jsxRuntime.jsx(FiberGridInput,{})})},FiberGridInput=e=>{const{value:o,onChange:r}=e;if(!o)return null;try{JSON.parse(o)}catch(a){return console.log(a),null}return jsxRuntime.jsx(fiberDiagram.GridUi,{inputJson:o,onChange:a=>{r&&r(a)}})},readObjectValues=async e=>{const{items:o,model:r,formFields:a,treeFields:s,context:c={}}=e,l=o.filter(I=>I.operation!=="original"),d=o.filter(I=>I.operation==="original").map(I=>I.id),u=await ConnectionProvider.getHandler().readObjects({model:r,ids:d,fields:{...a,...s},context:c}),f=u.map(I=>{const h={};return Object.keys(I).forEach(g=>{(a.hasOwnProperty(g)||g==="id")&&(h[g]=I[g])}),h}),p=u.map(I=>{const h={};return Object.keys(I).forEach(g=>{(s.hasOwnProperty(g)||g==="id")&&(h[g]=I[g])}),h});return o.map(I=>{const h=f.find(C=>C.id===I.id),g=p.find(C=>C.id===I.id);return{...I,values:h,treeValues:g}}).concat(l)},getNextPendingId=e=>{const o=e.filter(r=>r.id&&r.id<0).map(r=>r.id);return o.length===0?-1:Math.min(...o)-1},Timeline=e=>{const{ooui:o}=e,{relation:r,context:a,views:s}=o,[c,l]=React.useState(!0),[d,u]=React.useState(),[f,p]=React.useState(new Map),m=React.useContext(FormContext$1),{getContext:I}=m||{};useDeepCompareEffect__default.default(()=>{g()},[o]);const h=async C=>s&&s[C]?s[C]:await ConnectionProvider.getHandler().getView({model:r,type:C,context:{...I==null?void 0:I(),...a}}),g=async()=>{l(!0),u(void 0);try{const C=await h("form"),b=await h("tree");f.set("form",C),f.set("tree",b),p(f)}catch(C){u(C)}finally{l(!1)}};return c?jsxRuntime.jsx(antd.Spin,{}):d?jsxRuntime.jsx(antd.Alert,{className:"mt-10",message:d,type:"error",banner:!0}):jsxRuntime.jsx(Field$1,{type:"array",...e,children:jsxRuntime.jsx(TimelineInput,{ooui:o,views:f})})},TimelineInput=e=>{const{value:o,views:r,ooui:a,onChange:s}=e,{items:c=[]}=o||{},[l,d]=React.useState(!1),[u,f]=React.useState(),[p,m]=React.useState(!1),[I,h]=React.useState(),{relation:g,context:C,readOnly:b,summaryField:y,titleField:v}=a,O=c.filter(E=>E.values),w=React.useContext(FormContext$1),{getContext:_}=w||{};useDeepCompareEffect__default.default(()=>{L()},[c]);const F=E=>{s==null||s({items:E})};async function L(){d(!0),f(void 0);try{const E=await readObjectValues({treeFields:r.get("tree").fields,formFields:r.get("form").fields,model:g,items:c,context:{..._==null?void 0:_(),...C}});F(E)}catch(E){f(E)}finally{d(!1)}}return u?jsxRuntime.jsx(antd.Alert,{className:"mt-10",message:u,type:"error",banner:!0}):l?jsxRuntime.jsx(antd.Spin,{}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(antd.Timeline,{style:{padding:"1rem"},children:O.map((E,P)=>{var A,W;return jsxRuntime.jsx("div",{children:jsxRuntime.jsxs(antd.Timeline.Item,{children:[jsxRuntime.jsx("div",{style:{display:"inline-block",cursor:"pointer"},onClick:()=>{h(O.find(J=>E.id===J.id)),m(!0)},children:jsxRuntime.jsx("strong",{children:(A=E.values)==null?void 0:A[v]})}),jsxRuntime.jsx("br",{}),jsxRuntime.jsx("div",{style:{display:"inline-block",cursor:"pointer"},onClick:()=>{h(O.find(J=>E.id===J.id)),m(!0)},children:(W=E.values)==null?void 0:W[y]})]},P)},P)})}),jsxRuntime.jsx(FormModal,{formView:r.get("form"),model:g,id:I==null?void 0:I.id,values:I==null?void 0:I.values,defaultValues:I==null?void 0:I.defaultValues,visible:p,onSubmitSucceed:()=>{m(!1)},parentContext:{..._==null?void 0:_(),...C},onCancel:()=>{m(!1)},readOnly:b,postSaveAction:L})]})},Indicator=e=>{const{ooui:o}=e;return jsxRuntime.jsx(Field$1,{ooui:o,children:jsxRuntime.jsx(IndicatorInput,{ooui:o})})},IndicatorInput=e=>{const{ooui:o,value:r}=e,a=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("span",{children:[o.label," "]}),o.tooltip&&jsxRuntime.jsx(antd.Tooltip,{title:o.tooltip,children:jsxRuntime.jsx(Icon.QuestionCircleOutlined,{className:"pr-1 text-xs text-blue-400"})})]}),s=iconMapper(o.icon);let c=r;o.selectionValues.size?c=o.selectionValues.get(r):Array.isArray(r)&&(c=r[1]);const l=jsxRuntime.jsx(antd.Statistic,{title:a,prefix:s&&jsxRuntime.jsx(s,{}),suffix:o.suffix,value:c});return o.card?jsxRuntime.jsx(antd.Card,{children:l}):l},filteredValues=(e,o)=>{if(!o)return e;const r={};return Object.keys(e).forEach(a=>{if(o[a]===void 0)r[a]=e[a];else if(!(e[a]===!1&&o[a].type!=="boolean"))if(o[a].type==="boolean"){const s=e[a];s===0?r[a]=!1:s===1?r[a]=!0:r[a]=e[a]}else r[a]=e[a]}),r},processValues=(e,o)=>filteredValues(e,o),getTouchedValues=({source:e,target:o,fields:r})=>{const a={};return Object.keys(o).forEach(s=>{var l,d;if(r[s]?r[s].type==="one2many"||r[s].type==="many2many":!1){const u=JSON.stringify(e[s]),f=JSON.stringify(o[s]);if(u===f)return;(((d=(l=o[s])==null?void 0:l.items)==null?void 0:d.filter(m=>m.operation!=="original"))||[]).length>0&&(a[s]=o[s])}else if(Array.isArray(o[s]))if(e[s]===void 0)a[s]=o[s];else if(r[s].type==="many2one")if(Array.isArray(e[s])){const u=JSON.stringify(e[s]),f=JSON.stringify(o[s]);u!==f&&(a[s]=o[s])}else{const u=e[s],[f]=o[s];u!==f&&(a[s]=o[s])}else{const u=JSON.stringify(e[s]),f=JSON.stringify(o[s]);u!==f&&(a[s]=o[s])}else e[s]!==o[s]&&(o[s]===void 0?a[s]=null:a[s]=o[s])}),a},checkFieldsType=({changedFields:e,fields:o,types:r})=>e.map(s=>{var c;return r.includes((c=o[s])==null?void 0:c.type)}).some(s=>s===!0),mergeFieldsDomain=({fieldsDomain:e,fields:o})=>{const r={};return Object.keys(o).forEach(a=>{r[a]=o[a],e[a]&&(r[a].domain=e[a])}),r},getValuesForDomain=e=>{const o={};return!e||!Array.isArray(e)||(e==null?void 0:e.length)===0?{}:(e.forEach(r=>{(r==null?void 0:r[1])==="="&&(o[r[0]]=r[2])}),o)},getOnChangePayload=({onChangeFieldActionArgs:e,values:o})=>{const r={};return e.forEach(a=>{o[a]?r[a]=o[a]:a[0]==="'"?r[a]=a.replace(/'/g,""):r[a]=!1}),r},mergeSearchFields=e=>{const o={primary:[],secondary:[]};return e.forEach(r=>{!r||(o.primary=o.primary.concat(r.primary),o.secondary=o.secondary.concat(r.secondary))}),{primary:o.primary.filter(onlyUnique),secondary:o.secondary.filter(onlyUnique)}};function onlyUnique(e,o,r){return r.indexOf(e)===o}const transformPlainMany2Ones=({values:e,fields:o})=>{let r={};return Object.keys(e).forEach(a=>{const s=e[a];o[a]&&o[a].type==="many2one"&&s&&Array.isArray(s)&&s.length===2?r[a]=s[0]:r[a]=s}),r},colorFromString=e=>{let o=0;for(let s=0;s<e.length;s++)o=e.charCodeAt(s)+((o<<5)-o);let r="#";for(let s=0;s<3;s++){var a=o>>s*8&255;r+=("00"+a.toString(16)).slice(-2)}return r},Tags=e=>{const{ooui:o}=e;return jsxRuntime.jsx(Field$1,{type:"array",...e,children:jsxRuntime.jsx(TagsInput,{ooui:o})})},TagsInput=e=>{const{value:o,ooui:r,onChange:a}=e,{items:s=[]}=o||{},c=s.filter(F=>F.operation!=="pendingRemove").map(F=>F.id),[l,d]=React.useState([]),[u,f]=React.useState(),[p,m]=React.useState(!1),{relation:I,context:h,readOnly:g,field:C}=r,b=React.useContext(FormContext$1),{getContext:y}=b||{};useDeepCompareEffect__default.default(()=>{O()},[s]);const v=F=>{a==null||a({items:F})};async function O(){m(!0);let F=[];try{if(g&&(F=[["id","in",c]]),r.domain){const P=await ConnectionProvider.getHandler().evalDomain({domain:r.domain,values:transformPlainMany2Ones({fields:b==null?void 0:b.getFields(),values:b.getPlainValues()}),context:b.getContext()});F=[...F,...P]}const E=(await ConnectionProvider.getHandler().search({model:I,params:F,fields:[C],context:{...y==null?void 0:y(),...h}})).map(P=>{const A=P[C];let W=A;return Array.isArray(A)&&(W=A[1]),{label:W,value:P.id}});d(E)}catch(L){f(L)}finally{m(!1)}}const w=F=>{const L=s.map(P=>F.includes(P.id)?P.operation=="pendingRemove"?{...P,operation:"pendingLink"}:P:{id:P.id,operation:"pendingRemove"}),E=L.map(P=>P.id);F.filter(P=>!E.includes(P)).map(P=>{L.push({id:P,operation:"pendingLink"})}),v(L)},_=F=>{const{label:L,closable:E,onClose:P}=F,A=W=>{W.preventDefault(),W.stopPropagation()};return jsxRuntime.jsx(antd.Tag,{color:colorFromString(L),onMouseDown:A,style:{margin:"5px"},closable:E,onClose:P,children:L})};return u?jsxRuntime.jsx(antd.Alert,{className:"mt-10",message:u,type:"error",banner:!0}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:jsxRuntime.jsx("div",{className:"flex flex-row",children:jsxRuntime.jsx(antd.Select,{mode:"multiple",value:l.length?c:[],tagRender:_,bordered:!g,disabled:g,options:l,onChange:w,loading:p})})})},getWidgetType=e=>{switch(e){case"form":return Form$1;case"tree":return Tree;case"notebook":return Notebook;case"group":return Group;case"label":return Label;case"char":return Char;case"text":return Text$2;case"button":return Button;case"buttonGroup":return ButtonGroup;case"selection":return Selection;case"many2one":return Many2one;case"boolean":return Boolean$1;case"integer":return Integer;case"float":return Float;case"progressbar":return ProgressBar;case"date":return Date$1;case"datetime":return DateTime;case"one2many":case"one2many_list":case"many2many":return One2many;case"separator":return Separator;case"reference":return Reference;case"binary":return Binary;case"image":return Image;case"url":return Url;case"email":return Email;case"float_time":return FloatTime;case"fiber_grid":return FiberGrid;case"timeline":return Timeline;case"indicator":return Indicator;case"tags":return Tags;case"multicheckbox":return MultiCheckbox;case"radio":return Radio;case"switch":return Switch;case"steps":return Steps;case"codeeditor":return CodeEditor;default:return}},createReactWidget=e=>{const{ooui:o}=e,{type:r}=o,a=getWidgetType(r);return a?React__default.default.createElement(a,e):null},getSpanStyleForItem=({item:e,responsiveBehaviour:o})=>({gridColumnStart:"span "+(o?1:e.colspan)}),fillRowWithEmptiesToFit=({row:e,mustFillWithEmpties:o,numberOfColumns:r})=>{const a=[];let s=0;const c=l=>l+1===e.length&&s<r&&!o;return e.map((l,d)=>{if(s+=l.colspan,c(d)){const u=r-s;l.colspan=l.colspan+u,s+=u}if(a.push(l),c(d)){const u=r-s;for(let f=0;f<u;f+=1)a.push(new ooui.Label({string:""}))}}),a},expandWidgetsIfNeeded=({row:e,numberOfColumns:o})=>e.map(r=>(r._mustExpand&&(r.colspan=o),r)),getSingleRowTemplateColumns=(e,o)=>{const r=e.map(a=>a instanceof ooui.Label&&a.fieldForLabel||a instanceof ooui.Container?"auto":"1fr");if(r.length<o){const a=o-r.length;for(let s=0;s<a;s++)r.push("1fr")}return r.join(" ")},getTemplateColumns=(e,o)=>{const r=o?"1fr":"auto",a="auto";let s="";for(let c=0;c<e;c++)s+=c%2?r:a,c+1<e&&(s+=" ");return s},getMaxColspanForRows=e=>e.map(r=>r.reduce((a,s)=>a+s.colspan,0)).reduce((r,a)=>Math.max(r,a)),Container=e=>{const{container:o,responsiveBehaviour:r}=e,{rows:a}=o;let{columns:s}=o;const c=getMaxColspanForRows(a);c<s&&(s=c);let l=!1,d=[];const u=a.map((m,I)=>{const h=m.filter(b=>!b.invisible),g=expandWidgetsIfNeeded({row:h,numberOfColumns:s});let C=g;return(I===0||!(m.length===1&&m.some(b=>b.type==="group")))&&(C=fillRowWithEmptiesToFit({row:g,numberOfColumns:s,mustFillWithEmpties:r}),d=d.concat(C)),C.map(b=>(b instanceof ooui.Label&&b.fieldForLabel&&(l=!0),jsxRuntime.jsx("div",{style:{...getSpanStyleForItem({item:b,responsiveBehaviour:r}),minWidth:0},children:createReactWidget({ooui:b,responsiveBehaviour:r})},b.key)))}),f=a.length===1?getSingleRowTemplateColumns(d,s):getTemplateColumns(s,l),p={display:"grid",gridTemplateColumns:r?"auto":f,gap:"1rem",minHeight:0,minWidth:0};return jsxRuntime.jsx("div",{style:p,children:u})},{confirm:confirm$3}=antd.Modal,showDialog$6=({onOk:e,onCancel:o,lang:r})=>{confirm$3({title:tForLang("unsavedChanges",r),icon:jsxRuntime.jsx(Icon.ExclamationCircleOutlined,{}),centered:!0,content:tForLang("confirmCloseWithoutSave",r),okText:tForLang("closeWithoutSaving",r),onOk:e,onCancel:o,cancelText:tForLang("cancel",r)})},{error:error$1}=antd.Modal,showDialog$5=e=>{error$1({title:tForLang("formHasErrors",e),icon:jsxRuntime.jsx(Icon.ExclamationCircleOutlined,{}),centered:!0,content:tForLang("fillRequiredFields",e)})},{warning}=antd.Modal,showDialog$4=(e,o,r)=>{warning({title:e,icon:jsxRuntime.jsx(Icon.WarningOutlined,{}),centered:!0,content:o,onOk:r})},FormModalContext=React__default.default.createContext(null),FormModalProvider=e=>{const{children:o,setTitle:r}=e;return jsxRuntime.jsx(FormModalContext.Provider,{value:{setTitle:r},children:o})},convertBooleanParamIfNeeded=e=>typeof e=="string"&&e==="true"||e==="false"?e==="true":e,getParamsForFields=(e,o)=>{const r=removeUndefinedFields(e),a=groupDateTimeValuesIfNeeded(r),s=ungroupDateValuesIfNeeded(a,o);return[...Object.keys(s).map(d=>getParamForField(d,s[d],o))].reduce((d,u)=>Array.isArray(u[0])?d.concat(u):[...d,u],[])},getParamForField=(e,o,r)=>{const a=e.split("#")[0],s=r[a].type;if(s==="char"||s==="text"||s==="many2one"||s==="many2many"||s==="one2many")return[e,"ilike",o];if(s==="float"||s==="integer"||s==="float_time"||s==="progressbar"){const c=e.indexOf("#from")!==-1?">=":"<=";return[a,c,o]}else if(s==="date"){const c=e.indexOf("#from")!==-1?">=":"<=";return[a,c,o.format("YYYY-MM-DD")]}else if(s==="datetime"){const c=[];return o[0]&&c.push([a,">=",o[0]]),o[1]&&c.push([a,"<=",o[1]]),c}else return s==="selection"?[e,"in",o.map(c=>convertBooleanParamIfNeeded(c))]:[e,"=",convertBooleanParamIfNeeded(o)]},getDatetimeDateFields=e=>Object.keys(e).filter(o=>o.indexOf("#date")!==-1),removeDateTimeSingleFields=e=>{const o={...e};return Object.keys(o).forEach(r=>(r.indexOf("#time")!==-1||r.indexOf("#date")!==-1)&&delete o[r]),o},groupDateTimeValuesIfNeeded=e=>{const o={...removeDateTimeSingleFields(e)};return getDatetimeDateFields(e).forEach(a=>{const s=e[a],c=a.split("#")[0],l=c+"#time",d=e[l];let u,f;if(s[0]!==null&&(u=s[0].format("YYYY-MM-DD"),d&&d[0]!==null)){const m=d[0].format("HH:mm:ss");u=u+" "+m}if(s[1]!==null&&(f=s[1].format("YYYY-MM-DD"),d&&d[1]!==null)){const m=d[1].format("HH:mm:ss");f=f+" "+m}o[c+"#datetime"]=[u,f]}),o},ungroupDateValuesIfNeeded=(e,o)=>{const r=Object.keys(e).filter(s=>o[s]&&o[s].type==="date");let a={...e};return r.forEach(s=>{delete a[s],e[s][0]!==null&&(a[s+"#from"]=e[s][0]),e[s][1]!==null&&(a[s+"#to"]=e[s][1])}),a},removeUndefinedFields=e=>{const o={...e};return Object.keys(o).forEach(r=>(o[r]===void 0||o[r]===null||o[r]==="")&&delete o[r]),o},getUniqueFieldsForParams=e=>{const o={};return e.forEach(r=>{Array.isArray(r)&&r[0]?o[r[0]]=!0:o[r]=!0}),Object.keys(o)},mergeParams=(e,o)=>{const r=[...e],a=getUniqueFieldsForParams(e);return o.forEach(s=>{Array.isArray(s)&&s[0]?a.includes(s[0])||r.push(s):a.includes(s)||r.push(s)}),r},getTree=e=>{const o=e.arch,r=e.fields,a=new ooui.Tree(r);return a.parse(o),a},getTableColumns=(e,o)=>e.columns.map(a=>{const s=a.type,c=a.id,l=o==null?void 0:o[s];let d;return l&&(d=u=>l(u)),{key:c,dataIndex:c,title:a.label,render:d,sorter:(u,f)=>{var I,h;let p=u[c]||"",m=f[c]||"";return s==="many2one"&&(p=((I=u[c])==null?void 0:I.value)||"",m=((h=f[c])==null?void 0:h.value)||""),p<m?-1:p>m?1:0}}}),getTableItems=(e,o)=>o.map(a=>{const s={};return Object.keys(a).map(c=>{if(c==="id")s[c]=a[c];else{const l=e.findById(c);if(l instanceof ooui.Selection){const d=l;s[c]=d.selectionValues.get(a[c])}else l instanceof ooui.Many2one?s[c]=a[c]&&Array.isArray(a[c])&&a[c].length===2&&{model:l.relation,id:a[c][0],value:a[c][1]}:l instanceof ooui.Boolean?s[c]=a[c]:l?s[c]=a[c]===!1?"":a[c]:s[c]=a[c]}}),s});function getColorMap(e){if(!e)return;const o={};return e.forEach(r=>{o[r.id]=r.colors}),o}function sortResults({resultsToSort:e,sorter:o,fields:r}){if(!o)return e;const{id:a,desc:s}=o,c=s===!1?"ascend":"descend",l=r[a].type,d=(u,f)=>{var I,h;let p=u[a]||"",m=f[a]||"";return l==="many2one"&&(p=((I=u[a])==null?void 0:I[1])||"",m=((h=f[a])==null?void 0:h[1])||""),p===m?0:c==="ascend"?p>m?1:-1:p<m?1:-1};return e.sort(d)}const DEFAULT_SEARCH_LIMIT$1=80,useSearch=e=>{const{model:o,setSearchTreeNameSearch:r,setSelectedRowItems:a,setSearchParams:s,setSearchVisible:c,setTreeIsLoading:l,nameSearch:d,searchNameGetDoneRef:u,context:f,setActionViewTotalItems:p,treeView:m,formView:I,sorter:h,setSorter:g,setCurrentItemIndex:C,setResultsActionView:b,resultsActionView:y,domain:v,currentId:O,limit:w,setLimit:_,searchParams:F=[],setSearchValues:L}=e,[E,P]=React.useState(!1),[A,W]=React.useState(!1),[J,z]=React.useState(),[Y,Q]=React.useState(1),[oe,ee]=React.useState(0),[X,ue]=React.useState(),[Re,xe]=React.useState([]),[ce,Ce]=React.useState(void 0),te=React.useRef(w||DEFAULT_SEARCH_LIMIT$1),de=React.useRef([]),N=React.useCallback(Ne=>{b==null||b([...Ne]),xe([...Ne])},[]),U=React.useCallback(()=>y||Re,[y,Re]),re=React.useCallback(async()=>{const Ne=await ConnectionProvider.getHandler().nameSearch({model:o,payload:d,limit:te.current,attrs:v,context:f});if(ue(Ne.length),p==null||p(Ne.length),Ne.length>0){const Ge=Ne.map(Ct=>Ct==null?void 0:Ct[0]),{colors:yt}=getTree(m),Tt=await ConnectionProvider.getHandler().readEvalUiObjects({model:o,ids:Ge,arch:m==null?void 0:m.arch,fields:m.field_parent?{...m.fields,[m.field_parent]:{}}:m.fields,context:f,attrs:yt&&{colors:yt}}),Ot=Tt[0];de.current=[...Ot],Ce(getColorMap(Tt[1]));const $t=Ot.map(Ct=>Ct.id),Vt=h!==void 0?sortResults({resultsToSort:Ot,sorter:h,fields:{...m.fields,...I.fields}}):[...de.current];N(Vt),$t.length>0?C==null||C(0):C==null||C(void 0)}else N([]),C==null||C(void 0);u.current=!0},[N,u,d,o,f,v,m,I,h,C,p]),Te=React.useCallback(async Ne=>{const{params:Ge,newOffset:yt}=Ne||{},Tt=mergeParams(Ge||F,v),{colors:Ot}=getTree(m),{totalItems:$t,results:Vt,attrsEvaluated:Ct}=await ConnectionProvider.getHandler().searchForTree({params:Tt,limit:te.current,offset:yt||oe,model:o,fields:m.field_parent?{...m.fields,[m.field_parent]:{}}:m.fields,context:f,attrs:Ot&&{colors:Ot}});Ce(getColorMap(Ct)),de.current=[...Vt];const Dt=h!==void 0?sortResults({resultsToSort:Vt,sorter:h,fields:{...m.fields,...I.fields}}):[...de.current];if(N(Dt),y&&Dt.length>0){const Ut=Dt.findIndex(Qt=>O===Qt.id);Ut===-1?C==null||C(0):C==null||C(Ut)}else C==null||C(void 0);const zt=await $t;ue(zt),p==null||p(zt)},[C,y,N,O,o,f,v,m,I,h,p,w,oe,F]),Fe=React.useCallback(async Ne=>{try{P(!0),l==null||l(!0),d&&!u.current?await re():await Te(Ne)}catch(Ge){z(Ge.message)}finally{P(!1),W(!1),l==null||l(!1)}},[f,O,v,I,w,o,d,oe,y,u,p,C,N,z,W,P,l,h,m]),M=React.useCallback(Ne=>{g==null||g(Ne);const Ge=Ne!==void 0?sortResults({resultsToSort:U(),sorter:Ne,fields:{...m.fields,...I.fields}}):[...de.current];N(Ge)},[g,U,m,I,N]),j=React.useCallback(Ne=>{const{params:Ge,searchValues:yt,limit:Tt,offset:Ot}=Ne;E||(r==null||r(void 0),a==null||a([]),L==null||L(yt),s==null||s(Ge),c==null||c(!1),W(!0),z(void 0),Q(1),Tt&&(te.current=Tt,_==null||_(Tt)),Ot&&ee(Ot),Fe({params:Ge,newOffset:Ot}))},[E,r,a,s,c,W,z,Q,_,ee,Fe]),we=React.useCallback(Ne=>{P(!0),Q(Ne),ee((Ne-1)*w)},[P,w,ee,Q]),je=React.useCallback(()=>{E||(r==null||r(void 0),s==null||s([]),L==null||L({}),z(void 0),ee(0),Q(1),_==null||_(w||DEFAULT_SEARCH_LIMIT$1))},[E,r,s,z,ee,Q,_,w]),tt=React.useCallback(async Ne=>{const Ge=Ne[(m==null?void 0:m.field_parent)||"child_id"],yt=await ConnectionProvider.getHandler().readObjects({model:o,ids:Ge,fields:m.field_parent?{...m.fields,[m.field_parent]:{}}:m.fields,context:f});return N([...U(),...yt]),getTableItems(getTree(m),yt)},[m,o,f,U,N]);return{submit:j,clear:je,fetchResults:Fe,tableRefreshing:E,searchFilterLoading:A,searchError:J,page:Y,offset:oe,limit:w,getResults:U,requestPageChange:we,changeSort:M,fetchChildrenForRecord:tt,colorsForResults:ce,totalItems:X}},ActionViewContext=React__default.default.createContext(null),ActionViewProvider=e=>{const{children:o,currentView:r,title:a,setCurrentView:s,availableViews:c,formRef:l,searchTreeRef:d,onNewClicked:u,currentId:f,setCurrentId:p,setResults:m,results:I,currentItemIndex:h,setCurrentItemIndex:g,currentModel:C,sorter:b,setSorter:y,totalItems:v,setTotalItems:O,setSelectedRowItems:w,selectedRowItems:_,searchTreeNameSearch:F,setSearchTreeNameSearch:L,goToResourceId:E,limit:P}=e,[A,W]=React.useState(!1),[J,z]=React.useState(!1),[Y,Q]=React.useState(!1),[oe,ee]=React.useState(!0),[X,ue]=React.useState(!0),[Re,xe]=React.useState([]),[ce,Ce]=React.useState(!1),[te,de]=React.useState([]),[N,U]=React.useState(!1),[re,Te]=React.useState(!0),[Fe,M]=React.useState(),[j,we]=React.useState({}),[je,tt]=React.useState(P!==void 0?P:DEFAULT_SEARCH_LIMIT$1);React.useEffect(()=>{I&&I.length>0&&!h&&(g==null||g(0),p==null||p(I[0].id))},[I]),React.useEffect(()=>{tt(P!==void 0?P:DEFAULT_SEARCH_LIMIT$1)},[P]),React.useEffect(()=>{c.length===1?M(c[0]):c.length>1&&M(c.filter(Ge=>Ge.view_id!==r.view_id)[0])},[c]),React.useEffect(()=>{(Fe==null?void 0:Fe.view_id)===r.view_id&&c.length>1&&M(c.filter(Ge=>Ge.view_id!==r.view_id)[0])},[r]);const Ne=()=>{var Ge;(Ge=l.current)==null||Ge.submitForm()};return jsxRuntime.jsx(ActionViewContext.Provider,{value:{title:a,currentView:r,setCurrentView:s,availableViews:c,formIsSaving:A,setFormIsSaving:W,formHasChanges:J,setFormHasChanges:z,formRef:l,searchTreeRef:d,onFormSave:Ne,onNewClicked:u,currentId:f,setCurrentId:p,currentItemIndex:h,setCurrentItemIndex:g,results:I,setResults:m,currentModel:C,removingItem:Y,setRemovingItem:Q,formIsLoading:oe,setFormIsLoading:ee,treeIsLoading:X,setTreeIsLoading:ue,attachments:Re,setAttachments:xe,selectedRowItems:_,setSelectedRowItems:w,duplicatingItem:ce,setDuplicatingItem:Ce,setSearchParams:de,searchParams:te,searchVisible:N,setSearchVisible:U,sorter:b,setSorter:y,totalItems:v,setTotalItems:O,searchTreeNameSearch:F,setSearchTreeNameSearch:L,setGraphIsLoading:Te,graphIsLoading:re,previousView:Fe,setPreviousView:M,goToResourceId:E,searchValues:j,setSearchValues:we,limit:je,setLimit:tt},children:o})},TabManagerContext=React__default.default.createContext(null),TabManagerProvider=e=>{const{children:o,openAction:r,openRelate:a,openDefaultActionForModel:s,openShortcut:c,activeKey:l,onChangeTab:d,onRemoveTab:u,tabs:f}=e,[p,m]=React.useState(),[I,h]=React.useState();return jsxRuntime.jsx(TabManagerContext.Provider,{value:{openAction:r,openRelate:a,openDefaultActionForModel:s,activeKey:l,openShortcut:c,onChangeTab:d,onRemoveTab:u,tabs:f,currentId:I,currentView:p,setCurrentId:h,setCurrentView:m},children:o})},ContentRootContext=React__default.default.createContext(null),ContentRootProvider=(e,o)=>{const{children:r,globalValues:a={}}=e,s=React.useRef(),c=React.useRef(),[l,d]=React.useState(!1),u=React.useContext(TabManagerContext),{openAction:f}=u||{},p=React.useRef(),{t:m}=React.useContext(LocaleContext);React.useImperativeHandle(o,()=>({openActionModal:w}));const[I,h]=React.useState(!1),[g,C]=React.useState({context:{}});async function b(L){const{reportData:E,fields:P,values:A,context:W={}}=L,{context:J,model:z,datas:Y={},report_name:Q,type:oe}=E;if(oe!=="ir.actions.report.xml"){showDialog$8(`${oe} action not supported`);return}const{ids:ee}=Y||{};let X=ee||[];const ue=typeof J=="string"?ooui.parseContext({context:J,fields:P,values:A}):J;try{const Re=await ConnectionProvider.getHandler().createReport({model:z,name:Q,datas:Y,ids:X,context:{...W,...ue}});d(!0),c.current=!0,s.current=setInterval(()=>{y(Re)},1e3)}catch(Re){c.current=!1,clearInterval(s.current),showDialog$8(Re),d(!1)}}async function y(L){let E;try{if(E=await ConnectionProvider.getHandler().getReport({id:L}),E.state&&c.current===!0){c.current=!1,clearInterval(s.current),d(!1);const P=await getMimeType(E.result);openBase64InNewTab(E.result,P.mime)}}catch(P){c.current=!1,clearInterval(s.current),d(!1),showDialog$8(P.exception||P)}}async function v({actionData:L,fields:E,values:P,context:A,onRefreshParentValues:W}){const{type:J}=L;return p.current=W,J==="ir.actions.report.xml"?await b({reportData:L,fields:E,values:P,context:A}):J==="ir.actions.act_window"?await O({actionData:L,fields:E,values:P,context:A}):(showDialog$8(`${J} action not supported`),{})}async function O({actionData:L,fields:E={},values:P={},context:A={}}){var Q;let W=L;L.res_model||(W=(await ConnectionProvider.getHandler().readObjects({model:"ir.actions.act_window",ids:[parseInt(L.id)],context:A}))[0]);const z={...typeof(W==null?void 0:W.context)=="string"?ooui.parseContext({context:W.context,fields:E,values:{...P,...a}}):W.context,...A};let Y=[];if(W.domain&&(Y=await ConnectionProvider.getHandler().evalDomain({domain:W.domain,values:transformPlainMany2Ones({fields:E,values:{...P,...a}}),context:z})),W.target==="new"){const oe=await ConnectionProvider.getHandler().getView({model:W.res_model,type:"form",id:((Q=W==null?void 0:W.view_id)==null?void 0:Q[0])||void 0,context:z});return w({domain:Y,model:W.res_model,formView:oe,context:z}),{}}else{let oe;const ee=W.view_mode.split(","),X=[];for(const ue of ee){const Re=await ConnectionProvider.getHandler().getView({model:W.res_model,type:ue,context:z});X.push([Re.view_id,ue])}if(W.view_id)oe={id:W.view_id,type:W.view_mode.split(",")[0]};else{const ue=W.view_mode.split(",")[0],[Re]=X.find(([xe,ce])=>ce===ue);oe={id:Re,type:ue}}return f==null||f({target:"current",context:z,domain:Y,model:W.res_model,views:X,title:W.name,initialView:oe,action_id:W.id,action_type:W.type}),{closeParent:!0}}}function w({domain:L,model:E,formView:P,context:A,actionData:W}){I?_({domain:L,model:E,formView:P,context:A,actionData:W}):(C({domain:L,model:E,context:A,formView:P,actionData:W}),h(!0))}async function _({domain:L,model:E,formView:P,context:A,actionData:W}){C({domain:void 0,model:void 0,context:{},formView:void 0,actionData:void 0}),h(!1),await new Promise(J=>setTimeout(J,300)),C({domain:L,model:E,context:A,formView:P,actionData:W}),h(!0)}async function F(){var L;(L=p.current)==null||L.call(p),h(!1),C({domain:void 0,model:void 0,context:{},formView:void 0,actionData:void 0})}return jsxRuntime.jsx(jsxRuntime.Fragment,{children:jsxRuntime.jsx(ContentRootContext.Provider,{value:{processAction:v,globalValues:a},children:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[r,jsxRuntime.jsx(antd.Modal,{title:m("generatingReport"),visible:l,footer:null,closable:!1,centered:!0,maskClosable:!1,children:jsxRuntime.jsx(antd.Spin,{})}),jsxRuntime.jsx(FormModal,{buttonModal:!0,parentContext:g.context,model:g.model,formView:g.formView,visible:I,onSubmitSucceed:F,onCancel:()=>{var L;(L=p.current)==null||L.call(p),h(!1),C({domain:void 0,model:void 0,context:{},formView:void 0,actionData:void 0})},showFooter:!1,actionDomain:g.domain,isMenuAction:(g==null?void 0:g.actionData)!==void 0,actionData:g==null?void 0:g.actionData})]})})})},ContentRootProvider$1=React.forwardRef(ContentRootProvider),WIDTH_BREAKPOINT=800;function Form(e,o){const{model:r,id:a,onCancel:s,onSubmitSucceed:c,showFooter:l=!1,getDataFromAction:d=!1,onFieldsChange:u,onSubmitError:f,readOnly:p=!1,mustClearAfterSave:m=!1,submitMode:I="api",values:h,formView:g,postSaveAction:C,insideButtonModal:b=!1,parentContext:y={},actionDomain:v,visible:O=!0,rootForm:w=!1,defaultValues:_,forcedValues:F={}}=e,{lang:L}=React.useContext(LocaleContext),[E,P]=React.useState(!1),[A,W]=React.useState(),[J,z]=React.useState(),[Y]=antd.Form.useForm(),[Q,oe]=React.useState(),[ee,X]=React.useState(),ue=React.useContext(FormModalContext),[Re,xe]=React.useState(),[ce,Ce]=React.useState(!1),te=React.useRef(),de=React.useRef({}),N=React.useRef({}),U=React.useRef(!1),re=React.useRef(!1),Te=Re<WIDTH_BREAKPOINT,Fe=React.useContext(FormContext$1),{activeId:M}=Fe||{},j=React.useContext(ActionViewContext),{setFormIsSaving:we=void 0,setFormHasChanges:je=void 0,setCurrentId:tt=void 0,setFormIsLoading:Ne=void 0,setAttachments:Ge=void 0}=(w?j:{})||{},yt=React.useContext(ContentRootContext),{processAction:Tt,globalValues:Ot}=yt||{};React.useImperativeHandle(o,()=>({submitForm:vn,getFields:zt,getValues:Ut,getPlainValues:Qt,getContext:fn,fetchValues:pn,cancelUnsavedChanges:un,clearAndReload:()=>{te.current=void 0,z(void 0),mn()}})),React.useEffect(()=>{if(W(void 0),!(!r&&!g)){if(!O){te.current=void 0,z(void 0);return}(a===void 0&&ee||a!==void 0&&ee&&a<0)&&(te.current=void 0,z(void 0)),mn()}},[a,r,h,g,O]),React.useEffect(()=>{ce&&(yn({elementHasLostFocus:!0}),Ce(!1))},[ce]);const $t=(gt,Qe,Mt)=>{je==null||je(!1),we==null||we(!1),c==null||c(gt,Qe,Mt),tt==null||tt(gt)},Vt=()=>{we==null||we(!1),s==null||s()},Ct=gt=>{we==null||we(!1),f==null||f(gt)};function Dt(){return a||te.current}function zt(){return ee}function Ut(){const gt={...Wt(ee),...nn()};for(const Qe in gt)gt[Qe]===void 0&&delete gt[Qe];return gt}function Qt(){const gt=Ut(),Qe=zt();let Mt={};return Object.keys(gt).forEach(Lt=>{const Kt=gt[Lt];Qe[Lt]&&Qe[Lt].type==="many2one"&&Kt&&Array.isArray(Kt)&&Kt.length===2?Mt[Lt]=Kt[0]:Qe[Lt]&&(Qe[Lt].type==="one2many"||Qe[Lt].type==="many2many")&&Kt&&Kt.items?Mt[Lt]=Kt.items.filter(In=>In.operation!=="pendingRemove").map(In=>In.id):Mt[Lt]=Kt}),Mt}function Gt(){const gt={...Wt(ee)};for(const Qe in gt)gt[Qe]===void 0&&delete gt[Qe];return gt}function fn(){return{...y,...J==null?void 0:J.context}}function nn(){return{id:Dt(),active_id:Dt(),active_ids:[Dt()],parent_id:M,...Ot}}const _t=async gt=>{const Qe=Dt()?J==null?void 0:J.context:{};return await ConnectionProvider.getHandler().defaultGet({model:r,fields:gt,context:{...y,...Qe},extraValues:_})},Ft=()=>Object.keys(getTouchedValues({source:de.current,target:Wt(ee),fields:ee})).length!==0,Wt=gt=>{const Qe=Y.getFieldsValue(!0);return processValues(Qe,gt)},Yt=(gt,Qe)=>{gn({values:{...processValues(Y.getFieldsValue(!0),ee),[gt]:Qe},fields:ee,reset:!1})},en=gt=>Y.getFieldsValue(!0)[gt];async function rn(){try{return await Y.validateFields(),!1}catch{return!0}}const mn=async()=>{W(void 0),Ne==null||Ne(!0);let gt;try{g?gt={arch:g.arch,fields:g.fields}:gt=await hn();const{fields:Qe,arch:Mt}=gt;X(Qe),oe(Mt),await pn({fields:Qe,arch:Mt})}catch(Qe){W(Qe!=null&&Qe.message?Qe.message+Qe.stack:Qe),Ne==null||Ne(!1)}},pn=async gt=>{let Qe,Mt,Lt,Kt;Ne==null||Ne(!0),W(void 0),gt?(Mt=gt.fields,Lt=gt.arch):(Mt=ee,Lt=Q),h?Qe=h:{values:Qe,defaultGetCalled:Kt}=await bn({fields:Mt,arch:Lt}),v&&(Qe={...getValuesForDomain(v),...Qe}),de.current=processValues(Qe,Mt),gn({values:Qe,fields:Mt,reset:!0,isDefaultGet:Kt}),xn({fields:Mt,arch:Lt,values:Qe}),Ne==null||Ne(!1),je==null||je(!1),Kt&&Ce(!0)};function tn(gt,Qe){de.current[gt]=Qe,je==null||je(Ft())}const un=async()=>new Promise(async gt=>{Ft()?showDialog$6({lang:L,onOk:()=>{Vt==null||Vt(),gt(!0)},onCancel:()=>{gt(!1)}}):(Vt==null||Vt(),gt(!0))}),hn=async()=>{if(d){const gt=await ConnectionProvider.getHandler().getActionStringForModel(r);return(await ConnectionProvider.getHandler().getViewsForAction({action:gt,context:y})).views.get("form")}return await ConnectionProvider.getHandler().getView({model:r,type:"form",context:y})},gn=({values:gt,fields:Qe,reset:Mt,isDefaultGet:Lt=!1})=>{const In={...Mt?{}:Y.getFieldsValue(!0),...gt},Cn=processValues(In,Qe),Bn=Object.keys(Qe).map(Rn=>{const Ln=Cn[Rn]!==void 0?Cn[Rn]:void 0;return{name:Rn,touched:!1,value:Ln}});Lt||(N.current=Cn),Y.setFields(Bn)},bn=async({fields:gt,arch:Qe})=>{let Mt={},Lt=!1;if(Dt()){Mt=(await ConnectionProvider.getHandler().readObjects({model:r,ids:[Dt()],fields:gt,context:y}))[0];const Kt=await ConnectionProvider.getHandler().search({params:[["res_model","=",r],["res_id","=",Dt()]],fields:["id","name"],context:fn(),model:"ir.attachment"});Ge==null||Ge(Kt)}else Ge==null||Ge([]),Mt=await _t(gt),Lt=!0;return{values:Mt,defaultGetCalled:Lt}},wn=async gt=>{const{callOnSubmitSucceed:Qe=!0}=gt||{};if(Dt()){const Mt=getTouchedValues({source:de.current,target:Wt(ee),fields:ee});await ConnectionProvider.getHandler().update({model:r,id:Dt(),values:{...Mt,...F},fields:ee,context:{...y,...J==null?void 0:J.context}}),de.current=Wt(ee)}else{const Mt=Wt(ee),Lt=await ConnectionProvider.getHandler().create({model:r,values:{...Mt,...F},fields:ee,context:{...y,...J==null?void 0:J.context}});te.current=Lt,de.current=Mt}C&&await C([Dt()]),!b&&Qe&&($t==null||$t(Dt(),Ut(),Gt()))},Sn=async gt=>{const{callOnSubmitSucceed:Qe=!0}=gt||{};!b&&Qe&&($t==null||$t(Dt(),Ut(),Gt()))},vn=async gt=>{let Qe=!1;const{callOnSubmitSucceed:Mt=!0}=gt||{};if(re.current=!0,W(void 0),!Ft()&&Dt()&&Mt)return re.current=!1,je==null||je(!1),Vt==null||Vt(),!0;if(await rn())return re.current=!1,showDialog$5(L),!1;P(!0),we==null||we(!0);try{I==="api"?await wn(gt):await Sn(gt),m&&(te.current=void 0,gn({values:{},fields:ee,reset:!0})),await pn(),Qe=!0}catch(Lt){re.current=!1,P(!1),we==null||we(!1),Ct==null||Ct(Lt),W(Lt!=null&&Lt.message?Lt.message:Lt)}finally{re.current=!1,we==null||we(!1),P(!1)}return Qe},xn=({fields:gt,arch:Qe,values:Mt})=>{var Kt;const Lt=new ooui.Form(gt);Lt.parse(Qe,{readOnly:p,values:{...Mt,...nn()}}),z(Lt),ue&&Lt.string&&((Kt=ue.setTitle)==null||Kt.call(ue,Lt.string))},yn=async({elementHasLostFocus:gt=!1})=>{if(re.current)return;const Qe=getTouchedValues({source:N.current,target:Wt(ee),fields:ee}),Mt=Object.keys(Qe);if(Mt.length!==0){if(checkFieldsType({changedFields:Mt,fields:ee,types:["text","codeeditor","email","url","char","float","float_time","integer","many2one"]})&>!==!0)return;{const Lt=processValues(Y.getFieldsValue(!0),ee);N.current=Lt,u==null||u(Lt),je==null||je(!0),Tn(Mt)}}},_n=debounce_1(yn,100),Tn=async gt=>{try{for(let Qe=0;Qe<gt.length;Qe+=1){const Mt=gt[Qe];await En(Mt)}}catch(Qe){showDialog$8(Qe)}},En=async gt=>{const Qe=J==null?void 0:J.onChangeFields[gt];if(!Qe){xn({fields:ee,arch:Q,values:Wt(ee)});return}const Mt=getOnChangePayload({values:{...Wt(ee),context:{...y,...J==null?void 0:J.context}},onChangeFieldActionArgs:Qe.args}),Lt=await ConnectionProvider.getHandler().executeOnChange({model:r,action:Qe.method,ids:Dt()?[Dt()]:[],payload:Mt,fields:ee});if(Lt.value){const Kt={...Wt(ee),...Lt.value};xn({fields:ee,arch:Q,values:Kt}),gn({values:Kt,fields:ee,reset:!1})}if(Lt.warning&&Lt.warning.title&&Lt.warning.message&&!U.current){const{title:Kt,message:In}=Lt.warning;U.current=!0,showDialog$4(Kt,In,()=>{U.current=!1})}if(Lt.domain&&Object.keys(Lt.domain).length>0){const Kt=mergeFieldsDomain({fieldsDomain:Lt.domain,fields:ee});xn({fields:Kt,arch:Q,values:Wt(Kt)}),X(Kt)}};async function Fn({action:gt,context:Qe}){const Mt=await ConnectionProvider.getHandler().execute({model:r,action:gt,payload:[Dt()],context:{...Qe,...J==null?void 0:J.context,...y}});if(typeof Mt=="object"&&Mt!==null&&Object.keys(Mt).length===0&&b)$t==null||$t(Dt(),Ut(),Gt());else if(Mt.type&&Mt.type==="ir.actions.act_window_close")$t==null||$t(Dt(),Ut(),Gt());else if(Mt.type){let Lt={};Mt.context&&(Lt=ooui.parseContext({context:Mt.context,fields:ee,values:Ut()})),await On({actionData:Mt,context:{...Qe,...Lt}})}else await pn()}async function An({action:gt}){const Qe=await ConnectionProvider.getHandler().executeWorkflow({model:r,action:gt,payload:Dt()});Qe.type&&Qe.type==="ir.actions.act_window_close"?$t==null||$t(Dt(),Ut(),Gt()):await pn()}async function Pn({action:gt,context:Qe}){const Mt=(await ConnectionProvider.getHandler().readObjects({model:"ir.actions.actions",ids:[parseInt(gt)],context:y}))[0];await On({actionData:Mt,context:Qe})}async function On({actionData:gt,context:Qe}){const{closeParent:Mt}=await(Tt==null?void 0:Tt({actionData:gt,fields:ee,values:Ut(),context:{...y,...J==null?void 0:J.context,...Qe},onRefreshParentValues:()=>{pn()}}))||{};!w&&Mt&&($t==null||$t(Dt(),Ut(),Gt()))}function kn(){yn({elementHasLostFocus:!0})}async function jn({type:gt,action:Qe,context:Mt}){if(gt==="cancel"){Vt==null||Vt();return}if(await rn()){showDialog$5(L);return}try{await vn({callOnSubmitSucceed:!1}),gt==="object"?await Fn({action:Qe,context:Mt}):gt==="workflow"?await An({action:Qe}):gt==="action"&&await Pn({action:Qe,context:Mt})}catch(Lt){showDialog$8(Lt)}}const Mn=()=>!J&&!A?jsxRuntime.jsx(antd.Spin,{}):!r&&!g||!O?null:jsxRuntime.jsx(jsxRuntime.Fragment,{children:jsxRuntime.jsx(FormProvider$1,{getValues:Ut,getPlainValues:Qt,getFields:zt,domain:v,activeId:a,activeModel:r,setFieldValue:Yt,getFieldValue:en,executeButtonAction:jn,getContext:fn,setOriginalValue:tn,submitForm:vn,fetchValues:pn,formHasChanges:Ft,elementHasLostFocus:kn,children:jsxRuntime.jsx(antd.Form,{form:Y,onFieldsChange:()=>{_n({elementHasLostFocus:!1})},component:!1,children:J&&jsxRuntime.jsx(Container,{container:J.container,responsiveBehaviour:Te})})})}),Dn=()=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(antd.Divider,{}),jsxRuntime.jsx(antd.Row,{justify:"end",children:jsxRuntime.jsxs(antd.Space,{children:[jsxRuntime.jsx(antd.Button,{icon:jsxRuntime.jsx(Icon.CloseOutlined,{}),disabled:E,onClick:async()=>{await un()},children:"Cancel"}),jsxRuntime.jsx(antd.Button,{disabled:E||p,loading:E,icon:jsxRuntime.jsx(Icon.CheckOutlined,{}),onClick:async()=>{await vn()},type:"primary",children:"OK"})]})})]});return O?jsxRuntime.jsx(Measure__default.default,{bounds:!0,onResize:gt=>{var Qe;xe((Qe=gt.bounds)==null?void 0:Qe.width)},children:({measureRef:gt})=>jsxRuntime.jsxs("div",{className:"pb-2",ref:gt,children:[A&&jsxRuntime.jsx(antd.Alert,{className:"mt-10 mb-20",message:JSON.stringify(A),type:"error",banner:!0}),Mn(),l&&Dn()]})}):null}const Form$1=React.forwardRef(Form),FormModal=e=>{const{visible:o,id:r,title:a,buttonModal:s=!1,onCancel:c,isMenuAction:l=!1,actionData:d,...u}=e,{modalWidth:f}=useWindowDimensions(),[p,m]=React.useState(a),[I,h]=React.useState(!1),[g,C]=React.useState();React.useEffect(()=>{l&&b()},[d,l]);async function b(){const{action_id:O,res_id:w,action_type:_,view_id:F}=d,L=await ConnectionProvider.getHandler().isShortcutFavorite({action_id:O,action_type:_,view_id:F,res_id:w||!1});h(L!==!1),L!==!1&&C(L)}async function y(){if(I&&g)await ConnectionProvider.getHandler().removeFavourite({shortcut_id:g});else{const{action_id:O,res_id:w,action_type:_,view_id:F}=d;await ConnectionProvider.getHandler().addFavourite({action_id:O,action_type:_,view_id:F,res_id:w||!1})}h(!I)}function v(){return jsxRuntime.jsxs(antd.Row,{align:"middle",children:[jsxRuntime.jsx(antd.Col,{children:jsxRuntime.jsx(antd.Button,{type:I?"primary":"default",icon:I?jsxRuntime.jsx(Icon.StarFilled,{style:{color:"white"}}):jsxRuntime.jsx(Icon.StarOutlined,{}),style:{width:30},onClick:y})}),jsxRuntime.jsx(antd.Col,{style:{paddingLeft:10},children:p})]})}return jsxRuntime.jsx(FormModalProvider,{setTitle:m,children:jsxRuntime.jsx(antd.Modal,{title:l?v():p,centered:!0,width:f,visible:o,footer:null,destroyOnClose:!0,onCancel:c,maskClosable:!1,children:jsxRuntime.jsx(Form$1,{id:r,showFooter:!0,insideButtonModal:s,onCancel:c,...u})})})},DateRangePicker=e=>jsxRuntime.jsx(Field$1,{...e,layout:"vertical",children:jsxRuntime.jsx(antd.DatePicker.RangePicker,{allowEmpty:[!0,!0],format:"DD/MM/YYYY"})}),DateTimeRangePicker=e=>{const{ooui:o,showLabel:r=!1}=e,{label:a,id:s}=o,c=[new ooui.Field({name:s+"#date",label:""}),new ooui.Field({name:s+"#time",label:""})];return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[r&&jsxRuntime.jsx(Label,{ooui:new ooui.Label({name:s+"_label",string:a,help:o.tooltip,fieldForLabel:s}),align:"left"}),jsxRuntime.jsxs(antd.Row,{align:"bottom",className:"p-0",children:[jsxRuntime.jsx(antd.Col,{className:"mr-2",children:jsxRuntime.jsx(Field$1,{...e,ooui:c[0],showLabel:!1,children:jsxRuntime.jsx(antd.DatePicker.RangePicker,{className:"w-60",allowEmpty:[!0,!0],format:"DD/MM/YYYY"})})}),jsxRuntime.jsx(antd.Col,{children:jsxRuntime.jsx(Field$1,{...e,ooui:c[1],showLabel:!1,children:jsxRuntime.jsx(antd.TimePicker.RangePicker,{className:"w-60",allowEmpty:[!0,!0],format:"HH:mm"})})})]})]})},Float=e=>{const{ooui:o}=e,{id:r,decimalDigits:a,readOnly:s,required:c}=o,l=c&&!s?Config.requiredClass:void 0,d=React.useContext(FormContext$1),{elementHasLostFocus:u}=d||{};return jsxRuntime.jsx(Field$1,{required:c,type:"number",...e,children:jsxRuntime.jsx(antd.InputNumber,{disabled:s,className:"w-full "+l,id:r,precision:a,formatter:f=>`${f}`.replace(/[^0-9\.\-]+/g,""),defaultValue:0,decimalSeparator:".",onBlur:u})})},Integer=e=>{const{ooui:o,onChange:r}=e,{id:a,readOnly:s,required:c}=o,l=c&&!s?Config.requiredClass:void 0,d=React.useContext(FormContext$1),{elementHasLostFocus:u}=d||{};return jsxRuntime.jsx(Field$1,{required:c,type:"number",...e,children:jsxRuntime.jsx(antd.InputNumber,{id:a,className:"w-full "+l,disabled:s,formatter:f=>`${f}`.replace(/[^0-9\-]+/g,""),onChange:f=>{const p=f;r==null||r(p)},defaultValue:0,onBlur:u})})};function PairFields(e){const{ooui:o,showLabel:r}=e,{id:a,label:s,tooltip:c}=o,l=o instanceof ooui.Integer?Integer:Float,d=u=>jsxRuntime.jsx(l,{ooui:{...o,id:a+u,label:"",tooltip:void 0},layout:"vertical"});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[r&&jsxRuntime.jsx(Label,{ooui:new ooui.Label({name:a+"_label",string:s,help:c,fieldForLabel:a}),align:"left"}),jsxRuntime.jsxs(antd.Row,{align:"bottom",className:"mt-0",wrap:!1,children:[jsxRuntime.jsx(antd.Col,{children:d("#from")}),jsxRuntime.jsx(antd.Col,{className:"pb-1",children:jsxRuntime.jsx("span",{className:"pl-2 pr-2 h-full",children:" - "})}),jsxRuntime.jsx(antd.Col,{children:d("#to")})]})]})}const{Option}=antd.Select,MultiSelection=e=>{const{ooui:o}=e,{required:r}=o;return jsxRuntime.jsx(Field$1,{required:r,type:"any",...e,children:jsxRuntime.jsx(MultiSelectionInput,{...e})})},MultiSelectionInput=e=>{const{ooui:o,onChange:r,value:a}=e,{selectionValues:s,readOnly:c,required:l}=o,d=Array.from(s.entries()),u=d&&d.length&&d.filter(m=>{const[I]=m;return a?!a.includes(I):!0}).map(m=>{const[I,h]=m;return jsxRuntime.jsx(Option,{value:h,children:h},I)}),f=l&&!c?RequiredSelect:antd.Select;function p(m){const I=m.map(h=>{const g=d.find(([C,b])=>h===b);return g&&g[0]});if(I.length===0){r==null||r(void 0);return}r==null||r(I)}return jsxRuntime.jsx(f,{disabled:c,onChange:p,value:a==null?void 0:a.map(m=>s.get(m)),mode:"multiple",showArrow:!0,children:u})},RequiredSelect=k__default.default(antd.Select)`
|
|
104
104
|
&.ant-select:not(.ant-select-customize-input) .ant-select-selector {
|
|
105
105
|
background-color: ${Config.requiredColor};
|
|
106
106
|
}
|
|
107
|
-
`,types$1={text:"text",many2one:"many2one",char:"char",boolean:"boolean",selection:"selection",float:"float",float_time:"float_time",progressbar:"progressbar",integer:"integer",date:"date",datetime:"datetime"};function SearchField(e){const{field:o}=e;o.readOnly=!1,o.required=!1;const{t:r}=React.useContext(LocaleContext);switch(o.type){case types$1.boolean:{const s=new ooui.Selection({name:o._id,string:o.label,selection:[["true",r("true")],["false",r("false")]]});return jsxRuntime.jsx(Selection,{layout:"vertical",ooui:s,showLabel:!0})}case types$1.float:case types$1.progressbar:case types$1.float_time:case types$1.integer:return jsxRuntime.jsx(PairFields,{ooui:o,showLabel:!0});case types$1.date:return jsxRuntime.jsx(DateRangePicker,{ooui:o,layout:"vertical",showLabel:!0});case types$1.datetime:return jsxRuntime.jsx(DateTimeRangePicker,{ooui:o,layout:"vertical",showLabel:!0});case types$1.selection:return jsxRuntime.jsx(MultiSelection,{layout:"vertical",ooui:o,showLabel:!0});default:return jsxRuntime.jsx(Char,{ooui:o,layout:"vertical",showLabel:!0,isSearchField:!0})}}function SearchBottomBar(e){const{onAdvancedFilterToggle:o,advancedFilter:r,onClear:a,isSearching:s}=e,{t:c}=React.useContext(LocaleContext);return jsxRuntime.jsxs(antd.Row,{children:[jsxRuntime.jsx(antd.Col,{span:12,className:"text-left pt-4 pb-2 pl-2",children:jsxRuntime.jsxs("a",{className:"text-xs",onClick:o,children:[r?jsxRuntime.jsx(Icon.UpOutlined,{className:"pr-1"}):jsxRuntime.jsx(Icon.DownOutlined,{className:"pr-1"}),c(r?"simple_search":"advanced_search")]})}),jsxRuntime.jsxs(antd.Col,{span:12,className:"text-right pb-2",children:[jsxRuntime.jsx(antd.Button,{className:"mr-5",icon:jsxRuntime.jsx(Icon.ClearOutlined,{}),onClick:a,children:c("clear")}),jsxRuntime.jsx(antd.Button,{icon:jsxRuntime.jsx(Icon.SearchOutlined,{}),loading:s,className:"mr-2",type:"primary",htmlType:"submit",children:c("search")})]})]})}function SearchParams(e){const{onLimitChange:o}=e,{t:r}=React.useContext(LocaleContext),a=new ooui.Integer({name:"limit"}),s=new ooui.Integer({name:"offset"});return jsxRuntime.jsxs("div",{className:"pl-2 pt-2",children:[jsxRuntime.jsx(antd.Row,{children:r("parameters")},"count_params"),jsxRuntime.jsxs(antd.Space,{align:"center",children:[r("limit")+" :",jsxRuntime.jsx(Integer,{ooui:a,onChange:c=>{o==null||o(c)}}),r("first")+" :",jsxRuntime.jsx(Integer,{ooui:s})]})]})}function SearchFilter(e){const{fields:o,searchFields:r={primary:[],secondary:[]},onClear:a,onSubmit:s,isSearching:c,offset:l,limit:d,onLimitChange:u,searchVisible:f,setSearchFilterHeight:p,searchError:m,searchValues:I,showLimitOptions:h=!0}=e,[
|
|
107
|
+
`,types$1={text:"text",many2one:"many2one",char:"char",boolean:"boolean",selection:"selection",float:"float",float_time:"float_time",progressbar:"progressbar",integer:"integer",date:"date",datetime:"datetime"};function SearchField(e){const{field:o}=e;o.readOnly=!1,o.required=!1;const{t:r}=React.useContext(LocaleContext);switch(o.type){case types$1.boolean:{const s=new ooui.Selection({name:o._id,string:o.label,selection:[["true",r("true")],["false",r("false")]]});return jsxRuntime.jsx(Selection,{layout:"vertical",ooui:s,showLabel:!0})}case types$1.float:case types$1.progressbar:case types$1.float_time:case types$1.integer:return jsxRuntime.jsx(PairFields,{ooui:o,showLabel:!0});case types$1.date:return jsxRuntime.jsx(DateRangePicker,{ooui:o,layout:"vertical",showLabel:!0});case types$1.datetime:return jsxRuntime.jsx(DateTimeRangePicker,{ooui:o,layout:"vertical",showLabel:!0});case types$1.selection:return jsxRuntime.jsx(MultiSelection,{layout:"vertical",ooui:o,showLabel:!0});default:return jsxRuntime.jsx(Char,{ooui:o,layout:"vertical",showLabel:!0,isSearchField:!0})}}function SearchBottomBar(e){const{onAdvancedFilterToggle:o,advancedFilter:r,onClear:a,isSearching:s}=e,{t:c}=React.useContext(LocaleContext);return jsxRuntime.jsxs(antd.Row,{children:[jsxRuntime.jsx(antd.Col,{span:12,className:"text-left pt-4 pb-2 pl-2",children:jsxRuntime.jsxs("a",{className:"text-xs",onClick:o,children:[r?jsxRuntime.jsx(Icon.UpOutlined,{className:"pr-1"}):jsxRuntime.jsx(Icon.DownOutlined,{className:"pr-1"}),c(r?"simple_search":"advanced_search")]})}),jsxRuntime.jsxs(antd.Col,{span:12,className:"text-right pb-2",children:[jsxRuntime.jsx(antd.Button,{className:"mr-5",icon:jsxRuntime.jsx(Icon.ClearOutlined,{}),onClick:a,children:c("clear")}),jsxRuntime.jsx(antd.Button,{icon:jsxRuntime.jsx(Icon.SearchOutlined,{}),loading:s,className:"mr-2",type:"primary",htmlType:"submit",children:c("search")})]})]})}function SearchParams(e){const{onLimitChange:o}=e,{t:r}=React.useContext(LocaleContext),a=new ooui.Integer({name:"limit"}),s=new ooui.Integer({name:"offset"});return jsxRuntime.jsxs("div",{className:"pl-2 pt-2",children:[jsxRuntime.jsx(antd.Row,{children:r("parameters")},"count_params"),jsxRuntime.jsxs(antd.Space,{align:"center",children:[r("limit")+" :",jsxRuntime.jsx(Integer,{ooui:a,onChange:c=>{o==null||o(c)}}),r("first")+" :",jsxRuntime.jsx(Integer,{ooui:s})]})]})}function SearchFilter(e){const{fields:o,searchFields:r={primary:[],secondary:[]},onClear:a,onSubmit:s,isSearching:c,offset:l,limit:d,onLimitChange:u,searchVisible:f,setSearchFilterHeight:p,searchError:m,searchValues:I,showLimitOptions:h=!0}=e,[g,C]=React.useState(),[b,y]=React.useState(),[v,O]=React.useState(!1),[w]=antd.Form.useForm();React.useEffect(()=>{w.setFieldsValue(I)},[I]);const _=()=>{if(!b)return;const E=v?b:g,P=E==null?void 0:E.rows;return P==null?void 0:P.map((A,W)=>jsxRuntime.jsx(antd.Row,{children:A.map((J,z)=>jsxRuntime.jsx(antd.Col,{xs:24,className:"p-2",xl:6,children:jsxRuntime.jsx(SearchField,{field:J})},z))},W))};useDeepCompareEffect__default.default(()=>{O(!1);const E=new ooui.SearchFilter(r,o);E.parse(),C(E._simpleSearchContainer),y(E._advancedSearchContainer)},[o,r]);const F=_(),L=E=>{const{limit:P,offset:A}=E;delete E.offset,delete E.limit;const W=getParamsForFields(E,o);s({params:W,offset:A,limit:P,searchValues:E})};return jsxRuntime.jsx(Measure__default.default,{bounds:!0,onResize:E=>{var P;p==null||p((P=E.bounds)==null?void 0:P.height)},children:({measureRef:E})=>jsxRuntime.jsx("div",{ref:E,children:jsxRuntime.jsxs("div",{style:{display:f?"block":"none"},children:[jsxRuntime.jsxs(antd.Form,{className:"p-3 rounded shadow-md bg-gray-50",form:w,onFinish:L,initialValues:{offset:l,limit:d},children:[F,v&&h&&jsxRuntime.jsx(SearchParams,{onLimitChange:u}),jsxRuntime.jsx(SearchBottomBar,{advancedFilter:v,onAdvancedFilterToggle:()=>{O(!v)},onClear:()=>{w.resetFields(),a()},isSearching:c})]}),m&&jsxRuntime.jsx(antd.Alert,{className:"mt-10",message:m,type:"error",banner:!0}),jsxRuntime.jsx("div",{className:"pb-5"})]})})})}const Many2oneSuffixModal=e=>{const{visible:o,onCancel:r,items:a=[],onItemClicked:s}=e,{t:c}=React.useContext(LocaleContext);return jsxRuntime.jsx(antd.Modal,{title:c("selectAction"),centered:!0,visible:o,footer:null,destroyOnClose:!0,onCancel:r,maskClosable:!1,children:jsxRuntime.jsx(antd.Space,{direction:"vertical",className:"w-full",children:a.map(l=>jsxRuntime.jsx(antd.Button,{className:"w-full",onClick:()=>{s(l)},children:l.name}))})})},Many2oneSuffix=e=>{var E,P;const{id:o,model:r,context:a={}}=e,[s,c]=React.useState(!1),[l,d]=React.useState(!1),[u,f]=React.useState(!1),[p,m]=React.useState(),[I,h]=React.useState(),{t:g}=React.useContext(LocaleContext),C=React.useContext(TabManagerContext),{openRelate:b}=C||{},y=React.useContext(ContentRootContext),{processAction:v}=y||{};if(!o)return null;async function O(){f(!0);try{const A=await ConnectionProvider.getHandler().getView({model:r,type:"form",context:a});m(A);const{fields:W,arch:J}=A,z=(await ConnectionProvider.getHandler().readObjects({model:r,ids:[o],fields:W,context:a}))[0];h({...processValues(z,W),active_id:o}),f(!1)}catch(A){f(!1),showDialog$8(A);return}}function w(){var W;if(u)return jsxRuntime.jsx(antd.Menu,{children:jsxRuntime.jsx("div",{style:{padding:15},children:jsxRuntime.jsx(antd.Spin,{})})});if(!p||!p.toolbar)return jsxRuntime.jsx(antd.Menu,{});const A=(W=p==null?void 0:p.toolbar)==null?void 0:W.relate.map(J=>jsxRuntime.jsx(antd.Menu.Item,{children:J.name},J.id));return jsxRuntime.jsx(antd.Menu,{onClick:_,children:[jsxRuntime.jsx(antd.Menu.Item,{disabled:!p.toolbar.action||p.toolbar.action.length===0,icon:jsxRuntime.jsx(Icon.ThunderboltOutlined,{}),children:g("action")},"action"),jsxRuntime.jsx(antd.Menu.Item,{disabled:!p.toolbar.print||p.toolbar.print.length===0,icon:jsxRuntime.jsx(Icon.PrinterOutlined,{}),children:g("report")},"print"),jsxRuntime.jsx(antd.Menu.Divider,{}),jsxRuntime.jsx(antd.Menu.ItemGroup,{title:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Icon.EnterOutlined,{})," ",jsxRuntime.jsxs("span",{children:[" ",g("related")]})]}),children:A})]})}function _(A){if(A.key==="action")c(!0);else if(A.key==="print")d(!0);else{const W=p.toolbar.relate.find(J=>J.id===parseInt(A.key));if(!W)return;b({relateData:W,values:I,fields:p.fields,action_id:W.id,action_type:W.type})}}function F(A){c(!1),v==null||v({actionData:A,values:I,fields:p.fields,context:{active_id:o,active_ids:[o]}})}function L(A){d(!1),v==null||v({actionData:{...A,datas:{...A.datas||{},ids:[o]}},values:I,fields:p.fields})}return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(antd.Dropdown,{overlay:w(),trigger:["click"],children:jsxRuntime.jsx(Icon.RightCircleOutlined,{style:{color:"rgba(0,0,0,.45)"},onClick:A=>{A.preventDefault(),O()}})}),jsxRuntime.jsx(Many2oneSuffixModal,{visible:s,items:(E=p==null?void 0:p.toolbar)==null?void 0:E.action,onItemClicked:F,onCancel:()=>c(!1)}),jsxRuntime.jsx(Many2oneSuffixModal,{visible:l,items:(P=p==null?void 0:p.toolbar)==null?void 0:P.print,onItemClicked:L,onCancel:()=>d(!1)})]})},getTextWidth$1=(e,o="14px -apple-system")=>{const a=document.createElement("canvas").getContext("2d");a.font=o;const s=a.measureText(e);return Math.round((s.width+80)*1.5)},calculateColumnsWidth=(e,o,r=500)=>{if(e.length===0)return e;const a=e.map(c=>Object.assign(c,{width:getTextWidth$1(c.title)}));o.map(c=>{a.map((l,d)=>{const u=l.width,f=c[l.key]||"";let p=getTextWidth$1(f);p<u&&(p=u),p>r&&(p=r),a[d].width=p})});const s=a.map(c=>c.width).reduce((c,l)=>c+l);return{columns:a,source:o,tableWidth:s}};function parseStringToFloat(e){if(!!e)try{if(e.includes(":")){const o=e.trim().split(":");return Math.round((parseInt(o[0])+parseInt(o[1])/60)*1e4)/1e4}else return parseFloat(e.trim())}catch{return 0}}function parseFloatToString(e){if(e===void 0)return;let o,r=Math.floor(Math.abs(e)),a=Math.round(Math.abs(e)%1*100)/100;a>=1?(r=r+1,a=0):a=a*60;const s=r.toLocaleString("en-US",{minimumIntegerDigits:2,maximumFractionDigits:0,useGrouping:!1}),c=a.toLocaleString("en-US",{minimumIntegerDigits:2,maximumFractionDigits:0,useGrouping:!1});return o=`${s}:${c}`,e<0&&(o="-"+o),o}const ProgressBar=e=>jsxRuntime.jsx(Field$1,{...e,children:jsxRuntime.jsx(ProgressBarInput,{})}),ProgressBarInput=({value:e})=>{const o=`${(e||0).toLocaleString("en-US",{minimumIntegerDigits:1,maximumFractionDigits:4,useGrouping:!1})}%`;return jsxRuntime.jsxs("div",{style:{flex:1,display:"flex",alignItems:"center"},children:[jsxRuntime.jsx(StyledProgress,{percent:e}),jsxRuntime.jsx("div",{style:{flexGrow:1,paddingLeft:10},children:o})]})},StyledProgress=k__default.default(antd.Progress)`
|
|
108
108
|
.ant-progress-outer {
|
|
109
109
|
margin-right: 0px;
|
|
110
110
|
padding-right: 0px;
|
|
@@ -112,11 +112,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
112
112
|
.ant-progress-text {
|
|
113
113
|
display: none;
|
|
114
114
|
}
|
|
115
|
-
`,booleanComponentFn=e=>jsxRuntime.jsx("div",{style:{display:"flex",justifyContent:"center",alignContent:"center"},children:jsxRuntime.jsx(antd.Checkbox,{checked:e,disabled:!0})}),many2OneComponentFn=e=>e?jsxRuntime.jsxs(antd.Space,{children:[jsxRuntime.jsx(jsxRuntime.Fragment,{children:e.value}),jsxRuntime.jsx(Many2oneSuffix,{id:e.id,model:e.model})]}):jsxRuntime.jsx(jsxRuntime.Fragment,{}),textComponentFn=e=>jsxRuntime.jsx("div",{style:{whiteSpace:"pre-line"},children:e}),one2ManyComponentFn=e=>{const o=Array.isArray(e==null?void 0:e.items)?e==null?void 0:e.items.length:0;return jsxRuntime.jsx(jsxRuntime.Fragment,{children:`( ${o} )`})},progressBarComponentFn=e=>jsxRuntime.jsx(ProgressBarInput,{value:e}),floatTimeComponent=e=>jsxRuntime.jsx(jsxRuntime.Fragment,{children:parseFloatToString(e)}),numberComponent=e=>jsxRuntime.jsx("div",{style:{textAlign:"right"},children:e}),imageComponent=e=>jsxRuntime.jsx("img",{src:`data:image/*;base64,${e}`,style:{maxWidth:"50px",padding:"5px"}});function Tree(e){const{page:o=1,limit:r,total:a,treeView:s,results:c,onRequestPageChange:l,loading:d,onRowClicked:u,showPagination:f=!0,rowSelection:p,scrollY:m,colorsForResults:I={},onChangeSort:h,sorter:v,onFetchChildrenForRecord:C,childField:b}=e,[y,g]=React.useState([]),[O,w]=React.useState([]),_=React.useRef(!1),F=React.useRef(null),{t:L}=React.useContext(LocaleContext),E=React.useRef(r);React.useEffect(()=>{F.current=getTree(s);const oe=getTableColumns(F.current,{boolean:booleanComponentFn,many2one:many2OneComponentFn,text:textComponentFn,one2many:one2ManyComponentFn,many2many:one2ManyComponentFn,progressbar:progressBarComponentFn,float_time:floatTimeComponent,image:imageComponent,integer:numberComponent,float:numberComponent});w(oe)},[s]),React.useEffect(()=>{_.current=!1;const oe=getTableItems(F.current,c);g(oe),E.current=r},[c]);const P=(o-1)*E.current+1,A=P-1+y.length,W=a===void 0?null:a===0?L("no_results"):L("summary").replace("{from}",P==null?void 0:P.toString()).replace("{to}",A==null?void 0:A.toString()).replace("{total}",a==null?void 0:a.toString()),J=()=>!f||s.isExpandable||d?null:a===void 0?jsxRuntime.jsx(antd.Spin,{}):jsxRuntime.jsxs(antd.Row,{align:"bottom",className:"pb-4",children:[jsxRuntime.jsx(antd.Col,{span:12,children:jsxRuntime.jsx(antd.Pagination,{total:a,pageSize:E.current,current:o,showSizeChanger:!1,onChange:l})}),jsxRuntime.jsx(antd.Col,{span:12,className:"text-right",children:W})]});function Y(){var Re;const te=F.current.columns.filter(xe=>xe.sum!==void 0).map(xe=>({label:xe.sum,field:xe.id}));if(!te||te.length===0)return null;let X=[],ce=((Re=p==null?void 0:p.selectedRowKeys)==null?void 0:Re.length)>0?y.filter(xe=>p==null?void 0:p.selectedRowKeys.includes(xe.id)):y;return te.forEach(xe=>{const de=ce.reduce((Ce,ee)=>ee[xe.field]&&!isNaN(ee[xe.field])?Ce+ee[xe.field]:Ce,0);X.push(`${xe.label}: ${Math.round(de*100)/100}`)}),jsxRuntime.jsx("div",{className:"p-1 pb-0 pl-2 mt-2 bg-gray-50",children:X.join(", ")})}let z,Q=m;if(F.current!==null){z=calculateColumnsWidth(O,y,600);const te=F.current;m&&te.columns.some(X=>X.sum!==void 0)&&(Q=m-30)}return F.current===null?jsxRuntime.jsx(antd.Spin,{style:{padding:"2rem"}}):jsxRuntime.jsxs("div",{children:[J(),jsxRuntime.jsx(reactFormigaTable.Table,{height:Q,columns:z.columns,dataSource:y,loading:d,loadingComponent:jsxRuntime.jsx(antd.Spin,{}),onRowStyle:oe=>{if(I[oe.id])return{color:I[oe.id]}},onRowDoubleClick:u,onRowSelectionChange:p==null?void 0:p.onChange,onChangeSort:h,sorter:v,expandableOpts:C?{expandIcon:Icon.PlusSquareOutlined,collapseIcon:Icon.MinusSquareOutlined,loadingIcon:Icon.LoadingOutlined,onFetchChildrenForRecord:C,childField:b}:void 0}),Y()]})}function SearchTree(e,o){const{model:r,formView:a,treeView:s,onRowClicked:c,nameSearch:l,treeScrollY:d,domain:u=[],visible:f=!0,rootTree:p=!1,parentContext:m={},onChangeSelectedRowKeys:I}=e,[h,v]=React.useState(!1),[C,b]=React.useState(!1),y=React.useRef(!1),[g,O]=React.useState(),[w,_]=React.useState(),[F,L]=React.useState(),[E,P]=React.useState(),[A,W]=React.useState(200),J=React.useRef(),{height:Y}=useWindowDimensions(),z=React.useContext(ContentRootContext),{processAction:Q}=z||{},oe=React.useContext(ActionViewContext),{setResults:te=void 0,setCurrentItemIndex:X=void 0,currentId:ce=void 0,results:Re=void 0,selectedRowItems:xe=void 0,setSelectedRowItems:de=void 0,searchParams:Ce=[],setSearchParams:ee=void 0,searchVisible:ue=!0,setSearchVisible:N=void 0,sorter:U=void 0,setSorter:re=void 0,setTotalItems:Te=void 0,setSearchTreeNameSearch:Fe=void 0,setTreeIsLoading:M=void 0,searchValues:j={},setSearchValues:we=void 0,limit:je=DEFAULT_SEARCH_LIMIT$1,setLimit:tt=void 0}=(p?oe:{})||{},{submit:Ne,clear:Ge,fetchResults:yt,tableRefreshing:Tt,searchFilterLoading:Ot,searchError:$t,page:Vt,offset:Ct,getResults:Ft,requestPageChange:Ut,changeSort:Gt,fetchChildrenForRecord:Qt,colorsForResults:Wt,totalItems:fn}=useSearch({model:g,setSearchTreeNameSearch:Fe,setSelectedRowItems:de,setSearchParams:ee,setSearchValues:we,searchParams:Ce,setSearchVisible:N,setTreeIsLoading:M,nameSearch:l,searchNameGetDoneRef:y,context:m,formView:F,treeView:w,sorter:U,setSorter:re,setCurrentItemIndex:X,setResultsActionView:te,resultsActionView:Re,domain:u,currentId:ce,setActionViewTotalItems:Te,limit:je,setLimit:tt});React.useImperativeHandle(o,()=>({refreshResults:()=>{y.current=!1,yt()},getFields:()=>w==null?void 0:w.fields,getDomain:()=>u})),React.useEffect(()=>{!C||f&&(y.current=!1,yt())},[Vt,Ct,C,f,l]);const un=async()=>{b(!1),v(!0),P(void 0),M==null||M(!0);try{await _t(),b(!0)}catch(tn){P(tn)}finally{v(!1),M==null||M(!1)}},_t=async()=>{O(r);let tn=a;a||(tn=await ConnectionProvider.getHandler().getView({model:r,type:"form",context:m}));let rn=s;s||(rn=await ConnectionProvider.getHandler().getView({model:r,type:"tree",context:m})),L(tn),_(rn)};React.useEffect(()=>{un()},[r]);const Dt=tn=>{tt==null||tt(tn)},zt=async tn=>{const{id:rn}=tn;J.current||(J.current=await ConnectionProvider.getHandler().treeButOpen({id:w.view_id,model:g,context:m}));const hn=J.current[0][2];await(Q==null?void 0:Q({actionData:hn,fields:w.fields,values:{active_id:rn,...tn},context:m}))},Yt=async tn=>{const{id:rn}=tn;if(w!=null&&w.isExpandable){try{await zt(tn)}catch(hn){showDialog$8(hn)}return}c({id:rn,model:g,formView:F,treeView:w})};function en(tn){const rn=Ft().filter(hn=>tn.includes(hn.id));de==null||de(rn),I==null||I(tn)}function nn(){return w!=null&&w.isExpandable?Y-160:Y-(A+210)}const mn=()=>!w||!F?null:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(SearchFilter,{fields:{...w.fields,...F.fields},searchFields:mergeSearchFields([F.search_fields,w.search_fields]),onClear:Ge,limit:je,offset:Ct,isSearching:Ot,onSubmit:Ne,onLimitChange:Dt,setSearchFilterHeight:W,searchError:$t,searchVisible:ue,searchValues:j}),jsxRuntime.jsx(Tree,{total:fn,limit:je,page:Vt,treeView:w,results:Ft(),onRequestPageChange:Ut,loading:Tt,onRowClicked:Yt,scrollY:d||nn(),colorsForResults:Wt,rowSelection:{selectedRowKeys:xe==null?void 0:xe.map(tn=>tn.id),onChange:en},sorter:U,onChangeSort:Gt,onFetchChildrenForRecord:w.isExpandable?Qt:void 0,childField:w.field_parent})]}),pn=E||$t;return pn?jsxRuntime.jsx(antd.Alert,{className:"mt-10",message:pn,type:"error",banner:!0}):jsxRuntime.jsx("div",{style:f?{}:{display:"none"},children:h?jsxRuntime.jsx(antd.Spin,{}):mn()})}const SearchTree$1=React.forwardRef(SearchTree),SearchModal=e=>{const{visible:o,onCloseModal:r,onSelectValues:a,model:s,nameSearch:c,domain:l,context:d={}}=e,[u,f]=React.useState(!1),{modalWidth:p,modalHeight:m}=useWindowDimensions(),{t:I}=React.useContext(LocaleContext),[h,v]=React.useState([]),C=async()=>{await new Promise(O=>setTimeout(O,5)),r()},b=async O=>{const{id:w}=O;a([w])};function y(){if(h.length===0){C();return}a(h)}const g=()=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(SearchTree$1,{model:s,nameSearch:c,onRowClicked:b,treeScrollY:m*.3,domain:l,parentContext:d,onChangeSelectedRowKeys:O=>{v(O)}}),jsxRuntime.jsx(antd.Divider,{}),jsxRuntime.jsx(antd.Row,{justify:"end",children:jsxRuntime.jsxs(antd.Space,{children:[jsxRuntime.jsx(antd.Button,{icon:jsxRuntime.jsx(Icon.FileAddOutlined,{}),onClick:()=>{f(!0)},children:I("new")}),jsxRuntime.jsx(antd.Button,{icon:jsxRuntime.jsx(Icon.CheckOutlined,{}),onClick:()=>{y()},type:"primary",children:I("ok")}),jsxRuntime.jsx(antd.Button,{icon:jsxRuntime.jsx(Icon.CloseOutlined,{}),onClick:C,children:I("cancel")})]})})]});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(antd.Modal,{title:I("search"),centered:!0,width:p,visible:o&&!u,closable:!0,onCancel:C,footer:null,destroyOnClose:!0,maskClosable:!1,children:g()}),jsxRuntime.jsx(FormModal,{model:s,visible:u,parentContext:d,onSubmitSucceed:O=>{f(!1),C(),a([O])},onCancel:()=>{f(!1),C()}})]})},{error}=antd.Modal,showDialog$3=e=>{error({title:"Error",icon:jsxRuntime.jsx(Icon.ExclamationCircleOutlined,{}),centered:!0,content:e})},Many2one=e=>{const{ooui:o}=e,{required:r}=o,a=async(s,c)=>{if(!c)throw new Error;if(!Array.isArray(c))throw new Error;if(Array.isArray(c)&&!c[0])throw new Error};return jsxRuntime.jsx(Field$1,{required:r,type:"array",validator:a,...e,children:jsxRuntime.jsx(Many2oneInput,{ooui:o})})},Many2oneInput=e=>{const{value:o,onChange:r,ooui:a}=e,{required:s,relation:c,readOnly:l,context:d,id:u,domain:f}=a,p=s&&!l?Config.requiredClass:void 0,[m,I]=React.useState(!1),[h,v]=React.useState(!1),[C,b]=React.useState(!1),[y,g]=React.useState(),O=React.useRef(!1),[w,_]=React.useState(""),F=React.useRef(),L=React.useContext(FormContext$1),{domain:E,getValues:P,getFields:A,getContext:W,setOriginalValue:J,elementHasLostFocus:Y}=L||{},z=React.useRef([]),[Q,oe]=React.useState([]),te=o&&o[0]||void 0,X=o&&o[1]||"";React.useEffect(()=>{!Array.isArray(o)&&o&&Ce(o)},[o]),React.useEffect(()=>{te&&X.length===0?Ce(te):te&&X.length>0?_(X):!te&&!X&&_(F.current||"")},[o]);const ce=U=>{r==null||r(U),Y==null||Y()},Re=U=>{F.current=U.target.value,ce([void 0,""])},xe=async()=>{if(!C&&w!==X){if(await new Promise(U=>setTimeout(U,100)),O.current){ce([void 0,""]);return}b(!0);try{if(z.current&&z.current.length>0)de(F.current);else{const U=await ConnectionProvider.getHandler().nameSearch({model:c,payload:F.current,context:{...W==null?void 0:W(),...d}});U.length===1?(F.current=void 0,ce(U[0])):de(F.current)}}catch(U){showDialog$3(U)}finally{b(!1)}}},de=async U=>{if(await ee(),z.current&&z.current.length>0){const re=await ConnectionProvider.getHandler().searchAllIds({params:z.current,model:c,context:{...W==null?void 0:W(),...d},totalItems:2});re.length===1?Ce(re[0],!0):(g(U),I(!0));return}g(U),I(!0)},Ce=async(U,re)=>{b(!0);try{const Te=await ConnectionProvider.getHandler().execute({action:"name_get",payload:[U],model:c,context:{...W==null?void 0:W(),...d}});ce([U,Te[0][1]]),re&&J(a.id,[U,Te[0][1]])}catch(Te){showDialog$3(Te)}finally{b(!1)}};async function ee(){f&&(z.current=await ConnectionProvider.getHandler().evalDomain({domain:f,values:transformPlainMany2Ones({fields:A(),values:P()}),context:W()})),E&&E.length>0&&(z.current=z.current.concat(ooui.transformDomainForChildWidget({domain:E,widgetFieldName:u}))),oe(z.current)}async function ue(U){U.code==="Enter"?(U.preventDefault(),U.stopPropagation(),await xe()):U.code==="Backspace"&&te!==void 0&&(U.preventDefault(),U.stopPropagation(),ce([void 0,""]))}const N=s&&!l?RequiredInput:antd.Input;return jsxRuntime.jsxs(antd.Row,{gutter:8,wrap:!1,children:[jsxRuntime.jsx(antd.Col,{flex:"auto",children:jsxRuntime.jsx(N,{type:"text",value:w,disabled:l,onChange:Re,className:p,onBlur:xe,onKeyDown:ue,suffix:jsxRuntime.jsx(Many2oneSuffix,{id:te,model:c,context:{...W==null?void 0:W(),...d}})})}),jsxRuntime.jsx(antd.Col,{flex:"32px",children:jsxRuntime.jsx(antd.Button,{icon:jsxRuntime.jsx(Icon.FolderOpenOutlined,{}),disabled:te===void 0||X===""||w===void 0,onClick:()=>{v(!0)},tabIndex:-1})}),jsxRuntime.jsx(antd.Col,{flex:"32px",children:jsxRuntime.jsx(antd.Button,{icon:C?jsxRuntime.jsx(Icon.LoadingOutlined,{}):jsxRuntime.jsx(Icon.SearchOutlined,{}),disabled:l||C,onClick:()=>{O.current=!0,de(X)},tabIndex:-1})}),jsxRuntime.jsx(SearchModal,{model:c,domain:Q,context:{...W==null?void 0:W(),...d},visible:m,nameSearch:te?void 0:y,onSelectValues:U=>{I(!1),Ce(U[0]),O.current=!1,F.current=void 0},onCloseModal:()=>{I(!1),O.current=!1}}),jsxRuntime.jsx(FormModal,{model:c,parentContext:{...W==null?void 0:W(),...d},id:o&&o[0],visible:h,onSubmitSucceed:U=>{v(!1),Ce(U)},onCancel:()=>{v(!1)},mustClearAfterSave:!0,readOnly:l})]})},RequiredInput=k__default.default(antd.Input)`
|
|
115
|
+
`,booleanComponentFn=e=>jsxRuntime.jsx("div",{style:{display:"flex",justifyContent:"center",alignContent:"center"},children:jsxRuntime.jsx(antd.Checkbox,{checked:e,disabled:!0})}),many2OneComponentFn=e=>e?jsxRuntime.jsxs(antd.Space,{children:[jsxRuntime.jsx(jsxRuntime.Fragment,{children:e.value}),jsxRuntime.jsx(Many2oneSuffix,{id:e.id,model:e.model})]}):jsxRuntime.jsx(jsxRuntime.Fragment,{}),textComponentFn=e=>jsxRuntime.jsx("div",{style:{whiteSpace:"pre-line"},children:e}),one2ManyComponentFn=e=>{const o=Array.isArray(e==null?void 0:e.items)?e==null?void 0:e.items.length:0;return jsxRuntime.jsx(jsxRuntime.Fragment,{children:`( ${o} )`})},progressBarComponentFn=e=>jsxRuntime.jsx(ProgressBarInput,{value:e}),floatTimeComponent=e=>jsxRuntime.jsx(jsxRuntime.Fragment,{children:parseFloatToString(e)}),numberComponent=e=>jsxRuntime.jsx("div",{style:{textAlign:"right"},children:e}),imageComponent=e=>jsxRuntime.jsx("img",{src:`data:image/*;base64,${e}`,style:{maxWidth:"50px",padding:"5px"}});function Tree(e){const{page:o=1,limit:r,total:a,treeView:s,results:c,onRequestPageChange:l,loading:d,onRowClicked:u,showPagination:f=!0,rowSelection:p,scrollY:m,colorsForResults:I={},onChangeSort:h,sorter:g,onFetchChildrenForRecord:C,childField:b}=e,[y,v]=React.useState([]),[O,w]=React.useState([]),_=React.useRef(!1),F=React.useRef(null),{t:L}=React.useContext(LocaleContext),E=React.useRef(r);React.useEffect(()=>{F.current=getTree(s);const oe=getTableColumns(F.current,{boolean:booleanComponentFn,many2one:many2OneComponentFn,text:textComponentFn,one2many:one2ManyComponentFn,many2many:one2ManyComponentFn,progressbar:progressBarComponentFn,float_time:floatTimeComponent,image:imageComponent,integer:numberComponent,float:numberComponent});w(oe)},[s]),React.useEffect(()=>{_.current=!1;const oe=getTableItems(F.current,c);v(oe),E.current=r},[c]);const P=(o-1)*E.current+1,A=P-1+y.length,W=a===void 0?null:a===0?L("no_results"):L("summary").replace("{from}",P==null?void 0:P.toString()).replace("{to}",A==null?void 0:A.toString()).replace("{total}",a==null?void 0:a.toString()),J=()=>!f||s.isExpandable||d?null:a===void 0?jsxRuntime.jsx(antd.Spin,{}):jsxRuntime.jsxs(antd.Row,{align:"bottom",className:"pb-4",children:[jsxRuntime.jsx(antd.Col,{span:12,children:jsxRuntime.jsx(antd.Pagination,{total:a,pageSize:E.current,current:o,showSizeChanger:!1,onChange:l})}),jsxRuntime.jsx(antd.Col,{span:12,className:"text-right",children:W})]});function z(){var Re;const ee=F.current.columns.filter(xe=>xe.sum!==void 0).map(xe=>({label:xe.sum,field:xe.id}));if(!ee||ee.length===0)return null;let X=[],ue=((Re=p==null?void 0:p.selectedRowKeys)==null?void 0:Re.length)>0?y.filter(xe=>p==null?void 0:p.selectedRowKeys.includes(xe.id)):y;return ee.forEach(xe=>{const ce=ue.reduce((Ce,te)=>te[xe.field]&&!isNaN(te[xe.field])?Ce+te[xe.field]:Ce,0);X.push(`${xe.label}: ${Math.round(ce*100)/100}`)}),jsxRuntime.jsx("div",{className:"p-1 pb-0 pl-2 mt-2 bg-gray-50",children:X.join(", ")})}let Y,Q=m;if(F.current!==null){Y=calculateColumnsWidth(O,y,600);const ee=F.current;m&&ee.columns.some(X=>X.sum!==void 0)&&(Q=m-30)}return F.current===null?jsxRuntime.jsx(antd.Spin,{style:{padding:"2rem"}}):jsxRuntime.jsxs("div",{children:[J(),jsxRuntime.jsx(reactFormigaTable.Table,{height:Q,columns:Y.columns,dataSource:y,loading:d,loadingComponent:jsxRuntime.jsx(antd.Spin,{}),onRowStyle:oe=>{if(I[oe.id])return{color:I[oe.id]}},onRowDoubleClick:u,onRowSelectionChange:p==null?void 0:p.onChange,onChangeSort:h,sorter:g,expandableOpts:C?{expandIcon:Icon.PlusSquareOutlined,collapseIcon:Icon.MinusSquareOutlined,loadingIcon:Icon.LoadingOutlined,onFetchChildrenForRecord:C,childField:b}:void 0}),z()]})}function SearchTree(e,o){const{model:r,formView:a,treeView:s,onRowClicked:c,nameSearch:l,treeScrollY:d,domain:u=[],visible:f=!0,rootTree:p=!1,parentContext:m={},onChangeSelectedRowKeys:I}=e,[h,g]=React.useState(!1),[C,b]=React.useState(!1),y=React.useRef(!1),[v,O]=React.useState(),[w,_]=React.useState(),[F,L]=React.useState(),[E,P]=React.useState(),[A,W]=React.useState(200),J=React.useRef(),{height:z}=useWindowDimensions(),Y=React.useContext(ContentRootContext),{processAction:Q}=Y||{},oe=React.useContext(ActionViewContext),{setResults:ee=void 0,setCurrentItemIndex:X=void 0,currentId:ue=void 0,results:Re=void 0,selectedRowItems:xe=void 0,setSelectedRowItems:ce=void 0,searchParams:Ce=[],setSearchParams:te=void 0,searchVisible:de=!0,setSearchVisible:N=void 0,sorter:U=void 0,setSorter:re=void 0,setTotalItems:Te=void 0,setSearchTreeNameSearch:Fe=void 0,setTreeIsLoading:M=void 0,searchValues:j={},setSearchValues:we=void 0,limit:je=DEFAULT_SEARCH_LIMIT$1,setLimit:tt=void 0}=(p?oe:{})||{},{submit:Ne,clear:Ge,fetchResults:yt,tableRefreshing:Tt,searchFilterLoading:Ot,searchError:$t,page:Vt,offset:Ct,getResults:Dt,requestPageChange:zt,changeSort:Ut,fetchChildrenForRecord:Qt,colorsForResults:Gt,totalItems:fn}=useSearch({model:v,setSearchTreeNameSearch:Fe,setSelectedRowItems:ce,setSearchParams:te,setSearchValues:we,searchParams:Ce,setSearchVisible:N,setTreeIsLoading:M,nameSearch:l,searchNameGetDoneRef:y,context:m,formView:F,treeView:w,sorter:U,setSorter:re,setCurrentItemIndex:X,setResultsActionView:ee,resultsActionView:Re,domain:u,currentId:ue,setActionViewTotalItems:Te,limit:je,setLimit:tt});React.useImperativeHandle(o,()=>({refreshResults:()=>{y.current=!1,yt()},getFields:()=>w==null?void 0:w.fields,getDomain:()=>u})),React.useEffect(()=>{!C||f&&(y.current=!1,yt())},[Vt,Ct,C,f,l]);const nn=async()=>{b(!1),g(!0),P(void 0),M==null||M(!0);try{await _t(),b(!0)}catch(tn){P(tn)}finally{g(!1),M==null||M(!1)}},_t=async()=>{O(r);let tn=a;a||(tn=await ConnectionProvider.getHandler().getView({model:r,type:"form",context:m}));let un=s;s||(un=await ConnectionProvider.getHandler().getView({model:r,type:"tree",context:m})),L(tn),_(un)};React.useEffect(()=>{nn()},[r]);const Ft=tn=>{tt==null||tt(tn)},Wt=async tn=>{const{id:un}=tn;J.current||(J.current=await ConnectionProvider.getHandler().treeButOpen({id:w.view_id,model:v,context:m}));const hn=J.current[0][2];await(Q==null?void 0:Q({actionData:hn,fields:w.fields,values:{active_id:un,...tn},context:m}))},Yt=async tn=>{const{id:un}=tn;if(w!=null&&w.isExpandable){try{await Wt(tn)}catch(hn){showDialog$8(hn)}return}c({id:un,model:v,formView:F,treeView:w})};function en(tn){const un=Dt().filter(hn=>tn.includes(hn.id));ce==null||ce(un),I==null||I(tn)}function rn(){return w!=null&&w.isExpandable?z-160:z-(A+210)}const mn=()=>!w||!F?null:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(SearchFilter,{fields:{...w.fields,...F.fields},searchFields:mergeSearchFields([F.search_fields,w.search_fields]),onClear:Ge,limit:je,offset:Ct,isSearching:Ot,onSubmit:Ne,onLimitChange:Ft,setSearchFilterHeight:W,searchError:$t,searchVisible:de,searchValues:j}),jsxRuntime.jsx(Tree,{total:fn,limit:je,page:Vt,treeView:w,results:Dt(),onRequestPageChange:zt,loading:Tt,onRowClicked:Yt,scrollY:d||rn(),colorsForResults:Gt,rowSelection:{selectedRowKeys:xe==null?void 0:xe.map(tn=>tn.id),onChange:en},sorter:U,onChangeSort:Ut,onFetchChildrenForRecord:w.isExpandable?Qt:void 0,childField:w.field_parent})]}),pn=E||$t;return pn?jsxRuntime.jsx(antd.Alert,{className:"mt-10",message:pn,type:"error",banner:!0}):jsxRuntime.jsx("div",{style:f?{}:{display:"none"},children:h?jsxRuntime.jsx(antd.Spin,{}):mn()})}const SearchTree$1=React.forwardRef(SearchTree),SearchModal=e=>{const{visible:o,onCloseModal:r,onSelectValues:a,model:s,nameSearch:c,domain:l,context:d={}}=e,[u,f]=React.useState(!1),{modalWidth:p,modalHeight:m}=useWindowDimensions(),{t:I}=React.useContext(LocaleContext),[h,g]=React.useState([]),C=async()=>{await new Promise(O=>setTimeout(O,5)),r()},b=async O=>{const{id:w}=O;a([w])};function y(){if(h.length===0){C();return}a(h)}const v=()=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(SearchTree$1,{model:s,nameSearch:c,onRowClicked:b,treeScrollY:m*.3,domain:l,parentContext:d,onChangeSelectedRowKeys:O=>{g(O)}}),jsxRuntime.jsx(antd.Divider,{}),jsxRuntime.jsx(antd.Row,{justify:"end",children:jsxRuntime.jsxs(antd.Space,{children:[jsxRuntime.jsx(antd.Button,{icon:jsxRuntime.jsx(Icon.FileAddOutlined,{}),onClick:()=>{f(!0)},children:I("new")}),jsxRuntime.jsx(antd.Button,{icon:jsxRuntime.jsx(Icon.CheckOutlined,{}),onClick:()=>{y()},type:"primary",children:I("ok")}),jsxRuntime.jsx(antd.Button,{icon:jsxRuntime.jsx(Icon.CloseOutlined,{}),onClick:C,children:I("cancel")})]})})]});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(antd.Modal,{title:I("search"),centered:!0,width:p,visible:o&&!u,closable:!0,onCancel:C,footer:null,destroyOnClose:!0,maskClosable:!1,children:v()}),jsxRuntime.jsx(FormModal,{model:s,visible:u,parentContext:d,onSubmitSucceed:O=>{f(!1),C(),a([O])},onCancel:()=>{f(!1),C()}})]})},{error}=antd.Modal,showDialog$3=e=>{error({title:"Error",icon:jsxRuntime.jsx(Icon.ExclamationCircleOutlined,{}),centered:!0,content:e})},Many2one=e=>{const{ooui:o}=e,{required:r}=o,a=async(s,c)=>{if(!c)throw new Error;if(!Array.isArray(c))throw new Error;if(Array.isArray(c)&&!c[0])throw new Error};return jsxRuntime.jsx(Field$1,{required:r,type:"array",validator:a,...e,children:jsxRuntime.jsx(Many2oneInput,{ooui:o})})},Many2oneInput=e=>{const{value:o,onChange:r,ooui:a}=e,{required:s,relation:c,readOnly:l,context:d,id:u,domain:f}=a,p=s&&!l?Config.requiredClass:void 0,[m,I]=React.useState(!1),[h,g]=React.useState(!1),[C,b]=React.useState(!1),[y,v]=React.useState(),O=React.useRef(!1),[w,_]=React.useState(""),F=React.useRef(),L=React.useContext(FormContext$1),{domain:E,getValues:P,getFields:A,getContext:W,setOriginalValue:J,elementHasLostFocus:z}=L||{},Y=React.useRef([]),[Q,oe]=React.useState([]),ee=o&&o[0]||void 0,X=o&&o[1]||"";React.useEffect(()=>{!Array.isArray(o)&&o&&Ce(o)},[o]),React.useEffect(()=>{ee&&X.length===0?Ce(ee):ee&&X.length>0?_(X):!ee&&!X&&_(F.current||"")},[o]);const ue=U=>{r==null||r(U),z==null||z()},Re=U=>{F.current=U.target.value,ue([void 0,""])},xe=async()=>{if(!C&&w!==X){if(await new Promise(U=>setTimeout(U,100)),O.current){ue([void 0,""]);return}b(!0);try{if(Y.current&&Y.current.length>0)ce(F.current);else{const U=await ConnectionProvider.getHandler().nameSearch({model:c,payload:F.current,context:{...W==null?void 0:W(),...d}});U.length===1?(F.current=void 0,ue(U[0])):ce(F.current)}}catch(U){showDialog$3(U)}finally{b(!1)}}},ce=async U=>{if(await te(),Y.current&&Y.current.length>0){const re=await ConnectionProvider.getHandler().searchAllIds({params:Y.current,model:c,context:{...W==null?void 0:W(),...d},totalItems:2});re.length===1?Ce(re[0],!0):(v(U),I(!0));return}v(U),I(!0)},Ce=async(U,re)=>{b(!0);try{const Te=await ConnectionProvider.getHandler().execute({action:"name_get",payload:[U],model:c,context:{...W==null?void 0:W(),...d}});ue([U,Te[0][1]]),re&&J(a.id,[U,Te[0][1]])}catch(Te){showDialog$3(Te)}finally{b(!1)}};async function te(){f&&(Y.current=await ConnectionProvider.getHandler().evalDomain({domain:f,values:transformPlainMany2Ones({fields:A(),values:P()}),context:W()})),E&&E.length>0&&(Y.current=Y.current.concat(ooui.transformDomainForChildWidget({domain:E,widgetFieldName:u}))),oe(Y.current)}async function de(U){U.code==="Enter"?(U.preventDefault(),U.stopPropagation(),await xe()):U.code==="Backspace"&&ee!==void 0&&(U.preventDefault(),U.stopPropagation(),ue([void 0,""]))}const N=s&&!l?RequiredInput:antd.Input;return jsxRuntime.jsxs(antd.Row,{gutter:8,wrap:!1,children:[jsxRuntime.jsx(antd.Col,{flex:"auto",children:jsxRuntime.jsx(N,{type:"text",value:w,disabled:l,onChange:Re,className:p,onBlur:xe,onKeyDown:de,suffix:jsxRuntime.jsx(Many2oneSuffix,{id:ee,model:c,context:{...W==null?void 0:W(),...d}})})}),jsxRuntime.jsx(antd.Col,{flex:"32px",children:jsxRuntime.jsx(antd.Button,{icon:jsxRuntime.jsx(Icon.FolderOpenOutlined,{}),disabled:ee===void 0||X===""||w===void 0,onClick:()=>{g(!0)},tabIndex:-1})}),jsxRuntime.jsx(antd.Col,{flex:"32px",children:jsxRuntime.jsx(antd.Button,{icon:C?jsxRuntime.jsx(Icon.LoadingOutlined,{}):jsxRuntime.jsx(Icon.SearchOutlined,{}),disabled:l||C,onClick:()=>{O.current=!0,ce(X)},tabIndex:-1})}),jsxRuntime.jsx(SearchModal,{model:c,domain:Q,context:{...W==null?void 0:W(),...d},visible:m,nameSearch:ee?void 0:y,onSelectValues:U=>{I(!1),Ce(U[0]),O.current=!1,F.current=void 0},onCloseModal:()=>{I(!1),O.current=!1}}),jsxRuntime.jsx(FormModal,{model:c,parentContext:{...W==null?void 0:W(),...d},id:o&&o[0],visible:h,onSubmitSucceed:U=>{g(!1),Ce(U)},onCancel:()=>{g(!1)},mustClearAfterSave:!0,readOnly:l})]})},RequiredInput=k__default.default(antd.Input)`
|
|
116
116
|
.ant-input {
|
|
117
117
|
background-color: ${Config.requiredColor};
|
|
118
118
|
}
|
|
119
|
-
`,One2manyContext=React__default.default.createContext(null),One2manyProvider=({children:e,initialView:o})=>{const[r,a]=React.useState(o),[s,c]=React.useState(0),[l,d]=React.useState(!1);return jsxRuntime.jsx(One2manyContext.Provider,{value:{currentView:r,setCurrentView:a,itemIndex:s,setItemIndex:c,manualTriggerChange:l,setManualTriggerChange:d},children:e})};var Title$3={},Base={},toArray$1={},hasRequiredToArray;function requireToArray(){if(hasRequiredToArray)return toArray$1;hasRequiredToArray=1;var e=interopRequireDefault.exports;Object.defineProperty(toArray$1,"__esModule",{value:!0}),toArray$1.default=a;var o=e(React__default.default),r=requireReactIs();function a(s){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=[];return o.default.Children.forEach(s,function(d){d==null&&!c.keepEmpty||(Array.isArray(d)?l=l.concat(a(d)):(0,r.isFragment)(d)&&d.props?l=l.concat(a(d.props.children,c)):l.push(d))}),l}return toArray$1}var toggleSelection,hasRequiredToggleSelection;function requireToggleSelection(){return hasRequiredToggleSelection||(hasRequiredToggleSelection=1,toggleSelection=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var o=document.activeElement,r=[],a=0;a<e.rangeCount;a++)r.push(e.getRangeAt(a));switch(o.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":o.blur();break;default:o=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||r.forEach(function(s){e.addRange(s)}),o&&o.focus()}}),toggleSelection}var copyToClipboard,hasRequiredCopyToClipboard;function requireCopyToClipboard(){if(hasRequiredCopyToClipboard)return copyToClipboard;hasRequiredCopyToClipboard=1;var e=requireToggleSelection(),o={"text/plain":"Text","text/html":"Url",default:"Text"},r="Copy to clipboard: #{key}, Enter";function a(c){var l=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return c.replace(/#{\s*key\s*}/g,l)}function s(c,l){var d,u,f,p,m,I,h=!1;l||(l={}),d=l.debug||!1;try{f=e(),p=document.createRange(),m=document.getSelection(),I=document.createElement("span"),I.textContent=c,I.style.all="unset",I.style.position="fixed",I.style.top=0,I.style.clip="rect(0, 0, 0, 0)",I.style.whiteSpace="pre",I.style.webkitUserSelect="text",I.style.MozUserSelect="text",I.style.msUserSelect="text",I.style.userSelect="text",I.addEventListener("copy",function(C){if(C.stopPropagation(),l.format)if(C.preventDefault(),typeof C.clipboardData>"u"){d&&console.warn("unable to use e.clipboardData"),d&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var b=o[l.format]||o.default;window.clipboardData.setData(b,c)}else C.clipboardData.clearData(),C.clipboardData.setData(l.format,c);l.onCopy&&(C.preventDefault(),l.onCopy(C.clipboardData))}),document.body.appendChild(I),p.selectNodeContents(I),m.addRange(p);var v=document.execCommand("copy");if(!v)throw new Error("copy command was unsuccessful");h=!0}catch(C){d&&console.error("unable to copy using execCommand: ",C),d&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(l.format||"text",c),l.onCopy&&l.onCopy(window.clipboardData),h=!0}catch(b){d&&console.error("unable to copy using clipboardData: ",b),d&&console.error("falling back to prompt"),u=a("message"in l?l.message:r),window.prompt(u,c)}}finally{m&&(typeof m.removeRange=="function"?m.removeRange(p):m.removeAllRanges()),I&&document.body.removeChild(I),f()}return h}return copyToClipboard=s,copyToClipboard}var EditOutlined$2={exports:{}},EditOutlined$1={},EditOutlined={},hasRequiredEditOutlined$2;function requireEditOutlined$2(){if(hasRequiredEditOutlined$2)return EditOutlined;hasRequiredEditOutlined$2=1,Object.defineProperty(EditOutlined,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"};return EditOutlined.default=e,EditOutlined}var hasRequiredEditOutlined$1;function requireEditOutlined$1(){if(hasRequiredEditOutlined$1)return EditOutlined$1;hasRequiredEditOutlined$1=1;var e=interopRequireWildcard.exports,o=interopRequireDefault.exports;Object.defineProperty(EditOutlined$1,"__esModule",{value:!0}),EditOutlined$1.default=void 0;var r=o(requireObjectSpread2()),a=e(React__default.default),s=o(requireEditOutlined$2()),c=o(requireAntdIcon()),l=function(f,p){return a.createElement(c.default,(0,r.default)((0,r.default)({},f),{},{ref:p,icon:s.default}))};l.displayName="EditOutlined";var d=a.forwardRef(l);return EditOutlined$1.default=d,EditOutlined$1}var hasRequiredEditOutlined;function requireEditOutlined(){return hasRequiredEditOutlined||(hasRequiredEditOutlined=1,function(e,o){Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var r=a(requireEditOutlined$1());function a(c){return c&&c.__esModule?c:{default:c}}var s=r;o.default=s,e.exports=s}(EditOutlined$2,EditOutlined$2.exports)),EditOutlined$2.exports}var CheckOutlined$2={exports:{}},CheckOutlined$1={},CheckOutlined={},hasRequiredCheckOutlined$2;function requireCheckOutlined$2(){if(hasRequiredCheckOutlined$2)return CheckOutlined;hasRequiredCheckOutlined$2=1,Object.defineProperty(CheckOutlined,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};return CheckOutlined.default=e,CheckOutlined}var hasRequiredCheckOutlined$1;function requireCheckOutlined$1(){if(hasRequiredCheckOutlined$1)return CheckOutlined$1;hasRequiredCheckOutlined$1=1;var e=interopRequireWildcard.exports,o=interopRequireDefault.exports;Object.defineProperty(CheckOutlined$1,"__esModule",{value:!0}),CheckOutlined$1.default=void 0;var r=o(requireObjectSpread2()),a=e(React__default.default),s=o(requireCheckOutlined$2()),c=o(requireAntdIcon()),l=function(f,p){return a.createElement(c.default,(0,r.default)((0,r.default)({},f),{},{ref:p,icon:s.default}))};l.displayName="CheckOutlined";var d=a.forwardRef(l);return CheckOutlined$1.default=d,CheckOutlined$1}var hasRequiredCheckOutlined;function requireCheckOutlined(){return hasRequiredCheckOutlined||(hasRequiredCheckOutlined=1,function(e,o){Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var r=a(requireCheckOutlined$1());function a(c){return c&&c.__esModule?c:{default:c}}var s=r;o.default=s,e.exports=s}(CheckOutlined$2,CheckOutlined$2.exports)),CheckOutlined$2.exports}var CopyOutlined$2={exports:{}},CopyOutlined$1={},CopyOutlined={},hasRequiredCopyOutlined$2;function requireCopyOutlined$2(){if(hasRequiredCopyOutlined$2)return CopyOutlined;hasRequiredCopyOutlined$2=1,Object.defineProperty(CopyOutlined,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"};return CopyOutlined.default=e,CopyOutlined}var hasRequiredCopyOutlined$1;function requireCopyOutlined$1(){if(hasRequiredCopyOutlined$1)return CopyOutlined$1;hasRequiredCopyOutlined$1=1;var e=interopRequireWildcard.exports,o=interopRequireDefault.exports;Object.defineProperty(CopyOutlined$1,"__esModule",{value:!0}),CopyOutlined$1.default=void 0;var r=o(requireObjectSpread2()),a=e(React__default.default),s=o(requireCopyOutlined$2()),c=o(requireAntdIcon()),l=function(f,p){return a.createElement(c.default,(0,r.default)((0,r.default)({},f),{},{ref:p,icon:s.default}))};l.displayName="CopyOutlined";var d=a.forwardRef(l);return CopyOutlined$1.default=d,CopyOutlined$1}var hasRequiredCopyOutlined;function requireCopyOutlined(){return hasRequiredCopyOutlined||(hasRequiredCopyOutlined=1,function(e,o){Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var r=a(requireCopyOutlined$1());function a(c){return c&&c.__esModule?c:{default:c}}var s=r;o.default=s,e.exports=s}(CopyOutlined$2,CopyOutlined$2.exports)),CopyOutlined$2.exports}const require$$18=getAugmentedNamespace(es$4);var transButton={},KeyCode={},hasRequiredKeyCode;function requireKeyCode(){if(hasRequiredKeyCode)return KeyCode;hasRequiredKeyCode=1,Object.defineProperty(KeyCode,"__esModule",{value:!0}),KeyCode.default=void 0;var e={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(a){var s=a.keyCode;if(a.altKey&&!a.ctrlKey||a.metaKey||s>=e.F1&&s<=e.F12)return!1;switch(s){case e.ALT:case e.CAPS_LOCK:case e.CONTEXT_MENU:case e.CTRL:case e.DOWN:case e.END:case e.ESC:case e.HOME:case e.INSERT:case e.LEFT:case e.MAC_FF_META:case e.META:case e.NUMLOCK:case e.NUM_CENTER:case e.PAGE_DOWN:case e.PAGE_UP:case e.PAUSE:case e.PRINT_SCREEN:case e.RIGHT:case e.SHIFT:case e.UP:case e.WIN_KEY:case e.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(a){if(a>=e.ZERO&&a<=e.NINE||a>=e.NUM_ZERO&&a<=e.NUM_MULTIPLY||a>=e.A&&a<=e.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&a===0)return!0;switch(a){case e.SPACE:case e.QUESTION_MARK:case e.NUM_PLUS:case e.NUM_MINUS:case e.NUM_PERIOD:case e.NUM_DIVISION:case e.SEMICOLON:case e.DASH:case e.EQUALS:case e.COMMA:case e.PERIOD:case e.SLASH:case e.APOSTROPHE:case e.SINGLE_QUOTE:case e.OPEN_SQUARE_BRACKET:case e.BACKSLASH:case e.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},o=e;return KeyCode.default=o,KeyCode}var hasRequiredTransButton;function requireTransButton(){return hasRequiredTransButton||(hasRequiredTransButton=1,function(e){var o=interopRequireWildcard.exports,r=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=r(require_extends()),s=o(React__default.default),c=r(requireKeyCode()),l=function(p,m){var I={};for(var h in p)Object.prototype.hasOwnProperty.call(p,h)&&m.indexOf(h)<0&&(I[h]=p[h]);if(p!=null&&typeof Object.getOwnPropertySymbols=="function")for(var v=0,h=Object.getOwnPropertySymbols(p);v<h.length;v++)m.indexOf(h[v])<0&&Object.prototype.propertyIsEnumerable.call(p,h[v])&&(I[h[v]]=p[h[v]]);return I},d={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-block"},u=s.forwardRef(function(p,m){var I=function(w){var _=w.keyCode;_===c.default.ENTER&&w.preventDefault()},h=function(w){var _=w.keyCode,F=p.onClick;_===c.default.ENTER&&F&&F()},v=p.style,C=p.noStyle,b=p.disabled,y=l(p,["style","noStyle","disabled"]),g={};return C||(g=(0,a.default)({},d)),b&&(g.pointerEvents="none"),g=(0,a.default)((0,a.default)({},g),v),s.createElement("div",(0,a.default)({role:"button",tabIndex:0,ref:m},y,{onKeyDown:I,onKeyUp:h,style:g}))}),f=u;e.default=f}(transButton)),transButton}var raf$1={},raf={},hasRequiredRaf$1;function requireRaf$1(){if(hasRequiredRaf$1)return raf;hasRequiredRaf$1=1,Object.defineProperty(raf,"__esModule",{value:!0}),raf.default=r;var e=function(s){return+setTimeout(s,16)},o=function(s){return clearTimeout(s)};typeof window<"u"&&"requestAnimationFrame"in window&&(e=function(s){return window.requestAnimationFrame(s)},o=function(s){return window.cancelAnimationFrame(s)});function r(a){return e(a)}return r.cancel=o,raf}var hasRequiredRaf;function requireRaf(){return hasRequiredRaf||(hasRequiredRaf=1,function(e){var o=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=c;var r=o(requireRaf$1()),a=0,s={};function c(l){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,u=a++,f=d;function p(){f-=1,f<=0?(l(),delete s[u]):s[u]=(0,r.default)(p)}return s[u]=(0,r.default)(p),u}c.cancel=function(d){d!==void 0&&(r.default.cancel(s[d]),delete s[d])},c.ids=s}(raf$1)),raf$1}var styleChecker={},canUseDom={},hasRequiredCanUseDom;function requireCanUseDom(){if(hasRequiredCanUseDom)return canUseDom;hasRequiredCanUseDom=1,Object.defineProperty(canUseDom,"__esModule",{value:!0}),canUseDom.default=e;function e(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}return canUseDom}var hasRequiredStyleChecker;function requireStyleChecker(){if(hasRequiredStyleChecker)return styleChecker;hasRequiredStyleChecker=1;var e=interopRequireDefault.exports;Object.defineProperty(styleChecker,"__esModule",{value:!0}),styleChecker.detectFlexGapSupported=styleChecker.isStyleSupport=styleChecker.canUseDocElement=void 0;var o=e(requireCanUseDom()),r=function(){return(0,o.default)()&&window.document.documentElement};styleChecker.canUseDocElement=r;var a=function(d){if(r()){var u=Array.isArray(d)?d:[d],f=window.document.documentElement;return u.some(function(p){return p in f.style})}return!1};styleChecker.isStyleSupport=a;var s,c=function(){if(!r())return!1;if(s!==void 0)return s;var d=document.createElement("div");return d.style.display="flex",d.style.flexDirection="column",d.style.rowGap="1px",d.appendChild(document.createElement("div")),d.appendChild(document.createElement("div")),document.body.appendChild(d),s=d.scrollHeight===1,document.body.removeChild(d),s};return styleChecker.detectFlexGapSupported=c,styleChecker}var tooltip={};function contains(e,o){return e?e.contains(o):!1}function addEventListenerWrap(e,o,r,a){var s=ReactDOM__default.default.unstable_batchedUpdates?function(l){ReactDOM__default.default.unstable_batchedUpdates(r,l)}:r;return e.addEventListener&&e.addEventListener(o,s,a),{remove:function(){e.removeEventListener&&e.removeEventListener(o,s)}}}var Portal=React.forwardRef(function(e,o){var r=e.didUpdate,a=e.getContainer,s=e.children,c=React.useRef();React.useImperativeHandle(o,function(){return{}});var l=React.useRef(!1);return!l.current&&canUseDom$1()&&(c.current=a(),l.current=!0),React.useEffect(function(){r==null||r(e)}),React.useEffect(function(){return function(){var d,u;(d=c.current)===null||d===void 0||(u=d.parentNode)===null||u===void 0||u.removeChild(c.current)}},[]),c.current?ReactDOM__default.default.createPortal(s,c.current):null});function isPointsEq(e,o,r){return r?e[0]===o[0]:e[0]===o[0]&&e[1]===o[1]}function getAlignFromPlacement(e,o,r){var a=e[o]||{};return _objectSpread2$1(_objectSpread2$1({},a),r)}function getAlignPopupClassName(e,o,r,a){for(var s=r.points,c=Object.keys(e),l=0;l<c.length;l+=1){var d=c[l];if(isPointsEq(e[d].points,s,a))return"".concat(o,"-placement-").concat(d)}return""}const isMobile=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return!!(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e.substr(0,4)))};function getMotion(e){var o=e.prefixCls,r=e.motion,a=e.animation,s=e.transitionName;return r||(a?{motionName:"".concat(o,"-").concat(a)}:s?{motionName:s}:null)}function Mask(e){var o=e.prefixCls,r=e.visible,a=e.zIndex,s=e.mask,c=e.maskMotion,l=e.maskAnimation,d=e.maskTransitionName;if(!s)return null;var u={};return(c||d||l)&&(u=_objectSpread2$1({motionAppear:!0},getMotion({motion:c,prefixCls:o,transitionName:d,animation:l}))),jsxRuntime.jsx(CSSMotion,{...u,visible:r,removeOnLeave:!0,children:function(f){var p=f.className;return jsxRuntime.jsx("div",{style:{zIndex:a},className:classnamesExports("".concat(o,"-mask"),p)})}})}const isVisible=function(e){if(!e)return!1;if(e.offsetParent)return!0;if(e.getBBox){var o=e.getBBox();if(o.width||o.height)return!0}if(e.getBoundingClientRect){var r=e.getBoundingClientRect();if(r.width||r.height)return!0}return!1};function _typeof(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(o){return typeof o}:_typeof=function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(e)}function _defineProperty(e,o,r){return o in e?Object.defineProperty(e,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[o]=r,e}function ownKeys(e,o){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);o&&(a=a.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,a)}return r}function _objectSpread2(e){for(var o=1;o<arguments.length;o++){var r=arguments[o]!=null?arguments[o]:{};o%2?ownKeys(r,!0).forEach(function(a){_defineProperty(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(r).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}var vendorPrefix,jsCssMap={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"};function getVendorPrefix(){if(vendorPrefix!==void 0)return vendorPrefix;vendorPrefix="";var e=document.createElement("p").style,o="Transform";for(var r in jsCssMap)r+o in e&&(vendorPrefix=r);return vendorPrefix}function getTransitionName(){return getVendorPrefix()?"".concat(getVendorPrefix(),"TransitionProperty"):"transitionProperty"}function getTransformName(){return getVendorPrefix()?"".concat(getVendorPrefix(),"Transform"):"transform"}function setTransitionProperty(e,o){var r=getTransitionName();r&&(e.style[r]=o,r!=="transitionProperty"&&(e.style.transitionProperty=o))}function setTransform(e,o){var r=getTransformName();r&&(e.style[r]=o,r!=="transform"&&(e.style.transform=o))}function getTransitionProperty(e){return e.style.transitionProperty||e.style[getTransitionName()]}function getTransformXY(e){var o=window.getComputedStyle(e,null),r=o.getPropertyValue("transform")||o.getPropertyValue(getTransformName());if(r&&r!=="none"){var a=r.replace(/[^0-9\-.,]/g,"").split(",");return{x:parseFloat(a[12]||a[4],0),y:parseFloat(a[13]||a[5],0)}}return{x:0,y:0}}var matrix2d=/matrix\((.*)\)/,matrix3d=/matrix3d\((.*)\)/;function setTransformXY(e,o){var r=window.getComputedStyle(e,null),a=r.getPropertyValue("transform")||r.getPropertyValue(getTransformName());if(a&&a!=="none"){var s,c=a.match(matrix2d);if(c)c=c[1],s=c.split(",").map(function(d){return parseFloat(d,10)}),s[4]=o.x,s[5]=o.y,setTransform(e,"matrix(".concat(s.join(","),")"));else{var l=a.match(matrix3d)[1];s=l.split(",").map(function(d){return parseFloat(d,10)}),s[12]=o.x,s[13]=o.y,setTransform(e,"matrix3d(".concat(s.join(","),")"))}}else setTransform(e,"translateX(".concat(o.x,"px) translateY(").concat(o.y,"px) translateZ(0)"))}var RE_NUM=/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,getComputedStyleX;function forceRelayout(e){var o=e.style.display;e.style.display="none",e.offsetHeight,e.style.display=o}function css(e,o,r){var a=r;if(_typeof(o)==="object"){for(var s in o)o.hasOwnProperty(s)&&css(e,s,o[s]);return}if(typeof a<"u"){typeof a=="number"&&(a="".concat(a,"px")),e.style[o]=a;return}return getComputedStyleX(e,o)}function getClientPosition(e){var o,r,a,s=e.ownerDocument,c=s.body,l=s&&s.documentElement;return o=e.getBoundingClientRect(),r=o.left,a=o.top,r-=l.clientLeft||c.clientLeft||0,a-=l.clientTop||c.clientTop||0,{left:r,top:a}}function getScroll(e,o){var r=e["page".concat(o?"Y":"X","Offset")],a="scroll".concat(o?"Top":"Left");if(typeof r!="number"){var s=e.document;r=s.documentElement[a],typeof r!="number"&&(r=s.body[a])}return r}function getScrollLeft(e){return getScroll(e)}function getScrollTop(e){return getScroll(e,!0)}function getOffset(e){var o=getClientPosition(e),r=e.ownerDocument,a=r.defaultView||r.parentWindow;return o.left+=getScrollLeft(a),o.top+=getScrollTop(a),o}function isWindow(e){return e!=null&&e==e.window}function getDocument(e){return isWindow(e)?e.document:e.nodeType===9?e:e.ownerDocument}function _getComputedStyle(e,o,r){var a=r,s="",c=getDocument(e);return a=a||c.defaultView.getComputedStyle(e,null),a&&(s=a.getPropertyValue(o)||a[o]),s}var _RE_NUM_NO_PX=new RegExp("^(".concat(RE_NUM,")(?!px)[a-z%]+$"),"i"),RE_POS=/^(top|right|bottom|left)$/,CURRENT_STYLE="currentStyle",RUNTIME_STYLE="runtimeStyle",LEFT="left",PX="px";function _getComputedStyleIE(e,o){var r=e[CURRENT_STYLE]&&e[CURRENT_STYLE][o];if(_RE_NUM_NO_PX.test(r)&&!RE_POS.test(o)){var a=e.style,s=a[LEFT],c=e[RUNTIME_STYLE][LEFT];e[RUNTIME_STYLE][LEFT]=e[CURRENT_STYLE][LEFT],a[LEFT]=o==="fontSize"?"1em":r||0,r=a.pixelLeft+PX,a[LEFT]=s,e[RUNTIME_STYLE][LEFT]=c}return r===""?"auto":r}typeof window<"u"&&(getComputedStyleX=window.getComputedStyle?_getComputedStyle:_getComputedStyleIE);function getOffsetDirection(e,o){return e==="left"?o.useCssRight?"right":e:o.useCssBottom?"bottom":e}function oppositeOffsetDirection(e){if(e==="left")return"right";if(e==="right")return"left";if(e==="top")return"bottom";if(e==="bottom")return"top"}function setLeftTop(e,o,r){css(e,"position")==="static"&&(e.style.position="relative");var a=-999,s=-999,c=getOffsetDirection("left",r),l=getOffsetDirection("top",r),d=oppositeOffsetDirection(c),u=oppositeOffsetDirection(l);c!=="left"&&(a=999),l!=="top"&&(s=999);var f="",p=getOffset(e);("left"in o||"top"in o)&&(f=getTransitionProperty(e)||"",setTransitionProperty(e,"none")),"left"in o&&(e.style[d]="",e.style[c]="".concat(a,"px")),"top"in o&&(e.style[u]="",e.style[l]="".concat(s,"px")),forceRelayout(e);var m=getOffset(e),I={};for(var h in o)if(o.hasOwnProperty(h)){var v=getOffsetDirection(h,r),C=h==="left"?a:s,b=p[h]-m[h];v===h?I[v]=C+b:I[v]=C-b}css(e,I),forceRelayout(e),("left"in o||"top"in o)&&setTransitionProperty(e,f);var y={};for(var g in o)if(o.hasOwnProperty(g)){var O=getOffsetDirection(g,r),w=o[g]-p[g];g===O?y[O]=I[O]+w:y[O]=I[O]-w}css(e,y)}function setTransform$1(e,o){var r=getOffset(e),a=getTransformXY(e),s={x:a.x,y:a.y};"left"in o&&(s.x=a.x+o.left-r.left),"top"in o&&(s.y=a.y+o.top-r.top),setTransformXY(e,s)}function setOffset(e,o,r){if(r.ignoreShake){var a=getOffset(e),s=a.left.toFixed(0),c=a.top.toFixed(0),l=o.left.toFixed(0),d=o.top.toFixed(0);if(s===l&&c===d)return}r.useCssRight||r.useCssBottom?setLeftTop(e,o,r):r.useCssTransform&&getTransformName()in document.body.style?setTransform$1(e,o):setLeftTop(e,o,r)}function each(e,o){for(var r=0;r<e.length;r++)o(e[r])}function isBorderBoxFn(e){return getComputedStyleX(e,"boxSizing")==="border-box"}var BOX_MODELS=["margin","border","padding"],CONTENT_INDEX=-1,PADDING_INDEX=2,BORDER_INDEX=1,MARGIN_INDEX=0;function swap(e,o,r){var a={},s=e.style,c;for(c in o)o.hasOwnProperty(c)&&(a[c]=s[c],s[c]=o[c]);r.call(e);for(c in o)o.hasOwnProperty(c)&&(s[c]=a[c])}function getPBMWidth(e,o,r){var a=0,s,c,l;for(c=0;c<o.length;c++)if(s=o[c],s)for(l=0;l<r.length;l++){var d=void 0;s==="border"?d="".concat(s).concat(r[l],"Width"):d=s+r[l],a+=parseFloat(getComputedStyleX(e,d))||0}return a}var domUtils={getParent:function e(o){var r=o;do r.nodeType===11&&r.host?r=r.host:r=r.parentNode;while(r&&r.nodeType!==1&&r.nodeType!==9);return r}};each(["Width","Height"],function(e){domUtils["doc".concat(e)]=function(o){var r=o.document;return Math.max(r.documentElement["scroll".concat(e)],r.body["scroll".concat(e)],domUtils["viewport".concat(e)](r))},domUtils["viewport".concat(e)]=function(o){var r="client".concat(e),a=o.document,s=a.body,c=a.documentElement,l=c[r];return a.compatMode==="CSS1Compat"&&l||s&&s[r]||l}});function getWH(e,o,r){var a=r;if(isWindow(e))return o==="width"?domUtils.viewportWidth(e):domUtils.viewportHeight(e);if(e.nodeType===9)return o==="width"?domUtils.docWidth(e):domUtils.docHeight(e);var s=o==="width"?["Left","Right"]:["Top","Bottom"],c=o==="width"?e.getBoundingClientRect().width:e.getBoundingClientRect().height;getComputedStyleX(e);var l=isBorderBoxFn(e),d=0;(c==null||c<=0)&&(c=void 0,d=getComputedStyleX(e,o),(d==null||Number(d)<0)&&(d=e.style[o]||0),d=parseFloat(d)||0),a===void 0&&(a=l?BORDER_INDEX:CONTENT_INDEX);var u=c!==void 0||l,f=c||d;return a===CONTENT_INDEX?u?f-getPBMWidth(e,["border","padding"],s):d:u?a===BORDER_INDEX?f:f+(a===PADDING_INDEX?-getPBMWidth(e,["border"],s):getPBMWidth(e,["margin"],s)):d+getPBMWidth(e,BOX_MODELS.slice(a),s)}var cssShow={position:"absolute",visibility:"hidden",display:"block"};function getWHIgnoreDisplay(){for(var e=arguments.length,o=new Array(e),r=0;r<e;r++)o[r]=arguments[r];var a,s=o[0];return s.offsetWidth!==0?a=getWH.apply(void 0,o):swap(s,cssShow,function(){a=getWH.apply(void 0,o)}),a}each(["width","height"],function(e){var o=e.charAt(0).toUpperCase()+e.slice(1);domUtils["outer".concat(o)]=function(a,s){return a&&getWHIgnoreDisplay(a,e,s?MARGIN_INDEX:BORDER_INDEX)};var r=e==="width"?["Left","Right"]:["Top","Bottom"];domUtils[e]=function(a,s){var c=s;if(c!==void 0){if(a){getComputedStyleX(a);var l=isBorderBoxFn(a);return l&&(c+=getPBMWidth(a,["padding","border"],r)),css(a,e,c)}return}return a&&getWHIgnoreDisplay(a,e,CONTENT_INDEX)}});function mix(e,o){for(var r in o)o.hasOwnProperty(r)&&(e[r]=o[r]);return e}var utils={getWindow:function e(o){if(o&&o.document&&o.setTimeout)return o;var r=o.ownerDocument||o;return r.defaultView||r.parentWindow},getDocument,offset:function e(o,r,a){if(typeof r<"u")setOffset(o,r,a||{});else return getOffset(o)},isWindow,each,css,clone:function e(o){var r,a={};for(r in o)o.hasOwnProperty(r)&&(a[r]=o[r]);var s=o.overflow;if(s)for(r in o)o.hasOwnProperty(r)&&(a.overflow[r]=o.overflow[r]);return a},mix,getWindowScrollLeft:function e(o){return getScrollLeft(o)},getWindowScrollTop:function e(o){return getScrollTop(o)},merge:function e(){for(var o={},r=0;r<arguments.length;r++)utils.mix(o,r<0||arguments.length<=r?void 0:arguments[r]);return o},viewportWidth:0,viewportHeight:0};mix(utils,domUtils);var getParent=utils.getParent;function getOffsetParent(e){if(utils.isWindow(e)||e.nodeType===9)return null;var o=utils.getDocument(e),r=o.body,a,s=utils.css(e,"position"),c=s==="fixed"||s==="absolute";if(!c)return e.nodeName.toLowerCase()==="html"?null:getParent(e);for(a=getParent(e);a&&a!==r&&a.nodeType!==9;a=getParent(a))if(s=utils.css(a,"position"),s!=="static")return a;return null}var getParent$1=utils.getParent;function isAncestorFixed(e){if(utils.isWindow(e)||e.nodeType===9)return!1;var o=utils.getDocument(e),r=o.body,a=null;for(a=getParent$1(e);a&&a!==r;a=getParent$1(a)){var s=utils.css(a,"position");if(s==="fixed")return!0}return!1}function getVisibleRectForElement(e,o){for(var r={left:0,right:1/0,top:0,bottom:1/0},a=getOffsetParent(e),s=utils.getDocument(e),c=s.defaultView||s.parentWindow,l=s.body,d=s.documentElement;a;){if((navigator.userAgent.indexOf("MSIE")===-1||a.clientWidth!==0)&&a!==l&&a!==d&&utils.css(a,"overflow")!=="visible"){var u=utils.offset(a);u.left+=a.clientLeft,u.top+=a.clientTop,r.top=Math.max(r.top,u.top),r.right=Math.min(r.right,u.left+a.clientWidth),r.bottom=Math.min(r.bottom,u.top+a.clientHeight),r.left=Math.max(r.left,u.left)}else if(a===l||a===d)break;a=getOffsetParent(a)}var f=null;if(!utils.isWindow(e)&&e.nodeType!==9){f=e.style.position;var p=utils.css(e,"position");p==="absolute"&&(e.style.position="fixed")}var m=utils.getWindowScrollLeft(c),I=utils.getWindowScrollTop(c),h=utils.viewportWidth(c),v=utils.viewportHeight(c),C=d.scrollWidth,b=d.scrollHeight,y=window.getComputedStyle(l);if(y.overflowX==="hidden"&&(C=c.innerWidth),y.overflowY==="hidden"&&(b=c.innerHeight),e.style&&(e.style.position=f),o||isAncestorFixed(e))r.left=Math.max(r.left,m),r.top=Math.max(r.top,I),r.right=Math.min(r.right,m+h),r.bottom=Math.min(r.bottom,I+v);else{var g=Math.max(C,m+h);r.right=Math.min(r.right,g);var O=Math.max(b,I+v);r.bottom=Math.min(r.bottom,O)}return r.top>=0&&r.left>=0&&r.bottom>r.top&&r.right>r.left?r:null}function adjustForViewport(e,o,r,a){var s=utils.clone(e),c={width:o.width,height:o.height};return a.adjustX&&s.left<r.left&&(s.left=r.left),a.resizeWidth&&s.left>=r.left&&s.left+c.width>r.right&&(c.width-=s.left+c.width-r.right),a.adjustX&&s.left+c.width>r.right&&(s.left=Math.max(r.right-c.width,r.left)),a.adjustY&&s.top<r.top&&(s.top=r.top),a.resizeHeight&&s.top>=r.top&&s.top+c.height>r.bottom&&(c.height-=s.top+c.height-r.bottom),a.adjustY&&s.top+c.height>r.bottom&&(s.top=Math.max(r.bottom-c.height,r.top)),utils.mix(s,c)}function getRegion(e){var o,r,a;if(!utils.isWindow(e)&&e.nodeType!==9)o=utils.offset(e),r=utils.outerWidth(e),a=utils.outerHeight(e);else{var s=utils.getWindow(e);o={left:utils.getWindowScrollLeft(s),top:utils.getWindowScrollTop(s)},r=utils.viewportWidth(s),a=utils.viewportHeight(s)}return o.width=r,o.height=a,o}function getAlignOffset(e,o){var r=o.charAt(0),a=o.charAt(1),s=e.width,c=e.height,l=e.left,d=e.top;return r==="c"?d+=c/2:r==="b"&&(d+=c),a==="c"?l+=s/2:a==="r"&&(l+=s),{left:l,top:d}}function getElFuturePos(e,o,r,a,s){var c=getAlignOffset(o,r[1]),l=getAlignOffset(e,r[0]),d=[l.left-c.left,l.top-c.top];return{left:Math.round(e.left-d[0]+a[0]-s[0]),top:Math.round(e.top-d[1]+a[1]-s[1])}}function isFailX(e,o,r){return e.left<r.left||e.left+o.width>r.right}function isFailY(e,o,r){return e.top<r.top||e.top+o.height>r.bottom}function isCompleteFailX(e,o,r){return e.left>r.right||e.left+o.width<r.left}function isCompleteFailY(e,o,r){return e.top>r.bottom||e.top+o.height<r.top}function flip(e,o,r){var a=[];return utils.each(e,function(s){a.push(s.replace(o,function(c){return r[c]}))}),a}function flipOffset(e,o){return e[o]=-e[o],e}function convertOffset(e,o){var r;return/%$/.test(e)?r=parseInt(e.substring(0,e.length-1),10)/100*o:r=parseInt(e,10),r||0}function normalizeOffset(e,o){e[0]=convertOffset(e[0],o.width),e[1]=convertOffset(e[1],o.height)}function doAlign(e,o,r,a){var s=r.points,c=r.offset||[0,0],l=r.targetOffset||[0,0],d=r.overflow,u=r.source||e;c=[].concat(c),l=[].concat(l),d=d||{};var f={},p=0,m=!!(d&&d.alwaysByViewport),I=getVisibleRectForElement(u,m),h=getRegion(u);normalizeOffset(c,h),normalizeOffset(l,o);var v=getElFuturePos(h,o,s,c,l),C=utils.merge(h,v);if(I&&(d.adjustX||d.adjustY)&&a){if(d.adjustX&&isFailX(v,h,I)){var b=flip(s,/[lr]/gi,{l:"r",r:"l"}),y=flipOffset(c,0),g=flipOffset(l,0),O=getElFuturePos(h,o,b,y,g);isCompleteFailX(O,h,I)||(p=1,s=b,c=y,l=g)}if(d.adjustY&&isFailY(v,h,I)){var w=flip(s,/[tb]/gi,{t:"b",b:"t"}),_=flipOffset(c,1),F=flipOffset(l,1),L=getElFuturePos(h,o,w,_,F);isCompleteFailY(L,h,I)||(p=1,s=w,c=_,l=F)}p&&(v=getElFuturePos(h,o,s,c,l),utils.mix(C,v));var E=isFailX(v,h,I),P=isFailY(v,h,I);if(E||P){var A=s;E&&(A=flip(s,/[lr]/gi,{l:"r",r:"l"})),P&&(A=flip(s,/[tb]/gi,{t:"b",b:"t"})),s=A,c=r.offset||[0,0],l=r.targetOffset||[0,0]}f.adjustX=d.adjustX&&E,f.adjustY=d.adjustY&&P,(f.adjustX||f.adjustY)&&(C=adjustForViewport(v,h,I,f))}return C.width!==h.width&&utils.css(u,"width",utils.width(u)+C.width-h.width),C.height!==h.height&&utils.css(u,"height",utils.height(u)+C.height-h.height),utils.offset(u,{left:C.left,top:C.top},{useCssRight:r.useCssRight,useCssBottom:r.useCssBottom,useCssTransform:r.useCssTransform,ignoreShake:r.ignoreShake}),{points:s,offset:c,targetOffset:l,overflow:f}}function isOutOfVisibleRect(e,o){var r=getVisibleRectForElement(e,o),a=getRegion(e);return!r||a.left+a.width<=r.left||a.top+a.height<=r.top||a.left>=r.right||a.top>=r.bottom}function alignElement(e,o,r){var a=r.target||o,s=getRegion(a),c=!isOutOfVisibleRect(a,r.overflow&&r.overflow.alwaysByViewport);return doAlign(e,s,r,c)}alignElement.__getOffsetParent=getOffsetParent,alignElement.__getVisibleRectForElement=getVisibleRectForElement;function alignPoint(e,o,r){var a,s,c=utils.getDocument(e),l=c.defaultView||c.parentWindow,d=utils.getWindowScrollLeft(l),u=utils.getWindowScrollTop(l),f=utils.viewportWidth(l),p=utils.viewportHeight(l);"pageX"in o?a=o.pageX:a=d+o.clientX,"pageY"in o?s=o.pageY:s=u+o.clientY;var m={left:a,top:s,width:0,height:0},I=a>=0&&a<=d+f&&s>=0&&s<=u+p,h=[r.points[0],"cc"];return doAlign(e,m,_objectSpread2({},r,{points:h}),I)}function isSamePoint(e,o){return e===o?!0:!e||!o?!1:"pageX"in o&&"pageY"in o?e.pageX===o.pageX&&e.pageY===o.pageY:"clientX"in o&&"clientY"in o?e.clientX===o.clientX&&e.clientY===o.clientY:!1}function restoreFocus(e,o){e!==document.activeElement&&contains(o,e)&&typeof e.focus=="function"&&e.focus()}function monitorResize(e,o){var r=null,a=null;function s(l){var d=_slicedToArray(l,1),u=d[0].target;if(!!document.documentElement.contains(u)){var f=u.getBoundingClientRect(),p=f.width,m=f.height,I=Math.floor(p),h=Math.floor(m);(r!==I||a!==h)&&Promise.resolve().then(function(){o({width:I,height:h})}),r=I,a=h}}var c=new index(s);return e&&c.observe(e),function(){c.disconnect()}}const useBuffer=function(e,o){var r=React__default.default.useRef(!1),a=React__default.default.useRef(null);function s(){window.clearTimeout(a.current)}function c(l){if(!r.current||l===!0){if(e()===!1)return;r.current=!0,s(),a.current=window.setTimeout(function(){r.current=!1},o)}else s(),a.current=window.setTimeout(function(){r.current=!1,c()},o)}return[c,function(){r.current=!1,s()}]};function getElement(e){return typeof e!="function"?null:e()}function getPoint(e){return _typeof$1(e)!=="object"||!e?null:e}var Align=function e(o,r){var a=o.children,s=o.disabled,c=o.target,l=o.align,d=o.onAlign,u=o.monitorWindowResize,f=o.monitorBufferTime,p=f===void 0?0:f,m=React__default.default.useRef({}),I=React__default.default.useRef(),h=React__default.default.Children.only(a),v=React__default.default.useRef({});v.current.disabled=s,v.current.target=c,v.current.onAlign=d;var C=useBuffer(function(){var F=v.current,L=F.disabled,E=F.target,P=F.onAlign;if(!L&&E){var A=I.current,W,J=getElement(E),Y=getPoint(E);m.current.element=J,m.current.point=Y;var z=document,Q=z.activeElement;return J&&isVisible(J)?W=alignElement(A,J,l):Y&&(W=alignPoint(A,Y,l)),restoreFocus(Q,A),P&&W&&P(A,W),!0}return!1},p),b=_slicedToArray(C,2),y=b[0],g=b[1],O=React__default.default.useRef({cancel:function(){}}),w=React__default.default.useRef({cancel:function(){}});React__default.default.useEffect(function(){var F=getElement(c),L=getPoint(c);I.current!==w.current.element&&(w.current.cancel(),w.current.element=I.current,w.current.cancel=monitorResize(I.current,y)),(m.current.element!==F||!isSamePoint(m.current.point,L))&&(y(),O.current.element!==F&&(O.current.cancel(),O.current.element=F,O.current.cancel=monitorResize(F,y)))}),React__default.default.useEffect(function(){s?g():y()},[s]);var _=React__default.default.useRef(null);return React__default.default.useEffect(function(){u?_.current||(_.current=addEventListenerWrap(window,"resize",y)):_.current&&(_.current.remove(),_.current=null)},[u]),React__default.default.useEffect(function(){return function(){O.current.cancel(),w.current.cancel(),_.current&&_.current.remove(),g()}},[]),React__default.default.useImperativeHandle(r,function(){return{forceAlign:function(){return y(!0)}}}),React__default.default.isValidElement(h)&&(h=React__default.default.cloneElement(h,{ref:composeRef(h.ref,I)})),h},RefAlign=React__default.default.forwardRef(Align);RefAlign.displayName="Align";var StatusQueue=["measure","align",null,"motion"];const useVisibleStatus=function(e,o){var r=React.useState(null),a=_slicedToArray(r,2),s=a[0],c=a[1],l=React.useRef(),d=React.useRef(!1);function u(m){d.current||c(m)}function f(){wrapperRaf.cancel(l.current)}function p(m){f(),l.current=wrapperRaf(function(){u(function(I){switch(s){case"align":return"motion";case"motion":return"stable"}return I}),m==null||m()})}return React.useEffect(function(){u("measure")},[e]),React.useEffect(function(){switch(s){case"measure":o();break}s&&(l.current=wrapperRaf(_asyncToGenerator(regeneratorExports.mark(function m(){var I,h;return regeneratorExports.wrap(function(C){for(;;)switch(C.prev=C.next){case 0:I=StatusQueue.indexOf(s),h=StatusQueue[I+1],h&&I!==-1&&u(h);case 3:case"end":return C.stop()}},m)}))))},[s]),React.useEffect(function(){return function(){d.current=!0,f()}},[]),[s,p]},useStretchStyle=function(e){var o=React__namespace.useState({width:0,height:0}),r=_slicedToArray(o,2),a=r[0],s=r[1];function c(d){s({width:d.offsetWidth,height:d.offsetHeight})}var l=React__namespace.useMemo(function(){var d={};if(e){var u=a.width,f=a.height;e.indexOf("height")!==-1&&f?d.height=f:e.indexOf("minHeight")!==-1&&f&&(d.minHeight=f),e.indexOf("width")!==-1&&u?d.width=u:e.indexOf("minWidth")!==-1&&u&&(d.minWidth=u)}return d},[e,a]);return[l,c]};var PopupInner=React__namespace.forwardRef(function(e,o){var r=e.visible,a=e.prefixCls,s=e.className,c=e.style,l=e.children,d=e.zIndex,u=e.stretch,f=e.destroyPopupOnHide,p=e.align,m=e.point,I=e.getRootDomNode,h=e.getClassNameFromAlign,v=e.onAlign,C=e.onMouseEnter,b=e.onMouseLeave,y=e.onMouseDown,g=e.onTouchStart,O=React.useRef(),w=React.useRef(),_=React.useState(),F=_slicedToArray(_,2),L=F[0],E=F[1],P=useStretchStyle(u),A=_slicedToArray(P,2),W=A[0],J=A[1];function Y(){u&&J(I())}var z=useVisibleStatus(r,Y),Q=_slicedToArray(z,2),oe=Q[0],te=Q[1],X=React.useRef();function ce(){return m||I}function Re(){var U;(U=O.current)===null||U===void 0||U.forceAlign()}function xe(U,re){if(oe==="align"){var Te=h(re);E(Te),L!==Te?Promise.resolve().then(function(){Re()}):te(function(){var Fe;(Fe=X.current)===null||Fe===void 0||Fe.call(X)}),v==null||v(U,re)}}var de=_objectSpread2$1({},getMotion(e));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(U){var re=de[U];de[U]=function(Te,Fe){return te(),re==null?void 0:re(Te,Fe)}});function Ce(){return new Promise(function(U){X.current=U})}React__namespace.useEffect(function(){!de.motionName&&oe==="motion"&&te()},[de.motionName,oe]),React__namespace.useImperativeHandle(o,function(){return{forceAlign:Re,getElement:function(){return w.current}}});var ee=_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({},W),{},{zIndex:d},c),{},{opacity:oe==="motion"||oe==="stable"||!r?void 0:0,pointerEvents:oe==="stable"?void 0:"none"}),ue=!0;(p==null?void 0:p.points)&&(oe==="align"||oe==="stable")&&(ue=!1);var N=l;return React__namespace.Children.count(l)>1&&(N=jsxRuntime.jsx("div",{className:"".concat(a,"-content"),children:l})),jsxRuntime.jsx(CSSMotion,{visible:r,ref:w,leavedClassName:"".concat(a,"-hidden"),...de,onAppearPrepare:Ce,onEnterPrepare:Ce,removeOnLeave:f,children:function(U,re){var Te=U.className,Fe=U.style,M=classnamesExports(a,s,L,Te);return jsxRuntime.jsx(RefAlign,{target:ce(),ref:O,monitorWindowResize:!0,disabled:ue,align:p,onAlign:xe,children:jsxRuntime.jsx("div",{ref:re,className:M,onMouseEnter:C,onMouseLeave:b,onMouseDown:y,onTouchStart:g,style:_objectSpread2$1(_objectSpread2$1({},Fe),ee),children:N})},"popup")}})});PopupInner.displayName="PopupInner";var MobilePopupInner=React__namespace.forwardRef(function(e,o){var r=e.prefixCls,a=e.visible,s=e.zIndex,c=e.children,l=e.mobile;l=l===void 0?{}:l;var d=l.popupClassName,u=l.popupStyle,f=l.popupMotion,p=f===void 0?{}:f,m=l.popupRender,I=React__namespace.useRef();React__namespace.useImperativeHandle(o,function(){return{forceAlign:function(){},getElement:function(){return I.current}}});var h=_objectSpread2$1({zIndex:s},u),v=c;return React__namespace.Children.count(c)>1&&(v=jsxRuntime.jsx("div",{className:"".concat(r,"-content"),children:c})),m&&(v=m(v)),jsxRuntime.jsx(CSSMotion,{visible:a,ref:I,removeOnLeave:!0,...p,children:function(C,b){var y=C.className,g=C.style,O=classnamesExports(r,d,y);return jsxRuntime.jsx("div",{ref:b,className:O,style:_objectSpread2$1(_objectSpread2$1({},g),h),children:v})}})});MobilePopupInner.displayName="MobilePopupInner";var Popup=React__namespace.forwardRef(function(e,o){var r=e.visible,a=e.mobile,s=_objectWithoutProperties(e,["visible","mobile"]),c=React.useState(r),l=_slicedToArray(c,2),d=l[0],u=l[1],f=React.useState(!1),p=_slicedToArray(f,2),m=p[0],I=p[1],h=_objectSpread2$1(_objectSpread2$1({},s),{},{visible:d});React.useEffect(function(){u(r),r&&a&&I(isMobile())},[r,a]);var v=m?jsxRuntime.jsx(MobilePopupInner,{...h,mobile:a,ref:o}):jsxRuntime.jsx(PopupInner,{...h,ref:o});return jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx(Mask,{...h}),v]})});Popup.displayName="Popup";var TriggerContext=React__namespace.createContext(null);function noop(){}function returnEmptyString(){return""}function returnDocument(e){return e?e.ownerDocument:window.document}var ALL_HANDLERS=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function generateTrigger(e){var o=function(r){_inherits(s,r);var a=_createSuper(s);function s(c){var l;_classCallCheck(this,s),l=a.call(this,c),l.popupRef=React__namespace.createRef(),l.triggerRef=React__namespace.createRef(),l.onMouseEnter=function(u){var f=l.props.mouseEnterDelay;l.fireEvents("onMouseEnter",u),l.delaySetPopupVisible(!0,f,f?null:u)},l.onMouseMove=function(u){l.fireEvents("onMouseMove",u),l.setPoint(u)},l.onMouseLeave=function(u){l.fireEvents("onMouseLeave",u),l.delaySetPopupVisible(!1,l.props.mouseLeaveDelay)},l.onPopupMouseEnter=function(){l.clearDelayTimer()},l.onPopupMouseLeave=function(u){var f;u.relatedTarget&&!u.relatedTarget.setTimeout&&contains((f=l.popupRef.current)===null||f===void 0?void 0:f.getElement(),u.relatedTarget)||l.delaySetPopupVisible(!1,l.props.mouseLeaveDelay)},l.onFocus=function(u){l.fireEvents("onFocus",u),l.clearDelayTimer(),l.isFocusToShow()&&(l.focusTime=Date.now(),l.delaySetPopupVisible(!0,l.props.focusDelay))},l.onMouseDown=function(u){l.fireEvents("onMouseDown",u),l.preClickTime=Date.now()},l.onTouchStart=function(u){l.fireEvents("onTouchStart",u),l.preTouchTime=Date.now()},l.onBlur=function(u){l.fireEvents("onBlur",u),l.clearDelayTimer(),l.isBlurToHide()&&l.delaySetPopupVisible(!1,l.props.blurDelay)},l.onContextMenu=function(u){u.preventDefault(),l.fireEvents("onContextMenu",u),l.setPopupVisible(!0,u)},l.onContextMenuClose=function(){l.isContextMenuToShow()&&l.close()},l.onClick=function(u){if(l.fireEvents("onClick",u),l.focusTime){var f;if(l.preClickTime&&l.preTouchTime?f=Math.min(l.preClickTime,l.preTouchTime):l.preClickTime?f=l.preClickTime:l.preTouchTime&&(f=l.preTouchTime),Math.abs(f-l.focusTime)<20)return;l.focusTime=0}l.preClickTime=0,l.preTouchTime=0,l.isClickToShow()&&(l.isClickToHide()||l.isBlurToHide())&&u&&u.preventDefault&&u.preventDefault();var p=!l.state.popupVisible;(l.isClickToHide()&&!p||p&&l.isClickToShow())&&l.setPopupVisible(!l.state.popupVisible,u)},l.onPopupMouseDown=function(){if(l.hasPopupMouseDown=!0,clearTimeout(l.mouseDownTimeout),l.mouseDownTimeout=window.setTimeout(function(){l.hasPopupMouseDown=!1},0),l.context){var u;(u=l.context).onPopupMouseDown.apply(u,arguments)}},l.onDocumentClick=function(u){if(!(l.props.mask&&!l.props.maskClosable)){var f=u.target,p=l.getRootDomNode(),m=l.getPopupDomNode();!contains(p,f)&&!contains(m,f)&&!l.hasPopupMouseDown&&l.close()}},l.getRootDomNode=function(){var u=l.props.getTriggerDOMNode;if(u)return u(l.triggerRef.current);try{var f=findDOMNode(l.triggerRef.current);if(f)return f}catch{}return ReactDOM__default.default.findDOMNode(_assertThisInitialized(l))},l.getPopupClassNameFromAlign=function(u){var f=[],p=l.props,m=p.popupPlacement,I=p.builtinPlacements,h=p.prefixCls,v=p.alignPoint,C=p.getPopupClassNameFromAlign;return m&&I&&f.push(getAlignPopupClassName(I,h,u,v)),C&&f.push(C(u)),f.join(" ")},l.getComponent=function(){var u=l.props,f=u.prefixCls,p=u.destroyPopupOnHide,m=u.popupClassName,I=u.onPopupAlign,h=u.popupMotion,v=u.popupAnimation,C=u.popupTransitionName,b=u.popupStyle,y=u.mask,g=u.maskAnimation,O=u.maskTransitionName,w=u.maskMotion,_=u.zIndex,F=u.popup,L=u.stretch,E=u.alignPoint,P=u.mobile,A=l.state,W=A.popupVisible,J=A.point,Y=l.getPopupAlign(),z={};return l.isMouseEnterToShow()&&(z.onMouseEnter=l.onPopupMouseEnter),l.isMouseLeaveToHide()&&(z.onMouseLeave=l.onPopupMouseLeave),z.onMouseDown=l.onPopupMouseDown,z.onTouchStart=l.onPopupMouseDown,jsxRuntime.jsx(Popup,{prefixCls:f,destroyPopupOnHide:p,visible:W,point:E&&J,className:m,align:Y,onAlign:I,animation:v,getClassNameFromAlign:l.getPopupClassNameFromAlign,...z,stretch:L,getRootDomNode:l.getRootDomNode,style:b,mask:y,zIndex:_,transitionName:C,maskAnimation:g,maskTransitionName:O,maskMotion:w,ref:l.popupRef,motion:h,mobile:P,children:typeof F=="function"?F():F})},l.attachParent=function(u){wrapperRaf.cancel(l.attachId);var f=l.props,p=f.getPopupContainer,m=f.getDocument,I=l.getRootDomNode(),h;p?(I||p.length===0)&&(h=p(I)):h=m(l.getRootDomNode()).body,h?h.appendChild(u):l.attachId=wrapperRaf(function(){l.attachParent(u)})},l.getContainer=function(){var u=l.props.getDocument,f=u(l.getRootDomNode()).createElement("div");return f.style.position="absolute",f.style.top="0",f.style.left="0",f.style.width="100%",l.attachParent(f),f},l.setPoint=function(u){var f=l.props.alignPoint;!f||!u||l.setState({point:{pageX:u.pageX,pageY:u.pageY}})},l.handlePortalUpdate=function(){l.state.prevPopupVisible!==l.state.popupVisible&&l.props.afterPopupVisibleChange(l.state.popupVisible)};var d;return"popupVisible"in c?d=!!c.popupVisible:d=!!c.defaultPopupVisible,l.state={prevPopupVisible:d,popupVisible:d},ALL_HANDLERS.forEach(function(u){l["fire".concat(u)]=function(f){l.fireEvents(u,f)}}),l}return _createClass(s,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var l=this.props,d=this.state;if(d.popupVisible){var u;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(u=l.getDocument(this.getRootDomNode()),this.clickOutsideHandler=addEventListenerWrap(u,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(u=u||l.getDocument(this.getRootDomNode()),this.touchOutsideHandler=addEventListenerWrap(u,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(u=u||l.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=addEventListenerWrap(u,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=addEventListenerWrap(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),wrapperRaf.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var l;return((l=this.popupRef.current)===null||l===void 0?void 0:l.getElement())||null}},{key:"getPopupAlign",value:function(){var l=this.props,d=l.popupPlacement,u=l.popupAlign,f=l.builtinPlacements;return d&&f?getAlignFromPlacement(f,d,u):u}},{key:"setPopupVisible",value:function(l,d){var u=this.props.alignPoint,f=this.state.popupVisible;this.clearDelayTimer(),f!==l&&("popupVisible"in this.props||this.setState({popupVisible:l,prevPopupVisible:f}),this.props.onPopupVisibleChange(l)),u&&d&&l&&this.setPoint(d)}},{key:"delaySetPopupVisible",value:function(l,d,u){var f=this,p=d*1e3;if(this.clearDelayTimer(),p){var m=u?{pageX:u.pageX,pageY:u.pageY}:null;this.delayTimer=window.setTimeout(function(){f.setPopupVisible(l,m),f.clearDelayTimer()},p)}else this.setPopupVisible(l,u)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(l){var d=this.props.children.props,u=this.props;return d[l]&&u[l]?this["fire".concat(l)]:d[l]||u[l]}},{key:"isClickToShow",value:function(){var l=this.props,d=l.action,u=l.showAction;return d.indexOf("click")!==-1||u.indexOf("click")!==-1}},{key:"isContextMenuToShow",value:function(){var l=this.props,d=l.action,u=l.showAction;return d.indexOf("contextMenu")!==-1||u.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var l=this.props,d=l.action,u=l.hideAction;return d.indexOf("click")!==-1||u.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var l=this.props,d=l.action,u=l.showAction;return d.indexOf("hover")!==-1||u.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var l=this.props,d=l.action,u=l.hideAction;return d.indexOf("hover")!==-1||u.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var l=this.props,d=l.action,u=l.showAction;return d.indexOf("focus")!==-1||u.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var l=this.props,d=l.action,u=l.hideAction;return d.indexOf("focus")!==-1||u.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var l;(l=this.popupRef.current)===null||l===void 0||l.forceAlign()}}},{key:"fireEvents",value:function(l,d){var u=this.props.children.props[l];u&&u(d);var f=this.props[l];f&&f(d)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var l=this.state.popupVisible,d=this.props,u=d.children,f=d.forceRender,p=d.alignPoint,m=d.className,I=d.autoDestroy,h=React__namespace.Children.only(u),v={key:"trigger"};this.isContextMenuToShow()?v.onContextMenu=this.onContextMenu:v.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(v.onClick=this.onClick,v.onMouseDown=this.onMouseDown,v.onTouchStart=this.onTouchStart):(v.onClick=this.createTwoChains("onClick"),v.onMouseDown=this.createTwoChains("onMouseDown"),v.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(v.onMouseEnter=this.onMouseEnter,p&&(v.onMouseMove=this.onMouseMove)):v.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?v.onMouseLeave=this.onMouseLeave:v.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(v.onFocus=this.onFocus,v.onBlur=this.onBlur):(v.onFocus=this.createTwoChains("onFocus"),v.onBlur=this.createTwoChains("onBlur"));var C=classnamesExports(h&&h.props&&h.props.className,m);C&&(v.className=C);var b=_objectSpread2$1({},v);supportRef(h)&&(b.ref=composeRef(this.triggerRef,h.ref));var y=React__namespace.cloneElement(h,b),g;return(l||this.popupRef.current||f)&&(g=jsxRuntime.jsx(e,{getContainer:this.getContainer,didUpdate:this.handlePortalUpdate,children:this.getComponent()},"portal")),!l&&I&&(g=null),jsxRuntime.jsxs(TriggerContext.Provider,{value:{onPopupMouseDown:this.onPopupMouseDown},children:[y,g]})}}],[{key:"getDerivedStateFromProps",value:function(l,d){var u=l.popupVisible,f={};return u!==void 0&&d.popupVisible!==u&&(f.popupVisible=u,f.prevPopupVisible=d.popupVisible),f}}]),s}(React__namespace.Component);return o.contextType=TriggerContext,o.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:returnEmptyString,getDocument:returnDocument,onPopupVisibleChange:noop,afterPopupVisibleChange:noop,onPopupAlign:noop,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},o}const Trigger=generateTrigger(Portal);var autoAdjustOverflow={adjustX:1,adjustY:1},targetOffset=[0,0],placements$2={left:{points:["cr","cl"],overflow:autoAdjustOverflow,offset:[-4,0],targetOffset},right:{points:["cl","cr"],overflow:autoAdjustOverflow,offset:[4,0],targetOffset},top:{points:["bc","tc"],overflow:autoAdjustOverflow,offset:[0,-4],targetOffset},bottom:{points:["tc","bc"],overflow:autoAdjustOverflow,offset:[0,4],targetOffset},topLeft:{points:["bl","tl"],overflow:autoAdjustOverflow,offset:[0,-4],targetOffset},leftTop:{points:["tr","tl"],overflow:autoAdjustOverflow,offset:[-4,0],targetOffset},topRight:{points:["br","tr"],overflow:autoAdjustOverflow,offset:[0,-4],targetOffset},rightTop:{points:["tl","tr"],overflow:autoAdjustOverflow,offset:[4,0],targetOffset},bottomRight:{points:["tr","br"],overflow:autoAdjustOverflow,offset:[0,4],targetOffset},rightBottom:{points:["bl","br"],overflow:autoAdjustOverflow,offset:[4,0],targetOffset},bottomLeft:{points:["tl","bl"],overflow:autoAdjustOverflow,offset:[0,4],targetOffset},leftBottom:{points:["br","bl"],overflow:autoAdjustOverflow,offset:[-4,0],targetOffset}},Content$2=function e(o){var r=o.overlay,a=o.prefixCls,s=o.id,c=o.overlayInnerStyle;return jsxRuntime.jsx("div",{className:"".concat(a,"-inner"),id:s,role:"tooltip",style:c,children:typeof r=="function"?r():r})},Tooltip=function e(o,r){var a=o.overlayClassName,s=o.trigger,c=s===void 0?["hover"]:s,l=o.mouseEnterDelay,d=l===void 0?0:l,u=o.mouseLeaveDelay,f=u===void 0?.1:u,p=o.overlayStyle,m=o.prefixCls,I=m===void 0?"rc-tooltip":m,h=o.children,v=o.onVisibleChange,C=o.afterVisibleChange,b=o.transitionName,y=o.animation,g=o.placement,O=g===void 0?"right":g,w=o.align,_=w===void 0?{}:w,F=o.destroyTooltipOnHide,L=F===void 0?!1:F,E=o.defaultVisible,P=o.getTooltipContainer,A=o.overlayInnerStyle,W=_objectWithoutProperties(o,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),J=React.useRef(null);React.useImperativeHandle(r,function(){return J.current});var Y=_objectSpread2$1({},W);"visible"in o&&(Y.popupVisible=o.visible);var z=function(){var ce=o.arrowContent,Re=ce===void 0?null:ce,xe=o.overlay,de=o.id;return[jsxRuntime.jsx("div",{className:"".concat(I,"-arrow"),children:Re},"arrow"),jsxRuntime.jsx(Content$2,{prefixCls:I,id:de,overlay:xe,overlayInnerStyle:A},"content")]},Q=!1,oe=!1;if(typeof L=="boolean")Q=L;else if(L&&_typeof$1(L)==="object"){var te=L.keepParent;Q=te===!0,oe=te===!1}return jsxRuntime.jsx(Trigger,{...Object.assign({popupClassName:a,prefixCls:I,popup:z,action:c,builtinPlacements:placements$2,popupPlacement:O,ref:J,popupAlign:_,getPopupContainer:P,onPopupVisibleChange:v,afterPopupVisibleChange:C,popupTransitionName:b,popupAnimation:y,defaultPopupVisible:E,destroyPopupOnHide:Q,autoDestroy:oe,mouseLeaveDelay:f,popupStyle:p,mouseEnterDelay:d},Y),children:h})};const Tooltip$1=React.forwardRef(Tooltip),es=Object.freeze(Object.defineProperty({__proto__:null,default:Tooltip$1},Symbol.toStringTag,{value:"Module"})),require$$6=getAugmentedNamespace(es);var placements$1={},placements={},hasRequiredPlacements$1;function requirePlacements$1(){if(hasRequiredPlacements$1)return placements;hasRequiredPlacements$1=1,Object.defineProperty(placements,"__esModule",{value:!0}),placements.default=placements.placements=void 0;var e={adjustX:1,adjustY:1},o=[0,0],r={left:{points:["cr","cl"],overflow:e,offset:[-4,0],targetOffset:o},right:{points:["cl","cr"],overflow:e,offset:[4,0],targetOffset:o},top:{points:["bc","tc"],overflow:e,offset:[0,-4],targetOffset:o},bottom:{points:["tc","bc"],overflow:e,offset:[0,4],targetOffset:o},topLeft:{points:["bl","tl"],overflow:e,offset:[0,-4],targetOffset:o},leftTop:{points:["tr","tl"],overflow:e,offset:[-4,0],targetOffset:o},topRight:{points:["br","tr"],overflow:e,offset:[0,-4],targetOffset:o},rightTop:{points:["tl","tr"],overflow:e,offset:[4,0],targetOffset:o},bottomRight:{points:["tr","br"],overflow:e,offset:[0,4],targetOffset:o},rightBottom:{points:["bl","br"],overflow:e,offset:[4,0],targetOffset:o},bottomLeft:{points:["tl","bl"],overflow:e,offset:[0,4],targetOffset:o},leftBottom:{points:["br","bl"],overflow:e,offset:[-4,0],targetOffset:o}};placements.placements=r;var a=r;return placements.default=a,placements}var hasRequiredPlacements;function requirePlacements(){return hasRequiredPlacements||(hasRequiredPlacements=1,function(e){var o=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.getOverflowOptions=d,e.default=u;var r=o(require_extends()),a=requirePlacements$1(),s={adjustX:1,adjustY:1},c={adjustX:0,adjustY:0},l=[0,0];function d(f){return typeof f=="boolean"?f?s:c:(0,r.default)((0,r.default)({},c),f)}function u(f){var p=f.arrowWidth,m=p===void 0?5:p,I=f.horizontalArrowShift,h=I===void 0?16:I,v=f.verticalArrowShift,C=v===void 0?8:v,b=f.autoAdjustOverflow,y={left:{points:["cr","cl"],offset:[-4,0]},right:{points:["cl","cr"],offset:[4,0]},top:{points:["bc","tc"],offset:[0,-4]},bottom:{points:["tc","bc"],offset:[0,4]},topLeft:{points:["bl","tc"],offset:[-(h+m),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(C+m)]},topRight:{points:["br","tc"],offset:[h+m,-4]},rightTop:{points:["tl","cr"],offset:[4,-(C+m)]},bottomRight:{points:["tr","bc"],offset:[h+m,4]},rightBottom:{points:["bl","cr"],offset:[4,C+m]},bottomLeft:{points:["tl","bc"],offset:[-(h+m),4]},leftBottom:{points:["br","cl"],offset:[-4,C+m]}};return Object.keys(y).forEach(function(g){y[g]=f.arrowPointAtCenter?(0,r.default)((0,r.default)({},y[g]),{overflow:d(b),targetOffset:l}):(0,r.default)((0,r.default)({},a.placements[g]),{overflow:d(b)}),y[g].ignoreShake=!0}),y}}(placements$1)),placements$1}var colors={},hasRequiredColors;function requireColors(){if(hasRequiredColors)return colors;hasRequiredColors=1,Object.defineProperty(colors,"__esModule",{value:!0}),colors.PresetColorTypes=colors.PresetStatusColorTypes=void 0;var e=requireType(),o=(0,e.tuple)("success","processing","error","default","warning");colors.PresetStatusColorTypes=o;var r=(0,e.tuple)("pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime");return colors.PresetColorTypes=r,colors}var hasRequiredTooltip;function requireTooltip(){return hasRequiredTooltip||(hasRequiredTooltip=1,function(e){var o=interopRequireWildcard.exports,r=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=r(requireDefineProperty()),s=r(requireSlicedToArray()),c=r(require_extends()),l=o(React__default.default),d=r(require$$6),u=r(requireClassnames()),f=r(requirePlacements()),p=requireReactNode(),m=requireConfigProvider(),I=requireColors(),h=function(O,w){var _={},F=(0,c.default)({},O);return w.forEach(function(L){O&&L in O&&(_[L]=O[L],delete F[L])}),{picked:_,omitted:F}},v=new RegExp("^(".concat(I.PresetColorTypes.join("|"),")(-inverse)?$"));function C(g,O){var w=g.type;if((w.__ANT_BUTTON===!0||w.__ANT_SWITCH===!0||w.__ANT_CHECKBOX===!0||g.type==="button")&&g.props.disabled){var _=h(g.props.style,["position","left","right","top","bottom","float","display","zIndex"]),F=_.picked,L=_.omitted,E=(0,c.default)((0,c.default)({display:"inline-block"},F),{cursor:"not-allowed",width:g.props.block?"100%":null}),P=(0,c.default)((0,c.default)({},L),{pointerEvents:"none"}),A=(0,p.cloneElement)(g,{style:P,className:null});return l.createElement("span",{style:E,className:(0,u.default)(g.props.className,"".concat(O,"-disabled-compatible-wrapper"))},A)}return g}var b=l.forwardRef(function(g,O){var w,_=l.useContext(m.ConfigContext),F=_.getPopupContainer,L=_.getPrefixCls,E=_.direction,P=l.useState(!!g.visible||!!g.defaultVisible),A=(0,s.default)(P,2),W=A[0],J=A[1];l.useEffect(function(){"visible"in g&&J(g.visible)},[g.visible]);var Y=function(){var tt=g.title,Ne=g.overlay;return!tt&&!Ne&&tt!==0},z=function(tt){"visible"in g||J(Y()?!1:tt),g.onVisibleChange&&!Y()&&g.onVisibleChange(tt)},Q=function(){var tt=g.builtinPlacements,Ne=g.arrowPointAtCenter,Ge=g.autoAdjustOverflow;return tt||(0,f.default)({arrowPointAtCenter:Ne,autoAdjustOverflow:Ge})},oe=function(tt,Ne){var Ge=Q(),yt=Object.keys(Ge).filter(function($t){return Ge[$t].points[0]===Ne.points[0]&&Ge[$t].points[1]===Ne.points[1]})[0];if(!!yt){var Tt=tt.getBoundingClientRect(),Ot={top:"50%",left:"50%"};yt.indexOf("top")>=0||yt.indexOf("Bottom")>=0?Ot.top="".concat(Tt.height-Ne.offset[1],"px"):(yt.indexOf("Top")>=0||yt.indexOf("bottom")>=0)&&(Ot.top="".concat(-Ne.offset[1],"px")),yt.indexOf("left")>=0||yt.indexOf("Right")>=0?Ot.left="".concat(Tt.width-Ne.offset[0],"px"):(yt.indexOf("right")>=0||yt.indexOf("Left")>=0)&&(Ot.left="".concat(-Ne.offset[0],"px")),tt.style.transformOrigin="".concat(Ot.left," ").concat(Ot.top)}},te=function(){var tt=g.title,Ne=g.overlay;return tt===0?tt:Ne||tt||""},X=g.prefixCls,ce=g.openClassName,Re=g.getPopupContainer,xe=g.getTooltipContainer,de=g.overlayClassName,Ce=g.color,ee=g.overlayInnerStyle,ue=g.children,N=L("tooltip",X),U=W;!("visible"in g)&&Y()&&(U=!1);var re=C((0,p.isValidElement)(ue)?ue:l.createElement("span",null,ue),N),Te=re.props,Fe=(0,u.default)(Te.className,(0,a.default)({},ce||"".concat(N,"-open"),!0)),M=(0,u.default)(de,(w={},(0,a.default)(w,"".concat(N,"-rtl"),E==="rtl"),(0,a.default)(w,"".concat(N,"-").concat(Ce),Ce&&v.test(Ce)),w)),j=ee,we;return Ce&&!v.test(Ce)&&(j=(0,c.default)((0,c.default)({},ee),{background:Ce}),we={background:Ce}),l.createElement(d.default,(0,c.default)({},g,{prefixCls:N,overlayClassName:M,getTooltipContainer:Re||xe||F,ref:O,builtinPlacements:Q(),overlay:te(),visible:U,onVisibleChange:z,onPopupAlign:oe,overlayInnerStyle:j,arrowContent:l.createElement("span",{className:"".concat(N,"-arrow-content"),style:we})}),U?(0,p.cloneElement)(re,{className:Fe}):re)});b.displayName="Tooltip",b.defaultProps={placement:"top",transitionName:"zoom-big-fast",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0};var y=b;e.default=y}(tooltip)),tooltip}var Typography={},ref={},hasRequiredRef;function requireRef(){if(hasRequiredRef)return ref;hasRequiredRef=1;var e=interopRequireDefault.exports;Object.defineProperty(ref,"__esModule",{value:!0}),ref.fillRef=a,ref.composeRef=s,ref.supportRef=c;var o=e(_typeof$2.exports),r=requireReactIs();function a(l,d){typeof l=="function"?l(d):(0,o.default)(l)==="object"&&l&&"current"in l&&(l.current=d)}function s(){for(var l=arguments.length,d=new Array(l),u=0;u<l;u++)d[u]=arguments[u];return function(f){d.forEach(function(p){a(p,f)})}}function c(l){var d,u,f=(0,r.isMemo)(l)?l.type.type:l.type;return!(typeof f=="function"&&!(!((d=f.prototype)===null||d===void 0)&&d.render)||typeof l=="function"&&!(!((u=l.prototype)===null||u===void 0)&&u.render))}return ref}var hasRequiredTypography;function requireTypography(){return hasRequiredTypography||(hasRequiredTypography=1,function(e){var o=interopRequireWildcard.exports,r=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=r(require_extends()),s=r(requireDefineProperty()),c=o(React__default.default),l=r(requireClassnames()),d=requireRef(),u=requireConfigProvider(),f=r(requireDevWarning()),p=function(C,b){var y={};for(var g in C)Object.prototype.hasOwnProperty.call(C,g)&&b.indexOf(g)<0&&(y[g]=C[g]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var O=0,g=Object.getOwnPropertySymbols(C);O<g.length;O++)b.indexOf(g[O])<0&&Object.prototype.propertyIsEnumerable.call(C,g[O])&&(y[g[O]]=C[g[O]]);return y},m=function(b,y){var g=b.prefixCls,O=b.component,w=O===void 0?"article":O,_=b.className,F=b["aria-label"],L=b.setContentRef,E=b.children,P=p(b,["prefixCls","component","className","aria-label","setContentRef","children"]),A=y;return L&&((0,f.default)(!1,"Typography","`setContentRef` is deprecated. Please use `ref` instead."),A=(0,d.composeRef)(y,L)),c.createElement(u.ConfigConsumer,null,function(W){var J=W.getPrefixCls,Y=W.direction,z=w,Q=J("typography",g),oe=(0,l.default)(Q,(0,s.default)({},"".concat(Q,"-rtl"),Y==="rtl"),_);return c.createElement(z,(0,a.default)({className:oe,"aria-label":F,ref:A},P),E)})},I=c.forwardRef(m);I.displayName="Typography";var h=I,v=h;e.default=v}(Typography)),Typography}var Editable={},EnterOutlined$2={exports:{}},EnterOutlined$1={},EnterOutlined={},hasRequiredEnterOutlined$2;function requireEnterOutlined$2(){if(hasRequiredEnterOutlined$2)return EnterOutlined;hasRequiredEnterOutlined$2=1,Object.defineProperty(EnterOutlined,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"};return EnterOutlined.default=e,EnterOutlined}var hasRequiredEnterOutlined$1;function requireEnterOutlined$1(){if(hasRequiredEnterOutlined$1)return EnterOutlined$1;hasRequiredEnterOutlined$1=1;var e=interopRequireWildcard.exports,o=interopRequireDefault.exports;Object.defineProperty(EnterOutlined$1,"__esModule",{value:!0}),EnterOutlined$1.default=void 0;var r=o(requireObjectSpread2()),a=e(React__default.default),s=o(requireEnterOutlined$2()),c=o(requireAntdIcon()),l=function(f,p){return a.createElement(c.default,(0,r.default)((0,r.default)({},f),{},{ref:p,icon:s.default}))};l.displayName="EnterOutlined";var d=a.forwardRef(l);return EnterOutlined$1.default=d,EnterOutlined$1}var hasRequiredEnterOutlined;function requireEnterOutlined(){return hasRequiredEnterOutlined||(hasRequiredEnterOutlined=1,function(e,o){Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var r=a(requireEnterOutlined$1());function a(c){return c&&c.__esModule?c:{default:c}}var s=r;o.default=s,e.exports=s}(EnterOutlined$2,EnterOutlined$2.exports)),EnterOutlined$2.exports}var hasRequiredEditable;function requireEditable(){return hasRequiredEditable||(hasRequiredEditable=1,function(e){var o=interopRequireWildcard.exports,r=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=r(requireDefineProperty()),s=r(requireSlicedToArray()),c=o(React__default.default),l=r(requireClassnames()),d=r(requireKeyCode()),u=r(requireEnterOutlined()),f=r(TextArea$2),p=function(h){var v=h.prefixCls,C=h["aria-label"],b=h.className,y=h.style,g=h.direction,O=h.maxLength,w=h.autoSize,_=w===void 0?!0:w,F=h.value,L=h.onSave,E=h.onCancel,P=c.useRef(),A=c.useRef(!1),W=c.useRef(),J=c.useState(F),Y=(0,s.default)(J,2),z=Y[0],Q=Y[1];c.useEffect(function(){Q(F)},[F]),c.useEffect(function(){if(P.current&&P.current.resizableTextArea){var ee=P.current.resizableTextArea.textArea;ee.focus();var ue=ee.value.length;ee.setSelectionRange(ue,ue)}},[]);var oe=function(ue){var N=ue.target;Q(N.value.replace(/[\n\r]/g,""))},te=function(){A.current=!0},X=function(){A.current=!1},ce=function(ue){var N=ue.keyCode;A.current||(W.current=N)},Re=function(){L(z.trim())},xe=function(ue){var N=ue.keyCode,U=ue.ctrlKey,re=ue.altKey,Te=ue.metaKey,Fe=ue.shiftKey;W.current===N&&!A.current&&!U&&!re&&!Te&&!Fe&&(N===d.default.ENTER?Re():N===d.default.ESC&&E())},de=function(){Re()},Ce=(0,l.default)(v,"".concat(v,"-edit-content"),(0,a.default)({},"".concat(v,"-rtl"),g==="rtl"),b);return c.createElement("div",{className:Ce,style:y},c.createElement(f.default,{ref:P,maxLength:O,value:z,onChange:oe,onKeyDown:ce,onKeyUp:xe,onCompositionStart:te,onCompositionEnd:X,onBlur:de,"aria-label":C,autoSize:_}),c.createElement(u.default,{className:"".concat(v,"-edit-content-confirm")}))},m=p;e.default=m}(Editable)),Editable}var util={},hasRequiredUtil;function requireUtil(){return hasRequiredUtil||(hasRequiredUtil=1,function(e){var o=interopRequireDefault.exports,r=interopRequireWildcard.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=ReactDOM__default.default,s=r(React__default.default),c=o(requireToArray()),l=1,d=3,u=8,f,p={padding:0,margin:0,display:"inline",lineHeight:"inherit"};function m(C){if(!C)return 0;var b=C.match(/^\d*(\.\d*)?/);return b?Number(b[0]):0}function I(C){var b=Array.prototype.slice.apply(C);return b.map(function(y){return"".concat(y,": ").concat(C.getPropertyValue(y),";")}).join("")}function h(C){var b=[];return C.forEach(function(y){var g=b[b.length-1];typeof y=="string"&&typeof g=="string"?b[b.length-1]+=y:b.push(y)}),b}var v=function(b,y,g,O,w){f||(f=document.createElement("div"),f.setAttribute("aria-hidden","true"),document.body.appendChild(f));var _=y.rows,F=y.suffix,L=F===void 0?"":F,E=window.getComputedStyle(b),P=I(E),A=m(E.lineHeight),W=Math.round(A*(_+1)+m(E.paddingTop)+m(E.paddingBottom));f.setAttribute("style",P),f.style.position="fixed",f.style.left="0",f.style.height="auto",f.style.minHeight="auto",f.style.maxHeight="auto",f.style.top="-999999px",f.style.zIndex="-1000",f.style.textOverflow="clip",f.style.whiteSpace="normal",f.style.webkitLineClamp="none";var J=h((0,c.default)(g));(0,a.render)(s.createElement("div",{style:p},s.createElement("span",{style:p},J,L),s.createElement("span",{style:p},O)),f);function Y(){return f.offsetHeight<W}if(Y())return(0,a.unmountComponentAtNode)(f),{content:g,text:f.innerHTML,ellipsis:!1};var z=Array.prototype.slice.apply(f.childNodes[0].childNodes[0].cloneNode(!0).childNodes).filter(function(de){var Ce=de.nodeType;return Ce!==u}),Q=Array.prototype.slice.apply(f.childNodes[0].childNodes[1].cloneNode(!0).childNodes);(0,a.unmountComponentAtNode)(f);var oe=[];f.innerHTML="";var te=document.createElement("span");f.appendChild(te);var X=document.createTextNode(w+L);te.appendChild(X),Q.forEach(function(de){f.appendChild(de)});function ce(de){te.insertBefore(de,X)}function Re(de,Ce){var ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,ue=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Ce.length,N=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,U=Math.floor((ee+ue)/2),re=Ce.slice(0,U);if(de.textContent=re,ee>=ue-1)for(var Te=ue;Te>=ee;Te-=1){var Fe=Ce.slice(0,Te);if(de.textContent=Fe,Y()||!Fe)return Te===Ce.length?{finished:!1,reactNode:Ce}:{finished:!0,reactNode:Fe}}return Y()?Re(de,Ce,U,ue,U):Re(de,Ce,ee,U,N)}function xe(de,Ce){var ee=de.nodeType;if(ee===l)return ce(de),Y()?{finished:!1,reactNode:J[Ce]}:(te.removeChild(de),{finished:!0,reactNode:null});if(ee===d){var ue=de.textContent||"",N=document.createTextNode(ue);return ce(N),Re(N,ue)}return{finished:!1,reactNode:null}}return z.some(function(de,Ce){var ee=xe(de,Ce),ue=ee.finished,N=ee.reactNode;return N&&oe.push(N),ue}),{content:oe,text:f.innerHTML,ellipsis:!0}};e.default=v}(util)),util}var hasRequiredBase;function requireBase(){return hasRequiredBase||(hasRequiredBase=1,function(e){var o=interopRequireWildcard.exports,r=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=r(requireDefineProperty()),s=r(requireToConsumableArray()),c=r(_typeof$2.exports),l=r(require_extends()),d=r(requireClassCallCheck()),u=r(requireCreateClass()),f=r(requireInherits()),p=r(requireCreateSuper()),m=o(React__default.default),I=r(requireClassnames()),h=r(requireToArray()),v=r(requireCopyToClipboard()),C=r(requireOmit()),b=r(requireEditOutlined()),y=r(requireCheckOutlined()),g=r(requireCopyOutlined()),O=r(require$$18),w=requireConfigProvider(),_=r(requireLocaleReceiver()),F=r(requireDevWarning()),L=r(requireTransButton()),E=r(requireRaf()),P=requireStyleChecker(),A=r(requireTooltip()),W=r(requireTypography()),J=r(requireEditable()),Y=r(requireUtil()),z=function(xe,de){var Ce={};for(var ee in xe)Object.prototype.hasOwnProperty.call(xe,ee)&&de.indexOf(ee)<0&&(Ce[ee]=xe[ee]);if(xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ue=0,ee=Object.getOwnPropertySymbols(xe);ue<ee.length;ue++)de.indexOf(ee[ue])<0&&Object.prototype.propertyIsEnumerable.call(xe,ee[ue])&&(Ce[ee[ue]]=xe[ee[ue]]);return Ce},Q=(0,P.isStyleSupport)("webkitLineClamp"),oe=(0,P.isStyleSupport)("textOverflow");function te(xe,de){var Ce=xe.mark,ee=xe.code,ue=xe.underline,N=xe.delete,U=xe.strong,re=xe.keyboard,Te=de;function Fe(M,j){!M||(Te=m.createElement(j,{},Te))}return Fe(U,"strong"),Fe(ue,"u"),Fe(N,"del"),Fe(ee,"code"),Fe(Ce,"mark"),Fe(re,"kbd"),Te}var X="...",ce=function(xe){(0,f.default)(Ce,xe);var de=(0,p.default)(Ce);function Ce(){var ee;return(0,d.default)(this,Ce),ee=de.apply(this,arguments),ee.contentRef=m.createRef(),ee.state={edit:!1,copied:!1,ellipsisText:"",ellipsisContent:null,isEllipsis:!1,expanded:!1,clientRendered:!1},ee.getPrefixCls=function(){var ue=ee.props.prefixCls,N=ee.context.getPrefixCls;return N("typography",ue)},ee.onExpandClick=function(ue){var N=ee.getEllipsis(),U=N.onExpand;ee.setState({expanded:!0}),U&&U(ue)},ee.onEditClick=function(){ee.triggerEdit(!0)},ee.onEditChange=function(ue){var N=ee.getEditable(),U=N.onChange;U&&U(ue),ee.triggerEdit(!1)},ee.onEditCancel=function(){ee.triggerEdit(!1)},ee.onCopyClick=function(ue){ue.preventDefault();var N=ee.props,U=N.children,re=N.copyable,Te=(0,l.default)({},(0,c.default)(re)==="object"?re:null);Te.text===void 0&&(Te.text=String(U)),(0,v.default)(Te.text||""),ee.setState({copied:!0},function(){Te.onCopy&&Te.onCopy(),ee.copyId=window.setTimeout(function(){ee.setState({copied:!1})},3e3)})},ee.setEditRef=function(ue){ee.editIcon=ue},ee.triggerEdit=function(ue){var N=ee.getEditable(),U=N.onStart;ue&&U&&U(),ee.setState({edit:ue},function(){!ue&&ee.editIcon&&ee.editIcon.focus()})},ee.resizeOnNextFrame=function(){E.default.cancel(ee.rafId),ee.rafId=(0,E.default)(function(){ee.syncEllipsis()})},ee}return(0,u.default)(Ce,[{key:"componentDidMount",value:function(){this.setState({clientRendered:!0}),this.resizeOnNextFrame()}},{key:"componentDidUpdate",value:function(ue){var N=this.props.children,U=this.getEllipsis(),re=this.getEllipsis(ue);(N!==ue.children||U.rows!==re.rows)&&this.resizeOnNextFrame()}},{key:"componentWillUnmount",value:function(){window.clearTimeout(this.copyId),E.default.cancel(this.rafId)}},{key:"getEditable",value:function(ue){var N=this.state.edit,U=ue||this.props,re=U.editable;return re?(0,l.default)({editing:N},(0,c.default)(re)==="object"?re:null):{editing:N}}},{key:"getEllipsis",value:function(ue){var N=ue||this.props,U=N.ellipsis;return U?(0,l.default)({rows:1,expandable:!1},(0,c.default)(U)==="object"?U:null):{}}},{key:"canUseCSSEllipsis",value:function(){var ue=this.state.clientRendered,N=this.props,U=N.editable,re=N.copyable,Te=this.getEllipsis(),Fe=Te.rows,M=Te.expandable,j=Te.suffix,we=Te.onEllipsis,je=Te.tooltip;return j||je||U||re||M||!ue||we?!1:Fe===1?oe:Q}},{key:"syncEllipsis",value:function(){var ue=this.state,N=ue.ellipsisText,U=ue.isEllipsis,re=ue.expanded,Te=this.getEllipsis(),Fe=Te.rows,M=Te.suffix,j=Te.onEllipsis,we=this.props.children;if(!(!Fe||Fe<0||!this.contentRef.current||re)&&!this.canUseCSSEllipsis()){(0,F.default)((0,h.default)(we).every(function(yt){return typeof yt=="string"}),"Typography","`ellipsis` should use string as children only.");var je=(0,Y.default)(this.contentRef.current,{rows:Fe,suffix:M},we,this.renderOperations(!0),X),tt=je.content,Ne=je.text,Ge=je.ellipsis;(N!==Ne||U!==Ge)&&(this.setState({ellipsisText:Ne,ellipsisContent:tt,isEllipsis:Ge}),U!==Ge&&j&&j(Ge))}}},{key:"renderExpand",value:function(ue){var N=this.getEllipsis(),U=N.expandable,re=N.symbol,Te=this.state,Fe=Te.expanded,M=Te.isEllipsis;if(!U||!ue&&(Fe||!M))return null;var j;return re?j=re:j=this.expandStr,m.createElement("a",{key:"expand",className:"".concat(this.getPrefixCls(),"-expand"),onClick:this.onExpandClick,"aria-label":this.expandStr},j)}},{key:"renderEdit",value:function(){var ue=this.props.editable;if(!!ue){var N=ue.icon,U=ue.tooltip,re=(0,h.default)(U)[0]||this.editStr,Te=typeof re=="string"?re:"";return m.createElement(A.default,{key:"edit",title:U===!1?"":re},m.createElement(L.default,{ref:this.setEditRef,className:"".concat(this.getPrefixCls(),"-edit"),onClick:this.onEditClick,"aria-label":Te},N||m.createElement(b.default,{role:"button"})))}}},{key:"renderCopy",value:function(){var ue=this.state.copied,N=this.props.copyable;if(!!N){var U=this.getPrefixCls(),re=N.tooltips,Te=(0,h.default)(re);Te.length===0&&(Te=[this.copyStr,this.copiedStr]);var Fe=ue?Te[1]:Te[0],M=typeof Fe=="string"?Fe:"",j=(0,h.default)(N.icon);return m.createElement(A.default,{key:"copy",title:re===!1?"":Fe},m.createElement(L.default,{className:(0,I.default)("".concat(U,"-copy"),ue&&"".concat(U,"-copy-success")),onClick:this.onCopyClick,"aria-label":M},ue?j[1]||m.createElement(y.default,null):j[0]||m.createElement(g.default,null)))}}},{key:"renderEditInput",value:function(){var ue=this.props,N=ue.children,U=ue.className,re=ue.style,Te=this.context.direction,Fe=this.getEditable(),M=Fe.maxLength,j=Fe.autoSize;return m.createElement(J.default,{value:typeof N=="string"?N:"",onSave:this.onEditChange,onCancel:this.onEditCancel,prefixCls:this.getPrefixCls(),className:U,style:re,direction:Te,maxLength:M,autoSize:j})}},{key:"renderOperations",value:function(ue){return[this.renderExpand(ue),this.renderEdit(),this.renderCopy()].filter(function(N){return N})}},{key:"renderContent",value:function(){var ue=this,N=this.state,U=N.ellipsisContent,re=N.isEllipsis,Te=N.expanded,Fe=this.props,M=Fe.component,j=Fe.children,we=Fe.className,je=Fe.type,tt=Fe.disabled,Ne=Fe.style,Ge=z(Fe,["component","children","className","type","disabled","style"]),yt=this.context.direction,Tt=this.getEllipsis(),Ot=Tt.rows,$t=Tt.suffix,Vt=Tt.tooltip,Ct=this.getPrefixCls(),Ft=(0,C.default)(Ge,["prefixCls","editable","copyable","ellipsis","mark","code","delete","underline","strong","keyboard"].concat((0,s.default)(w.configConsumerProps))),Ut=this.canUseCSSEllipsis(),Gt=Ot===1&&Ut,Qt=Ot&&Ot>1&&Ut,Wt=j;if(Ot&&re&&!Te&&!Ut){var fn=Ge.title,un=fn||"";!fn&&(typeof j=="string"||typeof j=="number")&&(un=String(j)),un=un==null?void 0:un.slice(String(U||"").length),Wt=m.createElement(m.Fragment,null,U,m.createElement("span",{title:un,"aria-hidden":"true"},X),$t),Vt&&(Wt=m.createElement(A.default,{title:Vt===!0?j:Vt},m.createElement("span",null,Wt)))}else Wt=m.createElement(m.Fragment,null,j,$t);return Wt=te(this.props,Wt),m.createElement(_.default,{componentName:"Text"},function(_t){var Dt,zt=_t.edit,Yt=_t.copy,en=_t.copied,nn=_t.expand;return ue.editStr=zt,ue.copyStr=Yt,ue.copiedStr=en,ue.expandStr=nn,m.createElement(O.default,{onResize:ue.resizeOnNextFrame,disabled:!Ot},m.createElement(W.default,(0,l.default)({className:(0,I.default)((Dt={},(0,a.default)(Dt,"".concat(Ct,"-").concat(je),je),(0,a.default)(Dt,"".concat(Ct,"-disabled"),tt),(0,a.default)(Dt,"".concat(Ct,"-ellipsis"),Ot),(0,a.default)(Dt,"".concat(Ct,"-ellipsis-single-line"),Gt),(0,a.default)(Dt,"".concat(Ct,"-ellipsis-multiple-line"),Qt),Dt),we),style:(0,l.default)((0,l.default)({},Ne),{WebkitLineClamp:Qt?Ot:void 0}),component:M,ref:ue.contentRef,direction:yt},Ft),Wt,ue.renderOperations()))})}},{key:"render",value:function(){var ue=this.getEditable(),N=ue.editing;return N?this.renderEditInput():this.renderContent()}}],[{key:"getDerivedStateFromProps",value:function(ue){var N=ue.children,U=ue.editable;return(0,F.default)(!U||typeof N=="string","Typography","When `editable` is enabled, the `children` should use string."),{}}}]),Ce}(m.Component);ce.contextType=w.ConfigContext,ce.defaultProps={children:""};var Re=ce;e.default=Re}(Base)),Base}(function(e){var o=interopRequireWildcard.exports,r=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=r(require_extends()),s=o(React__default.default),c=r(requireDevWarning()),l=r(requireBase()),d=requireType(),u=function(I,h){var v={};for(var C in I)Object.prototype.hasOwnProperty.call(I,C)&&h.indexOf(C)<0&&(v[C]=I[C]);if(I!=null&&typeof Object.getOwnPropertySymbols=="function")for(var b=0,C=Object.getOwnPropertySymbols(I);b<C.length;b++)h.indexOf(C[b])<0&&Object.prototype.propertyIsEnumerable.call(I,C[b])&&(v[C[b]]=I[C[b]]);return v},f=(0,d.tupleNum)(1,2,3,4,5),p=function(h){var v=h.level,C=v===void 0?1:v,b=u(h,["level"]),y;return f.indexOf(C)!==-1?y="h".concat(C):((0,c.default)(!1,"Typography.Title","Title only accept `1 | 2 | 3 | 4 | 5` as `level` value. And `5` need 4.6.0+ version."),y="h1"),s.createElement(l.default,(0,a.default)({},b,{component:y}))},m=p;e.default=m})(Title$3);const Title$2=getDefaultExportFromCjs(Title$3),{getValueForOperator}=ooui.graphProcessor,fontGrowFactor=.7,minFontSize=30,GraphIndicator=e=>{const{model:o,domain:r,context:a,colorCondition:s,totalDomain:c,showPercent:l=!1,icon:d,suffix:u,field:f,operator:p,manualIds:m}=e,[I,h]=React.useState(!1),[v,C]=React.useState(),[b,y]=React.useState(),[g,O]=React.useState(),[w,_]=React.useState(0),[F,L]=React.useState(0),[E,P]=React.useState(),[A,W]=React.useState(),[J,Y]=React.useState();React.useEffect(()=>{oe()},[o,s]);async function z({domain:te,isTotal:X}){if(X)return await Q({domain:te});if(f&&p){const ce=m||await ConnectionProvider.getHandler().searchAllIds({params:te,model:o,context:a}),Re=await ConnectionProvider.getHandler().readObjects({model:o,ids:ce,fieldsToRetrieve:[f],context:a});return getValueForOperator({values:Re.map(xe=>xe[f]),operator:p})}else return m?m.length:await ConnectionProvider.getHandler().searchCount({model:o,params:te,context:a})}async function Q({domain:te}){if(f&&p){const X=await ConnectionProvider.getHandler().searchAllIds({params:te,model:o,context:a}),ce=await ConnectionProvider.getHandler().readObjects({model:o,ids:X,fieldsToRetrieve:[f],context:a});return getValueForOperator({values:ce.map(Re=>Re[f]),operator:p})}else return await ConnectionProvider.getHandler().searchCount({model:o,params:te,context:a})}async function oe(){h(!0);let te,X;try{const ce=await z({domain:r,isTotal:!1});if(C(ce),c){const Re=await ConnectionProvider.getHandler().evalDomain({domain:c,values:{},context:a});te=await z({domain:Re,isTotal:!0}),O(te)}if(te?(X=Math.round(ce/te*100*100)/100,y(X)):y(0),s){const Re=await ConnectionProvider.getHandler().parseCondition({condition:s,values:{value:ce,percent:X},context:a});P(Re)}if(d)if(d.indexOf(":")!==-1){const Re=await ConnectionProvider.getHandler().parseCondition({condition:d,values:{value:ce,percent:X},context:a});W(Re)}else W(d)}catch(ce){Y(JSON.stringify(ce))}h(!1)}return J?jsxRuntime.jsx(antd.Alert,{className:"mt-10",message:J,type:"error",banner:!0}):I?jsxRuntime.jsx("div",{style:{padding:"1rem"},children:jsxRuntime.jsx(Icon.LoadingOutlined,{style:{height:"12px"}})}):jsxRuntime.jsx(Measure__default.default,{bounds:!0,onResize:te=>{var X,ce;_((X=te.bounds)==null?void 0:X.height),L((ce=te.bounds)==null?void 0:ce.width)},children:({measureRef:te})=>l?jsxRuntime.jsx(PercentageIndicator,{value:v,total:g,percent:b,measureRef:te,height:w,width:F,color:E,icon:A,suffix:u}):jsxRuntime.jsx(CommonIndicator,{value:v,total:g,measureRef:te,height:w,width:F,color:E,icon:A,suffix:u})})};function getTextWidth(e,o){const a=document.createElement("canvas").getContext("2d");return a.font=o||getComputedStyle(document.body).font,a.measureText(e).width}function CommonIndicator({measureRef:e,width:o,height:r,total:a,value:s,color:c,icon:l,suffix:d}){let u=r*fontGrowFactor<minFontSize?minFontSize:r*fontGrowFactor,f=a?`${s}/${a}`:`${s}`;d&&(f+=" "+d);let p=getTextWidth(f,`bold ${Math.floor(u*1.03)}px sans-serif`);l&&(p=p*2),p>=o*.85&&(u=o*.85/p*u);const m=l&&iconMapper(l);return jsxRuntime.jsx("div",{ref:e,style:{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden"},children:jsxRuntime.jsxs(Title$2,{style:{fontSize:u,margin:0,color:c},children:[m&&jsxRuntime.jsx(m,{style:{fontSize:u*.7}}),m?` ${f}`:f]})})}function PercentageIndicator({measureRef:e,height:o,width:r,percent:a,total:s,value:c,color:l,icon:d,suffix:u}){const f=o*.65;let p=f*fontGrowFactor<minFontSize?minFontSize:f*fontGrowFactor,m=s?`${c}/${s}`:`${c}`;u&&(m+=" "+u);const I=`${a}%`;let h=getTextWidth(I,`bold ${Math.floor(p*1.03)}px sans-serif`);d&&(h=h*1.5);const v=d&&iconMapper(d);return(h>=r*.85||p*2<f)&&(p=r*.85/h*p),jsxRuntime.jsx("div",{ref:e,style:{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden",flexDirection:"column",padding:"0.2rem"},children:jsxRuntime.jsxs(antd.Row,{align:"middle",children:[v&&jsxRuntime.jsx(antd.Col,{children:jsxRuntime.jsx(v,{style:{fontSize:p*1,color:l,paddingRight:"10px"}})}),jsxRuntime.jsxs(antd.Col,{children:[jsxRuntime.jsx(Title$2,{style:{fontSize:p*.8,margin:0,color:l},children:v?` ${a}%`:`${a}%`}),jsxRuntime.jsx(Title$2,{style:{fontSize:p*.4,margin:0,color:l,textAlign:"center"},children:m})]})]})})}const DefaultGraphOptions={default:{padding:"auto",xAxis:{tickCount:5},legend:{maxWidthRatio:.5,maxItemWidth:1e3}},pie:{appendPadding:10,radius:.9,label:{type:"inner",offset:"-30%",content:({percent:e})=>`${(e*100).toFixed(0)}%`,style:{fontSize:14,textAlign:"center"}},legend:{maxWidthRatio:.5,maxItemWidth:1e3},interactions:[{type:"element-active"}]},barGrouped:{isGroup:!0,legend:{maxWidthRatio:.5,maxItemWidth:1e3},label:{position:"middle",layout:[{type:"interval-adjust-position"},{type:"interval-hide-overlap"},{type:"adjust-color"}]}}},{processGraphData}=ooui.graphProcessor,{getFieldsToRetrieve}=ooui.graphFieldUtils,useGraphData=e=>{const{model:o,domain:r=[],context:a={},xml:s,limit:c,uninformedString:l,manualIds:d}=e,[u,f]=React.useState(!1),[p,m]=React.useState(),[I,h]=React.useState(),[v,C]=React.useState(),[b,y]=React.useState("line");return useDeepCompareEffect__default.default(()=>{(async()=>{f(!0),m(void 0);const g=ooui.parseGraph(s);y(g.type||"line");const O=getFieldsToRetrieve({ooui:g});let w,_;try{({values:w,fields:_}=await retrieveData({model:o,domain:r,context:a,limit:c,order:g.timerange?g.x.name:null,fields:O,manualIds:d}))}catch(F){m("Error fetching graph data values: "+JSON.stringify(F)),f(!1);return}try{if(!w||!_){m("No values or fields returned"),f(!1);return}C(w);const F=processGraphData({ooui:g,values:w,fields:_,options:{uninformedString:l}});h(F)}catch(F){m("Error processing graph data: "+F),f(!1);return}f(!1)})()},[s,o,c,a,r]),{loading:u,error:p,type:b,values:I,evaluatedEntries:v}};async function getFieldsForModel({model:e,context:o,fields:r}){return await ConnectionProvider.getHandler().getFields({model:e,context:o,fields:r})}async function retrieveData({fields:e,model:o,domain:r,context:a,order:s,limit:c,manualIds:l}){const d=await getFieldsForModel({model:o,context:a,fields:e});if(l){let f=await ConnectionProvider.getHandler().readObjects({model:o,ids:l,fieldsToRetrieve:e,context:a});return s&&(f=[...f].sort((p,m)=>p[s]-m[s])),{values:f,fields:d}}return{values:await ConnectionProvider.getHandler().search({model:o,params:r,fields:e,context:a,limit:c,order:s}),fields:d}}const types={line:plots.Line,bar:plots.Column,pie:plots.Pie},GraphChart=e=>{const{model:o,domain:r,context:a,xml:s,limit:c,manualIds:l}=e,{t:d}=React.useContext(LocaleContext),{error:u,loading:f,values:p,type:m,evaluatedEntries:I}=useGraphData({model:o,xml:s,limit:c,domain:r,context:a,uninformedString:d("uninformed"),manualIds:l});if(u)return jsxRuntime.jsx(antd.Alert,{message:u,type:"error",banner:!0});if(f)return jsxRuntime.jsx(antd.Spin,{});if(!p)return jsxRuntime.jsx(antd.Alert,{message:"No data to display",type:"info"});const{data:h,isGroup:v,isStack:C}=p,b=types[m];return b?jsxRuntime.jsxs("div",{style:{padding:"1rem"},children:[jsxRuntime.jsx("p",{style:{textAlign:"right"},children:`${d("totalRegisters")} ${I==null?void 0:I.length}`}),jsxRuntime.jsx(b,{...getGraphProps({type:m,data:h,isGroup:v,isStack:C})})]}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:`Unknown graph type: ${m}`})};function getGraphProps(e){const{type:o,data:r,isGroup:a,isStack:s}=e;let c=DefaultGraphOptions[o];return c||(c=DefaultGraphOptions.default),c.data=r,o==="pie"?(c.colorField="x",c.angleField="value"):(c.xField="x",c.yField="value",c.seriesField="type",c.isGroup=a,s&&(c.isStack=!0,c.groupField="stacked")),c}const GraphComp=(e,o)=>{const{view_id:r,model:a,context:s,domain:c,limit:l,manualIds:d}=e,[u,f]=React.useState(!1),[p,m]=React.useState(),[I,h]=React.useState(),v=React.useContext(ActionViewContext),{setGraphIsLoading:C=void 0}=v||{};React.useImperativeHandle(o,()=>({refresh:()=>{b()}})),React.useEffect(()=>{b()},[r]);async function b(){f(!0),C==null||C(!0);try{const y=await ConnectionProvider.getHandler().getView({model:a,id:r,type:"graph",context:s});h(y.arch);const g=ooui.parseGraph(y.arch);m(g)}catch(y){return console.error(y),jsxRuntime.jsx(jsxRuntime.Fragment,{children:JSON.stringify(y)})}f(!1),C==null||C(!1)}if(u)return jsxRuntime.jsx("div",{style:{width:"100%",display:"flex",height:"20%",justifyContent:"center",alignContent:"center",padding:"1rem"},children:jsxRuntime.jsx(Icon.LoadingOutlined,{style:{height:"12px"}})});if(!p)return null;switch(p.type){case"indicatorField":case"indicator":{const y=p,g=y.type==="indicatorField"?{field:y.field,operator:y.operator}:{};return jsxRuntime.jsx(GraphIndicator,{showPercent:y.showPercent,totalDomain:y.totalDomain,colorCondition:y.color,model:a,context:s,domain:c,icon:y.icon,suffix:y.suffix,manualIds:d,...g})}case"line":case"bar":case"pie":return jsxRuntime.jsx(GraphChart,{model:a,context:s,domain:c,xml:I,limit:l,manualIds:d});default:return jsxRuntime.jsx(jsxRuntime.Fragment,{children:`Graph ${p.type} not implemented`})}},Graph=React.forwardRef(GraphComp),{confirm:confirm$2}=antd.Modal,showDialog$2=({onOk:e,lang:o})=>{confirm$2({title:tForLang("removeItems",o),icon:jsxRuntime.jsx(Icon.ExclamationCircleOutlined,{}),centered:!0,content:tForLang("confirmRemove",o),okText:tForLang("yesConfirmRemove",o),onOk:e,cancelText:tForLang("cancel",o)})},{confirm:confirm$1}=antd.Modal,showDialog$1=({onOk:e,lang:o})=>{confirm$1({title:tForLang("unlinkItems",o),icon:jsxRuntime.jsx(Icon.ExclamationCircleOutlined,{}),centered:!0,content:tForLang("confirmUnlink",o),okText:tForLang("yesConfirmUnlink",o),onOk:e,cancelText:tForLang("cancel",o)})},One2manyTopBar=e=>{const{title:o,readOnly:r,onCreateItem:a,onToggleViewMode:s,mode:c,onDelete:l,totalItems:d,currentItemIndex:u,onPreviousItem:f,onNextItem:p,isMany2Many:m,onSearchItem:I,selectedRowKeys:h,showCreateButton:v,showToggleButton:C}=e;function b(){return jsxRuntime.jsx("div",{className:"inline-block w-3"})}function y(){return jsxRuntime.jsx("div",{className:"flex flex-grow h-8 text-gray-200 bg-gray-700",children:jsxRuntime.jsx("div",{className:"flex flex-col items-center justify-center h-full",children:jsxRuntime.jsx("span",{className:"pl-2 font-bold",children:o})})})}function g(){return jsxRuntime.jsx(ButtonWithTooltip,{tooltip:m?"Unlink":"Delete",icon:m?jsxRuntime.jsx(Icon.ApiOutlined,{}):jsxRuntime.jsx(Icon.DeleteOutlined,{}),onClick:l,disabled:d===0||r||c!=="form"&&h.length===0})}function O(){let _="_";return d===0?_="_":_=(u+1).toString(),jsxRuntime.jsxs("span",{className:"pl-1 pr-1",children:["(",_,"/",d,")"]})}function w(){return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[b(),jsxRuntime.jsx(ButtonWithTooltip,{tooltip:"Previous item",icon:jsxRuntime.jsx(Icon.LeftOutlined,{}),onClick:f}),O(),jsxRuntime.jsx(ButtonWithTooltip,{tooltip:"Next item",icon:jsxRuntime.jsx(Icon.RightOutlined,{}),onClick:p})]})}return jsxRuntime.jsxs("div",{className:"flex mb-2",children:[y(),jsxRuntime.jsxs("div",{className:"flex-none h-8 pl-2",children:[c!=="graph"&&v&&jsxRuntime.jsx(ButtonWithTooltip,{tooltip:"Create new item",icon:jsxRuntime.jsx(Icon.FileAddOutlined,{}),disabled:r,onClick:a}),m&&v&&jsxRuntime.jsx(ButtonWithTooltip,{tooltip:"Search existing item",icon:jsxRuntime.jsx(Icon.SearchOutlined,{}),disabled:r,onClick:I}),c!=="graph"&&b(),c!=="graph"&&g(),c==="form"&&w(),b(),C&&jsxRuntime.jsx(ButtonWithTooltip,{tooltip:"Toggle view mode",icon:jsxRuntime.jsx(Icon.AlignLeftOutlined,{}),onClick:s})]})]})},ViewObjects={form:ooui.Form,tree:ooui.Tree,graph:Graph};function filterDuplicateItems(e){const o=e.map(a=>a.id);return e.filter((a,s)=>{const{id:c}=a;return!o.includes(c,s+1)})}const One2manyInput=e=>{var un;const{value:o,onChange:r,ooui:a,views:s}=e,{items:c=[]}=o||{},{currentView:l,setCurrentView:d,itemIndex:u,setItemIndex:f}=React.useContext(One2manyContext),p=React.useContext(FormContext$1),{activeId:m,getFields:I,getValues:h,getContext:v,domain:C}=p||{},{lang:b,t:y}=React.useContext(LocaleContext),g=React.useRef(),[O,w]=React.useState(!1),[_,F]=React.useState(!1),[L,E]=React.useState(),[P,A]=React.useState(!1),[W,J]=React.useState(!1),[Y,z]=React.useState(),[Q,oe]=React.useState([]),[te,X]=React.useState(!1),ce=React.useRef([]),[Re,xe]=React.useState(),de=React.useRef(),{readOnly:Ce,relation:ee,context:ue,domain:N}=a,U=a.type==="many2many",{id:re}=a,Te=c.filter(_t=>_t.values&&_t.operation!=="pendingRemove");React.useEffect(()=>{c.some(_t=>!_t.values)&&M()},[c]),React.useEffect(()=>{we()},[C]);const Fe=_t=>{var Dt,zt;r==null||r({fields:((Dt=s.get("form"))==null?void 0:Dt.fields)||((zt=s.get("tree"))==null?void 0:zt.fields),items:filterDuplicateItems(_t)})},M=async()=>{await j(),u>Te.length-1&&u!==0&&f(0)},j=async()=>{var _t;F(!0),w(!1),E(void 0);try{const Dt=await readObjectValues({treeFields:s.get("tree").fields,formFields:((_t=s.get("form"))==null?void 0:_t.fields)||{},model:ee,items:c,context:{...v==null?void 0:v(),...ue}});de.current||(de.current=Dt.map(zt=>zt.id)),Fe(Dt)}catch(Dt){E(Dt)}finally{F(!1)}};async function we(){N&&(ce.current=ooui.transformDomainForChildWidget({domain:await ConnectionProvider.getHandler().evalDomain({domain:N,values:transformPlainMany2Ones({fields:I(),values:h()}),context:v()}),widgetFieldName:re})),C&&C.length>0&&(ce.current=ce.current.concat(ooui.transformDomainForChildWidget({domain:C,widgetFieldName:re})))}const je=()=>{const _t=Array.from(s.keys()),Dt=_t[(_t.indexOf(l)+1)%_t.length];l==="form"?yt(()=>{d(Dt)}):d(Dt)},tt=()=>{u>0&&(l==="form"?yt(()=>{f(u-1)}):f(u-1))},Ne=()=>{const _t=Te.length;u<_t-1&&(l==="form"?yt(()=>{f(u+1)}):f(u+1))},Ge=async()=>{const _t=Te[u].id,Dt=(await ConnectionProvider.getHandler().readObjects({model:ee,ids:[_t],fields:s.get("form").fields,context:{...v==null?void 0:v(),...ue}}))[0],zt=(await ConnectionProvider.getHandler().readObjects({model:ee,ids:[_t],fields:s.get("tree").fields,context:{...v==null?void 0:v(),...ue}}))[0],Yt=c.map(en=>en.id===_t?{...en,operation:"original",values:Dt,treeValues:zt}:en);Fe(Yt)},yt=_t=>{O?showDialog$6({lang:b,onOk:()=>{Ge(),_t(),w(!1)}}):_t()},Tt=()=>{if(U){showDialog$1({lang:b,onOk:()=>{l==="form"?Vt():Ct()}});return}showDialog$2({lang:b,onOk:()=>{l==="form"?Vt():Ct()}})},Ot=async()=>{const{inv_field:_t}=a;let Dt;_t&&m&&(Dt={[_t]:m}),l==="form"?yt(()=>{X(!0),z({defaultValues:Dt}),A(!0)}):(X(!0),z({defaultValues:Dt}),A(!0))},$t=async()=>{l==="form"?yt(()=>{J(!0)}):J(!0)},Vt=async()=>{F(!0),w(!1),E(void 0);try{if(Te[u].id>0){const _t=c.map(Dt=>Dt.id===Te[u].id?{...Dt,operation:"pendingRemove"}:Dt);Fe(_t)}else Fe(c.filter(_t=>_t.id!==Te[u].id))}catch(_t){E(_t)}f(0),F(!1)},Ct=async()=>{const _t=Te.filter(Dt=>Q.includes(Dt.id));F(!0),w(!1),E(void 0);try{const Dt=_t.map(Yt=>Yt.id),zt=c.filter(Yt=>!(Dt.includes(Yt.id)&&Yt.id<0)).map(Yt=>Dt.includes(Yt.id)?{...Yt,operation:"pendingRemove"}:Yt);Fe(zt)}catch(Dt){E(Dt)}f(0),F(!1)},Ft=(_t,Dt,zt)=>{let Yt;if(_t)Yt=c.map(en=>en.id===_t?{id:_t,operation:_t>0?"pendingUpdate":"pendingCreate",values:{...zt,id:_t},treeValues:{...zt,id:_t}}:en);else{const en=getNextPendingId(c);Yt=c.concat({id:en,operation:"pendingCreate",values:{...zt,id:en},treeValues:{...zt,id:en}})}Fe(Yt),te||A(!1)},Ut=_t=>{const{id:Dt}=_t;z(c.find(zt=>zt.id===Dt)),X(!1),A(!0)},Gt=async _t=>{F(!0);let Dt=c;const zt=_t.filter(Yt=>!c.find(en=>en.id===Yt));try{for(const Yt of zt){const en=(await ConnectionProvider.getHandler().readObjects({model:ee,ids:[Yt],fields:s.get("form").fields,context:{...v==null?void 0:v(),...ue}}))[0],nn=(await ConnectionProvider.getHandler().readObjects({model:ee,ids:[Yt],fields:s.get("tree").fields,context:{...v==null?void 0:v(),...ue}}))[0];Dt.push({id:Yt,operation:"pendingLink",values:en,treeValues:nn})}Fe(Dt)}catch(Yt){E(Yt)}finally{F(!1)}};function Qt(){const _t=ViewObjects[l];if(l==="graph")return ooui.parseGraph(s.get("graph").arch).string;{const Dt=new _t(s.get(l).fields);return Dt.parse(s.get(l).arch),Dt.string}}const Wt=()=>{var Dt,zt,Yt,en;if(l==="form")return Te.length===0?y("noCurrentEntries"):jsxRuntime.jsx(Form$1,{formView:s.get("form"),values:(Dt=Te[u])==null?void 0:Dt.values,parentContext:{...v==null?void 0:v(),...ue},ref:g,model:ee,id:(zt=Te[u])==null?void 0:zt.id,submitMode:"values",onFieldsChange:nn=>{var tn;const mn=(tn=Te[u])==null?void 0:tn.id,pn=c.map(rn=>rn.id===mn?{...rn,operation:rn.operation==="original"?"pendingUpdate":rn.operation,values:{...nn,id:mn},treeValues:{...nn,id:mn}}:rn);Fe(pn),w(!0)},readOnly:Ce});const _t=Re?sortResults({resultsToSort:Te.map(nn=>nn.treeValues),sorter:Re,fields:{...s.get("tree").fields,...((Yt=s.get("form"))==null?void 0:Yt.fields)||{}}}):Te.map(nn=>nn.treeValues);if(l==="tree")return jsxRuntime.jsx(Tree,{total:Te.length,limit:Te.length,treeView:s.get("tree"),results:_t,loading:_,onRowClicked:((en=s.get("form"))==null?void 0:en.fields)!==void 0?Ut:void 0,showPagination:!1,rowSelection:{selectedRowKeys:Q,onChange:oe},sorter:Re,onChangeSort:xe});if(l==="graph"){const nn=[[`${a.inv_field}`,"=",m]];return jsxRuntime.jsx(Graph,{view_id:s.get("graph").view_id,model:a.relation,domain:nn,context:{...v==null?void 0:v(),...ue},limit:0})}};if(L)return jsxRuntime.jsx(antd.Alert,{className:"mt-10",message:L,type:"error",banner:!0});const fn=te;return _?jsxRuntime.jsx(antd.Spin,{}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(One2manyTopBar,{mode:l,title:Qt(),readOnly:Ce,isMany2Many:U,formHasChanges:O,totalItems:Te.length,currentItemIndex:u,onDelete:Tt,onCreateItem:Ot,onToggleViewMode:je,onPreviousItem:tt,onNextItem:Ne,onSearchItem:$t,selectedRowKeys:Q,showCreateButton:((un=s.get("form"))==null?void 0:un.fields)!==void 0,showToggleButton:s.size>1}),Wt(),jsxRuntime.jsx(FormModal,{formView:s.get("form"),model:ee,id:Y==null?void 0:Y.id,submitMode:"values",values:Y==null?void 0:Y.values,defaultValues:Y==null?void 0:Y.defaultValues,visible:P,onSubmitSucceed:Ft,parentContext:{...v==null?void 0:v(),...ue},onCancel:()=>{X(!1),A(!1)},readOnly:Ce,mustClearAfterSave:fn}),jsxRuntime.jsx(SearchModal,{domain:ce.current,model:ee,context:{...v==null?void 0:v(),...ue},visible:W,onSelectValues:async _t=>{J(!1),Gt(_t)},onCloseModal:()=>{J(!1)}})]})},One2many=e=>{const{ooui:o}=e,{mode:r,relation:a,views:s,required:c,context:l}=o;let d;const[u,f]=React.useState(!0),[p,m]=React.useState(),[I,h]=React.useState(new Map),v=React.useContext(FormContext$1),{getContext:C}=v||{};useDeepCompareEffect__default.default(()=>{y()},[o]);const b=async O=>s&&s[O]?s[O]:await ConnectionProvider.getHandler().getView({model:a,type:O,context:{...C==null?void 0:C(),...l}}),y=async()=>{f(!0),m(void 0);try{if(r&&r.length>0){for(const O of r){const w=await b(O);I.set(O,w)}h(I)}else{const O=await b("form"),w=await b("tree");I.set("form",O),I.set("tree",w),h(I)}}catch(O){m(JSON.stringify(O))}finally{f(!1)}};if(r&&r.length>0?d=r[0]:d="tree",u)return jsxRuntime.jsx(antd.Spin,{});if(p)return jsxRuntime.jsx(antd.Alert,{className:"mt-10",message:p,type:"error",banner:!0});const g=async(O,w)=>{if(!w)throw new Error;if(!w.items)throw new Error;if(!Array.isArray(w.items))throw new Error;if(w.items.length===0)throw new Error};return jsxRuntime.jsx(One2manyProvider,{initialView:d,children:jsxRuntime.jsx(Field$1,{required:c,type:"array",validator:g,...e,children:jsxRuntime.jsx(One2manyInput,{ooui:o,views:I})})})},FloatTime=e=>{const{ooui:o}=e,{required:r}=o;return jsxRuntime.jsx(Field$1,{required:r,type:"number",...e,children:jsxRuntime.jsx(FloatTimeInput,{ooui:o})})},FloatTimeInput=e=>{const{ooui:o,value:r,onChange:a}=e,{id:s,readOnly:c,required:l}=o,d=l&&!c?Config.requiredClass:void 0,u=React.useRef(),[f,p]=React.useState(),m=React.useContext(FormContext$1),{elementHasLostFocus:I}=m||{};React.useEffect(()=>{p(parseFloatToString(r))},[r]);const h=b=>{a==null||a(b)};function v(b){u.current=b.target.value,p(b.target.value)}async function C(){h(parseStringToFloat(f)),await new Promise(b=>setTimeout(b,300)),I==null||I()}return jsxRuntime.jsx(antd.Input,{value:f,disabled:c,className:"w-full "+d,id:s,placeholder:"00:00",onChange:v,onBlur:C})},Fieldset=e=>{const{label:o,children:r}=e;return jsxRuntime.jsxs("fieldset",{className:"p-2 border-gray-400 border border-solid font-sans",children:[jsxRuntime.jsx("legend",{style:{all:"initial",marginLeft:"1em",paddingLeft:"0.5em",paddingRight:"0.5em",fontFamily:"system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'"},children:o}),r]})};function Group(e){const{ooui:o,showLabel:r=!0,responsiveBehaviour:a}=e;return jsxRuntime.jsx(jsxRuntime.Fragment,{children:o.label&&r?jsxRuntime.jsx(Fieldset,{label:o.label,children:jsxRuntime.jsx(Container,{container:o.container,responsiveBehaviour:a})}):jsxRuntime.jsx(Container,{container:o.container,responsiveBehaviour:a})})}const{TabPane}=antd.Tabs;function Notebook(e){const{ooui:o,responsiveBehaviour:r}=e,a=o.pages;function s(c){if(c){const l=iconMapper(c);return l&&jsxRuntime.jsx(l,{})}}return jsxRuntime.jsx(antd.Tabs,{defaultActiveKey:"1",tabPosition:o.tabPosition,children:a.filter(c=>!c.invisible).map(c=>jsxRuntime.jsx(TabPane,{tab:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[s(c.icon)," ",c.label]}),children:jsxRuntime.jsx(Group,{ooui:c,showLabel:!1,responsiveBehaviour:r})},c.label))})}const{TextArea}=antd.Input,Text$2=e=>{const{ooui:o}=e,{id:r,readOnly:a,required:s,height:c,translatable:l}=o,d=s&&!a?Config.requiredClass:void 0,u=React.useContext(FormContext$1),{elementHasLostFocus:f}=u||{};return jsxRuntime.jsx(Field$1,{required:s,...e,children:l?jsxRuntime.jsx(TranslatableText,{field:r,requiredClass:d,height:c}):jsxRuntime.jsx(TextArea,{disabled:a||l,className:d,style:{height:c?c+"px":"100%"},rows:4,onBlur:f})})},TranslatableText=({value:e,field:o,requiredClass:r,onChange:a,height:s})=>{const c=React.useContext(FormContext$1),{activeId:l,activeModel:d,fetchValues:u,formHasChanges:f,elementHasLostFocus:p}=c||{},[m,I]=React.useState(!1),{t:h}=React.useContext(LocaleContext);return l?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{onClick:()=>{if(f!=null&&f()){showDialog$7(h("saveBeforeTranslate"));return}m||I(!0)},children:jsxRuntime.jsx(TextArea,{value:e,onChange:v=>{a==null||a(v.target.value)},style:{height:s?s+"px":"100%",cursor:"pointer"},id:o,disabled:!0,className:r,rows:4,onBlur:p})}),jsxRuntime.jsx(TranslationModal,{id:l,model:d,field:o,visible:m,onCloseModal:()=>{I(!1)},onSubmitSucceed:()=>{I(!1),u==null||u()}})]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(antd.Row,{gutter:8,wrap:!1,children:jsxRuntime.jsx(TextArea,{value:e,onChange:v=>{a==null||a(v.target.value)},style:{height:s?s+"px":"100%"},id:o,className:r,rows:4,onBlur:p})}),jsxRuntime.jsx(antd.Row,{justify:"end",style:{paddingTop:5},children:jsxRuntime.jsx(ButtonWithTooltip,{tooltip:h("translate"),icon:jsxRuntime.jsx(Icon.TranslationOutlined,{}),onClick:async()=>{f!=null&&f()?showDialog$7(h("saveBeforeTranslate")):showDialog$7(h("enterTextBeforeTranslate"))},children:h("translate")})})]})},Separator=e=>{const{ooui:o}=e,{label:r}=o;return jsxRuntime.jsx(antd.Divider,{orientation:"left",className:"text-sm",children:r})};//! moment.js
|
|
119
|
+
`,One2manyContext=React__default.default.createContext(null),One2manyProvider=({children:e,initialView:o})=>{const[r,a]=React.useState(o),[s,c]=React.useState(0),[l,d]=React.useState(!1);return jsxRuntime.jsx(One2manyContext.Provider,{value:{currentView:r,setCurrentView:a,itemIndex:s,setItemIndex:c,manualTriggerChange:l,setManualTriggerChange:d},children:e})};var Title$3={},Base={},toArray$1={},hasRequiredToArray;function requireToArray(){if(hasRequiredToArray)return toArray$1;hasRequiredToArray=1;var e=interopRequireDefault.exports;Object.defineProperty(toArray$1,"__esModule",{value:!0}),toArray$1.default=a;var o=e(React__default.default),r=requireReactIs();function a(s){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=[];return o.default.Children.forEach(s,function(d){d==null&&!c.keepEmpty||(Array.isArray(d)?l=l.concat(a(d)):(0,r.isFragment)(d)&&d.props?l=l.concat(a(d.props.children,c)):l.push(d))}),l}return toArray$1}var toggleSelection,hasRequiredToggleSelection;function requireToggleSelection(){return hasRequiredToggleSelection||(hasRequiredToggleSelection=1,toggleSelection=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var o=document.activeElement,r=[],a=0;a<e.rangeCount;a++)r.push(e.getRangeAt(a));switch(o.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":o.blur();break;default:o=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||r.forEach(function(s){e.addRange(s)}),o&&o.focus()}}),toggleSelection}var copyToClipboard,hasRequiredCopyToClipboard;function requireCopyToClipboard(){if(hasRequiredCopyToClipboard)return copyToClipboard;hasRequiredCopyToClipboard=1;var e=requireToggleSelection(),o={"text/plain":"Text","text/html":"Url",default:"Text"},r="Copy to clipboard: #{key}, Enter";function a(c){var l=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return c.replace(/#{\s*key\s*}/g,l)}function s(c,l){var d,u,f,p,m,I,h=!1;l||(l={}),d=l.debug||!1;try{f=e(),p=document.createRange(),m=document.getSelection(),I=document.createElement("span"),I.textContent=c,I.style.all="unset",I.style.position="fixed",I.style.top=0,I.style.clip="rect(0, 0, 0, 0)",I.style.whiteSpace="pre",I.style.webkitUserSelect="text",I.style.MozUserSelect="text",I.style.msUserSelect="text",I.style.userSelect="text",I.addEventListener("copy",function(C){if(C.stopPropagation(),l.format)if(C.preventDefault(),typeof C.clipboardData>"u"){d&&console.warn("unable to use e.clipboardData"),d&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var b=o[l.format]||o.default;window.clipboardData.setData(b,c)}else C.clipboardData.clearData(),C.clipboardData.setData(l.format,c);l.onCopy&&(C.preventDefault(),l.onCopy(C.clipboardData))}),document.body.appendChild(I),p.selectNodeContents(I),m.addRange(p);var g=document.execCommand("copy");if(!g)throw new Error("copy command was unsuccessful");h=!0}catch(C){d&&console.error("unable to copy using execCommand: ",C),d&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(l.format||"text",c),l.onCopy&&l.onCopy(window.clipboardData),h=!0}catch(b){d&&console.error("unable to copy using clipboardData: ",b),d&&console.error("falling back to prompt"),u=a("message"in l?l.message:r),window.prompt(u,c)}}finally{m&&(typeof m.removeRange=="function"?m.removeRange(p):m.removeAllRanges()),I&&document.body.removeChild(I),f()}return h}return copyToClipboard=s,copyToClipboard}var EditOutlined$2={exports:{}},EditOutlined$1={},EditOutlined={},hasRequiredEditOutlined$2;function requireEditOutlined$2(){if(hasRequiredEditOutlined$2)return EditOutlined;hasRequiredEditOutlined$2=1,Object.defineProperty(EditOutlined,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"};return EditOutlined.default=e,EditOutlined}var hasRequiredEditOutlined$1;function requireEditOutlined$1(){if(hasRequiredEditOutlined$1)return EditOutlined$1;hasRequiredEditOutlined$1=1;var e=interopRequireWildcard.exports,o=interopRequireDefault.exports;Object.defineProperty(EditOutlined$1,"__esModule",{value:!0}),EditOutlined$1.default=void 0;var r=o(requireObjectSpread2()),a=e(React__default.default),s=o(requireEditOutlined$2()),c=o(requireAntdIcon()),l=function(f,p){return a.createElement(c.default,(0,r.default)((0,r.default)({},f),{},{ref:p,icon:s.default}))};l.displayName="EditOutlined";var d=a.forwardRef(l);return EditOutlined$1.default=d,EditOutlined$1}var hasRequiredEditOutlined;function requireEditOutlined(){return hasRequiredEditOutlined||(hasRequiredEditOutlined=1,function(e,o){Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var r=a(requireEditOutlined$1());function a(c){return c&&c.__esModule?c:{default:c}}var s=r;o.default=s,e.exports=s}(EditOutlined$2,EditOutlined$2.exports)),EditOutlined$2.exports}var CheckOutlined$2={exports:{}},CheckOutlined$1={},CheckOutlined={},hasRequiredCheckOutlined$2;function requireCheckOutlined$2(){if(hasRequiredCheckOutlined$2)return CheckOutlined;hasRequiredCheckOutlined$2=1,Object.defineProperty(CheckOutlined,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};return CheckOutlined.default=e,CheckOutlined}var hasRequiredCheckOutlined$1;function requireCheckOutlined$1(){if(hasRequiredCheckOutlined$1)return CheckOutlined$1;hasRequiredCheckOutlined$1=1;var e=interopRequireWildcard.exports,o=interopRequireDefault.exports;Object.defineProperty(CheckOutlined$1,"__esModule",{value:!0}),CheckOutlined$1.default=void 0;var r=o(requireObjectSpread2()),a=e(React__default.default),s=o(requireCheckOutlined$2()),c=o(requireAntdIcon()),l=function(f,p){return a.createElement(c.default,(0,r.default)((0,r.default)({},f),{},{ref:p,icon:s.default}))};l.displayName="CheckOutlined";var d=a.forwardRef(l);return CheckOutlined$1.default=d,CheckOutlined$1}var hasRequiredCheckOutlined;function requireCheckOutlined(){return hasRequiredCheckOutlined||(hasRequiredCheckOutlined=1,function(e,o){Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var r=a(requireCheckOutlined$1());function a(c){return c&&c.__esModule?c:{default:c}}var s=r;o.default=s,e.exports=s}(CheckOutlined$2,CheckOutlined$2.exports)),CheckOutlined$2.exports}var CopyOutlined$2={exports:{}},CopyOutlined$1={},CopyOutlined={},hasRequiredCopyOutlined$2;function requireCopyOutlined$2(){if(hasRequiredCopyOutlined$2)return CopyOutlined;hasRequiredCopyOutlined$2=1,Object.defineProperty(CopyOutlined,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"};return CopyOutlined.default=e,CopyOutlined}var hasRequiredCopyOutlined$1;function requireCopyOutlined$1(){if(hasRequiredCopyOutlined$1)return CopyOutlined$1;hasRequiredCopyOutlined$1=1;var e=interopRequireWildcard.exports,o=interopRequireDefault.exports;Object.defineProperty(CopyOutlined$1,"__esModule",{value:!0}),CopyOutlined$1.default=void 0;var r=o(requireObjectSpread2()),a=e(React__default.default),s=o(requireCopyOutlined$2()),c=o(requireAntdIcon()),l=function(f,p){return a.createElement(c.default,(0,r.default)((0,r.default)({},f),{},{ref:p,icon:s.default}))};l.displayName="CopyOutlined";var d=a.forwardRef(l);return CopyOutlined$1.default=d,CopyOutlined$1}var hasRequiredCopyOutlined;function requireCopyOutlined(){return hasRequiredCopyOutlined||(hasRequiredCopyOutlined=1,function(e,o){Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var r=a(requireCopyOutlined$1());function a(c){return c&&c.__esModule?c:{default:c}}var s=r;o.default=s,e.exports=s}(CopyOutlined$2,CopyOutlined$2.exports)),CopyOutlined$2.exports}const require$$18=getAugmentedNamespace(es$4);var transButton={},KeyCode={},hasRequiredKeyCode;function requireKeyCode(){if(hasRequiredKeyCode)return KeyCode;hasRequiredKeyCode=1,Object.defineProperty(KeyCode,"__esModule",{value:!0}),KeyCode.default=void 0;var e={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(a){var s=a.keyCode;if(a.altKey&&!a.ctrlKey||a.metaKey||s>=e.F1&&s<=e.F12)return!1;switch(s){case e.ALT:case e.CAPS_LOCK:case e.CONTEXT_MENU:case e.CTRL:case e.DOWN:case e.END:case e.ESC:case e.HOME:case e.INSERT:case e.LEFT:case e.MAC_FF_META:case e.META:case e.NUMLOCK:case e.NUM_CENTER:case e.PAGE_DOWN:case e.PAGE_UP:case e.PAUSE:case e.PRINT_SCREEN:case e.RIGHT:case e.SHIFT:case e.UP:case e.WIN_KEY:case e.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(a){if(a>=e.ZERO&&a<=e.NINE||a>=e.NUM_ZERO&&a<=e.NUM_MULTIPLY||a>=e.A&&a<=e.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&a===0)return!0;switch(a){case e.SPACE:case e.QUESTION_MARK:case e.NUM_PLUS:case e.NUM_MINUS:case e.NUM_PERIOD:case e.NUM_DIVISION:case e.SEMICOLON:case e.DASH:case e.EQUALS:case e.COMMA:case e.PERIOD:case e.SLASH:case e.APOSTROPHE:case e.SINGLE_QUOTE:case e.OPEN_SQUARE_BRACKET:case e.BACKSLASH:case e.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},o=e;return KeyCode.default=o,KeyCode}var hasRequiredTransButton;function requireTransButton(){return hasRequiredTransButton||(hasRequiredTransButton=1,function(e){var o=interopRequireWildcard.exports,r=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=r(require_extends()),s=o(React__default.default),c=r(requireKeyCode()),l=function(p,m){var I={};for(var h in p)Object.prototype.hasOwnProperty.call(p,h)&&m.indexOf(h)<0&&(I[h]=p[h]);if(p!=null&&typeof Object.getOwnPropertySymbols=="function")for(var g=0,h=Object.getOwnPropertySymbols(p);g<h.length;g++)m.indexOf(h[g])<0&&Object.prototype.propertyIsEnumerable.call(p,h[g])&&(I[h[g]]=p[h[g]]);return I},d={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-block"},u=s.forwardRef(function(p,m){var I=function(w){var _=w.keyCode;_===c.default.ENTER&&w.preventDefault()},h=function(w){var _=w.keyCode,F=p.onClick;_===c.default.ENTER&&F&&F()},g=p.style,C=p.noStyle,b=p.disabled,y=l(p,["style","noStyle","disabled"]),v={};return C||(v=(0,a.default)({},d)),b&&(v.pointerEvents="none"),v=(0,a.default)((0,a.default)({},v),g),s.createElement("div",(0,a.default)({role:"button",tabIndex:0,ref:m},y,{onKeyDown:I,onKeyUp:h,style:v}))}),f=u;e.default=f}(transButton)),transButton}var raf$1={},raf={},hasRequiredRaf$1;function requireRaf$1(){if(hasRequiredRaf$1)return raf;hasRequiredRaf$1=1,Object.defineProperty(raf,"__esModule",{value:!0}),raf.default=r;var e=function(s){return+setTimeout(s,16)},o=function(s){return clearTimeout(s)};typeof window<"u"&&"requestAnimationFrame"in window&&(e=function(s){return window.requestAnimationFrame(s)},o=function(s){return window.cancelAnimationFrame(s)});function r(a){return e(a)}return r.cancel=o,raf}var hasRequiredRaf;function requireRaf(){return hasRequiredRaf||(hasRequiredRaf=1,function(e){var o=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=c;var r=o(requireRaf$1()),a=0,s={};function c(l){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,u=a++,f=d;function p(){f-=1,f<=0?(l(),delete s[u]):s[u]=(0,r.default)(p)}return s[u]=(0,r.default)(p),u}c.cancel=function(d){d!==void 0&&(r.default.cancel(s[d]),delete s[d])},c.ids=s}(raf$1)),raf$1}var styleChecker={},canUseDom={},hasRequiredCanUseDom;function requireCanUseDom(){if(hasRequiredCanUseDom)return canUseDom;hasRequiredCanUseDom=1,Object.defineProperty(canUseDom,"__esModule",{value:!0}),canUseDom.default=e;function e(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}return canUseDom}var hasRequiredStyleChecker;function requireStyleChecker(){if(hasRequiredStyleChecker)return styleChecker;hasRequiredStyleChecker=1;var e=interopRequireDefault.exports;Object.defineProperty(styleChecker,"__esModule",{value:!0}),styleChecker.detectFlexGapSupported=styleChecker.isStyleSupport=styleChecker.canUseDocElement=void 0;var o=e(requireCanUseDom()),r=function(){return(0,o.default)()&&window.document.documentElement};styleChecker.canUseDocElement=r;var a=function(d){if(r()){var u=Array.isArray(d)?d:[d],f=window.document.documentElement;return u.some(function(p){return p in f.style})}return!1};styleChecker.isStyleSupport=a;var s,c=function(){if(!r())return!1;if(s!==void 0)return s;var d=document.createElement("div");return d.style.display="flex",d.style.flexDirection="column",d.style.rowGap="1px",d.appendChild(document.createElement("div")),d.appendChild(document.createElement("div")),document.body.appendChild(d),s=d.scrollHeight===1,document.body.removeChild(d),s};return styleChecker.detectFlexGapSupported=c,styleChecker}var tooltip={};function contains(e,o){return e?e.contains(o):!1}function addEventListenerWrap(e,o,r,a){var s=ReactDOM__default.default.unstable_batchedUpdates?function(l){ReactDOM__default.default.unstable_batchedUpdates(r,l)}:r;return e.addEventListener&&e.addEventListener(o,s,a),{remove:function(){e.removeEventListener&&e.removeEventListener(o,s)}}}var Portal=React.forwardRef(function(e,o){var r=e.didUpdate,a=e.getContainer,s=e.children,c=React.useRef();React.useImperativeHandle(o,function(){return{}});var l=React.useRef(!1);return!l.current&&canUseDom$1()&&(c.current=a(),l.current=!0),React.useEffect(function(){r==null||r(e)}),React.useEffect(function(){return function(){var d,u;(d=c.current)===null||d===void 0||(u=d.parentNode)===null||u===void 0||u.removeChild(c.current)}},[]),c.current?ReactDOM__default.default.createPortal(s,c.current):null});function isPointsEq(e,o,r){return r?e[0]===o[0]:e[0]===o[0]&&e[1]===o[1]}function getAlignFromPlacement(e,o,r){var a=e[o]||{};return _objectSpread2$1(_objectSpread2$1({},a),r)}function getAlignPopupClassName(e,o,r,a){for(var s=r.points,c=Object.keys(e),l=0;l<c.length;l+=1){var d=c[l];if(isPointsEq(e[d].points,s,a))return"".concat(o,"-placement-").concat(d)}return""}const isMobile=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return!!(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e.substr(0,4)))};function getMotion(e){var o=e.prefixCls,r=e.motion,a=e.animation,s=e.transitionName;return r||(a?{motionName:"".concat(o,"-").concat(a)}:s?{motionName:s}:null)}function Mask(e){var o=e.prefixCls,r=e.visible,a=e.zIndex,s=e.mask,c=e.maskMotion,l=e.maskAnimation,d=e.maskTransitionName;if(!s)return null;var u={};return(c||d||l)&&(u=_objectSpread2$1({motionAppear:!0},getMotion({motion:c,prefixCls:o,transitionName:d,animation:l}))),jsxRuntime.jsx(CSSMotion,{...u,visible:r,removeOnLeave:!0,children:function(f){var p=f.className;return jsxRuntime.jsx("div",{style:{zIndex:a},className:classnamesExports("".concat(o,"-mask"),p)})}})}const isVisible=function(e){if(!e)return!1;if(e.offsetParent)return!0;if(e.getBBox){var o=e.getBBox();if(o.width||o.height)return!0}if(e.getBoundingClientRect){var r=e.getBoundingClientRect();if(r.width||r.height)return!0}return!1};function _typeof(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(o){return typeof o}:_typeof=function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(e)}function _defineProperty(e,o,r){return o in e?Object.defineProperty(e,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[o]=r,e}function ownKeys(e,o){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);o&&(a=a.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,a)}return r}function _objectSpread2(e){for(var o=1;o<arguments.length;o++){var r=arguments[o]!=null?arguments[o]:{};o%2?ownKeys(r,!0).forEach(function(a){_defineProperty(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(r).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}var vendorPrefix,jsCssMap={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"};function getVendorPrefix(){if(vendorPrefix!==void 0)return vendorPrefix;vendorPrefix="";var e=document.createElement("p").style,o="Transform";for(var r in jsCssMap)r+o in e&&(vendorPrefix=r);return vendorPrefix}function getTransitionName(){return getVendorPrefix()?"".concat(getVendorPrefix(),"TransitionProperty"):"transitionProperty"}function getTransformName(){return getVendorPrefix()?"".concat(getVendorPrefix(),"Transform"):"transform"}function setTransitionProperty(e,o){var r=getTransitionName();r&&(e.style[r]=o,r!=="transitionProperty"&&(e.style.transitionProperty=o))}function setTransform(e,o){var r=getTransformName();r&&(e.style[r]=o,r!=="transform"&&(e.style.transform=o))}function getTransitionProperty(e){return e.style.transitionProperty||e.style[getTransitionName()]}function getTransformXY(e){var o=window.getComputedStyle(e,null),r=o.getPropertyValue("transform")||o.getPropertyValue(getTransformName());if(r&&r!=="none"){var a=r.replace(/[^0-9\-.,]/g,"").split(",");return{x:parseFloat(a[12]||a[4],0),y:parseFloat(a[13]||a[5],0)}}return{x:0,y:0}}var matrix2d=/matrix\((.*)\)/,matrix3d=/matrix3d\((.*)\)/;function setTransformXY(e,o){var r=window.getComputedStyle(e,null),a=r.getPropertyValue("transform")||r.getPropertyValue(getTransformName());if(a&&a!=="none"){var s,c=a.match(matrix2d);if(c)c=c[1],s=c.split(",").map(function(d){return parseFloat(d,10)}),s[4]=o.x,s[5]=o.y,setTransform(e,"matrix(".concat(s.join(","),")"));else{var l=a.match(matrix3d)[1];s=l.split(",").map(function(d){return parseFloat(d,10)}),s[12]=o.x,s[13]=o.y,setTransform(e,"matrix3d(".concat(s.join(","),")"))}}else setTransform(e,"translateX(".concat(o.x,"px) translateY(").concat(o.y,"px) translateZ(0)"))}var RE_NUM=/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,getComputedStyleX;function forceRelayout(e){var o=e.style.display;e.style.display="none",e.offsetHeight,e.style.display=o}function css(e,o,r){var a=r;if(_typeof(o)==="object"){for(var s in o)o.hasOwnProperty(s)&&css(e,s,o[s]);return}if(typeof a<"u"){typeof a=="number"&&(a="".concat(a,"px")),e.style[o]=a;return}return getComputedStyleX(e,o)}function getClientPosition(e){var o,r,a,s=e.ownerDocument,c=s.body,l=s&&s.documentElement;return o=e.getBoundingClientRect(),r=o.left,a=o.top,r-=l.clientLeft||c.clientLeft||0,a-=l.clientTop||c.clientTop||0,{left:r,top:a}}function getScroll(e,o){var r=e["page".concat(o?"Y":"X","Offset")],a="scroll".concat(o?"Top":"Left");if(typeof r!="number"){var s=e.document;r=s.documentElement[a],typeof r!="number"&&(r=s.body[a])}return r}function getScrollLeft(e){return getScroll(e)}function getScrollTop(e){return getScroll(e,!0)}function getOffset(e){var o=getClientPosition(e),r=e.ownerDocument,a=r.defaultView||r.parentWindow;return o.left+=getScrollLeft(a),o.top+=getScrollTop(a),o}function isWindow(e){return e!=null&&e==e.window}function getDocument(e){return isWindow(e)?e.document:e.nodeType===9?e:e.ownerDocument}function _getComputedStyle(e,o,r){var a=r,s="",c=getDocument(e);return a=a||c.defaultView.getComputedStyle(e,null),a&&(s=a.getPropertyValue(o)||a[o]),s}var _RE_NUM_NO_PX=new RegExp("^(".concat(RE_NUM,")(?!px)[a-z%]+$"),"i"),RE_POS=/^(top|right|bottom|left)$/,CURRENT_STYLE="currentStyle",RUNTIME_STYLE="runtimeStyle",LEFT="left",PX="px";function _getComputedStyleIE(e,o){var r=e[CURRENT_STYLE]&&e[CURRENT_STYLE][o];if(_RE_NUM_NO_PX.test(r)&&!RE_POS.test(o)){var a=e.style,s=a[LEFT],c=e[RUNTIME_STYLE][LEFT];e[RUNTIME_STYLE][LEFT]=e[CURRENT_STYLE][LEFT],a[LEFT]=o==="fontSize"?"1em":r||0,r=a.pixelLeft+PX,a[LEFT]=s,e[RUNTIME_STYLE][LEFT]=c}return r===""?"auto":r}typeof window<"u"&&(getComputedStyleX=window.getComputedStyle?_getComputedStyle:_getComputedStyleIE);function getOffsetDirection(e,o){return e==="left"?o.useCssRight?"right":e:o.useCssBottom?"bottom":e}function oppositeOffsetDirection(e){if(e==="left")return"right";if(e==="right")return"left";if(e==="top")return"bottom";if(e==="bottom")return"top"}function setLeftTop(e,o,r){css(e,"position")==="static"&&(e.style.position="relative");var a=-999,s=-999,c=getOffsetDirection("left",r),l=getOffsetDirection("top",r),d=oppositeOffsetDirection(c),u=oppositeOffsetDirection(l);c!=="left"&&(a=999),l!=="top"&&(s=999);var f="",p=getOffset(e);("left"in o||"top"in o)&&(f=getTransitionProperty(e)||"",setTransitionProperty(e,"none")),"left"in o&&(e.style[d]="",e.style[c]="".concat(a,"px")),"top"in o&&(e.style[u]="",e.style[l]="".concat(s,"px")),forceRelayout(e);var m=getOffset(e),I={};for(var h in o)if(o.hasOwnProperty(h)){var g=getOffsetDirection(h,r),C=h==="left"?a:s,b=p[h]-m[h];g===h?I[g]=C+b:I[g]=C-b}css(e,I),forceRelayout(e),("left"in o||"top"in o)&&setTransitionProperty(e,f);var y={};for(var v in o)if(o.hasOwnProperty(v)){var O=getOffsetDirection(v,r),w=o[v]-p[v];v===O?y[O]=I[O]+w:y[O]=I[O]-w}css(e,y)}function setTransform$1(e,o){var r=getOffset(e),a=getTransformXY(e),s={x:a.x,y:a.y};"left"in o&&(s.x=a.x+o.left-r.left),"top"in o&&(s.y=a.y+o.top-r.top),setTransformXY(e,s)}function setOffset(e,o,r){if(r.ignoreShake){var a=getOffset(e),s=a.left.toFixed(0),c=a.top.toFixed(0),l=o.left.toFixed(0),d=o.top.toFixed(0);if(s===l&&c===d)return}r.useCssRight||r.useCssBottom?setLeftTop(e,o,r):r.useCssTransform&&getTransformName()in document.body.style?setTransform$1(e,o):setLeftTop(e,o,r)}function each(e,o){for(var r=0;r<e.length;r++)o(e[r])}function isBorderBoxFn(e){return getComputedStyleX(e,"boxSizing")==="border-box"}var BOX_MODELS=["margin","border","padding"],CONTENT_INDEX=-1,PADDING_INDEX=2,BORDER_INDEX=1,MARGIN_INDEX=0;function swap(e,o,r){var a={},s=e.style,c;for(c in o)o.hasOwnProperty(c)&&(a[c]=s[c],s[c]=o[c]);r.call(e);for(c in o)o.hasOwnProperty(c)&&(s[c]=a[c])}function getPBMWidth(e,o,r){var a=0,s,c,l;for(c=0;c<o.length;c++)if(s=o[c],s)for(l=0;l<r.length;l++){var d=void 0;s==="border"?d="".concat(s).concat(r[l],"Width"):d=s+r[l],a+=parseFloat(getComputedStyleX(e,d))||0}return a}var domUtils={getParent:function e(o){var r=o;do r.nodeType===11&&r.host?r=r.host:r=r.parentNode;while(r&&r.nodeType!==1&&r.nodeType!==9);return r}};each(["Width","Height"],function(e){domUtils["doc".concat(e)]=function(o){var r=o.document;return Math.max(r.documentElement["scroll".concat(e)],r.body["scroll".concat(e)],domUtils["viewport".concat(e)](r))},domUtils["viewport".concat(e)]=function(o){var r="client".concat(e),a=o.document,s=a.body,c=a.documentElement,l=c[r];return a.compatMode==="CSS1Compat"&&l||s&&s[r]||l}});function getWH(e,o,r){var a=r;if(isWindow(e))return o==="width"?domUtils.viewportWidth(e):domUtils.viewportHeight(e);if(e.nodeType===9)return o==="width"?domUtils.docWidth(e):domUtils.docHeight(e);var s=o==="width"?["Left","Right"]:["Top","Bottom"],c=o==="width"?e.getBoundingClientRect().width:e.getBoundingClientRect().height;getComputedStyleX(e);var l=isBorderBoxFn(e),d=0;(c==null||c<=0)&&(c=void 0,d=getComputedStyleX(e,o),(d==null||Number(d)<0)&&(d=e.style[o]||0),d=parseFloat(d)||0),a===void 0&&(a=l?BORDER_INDEX:CONTENT_INDEX);var u=c!==void 0||l,f=c||d;return a===CONTENT_INDEX?u?f-getPBMWidth(e,["border","padding"],s):d:u?a===BORDER_INDEX?f:f+(a===PADDING_INDEX?-getPBMWidth(e,["border"],s):getPBMWidth(e,["margin"],s)):d+getPBMWidth(e,BOX_MODELS.slice(a),s)}var cssShow={position:"absolute",visibility:"hidden",display:"block"};function getWHIgnoreDisplay(){for(var e=arguments.length,o=new Array(e),r=0;r<e;r++)o[r]=arguments[r];var a,s=o[0];return s.offsetWidth!==0?a=getWH.apply(void 0,o):swap(s,cssShow,function(){a=getWH.apply(void 0,o)}),a}each(["width","height"],function(e){var o=e.charAt(0).toUpperCase()+e.slice(1);domUtils["outer".concat(o)]=function(a,s){return a&&getWHIgnoreDisplay(a,e,s?MARGIN_INDEX:BORDER_INDEX)};var r=e==="width"?["Left","Right"]:["Top","Bottom"];domUtils[e]=function(a,s){var c=s;if(c!==void 0){if(a){getComputedStyleX(a);var l=isBorderBoxFn(a);return l&&(c+=getPBMWidth(a,["padding","border"],r)),css(a,e,c)}return}return a&&getWHIgnoreDisplay(a,e,CONTENT_INDEX)}});function mix(e,o){for(var r in o)o.hasOwnProperty(r)&&(e[r]=o[r]);return e}var utils={getWindow:function e(o){if(o&&o.document&&o.setTimeout)return o;var r=o.ownerDocument||o;return r.defaultView||r.parentWindow},getDocument,offset:function e(o,r,a){if(typeof r<"u")setOffset(o,r,a||{});else return getOffset(o)},isWindow,each,css,clone:function e(o){var r,a={};for(r in o)o.hasOwnProperty(r)&&(a[r]=o[r]);var s=o.overflow;if(s)for(r in o)o.hasOwnProperty(r)&&(a.overflow[r]=o.overflow[r]);return a},mix,getWindowScrollLeft:function e(o){return getScrollLeft(o)},getWindowScrollTop:function e(o){return getScrollTop(o)},merge:function e(){for(var o={},r=0;r<arguments.length;r++)utils.mix(o,r<0||arguments.length<=r?void 0:arguments[r]);return o},viewportWidth:0,viewportHeight:0};mix(utils,domUtils);var getParent=utils.getParent;function getOffsetParent(e){if(utils.isWindow(e)||e.nodeType===9)return null;var o=utils.getDocument(e),r=o.body,a,s=utils.css(e,"position"),c=s==="fixed"||s==="absolute";if(!c)return e.nodeName.toLowerCase()==="html"?null:getParent(e);for(a=getParent(e);a&&a!==r&&a.nodeType!==9;a=getParent(a))if(s=utils.css(a,"position"),s!=="static")return a;return null}var getParent$1=utils.getParent;function isAncestorFixed(e){if(utils.isWindow(e)||e.nodeType===9)return!1;var o=utils.getDocument(e),r=o.body,a=null;for(a=getParent$1(e);a&&a!==r;a=getParent$1(a)){var s=utils.css(a,"position");if(s==="fixed")return!0}return!1}function getVisibleRectForElement(e,o){for(var r={left:0,right:1/0,top:0,bottom:1/0},a=getOffsetParent(e),s=utils.getDocument(e),c=s.defaultView||s.parentWindow,l=s.body,d=s.documentElement;a;){if((navigator.userAgent.indexOf("MSIE")===-1||a.clientWidth!==0)&&a!==l&&a!==d&&utils.css(a,"overflow")!=="visible"){var u=utils.offset(a);u.left+=a.clientLeft,u.top+=a.clientTop,r.top=Math.max(r.top,u.top),r.right=Math.min(r.right,u.left+a.clientWidth),r.bottom=Math.min(r.bottom,u.top+a.clientHeight),r.left=Math.max(r.left,u.left)}else if(a===l||a===d)break;a=getOffsetParent(a)}var f=null;if(!utils.isWindow(e)&&e.nodeType!==9){f=e.style.position;var p=utils.css(e,"position");p==="absolute"&&(e.style.position="fixed")}var m=utils.getWindowScrollLeft(c),I=utils.getWindowScrollTop(c),h=utils.viewportWidth(c),g=utils.viewportHeight(c),C=d.scrollWidth,b=d.scrollHeight,y=window.getComputedStyle(l);if(y.overflowX==="hidden"&&(C=c.innerWidth),y.overflowY==="hidden"&&(b=c.innerHeight),e.style&&(e.style.position=f),o||isAncestorFixed(e))r.left=Math.max(r.left,m),r.top=Math.max(r.top,I),r.right=Math.min(r.right,m+h),r.bottom=Math.min(r.bottom,I+g);else{var v=Math.max(C,m+h);r.right=Math.min(r.right,v);var O=Math.max(b,I+g);r.bottom=Math.min(r.bottom,O)}return r.top>=0&&r.left>=0&&r.bottom>r.top&&r.right>r.left?r:null}function adjustForViewport(e,o,r,a){var s=utils.clone(e),c={width:o.width,height:o.height};return a.adjustX&&s.left<r.left&&(s.left=r.left),a.resizeWidth&&s.left>=r.left&&s.left+c.width>r.right&&(c.width-=s.left+c.width-r.right),a.adjustX&&s.left+c.width>r.right&&(s.left=Math.max(r.right-c.width,r.left)),a.adjustY&&s.top<r.top&&(s.top=r.top),a.resizeHeight&&s.top>=r.top&&s.top+c.height>r.bottom&&(c.height-=s.top+c.height-r.bottom),a.adjustY&&s.top+c.height>r.bottom&&(s.top=Math.max(r.bottom-c.height,r.top)),utils.mix(s,c)}function getRegion(e){var o,r,a;if(!utils.isWindow(e)&&e.nodeType!==9)o=utils.offset(e),r=utils.outerWidth(e),a=utils.outerHeight(e);else{var s=utils.getWindow(e);o={left:utils.getWindowScrollLeft(s),top:utils.getWindowScrollTop(s)},r=utils.viewportWidth(s),a=utils.viewportHeight(s)}return o.width=r,o.height=a,o}function getAlignOffset(e,o){var r=o.charAt(0),a=o.charAt(1),s=e.width,c=e.height,l=e.left,d=e.top;return r==="c"?d+=c/2:r==="b"&&(d+=c),a==="c"?l+=s/2:a==="r"&&(l+=s),{left:l,top:d}}function getElFuturePos(e,o,r,a,s){var c=getAlignOffset(o,r[1]),l=getAlignOffset(e,r[0]),d=[l.left-c.left,l.top-c.top];return{left:Math.round(e.left-d[0]+a[0]-s[0]),top:Math.round(e.top-d[1]+a[1]-s[1])}}function isFailX(e,o,r){return e.left<r.left||e.left+o.width>r.right}function isFailY(e,o,r){return e.top<r.top||e.top+o.height>r.bottom}function isCompleteFailX(e,o,r){return e.left>r.right||e.left+o.width<r.left}function isCompleteFailY(e,o,r){return e.top>r.bottom||e.top+o.height<r.top}function flip(e,o,r){var a=[];return utils.each(e,function(s){a.push(s.replace(o,function(c){return r[c]}))}),a}function flipOffset(e,o){return e[o]=-e[o],e}function convertOffset(e,o){var r;return/%$/.test(e)?r=parseInt(e.substring(0,e.length-1),10)/100*o:r=parseInt(e,10),r||0}function normalizeOffset(e,o){e[0]=convertOffset(e[0],o.width),e[1]=convertOffset(e[1],o.height)}function doAlign(e,o,r,a){var s=r.points,c=r.offset||[0,0],l=r.targetOffset||[0,0],d=r.overflow,u=r.source||e;c=[].concat(c),l=[].concat(l),d=d||{};var f={},p=0,m=!!(d&&d.alwaysByViewport),I=getVisibleRectForElement(u,m),h=getRegion(u);normalizeOffset(c,h),normalizeOffset(l,o);var g=getElFuturePos(h,o,s,c,l),C=utils.merge(h,g);if(I&&(d.adjustX||d.adjustY)&&a){if(d.adjustX&&isFailX(g,h,I)){var b=flip(s,/[lr]/gi,{l:"r",r:"l"}),y=flipOffset(c,0),v=flipOffset(l,0),O=getElFuturePos(h,o,b,y,v);isCompleteFailX(O,h,I)||(p=1,s=b,c=y,l=v)}if(d.adjustY&&isFailY(g,h,I)){var w=flip(s,/[tb]/gi,{t:"b",b:"t"}),_=flipOffset(c,1),F=flipOffset(l,1),L=getElFuturePos(h,o,w,_,F);isCompleteFailY(L,h,I)||(p=1,s=w,c=_,l=F)}p&&(g=getElFuturePos(h,o,s,c,l),utils.mix(C,g));var E=isFailX(g,h,I),P=isFailY(g,h,I);if(E||P){var A=s;E&&(A=flip(s,/[lr]/gi,{l:"r",r:"l"})),P&&(A=flip(s,/[tb]/gi,{t:"b",b:"t"})),s=A,c=r.offset||[0,0],l=r.targetOffset||[0,0]}f.adjustX=d.adjustX&&E,f.adjustY=d.adjustY&&P,(f.adjustX||f.adjustY)&&(C=adjustForViewport(g,h,I,f))}return C.width!==h.width&&utils.css(u,"width",utils.width(u)+C.width-h.width),C.height!==h.height&&utils.css(u,"height",utils.height(u)+C.height-h.height),utils.offset(u,{left:C.left,top:C.top},{useCssRight:r.useCssRight,useCssBottom:r.useCssBottom,useCssTransform:r.useCssTransform,ignoreShake:r.ignoreShake}),{points:s,offset:c,targetOffset:l,overflow:f}}function isOutOfVisibleRect(e,o){var r=getVisibleRectForElement(e,o),a=getRegion(e);return!r||a.left+a.width<=r.left||a.top+a.height<=r.top||a.left>=r.right||a.top>=r.bottom}function alignElement(e,o,r){var a=r.target||o,s=getRegion(a),c=!isOutOfVisibleRect(a,r.overflow&&r.overflow.alwaysByViewport);return doAlign(e,s,r,c)}alignElement.__getOffsetParent=getOffsetParent,alignElement.__getVisibleRectForElement=getVisibleRectForElement;function alignPoint(e,o,r){var a,s,c=utils.getDocument(e),l=c.defaultView||c.parentWindow,d=utils.getWindowScrollLeft(l),u=utils.getWindowScrollTop(l),f=utils.viewportWidth(l),p=utils.viewportHeight(l);"pageX"in o?a=o.pageX:a=d+o.clientX,"pageY"in o?s=o.pageY:s=u+o.clientY;var m={left:a,top:s,width:0,height:0},I=a>=0&&a<=d+f&&s>=0&&s<=u+p,h=[r.points[0],"cc"];return doAlign(e,m,_objectSpread2({},r,{points:h}),I)}function isSamePoint(e,o){return e===o?!0:!e||!o?!1:"pageX"in o&&"pageY"in o?e.pageX===o.pageX&&e.pageY===o.pageY:"clientX"in o&&"clientY"in o?e.clientX===o.clientX&&e.clientY===o.clientY:!1}function restoreFocus(e,o){e!==document.activeElement&&contains(o,e)&&typeof e.focus=="function"&&e.focus()}function monitorResize(e,o){var r=null,a=null;function s(l){var d=_slicedToArray(l,1),u=d[0].target;if(!!document.documentElement.contains(u)){var f=u.getBoundingClientRect(),p=f.width,m=f.height,I=Math.floor(p),h=Math.floor(m);(r!==I||a!==h)&&Promise.resolve().then(function(){o({width:I,height:h})}),r=I,a=h}}var c=new index(s);return e&&c.observe(e),function(){c.disconnect()}}const useBuffer=function(e,o){var r=React__default.default.useRef(!1),a=React__default.default.useRef(null);function s(){window.clearTimeout(a.current)}function c(l){if(!r.current||l===!0){if(e()===!1)return;r.current=!0,s(),a.current=window.setTimeout(function(){r.current=!1},o)}else s(),a.current=window.setTimeout(function(){r.current=!1,c()},o)}return[c,function(){r.current=!1,s()}]};function getElement(e){return typeof e!="function"?null:e()}function getPoint(e){return _typeof$1(e)!=="object"||!e?null:e}var Align=function e(o,r){var a=o.children,s=o.disabled,c=o.target,l=o.align,d=o.onAlign,u=o.monitorWindowResize,f=o.monitorBufferTime,p=f===void 0?0:f,m=React__default.default.useRef({}),I=React__default.default.useRef(),h=React__default.default.Children.only(a),g=React__default.default.useRef({});g.current.disabled=s,g.current.target=c,g.current.onAlign=d;var C=useBuffer(function(){var F=g.current,L=F.disabled,E=F.target,P=F.onAlign;if(!L&&E){var A=I.current,W,J=getElement(E),z=getPoint(E);m.current.element=J,m.current.point=z;var Y=document,Q=Y.activeElement;return J&&isVisible(J)?W=alignElement(A,J,l):z&&(W=alignPoint(A,z,l)),restoreFocus(Q,A),P&&W&&P(A,W),!0}return!1},p),b=_slicedToArray(C,2),y=b[0],v=b[1],O=React__default.default.useRef({cancel:function(){}}),w=React__default.default.useRef({cancel:function(){}});React__default.default.useEffect(function(){var F=getElement(c),L=getPoint(c);I.current!==w.current.element&&(w.current.cancel(),w.current.element=I.current,w.current.cancel=monitorResize(I.current,y)),(m.current.element!==F||!isSamePoint(m.current.point,L))&&(y(),O.current.element!==F&&(O.current.cancel(),O.current.element=F,O.current.cancel=monitorResize(F,y)))}),React__default.default.useEffect(function(){s?v():y()},[s]);var _=React__default.default.useRef(null);return React__default.default.useEffect(function(){u?_.current||(_.current=addEventListenerWrap(window,"resize",y)):_.current&&(_.current.remove(),_.current=null)},[u]),React__default.default.useEffect(function(){return function(){O.current.cancel(),w.current.cancel(),_.current&&_.current.remove(),v()}},[]),React__default.default.useImperativeHandle(r,function(){return{forceAlign:function(){return y(!0)}}}),React__default.default.isValidElement(h)&&(h=React__default.default.cloneElement(h,{ref:composeRef(h.ref,I)})),h},RefAlign=React__default.default.forwardRef(Align);RefAlign.displayName="Align";var StatusQueue=["measure","align",null,"motion"];const useVisibleStatus=function(e,o){var r=React.useState(null),a=_slicedToArray(r,2),s=a[0],c=a[1],l=React.useRef(),d=React.useRef(!1);function u(m){d.current||c(m)}function f(){wrapperRaf.cancel(l.current)}function p(m){f(),l.current=wrapperRaf(function(){u(function(I){switch(s){case"align":return"motion";case"motion":return"stable"}return I}),m==null||m()})}return React.useEffect(function(){u("measure")},[e]),React.useEffect(function(){switch(s){case"measure":o();break}s&&(l.current=wrapperRaf(_asyncToGenerator(regeneratorExports.mark(function m(){var I,h;return regeneratorExports.wrap(function(C){for(;;)switch(C.prev=C.next){case 0:I=StatusQueue.indexOf(s),h=StatusQueue[I+1],h&&I!==-1&&u(h);case 3:case"end":return C.stop()}},m)}))))},[s]),React.useEffect(function(){return function(){d.current=!0,f()}},[]),[s,p]},useStretchStyle=function(e){var o=React__namespace.useState({width:0,height:0}),r=_slicedToArray(o,2),a=r[0],s=r[1];function c(d){s({width:d.offsetWidth,height:d.offsetHeight})}var l=React__namespace.useMemo(function(){var d={};if(e){var u=a.width,f=a.height;e.indexOf("height")!==-1&&f?d.height=f:e.indexOf("minHeight")!==-1&&f&&(d.minHeight=f),e.indexOf("width")!==-1&&u?d.width=u:e.indexOf("minWidth")!==-1&&u&&(d.minWidth=u)}return d},[e,a]);return[l,c]};var PopupInner=React__namespace.forwardRef(function(e,o){var r=e.visible,a=e.prefixCls,s=e.className,c=e.style,l=e.children,d=e.zIndex,u=e.stretch,f=e.destroyPopupOnHide,p=e.align,m=e.point,I=e.getRootDomNode,h=e.getClassNameFromAlign,g=e.onAlign,C=e.onMouseEnter,b=e.onMouseLeave,y=e.onMouseDown,v=e.onTouchStart,O=React.useRef(),w=React.useRef(),_=React.useState(),F=_slicedToArray(_,2),L=F[0],E=F[1],P=useStretchStyle(u),A=_slicedToArray(P,2),W=A[0],J=A[1];function z(){u&&J(I())}var Y=useVisibleStatus(r,z),Q=_slicedToArray(Y,2),oe=Q[0],ee=Q[1],X=React.useRef();function ue(){return m||I}function Re(){var U;(U=O.current)===null||U===void 0||U.forceAlign()}function xe(U,re){if(oe==="align"){var Te=h(re);E(Te),L!==Te?Promise.resolve().then(function(){Re()}):ee(function(){var Fe;(Fe=X.current)===null||Fe===void 0||Fe.call(X)}),g==null||g(U,re)}}var ce=_objectSpread2$1({},getMotion(e));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(U){var re=ce[U];ce[U]=function(Te,Fe){return ee(),re==null?void 0:re(Te,Fe)}});function Ce(){return new Promise(function(U){X.current=U})}React__namespace.useEffect(function(){!ce.motionName&&oe==="motion"&&ee()},[ce.motionName,oe]),React__namespace.useImperativeHandle(o,function(){return{forceAlign:Re,getElement:function(){return w.current}}});var te=_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({},W),{},{zIndex:d},c),{},{opacity:oe==="motion"||oe==="stable"||!r?void 0:0,pointerEvents:oe==="stable"?void 0:"none"}),de=!0;(p==null?void 0:p.points)&&(oe==="align"||oe==="stable")&&(de=!1);var N=l;return React__namespace.Children.count(l)>1&&(N=jsxRuntime.jsx("div",{className:"".concat(a,"-content"),children:l})),jsxRuntime.jsx(CSSMotion,{visible:r,ref:w,leavedClassName:"".concat(a,"-hidden"),...ce,onAppearPrepare:Ce,onEnterPrepare:Ce,removeOnLeave:f,children:function(U,re){var Te=U.className,Fe=U.style,M=classnamesExports(a,s,L,Te);return jsxRuntime.jsx(RefAlign,{target:ue(),ref:O,monitorWindowResize:!0,disabled:de,align:p,onAlign:xe,children:jsxRuntime.jsx("div",{ref:re,className:M,onMouseEnter:C,onMouseLeave:b,onMouseDown:y,onTouchStart:v,style:_objectSpread2$1(_objectSpread2$1({},Fe),te),children:N})},"popup")}})});PopupInner.displayName="PopupInner";var MobilePopupInner=React__namespace.forwardRef(function(e,o){var r=e.prefixCls,a=e.visible,s=e.zIndex,c=e.children,l=e.mobile;l=l===void 0?{}:l;var d=l.popupClassName,u=l.popupStyle,f=l.popupMotion,p=f===void 0?{}:f,m=l.popupRender,I=React__namespace.useRef();React__namespace.useImperativeHandle(o,function(){return{forceAlign:function(){},getElement:function(){return I.current}}});var h=_objectSpread2$1({zIndex:s},u),g=c;return React__namespace.Children.count(c)>1&&(g=jsxRuntime.jsx("div",{className:"".concat(r,"-content"),children:c})),m&&(g=m(g)),jsxRuntime.jsx(CSSMotion,{visible:a,ref:I,removeOnLeave:!0,...p,children:function(C,b){var y=C.className,v=C.style,O=classnamesExports(r,d,y);return jsxRuntime.jsx("div",{ref:b,className:O,style:_objectSpread2$1(_objectSpread2$1({},v),h),children:g})}})});MobilePopupInner.displayName="MobilePopupInner";var Popup=React__namespace.forwardRef(function(e,o){var r=e.visible,a=e.mobile,s=_objectWithoutProperties(e,["visible","mobile"]),c=React.useState(r),l=_slicedToArray(c,2),d=l[0],u=l[1],f=React.useState(!1),p=_slicedToArray(f,2),m=p[0],I=p[1],h=_objectSpread2$1(_objectSpread2$1({},s),{},{visible:d});React.useEffect(function(){u(r),r&&a&&I(isMobile())},[r,a]);var g=m?jsxRuntime.jsx(MobilePopupInner,{...h,mobile:a,ref:o}):jsxRuntime.jsx(PopupInner,{...h,ref:o});return jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx(Mask,{...h}),g]})});Popup.displayName="Popup";var TriggerContext=React__namespace.createContext(null);function noop(){}function returnEmptyString(){return""}function returnDocument(e){return e?e.ownerDocument:window.document}var ALL_HANDLERS=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function generateTrigger(e){var o=function(r){_inherits(s,r);var a=_createSuper(s);function s(c){var l;_classCallCheck(this,s),l=a.call(this,c),l.popupRef=React__namespace.createRef(),l.triggerRef=React__namespace.createRef(),l.onMouseEnter=function(u){var f=l.props.mouseEnterDelay;l.fireEvents("onMouseEnter",u),l.delaySetPopupVisible(!0,f,f?null:u)},l.onMouseMove=function(u){l.fireEvents("onMouseMove",u),l.setPoint(u)},l.onMouseLeave=function(u){l.fireEvents("onMouseLeave",u),l.delaySetPopupVisible(!1,l.props.mouseLeaveDelay)},l.onPopupMouseEnter=function(){l.clearDelayTimer()},l.onPopupMouseLeave=function(u){var f;u.relatedTarget&&!u.relatedTarget.setTimeout&&contains((f=l.popupRef.current)===null||f===void 0?void 0:f.getElement(),u.relatedTarget)||l.delaySetPopupVisible(!1,l.props.mouseLeaveDelay)},l.onFocus=function(u){l.fireEvents("onFocus",u),l.clearDelayTimer(),l.isFocusToShow()&&(l.focusTime=Date.now(),l.delaySetPopupVisible(!0,l.props.focusDelay))},l.onMouseDown=function(u){l.fireEvents("onMouseDown",u),l.preClickTime=Date.now()},l.onTouchStart=function(u){l.fireEvents("onTouchStart",u),l.preTouchTime=Date.now()},l.onBlur=function(u){l.fireEvents("onBlur",u),l.clearDelayTimer(),l.isBlurToHide()&&l.delaySetPopupVisible(!1,l.props.blurDelay)},l.onContextMenu=function(u){u.preventDefault(),l.fireEvents("onContextMenu",u),l.setPopupVisible(!0,u)},l.onContextMenuClose=function(){l.isContextMenuToShow()&&l.close()},l.onClick=function(u){if(l.fireEvents("onClick",u),l.focusTime){var f;if(l.preClickTime&&l.preTouchTime?f=Math.min(l.preClickTime,l.preTouchTime):l.preClickTime?f=l.preClickTime:l.preTouchTime&&(f=l.preTouchTime),Math.abs(f-l.focusTime)<20)return;l.focusTime=0}l.preClickTime=0,l.preTouchTime=0,l.isClickToShow()&&(l.isClickToHide()||l.isBlurToHide())&&u&&u.preventDefault&&u.preventDefault();var p=!l.state.popupVisible;(l.isClickToHide()&&!p||p&&l.isClickToShow())&&l.setPopupVisible(!l.state.popupVisible,u)},l.onPopupMouseDown=function(){if(l.hasPopupMouseDown=!0,clearTimeout(l.mouseDownTimeout),l.mouseDownTimeout=window.setTimeout(function(){l.hasPopupMouseDown=!1},0),l.context){var u;(u=l.context).onPopupMouseDown.apply(u,arguments)}},l.onDocumentClick=function(u){if(!(l.props.mask&&!l.props.maskClosable)){var f=u.target,p=l.getRootDomNode(),m=l.getPopupDomNode();!contains(p,f)&&!contains(m,f)&&!l.hasPopupMouseDown&&l.close()}},l.getRootDomNode=function(){var u=l.props.getTriggerDOMNode;if(u)return u(l.triggerRef.current);try{var f=findDOMNode(l.triggerRef.current);if(f)return f}catch{}return ReactDOM__default.default.findDOMNode(_assertThisInitialized(l))},l.getPopupClassNameFromAlign=function(u){var f=[],p=l.props,m=p.popupPlacement,I=p.builtinPlacements,h=p.prefixCls,g=p.alignPoint,C=p.getPopupClassNameFromAlign;return m&&I&&f.push(getAlignPopupClassName(I,h,u,g)),C&&f.push(C(u)),f.join(" ")},l.getComponent=function(){var u=l.props,f=u.prefixCls,p=u.destroyPopupOnHide,m=u.popupClassName,I=u.onPopupAlign,h=u.popupMotion,g=u.popupAnimation,C=u.popupTransitionName,b=u.popupStyle,y=u.mask,v=u.maskAnimation,O=u.maskTransitionName,w=u.maskMotion,_=u.zIndex,F=u.popup,L=u.stretch,E=u.alignPoint,P=u.mobile,A=l.state,W=A.popupVisible,J=A.point,z=l.getPopupAlign(),Y={};return l.isMouseEnterToShow()&&(Y.onMouseEnter=l.onPopupMouseEnter),l.isMouseLeaveToHide()&&(Y.onMouseLeave=l.onPopupMouseLeave),Y.onMouseDown=l.onPopupMouseDown,Y.onTouchStart=l.onPopupMouseDown,jsxRuntime.jsx(Popup,{prefixCls:f,destroyPopupOnHide:p,visible:W,point:E&&J,className:m,align:z,onAlign:I,animation:g,getClassNameFromAlign:l.getPopupClassNameFromAlign,...Y,stretch:L,getRootDomNode:l.getRootDomNode,style:b,mask:y,zIndex:_,transitionName:C,maskAnimation:v,maskTransitionName:O,maskMotion:w,ref:l.popupRef,motion:h,mobile:P,children:typeof F=="function"?F():F})},l.attachParent=function(u){wrapperRaf.cancel(l.attachId);var f=l.props,p=f.getPopupContainer,m=f.getDocument,I=l.getRootDomNode(),h;p?(I||p.length===0)&&(h=p(I)):h=m(l.getRootDomNode()).body,h?h.appendChild(u):l.attachId=wrapperRaf(function(){l.attachParent(u)})},l.getContainer=function(){var u=l.props.getDocument,f=u(l.getRootDomNode()).createElement("div");return f.style.position="absolute",f.style.top="0",f.style.left="0",f.style.width="100%",l.attachParent(f),f},l.setPoint=function(u){var f=l.props.alignPoint;!f||!u||l.setState({point:{pageX:u.pageX,pageY:u.pageY}})},l.handlePortalUpdate=function(){l.state.prevPopupVisible!==l.state.popupVisible&&l.props.afterPopupVisibleChange(l.state.popupVisible)};var d;return"popupVisible"in c?d=!!c.popupVisible:d=!!c.defaultPopupVisible,l.state={prevPopupVisible:d,popupVisible:d},ALL_HANDLERS.forEach(function(u){l["fire".concat(u)]=function(f){l.fireEvents(u,f)}}),l}return _createClass(s,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var l=this.props,d=this.state;if(d.popupVisible){var u;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(u=l.getDocument(this.getRootDomNode()),this.clickOutsideHandler=addEventListenerWrap(u,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(u=u||l.getDocument(this.getRootDomNode()),this.touchOutsideHandler=addEventListenerWrap(u,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(u=u||l.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=addEventListenerWrap(u,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=addEventListenerWrap(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),wrapperRaf.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var l;return((l=this.popupRef.current)===null||l===void 0?void 0:l.getElement())||null}},{key:"getPopupAlign",value:function(){var l=this.props,d=l.popupPlacement,u=l.popupAlign,f=l.builtinPlacements;return d&&f?getAlignFromPlacement(f,d,u):u}},{key:"setPopupVisible",value:function(l,d){var u=this.props.alignPoint,f=this.state.popupVisible;this.clearDelayTimer(),f!==l&&("popupVisible"in this.props||this.setState({popupVisible:l,prevPopupVisible:f}),this.props.onPopupVisibleChange(l)),u&&d&&l&&this.setPoint(d)}},{key:"delaySetPopupVisible",value:function(l,d,u){var f=this,p=d*1e3;if(this.clearDelayTimer(),p){var m=u?{pageX:u.pageX,pageY:u.pageY}:null;this.delayTimer=window.setTimeout(function(){f.setPopupVisible(l,m),f.clearDelayTimer()},p)}else this.setPopupVisible(l,u)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(l){var d=this.props.children.props,u=this.props;return d[l]&&u[l]?this["fire".concat(l)]:d[l]||u[l]}},{key:"isClickToShow",value:function(){var l=this.props,d=l.action,u=l.showAction;return d.indexOf("click")!==-1||u.indexOf("click")!==-1}},{key:"isContextMenuToShow",value:function(){var l=this.props,d=l.action,u=l.showAction;return d.indexOf("contextMenu")!==-1||u.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var l=this.props,d=l.action,u=l.hideAction;return d.indexOf("click")!==-1||u.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var l=this.props,d=l.action,u=l.showAction;return d.indexOf("hover")!==-1||u.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var l=this.props,d=l.action,u=l.hideAction;return d.indexOf("hover")!==-1||u.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var l=this.props,d=l.action,u=l.showAction;return d.indexOf("focus")!==-1||u.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var l=this.props,d=l.action,u=l.hideAction;return d.indexOf("focus")!==-1||u.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var l;(l=this.popupRef.current)===null||l===void 0||l.forceAlign()}}},{key:"fireEvents",value:function(l,d){var u=this.props.children.props[l];u&&u(d);var f=this.props[l];f&&f(d)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var l=this.state.popupVisible,d=this.props,u=d.children,f=d.forceRender,p=d.alignPoint,m=d.className,I=d.autoDestroy,h=React__namespace.Children.only(u),g={key:"trigger"};this.isContextMenuToShow()?g.onContextMenu=this.onContextMenu:g.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(g.onClick=this.onClick,g.onMouseDown=this.onMouseDown,g.onTouchStart=this.onTouchStart):(g.onClick=this.createTwoChains("onClick"),g.onMouseDown=this.createTwoChains("onMouseDown"),g.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(g.onMouseEnter=this.onMouseEnter,p&&(g.onMouseMove=this.onMouseMove)):g.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?g.onMouseLeave=this.onMouseLeave:g.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(g.onFocus=this.onFocus,g.onBlur=this.onBlur):(g.onFocus=this.createTwoChains("onFocus"),g.onBlur=this.createTwoChains("onBlur"));var C=classnamesExports(h&&h.props&&h.props.className,m);C&&(g.className=C);var b=_objectSpread2$1({},g);supportRef(h)&&(b.ref=composeRef(this.triggerRef,h.ref));var y=React__namespace.cloneElement(h,b),v;return(l||this.popupRef.current||f)&&(v=jsxRuntime.jsx(e,{getContainer:this.getContainer,didUpdate:this.handlePortalUpdate,children:this.getComponent()},"portal")),!l&&I&&(v=null),jsxRuntime.jsxs(TriggerContext.Provider,{value:{onPopupMouseDown:this.onPopupMouseDown},children:[y,v]})}}],[{key:"getDerivedStateFromProps",value:function(l,d){var u=l.popupVisible,f={};return u!==void 0&&d.popupVisible!==u&&(f.popupVisible=u,f.prevPopupVisible=d.popupVisible),f}}]),s}(React__namespace.Component);return o.contextType=TriggerContext,o.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:returnEmptyString,getDocument:returnDocument,onPopupVisibleChange:noop,afterPopupVisibleChange:noop,onPopupAlign:noop,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},o}const Trigger=generateTrigger(Portal);var autoAdjustOverflow={adjustX:1,adjustY:1},targetOffset=[0,0],placements$2={left:{points:["cr","cl"],overflow:autoAdjustOverflow,offset:[-4,0],targetOffset},right:{points:["cl","cr"],overflow:autoAdjustOverflow,offset:[4,0],targetOffset},top:{points:["bc","tc"],overflow:autoAdjustOverflow,offset:[0,-4],targetOffset},bottom:{points:["tc","bc"],overflow:autoAdjustOverflow,offset:[0,4],targetOffset},topLeft:{points:["bl","tl"],overflow:autoAdjustOverflow,offset:[0,-4],targetOffset},leftTop:{points:["tr","tl"],overflow:autoAdjustOverflow,offset:[-4,0],targetOffset},topRight:{points:["br","tr"],overflow:autoAdjustOverflow,offset:[0,-4],targetOffset},rightTop:{points:["tl","tr"],overflow:autoAdjustOverflow,offset:[4,0],targetOffset},bottomRight:{points:["tr","br"],overflow:autoAdjustOverflow,offset:[0,4],targetOffset},rightBottom:{points:["bl","br"],overflow:autoAdjustOverflow,offset:[4,0],targetOffset},bottomLeft:{points:["tl","bl"],overflow:autoAdjustOverflow,offset:[0,4],targetOffset},leftBottom:{points:["br","bl"],overflow:autoAdjustOverflow,offset:[-4,0],targetOffset}},Content$2=function e(o){var r=o.overlay,a=o.prefixCls,s=o.id,c=o.overlayInnerStyle;return jsxRuntime.jsx("div",{className:"".concat(a,"-inner"),id:s,role:"tooltip",style:c,children:typeof r=="function"?r():r})},Tooltip=function e(o,r){var a=o.overlayClassName,s=o.trigger,c=s===void 0?["hover"]:s,l=o.mouseEnterDelay,d=l===void 0?0:l,u=o.mouseLeaveDelay,f=u===void 0?.1:u,p=o.overlayStyle,m=o.prefixCls,I=m===void 0?"rc-tooltip":m,h=o.children,g=o.onVisibleChange,C=o.afterVisibleChange,b=o.transitionName,y=o.animation,v=o.placement,O=v===void 0?"right":v,w=o.align,_=w===void 0?{}:w,F=o.destroyTooltipOnHide,L=F===void 0?!1:F,E=o.defaultVisible,P=o.getTooltipContainer,A=o.overlayInnerStyle,W=_objectWithoutProperties(o,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),J=React.useRef(null);React.useImperativeHandle(r,function(){return J.current});var z=_objectSpread2$1({},W);"visible"in o&&(z.popupVisible=o.visible);var Y=function(){var ue=o.arrowContent,Re=ue===void 0?null:ue,xe=o.overlay,ce=o.id;return[jsxRuntime.jsx("div",{className:"".concat(I,"-arrow"),children:Re},"arrow"),jsxRuntime.jsx(Content$2,{prefixCls:I,id:ce,overlay:xe,overlayInnerStyle:A},"content")]},Q=!1,oe=!1;if(typeof L=="boolean")Q=L;else if(L&&_typeof$1(L)==="object"){var ee=L.keepParent;Q=ee===!0,oe=ee===!1}return jsxRuntime.jsx(Trigger,{...Object.assign({popupClassName:a,prefixCls:I,popup:Y,action:c,builtinPlacements:placements$2,popupPlacement:O,ref:J,popupAlign:_,getPopupContainer:P,onPopupVisibleChange:g,afterPopupVisibleChange:C,popupTransitionName:b,popupAnimation:y,defaultPopupVisible:E,destroyPopupOnHide:Q,autoDestroy:oe,mouseLeaveDelay:f,popupStyle:p,mouseEnterDelay:d},z),children:h})};const Tooltip$1=React.forwardRef(Tooltip),es=Object.freeze(Object.defineProperty({__proto__:null,default:Tooltip$1},Symbol.toStringTag,{value:"Module"})),require$$6=getAugmentedNamespace(es);var placements$1={},placements={},hasRequiredPlacements$1;function requirePlacements$1(){if(hasRequiredPlacements$1)return placements;hasRequiredPlacements$1=1,Object.defineProperty(placements,"__esModule",{value:!0}),placements.default=placements.placements=void 0;var e={adjustX:1,adjustY:1},o=[0,0],r={left:{points:["cr","cl"],overflow:e,offset:[-4,0],targetOffset:o},right:{points:["cl","cr"],overflow:e,offset:[4,0],targetOffset:o},top:{points:["bc","tc"],overflow:e,offset:[0,-4],targetOffset:o},bottom:{points:["tc","bc"],overflow:e,offset:[0,4],targetOffset:o},topLeft:{points:["bl","tl"],overflow:e,offset:[0,-4],targetOffset:o},leftTop:{points:["tr","tl"],overflow:e,offset:[-4,0],targetOffset:o},topRight:{points:["br","tr"],overflow:e,offset:[0,-4],targetOffset:o},rightTop:{points:["tl","tr"],overflow:e,offset:[4,0],targetOffset:o},bottomRight:{points:["tr","br"],overflow:e,offset:[0,4],targetOffset:o},rightBottom:{points:["bl","br"],overflow:e,offset:[4,0],targetOffset:o},bottomLeft:{points:["tl","bl"],overflow:e,offset:[0,4],targetOffset:o},leftBottom:{points:["br","bl"],overflow:e,offset:[-4,0],targetOffset:o}};placements.placements=r;var a=r;return placements.default=a,placements}var hasRequiredPlacements;function requirePlacements(){return hasRequiredPlacements||(hasRequiredPlacements=1,function(e){var o=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.getOverflowOptions=d,e.default=u;var r=o(require_extends()),a=requirePlacements$1(),s={adjustX:1,adjustY:1},c={adjustX:0,adjustY:0},l=[0,0];function d(f){return typeof f=="boolean"?f?s:c:(0,r.default)((0,r.default)({},c),f)}function u(f){var p=f.arrowWidth,m=p===void 0?5:p,I=f.horizontalArrowShift,h=I===void 0?16:I,g=f.verticalArrowShift,C=g===void 0?8:g,b=f.autoAdjustOverflow,y={left:{points:["cr","cl"],offset:[-4,0]},right:{points:["cl","cr"],offset:[4,0]},top:{points:["bc","tc"],offset:[0,-4]},bottom:{points:["tc","bc"],offset:[0,4]},topLeft:{points:["bl","tc"],offset:[-(h+m),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(C+m)]},topRight:{points:["br","tc"],offset:[h+m,-4]},rightTop:{points:["tl","cr"],offset:[4,-(C+m)]},bottomRight:{points:["tr","bc"],offset:[h+m,4]},rightBottom:{points:["bl","cr"],offset:[4,C+m]},bottomLeft:{points:["tl","bc"],offset:[-(h+m),4]},leftBottom:{points:["br","cl"],offset:[-4,C+m]}};return Object.keys(y).forEach(function(v){y[v]=f.arrowPointAtCenter?(0,r.default)((0,r.default)({},y[v]),{overflow:d(b),targetOffset:l}):(0,r.default)((0,r.default)({},a.placements[v]),{overflow:d(b)}),y[v].ignoreShake=!0}),y}}(placements$1)),placements$1}var colors={},hasRequiredColors;function requireColors(){if(hasRequiredColors)return colors;hasRequiredColors=1,Object.defineProperty(colors,"__esModule",{value:!0}),colors.PresetColorTypes=colors.PresetStatusColorTypes=void 0;var e=requireType(),o=(0,e.tuple)("success","processing","error","default","warning");colors.PresetStatusColorTypes=o;var r=(0,e.tuple)("pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime");return colors.PresetColorTypes=r,colors}var hasRequiredTooltip;function requireTooltip(){return hasRequiredTooltip||(hasRequiredTooltip=1,function(e){var o=interopRequireWildcard.exports,r=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=r(requireDefineProperty()),s=r(requireSlicedToArray()),c=r(require_extends()),l=o(React__default.default),d=r(require$$6),u=r(requireClassnames()),f=r(requirePlacements()),p=requireReactNode(),m=requireConfigProvider(),I=requireColors(),h=function(O,w){var _={},F=(0,c.default)({},O);return w.forEach(function(L){O&&L in O&&(_[L]=O[L],delete F[L])}),{picked:_,omitted:F}},g=new RegExp("^(".concat(I.PresetColorTypes.join("|"),")(-inverse)?$"));function C(v,O){var w=v.type;if((w.__ANT_BUTTON===!0||w.__ANT_SWITCH===!0||w.__ANT_CHECKBOX===!0||v.type==="button")&&v.props.disabled){var _=h(v.props.style,["position","left","right","top","bottom","float","display","zIndex"]),F=_.picked,L=_.omitted,E=(0,c.default)((0,c.default)({display:"inline-block"},F),{cursor:"not-allowed",width:v.props.block?"100%":null}),P=(0,c.default)((0,c.default)({},L),{pointerEvents:"none"}),A=(0,p.cloneElement)(v,{style:P,className:null});return l.createElement("span",{style:E,className:(0,u.default)(v.props.className,"".concat(O,"-disabled-compatible-wrapper"))},A)}return v}var b=l.forwardRef(function(v,O){var w,_=l.useContext(m.ConfigContext),F=_.getPopupContainer,L=_.getPrefixCls,E=_.direction,P=l.useState(!!v.visible||!!v.defaultVisible),A=(0,s.default)(P,2),W=A[0],J=A[1];l.useEffect(function(){"visible"in v&&J(v.visible)},[v.visible]);var z=function(){var tt=v.title,Ne=v.overlay;return!tt&&!Ne&&tt!==0},Y=function(tt){"visible"in v||J(z()?!1:tt),v.onVisibleChange&&!z()&&v.onVisibleChange(tt)},Q=function(){var tt=v.builtinPlacements,Ne=v.arrowPointAtCenter,Ge=v.autoAdjustOverflow;return tt||(0,f.default)({arrowPointAtCenter:Ne,autoAdjustOverflow:Ge})},oe=function(tt,Ne){var Ge=Q(),yt=Object.keys(Ge).filter(function($t){return Ge[$t].points[0]===Ne.points[0]&&Ge[$t].points[1]===Ne.points[1]})[0];if(!!yt){var Tt=tt.getBoundingClientRect(),Ot={top:"50%",left:"50%"};yt.indexOf("top")>=0||yt.indexOf("Bottom")>=0?Ot.top="".concat(Tt.height-Ne.offset[1],"px"):(yt.indexOf("Top")>=0||yt.indexOf("bottom")>=0)&&(Ot.top="".concat(-Ne.offset[1],"px")),yt.indexOf("left")>=0||yt.indexOf("Right")>=0?Ot.left="".concat(Tt.width-Ne.offset[0],"px"):(yt.indexOf("right")>=0||yt.indexOf("Left")>=0)&&(Ot.left="".concat(-Ne.offset[0],"px")),tt.style.transformOrigin="".concat(Ot.left," ").concat(Ot.top)}},ee=function(){var tt=v.title,Ne=v.overlay;return tt===0?tt:Ne||tt||""},X=v.prefixCls,ue=v.openClassName,Re=v.getPopupContainer,xe=v.getTooltipContainer,ce=v.overlayClassName,Ce=v.color,te=v.overlayInnerStyle,de=v.children,N=L("tooltip",X),U=W;!("visible"in v)&&z()&&(U=!1);var re=C((0,p.isValidElement)(de)?de:l.createElement("span",null,de),N),Te=re.props,Fe=(0,u.default)(Te.className,(0,a.default)({},ue||"".concat(N,"-open"),!0)),M=(0,u.default)(ce,(w={},(0,a.default)(w,"".concat(N,"-rtl"),E==="rtl"),(0,a.default)(w,"".concat(N,"-").concat(Ce),Ce&&g.test(Ce)),w)),j=te,we;return Ce&&!g.test(Ce)&&(j=(0,c.default)((0,c.default)({},te),{background:Ce}),we={background:Ce}),l.createElement(d.default,(0,c.default)({},v,{prefixCls:N,overlayClassName:M,getTooltipContainer:Re||xe||F,ref:O,builtinPlacements:Q(),overlay:ee(),visible:U,onVisibleChange:Y,onPopupAlign:oe,overlayInnerStyle:j,arrowContent:l.createElement("span",{className:"".concat(N,"-arrow-content"),style:we})}),U?(0,p.cloneElement)(re,{className:Fe}):re)});b.displayName="Tooltip",b.defaultProps={placement:"top",transitionName:"zoom-big-fast",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0};var y=b;e.default=y}(tooltip)),tooltip}var Typography={},ref={},hasRequiredRef;function requireRef(){if(hasRequiredRef)return ref;hasRequiredRef=1;var e=interopRequireDefault.exports;Object.defineProperty(ref,"__esModule",{value:!0}),ref.fillRef=a,ref.composeRef=s,ref.supportRef=c;var o=e(_typeof$2.exports),r=requireReactIs();function a(l,d){typeof l=="function"?l(d):(0,o.default)(l)==="object"&&l&&"current"in l&&(l.current=d)}function s(){for(var l=arguments.length,d=new Array(l),u=0;u<l;u++)d[u]=arguments[u];return function(f){d.forEach(function(p){a(p,f)})}}function c(l){var d,u,f=(0,r.isMemo)(l)?l.type.type:l.type;return!(typeof f=="function"&&!(!((d=f.prototype)===null||d===void 0)&&d.render)||typeof l=="function"&&!(!((u=l.prototype)===null||u===void 0)&&u.render))}return ref}var hasRequiredTypography;function requireTypography(){return hasRequiredTypography||(hasRequiredTypography=1,function(e){var o=interopRequireWildcard.exports,r=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=r(require_extends()),s=r(requireDefineProperty()),c=o(React__default.default),l=r(requireClassnames()),d=requireRef(),u=requireConfigProvider(),f=r(requireDevWarning()),p=function(C,b){var y={};for(var v in C)Object.prototype.hasOwnProperty.call(C,v)&&b.indexOf(v)<0&&(y[v]=C[v]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var O=0,v=Object.getOwnPropertySymbols(C);O<v.length;O++)b.indexOf(v[O])<0&&Object.prototype.propertyIsEnumerable.call(C,v[O])&&(y[v[O]]=C[v[O]]);return y},m=function(b,y){var v=b.prefixCls,O=b.component,w=O===void 0?"article":O,_=b.className,F=b["aria-label"],L=b.setContentRef,E=b.children,P=p(b,["prefixCls","component","className","aria-label","setContentRef","children"]),A=y;return L&&((0,f.default)(!1,"Typography","`setContentRef` is deprecated. Please use `ref` instead."),A=(0,d.composeRef)(y,L)),c.createElement(u.ConfigConsumer,null,function(W){var J=W.getPrefixCls,z=W.direction,Y=w,Q=J("typography",v),oe=(0,l.default)(Q,(0,s.default)({},"".concat(Q,"-rtl"),z==="rtl"),_);return c.createElement(Y,(0,a.default)({className:oe,"aria-label":F,ref:A},P),E)})},I=c.forwardRef(m);I.displayName="Typography";var h=I,g=h;e.default=g}(Typography)),Typography}var Editable={},EnterOutlined$2={exports:{}},EnterOutlined$1={},EnterOutlined={},hasRequiredEnterOutlined$2;function requireEnterOutlined$2(){if(hasRequiredEnterOutlined$2)return EnterOutlined;hasRequiredEnterOutlined$2=1,Object.defineProperty(EnterOutlined,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"};return EnterOutlined.default=e,EnterOutlined}var hasRequiredEnterOutlined$1;function requireEnterOutlined$1(){if(hasRequiredEnterOutlined$1)return EnterOutlined$1;hasRequiredEnterOutlined$1=1;var e=interopRequireWildcard.exports,o=interopRequireDefault.exports;Object.defineProperty(EnterOutlined$1,"__esModule",{value:!0}),EnterOutlined$1.default=void 0;var r=o(requireObjectSpread2()),a=e(React__default.default),s=o(requireEnterOutlined$2()),c=o(requireAntdIcon()),l=function(f,p){return a.createElement(c.default,(0,r.default)((0,r.default)({},f),{},{ref:p,icon:s.default}))};l.displayName="EnterOutlined";var d=a.forwardRef(l);return EnterOutlined$1.default=d,EnterOutlined$1}var hasRequiredEnterOutlined;function requireEnterOutlined(){return hasRequiredEnterOutlined||(hasRequiredEnterOutlined=1,function(e,o){Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var r=a(requireEnterOutlined$1());function a(c){return c&&c.__esModule?c:{default:c}}var s=r;o.default=s,e.exports=s}(EnterOutlined$2,EnterOutlined$2.exports)),EnterOutlined$2.exports}var hasRequiredEditable;function requireEditable(){return hasRequiredEditable||(hasRequiredEditable=1,function(e){var o=interopRequireWildcard.exports,r=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=r(requireDefineProperty()),s=r(requireSlicedToArray()),c=o(React__default.default),l=r(requireClassnames()),d=r(requireKeyCode()),u=r(requireEnterOutlined()),f=r(TextArea$2),p=function(h){var g=h.prefixCls,C=h["aria-label"],b=h.className,y=h.style,v=h.direction,O=h.maxLength,w=h.autoSize,_=w===void 0?!0:w,F=h.value,L=h.onSave,E=h.onCancel,P=c.useRef(),A=c.useRef(!1),W=c.useRef(),J=c.useState(F),z=(0,s.default)(J,2),Y=z[0],Q=z[1];c.useEffect(function(){Q(F)},[F]),c.useEffect(function(){if(P.current&&P.current.resizableTextArea){var te=P.current.resizableTextArea.textArea;te.focus();var de=te.value.length;te.setSelectionRange(de,de)}},[]);var oe=function(de){var N=de.target;Q(N.value.replace(/[\n\r]/g,""))},ee=function(){A.current=!0},X=function(){A.current=!1},ue=function(de){var N=de.keyCode;A.current||(W.current=N)},Re=function(){L(Y.trim())},xe=function(de){var N=de.keyCode,U=de.ctrlKey,re=de.altKey,Te=de.metaKey,Fe=de.shiftKey;W.current===N&&!A.current&&!U&&!re&&!Te&&!Fe&&(N===d.default.ENTER?Re():N===d.default.ESC&&E())},ce=function(){Re()},Ce=(0,l.default)(g,"".concat(g,"-edit-content"),(0,a.default)({},"".concat(g,"-rtl"),v==="rtl"),b);return c.createElement("div",{className:Ce,style:y},c.createElement(f.default,{ref:P,maxLength:O,value:Y,onChange:oe,onKeyDown:ue,onKeyUp:xe,onCompositionStart:ee,onCompositionEnd:X,onBlur:ce,"aria-label":C,autoSize:_}),c.createElement(u.default,{className:"".concat(g,"-edit-content-confirm")}))},m=p;e.default=m}(Editable)),Editable}var util={},hasRequiredUtil;function requireUtil(){return hasRequiredUtil||(hasRequiredUtil=1,function(e){var o=interopRequireDefault.exports,r=interopRequireWildcard.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=ReactDOM__default.default,s=r(React__default.default),c=o(requireToArray()),l=1,d=3,u=8,f,p={padding:0,margin:0,display:"inline",lineHeight:"inherit"};function m(C){if(!C)return 0;var b=C.match(/^\d*(\.\d*)?/);return b?Number(b[0]):0}function I(C){var b=Array.prototype.slice.apply(C);return b.map(function(y){return"".concat(y,": ").concat(C.getPropertyValue(y),";")}).join("")}function h(C){var b=[];return C.forEach(function(y){var v=b[b.length-1];typeof y=="string"&&typeof v=="string"?b[b.length-1]+=y:b.push(y)}),b}var g=function(b,y,v,O,w){f||(f=document.createElement("div"),f.setAttribute("aria-hidden","true"),document.body.appendChild(f));var _=y.rows,F=y.suffix,L=F===void 0?"":F,E=window.getComputedStyle(b),P=I(E),A=m(E.lineHeight),W=Math.round(A*(_+1)+m(E.paddingTop)+m(E.paddingBottom));f.setAttribute("style",P),f.style.position="fixed",f.style.left="0",f.style.height="auto",f.style.minHeight="auto",f.style.maxHeight="auto",f.style.top="-999999px",f.style.zIndex="-1000",f.style.textOverflow="clip",f.style.whiteSpace="normal",f.style.webkitLineClamp="none";var J=h((0,c.default)(v));(0,a.render)(s.createElement("div",{style:p},s.createElement("span",{style:p},J,L),s.createElement("span",{style:p},O)),f);function z(){return f.offsetHeight<W}if(z())return(0,a.unmountComponentAtNode)(f),{content:v,text:f.innerHTML,ellipsis:!1};var Y=Array.prototype.slice.apply(f.childNodes[0].childNodes[0].cloneNode(!0).childNodes).filter(function(ce){var Ce=ce.nodeType;return Ce!==u}),Q=Array.prototype.slice.apply(f.childNodes[0].childNodes[1].cloneNode(!0).childNodes);(0,a.unmountComponentAtNode)(f);var oe=[];f.innerHTML="";var ee=document.createElement("span");f.appendChild(ee);var X=document.createTextNode(w+L);ee.appendChild(X),Q.forEach(function(ce){f.appendChild(ce)});function ue(ce){ee.insertBefore(ce,X)}function Re(ce,Ce){var te=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,de=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Ce.length,N=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,U=Math.floor((te+de)/2),re=Ce.slice(0,U);if(ce.textContent=re,te>=de-1)for(var Te=de;Te>=te;Te-=1){var Fe=Ce.slice(0,Te);if(ce.textContent=Fe,z()||!Fe)return Te===Ce.length?{finished:!1,reactNode:Ce}:{finished:!0,reactNode:Fe}}return z()?Re(ce,Ce,U,de,U):Re(ce,Ce,te,U,N)}function xe(ce,Ce){var te=ce.nodeType;if(te===l)return ue(ce),z()?{finished:!1,reactNode:J[Ce]}:(ee.removeChild(ce),{finished:!0,reactNode:null});if(te===d){var de=ce.textContent||"",N=document.createTextNode(de);return ue(N),Re(N,de)}return{finished:!1,reactNode:null}}return Y.some(function(ce,Ce){var te=xe(ce,Ce),de=te.finished,N=te.reactNode;return N&&oe.push(N),de}),{content:oe,text:f.innerHTML,ellipsis:!0}};e.default=g}(util)),util}var hasRequiredBase;function requireBase(){return hasRequiredBase||(hasRequiredBase=1,function(e){var o=interopRequireWildcard.exports,r=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=r(requireDefineProperty()),s=r(requireToConsumableArray()),c=r(_typeof$2.exports),l=r(require_extends()),d=r(requireClassCallCheck()),u=r(requireCreateClass()),f=r(requireInherits()),p=r(requireCreateSuper()),m=o(React__default.default),I=r(requireClassnames()),h=r(requireToArray()),g=r(requireCopyToClipboard()),C=r(requireOmit()),b=r(requireEditOutlined()),y=r(requireCheckOutlined()),v=r(requireCopyOutlined()),O=r(require$$18),w=requireConfigProvider(),_=r(requireLocaleReceiver()),F=r(requireDevWarning()),L=r(requireTransButton()),E=r(requireRaf()),P=requireStyleChecker(),A=r(requireTooltip()),W=r(requireTypography()),J=r(requireEditable()),z=r(requireUtil()),Y=function(xe,ce){var Ce={};for(var te in xe)Object.prototype.hasOwnProperty.call(xe,te)&&ce.indexOf(te)<0&&(Ce[te]=xe[te]);if(xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var de=0,te=Object.getOwnPropertySymbols(xe);de<te.length;de++)ce.indexOf(te[de])<0&&Object.prototype.propertyIsEnumerable.call(xe,te[de])&&(Ce[te[de]]=xe[te[de]]);return Ce},Q=(0,P.isStyleSupport)("webkitLineClamp"),oe=(0,P.isStyleSupport)("textOverflow");function ee(xe,ce){var Ce=xe.mark,te=xe.code,de=xe.underline,N=xe.delete,U=xe.strong,re=xe.keyboard,Te=ce;function Fe(M,j){!M||(Te=m.createElement(j,{},Te))}return Fe(U,"strong"),Fe(de,"u"),Fe(N,"del"),Fe(te,"code"),Fe(Ce,"mark"),Fe(re,"kbd"),Te}var X="...",ue=function(xe){(0,f.default)(Ce,xe);var ce=(0,p.default)(Ce);function Ce(){var te;return(0,d.default)(this,Ce),te=ce.apply(this,arguments),te.contentRef=m.createRef(),te.state={edit:!1,copied:!1,ellipsisText:"",ellipsisContent:null,isEllipsis:!1,expanded:!1,clientRendered:!1},te.getPrefixCls=function(){var de=te.props.prefixCls,N=te.context.getPrefixCls;return N("typography",de)},te.onExpandClick=function(de){var N=te.getEllipsis(),U=N.onExpand;te.setState({expanded:!0}),U&&U(de)},te.onEditClick=function(){te.triggerEdit(!0)},te.onEditChange=function(de){var N=te.getEditable(),U=N.onChange;U&&U(de),te.triggerEdit(!1)},te.onEditCancel=function(){te.triggerEdit(!1)},te.onCopyClick=function(de){de.preventDefault();var N=te.props,U=N.children,re=N.copyable,Te=(0,l.default)({},(0,c.default)(re)==="object"?re:null);Te.text===void 0&&(Te.text=String(U)),(0,g.default)(Te.text||""),te.setState({copied:!0},function(){Te.onCopy&&Te.onCopy(),te.copyId=window.setTimeout(function(){te.setState({copied:!1})},3e3)})},te.setEditRef=function(de){te.editIcon=de},te.triggerEdit=function(de){var N=te.getEditable(),U=N.onStart;de&&U&&U(),te.setState({edit:de},function(){!de&&te.editIcon&&te.editIcon.focus()})},te.resizeOnNextFrame=function(){E.default.cancel(te.rafId),te.rafId=(0,E.default)(function(){te.syncEllipsis()})},te}return(0,u.default)(Ce,[{key:"componentDidMount",value:function(){this.setState({clientRendered:!0}),this.resizeOnNextFrame()}},{key:"componentDidUpdate",value:function(de){var N=this.props.children,U=this.getEllipsis(),re=this.getEllipsis(de);(N!==de.children||U.rows!==re.rows)&&this.resizeOnNextFrame()}},{key:"componentWillUnmount",value:function(){window.clearTimeout(this.copyId),E.default.cancel(this.rafId)}},{key:"getEditable",value:function(de){var N=this.state.edit,U=de||this.props,re=U.editable;return re?(0,l.default)({editing:N},(0,c.default)(re)==="object"?re:null):{editing:N}}},{key:"getEllipsis",value:function(de){var N=de||this.props,U=N.ellipsis;return U?(0,l.default)({rows:1,expandable:!1},(0,c.default)(U)==="object"?U:null):{}}},{key:"canUseCSSEllipsis",value:function(){var de=this.state.clientRendered,N=this.props,U=N.editable,re=N.copyable,Te=this.getEllipsis(),Fe=Te.rows,M=Te.expandable,j=Te.suffix,we=Te.onEllipsis,je=Te.tooltip;return j||je||U||re||M||!de||we?!1:Fe===1?oe:Q}},{key:"syncEllipsis",value:function(){var de=this.state,N=de.ellipsisText,U=de.isEllipsis,re=de.expanded,Te=this.getEllipsis(),Fe=Te.rows,M=Te.suffix,j=Te.onEllipsis,we=this.props.children;if(!(!Fe||Fe<0||!this.contentRef.current||re)&&!this.canUseCSSEllipsis()){(0,F.default)((0,h.default)(we).every(function(yt){return typeof yt=="string"}),"Typography","`ellipsis` should use string as children only.");var je=(0,z.default)(this.contentRef.current,{rows:Fe,suffix:M},we,this.renderOperations(!0),X),tt=je.content,Ne=je.text,Ge=je.ellipsis;(N!==Ne||U!==Ge)&&(this.setState({ellipsisText:Ne,ellipsisContent:tt,isEllipsis:Ge}),U!==Ge&&j&&j(Ge))}}},{key:"renderExpand",value:function(de){var N=this.getEllipsis(),U=N.expandable,re=N.symbol,Te=this.state,Fe=Te.expanded,M=Te.isEllipsis;if(!U||!de&&(Fe||!M))return null;var j;return re?j=re:j=this.expandStr,m.createElement("a",{key:"expand",className:"".concat(this.getPrefixCls(),"-expand"),onClick:this.onExpandClick,"aria-label":this.expandStr},j)}},{key:"renderEdit",value:function(){var de=this.props.editable;if(!!de){var N=de.icon,U=de.tooltip,re=(0,h.default)(U)[0]||this.editStr,Te=typeof re=="string"?re:"";return m.createElement(A.default,{key:"edit",title:U===!1?"":re},m.createElement(L.default,{ref:this.setEditRef,className:"".concat(this.getPrefixCls(),"-edit"),onClick:this.onEditClick,"aria-label":Te},N||m.createElement(b.default,{role:"button"})))}}},{key:"renderCopy",value:function(){var de=this.state.copied,N=this.props.copyable;if(!!N){var U=this.getPrefixCls(),re=N.tooltips,Te=(0,h.default)(re);Te.length===0&&(Te=[this.copyStr,this.copiedStr]);var Fe=de?Te[1]:Te[0],M=typeof Fe=="string"?Fe:"",j=(0,h.default)(N.icon);return m.createElement(A.default,{key:"copy",title:re===!1?"":Fe},m.createElement(L.default,{className:(0,I.default)("".concat(U,"-copy"),de&&"".concat(U,"-copy-success")),onClick:this.onCopyClick,"aria-label":M},de?j[1]||m.createElement(y.default,null):j[0]||m.createElement(v.default,null)))}}},{key:"renderEditInput",value:function(){var de=this.props,N=de.children,U=de.className,re=de.style,Te=this.context.direction,Fe=this.getEditable(),M=Fe.maxLength,j=Fe.autoSize;return m.createElement(J.default,{value:typeof N=="string"?N:"",onSave:this.onEditChange,onCancel:this.onEditCancel,prefixCls:this.getPrefixCls(),className:U,style:re,direction:Te,maxLength:M,autoSize:j})}},{key:"renderOperations",value:function(de){return[this.renderExpand(de),this.renderEdit(),this.renderCopy()].filter(function(N){return N})}},{key:"renderContent",value:function(){var de=this,N=this.state,U=N.ellipsisContent,re=N.isEllipsis,Te=N.expanded,Fe=this.props,M=Fe.component,j=Fe.children,we=Fe.className,je=Fe.type,tt=Fe.disabled,Ne=Fe.style,Ge=Y(Fe,["component","children","className","type","disabled","style"]),yt=this.context.direction,Tt=this.getEllipsis(),Ot=Tt.rows,$t=Tt.suffix,Vt=Tt.tooltip,Ct=this.getPrefixCls(),Dt=(0,C.default)(Ge,["prefixCls","editable","copyable","ellipsis","mark","code","delete","underline","strong","keyboard"].concat((0,s.default)(w.configConsumerProps))),zt=this.canUseCSSEllipsis(),Ut=Ot===1&&zt,Qt=Ot&&Ot>1&&zt,Gt=j;if(Ot&&re&&!Te&&!zt){var fn=Ge.title,nn=fn||"";!fn&&(typeof j=="string"||typeof j=="number")&&(nn=String(j)),nn=nn==null?void 0:nn.slice(String(U||"").length),Gt=m.createElement(m.Fragment,null,U,m.createElement("span",{title:nn,"aria-hidden":"true"},X),$t),Vt&&(Gt=m.createElement(A.default,{title:Vt===!0?j:Vt},m.createElement("span",null,Gt)))}else Gt=m.createElement(m.Fragment,null,j,$t);return Gt=ee(this.props,Gt),m.createElement(_.default,{componentName:"Text"},function(_t){var Ft,Wt=_t.edit,Yt=_t.copy,en=_t.copied,rn=_t.expand;return de.editStr=Wt,de.copyStr=Yt,de.copiedStr=en,de.expandStr=rn,m.createElement(O.default,{onResize:de.resizeOnNextFrame,disabled:!Ot},m.createElement(W.default,(0,l.default)({className:(0,I.default)((Ft={},(0,a.default)(Ft,"".concat(Ct,"-").concat(je),je),(0,a.default)(Ft,"".concat(Ct,"-disabled"),tt),(0,a.default)(Ft,"".concat(Ct,"-ellipsis"),Ot),(0,a.default)(Ft,"".concat(Ct,"-ellipsis-single-line"),Ut),(0,a.default)(Ft,"".concat(Ct,"-ellipsis-multiple-line"),Qt),Ft),we),style:(0,l.default)((0,l.default)({},Ne),{WebkitLineClamp:Qt?Ot:void 0}),component:M,ref:de.contentRef,direction:yt},Dt),Gt,de.renderOperations()))})}},{key:"render",value:function(){var de=this.getEditable(),N=de.editing;return N?this.renderEditInput():this.renderContent()}}],[{key:"getDerivedStateFromProps",value:function(de){var N=de.children,U=de.editable;return(0,F.default)(!U||typeof N=="string","Typography","When `editable` is enabled, the `children` should use string."),{}}}]),Ce}(m.Component);ue.contextType=w.ConfigContext,ue.defaultProps={children:""};var Re=ue;e.default=Re}(Base)),Base}(function(e){var o=interopRequireWildcard.exports,r=interopRequireDefault.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=r(require_extends()),s=o(React__default.default),c=r(requireDevWarning()),l=r(requireBase()),d=requireType(),u=function(I,h){var g={};for(var C in I)Object.prototype.hasOwnProperty.call(I,C)&&h.indexOf(C)<0&&(g[C]=I[C]);if(I!=null&&typeof Object.getOwnPropertySymbols=="function")for(var b=0,C=Object.getOwnPropertySymbols(I);b<C.length;b++)h.indexOf(C[b])<0&&Object.prototype.propertyIsEnumerable.call(I,C[b])&&(g[C[b]]=I[C[b]]);return g},f=(0,d.tupleNum)(1,2,3,4,5),p=function(h){var g=h.level,C=g===void 0?1:g,b=u(h,["level"]),y;return f.indexOf(C)!==-1?y="h".concat(C):((0,c.default)(!1,"Typography.Title","Title only accept `1 | 2 | 3 | 4 | 5` as `level` value. And `5` need 4.6.0+ version."),y="h1"),s.createElement(l.default,(0,a.default)({},b,{component:y}))},m=p;e.default=m})(Title$3);const Title$2=getDefaultExportFromCjs(Title$3),{getValueForOperator}=ooui.graphProcessor,fontGrowFactor=.7,minFontSize=30,GraphIndicator=e=>{const{model:o,domain:r,context:a,colorCondition:s,totalDomain:c,showPercent:l=!1,icon:d,suffix:u,field:f,operator:p,manualIds:m}=e,[I,h]=React.useState(!1),[g,C]=React.useState(),[b,y]=React.useState(),[v,O]=React.useState(),[w,_]=React.useState(0),[F,L]=React.useState(0),[E,P]=React.useState(),[A,W]=React.useState(),[J,z]=React.useState();React.useEffect(()=>{oe()},[o,s]);async function Y({domain:ee,isTotal:X}){if(X)return await Q({domain:ee});if(f&&p){const ue=m||await ConnectionProvider.getHandler().searchAllIds({params:ee,model:o,context:a}),Re=await ConnectionProvider.getHandler().readObjects({model:o,ids:ue,fieldsToRetrieve:[f],context:a});return getValueForOperator({values:Re.map(xe=>xe[f]),operator:p})}else return m?m.length:await ConnectionProvider.getHandler().searchCount({model:o,params:ee,context:a})}async function Q({domain:ee}){if(f&&p){const X=await ConnectionProvider.getHandler().searchAllIds({params:ee,model:o,context:a}),ue=await ConnectionProvider.getHandler().readObjects({model:o,ids:X,fieldsToRetrieve:[f],context:a});return getValueForOperator({values:ue.map(Re=>Re[f]),operator:p})}else return await ConnectionProvider.getHandler().searchCount({model:o,params:ee,context:a})}async function oe(){h(!0);let ee,X;try{const ue=await Y({domain:r,isTotal:!1});if(C(ue),c){const Re=await ConnectionProvider.getHandler().evalDomain({domain:c,values:{},context:a});ee=await Y({domain:Re,isTotal:!0}),O(ee)}if(ee?(X=Math.round(ue/ee*100*100)/100,y(X)):y(0),s){const Re=await ConnectionProvider.getHandler().parseCondition({condition:s,values:{value:ue,percent:X},context:a});P(Re)}if(d)if(d.indexOf(":")!==-1){const Re=await ConnectionProvider.getHandler().parseCondition({condition:d,values:{value:ue,percent:X},context:a});W(Re)}else W(d)}catch(ue){z(JSON.stringify(ue))}h(!1)}return J?jsxRuntime.jsx(antd.Alert,{className:"mt-10",message:J,type:"error",banner:!0}):I?jsxRuntime.jsx("div",{style:{padding:"1rem"},children:jsxRuntime.jsx(Icon.LoadingOutlined,{style:{height:"12px"}})}):jsxRuntime.jsx(Measure__default.default,{bounds:!0,onResize:ee=>{var X,ue;_((X=ee.bounds)==null?void 0:X.height),L((ue=ee.bounds)==null?void 0:ue.width)},children:({measureRef:ee})=>l?jsxRuntime.jsx(PercentageIndicator,{value:g,total:v,percent:b,measureRef:ee,height:w,width:F,color:E,icon:A,suffix:u}):jsxRuntime.jsx(CommonIndicator,{value:g,total:v,measureRef:ee,height:w,width:F,color:E,icon:A,suffix:u})})};function getTextWidth(e,o){const a=document.createElement("canvas").getContext("2d");return a.font=o||getComputedStyle(document.body).font,a.measureText(e).width}function CommonIndicator({measureRef:e,width:o,height:r,total:a,value:s,color:c,icon:l,suffix:d}){let u=r*fontGrowFactor<minFontSize?minFontSize:r*fontGrowFactor,f=a?`${s}/${a}`:`${s}`;d&&(f+=" "+d);let p=getTextWidth(f,`bold ${Math.floor(u*1.03)}px sans-serif`);l&&(p=p*2),p>=o*.85&&(u=o*.85/p*u);const m=l&&iconMapper(l);return jsxRuntime.jsx("div",{ref:e,style:{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden"},children:jsxRuntime.jsxs(Title$2,{style:{fontSize:u,margin:0,color:c},children:[m&&jsxRuntime.jsx(m,{style:{fontSize:u*.7}}),m?` ${f}`:f]})})}function PercentageIndicator({measureRef:e,height:o,width:r,percent:a,total:s,value:c,color:l,icon:d,suffix:u}){const f=o*.65;let p=f*fontGrowFactor<minFontSize?minFontSize:f*fontGrowFactor,m=s?`${c}/${s}`:`${c}`;u&&(m+=" "+u);const I=`${a}%`;let h=getTextWidth(I,`bold ${Math.floor(p*1.03)}px sans-serif`);d&&(h=h*1.5);const g=d&&iconMapper(d);return(h>=r*.85||p*2<f)&&(p=r*.85/h*p),jsxRuntime.jsx("div",{ref:e,style:{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden",flexDirection:"column",padding:"0.2rem"},children:jsxRuntime.jsxs(antd.Row,{align:"middle",children:[g&&jsxRuntime.jsx(antd.Col,{children:jsxRuntime.jsx(g,{style:{fontSize:p*1,color:l,paddingRight:"10px"}})}),jsxRuntime.jsxs(antd.Col,{children:[jsxRuntime.jsx(Title$2,{style:{fontSize:p*.8,margin:0,color:l},children:g?` ${a}%`:`${a}%`}),jsxRuntime.jsx(Title$2,{style:{fontSize:p*.4,margin:0,color:l,textAlign:"center"},children:m})]})]})})}const DefaultGraphOptions={default:{padding:"auto",xAxis:{tickCount:5},legend:{maxWidthRatio:.5,maxItemWidth:1e3}},pie:{appendPadding:10,radius:.9,label:{type:"inner",offset:"-30%",content:({percent:e})=>`${(e*100).toFixed(0)}%`,style:{fontSize:14,textAlign:"center"}},legend:{maxWidthRatio:.5,maxItemWidth:1e3},interactions:[{type:"element-active"}]},barGrouped:{isGroup:!0,legend:{maxWidthRatio:.5,maxItemWidth:1e3},label:{position:"middle",layout:[{type:"interval-adjust-position"},{type:"interval-hide-overlap"},{type:"adjust-color"}]}}},{processGraphData}=ooui.graphProcessor,{getFieldsToRetrieve}=ooui.graphFieldUtils,useGraphData=e=>{const{model:o,domain:r=[],context:a={},xml:s,limit:c,uninformedString:l,manualIds:d}=e,[u,f]=React.useState(!1),[p,m]=React.useState(),[I,h]=React.useState(),[g,C]=React.useState(),[b,y]=React.useState("line");return useDeepCompareEffect__default.default(()=>{(async()=>{f(!0),m(void 0);const v=ooui.parseGraph(s);y(v.type||"line");const O=getFieldsToRetrieve({ooui:v});let w,_;try{({values:w,fields:_}=await retrieveData({model:o,domain:r,context:a,limit:c,order:v.timerange?v.x.name:null,fields:O,manualIds:d}))}catch(F){m("Error fetching graph data values: "+JSON.stringify(F)),f(!1);return}try{if(!w||!_){m("No values or fields returned"),f(!1);return}C(w);const F=processGraphData({ooui:v,values:w,fields:_,options:{uninformedString:l}});h(F)}catch(F){m("Error processing graph data: "+F),f(!1);return}f(!1)})()},[s,o,c,a,r]),{loading:u,error:p,type:b,values:I,evaluatedEntries:g}};async function getFieldsForModel({model:e,context:o,fields:r}){return await ConnectionProvider.getHandler().getFields({model:e,context:o,fields:r})}async function retrieveData({fields:e,model:o,domain:r,context:a,order:s,limit:c,manualIds:l}){const d=await getFieldsForModel({model:o,context:a,fields:e});if(l){let f=await ConnectionProvider.getHandler().readObjects({model:o,ids:l,fieldsToRetrieve:e,context:a});return s&&(f=[...f].sort((p,m)=>p[s]-m[s])),{values:f,fields:d}}return{values:await ConnectionProvider.getHandler().search({model:o,params:r,fields:e,context:a,limit:c,order:s}),fields:d}}const types={line:plots.Line,bar:plots.Column,pie:plots.Pie},GraphChart=e=>{const{model:o,domain:r,context:a,xml:s,limit:c,manualIds:l}=e,{t:d}=React.useContext(LocaleContext),{error:u,loading:f,values:p,type:m,evaluatedEntries:I}=useGraphData({model:o,xml:s,limit:c,domain:r,context:a,uninformedString:d("uninformed"),manualIds:l});if(u)return jsxRuntime.jsx(antd.Alert,{message:u,type:"error",banner:!0});if(f)return jsxRuntime.jsx(antd.Spin,{});if(!p)return jsxRuntime.jsx(antd.Alert,{message:"No data to display",type:"info"});const{data:h,isGroup:g,isStack:C}=p,b=types[m];return b?jsxRuntime.jsxs("div",{style:{padding:"1rem"},children:[jsxRuntime.jsx("p",{style:{textAlign:"right"},children:`${d("totalRegisters")} ${I==null?void 0:I.length}`}),jsxRuntime.jsx(b,{...getGraphProps({type:m,data:h,isGroup:g,isStack:C})})]}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:`Unknown graph type: ${m}`})};function getGraphProps(e){const{type:o,data:r,isGroup:a,isStack:s}=e;let c=DefaultGraphOptions[o];return c||(c=DefaultGraphOptions.default),c.data=r,o==="pie"?(c.colorField="x",c.angleField="value"):(c.xField="x",c.yField="value",c.seriesField="type",c.isGroup=a,s&&(c.isStack=!0,c.groupField="stacked")),c}const GraphComp=(e,o)=>{const{view_id:r,model:a,context:s,domain:c,limit:l,manualIds:d}=e,[u,f]=React.useState(!1),[p,m]=React.useState(),[I,h]=React.useState(),g=React.useContext(ActionViewContext),{setGraphIsLoading:C=void 0}=g||{};React.useImperativeHandle(o,()=>({refresh:()=>{b()}})),React.useEffect(()=>{b()},[r]);async function b(){f(!0),C==null||C(!0);try{const y=await ConnectionProvider.getHandler().getView({model:a,id:r,type:"graph",context:s});h(y.arch);const v=ooui.parseGraph(y.arch);m(v)}catch(y){return console.error(y),jsxRuntime.jsx(jsxRuntime.Fragment,{children:JSON.stringify(y)})}f(!1),C==null||C(!1)}if(u)return jsxRuntime.jsx("div",{style:{width:"100%",display:"flex",height:"20%",justifyContent:"center",alignContent:"center",padding:"1rem"},children:jsxRuntime.jsx(Icon.LoadingOutlined,{style:{height:"12px"}})});if(!p)return null;switch(p.type){case"indicatorField":case"indicator":{const y=p,v=y.type==="indicatorField"?{field:y.field,operator:y.operator}:{};return jsxRuntime.jsx(GraphIndicator,{showPercent:y.showPercent,totalDomain:y.totalDomain,colorCondition:y.color,model:a,context:s,domain:c,icon:y.icon,suffix:y.suffix,manualIds:d,...v})}case"line":case"bar":case"pie":return jsxRuntime.jsx(GraphChart,{model:a,context:s,domain:c,xml:I,limit:l,manualIds:d});default:return jsxRuntime.jsx(jsxRuntime.Fragment,{children:`Graph ${p.type} not implemented`})}},Graph=React.forwardRef(GraphComp),{confirm:confirm$2}=antd.Modal,showDialog$2=({onOk:e,lang:o})=>{confirm$2({title:tForLang("removeItems",o),icon:jsxRuntime.jsx(Icon.ExclamationCircleOutlined,{}),centered:!0,content:tForLang("confirmRemove",o),okText:tForLang("yesConfirmRemove",o),onOk:e,cancelText:tForLang("cancel",o)})},{confirm:confirm$1}=antd.Modal,showDialog$1=({onOk:e,lang:o})=>{confirm$1({title:tForLang("unlinkItems",o),icon:jsxRuntime.jsx(Icon.ExclamationCircleOutlined,{}),centered:!0,content:tForLang("confirmUnlink",o),okText:tForLang("yesConfirmUnlink",o),onOk:e,cancelText:tForLang("cancel",o)})},One2manyTopBar=e=>{const{title:o,readOnly:r,onCreateItem:a,onToggleViewMode:s,mode:c,onDelete:l,totalItems:d,currentItemIndex:u,onPreviousItem:f,onNextItem:p,isMany2Many:m,onSearchItem:I,selectedRowKeys:h,showCreateButton:g,showToggleButton:C}=e;function b(){return jsxRuntime.jsx("div",{className:"inline-block w-3"})}function y(){return jsxRuntime.jsx("div",{className:"flex flex-grow h-8 text-gray-200 bg-gray-700",children:jsxRuntime.jsx("div",{className:"flex flex-col items-center justify-center h-full",children:jsxRuntime.jsx("span",{className:"pl-2 font-bold",children:o})})})}function v(){return jsxRuntime.jsx(ButtonWithTooltip,{tooltip:m?"Unlink":"Delete",icon:m?jsxRuntime.jsx(Icon.ApiOutlined,{}):jsxRuntime.jsx(Icon.DeleteOutlined,{}),onClick:l,disabled:d===0||r||c!=="form"&&h.length===0})}function O(){let _="_";return d===0?_="_":_=(u+1).toString(),jsxRuntime.jsxs("span",{className:"pl-1 pr-1",children:["(",_,"/",d,")"]})}function w(){return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[b(),jsxRuntime.jsx(ButtonWithTooltip,{tooltip:"Previous item",icon:jsxRuntime.jsx(Icon.LeftOutlined,{}),onClick:f}),O(),jsxRuntime.jsx(ButtonWithTooltip,{tooltip:"Next item",icon:jsxRuntime.jsx(Icon.RightOutlined,{}),onClick:p})]})}return jsxRuntime.jsxs("div",{className:"flex mb-2",children:[y(),jsxRuntime.jsxs("div",{className:"flex-none h-8 pl-2",children:[c!=="graph"&&g&&jsxRuntime.jsx(ButtonWithTooltip,{tooltip:"Create new item",icon:jsxRuntime.jsx(Icon.FileAddOutlined,{}),disabled:r,onClick:a}),m&&g&&jsxRuntime.jsx(ButtonWithTooltip,{tooltip:"Search existing item",icon:jsxRuntime.jsx(Icon.SearchOutlined,{}),disabled:r,onClick:I}),c!=="graph"&&b(),c!=="graph"&&v(),c==="form"&&w(),b(),C&&jsxRuntime.jsx(ButtonWithTooltip,{tooltip:"Toggle view mode",icon:jsxRuntime.jsx(Icon.AlignLeftOutlined,{}),onClick:s})]})]})},ViewObjects={form:ooui.Form,tree:ooui.Tree,graph:Graph};function filterDuplicateItems(e){const o=e.map(a=>a.id);return e.filter((a,s)=>{const{id:c}=a;return!o.includes(c,s+1)})}const One2manyInput=e=>{var nn;const{value:o,onChange:r,ooui:a,views:s}=e,{items:c=[]}=o||{},{currentView:l,setCurrentView:d,itemIndex:u,setItemIndex:f}=React.useContext(One2manyContext),p=React.useContext(FormContext$1),{activeId:m,getFields:I,getValues:h,getContext:g,domain:C}=p||{},{lang:b,t:y}=React.useContext(LocaleContext),v=React.useRef(),[O,w]=React.useState(!1),[_,F]=React.useState(!1),[L,E]=React.useState(),[P,A]=React.useState(!1),[W,J]=React.useState(!1),[z,Y]=React.useState(),[Q,oe]=React.useState([]),[ee,X]=React.useState(!1),ue=React.useRef([]),[Re,xe]=React.useState(),ce=React.useRef(),{readOnly:Ce,relation:te,context:de,domain:N}=a,U=a.type==="many2many",{id:re}=a,Te=c.filter(_t=>_t.values&&_t.operation!=="pendingRemove");React.useEffect(()=>{c.some(_t=>!_t.values)&&M()},[c]),React.useEffect(()=>{we()},[C]);const Fe=_t=>{var Ft,Wt;r==null||r({fields:((Ft=s.get("form"))==null?void 0:Ft.fields)||((Wt=s.get("tree"))==null?void 0:Wt.fields),items:filterDuplicateItems(_t)})},M=async()=>{await j(),u>Te.length-1&&u!==0&&f(0)},j=async()=>{var _t;F(!0),w(!1),E(void 0);try{const Ft=await readObjectValues({treeFields:s.get("tree").fields,formFields:((_t=s.get("form"))==null?void 0:_t.fields)||{},model:te,items:c,context:{...g==null?void 0:g(),...de}});ce.current||(ce.current=Ft.map(Wt=>Wt.id)),Fe(Ft)}catch(Ft){E(Ft)}finally{F(!1)}};async function we(){N&&(ue.current=ooui.transformDomainForChildWidget({domain:await ConnectionProvider.getHandler().evalDomain({domain:N,values:transformPlainMany2Ones({fields:I(),values:h()}),context:g()}),widgetFieldName:re})),C&&C.length>0&&(ue.current=ue.current.concat(ooui.transformDomainForChildWidget({domain:C,widgetFieldName:re})))}const je=()=>{const _t=Array.from(s.keys()),Ft=_t[(_t.indexOf(l)+1)%_t.length];l==="form"?yt(()=>{d(Ft)}):d(Ft)},tt=()=>{u>0&&(l==="form"?yt(()=>{f(u-1)}):f(u-1))},Ne=()=>{const _t=Te.length;u<_t-1&&(l==="form"?yt(()=>{f(u+1)}):f(u+1))},Ge=async()=>{const _t=Te[u].id,Ft=(await ConnectionProvider.getHandler().readObjects({model:te,ids:[_t],fields:s.get("form").fields,context:{...g==null?void 0:g(),...de}}))[0],Wt=(await ConnectionProvider.getHandler().readObjects({model:te,ids:[_t],fields:s.get("tree").fields,context:{...g==null?void 0:g(),...de}}))[0],Yt=c.map(en=>en.id===_t?{...en,operation:"original",values:Ft,treeValues:Wt}:en);Fe(Yt)},yt=_t=>{O?showDialog$6({lang:b,onOk:()=>{Ge(),_t(),w(!1)}}):_t()},Tt=()=>{if(U){showDialog$1({lang:b,onOk:()=>{l==="form"?Vt():Ct()}});return}showDialog$2({lang:b,onOk:()=>{l==="form"?Vt():Ct()}})},Ot=async()=>{const{inv_field:_t}=a;let Ft;_t&&m&&(Ft={[_t]:m}),l==="form"?yt(()=>{X(!0),Y({defaultValues:Ft}),A(!0)}):(X(!0),Y({defaultValues:Ft}),A(!0))},$t=async()=>{l==="form"?yt(()=>{J(!0)}):J(!0)},Vt=async()=>{F(!0),w(!1),E(void 0);try{if(Te[u].id>0){const _t=c.map(Ft=>Ft.id===Te[u].id?{...Ft,operation:"pendingRemove"}:Ft);Fe(_t)}else Fe(c.filter(_t=>_t.id!==Te[u].id))}catch(_t){E(_t)}f(0),F(!1)},Ct=async()=>{const _t=Te.filter(Ft=>Q.includes(Ft.id));F(!0),w(!1),E(void 0);try{const Ft=_t.map(Yt=>Yt.id),Wt=c.filter(Yt=>!(Ft.includes(Yt.id)&&Yt.id<0)).map(Yt=>Ft.includes(Yt.id)?{...Yt,operation:"pendingRemove"}:Yt);Fe(Wt)}catch(Ft){E(Ft)}f(0),F(!1)},Dt=(_t,Ft,Wt)=>{let Yt;if(_t)Yt=c.map(en=>en.id===_t?{id:_t,operation:_t>0?"pendingUpdate":"pendingCreate",values:{...Wt,id:_t},treeValues:{...Wt,id:_t}}:en);else{const en=getNextPendingId(c);Yt=c.concat({id:en,operation:"pendingCreate",values:{...Wt,id:en},treeValues:{...Wt,id:en}})}Fe(Yt),ee||A(!1)},zt=_t=>{const{id:Ft}=_t;Y(c.find(Wt=>Wt.id===Ft)),X(!1),A(!0)},Ut=async _t=>{F(!0);let Ft=c;const Wt=_t.filter(Yt=>!c.find(en=>en.id===Yt));try{for(const Yt of Wt){const en=(await ConnectionProvider.getHandler().readObjects({model:te,ids:[Yt],fields:s.get("form").fields,context:{...g==null?void 0:g(),...de}}))[0],rn=(await ConnectionProvider.getHandler().readObjects({model:te,ids:[Yt],fields:s.get("tree").fields,context:{...g==null?void 0:g(),...de}}))[0];Ft.push({id:Yt,operation:"pendingLink",values:en,treeValues:rn})}Fe(Ft)}catch(Yt){E(Yt)}finally{F(!1)}};function Qt(){const _t=ViewObjects[l];if(l==="graph")return ooui.parseGraph(s.get("graph").arch).string;{const Ft=new _t(s.get(l).fields);return Ft.parse(s.get(l).arch),Ft.string}}const Gt=()=>{var Ft,Wt,Yt,en;if(l==="form")return Te.length===0?y("noCurrentEntries"):jsxRuntime.jsx(Form$1,{formView:s.get("form"),values:(Ft=Te[u])==null?void 0:Ft.values,parentContext:{...g==null?void 0:g(),...de},ref:v,model:te,id:(Wt=Te[u])==null?void 0:Wt.id,submitMode:"values",onFieldsChange:rn=>{var tn;const mn=(tn=Te[u])==null?void 0:tn.id,pn=c.map(un=>un.id===mn?{...un,operation:un.operation==="original"?"pendingUpdate":un.operation,values:{...rn,id:mn},treeValues:{...rn,id:mn}}:un);Fe(pn),w(!0)},readOnly:Ce});const _t=Re?sortResults({resultsToSort:Te.map(rn=>rn.treeValues),sorter:Re,fields:{...s.get("tree").fields,...((Yt=s.get("form"))==null?void 0:Yt.fields)||{}}}):Te.map(rn=>rn.treeValues);if(l==="tree")return jsxRuntime.jsx(Tree,{total:Te.length,limit:Te.length,treeView:s.get("tree"),results:_t,loading:_,onRowClicked:((en=s.get("form"))==null?void 0:en.fields)!==void 0?zt:void 0,showPagination:!1,rowSelection:{selectedRowKeys:Q,onChange:oe},sorter:Re,onChangeSort:xe});if(l==="graph"){const rn=[[`${a.inv_field}`,"=",m]];return jsxRuntime.jsx(Graph,{view_id:s.get("graph").view_id,model:a.relation,domain:rn,context:{...g==null?void 0:g(),...de},limit:0})}};if(L)return jsxRuntime.jsx(antd.Alert,{className:"mt-10",message:L,type:"error",banner:!0});const fn=ee;return _?jsxRuntime.jsx(antd.Spin,{}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(One2manyTopBar,{mode:l,title:Qt(),readOnly:Ce,isMany2Many:U,formHasChanges:O,totalItems:Te.length,currentItemIndex:u,onDelete:Tt,onCreateItem:Ot,onToggleViewMode:je,onPreviousItem:tt,onNextItem:Ne,onSearchItem:$t,selectedRowKeys:Q,showCreateButton:((nn=s.get("form"))==null?void 0:nn.fields)!==void 0,showToggleButton:s.size>1}),Gt(),jsxRuntime.jsx(FormModal,{formView:s.get("form"),model:te,id:z==null?void 0:z.id,submitMode:"values",values:z==null?void 0:z.values,defaultValues:z==null?void 0:z.defaultValues,visible:P,onSubmitSucceed:Dt,parentContext:{...g==null?void 0:g(),...de},onCancel:()=>{X(!1),A(!1)},readOnly:Ce,mustClearAfterSave:fn}),jsxRuntime.jsx(SearchModal,{domain:ue.current,model:te,context:{...g==null?void 0:g(),...de},visible:W,onSelectValues:async _t=>{J(!1),Ut(_t)},onCloseModal:()=>{J(!1)}})]})},One2many=e=>{const{ooui:o}=e,{mode:r,relation:a,views:s,required:c,context:l}=o;let d;const[u,f]=React.useState(!0),[p,m]=React.useState(),[I,h]=React.useState(new Map),g=React.useContext(FormContext$1),{getContext:C}=g||{};useDeepCompareEffect__default.default(()=>{y()},[o]);const b=async O=>s&&s[O]?s[O]:await ConnectionProvider.getHandler().getView({model:a,type:O,context:{...C==null?void 0:C(),...l}}),y=async()=>{f(!0),m(void 0);try{if(r&&r.length>0){for(const O of r){const w=await b(O);I.set(O,w)}h(I)}else{const O=await b("form"),w=await b("tree");I.set("form",O),I.set("tree",w),h(I)}}catch(O){m(JSON.stringify(O))}finally{f(!1)}};if(r&&r.length>0?d=r[0]:d="tree",u)return jsxRuntime.jsx(antd.Spin,{});if(p)return jsxRuntime.jsx(antd.Alert,{className:"mt-10",message:p,type:"error",banner:!0});const v=async(O,w)=>{if(!w)throw new Error;if(!w.items)throw new Error;if(!Array.isArray(w.items))throw new Error;if(w.items.length===0)throw new Error};return jsxRuntime.jsx(One2manyProvider,{initialView:d,children:jsxRuntime.jsx(Field$1,{required:c,type:"array",validator:v,...e,children:jsxRuntime.jsx(One2manyInput,{ooui:o,views:I})})})},FloatTime=e=>{const{ooui:o}=e,{required:r}=o;return jsxRuntime.jsx(Field$1,{required:r,type:"number",...e,children:jsxRuntime.jsx(FloatTimeInput,{ooui:o})})},FloatTimeInput=e=>{const{ooui:o,value:r,onChange:a}=e,{id:s,readOnly:c,required:l}=o,d=l&&!c?Config.requiredClass:void 0,u=React.useRef(),[f,p]=React.useState(),m=React.useContext(FormContext$1),{elementHasLostFocus:I}=m||{};React.useEffect(()=>{p(parseFloatToString(r))},[r]);const h=b=>{a==null||a(b)};function g(b){u.current=b.target.value,p(b.target.value)}async function C(){h(parseStringToFloat(f)),await new Promise(b=>setTimeout(b,300)),I==null||I()}return jsxRuntime.jsx(antd.Input,{value:f,disabled:c,className:"w-full "+d,id:s,placeholder:"00:00",onChange:g,onBlur:C})},Fieldset=e=>{const{label:o,children:r}=e;return jsxRuntime.jsxs("fieldset",{className:"p-2 border-gray-400 border border-solid font-sans",children:[jsxRuntime.jsx("legend",{style:{all:"initial",marginLeft:"1em",paddingLeft:"0.5em",paddingRight:"0.5em",fontFamily:"system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'"},children:o}),r]})};function Group(e){const{ooui:o,showLabel:r=!0,responsiveBehaviour:a}=e;return jsxRuntime.jsx(jsxRuntime.Fragment,{children:o.label&&r?jsxRuntime.jsx(Fieldset,{label:o.label,children:jsxRuntime.jsx(Container,{container:o.container,responsiveBehaviour:a})}):jsxRuntime.jsx(Container,{container:o.container,responsiveBehaviour:a})})}const{TabPane}=antd.Tabs;function Notebook(e){const{ooui:o,responsiveBehaviour:r}=e,a=o.pages;function s(c){if(c){const l=iconMapper(c);return l&&jsxRuntime.jsx(l,{})}}return jsxRuntime.jsx(antd.Tabs,{defaultActiveKey:"1",tabPosition:o.tabPosition,children:a.filter(c=>!c.invisible).map(c=>jsxRuntime.jsx(TabPane,{tab:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[s(c.icon)," ",c.label]}),children:jsxRuntime.jsx(Group,{ooui:c,showLabel:!1,responsiveBehaviour:r})},c.label))})}const{TextArea}=antd.Input,Text$2=e=>{const{ooui:o}=e,{id:r,readOnly:a,required:s,height:c,translatable:l}=o,d=s&&!a?Config.requiredClass:void 0,u=React.useContext(FormContext$1),{elementHasLostFocus:f}=u||{};return jsxRuntime.jsx(Field$1,{required:s,...e,children:l?jsxRuntime.jsx(TranslatableText,{field:r,requiredClass:d,height:c}):jsxRuntime.jsx(TextArea,{disabled:a||l,className:d,style:{height:c?c+"px":"100%"},rows:4,onBlur:f})})},TranslatableText=({value:e,field:o,requiredClass:r,onChange:a,height:s})=>{const c=React.useContext(FormContext$1),{activeId:l,activeModel:d,fetchValues:u,formHasChanges:f,elementHasLostFocus:p}=c||{},[m,I]=React.useState(!1),{t:h}=React.useContext(LocaleContext);return l?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{onClick:()=>{if(f!=null&&f()){showDialog$7(h("saveBeforeTranslate"));return}m||I(!0)},children:jsxRuntime.jsx(TextArea,{value:e,onChange:g=>{a==null||a(g.target.value)},style:{height:s?s+"px":"100%",cursor:"pointer"},id:o,disabled:!0,className:r,rows:4,onBlur:p})}),jsxRuntime.jsx(TranslationModal,{id:l,model:d,field:o,visible:m,onCloseModal:()=>{I(!1)},onSubmitSucceed:()=>{I(!1),u==null||u()}})]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(antd.Row,{gutter:8,wrap:!1,children:jsxRuntime.jsx(TextArea,{value:e,onChange:g=>{a==null||a(g.target.value)},style:{height:s?s+"px":"100%"},id:o,className:r,rows:4,onBlur:p})}),jsxRuntime.jsx(antd.Row,{justify:"end",style:{paddingTop:5},children:jsxRuntime.jsx(ButtonWithTooltip,{tooltip:h("translate"),icon:jsxRuntime.jsx(Icon.TranslationOutlined,{}),onClick:async()=>{f!=null&&f()?showDialog$7(h("saveBeforeTranslate")):showDialog$7(h("enterTextBeforeTranslate"))},children:h("translate")})})]})},Separator=e=>{const{ooui:o}=e,{label:r}=o;return jsxRuntime.jsx(antd.Divider,{orientation:"left",className:"text-sm",children:r})};//! moment.js
|
|
120
120
|
//! version : 2.29.4
|
|
121
121
|
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
|
122
122
|
//! license : MIT
|
|
@@ -125,13 +125,13 @@ var hookCallback;function hooks(){return hookCallback.apply(null,arguments)}func
|
|
|
125
125
|
[`+c+"] ";for(l in arguments[0])hasOwnProp(arguments[0],l)&&(s+=l+": "+arguments[0][l]+", ");s=s.slice(0,-2)}else s=arguments[c];a.push(s)}warn(e+`
|
|
126
126
|
Arguments: `+Array.prototype.slice.call(a).join("")+`
|
|
127
127
|
`+new Error().stack),r=!1}return o.apply(this,arguments)},o)}var deprecations={};function deprecateSimple(e,o){hooks.deprecationHandler!=null&&hooks.deprecationHandler(e,o),deprecations[e]||(warn(o),deprecations[e]=!0)}hooks.suppressDeprecationWarnings=!1,hooks.deprecationHandler=null;function isFunction(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function set(e){var o,r;for(r in e)hasOwnProp(e,r)&&(o=e[r],isFunction(o)?this[r]=o:this["_"+r]=o);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function mergeConfigs(e,o){var r=extend({},e),a;for(a in o)hasOwnProp(o,a)&&(isObject(e[a])&&isObject(o[a])?(r[a]={},extend(r[a],e[a]),extend(r[a],o[a])):o[a]!=null?r[a]=o[a]:delete r[a]);for(a in e)hasOwnProp(e,a)&&!hasOwnProp(o,a)&&isObject(e[a])&&(r[a]=extend({},r[a]));return r}function Locale(e){e!=null&&this.set(e)}var keys;Object.keys?keys=Object.keys:keys=function(e){var o,r=[];for(o in e)hasOwnProp(e,o)&&r.push(o);return r};var defaultCalendar={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function calendar(e,o,r){var a=this._calendar[e]||this._calendar.sameElse;return isFunction(a)?a.call(o,r):a}function zeroFill(e,o,r){var a=""+Math.abs(e),s=o-a.length,c=e>=0;return(c?r?"+":"":"-")+Math.pow(10,Math.max(0,s)).toString().substr(1)+a}var formattingTokens=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,localFormattingTokens=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,formatFunctions={},formatTokenFunctions={};function addFormatToken(e,o,r,a){var s=a;typeof a=="string"&&(s=function(){return this[a]()}),e&&(formatTokenFunctions[e]=s),o&&(formatTokenFunctions[o[0]]=function(){return zeroFill(s.apply(this,arguments),o[1],o[2])}),r&&(formatTokenFunctions[r]=function(){return this.localeData().ordinal(s.apply(this,arguments),e)})}function removeFormattingTokens(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function makeFormatFunction(e){var o=e.match(formattingTokens),r,a;for(r=0,a=o.length;r<a;r++)formatTokenFunctions[o[r]]?o[r]=formatTokenFunctions[o[r]]:o[r]=removeFormattingTokens(o[r]);return function(s){var c="",l;for(l=0;l<a;l++)c+=isFunction(o[l])?o[l].call(s,e):o[l];return c}}function formatMoment(e,o){return e.isValid()?(o=expandFormat(o,e.localeData()),formatFunctions[o]=formatFunctions[o]||makeFormatFunction(o),formatFunctions[o](e)):e.localeData().invalidDate()}function expandFormat(e,o){var r=5;function a(s){return o.longDateFormat(s)||s}for(localFormattingTokens.lastIndex=0;r>=0&&localFormattingTokens.test(e);)e=e.replace(localFormattingTokens,a),localFormattingTokens.lastIndex=0,r-=1;return e}var defaultLongDateFormat={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function longDateFormat(e){var o=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return o||!r?o:(this._longDateFormat[e]=r.match(formattingTokens).map(function(a){return a==="MMMM"||a==="MM"||a==="DD"||a==="dddd"?a.slice(1):a}).join(""),this._longDateFormat[e])}var defaultInvalidDate="Invalid date";function invalidDate(){return this._invalidDate}var defaultOrdinal="%d",defaultDayOfMonthOrdinalParse=/\d{1,2}/;function ordinal(e){return this._ordinal.replace("%d",e)}var defaultRelativeTime={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function relativeTime(e,o,r,a){var s=this._relativeTime[r];return isFunction(s)?s(e,o,r,a):s.replace(/%d/i,e)}function pastFuture(e,o){var r=this._relativeTime[e>0?"future":"past"];return isFunction(r)?r(o):r.replace(/%s/i,o)}var aliases={};function addUnitAlias(e,o){var r=e.toLowerCase();aliases[r]=aliases[r+"s"]=aliases[o]=e}function normalizeUnits(e){return typeof e=="string"?aliases[e]||aliases[e.toLowerCase()]:void 0}function normalizeObjectUnits(e){var o={},r,a;for(a in e)hasOwnProp(e,a)&&(r=normalizeUnits(a),r&&(o[r]=e[a]));return o}var priorities={};function addUnitPriority(e,o){priorities[e]=o}function getPrioritizedUnits(e){var o=[],r;for(r in e)hasOwnProp(e,r)&&o.push({unit:r,priority:priorities[r]});return o.sort(function(a,s){return a.priority-s.priority}),o}function isLeapYear(e){return e%4===0&&e%100!==0||e%400===0}function absFloor(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function toInt(e){var o=+e,r=0;return o!==0&&isFinite(o)&&(r=absFloor(o)),r}function makeGetSet(e,o){return function(r){return r!=null?(set$1(this,e,r),hooks.updateOffset(this,o),this):get(this,e)}}function get(e,o){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+o]():NaN}function set$1(e,o,r){e.isValid()&&!isNaN(r)&&(o==="FullYear"&&isLeapYear(e.year())&&e.month()===1&&e.date()===29?(r=toInt(r),e._d["set"+(e._isUTC?"UTC":"")+o](r,e.month(),daysInMonth(r,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+o](r))}function stringGet(e){return e=normalizeUnits(e),isFunction(this[e])?this[e]():this}function stringSet(e,o){if(typeof e=="object"){e=normalizeObjectUnits(e);var r=getPrioritizedUnits(e),a,s=r.length;for(a=0;a<s;a++)this[r[a].unit](e[r[a].unit])}else if(e=normalizeUnits(e),isFunction(this[e]))return this[e](o);return this}var match1=/\d/,match2=/\d\d/,match3=/\d{3}/,match4=/\d{4}/,match6=/[+-]?\d{6}/,match1to2=/\d\d?/,match3to4=/\d\d\d\d?/,match5to6=/\d\d\d\d\d\d?/,match1to3=/\d{1,3}/,match1to4=/\d{1,4}/,match1to6=/[+-]?\d{1,6}/,matchUnsigned=/\d+/,matchSigned=/[+-]?\d+/,matchOffset=/Z|[+-]\d\d:?\d\d/gi,matchShortOffset=/Z|[+-]\d\d(?::?\d\d)?/gi,matchTimestamp=/[+-]?\d+(\.\d{1,3})?/,matchWord=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,regexes;regexes={};function addRegexToken(e,o,r){regexes[e]=isFunction(o)?o:function(a,s){return a&&r?r:o}}function getParseRegexForToken(e,o){return hasOwnProp(regexes,e)?regexes[e](o._strict,o._locale):new RegExp(unescapeFormat(e))}function unescapeFormat(e){return regexEscape(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(o,r,a,s,c){return r||a||s||c}))}function regexEscape(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var tokens={};function addParseToken(e,o){var r,a=o,s;for(typeof e=="string"&&(e=[e]),isNumber(o)&&(a=function(c,l){l[o]=toInt(c)}),s=e.length,r=0;r<s;r++)tokens[e[r]]=a}function addWeekParseToken(e,o){addParseToken(e,function(r,a,s,c){s._w=s._w||{},o(r,s._w,s,c)})}function addTimeToArrayFromToken(e,o,r){o!=null&&hasOwnProp(tokens,e)&&tokens[e](o,r._a,r,e)}var YEAR=0,MONTH=1,DATE=2,HOUR=3,MINUTE=4,SECOND=5,MILLISECOND=6,WEEK=7,WEEKDAY=8;function mod(e,o){return(e%o+o)%o}var indexOf;Array.prototype.indexOf?indexOf=Array.prototype.indexOf:indexOf=function(e){var o;for(o=0;o<this.length;++o)if(this[o]===e)return o;return-1};function daysInMonth(e,o){if(isNaN(e)||isNaN(o))return NaN;var r=mod(o,12);return e+=(o-r)/12,r===1?isLeapYear(e)?29:28:31-r%7%2}addFormatToken("M",["MM",2],"Mo",function(){return this.month()+1}),addFormatToken("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),addFormatToken("MMMM",0,0,function(e){return this.localeData().months(this,e)}),addUnitAlias("month","M"),addUnitPriority("month",8),addRegexToken("M",match1to2),addRegexToken("MM",match1to2,match2),addRegexToken("MMM",function(e,o){return o.monthsShortRegex(e)}),addRegexToken("MMMM",function(e,o){return o.monthsRegex(e)}),addParseToken(["M","MM"],function(e,o){o[MONTH]=toInt(e)-1}),addParseToken(["MMM","MMMM"],function(e,o,r,a){var s=r._locale.monthsParse(e,a,r._strict);s!=null?o[MONTH]=s:getParsingFlags(r).invalidMonth=e});var defaultLocaleMonths="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),defaultLocaleMonthsShort="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),MONTHS_IN_FORMAT=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,defaultMonthsShortRegex=matchWord,defaultMonthsRegex=matchWord;function localeMonths(e,o){return e?isArray(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||MONTHS_IN_FORMAT).test(o)?"format":"standalone"][e.month()]:isArray(this._months)?this._months:this._months.standalone}function localeMonthsShort(e,o){return e?isArray(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[MONTHS_IN_FORMAT.test(o)?"format":"standalone"][e.month()]:isArray(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function handleStrictParse(e,o,r){var a,s,c,l=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],a=0;a<12;++a)c=createUTC([2e3,a]),this._shortMonthsParse[a]=this.monthsShort(c,"").toLocaleLowerCase(),this._longMonthsParse[a]=this.months(c,"").toLocaleLowerCase();return r?o==="MMM"?(s=indexOf.call(this._shortMonthsParse,l),s!==-1?s:null):(s=indexOf.call(this._longMonthsParse,l),s!==-1?s:null):o==="MMM"?(s=indexOf.call(this._shortMonthsParse,l),s!==-1?s:(s=indexOf.call(this._longMonthsParse,l),s!==-1?s:null)):(s=indexOf.call(this._longMonthsParse,l),s!==-1?s:(s=indexOf.call(this._shortMonthsParse,l),s!==-1?s:null))}function localeMonthsParse(e,o,r){var a,s,c;if(this._monthsParseExact)return handleStrictParse.call(this,e,o,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),a=0;a<12;a++){if(s=createUTC([2e3,a]),r&&!this._longMonthsParse[a]&&(this._longMonthsParse[a]=new RegExp("^"+this.months(s,"").replace(".","")+"$","i"),this._shortMonthsParse[a]=new RegExp("^"+this.monthsShort(s,"").replace(".","")+"$","i")),!r&&!this._monthsParse[a]&&(c="^"+this.months(s,"")+"|^"+this.monthsShort(s,""),this._monthsParse[a]=new RegExp(c.replace(".",""),"i")),r&&o==="MMMM"&&this._longMonthsParse[a].test(e))return a;if(r&&o==="MMM"&&this._shortMonthsParse[a].test(e))return a;if(!r&&this._monthsParse[a].test(e))return a}}function setMonth(e,o){var r;if(!e.isValid())return e;if(typeof o=="string"){if(/^\d+$/.test(o))o=toInt(o);else if(o=e.localeData().monthsParse(o),!isNumber(o))return e}return r=Math.min(e.date(),daysInMonth(e.year(),o)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](o,r),e}function getSetMonth(e){return e!=null?(setMonth(this,e),hooks.updateOffset(this,!0),this):get(this,"Month")}function getDaysInMonth(){return daysInMonth(this.year(),this.month())}function monthsShortRegex(e){return this._monthsParseExact?(hasOwnProp(this,"_monthsRegex")||computeMonthsParse.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(hasOwnProp(this,"_monthsShortRegex")||(this._monthsShortRegex=defaultMonthsShortRegex),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function monthsRegex(e){return this._monthsParseExact?(hasOwnProp(this,"_monthsRegex")||computeMonthsParse.call(this),e?this._monthsStrictRegex:this._monthsRegex):(hasOwnProp(this,"_monthsRegex")||(this._monthsRegex=defaultMonthsRegex),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function computeMonthsParse(){function e(l,d){return d.length-l.length}var o=[],r=[],a=[],s,c;for(s=0;s<12;s++)c=createUTC([2e3,s]),o.push(this.monthsShort(c,"")),r.push(this.months(c,"")),a.push(this.months(c,"")),a.push(this.monthsShort(c,""));for(o.sort(e),r.sort(e),a.sort(e),s=0;s<12;s++)o[s]=regexEscape(o[s]),r[s]=regexEscape(r[s]);for(s=0;s<24;s++)a[s]=regexEscape(a[s]);this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+o.join("|")+")","i")}addFormatToken("Y",0,0,function(){var e=this.year();return e<=9999?zeroFill(e,4):"+"+e}),addFormatToken(0,["YY",2],0,function(){return this.year()%100}),addFormatToken(0,["YYYY",4],0,"year"),addFormatToken(0,["YYYYY",5],0,"year"),addFormatToken(0,["YYYYYY",6,!0],0,"year"),addUnitAlias("year","y"),addUnitPriority("year",1),addRegexToken("Y",matchSigned),addRegexToken("YY",match1to2,match2),addRegexToken("YYYY",match1to4,match4),addRegexToken("YYYYY",match1to6,match6),addRegexToken("YYYYYY",match1to6,match6),addParseToken(["YYYYY","YYYYYY"],YEAR),addParseToken("YYYY",function(e,o){o[YEAR]=e.length===2?hooks.parseTwoDigitYear(e):toInt(e)}),addParseToken("YY",function(e,o){o[YEAR]=hooks.parseTwoDigitYear(e)}),addParseToken("Y",function(e,o){o[YEAR]=parseInt(e,10)});function daysInYear(e){return isLeapYear(e)?366:365}hooks.parseTwoDigitYear=function(e){return toInt(e)+(toInt(e)>68?1900:2e3)};var getSetYear=makeGetSet("FullYear",!0);function getIsLeapYear(){return isLeapYear(this.year())}function createDate(e,o,r,a,s,c,l){var d;return e<100&&e>=0?(d=new Date(e+400,o,r,a,s,c,l),isFinite(d.getFullYear())&&d.setFullYear(e)):d=new Date(e,o,r,a,s,c,l),d}function createUTCDate(e){var o,r;return e<100&&e>=0?(r=Array.prototype.slice.call(arguments),r[0]=e+400,o=new Date(Date.UTC.apply(null,r)),isFinite(o.getUTCFullYear())&&o.setUTCFullYear(e)):o=new Date(Date.UTC.apply(null,arguments)),o}function firstWeekOffset(e,o,r){var a=7+o-r,s=(7+createUTCDate(e,0,a).getUTCDay()-o)%7;return-s+a-1}function dayOfYearFromWeeks(e,o,r,a,s){var c=(7+r-a)%7,l=firstWeekOffset(e,a,s),d=1+7*(o-1)+c+l,u,f;return d<=0?(u=e-1,f=daysInYear(u)+d):d>daysInYear(e)?(u=e+1,f=d-daysInYear(e)):(u=e,f=d),{year:u,dayOfYear:f}}function weekOfYear(e,o,r){var a=firstWeekOffset(e.year(),o,r),s=Math.floor((e.dayOfYear()-a-1)/7)+1,c,l;return s<1?(l=e.year()-1,c=s+weeksInYear(l,o,r)):s>weeksInYear(e.year(),o,r)?(c=s-weeksInYear(e.year(),o,r),l=e.year()+1):(l=e.year(),c=s),{week:c,year:l}}function weeksInYear(e,o,r){var a=firstWeekOffset(e,o,r),s=firstWeekOffset(e+1,o,r);return(daysInYear(e)-a+s)/7}addFormatToken("w",["ww",2],"wo","week"),addFormatToken("W",["WW",2],"Wo","isoWeek"),addUnitAlias("week","w"),addUnitAlias("isoWeek","W"),addUnitPriority("week",5),addUnitPriority("isoWeek",5),addRegexToken("w",match1to2),addRegexToken("ww",match1to2,match2),addRegexToken("W",match1to2),addRegexToken("WW",match1to2,match2),addWeekParseToken(["w","ww","W","WW"],function(e,o,r,a){o[a.substr(0,1)]=toInt(e)});function localeWeek(e){return weekOfYear(e,this._week.dow,this._week.doy).week}var defaultLocaleWeek={dow:0,doy:6};function localeFirstDayOfWeek(){return this._week.dow}function localeFirstDayOfYear(){return this._week.doy}function getSetWeek(e){var o=this.localeData().week(this);return e==null?o:this.add((e-o)*7,"d")}function getSetISOWeek(e){var o=weekOfYear(this,1,4).week;return e==null?o:this.add((e-o)*7,"d")}addFormatToken("d",0,"do","day"),addFormatToken("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),addFormatToken("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),addFormatToken("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),addFormatToken("e",0,0,"weekday"),addFormatToken("E",0,0,"isoWeekday"),addUnitAlias("day","d"),addUnitAlias("weekday","e"),addUnitAlias("isoWeekday","E"),addUnitPriority("day",11),addUnitPriority("weekday",11),addUnitPriority("isoWeekday",11),addRegexToken("d",match1to2),addRegexToken("e",match1to2),addRegexToken("E",match1to2),addRegexToken("dd",function(e,o){return o.weekdaysMinRegex(e)}),addRegexToken("ddd",function(e,o){return o.weekdaysShortRegex(e)}),addRegexToken("dddd",function(e,o){return o.weekdaysRegex(e)}),addWeekParseToken(["dd","ddd","dddd"],function(e,o,r,a){var s=r._locale.weekdaysParse(e,a,r._strict);s!=null?o.d=s:getParsingFlags(r).invalidWeekday=e}),addWeekParseToken(["d","e","E"],function(e,o,r,a){o[a]=toInt(e)});function parseWeekday(e,o){return typeof e!="string"?e:isNaN(e)?(e=o.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function parseIsoWeekday(e,o){return typeof e=="string"?o.weekdaysParse(e)%7||7:isNaN(e)?null:e}function shiftWeekdays(e,o){return e.slice(o,7).concat(e.slice(0,o))}var defaultLocaleWeekdays="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),defaultLocaleWeekdaysShort="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),defaultLocaleWeekdaysMin="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),defaultWeekdaysRegex=matchWord,defaultWeekdaysShortRegex=matchWord,defaultWeekdaysMinRegex=matchWord;function localeWeekdays(e,o){var r=isArray(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(o)?"format":"standalone"];return e===!0?shiftWeekdays(r,this._week.dow):e?r[e.day()]:r}function localeWeekdaysShort(e){return e===!0?shiftWeekdays(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function localeWeekdaysMin(e){return e===!0?shiftWeekdays(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function handleStrictParse$1(e,o,r){var a,s,c,l=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],a=0;a<7;++a)c=createUTC([2e3,1]).day(a),this._minWeekdaysParse[a]=this.weekdaysMin(c,"").toLocaleLowerCase(),this._shortWeekdaysParse[a]=this.weekdaysShort(c,"").toLocaleLowerCase(),this._weekdaysParse[a]=this.weekdays(c,"").toLocaleLowerCase();return r?o==="dddd"?(s=indexOf.call(this._weekdaysParse,l),s!==-1?s:null):o==="ddd"?(s=indexOf.call(this._shortWeekdaysParse,l),s!==-1?s:null):(s=indexOf.call(this._minWeekdaysParse,l),s!==-1?s:null):o==="dddd"?(s=indexOf.call(this._weekdaysParse,l),s!==-1||(s=indexOf.call(this._shortWeekdaysParse,l),s!==-1)?s:(s=indexOf.call(this._minWeekdaysParse,l),s!==-1?s:null)):o==="ddd"?(s=indexOf.call(this._shortWeekdaysParse,l),s!==-1||(s=indexOf.call(this._weekdaysParse,l),s!==-1)?s:(s=indexOf.call(this._minWeekdaysParse,l),s!==-1?s:null)):(s=indexOf.call(this._minWeekdaysParse,l),s!==-1||(s=indexOf.call(this._weekdaysParse,l),s!==-1)?s:(s=indexOf.call(this._shortWeekdaysParse,l),s!==-1?s:null))}function localeWeekdaysParse(e,o,r){var a,s,c;if(this._weekdaysParseExact)return handleStrictParse$1.call(this,e,o,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),a=0;a<7;a++){if(s=createUTC([2e3,1]).day(a),r&&!this._fullWeekdaysParse[a]&&(this._fullWeekdaysParse[a]=new RegExp("^"+this.weekdays(s,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[a]=new RegExp("^"+this.weekdaysShort(s,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[a]=new RegExp("^"+this.weekdaysMin(s,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[a]||(c="^"+this.weekdays(s,"")+"|^"+this.weekdaysShort(s,"")+"|^"+this.weekdaysMin(s,""),this._weekdaysParse[a]=new RegExp(c.replace(".",""),"i")),r&&o==="dddd"&&this._fullWeekdaysParse[a].test(e))return a;if(r&&o==="ddd"&&this._shortWeekdaysParse[a].test(e))return a;if(r&&o==="dd"&&this._minWeekdaysParse[a].test(e))return a;if(!r&&this._weekdaysParse[a].test(e))return a}}function getSetDayOfWeek(e){if(!this.isValid())return e!=null?this:NaN;var o=this._isUTC?this._d.getUTCDay():this._d.getDay();return e!=null?(e=parseWeekday(e,this.localeData()),this.add(e-o,"d")):o}function getSetLocaleDayOfWeek(e){if(!this.isValid())return e!=null?this:NaN;var o=(this.day()+7-this.localeData()._week.dow)%7;return e==null?o:this.add(e-o,"d")}function getSetISODayOfWeek(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var o=parseIsoWeekday(e,this.localeData());return this.day(this.day()%7?o:o-7)}else return this.day()||7}function weekdaysRegex(e){return this._weekdaysParseExact?(hasOwnProp(this,"_weekdaysRegex")||computeWeekdaysParse.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(hasOwnProp(this,"_weekdaysRegex")||(this._weekdaysRegex=defaultWeekdaysRegex),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function weekdaysShortRegex(e){return this._weekdaysParseExact?(hasOwnProp(this,"_weekdaysRegex")||computeWeekdaysParse.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(hasOwnProp(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=defaultWeekdaysShortRegex),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function weekdaysMinRegex(e){return this._weekdaysParseExact?(hasOwnProp(this,"_weekdaysRegex")||computeWeekdaysParse.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(hasOwnProp(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=defaultWeekdaysMinRegex),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function computeWeekdaysParse(){function e(p,m){return m.length-p.length}var o=[],r=[],a=[],s=[],c,l,d,u,f;for(c=0;c<7;c++)l=createUTC([2e3,1]).day(c),d=regexEscape(this.weekdaysMin(l,"")),u=regexEscape(this.weekdaysShort(l,"")),f=regexEscape(this.weekdays(l,"")),o.push(d),r.push(u),a.push(f),s.push(d),s.push(u),s.push(f);o.sort(e),r.sort(e),a.sort(e),s.sort(e),this._weekdaysRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function hFormat(){return this.hours()%12||12}function kFormat(){return this.hours()||24}addFormatToken("H",["HH",2],0,"hour"),addFormatToken("h",["hh",2],0,hFormat),addFormatToken("k",["kk",2],0,kFormat),addFormatToken("hmm",0,0,function(){return""+hFormat.apply(this)+zeroFill(this.minutes(),2)}),addFormatToken("hmmss",0,0,function(){return""+hFormat.apply(this)+zeroFill(this.minutes(),2)+zeroFill(this.seconds(),2)}),addFormatToken("Hmm",0,0,function(){return""+this.hours()+zeroFill(this.minutes(),2)}),addFormatToken("Hmmss",0,0,function(){return""+this.hours()+zeroFill(this.minutes(),2)+zeroFill(this.seconds(),2)});function meridiem(e,o){addFormatToken(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),o)})}meridiem("a",!0),meridiem("A",!1),addUnitAlias("hour","h"),addUnitPriority("hour",13);function matchMeridiem(e,o){return o._meridiemParse}addRegexToken("a",matchMeridiem),addRegexToken("A",matchMeridiem),addRegexToken("H",match1to2),addRegexToken("h",match1to2),addRegexToken("k",match1to2),addRegexToken("HH",match1to2,match2),addRegexToken("hh",match1to2,match2),addRegexToken("kk",match1to2,match2),addRegexToken("hmm",match3to4),addRegexToken("hmmss",match5to6),addRegexToken("Hmm",match3to4),addRegexToken("Hmmss",match5to6),addParseToken(["H","HH"],HOUR),addParseToken(["k","kk"],function(e,o,r){var a=toInt(e);o[HOUR]=a===24?0:a}),addParseToken(["a","A"],function(e,o,r){r._isPm=r._locale.isPM(e),r._meridiem=e}),addParseToken(["h","hh"],function(e,o,r){o[HOUR]=toInt(e),getParsingFlags(r).bigHour=!0}),addParseToken("hmm",function(e,o,r){var a=e.length-2;o[HOUR]=toInt(e.substr(0,a)),o[MINUTE]=toInt(e.substr(a)),getParsingFlags(r).bigHour=!0}),addParseToken("hmmss",function(e,o,r){var a=e.length-4,s=e.length-2;o[HOUR]=toInt(e.substr(0,a)),o[MINUTE]=toInt(e.substr(a,2)),o[SECOND]=toInt(e.substr(s)),getParsingFlags(r).bigHour=!0}),addParseToken("Hmm",function(e,o,r){var a=e.length-2;o[HOUR]=toInt(e.substr(0,a)),o[MINUTE]=toInt(e.substr(a))}),addParseToken("Hmmss",function(e,o,r){var a=e.length-4,s=e.length-2;o[HOUR]=toInt(e.substr(0,a)),o[MINUTE]=toInt(e.substr(a,2)),o[SECOND]=toInt(e.substr(s))});function localeIsPM(e){return(e+"").toLowerCase().charAt(0)==="p"}var defaultLocaleMeridiemParse=/[ap]\.?m?\.?/i,getSetHour=makeGetSet("Hours",!0);function localeMeridiem(e,o,r){return e>11?r?"pm":"PM":r?"am":"AM"}var baseConfig={calendar:defaultCalendar,longDateFormat:defaultLongDateFormat,invalidDate:defaultInvalidDate,ordinal:defaultOrdinal,dayOfMonthOrdinalParse:defaultDayOfMonthOrdinalParse,relativeTime:defaultRelativeTime,months:defaultLocaleMonths,monthsShort:defaultLocaleMonthsShort,week:defaultLocaleWeek,weekdays:defaultLocaleWeekdays,weekdaysMin:defaultLocaleWeekdaysMin,weekdaysShort:defaultLocaleWeekdaysShort,meridiemParse:defaultLocaleMeridiemParse},locales={},localeFamilies={},globalLocale;function commonPrefix(e,o){var r,a=Math.min(e.length,o.length);for(r=0;r<a;r+=1)if(e[r]!==o[r])return r;return a}function normalizeLocale(e){return e&&e.toLowerCase().replace("_","-")}function chooseLocale(e){for(var o=0,r,a,s,c;o<e.length;){for(c=normalizeLocale(e[o]).split("-"),r=c.length,a=normalizeLocale(e[o+1]),a=a?a.split("-"):null;r>0;){if(s=loadLocale(c.slice(0,r).join("-")),s)return s;if(a&&a.length>=r&&commonPrefix(c,a)>=r-1)break;r--}o++}return globalLocale}function isLocaleNameSane(e){return e.match("^[^/\\\\]*$")!=null}function loadLocale(e){var o=null,r;if(locales[e]===void 0&&typeof module<"u"&&module&&module.exports&&isLocaleNameSane(e))try{o=globalLocale._abbr,r=require,r("./locale/"+e),getSetGlobalLocale(o)}catch{locales[e]=null}return locales[e]}function getSetGlobalLocale(e,o){var r;return e&&(isUndefined(o)?r=getLocale(e):r=defineLocale(e,o),r?globalLocale=r:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),globalLocale._abbr}function defineLocale(e,o){if(o!==null){var r,a=baseConfig;if(o.abbr=e,locales[e]!=null)deprecateSimple("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),a=locales[e]._config;else if(o.parentLocale!=null)if(locales[o.parentLocale]!=null)a=locales[o.parentLocale]._config;else if(r=loadLocale(o.parentLocale),r!=null)a=r._config;else return localeFamilies[o.parentLocale]||(localeFamilies[o.parentLocale]=[]),localeFamilies[o.parentLocale].push({name:e,config:o}),null;return locales[e]=new Locale(mergeConfigs(a,o)),localeFamilies[e]&&localeFamilies[e].forEach(function(s){defineLocale(s.name,s.config)}),getSetGlobalLocale(e),locales[e]}else return delete locales[e],null}function updateLocale(e,o){if(o!=null){var r,a,s=baseConfig;locales[e]!=null&&locales[e].parentLocale!=null?locales[e].set(mergeConfigs(locales[e]._config,o)):(a=loadLocale(e),a!=null&&(s=a._config),o=mergeConfigs(s,o),a==null&&(o.abbr=e),r=new Locale(o),r.parentLocale=locales[e],locales[e]=r),getSetGlobalLocale(e)}else locales[e]!=null&&(locales[e].parentLocale!=null?(locales[e]=locales[e].parentLocale,e===getSetGlobalLocale()&&getSetGlobalLocale(e)):locales[e]!=null&&delete locales[e]);return locales[e]}function getLocale(e){var o;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return globalLocale;if(!isArray(e)){if(o=loadLocale(e),o)return o;e=[e]}return chooseLocale(e)}function listLocales(){return keys(locales)}function checkOverflow(e){var o,r=e._a;return r&&getParsingFlags(e).overflow===-2&&(o=r[MONTH]<0||r[MONTH]>11?MONTH:r[DATE]<1||r[DATE]>daysInMonth(r[YEAR],r[MONTH])?DATE:r[HOUR]<0||r[HOUR]>24||r[HOUR]===24&&(r[MINUTE]!==0||r[SECOND]!==0||r[MILLISECOND]!==0)?HOUR:r[MINUTE]<0||r[MINUTE]>59?MINUTE:r[SECOND]<0||r[SECOND]>59?SECOND:r[MILLISECOND]<0||r[MILLISECOND]>999?MILLISECOND:-1,getParsingFlags(e)._overflowDayOfYear&&(o<YEAR||o>DATE)&&(o=DATE),getParsingFlags(e)._overflowWeeks&&o===-1&&(o=WEEK),getParsingFlags(e)._overflowWeekday&&o===-1&&(o=WEEKDAY),getParsingFlags(e).overflow=o),e}var extendedIsoRegex=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,basicIsoRegex=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,tzRegex=/Z|[+-]\d\d(?::?\d\d)?/,isoDates=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],isoTimes=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],aspNetJsonRegex=/^\/?Date\((-?\d+)/i,rfc2822=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,obsOffsets={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function configFromISO(e){var o,r,a=e._i,s=extendedIsoRegex.exec(a)||basicIsoRegex.exec(a),c,l,d,u,f=isoDates.length,p=isoTimes.length;if(s){for(getParsingFlags(e).iso=!0,o=0,r=f;o<r;o++)if(isoDates[o][1].exec(s[1])){l=isoDates[o][0],c=isoDates[o][2]!==!1;break}if(l==null){e._isValid=!1;return}if(s[3]){for(o=0,r=p;o<r;o++)if(isoTimes[o][1].exec(s[3])){d=(s[2]||" ")+isoTimes[o][0];break}if(d==null){e._isValid=!1;return}}if(!c&&d!=null){e._isValid=!1;return}if(s[4])if(tzRegex.exec(s[4]))u="Z";else{e._isValid=!1;return}e._f=l+(d||"")+(u||""),configFromStringAndFormat(e)}else e._isValid=!1}function extractFromRFC2822Strings(e,o,r,a,s,c){var l=[untruncateYear(e),defaultLocaleMonthsShort.indexOf(o),parseInt(r,10),parseInt(a,10),parseInt(s,10)];return c&&l.push(parseInt(c,10)),l}function untruncateYear(e){var o=parseInt(e,10);return o<=49?2e3+o:o<=999?1900+o:o}function preprocessRFC2822(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function checkWeekday(e,o,r){if(e){var a=defaultLocaleWeekdaysShort.indexOf(e),s=new Date(o[0],o[1],o[2]).getDay();if(a!==s)return getParsingFlags(r).weekdayMismatch=!0,r._isValid=!1,!1}return!0}function calculateOffset(e,o,r){if(e)return obsOffsets[e];if(o)return 0;var a=parseInt(r,10),s=a%100,c=(a-s)/100;return c*60+s}function configFromRFC2822(e){var o=rfc2822.exec(preprocessRFC2822(e._i)),r;if(o){if(r=extractFromRFC2822Strings(o[4],o[3],o[2],o[5],o[6],o[7]),!checkWeekday(o[1],r,e))return;e._a=r,e._tzm=calculateOffset(o[8],o[9],o[10]),e._d=createUTCDate.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),getParsingFlags(e).rfc2822=!0}else e._isValid=!1}function configFromString(e){var o=aspNetJsonRegex.exec(e._i);if(o!==null){e._d=new Date(+o[1]);return}if(configFromISO(e),e._isValid===!1)delete e._isValid;else return;if(configFromRFC2822(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:hooks.createFromInputFallback(e)}hooks.createFromInputFallback=deprecate("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function defaults(e,o,r){return e!=null?e:o!=null?o:r}function currentDateArray(e){var o=new Date(hooks.now());return e._useUTC?[o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate()]:[o.getFullYear(),o.getMonth(),o.getDate()]}function configFromArray(e){var o,r,a=[],s,c,l;if(!e._d){for(s=currentDateArray(e),e._w&&e._a[DATE]==null&&e._a[MONTH]==null&&dayOfYearFromWeekInfo(e),e._dayOfYear!=null&&(l=defaults(e._a[YEAR],s[YEAR]),(e._dayOfYear>daysInYear(l)||e._dayOfYear===0)&&(getParsingFlags(e)._overflowDayOfYear=!0),r=createUTCDate(l,0,e._dayOfYear),e._a[MONTH]=r.getUTCMonth(),e._a[DATE]=r.getUTCDate()),o=0;o<3&&e._a[o]==null;++o)e._a[o]=a[o]=s[o];for(;o<7;o++)e._a[o]=a[o]=e._a[o]==null?o===2?1:0:e._a[o];e._a[HOUR]===24&&e._a[MINUTE]===0&&e._a[SECOND]===0&&e._a[MILLISECOND]===0&&(e._nextDay=!0,e._a[HOUR]=0),e._d=(e._useUTC?createUTCDate:createDate).apply(null,a),c=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[HOUR]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==c&&(getParsingFlags(e).weekdayMismatch=!0)}}function dayOfYearFromWeekInfo(e){var o,r,a,s,c,l,d,u,f;o=e._w,o.GG!=null||o.W!=null||o.E!=null?(c=1,l=4,r=defaults(o.GG,e._a[YEAR],weekOfYear(createLocal(),1,4).year),a=defaults(o.W,1),s=defaults(o.E,1),(s<1||s>7)&&(u=!0)):(c=e._locale._week.dow,l=e._locale._week.doy,f=weekOfYear(createLocal(),c,l),r=defaults(o.gg,e._a[YEAR],f.year),a=defaults(o.w,f.week),o.d!=null?(s=o.d,(s<0||s>6)&&(u=!0)):o.e!=null?(s=o.e+c,(o.e<0||o.e>6)&&(u=!0)):s=c),a<1||a>weeksInYear(r,c,l)?getParsingFlags(e)._overflowWeeks=!0:u!=null?getParsingFlags(e)._overflowWeekday=!0:(d=dayOfYearFromWeeks(r,a,s,c,l),e._a[YEAR]=d.year,e._dayOfYear=d.dayOfYear)}hooks.ISO_8601=function(){},hooks.RFC_2822=function(){};function configFromStringAndFormat(e){if(e._f===hooks.ISO_8601){configFromISO(e);return}if(e._f===hooks.RFC_2822){configFromRFC2822(e);return}e._a=[],getParsingFlags(e).empty=!0;var o=""+e._i,r,a,s,c,l,d=o.length,u=0,f,p;for(s=expandFormat(e._f,e._locale).match(formattingTokens)||[],p=s.length,r=0;r<p;r++)c=s[r],a=(o.match(getParseRegexForToken(c,e))||[])[0],a&&(l=o.substr(0,o.indexOf(a)),l.length>0&&getParsingFlags(e).unusedInput.push(l),o=o.slice(o.indexOf(a)+a.length),u+=a.length),formatTokenFunctions[c]?(a?getParsingFlags(e).empty=!1:getParsingFlags(e).unusedTokens.push(c),addTimeToArrayFromToken(c,a,e)):e._strict&&!a&&getParsingFlags(e).unusedTokens.push(c);getParsingFlags(e).charsLeftOver=d-u,o.length>0&&getParsingFlags(e).unusedInput.push(o),e._a[HOUR]<=12&&getParsingFlags(e).bigHour===!0&&e._a[HOUR]>0&&(getParsingFlags(e).bigHour=void 0),getParsingFlags(e).parsedDateParts=e._a.slice(0),getParsingFlags(e).meridiem=e._meridiem,e._a[HOUR]=meridiemFixWrap(e._locale,e._a[HOUR],e._meridiem),f=getParsingFlags(e).era,f!==null&&(e._a[YEAR]=e._locale.erasConvertYear(f,e._a[YEAR])),configFromArray(e),checkOverflow(e)}function meridiemFixWrap(e,o,r){var a;return r==null?o:e.meridiemHour!=null?e.meridiemHour(o,r):(e.isPM!=null&&(a=e.isPM(r),a&&o<12&&(o+=12),!a&&o===12&&(o=0)),o)}function configFromStringAndArray(e){var o,r,a,s,c,l,d=!1,u=e._f.length;if(u===0){getParsingFlags(e).invalidFormat=!0,e._d=new Date(NaN);return}for(s=0;s<u;s++)c=0,l=!1,o=copyConfig({},e),e._useUTC!=null&&(o._useUTC=e._useUTC),o._f=e._f[s],configFromStringAndFormat(o),isValid(o)&&(l=!0),c+=getParsingFlags(o).charsLeftOver,c+=getParsingFlags(o).unusedTokens.length*10,getParsingFlags(o).score=c,d?c<a&&(a=c,r=o):(a==null||c<a||l)&&(a=c,r=o,l&&(d=!0));extend(e,r||o)}function configFromObject(e){if(!e._d){var o=normalizeObjectUnits(e._i),r=o.day===void 0?o.date:o.day;e._a=map([o.year,o.month,r,o.hour,o.minute,o.second,o.millisecond],function(a){return a&&parseInt(a,10)}),configFromArray(e)}}function createFromConfig(e){var o=new Moment(checkOverflow(prepareConfig(e)));return o._nextDay&&(o.add(1,"d"),o._nextDay=void 0),o}function prepareConfig(e){var o=e._i,r=e._f;return e._locale=e._locale||getLocale(e._l),o===null||r===void 0&&o===""?createInvalid({nullInput:!0}):(typeof o=="string"&&(e._i=o=e._locale.preparse(o)),isMoment(o)?new Moment(checkOverflow(o)):(isDate(o)?e._d=o:isArray(r)?configFromStringAndArray(e):r?configFromStringAndFormat(e):configFromInput(e),isValid(e)||(e._d=null),e))}function configFromInput(e){var o=e._i;isUndefined(o)?e._d=new Date(hooks.now()):isDate(o)?e._d=new Date(o.valueOf()):typeof o=="string"?configFromString(e):isArray(o)?(e._a=map(o.slice(0),function(r){return parseInt(r,10)}),configFromArray(e)):isObject(o)?configFromObject(e):isNumber(o)?e._d=new Date(o):hooks.createFromInputFallback(e)}function createLocalOrUTC(e,o,r,a,s){var c={};return(o===!0||o===!1)&&(a=o,o=void 0),(r===!0||r===!1)&&(a=r,r=void 0),(isObject(e)&&isObjectEmpty(e)||isArray(e)&&e.length===0)&&(e=void 0),c._isAMomentObject=!0,c._useUTC=c._isUTC=s,c._l=r,c._i=e,c._f=o,c._strict=a,createFromConfig(c)}function createLocal(e,o,r,a){return createLocalOrUTC(e,o,r,a,!1)}var prototypeMin=deprecate("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=createLocal.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:createInvalid()}),prototypeMax=deprecate("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=createLocal.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:createInvalid()});function pickBy(e,o){var r,a;if(o.length===1&&isArray(o[0])&&(o=o[0]),!o.length)return createLocal();for(r=o[0],a=1;a<o.length;++a)(!o[a].isValid()||o[a][e](r))&&(r=o[a]);return r}function min(){var e=[].slice.call(arguments,0);return pickBy("isBefore",e)}function max(){var e=[].slice.call(arguments,0);return pickBy("isAfter",e)}var now=function(){return Date.now?Date.now():+new Date},ordering=["year","quarter","month","week","day","hour","minute","second","millisecond"];function isDurationValid(e){var o,r=!1,a,s=ordering.length;for(o in e)if(hasOwnProp(e,o)&&!(indexOf.call(ordering,o)!==-1&&(e[o]==null||!isNaN(e[o]))))return!1;for(a=0;a<s;++a)if(e[ordering[a]]){if(r)return!1;parseFloat(e[ordering[a]])!==toInt(e[ordering[a]])&&(r=!0)}return!0}function isValid$1(){return this._isValid}function createInvalid$1(){return createDuration(NaN)}function Duration(e){var o=normalizeObjectUnits(e),r=o.year||0,a=o.quarter||0,s=o.month||0,c=o.week||o.isoWeek||0,l=o.day||0,d=o.hour||0,u=o.minute||0,f=o.second||0,p=o.millisecond||0;this._isValid=isDurationValid(o),this._milliseconds=+p+f*1e3+u*6e4+d*1e3*60*60,this._days=+l+c*7,this._months=+s+a*3+r*12,this._data={},this._locale=getLocale(),this._bubble()}function isDuration(e){return e instanceof Duration}function absRound(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function compareArrays(e,o,r){var a=Math.min(e.length,o.length),s=Math.abs(e.length-o.length),c=0,l;for(l=0;l<a;l++)(r&&e[l]!==o[l]||!r&&toInt(e[l])!==toInt(o[l]))&&c++;return c+s}function offset(e,o){addFormatToken(e,0,0,function(){var r=this.utcOffset(),a="+";return r<0&&(r=-r,a="-"),a+zeroFill(~~(r/60),2)+o+zeroFill(~~r%60,2)})}offset("Z",":"),offset("ZZ",""),addRegexToken("Z",matchShortOffset),addRegexToken("ZZ",matchShortOffset),addParseToken(["Z","ZZ"],function(e,o,r){r._useUTC=!0,r._tzm=offsetFromString(matchShortOffset,e)});var chunkOffset=/([\+\-]|\d\d)/gi;function offsetFromString(e,o){var r=(o||"").match(e),a,s,c;return r===null?null:(a=r[r.length-1]||[],s=(a+"").match(chunkOffset)||["-",0,0],c=+(s[1]*60)+toInt(s[2]),c===0?0:s[0]==="+"?c:-c)}function cloneWithOffset(e,o){var r,a;return o._isUTC?(r=o.clone(),a=(isMoment(e)||isDate(e)?e.valueOf():createLocal(e).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+a),hooks.updateOffset(r,!1),r):createLocal(e).local()}function getDateOffset(e){return-Math.round(e._d.getTimezoneOffset())}hooks.updateOffset=function(){};function getSetOffset(e,o,r){var a=this._offset||0,s;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=offsetFromString(matchShortOffset,e),e===null)return this}else Math.abs(e)<16&&!r&&(e=e*60);return!this._isUTC&&o&&(s=getDateOffset(this)),this._offset=e,this._isUTC=!0,s!=null&&this.add(s,"m"),a!==e&&(!o||this._changeInProgress?addSubtract(this,createDuration(e-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,hooks.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?a:getDateOffset(this)}function getSetZone(e,o){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,o),this):-this.utcOffset()}function setOffsetToUTC(e){return this.utcOffset(0,e)}function setOffsetToLocal(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(getDateOffset(this),"m")),this}function setOffsetToParsedOffset(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=offsetFromString(matchOffset,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function hasAlignedHourOffset(e){return this.isValid()?(e=e?createLocal(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function isDaylightSavingTime(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function isDaylightSavingTimeShifted(){if(!isUndefined(this._isDSTShifted))return this._isDSTShifted;var e={},o;return copyConfig(e,this),e=prepareConfig(e),e._a?(o=e._isUTC?createUTC(e._a):createLocal(e._a),this._isDSTShifted=this.isValid()&&compareArrays(e._a,o.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function isLocal(){return this.isValid()?!this._isUTC:!1}function isUtcOffset(){return this.isValid()?this._isUTC:!1}function isUtc(){return this.isValid()?this._isUTC&&this._offset===0:!1}var aspNetRegex=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,isoRegex=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function createDuration(e,o){var r=e,a=null,s,c,l;return isDuration(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:isNumber(e)||!isNaN(+e)?(r={},o?r[o]=+e:r.milliseconds=+e):(a=aspNetRegex.exec(e))?(s=a[1]==="-"?-1:1,r={y:0,d:toInt(a[DATE])*s,h:toInt(a[HOUR])*s,m:toInt(a[MINUTE])*s,s:toInt(a[SECOND])*s,ms:toInt(absRound(a[MILLISECOND]*1e3))*s}):(a=isoRegex.exec(e))?(s=a[1]==="-"?-1:1,r={y:parseIso(a[2],s),M:parseIso(a[3],s),w:parseIso(a[4],s),d:parseIso(a[5],s),h:parseIso(a[6],s),m:parseIso(a[7],s),s:parseIso(a[8],s)}):r==null?r={}:typeof r=="object"&&("from"in r||"to"in r)&&(l=momentsDifference(createLocal(r.from),createLocal(r.to)),r={},r.ms=l.milliseconds,r.M=l.months),c=new Duration(r),isDuration(e)&&hasOwnProp(e,"_locale")&&(c._locale=e._locale),isDuration(e)&&hasOwnProp(e,"_isValid")&&(c._isValid=e._isValid),c}createDuration.fn=Duration.prototype,createDuration.invalid=createInvalid$1;function parseIso(e,o){var r=e&&parseFloat(e.replace(",","."));return(isNaN(r)?0:r)*o}function positiveMomentsDifference(e,o){var r={};return r.months=o.month()-e.month()+(o.year()-e.year())*12,e.clone().add(r.months,"M").isAfter(o)&&--r.months,r.milliseconds=+o-+e.clone().add(r.months,"M"),r}function momentsDifference(e,o){var r;return e.isValid()&&o.isValid()?(o=cloneWithOffset(o,e),e.isBefore(o)?r=positiveMomentsDifference(e,o):(r=positiveMomentsDifference(o,e),r.milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0}}function createAdder(e,o){return function(r,a){var s,c;return a!==null&&!isNaN(+a)&&(deprecateSimple(o,"moment()."+o+"(period, number) is deprecated. Please use moment()."+o+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),c=r,r=a,a=c),s=createDuration(r,a),addSubtract(this,s,e),this}}function addSubtract(e,o,r,a){var s=o._milliseconds,c=absRound(o._days),l=absRound(o._months);!e.isValid()||(a=a==null?!0:a,l&&setMonth(e,get(e,"Month")+l*r),c&&set$1(e,"Date",get(e,"Date")+c*r),s&&e._d.setTime(e._d.valueOf()+s*r),a&&hooks.updateOffset(e,c||l))}var add=createAdder(1,"add"),subtract=createAdder(-1,"subtract");function isString(e){return typeof e=="string"||e instanceof String}function isMomentInput(e){return isMoment(e)||isDate(e)||isString(e)||isNumber(e)||isNumberOrStringArray(e)||isMomentInputObject(e)||e===null||e===void 0}function isMomentInputObject(e){var o=isObject(e)&&!isObjectEmpty(e),r=!1,a=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],s,c,l=a.length;for(s=0;s<l;s+=1)c=a[s],r=r||hasOwnProp(e,c);return o&&r}function isNumberOrStringArray(e){var o=isArray(e),r=!1;return o&&(r=e.filter(function(a){return!isNumber(a)&&isString(e)}).length===0),o&&r}function isCalendarSpec(e){var o=isObject(e)&&!isObjectEmpty(e),r=!1,a=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],s,c;for(s=0;s<a.length;s+=1)c=a[s],r=r||hasOwnProp(e,c);return o&&r}function getCalendarFormat(e,o){var r=e.diff(o,"days",!0);return r<-6?"sameElse":r<-1?"lastWeek":r<0?"lastDay":r<1?"sameDay":r<2?"nextDay":r<7?"nextWeek":"sameElse"}function calendar$1(e,o){arguments.length===1&&(arguments[0]?isMomentInput(arguments[0])?(e=arguments[0],o=void 0):isCalendarSpec(arguments[0])&&(o=arguments[0],e=void 0):(e=void 0,o=void 0));var r=e||createLocal(),a=cloneWithOffset(r,this).startOf("day"),s=hooks.calendarFormat(this,a)||"sameElse",c=o&&(isFunction(o[s])?o[s].call(this,r):o[s]);return this.format(c||this.localeData().calendar(s,this,createLocal(r)))}function clone(){return new Moment(this)}function isAfter(e,o){var r=isMoment(e)?e:createLocal(e);return this.isValid()&&r.isValid()?(o=normalizeUnits(o)||"millisecond",o==="millisecond"?this.valueOf()>r.valueOf():r.valueOf()<this.clone().startOf(o).valueOf()):!1}function isBefore(e,o){var r=isMoment(e)?e:createLocal(e);return this.isValid()&&r.isValid()?(o=normalizeUnits(o)||"millisecond",o==="millisecond"?this.valueOf()<r.valueOf():this.clone().endOf(o).valueOf()<r.valueOf()):!1}function isBetween(e,o,r,a){var s=isMoment(e)?e:createLocal(e),c=isMoment(o)?o:createLocal(o);return this.isValid()&&s.isValid()&&c.isValid()?(a=a||"()",(a[0]==="("?this.isAfter(s,r):!this.isBefore(s,r))&&(a[1]===")"?this.isBefore(c,r):!this.isAfter(c,r))):!1}function isSame(e,o){var r=isMoment(e)?e:createLocal(e),a;return this.isValid()&&r.isValid()?(o=normalizeUnits(o)||"millisecond",o==="millisecond"?this.valueOf()===r.valueOf():(a=r.valueOf(),this.clone().startOf(o).valueOf()<=a&&a<=this.clone().endOf(o).valueOf())):!1}function isSameOrAfter(e,o){return this.isSame(e,o)||this.isAfter(e,o)}function isSameOrBefore(e,o){return this.isSame(e,o)||this.isBefore(e,o)}function diff(e,o,r){var a,s,c;if(!this.isValid())return NaN;if(a=cloneWithOffset(e,this),!a.isValid())return NaN;switch(s=(a.utcOffset()-this.utcOffset())*6e4,o=normalizeUnits(o),o){case"year":c=monthDiff(this,a)/12;break;case"month":c=monthDiff(this,a);break;case"quarter":c=monthDiff(this,a)/3;break;case"second":c=(this-a)/1e3;break;case"minute":c=(this-a)/6e4;break;case"hour":c=(this-a)/36e5;break;case"day":c=(this-a-s)/864e5;break;case"week":c=(this-a-s)/6048e5;break;default:c=this-a}return r?c:absFloor(c)}function monthDiff(e,o){if(e.date()<o.date())return-monthDiff(o,e);var r=(o.year()-e.year())*12+(o.month()-e.month()),a=e.clone().add(r,"months"),s,c;return o-a<0?(s=e.clone().add(r-1,"months"),c=(o-a)/(a-s)):(s=e.clone().add(r+1,"months"),c=(o-a)/(s-a)),-(r+c)||0}hooks.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",hooks.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function toString(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function toISOString(e){if(!this.isValid())return null;var o=e!==!0,r=o?this.clone().utc():this;return r.year()<0||r.year()>9999?formatMoment(r,o?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):isFunction(Date.prototype.toISOString)?o?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",formatMoment(r,"Z")):formatMoment(r,o?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function inspect(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",o="",r,a,s,c;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",o="Z"),r="["+e+'("]',a=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",s="-MM-DD[T]HH:mm:ss.SSS",c=o+'[")]',this.format(r+a+s+c)}function format(e){e||(e=this.isUtc()?hooks.defaultFormatUtc:hooks.defaultFormat);var o=formatMoment(this,e);return this.localeData().postformat(o)}function from(e,o){return this.isValid()&&(isMoment(e)&&e.isValid()||createLocal(e).isValid())?createDuration({to:this,from:e}).locale(this.locale()).humanize(!o):this.localeData().invalidDate()}function fromNow(e){return this.from(createLocal(),e)}function to(e,o){return this.isValid()&&(isMoment(e)&&e.isValid()||createLocal(e).isValid())?createDuration({from:this,to:e}).locale(this.locale()).humanize(!o):this.localeData().invalidDate()}function toNow(e){return this.to(createLocal(),e)}function locale(e){var o;return e===void 0?this._locale._abbr:(o=getLocale(e),o!=null&&(this._locale=o),this)}var lang=deprecate("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function localeData(){return this._locale}var MS_PER_SECOND=1e3,MS_PER_MINUTE=60*MS_PER_SECOND,MS_PER_HOUR=60*MS_PER_MINUTE,MS_PER_400_YEARS=(365*400+97)*24*MS_PER_HOUR;function mod$1(e,o){return(e%o+o)%o}function localStartOfDate(e,o,r){return e<100&&e>=0?new Date(e+400,o,r)-MS_PER_400_YEARS:new Date(e,o,r).valueOf()}function utcStartOfDate(e,o,r){return e<100&&e>=0?Date.UTC(e+400,o,r)-MS_PER_400_YEARS:Date.UTC(e,o,r)}function startOf(e){var o,r;if(e=normalizeUnits(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?utcStartOfDate:localStartOfDate,e){case"year":o=r(this.year(),0,1);break;case"quarter":o=r(this.year(),this.month()-this.month()%3,1);break;case"month":o=r(this.year(),this.month(),1);break;case"week":o=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":o=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":o=r(this.year(),this.month(),this.date());break;case"hour":o=this._d.valueOf(),o-=mod$1(o+(this._isUTC?0:this.utcOffset()*MS_PER_MINUTE),MS_PER_HOUR);break;case"minute":o=this._d.valueOf(),o-=mod$1(o,MS_PER_MINUTE);break;case"second":o=this._d.valueOf(),o-=mod$1(o,MS_PER_SECOND);break}return this._d.setTime(o),hooks.updateOffset(this,!0),this}function endOf(e){var o,r;if(e=normalizeUnits(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?utcStartOfDate:localStartOfDate,e){case"year":o=r(this.year()+1,0,1)-1;break;case"quarter":o=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":o=r(this.year(),this.month()+1,1)-1;break;case"week":o=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":o=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":o=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":o=this._d.valueOf(),o+=MS_PER_HOUR-mod$1(o+(this._isUTC?0:this.utcOffset()*MS_PER_MINUTE),MS_PER_HOUR)-1;break;case"minute":o=this._d.valueOf(),o+=MS_PER_MINUTE-mod$1(o,MS_PER_MINUTE)-1;break;case"second":o=this._d.valueOf(),o+=MS_PER_SECOND-mod$1(o,MS_PER_SECOND)-1;break}return this._d.setTime(o),hooks.updateOffset(this,!0),this}function valueOf(){return this._d.valueOf()-(this._offset||0)*6e4}function unix(){return Math.floor(this.valueOf()/1e3)}function toDate(){return new Date(this.valueOf())}function toArray(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function toObject(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function toJSON(){return this.isValid()?this.toISOString():null}function isValid$2(){return isValid(this)}function parsingFlags(){return extend({},getParsingFlags(this))}function invalidAt(){return getParsingFlags(this).overflow}function creationData(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}addFormatToken("N",0,0,"eraAbbr"),addFormatToken("NN",0,0,"eraAbbr"),addFormatToken("NNN",0,0,"eraAbbr"),addFormatToken("NNNN",0,0,"eraName"),addFormatToken("NNNNN",0,0,"eraNarrow"),addFormatToken("y",["y",1],"yo","eraYear"),addFormatToken("y",["yy",2],0,"eraYear"),addFormatToken("y",["yyy",3],0,"eraYear"),addFormatToken("y",["yyyy",4],0,"eraYear"),addRegexToken("N",matchEraAbbr),addRegexToken("NN",matchEraAbbr),addRegexToken("NNN",matchEraAbbr),addRegexToken("NNNN",matchEraName),addRegexToken("NNNNN",matchEraNarrow),addParseToken(["N","NN","NNN","NNNN","NNNNN"],function(e,o,r,a){var s=r._locale.erasParse(e,a,r._strict);s?getParsingFlags(r).era=s:getParsingFlags(r).invalidEra=e}),addRegexToken("y",matchUnsigned),addRegexToken("yy",matchUnsigned),addRegexToken("yyy",matchUnsigned),addRegexToken("yyyy",matchUnsigned),addRegexToken("yo",matchEraYearOrdinal),addParseToken(["y","yy","yyy","yyyy"],YEAR),addParseToken(["yo"],function(e,o,r,a){var s;r._locale._eraYearOrdinalRegex&&(s=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?o[YEAR]=r._locale.eraYearOrdinalParse(e,s):o[YEAR]=parseInt(e,10)});function localeEras(e,o){var r,a,s,c=this._eras||getLocale("en")._eras;for(r=0,a=c.length;r<a;++r){switch(typeof c[r].since){case"string":s=hooks(c[r].since).startOf("day"),c[r].since=s.valueOf();break}switch(typeof c[r].until){case"undefined":c[r].until=1/0;break;case"string":s=hooks(c[r].until).startOf("day").valueOf(),c[r].until=s.valueOf();break}}return c}function localeErasParse(e,o,r){var a,s,c=this.eras(),l,d,u;for(e=e.toUpperCase(),a=0,s=c.length;a<s;++a)if(l=c[a].name.toUpperCase(),d=c[a].abbr.toUpperCase(),u=c[a].narrow.toUpperCase(),r)switch(o){case"N":case"NN":case"NNN":if(d===e)return c[a];break;case"NNNN":if(l===e)return c[a];break;case"NNNNN":if(u===e)return c[a];break}else if([l,d,u].indexOf(e)>=0)return c[a]}function localeErasConvertYear(e,o){var r=e.since<=e.until?1:-1;return o===void 0?hooks(e.since).year():hooks(e.since).year()+(o-e.offset)*r}function getEraName(){var e,o,r,a=this.localeData().eras();for(e=0,o=a.length;e<o;++e)if(r=this.clone().startOf("day").valueOf(),a[e].since<=r&&r<=a[e].until||a[e].until<=r&&r<=a[e].since)return a[e].name;return""}function getEraNarrow(){var e,o,r,a=this.localeData().eras();for(e=0,o=a.length;e<o;++e)if(r=this.clone().startOf("day").valueOf(),a[e].since<=r&&r<=a[e].until||a[e].until<=r&&r<=a[e].since)return a[e].narrow;return""}function getEraAbbr(){var e,o,r,a=this.localeData().eras();for(e=0,o=a.length;e<o;++e)if(r=this.clone().startOf("day").valueOf(),a[e].since<=r&&r<=a[e].until||a[e].until<=r&&r<=a[e].since)return a[e].abbr;return""}function getEraYear(){var e,o,r,a,s=this.localeData().eras();for(e=0,o=s.length;e<o;++e)if(r=s[e].since<=s[e].until?1:-1,a=this.clone().startOf("day").valueOf(),s[e].since<=a&&a<=s[e].until||s[e].until<=a&&a<=s[e].since)return(this.year()-hooks(s[e].since).year())*r+s[e].offset;return this.year()}function erasNameRegex(e){return hasOwnProp(this,"_erasNameRegex")||computeErasParse.call(this),e?this._erasNameRegex:this._erasRegex}function erasAbbrRegex(e){return hasOwnProp(this,"_erasAbbrRegex")||computeErasParse.call(this),e?this._erasAbbrRegex:this._erasRegex}function erasNarrowRegex(e){return hasOwnProp(this,"_erasNarrowRegex")||computeErasParse.call(this),e?this._erasNarrowRegex:this._erasRegex}function matchEraAbbr(e,o){return o.erasAbbrRegex(e)}function matchEraName(e,o){return o.erasNameRegex(e)}function matchEraNarrow(e,o){return o.erasNarrowRegex(e)}function matchEraYearOrdinal(e,o){return o._eraYearOrdinalRegex||matchUnsigned}function computeErasParse(){var e=[],o=[],r=[],a=[],s,c,l=this.eras();for(s=0,c=l.length;s<c;++s)o.push(regexEscape(l[s].name)),e.push(regexEscape(l[s].abbr)),r.push(regexEscape(l[s].narrow)),a.push(regexEscape(l[s].name)),a.push(regexEscape(l[s].abbr)),a.push(regexEscape(l[s].narrow));this._erasRegex=new RegExp("^("+a.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+o.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}addFormatToken(0,["gg",2],0,function(){return this.weekYear()%100}),addFormatToken(0,["GG",2],0,function(){return this.isoWeekYear()%100});function addWeekYearFormatToken(e,o){addFormatToken(0,[e,e.length],0,o)}addWeekYearFormatToken("gggg","weekYear"),addWeekYearFormatToken("ggggg","weekYear"),addWeekYearFormatToken("GGGG","isoWeekYear"),addWeekYearFormatToken("GGGGG","isoWeekYear"),addUnitAlias("weekYear","gg"),addUnitAlias("isoWeekYear","GG"),addUnitPriority("weekYear",1),addUnitPriority("isoWeekYear",1),addRegexToken("G",matchSigned),addRegexToken("g",matchSigned),addRegexToken("GG",match1to2,match2),addRegexToken("gg",match1to2,match2),addRegexToken("GGGG",match1to4,match4),addRegexToken("gggg",match1to4,match4),addRegexToken("GGGGG",match1to6,match6),addRegexToken("ggggg",match1to6,match6),addWeekParseToken(["gggg","ggggg","GGGG","GGGGG"],function(e,o,r,a){o[a.substr(0,2)]=toInt(e)}),addWeekParseToken(["gg","GG"],function(e,o,r,a){o[a]=hooks.parseTwoDigitYear(e)});function getSetWeekYear(e){return getSetWeekYearHelper.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function getSetISOWeekYear(e){return getSetWeekYearHelper.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function getISOWeeksInYear(){return weeksInYear(this.year(),1,4)}function getISOWeeksInISOWeekYear(){return weeksInYear(this.isoWeekYear(),1,4)}function getWeeksInYear(){var e=this.localeData()._week;return weeksInYear(this.year(),e.dow,e.doy)}function getWeeksInWeekYear(){var e=this.localeData()._week;return weeksInYear(this.weekYear(),e.dow,e.doy)}function getSetWeekYearHelper(e,o,r,a,s){var c;return e==null?weekOfYear(this,a,s).year:(c=weeksInYear(e,a,s),o>c&&(o=c),setWeekAll.call(this,e,o,r,a,s))}function setWeekAll(e,o,r,a,s){var c=dayOfYearFromWeeks(e,o,r,a,s),l=createUTCDate(c.year,0,c.dayOfYear);return this.year(l.getUTCFullYear()),this.month(l.getUTCMonth()),this.date(l.getUTCDate()),this}addFormatToken("Q",0,"Qo","quarter"),addUnitAlias("quarter","Q"),addUnitPriority("quarter",7),addRegexToken("Q",match1),addParseToken("Q",function(e,o){o[MONTH]=(toInt(e)-1)*3});function getSetQuarter(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}addFormatToken("D",["DD",2],"Do","date"),addUnitAlias("date","D"),addUnitPriority("date",9),addRegexToken("D",match1to2),addRegexToken("DD",match1to2,match2),addRegexToken("Do",function(e,o){return e?o._dayOfMonthOrdinalParse||o._ordinalParse:o._dayOfMonthOrdinalParseLenient}),addParseToken(["D","DD"],DATE),addParseToken("Do",function(e,o){o[DATE]=toInt(e.match(match1to2)[0])});var getSetDayOfMonth=makeGetSet("Date",!0);addFormatToken("DDD",["DDDD",3],"DDDo","dayOfYear"),addUnitAlias("dayOfYear","DDD"),addUnitPriority("dayOfYear",4),addRegexToken("DDD",match1to3),addRegexToken("DDDD",match3),addParseToken(["DDD","DDDD"],function(e,o,r){r._dayOfYear=toInt(e)});function getSetDayOfYear(e){var o=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?o:this.add(e-o,"d")}addFormatToken("m",["mm",2],0,"minute"),addUnitAlias("minute","m"),addUnitPriority("minute",14),addRegexToken("m",match1to2),addRegexToken("mm",match1to2,match2),addParseToken(["m","mm"],MINUTE);var getSetMinute=makeGetSet("Minutes",!1);addFormatToken("s",["ss",2],0,"second"),addUnitAlias("second","s"),addUnitPriority("second",15),addRegexToken("s",match1to2),addRegexToken("ss",match1to2,match2),addParseToken(["s","ss"],SECOND);var getSetSecond=makeGetSet("Seconds",!1);addFormatToken("S",0,0,function(){return~~(this.millisecond()/100)}),addFormatToken(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),addFormatToken(0,["SSS",3],0,"millisecond"),addFormatToken(0,["SSSS",4],0,function(){return this.millisecond()*10}),addFormatToken(0,["SSSSS",5],0,function(){return this.millisecond()*100}),addFormatToken(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),addFormatToken(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),addFormatToken(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),addFormatToken(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),addUnitAlias("millisecond","ms"),addUnitPriority("millisecond",16),addRegexToken("S",match1to3,match1),addRegexToken("SS",match1to3,match2),addRegexToken("SSS",match1to3,match3);var token,getSetMillisecond;for(token="SSSS";token.length<=9;token+="S")addRegexToken(token,matchUnsigned);function parseMs(e,o){o[MILLISECOND]=toInt(("0."+e)*1e3)}for(token="S";token.length<=9;token+="S")addParseToken(token,parseMs);getSetMillisecond=makeGetSet("Milliseconds",!1),addFormatToken("z",0,0,"zoneAbbr"),addFormatToken("zz",0,0,"zoneName");function getZoneAbbr(){return this._isUTC?"UTC":""}function getZoneName(){return this._isUTC?"Coordinated Universal Time":""}var proto=Moment.prototype;proto.add=add,proto.calendar=calendar$1,proto.clone=clone,proto.diff=diff,proto.endOf=endOf,proto.format=format,proto.from=from,proto.fromNow=fromNow,proto.to=to,proto.toNow=toNow,proto.get=stringGet,proto.invalidAt=invalidAt,proto.isAfter=isAfter,proto.isBefore=isBefore,proto.isBetween=isBetween,proto.isSame=isSame,proto.isSameOrAfter=isSameOrAfter,proto.isSameOrBefore=isSameOrBefore,proto.isValid=isValid$2,proto.lang=lang,proto.locale=locale,proto.localeData=localeData,proto.max=prototypeMax,proto.min=prototypeMin,proto.parsingFlags=parsingFlags,proto.set=stringSet,proto.startOf=startOf,proto.subtract=subtract,proto.toArray=toArray,proto.toObject=toObject,proto.toDate=toDate,proto.toISOString=toISOString,proto.inspect=inspect,typeof Symbol<"u"&&Symbol.for!=null&&(proto[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),proto.toJSON=toJSON,proto.toString=toString,proto.unix=unix,proto.valueOf=valueOf,proto.creationData=creationData,proto.eraName=getEraName,proto.eraNarrow=getEraNarrow,proto.eraAbbr=getEraAbbr,proto.eraYear=getEraYear,proto.year=getSetYear,proto.isLeapYear=getIsLeapYear,proto.weekYear=getSetWeekYear,proto.isoWeekYear=getSetISOWeekYear,proto.quarter=proto.quarters=getSetQuarter,proto.month=getSetMonth,proto.daysInMonth=getDaysInMonth,proto.week=proto.weeks=getSetWeek,proto.isoWeek=proto.isoWeeks=getSetISOWeek,proto.weeksInYear=getWeeksInYear,proto.weeksInWeekYear=getWeeksInWeekYear,proto.isoWeeksInYear=getISOWeeksInYear,proto.isoWeeksInISOWeekYear=getISOWeeksInISOWeekYear,proto.date=getSetDayOfMonth,proto.day=proto.days=getSetDayOfWeek,proto.weekday=getSetLocaleDayOfWeek,proto.isoWeekday=getSetISODayOfWeek,proto.dayOfYear=getSetDayOfYear,proto.hour=proto.hours=getSetHour,proto.minute=proto.minutes=getSetMinute,proto.second=proto.seconds=getSetSecond,proto.millisecond=proto.milliseconds=getSetMillisecond,proto.utcOffset=getSetOffset,proto.utc=setOffsetToUTC,proto.local=setOffsetToLocal,proto.parseZone=setOffsetToParsedOffset,proto.hasAlignedHourOffset=hasAlignedHourOffset,proto.isDST=isDaylightSavingTime,proto.isLocal=isLocal,proto.isUtcOffset=isUtcOffset,proto.isUtc=isUtc,proto.isUTC=isUtc,proto.zoneAbbr=getZoneAbbr,proto.zoneName=getZoneName,proto.dates=deprecate("dates accessor is deprecated. Use date instead.",getSetDayOfMonth),proto.months=deprecate("months accessor is deprecated. Use month instead",getSetMonth),proto.years=deprecate("years accessor is deprecated. Use year instead",getSetYear),proto.zone=deprecate("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",getSetZone),proto.isDSTShifted=deprecate("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",isDaylightSavingTimeShifted);function createUnix(e){return createLocal(e*1e3)}function createInZone(){return createLocal.apply(null,arguments).parseZone()}function preParsePostFormat(e){return e}var proto$1=Locale.prototype;proto$1.calendar=calendar,proto$1.longDateFormat=longDateFormat,proto$1.invalidDate=invalidDate,proto$1.ordinal=ordinal,proto$1.preparse=preParsePostFormat,proto$1.postformat=preParsePostFormat,proto$1.relativeTime=relativeTime,proto$1.pastFuture=pastFuture,proto$1.set=set,proto$1.eras=localeEras,proto$1.erasParse=localeErasParse,proto$1.erasConvertYear=localeErasConvertYear,proto$1.erasAbbrRegex=erasAbbrRegex,proto$1.erasNameRegex=erasNameRegex,proto$1.erasNarrowRegex=erasNarrowRegex,proto$1.months=localeMonths,proto$1.monthsShort=localeMonthsShort,proto$1.monthsParse=localeMonthsParse,proto$1.monthsRegex=monthsRegex,proto$1.monthsShortRegex=monthsShortRegex,proto$1.week=localeWeek,proto$1.firstDayOfYear=localeFirstDayOfYear,proto$1.firstDayOfWeek=localeFirstDayOfWeek,proto$1.weekdays=localeWeekdays,proto$1.weekdaysMin=localeWeekdaysMin,proto$1.weekdaysShort=localeWeekdaysShort,proto$1.weekdaysParse=localeWeekdaysParse,proto$1.weekdaysRegex=weekdaysRegex,proto$1.weekdaysShortRegex=weekdaysShortRegex,proto$1.weekdaysMinRegex=weekdaysMinRegex,proto$1.isPM=localeIsPM,proto$1.meridiem=localeMeridiem;function get$1(e,o,r,a){var s=getLocale(),c=createUTC().set(a,o);return s[r](c,e)}function listMonthsImpl(e,o,r){if(isNumber(e)&&(o=e,e=void 0),e=e||"",o!=null)return get$1(e,o,r,"month");var a,s=[];for(a=0;a<12;a++)s[a]=get$1(e,a,r,"month");return s}function listWeekdaysImpl(e,o,r,a){typeof e=="boolean"?(isNumber(o)&&(r=o,o=void 0),o=o||""):(o=e,r=o,e=!1,isNumber(o)&&(r=o,o=void 0),o=o||"");var s=getLocale(),c=e?s._week.dow:0,l,d=[];if(r!=null)return get$1(o,(r+c)%7,a,"day");for(l=0;l<7;l++)d[l]=get$1(o,(l+c)%7,a,"day");return d}function listMonths(e,o){return listMonthsImpl(e,o,"months")}function listMonthsShort(e,o){return listMonthsImpl(e,o,"monthsShort")}function listWeekdays(e,o,r){return listWeekdaysImpl(e,o,r,"weekdays")}function listWeekdaysShort(e,o,r){return listWeekdaysImpl(e,o,r,"weekdaysShort")}function listWeekdaysMin(e,o,r){return listWeekdaysImpl(e,o,r,"weekdaysMin")}getSetGlobalLocale("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var o=e%10,r=toInt(e%100/10)===1?"th":o===1?"st":o===2?"nd":o===3?"rd":"th";return e+r}}),hooks.lang=deprecate("moment.lang is deprecated. Use moment.locale instead.",getSetGlobalLocale),hooks.langData=deprecate("moment.langData is deprecated. Use moment.localeData instead.",getLocale);var mathAbs=Math.abs;function abs(){var e=this._data;return this._milliseconds=mathAbs(this._milliseconds),this._days=mathAbs(this._days),this._months=mathAbs(this._months),e.milliseconds=mathAbs(e.milliseconds),e.seconds=mathAbs(e.seconds),e.minutes=mathAbs(e.minutes),e.hours=mathAbs(e.hours),e.months=mathAbs(e.months),e.years=mathAbs(e.years),this}function addSubtract$1(e,o,r,a){var s=createDuration(o,r);return e._milliseconds+=a*s._milliseconds,e._days+=a*s._days,e._months+=a*s._months,e._bubble()}function add$1(e,o){return addSubtract$1(this,e,o,1)}function subtract$1(e,o){return addSubtract$1(this,e,o,-1)}function absCeil(e){return e<0?Math.floor(e):Math.ceil(e)}function bubble(){var e=this._milliseconds,o=this._days,r=this._months,a=this._data,s,c,l,d,u;return e>=0&&o>=0&&r>=0||e<=0&&o<=0&&r<=0||(e+=absCeil(monthsToDays(r)+o)*864e5,o=0,r=0),a.milliseconds=e%1e3,s=absFloor(e/1e3),a.seconds=s%60,c=absFloor(s/60),a.minutes=c%60,l=absFloor(c/60),a.hours=l%24,o+=absFloor(l/24),u=absFloor(daysToMonths(o)),r+=u,o-=absCeil(monthsToDays(u)),d=absFloor(r/12),r%=12,a.days=o,a.months=r,a.years=d,this}function daysToMonths(e){return e*4800/146097}function monthsToDays(e){return e*146097/4800}function as(e){if(!this.isValid())return NaN;var o,r,a=this._milliseconds;if(e=normalizeUnits(e),e==="month"||e==="quarter"||e==="year")switch(o=this._days+a/864e5,r=this._months+daysToMonths(o),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(o=this._days+Math.round(monthsToDays(this._months)),e){case"week":return o/7+a/6048e5;case"day":return o+a/864e5;case"hour":return o*24+a/36e5;case"minute":return o*1440+a/6e4;case"second":return o*86400+a/1e3;case"millisecond":return Math.floor(o*864e5)+a;default:throw new Error("Unknown unit "+e)}}function valueOf$1(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+toInt(this._months/12)*31536e6:NaN}function makeAs(e){return function(){return this.as(e)}}var asMilliseconds=makeAs("ms"),asSeconds=makeAs("s"),asMinutes=makeAs("m"),asHours=makeAs("h"),asDays=makeAs("d"),asWeeks=makeAs("w"),asMonths=makeAs("M"),asQuarters=makeAs("Q"),asYears=makeAs("y");function clone$1(){return createDuration(this)}function get$2(e){return e=normalizeUnits(e),this.isValid()?this[e+"s"]():NaN}function makeGetter(e){return function(){return this.isValid()?this._data[e]:NaN}}var milliseconds=makeGetter("milliseconds"),seconds=makeGetter("seconds"),minutes=makeGetter("minutes"),hours=makeGetter("hours"),days=makeGetter("days"),months=makeGetter("months"),years=makeGetter("years");function weeks(){return absFloor(this.days()/7)}var round=Math.round,thresholds={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function substituteTimeAgo(e,o,r,a,s){return s.relativeTime(o||1,!!r,e,a)}function relativeTime$1(e,o,r,a){var s=createDuration(e).abs(),c=round(s.as("s")),l=round(s.as("m")),d=round(s.as("h")),u=round(s.as("d")),f=round(s.as("M")),p=round(s.as("w")),m=round(s.as("y")),I=c<=r.ss&&["s",c]||c<r.s&&["ss",c]||l<=1&&["m"]||l<r.m&&["mm",l]||d<=1&&["h"]||d<r.h&&["hh",d]||u<=1&&["d"]||u<r.d&&["dd",u];return r.w!=null&&(I=I||p<=1&&["w"]||p<r.w&&["ww",p]),I=I||f<=1&&["M"]||f<r.M&&["MM",f]||m<=1&&["y"]||["yy",m],I[2]=o,I[3]=+e>0,I[4]=a,substituteTimeAgo.apply(null,I)}function getSetRelativeTimeRounding(e){return e===void 0?round:typeof e=="function"?(round=e,!0):!1}function getSetRelativeTimeThreshold(e,o){return thresholds[e]===void 0?!1:o===void 0?thresholds[e]:(thresholds[e]=o,e==="s"&&(thresholds.ss=o-1),!0)}function humanize(e,o){if(!this.isValid())return this.localeData().invalidDate();var r=!1,a=thresholds,s,c;return typeof e=="object"&&(o=e,e=!1),typeof e=="boolean"&&(r=e),typeof o=="object"&&(a=Object.assign({},thresholds,o),o.s!=null&&o.ss==null&&(a.ss=o.s-1)),s=this.localeData(),c=relativeTime$1(this,!r,a,s),r&&(c=s.pastFuture(+this,c)),s.postformat(c)}var abs$1=Math.abs;function sign(e){return(e>0)-(e<0)||+e}function toISOString$1(){if(!this.isValid())return this.localeData().invalidDate();var e=abs$1(this._milliseconds)/1e3,o=abs$1(this._days),r=abs$1(this._months),a,s,c,l,d=this.asSeconds(),u,f,p,m;return d?(a=absFloor(e/60),s=absFloor(a/60),e%=60,a%=60,c=absFloor(r/12),r%=12,l=e?e.toFixed(3).replace(/\.?0+$/,""):"",u=d<0?"-":"",f=sign(this._months)!==sign(d)?"-":"",p=sign(this._days)!==sign(d)?"-":"",m=sign(this._milliseconds)!==sign(d)?"-":"",u+"P"+(c?f+c+"Y":"")+(r?f+r+"M":"")+(o?p+o+"D":"")+(s||a||e?"T":"")+(s?m+s+"H":"")+(a?m+a+"M":"")+(e?m+l+"S":"")):"P0D"}var proto$2=Duration.prototype;proto$2.isValid=isValid$1,proto$2.abs=abs,proto$2.add=add$1,proto$2.subtract=subtract$1,proto$2.as=as,proto$2.asMilliseconds=asMilliseconds,proto$2.asSeconds=asSeconds,proto$2.asMinutes=asMinutes,proto$2.asHours=asHours,proto$2.asDays=asDays,proto$2.asWeeks=asWeeks,proto$2.asMonths=asMonths,proto$2.asQuarters=asQuarters,proto$2.asYears=asYears,proto$2.valueOf=valueOf$1,proto$2._bubble=bubble,proto$2.clone=clone$1,proto$2.get=get$2,proto$2.milliseconds=milliseconds,proto$2.seconds=seconds,proto$2.minutes=minutes,proto$2.hours=hours,proto$2.days=days,proto$2.weeks=weeks,proto$2.months=months,proto$2.years=years,proto$2.humanize=humanize,proto$2.toISOString=toISOString$1,proto$2.toString=toISOString$1,proto$2.toJSON=toISOString$1,proto$2.locale=locale,proto$2.localeData=localeData,proto$2.toIsoString=deprecate("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",toISOString$1),proto$2.lang=lang,addFormatToken("X",0,0,"unix"),addFormatToken("x",0,0,"valueOf"),addRegexToken("x",matchSigned),addRegexToken("X",matchTimestamp),addParseToken("X",function(e,o,r){r._d=new Date(parseFloat(e)*1e3)}),addParseToken("x",function(e,o,r){r._d=new Date(toInt(e))});//! moment.js
|
|
128
|
-
hooks.version="2.29.4",setHookCallback(createLocal),hooks.fn=proto,hooks.min=min,hooks.max=max,hooks.now=now,hooks.utc=createUTC,hooks.unix=createUnix,hooks.months=listMonths,hooks.isDate=isDate,hooks.locale=getSetGlobalLocale,hooks.invalid=createInvalid,hooks.duration=createDuration,hooks.isMoment=isMoment,hooks.weekdays=listWeekdays,hooks.parseZone=createInZone,hooks.localeData=getLocale,hooks.isDuration=isDuration,hooks.monthsShort=listMonthsShort,hooks.weekdaysMin=listWeekdaysMin,hooks.defineLocale=defineLocale,hooks.updateLocale=updateLocale,hooks.locales=listLocales,hooks.weekdaysShort=listWeekdaysShort,hooks.normalizeUnits=normalizeUnits,hooks.relativeTimeRounding=getSetRelativeTimeRounding,hooks.relativeTimeThreshold=getSetRelativeTimeThreshold,hooks.calendarFormat=getCalendarFormat,hooks.prototype=proto,hooks.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var i$1={},n={read:function(e,o,r,a,s){var c,l,d=8*s-a-1,u=(1<<d)-1,f=u>>1,p=-7,m=r?s-1:0,I=r?-1:1,h=e[o+m];for(m+=I,c=h&(1<<-p)-1,h>>=-p,p+=d;p>0;c=256*c+e[o+m],m+=I,p-=8);for(l=c&(1<<-p)-1,c>>=-p,p+=a;p>0;l=256*l+e[o+m],m+=I,p-=8);if(c===0)c=1-f;else{if(c===u)return l?NaN:1/0*(h?-1:1);l+=Math.pow(2,a),c-=f}return(h?-1:1)*l*Math.pow(2,c-a)},write:function(e,o,r,a,s,c){var l,d,u,f=8*c-s-1,p=(1<<f)-1,m=p>>1,I=s===23?Math.pow(2,-24)-Math.pow(2,-77):0,h=a?0:c-1,v=a?1:-1,C=o<0||o===0&&1/o<0?1:0;for(o=Math.abs(o),isNaN(o)||o===1/0?(d=isNaN(o)?1:0,l=p):(l=Math.floor(Math.log(o)/Math.LN2),o*(u=Math.pow(2,-l))<1&&(l--,u*=2),(o+=l+m>=1?I/u:I*Math.pow(2,1-m))*u>=2&&(l++,u/=2),l+m>=p?(d=0,l=p):l+m>=1?(d=(o*u-1)*Math.pow(2,s),l+=m):(d=o*Math.pow(2,m-1)*Math.pow(2,s),l=0));s>=8;e[r+h]=255&d,h+=v,d/=256,s-=8);for(l=l<<s|d,f+=s;f>0;e[r+h]=255&l,h+=v,l/=256,f-=8);e[r+h-v]|=128*C}};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.AnsiStringType=e.StringType=e.BufferType=e.Uint8ArrayType=e.IgnoreType=e.Float80_LE=e.Float80_BE=e.Float64_LE=e.Float64_BE=e.Float32_LE=e.Float32_BE=e.Float16_LE=e.Float16_BE=e.INT64_BE=e.UINT64_BE=e.INT64_LE=e.UINT64_LE=e.INT32_LE=e.INT32_BE=e.INT24_BE=e.INT24_LE=e.INT16_LE=e.INT16_BE=e.INT8=e.UINT32_BE=e.UINT32_LE=e.UINT24_BE=e.UINT24_LE=e.UINT16_BE=e.UINT16_LE=e.UINT8=void 0;const o=n;function r(s){return new DataView(s.buffer,s.byteOffset)}e.UINT8={len:1,get:(s,c)=>r(s).getUint8(c),put:(s,c,l)=>(r(s).setUint8(c,l),c+1)},e.UINT16_LE={len:2,get:(s,c)=>r(s).getUint16(c,!0),put:(s,c,l)=>(r(s).setUint16(c,l,!0),c+2)},e.UINT16_BE={len:2,get:(s,c)=>r(s).getUint16(c),put:(s,c,l)=>(r(s).setUint16(c,l),c+2)},e.UINT24_LE={len:3,get(s,c){const l=r(s);return l.getUint8(c)+(l.getUint16(c+1,!0)<<8)},put(s,c,l){const d=r(s);return d.setUint8(c,255&l),d.setUint16(c+1,l>>8,!0),c+3}},e.UINT24_BE={len:3,get(s,c){const l=r(s);return(l.getUint16(c)<<8)+l.getUint8(c+2)},put(s,c,l){const d=r(s);return d.setUint16(c,l>>8),d.setUint8(c+2,255&l),c+3}},e.UINT32_LE={len:4,get:(s,c)=>r(s).getUint32(c,!0),put:(s,c,l)=>(r(s).setUint32(c,l,!0),c+4)},e.UINT32_BE={len:4,get:(s,c)=>r(s).getUint32(c),put:(s,c,l)=>(r(s).setUint32(c,l),c+4)},e.INT8={len:1,get:(s,c)=>r(s).getInt8(c),put:(s,c,l)=>(r(s).setInt8(c,l),c+2)},e.INT16_BE={len:2,get:(s,c)=>r(s).getInt16(c),put:(s,c,l)=>(r(s).setInt16(c,l),c+2)},e.INT16_LE={len:2,get:(s,c)=>r(s).getInt16(c,!0),put:(s,c,l)=>(r(s).setInt16(c,l,!0),c+2)},e.INT24_LE={len:3,get(s,c){const l=e.UINT24_LE.get(s,c);return l>8388607?l-16777216:l},put(s,c,l){const d=r(s);return d.setUint8(c,255&l),d.setUint16(c+1,l>>8,!0),c+3}},e.INT24_BE={len:3,get(s,c){const l=e.UINT24_BE.get(s,c);return l>8388607?l-16777216:l},put(s,c,l){const d=r(s);return d.setUint16(c,l>>8),d.setUint8(c+2,255&l),c+3}},e.INT32_BE={len:4,get:(s,c)=>r(s).getInt32(c),put:(s,c,l)=>(r(s).setInt32(c,l),c+4)},e.INT32_LE={len:4,get:(s,c)=>r(s).getInt32(c,!0),put:(s,c,l)=>(r(s).setInt32(c,l,!0),c+4)},e.UINT64_LE={len:8,get:(s,c)=>r(s).getBigUint64(c,!0),put:(s,c,l)=>(r(s).setBigUint64(c,l,!0),c+8)},e.INT64_LE={len:8,get:(s,c)=>r(s).getBigInt64(c,!0),put:(s,c,l)=>(r(s).setBigInt64(c,l,!0),c+8)},e.UINT64_BE={len:8,get:(s,c)=>r(s).getBigUint64(c),put:(s,c,l)=>(r(s).setBigUint64(c,l),c+8)},e.INT64_BE={len:8,get:(s,c)=>r(s).getBigInt64(c),put:(s,c,l)=>(r(s).setBigInt64(c,l),c+8)},e.Float16_BE={len:2,get(s,c){return o.read(s,c,!1,10,this.len)},put(s,c,l){return o.write(s,l,c,!1,10,this.len),c+this.len}},e.Float16_LE={len:2,get(s,c){return o.read(s,c,!0,10,this.len)},put(s,c,l){return o.write(s,l,c,!0,10,this.len),c+this.len}},e.Float32_BE={len:4,get:(s,c)=>r(s).getFloat32(c),put:(s,c,l)=>(r(s).setFloat32(c,l),c+4)},e.Float32_LE={len:4,get:(s,c)=>r(s).getFloat32(c,!0),put:(s,c,l)=>(r(s).setFloat32(c,l,!0),c+4)},e.Float64_BE={len:8,get:(s,c)=>r(s).getFloat64(c),put:(s,c,l)=>(r(s).setFloat64(c,l),c+8)},e.Float64_LE={len:8,get:(s,c)=>r(s).getFloat64(c,!0),put:(s,c,l)=>(r(s).setFloat64(c,l,!0),c+8)},e.Float80_BE={len:10,get(s,c){return o.read(s,c,!1,63,this.len)},put(s,c,l){return o.write(s,l,c,!1,63,this.len),c+this.len}},e.Float80_LE={len:10,get(s,c){return o.read(s,c,!0,63,this.len)},put(s,c,l){return o.write(s,l,c,!0,63,this.len),c+this.len}},e.IgnoreType=class{constructor(s){this.len=s}get(s,c){}},e.Uint8ArrayType=class{constructor(s){this.len=s}get(s,c){return s.subarray(c,c+this.len)}},e.BufferType=class{constructor(s){this.len=s}get(s,c){return s.slice(c,c+this.len)}},e.StringType=class{constructor(s,c){this.len=s,this.encoding=c}get(s,c){return Buffer.from(s).toString(this.encoding,c,c+this.len)}};class a{constructor(c){this.len=c}static decode(c,l,d){let u="";for(let f=l;f<d;++f)u+=a.codePointToString(a.singleByteDecoder(c[f]));return u}static inRange(c,l,d){return l<=c&&c<=d}static codePointToString(c){return c<=65535?String.fromCharCode(c):(c-=65536,String.fromCharCode(55296+(c>>10),56320+(1023&c)))}static singleByteDecoder(c){if(a.inRange(c,0,127))return c;const l=a.windows1252[c-128];if(l===null)throw Error("invaliding encoding");return l}get(c,l=0){return a.decode(c,l,l+this.len)}}e.AnsiStringType=a,a.windows1252=[8364,129,8218,402,8222,8230,8224,8225,710,8240,352,8249,338,141,381,143,144,8216,8217,8220,8221,8226,8211,8212,732,8482,353,8250,339,157,382,376,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255]})(i$1),t(i$1);var isEmail$1={exports:{}},assertString={exports:{}};(function(e,o){Object.defineProperty(o,"__esModule",{value:!0}),o.default=a;function r(s){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?r=function(l){return typeof l}:r=function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},r(s)}function a(s){var c=typeof s=="string"||s instanceof String;if(!c){var l=r(s);throw s===null?l="null":l==="object"&&(l=s.constructor.name),new TypeError("Expected a string but received a ".concat(l))}}e.exports=o.default,e.exports.default=o.default})(assertString,assertString.exports);var merge={exports:{}};(function(e,o){Object.defineProperty(o,"__esModule",{value:!0}),o.default=r;function r(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments.length>1?arguments[1]:void 0;for(var c in s)typeof a[c]>"u"&&(a[c]=s[c]);return a}e.exports=o.default,e.exports.default=o.default})(merge,merge.exports);var isByteLength={exports:{}};(function(e,o){Object.defineProperty(o,"__esModule",{value:!0}),o.default=c;var r=a(assertString.exports);function a(l){return l&&l.__esModule?l:{default:l}}function s(l){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?s=function(u){return typeof u}:s=function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},s(l)}function c(l,d){(0,r.default)(l);var u,f;s(d)==="object"?(u=d.min||0,f=d.max):(u=arguments[1],f=arguments[2]);var p=encodeURI(l).split(/%..|./).length-1;return p>=u&&(typeof f>"u"||p<=f)}e.exports=o.default,e.exports.default=o.default})(isByteLength,isByteLength.exports);var isFQDN={exports:{}};(function(e,o){Object.defineProperty(o,"__esModule",{value:!0}),o.default=l;var r=s(assertString.exports),a=s(merge.exports);function s(d){return d&&d.__esModule?d:{default:d}}var c={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1};function l(d,u){(0,r.default)(d),u=(0,a.default)(u,c),u.allow_trailing_dot&&d[d.length-1]==="."&&(d=d.substring(0,d.length-1)),u.allow_wildcard===!0&&d.indexOf("*.")===0&&(d=d.substring(2));var f=d.split("."),p=f[f.length-1];return u.require_tld&&(f.length<2||!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(p)||/\s/.test(p))||!u.allow_numeric_tld&&/^\d+$/.test(p)?!1:f.every(function(m){return!(m.length>63||!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(m)||/[\uff01-\uff5e]/.test(m)||/^-|-$/.test(m)||!u.allow_underscores&&/_/.test(m))})}e.exports=o.default,e.exports.default=o.default})(isFQDN,isFQDN.exports);var isIP={exports:{}};(function(e,o){Object.defineProperty(o,"__esModule",{value:!0}),o.default=f;var r=a(assertString.exports);function a(p){return p&&p.__esModule?p:{default:p}}var s="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",c="(".concat(s,"[.]){3}").concat(s),l=new RegExp("^".concat(c,"$")),d="(?:[0-9a-fA-F]{1,4})",u=new RegExp("^("+"(?:".concat(d,":){7}(?:").concat(d,"|:)|")+"(?:".concat(d,":){6}(?:").concat(c,"|:").concat(d,"|:)|")+"(?:".concat(d,":){5}(?::").concat(c,"|(:").concat(d,"){1,2}|:)|")+"(?:".concat(d,":){4}(?:(:").concat(d,"){0,1}:").concat(c,"|(:").concat(d,"){1,3}|:)|")+"(?:".concat(d,":){3}(?:(:").concat(d,"){0,2}:").concat(c,"|(:").concat(d,"){1,4}|:)|")+"(?:".concat(d,":){2}(?:(:").concat(d,"){0,3}:").concat(c,"|(:").concat(d,"){1,5}|:)|")+"(?:".concat(d,":){1}(?:(:").concat(d,"){0,4}:").concat(c,"|(:").concat(d,"){1,6}|:)|")+"(?::((?::".concat(d,"){0,5}:").concat(c,"|(?::").concat(d,"){1,7}|:))")+")(%[0-9a-zA-Z-.:]{1,})?$");function f(p){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";if((0,r.default)(p),m=String(m),!m)return f(p,4)||f(p,6);if(m==="4"){if(!l.test(p))return!1;var I=p.split(".").sort(function(h,v){return h-v});return I[3]<=255}return m==="6"?!!u.test(p):!1}e.exports=o.default,e.exports.default=o.default})(isIP,isIP.exports),function(e,o){Object.defineProperty(o,"__esModule",{value:!0}),o.default=y;var r=d(assertString.exports),a=d(merge.exports),s=d(isByteLength.exports),c=d(isFQDN.exports),l=d(isIP.exports);function d(g){return g&&g.__esModule?g:{default:g}}var u={allow_display_name:!1,require_display_name:!1,allow_utf8_local_part:!0,require_tld:!0,blacklisted_chars:"",ignore_max_length:!1,host_blacklist:[]},f=/^([^\x00-\x1F\x7F-\x9F\cX]+)</i,p=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i,m=/^[a-z\d]+$/,I=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i,h=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i,v=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*$/i,C=254;function b(g){var O=g.replace(/^"(.+)"$/,"$1");if(!O.trim())return!1;var w=/[\.";<>]/.test(O);if(w){if(O===g)return!1;var _=O.split('"').length===O.split('\\"').length;if(!_)return!1}return!0}function y(g,O){if((0,r.default)(g),O=(0,a.default)(O,u),O.require_display_name||O.allow_display_name){var w=g.match(f);if(w){var _=w[1];if(g=g.replace(_,"").replace(/(^<|>$)/g,""),_.endsWith(" ")&&(_=_.substr(0,_.length-1)),!b(_))return!1}else if(O.require_display_name)return!1}if(!O.ignore_max_length&&g.length>C)return!1;var F=g.split("@"),L=F.pop(),E=L.toLowerCase();if(O.host_blacklist.includes(E))return!1;var P=F.join("@");if(O.domain_specific_validation&&(E==="gmail.com"||E==="googlemail.com")){P=P.toLowerCase();var A=P.split("+")[0];if(!(0,s.default)(A.replace(/\./g,""),{min:6,max:30}))return!1;for(var W=A.split("."),J=0;J<W.length;J++)if(!m.test(W[J]))return!1}if(O.ignore_max_length===!1&&(!(0,s.default)(P,{max:64})||!(0,s.default)(L,{max:254})))return!1;if(!(0,c.default)(L,{require_tld:O.require_tld})){if(!O.allow_ip_domain)return!1;if(!(0,l.default)(L)){if(!L.startsWith("[")||!L.endsWith("]"))return!1;var Y=L.substr(1,L.length-2);if(Y.length===0||!(0,l.default)(Y))return!1}}if(P[0]==='"')return P=P.slice(1,P.length-1),O.allow_utf8_local_part?v.test(P):I.test(P);for(var z=O.allow_utf8_local_part?h:p,Q=P.split("."),oe=0;oe<Q.length;oe++)if(!z.test(Q[oe]))return!1;return!(O.blacklisted_chars&&P.search(new RegExp("[".concat(O.blacklisted_chars,"]+"),"g"))!==-1)}e.exports=o.default,e.exports.default=o.default}(isEmail$1,isEmail$1.exports);const isEmail=getDefaultExportFromCjs(isEmail$1.exports);var isURL$1={exports:{}};(function(e,o){Object.defineProperty(o,"__esModule",{value:!0}),o.default=y;var r=l(assertString.exports),a=l(isFQDN.exports),s=l(isIP.exports),c=l(merge.exports);function l(g){return g&&g.__esModule?g:{default:g}}function d(g,O){return I(g)||m(g,O)||f(g,O)||u()}function u(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
129
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function f(
|
|
128
|
+
hooks.version="2.29.4",setHookCallback(createLocal),hooks.fn=proto,hooks.min=min,hooks.max=max,hooks.now=now,hooks.utc=createUTC,hooks.unix=createUnix,hooks.months=listMonths,hooks.isDate=isDate,hooks.locale=getSetGlobalLocale,hooks.invalid=createInvalid,hooks.duration=createDuration,hooks.isMoment=isMoment,hooks.weekdays=listWeekdays,hooks.parseZone=createInZone,hooks.localeData=getLocale,hooks.isDuration=isDuration,hooks.monthsShort=listMonthsShort,hooks.weekdaysMin=listWeekdaysMin,hooks.defineLocale=defineLocale,hooks.updateLocale=updateLocale,hooks.locales=listLocales,hooks.weekdaysShort=listWeekdaysShort,hooks.normalizeUnits=normalizeUnits,hooks.relativeTimeRounding=getSetRelativeTimeRounding,hooks.relativeTimeThreshold=getSetRelativeTimeThreshold,hooks.calendarFormat=getCalendarFormat,hooks.prototype=proto,hooks.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var i$1={},n={read:function(e,o,r,a,s){var c,l,d=8*s-a-1,u=(1<<d)-1,f=u>>1,p=-7,m=r?s-1:0,I=r?-1:1,h=e[o+m];for(m+=I,c=h&(1<<-p)-1,h>>=-p,p+=d;p>0;c=256*c+e[o+m],m+=I,p-=8);for(l=c&(1<<-p)-1,c>>=-p,p+=a;p>0;l=256*l+e[o+m],m+=I,p-=8);if(c===0)c=1-f;else{if(c===u)return l?NaN:1/0*(h?-1:1);l+=Math.pow(2,a),c-=f}return(h?-1:1)*l*Math.pow(2,c-a)},write:function(e,o,r,a,s,c){var l,d,u,f=8*c-s-1,p=(1<<f)-1,m=p>>1,I=s===23?Math.pow(2,-24)-Math.pow(2,-77):0,h=a?0:c-1,g=a?1:-1,C=o<0||o===0&&1/o<0?1:0;for(o=Math.abs(o),isNaN(o)||o===1/0?(d=isNaN(o)?1:0,l=p):(l=Math.floor(Math.log(o)/Math.LN2),o*(u=Math.pow(2,-l))<1&&(l--,u*=2),(o+=l+m>=1?I/u:I*Math.pow(2,1-m))*u>=2&&(l++,u/=2),l+m>=p?(d=0,l=p):l+m>=1?(d=(o*u-1)*Math.pow(2,s),l+=m):(d=o*Math.pow(2,m-1)*Math.pow(2,s),l=0));s>=8;e[r+h]=255&d,h+=g,d/=256,s-=8);for(l=l<<s|d,f+=s;f>0;e[r+h]=255&l,h+=g,l/=256,f-=8);e[r+h-g]|=128*C}};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.AnsiStringType=e.StringType=e.BufferType=e.Uint8ArrayType=e.IgnoreType=e.Float80_LE=e.Float80_BE=e.Float64_LE=e.Float64_BE=e.Float32_LE=e.Float32_BE=e.Float16_LE=e.Float16_BE=e.INT64_BE=e.UINT64_BE=e.INT64_LE=e.UINT64_LE=e.INT32_LE=e.INT32_BE=e.INT24_BE=e.INT24_LE=e.INT16_LE=e.INT16_BE=e.INT8=e.UINT32_BE=e.UINT32_LE=e.UINT24_BE=e.UINT24_LE=e.UINT16_BE=e.UINT16_LE=e.UINT8=void 0;const o=n;function r(s){return new DataView(s.buffer,s.byteOffset)}e.UINT8={len:1,get:(s,c)=>r(s).getUint8(c),put:(s,c,l)=>(r(s).setUint8(c,l),c+1)},e.UINT16_LE={len:2,get:(s,c)=>r(s).getUint16(c,!0),put:(s,c,l)=>(r(s).setUint16(c,l,!0),c+2)},e.UINT16_BE={len:2,get:(s,c)=>r(s).getUint16(c),put:(s,c,l)=>(r(s).setUint16(c,l),c+2)},e.UINT24_LE={len:3,get(s,c){const l=r(s);return l.getUint8(c)+(l.getUint16(c+1,!0)<<8)},put(s,c,l){const d=r(s);return d.setUint8(c,255&l),d.setUint16(c+1,l>>8,!0),c+3}},e.UINT24_BE={len:3,get(s,c){const l=r(s);return(l.getUint16(c)<<8)+l.getUint8(c+2)},put(s,c,l){const d=r(s);return d.setUint16(c,l>>8),d.setUint8(c+2,255&l),c+3}},e.UINT32_LE={len:4,get:(s,c)=>r(s).getUint32(c,!0),put:(s,c,l)=>(r(s).setUint32(c,l,!0),c+4)},e.UINT32_BE={len:4,get:(s,c)=>r(s).getUint32(c),put:(s,c,l)=>(r(s).setUint32(c,l),c+4)},e.INT8={len:1,get:(s,c)=>r(s).getInt8(c),put:(s,c,l)=>(r(s).setInt8(c,l),c+2)},e.INT16_BE={len:2,get:(s,c)=>r(s).getInt16(c),put:(s,c,l)=>(r(s).setInt16(c,l),c+2)},e.INT16_LE={len:2,get:(s,c)=>r(s).getInt16(c,!0),put:(s,c,l)=>(r(s).setInt16(c,l,!0),c+2)},e.INT24_LE={len:3,get(s,c){const l=e.UINT24_LE.get(s,c);return l>8388607?l-16777216:l},put(s,c,l){const d=r(s);return d.setUint8(c,255&l),d.setUint16(c+1,l>>8,!0),c+3}},e.INT24_BE={len:3,get(s,c){const l=e.UINT24_BE.get(s,c);return l>8388607?l-16777216:l},put(s,c,l){const d=r(s);return d.setUint16(c,l>>8),d.setUint8(c+2,255&l),c+3}},e.INT32_BE={len:4,get:(s,c)=>r(s).getInt32(c),put:(s,c,l)=>(r(s).setInt32(c,l),c+4)},e.INT32_LE={len:4,get:(s,c)=>r(s).getInt32(c,!0),put:(s,c,l)=>(r(s).setInt32(c,l,!0),c+4)},e.UINT64_LE={len:8,get:(s,c)=>r(s).getBigUint64(c,!0),put:(s,c,l)=>(r(s).setBigUint64(c,l,!0),c+8)},e.INT64_LE={len:8,get:(s,c)=>r(s).getBigInt64(c,!0),put:(s,c,l)=>(r(s).setBigInt64(c,l,!0),c+8)},e.UINT64_BE={len:8,get:(s,c)=>r(s).getBigUint64(c),put:(s,c,l)=>(r(s).setBigUint64(c,l),c+8)},e.INT64_BE={len:8,get:(s,c)=>r(s).getBigInt64(c),put:(s,c,l)=>(r(s).setBigInt64(c,l),c+8)},e.Float16_BE={len:2,get(s,c){return o.read(s,c,!1,10,this.len)},put(s,c,l){return o.write(s,l,c,!1,10,this.len),c+this.len}},e.Float16_LE={len:2,get(s,c){return o.read(s,c,!0,10,this.len)},put(s,c,l){return o.write(s,l,c,!0,10,this.len),c+this.len}},e.Float32_BE={len:4,get:(s,c)=>r(s).getFloat32(c),put:(s,c,l)=>(r(s).setFloat32(c,l),c+4)},e.Float32_LE={len:4,get:(s,c)=>r(s).getFloat32(c,!0),put:(s,c,l)=>(r(s).setFloat32(c,l,!0),c+4)},e.Float64_BE={len:8,get:(s,c)=>r(s).getFloat64(c),put:(s,c,l)=>(r(s).setFloat64(c,l),c+8)},e.Float64_LE={len:8,get:(s,c)=>r(s).getFloat64(c,!0),put:(s,c,l)=>(r(s).setFloat64(c,l,!0),c+8)},e.Float80_BE={len:10,get(s,c){return o.read(s,c,!1,63,this.len)},put(s,c,l){return o.write(s,l,c,!1,63,this.len),c+this.len}},e.Float80_LE={len:10,get(s,c){return o.read(s,c,!0,63,this.len)},put(s,c,l){return o.write(s,l,c,!0,63,this.len),c+this.len}},e.IgnoreType=class{constructor(s){this.len=s}get(s,c){}},e.Uint8ArrayType=class{constructor(s){this.len=s}get(s,c){return s.subarray(c,c+this.len)}},e.BufferType=class{constructor(s){this.len=s}get(s,c){return s.slice(c,c+this.len)}},e.StringType=class{constructor(s,c){this.len=s,this.encoding=c}get(s,c){return Buffer.from(s).toString(this.encoding,c,c+this.len)}};class a{constructor(c){this.len=c}static decode(c,l,d){let u="";for(let f=l;f<d;++f)u+=a.codePointToString(a.singleByteDecoder(c[f]));return u}static inRange(c,l,d){return l<=c&&c<=d}static codePointToString(c){return c<=65535?String.fromCharCode(c):(c-=65536,String.fromCharCode(55296+(c>>10),56320+(1023&c)))}static singleByteDecoder(c){if(a.inRange(c,0,127))return c;const l=a.windows1252[c-128];if(l===null)throw Error("invaliding encoding");return l}get(c,l=0){return a.decode(c,l,l+this.len)}}e.AnsiStringType=a,a.windows1252=[8364,129,8218,402,8222,8230,8224,8225,710,8240,352,8249,338,141,381,143,144,8216,8217,8220,8221,8226,8211,8212,732,8482,353,8250,339,157,382,376,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255]})(i$1),t(i$1);var isEmail$1={exports:{}},assertString={exports:{}};(function(e,o){Object.defineProperty(o,"__esModule",{value:!0}),o.default=a;function r(s){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?r=function(l){return typeof l}:r=function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},r(s)}function a(s){var c=typeof s=="string"||s instanceof String;if(!c){var l=r(s);throw s===null?l="null":l==="object"&&(l=s.constructor.name),new TypeError("Expected a string but received a ".concat(l))}}e.exports=o.default,e.exports.default=o.default})(assertString,assertString.exports);var merge={exports:{}};(function(e,o){Object.defineProperty(o,"__esModule",{value:!0}),o.default=r;function r(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments.length>1?arguments[1]:void 0;for(var c in s)typeof a[c]>"u"&&(a[c]=s[c]);return a}e.exports=o.default,e.exports.default=o.default})(merge,merge.exports);var isByteLength={exports:{}};(function(e,o){Object.defineProperty(o,"__esModule",{value:!0}),o.default=c;var r=a(assertString.exports);function a(l){return l&&l.__esModule?l:{default:l}}function s(l){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?s=function(u){return typeof u}:s=function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},s(l)}function c(l,d){(0,r.default)(l);var u,f;s(d)==="object"?(u=d.min||0,f=d.max):(u=arguments[1],f=arguments[2]);var p=encodeURI(l).split(/%..|./).length-1;return p>=u&&(typeof f>"u"||p<=f)}e.exports=o.default,e.exports.default=o.default})(isByteLength,isByteLength.exports);var isFQDN={exports:{}};(function(e,o){Object.defineProperty(o,"__esModule",{value:!0}),o.default=l;var r=s(assertString.exports),a=s(merge.exports);function s(d){return d&&d.__esModule?d:{default:d}}var c={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1};function l(d,u){(0,r.default)(d),u=(0,a.default)(u,c),u.allow_trailing_dot&&d[d.length-1]==="."&&(d=d.substring(0,d.length-1)),u.allow_wildcard===!0&&d.indexOf("*.")===0&&(d=d.substring(2));var f=d.split("."),p=f[f.length-1];return u.require_tld&&(f.length<2||!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(p)||/\s/.test(p))||!u.allow_numeric_tld&&/^\d+$/.test(p)?!1:f.every(function(m){return!(m.length>63||!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(m)||/[\uff01-\uff5e]/.test(m)||/^-|-$/.test(m)||!u.allow_underscores&&/_/.test(m))})}e.exports=o.default,e.exports.default=o.default})(isFQDN,isFQDN.exports);var isIP={exports:{}};(function(e,o){Object.defineProperty(o,"__esModule",{value:!0}),o.default=f;var r=a(assertString.exports);function a(p){return p&&p.__esModule?p:{default:p}}var s="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",c="(".concat(s,"[.]){3}").concat(s),l=new RegExp("^".concat(c,"$")),d="(?:[0-9a-fA-F]{1,4})",u=new RegExp("^("+"(?:".concat(d,":){7}(?:").concat(d,"|:)|")+"(?:".concat(d,":){6}(?:").concat(c,"|:").concat(d,"|:)|")+"(?:".concat(d,":){5}(?::").concat(c,"|(:").concat(d,"){1,2}|:)|")+"(?:".concat(d,":){4}(?:(:").concat(d,"){0,1}:").concat(c,"|(:").concat(d,"){1,3}|:)|")+"(?:".concat(d,":){3}(?:(:").concat(d,"){0,2}:").concat(c,"|(:").concat(d,"){1,4}|:)|")+"(?:".concat(d,":){2}(?:(:").concat(d,"){0,3}:").concat(c,"|(:").concat(d,"){1,5}|:)|")+"(?:".concat(d,":){1}(?:(:").concat(d,"){0,4}:").concat(c,"|(:").concat(d,"){1,6}|:)|")+"(?::((?::".concat(d,"){0,5}:").concat(c,"|(?::").concat(d,"){1,7}|:))")+")(%[0-9a-zA-Z-.:]{1,})?$");function f(p){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";if((0,r.default)(p),m=String(m),!m)return f(p,4)||f(p,6);if(m==="4"){if(!l.test(p))return!1;var I=p.split(".").sort(function(h,g){return h-g});return I[3]<=255}return m==="6"?!!u.test(p):!1}e.exports=o.default,e.exports.default=o.default})(isIP,isIP.exports),function(e,o){Object.defineProperty(o,"__esModule",{value:!0}),o.default=y;var r=d(assertString.exports),a=d(merge.exports),s=d(isByteLength.exports),c=d(isFQDN.exports),l=d(isIP.exports);function d(v){return v&&v.__esModule?v:{default:v}}var u={allow_display_name:!1,require_display_name:!1,allow_utf8_local_part:!0,require_tld:!0,blacklisted_chars:"",ignore_max_length:!1,host_blacklist:[]},f=/^([^\x00-\x1F\x7F-\x9F\cX]+)</i,p=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i,m=/^[a-z\d]+$/,I=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i,h=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i,g=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*$/i,C=254;function b(v){var O=v.replace(/^"(.+)"$/,"$1");if(!O.trim())return!1;var w=/[\.";<>]/.test(O);if(w){if(O===v)return!1;var _=O.split('"').length===O.split('\\"').length;if(!_)return!1}return!0}function y(v,O){if((0,r.default)(v),O=(0,a.default)(O,u),O.require_display_name||O.allow_display_name){var w=v.match(f);if(w){var _=w[1];if(v=v.replace(_,"").replace(/(^<|>$)/g,""),_.endsWith(" ")&&(_=_.substr(0,_.length-1)),!b(_))return!1}else if(O.require_display_name)return!1}if(!O.ignore_max_length&&v.length>C)return!1;var F=v.split("@"),L=F.pop(),E=L.toLowerCase();if(O.host_blacklist.includes(E))return!1;var P=F.join("@");if(O.domain_specific_validation&&(E==="gmail.com"||E==="googlemail.com")){P=P.toLowerCase();var A=P.split("+")[0];if(!(0,s.default)(A.replace(/\./g,""),{min:6,max:30}))return!1;for(var W=A.split("."),J=0;J<W.length;J++)if(!m.test(W[J]))return!1}if(O.ignore_max_length===!1&&(!(0,s.default)(P,{max:64})||!(0,s.default)(L,{max:254})))return!1;if(!(0,c.default)(L,{require_tld:O.require_tld})){if(!O.allow_ip_domain)return!1;if(!(0,l.default)(L)){if(!L.startsWith("[")||!L.endsWith("]"))return!1;var z=L.substr(1,L.length-2);if(z.length===0||!(0,l.default)(z))return!1}}if(P[0]==='"')return P=P.slice(1,P.length-1),O.allow_utf8_local_part?g.test(P):I.test(P);for(var Y=O.allow_utf8_local_part?h:p,Q=P.split("."),oe=0;oe<Q.length;oe++)if(!Y.test(Q[oe]))return!1;return!(O.blacklisted_chars&&P.search(new RegExp("[".concat(O.blacklisted_chars,"]+"),"g"))!==-1)}e.exports=o.default,e.exports.default=o.default}(isEmail$1,isEmail$1.exports);const isEmail=getDefaultExportFromCjs(isEmail$1.exports);var isURL$1={exports:{}};(function(e,o){Object.defineProperty(o,"__esModule",{value:!0}),o.default=y;var r=l(assertString.exports),a=l(isFQDN.exports),s=l(isIP.exports),c=l(merge.exports);function l(v){return v&&v.__esModule?v:{default:v}}function d(v,O){return I(v)||m(v,O)||f(v,O)||u()}function u(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
129
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function f(v,O){if(!!v){if(typeof v=="string")return p(v,O);var w=Object.prototype.toString.call(v).slice(8,-1);if(w==="Object"&&v.constructor&&(w=v.constructor.name),w==="Map"||w==="Set")return Array.from(v);if(w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return p(v,O)}}function p(v,O){(O==null||O>v.length)&&(O=v.length);for(var w=0,_=new Array(O);w<O;w++)_[w]=v[w];return _}function m(v,O){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(v)))){var w=[],_=!0,F=!1,L=void 0;try{for(var E=v[Symbol.iterator](),P;!(_=(P=E.next()).done)&&(w.push(P.value),!(O&&w.length===O));_=!0);}catch(A){F=!0,L=A}finally{try{!_&&E.return!=null&&E.return()}finally{if(F)throw L}}return w}}function I(v){if(Array.isArray(v))return v}var h={protocols:["http","https","ftp"],require_tld:!0,require_protocol:!1,require_host:!0,require_port:!1,require_valid_protocol:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_protocol_relative_urls:!1,allow_fragments:!0,allow_query_components:!0,validate_length:!0},g=/^\[([^\]]+)\](?::([0-9]+))?$/;function C(v){return Object.prototype.toString.call(v)==="[object RegExp]"}function b(v,O){for(var w=0;w<O.length;w++){var _=O[w];if(v===_||C(_)&&_.test(v))return!0}return!1}function y(v,O){if((0,r.default)(v),!v||/[\s<>]/.test(v)||v.indexOf("mailto:")===0||(O=(0,c.default)(O,h),O.validate_length&&v.length>=2083)||!O.allow_fragments&&v.includes("#")||!O.allow_query_components&&(v.includes("?")||v.includes("&")))return!1;var w,_,F,L,E,P,A,W;if(A=v.split("#"),v=A.shift(),A=v.split("?"),v=A.shift(),A=v.split("://"),A.length>1){if(w=A.shift().toLowerCase(),O.require_valid_protocol&&O.protocols.indexOf(w)===-1)return!1}else{if(O.require_protocol)return!1;if(v.substr(0,2)==="//"){if(!O.allow_protocol_relative_urls)return!1;A[0]=v.substr(2)}}if(v=A.join("://"),v==="")return!1;if(A=v.split("/"),v=A.shift(),v===""&&!O.require_host)return!0;if(A=v.split("@"),A.length>1){if(O.disallow_auth||A[0]===""||(_=A.shift(),_.indexOf(":")>=0&&_.split(":").length>2))return!1;var J=_.split(":"),z=d(J,2),Y=z[0],Q=z[1];if(Y===""&&Q==="")return!1}L=A.join("@"),P=null,W=null;var oe=L.match(g);if(oe?(F="",W=oe[1],P=oe[2]||null):(A=L.split(":"),F=A.shift(),A.length&&(P=A.join(":"))),P!==null&&P.length>0){if(E=parseInt(P,10),!/^[0-9]+$/.test(P)||E<=0||E>65535)return!1}else if(O.require_port)return!1;return O.host_whitelist?b(F,O.host_whitelist):!(!(0,s.default)(F)&&!(0,a.default)(F,O)&&(!W||!(0,s.default)(W,6))||(F=F||W,O.host_blacklist&&b(F,O.host_blacklist)))}e.exports=o.default,e.exports.default=o.default})(isURL$1,isURL$1.exports);const isURL=getDefaultExportFromCjs(isURL$1.exports),rt=React.createContext({});function ke(e,o,r){return o in e?Object.defineProperty(e,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[o]=r,e}function qe(e,o){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);o&&(a=a.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,a)}return r}function x(e){for(var o=1;o<arguments.length;o++){var r=arguments[o]!=null?arguments[o]:{};o%2?qe(Object(r),!0).forEach(function(a){ke(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qe(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function He(e,o){(o==null||o>e.length)&&(o=e.length);for(var r=0,a=new Array(o);r<o;r++)a[r]=e[r];return a}function nt(e,o){return function(r){if(Array.isArray(r))return r}(e)||function(r,a){var s=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var c,l,d=[],u=!0,f=!1;try{for(s=s.call(r);!(u=(c=s.next()).done)&&(d.push(c.value),!a||d.length!==a);u=!0);}catch(p){f=!0,l=p}finally{try{u||s.return==null||s.return()}finally{if(f)throw l}}return d}}(e,o)||function(r,a){if(r){if(typeof r=="string")return He(r,a);var s=Object.prototype.toString.call(r).slice(8,-1);return s==="Object"&&r.constructor&&(s=r.constructor.name),s==="Map"||s==="Set"?Array.from(r):s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?He(r,a):void 0}}(e,o)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
130
130
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function at(e,o){if(e==null)return{};var r,a,s=function(l,d){if(l==null)return{};var u,f,p={},m=Object.keys(l);for(f=0;f<m.length;f++)u=m[f],d.indexOf(u)>=0||(p[u]=l[u]);return p}(e,o);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(a=0;a<c.length;a++)r=c[a],o.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(s[r]=e[r])}return s}var fe,ot={exports:{}};/*!
|
|
131
131
|
Copyright (c) 2018 Jed Watson.
|
|
132
132
|
Licensed under the MIT License (MIT), see
|
|
133
133
|
http://jedwatson.github.io/classnames
|
|
134
|
-
*/fe=ot,function(){var e={}.hasOwnProperty;function o(){for(var r=[],a=0;a<arguments.length;a++){var s=arguments[a];if(s){var c=typeof s;if(c==="string"||c==="number")r.push(s);else if(Array.isArray(s)){if(s.length){var l=o.apply(null,s);l&&r.push(l)}}else if(c==="object")if(s.toString===Object.prototype.toString)for(var d in s)e.call(s,d)&&s[d]&&r.push(d);else r.push(s.toString())}}return r.join(" ")}fe.exports?(o.default=o,fe.exports=o):window.classNames=o}();const Xt=ot.exports;function se(e){return se=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},se(e)}function D(e,o){(function(a){return typeof a=="string"&&a.indexOf(".")!==-1&&parseFloat(a)===1})(e)&&(e="100%");var r=function(a){return typeof a=="string"&&a.indexOf("%")!==-1}(e);return e=o===360?e:Math.min(o,Math.max(0,parseFloat(e))),r&&(e=parseInt(String(e*o),10)/100),Math.abs(e-o)<1e-6?1:e=o===360?(e<0?e%o+o:e%o)/parseFloat(String(o)):e%o/parseFloat(String(o))}function ne(e){return e<=1?100*Number(e)+"%":e}function me(e){return e.length===1?"0"+e:String(e)}function he(e,o,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*r*(o-e):r<.5?o:r<2/3?e+(o-e)*(2/3-r)*6:e}function Pe(e){return T(e)/255}function T(e){return parseInt(e,16)}var _e={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function K(e){var o,r,a,s={r:0,g:0,b:0},c=1,l=null,d=null,u=null,f=!1,p=!1;return typeof e=="string"&&(e=function(m){if((m=m.trim().toLowerCase()).length===0)return!1;var I=!1;if(_e[m])m=_e[m],I=!0;else if(m==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var h=B.rgb.exec(m);return h?{r:h[1],g:h[2],b:h[3]}:(h=B.rgba.exec(m))?{r:h[1],g:h[2],b:h[3],a:h[4]}:(h=B.hsl.exec(m))?{h:h[1],s:h[2],l:h[3]}:(h=B.hsla.exec(m))?{h:h[1],s:h[2],l:h[3],a:h[4]}:(h=B.hsv.exec(m))?{h:h[1],s:h[2],v:h[3]}:(h=B.hsva.exec(m))?{h:h[1],s:h[2],v:h[3],a:h[4]}:(h=B.hex8.exec(m))?{r:T(h[1]),g:T(h[2]),b:T(h[3]),a:Pe(h[4]),format:I?"name":"hex8"}:(h=B.hex6.exec(m))?{r:T(h[1]),g:T(h[2]),b:T(h[3]),format:I?"name":"hex"}:(h=B.hex4.exec(m))?{r:T(h[1]+h[1]),g:T(h[2]+h[2]),b:T(h[3]+h[3]),a:Pe(h[4]+h[4]),format:I?"name":"hex8"}:(h=B.hex3.exec(m))?{r:T(h[1]+h[1]),g:T(h[2]+h[2]),b:T(h[3]+h[3]),format:I?"name":"hex"}:!1}(e)),typeof e=="object"&&(H(e.r)&&H(e.g)&&H(e.b)?(o=e.r,r=e.g,a=e.b,s={r:255*D(o,255),g:255*D(r,255),b:255*D(a,255)},f=!0,p=String(e.r).substr(-1)==="%"?"prgb":"rgb"):H(e.h)&&H(e.s)&&H(e.v)?(l=ne(e.s),d=ne(e.v),s=function(m,I,h){m=6*D(m,360),I=D(I,100),h=D(h,100);var v=Math.floor(m),C=m-v,b=h*(1-I),y=h*(1-C*I),g=h*(1-(1-C)*I),O=v%6;return{r:255*[h,y,b,b,g,h][O],g:255*[g,h,h,y,b,b][O],b:255*[b,b,g,h,h,y][O]}}(e.h,l,d),f=!0,p="hsv"):H(e.h)&&H(e.s)&&H(e.l)&&(l=ne(e.s),u=ne(e.l),s=function(m,I,h){var v,C,b;if(m=D(m,360),I=D(I,100),h=D(h,100),I===0)C=h,b=h,v=h;else{var y=h<.5?h*(1+I):h+I-h*I,g=2*h-y;v=he(g,y,m+1/3),C=he(g,y,m),b=he(g,y,m-1/3)}return{r:255*v,g:255*C,b:255*b}}(e.h,l,u),f=!0,p="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(c=e.a)),c=function(m){return m=parseFloat(m),(isNaN(m)||m<0||m>1)&&(m=1),m}(c),{ok:f,format:e.format||p,r:Math.min(255,Math.max(s.r,0)),g:Math.min(255,Math.max(s.g,0)),b:Math.min(255,Math.max(s.b,0)),a:c}}var V="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)",ge="[\\s|\\(]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",pe="[\\s|\\(]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",B={CSS_UNIT:new RegExp(V),rgb:new RegExp("rgb"+ge),rgba:new RegExp("rgba"+pe),hsl:new RegExp("hsl"+ge),hsla:new RegExp("hsla"+pe),hsv:new RegExp("hsv"+ge),hsva:new RegExp("hsva"+pe),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function H(e){return Boolean(B.CSS_UNIT.exec(String(e)))}var Zt=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function Ve(e){var o=function(r,a,s){r=D(r,255),a=D(a,255),s=D(s,255);var c=Math.max(r,a,s),l=Math.min(r,a,s),d=0,u=c,f=c-l,p=c===0?0:f/c;if(c===l)d=0;else{switch(c){case r:d=(a-s)/f+(a<s?6:0);break;case a:d=(s-r)/f+2;break;case s:d=(r-a)/f+4}d/=6}return{h:d,s:p,v:u}}(e.r,e.g,e.b);return{h:360*o.h,s:o.s,v:o.v}}function ae(e){var o=e.r,r=e.g,a=e.b;return"#".concat(function(s,c,l,d){var u=[me(Math.round(s).toString(16)),me(Math.round(c).toString(16)),me(Math.round(l).toString(16))];return d&&u[0].startsWith(u[0].charAt(1))&&u[1].startsWith(u[1].charAt(1))&&u[2].startsWith(u[2].charAt(1))?u[0].charAt(0)+u[1].charAt(0)+u[2].charAt(0):u.join("")}(o,r,a,!1))}function er(e,o,r){var a=r/100;return{r:(o.r-e.r)*a+e.r,g:(o.g-e.g)*a+e.g,b:(o.b-e.b)*a+e.b}}function Ye(e,o,r){var a;return(a=Math.round(e.h)>=60&&Math.round(e.h)<=240?r?Math.round(e.h)-2*o:Math.round(e.h)+2*o:r?Math.round(e.h)+2*o:Math.round(e.h)-2*o)<0?a+=360:a>=360&&(a-=360),a}function ze(e,o,r){return e.h===0&&e.s===0?e.s:((a=r?e.s-.16*o:o===4?e.s+.16:e.s+.05*o)>1&&(a=1),r&&o===5&&a>.1&&(a=.1),a<.06&&(a=.06),Number(a.toFixed(2)));var a}function Ue(e,o,r){var a;return(a=r?e.v+.05*o:e.v-.15*o)>1&&(a=1),Number(a.toFixed(2))}function Se(e){for(var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],a=K(e),s=5;s>0;s-=1){var c=Ve(a),l=ae(K({h:Ye(c,s,!0),s:ze(c,s,!0),v:Ue(c,s,!0)}));r.push(l)}r.push(ae(a));for(var d=1;d<=4;d+=1){var u=Ve(a),f=ae(K({h:Ye(u,d),s:ze(u,d),v:Ue(u,d)}));r.push(f)}return o.theme==="dark"?Zt.map(function(p){var m=p.index,I=p.opacity;return ae(er(K(o.backgroundColor||"#141414"),K(r[m]),100*I))}):r}var ve={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},ye={},be={};Object.keys(ve).forEach(function(e){ye[e]=Se(ve[e]),ye[e].primary=ye[e][5],be[e]=Se(ve[e],{theme:"dark",backgroundColor:"#141414"}),be[e].primary=be[e][5]});var $e={};function tr(e,o){process.env.NODE_ENV==="production"||e||console===void 0||console.error("Warning: ".concat(o))}function rr(e,o){(function(r,a,s){a||$e[s]||(r(!1,s),$e[s]=!0)})(tr,e,o)}function nr(){return!(typeof window>"u"||!window.document||!window.document.createElement)}var Ee=new Map;function it(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=e.mark;return o?o.startsWith("data-")?o:"data-".concat(o):"rc-util-key"}function De(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function ar(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function lt(e){return Array.from((Ee.get(e)||e).children).filter(function(o){return o.tagName==="STYLE"})}function st(e){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!nr())return null;var r=o.csp,a=o.prepend,s=document.createElement("style");s.setAttribute("data-rc-order",ar(a)),r!=null&&r.nonce&&(s.nonce=r==null?void 0:r.nonce),s.innerHTML=e;var c=De(o),l=c.firstChild;if(a){if(a==="queue"){var d=lt(c).filter(function(u){return["prepend","prependQueue"].includes(u.getAttribute("data-rc-order"))});if(d.length)return c.insertBefore(s,d[d.length-1].nextSibling),s}c.insertBefore(s,l)}else c.appendChild(s);return s}function or(e){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=De(o);return lt(r).find(function(a){return a.getAttribute(it(o))===e})}function ir(e,o){var r=Ee.get(e);if(!r||!function(c,l){if(!c)return!1;if(c.contains)return c.contains(l);for(var d=l;d;){if(d===c)return!0;d=d.parentNode}return!1}(document,r)){var a=st("",o),s=a.parentNode;Ee.set(e,s),s.removeChild(a)}}function lr(e,o){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=De(r);ir(a,r);var s=or(o,r);if(s){var c,l,d;return((c=r.csp)===null||c===void 0?void 0:c.nonce)&&s.nonce!==((l=r.csp)===null||l===void 0?void 0:l.nonce)&&(s.nonce=(d=r.csp)===null||d===void 0?void 0:d.nonce),s.innerHTML!==e&&(s.innerHTML=e),s}var u=st(e,r);return u.setAttribute(it(r),o),u}function We(e){return se(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(se(e.icon)==="object"||typeof e.icon=="function")}function Ke(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(o,r){var a=e[r];return r==="class"?(o.className=a,delete o.class):o[r]=a,o},{})}function Ae(e,o,r){return r?React__default.default.createElement(e.tag,x(x({key:o},Ke(e.attrs)),r),(e.children||[]).map(function(a,s){return Ae(a,"".concat(o,"-").concat(e.tag,"-").concat(s))})):React__default.default.createElement(e.tag,x({key:o},Ke(e.attrs)),(e.children||[]).map(function(a,s){return Ae(a,"".concat(o,"-").concat(e.tag,"-").concat(s))}))}function ct(e){return Se(e)[0]}function dt(e){return e?Array.isArray(e)?e:[e]:[]}var sr=`
|
|
134
|
+
*/fe=ot,function(){var e={}.hasOwnProperty;function o(){for(var r=[],a=0;a<arguments.length;a++){var s=arguments[a];if(s){var c=typeof s;if(c==="string"||c==="number")r.push(s);else if(Array.isArray(s)){if(s.length){var l=o.apply(null,s);l&&r.push(l)}}else if(c==="object")if(s.toString===Object.prototype.toString)for(var d in s)e.call(s,d)&&s[d]&&r.push(d);else r.push(s.toString())}}return r.join(" ")}fe.exports?(o.default=o,fe.exports=o):window.classNames=o}();const Xt=ot.exports;function se(e){return se=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},se(e)}function D(e,o){(function(a){return typeof a=="string"&&a.indexOf(".")!==-1&&parseFloat(a)===1})(e)&&(e="100%");var r=function(a){return typeof a=="string"&&a.indexOf("%")!==-1}(e);return e=o===360?e:Math.min(o,Math.max(0,parseFloat(e))),r&&(e=parseInt(String(e*o),10)/100),Math.abs(e-o)<1e-6?1:e=o===360?(e<0?e%o+o:e%o)/parseFloat(String(o)):e%o/parseFloat(String(o))}function ne(e){return e<=1?100*Number(e)+"%":e}function me(e){return e.length===1?"0"+e:String(e)}function he(e,o,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*r*(o-e):r<.5?o:r<2/3?e+(o-e)*(2/3-r)*6:e}function Pe(e){return T(e)/255}function T(e){return parseInt(e,16)}var _e={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function K(e){var o,r,a,s={r:0,g:0,b:0},c=1,l=null,d=null,u=null,f=!1,p=!1;return typeof e=="string"&&(e=function(m){if((m=m.trim().toLowerCase()).length===0)return!1;var I=!1;if(_e[m])m=_e[m],I=!0;else if(m==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var h=B.rgb.exec(m);return h?{r:h[1],g:h[2],b:h[3]}:(h=B.rgba.exec(m))?{r:h[1],g:h[2],b:h[3],a:h[4]}:(h=B.hsl.exec(m))?{h:h[1],s:h[2],l:h[3]}:(h=B.hsla.exec(m))?{h:h[1],s:h[2],l:h[3],a:h[4]}:(h=B.hsv.exec(m))?{h:h[1],s:h[2],v:h[3]}:(h=B.hsva.exec(m))?{h:h[1],s:h[2],v:h[3],a:h[4]}:(h=B.hex8.exec(m))?{r:T(h[1]),g:T(h[2]),b:T(h[3]),a:Pe(h[4]),format:I?"name":"hex8"}:(h=B.hex6.exec(m))?{r:T(h[1]),g:T(h[2]),b:T(h[3]),format:I?"name":"hex"}:(h=B.hex4.exec(m))?{r:T(h[1]+h[1]),g:T(h[2]+h[2]),b:T(h[3]+h[3]),a:Pe(h[4]+h[4]),format:I?"name":"hex8"}:(h=B.hex3.exec(m))?{r:T(h[1]+h[1]),g:T(h[2]+h[2]),b:T(h[3]+h[3]),format:I?"name":"hex"}:!1}(e)),typeof e=="object"&&(H(e.r)&&H(e.g)&&H(e.b)?(o=e.r,r=e.g,a=e.b,s={r:255*D(o,255),g:255*D(r,255),b:255*D(a,255)},f=!0,p=String(e.r).substr(-1)==="%"?"prgb":"rgb"):H(e.h)&&H(e.s)&&H(e.v)?(l=ne(e.s),d=ne(e.v),s=function(m,I,h){m=6*D(m,360),I=D(I,100),h=D(h,100);var g=Math.floor(m),C=m-g,b=h*(1-I),y=h*(1-C*I),v=h*(1-(1-C)*I),O=g%6;return{r:255*[h,y,b,b,v,h][O],g:255*[v,h,h,y,b,b][O],b:255*[b,b,v,h,h,y][O]}}(e.h,l,d),f=!0,p="hsv"):H(e.h)&&H(e.s)&&H(e.l)&&(l=ne(e.s),u=ne(e.l),s=function(m,I,h){var g,C,b;if(m=D(m,360),I=D(I,100),h=D(h,100),I===0)C=h,b=h,g=h;else{var y=h<.5?h*(1+I):h+I-h*I,v=2*h-y;g=he(v,y,m+1/3),C=he(v,y,m),b=he(v,y,m-1/3)}return{r:255*g,g:255*C,b:255*b}}(e.h,l,u),f=!0,p="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(c=e.a)),c=function(m){return m=parseFloat(m),(isNaN(m)||m<0||m>1)&&(m=1),m}(c),{ok:f,format:e.format||p,r:Math.min(255,Math.max(s.r,0)),g:Math.min(255,Math.max(s.g,0)),b:Math.min(255,Math.max(s.b,0)),a:c}}var V="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)",ge="[\\s|\\(]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",pe="[\\s|\\(]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",B={CSS_UNIT:new RegExp(V),rgb:new RegExp("rgb"+ge),rgba:new RegExp("rgba"+pe),hsl:new RegExp("hsl"+ge),hsla:new RegExp("hsla"+pe),hsv:new RegExp("hsv"+ge),hsva:new RegExp("hsva"+pe),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function H(e){return Boolean(B.CSS_UNIT.exec(String(e)))}var Zt=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function Ve(e){var o=function(r,a,s){r=D(r,255),a=D(a,255),s=D(s,255);var c=Math.max(r,a,s),l=Math.min(r,a,s),d=0,u=c,f=c-l,p=c===0?0:f/c;if(c===l)d=0;else{switch(c){case r:d=(a-s)/f+(a<s?6:0);break;case a:d=(s-r)/f+2;break;case s:d=(r-a)/f+4}d/=6}return{h:d,s:p,v:u}}(e.r,e.g,e.b);return{h:360*o.h,s:o.s,v:o.v}}function ae(e){var o=e.r,r=e.g,a=e.b;return"#".concat(function(s,c,l,d){var u=[me(Math.round(s).toString(16)),me(Math.round(c).toString(16)),me(Math.round(l).toString(16))];return d&&u[0].startsWith(u[0].charAt(1))&&u[1].startsWith(u[1].charAt(1))&&u[2].startsWith(u[2].charAt(1))?u[0].charAt(0)+u[1].charAt(0)+u[2].charAt(0):u.join("")}(o,r,a,!1))}function er(e,o,r){var a=r/100;return{r:(o.r-e.r)*a+e.r,g:(o.g-e.g)*a+e.g,b:(o.b-e.b)*a+e.b}}function Ye(e,o,r){var a;return(a=Math.round(e.h)>=60&&Math.round(e.h)<=240?r?Math.round(e.h)-2*o:Math.round(e.h)+2*o:r?Math.round(e.h)+2*o:Math.round(e.h)-2*o)<0?a+=360:a>=360&&(a-=360),a}function ze(e,o,r){return e.h===0&&e.s===0?e.s:((a=r?e.s-.16*o:o===4?e.s+.16:e.s+.05*o)>1&&(a=1),r&&o===5&&a>.1&&(a=.1),a<.06&&(a=.06),Number(a.toFixed(2)));var a}function Ue(e,o,r){var a;return(a=r?e.v+.05*o:e.v-.15*o)>1&&(a=1),Number(a.toFixed(2))}function Se(e){for(var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],a=K(e),s=5;s>0;s-=1){var c=Ve(a),l=ae(K({h:Ye(c,s,!0),s:ze(c,s,!0),v:Ue(c,s,!0)}));r.push(l)}r.push(ae(a));for(var d=1;d<=4;d+=1){var u=Ve(a),f=ae(K({h:Ye(u,d),s:ze(u,d),v:Ue(u,d)}));r.push(f)}return o.theme==="dark"?Zt.map(function(p){var m=p.index,I=p.opacity;return ae(er(K(o.backgroundColor||"#141414"),K(r[m]),100*I))}):r}var ve={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},ye={},be={};Object.keys(ve).forEach(function(e){ye[e]=Se(ve[e]),ye[e].primary=ye[e][5],be[e]=Se(ve[e],{theme:"dark",backgroundColor:"#141414"}),be[e].primary=be[e][5]});var $e={};function tr(e,o){process.env.NODE_ENV==="production"||e||console===void 0||console.error("Warning: ".concat(o))}function rr(e,o){(function(r,a,s){a||$e[s]||(r(!1,s),$e[s]=!0)})(tr,e,o)}function nr(){return!(typeof window>"u"||!window.document||!window.document.createElement)}var Ee=new Map;function it(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=e.mark;return o?o.startsWith("data-")?o:"data-".concat(o):"rc-util-key"}function De(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function ar(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function lt(e){return Array.from((Ee.get(e)||e).children).filter(function(o){return o.tagName==="STYLE"})}function st(e){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!nr())return null;var r=o.csp,a=o.prepend,s=document.createElement("style");s.setAttribute("data-rc-order",ar(a)),r!=null&&r.nonce&&(s.nonce=r==null?void 0:r.nonce),s.innerHTML=e;var c=De(o),l=c.firstChild;if(a){if(a==="queue"){var d=lt(c).filter(function(u){return["prepend","prependQueue"].includes(u.getAttribute("data-rc-order"))});if(d.length)return c.insertBefore(s,d[d.length-1].nextSibling),s}c.insertBefore(s,l)}else c.appendChild(s);return s}function or(e){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=De(o);return lt(r).find(function(a){return a.getAttribute(it(o))===e})}function ir(e,o){var r=Ee.get(e);if(!r||!function(c,l){if(!c)return!1;if(c.contains)return c.contains(l);for(var d=l;d;){if(d===c)return!0;d=d.parentNode}return!1}(document,r)){var a=st("",o),s=a.parentNode;Ee.set(e,s),s.removeChild(a)}}function lr(e,o){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=De(r);ir(a,r);var s=or(o,r);if(s){var c,l,d;return((c=r.csp)===null||c===void 0?void 0:c.nonce)&&s.nonce!==((l=r.csp)===null||l===void 0?void 0:l.nonce)&&(s.nonce=(d=r.csp)===null||d===void 0?void 0:d.nonce),s.innerHTML!==e&&(s.innerHTML=e),s}var u=st(e,r);return u.setAttribute(it(r),o),u}function We(e){return se(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(se(e.icon)==="object"||typeof e.icon=="function")}function Ke(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(o,r){var a=e[r];return r==="class"?(o.className=a,delete o.class):o[r]=a,o},{})}function Ae(e,o,r){return r?React__default.default.createElement(e.tag,x(x({key:o},Ke(e.attrs)),r),(e.children||[]).map(function(a,s){return Ae(a,"".concat(o,"-").concat(e.tag,"-").concat(s))})):React__default.default.createElement(e.tag,x({key:o},Ke(e.attrs)),(e.children||[]).map(function(a,s){return Ae(a,"".concat(o,"-").concat(e.tag,"-").concat(s))}))}function ct(e){return Se(e)[0]}function dt(e){return e?Array.isArray(e)?e:[e]:[]}var sr=`
|
|
135
135
|
.anticon {
|
|
136
136
|
display: inline-block;
|
|
137
137
|
color: inherit;
|
|
@@ -185,7 +185,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
185
185
|
transform: rotate(360deg);
|
|
186
186
|
}
|
|
187
187
|
}
|
|
188
|
-
`,cr=["icon","className","onClick","style","primaryColor","secondaryColor"],G={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1},ie=function(e){var o,r,a=e.icon,s=e.className,c=e.onClick,l=e.style,d=e.primaryColor,u=e.secondaryColor,f=at(e,cr),p=G;if(d&&(p={primaryColor:d,secondaryColor:u||ct(d)}),function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:sr,h=React.useContext(rt).csp;React.useEffect(function(){lr(I,"@ant-design-icons",{prepend:!0,csp:h})},[])}(),o=We(a),r="icon should be icon definiton, but got ".concat(a),rr(o,"[@ant-design/icons] ".concat(r)),!We(a))return null;var m=a;return m&&typeof m.icon=="function"&&(m=x(x({},m),{},{icon:m.icon(p.primaryColor,p.secondaryColor)})),Ae(m.icon,"svg-".concat(m.name),x({className:s,onClick:c,style:l,"data-icon":m.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},f))};ie.displayName="IconReact",ie.getTwoToneColors=function(){return x({},G)},ie.setTwoToneColors=function(e){var o=e.primaryColor,r=e.secondaryColor;G.primaryColor=o,G.secondaryColor=r||ct(o),G.calculated=!!r};const Me=ie;function ut(e){var o=nt(dt(e),2),r=o[0],a=o[1];return Me.setTwoToneColors({primaryColor:r,secondaryColor:a})}var dr=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];ut("#1890ff");var le=React__namespace.forwardRef(function(e,o){var r,a=e.className,s=e.icon,c=e.spin,l=e.rotate,d=e.tabIndex,u=e.onClick,f=e.twoToneColor,p=at(e,dr),m=React__namespace.useContext(rt).prefixCls,I=m===void 0?"anticon":m,h=Xt(I,(ke(r={},"".concat(I,"-").concat(s.name),!!s.name),ke(r,"".concat(I,"-spin"),!!c||s.name==="loading"),r),a),
|
|
188
|
+
`,cr=["icon","className","onClick","style","primaryColor","secondaryColor"],G={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1},ie=function(e){var o,r,a=e.icon,s=e.className,c=e.onClick,l=e.style,d=e.primaryColor,u=e.secondaryColor,f=at(e,cr),p=G;if(d&&(p={primaryColor:d,secondaryColor:u||ct(d)}),function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:sr,h=React.useContext(rt).csp;React.useEffect(function(){lr(I,"@ant-design-icons",{prepend:!0,csp:h})},[])}(),o=We(a),r="icon should be icon definiton, but got ".concat(a),rr(o,"[@ant-design/icons] ".concat(r)),!We(a))return null;var m=a;return m&&typeof m.icon=="function"&&(m=x(x({},m),{},{icon:m.icon(p.primaryColor,p.secondaryColor)})),Ae(m.icon,"svg-".concat(m.name),x({className:s,onClick:c,style:l,"data-icon":m.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},f))};ie.displayName="IconReact",ie.getTwoToneColors=function(){return x({},G)},ie.setTwoToneColors=function(e){var o=e.primaryColor,r=e.secondaryColor;G.primaryColor=o,G.secondaryColor=r||ct(o),G.calculated=!!r};const Me=ie;function ut(e){var o=nt(dt(e),2),r=o[0],a=o[1];return Me.setTwoToneColors({primaryColor:r,secondaryColor:a})}var dr=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];ut("#1890ff");var le=React__namespace.forwardRef(function(e,o){var r,a=e.className,s=e.icon,c=e.spin,l=e.rotate,d=e.tabIndex,u=e.onClick,f=e.twoToneColor,p=at(e,dr),m=React__namespace.useContext(rt).prefixCls,I=m===void 0?"anticon":m,h=Xt(I,(ke(r={},"".concat(I,"-").concat(s.name),!!s.name),ke(r,"".concat(I,"-spin"),!!c||s.name==="loading"),r),a),g=d;g===void 0&&u&&(g=-1);var C=l?{msTransform:"rotate(".concat(l,"deg)"),transform:"rotate(".concat(l,"deg)")}:void 0,b=nt(dt(f),2),y=b[0],v=b[1];return jsxRuntime.jsx("span",{...x(x({role:"img","aria-label":s.name},p),{},{ref:o,tabIndex:g,onClick:u,className:h}),children:jsxRuntime.jsx(Me,{icon:s,primaryColor:y,secondaryColor:v,style:C})})});le.displayName="AntdIcon",le.getTwoToneColor=function(){var e=Me.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},le.setTwoToneColor=ut;const q=le,ur={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};var ft=function(e,o){return jsxRuntime.jsx(q,{...x(x({},e),{},{ref:o,icon:ur})})};ft.displayName="CheckOutlined";const mt=React__namespace.forwardRef(ft),fr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M899.1 869.6l-53-305.6H864c14.4 0 26-11.6 26-26V346c0-14.4-11.6-26-26-26H618V138c0-14.4-11.6-26-26-26H432c-14.4 0-26 11.6-26 26v182H160c-14.4 0-26 11.6-26 26v192c0 14.4 11.6 26 26 26h17.9l-53 305.6a25.95 25.95 0 0025.6 30.4h723c1.5 0 3-.1 4.4-.4a25.88 25.88 0 0021.2-30zM204 390h272V182h72v208h272v104H204V390zm468 440V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H416V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H202.8l45.1-260H776l45.1 260H672z"}}]},name:"clear",theme:"outlined"};var ht=function(e,o){return jsxRuntime.jsx(q,{...x(x({},e),{},{ref:o,icon:fr})})};ht.displayName="ClearOutlined",React__namespace.forwardRef(ht);const mr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"}}]},name:"close",theme:"outlined"};var pt=function(e,o){return jsxRuntime.jsx(q,{...x(x({},e),{},{ref:o,icon:mr})})};pt.displayName="CloseOutlined";const hr=React__namespace.forwardRef(pt),gr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"};var vt=function(e,o){return jsxRuntime.jsx(q,{...x(x({},e),{},{ref:o,icon:gr})})};vt.displayName="DownloadOutlined",React__namespace.forwardRef(vt);const pr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"};var bt=function(e,o){return jsxRuntime.jsx(q,{...x(x({},e),{},{ref:o,icon:pr})})};bt.displayName="EditOutlined",React__namespace.forwardRef(bt);const yr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"};var xt=function(e,o){return jsxRuntime.jsx(q,{...x(x({},e),{},{ref:o,icon:yr})})};xt.displayName="EyeOutlined",React__namespace.forwardRef(xt);const xr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"};var wt=function(e,o){return jsxRuntime.jsx(q,{...x(x({},e),{},{ref:o,icon:xr})})};wt.displayName="FolderOpenOutlined",React__namespace.forwardRef(wt);const wr={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};var kt=function(e,o){return jsxRuntime.jsx(q,{...x(x({},e),{},{ref:o,icon:wr})})};kt.displayName="LoadingOutlined";const St=React__namespace.forwardRef(kt),Cr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"};var Et=function(e,o){return jsxRuntime.jsx(q,{...x(x({},e),{},{ref:o,icon:Cr})})};Et.displayName="QuestionCircleOutlined";const At=React__namespace.forwardRef(Et),kr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M140 188h584v164h76V144c0-17.7-14.3-32-32-32H96c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h544v-76H140V188z"}},{tag:"path",attrs:{d:"M414.3 256h-60.6c-3.4 0-6.4 2.2-7.6 5.4L219 629.4c-.3.8-.4 1.7-.4 2.6 0 4.4 3.6 8 8 8h55.1c3.4 0 6.4-2.2 7.6-5.4L322 540h196.2L422 261.4a8.42 8.42 0 00-7.7-5.4zm12.4 228h-85.5L384 360.2 426.7 484zM936 528H800v-93c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v93H592c-13.3 0-24 10.7-24 24v176c0 13.3 10.7 24 24 24h136v152c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V752h136c13.3 0 24-10.7 24-24V552c0-13.3-10.7-24-24-24zM728 680h-88v-80h88v80zm160 0h-88v-80h88v80z"}}]},name:"translation",theme:"outlined"};var It=function(e,o){return jsxRuntime.jsx(q,{...x(x({},e),{},{ref:o,icon:kr})})};It.displayName="TranslationOutlined",React__namespace.forwardRef(It);const Er={left:"flex-start",center:"center",right:"flex-end"};k__default.default.div`
|
|
189
189
|
display: flex;
|
|
190
190
|
flex-direction: row;
|
|
191
191
|
align-items: center;
|
|
@@ -277,9 +277,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
277
277
|
.ant-progress-text {
|
|
278
278
|
display: none;
|
|
279
279
|
}
|
|
280
|
-
`;function Je(){const{innerWidth:e,innerHeight:o}=window;return{width:e,height:o}}function jt(){const[e,o]=React.useState(Je());return React.useEffect(()=>{function r(){o(Je())}return window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)},[]),{modalWidth:e.width*zr,modalHeight:e.height,width:e.width,height:e.height}}const qt=e=>{const{locale:o,onClose:r,onConfirm:a,loading:s,left:c=null}=e;return jsxRuntime.jsxs(antd.Row,{children:[jsxRuntime.jsx(antd.Col,{span:12,children:jsxRuntime.jsx(antd.Space,{children:c})}),jsxRuntime.jsx(antd.Col,{span:12,children:jsxRuntime.jsx(antd.Row,{justify:"end",children:jsxRuntime.jsxs(antd.Space,{children:[jsxRuntime.jsx(antd.Button,{icon:jsxRuntime.jsx(hr,{}),onClick:r,disabled:s,children:S("cancel",o)}),jsxRuntime.jsx(antd.Button,{icon:jsxRuntime.jsx(s?St:mt,{}),disabled:s,onClick:a,style:{marginLeft:15},type:"primary",children:S("ok",o)})]})})})]})},an=e=>{const{value:o,onChange:r,locale:a}=e,s=React.useCallback(c=>{r(c.target.value)},[]);return jsxRuntime.jsx(Rt,{label:S("saveAs",a),children:jsxRuntime.jsxs(antd.Radio.Group,{onChange:s,value:o,children:[jsxRuntime.jsx(antd.Radio,{value:"
|
|
280
|
+
`;function Je(){const{innerWidth:e,innerHeight:o}=window;return{width:e,height:o}}function jt(){const[e,o]=React.useState(Je());return React.useEffect(()=>{function r(){o(Je())}return window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)},[]),{modalWidth:e.width*zr,modalHeight:e.height,width:e.width,height:e.height}}const qt=e=>{const{locale:o,onClose:r,onConfirm:a,loading:s,left:c=null}=e;return jsxRuntime.jsxs(antd.Row,{children:[jsxRuntime.jsx(antd.Col,{span:12,children:jsxRuntime.jsx(antd.Space,{children:c})}),jsxRuntime.jsx(antd.Col,{span:12,children:jsxRuntime.jsx(antd.Row,{justify:"end",children:jsxRuntime.jsxs(antd.Space,{children:[jsxRuntime.jsx(antd.Button,{icon:jsxRuntime.jsx(hr,{}),onClick:r,disabled:s,children:S("cancel",o)}),jsxRuntime.jsx(antd.Button,{icon:jsxRuntime.jsx(s?St:mt,{}),disabled:s,onClick:a,style:{marginLeft:15},type:"primary",children:S("ok",o)})]})})})]})},an=e=>{const{value:o,onChange:r,locale:a}=e,s=React.useCallback(c=>{r(c.target.value)},[]);return jsxRuntime.jsx(Rt,{label:S("saveAs",a),children:jsxRuntime.jsxs(antd.Radio.Group,{onChange:s,value:o,children:[jsxRuntime.jsx(antd.Radio,{value:"xlsx",children:"Excel"}),jsxRuntime.jsx(antd.Radio,{value:"csv",children:"CSV"})]})})},on=e=>{const{value:o,onChange:r,locale:a,totalRegisters:s,selectedRegistersToExport:c}=e,l=React.useCallback(u=>{r(u.target.value)},[]),d=S("registersToExportSummary",a).replace("{total}",s.toString()).replace("{selected}",c==null?void 0:c.toString());return jsxRuntime.jsxs(Rt,{label:S("registersToExport",a),children:[jsxRuntime.jsx("p",{dangerouslySetInnerHTML:{__html:d}}),jsxRuntime.jsxs(antd.Radio.Group,{onChange:l,value:o,children:[jsxRuntime.jsx(antd.Radio,{value:"selected",children:S("registersSelection",a)}),jsxRuntime.jsx(antd.Radio,{value:"all",children:S("registersSelectionAll",a)})]})]})},{Text:ln}=antd.Typography,Xe=({node:e})=>{const{required:o=!1,tooltip:r,title:a}=e,s=["flex","flex-row","items-center","justify-start"];return o&&s.push("bg-blue-100"),jsxRuntime.jsxs("div",{className:s.join(" "),children:[jsxRuntime.jsx(ln,{children:a}),r&&jsxRuntime.jsx(antd.Tooltip,{title:r,className:"pl-1",children:jsxRuntime.jsx(At,{className:"text-xs text-blue-400"})})]})},Le=(e,o)=>o.title.toLowerCase().indexOf(e.toLowerCase())>-1||o.key.toLowerCase().indexOf(e.toLowerCase())>-1,Ht=(e,o,r)=>e.map(a=>a.key===o?{...a,children:r}:a.children?{...a,children:Ht(a.children,o,r)}:a),Z=e=>{const o=[];return function r(a=[]){a.forEach(s=>{o.push(s),r(s.children)})}(e),o},Pt=({treeNodes:e=[],checkedKeys:o=[],searchText:r})=>r?Z(e).filter(a=>Le(r,a)).map(({children:a,...s})=>({...s,disabled:o.includes(s.key)})):e.map(({children:a,...s})=>({...s,disabled:o.includes(s.key),children:Pt({treeNodes:a,checkedKeys:o,searchText:r})})),Ie=({treeNodes:e=[],checkedKeys:o=[],searchText:r})=>r?Z(e).filter(a=>Le(r,a)).map(({children:a,...s})=>({...s,disabled:o.includes(s.key),isLeaf:!0,children:Ie({treeNodes:a,checkedKeys:o,searchText:r})})):Z(e).filter(a=>o.indexOf(a.key)!==-1).map(({children:a,...s})=>({...s,isLeaf:!0,children:Ie({treeNodes:a,checkedKeys:o,searchText:r})})),{error:Ze}=antd.Modal,sn=k__default.default(antd.Transfer)`
|
|
281
281
|
.ant-transfer-list-body-customize-wrapper {
|
|
282
282
|
min-height: ${300}px;
|
|
283
283
|
}
|
|
284
|
-
`,cn=({targetKeys:e,locale:o,onGetFields:r,onGetFieldChilds:a,onChange:s,...c})=>{const[l,d]=React.useState(),[u,f]=React.useState(!0),[p,m]=React.useState(),[I,h]=React.useState();React.useEffect(()=>{v()},[]);const v=React.useCallback(async()=>{f(!0);try{const g=await r();d(g)}catch(g){console.error(g),Ze({title:"Error",centered:!0,content:jsxRuntime.jsx(jsxRuntime.Fragment,{children:JSON.stringify(g,null,2)})})}f(!1)},[]),C=React.useCallback(async({key:g})=>{try{const O=Z(l).find(F=>F.key===g),w=await a({key:g,title:O.title}),_=Ht(l,g,w);d(_)}catch(O){console.error(O),Ze({title:"Error",centered:!0,content:jsxRuntime.jsx(jsxRuntime.Fragment,{children:JSON.stringify(O,null,2)})})}},[l]),b=React.useCallback((g,O)=>{g==="left"?m(O.trim()===""?void 0:O.trim()):h(O.trim()===""?void 0:O.trim())},[]),y=React.useCallback(({checkedKeys:g,onItemSelect:O})=>(w,{node:{key:_}})=>{var F;O(_,(F=_,!g.includes(F)))},[]);return jsxRuntime.jsx(sn,{...c,showSearch:!0,targetKeys:e,dataSource:Z(l),className:"tree-transfer",render:g=>g.title,onChange:s,showSelectAll:!0,locale:{itemUnit:S("exportModalItemsUnit",o),itemsUnit:S("exportModalItemsUnit",o),notFoundContent:S("notFoundContent",o),searchPlaceholder:S("searchPlaceholder",o)},filterOption:Le,onSearch:b,titles:[S("availableFields",o),S("fieldsToExport",o)],children:({direction:g,onItemSelect:O,selectedKeys:w})=>{if(u)return jsxRuntime.jsx("div",{style:{display:"flex",paddingTop:"2em",justifyContent:"center"},children:jsxRuntime.jsx(antd.Spin,{})});if(g==="left"){const _=[...e,...w];return jsxRuntime.jsx(antd.Tree,{height:300,blockNode:!0,checkable:!0,checkStrictly:!0,checkedKeys:_,loadData:C,treeData:Pt({treeNodes:l,checkedKeys:e,searchText:p}),onCheck:y({checkedKeys:_,onItemSelect:O}),onSelect:y({checkedKeys:_,onItemSelect:O}),titleRender:F=>jsxRuntime.jsx(Xe,{node:F})})}return jsxRuntime.jsx(antd.Tree,{height:300,blockNode:!0,checkable:!0,checkStrictly:!0,checkedKeys:w,onCheck:y({checkedKeys:w,onItemSelect:O}),onSelect:y({checkedKeys:w,onItemSelect:O}),treeData:Ie({treeNodes:l,checkedKeys:e,searchText:I}),titleRender:_=>jsxRuntime.jsx(Xe,{node:_})})}})},et=()=>jsxRuntime.jsx("div",{style:{padding:"0.5em"}}),{error:dn}=antd.Modal,Yn=e=>{const{visible:o,locale:r,onCancel:a,onSucceed:s,totalRegisters:c,selectedRegistersToExport:l,selectedKeys:d}=e,{modalWidth:u}=jt(),[f,p]=React.useState(!1),[m,I]=React.useState("csv"),[h,v]=React.useState("all"),[C,b]=React.useState(d);React.useEffect(()=>{o||(b(void 0),I("csv"),v(l?"selected":"all"))},[o]),React.useEffect(()=>{v(l?"selected":"all")},[l]),React.useEffect(()=>{d===void 0||C||b(d)},[d,C]);const y=React.useCallback(O=>{b(O)},[]),g=React.useCallback(async()=>{p(!0);try{await s({exportType:m,selectedKeys:C,registersAmount:h})}catch(O){console.error(O),dn({title:"Error",centered:!0,content:jsxRuntime.jsx(jsxRuntime.Fragment,{children:JSON.stringify(O,null,2)})})}p(!1)},[m,C,h]);return jsxRuntime.jsxs(antd.Modal,{title:S("export",r),centered:!0,width:u,visible:o,closable:!f,onCancel:a,footer:null,destroyOnClose:!0,children:[jsxRuntime.jsx(cn,{targetKeys:C,onChange:y,locale:r,onGetFieldChilds:e.onGetFieldChilds,onGetFields:e.onGetFields}),jsxRuntime.jsx(et,{}),jsxRuntime.jsx(an,{locale:r,value:m,onChange:I}),l&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(et,{}),jsxRuntime.jsx(on,{locale:r,totalRegisters:c,selectedRegistersToExport:l,value:h,onChange:v})]}),jsxRuntime.jsx(antd.Divider,{}),jsxRuntime.jsx(qt,{locale:r,onClose:a,onConfirm:g,loading:f,left:S("exportRegisters",r).replace("{total}",h==="selected"?l==null?void 0:l.toString():c.toString())})]})},ExportModal=e=>{const{visible:o,locale:r,onClose:a,model:s,context:c,treeFields:l,selectedRegistersToExport:d,totalRegisters:u,domain:f,limit:p}=e,m=React.useRef({}),I=React.useCallback(async C=>{if(C.selectedKeys.length===0){showDialog$7(tForLang("selectAtLeastOneField",r));return}const{datas:b}=await ConnectionProvider.getHandler().exportData({model:s,fields:C.selectedKeys,domain:C.registersAmount==="all"?[]:f,limit:C.registersAmount==="all"?void 0:p,context:c,format:C.exportType});a(),await new Promise(g=>setTimeout(g,200));const y=await getMimeType(b);openBase64InNewTab(b,y.mime)},[r,s,f,p,c,a]),h=React.useCallback(async()=>{const C=await ConnectionProvider.getHandler().getFields({model:s,context:c,fields:[]});return m.current["/"]=C,convertToExportField({fields:C})},[s,c,m]),v=React.useCallback(async({key:C,title:b})=>{let y;C.indexOf("/")===-1?y=m.current["/"]:y=m.current[getParentKey(C)];const O=y[getChildKey(C)].relation,w=await ConnectionProvider.getHandler().getFields({model:O,context:c,fields:[]});return m.current[C]=w,convertToExportField({fields:w,parentTitle:b,parentKey:C})},[m,s,c]);return jsxRuntime.jsx(Yn,{visible:o,locale:r,onSucceed:I,onCancel:a,selectedRegistersToExport:d,totalRegisters:u,onGetFieldChilds:v,onGetFields:h,selectedKeys:l?Object.keys(l):void 0})},convertToExportField=({fields:e,parentKey:o,parentTitle:r})=>{const a=[];for(const s of Object.keys(e)){const c=e[s],l=c.type==="many2one"||c.type==="one2many"||c.type==="many2many";a.push({key:`${o?o+"/":""}${s}`,title:`${r?r+"/":""}${c.string}`,tooltip:c.help,required:c.required,isLeaf:!l})}return a},getParentKey=e=>e.indexOf("/")===-1?e:e.split("/").slice(0,-1).join("/"),getChildKey=e=>{if(e.indexOf("/")===-1)return e;const o=e.split("/");return o[o.length-1]},DatePickerConfig={date:{placeholder:"__/__/____",dateDisplayFormat:"YYYY-MM-DD",dateInternalFormat:"YYYY-MM-DD"},time:{placeholder:"__/__/____ __:__:__",dateDisplayFormat:"YYYY-MM-DD HH:mm:ss",dateInternalFormat:"YYYY-MM-DD HH:mm:ss"}},DatePicker=e=>{const{ooui:o,showTime:r=!1}=e,{required:a}=o;return jsxRuntime.jsx(Field$1,{required:a,...e,children:jsxRuntime.jsx(DatePickerInput,{ooui:o,showTime:r})})},DatePickerInput=e=>{const{value:o,onChange:r,ooui:a,showTime:s}=e,{id:c,readOnly:l,required:d}=a,u=d&&!l?Config.requiredClass:void 0,f=s?"time":"date",p=v=>{r==null||r(v)},m=v=>{if(v===null){p(void 0);return}p(v.format(DatePickerConfig[f].dateInternalFormat))},I=s?{defaultValue:hooks("00:00:00","HH:mm:ss")}:void 0,h=o?hooks(o,DatePickerConfig[f].dateInternalFormat):void 0;return jsxRuntime.jsx(antd.DatePicker,{style:{width:"100%"},placeholder:s?DatePickerConfig.time.placeholder:DatePickerConfig.date.placeholder,disabled:l,id:c,showTime:I,className:u,format:DatePickerConfig[f].dateDisplayFormat,value:h,onChange:m})},Date$1=e=>{const{ooui:o}=e;return jsxRuntime.jsx(DatePicker,{ooui:o})},DateTime=e=>{const{ooui:o}=e;return jsxRuntime.jsx(DatePicker,{ooui:o,showTime:!0})},Reference=e=>{const{ooui:o}=e,{required:r}=o;return jsxRuntime.jsx(Field$1,{required:r,...e,children:jsxRuntime.jsx(ReferenceInput,{ooui:o})})},ReferenceInput=e=>{const{value:o,onChange:r,ooui:a}=e,{required:s,selectionValues:c,readOnly:l}=a,d=o==null?void 0:o.split(","),[u,f]=React.useState([]),[p,m]=React.useState();return React.useEffect(()=>{if(!o)return;const I=o&&d&&d[0],h=o&&d&&d[1]&&parseInt(d[1]);f([h,void 0]),m(I)},[o]),jsxRuntime.jsxs(antd.Row,{gutter:8,wrap:!1,children:[jsxRuntime.jsx(antd.Col,{flex:"1",children:jsxRuntime.jsx(SelectionInput$1,{ooui:new ooui.Selection({name:"model_selection",selection:c,readOnly:l,required:s}),onChange:I=>{m(I),f([]),r==null||r(void 0)},value:p})}),jsxRuntime.jsx(antd.Col,{flex:"3",children:jsxRuntime.jsx(Many2oneInput,{ooui:new ooui.Many2one({name:"object_value",relation:p,readOnly:l,required:s}),value:u,onChange:I=>{f(I);const h=`${p},${I[0]}`;h!==o&&(r==null||r(h))}})})]})},Binary=e=>{const{ooui:o}=e,{required:r}=o;return jsxRuntime.jsx(Field$1,{required:r,...e,children:jsxRuntime.jsx(BinaryInput,{ooui:o})})},BinaryInput=e=>{const{ooui:o,value:r,onChange:a}=e,{readOnly:s,required:c,filenameField:l}=o,d=c&&!s?Config.requiredClass:void 0,u=React.useRef(null),{setFieldValue:f,getFieldValue:p}=React.useContext(FormContext$1)||{},{t:m}=React.useContext(LocaleContext),I=r?getFilesize(r):"",h=g=>{a==null||a(g)};async function v(){const g=await getMimeType(r),O=`data:${g==null?void 0:g.mime};base64,${r}`,w=document.createElement("a"),_=p(l),F=p("name");w.href=O,w.download=_||F,w.click()}async function C(){const g=await getMimeType(r);openBase64InNewTab(r,g.mime)}async function b(g){g.stopPropagation(),g.preventDefault();const O=g.target.files[0],w=await toBase64(O);h(w),l&&f(l,O.name)}function y(){f(l,void 0),h(void 0)}return jsxRuntime.jsxs(antd.Row,{gutter:8,children:[jsxRuntime.jsxs(antd.Col,{style:{paddingBottom:5},children:[jsxRuntime.jsx("input",{type:"file",id:"file",ref:u,style:{display:"none"},onChange:b}),jsxRuntime.jsx(antd.Input,{type:"text",disabled:!0,className:d,value:I})]}),jsxRuntime.jsx(antd.Col,{children:jsxRuntime.jsxs(antd.Space,{children:[jsxRuntime.jsx(antd.Button,{icon:jsxRuntime.jsx(Icon.FolderOpenOutlined,{}),disabled:s,onClick:()=>{u.current.click()},children:"Select"}),jsxRuntime.jsx(antd.Button,{icon:jsxRuntime.jsx(Icon.EyeOutlined,{}),disabled:!r,onClick:C,children:m("open")}),jsxRuntime.jsx(ButtonWithTooltip,{tooltip:m("download"),disabled:!r,onClick:v,icon:jsxRuntime.jsx(Icon.DownloadOutlined,{})}),jsxRuntime.jsx(ButtonWithTooltip,{tooltip:m("clear"),disabled:s||!r,onClick:y,icon:jsxRuntime.jsx(Icon.ClearOutlined,{})})]})})]})},iconsForViewTypes={tree:jsxRuntime.jsx(Icon.TableOutlined,{}),form:jsxRuntime.jsx(Icon.FormOutlined,{}),graph:jsxRuntime.jsx(Icon.AreaChartOutlined,{}),calendar:jsxRuntime.jsx(Icon.CalendarOutlined,{})};function getIconForView(e){return e?(iconsForViewTypes==null?void 0:iconsForViewTypes[e.type])||jsxRuntime.jsx(Icon.FormOutlined,{}):jsxRuntime.jsx(Icon.FormOutlined,{})}function ChangeViewButton(e){const{currentView:o,availableViews:r,onChangeView:a,disabled:s=!1,formHasChanges:c=!1,previousView:l}=e,{t:d,lang:u}=React.useContext(LocaleContext);function f(){const I=r.map((h,v)=>jsxRuntime.jsx(antd.Menu.Item,{children:jsxRuntime.jsxs(antd.Row,{wrap:!1,children:[jsxRuntime.jsx(antd.Col,{flex:"none",style:{paddingRight:20},children:getIconForView(h)}),jsxRuntime.jsx(antd.Col,{flex:"auto",style:{paddingRight:20},children:h.type==="graph"?h.name:h.type.charAt(0).toUpperCase()+h.type.slice(1)}),jsxRuntime.jsx(antd.Col,{flex:"none",children:jsxRuntime.jsx(Icon.CheckOutlined,{style:{opacity:o.view_id===h.view_id?1:0}})})]})},h.view_id||v));return jsxRuntime.jsx(antd.Menu,{onClick:m,children:jsxRuntime.jsx(antd.Menu.ItemGroup,{title:d("viewAs"),children:I})})}function p(I){if(c){showDialog$6({lang:u,onOk:()=>{I()}});return}I()}function m(I){p(()=>{const h=r.find(v=>v.view_id===parseInt(I.key));a(h)})}return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(ButtonWithTooltip,{tooltip:l?d("viewAs")+" "+d(l.type):"",icon:getIconForView(l),style:{width:50},onClick:()=>{m({key:l==null?void 0:l.view_id})},disabled:s||r.length===1}),jsxRuntime.jsx(antd.Dropdown,{overlay:f(),disabled:s||r.length===1,children:jsxRuntime.jsx(antd.Button,{style:{width:25},icon:jsxRuntime.jsx(Icon.DownOutlined,{style:{fontSize:"0.5em"}}),onClick:I=>I.preventDefault()})})]})}function DropdownButton(e){const{icon:o,tooltip:r,items:a=[],onItemClick:s,label:c,disabled:l=!1}=e;function d(){const f=a==null?void 0:a.map((p,m)=>p.name==="divider"?jsxRuntime.jsx(antd.Menu.Divider,{},"divider"+m):jsxRuntime.jsx(antd.Menu.Item,{children:p.name},p.id));return jsxRuntime.jsx(antd.Menu,{onClick:u,children:jsxRuntime.jsx(antd.Menu.ItemGroup,{title:r,children:f})})}function u(f){const p=a.find(m=>isNaN(f.key)?m.id===f.key:m.id===parseInt(f.key));s(p)}return jsxRuntime.jsx(antd.Dropdown,{overlay:d(),disabled:l||!a||a.length===0,children:jsxRuntime.jsxs(antd.Button,{children:[o," ",c," ",jsxRuntime.jsx(Icon.DownOutlined,{})]})})}function ActionButton(e){const{onClick:o,disabled:r=!1,loading:a=!1,tooltip:s,icon:c,label:l,type:d="default"}=e,u=a?jsxRuntime.jsx(Icon.LoadingOutlined,{}):c;return jsxRuntime.jsxs(ButtonWithTooltip,{type:d,tooltip:s,onClick:o,disabled:r,children:[u,l]})}function NewButton(e){const{disabled:o=!1}=e,{formHasChanges:r,onNewClicked:a}=React.useContext(ActionViewContext),{t:s,lang:c}=React.useContext(LocaleContext),l=()=>{if(r){showDialog$6({lang:c,onOk:()=>{a()}});return}a()};return jsxRuntime.jsx(ActionButton,{icon:jsxRuntime.jsx(Icon.FileAddOutlined,{}),tooltip:s("new"),onClick:l,disabled:o})}const{confirm}=antd.Modal,showDialog=({onOk:e,onCancel:o,lang:r})=>{confirm({title:tForLang("unsavedChanges",r),icon:jsxRuntime.jsx(Icon.ExclamationCircleOutlined,{}),centered:!0,content:tForLang("confirmRefreshWithoutSave",r),okText:tForLang("discardAndRefresh",r),cancelText:tForLang("cancel",r),onOk:e,onCancel:o})};async function showLogInfo(e,o,r){const a=(await ConnectionProvider.getHandler().getLogInfo({model:e,ids:[o]}))[0],{create_date:s,create_uid:c,id:l,write_date:d,write_uid:u}=a;showDialog$7(jsxRuntime.jsxs("div",{children:["ID: "+l," ",jsxRuntime.jsx("br",{}),r("createdBy")+": "+c[1]," ",jsxRuntime.jsx("br",{}),r("creationDate")+": "+s," ",jsxRuntime.jsx("br",{}),r("lastUpdatedBy")+": "+u[1]," ",jsxRuntime.jsx("br",{}),r("lastUpdatedDate")+": "+d]}))}const AttachmentsButtonWrapper=e=>{const{numberOfAttachments:o,disabled:r}=e,{t:a}=React.useContext(LocaleContext),[s,c]=React.useState(!1),l=jsxRuntime.jsxs(antd.Button,{disabled:r,children:[jsxRuntime.jsx(Icon.LinkOutlined,{}),`(${o})`,jsxRuntime.jsx(Icon.DownOutlined,{style:{fontSize:12}})]});return r?l:jsxRuntime.jsx(antd.Popover,{onVisibleChange:d=>c(d),visible:s,placement:"bottom",content:Content$1(e,c),title:a("attachments"),arrowContent:null,children:l})},Content$1=(e,o)=>{const{attachments:r=[],loading:a,onAddNewAttachment:s,onopenAttachmentLink:c,onOpenAttachmentDetail:l,onListAllAttachments:d}=e,{t:u}=React.useContext(LocaleContext);return a?jsxRuntime.jsx(antd.Spin,{style:{padding:20}}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("a",{style:{display:"block",paddingBottom:5},href:"#",onClick:()=>{o(!1),d()},children:[jsxRuntime.jsx(Icon.TableOutlined,{})," ",u("listAllAttachments")]}),jsxRuntime.jsxs("a",{style:{display:"block"},href:"#",onClick:()=>{o(!1),s()},children:[jsxRuntime.jsx(Icon.FileAddOutlined,{})," ",u("addNewAttachment")]}),r.length>0&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("li",{className:" ant-dropdown-menu-item-divider"}),r.map(f=>{const p=f.link?Icon.LinkOutlined:Icon.DownloadOutlined;return jsxRuntime.jsxs(antd.Row,{style:{paddingTop:4,paddingBottom:4},wrap:!1,align:"middle",children:[jsxRuntime.jsx(antd.Col,{flex:"auto",children:f.name}),jsxRuntime.jsx(antd.Col,{flex:"25px",style:{textAlign:"center"},children:(f.datas_fname||f.link)&&jsxRuntime.jsx(antd.Tooltip,{title:f.link?u("openAttachmentLink"):u("download"),children:jsxRuntime.jsx(p,{style:{cursor:"pointer"},onClick:()=>{o(!1),c(f)}})})}),jsxRuntime.jsx(antd.Col,{flex:"25px",style:{textAlign:"center"},children:jsxRuntime.jsx(antd.Tooltip,{title:u("openAttachment"),children:jsxRuntime.jsx(Icon.FormOutlined,{style:{cursor:"pointer"},onClick:()=>{o(!1),l(f)}})})})]},f.id)})]})]})};function AttachmentsButton(e){const{attachments:o,disabled:r=!1,onAddNewAttachment:a,onListAllAttachments:s,onViewAttachmentDetails:c}=e,{formRef:l}=React.useContext(ActionViewContext),[d,u]=React.useState(!1),[f,p]=React.useState([]),[m,I]=React.useState(!1),{t:h}=React.useContext(LocaleContext),v=React.useCallback(async()=>{u(!0);try{const y=await ConnectionProvider.getHandler().readObjects({model:"ir.attachment",ids:o.map(g=>g.id),fieldsToRetrieve:["name","datas_fname","link"],context:l.current.getContext()});p(y.map(g=>({id:g.id,name:g.name,datas_fname:g.datas_fname,link:g.link})))}catch(y){showDialog$8(y)}u(!1)},o),C=React.useCallback(async y=>{if(y.link){window.open(y.link);return}I(!0);let g;try{g=(await ConnectionProvider.getHandler().readObjects({model:"ir.attachment",ids:[y.id],context:l.current.getContext()}))[0]}catch(O){showDialog$8(O)}if(I(!1),!!g)if(g.datas){const O=await getMimeType(g.datas);openBase64InNewTab(g.datas,O.mime)}else c(g)},[]),b=React.useCallback(async y=>{c(y)},[]);return React.useEffect(()=>{v()},[v]),jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(AttachmentsButtonWrapper,{numberOfAttachments:o.length,attachments:f,disabled:r,loading:d,onAddNewAttachment:a,onListAllAttachments:s,onopenAttachmentLink:C,onOpenAttachmentDetail:b}),jsxRuntime.jsx(antd.Modal,{title:h("downloadingAttachment"),visible:m,footer:null,closable:!1,centered:!0,maskClosable:!1,children:jsxRuntime.jsx(antd.Spin,{})})]})}function FormActionBar({toolbar:e}){const{availableViews:o,currentView:r,setCurrentView:a,onFormSave:s,formHasChanges:c,formIsSaving:l,currentId:d,results:u,setCurrentItemIndex:f,currentItemIndex:p,setCurrentId:m,currentModel:I,setRemovingItem:h,removingItem:v,duplicatingItem:C,setDuplicatingItem:b,setResults:y,formIsLoading:g,attachments:O,formRef:w,setFormHasChanges:_,searchTreeRef:F,previousView:L,setPreviousView:E,goToResourceId:P}=React.useContext(ActionViewContext),{t:A,lang:W}=React.useContext(LocaleContext),J=React.useContext(ContentRootContext),{processAction:Y}=J||{},z=React.useContext(TabManagerContext),{openRelate:Q,openDefaultActionForModel:oe}=z||{};function te(N){if(c){showDialog({lang:W,onOk:()=>{N()}});return}N()}function X(N){if(c){showDialog$6({lang:W,onOk:()=>{N()}});return}N()}function ce(){u&&u.length>p+1?(f==null||f(p+1),m==null||m(u[p+1].id)):u&&p+1===u.length&&(f==null||f(0),m==null||m(u[0].id))}function Re(){u&&p>0?(f==null||f(p-1),m==null||m(u[p-1].id)):u&&p===0&&(f==null||f(u.length-1),m==null||m(u[u.length-1].id))}function xe(){showDialog$9({confirmMessage:A("confirmRemoveItem"),lang:W,onOk:()=>{de()}})}async function de(){try{h==null||h(!0),await ConnectionProvider.getHandler().delete({model:I,ids:[d]});const N=u==null?void 0:u.filter(re=>re.id!==d);y==null||y(N);let U=0;p>0&&p<=u.length-1&&(U=p-1),N!=null&&N[U]?(m==null||m(N==null?void 0:N[U].id),f==null||f(U)):(m==null||m(void 0),f==null||f(void 0))}catch(N){showDialog$3(JSON.stringify(N))}finally{h==null||h(!1)}}async function Ce(){try{b==null||b(!0);const N=await ConnectionProvider.getHandler().duplicate({id:d,model:I,context:w.current.getContext()});N&&await(P==null?void 0:P(N))}catch(N){showDialog$3(JSON.stringify(N))}finally{b==null||b(!1)}}const ee=l||v||g||C;function ue(N){Y==null||Y({actionData:N,values:w.current.getValues(),fields:w.current.getFields(),context:w.current.getContext(),onRefreshParentValues:()=>{w.current.fetchValues()}})}return r?jsxRuntime.jsxs(antd.Space,{wrap:!0,children:[g&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(antd.Spin,{}),separator$2(),separator$2()]}),jsxRuntime.jsx(NewButton,{disabled:l||g||v||C}),jsxRuntime.jsx(ActionButton,{icon:jsxRuntime.jsx(Icon.SaveOutlined,{}),tooltip:A("save"),disabled:!c||ee,loading:l,onClick:s}),jsxRuntime.jsx(ActionButton,{icon:jsxRuntime.jsx(Icon.CopyOutlined,{}),tooltip:A("duplicate"),disabled:c||l||d===void 0||C||g,loading:C,onClick:Ce}),jsxRuntime.jsx(ActionButton,{icon:jsxRuntime.jsx(Icon.DeleteOutlined,{}),tooltip:A("delete"),disabled:l||d===void 0||v||C||g,loading:v,onClick:xe}),separator$2(),jsxRuntime.jsx(ActionButton,{icon:jsxRuntime.jsx(Icon.InfoCircleOutlined,{}),tooltip:A("showLogs"),disabled:l||d===void 0||v||C||g,loading:!1,onClick:()=>{showLogInfo(I,d,A)}}),jsxRuntime.jsx(ActionButton,{icon:jsxRuntime.jsx(Icon.ReloadOutlined,{}),tooltip:A("refresh"),disabled:l||d===void 0||v||C||g,loading:!1,onClick:()=>{te(()=>{w.current.fetchValues()})}}),separator$2(),jsxRuntime.jsx(ChangeViewButton,{currentView:r,previousView:L,availableViews:o,onChangeView:N=>{E==null||E(r),_==null||_(!1),a==null||a(N)},disabled:ee,formHasChanges:c}),separator$2(),jsxRuntime.jsxs(antd.Space,{children:[jsxRuntime.jsx(ActionButton,{icon:jsxRuntime.jsx(Icon.LeftOutlined,{}),tooltip:A("previous"),disabled:ee,loading:!1,onClick:()=>{X(Re)}}),jsxRuntime.jsx(ActionButton,{icon:jsxRuntime.jsx(Icon.RightOutlined,{}),tooltip:A("next"),disabled:ee,loading:!1,onClick:()=>{X(ce)}})]}),separator$2(),jsxRuntime.jsx(DropdownButton,{icon:jsxRuntime.jsx(Icon.ThunderboltOutlined,{}),disabled:ee,tooltip:A("actions"),items:e==null?void 0:e.action,onItemClick:N=>{!N||ue(N)}}),jsxRuntime.jsx(DropdownButton,{icon:jsxRuntime.jsx(Icon.PrinterOutlined,{}),disabled:ee,tooltip:A("reports"),items:e==null?void 0:e.print,onItemClick:N=>{!N||ue({...N,datas:{...N.datas||{},ids:[d]}})}}),jsxRuntime.jsx(DropdownButton,{icon:jsxRuntime.jsx(Icon.EnterOutlined,{}),disabled:ee,tooltip:A("related"),items:e==null?void 0:e.relate,onItemClick:async N=>{!N||Q({relateData:N,values:w.current.getValues(),fields:w.current.getFields(),action_id:N.id,action_type:N.type})}}),jsxRuntime.jsx(AttachmentsButton,{disabled:ee,attachments:O,onAddNewAttachment:()=>{const N=d,U=I;oe({model:"ir.attachment",values:{selection_associated_object:`${U},${N}`},forced_values:{res_model:U,res_id:N},initialViewType:"form"})},onListAllAttachments:()=>{const N=d;oe({model:"ir.attachment",domain:[["res_model","=",`${I}`],["res_id","=",`${N}`]],initialViewType:"tree"})},onViewAttachmentDetails:N=>{oe({model:"ir.attachment",res_id:N.id,initialViewType:"form"})}})]}):null}function separator$2(){return jsxRuntime.jsx("div",{className:"inline-block w-2"})}const LinkInput=e=>{const{ooui:o,value:r,onChange:a,valueValidator:s,linkPrefix:c=""}=e,{id:l,readOnly:d,required:u}=o,f=u&&!d?Config.requiredClass:void 0,p=React.useContext(FormContext$1),{elementHasLostFocus:m}=p||{},[I,h]=React.useState(!1),[v,C]=React.useState(!1);React.useEffect(()=>{d&&!I&&C(!1),!r&&!d&&(h(!0),C(!0))},[I,d]);const b=y=>{a==null||a(y.target.value)};return jsxRuntime.jsxs(antd.Row,{gutter:8,wrap:!1,align:"middle",children:[d?null:jsxRuntime.jsx(antd.Col,{flex:"32px",children:I?jsxRuntime.jsx(antd.Button,{icon:jsxRuntime.jsx(Icon.CheckOutlined,{}),onClick:()=>{s(r)&&(h(!1),C(!1))},tabIndex:-1}):jsxRuntime.jsx(antd.Button,{icon:jsxRuntime.jsx(Icon.EditOutlined,{}),onClick:()=>{h(!0),C(!0)},tabIndex:-1})}),jsxRuntime.jsx(antd.Col,{flex:"auto",children:v?jsxRuntime.jsx(antd.Input,{id:l,onChange:b,className:f,value:r,onBlur:()=>{s(r)&&(h(!1),C(!1),m==null||m())}}):jsxRuntime.jsx("a",{href:`${c}${r}`,style:{color:"#1890ff",paddingRight:15},target:"_blank",children:r})})]})},Url=e=>{const{ooui:o}=e,{required:r}=o;return jsxRuntime.jsx(Field$1,{required:r,...e,children:jsxRuntime.jsx(LinkInput,{ooui:o,valueValidator:a=>a?isURL(a):!1})})},Email=e=>{const{ooui:o}=e,{required:r}=o;return jsxRuntime.jsx(Field$1,{required:r,...e,children:jsxRuntime.jsx(LinkInput,{ooui:o,linkPrefix:"mailto:",valueValidator:a=>a?isEmail(a):!1})})},GoToResourceModal=e=>{const{visible:o,onIdSubmitted:r,onCancel:a,isSearching:s}=e,{t:c}=React.useContext(LocaleContext);function l(d){r(d.id)}return jsxRuntime.jsx(antd.Modal,{title:c("goToResourceId"),centered:!0,visible:o,footer:null,destroyOnClose:!0,onCancel:a,maskClosable:!1,children:jsxRuntime.jsxs(antd.Form,{layout:"vertical",onFinish:l,autoComplete:"off",children:[jsxRuntime.jsx(antd.Form.Item,{name:"id",label:c("searchId"),rules:[{required:!0,type:"number"}],children:jsxRuntime.jsx(antd.InputNumber,{style:{width:"100%"},autoFocus:!0})}),jsxRuntime.jsx(antd.Row,{align:"middle",justify:"end",children:jsxRuntime.jsx(antd.Col,{children:jsxRuntime.jsxs(antd.Space,{children:[jsxRuntime.jsx(antd.Button,{icon:jsxRuntime.jsx(Icon.CloseOutlined,{}),htmlType:"button",onClick:a,disabled:s,children:c("cancel")}),jsxRuntime.jsx(antd.Button,{loading:s,style:{marginLeft:15},icon:jsxRuntime.jsx(Icon.CheckOutlined,{}),htmlType:"submit",type:"primary",disabled:s,children:c("ok")})]})})})]})})};function ButtonWithBadge(e){const{badgeNumber:o=0,...r}=e;return jsxRuntime.jsxs("div",{style:{position:"relative"},children:[o>0&&jsxRuntime.jsx("div",{style:{position:"absolute",left:-10,top:-10,zIndex:2},children:jsxRuntime.jsx("span",{style:{display:"inline-block",minWidth:"22px",padding:"2px",borderRadius:"50%",fontSize:"12px",textAlign:"center",background:"#1890FF",color:"#fefefe"},children:o})}),jsxRuntime.jsx(ButtonWithTooltip,{...r,style:{width:46,zIndex:0}})]})}function GraphActionBar({refreshGraph:e}){const{t:o}=React.useContext(LocaleContext),{availableViews:r,currentView:a,setCurrentView:s,searchParams:c,searchVisible:l,setSearchVisible:d,graphIsLoading:u,previousView:f,setPreviousView:p}=React.useContext(ActionViewContext);return jsxRuntime.jsxs(antd.Space,{wrap:!0,children:[jsxRuntime.jsx(ButtonWithBadge,{icon:jsxRuntime.jsx(Icon.FilterOutlined,{style:{color:l?"white":void 0}}),tooltip:o("advanced_search"),type:l?"primary":"default",onClick:()=>{d==null||d(!l)},disabled:u,badgeNumber:c==null?void 0:c.length}),jsxRuntime.jsx(ActionButton,{icon:jsxRuntime.jsx(Icon.ReloadOutlined,{}),tooltip:o("refresh"),disabled:u,loading:!1,onClick:()=>{e()}}),jsxRuntime.jsx(ChangeViewButton,{currentView:a,availableViews:r,onChangeView:m=>{p==null||p(a),s==null||s(m)},disabled:!1,previousView:f})]})}const{Title:Title$1,Text:Text$1}=antd.Typography;function TitleHeader(e){const{title:o,children:r}=e,{title:a,currentView:s,currentId:c,currentItemIndex:l,results:d,totalItems:u,selectedRowItems:f}=React.useContext(ActionViewContext),{t:p}=React.useContext(LocaleContext);function m(){if((s==null?void 0:s.type)==="form")return c?u===0?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[p("editingDocument")," (id: ",jsxRuntime.jsx(Text$1,{copyable:!0,children:c}),")"]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[p("register")," ",l===void 0?1:l+1," /"," ",d.length," ",p("of")," ",u," - ",p("editingDocument")," (id:"," ",jsxRuntime.jsx(Text$1,{copyable:!0,children:c}),")"]}):"";if((s==null?void 0:s.type)==="tree"&&f){if(f.length===1)return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:["1 ",p("selectedRegisters")," - (id:"," ",jsxRuntime.jsx(Text$1,{copyable:!0,children:f[0].id}),")"]});if(f.length>1)return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[f.length," ",p("selectedRegisters"),jsxRuntime.jsx(Text$1,{copyable:{text:f.map(I=>I.id).join(", ")}})]})}return null}return jsxRuntime.jsxs("div",{style:{position:"sticky",top:80,zIndex:3},children:[jsxRuntime.jsxs(antd.Row,{className:"rounded shadow-md bg-blueGray-100",style:{padding:"1em"},align:"middle",children:[jsxRuntime.jsxs(antd.Col,{flex:2,children:[jsxRuntime.jsx(Title$1,{level:3,style:{marginBottom:0},children:o||a}),m()]}),jsxRuntime.jsx(antd.Col,{flex:3,children:jsxRuntime.jsx(antd.Row,{justify:"end",children:r})})]}),jsxRuntime.jsx("div",{className:"pb-5"})]})}const GraphActionView=e=>{const{viewData:o,visible:r,model:a,context:s,domain:c,formView:l,treeView:d}=e,u=React.useRef(),f=React.useContext(ActionViewContext),{setResults:p=void 0,setCurrentItemIndex:m=void 0,currentId:I=void 0,results:h=void 0,setSelectedRowItems:v=void 0,setSearchParams:C=void 0,searchVisible:b=!0,setSearchVisible:y=void 0,sorter:g=void 0,setSorter:O=void 0,setTotalItems:w=void 0,setSearchTreeNameSearch:_=void 0,setTreeIsLoading:F=void 0,limit:L,setLimit:E,searchParams:P,searchValues:A,setSearchValues:W,currentView:J}=f||{},[Y,z]=React.useState(!0);React.useEffect(()=>{var Re;(Re=u.current)==null||Re.refresh()},[P]),React.useEffect(()=>{o.view_id!==J.view_id&&z(!0)},[J]);const{clear:Q,searchFilterLoading:oe,searchError:te,offset:X,tableRefreshing:ce}=useSearch({model:a,setSearchTreeNameSearch:_,setSelectedRowItems:v,searchParams:P,setSearchValues:W,setSearchParams:C,setSearchVisible:y,setTreeIsLoading:F,context:s,formView:l,treeView:d,sorter:g,setSorter:O,setCurrentItemIndex:m,setResultsActionView:p,resultsActionView:h,domain:c,currentId:I,setActionViewTotalItems:w,limit:L,setLimit:E});return!r||!o?null:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(TitleHeader,{title:o.name,children:jsxRuntime.jsx(GraphActionBar,{refreshGraph:()=>{u.current.refresh()}})}),jsxRuntime.jsx(SearchFilter,{fields:{...d.fields,...l.fields},searchFields:mergeSearchFields([l.search_fields,d.search_fields]),limit:L,onClear:Q,offset:X,isSearching:oe,onSubmit:Re=>{z(!1),C==null||C(Re.params),y==null||y(!1)},searchError:te,searchVisible:b,searchValues:A,showLimitOptions:!1}),ce?jsxRuntime.jsx(antd.Spin,{}):jsxRuntime.jsx(Graph,{ref:u,view_id:o.view_id,model:a,context:s,domain:mergeParams(P||[],c),limit:Y?L:void 0,manualIds:Y?h==null?void 0:h.map(Re=>Re.id):void 0})]})},FormActionView=e=>{const{visible:o,formRef:r,model:a,currentId:s,domain:c,formView:l,context:d,defaultValues:u,forcedValues:f,results:p,setResults:m,setCurrentItemIndex:I}=e;return o?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(TitleHeader,{children:jsxRuntime.jsx(FormActionBar,{toolbar:l==null?void 0:l.toolbar})}),jsxRuntime.jsx(Form$1,{rootForm:!0,ref:r,model:a,defaultValues:u,forcedValues:f,formView:l,actionDomain:c,id:s,parentContext:d,onSubmitSucceed:(h,v)=>{p.findIndex(b=>b.id===h)===-1&&(p.push(v),m(p),I(p.length-1))}})]}):null};function SearchBar(e){const{onSearch:o,disabled:r=!1,searchText:a}=e,{t:s}=React.useContext(LocaleContext),[c]=antd.Form.useForm(),[l,d]=React.useState(!1);function u(p){o(p.search)}React.useEffect(()=>{c.setFieldsValue({search:a})},[a]);function f(){d(!1),c.setFieldsValue({search:void 0}),o(void 0)}return jsxRuntime.jsx(antd.Form,{form:c,onFinish:u,autoComplete:"off",children:jsxRuntime.jsxs(antd.Row,{align:"middle",justify:"end",children:[jsxRuntime.jsx(antd.Col,{children:jsxRuntime.jsx(antd.Form.Item,{name:"search",noStyle:!0,children:jsxRuntime.jsx(antd.Input,{autoFocus:!0,disabled:r,onChange:p=>{d(p.target.value.length>0)},suffix:(l||a&&a.length>0)&&jsxRuntime.jsx(antd.Tooltip,{title:s("clear"),children:jsxRuntime.jsx(Icon.CloseCircleFilled,{style:{color:"rgba(0,0,0,.45)"},onClick:f})})})})}),jsxRuntime.jsx(antd.Col,{children:jsxRuntime.jsx(antd.Button,{htmlType:"submit",disabled:r,children:s("search")})})]})})}function TreeActionBar(e){var xe,de;const{availableViews:o,currentView:r,setCurrentView:a,selectedRowItems:s,setRemovingItem:c,removingItem:l,duplicatingItem:d,setDuplicatingItem:u,currentModel:f,searchTreeRef:p,setCurrentId:m,setCurrentItemIndex:I,searchParams:h,searchVisible:v,setSearchVisible:C,setSearchTreeNameSearch:b,searchTreeNameSearch:y,treeIsLoading:g,setPreviousView:O,previousView:w,results:_,limit:F,totalItems:L}=React.useContext(ActionViewContext),{parentContext:E={},treeExpandable:P,toolbar:A}=e,{t:W,lang:J}=React.useContext(LocaleContext),Y=React.useContext(ContentRootContext),{processAction:z}=Y||{},[Q,oe]=React.useState(!1);function te(){showDialog$9({confirmMessage:W("confirmRemove"),lang:J,onOk:()=>{X()}})}async function X(){var Ce;try{c==null||c(!0),await ConnectionProvider.getHandler().delete({model:f,ids:s.map(ee=>ee.id)}),m==null||m(void 0),I==null||I(void 0),(Ce=p==null?void 0:p.current)==null||Ce.refreshResults()}catch(ee){showDialog$8(ee)}finally{c==null||c(!1)}}async function ce(){var Ce;try{u==null||u(!0);const ee=s[0].id;await ConnectionProvider.getHandler().duplicate({id:ee,model:f,context:{...E}})&&((Ce=p==null?void 0:p.current)==null||Ce.refreshResults())}catch(ee){showDialog$8(ee)}finally{u==null||u(!1)}}function Re(Ce){z==null||z({actionData:Ce,values:{active_id:s==null?void 0:s.map(ee=>ee.id)[0],active_ids:s==null?void 0:s.map(ee=>ee.id)},fields:{},context:{...E,active_id:s==null?void 0:s.map(ee=>ee.id)[0],active_ids:s==null?void 0:s.map(ee=>ee.id)},onRefreshParentValues:()=>{var ee;(ee=p==null?void 0:p.current)==null||ee.refreshResults()}})}return jsxRuntime.jsxs(antd.Space,{wrap:!0,children:[P?null:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(SearchBar,{disabled:d||l||g,searchText:y,onSearch:Ce=>{Ce&&Ce.trim().length>0?b==null||b(Ce):b==null||b(void 0)}}),separator$1(),jsxRuntime.jsx(NewButton,{disabled:g}),separator$1(),jsxRuntime.jsx(ActionButton,{icon:jsxRuntime.jsx(Icon.CopyOutlined,{}),tooltip:W("duplicate"),disabled:!s||(s==null?void 0:s.length)!==1||d||g,loading:d,onClick:ce}),jsxRuntime.jsx(ActionButton,{icon:jsxRuntime.jsx(Icon.DeleteOutlined,{}),tooltip:W("delete"),disabled:!(s&&(s==null?void 0:s.length)>0)||g,loading:l,onClick:te}),separator$1()]}),!P&&jsxRuntime.jsx(ButtonWithBadge,{icon:jsxRuntime.jsx(Icon.FilterOutlined,{style:{color:v?"white":void 0}}),tooltip:W("advanced_search"),type:v?"primary":"default",onClick:()=>{C==null||C(!v)},disabled:d||l||g,badgeNumber:h==null?void 0:h.length}),jsxRuntime.jsx(ActionButton,{icon:jsxRuntime.jsx(Icon.InfoCircleOutlined,{}),tooltip:W("showLogs"),disabled:!(s&&(s==null?void 0:s.length)>0)||g,loading:!1,onClick:()=>{showLogInfo(f,s[0].id,W)}}),jsxRuntime.jsx(ActionButton,{icon:jsxRuntime.jsx(Icon.ReloadOutlined,{}),tooltip:W("refresh"),disabled:d||l||g,loading:!1,onClick:()=>{var Ce;(Ce=p==null?void 0:p.current)==null||Ce.refreshResults()}}),!P&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[separator$1(),jsxRuntime.jsx(ChangeViewButton,{currentView:r,availableViews:o,onChangeView:Ce=>{O==null||O(r),a==null||a(Ce)},previousView:w,disabled:g})]}),separator$1(),jsxRuntime.jsx(DropdownButton,{icon:jsxRuntime.jsx(Icon__default.default,{component:()=>jsxRuntime.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-database-export",width:"18",height:"18",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"#2c3e50",fill:"none","stroke-linecap":"round","stroke-linejoin":"round",children:[jsxRuntime.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),jsxRuntime.jsx("ellipse",{cx:"12",cy:"6",rx:"8",ry:"3"}),jsxRuntime.jsx("path",{d:"M4 6v6c0 1.657 3.582 3 8 3a19.84 19.84 0 0 0 3.302 -.267m4.698 -2.733v-6"}),jsxRuntime.jsx("path",{d:"M4 12v6c0 1.599 3.335 2.905 7.538 2.995m8.462 -6.995v-2m-6 7h7m-3 -3l3 3l-3 3"})]})}),tooltip:W("export"),items:[{id:"print_screen",name:"Imprimir pantalla"},{id:"export",name:"Exportaci\xF3n avanzada"}],onItemClick:Ce=>{!Ce||Re(Ce)},disabled:d||l||g}),separator$1(),jsxRuntime.jsx(DropdownButton,{icon:jsxRuntime.jsx(Icon.ThunderboltOutlined,{}),disabled:!(s&&(s==null?void 0:s.length)>0)||g,tooltip:W("actions"),items:A==null?void 0:A.action,onItemClick:Ce=>{!Ce||Re(Ce)}}),jsxRuntime.jsx(DropdownButton,{icon:jsxRuntime.jsx(Icon.PrinterOutlined,{}),disabled:!(s&&(s==null?void 0:s.length)>0)||g,tooltip:W("reports"),items:A==null?void 0:A.print,onItemClick:Ce=>{!Ce||Re({...Ce,datas:{...Ce.datas||{},ids:s.map(ee=>ee.id)}})}}),jsxRuntime.jsx(ExportModal,{visible:Q,locale:J,onClose:()=>oe(!1),model:f,treeFields:(xe=p==null?void 0:p.current)==null?void 0:xe.getFields(),domain:mergeParams(((de=p==null?void 0:p.current)==null?void 0:de.getDomain())||[],h||[]),limit:F,totalRegisters:L,selectedRegistersToExport:_&&_.length&&_.length>0?_.length:void 0,context:E})]})}function separator$1(){return jsxRuntime.jsx("div",{className:"inline-block w-2"})}const TreeActionView=e=>{const{visible:o,searchTreeRef:r,model:a,context:s,formView:c,treeView:l,domain:d,setCurrentItemIndex:u,results:f,setCurrentId:p,setCurrentView:m,availableViews:I,searchTreeNameSearch:h}=e;return o?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(TitleHeader,{children:jsxRuntime.jsx(TreeActionBar,{toolbar:l==null?void 0:l.toolbar,parentContext:s,treeExpandable:(l==null?void 0:l.isExpandable)||!1})}),jsxRuntime.jsx(SearchTree$1,{ref:r,rootTree:!0,model:a,parentContext:s,nameSearch:h,formView:c,treeView:l,domain:d,onRowClicked:v=>{const{id:C}=v;p(C);const b=f.findIndex(g=>g.id===C);u(b);const y=I.find(g=>g.type==="form");m(y)}})]}):null},DashboardActionContext=React__default.default.createContext(null),DashboardActionProvider=e=>{const[o,r]=React.useState(!1),[a,s]=React.useState(!1),{children:c,dashboardRef:l,openAction:d}=e;return jsxRuntime.jsx(DashboardActionContext.Provider,{value:{isLoading:o,setIsLoading:r,dashboardRef:l,openAction:d,moveItemsEnabled:a,setMoveItemsEnabled:s},children:c})};function DashboardActionBar(){const{isLoading:e,dashboardRef:o,moveItemsEnabled:r,setMoveItemsEnabled:a}=React.useContext(DashboardActionContext),{t:s}=React.useContext(LocaleContext);return jsxRuntime.jsxs(antd.Space,{wrap:!0,children:[jsxRuntime.jsx(ActionButton,{icon:jsxRuntime.jsx(Icon.BorderOuterOutlined,{style:{color:r?"white":void 0}}),type:r?"primary":"default",tooltip:s("moveDashboard"),disabled:e,loading:!1,onClick:()=>{a(!r)}}),separator(),jsxRuntime.jsx(ActionButton,{icon:jsxRuntime.jsx(Icon.SettingOutlined,{}),tooltip:s("configDashboard"),disabled:e,loading:!1,onClick:()=>{o==null||o.current.configDashboard()}}),jsxRuntime.jsx(ActionButton,{icon:jsxRuntime.jsx(Icon.ReloadOutlined,{}),tooltip:s("refresh"),disabled:e,loading:!1,onClick:()=>{o==null||o.current.refresh()}})]})}function separator(){return jsxRuntime.jsx("div",{className:"inline-block w-2"})}const DashboardActionView=e=>{const{dashboardData:o}=e,r=React.useRef(),a=React.useContext(TabManagerContext),{openShortcut:s}=a||{};return o?jsxRuntime.jsxs(DashboardActionProvider,{dashboardRef:r,openAction:c=>{s(c)},children:[jsxRuntime.jsx(TitleHeader,{children:jsxRuntime.jsx(DashboardActionBar,{})}),jsxRuntime.jsx(Dashboard$1,{ref:r,model:o.model,id:o.id,context:o==null?void 0:o.context,configAction:o==null?void 0:o.configAction})]}):null};function ActionView(e,o){const{domain:r,model:a,context:s,views:c,title:l,setCanWeClose:d,tabKey:u,initialView:f,formDefaultValues:p,formForcedValues:m={},res_id:I=!1,action_id:h,action_type:v,treeExpandable:C=!1,limit:b}=e,[y,g]=React.useState(),[O,w]=React.useState([]),[_,F]=React.useState(!0),L=I||void 0,[E,P]=React.useState(L),[A,W]=React.useState([]),[J,Y]=React.useState(),[z,Q]=React.useState([]),[oe,te]=React.useState(),[X,ce]=React.useState(0),[Re,xe]=React.useState(!1),[de,Ce]=React.useState(!1),[ee,ue]=React.useState(),{t:N}=React.useContext(LocaleContext),U=React.useRef(),re=React.useRef(),Te=React.useContext(TabManagerContext),{setCurrentView:Fe,setCurrentId:M,tabs:j,activeKey:we,openAction:je}=Te||{};reactHotkeysHook.useHotkeys("ctrl+g,command+g",Ct=>{Ct.preventDefault(),Tt()},[we,j,y,J,z]);function tt(Ct){P(Ct),M==null||M(Ct)}function Ne(Ct){g(Ct),Fe==null||Fe(Ct)}React.useImperativeHandle(o,()=>({canWeClose:yt}));const Ge=async()=>{F(!0);const Ct=[];for(const Ft of c){const[Ut,Gt]=Ft;let Qt;try{Gt!=="dashboard"&&(Qt=await ConnectionProvider.getHandler().getView({model:a,type:Gt,id:Ut,context:s}))}catch(Wt){console.error(`${a} - ${Gt}\xA0- ${JSON.stringify(Wt,null,2)}`);continue}switch(Gt){case"dashboard":{const Wt=c.find(un=>{const[,_t]=un;return _t==="form"});let fn;Wt&&(fn={action_id:h,action_type:v,name:l,res_id:s.active_id,res_model:a,view_id:Wt[0],view_type:Wt[1]}),Ct.push({type:"dashboard",id:s.active_id,model:a,context:s,configAction:fn});break}case"form":{Ct.push({...Qt});break}case"tree":{Ct.push({...Qt,isExpandable:C});break}case"graph":{Ct.push({...Qt});break}}}if(!f&&Ct.find(Ft=>Ft.type==="tree")){const Ft=Ct.find(Ut=>Ut.type==="tree");Ne(Ft)}else if(f){const Ft=Ct.find(Ut=>f.id?Ut.type===f.type&&Ut.view_id===f.id:Ut.type===f.type);Ne(Ft)}else{const Ft=Ct.find(Ut=>Ut.type==="form");Ne(Ft)}w(Ct),F(!1)};d({tabKey:u,canWeClose:yt}),React.useEffect(()=>{const Ct=O.find(Ut=>Ut.type==="tree"),Ft=O.find(Ut=>f.id?Ut.type===f.type&&Ut.view_id===f.id:Ut.type===f.type);Ne(Ft||Ct),I?M==null||M(L):(tt(void 0),Y(void 0)),Ge()},[a,c,I]),React.useEffect(()=>{we===u&&(M==null||M(E),Fe==null||Fe(y))},[j,we]);async function yt(){return y.type==="form"?await U.current.cancelUnsavedChanges():!0}async function Tt(){we===u&&(y.type==="form"&&!await U.current.cancelUnsavedChanges()||xe(!0))}async function Ot(Ct){var Qt;Ce(!0);const Ft=z.findIndex(Wt=>Wt.id===Ct);let Ut;if(Ft===-1){try{Ut=(Qt=await ConnectionProvider.getHandler().readObjects({model:a,ids:[Ct],context:s}))==null?void 0:Qt[0]}catch{}if(!Ut){Ce(!1),xe(!1),showDialog$7(N("idNotFound"));return}}else Ut=z[Ft];Ce(!1),xe(!1);const Gt=c.find(Wt=>Wt[1]==="form");je({domain:[],context:s,model:a,views:c,title:l,target:"current",initialView:{id:Gt==null?void 0:Gt[0],type:"form"},action_id:h,action_type:v,res_id:Ct})}function $t(){return O.map(Ct=>{switch(Ct.type){case"form":return jsxRuntime.jsx(FormActionView,{formRef:U,currentId:E,visible:y.type===Ct.type&&y.view_id===Ct.view_id,formView:Ct,model:a,context:s,domain:r,defaultValues:p,forcedValues:m,results:z,setResults:Q,setCurrentItemIndex:Y},`${Ct.type}-${Ct.view_id}`);case"tree":return jsxRuntime.jsx(TreeActionView,{visible:y.type===Ct.type&&y.view_id===Ct.view_id,limit:b,model:a,context:s,domain:r,formView:O.find(Ft=>Ft.type==="form"),treeView:Ct,searchTreeRef:re,searchTreeNameSearch:ee,availableViews:O,results:z,setCurrentItemIndex:Y,setCurrentId:tt,setCurrentView:Ne},`${Ct.type}-${Ct.view_id}`);case"graph":return jsxRuntime.jsx(GraphActionView,{visible:y.type===Ct.type&&y.view_id===Ct.view_id,viewData:Ct,model:a,context:s,domain:r,treeView:O.find(Ft=>Ft.type==="tree"),formView:O.find(Ft=>Ft.type==="form")},`${Ct.type}-${Ct.view_id}`);case"dashboard":return jsxRuntime.jsx(DashboardActionView,{dashboardData:Ct},`${Ct.type}-${Ct.view_id}`)}})}function Vt(){if(E===void 0&&y.type==="form")U.current.clearAndReload();else{tt(void 0);const Ct=O.find(Ft=>Ft.type==="form");Ne(Ct)}}return _?jsxRuntime.jsx(antd.Spin,{}):y?jsxRuntime.jsxs(ActionViewProvider,{title:l,currentView:y,setCurrentView:Ne,availableViews:O,formRef:U,searchTreeRef:re,onNewClicked:Vt,currentId:E,setCurrentId:tt,setCurrentItemIndex:Y,currentItemIndex:J,results:z,setResults:Q,currentModel:a,sorter:oe,setSorter:te,totalItems:X,setTotalItems:ce,selectedRowItems:A,setSelectedRowItems:W,setSearchTreeNameSearch:ue,searchTreeNameSearch:ee,goToResourceId:Ot,limit:b,children:[$t(),jsxRuntime.jsx(GoToResourceModal,{visible:Re,onIdSubmitted:Ot,isSearching:de,onCancel:()=>{xe(!1)}})]}):null}const ActionView$1=React.forwardRef(ActionView);var getRandomValues,rnds8=new Uint8Array(16);function rng(){if(!getRandomValues&&(getRandomValues=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!getRandomValues))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return getRandomValues(rnds8)}const REGEX=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function validate(e){return typeof e=="string"&®EX.test(e)}for(var byteToHex=[],i=0;i<256;++i)byteToHex.push((i+256).toString(16).substr(1));function stringify(e){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=(byteToHex[e[o+0]]+byteToHex[e[o+1]]+byteToHex[e[o+2]]+byteToHex[e[o+3]]+"-"+byteToHex[e[o+4]]+byteToHex[e[o+5]]+"-"+byteToHex[e[o+6]]+byteToHex[e[o+7]]+"-"+byteToHex[e[o+8]]+byteToHex[e[o+9]]+"-"+byteToHex[e[o+10]]+byteToHex[e[o+11]]+byteToHex[e[o+12]]+byteToHex[e[o+13]]+byteToHex[e[o+14]]+byteToHex[e[o+15]]).toLowerCase();if(!validate(r))throw TypeError("Stringified UUID is invalid");return r}function v4(e,o,r){e=e||{};var a=e.random||(e.rng||rng)();if(a[6]=a[6]&15|64,a[8]=a[8]&63|128,o){r=r||0;for(var s=0;s<16;++s)o[r+s]=a[s];return o}return stringify(a)}async function fetchAction({actionId:e,rootContext:o={},globalValues:r={}}){const a="ir.actions.act_window",s=`${a},${e}`,c=await ConnectionProvider.getHandler().getActionData({action:s,context:o}),l=ooui.parseContext({context:c.context,values:r,fields:{}}),d=c.domain?await ConnectionProvider.getHandler().evalDomain({domain:c.domain,values:r,context:{...o,...l}}):[],{res_model:u,views:f,name:p,limit:m,view_type:I}=c,h=I==="tree",v=[];for(const g of f){const[O,w]=g;if(O)v.push(g);else{const{view_id:_}=await ConnectionProvider.getHandler().getView({model:u,type:w,id:O,context:{...o,...l}});v.push([_,w])}}const[C,b]=v[0],y={id:C,type:b};return{title:p,actionId:e,actionType:a,key:v4(),views:f,model:u,context:{...o,...l},domain:d,initialView:y,limit:m,treeExpandable:h}}const styles$1="",styles="",ResponsiveReactGridLayout=reactGridLayout.WidthProvider(reactGridLayout.Responsive),DashboardGrid=e=>{const{children:o=[],onPositionItemsChanged:r}=e,a=React__default.default.Children.map(o,s=>{const{parms:c,id:l}=s.props;return jsxRuntime.jsx("div",{"data-grid":c,children:s},l)});return jsxRuntime.jsx(ResponsiveReactGridLayout,{className:"layout",cols:{lg:12,md:10,sm:6,xs:4,xxs:2},draggableHandle:".draggable-head",rowHeight:30,onLayoutChange:s=>{r==null||r(s.map(c=>({id:parseInt(c.i.replace(".$",""),10),x:c.x,y:c.y,w:c.w,h:c.h})))},children:a})},{Text}=antd.Typography,DashboardGridItem=e=>{const{id:o,title:r,children:a,action:s,openAction:c}=e;return jsxRuntime.jsxs("div",{className:"shadow-md rounded",style:{height:"100%",display:"flex",flexDirection:"column",overflow:"hidden",border:"1px solid #eee",backgroundColor:"white"},children:[jsxRuntime.jsxs(antd.Row,{className:"bg-blueGray-100",align:"middle",style:{borderBottom:"1px solid #ddd"},wrap:!1,children:[jsxRuntime.jsx(antd.Col,{flex:"auto",className:"draggable-head",style:{fontWeight:"bold",padding:"0.5rem",cursor:"grab",overflow:"hidden"},children:jsxRuntime.jsx(Text,{ellipsis:!0,children:r})}),s&&jsxRuntime.jsx(antd.Col,{flex:"25px",style:{padding:"0.5rem"},children:jsxRuntime.jsx(antd.Row,{justify:"end",align:"middle",children:jsxRuntime.jsx(Icon.ExportOutlined,{style:{cursor:"pointer"},onClick:()=>{c==null||c(s)}})})})]}),a]})},DEFAULT_SEARCH_LIMIT=80;function DashboardTree(e){const{action:o,model:r,view_id:a,onRowClicked:s,domain:c=[],visible:l=!0,parentContext:d={}}=e,[u,f]=React.useState(!1),[p,m]=React.useState(!1),[I,h]=React.useState(),[v,C]=React.useState(),[b,y]=React.useState(),[g,O]=React.useState(1),[w,_]=React.useState(0),F=React.useRef(DEFAULT_SEARCH_LIMIT),L=React.useRef([]),[E,P]=React.useState(0),[A,W]=React.useState([]),[J,Y]=React.useState(void 0),[z,Q]=React.useState(),[oe,te]=React.useState(),[X,ce]=React.useState(),[Re,xe]=React.useState(!1),de=React.useRef([]),Ce=M=>{xe(!0),O(M),_((M-1)*F.current)},ee=async()=>{const M=de.current.length>0?de.current:c,j=mergeParams(L.current,M),{colors:we}=getTree(v),{totalItems:je,results:tt,attrsEvaluated:Ne}=await ConnectionProvider.getHandler().searchForTree({params:j,limit:F.current,offset:w,model:I,fields:v.fields,context:d,attrs:we&&{colors:we}}),Ge=await je;P(Ge),Y(getColorMap(Ne));const yt=sortResults({resultsToSort:tt,sorter:z,fields:{...v.fields,...b.fields}});W(yt)},ue=async()=>{try{xe(!0),await ee()}catch(M){te(JSON.stringify(M))}finally{xe(!1)}};React.useEffect(()=>{!p||l&&ue()},[g,w,p,l]);const N=async M=>{m(!1),f(!0),ce(void 0);try{M==="action"?await U():await re(),m(!0)}catch(j){ce(j)}finally{f(!1)}},U=async()=>{const M=await ConnectionProvider.getHandler().getViewsForAction({action:o,context:d});de.current=M.domain,y(M.views.get("form")),C(M.views.get("tree")),h(M.model),F.current=M.limit},re=async()=>{h(r);const M=await ConnectionProvider.getHandler().getView({model:r,type:"form",context:d});y(M);const j=await ConnectionProvider.getHandler().getView({model:r,type:"tree",id:a,context:d});C(j)};React.useEffect(()=>{o?N("action"):r&&N("model")},[o,r]);const Te=M=>{const{id:j}=M;s({id:j,model:I,treeView:v})},Fe=()=>!v||!b?null:jsxRuntime.jsxs("div",{style:{overflowY:"scroll"},children:[oe&&jsxRuntime.jsx(antd.Alert,{className:"mt-10",message:oe,type:"error",banner:!0}),jsxRuntime.jsx(Tree,{showPagination:!1,total:E,limit:F.current,page:g,treeView:v,results:A,onRequestPageChange:Ce,loading:Re,onRowClicked:Te,colorsForResults:J,sorter:z,onChangeSort:M=>{Q==null||Q(M);const j=sortResults({resultsToSort:A,sorter:M,fields:{...v.fields,...b.fields}});W(j)}})]});return X?jsxRuntime.jsx(antd.Alert,{className:"mt-10",message:X,type:"error",banner:!0}):u?jsxRuntime.jsx(antd.Spin,{style:{padding:"2rem"}}):Fe()}const DashboardForm=e=>{const{model:o}=e,[r,a]=React.useState();React.useEffect(()=>{s()},[o]);async function s(){const c=await ConnectionProvider.getHandler().search({params:[],model:o,limit:1});c.length>0&&a(c[0].id)}return jsxRuntime.jsx("div",{style:{padding:"0.5rem",overflowY:"scroll"},children:jsxRuntime.jsx(Form$1,{...e,model:o,id:r,readOnly:!0})})},itemsField="line_ids";function Dashboard(e,o){const{model:r,context:a={},id:s,configAction:c}=e,[l,d]=React.useState([]),[u,f]=React.useState(!1),[p,m]=React.useState(),{setIsLoading:I,openAction:h,moveItemsEnabled:v}=React.useContext(DashboardActionContext),C=React.useRef(),b=React.useRef();React.useEffect(()=>{y()},[r,s,a]),React.useImperativeHandle(o,()=>({refresh:()=>{y()},configDashboard:L}));async function y(){f(!0),I(!0),m(void 0);try{const E=await g(),P=await w(E),A=E.fields[itemsField].relation,W=P[itemsField].items;b.current=E.fields;const J=await O({items:W,model:A,context:a}),Y=await _(J);d(Y),f(!1),I(!1)}catch(E){m(JSON.stringify(E))}}async function g(){return await ConnectionProvider.getHandler().getView({model:r,type:"form",context:a})}async function O({items:E,model:P,context:A}){return C.current=(await ConnectionProvider.getHandler().getView({model:P,type:"form",context:A})).fields,await readObjectValues({treeFields:C.current,formFields:C.current,model:P,items:E,context:A})}async function w(E){return(await ConnectionProvider.getHandler().readObjects({model:r,ids:[s],fields:E.fields,context:a}))[0]}async function _(E){const P=[];for(const A of E){const{values:W}=A;if(W.action_id&&W.action_id.length>0){const J=parseInt(W.action_id[0],10),Y=await fetchAction({actionId:J,rootContext:a});P.push({...A,actionData:Y})}}return P}async function F(E){if(!v)return;const P=E.filter(Y=>{const z=l.find(oe=>oe.id===Y.id);if(!z)return!1;if(!z.position)return!0;const Q={...JSON.parse(z.position.replace(/'/g,'"')),id:z.id};return JSON.stringify(Y)!==JSON.stringify(Q)});if(P.length===0)return;const W=l.filter(Y=>P.map(z=>z.id).includes(Y.id)).map(Y=>{const z={...P.find(Q=>Q.id===Y.id)};return delete z.id,{...Y},{...Y,operation:"pendingUpdate",values:{...Y.values,position:JSON.stringify(z).replace(/"/g,"'")}}}),J={fields:C.current,items:W};await ConnectionProvider.getHandler().update({model:r,id:s,values:{[itemsField]:J},fields:b.current,context:a})}async function L(){h(c)}return p?jsxRuntime.jsx(antd.Alert,{className:"mt-10 mb-20",message:p,type:"error",banner:!0}):u?jsxRuntime.jsx(Icon.LoadingOutlined,{}):jsxRuntime.jsx(DashboardGrid,{onPositionItemsChanged:F,children:l.map((E,P)=>{const{actionData:A,values:W}=E,{position:J,id:Y}=W,{actionId:z,actionType:Q,key:oe,title:te,views:X,model:ce,context:Re,domain:xe,initialView:de,limit:Ce}=A;let ee={};try{ee=JSON.parse(J.replace(/'/g,'"'))}catch{ee={x:P*2,y:0,w:2,h:3}}let ue=null;(de==null?void 0:de.type)==="graph"?ue=jsxRuntime.jsx(Graph,{view_id:X.filter(re=>re[1]==="graph")[0][0],model:ce,context:Re,domain:xe,limit:Ce}):(de==null?void 0:de.type)==="form"?ue=jsxRuntime.jsx(DashboardForm,{model:ce,actionDomain:xe}):(de==null?void 0:de.type)==="tree"?ue=jsxRuntime.jsx(DashboardTree,{model:ce,domain:xe,view_id:X.filter(re=>re[1]==="tree")[0][0],onRowClicked:re=>{const Te=X.find(Fe=>{const[,M]=Fe;return M==="form"});if(Te){const[Fe,M]=Te,{actionId:j,actionType:we,title:je,model:tt}=A,Ne={action_id:j,action_type:we,name:je,res_id:re.id,res_model:tt,view_id:Fe,view_type:M};h(Ne)}}}):de!==void 0&&(ue=jsxRuntime.jsx(ActionView$1,{action_id:z,action_type:Q,tabKey:oe,title:te,views:X,model:ce,context:Re,domain:xe,setCanWeClose:()=>{},initialView:de,limit:Ce}));let N;const U=X.find(re=>{const[,Te]=re;return Te==="tree"});if(U){const[re,Te]=U,{actionId:Fe,actionType:M,title:j,model:we}=A;N={action_id:Fe,action_type:M,name:j,res_id:!1,res_model:we,view_id:re,view_type:Te}}return jsxRuntime.jsx(DashboardGridItem,{id:Y,title:te,parms:ee,action:N,openAction:h,children:ue},Y)})})}const Dashboard$1=React.forwardRef(Dashboard),MultiCheckbox=e=>{const{ooui:o}=e;return jsxRuntime.jsx(Field$1,{type:"array",...e,children:jsxRuntime.jsx(MultiCheckboxInput,{ooui:o})})},MultiCheckboxInput=e=>{const{value:o,ooui:r,onChange:a}=e,{items:s=[]}=o||{},c=s.filter(E=>E.operation!=="pendingRemove").map(E=>E.id),[l,d]=React.useState([]),[u,f]=React.useState(),[p,m]=React.useState(!1),{relation:I,context:h,readOnly:v,field:C,columns:b}=r,y=React.useContext(FormContext$1),{getContext:g}=y||{};useDeepCompareEffect__default.default(()=>{w()},[s]);const O=E=>{a==null||a({items:E})};async function w(){m(!0);let E=[];if(r.domain){const P=await ConnectionProvider.getHandler().evalDomain({domain:r.domain,values:transformPlainMany2Ones({fields:y==null?void 0:y.getFields(),values:y.getPlainValues()}),context:y.getContext()});E=[...E,...P]}try{const A=(await ConnectionProvider.getHandler().search({model:I,params:E,fields:[C],context:{...g==null?void 0:g(),...h}})).map(W=>{const J=W[C];let Y=J;return Array.isArray(J)&&(Y=J[1]),{label:Y,value:W.id}});d(A)}catch(P){f(P)}finally{m(!1)}if(u)return jsxRuntime.jsx(antd.Alert,{className:"mt-10",message:u,type:"error",banner:!0})}const _=()=>{L(l.map(E=>E.value))},F=()=>{L([])},L=E=>{const P=s.map(W=>E.includes(W.id)?W.operation=="pendingRemove"?{...W,operation:"original"}:W:{id:W.id,operation:"pendingRemove"}),A=P.map(W=>W.id);E.filter(W=>!A.includes(W)).map(W=>{P.push({id:W,operation:"pendingLink"})}),O(P)};return p&&l.length===0?jsxRuntime.jsx(antd.Spin,{}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:jsxRuntime.jsxs("div",{className:"flex flex-row",children:[jsxRuntime.jsx(antd.Checkbox.Group,{value:l.length?c:[],disabled:v,onChange:L,style:{width:"100%"},children:jsxRuntime.jsx(antd.Row,{children:l.map(E=>jsxRuntime.jsx(antd.Col,{span:Math.floor(24/b),children:jsxRuntime.jsx(antd.Checkbox,{value:E.value,children:E.label})}))})}),!v&&jsxRuntime.jsxs(antd.Space,{children:[jsxRuntime.jsx(antd.Button,{onClick:_,disabled:c.length==l.length,children:"Check all"}),jsxRuntime.jsx(antd.Button,{onClick:F,disabled:c.length===0,children:"Uncheck all"})]})]})})},Radio=e=>{const{ooui:o}=e,{required:r}=o;return jsxRuntime.jsx(Field$1,{required:r,type:"any",...e,children:jsxRuntime.jsx(SelectionInput,{...e})})},SelectionInput=e=>{const{ooui:o,onChange:r,value:a}=e,{selectionValues:s,readOnly:c,direction:l}=o,d=Array.from(s.entries()),u=d&&d.length&&d.map(f=>{const[p,m]=f;return jsxRuntime.jsx(antd.Radio,{value:p,children:m},p)});return jsxRuntime.jsx(antd.Radio.Group,{disabled:c,onChange:r,value:a,children:jsxRuntime.jsx(antd.Space,{direction:l,children:u})})},Switch=e=>{const{ooui:o}=e,{id:r,readOnly:a,required:s}=o;return jsxRuntime.jsx(Field$1,{...e,valuePropName:"checked",children:jsxRuntime.jsx(SwitchInput,{id:r,readOnly:a,required:s})})},SwitchInput=e=>{const{required:o,readOnly:r,...a}=e;return jsxRuntime.jsx("div",{className:"flex flex-row",children:jsxRuntime.jsx(antd.Switch,{disabled:r,...a})})},Steps=e=>{const{ooui:o}=e,{required:r}=o;return jsxRuntime.jsx(Field$1,{required:r,type:"any",...e,children:jsxRuntime.jsx(StepsInput,{...e})})},StepsInput=e=>{const{ooui:o,value:r}=e,{selectionValues:a,errorField:s}=o,c=React.useContext(FormContext$1),l=Array.from(a.entries()),d=l.map(p=>p[0]).indexOf(r);let u="process",f="";return s&&(f=c.getFieldValue(s),f&&(u="error")),jsxRuntime.jsx(antd.Steps,{current:d,status:u,children:l.map((p,m)=>jsxRuntime.jsx(antd.Steps.Step,{title:p[1],description:m===d&&u==="error"?f:null}))})},CodeEditor=e=>{const{ooui:o}=e,{lang:r,height:a}=o,s=React.useContext(FormContext$1),{elementHasLostFocus:c}=s||{},l=d=>{d.onDidBlurEditorWidget(c)};return jsxRuntime.jsx(Field$1,{...e,children:jsxRuntime.jsx(Editor__default.default,{defaultLanguage:r||"",height:a||300,onMount:l})})},{Content}=antd.Layout,{Title}=antd.Typography;function Welcome(){const{t:e}=React.useContext(LocaleContext);return jsxRuntime.jsx(Content,{className:"m-5 select-none",children:jsxRuntime.jsx(Title,{level:5,children:e("welcome")})})}function RootView(e,o){const{children:r,globalValues:a={},rootContext:s={},lang:c}=e,[l,d]=React.useState("welcome"),[u,f]=React.useState([{title:tForLang("welcome",c),key:"welcome",closable:!0,content:jsxRuntime.jsx(Welcome,{})}]),p=React.useRef(new Map),m=React.useRef();React.useImperativeHandle(o,()=>({retrieveAndOpenAction:v,openShortcut:y}));function I(w){if(w===l){const _=u.findIndex(F=>F.key===w);u[_-1]&&d(u[_-1].key),u[_+1]&&d(u[_+1].key)}f(u.filter(_=>_.key!==w)),p.current.delete(w)}function h({tabKey:w,canWeClose:_}){p.current.set(w,_)}async function v({action:w,values:_,forced_values:F,initialViewType:L,res_id:E,domain:P=[]}){const A=await ConnectionProvider.getHandler().getActionData({action:w,context:s});if(A.type==="ir.actions.wizard"){showDialog$8("Action type not supported");return}const[W,J]=w.split(","),Y=parseInt(J),z=ooui.parseContext({context:A.context,values:a,fields:{}}),Q=A.domain?await ConnectionProvider.getHandler().evalDomain({domain:A.domain,values:a,context:{...s,...z}}):[],{res_model:oe,views:te,name:X,target:ce,view_type:Re,limit:xe}=A,de=Re==="tree",Ce=[];for(const ue of te){const[N,U]=ue;if(N)Ce.push(ue);else if(U==="dashboard")Ce.push([void 0,"dashboard"]);else{const{view_id:re}=await ConnectionProvider.getHandler().getView({model:oe,type:U,id:N,context:{...s,...z}});Ce.push([re,U])}}let ee;if(L){const[ue,N]=Ce.find(([U,re])=>re===L);ee={id:ue,type:N}}else{const[ue,N]=Ce[0];ee={id:ue,type:N}}O({domain:[...Q,...P],context:{...s,...z},model:oe,views:Ce,title:X,target:ce,initialView:ee,action_type:W,action_id:Y,values:_,forced_values:F,res_id:E,treeExpandable:de,limit:xe})}function C({title:w,content:_,key:F,action:L}){let E=[...u];u.length===1&&u[0].key==="welcome"&&(E=[...u.filter(P=>P.key!=="welcome")]),f([...E,{title:w,key:F,closable:!0,content:_,action:L}]),d(F)}async function b({relateData:w,fields:_,values:F,action_id:L,action_type:E}){const{res_model:P,context:A,domain:W,views:J,target:Y,string:z,limit:Q}=w,[oe,te]=J[0],X={id:oe,type:te},ce=ooui.parseContext({context:A,values:{...F,...a},fields:_}),Re=W?await ConnectionProvider.getHandler().evalDomain({domain:W,values:transformPlainMany2Ones({fields:_,values:{...F,...a}}),context:{...s,...ce}}):[];O({model:P,target:Y,views:J,context:{...s,...ce},domain:Re,title:z,initialView:X,action_id:L,action_type:E,limit:Q})}async function y(w){const{action_id:_,action_type:F,res_id:L,view_id:E}=w,P=`${F},${_}`,A=await ConnectionProvider.getHandler().getActionData({action:P,context:s}),W=ooui.parseContext({context:A.context,values:a,fields:{}}),J=A.domain?await ConnectionProvider.getHandler().evalDomain({domain:A.domain,values:a,context:{...s,...W}}):[],{res_model:Y,views:z,name:Q,target:oe,view_type:te,limit:X}=A,ce=te==="tree",Re=[];for(const ee of z){const[ue,N]=ee;if(ue)Re.push(ee);else if(N==="dashboard")Re.push([void 0,"dashboard"]);else{const{view_id:U}=await ConnectionProvider.getHandler().getView({model:Y,type:N,id:ue,context:{...s,...W}});Re.push([U,N])}}let xe,de;if(E==null){const ee=Re.find(ue=>ue[0]===void 0);xe=void 0,de=ee[1]}else[xe,de]=Re.find(ee=>ee[0]===void 0?!1:ee[0]===E);const Ce={id:xe,type:de};O({domain:J,context:{...s,...W},model:Y,views:Re,title:Q,target:oe,initialView:Ce,action_id:_,action_type:F,res_id:L,treeExpandable:ce,limit:X})}async function g({model:w,values:_,forced_values:F,initialViewType:L,res_id:E,domain:P}){const A=await ConnectionProvider.getHandler().getActionStringForModel(w);await v({action:A,values:_,forced_values:F,initialViewType:L,res_id:E,domain:P})}async function O({domain:w,context:_,model:F,views:L,title:E,target:P,initialView:A,action_id:W,action_type:J,res_id:Y,values:z,forced_values:Q,treeExpandable:oe=!1,limit:te}){const X=v4();if(P!=="current"){const ce=await ConnectionProvider.getHandler().getView({model:F,type:"form",id:A.type==="form"?A.id:void 0,context:{...s,..._}});m.current.openActionModal({domain:w,model:F,formView:ce,context:{...s,..._},actionData:{action_id:W,action_type:J,res_id:Y,view_id:ce.view_id}})}else C({title:E,action:{id:W,type:J},content:jsxRuntime.jsx(ActionView$1,{action_id:W,action_type:J,tabKey:X,title:E,views:L,model:F,context:{...s,..._},domain:w,setCanWeClose:h,initialView:A,res_id:Y,formDefaultValues:z,formForcedValues:Q,treeExpandable:oe,limit:te}),key:X})}return jsxRuntime.jsx(LocaleContextProvider,{lang:c,children:jsxRuntime.jsx(TabManagerProvider,{openShortcut:y,openAction:O,openRelate:b,openDefaultActionForModel:g,tabs:u,activeKey:l,onRemoveTab:async w=>{const _=p.current.get(w);(await(_==null?void 0:_())||l==="welcome")&&I(w)},onChangeTab:w=>{d(w)},children:jsxRuntime.jsx(ContentRootProvider$1,{ref:m,globalValues:a,children:r})})})}const RootView$1=React.forwardRef(RootView);function Tab(e){const{label:o,onClose:r,tabKey:a,isActive:s,onSelected:c}=e,l=s?"#ffffff":"#F1F5F9";return jsxRuntime.jsxs("div",{onClick:()=>{!s&&c(a)},style:{cursor:"pointer",height:40,paddingTop:7,paddingBottom:5,paddingLeft:10,paddingRight:10,backgroundColor:l,display:"inline-flex",flex:1,flexDirection:"row",alignItems:"center",justifyContent:"center",borderTopLeftRadius:8,borderTopRightRadius:8,marginLeft:2},children:[jsxRuntime.jsx("div",{style:{color:s?"#001529":"#ADB0B3",userSelect:"none",height:40,display:"flex",justifyContent:"center",alignItems:"center",paddingLeft:5,paddingRight:5,marginBottom:2},children:o}),jsxRuntime.jsx("div",{style:{paddingLeft:5,height:40,display:"flex",justifyContent:"center",alignItems:"center"},children:jsxRuntime.jsx(Icon.CloseOutlined,{style:{color:s?"#001529":"#ADB0B3"},onClick:d=>{d.stopPropagation(),r(a)}})})]})}function TabSelector(){const e=React.useContext(TabManagerContext),{activeKey:o,tabs:r,onRemoveTab:a,onChangeTab:s}=e||{};return jsxRuntime.jsx(jsxRuntime.Fragment,{children:r.map(c=>jsxRuntime.jsx(Tab,{tabKey:c.key,label:c.title,onClose:a,isActive:o===c.key,onSelected:s},c.key))})}function TabContent(e){const{tab:o}=e,r=React.useContext(TabManagerContext),{activeKey:a}=r||{},s={display:"none"};return jsxRuntime.jsx("div",{style:o.key!==a?s:void 0,children:o.content})}const TabContent$1=React__default.default.memo(TabContent,()=>!0);function CurrentTabContent(){const e=React.useContext(TabManagerContext),{tabs:o}=e||{},r=(o==null?void 0:o.map(a=>jsxRuntime.jsx(TabContent$1,{tab:a},a.key)))||null;return jsxRuntime.jsx(jsxRuntime.Fragment,{children:r})}const FavouriteButton=e=>{const{onRetrieveShortcuts:o,onCheckIsFavourite:r,onAddFavourite:a,onRemoveFavourite:s}=e,[c,l]=React.useState(!1),[d,u]=React.useState(!1),[f,p]=React.useState([]),[m,I]=React.useState(!0),[h,v]=React.useState(),{t:C}=React.useContext(LocaleContext),b=React.useContext(TabManagerContext),{openShortcut:y,tabs:g,activeKey:O,currentView:w,currentId:_,openDefaultActionForModel:F}=b||{};React.useEffect(()=>{L()},[]),React.useEffect(()=>{A()},[g,O,w,_]);async function L(){try{I(!0);const Q=await o();p(Q)}catch(Q){showDialog$8(Q)}finally{I(!1)}}function E(Q){const{key:oe}=Q,te=f.find(X=>X.id===Number(oe));(te==null?void 0:te.action_type)!=="ir.actions.wizard"&&(te&&y(te),u(!1))}function P(Q){Q&&L(),u(Q)}async function A(){if(!w)return;const Q=g.find(xe=>xe.key===O),{id:oe,type:te}=(Q==null?void 0:Q.action)||{};if(!oe||!te){l(!1);return}const X=w.view_id;let ce=!1;w.type==="form"&&(ce=_||!1);const Re=await r({action_id:oe,action_type:te,view_id:X,res_id:ce});Re!==!1&&v(Re),l(Re!==!1)}async function W(){u(!1),F==null||F({model:"ir.ui.view_sc"})}const J=jsxRuntime.jsxs(antd.Menu,{onClick:E,children:[jsxRuntime.jsxs("div",{style:{width:300,padding:5,display:"flex"},children:[jsxRuntime.jsx("div",{style:{paddingLeft:15,color:"#ccc"},children:C("favorites").toUpperCase()}),jsxRuntime.jsx("div",{style:{flexGrow:1,paddingLeft:10},children:jsxRuntime.jsx(antd.Tooltip,{title:C("edit_favorites"),children:jsxRuntime.jsx(Icon.EditOutlined,{style:{color:"#1890FF",cursor:"pointer"},onClick:W})})})]}),jsxRuntime.jsx(antd.Menu.Divider,{}),m?jsxRuntime.jsx(antd.Spin,{style:{padding:"1rem"}}):f.length>0?jsxRuntime.jsx(jsxRuntime.Fragment,{children:f.map(Q=>jsxRuntime.jsx(antd.Menu.Item,{children:jsxRuntime.jsx(Y,{title:Q.name,type:Q.view_type})},Q.id))}):jsxRuntime.jsx("div",{style:{width:300,padding:5,paddingLeft:15},children:C("no_favorites")})]});function Y({title:Q,type:oe}){const te=oe==="tree"?jsxRuntime.jsx(Icon.TableOutlined,{}):jsxRuntime.jsx(Icon.FormOutlined,{});return jsxRuntime.jsxs(antd.Row,{wrap:!1,children:[jsxRuntime.jsx(antd.Col,{flex:"none",style:{paddingRight:20},children:te}),jsxRuntime.jsx(antd.Col,{flex:"auto",children:Q})]})}async function z(){if(c&&h)await s(h);else{if(!w)return;const Q=g.find(Re=>Re.key===O),{id:oe,type:te}=(Q==null?void 0:Q.action)||{},X=w.view_id;let ce=!1;if(!oe||!te){l(!1);return}w.type==="form"&&(ce=_||!1),await a({action_id:oe,action_type:te,view_id:X,res_id:ce})}await L(),l(!c)}return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(antd.Button,{type:c?"primary":"default",icon:c?jsxRuntime.jsx(Icon.StarFilled,{style:{color:"white"}}):jsxRuntime.jsx(Icon.StarOutlined,{}),style:{width:50},onClick:z}),jsxRuntime.jsx(antd.Dropdown,{overlay:J,onVisibleChange:P,visible:d,children:jsxRuntime.jsx(antd.Button,{style:{width:25},icon:jsxRuntime.jsx(Icon.DownOutlined,{style:{fontSize:"0.5em"}}),onClick:Q=>Q.preventDefault()})})]})};exports.ActionBar=FormActionBar,exports.Binary=Binary,exports.Boolean=Boolean$1,exports.Button=Button,exports.ButtonGroup=ButtonGroup,exports.Char=Char,exports.CodeEditor=CodeEditor,exports.ConnectionProvider=ConnectionProvider,exports.ContentRootProvider=ContentRootProvider$1,exports.CurrentTabContent=CurrentTabContent,exports.Dashboard=Dashboard$1,exports.DashboardGrid=DashboardGrid,exports.DashboardGridItem=DashboardGridItem,exports.Date=Date$1,exports.DateTime=DateTime,exports.Email=Email,exports.ExportModal=ExportModal,exports.FavouriteButton=FavouriteButton,exports.Float=Float,exports.FloatTime=FloatTime,exports.Form=Form$1,exports.FormModal=FormModal,exports.GraphIndicator=GraphIndicator,exports.Group=Group,exports.Image=Image,exports.Integer=Integer,exports.Label=Label,exports.Many2one=Many2one,exports.MultiCheckbox=MultiCheckbox,exports.Notebook=Notebook,exports.One2many=One2many,exports.ProgressBar=ProgressBar,exports.Radio=Radio,exports.Reference=Reference,exports.RootView=RootView$1,exports.SearchFilter=SearchFilter,exports.SearchModal=SearchModal,exports.SearchTree=SearchTree$1,exports.Selection=Selection,exports.Separator=Separator,exports.Steps=Steps,exports.Switch=Switch,exports.TabSelector=TabSelector,exports.Tags=Tags,exports.Text=Text$2,exports.Tree=Tree,exports.Url=Url,exports.iconMapper=iconMapper,exports.showConfirmDialog=showDialog$9,Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
284
|
+
`,cn=({targetKeys:e,locale:o,onGetFields:r,onGetFieldChilds:a,onChange:s,...c})=>{const[l,d]=React.useState(),[u,f]=React.useState(!0),[p,m]=React.useState(),[I,h]=React.useState();React.useEffect(()=>{g()},[]);const g=React.useCallback(async()=>{f(!0);try{const v=await r();d(v)}catch(v){console.error(v),Ze({title:"Error",centered:!0,content:jsxRuntime.jsx(jsxRuntime.Fragment,{children:JSON.stringify(v,null,2)})})}f(!1)},[]),C=React.useCallback(async({key:v})=>{try{const O=Z(l).find(F=>F.key===v),w=await a({key:v,title:O.title}),_=Ht(l,v,w);d(_)}catch(O){console.error(O),Ze({title:"Error",centered:!0,content:jsxRuntime.jsx(jsxRuntime.Fragment,{children:JSON.stringify(O,null,2)})})}},[l]),b=React.useCallback((v,O)=>{v==="left"?m(O.trim()===""?void 0:O.trim()):h(O.trim()===""?void 0:O.trim())},[]),y=React.useCallback(({checkedKeys:v,onItemSelect:O})=>(w,{node:{key:_}})=>{var F;O(_,(F=_,!v.includes(F)))},[]);return jsxRuntime.jsx(sn,{...c,showSearch:!0,targetKeys:e,dataSource:Z(l),className:"tree-transfer",render:v=>v.title,onChange:s,showSelectAll:!0,locale:{itemUnit:S("exportModalItemsUnit",o),itemsUnit:S("exportModalItemsUnit",o),notFoundContent:S("notFoundContent",o),searchPlaceholder:S("searchPlaceholder",o)},filterOption:Le,onSearch:b,titles:[S("availableFields",o),S("fieldsToExport",o)],children:({direction:v,onItemSelect:O,selectedKeys:w})=>{if(u)return jsxRuntime.jsx("div",{style:{display:"flex",paddingTop:"2em",justifyContent:"center"},children:jsxRuntime.jsx(antd.Spin,{})});if(v==="left"){const _=[...e,...w];return jsxRuntime.jsx(antd.Tree,{height:300,blockNode:!0,checkable:!0,checkStrictly:!0,checkedKeys:_,loadData:C,treeData:Pt({treeNodes:l,checkedKeys:e,searchText:p}),onCheck:y({checkedKeys:_,onItemSelect:O}),onSelect:y({checkedKeys:_,onItemSelect:O}),titleRender:F=>jsxRuntime.jsx(Xe,{node:F})})}return jsxRuntime.jsx(antd.Tree,{height:300,blockNode:!0,checkable:!0,checkStrictly:!0,checkedKeys:w,onCheck:y({checkedKeys:w,onItemSelect:O}),onSelect:y({checkedKeys:w,onItemSelect:O}),treeData:Ie({treeNodes:l,checkedKeys:e,searchText:I}),titleRender:_=>jsxRuntime.jsx(Xe,{node:_})})}})},et=()=>jsxRuntime.jsx("div",{style:{padding:"0.5em"}}),{error:dn}=antd.Modal,Yn=e=>{const{visible:o,locale:r,onCancel:a,onSucceed:s,totalRegisters:c,selectedRegistersToExport:l,selectedKeys:d}=e,{modalWidth:u}=jt(),[f,p]=React.useState(!1),[m,I]=React.useState("xlsx"),[h,g]=React.useState("all"),[C,b]=React.useState(d);React.useEffect(()=>{o||(b(void 0),I("xlsx"),g(l?"selected":"all"))},[o]),React.useEffect(()=>{g(l?"selected":"all")},[l]),React.useEffect(()=>{d===void 0||C||b(d)},[d,C]);const y=React.useCallback(O=>{b(O)},[]),v=React.useCallback(async()=>{p(!0);try{await s({exportType:m,selectedKeys:C,registersAmount:h})}catch(O){console.error(O),dn({title:"Error",centered:!0,content:jsxRuntime.jsx(jsxRuntime.Fragment,{children:JSON.stringify(O,null,2)})})}p(!1)},[m,C,h]);return jsxRuntime.jsxs(antd.Modal,{title:S("export",r),centered:!0,width:u,visible:o,closable:!f,onCancel:a,footer:null,destroyOnClose:!0,children:[jsxRuntime.jsx(cn,{targetKeys:C||[],onChange:y,locale:r,onGetFieldChilds:e.onGetFieldChilds,onGetFields:e.onGetFields}),jsxRuntime.jsx(et,{}),jsxRuntime.jsx(an,{locale:r,value:m,onChange:I}),l&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(et,{}),jsxRuntime.jsx(on,{locale:r,totalRegisters:c,selectedRegistersToExport:l,value:h,onChange:g})]}),jsxRuntime.jsx(antd.Divider,{}),jsxRuntime.jsx(qt,{locale:r,onClose:a,onConfirm:v,loading:f,left:S("exportRegisters",r).replace("{total}",h==="selected"?l==null?void 0:l.toString():c.toString())})]})},ExportModal=e=>{const{visible:o,locale:r,onClose:a,model:s,context:c,selectedRegistersToExport:l,totalRegisters:d,domain:u,limit:f}=e,p=React.useRef({}),m=React.useCallback(async g=>{if(g.selectedKeys.length===0){showDialog$7(tForLang("selectAtLeastOneField",r));return}const{datas:C}=await ConnectionProvider.getHandler().exportData({model:s,fields:g.selectedKeys,domain:g.registersAmount==="all"?[]:u,limit:g.registersAmount==="all"?void 0:f,context:c,format:g.exportType});a(),await new Promise(y=>setTimeout(y,200));const b=await getMimeType(C);openBase64InNewTab(C,b.mime)},[r,s,u,f,c,a]),I=React.useCallback(async()=>{const g=await ConnectionProvider.getHandler().getFields({model:s,context:c,fields:[]});return p.current["/"]=g,convertToExportField({fields:g})},[s,c,p]),h=React.useCallback(async({key:g,title:C})=>{let b;const y=g.split("/")[g.split("/").length-1]==="id"?g.split("/").slice(0,-1).join("/"):g;y.indexOf("/")===-1?b=p.current["/"]:b=p.current[getParentKey(y)];const O=b[getChildKey(y)].relation,w=await ConnectionProvider.getHandler().getFields({model:O,context:c,fields:[]});return p.current[y]=w,convertToExportField({fields:w,parentTitle:C,parentKey:y})},[p,s,c]);return jsxRuntime.jsx(Yn,{visible:o,locale:r,onSucceed:m,onCancel:a,selectedRegistersToExport:l,totalRegisters:d,onGetFieldChilds:h,onGetFields:I})},convertToExportField=({fields:e,parentKey:o,parentTitle:r})=>{const a=[];for(const s of Object.keys(e)){const c=e[s];if(c.relation&&c.is_function===!0)continue;const l=c.type==="many2one"||c.type==="one2many"||c.type==="many2many";let d=`${o?o+"/":""}${s}`;l&&(d+="/id"),a.push({key:d,title:`${r?r+"/":""}${c.string}`,tooltip:c.help,required:c.required,isLeaf:!l})}return a},getParentKey=e=>e.indexOf("/")===-1?e:e.split("/").slice(0,-1).join("/"),getChildKey=e=>{if(e.indexOf("/")===-1)return e;const o=e.split("/");return o[o.length-1]},DatePickerConfig={date:{placeholder:"__/__/____",dateDisplayFormat:"YYYY-MM-DD",dateInternalFormat:"YYYY-MM-DD"},time:{placeholder:"__/__/____ __:__:__",dateDisplayFormat:"YYYY-MM-DD HH:mm:ss",dateInternalFormat:"YYYY-MM-DD HH:mm:ss"}},DatePicker=e=>{const{ooui:o,showTime:r=!1}=e,{required:a}=o;return jsxRuntime.jsx(Field$1,{required:a,...e,children:jsxRuntime.jsx(DatePickerInput,{ooui:o,showTime:r})})},DatePickerInput=e=>{const{value:o,onChange:r,ooui:a,showTime:s}=e,{id:c,readOnly:l,required:d}=a,u=d&&!l?Config.requiredClass:void 0,f=s?"time":"date",p=g=>{r==null||r(g)},m=g=>{if(g===null){p(void 0);return}p(g.format(DatePickerConfig[f].dateInternalFormat))},I=s?{defaultValue:hooks("00:00:00","HH:mm:ss")}:void 0,h=o?hooks(o,DatePickerConfig[f].dateInternalFormat):void 0;return jsxRuntime.jsx(antd.DatePicker,{style:{width:"100%"},placeholder:s?DatePickerConfig.time.placeholder:DatePickerConfig.date.placeholder,disabled:l,id:c,showTime:I,className:u,format:DatePickerConfig[f].dateDisplayFormat,value:h,onChange:m})},Date$1=e=>{const{ooui:o}=e;return jsxRuntime.jsx(DatePicker,{ooui:o})},DateTime=e=>{const{ooui:o}=e;return jsxRuntime.jsx(DatePicker,{ooui:o,showTime:!0})},Reference=e=>{const{ooui:o}=e,{required:r}=o;return jsxRuntime.jsx(Field$1,{required:r,...e,children:jsxRuntime.jsx(ReferenceInput,{ooui:o})})},ReferenceInput=e=>{const{value:o,onChange:r,ooui:a}=e,{required:s,selectionValues:c,readOnly:l}=a,d=o==null?void 0:o.split(","),[u,f]=React.useState([]),[p,m]=React.useState();return React.useEffect(()=>{if(!o)return;const I=o&&d&&d[0],h=o&&d&&d[1]&&parseInt(d[1]);f([h,void 0]),m(I)},[o]),jsxRuntime.jsxs(antd.Row,{gutter:8,wrap:!1,children:[jsxRuntime.jsx(antd.Col,{flex:"1",children:jsxRuntime.jsx(SelectionInput$1,{ooui:new ooui.Selection({name:"model_selection",selection:c,readOnly:l,required:s}),onChange:I=>{m(I),f([]),r==null||r(void 0)},value:p})}),jsxRuntime.jsx(antd.Col,{flex:"3",children:jsxRuntime.jsx(Many2oneInput,{ooui:new ooui.Many2one({name:"object_value",relation:p,readOnly:l,required:s}),value:u,onChange:I=>{f(I);const h=`${p},${I[0]}`;h!==o&&(r==null||r(h))}})})]})},Binary=e=>{const{ooui:o}=e,{required:r}=o;return jsxRuntime.jsx(Field$1,{required:r,...e,children:jsxRuntime.jsx(BinaryInput,{ooui:o})})},BinaryInput=e=>{const{ooui:o,value:r,onChange:a}=e,{readOnly:s,required:c,filenameField:l}=o,d=c&&!s?Config.requiredClass:void 0,u=React.useRef(null),{setFieldValue:f,getFieldValue:p}=React.useContext(FormContext$1)||{},{t:m}=React.useContext(LocaleContext),I=r?getFilesize(r):"",h=v=>{a==null||a(v)};async function g(){const v=await getMimeType(r),O=`data:${v==null?void 0:v.mime};base64,${r}`,w=document.createElement("a"),_=p(l),F=p("name");w.href=O,w.download=_||F,w.click()}async function C(){const v=await getMimeType(r);openBase64InNewTab(r,v.mime)}async function b(v){v.stopPropagation(),v.preventDefault();const O=v.target.files[0],w=await toBase64(O);h(w),l&&f(l,O.name)}function y(){f(l,void 0),h(void 0)}return jsxRuntime.jsxs(antd.Row,{gutter:8,children:[jsxRuntime.jsxs(antd.Col,{style:{paddingBottom:5},children:[jsxRuntime.jsx("input",{type:"file",id:"file",ref:u,style:{display:"none"},onChange:b}),jsxRuntime.jsx(antd.Input,{type:"text",disabled:!0,className:d,value:I})]}),jsxRuntime.jsx(antd.Col,{children:jsxRuntime.jsxs(antd.Space,{children:[jsxRuntime.jsx(antd.Button,{icon:jsxRuntime.jsx(Icon.FolderOpenOutlined,{}),disabled:s,onClick:()=>{u.current.click()},children:"Select"}),jsxRuntime.jsx(antd.Button,{icon:jsxRuntime.jsx(Icon.EyeOutlined,{}),disabled:!r,onClick:C,children:m("open")}),jsxRuntime.jsx(ButtonWithTooltip,{tooltip:m("download"),disabled:!r,onClick:g,icon:jsxRuntime.jsx(Icon.DownloadOutlined,{})}),jsxRuntime.jsx(ButtonWithTooltip,{tooltip:m("clear"),disabled:s||!r,onClick:y,icon:jsxRuntime.jsx(Icon.ClearOutlined,{})})]})})]})},iconsForViewTypes={tree:jsxRuntime.jsx(Icon.TableOutlined,{}),form:jsxRuntime.jsx(Icon.FormOutlined,{}),graph:jsxRuntime.jsx(Icon.AreaChartOutlined,{}),calendar:jsxRuntime.jsx(Icon.CalendarOutlined,{})};function getIconForView(e){return e?(iconsForViewTypes==null?void 0:iconsForViewTypes[e.type])||jsxRuntime.jsx(Icon.FormOutlined,{}):jsxRuntime.jsx(Icon.FormOutlined,{})}function ChangeViewButton(e){const{currentView:o,availableViews:r,onChangeView:a,disabled:s=!1,formHasChanges:c=!1,previousView:l}=e,{t:d,lang:u}=React.useContext(LocaleContext);function f(){const I=r.map((h,g)=>jsxRuntime.jsx(antd.Menu.Item,{children:jsxRuntime.jsxs(antd.Row,{wrap:!1,children:[jsxRuntime.jsx(antd.Col,{flex:"none",style:{paddingRight:20},children:getIconForView(h)}),jsxRuntime.jsx(antd.Col,{flex:"auto",style:{paddingRight:20},children:h.type==="graph"?h.name:h.type.charAt(0).toUpperCase()+h.type.slice(1)}),jsxRuntime.jsx(antd.Col,{flex:"none",children:jsxRuntime.jsx(Icon.CheckOutlined,{style:{opacity:o.view_id===h.view_id?1:0}})})]})},h.view_id||g));return jsxRuntime.jsx(antd.Menu,{onClick:m,children:jsxRuntime.jsx(antd.Menu.ItemGroup,{title:d("viewAs"),children:I})})}function p(I){if(c){showDialog$6({lang:u,onOk:()=>{I()}});return}I()}function m(I){p(()=>{const h=r.find(g=>g.view_id===parseInt(I.key));a(h)})}return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(ButtonWithTooltip,{tooltip:l?d("viewAs")+" "+d(l.type):"",icon:getIconForView(l),style:{width:50},onClick:()=>{m({key:l==null?void 0:l.view_id})},disabled:s||r.length===1}),jsxRuntime.jsx(antd.Dropdown,{overlay:f(),disabled:s||r.length===1,children:jsxRuntime.jsx(antd.Button,{style:{width:25},icon:jsxRuntime.jsx(Icon.DownOutlined,{style:{fontSize:"0.5em"}}),onClick:I=>I.preventDefault()})})]})}function DropdownButton(e){const{icon:o,tooltip:r,items:a=[],onItemClick:s,label:c,disabled:l=!1}=e;function d(){const f=a==null?void 0:a.map((p,m)=>p.name==="divider"?jsxRuntime.jsx(antd.Menu.Divider,{},"divider"+m):jsxRuntime.jsx(antd.Menu.Item,{children:p.name},p.id));return jsxRuntime.jsx(antd.Menu,{onClick:u,children:jsxRuntime.jsx(antd.Menu.ItemGroup,{title:r,children:f})})}function u(f){const p=a.find(m=>isNaN(f.key)?m.id===f.key:m.id===parseInt(f.key));s(p)}return jsxRuntime.jsx(antd.Dropdown,{overlay:d(),disabled:l||!a||a.length===0,children:jsxRuntime.jsxs(antd.Button,{children:[o," ",c," ",jsxRuntime.jsx(Icon.DownOutlined,{})]})})}function ActionButton(e){const{onClick:o,disabled:r=!1,loading:a=!1,tooltip:s,icon:c,label:l,type:d="default"}=e,u=a?jsxRuntime.jsx(Icon.LoadingOutlined,{}):c;return jsxRuntime.jsxs(ButtonWithTooltip,{type:d,tooltip:s,onClick:o,disabled:r,children:[u,l]})}function NewButton(e){const{disabled:o=!1}=e,{formHasChanges:r,onNewClicked:a}=React.useContext(ActionViewContext),{t:s,lang:c}=React.useContext(LocaleContext),l=()=>{if(r){showDialog$6({lang:c,onOk:()=>{a()}});return}a()};return jsxRuntime.jsx(ActionButton,{icon:jsxRuntime.jsx(Icon.FileAddOutlined,{}),tooltip:s("new"),onClick:l,disabled:o})}const{confirm}=antd.Modal,showDialog=({onOk:e,onCancel:o,lang:r})=>{confirm({title:tForLang("unsavedChanges",r),icon:jsxRuntime.jsx(Icon.ExclamationCircleOutlined,{}),centered:!0,content:tForLang("confirmRefreshWithoutSave",r),okText:tForLang("discardAndRefresh",r),cancelText:tForLang("cancel",r),onOk:e,onCancel:o})};async function showLogInfo(e,o,r){const a=(await ConnectionProvider.getHandler().getLogInfo({model:e,ids:[o]}))[0],{create_date:s,create_uid:c,id:l,write_date:d,write_uid:u}=a;showDialog$7(jsxRuntime.jsxs("div",{children:["ID: "+l," ",jsxRuntime.jsx("br",{}),r("createdBy")+": "+c[1]," ",jsxRuntime.jsx("br",{}),r("creationDate")+": "+s," ",jsxRuntime.jsx("br",{}),r("lastUpdatedBy")+": "+u[1]," ",jsxRuntime.jsx("br",{}),r("lastUpdatedDate")+": "+d]}))}const AttachmentsButtonWrapper=e=>{const{numberOfAttachments:o,disabled:r}=e,{t:a}=React.useContext(LocaleContext),[s,c]=React.useState(!1),l=jsxRuntime.jsxs(antd.Button,{disabled:r,children:[jsxRuntime.jsx(Icon.LinkOutlined,{}),`(${o})`,jsxRuntime.jsx(Icon.DownOutlined,{style:{fontSize:12}})]});return r?l:jsxRuntime.jsx(antd.Popover,{onVisibleChange:d=>c(d),visible:s,placement:"bottom",content:Content$1(e,c),title:a("attachments"),arrowContent:null,children:l})},Content$1=(e,o)=>{const{attachments:r=[],loading:a,onAddNewAttachment:s,onopenAttachmentLink:c,onOpenAttachmentDetail:l,onListAllAttachments:d}=e,{t:u}=React.useContext(LocaleContext);return a?jsxRuntime.jsx(antd.Spin,{style:{padding:20}}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("a",{style:{display:"block",paddingBottom:5},href:"#",onClick:()=>{o(!1),d()},children:[jsxRuntime.jsx(Icon.TableOutlined,{})," ",u("listAllAttachments")]}),jsxRuntime.jsxs("a",{style:{display:"block"},href:"#",onClick:()=>{o(!1),s()},children:[jsxRuntime.jsx(Icon.FileAddOutlined,{})," ",u("addNewAttachment")]}),r.length>0&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("li",{className:" ant-dropdown-menu-item-divider"}),r.map(f=>{const p=f.link?Icon.LinkOutlined:Icon.DownloadOutlined;return jsxRuntime.jsxs(antd.Row,{style:{paddingTop:4,paddingBottom:4},wrap:!1,align:"middle",children:[jsxRuntime.jsx(antd.Col,{flex:"auto",children:f.name}),jsxRuntime.jsx(antd.Col,{flex:"25px",style:{textAlign:"center"},children:(f.datas_fname||f.link)&&jsxRuntime.jsx(antd.Tooltip,{title:f.link?u("openAttachmentLink"):u("download"),children:jsxRuntime.jsx(p,{style:{cursor:"pointer"},onClick:()=>{o(!1),c(f)}})})}),jsxRuntime.jsx(antd.Col,{flex:"25px",style:{textAlign:"center"},children:jsxRuntime.jsx(antd.Tooltip,{title:u("openAttachment"),children:jsxRuntime.jsx(Icon.FormOutlined,{style:{cursor:"pointer"},onClick:()=>{o(!1),l(f)}})})})]},f.id)})]})]})};function AttachmentsButton(e){const{attachments:o,disabled:r=!1,onAddNewAttachment:a,onListAllAttachments:s,onViewAttachmentDetails:c}=e,{formRef:l}=React.useContext(ActionViewContext),[d,u]=React.useState(!1),[f,p]=React.useState([]),[m,I]=React.useState(!1),{t:h}=React.useContext(LocaleContext),g=React.useCallback(async()=>{u(!0);try{const y=await ConnectionProvider.getHandler().readObjects({model:"ir.attachment",ids:o.map(v=>v.id),fieldsToRetrieve:["name","datas_fname","link"],context:l.current.getContext()});p(y.map(v=>({id:v.id,name:v.name,datas_fname:v.datas_fname,link:v.link})))}catch(y){showDialog$8(y)}u(!1)},o),C=React.useCallback(async y=>{if(y.link){window.open(y.link);return}I(!0);let v;try{v=(await ConnectionProvider.getHandler().readObjects({model:"ir.attachment",ids:[y.id],context:l.current.getContext()}))[0]}catch(O){showDialog$8(O)}if(I(!1),!!v)if(v.datas){const O=await getMimeType(v.datas);openBase64InNewTab(v.datas,O.mime)}else c(v)},[]),b=React.useCallback(async y=>{c(y)},[]);return React.useEffect(()=>{g()},[g]),jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(AttachmentsButtonWrapper,{numberOfAttachments:o.length,attachments:f,disabled:r,loading:d,onAddNewAttachment:a,onListAllAttachments:s,onopenAttachmentLink:C,onOpenAttachmentDetail:b}),jsxRuntime.jsx(antd.Modal,{title:h("downloadingAttachment"),visible:m,footer:null,closable:!1,centered:!0,maskClosable:!1,children:jsxRuntime.jsx(antd.Spin,{})})]})}function FormActionBar({toolbar:e}){const{availableViews:o,currentView:r,setCurrentView:a,onFormSave:s,formHasChanges:c,formIsSaving:l,currentId:d,results:u,setCurrentItemIndex:f,currentItemIndex:p,setCurrentId:m,currentModel:I,setRemovingItem:h,removingItem:g,duplicatingItem:C,setDuplicatingItem:b,setResults:y,formIsLoading:v,attachments:O,formRef:w,setFormHasChanges:_,searchTreeRef:F,previousView:L,setPreviousView:E,goToResourceId:P}=React.useContext(ActionViewContext),{t:A,lang:W}=React.useContext(LocaleContext),J=React.useContext(ContentRootContext),{processAction:z}=J||{},Y=React.useContext(TabManagerContext),{openRelate:Q,openDefaultActionForModel:oe}=Y||{};function ee(N){if(c){showDialog({lang:W,onOk:()=>{N()}});return}N()}function X(N){if(c){showDialog$6({lang:W,onOk:()=>{N()}});return}N()}function ue(){u&&u.length>p+1?(f==null||f(p+1),m==null||m(u[p+1].id)):u&&p+1===u.length&&(f==null||f(0),m==null||m(u[0].id))}function Re(){u&&p>0?(f==null||f(p-1),m==null||m(u[p-1].id)):u&&p===0&&(f==null||f(u.length-1),m==null||m(u[u.length-1].id))}function xe(){showDialog$9({confirmMessage:A("confirmRemoveItem"),lang:W,onOk:()=>{ce()}})}async function ce(){try{h==null||h(!0),await ConnectionProvider.getHandler().delete({model:I,ids:[d]});const N=u==null?void 0:u.filter(re=>re.id!==d);y==null||y(N);let U=0;p>0&&p<=u.length-1&&(U=p-1),N!=null&&N[U]?(m==null||m(N==null?void 0:N[U].id),f==null||f(U)):(m==null||m(void 0),f==null||f(void 0))}catch(N){showDialog$3(JSON.stringify(N))}finally{h==null||h(!1)}}async function Ce(){try{b==null||b(!0);const N=await ConnectionProvider.getHandler().duplicate({id:d,model:I,context:w.current.getContext()});N&&await(P==null?void 0:P(N))}catch(N){showDialog$3(JSON.stringify(N))}finally{b==null||b(!1)}}const te=l||g||v||C;function de(N){z==null||z({actionData:N,values:w.current.getValues(),fields:w.current.getFields(),context:w.current.getContext(),onRefreshParentValues:()=>{w.current.fetchValues()}})}return r?jsxRuntime.jsxs(antd.Space,{wrap:!0,children:[v&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(antd.Spin,{}),separator$2(),separator$2()]}),jsxRuntime.jsx(NewButton,{disabled:l||v||g||C}),jsxRuntime.jsx(ActionButton,{icon:jsxRuntime.jsx(Icon.SaveOutlined,{}),tooltip:A("save"),disabled:!c||te,loading:l,onClick:s}),jsxRuntime.jsx(ActionButton,{icon:jsxRuntime.jsx(Icon.CopyOutlined,{}),tooltip:A("duplicate"),disabled:c||l||d===void 0||C||v,loading:C,onClick:Ce}),jsxRuntime.jsx(ActionButton,{icon:jsxRuntime.jsx(Icon.DeleteOutlined,{}),tooltip:A("delete"),disabled:l||d===void 0||g||C||v,loading:g,onClick:xe}),separator$2(),jsxRuntime.jsx(ActionButton,{icon:jsxRuntime.jsx(Icon.InfoCircleOutlined,{}),tooltip:A("showLogs"),disabled:l||d===void 0||g||C||v,loading:!1,onClick:()=>{showLogInfo(I,d,A)}}),jsxRuntime.jsx(ActionButton,{icon:jsxRuntime.jsx(Icon.ReloadOutlined,{}),tooltip:A("refresh"),disabled:l||d===void 0||g||C||v,loading:!1,onClick:()=>{ee(()=>{w.current.fetchValues()})}}),separator$2(),jsxRuntime.jsx(ChangeViewButton,{currentView:r,previousView:L,availableViews:o,onChangeView:N=>{E==null||E(r),_==null||_(!1),a==null||a(N)},disabled:te,formHasChanges:c}),separator$2(),jsxRuntime.jsxs(antd.Space,{children:[jsxRuntime.jsx(ActionButton,{icon:jsxRuntime.jsx(Icon.LeftOutlined,{}),tooltip:A("previous"),disabled:te,loading:!1,onClick:()=>{X(Re)}}),jsxRuntime.jsx(ActionButton,{icon:jsxRuntime.jsx(Icon.RightOutlined,{}),tooltip:A("next"),disabled:te,loading:!1,onClick:()=>{X(ue)}})]}),separator$2(),jsxRuntime.jsx(DropdownButton,{icon:jsxRuntime.jsx(Icon.ThunderboltOutlined,{}),disabled:te,tooltip:A("actions"),items:e==null?void 0:e.action,onItemClick:N=>{!N||de(N)}}),jsxRuntime.jsx(DropdownButton,{icon:jsxRuntime.jsx(Icon.PrinterOutlined,{}),disabled:te,tooltip:A("reports"),items:e==null?void 0:e.print,onItemClick:N=>{!N||de({...N,datas:{...N.datas||{},ids:[d]}})}}),jsxRuntime.jsx(DropdownButton,{icon:jsxRuntime.jsx(Icon.EnterOutlined,{}),disabled:te,tooltip:A("related"),items:e==null?void 0:e.relate,onItemClick:async N=>{!N||Q({relateData:N,values:w.current.getValues(),fields:w.current.getFields(),action_id:N.id,action_type:N.type})}}),jsxRuntime.jsx(AttachmentsButton,{disabled:te,attachments:O,onAddNewAttachment:()=>{const N=d,U=I;oe({model:"ir.attachment",values:{selection_associated_object:`${U},${N}`},forced_values:{res_model:U,res_id:N},initialViewType:"form"})},onListAllAttachments:()=>{const N=d;oe({model:"ir.attachment",domain:[["res_model","=",`${I}`],["res_id","=",`${N}`]],initialViewType:"tree"})},onViewAttachmentDetails:N=>{oe({model:"ir.attachment",res_id:N.id,initialViewType:"form"})}})]}):null}function separator$2(){return jsxRuntime.jsx("div",{className:"inline-block w-2"})}const LinkInput=e=>{const{ooui:o,value:r,onChange:a,valueValidator:s,linkPrefix:c=""}=e,{id:l,readOnly:d,required:u}=o,f=u&&!d?Config.requiredClass:void 0,p=React.useContext(FormContext$1),{elementHasLostFocus:m}=p||{},[I,h]=React.useState(!1),[g,C]=React.useState(!1);React.useEffect(()=>{d&&!I&&C(!1),!r&&!d&&(h(!0),C(!0))},[I,d]);const b=y=>{a==null||a(y.target.value)};return jsxRuntime.jsxs(antd.Row,{gutter:8,wrap:!1,align:"middle",children:[d?null:jsxRuntime.jsx(antd.Col,{flex:"32px",children:I?jsxRuntime.jsx(antd.Button,{icon:jsxRuntime.jsx(Icon.CheckOutlined,{}),onClick:()=>{s(r)&&(h(!1),C(!1))},tabIndex:-1}):jsxRuntime.jsx(antd.Button,{icon:jsxRuntime.jsx(Icon.EditOutlined,{}),onClick:()=>{h(!0),C(!0)},tabIndex:-1})}),jsxRuntime.jsx(antd.Col,{flex:"auto",children:g?jsxRuntime.jsx(antd.Input,{id:l,onChange:b,className:f,value:r,onBlur:()=>{s(r)&&(h(!1),C(!1),m==null||m())}}):jsxRuntime.jsx("a",{href:`${c}${r}`,style:{color:"#1890ff",paddingRight:15},target:"_blank",children:r})})]})},Url=e=>{const{ooui:o}=e,{required:r}=o;return jsxRuntime.jsx(Field$1,{required:r,...e,children:jsxRuntime.jsx(LinkInput,{ooui:o,valueValidator:a=>a?isURL(a):!1})})},Email=e=>{const{ooui:o}=e,{required:r}=o;return jsxRuntime.jsx(Field$1,{required:r,...e,children:jsxRuntime.jsx(LinkInput,{ooui:o,linkPrefix:"mailto:",valueValidator:a=>a?isEmail(a):!1})})},GoToResourceModal=e=>{const{visible:o,onIdSubmitted:r,onCancel:a,isSearching:s}=e,{t:c}=React.useContext(LocaleContext);function l(d){r(d.id)}return jsxRuntime.jsx(antd.Modal,{title:c("goToResourceId"),centered:!0,visible:o,footer:null,destroyOnClose:!0,onCancel:a,maskClosable:!1,children:jsxRuntime.jsxs(antd.Form,{layout:"vertical",onFinish:l,autoComplete:"off",children:[jsxRuntime.jsx(antd.Form.Item,{name:"id",label:c("searchId"),rules:[{required:!0,type:"number"}],children:jsxRuntime.jsx(antd.InputNumber,{style:{width:"100%"},autoFocus:!0})}),jsxRuntime.jsx(antd.Row,{align:"middle",justify:"end",children:jsxRuntime.jsx(antd.Col,{children:jsxRuntime.jsxs(antd.Space,{children:[jsxRuntime.jsx(antd.Button,{icon:jsxRuntime.jsx(Icon.CloseOutlined,{}),htmlType:"button",onClick:a,disabled:s,children:c("cancel")}),jsxRuntime.jsx(antd.Button,{loading:s,style:{marginLeft:15},icon:jsxRuntime.jsx(Icon.CheckOutlined,{}),htmlType:"submit",type:"primary",disabled:s,children:c("ok")})]})})})]})})};function ButtonWithBadge(e){const{badgeNumber:o=0,...r}=e;return jsxRuntime.jsxs("div",{style:{position:"relative"},children:[o>0&&jsxRuntime.jsx("div",{style:{position:"absolute",left:-10,top:-10,zIndex:2},children:jsxRuntime.jsx("span",{style:{display:"inline-block",minWidth:"22px",padding:"2px",borderRadius:"50%",fontSize:"12px",textAlign:"center",background:"#1890FF",color:"#fefefe"},children:o})}),jsxRuntime.jsx(ButtonWithTooltip,{...r,style:{width:46,zIndex:0}})]})}function GraphActionBar({refreshGraph:e}){const{t:o}=React.useContext(LocaleContext),{availableViews:r,currentView:a,setCurrentView:s,searchParams:c,searchVisible:l,setSearchVisible:d,graphIsLoading:u,previousView:f,setPreviousView:p}=React.useContext(ActionViewContext);return jsxRuntime.jsxs(antd.Space,{wrap:!0,children:[jsxRuntime.jsx(ButtonWithBadge,{icon:jsxRuntime.jsx(Icon.FilterOutlined,{style:{color:l?"white":void 0}}),tooltip:o("advanced_search"),type:l?"primary":"default",onClick:()=>{d==null||d(!l)},disabled:u,badgeNumber:c==null?void 0:c.length}),jsxRuntime.jsx(ActionButton,{icon:jsxRuntime.jsx(Icon.ReloadOutlined,{}),tooltip:o("refresh"),disabled:u,loading:!1,onClick:()=>{e()}}),jsxRuntime.jsx(ChangeViewButton,{currentView:a,availableViews:r,onChangeView:m=>{p==null||p(a),s==null||s(m)},disabled:!1,previousView:f})]})}const{Title:Title$1,Text:Text$1}=antd.Typography;function TitleHeader(e){const{title:o,children:r}=e,{title:a,currentView:s,currentId:c,currentItemIndex:l,results:d,totalItems:u,selectedRowItems:f}=React.useContext(ActionViewContext),{t:p}=React.useContext(LocaleContext);function m(){if((s==null?void 0:s.type)==="form")return c?u===0?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[p("editingDocument")," (id: ",jsxRuntime.jsx(Text$1,{copyable:!0,children:c}),")"]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[p("register")," ",l===void 0?1:l+1," /"," ",d.length," ",p("of")," ",u," - ",p("editingDocument")," (id:"," ",jsxRuntime.jsx(Text$1,{copyable:!0,children:c}),")"]}):"";if((s==null?void 0:s.type)==="tree"&&f){if(f.length===1)return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:["1 ",p("selectedRegisters")," - (id:"," ",jsxRuntime.jsx(Text$1,{copyable:!0,children:f[0].id}),")"]});if(f.length>1)return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[f.length," ",p("selectedRegisters"),jsxRuntime.jsx(Text$1,{copyable:{text:f.map(I=>I.id).join(", ")}})]})}return null}return jsxRuntime.jsxs("div",{style:{position:"sticky",top:80,zIndex:3},children:[jsxRuntime.jsxs(antd.Row,{className:"rounded shadow-md bg-blueGray-100",style:{padding:"1em"},align:"middle",children:[jsxRuntime.jsxs(antd.Col,{flex:2,children:[jsxRuntime.jsx(Title$1,{level:3,style:{marginBottom:0},children:o||a}),m()]}),jsxRuntime.jsx(antd.Col,{flex:3,children:jsxRuntime.jsx(antd.Row,{justify:"end",children:r})})]}),jsxRuntime.jsx("div",{className:"pb-5"})]})}const GraphActionView=e=>{const{viewData:o,visible:r,model:a,context:s,domain:c,formView:l,treeView:d}=e,u=React.useRef(),f=React.useContext(ActionViewContext),{setResults:p=void 0,setCurrentItemIndex:m=void 0,currentId:I=void 0,results:h=void 0,setSelectedRowItems:g=void 0,setSearchParams:C=void 0,searchVisible:b=!0,setSearchVisible:y=void 0,sorter:v=void 0,setSorter:O=void 0,setTotalItems:w=void 0,setSearchTreeNameSearch:_=void 0,setTreeIsLoading:F=void 0,limit:L,setLimit:E,searchParams:P,searchValues:A,setSearchValues:W,currentView:J}=f||{},[z,Y]=React.useState(!0);React.useEffect(()=>{var Re;(Re=u.current)==null||Re.refresh()},[P]),React.useEffect(()=>{o.view_id!==J.view_id&&Y(!0)},[J]);const{clear:Q,searchFilterLoading:oe,searchError:ee,offset:X,tableRefreshing:ue}=useSearch({model:a,setSearchTreeNameSearch:_,setSelectedRowItems:g,searchParams:P,setSearchValues:W,setSearchParams:C,setSearchVisible:y,setTreeIsLoading:F,context:s,formView:l,treeView:d,sorter:v,setSorter:O,setCurrentItemIndex:m,setResultsActionView:p,resultsActionView:h,domain:c,currentId:I,setActionViewTotalItems:w,limit:L,setLimit:E});return!r||!o?null:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(TitleHeader,{title:o.name,children:jsxRuntime.jsx(GraphActionBar,{refreshGraph:()=>{u.current.refresh()}})}),jsxRuntime.jsx(SearchFilter,{fields:{...d.fields,...l.fields},searchFields:mergeSearchFields([l.search_fields,d.search_fields]),limit:L,onClear:Q,offset:X,isSearching:oe,onSubmit:Re=>{Y(!1),C==null||C(Re.params),y==null||y(!1)},searchError:ee,searchVisible:b,searchValues:A,showLimitOptions:!1}),ue?jsxRuntime.jsx(antd.Spin,{}):jsxRuntime.jsx(Graph,{ref:u,view_id:o.view_id,model:a,context:s,domain:mergeParams(P||[],c),limit:z?L:void 0,manualIds:z?h==null?void 0:h.map(Re=>Re.id):void 0})]})},FormActionView=e=>{const{visible:o,formRef:r,model:a,currentId:s,domain:c,formView:l,context:d,defaultValues:u,forcedValues:f,results:p,setResults:m,setCurrentItemIndex:I}=e;return o?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(TitleHeader,{children:jsxRuntime.jsx(FormActionBar,{toolbar:l==null?void 0:l.toolbar})}),jsxRuntime.jsx(Form$1,{rootForm:!0,ref:r,model:a,defaultValues:u,forcedValues:f,formView:l,actionDomain:c,id:s,parentContext:d,onSubmitSucceed:(h,g)=>{p.findIndex(b=>b.id===h)===-1&&(p.push(g),m(p),I(p.length-1))}})]}):null};function SearchBar(e){const{onSearch:o,disabled:r=!1,searchText:a}=e,{t:s}=React.useContext(LocaleContext),[c]=antd.Form.useForm(),[l,d]=React.useState(!1);function u(p){o(p.search)}React.useEffect(()=>{c.setFieldsValue({search:a})},[a]);function f(){d(!1),c.setFieldsValue({search:void 0}),o(void 0)}return jsxRuntime.jsx(antd.Form,{form:c,onFinish:u,autoComplete:"off",children:jsxRuntime.jsxs(antd.Row,{align:"middle",justify:"end",children:[jsxRuntime.jsx(antd.Col,{children:jsxRuntime.jsx(antd.Form.Item,{name:"search",noStyle:!0,children:jsxRuntime.jsx(antd.Input,{autoFocus:!0,disabled:r,onChange:p=>{d(p.target.value.length>0)},suffix:(l||a&&a.length>0)&&jsxRuntime.jsx(antd.Tooltip,{title:s("clear"),children:jsxRuntime.jsx(Icon.CloseCircleFilled,{style:{color:"rgba(0,0,0,.45)"},onClick:f})})})})}),jsxRuntime.jsx(antd.Col,{children:jsxRuntime.jsx(antd.Button,{htmlType:"submit",disabled:r,children:s("search")})})]})})}function TreeActionBar(e){var xe;const{availableViews:o,currentView:r,setCurrentView:a,selectedRowItems:s,setRemovingItem:c,removingItem:l,duplicatingItem:d,setDuplicatingItem:u,currentModel:f,searchTreeRef:p,setCurrentId:m,setCurrentItemIndex:I,searchParams:h,searchVisible:g,setSearchVisible:C,setSearchTreeNameSearch:b,searchTreeNameSearch:y,treeIsLoading:v,setPreviousView:O,previousView:w,results:_,limit:F}=React.useContext(ActionViewContext),{parentContext:L={},treeExpandable:E,toolbar:P}=e,{t:A,lang:W}=React.useContext(LocaleContext),J=React.useContext(ContentRootContext),{processAction:z}=J||{},[Y,Q]=React.useState(!1),oe=y!==void 0&&y.trim().length>0;function ee(){showDialog$9({confirmMessage:A("confirmRemove"),lang:W,onOk:()=>{X()}})}async function X(){var ce;try{c==null||c(!0),await ConnectionProvider.getHandler().delete({model:f,ids:s.map(Ce=>Ce.id)}),m==null||m(void 0),I==null||I(void 0),(ce=p==null?void 0:p.current)==null||ce.refreshResults()}catch(Ce){showDialog$8(Ce)}finally{c==null||c(!1)}}async function ue(){var ce;try{u==null||u(!0);const Ce=s[0].id;await ConnectionProvider.getHandler().duplicate({id:Ce,model:f,context:{...L}})&&((ce=p==null?void 0:p.current)==null||ce.refreshResults())}catch(Ce){showDialog$8(Ce)}finally{u==null||u(!1)}}function Re(ce){z==null||z({actionData:ce,values:{active_id:s==null?void 0:s.map(Ce=>Ce.id)[0],active_ids:s==null?void 0:s.map(Ce=>Ce.id)},fields:{},context:{...L,active_id:s==null?void 0:s.map(Ce=>Ce.id)[0],active_ids:s==null?void 0:s.map(Ce=>Ce.id)},onRefreshParentValues:()=>{var Ce;(Ce=p==null?void 0:p.current)==null||Ce.refreshResults()}})}return jsxRuntime.jsxs(antd.Space,{wrap:!0,children:[E?null:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(SearchBar,{disabled:d||l||v,searchText:y,onSearch:ce=>{ce&&ce.trim().length>0?b==null||b(ce):b==null||b(void 0)}}),separator$1(),jsxRuntime.jsx(NewButton,{disabled:v}),separator$1(),jsxRuntime.jsx(ActionButton,{icon:jsxRuntime.jsx(Icon.CopyOutlined,{}),tooltip:A("duplicate"),disabled:!s||(s==null?void 0:s.length)!==1||d||v,loading:d,onClick:ue}),jsxRuntime.jsx(ActionButton,{icon:jsxRuntime.jsx(Icon.DeleteOutlined,{}),tooltip:A("delete"),disabled:!(s&&(s==null?void 0:s.length)>0)||v,loading:l,onClick:ee}),separator$1()]}),!E&&jsxRuntime.jsx(ButtonWithBadge,{icon:jsxRuntime.jsx(Icon.FilterOutlined,{style:{color:g?"white":void 0}}),tooltip:A("advanced_search"),type:g?"primary":"default",onClick:()=>{C==null||C(!g)},disabled:d||l||v,badgeNumber:h==null?void 0:h.length}),jsxRuntime.jsx(ActionButton,{icon:jsxRuntime.jsx(Icon.InfoCircleOutlined,{}),tooltip:A("showLogs"),disabled:!(s&&(s==null?void 0:s.length)>0)||v,loading:!1,onClick:()=>{showLogInfo(f,s[0].id,A)}}),jsxRuntime.jsx(ActionButton,{icon:jsxRuntime.jsx(Icon.ReloadOutlined,{}),tooltip:A("refresh"),disabled:d||l||v,loading:!1,onClick:()=>{var ce;(ce=p==null?void 0:p.current)==null||ce.refreshResults()}}),!E&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[separator$1(),jsxRuntime.jsx(ChangeViewButton,{currentView:r,availableViews:o,onChangeView:ce=>{O==null||O(r),a==null||a(ce)},previousView:w,disabled:v})]}),separator$1(),jsxRuntime.jsx(DropdownButton,{icon:jsxRuntime.jsx(Icon.ThunderboltOutlined,{}),disabled:!(s&&(s==null?void 0:s.length)>0)||v,tooltip:A("actions"),items:P==null?void 0:P.action,onItemClick:ce=>{!ce||Re(ce)}}),jsxRuntime.jsx(DropdownButton,{icon:jsxRuntime.jsx(Icon.PrinterOutlined,{}),disabled:!(s&&(s==null?void 0:s.length)>0)||v,tooltip:A("reports"),items:P==null?void 0:P.print,onItemClick:ce=>{!ce||Re({...ce,datas:{...ce.datas||{},ids:s.map(Ce=>Ce.id)}})}}),separator$1(),jsxRuntime.jsx(DropdownButton,{icon:jsxRuntime.jsx(Icon__default.default,{component:()=>jsxRuntime.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-database-export",width:"1em",height:"1em",viewBox:"0 0 24 24","stroke-width":"1.5",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",children:[jsxRuntime.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),jsxRuntime.jsx("ellipse",{cx:"12",cy:"6",rx:"8",ry:"3"}),jsxRuntime.jsx("path",{d:"M4 6v6c0 1.657 3.582 3 8 3a19.84 19.84 0 0 0 3.302 -.267m4.698 -2.733v-6"}),jsxRuntime.jsx("path",{d:"M4 12v6c0 1.599 3.335 2.905 7.538 2.995m8.462 -6.995v-2m-6 7h7m-3 -3l3 3l-3 3"})]})}),tooltip:A("export"),items:[{id:"print_screen",name:A("printScreen")},{id:"export",name:A("advancedExport")}],onItemClick:ce=>{if(ce.id==="print_screen"){let Ce=(s==null?void 0:s.map(te=>te.id))||[];Ce.length===0&&(Ce=(_==null?void 0:_.map(te=>te.id))||[]),Re({id:-1,model:f,report_name:"printscreen.list",type:"ir.actions.report.xml",datas:{model:f,ids:Ce}});return}Q(!0)},disabled:d||l||v||oe}),jsxRuntime.jsx(ExportModal,{visible:Y,locale:W,onClose:()=>Q(!1),model:f,domain:mergeParams(((xe=p==null?void 0:p.current)==null?void 0:xe.getDomain())||[],h||[]),limit:F,totalRegisters:(_==null?void 0:_.length)||0,selectedRegistersToExport:s&&s.length&&s.length>0?s.length:void 0,context:L})]})}function separator$1(){return jsxRuntime.jsx("div",{className:"inline-block w-2"})}const TreeActionView=e=>{const{visible:o,searchTreeRef:r,model:a,context:s,formView:c,treeView:l,domain:d,setCurrentItemIndex:u,results:f,setCurrentId:p,setCurrentView:m,availableViews:I,searchTreeNameSearch:h}=e;return o?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(TitleHeader,{children:jsxRuntime.jsx(TreeActionBar,{toolbar:l==null?void 0:l.toolbar,parentContext:s,treeExpandable:(l==null?void 0:l.isExpandable)||!1})}),jsxRuntime.jsx(SearchTree$1,{ref:r,rootTree:!0,model:a,parentContext:s,nameSearch:h,formView:c,treeView:l,domain:d,onRowClicked:g=>{const{id:C}=g;p(C);const b=f.findIndex(v=>v.id===C);u(b);const y=I.find(v=>v.type==="form");m(y)}})]}):null},DashboardActionContext=React__default.default.createContext(null),DashboardActionProvider=e=>{const[o,r]=React.useState(!1),[a,s]=React.useState(!1),{children:c,dashboardRef:l,openAction:d}=e;return jsxRuntime.jsx(DashboardActionContext.Provider,{value:{isLoading:o,setIsLoading:r,dashboardRef:l,openAction:d,moveItemsEnabled:a,setMoveItemsEnabled:s},children:c})};function DashboardActionBar(){const{isLoading:e,dashboardRef:o,moveItemsEnabled:r,setMoveItemsEnabled:a}=React.useContext(DashboardActionContext),{t:s}=React.useContext(LocaleContext);return jsxRuntime.jsxs(antd.Space,{wrap:!0,children:[jsxRuntime.jsx(ActionButton,{icon:jsxRuntime.jsx(Icon.BorderOuterOutlined,{style:{color:r?"white":void 0}}),type:r?"primary":"default",tooltip:s("moveDashboard"),disabled:e,loading:!1,onClick:()=>{a(!r)}}),separator(),jsxRuntime.jsx(ActionButton,{icon:jsxRuntime.jsx(Icon.SettingOutlined,{}),tooltip:s("configDashboard"),disabled:e,loading:!1,onClick:()=>{o==null||o.current.configDashboard()}}),jsxRuntime.jsx(ActionButton,{icon:jsxRuntime.jsx(Icon.ReloadOutlined,{}),tooltip:s("refresh"),disabled:e,loading:!1,onClick:()=>{o==null||o.current.refresh()}})]})}function separator(){return jsxRuntime.jsx("div",{className:"inline-block w-2"})}const DashboardActionView=e=>{const{dashboardData:o}=e,r=React.useRef(),a=React.useContext(TabManagerContext),{openShortcut:s}=a||{};return o?jsxRuntime.jsxs(DashboardActionProvider,{dashboardRef:r,openAction:c=>{s(c)},children:[jsxRuntime.jsx(TitleHeader,{children:jsxRuntime.jsx(DashboardActionBar,{})}),jsxRuntime.jsx(Dashboard$1,{ref:r,model:o.model,id:o.id,context:o==null?void 0:o.context,configAction:o==null?void 0:o.configAction})]}):null};function ActionView(e,o){const{domain:r,model:a,context:s,views:c,title:l,setCanWeClose:d,tabKey:u,initialView:f,formDefaultValues:p,formForcedValues:m={},res_id:I=!1,action_id:h,action_type:g,treeExpandable:C=!1,limit:b}=e,[y,v]=React.useState(),[O,w]=React.useState([]),[_,F]=React.useState(!0),L=I||void 0,[E,P]=React.useState(L),[A,W]=React.useState([]),[J,z]=React.useState(),[Y,Q]=React.useState([]),[oe,ee]=React.useState(),[X,ue]=React.useState(0),[Re,xe]=React.useState(!1),[ce,Ce]=React.useState(!1),[te,de]=React.useState(),{t:N}=React.useContext(LocaleContext),U=React.useRef(),re=React.useRef(),Te=React.useContext(TabManagerContext),{setCurrentView:Fe,setCurrentId:M,tabs:j,activeKey:we,openAction:je}=Te||{};reactHotkeysHook.useHotkeys("ctrl+g,command+g",Ct=>{Ct.preventDefault(),Tt()},[we,j,y,J,Y]);function tt(Ct){P(Ct),M==null||M(Ct)}function Ne(Ct){v(Ct),Fe==null||Fe(Ct)}React.useImperativeHandle(o,()=>({canWeClose:yt}));const Ge=async()=>{F(!0);const Ct=[];for(const zt of c){const[Ut,Qt]=zt;let Gt;try{Qt!=="dashboard"&&(Gt=await ConnectionProvider.getHandler().getView({model:a,type:Qt,id:Ut,context:s}))}catch(fn){console.error(`${a} - ${Qt}\xA0- ${JSON.stringify(fn,null,2)}`);continue}switch(Qt){case"dashboard":{const fn=c.find(_t=>{const[,Ft]=_t;return Ft==="form"});let nn;fn&&(nn={action_id:h,action_type:g,name:l,res_id:s.active_id,res_model:a,view_id:fn[0],view_type:fn[1]}),Ct.push({type:"dashboard",id:s.active_id,model:a,context:s,configAction:nn});break}case"form":{Ct.push({...Gt});break}case"tree":{Ct.push({...Gt,isExpandable:C});break}case"graph":{Ct.push({...Gt});break}}}let Dt;!f&&Ct.find(zt=>zt.type==="tree")?Dt=Ct.find(Ut=>Ut.type==="tree"):f?Dt=Ct.find(Ut=>f.id?Ut.type===f.type&&Ut.view_id===f.id:Ut.type===f.type):Dt=Ct.find(Ut=>Ut.type==="form"),Dt||showDialog$8(`Error determining the first view to show.
|
|
285
|
+
Please, make sure the view ids on the fields_view_get responses are the same as the ones defined in the action`),Ne(Dt),w(Ct),F(!1)};d({tabKey:u,canWeClose:yt}),React.useEffect(()=>{const Ct=O.find(zt=>zt.type==="tree"),Dt=O.find(zt=>f.id?zt.type===f.type&&zt.view_id===f.id:zt.type===f.type);Ne(Dt||Ct),I?M==null||M(L):(tt(void 0),z(void 0)),Ge()},[a,c,I]),React.useEffect(()=>{we===u&&(M==null||M(E),Fe==null||Fe(y))},[j,we]);async function yt(){return y.type==="form"?await U.current.cancelUnsavedChanges():!0}async function Tt(){we===u&&(y.type==="form"&&!await U.current.cancelUnsavedChanges()||xe(!0))}async function Ot(Ct){var Qt;Ce(!0);const Dt=Y.findIndex(Gt=>Gt.id===Ct);let zt;if(Dt===-1){try{zt=(Qt=await ConnectionProvider.getHandler().readObjects({model:a,ids:[Ct],context:s}))==null?void 0:Qt[0]}catch{}if(!zt){Ce(!1),xe(!1),showDialog$7(N("idNotFound"));return}}else zt=Y[Dt];Ce(!1),xe(!1);const Ut=c.find(Gt=>Gt[1]==="form");je({domain:[],context:s,model:a,views:c,title:l,target:"current",initialView:{id:Ut==null?void 0:Ut[0],type:"form"},action_id:h,action_type:g,res_id:Ct})}function $t(){return O.map(Ct=>{switch(Ct.type){case"form":return jsxRuntime.jsx(FormActionView,{formRef:U,currentId:E,visible:y.type===Ct.type&&y.view_id===Ct.view_id,formView:Ct,model:a,context:s,domain:r,defaultValues:p,forcedValues:m,results:Y,setResults:Q,setCurrentItemIndex:z},`${Ct.type}-${Ct.view_id}`);case"tree":return jsxRuntime.jsx(TreeActionView,{visible:y.type===Ct.type&&y.view_id===Ct.view_id,limit:b,model:a,context:s,domain:r,formView:O.find(Dt=>Dt.type==="form"),treeView:Ct,searchTreeRef:re,searchTreeNameSearch:te,availableViews:O,results:Y,setCurrentItemIndex:z,setCurrentId:tt,setCurrentView:Ne},`${Ct.type}-${Ct.view_id}`);case"graph":return jsxRuntime.jsx(GraphActionView,{visible:y.type===Ct.type&&y.view_id===Ct.view_id,viewData:Ct,model:a,context:s,domain:r,treeView:O.find(Dt=>Dt.type==="tree"),formView:O.find(Dt=>Dt.type==="form")},`${Ct.type}-${Ct.view_id}`);case"dashboard":return jsxRuntime.jsx(DashboardActionView,{dashboardData:Ct},`${Ct.type}-${Ct.view_id}`)}})}function Vt(){if(E===void 0&&y.type==="form")U.current.clearAndReload();else{tt(void 0);const Ct=O.find(Dt=>Dt.type==="form");Ne(Ct)}}return _?jsxRuntime.jsx(antd.Spin,{}):y?jsxRuntime.jsxs(ActionViewProvider,{title:l,currentView:y,setCurrentView:Ne,availableViews:O,formRef:U,searchTreeRef:re,onNewClicked:Vt,currentId:E,setCurrentId:tt,setCurrentItemIndex:z,currentItemIndex:J,results:Y,setResults:Q,currentModel:a,sorter:oe,setSorter:ee,totalItems:X,setTotalItems:ue,selectedRowItems:A,setSelectedRowItems:W,setSearchTreeNameSearch:de,searchTreeNameSearch:te,goToResourceId:Ot,limit:b,children:[$t(),jsxRuntime.jsx(GoToResourceModal,{visible:Re,onIdSubmitted:Ot,isSearching:ce,onCancel:()=>{xe(!1)}})]}):null}const ActionView$1=React.forwardRef(ActionView);var getRandomValues,rnds8=new Uint8Array(16);function rng(){if(!getRandomValues&&(getRandomValues=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!getRandomValues))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return getRandomValues(rnds8)}const REGEX=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function validate(e){return typeof e=="string"&®EX.test(e)}for(var byteToHex=[],i=0;i<256;++i)byteToHex.push((i+256).toString(16).substr(1));function stringify(e){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=(byteToHex[e[o+0]]+byteToHex[e[o+1]]+byteToHex[e[o+2]]+byteToHex[e[o+3]]+"-"+byteToHex[e[o+4]]+byteToHex[e[o+5]]+"-"+byteToHex[e[o+6]]+byteToHex[e[o+7]]+"-"+byteToHex[e[o+8]]+byteToHex[e[o+9]]+"-"+byteToHex[e[o+10]]+byteToHex[e[o+11]]+byteToHex[e[o+12]]+byteToHex[e[o+13]]+byteToHex[e[o+14]]+byteToHex[e[o+15]]).toLowerCase();if(!validate(r))throw TypeError("Stringified UUID is invalid");return r}function v4(e,o,r){e=e||{};var a=e.random||(e.rng||rng)();if(a[6]=a[6]&15|64,a[8]=a[8]&63|128,o){r=r||0;for(var s=0;s<16;++s)o[r+s]=a[s];return o}return stringify(a)}async function fetchAction({actionId:e,rootContext:o={},globalValues:r={}}){const a="ir.actions.act_window",s=`${a},${e}`,c=await ConnectionProvider.getHandler().getActionData({action:s,context:o}),l=ooui.parseContext({context:c.context,values:r,fields:{}}),d=c.domain?await ConnectionProvider.getHandler().evalDomain({domain:c.domain,values:r,context:{...o,...l}}):[],{res_model:u,views:f,name:p,limit:m,view_type:I}=c,h=I==="tree",g=[];for(const v of f){const[O,w]=v;if(O)g.push(v);else{const{view_id:_}=await ConnectionProvider.getHandler().getView({model:u,type:w,id:O,context:{...o,...l}});g.push([_,w])}}const[C,b]=g[0],y={id:C,type:b};return{title:p,actionId:e,actionType:a,key:v4(),views:f,model:u,context:{...o,...l},domain:d,initialView:y,limit:m,treeExpandable:h}}const styles$1="",styles="",ResponsiveReactGridLayout=reactGridLayout.WidthProvider(reactGridLayout.Responsive),DashboardGrid=e=>{const{children:o=[],onPositionItemsChanged:r}=e,a=React__default.default.Children.map(o,s=>{const{parms:c,id:l}=s.props;return jsxRuntime.jsx("div",{"data-grid":c,children:s},l)});return jsxRuntime.jsx(ResponsiveReactGridLayout,{className:"layout",cols:{lg:12,md:10,sm:6,xs:4,xxs:2},draggableHandle:".draggable-head",rowHeight:30,onLayoutChange:s=>{r==null||r(s.map(c=>({id:parseInt(c.i.replace(".$",""),10),x:c.x,y:c.y,w:c.w,h:c.h})))},children:a})},{Text}=antd.Typography,DashboardGridItem=e=>{const{id:o,title:r,children:a,action:s,openAction:c}=e;return jsxRuntime.jsxs("div",{className:"shadow-md rounded",style:{height:"100%",display:"flex",flexDirection:"column",overflow:"hidden",border:"1px solid #eee",backgroundColor:"white"},children:[jsxRuntime.jsxs(antd.Row,{className:"bg-blueGray-100",align:"middle",style:{borderBottom:"1px solid #ddd"},wrap:!1,children:[jsxRuntime.jsx(antd.Col,{flex:"auto",className:"draggable-head",style:{fontWeight:"bold",padding:"0.5rem",cursor:"grab",overflow:"hidden"},children:jsxRuntime.jsx(Text,{ellipsis:!0,children:r})}),s&&jsxRuntime.jsx(antd.Col,{flex:"25px",style:{padding:"0.5rem"},children:jsxRuntime.jsx(antd.Row,{justify:"end",align:"middle",children:jsxRuntime.jsx(Icon.ExportOutlined,{style:{cursor:"pointer"},onClick:()=>{c==null||c(s)}})})})]}),a]})},DEFAULT_SEARCH_LIMIT=80;function DashboardTree(e){const{action:o,model:r,view_id:a,onRowClicked:s,domain:c=[],visible:l=!0,parentContext:d={}}=e,[u,f]=React.useState(!1),[p,m]=React.useState(!1),[I,h]=React.useState(),[g,C]=React.useState(),[b,y]=React.useState(),[v,O]=React.useState(1),[w,_]=React.useState(0),F=React.useRef(DEFAULT_SEARCH_LIMIT),L=React.useRef([]),[E,P]=React.useState(0),[A,W]=React.useState([]),[J,z]=React.useState(void 0),[Y,Q]=React.useState(),[oe,ee]=React.useState(),[X,ue]=React.useState(),[Re,xe]=React.useState(!1),ce=React.useRef([]),Ce=M=>{xe(!0),O(M),_((M-1)*F.current)},te=async()=>{const M=ce.current.length>0?ce.current:c,j=mergeParams(L.current,M),{colors:we}=getTree(g),{totalItems:je,results:tt,attrsEvaluated:Ne}=await ConnectionProvider.getHandler().searchForTree({params:j,limit:F.current,offset:w,model:I,fields:g.fields,context:d,attrs:we&&{colors:we}}),Ge=await je;P(Ge),z(getColorMap(Ne));const yt=sortResults({resultsToSort:tt,sorter:Y,fields:{...g.fields,...b.fields}});W(yt)},de=async()=>{try{xe(!0),await te()}catch(M){ee(JSON.stringify(M))}finally{xe(!1)}};React.useEffect(()=>{!p||l&&de()},[v,w,p,l]);const N=async M=>{m(!1),f(!0),ue(void 0);try{M==="action"?await U():await re(),m(!0)}catch(j){ue(j)}finally{f(!1)}},U=async()=>{const M=await ConnectionProvider.getHandler().getViewsForAction({action:o,context:d});ce.current=M.domain,y(M.views.get("form")),C(M.views.get("tree")),h(M.model),F.current=M.limit},re=async()=>{h(r);const M=await ConnectionProvider.getHandler().getView({model:r,type:"form",context:d});y(M);const j=await ConnectionProvider.getHandler().getView({model:r,type:"tree",id:a,context:d});C(j)};React.useEffect(()=>{o?N("action"):r&&N("model")},[o,r]);const Te=M=>{const{id:j}=M;s({id:j,model:I,treeView:g})},Fe=()=>!g||!b?null:jsxRuntime.jsxs("div",{style:{overflowY:"scroll"},children:[oe&&jsxRuntime.jsx(antd.Alert,{className:"mt-10",message:oe,type:"error",banner:!0}),jsxRuntime.jsx(Tree,{showPagination:!1,total:E,limit:F.current,page:v,treeView:g,results:A,onRequestPageChange:Ce,loading:Re,onRowClicked:Te,colorsForResults:J,sorter:Y,onChangeSort:M=>{Q==null||Q(M);const j=sortResults({resultsToSort:A,sorter:M,fields:{...g.fields,...b.fields}});W(j)}})]});return X?jsxRuntime.jsx(antd.Alert,{className:"mt-10",message:X,type:"error",banner:!0}):u?jsxRuntime.jsx(antd.Spin,{style:{padding:"2rem"}}):Fe()}const DashboardForm=e=>{const{model:o}=e,[r,a]=React.useState();React.useEffect(()=>{s()},[o]);async function s(){const c=await ConnectionProvider.getHandler().search({params:[],model:o,limit:1});c.length>0&&a(c[0].id)}return jsxRuntime.jsx("div",{style:{padding:"0.5rem",overflowY:"scroll"},children:jsxRuntime.jsx(Form$1,{...e,model:o,id:r,readOnly:!0})})},itemsField="line_ids";function Dashboard(e,o){const{model:r,context:a={},id:s,configAction:c}=e,[l,d]=React.useState([]),[u,f]=React.useState(!1),[p,m]=React.useState(),{setIsLoading:I,openAction:h,moveItemsEnabled:g}=React.useContext(DashboardActionContext),C=React.useRef(),b=React.useRef();React.useEffect(()=>{y()},[r,s,a]),React.useImperativeHandle(o,()=>({refresh:()=>{y()},configDashboard:L}));async function y(){f(!0),I(!0),m(void 0);try{const E=await v(),P=await w(E),A=E.fields[itemsField].relation,W=P[itemsField].items;b.current=E.fields;const J=await O({items:W,model:A,context:a}),z=await _(J);d(z),f(!1),I(!1)}catch(E){m(JSON.stringify(E))}}async function v(){return await ConnectionProvider.getHandler().getView({model:r,type:"form",context:a})}async function O({items:E,model:P,context:A}){return C.current=(await ConnectionProvider.getHandler().getView({model:P,type:"form",context:A})).fields,await readObjectValues({treeFields:C.current,formFields:C.current,model:P,items:E,context:A})}async function w(E){return(await ConnectionProvider.getHandler().readObjects({model:r,ids:[s],fields:E.fields,context:a}))[0]}async function _(E){const P=[];for(const A of E){const{values:W}=A;if(W.action_id&&W.action_id.length>0){const J=parseInt(W.action_id[0],10),z=await fetchAction({actionId:J,rootContext:a});P.push({...A,actionData:z})}}return P}async function F(E){if(!g)return;const P=E.filter(z=>{const Y=l.find(oe=>oe.id===z.id);if(!Y)return!1;if(!Y.position)return!0;const Q={...JSON.parse(Y.position.replace(/'/g,'"')),id:Y.id};return JSON.stringify(z)!==JSON.stringify(Q)});if(P.length===0)return;const W=l.filter(z=>P.map(Y=>Y.id).includes(z.id)).map(z=>{const Y={...P.find(Q=>Q.id===z.id)};return delete Y.id,{...z},{...z,operation:"pendingUpdate",values:{...z.values,position:JSON.stringify(Y).replace(/"/g,"'")}}}),J={fields:C.current,items:W};await ConnectionProvider.getHandler().update({model:r,id:s,values:{[itemsField]:J},fields:b.current,context:a})}async function L(){h(c)}return p?jsxRuntime.jsx(antd.Alert,{className:"mt-10 mb-20",message:p,type:"error",banner:!0}):u?jsxRuntime.jsx(Icon.LoadingOutlined,{}):jsxRuntime.jsx(DashboardGrid,{onPositionItemsChanged:F,children:l.map((E,P)=>{const{actionData:A,values:W}=E,{position:J,id:z}=W,{actionId:Y,actionType:Q,key:oe,title:ee,views:X,model:ue,context:Re,domain:xe,initialView:ce,limit:Ce}=A;let te={};try{te=JSON.parse(J.replace(/'/g,'"'))}catch{te={x:P*2,y:0,w:2,h:3}}let de=null;(ce==null?void 0:ce.type)==="graph"?de=jsxRuntime.jsx(Graph,{view_id:X.filter(re=>re[1]==="graph")[0][0],model:ue,context:Re,domain:xe,limit:Ce}):(ce==null?void 0:ce.type)==="form"?de=jsxRuntime.jsx(DashboardForm,{model:ue,actionDomain:xe}):(ce==null?void 0:ce.type)==="tree"?de=jsxRuntime.jsx(DashboardTree,{model:ue,domain:xe,view_id:X.filter(re=>re[1]==="tree")[0][0],onRowClicked:re=>{const Te=X.find(Fe=>{const[,M]=Fe;return M==="form"});if(Te){const[Fe,M]=Te,{actionId:j,actionType:we,title:je,model:tt}=A,Ne={action_id:j,action_type:we,name:je,res_id:re.id,res_model:tt,view_id:Fe,view_type:M};h(Ne)}}}):ce!==void 0&&(de=jsxRuntime.jsx(ActionView$1,{action_id:Y,action_type:Q,tabKey:oe,title:ee,views:X,model:ue,context:Re,domain:xe,setCanWeClose:()=>{},initialView:ce,limit:Ce}));let N;const U=X.find(re=>{const[,Te]=re;return Te==="tree"});if(U){const[re,Te]=U,{actionId:Fe,actionType:M,title:j,model:we}=A;N={action_id:Fe,action_type:M,name:j,res_id:!1,res_model:we,view_id:re,view_type:Te}}return jsxRuntime.jsx(DashboardGridItem,{id:z,title:ee,parms:te,action:N,openAction:h,children:de},z)})})}const Dashboard$1=React.forwardRef(Dashboard),MultiCheckbox=e=>{const{ooui:o}=e;return jsxRuntime.jsx(Field$1,{type:"array",...e,children:jsxRuntime.jsx(MultiCheckboxInput,{ooui:o})})},MultiCheckboxInput=e=>{const{value:o,ooui:r,onChange:a}=e,{items:s=[]}=o||{},c=s.filter(E=>E.operation!=="pendingRemove").map(E=>E.id),[l,d]=React.useState([]),[u,f]=React.useState(),[p,m]=React.useState(!1),{relation:I,context:h,readOnly:g,field:C,columns:b}=r,y=React.useContext(FormContext$1),{getContext:v}=y||{};useDeepCompareEffect__default.default(()=>{w()},[s]);const O=E=>{a==null||a({items:E})};async function w(){m(!0);let E=[];if(r.domain){const P=await ConnectionProvider.getHandler().evalDomain({domain:r.domain,values:transformPlainMany2Ones({fields:y==null?void 0:y.getFields(),values:y.getPlainValues()}),context:y.getContext()});E=[...E,...P]}try{const A=(await ConnectionProvider.getHandler().search({model:I,params:E,fields:[C],context:{...v==null?void 0:v(),...h}})).map(W=>{const J=W[C];let z=J;return Array.isArray(J)&&(z=J[1]),{label:z,value:W.id}});d(A)}catch(P){f(P)}finally{m(!1)}if(u)return jsxRuntime.jsx(antd.Alert,{className:"mt-10",message:u,type:"error",banner:!0})}const _=()=>{L(l.map(E=>E.value))},F=()=>{L([])},L=E=>{const P=s.map(W=>E.includes(W.id)?W.operation=="pendingRemove"?{...W,operation:"original"}:W:{id:W.id,operation:"pendingRemove"}),A=P.map(W=>W.id);E.filter(W=>!A.includes(W)).map(W=>{P.push({id:W,operation:"pendingLink"})}),O(P)};return p&&l.length===0?jsxRuntime.jsx(antd.Spin,{}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:jsxRuntime.jsxs("div",{className:"flex flex-row",children:[jsxRuntime.jsx(antd.Checkbox.Group,{value:l.length?c:[],disabled:g,onChange:L,style:{width:"100%"},children:jsxRuntime.jsx(antd.Row,{children:l.map(E=>jsxRuntime.jsx(antd.Col,{span:Math.floor(24/b),children:jsxRuntime.jsx(antd.Checkbox,{value:E.value,children:E.label})}))})}),!g&&jsxRuntime.jsxs(antd.Space,{children:[jsxRuntime.jsx(antd.Button,{onClick:_,disabled:c.length==l.length,children:"Check all"}),jsxRuntime.jsx(antd.Button,{onClick:F,disabled:c.length===0,children:"Uncheck all"})]})]})})},Radio=e=>{const{ooui:o}=e,{required:r}=o;return jsxRuntime.jsx(Field$1,{required:r,type:"any",...e,children:jsxRuntime.jsx(SelectionInput,{...e})})},SelectionInput=e=>{const{ooui:o,onChange:r,value:a}=e,{selectionValues:s,readOnly:c,direction:l}=o,d=Array.from(s.entries()),u=d&&d.length&&d.map(f=>{const[p,m]=f;return jsxRuntime.jsx(antd.Radio,{value:p,children:m},p)});return jsxRuntime.jsx(antd.Radio.Group,{disabled:c,onChange:r,value:a,children:jsxRuntime.jsx(antd.Space,{direction:l,children:u})})},Switch=e=>{const{ooui:o}=e,{id:r,readOnly:a,required:s}=o;return jsxRuntime.jsx(Field$1,{...e,valuePropName:"checked",children:jsxRuntime.jsx(SwitchInput,{id:r,readOnly:a,required:s})})},SwitchInput=e=>{const{required:o,readOnly:r,...a}=e;return jsxRuntime.jsx("div",{className:"flex flex-row",children:jsxRuntime.jsx(antd.Switch,{disabled:r,...a})})},Steps=e=>{const{ooui:o}=e,{required:r}=o;return jsxRuntime.jsx(Field$1,{required:r,type:"any",...e,children:jsxRuntime.jsx(StepsInput,{...e})})},StepsInput=e=>{const{ooui:o,value:r}=e,{selectionValues:a,errorField:s}=o,c=React.useContext(FormContext$1),l=Array.from(a.entries()),d=l.map(p=>p[0]).indexOf(r);let u="process",f="";return s&&(f=c.getFieldValue(s),f&&(u="error")),jsxRuntime.jsx(antd.Steps,{current:d,status:u,children:l.map((p,m)=>jsxRuntime.jsx(antd.Steps.Step,{title:p[1],description:m===d&&u==="error"?f:null}))})},CodeEditor=e=>{const{ooui:o}=e,{lang:r,height:a}=o,s=React.useContext(FormContext$1),{elementHasLostFocus:c}=s||{},l=d=>{d.onDidBlurEditorWidget(c)};return jsxRuntime.jsx(Field$1,{...e,children:jsxRuntime.jsx(Editor__default.default,{defaultLanguage:r||"",height:a||300,onMount:l})})},{Content}=antd.Layout,{Title}=antd.Typography;function Welcome(){const{t:e}=React.useContext(LocaleContext);return jsxRuntime.jsx(Content,{className:"m-5 select-none",children:jsxRuntime.jsx(Title,{level:5,children:e("welcome")})})}function RootView(e,o){const{children:r,globalValues:a={},rootContext:s={},lang:c}=e,[l,d]=React.useState("welcome"),[u,f]=React.useState([{title:tForLang("welcome",c),key:"welcome",closable:!0,content:jsxRuntime.jsx(Welcome,{})}]),p=React.useRef(new Map),m=React.useRef();React.useImperativeHandle(o,()=>({retrieveAndOpenAction:g,openShortcut:y}));function I(w){if(w===l){const _=u.findIndex(F=>F.key===w);u[_-1]&&d(u[_-1].key),u[_+1]&&d(u[_+1].key)}f(u.filter(_=>_.key!==w)),p.current.delete(w)}function h({tabKey:w,canWeClose:_}){p.current.set(w,_)}async function g({action:w,values:_,forced_values:F,initialViewType:L,res_id:E,domain:P=[]}){const A=await ConnectionProvider.getHandler().getActionData({action:w,context:s});if(A.type==="ir.actions.wizard"){showDialog$8("Action type not supported");return}const[W,J]=w.split(","),z=parseInt(J),Y=ooui.parseContext({context:A.context,values:a,fields:{}}),Q=A.domain?await ConnectionProvider.getHandler().evalDomain({domain:A.domain,values:a,context:{...s,...Y}}):[],{res_model:oe,views:ee,name:X,target:ue,view_type:Re,limit:xe}=A,ce=Re==="tree",Ce=[];for(const de of ee){const[N,U]=de;if(N)Ce.push(de);else if(U==="dashboard")Ce.push([void 0,"dashboard"]);else{const{view_id:re}=await ConnectionProvider.getHandler().getView({model:oe,type:U,id:N,context:{...s,...Y}});Ce.push([re,U])}}let te;if(L){const[de,N]=Ce.find(([U,re])=>re===L);te={id:de,type:N}}else{const[de,N]=Ce[0];te={id:de,type:N}}O({domain:[...Q,...P],context:{...s,...Y},model:oe,views:Ce,title:X,target:ue,initialView:te,action_type:W,action_id:z,values:_,forced_values:F,res_id:E,treeExpandable:ce,limit:xe})}function C({title:w,content:_,key:F,action:L}){let E=[...u];u.length===1&&u[0].key==="welcome"&&(E=[...u.filter(P=>P.key!=="welcome")]),f([...E,{title:w,key:F,closable:!0,content:_,action:L}]),d(F)}async function b({relateData:w,fields:_,values:F,action_id:L,action_type:E}){const{res_model:P,context:A,domain:W,views:J,target:z,string:Y,limit:Q}=w,[oe,ee]=J[0],X={id:oe,type:ee},ue=ooui.parseContext({context:A,values:{...F,...a},fields:_}),Re=W?await ConnectionProvider.getHandler().evalDomain({domain:W,values:transformPlainMany2Ones({fields:_,values:{...F,...a}}),context:{...s,...ue}}):[];O({model:P,target:z,views:J,context:{...s,...ue},domain:Re,title:Y,initialView:X,action_id:L,action_type:E,limit:Q})}async function y(w){const{action_id:_,action_type:F,res_id:L,view_id:E}=w,P=`${F},${_}`,A=await ConnectionProvider.getHandler().getActionData({action:P,context:s}),W=ooui.parseContext({context:A.context,values:a,fields:{}}),J=A.domain?await ConnectionProvider.getHandler().evalDomain({domain:A.domain,values:a,context:{...s,...W}}):[],{res_model:z,views:Y,name:Q,target:oe,view_type:ee,limit:X}=A,ue=ee==="tree",Re=[];for(const te of Y){const[de,N]=te;if(de)Re.push(te);else if(N==="dashboard")Re.push([void 0,"dashboard"]);else{const{view_id:U}=await ConnectionProvider.getHandler().getView({model:z,type:N,id:de,context:{...s,...W}});Re.push([U,N])}}let xe,ce;if(E==null){const te=Re.find(de=>de[0]===void 0);xe=void 0,ce=te[1]}else[xe,ce]=Re.find(te=>te[0]===void 0?!1:te[0]===E);const Ce={id:xe,type:ce};O({domain:J,context:{...s,...W},model:z,views:Re,title:Q,target:oe,initialView:Ce,action_id:_,action_type:F,res_id:L,treeExpandable:ue,limit:X})}async function v({model:w,values:_,forced_values:F,initialViewType:L,res_id:E,domain:P}){const A=await ConnectionProvider.getHandler().getActionStringForModel(w);await g({action:A,values:_,forced_values:F,initialViewType:L,res_id:E,domain:P})}async function O({domain:w,context:_,model:F,views:L,title:E,target:P,initialView:A,action_id:W,action_type:J,res_id:z,values:Y,forced_values:Q,treeExpandable:oe=!1,limit:ee}){const X=v4();if(P!=="current"){const ue=await ConnectionProvider.getHandler().getView({model:F,type:"form",id:A.type==="form"?A.id:void 0,context:{...s,..._}});m.current.openActionModal({domain:w,model:F,formView:ue,context:{...s,..._},actionData:{action_id:W,action_type:J,res_id:z,view_id:ue.view_id}})}else C({title:E,action:{id:W,type:J},content:jsxRuntime.jsx(ActionView$1,{action_id:W,action_type:J,tabKey:X,title:E,views:L,model:F,context:{...s,..._},domain:w,setCanWeClose:h,initialView:A,res_id:z,formDefaultValues:Y,formForcedValues:Q,treeExpandable:oe,limit:ee}),key:X})}return jsxRuntime.jsx(LocaleContextProvider,{lang:c,children:jsxRuntime.jsx(TabManagerProvider,{openShortcut:y,openAction:O,openRelate:b,openDefaultActionForModel:v,tabs:u,activeKey:l,onRemoveTab:async w=>{const _=p.current.get(w);(await(_==null?void 0:_())||l==="welcome")&&I(w)},onChangeTab:w=>{d(w)},children:jsxRuntime.jsx(ContentRootProvider$1,{ref:m,globalValues:a,children:r})})})}const RootView$1=React.forwardRef(RootView);function Tab(e){const{label:o,onClose:r,tabKey:a,isActive:s,onSelected:c}=e,l=s?"#ffffff":"#F1F5F9";return jsxRuntime.jsxs("div",{onClick:()=>{!s&&c(a)},style:{cursor:"pointer",height:40,paddingTop:7,paddingBottom:5,paddingLeft:10,paddingRight:10,backgroundColor:l,display:"inline-flex",flex:1,flexDirection:"row",alignItems:"center",justifyContent:"center",borderTopLeftRadius:8,borderTopRightRadius:8,marginLeft:2},children:[jsxRuntime.jsx("div",{style:{color:s?"#001529":"#ADB0B3",userSelect:"none",height:40,display:"flex",justifyContent:"center",alignItems:"center",paddingLeft:5,paddingRight:5,marginBottom:2},children:o}),jsxRuntime.jsx("div",{style:{paddingLeft:5,height:40,display:"flex",justifyContent:"center",alignItems:"center"},children:jsxRuntime.jsx(Icon.CloseOutlined,{style:{color:s?"#001529":"#ADB0B3"},onClick:d=>{d.stopPropagation(),r(a)}})})]})}function TabSelector(){const e=React.useContext(TabManagerContext),{activeKey:o,tabs:r,onRemoveTab:a,onChangeTab:s}=e||{};return jsxRuntime.jsx(jsxRuntime.Fragment,{children:r.map(c=>jsxRuntime.jsx(Tab,{tabKey:c.key,label:c.title,onClose:a,isActive:o===c.key,onSelected:s},c.key))})}function TabContent(e){const{tab:o}=e,r=React.useContext(TabManagerContext),{activeKey:a}=r||{},s={display:"none"};return jsxRuntime.jsx("div",{style:o.key!==a?s:void 0,children:o.content})}const TabContent$1=React__default.default.memo(TabContent,()=>!0);function CurrentTabContent(){const e=React.useContext(TabManagerContext),{tabs:o}=e||{},r=(o==null?void 0:o.map(a=>jsxRuntime.jsx(TabContent$1,{tab:a},a.key)))||null;return jsxRuntime.jsx(jsxRuntime.Fragment,{children:r})}const FavouriteButton=e=>{const{onRetrieveShortcuts:o,onCheckIsFavourite:r,onAddFavourite:a,onRemoveFavourite:s}=e,[c,l]=React.useState(!1),[d,u]=React.useState(!1),[f,p]=React.useState([]),[m,I]=React.useState(!0),[h,g]=React.useState(),{t:C}=React.useContext(LocaleContext),b=React.useContext(TabManagerContext),{openShortcut:y,tabs:v,activeKey:O,currentView:w,currentId:_,openDefaultActionForModel:F}=b||{};React.useEffect(()=>{L()},[]),React.useEffect(()=>{A()},[v,O,w,_]);async function L(){try{I(!0);const Q=await o();p(Q)}catch(Q){showDialog$8(Q)}finally{I(!1)}}function E(Q){const{key:oe}=Q,ee=f.find(X=>X.id===Number(oe));(ee==null?void 0:ee.action_type)!=="ir.actions.wizard"&&(ee&&y(ee),u(!1))}function P(Q){Q&&L(),u(Q)}async function A(){if(!w)return;const Q=v.find(xe=>xe.key===O),{id:oe,type:ee}=(Q==null?void 0:Q.action)||{};if(!oe||!ee){l(!1);return}const X=w.view_id;let ue=!1;w.type==="form"&&(ue=_||!1);const Re=await r({action_id:oe,action_type:ee,view_id:X,res_id:ue});Re!==!1&&g(Re),l(Re!==!1)}async function W(){u(!1),F==null||F({model:"ir.ui.view_sc"})}const J=jsxRuntime.jsxs(antd.Menu,{onClick:E,children:[jsxRuntime.jsxs("div",{style:{width:300,padding:5,display:"flex"},children:[jsxRuntime.jsx("div",{style:{paddingLeft:15,color:"#ccc"},children:C("favorites").toUpperCase()}),jsxRuntime.jsx("div",{style:{flexGrow:1,paddingLeft:10},children:jsxRuntime.jsx(antd.Tooltip,{title:C("edit_favorites"),children:jsxRuntime.jsx(Icon.EditOutlined,{style:{color:"#1890FF",cursor:"pointer"},onClick:W})})})]}),jsxRuntime.jsx(antd.Menu.Divider,{}),m?jsxRuntime.jsx(antd.Spin,{style:{padding:"1rem"}}):f.length>0?jsxRuntime.jsx(jsxRuntime.Fragment,{children:f.map(Q=>jsxRuntime.jsx(antd.Menu.Item,{children:jsxRuntime.jsx(z,{title:Q.name,type:Q.view_type})},Q.id))}):jsxRuntime.jsx("div",{style:{width:300,padding:5,paddingLeft:15},children:C("no_favorites")})]});function z({title:Q,type:oe}){const ee=oe==="tree"?jsxRuntime.jsx(Icon.TableOutlined,{}):jsxRuntime.jsx(Icon.FormOutlined,{});return jsxRuntime.jsxs(antd.Row,{wrap:!1,children:[jsxRuntime.jsx(antd.Col,{flex:"none",style:{paddingRight:20},children:ee}),jsxRuntime.jsx(antd.Col,{flex:"auto",children:Q})]})}async function Y(){if(c&&h)await s(h);else{if(!w)return;const Q=v.find(Re=>Re.key===O),{id:oe,type:ee}=(Q==null?void 0:Q.action)||{},X=w.view_id;let ue=!1;if(!oe||!ee){l(!1);return}w.type==="form"&&(ue=_||!1),await a({action_id:oe,action_type:ee,view_id:X,res_id:ue})}await L(),l(!c)}return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(antd.Button,{type:c?"primary":"default",icon:c?jsxRuntime.jsx(Icon.StarFilled,{style:{color:"white"}}):jsxRuntime.jsx(Icon.StarOutlined,{}),style:{width:50},onClick:Y}),jsxRuntime.jsx(antd.Dropdown,{overlay:J,onVisibleChange:P,visible:d,children:jsxRuntime.jsx(antd.Button,{style:{width:25},icon:jsxRuntime.jsx(Icon.DownOutlined,{style:{fontSize:"0.5em"}}),onClick:Q=>Q.preventDefault()})})]})};exports.ActionBar=FormActionBar,exports.Binary=Binary,exports.Boolean=Boolean$1,exports.Button=Button,exports.ButtonGroup=ButtonGroup,exports.Char=Char,exports.CodeEditor=CodeEditor,exports.ConnectionProvider=ConnectionProvider,exports.ContentRootProvider=ContentRootProvider$1,exports.CurrentTabContent=CurrentTabContent,exports.Dashboard=Dashboard$1,exports.DashboardGrid=DashboardGrid,exports.DashboardGridItem=DashboardGridItem,exports.Date=Date$1,exports.DateTime=DateTime,exports.Email=Email,exports.ExportModal=ExportModal,exports.FavouriteButton=FavouriteButton,exports.Float=Float,exports.FloatTime=FloatTime,exports.Form=Form$1,exports.FormModal=FormModal,exports.GraphIndicator=GraphIndicator,exports.Group=Group,exports.Image=Image,exports.Integer=Integer,exports.Label=Label,exports.Many2one=Many2one,exports.MultiCheckbox=MultiCheckbox,exports.Notebook=Notebook,exports.One2many=One2many,exports.ProgressBar=ProgressBar,exports.Radio=Radio,exports.Reference=Reference,exports.RootView=RootView$1,exports.SearchFilter=SearchFilter,exports.SearchModal=SearchModal,exports.SearchTree=SearchTree$1,exports.Selection=Selection,exports.Separator=Separator,exports.Steps=Steps,exports.Switch=Switch,exports.TabSelector=TabSelector,exports.Tags=Tags,exports.Text=Text$2,exports.Tree=Tree,exports.Url=Url,exports.iconMapper=iconMapper,exports.showConfirmDialog=showDialog$9,Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
285
286
|
//# sourceMappingURL=react-ooui.umd.js.map
|