diff --git a/docs/assets/AccordionDataList.stories-CsYPBCtb.js b/docs/assets/AccordionDataList.stories-wFssQmkQ.js similarity index 96% rename from docs/assets/AccordionDataList.stories-CsYPBCtb.js rename to docs/assets/AccordionDataList.stories-wFssQmkQ.js index d3db59b6..44a3c5a8 100644 --- a/docs/assets/AccordionDataList.stories-CsYPBCtb.js +++ b/docs/assets/AccordionDataList.stories-wFssQmkQ.js @@ -1,4 +1,4 @@ -import{j as n}from"./jsx-runtime-BTCK_S7S.js";import{r as d}from"./index-CBqU2yxZ.js";import{a as m}from"./chunk-WFFRPTHA-B2vgThZf.js";import{d as a}from"./index-DfmhmaGJ.js";import{B as u}from"./Button-Blq7Z6RX.js";import{_ as c}from"./index-default-C_maRo4o.js";import{C as V}from"./Checkbox-C9uAfnsM.js";import{D as F}from"./Dropdown-Di2cPjwR.js";import{N as H}from"./NestedAccordion-CZICvb0a.js";import{u as J,S}from"./DataList-Ge7tGBgD.js";import{u as U}from"./List-B05DD_Os.js";import{A as w}from"./AddModal-8so4BWij.js";import{A as v}from"./Api-DXLamogn.js";import"./_commonjsHelpers-BosuxZz1.js";import"./preview-errors-CzpZmerH.js";import"./index-CKJfshIT.js";import"./v4-D8aEg3BZ.js";import"./mapValues-CZh2vnSw.js";import"./pickBy-CU2rOOKe.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-Bu_b4Pek.js";import"./index-Cw1G72V2.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./debounce-Bq1aTuh-.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getElementType-CckcRzoH.js";import"./Icon-2tEtgK8g.js";import"./Label-Cq1fb1cd.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./forEach-CXlln0XP.js";import"./Dimmer-D_gwaesu.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./index-DZGZymok.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./map-B4PnIEPz.js";import"./_baseSet-6y0qliU9.js";import"./_baseAssignValue-izmKBXUH.js";import"./without-BP-mqg2K.js";import"./isArrayLikeObject-CbXKTyfk.js";import"./isEmpty-Cyb9hIKi.js";import"./deburr-CEfyoYOr.js";import"./index-BBpNyw-T.js";import"./_arrayReduce-CrxnWFSq.js";import"./filter-CVNi8iPS.js";import"./Accordion-hxhfwUID.js";import"./index.es28-dE8xdd4L.js";import"./iframe-ovyJW9VA.js";import"../sb-preview/runtime.js";import"./index.es3-D5uPylQL.js";import"./uuid-BH6G0oTz.js";import"./Message-3p6wyYpA.js";import"./Input--hQVCRQV.js";import"./i18n-C8zWlANG.js";import"./i18next-Sc0HEOoc.js";import"./toPropertyKey-hKuLU48H.js";import"./defineProperty-CCxoMnQV.js";import"./inherits-D5wXBZoG.js";import"./createClass-D2z1h_eG.js";import"./getPrototypeOf-BYVhAdwF.js";import"./Toaster-C1YYqOUE.js";import"./Transition-DSFEXhCu.js";import"./Confirm-Dw9rt56R.js";import"./Modal-Bz2VEyQG.js";import"./Pagination-D0HmnRDL.js";import"./Menu-9i0apxqd.js";import"./Grid-Czr5owxQ.js";import"./Header-BJ3NNdPz.js";import"./DropdownButton-D3g-r0e9.js";import"./EditModal-DRtAb_yR.js";import"./Loader-CooidObp.js";import"./Form-fErk-qk_.js";import"./AssociatedDropdown-CR7UI3kV.js";import"./FuzzyDate-RqvLBloE.js";import"./DateInput-BO57_F9J.js";import"./ModalContext-Bu-D9kD-.js";import"./Trans-Bk6mzQm0.js";import"./objectWithoutProperties--RY0eV0u.js";import"./utils-Bq6oISwF.js";const X=U(e=>{const i=d.useCallback(t=>{const l=c.filter(e.actions,r=>!r.accept||r.accept(t));return c.isEmpty(l)?null:n.jsx(u.Group,{children:c.map(l,(r,I)=>n.jsx(u,{"aria-label":r.name,basic:!0,color:r.color,icon:r.icon,onClick:r.onClick&&r.onClick.bind(void 0,t),title:r.title},`${r.name}-${I}`))})},[e.actions]),s=d.useCallback(t=>e.selectable?n.jsx(V,{className:"row-select-checkbox",onClick:(l,r)=>e.onRowSelect(r,t,l),checked:!!e.selectedRows.find(l=>l.id===t.id)},`select-checkbox-${t.id}`):null,[e.onRowSelect,e.selectable,e.selectedRows]);return n.jsx("div",{className:["accordion-data-list",e.className||""].join(" "),children:n.jsx(H,{getChildItems:e.getChildItems,onItemToggle:t=>e.onItemToggle&&e.onItemToggle(t),renderItem:t=>e.renderItem(t),renderRight:t=>n.jsxs(n.Fragment,{children:[i(t),s(t)]}),rootItems:e.rootItems,showToggle:t=>e.showToggle(t)})})}),O=e=>{const i=d.useMemo(()=>e.getRootItems(e.items),[e.items]),s=d.useCallback(o=>e.getChildItems(e.items,o),[e.items]),t=d.useRef(),l=d.useMemo(()=>{const o=c.find(e.sort,{value:e.sortColumn});return o&&o.text},[e.sort,e.sortColumn]),r=d.useCallback(o=>{if(!e.onSort)return;let p;o.value!==e.sortColumn&&(p=o.direction),e.onSort(o.value,p)},[e.onSort,e.sortColumn]),I=d.useCallback(()=>c.isEmpty(e.sort)?null:n.jsxs(u.Group,{basic:!0,style:{fontSize:"inherit"},children:[n.jsx(u,{"aria-label":"Sort by",content:l,icon:e.sortDirection===S?"sort alphabet up":"sort alphabet down",onClick:o=>t.current&&t.current.handleClick(o)}),n.jsx(F,{"aria-label":"Sort by toggle",className:"button icon",floating:!0,options:c.map(e.sort,o=>({...o,onClick:()=>r(o)})),ref:t,trigger:n.jsx(n.Fragment,{}),value:e.sortColumn})]}),[e.sort,e.sortColumn,e.sortDirection]);return d.useEffect(()=>{if(c.isEmpty(e.sort))return e.onInit();const{page:o}=e;let{sortColumn:p="",sortDirection:T=S}=e;if(!p){const q=c.first(e.sort);q&&(p=q.value,q.direction&&(T=q.direction))}return e.onSort(p,T,o)},[]),n.jsx(X,{...e,renderListHeader:I,rootItems:i,getChildItems:s})},C=J(O);O.__docgenInfo={description:"",methods:[],displayName:"AccordionDataList",props:{actions:{required:!1,flowType:{name:"Array",elements:[{name:"signature",type:"object",raw:`{ +import{j as n}from"./jsx-runtime-BTCK_S7S.js";import{r as d}from"./index-CBqU2yxZ.js";import{a as m}from"./chunk-WFFRPTHA-B2vgThZf.js";import{d as a}from"./index-CAen7T_W.js";import{B as u}from"./Button-Blq7Z6RX.js";import{_ as c}from"./index-default-C_maRo4o.js";import{C as V}from"./Checkbox-C9uAfnsM.js";import{D as F}from"./Dropdown-Di2cPjwR.js";import{N as H}from"./NestedAccordion-CZICvb0a.js";import{u as J,S}from"./DataList-DKTsnuj_.js";import{u as U}from"./List-tmAiyZhD.js";import{A as w}from"./AddModal-8so4BWij.js";import{A as v}from"./Api-DXLamogn.js";import"./_commonjsHelpers-BosuxZz1.js";import"./preview-errors-CzpZmerH.js";import"./index-CKJfshIT.js";import"./v4-D8aEg3BZ.js";import"./mapValues-LQZI9uWW.js";import"./pickBy-Us6u5-To.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-DCkRKKtx.js";import"./index-Cw1G72V2.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./debounce-BkgZrIul.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getElementType-CckcRzoH.js";import"./Icon-2tEtgK8g.js";import"./Label-Cq1fb1cd.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./forEach-CXlln0XP.js";import"./Dimmer-D_gwaesu.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./index-DZGZymok.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./map-B4PnIEPz.js";import"./_baseSet-6y0qliU9.js";import"./_baseAssignValue-izmKBXUH.js";import"./without-BP-mqg2K.js";import"./isArrayLikeObject-CbXKTyfk.js";import"./isEmpty-Cyb9hIKi.js";import"./deburr-CEfyoYOr.js";import"./index-BBpNyw-T.js";import"./_arrayReduce-CrxnWFSq.js";import"./filter-CVNi8iPS.js";import"./Accordion-hxhfwUID.js";import"./index.es28-Dp3-vHIY.js";import"./iframe-BQtATEn0.js";import"../sb-preview/runtime.js";import"./index.es3-Dgr_7mVc.js";import"./uuid-BH6G0oTz.js";import"./Message-3p6wyYpA.js";import"./Input--hQVCRQV.js";import"./i18n-C8zWlANG.js";import"./i18next-Sc0HEOoc.js";import"./toPropertyKey-hKuLU48H.js";import"./defineProperty-CCxoMnQV.js";import"./inherits-D5wXBZoG.js";import"./createClass-D2z1h_eG.js";import"./getPrototypeOf-BYVhAdwF.js";import"./Toaster-C1YYqOUE.js";import"./Transition-DSFEXhCu.js";import"./Confirm-Dw9rt56R.js";import"./Modal-Bz2VEyQG.js";import"./Pagination-D0HmnRDL.js";import"./Menu-9i0apxqd.js";import"./Grid-Czr5owxQ.js";import"./Header-BJ3NNdPz.js";import"./DropdownButton-D3g-r0e9.js";import"./EditModal-WP1CvOLP.js";import"./Loader-CooidObp.js";import"./Form-fErk-qk_.js";import"./AssociatedDropdown-DQppeffT.js";import"./FuzzyDate-Bx1epA16.js";import"./DateInput-BO57_F9J.js";import"./ModalContext-Bu-D9kD-.js";import"./Trans-Bk6mzQm0.js";import"./objectWithoutProperties--RY0eV0u.js";import"./utils-Bq6oISwF.js";const X=U(e=>{const i=d.useCallback(t=>{const l=c.filter(e.actions,r=>!r.accept||r.accept(t));return c.isEmpty(l)?null:n.jsx(u.Group,{children:c.map(l,(r,I)=>n.jsx(u,{"aria-label":r.name,basic:!0,color:r.color,icon:r.icon,onClick:r.onClick&&r.onClick.bind(void 0,t),title:r.title},`${r.name}-${I}`))})},[e.actions]),s=d.useCallback(t=>e.selectable?n.jsx(V,{className:"row-select-checkbox",onClick:(l,r)=>e.onRowSelect(r,t,l),checked:!!e.selectedRows.find(l=>l.id===t.id)},`select-checkbox-${t.id}`):null,[e.onRowSelect,e.selectable,e.selectedRows]);return n.jsx("div",{className:["accordion-data-list",e.className||""].join(" "),children:n.jsx(H,{getChildItems:e.getChildItems,onItemToggle:t=>e.onItemToggle&&e.onItemToggle(t),renderItem:t=>e.renderItem(t),renderRight:t=>n.jsxs(n.Fragment,{children:[i(t),s(t)]}),rootItems:e.rootItems,showToggle:t=>e.showToggle(t)})})}),O=e=>{const i=d.useMemo(()=>e.getRootItems(e.items),[e.items]),s=d.useCallback(o=>e.getChildItems(e.items,o),[e.items]),t=d.useRef(),l=d.useMemo(()=>{const o=c.find(e.sort,{value:e.sortColumn});return o&&o.text},[e.sort,e.sortColumn]),r=d.useCallback(o=>{if(!e.onSort)return;let p;o.value!==e.sortColumn&&(p=o.direction),e.onSort(o.value,p)},[e.onSort,e.sortColumn]),I=d.useCallback(()=>c.isEmpty(e.sort)?null:n.jsxs(u.Group,{basic:!0,style:{fontSize:"inherit"},children:[n.jsx(u,{"aria-label":"Sort by",content:l,icon:e.sortDirection===S?"sort alphabet up":"sort alphabet down",onClick:o=>t.current&&t.current.handleClick(o)}),n.jsx(F,{"aria-label":"Sort by toggle",className:"button icon",floating:!0,options:c.map(e.sort,o=>({...o,onClick:()=>r(o)})),ref:t,trigger:n.jsx(n.Fragment,{}),value:e.sortColumn})]}),[e.sort,e.sortColumn,e.sortDirection]);return d.useEffect(()=>{if(c.isEmpty(e.sort))return e.onInit();const{page:o}=e;let{sortColumn:p="",sortDirection:T=S}=e;if(!p){const q=c.first(e.sort);q&&(p=q.value,q.direction&&(T=q.direction))}return e.onSort(p,T,o)},[]),n.jsx(X,{...e,renderListHeader:I,rootItems:i,getChildItems:s})},C=J(O);O.__docgenInfo={description:"",methods:[],displayName:"AccordionDataList",props:{actions:{required:!1,flowType:{name:"Array",elements:[{name:"signature",type:"object",raw:`{ accept: (item: any) => boolean, color?: string, icon?: string, diff --git a/docs/assets/AccordionList.stories-a7xEEwhw.js b/docs/assets/AccordionList.stories-B2Nn7UUD.js similarity index 97% rename from docs/assets/AccordionList.stories-a7xEEwhw.js rename to docs/assets/AccordionList.stories-B2Nn7UUD.js index 29856cad..dbdb563c 100644 --- a/docs/assets/AccordionList.stories-a7xEEwhw.js +++ b/docs/assets/AccordionList.stories-B2Nn7UUD.js @@ -1,4 +1,4 @@ -var N=Object.defineProperty;var q=(a,e,t)=>e in a?N(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t;var C=(a,e,t)=>(q(a,typeof e!="symbol"?e+"":e,t),t);import{j as n}from"./jsx-runtime-BTCK_S7S.js";import{r as E}from"./index-CBqU2yxZ.js";import{a as d}from"./chunk-WFFRPTHA-B2vgThZf.js";import{d as i}from"./index-DfmhmaGJ.js";import{_ as s}from"./index-default-C_maRo4o.js";import{B as m}from"./Button-Blq7Z6RX.js";import{u as I}from"./index.es28-dE8xdd4L.js";import{Y as L}from"./index.es3-D5uPylQL.js";import{C as M}from"./Confirm-Dw9rt56R.js";import{P as H}from"./Pagination-D0HmnRDL.js";import{G as f}from"./Grid-Czr5owxQ.js";import{M as A}from"./Message-3p6wyYpA.js";import{H as K}from"./Header-BJ3NNdPz.js";import{I as V}from"./Input--hQVCRQV.js";import{C as S}from"./Checkbox-C9uAfnsM.js";import{i as l}from"./i18n-C8zWlANG.js";import{E as z}from"./EditModal-DRtAb_yR.js";import{N as F}from"./NestedAccordion-CZICvb0a.js";import{T as x}from"./Toaster-C1YYqOUE.js";import{A as g}from"./AddModal-8so4BWij.js";import{A as b}from"./Api-DXLamogn.js";import"./_commonjsHelpers-BosuxZz1.js";import"./preview-errors-CzpZmerH.js";import"./index-CKJfshIT.js";import"./v4-D8aEg3BZ.js";import"./mapValues-CZh2vnSw.js";import"./pickBy-CU2rOOKe.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-Bu_b4Pek.js";import"./index-Cw1G72V2.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./debounce-Bq1aTuh-.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getElementType-CckcRzoH.js";import"./Icon-2tEtgK8g.js";import"./Label-Cq1fb1cd.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./forEach-CXlln0XP.js";import"./Dimmer-D_gwaesu.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./index-DZGZymok.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./map-B4PnIEPz.js";import"./iframe-ovyJW9VA.js";import"../sb-preview/runtime.js";import"./Transition-DSFEXhCu.js";import"./_baseAssignValue-izmKBXUH.js";import"./filter-CVNi8iPS.js";import"./Modal-Bz2VEyQG.js";import"./index-BBpNyw-T.js";import"./_baseSet-6y0qliU9.js";import"./_arrayReduce-CrxnWFSq.js";import"./isEmpty-Cyb9hIKi.js";import"./Menu-9i0apxqd.js";import"./deburr-CEfyoYOr.js";import"./i18next-Sc0HEOoc.js";import"./toPropertyKey-hKuLU48H.js";import"./defineProperty-CCxoMnQV.js";import"./inherits-D5wXBZoG.js";import"./createClass-D2z1h_eG.js";import"./getPrototypeOf-BYVhAdwF.js";import"./Loader-CooidObp.js";import"./Accordion-hxhfwUID.js";import"./without-BP-mqg2K.js";import"./isArrayLikeObject-CbXKTyfk.js";class p extends E.Component{constructor(e){super(e),this.state={count:0,items:[],modalAdd:!1,modalDelete:!1,page:1,pages:1,saved:!1,searchQuery:"",selectedItem:null}}componentDidMount(){this.onSearch()}onAddButton(e){let t=e;this.props.modal&&this.props.modal.onAddItem&&(t=this.props.modal.onAddItem(e)),this.setState({modalAdd:!0,selectedItem:t})}onDelete(){const e=this.state.selectedItem;return this.props.onDelete(e).then(()=>{this.setState(t=>({modalDelete:!1,selectedItem:null,items:s.reject(t.items,r=>r===e)}))})}onDeleteButton(e){this.setState({modalDelete:!0,selectedItem:e})}onEditButton(e){this.setState({modalAdd:!0,selectedItem:e})}onCopyButton(e){let t;this.props.onCopy&&(t=this.props.onCopy(e),L.isPromise(t)?t.then(r=>{this.setState({selectedItem:r,modalAdd:!0})}):(t=s.omit(e,"id","uid"),this.setState({selectedItem:t,modalAdd:!0})))}onItemToggle(e){!e.loaded&&this.props.lazyLoad&&this.onSearch(e.id).then(()=>{this.setState(t=>({items:s.map(t.items,r=>r.id===e.id?{...r,loaded:!0}:r)}))})}onPageChange(e,t){this.setState({page:t.activePage},()=>this.onSearch())}onSave(e){return this.props.onSave(e).then(t=>{this.setState(r=>({modalAdd:!1,selectedItem:!1,saved:!0,items:e.id?s.map(r.items,o=>o.id===t.id?t:o):[...r.items,t]}))})}onSearch(e){return this.props.lazyLoad?this.props.onSearch(e,this.state.searchQuery).then(({data:t})=>{const r=t[this.props.collectionName];this.setState(o=>e?{items:[...o.items||[],...r]}:{items:r})}):this.props.onSearch(this.state.searchQuery,this.state.page).then(({data:t})=>{const r=t[this.props.collectionName];if(this.setState({items:r}),this.props.showRecordCount&&this.setState({count:t.list.count}),this.props.pagination){const o=t.list.pages;this.setState({pages:o})}})}onSearchChange(e,{value:t}){this.setState({searchQuery:t})}render(){return n.jsxs("div",{className:["accordion-list",this.props.className||""].join(" "),children:[n.jsxs(K,{className:"accordion-header",children:[n.jsx(V,{"aria-label":"Search",autoFocus:!0,className:"search",icon:"search",onKeyDown:I.clearSearchTimer.bind(this),onKeyUp:I.setSearchTimer.bind(this,this.onSearch.bind(this)),onChange:this.onSearchChange.bind(this),size:"mini",type:"text",value:this.state.searchQuery}),this.renderHeaderAddButton(),this.props.buttons.map(e=>e.render())]}),this.renderSubHeader(),n.jsx(F,{getChildItems:this.props.getChildItems.bind(this,this.state.items),onItemToggle:this.onItemToggle.bind(this),renderItem:this.props.renderItem.bind(this),renderRight:this.renderRight.bind(this),rootItems:this.props.getRootItems(this.state.items),showToggle:this.props.showToggle.bind(this)}),this.renderFooter(),this.renderAddModal(),n.jsx(M,{content:l.t("AccordionList.deleteContent"),header:l.t("AccordionList.deleteHeader"),open:this.state.modalDelete,onCancel:()=>this.setState({modalDelete:!1,selectedItem:null}),onConfirm:this.onDelete.bind(this)}),this.state.saved&&n.jsxs(x,{onDismiss:()=>this.setState({saved:!1}),type:x.MessageTypes.positive,children:[n.jsx(A.Header,{content:l.t("Common.messages.save.header")}),n.jsx(A.Content,{content:l.t("Common.messages.save.content")})]})]})}renderAddButton(e){return this.props.canAddItem&&!this.props.canAddItem(e)?null:n.jsx(m,{"aria-label":"Add",basic:!0,compact:!0,icon:"plus",onClick:this.onAddButton.bind(this,e)})}renderSelectAll(){if(!this.props.selectable&&!this.props.onSelectAll)return null;const e=this.props.selectedRows.map(o=>o.id),r=(this.state.items?this.state.items:[]).reduce((o,y)=>e.includes(y.id)?o:[...o,y],[]);return n.jsx(S,{"aria-label":"Select All",onClick:(o,y)=>this.props.onSelectAll(y,r,this.state.items,o),checked:!r.length})}renderSubHeader(){return n.jsx("div",{className:"sub-header",children:this.renderSelectAll()})}renderAddModal(){if(!(this.state.modalAdd&&this.props.modal))return null;const{component:e,props:t}=this.props.modal;return n.jsx(z,{component:e,item:this.state.selectedItem,onClose:()=>this.setState({modalAdd:!1,selectedItem:null}),onSave:this.onSave.bind(this),...t})}renderDeleteButton(e){return this.props.canDeleteItem&&!this.props.canDeleteItem(e)?null:n.jsx(m,{"aria-label":"Delete",basic:!0,compact:!0,icon:"trash",onClick:this.onDeleteButton.bind(this,e)})}renderEditButton(e){return this.props.canEditItem&&!this.props.canEditItem(e)?null:n.jsx(m,{"aria-label":"Edit",basic:!0,compact:!0,icon:"edit",onClick:this.onEditButton.bind(this,e)})}renderCopyButton(e){return this.props.canCopyItem&&!this.props.canCopyItem(e)?null:n.jsx(m,{"aria-label":"Copy",basic:!0,compact:!0,icon:"copy",onClick:()=>this.onCopyButton(e)})}renderHeaderAddButton(){return!this.props.modal||this.props.hideAddRootButton?null:n.jsx(m,{basic:!0,className:"add-button",content:l.t("Common.buttons.add"),icon:"plus",onClick:()=>this.setState({modalAdd:!0})})}renderRecordCount(){const e=this.state.count;return e?n.jsx("span",{className:"record-count",children:`${Number(e).toLocaleString()} ${l.t("AccordionList.record",{count:e})}`}):null}renderPagination(){return this.props.pagination?n.jsx(H,{activePage:this.state.page,onPageChange:this.onPageChange.bind(this),size:"mini",totalPages:this.state.pages}):null}renderFooter(){return this.props.pagination||this.props.showRecordCount?n.jsx("div",{className:"footer",children:n.jsxs(f,{columns:2,children:[n.jsx(f.Column,{textAlign:"left",children:this.renderRecordCount()}),n.jsx(f.Column,{textAlign:"right",children:this.renderPagination()})]})}):null}renderSelectCheckbox(e){if(!this.props.selectable)return null;const t=this.props.selectedRows.find(r=>r.id===e.id);return n.jsx(S,{"aria-label":"Select",className:"row-select-checkbox",onClick:(r,o)=>this.props.onRowSelect(o,e,r),checked:!!t},`select-checkbox-${e.id}`)}renderRight(e){return n.jsxs(n.Fragment,{children:[n.jsxs(m.Group,{children:[this.renderAddButton(e),this.renderEditButton(e),this.renderCopyButton(e),this.renderDeleteButton(e)]}),this.renderSelectCheckbox(e)]})}}C(p,"defaultProps");p.defaultProps={buttons:[],canAddItem:()=>!0,canDeleteItem:()=>!0,canEditItem:()=>!0,canCopyItem:()=>!1,className:"",lazyLoad:!0,modal:void 0,pagination:!1};p.__docgenInfo={description:"",methods:[{name:"onAddButton",docblock:`Displays the add modal for the selected item. +var N=Object.defineProperty;var q=(a,e,t)=>e in a?N(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t;var C=(a,e,t)=>(q(a,typeof e!="symbol"?e+"":e,t),t);import{j as n}from"./jsx-runtime-BTCK_S7S.js";import{r as E}from"./index-CBqU2yxZ.js";import{a as d}from"./chunk-WFFRPTHA-B2vgThZf.js";import{d as i}from"./index-CAen7T_W.js";import{_ as s}from"./index-default-C_maRo4o.js";import{B as m}from"./Button-Blq7Z6RX.js";import{u as I}from"./index.es28-Dp3-vHIY.js";import{Y as L}from"./index.es3-Dgr_7mVc.js";import{C as M}from"./Confirm-Dw9rt56R.js";import{P as H}from"./Pagination-D0HmnRDL.js";import{G as f}from"./Grid-Czr5owxQ.js";import{M as A}from"./Message-3p6wyYpA.js";import{H as K}from"./Header-BJ3NNdPz.js";import{I as V}from"./Input--hQVCRQV.js";import{C as S}from"./Checkbox-C9uAfnsM.js";import{i as l}from"./i18n-C8zWlANG.js";import{E as z}from"./EditModal-WP1CvOLP.js";import{N as F}from"./NestedAccordion-CZICvb0a.js";import{T as x}from"./Toaster-C1YYqOUE.js";import{A as g}from"./AddModal-8so4BWij.js";import{A as b}from"./Api-DXLamogn.js";import"./_commonjsHelpers-BosuxZz1.js";import"./preview-errors-CzpZmerH.js";import"./index-CKJfshIT.js";import"./v4-D8aEg3BZ.js";import"./mapValues-LQZI9uWW.js";import"./pickBy-Us6u5-To.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-DCkRKKtx.js";import"./index-Cw1G72V2.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./debounce-BkgZrIul.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getElementType-CckcRzoH.js";import"./Icon-2tEtgK8g.js";import"./Label-Cq1fb1cd.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./forEach-CXlln0XP.js";import"./Dimmer-D_gwaesu.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./index-DZGZymok.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./map-B4PnIEPz.js";import"./iframe-BQtATEn0.js";import"../sb-preview/runtime.js";import"./Transition-DSFEXhCu.js";import"./_baseAssignValue-izmKBXUH.js";import"./filter-CVNi8iPS.js";import"./Modal-Bz2VEyQG.js";import"./index-BBpNyw-T.js";import"./_baseSet-6y0qliU9.js";import"./_arrayReduce-CrxnWFSq.js";import"./isEmpty-Cyb9hIKi.js";import"./Menu-9i0apxqd.js";import"./deburr-CEfyoYOr.js";import"./i18next-Sc0HEOoc.js";import"./toPropertyKey-hKuLU48H.js";import"./defineProperty-CCxoMnQV.js";import"./inherits-D5wXBZoG.js";import"./createClass-D2z1h_eG.js";import"./getPrototypeOf-BYVhAdwF.js";import"./Loader-CooidObp.js";import"./Accordion-hxhfwUID.js";import"./without-BP-mqg2K.js";import"./isArrayLikeObject-CbXKTyfk.js";class p extends E.Component{constructor(e){super(e),this.state={count:0,items:[],modalAdd:!1,modalDelete:!1,page:1,pages:1,saved:!1,searchQuery:"",selectedItem:null}}componentDidMount(){this.onSearch()}onAddButton(e){let t=e;this.props.modal&&this.props.modal.onAddItem&&(t=this.props.modal.onAddItem(e)),this.setState({modalAdd:!0,selectedItem:t})}onDelete(){const e=this.state.selectedItem;return this.props.onDelete(e).then(()=>{this.setState(t=>({modalDelete:!1,selectedItem:null,items:s.reject(t.items,r=>r===e)}))})}onDeleteButton(e){this.setState({modalDelete:!0,selectedItem:e})}onEditButton(e){this.setState({modalAdd:!0,selectedItem:e})}onCopyButton(e){let t;this.props.onCopy&&(t=this.props.onCopy(e),L.isPromise(t)?t.then(r=>{this.setState({selectedItem:r,modalAdd:!0})}):(t=s.omit(e,"id","uid"),this.setState({selectedItem:t,modalAdd:!0})))}onItemToggle(e){!e.loaded&&this.props.lazyLoad&&this.onSearch(e.id).then(()=>{this.setState(t=>({items:s.map(t.items,r=>r.id===e.id?{...r,loaded:!0}:r)}))})}onPageChange(e,t){this.setState({page:t.activePage},()=>this.onSearch())}onSave(e){return this.props.onSave(e).then(t=>{this.setState(r=>({modalAdd:!1,selectedItem:!1,saved:!0,items:e.id?s.map(r.items,o=>o.id===t.id?t:o):[...r.items,t]}))})}onSearch(e){return this.props.lazyLoad?this.props.onSearch(e,this.state.searchQuery).then(({data:t})=>{const r=t[this.props.collectionName];this.setState(o=>e?{items:[...o.items||[],...r]}:{items:r})}):this.props.onSearch(this.state.searchQuery,this.state.page).then(({data:t})=>{const r=t[this.props.collectionName];if(this.setState({items:r}),this.props.showRecordCount&&this.setState({count:t.list.count}),this.props.pagination){const o=t.list.pages;this.setState({pages:o})}})}onSearchChange(e,{value:t}){this.setState({searchQuery:t})}render(){return n.jsxs("div",{className:["accordion-list",this.props.className||""].join(" "),children:[n.jsxs(K,{className:"accordion-header",children:[n.jsx(V,{"aria-label":"Search",autoFocus:!0,className:"search",icon:"search",onKeyDown:I.clearSearchTimer.bind(this),onKeyUp:I.setSearchTimer.bind(this,this.onSearch.bind(this)),onChange:this.onSearchChange.bind(this),size:"mini",type:"text",value:this.state.searchQuery}),this.renderHeaderAddButton(),this.props.buttons.map(e=>e.render())]}),this.renderSubHeader(),n.jsx(F,{getChildItems:this.props.getChildItems.bind(this,this.state.items),onItemToggle:this.onItemToggle.bind(this),renderItem:this.props.renderItem.bind(this),renderRight:this.renderRight.bind(this),rootItems:this.props.getRootItems(this.state.items),showToggle:this.props.showToggle.bind(this)}),this.renderFooter(),this.renderAddModal(),n.jsx(M,{content:l.t("AccordionList.deleteContent"),header:l.t("AccordionList.deleteHeader"),open:this.state.modalDelete,onCancel:()=>this.setState({modalDelete:!1,selectedItem:null}),onConfirm:this.onDelete.bind(this)}),this.state.saved&&n.jsxs(x,{onDismiss:()=>this.setState({saved:!1}),type:x.MessageTypes.positive,children:[n.jsx(A.Header,{content:l.t("Common.messages.save.header")}),n.jsx(A.Content,{content:l.t("Common.messages.save.content")})]})]})}renderAddButton(e){return this.props.canAddItem&&!this.props.canAddItem(e)?null:n.jsx(m,{"aria-label":"Add",basic:!0,compact:!0,icon:"plus",onClick:this.onAddButton.bind(this,e)})}renderSelectAll(){if(!this.props.selectable&&!this.props.onSelectAll)return null;const e=this.props.selectedRows.map(o=>o.id),r=(this.state.items?this.state.items:[]).reduce((o,y)=>e.includes(y.id)?o:[...o,y],[]);return n.jsx(S,{"aria-label":"Select All",onClick:(o,y)=>this.props.onSelectAll(y,r,this.state.items,o),checked:!r.length})}renderSubHeader(){return n.jsx("div",{className:"sub-header",children:this.renderSelectAll()})}renderAddModal(){if(!(this.state.modalAdd&&this.props.modal))return null;const{component:e,props:t}=this.props.modal;return n.jsx(z,{component:e,item:this.state.selectedItem,onClose:()=>this.setState({modalAdd:!1,selectedItem:null}),onSave:this.onSave.bind(this),...t})}renderDeleteButton(e){return this.props.canDeleteItem&&!this.props.canDeleteItem(e)?null:n.jsx(m,{"aria-label":"Delete",basic:!0,compact:!0,icon:"trash",onClick:this.onDeleteButton.bind(this,e)})}renderEditButton(e){return this.props.canEditItem&&!this.props.canEditItem(e)?null:n.jsx(m,{"aria-label":"Edit",basic:!0,compact:!0,icon:"edit",onClick:this.onEditButton.bind(this,e)})}renderCopyButton(e){return this.props.canCopyItem&&!this.props.canCopyItem(e)?null:n.jsx(m,{"aria-label":"Copy",basic:!0,compact:!0,icon:"copy",onClick:()=>this.onCopyButton(e)})}renderHeaderAddButton(){return!this.props.modal||this.props.hideAddRootButton?null:n.jsx(m,{basic:!0,className:"add-button",content:l.t("Common.buttons.add"),icon:"plus",onClick:()=>this.setState({modalAdd:!0})})}renderRecordCount(){const e=this.state.count;return e?n.jsx("span",{className:"record-count",children:`${Number(e).toLocaleString()} ${l.t("AccordionList.record",{count:e})}`}):null}renderPagination(){return this.props.pagination?n.jsx(H,{activePage:this.state.page,onPageChange:this.onPageChange.bind(this),size:"mini",totalPages:this.state.pages}):null}renderFooter(){return this.props.pagination||this.props.showRecordCount?n.jsx("div",{className:"footer",children:n.jsxs(f,{columns:2,children:[n.jsx(f.Column,{textAlign:"left",children:this.renderRecordCount()}),n.jsx(f.Column,{textAlign:"right",children:this.renderPagination()})]})}):null}renderSelectCheckbox(e){if(!this.props.selectable)return null;const t=this.props.selectedRows.find(r=>r.id===e.id);return n.jsx(S,{"aria-label":"Select",className:"row-select-checkbox",onClick:(r,o)=>this.props.onRowSelect(o,e,r),checked:!!t},`select-checkbox-${e.id}`)}renderRight(e){return n.jsxs(n.Fragment,{children:[n.jsxs(m.Group,{children:[this.renderAddButton(e),this.renderEditButton(e),this.renderCopyButton(e),this.renderDeleteButton(e)]}),this.renderSelectCheckbox(e)]})}}C(p,"defaultProps");p.defaultProps={buttons:[],canAddItem:()=>!0,canDeleteItem:()=>!0,canEditItem:()=>!0,canCopyItem:()=>!1,className:"",lazyLoad:!0,modal:void 0,pagination:!1};p.__docgenInfo={description:"",methods:[{name:"onAddButton",docblock:`Displays the add modal for the selected item. @param item`,modifiers:[],params:[{name:"item",optional:!1,type:{name:"any"}}],returns:null,description:"Displays the add modal for the selected item."},{name:"onDelete",docblock:`Deletes the currently selected item. diff --git a/docs/assets/AccordionSelector.stories-BdgABZxJ.js b/docs/assets/AccordionSelector.stories-B7uVjHJ9.js similarity index 96% rename from docs/assets/AccordionSelector.stories-BdgABZxJ.js rename to docs/assets/AccordionSelector.stories-B7uVjHJ9.js index f2470c80..fc0da395 100644 --- a/docs/assets/AccordionSelector.stories-BdgABZxJ.js +++ b/docs/assets/AccordionSelector.stories-B7uVjHJ9.js @@ -1,4 +1,4 @@ -var C=Object.defineProperty;var w=(i,e,t)=>e in i?C(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var f=(i,e,t)=>(w(i,typeof e!="symbol"?e+"":e,t),t);import{j as a}from"./jsx-runtime-BTCK_S7S.js";import{r as b}from"./index-CBqU2yxZ.js";import{a as p}from"./chunk-WFFRPTHA-B2vgThZf.js";import{d as h}from"./index-DfmhmaGJ.js";import{B as d}from"./Button-Blq7Z6RX.js";import{_ as o}from"./index-default-C_maRo4o.js";import{u as g}from"./index.es28-dE8xdd4L.js";import{G as u}from"./Grid-Czr5owxQ.js";import{M as _}from"./Message-3p6wyYpA.js";import{H as T}from"./Header-BJ3NNdPz.js";import{I as x}from"./Icon-2tEtgK8g.js";import{I as k}from"./Input--hQVCRQV.js";import{M as l}from"./Modal-Bz2VEyQG.js";import{i as r}from"./i18n-C8zWlANG.js";import{E as M}from"./EditModal-DRtAb_yR.js";import{M as j}from"./ModalContext-Bu-D9kD-.js";import{N as R}from"./NestedAccordion-CZICvb0a.js";import{S as q}from"./SelectizeHeader-BiV_Rzyz.js";import{T as y}from"./Toaster-C1YYqOUE.js";import{w as D}from"./withTranslation-D8FvQLBO.js";import{A as E}from"./AddModal-8so4BWij.js";import{A as P}from"./Api-DXLamogn.js";import"./_commonjsHelpers-BosuxZz1.js";import"./preview-errors-CzpZmerH.js";import"./index-CKJfshIT.js";import"./v4-D8aEg3BZ.js";import"./mapValues-CZh2vnSw.js";import"./pickBy-CU2rOOKe.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-Bu_b4Pek.js";import"./index-Cw1G72V2.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./debounce-Bq1aTuh-.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getElementType-CckcRzoH.js";import"./Label-Cq1fb1cd.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./forEach-CXlln0XP.js";import"./Dimmer-D_gwaesu.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./index-DZGZymok.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./map-B4PnIEPz.js";import"./iframe-ovyJW9VA.js";import"../sb-preview/runtime.js";import"./index-BBpNyw-T.js";import"./_baseSet-6y0qliU9.js";import"./_baseAssignValue-izmKBXUH.js";import"./_arrayReduce-CrxnWFSq.js";import"./isEmpty-Cyb9hIKi.js";import"./i18next-Sc0HEOoc.js";import"./toPropertyKey-hKuLU48H.js";import"./defineProperty-CCxoMnQV.js";import"./inherits-D5wXBZoG.js";import"./createClass-D2z1h_eG.js";import"./getPrototypeOf-BYVhAdwF.js";import"./index.es3-D5uPylQL.js";import"./Loader-CooidObp.js";import"./Accordion-hxhfwUID.js";import"./without-BP-mqg2K.js";import"./isArrayLikeObject-CbXKTyfk.js";import"./Segment-C5_maSSM.js";import"./Transition-DSFEXhCu.js";import"./filter-CVNi8iPS.js";import"./slicedToArray-D1W8oQh0.js";import"./nonIterableRest-Bc-81Ll3.js";import"./unsupportedIterableToArray-78IFcom3.js";import"./objectWithoutProperties--RY0eV0u.js";import"./utils-Bq6oISwF.js";class c extends b.Component{constructor(e){super(e),this.state={items:[],modalAdd:!1,saved:!1,searchQuery:"",selectedItem:null,selectedItems:e.selectedItems}}componentDidUpdate(e){this.props.open&&!e.open&&this.onSearch(),this.props.selectedItems!==e.selectedItems&&this.setState({selectedItems:this.props.selectedItems})}isSelected(e){return!!o.findWhere(this.state.selectedItems,{id:e.id})}onItemClick(e){this.props.isSelectable&&!this.props.isSelectable(e)||this.setState(t=>{let n;return this.isSelected(e)?n=o.filter(t.selectedItems,s=>s.id!==e.id):this.props.multiple?n=[...t.selectedItems,e]:n=[e],{selectedItems:n}})}onItemSelection(e){this.state.selectedItem===e?this.setState({selectedItem:null},this.onItemClick.bind(this,e)):this.setState({selectedItem:e})}onItemToggle(e){e.loaded||this.onSearch(e.id).then(()=>{this.setState(t=>({items:o.map(t.items,n=>n.id===e.id?{...n,loaded:!0}:n)}))})}onSearch(e=null){return this.props.onSearch(e,this.state.searchQuery).then(({data:t})=>{const n=t[this.props.collectionName];this.setState(s=>e?{items:[...s.items||[],...n]}:{items:n})})}onSearchChange(e,{value:t}){this.setState({searchQuery:t})}render(){return a.jsx(j.Consumer,{children:e=>a.jsxs(l,{className:"accordion-selector",mountNode:e,open:this.props.open,size:"small",children:[a.jsx(l.Header,{children:a.jsxs(u,{columns:2,verticalAlign:"middle",children:[a.jsx(u.Column,{textAlign:"left",width:7,children:a.jsx(T,{content:this.props.title?this.props.title:r.t("AccordionSelector.title")})}),a.jsxs(u.Column,{textAlign:"right",width:9,children:[a.jsx(k,{"aria-label":"Search",autoFocus:!0,icon:"search",onKeyDown:g.clearSearchTimer.bind(this),onKeyUp:g.setSearchTimer.bind(this,this.onSearch.bind(this)),onChange:this.onSearchChange.bind(this),size:"mini",type:"text",value:this.state.searchQuery}),this.renderAddButton()]})]})}),a.jsxs(l.Content,{children:[a.jsx(q,{isSelected:t=>this.state.selectedItem===t,items:this.state.selectedItems,onItemClick:this.onItemSelection.bind(this),renderItem:this.props.renderItem.bind(this)}),a.jsx(R,{getChildItems:this.props.getChildItems.bind(this,this.state.items),onItemClick:this.onItemClick.bind(this),onItemToggle:this.onItemToggle.bind(this),renderItem:this.props.renderItem.bind(this),renderRight:this.renderRight.bind(this),rootItems:this.props.getRootItems(this.state.items),showToggle:this.props.showToggle.bind(this)}),this.renderAddModal(),this.state.saved&&a.jsxs(y,{onDismiss:()=>this.setState({saved:!1}),type:y.MessageTypes.positive,children:[a.jsx(_.Header,{content:r.t("Common.messages.save.header")}),a.jsx(_.Content,{content:r.t("Common.messages.save.content")})]})]}),a.jsxs(l.Actions,{children:[a.jsx(d,{onClick:this.props.onSave.bind(this,this.state.selectedItems),primary:!0,size:"medium",type:"submit",children:r.t("Common.buttons.save")}),a.jsx(d,{basic:!0,onClick:this.props.onClose.bind(this),size:"medium",type:"button",children:r.t("Common.buttons.cancel")})]})]})})}renderAddButton(){return this.props.modal?a.jsx(d,{basic:!0,className:"add-button",content:r.t("Common.buttons.add"),icon:"plus",onClick:()=>this.setState({modalAdd:!0})}):null}renderAddModal(){if(!(this.state.modalAdd&&this.props.modal))return null;const{component:e,props:t,onSave:n}=this.props.modal;return a.jsx(M,{component:e,onClose:()=>this.setState({modalAdd:!1,selectedItem:null}),onSave:s=>n(s).then(v=>this.setState({modalAdd:!1,saved:!0,searchQuery:"",selectedItems:[v]},this.onSearch.bind(this))),...t})}renderRight(e){return this.isSelected(e)?a.jsx(x,{color:"green",name:"check"}):null}}f(c,"defaultProps");c.defaultProps={isSelectable:void 0,modal:void 0,multiple:!1,open:!1,selectedItems:[],title:void 0};const V=D()(c);c.__docgenInfo={description:"",methods:[{name:"isSelected",docblock:`Returns true if the passed item is selected. +var C=Object.defineProperty;var w=(i,e,t)=>e in i?C(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var f=(i,e,t)=>(w(i,typeof e!="symbol"?e+"":e,t),t);import{j as a}from"./jsx-runtime-BTCK_S7S.js";import{r as b}from"./index-CBqU2yxZ.js";import{a as p}from"./chunk-WFFRPTHA-B2vgThZf.js";import{d as h}from"./index-CAen7T_W.js";import{B as d}from"./Button-Blq7Z6RX.js";import{_ as o}from"./index-default-C_maRo4o.js";import{u as g}from"./index.es28-Dp3-vHIY.js";import{G as u}from"./Grid-Czr5owxQ.js";import{M as _}from"./Message-3p6wyYpA.js";import{H as T}from"./Header-BJ3NNdPz.js";import{I as x}from"./Icon-2tEtgK8g.js";import{I as k}from"./Input--hQVCRQV.js";import{M as l}from"./Modal-Bz2VEyQG.js";import{i as r}from"./i18n-C8zWlANG.js";import{E as M}from"./EditModal-WP1CvOLP.js";import{M as j}from"./ModalContext-Bu-D9kD-.js";import{N as R}from"./NestedAccordion-CZICvb0a.js";import{S as q}from"./SelectizeHeader-BiV_Rzyz.js";import{T as y}from"./Toaster-C1YYqOUE.js";import{w as D}from"./withTranslation-D8FvQLBO.js";import{A as E}from"./AddModal-8so4BWij.js";import{A as P}from"./Api-DXLamogn.js";import"./_commonjsHelpers-BosuxZz1.js";import"./preview-errors-CzpZmerH.js";import"./index-CKJfshIT.js";import"./v4-D8aEg3BZ.js";import"./mapValues-LQZI9uWW.js";import"./pickBy-Us6u5-To.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-DCkRKKtx.js";import"./index-Cw1G72V2.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./debounce-BkgZrIul.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getElementType-CckcRzoH.js";import"./Label-Cq1fb1cd.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./forEach-CXlln0XP.js";import"./Dimmer-D_gwaesu.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./index-DZGZymok.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./map-B4PnIEPz.js";import"./iframe-BQtATEn0.js";import"../sb-preview/runtime.js";import"./index-BBpNyw-T.js";import"./_baseSet-6y0qliU9.js";import"./_baseAssignValue-izmKBXUH.js";import"./_arrayReduce-CrxnWFSq.js";import"./isEmpty-Cyb9hIKi.js";import"./i18next-Sc0HEOoc.js";import"./toPropertyKey-hKuLU48H.js";import"./defineProperty-CCxoMnQV.js";import"./inherits-D5wXBZoG.js";import"./createClass-D2z1h_eG.js";import"./getPrototypeOf-BYVhAdwF.js";import"./index.es3-Dgr_7mVc.js";import"./Loader-CooidObp.js";import"./Accordion-hxhfwUID.js";import"./without-BP-mqg2K.js";import"./isArrayLikeObject-CbXKTyfk.js";import"./Segment-C5_maSSM.js";import"./Transition-DSFEXhCu.js";import"./filter-CVNi8iPS.js";import"./slicedToArray-D1W8oQh0.js";import"./nonIterableRest-Bc-81Ll3.js";import"./unsupportedIterableToArray-78IFcom3.js";import"./objectWithoutProperties--RY0eV0u.js";import"./utils-Bq6oISwF.js";class c extends b.Component{constructor(e){super(e),this.state={items:[],modalAdd:!1,saved:!1,searchQuery:"",selectedItem:null,selectedItems:e.selectedItems}}componentDidUpdate(e){this.props.open&&!e.open&&this.onSearch(),this.props.selectedItems!==e.selectedItems&&this.setState({selectedItems:this.props.selectedItems})}isSelected(e){return!!o.findWhere(this.state.selectedItems,{id:e.id})}onItemClick(e){this.props.isSelectable&&!this.props.isSelectable(e)||this.setState(t=>{let n;return this.isSelected(e)?n=o.filter(t.selectedItems,s=>s.id!==e.id):this.props.multiple?n=[...t.selectedItems,e]:n=[e],{selectedItems:n}})}onItemSelection(e){this.state.selectedItem===e?this.setState({selectedItem:null},this.onItemClick.bind(this,e)):this.setState({selectedItem:e})}onItemToggle(e){e.loaded||this.onSearch(e.id).then(()=>{this.setState(t=>({items:o.map(t.items,n=>n.id===e.id?{...n,loaded:!0}:n)}))})}onSearch(e=null){return this.props.onSearch(e,this.state.searchQuery).then(({data:t})=>{const n=t[this.props.collectionName];this.setState(s=>e?{items:[...s.items||[],...n]}:{items:n})})}onSearchChange(e,{value:t}){this.setState({searchQuery:t})}render(){return a.jsx(j.Consumer,{children:e=>a.jsxs(l,{className:"accordion-selector",mountNode:e,open:this.props.open,size:"small",children:[a.jsx(l.Header,{children:a.jsxs(u,{columns:2,verticalAlign:"middle",children:[a.jsx(u.Column,{textAlign:"left",width:7,children:a.jsx(T,{content:this.props.title?this.props.title:r.t("AccordionSelector.title")})}),a.jsxs(u.Column,{textAlign:"right",width:9,children:[a.jsx(k,{"aria-label":"Search",autoFocus:!0,icon:"search",onKeyDown:g.clearSearchTimer.bind(this),onKeyUp:g.setSearchTimer.bind(this,this.onSearch.bind(this)),onChange:this.onSearchChange.bind(this),size:"mini",type:"text",value:this.state.searchQuery}),this.renderAddButton()]})]})}),a.jsxs(l.Content,{children:[a.jsx(q,{isSelected:t=>this.state.selectedItem===t,items:this.state.selectedItems,onItemClick:this.onItemSelection.bind(this),renderItem:this.props.renderItem.bind(this)}),a.jsx(R,{getChildItems:this.props.getChildItems.bind(this,this.state.items),onItemClick:this.onItemClick.bind(this),onItemToggle:this.onItemToggle.bind(this),renderItem:this.props.renderItem.bind(this),renderRight:this.renderRight.bind(this),rootItems:this.props.getRootItems(this.state.items),showToggle:this.props.showToggle.bind(this)}),this.renderAddModal(),this.state.saved&&a.jsxs(y,{onDismiss:()=>this.setState({saved:!1}),type:y.MessageTypes.positive,children:[a.jsx(_.Header,{content:r.t("Common.messages.save.header")}),a.jsx(_.Content,{content:r.t("Common.messages.save.content")})]})]}),a.jsxs(l.Actions,{children:[a.jsx(d,{onClick:this.props.onSave.bind(this,this.state.selectedItems),primary:!0,size:"medium",type:"submit",children:r.t("Common.buttons.save")}),a.jsx(d,{basic:!0,onClick:this.props.onClose.bind(this),size:"medium",type:"button",children:r.t("Common.buttons.cancel")})]})]})})}renderAddButton(){return this.props.modal?a.jsx(d,{basic:!0,className:"add-button",content:r.t("Common.buttons.add"),icon:"plus",onClick:()=>this.setState({modalAdd:!0})}):null}renderAddModal(){if(!(this.state.modalAdd&&this.props.modal))return null;const{component:e,props:t,onSave:n}=this.props.modal;return a.jsx(M,{component:e,onClose:()=>this.setState({modalAdd:!1,selectedItem:null}),onSave:s=>n(s).then(v=>this.setState({modalAdd:!1,saved:!0,searchQuery:"",selectedItems:[v]},this.onSearch.bind(this))),...t})}renderRight(e){return this.isSelected(e)?a.jsx(x,{color:"green",name:"check"}):null}}f(c,"defaultProps");c.defaultProps={isSelectable:void 0,modal:void 0,multiple:!1,open:!1,selectedItems:[],title:void 0};const V=D()(c);c.__docgenInfo={description:"",methods:[{name:"isSelected",docblock:`Returns true if the passed item is selected. @param item diff --git a/docs/assets/AssociatedDropdown-CR7UI3kV.js b/docs/assets/AssociatedDropdown-DQppeffT.js similarity index 98% rename from docs/assets/AssociatedDropdown-CR7UI3kV.js rename to docs/assets/AssociatedDropdown-DQppeffT.js index 38310655..01e2799a 100644 --- a/docs/assets/AssociatedDropdown-CR7UI3kV.js +++ b/docs/assets/AssociatedDropdown-DQppeffT.js @@ -1,4 +1,4 @@ -var b=Object.defineProperty;var v=(s,a,e)=>a in s?b(s,a,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[a]=e;var d=(s,a,e)=>(v(s,typeof a!="symbol"?a+"":a,e),e);import{j as r}from"./jsx-runtime-BTCK_S7S.js";import{u as p}from"./index.es28-dE8xdd4L.js";import{r as g}from"./index-CBqU2yxZ.js";import{M as c}from"./Message-3p6wyYpA.js";import{B as h}from"./Button-Blq7Z6RX.js";import{D as S}from"./Dropdown-Di2cPjwR.js";import{_ as u}from"./index-default-C_maRo4o.js";import{E as w}from"./EditModal-DRtAb_yR.js";import{i as o}from"./i18n-C8zWlANG.js";import{T as y}from"./Toaster-C1YYqOUE.js";const T="add",C="clear",q="edit",k=500;class m extends g.Component{constructor(e){super(e);d(this,"timeout");this.state={items:[],loading:!1,modalAdd:!1,modalEdit:!1,options:[],saved:!1,searchQuery:e.searchQuery||"",value:e.value||""},this.timeout=null}componentDidUpdate(e){if(e.value!==this.props.value){const{searchQuery:t,value:n}=this.props;this.setState({searchQuery:t,value:n})}e.onSearch!==this.props.onSearch&&this.onSearch()}clearSearchTimer(){clearTimeout(this.timeout)}onBlur(){this.setState(e=>{let t="";return e.value&&(t=this.props.searchQuery),{searchQuery:t}})}onClear(){this.setState({searchQuery:"",value:""},()=>{this.props.onSelection(this.state.value)})}onOpen(){this.setState({searchQuery:""},this.onSearch.bind(this))}onOptionSelection(e,{value:t}){this.setState(i=>{const l=u.findWhere(i.options,{value:t})||{};this.setState({searchQuery:l.text,value:l.value})});const n=u.findWhere(this.state.items,{id:t});this.props.onSelection(n)}onSearch(){this.setState({loading:!0},this.search.bind(this))}onSearchChange(e,{searchQuery:t}){this.setState({searchQuery:t})}search(){this.props.onSearch(this.state.searchQuery).then(({data:e})=>{const t=e[this.props.collectionName],n=t.map(this.props.renderOption.bind(this));this.setState({items:t,options:n,loading:!1})})}render(){return r.jsxs("div",{className:"association-dropdown",children:[r.jsx("div",{className:"dropdown-container",children:r.jsx(S,{className:`inline-dropdown ${this.props.className||""}`,disabled:this.state.loading,header:this.props.header,loading:this.state.loading,onBlur:this.onBlur.bind(this),onChange:this.onOptionSelection.bind(this),onOpen:this.onOpen.bind(this),onSearchChange:this.onSearchChange.bind(this),options:this.state.options,placeholder:this.props.placeholder,search:()=>this.state.options,searchInput:{"aria-label":this.props.collectionName,className:"dropdown-search-input",onKeyDown:p.clearSearchTimer.bind(this),onKeyUp:p.setSearchTimer.bind(this,this.onSearch.bind(this))},searchQuery:this.state.searchQuery,selectOnBlur:!1,selection:!0,upward:this.props.upward,value:this.state.value})}),r.jsxs(h.Group,{className:"buttons",children:[this.renderEditButton(),this.renderAddButton(),this.renderClearButton()]}),this.renderModal(),this.state.saved&&r.jsxs(y,{onDismiss:()=>this.setState({saved:!1}),type:y.MessageTypes.positive,children:[r.jsx(c.Header,{content:o.t("Common.messages.save.header")}),r.jsx(c.Content,{content:o.t("Common.messages.save.content")})]})]})}renderAddButton(){return this.props.modal?this.renderButton(T,{basic:!0,content:o.t("Common.buttons.add"),icon:"plus",onClick:()=>this.setState({modalAdd:!0}),type:"button"}):null}renderButton(e,t){const n=u.findWhere(this.props.buttons,{name:e})||{};return n.accept&&!n.accept()?null:r.jsx(h,{...u.defaults(n,t)})}renderClearButton(){return this.props.required?null:this.renderButton(C,{basic:!0,content:o.t("Common.buttons.clear"),icon:"times",onClick:this.onClear.bind(this),type:"button"})}renderEditButton(){return!this.props.modal||!this.props.modal.props||!this.props.modal.props.onInitialize||!this.state.value?null:this.renderButton(q,{basic:!0,content:o.t("Common.buttons.edit"),icon:"pencil",onClick:()=>this.setState({modalEdit:!0}),type:"button"})}renderModal(){if(!((this.state.modalAdd||this.state.modalEdit)&&this.props.modal))return null;const{component:e,props:t,onSave:n}=this.props.modal;let i;return this.state.modalEdit&&(i={id:this.state.value}),r.jsx(w,{component:e,item:i,onClose:()=>this.setState({modalAdd:!1,modalEdit:!1}),onSave:l=>n(l).then(f=>{this.props.onSelection(f),this.setState({modalAdd:!1,modalEdit:!1,saved:!0})}),...t})}setSearchTimer(){clearTimeout(this.timeout),this.timeout=setTimeout(this.onSearch.bind(this),k)}}d(m,"defaultProps");m.defaultProps={className:"",modal:null,placeholder:null,required:!1,upward:!1};m.__docgenInfo={description:"",methods:[{name:"clearSearchTimer",docblock:"Clears the search timer.",modifiers:[],params:[],returns:null,description:"Clears the search timer."},{name:"onBlur",docblock:"Clears the search query value if an option was not selected.",modifiers:[],params:[],returns:null,description:"Clears the search query value if an option was not selected."},{name:"onClear",docblock:"Clears the search query and value.",modifiers:[],params:[],returns:null,description:"Clears the search query and value."},{name:"onOpen",docblock:"Clears the search query and executes the search.",modifiers:[],params:[],returns:null,description:"Clears the search query and executes the search."},{name:"onOptionSelection",docblock:`Resets the search query and value on the state. +var b=Object.defineProperty;var v=(s,a,e)=>a in s?b(s,a,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[a]=e;var d=(s,a,e)=>(v(s,typeof a!="symbol"?a+"":a,e),e);import{j as r}from"./jsx-runtime-BTCK_S7S.js";import{u as p}from"./index.es28-Dp3-vHIY.js";import{r as g}from"./index-CBqU2yxZ.js";import{M as c}from"./Message-3p6wyYpA.js";import{B as h}from"./Button-Blq7Z6RX.js";import{D as S}from"./Dropdown-Di2cPjwR.js";import{_ as u}from"./index-default-C_maRo4o.js";import{E as w}from"./EditModal-WP1CvOLP.js";import{i as o}from"./i18n-C8zWlANG.js";import{T as y}from"./Toaster-C1YYqOUE.js";const T="add",C="clear",q="edit",k=500;class m extends g.Component{constructor(e){super(e);d(this,"timeout");this.state={items:[],loading:!1,modalAdd:!1,modalEdit:!1,options:[],saved:!1,searchQuery:e.searchQuery||"",value:e.value||""},this.timeout=null}componentDidUpdate(e){if(e.value!==this.props.value){const{searchQuery:t,value:n}=this.props;this.setState({searchQuery:t,value:n})}e.onSearch!==this.props.onSearch&&this.onSearch()}clearSearchTimer(){clearTimeout(this.timeout)}onBlur(){this.setState(e=>{let t="";return e.value&&(t=this.props.searchQuery),{searchQuery:t}})}onClear(){this.setState({searchQuery:"",value:""},()=>{this.props.onSelection(this.state.value)})}onOpen(){this.setState({searchQuery:""},this.onSearch.bind(this))}onOptionSelection(e,{value:t}){this.setState(i=>{const l=u.findWhere(i.options,{value:t})||{};this.setState({searchQuery:l.text,value:l.value})});const n=u.findWhere(this.state.items,{id:t});this.props.onSelection(n)}onSearch(){this.setState({loading:!0},this.search.bind(this))}onSearchChange(e,{searchQuery:t}){this.setState({searchQuery:t})}search(){this.props.onSearch(this.state.searchQuery).then(({data:e})=>{const t=e[this.props.collectionName],n=t.map(this.props.renderOption.bind(this));this.setState({items:t,options:n,loading:!1})})}render(){return r.jsxs("div",{className:"association-dropdown",children:[r.jsx("div",{className:"dropdown-container",children:r.jsx(S,{className:`inline-dropdown ${this.props.className||""}`,disabled:this.state.loading,header:this.props.header,loading:this.state.loading,onBlur:this.onBlur.bind(this),onChange:this.onOptionSelection.bind(this),onOpen:this.onOpen.bind(this),onSearchChange:this.onSearchChange.bind(this),options:this.state.options,placeholder:this.props.placeholder,search:()=>this.state.options,searchInput:{"aria-label":this.props.collectionName,className:"dropdown-search-input",onKeyDown:p.clearSearchTimer.bind(this),onKeyUp:p.setSearchTimer.bind(this,this.onSearch.bind(this))},searchQuery:this.state.searchQuery,selectOnBlur:!1,selection:!0,upward:this.props.upward,value:this.state.value})}),r.jsxs(h.Group,{className:"buttons",children:[this.renderEditButton(),this.renderAddButton(),this.renderClearButton()]}),this.renderModal(),this.state.saved&&r.jsxs(y,{onDismiss:()=>this.setState({saved:!1}),type:y.MessageTypes.positive,children:[r.jsx(c.Header,{content:o.t("Common.messages.save.header")}),r.jsx(c.Content,{content:o.t("Common.messages.save.content")})]})]})}renderAddButton(){return this.props.modal?this.renderButton(T,{basic:!0,content:o.t("Common.buttons.add"),icon:"plus",onClick:()=>this.setState({modalAdd:!0}),type:"button"}):null}renderButton(e,t){const n=u.findWhere(this.props.buttons,{name:e})||{};return n.accept&&!n.accept()?null:r.jsx(h,{...u.defaults(n,t)})}renderClearButton(){return this.props.required?null:this.renderButton(C,{basic:!0,content:o.t("Common.buttons.clear"),icon:"times",onClick:this.onClear.bind(this),type:"button"})}renderEditButton(){return!this.props.modal||!this.props.modal.props||!this.props.modal.props.onInitialize||!this.state.value?null:this.renderButton(q,{basic:!0,content:o.t("Common.buttons.edit"),icon:"pencil",onClick:()=>this.setState({modalEdit:!0}),type:"button"})}renderModal(){if(!((this.state.modalAdd||this.state.modalEdit)&&this.props.modal))return null;const{component:e,props:t,onSave:n}=this.props.modal;let i;return this.state.modalEdit&&(i={id:this.state.value}),r.jsx(w,{component:e,item:i,onClose:()=>this.setState({modalAdd:!1,modalEdit:!1}),onSave:l=>n(l).then(f=>{this.props.onSelection(f),this.setState({modalAdd:!1,modalEdit:!1,saved:!0})}),...t})}setSearchTimer(){clearTimeout(this.timeout),this.timeout=setTimeout(this.onSearch.bind(this),k)}}d(m,"defaultProps");m.defaultProps={className:"",modal:null,placeholder:null,required:!1,upward:!1};m.__docgenInfo={description:"",methods:[{name:"clearSearchTimer",docblock:"Clears the search timer.",modifiers:[],params:[],returns:null,description:"Clears the search timer."},{name:"onBlur",docblock:"Clears the search query value if an option was not selected.",modifiers:[],params:[],returns:null,description:"Clears the search query value if an option was not selected."},{name:"onClear",docblock:"Clears the search query and value.",modifiers:[],params:[],returns:null,description:"Clears the search query and value."},{name:"onOpen",docblock:"Clears the search query and executes the search.",modifiers:[],params:[],returns:null,description:"Clears the search query and executes the search."},{name:"onOptionSelection",docblock:`Resets the search query and value on the state. @param e @param value`,modifiers:[],params:[{name:"e",optional:!1,type:{name:"Event",alias:"Event"}},{name:"{ value }: { value: any }",optional:!1,type:{name:"signature",type:"object",raw:"{ value: any }",signature:{properties:[{key:"value",value:{name:"any",required:!0}}]}}}],returns:null,description:"Resets the search query and value on the state."},{name:"onSearch",docblock:"Executes the search to load the options.",modifiers:[],params:[],returns:null,description:"Executes the search to load the options."},{name:"onSearchChange",docblock:`Sets the search query on the state. diff --git a/docs/assets/AssociatedDropdown.stories-CdW11X5w.js b/docs/assets/AssociatedDropdown.stories-g__EHNPB.js similarity index 95% rename from docs/assets/AssociatedDropdown.stories-CdW11X5w.js rename to docs/assets/AssociatedDropdown.stories-g__EHNPB.js index 09fa1e25..9513ad90 100644 --- a/docs/assets/AssociatedDropdown.stories-CdW11X5w.js +++ b/docs/assets/AssociatedDropdown.stories-g__EHNPB.js @@ -1,4 +1,4 @@ -import{j as e}from"./jsx-runtime-BTCK_S7S.js";import"./index-CBqU2yxZ.js";import{a as n}from"./chunk-WFFRPTHA-B2vgThZf.js";import{d as a}from"./index-DfmhmaGJ.js";import{F as r}from"./Form-fErk-qk_.js";import{M as p}from"./Modal-Bz2VEyQG.js";import{A as u}from"./AddModal-8so4BWij.js";import{A as l}from"./Api-DXLamogn.js";import{A as s}from"./AssociatedDropdown-CR7UI3kV.js";import"./index-default-C_maRo4o.js";import"./i18n-Dfa7mXnt.js";import"./_commonjsHelpers-BosuxZz1.js";import"./preview-errors-CzpZmerH.js";import"./index-CKJfshIT.js";import"./v4-D8aEg3BZ.js";import"./mapValues-CZh2vnSw.js";import"./pickBy-CU2rOOKe.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-Bu_b4Pek.js";import"./index-Cw1G72V2.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./debounce-Bq1aTuh-.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getElementType-CckcRzoH.js";import"./Button-Blq7Z6RX.js";import"./Icon-2tEtgK8g.js";import"./Label-Cq1fb1cd.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./forEach-CXlln0XP.js";import"./Dimmer-D_gwaesu.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./index-DZGZymok.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./map-B4PnIEPz.js";import"./Checkbox-C9uAfnsM.js";import"./_baseSet-6y0qliU9.js";import"./_baseAssignValue-izmKBXUH.js";import"./Dropdown-Di2cPjwR.js";import"./without-BP-mqg2K.js";import"./isArrayLikeObject-CbXKTyfk.js";import"./isEmpty-Cyb9hIKi.js";import"./deburr-CEfyoYOr.js";import"./index-BBpNyw-T.js";import"./_arrayReduce-CrxnWFSq.js";import"./filter-CVNi8iPS.js";import"./Input--hQVCRQV.js";import"./index.es28-dE8xdd4L.js";import"./iframe-ovyJW9VA.js";import"../sb-preview/runtime.js";import"./Message-3p6wyYpA.js";import"./EditModal-DRtAb_yR.js";import"./index.es3-D5uPylQL.js";import"./Loader-CooidObp.js";import"./Toaster-C1YYqOUE.js";import"./Transition-DSFEXhCu.js";import"./i18n-C8zWlANG.js";import"./i18next-Sc0HEOoc.js";import"./toPropertyKey-hKuLU48H.js";import"./defineProperty-CCxoMnQV.js";import"./inherits-D5wXBZoG.js";import"./createClass-D2z1h_eG.js";import"./getPrototypeOf-BYVhAdwF.js";const Wo={title:"Components/Semantic UI/AssociatedDropdown",decorators:[a.withKnobs]},d=[{id:1,company:"Bradtke LLC",email:"smccunn0@symantec.com",card:"4913389273457809",country:"China"},{id:2,company:"Jacobi Inc",email:"rrivard1@abc.net.au",card:"30460843005398",country:"Zimbabwe"},{id:3,company:"Mraz, Blanda and Hettinger",email:"rrummins2@fastcompany.com",card:"6709016072353592810",country:"Iran"},{id:4,company:"Rutherford, King and Bergstrom",email:"dkrauss3@mit.edu",card:"374288311284433",country:"Bosnia and Herzegovina"},{id:5,company:"Robel Group",email:"rkenworth4@instagram.com",card:"201500535736652",country:"Colombia"},{id:6,company:"Homenick-Hayes",email:"abethel5@google.pl",card:"561039160722960141",country:"Indonesia"},{id:7,company:"Donnelly, Ernser and Frami",email:"jgoodere6@house.gov",card:"201584082967167",country:"Indonesia"},{id:8,company:"Terry LLC",email:"lmaass7@instagram.com",card:"3563814170090101",country:"Russia"},{id:9,company:"Conroy, Goodwin and Reichel",email:"oborless8@dailymotion.com",card:"6762685505421916973",country:"Afghanistan"},{id:10,company:"Herzog, Ullrich and Gottlieb",email:"jstienton9@oracle.com",card:"5602259377328868094",country:"Portugal"},{id:11,company:"Crona, Smith and Buckridge",email:"rbryersa@gizmodo.com",card:"630430550316356334",country:"United States"},{id:12,company:"Bashirian-Wehner",email:"ltootingb@disqus.com",card:"490326679793549693",country:"Japan"},{id:13,company:"Heathcote, Herman and Hand",email:"dscimonic@spotify.com",card:"4331723237538",country:"Bolivia"},{id:14,company:"Walter, Haley and Leannon",email:"achildd@google.ca",card:"3562847383429600",country:"Philippines"},{id:15,company:"Bechtelar-Abernathy",email:"sgallallye@dell.com",card:"201879893708523",country:"Anguilla"},{id:16,company:"Ankunding, Schuster and Denesik",email:"tspilsburyf@trellian.com",card:"633471981525787619",country:"Thailand"},{id:17,company:"Rowe, Kuvalis and Funk",email:"rryallg@netvibes.com",card:"3541819339298849",country:"China"},{id:18,company:"Lakin-West",email:"jraithbyh@so-net.ne.jp",card:"3563967992717341",country:"Russia"},{id:19,company:"Tillman Group",email:"jminersi@miibeian.gov.cn",card:"5100149854682658",country:"Zambia"},{id:20,company:"Hickle-Gaylord",email:"aandriesj@techcrunch.com",card:"3558556695561358",country:"Mexico"},{id:21,company:"Bednar LLC",email:"cbiggk@marketwatch.com",card:"3567695608528374",country:"Czech Republic"},{id:22,company:"Herzog-Hilpert",email:"esimenonl@china.com.cn",card:"3536962417052170",country:"Canada"},{id:23,company:"Koss and Sons",email:"cmandellm@yolasite.com",card:"56022164441318086",country:"China"},{id:24,company:"Bahringer-King",email:"wipsgraven@reuters.com",card:"30346865572409",country:"China"},{id:25,company:"Roberts-Bernier",email:"kbeacrofto@youku.com",card:"6759158703902200629",country:"Japan"},{id:26,company:"Blanda-Batz",email:"krosengrenp@dell.com",card:"3579772020663695",country:"Iran"},{id:27,company:"Robel and Sons",email:"araspq@accuweather.com",card:"3542184973908024",country:"Argentina"},{id:28,company:"Ernser, Raynor and Satterfield",email:"rsaxonr@wordpress.com",card:"3576887685153031",country:"Thailand"},{id:29,company:"Langosh, Wiza and Flatley",email:"rdeluces@domainmarket.com",card:"30500704893745",country:"South Africa"},{id:30,company:"Keeling, Price and Block",email:"crameyt@spotify.com",card:"5421565170713038",country:"China"},{id:31,company:"Schulist, Pagac and Maggio",email:"emckiddinu@rakuten.co.jp",card:"564182253581069234",country:"Malawi"},{id:32,company:"Spencer, Jenkins and Eichmann",email:"lcoxwellv@mtv.com",card:"3534800446615967",country:"Micronesia"},{id:33,company:"Lynch Group",email:"ssousterw@dell.com",card:"3577275855680851",country:"Brazil"},{id:34,company:"Lockman-Conn",email:"kbubeerx@mlb.com",card:"3533866580327298",country:"Brazil"},{id:35,company:"Nolan-Hartmann",email:"aklimentyevy@tiny.cc",card:"67632551442557390",country:"Mexico"},{id:36,company:"Olson-Krajcik",email:"ahedditehz@gravatar.com",card:"63045234297292849",country:"Indonesia"},{id:37,company:"Schulist, Kshlerin and Gerlach",email:"mkollas10@scientificamerican.com",card:"3578914776530972",country:"United States"},{id:38,company:"Bailey Inc",email:"sstonard11@cam.ac.uk",card:"5602222106700165",country:"Malaysia"},{id:39,company:"Hahn, Gibson and Bosco",email:"omozzini12@goodreads.com",card:"3587897778070650",country:"Serbia"},{id:40,company:"Rath, Homenick and Vandervort",email:"zmccracken13@kickstarter.com",card:"5100138352713008",country:"China"},{id:41,company:"Swift, Krajcik and Nader",email:"tewing14@msu.edu",card:"5893107269830645079",country:"Japan"},{id:42,company:"Emmerich, Barrows and Cremin",email:"tmacgibbon15@foxnews.com",card:"0604449000839885",country:"Ukraine"},{id:43,company:"Harvey and Sons",email:"cstanners16@loc.gov",card:"0604046190701436",country:"Russia"},{id:44,company:"Homenick-Schinner",email:"rceller17@independent.co.uk",card:"4041370321598",country:"Greece"},{id:45,company:"Kulas and Sons",email:"ehindrick18@sogou.com",card:"67639028811555100",country:"United States"},{id:46,company:"Bradtke, Cormier and Prohaska",email:"tkaplin19@usgs.gov",card:"4844737734107872",country:"Thailand"},{id:47,company:"Erdman, Wintheiser and O'Keefe",email:"amabee1a@microsoft.com",card:"3563676197254006",country:"Russia"},{id:48,company:"Koelpin, Runolfsdottir and Hills",email:"gdewar1b@flickr.com",card:"5641824808798081994",country:"Indonesia"},{id:49,company:"Mayert Inc",email:"ysurcomb1c@google.co.uk",card:"5108757426478579",country:"Brazil"},{id:50,company:"Haag, Effertz and Hauck",email:"charmour1d@eventbrite.com",card:"345179029963846",country:"Ukraine"}],i=()=>e.jsx(s,{collectionName:"items",modal:{component:u,onSave:()=>(n("save")(),Promise.resolve({}))},onSearch:o=>l.onLoad({items:d,search:o,sort_by:"text"}),onSelection:n("selection"),placeholder:a.text("Placeholder","Search"),renderOption:o=>({key:o.id,value:o.id,text:o.company,description:o.country}),upward:a.boolean("Open upward",!1)}),A=o=>e.jsxs(p,{as:r,centered:!1,open:!0,children:[e.jsx(p.Header,{content:o.item.id?"Edit":"Add"}),e.jsxs(p.Content,{children:[e.jsx(r.Input,{label:"Company",onChange:o.onTextInputChange.bind(void 0,"company"),value:o.item.company}),e.jsx(r.Input,{label:"Email",onChange:o.onTextInputChange.bind(void 0,"email"),value:o.item.email}),e.jsx(r.Input,{label:"Card",onChange:o.onTextInputChange.bind(void 0,"card"),value:o.item.card})]}),o.children]}),t=()=>e.jsx(s,{collectionName:"items",modal:{component:A,onSave:()=>(n("save")(),Promise.resolve({})),props:{onInitialize:o=>(n("initialize")(),Promise.resolve({...d.find(I=>I.id===o)}))}},onSearch:o=>l.onLoad({items:d,search:o,sort_by:"text"}),onSelection:n("selection"),placeholder:a.text("Placeholder","Search"),renderOption:o=>({key:o.id,value:o.id,text:o.company,description:o.country}),upward:a.boolean("Open upward",!1)}),c=()=>e.jsx(r,{children:e.jsx(r.Input,{label:"Field",required:!0,children:e.jsx(s,{collectionName:"items",modal:{component:u,onSave:()=>(n("save")(),Promise.resolve({}))},onSearch:o=>l.onLoad({items:d,search:o,sort_by:"text"}),onSelection:n("selection"),placeholder:a.text("Placeholder","Search"),renderOption:o=>({key:o.id,value:o.id,text:o.company,description:o.country}),upward:a.boolean("Open upward",!1)})})}),m=()=>e.jsx(s,{buttons:[{name:"edit",icon:"edit"},{basic:!1,color:"orange",name:"add",icon:"coffee"},{name:"clear",content:"Clear Value!"}],collectionName:"items",modal:{component:u,props:{onInitialize:()=>Promise.resolve({})},onSave:()=>(n("save")(),Promise.resolve({}))},onSearch:o=>l.onLoad({items:d,search:o,sort_by:"text"}),onSelection:n("selection"),placeholder:a.text("Placeholder","Search"),renderOption:o=>({key:o.id,value:o.id,text:o.company,description:o.country}),upward:a.boolean("Open upward",!1)});i.__docgenInfo={description:"",methods:[],displayName:"Default"};t.__docgenInfo={description:"",methods:[],displayName:"WithEditButton"};c.__docgenInfo={description:"",methods:[],displayName:"FormField"};m.__docgenInfo={description:"",methods:[],displayName:"CustomButtons"};var y,h,g;i.parameters={...i.parameters,docs:{...(y=i.parameters)==null?void 0:y.docs,source:{originalSource:`() => e.jsx(s,{collectionName:"items",modal:{component:u,onSave:()=>(n("save")(),Promise.resolve({}))},onSearch:o=>l.onLoad({items:d,search:o,sort_by:"text"}),onSelection:n("selection"),placeholder:a.text("Placeholder","Search"),renderOption:o=>({key:o.id,value:o.id,text:o.company,description:o.country}),upward:a.boolean("Open upward",!1)}),A=o=>e.jsxs(p,{as:r,centered:!1,open:!0,children:[e.jsx(p.Header,{content:o.item.id?"Edit":"Add"}),e.jsxs(p.Content,{children:[e.jsx(r.Input,{label:"Company",onChange:o.onTextInputChange.bind(void 0,"company"),value:o.item.company}),e.jsx(r.Input,{label:"Email",onChange:o.onTextInputChange.bind(void 0,"email"),value:o.item.email}),e.jsx(r.Input,{label:"Card",onChange:o.onTextInputChange.bind(void 0,"card"),value:o.item.card})]}),o.children]}),t=()=>e.jsx(s,{collectionName:"items",modal:{component:A,onSave:()=>(n("save")(),Promise.resolve({})),props:{onInitialize:o=>(n("initialize")(),Promise.resolve({...d.find(I=>I.id===o)}))}},onSearch:o=>l.onLoad({items:d,search:o,sort_by:"text"}),onSelection:n("selection"),placeholder:a.text("Placeholder","Search"),renderOption:o=>({key:o.id,value:o.id,text:o.company,description:o.country}),upward:a.boolean("Open upward",!1)}),c=()=>e.jsx(r,{children:e.jsx(r.Input,{label:"Field",required:!0,children:e.jsx(s,{collectionName:"items",modal:{component:u,onSave:()=>(n("save")(),Promise.resolve({}))},onSearch:o=>l.onLoad({items:d,search:o,sort_by:"text"}),onSelection:n("selection"),placeholder:a.text("Placeholder","Search"),renderOption:o=>({key:o.id,value:o.id,text:o.company,description:o.country}),upward:a.boolean("Open upward",!1)})})}),m=()=>e.jsx(s,{buttons:[{name:"edit",icon:"edit"},{basic:!1,color:"orange",name:"add",icon:"coffee"},{name:"clear",content:"Clear Value!"}],collectionName:"items",modal:{component:u,props:{onInitialize:()=>Promise.resolve({})},onSave:()=>(n("save")(),Promise.resolve({}))},onSearch:o=>l.onLoad({items:d,search:o,sort_by:"text"}),onSelection:n("selection"),placeholder:a.text("Placeholder","Search"),renderOption:o=>({key:o.id,value:o.id,text:o.company,description:o.country}),upward:a.boolean("Open upward",!1)});i.__docgenInfo={description:"",methods:[],displayName:"Default"};t.__docgenInfo={description:"",methods:[],displayName:"WithEditButton"};c.__docgenInfo={description:"",methods:[],displayName:"FormField"};m.__docgenInfo={description:"",methods:[],displayName:"CustomButtons"};var y,h,g;i.parameters={...i.parameters,docs:{...(y=i.parameters)==null?void 0:y.docs,source:{originalSource:`() => { action('save')(); diff --git a/docs/assets/AudioPlayer.stories-cG6P3Mkd.js b/docs/assets/AudioPlayer.stories-C6tTaEgH.js similarity index 92% rename from docs/assets/AudioPlayer.stories-cG6P3Mkd.js rename to docs/assets/AudioPlayer.stories-C6tTaEgH.js index b6ec1ee5..62cef79e 100644 --- a/docs/assets/AudioPlayer.stories-cG6P3Mkd.js +++ b/docs/assets/AudioPlayer.stories-C6tTaEgH.js @@ -1 +1 @@ -import{j as i}from"./jsx-runtime-BTCK_S7S.js";import"./index-CBqU2yxZ.js";import{a as e}from"./chunk-WFFRPTHA-B2vgThZf.js";import{d as I}from"./index-DfmhmaGJ.js";import{A as p}from"./AudioPlayer-DbqX1JnS.js";import{a as b}from"./SampleAudio-DqClFjld.js";import"./_commonjsHelpers-BosuxZz1.js";import"./preview-errors-CzpZmerH.js";import"./index-CKJfshIT.js";import"./v4-D8aEg3BZ.js";import"./mapValues-CZh2vnSw.js";import"./pickBy-CU2rOOKe.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-Bu_b4Pek.js";import"./index-Cw1G72V2.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./debounce-Bq1aTuh-.js";import"./Message-3p6wyYpA.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getElementType-CckcRzoH.js";import"./Icon-2tEtgK8g.js";import"./map-B4PnIEPz.js";import"./Button-Blq7Z6RX.js";import"./Label-Cq1fb1cd.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./forEach-CXlln0XP.js";import"./Dimmer-D_gwaesu.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./index-DZGZymok.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./Modal-Bz2VEyQG.js";import"./index-BBpNyw-T.js";import"./_baseSet-6y0qliU9.js";import"./_baseAssignValue-izmKBXUH.js";import"./_arrayReduce-CrxnWFSq.js";import"./isEmpty-Cyb9hIKi.js";import"./i18n-C8zWlANG.js";import"./i18next-Sc0HEOoc.js";import"./toPropertyKey-hKuLU48H.js";import"./defineProperty-CCxoMnQV.js";import"./inherits-D5wXBZoG.js";import"./createClass-D2z1h_eG.js";import"./getPrototypeOf-BYVhAdwF.js";import"./ModalContext-Bu-D9kD-.js";const Io={title:"Components/Semantic UI/AudioPlayer",decorators:[I.withKnobs]},o=()=>i.jsx(p,{onClose:e("close"),open:!0,src:b}),r=()=>i.jsx(p,{onClose:e("close"),open:!0,src:"/path/to/audio.mp3"}),t=()=>i.jsx(p,{onClose:e("close"),open:!0,src:"http://localhost:3000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBZ0lEIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--05fcfd55941c73ff139611bcc194a158f08fe5a5/sample_640x426.mp3"});o.__docgenInfo={description:"",methods:[],displayName:"Default"};r.__docgenInfo={description:"",methods:[],displayName:"Error"};t.__docgenInfo={description:"",methods:[],displayName:"ErrorLongURL"};var s,m,a;o.parameters={...o.parameters,docs:{...(s=o.parameters)==null?void 0:s.docs,source:{originalSource:"() => ",...(a=(m=o.parameters)==null?void 0:m.docs)==null?void 0:a.source}}};var c,n,d;r.parameters={...r.parameters,docs:{...(c=r.parameters)==null?void 0:c.docs,source:{originalSource:"() => ",...(d=(n=r.parameters)==null?void 0:n.docs)==null?void 0:d.source}}};var l,u,f;t.parameters={...t.parameters,docs:{...(l=t.parameters)==null?void 0:l.docs,source:{originalSource:"() => ",...(f=(u=t.parameters)==null?void 0:u.docs)==null?void 0:f.source}}};const bo=["Default","Error","ErrorLongURL"];export{o as Default,r as Error,t as ErrorLongURL,bo as __namedExportsOrder,Io as default}; +import{j as i}from"./jsx-runtime-BTCK_S7S.js";import"./index-CBqU2yxZ.js";import{a as e}from"./chunk-WFFRPTHA-B2vgThZf.js";import{d as I}from"./index-CAen7T_W.js";import{A as p}from"./AudioPlayer-DbqX1JnS.js";import{a as b}from"./SampleAudio-DqClFjld.js";import"./_commonjsHelpers-BosuxZz1.js";import"./preview-errors-CzpZmerH.js";import"./index-CKJfshIT.js";import"./v4-D8aEg3BZ.js";import"./mapValues-LQZI9uWW.js";import"./pickBy-Us6u5-To.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-DCkRKKtx.js";import"./index-Cw1G72V2.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./debounce-BkgZrIul.js";import"./Message-3p6wyYpA.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getElementType-CckcRzoH.js";import"./Icon-2tEtgK8g.js";import"./map-B4PnIEPz.js";import"./Button-Blq7Z6RX.js";import"./Label-Cq1fb1cd.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./forEach-CXlln0XP.js";import"./Dimmer-D_gwaesu.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./index-DZGZymok.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./Modal-Bz2VEyQG.js";import"./index-BBpNyw-T.js";import"./_baseSet-6y0qliU9.js";import"./_baseAssignValue-izmKBXUH.js";import"./_arrayReduce-CrxnWFSq.js";import"./isEmpty-Cyb9hIKi.js";import"./i18n-C8zWlANG.js";import"./i18next-Sc0HEOoc.js";import"./toPropertyKey-hKuLU48H.js";import"./defineProperty-CCxoMnQV.js";import"./inherits-D5wXBZoG.js";import"./createClass-D2z1h_eG.js";import"./getPrototypeOf-BYVhAdwF.js";import"./ModalContext-Bu-D9kD-.js";const Io={title:"Components/Semantic UI/AudioPlayer",decorators:[I.withKnobs]},o=()=>i.jsx(p,{onClose:e("close"),open:!0,src:b}),r=()=>i.jsx(p,{onClose:e("close"),open:!0,src:"/path/to/audio.mp3"}),t=()=>i.jsx(p,{onClose:e("close"),open:!0,src:"http://localhost:3000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBZ0lEIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--05fcfd55941c73ff139611bcc194a158f08fe5a5/sample_640x426.mp3"});o.__docgenInfo={description:"",methods:[],displayName:"Default"};r.__docgenInfo={description:"",methods:[],displayName:"Error"};t.__docgenInfo={description:"",methods:[],displayName:"ErrorLongURL"};var s,m,a;o.parameters={...o.parameters,docs:{...(s=o.parameters)==null?void 0:s.docs,source:{originalSource:"() => ",...(a=(m=o.parameters)==null?void 0:m.docs)==null?void 0:a.source}}};var c,n,d;r.parameters={...r.parameters,docs:{...(c=r.parameters)==null?void 0:c.docs,source:{originalSource:"() => ",...(d=(n=r.parameters)==null?void 0:n.docs)==null?void 0:d.source}}};var l,u,f;t.parameters={...t.parameters,docs:{...(l=t.parameters)==null?void 0:l.docs,source:{originalSource:"() => ",...(f=(u=t.parameters)==null?void 0:u.docs)==null?void 0:f.source}}};const bo=["Default","Error","ErrorLongURL"];export{o as Default,r as Error,t as ErrorLongURL,bo as __namedExportsOrder,Io as default}; diff --git a/docs/assets/BibliographyList.stories-CHHdxtlO.js b/docs/assets/BibliographyList.stories-Cgz5JvPc.js similarity index 96% rename from docs/assets/BibliographyList.stories-CHHdxtlO.js rename to docs/assets/BibliographyList.stories-Cgz5JvPc.js index b0677843..b1bb3c26 100644 --- a/docs/assets/BibliographyList.stories-CHHdxtlO.js +++ b/docs/assets/BibliographyList.stories-Cgz5JvPc.js @@ -1,4 +1,4 @@ -import{j as n}from"./jsx-runtime-BTCK_S7S.js";import{d as F}from"./index-DfmhmaGJ.js";import{r as a}from"./index-CBqU2yxZ.js";import{_ as i}from"./index-default-C_maRo4o.js";import{Y as O}from"./index.es2-BuM_NOqV.js";import"./index.es28-dE8xdd4L.js";import{u as G}from"./uuid-BH6G0oTz.js";import{G as k}from"./Grid-Czr5owxQ.js";import{M as V}from"./Message-3p6wyYpA.js";import{B as C}from"./Button-Blq7Z6RX.js";import{L as v}from"./List-Cog7Mcyf.js";import{F as Z}from"./Form-fErk-qk_.js";import{M as q}from"./Modal-Bz2VEyQG.js";import{i as h}from"./i18n-C8zWlANG.js";import{B as H}from"./BibliographyForm-D3b_g0ZP.js";import{Z as W,B as $}from"./BibliographySearchInput-DdTwVKt4.js";import{D as z}from"./Dropdown-Di2cPjwR.js";import{S as J}from"./StyleSelector-BpXJnbXT.js";import{T as j}from"./Toaster-C1YYqOUE.js";import{u as X}from"./List-B05DD_Os.js";import"./mapValues-CZh2vnSw.js";import"./_commonjsHelpers-BosuxZz1.js";import"./pickBy-CU2rOOKe.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-Bu_b4Pek.js";import"./index-Cw1G72V2.js";import"./index-CKJfshIT.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./preview-errors-CzpZmerH.js";import"./debounce-Bq1aTuh-.js";import"./index-DZGZymok.js";import"./iframe-ovyJW9VA.js";import"../sb-preview/runtime.js";import"./extends-CCbyfPlC.js";import"./getElementType-CckcRzoH.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./Icon-2tEtgK8g.js";import"./map-B4PnIEPz.js";import"./Label-Cq1fb1cd.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./forEach-CXlln0XP.js";import"./Dimmer-D_gwaesu.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./Checkbox-C9uAfnsM.js";import"./_baseSet-6y0qliU9.js";import"./_baseAssignValue-izmKBXUH.js";import"./Input--hQVCRQV.js";import"./index-BBpNyw-T.js";import"./_arrayReduce-CrxnWFSq.js";import"./isEmpty-Cyb9hIKi.js";import"./i18next-Sc0HEOoc.js";import"./toPropertyKey-hKuLU48H.js";import"./defineProperty-CCxoMnQV.js";import"./inherits-D5wXBZoG.js";import"./createClass-D2z1h_eG.js";import"./getPrototypeOf-BYVhAdwF.js";import"./Bibliography-isW7v-pd.js";import"./without-BP-mqg2K.js";import"./isArrayLikeObject-CbXKTyfk.js";import"./deburr-CEfyoYOr.js";import"./filter-CVNi8iPS.js";import"./Transition-DSFEXhCu.js";import"./Confirm-Dw9rt56R.js";import"./Pagination-D0HmnRDL.js";import"./Menu-9i0apxqd.js";import"./Header-BJ3NNdPz.js";import"./DropdownButton-D3g-r0e9.js";import"./EditModal-DRtAb_yR.js";import"./index.es3-D5uPylQL.js";import"./Loader-CooidObp.js";import"./AssociatedDropdown-CR7UI3kV.js";import"./FuzzyDate-RqvLBloE.js";import"./DateInput-BO57_F9J.js";import"./ModalContext-Bu-D9kD-.js";import"./Trans-Bk6mzQm0.js";import"./objectWithoutProperties--RY0eV0u.js";import"./utils-Bq6oISwF.js";const B=e=>n.jsxs(q,{as:Z,centered:!1,open:!0,children:[n.jsx(q.Header,{content:h.t("BibliographyModal.title")}),n.jsx(q.Content,{children:n.jsx(H,{...e})}),e.children]});B.__docgenInfo={description:"",methods:[],displayName:"BibliographyModal",props:{item:{required:!0,flowType:{name:"any"},description:""}}};const T="ascending",L="descending",P=e=>{const m=a.useRef(),p=a.useCallback(r=>{const o=e.value===r.value&&e.direction===T?L:T;e.onChange({...r,direction:o})},[e.direction,e.onChange,e.value]);return a.useEffect(()=>{if(!e.value){let r;e.defaultValue?r=i.findWhere(e.options,{value:e.defaultValue}):r=i.first(e.options),p(r)}},[]),n.jsxs(C.Group,{basic:!0,className:"sort-selector",style:{fontSize:"inherit"},children:[n.jsx(C,{"aria-label":"Sort by",content:e.text,icon:e.direction===T?"sort alphabet up":"sort alphabet down",onClick:r=>m.current.handleClick(r)}),n.jsx(z,{"aria-label":"Sort",className:"button icon",floating:!0,options:i.map(e.options,r=>({...r,onClick:()=>p(r)})),ref:m,trigger:n.jsx(n.Fragment,{}),value:e.value})]})};P.__docgenInfo={description:"",methods:[],displayName:"SortSelector",props:{defaultValue:{required:!1,flowType:{name:"string"},description:""},direction:{required:!0,flowType:{name:"string"},description:""},onChange:{required:!0,flowType:{name:"signature",type:"function",raw:"(sort: Sort) => void",signature:{arguments:[{name:"sort",type:{name:"intersection",raw:`Option & { +import{j as n}from"./jsx-runtime-BTCK_S7S.js";import{d as F}from"./index-CAen7T_W.js";import{r as a}from"./index-CBqU2yxZ.js";import{_ as i}from"./index-default-C_maRo4o.js";import{Y as O}from"./index.es2-9OW1Q_bJ.js";import"./index.es28-Dp3-vHIY.js";import{u as G}from"./uuid-BH6G0oTz.js";import{G as k}from"./Grid-Czr5owxQ.js";import{M as V}from"./Message-3p6wyYpA.js";import{B as C}from"./Button-Blq7Z6RX.js";import{L as v}from"./List-Cog7Mcyf.js";import{F as Z}from"./Form-fErk-qk_.js";import{M as q}from"./Modal-Bz2VEyQG.js";import{i as h}from"./i18n-C8zWlANG.js";import{B as H}from"./BibliographyForm-D3b_g0ZP.js";import{Z as W,B as $}from"./BibliographySearchInput-DdTwVKt4.js";import{D as z}from"./Dropdown-Di2cPjwR.js";import{S as J}from"./StyleSelector-CaHWErOZ.js";import{T as j}from"./Toaster-C1YYqOUE.js";import{u as X}from"./List-tmAiyZhD.js";import"./mapValues-LQZI9uWW.js";import"./_commonjsHelpers-BosuxZz1.js";import"./pickBy-Us6u5-To.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-DCkRKKtx.js";import"./index-Cw1G72V2.js";import"./index-CKJfshIT.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./preview-errors-CzpZmerH.js";import"./debounce-BkgZrIul.js";import"./index-DZGZymok.js";import"./iframe-BQtATEn0.js";import"../sb-preview/runtime.js";import"./extends-CCbyfPlC.js";import"./getElementType-CckcRzoH.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./Icon-2tEtgK8g.js";import"./map-B4PnIEPz.js";import"./Label-Cq1fb1cd.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./forEach-CXlln0XP.js";import"./Dimmer-D_gwaesu.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./Checkbox-C9uAfnsM.js";import"./_baseSet-6y0qliU9.js";import"./_baseAssignValue-izmKBXUH.js";import"./Input--hQVCRQV.js";import"./index-BBpNyw-T.js";import"./_arrayReduce-CrxnWFSq.js";import"./isEmpty-Cyb9hIKi.js";import"./i18next-Sc0HEOoc.js";import"./toPropertyKey-hKuLU48H.js";import"./defineProperty-CCxoMnQV.js";import"./inherits-D5wXBZoG.js";import"./createClass-D2z1h_eG.js";import"./getPrototypeOf-BYVhAdwF.js";import"./Bibliography-isW7v-pd.js";import"./without-BP-mqg2K.js";import"./isArrayLikeObject-CbXKTyfk.js";import"./deburr-CEfyoYOr.js";import"./filter-CVNi8iPS.js";import"./Transition-DSFEXhCu.js";import"./Confirm-Dw9rt56R.js";import"./Pagination-D0HmnRDL.js";import"./Menu-9i0apxqd.js";import"./Header-BJ3NNdPz.js";import"./DropdownButton-D3g-r0e9.js";import"./EditModal-WP1CvOLP.js";import"./index.es3-Dgr_7mVc.js";import"./Loader-CooidObp.js";import"./AssociatedDropdown-DQppeffT.js";import"./FuzzyDate-Bx1epA16.js";import"./DateInput-BO57_F9J.js";import"./ModalContext-Bu-D9kD-.js";import"./Trans-Bk6mzQm0.js";import"./objectWithoutProperties--RY0eV0u.js";import"./utils-Bq6oISwF.js";const B=e=>n.jsxs(q,{as:Z,centered:!1,open:!0,children:[n.jsx(q.Header,{content:h.t("BibliographyModal.title")}),n.jsx(q.Content,{children:n.jsx(H,{...e})}),e.children]});B.__docgenInfo={description:"",methods:[],displayName:"BibliographyModal",props:{item:{required:!0,flowType:{name:"any"},description:""}}};const T="ascending",L="descending",P=e=>{const m=a.useRef(),p=a.useCallback(r=>{const o=e.value===r.value&&e.direction===T?L:T;e.onChange({...r,direction:o})},[e.direction,e.onChange,e.value]);return a.useEffect(()=>{if(!e.value){let r;e.defaultValue?r=i.findWhere(e.options,{value:e.defaultValue}):r=i.first(e.options),p(r)}},[]),n.jsxs(C.Group,{basic:!0,className:"sort-selector",style:{fontSize:"inherit"},children:[n.jsx(C,{"aria-label":"Sort by",content:e.text,icon:e.direction===T?"sort alphabet up":"sort alphabet down",onClick:r=>m.current.handleClick(r)}),n.jsx(z,{"aria-label":"Sort",className:"button icon",floating:!0,options:i.map(e.options,r=>({...r,onClick:()=>p(r)})),ref:m,trigger:n.jsx(n.Fragment,{}),value:e.value})]})};P.__docgenInfo={description:"",methods:[],displayName:"SortSelector",props:{defaultValue:{required:!1,flowType:{name:"string"},description:""},direction:{required:!0,flowType:{name:"string"},description:""},onChange:{required:!0,flowType:{name:"signature",type:"function",raw:"(sort: Sort) => void",signature:{arguments:[{name:"sort",type:{name:"intersection",raw:`Option & { direction?: string }`,elements:[{name:"signature",type:"object",raw:`{ key: string, diff --git a/docs/assets/BooleanIcon.stories-Cf5DXsV1.js b/docs/assets/BooleanIcon.stories-A0FZb-hn.js similarity index 82% rename from docs/assets/BooleanIcon.stories-Cf5DXsV1.js rename to docs/assets/BooleanIcon.stories-A0FZb-hn.js index 59a62bdb..21ee706d 100644 --- a/docs/assets/BooleanIcon.stories-Cf5DXsV1.js +++ b/docs/assets/BooleanIcon.stories-A0FZb-hn.js @@ -1 +1 @@ -import{j as i}from"./jsx-runtime-BTCK_S7S.js";import"./index-CBqU2yxZ.js";import{d as a}from"./index-DfmhmaGJ.js";import{I as l}from"./Icon-2tEtgK8g.js";import"./_commonjsHelpers-BosuxZz1.js";import"./mapValues-CZh2vnSw.js";import"./pickBy-CU2rOOKe.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-Bu_b4Pek.js";import"./index-Cw1G72V2.js";import"./index-CKJfshIT.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./preview-errors-CzpZmerH.js";import"./debounce-Bq1aTuh-.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getElementType-CckcRzoH.js";const u="times circle outline",d="check circle outline",I="red",f="green",m=p=>{let e=u,t=I;return p.value&&(e=d,t=f),i.jsx(l,{color:t,name:e})},c=m;m.__docgenInfo={description:"",methods:[],displayName:"BooleanIcon",props:{value:{required:!0,flowType:{name:"boolean"},description:""}}};const w={title:"Components/Semantic UI/BooleanIcon",component:c,decorators:[a.withKnobs]},o=()=>i.jsx(c,{value:a.boolean("Value",!0)});o.__docgenInfo={description:"",methods:[],displayName:"Default"};var r,n,s;o.parameters={...o.parameters,docs:{...(r=o.parameters)==null?void 0:r.docs,source:{originalSource:"() => ",...(s=(n=o.parameters)==null?void 0:n.docs)==null?void 0:s.source}}};const A=["Default"];export{o as Default,A as __namedExportsOrder,w as default}; +import{j as i}from"./jsx-runtime-BTCK_S7S.js";import"./index-CBqU2yxZ.js";import{d as a}from"./index-CAen7T_W.js";import{I as l}from"./Icon-2tEtgK8g.js";import"./_commonjsHelpers-BosuxZz1.js";import"./mapValues-LQZI9uWW.js";import"./pickBy-Us6u5-To.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-DCkRKKtx.js";import"./index-Cw1G72V2.js";import"./index-CKJfshIT.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./preview-errors-CzpZmerH.js";import"./debounce-BkgZrIul.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getElementType-CckcRzoH.js";const u="times circle outline",d="check circle outline",I="red",f="green",m=p=>{let e=u,t=I;return p.value&&(e=d,t=f),i.jsx(l,{color:t,name:e})},c=m;m.__docgenInfo={description:"",methods:[],displayName:"BooleanIcon",props:{value:{required:!0,flowType:{name:"boolean"},description:""}}};const w={title:"Components/Semantic UI/BooleanIcon",component:c,decorators:[a.withKnobs]},o=()=>i.jsx(c,{value:a.boolean("Value",!0)});o.__docgenInfo={description:"",methods:[],displayName:"Default"};var r,n,s;o.parameters={...o.parameters,docs:{...(r=o.parameters)==null?void 0:r.docs,source:{originalSource:"() => ",...(s=(n=o.parameters)==null?void 0:n.docs)==null?void 0:s.source}}};const A=["Default"];export{o as Default,A as __namedExportsOrder,w as default}; diff --git a/docs/assets/CancelButton.stories-Do12fFvS.js b/docs/assets/CancelButton.stories-CUiAEb1e.js similarity index 84% rename from docs/assets/CancelButton.stories-Do12fFvS.js rename to docs/assets/CancelButton.stories-CUiAEb1e.js index 25c197b5..eacf52e2 100644 --- a/docs/assets/CancelButton.stories-Do12fFvS.js +++ b/docs/assets/CancelButton.stories-CUiAEb1e.js @@ -1 +1 @@ -import{j as n}from"./jsx-runtime-BTCK_S7S.js";import"./index-CBqU2yxZ.js";import{a as l}from"./chunk-WFFRPTHA-B2vgThZf.js";import{d as r}from"./index-DfmhmaGJ.js";import{C as i}from"./CancelButton-jygaxOmX.js";import"./_commonjsHelpers-BosuxZz1.js";import"./preview-errors-CzpZmerH.js";import"./index-CKJfshIT.js";import"./v4-D8aEg3BZ.js";import"./mapValues-CZh2vnSw.js";import"./pickBy-CU2rOOKe.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-Bu_b4Pek.js";import"./index-Cw1G72V2.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./debounce-Bq1aTuh-.js";import"./Button-Blq7Z6RX.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getElementType-CckcRzoH.js";import"./Icon-2tEtgK8g.js";import"./Label-Cq1fb1cd.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./forEach-CXlln0XP.js";import"./Dimmer-D_gwaesu.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./index-DZGZymok.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./map-B4PnIEPz.js";import"./i18n-C8zWlANG.js";import"./i18next-Sc0HEOoc.js";import"./toPropertyKey-hKuLU48H.js";import"./defineProperty-CCxoMnQV.js";import"./inherits-D5wXBZoG.js";import"./createClass-D2z1h_eG.js";import"./getPrototypeOf-BYVhAdwF.js";const oo={title:"Components/Semantic UI/CancelButton",decorators:[r.withKnobs],component:i},o=()=>n.jsx(i,{disabled:r.boolean("Disabled",!1),onClick:l("click")}),t=()=>n.jsx(i,{disabled:r.boolean("Disabled",!0),onClick:l("click")});o.__docgenInfo={description:"",methods:[],displayName:"Default"};t.__docgenInfo={description:"",methods:[],displayName:"Disabled"};var e,m,a;o.parameters={...o.parameters,docs:{...(e=o.parameters)==null?void 0:e.docs,source:{originalSource:"() => ",...(a=(m=o.parameters)==null?void 0:m.docs)==null?void 0:a.source}}};var p,s,c;t.parameters={...t.parameters,docs:{...(p=t.parameters)==null?void 0:p.docs,source:{originalSource:"() => ",...(c=(s=t.parameters)==null?void 0:s.docs)==null?void 0:c.source}}};const to=["Default","Disabled"];export{o as Default,t as Disabled,to as __namedExportsOrder,oo as default}; +import{j as n}from"./jsx-runtime-BTCK_S7S.js";import"./index-CBqU2yxZ.js";import{a as l}from"./chunk-WFFRPTHA-B2vgThZf.js";import{d as r}from"./index-CAen7T_W.js";import{C as i}from"./CancelButton-jygaxOmX.js";import"./_commonjsHelpers-BosuxZz1.js";import"./preview-errors-CzpZmerH.js";import"./index-CKJfshIT.js";import"./v4-D8aEg3BZ.js";import"./mapValues-LQZI9uWW.js";import"./pickBy-Us6u5-To.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-DCkRKKtx.js";import"./index-Cw1G72V2.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./debounce-BkgZrIul.js";import"./Button-Blq7Z6RX.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getElementType-CckcRzoH.js";import"./Icon-2tEtgK8g.js";import"./Label-Cq1fb1cd.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./forEach-CXlln0XP.js";import"./Dimmer-D_gwaesu.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./index-DZGZymok.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./map-B4PnIEPz.js";import"./i18n-C8zWlANG.js";import"./i18next-Sc0HEOoc.js";import"./toPropertyKey-hKuLU48H.js";import"./defineProperty-CCxoMnQV.js";import"./inherits-D5wXBZoG.js";import"./createClass-D2z1h_eG.js";import"./getPrototypeOf-BYVhAdwF.js";const oo={title:"Components/Semantic UI/CancelButton",decorators:[r.withKnobs],component:i},o=()=>n.jsx(i,{disabled:r.boolean("Disabled",!1),onClick:l("click")}),t=()=>n.jsx(i,{disabled:r.boolean("Disabled",!0),onClick:l("click")});o.__docgenInfo={description:"",methods:[],displayName:"Default"};t.__docgenInfo={description:"",methods:[],displayName:"Disabled"};var e,m,a;o.parameters={...o.parameters,docs:{...(e=o.parameters)==null?void 0:e.docs,source:{originalSource:"() => ",...(a=(m=o.parameters)==null?void 0:m.docs)==null?void 0:a.source}}};var p,s,c;t.parameters={...t.parameters,docs:{...(p=t.parameters)==null?void 0:p.docs,source:{originalSource:"() => ",...(c=(s=t.parameters)==null?void 0:s.docs)==null?void 0:c.source}}};const to=["Default","Disabled"];export{o as Default,t as Disabled,to as __namedExportsOrder,oo as default}; diff --git a/docs/assets/Color-6VNJS4EI-D1nvHf14.js b/docs/assets/Color-6VNJS4EI-DDpNuNxI.js similarity index 98% rename from docs/assets/Color-6VNJS4EI-D1nvHf14.js rename to docs/assets/Color-6VNJS4EI-DDpNuNxI.js index 7941431e..d58923be 100644 --- a/docs/assets/Color-6VNJS4EI-D1nvHf14.js +++ b/docs/assets/Color-6VNJS4EI-DDpNuNxI.js @@ -1 +1 @@ -import{n as x,f as Z,T as me,F as pe,I as ve,g as ye}from"./chunk-HLWAVYOI-CFPuBJI5.js";import{R as f,r as b}from"./index-CBqU2yxZ.js";import{g as ee}from"./_commonjsHelpers-BosuxZz1.js";import{d as we}from"./debounce-Bq1aTuh-.js";import{d as xe}from"./mapValues-CZh2vnSw.js";import"./iframe-ovyJW9VA.js";import"../sb-preview/runtime.js";import"./react-18-DnM9deRA.js";import"./index-DZGZymok.js";import"./pickBy-CU2rOOKe.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./index-Cw1G72V2.js";import"./extends-CCbyfPlC.js";import"./assertThisInitialized-B9jnkVVz.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getPrototypeOf-BYVhAdwF.js";import"./cloneDeep-kl2wD128.js";import"./index-CKJfshIT.js";import"./index-CeKoIcWT.js";function k(){return(k=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}function L(e){var t=b.useRef(e),n=b.useRef(function(r){t.current&&t.current(r)});return t.current=e,n.current}var $=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e0:v.buttons>0)&&o.current?a(A(o.current,v,s.current)):E(!1)},j=function(){return E(!1)};function E(v){var m=c.current,w=X(o.current),N=v?w.addEventListener:w.removeEventListener;N(m?"touchmove":"mousemove",_),N(m?"touchend":"mouseup",j)}return[function(v){var m=v.nativeEvent,w=o.current;if(w&&(U(m),!function(ge,be){return be&&!O(ge)}(m,c.current)&&w)){if(O(m)){c.current=!0;var N=m.changedTouches||[];N.length&&(s.current=N[0].identifier)}w.focus(),a(A(w,m,s.current)),E(!0)}},function(v){var m=v.which||v.keyCode;m<37||m>40||(v.preventDefault(),l({left:m===39?.05:m===37?-.05:0,top:m===40?.05:m===38?-.05:0}))},E]},[l,a]),d=u[0],h=u[1],g=u[2];return b.useEffect(function(){return g},[g]),f.createElement("div",k({},r,{onTouchStart:d,onMouseDown:d,className:"react-colorful__interactive",ref:o,onKeyDown:h,tabIndex:0,role:"slider"}))}),S=function(e){return e.filter(Boolean).join(" ")},W=function(e){var t=e.color,n=e.left,r=e.top,o=r===void 0?.5:r,a=S(["react-colorful__pointer",e.className]);return f.createElement("div",{className:a,style:{top:100*o+"%",left:100*n+"%"}},f.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},p=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n},ke={grad:.9,turn:360,rad:360/(2*Math.PI)},_e=function(e){return re(B(e))},B=function(e){return e[0]==="#"&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?p(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:e.length===8?p(parseInt(e.substring(6,8),16)/255,2):1}},Ee=function(e,t){return t===void 0&&(t="deg"),Number(e)*(ke[t]||1)},Me=function(e){var t=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?Ce({h:Ee(t[1],t[2]),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)}):{h:0,s:0,v:0,a:1}},Ce=function(e){var t=e.s,n=e.l;return{h:e.h,s:(t*=(n<50?n:100-n)/100)>0?2*t/(n+t)*100:0,v:n+t,a:e.a}},$e=function(e){return Oe(ne(e))},te=function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:p(e.h),s:p(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:p(o/2),a:p(r,2)}},F=function(e){var t=te(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},P=function(e){var t=te(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},ne=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var a=Math.floor(t),l=r*(1-n),s=r*(1-(t-a)*n),c=r*(1-(1-t+a)*n),u=a%6;return{r:p(255*[r,s,l,l,c,r][u]),g:p(255*[c,r,r,s,l,l][u]),b:p(255*[l,l,c,r,r,s][u]),a:p(o,2)}},Ne=function(e){var t=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?re({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):{h:0,s:0,v:0,a:1}},z=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Oe=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=o<1?z(p(255*o)):"";return"#"+z(t)+z(n)+z(r)+a},re=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=Math.max(t,n,r),l=a-Math.min(t,n,r),s=l?a===t?(n-r)/l:a===n?2+(r-t)/l:4+(t-n)/l:0;return{h:p(60*(s<0?s+6:s)),s:p(a?l/a*100:0),v:p(a/255*100),a:o}},oe=f.memo(function(e){var t=e.hue,n=e.onChange,r=S(["react-colorful__hue",e.className]);return f.createElement("div",{className:r},f.createElement(G,{onMove:function(o){n({h:360*o.left})},onKey:function(o){n({h:$(t+360*o.left,0,360)})},"aria-label":"Hue","aria-valuenow":p(t),"aria-valuemax":"360","aria-valuemin":"0"},f.createElement(W,{className:"react-colorful__hue-pointer",left:t/360,color:F({h:t,s:100,v:100,a:1})})))}),ae=f.memo(function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:F({h:t.h,s:100,v:100,a:1})};return f.createElement("div",{className:"react-colorful__saturation",style:r},f.createElement(G,{onMove:function(o){n({s:100*o.left,v:100-100*o.top})},onKey:function(o){n({s:$(t.s+100*o.left,0,100),v:$(t.v-100*o.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+p(t.s)+"%, Brightness "+p(t.v)+"%"},f.createElement(W,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:F(t)})))}),le=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},se=function(e,t){return e.replace(/\s/g,"")===t.replace(/\s/g,"")},Re=function(e,t){return e.toLowerCase()===t.toLowerCase()||le(B(e),B(t))};function ce(e,t,n){var r=L(n),o=b.useState(function(){return e.toHsva(t)}),a=o[0],l=o[1],s=b.useRef({color:t,hsva:a});b.useEffect(function(){if(!e.equal(t,s.current.color)){var u=e.toHsva(t);s.current={hsva:u,color:t},l(u)}},[t,e]),b.useEffect(function(){var u;le(a,s.current.hsva)||e.equal(u=e.fromHsva(a),s.current.color)||(s.current={hsva:a,color:u},r(u))},[a,e,r]);var c=b.useCallback(function(u){l(function(d){return Object.assign({},d,u)})},[]);return[a,c]}var Se=typeof window<"u"?b.useLayoutEffect:b.useEffect,je=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},Y=new Map,ie=function(e){Se(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!Y.has(t)){var n=t.createElement("style");n.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,Y.set(t,n);var r=je();r&&n.setAttribute("nonce",r),t.head.appendChild(n)}},[])},ze=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,a=e.onChange,l=V(e,["className","colorModel","color","onChange"]),s=b.useRef(null);ie(s);var c=ce(n,o,a),u=c[0],d=c[1],h=S(["react-colorful",t]);return f.createElement("div",k({},l,{ref:s,className:h}),f.createElement(ae,{hsva:u,onChange:d}),f.createElement(oe,{hue:u.h,onChange:d,className:"react-colorful__last-control"}))},Ie={defaultColor:"000",toHsva:_e,fromHsva:function(e){return $e({h:e.h,s:e.s,v:e.v,a:1})},equal:Re},He=function(e){return f.createElement(ze,k({},e,{colorModel:Ie}))},Pe=function(e){var t=e.className,n=e.hsva,r=e.onChange,o={backgroundImage:"linear-gradient(90deg, "+P(Object.assign({},n,{a:0}))+", "+P(Object.assign({},n,{a:1}))+")"},a=S(["react-colorful__alpha",t]),l=p(100*n.a);return f.createElement("div",{className:a},f.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),f.createElement(G,{onMove:function(s){r({a:s.left})},onKey:function(s){r({a:$(n.a+s.left)})},"aria-label":"Alpha","aria-valuetext":l+"%","aria-valuenow":l,"aria-valuemin":"0","aria-valuemax":"100"},f.createElement(W,{className:"react-colorful__alpha-pointer",left:n.a,color:P(n)})))},ue=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,a=e.onChange,l=V(e,["className","colorModel","color","onChange"]),s=b.useRef(null);ie(s);var c=ce(n,o,a),u=c[0],d=c[1],h=S(["react-colorful",t]);return f.createElement("div",k({},l,{ref:s,className:h}),f.createElement(ae,{hsva:u,onChange:d}),f.createElement(oe,{hue:u.h,onChange:d}),f.createElement(Pe,{hsva:u,onChange:d,className:"react-colorful__last-control"}))},qe={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:Me,fromHsva:P,equal:se},Te=function(e){return f.createElement(ue,k({},e,{colorModel:qe}))},Le={defaultColor:"rgba(0, 0, 0, 1)",toHsva:Ne,fromHsva:function(e){var t=ne(e);return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"},equal:se},Xe=function(e){return f.createElement(ue,k({},e,{colorModel:Le}))},Be={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};const R=Be,fe={};for(const e of Object.keys(R))fe[R[e]]=e;const i={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var he=i;for(const e of Object.keys(i)){if(!("channels"in i[e]))throw new Error("missing channels property: "+e);if(!("labels"in i[e]))throw new Error("missing channel labels property: "+e);if(i[e].labels.length!==i[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=i[e];delete i[e].channels,delete i[e].labels,Object.defineProperty(i[e],"channels",{value:t}),Object.defineProperty(i[e],"labels",{value:n})}i.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(t,n,r),a=Math.max(t,n,r),l=a-o;let s,c;a===o?s=0:t===a?s=(n-r)/l:n===a?s=2+(r-t)/l:r===a&&(s=4+(t-n)/l),s=Math.min(s*60,360),s<0&&(s+=360);const u=(o+a)/2;return a===o?c=0:u<=.5?c=l/(a+o):c=l/(2-a-o),[s,c*100,u*100]};i.rgb.hsv=function(e){let t,n,r,o,a;const l=e[0]/255,s=e[1]/255,c=e[2]/255,u=Math.max(l,s,c),d=u-Math.min(l,s,c),h=function(g){return(u-g)/6/d+1/2};return d===0?(o=0,a=0):(a=d/u,t=h(l),n=h(s),r=h(c),l===u?o=r-n:s===u?o=1/3+t-r:c===u&&(o=2/3+n-t),o<0?o+=1:o>1&&(o-=1)),[o*360,a*100,u*100]};i.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const o=i.rgb.hsl(e)[0],a=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[o,a*100,r*100]};i.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(1-t,1-n,1-r),a=(1-t-o)/(1-o)||0,l=(1-n-o)/(1-o)||0,s=(1-r-o)/(1-o)||0;return[a*100,l*100,s*100,o*100]};function Fe(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}i.rgb.keyword=function(e){const t=fe[e];if(t)return t;let n=1/0,r;for(const o of Object.keys(R)){const a=R[o],l=Fe(e,a);l.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;const o=t*.4124+n*.3576+r*.1805,a=t*.2126+n*.7152+r*.0722,l=t*.0193+n*.1192+r*.9505;return[o*100,a*100,l*100]};i.rgb.lab=function(e){const t=i.rgb.xyz(e);let n=t[0],r=t[1],o=t[2];n/=95.047,r/=100,o/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,o=o>.008856?o**(1/3):7.787*o+16/116;const a=116*r-16,l=500*(n-r),s=200*(r-o);return[a,l,s]};i.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let o,a,l;if(n===0)return l=r*255,[l,l,l];r<.5?o=r*(1+n):o=r+n-r*n;const s=2*r-o,c=[0,0,0];for(let u=0;u<3;u++)a=t+1/3*-(u-1),a<0&&a++,a>1&&a--,6*a<1?l=s+(o-s)*6*a:2*a<1?l=o:3*a<2?l=s+(o-s)*(2/3-a)*6:l=s,c[u]=l*255;return c};i.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,o=n;const a=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,o*=a<=1?a:2-a;const l=(r+n)/2,s=r===0?2*o/(a+o):2*n/(r+n);return[t,s*100,l*100]};i.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const o=Math.floor(t)%6,a=t-Math.floor(t),l=255*r*(1-n),s=255*r*(1-n*a),c=255*r*(1-n*(1-a));switch(r*=255,o){case 0:return[r,c,l];case 1:return[s,r,l];case 2:return[l,r,c];case 3:return[l,s,r];case 4:return[c,l,r];case 5:return[r,l,s]}};i.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,o=Math.max(r,.01);let a,l;l=(2-n)*r;const s=(2-n)*o;return a=n*o,a/=s<=1?s:2-s,a=a||0,l/=2,[t,a*100,l*100]};i.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const o=n+r;let a;o>1&&(n/=o,r/=o);const l=Math.floor(6*t),s=1-r;a=6*t-l,l&1&&(a=1-a);const c=n+a*(s-n);let u,d,h;switch(l){default:case 6:case 0:u=s,d=c,h=n;break;case 1:u=c,d=s,h=n;break;case 2:u=n,d=s,h=c;break;case 3:u=n,d=c,h=s;break;case 4:u=c,d=n,h=s;break;case 5:u=s,d=n,h=c;break}return[u*255,d*255,h*255]};i.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100,a=1-Math.min(1,t*(1-o)+o),l=1-Math.min(1,n*(1-o)+o),s=1-Math.min(1,r*(1-o)+o);return[a*255,l*255,s*255]};i.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let o,a,l;return o=t*3.2406+n*-1.5372+r*-.4986,a=t*-.9689+n*1.8758+r*.0415,l=t*.0557+n*-.204+r*1.057,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,l=l>.0031308?1.055*l**(1/2.4)-.055:l*12.92,o=Math.min(Math.max(0,o),1),a=Math.min(Math.max(0,a),1),l=Math.min(Math.max(0,l),1),[o*255,a*255,l*255]};i.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;const o=116*n-16,a=500*(t-n),l=200*(n-r);return[o,a,l]};i.lab.xyz=function(e){const t=e[0],n=e[1],r=e[2];let o,a,l;a=(t+16)/116,o=n/500+a,l=a-r/200;const s=a**3,c=o**3,u=l**3;return a=s>.008856?s:(a-16/116)/7.787,o=c>.008856?c:(o-16/116)/7.787,l=u>.008856?u:(l-16/116)/7.787,o*=95.047,a*=100,l*=108.883,[o,a,l]};i.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let o;o=Math.atan2(r,n)*360/2/Math.PI,o<0&&(o+=360);const l=Math.sqrt(n*n+r*r);return[t,l,o]};i.lch.lab=function(e){const t=e[0],n=e[1],o=e[2]/360*2*Math.PI,a=n*Math.cos(o),l=n*Math.sin(o);return[t,a,l]};i.rgb.ansi16=function(e,t=null){const[n,r,o]=e;let a=t===null?i.rgb.hsv(e)[2]:t;if(a=Math.round(a/50),a===0)return 30;let l=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return a===2&&(l+=60),l};i.hsv.ansi16=function(e){return i.rgb.ansi16(i.hsv.rgb(e),e[2])};i.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)};i.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=(~~(e>50)+1)*.5,r=(t&1)*n*255,o=(t>>1&1)*n*255,a=(t>>2&1)*n*255;return[r,o,a]};i.ansi256.rgb=function(e){if(e>=232){const a=(e-232)*10+8;return[a,a,a]}e-=16;let t;const n=Math.floor(e/36)/5*255,r=Math.floor((t=e%36)/6)/5*255,o=t%6/5*255;return[n,r,o]};i.rgb.hex=function(e){const n=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(n.length)+n};i.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];t[0].length===3&&(n=n.split("").map(s=>s+s).join(""));const r=parseInt(n,16),o=r>>16&255,a=r>>8&255,l=r&255;return[o,a,l]};i.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.max(Math.max(t,n),r),a=Math.min(Math.min(t,n),r),l=o-a;let s,c;return l<1?s=a/(1-l):s=0,l<=0?c=0:o===t?c=(n-r)/l%6:o===n?c=2+(r-t)/l:c=4+(t-n)/l,c/=6,c%=1,[c*360,l*100,s*100]};i.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let o=0;return r<1&&(o=(n-.5*r)/(1-r)),[e[0],r*100,o*100]};i.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],r*100,o*100]};i.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(n===0)return[r*255,r*255,r*255];const o=[0,0,0],a=t%1*6,l=a%1,s=1-l;let c=0;switch(Math.floor(a)){case 0:o[0]=1,o[1]=l,o[2]=0;break;case 1:o[0]=s,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=l;break;case 3:o[0]=0,o[1]=s,o[2]=1;break;case 4:o[0]=l,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=s}return c=(1-n)*r,[(n*o[0]+c)*255,(n*o[1]+c)*255,(n*o[2]+c)*255]};i.hcg.hsv=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);let o=0;return r>0&&(o=t/r),[e[0],o*100,r*100]};i.hcg.hsl=function(e){const t=e[1]/100,r=e[2]/100*(1-t)+.5*t;let o=0;return r>0&&r<.5?o=t/(2*r):r>=.5&&r<1&&(o=t/(2*(1-r))),[e[0],o*100,r*100]};i.hcg.hwb=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);return[e[0],(r-t)*100,(1-r)*100]};i.hwb.hcg=function(e){const t=e[1]/100,r=1-e[2]/100,o=r-t;let a=0;return o<1&&(a=(r-o)/(1-o)),[e[0],o*100,a*100]};i.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};i.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};i.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};i.gray.hsl=function(e){return[0,0,e[0]]};i.gray.hsv=i.gray.hsl;i.gray.hwb=function(e){return[0,100,e[0]]};i.gray.cmyk=function(e){return[0,0,0,e[0]]};i.gray.lab=function(e){return[e[0],0,0]};i.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255,r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r};i.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const q=he;function De(){const e={},t=Object.keys(q);for(let n=t.length,r=0;r1&&(n=r),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}function Je(e){const t=function(...n){const r=n[0];if(r==null)return r;r.length>1&&(n=r);const o=e(n);if(typeof o=="object")for(let a=o.length,l=0;l{M[e]={},Object.defineProperty(M[e],"channels",{value:D[e].channels}),Object.defineProperty(M[e],"labels",{value:D[e].labels});const t=Ae(e);Object.keys(t).forEach(r=>{const o=t[r];M[e][r]=Je(o),M[e][r].raw=Ye(o)})});var Qe=M;const y=ee(Qe);var Ze=we,et=xe,tt="Expected a function";function nt(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(tt);return et(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Ze(e,t,{leading:r,maxWait:t,trailing:o})}var rt=nt;const ot=ee(rt);var at=x.div({position:"relative",maxWidth:250}),lt=x(Z)({position:"absolute",zIndex:1,top:4,left:4}),st=x.div({width:200,margin:5,".react-colorful__saturation":{borderRadius:"4px 4px 0 0"},".react-colorful__hue":{boxShadow:"inset 0 0 0 1px rgb(0 0 0 / 5%)"},".react-colorful__last-control":{borderRadius:"0 0 4px 4px"}}),ct=x(me)(({theme:e})=>({fontFamily:e.typography.fonts.base})),it=x.div({display:"grid",gridTemplateColumns:"repeat(9, 16px)",gap:6,padding:3,marginTop:5,width:200}),ut=x.div(({theme:e,active:t})=>({width:16,height:16,boxShadow:t?`${e.appBorderColor} 0 0 0 1px inset, ${e.textMutedColor}50 0 0 0 4px`:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:e.appBorderRadius})),ft=`url('data:image/svg+xml;charset=utf-8,')`,J=({value:e,active:t,onClick:n,style:r,...o})=>{let a=`linear-gradient(${e}, ${e}), ${ft}, linear-gradient(#fff, #fff)`;return f.createElement(ut,{...o,active:t,onClick:n,style:{...r,backgroundImage:a}})},ht=x(pe.Input)(({theme:e})=>({width:"100%",paddingLeft:30,paddingRight:30,boxSizing:"border-box",fontFamily:e.typography.fonts.base})),dt=x(ve)(({theme:e})=>({position:"absolute",zIndex:1,top:6,right:7,width:20,height:20,padding:4,boxSizing:"border-box",cursor:"pointer",color:e.input.color})),de=(e=>(e.RGB="rgb",e.HSL="hsl",e.HEX="hex",e))(de||{}),I=Object.values(de),gt=/\(([0-9]+),\s*([0-9]+)%?,\s*([0-9]+)%?,?\s*([0-9.]+)?\)/,bt=/^\s*rgba?\(([0-9]+),\s*([0-9]+),\s*([0-9]+),?\s*([0-9.]+)?\)\s*$/i,mt=/^\s*hsla?\(([0-9]+),\s*([0-9]+)%,\s*([0-9]+)%,?\s*([0-9.]+)?\)\s*$/i,K=/^\s*#?([0-9a-f]{3}|[0-9a-f]{6})\s*$/i,pt=/^\s*#?([0-9a-f]{3})\s*$/i,vt={hex:He,rgb:Xe,hsl:Te},H={hex:"transparent",rgb:"rgba(0, 0, 0, 0)",hsl:"hsla(0, 0%, 0%, 0)"},Q=e=>{let t=e==null?void 0:e.match(gt);if(!t)return[0,0,0,1];let[,n,r,o,a=1]=t;return[n,r,o,a].map(Number)},C=e=>{if(!e)return;let t=!0;if(bt.test(e)){let[l,s,c,u]=Q(e),[d,h,g]=y.rgb.hsl([l,s,c])||[0,0,0];return{valid:t,value:e,keyword:y.rgb.keyword([l,s,c]),colorSpace:"rgb",rgb:e,hsl:`hsla(${d}, ${h}%, ${g}%, ${u})`,hex:`#${y.rgb.hex([l,s,c]).toLowerCase()}`}}if(mt.test(e)){let[l,s,c,u]=Q(e),[d,h,g]=y.hsl.rgb([l,s,c])||[0,0,0];return{valid:t,value:e,keyword:y.hsl.keyword([l,s,c]),colorSpace:"hsl",rgb:`rgba(${d}, ${h}, ${g}, ${u})`,hsl:e,hex:`#${y.hsl.hex([l,s,c]).toLowerCase()}`}}let n=e.replace("#",""),r=y.keyword.rgb(n)||y.hex.rgb(n),o=y.rgb.hsl(r),a=e;if(/[^#a-f0-9]/i.test(e)?a=n:K.test(e)&&(a=`#${n}`),a.startsWith("#"))t=K.test(a);else try{y.keyword.hex(a)}catch{t=!1}return{valid:t,value:a,keyword:y.rgb.keyword(r),colorSpace:"hex",rgb:`rgba(${r[0]}, ${r[1]}, ${r[2]}, 1)`,hsl:`hsla(${o[0]}, ${o[1]}%, ${o[2]}%, 1)`,hex:a}},yt=(e,t,n)=>{if(!e||!(t!=null&&t.valid))return H[n];if(n!=="hex")return(t==null?void 0:t[n])||H[n];if(!t.hex.startsWith("#"))try{return`#${y.keyword.hex(t.hex)}`}catch{return H.hex}let r=t.hex.match(pt);if(!r)return K.test(t.hex)?t.hex:H.hex;let[o,a,l]=r[1].split("");return`#${o}${o}${a}${a}${l}${l}`},wt=(e,t)=>{let[n,r]=b.useState(e||""),[o,a]=b.useState(()=>C(n)),[l,s]=b.useState((o==null?void 0:o.colorSpace)||"hex");b.useEffect(()=>{let h=e||"",g=C(h);r(h),a(g),s((g==null?void 0:g.colorSpace)||"hex")},[e]);let c=b.useMemo(()=>yt(n,o,l).toLowerCase(),[n,o,l]),u=b.useCallback(h=>{let g=C(h),_=(g==null?void 0:g.value)||h||"";r(_),_===""&&(a(void 0),t(void 0)),g&&(a(g),s(g.colorSpace),t(g.value))},[t]),d=b.useCallback(()=>{let h=I.indexOf(l)+1;h>=I.length&&(h=0),s(I[h]);let g=(o==null?void 0:o[I[h]])||"";r(g),t(g)},[o,l,t]);return{value:n,realValue:c,updateValue:u,color:o,colorSpace:l,cycleColorSpace:d}},T=e=>e.replace(/\s*/,"").toLowerCase(),xt=(e,t,n)=>{let[r,o]=b.useState(t!=null&&t.valid?[t]:[]);b.useEffect(()=>{t===void 0&&o([])},[t]);let a=b.useMemo(()=>(e||[]).map(s=>typeof s=="string"?C(s):s.title?{...C(s.color),keyword:s.title}:C(s.color)).concat(r).filter(Boolean).slice(-27),[e,r]),l=b.useCallback(s=>{s!=null&&s.valid&&(a.some(c=>T(c[n])===T(s[n]))||o(c=>c.concat(s)))},[n,a]);return{presets:a,addPreset:l}},kt=({name:e,value:t,onChange:n,onFocus:r,onBlur:o,presetColors:a,startOpen:l=!1})=>{let s=b.useCallback(ot(n,200),[n]),{value:c,realValue:u,updateValue:d,color:h,colorSpace:g,cycleColorSpace:_}=wt(t,s),{presets:j,addPreset:E}=xt(a,h,g),v=vt[g];return f.createElement(at,null,f.createElement(lt,{startOpen:l,closeOnOutsideClick:!0,onVisibleChange:()=>E(h),tooltip:f.createElement(st,null,f.createElement(v,{color:u==="transparent"?"#000000":u,onChange:d,onFocus:r,onBlur:o}),j.length>0&&f.createElement(it,null,j.map((m,w)=>f.createElement(Z,{key:`${m.value}-${w}`,hasChrome:!1,tooltip:f.createElement(ct,{note:m.keyword||m.value})},f.createElement(J,{value:m[g],active:h&&T(m[g])===T(h[g]),onClick:()=>d(m.value)})))))},f.createElement(J,{value:u,style:{margin:4}})),f.createElement(ht,{id:ye(e),value:c,onChange:m=>d(m.target.value),onFocus:m=>m.target.select(),placeholder:"Choose color..."}),c?f.createElement(dt,{icon:"markup",onClick:_}):null)},Dt=kt;export{kt as ColorControl,Dt as default}; +import{n as x,f as Z,T as me,F as pe,I as ve,g as ye}from"./chunk-HLWAVYOI-DX5qqaYu.js";import{R as f,r as b}from"./index-CBqU2yxZ.js";import{g as ee}from"./_commonjsHelpers-BosuxZz1.js";import{d as we}from"./debounce-BkgZrIul.js";import{d as xe}from"./mapValues-LQZI9uWW.js";import"./iframe-BQtATEn0.js";import"../sb-preview/runtime.js";import"./react-18-DnM9deRA.js";import"./index-DZGZymok.js";import"./pickBy-Us6u5-To.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./index-Cw1G72V2.js";import"./extends-CCbyfPlC.js";import"./assertThisInitialized-B9jnkVVz.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getPrototypeOf-BYVhAdwF.js";import"./cloneDeep-C80tdQ4I.js";import"./index-CKJfshIT.js";import"./index-mVz13F_n.js";function k(){return(k=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}function L(e){var t=b.useRef(e),n=b.useRef(function(r){t.current&&t.current(r)});return t.current=e,n.current}var $=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e0:v.buttons>0)&&o.current?a(A(o.current,v,s.current)):E(!1)},j=function(){return E(!1)};function E(v){var m=c.current,w=X(o.current),N=v?w.addEventListener:w.removeEventListener;N(m?"touchmove":"mousemove",_),N(m?"touchend":"mouseup",j)}return[function(v){var m=v.nativeEvent,w=o.current;if(w&&(U(m),!function(ge,be){return be&&!O(ge)}(m,c.current)&&w)){if(O(m)){c.current=!0;var N=m.changedTouches||[];N.length&&(s.current=N[0].identifier)}w.focus(),a(A(w,m,s.current)),E(!0)}},function(v){var m=v.which||v.keyCode;m<37||m>40||(v.preventDefault(),l({left:m===39?.05:m===37?-.05:0,top:m===40?.05:m===38?-.05:0}))},E]},[l,a]),d=u[0],h=u[1],g=u[2];return b.useEffect(function(){return g},[g]),f.createElement("div",k({},r,{onTouchStart:d,onMouseDown:d,className:"react-colorful__interactive",ref:o,onKeyDown:h,tabIndex:0,role:"slider"}))}),S=function(e){return e.filter(Boolean).join(" ")},W=function(e){var t=e.color,n=e.left,r=e.top,o=r===void 0?.5:r,a=S(["react-colorful__pointer",e.className]);return f.createElement("div",{className:a,style:{top:100*o+"%",left:100*n+"%"}},f.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},p=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n},ke={grad:.9,turn:360,rad:360/(2*Math.PI)},_e=function(e){return re(B(e))},B=function(e){return e[0]==="#"&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?p(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:e.length===8?p(parseInt(e.substring(6,8),16)/255,2):1}},Ee=function(e,t){return t===void 0&&(t="deg"),Number(e)*(ke[t]||1)},Me=function(e){var t=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?Ce({h:Ee(t[1],t[2]),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)}):{h:0,s:0,v:0,a:1}},Ce=function(e){var t=e.s,n=e.l;return{h:e.h,s:(t*=(n<50?n:100-n)/100)>0?2*t/(n+t)*100:0,v:n+t,a:e.a}},$e=function(e){return Oe(ne(e))},te=function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:p(e.h),s:p(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:p(o/2),a:p(r,2)}},F=function(e){var t=te(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},P=function(e){var t=te(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},ne=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var a=Math.floor(t),l=r*(1-n),s=r*(1-(t-a)*n),c=r*(1-(1-t+a)*n),u=a%6;return{r:p(255*[r,s,l,l,c,r][u]),g:p(255*[c,r,r,s,l,l][u]),b:p(255*[l,l,c,r,r,s][u]),a:p(o,2)}},Ne=function(e){var t=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?re({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):{h:0,s:0,v:0,a:1}},z=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Oe=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=o<1?z(p(255*o)):"";return"#"+z(t)+z(n)+z(r)+a},re=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=Math.max(t,n,r),l=a-Math.min(t,n,r),s=l?a===t?(n-r)/l:a===n?2+(r-t)/l:4+(t-n)/l:0;return{h:p(60*(s<0?s+6:s)),s:p(a?l/a*100:0),v:p(a/255*100),a:o}},oe=f.memo(function(e){var t=e.hue,n=e.onChange,r=S(["react-colorful__hue",e.className]);return f.createElement("div",{className:r},f.createElement(G,{onMove:function(o){n({h:360*o.left})},onKey:function(o){n({h:$(t+360*o.left,0,360)})},"aria-label":"Hue","aria-valuenow":p(t),"aria-valuemax":"360","aria-valuemin":"0"},f.createElement(W,{className:"react-colorful__hue-pointer",left:t/360,color:F({h:t,s:100,v:100,a:1})})))}),ae=f.memo(function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:F({h:t.h,s:100,v:100,a:1})};return f.createElement("div",{className:"react-colorful__saturation",style:r},f.createElement(G,{onMove:function(o){n({s:100*o.left,v:100-100*o.top})},onKey:function(o){n({s:$(t.s+100*o.left,0,100),v:$(t.v-100*o.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+p(t.s)+"%, Brightness "+p(t.v)+"%"},f.createElement(W,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:F(t)})))}),le=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},se=function(e,t){return e.replace(/\s/g,"")===t.replace(/\s/g,"")},Re=function(e,t){return e.toLowerCase()===t.toLowerCase()||le(B(e),B(t))};function ce(e,t,n){var r=L(n),o=b.useState(function(){return e.toHsva(t)}),a=o[0],l=o[1],s=b.useRef({color:t,hsva:a});b.useEffect(function(){if(!e.equal(t,s.current.color)){var u=e.toHsva(t);s.current={hsva:u,color:t},l(u)}},[t,e]),b.useEffect(function(){var u;le(a,s.current.hsva)||e.equal(u=e.fromHsva(a),s.current.color)||(s.current={hsva:a,color:u},r(u))},[a,e,r]);var c=b.useCallback(function(u){l(function(d){return Object.assign({},d,u)})},[]);return[a,c]}var Se=typeof window<"u"?b.useLayoutEffect:b.useEffect,je=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},Y=new Map,ie=function(e){Se(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!Y.has(t)){var n=t.createElement("style");n.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,Y.set(t,n);var r=je();r&&n.setAttribute("nonce",r),t.head.appendChild(n)}},[])},ze=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,a=e.onChange,l=V(e,["className","colorModel","color","onChange"]),s=b.useRef(null);ie(s);var c=ce(n,o,a),u=c[0],d=c[1],h=S(["react-colorful",t]);return f.createElement("div",k({},l,{ref:s,className:h}),f.createElement(ae,{hsva:u,onChange:d}),f.createElement(oe,{hue:u.h,onChange:d,className:"react-colorful__last-control"}))},Ie={defaultColor:"000",toHsva:_e,fromHsva:function(e){return $e({h:e.h,s:e.s,v:e.v,a:1})},equal:Re},He=function(e){return f.createElement(ze,k({},e,{colorModel:Ie}))},Pe=function(e){var t=e.className,n=e.hsva,r=e.onChange,o={backgroundImage:"linear-gradient(90deg, "+P(Object.assign({},n,{a:0}))+", "+P(Object.assign({},n,{a:1}))+")"},a=S(["react-colorful__alpha",t]),l=p(100*n.a);return f.createElement("div",{className:a},f.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),f.createElement(G,{onMove:function(s){r({a:s.left})},onKey:function(s){r({a:$(n.a+s.left)})},"aria-label":"Alpha","aria-valuetext":l+"%","aria-valuenow":l,"aria-valuemin":"0","aria-valuemax":"100"},f.createElement(W,{className:"react-colorful__alpha-pointer",left:n.a,color:P(n)})))},ue=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,a=e.onChange,l=V(e,["className","colorModel","color","onChange"]),s=b.useRef(null);ie(s);var c=ce(n,o,a),u=c[0],d=c[1],h=S(["react-colorful",t]);return f.createElement("div",k({},l,{ref:s,className:h}),f.createElement(ae,{hsva:u,onChange:d}),f.createElement(oe,{hue:u.h,onChange:d}),f.createElement(Pe,{hsva:u,onChange:d,className:"react-colorful__last-control"}))},qe={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:Me,fromHsva:P,equal:se},Te=function(e){return f.createElement(ue,k({},e,{colorModel:qe}))},Le={defaultColor:"rgba(0, 0, 0, 1)",toHsva:Ne,fromHsva:function(e){var t=ne(e);return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"},equal:se},Xe=function(e){return f.createElement(ue,k({},e,{colorModel:Le}))},Be={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};const R=Be,fe={};for(const e of Object.keys(R))fe[R[e]]=e;const i={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var he=i;for(const e of Object.keys(i)){if(!("channels"in i[e]))throw new Error("missing channels property: "+e);if(!("labels"in i[e]))throw new Error("missing channel labels property: "+e);if(i[e].labels.length!==i[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=i[e];delete i[e].channels,delete i[e].labels,Object.defineProperty(i[e],"channels",{value:t}),Object.defineProperty(i[e],"labels",{value:n})}i.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(t,n,r),a=Math.max(t,n,r),l=a-o;let s,c;a===o?s=0:t===a?s=(n-r)/l:n===a?s=2+(r-t)/l:r===a&&(s=4+(t-n)/l),s=Math.min(s*60,360),s<0&&(s+=360);const u=(o+a)/2;return a===o?c=0:u<=.5?c=l/(a+o):c=l/(2-a-o),[s,c*100,u*100]};i.rgb.hsv=function(e){let t,n,r,o,a;const l=e[0]/255,s=e[1]/255,c=e[2]/255,u=Math.max(l,s,c),d=u-Math.min(l,s,c),h=function(g){return(u-g)/6/d+1/2};return d===0?(o=0,a=0):(a=d/u,t=h(l),n=h(s),r=h(c),l===u?o=r-n:s===u?o=1/3+t-r:c===u&&(o=2/3+n-t),o<0?o+=1:o>1&&(o-=1)),[o*360,a*100,u*100]};i.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const o=i.rgb.hsl(e)[0],a=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[o,a*100,r*100]};i.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(1-t,1-n,1-r),a=(1-t-o)/(1-o)||0,l=(1-n-o)/(1-o)||0,s=(1-r-o)/(1-o)||0;return[a*100,l*100,s*100,o*100]};function Fe(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}i.rgb.keyword=function(e){const t=fe[e];if(t)return t;let n=1/0,r;for(const o of Object.keys(R)){const a=R[o],l=Fe(e,a);l.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;const o=t*.4124+n*.3576+r*.1805,a=t*.2126+n*.7152+r*.0722,l=t*.0193+n*.1192+r*.9505;return[o*100,a*100,l*100]};i.rgb.lab=function(e){const t=i.rgb.xyz(e);let n=t[0],r=t[1],o=t[2];n/=95.047,r/=100,o/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,o=o>.008856?o**(1/3):7.787*o+16/116;const a=116*r-16,l=500*(n-r),s=200*(r-o);return[a,l,s]};i.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let o,a,l;if(n===0)return l=r*255,[l,l,l];r<.5?o=r*(1+n):o=r+n-r*n;const s=2*r-o,c=[0,0,0];for(let u=0;u<3;u++)a=t+1/3*-(u-1),a<0&&a++,a>1&&a--,6*a<1?l=s+(o-s)*6*a:2*a<1?l=o:3*a<2?l=s+(o-s)*(2/3-a)*6:l=s,c[u]=l*255;return c};i.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,o=n;const a=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,o*=a<=1?a:2-a;const l=(r+n)/2,s=r===0?2*o/(a+o):2*n/(r+n);return[t,s*100,l*100]};i.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const o=Math.floor(t)%6,a=t-Math.floor(t),l=255*r*(1-n),s=255*r*(1-n*a),c=255*r*(1-n*(1-a));switch(r*=255,o){case 0:return[r,c,l];case 1:return[s,r,l];case 2:return[l,r,c];case 3:return[l,s,r];case 4:return[c,l,r];case 5:return[r,l,s]}};i.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,o=Math.max(r,.01);let a,l;l=(2-n)*r;const s=(2-n)*o;return a=n*o,a/=s<=1?s:2-s,a=a||0,l/=2,[t,a*100,l*100]};i.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const o=n+r;let a;o>1&&(n/=o,r/=o);const l=Math.floor(6*t),s=1-r;a=6*t-l,l&1&&(a=1-a);const c=n+a*(s-n);let u,d,h;switch(l){default:case 6:case 0:u=s,d=c,h=n;break;case 1:u=c,d=s,h=n;break;case 2:u=n,d=s,h=c;break;case 3:u=n,d=c,h=s;break;case 4:u=c,d=n,h=s;break;case 5:u=s,d=n,h=c;break}return[u*255,d*255,h*255]};i.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100,a=1-Math.min(1,t*(1-o)+o),l=1-Math.min(1,n*(1-o)+o),s=1-Math.min(1,r*(1-o)+o);return[a*255,l*255,s*255]};i.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let o,a,l;return o=t*3.2406+n*-1.5372+r*-.4986,a=t*-.9689+n*1.8758+r*.0415,l=t*.0557+n*-.204+r*1.057,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,l=l>.0031308?1.055*l**(1/2.4)-.055:l*12.92,o=Math.min(Math.max(0,o),1),a=Math.min(Math.max(0,a),1),l=Math.min(Math.max(0,l),1),[o*255,a*255,l*255]};i.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;const o=116*n-16,a=500*(t-n),l=200*(n-r);return[o,a,l]};i.lab.xyz=function(e){const t=e[0],n=e[1],r=e[2];let o,a,l;a=(t+16)/116,o=n/500+a,l=a-r/200;const s=a**3,c=o**3,u=l**3;return a=s>.008856?s:(a-16/116)/7.787,o=c>.008856?c:(o-16/116)/7.787,l=u>.008856?u:(l-16/116)/7.787,o*=95.047,a*=100,l*=108.883,[o,a,l]};i.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let o;o=Math.atan2(r,n)*360/2/Math.PI,o<0&&(o+=360);const l=Math.sqrt(n*n+r*r);return[t,l,o]};i.lch.lab=function(e){const t=e[0],n=e[1],o=e[2]/360*2*Math.PI,a=n*Math.cos(o),l=n*Math.sin(o);return[t,a,l]};i.rgb.ansi16=function(e,t=null){const[n,r,o]=e;let a=t===null?i.rgb.hsv(e)[2]:t;if(a=Math.round(a/50),a===0)return 30;let l=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return a===2&&(l+=60),l};i.hsv.ansi16=function(e){return i.rgb.ansi16(i.hsv.rgb(e),e[2])};i.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)};i.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=(~~(e>50)+1)*.5,r=(t&1)*n*255,o=(t>>1&1)*n*255,a=(t>>2&1)*n*255;return[r,o,a]};i.ansi256.rgb=function(e){if(e>=232){const a=(e-232)*10+8;return[a,a,a]}e-=16;let t;const n=Math.floor(e/36)/5*255,r=Math.floor((t=e%36)/6)/5*255,o=t%6/5*255;return[n,r,o]};i.rgb.hex=function(e){const n=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(n.length)+n};i.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];t[0].length===3&&(n=n.split("").map(s=>s+s).join(""));const r=parseInt(n,16),o=r>>16&255,a=r>>8&255,l=r&255;return[o,a,l]};i.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.max(Math.max(t,n),r),a=Math.min(Math.min(t,n),r),l=o-a;let s,c;return l<1?s=a/(1-l):s=0,l<=0?c=0:o===t?c=(n-r)/l%6:o===n?c=2+(r-t)/l:c=4+(t-n)/l,c/=6,c%=1,[c*360,l*100,s*100]};i.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let o=0;return r<1&&(o=(n-.5*r)/(1-r)),[e[0],r*100,o*100]};i.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],r*100,o*100]};i.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(n===0)return[r*255,r*255,r*255];const o=[0,0,0],a=t%1*6,l=a%1,s=1-l;let c=0;switch(Math.floor(a)){case 0:o[0]=1,o[1]=l,o[2]=0;break;case 1:o[0]=s,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=l;break;case 3:o[0]=0,o[1]=s,o[2]=1;break;case 4:o[0]=l,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=s}return c=(1-n)*r,[(n*o[0]+c)*255,(n*o[1]+c)*255,(n*o[2]+c)*255]};i.hcg.hsv=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);let o=0;return r>0&&(o=t/r),[e[0],o*100,r*100]};i.hcg.hsl=function(e){const t=e[1]/100,r=e[2]/100*(1-t)+.5*t;let o=0;return r>0&&r<.5?o=t/(2*r):r>=.5&&r<1&&(o=t/(2*(1-r))),[e[0],o*100,r*100]};i.hcg.hwb=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);return[e[0],(r-t)*100,(1-r)*100]};i.hwb.hcg=function(e){const t=e[1]/100,r=1-e[2]/100,o=r-t;let a=0;return o<1&&(a=(r-o)/(1-o)),[e[0],o*100,a*100]};i.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};i.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};i.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};i.gray.hsl=function(e){return[0,0,e[0]]};i.gray.hsv=i.gray.hsl;i.gray.hwb=function(e){return[0,100,e[0]]};i.gray.cmyk=function(e){return[0,0,0,e[0]]};i.gray.lab=function(e){return[e[0],0,0]};i.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255,r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r};i.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const q=he;function De(){const e={},t=Object.keys(q);for(let n=t.length,r=0;r1&&(n=r),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}function Je(e){const t=function(...n){const r=n[0];if(r==null)return r;r.length>1&&(n=r);const o=e(n);if(typeof o=="object")for(let a=o.length,l=0;l{M[e]={},Object.defineProperty(M[e],"channels",{value:D[e].channels}),Object.defineProperty(M[e],"labels",{value:D[e].labels});const t=Ae(e);Object.keys(t).forEach(r=>{const o=t[r];M[e][r]=Je(o),M[e][r].raw=Ye(o)})});var Qe=M;const y=ee(Qe);var Ze=we,et=xe,tt="Expected a function";function nt(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(tt);return et(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Ze(e,t,{leading:r,maxWait:t,trailing:o})}var rt=nt;const ot=ee(rt);var at=x.div({position:"relative",maxWidth:250}),lt=x(Z)({position:"absolute",zIndex:1,top:4,left:4}),st=x.div({width:200,margin:5,".react-colorful__saturation":{borderRadius:"4px 4px 0 0"},".react-colorful__hue":{boxShadow:"inset 0 0 0 1px rgb(0 0 0 / 5%)"},".react-colorful__last-control":{borderRadius:"0 0 4px 4px"}}),ct=x(me)(({theme:e})=>({fontFamily:e.typography.fonts.base})),it=x.div({display:"grid",gridTemplateColumns:"repeat(9, 16px)",gap:6,padding:3,marginTop:5,width:200}),ut=x.div(({theme:e,active:t})=>({width:16,height:16,boxShadow:t?`${e.appBorderColor} 0 0 0 1px inset, ${e.textMutedColor}50 0 0 0 4px`:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:e.appBorderRadius})),ft=`url('data:image/svg+xml;charset=utf-8,')`,J=({value:e,active:t,onClick:n,style:r,...o})=>{let a=`linear-gradient(${e}, ${e}), ${ft}, linear-gradient(#fff, #fff)`;return f.createElement(ut,{...o,active:t,onClick:n,style:{...r,backgroundImage:a}})},ht=x(pe.Input)(({theme:e})=>({width:"100%",paddingLeft:30,paddingRight:30,boxSizing:"border-box",fontFamily:e.typography.fonts.base})),dt=x(ve)(({theme:e})=>({position:"absolute",zIndex:1,top:6,right:7,width:20,height:20,padding:4,boxSizing:"border-box",cursor:"pointer",color:e.input.color})),de=(e=>(e.RGB="rgb",e.HSL="hsl",e.HEX="hex",e))(de||{}),I=Object.values(de),gt=/\(([0-9]+),\s*([0-9]+)%?,\s*([0-9]+)%?,?\s*([0-9.]+)?\)/,bt=/^\s*rgba?\(([0-9]+),\s*([0-9]+),\s*([0-9]+),?\s*([0-9.]+)?\)\s*$/i,mt=/^\s*hsla?\(([0-9]+),\s*([0-9]+)%,\s*([0-9]+)%,?\s*([0-9.]+)?\)\s*$/i,K=/^\s*#?([0-9a-f]{3}|[0-9a-f]{6})\s*$/i,pt=/^\s*#?([0-9a-f]{3})\s*$/i,vt={hex:He,rgb:Xe,hsl:Te},H={hex:"transparent",rgb:"rgba(0, 0, 0, 0)",hsl:"hsla(0, 0%, 0%, 0)"},Q=e=>{let t=e==null?void 0:e.match(gt);if(!t)return[0,0,0,1];let[,n,r,o,a=1]=t;return[n,r,o,a].map(Number)},C=e=>{if(!e)return;let t=!0;if(bt.test(e)){let[l,s,c,u]=Q(e),[d,h,g]=y.rgb.hsl([l,s,c])||[0,0,0];return{valid:t,value:e,keyword:y.rgb.keyword([l,s,c]),colorSpace:"rgb",rgb:e,hsl:`hsla(${d}, ${h}%, ${g}%, ${u})`,hex:`#${y.rgb.hex([l,s,c]).toLowerCase()}`}}if(mt.test(e)){let[l,s,c,u]=Q(e),[d,h,g]=y.hsl.rgb([l,s,c])||[0,0,0];return{valid:t,value:e,keyword:y.hsl.keyword([l,s,c]),colorSpace:"hsl",rgb:`rgba(${d}, ${h}, ${g}, ${u})`,hsl:e,hex:`#${y.hsl.hex([l,s,c]).toLowerCase()}`}}let n=e.replace("#",""),r=y.keyword.rgb(n)||y.hex.rgb(n),o=y.rgb.hsl(r),a=e;if(/[^#a-f0-9]/i.test(e)?a=n:K.test(e)&&(a=`#${n}`),a.startsWith("#"))t=K.test(a);else try{y.keyword.hex(a)}catch{t=!1}return{valid:t,value:a,keyword:y.rgb.keyword(r),colorSpace:"hex",rgb:`rgba(${r[0]}, ${r[1]}, ${r[2]}, 1)`,hsl:`hsla(${o[0]}, ${o[1]}%, ${o[2]}%, 1)`,hex:a}},yt=(e,t,n)=>{if(!e||!(t!=null&&t.valid))return H[n];if(n!=="hex")return(t==null?void 0:t[n])||H[n];if(!t.hex.startsWith("#"))try{return`#${y.keyword.hex(t.hex)}`}catch{return H.hex}let r=t.hex.match(pt);if(!r)return K.test(t.hex)?t.hex:H.hex;let[o,a,l]=r[1].split("");return`#${o}${o}${a}${a}${l}${l}`},wt=(e,t)=>{let[n,r]=b.useState(e||""),[o,a]=b.useState(()=>C(n)),[l,s]=b.useState((o==null?void 0:o.colorSpace)||"hex");b.useEffect(()=>{let h=e||"",g=C(h);r(h),a(g),s((g==null?void 0:g.colorSpace)||"hex")},[e]);let c=b.useMemo(()=>yt(n,o,l).toLowerCase(),[n,o,l]),u=b.useCallback(h=>{let g=C(h),_=(g==null?void 0:g.value)||h||"";r(_),_===""&&(a(void 0),t(void 0)),g&&(a(g),s(g.colorSpace),t(g.value))},[t]),d=b.useCallback(()=>{let h=I.indexOf(l)+1;h>=I.length&&(h=0),s(I[h]);let g=(o==null?void 0:o[I[h]])||"";r(g),t(g)},[o,l,t]);return{value:n,realValue:c,updateValue:u,color:o,colorSpace:l,cycleColorSpace:d}},T=e=>e.replace(/\s*/,"").toLowerCase(),xt=(e,t,n)=>{let[r,o]=b.useState(t!=null&&t.valid?[t]:[]);b.useEffect(()=>{t===void 0&&o([])},[t]);let a=b.useMemo(()=>(e||[]).map(s=>typeof s=="string"?C(s):s.title?{...C(s.color),keyword:s.title}:C(s.color)).concat(r).filter(Boolean).slice(-27),[e,r]),l=b.useCallback(s=>{s!=null&&s.valid&&(a.some(c=>T(c[n])===T(s[n]))||o(c=>c.concat(s)))},[n,a]);return{presets:a,addPreset:l}},kt=({name:e,value:t,onChange:n,onFocus:r,onBlur:o,presetColors:a,startOpen:l=!1})=>{let s=b.useCallback(ot(n,200),[n]),{value:c,realValue:u,updateValue:d,color:h,colorSpace:g,cycleColorSpace:_}=wt(t,s),{presets:j,addPreset:E}=xt(a,h,g),v=vt[g];return f.createElement(at,null,f.createElement(lt,{startOpen:l,closeOnOutsideClick:!0,onVisibleChange:()=>E(h),tooltip:f.createElement(st,null,f.createElement(v,{color:u==="transparent"?"#000000":u,onChange:d,onFocus:r,onBlur:o}),j.length>0&&f.createElement(it,null,j.map((m,w)=>f.createElement(Z,{key:`${m.value}-${w}`,hasChrome:!1,tooltip:f.createElement(ct,{note:m.keyword||m.value})},f.createElement(J,{value:m[g],active:h&&T(m[g])===T(h[g]),onClick:()=>d(m.value)})))))},f.createElement(J,{value:u,style:{margin:4}})),f.createElement(ht,{id:ye(e),value:c,onChange:m=>d(m.target.value),onFocus:m=>m.target.select(),placeholder:"Choose color..."}),c?f.createElement(dt,{icon:"markup",onClick:_}):null)},Dt=kt;export{kt as ColorControl,Dt as default}; diff --git a/docs/assets/ColorButton.stories-BQutYKtU.js b/docs/assets/ColorButton.stories-CWP48Pvy.js similarity index 88% rename from docs/assets/ColorButton.stories-BQutYKtU.js rename to docs/assets/ColorButton.stories-CWP48Pvy.js index 6460b971..79e69d23 100644 --- a/docs/assets/ColorButton.stories-BQutYKtU.js +++ b/docs/assets/ColorButton.stories-CWP48Pvy.js @@ -1 +1 @@ -import{j as d}from"./jsx-runtime-BTCK_S7S.js";import"./index-CBqU2yxZ.js";import{a as l}from"./chunk-WFFRPTHA-B2vgThZf.js";import{d as e}from"./index-DfmhmaGJ.js";import{B as a}from"./Button-Blq7Z6RX.js";import"./_commonjsHelpers-BosuxZz1.js";import"./preview-errors-CzpZmerH.js";import"./index-CKJfshIT.js";import"./v4-D8aEg3BZ.js";import"./mapValues-CZh2vnSw.js";import"./pickBy-CU2rOOKe.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-Bu_b4Pek.js";import"./index-Cw1G72V2.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./debounce-Bq1aTuh-.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getElementType-CckcRzoH.js";import"./Icon-2tEtgK8g.js";import"./Label-Cq1fb1cd.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./forEach-CXlln0XP.js";import"./Dimmer-D_gwaesu.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./index-DZGZymok.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./map-B4PnIEPz.js";const r=o=>d.jsx(a,{className:"color-button",onClick:o.onClick&&o.onClick.bind(void 0),style:{backgroundColor:o.color,cursor:o.onClick?"pointer":"default",height:o.height,width:o.width},title:"color-button"});r.defaultProps={height:void 0,onClick:void 0,width:void 0};r.__docgenInfo={description:"",methods:[],displayName:"ColorButton",props:{color:{required:!0,flowType:{name:"string"},description:""},height:{required:!1,flowType:{name:"number"},description:"",defaultValue:{value:"undefined",computed:!0}},onClick:{required:!1,flowType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:"",defaultValue:{value:"undefined",computed:!0}},width:{required:!1,flowType:{name:"number"},description:"",defaultValue:{value:"undefined",computed:!0}}}};const F={title:"Components/Semantic UI/ColorButton",decorators:[e.withKnobs]},t=()=>d.jsx(r,{color:e.color("Color","#e5e5e5e5"),height:e.number("Height",50),onClick:l("click"),width:e.number("Width",50)});t.__docgenInfo={description:"",methods:[],displayName:"Default"};var i,m,n;t.parameters={...t.parameters,docs:{...(i=t.parameters)==null?void 0:i.docs,source:{originalSource:"() => ",...(n=(m=t.parameters)==null?void 0:m.docs)==null?void 0:n.source}}};const G=["Default"];export{t as Default,G as __namedExportsOrder,F as default}; +import{j as d}from"./jsx-runtime-BTCK_S7S.js";import"./index-CBqU2yxZ.js";import{a as l}from"./chunk-WFFRPTHA-B2vgThZf.js";import{d as e}from"./index-CAen7T_W.js";import{B as a}from"./Button-Blq7Z6RX.js";import"./_commonjsHelpers-BosuxZz1.js";import"./preview-errors-CzpZmerH.js";import"./index-CKJfshIT.js";import"./v4-D8aEg3BZ.js";import"./mapValues-LQZI9uWW.js";import"./pickBy-Us6u5-To.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-DCkRKKtx.js";import"./index-Cw1G72V2.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./debounce-BkgZrIul.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getElementType-CckcRzoH.js";import"./Icon-2tEtgK8g.js";import"./Label-Cq1fb1cd.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./forEach-CXlln0XP.js";import"./Dimmer-D_gwaesu.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./index-DZGZymok.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./map-B4PnIEPz.js";const r=o=>d.jsx(a,{className:"color-button",onClick:o.onClick&&o.onClick.bind(void 0),style:{backgroundColor:o.color,cursor:o.onClick?"pointer":"default",height:o.height,width:o.width},title:"color-button"});r.defaultProps={height:void 0,onClick:void 0,width:void 0};r.__docgenInfo={description:"",methods:[],displayName:"ColorButton",props:{color:{required:!0,flowType:{name:"string"},description:""},height:{required:!1,flowType:{name:"number"},description:"",defaultValue:{value:"undefined",computed:!0}},onClick:{required:!1,flowType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:"",defaultValue:{value:"undefined",computed:!0}},width:{required:!1,flowType:{name:"number"},description:"",defaultValue:{value:"undefined",computed:!0}}}};const F={title:"Components/Semantic UI/ColorButton",decorators:[e.withKnobs]},t=()=>d.jsx(r,{color:e.color("Color","#e5e5e5e5"),height:e.number("Height",50),onClick:l("click"),width:e.number("Width",50)});t.__docgenInfo={description:"",methods:[],displayName:"Default"};var i,m,n;t.parameters={...t.parameters,docs:{...(i=t.parameters)==null?void 0:i.docs,source:{originalSource:"() => ",...(n=(m=t.parameters)==null?void 0:m.docs)==null?void 0:n.source}}};const G=["Default"];export{t as Default,G as __namedExportsOrder,F as default}; diff --git a/docs/assets/ColorPickerModal.stories-COMh_oAs.js b/docs/assets/ColorPickerModal.stories-ea_lVU2T.js similarity index 99% rename from docs/assets/ColorPickerModal.stories-COMh_oAs.js rename to docs/assets/ColorPickerModal.stories-ea_lVU2T.js index 664a3978..ea459644 100644 --- a/docs/assets/ColorPickerModal.stories-COMh_oAs.js +++ b/docs/assets/ColorPickerModal.stories-ea_lVU2T.js @@ -1,4 +1,4 @@ -import{j as H}from"./jsx-runtime-BTCK_S7S.js";import{r as k,R as o}from"./index-CBqU2yxZ.js";import{a as at}from"./chunk-WFFRPTHA-B2vgThZf.js";import{r as ir,d as Te}from"./index-DfmhmaGJ.js";import{a as or}from"./isString-VUkjdOh0.js";import{P as lr,R as sr,v as pr,D as hr,E as cr,b as ur}from"./mapValues-CZh2vnSw.js";import{a as fr}from"./isPlainObject-Bu_b4Pek.js";import{a as dr}from"./cloneDeep-kl2wD128.js";import{P as f}from"./index-D3ylJrlI.js";import{F as re,e as jt,i as gr,am as br,E as vr,a5 as zt,an as it,ao as mr,b as xr,c as yr,a as ot,Y as wr,d as lt,ai as Er,ap as Sr,aq as Cr,C as kr,a4 as _r}from"./getElementType-CckcRzoH.js";import{b as Gt}from"./_baseAssignValue-izmKBXUH.js";import{i as Rr}from"./isArrayLikeObject-CbXKTyfk.js";import{a as Or}from"./_baseSet-6y0qliU9.js";import{a as st}from"./toFinite-KQ8KevIC.js";import{f as Mr}from"./forEach-CXlln0XP.js";import{m as N}from"./map-B4PnIEPz.js";import{i as pt}from"./ModernAutoControlledComponent-DJBWk5EW.js";import{B as ht}from"./Button-Blq7Z6RX.js";import{M as Oe}from"./Modal-Bz2VEyQG.js";import{i as ct}from"./i18n-C8zWlANG.js";import{M as Fr}from"./ModalContext-Bu-D9kD-.js";import"./_commonjsHelpers-BosuxZz1.js";import"./preview-errors-CzpZmerH.js";import"./index-CKJfshIT.js";import"./v4-D8aEg3BZ.js";import"./pickBy-CU2rOOKe.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./index-Cw1G72V2.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./debounce-Bq1aTuh-.js";import"./extends-CCbyfPlC.js";import"./assertThisInitialized-B9jnkVVz.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./Icon-2tEtgK8g.js";import"./Label-Cq1fb1cd.js";import"./includes-CQoJOerW.js";import"./Dimmer-D_gwaesu.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./index-DZGZymok.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./index-BBpNyw-T.js";import"./_arrayReduce-CrxnWFSq.js";import"./isEmpty-Cyb9hIKi.js";import"./i18next-Sc0HEOoc.js";import"./toPropertyKey-hKuLU48H.js";import"./defineProperty-CCxoMnQV.js";import"./inherits-D5wXBZoG.js";import"./createClass-D2z1h_eG.js";import"./getPrototypeOf-BYVhAdwF.js";var ut=Object.create,Ar=function(){function t(){}return function(e){if(!re(e))return{};if(ut)return ut(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}();function Br(t){var e=[];if(t!=null)for(var r in Object(t))e.push(r);return e}var Pr=Object.prototype,Tr=Pr.hasOwnProperty;function Hr(t){if(!re(t))return Br(t);var e=jt(t),r=[];for(var n in t)n=="constructor"&&(e||!Tr.call(t,n))||r.push(n);return r}function Wt(t){return gr(t)?br(t,!0):Hr(t)}function $r(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r0&&arguments[0]!==void 0?arguments[0]:[],r=[];return(0,ln.default)(e,function(n){Array.isArray(n)?t(n).map(function(a){return r.push(a)}):(0,an.default)(n)?(0,rn.default)(n,function(a,i){a===!0&&r.push(i),r.push(i+"-"+a)}):(0,en.default)(n)&&r.push(n)}),r};de.default=sn;var ge={};Object.defineProperty(ge,"__esModule",{value:!0});ge.mergeClasses=void 0;var pn=De,hn=Ut(pn),cn=dr,un=Ut(cn),fn=Object.assign||function(t){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:[],n=e.default&&(0,un.default)(e.default)||{};return r.map(function(a){var i=e[a];return i&&(0,hn.default)(i,function(l,s){n[s]||(n[s]={}),n[s]=fn({},n[s],i[s])}),a}),n};ge.default=dn;var be={};Object.defineProperty(be,"__esModule",{value:!0});be.autoprefix=void 0;var gn=De,ft=vn(gn),bn=Object.assign||function(t){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:"span";return function(n){Cn(a,n);function a(){var i,l,s,p;Sn(this,a);for(var h=arguments.length,c=Array(h),u=0;u1&&arguments[1]!==void 0?arguments[1]:"span";return function(n){Fn(a,n);function a(){var i,l,s,p;Mn(this,a);for(var h=arguments.length,c=Array(h),u=0;u1&&arguments[1]!==void 0?arguments[1]:!0;n[l]=s};return e===0&&a("first-child"),e===r-1&&a("last-child"),(e===0||e%2===0)&&a("even"),Math.abs(e%2)===1&&a("odd"),a("nth-child",e),n};Le.default=Bn;Object.defineProperty(M,"__esModule",{value:!0});M.ReactCSS=M.loop=M.handleActive=je=M.handleHover=M.hover=void 0;var Pn=de,Tn=ne(Pn),Hn=ge,$n=ne(Hn),Nn=be,Dn=ne(Nn),Ln=ve,It=ne(Ln),jn=me,zn=ne(jn),Gn=Le,Wn=ne(Gn);function ne(t){return t&&t.__esModule?t:{default:t}}M.hover=It.default;var je=M.handleHover=It.default;M.handleActive=zn.default;M.loop=Wn.default;var Un=M.ReactCSS=function(e){for(var r=arguments.length,n=Array(r>1?r-1:0),a=1;as?g=1:g=Math.round(u*100/s)/100,r.a!==g)return{h:r.h,s:r.s,l:r.l,a:g,source:"rgb"}}else{var d=void 0;if(c<0?d=0:c>l?d=1:d=Math.round(c*100/l)/100,a!==d)return{h:r.h,s:r.s,l:r.l,a:d,source:"rgb"}}return null},Ae={},Vn=function(e,r,n,a){if(typeof document>"u"&&!a)return null;var i=a?new a:document.createElement("canvas");i.width=n*2,i.height=n*2;var l=i.getContext("2d");return l?(l.fillStyle=e,l.fillRect(0,0,i.width,i.height),l.fillStyle=r,l.fillRect(0,0,n,n),l.translate(n,n),l.fillRect(0,0,n,n),i.toDataURL()):null},Xn=function(e,r,n,a){var i=e+"-"+r+"-"+n+(a?"-server":"");if(Ae[i])return Ae[i];var l=Vn(e,r,n,a);return Ae[i]=l,l},bt=Object.assign||function(t){for(var e=1;e0&&arguments[0]!==void 0?arguments[0]:[],r=[];return(0,ln.default)(e,function(n){Array.isArray(n)?t(n).map(function(a){return r.push(a)}):(0,an.default)(n)?(0,rn.default)(n,function(a,i){a===!0&&r.push(i),r.push(i+"-"+a)}):(0,en.default)(n)&&r.push(n)}),r};de.default=sn;var ge={};Object.defineProperty(ge,"__esModule",{value:!0});ge.mergeClasses=void 0;var pn=De,hn=Ut(pn),cn=dr,un=Ut(cn),fn=Object.assign||function(t){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:[],n=e.default&&(0,un.default)(e.default)||{};return r.map(function(a){var i=e[a];return i&&(0,hn.default)(i,function(l,s){n[s]||(n[s]={}),n[s]=fn({},n[s],i[s])}),a}),n};ge.default=dn;var be={};Object.defineProperty(be,"__esModule",{value:!0});be.autoprefix=void 0;var gn=De,ft=vn(gn),bn=Object.assign||function(t){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:"span";return function(n){Cn(a,n);function a(){var i,l,s,p;Sn(this,a);for(var h=arguments.length,c=Array(h),u=0;u1&&arguments[1]!==void 0?arguments[1]:"span";return function(n){Fn(a,n);function a(){var i,l,s,p;Mn(this,a);for(var h=arguments.length,c=Array(h),u=0;u1&&arguments[1]!==void 0?arguments[1]:!0;n[l]=s};return e===0&&a("first-child"),e===r-1&&a("last-child"),(e===0||e%2===0)&&a("even"),Math.abs(e%2)===1&&a("odd"),a("nth-child",e),n};Le.default=Bn;Object.defineProperty(M,"__esModule",{value:!0});M.ReactCSS=M.loop=M.handleActive=je=M.handleHover=M.hover=void 0;var Pn=de,Tn=ne(Pn),Hn=ge,$n=ne(Hn),Nn=be,Dn=ne(Nn),Ln=ve,It=ne(Ln),jn=me,zn=ne(jn),Gn=Le,Wn=ne(Gn);function ne(t){return t&&t.__esModule?t:{default:t}}M.hover=It.default;var je=M.handleHover=It.default;M.handleActive=zn.default;M.loop=Wn.default;var Un=M.ReactCSS=function(e){for(var r=arguments.length,n=Array(r>1?r-1:0),a=1;as?g=1:g=Math.round(u*100/s)/100,r.a!==g)return{h:r.h,s:r.s,l:r.l,a:g,source:"rgb"}}else{var d=void 0;if(c<0?d=0:c>l?d=1:d=Math.round(c*100/l)/100,a!==d)return{h:r.h,s:r.s,l:r.l,a:d,source:"rgb"}}return null},Ae={},Vn=function(e,r,n,a){if(typeof document>"u"&&!a)return null;var i=a?new a:document.createElement("canvas");i.width=n*2,i.height=n*2;var l=i.getContext("2d");return l?(l.fillStyle=e,l.fillRect(0,0,i.width,i.height),l.fillStyle=r,l.fillRect(0,0,n,n),l.translate(n,n),l.fillRect(0,0,n,n),i.toDataURL()):null},Xn=function(e,r,n,a){var i=e+"-"+r+"-"+n+(a?"-server":"");if(Ae[i])return Ae[i];var l=Vn(e,r,n,a);return Ae[i]=l,l},bt=Object.assign||function(t){for(var e=1;e-1},la=function(e){return Number(String(e).replace(/%/g,""))},sa=1,w=function(t){ra(e,t);function e(r){ea(this,e);var n=ta(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return n.handleBlur=function(){n.state.blurValue&&n.setState({value:n.state.blurValue,blurValue:null})},n.handleChange=function(a){n.setUpdatedValue(a.target.value,a)},n.handleKeyDown=function(a){var i=la(a.target.value);if(!isNaN(i)&&oa(a.keyCode)){var l=n.getArrowOffset(),s=a.keyCode===Vt?i+l:i-l;n.setUpdatedValue(s,a)}},n.handleDrag=function(a){if(n.props.dragLabel){var i=Math.round(n.props.value+a.movementX);i>=0&&i<=n.props.dragMax&&n.props.onChange&&n.props.onChange(n.getValueObjectWithLabel(i),a)}},n.handleMouseDown=function(a){n.props.dragLabel&&(a.preventDefault(),n.handleDrag(a),window.addEventListener("mousemove",n.handleDrag),window.addEventListener("mouseup",n.handleMouseUp))},n.handleMouseUp=function(){n.unbindEventListeners()},n.unbindEventListeners=function(){window.removeEventListener("mousemove",n.handleDrag),window.removeEventListener("mouseup",n.handleMouseUp)},n.state={value:String(r.value).toUpperCase(),blurValue:String(r.value).toUpperCase()},n.inputId="rc-editable-input-"+sa++,n}return Jn(e,[{key:"componentDidUpdate",value:function(n,a){this.props.value!==this.state.value&&(n.value!==this.props.value||a.value!==this.state.value)&&(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(n){return Qn({},this.props.label,n)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||na}},{key:"setUpdatedValue",value:function(n,a){var i=this.props.label?this.getValueObjectWithLabel(n):n;this.props.onChange&&this.props.onChange(i,a),this.setState({value:n})}},{key:"render",value:function(){var n=this,a=v({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return o.createElement("div",{style:a.wrap},o.createElement("input",{id:this.inputId,style:a.input,ref:function(l){return n.input=l},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?o.createElement("label",{htmlFor:this.inputId,style:a.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),e}(k.PureComponent||k.Component),pa=function(e,r,n,a){var i=a.clientWidth,l=a.clientHeight,s=typeof e.pageX=="number"?e.pageX:e.touches[0].pageX,p=typeof e.pageY=="number"?e.pageY:e.touches[0].pageY,h=s-(a.getBoundingClientRect().left+window.pageXOffset),c=p-(a.getBoundingClientRect().top+window.pageYOffset);if(r==="vertical"){var u=void 0;if(c<0)u=359;else if(c>l)u=0;else{var g=-(c*100/l)+100;u=360*g/100}if(n.h!==u)return{h:u,s:n.s,l:n.l,a:n.a,source:"hsl"}}else{var d=void 0;if(h<0)d=0;else if(h>i)d=359;else{var m=h*100/i;d=360*m/100}if(n.h!==d)return{h:d,s:n.s,l:n.l,a:n.a,source:"hsl"}}return null},ha=function(){function t(e,r){for(var n=0;n{const[F,d]=c.useState(!1),{items:y}=m(a),r=c.useMemo(()=>n.flatten(n.map(y,s=>n.map(s.refinements,p=>({label:`${s.label}: ${p.label}`,onClick:()=>s.refine(p)})))),[y]),w=c.useMemo(()=>n.filter(r,(s,p)=>!a.limit||pd(!0)}),t.jsx(I,{items:r,open:F,onClose:()=>d(!1)})]})};u.defaultProps={limit:void 0};const f=u;u.__docgenInfo={description:"This component can be used to display the facets/refinements currently applied to an InstantSearch index.",methods:[],displayName:"CurrentFacets",props:{useCurrentRefinements:{required:!0,flowType:{name:"signature",type:"function",raw:"(props: any) => ({ items: Array })",signature:{arguments:[{name:"props",type:{name:"any"}}],return:{name:"signature",type:"object",raw:"{ items: Array }",signature:{properties:[{key:"items",value:{name:"Array",elements:[{name:"any"}],raw:"Array",required:!0}}]}}}},description:"Instant-Search hook to provide current refinements values."},limit:{required:!1,flowType:{name:"number"},description:"The maximum number of facets to display. If more facets are added, they will be accessible via modal.",defaultValue:{value:"undefined",computed:!0}}}};const we={title:"Components/Semantic UI/CurrentFacets",component:f,decorators:[_.withKnobs]},e=m=>({label:m,onClick:l(`click ${m}`)}),i=()=>t.jsx(f,{useCurrentRefinements:()=>({items:[{label:"Color",refine:l("refine"),refinements:[e("Red"),e("Blue"),e("Green")]}]})}),o=()=>t.jsx(f,{limit:3,useCurrentRefinements:()=>({items:[{label:"Color",refine:l("refine"),refinements:[e("Red"),e("Blue"),e("Green"),e("Purple"),e("Orange"),e("Yellow")]}]})});i.__docgenInfo={description:"",methods:[],displayName:"Default"};o.__docgenInfo={description:"",methods:[],displayName:"Limit"};var C,R,b;i.parameters={...i.parameters,docs:{...(C=i.parameters)==null?void 0:C.docs,source:{originalSource:`() => ({ +import{j as t}from"./jsx-runtime-BTCK_S7S.js";import{a as l}from"./chunk-WFFRPTHA-B2vgThZf.js";import{d as _}from"./index-CAen7T_W.js";import{r as c}from"./index-CBqU2yxZ.js";import{_ as n}from"./index-default-C_maRo4o.js";import{C as j}from"./CurrentFacetLabels-CMZ1g7IV.js";import{C as I}from"./CurrentFacetsModal-DDPlIXyS.js";import"./preview-errors-CzpZmerH.js";import"./index-CKJfshIT.js";import"./v4-D8aEg3BZ.js";import"./mapValues-LQZI9uWW.js";import"./_commonjsHelpers-BosuxZz1.js";import"./pickBy-Us6u5-To.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-DCkRKKtx.js";import"./index-Cw1G72V2.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./debounce-BkgZrIul.js";import"./Button-Blq7Z6RX.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getElementType-CckcRzoH.js";import"./Icon-2tEtgK8g.js";import"./Label-Cq1fb1cd.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./forEach-CXlln0XP.js";import"./Dimmer-D_gwaesu.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./index-DZGZymok.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./map-B4PnIEPz.js";import"./Modal-Bz2VEyQG.js";import"./index-BBpNyw-T.js";import"./_baseSet-6y0qliU9.js";import"./_baseAssignValue-izmKBXUH.js";import"./_arrayReduce-CrxnWFSq.js";import"./isEmpty-Cyb9hIKi.js";import"./i18n-C8zWlANG.js";import"./i18next-Sc0HEOoc.js";import"./toPropertyKey-hKuLU48H.js";import"./defineProperty-CCxoMnQV.js";import"./inherits-D5wXBZoG.js";import"./createClass-D2z1h_eG.js";import"./getPrototypeOf-BYVhAdwF.js";const u=({useCurrentRefinements:m,...a})=>{const[F,d]=c.useState(!1),{items:y}=m(a),r=c.useMemo(()=>n.flatten(n.map(y,s=>n.map(s.refinements,p=>({label:`${s.label}: ${p.label}`,onClick:()=>s.refine(p)})))),[y]),w=c.useMemo(()=>n.filter(r,(s,p)=>!a.limit||pd(!0)}),t.jsx(I,{items:r,open:F,onClose:()=>d(!1)})]})};u.defaultProps={limit:void 0};const f=u;u.__docgenInfo={description:"This component can be used to display the facets/refinements currently applied to an InstantSearch index.",methods:[],displayName:"CurrentFacets",props:{useCurrentRefinements:{required:!0,flowType:{name:"signature",type:"function",raw:"(props: any) => ({ items: Array })",signature:{arguments:[{name:"props",type:{name:"any"}}],return:{name:"signature",type:"object",raw:"{ items: Array }",signature:{properties:[{key:"items",value:{name:"Array",elements:[{name:"any"}],raw:"Array",required:!0}}]}}}},description:"Instant-Search hook to provide current refinements values."},limit:{required:!1,flowType:{name:"number"},description:"The maximum number of facets to display. If more facets are added, they will be accessible via modal.",defaultValue:{value:"undefined",computed:!0}}}};const we={title:"Components/Semantic UI/CurrentFacets",component:f,decorators:[_.withKnobs]},e=m=>({label:m,onClick:l(`click ${m}`)}),i=()=>t.jsx(f,{useCurrentRefinements:()=>({items:[{label:"Color",refine:l("refine"),refinements:[e("Red"),e("Blue"),e("Green")]}]})}),o=()=>t.jsx(f,{limit:3,useCurrentRefinements:()=>({items:[{label:"Color",refine:l("refine"),refinements:[e("Red"),e("Blue"),e("Green"),e("Purple"),e("Orange"),e("Yellow")]}]})});i.__docgenInfo={description:"",methods:[],displayName:"Default"};o.__docgenInfo={description:"",methods:[],displayName:"Limit"};var C,R,b;i.parameters={...i.parameters,docs:{...(C=i.parameters)==null?void 0:C.docs,source:{originalSource:`() => ({ items: [{ label: 'Color', refine: action('refine'), diff --git a/docs/assets/DataList-Ge7tGBgD.js b/docs/assets/DataList-DKTsnuj_.js similarity index 97% rename from docs/assets/DataList-Ge7tGBgD.js rename to docs/assets/DataList-DKTsnuj_.js index 06f60944..332acfe1 100644 --- a/docs/assets/DataList-Ge7tGBgD.js +++ b/docs/assets/DataList-DKTsnuj_.js @@ -1 +1 @@ -var b=Object.defineProperty;var P=(a,r,h)=>r in a?b(a,r,{enumerable:!0,configurable:!0,writable:!0,value:h}):a[r]=h;var d=(a,r,h)=>(P(a,typeof r!="symbol"?r+"":r,h),h);import{j as n}from"./jsx-runtime-BTCK_S7S.js";import{u as S}from"./index.es28-dE8xdd4L.js";import{r as y}from"./index-CBqU2yxZ.js";import{Y as I}from"./index.es3-D5uPylQL.js";import{u as E}from"./uuid-BH6G0oTz.js";import{_ as o}from"./index-default-C_maRo4o.js";import{M as f}from"./Message-3p6wyYpA.js";import{I as x}from"./Icon-2tEtgK8g.js";import{I as j}from"./Input--hQVCRQV.js";import{i as m}from"./i18n-C8zWlANG.js";import{T as g}from"./Toaster-C1YYqOUE.js";const A="DataList",F="{}",D="ascending",N="descending",T=a=>{var r;return r=class extends y.Component{constructor(t){super(t);d(this,"pollingInterval");this.state=this.initializeState(t)}componentDidMount(){this.props.polling&&(this.pollingInterval=setInterval(this.fetchData.bind(this),this.props.polling))}componentDidUpdate(t){t.saved!==this.props.saved&&this.props.saved&&this.setState({saved:this.props.saved},this.fetchData.bind(this))}componentWillUnmount(){this.pollingInterval&&clearInterval(this.pollingInterval)}afterDelete(){return this.state.items.length===1?this.setState(t=>({page:t.page-1>1?t.page-1:1}),this.fetchData.bind(this)):this.fetchData()}afterDeleteAll(){this.setState({page:1},this.fetchData.bind(this))}fetchData(){this.setSession(),this.setState({loading:!0},()=>{const{page:t,perPage:e,search:i,sortColumn:s,sortDirection:c}=this.state,p={...this.state.filters,page:t,search:i,per_page:e,sort_by:s,sort_direction:c};this.props.onLoad(p).then(({data:l})=>{const u=l[this.props.collectionName],{pages:v,count:C}=l.list;this.setState({count:C,items:u,page:t,pages:v,loading:!1})})})}getDefaultFilters(t){const e=[];return t.filters&&t.filters.defaults&&o.each(t.filters.defaults.filters,i=>{const s=o.findWhere(t.filters.props.filters,{key:i.key});s&&e.push(this.onCreateFilter({...s,...i}))}),{filters:e}}getSessionKey(){return this.props.session?`${A}.${this.props.session.key}`:null}initializeState(t){const e=this.restoreSession(),i=e.filters||this.getDefaultFilters(t),s=e.page||1,c=e.perPage||t.defaultPerPage||o.first(t.perPageOptions),p=e.search||t.defaultSearch||null,l=e.sortColumn||t.defaultSort||null,u=e.sortDirection||t.defaultSortDirection||null;return{count:0,error:null,filters:i,items:[],loading:!1,page:s,pages:1,perPage:c,saved:t.saved||!1,search:p,sortColumn:l,sortDirection:u}}isFilterActive(){let t=!1;return o.each(o.values(this.state.filters),e=>{I.isEmpty(e)||(t=!0)}),t}onClearSearch(t){var e,i,s;this.onSearchChange(t,{value:""}),(s=(i=(e=this.searchRef)==null?void 0:e.inputRef)==null?void 0:i.current)==null||s.focus(),this.onSearch()}onCreateFilter(t){return{...t,uid:E()}}onDelete(t){return this.props.onDelete?this.props.onDelete(t).then(this.afterDelete.bind(this)).catch(this.onError.bind(this)):Promise.resolve()}onDeleteAll(){return this.props.onDeleteAll?this.props.onDeleteAll().then(this.afterDeleteAll.bind(this)):Promise.resolve()}onError(t){return this.props.resolveErrors&&this.setState({error:t})}onFilterChange(t){return new Promise(e=>{this.props.filters&&this.props.filters.onChange&&this.props.filters.onChange(t),this.setState({filters:t,page:1},()=>{this.fetchData(),e()})})}onPageChange(t,{activePage:e}){this.setState({page:e},this.fetchData.bind(this))}onPerPageChange(t,{value:e}){this.setState({perPage:e},this.fetchData.bind(this))}onSave(t){return this.props.onSave?Promise.resolve(this.props.onSave(t)).then(()=>this.setState({saved:!0},this.fetchData.bind(this))):Promise.resolve()}onSearch(){this.setState({page:1},this.fetchData.bind(this))}onSearchChange(t,{value:e}){this.setState({search:e})}onSort(t,e,i=1){let s=e;s||(s=this.state.sortColumn===t&&this.state.sortDirection===D?N:D),this.setState({sortColumn:t,sortDirection:s,page:i},this.fetchData.bind(this))}onInit(t=1){this.setState({sortColumn:"",sortDirection:"",page:t},this.fetchData.bind(this))}render(){const{filters:t={}}=this.props,{component:e,props:i,showLabels:s}=t;return n.jsxs(n.Fragment,{children:[n.jsx(a,{...this.props,count:this.state.count,filters:{active:this.isFilterActive(),component:e,onChange:this.onFilterChange.bind(this),showLabels:s,props:{...i,onCreateFilter:this.onCreateFilter.bind(this),item:this.state.filters}},items:this.state.items,loading:this.state.loading,page:this.state.page,pages:this.state.pages,perPage:this.state.perPage,onDelete:this.onDelete.bind(this),onDeleteAll:this.onDeleteAll.bind(this),onPageChange:this.onPageChange.bind(this),onPerPageChange:this.onPerPageChange.bind(this),onSave:this.onSave.bind(this),onSort:this.onSort.bind(this),onInit:this.onInit.bind(this),renderSearch:this.renderSearch.bind(this),sortColumn:this.state.sortColumn,sortDirection:this.state.sortDirection}),this.state.saved&&n.jsxs(g,{onDismiss:()=>this.setState({saved:!1}),type:g.MessageTypes.positive,children:[n.jsx(f.Header,{content:m.t("Common.messages.save.header")}),n.jsx(f.Content,{content:m.t("Common.messages.save.content")})]}),this.state.error&&n.jsxs(g,{onDismiss:()=>this.setState({error:!1}),timeout:0,type:g.MessageTypes.negative,children:[n.jsx(f.Header,{content:m.t("Common.messages.error.header")}),n.jsx(f.List,{items:this.props.resolveErrors&&this.props.resolveErrors(this.state.error)})]})]})}renderSearch(){return this.props.searchable?n.jsx(j,{"aria-label":"Search",type:"text",icon:n.jsx(x,{link:!o.isEmpty(this.state.search),name:o.isEmpty(this.state.search)?"search":"times",onClick:this.onClearSearch.bind(this)}),input:{"aria-label":"search"},ref:t=>{this.searchRef=t},loading:this.state.loading,onKeyDown:S.clearSearchTimer.bind(this),onKeyUp:S.setSearchTimer.bind(this,this.onSearch.bind(this)),onChange:this.onSearchChange.bind(this),size:"small",value:this.state.search}):null}restoreSession(){const t=this.getSessionKey();if(!t)return{};const e=sessionStorage.getItem(t)||F;return JSON.parse(e)}setSession(){const t=this.getSessionKey();if(!t)return;const{filters:e,page:i,perPage:s,search:c,sortColumn:p,sortDirection:l}=this.state;sessionStorage.setItem(t,JSON.stringify({filters:e,page:i,perPage:s,search:c,sortColumn:p,sortDirection:l}))}},d(r,"defaultProps",{filters:{},searchable:!0}),r},H=T;export{D as S,N as a,H as u}; +var b=Object.defineProperty;var P=(a,r,h)=>r in a?b(a,r,{enumerable:!0,configurable:!0,writable:!0,value:h}):a[r]=h;var d=(a,r,h)=>(P(a,typeof r!="symbol"?r+"":r,h),h);import{j as n}from"./jsx-runtime-BTCK_S7S.js";import{u as S}from"./index.es28-Dp3-vHIY.js";import{r as y}from"./index-CBqU2yxZ.js";import{Y as I}from"./index.es3-Dgr_7mVc.js";import{u as E}from"./uuid-BH6G0oTz.js";import{_ as o}from"./index-default-C_maRo4o.js";import{M as f}from"./Message-3p6wyYpA.js";import{I as x}from"./Icon-2tEtgK8g.js";import{I as j}from"./Input--hQVCRQV.js";import{i as m}from"./i18n-C8zWlANG.js";import{T as g}from"./Toaster-C1YYqOUE.js";const A="DataList",F="{}",D="ascending",N="descending",T=a=>{var r;return r=class extends y.Component{constructor(t){super(t);d(this,"pollingInterval");this.state=this.initializeState(t)}componentDidMount(){this.props.polling&&(this.pollingInterval=setInterval(this.fetchData.bind(this),this.props.polling))}componentDidUpdate(t){t.saved!==this.props.saved&&this.props.saved&&this.setState({saved:this.props.saved},this.fetchData.bind(this))}componentWillUnmount(){this.pollingInterval&&clearInterval(this.pollingInterval)}afterDelete(){return this.state.items.length===1?this.setState(t=>({page:t.page-1>1?t.page-1:1}),this.fetchData.bind(this)):this.fetchData()}afterDeleteAll(){this.setState({page:1},this.fetchData.bind(this))}fetchData(){this.setSession(),this.setState({loading:!0},()=>{const{page:t,perPage:e,search:i,sortColumn:s,sortDirection:c}=this.state,p={...this.state.filters,page:t,search:i,per_page:e,sort_by:s,sort_direction:c};this.props.onLoad(p).then(({data:l})=>{const u=l[this.props.collectionName],{pages:v,count:C}=l.list;this.setState({count:C,items:u,page:t,pages:v,loading:!1})})})}getDefaultFilters(t){const e=[];return t.filters&&t.filters.defaults&&o.each(t.filters.defaults.filters,i=>{const s=o.findWhere(t.filters.props.filters,{key:i.key});s&&e.push(this.onCreateFilter({...s,...i}))}),{filters:e}}getSessionKey(){return this.props.session?`${A}.${this.props.session.key}`:null}initializeState(t){const e=this.restoreSession(),i=e.filters||this.getDefaultFilters(t),s=e.page||1,c=e.perPage||t.defaultPerPage||o.first(t.perPageOptions),p=e.search||t.defaultSearch||null,l=e.sortColumn||t.defaultSort||null,u=e.sortDirection||t.defaultSortDirection||null;return{count:0,error:null,filters:i,items:[],loading:!1,page:s,pages:1,perPage:c,saved:t.saved||!1,search:p,sortColumn:l,sortDirection:u}}isFilterActive(){let t=!1;return o.each(o.values(this.state.filters),e=>{I.isEmpty(e)||(t=!0)}),t}onClearSearch(t){var e,i,s;this.onSearchChange(t,{value:""}),(s=(i=(e=this.searchRef)==null?void 0:e.inputRef)==null?void 0:i.current)==null||s.focus(),this.onSearch()}onCreateFilter(t){return{...t,uid:E()}}onDelete(t){return this.props.onDelete?this.props.onDelete(t).then(this.afterDelete.bind(this)).catch(this.onError.bind(this)):Promise.resolve()}onDeleteAll(){return this.props.onDeleteAll?this.props.onDeleteAll().then(this.afterDeleteAll.bind(this)):Promise.resolve()}onError(t){return this.props.resolveErrors&&this.setState({error:t})}onFilterChange(t){return new Promise(e=>{this.props.filters&&this.props.filters.onChange&&this.props.filters.onChange(t),this.setState({filters:t,page:1},()=>{this.fetchData(),e()})})}onPageChange(t,{activePage:e}){this.setState({page:e},this.fetchData.bind(this))}onPerPageChange(t,{value:e}){this.setState({perPage:e},this.fetchData.bind(this))}onSave(t){return this.props.onSave?Promise.resolve(this.props.onSave(t)).then(()=>this.setState({saved:!0},this.fetchData.bind(this))):Promise.resolve()}onSearch(){this.setState({page:1},this.fetchData.bind(this))}onSearchChange(t,{value:e}){this.setState({search:e})}onSort(t,e,i=1){let s=e;s||(s=this.state.sortColumn===t&&this.state.sortDirection===D?N:D),this.setState({sortColumn:t,sortDirection:s,page:i},this.fetchData.bind(this))}onInit(t=1){this.setState({sortColumn:"",sortDirection:"",page:t},this.fetchData.bind(this))}render(){const{filters:t={}}=this.props,{component:e,props:i,showLabels:s}=t;return n.jsxs(n.Fragment,{children:[n.jsx(a,{...this.props,count:this.state.count,filters:{active:this.isFilterActive(),component:e,onChange:this.onFilterChange.bind(this),showLabels:s,props:{...i,onCreateFilter:this.onCreateFilter.bind(this),item:this.state.filters}},items:this.state.items,loading:this.state.loading,page:this.state.page,pages:this.state.pages,perPage:this.state.perPage,onDelete:this.onDelete.bind(this),onDeleteAll:this.onDeleteAll.bind(this),onPageChange:this.onPageChange.bind(this),onPerPageChange:this.onPerPageChange.bind(this),onSave:this.onSave.bind(this),onSort:this.onSort.bind(this),onInit:this.onInit.bind(this),renderSearch:this.renderSearch.bind(this),sortColumn:this.state.sortColumn,sortDirection:this.state.sortDirection}),this.state.saved&&n.jsxs(g,{onDismiss:()=>this.setState({saved:!1}),type:g.MessageTypes.positive,children:[n.jsx(f.Header,{content:m.t("Common.messages.save.header")}),n.jsx(f.Content,{content:m.t("Common.messages.save.content")})]}),this.state.error&&n.jsxs(g,{onDismiss:()=>this.setState({error:!1}),timeout:0,type:g.MessageTypes.negative,children:[n.jsx(f.Header,{content:m.t("Common.messages.error.header")}),n.jsx(f.List,{items:this.props.resolveErrors&&this.props.resolveErrors(this.state.error)})]})]})}renderSearch(){return this.props.searchable?n.jsx(j,{"aria-label":"Search",type:"text",icon:n.jsx(x,{link:!o.isEmpty(this.state.search),name:o.isEmpty(this.state.search)?"search":"times",onClick:this.onClearSearch.bind(this)}),input:{"aria-label":"search"},ref:t=>{this.searchRef=t},loading:this.state.loading,onKeyDown:S.clearSearchTimer.bind(this),onKeyUp:S.setSearchTimer.bind(this,this.onSearch.bind(this)),onChange:this.onSearchChange.bind(this),size:"small",value:this.state.search}):null}restoreSession(){const t=this.getSessionKey();if(!t)return{};const e=sessionStorage.getItem(t)||F;return JSON.parse(e)}setSession(){const t=this.getSessionKey();if(!t)return;const{filters:e,page:i,perPage:s,search:c,sortColumn:p,sortDirection:l}=this.state;sessionStorage.setItem(t,JSON.stringify({filters:e,page:i,perPage:s,search:c,sortColumn:p,sortDirection:l}))}},d(r,"defaultProps",{filters:{},searchable:!0}),r},H=T;export{D as S,N as a,H as u}; diff --git a/docs/assets/DataTable-CZodmOBN.js b/docs/assets/DataTable-Cu5azNeI.js similarity index 99% rename from docs/assets/DataTable-CZodmOBN.js rename to docs/assets/DataTable-Cu5azNeI.js index 6a6249bb..8841318a 100644 --- a/docs/assets/DataTable-CZodmOBN.js +++ b/docs/assets/DataTable-Cu5azNeI.js @@ -1,4 +1,4 @@ -var C=Object.defineProperty;var q=(l,o,e)=>o in l?C(l,o,{enumerable:!0,configurable:!0,writable:!0,value:e}):l[o]=e;var c=(l,o,e)=>(q(l,typeof o!="symbol"?o+"":o,e),e);import{j as t}from"./jsx-runtime-BTCK_S7S.js";import{o as h}from"./index.es28-dE8xdd4L.js";import{r as g}from"./index-CBqU2yxZ.js";import{Y as w}from"./index.es3-D5uPylQL.js";import{T as i}from"./Table-Xx3vjhN9.js";import{B as x}from"./Button-Blq7Z6RX.js";import{L as T}from"./Loader-CooidObp.js";import{C as b}from"./Checkbox-C9uAfnsM.js";import{P as R}from"./Popup-BP01NTlV.js";import{_ as d}from"./index-default-C_maRo4o.js";import{i as u}from"./i18n-C8zWlANG.js";import{I as E}from"./Icon-2tEtgK8g.js";import{D as y}from"./Dropdown-Di2cPjwR.js";import{D as S}from"./Draggable-KQRXc-DM.js";import{u as j}from"./List-B05DD_Os.js";import{R as P}from"./Portal-DvhHJPzU.js";const v=l=>t.jsx("div",{className:"column-resize",onMouseDown:l.onMouseDown.bind(void 0),role:"presentation",children:" "});v.__docgenInfo={description:"",methods:[],displayName:"ColumnResize",props:{onMouseDown:{required:!0,flowType:{name:"signature",type:"function",raw:"(e: MouseEvent) => void",signature:{arguments:[{name:"e",type:{name:"MouseEvent"}}],return:{name:"void"}}},description:""}}};const A=l=>{var o;return o=class extends g.Component{constructor(e){super(e),this.state={columns:e.columns}}componentDidUpdate(e){w.isEqual(e.columns,this.props.columns)||this.setState({columns:this.props.columns})}onColumnCheckbox(e){this.setState(n=>({columns:d.map(n.columns,a=>a.name===e.name?{...a,hidden:!a.hidden}:a)}))}onDrag(e,n){this.setState(a=>{const r=[],s=[];d.each(a.columns,(m,k)=>{m.label&&m.label.length?r.push(m):s.push({index:k,column:m})});const p=r[e];return r.splice(e,1),r.splice(n,0,p),d.each(s,m=>r.splice(m.index,0,m.column)),{columns:r}})}render(){return t.jsx(l,{...this.props,className:`data-table-column-selector ${this.props.className}`,columns:this.state.columns,renderListHeader:this.renderHeader.bind(this)})}renderHeader(){return this.props.configurable||this.props.renderListHeader?t.jsxs(t.Fragment,{children:[this.props.renderListHeader&&this.props.renderListHeader(),this.props.configurable&&t.jsx(y,{"aria-label":"Select Columns",basic:!0,button:!0,icon:"cog",className:"icon configure-button open-right",closeOnBlur:!1,children:t.jsx(y.Menu,{children:this.state.columns.filter(e=>e.label&&e.label.length).map((e,n)=>t.jsx(S,{id:e.name,index:n,onDrag:this.onDrag.bind(this),children:t.jsxs(y.Item,{"aria-dropeffect":"move",onClick:a=>a.stopPropagation(),children:[t.jsx(E,{name:"bars"}),t.jsx(b,{"aria-label":"Select Column",checked:!e.hidden,label:e.label,onClick:this.onColumnCheckbox.bind(this,e)})]})},e.name))})})]}):null}},c(o,"defaultProps",{className:""}),o};class f extends g.Component{constructor(e){super(e);c(this,"columnRefs");c(this,"onClick");c(this,"onMouseMove");c(this,"onMouseUp");this.state={resize:null,activePanel:null},this.initializeColumnRefs(),this.onClick=this.onPreventClick.bind(this),this.onMouseMove=this.onColumnResize.bind(this),this.onMouseUp=this.afterColumnResize.bind(this)}afterColumnResize(){this.state.resize&&h.isBrowser()&&(document.addEventListener("click",this.onClick,!0),this.setState({resize:void 0}))}initializeColumnRefs(){this.columnRefs={},d.each(this.props.columns,e=>{this.columnRefs[e.name]=g.createRef()})}componentDidMount(){h.isBrowser()&&(document.addEventListener("mousemove",this.onMouseMove),document.addEventListener("mouseup",this.onMouseUp))}componentDidUpdate(e){w.isEqual(e.columns,this.props.columns)||this.initializeColumnRefs()}componentWillUnmount(){h.isBrowser()&&(document.removeEventListener("mousemove",this.onMouseMove),document.removeEventListener("mouseup",this.onMouseUp))}getColumnCount(){let e=this.props.columns.length;return this.props.actions&&this.props.actions.length&&(e+=1),e}onColumnResize(e){const{resize:n}=this.state;if(n){const{columnRef:a,offset:r}=n;a.current.style.width=`${r+e.pageX}px`}}onPreventClick(e){e.stopPropagation(),h.isBrowser()&&document.removeEventListener("click",this.onClick,!0)}onSelectAll(e){let n;e?n=[...this.props.items||[]]:n=d.reject(this.props.items,this.props.isRowSelected.bind(this)),d.each(n,this.props.onRowSelect&&this.props.onRowSelect.bind(this))}render(){return t.jsxs(i,{className:"data-table",...this.props.tableProps,children:[t.jsx(i.Header,{children:t.jsxs(i.Row,{children:[this.renderSelectHeader(),this.props.columns.map(this.renderHeaderCell.bind(this)),this.renderActionsHeader()]})}),t.jsxs(i.Body,{children:[this.props.items&&this.props.items.map(this.renderItem.bind(this)),this.renderEmptyTableRow(),this.renderLoading()]})]})}renderActionButton(e,n,a){if(a.render)return a.render(e,n);const r=t.jsx(x,{"aria-label":a.name,basic:!0,compact:!0,color:a.color,icon:a.icon,onClick:a.onClick&&a.onClick.bind(this,e),title:a.title},`${a.name}-${n}`);if(a.popup){const{content:s,title:p}=a.popup;return t.jsx(R,{content:s,header:p,hideOnScroll:!0,mouseEnterDelay:500,position:"top right",trigger:r})}return r}renderActions(e,n){if(!(this.props.actions&&this.props.actions.length))return null;const a=this.props.actions.filter(r=>!r.accept||r.accept(e)).map(r=>{let s={};return r.name==="edit"?s={popup:{title:u.t("DataTable.actions.edit.title"),content:u.t("DataTable.actions.edit.content")}}:r.name==="copy"?s={popup:{title:u.t("DataTable.actions.copy.title"),content:u.t("DataTable.actions.copy.content")}}:r.name==="delete"&&(s={popup:{title:u.t("DataTable.actions.delete.title"),content:u.t("DataTable.actions.delete.content")}}),d.defaults(r,s)});return t.jsx(i.Cell,{className:"actions-cell",children:a.map(this.renderActionButton.bind(this,e,n))},n)}renderActionsHeader(){return this.props.actions&&this.props.actions.length?t.jsx(i.HeaderCell,{children:u.t("DataTable.columns.actions")}):null}renderCell(e,n){if(n.hidden)return null;let a;return n.render?a=n.render(e):n.resolve?a=n.resolve(e):a=e[n.name],t.jsx(i.Cell,{className:n.className,children:a},`${e.id}-${n.name}`)}renderEmptyTableRow(){return this.props.loading||this.props.items&&this.props.items.length?null:this.props.renderEmptyRow?this.props.renderEmptyRow():t.jsx(i.Row,{children:t.jsx(i.Cell,{colSpan:this.getColumnCount(),textAlign:"center",children:t.jsx("div",{className:"empty-container",children:this.props.renderEmptyMessage()})})})}renderHeaderCell(e){return e.hidden?null:e.renderHeader?e.renderHeader():t.jsx(P,{innerRef:this.columnRefs[e.name],children:t.jsxs(i.HeaderCell,{sorted:this.props.sortColumn===e.name?this.props.sortDirection:null,onClick:()=>this.props.onColumnClick(e),children:[e.label,t.jsx(v,{onMouseDown:n=>{const a=this.columnRefs[e.name],r=a.current.offsetWidth-n.pageX;this.setState({resize:{columnRef:a,offset:r}})}})]},e.name)})}renderItem(e,n){const a=[this.renderSelectCheckbox(e,n),this.props.columns.map(this.renderCell.bind(this,e)),this.renderActions(e,n)],r=s=>{s.target.nodeName==="TD"&&this.setState(p=>({activePanel:p.activePanel===e.id?"":e.id}))};return this.props.renderItem?this.props.renderItem(e,n,a):t.jsxs(t.Fragment,{children:[t.jsx(i.Row,{onClick:this.props.expandableRows?r:()=>{},className:this.props.expandableRows?"expandable":"",children:a},n),this.props.expandableRows&&t.jsx(i.Row,{className:this.state.activePanel===e.id?"expanded-panel":"hidden",children:this.props.expandPanel&&this.props.expandPanel(e,this.state.activePanel)})]})}renderLoading(){return this.props.loading?t.jsx(i.Row,{children:t.jsx(i.Cell,{colSpan:this.getColumnCount(),textAlign:"center",children:t.jsx(T,{active:!0,content:u.t("DataTable.loading"),inline:!0})})}):null}renderSelectCheckbox(e,n){return this.props.selectable&&this.props.onRowSelect&&this.props.isRowSelected?t.jsx(i.Cell,{className:"select-cell",children:t.jsx(b,{onClick:this.props.onRowSelect.bind(this,e),checked:this.props.isRowSelected(e)})},`select-cell-${n}`):null}renderSelectHeader(){if(!this.props.selectable)return null;const e=this.props.items&&this.props.items.length&&d.every(this.props.items,this.props.isRowSelected.bind(this));return t.jsx(i.HeaderCell,{className:"select-cell",children:t.jsx(b,{onClick:this.onSelectAll.bind(this,e),checked:e})})}}c(f,"defaultProps");f.defaultProps={actions:void 0,addButton:{location:"top",color:"green"},buttons:[],count:0,className:"",csvExportButton:void 0,expandableRows:!1,expandPanel:void 0,filters:void 0,items:[],loading:!1,modal:void 0,page:1,pages:1,onColumnClick:()=>{},onCopy:void 0,onPageChange:()=>{},renderDeleteModal:void 0,renderEmptyRow:void 0,renderSearch:void 0,renderItem:void 0,showRecordCount:!1,sortColumn:void 0,sortDirection:void 0};const Y=A(j(f));f.__docgenInfo={description:"",methods:[{name:"afterColumnResize",docblock:`If the resize object is present on the state, sets the capture click handler on the document and +var C=Object.defineProperty;var q=(l,o,e)=>o in l?C(l,o,{enumerable:!0,configurable:!0,writable:!0,value:e}):l[o]=e;var c=(l,o,e)=>(q(l,typeof o!="symbol"?o+"":o,e),e);import{j as t}from"./jsx-runtime-BTCK_S7S.js";import{o as h}from"./index.es28-Dp3-vHIY.js";import{r as g}from"./index-CBqU2yxZ.js";import{Y as w}from"./index.es3-Dgr_7mVc.js";import{T as i}from"./Table-Xx3vjhN9.js";import{B as x}from"./Button-Blq7Z6RX.js";import{L as T}from"./Loader-CooidObp.js";import{C as b}from"./Checkbox-C9uAfnsM.js";import{P as R}from"./Popup-BP01NTlV.js";import{_ as d}from"./index-default-C_maRo4o.js";import{i as u}from"./i18n-C8zWlANG.js";import{I as E}from"./Icon-2tEtgK8g.js";import{D as y}from"./Dropdown-Di2cPjwR.js";import{D as S}from"./Draggable-KQRXc-DM.js";import{u as j}from"./List-tmAiyZhD.js";import{R as P}from"./Portal-DvhHJPzU.js";const v=l=>t.jsx("div",{className:"column-resize",onMouseDown:l.onMouseDown.bind(void 0),role:"presentation",children:" "});v.__docgenInfo={description:"",methods:[],displayName:"ColumnResize",props:{onMouseDown:{required:!0,flowType:{name:"signature",type:"function",raw:"(e: MouseEvent) => void",signature:{arguments:[{name:"e",type:{name:"MouseEvent"}}],return:{name:"void"}}},description:""}}};const A=l=>{var o;return o=class extends g.Component{constructor(e){super(e),this.state={columns:e.columns}}componentDidUpdate(e){w.isEqual(e.columns,this.props.columns)||this.setState({columns:this.props.columns})}onColumnCheckbox(e){this.setState(n=>({columns:d.map(n.columns,a=>a.name===e.name?{...a,hidden:!a.hidden}:a)}))}onDrag(e,n){this.setState(a=>{const r=[],s=[];d.each(a.columns,(m,k)=>{m.label&&m.label.length?r.push(m):s.push({index:k,column:m})});const p=r[e];return r.splice(e,1),r.splice(n,0,p),d.each(s,m=>r.splice(m.index,0,m.column)),{columns:r}})}render(){return t.jsx(l,{...this.props,className:`data-table-column-selector ${this.props.className}`,columns:this.state.columns,renderListHeader:this.renderHeader.bind(this)})}renderHeader(){return this.props.configurable||this.props.renderListHeader?t.jsxs(t.Fragment,{children:[this.props.renderListHeader&&this.props.renderListHeader(),this.props.configurable&&t.jsx(y,{"aria-label":"Select Columns",basic:!0,button:!0,icon:"cog",className:"icon configure-button open-right",closeOnBlur:!1,children:t.jsx(y.Menu,{children:this.state.columns.filter(e=>e.label&&e.label.length).map((e,n)=>t.jsx(S,{id:e.name,index:n,onDrag:this.onDrag.bind(this),children:t.jsxs(y.Item,{"aria-dropeffect":"move",onClick:a=>a.stopPropagation(),children:[t.jsx(E,{name:"bars"}),t.jsx(b,{"aria-label":"Select Column",checked:!e.hidden,label:e.label,onClick:this.onColumnCheckbox.bind(this,e)})]})},e.name))})})]}):null}},c(o,"defaultProps",{className:""}),o};class f extends g.Component{constructor(e){super(e);c(this,"columnRefs");c(this,"onClick");c(this,"onMouseMove");c(this,"onMouseUp");this.state={resize:null,activePanel:null},this.initializeColumnRefs(),this.onClick=this.onPreventClick.bind(this),this.onMouseMove=this.onColumnResize.bind(this),this.onMouseUp=this.afterColumnResize.bind(this)}afterColumnResize(){this.state.resize&&h.isBrowser()&&(document.addEventListener("click",this.onClick,!0),this.setState({resize:void 0}))}initializeColumnRefs(){this.columnRefs={},d.each(this.props.columns,e=>{this.columnRefs[e.name]=g.createRef()})}componentDidMount(){h.isBrowser()&&(document.addEventListener("mousemove",this.onMouseMove),document.addEventListener("mouseup",this.onMouseUp))}componentDidUpdate(e){w.isEqual(e.columns,this.props.columns)||this.initializeColumnRefs()}componentWillUnmount(){h.isBrowser()&&(document.removeEventListener("mousemove",this.onMouseMove),document.removeEventListener("mouseup",this.onMouseUp))}getColumnCount(){let e=this.props.columns.length;return this.props.actions&&this.props.actions.length&&(e+=1),e}onColumnResize(e){const{resize:n}=this.state;if(n){const{columnRef:a,offset:r}=n;a.current.style.width=`${r+e.pageX}px`}}onPreventClick(e){e.stopPropagation(),h.isBrowser()&&document.removeEventListener("click",this.onClick,!0)}onSelectAll(e){let n;e?n=[...this.props.items||[]]:n=d.reject(this.props.items,this.props.isRowSelected.bind(this)),d.each(n,this.props.onRowSelect&&this.props.onRowSelect.bind(this))}render(){return t.jsxs(i,{className:"data-table",...this.props.tableProps,children:[t.jsx(i.Header,{children:t.jsxs(i.Row,{children:[this.renderSelectHeader(),this.props.columns.map(this.renderHeaderCell.bind(this)),this.renderActionsHeader()]})}),t.jsxs(i.Body,{children:[this.props.items&&this.props.items.map(this.renderItem.bind(this)),this.renderEmptyTableRow(),this.renderLoading()]})]})}renderActionButton(e,n,a){if(a.render)return a.render(e,n);const r=t.jsx(x,{"aria-label":a.name,basic:!0,compact:!0,color:a.color,icon:a.icon,onClick:a.onClick&&a.onClick.bind(this,e),title:a.title},`${a.name}-${n}`);if(a.popup){const{content:s,title:p}=a.popup;return t.jsx(R,{content:s,header:p,hideOnScroll:!0,mouseEnterDelay:500,position:"top right",trigger:r})}return r}renderActions(e,n){if(!(this.props.actions&&this.props.actions.length))return null;const a=this.props.actions.filter(r=>!r.accept||r.accept(e)).map(r=>{let s={};return r.name==="edit"?s={popup:{title:u.t("DataTable.actions.edit.title"),content:u.t("DataTable.actions.edit.content")}}:r.name==="copy"?s={popup:{title:u.t("DataTable.actions.copy.title"),content:u.t("DataTable.actions.copy.content")}}:r.name==="delete"&&(s={popup:{title:u.t("DataTable.actions.delete.title"),content:u.t("DataTable.actions.delete.content")}}),d.defaults(r,s)});return t.jsx(i.Cell,{className:"actions-cell",children:a.map(this.renderActionButton.bind(this,e,n))},n)}renderActionsHeader(){return this.props.actions&&this.props.actions.length?t.jsx(i.HeaderCell,{children:u.t("DataTable.columns.actions")}):null}renderCell(e,n){if(n.hidden)return null;let a;return n.render?a=n.render(e):n.resolve?a=n.resolve(e):a=e[n.name],t.jsx(i.Cell,{className:n.className,children:a},`${e.id}-${n.name}`)}renderEmptyTableRow(){return this.props.loading||this.props.items&&this.props.items.length?null:this.props.renderEmptyRow?this.props.renderEmptyRow():t.jsx(i.Row,{children:t.jsx(i.Cell,{colSpan:this.getColumnCount(),textAlign:"center",children:t.jsx("div",{className:"empty-container",children:this.props.renderEmptyMessage()})})})}renderHeaderCell(e){return e.hidden?null:e.renderHeader?e.renderHeader():t.jsx(P,{innerRef:this.columnRefs[e.name],children:t.jsxs(i.HeaderCell,{sorted:this.props.sortColumn===e.name?this.props.sortDirection:null,onClick:()=>this.props.onColumnClick(e),children:[e.label,t.jsx(v,{onMouseDown:n=>{const a=this.columnRefs[e.name],r=a.current.offsetWidth-n.pageX;this.setState({resize:{columnRef:a,offset:r}})}})]},e.name)})}renderItem(e,n){const a=[this.renderSelectCheckbox(e,n),this.props.columns.map(this.renderCell.bind(this,e)),this.renderActions(e,n)],r=s=>{s.target.nodeName==="TD"&&this.setState(p=>({activePanel:p.activePanel===e.id?"":e.id}))};return this.props.renderItem?this.props.renderItem(e,n,a):t.jsxs(t.Fragment,{children:[t.jsx(i.Row,{onClick:this.props.expandableRows?r:()=>{},className:this.props.expandableRows?"expandable":"",children:a},n),this.props.expandableRows&&t.jsx(i.Row,{className:this.state.activePanel===e.id?"expanded-panel":"hidden",children:this.props.expandPanel&&this.props.expandPanel(e,this.state.activePanel)})]})}renderLoading(){return this.props.loading?t.jsx(i.Row,{children:t.jsx(i.Cell,{colSpan:this.getColumnCount(),textAlign:"center",children:t.jsx(T,{active:!0,content:u.t("DataTable.loading"),inline:!0})})}):null}renderSelectCheckbox(e,n){return this.props.selectable&&this.props.onRowSelect&&this.props.isRowSelected?t.jsx(i.Cell,{className:"select-cell",children:t.jsx(b,{onClick:this.props.onRowSelect.bind(this,e),checked:this.props.isRowSelected(e)})},`select-cell-${n}`):null}renderSelectHeader(){if(!this.props.selectable)return null;const e=this.props.items&&this.props.items.length&&d.every(this.props.items,this.props.isRowSelected.bind(this));return t.jsx(i.HeaderCell,{className:"select-cell",children:t.jsx(b,{onClick:this.onSelectAll.bind(this,e),checked:e})})}}c(f,"defaultProps");f.defaultProps={actions:void 0,addButton:{location:"top",color:"green"},buttons:[],count:0,className:"",csvExportButton:void 0,expandableRows:!1,expandPanel:void 0,filters:void 0,items:[],loading:!1,modal:void 0,page:1,pages:1,onColumnClick:()=>{},onCopy:void 0,onPageChange:()=>{},renderDeleteModal:void 0,renderEmptyRow:void 0,renderSearch:void 0,renderItem:void 0,showRecordCount:!1,sortColumn:void 0,sortDirection:void 0};const Y=A(j(f));f.__docgenInfo={description:"",methods:[{name:"afterColumnResize",docblock:`If the resize object is present on the state, sets the capture click handler on the document and clears the resize object on the state.`,modifiers:[],params:[],returns:null,description:`If the resize object is present on the state, sets the capture click handler on the document and clears the resize object on the state.`},{name:"initializeColumnRefs",docblock:"Initializes a ref for each table column.",modifiers:[],params:[],returns:null,description:"Initializes a ref for each table column."},{name:"getColumnCount",docblock:`Returns the actual column count. This will be the number of columns +1 if the table allows actions. diff --git a/docs/assets/DataTable.stories-DL_WlDxA.js b/docs/assets/DataTable.stories-CTK1Iy3Y.js similarity index 93% rename from docs/assets/DataTable.stories-DL_WlDxA.js rename to docs/assets/DataTable.stories-CTK1Iy3Y.js index 3e8de94a..96288630 100644 --- a/docs/assets/DataTable.stories-DL_WlDxA.js +++ b/docs/assets/DataTable.stories-CTK1Iy3Y.js @@ -1,4 +1,4 @@ -import{j as e}from"./jsx-runtime-BTCK_S7S.js";import"./index-CBqU2yxZ.js";import{a as o}from"./chunk-WFFRPTHA-B2vgThZf.js";import{d as g}from"./index-DfmhmaGJ.js";import{C as J}from"./Confirm-Dw9rt56R.js";import{B as q}from"./Button-Blq7Z6RX.js";import{H as L}from"./Header-BJ3NNdPz.js";import{M as i}from"./Modal-Bz2VEyQG.js";import{D as t}from"./DataTable-CZodmOBN.js";import{u as n}from"./DragDrop-ryAVAQMJ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./preview-errors-CzpZmerH.js";import"./index-CKJfshIT.js";import"./v4-D8aEg3BZ.js";import"./mapValues-CZh2vnSw.js";import"./pickBy-CU2rOOKe.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-Bu_b4Pek.js";import"./index-Cw1G72V2.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./debounce-Bq1aTuh-.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./Transition-DSFEXhCu.js";import"./includes-CQoJOerW.js";import"./getElementType-CckcRzoH.js";import"./toFinite-KQ8KevIC.js";import"./forEach-CXlln0XP.js";import"./_baseAssignValue-izmKBXUH.js";import"./filter-CVNi8iPS.js";import"./Icon-2tEtgK8g.js";import"./Label-Cq1fb1cd.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./Dimmer-D_gwaesu.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./index-DZGZymok.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./map-B4PnIEPz.js";import"./index-BBpNyw-T.js";import"./_baseSet-6y0qliU9.js";import"./_arrayReduce-CrxnWFSq.js";import"./isEmpty-Cyb9hIKi.js";import"./index.es28-dE8xdd4L.js";import"./iframe-ovyJW9VA.js";import"../sb-preview/runtime.js";import"./index.es3-D5uPylQL.js";import"./Table-Xx3vjhN9.js";import"./Loader-CooidObp.js";import"./Checkbox-C9uAfnsM.js";import"./Popup-BP01NTlV.js";import"./createClass-D2z1h_eG.js";import"./toPropertyKey-hKuLU48H.js";import"./index-default-C_maRo4o.js";import"./i18n-C8zWlANG.js";import"./i18next-Sc0HEOoc.js";import"./defineProperty-CCxoMnQV.js";import"./inherits-D5wXBZoG.js";import"./getPrototypeOf-BYVhAdwF.js";import"./Dropdown-Di2cPjwR.js";import"./without-BP-mqg2K.js";import"./isArrayLikeObject-CbXKTyfk.js";import"./deburr-CEfyoYOr.js";import"./Draggable-KQRXc-DM.js";import"./useDrop-BRQoWSA5.js";import"./DndContext-B-2NJP7Z.js";import"./redux-C8f_Y06i.js";import"./objectSpread2-N4c0DWqo.js";import"./List-B05DD_Os.js";import"./Pagination-D0HmnRDL.js";import"./Menu-9i0apxqd.js";import"./Grid-Czr5owxQ.js";import"./DropdownButton-D3g-r0e9.js";import"./EditModal-DRtAb_yR.js";import"./Message-3p6wyYpA.js";import"./Toaster-C1YYqOUE.js";import"./Form-fErk-qk_.js";import"./Input--hQVCRQV.js";import"./AssociatedDropdown-CR7UI3kV.js";import"./FuzzyDate-RqvLBloE.js";import"./DateInput-BO57_F9J.js";import"./ModalContext-Bu-D9kD-.js";import"./Trans-Bk6mzQm0.js";import"./objectWithoutProperties--RY0eV0u.js";import"./utils-Bq6oISwF.js";const je={title:"Components/Semantic UI/DataTable",decorators:[g.withKnobs]},r=[{name:"edit"},{name:"copy"},{name:"delete"}],a=[{name:"last_name",label:"Last name",sortable:!1},{name:"first_name",label:"First name",sortable:!1},{name:"email",label:"Email",sortable:!1},{name:"ip_address",label:"IP address",sortable:!1},{name:"country",label:"Country",sortable:!1}],s=[{last_name:"Skittle",first_name:"Kyle",email:"kskittle0@gmpg.org",gender:"Male",ip_address:"51.229.4.38",country:"Macedonia"},{last_name:"Brood",first_name:"Edik",email:"ebrood1@latimes.com",gender:"Male",ip_address:"66.239.219.247",country:"Macedonia"},{last_name:"Noli",first_name:"Dewie",email:"dnoli2@mit.edu",gender:"Male",ip_address:"182.92.3.18",country:"Samoa"},{last_name:"Hazlehurst",first_name:"Garv",email:"ghazlehurst3@salon.com",gender:"Male",ip_address:"36.76.163.147",country:"Philippines"},{last_name:"Ridout",first_name:"Tobe",email:"tridout4@privacy.gov.au",gender:"Male",ip_address:"10.212.244.216",country:"Pakistan"},{last_name:"Carlan",first_name:"Justus",email:"jcarlan5@privacy.gov.au",gender:"Male",ip_address:"71.140.156.168",country:"Sweden"},{last_name:"Antoniades",first_name:"Enrique",email:"eantoniades6@stanford.edu",gender:"Male",ip_address:"160.3.77.37",country:"China"},{last_name:"Evangelinos",first_name:"Rheba",email:"revangelinos7@eepurl.com",gender:"Female",ip_address:"111.227.166.224",country:"Botswana"},{last_name:"Ceeley",first_name:"Kirsten",email:"kceeley8@t.co",gender:"Female",ip_address:"62.21.163.232",country:"Indonesia"},{last_name:"Swoffer",first_name:"Amalee",email:"aswoffer9@hugedomains.com",gender:"Female",ip_address:"140.166.164.147",country:"China"}],m=n(()=>e.jsx(t,{actions:r,buttons:[{render:()=>e.jsx(q,{children:"Test"},"1")}],columns:a,items:s,onColumnClick:o("column-click"),onCopy:o("copy"),onDelete:o("delete"),onSave:o("save")})),l=n(()=>e.jsx(t,{actions:r,columns:a,items:[],onColumnClick:o("column-click"),onCopy:o("copy"),onDelete:o("delete"),onSave:o("save")})),p=n(()=>e.jsx(t,{actions:r,columns:a,items:s,modal:{component:c=>e.jsxs(i,{open:!0,children:[e.jsx(i.Header,{children:"Add"}),e.jsx(i.Content,{children:"Add some stuff here"}),c.children]})},onColumnClick:o("column-click"),onCopy:o("copy"),onDelete:o("delete"),onSave:()=>Promise.resolve()})),d=n(()=>e.jsx(t,{actions:r,columns:a,items:[],modal:{component:c=>e.jsxs(i,{open:!0,children:[e.jsx(i.Header,{children:"Add"}),e.jsx(i.Content,{children:"Add some stuff here"}),c.children]})},onColumnClick:o("column-click"),onCopy:o("copy"),onDelete:o("delete"),onSave:()=>Promise.resolve()})),u=n(()=>e.jsx(t,{actions:[{name:"view",icon:"picture",onClick:o("view-click")},{name:"history",icon:"history",onClick:o("history-click")},{name:"coffee",icon:"coffee",onClick:o("coffee-click")}],columns:a,items:s,onColumnClick:o("column-click"),onCopy:o("copy"),onDelete:o("delete"),onSave:o("save")})),C=n(()=>e.jsx(t,{actions:r,columns:a,items:s,onColumnClick:o("column-click"),onCopy:o("copy"),onDelete:o("delete"),onSave:o("save"),page:g.number("Page",1),pages:g.number("Pages",10),showRecordCount:!0})),y=n(()=>e.jsx(t,{actions:r,buttons:[{render:()=>e.jsx(q,{children:"Test"},"1")}],columns:a,csvExportButton:{color:"blue",location:"bottom"},items:s,onColumnClick:o("column-click"),onCopy:o("copy"),onDelete:o("delete"),onSave:o("save")})),f=n(()=>e.jsx(t,{actions:r,columns:a,items:s,onColumnClick:o("column-click"),onCopy:o("copy"),onDelete:o("delete"),onSave:o("save"),renderDeleteModal:({onCancel:c,onConfirm:G})=>e.jsx(J,{content:"Yo, do you really want to delete this?",header:e.jsx(L,{icon:"hand paper outline",content:"Really?"}),onCancel:c,onConfirm:G,open:!0})}));m.__docgenInfo={description:"",methods:[],displayName:"Default"};l.__docgenInfo={description:"",methods:[],displayName:"Empty"};p.__docgenInfo={description:"",methods:[],displayName:"AddButton"};d.__docgenInfo={description:"",methods:[],displayName:"EmptyAddButton"};u.__docgenInfo={description:"",methods:[],displayName:"CustomActions"};C.__docgenInfo={description:"",methods:[],displayName:"Pagination"};y.__docgenInfo={description:"",methods:[],displayName:"CsvExport"};f.__docgenInfo={description:"",methods:[],displayName:"CustomDeleteModal"};var D,k,_;m.parameters={...m.parameters,docs:{...(D=m.parameters)==null?void 0:D.docs,source:{originalSource:`useDragDrop(() => e.jsx(t,{actions:r,buttons:[{render:()=>e.jsx(q,{children:"Test"},"1")}],columns:a,items:s,onColumnClick:o("column-click"),onCopy:o("copy"),onDelete:o("delete"),onSave:o("save")})),l=n(()=>e.jsx(t,{actions:r,columns:a,items:[],onColumnClick:o("column-click"),onCopy:o("copy"),onDelete:o("delete"),onSave:o("save")})),p=n(()=>e.jsx(t,{actions:r,columns:a,items:s,modal:{component:c=>e.jsxs(i,{open:!0,children:[e.jsx(i.Header,{children:"Add"}),e.jsx(i.Content,{children:"Add some stuff here"}),c.children]})},onColumnClick:o("column-click"),onCopy:o("copy"),onDelete:o("delete"),onSave:()=>Promise.resolve()})),d=n(()=>e.jsx(t,{actions:r,columns:a,items:[],modal:{component:c=>e.jsxs(i,{open:!0,children:[e.jsx(i.Header,{children:"Add"}),e.jsx(i.Content,{children:"Add some stuff here"}),c.children]})},onColumnClick:o("column-click"),onCopy:o("copy"),onDelete:o("delete"),onSave:()=>Promise.resolve()})),u=n(()=>e.jsx(t,{actions:[{name:"view",icon:"picture",onClick:o("view-click")},{name:"history",icon:"history",onClick:o("history-click")},{name:"coffee",icon:"coffee",onClick:o("coffee-click")}],columns:a,items:s,onColumnClick:o("column-click"),onCopy:o("copy"),onDelete:o("delete"),onSave:o("save")})),C=n(()=>e.jsx(t,{actions:r,columns:a,items:s,onColumnClick:o("column-click"),onCopy:o("copy"),onDelete:o("delete"),onSave:o("save"),page:g.number("Page",1),pages:g.number("Pages",10),showRecordCount:!0})),y=n(()=>e.jsx(t,{actions:r,buttons:[{render:()=>e.jsx(q,{children:"Test"},"1")}],columns:a,csvExportButton:{color:"blue",location:"bottom"},items:s,onColumnClick:o("column-click"),onCopy:o("copy"),onDelete:o("delete"),onSave:o("save")})),f=n(()=>e.jsx(t,{actions:r,columns:a,items:s,onColumnClick:o("column-click"),onCopy:o("copy"),onDelete:o("delete"),onSave:o("save"),renderDeleteModal:({onCancel:c,onConfirm:G})=>e.jsx(J,{content:"Yo, do you really want to delete this?",header:e.jsx(L,{icon:"hand paper outline",content:"Really?"}),onCancel:c,onConfirm:G,open:!0})}));m.__docgenInfo={description:"",methods:[],displayName:"Default"};l.__docgenInfo={description:"",methods:[],displayName:"Empty"};p.__docgenInfo={description:"",methods:[],displayName:"AddButton"};d.__docgenInfo={description:"",methods:[],displayName:"EmptyAddButton"};u.__docgenInfo={description:"",methods:[],displayName:"CustomActions"};C.__docgenInfo={description:"",methods:[],displayName:"Pagination"};y.__docgenInfo={description:"",methods:[],displayName:"CsvExport"};f.__docgenInfo={description:"",methods:[],displayName:"CustomDeleteModal"};var D,k,_;m.parameters={...m.parameters,docs:{...(D=m.parameters)==null?void 0:D.docs,source:{originalSource:`useDragDrop(() => }]} columns={columns} items={items} onColumnClick={action('column-click')} onCopy={action('copy')} onDelete={action('delete')} onSave={action('save')} />)`,...(_=(k=m.parameters)==null?void 0:k.docs)==null?void 0:_.source}}};var v,h,b;l.parameters={...l.parameters,docs:{...(v=l.parameters)==null?void 0:v.docs,source:{originalSource:"useDragDrop(() => )",...(b=(h=l.parameters)==null?void 0:h.docs)==null?void 0:b.source}}};var S,x,M;p.parameters={...p.parameters,docs:{...(S=p.parameters)==null?void 0:S.docs,source:{originalSource:`useDragDrop(() => diff --git a/docs/assets/DataView.stories-Do6T3up5.js b/docs/assets/DataView.stories-DfiwRonR.js similarity index 97% rename from docs/assets/DataView.stories-Do6T3up5.js rename to docs/assets/DataView.stories-DfiwRonR.js index c5609749..95c77d6f 100644 --- a/docs/assets/DataView.stories-Do6T3up5.js +++ b/docs/assets/DataView.stories-DfiwRonR.js @@ -1,4 +1,4 @@ -import{j as b}from"./jsx-runtime-BTCK_S7S.js";import{d as vt}from"./index-DfmhmaGJ.js";import{r as v}from"./index-CBqU2yxZ.js";import{_ as m}from"./index-default-C_maRo4o.js";import{g as Nt}from"./_commonjsHelpers-BosuxZz1.js";import{F as ke}from"./Form-fErk-qk_.js";import{G as Te}from"./Grid-Czr5owxQ.js";import{M as ee}from"./Modal-Bz2VEyQG.js";import{D as Ot}from"./DataTable-CZodmOBN.js";import{D as Vt}from"./DropdownButton-D3g-r0e9.js";import{i as ye}from"./i18n-C8zWlANG.js";import{M as jt}from"./MenuBar-0zX1-Zh0.js";import{M as Pt}from"./MenuSidebar-btOdA7yG.js";import{M as Lt}from"./ModalContext-Bu-D9kD-.js";import{u as It,a as te,S as _e}from"./DataList-Ge7tGBgD.js";import{u as H}from"./DragDrop-ryAVAQMJ.js";import"./mapValues-CZh2vnSw.js";import"./pickBy-CU2rOOKe.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-Bu_b4Pek.js";import"./index-Cw1G72V2.js";import"./index-CKJfshIT.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./preview-errors-CzpZmerH.js";import"./debounce-Bq1aTuh-.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getElementType-CckcRzoH.js";import"./Button-Blq7Z6RX.js";import"./Icon-2tEtgK8g.js";import"./Label-Cq1fb1cd.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./forEach-CXlln0XP.js";import"./Dimmer-D_gwaesu.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./index-DZGZymok.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./map-B4PnIEPz.js";import"./Checkbox-C9uAfnsM.js";import"./_baseSet-6y0qliU9.js";import"./_baseAssignValue-izmKBXUH.js";import"./Dropdown-Di2cPjwR.js";import"./without-BP-mqg2K.js";import"./isArrayLikeObject-CbXKTyfk.js";import"./isEmpty-Cyb9hIKi.js";import"./deburr-CEfyoYOr.js";import"./index-BBpNyw-T.js";import"./_arrayReduce-CrxnWFSq.js";import"./filter-CVNi8iPS.js";import"./Input--hQVCRQV.js";import"./index.es28-dE8xdd4L.js";import"./iframe-ovyJW9VA.js";import"../sb-preview/runtime.js";import"./index.es3-D5uPylQL.js";import"./Table-Xx3vjhN9.js";import"./Loader-CooidObp.js";import"./Popup-BP01NTlV.js";import"./createClass-D2z1h_eG.js";import"./toPropertyKey-hKuLU48H.js";import"./Draggable-KQRXc-DM.js";import"./useDrop-BRQoWSA5.js";import"./DndContext-B-2NJP7Z.js";import"./redux-C8f_Y06i.js";import"./objectSpread2-N4c0DWqo.js";import"./defineProperty-CCxoMnQV.js";import"./List-B05DD_Os.js";import"./Confirm-Dw9rt56R.js";import"./Transition-DSFEXhCu.js";import"./Pagination-D0HmnRDL.js";import"./Menu-9i0apxqd.js";import"./Header-BJ3NNdPz.js";import"./EditModal-DRtAb_yR.js";import"./Message-3p6wyYpA.js";import"./Toaster-C1YYqOUE.js";import"./AssociatedDropdown-CR7UI3kV.js";import"./FuzzyDate-RqvLBloE.js";import"./DateInput-BO57_F9J.js";import"./Trans-Bk6mzQm0.js";import"./objectWithoutProperties--RY0eV0u.js";import"./utils-Bq6oISwF.js";import"./inherits-D5wXBZoG.js";import"./i18next-Sc0HEOoc.js";import"./getPrototypeOf-BYVhAdwF.js";import"./uuid-BH6G0oTz.js";var qe={exports:{}},gt=function(e,n){return function(){for(var r=new Array(arguments.length),s=0;s"u"}function Bt(t){return t!==null&&!we(t)&&t.constructor!==null&&!we(t.constructor)&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function bt(t){return A.call(t)==="[object ArrayBuffer]"}function Mt(t){return A.call(t)==="[object FormData]"}function $t(t){var e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&bt(t.buffer),e}function Ht(t){return typeof t=="string"}function Ft(t){return typeof t=="number"}function yt(t){return t!==null&&typeof t=="object"}function Q(t){if(A.call(t)!=="[object Object]")return!1;var e=Object.getPrototypeOf(t);return e===null||e===Object.prototype}function zt(t){return A.call(t)==="[object Date]"}function Jt(t){return A.call(t)==="[object File]"}function Qt(t){return A.call(t)==="[object Blob]"}function wt(t){return A.call(t)==="[object Function]"}function Wt(t){return yt(t)&&wt(t.pipe)}function Xt(t){return A.call(t)==="[object URLSearchParams]"}function Gt(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function Kt(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function Se(t,e){if(!(t===null||typeof t>"u"))if(typeof t!="object"&&(t=[t]),Ce(t))for(var n=0,a=t.length;n"u"||(P.isArray(p)?f=f+"[]":p=[p],P.forEach(p,function(o){P.isDate(o)?o=o.toISOString():P.isObject(o)&&(o=JSON.stringify(o)),s.push(Ae(f)+"="+Ae(o))}))}),r=s.join("&")}if(r){var u=e.indexOf("#");u!==-1&&(e=e.slice(0,u)),e+=(e.indexOf("?")===-1?"?":"&")+r}return e},er=q;function X(){this.handlers=[]}X.prototype.use=function(e,n,a){return this.handlers.push({fulfilled:e,rejected:n,synchronous:a?a.synchronous:!1,runWhen:a?a.runWhen:null}),this.handlers.length-1};X.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)};X.prototype.forEach=function(e){er.forEach(this.handlers,function(a){a!==null&&e(a)})};var tr=X,rr=q,nr=function(e,n){rr.forEach(e,function(r,s){s!==n&&s.toUpperCase()===n.toUpperCase()&&(e[n]=r,delete e[s])})},qt=function(e,n,a,r,s){return e.config=n,a&&(e.code=a),e.request=r,e.response=s,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e},Ct={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},re,De;function St(){if(De)return re;De=1;var t=qt;return re=function(n,a,r,s,u){var i=new Error(n);return t(i,a,r,s,u)},re}var ne,Ne;function ar(){if(Ne)return ne;Ne=1;var t=St();return ne=function(n,a,r){var s=r.config.validateStatus;!r.status||!s||s(r.status)?n(r):a(t("Request failed with status code "+r.status,r.config,null,r.request,r))},ne}var ae,Oe;function sr(){if(Oe)return ae;Oe=1;var t=q;return ae=t.isStandardBrowserEnv()?function(){return{write:function(a,r,s,u,i,p){var f=[];f.push(a+"="+encodeURIComponent(r)),t.isNumber(s)&&f.push("expires="+new Date(s).toGMTString()),t.isString(u)&&f.push("path="+u),t.isString(i)&&f.push("domain="+i),p===!0&&f.push("secure"),document.cookie=f.join("; ")},read:function(a){var r=document.cookie.match(new RegExp("(^|;\\s*)("+a+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(a){this.write(a,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),ae}var se,Ve;function ir(){return Ve||(Ve=1,se=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}),se}var ie,je;function or(){return je||(je=1,ie=function(e,n){return n?e.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,""):e}),ie}var oe,Pe;function ur(){if(Pe)return oe;Pe=1;var t=ir(),e=or();return oe=function(a,r){return a&&!t(r)?e(a,r):r},oe}var ue,Le;function lr(){if(Le)return ue;Le=1;var t=q,e=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return ue=function(a){var r={},s,u,i;return a&&t.forEach(a.split(` +import{j as b}from"./jsx-runtime-BTCK_S7S.js";import{d as vt}from"./index-CAen7T_W.js";import{r as v}from"./index-CBqU2yxZ.js";import{_ as m}from"./index-default-C_maRo4o.js";import{g as Nt}from"./_commonjsHelpers-BosuxZz1.js";import{F as ke}from"./Form-fErk-qk_.js";import{G as Te}from"./Grid-Czr5owxQ.js";import{M as ee}from"./Modal-Bz2VEyQG.js";import{D as Ot}from"./DataTable-Cu5azNeI.js";import{D as Vt}from"./DropdownButton-D3g-r0e9.js";import{i as ye}from"./i18n-C8zWlANG.js";import{M as jt}from"./MenuBar-0zX1-Zh0.js";import{M as Pt}from"./MenuSidebar-btOdA7yG.js";import{M as Lt}from"./ModalContext-Bu-D9kD-.js";import{u as It,a as te,S as _e}from"./DataList-DKTsnuj_.js";import{u as H}from"./DragDrop-ryAVAQMJ.js";import"./mapValues-LQZI9uWW.js";import"./pickBy-Us6u5-To.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-DCkRKKtx.js";import"./index-Cw1G72V2.js";import"./index-CKJfshIT.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./preview-errors-CzpZmerH.js";import"./debounce-BkgZrIul.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getElementType-CckcRzoH.js";import"./Button-Blq7Z6RX.js";import"./Icon-2tEtgK8g.js";import"./Label-Cq1fb1cd.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./forEach-CXlln0XP.js";import"./Dimmer-D_gwaesu.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./index-DZGZymok.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./map-B4PnIEPz.js";import"./Checkbox-C9uAfnsM.js";import"./_baseSet-6y0qliU9.js";import"./_baseAssignValue-izmKBXUH.js";import"./Dropdown-Di2cPjwR.js";import"./without-BP-mqg2K.js";import"./isArrayLikeObject-CbXKTyfk.js";import"./isEmpty-Cyb9hIKi.js";import"./deburr-CEfyoYOr.js";import"./index-BBpNyw-T.js";import"./_arrayReduce-CrxnWFSq.js";import"./filter-CVNi8iPS.js";import"./Input--hQVCRQV.js";import"./index.es28-Dp3-vHIY.js";import"./iframe-BQtATEn0.js";import"../sb-preview/runtime.js";import"./index.es3-Dgr_7mVc.js";import"./Table-Xx3vjhN9.js";import"./Loader-CooidObp.js";import"./Popup-BP01NTlV.js";import"./createClass-D2z1h_eG.js";import"./toPropertyKey-hKuLU48H.js";import"./Draggable-KQRXc-DM.js";import"./useDrop-BRQoWSA5.js";import"./DndContext-B-2NJP7Z.js";import"./redux-C8f_Y06i.js";import"./objectSpread2-N4c0DWqo.js";import"./defineProperty-CCxoMnQV.js";import"./List-tmAiyZhD.js";import"./Confirm-Dw9rt56R.js";import"./Transition-DSFEXhCu.js";import"./Pagination-D0HmnRDL.js";import"./Menu-9i0apxqd.js";import"./Header-BJ3NNdPz.js";import"./EditModal-WP1CvOLP.js";import"./Message-3p6wyYpA.js";import"./Toaster-C1YYqOUE.js";import"./AssociatedDropdown-DQppeffT.js";import"./FuzzyDate-Bx1epA16.js";import"./DateInput-BO57_F9J.js";import"./Trans-Bk6mzQm0.js";import"./objectWithoutProperties--RY0eV0u.js";import"./utils-Bq6oISwF.js";import"./inherits-D5wXBZoG.js";import"./i18next-Sc0HEOoc.js";import"./getPrototypeOf-BYVhAdwF.js";import"./uuid-BH6G0oTz.js";var qe={exports:{}},gt=function(e,n){return function(){for(var r=new Array(arguments.length),s=0;s"u"}function Bt(t){return t!==null&&!we(t)&&t.constructor!==null&&!we(t.constructor)&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function bt(t){return A.call(t)==="[object ArrayBuffer]"}function Mt(t){return A.call(t)==="[object FormData]"}function $t(t){var e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&bt(t.buffer),e}function Ht(t){return typeof t=="string"}function Ft(t){return typeof t=="number"}function yt(t){return t!==null&&typeof t=="object"}function Q(t){if(A.call(t)!=="[object Object]")return!1;var e=Object.getPrototypeOf(t);return e===null||e===Object.prototype}function zt(t){return A.call(t)==="[object Date]"}function Jt(t){return A.call(t)==="[object File]"}function Qt(t){return A.call(t)==="[object Blob]"}function wt(t){return A.call(t)==="[object Function]"}function Wt(t){return yt(t)&&wt(t.pipe)}function Xt(t){return A.call(t)==="[object URLSearchParams]"}function Gt(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function Kt(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function Se(t,e){if(!(t===null||typeof t>"u"))if(typeof t!="object"&&(t=[t]),Ce(t))for(var n=0,a=t.length;n"u"||(P.isArray(p)?f=f+"[]":p=[p],P.forEach(p,function(o){P.isDate(o)?o=o.toISOString():P.isObject(o)&&(o=JSON.stringify(o)),s.push(Ae(f)+"="+Ae(o))}))}),r=s.join("&")}if(r){var u=e.indexOf("#");u!==-1&&(e=e.slice(0,u)),e+=(e.indexOf("?")===-1?"?":"&")+r}return e},er=q;function X(){this.handlers=[]}X.prototype.use=function(e,n,a){return this.handlers.push({fulfilled:e,rejected:n,synchronous:a?a.synchronous:!1,runWhen:a?a.runWhen:null}),this.handlers.length-1};X.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)};X.prototype.forEach=function(e){er.forEach(this.handlers,function(a){a!==null&&e(a)})};var tr=X,rr=q,nr=function(e,n){rr.forEach(e,function(r,s){s!==n&&s.toUpperCase()===n.toUpperCase()&&(e[n]=r,delete e[s])})},qt=function(e,n,a,r,s){return e.config=n,a&&(e.code=a),e.request=r,e.response=s,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e},Ct={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},re,De;function St(){if(De)return re;De=1;var t=qt;return re=function(n,a,r,s,u){var i=new Error(n);return t(i,a,r,s,u)},re}var ne,Ne;function ar(){if(Ne)return ne;Ne=1;var t=St();return ne=function(n,a,r){var s=r.config.validateStatus;!r.status||!s||s(r.status)?n(r):a(t("Request failed with status code "+r.status,r.config,null,r.request,r))},ne}var ae,Oe;function sr(){if(Oe)return ae;Oe=1;var t=q;return ae=t.isStandardBrowserEnv()?function(){return{write:function(a,r,s,u,i,p){var f=[];f.push(a+"="+encodeURIComponent(r)),t.isNumber(s)&&f.push("expires="+new Date(s).toGMTString()),t.isString(u)&&f.push("path="+u),t.isString(i)&&f.push("domain="+i),p===!0&&f.push("secure"),document.cookie=f.join("; ")},read:function(a){var r=document.cookie.match(new RegExp("(^|;\\s*)("+a+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(a){this.write(a,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),ae}var se,Ve;function ir(){return Ve||(Ve=1,se=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}),se}var ie,je;function or(){return je||(je=1,ie=function(e,n){return n?e.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,""):e}),ie}var oe,Pe;function ur(){if(Pe)return oe;Pe=1;var t=ir(),e=or();return oe=function(a,r){return a&&!t(r)?e(a,r):r},oe}var ue,Le;function lr(){if(Le)return ue;Le=1;var t=q,e=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return ue=function(a){var r={},s,u,i;return a&&t.forEach(a.split(` `),function(f){if(i=f.indexOf(":"),s=t.trim(f.substr(0,i)).toLowerCase(),u=t.trim(f.substr(i+1)),s){if(r[s]&&e.indexOf(s)>=0)return;s==="set-cookie"?r[s]=(r[s]?r[s]:[]).concat([u]):r[s]=r[s]?r[s]+", "+u:u}}),r},ue}var le,Ie;function pr(){if(Ie)return le;Ie=1;var t=q;return le=t.isStandardBrowserEnv()?function(){var n=/(msie|trident)/i.test(navigator.userAgent),a=document.createElement("a"),r;function s(u){var i=u;return n&&(a.setAttribute("href",i),i=a.href),a.setAttribute("href",i),{href:a.href,protocol:a.protocol?a.protocol.replace(/:$/,""):"",host:a.host,search:a.search?a.search.replace(/^\?/,""):"",hash:a.hash?a.hash.replace(/^#/,""):"",hostname:a.hostname,port:a.port,pathname:a.pathname.charAt(0)==="/"?a.pathname:"/"+a.pathname}}return r=s(window.location.href),function(i){var p=t.isString(i)?s(i):i;return p.protocol===r.protocol&&p.host===r.host}}():function(){return function(){return!0}}(),le}var pe,Ue;function G(){if(Ue)return pe;Ue=1;function t(e){this.message=e}return t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,pe=t,pe}var ce,Be;function Me(){if(Be)return ce;Be=1;var t=q,e=ar(),n=sr(),a=Et,r=ur(),s=lr(),u=pr(),i=St(),p=Ct,f=G();return ce=function(o){return new Promise(function(g,T){var _=o.data,D=o.headers,N=o.responseType,R;function h(){o.cancelToken&&o.cancelToken.unsubscribe(R),o.signal&&o.signal.removeEventListener("abort",R)}t.isFormData(_)&&delete D["Content-Type"];var l=new XMLHttpRequest;if(o.auth){var d=o.auth.username||"",w=o.auth.password?unescape(encodeURIComponent(o.auth.password)):"";D.Authorization="Basic "+btoa(d+":"+w)}var k=r(o.baseURL,o.url);l.open(o.method.toUpperCase(),a(k,o.params,o.paramsSerializer),!0),l.timeout=o.timeout;function z(){if(l){var E="getAllResponseHeaders"in l?s(l.getAllResponseHeaders()):null,j=!N||N==="text"||N==="json"?l.responseText:l.response,O={data:j,status:l.status,statusText:l.statusText,headers:E,config:o,request:l};e(function(Z){g(Z),h()},function(Z){T(Z),h()},O),l=null}}if("onloadend"in l?l.onloadend=z:l.onreadystatechange=function(){!l||l.readyState!==4||l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)||setTimeout(z)},l.onabort=function(){l&&(T(i("Request aborted",o,"ECONNABORTED",l)),l=null)},l.onerror=function(){T(i("Network Error",o,null,l)),l=null},l.ontimeout=function(){var j=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded",O=o.transitional||p;o.timeoutErrorMessage&&(j=o.timeoutErrorMessage),T(i(j,o,O.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",l)),l=null},t.isStandardBrowserEnv()){var J=(o.withCredentials||u(k))&&o.xsrfCookieName?n.read(o.xsrfCookieName):void 0;J&&(D[o.xsrfHeaderName]=J)}"setRequestHeader"in l&&t.forEach(D,function(j,O){typeof _>"u"&&O.toLowerCase()==="content-type"?delete D[O]:l.setRequestHeader(O,j)}),t.isUndefined(o.withCredentials)||(l.withCredentials=!!o.withCredentials),N&&N!=="json"&&(l.responseType=o.responseType),typeof o.onDownloadProgress=="function"&&l.addEventListener("progress",o.onDownloadProgress),typeof o.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",o.onUploadProgress),(o.cancelToken||o.signal)&&(R=function(E){l&&(T(!E||E&&E.type?new f("canceled"):E),l.abort(),l=null)},o.cancelToken&&o.cancelToken.subscribe(R),o.signal&&(o.signal.aborted?R():o.signal.addEventListener("abort",R))),_||(_=null),l.send(_)})},ce}var y=q,$e=nr,cr=qt,mr=Ct,fr={"Content-Type":"application/x-www-form-urlencoded"};function He(t,e){!y.isUndefined(t)&&y.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}function dr(){var t;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(t=Me()),t}function hr(t,e,n){if(y.isString(t))try{return(e||JSON.parse)(t),y.trim(t)}catch(a){if(a.name!=="SyntaxError")throw a}return(n||JSON.stringify)(t)}var K={transitional:mr,adapter:dr(),transformRequest:[function(e,n){return $e(n,"Accept"),$e(n,"Content-Type"),y.isFormData(e)||y.isArrayBuffer(e)||y.isBuffer(e)||y.isStream(e)||y.isFile(e)||y.isBlob(e)?e:y.isArrayBufferView(e)?e.buffer:y.isURLSearchParams(e)?(He(n,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):y.isObject(e)||n&&n["Content-Type"]==="application/json"?(He(n,"application/json"),hr(e)):e}],transformResponse:[function(e){var n=this.transitional||K.transitional,a=n&&n.silentJSONParsing,r=n&&n.forcedJSONParsing,s=!a&&this.responseType==="json";if(s||r&&y.isString(e)&&e.length)try{return JSON.parse(e)}catch(u){if(s)throw u.name==="SyntaxError"?cr(u,this,"E_JSON_PARSE"):u}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};y.forEach(["delete","get","head"],function(e){K.headers[e]={}});y.forEach(["post","put","patch"],function(e){K.headers[e]=y.merge(fr)});var xe=K,vr=q,gr=xe,br=function(e,n,a){var r=this||gr;return vr.forEach(a,function(u){e=u.call(r,e,n)}),e},me,Fe;function xt(){return Fe||(Fe=1,me=function(e){return!!(e&&e.__CANCEL__)}),me}var ze=q,fe=br,yr=xt(),wr=xe,Er=G();function de(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Er("canceled")}var qr=function(e){de(e),e.headers=e.headers||{},e.data=fe.call(e,e.data,e.headers,e.transformRequest),e.headers=ze.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),ze.forEach(["delete","get","head","post","put","patch","common"],function(r){delete e.headers[r]});var n=e.adapter||wr.adapter;return n(e).then(function(r){return de(e),r.data=fe.call(e,r.data,r.headers,e.transformResponse),r},function(r){return yr(r)||(de(e),r&&r.response&&(r.response.data=fe.call(e,r.response.data,r.response.headers,e.transformResponse))),Promise.reject(r)})},C=q,Rt=function(e,n){n=n||{};var a={};function r(c,o){return C.isPlainObject(c)&&C.isPlainObject(o)?C.merge(c,o):C.isPlainObject(o)?C.merge({},o):C.isArray(o)?o.slice():o}function s(c){if(C.isUndefined(n[c])){if(!C.isUndefined(e[c]))return r(void 0,e[c])}else return r(e[c],n[c])}function u(c){if(!C.isUndefined(n[c]))return r(void 0,n[c])}function i(c){if(C.isUndefined(n[c])){if(!C.isUndefined(e[c]))return r(void 0,e[c])}else return r(void 0,n[c])}function p(c){if(c in n)return r(e[c],n[c]);if(c in e)return r(void 0,e[c])}var f={url:u,method:u,data:u,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:p};return C.forEach(Object.keys(e).concat(Object.keys(n)),function(o){var S=f[o]||s,g=S(o);C.isUndefined(g)&&S!==p||(a[o]=g)}),a},he,Je;function kt(){return Je||(Je=1,he={version:"0.26.1"}),he}var Cr=kt().version,Re={};["object","boolean","number","function","string","symbol"].forEach(function(t,e){Re[t]=function(a){return typeof a===t||"a"+(e<1?"n ":" ")+t}});var Qe={};Re.transitional=function(e,n,a){function r(s,u){return"[Axios v"+Cr+"] Transitional option '"+s+"'"+u+(a?". "+a:"")}return function(s,u,i){if(e===!1)throw new Error(r(u," has been removed"+(n?" in "+n:"")));return n&&!Qe[u]&&(Qe[u]=!0,console.warn(r(u," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(s,u,i):!0}};function Sr(t,e,n){if(typeof t!="object")throw new TypeError("options must be an object");for(var a=Object.keys(t),r=a.length;r-- >0;){var s=a[r],u=e[s];if(u){var i=t[s],p=i===void 0||u(i,s,t);if(p!==!0)throw new TypeError("option "+s+" must be "+p);continue}if(n!==!0)throw Error("Unknown option "+s)}}var xr={assertOptions:Sr,validators:Re},Tt=q,Rr=Et,We=tr,Xe=qr,Y=Rt,_t=xr,L=_t.validators;function F(t){this.defaults=t,this.interceptors={request:new We,response:new We}}F.prototype.request=function(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=Y(this.defaults,n),n.method?n.method=n.method.toLowerCase():this.defaults.method?n.method=this.defaults.method.toLowerCase():n.method="get";var a=n.transitional;a!==void 0&&_t.assertOptions(a,{silentJSONParsing:L.transitional(L.boolean),forcedJSONParsing:L.transitional(L.boolean),clarifyTimeoutError:L.transitional(L.boolean)},!1);var r=[],s=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(s=s&&g.synchronous,r.unshift(g.fulfilled,g.rejected))});var u=[];this.interceptors.response.forEach(function(g){u.push(g.fulfilled,g.rejected)});var i;if(!s){var p=[Xe,void 0];for(Array.prototype.unshift.apply(p,r),p=p.concat(u),i=Promise.resolve(n);p.length;)i=i.then(p.shift(),p.shift());return i}for(var f=n;r.length;){var c=r.shift(),o=r.shift();try{f=c(f)}catch(S){o(S);break}}try{i=Xe(f)}catch(S){return Promise.reject(S)}for(;u.length;)i=i.then(u.shift(),u.shift());return i};F.prototype.getUri=function(e){return e=Y(this.defaults,e),Rr(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")};Tt.forEach(["delete","get","head","options"],function(e){F.prototype[e]=function(n,a){return this.request(Y(a||{},{method:e,url:n,data:(a||{}).data}))}});Tt.forEach(["post","put","patch"],function(e){F.prototype[e]=function(n,a,r){return this.request(Y(r||{},{method:e,url:n,data:a}))}});var kr=F,ve,Ge;function Tr(){if(Ge)return ve;Ge=1;var t=G();function e(n){if(typeof n!="function")throw new TypeError("executor must be a function.");var a;this.promise=new Promise(function(u){a=u});var r=this;this.promise.then(function(s){if(r._listeners){var u,i=r._listeners.length;for(u=0;u{const[e,n]=v.useState(),a=v.useCallback(r=>{const s={...r};e&&e.value===r.value&&(s.direction=e.direction===te?_e:te),n(s)},[t.sorts,e]);return v.useEffect(()=>{e&&t.onSort(e.value,e.direction,t.page)},[e]),v.useEffect(()=>{const{page:r}=t;let{sortColumn:s="",sortDirection:u=_e}=t;if(!s){const i=m.first(t.sort);i&&(s=i.value,i.direction&&(u=i.direction))}t.onSort(s,u,r)},[]),b.jsx(Ot,{...t,renderListHeader:()=>t.sorts&&b.jsx(Vt,{basic:!0,icon:e&&e.direction===te?"sort alphabet down":"sort alphabet up",onChange:()=>{},options:m.map(t.sorts,r=>({key:r.value,value:r.value,text:r.label,onClick:()=>a(r)})),text:e?ye.t("DataView.labels.sortBy",{column:e.label}):ye.t("DataView.labels.noSort"),value:e&&e.value}),tableProps:{...t.tableProps||{},celled:!0}})}),V=t=>{const[e,n]=v.useState(),[a,r]=v.useState(),[s,u]=v.useState([]),[i,p]=v.useState([]),[f,c]=v.useState(),[o,S]=v.useState(),g=v.useRef(),T=v.useMemo(()=>{let h="";return e&&(h=e.url.substr(e.url.lastIndexOf("/")+1,e.url.length)),h},[e]),_=v.useCallback(h=>{if(!e)return[];const l=m.chain(h).map(w=>m.keys(w)).flatten().uniq().value();let d=m.map(l,(w,k)=>{const z=m.findWhere(e.columns,{name:w})||{},J={name:w,label:w.trim().replace(/^\w/,E=>E.toUpperCase()).replaceAll("_"," "),sortable:!1,resolve:E=>R(E,w),hidden:k>t.columnCount,index:k};return m.extend(J,z)});return d=[...d,...m.reject(e.columns,w=>m.contains(l,w.name))],m.sortBy(d,"index")},[e]),D=v.useCallback(h=>{e&&et.get(`${e.url}/${h.id}`).then(({data:l})=>{const d=m.first(m.keys(l));r(l[d])}).catch(()=>{r(h)})},[e]),N=v.useCallback(h=>{let l;return e?l=et.get(e.url,{params:h}).then(d=>{const w=d.data[T];return u(_(w)),d}):l=Promise.resolve(),l},[e]),R=v.useCallback((h,l)=>{let d=h[l];return m.isArray(d)?d=m.size(d):m.isBoolean(d)?d=(!!d).toString():m.isObject(d)&&(d=d[m.first(m.keys(d))]),d},[]);return v.useEffect(()=>{if(!m.every(t.items,l=>!!l.group))p(t.items);else{const l=m.groupBy(t.items,"group"),d=m.keys(l);p(m.map(d,w=>({content:w,items:m.map(l[w],k=>({active:e&&e.id===k.id,content:k.label,onClick:()=>n(k)}))})))}},[e,t.items]),v.useEffect(()=>{t.items&&t.items.length&&n(m.first(t.items))},[t.items]),v.useEffect(()=>{t.layout==="left"&&g&&g.current&&c(g.current.offsetWidth)},[g,t.layout]),v.useEffect(()=>{const h=[];e&&h.push(e.id),s&&s.length&&h.push(...m.pluck(s,"name")),S(h.join(""))},[e,s]),b.jsxs("div",{className:"data-view",children:[t.layout==="top"&&b.jsx(jt,{header:{content:t.title},items:i}),t.layout==="left"&&b.jsx(Pt,{contextRef:g,header:{content:t.title},items:i}),b.jsx("div",{style:{marginLeft:f},children:e&&b.jsx(Pr,{actions:[{name:"details",icon:"info",onClick:D}],collectionName:T,columns:s,onLoad:N,perPageOptions:[10,25,50,100],searchable:!0,sorts:e.sorts},o)}),a&&b.jsx(Lt.Consumer,{children:h=>b.jsxs(ee,{as:ke,centered:!1,className:"data-view-modal",closeIcon:!0,mountNode:h,onClose:()=>r(null),open:!0,children:[b.jsx(ee.Header,{content:ye.t("DataView.labels.details")}),b.jsx(ee.Content,{children:b.jsx(Te,{columns:3,doubling:!0,children:m.map(_([a]),l=>b.jsxs(Te.Column,{as:ke.Field,children:[b.jsx("span",{className:"label",children:l.label}),R(a,l.name)]},l.name))})})]})})]})};V.defaultProps={columnCount:5,layout:"left"};V.__docgenInfo={description:"",methods:[],displayName:"DataView",props:{columnCount:{required:!1,flowType:{name:"number"},description:"",defaultValue:{value:"5",computed:!1}},items:{required:!0,flowType:{name:"Array",elements:[{name:"signature",type:"object",raw:`{ id: string, label: string, diff --git a/docs/assets/DescriptorField.stories-B8meZkEv.js b/docs/assets/DescriptorField.stories-TnftbNSB.js similarity index 92% rename from docs/assets/DescriptorField.stories-B8meZkEv.js rename to docs/assets/DescriptorField.stories-TnftbNSB.js index 1b685cf2..4e1d429f 100644 --- a/docs/assets/DescriptorField.stories-B8meZkEv.js +++ b/docs/assets/DescriptorField.stories-TnftbNSB.js @@ -1,4 +1,4 @@ -import{j as r}from"./jsx-runtime-BTCK_S7S.js";import"./index-CBqU2yxZ.js";import{d as o}from"./index-DfmhmaGJ.js";import{P as s}from"./Popup-BP01NTlV.js";import"./_commonjsHelpers-BosuxZz1.js";import"./mapValues-CZh2vnSw.js";import"./pickBy-CU2rOOKe.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-Bu_b4Pek.js";import"./index-Cw1G72V2.js";import"./index-CKJfshIT.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./preview-errors-CzpZmerH.js";import"./debounce-Bq1aTuh-.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getElementType-CckcRzoH.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./index-BBpNyw-T.js";import"./_baseSet-6y0qliU9.js";import"./_baseAssignValue-izmKBXUH.js";import"./_arrayReduce-CrxnWFSq.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./index-DZGZymok.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./createClass-D2z1h_eG.js";import"./toPropertyKey-hKuLU48H.js";const n=e=>r.jsx(s,{className:e.className,content:e.popupContent,hoverable:!0,mouseEnterDelay:e.delayInterval,trigger:e.renderPopup?e.renderPopup():r.jsx("span",{className:"text",children:e.content}),wide:!0});n.defaultProps={delayInterval:1e3,renderPopup:void 0,popupContent:void 0};n.__docgenInfo={description:`Renders the DescriptorField component. This component can be used to static text as with a popup on hover. +import{j as r}from"./jsx-runtime-BTCK_S7S.js";import"./index-CBqU2yxZ.js";import{d as o}from"./index-CAen7T_W.js";import{P as s}from"./Popup-BP01NTlV.js";import"./_commonjsHelpers-BosuxZz1.js";import"./mapValues-LQZI9uWW.js";import"./pickBy-Us6u5-To.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-DCkRKKtx.js";import"./index-Cw1G72V2.js";import"./index-CKJfshIT.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./preview-errors-CzpZmerH.js";import"./debounce-BkgZrIul.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getElementType-CckcRzoH.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./index-BBpNyw-T.js";import"./_baseSet-6y0qliU9.js";import"./_baseAssignValue-izmKBXUH.js";import"./_arrayReduce-CrxnWFSq.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./index-DZGZymok.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./createClass-D2z1h_eG.js";import"./toPropertyKey-hKuLU48H.js";const n=e=>r.jsx(s,{className:e.className,content:e.popupContent,hoverable:!0,mouseEnterDelay:e.delayInterval,trigger:e.renderPopup?e.renderPopup():r.jsx("span",{className:"text",children:e.content}),wide:!0});n.defaultProps={delayInterval:1e3,renderPopup:void 0,popupContent:void 0};n.__docgenInfo={description:`Renders the DescriptorField component. This component can be used to static text as with a popup on hover. @param props diff --git a/docs/assets/DocsRenderer-NNNQARDV-e71qsaWv.js b/docs/assets/DocsRenderer-NNNQARDV-C740RQnY.js similarity index 54% rename from docs/assets/DocsRenderer-NNNQARDV-e71qsaWv.js rename to docs/assets/DocsRenderer-NNNQARDV-C740RQnY.js index 84185a5f..68dde23e 100644 --- a/docs/assets/DocsRenderer-NNNQARDV-e71qsaWv.js +++ b/docs/assets/DocsRenderer-NNNQARDV-C740RQnY.js @@ -1 +1 @@ -import{D as g,d as h}from"./chunk-HLWAVYOI-CFPuBJI5.js";import"./iframe-ovyJW9VA.js";import"../sb-preview/runtime.js";import"./index-CBqU2yxZ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./react-18-DnM9deRA.js";import"./index-DZGZymok.js";import"./pickBy-CU2rOOKe.js";import"./mapValues-CZh2vnSw.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./index-Cw1G72V2.js";import"./extends-CCbyfPlC.js";import"./assertThisInitialized-B9jnkVVz.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getPrototypeOf-BYVhAdwF.js";import"./cloneDeep-kl2wD128.js";import"./index-CKJfshIT.js";import"./index-CeKoIcWT.js";export{g as DocsRenderer,h as defaultComponents}; +import{D as g,d as h}from"./chunk-HLWAVYOI-DX5qqaYu.js";import"./iframe-BQtATEn0.js";import"../sb-preview/runtime.js";import"./index-CBqU2yxZ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./react-18-DnM9deRA.js";import"./index-DZGZymok.js";import"./pickBy-Us6u5-To.js";import"./mapValues-LQZI9uWW.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./index-Cw1G72V2.js";import"./extends-CCbyfPlC.js";import"./assertThisInitialized-B9jnkVVz.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getPrototypeOf-BYVhAdwF.js";import"./cloneDeep-C80tdQ4I.js";import"./index-CKJfshIT.js";import"./index-mVz13F_n.js";export{g as DocsRenderer,h as defaultComponents}; diff --git a/docs/assets/EditModal-DRtAb_yR.js b/docs/assets/EditModal-WP1CvOLP.js similarity index 94% rename from docs/assets/EditModal-DRtAb_yR.js rename to docs/assets/EditModal-WP1CvOLP.js index 2dea5983..695b3c3a 100644 --- a/docs/assets/EditModal-DRtAb_yR.js +++ b/docs/assets/EditModal-WP1CvOLP.js @@ -1,3 +1,3 @@ -import{j as o}from"./jsx-runtime-BTCK_S7S.js";import"./index.es28-dE8xdd4L.js";import{r as u}from"./index-CBqU2yxZ.js";import{H as f}from"./index.es3-D5uPylQL.js";import{M as r}from"./Message-3p6wyYpA.js";import{B as s}from"./Button-Blq7Z6RX.js";import{L as a}from"./Loader-CooidObp.js";import{D as h}from"./Dimmer-D_gwaesu.js";import{M as g}from"./Modal-Bz2VEyQG.js";import{T as d}from"./Toaster-C1YYqOUE.js";import{i as t}from"./i18n-C8zWlANG.js";const n=f(e=>{const m=e.component,[l,i]=u.useState(!1),c=!!(e.errors&&e.errors.length);return o.jsxs(m,{...e,children:[e.showLoading&&e.loading&&o.jsx(h,{active:e.loading,inverted:!0,children:o.jsx(a,{content:t.t("Common.messages.loading")})}),l&&c&&o.jsxs(d,{onDismiss:()=>i(!1),timeout:0,type:d.MessageTypes.negative,children:[o.jsx(r.Header,{content:t.t("Common.messages.error.header")}),o.jsx(r.List,{items:e.errors})]}),o.jsxs(g.Actions,{className:"edit-modal-actions",children:[o.jsxs(s,{disabled:e.saving,onClick:()=>(i(!0),e.onSave()),primary:!0,size:"medium",type:"submit",children:[t.t("Common.buttons.save"),e.saving&&o.jsx(a,{active:!0,className:"saving",inline:!0,size:"tiny"})]}),o.jsx(s,{basic:!0,disabled:e.saving,onClick:e.onClose.bind(void 0),size:"medium",type:"button",children:t.t("Common.buttons.cancel")})]})]})});n.defaultProps={showLoading:!0};const k=n;n.__docgenInfo={description:`The EditModal component can be used to edit the details of a single record within a modal view. This +import{j as o}from"./jsx-runtime-BTCK_S7S.js";import"./index.es28-Dp3-vHIY.js";import{r as u}from"./index-CBqU2yxZ.js";import{H as f}from"./index.es3-Dgr_7mVc.js";import{M as r}from"./Message-3p6wyYpA.js";import{B as s}from"./Button-Blq7Z6RX.js";import{L as a}from"./Loader-CooidObp.js";import{D as h}from"./Dimmer-D_gwaesu.js";import{M as g}from"./Modal-Bz2VEyQG.js";import{T as d}from"./Toaster-C1YYqOUE.js";import{i as t}from"./i18n-C8zWlANG.js";const n=f(e=>{const m=e.component,[l,i]=u.useState(!1),c=!!(e.errors&&e.errors.length);return o.jsxs(m,{...e,children:[e.showLoading&&e.loading&&o.jsx(h,{active:e.loading,inverted:!0,children:o.jsx(a,{content:t.t("Common.messages.loading")})}),l&&c&&o.jsxs(d,{onDismiss:()=>i(!1),timeout:0,type:d.MessageTypes.negative,children:[o.jsx(r.Header,{content:t.t("Common.messages.error.header")}),o.jsx(r.List,{items:e.errors})]}),o.jsxs(g.Actions,{className:"edit-modal-actions",children:[o.jsxs(s,{disabled:e.saving,onClick:()=>(i(!0),e.onSave()),primary:!0,size:"medium",type:"submit",children:[t.t("Common.buttons.save"),e.saving&&o.jsx(a,{active:!0,className:"saving",inline:!0,size:"tiny"})]}),o.jsx(s,{basic:!0,disabled:e.saving,onClick:e.onClose.bind(void 0),size:"medium",type:"button",children:t.t("Common.buttons.cancel")})]})]})});n.defaultProps={showLoading:!0};const k=n;n.__docgenInfo={description:`The EditModal component can be used to edit the details of a single record within a modal view. This component uses the EditContainer higher-order component to facilitate all of the editing functionality. This component is responsible for rendering the container in which the editable form is rendered.`,methods:[],displayName:"EditModal",props:{component:{required:!0,flowType:{name:"ComponentType",elements:[{name:"any"}],raw:"ComponentType"},description:"The form component to render."},onClose:{required:!0,flowType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:"Callback fired when the close button is clicked."},onSave:{required:!0,flowType:{name:"signature",type:"function",raw:"() => Promise",signature:{arguments:[],return:{name:"Promise",elements:[{name:"any"}],raw:"Promise"}}},description:"Callback fired when the save button is clicked."},showLoading:{required:!1,flowType:{name:"boolean"},description:"If true, a loading indicator will display.",defaultValue:{value:"true",computed:!1}}}};export{k as E}; diff --git a/docs/assets/EditModal.stories-CwYJ6YVE.js b/docs/assets/EditModal.stories-hrnq1AGc.js similarity index 92% rename from docs/assets/EditModal.stories-CwYJ6YVE.js rename to docs/assets/EditModal.stories-hrnq1AGc.js index 2aec1227..da88d224 100644 --- a/docs/assets/EditModal.stories-CwYJ6YVE.js +++ b/docs/assets/EditModal.stories-hrnq1AGc.js @@ -1,4 +1,4 @@ -import{j as e}from"./jsx-runtime-BTCK_S7S.js";import{a as u}from"./chunk-WFFRPTHA-B2vgThZf.js";import{d as R}from"./index-DfmhmaGJ.js";import{r as C}from"./index-CBqU2yxZ.js";import{F as r}from"./Form-fErk-qk_.js";import{M as x}from"./Message-3p6wyYpA.js";import{B as _}from"./Button-Blq7Z6RX.js";import{I as H}from"./Icon-2tEtgK8g.js";import{M as a}from"./Modal-Bz2VEyQG.js";import{_ as W}from"./index-default-C_maRo4o.js";import{A as O}from"./AddModal-8so4BWij.js";import{A as k}from"./Api-DXLamogn.js";import{A as D}from"./AssociatedDropdown-CR7UI3kV.js";import{E as s}from"./EditModal-DRtAb_yR.js";import{i as L}from"./Companies-Dq8qL_4h.js";import"./preview-errors-CzpZmerH.js";import"./index-CKJfshIT.js";import"./v4-D8aEg3BZ.js";import"./mapValues-CZh2vnSw.js";import"./_commonjsHelpers-BosuxZz1.js";import"./pickBy-CU2rOOKe.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-Bu_b4Pek.js";import"./index-Cw1G72V2.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./debounce-Bq1aTuh-.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getElementType-CckcRzoH.js";import"./Label-Cq1fb1cd.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./forEach-CXlln0XP.js";import"./Dimmer-D_gwaesu.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./index-DZGZymok.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./Checkbox-C9uAfnsM.js";import"./_baseSet-6y0qliU9.js";import"./_baseAssignValue-izmKBXUH.js";import"./Dropdown-Di2cPjwR.js";import"./map-B4PnIEPz.js";import"./without-BP-mqg2K.js";import"./isArrayLikeObject-CbXKTyfk.js";import"./isEmpty-Cyb9hIKi.js";import"./deburr-CEfyoYOr.js";import"./index-BBpNyw-T.js";import"./_arrayReduce-CrxnWFSq.js";import"./filter-CVNi8iPS.js";import"./Input--hQVCRQV.js";import"./index.es28-dE8xdd4L.js";import"./iframe-ovyJW9VA.js";import"../sb-preview/runtime.js";import"./i18n-C8zWlANG.js";import"./i18next-Sc0HEOoc.js";import"./toPropertyKey-hKuLU48H.js";import"./defineProperty-CCxoMnQV.js";import"./inherits-D5wXBZoG.js";import"./createClass-D2z1h_eG.js";import"./getPrototypeOf-BYVhAdwF.js";import"./Toaster-C1YYqOUE.js";import"./Transition-DSFEXhCu.js";import"./index.es3-D5uPylQL.js";import"./Loader-CooidObp.js";const ro={title:"Components/Semantic UI/EditModal",component:s},c=n=>o=>{const[t,h]=C.useState(!1),q=C.useCallback(()=>{h(!1),u("close")()},[]),y=C.useCallback(()=>(h(!1),u("save")(),Promise.resolve()),[]);return e.jsxs(e.Fragment,{children:[e.jsx(_,{content:"Open",primary:!0,onClick:()=>h(!0)}),e.jsx(n,{...o,onClose:q,onSave:y,open:t})]})},i=c(n=>e.jsx(s,{component:o=>e.jsxs(a,{as:r,open:n.open,children:[e.jsx(a.Header,{content:"Add Record"}),e.jsxs(a.Content,{children:[e.jsx(r.Input,{label:"Name"}),e.jsx(r.Input,{label:"Address"}),e.jsx(r.Input,{label:"Phone"})]}),o.children]}),onClose:n.onClose,onSave:n.onSave})),d=c(n=>e.jsx(s,{component:o=>e.jsxs(a,{as:r,open:n.open,children:[e.jsx(a.Header,{content:"Add Record"}),e.jsxs(a.Content,{children:[e.jsx(r.Input,{label:"Name"}),e.jsx(r.Input,{label:"Address"}),e.jsx(r.Input,{label:"Phone"})]}),o.children]}),item:{id:1},onClose:n.onClose,onInitialize:()=>new Promise(o=>{W.delay(o.bind(void 0,{}),5e3)}),onSave:n.onSave})),p=c(n=>e.jsx(s,{component:o=>e.jsxs(a,{as:r,open:n.open,noValidate:!0,children:[e.jsx(a.Header,{content:"Add Record"}),e.jsxs(a.Content,{children:[e.jsx(r.Input,{required:o.isRequired("name"),error:o.isError("name"),label:"Name",onChange:o.onTextInputChange.bind(void 0,"name")}),e.jsx(r.Input,{required:o.isRequired("address"),error:o.isError("address"),label:"Address",onChange:o.onTextInputChange.bind(void 0,"address")}),e.jsx(r.Input,{required:o.isRequired("phone"),error:o.isError("phone"),onChange:o.onTextInputChange.bind(void 0,"phone"),label:"Phone"})]}),o.children]}),onClose:n.onClose,onSave:n.onSave,required:["phone","name","address"]})),l=c(n=>e.jsx(s,{component:o=>e.jsxs(a,{as:r,open:n.open,children:[e.jsx(a.Header,{content:"Add Record"}),e.jsxs(a.Content,{children:[e.jsx(r.Input,{label:"Name"}),e.jsx(r.Input,{label:"Address"}),e.jsx(r.Input,{label:"Phone"}),e.jsx(r.Input,{label:"Field",required:!0,children:e.jsx(D,{collectionName:"items",modal:{component:O,onSave:()=>(u("save")(),Promise.resolve({}))},onSearch:t=>k.onLoad({items:L,search:t}),onSelection:u("selection"),renderOption:t=>({key:t.id,value:t.id,text:t.company,description:t.country}),upward:R.boolean("Open upward",!1)})})]}),o.children]}),onClose:n.onClose,onSave:n.onSave})),m=c(n=>e.jsx(s,{component:o=>e.jsxs(a,{as:r,open:n.open,children:[e.jsx(a.Header,{content:"Add record"}),e.jsxs(a.Content,{children:[e.jsxs(x,{warning:!0,visible:o.dirty,children:[e.jsxs(x.Header,{children:[e.jsx(H,{name:"exclamation triangle"}),"Warning"]}),e.jsx("p",{children:"You have unsaved changes."})]}),e.jsx(r.Input,{label:"Name",onChange:o.onTextInputChange.bind(void 0,"name"),value:o.item.name||""}),e.jsx(r.Input,{label:"Address",onChange:o.onTextInputChange.bind(void 0,"address"),value:o.item.address||""}),e.jsx(r.Input,{label:"Phone",onChange:o.onTextInputChange.bind(void 0,"phone"),value:o.item.phone||""})]}),o.children]}),item:{id:1,name:"Test",address:"123 Main St",phone:null},onClose:n.onClose,onSave:n.onSave}));i.__docgenInfo={description:"",methods:[],displayName:"Default"};d.__docgenInfo={description:"",methods:[],displayName:"Loading"};p.__docgenInfo={description:"",methods:[],displayName:"SaveError"};l.__docgenInfo={description:"",methods:[],displayName:"Toaster"};m.__docgenInfo={description:"",methods:[],displayName:"UnsavedChanges"};var v,I,g;i.parameters={...i.parameters,docs:{...(v=i.parameters)==null?void 0:v.docs,source:{originalSource:`withWrapper(props => +import{j as e}from"./jsx-runtime-BTCK_S7S.js";import{a as u}from"./chunk-WFFRPTHA-B2vgThZf.js";import{d as R}from"./index-CAen7T_W.js";import{r as C}from"./index-CBqU2yxZ.js";import{F as r}from"./Form-fErk-qk_.js";import{M as x}from"./Message-3p6wyYpA.js";import{B as _}from"./Button-Blq7Z6RX.js";import{I as H}from"./Icon-2tEtgK8g.js";import{M as a}from"./Modal-Bz2VEyQG.js";import{_ as W}from"./index-default-C_maRo4o.js";import{A as O}from"./AddModal-8so4BWij.js";import{A as k}from"./Api-DXLamogn.js";import{A as D}from"./AssociatedDropdown-DQppeffT.js";import{E as s}from"./EditModal-WP1CvOLP.js";import{i as L}from"./Companies-Dq8qL_4h.js";import"./preview-errors-CzpZmerH.js";import"./index-CKJfshIT.js";import"./v4-D8aEg3BZ.js";import"./mapValues-LQZI9uWW.js";import"./_commonjsHelpers-BosuxZz1.js";import"./pickBy-Us6u5-To.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-DCkRKKtx.js";import"./index-Cw1G72V2.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./debounce-BkgZrIul.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getElementType-CckcRzoH.js";import"./Label-Cq1fb1cd.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./forEach-CXlln0XP.js";import"./Dimmer-D_gwaesu.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./index-DZGZymok.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./Checkbox-C9uAfnsM.js";import"./_baseSet-6y0qliU9.js";import"./_baseAssignValue-izmKBXUH.js";import"./Dropdown-Di2cPjwR.js";import"./map-B4PnIEPz.js";import"./without-BP-mqg2K.js";import"./isArrayLikeObject-CbXKTyfk.js";import"./isEmpty-Cyb9hIKi.js";import"./deburr-CEfyoYOr.js";import"./index-BBpNyw-T.js";import"./_arrayReduce-CrxnWFSq.js";import"./filter-CVNi8iPS.js";import"./Input--hQVCRQV.js";import"./index.es28-Dp3-vHIY.js";import"./iframe-BQtATEn0.js";import"../sb-preview/runtime.js";import"./i18n-C8zWlANG.js";import"./i18next-Sc0HEOoc.js";import"./toPropertyKey-hKuLU48H.js";import"./defineProperty-CCxoMnQV.js";import"./inherits-D5wXBZoG.js";import"./createClass-D2z1h_eG.js";import"./getPrototypeOf-BYVhAdwF.js";import"./Toaster-C1YYqOUE.js";import"./Transition-DSFEXhCu.js";import"./index.es3-Dgr_7mVc.js";import"./Loader-CooidObp.js";const ro={title:"Components/Semantic UI/EditModal",component:s},c=n=>o=>{const[t,h]=C.useState(!1),q=C.useCallback(()=>{h(!1),u("close")()},[]),y=C.useCallback(()=>(h(!1),u("save")(),Promise.resolve()),[]);return e.jsxs(e.Fragment,{children:[e.jsx(_,{content:"Open",primary:!0,onClick:()=>h(!0)}),e.jsx(n,{...o,onClose:q,onSave:y,open:t})]})},i=c(n=>e.jsx(s,{component:o=>e.jsxs(a,{as:r,open:n.open,children:[e.jsx(a.Header,{content:"Add Record"}),e.jsxs(a.Content,{children:[e.jsx(r.Input,{label:"Name"}),e.jsx(r.Input,{label:"Address"}),e.jsx(r.Input,{label:"Phone"})]}),o.children]}),onClose:n.onClose,onSave:n.onSave})),d=c(n=>e.jsx(s,{component:o=>e.jsxs(a,{as:r,open:n.open,children:[e.jsx(a.Header,{content:"Add Record"}),e.jsxs(a.Content,{children:[e.jsx(r.Input,{label:"Name"}),e.jsx(r.Input,{label:"Address"}),e.jsx(r.Input,{label:"Phone"})]}),o.children]}),item:{id:1},onClose:n.onClose,onInitialize:()=>new Promise(o=>{W.delay(o.bind(void 0,{}),5e3)}),onSave:n.onSave})),p=c(n=>e.jsx(s,{component:o=>e.jsxs(a,{as:r,open:n.open,noValidate:!0,children:[e.jsx(a.Header,{content:"Add Record"}),e.jsxs(a.Content,{children:[e.jsx(r.Input,{required:o.isRequired("name"),error:o.isError("name"),label:"Name",onChange:o.onTextInputChange.bind(void 0,"name")}),e.jsx(r.Input,{required:o.isRequired("address"),error:o.isError("address"),label:"Address",onChange:o.onTextInputChange.bind(void 0,"address")}),e.jsx(r.Input,{required:o.isRequired("phone"),error:o.isError("phone"),onChange:o.onTextInputChange.bind(void 0,"phone"),label:"Phone"})]}),o.children]}),onClose:n.onClose,onSave:n.onSave,required:["phone","name","address"]})),l=c(n=>e.jsx(s,{component:o=>e.jsxs(a,{as:r,open:n.open,children:[e.jsx(a.Header,{content:"Add Record"}),e.jsxs(a.Content,{children:[e.jsx(r.Input,{label:"Name"}),e.jsx(r.Input,{label:"Address"}),e.jsx(r.Input,{label:"Phone"}),e.jsx(r.Input,{label:"Field",required:!0,children:e.jsx(D,{collectionName:"items",modal:{component:O,onSave:()=>(u("save")(),Promise.resolve({}))},onSearch:t=>k.onLoad({items:L,search:t}),onSelection:u("selection"),renderOption:t=>({key:t.id,value:t.id,text:t.company,description:t.country}),upward:R.boolean("Open upward",!1)})})]}),o.children]}),onClose:n.onClose,onSave:n.onSave})),m=c(n=>e.jsx(s,{component:o=>e.jsxs(a,{as:r,open:n.open,children:[e.jsx(a.Header,{content:"Add record"}),e.jsxs(a.Content,{children:[e.jsxs(x,{warning:!0,visible:o.dirty,children:[e.jsxs(x.Header,{children:[e.jsx(H,{name:"exclamation triangle"}),"Warning"]}),e.jsx("p",{children:"You have unsaved changes."})]}),e.jsx(r.Input,{label:"Name",onChange:o.onTextInputChange.bind(void 0,"name"),value:o.item.name||""}),e.jsx(r.Input,{label:"Address",onChange:o.onTextInputChange.bind(void 0,"address"),value:o.item.address||""}),e.jsx(r.Input,{label:"Phone",onChange:o.onTextInputChange.bind(void 0,"phone"),value:o.item.phone||""})]}),o.children]}),item:{id:1,name:"Test",address:"123 Main St",phone:null},onClose:n.onClose,onSave:n.onSave}));i.__docgenInfo={description:"",methods:[],displayName:"Default"};d.__docgenInfo={description:"",methods:[],displayName:"Loading"};p.__docgenInfo={description:"",methods:[],displayName:"SaveError"};l.__docgenInfo={description:"",methods:[],displayName:"Toaster"};m.__docgenInfo={description:"",methods:[],displayName:"UnsavedChanges"};var v,I,g;i.parameters={...i.parameters,docs:{...(v=i.parameters)==null?void 0:v.docs,source:{originalSource:`withWrapper(props => diff --git a/docs/assets/EditPage.stories-CRgOvQDb.js b/docs/assets/EditPage.stories-ufc0BTYY.js similarity index 94% rename from docs/assets/EditPage.stories-CRgOvQDb.js rename to docs/assets/EditPage.stories-ufc0BTYY.js index 145e6251..7b58c7f2 100644 --- a/docs/assets/EditPage.stories-CRgOvQDb.js +++ b/docs/assets/EditPage.stories-ufc0BTYY.js @@ -1,4 +1,4 @@ -var B=Object.defineProperty;var $=(r,n,i)=>n in r?B(r,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):r[n]=i;var x=(r,n,i)=>($(r,typeof n!="symbol"?n+"":n,i),i);import{j as e}from"./jsx-runtime-BTCK_S7S.js";import{a as f}from"./chunk-WFFRPTHA-B2vgThZf.js";import{d as z}from"./index-DfmhmaGJ.js";import{r as H}from"./index-CBqU2yxZ.js";import{F as o}from"./Form-fErk-qk_.js";import{_ as t}from"./index-default-C_maRo4o.js";import{A as U}from"./AddModal-8so4BWij.js";import{A as V}from"./Api-DXLamogn.js";import{A as W}from"./AssociatedDropdown-CR7UI3kV.js";import"./index.es28-dE8xdd4L.js";import{H as G}from"./index.es3-D5uPylQL.js";import{M as h}from"./Menu-9i0apxqd.js";import{M as v}from"./Message-3p6wyYpA.js";import{L as J}from"./Loader-CooidObp.js";import{D as y}from"./Dimmer-D_gwaesu.js";import{C}from"./CancelButton-jygaxOmX.js";import{S as T}from"./SaveButton-Dq5XP_RE.js";import{T as S}from"./Toaster-C1YYqOUE.js";import{i as j}from"./i18n-C8zWlANG.js";import{i as K}from"./Companies-Dq8qL_4h.js";import"./preview-errors-CzpZmerH.js";import"./index-CKJfshIT.js";import"./v4-D8aEg3BZ.js";import"./mapValues-CZh2vnSw.js";import"./_commonjsHelpers-BosuxZz1.js";import"./pickBy-CU2rOOKe.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-Bu_b4Pek.js";import"./index-Cw1G72V2.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./debounce-Bq1aTuh-.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getElementType-CckcRzoH.js";import"./Button-Blq7Z6RX.js";import"./Icon-2tEtgK8g.js";import"./Label-Cq1fb1cd.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./forEach-CXlln0XP.js";import"./map-B4PnIEPz.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./index-DZGZymok.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./Checkbox-C9uAfnsM.js";import"./_baseSet-6y0qliU9.js";import"./_baseAssignValue-izmKBXUH.js";import"./Dropdown-Di2cPjwR.js";import"./without-BP-mqg2K.js";import"./isArrayLikeObject-CbXKTyfk.js";import"./isEmpty-Cyb9hIKi.js";import"./deburr-CEfyoYOr.js";import"./index-BBpNyw-T.js";import"./_arrayReduce-CrxnWFSq.js";import"./filter-CVNi8iPS.js";import"./Input--hQVCRQV.js";import"./Modal-Bz2VEyQG.js";import"./EditModal-DRtAb_yR.js";import"./iframe-ovyJW9VA.js";import"../sb-preview/runtime.js";import"./Transition-DSFEXhCu.js";import"./i18next-Sc0HEOoc.js";import"./toPropertyKey-hKuLU48H.js";import"./defineProperty-CCxoMnQV.js";import"./inherits-D5wXBZoG.js";import"./createClass-D2z1h_eG.js";import"./getPrototypeOf-BYVhAdwF.js";class g extends H.Component{constructor(n){super(n),this.state={currentTab:"",showToaster:!1}}componentDidMount(){if(this.props.menu){const n=t.first(this.props.menu.items);this.setState({currentTab:n&&n.key})}}componentDidUpdate(n){!t.isEmpty(this.props.errors)&&!t.isEmpty(n.errors)&&n.errors!==this.props.errors&&this.setState({showToaster:!0})}onSave(){return this.setState({showToaster:!0}),this.props.onSave()}render(){return e.jsxs(y.Dimmable,{as:"div",className:`edit-page ${this.props.className||""}`,children:[this.renderLoading(),e.jsxs(o,{noValidate:!0,children:[this.renderMenu(),this.renderButtons(),this.renderComponent(),this.renderToaster()]})]})}renderButtons(){return this.props.menu?null:e.jsxs("div",{className:"button-container",children:[e.jsx(T,{onClick:this.onSave.bind(this),saving:this.props.saving}),e.jsx(C,{disabled:this.props.saving,onClick:this.props.onClose.bind(this)})]})}renderComponent(){const n=this.props.component;return e.jsx(n,{...this.props,currentTab:this.state.currentTab})}renderLoading(){return this.props.showLoading&&this.props.loading?e.jsx(y,{active:this.props.loading,inverted:!0,children:e.jsx(J,{content:j.t("Common.messages.loading")})}):null}renderMenu(){return this.props.menu?e.jsxs(h,{...t.omit(this.props.menu,"items"),children:[this.props.menu&&t.map(this.props.menu.items,n=>e.jsx(h.Item,{active:n.key===this.state.currentTab,name:n.name,onClick:()=>this.setState({currentTab:n.key})},n.key)),e.jsx(h.Menu,{position:"right",children:e.jsxs(h.Item,{children:[e.jsx(T,{onClick:this.onSave.bind(this),saving:this.props.saving}),e.jsx(C,{disabled:this.props.saving,onClick:this.props.onClose.bind(this)})]})})]}):null}renderToaster(){return!this.state.showToaster||!(this.props.errors&&this.props.errors.length)?null:e.jsxs(S,{onDismiss:()=>this.setState({showToaster:!1}),timeout:0,type:S.MessageTypes.negative,children:[e.jsx(v.Header,{content:j.t("Common.messages.error.header")}),e.jsx(v.List,{items:this.props.errors})]})}}x(g,"defaultProps");g.defaultProps={showLoading:!0};const Q=G(g),s=Q;g.__docgenInfo={description:`The EditPage component can be used to edit the details of a single record within a page view. This +var B=Object.defineProperty;var $=(r,n,i)=>n in r?B(r,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):r[n]=i;var x=(r,n,i)=>($(r,typeof n!="symbol"?n+"":n,i),i);import{j as e}from"./jsx-runtime-BTCK_S7S.js";import{a as f}from"./chunk-WFFRPTHA-B2vgThZf.js";import{d as z}from"./index-CAen7T_W.js";import{r as H}from"./index-CBqU2yxZ.js";import{F as o}from"./Form-fErk-qk_.js";import{_ as t}from"./index-default-C_maRo4o.js";import{A as U}from"./AddModal-8so4BWij.js";import{A as V}from"./Api-DXLamogn.js";import{A as W}from"./AssociatedDropdown-DQppeffT.js";import"./index.es28-Dp3-vHIY.js";import{H as G}from"./index.es3-Dgr_7mVc.js";import{M as h}from"./Menu-9i0apxqd.js";import{M as v}from"./Message-3p6wyYpA.js";import{L as J}from"./Loader-CooidObp.js";import{D as y}from"./Dimmer-D_gwaesu.js";import{C}from"./CancelButton-jygaxOmX.js";import{S as T}from"./SaveButton-Dq5XP_RE.js";import{T as S}from"./Toaster-C1YYqOUE.js";import{i as j}from"./i18n-C8zWlANG.js";import{i as K}from"./Companies-Dq8qL_4h.js";import"./preview-errors-CzpZmerH.js";import"./index-CKJfshIT.js";import"./v4-D8aEg3BZ.js";import"./mapValues-LQZI9uWW.js";import"./_commonjsHelpers-BosuxZz1.js";import"./pickBy-Us6u5-To.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-DCkRKKtx.js";import"./index-Cw1G72V2.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./debounce-BkgZrIul.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getElementType-CckcRzoH.js";import"./Button-Blq7Z6RX.js";import"./Icon-2tEtgK8g.js";import"./Label-Cq1fb1cd.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./forEach-CXlln0XP.js";import"./map-B4PnIEPz.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./index-DZGZymok.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./Checkbox-C9uAfnsM.js";import"./_baseSet-6y0qliU9.js";import"./_baseAssignValue-izmKBXUH.js";import"./Dropdown-Di2cPjwR.js";import"./without-BP-mqg2K.js";import"./isArrayLikeObject-CbXKTyfk.js";import"./isEmpty-Cyb9hIKi.js";import"./deburr-CEfyoYOr.js";import"./index-BBpNyw-T.js";import"./_arrayReduce-CrxnWFSq.js";import"./filter-CVNi8iPS.js";import"./Input--hQVCRQV.js";import"./Modal-Bz2VEyQG.js";import"./EditModal-WP1CvOLP.js";import"./iframe-BQtATEn0.js";import"../sb-preview/runtime.js";import"./Transition-DSFEXhCu.js";import"./i18next-Sc0HEOoc.js";import"./toPropertyKey-hKuLU48H.js";import"./defineProperty-CCxoMnQV.js";import"./inherits-D5wXBZoG.js";import"./createClass-D2z1h_eG.js";import"./getPrototypeOf-BYVhAdwF.js";class g extends H.Component{constructor(n){super(n),this.state={currentTab:"",showToaster:!1}}componentDidMount(){if(this.props.menu){const n=t.first(this.props.menu.items);this.setState({currentTab:n&&n.key})}}componentDidUpdate(n){!t.isEmpty(this.props.errors)&&!t.isEmpty(n.errors)&&n.errors!==this.props.errors&&this.setState({showToaster:!0})}onSave(){return this.setState({showToaster:!0}),this.props.onSave()}render(){return e.jsxs(y.Dimmable,{as:"div",className:`edit-page ${this.props.className||""}`,children:[this.renderLoading(),e.jsxs(o,{noValidate:!0,children:[this.renderMenu(),this.renderButtons(),this.renderComponent(),this.renderToaster()]})]})}renderButtons(){return this.props.menu?null:e.jsxs("div",{className:"button-container",children:[e.jsx(T,{onClick:this.onSave.bind(this),saving:this.props.saving}),e.jsx(C,{disabled:this.props.saving,onClick:this.props.onClose.bind(this)})]})}renderComponent(){const n=this.props.component;return e.jsx(n,{...this.props,currentTab:this.state.currentTab})}renderLoading(){return this.props.showLoading&&this.props.loading?e.jsx(y,{active:this.props.loading,inverted:!0,children:e.jsx(J,{content:j.t("Common.messages.loading")})}):null}renderMenu(){return this.props.menu?e.jsxs(h,{...t.omit(this.props.menu,"items"),children:[this.props.menu&&t.map(this.props.menu.items,n=>e.jsx(h.Item,{active:n.key===this.state.currentTab,name:n.name,onClick:()=>this.setState({currentTab:n.key})},n.key)),e.jsx(h.Menu,{position:"right",children:e.jsxs(h.Item,{children:[e.jsx(T,{onClick:this.onSave.bind(this),saving:this.props.saving}),e.jsx(C,{disabled:this.props.saving,onClick:this.props.onClose.bind(this)})]})})]}):null}renderToaster(){return!this.state.showToaster||!(this.props.errors&&this.props.errors.length)?null:e.jsxs(S,{onDismiss:()=>this.setState({showToaster:!1}),timeout:0,type:S.MessageTypes.negative,children:[e.jsx(v.Header,{content:j.t("Common.messages.error.header")}),e.jsx(v.List,{items:this.props.errors})]})}}x(g,"defaultProps");g.defaultProps={showLoading:!0};const Q=G(g),s=Q;g.__docgenInfo={description:`The EditPage component can be used to edit the details of a single record within a page view. This component uses the EditContainer higher-order component to facilitate all of the editing functionality. This component is responsible for rendering the container in which the editable form is rendered.`,methods:[{name:"onSave",docblock:`Shows the toaster and calls the onSave prop. diff --git a/docs/assets/EmbeddedList.stories-B55bOPxL.js b/docs/assets/EmbeddedList.stories-bBwQoxqi.js similarity index 97% rename from docs/assets/EmbeddedList.stories-B55bOPxL.js rename to docs/assets/EmbeddedList.stories-bBwQoxqi.js index f17a687a..c1a3454a 100644 --- a/docs/assets/EmbeddedList.stories-B55bOPxL.js +++ b/docs/assets/EmbeddedList.stories-bBwQoxqi.js @@ -1,4 +1,4 @@ -var ye=Object.defineProperty;var fe=(a,e,n)=>e in a?ye(a,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):a[e]=n;var _=(a,e,n)=>(fe(a,typeof e!="symbol"?e+"":e,n),n);import{j as t}from"./jsx-runtime-BTCK_S7S.js";import{a as o}from"./chunk-WFFRPTHA-B2vgThZf.js";import{d as c}from"./index-DfmhmaGJ.js";import{r as I}from"./index-CBqU2yxZ.js";import{B as he}from"./Button-Blq7Z6RX.js";import{i as p,S as A,C as ge}from"./Colors-DiV52Fwf.js";import{I as be}from"./Icon-2tEtgK8g.js";import{_ as u}from"./index-default-C_maRo4o.js";import{A as R}from"./AddModal-8so4BWij.js";import{E as we}from"./EditModal-DRtAb_yR.js";import{T as N}from"./Table-Xx3vjhN9.js";import{u as ve}from"./uuid-BH6G0oTz.js";import{D as Ce}from"./DataTable-CZodmOBN.js";import{D as ke}from"./Draggable-KQRXc-DM.js";import{T as x}from"./TabbedModal-DZNfI0w-.js";import{u as s}from"./DragDrop-ryAVAQMJ.js";import"./preview-errors-CzpZmerH.js";import"./index-CKJfshIT.js";import"./v4-D8aEg3BZ.js";import"./mapValues-CZh2vnSw.js";import"./_commonjsHelpers-BosuxZz1.js";import"./pickBy-CU2rOOKe.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-Bu_b4Pek.js";import"./index-Cw1G72V2.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./debounce-Bq1aTuh-.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getElementType-CckcRzoH.js";import"./Label-Cq1fb1cd.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./forEach-CXlln0XP.js";import"./Dimmer-D_gwaesu.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./index-DZGZymok.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./map-B4PnIEPz.js";import"./Modal-Bz2VEyQG.js";import"./index-BBpNyw-T.js";import"./_baseSet-6y0qliU9.js";import"./_baseAssignValue-izmKBXUH.js";import"./_arrayReduce-CrxnWFSq.js";import"./isEmpty-Cyb9hIKi.js";import"./index.es28-dE8xdd4L.js";import"./iframe-ovyJW9VA.js";import"../sb-preview/runtime.js";import"./index.es3-D5uPylQL.js";import"./Message-3p6wyYpA.js";import"./Loader-CooidObp.js";import"./Toaster-C1YYqOUE.js";import"./Transition-DSFEXhCu.js";import"./filter-CVNi8iPS.js";import"./i18n-C8zWlANG.js";import"./i18next-Sc0HEOoc.js";import"./toPropertyKey-hKuLU48H.js";import"./defineProperty-CCxoMnQV.js";import"./inherits-D5wXBZoG.js";import"./createClass-D2z1h_eG.js";import"./getPrototypeOf-BYVhAdwF.js";import"./Checkbox-C9uAfnsM.js";import"./Popup-BP01NTlV.js";import"./Dropdown-Di2cPjwR.js";import"./without-BP-mqg2K.js";import"./isArrayLikeObject-CbXKTyfk.js";import"./deburr-CEfyoYOr.js";import"./List-B05DD_Os.js";import"./Confirm-Dw9rt56R.js";import"./Pagination-D0HmnRDL.js";import"./Menu-9i0apxqd.js";import"./Grid-Czr5owxQ.js";import"./Header-BJ3NNdPz.js";import"./DropdownButton-D3g-r0e9.js";import"./Form-fErk-qk_.js";import"./Input--hQVCRQV.js";import"./AssociatedDropdown-CR7UI3kV.js";import"./FuzzyDate-RqvLBloE.js";import"./DateInput-BO57_F9J.js";import"./ModalContext-Bu-D9kD-.js";import"./Trans-Bk6mzQm0.js";import"./objectWithoutProperties--RY0eV0u.js";import"./utils-Bq6oISwF.js";import"./useDrop-BRQoWSA5.js";import"./DndContext-B-2NJP7Z.js";import"./redux-C8f_Y06i.js";import"./objectSpread2-N4c0DWqo.js";import"./index.es21-BD0kU5QO.js";const De=".",q="ascending",j="descending";class S extends I.Component{constructor(e){super(e),this.state={sortColumn:null,sortDirection:null}}componentDidMount(){let e;this.props.defaultSort?e=u.findWhere(this.props.columns,{name:this.props.defaultSort}):e=u.find(this.props.columns,n=>n.sortable!==!1),e&&this.onColumnClick(e,this.props.defaultSortDirection)}getItems(){const{items:e}=this.props,{sortColumn:n,sortDirection:d}=this.state;return u.orderBy(u.filter(e,r=>!r._destroy),n,d)}onColumnClick(e,n=q){if(this.props.onDrag||e.sortable===!1)return;const d=e.name;let r=n||q;e.name===this.state.sortColumn&&(r=this.state.sortDirection===q?j:q),this.setState({sortColumn:d,sortDirection:r})}onDelete(e){return this.props.onDelete(e),Promise.resolve()}onSave(e){const n=e.uid?e.uid:ve();return this.props.onSave&&this.props.onSave({...e,uid:n}),Promise.resolve()}render(){return t.jsx(Ce,{...this.props,actions:this.props.actions,addButton:this.props.addButton,buttons:this.props.buttons,className:`embedded-list ${this.props.className?this.props.className:""}`,configurable:this.props.configurable,columns:this.props.columns,count:this.props.items.length,items:this.getItems(),modal:this.props.modal,onColumnClick:this.onColumnClick.bind(this),onCopy:this.props.onCopy,onDrag:this.props.onDrag,onDelete:this.onDelete.bind(this),onSave:this.onSave.bind(this),renderDeleteModal:this.props.renderDeleteModal,renderEmptyRow:this.props.renderEmptyRow,renderItem:this.renderItem.bind(this),sortColumn:this.state.sortColumn,sortDirection:this.state.sortDirection,tableProps:{celled:!0,sortable:!this.props.onDrag},selectable:this.props.selectable,onRowSelect:this.props.onRowSelect,selectedRows:this.props.selectedRows,showRecordCount:this.props.showRecordCount})}renderItem(e,n,d){if(this.props.onDrag){const r=e.id||e.uid;return t.jsx(ke,{id:r,index:n,item:e,onDrag:this.props.onDrag.bind(this),children:t.jsx(N.Row,{children:d})},r)}return t.jsx(N.Row,{children:d},n)}}_(S,"defaultProps");u.mixin({orderBy:(a,e,n)=>{if(!e)return a;const d=u.property(e.split(De));let r=u.sortBy(a,E=>d(E));return n===j&&(r=r.reverse()),r}});S.defaultProps={items:[],addButton:{location:"top"},buttons:[],className:"",configurable:!0,modal:void 0,onCopy:void 0,onDrag:void 0,onSave:()=>{},renderDeleteModal:void 0,renderEmptyRow:void 0};const i=S;S.__docgenInfo={description:`The EmbeddedList component can be used to display a collection of records that live within a parent +var ye=Object.defineProperty;var fe=(a,e,n)=>e in a?ye(a,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):a[e]=n;var _=(a,e,n)=>(fe(a,typeof e!="symbol"?e+"":e,n),n);import{j as t}from"./jsx-runtime-BTCK_S7S.js";import{a as o}from"./chunk-WFFRPTHA-B2vgThZf.js";import{d as c}from"./index-CAen7T_W.js";import{r as I}from"./index-CBqU2yxZ.js";import{B as he}from"./Button-Blq7Z6RX.js";import{i as p,S as A,C as ge}from"./Colors-DiV52Fwf.js";import{I as be}from"./Icon-2tEtgK8g.js";import{_ as u}from"./index-default-C_maRo4o.js";import{A as R}from"./AddModal-8so4BWij.js";import{E as we}from"./EditModal-WP1CvOLP.js";import{T as N}from"./Table-Xx3vjhN9.js";import{u as ve}from"./uuid-BH6G0oTz.js";import{D as Ce}from"./DataTable-Cu5azNeI.js";import{D as ke}from"./Draggable-KQRXc-DM.js";import{T as x}from"./TabbedModal-80_P0_JO.js";import{u as s}from"./DragDrop-ryAVAQMJ.js";import"./preview-errors-CzpZmerH.js";import"./index-CKJfshIT.js";import"./v4-D8aEg3BZ.js";import"./mapValues-LQZI9uWW.js";import"./_commonjsHelpers-BosuxZz1.js";import"./pickBy-Us6u5-To.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-DCkRKKtx.js";import"./index-Cw1G72V2.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./debounce-BkgZrIul.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getElementType-CckcRzoH.js";import"./Label-Cq1fb1cd.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./forEach-CXlln0XP.js";import"./Dimmer-D_gwaesu.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./index-DZGZymok.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./map-B4PnIEPz.js";import"./Modal-Bz2VEyQG.js";import"./index-BBpNyw-T.js";import"./_baseSet-6y0qliU9.js";import"./_baseAssignValue-izmKBXUH.js";import"./_arrayReduce-CrxnWFSq.js";import"./isEmpty-Cyb9hIKi.js";import"./index.es28-Dp3-vHIY.js";import"./iframe-BQtATEn0.js";import"../sb-preview/runtime.js";import"./index.es3-Dgr_7mVc.js";import"./Message-3p6wyYpA.js";import"./Loader-CooidObp.js";import"./Toaster-C1YYqOUE.js";import"./Transition-DSFEXhCu.js";import"./filter-CVNi8iPS.js";import"./i18n-C8zWlANG.js";import"./i18next-Sc0HEOoc.js";import"./toPropertyKey-hKuLU48H.js";import"./defineProperty-CCxoMnQV.js";import"./inherits-D5wXBZoG.js";import"./createClass-D2z1h_eG.js";import"./getPrototypeOf-BYVhAdwF.js";import"./Checkbox-C9uAfnsM.js";import"./Popup-BP01NTlV.js";import"./Dropdown-Di2cPjwR.js";import"./without-BP-mqg2K.js";import"./isArrayLikeObject-CbXKTyfk.js";import"./deburr-CEfyoYOr.js";import"./List-tmAiyZhD.js";import"./Confirm-Dw9rt56R.js";import"./Pagination-D0HmnRDL.js";import"./Menu-9i0apxqd.js";import"./Grid-Czr5owxQ.js";import"./Header-BJ3NNdPz.js";import"./DropdownButton-D3g-r0e9.js";import"./Form-fErk-qk_.js";import"./Input--hQVCRQV.js";import"./AssociatedDropdown-DQppeffT.js";import"./FuzzyDate-Bx1epA16.js";import"./DateInput-BO57_F9J.js";import"./ModalContext-Bu-D9kD-.js";import"./Trans-Bk6mzQm0.js";import"./objectWithoutProperties--RY0eV0u.js";import"./utils-Bq6oISwF.js";import"./useDrop-BRQoWSA5.js";import"./DndContext-B-2NJP7Z.js";import"./redux-C8f_Y06i.js";import"./objectSpread2-N4c0DWqo.js";import"./index.es21-BD0kU5QO.js";const De=".",q="ascending",j="descending";class S extends I.Component{constructor(e){super(e),this.state={sortColumn:null,sortDirection:null}}componentDidMount(){let e;this.props.defaultSort?e=u.findWhere(this.props.columns,{name:this.props.defaultSort}):e=u.find(this.props.columns,n=>n.sortable!==!1),e&&this.onColumnClick(e,this.props.defaultSortDirection)}getItems(){const{items:e}=this.props,{sortColumn:n,sortDirection:d}=this.state;return u.orderBy(u.filter(e,r=>!r._destroy),n,d)}onColumnClick(e,n=q){if(this.props.onDrag||e.sortable===!1)return;const d=e.name;let r=n||q;e.name===this.state.sortColumn&&(r=this.state.sortDirection===q?j:q),this.setState({sortColumn:d,sortDirection:r})}onDelete(e){return this.props.onDelete(e),Promise.resolve()}onSave(e){const n=e.uid?e.uid:ve();return this.props.onSave&&this.props.onSave({...e,uid:n}),Promise.resolve()}render(){return t.jsx(Ce,{...this.props,actions:this.props.actions,addButton:this.props.addButton,buttons:this.props.buttons,className:`embedded-list ${this.props.className?this.props.className:""}`,configurable:this.props.configurable,columns:this.props.columns,count:this.props.items.length,items:this.getItems(),modal:this.props.modal,onColumnClick:this.onColumnClick.bind(this),onCopy:this.props.onCopy,onDrag:this.props.onDrag,onDelete:this.onDelete.bind(this),onSave:this.onSave.bind(this),renderDeleteModal:this.props.renderDeleteModal,renderEmptyRow:this.props.renderEmptyRow,renderItem:this.renderItem.bind(this),sortColumn:this.state.sortColumn,sortDirection:this.state.sortDirection,tableProps:{celled:!0,sortable:!this.props.onDrag},selectable:this.props.selectable,onRowSelect:this.props.onRowSelect,selectedRows:this.props.selectedRows,showRecordCount:this.props.showRecordCount})}renderItem(e,n,d){if(this.props.onDrag){const r=e.id||e.uid;return t.jsx(ke,{id:r,index:n,item:e,onDrag:this.props.onDrag.bind(this),children:t.jsx(N.Row,{children:d})},r)}return t.jsx(N.Row,{children:d},n)}}_(S,"defaultProps");u.mixin({orderBy:(a,e,n)=>{if(!e)return a;const d=u.property(e.split(De));let r=u.sortBy(a,E=>d(E));return n===j&&(r=r.reverse()),r}});S.defaultProps={items:[],addButton:{location:"top"},buttons:[],className:"",configurable:!0,modal:void 0,onCopy:void 0,onDrag:void 0,onSave:()=>{},renderDeleteModal:void 0,renderEmptyRow:void 0};const i=S;S.__docgenInfo={description:`The EmbeddedList component can be used to display a collection of records that live within a parent object. This is especially useful when the collection is to be saved at the same time as the parent.`,methods:[{name:"getItems",docblock:`Returns the sorted, filtered list of items. @returns {*}`,modifiers:[],params:[],returns:{type:{name:"mixed"}},description:"Returns the sorted, filtered list of items."},{name:"onColumnClick",docblock:`Sorts the table by the passed column. diff --git a/docs/assets/Facet.stories-CntnM9og.js b/docs/assets/Facet.stories-DUMUgu3A.js similarity index 96% rename from docs/assets/Facet.stories-CntnM9og.js rename to docs/assets/Facet.stories-DUMUgu3A.js index 0cda62d6..402347e0 100644 --- a/docs/assets/Facet.stories-CntnM9og.js +++ b/docs/assets/Facet.stories-DUMUgu3A.js @@ -1,4 +1,4 @@ -import{j as e}from"./jsx-runtime-BTCK_S7S.js";import{d as m}from"./index-DfmhmaGJ.js";import{r as c}from"./index-CBqU2yxZ.js";import{F as n}from"./Form-fErk-qk_.js";import{B as F}from"./Button-Blq7Z6RX.js";import{C as l}from"./Checkbox-C9uAfnsM.js";import{F as i}from"./Facet-0ehrYZai.js";import"./mapValues-CZh2vnSw.js";import"./_commonjsHelpers-BosuxZz1.js";import"./pickBy-CU2rOOKe.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-Bu_b4Pek.js";import"./index-Cw1G72V2.js";import"./index-CKJfshIT.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./preview-errors-CzpZmerH.js";import"./debounce-Bq1aTuh-.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getElementType-CckcRzoH.js";import"./Label-Cq1fb1cd.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./Icon-2tEtgK8g.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./forEach-CXlln0XP.js";import"./Dimmer-D_gwaesu.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./index-DZGZymok.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./Dropdown-Di2cPjwR.js";import"./map-B4PnIEPz.js";import"./without-BP-mqg2K.js";import"./isArrayLikeObject-CbXKTyfk.js";import"./isEmpty-Cyb9hIKi.js";import"./deburr-CEfyoYOr.js";import"./index-BBpNyw-T.js";import"./_baseSet-6y0qliU9.js";import"./_baseAssignValue-izmKBXUH.js";import"./_arrayReduce-CrxnWFSq.js";import"./filter-CVNi8iPS.js";import"./Input--hQVCRQV.js";import"./Divider-C9xp3Rj7.js";import"./Header-BJ3NNdPz.js";import"./Accordion-hxhfwUID.js";const De={title:"Components/Semantic UI/Facet",component:i},t=()=>e.jsx(i,{title:"Department",children:e.jsxs(n,{children:[e.jsx(n.Field,{children:e.jsx(l,{label:"Appliances"})}),e.jsx(n.Field,{children:e.jsx(l,{label:"Bath & Faucets"})}),e.jsx(n.Field,{children:e.jsx(l,{label:"Building Materials"})}),e.jsx(n.Field,{children:e.jsx(l,{label:"Doors & Windows"})})]})}),a=()=>e.jsx(i,{defaultActive:!1,title:"Department",children:e.jsxs(n,{children:[e.jsx(n.Field,{children:e.jsx(l,{label:"Appliances"})}),e.jsx(n.Field,{children:e.jsx(l,{label:"Bath & Faucets"})}),e.jsx(n.Field,{children:e.jsx(l,{label:"Building Materials"})}),e.jsx(n.Field,{children:e.jsx(l,{label:"Doors & Windows"})})]})}),s=()=>e.jsxs(e.Fragment,{children:[e.jsx(i,{divided:m.boolean("Divided",!0),title:"Department",children:e.jsxs(n,{children:[e.jsx(n.Field,{children:e.jsx(l,{label:"Appliances"})}),e.jsx(n.Field,{children:e.jsx(l,{label:"Bath & Faucets"})}),e.jsx(n.Field,{children:e.jsx(l,{label:"Building Materials"})}),e.jsx(n.Field,{children:e.jsx(l,{label:"Doors & Windows"})})]})}),e.jsx(i,{divided:m.boolean("Divided",!0),title:"Brand",children:e.jsxs(n,{children:[e.jsx(n.Field,{children:e.jsx(l,{label:"American Standard"})}),e.jsx(n.Field,{children:e.jsx(l,{label:"Andersen"})}),e.jsx(n.Field,{children:e.jsx(l,{label:"Delta"})}),e.jsx(n.Field,{children:e.jsx(l,{label:"Kohler"})}),e.jsx(n.Field,{children:e.jsx(l,{label:"LG"})}),e.jsx(n.Field,{children:e.jsx(l,{label:"Samsung"})})]})})]}),d=()=>{const r=c.useRef(),v=c.useCallback(()=>{const{current:o}=r;o&&o.collapse()},[r.current]),A=c.useCallback(()=>{const{current:o}=r;o&&o.expand()},[r.current]);return e.jsxs(e.Fragment,{children:[e.jsx(i,{innerRef:r,title:"Department",children:e.jsxs(n,{children:[e.jsx(n.Field,{children:e.jsx(l,{label:"Appliances"})}),e.jsx(n.Field,{children:e.jsx(l,{label:"Bath & Faucets"})}),e.jsx(n.Field,{children:e.jsx(l,{label:"Building Materials"})}),e.jsx(n.Field,{children:e.jsx(l,{label:"Doors & Windows"})})]})}),e.jsx(F,{content:"Expand",onClick:A}),e.jsx(F,{content:"Collapse",onClick:v})]})};t.__docgenInfo={description:"",methods:[],displayName:"Default"};a.__docgenInfo={description:"",methods:[],displayName:"Collapsed"};s.__docgenInfo={description:"",methods:[],displayName:"Divided"};d.__docgenInfo={description:"",methods:[],displayName:"ExpandCollapse"};var p,x,b;t.parameters={...t.parameters,docs:{...(p=t.parameters)==null?void 0:p.docs,source:{originalSource:`() => +import{j as e}from"./jsx-runtime-BTCK_S7S.js";import{d as m}from"./index-CAen7T_W.js";import{r as c}from"./index-CBqU2yxZ.js";import{F as n}from"./Form-fErk-qk_.js";import{B as F}from"./Button-Blq7Z6RX.js";import{C as l}from"./Checkbox-C9uAfnsM.js";import{F as i}from"./Facet-0ehrYZai.js";import"./mapValues-LQZI9uWW.js";import"./_commonjsHelpers-BosuxZz1.js";import"./pickBy-Us6u5-To.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-DCkRKKtx.js";import"./index-Cw1G72V2.js";import"./index-CKJfshIT.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./preview-errors-CzpZmerH.js";import"./debounce-BkgZrIul.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getElementType-CckcRzoH.js";import"./Label-Cq1fb1cd.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./Icon-2tEtgK8g.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./forEach-CXlln0XP.js";import"./Dimmer-D_gwaesu.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./index-DZGZymok.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./Dropdown-Di2cPjwR.js";import"./map-B4PnIEPz.js";import"./without-BP-mqg2K.js";import"./isArrayLikeObject-CbXKTyfk.js";import"./isEmpty-Cyb9hIKi.js";import"./deburr-CEfyoYOr.js";import"./index-BBpNyw-T.js";import"./_baseSet-6y0qliU9.js";import"./_baseAssignValue-izmKBXUH.js";import"./_arrayReduce-CrxnWFSq.js";import"./filter-CVNi8iPS.js";import"./Input--hQVCRQV.js";import"./Divider-C9xp3Rj7.js";import"./Header-BJ3NNdPz.js";import"./Accordion-hxhfwUID.js";const De={title:"Components/Semantic UI/Facet",component:i},t=()=>e.jsx(i,{title:"Department",children:e.jsxs(n,{children:[e.jsx(n.Field,{children:e.jsx(l,{label:"Appliances"})}),e.jsx(n.Field,{children:e.jsx(l,{label:"Bath & Faucets"})}),e.jsx(n.Field,{children:e.jsx(l,{label:"Building Materials"})}),e.jsx(n.Field,{children:e.jsx(l,{label:"Doors & Windows"})})]})}),a=()=>e.jsx(i,{defaultActive:!1,title:"Department",children:e.jsxs(n,{children:[e.jsx(n.Field,{children:e.jsx(l,{label:"Appliances"})}),e.jsx(n.Field,{children:e.jsx(l,{label:"Bath & Faucets"})}),e.jsx(n.Field,{children:e.jsx(l,{label:"Building Materials"})}),e.jsx(n.Field,{children:e.jsx(l,{label:"Doors & Windows"})})]})}),s=()=>e.jsxs(e.Fragment,{children:[e.jsx(i,{divided:m.boolean("Divided",!0),title:"Department",children:e.jsxs(n,{children:[e.jsx(n.Field,{children:e.jsx(l,{label:"Appliances"})}),e.jsx(n.Field,{children:e.jsx(l,{label:"Bath & Faucets"})}),e.jsx(n.Field,{children:e.jsx(l,{label:"Building Materials"})}),e.jsx(n.Field,{children:e.jsx(l,{label:"Doors & Windows"})})]})}),e.jsx(i,{divided:m.boolean("Divided",!0),title:"Brand",children:e.jsxs(n,{children:[e.jsx(n.Field,{children:e.jsx(l,{label:"American Standard"})}),e.jsx(n.Field,{children:e.jsx(l,{label:"Andersen"})}),e.jsx(n.Field,{children:e.jsx(l,{label:"Delta"})}),e.jsx(n.Field,{children:e.jsx(l,{label:"Kohler"})}),e.jsx(n.Field,{children:e.jsx(l,{label:"LG"})}),e.jsx(n.Field,{children:e.jsx(l,{label:"Samsung"})})]})})]}),d=()=>{const r=c.useRef(),v=c.useCallback(()=>{const{current:o}=r;o&&o.collapse()},[r.current]),A=c.useCallback(()=>{const{current:o}=r;o&&o.expand()},[r.current]);return e.jsxs(e.Fragment,{children:[e.jsx(i,{innerRef:r,title:"Department",children:e.jsxs(n,{children:[e.jsx(n.Field,{children:e.jsx(l,{label:"Appliances"})}),e.jsx(n.Field,{children:e.jsx(l,{label:"Bath & Faucets"})}),e.jsx(n.Field,{children:e.jsx(l,{label:"Building Materials"})}),e.jsx(n.Field,{children:e.jsx(l,{label:"Doors & Windows"})})]})}),e.jsx(F,{content:"Expand",onClick:A}),e.jsx(F,{content:"Collapse",onClick:v})]})};t.__docgenInfo={description:"",methods:[],displayName:"Default"};a.__docgenInfo={description:"",methods:[],displayName:"Collapsed"};s.__docgenInfo={description:"",methods:[],displayName:"Divided"};d.__docgenInfo={description:"",methods:[],displayName:"ExpandCollapse"};var p,x,b;t.parameters={...t.parameters,docs:{...(p=t.parameters)==null?void 0:p.docs,source:{originalSource:`() =>
diff --git a/docs/assets/FacetList.stories-6txQKgIe.js b/docs/assets/FacetList.stories-BJStJSuq.js similarity index 99% rename from docs/assets/FacetList.stories-6txQKgIe.js rename to docs/assets/FacetList.stories-BJStJSuq.js index 1fdd52b2..1433942d 100644 --- a/docs/assets/FacetList.stories-6txQKgIe.js +++ b/docs/assets/FacetList.stories-BJStJSuq.js @@ -1,4 +1,4 @@ -import{j as e}from"./jsx-runtime-BTCK_S7S.js";import{a}from"./chunk-WFFRPTHA-B2vgThZf.js";import{r as n}from"./index-CBqU2yxZ.js";import{B as A}from"./Button-Blq7Z6RX.js";import{u as T}from"./index.es28-dE8xdd4L.js";import{I as L}from"./Icon-2tEtgK8g.js";import{I as ne}from"./Input--hQVCRQV.js";import{L as oe}from"./Label-Cq1fb1cd.js";import{L as F}from"./List-Cog7Mcyf.js";import{C as I}from"./Checkbox-C9uAfnsM.js";import{_ as S}from"./index-default-C_maRo4o.js";import{F as $}from"./Facet-0ehrYZai.js";import{i as c}from"./i18n-C8zWlANG.js";import{L as te}from"./LinkButton-COql2obt.js";import"./preview-errors-CzpZmerH.js";import"./index-CKJfshIT.js";import"./v4-D8aEg3BZ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getElementType-CckcRzoH.js";import"./map-B4PnIEPz.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./toFinite-KQ8KevIC.js";import"./index-DZGZymok.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./iframe-ovyJW9VA.js";import"../sb-preview/runtime.js";import"./includes-CQoJOerW.js";import"./forEach-CXlln0XP.js";import"./Dimmer-D_gwaesu.js";import"./_baseSet-6y0qliU9.js";import"./_baseAssignValue-izmKBXUH.js";import"./Divider-C9xp3Rj7.js";import"./Header-BJ3NNdPz.js";import"./Accordion-hxhfwUID.js";import"./without-BP-mqg2K.js";import"./isArrayLikeObject-CbXKTyfk.js";import"./i18next-Sc0HEOoc.js";import"./toPropertyKey-hKuLU48H.js";import"./defineProperty-CCxoMnQV.js";import"./inherits-D5wXBZoG.js";import"./createClass-D2z1h_eG.js";import"./getPrototypeOf-BYVhAdwF.js";const u="or",R="and",y=n.forwardRef(({useRefinementList:s,...o},v)=>{const[r,G]=n.useState(o.defaultOperator||u),{canRefine:J,canToggleShowMore:W,isShowingMore:k,items:g,refine:M,searchForItems:b,toggleShowMore:X}=s({...o,operator:r}),C=n.useRef(),[l,x]=n.useState(""),Y=n.useCallback(()=>{x(""),b();const{current:t}=C;t&&t.focus()},[]),Z=n.useCallback(()=>b(l),[l,b]),ee=n.useCallback(()=>{G(t=>t===u?R:u)},[]),ae=n.useMemo(()=>!(J&&S.isEmpty(g)&&S.isEmpty(l)),[g,l]);return n.useEffect(()=>{o.defaultValue&&M(o.defaultValue)},[o.defaultValue]),n.useEffect(()=>{l&&b(l)},[g]),e.jsxs($,{className:"facet-list",defaultActive:o.defaultActive,divided:o.divided,innerRef:v,title:o.title,visible:ae,children:[o.searchable&&e.jsx(ne,{icon:l&&e.jsx(L,{link:!0,name:"times",onClick:Y}),fluid:!0,onChange:(t,{value:w})=>x(w),onKeyDown:()=>T.clearSearchTimer(),onKeyUp:()=>T.setSearchTimer(Z),placeholder:c.t("FacetList.labels.search"),ref:C,value:l}),e.jsx(F,{className:"facet-list",children:S.map(g,(t,w)=>e.jsx(F.Item,{children:e.jsx(I,{checked:t.isRefined,label:{children:e.jsxs(e.Fragment,{children:[e.jsx("span",{children:t.label}),e.jsx(oe,{circular:!0,content:t.count,size:"small"})]})},onClick:()=>M(t.value)})},w))}),W&&e.jsxs(e.Fragment,{children:[e.jsx(L,{name:k?"angle up":"angle down"}),e.jsx(te,{content:k?c.t("FacetList.buttons.showLess"):c.t("FacetList.buttons.showMore"),onClick:()=>X()})]}),o.toggleable&&e.jsx(I,{className:"toggleable",checked:r===R,label:r===u?c.t("FacetList.labels.matchAny"):c.t("FacetList.labels.matchAll"),onChange:ee,toggle:!0})]})});y.defaultProps={...$.defaultProps,defaultOperator:u};const i=y;y.__docgenInfo={description:'This component is used with the `useRefinementList` hook from Instant Search Hooks. If the `searchable` prop\nis "true", the component will also render a search box used to filter the list of facet values.',methods:[],displayName:"FacetList",props:{children:{required:!1,flowType:{name:"Node"},description:"Facet content to display inside the accordion menu.",defaultValue:{value:"undefined",computed:!0}},className:{required:!1,flowType:{name:"string"},description:"Classname to apply to the root element."},defaultActive:{required:!1,flowType:{name:"boolean"},description:"If `true`, the facet will be expanded by default.",defaultValue:{value:"true",computed:!1}},divided:{required:!1,flowType:{name:"boolean"},description:"If `true`, a divider will be rendered between each facet in the list.",defaultValue:{value:"false",computed:!1}},innerRef:{required:!1,flowType:{name:"signature",type:"object",raw:`{ +import{j as e}from"./jsx-runtime-BTCK_S7S.js";import{a}from"./chunk-WFFRPTHA-B2vgThZf.js";import{r as n}from"./index-CBqU2yxZ.js";import{B as A}from"./Button-Blq7Z6RX.js";import{u as T}from"./index.es28-Dp3-vHIY.js";import{I as L}from"./Icon-2tEtgK8g.js";import{I as ne}from"./Input--hQVCRQV.js";import{L as oe}from"./Label-Cq1fb1cd.js";import{L as F}from"./List-Cog7Mcyf.js";import{C as I}from"./Checkbox-C9uAfnsM.js";import{_ as S}from"./index-default-C_maRo4o.js";import{F as $}from"./Facet-0ehrYZai.js";import{i as c}from"./i18n-C8zWlANG.js";import{L as te}from"./LinkButton-COql2obt.js";import"./preview-errors-CzpZmerH.js";import"./index-CKJfshIT.js";import"./v4-D8aEg3BZ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getElementType-CckcRzoH.js";import"./map-B4PnIEPz.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./toFinite-KQ8KevIC.js";import"./index-DZGZymok.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./iframe-BQtATEn0.js";import"../sb-preview/runtime.js";import"./includes-CQoJOerW.js";import"./forEach-CXlln0XP.js";import"./Dimmer-D_gwaesu.js";import"./_baseSet-6y0qliU9.js";import"./_baseAssignValue-izmKBXUH.js";import"./Divider-C9xp3Rj7.js";import"./Header-BJ3NNdPz.js";import"./Accordion-hxhfwUID.js";import"./without-BP-mqg2K.js";import"./isArrayLikeObject-CbXKTyfk.js";import"./i18next-Sc0HEOoc.js";import"./toPropertyKey-hKuLU48H.js";import"./defineProperty-CCxoMnQV.js";import"./inherits-D5wXBZoG.js";import"./createClass-D2z1h_eG.js";import"./getPrototypeOf-BYVhAdwF.js";const u="or",R="and",y=n.forwardRef(({useRefinementList:s,...o},v)=>{const[r,G]=n.useState(o.defaultOperator||u),{canRefine:J,canToggleShowMore:W,isShowingMore:k,items:g,refine:M,searchForItems:b,toggleShowMore:X}=s({...o,operator:r}),C=n.useRef(),[l,x]=n.useState(""),Y=n.useCallback(()=>{x(""),b();const{current:t}=C;t&&t.focus()},[]),Z=n.useCallback(()=>b(l),[l,b]),ee=n.useCallback(()=>{G(t=>t===u?R:u)},[]),ae=n.useMemo(()=>!(J&&S.isEmpty(g)&&S.isEmpty(l)),[g,l]);return n.useEffect(()=>{o.defaultValue&&M(o.defaultValue)},[o.defaultValue]),n.useEffect(()=>{l&&b(l)},[g]),e.jsxs($,{className:"facet-list",defaultActive:o.defaultActive,divided:o.divided,innerRef:v,title:o.title,visible:ae,children:[o.searchable&&e.jsx(ne,{icon:l&&e.jsx(L,{link:!0,name:"times",onClick:Y}),fluid:!0,onChange:(t,{value:w})=>x(w),onKeyDown:()=>T.clearSearchTimer(),onKeyUp:()=>T.setSearchTimer(Z),placeholder:c.t("FacetList.labels.search"),ref:C,value:l}),e.jsx(F,{className:"facet-list",children:S.map(g,(t,w)=>e.jsx(F.Item,{children:e.jsx(I,{checked:t.isRefined,label:{children:e.jsxs(e.Fragment,{children:[e.jsx("span",{children:t.label}),e.jsx(oe,{circular:!0,content:t.count,size:"small"})]})},onClick:()=>M(t.value)})},w))}),W&&e.jsxs(e.Fragment,{children:[e.jsx(L,{name:k?"angle up":"angle down"}),e.jsx(te,{content:k?c.t("FacetList.buttons.showLess"):c.t("FacetList.buttons.showMore"),onClick:()=>X()})]}),o.toggleable&&e.jsx(I,{className:"toggleable",checked:r===R,label:r===u?c.t("FacetList.labels.matchAny"):c.t("FacetList.labels.matchAll"),onChange:ee,toggle:!0})]})});y.defaultProps={...$.defaultProps,defaultOperator:u};const i=y;y.__docgenInfo={description:'This component is used with the `useRefinementList` hook from Instant Search Hooks. If the `searchable` prop\nis "true", the component will also render a search box used to filter the list of facet values.',methods:[],displayName:"FacetList",props:{children:{required:!1,flowType:{name:"Node"},description:"Facet content to display inside the accordion menu.",defaultValue:{value:"undefined",computed:!0}},className:{required:!1,flowType:{name:"string"},description:"Classname to apply to the root element."},defaultActive:{required:!1,flowType:{name:"boolean"},description:"If `true`, the facet will be expanded by default.",defaultValue:{value:"true",computed:!1}},divided:{required:!1,flowType:{name:"boolean"},description:"If `true`, a divider will be rendered between each facet in the list.",defaultValue:{value:"false",computed:!1}},innerRef:{required:!1,flowType:{name:"signature",type:"object",raw:`{ current: ?HTMLElement }`,signature:{properties:[{key:"current",value:{name:"HTMLElement",nullable:!0,required:!0}}]}},description:"React ref element to apply to the expand/collapse functions."},title:{required:!0,flowType:{name:"string"},description:"Facet title to display at the top."},visible:{required:!1,flowType:{name:"boolean"},description:"If `true`, the facet will be visible in the DOM.",defaultValue:{value:"true",computed:!1}},useRefinementList:{required:!0,flowType:{name:"signature",type:"function",raw:`(props: any) => ({ items: Array, diff --git a/docs/assets/FileInputButton.stories-DNVcqPFx.js b/docs/assets/FileInputButton.stories-DkjMC3bF.js similarity index 80% rename from docs/assets/FileInputButton.stories-DNVcqPFx.js rename to docs/assets/FileInputButton.stories-DkjMC3bF.js index 461d0869..9657ee5f 100644 --- a/docs/assets/FileInputButton.stories-DNVcqPFx.js +++ b/docs/assets/FileInputButton.stories-DkjMC3bF.js @@ -1,3 +1,3 @@ -import{j as p}from"./jsx-runtime-BTCK_S7S.js";import{a as m}from"./chunk-WFFRPTHA-B2vgThZf.js";import"./index-CBqU2yxZ.js";import{d as n}from"./index-DfmhmaGJ.js";import{F as e}from"./FileInputButton-qbfOXRVs.js";import"./preview-errors-CzpZmerH.js";import"./index-CKJfshIT.js";import"./v4-D8aEg3BZ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./mapValues-CZh2vnSw.js";import"./pickBy-CU2rOOKe.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-Bu_b4Pek.js";import"./index-Cw1G72V2.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./debounce-Bq1aTuh-.js";import"./Button-Blq7Z6RX.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getElementType-CckcRzoH.js";import"./Icon-2tEtgK8g.js";import"./Label-Cq1fb1cd.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./forEach-CXlln0XP.js";import"./Dimmer-D_gwaesu.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./index-DZGZymok.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./map-B4PnIEPz.js";const L={title:"Components/Semantic UI/FileInputButton",component:e,decorators:[n.withKnobs]},t=()=>p.jsx(e,{content:"Select a file to upload",multiple:!1,icon:"file",onSelection:m("files-added")});t.__docgenInfo={description:"",methods:[],displayName:"Default"};var o,r,i;t.parameters={...t.parameters,docs:{...(o=t.parameters)==null?void 0:o.docs,source:{originalSource:`() => { +import{j as p}from"./jsx-runtime-BTCK_S7S.js";import{a as m}from"./chunk-WFFRPTHA-B2vgThZf.js";import"./index-CBqU2yxZ.js";import{d as n}from"./index-CAen7T_W.js";import{F as e}from"./FileInputButton-qbfOXRVs.js";import"./preview-errors-CzpZmerH.js";import"./index-CKJfshIT.js";import"./v4-D8aEg3BZ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./mapValues-LQZI9uWW.js";import"./pickBy-Us6u5-To.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-DCkRKKtx.js";import"./index-Cw1G72V2.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./debounce-BkgZrIul.js";import"./Button-Blq7Z6RX.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getElementType-CckcRzoH.js";import"./Icon-2tEtgK8g.js";import"./Label-Cq1fb1cd.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./forEach-CXlln0XP.js";import"./Dimmer-D_gwaesu.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./index-DZGZymok.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./map-B4PnIEPz.js";const L={title:"Components/Semantic UI/FileInputButton",component:e,decorators:[n.withKnobs]},t=()=>p.jsx(e,{content:"Select a file to upload",multiple:!1,icon:"file",onSelection:m("files-added")});t.__docgenInfo={description:"",methods:[],displayName:"Default"};var o,r,i;t.parameters={...t.parameters,docs:{...(o=t.parameters)==null?void 0:o.docs,source:{originalSource:`() => { return ; }`,...(i=(r=t.parameters)==null?void 0:r.docs)==null?void 0:i.source}}};const M=["Default"];export{t as Default,M as __namedExportsOrder,L as default}; diff --git a/docs/assets/FilterModal-DL7Cc0hY.js b/docs/assets/FilterModal-FAXyOL-f.js similarity index 82% rename from docs/assets/FilterModal-DL7Cc0hY.js rename to docs/assets/FilterModal-FAXyOL-f.js index 77588888..b47414bd 100644 --- a/docs/assets/FilterModal-DL7Cc0hY.js +++ b/docs/assets/FilterModal-FAXyOL-f.js @@ -1,3 +1,3 @@ -import{j as e}from"./jsx-runtime-BTCK_S7S.js";import"./index.es28-dE8xdd4L.js";import"./index-CBqU2yxZ.js";import{H as n}from"./index.es3-D5uPylQL.js";import{F as i}from"./Form-fErk-qk_.js";import{M as r}from"./Modal-Bz2VEyQG.js";const o=t=>e.jsxs(r,{as:i,open:!0,children:[e.jsx(r.Header,{children:"Add Filter"}),e.jsx(r.Content,{children:e.jsx(i.Input,{label:"Test",onChange:t.onTextInputChange.bind(void 0,"test"),value:t.item.test||""})}),t.children]}),u=n(o);o.__docgenInfo={description:"",methods:[],displayName:"FilterModal",props:{item:{required:!0,flowType:{name:"signature",type:"object",raw:`{ +import{j as e}from"./jsx-runtime-BTCK_S7S.js";import"./index.es28-Dp3-vHIY.js";import"./index-CBqU2yxZ.js";import{H as n}from"./index.es3-Dgr_7mVc.js";import{F as i}from"./Form-fErk-qk_.js";import{M as r}from"./Modal-Bz2VEyQG.js";const o=t=>e.jsxs(r,{as:i,open:!0,children:[e.jsx(r.Header,{children:"Add Filter"}),e.jsx(r.Content,{children:e.jsx(i.Input,{label:"Test",onChange:t.onTextInputChange.bind(void 0,"test"),value:t.item.test||""})}),t.children]}),u=n(o);o.__docgenInfo={description:"",methods:[],displayName:"FilterModal",props:{item:{required:!0,flowType:{name:"signature",type:"object",raw:`{ test: string }`,signature:{properties:[{key:"test",value:{name:"string",required:!0}}]}},description:""}}};export{u as F}; diff --git a/docs/assets/FuzzyDate-RqvLBloE.js b/docs/assets/FuzzyDate-Bx1epA16.js similarity index 99% rename from docs/assets/FuzzyDate-RqvLBloE.js rename to docs/assets/FuzzyDate-Bx1epA16.js index 13cc7871..2b539ce3 100644 --- a/docs/assets/FuzzyDate-RqvLBloE.js +++ b/docs/assets/FuzzyDate-Bx1epA16.js @@ -1,4 +1,4 @@ -var C=Object.defineProperty;var k=(u,e,t)=>e in u?C(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t;var b=(u,e,t)=>(k(u,typeof e!="symbol"?e+"":e,t),t);import{j as a}from"./jsx-runtime-BTCK_S7S.js";import{b as D,o as x}from"./index.es28-dE8xdd4L.js";import{r as j}from"./index-CBqU2yxZ.js";import{F as o,T as S}from"./Form-fErk-qk_.js";import{B as m}from"./Button-Blq7Z6RX.js";import{I as z}from"./Input--hQVCRQV.js";import{C as g}from"./Checkbox-C9uAfnsM.js";import{D as v}from"./Dropdown-Di2cPjwR.js";import{M as y}from"./Modal-Bz2VEyQG.js";import{_ as d}from"./index-default-C_maRo4o.js";import{i as s}from"./i18n-C8zWlANG.js";import{D as w}from"./DateInput-BO57_F9J.js";import{M as E}from"./ModalContext-Bu-D9kD-.js";const p=2,h=1,l=0,q=10,M=6;class f extends j.Component{constructor(e){super(e),this.state={...this.getInitialState(),calendar:new D(e.locale,e.calendar)}}componentDidMount(){this.initializeDate()}componentDidUpdate(e){(this.props.locale!==e.locale||this.props.calendar!==e.calendar)&&this.setState({calendar:new D(this.props.locale,this.props.calendar)}),this.props.date&&(this.props.date.startDate!==e.date.startDate||this.props.date.endDate!==e.date.endDate)&&this.initializeDate()}getDisplayDate(e){const t=this.state.calendar.convertToDate(e);return this.state.calendar.format(t,this.state.accuracy)}getInitialState(){return{accuracy:l,description:"",display:"",endDate:{},modal:!1,range:!1,startDate:{}}}initializeDate(){if(this.props.date){const{accuracy:e=l,description:t="",range:r=!1}=this.props.date;let n={},i={};this.props.date.startDate&&(n=this.state.calendar.parseDate(this.props.date.startDate)),this.props.date.endDate&&(i=this.state.calendar.parseDate(this.props.date.endDate)),this.setState({accuracy:e,description:t,range:r,startDate:n,endDate:i},this.setDisplay.bind(this))}else this.onAccuracyChange(null,{value:l})}onAccuracyChange(e,{value:t}){const r=t;this.setState(n=>{let i={...n.endDate},c={...n.startDate};return r===h?(i={...i,date:n.calendar.getDefaultDate()},c={...c,date:n.calendar.getDefaultDate()}):t===l&&(i={...i,date:n.calendar.getDefaultDate(),month:n.calendar.getDefaultMonth()},c={...c,date:n.calendar.getDefaultDate(),month:n.calendar.getDefaultMonth()}),{accuracy:r,endDate:i,startDate:c}},this.setEndDate.bind(this))}onClear(){this.setState(this.getInitialState(),this.onSave.bind(this))}onClose(){this.setState({modal:!1},this.initializeDate.bind(this))}onDateChange(e,t,{value:r}){this.setState(n=>({[e]:{...n[e],date:r}}),this.setEndDate.bind(this))}onDescriptionChange(e,{value:t}){this.setState({description:t})}onEdit(){this.setState({modal:!0})}onMonthChange(e,t,{value:r}){this.setState(n=>({[e]:{...n[e],month:r}}),this.setEndDate.bind(this))}onRangeChange(){this.setState(e=>({range:!e.range}),this.setEndDate.bind(this))}onSave(){this.setDisplay();let e,t;d.isEmpty(this.state.startDate)||(e=this.state.calendar.convertToDate(this.state.startDate).toDate()),d.isEmpty(this.state.endDate)||(t=this.state.calendar.convertToDate(this.state.endDate).toDate());const{accuracy:r,description:n,range:i}=this.state;this.props.onChange({accuracy:r,description:n,range:i,startDate:e,endDate:t}),this.setState({modal:!1})}onYearChange(e,t,{value:r}){r&&r.length>M||this.setState(n=>({[e]:{...n[e],year:parseInt(r,q)}}),this.setEndDate.bind(this))}render(){return a.jsxs(a.Fragment,{children:[a.jsx(w,{display:this.state.display,onClick:this.onEdit.bind(this),onChange:this.onClear.bind(this)}),a.jsx(E.Consumer,{children:e=>a.jsxs(y,{as:o,className:"fuzzy-date-modal",mountNode:e,open:this.state.modal,onClose:this.onClose.bind(this),children:[a.jsx(y.Header,{content:this.props.title||s.t("FuzzyDate.title")}),a.jsxs(y.Content,{children:[a.jsxs(o.Input,{className:"accuracy-container",label:s.t("FuzzyDate.labels.accuracy"),children:[a.jsx(g,{checked:this.state.accuracy===l,id:"accuracy-year",label:s.t("FuzzyDate.accuracy.year"),name:"accuracy",onChange:this.onAccuracyChange.bind(this),radio:!0,value:l}),a.jsx(g,{checked:this.state.accuracy===h,id:"accuracy-month",label:s.t("FuzzyDate.accuracy.month"),name:"accuracy",onChange:this.onAccuracyChange.bind(this),radio:!0,value:h}),a.jsx(g,{checked:this.state.accuracy===p,id:"accuracy-date",label:s.t("FuzzyDate.accuracy.date"),name:"accuracy",onChange:this.onAccuracyChange.bind(this),radio:!0,value:p})]}),a.jsxs(o.Group,{children:[this.renderYear("startDate"),this.renderMonth("startDate"),this.renderDate("startDate"),!this.state.range&&a.jsx("div",{className:"button-container",children:a.jsx(m,{basic:!0,content:s.t("FuzzyDate.buttons.addRange"),icon:"plus",onClick:this.onRangeChange.bind(this)})})]}),this.state.range&&a.jsxs(o.Group,{children:[this.renderYear("endDate"),this.renderMonth("endDate"),this.renderDate("endDate"),a.jsx("div",{className:"button-container",children:a.jsx(m,{basic:!0,content:s.t("FuzzyDate.buttons.removeRange"),icon:"times",onClick:this.onRangeChange.bind(this)})})]}),this.props.description&&a.jsx(o.Input,{id:"description",label:s.t("FuzzyDate.labels.description"),children:a.jsx(S,{id:"description",onChange:this.onDescriptionChange.bind(this),value:this.state.description})})]}),a.jsxs(y.Actions,{children:[a.jsx(m,{onClick:this.onSave.bind(this),primary:!0,size:"medium",type:"submit",children:s.t("Common.buttons.save")}),a.jsx(m,{basic:!0,onClick:this.onClose.bind(this),size:"medium",type:"button",children:s.t("Common.buttons.cancel")})]})]})})]})}renderDate(e){if(this.state.accuracy!==p)return null;const t=this.state[e],r=this.state.calendar.daysInMonth(t.year,t.month);return a.jsx(o.Input,{id:"date-dropdown",label:s.t("FuzzyDate.labels.date"),children:a.jsx(v,{id:"date-dropdown",onChange:this.onDateChange.bind(this,e),options:d.range(1,r+1).map(n=>({key:n,value:n,text:n})),selection:!0,value:t.date||this.state.calendar.getDefaultDate()})})}renderMonth(e){return this.state.accuracy!==p&&this.state.accuracy!==h?null:a.jsx(o.Input,{id:"month-dropdown",label:s.t("FuzzyDate.labels.month"),children:a.jsx(v,{id:"month-dropdown",onChange:this.onMonthChange.bind(this,e),options:d.map(this.state.calendar.listMonths(),(t,r)=>({key:r,value:r,text:t})),selection:!0,value:this.state[e].month||this.state.calendar.getDefaultMonth()})})}renderYear(e){return a.jsx(o.Input,{id:"year",label:s.t("FuzzyDate.labels.year"),children:a.jsx(z,{id:"year",onChange:this.onYearChange.bind(this,e),type:"number",value:this.state[e].year||""})})}setDisplay(){const e=[];this.state.startDate&&!d.isEmpty(this.state.startDate)&&e.push(this.getDisplayDate(this.state.startDate)),this.state.range&&this.state.endDate&&!d.isEmpty(this.state.endDate)&&(e.push(" - "),e.push(this.getDisplayDate(this.state.endDate))),this.setState({display:e.join(" ")})}setEndDate(){this.state.range||!this.state.startDate||d.isEmpty(this.state.startDate)||this.setState(e=>{let t=e.calendar.convertToDate(e.startDate);return e.accuracy===l?t=e.calendar.addYear(t,1):e.accuracy===h?t=e.calendar.addMonth(t,1):e.accuracy===p&&(t=e.calendar.addDate(t,1)),{endDate:e.calendar.parseDate(t)}})}}b(f,"defaultProps");f.defaultProps={calendar:D.Calendars.gregorian,description:!0,locale:x.isBrowser()&&navigator.language,title:void 0};f.__docgenInfo={description:"",methods:[{name:"getDisplayDate",docblock:`Returns the display string for the passed date component. +var C=Object.defineProperty;var k=(u,e,t)=>e in u?C(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t;var b=(u,e,t)=>(k(u,typeof e!="symbol"?e+"":e,t),t);import{j as a}from"./jsx-runtime-BTCK_S7S.js";import{b as D,o as x}from"./index.es28-Dp3-vHIY.js";import{r as j}from"./index-CBqU2yxZ.js";import{F as o,T as S}from"./Form-fErk-qk_.js";import{B as m}from"./Button-Blq7Z6RX.js";import{I as z}from"./Input--hQVCRQV.js";import{C as g}from"./Checkbox-C9uAfnsM.js";import{D as v}from"./Dropdown-Di2cPjwR.js";import{M as y}from"./Modal-Bz2VEyQG.js";import{_ as d}from"./index-default-C_maRo4o.js";import{i as s}from"./i18n-C8zWlANG.js";import{D as w}from"./DateInput-BO57_F9J.js";import{M as E}from"./ModalContext-Bu-D9kD-.js";const p=2,h=1,l=0,q=10,M=6;class f extends j.Component{constructor(e){super(e),this.state={...this.getInitialState(),calendar:new D(e.locale,e.calendar)}}componentDidMount(){this.initializeDate()}componentDidUpdate(e){(this.props.locale!==e.locale||this.props.calendar!==e.calendar)&&this.setState({calendar:new D(this.props.locale,this.props.calendar)}),this.props.date&&(this.props.date.startDate!==e.date.startDate||this.props.date.endDate!==e.date.endDate)&&this.initializeDate()}getDisplayDate(e){const t=this.state.calendar.convertToDate(e);return this.state.calendar.format(t,this.state.accuracy)}getInitialState(){return{accuracy:l,description:"",display:"",endDate:{},modal:!1,range:!1,startDate:{}}}initializeDate(){if(this.props.date){const{accuracy:e=l,description:t="",range:r=!1}=this.props.date;let n={},i={};this.props.date.startDate&&(n=this.state.calendar.parseDate(this.props.date.startDate)),this.props.date.endDate&&(i=this.state.calendar.parseDate(this.props.date.endDate)),this.setState({accuracy:e,description:t,range:r,startDate:n,endDate:i},this.setDisplay.bind(this))}else this.onAccuracyChange(null,{value:l})}onAccuracyChange(e,{value:t}){const r=t;this.setState(n=>{let i={...n.endDate},c={...n.startDate};return r===h?(i={...i,date:n.calendar.getDefaultDate()},c={...c,date:n.calendar.getDefaultDate()}):t===l&&(i={...i,date:n.calendar.getDefaultDate(),month:n.calendar.getDefaultMonth()},c={...c,date:n.calendar.getDefaultDate(),month:n.calendar.getDefaultMonth()}),{accuracy:r,endDate:i,startDate:c}},this.setEndDate.bind(this))}onClear(){this.setState(this.getInitialState(),this.onSave.bind(this))}onClose(){this.setState({modal:!1},this.initializeDate.bind(this))}onDateChange(e,t,{value:r}){this.setState(n=>({[e]:{...n[e],date:r}}),this.setEndDate.bind(this))}onDescriptionChange(e,{value:t}){this.setState({description:t})}onEdit(){this.setState({modal:!0})}onMonthChange(e,t,{value:r}){this.setState(n=>({[e]:{...n[e],month:r}}),this.setEndDate.bind(this))}onRangeChange(){this.setState(e=>({range:!e.range}),this.setEndDate.bind(this))}onSave(){this.setDisplay();let e,t;d.isEmpty(this.state.startDate)||(e=this.state.calendar.convertToDate(this.state.startDate).toDate()),d.isEmpty(this.state.endDate)||(t=this.state.calendar.convertToDate(this.state.endDate).toDate());const{accuracy:r,description:n,range:i}=this.state;this.props.onChange({accuracy:r,description:n,range:i,startDate:e,endDate:t}),this.setState({modal:!1})}onYearChange(e,t,{value:r}){r&&r.length>M||this.setState(n=>({[e]:{...n[e],year:parseInt(r,q)}}),this.setEndDate.bind(this))}render(){return a.jsxs(a.Fragment,{children:[a.jsx(w,{display:this.state.display,onClick:this.onEdit.bind(this),onChange:this.onClear.bind(this)}),a.jsx(E.Consumer,{children:e=>a.jsxs(y,{as:o,className:"fuzzy-date-modal",mountNode:e,open:this.state.modal,onClose:this.onClose.bind(this),children:[a.jsx(y.Header,{content:this.props.title||s.t("FuzzyDate.title")}),a.jsxs(y.Content,{children:[a.jsxs(o.Input,{className:"accuracy-container",label:s.t("FuzzyDate.labels.accuracy"),children:[a.jsx(g,{checked:this.state.accuracy===l,id:"accuracy-year",label:s.t("FuzzyDate.accuracy.year"),name:"accuracy",onChange:this.onAccuracyChange.bind(this),radio:!0,value:l}),a.jsx(g,{checked:this.state.accuracy===h,id:"accuracy-month",label:s.t("FuzzyDate.accuracy.month"),name:"accuracy",onChange:this.onAccuracyChange.bind(this),radio:!0,value:h}),a.jsx(g,{checked:this.state.accuracy===p,id:"accuracy-date",label:s.t("FuzzyDate.accuracy.date"),name:"accuracy",onChange:this.onAccuracyChange.bind(this),radio:!0,value:p})]}),a.jsxs(o.Group,{children:[this.renderYear("startDate"),this.renderMonth("startDate"),this.renderDate("startDate"),!this.state.range&&a.jsx("div",{className:"button-container",children:a.jsx(m,{basic:!0,content:s.t("FuzzyDate.buttons.addRange"),icon:"plus",onClick:this.onRangeChange.bind(this)})})]}),this.state.range&&a.jsxs(o.Group,{children:[this.renderYear("endDate"),this.renderMonth("endDate"),this.renderDate("endDate"),a.jsx("div",{className:"button-container",children:a.jsx(m,{basic:!0,content:s.t("FuzzyDate.buttons.removeRange"),icon:"times",onClick:this.onRangeChange.bind(this)})})]}),this.props.description&&a.jsx(o.Input,{id:"description",label:s.t("FuzzyDate.labels.description"),children:a.jsx(S,{id:"description",onChange:this.onDescriptionChange.bind(this),value:this.state.description})})]}),a.jsxs(y.Actions,{children:[a.jsx(m,{onClick:this.onSave.bind(this),primary:!0,size:"medium",type:"submit",children:s.t("Common.buttons.save")}),a.jsx(m,{basic:!0,onClick:this.onClose.bind(this),size:"medium",type:"button",children:s.t("Common.buttons.cancel")})]})]})})]})}renderDate(e){if(this.state.accuracy!==p)return null;const t=this.state[e],r=this.state.calendar.daysInMonth(t.year,t.month);return a.jsx(o.Input,{id:"date-dropdown",label:s.t("FuzzyDate.labels.date"),children:a.jsx(v,{id:"date-dropdown",onChange:this.onDateChange.bind(this,e),options:d.range(1,r+1).map(n=>({key:n,value:n,text:n})),selection:!0,value:t.date||this.state.calendar.getDefaultDate()})})}renderMonth(e){return this.state.accuracy!==p&&this.state.accuracy!==h?null:a.jsx(o.Input,{id:"month-dropdown",label:s.t("FuzzyDate.labels.month"),children:a.jsx(v,{id:"month-dropdown",onChange:this.onMonthChange.bind(this,e),options:d.map(this.state.calendar.listMonths(),(t,r)=>({key:r,value:r,text:t})),selection:!0,value:this.state[e].month||this.state.calendar.getDefaultMonth()})})}renderYear(e){return a.jsx(o.Input,{id:"year",label:s.t("FuzzyDate.labels.year"),children:a.jsx(z,{id:"year",onChange:this.onYearChange.bind(this,e),type:"number",value:this.state[e].year||""})})}setDisplay(){const e=[];this.state.startDate&&!d.isEmpty(this.state.startDate)&&e.push(this.getDisplayDate(this.state.startDate)),this.state.range&&this.state.endDate&&!d.isEmpty(this.state.endDate)&&(e.push(" - "),e.push(this.getDisplayDate(this.state.endDate))),this.setState({display:e.join(" ")})}setEndDate(){this.state.range||!this.state.startDate||d.isEmpty(this.state.startDate)||this.setState(e=>{let t=e.calendar.convertToDate(e.startDate);return e.accuracy===l?t=e.calendar.addYear(t,1):e.accuracy===h?t=e.calendar.addMonth(t,1):e.accuracy===p&&(t=e.calendar.addDate(t,1)),{endDate:e.calendar.parseDate(t)}})}}b(f,"defaultProps");f.defaultProps={calendar:D.Calendars.gregorian,description:!0,locale:x.isBrowser()&&navigator.language,title:void 0};f.__docgenInfo={description:"",methods:[{name:"getDisplayDate",docblock:`Returns the display string for the passed date component. @param dateComponent diff --git a/docs/assets/FuzzyDate.stories-BQ1xpzZ9.js b/docs/assets/FuzzyDate.stories-OLsqeBX2.js similarity index 99% rename from docs/assets/FuzzyDate.stories-BQ1xpzZ9.js rename to docs/assets/FuzzyDate.stories-OLsqeBX2.js index 5447f5a0..7e6bb95a 100644 --- a/docs/assets/FuzzyDate.stories-BQ1xpzZ9.js +++ b/docs/assets/FuzzyDate.stories-OLsqeBX2.js @@ -1,4 +1,4 @@ -var fd=Object.defineProperty;var Yd=(K,E,c)=>E in K?fd(K,E,{enumerable:!0,configurable:!0,writable:!0,value:c}):K[E]=c;var _s=(K,E,c)=>(Yd(K,typeof E!="symbol"?E+"":E,c),c);import{j as ie}from"./jsx-runtime-BTCK_S7S.js";import{r as Is}from"./index-CBqU2yxZ.js";import{a as wi}from"./chunk-WFFRPTHA-B2vgThZf.js";import{d as Hr}from"./index-DfmhmaGJ.js";import{F as Za}from"./Form-fErk-qk_.js";import{c as qa,g as qi}from"./_commonjsHelpers-BosuxZz1.js";import{c as ls}from"./_commonjs-dynamic-modules-TDtrdbi3.js";import{A as yd}from"./ArrowButtons-D1_59lZa.js";import{F as Oa}from"./FuzzyDate-RqvLBloE.js";import"./preview-errors-CzpZmerH.js";import"./index-CKJfshIT.js";import"./v4-D8aEg3BZ.js";import"./mapValues-CZh2vnSw.js";import"./pickBy-CU2rOOKe.js";import"./isPlainObject-Bu_b4Pek.js";import"./index-Cw1G72V2.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./debounce-Bq1aTuh-.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getElementType-CckcRzoH.js";import"./Button-Blq7Z6RX.js";import"./Icon-2tEtgK8g.js";import"./Label-Cq1fb1cd.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./forEach-CXlln0XP.js";import"./Dimmer-D_gwaesu.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./index-DZGZymok.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./map-B4PnIEPz.js";import"./Checkbox-C9uAfnsM.js";import"./_baseSet-6y0qliU9.js";import"./_baseAssignValue-izmKBXUH.js";import"./Dropdown-Di2cPjwR.js";import"./without-BP-mqg2K.js";import"./isArrayLikeObject-CbXKTyfk.js";import"./isEmpty-Cyb9hIKi.js";import"./deburr-CEfyoYOr.js";import"./index-BBpNyw-T.js";import"./_arrayReduce-CrxnWFSq.js";import"./filter-CVNi8iPS.js";import"./Input--hQVCRQV.js";import"./index.es28-dE8xdd4L.js";import"./iframe-ovyJW9VA.js";import"../sb-preview/runtime.js";import"./Modal-Bz2VEyQG.js";import"./index-default-C_maRo4o.js";import"./i18n-C8zWlANG.js";import"./i18next-Sc0HEOoc.js";import"./toPropertyKey-hKuLU48H.js";import"./defineProperty-CCxoMnQV.js";import"./inherits-D5wXBZoG.js";import"./createClass-D2z1h_eG.js";import"./getPrototypeOf-BYVhAdwF.js";import"./DateInput-BO57_F9J.js";import"./ModalContext-Bu-D9kD-.js";var gi={exports:{}},vi;function Cs(){return vi||(vi=1,function(K,E){(function(c,Y){K.exports=Y()})(qa,function(){var c;function Y(){return c.apply(null,arguments)}function Q(a){c=a}function V(a){return a instanceof Array||Object.prototype.toString.call(a)==="[object Array]"}function J(a){return a!=null&&Object.prototype.toString.call(a)==="[object Object]"}function A(a){var r;for(r in a)return!1;return!0}function Ye(a){return a===void 0}function ue(a){return typeof a=="number"||Object.prototype.toString.call(a)==="[object Number]"}function Re(a){return a instanceof Date||Object.prototype.toString.call(a)==="[object Date]"}function Mt(a,r){var o=[],_;for(_=0;_>>0,_=0;_0)for(o=0;oE in K?fd(K,E,{enumerable:!0,configurable:!0,writable:!0,value:c}):K[E]=c;var _s=(K,E,c)=>(Yd(K,typeof E!="symbol"?E+"":E,c),c);import{j as ie}from"./jsx-runtime-BTCK_S7S.js";import{r as Is}from"./index-CBqU2yxZ.js";import{a as wi}from"./chunk-WFFRPTHA-B2vgThZf.js";import{d as Hr}from"./index-CAen7T_W.js";import{F as Za}from"./Form-fErk-qk_.js";import{c as qa,g as qi}from"./_commonjsHelpers-BosuxZz1.js";import{c as ls}from"./_commonjs-dynamic-modules-TDtrdbi3.js";import{A as yd}from"./ArrowButtons-D1_59lZa.js";import{F as Oa}from"./FuzzyDate-Bx1epA16.js";import"./preview-errors-CzpZmerH.js";import"./index-CKJfshIT.js";import"./v4-D8aEg3BZ.js";import"./mapValues-LQZI9uWW.js";import"./pickBy-Us6u5-To.js";import"./isPlainObject-DCkRKKtx.js";import"./index-Cw1G72V2.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./debounce-BkgZrIul.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getElementType-CckcRzoH.js";import"./Button-Blq7Z6RX.js";import"./Icon-2tEtgK8g.js";import"./Label-Cq1fb1cd.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./forEach-CXlln0XP.js";import"./Dimmer-D_gwaesu.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./index-DZGZymok.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./map-B4PnIEPz.js";import"./Checkbox-C9uAfnsM.js";import"./_baseSet-6y0qliU9.js";import"./_baseAssignValue-izmKBXUH.js";import"./Dropdown-Di2cPjwR.js";import"./without-BP-mqg2K.js";import"./isArrayLikeObject-CbXKTyfk.js";import"./isEmpty-Cyb9hIKi.js";import"./deburr-CEfyoYOr.js";import"./index-BBpNyw-T.js";import"./_arrayReduce-CrxnWFSq.js";import"./filter-CVNi8iPS.js";import"./Input--hQVCRQV.js";import"./index.es28-Dp3-vHIY.js";import"./iframe-BQtATEn0.js";import"../sb-preview/runtime.js";import"./Modal-Bz2VEyQG.js";import"./index-default-C_maRo4o.js";import"./i18n-C8zWlANG.js";import"./i18next-Sc0HEOoc.js";import"./toPropertyKey-hKuLU48H.js";import"./defineProperty-CCxoMnQV.js";import"./inherits-D5wXBZoG.js";import"./createClass-D2z1h_eG.js";import"./getPrototypeOf-BYVhAdwF.js";import"./DateInput-BO57_F9J.js";import"./ModalContext-Bu-D9kD-.js";var gi={exports:{}},vi;function Cs(){return vi||(vi=1,function(K,E){(function(c,Y){K.exports=Y()})(qa,function(){var c;function Y(){return c.apply(null,arguments)}function Q(a){c=a}function V(a){return a instanceof Array||Object.prototype.toString.call(a)==="[object Array]"}function J(a){return a!=null&&Object.prototype.toString.call(a)==="[object Object]"}function A(a){var r;for(r in a)return!1;return!0}function Ye(a){return a===void 0}function ue(a){return typeof a=="number"||Object.prototype.toString.call(a)==="[object Number]"}function Re(a){return a instanceof Date||Object.prototype.toString.call(a)==="[object Date]"}function Mt(a,r){var o=[],_;for(_=0;_>>0,_=0;_0)for(o=0;o0?"future":"past"];return Le(o)?o(r):o.replace(/%s/i,r)}var zt={};function De(a,r){var o=a.toLowerCase();zt[o]=zt[o+"s"]=zt[r]=a}function f(a){return typeof a=="string"?zt[a]||zt[a.toLowerCase()]:void 0}function L(a){var r={},o,_;for(_ in a)ne(a,_)&&(o=f(_),o&&(r[o]=a[_]));return r}var g={};function w(a,r){g[a]=r}function H(a){var r=[];for(var o in a)r.push({unit:o,priority:g[o]});return r.sort(function(_,u){return _.priority-u.priority}),r}function P(a,r){return function(o){return o!=null?(ee(this,a,o),Y.updateOffset(this,r),this):X(this,a)}}function X(a,r){return a.isValid()?a._d["get"+(a._isUTC?"UTC":"")+r]():NaN}function ee(a,r,o){a.isValid()&&a._d["set"+(a._isUTC?"UTC":"")+r](o)}function pe(a){return a=f(a),Le(this[a])?this[a]():this}function re(a,r){if(typeof a=="object"){a=L(a);for(var o=H(a),_=0;_=0;return(y?o?"+":"":"-")+Math.pow(10,Math.max(0,u)).toString().substr(1)+_}var lt=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Se=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,F={},Lt={};function W(a,r,o,_){var u=_;typeof _=="string"&&(u=function(){return this[_]()}),a&&(Lt[a]=u),r&&(Lt[r[0]]=function(){return qe(u.apply(this,arguments),r[1],r[2])}),o&&(Lt[o]=function(){return this.localeData().ordinal(u.apply(this,arguments),a)})}function jt(a){return a.match(/\[[\s\S]/)?a.replace(/^\[|\]$/g,""):a.replace(/\\/g,"")}function Dt(a){var r=a.match(lt),o,_;for(o=0,_=r.length;o<_;o++)Lt[r[o]]?r[o]=Lt[r[o]]:r[o]=jt(r[o]);return function(u){var y="",k;for(k=0;k<_;k++)y+=Le(r[k])?r[k].call(u,a):r[k];return y}}function rt(a,r){return a.isValid()?(r=pt(r,a.localeData()),F[r]=F[r]||Dt(r),F[r](a)):a.localeData().invalidDate()}function pt(a,r){var o=5;function _(u){return r.longDateFormat(u)||u}for(Se.lastIndex=0;o>=0&&Se.test(a);)a=a.replace(Se,_),Se.lastIndex=0,o-=1;return a}var Xe=/\d/,je=/\d\d/,ra=/\d{3}/,Ot=/\d{4}/,kt=/[+-]?\d{6}/,U=/\d\d?/,bt=/\d\d\d\d?/,Qt=/\d\d\d\d\d\d?/,j=/\d{1,3}/,It=/\d{1,4}/,xt=/[+-]?\d{1,6}/,gt=/\d+/,me=/[+-]?\d+/,G=/Z|[+-]\d\d:?\d\d/gi,Xt=/Z|[+-]\d\d(?::?\d\d)?/gi,C=/[+-]?\d+(\.\d{1,3})?/,Tt=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,Pa={};function x(a,r,o){Pa[a]=Le(r)?r:function(_,u){return _&&o?o:r}}function Fe(a,r){return ne(Pa,a)?Pa[a](r._strict,r._locale):new RegExp(ut(a))}function ut(a){return Ee(a.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(r,o,_,u,y){return o||_||u||y}))}function Ee(a){return a.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var he={};function $(a,r){var o,_=r;for(typeof a=="string"&&(a=[a]),ue(r)&&(_=function(u,y){y[r]=R(u)}),o=0;o68?1900:2e3)};var Ae=P("FullYear",!0);function pa(){return Da(this.year())}function Jt(a,r,o,_,u,y,k){var N=new Date(a,r,o,_,u,y,k);return a<100&&a>=0&&isFinite(N.getFullYear())&&N.setFullYear(a),N}function Pt(a){var r=new Date(Date.UTC.apply(null,arguments));return a<100&&a>=0&&isFinite(r.getUTCFullYear())&&r.setUTCFullYear(a),r}function Oe(a,r,o){var _=7+r-o,u=(7+Pt(a,0,_).getUTCDay()-r)%7;return-u+_-1}function Ea(a,r,o,_,u){var y=(7+o-_)%7,k=Oe(a,_,u),N=1+7*(r-1)+y+k,Z,le;return N<=0?(Z=a-1,le=ta(Z)+N):N>ta(a)?(Z=a+1,le=N-ta(a)):(Z=a,le=N),{year:Z,dayOfYear:le}}function Gt(a,r,o){var _=Oe(a.year(),r,o),u=Math.floor((a.dayOfYear()-_-1)/7)+1,y,k;return u<1?(k=a.year()-1,y=u+t(k,r,o)):u>t(a.year(),r,o)?(y=u-t(a.year(),r,o),k=a.year()+1):(k=a.year(),y=u),{week:y,year:k}}function t(a,r,o){var _=Oe(a,r,o),u=Oe(a+1,r,o);return(ta(a)-_+u)/7}W("w",["ww",2],"wo","week"),W("W",["WW",2],"Wo","isoWeek"),De("week","w"),De("isoWeek","W"),w("week",5),w("isoWeek",5),x("w",U),x("ww",U,je),x("W",U),x("WW",U,je),Ue(["w","ww","W","WW"],function(a,r,o,_){r[_.substr(0,1)]=R(a)});function i(a){return Gt(a,this._week.dow,this._week.doy).week}var m={dow:0,doy:6};function M(){return this._week.dow}function D(){return this._week.doy}function Aa(a){var r=this.localeData().week(this);return a==null?r:this.add((a-r)*7,"d")}function wt(a){var r=Gt(this,1,4).week;return a==null?r:this.add((a-r)*7,"d")}W("d",0,"do","day"),W("dd",0,0,function(a){return this.localeData().weekdaysMin(this,a)}),W("ddd",0,0,function(a){return this.localeData().weekdaysShort(this,a)}),W("dddd",0,0,function(a){return this.localeData().weekdays(this,a)}),W("e",0,0,"weekday"),W("E",0,0,"isoWeekday"),De("day","d"),De("weekday","e"),De("isoWeekday","E"),w("day",11),w("weekday",11),w("isoWeekday",11),x("d",U),x("e",U),x("E",U),x("dd",function(a,r){return r.weekdaysMinRegex(a)}),x("ddd",function(a,r){return r.weekdaysShortRegex(a)}),x("dddd",function(a,r){return r.weekdaysRegex(a)}),Ue(["dd","ddd","dddd"],function(a,r,o,_){var u=o._locale.weekdaysParse(a,_,o._strict);u!=null?r.d=u:S(o).invalidWeekday=a}),Ue(["d","e","E"],function(a,r,o,_){r[_]=R(a)});function Or(a,r){return typeof a!="string"?a:isNaN(a)?(a=r.weekdaysParse(a),typeof a=="number"?a:null):parseInt(a,10)}function Us(a,r){return typeof a=="string"?r.weekdaysParse(a)%7||7:isNaN(a)?null:a}var br="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_");function xr(a,r){return a?V(this._weekdays)?this._weekdays[a.day()]:this._weekdays[this._weekdays.isFormat.test(r)?"format":"standalone"][a.day()]:V(this._weekdays)?this._weekdays:this._weekdays.standalone}var Pr="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");function Wr(a){return a?this._weekdaysShort[a.day()]:this._weekdaysShort}var Fr="Su_Mo_Tu_We_Th_Fr_Sa".split("_");function Er(a){return a?this._weekdaysMin[a.day()]:this._weekdaysMin}function Ar(a,r,o){var _,u,y,k=a.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],_=0;_<7;++_)y=q([2e3,1]).day(_),this._minWeekdaysParse[_]=this.weekdaysMin(y,"").toLocaleLowerCase(),this._shortWeekdaysParse[_]=this.weekdaysShort(y,"").toLocaleLowerCase(),this._weekdaysParse[_]=this.weekdays(y,"").toLocaleLowerCase();return o?r==="dddd"?(u=ce.call(this._weekdaysParse,k),u!==-1?u:null):r==="ddd"?(u=ce.call(this._shortWeekdaysParse,k),u!==-1?u:null):(u=ce.call(this._minWeekdaysParse,k),u!==-1?u:null):r==="dddd"?(u=ce.call(this._weekdaysParse,k),u!==-1||(u=ce.call(this._shortWeekdaysParse,k),u!==-1)?u:(u=ce.call(this._minWeekdaysParse,k),u!==-1?u:null)):r==="ddd"?(u=ce.call(this._shortWeekdaysParse,k),u!==-1||(u=ce.call(this._weekdaysParse,k),u!==-1)?u:(u=ce.call(this._minWeekdaysParse,k),u!==-1?u:null)):(u=ce.call(this._minWeekdaysParse,k),u!==-1||(u=ce.call(this._weekdaysParse,k),u!==-1)?u:(u=ce.call(this._shortWeekdaysParse,k),u!==-1?u:null))}function Rr(a,r,o){var _,u,y;if(this._weekdaysParseExact)return Ar.call(this,a,r,o);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),_=0;_<7;_++){if(u=q([2e3,1]).day(_),o&&!this._fullWeekdaysParse[_]&&(this._fullWeekdaysParse[_]=new RegExp("^"+this.weekdays(u,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[_]=new RegExp("^"+this.weekdaysShort(u,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[_]=new RegExp("^"+this.weekdaysMin(u,"").replace(".",".?")+"$","i")),this._weekdaysParse[_]||(y="^"+this.weekdays(u,"")+"|^"+this.weekdaysShort(u,"")+"|^"+this.weekdaysMin(u,""),this._weekdaysParse[_]=new RegExp(y.replace(".",""),"i")),o&&r==="dddd"&&this._fullWeekdaysParse[_].test(a))return _;if(o&&r==="ddd"&&this._shortWeekdaysParse[_].test(a))return _;if(o&&r==="dd"&&this._minWeekdaysParse[_].test(a))return _;if(!o&&this._weekdaysParse[_].test(a))return _}}function Nr(a){if(!this.isValid())return a!=null?this:NaN;var r=this._isUTC?this._d.getUTCDay():this._d.getDay();return a!=null?(a=Or(a,this.localeData()),this.add(a-r,"d")):r}function zr(a){if(!this.isValid())return a!=null?this:NaN;var r=(this.day()+7-this.localeData()._week.dow)%7;return a==null?r:this.add(a-r,"d")}function Ir(a){if(!this.isValid())return a!=null?this:NaN;if(a!=null){var r=Us(a,this.localeData());return this.day(this.day()%7?r:r-7)}else return this.day()||7}var Cr=Tt;function Ur(a){return this._weekdaysParseExact?(ne(this,"_weekdaysRegex")||fs.call(this),a?this._weekdaysStrictRegex:this._weekdaysRegex):(ne(this,"_weekdaysRegex")||(this._weekdaysRegex=Cr),this._weekdaysStrictRegex&&a?this._weekdaysStrictRegex:this._weekdaysRegex)}var Jr=Tt;function Gr(a){return this._weekdaysParseExact?(ne(this,"_weekdaysRegex")||fs.call(this),a?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(ne(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Jr),this._weekdaysShortStrictRegex&&a?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}var cs=Tt;function Ms(a){return this._weekdaysParseExact?(ne(this,"_weekdaysRegex")||fs.call(this),a?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(ne(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=cs),this._weekdaysMinStrictRegex&&a?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function fs(){function a(Ie,ca){return ca.length-Ie.length}var r=[],o=[],_=[],u=[],y,k,N,Z,le;for(y=0;y<7;y++)k=q([2e3,1]).day(y),N=this.weekdaysMin(k,""),Z=this.weekdaysShort(k,""),le=this.weekdays(k,""),r.push(N),o.push(Z),_.push(le),u.push(N),u.push(Z),u.push(le);for(r.sort(a),o.sort(a),_.sort(a),u.sort(a),y=0;y<7;y++)o[y]=Ee(o[y]),_[y]=Ee(_[y]),u[y]=Ee(u[y]);this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+_.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+r.join("|")+")","i")}function Xa(){return this.hours()%12||12}function Js(){return this.hours()||24}W("H",["HH",2],0,"hour"),W("h",["hh",2],0,Xa),W("k",["kk",2],0,Js),W("hmm",0,0,function(){return""+Xa.apply(this)+qe(this.minutes(),2)}),W("hmmss",0,0,function(){return""+Xa.apply(this)+qe(this.minutes(),2)+qe(this.seconds(),2)}),W("Hmm",0,0,function(){return""+this.hours()+qe(this.minutes(),2)}),W("Hmmss",0,0,function(){return""+this.hours()+qe(this.minutes(),2)+qe(this.seconds(),2)});function Gs(a,r){W(a,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),r)})}Gs("a",!0),Gs("A",!1),De("hour","h"),w("hour",13);function $s(a,r){return r._meridiemParse}x("a",$s),x("A",$s),x("H",U),x("h",U),x("k",U),x("HH",U,je),x("hh",U,je),x("kk",U,je),x("hmm",bt),x("hmmss",Qt),x("Hmm",bt),x("Hmmss",Qt),$(["H","HH"],Te),$(["k","kk"],function(a,r,o){var _=R(a);r[Te]=_===24?0:_}),$(["a","A"],function(a,r,o){o._isPm=o._locale.isPM(a),o._meridiem=a}),$(["h","hh"],function(a,r,o){r[Te]=R(a),S(o).bigHour=!0}),$("hmm",function(a,r,o){var _=a.length-2;r[Te]=R(a.substr(0,_)),r[Ke]=R(a.substr(_)),S(o).bigHour=!0}),$("hmmss",function(a,r,o){var _=a.length-4,u=a.length-2;r[Te]=R(a.substr(0,_)),r[Ke]=R(a.substr(_,2)),r[ze]=R(a.substr(u)),S(o).bigHour=!0}),$("Hmm",function(a,r,o){var _=a.length-2;r[Te]=R(a.substr(0,_)),r[Ke]=R(a.substr(_))}),$("Hmmss",function(a,r,o){var _=a.length-4,u=a.length-2;r[Te]=R(a.substr(0,_)),r[Ke]=R(a.substr(_,2)),r[ze]=R(a.substr(u))});function $r(a){return(a+"").toLowerCase().charAt(0)==="p"}var Vr=/[ap]\.?m?\.?/i;function Vs(a,r,o){return a>11?o?"pm":"PM":o?"am":"AM"}var ye=P("Hours",!0),ka={calendar:Bt,longDateFormat:b,invalidDate:ve,ordinal:Nt,dayOfMonthOrdinalParse:Kt,relativeTime:Ze,months:Fa,monthsShort:Ka,week:m,weekdays:br,weekdaysMin:Fr,weekdaysShort:Pr,meridiemParse:Vr},Me={},Ra={},Na;function Zs(a){return a&&a.toLowerCase().replace("_","-")}function Zr(a){for(var r=0,o,_,u,y;r0;){if(u=za(y.slice(0,o).join("-")),u)return u;if(_&&_.length>=o&&Ve(y,_,!0)>=o-1)break;o--}r++}return null}function za(a){var r=null;if(!Me[a]&&K&&K.exports)try{r=Na._abbr,ls("./locale/"+a),dt(r)}catch{}return Me[a]}function dt(a,r){var o;return a&&(Ye(r)?o=$e(a):o=Ia(a,r),o&&(Na=o)),Na._abbr}function Ia(a,r){if(r!==null){var o=ka;if(r.abbr=a,Me[a]!=null)We("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."),o=Me[a]._config;else if(r.parentLocale!=null)if(Me[r.parentLocale]!=null)o=Me[r.parentLocale]._config;else return Ra[r.parentLocale]||(Ra[r.parentLocale]=[]),Ra[r.parentLocale].push({name:a,config:r}),null;return Me[a]=new Ne(st(o,r)),Ra[a]&&Ra[a].forEach(function(_){Ia(_.name,_.config)}),dt(a),Me[a]}else return delete Me[a],null}function qr(a,r){if(r!=null){var o,_=ka;Me[a]!=null&&(_=Me[a]._config),r=st(_,r),o=new Ne(r),o.parentLocale=Me[a],Me[a]=o,dt(a)}else Me[a]!=null&&(Me[a].parentLocale!=null?Me[a]=Me[a].parentLocale:Me[a]!=null&&delete Me[a]);return Me[a]}function $e(a){var r;if(a&&a._locale&&a._locale._abbr&&(a=a._locale._abbr),!a)return Na;if(!V(a)){if(r=za(a),r)return r;a=[a]}return Zr(a)}function Br(){return qt(Me)}function Ca(a){var r,o=a._a;return o&&S(a).overflow===-2&&(r=o[mt]<0||o[mt]>11?mt:o[Je]<1||o[Je]>oe(o[Be],o[mt])?Je:o[Te]<0||o[Te]>24||o[Te]===24&&(o[Ke]!==0||o[ze]!==0||o[Ge]!==0)?Te:o[Ke]<0||o[Ke]>59?Ke:o[ze]<0||o[ze]>59?ze:o[Ge]<0||o[Ge]>999?Ge:-1,S(a)._overflowDayOfYear&&(rJe)&&(r=Je),S(a)._overflowWeeks&&r===-1&&(r=Ut),S(a)._overflowWeekday&&r===-1&&(r=na),S(a).overflow=r),a}var Kr=/^\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)?)?$/,Qr=/^\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)?)?$/,Xr=/Z|[+-]\d\d(?::?\d\d)?/,oa=[["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}/]],Ua=[["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/]],en=/^\/?Date\((\-?\d+)/i;function qs(a){var r,o,_=a._i,u=Kr.exec(_)||Qr.exec(_),y,k,N,Z;if(u){for(S(a).iso=!0,r=0,o=oa.length;r10?"YYYY ":"YY "),y="HH:mm"+(o[4]?":ss":""),o[1]){var ca=new Date(o[2]),is=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][ca.getDay()];if(o[1].substr(0,3)!==is){S(a).weekdayMismatch=!0,a._isValid=!1;return}}switch(o[5].length){case 2:Ie===0?le=" +0000":(Ie=Z.indexOf(o[5][1].toUpperCase())-12,le=(Ie<0?" -":" +")+(""+Ie).replace(/^-?/,"0").match(/..$/)[0]+"00");break;case 4:le=N[o[5]];break;default:le=N[" GMT"]}o[5]=le,a._i=o.splice(1).join(""),k=" ZZ",a._f=_+u+y+k,Ja(a),S(a).rfc2822=!0}else a._isValid=!1}function an(a){var r=en.exec(a._i);if(r!==null){a._d=new Date(+r[1]);return}if(qs(a),a._isValid===!1)delete a._isValid;else return;if(Ys(a),a._isValid===!1)delete a._isValid;else return;Y.createFromInputFallback(a)}Y.createFromInputFallback=Pe("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 and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(a){a._d=new Date(a._i+(a._useUTC?" UTC":""))});function ga(a,r,o){return a??r??o}function sn(a){var r=new Date(Y.now());return a._useUTC?[r.getUTCFullYear(),r.getUTCMonth(),r.getUTCDate()]:[r.getFullYear(),r.getMonth(),r.getDate()]}function ys(a){var r,o,_=[],u,y;if(!a._d){for(u=sn(a),a._w&&a._a[Je]==null&&a._a[mt]==null&&rn(a),a._dayOfYear!=null&&(y=ga(a._a[Be],u[Be]),(a._dayOfYear>ta(y)||a._dayOfYear===0)&&(S(a)._overflowDayOfYear=!0),o=Pt(y,0,a._dayOfYear),a._a[mt]=o.getUTCMonth(),a._a[Je]=o.getUTCDate()),r=0;r<3&&a._a[r]==null;++r)a._a[r]=_[r]=u[r];for(;r<7;r++)a._a[r]=_[r]=a._a[r]==null?r===2?1:0:a._a[r];a._a[Te]===24&&a._a[Ke]===0&&a._a[ze]===0&&a._a[Ge]===0&&(a._nextDay=!0,a._a[Te]=0),a._d=(a._useUTC?Pt:Jt).apply(null,_),a._tzm!=null&&a._d.setUTCMinutes(a._d.getUTCMinutes()-a._tzm),a._nextDay&&(a._a[Te]=24)}}function rn(a){var r,o,_,u,y,k,N,Z;if(r=a._w,r.GG!=null||r.W!=null||r.E!=null)y=1,k=4,o=ga(r.GG,a._a[Be],Gt(ke(),1,4).year),_=ga(r.W,1),u=ga(r.E,1),(u<1||u>7)&&(Z=!0);else{y=a._locale._week.dow,k=a._locale._week.doy;var le=Gt(ke(),y,k);o=ga(r.gg,a._a[Be],le.year),_=ga(r.w,le.week),r.d!=null?(u=r.d,(u<0||u>6)&&(Z=!0)):r.e!=null?(u=r.e+y,(r.e<0||r.e>6)&&(Z=!0)):u=y}_<1||_>t(o,y,k)?S(a)._overflowWeeks=!0:Z!=null?S(a)._overflowWeekday=!0:(N=Ea(o,_,u,y,k),a._a[Be]=N.year,a._dayOfYear=N.dayOfYear)}Y.ISO_8601=function(){},Y.RFC_2822=function(){};function Ja(a){if(a._f===Y.ISO_8601){qs(a);return}if(a._f===Y.RFC_2822){Ys(a);return}a._a=[],S(a).empty=!0;var r=""+a._i,o,_,u,y,k,N=r.length,Z=0;for(u=pt(a._f,a._locale).match(lt)||[],o=0;o0&&S(a).unusedInput.push(k),r=r.slice(r.indexOf(_)+_.length),Z+=_.length),Lt[y]?(_?S(a).empty=!1:S(a).unusedTokens.push(y),Ct(y,_,a)):a._strict&&!_&&S(a).unusedTokens.push(y);S(a).charsLeftOver=N-Z,r.length>0&&S(a).unusedInput.push(r),a._a[Te]<=12&&S(a).bigHour===!0&&a._a[Te]>0&&(S(a).bigHour=void 0),S(a).parsedDateParts=a._a.slice(0),S(a).meridiem=a._meridiem,a._a[Te]=nn(a._locale,a._a[Te],a._meridiem),ys(a),Ca(a)}function nn(a,r,o){var _;return o==null?r:a.meridiemHour!=null?a.meridiemHour(r,o):(a.isPM!=null&&(_=a.isPM(o),_&&r<12&&(r+=12),!_&&r===12&&(r=0)),r)}function Ta(a){var r,o,_,u,y;if(a._f.length===0){S(a).invalidFormat=!0,a._d=new Date(NaN);return}for(u=0;uthis?this:a:be()});function ps(a,r){var o,_;if(r.length===1&&V(r[0])&&(r=r[0]),!r.length)return ke();for(o=r[0],_=1;_this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function fn(){if(!Ye(this._isDSTShifted))return this._isDSTShifted;var a={};if(St(a,this),a=Bs(a),a._a){var r=a._isUTC?q(a._a):ke(a._a);this._isDSTShifted=this.isValid()&&Ve(a._a,r.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function Yn(){return this.isValid()?!this._isUTC:!1}function yn(){return this.isValid()?this._isUTC:!1}function ar(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Ln=/^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Dn=/^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$/;function Wt(a,r){var o=a,_=null,u,y,k;return ks(a)?o={ms:a._milliseconds,d:a._days,M:a._months}:ue(a)?(o={},r?o[r]=a:o.milliseconds=a):(_=Ln.exec(a))?(u=_[1]==="-"?-1:1,o={y:0,d:R(_[Je])*u,h:R(_[Te])*u,m:R(_[Ke])*u,s:R(_[ze])*u,ms:R(_a(_[Ge]*1e3))*u}):(_=Dn.exec(a))?(u=_[1]==="-"?-1:1,o={y:la(_[2],u),M:la(_[3],u),w:la(_[4],u),d:la(_[5],u),h:la(_[6],u),m:la(_[7],u),s:la(_[8],u)}):o==null?o={}:typeof o=="object"&&("from"in o||"to"in o)&&(k=pn(ke(o.from),ke(o.to)),o={},o.ms=k.milliseconds,o.M=k.months),y=new es(o),ks(a)&&ne(a,"_locale")&&(y._locale=a._locale),y}Wt.fn=es.prototype,Wt.invalid=mn;function la(a,r){var o=a&&parseFloat(a.replace(",","."));return(isNaN(o)?0:o)*r}function sr(a,r){var o={milliseconds:0,months:0};return o.months=r.month()-a.month()+(r.year()-a.year())*12,a.clone().add(o.months,"M").isAfter(r)&&--o.months,o.milliseconds=+r-+a.clone().add(o.months,"M"),o}function pn(a,r){var o;return a.isValid()&&r.isValid()?(r=wa(r,a),a.isBefore(r)?o=sr(a,r):(o=sr(r,a),o.milliseconds=-o.milliseconds,o.months=-o.months),o):{milliseconds:0,months:0}}function Hs(a,r){return function(o,_){var u,y;return _!==null&&!isNaN(+_)&&(We(r,"moment()."+r+"(period, number) is deprecated. Please use moment()."+r+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),y=o,o=_,_=y),o=typeof o=="string"?+o:o,u=Wt(o,_),rr(this,u,a),this}}function rr(a,r,o,_){var u=r._milliseconds,y=_a(r._days),k=_a(r._months);a.isValid()&&(_=_??!0,u&&a._d.setTime(a._d.valueOf()+u*o),y&&ee(a,"Date",X(a,"Date")+y*o),k&&ht(a,X(a,"Month")+k*o),_&&Y.updateOffset(a,y||k))}var kn=Hs(1,"add"),vt=Hs(-1,"subtract");function ua(a,r){var o=a.diff(r,"days",!0);return o<-6?"sameElse":o<-1?"lastWeek":o<0?"lastDay":o<1?"sameDay":o<2?"nextDay":o<7?"nextWeek":"sameElse"}function nr(a,r){var o=a||ke(),_=wa(o,this).startOf("day"),u=Y.calendarFormat(this,_)||"sameElse",y=r&&(Le(r[u])?r[u].call(this,o):r[u]);return this.format(y||this.localeData().calendar(u,this,ke(o)))}function gn(){return new we(this)}function ir(a,r){var o=ge(a)?a:ke(a);return this.isValid()&&o.isValid()?(r=f(Ye(r)?"millisecond":r),r==="millisecond"?this.valueOf()>o.valueOf():o.valueOf()9999?rt(a,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):Le(Date.prototype.toISOString)?this.toDate().toISOString():rt(a,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}function bn(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var a="moment",r="";this.isLocal()||(a=this.utcOffset()===0?"moment.utc":"moment.parseZone",r="Z");var o="["+a+'("]',_=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",u="-MM-DD[T]HH:mm:ss.SSS",y=r+'[")]';return this.format(o+_+u+y)}function xn(a){a||(a=this.isUtc()?Y.defaultFormatUtc:Y.defaultFormat);var r=rt(this,a);return this.localeData().postformat(r)}function Pn(a,r){return this.isValid()&&(ge(a)&&a.isValid()||ke(a).isValid())?Wt({to:this,from:a}).locale(this.locale()).humanize(!r):this.localeData().invalidDate()}function Wn(a){return this.from(ke(),a)}function Fn(a,r){return this.isValid()&&(ge(a)&&a.isValid()||ke(a).isValid())?Wt({from:this,to:a}).locale(this.locale()).humanize(!r):this.localeData().invalidDate()}function En(a){return this.to(ke(),a)}function _r(a){var r;return a===void 0?this._locale._abbr:(r=$e(a),r!=null&&(this._locale=r),this)}var lr=Pe("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(a){return a===void 0?this.localeData():this.locale(a)});function ur(){return this._locale}function ts(a){switch(a=f(a),a){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return a==="week"&&this.weekday(0),a==="isoWeek"&&this.isoWeekday(1),a==="quarter"&&this.month(Math.floor(this.month()/3)*3),this}function An(a){return a=f(a),a===void 0||a==="millisecond"?this:(a==="date"&&(a="day"),this.startOf(a).add(1,a==="isoWeek"?"week":a).subtract(1,"ms"))}function Rn(){return this._d.valueOf()-(this._offset||0)*6e4}function Nn(){return Math.floor(this.valueOf()/1e3)}function zn(){return new Date(this.valueOf())}function In(){var a=this;return[a.year(),a.month(),a.date(),a.hour(),a.minute(),a.second(),a.millisecond()]}function Cn(){var a=this;return{years:a.year(),months:a.month(),date:a.date(),hours:a.hours(),minutes:a.minutes(),seconds:a.seconds(),milliseconds:a.milliseconds()}}function Un(){return this.isValid()?this.toISOString():null}function Jn(){return Yt(this)}function mr(){return He({},S(this))}function hr(){return S(this).overflow}function cr(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}W(0,["gg",2],0,function(){return this.weekYear()%100}),W(0,["GG",2],0,function(){return this.isoWeekYear()%100});function ma(a,r){W(0,[a,a.length],0,r)}ma("gggg","weekYear"),ma("ggggg","weekYear"),ma("GGGG","isoWeekYear"),ma("GGGGG","isoWeekYear"),De("weekYear","gg"),De("isoWeekYear","GG"),w("weekYear",1),w("isoWeekYear",1),x("G",me),x("g",me),x("GG",U,je),x("gg",U,je),x("GGGG",It,Ot),x("gggg",It,Ot),x("GGGGG",xt,kt),x("ggggg",xt,kt),Ue(["gggg","ggggg","GGGG","GGGGG"],function(a,r,o,_){r[_.substr(0,2)]=R(a)}),Ue(["gg","GG"],function(a,r,o,_){r[_]=Y.parseTwoDigitYear(a)});function Sa(a){return js.call(this,a,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function as(a){return js.call(this,a,this.isoWeek(),this.isoWeekday(),1,4)}function Mr(){return t(this.year(),1,4)}function Ha(){var a=this.localeData()._week;return t(this.year(),a.dow,a.doy)}function js(a,r,o,_,u){var y;return a==null?Gt(this,_,u).year:(y=t(a,_,u),r>y&&(r=y),fr.call(this,a,r,o,_,u))}function fr(a,r,o,_,u){var y=Ea(a,r,o,_,u),k=Pt(y.year,0,y.dayOfYear);return this.year(k.getUTCFullYear()),this.month(k.getUTCMonth()),this.date(k.getUTCDate()),this}W("Q",0,"Qo","quarter"),De("quarter","Q"),w("quarter",7),x("Q",Xe),$("Q",function(a,r){r[mt]=(R(a)-1)*3});function Gn(a){return a==null?Math.ceil((this.month()+1)/3):this.month((a-1)*3+this.month()%3)}W("D",["DD",2],"Do","date"),De("date","D"),w("date",9),x("D",U),x("DD",U,je),x("Do",function(a,r){return a?r._dayOfMonthOrdinalParse||r._ordinalParse:r._dayOfMonthOrdinalParseLenient}),$(["D","DD"],Je),$("Do",function(a,r){r[Je]=R(a.match(U)[0])});var Yr=P("Date",!0);W("DDD",["DDDD",3],"DDDo","dayOfYear"),De("dayOfYear","DDD"),w("dayOfYear",4),x("DDD",j),x("DDDD",ra),$(["DDD","DDDD"],function(a,r,o){o._dayOfYear=R(a)});function $n(a){var r=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return a==null?r:this.add(a-r,"d")}W("m",["mm",2],0,"minute"),De("minute","m"),w("minute",14),x("m",U),x("mm",U,je),$(["m","mm"],Ke);var Vn=P("Minutes",!1);W("s",["ss",2],0,"second"),De("second","s"),w("second",15),x("s",U),x("ss",U,je),$(["s","ss"],ze);var Zn=P("Seconds",!1);W("S",0,0,function(){return~~(this.millisecond()/100)}),W(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),W(0,["SSS",3],0,"millisecond"),W(0,["SSSS",4],0,function(){return this.millisecond()*10}),W(0,["SSSSS",5],0,function(){return this.millisecond()*100}),W(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),W(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),W(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),W(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),De("millisecond","ms"),w("millisecond",16),x("S",j,Xe),x("SS",j,je),x("SSS",j,ra);var aa;for(aa="SSSS";aa.length<=9;aa+="S")x(aa,gt);function qn(a,r){r[Ge]=R(("0."+a)*1e3)}for(aa="S";aa.length<=9;aa+="S")$(aa,qn);var Bn=P("Milliseconds",!1);W("z",0,0,"zoneAbbr"),W("zz",0,0,"zoneName");function Kn(){return this._isUTC?"UTC":""}function Qn(){return this._isUTC?"Coordinated Universal Time":""}var v=we.prototype;v.add=kn,v.calendar=nr,v.clone=gn,v.diff=Sn,v.endOf=An,v.format=xn,v.from=Pn,v.fromNow=Wn,v.to=Fn,v.toNow=En,v.get=pe,v.invalidAt=hr,v.isAfter=ir,v.isBefore=dr,v.isBetween=Tn,v.isSame=wn,v.isSameOrAfter=or,v.isSameOrBefore=vn,v.isValid=Jn,v.lang=lr,v.locale=_r,v.localeData=ur,v.max=_n,v.min=on,v.parsingFlags=mr,v.set=re,v.startOf=ts,v.subtract=vt,v.toArray=In,v.toObject=Cn,v.toDate=zn,v.toISOString=On,v.inspect=bn,v.toJSON=Un,v.toString=jn,v.unix=Nn,v.valueOf=Rn,v.creationData=cr,v.year=Ae,v.isLeapYear=pa,v.weekYear=Sa,v.isoWeekYear=as,v.quarter=v.quarters=Gn,v.month=ct,v.daysInMonth=us,v.week=v.weeks=Aa,v.isoWeek=v.isoWeeks=wt,v.weeksInYear=Ha,v.isoWeeksInYear=Mr,v.date=Yr,v.day=v.days=Nr,v.weekday=zr,v.isoWeekday=Ir,v.dayOfYear=$n,v.hour=v.hours=ye,v.minute=v.minutes=Vn,v.second=v.seconds=Zn,v.millisecond=v.milliseconds=Bn,v.utcOffset=Ts,v.utc=tr,v.local=Mn,v.parseZone=ws,v.hasAlignedHourOffset=vs,v.isDST=Ss,v.isLocal=Yn,v.isUtcOffset=yn,v.isUtc=ar,v.isUTC=ar,v.zoneAbbr=Kn,v.zoneName=Qn,v.dates=Pe("dates accessor is deprecated. Use date instead.",Yr),v.months=Pe("months accessor is deprecated. Use month instead",ct),v.years=Pe("years accessor is deprecated. Use year instead",Ae),v.zone=Pe("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",cn),v.isDSTShifted=Pe("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",fn);function Xn(a){return ke(a*1e3)}function ei(){return ke.apply(null,arguments).parseZone()}function yr(a){return a}var _e=Ne.prototype;_e.calendar=yt,_e.longDateFormat=I,_e.invalidDate=_t,_e.ordinal=ba,_e.preparse=yr,_e.postformat=yr,_e.relativeTime=xa,_e.pastFuture=ya,_e.set=at,_e.months=Ba,_e.monthsShort=da,_e.monthsParse=it,_e.monthsRegex=hs,_e.monthsShortRegex=La,_e.week=i,_e.firstDayOfYear=D,_e.firstDayOfWeek=M,_e.weekdays=xr,_e.weekdaysMin=Er,_e.weekdaysShort=Wr,_e.weekdaysParse=Rr,_e.weekdaysRegex=Ur,_e.weekdaysShortRegex=Gr,_e.weekdaysMinRegex=Ms,_e.isPM=$r,_e.meridiem=Vs;function ss(a,r,o,_){var u=$e(),y=q().set(_,r);return u[o](y,a)}function Lr(a,r,o){if(ue(a)&&(r=a,a=void 0),a=a||"",r!=null)return ss(a,r,o,"month");var _,u=[];for(_=0;_<12;_++)u[_]=ss(a,_,o,"month");return u}function Os(a,r,o,_){typeof a=="boolean"?(ue(r)&&(o=r,r=void 0),r=r||""):(r=a,o=r,a=!1,ue(r)&&(o=r,r=void 0),r=r||"");var u=$e(),y=a?u._week.dow:0;if(o!=null)return ss(r,(o+y)%7,_,"day");var k,N=[];for(k=0;k<7;k++)N[k]=ss(r,(k+y)%7,_,"day");return N}function ti(a,r){return Lr(a,r,"months")}function ai(a,r){return Lr(a,r,"monthsShort")}function si(a,r,o){return Os(a,r,o,"weekdays")}function ri(a,r,o){return Os(a,r,o,"weekdaysShort")}function bs(a,r,o){return Os(a,r,o,"weekdaysMin")}dt("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(a){var r=a%10,o=R(a%100/10)===1?"th":r===1?"st":r===2?"nd":r===3?"rd":"th";return a+o}}),Y.lang=Pe("moment.lang is deprecated. Use moment.locale instead.",dt),Y.langData=Pe("moment.langData is deprecated. Use moment.localeData instead.",$e);var $t=Math.abs;function ni(){var a=this._data;return this._milliseconds=$t(this._milliseconds),this._days=$t(this._days),this._months=$t(this._months),a.milliseconds=$t(a.milliseconds),a.seconds=$t(a.seconds),a.minutes=$t(a.minutes),a.hours=$t(a.hours),a.months=$t(a.months),a.years=$t(a.years),this}function Dr(a,r,o,_){var u=Wt(r,o);return a._milliseconds+=_*u._milliseconds,a._days+=_*u._days,a._months+=_*u._months,a._bubble()}function xs(a,r){return Dr(this,a,r,1)}function rs(a,r){return Dr(this,a,r,-1)}function pr(a){return a<0?Math.floor(a):Math.ceil(a)}function ii(){var a=this._milliseconds,r=this._days,o=this._months,_=this._data,u,y,k,N,Z;return a>=0&&r>=0&&o>=0||a<=0&&r<=0&&o<=0||(a+=pr(Ps(o)+r)*864e5,r=0,o=0),_.milliseconds=a%1e3,u=de(a/1e3),_.seconds=u%60,y=de(u/60),_.minutes=y%60,k=de(y/60),_.hours=k%24,r+=de(k/24),Z=de(kr(r)),o+=Z,r-=pr(Ps(Z)),N=de(o/12),o%=12,_.days=r,_.months=o,_.years=N,this}function kr(a){return a*4800/146097}function Ps(a){return a*146097/4800}function di(a){if(!this.isValid())return NaN;var r,o,_=this._milliseconds;if(a=f(a),a==="month"||a==="year")return r=this._days+_/864e5,o=this._months+kr(r),a==="month"?o:o/12;switch(r=this._days+Math.round(Ps(this._months)),a){case"week":return r/7+_/6048e5;case"day":return r+_/864e5;case"hour":return r*24+_/36e5;case"minute":return r*1440+_/6e4;case"second":return r*86400+_/1e3;case"millisecond":return Math.floor(r*864e5)+_;default:throw new Error("Unknown unit "+a)}}function oi(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+R(this._months/12)*31536e6:NaN}function Vt(a){return function(){return this.as(a)}}var _i=Vt("ms"),li=Vt("s"),gr=Vt("m"),ui=Vt("h"),mi=Vt("d"),hi=Vt("w"),sa=Vt("M"),Tr=Vt("y");function ci(a){return a=f(a),this.isValid()?this[a+"s"]():NaN}function ha(a){return function(){return this.isValid()?this._data[a]:NaN}}var Mi=ha("milliseconds"),T=ha("seconds"),fi=ha("minutes"),Yi=ha("hours"),wr=ha("days"),te=ha("months"),ns=ha("years");function vr(){return de(this.days()/7)}var Ft=Math.round,Et={ss:44,s:45,m:45,h:22,d:26,M:11};function yi(a,r,o,_,u){return u.relativeTime(r||1,!!o,a,_)}function Li(a,r,o){var _=Wt(a).abs(),u=Ft(_.as("s")),y=Ft(_.as("m")),k=Ft(_.as("h")),N=Ft(_.as("d")),Z=Ft(_.as("M")),le=Ft(_.as("y")),Ie=u<=Et.ss&&["s",u]||u0,Ie[4]=o,yi.apply(null,Ie)}function Di(a){return a===void 0?Ft:typeof a=="function"?(Ft=a,!0):!1}function pi(a,r){return Et[a]===void 0?!1:r===void 0?Et[a]:(Et[a]=r,a==="s"&&(Et.ss=r-1),!0)}function Zt(a){if(!this.isValid())return this.localeData().invalidDate();var r=this.localeData(),o=Li(this,!a,r);return a&&(o=r.pastFuture(+this,o)),r.postformat(o)}var Ws=Math.abs;function $a(){if(!this.isValid())return this.localeData().invalidDate();var a=Ws(this._milliseconds)/1e3,r=Ws(this._days),o=Ws(this._months),_,u,y;_=de(a/60),u=de(_/60),a%=60,_%=60,y=de(o/12),o%=12;var k=y,N=o,Z=r,le=u,Ie=_,ca=a,is=this.asSeconds();return is?(is<0?"-":"")+"P"+(k?k+"Y":"")+(N?N+"M":"")+(Z?Z+"D":"")+(le||Ie||ca?"T":"")+(le?le+"H":"")+(Ie?Ie+"M":"")+(ca?ca+"S":""):"P0D"}var ae=es.prototype;return ae.isValid=Xs,ae.abs=ni,ae.add=xs,ae.subtract=rs,ae.as=di,ae.asMilliseconds=_i,ae.asSeconds=li,ae.asMinutes=gr,ae.asHours=ui,ae.asDays=mi,ae.asWeeks=hi,ae.asMonths=sa,ae.asYears=Tr,ae.valueOf=oi,ae._bubble=ii,ae.get=ci,ae.milliseconds=Mi,ae.seconds=T,ae.minutes=fi,ae.hours=Yi,ae.days=wr,ae.weeks=vr,ae.months=te,ae.years=ns,ae.humanize=Zt,ae.toISOString=$a,ae.toString=$a,ae.toJSON=$a,ae.locale=_r,ae.localeData=ur,ae.toIsoString=Pe("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",$a),ae.lang=lr,W("X",0,0,"unix"),W("x",0,0,"valueOf"),x("x",me),x("X",C),$("X",function(a,r,o){o._d=new Date(parseFloat(a,10)*1e3)}),$("x",function(a,r,o){o._d=new Date(R(a))}),Y.version="2.18.1",Q(ke),Y.fn=v,Y.min=ln,Y.max=Qs,Y.now=fe,Y.utc=q,Y.unix=Xn,Y.months=ti,Y.isDate=Re,Y.locale=dt,Y.invalid=be,Y.duration=Wt,Y.isMoment=ge,Y.weekdays=si,Y.parseZone=ei,Y.localeData=$e,Y.isDuration=ks,Y.monthsShort=ai,Y.weekdaysMin=bs,Y.defineLocale=Ia,Y.updateLocale=qr,Y.locales=Br,Y.weekdaysShort=ri,Y.normalizeUnits=f,Y.relativeTimeRounding=Di,Y.relativeTimeThreshold=pi,Y.calendarFormat=ua,Y.prototype=v,Y})}(gi)),gi.exports}var Ld=Cs();const jr=qi(Ld);var Bi={exports:{}},Ti={exports:{}},Si;function Dd(){return Si||(Si=1,function(K,E){(function(c,Y){K.exports=Y()})(qa,function(){var c;function Y(){return c.apply(null,arguments)}function Q(e){c=e}function V(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function J(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function A(e,s){return Object.prototype.hasOwnProperty.call(e,s)}function Ye(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var s;for(s in e)if(A(e,s))return!1;return!0}function ue(e){return e===void 0}function Re(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function Mt(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function ne(e,s){var n=[],d,l=e.length;for(d=0;d>>0,d;for(d=0;d0)for(n=0;n{let t;if(e){const n=Number.parseFloat(e.lat),a=Number.parseFloat(e.lng);!Number.isNaN(n)&&!Number.isNaN(a)&&(t={lat:n,lng:a})}return t},$={getPosition:B},H=1,J=12,s=e=>{const t=$.getPosition(e.position),[n,a]=i.useState(t||e.defaultCenter),[y,q]=i.useState(),w=i.useMemo(()=>{let r;return t?r=J:e.defaultZoom?r=e.defaultZoom:r=H,r},[t,e.defaultZoom]),D=i.useCallback(({latLng:r})=>{e.onDragEnd&&e.onDragEnd({lat:r.lat(),lng:r.lng()})},[e.onDragEnd]),W=i.useCallback(r=>q(r),[]);return i.useEffect(()=>{if(y&&t){const r=y.getBounds();r&&!r.contains(t)&&a(t)}},[e.position]),o.jsx(V,{center:n,mapContainerClassName:e.className,mapContainerStyle:e.containerStyle,onClick:D,onLoad:W,zoom:w,children:t&&o.jsx(z,{draggable:!!e.onDragEnd,onDragEnd:D,position:t,visible:!0})})};s.defaultProps={containerStyle:{height:"400px"},defaultCenter:{lat:0,lng:0}};s.__docgenInfo={description:"",methods:[],displayName:"GoogleMap",props:{className:{required:!1,flowType:{name:"string"},description:""},containerStyle:{required:!1,flowType:{name:"any"},description:"",defaultValue:{value:`{ +import{j as o}from"./jsx-runtime-BTCK_S7S.js";import{r as i}from"./index-CBqU2yxZ.js";import{F as u}from"./Form-fErk-qk_.js";import{E as R}from"./Environment-CB6gPeJ7.js";import"./index.es28-Dp3-vHIY.js";import{G as V,M as z,L as l}from"./esm-DEHfAp-s.js";import"./_commonjsHelpers-BosuxZz1.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getElementType-CckcRzoH.js";import"./Button-Blq7Z6RX.js";import"./Icon-2tEtgK8g.js";import"./Label-Cq1fb1cd.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./forEach-CXlln0XP.js";import"./Dimmer-D_gwaesu.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./index-DZGZymok.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./map-B4PnIEPz.js";import"./Checkbox-C9uAfnsM.js";import"./_baseSet-6y0qliU9.js";import"./_baseAssignValue-izmKBXUH.js";import"./Dropdown-Di2cPjwR.js";import"./without-BP-mqg2K.js";import"./isArrayLikeObject-CbXKTyfk.js";import"./isEmpty-Cyb9hIKi.js";import"./deburr-CEfyoYOr.js";import"./index-BBpNyw-T.js";import"./_arrayReduce-CrxnWFSq.js";import"./filter-CVNi8iPS.js";import"./Input--hQVCRQV.js";import"./iframe-BQtATEn0.js";import"../sb-preview/runtime.js";const B=e=>{let t;if(e){const n=Number.parseFloat(e.lat),a=Number.parseFloat(e.lng);!Number.isNaN(n)&&!Number.isNaN(a)&&(t={lat:n,lng:a})}return t},$={getPosition:B},H=1,J=12,s=e=>{const t=$.getPosition(e.position),[n,a]=i.useState(t||e.defaultCenter),[y,q]=i.useState(),w=i.useMemo(()=>{let r;return t?r=J:e.defaultZoom?r=e.defaultZoom:r=H,r},[t,e.defaultZoom]),D=i.useCallback(({latLng:r})=>{e.onDragEnd&&e.onDragEnd({lat:r.lat(),lng:r.lng()})},[e.onDragEnd]),W=i.useCallback(r=>q(r),[]);return i.useEffect(()=>{if(y&&t){const r=y.getBounds();r&&!r.contains(t)&&a(t)}},[e.position]),o.jsx(V,{center:n,mapContainerClassName:e.className,mapContainerStyle:e.containerStyle,onClick:D,onLoad:W,zoom:w,children:t&&o.jsx(z,{draggable:!!e.onDragEnd,onDragEnd:D,position:t,visible:!0})})};s.defaultProps={containerStyle:{height:"400px"},defaultCenter:{lat:0,lng:0}};s.__docgenInfo={description:"",methods:[],displayName:"GoogleMap",props:{className:{required:!1,flowType:{name:"string"},description:""},containerStyle:{required:!1,flowType:{name:"any"},description:"",defaultValue:{value:`{ height: '400px' }`,computed:!1}},defaultCenter:{required:!1,flowType:{name:"signature",type:"object",raw:`{ lat: number, diff --git a/docs/assets/HorizontalCards.stories-BQDatMOE.js b/docs/assets/HorizontalCards.stories-ClzFpanE.js similarity index 97% rename from docs/assets/HorizontalCards.stories-BQDatMOE.js rename to docs/assets/HorizontalCards.stories-ClzFpanE.js index fa21d05d..abfc2da9 100644 --- a/docs/assets/HorizontalCards.stories-BQDatMOE.js +++ b/docs/assets/HorizontalCards.stories-ClzFpanE.js @@ -1,4 +1,4 @@ -import{j as i}from"./jsx-runtime-BTCK_S7S.js";import{r as a}from"./index-CBqU2yxZ.js";import{a as Y}from"./chunk-WFFRPTHA-B2vgThZf.js";import{d as V}from"./index-DfmhmaGJ.js";import{_ as k}from"./index-default-C_maRo4o.js";import{B as N}from"./Button-Blq7Z6RX.js";import{H as Z}from"./Header-BJ3NNdPz.js";import{I as ee}from"./Label-Cq1fb1cd.js";import{C as o}from"./Card-BJT3uTAq.js";import{D as re}from"./Draggable-KQRXc-DM.js";import{R as te}from"./Portal-DvhHJPzU.js";import{u as ne}from"./DragDrop-ryAVAQMJ.js";import{w as y}from"./Images-DFvK9Yjz.js";import"./_commonjsHelpers-BosuxZz1.js";import"./preview-errors-CzpZmerH.js";import"./index-CKJfshIT.js";import"./v4-D8aEg3BZ.js";import"./mapValues-CZh2vnSw.js";import"./pickBy-CU2rOOKe.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-Bu_b4Pek.js";import"./index-Cw1G72V2.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./debounce-Bq1aTuh-.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getElementType-CckcRzoH.js";import"./Icon-2tEtgK8g.js";import"./map-B4PnIEPz.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./forEach-CXlln0XP.js";import"./Dimmer-D_gwaesu.js";import"./useDrop-BRQoWSA5.js";import"./DndContext-B-2NJP7Z.js";import"./redux-C8f_Y06i.js";import"./objectSpread2-N4c0DWqo.js";import"./defineProperty-CCxoMnQV.js";import"./toPropertyKey-hKuLU48H.js";import"./keyboardKey-OMDgGVm3.js";import"./index-DZGZymok.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./index-xJp9Kd2E.js";import"./Number-D3yuhZId.js";const d=r=>{const[e,b]=a.useState(0),[s,C]=a.useState(0),[h,E]=a.useState(0),[I,H]=a.useState(0),c=a.useRef(),$=a.useMemo(()=>({flex:`0 0 ${s/r.perPage-e}px`}),[s,e,r.perPage]),D=a.useCallback((t,n=null)=>{const m=[];return n&&m.push(n),t&&m.push(t),m.join(" ")},[]),w=a.useCallback(t=>{const n=c.current;if(n){const{clientWidth:m,scrollWidth:x}=n;C(m),H(Math.ceil(x/m)),t||E(0);const v=n.firstChild;if(v){const M=window.getComputedStyle(v),Q=parseFloat(M.marginLeft)||0,X=parseFloat(M.marginRight)||0;b(Q+X)}}},[c,r.items]),j=a.useCallback(t=>{let n=h+t;n<0?n=I:n>=I&&(n=0),E(n)},[h,I]);a.useEffect(()=>(window.addEventListener("resize",w),()=>window.removeEventListener("resize",w)),[]),a.useEffect(()=>w(),[w,r.items]),a.useEffect(()=>{const t=c.current;if(t){const{scrollWidth:n}=t;H(Math.ceil(n/s))}},[s]),a.useEffect(()=>{const t=c.current;t&&t.scrollTo({left:h*s,behavior:"smooth"})},[h,s]);const J=(t,n)=>{let m=i.jsxs(o,{className:D(r.cardClassName),link:!0,onClick:r.onClick&&r.onClick.bind(void 0,t,n),style:$,children:[!r.inlineImage&&P(t),(r.renderHeader||r.renderMeta||r.renderDescription)&&i.jsxs(o.Content,{children:[r.inlineImage&&P(t),r.renderHeader&&i.jsx(o.Header,{as:Z,size:"small",children:r.renderHeader(t)}),r.renderMeta&&i.jsx(o.Meta,{children:r.renderMeta(t)}),r.renderDescription&&i.jsx(o.Description,{children:r.renderDescription(t)})]}),r.renderExtra&&i.jsx(o.Content,{extra:!0,children:r.renderExtra(t)})]});if(r.onDrag){const x=t.id||t.uid;m=i.jsx(re,{direction:"horizontal",id:x,index:n,item:t,onDrag:r.onDrag,children:m},x)}return m},P=a.useCallback(t=>{const n=r.renderImage(t);return k.isString(n)||!n?i.jsx(ee,{alt:t.alt,className:"image-placeholder",src:n,style:{objectFit:"cover"}}):n},[r.renderImage]);return i.jsxs("div",{className:D(r.className,"horizontal-cards"),children:[i.jsx(te,{innerRef:c,children:i.jsx(o.Group,{className:D(r.cardsClassName),children:k.map(r.items,J.bind(void 0))})}),i.jsx("div",{className:"button-container",children:I>1&&i.jsxs("div",{className:"pagination",children:[i.jsx(N,{"aria-label":"Left",basic:!0,circular:!0,icon:"angle left",onClick:j.bind(void 0,-1)}),i.jsx(N,{"aria-label":"Right",basic:!0,circular:!0,icon:"angle right",onClick:j.bind(void 0,1)})]})})]})};d.defaultProps={perPage:4};d.__docgenInfo={description:"",methods:[],displayName:"HorizontalCards",props:{cardClassName:{required:!1,flowType:{name:"string"},description:""},cardsClassName:{required:!1,flowType:{name:"string"},description:""},className:{required:!1,flowType:{name:"string"},description:""},inlineImage:{required:!1,flowType:{name:"boolean"},description:""},items:{required:!0,flowType:{name:"Array",elements:[{name:"any"}],raw:"Array"},description:""},onClick:{required:!1,flowType:{name:"signature",type:"function",raw:"(item: any, index: number) => void",signature:{arguments:[{name:"item",type:{name:"any"}},{name:"index",type:{name:"number"}}],return:{name:"void"}}},description:""},onDrag:{required:!1,flowType:{name:"signature",type:"function",raw:"(dragIndex: number, hoverIndex: number) => void",signature:{arguments:[{name:"dragIndex",type:{name:"number"}},{name:"hoverIndex",type:{name:"number"}}],return:{name:"void"}}},description:""},perPage:{required:!1,flowType:{name:"number"},description:"",defaultValue:{value:"4",computed:!1}},renderDescription:{required:!1,flowType:{name:"signature",type:"function",raw:"(item: any) => Element | string",signature:{arguments:[{name:"item",type:{name:"any"}}],return:{name:"union",raw:"Element | string",elements:[{name:"Element",elements:[{name:"any"}],raw:"Element"},{name:"string"}]}}},description:""},renderExtra:{required:!1,flowType:{name:"signature",type:"function",raw:"(item: any) => Element | string",signature:{arguments:[{name:"item",type:{name:"any"}}],return:{name:"union",raw:"Element | string",elements:[{name:"Element",elements:[{name:"any"}],raw:"Element"},{name:"string"}]}}},description:""},renderHeader:{required:!1,flowType:{name:"signature",type:"function",raw:"(item: any) => Element | string",signature:{arguments:[{name:"item",type:{name:"any"}}],return:{name:"union",raw:"Element | string",elements:[{name:"Element",elements:[{name:"any"}],raw:"Element"},{name:"string"}]}}},description:""},renderImage:{required:!0,flowType:{name:"signature",type:"function",raw:"(item: any) => string",signature:{arguments:[{name:"item",type:{name:"any"}}],return:{name:"string"}}},description:""},renderMeta:{required:!1,flowType:{name:"signature",type:"function",raw:"(item: any) => Element | string",signature:{arguments:[{name:"item",type:{name:"any"}}],return:{name:"union",raw:"Element | string",elements:[{name:"Element",elements:[{name:"any"}],raw:"Element"},{name:"string"}]}}},description:""}}};const Ye={title:"Components/Semantic UI/HorizontalCards",decorators:[V.withKnobs]},l=y(r=>i.jsx(d,{items:r.images,renderDescription:e=>e.description,renderHeader:e=>e.title,renderImage:e=>e.image,renderMeta:e=>e.subtitle}),50),p=ne(y(r=>i.jsx(d,{items:r.images,onDrag:(e,b)=>{const s=[...r.images],C=s[e];s.splice(e,1),s.splice(b,0,C),r.setImages(s)},renderDescription:e=>e.description,renderHeader:e=>e.title,renderImage:e=>e.image,renderMeta:e=>e.subtitle}),10)),g=y(r=>i.jsx(d,{inlineImage:!0,items:r.images,renderDescription:e=>e.description,renderHeader:e=>e.title,renderImage:e=>e.image,renderMeta:e=>e.subtitle}),50),u=y(r=>i.jsx(d,{items:r.images,perPage:V.number("Per page",4),renderDescription:e=>e.description,renderHeader:e=>e.title,renderImage:e=>e.image,renderMeta:e=>e.subtitle}),50),f=y(r=>i.jsx(d,{items:r.images,onClick:Y("click"),renderDescription:e=>e.description,renderHeader:e=>e.title,renderImage:e=>e.image,renderMeta:e=>e.subtitle}),50);l.__docgenInfo={description:"",methods:[],displayName:"Default"};p.__docgenInfo={description:"",methods:[],displayName:"DragAndDrop"};g.__docgenInfo={description:"",methods:[],displayName:"InlineImages"};u.__docgenInfo={description:"",methods:[],displayName:"PerPage"};f.__docgenInfo={description:"",methods:[],displayName:"OnClick"};var _,z,S;l.parameters={...l.parameters,docs:{...(_=l.parameters)==null?void 0:_.docs,source:{originalSource:"withImages(props => item.description} renderHeader={item => item.title} renderImage={item => item.image} renderMeta={item => item.subtitle} />, 50)",...(S=(z=l.parameters)==null?void 0:z.docs)==null?void 0:S.source}}};var T,q,R;p.parameters={...p.parameters,docs:{...(T=p.parameters)==null?void 0:T.docs,source:{originalSource:`useDragDrop(withImages(props => { +import{j as i}from"./jsx-runtime-BTCK_S7S.js";import{r as a}from"./index-CBqU2yxZ.js";import{a as Y}from"./chunk-WFFRPTHA-B2vgThZf.js";import{d as V}from"./index-CAen7T_W.js";import{_ as k}from"./index-default-C_maRo4o.js";import{B as N}from"./Button-Blq7Z6RX.js";import{H as Z}from"./Header-BJ3NNdPz.js";import{I as ee}from"./Label-Cq1fb1cd.js";import{C as o}from"./Card-BJT3uTAq.js";import{D as re}from"./Draggable-KQRXc-DM.js";import{R as te}from"./Portal-DvhHJPzU.js";import{u as ne}from"./DragDrop-ryAVAQMJ.js";import{w as y}from"./Images-DFvK9Yjz.js";import"./_commonjsHelpers-BosuxZz1.js";import"./preview-errors-CzpZmerH.js";import"./index-CKJfshIT.js";import"./v4-D8aEg3BZ.js";import"./mapValues-LQZI9uWW.js";import"./pickBy-Us6u5-To.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-DCkRKKtx.js";import"./index-Cw1G72V2.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./debounce-BkgZrIul.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getElementType-CckcRzoH.js";import"./Icon-2tEtgK8g.js";import"./map-B4PnIEPz.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./forEach-CXlln0XP.js";import"./Dimmer-D_gwaesu.js";import"./useDrop-BRQoWSA5.js";import"./DndContext-B-2NJP7Z.js";import"./redux-C8f_Y06i.js";import"./objectSpread2-N4c0DWqo.js";import"./defineProperty-CCxoMnQV.js";import"./toPropertyKey-hKuLU48H.js";import"./keyboardKey-OMDgGVm3.js";import"./index-DZGZymok.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./index-xJp9Kd2E.js";import"./Number-D3yuhZId.js";const d=r=>{const[e,b]=a.useState(0),[s,C]=a.useState(0),[h,E]=a.useState(0),[I,H]=a.useState(0),c=a.useRef(),$=a.useMemo(()=>({flex:`0 0 ${s/r.perPage-e}px`}),[s,e,r.perPage]),D=a.useCallback((t,n=null)=>{const m=[];return n&&m.push(n),t&&m.push(t),m.join(" ")},[]),w=a.useCallback(t=>{const n=c.current;if(n){const{clientWidth:m,scrollWidth:x}=n;C(m),H(Math.ceil(x/m)),t||E(0);const v=n.firstChild;if(v){const M=window.getComputedStyle(v),Q=parseFloat(M.marginLeft)||0,X=parseFloat(M.marginRight)||0;b(Q+X)}}},[c,r.items]),j=a.useCallback(t=>{let n=h+t;n<0?n=I:n>=I&&(n=0),E(n)},[h,I]);a.useEffect(()=>(window.addEventListener("resize",w),()=>window.removeEventListener("resize",w)),[]),a.useEffect(()=>w(),[w,r.items]),a.useEffect(()=>{const t=c.current;if(t){const{scrollWidth:n}=t;H(Math.ceil(n/s))}},[s]),a.useEffect(()=>{const t=c.current;t&&t.scrollTo({left:h*s,behavior:"smooth"})},[h,s]);const J=(t,n)=>{let m=i.jsxs(o,{className:D(r.cardClassName),link:!0,onClick:r.onClick&&r.onClick.bind(void 0,t,n),style:$,children:[!r.inlineImage&&P(t),(r.renderHeader||r.renderMeta||r.renderDescription)&&i.jsxs(o.Content,{children:[r.inlineImage&&P(t),r.renderHeader&&i.jsx(o.Header,{as:Z,size:"small",children:r.renderHeader(t)}),r.renderMeta&&i.jsx(o.Meta,{children:r.renderMeta(t)}),r.renderDescription&&i.jsx(o.Description,{children:r.renderDescription(t)})]}),r.renderExtra&&i.jsx(o.Content,{extra:!0,children:r.renderExtra(t)})]});if(r.onDrag){const x=t.id||t.uid;m=i.jsx(re,{direction:"horizontal",id:x,index:n,item:t,onDrag:r.onDrag,children:m},x)}return m},P=a.useCallback(t=>{const n=r.renderImage(t);return k.isString(n)||!n?i.jsx(ee,{alt:t.alt,className:"image-placeholder",src:n,style:{objectFit:"cover"}}):n},[r.renderImage]);return i.jsxs("div",{className:D(r.className,"horizontal-cards"),children:[i.jsx(te,{innerRef:c,children:i.jsx(o.Group,{className:D(r.cardsClassName),children:k.map(r.items,J.bind(void 0))})}),i.jsx("div",{className:"button-container",children:I>1&&i.jsxs("div",{className:"pagination",children:[i.jsx(N,{"aria-label":"Left",basic:!0,circular:!0,icon:"angle left",onClick:j.bind(void 0,-1)}),i.jsx(N,{"aria-label":"Right",basic:!0,circular:!0,icon:"angle right",onClick:j.bind(void 0,1)})]})})]})};d.defaultProps={perPage:4};d.__docgenInfo={description:"",methods:[],displayName:"HorizontalCards",props:{cardClassName:{required:!1,flowType:{name:"string"},description:""},cardsClassName:{required:!1,flowType:{name:"string"},description:""},className:{required:!1,flowType:{name:"string"},description:""},inlineImage:{required:!1,flowType:{name:"boolean"},description:""},items:{required:!0,flowType:{name:"Array",elements:[{name:"any"}],raw:"Array"},description:""},onClick:{required:!1,flowType:{name:"signature",type:"function",raw:"(item: any, index: number) => void",signature:{arguments:[{name:"item",type:{name:"any"}},{name:"index",type:{name:"number"}}],return:{name:"void"}}},description:""},onDrag:{required:!1,flowType:{name:"signature",type:"function",raw:"(dragIndex: number, hoverIndex: number) => void",signature:{arguments:[{name:"dragIndex",type:{name:"number"}},{name:"hoverIndex",type:{name:"number"}}],return:{name:"void"}}},description:""},perPage:{required:!1,flowType:{name:"number"},description:"",defaultValue:{value:"4",computed:!1}},renderDescription:{required:!1,flowType:{name:"signature",type:"function",raw:"(item: any) => Element | string",signature:{arguments:[{name:"item",type:{name:"any"}}],return:{name:"union",raw:"Element | string",elements:[{name:"Element",elements:[{name:"any"}],raw:"Element"},{name:"string"}]}}},description:""},renderExtra:{required:!1,flowType:{name:"signature",type:"function",raw:"(item: any) => Element | string",signature:{arguments:[{name:"item",type:{name:"any"}}],return:{name:"union",raw:"Element | string",elements:[{name:"Element",elements:[{name:"any"}],raw:"Element"},{name:"string"}]}}},description:""},renderHeader:{required:!1,flowType:{name:"signature",type:"function",raw:"(item: any) => Element | string",signature:{arguments:[{name:"item",type:{name:"any"}}],return:{name:"union",raw:"Element | string",elements:[{name:"Element",elements:[{name:"any"}],raw:"Element"},{name:"string"}]}}},description:""},renderImage:{required:!0,flowType:{name:"signature",type:"function",raw:"(item: any) => string",signature:{arguments:[{name:"item",type:{name:"any"}}],return:{name:"string"}}},description:""},renderMeta:{required:!1,flowType:{name:"signature",type:"function",raw:"(item: any) => Element | string",signature:{arguments:[{name:"item",type:{name:"any"}}],return:{name:"union",raw:"Element | string",elements:[{name:"Element",elements:[{name:"any"}],raw:"Element"},{name:"string"}]}}},description:""}}};const Ye={title:"Components/Semantic UI/HorizontalCards",decorators:[V.withKnobs]},l=y(r=>i.jsx(d,{items:r.images,renderDescription:e=>e.description,renderHeader:e=>e.title,renderImage:e=>e.image,renderMeta:e=>e.subtitle}),50),p=ne(y(r=>i.jsx(d,{items:r.images,onDrag:(e,b)=>{const s=[...r.images],C=s[e];s.splice(e,1),s.splice(b,0,C),r.setImages(s)},renderDescription:e=>e.description,renderHeader:e=>e.title,renderImage:e=>e.image,renderMeta:e=>e.subtitle}),10)),g=y(r=>i.jsx(d,{inlineImage:!0,items:r.images,renderDescription:e=>e.description,renderHeader:e=>e.title,renderImage:e=>e.image,renderMeta:e=>e.subtitle}),50),u=y(r=>i.jsx(d,{items:r.images,perPage:V.number("Per page",4),renderDescription:e=>e.description,renderHeader:e=>e.title,renderImage:e=>e.image,renderMeta:e=>e.subtitle}),50),f=y(r=>i.jsx(d,{items:r.images,onClick:Y("click"),renderDescription:e=>e.description,renderHeader:e=>e.title,renderImage:e=>e.image,renderMeta:e=>e.subtitle}),50);l.__docgenInfo={description:"",methods:[],displayName:"Default"};p.__docgenInfo={description:"",methods:[],displayName:"DragAndDrop"};g.__docgenInfo={description:"",methods:[],displayName:"InlineImages"};u.__docgenInfo={description:"",methods:[],displayName:"PerPage"};f.__docgenInfo={description:"",methods:[],displayName:"OnClick"};var _,z,S;l.parameters={...l.parameters,docs:{...(_=l.parameters)==null?void 0:_.docs,source:{originalSource:"withImages(props => item.description} renderHeader={item => item.title} renderImage={item => item.image} renderMeta={item => item.subtitle} />, 50)",...(S=(z=l.parameters)==null?void 0:z.docs)==null?void 0:S.source}}};var T,q,R;p.parameters={...p.parameters,docs:{...(T=p.parameters)==null?void 0:T.docs,source:{originalSource:`useDragDrop(withImages(props => { const temp = [...props.images]; const item = temp[dragIndex]; temp.splice(dragIndex, 1); diff --git a/docs/assets/InfiniteScroll.stories-C49Dd1kM.js b/docs/assets/InfiniteScroll.stories-D0DEq3pl.js similarity index 93% rename from docs/assets/InfiniteScroll.stories-C49Dd1kM.js rename to docs/assets/InfiniteScroll.stories-D0DEq3pl.js index 25d06fdd..ab3138d3 100644 --- a/docs/assets/InfiniteScroll.stories-C49Dd1kM.js +++ b/docs/assets/InfiniteScroll.stories-D0DEq3pl.js @@ -1,4 +1,4 @@ -import{j as s}from"./jsx-runtime-BTCK_S7S.js";import{r as n}from"./index-CBqU2yxZ.js";import{d as P}from"./index-DfmhmaGJ.js";import{C as p}from"./Card-BJT3uTAq.js";import{_ as R}from"./index-default-C_maRo4o.js";import{i as B}from"./Cars-2_9qFJX9.js";import{u as C}from"./DragDrop-ryAVAQMJ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./mapValues-CZh2vnSw.js";import"./pickBy-CU2rOOKe.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-Bu_b4Pek.js";import"./index-Cw1G72V2.js";import"./index-CKJfshIT.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./preview-errors-CzpZmerH.js";import"./debounce-Bq1aTuh-.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getElementType-CckcRzoH.js";import"./Label-Cq1fb1cd.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./Icon-2tEtgK8g.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./forEach-CXlln0XP.js";import"./Dimmer-D_gwaesu.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./index-DZGZymok.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./map-B4PnIEPz.js";import"./DndContext-B-2NJP7Z.js";import"./redux-C8f_Y06i.js";import"./objectSpread2-N4c0DWqo.js";import"./defineProperty-CCxoMnQV.js";import"./toPropertyKey-hKuLU48H.js";const j=()=>typeof window<"u",x={isBrowser:j},u=t=>{const[o,i]=n.useState(0),m=n.useRef(),r=()=>{let e;return t.context?e=t.context.current:x.isBrowser()&&(e=document.documentElement),e},a=()=>{const e=r();if(e){const{scrollTop:l,clientHeight:g,scrollHeight:h}=e;l+g>=h-t.offset&&t.onBottomReached()}};n.useEffect(()=>{let e;if(t.context?e=t.context.current:x.isBrowser()&&(e=window),!!e)return e.addEventListener("scroll",a),()=>e&&e.removeEventListener("scroll",a)},[t.context]);const f=()=>{let e=!1;const l=r();if(l){const{clientHeight:g,scrollHeight:h}=l;e=h>g}return e};return n.useEffect(()=>{if(!f()&&m&&m.current){const{clientHeight:e}=m.current;e>o&&(i(e),t.onBottomReached())}}),s.jsx("div",{ref:m,children:t.children})};u.defaultProps={offset:0};u.__docgenInfo={description:"",methods:[],displayName:"InfiniteScroll",props:{children:{required:!0,flowType:{name:"Element",elements:[{name:"any"}],raw:"Element"},description:""},context:{required:!1,flowType:{name:"signature",type:"object",raw:"{ current: HTMLElement }",signature:{properties:[{key:"current",value:{name:"HTMLElement",required:!0}}]}},description:""},offset:{required:!1,flowType:{name:"number"},description:"",defaultValue:{value:"0",computed:!1}},onBottomReached:{required:!0,flowType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""}}};const he={title:"Components/Common/InfiniteScroll",decorators:[P.withKnobs]},E=10,c=C(()=>{const[t,o]=n.useState([]),[i,m]=n.useState(1);return n.useEffect(()=>{const r=(i-1)*E,a=r+E;o(f=>[...f,...B.slice(r,a)])},[i]),s.jsx(u,{offset:100,onBottomReached:()=>m(r=>r+1),children:s.jsx(p.Group,{children:R.map(t,(r,a)=>s.jsx(p,{header:r.make,meta:r.model,description:r.address},a))})})}),d=C(()=>{const t=[];return s.jsx(u,{offset:100,onBottomReached:()=>{},children:s.jsx(p.Group,{children:R.map(t,(o,i)=>s.jsx(p,{header:o.make,meta:o.model,description:o.address},i))})})});c.__docgenInfo={description:"",methods:[],displayName:"Default"};d.__docgenInfo={description:"",methods:[],displayName:"EmptyList"};var I,y,S;c.parameters={...c.parameters,docs:{...(I=c.parameters)==null?void 0:I.docs,source:{originalSource:`useDragDrop(() => { +import{j as s}from"./jsx-runtime-BTCK_S7S.js";import{r as n}from"./index-CBqU2yxZ.js";import{d as P}from"./index-CAen7T_W.js";import{C as p}from"./Card-BJT3uTAq.js";import{_ as R}from"./index-default-C_maRo4o.js";import{i as B}from"./Cars-2_9qFJX9.js";import{u as C}from"./DragDrop-ryAVAQMJ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./mapValues-LQZI9uWW.js";import"./pickBy-Us6u5-To.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-DCkRKKtx.js";import"./index-Cw1G72V2.js";import"./index-CKJfshIT.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./preview-errors-CzpZmerH.js";import"./debounce-BkgZrIul.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getElementType-CckcRzoH.js";import"./Label-Cq1fb1cd.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./Icon-2tEtgK8g.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./forEach-CXlln0XP.js";import"./Dimmer-D_gwaesu.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./index-DZGZymok.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./map-B4PnIEPz.js";import"./DndContext-B-2NJP7Z.js";import"./redux-C8f_Y06i.js";import"./objectSpread2-N4c0DWqo.js";import"./defineProperty-CCxoMnQV.js";import"./toPropertyKey-hKuLU48H.js";const j=()=>typeof window<"u",x={isBrowser:j},u=t=>{const[o,i]=n.useState(0),m=n.useRef(),r=()=>{let e;return t.context?e=t.context.current:x.isBrowser()&&(e=document.documentElement),e},a=()=>{const e=r();if(e){const{scrollTop:l,clientHeight:g,scrollHeight:h}=e;l+g>=h-t.offset&&t.onBottomReached()}};n.useEffect(()=>{let e;if(t.context?e=t.context.current:x.isBrowser()&&(e=window),!!e)return e.addEventListener("scroll",a),()=>e&&e.removeEventListener("scroll",a)},[t.context]);const f=()=>{let e=!1;const l=r();if(l){const{clientHeight:g,scrollHeight:h}=l;e=h>g}return e};return n.useEffect(()=>{if(!f()&&m&&m.current){const{clientHeight:e}=m.current;e>o&&(i(e),t.onBottomReached())}}),s.jsx("div",{ref:m,children:t.children})};u.defaultProps={offset:0};u.__docgenInfo={description:"",methods:[],displayName:"InfiniteScroll",props:{children:{required:!0,flowType:{name:"Element",elements:[{name:"any"}],raw:"Element"},description:""},context:{required:!1,flowType:{name:"signature",type:"object",raw:"{ current: HTMLElement }",signature:{properties:[{key:"current",value:{name:"HTMLElement",required:!0}}]}},description:""},offset:{required:!1,flowType:{name:"number"},description:"",defaultValue:{value:"0",computed:!1}},onBottomReached:{required:!0,flowType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""}}};const he={title:"Components/Common/InfiniteScroll",decorators:[P.withKnobs]},E=10,c=C(()=>{const[t,o]=n.useState([]),[i,m]=n.useState(1);return n.useEffect(()=>{const r=(i-1)*E,a=r+E;o(f=>[...f,...B.slice(r,a)])},[i]),s.jsx(u,{offset:100,onBottomReached:()=>m(r=>r+1),children:s.jsx(p.Group,{children:R.map(t,(r,a)=>s.jsx(p,{header:r.make,meta:r.model,description:r.address},a))})})}),d=C(()=>{const t=[];return s.jsx(u,{offset:100,onBottomReached:()=>{},children:s.jsx(p.Group,{children:R.map(t,(o,i)=>s.jsx(p,{header:o.make,meta:o.model,description:o.address},i))})})});c.__docgenInfo={description:"",methods:[],displayName:"Default"};d.__docgenInfo={description:"",methods:[],displayName:"EmptyList"};var I,y,S;c.parameters={...c.parameters,docs:{...(I=c.parameters)==null?void 0:I.docs,source:{originalSource:`useDragDrop(() => { const [items, setItems] = useState([]); const [page, setPage] = useState(1); useEffect(() => { diff --git a/docs/assets/ItemCollection-DnmhVDTV.js b/docs/assets/ItemCollection-DKUmqgEi.js similarity index 99% rename from docs/assets/ItemCollection-DnmhVDTV.js rename to docs/assets/ItemCollection-DKUmqgEi.js index 11a06c81..59bfbe7d 100644 --- a/docs/assets/ItemCollection-DnmhVDTV.js +++ b/docs/assets/ItemCollection-DKUmqgEi.js @@ -1,4 +1,4 @@ -var s=Object.defineProperty;var l=(t,e,n)=>e in t?s(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var i=(t,e,n)=>(l(t,typeof e!="symbol"?e+"":e,n),n);import{j as r}from"./jsx-runtime-BTCK_S7S.js";import{g as m}from"./index.es28-dE8xdd4L.js";import{r as u}from"./index-CBqU2yxZ.js";import{u as d}from"./uuid-BH6G0oTz.js";import{L as c}from"./Loader-CooidObp.js";import{_ as p}from"./index-default-C_maRo4o.js";import{i as y}from"./i18n-C8zWlANG.js";import{I as f}from"./Items-YtEeTDLX.js";class a extends u.Component{constructor(e){super(e),this.state={page:1}}getClassName(){const e=["item-collection"];return this.props.className&&e.push(this.props.className),e.join(" ")}getItems(){const e=this.state.page*this.props.perPage,n=this.props.items&&this.props.items.slice(0,e)||[];return p.filter(n,o=>!o._destroy)}onBottomReached(){this.props.loading||this.setState(e=>({page:e.page+1}),()=>{this.props.onBottomReached&&this.props.onBottomReached(this.state.page)})}onDelete(e){return this.props.onDelete(e),Promise.resolve()}onSave(e){if(this.props.onSave){const n=e.uid?e.uid:d();this.props.onSave({...e,uid:n})}return Promise.resolve()}render(){return r.jsx(m,{context:this.props.context,offset:this.props.scrollOffset,onBottomReached:this.onBottomReached.bind(this),children:r.jsx(f,{...this.props,items:this.getItems(),className:this.getClassName(),onDelete:this.onDelete.bind(this),onSave:this.onSave.bind(this),children:r.jsx(c,{active:this.props.loading,content:y.t("Common.messages.loading")})})})}}i(a,"defaultProps");a.defaultProps={addButton:{location:"top"},buttons:[],className:"",configurable:!0,modal:void 0,onCopy:void 0,onDrag:void 0,onSave:()=>{},perPage:Number.MAX_SAFE_INTEGER,renderDeleteModal:void 0,renderEmptyRow:void 0,scrollOffset:0};const E=a;a.__docgenInfo={description:`An ItemCollection component can be used to render a list of records stored on an object in memory. This +var s=Object.defineProperty;var l=(t,e,n)=>e in t?s(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var i=(t,e,n)=>(l(t,typeof e!="symbol"?e+"":e,n),n);import{j as r}from"./jsx-runtime-BTCK_S7S.js";import{g as m}from"./index.es28-Dp3-vHIY.js";import{r as u}from"./index-CBqU2yxZ.js";import{u as d}from"./uuid-BH6G0oTz.js";import{L as c}from"./Loader-CooidObp.js";import{_ as p}from"./index-default-C_maRo4o.js";import{i as y}from"./i18n-C8zWlANG.js";import{I as f}from"./Items-CMIdL9uL.js";class a extends u.Component{constructor(e){super(e),this.state={page:1}}getClassName(){const e=["item-collection"];return this.props.className&&e.push(this.props.className),e.join(" ")}getItems(){const e=this.state.page*this.props.perPage,n=this.props.items&&this.props.items.slice(0,e)||[];return p.filter(n,o=>!o._destroy)}onBottomReached(){this.props.loading||this.setState(e=>({page:e.page+1}),()=>{this.props.onBottomReached&&this.props.onBottomReached(this.state.page)})}onDelete(e){return this.props.onDelete(e),Promise.resolve()}onSave(e){if(this.props.onSave){const n=e.uid?e.uid:d();this.props.onSave({...e,uid:n})}return Promise.resolve()}render(){return r.jsx(m,{context:this.props.context,offset:this.props.scrollOffset,onBottomReached:this.onBottomReached.bind(this),children:r.jsx(f,{...this.props,items:this.getItems(),className:this.getClassName(),onDelete:this.onDelete.bind(this),onSave:this.onSave.bind(this),children:r.jsx(c,{active:this.props.loading,content:y.t("Common.messages.loading")})})})}}i(a,"defaultProps");a.defaultProps={addButton:{location:"top"},buttons:[],className:"",configurable:!0,modal:void 0,onCopy:void 0,onDrag:void 0,onSave:()=>{},perPage:Number.MAX_SAFE_INTEGER,renderDeleteModal:void 0,renderEmptyRow:void 0,scrollOffset:0};const E=a;a.__docgenInfo={description:`An ItemCollection component can be used to render a list of records stored on an object in memory. This component is responsible for handling infinite scroll and rendering the Items component, which handles the presentation.`,methods:[{name:"getClassName",docblock:`Returns the concatenated class names. diff --git a/docs/assets/ItemCollection.stories-CK8mT4d6.js b/docs/assets/ItemCollection.stories-BSCcZdOP.js similarity index 92% rename from docs/assets/ItemCollection.stories-CK8mT4d6.js rename to docs/assets/ItemCollection.stories-BSCcZdOP.js index 295ac3b3..2ce7b885 100644 --- a/docs/assets/ItemCollection.stories-CK8mT4d6.js +++ b/docs/assets/ItemCollection.stories-BSCcZdOP.js @@ -1,4 +1,4 @@ -import{j as o}from"./jsx-runtime-BTCK_S7S.js";import{a as t}from"./chunk-WFFRPTHA-B2vgThZf.js";import{d as g}from"./index-DfmhmaGJ.js";import{r as l}from"./index-CBqU2yxZ.js";import{B as ce}from"./Button-Blq7Z6RX.js";import{i as a,S as B,C as de}from"./Colors-DiV52Fwf.js";import{H as m}from"./Header-BJ3NNdPz.js";import{D as le}from"./Dropdown-Di2cPjwR.js";import{_ as u}from"./index-default-C_maRo4o.js";import{A as T}from"./AddModal-8so4BWij.js";import{E as ue}from"./EditModal-DRtAb_yR.js";import{I as s}from"./ItemCollection-DnmhVDTV.js";import{T as b}from"./TabbedModal-DZNfI0w-.js";import{u as p}from"./DragDrop-ryAVAQMJ.js";import"./preview-errors-CzpZmerH.js";import"./index-CKJfshIT.js";import"./v4-D8aEg3BZ.js";import"./mapValues-CZh2vnSw.js";import"./_commonjsHelpers-BosuxZz1.js";import"./pickBy-CU2rOOKe.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-Bu_b4Pek.js";import"./index-Cw1G72V2.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./debounce-Bq1aTuh-.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getElementType-CckcRzoH.js";import"./Icon-2tEtgK8g.js";import"./Label-Cq1fb1cd.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./forEach-CXlln0XP.js";import"./Dimmer-D_gwaesu.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./index-DZGZymok.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./map-B4PnIEPz.js";import"./without-BP-mqg2K.js";import"./isArrayLikeObject-CbXKTyfk.js";import"./isEmpty-Cyb9hIKi.js";import"./deburr-CEfyoYOr.js";import"./index-BBpNyw-T.js";import"./_baseSet-6y0qliU9.js";import"./_baseAssignValue-izmKBXUH.js";import"./_arrayReduce-CrxnWFSq.js";import"./filter-CVNi8iPS.js";import"./Modal-Bz2VEyQG.js";import"./index.es28-dE8xdd4L.js";import"./iframe-ovyJW9VA.js";import"../sb-preview/runtime.js";import"./index.es3-D5uPylQL.js";import"./Message-3p6wyYpA.js";import"./Loader-CooidObp.js";import"./Toaster-C1YYqOUE.js";import"./Transition-DSFEXhCu.js";import"./i18n-C8zWlANG.js";import"./i18next-Sc0HEOoc.js";import"./toPropertyKey-hKuLU48H.js";import"./defineProperty-CCxoMnQV.js";import"./inherits-D5wXBZoG.js";import"./createClass-D2z1h_eG.js";import"./getPrototypeOf-BYVhAdwF.js";import"./uuid-BH6G0oTz.js";import"./Items-YtEeTDLX.js";import"./Segment-C5_maSSM.js";import"./Checkbox-C9uAfnsM.js";import"./Card-BJT3uTAq.js";import"./Item-9lJy5i0K.js";import"./List-B05DD_Os.js";import"./Confirm-Dw9rt56R.js";import"./Pagination-D0HmnRDL.js";import"./Menu-9i0apxqd.js";import"./Grid-Czr5owxQ.js";import"./DropdownButton-D3g-r0e9.js";import"./Form-fErk-qk_.js";import"./Input--hQVCRQV.js";import"./AssociatedDropdown-CR7UI3kV.js";import"./FuzzyDate-RqvLBloE.js";import"./DateInput-BO57_F9J.js";import"./ModalContext-Bu-D9kD-.js";import"./Trans-Bk6mzQm0.js";import"./objectWithoutProperties--RY0eV0u.js";import"./utils-Bq6oISwF.js";import"./DataList-Ge7tGBgD.js";import"./Draggable-KQRXc-DM.js";import"./useDrop-BRQoWSA5.js";import"./DndContext-B-2NJP7Z.js";import"./redux-C8f_Y06i.js";import"./objectSpread2-N4c0DWqo.js";import"./index.es21-BD0kU5QO.js";const rt={title:"Components/Semantic UI/ItemCollection",component:s},c=[{name:"edit"},{name:"copy"},{name:"delete"}],y=p(()=>o.jsx(s,{actions:c,items:a,onCopy:t("copy"),onDelete:t("delete"),onSave:t("save"),renderHeader:e=>o.jsx(m,{content:e.movie}),renderMeta:e=>e.genre})),f=p(()=>o.jsx(s,{actions:c,addButton:{location:g.optionsKnob("Location",{Bottom:"bottom",Top:"top"},"top",{display:"inline-radio"}),color:g.optionsKnob("Colors",B,"gray",{display:"inline-radio"})},items:a,modal:{component:T},onCopy:t("copy"),onDelete:t("delete"),onSave:t("save"),renderHeader:e=>o.jsx(m,{content:e.movie}),renderMeta:e=>e.genre})),D=p(()=>{const[e,n]=l.useState(a);return o.jsx(s,{actions:c,items:e,onDrag:(r,v)=>{const d=[...e],i=d[r];d.splice(r,1),d.splice(v,0,i),n(d)},onCopy:t("copy"),onDelete:t("delete"),onSave:t("save"),renderHeader:r=>o.jsx(m,{content:r.movie}),renderMeta:r=>r.genre})}),S=p(()=>{const[e,n]=l.useState(a);return o.jsx(s,{actions:c,items:e,onCopy:t("copy"),onDelete:r=>n(v=>u.map(v,d=>d!==r?d:{...d,_destroy:!0})),onSave:t("save"),renderHeader:r=>o.jsx(m,{content:r.movie}),renderMeta:r=>r.genre})}),C=p(()=>o.jsx(s,{actions:c,items:[],onCopy:t("copy"),onDelete:t("delete"),onSave:t("save"),renderHeader:e=>o.jsx(m,{content:e.movie}),renderMeta:e=>e.genre})),x=p(()=>o.jsx(s,{actions:c,addButton:{location:g.optionsKnob("Location",{Bottom:"bottom",Top:"top"},"top",{display:"inline-radio"}),color:g.optionsKnob("Colors",B,"gray",{display:"inline-radio"})},items:[],modal:{component:T},onCopy:t("copy"),onDelete:t("delete"),onSave:t("save"),renderHeader:e=>o.jsx(m,{content:e.movie}),renderMeta:e=>e.genre})),M=p(()=>o.jsx(s,{actions:c,items:a,onCopy:t("copy"),onDelete:t("delete"),onSave:t("save"),perPage:5,renderHeader:e=>o.jsx(m,{content:e.movie}),renderMeta:e=>e.genre})),h=p(()=>{const e=l.createRef();return o.jsx("div",{ref:e,style:{maxHeight:"400px",overflow:"scroll"},children:o.jsx(s,{actions:c,context:e,items:a,onCopy:t("copy"),onDelete:t("delete"),onSave:t("save"),perPage:5,renderHeader:n=>o.jsx(m,{content:n.movie}),renderMeta:n=>n.genre})})}),I=p(()=>{const[e,n]=l.useState(a),[r,v]=l.useState(null),d=l.useMemo(()=>u.uniq(u.flatten(u.map(a,i=>i.genre.split("|")))),[]);return l.useEffect(()=>{let i;r&&r.length?i=u.filter(a,j=>j.genre&&j.genre.indexOf(r)>0):i=[...a],n(i)},[r]),o.jsx(o.Fragment,{children:o.jsx(s,{actions:c,buttons:[{render:()=>o.jsx(le,{clearable:!0,placeholder:"Genre",search:!0,searchInput:{"aria-label":"Search"},selection:!0,onChange:(i,{value:j})=>v(j),options:u.map(d,i=>({key:i,value:i,text:i}))})}],items:e,onCopy:t("copy"),onDelete:t("delete"),onSave:t("save"),perPage:4,renderHeader:i=>o.jsx(m,{content:i.movie}),renderMeta:i=>i.genre})})}),H=p(()=>o.jsx(s,{actions:c,items:a,loading:!0,onCopy:t("copy"),onDelete:t("delete"),onSave:t("save"),renderHeader:e=>o.jsx(m,{content:e.movie}),renderMeta:e=>e.genre})),ge=e=>o.jsxs(b,{centered:!1,header:"This is a Test",inlineTabs:!1,open:e.open,children:[o.jsx(b.Tab,{name:"Tab 1",children:o.jsx(s,{actions:c,addButton:{location:g.optionsKnob("Location",{Bottom:"bottom",Top:"top"},"top",{display:"inline-radio"}),color:g.optionsKnob("Colors",B,"gray",{display:"inline-radio"})},items:a,modal:{component:T},onCopy:t("copy"),onDelete:t("delete"),onSave:t("save"),renderHeader:n=>o.jsx(m,{content:n.movie}),renderMeta:n=>n.genre})}),u.times(20,n=>o.jsx(b.Tab,{name:`Tab ${n+2}`,children:`Tab ${n+2}`},n+2)),e.children]}),_=p(()=>{const[e,n]=l.useState(!1);return o.jsxs(de,{children:[o.jsx(ce,{content:"Open Modal",icon:"plus",onClick:()=>n(!0)}),o.jsx(ue,{component:ge,open:e,onClose:()=>n(!1),onSave:()=>new Promise(r=>r(n(!1)))})]})});y.__docgenInfo={description:"",methods:[],displayName:"Default"};f.__docgenInfo={description:"",methods:[],displayName:"AddButton"};D.__docgenInfo={description:"",methods:[],displayName:"DragAndDropRows"};S.__docgenInfo={description:"",methods:[],displayName:"Delete"};C.__docgenInfo={description:"",methods:[],displayName:"Empty"};x.__docgenInfo={description:"",methods:[],displayName:"EmptyAddButton"};M.__docgenInfo={description:"",methods:[],displayName:"InfiniteScroll"};h.__docgenInfo={description:"",methods:[],displayName:"InfiniteScrollDiv"};I.__docgenInfo={description:"",methods:[],displayName:"InfiniteScrollFilter"};H.__docgenInfo={description:"",methods:[],displayName:"Loading"};_.__docgenInfo={description:"",methods:[],displayName:"TabbedModalConfig"};var w,L,E;y.parameters={...y.parameters,docs:{...(w=y.parameters)==null?void 0:w.docs,source:{originalSource:"useDragDrop(() =>
} renderMeta={item => item.genre} />)",...(E=(L=y.parameters)==null?void 0:L.docs)==null?void 0:E.source}}};var A,N,R;f.parameters={...f.parameters,docs:{...(A=f.parameters)==null?void 0:A.docs,source:{originalSource:`useDragDrop(() => o.jsx(s,{actions:c,items:a,onCopy:t("copy"),onDelete:t("delete"),onSave:t("save"),renderHeader:e=>o.jsx(m,{content:e.movie}),renderMeta:e=>e.genre})),f=p(()=>o.jsx(s,{actions:c,addButton:{location:g.optionsKnob("Location",{Bottom:"bottom",Top:"top"},"top",{display:"inline-radio"}),color:g.optionsKnob("Colors",B,"gray",{display:"inline-radio"})},items:a,modal:{component:T},onCopy:t("copy"),onDelete:t("delete"),onSave:t("save"),renderHeader:e=>o.jsx(m,{content:e.movie}),renderMeta:e=>e.genre})),D=p(()=>{const[e,n]=l.useState(a);return o.jsx(s,{actions:c,items:e,onDrag:(r,v)=>{const d=[...e],i=d[r];d.splice(r,1),d.splice(v,0,i),n(d)},onCopy:t("copy"),onDelete:t("delete"),onSave:t("save"),renderHeader:r=>o.jsx(m,{content:r.movie}),renderMeta:r=>r.genre})}),S=p(()=>{const[e,n]=l.useState(a);return o.jsx(s,{actions:c,items:e,onCopy:t("copy"),onDelete:r=>n(v=>u.map(v,d=>d!==r?d:{...d,_destroy:!0})),onSave:t("save"),renderHeader:r=>o.jsx(m,{content:r.movie}),renderMeta:r=>r.genre})}),C=p(()=>o.jsx(s,{actions:c,items:[],onCopy:t("copy"),onDelete:t("delete"),onSave:t("save"),renderHeader:e=>o.jsx(m,{content:e.movie}),renderMeta:e=>e.genre})),x=p(()=>o.jsx(s,{actions:c,addButton:{location:g.optionsKnob("Location",{Bottom:"bottom",Top:"top"},"top",{display:"inline-radio"}),color:g.optionsKnob("Colors",B,"gray",{display:"inline-radio"})},items:[],modal:{component:T},onCopy:t("copy"),onDelete:t("delete"),onSave:t("save"),renderHeader:e=>o.jsx(m,{content:e.movie}),renderMeta:e=>e.genre})),M=p(()=>o.jsx(s,{actions:c,items:a,onCopy:t("copy"),onDelete:t("delete"),onSave:t("save"),perPage:5,renderHeader:e=>o.jsx(m,{content:e.movie}),renderMeta:e=>e.genre})),h=p(()=>{const e=l.createRef();return o.jsx("div",{ref:e,style:{maxHeight:"400px",overflow:"scroll"},children:o.jsx(s,{actions:c,context:e,items:a,onCopy:t("copy"),onDelete:t("delete"),onSave:t("save"),perPage:5,renderHeader:n=>o.jsx(m,{content:n.movie}),renderMeta:n=>n.genre})})}),I=p(()=>{const[e,n]=l.useState(a),[r,v]=l.useState(null),d=l.useMemo(()=>u.uniq(u.flatten(u.map(a,i=>i.genre.split("|")))),[]);return l.useEffect(()=>{let i;r&&r.length?i=u.filter(a,j=>j.genre&&j.genre.indexOf(r)>0):i=[...a],n(i)},[r]),o.jsx(o.Fragment,{children:o.jsx(s,{actions:c,buttons:[{render:()=>o.jsx(le,{clearable:!0,placeholder:"Genre",search:!0,searchInput:{"aria-label":"Search"},selection:!0,onChange:(i,{value:j})=>v(j),options:u.map(d,i=>({key:i,value:i,text:i}))})}],items:e,onCopy:t("copy"),onDelete:t("delete"),onSave:t("save"),perPage:4,renderHeader:i=>o.jsx(m,{content:i.movie}),renderMeta:i=>i.genre})})}),H=p(()=>o.jsx(s,{actions:c,items:a,loading:!0,onCopy:t("copy"),onDelete:t("delete"),onSave:t("save"),renderHeader:e=>o.jsx(m,{content:e.movie}),renderMeta:e=>e.genre})),ge=e=>o.jsxs(b,{centered:!1,header:"This is a Test",inlineTabs:!1,open:e.open,children:[o.jsx(b.Tab,{name:"Tab 1",children:o.jsx(s,{actions:c,addButton:{location:g.optionsKnob("Location",{Bottom:"bottom",Top:"top"},"top",{display:"inline-radio"}),color:g.optionsKnob("Colors",B,"gray",{display:"inline-radio"})},items:a,modal:{component:T},onCopy:t("copy"),onDelete:t("delete"),onSave:t("save"),renderHeader:n=>o.jsx(m,{content:n.movie}),renderMeta:n=>n.genre})}),u.times(20,n=>o.jsx(b.Tab,{name:`Tab ${n+2}`,children:`Tab ${n+2}`},n+2)),e.children]}),_=p(()=>{const[e,n]=l.useState(!1);return o.jsxs(de,{children:[o.jsx(ce,{content:"Open Modal",icon:"plus",onClick:()=>n(!0)}),o.jsx(ue,{component:ge,open:e,onClose:()=>n(!1),onSave:()=>new Promise(r=>r(n(!1)))})]})});y.__docgenInfo={description:"",methods:[],displayName:"Default"};f.__docgenInfo={description:"",methods:[],displayName:"AddButton"};D.__docgenInfo={description:"",methods:[],displayName:"DragAndDropRows"};S.__docgenInfo={description:"",methods:[],displayName:"Delete"};C.__docgenInfo={description:"",methods:[],displayName:"Empty"};x.__docgenInfo={description:"",methods:[],displayName:"EmptyAddButton"};M.__docgenInfo={description:"",methods:[],displayName:"InfiniteScroll"};h.__docgenInfo={description:"",methods:[],displayName:"InfiniteScrollDiv"};I.__docgenInfo={description:"",methods:[],displayName:"InfiniteScrollFilter"};H.__docgenInfo={description:"",methods:[],displayName:"Loading"};_.__docgenInfo={description:"",methods:[],displayName:"TabbedModalConfig"};var w,L,E;y.parameters={...y.parameters,docs:{...(w=y.parameters)==null?void 0:w.docs,source:{originalSource:"useDragDrop(() =>
} renderMeta={item => item.genre} />)",...(E=(L=y.parameters)==null?void 0:L.docs)==null?void 0:E.source}}};var A,N,R;f.parameters={...f.parameters,docs:{...(A=f.parameters)==null?void 0:A.docs,source:{originalSource:`useDragDrop(() => {h.useEffect(()=>{const{page:u}=e;let{sortColumn:a="",sortDirection:g=qe}=e;if(!a){const b=n.first(e.sort);b&&(a=b.value,b.direction&&(g=b.direction))}e.onSort(a,g,u)},[]);const y=h.useMemo(()=>e.isRowSelected&&e.items&&e.items.length&&n.every(e.items,e.isRowSelected.bind(void 0)),[e.items,e.isRowSelected]),M=h.useCallback(()=>{if(e.items&&e.isRowSelected&&e.onRowSelect){let u;y?u=[...e.items]:u=n.reject(e.items,e.isRowSelected.bind(void 0)),n.each(u,e.onRowSelect.bind(void 0))}},[y,e.isRowSelected,e.items,e.onRowSelect]);return o.jsxs(o.Fragment,{children:[o.jsx(Ee,{active:e.loading,inverted:!0,children:o.jsx(_e,{content:j.t("Common.messages.loading")})}),o.jsx(Me,{...e,buttons:[...e.buttons||[],{accept:()=>e.selectable,color:"green",content:y?j.t("ItemList.buttons.deselectAll"):j.t("ItemList.buttons.selectAll"),icon:"checkmark",onClick:M.bind(void 0)}]})]})});q.defaultProps={filters:{},searchable:!0};const s=q;q.__docgenInfo={description:`An ItemList component can be used to render a list of records returned from an API. Under the +import{j as o}from"./jsx-runtime-BTCK_S7S.js";import{a as t}from"./chunk-WFFRPTHA-B2vgThZf.js";import{d as r}from"./index-CAen7T_W.js";import{r as h}from"./index-CBqU2yxZ.js";import{B as T}from"./Button-Blq7Z6RX.js";import{H as d}from"./Header-BJ3NNdPz.js";import{_ as n}from"./index-default-C_maRo4o.js";import{A as p}from"./AddModal-8so4BWij.js";import{A as i}from"./Api-DXLamogn.js";import{L as _e}from"./Loader-CooidObp.js";import{D as Ee}from"./Dimmer-D_gwaesu.js";import{i as j}from"./i18n-C8zWlANG.js";import{I as Me,V as je}from"./Items-CMIdL9uL.js";import{u as Te,S as qe}from"./DataList-DKTsnuj_.js";import{i as c}from"./Cars-2_9qFJX9.js";import{F as Be}from"./FilterModal-FAXyOL-f.js";import{u as m}from"./DragDrop-ryAVAQMJ.js";import"./preview-errors-CzpZmerH.js";import"./index-CKJfshIT.js";import"./v4-D8aEg3BZ.js";import"./mapValues-LQZI9uWW.js";import"./_commonjsHelpers-BosuxZz1.js";import"./pickBy-Us6u5-To.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-DCkRKKtx.js";import"./index-Cw1G72V2.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./debounce-BkgZrIul.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getElementType-CckcRzoH.js";import"./Icon-2tEtgK8g.js";import"./Label-Cq1fb1cd.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./forEach-CXlln0XP.js";import"./map-B4PnIEPz.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./index-DZGZymok.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./Modal-Bz2VEyQG.js";import"./index-BBpNyw-T.js";import"./_baseSet-6y0qliU9.js";import"./_baseAssignValue-izmKBXUH.js";import"./_arrayReduce-CrxnWFSq.js";import"./isEmpty-Cyb9hIKi.js";import"./i18next-Sc0HEOoc.js";import"./toPropertyKey-hKuLU48H.js";import"./defineProperty-CCxoMnQV.js";import"./inherits-D5wXBZoG.js";import"./createClass-D2z1h_eG.js";import"./getPrototypeOf-BYVhAdwF.js";import"./Segment-C5_maSSM.js";import"./Checkbox-C9uAfnsM.js";import"./Card-BJT3uTAq.js";import"./Item-9lJy5i0K.js";import"./List-tmAiyZhD.js";import"./Confirm-Dw9rt56R.js";import"./Transition-DSFEXhCu.js";import"./filter-CVNi8iPS.js";import"./Pagination-D0HmnRDL.js";import"./Menu-9i0apxqd.js";import"./deburr-CEfyoYOr.js";import"./Grid-Czr5owxQ.js";import"./DropdownButton-D3g-r0e9.js";import"./Dropdown-Di2cPjwR.js";import"./without-BP-mqg2K.js";import"./isArrayLikeObject-CbXKTyfk.js";import"./EditModal-WP1CvOLP.js";import"./index.es28-Dp3-vHIY.js";import"./iframe-BQtATEn0.js";import"../sb-preview/runtime.js";import"./index.es3-Dgr_7mVc.js";import"./Message-3p6wyYpA.js";import"./Toaster-C1YYqOUE.js";import"./Form-fErk-qk_.js";import"./Input--hQVCRQV.js";import"./AssociatedDropdown-DQppeffT.js";import"./FuzzyDate-Bx1epA16.js";import"./DateInput-BO57_F9J.js";import"./ModalContext-Bu-D9kD-.js";import"./Trans-Bk6mzQm0.js";import"./objectWithoutProperties--RY0eV0u.js";import"./utils-Bq6oISwF.js";import"./Draggable-KQRXc-DM.js";import"./useDrop-BRQoWSA5.js";import"./DndContext-B-2NJP7Z.js";import"./redux-C8f_Y06i.js";import"./objectSpread2-N4c0DWqo.js";import"./uuid-BH6G0oTz.js";const q=Te(e=>{h.useEffect(()=>{const{page:u}=e;let{sortColumn:a="",sortDirection:g=qe}=e;if(!a){const b=n.first(e.sort);b&&(a=b.value,b.direction&&(g=b.direction))}e.onSort(a,g,u)},[]);const y=h.useMemo(()=>e.isRowSelected&&e.items&&e.items.length&&n.every(e.items,e.isRowSelected.bind(void 0)),[e.items,e.isRowSelected]),M=h.useCallback(()=>{if(e.items&&e.isRowSelected&&e.onRowSelect){let u;y?u=[...e.items]:u=n.reject(e.items,e.isRowSelected.bind(void 0)),n.each(u,e.onRowSelect.bind(void 0))}},[y,e.isRowSelected,e.items,e.onRowSelect]);return o.jsxs(o.Fragment,{children:[o.jsx(Ee,{active:e.loading,inverted:!0,children:o.jsx(_e,{content:j.t("Common.messages.loading")})}),o.jsx(Me,{...e,buttons:[...e.buttons||[],{accept:()=>e.selectable,color:"green",content:y?j.t("ItemList.buttons.deselectAll"):j.t("ItemList.buttons.selectAll"),icon:"checkmark",onClick:M.bind(void 0)}]})]})});q.defaultProps={filters:{},searchable:!0};const s=q;q.__docgenInfo={description:`An ItemList component can be used to render a list of records returned from an API. Under the hood, the DataList component handles calling the API, storing the records, filters, etc, and the Items component handles the presentation.`,methods:[],displayName:"ItemList",props:{collectionName:{required:!0,flowType:{name:"string"},description:"Name of the collection to retrieve from the API response."},defaultPerPage:{required:!1,flowType:{name:"number"},description:"The default number of records to display on a single page."},defaultSearch:{required:!1,flowType:{name:"string"},description:"The default value for the search input element."},defaultSort:{required:!1,flowType:{name:"string"},description:"The default value to use for sorting the list."},defaultSortDirection:{required:!1,flowType:{name:"string"},description:"The default direction in which to sort the list."},filters:{required:!1,flowType:{name:"signature",type:"object",raw:`{ component: ComponentType, diff --git a/docs/assets/Items-YtEeTDLX.js b/docs/assets/Items-CMIdL9uL.js similarity index 99% rename from docs/assets/Items-YtEeTDLX.js rename to docs/assets/Items-CMIdL9uL.js index 45bd76f5..5fb384a9 100644 --- a/docs/assets/Items-YtEeTDLX.js +++ b/docs/assets/Items-CMIdL9uL.js @@ -1,4 +1,4 @@ -var w=Object.defineProperty;var b=(o,e,t)=>e in o?w(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t;var u=(o,e,t)=>(b(o,typeof e!="symbol"?e+"":e,t),t);import{j as n}from"./jsx-runtime-BTCK_S7S.js";import{r as f}from"./index-CBqU2yxZ.js";import{B as p}from"./Button-Blq7Z6RX.js";import{H as v}from"./Header-BJ3NNdPz.js";import{I as k}from"./Icon-2tEtgK8g.js";import{S as C}from"./Segment-C5_maSSM.js";import{C as x}from"./Checkbox-C9uAfnsM.js";import{C as l}from"./Card-BJT3uTAq.js";import{I as d}from"./Item-9lJy5i0K.js";import{_ as i}from"./index-default-C_maRo4o.js";import{i as h}from"./i18n-C8zWlANG.js";import{u as q}from"./List-B05DD_Os.js";import{D as T}from"./Dropdown-Di2cPjwR.js";import{S as E}from"./DataList-Ge7tGBgD.js";import{D as y}from"./Draggable-KQRXc-DM.js";const m={list:0,grid:1},I=o=>{var e;return e=class extends f.Component{constructor(r){super(r);u(this,"sortDropdown");this.state={view:r.defaultView||m.list}}getSortValue(){const r=i.find(this.props.sort,{value:this.props.sortColumn});return r&&r.text}isHidden(){return this.props.hideToggle&&i.isEmpty(this.props.sort)&&!this.props.renderListHeader}onSort(r){if(!this.props.onSort)return;let a;r.value!==this.props.sortColumn&&(a=r.direction),this.props.onSort(r.value,a)}render(){return n.jsx(o,{...this.props,renderListHeader:this.renderHeader.bind(this),view:this.state.view})}renderHeader(){return this.isHidden()?null:n.jsxs(n.Fragment,{children:[this.props.renderListHeader&&this.props.renderListHeader(),!this.props.hideToggle&&n.jsxs(n.Fragment,{children:[n.jsx(p,{active:this.state.view===m.list,"aria-label":"List View",basic:this.props.basic,icon:"list",onClick:()=>this.setState({view:m.list})}),n.jsx(p,{active:this.state.view===m.grid,"aria-label":"Grid View",basic:this.props.basic,icon:"grid layout",onClick:()=>this.setState({view:m.grid})})]}),!i.isEmpty(this.props.sort)&&this.props.onSort&&n.jsxs(p.Group,{basic:this.props.basic,color:this.props.sortColor,style:{fontSize:"inherit"},children:[n.jsx(p,{"aria-label":"Sort by",content:this.getSortValue(),icon:this.props.sortDirection===E?"sort alphabet up":"sort alphabet down",onClick:r=>this.sortDropdown.handleClick(r)}),n.jsx(T,{"aria-label":"Sort",className:"button icon",floating:!0,options:i.map(this.props.sort,r=>({...r,onClick:this.onSort.bind(this,r)})),ref:r=>{this.sortDropdown=r},trigger:n.jsx(n.Fragment,{}),value:this.props.sortColumn})]})]})}},u(e,"defaultProps",{basic:!0,hideToggle:!1,sort:[]}),e},S=I;class c extends f.Component{getActions(e){return this.props.actions.filter(t=>!t.accept||t.accept(e)).map(t=>{let r={};return t.name==="edit"?r={basic:!0,label:h.t("ItemList.actions.edit")}:t.name==="copy"?r={basic:!0,label:h.t("ItemList.actions.copy")}:t.name==="delete"&&(r={basic:!0,color:"red",label:h.t("ItemList.actions.delete")}),i.defaults(t,r)})}getClassName(){const e=["item-list"];return this.props.className&&e.push(this.props.className),e.join(" ")}getItemProps(e){return this.props.asProps&&this.props.asProps(e)||{}}isSelectable(){return!!(this.props.selectable&&this.props.isRowSelected&&this.props.onRowSelect)}render(){return n.jsxs("div",{className:this.getClassName(),children:[this.renderList(),this.renderGrid(),this.renderEmptyList(),this.props.children]})}renderCard(e,t){const r=this.getActions(e);let a=n.jsxs(l,{as:this.props.as,link:this.props.link,...this.getItemProps(e),children:[this.props.renderImage&&this.props.renderImage(e),n.jsxs(l.Content,{children:[this.props.renderHeader&&n.jsx(l.Header,{children:this.props.renderHeader(e)}),this.props.renderMeta&&n.jsx(l.Meta,{children:this.props.renderMeta(e)}),this.props.renderDescription&&n.jsx(l.Description,{children:this.props.renderDescription(e)})]}),this.props.renderExtra&&n.jsx(l.Content,{extra:!0,children:this.props.renderExtra(e)}),!i.isEmpty(r)&&n.jsxs(l.Content,{extra:!0,textAlign:"center",children:[i.map(r,(s,g)=>n.jsx(p,{"aria-label":s.name,basic:!0,color:s.resolveColor?s.resolveColor(e):s.color,icon:s.resolveIcon?s.resolveIcon(e):s.icon,onClick:s.onClick.bind(this,e),size:s.size},g)),this.isSelectable()&&n.jsx(p,{"aria-label":"Select",basic:!0,color:this.props.isRowSelected&&this.props.isRowSelected(e)?"green":void 0,icon:"checkmark",onClick:this.props.onRowSelect&&this.props.onRowSelect.bind(this,e)})]})]},e.id||t);return this.props.onDrag&&(a=n.jsx(y,{id:e.id||e.uid,index:t,item:e,onDrag:this.props.onDrag.bind(this),children:a},e.id||e.uid)),a}renderEmptyList(){return this.props.loading||this.props.items&&this.props.items.length?null:this.props.renderEmptyList?this.props.renderEmptyList():n.jsxs(C,{className:"empty-list",padded:"very",textAlign:"center",children:[n.jsx(v,{icon:!0,children:n.jsx(k,{name:"file outline"})}),this.props.renderEmptyMessage()]})}renderGrid(){return this.props.view!==m.grid||!(this.props.items&&this.props.items.length)?null:n.jsx(l.Group,{itemsPerRow:this.props.itemsPerRow,children:i.map(this.props.items,this.renderCard.bind(this))})}renderItem(e,t){let r=n.jsxs(d,{as:this.props.as,...this.getItemProps(e),children:[this.props.renderImage&&n.jsx(d.Image,{children:this.props.renderImage(e)}),n.jsxs(d.Content,{className:"primary-content",children:[this.props.renderHeader&&n.jsx(d.Header,{children:this.props.renderHeader(e)}),this.props.renderMeta&&n.jsx(d.Meta,{children:this.props.renderMeta(e)}),this.props.renderDescription&&n.jsx(d.Description,{children:this.props.renderDescription(e)}),this.props.renderExtra&&n.jsx(d.Extra,{children:this.props.renderExtra(e)}),i.map(this.getActions(e),(a,s)=>n.jsx(p,{basic:a.basic,color:a.resolveColor?a.resolveColor(e):a.color,content:a.resolveName?a.resolveName(e):a.label,icon:a.resolveIcon?a.resolveIcon(e):a.icon,onClick:a.onClick.bind(this,e),size:a.size},s))]}),this.props.renderAdditionalContent&&this.props.renderAdditionalContent(e),this.isSelectable()&&n.jsx("div",{className:"checkbox-container",children:n.jsx(x,{checked:this.props.isRowSelected&&this.props.isRowSelected(e),onChange:this.props.onRowSelect&&this.props.onRowSelect.bind(this,e)})})]},e.id||t);return this.props.onDrag&&(r=n.jsx(y,{id:e.id||e.uid,index:t,item:e,onDrag:this.props.onDrag.bind(this),children:r},e.id||e.uid)),r}renderList(){return this.props.view!==m.list||!(this.props.items&&this.props.items.length)?null:n.jsx(d.Group,{divided:!0,link:this.props.link,relaxed:"very",children:i.map(this.props.items,this.renderItem.bind(this))})}}u(c,"defaultProps");c.defaultProps={actions:[]};const j=S(q(c)),F=j;c.__docgenInfo={description:`The Items component is used as the presentation for a list of records. The component renders +var w=Object.defineProperty;var b=(o,e,t)=>e in o?w(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t;var u=(o,e,t)=>(b(o,typeof e!="symbol"?e+"":e,t),t);import{j as n}from"./jsx-runtime-BTCK_S7S.js";import{r as f}from"./index-CBqU2yxZ.js";import{B as p}from"./Button-Blq7Z6RX.js";import{H as v}from"./Header-BJ3NNdPz.js";import{I as k}from"./Icon-2tEtgK8g.js";import{S as C}from"./Segment-C5_maSSM.js";import{C as x}from"./Checkbox-C9uAfnsM.js";import{C as l}from"./Card-BJT3uTAq.js";import{I as d}from"./Item-9lJy5i0K.js";import{_ as i}from"./index-default-C_maRo4o.js";import{i as h}from"./i18n-C8zWlANG.js";import{u as q}from"./List-tmAiyZhD.js";import{D as T}from"./Dropdown-Di2cPjwR.js";import{S as E}from"./DataList-DKTsnuj_.js";import{D as y}from"./Draggable-KQRXc-DM.js";const m={list:0,grid:1},I=o=>{var e;return e=class extends f.Component{constructor(r){super(r);u(this,"sortDropdown");this.state={view:r.defaultView||m.list}}getSortValue(){const r=i.find(this.props.sort,{value:this.props.sortColumn});return r&&r.text}isHidden(){return this.props.hideToggle&&i.isEmpty(this.props.sort)&&!this.props.renderListHeader}onSort(r){if(!this.props.onSort)return;let a;r.value!==this.props.sortColumn&&(a=r.direction),this.props.onSort(r.value,a)}render(){return n.jsx(o,{...this.props,renderListHeader:this.renderHeader.bind(this),view:this.state.view})}renderHeader(){return this.isHidden()?null:n.jsxs(n.Fragment,{children:[this.props.renderListHeader&&this.props.renderListHeader(),!this.props.hideToggle&&n.jsxs(n.Fragment,{children:[n.jsx(p,{active:this.state.view===m.list,"aria-label":"List View",basic:this.props.basic,icon:"list",onClick:()=>this.setState({view:m.list})}),n.jsx(p,{active:this.state.view===m.grid,"aria-label":"Grid View",basic:this.props.basic,icon:"grid layout",onClick:()=>this.setState({view:m.grid})})]}),!i.isEmpty(this.props.sort)&&this.props.onSort&&n.jsxs(p.Group,{basic:this.props.basic,color:this.props.sortColor,style:{fontSize:"inherit"},children:[n.jsx(p,{"aria-label":"Sort by",content:this.getSortValue(),icon:this.props.sortDirection===E?"sort alphabet up":"sort alphabet down",onClick:r=>this.sortDropdown.handleClick(r)}),n.jsx(T,{"aria-label":"Sort",className:"button icon",floating:!0,options:i.map(this.props.sort,r=>({...r,onClick:this.onSort.bind(this,r)})),ref:r=>{this.sortDropdown=r},trigger:n.jsx(n.Fragment,{}),value:this.props.sortColumn})]})]})}},u(e,"defaultProps",{basic:!0,hideToggle:!1,sort:[]}),e},S=I;class c extends f.Component{getActions(e){return this.props.actions.filter(t=>!t.accept||t.accept(e)).map(t=>{let r={};return t.name==="edit"?r={basic:!0,label:h.t("ItemList.actions.edit")}:t.name==="copy"?r={basic:!0,label:h.t("ItemList.actions.copy")}:t.name==="delete"&&(r={basic:!0,color:"red",label:h.t("ItemList.actions.delete")}),i.defaults(t,r)})}getClassName(){const e=["item-list"];return this.props.className&&e.push(this.props.className),e.join(" ")}getItemProps(e){return this.props.asProps&&this.props.asProps(e)||{}}isSelectable(){return!!(this.props.selectable&&this.props.isRowSelected&&this.props.onRowSelect)}render(){return n.jsxs("div",{className:this.getClassName(),children:[this.renderList(),this.renderGrid(),this.renderEmptyList(),this.props.children]})}renderCard(e,t){const r=this.getActions(e);let a=n.jsxs(l,{as:this.props.as,link:this.props.link,...this.getItemProps(e),children:[this.props.renderImage&&this.props.renderImage(e),n.jsxs(l.Content,{children:[this.props.renderHeader&&n.jsx(l.Header,{children:this.props.renderHeader(e)}),this.props.renderMeta&&n.jsx(l.Meta,{children:this.props.renderMeta(e)}),this.props.renderDescription&&n.jsx(l.Description,{children:this.props.renderDescription(e)})]}),this.props.renderExtra&&n.jsx(l.Content,{extra:!0,children:this.props.renderExtra(e)}),!i.isEmpty(r)&&n.jsxs(l.Content,{extra:!0,textAlign:"center",children:[i.map(r,(s,g)=>n.jsx(p,{"aria-label":s.name,basic:!0,color:s.resolveColor?s.resolveColor(e):s.color,icon:s.resolveIcon?s.resolveIcon(e):s.icon,onClick:s.onClick.bind(this,e),size:s.size},g)),this.isSelectable()&&n.jsx(p,{"aria-label":"Select",basic:!0,color:this.props.isRowSelected&&this.props.isRowSelected(e)?"green":void 0,icon:"checkmark",onClick:this.props.onRowSelect&&this.props.onRowSelect.bind(this,e)})]})]},e.id||t);return this.props.onDrag&&(a=n.jsx(y,{id:e.id||e.uid,index:t,item:e,onDrag:this.props.onDrag.bind(this),children:a},e.id||e.uid)),a}renderEmptyList(){return this.props.loading||this.props.items&&this.props.items.length?null:this.props.renderEmptyList?this.props.renderEmptyList():n.jsxs(C,{className:"empty-list",padded:"very",textAlign:"center",children:[n.jsx(v,{icon:!0,children:n.jsx(k,{name:"file outline"})}),this.props.renderEmptyMessage()]})}renderGrid(){return this.props.view!==m.grid||!(this.props.items&&this.props.items.length)?null:n.jsx(l.Group,{itemsPerRow:this.props.itemsPerRow,children:i.map(this.props.items,this.renderCard.bind(this))})}renderItem(e,t){let r=n.jsxs(d,{as:this.props.as,...this.getItemProps(e),children:[this.props.renderImage&&n.jsx(d.Image,{children:this.props.renderImage(e)}),n.jsxs(d.Content,{className:"primary-content",children:[this.props.renderHeader&&n.jsx(d.Header,{children:this.props.renderHeader(e)}),this.props.renderMeta&&n.jsx(d.Meta,{children:this.props.renderMeta(e)}),this.props.renderDescription&&n.jsx(d.Description,{children:this.props.renderDescription(e)}),this.props.renderExtra&&n.jsx(d.Extra,{children:this.props.renderExtra(e)}),i.map(this.getActions(e),(a,s)=>n.jsx(p,{basic:a.basic,color:a.resolveColor?a.resolveColor(e):a.color,content:a.resolveName?a.resolveName(e):a.label,icon:a.resolveIcon?a.resolveIcon(e):a.icon,onClick:a.onClick.bind(this,e),size:a.size},s))]}),this.props.renderAdditionalContent&&this.props.renderAdditionalContent(e),this.isSelectable()&&n.jsx("div",{className:"checkbox-container",children:n.jsx(x,{checked:this.props.isRowSelected&&this.props.isRowSelected(e),onChange:this.props.onRowSelect&&this.props.onRowSelect.bind(this,e)})})]},e.id||t);return this.props.onDrag&&(r=n.jsx(y,{id:e.id||e.uid,index:t,item:e,onDrag:this.props.onDrag.bind(this),children:r},e.id||e.uid)),r}renderList(){return this.props.view!==m.list||!(this.props.items&&this.props.items.length)?null:n.jsx(d.Group,{divided:!0,link:this.props.link,relaxed:"very",children:i.map(this.props.items,this.renderItem.bind(this))})}}u(c,"defaultProps");c.defaultProps={actions:[]};const j=S(q(c)),F=j;c.__docgenInfo={description:`The Items component is used as the presentation for a list of records. The component renders both a List and Card views.`,methods:[{name:"getActions",docblock:`Returns the list of actions for the passed item. diff --git a/docs/assets/Items.stories-CCw80XJx.js b/docs/assets/Items.stories-0TRTJ2fu.js similarity index 92% rename from docs/assets/Items.stories-CCw80XJx.js rename to docs/assets/Items.stories-0TRTJ2fu.js index 753d432c..1e02151b 100644 --- a/docs/assets/Items.stories-CCw80XJx.js +++ b/docs/assets/Items.stories-0TRTJ2fu.js @@ -1,4 +1,4 @@ -import{j as t}from"./jsx-runtime-BTCK_S7S.js";import{a as o}from"./chunk-WFFRPTHA-B2vgThZf.js";import{d as C}from"./index-DfmhmaGJ.js";import"./index-CBqU2yxZ.js";import{C as L}from"./Confirm-Dw9rt56R.js";import{H as r}from"./Header-BJ3NNdPz.js";import{I as i}from"./Label-Cq1fb1cd.js";import{M as d}from"./Modal-Bz2VEyQG.js";import{_ as J}from"./index-default-C_maRo4o.js";import{I as a}from"./Items-YtEeTDLX.js";import{i as Q}from"./test-image-BGrKnxUR.js";import{u as n}from"./DragDrop-ryAVAQMJ.js";import"./preview-errors-CzpZmerH.js";import"./index-CKJfshIT.js";import"./v4-D8aEg3BZ.js";import"./mapValues-CZh2vnSw.js";import"./_commonjsHelpers-BosuxZz1.js";import"./pickBy-CU2rOOKe.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-Bu_b4Pek.js";import"./index-Cw1G72V2.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./debounce-Bq1aTuh-.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./Transition-DSFEXhCu.js";import"./includes-CQoJOerW.js";import"./getElementType-CckcRzoH.js";import"./toFinite-KQ8KevIC.js";import"./forEach-CXlln0XP.js";import"./_baseAssignValue-izmKBXUH.js";import"./filter-CVNi8iPS.js";import"./Button-Blq7Z6RX.js";import"./Icon-2tEtgK8g.js";import"./map-B4PnIEPz.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./index-DZGZymok.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./Dimmer-D_gwaesu.js";import"./index-BBpNyw-T.js";import"./_baseSet-6y0qliU9.js";import"./_arrayReduce-CrxnWFSq.js";import"./isEmpty-Cyb9hIKi.js";import"./Segment-C5_maSSM.js";import"./Checkbox-C9uAfnsM.js";import"./Card-BJT3uTAq.js";import"./Item-9lJy5i0K.js";import"./i18n-C8zWlANG.js";import"./i18next-Sc0HEOoc.js";import"./toPropertyKey-hKuLU48H.js";import"./defineProperty-CCxoMnQV.js";import"./inherits-D5wXBZoG.js";import"./createClass-D2z1h_eG.js";import"./getPrototypeOf-BYVhAdwF.js";import"./List-B05DD_Os.js";import"./Pagination-D0HmnRDL.js";import"./Menu-9i0apxqd.js";import"./deburr-CEfyoYOr.js";import"./Grid-Czr5owxQ.js";import"./DropdownButton-D3g-r0e9.js";import"./Dropdown-Di2cPjwR.js";import"./without-BP-mqg2K.js";import"./isArrayLikeObject-CbXKTyfk.js";import"./EditModal-DRtAb_yR.js";import"./index.es28-dE8xdd4L.js";import"./iframe-ovyJW9VA.js";import"../sb-preview/runtime.js";import"./index.es3-D5uPylQL.js";import"./Message-3p6wyYpA.js";import"./Loader-CooidObp.js";import"./Toaster-C1YYqOUE.js";import"./Form-fErk-qk_.js";import"./Input--hQVCRQV.js";import"./AssociatedDropdown-CR7UI3kV.js";import"./FuzzyDate-RqvLBloE.js";import"./DateInput-BO57_F9J.js";import"./ModalContext-Bu-D9kD-.js";import"./Trans-Bk6mzQm0.js";import"./objectWithoutProperties--RY0eV0u.js";import"./utils-Bq6oISwF.js";import"./DataList-Ge7tGBgD.js";import"./uuid-BH6G0oTz.js";import"./Draggable-KQRXc-DM.js";import"./useDrop-BRQoWSA5.js";import"./DndContext-B-2NJP7Z.js";import"./redux-C8f_Y06i.js";import"./objectSpread2-N4c0DWqo.js";const Nt={title:"Components/Semantic UI/Items",component:a},m=[{name:"edit"},{name:"copy"},{name:"delete"}],s=J.times(5,e=>({id:e,header:`Test ${e}`,image:Q,image_alt:`Test ${e}`})),c=n(()=>t.jsx(a,{actions:m,items:s,onCopy:o("copy"),onDelete:o("delete"),renderImage:e=>t.jsx(i,{alt:e.image_alt,src:e.image}),renderHeader:e=>t.jsx(r,{content:e.header}),renderMeta:e=>e.id})),p=n(()=>t.jsx(a,{actions:m,items:s,modal:{component:e=>t.jsxs(d,{open:!0,children:[t.jsx(d.Header,{children:"Add"}),t.jsx(d.Content,{children:"Add some stuff here"}),e.children]})},onCopy:o("copy"),onDelete:o("delete"),onSave:()=>Promise.resolve(),renderImage:e=>t.jsx(i,{alt:e.image_alt,src:e.image}),renderHeader:e=>t.jsx(r,{content:e.header}),renderMeta:e=>e.id})),l=n(()=>t.jsx(a,{actions:[{basic:!0,label:"View",name:"view",icon:"picture",onClick:o("view-click")},{basic:!0,label:"History",name:"history",icon:"history",onClick:o("history-click")},{basic:!0,label:"Coffee",name:"coffee",icon:"coffee",onClick:o("coffee-click")}],items:s,onCopy:o("copy"),onDelete:o("delete"),onSave:o("save"),renderImage:e=>t.jsx(i,{alt:e.image_alt,src:e.image}),renderHeader:e=>t.jsx(r,{content:e.header}),renderMeta:e=>e.id})),g=n(()=>t.jsx(a,{actions:m,items:s,onCopy:o("copy"),onDelete:o("delete"),onSave:o("save"),renderDeleteModal:({onCancel:e,onConfirm:K})=>t.jsx(L,{content:"Yo, do you really want to delete this?",header:t.jsx(r,{icon:"hand paper outline",content:"Really?"}),onCancel:e,onConfirm:K,open:!0}),renderImage:e=>t.jsx(i,{alt:e.image_alt,src:e.image}),renderHeader:e=>t.jsx(r,{content:e.header}),renderMeta:e=>e.id})),u=n(()=>t.jsx(a,{actions:m,items:[],onCopy:o("copy"),onDelete:o("delete"),renderImage:e=>t.jsx(i,{alt:e.image_alt,src:e.image}),renderHeader:e=>t.jsx(r,{content:e.header}),renderMeta:e=>e.id})),y=n(()=>t.jsx(a,{actions:m,items:[],modal:{component:e=>t.jsxs(d,{open:!0,children:[t.jsx(d.Header,{children:"Add"}),t.jsx(d.Content,{children:"Add some stuff here"}),e.children]})},onCopy:o("copy"),onDelete:o("delete"),onSave:()=>Promise.resolve(),renderImage:e=>t.jsx(i,{alt:e.image_alt,src:e.image}),renderHeader:e=>t.jsx(r,{content:e.header}),renderMeta:e=>e.id})),I=n(()=>t.jsx(a,{actions:m,items:s,onCopy:o("copy"),onDelete:o("delete"),onSave:o("save"),page:C.number("Page",1),pages:C.number("Pages",10),renderImage:e=>t.jsx(i,{alt:e.image_alt,src:e.image}),renderHeader:e=>t.jsx(r,{content:e.header}),renderMeta:e=>e.id})),h=n(()=>t.jsx(a,{actions:m,items:s,itemsPerRow:2,onCopy:o("copy"),onDelete:o("delete"),renderImage:e=>t.jsx(i,{alt:e.image_alt,src:e.image}),renderHeader:e=>t.jsx(r,{content:e.header}),renderMeta:e=>e.id})),f=n(()=>t.jsx(a,{actions:J.map(m,e=>({...e,size:"mini"})),items:s,onCopy:o("copy"),onDelete:o("delete"),renderImage:e=>t.jsx(i,{alt:e.image_alt,src:e.image}),renderHeader:e=>t.jsx(r,{content:e.header}),renderMeta:e=>e.id}));c.__docgenInfo={description:"",methods:[],displayName:"Default"};p.__docgenInfo={description:"",methods:[],displayName:"AddButton"};l.__docgenInfo={description:"",methods:[],displayName:"CustomActions"};g.__docgenInfo={description:"",methods:[],displayName:"CustomDeleteModal"};u.__docgenInfo={description:"",methods:[],displayName:"Empty"};y.__docgenInfo={description:"",methods:[],displayName:"EmptyAddButton"};I.__docgenInfo={description:"",methods:[],displayName:"Pagination"};h.__docgenInfo={description:"",methods:[],displayName:"ItemsPerRow"};f.__docgenInfo={description:"",methods:[],displayName:"ButtonSize"};var D,_,x;c.parameters={...c.parameters,docs:{...(D=c.parameters)==null?void 0:D.docs,source:{originalSource:"useDragDrop(() => {item.image_alt}} renderHeader={item =>
} renderMeta={item => item.id} />)",...(x=(_=c.parameters)==null?void 0:_.docs)==null?void 0:x.source}}};var H,j,M;p.parameters={...p.parameters,docs:{...(H=p.parameters)==null?void 0:H.docs,source:{originalSource:`useDragDrop(() => ({id:e,header:`Test ${e}`,image:Q,image_alt:`Test ${e}`})),c=n(()=>t.jsx(a,{actions:m,items:s,onCopy:o("copy"),onDelete:o("delete"),renderImage:e=>t.jsx(i,{alt:e.image_alt,src:e.image}),renderHeader:e=>t.jsx(r,{content:e.header}),renderMeta:e=>e.id})),p=n(()=>t.jsx(a,{actions:m,items:s,modal:{component:e=>t.jsxs(d,{open:!0,children:[t.jsx(d.Header,{children:"Add"}),t.jsx(d.Content,{children:"Add some stuff here"}),e.children]})},onCopy:o("copy"),onDelete:o("delete"),onSave:()=>Promise.resolve(),renderImage:e=>t.jsx(i,{alt:e.image_alt,src:e.image}),renderHeader:e=>t.jsx(r,{content:e.header}),renderMeta:e=>e.id})),l=n(()=>t.jsx(a,{actions:[{basic:!0,label:"View",name:"view",icon:"picture",onClick:o("view-click")},{basic:!0,label:"History",name:"history",icon:"history",onClick:o("history-click")},{basic:!0,label:"Coffee",name:"coffee",icon:"coffee",onClick:o("coffee-click")}],items:s,onCopy:o("copy"),onDelete:o("delete"),onSave:o("save"),renderImage:e=>t.jsx(i,{alt:e.image_alt,src:e.image}),renderHeader:e=>t.jsx(r,{content:e.header}),renderMeta:e=>e.id})),g=n(()=>t.jsx(a,{actions:m,items:s,onCopy:o("copy"),onDelete:o("delete"),onSave:o("save"),renderDeleteModal:({onCancel:e,onConfirm:K})=>t.jsx(L,{content:"Yo, do you really want to delete this?",header:t.jsx(r,{icon:"hand paper outline",content:"Really?"}),onCancel:e,onConfirm:K,open:!0}),renderImage:e=>t.jsx(i,{alt:e.image_alt,src:e.image}),renderHeader:e=>t.jsx(r,{content:e.header}),renderMeta:e=>e.id})),u=n(()=>t.jsx(a,{actions:m,items:[],onCopy:o("copy"),onDelete:o("delete"),renderImage:e=>t.jsx(i,{alt:e.image_alt,src:e.image}),renderHeader:e=>t.jsx(r,{content:e.header}),renderMeta:e=>e.id})),y=n(()=>t.jsx(a,{actions:m,items:[],modal:{component:e=>t.jsxs(d,{open:!0,children:[t.jsx(d.Header,{children:"Add"}),t.jsx(d.Content,{children:"Add some stuff here"}),e.children]})},onCopy:o("copy"),onDelete:o("delete"),onSave:()=>Promise.resolve(),renderImage:e=>t.jsx(i,{alt:e.image_alt,src:e.image}),renderHeader:e=>t.jsx(r,{content:e.header}),renderMeta:e=>e.id})),I=n(()=>t.jsx(a,{actions:m,items:s,onCopy:o("copy"),onDelete:o("delete"),onSave:o("save"),page:C.number("Page",1),pages:C.number("Pages",10),renderImage:e=>t.jsx(i,{alt:e.image_alt,src:e.image}),renderHeader:e=>t.jsx(r,{content:e.header}),renderMeta:e=>e.id})),h=n(()=>t.jsx(a,{actions:m,items:s,itemsPerRow:2,onCopy:o("copy"),onDelete:o("delete"),renderImage:e=>t.jsx(i,{alt:e.image_alt,src:e.image}),renderHeader:e=>t.jsx(r,{content:e.header}),renderMeta:e=>e.id})),f=n(()=>t.jsx(a,{actions:J.map(m,e=>({...e,size:"mini"})),items:s,onCopy:o("copy"),onDelete:o("delete"),renderImage:e=>t.jsx(i,{alt:e.image_alt,src:e.image}),renderHeader:e=>t.jsx(r,{content:e.header}),renderMeta:e=>e.id}));c.__docgenInfo={description:"",methods:[],displayName:"Default"};p.__docgenInfo={description:"",methods:[],displayName:"AddButton"};l.__docgenInfo={description:"",methods:[],displayName:"CustomActions"};g.__docgenInfo={description:"",methods:[],displayName:"CustomDeleteModal"};u.__docgenInfo={description:"",methods:[],displayName:"Empty"};y.__docgenInfo={description:"",methods:[],displayName:"EmptyAddButton"};I.__docgenInfo={description:"",methods:[],displayName:"Pagination"};h.__docgenInfo={description:"",methods:[],displayName:"ItemsPerRow"};f.__docgenInfo={description:"",methods:[],displayName:"ButtonSize"};var D,_,x;c.parameters={...c.parameters,docs:{...(D=c.parameters)==null?void 0:D.docs,source:{originalSource:"useDragDrop(() => {item.image_alt}} renderHeader={item =>
} renderMeta={item => item.id} />)",...(x=(_=c.parameters)==null?void 0:_.docs)==null?void 0:x.source}}};var H,j,M;p.parameters={...p.parameters,docs:{...(H=p.parameters)==null?void 0:H.docs,source:{originalSource:`useDragDrop(() => Add Add some stuff here diff --git a/docs/assets/KeyValuePairs.stories-kzno01Bl.js b/docs/assets/KeyValuePairs.stories-CADmdGs7.js similarity index 95% rename from docs/assets/KeyValuePairs.stories-kzno01Bl.js rename to docs/assets/KeyValuePairs.stories-CADmdGs7.js index 160f8a56..043f1efe 100644 --- a/docs/assets/KeyValuePairs.stories-kzno01Bl.js +++ b/docs/assets/KeyValuePairs.stories-CADmdGs7.js @@ -1,4 +1,4 @@ -import{j as t}from"./jsx-runtime-BTCK_S7S.js";import{r as s}from"./index-CBqU2yxZ.js";import{d as V}from"./index-DfmhmaGJ.js";import{G as i}from"./Grid-Czr5owxQ.js";import{B as g}from"./Button-Blq7Z6RX.js";import{I as v}from"./Input--hQVCRQV.js";import{_ as u}from"./index-default-C_maRo4o.js";import{i as m}from"./i18n-C8zWlANG.js";import"./_commonjsHelpers-BosuxZz1.js";import"./mapValues-CZh2vnSw.js";import"./pickBy-CU2rOOKe.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-Bu_b4Pek.js";import"./index-Cw1G72V2.js";import"./index-CKJfshIT.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./preview-errors-CzpZmerH.js";import"./debounce-Bq1aTuh-.js";import"./extends-CCbyfPlC.js";import"./getElementType-CckcRzoH.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./Icon-2tEtgK8g.js";import"./Label-Cq1fb1cd.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./forEach-CXlln0XP.js";import"./Dimmer-D_gwaesu.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./index-DZGZymok.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./map-B4PnIEPz.js";import"./i18next-Sc0HEOoc.js";import"./toPropertyKey-hKuLU48H.js";import"./defineProperty-CCxoMnQV.js";import"./inherits-D5wXBZoG.js";import"./createClass-D2z1h_eG.js";import"./getPrototypeOf-BYVhAdwF.js";const N=r=>e=>{const n=s.useCallback(()=>{e.onChange([...e.items,{}])},[e.items]),j=s.useCallback(d=>{e.onChange(u.reject(e.items,(p,c)=>c===d))},[e.items]),k=s.useCallback((d,p,c,{value:I})=>{e.onChange(u.map(e.items,(y,S)=>S!==d?y:{...y,[p]:I}))},[e.items]);return t.jsx(r,{...e,onAddItem:n,onRemoveItem:j,onUpdateItem:k})},l=N(r=>t.jsxs("div",{children:[t.jsx(g,{basic:!0,content:m.t("Common.buttons.add"),icon:"plus",onClick:r.onAddItem.bind(void 0),type:"button"}),t.jsxs(i,{padded:"vertically",children:[u.map(r.items,(e,n)=>t.jsxs(i.Row,{columns:3,children:[t.jsx(i.Column,{width:8,children:t.jsx(v,{fluid:!0,onChange:r.onUpdateItem.bind(void 0,n,"key"),placeholder:m.t("KeyValuePairs.labels.key"),value:e.key})}),t.jsx(i.Column,{width:7,children:t.jsx(v,{fluid:!0,onChange:r.onUpdateItem.bind(void 0,n,"value"),placeholder:m.t("KeyValuePairs.labels.value"),value:e.value})}),t.jsx(i.Column,{width:1,children:t.jsx(g,{color:"red",icon:"trash",onClick:r.onRemoveItem.bind(void 0,n)})})]})),u.isEmpty(r.items)&&t.jsx(i.Row,{columns:1,children:t.jsx(i.Column,{children:m.t("Common.labels.noRecords")})})]})]}));l.__docgenInfo={description:"",methods:[],displayName:"KeyValuePairs",props:{onAddItem:{required:!0,flowType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""},onRemoveItem:{required:!0,flowType:{name:"signature",type:"function",raw:"(index: number) => void",signature:{arguments:[{name:"index",type:{name:"number"}}],return:{name:"void"}}},description:""},onUpdateItem:{required:!0,flowType:{name:"signature",type:"function",raw:"(index: number, attribute: string, e: Event, data: any) => void",signature:{arguments:[{name:"index",type:{name:"number"}},{name:"attribute",type:{name:"string"}},{name:"e",type:{name:"Event"}},{name:"data",type:{name:"any"}}],return:{name:"void"}}},description:""},items:{required:!0,flowType:{name:"Array",elements:[{name:"signature",type:"object",raw:`{ +import{j as t}from"./jsx-runtime-BTCK_S7S.js";import{r as s}from"./index-CBqU2yxZ.js";import{d as V}from"./index-CAen7T_W.js";import{G as i}from"./Grid-Czr5owxQ.js";import{B as g}from"./Button-Blq7Z6RX.js";import{I as v}from"./Input--hQVCRQV.js";import{_ as u}from"./index-default-C_maRo4o.js";import{i as m}from"./i18n-C8zWlANG.js";import"./_commonjsHelpers-BosuxZz1.js";import"./mapValues-LQZI9uWW.js";import"./pickBy-Us6u5-To.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-DCkRKKtx.js";import"./index-Cw1G72V2.js";import"./index-CKJfshIT.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./preview-errors-CzpZmerH.js";import"./debounce-BkgZrIul.js";import"./extends-CCbyfPlC.js";import"./getElementType-CckcRzoH.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./Icon-2tEtgK8g.js";import"./Label-Cq1fb1cd.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./forEach-CXlln0XP.js";import"./Dimmer-D_gwaesu.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./index-DZGZymok.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./map-B4PnIEPz.js";import"./i18next-Sc0HEOoc.js";import"./toPropertyKey-hKuLU48H.js";import"./defineProperty-CCxoMnQV.js";import"./inherits-D5wXBZoG.js";import"./createClass-D2z1h_eG.js";import"./getPrototypeOf-BYVhAdwF.js";const N=r=>e=>{const n=s.useCallback(()=>{e.onChange([...e.items,{}])},[e.items]),j=s.useCallback(d=>{e.onChange(u.reject(e.items,(p,c)=>c===d))},[e.items]),k=s.useCallback((d,p,c,{value:I})=>{e.onChange(u.map(e.items,(y,S)=>S!==d?y:{...y,[p]:I}))},[e.items]);return t.jsx(r,{...e,onAddItem:n,onRemoveItem:j,onUpdateItem:k})},l=N(r=>t.jsxs("div",{children:[t.jsx(g,{basic:!0,content:m.t("Common.buttons.add"),icon:"plus",onClick:r.onAddItem.bind(void 0),type:"button"}),t.jsxs(i,{padded:"vertically",children:[u.map(r.items,(e,n)=>t.jsxs(i.Row,{columns:3,children:[t.jsx(i.Column,{width:8,children:t.jsx(v,{fluid:!0,onChange:r.onUpdateItem.bind(void 0,n,"key"),placeholder:m.t("KeyValuePairs.labels.key"),value:e.key})}),t.jsx(i.Column,{width:7,children:t.jsx(v,{fluid:!0,onChange:r.onUpdateItem.bind(void 0,n,"value"),placeholder:m.t("KeyValuePairs.labels.value"),value:e.value})}),t.jsx(i.Column,{width:1,children:t.jsx(g,{color:"red",icon:"trash",onClick:r.onRemoveItem.bind(void 0,n)})})]})),u.isEmpty(r.items)&&t.jsx(i.Row,{columns:1,children:t.jsx(i.Column,{children:m.t("Common.labels.noRecords")})})]})]}));l.__docgenInfo={description:"",methods:[],displayName:"KeyValuePairs",props:{onAddItem:{required:!0,flowType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""},onRemoveItem:{required:!0,flowType:{name:"signature",type:"function",raw:"(index: number) => void",signature:{arguments:[{name:"index",type:{name:"number"}}],return:{name:"void"}}},description:""},onUpdateItem:{required:!0,flowType:{name:"signature",type:"function",raw:"(index: number, attribute: string, e: Event, data: any) => void",signature:{arguments:[{name:"index",type:{name:"number"}},{name:"attribute",type:{name:"string"}},{name:"e",type:{name:"Event"}},{name:"data",type:{name:"any"}}],return:{name:"void"}}},description:""},items:{required:!0,flowType:{name:"Array",elements:[{name:"signature",type:"object",raw:`{ key: string, value: string }`,signature:{properties:[{key:"key",value:{name:"string",required:!0}},{key:"value",value:{name:"string",required:!0}}]}}],raw:"Array"},description:""},onChange:{required:!0,flowType:{name:"signature",type:"function",raw:"(items: Array) => void",signature:{arguments:[{name:"items",type:{name:"Array",elements:[{name:"signature",type:"object",raw:`{ diff --git a/docs/assets/Keyboard.stories-DvSTFzs2.js b/docs/assets/Keyboard.stories-DjAyLjfL.js similarity index 99% rename from docs/assets/Keyboard.stories-DvSTFzs2.js rename to docs/assets/Keyboard.stories-DjAyLjfL.js index 5e9529a5..478b5cca 100644 --- a/docs/assets/Keyboard.stories-DvSTFzs2.js +++ b/docs/assets/Keyboard.stories-DjAyLjfL.js @@ -1,4 +1,4 @@ -import{j as Pt}from"./jsx-runtime-BTCK_S7S.js";import{r as jt}from"./index-CBqU2yxZ.js";import{a as Tt}from"./chunk-WFFRPTHA-B2vgThZf.js";import{d as Wt}from"./index-DfmhmaGJ.js";import{E as Xt,A as Qt}from"./english-BQymWagN.js";import{c as Zt,g as te}from"./_commonjsHelpers-BosuxZz1.js";import"./preview-errors-CzpZmerH.js";import"./index-CKJfshIT.js";import"./v4-D8aEg3BZ.js";import"./mapValues-CZh2vnSw.js";import"./pickBy-CU2rOOKe.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-Bu_b4Pek.js";import"./index-Cw1G72V2.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./debounce-Bq1aTuh-.js";const ee={layout:{default:["` 1 2 3 4 5 6 7 8 9 0 - = {bksp}","{tab} q w e r t y u i o p [ ] \\","{lock} a s d f g h j k l ; ' {enter}","{shift} z x c v b n m . - / {shift}",".com @ {space}"],shift:["~ ! @ # $ % ^ & * ) ( _ + {bksp}","{tab} Q W E R T Y U I O P { } |",'{lock} A S D F G H J K L : " {enter}',"{shift} Z X C V B N M < > ? {shift}",".com @ {space}"]},layoutCandidates:{a:"阿 啊 呵 腌 嗄 吖 锕",e:"额 阿 俄 恶 鹅 遏 鄂 厄 饿 峨 扼 娥 鳄 哦 蛾 噩 愕 讹 锷 垩 婀 鹗 萼 谔 莪 腭 锇 颚 呃 阏 屙 苊 轭",ai:"爱 埃 艾 碍 癌 哀 挨 矮 隘 蔼 唉 皑 哎 霭 捱 暧 嫒 嗳 瑷 嗌 锿 砹",ei:"诶",xi:"系 西 席 息 希 习 吸 喜 细 析 戏 洗 悉 锡 溪 惜 稀 袭 夕 洒 晰 昔 牺 腊 烯 熙 媳 栖 膝 隙 犀 蹊 硒 兮 熄 曦 禧 嬉 玺 奚 汐 徙 羲 铣 淅 嘻 歙 熹 矽 蟋 郗 唏 皙 隰 樨 浠 忾 蜥 檄 郄 翕 阋 鳃 舾 屣 葸 螅 咭 粞 觋 欷 僖 醯 鼷 裼 穸 饩 舄 禊 诶 菥 蓰",yi:"一 以 已 意 议 义 益 亿 易 医 艺 食 依 移 衣 异 伊 仪 宜 射 遗 疑 毅 谊 亦 疫 役 忆 抑 尾 乙 译 翼 蛇 溢 椅 沂 泄 逸 蚁 夷 邑 怡 绎 彝 裔 姨 熠 贻 矣 屹 颐 倚 诣 胰 奕 翌 疙 弈 轶 蛾 驿 壹 猗 臆 弋 铱 旖 漪 迤 佚 翊 诒 怿 痍 懿 饴 峄 揖 眙 镒 仡 黟 肄 咿 翳 挹 缢 呓 刈 咦 嶷 羿 钇 殪 荑 薏 蜴 镱 噫 癔 苡 悒 嗌 瘗 衤 佾 埸 圯 舣 酏 劓",an:"安 案 按 岸 暗 鞍 氨 俺 胺 铵 谙 庵 黯 鹌 桉 埯 犴 揞 厂 广",han:"厂 汉 韩 含 旱 寒 汗 涵 函 喊 憾 罕 焊 翰 邯 撼 瀚 憨 捍 酣 悍 鼾 邗 颔 蚶 晗 菡 旰 顸 犴 焓 撖",ang:"昂 仰 盎 肮",ao:"奥 澳 傲 熬 凹 鳌 敖 遨 鏖 袄 坳 翱 嗷 拗 懊 岙 螯 骜 獒 鏊 艹 媪 廒 聱",wa:"瓦 挖 娃 洼 袜 蛙 凹 哇 佤 娲 呙 腽",yu:"于 与 育 余 预 域 予 遇 奥 语 誉 玉 鱼 雨 渔 裕 愈 娱 欲 吁 舆 宇 羽 逾 豫 郁 寓 吾 狱 喻 御 浴 愉 禹 俞 邪 榆 愚 渝 尉 淤 虞 屿 峪 粥 驭 瑜 禺 毓 钰 隅 芋 熨 瘀 迂 煜 昱 汩 於 臾 盂 聿 竽 萸 妪 腴 圄 谕 觎 揄 龉 谀 俣 馀 庾 妤 瘐 鬻 欤 鹬 阈 嵛 雩 鹆 圉 蜮 伛 纡 窬 窳 饫 蓣 狳 肀 舁 蝓 燠",niu:"牛 纽 扭 钮 拗 妞 忸 狃",o:"哦 噢 喔",ba:"把 八 巴 拔 伯 吧 坝 爸 霸 罢 芭 跋 扒 叭 靶 疤 笆 耙 鲅 粑 岜 灞 钯 捌 菝 魃 茇",pa:"怕 帕 爬 扒 趴 琶 啪 葩 耙 杷 钯 筢",pi:"被 批 副 否 皮 坏 辟 啤 匹 披 疲 罢 僻 毗 坯 脾 譬 劈 媲 屁 琵 邳 裨 痞 癖 陂 丕 枇 噼 霹 吡 纰 砒 铍 淠 郫 埤 濞 睥 芘 蚍 圮 鼙 罴 蜱 疋 貔 仳 庀 擗 甓 陴",bi:"比 必 币 笔 毕 秘 避 闭 佛 辟 壁 弊 彼 逼 碧 鼻 臂 蔽 拂 泌 璧 庇 痹 毙 弼 匕 鄙 陛 裨 贲 敝 蓖 吡 篦 纰 俾 铋 毖 筚 荸 薜 婢 哔 跸 濞 秕 荜 愎 睥 妣 芘 箅 髀 畀 滗 狴 萆 嬖 襞 舭",bai:"百 白 败 摆 伯 拜 柏 佰 掰 呗 擘 捭 稗",bo:"波 博 播 勃 拨 薄 佛 伯 玻 搏 柏 泊 舶 剥 渤 卜 驳 簿 脖 膊 簸 菠 礴 箔 铂 亳 钵 帛 擘 饽 跛 钹 趵 檗 啵 鹁 擗 踣",bei:"北 被 备 倍 背 杯 勃 贝 辈 悲 碑 臂 卑 悖 惫 蓓 陂 钡 狈 呗 焙 碚 褙 庳 鞴 孛 鹎 邶 鐾",ban:"办 版 半 班 般 板 颁 伴 搬 斑 扮 拌 扳 瓣 坂 阪 绊 钣 瘢 舨 癍",pan:"判 盘 番 潘 攀 盼 拚 畔 胖 叛 拌 蹒 磐 爿 蟠 泮 袢 襻 丬",bin:"份 宾 频 滨 斌 彬 濒 殡 缤 鬓 槟 摈 膑 玢 镔 豳 髌 傧",bang:"帮 邦 彭 旁 榜 棒 膀 镑 绑 傍 磅 蚌 谤 梆 浜 蒡",pang:"旁 庞 乓 磅 螃 彷 滂 逄 耪",beng:"泵 崩 蚌 蹦 迸 绷 甭 嘣 甏 堋",bao:"报 保 包 宝 暴 胞 薄 爆 炮 饱 抱 堡 剥 鲍 曝 葆 瀑 豹 刨 褒 雹 孢 苞 煲 褓 趵 鸨 龅 勹",bu:"不 部 步 布 补 捕 堡 埔 卜 埠 簿 哺 怖 钚 卟 瓿 逋 晡 醭 钸",pu:"普 暴 铺 浦 朴 堡 葡 谱 埔 扑 仆 蒲 曝 瀑 溥 莆 圃 璞 濮 菩 蹼 匍 噗 氆 攵 镨 攴 镤",mian:"面 棉 免 绵 缅 勉 眠 冕 娩 腼 渑 湎 沔 黾 宀 眄",po:"破 繁 坡 迫 颇 朴 泊 婆 泼 魄 粕 鄱 珀 陂 叵 笸 泺 皤 钋 钷",fan:"反 范 犯 繁 饭 泛 翻 凡 返 番 贩 烦 拚 帆 樊 藩 矾 梵 蕃 钒 幡 畈 蘩 蹯 燔",fu:"府 服 副 负 富 复 福 夫 妇 幅 付 扶 父 符 附 腐 赴 佛 浮 覆 辅 傅 伏 抚 赋 辐 腹 弗 肤 阜 袱 缚 甫 氟 斧 孚 敷 俯 拂 俘 咐 腑 孵 芙 涪 釜 脯 茯 馥 宓 绂 讣 呋 罘 麸 蝠 匐 芾 蜉 跗 凫 滏 蝮 驸 绋 蚨 砩 桴 赙 菔 呒 趺 苻 拊 阝 鲋 怫 稃 郛 莩 幞 祓 艴 黻 黼 鳆",ben:"本 体 奔 苯 笨 夯 贲 锛 畚 坌",feng:"风 丰 封 峰 奉 凤 锋 冯 逢 缝 蜂 枫 疯 讽 烽 俸 沣 酆 砜 葑 唪",bian:"变 便 边 编 遍 辩 鞭 辨 贬 匾 扁 卞 汴 辫 砭 苄 蝙 鳊 弁 窆 笾 煸 褊 碥 忭 缏",pian:"便 片 篇 偏 骗 翩 扁 骈 胼 蹁 谝 犏 缏",zhen:"镇 真 针 圳 振 震 珍 阵 诊 填 侦 臻 贞 枕 桢 赈 祯 帧 甄 斟 缜 箴 疹 砧 榛 鸩 轸 稹 溱 蓁 胗 椹 朕 畛 浈",biao:"表 标 彪 镖 裱 飚 膘 飙 镳 婊 骠 飑 杓 髟 鳔 灬 瘭",piao:"票 朴 漂 飘 嫖 瓢 剽 缥 殍 瞟 骠 嘌 莩 螵",huo:"和 活 或 货 获 火 伙 惑 霍 祸 豁 嚯 藿 锪 蠖 钬 耠 镬 夥 灬 劐 攉",bie:"别 鳖 憋 瘪 蹩",min:"民 敏 闽 闵 皿 泯 岷 悯 珉 抿 黾 缗 玟 愍 苠 鳘",fen:"分 份 纷 奋 粉 氛 芬 愤 粪 坟 汾 焚 酚 吩 忿 棼 玢 鼢 瀵 偾 鲼",bing:"并 病 兵 冰 屏 饼 炳 秉 丙 摒 柄 槟 禀 枋 邴 冫",geng:"更 耕 颈 庚 耿 梗 埂 羹 哽 赓 绠 鲠",fang:"方 放 房 防 访 纺 芳 仿 坊 妨 肪 邡 舫 彷 枋 鲂 匚 钫",xian:"现 先 县 见 线 限 显 险 献 鲜 洗 宪 纤 陷 闲 贤 仙 衔 掀 咸 嫌 掺 羡 弦 腺 痫 娴 舷 馅 酰 铣 冼 涎 暹 籼 锨 苋 蚬 跹 岘 藓 燹 鹇 氙 莶 霰 跣 猃 彡 祆 筅",fou:"不 否 缶",ca:"拆 擦 嚓 礤",cha:"查 察 差 茶 插 叉 刹 茬 楂 岔 诧 碴 嚓 喳 姹 杈 汊 衩 搽 槎 镲 苴 檫 馇 锸 猹",cai:"才 采 财 材 菜 彩 裁 蔡 猜 踩 睬",can:"参 残 餐 灿 惨 蚕 掺 璨 惭 粲 孱 骖 黪",shen:"信 深 参 身 神 什 审 申 甚 沈 伸 慎 渗 肾 绅 莘 呻 婶 娠 砷 蜃 哂 椹 葚 吲 糁 渖 诜 谂 矧 胂",cen:"参 岑 涔",san:"三 参 散 伞 叁 糁 馓 毵",cang:"藏 仓 苍 沧 舱 臧 伧",zang:"藏 脏 葬 赃 臧 奘 驵",chen:"称 陈 沈 沉 晨 琛 臣 尘 辰 衬 趁 忱 郴 宸 谌 碜 嗔 抻 榇 伧 谶 龀 肜",cao:"草 操 曹 槽 糙 嘈 漕 螬 艚 屮",ce:"策 测 册 侧 厕 栅 恻",ze:"责 则 泽 择 侧 咋 啧 仄 箦 赜 笮 舴 昃 迮 帻",zhai:"债 择 齐 宅 寨 侧 摘 窄 斋 祭 翟 砦 瘵 哜",dao:"到 道 导 岛 倒 刀 盗 稻 蹈 悼 捣 叨 祷 焘 氘 纛 刂 帱 忉",ceng:"层 曾 蹭 噌",zha:"查 扎 炸 诈 闸 渣 咋 乍 榨 楂 札 栅 眨 咤 柞 喳 喋 铡 蚱 吒 怍 砟 揸 痄 哳 齄",chai:"差 拆 柴 钗 豺 侪 虿 瘥",ci:"次 此 差 词 辞 刺 瓷 磁 兹 慈 茨 赐 祠 伺 雌 疵 鹚 糍 呲 粢",zi:"资 自 子 字 齐 咨 滋 仔 姿 紫 兹 孜 淄 籽 梓 鲻 渍 姊 吱 秭 恣 甾 孳 訾 滓 锱 辎 趑 龇 赀 眦 缁 呲 笫 谘 嵫 髭 茈 粢 觜 耔",cuo:"措 错 磋 挫 搓 撮 蹉 锉 厝 嵯 痤 矬 瘥 脞 鹾",chan:"产 单 阐 崭 缠 掺 禅 颤 铲 蝉 搀 潺 蟾 馋 忏 婵 孱 觇 廛 谄 谗 澶 骣 羼 躔 蒇 冁",shan:"山 单 善 陕 闪 衫 擅 汕 扇 掺 珊 禅 删 膳 缮 赡 鄯 栅 煽 姗 跚 鳝 嬗 潸 讪 舢 苫 疝 掸 膻 钐 剡 蟮 芟 埏 彡 骟",zhan:"展 战 占 站 崭 粘 湛 沾 瞻 颤 詹 斩 盏 辗 绽 毡 栈 蘸 旃 谵 搌",xin:"新 心 信 辛 欣 薪 馨 鑫 芯 锌 忻 莘 昕 衅 歆 囟 忄 镡",lian:"联 连 练 廉 炼 脸 莲 恋 链 帘 怜 涟 敛 琏 镰 濂 楝 鲢 殓 潋 裢 裣 臁 奁 莶 蠊 蔹",chang:"场 长 厂 常 偿 昌 唱 畅 倡 尝 肠 敞 倘 猖 娼 淌 裳 徜 昶 怅 嫦 菖 鲳 阊 伥 苌 氅 惝 鬯",zhang:"长 张 章 障 涨 掌 帐 胀 彰 丈 仗 漳 樟 账 杖 璋 嶂 仉 瘴 蟑 獐 幛 鄣 嫜",chao:"超 朝 潮 炒 钞 抄 巢 吵 剿 绰 嘲 晁 焯 耖 怊",zhao:"着 照 招 找 召 朝 赵 兆 昭 肇 罩 钊 沼 嘲 爪 诏 濯 啁 棹 笊",zhou:"调 州 周 洲 舟 骤 轴 昼 宙 粥 皱 肘 咒 帚 胄 绉 纣 妯 啁 诌 繇 碡 籀 酎 荮",che:"车 彻 撤 尺 扯 澈 掣 坼 砗 屮",ju:"车 局 据 具 举 且 居 剧 巨 聚 渠 距 句 拒 俱 柜 菊 拘 炬 桔 惧 矩 鞠 驹 锯 踞 咀 瞿 枸 掬 沮 莒 橘 飓 疽 钜 趄 踽 遽 琚 龃 椐 苣 裾 榘 狙 倨 榉 苴 讵 雎 锔 窭 鞫 犋 屦 醵",cheng:"成 程 城 承 称 盛 抢 乘 诚 呈 净 惩 撑 澄 秤 橙 骋 逞 瞠 丞 晟 铛 埕 塍 蛏 柽 铖 酲 裎 枨",rong:"容 荣 融 绒 溶 蓉 熔 戎 榕 茸 冗 嵘 肜 狨 蝾",sheng:"生 声 升 胜 盛 乘 圣 剩 牲 甸 省 绳 笙 甥 嵊 晟 渑 眚",deng:"等 登 邓 灯 澄 凳 瞪 蹬 噔 磴 嶝 镫 簦 戥",zhi:"制 之 治 质 职 只 志 至 指 织 支 值 知 识 直 致 执 置 止 植 纸 拓 智 殖 秩 旨 址 滞 氏 枝 芝 脂 帜 汁 肢 挚 稚 酯 掷 峙 炙 栉 侄 芷 窒 咫 吱 趾 痔 蜘 郅 桎 雉 祉 郦 陟 痣 蛭 帙 枳 踯 徵 胝 栀 贽 祗 豸 鸷 摭 轵 卮 轾 彘 觯 絷 跖 埴 夂 黹 忮 骘 膣 踬",zheng:"政 正 证 争 整 征 郑 丁 症 挣 蒸 睁 铮 筝 拯 峥 怔 诤 狰 徵 钲",tang:"堂 唐 糖 汤 塘 躺 趟 倘 棠 烫 淌 膛 搪 镗 傥 螳 溏 帑 羰 樘 醣 螗 耥 铴 瑭",chi:"持 吃 池 迟 赤 驰 尺 斥 齿 翅 匙 痴 耻 炽 侈 弛 叱 啻 坻 眙 嗤 墀 哧 茌 豉 敕 笞 饬 踟 蚩 柢 媸 魑 篪 褫 彳 鸱 螭 瘛 眵 傺",shi:"是 时 实 事 市 十 使 世 施 式 势 视 识 师 史 示 石 食 始 士 失 适 试 什 泽 室 似 诗 饰 殖 释 驶 氏 硕 逝 湿 蚀 狮 誓 拾 尸 匙 仕 柿 矢 峙 侍 噬 嗜 栅 拭 嘘 屎 恃 轼 虱 耆 舐 莳 铈 谥 炻 豕 鲥 饣 螫 酾 筮 埘 弑 礻 蓍 鲺 贳",qi:"企 其 起 期 气 七 器 汽 奇 齐 启 旗 棋 妻 弃 揭 枝 歧 欺 骑 契 迄 亟 漆 戚 岂 稽 岐 琦 栖 缉 琪 泣 乞 砌 祁 崎 绮 祺 祈 凄 淇 杞 脐 麒 圻 憩 芪 伎 俟 畦 耆 葺 沏 萋 骐 鳍 綦 讫 蕲 屺 颀 亓 碛 柒 啐 汔 綮 萁 嘁 蛴 槭 欹 芑 桤 丌 蜞",chuai:"揣 踹 啜 搋 膪",tuo:"托 脱 拓 拖 妥 驼 陀 沱 鸵 驮 唾 椭 坨 佗 砣 跎 庹 柁 橐 乇 铊 沲 酡 鼍 箨 柝",duo:"多 度 夺 朵 躲 铎 隋 咄 堕 舵 垛 惰 哆 踱 跺 掇 剁 柁 缍 沲 裰 哚 隳",xue:"学 血 雪 削 薛 穴 靴 谑 噱 鳕 踅 泶 彐",chong:"重 种 充 冲 涌 崇 虫 宠 忡 憧 舂 茺 铳 艟",chou:"筹 抽 绸 酬 愁 丑 臭 仇 畴 稠 瞅 踌 惆 俦 瘳 雠 帱",qiu:"求 球 秋 丘 邱 仇 酋 裘 龟 囚 遒 鳅 虬 蚯 泅 楸 湫 犰 逑 巯 艽 俅 蝤 赇 鼽 糗",xiu:"修 秀 休 宿 袖 绣 臭 朽 锈 羞 嗅 岫 溴 庥 馐 咻 髹 鸺 貅",chu:"出 处 础 初 助 除 储 畜 触 楚 厨 雏 矗 橱 锄 滁 躇 怵 绌 搐 刍 蜍 黜 杵 蹰 亍 樗 憷 楮",tuan:"团 揣 湍 疃 抟 彖",zhui:"追 坠 缀 揣 椎 锥 赘 惴 隹 骓 缒",chuan:"传 川 船 穿 串 喘 椽 舛 钏 遄 氚 巛 舡",zhuan:"专 转 传 赚 砖 撰 篆 馔 啭 颛",yuan:"元 员 院 原 源 远 愿 园 援 圆 缘 袁 怨 渊 苑 宛 冤 媛 猿 垣 沅 塬 垸 鸳 辕 鸢 瑗 圜 爰 芫 鼋 橼 螈 眢 箢 掾",cuan:"窜 攒 篡 蹿 撺 爨 汆 镩",chuang:"创 床 窗 闯 幢 疮 怆",zhuang:"装 状 庄 壮 撞 妆 幢 桩 奘 僮 戆",chui:"吹 垂 锤 炊 椎 陲 槌 捶 棰",chun:"春 纯 醇 淳 唇 椿 蠢 鹑 朐 莼 肫 蝽",zhun:"准 屯 淳 谆 肫 窀",cu:"促 趋 趣 粗 簇 醋 卒 蹴 猝 蹙 蔟 殂 徂",dun:"吨 顿 盾 敦 蹲 墩 囤 沌 钝 炖 盹 遁 趸 砘 礅",qu:"区 去 取 曲 趋 渠 趣 驱 屈 躯 衢 娶 祛 瞿 岖 龋 觑 朐 蛐 癯 蛆 苣 阒 诎 劬 蕖 蘧 氍 黢 蠼 璩 麴 鸲 磲",xu:"需 许 续 须 序 徐 休 蓄 畜 虚 吁 绪 叙 旭 邪 恤 墟 栩 絮 圩 婿 戌 胥 嘘 浒 煦 酗 诩 朐 盱 蓿 溆 洫 顼 勖 糈 砉 醑",chuo:"辍 绰 戳 淖 啜 龊 踔 辶",zu:"组 族 足 祖 租 阻 卒 俎 诅 镞 菹",ji:"济 机 其 技 基 记 计 系 期 际 及 集 级 几 给 积 极 己 纪 即 继 击 既 激 绩 急 奇 吉 季 齐 疾 迹 鸡 剂 辑 籍 寄 挤 圾 冀 亟 寂 暨 脊 跻 肌 稽 忌 饥 祭 缉 棘 矶 汲 畸 姬 藉 瘠 骥 羁 妓 讥 稷 蓟 悸 嫉 岌 叽 伎 鲫 诘 楫 荠 戟 箕 霁 嵇 觊 麂 畿 玑 笈 犄 芨 唧 屐 髻 戢 佶 偈 笄 跽 蒺 乩 咭 赍 嵴 虮 掎 齑 殛 鲚 剞 洎 丌 墼 蕺 彐 芰 哜",cong:"从 丛 匆 聪 葱 囱 琮 淙 枞 骢 苁 璁",zong:"总 从 综 宗 纵 踪 棕 粽 鬃 偬 枞 腙",cou:"凑 辏 腠 楱",cui:"衰 催 崔 脆 翠 萃 粹 摧 璀 瘁 悴 淬 啐 隹 毳 榱",wei:"为 位 委 未 维 卫 围 违 威 伟 危 味 微 唯 谓 伪 慰 尾 魏 韦 胃 畏 帷 喂 巍 萎 蔚 纬 潍 尉 渭 惟 薇 苇 炜 圩 娓 诿 玮 崴 桅 偎 逶 倭 猥 囗 葳 隗 痿 猬 涠 嵬 韪 煨 艉 隹 帏 闱 洧 沩 隈 鲔 軎",cun:"村 存 寸 忖 皴",zuo:"作 做 座 左 坐 昨 佐 琢 撮 祚 柞 唑 嘬 酢 怍 笮 阼 胙",zuan:"钻 纂 攥 缵 躜",da:"大 达 打 答 搭 沓 瘩 惮 嗒 哒 耷 鞑 靼 褡 笪 怛 妲",dai:"大 代 带 待 贷 毒 戴 袋 歹 呆 隶 逮 岱 傣 棣 怠 殆 黛 甙 埭 诒 绐 玳 呔 迨",tai:"大 台 太 态 泰 抬 胎 汰 钛 苔 薹 肽 跆 邰 鲐 酞 骀 炱",ta:"他 它 她 拓 塔 踏 塌 榻 沓 漯 獭 嗒 挞 蹋 趿 遢 铊 鳎 溻 闼",dan:"但 单 石 担 丹 胆 旦 弹 蛋 淡 诞 氮 郸 耽 殚 惮 儋 眈 疸 澹 掸 膻 啖 箪 聃 萏 瘅 赕",lu:"路 六 陆 录 绿 露 鲁 卢 炉 鹿 禄 赂 芦 庐 碌 麓 颅 泸 卤 潞 鹭 辘 虏 璐 漉 噜 戮 鲈 掳 橹 轳 逯 渌 蓼 撸 鸬 栌 氇 胪 镥 簏 舻 辂 垆",tan:"谈 探 坦 摊 弹 炭 坛 滩 贪 叹 谭 潭 碳 毯 瘫 檀 痰 袒 坍 覃 忐 昙 郯 澹 钽 锬",ren:"人 任 认 仁 忍 韧 刃 纫 饪 妊 荏 稔 壬 仞 轫 亻 衽",jie:"家 结 解 价 界 接 节 她 届 介 阶 街 借 杰 洁 截 姐 揭 捷 劫 戒 皆 竭 桔 诫 楷 秸 睫 藉 拮 芥 诘 碣 嗟 颉 蚧 孑 婕 疖 桀 讦 疥 偈 羯 袷 哜 喈 卩 鲒 骱",yan:"研 严 验 演 言 眼 烟 沿 延 盐 炎 燕 岩 宴 艳 颜 殷 彦 掩 淹 阎 衍 铅 雁 咽 厌 焰 堰 砚 唁 焉 晏 檐 蜒 奄 俨 腌 妍 谚 兖 筵 焱 偃 闫 嫣 鄢 湮 赝 胭 琰 滟 阉 魇 酽 郾 恹 崦 芫 剡 鼹 菸 餍 埏 谳 讠 厣 罨",dang:"当 党 档 荡 挡 宕 砀 铛 裆 凼 菪 谠",tao:"套 讨 跳 陶 涛 逃 桃 萄 淘 掏 滔 韬 叨 洮 啕 绦 饕 鼗",tiao:"条 调 挑 跳 迢 眺 苕 窕 笤 佻 啁 粜 髫 铫 祧 龆 蜩 鲦",te:"特 忑 忒 铽 慝",de:"的 地 得 德 底 锝",dei:"得",di:"的 地 第 提 低 底 抵 弟 迪 递 帝 敌 堤 蒂 缔 滴 涤 翟 娣 笛 棣 荻 谛 狄 邸 嘀 砥 坻 诋 嫡 镝 碲 骶 氐 柢 籴 羝 睇 觌",ti:"体 提 题 弟 替 梯 踢 惕 剔 蹄 棣 啼 屉 剃 涕 锑 倜 悌 逖 嚏 荑 醍 绨 鹈 缇 裼",tui:"推 退 弟 腿 褪 颓 蜕 忒 煺",you:"有 由 又 优 游 油 友 右 邮 尤 忧 幼 犹 诱 悠 幽 佑 釉 柚 铀 鱿 囿 酉 攸 黝 莠 猷 蝣 疣 呦 蚴 莸 莜 铕 宥 繇 卣 牖 鼬 尢 蚰 侑",dian:"电 点 店 典 奠 甸 碘 淀 殿 垫 颠 滇 癫 巅 惦 掂 癜 玷 佃 踮 靛 钿 簟 坫 阽",tian:"天 田 添 填 甜 甸 恬 腆 佃 舔 钿 阗 忝 殄 畋 栝 掭",zhu:"主 术 住 注 助 属 逐 宁 著 筑 驻 朱 珠 祝 猪 诸 柱 竹 铸 株 瞩 嘱 贮 煮 烛 苎 褚 蛛 拄 铢 洙 竺 蛀 渚 伫 杼 侏 澍 诛 茱 箸 炷 躅 翥 潴 邾 槠 舳 橥 丶 瘃 麈 疰",nian:"年 念 酿 辗 碾 廿 捻 撵 拈 蔫 鲶 埝 鲇 辇 黏",diao:"调 掉 雕 吊 钓 刁 貂 凋 碉 鲷 叼 铫 铞",yao:"要 么 约 药 邀 摇 耀 腰 遥 姚 窑 瑶 咬 尧 钥 谣 肴 夭 侥 吆 疟 妖 幺 杳 舀 窕 窈 曜 鹞 爻 繇 徭 轺 铫 鳐 崾 珧",die:"跌 叠 蝶 迭 碟 爹 谍 牒 耋 佚 喋 堞 瓞 鲽 垤 揲 蹀",she:"设 社 摄 涉 射 折 舍 蛇 拾 舌 奢 慑 赦 赊 佘 麝 歙 畲 厍 猞 揲 滠",ye:"业 也 夜 叶 射 野 液 冶 喝 页 爷 耶 邪 咽 椰 烨 掖 拽 曳 晔 谒 腋 噎 揶 靥 邺 铘 揲",xie:"些 解 协 写 血 叶 谢 械 鞋 胁 斜 携 懈 契 卸 谐 泄 蟹 邪 歇 泻 屑 挟 燮 榭 蝎 撷 偕 亵 楔 颉 缬 邂 鲑 瀣 勰 榍 薤 绁 渫 廨 獬 躞",zhe:"这 者 着 著 浙 折 哲 蔗 遮 辙 辄 柘 锗 褶 蜇 蛰 鹧 谪 赭 摺 乇 磔 螫",ding:"定 订 顶 丁 鼎 盯 钉 锭 叮 仃 铤 町 酊 啶 碇 腚 疔 玎 耵",diu:"丢 铥",ting:"听 庭 停 厅 廷 挺 亭 艇 婷 汀 铤 烃 霆 町 蜓 葶 梃 莛",dong:"动 东 董 冬 洞 懂 冻 栋 侗 咚 峒 氡 恫 胴 硐 垌 鸫 岽 胨",tong:"同 通 统 童 痛 铜 桶 桐 筒 彤 侗 佟 潼 捅 酮 砼 瞳 恸 峒 仝 嗵 僮 垌 茼",zhong:"中 重 种 众 终 钟 忠 仲 衷 肿 踵 冢 盅 蚣 忪 锺 舯 螽 夂",dou:"都 斗 读 豆 抖 兜 陡 逗 窦 渎 蚪 痘 蔸 钭 篼",du:"度 都 独 督 读 毒 渡 杜 堵 赌 睹 肚 镀 渎 笃 竺 嘟 犊 妒 牍 蠹 椟 黩 芏 髑",duan:"断 段 短 端 锻 缎 煅 椴 簖",dui:"对 队 追 敦 兑 堆 碓 镦 怼 憝",rui:"瑞 兑 锐 睿 芮 蕊 蕤 蚋 枘",yue:"月 说 约 越 乐 跃 兑 阅 岳 粤 悦 曰 钥 栎 钺 樾 瀹 龠 哕 刖",tun:"吞 屯 囤 褪 豚 臀 饨 暾 氽",hui:"会 回 挥 汇 惠 辉 恢 徽 绘 毁 慧 灰 贿 卉 悔 秽 溃 荟 晖 彗 讳 诲 珲 堕 诙 蕙 晦 睢 麾 烩 茴 喙 桧 蛔 洄 浍 虺 恚 蟪 咴 隳 缋 哕",wu:"务 物 无 五 武 午 吴 舞 伍 污 乌 误 亡 恶 屋 晤 悟 吾 雾 芜 梧 勿 巫 侮 坞 毋 诬 呜 钨 邬 捂 鹜 兀 婺 妩 於 戊 鹉 浯 蜈 唔 骛 仵 焐 芴 鋈 庑 鼯 牾 怃 圬 忤 痦 迕 杌 寤 阢",ya:"亚 压 雅 牙 押 鸭 呀 轧 涯 崖 邪 芽 哑 讶 鸦 娅 衙 丫 蚜 碣 垭 伢 氩 桠 琊 揠 吖 睚 痖 疋 迓 岈 砑",he:"和 合 河 何 核 盖 贺 喝 赫 荷 盒 鹤 吓 呵 苛 禾 菏 壑 褐 涸 阂 阖 劾 诃 颌 嗬 貉 曷 翮 纥 盍",wo:"我 握 窝 沃 卧 挝 涡 斡 渥 幄 蜗 喔 倭 莴 龌 肟 硪",en:"恩 摁 蒽",n:"嗯 唔",er:"而 二 尔 儿 耳 迩 饵 洱 贰 铒 珥 佴 鸸 鲕",fa:"发 法 罚 乏 伐 阀 筏 砝 垡 珐",quan:"全 权 券 泉 圈 拳 劝 犬 铨 痊 诠 荃 醛 蜷 颧 绻 犭 筌 鬈 悛 辁 畎",fei:"费 非 飞 肥 废 菲 肺 啡 沸 匪 斐 蜚 妃 诽 扉 翡 霏 吠 绯 腓 痱 芾 淝 悱 狒 榧 砩 鲱 篚 镄",pei:"配 培 坏 赔 佩 陪 沛 裴 胚 妃 霈 淠 旆 帔 呸 醅 辔 锫",ping:"平 评 凭 瓶 冯 屏 萍 苹 乒 坪 枰 娉 俜 鲆",fo:"佛",hu:"和 护 许 户 核 湖 互 乎 呼 胡 戏 忽 虎 沪 糊 壶 葫 狐 蝴 弧 瑚 浒 鹄 琥 扈 唬 滹 惚 祜 囫 斛 笏 芴 醐 猢 怙 唿 戽 槲 觳 煳 鹕 冱 瓠 虍 岵 鹱 烀 轷",ga:"夹 咖 嘎 尬 噶 旮 伽 尕 钆 尜",ge:"个 合 各 革 格 歌 哥 盖 隔 割 阁 戈 葛 鸽 搁 胳 舸 疙 铬 骼 蛤 咯 圪 镉 颌 仡 硌 嗝 鬲 膈 纥 袼 搿 塥 哿 虼",ha:"哈 蛤 铪",xia:"下 夏 峡 厦 辖 霞 夹 虾 狭 吓 侠 暇 遐 瞎 匣 瑕 唬 呷 黠 硖 罅 狎 瘕 柙",gai:"改 该 盖 概 溉 钙 丐 芥 赅 垓 陔 戤",hai:"海 还 害 孩 亥 咳 骸 骇 氦 嗨 胲 醢",gan:"干 感 赶 敢 甘 肝 杆 赣 乾 柑 尴 竿 秆 橄 矸 淦 苷 擀 酐 绀 泔 坩 旰 疳 澉",gang:"港 钢 刚 岗 纲 冈 杠 缸 扛 肛 罡 戆 筻",jiang:"将 强 江 港 奖 讲 降 疆 蒋 姜 浆 匠 酱 僵 桨 绛 缰 犟 豇 礓 洚 茳 糨 耩",hang:"行 航 杭 巷 夯 吭 桁 沆 绗 颃",gong:"工 公 共 供 功 红 贡 攻 宫 巩 龚 恭 拱 躬 弓 汞 蚣 珙 觥 肱 廾",hong:"红 宏 洪 轰 虹 鸿 弘 哄 烘 泓 訇 蕻 闳 讧 荭 黉 薨",guang:"广 光 逛 潢 犷 胱 咣 桄",qiong:"穷 琼 穹 邛 茕 筇 跫 蛩 銎",gao:"高 告 搞 稿 膏 糕 镐 皋 羔 锆 杲 郜 睾 诰 藁 篙 缟 槁 槔",hao:"好 号 毫 豪 耗 浩 郝 皓 昊 皋 蒿 壕 灏 嚎 濠 蚝 貉 颢 嗥 薅 嚆",li:"理 力 利 立 里 李 历 例 离 励 礼 丽 黎 璃 厉 厘 粒 莉 梨 隶 栗 荔 沥 犁 漓 哩 狸 藜 罹 篱 鲤 砺 吏 澧 俐 骊 溧 砾 莅 锂 笠 蠡 蛎 痢 雳 俪 傈 醴 栎 郦 俚 枥 喱 逦 娌 鹂 戾 砬 唳 坜 疠 蜊 黧 猁 鬲 粝 蓠 呖 跞 疬 缡 鲡 鳢 嫠 詈 悝 苈 篥 轹",jia:"家 加 价 假 佳 架 甲 嘉 贾 驾 嫁 夹 稼 钾 挟 拮 迦 伽 颊 浃 枷 戛 荚 痂 颉 镓 笳 珈 岬 胛 袈 郏 葭 袷 瘕 铗 跏 蛱 恝 哿",luo:"落 罗 络 洛 逻 螺 锣 骆 萝 裸 漯 烙 摞 骡 咯 箩 珞 捋 荦 硌 雒 椤 镙 跞 瘰 泺 脶 猡 倮 蠃",ke:"可 科 克 客 刻 课 颗 渴 壳 柯 棵 呵 坷 恪 苛 咳 磕 珂 稞 瞌 溘 轲 窠 嗑 疴 蝌 岢 铪 颏 髁 蚵 缂 氪 骒 钶 锞",qia:"卡 恰 洽 掐 髂 袷 咭 葜",gei:"给",gen:"根 跟 亘 艮 哏 茛",hen:"很 狠 恨 痕 哏",gou:"构 购 够 句 沟 狗 钩 拘 勾 苟 垢 枸 篝 佝 媾 诟 岣 彀 缑 笱 鞲 觏 遘",kou:"口 扣 寇 叩 抠 佝 蔻 芤 眍 筘",gu:"股 古 顾 故 固 鼓 骨 估 谷 贾 姑 孤 雇 辜 菇 沽 咕 呱 锢 钴 箍 汩 梏 痼 崮 轱 鸪 牯 蛊 诂 毂 鹘 菰 罟 嘏 臌 觚 瞽 蛄 酤 牿 鲴",pai:"牌 排 派 拍 迫 徘 湃 俳 哌 蒎",gua:"括 挂 瓜 刮 寡 卦 呱 褂 剐 胍 诖 鸹 栝 呙",tou:"投 头 透 偷 愉 骰 亠",guai:"怪 拐 乖",kuai:"会 快 块 筷 脍 蒯 侩 浍 郐 蒉 狯 哙",guan:"关 管 观 馆 官 贯 冠 惯 灌 罐 莞 纶 棺 斡 矜 倌 鹳 鳏 盥 掼 涫",wan:"万 完 晚 湾 玩 碗 顽 挽 弯 蔓 丸 莞 皖 宛 婉 腕 蜿 惋 烷 琬 畹 豌 剜 纨 绾 脘 菀 芄 箢",ne:"呢 哪 呐 讷 疒",gui:"规 贵 归 轨 桂 柜 圭 鬼 硅 瑰 跪 龟 匮 闺 诡 癸 鳜 桧 皈 鲑 刽 晷 傀 眭 妫 炅 庋 簋 刿 宄 匦",jun:"军 均 俊 君 峻 菌 竣 钧 骏 龟 浚 隽 郡 筠 皲 麇 捃",jiong:"窘 炯 迥 炅 冂 扃",jue:"决 绝 角 觉 掘 崛 诀 獗 抉 爵 嚼 倔 厥 蕨 攫 珏 矍 蹶 谲 镢 鳜 噱 桷 噘 撅 橛 孓 觖 劂 爝",gun:"滚 棍 辊 衮 磙 鲧 绲 丨",hun:"婚 混 魂 浑 昏 棍 珲 荤 馄 诨 溷 阍",guo:"国 过 果 郭 锅 裹 帼 涡 椁 囗 蝈 虢 聒 埚 掴 猓 崞 蜾 呙 馘",hei:"黑 嘿 嗨",kan:"看 刊 勘 堪 坎 砍 侃 嵌 槛 瞰 阚 龛 戡 凵 莰",heng:"衡 横 恒 亨 哼 珩 桁 蘅",mo:"万 没 么 模 末 冒 莫 摩 墨 默 磨 摸 漠 脉 膜 魔 沫 陌 抹 寞 蘑 摹 蓦 馍 茉 嘿 谟 秣 蟆 貉 嫫 镆 殁 耱 嬷 麽 瘼 貊 貘",peng:"鹏 朋 彭 膨 蓬 碰 苹 棚 捧 亨 烹 篷 澎 抨 硼 怦 砰 嘭 蟛 堋",hou:"后 候 厚 侯 猴 喉 吼 逅 篌 糇 骺 後 鲎 瘊 堠",hua:"化 华 划 话 花 画 滑 哗 豁 骅 桦 猾 铧 砉",huai:"怀 坏 淮 徊 槐 踝",huan:"还 环 换 欢 患 缓 唤 焕 幻 痪 桓 寰 涣 宦 垸 洹 浣 豢 奂 郇 圜 獾 鲩 鬟 萑 逭 漶 锾 缳 擐",xun:"讯 训 迅 孙 寻 询 循 旬 巡 汛 勋 逊 熏 徇 浚 殉 驯 鲟 薰 荀 浔 洵 峋 埙 巽 郇 醺 恂 荨 窨 蕈 曛 獯",huang:"黄 荒 煌 皇 凰 慌 晃 潢 谎 惶 簧 璜 恍 幌 湟 蝗 磺 隍 徨 遑 肓 篁 鳇 蟥 癀",nai:"能 乃 奶 耐 奈 鼐 萘 氖 柰 佴 艿",luan:"乱 卵 滦 峦 鸾 栾 銮 挛 孪 脔 娈",qie:"切 且 契 窃 茄 砌 锲 怯 伽 惬 妾 趄 挈 郄 箧 慊",jian:"建 间 件 见 坚 检 健 监 减 简 艰 践 兼 鉴 键 渐 柬 剑 尖 肩 舰 荐 箭 浅 剪 俭 碱 茧 奸 歼 拣 捡 煎 贱 溅 槛 涧 堑 笺 谏 饯 锏 缄 睑 謇 蹇 腱 菅 翦 戬 毽 笕 犍 硷 鞯 牮 枧 湔 鲣 囝 裥 踺 搛 缣 鹣 蒹 谫 僭 戋 趼 楗",nan:"南 难 男 楠 喃 囡 赧 腩 囝 蝻",qian:"前 千 钱 签 潜 迁 欠 纤 牵 浅 遣 谦 乾 铅 歉 黔 谴 嵌 倩 钳 茜 虔 堑 钎 骞 阡 掮 钤 扦 芊 犍 荨 仟 芡 悭 缱 佥 愆 褰 凵 肷 岍 搴 箝 慊 椠",qiang:"强 抢 疆 墙 枪 腔 锵 呛 羌 蔷 襁 羟 跄 樯 戕 嫱 戗 炝 镪 锖 蜣",xiang:"向 项 相 想 乡 象 响 香 降 像 享 箱 羊 祥 湘 详 橡 巷 翔 襄 厢 镶 飨 饷 缃 骧 芗 庠 鲞 葙 蟓",jiao:"教 交 较 校 角 觉 叫 脚 缴 胶 轿 郊 焦 骄 浇 椒 礁 佼 蕉 娇 矫 搅 绞 酵 剿 嚼 饺 窖 跤 蛟 侥 狡 姣 皎 茭 峤 铰 醮 鲛 湫 徼 鹪 僬 噍 艽 挢 敫",zhuo:"着 著 缴 桌 卓 捉 琢 灼 浊 酌 拙 茁 涿 镯 淖 啄 濯 焯 倬 擢 斫 棹 诼 浞 禚",qiao:"桥 乔 侨 巧 悄 敲 俏 壳 雀 瞧 翘 窍 峭 锹 撬 荞 跷 樵 憔 鞘 橇 峤 诮 谯 愀 鞒 硗 劁 缲",xiao:"小 效 销 消 校 晓 笑 肖 削 孝 萧 俏 潇 硝 宵 啸 嚣 霄 淆 哮 筱 逍 姣 箫 骁 枭 哓 绡 蛸 崤 枵 魈",si:"司 四 思 斯 食 私 死 似 丝 饲 寺 肆 撕 泗 伺 嗣 祀 厮 驷 嘶 锶 俟 巳 蛳 咝 耜 笥 纟 糸 鸶 缌 澌 姒 汜 厶 兕",kai:"开 凯 慨 岂 楷 恺 揩 锴 铠 忾 垲 剀 锎 蒈",jin:"进 金 今 近 仅 紧 尽 津 斤 禁 锦 劲 晋 谨 筋 巾 浸 襟 靳 瑾 烬 缙 钅 矜 觐 堇 馑 荩 噤 廑 妗 槿 赆 衿 卺",qin:"亲 勤 侵 秦 钦 琴 禽 芹 沁 寝 擒 覃 噙 矜 嗪 揿 溱 芩 衾 廑 锓 吣 檎 螓",jing:"经 京 精 境 竞 景 警 竟 井 惊 径 静 劲 敬 净 镜 睛 晶 颈 荆 兢 靖 泾 憬 鲸 茎 腈 菁 胫 阱 旌 粳 靓 痉 箐 儆 迳 婧 肼 刭 弪 獍",ying:"应 营 影 英 景 迎 映 硬 盈 赢 颖 婴 鹰 荧 莹 樱 瑛 蝇 萦 莺 颍 膺 缨 瀛 楹 罂 荥 萤 鹦 滢 蓥 郢 茔 嘤 璎 嬴 瘿 媵 撄 潆",jiu:"就 究 九 酒 久 救 旧 纠 舅 灸 疚 揪 咎 韭 玖 臼 柩 赳 鸠 鹫 厩 啾 阄 桕 僦 鬏",zui:"最 罪 嘴 醉 咀 蕞 觜",juan:"卷 捐 圈 眷 娟 倦 绢 隽 镌 涓 鹃 鄄 蠲 狷 锩 桊",suan:"算 酸 蒜 狻",yun:"员 运 云 允 孕 蕴 韵 酝 耘 晕 匀 芸 陨 纭 郧 筠 恽 韫 郓 氲 殒 愠 昀 菀 狁",qun:"群 裙 逡 麇",ka:"卡 喀 咖 咔 咯 佧 胩",kang:"康 抗 扛 慷 炕 亢 糠 伉 钪 闶",keng:"坑 铿 吭",kao:"考 靠 烤 拷 铐 栲 尻 犒",ken:"肯 垦 恳 啃 龈 裉",yin:"因 引 银 印 音 饮 阴 隐 姻 殷 淫 尹 荫 吟 瘾 寅 茵 圻 垠 鄞 湮 蚓 氤 胤 龈 窨 喑 铟 洇 狺 夤 廴 吲 霪 茚 堙",kong:"空 控 孔 恐 倥 崆 箜",ku:"苦 库 哭 酷 裤 枯 窟 挎 骷 堀 绔 刳 喾",kua:"跨 夸 垮 挎 胯 侉",kui:"亏 奎 愧 魁 馈 溃 匮 葵 窥 盔 逵 睽 馗 聩 喟 夔 篑 岿 喹 揆 隗 傀 暌 跬 蒉 愦 悝 蝰",kuan:"款 宽 髋",kuang:"况 矿 框 狂 旷 眶 匡 筐 邝 圹 哐 贶 夼 诳 诓 纩",que:"确 却 缺 雀 鹊 阙 瘸 榷 炔 阕 悫",kun:"困 昆 坤 捆 琨 锟 鲲 醌 髡 悃 阃",kuo:"扩 括 阔 廓 蛞",la:"拉 落 垃 腊 啦 辣 蜡 喇 剌 旯 砬 邋 瘌",lai:"来 莱 赖 睐 徕 籁 涞 赉 濑 癞 崃 疠 铼",lan:"兰 览 蓝 篮 栏 岚 烂 滥 缆 揽 澜 拦 懒 榄 斓 婪 阑 褴 罱 啉 谰 镧 漤",lin:"林 临 邻 赁 琳 磷 淋 麟 霖 鳞 凛 拎 遴 蔺 吝 粼 嶙 躏 廪 檩 啉 辚 膦 瞵 懔",lang:"浪 朗 郎 廊 狼 琅 榔 螂 阆 锒 莨 啷 蒗 稂",liang:"量 两 粮 良 辆 亮 梁 凉 谅 粱 晾 靓 踉 莨 椋 魉 墚",lao:"老 劳 落 络 牢 捞 涝 烙 姥 佬 崂 唠 酪 潦 痨 醪 铑 铹 栳 耢",mu:"目 模 木 亩 幕 母 牧 莫 穆 姆 墓 慕 牟 牡 募 睦 缪 沐 暮 拇 姥 钼 苜 仫 毪 坶",le:"了 乐 勒 肋 叻 鳓 嘞 仂 泐",lei:"类 累 雷 勒 泪 蕾 垒 磊 擂 镭 肋 羸 耒 儡 嫘 缧 酹 嘞 诔 檑",sui:"随 岁 虽 碎 尿 隧 遂 髓 穗 绥 隋 邃 睢 祟 濉 燧 谇 眭 荽",lie:"列 烈 劣 裂 猎 冽 咧 趔 洌 鬣 埒 捩 躐",leng:"冷 愣 棱 楞 塄",ling:"领 令 另 零 灵 龄 陵 岭 凌 玲 铃 菱 棱 伶 羚 苓 聆 翎 泠 瓴 囹 绫 呤 棂 蛉 酃 鲮 柃",lia:"俩",liao:"了 料 疗 辽 廖 聊 寥 缪 僚 燎 缭 撂 撩 嘹 潦 镣 寮 蓼 獠 钌 尥 鹩",liu:"流 刘 六 留 柳 瘤 硫 溜 碌 浏 榴 琉 馏 遛 鎏 骝 绺 镏 旒 熘 鹨 锍",lun:"论 轮 伦 仑 纶 沦 抡 囵",lv:"率 律 旅 绿 虑 履 吕 铝 屡 氯 缕 滤 侣 驴 榈 闾 偻 褛 捋 膂 稆",lou:"楼 露 漏 陋 娄 搂 篓 喽 镂 偻 瘘 髅 耧 蝼 嵝 蒌",mao:"贸 毛 矛 冒 貌 茂 茅 帽 猫 髦 锚 懋 袤 牦 卯 铆 耄 峁 瑁 蟊 茆 蝥 旄 泖 昴 瞀",long:"龙 隆 弄 垄 笼 拢 聋 陇 胧 珑 窿 茏 咙 砻 垅 泷 栊 癃",nong:"农 浓 弄 脓 侬 哝",shuang:"双 爽 霜 孀 泷",shu:"术 书 数 属 树 输 束 述 署 朱 熟 殊 蔬 舒 疏 鼠 淑 叔 暑 枢 墅 俞 曙 抒 竖 蜀 薯 梳 戍 恕 孰 沭 赎 庶 漱 塾 倏 澍 纾 姝 菽 黍 腧 秫 毹 殳 疋 摅",shuai:"率 衰 帅 摔 甩 蟀",lve:"略 掠 锊",ma:"么 马 吗 摩 麻 码 妈 玛 嘛 骂 抹 蚂 唛 蟆 犸 杩",me:"么 麽",mai:"买 卖 麦 迈 脉 埋 霾 荬 劢",man:"满 慢 曼 漫 埋 蔓 瞒 蛮 鳗 馒 幔 谩 螨 熳 缦 镘 颟 墁 鞔",mi:"米 密 秘 迷 弥 蜜 谜 觅 靡 泌 眯 麋 猕 谧 咪 糜 宓 汨 醚 嘧 弭 脒 冖 幂 祢 縻 蘼 芈 糸 敉",men:"们 门 闷 瞒 汶 扪 焖 懑 鞔 钔",mang:"忙 盲 茫 芒 氓 莽 蟒 邙 硭 漭",meng:"蒙 盟 梦 猛 孟 萌 氓 朦 锰 檬 勐 懵 蟒 蜢 虻 黾 蠓 艨 甍 艋 瞢 礞",miao:"苗 秒 妙 描 庙 瞄 缪 渺 淼 藐 缈 邈 鹋 杪 眇 喵",mou:"某 谋 牟 缪 眸 哞 鍪 蛑 侔 厶",miu:"缪 谬",mei:"美 没 每 煤 梅 媒 枚 妹 眉 魅 霉 昧 媚 玫 酶 镁 湄 寐 莓 袂 楣 糜 嵋 镅 浼 猸 鹛",wen:"文 问 闻 稳 温 纹 吻 蚊 雯 紊 瘟 汶 韫 刎 璺 玟 阌",mie:"灭 蔑 篾 乜 咩 蠛",ming:"明 名 命 鸣 铭 冥 茗 溟 酩 瞑 螟 暝",na:"内 南 那 纳 拿 哪 娜 钠 呐 捺 衲 镎 肭",nei:"内 那 哪 馁",nuo:"难 诺 挪 娜 糯 懦 傩 喏 搦 锘",ruo:"若 弱 偌 箬",nang:"囊 馕 囔 曩 攮",nao:"脑 闹 恼 挠 瑙 淖 孬 垴 铙 桡 呶 硇 猱 蛲",ni:"你 尼 呢 泥 疑 拟 逆 倪 妮 腻 匿 霓 溺 旎 昵 坭 铌 鲵 伲 怩 睨 猊",nen:"嫩 恁",neng:"能",nin:"您 恁",niao:"鸟 尿 溺 袅 脲 茑 嬲",nie:"摄 聂 捏 涅 镍 孽 捻 蘖 啮 蹑 嗫 臬 镊 颞 乜 陧",niang:"娘 酿",ning:"宁 凝 拧 泞 柠 咛 狞 佞 聍 甯",nu:"努 怒 奴 弩 驽 帑 孥 胬",nv:"女 钕 衄 恧",ru:"入 如 女 乳 儒 辱 汝 茹 褥 孺 濡 蠕 嚅 缛 溽 铷 洳 薷 襦 颥 蓐",nuan:"暖",nve:"虐 疟",re:"热 若 惹 喏",ou:"区 欧 偶 殴 呕 禺 藕 讴 鸥 瓯 沤 耦 怄",pao:"跑 炮 泡 抛 刨 袍 咆 疱 庖 狍 匏 脬",pou:"剖 掊 裒",pen:"喷 盆 湓",pie:"瞥 撇 苤 氕 丿",pin:"品 贫 聘 频 拼 拚 颦 姘 嫔 榀 牝",se:"色 塞 瑟 涩 啬 穑 铯 槭",qing:"情 青 清 请 亲 轻 庆 倾 顷 卿 晴 氢 擎 氰 罄 磬 蜻 箐 鲭 綮 苘 黥 圊 檠 謦",zan:"赞 暂 攒 堑 昝 簪 糌 瓒 錾 趱 拶",shao:"少 绍 召 烧 稍 邵 哨 韶 捎 勺 梢 鞘 芍 苕 劭 艄 筲 杓 潲",sao:"扫 骚 嫂 梢 缫 搔 瘙 臊 埽 缲 鳋",sha:"沙 厦 杀 纱 砂 啥 莎 刹 杉 傻 煞 鲨 霎 嗄 痧 裟 挲 铩 唼 歃",xuan:"县 选 宣 券 旋 悬 轩 喧 玄 绚 渲 璇 炫 萱 癣 漩 眩 暄 煊 铉 楦 泫 谖 痃 碹 揎 镟 儇",ran:"然 染 燃 冉 苒 髯 蚺",rang:"让 壤 攘 嚷 瓤 穰 禳",rao:"绕 扰 饶 娆 桡 荛",reng:"仍 扔",ri:"日",rou:"肉 柔 揉 糅 鞣 蹂",ruan:"软 阮 朊",run:"润 闰",sa:"萨 洒 撒 飒 卅 仨 脎",suo:"所 些 索 缩 锁 莎 梭 琐 嗦 唆 唢 娑 蓑 羧 挲 桫 嗍 睃",sai:"思 赛 塞 腮 噻 鳃",shui:"说 水 税 谁 睡 氵",sang:"桑 丧 嗓 搡 颡 磉",sen:"森",seng:"僧",shai:"筛 晒",shang:"上 商 尚 伤 赏 汤 裳 墒 晌 垧 觞 殇 熵 绱",xing:"行 省 星 腥 猩 惺 兴 刑 型 形 邢 饧 醒 幸 杏 性 姓 陉 荇 荥 擤 悻 硎",shou:"收 手 受 首 售 授 守 寿 瘦 兽 狩 绶 艏 扌",shuo:"说 数 硕 烁 朔 铄 妁 槊 蒴 搠",su:"速 素 苏 诉 缩 塑 肃 俗 宿 粟 溯 酥 夙 愫 簌 稣 僳 谡 涑 蔌 嗉 觫",shua:"刷 耍 唰",shuan:"栓 拴 涮 闩",shun:"顺 瞬 舜 吮",song:"送 松 宋 讼 颂 耸 诵 嵩 淞 怂 悚 崧 凇 忪 竦 菘",sou:"艘 搜 擞 嗽 嗖 叟 馊 薮 飕 嗾 溲 锼 螋 瞍",sun:"损 孙 笋 荪 榫 隼 狲 飧",teng:"腾 疼 藤 滕 誊",tie:"铁 贴 帖 餮 萜",tu:"土 突 图 途 徒 涂 吐 屠 兔 秃 凸 荼 钍 菟 堍 酴",wai:"外 歪 崴",wang:"王 望 往 网 忘 亡 旺 汪 枉 妄 惘 罔 辋 魍",weng:"翁 嗡 瓮 蓊 蕹",zhua:"抓 挝 爪",yang:"样 养 央 阳 洋 扬 杨 羊 详 氧 仰 秧 痒 漾 疡 泱 殃 恙 鸯 徉 佯 怏 炀 烊 鞅 蛘",xiong:"雄 兄 熊 胸 凶 匈 汹 芎",yo:"哟 唷",yong:"用 永 拥 勇 涌 泳 庸 俑 踊 佣 咏 雍 甬 镛 臃 邕 蛹 恿 慵 壅 痈 鳙 墉 饔 喁",za:"杂 扎 咱 砸 咋 匝 咂 拶",zai:"在 再 灾 载 栽 仔 宰 哉 崽 甾",zao:"造 早 遭 枣 噪 灶 燥 糟 凿 躁 藻 皂 澡 蚤 唣",zei:"贼",zen:"怎 谮",zeng:"增 曾 综 赠 憎 锃 甑 罾 缯",zhei:"这",zou:"走 邹 奏 揍 诹 驺 陬 楱 鄹 鲰",zhuai:"转 拽",zun:"尊 遵 鳟 樽 撙",dia:"嗲",nou:"耨"}},ne={layout:{default:["1 2 3 4 5 6 7 8 9 0 - ^ ¥ {bksp}","{tab} た て い す か ん な に ら せ ゛ ゜ む","{lock} ち と し は き く ま の り れ け {enter}","{shift} つ さ そ ひ こ み も ね る め {shift}",".com @ {space}"],shift:[`! " # $ % & ' ( ) ́ = ~ | {bksp}`,"{tab} た て ぃ す か ん な に ら せ 「 」 む","{lock} ち と し は き く ま の り れ け {enter}","{shift} っ さ そ ひ こ み も 、 。 ・ {shift}",".com @ {space}"]}};var Jt={exports:{}};/*! +import{j as Pt}from"./jsx-runtime-BTCK_S7S.js";import{r as jt}from"./index-CBqU2yxZ.js";import{a as Tt}from"./chunk-WFFRPTHA-B2vgThZf.js";import{d as Wt}from"./index-CAen7T_W.js";import{E as Xt,A as Qt}from"./english-BQymWagN.js";import{c as Zt,g as te}from"./_commonjsHelpers-BosuxZz1.js";import"./preview-errors-CzpZmerH.js";import"./index-CKJfshIT.js";import"./v4-D8aEg3BZ.js";import"./mapValues-LQZI9uWW.js";import"./pickBy-Us6u5-To.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-DCkRKKtx.js";import"./index-Cw1G72V2.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./debounce-BkgZrIul.js";const ee={layout:{default:["` 1 2 3 4 5 6 7 8 9 0 - = {bksp}","{tab} q w e r t y u i o p [ ] \\","{lock} a s d f g h j k l ; ' {enter}","{shift} z x c v b n m . - / {shift}",".com @ {space}"],shift:["~ ! @ # $ % ^ & * ) ( _ + {bksp}","{tab} Q W E R T Y U I O P { } |",'{lock} A S D F G H J K L : " {enter}',"{shift} Z X C V B N M < > ? {shift}",".com @ {space}"]},layoutCandidates:{a:"阿 啊 呵 腌 嗄 吖 锕",e:"额 阿 俄 恶 鹅 遏 鄂 厄 饿 峨 扼 娥 鳄 哦 蛾 噩 愕 讹 锷 垩 婀 鹗 萼 谔 莪 腭 锇 颚 呃 阏 屙 苊 轭",ai:"爱 埃 艾 碍 癌 哀 挨 矮 隘 蔼 唉 皑 哎 霭 捱 暧 嫒 嗳 瑷 嗌 锿 砹",ei:"诶",xi:"系 西 席 息 希 习 吸 喜 细 析 戏 洗 悉 锡 溪 惜 稀 袭 夕 洒 晰 昔 牺 腊 烯 熙 媳 栖 膝 隙 犀 蹊 硒 兮 熄 曦 禧 嬉 玺 奚 汐 徙 羲 铣 淅 嘻 歙 熹 矽 蟋 郗 唏 皙 隰 樨 浠 忾 蜥 檄 郄 翕 阋 鳃 舾 屣 葸 螅 咭 粞 觋 欷 僖 醯 鼷 裼 穸 饩 舄 禊 诶 菥 蓰",yi:"一 以 已 意 议 义 益 亿 易 医 艺 食 依 移 衣 异 伊 仪 宜 射 遗 疑 毅 谊 亦 疫 役 忆 抑 尾 乙 译 翼 蛇 溢 椅 沂 泄 逸 蚁 夷 邑 怡 绎 彝 裔 姨 熠 贻 矣 屹 颐 倚 诣 胰 奕 翌 疙 弈 轶 蛾 驿 壹 猗 臆 弋 铱 旖 漪 迤 佚 翊 诒 怿 痍 懿 饴 峄 揖 眙 镒 仡 黟 肄 咿 翳 挹 缢 呓 刈 咦 嶷 羿 钇 殪 荑 薏 蜴 镱 噫 癔 苡 悒 嗌 瘗 衤 佾 埸 圯 舣 酏 劓",an:"安 案 按 岸 暗 鞍 氨 俺 胺 铵 谙 庵 黯 鹌 桉 埯 犴 揞 厂 广",han:"厂 汉 韩 含 旱 寒 汗 涵 函 喊 憾 罕 焊 翰 邯 撼 瀚 憨 捍 酣 悍 鼾 邗 颔 蚶 晗 菡 旰 顸 犴 焓 撖",ang:"昂 仰 盎 肮",ao:"奥 澳 傲 熬 凹 鳌 敖 遨 鏖 袄 坳 翱 嗷 拗 懊 岙 螯 骜 獒 鏊 艹 媪 廒 聱",wa:"瓦 挖 娃 洼 袜 蛙 凹 哇 佤 娲 呙 腽",yu:"于 与 育 余 预 域 予 遇 奥 语 誉 玉 鱼 雨 渔 裕 愈 娱 欲 吁 舆 宇 羽 逾 豫 郁 寓 吾 狱 喻 御 浴 愉 禹 俞 邪 榆 愚 渝 尉 淤 虞 屿 峪 粥 驭 瑜 禺 毓 钰 隅 芋 熨 瘀 迂 煜 昱 汩 於 臾 盂 聿 竽 萸 妪 腴 圄 谕 觎 揄 龉 谀 俣 馀 庾 妤 瘐 鬻 欤 鹬 阈 嵛 雩 鹆 圉 蜮 伛 纡 窬 窳 饫 蓣 狳 肀 舁 蝓 燠",niu:"牛 纽 扭 钮 拗 妞 忸 狃",o:"哦 噢 喔",ba:"把 八 巴 拔 伯 吧 坝 爸 霸 罢 芭 跋 扒 叭 靶 疤 笆 耙 鲅 粑 岜 灞 钯 捌 菝 魃 茇",pa:"怕 帕 爬 扒 趴 琶 啪 葩 耙 杷 钯 筢",pi:"被 批 副 否 皮 坏 辟 啤 匹 披 疲 罢 僻 毗 坯 脾 譬 劈 媲 屁 琵 邳 裨 痞 癖 陂 丕 枇 噼 霹 吡 纰 砒 铍 淠 郫 埤 濞 睥 芘 蚍 圮 鼙 罴 蜱 疋 貔 仳 庀 擗 甓 陴",bi:"比 必 币 笔 毕 秘 避 闭 佛 辟 壁 弊 彼 逼 碧 鼻 臂 蔽 拂 泌 璧 庇 痹 毙 弼 匕 鄙 陛 裨 贲 敝 蓖 吡 篦 纰 俾 铋 毖 筚 荸 薜 婢 哔 跸 濞 秕 荜 愎 睥 妣 芘 箅 髀 畀 滗 狴 萆 嬖 襞 舭",bai:"百 白 败 摆 伯 拜 柏 佰 掰 呗 擘 捭 稗",bo:"波 博 播 勃 拨 薄 佛 伯 玻 搏 柏 泊 舶 剥 渤 卜 驳 簿 脖 膊 簸 菠 礴 箔 铂 亳 钵 帛 擘 饽 跛 钹 趵 檗 啵 鹁 擗 踣",bei:"北 被 备 倍 背 杯 勃 贝 辈 悲 碑 臂 卑 悖 惫 蓓 陂 钡 狈 呗 焙 碚 褙 庳 鞴 孛 鹎 邶 鐾",ban:"办 版 半 班 般 板 颁 伴 搬 斑 扮 拌 扳 瓣 坂 阪 绊 钣 瘢 舨 癍",pan:"判 盘 番 潘 攀 盼 拚 畔 胖 叛 拌 蹒 磐 爿 蟠 泮 袢 襻 丬",bin:"份 宾 频 滨 斌 彬 濒 殡 缤 鬓 槟 摈 膑 玢 镔 豳 髌 傧",bang:"帮 邦 彭 旁 榜 棒 膀 镑 绑 傍 磅 蚌 谤 梆 浜 蒡",pang:"旁 庞 乓 磅 螃 彷 滂 逄 耪",beng:"泵 崩 蚌 蹦 迸 绷 甭 嘣 甏 堋",bao:"报 保 包 宝 暴 胞 薄 爆 炮 饱 抱 堡 剥 鲍 曝 葆 瀑 豹 刨 褒 雹 孢 苞 煲 褓 趵 鸨 龅 勹",bu:"不 部 步 布 补 捕 堡 埔 卜 埠 簿 哺 怖 钚 卟 瓿 逋 晡 醭 钸",pu:"普 暴 铺 浦 朴 堡 葡 谱 埔 扑 仆 蒲 曝 瀑 溥 莆 圃 璞 濮 菩 蹼 匍 噗 氆 攵 镨 攴 镤",mian:"面 棉 免 绵 缅 勉 眠 冕 娩 腼 渑 湎 沔 黾 宀 眄",po:"破 繁 坡 迫 颇 朴 泊 婆 泼 魄 粕 鄱 珀 陂 叵 笸 泺 皤 钋 钷",fan:"反 范 犯 繁 饭 泛 翻 凡 返 番 贩 烦 拚 帆 樊 藩 矾 梵 蕃 钒 幡 畈 蘩 蹯 燔",fu:"府 服 副 负 富 复 福 夫 妇 幅 付 扶 父 符 附 腐 赴 佛 浮 覆 辅 傅 伏 抚 赋 辐 腹 弗 肤 阜 袱 缚 甫 氟 斧 孚 敷 俯 拂 俘 咐 腑 孵 芙 涪 釜 脯 茯 馥 宓 绂 讣 呋 罘 麸 蝠 匐 芾 蜉 跗 凫 滏 蝮 驸 绋 蚨 砩 桴 赙 菔 呒 趺 苻 拊 阝 鲋 怫 稃 郛 莩 幞 祓 艴 黻 黼 鳆",ben:"本 体 奔 苯 笨 夯 贲 锛 畚 坌",feng:"风 丰 封 峰 奉 凤 锋 冯 逢 缝 蜂 枫 疯 讽 烽 俸 沣 酆 砜 葑 唪",bian:"变 便 边 编 遍 辩 鞭 辨 贬 匾 扁 卞 汴 辫 砭 苄 蝙 鳊 弁 窆 笾 煸 褊 碥 忭 缏",pian:"便 片 篇 偏 骗 翩 扁 骈 胼 蹁 谝 犏 缏",zhen:"镇 真 针 圳 振 震 珍 阵 诊 填 侦 臻 贞 枕 桢 赈 祯 帧 甄 斟 缜 箴 疹 砧 榛 鸩 轸 稹 溱 蓁 胗 椹 朕 畛 浈",biao:"表 标 彪 镖 裱 飚 膘 飙 镳 婊 骠 飑 杓 髟 鳔 灬 瘭",piao:"票 朴 漂 飘 嫖 瓢 剽 缥 殍 瞟 骠 嘌 莩 螵",huo:"和 活 或 货 获 火 伙 惑 霍 祸 豁 嚯 藿 锪 蠖 钬 耠 镬 夥 灬 劐 攉",bie:"别 鳖 憋 瘪 蹩",min:"民 敏 闽 闵 皿 泯 岷 悯 珉 抿 黾 缗 玟 愍 苠 鳘",fen:"分 份 纷 奋 粉 氛 芬 愤 粪 坟 汾 焚 酚 吩 忿 棼 玢 鼢 瀵 偾 鲼",bing:"并 病 兵 冰 屏 饼 炳 秉 丙 摒 柄 槟 禀 枋 邴 冫",geng:"更 耕 颈 庚 耿 梗 埂 羹 哽 赓 绠 鲠",fang:"方 放 房 防 访 纺 芳 仿 坊 妨 肪 邡 舫 彷 枋 鲂 匚 钫",xian:"现 先 县 见 线 限 显 险 献 鲜 洗 宪 纤 陷 闲 贤 仙 衔 掀 咸 嫌 掺 羡 弦 腺 痫 娴 舷 馅 酰 铣 冼 涎 暹 籼 锨 苋 蚬 跹 岘 藓 燹 鹇 氙 莶 霰 跣 猃 彡 祆 筅",fou:"不 否 缶",ca:"拆 擦 嚓 礤",cha:"查 察 差 茶 插 叉 刹 茬 楂 岔 诧 碴 嚓 喳 姹 杈 汊 衩 搽 槎 镲 苴 檫 馇 锸 猹",cai:"才 采 财 材 菜 彩 裁 蔡 猜 踩 睬",can:"参 残 餐 灿 惨 蚕 掺 璨 惭 粲 孱 骖 黪",shen:"信 深 参 身 神 什 审 申 甚 沈 伸 慎 渗 肾 绅 莘 呻 婶 娠 砷 蜃 哂 椹 葚 吲 糁 渖 诜 谂 矧 胂",cen:"参 岑 涔",san:"三 参 散 伞 叁 糁 馓 毵",cang:"藏 仓 苍 沧 舱 臧 伧",zang:"藏 脏 葬 赃 臧 奘 驵",chen:"称 陈 沈 沉 晨 琛 臣 尘 辰 衬 趁 忱 郴 宸 谌 碜 嗔 抻 榇 伧 谶 龀 肜",cao:"草 操 曹 槽 糙 嘈 漕 螬 艚 屮",ce:"策 测 册 侧 厕 栅 恻",ze:"责 则 泽 择 侧 咋 啧 仄 箦 赜 笮 舴 昃 迮 帻",zhai:"债 择 齐 宅 寨 侧 摘 窄 斋 祭 翟 砦 瘵 哜",dao:"到 道 导 岛 倒 刀 盗 稻 蹈 悼 捣 叨 祷 焘 氘 纛 刂 帱 忉",ceng:"层 曾 蹭 噌",zha:"查 扎 炸 诈 闸 渣 咋 乍 榨 楂 札 栅 眨 咤 柞 喳 喋 铡 蚱 吒 怍 砟 揸 痄 哳 齄",chai:"差 拆 柴 钗 豺 侪 虿 瘥",ci:"次 此 差 词 辞 刺 瓷 磁 兹 慈 茨 赐 祠 伺 雌 疵 鹚 糍 呲 粢",zi:"资 自 子 字 齐 咨 滋 仔 姿 紫 兹 孜 淄 籽 梓 鲻 渍 姊 吱 秭 恣 甾 孳 訾 滓 锱 辎 趑 龇 赀 眦 缁 呲 笫 谘 嵫 髭 茈 粢 觜 耔",cuo:"措 错 磋 挫 搓 撮 蹉 锉 厝 嵯 痤 矬 瘥 脞 鹾",chan:"产 单 阐 崭 缠 掺 禅 颤 铲 蝉 搀 潺 蟾 馋 忏 婵 孱 觇 廛 谄 谗 澶 骣 羼 躔 蒇 冁",shan:"山 单 善 陕 闪 衫 擅 汕 扇 掺 珊 禅 删 膳 缮 赡 鄯 栅 煽 姗 跚 鳝 嬗 潸 讪 舢 苫 疝 掸 膻 钐 剡 蟮 芟 埏 彡 骟",zhan:"展 战 占 站 崭 粘 湛 沾 瞻 颤 詹 斩 盏 辗 绽 毡 栈 蘸 旃 谵 搌",xin:"新 心 信 辛 欣 薪 馨 鑫 芯 锌 忻 莘 昕 衅 歆 囟 忄 镡",lian:"联 连 练 廉 炼 脸 莲 恋 链 帘 怜 涟 敛 琏 镰 濂 楝 鲢 殓 潋 裢 裣 臁 奁 莶 蠊 蔹",chang:"场 长 厂 常 偿 昌 唱 畅 倡 尝 肠 敞 倘 猖 娼 淌 裳 徜 昶 怅 嫦 菖 鲳 阊 伥 苌 氅 惝 鬯",zhang:"长 张 章 障 涨 掌 帐 胀 彰 丈 仗 漳 樟 账 杖 璋 嶂 仉 瘴 蟑 獐 幛 鄣 嫜",chao:"超 朝 潮 炒 钞 抄 巢 吵 剿 绰 嘲 晁 焯 耖 怊",zhao:"着 照 招 找 召 朝 赵 兆 昭 肇 罩 钊 沼 嘲 爪 诏 濯 啁 棹 笊",zhou:"调 州 周 洲 舟 骤 轴 昼 宙 粥 皱 肘 咒 帚 胄 绉 纣 妯 啁 诌 繇 碡 籀 酎 荮",che:"车 彻 撤 尺 扯 澈 掣 坼 砗 屮",ju:"车 局 据 具 举 且 居 剧 巨 聚 渠 距 句 拒 俱 柜 菊 拘 炬 桔 惧 矩 鞠 驹 锯 踞 咀 瞿 枸 掬 沮 莒 橘 飓 疽 钜 趄 踽 遽 琚 龃 椐 苣 裾 榘 狙 倨 榉 苴 讵 雎 锔 窭 鞫 犋 屦 醵",cheng:"成 程 城 承 称 盛 抢 乘 诚 呈 净 惩 撑 澄 秤 橙 骋 逞 瞠 丞 晟 铛 埕 塍 蛏 柽 铖 酲 裎 枨",rong:"容 荣 融 绒 溶 蓉 熔 戎 榕 茸 冗 嵘 肜 狨 蝾",sheng:"生 声 升 胜 盛 乘 圣 剩 牲 甸 省 绳 笙 甥 嵊 晟 渑 眚",deng:"等 登 邓 灯 澄 凳 瞪 蹬 噔 磴 嶝 镫 簦 戥",zhi:"制 之 治 质 职 只 志 至 指 织 支 值 知 识 直 致 执 置 止 植 纸 拓 智 殖 秩 旨 址 滞 氏 枝 芝 脂 帜 汁 肢 挚 稚 酯 掷 峙 炙 栉 侄 芷 窒 咫 吱 趾 痔 蜘 郅 桎 雉 祉 郦 陟 痣 蛭 帙 枳 踯 徵 胝 栀 贽 祗 豸 鸷 摭 轵 卮 轾 彘 觯 絷 跖 埴 夂 黹 忮 骘 膣 踬",zheng:"政 正 证 争 整 征 郑 丁 症 挣 蒸 睁 铮 筝 拯 峥 怔 诤 狰 徵 钲",tang:"堂 唐 糖 汤 塘 躺 趟 倘 棠 烫 淌 膛 搪 镗 傥 螳 溏 帑 羰 樘 醣 螗 耥 铴 瑭",chi:"持 吃 池 迟 赤 驰 尺 斥 齿 翅 匙 痴 耻 炽 侈 弛 叱 啻 坻 眙 嗤 墀 哧 茌 豉 敕 笞 饬 踟 蚩 柢 媸 魑 篪 褫 彳 鸱 螭 瘛 眵 傺",shi:"是 时 实 事 市 十 使 世 施 式 势 视 识 师 史 示 石 食 始 士 失 适 试 什 泽 室 似 诗 饰 殖 释 驶 氏 硕 逝 湿 蚀 狮 誓 拾 尸 匙 仕 柿 矢 峙 侍 噬 嗜 栅 拭 嘘 屎 恃 轼 虱 耆 舐 莳 铈 谥 炻 豕 鲥 饣 螫 酾 筮 埘 弑 礻 蓍 鲺 贳",qi:"企 其 起 期 气 七 器 汽 奇 齐 启 旗 棋 妻 弃 揭 枝 歧 欺 骑 契 迄 亟 漆 戚 岂 稽 岐 琦 栖 缉 琪 泣 乞 砌 祁 崎 绮 祺 祈 凄 淇 杞 脐 麒 圻 憩 芪 伎 俟 畦 耆 葺 沏 萋 骐 鳍 綦 讫 蕲 屺 颀 亓 碛 柒 啐 汔 綮 萁 嘁 蛴 槭 欹 芑 桤 丌 蜞",chuai:"揣 踹 啜 搋 膪",tuo:"托 脱 拓 拖 妥 驼 陀 沱 鸵 驮 唾 椭 坨 佗 砣 跎 庹 柁 橐 乇 铊 沲 酡 鼍 箨 柝",duo:"多 度 夺 朵 躲 铎 隋 咄 堕 舵 垛 惰 哆 踱 跺 掇 剁 柁 缍 沲 裰 哚 隳",xue:"学 血 雪 削 薛 穴 靴 谑 噱 鳕 踅 泶 彐",chong:"重 种 充 冲 涌 崇 虫 宠 忡 憧 舂 茺 铳 艟",chou:"筹 抽 绸 酬 愁 丑 臭 仇 畴 稠 瞅 踌 惆 俦 瘳 雠 帱",qiu:"求 球 秋 丘 邱 仇 酋 裘 龟 囚 遒 鳅 虬 蚯 泅 楸 湫 犰 逑 巯 艽 俅 蝤 赇 鼽 糗",xiu:"修 秀 休 宿 袖 绣 臭 朽 锈 羞 嗅 岫 溴 庥 馐 咻 髹 鸺 貅",chu:"出 处 础 初 助 除 储 畜 触 楚 厨 雏 矗 橱 锄 滁 躇 怵 绌 搐 刍 蜍 黜 杵 蹰 亍 樗 憷 楮",tuan:"团 揣 湍 疃 抟 彖",zhui:"追 坠 缀 揣 椎 锥 赘 惴 隹 骓 缒",chuan:"传 川 船 穿 串 喘 椽 舛 钏 遄 氚 巛 舡",zhuan:"专 转 传 赚 砖 撰 篆 馔 啭 颛",yuan:"元 员 院 原 源 远 愿 园 援 圆 缘 袁 怨 渊 苑 宛 冤 媛 猿 垣 沅 塬 垸 鸳 辕 鸢 瑗 圜 爰 芫 鼋 橼 螈 眢 箢 掾",cuan:"窜 攒 篡 蹿 撺 爨 汆 镩",chuang:"创 床 窗 闯 幢 疮 怆",zhuang:"装 状 庄 壮 撞 妆 幢 桩 奘 僮 戆",chui:"吹 垂 锤 炊 椎 陲 槌 捶 棰",chun:"春 纯 醇 淳 唇 椿 蠢 鹑 朐 莼 肫 蝽",zhun:"准 屯 淳 谆 肫 窀",cu:"促 趋 趣 粗 簇 醋 卒 蹴 猝 蹙 蔟 殂 徂",dun:"吨 顿 盾 敦 蹲 墩 囤 沌 钝 炖 盹 遁 趸 砘 礅",qu:"区 去 取 曲 趋 渠 趣 驱 屈 躯 衢 娶 祛 瞿 岖 龋 觑 朐 蛐 癯 蛆 苣 阒 诎 劬 蕖 蘧 氍 黢 蠼 璩 麴 鸲 磲",xu:"需 许 续 须 序 徐 休 蓄 畜 虚 吁 绪 叙 旭 邪 恤 墟 栩 絮 圩 婿 戌 胥 嘘 浒 煦 酗 诩 朐 盱 蓿 溆 洫 顼 勖 糈 砉 醑",chuo:"辍 绰 戳 淖 啜 龊 踔 辶",zu:"组 族 足 祖 租 阻 卒 俎 诅 镞 菹",ji:"济 机 其 技 基 记 计 系 期 际 及 集 级 几 给 积 极 己 纪 即 继 击 既 激 绩 急 奇 吉 季 齐 疾 迹 鸡 剂 辑 籍 寄 挤 圾 冀 亟 寂 暨 脊 跻 肌 稽 忌 饥 祭 缉 棘 矶 汲 畸 姬 藉 瘠 骥 羁 妓 讥 稷 蓟 悸 嫉 岌 叽 伎 鲫 诘 楫 荠 戟 箕 霁 嵇 觊 麂 畿 玑 笈 犄 芨 唧 屐 髻 戢 佶 偈 笄 跽 蒺 乩 咭 赍 嵴 虮 掎 齑 殛 鲚 剞 洎 丌 墼 蕺 彐 芰 哜",cong:"从 丛 匆 聪 葱 囱 琮 淙 枞 骢 苁 璁",zong:"总 从 综 宗 纵 踪 棕 粽 鬃 偬 枞 腙",cou:"凑 辏 腠 楱",cui:"衰 催 崔 脆 翠 萃 粹 摧 璀 瘁 悴 淬 啐 隹 毳 榱",wei:"为 位 委 未 维 卫 围 违 威 伟 危 味 微 唯 谓 伪 慰 尾 魏 韦 胃 畏 帷 喂 巍 萎 蔚 纬 潍 尉 渭 惟 薇 苇 炜 圩 娓 诿 玮 崴 桅 偎 逶 倭 猥 囗 葳 隗 痿 猬 涠 嵬 韪 煨 艉 隹 帏 闱 洧 沩 隈 鲔 軎",cun:"村 存 寸 忖 皴",zuo:"作 做 座 左 坐 昨 佐 琢 撮 祚 柞 唑 嘬 酢 怍 笮 阼 胙",zuan:"钻 纂 攥 缵 躜",da:"大 达 打 答 搭 沓 瘩 惮 嗒 哒 耷 鞑 靼 褡 笪 怛 妲",dai:"大 代 带 待 贷 毒 戴 袋 歹 呆 隶 逮 岱 傣 棣 怠 殆 黛 甙 埭 诒 绐 玳 呔 迨",tai:"大 台 太 态 泰 抬 胎 汰 钛 苔 薹 肽 跆 邰 鲐 酞 骀 炱",ta:"他 它 她 拓 塔 踏 塌 榻 沓 漯 獭 嗒 挞 蹋 趿 遢 铊 鳎 溻 闼",dan:"但 单 石 担 丹 胆 旦 弹 蛋 淡 诞 氮 郸 耽 殚 惮 儋 眈 疸 澹 掸 膻 啖 箪 聃 萏 瘅 赕",lu:"路 六 陆 录 绿 露 鲁 卢 炉 鹿 禄 赂 芦 庐 碌 麓 颅 泸 卤 潞 鹭 辘 虏 璐 漉 噜 戮 鲈 掳 橹 轳 逯 渌 蓼 撸 鸬 栌 氇 胪 镥 簏 舻 辂 垆",tan:"谈 探 坦 摊 弹 炭 坛 滩 贪 叹 谭 潭 碳 毯 瘫 檀 痰 袒 坍 覃 忐 昙 郯 澹 钽 锬",ren:"人 任 认 仁 忍 韧 刃 纫 饪 妊 荏 稔 壬 仞 轫 亻 衽",jie:"家 结 解 价 界 接 节 她 届 介 阶 街 借 杰 洁 截 姐 揭 捷 劫 戒 皆 竭 桔 诫 楷 秸 睫 藉 拮 芥 诘 碣 嗟 颉 蚧 孑 婕 疖 桀 讦 疥 偈 羯 袷 哜 喈 卩 鲒 骱",yan:"研 严 验 演 言 眼 烟 沿 延 盐 炎 燕 岩 宴 艳 颜 殷 彦 掩 淹 阎 衍 铅 雁 咽 厌 焰 堰 砚 唁 焉 晏 檐 蜒 奄 俨 腌 妍 谚 兖 筵 焱 偃 闫 嫣 鄢 湮 赝 胭 琰 滟 阉 魇 酽 郾 恹 崦 芫 剡 鼹 菸 餍 埏 谳 讠 厣 罨",dang:"当 党 档 荡 挡 宕 砀 铛 裆 凼 菪 谠",tao:"套 讨 跳 陶 涛 逃 桃 萄 淘 掏 滔 韬 叨 洮 啕 绦 饕 鼗",tiao:"条 调 挑 跳 迢 眺 苕 窕 笤 佻 啁 粜 髫 铫 祧 龆 蜩 鲦",te:"特 忑 忒 铽 慝",de:"的 地 得 德 底 锝",dei:"得",di:"的 地 第 提 低 底 抵 弟 迪 递 帝 敌 堤 蒂 缔 滴 涤 翟 娣 笛 棣 荻 谛 狄 邸 嘀 砥 坻 诋 嫡 镝 碲 骶 氐 柢 籴 羝 睇 觌",ti:"体 提 题 弟 替 梯 踢 惕 剔 蹄 棣 啼 屉 剃 涕 锑 倜 悌 逖 嚏 荑 醍 绨 鹈 缇 裼",tui:"推 退 弟 腿 褪 颓 蜕 忒 煺",you:"有 由 又 优 游 油 友 右 邮 尤 忧 幼 犹 诱 悠 幽 佑 釉 柚 铀 鱿 囿 酉 攸 黝 莠 猷 蝣 疣 呦 蚴 莸 莜 铕 宥 繇 卣 牖 鼬 尢 蚰 侑",dian:"电 点 店 典 奠 甸 碘 淀 殿 垫 颠 滇 癫 巅 惦 掂 癜 玷 佃 踮 靛 钿 簟 坫 阽",tian:"天 田 添 填 甜 甸 恬 腆 佃 舔 钿 阗 忝 殄 畋 栝 掭",zhu:"主 术 住 注 助 属 逐 宁 著 筑 驻 朱 珠 祝 猪 诸 柱 竹 铸 株 瞩 嘱 贮 煮 烛 苎 褚 蛛 拄 铢 洙 竺 蛀 渚 伫 杼 侏 澍 诛 茱 箸 炷 躅 翥 潴 邾 槠 舳 橥 丶 瘃 麈 疰",nian:"年 念 酿 辗 碾 廿 捻 撵 拈 蔫 鲶 埝 鲇 辇 黏",diao:"调 掉 雕 吊 钓 刁 貂 凋 碉 鲷 叼 铫 铞",yao:"要 么 约 药 邀 摇 耀 腰 遥 姚 窑 瑶 咬 尧 钥 谣 肴 夭 侥 吆 疟 妖 幺 杳 舀 窕 窈 曜 鹞 爻 繇 徭 轺 铫 鳐 崾 珧",die:"跌 叠 蝶 迭 碟 爹 谍 牒 耋 佚 喋 堞 瓞 鲽 垤 揲 蹀",she:"设 社 摄 涉 射 折 舍 蛇 拾 舌 奢 慑 赦 赊 佘 麝 歙 畲 厍 猞 揲 滠",ye:"业 也 夜 叶 射 野 液 冶 喝 页 爷 耶 邪 咽 椰 烨 掖 拽 曳 晔 谒 腋 噎 揶 靥 邺 铘 揲",xie:"些 解 协 写 血 叶 谢 械 鞋 胁 斜 携 懈 契 卸 谐 泄 蟹 邪 歇 泻 屑 挟 燮 榭 蝎 撷 偕 亵 楔 颉 缬 邂 鲑 瀣 勰 榍 薤 绁 渫 廨 獬 躞",zhe:"这 者 着 著 浙 折 哲 蔗 遮 辙 辄 柘 锗 褶 蜇 蛰 鹧 谪 赭 摺 乇 磔 螫",ding:"定 订 顶 丁 鼎 盯 钉 锭 叮 仃 铤 町 酊 啶 碇 腚 疔 玎 耵",diu:"丢 铥",ting:"听 庭 停 厅 廷 挺 亭 艇 婷 汀 铤 烃 霆 町 蜓 葶 梃 莛",dong:"动 东 董 冬 洞 懂 冻 栋 侗 咚 峒 氡 恫 胴 硐 垌 鸫 岽 胨",tong:"同 通 统 童 痛 铜 桶 桐 筒 彤 侗 佟 潼 捅 酮 砼 瞳 恸 峒 仝 嗵 僮 垌 茼",zhong:"中 重 种 众 终 钟 忠 仲 衷 肿 踵 冢 盅 蚣 忪 锺 舯 螽 夂",dou:"都 斗 读 豆 抖 兜 陡 逗 窦 渎 蚪 痘 蔸 钭 篼",du:"度 都 独 督 读 毒 渡 杜 堵 赌 睹 肚 镀 渎 笃 竺 嘟 犊 妒 牍 蠹 椟 黩 芏 髑",duan:"断 段 短 端 锻 缎 煅 椴 簖",dui:"对 队 追 敦 兑 堆 碓 镦 怼 憝",rui:"瑞 兑 锐 睿 芮 蕊 蕤 蚋 枘",yue:"月 说 约 越 乐 跃 兑 阅 岳 粤 悦 曰 钥 栎 钺 樾 瀹 龠 哕 刖",tun:"吞 屯 囤 褪 豚 臀 饨 暾 氽",hui:"会 回 挥 汇 惠 辉 恢 徽 绘 毁 慧 灰 贿 卉 悔 秽 溃 荟 晖 彗 讳 诲 珲 堕 诙 蕙 晦 睢 麾 烩 茴 喙 桧 蛔 洄 浍 虺 恚 蟪 咴 隳 缋 哕",wu:"务 物 无 五 武 午 吴 舞 伍 污 乌 误 亡 恶 屋 晤 悟 吾 雾 芜 梧 勿 巫 侮 坞 毋 诬 呜 钨 邬 捂 鹜 兀 婺 妩 於 戊 鹉 浯 蜈 唔 骛 仵 焐 芴 鋈 庑 鼯 牾 怃 圬 忤 痦 迕 杌 寤 阢",ya:"亚 压 雅 牙 押 鸭 呀 轧 涯 崖 邪 芽 哑 讶 鸦 娅 衙 丫 蚜 碣 垭 伢 氩 桠 琊 揠 吖 睚 痖 疋 迓 岈 砑",he:"和 合 河 何 核 盖 贺 喝 赫 荷 盒 鹤 吓 呵 苛 禾 菏 壑 褐 涸 阂 阖 劾 诃 颌 嗬 貉 曷 翮 纥 盍",wo:"我 握 窝 沃 卧 挝 涡 斡 渥 幄 蜗 喔 倭 莴 龌 肟 硪",en:"恩 摁 蒽",n:"嗯 唔",er:"而 二 尔 儿 耳 迩 饵 洱 贰 铒 珥 佴 鸸 鲕",fa:"发 法 罚 乏 伐 阀 筏 砝 垡 珐",quan:"全 权 券 泉 圈 拳 劝 犬 铨 痊 诠 荃 醛 蜷 颧 绻 犭 筌 鬈 悛 辁 畎",fei:"费 非 飞 肥 废 菲 肺 啡 沸 匪 斐 蜚 妃 诽 扉 翡 霏 吠 绯 腓 痱 芾 淝 悱 狒 榧 砩 鲱 篚 镄",pei:"配 培 坏 赔 佩 陪 沛 裴 胚 妃 霈 淠 旆 帔 呸 醅 辔 锫",ping:"平 评 凭 瓶 冯 屏 萍 苹 乒 坪 枰 娉 俜 鲆",fo:"佛",hu:"和 护 许 户 核 湖 互 乎 呼 胡 戏 忽 虎 沪 糊 壶 葫 狐 蝴 弧 瑚 浒 鹄 琥 扈 唬 滹 惚 祜 囫 斛 笏 芴 醐 猢 怙 唿 戽 槲 觳 煳 鹕 冱 瓠 虍 岵 鹱 烀 轷",ga:"夹 咖 嘎 尬 噶 旮 伽 尕 钆 尜",ge:"个 合 各 革 格 歌 哥 盖 隔 割 阁 戈 葛 鸽 搁 胳 舸 疙 铬 骼 蛤 咯 圪 镉 颌 仡 硌 嗝 鬲 膈 纥 袼 搿 塥 哿 虼",ha:"哈 蛤 铪",xia:"下 夏 峡 厦 辖 霞 夹 虾 狭 吓 侠 暇 遐 瞎 匣 瑕 唬 呷 黠 硖 罅 狎 瘕 柙",gai:"改 该 盖 概 溉 钙 丐 芥 赅 垓 陔 戤",hai:"海 还 害 孩 亥 咳 骸 骇 氦 嗨 胲 醢",gan:"干 感 赶 敢 甘 肝 杆 赣 乾 柑 尴 竿 秆 橄 矸 淦 苷 擀 酐 绀 泔 坩 旰 疳 澉",gang:"港 钢 刚 岗 纲 冈 杠 缸 扛 肛 罡 戆 筻",jiang:"将 强 江 港 奖 讲 降 疆 蒋 姜 浆 匠 酱 僵 桨 绛 缰 犟 豇 礓 洚 茳 糨 耩",hang:"行 航 杭 巷 夯 吭 桁 沆 绗 颃",gong:"工 公 共 供 功 红 贡 攻 宫 巩 龚 恭 拱 躬 弓 汞 蚣 珙 觥 肱 廾",hong:"红 宏 洪 轰 虹 鸿 弘 哄 烘 泓 訇 蕻 闳 讧 荭 黉 薨",guang:"广 光 逛 潢 犷 胱 咣 桄",qiong:"穷 琼 穹 邛 茕 筇 跫 蛩 銎",gao:"高 告 搞 稿 膏 糕 镐 皋 羔 锆 杲 郜 睾 诰 藁 篙 缟 槁 槔",hao:"好 号 毫 豪 耗 浩 郝 皓 昊 皋 蒿 壕 灏 嚎 濠 蚝 貉 颢 嗥 薅 嚆",li:"理 力 利 立 里 李 历 例 离 励 礼 丽 黎 璃 厉 厘 粒 莉 梨 隶 栗 荔 沥 犁 漓 哩 狸 藜 罹 篱 鲤 砺 吏 澧 俐 骊 溧 砾 莅 锂 笠 蠡 蛎 痢 雳 俪 傈 醴 栎 郦 俚 枥 喱 逦 娌 鹂 戾 砬 唳 坜 疠 蜊 黧 猁 鬲 粝 蓠 呖 跞 疬 缡 鲡 鳢 嫠 詈 悝 苈 篥 轹",jia:"家 加 价 假 佳 架 甲 嘉 贾 驾 嫁 夹 稼 钾 挟 拮 迦 伽 颊 浃 枷 戛 荚 痂 颉 镓 笳 珈 岬 胛 袈 郏 葭 袷 瘕 铗 跏 蛱 恝 哿",luo:"落 罗 络 洛 逻 螺 锣 骆 萝 裸 漯 烙 摞 骡 咯 箩 珞 捋 荦 硌 雒 椤 镙 跞 瘰 泺 脶 猡 倮 蠃",ke:"可 科 克 客 刻 课 颗 渴 壳 柯 棵 呵 坷 恪 苛 咳 磕 珂 稞 瞌 溘 轲 窠 嗑 疴 蝌 岢 铪 颏 髁 蚵 缂 氪 骒 钶 锞",qia:"卡 恰 洽 掐 髂 袷 咭 葜",gei:"给",gen:"根 跟 亘 艮 哏 茛",hen:"很 狠 恨 痕 哏",gou:"构 购 够 句 沟 狗 钩 拘 勾 苟 垢 枸 篝 佝 媾 诟 岣 彀 缑 笱 鞲 觏 遘",kou:"口 扣 寇 叩 抠 佝 蔻 芤 眍 筘",gu:"股 古 顾 故 固 鼓 骨 估 谷 贾 姑 孤 雇 辜 菇 沽 咕 呱 锢 钴 箍 汩 梏 痼 崮 轱 鸪 牯 蛊 诂 毂 鹘 菰 罟 嘏 臌 觚 瞽 蛄 酤 牿 鲴",pai:"牌 排 派 拍 迫 徘 湃 俳 哌 蒎",gua:"括 挂 瓜 刮 寡 卦 呱 褂 剐 胍 诖 鸹 栝 呙",tou:"投 头 透 偷 愉 骰 亠",guai:"怪 拐 乖",kuai:"会 快 块 筷 脍 蒯 侩 浍 郐 蒉 狯 哙",guan:"关 管 观 馆 官 贯 冠 惯 灌 罐 莞 纶 棺 斡 矜 倌 鹳 鳏 盥 掼 涫",wan:"万 完 晚 湾 玩 碗 顽 挽 弯 蔓 丸 莞 皖 宛 婉 腕 蜿 惋 烷 琬 畹 豌 剜 纨 绾 脘 菀 芄 箢",ne:"呢 哪 呐 讷 疒",gui:"规 贵 归 轨 桂 柜 圭 鬼 硅 瑰 跪 龟 匮 闺 诡 癸 鳜 桧 皈 鲑 刽 晷 傀 眭 妫 炅 庋 簋 刿 宄 匦",jun:"军 均 俊 君 峻 菌 竣 钧 骏 龟 浚 隽 郡 筠 皲 麇 捃",jiong:"窘 炯 迥 炅 冂 扃",jue:"决 绝 角 觉 掘 崛 诀 獗 抉 爵 嚼 倔 厥 蕨 攫 珏 矍 蹶 谲 镢 鳜 噱 桷 噘 撅 橛 孓 觖 劂 爝",gun:"滚 棍 辊 衮 磙 鲧 绲 丨",hun:"婚 混 魂 浑 昏 棍 珲 荤 馄 诨 溷 阍",guo:"国 过 果 郭 锅 裹 帼 涡 椁 囗 蝈 虢 聒 埚 掴 猓 崞 蜾 呙 馘",hei:"黑 嘿 嗨",kan:"看 刊 勘 堪 坎 砍 侃 嵌 槛 瞰 阚 龛 戡 凵 莰",heng:"衡 横 恒 亨 哼 珩 桁 蘅",mo:"万 没 么 模 末 冒 莫 摩 墨 默 磨 摸 漠 脉 膜 魔 沫 陌 抹 寞 蘑 摹 蓦 馍 茉 嘿 谟 秣 蟆 貉 嫫 镆 殁 耱 嬷 麽 瘼 貊 貘",peng:"鹏 朋 彭 膨 蓬 碰 苹 棚 捧 亨 烹 篷 澎 抨 硼 怦 砰 嘭 蟛 堋",hou:"后 候 厚 侯 猴 喉 吼 逅 篌 糇 骺 後 鲎 瘊 堠",hua:"化 华 划 话 花 画 滑 哗 豁 骅 桦 猾 铧 砉",huai:"怀 坏 淮 徊 槐 踝",huan:"还 环 换 欢 患 缓 唤 焕 幻 痪 桓 寰 涣 宦 垸 洹 浣 豢 奂 郇 圜 獾 鲩 鬟 萑 逭 漶 锾 缳 擐",xun:"讯 训 迅 孙 寻 询 循 旬 巡 汛 勋 逊 熏 徇 浚 殉 驯 鲟 薰 荀 浔 洵 峋 埙 巽 郇 醺 恂 荨 窨 蕈 曛 獯",huang:"黄 荒 煌 皇 凰 慌 晃 潢 谎 惶 簧 璜 恍 幌 湟 蝗 磺 隍 徨 遑 肓 篁 鳇 蟥 癀",nai:"能 乃 奶 耐 奈 鼐 萘 氖 柰 佴 艿",luan:"乱 卵 滦 峦 鸾 栾 銮 挛 孪 脔 娈",qie:"切 且 契 窃 茄 砌 锲 怯 伽 惬 妾 趄 挈 郄 箧 慊",jian:"建 间 件 见 坚 检 健 监 减 简 艰 践 兼 鉴 键 渐 柬 剑 尖 肩 舰 荐 箭 浅 剪 俭 碱 茧 奸 歼 拣 捡 煎 贱 溅 槛 涧 堑 笺 谏 饯 锏 缄 睑 謇 蹇 腱 菅 翦 戬 毽 笕 犍 硷 鞯 牮 枧 湔 鲣 囝 裥 踺 搛 缣 鹣 蒹 谫 僭 戋 趼 楗",nan:"南 难 男 楠 喃 囡 赧 腩 囝 蝻",qian:"前 千 钱 签 潜 迁 欠 纤 牵 浅 遣 谦 乾 铅 歉 黔 谴 嵌 倩 钳 茜 虔 堑 钎 骞 阡 掮 钤 扦 芊 犍 荨 仟 芡 悭 缱 佥 愆 褰 凵 肷 岍 搴 箝 慊 椠",qiang:"强 抢 疆 墙 枪 腔 锵 呛 羌 蔷 襁 羟 跄 樯 戕 嫱 戗 炝 镪 锖 蜣",xiang:"向 项 相 想 乡 象 响 香 降 像 享 箱 羊 祥 湘 详 橡 巷 翔 襄 厢 镶 飨 饷 缃 骧 芗 庠 鲞 葙 蟓",jiao:"教 交 较 校 角 觉 叫 脚 缴 胶 轿 郊 焦 骄 浇 椒 礁 佼 蕉 娇 矫 搅 绞 酵 剿 嚼 饺 窖 跤 蛟 侥 狡 姣 皎 茭 峤 铰 醮 鲛 湫 徼 鹪 僬 噍 艽 挢 敫",zhuo:"着 著 缴 桌 卓 捉 琢 灼 浊 酌 拙 茁 涿 镯 淖 啄 濯 焯 倬 擢 斫 棹 诼 浞 禚",qiao:"桥 乔 侨 巧 悄 敲 俏 壳 雀 瞧 翘 窍 峭 锹 撬 荞 跷 樵 憔 鞘 橇 峤 诮 谯 愀 鞒 硗 劁 缲",xiao:"小 效 销 消 校 晓 笑 肖 削 孝 萧 俏 潇 硝 宵 啸 嚣 霄 淆 哮 筱 逍 姣 箫 骁 枭 哓 绡 蛸 崤 枵 魈",si:"司 四 思 斯 食 私 死 似 丝 饲 寺 肆 撕 泗 伺 嗣 祀 厮 驷 嘶 锶 俟 巳 蛳 咝 耜 笥 纟 糸 鸶 缌 澌 姒 汜 厶 兕",kai:"开 凯 慨 岂 楷 恺 揩 锴 铠 忾 垲 剀 锎 蒈",jin:"进 金 今 近 仅 紧 尽 津 斤 禁 锦 劲 晋 谨 筋 巾 浸 襟 靳 瑾 烬 缙 钅 矜 觐 堇 馑 荩 噤 廑 妗 槿 赆 衿 卺",qin:"亲 勤 侵 秦 钦 琴 禽 芹 沁 寝 擒 覃 噙 矜 嗪 揿 溱 芩 衾 廑 锓 吣 檎 螓",jing:"经 京 精 境 竞 景 警 竟 井 惊 径 静 劲 敬 净 镜 睛 晶 颈 荆 兢 靖 泾 憬 鲸 茎 腈 菁 胫 阱 旌 粳 靓 痉 箐 儆 迳 婧 肼 刭 弪 獍",ying:"应 营 影 英 景 迎 映 硬 盈 赢 颖 婴 鹰 荧 莹 樱 瑛 蝇 萦 莺 颍 膺 缨 瀛 楹 罂 荥 萤 鹦 滢 蓥 郢 茔 嘤 璎 嬴 瘿 媵 撄 潆",jiu:"就 究 九 酒 久 救 旧 纠 舅 灸 疚 揪 咎 韭 玖 臼 柩 赳 鸠 鹫 厩 啾 阄 桕 僦 鬏",zui:"最 罪 嘴 醉 咀 蕞 觜",juan:"卷 捐 圈 眷 娟 倦 绢 隽 镌 涓 鹃 鄄 蠲 狷 锩 桊",suan:"算 酸 蒜 狻",yun:"员 运 云 允 孕 蕴 韵 酝 耘 晕 匀 芸 陨 纭 郧 筠 恽 韫 郓 氲 殒 愠 昀 菀 狁",qun:"群 裙 逡 麇",ka:"卡 喀 咖 咔 咯 佧 胩",kang:"康 抗 扛 慷 炕 亢 糠 伉 钪 闶",keng:"坑 铿 吭",kao:"考 靠 烤 拷 铐 栲 尻 犒",ken:"肯 垦 恳 啃 龈 裉",yin:"因 引 银 印 音 饮 阴 隐 姻 殷 淫 尹 荫 吟 瘾 寅 茵 圻 垠 鄞 湮 蚓 氤 胤 龈 窨 喑 铟 洇 狺 夤 廴 吲 霪 茚 堙",kong:"空 控 孔 恐 倥 崆 箜",ku:"苦 库 哭 酷 裤 枯 窟 挎 骷 堀 绔 刳 喾",kua:"跨 夸 垮 挎 胯 侉",kui:"亏 奎 愧 魁 馈 溃 匮 葵 窥 盔 逵 睽 馗 聩 喟 夔 篑 岿 喹 揆 隗 傀 暌 跬 蒉 愦 悝 蝰",kuan:"款 宽 髋",kuang:"况 矿 框 狂 旷 眶 匡 筐 邝 圹 哐 贶 夼 诳 诓 纩",que:"确 却 缺 雀 鹊 阙 瘸 榷 炔 阕 悫",kun:"困 昆 坤 捆 琨 锟 鲲 醌 髡 悃 阃",kuo:"扩 括 阔 廓 蛞",la:"拉 落 垃 腊 啦 辣 蜡 喇 剌 旯 砬 邋 瘌",lai:"来 莱 赖 睐 徕 籁 涞 赉 濑 癞 崃 疠 铼",lan:"兰 览 蓝 篮 栏 岚 烂 滥 缆 揽 澜 拦 懒 榄 斓 婪 阑 褴 罱 啉 谰 镧 漤",lin:"林 临 邻 赁 琳 磷 淋 麟 霖 鳞 凛 拎 遴 蔺 吝 粼 嶙 躏 廪 檩 啉 辚 膦 瞵 懔",lang:"浪 朗 郎 廊 狼 琅 榔 螂 阆 锒 莨 啷 蒗 稂",liang:"量 两 粮 良 辆 亮 梁 凉 谅 粱 晾 靓 踉 莨 椋 魉 墚",lao:"老 劳 落 络 牢 捞 涝 烙 姥 佬 崂 唠 酪 潦 痨 醪 铑 铹 栳 耢",mu:"目 模 木 亩 幕 母 牧 莫 穆 姆 墓 慕 牟 牡 募 睦 缪 沐 暮 拇 姥 钼 苜 仫 毪 坶",le:"了 乐 勒 肋 叻 鳓 嘞 仂 泐",lei:"类 累 雷 勒 泪 蕾 垒 磊 擂 镭 肋 羸 耒 儡 嫘 缧 酹 嘞 诔 檑",sui:"随 岁 虽 碎 尿 隧 遂 髓 穗 绥 隋 邃 睢 祟 濉 燧 谇 眭 荽",lie:"列 烈 劣 裂 猎 冽 咧 趔 洌 鬣 埒 捩 躐",leng:"冷 愣 棱 楞 塄",ling:"领 令 另 零 灵 龄 陵 岭 凌 玲 铃 菱 棱 伶 羚 苓 聆 翎 泠 瓴 囹 绫 呤 棂 蛉 酃 鲮 柃",lia:"俩",liao:"了 料 疗 辽 廖 聊 寥 缪 僚 燎 缭 撂 撩 嘹 潦 镣 寮 蓼 獠 钌 尥 鹩",liu:"流 刘 六 留 柳 瘤 硫 溜 碌 浏 榴 琉 馏 遛 鎏 骝 绺 镏 旒 熘 鹨 锍",lun:"论 轮 伦 仑 纶 沦 抡 囵",lv:"率 律 旅 绿 虑 履 吕 铝 屡 氯 缕 滤 侣 驴 榈 闾 偻 褛 捋 膂 稆",lou:"楼 露 漏 陋 娄 搂 篓 喽 镂 偻 瘘 髅 耧 蝼 嵝 蒌",mao:"贸 毛 矛 冒 貌 茂 茅 帽 猫 髦 锚 懋 袤 牦 卯 铆 耄 峁 瑁 蟊 茆 蝥 旄 泖 昴 瞀",long:"龙 隆 弄 垄 笼 拢 聋 陇 胧 珑 窿 茏 咙 砻 垅 泷 栊 癃",nong:"农 浓 弄 脓 侬 哝",shuang:"双 爽 霜 孀 泷",shu:"术 书 数 属 树 输 束 述 署 朱 熟 殊 蔬 舒 疏 鼠 淑 叔 暑 枢 墅 俞 曙 抒 竖 蜀 薯 梳 戍 恕 孰 沭 赎 庶 漱 塾 倏 澍 纾 姝 菽 黍 腧 秫 毹 殳 疋 摅",shuai:"率 衰 帅 摔 甩 蟀",lve:"略 掠 锊",ma:"么 马 吗 摩 麻 码 妈 玛 嘛 骂 抹 蚂 唛 蟆 犸 杩",me:"么 麽",mai:"买 卖 麦 迈 脉 埋 霾 荬 劢",man:"满 慢 曼 漫 埋 蔓 瞒 蛮 鳗 馒 幔 谩 螨 熳 缦 镘 颟 墁 鞔",mi:"米 密 秘 迷 弥 蜜 谜 觅 靡 泌 眯 麋 猕 谧 咪 糜 宓 汨 醚 嘧 弭 脒 冖 幂 祢 縻 蘼 芈 糸 敉",men:"们 门 闷 瞒 汶 扪 焖 懑 鞔 钔",mang:"忙 盲 茫 芒 氓 莽 蟒 邙 硭 漭",meng:"蒙 盟 梦 猛 孟 萌 氓 朦 锰 檬 勐 懵 蟒 蜢 虻 黾 蠓 艨 甍 艋 瞢 礞",miao:"苗 秒 妙 描 庙 瞄 缪 渺 淼 藐 缈 邈 鹋 杪 眇 喵",mou:"某 谋 牟 缪 眸 哞 鍪 蛑 侔 厶",miu:"缪 谬",mei:"美 没 每 煤 梅 媒 枚 妹 眉 魅 霉 昧 媚 玫 酶 镁 湄 寐 莓 袂 楣 糜 嵋 镅 浼 猸 鹛",wen:"文 问 闻 稳 温 纹 吻 蚊 雯 紊 瘟 汶 韫 刎 璺 玟 阌",mie:"灭 蔑 篾 乜 咩 蠛",ming:"明 名 命 鸣 铭 冥 茗 溟 酩 瞑 螟 暝",na:"内 南 那 纳 拿 哪 娜 钠 呐 捺 衲 镎 肭",nei:"内 那 哪 馁",nuo:"难 诺 挪 娜 糯 懦 傩 喏 搦 锘",ruo:"若 弱 偌 箬",nang:"囊 馕 囔 曩 攮",nao:"脑 闹 恼 挠 瑙 淖 孬 垴 铙 桡 呶 硇 猱 蛲",ni:"你 尼 呢 泥 疑 拟 逆 倪 妮 腻 匿 霓 溺 旎 昵 坭 铌 鲵 伲 怩 睨 猊",nen:"嫩 恁",neng:"能",nin:"您 恁",niao:"鸟 尿 溺 袅 脲 茑 嬲",nie:"摄 聂 捏 涅 镍 孽 捻 蘖 啮 蹑 嗫 臬 镊 颞 乜 陧",niang:"娘 酿",ning:"宁 凝 拧 泞 柠 咛 狞 佞 聍 甯",nu:"努 怒 奴 弩 驽 帑 孥 胬",nv:"女 钕 衄 恧",ru:"入 如 女 乳 儒 辱 汝 茹 褥 孺 濡 蠕 嚅 缛 溽 铷 洳 薷 襦 颥 蓐",nuan:"暖",nve:"虐 疟",re:"热 若 惹 喏",ou:"区 欧 偶 殴 呕 禺 藕 讴 鸥 瓯 沤 耦 怄",pao:"跑 炮 泡 抛 刨 袍 咆 疱 庖 狍 匏 脬",pou:"剖 掊 裒",pen:"喷 盆 湓",pie:"瞥 撇 苤 氕 丿",pin:"品 贫 聘 频 拼 拚 颦 姘 嫔 榀 牝",se:"色 塞 瑟 涩 啬 穑 铯 槭",qing:"情 青 清 请 亲 轻 庆 倾 顷 卿 晴 氢 擎 氰 罄 磬 蜻 箐 鲭 綮 苘 黥 圊 檠 謦",zan:"赞 暂 攒 堑 昝 簪 糌 瓒 錾 趱 拶",shao:"少 绍 召 烧 稍 邵 哨 韶 捎 勺 梢 鞘 芍 苕 劭 艄 筲 杓 潲",sao:"扫 骚 嫂 梢 缫 搔 瘙 臊 埽 缲 鳋",sha:"沙 厦 杀 纱 砂 啥 莎 刹 杉 傻 煞 鲨 霎 嗄 痧 裟 挲 铩 唼 歃",xuan:"县 选 宣 券 旋 悬 轩 喧 玄 绚 渲 璇 炫 萱 癣 漩 眩 暄 煊 铉 楦 泫 谖 痃 碹 揎 镟 儇",ran:"然 染 燃 冉 苒 髯 蚺",rang:"让 壤 攘 嚷 瓤 穰 禳",rao:"绕 扰 饶 娆 桡 荛",reng:"仍 扔",ri:"日",rou:"肉 柔 揉 糅 鞣 蹂",ruan:"软 阮 朊",run:"润 闰",sa:"萨 洒 撒 飒 卅 仨 脎",suo:"所 些 索 缩 锁 莎 梭 琐 嗦 唆 唢 娑 蓑 羧 挲 桫 嗍 睃",sai:"思 赛 塞 腮 噻 鳃",shui:"说 水 税 谁 睡 氵",sang:"桑 丧 嗓 搡 颡 磉",sen:"森",seng:"僧",shai:"筛 晒",shang:"上 商 尚 伤 赏 汤 裳 墒 晌 垧 觞 殇 熵 绱",xing:"行 省 星 腥 猩 惺 兴 刑 型 形 邢 饧 醒 幸 杏 性 姓 陉 荇 荥 擤 悻 硎",shou:"收 手 受 首 售 授 守 寿 瘦 兽 狩 绶 艏 扌",shuo:"说 数 硕 烁 朔 铄 妁 槊 蒴 搠",su:"速 素 苏 诉 缩 塑 肃 俗 宿 粟 溯 酥 夙 愫 簌 稣 僳 谡 涑 蔌 嗉 觫",shua:"刷 耍 唰",shuan:"栓 拴 涮 闩",shun:"顺 瞬 舜 吮",song:"送 松 宋 讼 颂 耸 诵 嵩 淞 怂 悚 崧 凇 忪 竦 菘",sou:"艘 搜 擞 嗽 嗖 叟 馊 薮 飕 嗾 溲 锼 螋 瞍",sun:"损 孙 笋 荪 榫 隼 狲 飧",teng:"腾 疼 藤 滕 誊",tie:"铁 贴 帖 餮 萜",tu:"土 突 图 途 徒 涂 吐 屠 兔 秃 凸 荼 钍 菟 堍 酴",wai:"外 歪 崴",wang:"王 望 往 网 忘 亡 旺 汪 枉 妄 惘 罔 辋 魍",weng:"翁 嗡 瓮 蓊 蕹",zhua:"抓 挝 爪",yang:"样 养 央 阳 洋 扬 杨 羊 详 氧 仰 秧 痒 漾 疡 泱 殃 恙 鸯 徉 佯 怏 炀 烊 鞅 蛘",xiong:"雄 兄 熊 胸 凶 匈 汹 芎",yo:"哟 唷",yong:"用 永 拥 勇 涌 泳 庸 俑 踊 佣 咏 雍 甬 镛 臃 邕 蛹 恿 慵 壅 痈 鳙 墉 饔 喁",za:"杂 扎 咱 砸 咋 匝 咂 拶",zai:"在 再 灾 载 栽 仔 宰 哉 崽 甾",zao:"造 早 遭 枣 噪 灶 燥 糟 凿 躁 藻 皂 澡 蚤 唣",zei:"贼",zen:"怎 谮",zeng:"增 曾 综 赠 憎 锃 甑 罾 缯",zhei:"这",zou:"走 邹 奏 揍 诹 驺 陬 楱 鄹 鲰",zhuai:"转 拽",zun:"尊 遵 鳟 樽 撙",dia:"嗲",nou:"耨"}},ne={layout:{default:["1 2 3 4 5 6 7 8 9 0 - ^ ¥ {bksp}","{tab} た て い す か ん な に ら せ ゛ ゜ む","{lock} ち と し は き く ま の り れ け {enter}","{shift} つ さ そ ひ こ み も ね る め {shift}",".com @ {space}"],shift:[`! " # $ % & ' ( ) ́ = ~ | {bksp}`,"{tab} た て ぃ す か ん な に ら せ 「 」 む","{lock} ち と し は き く ま の り れ け {enter}","{shift} っ さ そ ひ こ み も 、 。 ・ {shift}",".com @ {space}"]}};var Jt={exports:{}};/*! * * simple-keyboard v3.7.51 * https://github.com/hodgef/simple-keyboard diff --git a/docs/assets/KeyboardField.stories-Dl2hfwXG.js b/docs/assets/KeyboardField.stories-BK0kPuM7.js similarity index 96% rename from docs/assets/KeyboardField.stories-Dl2hfwXG.js rename to docs/assets/KeyboardField.stories-BK0kPuM7.js index d72d33e6..fe8c748b 100644 --- a/docs/assets/KeyboardField.stories-Dl2hfwXG.js +++ b/docs/assets/KeyboardField.stories-BK0kPuM7.js @@ -1,4 +1,4 @@ -var w=Object.defineProperty;var T=(a,e,r)=>e in a?w(a,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):a[e]=r;var h=(a,e,r)=>(T(a,typeof e!="symbol"?e+"":e,r),r);import{j as t}from"./jsx-runtime-BTCK_S7S.js";import{r as u}from"./index-CBqU2yxZ.js";import{d as i}from"./index-DfmhmaGJ.js";import{F as d}from"./Form-fErk-qk_.js";import{E as K,A as j}from"./english-BQymWagN.js";import{y as k}from"./index.es28-dE8xdd4L.js";import{S as N}from"./Segment-C5_maSSM.js";import{T as S}from"./Transition-DSFEXhCu.js";import{i as f}from"./i18n-C8zWlANG.js";import{L as V}from"./LinkLabel-oB1DYe7W.js";import"./_commonjsHelpers-BosuxZz1.js";import"./mapValues-CZh2vnSw.js";import"./pickBy-CU2rOOKe.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-Bu_b4Pek.js";import"./index-Cw1G72V2.js";import"./index-CKJfshIT.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./preview-errors-CzpZmerH.js";import"./debounce-Bq1aTuh-.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getElementType-CckcRzoH.js";import"./Button-Blq7Z6RX.js";import"./Icon-2tEtgK8g.js";import"./Label-Cq1fb1cd.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./forEach-CXlln0XP.js";import"./Dimmer-D_gwaesu.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./index-DZGZymok.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./map-B4PnIEPz.js";import"./Checkbox-C9uAfnsM.js";import"./_baseSet-6y0qliU9.js";import"./_baseAssignValue-izmKBXUH.js";import"./Dropdown-Di2cPjwR.js";import"./without-BP-mqg2K.js";import"./isArrayLikeObject-CbXKTyfk.js";import"./isEmpty-Cyb9hIKi.js";import"./deburr-CEfyoYOr.js";import"./index-BBpNyw-T.js";import"./_arrayReduce-CrxnWFSq.js";import"./filter-CVNi8iPS.js";import"./Input--hQVCRQV.js";import"./iframe-ovyJW9VA.js";import"../sb-preview/runtime.js";import"./i18next-Sc0HEOoc.js";import"./toPropertyKey-hKuLU48H.js";import"./defineProperty-CCxoMnQV.js";import"./inherits-D5wXBZoG.js";import"./createClass-D2z1h_eG.js";import"./getPrototypeOf-BYVhAdwF.js";import"./LinkButton-COql2obt.js";class n extends u.Component{constructor(e){super(e),this.state={showKeyboard:!1}}componentDidUpdate(e){e.visible&&!this.props.visible&&this.setState({showKeyboard:!1})}onInputChange(e,r){this.props.onChange(e,r)}onKeyboardChange(e){this.props.onChange(null,{value:e})}render(){return t.jsxs(d.Field,{className:"keyboard-field",children:[t.jsx(d.Input,{autoFocus:this.props.autoFocus,className:this.props.className,error:this.props.error,id:this.props.id,input:{"aria-label":this.props.name},label:this.renderLabel(),name:this.props.name,onChange:this.onInputChange.bind(this),required:this.props.required,value:this.props.value,children:this.props.children}),t.jsx(S,{duration:{hide:50,show:500},visible:this.state.showKeyboard,children:t.jsx(N,{children:t.jsx(k,{layout:this.props.layout,onChange:this.onKeyboardChange.bind(this),value:this.props.value,keyboardClass:this.props.name})})})]})}renderLabel(){return t.jsx(V,{content:this.state.showKeyboard?f.t("KeyboardField.labels.hideKeyboard"):f.t("KeyboardField.labels.showKeyboard"),htmlFor:this.props.name,label:this.props.label,onClick:()=>this.setState(e=>({showKeyboard:!e.showKeyboard}))})}}h(n,"defaultProps");n.defaultProps={autoFocus:!1,className:"",error:!1,id:""};n.__docgenInfo={description:"",methods:[{name:"onInputChange",docblock:`Triggers the text input change. +var w=Object.defineProperty;var T=(a,e,r)=>e in a?w(a,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):a[e]=r;var h=(a,e,r)=>(T(a,typeof e!="symbol"?e+"":e,r),r);import{j as t}from"./jsx-runtime-BTCK_S7S.js";import{r as u}from"./index-CBqU2yxZ.js";import{d as i}from"./index-CAen7T_W.js";import{F as d}from"./Form-fErk-qk_.js";import{E as K,A as j}from"./english-BQymWagN.js";import{y as k}from"./index.es28-Dp3-vHIY.js";import{S as N}from"./Segment-C5_maSSM.js";import{T as S}from"./Transition-DSFEXhCu.js";import{i as f}from"./i18n-C8zWlANG.js";import{L as V}from"./LinkLabel-oB1DYe7W.js";import"./_commonjsHelpers-BosuxZz1.js";import"./mapValues-LQZI9uWW.js";import"./pickBy-Us6u5-To.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-DCkRKKtx.js";import"./index-Cw1G72V2.js";import"./index-CKJfshIT.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./preview-errors-CzpZmerH.js";import"./debounce-BkgZrIul.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getElementType-CckcRzoH.js";import"./Button-Blq7Z6RX.js";import"./Icon-2tEtgK8g.js";import"./Label-Cq1fb1cd.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./forEach-CXlln0XP.js";import"./Dimmer-D_gwaesu.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./index-DZGZymok.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./map-B4PnIEPz.js";import"./Checkbox-C9uAfnsM.js";import"./_baseSet-6y0qliU9.js";import"./_baseAssignValue-izmKBXUH.js";import"./Dropdown-Di2cPjwR.js";import"./without-BP-mqg2K.js";import"./isArrayLikeObject-CbXKTyfk.js";import"./isEmpty-Cyb9hIKi.js";import"./deburr-CEfyoYOr.js";import"./index-BBpNyw-T.js";import"./_arrayReduce-CrxnWFSq.js";import"./filter-CVNi8iPS.js";import"./Input--hQVCRQV.js";import"./iframe-BQtATEn0.js";import"../sb-preview/runtime.js";import"./i18next-Sc0HEOoc.js";import"./toPropertyKey-hKuLU48H.js";import"./defineProperty-CCxoMnQV.js";import"./inherits-D5wXBZoG.js";import"./createClass-D2z1h_eG.js";import"./getPrototypeOf-BYVhAdwF.js";import"./LinkButton-COql2obt.js";class n extends u.Component{constructor(e){super(e),this.state={showKeyboard:!1}}componentDidUpdate(e){e.visible&&!this.props.visible&&this.setState({showKeyboard:!1})}onInputChange(e,r){this.props.onChange(e,r)}onKeyboardChange(e){this.props.onChange(null,{value:e})}render(){return t.jsxs(d.Field,{className:"keyboard-field",children:[t.jsx(d.Input,{autoFocus:this.props.autoFocus,className:this.props.className,error:this.props.error,id:this.props.id,input:{"aria-label":this.props.name},label:this.renderLabel(),name:this.props.name,onChange:this.onInputChange.bind(this),required:this.props.required,value:this.props.value,children:this.props.children}),t.jsx(S,{duration:{hide:50,show:500},visible:this.state.showKeyboard,children:t.jsx(N,{children:t.jsx(k,{layout:this.props.layout,onChange:this.onKeyboardChange.bind(this),value:this.props.value,keyboardClass:this.props.name})})})]})}renderLabel(){return t.jsx(V,{content:this.state.showKeyboard?f.t("KeyboardField.labels.hideKeyboard"):f.t("KeyboardField.labels.showKeyboard"),htmlFor:this.props.name,label:this.props.label,onClick:()=>this.setState(e=>({showKeyboard:!e.showKeyboard}))})}}h(n,"defaultProps");n.defaultProps={autoFocus:!1,className:"",error:!1,id:""};n.__docgenInfo={description:"",methods:[{name:"onInputChange",docblock:`Triggers the text input change. @param e @param value`,modifiers:[],params:[{name:"e",optional:!1,type:{name:"Event",alias:"Event"}},{name:"value",optional:!1,type:{name:"any"}}],returns:null,description:"Triggers the text input change."},{name:"onKeyboardChange",docblock:`Triggers the keyboard input change. diff --git a/docs/assets/LazyAudio.stories-BeMWH0Uj.js b/docs/assets/LazyAudio.stories-DGlBZPrC.js similarity index 94% rename from docs/assets/LazyAudio.stories-BeMWH0Uj.js rename to docs/assets/LazyAudio.stories-DGlBZPrC.js index ba7a3126..e3b7c7cd 100644 --- a/docs/assets/LazyAudio.stories-BeMWH0Uj.js +++ b/docs/assets/LazyAudio.stories-DGlBZPrC.js @@ -1,4 +1,4 @@ -import{j as r}from"./jsx-runtime-BTCK_S7S.js";import{r as K}from"./index-CBqU2yxZ.js";import{d as k}from"./index-DfmhmaGJ.js";import{_ as q}from"./index-default-C_maRo4o.js";import{a as d}from"./SampleAudio-DqClFjld.js";import{L as o}from"./LazyAudio-BiEA90M2.js";import{F as G}from"./FileInputButton-qbfOXRVs.js";import{i as O}from"./test-image-BGrKnxUR.js";import"./_commonjsHelpers-BosuxZz1.js";import"./mapValues-CZh2vnSw.js";import"./pickBy-CU2rOOKe.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-Bu_b4Pek.js";import"./index-Cw1G72V2.js";import"./index-CKJfshIT.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./preview-errors-CzpZmerH.js";import"./debounce-Bq1aTuh-.js";import"./LazyLoader-D1S4_28m.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getElementType-CckcRzoH.js";import"./forEach-CXlln0XP.js";import"./without-BP-mqg2K.js";import"./isArrayLikeObject-CbXKTyfk.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./index-DZGZymok.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./Label-Cq1fb1cd.js";import"./Icon-2tEtgK8g.js";import"./Dimmer-D_gwaesu.js";import"./Loader-CooidObp.js";import"./Button-Blq7Z6RX.js";import"./map-B4PnIEPz.js";import"./Segment-C5_maSSM.js";import"./Transition-DSFEXhCu.js";import"./_baseAssignValue-izmKBXUH.js";import"./filter-CVNi8iPS.js";import"./i18n-C8zWlANG.js";import"./i18next-Sc0HEOoc.js";import"./toPropertyKey-hKuLU48H.js";import"./defineProperty-CCxoMnQV.js";import"./inherits-D5wXBZoG.js";import"./createClass-D2z1h_eG.js";import"./getPrototypeOf-BYVhAdwF.js";import"./AudioPlayer-DbqX1JnS.js";import"./Message-3p6wyYpA.js";import"./Modal-Bz2VEyQG.js";import"./index-BBpNyw-T.js";import"./_baseSet-6y0qliU9.js";import"./_arrayReduce-CrxnWFSq.js";import"./isEmpty-Cyb9hIKi.js";import"./ModalContext-Bu-D9kD-.js";import"./DownloadButton-B5qnjgmD.js";import"./uuid-BH6G0oTz.js";const Yr={title:"Components/Semantic UI/LazyAudio",decorators:[k.withKnobs]},e=()=>r.jsx(o,{src:d}),t=()=>r.jsx(o,{}),i=()=>{const[n,B]=K.useState();return r.jsx(o,{src:n&&URL.createObjectURL(n),children:r.jsx(G,{content:"Upload",icon:"cloud upload",onSelection:C=>B(q.first(C)),primary:!0})})},a=()=>r.jsx(o,{preview:O,src:d}),s=()=>r.jsx(o,{preview:"/path/to/preview.jpg",src:d}),p=()=>r.jsx(o,{preview:O,src:"/path/to/audio.mp3"}),m=()=>r.jsx(o,{preview:"/path/to/preview.jpg",src:"/path/to/audio.mp3"}),c=()=>r.jsx(o,{download:d,name:"Audio.mp3",src:d});e.__docgenInfo={description:"",methods:[],displayName:"Default"};t.__docgenInfo={description:"",methods:[],displayName:"Placeholder"};i.__docgenInfo={description:"",methods:[],displayName:"Upload"};a.__docgenInfo={description:"",methods:[],displayName:"Preview"};s.__docgenInfo={description:"",methods:[],displayName:"ErrorPreview"};p.__docgenInfo={description:"",methods:[],displayName:"ErrorSource"};m.__docgenInfo={description:"",methods:[],displayName:"ErrorPreviewAndSource"};c.__docgenInfo={description:"",methods:[],displayName:"Downloadable"};var u,l,f;e.parameters={...e.parameters,docs:{...(u=e.parameters)==null?void 0:u.docs,source:{originalSource:"() => ",...(f=(l=e.parameters)==null?void 0:l.docs)==null?void 0:f.source}}};var w,g,y;t.parameters={...t.parameters,docs:{...(w=t.parameters)==null?void 0:w.docs,source:{originalSource:"() => ",...(y=(g=t.parameters)==null?void 0:g.docs)==null?void 0:y.source}}};var h,v,_;i.parameters={...i.parameters,docs:{...(h=i.parameters)==null?void 0:h.docs,source:{originalSource:`() => { +import{j as r}from"./jsx-runtime-BTCK_S7S.js";import{r as K}from"./index-CBqU2yxZ.js";import{d as k}from"./index-CAen7T_W.js";import{_ as q}from"./index-default-C_maRo4o.js";import{a as d}from"./SampleAudio-DqClFjld.js";import{L as o}from"./LazyAudio-BiEA90M2.js";import{F as G}from"./FileInputButton-qbfOXRVs.js";import{i as O}from"./test-image-BGrKnxUR.js";import"./_commonjsHelpers-BosuxZz1.js";import"./mapValues-LQZI9uWW.js";import"./pickBy-Us6u5-To.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-DCkRKKtx.js";import"./index-Cw1G72V2.js";import"./index-CKJfshIT.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./preview-errors-CzpZmerH.js";import"./debounce-BkgZrIul.js";import"./LazyLoader-D1S4_28m.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getElementType-CckcRzoH.js";import"./forEach-CXlln0XP.js";import"./without-BP-mqg2K.js";import"./isArrayLikeObject-CbXKTyfk.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./index-DZGZymok.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./Label-Cq1fb1cd.js";import"./Icon-2tEtgK8g.js";import"./Dimmer-D_gwaesu.js";import"./Loader-CooidObp.js";import"./Button-Blq7Z6RX.js";import"./map-B4PnIEPz.js";import"./Segment-C5_maSSM.js";import"./Transition-DSFEXhCu.js";import"./_baseAssignValue-izmKBXUH.js";import"./filter-CVNi8iPS.js";import"./i18n-C8zWlANG.js";import"./i18next-Sc0HEOoc.js";import"./toPropertyKey-hKuLU48H.js";import"./defineProperty-CCxoMnQV.js";import"./inherits-D5wXBZoG.js";import"./createClass-D2z1h_eG.js";import"./getPrototypeOf-BYVhAdwF.js";import"./AudioPlayer-DbqX1JnS.js";import"./Message-3p6wyYpA.js";import"./Modal-Bz2VEyQG.js";import"./index-BBpNyw-T.js";import"./_baseSet-6y0qliU9.js";import"./_arrayReduce-CrxnWFSq.js";import"./isEmpty-Cyb9hIKi.js";import"./ModalContext-Bu-D9kD-.js";import"./DownloadButton-B5qnjgmD.js";import"./uuid-BH6G0oTz.js";const Yr={title:"Components/Semantic UI/LazyAudio",decorators:[k.withKnobs]},e=()=>r.jsx(o,{src:d}),t=()=>r.jsx(o,{}),i=()=>{const[n,B]=K.useState();return r.jsx(o,{src:n&&URL.createObjectURL(n),children:r.jsx(G,{content:"Upload",icon:"cloud upload",onSelection:C=>B(q.first(C)),primary:!0})})},a=()=>r.jsx(o,{preview:O,src:d}),s=()=>r.jsx(o,{preview:"/path/to/preview.jpg",src:d}),p=()=>r.jsx(o,{preview:O,src:"/path/to/audio.mp3"}),m=()=>r.jsx(o,{preview:"/path/to/preview.jpg",src:"/path/to/audio.mp3"}),c=()=>r.jsx(o,{download:d,name:"Audio.mp3",src:d});e.__docgenInfo={description:"",methods:[],displayName:"Default"};t.__docgenInfo={description:"",methods:[],displayName:"Placeholder"};i.__docgenInfo={description:"",methods:[],displayName:"Upload"};a.__docgenInfo={description:"",methods:[],displayName:"Preview"};s.__docgenInfo={description:"",methods:[],displayName:"ErrorPreview"};p.__docgenInfo={description:"",methods:[],displayName:"ErrorSource"};m.__docgenInfo={description:"",methods:[],displayName:"ErrorPreviewAndSource"};c.__docgenInfo={description:"",methods:[],displayName:"Downloadable"};var u,l,f;e.parameters={...e.parameters,docs:{...(u=e.parameters)==null?void 0:u.docs,source:{originalSource:"() => ",...(f=(l=e.parameters)==null?void 0:l.docs)==null?void 0:f.source}}};var w,g,y;t.parameters={...t.parameters,docs:{...(w=t.parameters)==null?void 0:w.docs,source:{originalSource:"() => ",...(y=(g=t.parameters)==null?void 0:g.docs)==null?void 0:y.source}}};var h,v,_;i.parameters={...i.parameters,docs:{...(h=i.parameters)==null?void 0:h.docs,source:{originalSource:`() => { const [file, setFile] = useState(); return setFile(_.first(files))} primary /> diff --git a/docs/assets/LazyIIIF.stories-CfH75RMo.js b/docs/assets/LazyIIIF.stories-DKyyWUeS.js similarity index 97% rename from docs/assets/LazyIIIF.stories-CfH75RMo.js rename to docs/assets/LazyIIIF.stories-DKyyWUeS.js index 4a7b5f9a..1cef1d6b 100644 --- a/docs/assets/LazyIIIF.stories-CfH75RMo.js +++ b/docs/assets/LazyIIIF.stories-DKyyWUeS.js @@ -1 +1 @@ -import{j as e}from"./jsx-runtime-BTCK_S7S.js";import{r as T}from"./index-CBqU2yxZ.js";import{d as z}from"./index-DfmhmaGJ.js";import{a as F}from"./index-C_X5wfCI.js";import{B as P}from"./Button-Blq7Z6RX.js";import{M as c}from"./Modal-Bz2VEyQG.js";import{_}from"./index-default-C_maRo4o.js";import{i as A}from"./i18n-C8zWlANG.js";import{L as k}from"./LazyMedia-BYbWGqJT.js";import{i as d}from"./test-image-BGrKnxUR.js";import"./_commonjsHelpers-BosuxZz1.js";import"./mapValues-CZh2vnSw.js";import"./pickBy-CU2rOOKe.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-Bu_b4Pek.js";import"./index-Cw1G72V2.js";import"./index-CKJfshIT.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./preview-errors-CzpZmerH.js";import"./debounce-Bq1aTuh-.js";import"./redux-C8f_Y06i.js";import"./objectSpread2-N4c0DWqo.js";import"./defineProperty-CCxoMnQV.js";import"./toPropertyKey-hKuLU48H.js";import"./extends-CCbyfPlC.js";import"./index-DZGZymok.js";import"./v4-D8aEg3BZ.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getElementType-CckcRzoH.js";import"./Icon-2tEtgK8g.js";import"./Label-Cq1fb1cd.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./forEach-CXlln0XP.js";import"./Dimmer-D_gwaesu.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./map-B4PnIEPz.js";import"./index-BBpNyw-T.js";import"./_baseSet-6y0qliU9.js";import"./_baseAssignValue-izmKBXUH.js";import"./_arrayReduce-CrxnWFSq.js";import"./isEmpty-Cyb9hIKi.js";import"./i18next-Sc0HEOoc.js";import"./inherits-D5wXBZoG.js";import"./createClass-D2z1h_eG.js";import"./getPrototypeOf-BYVhAdwF.js";import"./FileInputButton-qbfOXRVs.js";import"./LazyAudio-BiEA90M2.js";import"./LazyLoader-D1S4_28m.js";import"./without-BP-mqg2K.js";import"./isArrayLikeObject-CbXKTyfk.js";import"./Loader-CooidObp.js";import"./Segment-C5_maSSM.js";import"./Transition-DSFEXhCu.js";import"./filter-CVNi8iPS.js";import"./AudioPlayer-DbqX1JnS.js";import"./Message-3p6wyYpA.js";import"./ModalContext-Bu-D9kD-.js";import"./DownloadButton-B5qnjgmD.js";import"./uuid-BH6G0oTz.js";import"./LazyDocument-DOVXXgOt.js";import"./index-D3ylJrlI.js";import"./LazyImage-BiB2Uvja.js";import"./PhotoViewer-CgBZCy1u.js";import"./LazyVideo-DYSkHXXp.js";import"./VideoPlayer-DLJxAPDP.js";import"./Trans-Bk6mzQm0.js";import"./objectWithoutProperties--RY0eV0u.js";import"./utils-Bq6oISwF.js";const r=({manifest:l,options:C={},...s})=>{const[S,m]=T.useState(!1);return e.jsxs(e.Fragment,{children:[e.jsxs(k,{...s,children:[l&&e.jsx(P,{color:s.color,content:s.content||A.t("Common.buttons.iiif"),icon:"images outline",onClick:()=>m(!0)}),s.children]}),S&&e.jsx(c,{centered:!1,closeIcon:!0,onClose:()=>m(!1),open:!0,children:e.jsx(c.Content,{children:e.jsx(F,{iiifContent:l,options:_.defaults(C,{showIIIFBadge:!1})})})})]})};r.__docgenInfo={description:"",methods:[],displayName:"LazyIIIF",props:{children:{required:!1,flowType:{name:"Node"},description:""},color:{required:!1,flowType:{name:"string"},description:""},content:{required:!1,flowType:{name:"string"},description:""},manifest:{required:!1,flowType:{name:"string"},description:""},options:{required:!1,flowType:{name:"any"},description:"",defaultValue:{value:"{}",computed:!1}}}};const L="https://manifests.collections.yale.edu/ycba/obj/21168",M="Manifest",B={en:["George Stubbs, 1724–1806, British, Greenland Falcon, 1780"]},D=[{label:{en:["Copyright Statement"]},value:{en:["Public Domain"]}},{label:{en:["Creator"]},value:{en:["George Stubbs, 1724–1806, British"]}},{label:{en:["Title"]},value:{en:["Greenland Falcon"]}},{label:{en:["Medium"]},value:{en:["beeswax on panel"]}},{label:{en:["Physical Description"]},value:{en:["Support (PTG): 32 x 39 inches (81.3 x 99.1 cm)"]}},{label:{en:["Credit Line"]},value:{en:["Yale Center for British Art, Paul Mellon Collection"]}},{label:{en:["Institution"]},value:{en:["Yale Center for British Art"]}},{label:{en:["Collection"]},value:{en:["Paintings and Sculpture"]}},{label:{en:["Call Number"]},value:{en:["B2001.2.62"]}}],q="https://creativecommons.org/publicdomain/zero/1.0/",N={label:{en:["Rights Description"]},value:{en:["Metadata describing Yale Center for British Art collections is public domain under CC0. Copyright or other restrictions may apply to cultural works or images of those works in this record."]}},U=[{id:"https://static.britishart.yale.edu/images/ycba_logo.jpg",type:"Image"}],Y=[{format:"text/html",id:"https://collections.britishart.yale.edu/catalog/tms:21168",label:{en:["catalog entry at the Yale Center for British Art"]},type:"Text"}],G=[{format:"text/xml",id:"https://harvester-bl.britishart.yale.edu/oaicatmuseum/OAIHandler?verb=GetRecord&identifier=oai:tms.ycba.yale.edu:21168&metadataPrefix=lido",profile:"http://www.lido-schema.org/schema/v1.0/lido-v1.0.xsd",type:"Dataset"},{format:"text/rdf+n3",id:"http://collection.britishart.yale.edu/id/page/object/21168",type:"Dataset"}],R=[{id:"https://manifests.collections.yale.edu/canvas/ycba/a1333c03-be5b-4f5b-a897-7e15e3d17b29",type:"Canvas",label:{en:["recto, cropped to image"]},height:3087,width:3786,items:[{id:"https://manifests.collections.yale.edu/annopage/ycba/a1333c03-be5b-4f5b-a897-7e15e3d17b29",type:"AnnotationPage",items:[{id:"https://manifests.collections.yale.edu/annotation/ycba/a1333c03-be5b-4f5b-a897-7e15e3d17b29",type:"Annotation",motivation:"painting",body:{id:"https://images.collections.yale.edu/iiif/2/ycba:a1333c03-be5b-4f5b-a897-7e15e3d17b29/full/full/0/default.jpg",type:"Image",format:"image/jpeg",service:[{"@id":"https://images.collections.yale.edu/iiif/2/ycba:a1333c03-be5b-4f5b-a897-7e15e3d17b29","@type":"ImageService2",profile:"http://iiif.io/api/image/2/level2.json"}],height:3087,width:3786},target:"https://manifests.collections.yale.edu/canvas/ycba/a1333c03-be5b-4f5b-a897-7e15e3d17b29"}]}],rendering:[{id:"https://media.collections.yale.edu/tiff/ycba/a1333c03-be5b-4f5b-a897-7e15e3d17b29.tif",type:"Image",label:{en:["TIFF for download"]},format:"image/tiff"}],thumbnail:[{id:"https://media.collections.yale.edu/thumbnail/ycba/a1333c03-be5b-4f5b-a897-7e15e3d17b29",type:"Image",width:480,height:391,service:[{"@id":"https://media.collections.yale.edu/thumbnail/ycba/a1333c03-be5b-4f5b-a897-7e15e3d17b29","@type":"ImageService2",profile:"level0"}]}],metadata:[{label:{en:["Image Use Rights"]},value:{en:["Copyright Undetermined: The copyright and related rights status of this Item has been reviewed by the organization that has made the Item available, but the organization was unable to make a conclusive determination as to the copyright status of the Item. Please refer to the organization that has made the Item available for more information. You are free to use this Item in any way that is permitted by the copyright and related rights legislation that applies to your use."]}}]},{id:"https://manifests.collections.yale.edu/canvas/ycba/3f8bfa84-0b32-4f19-8b7e-44f4a3b221d0",type:"Canvas",label:{en:["recto, framed"]},height:4446,width:4512,items:[{id:"https://manifests.collections.yale.edu/annopage/ycba/3f8bfa84-0b32-4f19-8b7e-44f4a3b221d0",type:"AnnotationPage",items:[{id:"https://manifests.collections.yale.edu/annotation/ycba/3f8bfa84-0b32-4f19-8b7e-44f4a3b221d0",type:"Annotation",motivation:"painting",body:{id:"https://images.collections.yale.edu/iiif/2/ycba:3f8bfa84-0b32-4f19-8b7e-44f4a3b221d0/full/full/0/default.jpg",type:"Image",format:"image/jpeg",service:[{"@id":"https://images.collections.yale.edu/iiif/2/ycba:3f8bfa84-0b32-4f19-8b7e-44f4a3b221d0","@type":"ImageService2",profile:"http://iiif.io/api/image/2/level2.json"}],height:4446,width:4512},target:"https://manifests.collections.yale.edu/canvas/ycba/3f8bfa84-0b32-4f19-8b7e-44f4a3b221d0"}]}],rendering:[{id:"https://media.collections.yale.edu/tiff/ycba/3f8bfa84-0b32-4f19-8b7e-44f4a3b221d0.tif",type:"Image",label:{en:["TIFF for download"]},format:"image/tiff"}],thumbnail:[{id:"https://media.collections.yale.edu/thumbnail/ycba/3f8bfa84-0b32-4f19-8b7e-44f4a3b221d0",type:"Image",width:480,height:473,service:[{"@id":"https://media.collections.yale.edu/thumbnail/ycba/3f8bfa84-0b32-4f19-8b7e-44f4a3b221d0","@type":"ImageService2",profile:"level0"}]}],metadata:[{label:{en:["Image Use Rights"]},value:{en:["Copyright Undetermined: The copyright and related rights status of this Item has been reviewed by the organization that has made the Item available, but the organization was unable to make a conclusive determination as to the copyright status of the Item. Please refer to the organization that has made the Item available for more information. You are free to use this Item in any way that is permitted by the copyright and related rights legislation that applies to your use."]}}]},{id:"https://manifests.collections.yale.edu/canvas/ycba/d7e1622d-adfa-4c32-9077-c8c969e72b9a",type:"Canvas",label:{en:["x-radiograph"]},height:17753,width:21262,items:[{id:"https://manifests.collections.yale.edu/annopage/ycba/d7e1622d-adfa-4c32-9077-c8c969e72b9a",type:"AnnotationPage",items:[{id:"https://manifests.collections.yale.edu/annotation/ycba/d7e1622d-adfa-4c32-9077-c8c969e72b9a",type:"Annotation",motivation:"painting",body:{id:"https://images.collections.yale.edu/iiif/2/ycba:d7e1622d-adfa-4c32-9077-c8c969e72b9a/full/full/0/default.jpg",type:"Image",format:"image/jpeg",service:[{"@id":"https://images.collections.yale.edu/iiif/2/ycba:d7e1622d-adfa-4c32-9077-c8c969e72b9a","@type":"ImageService2",profile:"http://iiif.io/api/image/2/level2.json"}],height:17753,width:21262},target:"https://manifests.collections.yale.edu/canvas/ycba/d7e1622d-adfa-4c32-9077-c8c969e72b9a"}]}],rendering:[{id:"https://media.collections.yale.edu/tiff/ycba/d7e1622d-adfa-4c32-9077-c8c969e72b9a.tif",type:"Image",label:{en:["TIFF for download"]},format:"image/tiff"}],thumbnail:[{id:"https://media.collections.yale.edu/thumbnail/ycba/d7e1622d-adfa-4c32-9077-c8c969e72b9a",type:"Image",width:480,height:401,service:[{"@id":"https://media.collections.yale.edu/thumbnail/ycba/d7e1622d-adfa-4c32-9077-c8c969e72b9a","@type":"ImageService2",profile:"level0"}]}],metadata:[{label:{en:["Image Use Rights"]},value:{en:["Copyright Undetermined: The copyright and related rights status of this Item has been reviewed by the organization that has made the Item available, but the organization was unable to make a conclusive determination as to the copyright status of the Item. Please refer to the organization that has made the Item available for more information. You are free to use this Item in any way that is permitted by the copyright and related rights legislation that applies to your use."]}}]}],n={"@context":"http://iiif.io/api/presentation/3/context.json",id:L,type:M,label:B,metadata:D,rights:q,requiredStatement:N,logo:U,homepage:Y,seeAlso:G,items:R},ct={title:"Components/Semantic UI/LazyIIIF",decorators:[z.withKnobs]},t=()=>e.jsx(r,{contentType:"image/jpeg",manifest:n}),a=()=>e.jsx(r,{contentType:"image/jpeg",preview:d,manifest:n,src:d}),i=()=>e.jsx(r,{contentType:"image/jpeg",manifest:"https://iiif.io/api/cookbook/recipe/0009-book-1/manifest.json"}),o=()=>e.jsx(r,{color:"red",contentType:"image/jpeg",manifest:n});t.__docgenInfo={description:"",methods:[],displayName:"Default"};a.__docgenInfo={description:"",methods:[],displayName:"Preview"};i.__docgenInfo={description:"",methods:[],displayName:"StringManifest"};o.__docgenInfo={description:"",methods:[],displayName:"Colored"};var p,f,h;t.parameters={...t.parameters,docs:{...(p=t.parameters)==null?void 0:p.docs,source:{originalSource:"() => ",...(h=(f=t.parameters)==null?void 0:f.docs)==null?void 0:h.source}}};var b,g,y;a.parameters={...a.parameters,docs:{...(b=a.parameters)==null?void 0:b.docs,source:{originalSource:"() => ",...(y=(g=a.parameters)==null?void 0:g.docs)==null?void 0:y.source}}};var u,I,v;i.parameters={...i.parameters,docs:{...(u=i.parameters)==null?void 0:u.docs,source:{originalSource:"() => ",...(v=(I=i.parameters)==null?void 0:I.docs)==null?void 0:v.source}}};var w,j,x;o.parameters={...o.parameters,docs:{...(w=o.parameters)==null?void 0:w.docs,source:{originalSource:"() => ",...(x=(j=o.parameters)==null?void 0:j.docs)==null?void 0:x.source}}};const dt=["Default","Preview","StringManifest","Colored"];export{o as Colored,t as Default,a as Preview,i as StringManifest,dt as __namedExportsOrder,ct as default}; +import{j as e}from"./jsx-runtime-BTCK_S7S.js";import{r as T}from"./index-CBqU2yxZ.js";import{d as z}from"./index-CAen7T_W.js";import{a as F}from"./index-C_X5wfCI.js";import{B as P}from"./Button-Blq7Z6RX.js";import{M as c}from"./Modal-Bz2VEyQG.js";import{_}from"./index-default-C_maRo4o.js";import{i as A}from"./i18n-C8zWlANG.js";import{L as k}from"./LazyMedia-BYbWGqJT.js";import{i as d}from"./test-image-BGrKnxUR.js";import"./_commonjsHelpers-BosuxZz1.js";import"./mapValues-LQZI9uWW.js";import"./pickBy-Us6u5-To.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-DCkRKKtx.js";import"./index-Cw1G72V2.js";import"./index-CKJfshIT.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./preview-errors-CzpZmerH.js";import"./debounce-BkgZrIul.js";import"./redux-C8f_Y06i.js";import"./objectSpread2-N4c0DWqo.js";import"./defineProperty-CCxoMnQV.js";import"./toPropertyKey-hKuLU48H.js";import"./extends-CCbyfPlC.js";import"./index-DZGZymok.js";import"./v4-D8aEg3BZ.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getElementType-CckcRzoH.js";import"./Icon-2tEtgK8g.js";import"./Label-Cq1fb1cd.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./forEach-CXlln0XP.js";import"./Dimmer-D_gwaesu.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./map-B4PnIEPz.js";import"./index-BBpNyw-T.js";import"./_baseSet-6y0qliU9.js";import"./_baseAssignValue-izmKBXUH.js";import"./_arrayReduce-CrxnWFSq.js";import"./isEmpty-Cyb9hIKi.js";import"./i18next-Sc0HEOoc.js";import"./inherits-D5wXBZoG.js";import"./createClass-D2z1h_eG.js";import"./getPrototypeOf-BYVhAdwF.js";import"./FileInputButton-qbfOXRVs.js";import"./LazyAudio-BiEA90M2.js";import"./LazyLoader-D1S4_28m.js";import"./without-BP-mqg2K.js";import"./isArrayLikeObject-CbXKTyfk.js";import"./Loader-CooidObp.js";import"./Segment-C5_maSSM.js";import"./Transition-DSFEXhCu.js";import"./filter-CVNi8iPS.js";import"./AudioPlayer-DbqX1JnS.js";import"./Message-3p6wyYpA.js";import"./ModalContext-Bu-D9kD-.js";import"./DownloadButton-B5qnjgmD.js";import"./uuid-BH6G0oTz.js";import"./LazyDocument-DOVXXgOt.js";import"./index-D3ylJrlI.js";import"./LazyImage-BiB2Uvja.js";import"./PhotoViewer-CgBZCy1u.js";import"./LazyVideo-DYSkHXXp.js";import"./VideoPlayer-DLJxAPDP.js";import"./Trans-Bk6mzQm0.js";import"./objectWithoutProperties--RY0eV0u.js";import"./utils-Bq6oISwF.js";const r=({manifest:l,options:C={},...s})=>{const[S,m]=T.useState(!1);return e.jsxs(e.Fragment,{children:[e.jsxs(k,{...s,children:[l&&e.jsx(P,{color:s.color,content:s.content||A.t("Common.buttons.iiif"),icon:"images outline",onClick:()=>m(!0)}),s.children]}),S&&e.jsx(c,{centered:!1,closeIcon:!0,onClose:()=>m(!1),open:!0,children:e.jsx(c.Content,{children:e.jsx(F,{iiifContent:l,options:_.defaults(C,{showIIIFBadge:!1})})})})]})};r.__docgenInfo={description:"",methods:[],displayName:"LazyIIIF",props:{children:{required:!1,flowType:{name:"Node"},description:""},color:{required:!1,flowType:{name:"string"},description:""},content:{required:!1,flowType:{name:"string"},description:""},manifest:{required:!1,flowType:{name:"string"},description:""},options:{required:!1,flowType:{name:"any"},description:"",defaultValue:{value:"{}",computed:!1}}}};const L="https://manifests.collections.yale.edu/ycba/obj/21168",M="Manifest",B={en:["George Stubbs, 1724–1806, British, Greenland Falcon, 1780"]},D=[{label:{en:["Copyright Statement"]},value:{en:["Public Domain"]}},{label:{en:["Creator"]},value:{en:["George Stubbs, 1724–1806, British"]}},{label:{en:["Title"]},value:{en:["Greenland Falcon"]}},{label:{en:["Medium"]},value:{en:["beeswax on panel"]}},{label:{en:["Physical Description"]},value:{en:["Support (PTG): 32 x 39 inches (81.3 x 99.1 cm)"]}},{label:{en:["Credit Line"]},value:{en:["Yale Center for British Art, Paul Mellon Collection"]}},{label:{en:["Institution"]},value:{en:["Yale Center for British Art"]}},{label:{en:["Collection"]},value:{en:["Paintings and Sculpture"]}},{label:{en:["Call Number"]},value:{en:["B2001.2.62"]}}],q="https://creativecommons.org/publicdomain/zero/1.0/",N={label:{en:["Rights Description"]},value:{en:["Metadata describing Yale Center for British Art collections is public domain under CC0. Copyright or other restrictions may apply to cultural works or images of those works in this record."]}},U=[{id:"https://static.britishart.yale.edu/images/ycba_logo.jpg",type:"Image"}],Y=[{format:"text/html",id:"https://collections.britishart.yale.edu/catalog/tms:21168",label:{en:["catalog entry at the Yale Center for British Art"]},type:"Text"}],G=[{format:"text/xml",id:"https://harvester-bl.britishart.yale.edu/oaicatmuseum/OAIHandler?verb=GetRecord&identifier=oai:tms.ycba.yale.edu:21168&metadataPrefix=lido",profile:"http://www.lido-schema.org/schema/v1.0/lido-v1.0.xsd",type:"Dataset"},{format:"text/rdf+n3",id:"http://collection.britishart.yale.edu/id/page/object/21168",type:"Dataset"}],R=[{id:"https://manifests.collections.yale.edu/canvas/ycba/a1333c03-be5b-4f5b-a897-7e15e3d17b29",type:"Canvas",label:{en:["recto, cropped to image"]},height:3087,width:3786,items:[{id:"https://manifests.collections.yale.edu/annopage/ycba/a1333c03-be5b-4f5b-a897-7e15e3d17b29",type:"AnnotationPage",items:[{id:"https://manifests.collections.yale.edu/annotation/ycba/a1333c03-be5b-4f5b-a897-7e15e3d17b29",type:"Annotation",motivation:"painting",body:{id:"https://images.collections.yale.edu/iiif/2/ycba:a1333c03-be5b-4f5b-a897-7e15e3d17b29/full/full/0/default.jpg",type:"Image",format:"image/jpeg",service:[{"@id":"https://images.collections.yale.edu/iiif/2/ycba:a1333c03-be5b-4f5b-a897-7e15e3d17b29","@type":"ImageService2",profile:"http://iiif.io/api/image/2/level2.json"}],height:3087,width:3786},target:"https://manifests.collections.yale.edu/canvas/ycba/a1333c03-be5b-4f5b-a897-7e15e3d17b29"}]}],rendering:[{id:"https://media.collections.yale.edu/tiff/ycba/a1333c03-be5b-4f5b-a897-7e15e3d17b29.tif",type:"Image",label:{en:["TIFF for download"]},format:"image/tiff"}],thumbnail:[{id:"https://media.collections.yale.edu/thumbnail/ycba/a1333c03-be5b-4f5b-a897-7e15e3d17b29",type:"Image",width:480,height:391,service:[{"@id":"https://media.collections.yale.edu/thumbnail/ycba/a1333c03-be5b-4f5b-a897-7e15e3d17b29","@type":"ImageService2",profile:"level0"}]}],metadata:[{label:{en:["Image Use Rights"]},value:{en:["Copyright Undetermined: The copyright and related rights status of this Item has been reviewed by the organization that has made the Item available, but the organization was unable to make a conclusive determination as to the copyright status of the Item. Please refer to the organization that has made the Item available for more information. You are free to use this Item in any way that is permitted by the copyright and related rights legislation that applies to your use."]}}]},{id:"https://manifests.collections.yale.edu/canvas/ycba/3f8bfa84-0b32-4f19-8b7e-44f4a3b221d0",type:"Canvas",label:{en:["recto, framed"]},height:4446,width:4512,items:[{id:"https://manifests.collections.yale.edu/annopage/ycba/3f8bfa84-0b32-4f19-8b7e-44f4a3b221d0",type:"AnnotationPage",items:[{id:"https://manifests.collections.yale.edu/annotation/ycba/3f8bfa84-0b32-4f19-8b7e-44f4a3b221d0",type:"Annotation",motivation:"painting",body:{id:"https://images.collections.yale.edu/iiif/2/ycba:3f8bfa84-0b32-4f19-8b7e-44f4a3b221d0/full/full/0/default.jpg",type:"Image",format:"image/jpeg",service:[{"@id":"https://images.collections.yale.edu/iiif/2/ycba:3f8bfa84-0b32-4f19-8b7e-44f4a3b221d0","@type":"ImageService2",profile:"http://iiif.io/api/image/2/level2.json"}],height:4446,width:4512},target:"https://manifests.collections.yale.edu/canvas/ycba/3f8bfa84-0b32-4f19-8b7e-44f4a3b221d0"}]}],rendering:[{id:"https://media.collections.yale.edu/tiff/ycba/3f8bfa84-0b32-4f19-8b7e-44f4a3b221d0.tif",type:"Image",label:{en:["TIFF for download"]},format:"image/tiff"}],thumbnail:[{id:"https://media.collections.yale.edu/thumbnail/ycba/3f8bfa84-0b32-4f19-8b7e-44f4a3b221d0",type:"Image",width:480,height:473,service:[{"@id":"https://media.collections.yale.edu/thumbnail/ycba/3f8bfa84-0b32-4f19-8b7e-44f4a3b221d0","@type":"ImageService2",profile:"level0"}]}],metadata:[{label:{en:["Image Use Rights"]},value:{en:["Copyright Undetermined: The copyright and related rights status of this Item has been reviewed by the organization that has made the Item available, but the organization was unable to make a conclusive determination as to the copyright status of the Item. Please refer to the organization that has made the Item available for more information. You are free to use this Item in any way that is permitted by the copyright and related rights legislation that applies to your use."]}}]},{id:"https://manifests.collections.yale.edu/canvas/ycba/d7e1622d-adfa-4c32-9077-c8c969e72b9a",type:"Canvas",label:{en:["x-radiograph"]},height:17753,width:21262,items:[{id:"https://manifests.collections.yale.edu/annopage/ycba/d7e1622d-adfa-4c32-9077-c8c969e72b9a",type:"AnnotationPage",items:[{id:"https://manifests.collections.yale.edu/annotation/ycba/d7e1622d-adfa-4c32-9077-c8c969e72b9a",type:"Annotation",motivation:"painting",body:{id:"https://images.collections.yale.edu/iiif/2/ycba:d7e1622d-adfa-4c32-9077-c8c969e72b9a/full/full/0/default.jpg",type:"Image",format:"image/jpeg",service:[{"@id":"https://images.collections.yale.edu/iiif/2/ycba:d7e1622d-adfa-4c32-9077-c8c969e72b9a","@type":"ImageService2",profile:"http://iiif.io/api/image/2/level2.json"}],height:17753,width:21262},target:"https://manifests.collections.yale.edu/canvas/ycba/d7e1622d-adfa-4c32-9077-c8c969e72b9a"}]}],rendering:[{id:"https://media.collections.yale.edu/tiff/ycba/d7e1622d-adfa-4c32-9077-c8c969e72b9a.tif",type:"Image",label:{en:["TIFF for download"]},format:"image/tiff"}],thumbnail:[{id:"https://media.collections.yale.edu/thumbnail/ycba/d7e1622d-adfa-4c32-9077-c8c969e72b9a",type:"Image",width:480,height:401,service:[{"@id":"https://media.collections.yale.edu/thumbnail/ycba/d7e1622d-adfa-4c32-9077-c8c969e72b9a","@type":"ImageService2",profile:"level0"}]}],metadata:[{label:{en:["Image Use Rights"]},value:{en:["Copyright Undetermined: The copyright and related rights status of this Item has been reviewed by the organization that has made the Item available, but the organization was unable to make a conclusive determination as to the copyright status of the Item. Please refer to the organization that has made the Item available for more information. You are free to use this Item in any way that is permitted by the copyright and related rights legislation that applies to your use."]}}]}],n={"@context":"http://iiif.io/api/presentation/3/context.json",id:L,type:M,label:B,metadata:D,rights:q,requiredStatement:N,logo:U,homepage:Y,seeAlso:G,items:R},ct={title:"Components/Semantic UI/LazyIIIF",decorators:[z.withKnobs]},t=()=>e.jsx(r,{contentType:"image/jpeg",manifest:n}),a=()=>e.jsx(r,{contentType:"image/jpeg",preview:d,manifest:n,src:d}),i=()=>e.jsx(r,{contentType:"image/jpeg",manifest:"https://iiif.io/api/cookbook/recipe/0009-book-1/manifest.json"}),o=()=>e.jsx(r,{color:"red",contentType:"image/jpeg",manifest:n});t.__docgenInfo={description:"",methods:[],displayName:"Default"};a.__docgenInfo={description:"",methods:[],displayName:"Preview"};i.__docgenInfo={description:"",methods:[],displayName:"StringManifest"};o.__docgenInfo={description:"",methods:[],displayName:"Colored"};var p,f,h;t.parameters={...t.parameters,docs:{...(p=t.parameters)==null?void 0:p.docs,source:{originalSource:"() => ",...(h=(f=t.parameters)==null?void 0:f.docs)==null?void 0:h.source}}};var b,g,y;a.parameters={...a.parameters,docs:{...(b=a.parameters)==null?void 0:b.docs,source:{originalSource:"() => ",...(y=(g=a.parameters)==null?void 0:g.docs)==null?void 0:y.source}}};var u,I,v;i.parameters={...i.parameters,docs:{...(u=i.parameters)==null?void 0:u.docs,source:{originalSource:"() => ",...(v=(I=i.parameters)==null?void 0:I.docs)==null?void 0:v.source}}};var w,j,x;o.parameters={...o.parameters,docs:{...(w=o.parameters)==null?void 0:w.docs,source:{originalSource:"() => ",...(x=(j=o.parameters)==null?void 0:j.docs)==null?void 0:x.source}}};const dt=["Default","Preview","StringManifest","Colored"];export{o as Colored,t as Default,a as Preview,i as StringManifest,dt as __namedExportsOrder,ct as default}; diff --git a/docs/assets/LazyMedia.stories-DjiBIJqO.js b/docs/assets/LazyMedia.stories-s5JqQB64.js similarity index 93% rename from docs/assets/LazyMedia.stories-DjiBIJqO.js rename to docs/assets/LazyMedia.stories-s5JqQB64.js index 33d2a955..55ee1041 100644 --- a/docs/assets/LazyMedia.stories-DjiBIJqO.js +++ b/docs/assets/LazyMedia.stories-s5JqQB64.js @@ -1,4 +1,4 @@ -import{j as p}from"./jsx-runtime-BTCK_S7S.js";import{r as M}from"./index-CBqU2yxZ.js";import{d as S}from"./index-DfmhmaGJ.js";import{L as m}from"./LazyMedia-BYbWGqJT.js";import{a as T}from"./SampleAudio-DqClFjld.js";import{i as D}from"./test-image-BGrKnxUR.js";import"./_commonjsHelpers-BosuxZz1.js";import"./mapValues-CZh2vnSw.js";import"./pickBy-CU2rOOKe.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-Bu_b4Pek.js";import"./index-Cw1G72V2.js";import"./index-CKJfshIT.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./preview-errors-CzpZmerH.js";import"./debounce-Bq1aTuh-.js";import"./Icon-2tEtgK8g.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getElementType-CckcRzoH.js";import"./index-default-C_maRo4o.js";import"./FileInputButton-qbfOXRVs.js";import"./Button-Blq7Z6RX.js";import"./Label-Cq1fb1cd.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./forEach-CXlln0XP.js";import"./Dimmer-D_gwaesu.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./index-DZGZymok.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./map-B4PnIEPz.js";import"./i18n-C8zWlANG.js";import"./i18next-Sc0HEOoc.js";import"./toPropertyKey-hKuLU48H.js";import"./defineProperty-CCxoMnQV.js";import"./inherits-D5wXBZoG.js";import"./createClass-D2z1h_eG.js";import"./getPrototypeOf-BYVhAdwF.js";import"./LazyAudio-BiEA90M2.js";import"./LazyLoader-D1S4_28m.js";import"./without-BP-mqg2K.js";import"./isArrayLikeObject-CbXKTyfk.js";import"./Loader-CooidObp.js";import"./Segment-C5_maSSM.js";import"./Transition-DSFEXhCu.js";import"./_baseAssignValue-izmKBXUH.js";import"./filter-CVNi8iPS.js";import"./AudioPlayer-DbqX1JnS.js";import"./Message-3p6wyYpA.js";import"./Modal-Bz2VEyQG.js";import"./index-BBpNyw-T.js";import"./_baseSet-6y0qliU9.js";import"./_arrayReduce-CrxnWFSq.js";import"./isEmpty-Cyb9hIKi.js";import"./ModalContext-Bu-D9kD-.js";import"./DownloadButton-B5qnjgmD.js";import"./uuid-BH6G0oTz.js";import"./LazyDocument-DOVXXgOt.js";import"./index-D3ylJrlI.js";import"./LazyImage-BiB2Uvja.js";import"./PhotoViewer-CgBZCy1u.js";import"./LazyVideo-DYSkHXXp.js";import"./VideoPlayer-DLJxAPDP.js";import"./Trans-Bk6mzQm0.js";import"./objectWithoutProperties--RY0eV0u.js";import"./utils-Bq6oISwF.js";const b=""+new URL("sample2-Cg9hDj_E.pdf",import.meta.url).href,Wo={title:"Components/Semantic UI/LazyMedia",decorators:[S.withKnobs]},o=()=>p.jsx(m,{}),r=()=>p.jsx(m,{contentType:"audio/mp3",src:T}),t=()=>p.jsx(m,{contentType:"application/pdf",src:b}),e=()=>p.jsx(m,{contentType:"image/jpg",src:D}),i=()=>{const[a,h]=M.useState();return p.jsx(m,{contentType:a&&a.type,onUpload:z=>h(z),src:a&&URL.createObjectURL(a)})};o.__docgenInfo={description:"",methods:[],displayName:"Default"};r.__docgenInfo={description:"",methods:[],displayName:"Audio"};t.__docgenInfo={description:"",methods:[],displayName:"Document"};e.__docgenInfo={description:"",methods:[],displayName:"Image"};i.__docgenInfo={description:"",methods:[],displayName:"Uploadable"};var s,c,n;o.parameters={...o.parameters,docs:{...(s=o.parameters)==null?void 0:s.docs,source:{originalSource:"() => ",...(n=(c=o.parameters)==null?void 0:c.docs)==null?void 0:n.source}}};var d,u,l;r.parameters={...r.parameters,docs:{...(d=r.parameters)==null?void 0:d.docs,source:{originalSource:"() => ",...(l=(u=r.parameters)==null?void 0:u.docs)==null?void 0:l.source}}};var f,y,g;t.parameters={...t.parameters,docs:{...(f=t.parameters)==null?void 0:f.docs,source:{originalSource:"() => ",...(g=(y=t.parameters)==null?void 0:y.docs)==null?void 0:g.source}}};var L,_,j;e.parameters={...e.parameters,docs:{...(L=e.parameters)==null?void 0:L.docs,source:{originalSource:"() => ",...(j=(_=e.parameters)==null?void 0:_.docs)==null?void 0:j.source}}};var x,U,I;i.parameters={...i.parameters,docs:{...(x=i.parameters)==null?void 0:x.docs,source:{originalSource:`() => { +import{j as p}from"./jsx-runtime-BTCK_S7S.js";import{r as M}from"./index-CBqU2yxZ.js";import{d as S}from"./index-CAen7T_W.js";import{L as m}from"./LazyMedia-BYbWGqJT.js";import{a as T}from"./SampleAudio-DqClFjld.js";import{i as D}from"./test-image-BGrKnxUR.js";import"./_commonjsHelpers-BosuxZz1.js";import"./mapValues-LQZI9uWW.js";import"./pickBy-Us6u5-To.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-DCkRKKtx.js";import"./index-Cw1G72V2.js";import"./index-CKJfshIT.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./preview-errors-CzpZmerH.js";import"./debounce-BkgZrIul.js";import"./Icon-2tEtgK8g.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getElementType-CckcRzoH.js";import"./index-default-C_maRo4o.js";import"./FileInputButton-qbfOXRVs.js";import"./Button-Blq7Z6RX.js";import"./Label-Cq1fb1cd.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./forEach-CXlln0XP.js";import"./Dimmer-D_gwaesu.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./index-DZGZymok.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./map-B4PnIEPz.js";import"./i18n-C8zWlANG.js";import"./i18next-Sc0HEOoc.js";import"./toPropertyKey-hKuLU48H.js";import"./defineProperty-CCxoMnQV.js";import"./inherits-D5wXBZoG.js";import"./createClass-D2z1h_eG.js";import"./getPrototypeOf-BYVhAdwF.js";import"./LazyAudio-BiEA90M2.js";import"./LazyLoader-D1S4_28m.js";import"./without-BP-mqg2K.js";import"./isArrayLikeObject-CbXKTyfk.js";import"./Loader-CooidObp.js";import"./Segment-C5_maSSM.js";import"./Transition-DSFEXhCu.js";import"./_baseAssignValue-izmKBXUH.js";import"./filter-CVNi8iPS.js";import"./AudioPlayer-DbqX1JnS.js";import"./Message-3p6wyYpA.js";import"./Modal-Bz2VEyQG.js";import"./index-BBpNyw-T.js";import"./_baseSet-6y0qliU9.js";import"./_arrayReduce-CrxnWFSq.js";import"./isEmpty-Cyb9hIKi.js";import"./ModalContext-Bu-D9kD-.js";import"./DownloadButton-B5qnjgmD.js";import"./uuid-BH6G0oTz.js";import"./LazyDocument-DOVXXgOt.js";import"./index-D3ylJrlI.js";import"./LazyImage-BiB2Uvja.js";import"./PhotoViewer-CgBZCy1u.js";import"./LazyVideo-DYSkHXXp.js";import"./VideoPlayer-DLJxAPDP.js";import"./Trans-Bk6mzQm0.js";import"./objectWithoutProperties--RY0eV0u.js";import"./utils-Bq6oISwF.js";const b=""+new URL("sample2-Cg9hDj_E.pdf",import.meta.url).href,Wo={title:"Components/Semantic UI/LazyMedia",decorators:[S.withKnobs]},o=()=>p.jsx(m,{}),r=()=>p.jsx(m,{contentType:"audio/mp3",src:T}),t=()=>p.jsx(m,{contentType:"application/pdf",src:b}),e=()=>p.jsx(m,{contentType:"image/jpg",src:D}),i=()=>{const[a,h]=M.useState();return p.jsx(m,{contentType:a&&a.type,onUpload:z=>h(z),src:a&&URL.createObjectURL(a)})};o.__docgenInfo={description:"",methods:[],displayName:"Default"};r.__docgenInfo={description:"",methods:[],displayName:"Audio"};t.__docgenInfo={description:"",methods:[],displayName:"Document"};e.__docgenInfo={description:"",methods:[],displayName:"Image"};i.__docgenInfo={description:"",methods:[],displayName:"Uploadable"};var s,c,n;o.parameters={...o.parameters,docs:{...(s=o.parameters)==null?void 0:s.docs,source:{originalSource:"() => ",...(n=(c=o.parameters)==null?void 0:c.docs)==null?void 0:n.source}}};var d,u,l;r.parameters={...r.parameters,docs:{...(d=r.parameters)==null?void 0:d.docs,source:{originalSource:"() => ",...(l=(u=r.parameters)==null?void 0:u.docs)==null?void 0:l.source}}};var f,y,g;t.parameters={...t.parameters,docs:{...(f=t.parameters)==null?void 0:f.docs,source:{originalSource:"() => ",...(g=(y=t.parameters)==null?void 0:y.docs)==null?void 0:g.source}}};var L,_,j;e.parameters={...e.parameters,docs:{...(L=e.parameters)==null?void 0:L.docs,source:{originalSource:"() => ",...(j=(_=e.parameters)==null?void 0:_.docs)==null?void 0:j.source}}};var x,U,I;i.parameters={...i.parameters,docs:{...(x=i.parameters)==null?void 0:x.docs,source:{originalSource:`() => { const [file, setFile] = useState(); return setFile(f)} src={file && URL.createObjectURL(file)} />; }`,...(I=(U=i.parameters)==null?void 0:U.docs)==null?void 0:I.source}}};const Xo=["Default","Audio","Document","Image","Uploadable"];export{r as Audio,o as Default,t as Document,e as Image,i as Uploadable,Xo as __namedExportsOrder,Wo as default}; diff --git a/docs/assets/LinkButton.stories-DvQmvDuy.js b/docs/assets/LinkButton.stories-De_2Ejvz.js similarity index 82% rename from docs/assets/LinkButton.stories-DvQmvDuy.js rename to docs/assets/LinkButton.stories-De_2Ejvz.js index 62fbfcb7..fbe1c628 100644 --- a/docs/assets/LinkButton.stories-DvQmvDuy.js +++ b/docs/assets/LinkButton.stories-De_2Ejvz.js @@ -1 +1 @@ -import{j as p}from"./jsx-runtime-BTCK_S7S.js";import"./index-CBqU2yxZ.js";import{a as n}from"./chunk-WFFRPTHA-B2vgThZf.js";import{d as m}from"./index-DfmhmaGJ.js";import{L as s}from"./LinkButton-COql2obt.js";import"./_commonjsHelpers-BosuxZz1.js";import"./preview-errors-CzpZmerH.js";import"./index-CKJfshIT.js";import"./v4-D8aEg3BZ.js";import"./mapValues-CZh2vnSw.js";import"./pickBy-CU2rOOKe.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-Bu_b4Pek.js";import"./index-Cw1G72V2.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./debounce-Bq1aTuh-.js";import"./Button-Blq7Z6RX.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getElementType-CckcRzoH.js";import"./Icon-2tEtgK8g.js";import"./Label-Cq1fb1cd.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./forEach-CXlln0XP.js";import"./Dimmer-D_gwaesu.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./index-DZGZymok.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./map-B4PnIEPz.js";const H={title:"Components/Semantic UI/LinkButton",decorators:[m.withKnobs]},t=()=>p.jsx(s,{content:m.text("Text","This is a link button"),onClick:n("onclick")});t.__docgenInfo={description:"",methods:[],displayName:"Default"};var o,i,r;t.parameters={...t.parameters,docs:{...(o=t.parameters)==null?void 0:o.docs,source:{originalSource:"() => ",...(r=(i=t.parameters)==null?void 0:i.docs)==null?void 0:r.source}}};const J=["Default"];export{t as Default,J as __namedExportsOrder,H as default}; +import{j as p}from"./jsx-runtime-BTCK_S7S.js";import"./index-CBqU2yxZ.js";import{a as n}from"./chunk-WFFRPTHA-B2vgThZf.js";import{d as m}from"./index-CAen7T_W.js";import{L as s}from"./LinkButton-COql2obt.js";import"./_commonjsHelpers-BosuxZz1.js";import"./preview-errors-CzpZmerH.js";import"./index-CKJfshIT.js";import"./v4-D8aEg3BZ.js";import"./mapValues-LQZI9uWW.js";import"./pickBy-Us6u5-To.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-DCkRKKtx.js";import"./index-Cw1G72V2.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./debounce-BkgZrIul.js";import"./Button-Blq7Z6RX.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getElementType-CckcRzoH.js";import"./Icon-2tEtgK8g.js";import"./Label-Cq1fb1cd.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./forEach-CXlln0XP.js";import"./Dimmer-D_gwaesu.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./index-DZGZymok.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./map-B4PnIEPz.js";const H={title:"Components/Semantic UI/LinkButton",decorators:[m.withKnobs]},t=()=>p.jsx(s,{content:m.text("Text","This is a link button"),onClick:n("onclick")});t.__docgenInfo={description:"",methods:[],displayName:"Default"};var o,i,r;t.parameters={...t.parameters,docs:{...(o=t.parameters)==null?void 0:o.docs,source:{originalSource:"() => ",...(r=(i=t.parameters)==null?void 0:i.docs)==null?void 0:r.source}}};const J=["Default"];export{t as Default,J as __namedExportsOrder,H as default}; diff --git a/docs/assets/LinkLabel.stories-t99Urlye.js b/docs/assets/LinkLabel.stories-CBgMoLWU.js similarity index 90% rename from docs/assets/LinkLabel.stories-t99Urlye.js rename to docs/assets/LinkLabel.stories-CBgMoLWU.js index 8b34d5dc..84d1665c 100644 --- a/docs/assets/LinkLabel.stories-t99Urlye.js +++ b/docs/assets/LinkLabel.stories-CBgMoLWU.js @@ -1,4 +1,4 @@ -import{j as o}from"./jsx-runtime-BTCK_S7S.js";import"./index-CBqU2yxZ.js";import{a}from"./chunk-WFFRPTHA-B2vgThZf.js";import{d as r}from"./index-DfmhmaGJ.js";import{F as i}from"./Form-fErk-qk_.js";import{L as l}from"./LinkLabel-oB1DYe7W.js";import"./_commonjsHelpers-BosuxZz1.js";import"./preview-errors-CzpZmerH.js";import"./index-CKJfshIT.js";import"./v4-D8aEg3BZ.js";import"./mapValues-CZh2vnSw.js";import"./pickBy-CU2rOOKe.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-Bu_b4Pek.js";import"./index-Cw1G72V2.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./debounce-Bq1aTuh-.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getElementType-CckcRzoH.js";import"./Button-Blq7Z6RX.js";import"./Icon-2tEtgK8g.js";import"./Label-Cq1fb1cd.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./forEach-CXlln0XP.js";import"./Dimmer-D_gwaesu.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./index-DZGZymok.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./map-B4PnIEPz.js";import"./Checkbox-C9uAfnsM.js";import"./_baseSet-6y0qliU9.js";import"./_baseAssignValue-izmKBXUH.js";import"./Dropdown-Di2cPjwR.js";import"./without-BP-mqg2K.js";import"./isArrayLikeObject-CbXKTyfk.js";import"./isEmpty-Cyb9hIKi.js";import"./deburr-CEfyoYOr.js";import"./index-BBpNyw-T.js";import"./_arrayReduce-CrxnWFSq.js";import"./filter-CVNi8iPS.js";import"./Input--hQVCRQV.js";import"./LinkButton-COql2obt.js";const mt={title:"Components/Semantic UI/LinkLabel",decorators:[r.withKnobs]},t=()=>o.jsx(i,{children:o.jsx(i.Input,{name:"field",input:{"aria-label":"test-field"},label:()=>o.jsx(l,{content:r.text("Text","Click here"),htmlFor:"field",label:r.text("Label","My label"),onClick:a("click")})})});t.__docgenInfo={description:"",methods:[],displayName:"Default"};var m,e,p;t.parameters={...t.parameters,docs:{...(m=t.parameters)==null?void 0:m.docs,source:{originalSource:`() => +import{j as o}from"./jsx-runtime-BTCK_S7S.js";import"./index-CBqU2yxZ.js";import{a}from"./chunk-WFFRPTHA-B2vgThZf.js";import{d as r}from"./index-CAen7T_W.js";import{F as i}from"./Form-fErk-qk_.js";import{L as l}from"./LinkLabel-oB1DYe7W.js";import"./_commonjsHelpers-BosuxZz1.js";import"./preview-errors-CzpZmerH.js";import"./index-CKJfshIT.js";import"./v4-D8aEg3BZ.js";import"./mapValues-LQZI9uWW.js";import"./pickBy-Us6u5-To.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-DCkRKKtx.js";import"./index-Cw1G72V2.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./debounce-BkgZrIul.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getElementType-CckcRzoH.js";import"./Button-Blq7Z6RX.js";import"./Icon-2tEtgK8g.js";import"./Label-Cq1fb1cd.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./forEach-CXlln0XP.js";import"./Dimmer-D_gwaesu.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./index-DZGZymok.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./map-B4PnIEPz.js";import"./Checkbox-C9uAfnsM.js";import"./_baseSet-6y0qliU9.js";import"./_baseAssignValue-izmKBXUH.js";import"./Dropdown-Di2cPjwR.js";import"./without-BP-mqg2K.js";import"./isArrayLikeObject-CbXKTyfk.js";import"./isEmpty-Cyb9hIKi.js";import"./deburr-CEfyoYOr.js";import"./index-BBpNyw-T.js";import"./_arrayReduce-CrxnWFSq.js";import"./filter-CVNi8iPS.js";import"./Input--hQVCRQV.js";import"./LinkButton-COql2obt.js";const mt={title:"Components/Semantic UI/LinkLabel",decorators:[r.withKnobs]},t=()=>o.jsx(i,{children:o.jsx(i.Input,{name:"field",input:{"aria-label":"test-field"},label:()=>o.jsx(l,{content:r.text("Text","Click here"),htmlFor:"field",label:r.text("Label","My label"),onClick:a("click")})})});t.__docgenInfo={description:"",methods:[],displayName:"Default"};var m,e,p;t.parameters={...t.parameters,docs:{...(m=t.parameters)==null?void 0:m.docs,source:{originalSource:`() => } /> diff --git a/docs/assets/List-B05DD_Os.js b/docs/assets/List-tmAiyZhD.js similarity index 99% rename from docs/assets/List-B05DD_Os.js rename to docs/assets/List-tmAiyZhD.js index 6ee709de..7be45842 100644 --- a/docs/assets/List-B05DD_Os.js +++ b/docs/assets/List-tmAiyZhD.js @@ -1,4 +1,4 @@ -var L=Object.defineProperty;var N=(s,d,e)=>d in s?L(s,d,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[d]=e;var E=(s,d,e)=>(N(s,typeof d!="symbol"?d+"":d,e),e);import{j as n}from"./jsx-runtime-BTCK_S7S.js";import{r as f}from"./index-CBqU2yxZ.js";import{C as A}from"./Confirm-Dw9rt56R.js";import{P as Q}from"./Pagination-D0HmnRDL.js";import{G as m}from"./Grid-Czr5owxQ.js";import{M as q}from"./Menu-9i0apxqd.js";import{B as g}from"./Button-Blq7Z6RX.js";import{H as x}from"./Header-BJ3NNdPz.js";import{I as C}from"./Icon-2tEtgK8g.js";import{_ as l}from"./index-default-C_maRo4o.js";import{i as u}from"./i18n-C8zWlANG.js";import{D as F}from"./DropdownButton-D3g-r0e9.js";import{E as S}from"./EditModal-DRtAb_yR.js";import{L as w}from"./Label-Cq1fb1cd.js";import"./index.es28-dE8xdd4L.js";import{F as T}from"./Form-fErk-qk_.js";import{I as M}from"./Input--hQVCRQV.js";import{C as I}from"./Checkbox-C9uAfnsM.js";import{D as B}from"./Dropdown-Di2cPjwR.js";import{M as j}from"./Modal-Bz2VEyQG.js";import{A as _}from"./AssociatedDropdown-CR7UI3kV.js";import{F as R}from"./FuzzyDate-RqvLBloE.js";import{M as $}from"./ModalContext-Bu-D9kD-.js";import{T as H}from"./Trans-Bk6mzQm0.js";const c={boolean:"boolean",date:"date",integer:"integer",relationship:"relationship",select:"select",string:"string",text:"text"},a={equal:"equal",notEqual:"not_equal",contain:"contain",notContain:"not_contain",empty:"empty",notEmpty:"not_empty",greaterThan:"greater_than",lessThan:"less_than"},O=[{key:a.equal,value:a.equal,text:u.t("ListFilters.operators.equal")},{key:a.notEqual,value:a.notEqual,text:u.t("ListFilters.operators.notEqual")},{key:a.contain,value:a.contain,text:u.t("ListFilters.operators.contain")},{key:a.notContain,value:a.notContain,text:u.t("ListFilters.operators.notContain")},{key:a.empty,value:a.empty,text:u.t("ListFilters.operators.empty")},{key:a.notEmpty,value:a.notEmpty,text:u.t("ListFilters.operators.notEmpty")},{key:a.greaterThan,value:a.greaterThan,text:u.t("ListFilters.operators.greaterThan")},{key:a.lessThan,value:a.lessThan,text:u.t("ListFilters.operators.lessThan")}],z={[c.boolean]:[a.equal],[c.date]:[a.equal],[c.relationship]:[a.equal,a.notEqual,a.empty,a.notEmpty],[c.select]:[a.equal,a.notEqual,a.empty,a.notEmpty],[c.string]:[a.equal,a.notEqual,a.contain,a.notContain,a.empty,a.notEmpty],[c.text]:[a.contain,a.notContain,a.empty,a.notEmpty]},K=s=>{const d=f.useCallback(t=>{const i=z[t];return l.filter(O,y=>!i||l.contains(i,y.key))},[]),e=t=>t.label,r=f.useCallback(t=>{if(t.operator===a.empty||t.operator===a.notEmpty)return null;if(t.type===c.boolean)return n.jsx(I,{onChange:()=>s.onSaveChildAssociation("filters",{...t,value:!t.value}),checked:t.value});if(t.type===c.string||t.type===c.text||t.type===c.integer)return n.jsx(M,{onChange:(i,{value:y})=>s.onSaveChildAssociation("filters",{...t,value:y}),value:t.value});if(t.type===c.date)return n.jsx(R,{date:t.value||{},description:!1,onChange:i=>{s.onSaveChildAssociation("filters",{...t,value:i})},title:t.label});if(t.type===c.select)return n.jsx(B,{onChange:(i,{value:y})=>s.onSaveChildAssociation("filters",{...t,value:y}),options:t.options,selectOnBlur:!1,selection:!0,value:t.value});if(t.type===c.relationship){const{collectionName:i,onSearch:y,renderOption:p,renderSearchQuery:h,searchQuery:v,value:k}=t;return i&&y&&p?n.jsx(_,{collectionName:i,onSearch:y,onSelection:b=>{s.onSaveChildAssociation("filters",{...t,searchQuery:h&&h(b),value:b.id})},renderOption:p,required:!0,searchQuery:v||"",value:k||null}):null}return null},[s.item.filters,s.onSaveChildAssociation]),o=f.useMemo(()=>l.sortBy(s.filters,s.item.onSort||e),[s.filters,s.item.onSort]);return f.useEffect(()=>{l.each(s.item.filters,t=>{const i=l.findWhere(s.filters,{key:t.key});t.type===c.boolean&&(i.value=!1),s.onSaveChildAssociation("filters",l.defaults(t,i))})},[]),n.jsx($.Consumer,{children:t=>n.jsxs(j,{as:T,centered:!1,className:"list-filters-modal",mountNode:t,noValidate:!0,open:!0,size:"small",children:[n.jsx(j.Header,{children:n.jsxs(m,{columns:2,children:[n.jsx(m.Column,{verticalAlign:"middle",children:n.jsx(x,{content:u.t("ListFilters.title")})}),n.jsxs(m.Column,{textAlign:"right",children:[n.jsx(F,{color:"green",icon:"plus",options:l.map(o,i=>({key:i.key,value:i.key,text:i.label})),onChange:(i,{value:y})=>{const p=l.findWhere(s.filters,{key:y});s.onSaveChildAssociation("filters",s.onCreateFilter({...p,operator:a.equal}))},scrolling:!0,text:u.t("ListFilters.buttons.add"),value:""}),n.jsx(g,{color:"red",content:u.t("ListFilters.buttons.reset"),icon:"repeat",onClick:()=>s.onReset(),style:{marginLeft:"1em"}})]})]})}),n.jsx(j.Content,{children:!l.isEmpty(s.item.filters)&&n.jsx(m,{children:l.map(s.item.filters,i=>n.jsxs(m.Row,{columns:4,verticalAlign:"middle",children:[n.jsx(m.Column,{children:n.jsx(x,{content:i.label})}),n.jsx(m.Column,{width:5,children:n.jsx(B,{options:d(i.type),onChange:(y,{value:p})=>s.onSaveChildAssociation("filters",{...l.omit(i,"value"),operator:p}),selection:!0,value:i.operator})}),n.jsx(m.Column,{width:5,children:r(i)}),n.jsx(m.Column,{width:1,children:n.jsx(g,{basic:!0,icon:"times",onClick:()=>s.onDeleteChildAssociation("filters",i)})})]},i.key))})}),s.children]})})};K.__docgenInfo={description:"",methods:[],displayName:"ListFilters",props:{filters:{required:!0,flowType:{name:"Array",elements:[{name:"signature",type:"object",raw:`{ +var L=Object.defineProperty;var N=(s,d,e)=>d in s?L(s,d,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[d]=e;var E=(s,d,e)=>(N(s,typeof d!="symbol"?d+"":d,e),e);import{j as n}from"./jsx-runtime-BTCK_S7S.js";import{r as f}from"./index-CBqU2yxZ.js";import{C as A}from"./Confirm-Dw9rt56R.js";import{P as Q}from"./Pagination-D0HmnRDL.js";import{G as m}from"./Grid-Czr5owxQ.js";import{M as q}from"./Menu-9i0apxqd.js";import{B as g}from"./Button-Blq7Z6RX.js";import{H as x}from"./Header-BJ3NNdPz.js";import{I as C}from"./Icon-2tEtgK8g.js";import{_ as l}from"./index-default-C_maRo4o.js";import{i as u}from"./i18n-C8zWlANG.js";import{D as F}from"./DropdownButton-D3g-r0e9.js";import{E as S}from"./EditModal-WP1CvOLP.js";import{L as w}from"./Label-Cq1fb1cd.js";import"./index.es28-Dp3-vHIY.js";import{F as T}from"./Form-fErk-qk_.js";import{I as M}from"./Input--hQVCRQV.js";import{C as I}from"./Checkbox-C9uAfnsM.js";import{D as B}from"./Dropdown-Di2cPjwR.js";import{M as j}from"./Modal-Bz2VEyQG.js";import{A as _}from"./AssociatedDropdown-DQppeffT.js";import{F as R}from"./FuzzyDate-Bx1epA16.js";import{M as $}from"./ModalContext-Bu-D9kD-.js";import{T as H}from"./Trans-Bk6mzQm0.js";const c={boolean:"boolean",date:"date",integer:"integer",relationship:"relationship",select:"select",string:"string",text:"text"},a={equal:"equal",notEqual:"not_equal",contain:"contain",notContain:"not_contain",empty:"empty",notEmpty:"not_empty",greaterThan:"greater_than",lessThan:"less_than"},O=[{key:a.equal,value:a.equal,text:u.t("ListFilters.operators.equal")},{key:a.notEqual,value:a.notEqual,text:u.t("ListFilters.operators.notEqual")},{key:a.contain,value:a.contain,text:u.t("ListFilters.operators.contain")},{key:a.notContain,value:a.notContain,text:u.t("ListFilters.operators.notContain")},{key:a.empty,value:a.empty,text:u.t("ListFilters.operators.empty")},{key:a.notEmpty,value:a.notEmpty,text:u.t("ListFilters.operators.notEmpty")},{key:a.greaterThan,value:a.greaterThan,text:u.t("ListFilters.operators.greaterThan")},{key:a.lessThan,value:a.lessThan,text:u.t("ListFilters.operators.lessThan")}],z={[c.boolean]:[a.equal],[c.date]:[a.equal],[c.relationship]:[a.equal,a.notEqual,a.empty,a.notEmpty],[c.select]:[a.equal,a.notEqual,a.empty,a.notEmpty],[c.string]:[a.equal,a.notEqual,a.contain,a.notContain,a.empty,a.notEmpty],[c.text]:[a.contain,a.notContain,a.empty,a.notEmpty]},K=s=>{const d=f.useCallback(t=>{const i=z[t];return l.filter(O,y=>!i||l.contains(i,y.key))},[]),e=t=>t.label,r=f.useCallback(t=>{if(t.operator===a.empty||t.operator===a.notEmpty)return null;if(t.type===c.boolean)return n.jsx(I,{onChange:()=>s.onSaveChildAssociation("filters",{...t,value:!t.value}),checked:t.value});if(t.type===c.string||t.type===c.text||t.type===c.integer)return n.jsx(M,{onChange:(i,{value:y})=>s.onSaveChildAssociation("filters",{...t,value:y}),value:t.value});if(t.type===c.date)return n.jsx(R,{date:t.value||{},description:!1,onChange:i=>{s.onSaveChildAssociation("filters",{...t,value:i})},title:t.label});if(t.type===c.select)return n.jsx(B,{onChange:(i,{value:y})=>s.onSaveChildAssociation("filters",{...t,value:y}),options:t.options,selectOnBlur:!1,selection:!0,value:t.value});if(t.type===c.relationship){const{collectionName:i,onSearch:y,renderOption:p,renderSearchQuery:h,searchQuery:v,value:k}=t;return i&&y&&p?n.jsx(_,{collectionName:i,onSearch:y,onSelection:b=>{s.onSaveChildAssociation("filters",{...t,searchQuery:h&&h(b),value:b.id})},renderOption:p,required:!0,searchQuery:v||"",value:k||null}):null}return null},[s.item.filters,s.onSaveChildAssociation]),o=f.useMemo(()=>l.sortBy(s.filters,s.item.onSort||e),[s.filters,s.item.onSort]);return f.useEffect(()=>{l.each(s.item.filters,t=>{const i=l.findWhere(s.filters,{key:t.key});t.type===c.boolean&&(i.value=!1),s.onSaveChildAssociation("filters",l.defaults(t,i))})},[]),n.jsx($.Consumer,{children:t=>n.jsxs(j,{as:T,centered:!1,className:"list-filters-modal",mountNode:t,noValidate:!0,open:!0,size:"small",children:[n.jsx(j.Header,{children:n.jsxs(m,{columns:2,children:[n.jsx(m.Column,{verticalAlign:"middle",children:n.jsx(x,{content:u.t("ListFilters.title")})}),n.jsxs(m.Column,{textAlign:"right",children:[n.jsx(F,{color:"green",icon:"plus",options:l.map(o,i=>({key:i.key,value:i.key,text:i.label})),onChange:(i,{value:y})=>{const p=l.findWhere(s.filters,{key:y});s.onSaveChildAssociation("filters",s.onCreateFilter({...p,operator:a.equal}))},scrolling:!0,text:u.t("ListFilters.buttons.add"),value:""}),n.jsx(g,{color:"red",content:u.t("ListFilters.buttons.reset"),icon:"repeat",onClick:()=>s.onReset(),style:{marginLeft:"1em"}})]})]})}),n.jsx(j.Content,{children:!l.isEmpty(s.item.filters)&&n.jsx(m,{children:l.map(s.item.filters,i=>n.jsxs(m.Row,{columns:4,verticalAlign:"middle",children:[n.jsx(m.Column,{children:n.jsx(x,{content:i.label})}),n.jsx(m.Column,{width:5,children:n.jsx(B,{options:d(i.type),onChange:(y,{value:p})=>s.onSaveChildAssociation("filters",{...l.omit(i,"value"),operator:p}),selection:!0,value:i.operator})}),n.jsx(m.Column,{width:5,children:r(i)}),n.jsx(m.Column,{width:1,children:n.jsx(g,{basic:!0,icon:"times",onClick:()=>s.onDeleteChildAssociation("filters",i)})})]},i.key))})}),s.children]})})};K.__docgenInfo={description:"",methods:[],displayName:"ListFilters",props:{filters:{required:!0,flowType:{name:"Array",elements:[{name:"signature",type:"object",raw:`{ collectionName?: 'string', key: string, label: string, diff --git a/docs/assets/ListLoader.stories-DowEQgW1.js b/docs/assets/ListLoader.stories-C2lJEZ2u.js similarity index 85% rename from docs/assets/ListLoader.stories-DowEQgW1.js rename to docs/assets/ListLoader.stories-C2lJEZ2u.js index b996617f..287ac293 100644 --- a/docs/assets/ListLoader.stories-DowEQgW1.js +++ b/docs/assets/ListLoader.stories-C2lJEZ2u.js @@ -1 +1 @@ -import{j as p}from"./jsx-runtime-BTCK_S7S.js";import"./index-CBqU2yxZ.js";import{d as e}from"./index-DfmhmaGJ.js";import{L as m}from"./ListLoader-BdgbIqvc.js";import"./_commonjsHelpers-BosuxZz1.js";import"./mapValues-CZh2vnSw.js";import"./pickBy-CU2rOOKe.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-Bu_b4Pek.js";import"./index-Cw1G72V2.js";import"./index-CKJfshIT.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./preview-errors-CzpZmerH.js";import"./debounce-Bq1aTuh-.js";import"./Loader-CooidObp.js";import"./extends-CCbyfPlC.js";import"./getElementType-CckcRzoH.js";import"./Segment-C5_maSSM.js";import"./Dimmer-D_gwaesu.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./toFinite-KQ8KevIC.js";import"./index-DZGZymok.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./i18n-C8zWlANG.js";import"./i18next-Sc0HEOoc.js";import"./toPropertyKey-hKuLU48H.js";import"./defineProperty-CCxoMnQV.js";import"./inherits-D5wXBZoG.js";import"./createClass-D2z1h_eG.js";import"./getPrototypeOf-BYVhAdwF.js";const J={title:"Components/Semantic UI/ListLoader",component:m,decorators:[e.withKnobs]},t=()=>p.jsx(m,{active:!0});t.__docgenInfo={description:"",methods:[],displayName:"Default"};var o,r,i;t.parameters={...t.parameters,docs:{...(o=t.parameters)==null?void 0:o.docs,source:{originalSource:"() => ",...(i=(r=t.parameters)==null?void 0:r.docs)==null?void 0:i.source}}};const M=["Default"];export{t as Default,M as __namedExportsOrder,J as default}; +import{j as p}from"./jsx-runtime-BTCK_S7S.js";import"./index-CBqU2yxZ.js";import{d as e}from"./index-CAen7T_W.js";import{L as m}from"./ListLoader-BdgbIqvc.js";import"./_commonjsHelpers-BosuxZz1.js";import"./mapValues-LQZI9uWW.js";import"./pickBy-Us6u5-To.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-DCkRKKtx.js";import"./index-Cw1G72V2.js";import"./index-CKJfshIT.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./preview-errors-CzpZmerH.js";import"./debounce-BkgZrIul.js";import"./Loader-CooidObp.js";import"./extends-CCbyfPlC.js";import"./getElementType-CckcRzoH.js";import"./Segment-C5_maSSM.js";import"./Dimmer-D_gwaesu.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./toFinite-KQ8KevIC.js";import"./index-DZGZymok.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./i18n-C8zWlANG.js";import"./i18next-Sc0HEOoc.js";import"./toPropertyKey-hKuLU48H.js";import"./defineProperty-CCxoMnQV.js";import"./inherits-D5wXBZoG.js";import"./createClass-D2z1h_eG.js";import"./getPrototypeOf-BYVhAdwF.js";const J={title:"Components/Semantic UI/ListLoader",component:m,decorators:[e.withKnobs]},t=()=>p.jsx(m,{active:!0});t.__docgenInfo={description:"",methods:[],displayName:"Default"};var o,r,i;t.parameters={...t.parameters,docs:{...(o=t.parameters)==null?void 0:o.docs,source:{originalSource:"() => ",...(i=(r=t.parameters)==null?void 0:r.docs)==null?void 0:i.source}}};const M=["Default"];export{t as Default,M as __namedExportsOrder,J as default}; diff --git a/docs/assets/ListTable.stories-DtIRVZyn.js b/docs/assets/ListTable.stories-CtO5CSDj.js similarity index 97% rename from docs/assets/ListTable.stories-DtIRVZyn.js rename to docs/assets/ListTable.stories-CtO5CSDj.js index 65f3471f..844808a8 100644 --- a/docs/assets/ListTable.stories-DtIRVZyn.js +++ b/docs/assets/ListTable.stories-CtO5CSDj.js @@ -1,4 +1,4 @@ -import{j as o}from"./jsx-runtime-BTCK_S7S.js";import{a as n}from"./chunk-WFFRPTHA-B2vgThZf.js";import{d as a}from"./index-DfmhmaGJ.js";import{r as O}from"./index-CBqU2yxZ.js";import{B as J}from"./Button-Blq7Z6RX.js";import{_ as t}from"./index-default-C_maRo4o.js";import"./index.es28-dE8xdd4L.js";import{Y as mn}from"./index.es3-D5uPylQL.js";import{c as cn}from"./index.es23-SQskR_RA.js";import{D as dn}from"./DataTable-CZodmOBN.js";import{u as pn,S as z,a as un}from"./DataList-Ge7tGBgD.js";import{A as r}from"./Api-DXLamogn.js";import{A as d}from"./AddModal-8so4BWij.js";import{F as yn}from"./FilterModal-DL7Cc0hY.js";import{i as m}from"./Cars-2_9qFJX9.js";import{L as X,F as U,a as bn}from"./List-B05DD_Os.js";import{u as i}from"./DragDrop-ryAVAQMJ.js";import"./preview-errors-CzpZmerH.js";import"./index-CKJfshIT.js";import"./v4-D8aEg3BZ.js";import"./mapValues-CZh2vnSw.js";import"./_commonjsHelpers-BosuxZz1.js";import"./pickBy-CU2rOOKe.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-Bu_b4Pek.js";import"./index-Cw1G72V2.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./debounce-Bq1aTuh-.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getElementType-CckcRzoH.js";import"./Icon-2tEtgK8g.js";import"./Label-Cq1fb1cd.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./forEach-CXlln0XP.js";import"./Dimmer-D_gwaesu.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./index-DZGZymok.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./map-B4PnIEPz.js";import"./iframe-ovyJW9VA.js";import"../sb-preview/runtime.js";import"./Table-Xx3vjhN9.js";import"./Loader-CooidObp.js";import"./Checkbox-C9uAfnsM.js";import"./_baseSet-6y0qliU9.js";import"./_baseAssignValue-izmKBXUH.js";import"./Popup-BP01NTlV.js";import"./index-BBpNyw-T.js";import"./_arrayReduce-CrxnWFSq.js";import"./createClass-D2z1h_eG.js";import"./toPropertyKey-hKuLU48H.js";import"./i18n-C8zWlANG.js";import"./i18next-Sc0HEOoc.js";import"./defineProperty-CCxoMnQV.js";import"./inherits-D5wXBZoG.js";import"./getPrototypeOf-BYVhAdwF.js";import"./Dropdown-Di2cPjwR.js";import"./without-BP-mqg2K.js";import"./isArrayLikeObject-CbXKTyfk.js";import"./isEmpty-Cyb9hIKi.js";import"./deburr-CEfyoYOr.js";import"./filter-CVNi8iPS.js";import"./Draggable-KQRXc-DM.js";import"./useDrop-BRQoWSA5.js";import"./DndContext-B-2NJP7Z.js";import"./redux-C8f_Y06i.js";import"./objectSpread2-N4c0DWqo.js";import"./uuid-BH6G0oTz.js";import"./Message-3p6wyYpA.js";import"./Input--hQVCRQV.js";import"./Toaster-C1YYqOUE.js";import"./Transition-DSFEXhCu.js";import"./Modal-Bz2VEyQG.js";import"./Form-fErk-qk_.js";import"./Confirm-Dw9rt56R.js";import"./Pagination-D0HmnRDL.js";import"./Menu-9i0apxqd.js";import"./Grid-Czr5owxQ.js";import"./Header-BJ3NNdPz.js";import"./DropdownButton-D3g-r0e9.js";import"./EditModal-DRtAb_yR.js";import"./AssociatedDropdown-CR7UI3kV.js";import"./FuzzyDate-RqvLBloE.js";import"./DateInput-BO57_F9J.js";import"./ModalContext-Bu-D9kD-.js";import"./Trans-Bk6mzQm0.js";import"./objectWithoutProperties--RY0eV0u.js";import"./utils-Bq6oISwF.js";const W=pn(e=>{const g=cn.usePrevious(e.columns),u=y=>{if(!y.sortable)return;const p=y.name;let b=z;y.name===e.sortColumn?b=e.sortDirection===z?un:z:y.sortDirection&&(b=y.sortDirection),e.onSort(p,b)};return O.useEffect(()=>{if(!mn.isEqual(e.columns,g)){const{page:y,defaultSort:p,defaultSortDirection:b=z}=e;if(p)e.onSort(p,b,y);else{const V=t.findWhere(e.columns,{sortable:!0});V?u(V):e.onInit()}}},[e.columns]),o.jsx(dn,{...e,onColumnClick:u.bind(void 0)})});W.defaultProps={configurable:!0,tableProps:{celled:!0,sortable:!0}};const s=W;W.__docgenInfo={description:`The ListTable component renders a list which has the ability to load, save, and delete records from +import{j as o}from"./jsx-runtime-BTCK_S7S.js";import{a as n}from"./chunk-WFFRPTHA-B2vgThZf.js";import{d as a}from"./index-CAen7T_W.js";import{r as O}from"./index-CBqU2yxZ.js";import{B as J}from"./Button-Blq7Z6RX.js";import{_ as t}from"./index-default-C_maRo4o.js";import"./index.es28-Dp3-vHIY.js";import{Y as mn}from"./index.es3-Dgr_7mVc.js";import{c as cn}from"./index.es23-SQskR_RA.js";import{D as dn}from"./DataTable-Cu5azNeI.js";import{u as pn,S as z,a as un}from"./DataList-DKTsnuj_.js";import{A as r}from"./Api-DXLamogn.js";import{A as d}from"./AddModal-8so4BWij.js";import{F as yn}from"./FilterModal-FAXyOL-f.js";import{i as m}from"./Cars-2_9qFJX9.js";import{L as X,F as U,a as bn}from"./List-tmAiyZhD.js";import{u as i}from"./DragDrop-ryAVAQMJ.js";import"./preview-errors-CzpZmerH.js";import"./index-CKJfshIT.js";import"./v4-D8aEg3BZ.js";import"./mapValues-LQZI9uWW.js";import"./_commonjsHelpers-BosuxZz1.js";import"./pickBy-Us6u5-To.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-DCkRKKtx.js";import"./index-Cw1G72V2.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./debounce-BkgZrIul.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getElementType-CckcRzoH.js";import"./Icon-2tEtgK8g.js";import"./Label-Cq1fb1cd.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./forEach-CXlln0XP.js";import"./Dimmer-D_gwaesu.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./index-DZGZymok.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./map-B4PnIEPz.js";import"./iframe-BQtATEn0.js";import"../sb-preview/runtime.js";import"./Table-Xx3vjhN9.js";import"./Loader-CooidObp.js";import"./Checkbox-C9uAfnsM.js";import"./_baseSet-6y0qliU9.js";import"./_baseAssignValue-izmKBXUH.js";import"./Popup-BP01NTlV.js";import"./index-BBpNyw-T.js";import"./_arrayReduce-CrxnWFSq.js";import"./createClass-D2z1h_eG.js";import"./toPropertyKey-hKuLU48H.js";import"./i18n-C8zWlANG.js";import"./i18next-Sc0HEOoc.js";import"./defineProperty-CCxoMnQV.js";import"./inherits-D5wXBZoG.js";import"./getPrototypeOf-BYVhAdwF.js";import"./Dropdown-Di2cPjwR.js";import"./without-BP-mqg2K.js";import"./isArrayLikeObject-CbXKTyfk.js";import"./isEmpty-Cyb9hIKi.js";import"./deburr-CEfyoYOr.js";import"./filter-CVNi8iPS.js";import"./Draggable-KQRXc-DM.js";import"./useDrop-BRQoWSA5.js";import"./DndContext-B-2NJP7Z.js";import"./redux-C8f_Y06i.js";import"./objectSpread2-N4c0DWqo.js";import"./uuid-BH6G0oTz.js";import"./Message-3p6wyYpA.js";import"./Input--hQVCRQV.js";import"./Toaster-C1YYqOUE.js";import"./Transition-DSFEXhCu.js";import"./Modal-Bz2VEyQG.js";import"./Form-fErk-qk_.js";import"./Confirm-Dw9rt56R.js";import"./Pagination-D0HmnRDL.js";import"./Menu-9i0apxqd.js";import"./Grid-Czr5owxQ.js";import"./Header-BJ3NNdPz.js";import"./DropdownButton-D3g-r0e9.js";import"./EditModal-WP1CvOLP.js";import"./AssociatedDropdown-DQppeffT.js";import"./FuzzyDate-Bx1epA16.js";import"./DateInput-BO57_F9J.js";import"./ModalContext-Bu-D9kD-.js";import"./Trans-Bk6mzQm0.js";import"./objectWithoutProperties--RY0eV0u.js";import"./utils-Bq6oISwF.js";const W=pn(e=>{const g=cn.usePrevious(e.columns),u=y=>{if(!y.sortable)return;const p=y.name;let b=z;y.name===e.sortColumn?b=e.sortDirection===z?un:z:y.sortDirection&&(b=y.sortDirection),e.onSort(p,b)};return O.useEffect(()=>{if(!mn.isEqual(e.columns,g)){const{page:y,defaultSort:p,defaultSortDirection:b=z}=e;if(p)e.onSort(p,b,y);else{const V=t.findWhere(e.columns,{sortable:!0});V?u(V):e.onInit()}}},[e.columns]),o.jsx(dn,{...e,onColumnClick:u.bind(void 0)})});W.defaultProps={configurable:!0,tableProps:{celled:!0,sortable:!0}};const s=W;W.__docgenInfo={description:`The ListTable component renders a list which has the ability to load, save, and delete records from an API (via the DataList higher-order component). This component will integrate seamlessly with a back-end implementing the resource-api. See the GitHub page for more details.`,methods:[],displayName:"ListTable",props:{collectionName:{required:!0,flowType:{name:"string"},description:"Name of the collection to retrieve from the API response."},defaultPerPage:{required:!1,flowType:{name:"number"},description:"The default number of records to display on a single page."},defaultSearch:{required:!1,flowType:{name:"string"},description:"The default value for the search input element."},defaultSort:{required:!1,flowType:{name:"string"},description:"The default value to use for sorting the list."},defaultSortDirection:{required:!1,flowType:{name:"string"},description:"The default direction in which to sort the list."},filters:{required:!1,flowType:{name:"signature",type:"object",raw:`{ diff --git a/docs/assets/LoginModal.stories-DWr4b1eE.js b/docs/assets/LoginModal.stories-6RES0UQe.js similarity index 94% rename from docs/assets/LoginModal.stories-DWr4b1eE.js rename to docs/assets/LoginModal.stories-6RES0UQe.js index 22f9232b..6fe0d021 100644 --- a/docs/assets/LoginModal.stories-DWr4b1eE.js +++ b/docs/assets/LoginModal.stories-6RES0UQe.js @@ -1 +1 @@ -import{j as e}from"./jsx-runtime-BTCK_S7S.js";import"./index-CBqU2yxZ.js";import{a as r}from"./chunk-WFFRPTHA-B2vgThZf.js";import{d as i}from"./index-DfmhmaGJ.js";import{F as L}from"./Form-fErk-qk_.js";import{G as s}from"./Grid-Czr5owxQ.js";import{M as x}from"./Message-3p6wyYpA.js";import{B as d}from"./Button-Blq7Z6RX.js";import{H as y}from"./Header-BJ3NNdPz.js";import{I as m}from"./Icon-2tEtgK8g.js";import{I as p}from"./Input--hQVCRQV.js";import{M as c}from"./Modal-Bz2VEyQG.js";import{i as n}from"./i18n-C8zWlANG.js";import{M}from"./ModalContext-Bu-D9kD-.js";import"./_commonjsHelpers-BosuxZz1.js";import"./preview-errors-CzpZmerH.js";import"./index-CKJfshIT.js";import"./v4-D8aEg3BZ.js";import"./mapValues-CZh2vnSw.js";import"./pickBy-CU2rOOKe.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-Bu_b4Pek.js";import"./index-Cw1G72V2.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./debounce-Bq1aTuh-.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getElementType-CckcRzoH.js";import"./Label-Cq1fb1cd.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./forEach-CXlln0XP.js";import"./Dimmer-D_gwaesu.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./index-DZGZymok.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./Checkbox-C9uAfnsM.js";import"./_baseSet-6y0qliU9.js";import"./_baseAssignValue-izmKBXUH.js";import"./Dropdown-Di2cPjwR.js";import"./map-B4PnIEPz.js";import"./without-BP-mqg2K.js";import"./isArrayLikeObject-CbXKTyfk.js";import"./isEmpty-Cyb9hIKi.js";import"./deburr-CEfyoYOr.js";import"./index-BBpNyw-T.js";import"./_arrayReduce-CrxnWFSq.js";import"./filter-CVNi8iPS.js";import"./i18next-Sc0HEOoc.js";import"./toPropertyKey-hKuLU48H.js";import"./defineProperty-CCxoMnQV.js";import"./inherits-D5wXBZoG.js";import"./createClass-D2z1h_eG.js";import"./getPrototypeOf-BYVhAdwF.js";const l=o=>e.jsx(M.Consumer,{children:C=>e.jsxs(c,{as:L,className:"login-modal",error:o.loginFailed,mountNode:C,open:o.open,size:"small",trigger:o.trigger,children:[e.jsx(y,{icon:"user circle",content:n.t("LoginModal.header")}),e.jsx(x,{error:!0,header:n.t("LoginModal.loginErrorHeader"),content:n.t("LoginModal.loginErrorContent")}),e.jsx(s,{padded:"vertically",textAlign:"center",children:e.jsxs(s.Column,{children:[e.jsx(s.Row,{children:e.jsx(p,{autoFocus:!0,className:"form-field",icon:e.jsx(m,{name:"at"}),onChange:o.onUsernameChange.bind(void 0),placeholder:o.placeholder,size:"huge"})}),e.jsx(s.Row,{className:"row",children:e.jsx(p,{className:"form-field",icon:e.jsx(m,{name:"lock"}),onChange:o.onPasswordChange.bind(void 0),placeholder:n.t("LoginModal.password"),size:"huge",type:"password"})})]})}),e.jsxs(c.Actions,{children:[e.jsx(d,{disabled:o.disabled,onClick:o.onLogin.bind(void 0),primary:!0,size:"large",type:"submit",children:n.t("LoginModal.buttonLogin")}),o.onClose&&e.jsx(d,{basic:!0,onClick:o.onClose.bind(void 0),size:"large",children:n.t("LoginModal.buttonCancel")})]})]})});l.defaultProps={placeholder:n.t("LoginModal.email")};l.__docgenInfo={description:"",methods:[],displayName:"LoginModal",props:{disabled:{required:!0,flowType:{name:"boolean"},description:""},loginFailed:{required:!0,flowType:{name:"boolean"},description:""},onClose:{required:!0,flowType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""},onLogin:{required:!0,flowType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""},onPasswordChange:{required:!0,flowType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""},onUsernameChange:{required:!0,flowType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""},open:{required:!0,flowType:{name:"boolean"},description:""},trigger:{required:!1,flowType:{name:"signature",type:"function",raw:"() => Element",signature:{arguments:[],return:{name:"Element",elements:[{name:"any"}],raw:"Element"}}},description:""},placeholder:{required:!1,flowType:{name:"string"},description:"",defaultValue:{value:"i18n.t('LoginModal.email')",computed:!0}}}};const Te={title:"Components/Semantic UI/LoginModal",decorators:[i.withKnobs]},a=()=>e.jsx(l,{disabled:i.boolean("Disabled",!1),loginFailed:i.boolean("Login failed",!1),onClose:r("close"),onLogin:r("login"),onPasswordChange:r("password-change"),onUsernameChange:r("username-change"),open:i.boolean("Open",!0)}),t=()=>e.jsx(l,{disabled:i.boolean("Disabled",!1),loginFailed:i.boolean("Login failed",!1),onLogin:r("login"),onPasswordChange:r("password-change"),onUsernameChange:r("username-change"),open:i.boolean("Open",!0)});a.__docgenInfo={description:"",methods:[],displayName:"Default"};t.__docgenInfo={description:"",methods:[],displayName:"NoCloseButton"};var g,u,f;a.parameters={...a.parameters,docs:{...(g=a.parameters)==null?void 0:g.docs,source:{originalSource:"() => ",...(f=(u=a.parameters)==null?void 0:u.docs)==null?void 0:f.source}}};var h,b,w;t.parameters={...t.parameters,docs:{...(h=t.parameters)==null?void 0:h.docs,source:{originalSource:"() => ",...(w=(b=t.parameters)==null?void 0:b.docs)==null?void 0:w.source}}};const _e=["Default","NoCloseButton"];export{a as Default,t as NoCloseButton,_e as __namedExportsOrder,Te as default}; +import{j as e}from"./jsx-runtime-BTCK_S7S.js";import"./index-CBqU2yxZ.js";import{a as r}from"./chunk-WFFRPTHA-B2vgThZf.js";import{d as i}from"./index-CAen7T_W.js";import{F as L}from"./Form-fErk-qk_.js";import{G as s}from"./Grid-Czr5owxQ.js";import{M as x}from"./Message-3p6wyYpA.js";import{B as d}from"./Button-Blq7Z6RX.js";import{H as y}from"./Header-BJ3NNdPz.js";import{I as m}from"./Icon-2tEtgK8g.js";import{I as p}from"./Input--hQVCRQV.js";import{M as c}from"./Modal-Bz2VEyQG.js";import{i as n}from"./i18n-C8zWlANG.js";import{M}from"./ModalContext-Bu-D9kD-.js";import"./_commonjsHelpers-BosuxZz1.js";import"./preview-errors-CzpZmerH.js";import"./index-CKJfshIT.js";import"./v4-D8aEg3BZ.js";import"./mapValues-LQZI9uWW.js";import"./pickBy-Us6u5-To.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-DCkRKKtx.js";import"./index-Cw1G72V2.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./debounce-BkgZrIul.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getElementType-CckcRzoH.js";import"./Label-Cq1fb1cd.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./forEach-CXlln0XP.js";import"./Dimmer-D_gwaesu.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./index-DZGZymok.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./Checkbox-C9uAfnsM.js";import"./_baseSet-6y0qliU9.js";import"./_baseAssignValue-izmKBXUH.js";import"./Dropdown-Di2cPjwR.js";import"./map-B4PnIEPz.js";import"./without-BP-mqg2K.js";import"./isArrayLikeObject-CbXKTyfk.js";import"./isEmpty-Cyb9hIKi.js";import"./deburr-CEfyoYOr.js";import"./index-BBpNyw-T.js";import"./_arrayReduce-CrxnWFSq.js";import"./filter-CVNi8iPS.js";import"./i18next-Sc0HEOoc.js";import"./toPropertyKey-hKuLU48H.js";import"./defineProperty-CCxoMnQV.js";import"./inherits-D5wXBZoG.js";import"./createClass-D2z1h_eG.js";import"./getPrototypeOf-BYVhAdwF.js";const l=o=>e.jsx(M.Consumer,{children:C=>e.jsxs(c,{as:L,className:"login-modal",error:o.loginFailed,mountNode:C,open:o.open,size:"small",trigger:o.trigger,children:[e.jsx(y,{icon:"user circle",content:n.t("LoginModal.header")}),e.jsx(x,{error:!0,header:n.t("LoginModal.loginErrorHeader"),content:n.t("LoginModal.loginErrorContent")}),e.jsx(s,{padded:"vertically",textAlign:"center",children:e.jsxs(s.Column,{children:[e.jsx(s.Row,{children:e.jsx(p,{autoFocus:!0,className:"form-field",icon:e.jsx(m,{name:"at"}),onChange:o.onUsernameChange.bind(void 0),placeholder:o.placeholder,size:"huge"})}),e.jsx(s.Row,{className:"row",children:e.jsx(p,{className:"form-field",icon:e.jsx(m,{name:"lock"}),onChange:o.onPasswordChange.bind(void 0),placeholder:n.t("LoginModal.password"),size:"huge",type:"password"})})]})}),e.jsxs(c.Actions,{children:[e.jsx(d,{disabled:o.disabled,onClick:o.onLogin.bind(void 0),primary:!0,size:"large",type:"submit",children:n.t("LoginModal.buttonLogin")}),o.onClose&&e.jsx(d,{basic:!0,onClick:o.onClose.bind(void 0),size:"large",children:n.t("LoginModal.buttonCancel")})]})]})});l.defaultProps={placeholder:n.t("LoginModal.email")};l.__docgenInfo={description:"",methods:[],displayName:"LoginModal",props:{disabled:{required:!0,flowType:{name:"boolean"},description:""},loginFailed:{required:!0,flowType:{name:"boolean"},description:""},onClose:{required:!0,flowType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""},onLogin:{required:!0,flowType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""},onPasswordChange:{required:!0,flowType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""},onUsernameChange:{required:!0,flowType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""},open:{required:!0,flowType:{name:"boolean"},description:""},trigger:{required:!1,flowType:{name:"signature",type:"function",raw:"() => Element",signature:{arguments:[],return:{name:"Element",elements:[{name:"any"}],raw:"Element"}}},description:""},placeholder:{required:!1,flowType:{name:"string"},description:"",defaultValue:{value:"i18n.t('LoginModal.email')",computed:!0}}}};const Te={title:"Components/Semantic UI/LoginModal",decorators:[i.withKnobs]},a=()=>e.jsx(l,{disabled:i.boolean("Disabled",!1),loginFailed:i.boolean("Login failed",!1),onClose:r("close"),onLogin:r("login"),onPasswordChange:r("password-change"),onUsernameChange:r("username-change"),open:i.boolean("Open",!0)}),t=()=>e.jsx(l,{disabled:i.boolean("Disabled",!1),loginFailed:i.boolean("Login failed",!1),onLogin:r("login"),onPasswordChange:r("password-change"),onUsernameChange:r("username-change"),open:i.boolean("Open",!0)});a.__docgenInfo={description:"",methods:[],displayName:"Default"};t.__docgenInfo={description:"",methods:[],displayName:"NoCloseButton"};var g,u,f;a.parameters={...a.parameters,docs:{...(g=a.parameters)==null?void 0:g.docs,source:{originalSource:"() => ",...(f=(u=a.parameters)==null?void 0:u.docs)==null?void 0:f.source}}};var h,b,w;t.parameters={...t.parameters,docs:{...(h=t.parameters)==null?void 0:h.docs,source:{originalSource:"() => ",...(w=(b=t.parameters)==null?void 0:b.docs)==null?void 0:w.source}}};const _e=["Default","NoCloseButton"];export{a as Default,t as NoCloseButton,_e as __namedExportsOrder,Te as default}; diff --git a/docs/assets/MapDraw.stories-DKSg65V-.js b/docs/assets/MapDraw.stories-BDWFoOm2.js similarity index 99% rename from docs/assets/MapDraw.stories-DKSg65V-.js rename to docs/assets/MapDraw.stories-BDWFoOm2.js index 9e583d97..68f7b538 100644 --- a/docs/assets/MapDraw.stories-DKSg65V-.js +++ b/docs/assets/MapDraw.stories-BDWFoOm2.js @@ -1,4 +1,4 @@ -var Ln=Object.defineProperty;var Dn=(D,V,J)=>V in D?Ln(D,V,{enumerable:!0,configurable:!0,writable:!0,value:J}):D[V]=J;var a8=(D,V,J)=>(Dn(D,typeof V!="symbol"?V+"":V,J),J);import{j as U4}from"./jsx-runtime-BTCK_S7S.js";import{a as V0}from"./chunk-WFFRPTHA-B2vgThZf.js";import{r as D1,R as f5}from"./index-CBqU2yxZ.js";import{E as Fn}from"./Environment-CB6gPeJ7.js";import{_ as Rn}from"./iframe-ovyJW9VA.js";import{r as ne}from"./index-DZGZymok.js";import{_ as w0}from"./index-default-C_maRo4o.js";import{c as O5,g as Ei}from"./_commonjsHelpers-BosuxZz1.js";import{M as Bn,f as On}from"./Map-B-oiJBWx.js";import"./preview-errors-CzpZmerH.js";import"./index-CKJfshIT.js";import"./v4-D8aEg3BZ.js";import"../sb-preview/runtime.js";const Nn=D1.createContext(null);function Vn(D,V){const J=Array.isArray(D)?D[0]:D?D.x:0,K=Array.isArray(D)?D[1]:D?D.y:0,h1=Array.isArray(V)?V[0]:V?V.x:0,g1=Array.isArray(V)?V[1]:V?V.y:0;return J===h1&&K===g1}function B3(D,V){if(D===V)return!0;if(!D||!V)return!1;if(Array.isArray(D)){if(!Array.isArray(V)||D.length!==V.length)return!1;for(let J=0;J{let h1=null;"interactive"in K&&(h1=Object.assign({},K),delete h1.interactive);const g1=V[K.ref];if(g1){h1=h1||Object.assign({},K),delete h1.ref;for(const T1 of jn)T1 in g1&&(h1[T1]=g1[T1])}return h1||K});return{...D,layers:J}}var Zt={};const Ht={version:8,sources:{},layers:[]},Wt={mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",click:"onClick",dblclick:"onDblClick",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",mouseout:"onMouseOut",contextmenu:"onContextMenu",touchstart:"onTouchStart",touchend:"onTouchEnd",touchmove:"onTouchMove",touchcancel:"onTouchCancel"},re={movestart:"onMoveStart",move:"onMove",moveend:"onMoveEnd",dragstart:"onDragStart",drag:"onDrag",dragend:"onDragEnd",zoomstart:"onZoomStart",zoom:"onZoom",zoomend:"onZoomEnd",rotatestart:"onRotateStart",rotate:"onRotate",rotateend:"onRotateEnd",pitchstart:"onPitchStart",pitch:"onPitch",pitchend:"onPitchEnd"},Xt={wheel:"onWheel",boxzoomstart:"onBoxZoomStart",boxzoomend:"onBoxZoomEnd",boxzoomcancel:"onBoxZoomCancel",resize:"onResize",load:"onLoad",render:"onRender",idle:"onIdle",remove:"onRemove",data:"onData",styledata:"onStyleData",sourcedata:"onSourceData",error:"onError"},$n=["minZoom","maxZoom","minPitch","maxPitch","maxBounds","projection","renderWorldCopies"],qn=["scrollZoom","boxZoom","dragRotate","dragPan","keyboard","doubleClickZoom","touchZoomRotate","touchPitch"];class N5{constructor(V,J,K){this._map=null,this._internalUpdate=!1,this._inRender=!1,this._hoveredFeatures=null,this._deferredEvents={move:!1,zoom:!1,pitch:!1,rotate:!1},this._onEvent=h1=>{const g1=this.props[Xt[h1.type]];g1?g1(h1):h1.type==="error"&&console.error(h1.error)},this._onPointerEvent=h1=>{(h1.type==="mousemove"||h1.type==="mouseout")&&this._updateHover(h1);const g1=this.props[Wt[h1.type]];g1&&(this.props.interactiveLayerIds&&h1.type!=="mouseover"&&h1.type!=="mouseout"&&(h1.features=this._hoveredFeatures||this._queryRenderedFeatures(h1.point)),g1(h1),delete h1.features)},this._onCameraEvent=h1=>{if(!this._internalUpdate){const g1=this.props[re[h1.type]];g1&&g1(h1)}h1.type in this._deferredEvents&&(this._deferredEvents[h1.type]=!1)},this._MapClass=V,this.props=J,this._initialize(K)}get map(){return this._map}get transform(){return this._renderTransform}setProps(V){const J=this.props;this.props=V;const K=this._updateSettings(V,J);K&&this._createShadowTransform(this._map);const h1=this._updateSize(V),g1=this._updateViewState(V,!0);this._updateStyle(V,J),this._updateStyleComponents(V,J),this._updateHandlers(V,J),(K||h1||g1&&!this._map.isMoving())&&this.redraw()}static reuse(V,J){const K=N5.savedMaps.pop();if(!K)return null;const h1=K.map,g1=h1.getContainer();for(J.className=g1.className;g1.childNodes.length>0;)J.appendChild(g1.childNodes[0]);h1._container=J;const T1=h1._resizeObserver;T1&&(T1.disconnect(),T1.observe(J)),K.setProps({...V,styleDiffing:!1}),h1.resize();const{initialViewState:c}=V;return c&&(c.bounds?h1.fitBounds(c.bounds,{...c.fitBoundsOptions,duration:0}):K._updateViewState(c,!1)),h1.isStyleLoaded()?h1.fire("load"):h1.once("styledata",()=>h1.fire("load")),h1._update(),K}_initialize(V){const{props:J}=this,{mapStyle:K=Ht}=J,h1={...J,...J.initialViewState,accessToken:J.mapboxAccessToken||Gn()||null,container:V,style:Gt(K)},g1=h1.initialViewState||h1.viewState||h1;if(Object.assign(h1,{center:[g1.longitude||0,g1.latitude||0],zoom:g1.zoom||0,pitch:g1.pitch||0,bearing:g1.bearing||0}),J.gl){const o4=HTMLCanvasElement.prototype.getContext;HTMLCanvasElement.prototype.getContext=()=>(HTMLCanvasElement.prototype.getContext=o4,J.gl)}const T1=new this._MapClass(h1);g1.padding&&T1.setPadding(g1.padding),J.cursor&&(T1.getCanvas().style.cursor=J.cursor),this._createShadowTransform(T1);const c=T1._render;T1._render=o4=>{this._inRender=!0,c.call(T1,o4),this._inRender=!1};const W1=T1._renderTaskQueue.run;T1._renderTaskQueue.run=o4=>{W1.call(T1._renderTaskQueue,o4),this._onBeforeRepaint()},T1.on("render",()=>this._onAfterRepaint());const r1=T1.fire;T1.fire=this._fireEvent.bind(this,r1),T1.on("resize",()=>{this._renderTransform.resize(T1.transform.width,T1.transform.height)}),T1.on("styledata",()=>{this._updateStyleComponents(this.props,{}),jt(T1.transform,this._renderTransform)}),T1.on("sourcedata",()=>this._updateStyleComponents(this.props,{}));for(const o4 in Wt)T1.on(o4,this._onPointerEvent);for(const o4 in re)T1.on(o4,this._onCameraEvent);for(const o4 in Xt)T1.on(o4,this._onEvent);this._map=T1}recycle(){const J=this.map.getContainer().querySelector("[mapboxgl-children]");J==null||J.remove(),N5.savedMaps.push(this)}destroy(){this._map.remove()}redraw(){const V=this._map;!this._inRender&&V.style&&(V._frame&&(V._frame.cancel(),V._frame=null),V._render())}_createShadowTransform(V){const J=Un(V.transform);V.painter.transform=J,this._renderTransform=J}_updateSize(V){const{viewState:J}=V;if(J){const K=this._map;if(J.width!==K.transform.width||J.height!==K.transform.height)return K.resize(),!0}return!1}_updateViewState(V,J){if(this._internalUpdate)return!1;const K=this._map,h1=this._renderTransform,{zoom:g1,pitch:T1,bearing:c}=h1,W1=K.isMoving();W1&&(h1.cameraElevationReference="sea");const r1=qt(h1,{...$t(K.transform),...V});if(W1&&(h1.cameraElevationReference="ground"),r1&&J){const o4=this._deferredEvents;o4.move=!0,o4.zoom||(o4.zoom=g1!==h1.zoom),o4.rotate||(o4.rotate=c!==h1.bearing),o4.pitch||(o4.pitch=T1!==h1.pitch)}return W1||qt(K.transform,V),r1}_updateSettings(V,J){const K=this._map;let h1=!1;for(const g1 of $n)if(g1 in V&&!B3(V[g1],J[g1])){h1=!0;const T1=K[`set${g1[0].toUpperCase()}${g1.slice(1)}`];T1==null||T1.call(K,V[g1])}return h1}_updateStyle(V,J){if(V.cursor!==J.cursor&&(this._map.getCanvas().style.cursor=V.cursor||""),V.mapStyle!==J.mapStyle){const{mapStyle:K=Ht,styleDiffing:h1=!0}=V,g1={diff:h1};return"localIdeographFontFamily"in V&&(g1.localIdeographFontFamily=V.localIdeographFontFamily),this._map.setStyle(Gt(K),g1),!0}return!1}_updateStyleComponents(V,J){const K=this._map;let h1=!1;return K.isStyleLoaded()&&("light"in V&&K.setLight&&!B3(V.light,J.light)&&(h1=!0,K.setLight(V.light)),"fog"in V&&K.setFog&&!B3(V.fog,J.fog)&&(h1=!0,K.setFog(V.fog)),"terrain"in V&&K.setTerrain&&!B3(V.terrain,J.terrain)&&(!V.terrain||K.getSource(V.terrain.source))&&(h1=!0,K.setTerrain(V.terrain))),h1}_updateHandlers(V,J){var K,h1;const g1=this._map;let T1=!1;for(const c of qn){const W1=(K=V[c])!==null&&K!==void 0?K:!0,r1=(h1=J[c])!==null&&h1!==void 0?h1:!0;B3(W1,r1)||(T1=!0,W1?g1[c].enable(W1):g1[c].disable())}return T1}_queryRenderedFeatures(V){const J=this._map,K=J.transform,{interactiveLayerIds:h1=[]}=this.props;try{return J.transform=this._renderTransform,J.queryRenderedFeatures(V,{layers:h1.filter(J.getLayer.bind(J))})}catch{return[]}finally{J.transform=K}}_updateHover(V){var J;const{props:K}=this;if(K.interactiveLayerIds&&(K.onMouseMove||K.onMouseEnter||K.onMouseLeave)){const g1=V.type,T1=((J=this._hoveredFeatures)===null||J===void 0?void 0:J.length)>0,c=this._queryRenderedFeatures(V.point),W1=c.length>0;!W1&&T1&&(V.type="mouseleave",this._onPointerEvent(V)),this._hoveredFeatures=c,W1&&!T1&&(V.type="mouseenter",this._onPointerEvent(V)),V.type=g1}else this._hoveredFeatures=null}_fireEvent(V,J,K){const h1=this._map,g1=h1.transform,T1=typeof J=="string"?J:J.type;return T1==="move"&&this._updateViewState(this.props,!1),T1 in re&&(typeof J=="object"&&(J.viewState=$t(g1)),this._map.isMoving())?(h1.transform=this._renderTransform,V.call(h1,J,K),h1.transform=g1,h1):(V.call(h1,J,K),h1)}_onBeforeRepaint(){const V=this._map;this._internalUpdate=!0;for(const K in this._deferredEvents)this._deferredEvents[K]&&V.fire(K);this._internalUpdate=!1;const J=this._map.transform;V.transform=this._renderTransform,this._onAfterRepaint=()=>{jt(this._renderTransform,J),V.transform=J}}}N5.savedMaps=[];function Gn(){let D=null;if(typeof location<"u"){const V=/access_token=([^&\/]*)/.exec(location.search);D=V&&V[1]}try{D=D||Zt.MapboxAccessToken}catch{}try{D=D||Zt.REACT_APP_MAPBOX_ACCESS_TOKEN}catch{}return D}const Zn=["setMaxBounds","setMinZoom","setMaxZoom","setMinPitch","setMaxPitch","setRenderWorldCopies","setProjection","setStyle","addSource","removeSource","addLayer","removeLayer","setLayerZoomRange","setFilter","setPaintProperty","setLayoutProperty","setLight","setTerrain","setFog","remove"];function Hn(D){if(!D)return null;const V=D.map,J={getMap:()=>V,getCenter:()=>D.transform.center,getZoom:()=>D.transform.zoom,getBearing:()=>D.transform.bearing,getPitch:()=>D.transform.pitch,getPadding:()=>D.transform.padding,getBounds:()=>D.transform.getBounds(),project:K=>{const h1=V.transform;V.transform=D.transform;const g1=V.project(K);return V.transform=h1,g1},unproject:K=>{const h1=V.transform;V.transform=D.transform;const g1=V.unproject(K);return V.transform=h1,g1},queryTerrainElevation:(K,h1)=>{const g1=V.transform;V.transform=D.transform;const T1=V.queryTerrainElevation(K,h1);return V.transform=g1,T1},queryRenderedFeatures:(K,h1)=>{const g1=V.transform;V.transform=D.transform;const T1=V.queryRenderedFeatures(K,h1);return V.transform=g1,T1}};for(const K of Wn(V))!(K in J)&&!Zn.includes(K)&&(J[K]=V[K].bind(V));return J}function Wn(D){const V=new Set;let J=D;for(;J;){for(const K of Object.getOwnPropertyNames(J))K[0]!=="_"&&typeof D[K]=="function"&&K!=="fire"&&K!=="setEventedParent"&&V.add(K);J=Object.getPrototypeOf(J)}return Array.from(V)}const Xn=typeof document<"u"?D1.useLayoutEffect:D1.useEffect,Kn=["baseApiUrl","maxParallelImageRequests","workerClass","workerCount","workerUrl"];function Jn(D,V){for(const K of Kn)K in V&&(D[K]=V[K]);const{RTLTextPlugin:J="https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-rtl-text/v0.2.3/mapbox-gl-rtl-text.js"}=V;J&&D.getRTLTextPluginStatus&&D.getRTLTextPluginStatus()==="unavailable"&&D.setRTLTextPlugin(J,K=>{K&&console.error(K)},!0)}const V5=D1.createContext(null);function Yn(D,V,J){const K=D1.useContext(Nn),[h1,g1]=D1.useState(null),T1=D1.useRef(),{current:c}=D1.useRef({mapLib:null,map:null});D1.useEffect(()=>{const o4=D.mapLib;let u4=!0,j1;return Promise.resolve(o4||J).then(c4=>{if(!u4)return;if(!c4)throw new Error("Invalid mapLib");const b4="Map"in c4?c4:c4.default;if(!b4.Map)throw new Error("Invalid mapLib");if(Jn(b4,D),!b4.supported||b4.supported(D))D.reuseMaps&&(j1=N5.reuse(D,T1.current)),j1||(j1=new N5(b4.Map,D,T1.current)),c.map=Hn(j1),c.mapLib=b4,g1(j1),K==null||K.onMapMount(c.map,D.id);else throw new Error("Map is not supported by this browser")}).catch(c4=>{const{onError:b4}=D;b4?b4({type:"error",target:null,originalEvent:null,error:c4}):console.error(c4)}),()=>{u4=!1,j1&&(K==null||K.onMapUnmount(D.id),D.reuseMaps?j1.recycle():j1.destroy())}},[]),Xn(()=>{h1&&h1.setProps(D)}),D1.useImperativeHandle(V,()=>c.map,[h1]);const W1=D1.useMemo(()=>({position:"relative",width:"100%",height:"100%",...D.style}),[D.style]),r1={height:"100%"};return D1.createElement("div",{id:D.id,ref:T1,style:W1},h1&&D1.createElement(V5.Provider,{value:c},D1.createElement("div",{"mapboxgl-children":"",style:r1},D.children)))}const Qn=/box|flex|grid|column|lineHeight|fontWeight|opacity|order|tabSize|zIndex/;function m5(D,V){if(!D||!V)return;const J=D.style;for(const K in V){const h1=V[K];Number.isFinite(h1)&&!Qn.test(K)?J[K]=`${h1}px`:J[K]=h1}}function ea(D,V){const{map:J,mapLib:K}=D1.useContext(V5),h1=D1.useRef({props:D});h1.current.props=D;const g1=D1.useMemo(()=>{let r4=!1;D1.Children.forEach(D.children,i7=>{i7&&(r4=!0)});const g4={...D,element:r4?document.createElement("div"):null},I4=new K.Marker(g4);return I4.setLngLat([D.longitude,D.latitude]),I4.getElement().addEventListener("click",i7=>{var N4,A4;(A4=(N4=h1.current.props).onClick)===null||A4===void 0||A4.call(N4,{type:"click",target:I4,originalEvent:i7})}),I4.on("dragstart",i7=>{var N4,A4;const r7=i7;r7.lngLat=g1.getLngLat(),(A4=(N4=h1.current.props).onDragStart)===null||A4===void 0||A4.call(N4,r7)}),I4.on("drag",i7=>{var N4,A4;const r7=i7;r7.lngLat=g1.getLngLat(),(A4=(N4=h1.current.props).onDrag)===null||A4===void 0||A4.call(N4,r7)}),I4.on("dragend",i7=>{var N4,A4;const r7=i7;r7.lngLat=g1.getLngLat(),(A4=(N4=h1.current.props).onDragEnd)===null||A4===void 0||A4.call(N4,r7)}),I4},[]);D1.useEffect(()=>(g1.addTo(J.getMap()),()=>{g1.remove()}),[]);const{longitude:T1,latitude:c,offset:W1,style:r1,draggable:o4=!1,popup:u4=null,rotation:j1=0,rotationAlignment:c4="auto",pitchAlignment:b4="auto"}=D;return D1.useEffect(()=>{m5(g1.getElement(),r1)},[r1]),D1.useImperativeHandle(V,()=>g1,[]),(g1.getLngLat().lng!==T1||g1.getLngLat().lat!==c)&&g1.setLngLat([T1,c]),W1&&!Vn(g1.getOffset(),W1)&&g1.setOffset(W1),g1.isDraggable()!==o4&&g1.setDraggable(o4),g1.getRotation()!==j1&&g1.setRotation(j1),g1.getRotationAlignment()!==c4&&g1.setRotationAlignment(c4),g1.getPitchAlignment()!==b4&&g1.setPitchAlignment(b4),g1.getPopup()!==u4&&g1.setPopup(u4),ne.createPortal(D.children,g1.getElement())}D1.memo(D1.forwardRef(ea));function Kt(D){return new Set(D?D.trim().split(/\s+/):[])}function ta(D,V){const{map:J,mapLib:K}=D1.useContext(V5),h1=D1.useMemo(()=>document.createElement("div"),[]),g1=D1.useRef({props:D});g1.current.props=D;const T1=D1.useMemo(()=>{const c={...D},W1=new K.Popup(c);return W1.setLngLat([D.longitude,D.latitude]),W1.once("open",r1=>{var o4,u4;(u4=(o4=g1.current.props).onOpen)===null||u4===void 0||u4.call(o4,r1)}),W1},[]);if(D1.useEffect(()=>{const c=W1=>{var r1,o4;(o4=(r1=g1.current.props).onClose)===null||o4===void 0||o4.call(r1,W1)};return T1.on("close",c),T1.setDOMContent(h1).addTo(J.getMap()),()=>{T1.off("close",c),T1.isOpen()&&T1.remove()}},[]),D1.useEffect(()=>{m5(T1.getElement(),D.style)},[D.style]),D1.useImperativeHandle(V,()=>T1,[]),T1.isOpen()&&((T1.getLngLat().lng!==D.longitude||T1.getLngLat().lat!==D.latitude)&&T1.setLngLat([D.longitude,D.latitude]),D.offset&&!B3(T1.options.offset,D.offset)&&T1.setOffset(D.offset),(T1.options.anchor!==D.anchor||T1.options.maxWidth!==D.maxWidth)&&(T1.options.anchor=D.anchor,T1.setMaxWidth(D.maxWidth)),T1.options.className!==D.className)){const c=Kt(T1.options.className),W1=Kt(D.className);for(const r1 of c)W1.has(r1)||T1.removeClassName(r1);for(const r1 of W1)c.has(r1)||T1.addClassName(r1);T1.options.className=D.className}return ne.createPortal(D.children,h1)}D1.memo(D1.forwardRef(ta));function g5(D,V,J,K){const h1=D1.useContext(V5),g1=D1.useMemo(()=>D(h1),[]);return D1.useEffect(()=>{const T1=K||J||V,c=typeof V=="function"&&typeof J=="function"?V:null,W1=typeof J=="function"?J:typeof V=="function"?V:null,{map:r1}=h1;return r1.hasControl(g1)||(r1.addControl(g1,T1==null?void 0:T1.position),c&&c(h1)),()=>{W1&&W1(h1),r1.hasControl(g1)&&r1.removeControl(g1)}},[]),g1}function ia(D){const V=g5(({mapLib:J})=>new J.AttributionControl(D),{position:D.position});return D1.useEffect(()=>{m5(V._container,D.style)},[D.style]),null}D1.memo(ia);function ra(D){const V=g5(({mapLib:J})=>new J.FullscreenControl({container:D.containerId&&document.getElementById(D.containerId)}),{position:D.position});return D1.useEffect(()=>{m5(V._controlContainer,D.style)},[D.style]),null}D1.memo(ra);function na(D,V){const J=D1.useRef({props:D}),K=g5(({mapLib:h1})=>{const g1=new h1.GeolocateControl(D),T1=g1._setupUI;return g1._setupUI=c=>{g1._container.hasChildNodes()||T1(c)},g1.on("geolocate",c=>{var W1,r1;(r1=(W1=J.current.props).onGeolocate)===null||r1===void 0||r1.call(W1,c)}),g1.on("error",c=>{var W1,r1;(r1=(W1=J.current.props).onError)===null||r1===void 0||r1.call(W1,c)}),g1.on("outofmaxbounds",c=>{var W1,r1;(r1=(W1=J.current.props).onOutOfMaxBounds)===null||r1===void 0||r1.call(W1,c)}),g1.on("trackuserlocationstart",c=>{var W1,r1;(r1=(W1=J.current.props).onTrackUserLocationStart)===null||r1===void 0||r1.call(W1,c)}),g1.on("trackuserlocationend",c=>{var W1,r1;(r1=(W1=J.current.props).onTrackUserLocationEnd)===null||r1===void 0||r1.call(W1,c)}),g1},{position:D.position});return J.current.props=D,D1.useImperativeHandle(V,()=>K,[]),D1.useEffect(()=>{m5(K._container,D.style)},[D.style]),null}D1.memo(D1.forwardRef(na));function aa(D){const V=g5(({mapLib:J})=>new J.NavigationControl(D),{position:D.position});return D1.useEffect(()=>{m5(V._container,D.style)},[D.style]),null}D1.memo(aa);function sa(D){const V=g5(({mapLib:g1})=>new g1.ScaleControl(D),{position:D.position}),J=D1.useRef(D),K=J.current;J.current=D;const{style:h1}=D;return D.maxWidth!==void 0&&D.maxWidth!==K.maxWidth&&(V.options.maxWidth=D.maxWidth),D.unit!==void 0&&D.unit!==K.unit&&V.setUnit(D.unit),D1.useEffect(()=>{m5(V._container,h1)},[h1]),null}D1.memo(sa);function o8(D,V){if(!D)throw new Error(V)}function oa(D,V,J,K){if(o8(J.id===K.id,"layer id changed"),o8(J.type===K.type,"layer type changed"),J.type==="custom"||K.type==="custom")return;const{layout:h1={},paint:g1={},filter:T1,minzoom:c,maxzoom:W1,beforeId:r1}=J;if(r1!==K.beforeId&&D.moveLayer(V,r1),h1!==K.layout){const o4=K.layout||{};for(const u4 in h1)B3(h1[u4],o4[u4])||D.setLayoutProperty(V,u4,h1[u4]);for(const u4 in o4)h1.hasOwnProperty(u4)||D.setLayoutProperty(V,u4,void 0)}if(g1!==K.paint){const o4=K.paint||{};for(const u4 in g1)B3(g1[u4],o4[u4])||D.setPaintProperty(V,u4,g1[u4]);for(const u4 in o4)g1.hasOwnProperty(u4)||D.setPaintProperty(V,u4,void 0)}B3(T1,K.filter)||D.setFilter(V,T1),(c!==K.minzoom||W1!==K.maxzoom)&&D.setLayerZoomRange(V,c,W1)}function la(D,V,J){if(D.style&&D.style._loaded&&(!("source"in J)||D.getSource(J.source))){const K={...J,id:V};delete K.beforeId,D.addLayer(K,J.beforeId)}}let ca=0;function ua(D){const V=D1.useContext(V5).map.getMap(),J=D1.useRef(D),[,K]=D1.useState(0),h1=D1.useMemo(()=>D.id||`jsx-layer-${ca++}`,[]);if(D1.useEffect(()=>{if(V){const T1=()=>K(c=>c+1);return V.on("styledata",T1),T1(),()=>{V.off("styledata",T1),V.style&&V.style._loaded&&V.getLayer(h1)&&V.removeLayer(h1)}}},[V]),V&&V.style&&V.getLayer(h1))try{oa(V,h1,D,J.current)}catch(T1){console.warn(T1)}else la(V,h1,D);return J.current=D,null}let ha=0;function da(D,V,J){if(D.style&&D.style._loaded){const K={...J};return delete K.id,delete K.children,D.addSource(V,K),D.getSource(V)}return null}function pa(D,V,J){o8(V.id===J.id,"source id changed"),o8(V.type===J.type,"source type changed");let K="",h1=0;for(const T1 in V)T1!=="children"&&T1!=="id"&&!B3(J[T1],V[T1])&&(K=T1,h1++);if(!h1)return;const g1=V.type;if(g1==="geojson")D.setData(V.data);else if(g1==="image")D.updateImage({url:V.url,coordinates:V.coordinates});else if("setCoordinates"in D&&h1===1&&K==="coordinates")D.setCoordinates(V.coordinates);else if("setUrl"in D)switch(K){case"url":D.setUrl(V.url);break;case"tiles":D.setTiles(V.tiles);break}else console.warn(`Unable to update prop: ${K}`)}function fa(D){const V=D1.useContext(V5).map.getMap(),J=D1.useRef(D),[,K]=D1.useState(0),h1=D1.useMemo(()=>D.id||`jsx-source-${ha++}`,[]);D1.useEffect(()=>{if(V){const T1=()=>setTimeout(()=>K(c=>c+1),0);return V.on("styledata",T1),T1(),()=>{var c;if(V.off("styledata",T1),V.style&&V.style._loaded&&V.getSource(h1)){const W1=(c=V.getStyle())===null||c===void 0?void 0:c.layers;if(W1)for(const r1 of W1)r1.source===h1&&V.removeLayer(r1.id);V.removeSource(h1)}}}},[V]);let g1=V&&V.style&&V.getSource(h1);return g1?pa(g1,D,J.current):g1=da(V,h1,D),J.current=D,g1&&D1.Children.map(D.children,T1=>T1&&D1.cloneElement(T1,{source:h1}))||null}const ma=Rn(()=>import("./index-CGqDWSD_.js").then(D=>D.i),__vite__mapDeps([]),import.meta.url),ga=D1.forwardRef(function(V,J){return Yn(V,J,ma)}),s8=ua,Ci=fa,Pi="#CC3333",Mi="#990000",ya={"fill-color":Pi,"fill-opacity":.2},_a={"line-color":Mi,"line-opacity":.6},va={"circle-radius":["interpolate",["linear"],["number",["get","point_count"],1],0,4,10,14],"circle-stroke-width":1,"circle-color":Pi,"circle-stroke-color":Mi},u8=D=>{const[V,J]=D1.useState(D.data),K=D1.useCallback((c,W1)=>w0.defaults(c,W1),[]),h1=D1.useMemo(()=>K(D.fillStyle,ya),[K,D.fillStyle]),g1=D1.useMemo(()=>K(D.lineStyle,_a),[K,D.lineStyle]),T1=D1.useMemo(()=>K(D.pointStyle,va),[K,D.pointStyle]);return D1.useEffect(()=>{D.url&&fetch(D.url).then(c=>c.json()).then(c=>J(c))},[D.url]),U4.jsxs(Ci,{data:V,type:"geojson",children:[U4.jsx(s8,{filter:["!=","$type","Point"],paint:h1,type:"fill"}),U4.jsx(s8,{filter:["!=","$type","Point"],paint:g1,type:"line"}),U4.jsx(s8,{filter:["==","$type","Point"],paint:T1,type:"circle"})]})};u8.__docgenInfo={description:"",methods:[],displayName:"GeoJsonLayer",props:{data:{required:!1,flowType:{name:"signature",type:"object",raw:"{ [key: string]: any }",signature:{properties:[{key:{name:"string"},value:{name:"any",required:!0}}]}},description:""},fillStyle:{required:!1,flowType:{name:"signature",type:"object",raw:"{ [key: string]: any }",signature:{properties:[{key:{name:"string"},value:{name:"any",required:!0}}]}},description:""},lineStyle:{required:!1,flowType:{name:"signature",type:"object",raw:"{ [key: string]: any }",signature:{properties:[{key:{name:"string"},value:{name:"any",required:!0}}]}},description:""},pointStyle:{required:!1,flowType:{name:"signature",type:"object",raw:"{ [key: string]: any }",signature:{properties:[{key:{name:"string"},value:{name:"any",required:!0}}]}},description:""},url:{required:!1,flowType:{name:"string"},description:""}}};var Ai={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Jt=f5.createContext&&f5.createContext(Ai),xa=["attr","size","title"];function ba(D,V){if(D==null)return{};var J=wa(D,V),K,h1;if(Object.getOwnPropertySymbols){var g1=Object.getOwnPropertySymbols(D);for(h1=0;h1=0)&&Object.prototype.propertyIsEnumerable.call(D,K)&&(J[K]=D[K])}return J}function wa(D,V){if(D==null)return{};var J={},K=Object.keys(D),h1,g1;for(g1=0;g1=0)&&(J[h1]=D[h1]);return J}function l8(){return l8=Object.assign?Object.assign.bind():function(D){for(var V=1;Vf5.createElement(V.tag,c8({key:J},V.attr),ki(V.child)))}function zi(D){return V=>f5.createElement(Ea,l8({attr:c8({},D.attr)},V),ki(D.child))}function Ea(D){var V=J=>{var{attr:K,size:h1,title:g1}=D,T1=ba(D,xa),c=h1||J.size||"1em",W1;return J.className&&(W1=J.className),D.className&&(W1=(W1?W1+" ":"")+D.className),f5.createElement("svg",l8({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},J.attr,K,T1,{className:W1,style:c8(c8({color:D.color||J.color},J.style),D.style),height:c,width:c,xmlns:"http://www.w3.org/2000/svg"}),g1&&f5.createElement("title",null,g1),D.children)};return Jt!==void 0?f5.createElement(Jt.Consumer,null,J=>V(J)):V(Ai)}function Ca(D){return zi({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"m14.12 10.163 1.715.858c.22.11.22.424 0 .534L8.267 15.34a.598.598 0 0 1-.534 0L.165 11.555a.299.299 0 0 1 0-.534l1.716-.858 5.317 2.659c.505.252 1.1.252 1.604 0l5.317-2.66zM7.733.063a.598.598 0 0 1 .534 0l7.568 3.784a.3.3 0 0 1 0 .535L8.267 8.165a.598.598 0 0 1-.534 0L.165 4.382a.299.299 0 0 1 0-.535L7.733.063z"},child:[]},{tag:"path",attr:{d:"m14.12 6.576 1.715.858c.22.11.22.424 0 .534l-7.568 3.784a.598.598 0 0 1-.534 0L.165 7.968a.299.299 0 0 1 0-.534l1.716-.858 5.317 2.659c.505.252 1.1.252 1.604 0l5.317-2.659z"},child:[]}]})(D)}function Pa(D){return zi({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M416 128 192 384l-96-96"},child:[]}]})(D)}var Li={exports:{}};(function(D,V){(function(J,K){D.exports=K()})(O5,function(){var J,K,h1;function g1(c,W1){if(!J)J=W1;else if(!K)K=W1;else{var r1="var sharedChunk = {}; ("+J+")(sharedChunk); ("+K+")(sharedChunk);",o4={};J(o4),h1=W1(o4),typeof window<"u"&&(h1.workerUrl=window.URL.createObjectURL(new Blob([r1],{type:"text/javascript"})))}}g1(["exports"],function(c){function W1(i,e,r,a){return new(r||(r=Promise))(function(o,h){function p(x){try{_(a.next(x))}catch(S){h(S)}}function m(x){try{_(a.throw(x))}catch(S){h(S)}}function _(x){var S;x.done?o(x.value):(S=x.value,S instanceof r?S:new r(function(E){E(S)})).then(p,m)}_((a=a.apply(i,e||[])).next())})}function r1(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}typeof SuppressedError=="function"&&SuppressedError;var o4=u4;function u4(i,e){this.x=i,this.y=e}u4.prototype={clone:function(){return new u4(this.x,this.y)},add:function(i){return this.clone()._add(i)},sub:function(i){return this.clone()._sub(i)},multByPoint:function(i){return this.clone()._multByPoint(i)},divByPoint:function(i){return this.clone()._divByPoint(i)},mult:function(i){return this.clone()._mult(i)},div:function(i){return this.clone()._div(i)},rotate:function(i){return this.clone()._rotate(i)},rotateAround:function(i,e){return this.clone()._rotateAround(i,e)},matMult:function(i){return this.clone()._matMult(i)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(i){return this.x===i.x&&this.y===i.y},dist:function(i){return Math.sqrt(this.distSqr(i))},distSqr:function(i){var e=i.x-this.x,r=i.y-this.y;return e*e+r*r},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(i){return Math.atan2(this.y-i.y,this.x-i.x)},angleWith:function(i){return this.angleWithSep(i.x,i.y)},angleWithSep:function(i,e){return Math.atan2(this.x*e-this.y*i,this.x*i+this.y*e)},_matMult:function(i){var e=i[2]*this.x+i[3]*this.y;return this.x=i[0]*this.x+i[1]*this.y,this.y=e,this},_add:function(i){return this.x+=i.x,this.y+=i.y,this},_sub:function(i){return this.x-=i.x,this.y-=i.y,this},_mult:function(i){return this.x*=i,this.y*=i,this},_div:function(i){return this.x/=i,this.y/=i,this},_multByPoint:function(i){return this.x*=i.x,this.y*=i.y,this},_divByPoint:function(i){return this.x/=i.x,this.y/=i.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var i=this.y;return this.y=this.x,this.x=-i,this},_rotate:function(i){var e=Math.cos(i),r=Math.sin(i),a=r*this.x+e*this.y;return this.x=e*this.x-r*this.y,this.y=a,this},_rotateAround:function(i,e){var r=Math.cos(i),a=Math.sin(i),o=e.y+a*(this.x-e.x)+r*(this.y-e.y);return this.x=e.x+r*(this.x-e.x)-a*(this.y-e.y),this.y=o,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},u4.convert=function(i){return i instanceof u4?i:Array.isArray(i)?new u4(i[0],i[1]):i};var j1=r1(o4),c4=b4;function b4(i,e,r,a){this.cx=3*i,this.bx=3*(r-i)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*e,this.by=3*(a-e)-this.cy,this.ay=1-this.cy-this.by,this.p1x=i,this.p1y=e,this.p2x=r,this.p2y=a}b4.prototype={sampleCurveX:function(i){return((this.ax*i+this.bx)*i+this.cx)*i},sampleCurveY:function(i){return((this.ay*i+this.by)*i+this.cy)*i},sampleCurveDerivativeX:function(i){return(3*this.ax*i+2*this.bx)*i+this.cx},solveCurveX:function(i,e){if(e===void 0&&(e=1e-6),i<0)return 0;if(i>1)return 1;for(var r=i,a=0;a<8;a++){var o=this.sampleCurveX(r)-i;if(Math.abs(o)o?p=r:m=r,r=.5*(m-p)+p;return r},solve:function(i,e){return this.sampleCurveY(this.solveCurveX(i,e))}};var r4=r1(c4);let g4,I4;function i7(){return g4==null&&(g4=typeof OffscreenCanvas<"u"&&new OffscreenCanvas(1,1).getContext("2d")&&typeof createImageBitmap=="function"),g4}function N4(){if(I4==null&&(I4=!1,i7())){const e=new OffscreenCanvas(5,5).getContext("2d",{willReadFrequently:!0});if(e){for(let a=0;a<5*5;a++){const o=4*a;e.fillStyle=`rgb(${o},${o+1},${o+2})`,e.fillRect(a%5,Math.floor(a/5),1,1)}const r=e.getImageData(0,0,5,5).data;for(let a=0;a<5*5*4;a++)if(a%4!=3&&r[a]!==a){I4=!0;break}}}return I4||!1}function A4(i,e,r,a){const o=new r4(i,e,r,a);return function(h){return o.solve(h)}}const r7=A4(.25,.1,.25,1);function O7(i,e,r){return Math.min(r,Math.max(e,i))}function $0(i,e,r){const a=r-e,o=((i-e)%a+a)%a+e;return o===e?r:o}function U2(i,...e){for(const r of e)for(const a in r)i[a]=r[a];return i}let y6=1;function a2(i,e,r){const a={};for(const o in i)a[o]=e.call(r||this,i[o],o,i);return a}function a0(i,e,r){const a={};for(const o in i)e.call(r||this,i[o],o,i)&&(a[o]=i[o]);return a}function S2(i){return Array.isArray(i)?i.map(S2):typeof i=="object"&&i?a2(i,S2):i}const O3={};function P2(i){O3[i]||(typeof console<"u"&&console.warn(i),O3[i]=!0)}function f7(i,e,r){return(r.y-i.y)*(e.x-i.x)>(e.y-i.y)*(r.x-i.x)}function N7(i){let e=0;for(let r,a,o=0,h=i.length,p=h-1;o"u")throw new Error("VideoFrame not supported");const h=new VideoFrame(i,{timestamp:0});try{const p=h==null?void 0:h.format;if(!p||!p.startsWith("BGR")&&!p.startsWith("RGB"))throw new Error(`Unrecognized format ${p}`);const m=p.startsWith("BGR"),_=new Uint8ClampedArray(a*o*4);if(yield h.copyTo(_,function(x,S,E,P,z){const L=4*Math.max(-S,0),B=(Math.max(0,E)-E)*P*4+L,Z=4*P,X=Math.max(0,S),s1=Math.max(0,E);return{rect:{x:X,y:s1,width:Math.min(x.width,S+P)-X,height:Math.min(x.height,E+z)-s1},layout:[{offset:B,stride:Z}]}}(i,e,r,a,o)),m)for(let x=0;x<_.length;x+=4){const S=_[x];_[x]=_[x+2],_[x+2]=S}return _}finally{h.close()}})}let V7,E4,M2,l7;const Z2={now:typeof performance<"u"&&performance&&performance.now?performance.now.bind(performance):Date.now.bind(Date),frame(i){const e=requestAnimationFrame(i);return{cancel:()=>cancelAnimationFrame(e)}},getImageData(i,e=0){return this.getImageCanvasContext(i).getImageData(-e,-e,i.width+2*e,i.height+2*e)},getImageCanvasContext(i){const e=window.document.createElement("canvas"),r=e.getContext("2d",{willReadFrequently:!0});if(!r)throw new Error("failed to create canvas 2d context");return e.width=i.width,e.height=i.height,r.drawImage(i,0,0,i.width,i.height),r},resolveURL:i=>(M2||(M2=document.createElement("a")),M2.href=i,M2.href),hardwareConcurrency:typeof navigator<"u"&&navigator.hardwareConcurrency||4,get prefersReducedMotion(){return!!matchMedia&&(l7==null&&(l7=matchMedia("(prefers-reduced-motion: reduce)")),l7.matches)}},S0={MAX_PARALLEL_IMAGE_REQUESTS:16,MAX_PARALLEL_IMAGE_REQUESTS_PER_FRAME:8,MAX_TILE_CACHE_ZOOM_LEVELS:5,REGISTERED_PROTOCOLS:{},WORKER_URL:""};class t3 extends Error{constructor(e,r,a,o){super(`AJAXError: ${r} (${e}): ${a}`),this.status=e,this.statusText=r,this.url=a,this.body=o}}const l2=m7()?()=>self.worker&&self.worker.referrer:()=>(window.location.protocol==="blob:"?window.parent:window).location.href,y4=i=>S0.REGISTERED_PROTOCOLS[i.substring(0,i.indexOf("://"))];function T0(i,e){const r=new AbortController,a=new Request(i.url,{method:i.method||"GET",body:i.body,credentials:i.credentials,headers:i.headers,cache:i.cache,referrer:l2(),signal:r.signal});let o=!1,h=!1;return i.type==="json"&&a.headers.set("Accept","application/json"),h||fetch(a).then(p=>p.ok?(m=>{(i.type==="arrayBuffer"||i.type==="image"?m.arrayBuffer():i.type==="json"?m.json():m.text()).then(_=>{h||(o=!0,e(null,_,m.headers.get("Cache-Control"),m.headers.get("Expires")))}).catch(_=>{h||e(new Error(_.message))})})(p):p.blob().then(m=>e(new t3(p.status,p.statusText,i.url,m)))).catch(p=>{p.code!==20&&e(new Error(p.message))}),{cancel:()=>{h=!0,o||r.abort()}}}const N3=function(i,e){if(/:\/\//.test(i.url)&&!/^https?:|^file:/.test(i.url)){if(m7()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",i,e);if(!m7())return(y4(i.url)||T0)(i,e)}if(!(/^file:/.test(r=i.url)||/^file:/.test(l2())&&!/^\w+:/.test(r))){if(fetch&&Request&&AbortController&&Object.prototype.hasOwnProperty.call(Request.prototype,"signal"))return T0(i,e);if(m7()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",i,e,void 0,!0)}var r;return function(a,o){const h=new XMLHttpRequest;h.open(a.method||"GET",a.url,!0),a.type!=="arrayBuffer"&&a.type!=="image"||(h.responseType="arraybuffer");for(const p in a.headers)h.setRequestHeader(p,a.headers[p]);return a.type==="json"&&(h.responseType="text",h.setRequestHeader("Accept","application/json")),h.withCredentials=a.credentials==="include",h.onerror=()=>{o(new Error(h.statusText))},h.onload=()=>{if((h.status>=200&&h.status<300||h.status===0)&&h.response!==null){let p=h.response;if(a.type==="json")try{p=JSON.parse(h.response)}catch(m){return o(m)}o(null,p,h.getResponseHeader("Cache-Control"),h.getResponseHeader("Expires"))}else{const p=new Blob([h.response],{type:h.getResponseHeader("Content-Type")});o(new t3(h.status,h.statusText,a.url,p))}},h.send(a.body),{cancel:()=>h.abort()}}(i,e)},G0=function(i,e){return N3(U2(i,{type:"arrayBuffer"}),e)};function C7(i){if(!i||i.indexOf("://")<=0||i.indexOf("data:image/")===0||i.indexOf("blob:")===0)return!0;const e=new URL(i),r=window.location;return e.protocol===r.protocol&&e.host===r.host}function I0(i,e,r){r[i]&&r[i].indexOf(e)!==-1||(r[i]=r[i]||[],r[i].push(e))}function q4(i,e,r){if(r&&r[i]){const a=r[i].indexOf(e);a!==-1&&r[i].splice(a,1)}}class E3{constructor(e,r={}){U2(this,r),this.type=e}}class V3 extends E3{constructor(e,r={}){super("error",U2({error:e},r))}}class l0{on(e,r){return this._listeners=this._listeners||{},I0(e,r,this._listeners),this}off(e,r){return q4(e,r,this._listeners),q4(e,r,this._oneTimeListeners),this}once(e,r){return r?(this._oneTimeListeners=this._oneTimeListeners||{},I0(e,r,this._oneTimeListeners),this):new Promise(a=>this.once(e,a))}fire(e,r){typeof e=="string"&&(e=new E3(e,r||{}));const a=e.type;if(this.listens(a)){e.target=this;const o=this._listeners&&this._listeners[a]?this._listeners[a].slice():[];for(const m of o)m.call(this,e);const h=this._oneTimeListeners&&this._oneTimeListeners[a]?this._oneTimeListeners[a].slice():[];for(const m of h)q4(a,m,this._oneTimeListeners),m.call(this,e);const p=this._eventedParent;p&&(U2(e,typeof this._eventedParentData=="function"?this._eventedParentData():this._eventedParentData),p.fire(e))}else e instanceof V3&&console.error(e.error);return this}listens(e){return this._listeners&&this._listeners[e]&&this._listeners[e].length>0||this._oneTimeListeners&&this._oneTimeListeners[e]&&this._oneTimeListeners[e].length>0||this._eventedParent&&this._eventedParent.listens(e)}setEventedParent(e,r){return this._eventedParent=e,this._eventedParentData=r,this}}var _1={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},terrain:{type:"terrain"},sources:{required:!0,type:"sources"},sprite:{type:"sprite"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster:{type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{},custom:{}},default:"mapbox"},redFactor:{type:"number",default:1},blueFactor:{type:"number",default:1},greenFactor:{type:"number",default:1},baseShift:{type:"number",default:0},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{required:!0,type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image",{"!":"icon-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"padding",default:[2],units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},"viewport-glyph":{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-variable-anchor-offset":{type:"variableAnchorOffsetCollection",requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field",{"!":"text-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},filter:{type:"array",value:"*"},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"*",minimum:1},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},terrain:{source:{type:"string",required:!0},exaggeration:{type:"number",minimum:0,default:1}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:{"*":{type:"string"}}};const g7=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function U7(i,e){const r={};for(const a in i)a!=="ref"&&(r[a]=i[a]);return g7.forEach(a=>{a in e&&(r[a]=e[a])}),r}function J4(i,e){if(Array.isArray(i)){if(!Array.isArray(e)||i.length!==e.length)return!1;for(let r=0;r`:i.itemType.kind==="value"?"array":`array<${e}>`}return i.kind}const o1=[y7,F1,w4,f4,n7,U,M7,$(h4),C,M,F];function e1(i,e){if(e.kind==="error")return null;if(i.kind==="array"){if(e.kind==="array"&&(e.N===0&&e.itemType.kind==="value"||!e1(i.itemType,e.itemType))&&(typeof i.N!="number"||i.N===e.N))return null}else{if(i.kind===e.kind)return null;if(i.kind==="value"){for(const r of o1)if(!e1(r,e))return null}}return`Expected ${G(i)} but found ${G(e)} instead.`}function W(i,e){return e.some(r=>r.kind===i.kind)}function i1(i,e){return e.some(r=>r==="null"?i===null:r==="array"?Array.isArray(i):r==="object"?i&&!Array.isArray(i)&&typeof i=="object":r===typeof i)}function v1(i,e){return i.kind==="array"&&e.kind==="array"?i.itemType.kind===e.itemType.kind&&typeof i.N=="number":i.kind===e.kind}const x1=.96422,b1=.82521,Q1=4/29,m4=6/29,X1=3*m4*m4,n4=m4*m4*m4,_4=Math.PI/180,$4=180/Math.PI;function S4(i){return(i%=360)<0&&(i+=360),i}function O4([i,e,r,a]){let o,h;const p=a7((.2225045*(i=F4(i))+.7168786*(e=F4(e))+.0606169*(r=F4(r)))/1);i===e&&e===r?o=h=p:(o=a7((.4360747*i+.3850649*e+.1430804*r)/x1),h=a7((.0139322*i+.0971045*e+.7141733*r)/b1));const m=116*p-16;return[m<0?0:m,500*(o-p),200*(p-h),a]}function F4(i){return i<=.04045?i/12.92:Math.pow((i+.055)/1.055,2.4)}function a7(i){return i>n4?Math.pow(i,1/3):i/X1+Q1}function Y4([i,e,r,a]){let o=(i+16)/116,h=isNaN(e)?o:o+e/500,p=isNaN(r)?o:o-r/200;return o=1*R2(o),h=x1*R2(h),p=b1*R2(p),[A2(3.1338561*h-1.6168667*o-.4906146*p),A2(-.9787684*h+1.9161415*o+.033454*p),A2(.0719453*h-.2289914*o+1.4052427*p),a]}function A2(i){return(i=i<=.00304?12.92*i:1.055*Math.pow(i,1/2.4)-.055)<0?0:i>1?1:i}function R2(i){return i>m4?i*i*i:X1*(i-Q1)}function G7(i){return parseInt(i.padEnd(2,i),16)/255}function Z0(i,e){return j3(e?i/100:i,0,1)}function j3(i,e,r){return Math.min(Math.max(e,i),r)}function $3(i){return!i.some(Number.isNaN)}const B2={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};class G4{constructor(e,r,a,o=1,h=!0){this.r=e,this.g=r,this.b=a,this.a=o,h||(this.r*=o,this.g*=o,this.b*=o,o||this.overwriteGetter("rgb",[e,r,a,o]))}static parse(e){if(e instanceof G4)return e;if(typeof e!="string")return;const r=function(a){if((a=a.toLowerCase().trim())==="transparent")return[0,0,0,0];const o=B2[a];if(o){const[p,m,_]=o;return[p/255,m/255,_/255,1]}if(a.startsWith("#")&&/^#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/.test(a)){const p=a.length<6?1:2;let m=1;return[G7(a.slice(m,m+=p)),G7(a.slice(m,m+=p)),G7(a.slice(m,m+=p)),G7(a.slice(m,m+p)||"ff")]}if(a.startsWith("rgb")){const p=a.match(/^rgba?\(\s*([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(p){const[m,_,x,S,E,P,z,L,B,Z,X,s1]=p,Y=[S||" ",z||" ",Z].join("");if(Y===" "||Y===" /"||Y===",,"||Y===",,,"){const c1=[x,P,B].join(""),p1=c1==="%%%"?100:c1===""?255:0;if(p1){const S1=[j3(+_/p1,0,1),j3(+E/p1,0,1),j3(+L/p1,0,1),X?Z0(+X,s1):1];if($3(S1))return S1}}return}}const h=a.match(/^hsla?\(\s*([\de.+-]+)(?:deg)?(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(h){const[p,m,_,x,S,E,P,z,L]=h,B=[_||" ",S||" ",P].join("");if(B===" "||B===" /"||B===",,"||B===",,,"){const Z=[+m,j3(+x,0,100),j3(+E,0,100),z?Z0(+z,L):1];if($3(Z))return function([X,s1,Y,c1]){function p1(S1){const H1=(S1+X/30)%12,Y1=s1*Math.min(Y,1-Y);return Y-Y1*Math.max(-1,Math.min(H1-3,9-H1,1))}return X=S4(X),s1/=100,Y/=100,[p1(0),p1(8),p1(4),c1]}(Z)}}}(e);return r?new G4(...r,!1):void 0}get rgb(){const{r:e,g:r,b:a,a:o}=this,h=o||1/0;return this.overwriteGetter("rgb",[e/h,r/h,a/h,o])}get hcl(){return this.overwriteGetter("hcl",function(e){const[r,a,o,h]=O4(e),p=Math.sqrt(a*a+o*o);return[Math.round(1e4*p)?S4(Math.atan2(o,a)*$4):NaN,p,r,h]}(this.rgb))}get lab(){return this.overwriteGetter("lab",O4(this.rgb))}overwriteGetter(e,r){return Object.defineProperty(this,e,{value:r}),r}toString(){const[e,r,a,o]=this.rgb;return`rgba(${[e,r,a].map(h=>Math.round(255*h)).join(",")},${o})`}}G4.black=new G4(0,0,0,1),G4.white=new G4(1,1,1,1),G4.transparent=new G4(0,0,0,0),G4.red=new G4(1,0,0,1);class _6{constructor(e,r,a){this.sensitivity=e?r?"variant":"case":r?"accent":"base",this.locale=a,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})}compare(e,r){return this.collator.compare(e,r)}resolvedLocale(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}}class n3{constructor(e,r,a,o,h){this.text=e,this.image=r,this.scale=a,this.fontStack=o,this.textColor=h}}class s2{constructor(e){this.sections=e}static fromString(e){return new s2([new n3(e,null,null,null,null)])}isEmpty(){return this.sections.length===0||!this.sections.some(e=>e.text.length!==0||e.image&&e.image.name.length!==0)}static factory(e){return e instanceof s2?e:s2.fromString(e)}toString(){return this.sections.length===0?"":this.sections.map(e=>e.text).join("")}}class s7{constructor(e){this.values=e.slice()}static parse(e){if(e instanceof s7)return e;if(typeof e=="number")return new s7([e,e,e,e]);if(Array.isArray(e)&&!(e.length<1||e.length>4)){for(const r of e)if(typeof r!="number")return;switch(e.length){case 1:e=[e[0],e[0],e[0],e[0]];break;case 2:e=[e[0],e[1],e[0],e[1]];break;case 3:e=[e[0],e[1],e[2],e[1]]}return new s7(e)}}toString(){return JSON.stringify(this.values)}}const h0=new Set(["center","left","right","top","bottom","top-left","top-right","bottom-left","bottom-right"]);class j2{constructor(e){this.values=e.slice()}static parse(e){if(e instanceof j2)return e;if(Array.isArray(e)&&!(e.length<1)&&e.length%2==0){for(let r=0;r=0&&i<=255&&typeof e=="number"&&e>=0&&e<=255&&typeof r=="number"&&r>=0&&r<=255?a===void 0||typeof a=="number"&&a>=0&&a<=1?null:`Invalid rgba value [${[i,e,r,a].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${(typeof a=="number"?[i,e,r,a]:[i,e,r]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function E0(i){if(i===null||typeof i=="string"||typeof i=="boolean"||typeof i=="number"||i instanceof G4||i instanceof _6||i instanceof s2||i instanceof s7||i instanceof j2||i instanceof $2)return!0;if(Array.isArray(i)){for(const e of i)if(!E0(e))return!1;return!0}if(typeof i=="object"){for(const e in i)if(!E0(i[e]))return!1;return!0}return!1}function c2(i){if(i===null)return y7;if(typeof i=="string")return w4;if(typeof i=="boolean")return f4;if(typeof i=="number")return F1;if(i instanceof G4)return n7;if(i instanceof _6)return q7;if(i instanceof s2)return U;if(i instanceof s7)return C;if(i instanceof j2)return F;if(i instanceof $2)return M;if(Array.isArray(i)){const e=i.length;let r;for(const a of i){const o=c2(a);if(r){if(r===o)continue;r=h4;break}r=o}return $(r||h4,e)}return M7}function V4(i){const e=typeof i;return i===null?"":e==="string"||e==="number"||e==="boolean"?String(i):i instanceof G4||i instanceof s2||i instanceof s7||i instanceof j2||i instanceof $2?i.toString():JSON.stringify(i)}class C3{constructor(e,r){this.type=e,this.value=r}static parse(e,r){if(e.length!==2)return r.error(`'literal' expression requires exactly one argument, but found ${e.length-1} instead.`);if(!E0(e[1]))return r.error("invalid value");const a=e[1];let o=c2(a);const h=r.expectedType;return o.kind!=="array"||o.N!==0||!h||h.kind!=="array"||typeof h.N=="number"&&h.N!==0||(o=h),new C3(o,a)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}}class u2{constructor(e){this.name="ExpressionEvaluationError",this.message=e}toJSON(){return this.message}}const H0={string:w4,number:F1,boolean:f4,object:M7};class Z7{constructor(e,r){this.type=e,this.args=r}static parse(e,r){if(e.length<2)return r.error("Expected at least one argument.");let a,o=1;const h=e[0];if(h==="array"){let m,_;if(e.length>2){const x=e[1];if(typeof x!="string"||!(x in H0)||x==="object")return r.error('The item type argument of "array" must be one of string, number, boolean',1);m=H0[x],o++}else m=h4;if(e.length>3){if(e[2]!==null&&(typeof e[2]!="number"||e[2]<0||e[2]!==Math.floor(e[2])))return r.error('The length argument to "array" must be a positive integer literal',2);_=e[2],o++}a=$(m,_)}else{if(!H0[h])throw new Error(`Types doesn't contain name = ${h}`);a=H0[h]}const p=[];for(;oe.outputDefined())}}const J6={"to-boolean":f4,"to-color":n7,"to-number":F1,"to-string":w4};class q3{constructor(e,r){this.type=e,this.args=r}static parse(e,r){if(e.length<2)return r.error("Expected at least one argument.");const a=e[0];if(!J6[a])throw new Error(`Can't parse ${a} as it is not part of the known types`);if((a==="to-boolean"||a==="to-string")&&e.length!==2)return r.error("Expected one argument.");const o=J6[a],h=[];for(let p=1;p4?`Invalid rbga value ${JSON.stringify(r)}: expected an array containing either three or four numeric values.`:v6(r[0],r[1],r[2],r[3]),!a))return new G4(r[0]/255,r[1]/255,r[2]/255,r[3])}throw new u2(a||`Could not parse color from value '${typeof r=="string"?r:JSON.stringify(r)}'`)}case"padding":{let r;for(const a of this.args){r=a.evaluate(e);const o=s7.parse(r);if(o)return o}throw new u2(`Could not parse padding from value '${typeof r=="string"?r:JSON.stringify(r)}'`)}case"variableAnchorOffsetCollection":{let r;for(const a of this.args){r=a.evaluate(e);const o=j2.parse(r);if(o)return o}throw new u2(`Could not parse variableAnchorOffsetCollection from value '${typeof r=="string"?r:JSON.stringify(r)}'`)}case"number":{let r=null;for(const a of this.args){if(r=a.evaluate(e),r===null)return 0;const o=Number(r);if(!isNaN(o))return o}throw new u2(`Could not convert ${JSON.stringify(r)} to number.`)}case"formatted":return s2.fromString(V4(this.args[0].evaluate(e)));case"resolvedImage":return $2.fromString(V4(this.args[0].evaluate(e)));default:return V4(this.args[0].evaluate(e))}}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every(e=>e.outputDefined())}}const W0=["Unknown","Point","LineString","Polygon"];class f{constructor(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null}id(){return this.feature&&"id"in this.feature?this.feature.id:null}geometryType(){return this.feature?typeof this.feature.type=="number"?W0[this.feature.type]:this.feature.type:null}geometry(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null}canonicalID(){return this.canonical}properties(){return this.feature&&this.feature.properties||{}}parseColor(e){let r=this._parseColorCache[e];return r||(r=this._parseColorCache[e]=G4.parse(e)),r}}class b{constructor(e,r,a=[],o,h=new u0,p=[]){this.registry=e,this.path=a,this.key=a.map(m=>`[${m}]`).join(""),this.scope=h,this.errors=p,this.expectedType=o,this._isConstant=r}parse(e,r,a,o,h={}){return r?this.concat(r,a,o)._parse(e,h):this._parse(e,h)}_parse(e,r){function a(o,h,p){return p==="assert"?new Z7(h,[o]):p==="coerce"?new q3(h,[o]):o}if(e!==null&&typeof e!="string"&&typeof e!="boolean"&&typeof e!="number"||(e=["literal",e]),Array.isArray(e)){if(e.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');const o=e[0];if(typeof o!="string")return this.error(`Expression name must be a string, but found ${typeof o} instead. If you wanted a literal array, use ["literal", [...]].`,0),null;const h=this.registry[o];if(h){let p=h.parse(e,this);if(!p)return null;if(this.expectedType){const m=this.expectedType,_=p.type;if(m.kind!=="string"&&m.kind!=="number"&&m.kind!=="boolean"&&m.kind!=="object"&&m.kind!=="array"||_.kind!=="value")if(m.kind!=="color"&&m.kind!=="formatted"&&m.kind!=="resolvedImage"||_.kind!=="value"&&_.kind!=="string")if(m.kind!=="padding"||_.kind!=="value"&&_.kind!=="number"&&_.kind!=="array")if(m.kind!=="variableAnchorOffsetCollection"||_.kind!=="value"&&_.kind!=="array"){if(this.checkSubtype(m,_))return null}else p=a(p,m,r.typeAnnotation||"coerce");else p=a(p,m,r.typeAnnotation||"coerce");else p=a(p,m,r.typeAnnotation||"coerce");else p=a(p,m,r.typeAnnotation||"assert")}if(!(p instanceof C3)&&p.type.kind!=="resolvedImage"&&this._isConstant(p)){const m=new f;try{p=new C3(p.type,p.evaluate(m))}catch(_){return this.error(_.message),null}}return p}return this.error(`Unknown expression "${o}". If you wanted a literal array, use ["literal", [...]].`,0)}return this.error(e===void 0?"'undefined' value invalid. Use null instead.":typeof e=="object"?'Bare objects invalid. Use ["literal", {...}] instead.':`Expected an array, but found ${typeof e} instead.`)}concat(e,r,a){const o=typeof e=="number"?this.path.concat(e):this.path,h=a?this.scope.concat(a):this.scope;return new b(this.registry,this._isConstant,o,r||null,h,this.errors)}error(e,...r){const a=`${this.key}${r.map(o=>`[${o}]`).join("")}`;this.errors.push(new _2(a,e))}checkSubtype(e,r){const a=e1(e,r);return a&&this.error(a),a}}class k{constructor(e,r,a){this.type=q7,this.locale=a,this.caseSensitive=e,this.diacriticSensitive=r}static parse(e,r){if(e.length!==2)return r.error("Expected one argument.");const a=e[1];if(typeof a!="object"||Array.isArray(a))return r.error("Collator options argument must be an object.");const o=r.parse(a["case-sensitive"]!==void 0&&a["case-sensitive"],1,f4);if(!o)return null;const h=r.parse(a["diacritic-sensitive"]!==void 0&&a["diacritic-sensitive"],1,f4);if(!h)return null;let p=null;return a.locale&&(p=r.parse(a.locale,1,w4),!p)?null:new k(o,h,p)}evaluate(e){return new _6(this.caseSensitive.evaluate(e),this.diacriticSensitive.evaluate(e),this.locale?this.locale.evaluate(e):null)}eachChild(e){e(this.caseSensitive),e(this.diacriticSensitive),this.locale&&e(this.locale)}outputDefined(){return!1}}const q=8192;function Q(i,e){i[0]=Math.min(i[0],e[0]),i[1]=Math.min(i[1],e[1]),i[2]=Math.max(i[2],e[0]),i[3]=Math.max(i[3],e[1])}function t1(i,e){return!(i[0]<=e[0]||i[2]>=e[2]||i[1]<=e[1]||i[3]>=e[3])}function u1(i,e){const r=(180+i[0])/360,a=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+i[1]*Math.PI/360)))/360,o=Math.pow(2,e.z);return[Math.round(r*o*q),Math.round(a*o*q)]}function C1(i,e,r){const a=i[0]-e[0],o=i[1]-e[1],h=i[0]-r[0],p=i[1]-r[1];return a*p-h*o==0&&a*h<=0&&o*p<=0}function A1(i,e){let r=!1;for(let p=0,m=e.length;p(a=i)[1]!=(h=_[x+1])[1]>a[1]&&a[0]<(h[0]-o[0])*(a[1]-o[1])/(h[1]-o[1])+o[0]&&(r=!r)}}var a,o,h;return r}function q1(i,e){for(let r=0;r0&&m<0||p<0&&m>0}function O1(i,e,r){for(const x of r)for(let S=0;Sr[2]){const o=.5*a;let h=i[0]-r[0]>o?-a:r[0]-i[0]>o?a:0;h===0&&(h=i[0]-r[2]>o?-a:r[2]-i[0]>o?a:0),i[0]+=h}Q(e,i)}function e4(i,e,r,a){const o=Math.pow(2,a.z)*q,h=[a.x*q,a.y*q],p=[];for(const m of i)for(const _ of m){const x=[_.x+h[0],_.y+h[1]];I1(x,e,r,o),p.push(x)}return p}function Z4(i,e,r,a){const o=Math.pow(2,a.z)*q,h=[a.x*q,a.y*q],p=[];for(const _ of i){const x=[];for(const S of _){const E=[S.x+h[0],S.y+h[1]];Q(e,E),x.push(E)}p.push(x)}if(e[2]-e[0]<=o/2){(m=e)[0]=m[1]=1/0,m[2]=m[3]=-1/0;for(const _ of p)for(const x of _)I1(x,e,r,o)}var m;return p}class d2{constructor(e,r){this.type=f4,this.geojson=e,this.geometries=r}static parse(e,r){if(e.length!==2)return r.error(`'within' expression requires exactly one argument, but found ${e.length-1} instead.`);if(E0(e[1])){const a=e[1];if(a.type==="FeatureCollection")for(let o=0;o!Array.isArray(x)||x.length===e.length-1);let _=null;for(const[x,S]of m){_=new b(r.registry,x6,r.path,null,r.scope);const E=[];let P=!1;for(let z=1;z{return P=E,Array.isArray(P)?`(${P.map(G).join(", ")})`:`(${G(P.type)}...)`;var P}).join(" | "),S=[];for(let E=1;E{r=e?r&&x6(a):r&&a instanceof C3}),!!r&&Q4(i)&&b6(i,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"])}function Q4(i){if(i instanceof _7&&(i.name==="get"&&i.args.length===1||i.name==="feature-state"||i.name==="has"&&i.args.length===1||i.name==="properties"||i.name==="geometry-type"||i.name==="id"||/^filter-/.test(i.name))||i instanceof d2)return!1;let e=!0;return i.eachChild(r=>{e&&!Q4(r)&&(e=!1)}),e}function C0(i){if(i instanceof _7&&i.name==="feature-state")return!1;let e=!0;return i.eachChild(r=>{e&&!C0(r)&&(e=!1)}),e}function b6(i,e){if(i instanceof _7&&e.indexOf(i.name)>=0)return!1;let r=!0;return i.eachChild(a=>{r&&!b6(a,e)&&(r=!1)}),r}function v7(i,e){const r=i.length-1;let a,o,h=0,p=r,m=0;for(;h<=p;)if(m=Math.floor((h+p)/2),a=i[m],o=i[m+1],a<=e){if(m===r||ee))throw new u2("Input is not a number.");p=m-1}return 0}class P3{constructor(e,r,a){this.type=e,this.input=r,this.labels=[],this.outputs=[];for(const[o,h]of a)this.labels.push(o),this.outputs.push(h)}static parse(e,r){if(e.length-1<4)return r.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if((e.length-1)%2!=0)return r.error("Expected an even number of arguments.");const a=r.parse(e[1],1,F1);if(!a)return null;const o=[];let h=null;r.expectedType&&r.expectedType.kind!=="value"&&(h=r.expectedType);for(let p=1;p=m)return r.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',x);const E=r.parse(_,S,h);if(!E)return null;h=h||E.type,o.push([m,E])}return new P3(h,a,o)}evaluate(e){const r=this.labels,a=this.outputs;if(r.length===1)return a[0].evaluate(e);const o=this.input.evaluate(e);if(o<=r[0])return a[0].evaluate(e);const h=r.length;return o>=r[h-1]?a[h-1].evaluate(e):a[v7(r,o)].evaluate(e)}eachChild(e){e(this.input);for(const r of this.outputs)e(r)}outputDefined(){return this.outputs.every(e=>e.outputDefined())}}function P4(i,e,r){return i+r*(e-i)}function X0(i,e,r){return i.map((a,o)=>P4(a,e[o],r))}const c7={number:P4,color:function(i,e,r,a="rgb"){switch(a){case"rgb":{const[o,h,p,m]=X0(i.rgb,e.rgb,r);return new G4(o,h,p,m,!1)}case"hcl":{const[o,h,p,m]=i.hcl,[_,x,S,E]=e.hcl;let P,z;if(isNaN(o)||isNaN(_))isNaN(o)?isNaN(_)?P=NaN:(P=_,p!==1&&p!==0||(z=x)):(P=o,S!==1&&S!==0||(z=h));else{let s1=_-o;_>o&&s1>180?s1-=360:_180&&(s1+=360),P=o+r*s1}const[L,B,Z,X]=function([s1,Y,c1,p1]){return s1=isNaN(s1)?0:s1*_4,Y4([c1,Math.cos(s1)*Y,Math.sin(s1)*Y,p1])}([P,z??P4(h,x,r),P4(p,S,r),P4(m,E,r)]);return new G4(L,B,Z,X,!1)}case"lab":{const[o,h,p,m]=Y4(X0(i.lab,e.lab,r));return new G4(o,h,p,m,!1)}}},array:X0,padding:function(i,e,r){return new s7(X0(i.values,e.values,r))},variableAnchorOffsetCollection:function(i,e,r){const a=i.values,o=e.values;if(a.length!==o.length)throw new u2(`Cannot interpolate values of different length. from: ${i.toString()}, to: ${e.toString()}`);const h=[];for(let p=0;ptypeof S!="number"||S<0||S>1))return r.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);o={name:"cubic-bezier",controlPoints:x}}}if(e.length-1<4)return r.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if((e.length-1)%2!=0)return r.error("Expected an even number of arguments.");if(h=r.parse(h,2,F1),!h)return null;const m=[];let _=null;a==="interpolate-hcl"||a==="interpolate-lab"?_=n7:r.expectedType&&r.expectedType.kind!=="value"&&(_=r.expectedType);for(let x=0;x=S)return r.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',P);const L=r.parse(E,z,_);if(!L)return null;_=_||L.type,m.push([S,L])}return v1(_,F1)||v1(_,n7)||v1(_,C)||v1(_,F)||v1(_,$(F1))?new x7(_,a,o,h,m):r.error(`Type ${G(_)} is not interpolatable.`)}evaluate(e){const r=this.labels,a=this.outputs;if(r.length===1)return a[0].evaluate(e);const o=this.input.evaluate(e);if(o<=r[0])return a[0].evaluate(e);const h=r.length;if(o>=r[h-1])return a[h-1].evaluate(e);const p=v7(r,o),m=x7.interpolationFactor(this.interpolation,o,r[p],r[p+1]),_=a[p].evaluate(e),x=a[p+1].evaluate(e);switch(this.operator){case"interpolate":return c7[this.type.kind](_,x,m);case"interpolate-hcl":return c7.color(_,x,m,"hcl");case"interpolate-lab":return c7.color(_,x,m,"lab")}}eachChild(e){e(this.input);for(const r of this.outputs)e(r)}outputDefined(){return this.outputs.every(e=>e.outputDefined())}}function w6(i,e,r,a){const o=a-r,h=i-r;return o===0?0:e===1?h/o:(Math.pow(e,h)-1)/(Math.pow(e,o)-1)}class S6{constructor(e,r){this.type=e,this.args=r}static parse(e,r){if(e.length<2)return r.error("Expectected at least one argument.");let a=null;const o=r.expectedType;o&&o.kind!=="value"&&(a=o);const h=[];for(const m of e.slice(1)){const _=r.parse(m,1+h.length,a,void 0,{typeAnnotation:"omit"});if(!_)return null;a=a||_.type,h.push(_)}if(!a)throw new Error("No output type");const p=o&&h.some(m=>e1(o,m.type));return new S6(p?h4:a,h)}evaluate(e){let r,a=null,o=0;for(const h of this.args)if(o++,a=h.evaluate(e),a&&a instanceof $2&&!a.available&&(r||(r=a.name),a=null,o===this.args.length&&(a=r)),a!==null)break;return a}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every(e=>e.outputDefined())}}class T6{constructor(e,r){this.type=r.type,this.bindings=[].concat(e),this.result=r}evaluate(e){return this.result.evaluate(e)}eachChild(e){for(const r of this.bindings)e(r[1]);e(this.result)}static parse(e,r){if(e.length<4)return r.error(`Expected at least 3 arguments, but found ${e.length-1} instead.`);const a=[];for(let h=1;h=a.length)throw new u2(`Array index out of bounds: ${r} > ${a.length-1}.`);if(r!==Math.floor(r))throw new u2(`Array index must be an integer, but found ${r} instead.`);return a[r]}eachChild(e){e(this.index),e(this.input)}outputDefined(){return!1}}class I6{constructor(e,r){this.type=f4,this.needle=e,this.haystack=r}static parse(e,r){if(e.length!==3)return r.error(`Expected 2 arguments, but found ${e.length-1} instead.`);const a=r.parse(e[1],1,h4),o=r.parse(e[2],2,h4);return a&&o?W(a.type,[f4,w4,F1,y7,h4])?new I6(a,o):r.error(`Expected first argument to be of type boolean, string, number or null, but found ${G(a.type)} instead`):null}evaluate(e){const r=this.needle.evaluate(e),a=this.haystack.evaluate(e);if(!a)return!1;if(!i1(r,["boolean","string","number","null"]))throw new u2(`Expected first argument to be of type boolean, string, number or null, but found ${G(c2(r))} instead.`);if(!i1(a,["string","array"]))throw new u2(`Expected second argument to be of type array or string, but found ${G(c2(a))} instead.`);return a.indexOf(r)>=0}eachChild(e){e(this.needle),e(this.haystack)}outputDefined(){return!0}}class K0{constructor(e,r,a){this.type=F1,this.needle=e,this.haystack=r,this.fromIndex=a}static parse(e,r){if(e.length<=2||e.length>=5)return r.error(`Expected 3 or 4 arguments, but found ${e.length-1} instead.`);const a=r.parse(e[1],1,h4),o=r.parse(e[2],2,h4);if(!a||!o)return null;if(!W(a.type,[f4,w4,F1,y7,h4]))return r.error(`Expected first argument to be of type boolean, string, number or null, but found ${G(a.type)} instead`);if(e.length===4){const h=r.parse(e[3],3,F1);return h?new K0(a,o,h):null}return new K0(a,o)}evaluate(e){const r=this.needle.evaluate(e),a=this.haystack.evaluate(e);if(!i1(r,["boolean","string","number","null"]))throw new u2(`Expected first argument to be of type boolean, string, number or null, but found ${G(c2(r))} instead.`);if(!i1(a,["string","array"]))throw new u2(`Expected second argument to be of type array or string, but found ${G(c2(a))} instead.`);if(this.fromIndex){const o=this.fromIndex.evaluate(e);return a.indexOf(r,o)}return a.indexOf(r)}eachChild(e){e(this.needle),e(this.haystack),this.fromIndex&&e(this.fromIndex)}outputDefined(){return!1}}class E6{constructor(e,r,a,o,h,p){this.inputType=e,this.type=r,this.input=a,this.cases=o,this.outputs=h,this.otherwise=p}static parse(e,r){if(e.length<5)return r.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if(e.length%2!=1)return r.error("Expected an even number of arguments.");let a,o;r.expectedType&&r.expectedType.kind!=="value"&&(o=r.expectedType);const h={},p=[];for(let x=2;xNumber.MAX_SAFE_INTEGER)return P.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if(typeof L=="number"&&Math.floor(L)!==L)return P.error("Numeric branch labels must be integer values.");if(a){if(P.checkSubtype(a,c2(L)))return null}else a=c2(L);if(h[String(L)]!==void 0)return P.error("Branch labels must be unique.");h[String(L)]=p.length}const z=r.parse(E,x,o);if(!z)return null;o=o||z.type,p.push(z)}const m=r.parse(e[1],1,h4);if(!m)return null;const _=r.parse(e[e.length-1],e.length-1,o);return _?m.type.kind!=="value"&&r.concat(1).checkSubtype(a,m.type)?null:new E6(a,o,m,h,p,_):null}evaluate(e){const r=this.input.evaluate(e);return(c2(r)===this.inputType&&this.outputs[this.cases[r]]||this.otherwise).evaluate(e)}eachChild(e){e(this.input),this.outputs.forEach(e),e(this.otherwise)}outputDefined(){return this.outputs.every(e=>e.outputDefined())&&this.otherwise.outputDefined()}}class Q6{constructor(e,r,a){this.type=e,this.branches=r,this.otherwise=a}static parse(e,r){if(e.length<4)return r.error(`Expected at least 3 arguments, but found only ${e.length-1}.`);if(e.length%2!=0)return r.error("Expected an odd number of arguments.");let a;r.expectedType&&r.expectedType.kind!=="value"&&(a=r.expectedType);const o=[];for(let p=1;pr.outputDefined())&&this.otherwise.outputDefined()}}class C6{constructor(e,r,a,o){this.type=e,this.input=r,this.beginIndex=a,this.endIndex=o}static parse(e,r){if(e.length<=2||e.length>=5)return r.error(`Expected 3 or 4 arguments, but found ${e.length-1} instead.`);const a=r.parse(e[1],1,h4),o=r.parse(e[2],2,F1);if(!a||!o)return null;if(!W(a.type,[$(h4),w4,h4]))return r.error(`Expected first argument to be of type array or string, but found ${G(a.type)} instead`);if(e.length===4){const h=r.parse(e[3],3,F1);return h?new C6(a.type,a,o,h):null}return new C6(a.type,a,o)}evaluate(e){const r=this.input.evaluate(e),a=this.beginIndex.evaluate(e);if(!i1(r,["string","array"]))throw new u2(`Expected first argument to be of type array or string, but found ${G(c2(r))} instead.`);if(this.endIndex){const o=this.endIndex.evaluate(e);return r.slice(a,o)}return r.slice(a)}eachChild(e){e(this.input),e(this.beginIndex),this.endIndex&&e(this.endIndex)}outputDefined(){return!1}}function J0(i,e){return i==="=="||i==="!="?e.kind==="boolean"||e.kind==="string"||e.kind==="number"||e.kind==="null"||e.kind==="value":e.kind==="string"||e.kind==="number"||e.kind==="value"}function P6(i,e,r,a){return a.compare(e,r)===0}function d0(i,e,r){const a=i!=="=="&&i!=="!=";return class Di{constructor(h,p,m){this.type=f4,this.lhs=h,this.rhs=p,this.collator=m,this.hasUntypedArgument=h.type.kind==="value"||p.type.kind==="value"}static parse(h,p){if(h.length!==3&&h.length!==4)return p.error("Expected two or three arguments.");const m=h[0];let _=p.parse(h[1],1,h4);if(!_)return null;if(!J0(m,_.type))return p.concat(1).error(`"${m}" comparisons are not supported for type '${G(_.type)}'.`);let x=p.parse(h[2],2,h4);if(!x)return null;if(!J0(m,x.type))return p.concat(2).error(`"${m}" comparisons are not supported for type '${G(x.type)}'.`);if(_.type.kind!==x.type.kind&&_.type.kind!=="value"&&x.type.kind!=="value")return p.error(`Cannot compare types '${G(_.type)}' and '${G(x.type)}'.`);a&&(_.type.kind==="value"&&x.type.kind!=="value"?_=new Z7(x.type,[_]):_.type.kind!=="value"&&x.type.kind==="value"&&(x=new Z7(_.type,[x])));let S=null;if(h.length===4){if(_.type.kind!=="string"&&x.type.kind!=="string"&&_.type.kind!=="value"&&x.type.kind!=="value")return p.error("Cannot use collator to compare non-string types.");if(S=p.parse(h[3],3,q7),!S)return null}return new Di(_,x,S)}evaluate(h){const p=this.lhs.evaluate(h),m=this.rhs.evaluate(h);if(a&&this.hasUntypedArgument){const _=c2(p),x=c2(m);if(_.kind!==x.kind||_.kind!=="string"&&_.kind!=="number")throw new u2(`Expected arguments for "${i}" to be (string, string) or (number, number), but found (${_.kind}, ${x.kind}) instead.`)}if(this.collator&&!a&&this.hasUntypedArgument){const _=c2(p),x=c2(m);if(_.kind!=="string"||x.kind!=="string")return e(h,p,m)}return this.collator?r(h,p,m,this.collator.evaluate(h)):e(h,p,m)}eachChild(h){h(this.lhs),h(this.rhs),this.collator&&h(this.collator)}outputDefined(){return!0}}}const g3=d0("==",function(i,e,r){return e===r},P6),_5=d0("!=",function(i,e,r){return e!==r},function(i,e,r,a){return!P6(0,e,r,a)}),v5=d0("<",function(i,e,r){return e",function(i,e,r){return e>r},function(i,e,r,a){return a.compare(e,r)>0}),x5=d0("<=",function(i,e,r){return e<=r},function(i,e,r,a){return a.compare(e,r)<=0}),M6=d0(">=",function(i,e,r){return e>=r},function(i,e,r,a){return a.compare(e,r)>=0});class A6{constructor(e,r,a,o,h){this.type=w4,this.number=e,this.locale=r,this.currency=a,this.minFractionDigits=o,this.maxFractionDigits=h}static parse(e,r){if(e.length!==3)return r.error("Expected two arguments.");const a=r.parse(e[1],1,F1);if(!a)return null;const o=e[2];if(typeof o!="object"||Array.isArray(o))return r.error("NumberFormat options argument must be an object.");let h=null;if(o.locale&&(h=r.parse(o.locale,1,w4),!h))return null;let p=null;if(o.currency&&(p=r.parse(o.currency,1,w4),!p))return null;let m=null;if(o["min-fraction-digits"]&&(m=r.parse(o["min-fraction-digits"],1,F1),!m))return null;let _=null;return o["max-fraction-digits"]&&(_=r.parse(o["max-fraction-digits"],1,F1),!_)?null:new A6(a,h,p,m,_)}evaluate(e){return new Intl.NumberFormat(this.locale?this.locale.evaluate(e):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(e):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(e):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(e):void 0}).format(this.number.evaluate(e))}eachChild(e){e(this.number),this.locale&&e(this.locale),this.currency&&e(this.currency),this.minFractionDigits&&e(this.minFractionDigits),this.maxFractionDigits&&e(this.maxFractionDigits)}outputDefined(){return!1}}class Y0{constructor(e){this.type=U,this.sections=e}static parse(e,r){if(e.length<2)return r.error("Expected at least one argument.");const a=e[1];if(!Array.isArray(a)&&typeof a=="object")return r.error("First argument must be an image or text section.");const o=[];let h=!1;for(let p=1;p<=e.length-1;++p){const m=e[p];if(h&&typeof m=="object"&&!Array.isArray(m)){h=!1;let _=null;if(m["font-scale"]&&(_=r.parse(m["font-scale"],1,F1),!_))return null;let x=null;if(m["text-font"]&&(x=r.parse(m["text-font"],1,$(w4)),!x))return null;let S=null;if(m["text-color"]&&(S=r.parse(m["text-color"],1,n7),!S))return null;const E=o[o.length-1];E.scale=_,E.font=x,E.textColor=S}else{const _=r.parse(e[p],1,h4);if(!_)return null;const x=_.type.kind;if(x!=="string"&&x!=="value"&&x!=="null"&&x!=="resolvedImage")return r.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");h=!0,o.push({content:_,scale:null,font:null,textColor:null})}}return new Y0(o)}evaluate(e){return new s2(this.sections.map(r=>{const a=r.content.evaluate(e);return c2(a)===M?new n3("",a,null,null,null):new n3(V4(a),null,r.scale?r.scale.evaluate(e):null,r.font?r.font.evaluate(e).join(","):null,r.textColor?r.textColor.evaluate(e):null)}))}eachChild(e){for(const r of this.sections)e(r.content),r.scale&&e(r.scale),r.font&&e(r.font),r.textColor&&e(r.textColor)}outputDefined(){return!1}}class e5{constructor(e){this.type=M,this.input=e}static parse(e,r){if(e.length!==2)return r.error("Expected two arguments.");const a=r.parse(e[1],1,w4);return a?new e5(a):r.error("No image name provided.")}evaluate(e){const r=this.input.evaluate(e),a=$2.fromString(r);return a&&e.availableImages&&(a.available=e.availableImages.indexOf(r)>-1),a}eachChild(e){e(this.input)}outputDefined(){return!1}}class M3{constructor(e){this.type=F1,this.input=e}static parse(e,r){if(e.length!==2)return r.error(`Expected 1 argument, but found ${e.length-1} instead.`);const a=r.parse(e[1],1);return a?a.type.kind!=="array"&&a.type.kind!=="string"&&a.type.kind!=="value"?r.error(`Expected argument of type string or array, but found ${G(a.type)} instead.`):new M3(a):null}evaluate(e){const r=this.input.evaluate(e);if(typeof r=="string"||Array.isArray(r))return r.length;throw new u2(`Expected value to be of type string or array, but found ${G(c2(r))} instead.`)}eachChild(e){e(this.input)}outputDefined(){return!1}}const p0={"==":g3,"!=":_5,">":U5,"<":v5,">=":M6,"<=":x5,array:Z7,at:Y6,boolean:Z7,case:Q6,coalesce:S6,collator:k,format:Y0,image:e5,in:I6,"index-of":K0,interpolate:x7,"interpolate-hcl":x7,"interpolate-lab":x7,length:M3,let:T6,literal:C3,match:E6,number:Z7,"number-format":A6,object:Z7,slice:C6,step:P3,string:Z7,"to-boolean":q3,"to-color":q3,"to-number":q3,"to-string":q3,var:v2,within:d2};function b5(i,[e,r,a,o]){e=e.evaluate(i),r=r.evaluate(i),a=a.evaluate(i);const h=o?o.evaluate(i):1,p=v6(e,r,a,h);if(p)throw new u2(p);return new G4(e/255,r/255,a/255,h,!1)}function w5(i,e){return i in e}function Q0(i,e){const r=e[i];return r===void 0?null:r}function a3(i){return{type:i}}function k6(i){return{result:"success",value:i}}function y3(i){return{result:"error",value:i}}function G3(i){return i["property-type"]==="data-driven"||i["property-type"]==="cross-faded-data-driven"}function P0(i){return!!i.expression&&i.expression.parameters.indexOf("zoom")>-1}function t5(i){return!!i.expression&&i.expression.interpolated}function j4(i){return i instanceof Number?"number":i instanceof String?"string":i instanceof Boolean?"boolean":Array.isArray(i)?"array":i===null?"null":typeof i}function p2(i){return typeof i=="object"&&i!==null&&!Array.isArray(i)}function j5(i){return i}function k4(i,e){const r=e.type==="color",a=i.stops&&typeof i.stops[0][0]=="object",o=a||!(a||i.property!==void 0),h=i.type||(t5(e)?"exponential":"interval");if(r||e.type==="padding"){const S=r?G4.parse:s7.parse;(i=P7({},i)).stops&&(i.stops=i.stops.map(E=>[E[0],S(E[1])])),i.default=S(i.default?i.default:e.default)}if(i.colorSpace&&(p=i.colorSpace)!=="rgb"&&p!=="hcl"&&p!=="lab")throw new Error(`Unknown color space: "${i.colorSpace}"`);var p;let m,_,x;if(h==="exponential")m=A7;else if(h==="interval")m=H4;else if(h==="categorical"){m=r2,_=Object.create(null);for(const S of i.stops)_[S[0]]=S[1];x=typeof i.stops[0][0]}else{if(h!=="identity")throw new Error(`Unknown function type "${h}"`);m=H3}if(a){const S={},E=[];for(let L=0;LL[0]),evaluate:({zoom:L},B)=>A7({stops:P,base:i.base},e,L).evaluate(L,B)}}if(o){const S=h==="exponential"?{name:"exponential",base:i.base!==void 0?i.base:1}:null;return{kind:"camera",interpolationType:S,interpolationFactor:x7.interpolationFactor.bind(void 0,S),zoomStops:i.stops.map(E=>E[0]),evaluate:({zoom:E})=>m(i,e,E,_,x)}}return{kind:"source",evaluate(S,E){const P=E&&E.properties?E.properties[i.property]:void 0;return P===void 0?Z3(i.default,e.default):m(i,e,P,_,x)}}}function Z3(i,e,r){return i!==void 0?i:e!==void 0?e:r!==void 0?r:void 0}function r2(i,e,r,a,o){return Z3(typeof r===o?a[r]:void 0,i.default,e.default)}function H4(i,e,r){if(j4(r)!=="number")return Z3(i.default,e.default);const a=i.stops.length;if(a===1||r<=i.stops[0][0])return i.stops[0][1];if(r>=i.stops[a-1][0])return i.stops[a-1][1];const o=v7(i.stops.map(h=>h[0]),r);return i.stops[o][1]}function A7(i,e,r){const a=i.base!==void 0?i.base:1;if(j4(r)!=="number")return Z3(i.default,e.default);const o=i.stops.length;if(o===1||r<=i.stops[0][0])return i.stops[0][1];if(r>=i.stops[o-1][0])return i.stops[o-1][1];const h=v7(i.stops.map(S=>S[0]),r),p=function(S,E,P,z){const L=z-P,B=S-P;return L===0?0:E===1?B/L:(Math.pow(E,B)-1)/(Math.pow(E,L)-1)}(r,a,i.stops[h][0],i.stops[h+1][0]),m=i.stops[h][1],_=i.stops[h+1][1],x=c7[e.type]||j5;return typeof m.evaluate=="function"?{evaluate(...S){const E=m.evaluate.apply(void 0,S),P=_.evaluate.apply(void 0,S);if(E!==void 0&&P!==void 0)return x(E,P,p,i.colorSpace)}}:x(m,_,p,i.colorSpace)}function H3(i,e,r){switch(e.type){case"color":r=G4.parse(r);break;case"formatted":r=s2.fromString(r.toString());break;case"resolvedImage":r=$2.fromString(r.toString());break;case"padding":r=s7.parse(r);break;default:j4(r)===e.type||e.type==="enum"&&e.values[r]||(r=void 0)}return Z3(r,i.default,e.default)}_7.register(p0,{error:[{kind:"error"},[w4],(i,[e])=>{throw new u2(e.evaluate(i))}],typeof:[w4,[h4],(i,[e])=>G(c2(e.evaluate(i)))],"to-rgba":[$(F1,4),[n7],(i,[e])=>{const[r,a,o,h]=e.evaluate(i).rgb;return[255*r,255*a,255*o,h]}],rgb:[n7,[F1,F1,F1],b5],rgba:[n7,[F1,F1,F1,F1],b5],has:{type:f4,overloads:[[[w4],(i,[e])=>w5(e.evaluate(i),i.properties())],[[w4,M7],(i,[e,r])=>w5(e.evaluate(i),r.evaluate(i))]]},get:{type:h4,overloads:[[[w4],(i,[e])=>Q0(e.evaluate(i),i.properties())],[[w4,M7],(i,[e,r])=>Q0(e.evaluate(i),r.evaluate(i))]]},"feature-state":[h4,[w4],(i,[e])=>Q0(e.evaluate(i),i.featureState||{})],properties:[M7,[],i=>i.properties()],"geometry-type":[w4,[],i=>i.geometryType()],id:[h4,[],i=>i.id()],zoom:[F1,[],i=>i.globals.zoom],"heatmap-density":[F1,[],i=>i.globals.heatmapDensity||0],"line-progress":[F1,[],i=>i.globals.lineProgress||0],accumulated:[h4,[],i=>i.globals.accumulated===void 0?null:i.globals.accumulated],"+":[F1,a3(F1),(i,e)=>{let r=0;for(const a of e)r+=a.evaluate(i);return r}],"*":[F1,a3(F1),(i,e)=>{let r=1;for(const a of e)r*=a.evaluate(i);return r}],"-":{type:F1,overloads:[[[F1,F1],(i,[e,r])=>e.evaluate(i)-r.evaluate(i)],[[F1],(i,[e])=>-e.evaluate(i)]]},"/":[F1,[F1,F1],(i,[e,r])=>e.evaluate(i)/r.evaluate(i)],"%":[F1,[F1,F1],(i,[e,r])=>e.evaluate(i)%r.evaluate(i)],ln2:[F1,[],()=>Math.LN2],pi:[F1,[],()=>Math.PI],e:[F1,[],()=>Math.E],"^":[F1,[F1,F1],(i,[e,r])=>Math.pow(e.evaluate(i),r.evaluate(i))],sqrt:[F1,[F1],(i,[e])=>Math.sqrt(e.evaluate(i))],log10:[F1,[F1],(i,[e])=>Math.log(e.evaluate(i))/Math.LN10],ln:[F1,[F1],(i,[e])=>Math.log(e.evaluate(i))],log2:[F1,[F1],(i,[e])=>Math.log(e.evaluate(i))/Math.LN2],sin:[F1,[F1],(i,[e])=>Math.sin(e.evaluate(i))],cos:[F1,[F1],(i,[e])=>Math.cos(e.evaluate(i))],tan:[F1,[F1],(i,[e])=>Math.tan(e.evaluate(i))],asin:[F1,[F1],(i,[e])=>Math.asin(e.evaluate(i))],acos:[F1,[F1],(i,[e])=>Math.acos(e.evaluate(i))],atan:[F1,[F1],(i,[e])=>Math.atan(e.evaluate(i))],min:[F1,a3(F1),(i,e)=>Math.min(...e.map(r=>r.evaluate(i)))],max:[F1,a3(F1),(i,e)=>Math.max(...e.map(r=>r.evaluate(i)))],abs:[F1,[F1],(i,[e])=>Math.abs(e.evaluate(i))],round:[F1,[F1],(i,[e])=>{const r=e.evaluate(i);return r<0?-Math.round(-r):Math.round(r)}],floor:[F1,[F1],(i,[e])=>Math.floor(e.evaluate(i))],ceil:[F1,[F1],(i,[e])=>Math.ceil(e.evaluate(i))],"filter-==":[f4,[w4,h4],(i,[e,r])=>i.properties()[e.value]===r.value],"filter-id-==":[f4,[h4],(i,[e])=>i.id()===e.value],"filter-type-==":[f4,[w4],(i,[e])=>i.geometryType()===e.value],"filter-<":[f4,[w4,h4],(i,[e,r])=>{const a=i.properties()[e.value],o=r.value;return typeof a==typeof o&&a{const r=i.id(),a=e.value;return typeof r==typeof a&&r":[f4,[w4,h4],(i,[e,r])=>{const a=i.properties()[e.value],o=r.value;return typeof a==typeof o&&a>o}],"filter-id->":[f4,[h4],(i,[e])=>{const r=i.id(),a=e.value;return typeof r==typeof a&&r>a}],"filter-<=":[f4,[w4,h4],(i,[e,r])=>{const a=i.properties()[e.value],o=r.value;return typeof a==typeof o&&a<=o}],"filter-id-<=":[f4,[h4],(i,[e])=>{const r=i.id(),a=e.value;return typeof r==typeof a&&r<=a}],"filter->=":[f4,[w4,h4],(i,[e,r])=>{const a=i.properties()[e.value],o=r.value;return typeof a==typeof o&&a>=o}],"filter-id->=":[f4,[h4],(i,[e])=>{const r=i.id(),a=e.value;return typeof r==typeof a&&r>=a}],"filter-has":[f4,[h4],(i,[e])=>e.value in i.properties()],"filter-has-id":[f4,[],i=>i.id()!==null&&i.id()!==void 0],"filter-type-in":[f4,[$(w4)],(i,[e])=>e.value.indexOf(i.geometryType())>=0],"filter-id-in":[f4,[$(h4)],(i,[e])=>e.value.indexOf(i.id())>=0],"filter-in-small":[f4,[w4,$(h4)],(i,[e,r])=>r.value.indexOf(i.properties()[e.value])>=0],"filter-in-large":[f4,[w4,$(h4)],(i,[e,r])=>function(a,o,h,p){for(;h<=p;){const m=h+p>>1;if(o[m]===a)return!0;o[m]>a?p=m-1:h=m+1}return!1}(i.properties()[e.value],r.value,0,r.value.length-1)],all:{type:f4,overloads:[[[f4,f4],(i,[e,r])=>e.evaluate(i)&&r.evaluate(i)],[a3(f4),(i,e)=>{for(const r of e)if(!r.evaluate(i))return!1;return!0}]]},any:{type:f4,overloads:[[[f4,f4],(i,[e,r])=>e.evaluate(i)||r.evaluate(i)],[a3(f4),(i,e)=>{for(const r of e)if(r.evaluate(i))return!0;return!1}]]},"!":[f4,[f4],(i,[e])=>!e.evaluate(i)],"is-supported-script":[f4,[w4],(i,[e])=>{const r=i.globals&&i.globals.isSupportedScript;return!r||r(e.evaluate(i))}],upcase:[w4,[w4],(i,[e])=>e.evaluate(i).toUpperCase()],downcase:[w4,[w4],(i,[e])=>e.evaluate(i).toLowerCase()],concat:[w4,a3(h4),(i,e)=>e.map(r=>V4(r.evaluate(i))).join("")],"resolved-locale":[w4,[q7],(i,[e])=>e.evaluate(i).resolvedLocale()]});class M0{constructor(e,r){var a;this.expression=e,this._warningHistory={},this._evaluator=new f,this._defaultValue=r?(a=r).type==="color"&&p2(a.default)?new G4(0,0,0,0):a.type==="color"?G4.parse(a.default)||null:a.type==="padding"?s7.parse(a.default)||null:a.type==="variableAnchorOffsetCollection"?j2.parse(a.default)||null:a.default===void 0?null:a.default:null,this._enumValues=r&&r.type==="enum"?r.values:null}evaluateWithoutErrorHandling(e,r,a,o,h,p){return this._evaluator.globals=e,this._evaluator.feature=r,this._evaluator.featureState=a,this._evaluator.canonical=o,this._evaluator.availableImages=h||null,this._evaluator.formattedSection=p,this.expression.evaluate(this._evaluator)}evaluate(e,r,a,o,h,p){this._evaluator.globals=e,this._evaluator.feature=r||null,this._evaluator.featureState=a||null,this._evaluator.canonical=o,this._evaluator.availableImages=h||null,this._evaluator.formattedSection=p||null;try{const m=this.expression.evaluate(this._evaluator);if(m==null||typeof m=="number"&&m!=m)return this._defaultValue;if(this._enumValues&&!(m in this._enumValues))throw new u2(`Expected value to be one of ${Object.keys(this._enumValues).map(_=>JSON.stringify(_)).join(", ")}, but found ${JSON.stringify(m)} instead.`);return m}catch(m){return this._warningHistory[m.message]||(this._warningHistory[m.message]=!0,typeof console<"u"&&console.warn(m.message)),this._defaultValue}}}function s3(i){return Array.isArray(i)&&i.length>0&&typeof i[0]=="string"&&i[0]in p0}function z6(i,e){const r=new b(p0,x6,[],e?function(o){const h={color:n7,string:w4,number:F1,enum:w4,boolean:f4,formatted:U,padding:C,resolvedImage:M,variableAnchorOffsetCollection:F};return o.type==="array"?$(h[o.value]||h4,o.length):h[o.type]}(e):void 0),a=r.parse(i,void 0,void 0,void 0,e&&e.type==="string"?{typeAnnotation:"coerce"}:void 0);return a?k6(new M0(a,e)):y3(r.errors)}class A0{constructor(e,r){this.kind=e,this._styleExpression=r,this.isStateDependent=e!=="constant"&&!C0(r.expression)}evaluateWithoutErrorHandling(e,r,a,o,h,p){return this._styleExpression.evaluateWithoutErrorHandling(e,r,a,o,h,p)}evaluate(e,r,a,o,h,p){return this._styleExpression.evaluate(e,r,a,o,h,p)}}class W3{constructor(e,r,a,o){this.kind=e,this.zoomStops=a,this._styleExpression=r,this.isStateDependent=e!=="camera"&&!C0(r.expression),this.interpolationType=o}evaluateWithoutErrorHandling(e,r,a,o,h,p){return this._styleExpression.evaluateWithoutErrorHandling(e,r,a,o,h,p)}evaluate(e,r,a,o,h,p){return this._styleExpression.evaluate(e,r,a,o,h,p)}interpolationFactor(e,r,a){return this.interpolationType?x7.interpolationFactor(this.interpolationType,e,r,a):0}}function L6(i,e){const r=z6(i,e);if(r.result==="error")return r;const a=r.value.expression,o=Q4(a);if(!o&&!G3(e))return y3([new _2("","data expressions not supported")]);const h=b6(a,["zoom"]);if(!h&&!P0(e))return y3([new _2("","zoom expressions not supported")]);const p=e6(a);return p||h?p instanceof _2?y3([p]):p instanceof x7&&!t5(e)?y3([new _2("",'"interpolate" expressions cannot be used with this property')]):k6(p?new W3(o?"camera":"composite",r.value,p.labels,p instanceof x7?p.interpolation:void 0):new A0(o?"constant":"source",r.value)):y3([new _2("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')])}class k0{constructor(e,r){this._parameters=e,this._specification=r,P7(this,k4(this._parameters,this._specification))}static deserialize(e){return new k0(e._parameters,e._specification)}static serialize(e){return{_parameters:e._parameters,_specification:e._specification}}}function e6(i){let e=null;if(i instanceof T6)e=e6(i.result);else if(i instanceof S6){for(const r of i.args)if(e=e6(r),e)break}else(i instanceof P3||i instanceof x7)&&i.input instanceof _7&&i.input.name==="zoom"&&(e=i);return e instanceof _2||i.eachChild(r=>{const a=e6(r);a instanceof _2?e=a:!e&&a?e=new _2("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):e&&a&&e!==a&&(e=new _2("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),e}function t6(i){if(i===!0||i===!1)return!0;if(!Array.isArray(i)||i.length===0)return!1;switch(i[0]){case"has":return i.length>=2&&i[1]!=="$id"&&i[1]!=="$type";case"in":return i.length>=3&&(typeof i[1]!="string"||Array.isArray(i[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return i.length!==3||Array.isArray(i[1])||Array.isArray(i[2]);case"any":case"all":for(const e of i.slice(1))if(!t6(e)&&typeof e!="boolean")return!1;return!0;default:return!0}}const S5={type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}};function D6(i){if(i==null)return{filter:()=>!0,needGeometry:!1};t6(i)||(i=R6(i));const e=z6(i,S5);if(e.result==="error")throw new Error(e.value.map(r=>`${r.key}: ${r.message}`).join(", "));return{filter:(r,a,o)=>e.value.evaluate(r,a,{},o),needGeometry:f0(i)}}function F6(i,e){return ie?1:0}function f0(i){if(!Array.isArray(i))return!1;if(i[0]==="within")return!0;for(let e=1;e"||e==="<="||e===">="?_3(i[1],i[2],e):e==="any"?(r=i.slice(1),["any"].concat(r.map(R6))):e==="all"?["all"].concat(i.slice(1).map(R6)):e==="none"?["all"].concat(i.slice(1).map(R6).map(z0)):e==="in"?T5(i[1],i.slice(2)):e==="!in"?z0(T5(i[1],i.slice(2))):e==="has"?X3(i[1]):e==="!has"?z0(X3(i[1])):e!=="within"||i;var r}function _3(i,e,r){switch(i){case"$type":return[`filter-type-${r}`,e];case"$id":return[`filter-id-${r}`,e];default:return[`filter-${r}`,i,e]}}function T5(i,e){if(e.length===0)return!1;switch(i){case"$type":return["filter-type-in",["literal",e]];case"$id":return["filter-id-in",["literal",e]];default:return e.length>200&&!e.some(r=>typeof r!=typeof e[0])?["filter-in-large",i,["literal",e.sort(F6)]]:["filter-in-small",i,["literal",e]]}}function X3(i){switch(i){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",i]}}function z0(i){return["!",i]}function B6(i){const e=typeof i;if(e==="number"||e==="boolean"||e==="string"||i==null)return JSON.stringify(i);if(Array.isArray(i)){let o="[";for(const h of i)o+=`${B6(h)},`;return`${o}]`}const r=Object.keys(i).sort();let a="{";for(let o=0;oa.maximum?[new z1(e,r,`${r} is greater than the maximum value ${a.maximum}`)]:[]}function N6(i){const e=i.valueSpec,r=f2(i.value.type);let a,o,h,p={};const m=r!=="categorical"&&i.value.property===void 0,_=!m,x=j4(i.value.stops)==="array"&&j4(i.value.stops[0])==="array"&&j4(i.value.stops[0][0])==="object",S=u7({key:i.key,value:i.value,valueSpec:i.styleSpec.function,validateSpec:i.validateSpec,style:i.style,styleSpec:i.styleSpec,objectElementValidators:{stops:function(z){if(r==="identity")return[new z1(z.key,z.value,'identity function may not have a "stops" property')];let L=[];const B=z.value;return L=L.concat(v3({key:z.key,value:B,valueSpec:z.valueSpec,validateSpec:z.validateSpec,style:z.style,styleSpec:z.styleSpec,arrayElementValidator:E})),j4(B)==="array"&&B.length===0&&L.push(new z1(z.key,B,"array must have at least one stop")),L},default:function(z){return z.validateSpec({key:z.key,value:z.value,valueSpec:e,validateSpec:z.validateSpec,style:z.style,styleSpec:z.styleSpec})}}});return r==="identity"&&m&&S.push(new z1(i.key,i.value,'missing required property "property"')),r==="identity"||i.value.stops||S.push(new z1(i.key,i.value,'missing required property "stops"')),r==="exponential"&&i.valueSpec.expression&&!t5(i.valueSpec)&&S.push(new z1(i.key,i.value,"exponential functions not supported")),i.styleSpec.$version>=8&&(_&&!G3(i.valueSpec)?S.push(new z1(i.key,i.value,"property functions not supported")):m&&!P0(i.valueSpec)&&S.push(new z1(i.key,i.value,"zoom functions not supported"))),r!=="categorical"&&!x||i.value.property!==void 0||S.push(new z1(i.key,i.value,'"property" property is required')),S;function E(z){let L=[];const B=z.value,Z=z.key;if(j4(B)!=="array")return[new z1(Z,B,`array expected, ${j4(B)} found`)];if(B.length!==2)return[new z1(Z,B,`array length 2 expected, length ${B.length} found`)];if(x){if(j4(B[0])!=="object")return[new z1(Z,B,`object expected, ${j4(B[0])} found`)];if(B[0].zoom===void 0)return[new z1(Z,B,"object stop key must have zoom")];if(B[0].value===void 0)return[new z1(Z,B,"object stop key must have value")];if(h&&h>f2(B[0].zoom))return[new z1(Z,B[0].zoom,"stop zoom values must appear in ascending order")];f2(B[0].zoom)!==h&&(h=f2(B[0].zoom),o=void 0,p={}),L=L.concat(u7({key:`${Z}[0]`,value:B[0],valueSpec:{zoom:{}},validateSpec:z.validateSpec,style:z.style,styleSpec:z.styleSpec,objectElementValidators:{zoom:L0,value:P}}))}else L=L.concat(P({key:`${Z}[0]`,value:B[0],valueSpec:{},validateSpec:z.validateSpec,style:z.style,styleSpec:z.styleSpec},B));return s3(K3(B[1]))?L.concat([new z1(`${Z}[1]`,B[1],"expressions are not allowed in function stops.")]):L.concat(z.validateSpec({key:`${Z}[1]`,value:B[1],valueSpec:e,validateSpec:z.validateSpec,style:z.style,styleSpec:z.styleSpec}))}function P(z,L){const B=j4(z.value),Z=f2(z.value),X=z.value!==null?z.value:L;if(a){if(B!==a)return[new z1(z.key,X,`${B} stop domain type must match previous stop domain type ${a}`)]}else a=B;if(B!=="number"&&B!=="string"&&B!=="boolean")return[new z1(z.key,X,"stop domain value must be a number, string, or boolean")];if(B!=="number"&&r!=="categorical"){let s1=`number expected, ${B} found`;return G3(e)&&r===void 0&&(s1+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new z1(z.key,X,s1)]}return r!=="categorical"||B!=="number"||isFinite(Z)&&Math.floor(Z)===Z?r!=="categorical"&&B==="number"&&o!==void 0&&Znew z1(`${i.key}${a.key}`,i.value,a.message));const r=e.value.expression||e.value._styleExpression.expression;if(i.expressionContext==="property"&&i.propertyKey==="text-font"&&!r.outputDefined())return[new z1(i.key,i.value,`Invalid data expression for "${i.propertyKey}". Output values must be contained as literals within the expression.`)];if(i.expressionContext==="property"&&i.propertyType==="layout"&&!C0(r))return[new z1(i.key,i.value,'"feature-state" data expressions are not supported with layout properties.')];if(i.expressionContext==="filter"&&!C0(r))return[new z1(i.key,i.value,'"feature-state" data expressions are not supported with filters.')];if(i.expressionContext&&i.expressionContext.indexOf("cluster")===0){if(!b6(r,["zoom","feature-state"]))return[new z1(i.key,i.value,'"zoom" and "feature-state" expressions are not supported with cluster properties.')];if(i.expressionContext==="cluster-initial"&&!Q4(r))return[new z1(i.key,i.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function y1(i){const e=i.key,r=i.value,a=i.valueSpec,o=[];return Array.isArray(a.values)?a.values.indexOf(f2(r))===-1&&o.push(new z1(e,r,`expected one of [${a.values.join(", ")}], ${JSON.stringify(r)} found`)):Object.keys(a.values).indexOf(f2(r))===-1&&o.push(new z1(e,r,`expected one of [${Object.keys(a.values).join(", ")}], ${JSON.stringify(r)} found`)),o}function N1(i){return t6(K3(i.value))?l1(P7({},i,{expressionContext:"filter",valueSpec:{value:"boolean"}})):l4(i)}function l4(i){const e=i.value,r=i.key;if(j4(e)!=="array")return[new z1(r,e,`array expected, ${j4(e)} found`)];const a=i.styleSpec;let o,h=[];if(e.length<1)return[new z1(r,e,"filter array must have at least 1 element")];switch(h=h.concat(y1({key:`${r}[0]`,value:e[0],valueSpec:a.filter_operator,style:i.style,styleSpec:i.styleSpec})),f2(e[0])){case"<":case"<=":case">":case">=":e.length>=2&&f2(e[1])==="$type"&&h.push(new z1(r,e,`"$type" cannot be use with operator "${e[0]}"`));case"==":case"!=":e.length!==3&&h.push(new z1(r,e,`filter array for operator "${e[0]}" must have 3 elements`));case"in":case"!in":e.length>=2&&(o=j4(e[1]),o!=="string"&&h.push(new z1(`${r}[1]`,e[1],`string expected, ${o} found`)));for(let p=2;pV in D?Ln(D,V,{enumerable:!0,configurable:!0,writable:!0,value:J}):D[V]=J;var a8=(D,V,J)=>(Dn(D,typeof V!="symbol"?V+"":V,J),J);import{j as U4}from"./jsx-runtime-BTCK_S7S.js";import{a as V0}from"./chunk-WFFRPTHA-B2vgThZf.js";import{r as D1,R as f5}from"./index-CBqU2yxZ.js";import{E as Fn}from"./Environment-CB6gPeJ7.js";import{_ as Rn}from"./iframe-BQtATEn0.js";import{r as ne}from"./index-DZGZymok.js";import{_ as w0}from"./index-default-C_maRo4o.js";import{c as O5,g as Ei}from"./_commonjsHelpers-BosuxZz1.js";import{M as Bn,f as On}from"./Map-B-oiJBWx.js";import"./preview-errors-CzpZmerH.js";import"./index-CKJfshIT.js";import"./v4-D8aEg3BZ.js";import"../sb-preview/runtime.js";const Nn=D1.createContext(null);function Vn(D,V){const J=Array.isArray(D)?D[0]:D?D.x:0,K=Array.isArray(D)?D[1]:D?D.y:0,h1=Array.isArray(V)?V[0]:V?V.x:0,g1=Array.isArray(V)?V[1]:V?V.y:0;return J===h1&&K===g1}function B3(D,V){if(D===V)return!0;if(!D||!V)return!1;if(Array.isArray(D)){if(!Array.isArray(V)||D.length!==V.length)return!1;for(let J=0;J{let h1=null;"interactive"in K&&(h1=Object.assign({},K),delete h1.interactive);const g1=V[K.ref];if(g1){h1=h1||Object.assign({},K),delete h1.ref;for(const T1 of jn)T1 in g1&&(h1[T1]=g1[T1])}return h1||K});return{...D,layers:J}}var Zt={};const Ht={version:8,sources:{},layers:[]},Wt={mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",click:"onClick",dblclick:"onDblClick",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",mouseout:"onMouseOut",contextmenu:"onContextMenu",touchstart:"onTouchStart",touchend:"onTouchEnd",touchmove:"onTouchMove",touchcancel:"onTouchCancel"},re={movestart:"onMoveStart",move:"onMove",moveend:"onMoveEnd",dragstart:"onDragStart",drag:"onDrag",dragend:"onDragEnd",zoomstart:"onZoomStart",zoom:"onZoom",zoomend:"onZoomEnd",rotatestart:"onRotateStart",rotate:"onRotate",rotateend:"onRotateEnd",pitchstart:"onPitchStart",pitch:"onPitch",pitchend:"onPitchEnd"},Xt={wheel:"onWheel",boxzoomstart:"onBoxZoomStart",boxzoomend:"onBoxZoomEnd",boxzoomcancel:"onBoxZoomCancel",resize:"onResize",load:"onLoad",render:"onRender",idle:"onIdle",remove:"onRemove",data:"onData",styledata:"onStyleData",sourcedata:"onSourceData",error:"onError"},$n=["minZoom","maxZoom","minPitch","maxPitch","maxBounds","projection","renderWorldCopies"],qn=["scrollZoom","boxZoom","dragRotate","dragPan","keyboard","doubleClickZoom","touchZoomRotate","touchPitch"];class N5{constructor(V,J,K){this._map=null,this._internalUpdate=!1,this._inRender=!1,this._hoveredFeatures=null,this._deferredEvents={move:!1,zoom:!1,pitch:!1,rotate:!1},this._onEvent=h1=>{const g1=this.props[Xt[h1.type]];g1?g1(h1):h1.type==="error"&&console.error(h1.error)},this._onPointerEvent=h1=>{(h1.type==="mousemove"||h1.type==="mouseout")&&this._updateHover(h1);const g1=this.props[Wt[h1.type]];g1&&(this.props.interactiveLayerIds&&h1.type!=="mouseover"&&h1.type!=="mouseout"&&(h1.features=this._hoveredFeatures||this._queryRenderedFeatures(h1.point)),g1(h1),delete h1.features)},this._onCameraEvent=h1=>{if(!this._internalUpdate){const g1=this.props[re[h1.type]];g1&&g1(h1)}h1.type in this._deferredEvents&&(this._deferredEvents[h1.type]=!1)},this._MapClass=V,this.props=J,this._initialize(K)}get map(){return this._map}get transform(){return this._renderTransform}setProps(V){const J=this.props;this.props=V;const K=this._updateSettings(V,J);K&&this._createShadowTransform(this._map);const h1=this._updateSize(V),g1=this._updateViewState(V,!0);this._updateStyle(V,J),this._updateStyleComponents(V,J),this._updateHandlers(V,J),(K||h1||g1&&!this._map.isMoving())&&this.redraw()}static reuse(V,J){const K=N5.savedMaps.pop();if(!K)return null;const h1=K.map,g1=h1.getContainer();for(J.className=g1.className;g1.childNodes.length>0;)J.appendChild(g1.childNodes[0]);h1._container=J;const T1=h1._resizeObserver;T1&&(T1.disconnect(),T1.observe(J)),K.setProps({...V,styleDiffing:!1}),h1.resize();const{initialViewState:c}=V;return c&&(c.bounds?h1.fitBounds(c.bounds,{...c.fitBoundsOptions,duration:0}):K._updateViewState(c,!1)),h1.isStyleLoaded()?h1.fire("load"):h1.once("styledata",()=>h1.fire("load")),h1._update(),K}_initialize(V){const{props:J}=this,{mapStyle:K=Ht}=J,h1={...J,...J.initialViewState,accessToken:J.mapboxAccessToken||Gn()||null,container:V,style:Gt(K)},g1=h1.initialViewState||h1.viewState||h1;if(Object.assign(h1,{center:[g1.longitude||0,g1.latitude||0],zoom:g1.zoom||0,pitch:g1.pitch||0,bearing:g1.bearing||0}),J.gl){const o4=HTMLCanvasElement.prototype.getContext;HTMLCanvasElement.prototype.getContext=()=>(HTMLCanvasElement.prototype.getContext=o4,J.gl)}const T1=new this._MapClass(h1);g1.padding&&T1.setPadding(g1.padding),J.cursor&&(T1.getCanvas().style.cursor=J.cursor),this._createShadowTransform(T1);const c=T1._render;T1._render=o4=>{this._inRender=!0,c.call(T1,o4),this._inRender=!1};const W1=T1._renderTaskQueue.run;T1._renderTaskQueue.run=o4=>{W1.call(T1._renderTaskQueue,o4),this._onBeforeRepaint()},T1.on("render",()=>this._onAfterRepaint());const r1=T1.fire;T1.fire=this._fireEvent.bind(this,r1),T1.on("resize",()=>{this._renderTransform.resize(T1.transform.width,T1.transform.height)}),T1.on("styledata",()=>{this._updateStyleComponents(this.props,{}),jt(T1.transform,this._renderTransform)}),T1.on("sourcedata",()=>this._updateStyleComponents(this.props,{}));for(const o4 in Wt)T1.on(o4,this._onPointerEvent);for(const o4 in re)T1.on(o4,this._onCameraEvent);for(const o4 in Xt)T1.on(o4,this._onEvent);this._map=T1}recycle(){const J=this.map.getContainer().querySelector("[mapboxgl-children]");J==null||J.remove(),N5.savedMaps.push(this)}destroy(){this._map.remove()}redraw(){const V=this._map;!this._inRender&&V.style&&(V._frame&&(V._frame.cancel(),V._frame=null),V._render())}_createShadowTransform(V){const J=Un(V.transform);V.painter.transform=J,this._renderTransform=J}_updateSize(V){const{viewState:J}=V;if(J){const K=this._map;if(J.width!==K.transform.width||J.height!==K.transform.height)return K.resize(),!0}return!1}_updateViewState(V,J){if(this._internalUpdate)return!1;const K=this._map,h1=this._renderTransform,{zoom:g1,pitch:T1,bearing:c}=h1,W1=K.isMoving();W1&&(h1.cameraElevationReference="sea");const r1=qt(h1,{...$t(K.transform),...V});if(W1&&(h1.cameraElevationReference="ground"),r1&&J){const o4=this._deferredEvents;o4.move=!0,o4.zoom||(o4.zoom=g1!==h1.zoom),o4.rotate||(o4.rotate=c!==h1.bearing),o4.pitch||(o4.pitch=T1!==h1.pitch)}return W1||qt(K.transform,V),r1}_updateSettings(V,J){const K=this._map;let h1=!1;for(const g1 of $n)if(g1 in V&&!B3(V[g1],J[g1])){h1=!0;const T1=K[`set${g1[0].toUpperCase()}${g1.slice(1)}`];T1==null||T1.call(K,V[g1])}return h1}_updateStyle(V,J){if(V.cursor!==J.cursor&&(this._map.getCanvas().style.cursor=V.cursor||""),V.mapStyle!==J.mapStyle){const{mapStyle:K=Ht,styleDiffing:h1=!0}=V,g1={diff:h1};return"localIdeographFontFamily"in V&&(g1.localIdeographFontFamily=V.localIdeographFontFamily),this._map.setStyle(Gt(K),g1),!0}return!1}_updateStyleComponents(V,J){const K=this._map;let h1=!1;return K.isStyleLoaded()&&("light"in V&&K.setLight&&!B3(V.light,J.light)&&(h1=!0,K.setLight(V.light)),"fog"in V&&K.setFog&&!B3(V.fog,J.fog)&&(h1=!0,K.setFog(V.fog)),"terrain"in V&&K.setTerrain&&!B3(V.terrain,J.terrain)&&(!V.terrain||K.getSource(V.terrain.source))&&(h1=!0,K.setTerrain(V.terrain))),h1}_updateHandlers(V,J){var K,h1;const g1=this._map;let T1=!1;for(const c of qn){const W1=(K=V[c])!==null&&K!==void 0?K:!0,r1=(h1=J[c])!==null&&h1!==void 0?h1:!0;B3(W1,r1)||(T1=!0,W1?g1[c].enable(W1):g1[c].disable())}return T1}_queryRenderedFeatures(V){const J=this._map,K=J.transform,{interactiveLayerIds:h1=[]}=this.props;try{return J.transform=this._renderTransform,J.queryRenderedFeatures(V,{layers:h1.filter(J.getLayer.bind(J))})}catch{return[]}finally{J.transform=K}}_updateHover(V){var J;const{props:K}=this;if(K.interactiveLayerIds&&(K.onMouseMove||K.onMouseEnter||K.onMouseLeave)){const g1=V.type,T1=((J=this._hoveredFeatures)===null||J===void 0?void 0:J.length)>0,c=this._queryRenderedFeatures(V.point),W1=c.length>0;!W1&&T1&&(V.type="mouseleave",this._onPointerEvent(V)),this._hoveredFeatures=c,W1&&!T1&&(V.type="mouseenter",this._onPointerEvent(V)),V.type=g1}else this._hoveredFeatures=null}_fireEvent(V,J,K){const h1=this._map,g1=h1.transform,T1=typeof J=="string"?J:J.type;return T1==="move"&&this._updateViewState(this.props,!1),T1 in re&&(typeof J=="object"&&(J.viewState=$t(g1)),this._map.isMoving())?(h1.transform=this._renderTransform,V.call(h1,J,K),h1.transform=g1,h1):(V.call(h1,J,K),h1)}_onBeforeRepaint(){const V=this._map;this._internalUpdate=!0;for(const K in this._deferredEvents)this._deferredEvents[K]&&V.fire(K);this._internalUpdate=!1;const J=this._map.transform;V.transform=this._renderTransform,this._onAfterRepaint=()=>{jt(this._renderTransform,J),V.transform=J}}}N5.savedMaps=[];function Gn(){let D=null;if(typeof location<"u"){const V=/access_token=([^&\/]*)/.exec(location.search);D=V&&V[1]}try{D=D||Zt.MapboxAccessToken}catch{}try{D=D||Zt.REACT_APP_MAPBOX_ACCESS_TOKEN}catch{}return D}const Zn=["setMaxBounds","setMinZoom","setMaxZoom","setMinPitch","setMaxPitch","setRenderWorldCopies","setProjection","setStyle","addSource","removeSource","addLayer","removeLayer","setLayerZoomRange","setFilter","setPaintProperty","setLayoutProperty","setLight","setTerrain","setFog","remove"];function Hn(D){if(!D)return null;const V=D.map,J={getMap:()=>V,getCenter:()=>D.transform.center,getZoom:()=>D.transform.zoom,getBearing:()=>D.transform.bearing,getPitch:()=>D.transform.pitch,getPadding:()=>D.transform.padding,getBounds:()=>D.transform.getBounds(),project:K=>{const h1=V.transform;V.transform=D.transform;const g1=V.project(K);return V.transform=h1,g1},unproject:K=>{const h1=V.transform;V.transform=D.transform;const g1=V.unproject(K);return V.transform=h1,g1},queryTerrainElevation:(K,h1)=>{const g1=V.transform;V.transform=D.transform;const T1=V.queryTerrainElevation(K,h1);return V.transform=g1,T1},queryRenderedFeatures:(K,h1)=>{const g1=V.transform;V.transform=D.transform;const T1=V.queryRenderedFeatures(K,h1);return V.transform=g1,T1}};for(const K of Wn(V))!(K in J)&&!Zn.includes(K)&&(J[K]=V[K].bind(V));return J}function Wn(D){const V=new Set;let J=D;for(;J;){for(const K of Object.getOwnPropertyNames(J))K[0]!=="_"&&typeof D[K]=="function"&&K!=="fire"&&K!=="setEventedParent"&&V.add(K);J=Object.getPrototypeOf(J)}return Array.from(V)}const Xn=typeof document<"u"?D1.useLayoutEffect:D1.useEffect,Kn=["baseApiUrl","maxParallelImageRequests","workerClass","workerCount","workerUrl"];function Jn(D,V){for(const K of Kn)K in V&&(D[K]=V[K]);const{RTLTextPlugin:J="https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-rtl-text/v0.2.3/mapbox-gl-rtl-text.js"}=V;J&&D.getRTLTextPluginStatus&&D.getRTLTextPluginStatus()==="unavailable"&&D.setRTLTextPlugin(J,K=>{K&&console.error(K)},!0)}const V5=D1.createContext(null);function Yn(D,V,J){const K=D1.useContext(Nn),[h1,g1]=D1.useState(null),T1=D1.useRef(),{current:c}=D1.useRef({mapLib:null,map:null});D1.useEffect(()=>{const o4=D.mapLib;let u4=!0,j1;return Promise.resolve(o4||J).then(c4=>{if(!u4)return;if(!c4)throw new Error("Invalid mapLib");const b4="Map"in c4?c4:c4.default;if(!b4.Map)throw new Error("Invalid mapLib");if(Jn(b4,D),!b4.supported||b4.supported(D))D.reuseMaps&&(j1=N5.reuse(D,T1.current)),j1||(j1=new N5(b4.Map,D,T1.current)),c.map=Hn(j1),c.mapLib=b4,g1(j1),K==null||K.onMapMount(c.map,D.id);else throw new Error("Map is not supported by this browser")}).catch(c4=>{const{onError:b4}=D;b4?b4({type:"error",target:null,originalEvent:null,error:c4}):console.error(c4)}),()=>{u4=!1,j1&&(K==null||K.onMapUnmount(D.id),D.reuseMaps?j1.recycle():j1.destroy())}},[]),Xn(()=>{h1&&h1.setProps(D)}),D1.useImperativeHandle(V,()=>c.map,[h1]);const W1=D1.useMemo(()=>({position:"relative",width:"100%",height:"100%",...D.style}),[D.style]),r1={height:"100%"};return D1.createElement("div",{id:D.id,ref:T1,style:W1},h1&&D1.createElement(V5.Provider,{value:c},D1.createElement("div",{"mapboxgl-children":"",style:r1},D.children)))}const Qn=/box|flex|grid|column|lineHeight|fontWeight|opacity|order|tabSize|zIndex/;function m5(D,V){if(!D||!V)return;const J=D.style;for(const K in V){const h1=V[K];Number.isFinite(h1)&&!Qn.test(K)?J[K]=`${h1}px`:J[K]=h1}}function ea(D,V){const{map:J,mapLib:K}=D1.useContext(V5),h1=D1.useRef({props:D});h1.current.props=D;const g1=D1.useMemo(()=>{let r4=!1;D1.Children.forEach(D.children,i7=>{i7&&(r4=!0)});const g4={...D,element:r4?document.createElement("div"):null},I4=new K.Marker(g4);return I4.setLngLat([D.longitude,D.latitude]),I4.getElement().addEventListener("click",i7=>{var N4,A4;(A4=(N4=h1.current.props).onClick)===null||A4===void 0||A4.call(N4,{type:"click",target:I4,originalEvent:i7})}),I4.on("dragstart",i7=>{var N4,A4;const r7=i7;r7.lngLat=g1.getLngLat(),(A4=(N4=h1.current.props).onDragStart)===null||A4===void 0||A4.call(N4,r7)}),I4.on("drag",i7=>{var N4,A4;const r7=i7;r7.lngLat=g1.getLngLat(),(A4=(N4=h1.current.props).onDrag)===null||A4===void 0||A4.call(N4,r7)}),I4.on("dragend",i7=>{var N4,A4;const r7=i7;r7.lngLat=g1.getLngLat(),(A4=(N4=h1.current.props).onDragEnd)===null||A4===void 0||A4.call(N4,r7)}),I4},[]);D1.useEffect(()=>(g1.addTo(J.getMap()),()=>{g1.remove()}),[]);const{longitude:T1,latitude:c,offset:W1,style:r1,draggable:o4=!1,popup:u4=null,rotation:j1=0,rotationAlignment:c4="auto",pitchAlignment:b4="auto"}=D;return D1.useEffect(()=>{m5(g1.getElement(),r1)},[r1]),D1.useImperativeHandle(V,()=>g1,[]),(g1.getLngLat().lng!==T1||g1.getLngLat().lat!==c)&&g1.setLngLat([T1,c]),W1&&!Vn(g1.getOffset(),W1)&&g1.setOffset(W1),g1.isDraggable()!==o4&&g1.setDraggable(o4),g1.getRotation()!==j1&&g1.setRotation(j1),g1.getRotationAlignment()!==c4&&g1.setRotationAlignment(c4),g1.getPitchAlignment()!==b4&&g1.setPitchAlignment(b4),g1.getPopup()!==u4&&g1.setPopup(u4),ne.createPortal(D.children,g1.getElement())}D1.memo(D1.forwardRef(ea));function Kt(D){return new Set(D?D.trim().split(/\s+/):[])}function ta(D,V){const{map:J,mapLib:K}=D1.useContext(V5),h1=D1.useMemo(()=>document.createElement("div"),[]),g1=D1.useRef({props:D});g1.current.props=D;const T1=D1.useMemo(()=>{const c={...D},W1=new K.Popup(c);return W1.setLngLat([D.longitude,D.latitude]),W1.once("open",r1=>{var o4,u4;(u4=(o4=g1.current.props).onOpen)===null||u4===void 0||u4.call(o4,r1)}),W1},[]);if(D1.useEffect(()=>{const c=W1=>{var r1,o4;(o4=(r1=g1.current.props).onClose)===null||o4===void 0||o4.call(r1,W1)};return T1.on("close",c),T1.setDOMContent(h1).addTo(J.getMap()),()=>{T1.off("close",c),T1.isOpen()&&T1.remove()}},[]),D1.useEffect(()=>{m5(T1.getElement(),D.style)},[D.style]),D1.useImperativeHandle(V,()=>T1,[]),T1.isOpen()&&((T1.getLngLat().lng!==D.longitude||T1.getLngLat().lat!==D.latitude)&&T1.setLngLat([D.longitude,D.latitude]),D.offset&&!B3(T1.options.offset,D.offset)&&T1.setOffset(D.offset),(T1.options.anchor!==D.anchor||T1.options.maxWidth!==D.maxWidth)&&(T1.options.anchor=D.anchor,T1.setMaxWidth(D.maxWidth)),T1.options.className!==D.className)){const c=Kt(T1.options.className),W1=Kt(D.className);for(const r1 of c)W1.has(r1)||T1.removeClassName(r1);for(const r1 of W1)c.has(r1)||T1.addClassName(r1);T1.options.className=D.className}return ne.createPortal(D.children,h1)}D1.memo(D1.forwardRef(ta));function g5(D,V,J,K){const h1=D1.useContext(V5),g1=D1.useMemo(()=>D(h1),[]);return D1.useEffect(()=>{const T1=K||J||V,c=typeof V=="function"&&typeof J=="function"?V:null,W1=typeof J=="function"?J:typeof V=="function"?V:null,{map:r1}=h1;return r1.hasControl(g1)||(r1.addControl(g1,T1==null?void 0:T1.position),c&&c(h1)),()=>{W1&&W1(h1),r1.hasControl(g1)&&r1.removeControl(g1)}},[]),g1}function ia(D){const V=g5(({mapLib:J})=>new J.AttributionControl(D),{position:D.position});return D1.useEffect(()=>{m5(V._container,D.style)},[D.style]),null}D1.memo(ia);function ra(D){const V=g5(({mapLib:J})=>new J.FullscreenControl({container:D.containerId&&document.getElementById(D.containerId)}),{position:D.position});return D1.useEffect(()=>{m5(V._controlContainer,D.style)},[D.style]),null}D1.memo(ra);function na(D,V){const J=D1.useRef({props:D}),K=g5(({mapLib:h1})=>{const g1=new h1.GeolocateControl(D),T1=g1._setupUI;return g1._setupUI=c=>{g1._container.hasChildNodes()||T1(c)},g1.on("geolocate",c=>{var W1,r1;(r1=(W1=J.current.props).onGeolocate)===null||r1===void 0||r1.call(W1,c)}),g1.on("error",c=>{var W1,r1;(r1=(W1=J.current.props).onError)===null||r1===void 0||r1.call(W1,c)}),g1.on("outofmaxbounds",c=>{var W1,r1;(r1=(W1=J.current.props).onOutOfMaxBounds)===null||r1===void 0||r1.call(W1,c)}),g1.on("trackuserlocationstart",c=>{var W1,r1;(r1=(W1=J.current.props).onTrackUserLocationStart)===null||r1===void 0||r1.call(W1,c)}),g1.on("trackuserlocationend",c=>{var W1,r1;(r1=(W1=J.current.props).onTrackUserLocationEnd)===null||r1===void 0||r1.call(W1,c)}),g1},{position:D.position});return J.current.props=D,D1.useImperativeHandle(V,()=>K,[]),D1.useEffect(()=>{m5(K._container,D.style)},[D.style]),null}D1.memo(D1.forwardRef(na));function aa(D){const V=g5(({mapLib:J})=>new J.NavigationControl(D),{position:D.position});return D1.useEffect(()=>{m5(V._container,D.style)},[D.style]),null}D1.memo(aa);function sa(D){const V=g5(({mapLib:g1})=>new g1.ScaleControl(D),{position:D.position}),J=D1.useRef(D),K=J.current;J.current=D;const{style:h1}=D;return D.maxWidth!==void 0&&D.maxWidth!==K.maxWidth&&(V.options.maxWidth=D.maxWidth),D.unit!==void 0&&D.unit!==K.unit&&V.setUnit(D.unit),D1.useEffect(()=>{m5(V._container,h1)},[h1]),null}D1.memo(sa);function o8(D,V){if(!D)throw new Error(V)}function oa(D,V,J,K){if(o8(J.id===K.id,"layer id changed"),o8(J.type===K.type,"layer type changed"),J.type==="custom"||K.type==="custom")return;const{layout:h1={},paint:g1={},filter:T1,minzoom:c,maxzoom:W1,beforeId:r1}=J;if(r1!==K.beforeId&&D.moveLayer(V,r1),h1!==K.layout){const o4=K.layout||{};for(const u4 in h1)B3(h1[u4],o4[u4])||D.setLayoutProperty(V,u4,h1[u4]);for(const u4 in o4)h1.hasOwnProperty(u4)||D.setLayoutProperty(V,u4,void 0)}if(g1!==K.paint){const o4=K.paint||{};for(const u4 in g1)B3(g1[u4],o4[u4])||D.setPaintProperty(V,u4,g1[u4]);for(const u4 in o4)g1.hasOwnProperty(u4)||D.setPaintProperty(V,u4,void 0)}B3(T1,K.filter)||D.setFilter(V,T1),(c!==K.minzoom||W1!==K.maxzoom)&&D.setLayerZoomRange(V,c,W1)}function la(D,V,J){if(D.style&&D.style._loaded&&(!("source"in J)||D.getSource(J.source))){const K={...J,id:V};delete K.beforeId,D.addLayer(K,J.beforeId)}}let ca=0;function ua(D){const V=D1.useContext(V5).map.getMap(),J=D1.useRef(D),[,K]=D1.useState(0),h1=D1.useMemo(()=>D.id||`jsx-layer-${ca++}`,[]);if(D1.useEffect(()=>{if(V){const T1=()=>K(c=>c+1);return V.on("styledata",T1),T1(),()=>{V.off("styledata",T1),V.style&&V.style._loaded&&V.getLayer(h1)&&V.removeLayer(h1)}}},[V]),V&&V.style&&V.getLayer(h1))try{oa(V,h1,D,J.current)}catch(T1){console.warn(T1)}else la(V,h1,D);return J.current=D,null}let ha=0;function da(D,V,J){if(D.style&&D.style._loaded){const K={...J};return delete K.id,delete K.children,D.addSource(V,K),D.getSource(V)}return null}function pa(D,V,J){o8(V.id===J.id,"source id changed"),o8(V.type===J.type,"source type changed");let K="",h1=0;for(const T1 in V)T1!=="children"&&T1!=="id"&&!B3(J[T1],V[T1])&&(K=T1,h1++);if(!h1)return;const g1=V.type;if(g1==="geojson")D.setData(V.data);else if(g1==="image")D.updateImage({url:V.url,coordinates:V.coordinates});else if("setCoordinates"in D&&h1===1&&K==="coordinates")D.setCoordinates(V.coordinates);else if("setUrl"in D)switch(K){case"url":D.setUrl(V.url);break;case"tiles":D.setTiles(V.tiles);break}else console.warn(`Unable to update prop: ${K}`)}function fa(D){const V=D1.useContext(V5).map.getMap(),J=D1.useRef(D),[,K]=D1.useState(0),h1=D1.useMemo(()=>D.id||`jsx-source-${ha++}`,[]);D1.useEffect(()=>{if(V){const T1=()=>setTimeout(()=>K(c=>c+1),0);return V.on("styledata",T1),T1(),()=>{var c;if(V.off("styledata",T1),V.style&&V.style._loaded&&V.getSource(h1)){const W1=(c=V.getStyle())===null||c===void 0?void 0:c.layers;if(W1)for(const r1 of W1)r1.source===h1&&V.removeLayer(r1.id);V.removeSource(h1)}}}},[V]);let g1=V&&V.style&&V.getSource(h1);return g1?pa(g1,D,J.current):g1=da(V,h1,D),J.current=D,g1&&D1.Children.map(D.children,T1=>T1&&D1.cloneElement(T1,{source:h1}))||null}const ma=Rn(()=>import("./index-CGqDWSD_.js").then(D=>D.i),__vite__mapDeps([]),import.meta.url),ga=D1.forwardRef(function(V,J){return Yn(V,J,ma)}),s8=ua,Ci=fa,Pi="#CC3333",Mi="#990000",ya={"fill-color":Pi,"fill-opacity":.2},_a={"line-color":Mi,"line-opacity":.6},va={"circle-radius":["interpolate",["linear"],["number",["get","point_count"],1],0,4,10,14],"circle-stroke-width":1,"circle-color":Pi,"circle-stroke-color":Mi},u8=D=>{const[V,J]=D1.useState(D.data),K=D1.useCallback((c,W1)=>w0.defaults(c,W1),[]),h1=D1.useMemo(()=>K(D.fillStyle,ya),[K,D.fillStyle]),g1=D1.useMemo(()=>K(D.lineStyle,_a),[K,D.lineStyle]),T1=D1.useMemo(()=>K(D.pointStyle,va),[K,D.pointStyle]);return D1.useEffect(()=>{D.url&&fetch(D.url).then(c=>c.json()).then(c=>J(c))},[D.url]),U4.jsxs(Ci,{data:V,type:"geojson",children:[U4.jsx(s8,{filter:["!=","$type","Point"],paint:h1,type:"fill"}),U4.jsx(s8,{filter:["!=","$type","Point"],paint:g1,type:"line"}),U4.jsx(s8,{filter:["==","$type","Point"],paint:T1,type:"circle"})]})};u8.__docgenInfo={description:"",methods:[],displayName:"GeoJsonLayer",props:{data:{required:!1,flowType:{name:"signature",type:"object",raw:"{ [key: string]: any }",signature:{properties:[{key:{name:"string"},value:{name:"any",required:!0}}]}},description:""},fillStyle:{required:!1,flowType:{name:"signature",type:"object",raw:"{ [key: string]: any }",signature:{properties:[{key:{name:"string"},value:{name:"any",required:!0}}]}},description:""},lineStyle:{required:!1,flowType:{name:"signature",type:"object",raw:"{ [key: string]: any }",signature:{properties:[{key:{name:"string"},value:{name:"any",required:!0}}]}},description:""},pointStyle:{required:!1,flowType:{name:"signature",type:"object",raw:"{ [key: string]: any }",signature:{properties:[{key:{name:"string"},value:{name:"any",required:!0}}]}},description:""},url:{required:!1,flowType:{name:"string"},description:""}}};var Ai={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Jt=f5.createContext&&f5.createContext(Ai),xa=["attr","size","title"];function ba(D,V){if(D==null)return{};var J=wa(D,V),K,h1;if(Object.getOwnPropertySymbols){var g1=Object.getOwnPropertySymbols(D);for(h1=0;h1=0)&&Object.prototype.propertyIsEnumerable.call(D,K)&&(J[K]=D[K])}return J}function wa(D,V){if(D==null)return{};var J={},K=Object.keys(D),h1,g1;for(g1=0;g1=0)&&(J[h1]=D[h1]);return J}function l8(){return l8=Object.assign?Object.assign.bind():function(D){for(var V=1;Vf5.createElement(V.tag,c8({key:J},V.attr),ki(V.child)))}function zi(D){return V=>f5.createElement(Ea,l8({attr:c8({},D.attr)},V),ki(D.child))}function Ea(D){var V=J=>{var{attr:K,size:h1,title:g1}=D,T1=ba(D,xa),c=h1||J.size||"1em",W1;return J.className&&(W1=J.className),D.className&&(W1=(W1?W1+" ":"")+D.className),f5.createElement("svg",l8({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},J.attr,K,T1,{className:W1,style:c8(c8({color:D.color||J.color},J.style),D.style),height:c,width:c,xmlns:"http://www.w3.org/2000/svg"}),g1&&f5.createElement("title",null,g1),D.children)};return Jt!==void 0?f5.createElement(Jt.Consumer,null,J=>V(J)):V(Ai)}function Ca(D){return zi({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"m14.12 10.163 1.715.858c.22.11.22.424 0 .534L8.267 15.34a.598.598 0 0 1-.534 0L.165 11.555a.299.299 0 0 1 0-.534l1.716-.858 5.317 2.659c.505.252 1.1.252 1.604 0l5.317-2.66zM7.733.063a.598.598 0 0 1 .534 0l7.568 3.784a.3.3 0 0 1 0 .535L8.267 8.165a.598.598 0 0 1-.534 0L.165 4.382a.299.299 0 0 1 0-.535L7.733.063z"},child:[]},{tag:"path",attr:{d:"m14.12 6.576 1.715.858c.22.11.22.424 0 .534l-7.568 3.784a.598.598 0 0 1-.534 0L.165 7.968a.299.299 0 0 1 0-.534l1.716-.858 5.317 2.659c.505.252 1.1.252 1.604 0l5.317-2.659z"},child:[]}]})(D)}function Pa(D){return zi({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M416 128 192 384l-96-96"},child:[]}]})(D)}var Li={exports:{}};(function(D,V){(function(J,K){D.exports=K()})(O5,function(){var J,K,h1;function g1(c,W1){if(!J)J=W1;else if(!K)K=W1;else{var r1="var sharedChunk = {}; ("+J+")(sharedChunk); ("+K+")(sharedChunk);",o4={};J(o4),h1=W1(o4),typeof window<"u"&&(h1.workerUrl=window.URL.createObjectURL(new Blob([r1],{type:"text/javascript"})))}}g1(["exports"],function(c){function W1(i,e,r,a){return new(r||(r=Promise))(function(o,h){function p(x){try{_(a.next(x))}catch(S){h(S)}}function m(x){try{_(a.throw(x))}catch(S){h(S)}}function _(x){var S;x.done?o(x.value):(S=x.value,S instanceof r?S:new r(function(E){E(S)})).then(p,m)}_((a=a.apply(i,e||[])).next())})}function r1(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}typeof SuppressedError=="function"&&SuppressedError;var o4=u4;function u4(i,e){this.x=i,this.y=e}u4.prototype={clone:function(){return new u4(this.x,this.y)},add:function(i){return this.clone()._add(i)},sub:function(i){return this.clone()._sub(i)},multByPoint:function(i){return this.clone()._multByPoint(i)},divByPoint:function(i){return this.clone()._divByPoint(i)},mult:function(i){return this.clone()._mult(i)},div:function(i){return this.clone()._div(i)},rotate:function(i){return this.clone()._rotate(i)},rotateAround:function(i,e){return this.clone()._rotateAround(i,e)},matMult:function(i){return this.clone()._matMult(i)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(i){return this.x===i.x&&this.y===i.y},dist:function(i){return Math.sqrt(this.distSqr(i))},distSqr:function(i){var e=i.x-this.x,r=i.y-this.y;return e*e+r*r},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(i){return Math.atan2(this.y-i.y,this.x-i.x)},angleWith:function(i){return this.angleWithSep(i.x,i.y)},angleWithSep:function(i,e){return Math.atan2(this.x*e-this.y*i,this.x*i+this.y*e)},_matMult:function(i){var e=i[2]*this.x+i[3]*this.y;return this.x=i[0]*this.x+i[1]*this.y,this.y=e,this},_add:function(i){return this.x+=i.x,this.y+=i.y,this},_sub:function(i){return this.x-=i.x,this.y-=i.y,this},_mult:function(i){return this.x*=i,this.y*=i,this},_div:function(i){return this.x/=i,this.y/=i,this},_multByPoint:function(i){return this.x*=i.x,this.y*=i.y,this},_divByPoint:function(i){return this.x/=i.x,this.y/=i.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var i=this.y;return this.y=this.x,this.x=-i,this},_rotate:function(i){var e=Math.cos(i),r=Math.sin(i),a=r*this.x+e*this.y;return this.x=e*this.x-r*this.y,this.y=a,this},_rotateAround:function(i,e){var r=Math.cos(i),a=Math.sin(i),o=e.y+a*(this.x-e.x)+r*(this.y-e.y);return this.x=e.x+r*(this.x-e.x)-a*(this.y-e.y),this.y=o,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},u4.convert=function(i){return i instanceof u4?i:Array.isArray(i)?new u4(i[0],i[1]):i};var j1=r1(o4),c4=b4;function b4(i,e,r,a){this.cx=3*i,this.bx=3*(r-i)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*e,this.by=3*(a-e)-this.cy,this.ay=1-this.cy-this.by,this.p1x=i,this.p1y=e,this.p2x=r,this.p2y=a}b4.prototype={sampleCurveX:function(i){return((this.ax*i+this.bx)*i+this.cx)*i},sampleCurveY:function(i){return((this.ay*i+this.by)*i+this.cy)*i},sampleCurveDerivativeX:function(i){return(3*this.ax*i+2*this.bx)*i+this.cx},solveCurveX:function(i,e){if(e===void 0&&(e=1e-6),i<0)return 0;if(i>1)return 1;for(var r=i,a=0;a<8;a++){var o=this.sampleCurveX(r)-i;if(Math.abs(o)o?p=r:m=r,r=.5*(m-p)+p;return r},solve:function(i,e){return this.sampleCurveY(this.solveCurveX(i,e))}};var r4=r1(c4);let g4,I4;function i7(){return g4==null&&(g4=typeof OffscreenCanvas<"u"&&new OffscreenCanvas(1,1).getContext("2d")&&typeof createImageBitmap=="function"),g4}function N4(){if(I4==null&&(I4=!1,i7())){const e=new OffscreenCanvas(5,5).getContext("2d",{willReadFrequently:!0});if(e){for(let a=0;a<5*5;a++){const o=4*a;e.fillStyle=`rgb(${o},${o+1},${o+2})`,e.fillRect(a%5,Math.floor(a/5),1,1)}const r=e.getImageData(0,0,5,5).data;for(let a=0;a<5*5*4;a++)if(a%4!=3&&r[a]!==a){I4=!0;break}}}return I4||!1}function A4(i,e,r,a){const o=new r4(i,e,r,a);return function(h){return o.solve(h)}}const r7=A4(.25,.1,.25,1);function O7(i,e,r){return Math.min(r,Math.max(e,i))}function $0(i,e,r){const a=r-e,o=((i-e)%a+a)%a+e;return o===e?r:o}function U2(i,...e){for(const r of e)for(const a in r)i[a]=r[a];return i}let y6=1;function a2(i,e,r){const a={};for(const o in i)a[o]=e.call(r||this,i[o],o,i);return a}function a0(i,e,r){const a={};for(const o in i)e.call(r||this,i[o],o,i)&&(a[o]=i[o]);return a}function S2(i){return Array.isArray(i)?i.map(S2):typeof i=="object"&&i?a2(i,S2):i}const O3={};function P2(i){O3[i]||(typeof console<"u"&&console.warn(i),O3[i]=!0)}function f7(i,e,r){return(r.y-i.y)*(e.x-i.x)>(e.y-i.y)*(r.x-i.x)}function N7(i){let e=0;for(let r,a,o=0,h=i.length,p=h-1;o"u")throw new Error("VideoFrame not supported");const h=new VideoFrame(i,{timestamp:0});try{const p=h==null?void 0:h.format;if(!p||!p.startsWith("BGR")&&!p.startsWith("RGB"))throw new Error(`Unrecognized format ${p}`);const m=p.startsWith("BGR"),_=new Uint8ClampedArray(a*o*4);if(yield h.copyTo(_,function(x,S,E,P,z){const L=4*Math.max(-S,0),B=(Math.max(0,E)-E)*P*4+L,Z=4*P,X=Math.max(0,S),s1=Math.max(0,E);return{rect:{x:X,y:s1,width:Math.min(x.width,S+P)-X,height:Math.min(x.height,E+z)-s1},layout:[{offset:B,stride:Z}]}}(i,e,r,a,o)),m)for(let x=0;x<_.length;x+=4){const S=_[x];_[x]=_[x+2],_[x+2]=S}return _}finally{h.close()}})}let V7,E4,M2,l7;const Z2={now:typeof performance<"u"&&performance&&performance.now?performance.now.bind(performance):Date.now.bind(Date),frame(i){const e=requestAnimationFrame(i);return{cancel:()=>cancelAnimationFrame(e)}},getImageData(i,e=0){return this.getImageCanvasContext(i).getImageData(-e,-e,i.width+2*e,i.height+2*e)},getImageCanvasContext(i){const e=window.document.createElement("canvas"),r=e.getContext("2d",{willReadFrequently:!0});if(!r)throw new Error("failed to create canvas 2d context");return e.width=i.width,e.height=i.height,r.drawImage(i,0,0,i.width,i.height),r},resolveURL:i=>(M2||(M2=document.createElement("a")),M2.href=i,M2.href),hardwareConcurrency:typeof navigator<"u"&&navigator.hardwareConcurrency||4,get prefersReducedMotion(){return!!matchMedia&&(l7==null&&(l7=matchMedia("(prefers-reduced-motion: reduce)")),l7.matches)}},S0={MAX_PARALLEL_IMAGE_REQUESTS:16,MAX_PARALLEL_IMAGE_REQUESTS_PER_FRAME:8,MAX_TILE_CACHE_ZOOM_LEVELS:5,REGISTERED_PROTOCOLS:{},WORKER_URL:""};class t3 extends Error{constructor(e,r,a,o){super(`AJAXError: ${r} (${e}): ${a}`),this.status=e,this.statusText=r,this.url=a,this.body=o}}const l2=m7()?()=>self.worker&&self.worker.referrer:()=>(window.location.protocol==="blob:"?window.parent:window).location.href,y4=i=>S0.REGISTERED_PROTOCOLS[i.substring(0,i.indexOf("://"))];function T0(i,e){const r=new AbortController,a=new Request(i.url,{method:i.method||"GET",body:i.body,credentials:i.credentials,headers:i.headers,cache:i.cache,referrer:l2(),signal:r.signal});let o=!1,h=!1;return i.type==="json"&&a.headers.set("Accept","application/json"),h||fetch(a).then(p=>p.ok?(m=>{(i.type==="arrayBuffer"||i.type==="image"?m.arrayBuffer():i.type==="json"?m.json():m.text()).then(_=>{h||(o=!0,e(null,_,m.headers.get("Cache-Control"),m.headers.get("Expires")))}).catch(_=>{h||e(new Error(_.message))})})(p):p.blob().then(m=>e(new t3(p.status,p.statusText,i.url,m)))).catch(p=>{p.code!==20&&e(new Error(p.message))}),{cancel:()=>{h=!0,o||r.abort()}}}const N3=function(i,e){if(/:\/\//.test(i.url)&&!/^https?:|^file:/.test(i.url)){if(m7()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",i,e);if(!m7())return(y4(i.url)||T0)(i,e)}if(!(/^file:/.test(r=i.url)||/^file:/.test(l2())&&!/^\w+:/.test(r))){if(fetch&&Request&&AbortController&&Object.prototype.hasOwnProperty.call(Request.prototype,"signal"))return T0(i,e);if(m7()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",i,e,void 0,!0)}var r;return function(a,o){const h=new XMLHttpRequest;h.open(a.method||"GET",a.url,!0),a.type!=="arrayBuffer"&&a.type!=="image"||(h.responseType="arraybuffer");for(const p in a.headers)h.setRequestHeader(p,a.headers[p]);return a.type==="json"&&(h.responseType="text",h.setRequestHeader("Accept","application/json")),h.withCredentials=a.credentials==="include",h.onerror=()=>{o(new Error(h.statusText))},h.onload=()=>{if((h.status>=200&&h.status<300||h.status===0)&&h.response!==null){let p=h.response;if(a.type==="json")try{p=JSON.parse(h.response)}catch(m){return o(m)}o(null,p,h.getResponseHeader("Cache-Control"),h.getResponseHeader("Expires"))}else{const p=new Blob([h.response],{type:h.getResponseHeader("Content-Type")});o(new t3(h.status,h.statusText,a.url,p))}},h.send(a.body),{cancel:()=>h.abort()}}(i,e)},G0=function(i,e){return N3(U2(i,{type:"arrayBuffer"}),e)};function C7(i){if(!i||i.indexOf("://")<=0||i.indexOf("data:image/")===0||i.indexOf("blob:")===0)return!0;const e=new URL(i),r=window.location;return e.protocol===r.protocol&&e.host===r.host}function I0(i,e,r){r[i]&&r[i].indexOf(e)!==-1||(r[i]=r[i]||[],r[i].push(e))}function q4(i,e,r){if(r&&r[i]){const a=r[i].indexOf(e);a!==-1&&r[i].splice(a,1)}}class E3{constructor(e,r={}){U2(this,r),this.type=e}}class V3 extends E3{constructor(e,r={}){super("error",U2({error:e},r))}}class l0{on(e,r){return this._listeners=this._listeners||{},I0(e,r,this._listeners),this}off(e,r){return q4(e,r,this._listeners),q4(e,r,this._oneTimeListeners),this}once(e,r){return r?(this._oneTimeListeners=this._oneTimeListeners||{},I0(e,r,this._oneTimeListeners),this):new Promise(a=>this.once(e,a))}fire(e,r){typeof e=="string"&&(e=new E3(e,r||{}));const a=e.type;if(this.listens(a)){e.target=this;const o=this._listeners&&this._listeners[a]?this._listeners[a].slice():[];for(const m of o)m.call(this,e);const h=this._oneTimeListeners&&this._oneTimeListeners[a]?this._oneTimeListeners[a].slice():[];for(const m of h)q4(a,m,this._oneTimeListeners),m.call(this,e);const p=this._eventedParent;p&&(U2(e,typeof this._eventedParentData=="function"?this._eventedParentData():this._eventedParentData),p.fire(e))}else e instanceof V3&&console.error(e.error);return this}listens(e){return this._listeners&&this._listeners[e]&&this._listeners[e].length>0||this._oneTimeListeners&&this._oneTimeListeners[e]&&this._oneTimeListeners[e].length>0||this._eventedParent&&this._eventedParent.listens(e)}setEventedParent(e,r){return this._eventedParent=e,this._eventedParentData=r,this}}var _1={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},terrain:{type:"terrain"},sources:{required:!0,type:"sources"},sprite:{type:"sprite"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster:{type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{},custom:{}},default:"mapbox"},redFactor:{type:"number",default:1},blueFactor:{type:"number",default:1},greenFactor:{type:"number",default:1},baseShift:{type:"number",default:0},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{required:!0,type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image",{"!":"icon-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"padding",default:[2],units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},"viewport-glyph":{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-variable-anchor-offset":{type:"variableAnchorOffsetCollection",requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field",{"!":"text-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},filter:{type:"array",value:"*"},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"*",minimum:1},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},terrain:{source:{type:"string",required:!0},exaggeration:{type:"number",minimum:0,default:1}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:{"*":{type:"string"}}};const g7=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function U7(i,e){const r={};for(const a in i)a!=="ref"&&(r[a]=i[a]);return g7.forEach(a=>{a in e&&(r[a]=e[a])}),r}function J4(i,e){if(Array.isArray(i)){if(!Array.isArray(e)||i.length!==e.length)return!1;for(let r=0;r`:i.itemType.kind==="value"?"array":`array<${e}>`}return i.kind}const o1=[y7,F1,w4,f4,n7,U,M7,$(h4),C,M,F];function e1(i,e){if(e.kind==="error")return null;if(i.kind==="array"){if(e.kind==="array"&&(e.N===0&&e.itemType.kind==="value"||!e1(i.itemType,e.itemType))&&(typeof i.N!="number"||i.N===e.N))return null}else{if(i.kind===e.kind)return null;if(i.kind==="value"){for(const r of o1)if(!e1(r,e))return null}}return`Expected ${G(i)} but found ${G(e)} instead.`}function W(i,e){return e.some(r=>r.kind===i.kind)}function i1(i,e){return e.some(r=>r==="null"?i===null:r==="array"?Array.isArray(i):r==="object"?i&&!Array.isArray(i)&&typeof i=="object":r===typeof i)}function v1(i,e){return i.kind==="array"&&e.kind==="array"?i.itemType.kind===e.itemType.kind&&typeof i.N=="number":i.kind===e.kind}const x1=.96422,b1=.82521,Q1=4/29,m4=6/29,X1=3*m4*m4,n4=m4*m4*m4,_4=Math.PI/180,$4=180/Math.PI;function S4(i){return(i%=360)<0&&(i+=360),i}function O4([i,e,r,a]){let o,h;const p=a7((.2225045*(i=F4(i))+.7168786*(e=F4(e))+.0606169*(r=F4(r)))/1);i===e&&e===r?o=h=p:(o=a7((.4360747*i+.3850649*e+.1430804*r)/x1),h=a7((.0139322*i+.0971045*e+.7141733*r)/b1));const m=116*p-16;return[m<0?0:m,500*(o-p),200*(p-h),a]}function F4(i){return i<=.04045?i/12.92:Math.pow((i+.055)/1.055,2.4)}function a7(i){return i>n4?Math.pow(i,1/3):i/X1+Q1}function Y4([i,e,r,a]){let o=(i+16)/116,h=isNaN(e)?o:o+e/500,p=isNaN(r)?o:o-r/200;return o=1*R2(o),h=x1*R2(h),p=b1*R2(p),[A2(3.1338561*h-1.6168667*o-.4906146*p),A2(-.9787684*h+1.9161415*o+.033454*p),A2(.0719453*h-.2289914*o+1.4052427*p),a]}function A2(i){return(i=i<=.00304?12.92*i:1.055*Math.pow(i,1/2.4)-.055)<0?0:i>1?1:i}function R2(i){return i>m4?i*i*i:X1*(i-Q1)}function G7(i){return parseInt(i.padEnd(2,i),16)/255}function Z0(i,e){return j3(e?i/100:i,0,1)}function j3(i,e,r){return Math.min(Math.max(e,i),r)}function $3(i){return!i.some(Number.isNaN)}const B2={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};class G4{constructor(e,r,a,o=1,h=!0){this.r=e,this.g=r,this.b=a,this.a=o,h||(this.r*=o,this.g*=o,this.b*=o,o||this.overwriteGetter("rgb",[e,r,a,o]))}static parse(e){if(e instanceof G4)return e;if(typeof e!="string")return;const r=function(a){if((a=a.toLowerCase().trim())==="transparent")return[0,0,0,0];const o=B2[a];if(o){const[p,m,_]=o;return[p/255,m/255,_/255,1]}if(a.startsWith("#")&&/^#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/.test(a)){const p=a.length<6?1:2;let m=1;return[G7(a.slice(m,m+=p)),G7(a.slice(m,m+=p)),G7(a.slice(m,m+=p)),G7(a.slice(m,m+p)||"ff")]}if(a.startsWith("rgb")){const p=a.match(/^rgba?\(\s*([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(p){const[m,_,x,S,E,P,z,L,B,Z,X,s1]=p,Y=[S||" ",z||" ",Z].join("");if(Y===" "||Y===" /"||Y===",,"||Y===",,,"){const c1=[x,P,B].join(""),p1=c1==="%%%"?100:c1===""?255:0;if(p1){const S1=[j3(+_/p1,0,1),j3(+E/p1,0,1),j3(+L/p1,0,1),X?Z0(+X,s1):1];if($3(S1))return S1}}return}}const h=a.match(/^hsla?\(\s*([\de.+-]+)(?:deg)?(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(h){const[p,m,_,x,S,E,P,z,L]=h,B=[_||" ",S||" ",P].join("");if(B===" "||B===" /"||B===",,"||B===",,,"){const Z=[+m,j3(+x,0,100),j3(+E,0,100),z?Z0(+z,L):1];if($3(Z))return function([X,s1,Y,c1]){function p1(S1){const H1=(S1+X/30)%12,Y1=s1*Math.min(Y,1-Y);return Y-Y1*Math.max(-1,Math.min(H1-3,9-H1,1))}return X=S4(X),s1/=100,Y/=100,[p1(0),p1(8),p1(4),c1]}(Z)}}}(e);return r?new G4(...r,!1):void 0}get rgb(){const{r:e,g:r,b:a,a:o}=this,h=o||1/0;return this.overwriteGetter("rgb",[e/h,r/h,a/h,o])}get hcl(){return this.overwriteGetter("hcl",function(e){const[r,a,o,h]=O4(e),p=Math.sqrt(a*a+o*o);return[Math.round(1e4*p)?S4(Math.atan2(o,a)*$4):NaN,p,r,h]}(this.rgb))}get lab(){return this.overwriteGetter("lab",O4(this.rgb))}overwriteGetter(e,r){return Object.defineProperty(this,e,{value:r}),r}toString(){const[e,r,a,o]=this.rgb;return`rgba(${[e,r,a].map(h=>Math.round(255*h)).join(",")},${o})`}}G4.black=new G4(0,0,0,1),G4.white=new G4(1,1,1,1),G4.transparent=new G4(0,0,0,0),G4.red=new G4(1,0,0,1);class _6{constructor(e,r,a){this.sensitivity=e?r?"variant":"case":r?"accent":"base",this.locale=a,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})}compare(e,r){return this.collator.compare(e,r)}resolvedLocale(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}}class n3{constructor(e,r,a,o,h){this.text=e,this.image=r,this.scale=a,this.fontStack=o,this.textColor=h}}class s2{constructor(e){this.sections=e}static fromString(e){return new s2([new n3(e,null,null,null,null)])}isEmpty(){return this.sections.length===0||!this.sections.some(e=>e.text.length!==0||e.image&&e.image.name.length!==0)}static factory(e){return e instanceof s2?e:s2.fromString(e)}toString(){return this.sections.length===0?"":this.sections.map(e=>e.text).join("")}}class s7{constructor(e){this.values=e.slice()}static parse(e){if(e instanceof s7)return e;if(typeof e=="number")return new s7([e,e,e,e]);if(Array.isArray(e)&&!(e.length<1||e.length>4)){for(const r of e)if(typeof r!="number")return;switch(e.length){case 1:e=[e[0],e[0],e[0],e[0]];break;case 2:e=[e[0],e[1],e[0],e[1]];break;case 3:e=[e[0],e[1],e[2],e[1]]}return new s7(e)}}toString(){return JSON.stringify(this.values)}}const h0=new Set(["center","left","right","top","bottom","top-left","top-right","bottom-left","bottom-right"]);class j2{constructor(e){this.values=e.slice()}static parse(e){if(e instanceof j2)return e;if(Array.isArray(e)&&!(e.length<1)&&e.length%2==0){for(let r=0;r=0&&i<=255&&typeof e=="number"&&e>=0&&e<=255&&typeof r=="number"&&r>=0&&r<=255?a===void 0||typeof a=="number"&&a>=0&&a<=1?null:`Invalid rgba value [${[i,e,r,a].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${(typeof a=="number"?[i,e,r,a]:[i,e,r]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function E0(i){if(i===null||typeof i=="string"||typeof i=="boolean"||typeof i=="number"||i instanceof G4||i instanceof _6||i instanceof s2||i instanceof s7||i instanceof j2||i instanceof $2)return!0;if(Array.isArray(i)){for(const e of i)if(!E0(e))return!1;return!0}if(typeof i=="object"){for(const e in i)if(!E0(i[e]))return!1;return!0}return!1}function c2(i){if(i===null)return y7;if(typeof i=="string")return w4;if(typeof i=="boolean")return f4;if(typeof i=="number")return F1;if(i instanceof G4)return n7;if(i instanceof _6)return q7;if(i instanceof s2)return U;if(i instanceof s7)return C;if(i instanceof j2)return F;if(i instanceof $2)return M;if(Array.isArray(i)){const e=i.length;let r;for(const a of i){const o=c2(a);if(r){if(r===o)continue;r=h4;break}r=o}return $(r||h4,e)}return M7}function V4(i){const e=typeof i;return i===null?"":e==="string"||e==="number"||e==="boolean"?String(i):i instanceof G4||i instanceof s2||i instanceof s7||i instanceof j2||i instanceof $2?i.toString():JSON.stringify(i)}class C3{constructor(e,r){this.type=e,this.value=r}static parse(e,r){if(e.length!==2)return r.error(`'literal' expression requires exactly one argument, but found ${e.length-1} instead.`);if(!E0(e[1]))return r.error("invalid value");const a=e[1];let o=c2(a);const h=r.expectedType;return o.kind!=="array"||o.N!==0||!h||h.kind!=="array"||typeof h.N=="number"&&h.N!==0||(o=h),new C3(o,a)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}}class u2{constructor(e){this.name="ExpressionEvaluationError",this.message=e}toJSON(){return this.message}}const H0={string:w4,number:F1,boolean:f4,object:M7};class Z7{constructor(e,r){this.type=e,this.args=r}static parse(e,r){if(e.length<2)return r.error("Expected at least one argument.");let a,o=1;const h=e[0];if(h==="array"){let m,_;if(e.length>2){const x=e[1];if(typeof x!="string"||!(x in H0)||x==="object")return r.error('The item type argument of "array" must be one of string, number, boolean',1);m=H0[x],o++}else m=h4;if(e.length>3){if(e[2]!==null&&(typeof e[2]!="number"||e[2]<0||e[2]!==Math.floor(e[2])))return r.error('The length argument to "array" must be a positive integer literal',2);_=e[2],o++}a=$(m,_)}else{if(!H0[h])throw new Error(`Types doesn't contain name = ${h}`);a=H0[h]}const p=[];for(;oe.outputDefined())}}const J6={"to-boolean":f4,"to-color":n7,"to-number":F1,"to-string":w4};class q3{constructor(e,r){this.type=e,this.args=r}static parse(e,r){if(e.length<2)return r.error("Expected at least one argument.");const a=e[0];if(!J6[a])throw new Error(`Can't parse ${a} as it is not part of the known types`);if((a==="to-boolean"||a==="to-string")&&e.length!==2)return r.error("Expected one argument.");const o=J6[a],h=[];for(let p=1;p4?`Invalid rbga value ${JSON.stringify(r)}: expected an array containing either three or four numeric values.`:v6(r[0],r[1],r[2],r[3]),!a))return new G4(r[0]/255,r[1]/255,r[2]/255,r[3])}throw new u2(a||`Could not parse color from value '${typeof r=="string"?r:JSON.stringify(r)}'`)}case"padding":{let r;for(const a of this.args){r=a.evaluate(e);const o=s7.parse(r);if(o)return o}throw new u2(`Could not parse padding from value '${typeof r=="string"?r:JSON.stringify(r)}'`)}case"variableAnchorOffsetCollection":{let r;for(const a of this.args){r=a.evaluate(e);const o=j2.parse(r);if(o)return o}throw new u2(`Could not parse variableAnchorOffsetCollection from value '${typeof r=="string"?r:JSON.stringify(r)}'`)}case"number":{let r=null;for(const a of this.args){if(r=a.evaluate(e),r===null)return 0;const o=Number(r);if(!isNaN(o))return o}throw new u2(`Could not convert ${JSON.stringify(r)} to number.`)}case"formatted":return s2.fromString(V4(this.args[0].evaluate(e)));case"resolvedImage":return $2.fromString(V4(this.args[0].evaluate(e)));default:return V4(this.args[0].evaluate(e))}}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every(e=>e.outputDefined())}}const W0=["Unknown","Point","LineString","Polygon"];class f{constructor(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null}id(){return this.feature&&"id"in this.feature?this.feature.id:null}geometryType(){return this.feature?typeof this.feature.type=="number"?W0[this.feature.type]:this.feature.type:null}geometry(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null}canonicalID(){return this.canonical}properties(){return this.feature&&this.feature.properties||{}}parseColor(e){let r=this._parseColorCache[e];return r||(r=this._parseColorCache[e]=G4.parse(e)),r}}class b{constructor(e,r,a=[],o,h=new u0,p=[]){this.registry=e,this.path=a,this.key=a.map(m=>`[${m}]`).join(""),this.scope=h,this.errors=p,this.expectedType=o,this._isConstant=r}parse(e,r,a,o,h={}){return r?this.concat(r,a,o)._parse(e,h):this._parse(e,h)}_parse(e,r){function a(o,h,p){return p==="assert"?new Z7(h,[o]):p==="coerce"?new q3(h,[o]):o}if(e!==null&&typeof e!="string"&&typeof e!="boolean"&&typeof e!="number"||(e=["literal",e]),Array.isArray(e)){if(e.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');const o=e[0];if(typeof o!="string")return this.error(`Expression name must be a string, but found ${typeof o} instead. If you wanted a literal array, use ["literal", [...]].`,0),null;const h=this.registry[o];if(h){let p=h.parse(e,this);if(!p)return null;if(this.expectedType){const m=this.expectedType,_=p.type;if(m.kind!=="string"&&m.kind!=="number"&&m.kind!=="boolean"&&m.kind!=="object"&&m.kind!=="array"||_.kind!=="value")if(m.kind!=="color"&&m.kind!=="formatted"&&m.kind!=="resolvedImage"||_.kind!=="value"&&_.kind!=="string")if(m.kind!=="padding"||_.kind!=="value"&&_.kind!=="number"&&_.kind!=="array")if(m.kind!=="variableAnchorOffsetCollection"||_.kind!=="value"&&_.kind!=="array"){if(this.checkSubtype(m,_))return null}else p=a(p,m,r.typeAnnotation||"coerce");else p=a(p,m,r.typeAnnotation||"coerce");else p=a(p,m,r.typeAnnotation||"coerce");else p=a(p,m,r.typeAnnotation||"assert")}if(!(p instanceof C3)&&p.type.kind!=="resolvedImage"&&this._isConstant(p)){const m=new f;try{p=new C3(p.type,p.evaluate(m))}catch(_){return this.error(_.message),null}}return p}return this.error(`Unknown expression "${o}". If you wanted a literal array, use ["literal", [...]].`,0)}return this.error(e===void 0?"'undefined' value invalid. Use null instead.":typeof e=="object"?'Bare objects invalid. Use ["literal", {...}] instead.':`Expected an array, but found ${typeof e} instead.`)}concat(e,r,a){const o=typeof e=="number"?this.path.concat(e):this.path,h=a?this.scope.concat(a):this.scope;return new b(this.registry,this._isConstant,o,r||null,h,this.errors)}error(e,...r){const a=`${this.key}${r.map(o=>`[${o}]`).join("")}`;this.errors.push(new _2(a,e))}checkSubtype(e,r){const a=e1(e,r);return a&&this.error(a),a}}class k{constructor(e,r,a){this.type=q7,this.locale=a,this.caseSensitive=e,this.diacriticSensitive=r}static parse(e,r){if(e.length!==2)return r.error("Expected one argument.");const a=e[1];if(typeof a!="object"||Array.isArray(a))return r.error("Collator options argument must be an object.");const o=r.parse(a["case-sensitive"]!==void 0&&a["case-sensitive"],1,f4);if(!o)return null;const h=r.parse(a["diacritic-sensitive"]!==void 0&&a["diacritic-sensitive"],1,f4);if(!h)return null;let p=null;return a.locale&&(p=r.parse(a.locale,1,w4),!p)?null:new k(o,h,p)}evaluate(e){return new _6(this.caseSensitive.evaluate(e),this.diacriticSensitive.evaluate(e),this.locale?this.locale.evaluate(e):null)}eachChild(e){e(this.caseSensitive),e(this.diacriticSensitive),this.locale&&e(this.locale)}outputDefined(){return!1}}const q=8192;function Q(i,e){i[0]=Math.min(i[0],e[0]),i[1]=Math.min(i[1],e[1]),i[2]=Math.max(i[2],e[0]),i[3]=Math.max(i[3],e[1])}function t1(i,e){return!(i[0]<=e[0]||i[2]>=e[2]||i[1]<=e[1]||i[3]>=e[3])}function u1(i,e){const r=(180+i[0])/360,a=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+i[1]*Math.PI/360)))/360,o=Math.pow(2,e.z);return[Math.round(r*o*q),Math.round(a*o*q)]}function C1(i,e,r){const a=i[0]-e[0],o=i[1]-e[1],h=i[0]-r[0],p=i[1]-r[1];return a*p-h*o==0&&a*h<=0&&o*p<=0}function A1(i,e){let r=!1;for(let p=0,m=e.length;p(a=i)[1]!=(h=_[x+1])[1]>a[1]&&a[0]<(h[0]-o[0])*(a[1]-o[1])/(h[1]-o[1])+o[0]&&(r=!r)}}var a,o,h;return r}function q1(i,e){for(let r=0;r0&&m<0||p<0&&m>0}function O1(i,e,r){for(const x of r)for(let S=0;Sr[2]){const o=.5*a;let h=i[0]-r[0]>o?-a:r[0]-i[0]>o?a:0;h===0&&(h=i[0]-r[2]>o?-a:r[2]-i[0]>o?a:0),i[0]+=h}Q(e,i)}function e4(i,e,r,a){const o=Math.pow(2,a.z)*q,h=[a.x*q,a.y*q],p=[];for(const m of i)for(const _ of m){const x=[_.x+h[0],_.y+h[1]];I1(x,e,r,o),p.push(x)}return p}function Z4(i,e,r,a){const o=Math.pow(2,a.z)*q,h=[a.x*q,a.y*q],p=[];for(const _ of i){const x=[];for(const S of _){const E=[S.x+h[0],S.y+h[1]];Q(e,E),x.push(E)}p.push(x)}if(e[2]-e[0]<=o/2){(m=e)[0]=m[1]=1/0,m[2]=m[3]=-1/0;for(const _ of p)for(const x of _)I1(x,e,r,o)}var m;return p}class d2{constructor(e,r){this.type=f4,this.geojson=e,this.geometries=r}static parse(e,r){if(e.length!==2)return r.error(`'within' expression requires exactly one argument, but found ${e.length-1} instead.`);if(E0(e[1])){const a=e[1];if(a.type==="FeatureCollection")for(let o=0;o!Array.isArray(x)||x.length===e.length-1);let _=null;for(const[x,S]of m){_=new b(r.registry,x6,r.path,null,r.scope);const E=[];let P=!1;for(let z=1;z{return P=E,Array.isArray(P)?`(${P.map(G).join(", ")})`:`(${G(P.type)}...)`;var P}).join(" | "),S=[];for(let E=1;E{r=e?r&&x6(a):r&&a instanceof C3}),!!r&&Q4(i)&&b6(i,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"])}function Q4(i){if(i instanceof _7&&(i.name==="get"&&i.args.length===1||i.name==="feature-state"||i.name==="has"&&i.args.length===1||i.name==="properties"||i.name==="geometry-type"||i.name==="id"||/^filter-/.test(i.name))||i instanceof d2)return!1;let e=!0;return i.eachChild(r=>{e&&!Q4(r)&&(e=!1)}),e}function C0(i){if(i instanceof _7&&i.name==="feature-state")return!1;let e=!0;return i.eachChild(r=>{e&&!C0(r)&&(e=!1)}),e}function b6(i,e){if(i instanceof _7&&e.indexOf(i.name)>=0)return!1;let r=!0;return i.eachChild(a=>{r&&!b6(a,e)&&(r=!1)}),r}function v7(i,e){const r=i.length-1;let a,o,h=0,p=r,m=0;for(;h<=p;)if(m=Math.floor((h+p)/2),a=i[m],o=i[m+1],a<=e){if(m===r||ee))throw new u2("Input is not a number.");p=m-1}return 0}class P3{constructor(e,r,a){this.type=e,this.input=r,this.labels=[],this.outputs=[];for(const[o,h]of a)this.labels.push(o),this.outputs.push(h)}static parse(e,r){if(e.length-1<4)return r.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if((e.length-1)%2!=0)return r.error("Expected an even number of arguments.");const a=r.parse(e[1],1,F1);if(!a)return null;const o=[];let h=null;r.expectedType&&r.expectedType.kind!=="value"&&(h=r.expectedType);for(let p=1;p=m)return r.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',x);const E=r.parse(_,S,h);if(!E)return null;h=h||E.type,o.push([m,E])}return new P3(h,a,o)}evaluate(e){const r=this.labels,a=this.outputs;if(r.length===1)return a[0].evaluate(e);const o=this.input.evaluate(e);if(o<=r[0])return a[0].evaluate(e);const h=r.length;return o>=r[h-1]?a[h-1].evaluate(e):a[v7(r,o)].evaluate(e)}eachChild(e){e(this.input);for(const r of this.outputs)e(r)}outputDefined(){return this.outputs.every(e=>e.outputDefined())}}function P4(i,e,r){return i+r*(e-i)}function X0(i,e,r){return i.map((a,o)=>P4(a,e[o],r))}const c7={number:P4,color:function(i,e,r,a="rgb"){switch(a){case"rgb":{const[o,h,p,m]=X0(i.rgb,e.rgb,r);return new G4(o,h,p,m,!1)}case"hcl":{const[o,h,p,m]=i.hcl,[_,x,S,E]=e.hcl;let P,z;if(isNaN(o)||isNaN(_))isNaN(o)?isNaN(_)?P=NaN:(P=_,p!==1&&p!==0||(z=x)):(P=o,S!==1&&S!==0||(z=h));else{let s1=_-o;_>o&&s1>180?s1-=360:_180&&(s1+=360),P=o+r*s1}const[L,B,Z,X]=function([s1,Y,c1,p1]){return s1=isNaN(s1)?0:s1*_4,Y4([c1,Math.cos(s1)*Y,Math.sin(s1)*Y,p1])}([P,z??P4(h,x,r),P4(p,S,r),P4(m,E,r)]);return new G4(L,B,Z,X,!1)}case"lab":{const[o,h,p,m]=Y4(X0(i.lab,e.lab,r));return new G4(o,h,p,m,!1)}}},array:X0,padding:function(i,e,r){return new s7(X0(i.values,e.values,r))},variableAnchorOffsetCollection:function(i,e,r){const a=i.values,o=e.values;if(a.length!==o.length)throw new u2(`Cannot interpolate values of different length. from: ${i.toString()}, to: ${e.toString()}`);const h=[];for(let p=0;ptypeof S!="number"||S<0||S>1))return r.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);o={name:"cubic-bezier",controlPoints:x}}}if(e.length-1<4)return r.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if((e.length-1)%2!=0)return r.error("Expected an even number of arguments.");if(h=r.parse(h,2,F1),!h)return null;const m=[];let _=null;a==="interpolate-hcl"||a==="interpolate-lab"?_=n7:r.expectedType&&r.expectedType.kind!=="value"&&(_=r.expectedType);for(let x=0;x=S)return r.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',P);const L=r.parse(E,z,_);if(!L)return null;_=_||L.type,m.push([S,L])}return v1(_,F1)||v1(_,n7)||v1(_,C)||v1(_,F)||v1(_,$(F1))?new x7(_,a,o,h,m):r.error(`Type ${G(_)} is not interpolatable.`)}evaluate(e){const r=this.labels,a=this.outputs;if(r.length===1)return a[0].evaluate(e);const o=this.input.evaluate(e);if(o<=r[0])return a[0].evaluate(e);const h=r.length;if(o>=r[h-1])return a[h-1].evaluate(e);const p=v7(r,o),m=x7.interpolationFactor(this.interpolation,o,r[p],r[p+1]),_=a[p].evaluate(e),x=a[p+1].evaluate(e);switch(this.operator){case"interpolate":return c7[this.type.kind](_,x,m);case"interpolate-hcl":return c7.color(_,x,m,"hcl");case"interpolate-lab":return c7.color(_,x,m,"lab")}}eachChild(e){e(this.input);for(const r of this.outputs)e(r)}outputDefined(){return this.outputs.every(e=>e.outputDefined())}}function w6(i,e,r,a){const o=a-r,h=i-r;return o===0?0:e===1?h/o:(Math.pow(e,h)-1)/(Math.pow(e,o)-1)}class S6{constructor(e,r){this.type=e,this.args=r}static parse(e,r){if(e.length<2)return r.error("Expectected at least one argument.");let a=null;const o=r.expectedType;o&&o.kind!=="value"&&(a=o);const h=[];for(const m of e.slice(1)){const _=r.parse(m,1+h.length,a,void 0,{typeAnnotation:"omit"});if(!_)return null;a=a||_.type,h.push(_)}if(!a)throw new Error("No output type");const p=o&&h.some(m=>e1(o,m.type));return new S6(p?h4:a,h)}evaluate(e){let r,a=null,o=0;for(const h of this.args)if(o++,a=h.evaluate(e),a&&a instanceof $2&&!a.available&&(r||(r=a.name),a=null,o===this.args.length&&(a=r)),a!==null)break;return a}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every(e=>e.outputDefined())}}class T6{constructor(e,r){this.type=r.type,this.bindings=[].concat(e),this.result=r}evaluate(e){return this.result.evaluate(e)}eachChild(e){for(const r of this.bindings)e(r[1]);e(this.result)}static parse(e,r){if(e.length<4)return r.error(`Expected at least 3 arguments, but found ${e.length-1} instead.`);const a=[];for(let h=1;h=a.length)throw new u2(`Array index out of bounds: ${r} > ${a.length-1}.`);if(r!==Math.floor(r))throw new u2(`Array index must be an integer, but found ${r} instead.`);return a[r]}eachChild(e){e(this.index),e(this.input)}outputDefined(){return!1}}class I6{constructor(e,r){this.type=f4,this.needle=e,this.haystack=r}static parse(e,r){if(e.length!==3)return r.error(`Expected 2 arguments, but found ${e.length-1} instead.`);const a=r.parse(e[1],1,h4),o=r.parse(e[2],2,h4);return a&&o?W(a.type,[f4,w4,F1,y7,h4])?new I6(a,o):r.error(`Expected first argument to be of type boolean, string, number or null, but found ${G(a.type)} instead`):null}evaluate(e){const r=this.needle.evaluate(e),a=this.haystack.evaluate(e);if(!a)return!1;if(!i1(r,["boolean","string","number","null"]))throw new u2(`Expected first argument to be of type boolean, string, number or null, but found ${G(c2(r))} instead.`);if(!i1(a,["string","array"]))throw new u2(`Expected second argument to be of type array or string, but found ${G(c2(a))} instead.`);return a.indexOf(r)>=0}eachChild(e){e(this.needle),e(this.haystack)}outputDefined(){return!0}}class K0{constructor(e,r,a){this.type=F1,this.needle=e,this.haystack=r,this.fromIndex=a}static parse(e,r){if(e.length<=2||e.length>=5)return r.error(`Expected 3 or 4 arguments, but found ${e.length-1} instead.`);const a=r.parse(e[1],1,h4),o=r.parse(e[2],2,h4);if(!a||!o)return null;if(!W(a.type,[f4,w4,F1,y7,h4]))return r.error(`Expected first argument to be of type boolean, string, number or null, but found ${G(a.type)} instead`);if(e.length===4){const h=r.parse(e[3],3,F1);return h?new K0(a,o,h):null}return new K0(a,o)}evaluate(e){const r=this.needle.evaluate(e),a=this.haystack.evaluate(e);if(!i1(r,["boolean","string","number","null"]))throw new u2(`Expected first argument to be of type boolean, string, number or null, but found ${G(c2(r))} instead.`);if(!i1(a,["string","array"]))throw new u2(`Expected second argument to be of type array or string, but found ${G(c2(a))} instead.`);if(this.fromIndex){const o=this.fromIndex.evaluate(e);return a.indexOf(r,o)}return a.indexOf(r)}eachChild(e){e(this.needle),e(this.haystack),this.fromIndex&&e(this.fromIndex)}outputDefined(){return!1}}class E6{constructor(e,r,a,o,h,p){this.inputType=e,this.type=r,this.input=a,this.cases=o,this.outputs=h,this.otherwise=p}static parse(e,r){if(e.length<5)return r.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if(e.length%2!=1)return r.error("Expected an even number of arguments.");let a,o;r.expectedType&&r.expectedType.kind!=="value"&&(o=r.expectedType);const h={},p=[];for(let x=2;xNumber.MAX_SAFE_INTEGER)return P.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if(typeof L=="number"&&Math.floor(L)!==L)return P.error("Numeric branch labels must be integer values.");if(a){if(P.checkSubtype(a,c2(L)))return null}else a=c2(L);if(h[String(L)]!==void 0)return P.error("Branch labels must be unique.");h[String(L)]=p.length}const z=r.parse(E,x,o);if(!z)return null;o=o||z.type,p.push(z)}const m=r.parse(e[1],1,h4);if(!m)return null;const _=r.parse(e[e.length-1],e.length-1,o);return _?m.type.kind!=="value"&&r.concat(1).checkSubtype(a,m.type)?null:new E6(a,o,m,h,p,_):null}evaluate(e){const r=this.input.evaluate(e);return(c2(r)===this.inputType&&this.outputs[this.cases[r]]||this.otherwise).evaluate(e)}eachChild(e){e(this.input),this.outputs.forEach(e),e(this.otherwise)}outputDefined(){return this.outputs.every(e=>e.outputDefined())&&this.otherwise.outputDefined()}}class Q6{constructor(e,r,a){this.type=e,this.branches=r,this.otherwise=a}static parse(e,r){if(e.length<4)return r.error(`Expected at least 3 arguments, but found only ${e.length-1}.`);if(e.length%2!=0)return r.error("Expected an odd number of arguments.");let a;r.expectedType&&r.expectedType.kind!=="value"&&(a=r.expectedType);const o=[];for(let p=1;pr.outputDefined())&&this.otherwise.outputDefined()}}class C6{constructor(e,r,a,o){this.type=e,this.input=r,this.beginIndex=a,this.endIndex=o}static parse(e,r){if(e.length<=2||e.length>=5)return r.error(`Expected 3 or 4 arguments, but found ${e.length-1} instead.`);const a=r.parse(e[1],1,h4),o=r.parse(e[2],2,F1);if(!a||!o)return null;if(!W(a.type,[$(h4),w4,h4]))return r.error(`Expected first argument to be of type array or string, but found ${G(a.type)} instead`);if(e.length===4){const h=r.parse(e[3],3,F1);return h?new C6(a.type,a,o,h):null}return new C6(a.type,a,o)}evaluate(e){const r=this.input.evaluate(e),a=this.beginIndex.evaluate(e);if(!i1(r,["string","array"]))throw new u2(`Expected first argument to be of type array or string, but found ${G(c2(r))} instead.`);if(this.endIndex){const o=this.endIndex.evaluate(e);return r.slice(a,o)}return r.slice(a)}eachChild(e){e(this.input),e(this.beginIndex),this.endIndex&&e(this.endIndex)}outputDefined(){return!1}}function J0(i,e){return i==="=="||i==="!="?e.kind==="boolean"||e.kind==="string"||e.kind==="number"||e.kind==="null"||e.kind==="value":e.kind==="string"||e.kind==="number"||e.kind==="value"}function P6(i,e,r,a){return a.compare(e,r)===0}function d0(i,e,r){const a=i!=="=="&&i!=="!=";return class Di{constructor(h,p,m){this.type=f4,this.lhs=h,this.rhs=p,this.collator=m,this.hasUntypedArgument=h.type.kind==="value"||p.type.kind==="value"}static parse(h,p){if(h.length!==3&&h.length!==4)return p.error("Expected two or three arguments.");const m=h[0];let _=p.parse(h[1],1,h4);if(!_)return null;if(!J0(m,_.type))return p.concat(1).error(`"${m}" comparisons are not supported for type '${G(_.type)}'.`);let x=p.parse(h[2],2,h4);if(!x)return null;if(!J0(m,x.type))return p.concat(2).error(`"${m}" comparisons are not supported for type '${G(x.type)}'.`);if(_.type.kind!==x.type.kind&&_.type.kind!=="value"&&x.type.kind!=="value")return p.error(`Cannot compare types '${G(_.type)}' and '${G(x.type)}'.`);a&&(_.type.kind==="value"&&x.type.kind!=="value"?_=new Z7(x.type,[_]):_.type.kind!=="value"&&x.type.kind==="value"&&(x=new Z7(_.type,[x])));let S=null;if(h.length===4){if(_.type.kind!=="string"&&x.type.kind!=="string"&&_.type.kind!=="value"&&x.type.kind!=="value")return p.error("Cannot use collator to compare non-string types.");if(S=p.parse(h[3],3,q7),!S)return null}return new Di(_,x,S)}evaluate(h){const p=this.lhs.evaluate(h),m=this.rhs.evaluate(h);if(a&&this.hasUntypedArgument){const _=c2(p),x=c2(m);if(_.kind!==x.kind||_.kind!=="string"&&_.kind!=="number")throw new u2(`Expected arguments for "${i}" to be (string, string) or (number, number), but found (${_.kind}, ${x.kind}) instead.`)}if(this.collator&&!a&&this.hasUntypedArgument){const _=c2(p),x=c2(m);if(_.kind!=="string"||x.kind!=="string")return e(h,p,m)}return this.collator?r(h,p,m,this.collator.evaluate(h)):e(h,p,m)}eachChild(h){h(this.lhs),h(this.rhs),this.collator&&h(this.collator)}outputDefined(){return!0}}}const g3=d0("==",function(i,e,r){return e===r},P6),_5=d0("!=",function(i,e,r){return e!==r},function(i,e,r,a){return!P6(0,e,r,a)}),v5=d0("<",function(i,e,r){return e",function(i,e,r){return e>r},function(i,e,r,a){return a.compare(e,r)>0}),x5=d0("<=",function(i,e,r){return e<=r},function(i,e,r,a){return a.compare(e,r)<=0}),M6=d0(">=",function(i,e,r){return e>=r},function(i,e,r,a){return a.compare(e,r)>=0});class A6{constructor(e,r,a,o,h){this.type=w4,this.number=e,this.locale=r,this.currency=a,this.minFractionDigits=o,this.maxFractionDigits=h}static parse(e,r){if(e.length!==3)return r.error("Expected two arguments.");const a=r.parse(e[1],1,F1);if(!a)return null;const o=e[2];if(typeof o!="object"||Array.isArray(o))return r.error("NumberFormat options argument must be an object.");let h=null;if(o.locale&&(h=r.parse(o.locale,1,w4),!h))return null;let p=null;if(o.currency&&(p=r.parse(o.currency,1,w4),!p))return null;let m=null;if(o["min-fraction-digits"]&&(m=r.parse(o["min-fraction-digits"],1,F1),!m))return null;let _=null;return o["max-fraction-digits"]&&(_=r.parse(o["max-fraction-digits"],1,F1),!_)?null:new A6(a,h,p,m,_)}evaluate(e){return new Intl.NumberFormat(this.locale?this.locale.evaluate(e):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(e):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(e):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(e):void 0}).format(this.number.evaluate(e))}eachChild(e){e(this.number),this.locale&&e(this.locale),this.currency&&e(this.currency),this.minFractionDigits&&e(this.minFractionDigits),this.maxFractionDigits&&e(this.maxFractionDigits)}outputDefined(){return!1}}class Y0{constructor(e){this.type=U,this.sections=e}static parse(e,r){if(e.length<2)return r.error("Expected at least one argument.");const a=e[1];if(!Array.isArray(a)&&typeof a=="object")return r.error("First argument must be an image or text section.");const o=[];let h=!1;for(let p=1;p<=e.length-1;++p){const m=e[p];if(h&&typeof m=="object"&&!Array.isArray(m)){h=!1;let _=null;if(m["font-scale"]&&(_=r.parse(m["font-scale"],1,F1),!_))return null;let x=null;if(m["text-font"]&&(x=r.parse(m["text-font"],1,$(w4)),!x))return null;let S=null;if(m["text-color"]&&(S=r.parse(m["text-color"],1,n7),!S))return null;const E=o[o.length-1];E.scale=_,E.font=x,E.textColor=S}else{const _=r.parse(e[p],1,h4);if(!_)return null;const x=_.type.kind;if(x!=="string"&&x!=="value"&&x!=="null"&&x!=="resolvedImage")return r.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");h=!0,o.push({content:_,scale:null,font:null,textColor:null})}}return new Y0(o)}evaluate(e){return new s2(this.sections.map(r=>{const a=r.content.evaluate(e);return c2(a)===M?new n3("",a,null,null,null):new n3(V4(a),null,r.scale?r.scale.evaluate(e):null,r.font?r.font.evaluate(e).join(","):null,r.textColor?r.textColor.evaluate(e):null)}))}eachChild(e){for(const r of this.sections)e(r.content),r.scale&&e(r.scale),r.font&&e(r.font),r.textColor&&e(r.textColor)}outputDefined(){return!1}}class e5{constructor(e){this.type=M,this.input=e}static parse(e,r){if(e.length!==2)return r.error("Expected two arguments.");const a=r.parse(e[1],1,w4);return a?new e5(a):r.error("No image name provided.")}evaluate(e){const r=this.input.evaluate(e),a=$2.fromString(r);return a&&e.availableImages&&(a.available=e.availableImages.indexOf(r)>-1),a}eachChild(e){e(this.input)}outputDefined(){return!1}}class M3{constructor(e){this.type=F1,this.input=e}static parse(e,r){if(e.length!==2)return r.error(`Expected 1 argument, but found ${e.length-1} instead.`);const a=r.parse(e[1],1);return a?a.type.kind!=="array"&&a.type.kind!=="string"&&a.type.kind!=="value"?r.error(`Expected argument of type string or array, but found ${G(a.type)} instead.`):new M3(a):null}evaluate(e){const r=this.input.evaluate(e);if(typeof r=="string"||Array.isArray(r))return r.length;throw new u2(`Expected value to be of type string or array, but found ${G(c2(r))} instead.`)}eachChild(e){e(this.input)}outputDefined(){return!1}}const p0={"==":g3,"!=":_5,">":U5,"<":v5,">=":M6,"<=":x5,array:Z7,at:Y6,boolean:Z7,case:Q6,coalesce:S6,collator:k,format:Y0,image:e5,in:I6,"index-of":K0,interpolate:x7,"interpolate-hcl":x7,"interpolate-lab":x7,length:M3,let:T6,literal:C3,match:E6,number:Z7,"number-format":A6,object:Z7,slice:C6,step:P3,string:Z7,"to-boolean":q3,"to-color":q3,"to-number":q3,"to-string":q3,var:v2,within:d2};function b5(i,[e,r,a,o]){e=e.evaluate(i),r=r.evaluate(i),a=a.evaluate(i);const h=o?o.evaluate(i):1,p=v6(e,r,a,h);if(p)throw new u2(p);return new G4(e/255,r/255,a/255,h,!1)}function w5(i,e){return i in e}function Q0(i,e){const r=e[i];return r===void 0?null:r}function a3(i){return{type:i}}function k6(i){return{result:"success",value:i}}function y3(i){return{result:"error",value:i}}function G3(i){return i["property-type"]==="data-driven"||i["property-type"]==="cross-faded-data-driven"}function P0(i){return!!i.expression&&i.expression.parameters.indexOf("zoom")>-1}function t5(i){return!!i.expression&&i.expression.interpolated}function j4(i){return i instanceof Number?"number":i instanceof String?"string":i instanceof Boolean?"boolean":Array.isArray(i)?"array":i===null?"null":typeof i}function p2(i){return typeof i=="object"&&i!==null&&!Array.isArray(i)}function j5(i){return i}function k4(i,e){const r=e.type==="color",a=i.stops&&typeof i.stops[0][0]=="object",o=a||!(a||i.property!==void 0),h=i.type||(t5(e)?"exponential":"interval");if(r||e.type==="padding"){const S=r?G4.parse:s7.parse;(i=P7({},i)).stops&&(i.stops=i.stops.map(E=>[E[0],S(E[1])])),i.default=S(i.default?i.default:e.default)}if(i.colorSpace&&(p=i.colorSpace)!=="rgb"&&p!=="hcl"&&p!=="lab")throw new Error(`Unknown color space: "${i.colorSpace}"`);var p;let m,_,x;if(h==="exponential")m=A7;else if(h==="interval")m=H4;else if(h==="categorical"){m=r2,_=Object.create(null);for(const S of i.stops)_[S[0]]=S[1];x=typeof i.stops[0][0]}else{if(h!=="identity")throw new Error(`Unknown function type "${h}"`);m=H3}if(a){const S={},E=[];for(let L=0;LL[0]),evaluate:({zoom:L},B)=>A7({stops:P,base:i.base},e,L).evaluate(L,B)}}if(o){const S=h==="exponential"?{name:"exponential",base:i.base!==void 0?i.base:1}:null;return{kind:"camera",interpolationType:S,interpolationFactor:x7.interpolationFactor.bind(void 0,S),zoomStops:i.stops.map(E=>E[0]),evaluate:({zoom:E})=>m(i,e,E,_,x)}}return{kind:"source",evaluate(S,E){const P=E&&E.properties?E.properties[i.property]:void 0;return P===void 0?Z3(i.default,e.default):m(i,e,P,_,x)}}}function Z3(i,e,r){return i!==void 0?i:e!==void 0?e:r!==void 0?r:void 0}function r2(i,e,r,a,o){return Z3(typeof r===o?a[r]:void 0,i.default,e.default)}function H4(i,e,r){if(j4(r)!=="number")return Z3(i.default,e.default);const a=i.stops.length;if(a===1||r<=i.stops[0][0])return i.stops[0][1];if(r>=i.stops[a-1][0])return i.stops[a-1][1];const o=v7(i.stops.map(h=>h[0]),r);return i.stops[o][1]}function A7(i,e,r){const a=i.base!==void 0?i.base:1;if(j4(r)!=="number")return Z3(i.default,e.default);const o=i.stops.length;if(o===1||r<=i.stops[0][0])return i.stops[0][1];if(r>=i.stops[o-1][0])return i.stops[o-1][1];const h=v7(i.stops.map(S=>S[0]),r),p=function(S,E,P,z){const L=z-P,B=S-P;return L===0?0:E===1?B/L:(Math.pow(E,B)-1)/(Math.pow(E,L)-1)}(r,a,i.stops[h][0],i.stops[h+1][0]),m=i.stops[h][1],_=i.stops[h+1][1],x=c7[e.type]||j5;return typeof m.evaluate=="function"?{evaluate(...S){const E=m.evaluate.apply(void 0,S),P=_.evaluate.apply(void 0,S);if(E!==void 0&&P!==void 0)return x(E,P,p,i.colorSpace)}}:x(m,_,p,i.colorSpace)}function H3(i,e,r){switch(e.type){case"color":r=G4.parse(r);break;case"formatted":r=s2.fromString(r.toString());break;case"resolvedImage":r=$2.fromString(r.toString());break;case"padding":r=s7.parse(r);break;default:j4(r)===e.type||e.type==="enum"&&e.values[r]||(r=void 0)}return Z3(r,i.default,e.default)}_7.register(p0,{error:[{kind:"error"},[w4],(i,[e])=>{throw new u2(e.evaluate(i))}],typeof:[w4,[h4],(i,[e])=>G(c2(e.evaluate(i)))],"to-rgba":[$(F1,4),[n7],(i,[e])=>{const[r,a,o,h]=e.evaluate(i).rgb;return[255*r,255*a,255*o,h]}],rgb:[n7,[F1,F1,F1],b5],rgba:[n7,[F1,F1,F1,F1],b5],has:{type:f4,overloads:[[[w4],(i,[e])=>w5(e.evaluate(i),i.properties())],[[w4,M7],(i,[e,r])=>w5(e.evaluate(i),r.evaluate(i))]]},get:{type:h4,overloads:[[[w4],(i,[e])=>Q0(e.evaluate(i),i.properties())],[[w4,M7],(i,[e,r])=>Q0(e.evaluate(i),r.evaluate(i))]]},"feature-state":[h4,[w4],(i,[e])=>Q0(e.evaluate(i),i.featureState||{})],properties:[M7,[],i=>i.properties()],"geometry-type":[w4,[],i=>i.geometryType()],id:[h4,[],i=>i.id()],zoom:[F1,[],i=>i.globals.zoom],"heatmap-density":[F1,[],i=>i.globals.heatmapDensity||0],"line-progress":[F1,[],i=>i.globals.lineProgress||0],accumulated:[h4,[],i=>i.globals.accumulated===void 0?null:i.globals.accumulated],"+":[F1,a3(F1),(i,e)=>{let r=0;for(const a of e)r+=a.evaluate(i);return r}],"*":[F1,a3(F1),(i,e)=>{let r=1;for(const a of e)r*=a.evaluate(i);return r}],"-":{type:F1,overloads:[[[F1,F1],(i,[e,r])=>e.evaluate(i)-r.evaluate(i)],[[F1],(i,[e])=>-e.evaluate(i)]]},"/":[F1,[F1,F1],(i,[e,r])=>e.evaluate(i)/r.evaluate(i)],"%":[F1,[F1,F1],(i,[e,r])=>e.evaluate(i)%r.evaluate(i)],ln2:[F1,[],()=>Math.LN2],pi:[F1,[],()=>Math.PI],e:[F1,[],()=>Math.E],"^":[F1,[F1,F1],(i,[e,r])=>Math.pow(e.evaluate(i),r.evaluate(i))],sqrt:[F1,[F1],(i,[e])=>Math.sqrt(e.evaluate(i))],log10:[F1,[F1],(i,[e])=>Math.log(e.evaluate(i))/Math.LN10],ln:[F1,[F1],(i,[e])=>Math.log(e.evaluate(i))],log2:[F1,[F1],(i,[e])=>Math.log(e.evaluate(i))/Math.LN2],sin:[F1,[F1],(i,[e])=>Math.sin(e.evaluate(i))],cos:[F1,[F1],(i,[e])=>Math.cos(e.evaluate(i))],tan:[F1,[F1],(i,[e])=>Math.tan(e.evaluate(i))],asin:[F1,[F1],(i,[e])=>Math.asin(e.evaluate(i))],acos:[F1,[F1],(i,[e])=>Math.acos(e.evaluate(i))],atan:[F1,[F1],(i,[e])=>Math.atan(e.evaluate(i))],min:[F1,a3(F1),(i,e)=>Math.min(...e.map(r=>r.evaluate(i)))],max:[F1,a3(F1),(i,e)=>Math.max(...e.map(r=>r.evaluate(i)))],abs:[F1,[F1],(i,[e])=>Math.abs(e.evaluate(i))],round:[F1,[F1],(i,[e])=>{const r=e.evaluate(i);return r<0?-Math.round(-r):Math.round(r)}],floor:[F1,[F1],(i,[e])=>Math.floor(e.evaluate(i))],ceil:[F1,[F1],(i,[e])=>Math.ceil(e.evaluate(i))],"filter-==":[f4,[w4,h4],(i,[e,r])=>i.properties()[e.value]===r.value],"filter-id-==":[f4,[h4],(i,[e])=>i.id()===e.value],"filter-type-==":[f4,[w4],(i,[e])=>i.geometryType()===e.value],"filter-<":[f4,[w4,h4],(i,[e,r])=>{const a=i.properties()[e.value],o=r.value;return typeof a==typeof o&&a{const r=i.id(),a=e.value;return typeof r==typeof a&&r":[f4,[w4,h4],(i,[e,r])=>{const a=i.properties()[e.value],o=r.value;return typeof a==typeof o&&a>o}],"filter-id->":[f4,[h4],(i,[e])=>{const r=i.id(),a=e.value;return typeof r==typeof a&&r>a}],"filter-<=":[f4,[w4,h4],(i,[e,r])=>{const a=i.properties()[e.value],o=r.value;return typeof a==typeof o&&a<=o}],"filter-id-<=":[f4,[h4],(i,[e])=>{const r=i.id(),a=e.value;return typeof r==typeof a&&r<=a}],"filter->=":[f4,[w4,h4],(i,[e,r])=>{const a=i.properties()[e.value],o=r.value;return typeof a==typeof o&&a>=o}],"filter-id->=":[f4,[h4],(i,[e])=>{const r=i.id(),a=e.value;return typeof r==typeof a&&r>=a}],"filter-has":[f4,[h4],(i,[e])=>e.value in i.properties()],"filter-has-id":[f4,[],i=>i.id()!==null&&i.id()!==void 0],"filter-type-in":[f4,[$(w4)],(i,[e])=>e.value.indexOf(i.geometryType())>=0],"filter-id-in":[f4,[$(h4)],(i,[e])=>e.value.indexOf(i.id())>=0],"filter-in-small":[f4,[w4,$(h4)],(i,[e,r])=>r.value.indexOf(i.properties()[e.value])>=0],"filter-in-large":[f4,[w4,$(h4)],(i,[e,r])=>function(a,o,h,p){for(;h<=p;){const m=h+p>>1;if(o[m]===a)return!0;o[m]>a?p=m-1:h=m+1}return!1}(i.properties()[e.value],r.value,0,r.value.length-1)],all:{type:f4,overloads:[[[f4,f4],(i,[e,r])=>e.evaluate(i)&&r.evaluate(i)],[a3(f4),(i,e)=>{for(const r of e)if(!r.evaluate(i))return!1;return!0}]]},any:{type:f4,overloads:[[[f4,f4],(i,[e,r])=>e.evaluate(i)||r.evaluate(i)],[a3(f4),(i,e)=>{for(const r of e)if(r.evaluate(i))return!0;return!1}]]},"!":[f4,[f4],(i,[e])=>!e.evaluate(i)],"is-supported-script":[f4,[w4],(i,[e])=>{const r=i.globals&&i.globals.isSupportedScript;return!r||r(e.evaluate(i))}],upcase:[w4,[w4],(i,[e])=>e.evaluate(i).toUpperCase()],downcase:[w4,[w4],(i,[e])=>e.evaluate(i).toLowerCase()],concat:[w4,a3(h4),(i,e)=>e.map(r=>V4(r.evaluate(i))).join("")],"resolved-locale":[w4,[q7],(i,[e])=>e.evaluate(i).resolvedLocale()]});class M0{constructor(e,r){var a;this.expression=e,this._warningHistory={},this._evaluator=new f,this._defaultValue=r?(a=r).type==="color"&&p2(a.default)?new G4(0,0,0,0):a.type==="color"?G4.parse(a.default)||null:a.type==="padding"?s7.parse(a.default)||null:a.type==="variableAnchorOffsetCollection"?j2.parse(a.default)||null:a.default===void 0?null:a.default:null,this._enumValues=r&&r.type==="enum"?r.values:null}evaluateWithoutErrorHandling(e,r,a,o,h,p){return this._evaluator.globals=e,this._evaluator.feature=r,this._evaluator.featureState=a,this._evaluator.canonical=o,this._evaluator.availableImages=h||null,this._evaluator.formattedSection=p,this.expression.evaluate(this._evaluator)}evaluate(e,r,a,o,h,p){this._evaluator.globals=e,this._evaluator.feature=r||null,this._evaluator.featureState=a||null,this._evaluator.canonical=o,this._evaluator.availableImages=h||null,this._evaluator.formattedSection=p||null;try{const m=this.expression.evaluate(this._evaluator);if(m==null||typeof m=="number"&&m!=m)return this._defaultValue;if(this._enumValues&&!(m in this._enumValues))throw new u2(`Expected value to be one of ${Object.keys(this._enumValues).map(_=>JSON.stringify(_)).join(", ")}, but found ${JSON.stringify(m)} instead.`);return m}catch(m){return this._warningHistory[m.message]||(this._warningHistory[m.message]=!0,typeof console<"u"&&console.warn(m.message)),this._defaultValue}}}function s3(i){return Array.isArray(i)&&i.length>0&&typeof i[0]=="string"&&i[0]in p0}function z6(i,e){const r=new b(p0,x6,[],e?function(o){const h={color:n7,string:w4,number:F1,enum:w4,boolean:f4,formatted:U,padding:C,resolvedImage:M,variableAnchorOffsetCollection:F};return o.type==="array"?$(h[o.value]||h4,o.length):h[o.type]}(e):void 0),a=r.parse(i,void 0,void 0,void 0,e&&e.type==="string"?{typeAnnotation:"coerce"}:void 0);return a?k6(new M0(a,e)):y3(r.errors)}class A0{constructor(e,r){this.kind=e,this._styleExpression=r,this.isStateDependent=e!=="constant"&&!C0(r.expression)}evaluateWithoutErrorHandling(e,r,a,o,h,p){return this._styleExpression.evaluateWithoutErrorHandling(e,r,a,o,h,p)}evaluate(e,r,a,o,h,p){return this._styleExpression.evaluate(e,r,a,o,h,p)}}class W3{constructor(e,r,a,o){this.kind=e,this.zoomStops=a,this._styleExpression=r,this.isStateDependent=e!=="camera"&&!C0(r.expression),this.interpolationType=o}evaluateWithoutErrorHandling(e,r,a,o,h,p){return this._styleExpression.evaluateWithoutErrorHandling(e,r,a,o,h,p)}evaluate(e,r,a,o,h,p){return this._styleExpression.evaluate(e,r,a,o,h,p)}interpolationFactor(e,r,a){return this.interpolationType?x7.interpolationFactor(this.interpolationType,e,r,a):0}}function L6(i,e){const r=z6(i,e);if(r.result==="error")return r;const a=r.value.expression,o=Q4(a);if(!o&&!G3(e))return y3([new _2("","data expressions not supported")]);const h=b6(a,["zoom"]);if(!h&&!P0(e))return y3([new _2("","zoom expressions not supported")]);const p=e6(a);return p||h?p instanceof _2?y3([p]):p instanceof x7&&!t5(e)?y3([new _2("",'"interpolate" expressions cannot be used with this property')]):k6(p?new W3(o?"camera":"composite",r.value,p.labels,p instanceof x7?p.interpolation:void 0):new A0(o?"constant":"source",r.value)):y3([new _2("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')])}class k0{constructor(e,r){this._parameters=e,this._specification=r,P7(this,k4(this._parameters,this._specification))}static deserialize(e){return new k0(e._parameters,e._specification)}static serialize(e){return{_parameters:e._parameters,_specification:e._specification}}}function e6(i){let e=null;if(i instanceof T6)e=e6(i.result);else if(i instanceof S6){for(const r of i.args)if(e=e6(r),e)break}else(i instanceof P3||i instanceof x7)&&i.input instanceof _7&&i.input.name==="zoom"&&(e=i);return e instanceof _2||i.eachChild(r=>{const a=e6(r);a instanceof _2?e=a:!e&&a?e=new _2("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):e&&a&&e!==a&&(e=new _2("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),e}function t6(i){if(i===!0||i===!1)return!0;if(!Array.isArray(i)||i.length===0)return!1;switch(i[0]){case"has":return i.length>=2&&i[1]!=="$id"&&i[1]!=="$type";case"in":return i.length>=3&&(typeof i[1]!="string"||Array.isArray(i[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return i.length!==3||Array.isArray(i[1])||Array.isArray(i[2]);case"any":case"all":for(const e of i.slice(1))if(!t6(e)&&typeof e!="boolean")return!1;return!0;default:return!0}}const S5={type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}};function D6(i){if(i==null)return{filter:()=>!0,needGeometry:!1};t6(i)||(i=R6(i));const e=z6(i,S5);if(e.result==="error")throw new Error(e.value.map(r=>`${r.key}: ${r.message}`).join(", "));return{filter:(r,a,o)=>e.value.evaluate(r,a,{},o),needGeometry:f0(i)}}function F6(i,e){return ie?1:0}function f0(i){if(!Array.isArray(i))return!1;if(i[0]==="within")return!0;for(let e=1;e"||e==="<="||e===">="?_3(i[1],i[2],e):e==="any"?(r=i.slice(1),["any"].concat(r.map(R6))):e==="all"?["all"].concat(i.slice(1).map(R6)):e==="none"?["all"].concat(i.slice(1).map(R6).map(z0)):e==="in"?T5(i[1],i.slice(2)):e==="!in"?z0(T5(i[1],i.slice(2))):e==="has"?X3(i[1]):e==="!has"?z0(X3(i[1])):e!=="within"||i;var r}function _3(i,e,r){switch(i){case"$type":return[`filter-type-${r}`,e];case"$id":return[`filter-id-${r}`,e];default:return[`filter-${r}`,i,e]}}function T5(i,e){if(e.length===0)return!1;switch(i){case"$type":return["filter-type-in",["literal",e]];case"$id":return["filter-id-in",["literal",e]];default:return e.length>200&&!e.some(r=>typeof r!=typeof e[0])?["filter-in-large",i,["literal",e.sort(F6)]]:["filter-in-small",i,["literal",e]]}}function X3(i){switch(i){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",i]}}function z0(i){return["!",i]}function B6(i){const e=typeof i;if(e==="number"||e==="boolean"||e==="string"||i==null)return JSON.stringify(i);if(Array.isArray(i)){let o="[";for(const h of i)o+=`${B6(h)},`;return`${o}]`}const r=Object.keys(i).sort();let a="{";for(let o=0;oa.maximum?[new z1(e,r,`${r} is greater than the maximum value ${a.maximum}`)]:[]}function N6(i){const e=i.valueSpec,r=f2(i.value.type);let a,o,h,p={};const m=r!=="categorical"&&i.value.property===void 0,_=!m,x=j4(i.value.stops)==="array"&&j4(i.value.stops[0])==="array"&&j4(i.value.stops[0][0])==="object",S=u7({key:i.key,value:i.value,valueSpec:i.styleSpec.function,validateSpec:i.validateSpec,style:i.style,styleSpec:i.styleSpec,objectElementValidators:{stops:function(z){if(r==="identity")return[new z1(z.key,z.value,'identity function may not have a "stops" property')];let L=[];const B=z.value;return L=L.concat(v3({key:z.key,value:B,valueSpec:z.valueSpec,validateSpec:z.validateSpec,style:z.style,styleSpec:z.styleSpec,arrayElementValidator:E})),j4(B)==="array"&&B.length===0&&L.push(new z1(z.key,B,"array must have at least one stop")),L},default:function(z){return z.validateSpec({key:z.key,value:z.value,valueSpec:e,validateSpec:z.validateSpec,style:z.style,styleSpec:z.styleSpec})}}});return r==="identity"&&m&&S.push(new z1(i.key,i.value,'missing required property "property"')),r==="identity"||i.value.stops||S.push(new z1(i.key,i.value,'missing required property "stops"')),r==="exponential"&&i.valueSpec.expression&&!t5(i.valueSpec)&&S.push(new z1(i.key,i.value,"exponential functions not supported")),i.styleSpec.$version>=8&&(_&&!G3(i.valueSpec)?S.push(new z1(i.key,i.value,"property functions not supported")):m&&!P0(i.valueSpec)&&S.push(new z1(i.key,i.value,"zoom functions not supported"))),r!=="categorical"&&!x||i.value.property!==void 0||S.push(new z1(i.key,i.value,'"property" property is required')),S;function E(z){let L=[];const B=z.value,Z=z.key;if(j4(B)!=="array")return[new z1(Z,B,`array expected, ${j4(B)} found`)];if(B.length!==2)return[new z1(Z,B,`array length 2 expected, length ${B.length} found`)];if(x){if(j4(B[0])!=="object")return[new z1(Z,B,`object expected, ${j4(B[0])} found`)];if(B[0].zoom===void 0)return[new z1(Z,B,"object stop key must have zoom")];if(B[0].value===void 0)return[new z1(Z,B,"object stop key must have value")];if(h&&h>f2(B[0].zoom))return[new z1(Z,B[0].zoom,"stop zoom values must appear in ascending order")];f2(B[0].zoom)!==h&&(h=f2(B[0].zoom),o=void 0,p={}),L=L.concat(u7({key:`${Z}[0]`,value:B[0],valueSpec:{zoom:{}},validateSpec:z.validateSpec,style:z.style,styleSpec:z.styleSpec,objectElementValidators:{zoom:L0,value:P}}))}else L=L.concat(P({key:`${Z}[0]`,value:B[0],valueSpec:{},validateSpec:z.validateSpec,style:z.style,styleSpec:z.styleSpec},B));return s3(K3(B[1]))?L.concat([new z1(`${Z}[1]`,B[1],"expressions are not allowed in function stops.")]):L.concat(z.validateSpec({key:`${Z}[1]`,value:B[1],valueSpec:e,validateSpec:z.validateSpec,style:z.style,styleSpec:z.styleSpec}))}function P(z,L){const B=j4(z.value),Z=f2(z.value),X=z.value!==null?z.value:L;if(a){if(B!==a)return[new z1(z.key,X,`${B} stop domain type must match previous stop domain type ${a}`)]}else a=B;if(B!=="number"&&B!=="string"&&B!=="boolean")return[new z1(z.key,X,"stop domain value must be a number, string, or boolean")];if(B!=="number"&&r!=="categorical"){let s1=`number expected, ${B} found`;return G3(e)&&r===void 0&&(s1+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new z1(z.key,X,s1)]}return r!=="categorical"||B!=="number"||isFinite(Z)&&Math.floor(Z)===Z?r!=="categorical"&&B==="number"&&o!==void 0&&Znew z1(`${i.key}${a.key}`,i.value,a.message));const r=e.value.expression||e.value._styleExpression.expression;if(i.expressionContext==="property"&&i.propertyKey==="text-font"&&!r.outputDefined())return[new z1(i.key,i.value,`Invalid data expression for "${i.propertyKey}". Output values must be contained as literals within the expression.`)];if(i.expressionContext==="property"&&i.propertyType==="layout"&&!C0(r))return[new z1(i.key,i.value,'"feature-state" data expressions are not supported with layout properties.')];if(i.expressionContext==="filter"&&!C0(r))return[new z1(i.key,i.value,'"feature-state" data expressions are not supported with filters.')];if(i.expressionContext&&i.expressionContext.indexOf("cluster")===0){if(!b6(r,["zoom","feature-state"]))return[new z1(i.key,i.value,'"zoom" and "feature-state" expressions are not supported with cluster properties.')];if(i.expressionContext==="cluster-initial"&&!Q4(r))return[new z1(i.key,i.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function y1(i){const e=i.key,r=i.value,a=i.valueSpec,o=[];return Array.isArray(a.values)?a.values.indexOf(f2(r))===-1&&o.push(new z1(e,r,`expected one of [${a.values.join(", ")}], ${JSON.stringify(r)} found`)):Object.keys(a.values).indexOf(f2(r))===-1&&o.push(new z1(e,r,`expected one of [${Object.keys(a.values).join(", ")}], ${JSON.stringify(r)} found`)),o}function N1(i){return t6(K3(i.value))?l1(P7({},i,{expressionContext:"filter",valueSpec:{value:"boolean"}})):l4(i)}function l4(i){const e=i.value,r=i.key;if(j4(e)!=="array")return[new z1(r,e,`array expected, ${j4(e)} found`)];const a=i.styleSpec;let o,h=[];if(e.length<1)return[new z1(r,e,"filter array must have at least 1 element")];switch(h=h.concat(y1({key:`${r}[0]`,value:e[0],valueSpec:a.filter_operator,style:i.style,styleSpec:i.styleSpec})),f2(e[0])){case"<":case"<=":case">":case">=":e.length>=2&&f2(e[1])==="$type"&&h.push(new z1(r,e,`"$type" cannot be use with operator "${e[0]}"`));case"==":case"!=":e.length!==3&&h.push(new z1(r,e,`filter array for operator "${e[0]}" must have 3 elements`));case"in":case"!in":e.length>=2&&(o=j4(e[1]),o!=="string"&&h.push(new z1(`${r}[1]`,e[1],`string expected, ${o} found`)));for(let p=2;p{x in r&&e.push(new z1(a,r[x],`"${x}" is prohibited for ref layers`))}),o.layers.forEach(x=>{f2(x.id)===m&&(_=x)}),_?_.ref?e.push(new z1(a,r.ref,"ref cannot reference another ref layer")):p=f2(_.type):e.push(new z1(a,r.ref,`ref layer "${m}" not found`))}else if(p!=="background")if(r.source){const _=o.sources&&o.sources[r.source],x=_&&f2(_.type);_?x==="vector"&&p==="raster"?e.push(new z1(a,r.source,`layer "${r.id}" requires a raster source`)):x!=="raster-dem"&&p==="hillshade"?e.push(new z1(a,r.source,`layer "${r.id}" requires a raster-dem source`)):x==="raster"&&p!=="raster"?e.push(new z1(a,r.source,`layer "${r.id}" requires a vector source`)):x!=="vector"||r["source-layer"]?x==="raster-dem"&&p!=="hillshade"?e.push(new z1(a,r.source,"raster-dem source can only be used with layer type 'hillshade'.")):p!=="line"||!r.paint||!r.paint["line-gradient"]||x==="geojson"&&_.lineMetrics||e.push(new z1(a,r,`layer "${r.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):e.push(new z1(a,r,`layer "${r.id}" must specify a "source-layer"`)):e.push(new z1(a,r.source,`source "${r.source}" not found`))}else e.push(new z1(a,r,'missing required property "source"'));return e=e.concat(u7({key:a,value:r,valueSpec:h.layer,style:i.style,styleSpec:i.styleSpec,validateSpec:i.validateSpec,objectElementValidators:{"*":()=>[],type:()=>i.validateSpec({key:`${a}.type`,value:r.type,valueSpec:h.layer.type,style:i.style,styleSpec:i.styleSpec,validateSpec:i.validateSpec,object:r,objectKey:"type"}),filter:N1,layout:_=>u7({layer:r,key:_.key,value:_.value,style:_.style,styleSpec:_.styleSpec,validateSpec:_.validateSpec,objectElementValidators:{"*":x=>x2(P7({layerType:p},x))}}),paint:_=>u7({layer:r,key:_.key,value:_.value,style:_.style,styleSpec:_.styleSpec,validateSpec:_.validateSpec,objectElementValidators:{"*":x=>R4(P7({layerType:p},x))}})}})),e}function k2(i){const e=i.value,r=i.key,a=j4(e);return a!=="string"?[new z1(r,e,`string expected, ${a} found`)]:[]}const b2={promoteId:function({key:i,value:e}){if(j4(e)==="string")return k2({key:i,value:e});{const r=[];for(const a in e)r.push(...k2({key:`${i}.${a}`,value:e[a]}));return r}}};function W4(i){const e=i.value,r=i.key,a=i.styleSpec,o=i.style,h=i.validateSpec;if(!e.type)return[new z1(r,e,'"type" is required')];const p=f2(e.type);let m;switch(p){case"vector":case"raster":return m=u7({key:r,value:e,valueSpec:a[`source_${p.replace("-","_")}`],style:i.style,styleSpec:a,objectElementValidators:b2,validateSpec:h}),m;case"raster-dem":return m=function(_){var x;const S=(x=_.sourceName)!==null&&x!==void 0?x:"",E=_.value,P=_.styleSpec,z=P.source_raster_dem,L=_.style;let B=[];const Z=j4(E);if(E===void 0)return B;if(Z!=="object")return B.push(new z1("source_raster_dem",E,`object expected, ${Z} found`)),B;const X=f2(E.encoding)==="custom",s1=["redFactor","greenFactor","blueFactor","baseShift"],Y=_.value.encoding?`"${_.value.encoding}"`:"Default";for(const c1 in E)!X&&s1.includes(c1)?B.push(new z1(c1,E[c1],`In "${S}": "${c1}" is only valid when "encoding" is set to "custom". ${Y} encoding found`)):z[c1]?B=B.concat(_.validateSpec({key:c1,value:E[c1],valueSpec:z[c1],validateSpec:_.validateSpec,style:L,styleSpec:P})):B.push(new z1(c1,E[c1],`unknown property "${c1}"`));return B}({sourceName:r,value:e,style:i.style,styleSpec:a,validateSpec:h}),m;case"geojson":if(m=u7({key:r,value:e,valueSpec:a.source_geojson,style:o,styleSpec:a,validateSpec:h,objectElementValidators:b2}),e.cluster)for(const _ in e.clusterProperties){const[x,S]=e.clusterProperties[_],E=typeof x=="string"?[x,["accumulated"],["get",_]]:x;m.push(...l1({key:`${r}.${_}.map`,value:S,validateSpec:h,expressionContext:"cluster-map"})),m.push(...l1({key:`${r}.${_}.reduce`,value:E,validateSpec:h,expressionContext:"cluster-reduce"}))}return m;case"video":return u7({key:r,value:e,valueSpec:a.source_video,style:o,validateSpec:h,styleSpec:a});case"image":return u7({key:r,value:e,valueSpec:a.source_image,style:o,validateSpec:h,styleSpec:a});case"canvas":return[new z1(r,null,"Please use runtime APIs to add canvas sources, rather than including them in stylesheets.","source.canvas")];default:return y1({key:`${r}.type`,value:e.type,valueSpec:{values:["vector","raster","raster-dem","geojson","video","image"]},style:o,validateSpec:h,styleSpec:a})}}function b7(i){const e=i.value,r=i.styleSpec,a=r.light,o=i.style;let h=[];const p=j4(e);if(e===void 0)return h;if(p!=="object")return h=h.concat([new z1("light",e,`object expected, ${p} found`)]),h;for(const m in e){const _=m.match(/^(.*)-transition$/);h=h.concat(_&&a[_[1]]&&a[_[1]].transition?i.validateSpec({key:m,value:e[m],valueSpec:r.transition,validateSpec:i.validateSpec,style:o,styleSpec:r}):a[m]?i.validateSpec({key:m,value:e[m],valueSpec:a[m],validateSpec:i.validateSpec,style:o,styleSpec:r}):[new z1(m,e[m],`unknown property "${m}"`)])}return h}function x3(i){const e=i.value,r=i.styleSpec,a=r.terrain,o=i.style;let h=[];const p=j4(e);if(e===void 0)return h;if(p!=="object")return h=h.concat([new z1("terrain",e,`object expected, ${p} found`)]),h;for(const m in e)h=h.concat(a[m]?i.validateSpec({key:m,value:e[m],valueSpec:a[m],validateSpec:i.validateSpec,style:o,styleSpec:r}):[new z1(m,e[m],`unknown property "${m}"`)]);return h}function o7(i){let e=[];const r=i.value,a=i.key;if(Array.isArray(r)){const o=[],h=[];for(const p in r)r[p].id&&o.includes(r[p].id)&&e.push(new z1(a,r,`all the sprites' ids must be unique, but ${r[p].id} is duplicated`)),o.push(r[p].id),r[p].url&&h.includes(r[p].url)&&e.push(new z1(a,r,`all the sprites' URLs must be unique, but ${r[p].url} is duplicated`)),h.push(r[p].url),e=e.concat(u7({key:`${a}[${p}]`,value:r[p],valueSpec:{id:{type:"string",required:!0},url:{type:"string",required:!0}},validateSpec:i.validateSpec}));return e}return k2({key:a,value:r})}const b3={"*":()=>[],array:v3,boolean:function(i){const e=i.value,r=i.key,a=j4(e);return a!=="boolean"?[new z1(r,e,`boolean expected, ${a} found`)]:[]},number:L0,color:function(i){const e=i.key,r=i.value,a=j4(r);return a!=="string"?[new z1(e,r,`color expected, ${a} found`)]:G4.parse(String(r))?[]:[new z1(e,r,`color expected, "${r}" found`)]},constants:O6,enum:y1,filter:N1,function:N6,layer:E2,object:u7,source:W4,light:b7,terrain:x3,string:k2,formatted:function(i){return k2(i).length===0?[]:l1(i)},resolvedImage:function(i){return k2(i).length===0?[]:l1(i)},padding:function(i){const e=i.key,r=i.value;if(j4(r)==="array"){if(r.length<1||r.length>4)return[new z1(e,r,`padding requires 1 to 4 values; ${r.length} values found`)];const a={type:"number"};let o=[];for(let h=0;h[]}})),i.constants&&(r=r.concat(O6({key:"constants",value:i.constants,style:i,styleSpec:e,validateSpec:w7}))),r6(r)}function k7(i){return function(e){return i({...e,validateSpec:w7})}}function r6(i){return[].concat(i).sort((e,r)=>e.line-r.line)}function A3(i){return function(...e){return r6(i.apply(this,e))}}H2.source=A3(k7(W4)),H2.sprite=A3(k7(o7)),H2.glyphs=A3(k7(i6)),H2.light=A3(k7(b7)),H2.terrain=A3(k7(x3)),H2.layer=A3(k7(E2)),H2.filter=A3(k7(N1)),H2.paintProperty=A3(k7(R4)),H2.layoutProperty=A3(k7(x2));const k3=H2,t2=k3.light,X4=k3.paintProperty,n6=k3.layoutProperty;function o3(i,e){let r=!1;if(e&&e.length)for(const a of e)i.fire(new V3(new Error(a.message))),r=!0;return r}class J3{constructor(e,r,a){const o=this.cells=[];if(e instanceof ArrayBuffer){this.arrayBuffer=e;const p=new Int32Array(this.arrayBuffer);e=p[0],this.d=(r=p[1])+2*(a=p[2]);for(let _=0;_=E[L+0]&&o>=E[L+1])?(m[z]=!0,p.push(S[z])):m[z]=!1}}}}_forEachCell(e,r,a,o,h,p,m,_){const x=this._convertToCellCoord(e),S=this._convertToCellCoord(r),E=this._convertToCellCoord(a),P=this._convertToCellCoord(o);for(let z=x;z<=E;z++)for(let L=S;L<=P;L++){const B=this.d*L+z;if((!_||_(this._convertFromCellCoord(z),this._convertFromCellCoord(L),this._convertFromCellCoord(z+1),this._convertFromCellCoord(L+1)))&&h.call(this,e,r,a,o,B,p,m,_))return}}_convertFromCellCoord(e){return(e-this.padding)/this.scale}_convertToCellCoord(e){return Math.max(0,Math.min(this.d-1,Math.floor(e*this.scale)+this.padding))}toArrayBuffer(){if(this.arrayBuffer)return this.arrayBuffer;const e=this.cells,r=3+this.cells.length+1+1;let a=0;for(let p=0;p=0)continue;const p=i[h];o[h]=z2[a].shallow.indexOf(h)>=0?p:H7(p,e)}i instanceof Error&&(o.message=i.message)}if(o.$name)throw new Error("$name property is reserved for worker serialization logic.");return a!=="Object"&&(o.$name=a),o}throw new Error("can't serialize object of type "+typeof i)}function z3(i){if(i==null||typeof i=="boolean"||typeof i=="number"||typeof i=="string"||i instanceof Boolean||i instanceof Number||i instanceof String||i instanceof Date||i instanceof RegExp||i instanceof Blob||l3(i)||s0(i)||ArrayBuffer.isView(i)||i instanceof ImageData)return i;if(Array.isArray(i))return i.map(z3);if(typeof i=="object"){const e=i.$name||"Object";if(!z2[e])throw new Error(`can't deserialize unregistered class ${e}`);const{klass:r}=z2[e];if(!r)throw new Error(`can't deserialize unregistered class ${e}`);if(r.deserialize)return r.deserialize(i);const a=Object.create(r.prototype);for(const o of Object.keys(i)){if(o==="$name")continue;const h=i[o];a[o]=z2[e].shallow.indexOf(o)>=0?h:z3(h)}return a}throw new Error("can't deserialize object of type "+typeof i)}class g0{constructor(){this.first=!0}update(e,r){const a=Math.floor(e);return this.first?(this.first=!1,this.lastIntegerZoom=a,this.lastIntegerZoomTime=0,this.lastZoom=e,this.lastFloorZoom=a,!0):(this.lastFloorZoom>a?(this.lastIntegerZoom=a+1,this.lastIntegerZoomTime=r):this.lastFloorZoomi>=128&&i<=255,Arabic:i=>i>=1536&&i<=1791,"Arabic Supplement":i=>i>=1872&&i<=1919,"Arabic Extended-A":i=>i>=2208&&i<=2303,"Hangul Jamo":i=>i>=4352&&i<=4607,"Unified Canadian Aboriginal Syllabics":i=>i>=5120&&i<=5759,Khmer:i=>i>=6016&&i<=6143,"Unified Canadian Aboriginal Syllabics Extended":i=>i>=6320&&i<=6399,"General Punctuation":i=>i>=8192&&i<=8303,"Letterlike Symbols":i=>i>=8448&&i<=8527,"Number Forms":i=>i>=8528&&i<=8591,"Miscellaneous Technical":i=>i>=8960&&i<=9215,"Control Pictures":i=>i>=9216&&i<=9279,"Optical Character Recognition":i=>i>=9280&&i<=9311,"Enclosed Alphanumerics":i=>i>=9312&&i<=9471,"Geometric Shapes":i=>i>=9632&&i<=9727,"Miscellaneous Symbols":i=>i>=9728&&i<=9983,"Miscellaneous Symbols and Arrows":i=>i>=11008&&i<=11263,"CJK Radicals Supplement":i=>i>=11904&&i<=12031,"Kangxi Radicals":i=>i>=12032&&i<=12255,"Ideographic Description Characters":i=>i>=12272&&i<=12287,"CJK Symbols and Punctuation":i=>i>=12288&&i<=12351,Hiragana:i=>i>=12352&&i<=12447,Katakana:i=>i>=12448&&i<=12543,Bopomofo:i=>i>=12544&&i<=12591,"Hangul Compatibility Jamo":i=>i>=12592&&i<=12687,Kanbun:i=>i>=12688&&i<=12703,"Bopomofo Extended":i=>i>=12704&&i<=12735,"CJK Strokes":i=>i>=12736&&i<=12783,"Katakana Phonetic Extensions":i=>i>=12784&&i<=12799,"Enclosed CJK Letters and Months":i=>i>=12800&&i<=13055,"CJK Compatibility":i=>i>=13056&&i<=13311,"CJK Unified Ideographs Extension A":i=>i>=13312&&i<=19903,"Yijing Hexagram Symbols":i=>i>=19904&&i<=19967,"CJK Unified Ideographs":i=>i>=19968&&i<=40959,"Yi Syllables":i=>i>=40960&&i<=42127,"Yi Radicals":i=>i>=42128&&i<=42191,"Hangul Jamo Extended-A":i=>i>=43360&&i<=43391,"Hangul Syllables":i=>i>=44032&&i<=55215,"Hangul Jamo Extended-B":i=>i>=55216&&i<=55295,"Private Use Area":i=>i>=57344&&i<=63743,"CJK Compatibility Ideographs":i=>i>=63744&&i<=64255,"Arabic Presentation Forms-A":i=>i>=64336&&i<=65023,"Vertical Forms":i=>i>=65040&&i<=65055,"CJK Compatibility Forms":i=>i>=65072&&i<=65103,"Small Form Variants":i=>i>=65104&&i<=65135,"Arabic Presentation Forms-B":i=>i>=65136&&i<=65279,"Halfwidth and Fullwidth Forms":i=>i>=65280&&i<=65519};function V6(i){for(const e of i)if(F0(e.charCodeAt(0)))return!0;return!1}function D0(i){for(const e of i)if(!i5(e.charCodeAt(0)))return!1;return!0}function i5(i){return!(R1.Arabic(i)||R1["Arabic Supplement"](i)||R1["Arabic Extended-A"](i)||R1["Arabic Presentation Forms-A"](i)||R1["Arabic Presentation Forms-B"](i))}function F0(i){return!(i!==746&&i!==747&&(i<4352||!(R1["Bopomofo Extended"](i)||R1.Bopomofo(i)||R1["CJK Compatibility Forms"](i)&&!(i>=65097&&i<=65103)||R1["CJK Compatibility Ideographs"](i)||R1["CJK Compatibility"](i)||R1["CJK Radicals Supplement"](i)||R1["CJK Strokes"](i)||!(!R1["CJK Symbols and Punctuation"](i)||i>=12296&&i<=12305||i>=12308&&i<=12319||i===12336)||R1["CJK Unified Ideographs Extension A"](i)||R1["CJK Unified Ideographs"](i)||R1["Enclosed CJK Letters and Months"](i)||R1["Hangul Compatibility Jamo"](i)||R1["Hangul Jamo Extended-A"](i)||R1["Hangul Jamo Extended-B"](i)||R1["Hangul Jamo"](i)||R1["Hangul Syllables"](i)||R1.Hiragana(i)||R1["Ideographic Description Characters"](i)||R1.Kanbun(i)||R1["Kangxi Radicals"](i)||R1["Katakana Phonetic Extensions"](i)||R1.Katakana(i)&&i!==12540||!(!R1["Halfwidth and Fullwidth Forms"](i)||i===65288||i===65289||i===65293||i>=65306&&i<=65310||i===65339||i===65341||i===65343||i>=65371&&i<=65503||i===65507||i>=65512&&i<=65519)||!(!R1["Small Form Variants"](i)||i>=65112&&i<=65118||i>=65123&&i<=65126)||R1["Unified Canadian Aboriginal Syllabics"](i)||R1["Unified Canadian Aboriginal Syllabics Extended"](i)||R1["Vertical Forms"](i)||R1["Yijing Hexagram Symbols"](i)||R1["Yi Syllables"](i)||R1["Yi Radicals"](i))))}function a6(i){return!(F0(i)||function(e){return!!(R1["Latin-1 Supplement"](e)&&(e===167||e===169||e===174||e===177||e===188||e===189||e===190||e===215||e===247)||R1["General Punctuation"](e)&&(e===8214||e===8224||e===8225||e===8240||e===8241||e===8251||e===8252||e===8258||e===8263||e===8264||e===8265||e===8273)||R1["Letterlike Symbols"](e)||R1["Number Forms"](e)||R1["Miscellaneous Technical"](e)&&(e>=8960&&e<=8967||e>=8972&&e<=8991||e>=8996&&e<=9e3||e===9003||e>=9085&&e<=9114||e>=9150&&e<=9165||e===9167||e>=9169&&e<=9179||e>=9186&&e<=9215)||R1["Control Pictures"](e)&&e!==9251||R1["Optical Character Recognition"](e)||R1["Enclosed Alphanumerics"](e)||R1["Geometric Shapes"](e)||R1["Miscellaneous Symbols"](e)&&!(e>=9754&&e<=9759)||R1["Miscellaneous Symbols and Arrows"](e)&&(e>=11026&&e<=11055||e>=11088&&e<=11097||e>=11192&&e<=11243)||R1["CJK Symbols and Punctuation"](e)||R1.Katakana(e)||R1["Private Use Area"](e)||R1["CJK Compatibility Forms"](e)||R1["Small Form Variants"](e)||R1["Halfwidth and Fullwidth Forms"](e)||e===8734||e===8756||e===8757||e>=9984&&e<=10087||e>=10102&&e<=10131||e===65532||e===65533)}(i))}function r5(i){return i>=1424&&i<=2303||R1["Arabic Presentation Forms-A"](i)||R1["Arabic Presentation Forms-B"](i)}function s6(i,e){return!(!e&&r5(i)||i>=2304&&i<=3583||i>=3840&&i<=4255||R1.Khmer(i))}function U6(i){for(const e of i)if(r5(e.charCodeAt(0)))return!0;return!1}const $5="deferred",q5="loading",G5="loaded";let Z5=null,W7="unavailable",R0=null;const n5=function(i){i&&typeof i=="string"&&i.indexOf("NetworkError")>-1&&(W7="error"),Z5&&Z5(i)};function H5(){a5.fire(new E3("pluginStateChange",{pluginStatus:W7,pluginURL:R0}))}const a5=new l0,W5=function(){return W7},k9=function(){if(W7!==$5||!R0)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");W7=q5,H5(),R0&&G0({url:R0},i=>{i?n5(i):(W7=G5,H5())})},c3={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:()=>W7===G5||c3.applyArabicShaping!=null,isLoading:()=>W7===q5,setState(i){if(!m7())throw new Error("Cannot set the state of the rtl-text-plugin when not in the web-worker context");W7=i.pluginStatus,R0=i.pluginURL},isParsed(){if(!m7())throw new Error("rtl-text-plugin is only parsed on the worker-threads");return c3.applyArabicShaping!=null&&c3.processBidirectionalText!=null&&c3.processStyledBidirectionalText!=null},getPluginURL(){if(!m7())throw new Error("rtl-text-plugin url can only be queried from the worker threads");return R0}};class m2{constructor(e,r){this.zoom=e,r?(this.now=r.now,this.fadeDuration=r.fadeDuration,this.zoomHistory=r.zoomHistory,this.transition=r.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new g0,this.transition={})}isSupportedScript(e){return function(r,a){for(const o of r)if(!s6(o.charCodeAt(0),a))return!1;return!0}(e,c3.isLoaded())}crossFadingFactor(){return this.fadeDuration===0?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)}getCrossfadeParameters(){const e=this.zoom,r=e-Math.floor(e),a=this.crossFadingFactor();return e>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:r+(1-r)*a}:{fromScale:.5,toScale:1,t:1-(1-a)*r}}}class I5{constructor(e,r){this.property=e,this.value=r,this.expression=function(a,o){if(p2(a))return new k0(a,o);if(s3(a)){const h=L6(a,o);if(h.result==="error")throw new Error(h.value.map(p=>`${p.key}: ${p.message}`).join(", "));return h.value}{let h=a;return o.type==="color"&&typeof a=="string"?h=G4.parse(a):o.type!=="padding"||typeof a!="number"&&!Array.isArray(a)?o.type==="variableAnchorOffsetCollection"&&Array.isArray(a)&&(h=j2.parse(a)):h=s7.parse(a),{kind:"constant",evaluate:()=>h}}}(r===void 0?e.specification.default:r,e.specification)}isDataDriven(){return this.expression.kind==="source"||this.expression.kind==="composite"}possiblyEvaluate(e,r,a){return this.property.possiblyEvaluate(this,e,r,a)}}class X5{constructor(e){this.property=e,this.value=new I5(e,void 0)}transitioned(e,r){return new L9(this.property,this.value,r,U2({},e.transition,this.transition),e.now)}untransitioned(){return new L9(this.property,this.value,null,{},0)}}class z9{constructor(e){this._properties=e,this._values=Object.create(e.defaultTransitionablePropertyValues)}getValue(e){return S2(this._values[e].value.value)}setValue(e,r){Object.prototype.hasOwnProperty.call(this._values,e)||(this._values[e]=new X5(this._values[e].property)),this._values[e].value=new I5(this._values[e].property,r===null?void 0:S2(r))}getTransition(e){return S2(this._values[e].transition)}setTransition(e,r){Object.prototype.hasOwnProperty.call(this._values,e)||(this._values[e]=new X5(this._values[e].property)),this._values[e].transition=S2(r)||void 0}serialize(){const e={};for(const r of Object.keys(this._values)){const a=this.getValue(r);a!==void 0&&(e[r]=a);const o=this.getTransition(r);o!==void 0&&(e[`${r}-transition`]=o)}return e}transitioned(e,r){const a=new D9(this._properties);for(const o of Object.keys(this._values))a._values[o]=this._values[o].transitioned(e,r._values[o]);return a}untransitioned(){const e=new D9(this._properties);for(const r of Object.keys(this._values))e._values[r]=this._values[r].untransitioned();return e}}class L9{constructor(e,r,a,o,h){this.property=e,this.value=r,this.begin=h+o.delay||0,this.end=this.begin+o.duration||0,e.specification.transition&&(o.delay||o.duration)&&(this.prior=a)}possiblyEvaluate(e,r,a){const o=e.now||0,h=this.value.possiblyEvaluate(e,r,a),p=this.prior;if(p){if(o>this.end)return this.prior=null,h;if(this.value.isDataDriven())return this.prior=null,h;if(o=1)return 1;const x=_*_,S=x*_;return 4*(_<.5?S:3*(_-x)+S-.75)}(m))}}return h}}class D9{constructor(e){this._properties=e,this._values=Object.create(e.defaultTransitioningPropertyValues)}possiblyEvaluate(e,r,a){const o=new E5(this._properties);for(const h of Object.keys(this._values))o._values[h]=this._values[h].possiblyEvaluate(e,r,a);return o}hasTransition(){for(const e of Object.keys(this._values))if(this._values[e].prior)return!0;return!1}}class d8{constructor(e){this._properties=e,this._values=Object.create(e.defaultPropertyValues)}hasValue(e){return this._values[e].value!==void 0}getValue(e){return S2(this._values[e].value)}setValue(e,r){this._values[e]=new I5(this._values[e].property,r===null?void 0:S2(r))}serialize(){const e={};for(const r of Object.keys(this._values)){const a=this.getValue(r);a!==void 0&&(e[r]=a)}return e}possiblyEvaluate(e,r,a){const o=new E5(this._properties);for(const h of Object.keys(this._values))o._values[h]=this._values[h].possiblyEvaluate(e,r,a);return o}}class z7{constructor(e,r,a){this.property=e,this.value=r,this.parameters=a}isConstant(){return this.value.kind==="constant"}constantOr(e){return this.value.kind==="constant"?this.value.value:e}evaluate(e,r,a,o){return this.property.evaluate(this.value,this.parameters,e,r,a,o)}}class E5{constructor(e){this._properties=e,this._values=Object.create(e.defaultPossiblyEvaluatedValues)}get(e){return this._values[e]}}class a4{constructor(e){this.specification=e}possiblyEvaluate(e,r){if(e.isDataDriven())throw new Error("Value should not be data driven");return e.expression.evaluate(r)}interpolate(e,r,a){const o=c7[this.specification.type];return o?o(e,r,a):e}}class d4{constructor(e,r){this.specification=e,this.overrides=r}possiblyEvaluate(e,r,a,o){return new z7(this,e.expression.kind==="constant"||e.expression.kind==="camera"?{kind:"constant",value:e.expression.evaluate(r,null,{},a,o)}:e.expression,r)}interpolate(e,r,a){if(e.value.kind!=="constant"||r.value.kind!=="constant")return e;if(e.value.value===void 0||r.value.value===void 0)return new z7(this,{kind:"constant",value:void 0},e.parameters);const o=c7[this.specification.type];if(o){const h=o(e.value.value,r.value.value,a);return new z7(this,{kind:"constant",value:h},e.parameters)}return e}evaluate(e,r,a,o,h,p){return e.kind==="constant"?e.value:e.evaluate(r,a,o,h,p)}}class s5 extends d4{possiblyEvaluate(e,r,a,o){if(e.value===void 0)return new z7(this,{kind:"constant",value:void 0},r);if(e.expression.kind==="constant"){const h=e.expression.evaluate(r,null,{},a,o),p=e.property.specification.type==="resolvedImage"&&typeof h!="string"?h.name:h,m=this._calculate(p,p,p,r);return new z7(this,{kind:"constant",value:m},r)}if(e.expression.kind==="camera"){const h=this._calculate(e.expression.evaluate({zoom:r.zoom-1}),e.expression.evaluate({zoom:r.zoom}),e.expression.evaluate({zoom:r.zoom+1}),r);return new z7(this,{kind:"constant",value:h},r)}return new z7(this,e.expression,r)}evaluate(e,r,a,o,h,p){if(e.kind==="source"){const m=e.evaluate(r,a,o,h,p);return this._calculate(m,m,m,r)}return e.kind==="composite"?this._calculate(e.evaluate({zoom:Math.floor(r.zoom)-1},a,o),e.evaluate({zoom:Math.floor(r.zoom)},a,o),e.evaluate({zoom:Math.floor(r.zoom)+1},a,o),r):e.value}_calculate(e,r,a,o){return o.zoom>o.zoomHistory.lastIntegerZoom?{from:e,to:r}:{from:a,to:r}}interpolate(e){return e}}class K5{constructor(e){this.specification=e}possiblyEvaluate(e,r,a,o){if(e.value!==void 0){if(e.expression.kind==="constant"){const h=e.expression.evaluate(r,null,{},a,o);return this._calculate(h,h,h,r)}return this._calculate(e.expression.evaluate(new m2(Math.floor(r.zoom-1),r)),e.expression.evaluate(new m2(Math.floor(r.zoom),r)),e.expression.evaluate(new m2(Math.floor(r.zoom+1),r)),r)}}_calculate(e,r,a,o){return o.zoom>o.zoomHistory.lastIntegerZoom?{from:e,to:r}:{from:a,to:r}}interpolate(e){return e}}class J5{constructor(e){this.specification=e}possiblyEvaluate(e,r,a,o){return!!e.expression.evaluate(r,null,{},a,o)}interpolate(){return!1}}class O2{constructor(e){this.properties=e,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];for(const r in e){const a=e[r];a.specification.overridable&&this.overridableProperties.push(r);const o=this.defaultPropertyValues[r]=new I5(a,void 0),h=this.defaultTransitionablePropertyValues[r]=new X5(a);this.defaultTransitioningPropertyValues[r]=h.untransitioned(),this.defaultPossiblyEvaluatedValues[r]=o.possiblyEvaluate({})}}}$1("DataDrivenProperty",d4),$1("DataConstantProperty",a4),$1("CrossFadedDataDrivenProperty",s5),$1("CrossFadedProperty",K5),$1("ColorRampProperty",J5);const Y5="-transition";class w3 extends l0{constructor(e,r){if(super(),this.id=e.id,this.type=e.type,this._featureFilter={filter:()=>!0,needGeometry:!1},e.type!=="custom"&&(this.metadata=e.metadata,this.minzoom=e.minzoom,this.maxzoom=e.maxzoom,e.type!=="background"&&(this.source=e.source,this.sourceLayer=e["source-layer"],this.filter=e.filter),r.layout&&(this._unevaluatedLayout=new d8(r.layout)),r.paint)){this._transitionablePaint=new z9(r.paint);for(const a in e.paint)this.setPaintProperty(a,e.paint[a],{validate:!1});for(const a in e.layout)this.setLayoutProperty(a,e.layout[a],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new E5(r.paint)}}getCrossfadeParameters(){return this._crossfadeParameters}getLayoutProperty(e){return e==="visibility"?this.visibility:this._unevaluatedLayout.getValue(e)}setLayoutProperty(e,r,a={}){r!=null&&this._validate(n6,`layers.${this.id}.layout.${e}`,e,r,a)||(e!=="visibility"?this._unevaluatedLayout.setValue(e,r):this.visibility=r)}getPaintProperty(e){return e.endsWith(Y5)?this._transitionablePaint.getTransition(e.slice(0,-11)):this._transitionablePaint.getValue(e)}setPaintProperty(e,r,a={}){if(r!=null&&this._validate(X4,`layers.${this.id}.paint.${e}`,e,r,a))return!1;if(e.endsWith(Y5))return this._transitionablePaint.setTransition(e.slice(0,-11),r||void 0),!1;{const o=this._transitionablePaint._values[e],h=o.property.specification["property-type"]==="cross-faded-data-driven",p=o.value.isDataDriven(),m=o.value;this._transitionablePaint.setValue(e,r),this._handleSpecialPaintPropertyUpdate(e);const _=this._transitionablePaint._values[e].value;return _.isDataDriven()||p||h||this._handleOverridablePaintPropertyUpdate(e,m,_)}}_handleSpecialPaintPropertyUpdate(e){}_handleOverridablePaintPropertyUpdate(e,r,a){return!1}isHidden(e){return!!(this.minzoom&&e=this.maxzoom)||this.visibility==="none"}updateTransitions(e){this._transitioningPaint=this._transitionablePaint.transitioned(e,this._transitioningPaint)}hasTransition(){return this._transitioningPaint.hasTransition()}recalculate(e,r){e.getCrossfadeParameters&&(this._crossfadeParameters=e.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(e,void 0,r)),this.paint=this._transitioningPaint.possiblyEvaluate(e,void 0,r)}serialize(){const e={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(e.layout=e.layout||{},e.layout.visibility=this.visibility),a0(e,(r,a)=>!(r===void 0||a==="layout"&&!Object.keys(r).length||a==="paint"&&!Object.keys(r).length))}_validate(e,r,a,o,h={}){return(!h||h.validate!==!1)&&o3(this,e.call(k3,{key:r,layerType:this.type,objectKey:a,value:o,styleSpec:_1,style:{glyphs:!0,sprite:!0}}))}is3D(){return!1}isTileClipped(){return!1}hasOffscreenPass(){return!1}resize(){}isStateDependent(){for(const e in this.paint._values){const r=this.paint.get(e);if(r instanceof z7&&G3(r.property.specification)&&(r.value.kind==="source"||r.value.kind==="composite")&&r.value.isStateDependent)return!0}return!1}}const F9={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array};class o6{constructor(e,r){this._structArray=e,this._pos1=r*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8}}class C2{constructor(){this.isTransferred=!1,this.capacity=-1,this.resize(0)}static serialize(e,r){return e._trim(),r&&(e.isTransferred=!0,r.push(e.arrayBuffer)),{length:e.length,arrayBuffer:e.arrayBuffer}}static deserialize(e){const r=Object.create(this.prototype);return r.arrayBuffer=e.arrayBuffer,r.length=e.length,r.capacity=e.arrayBuffer.byteLength/r.bytesPerElement,r._refreshViews(),r}_trim(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())}clear(){this.length=0}resize(e){this.reserve(e),this.length=e}reserve(e){if(e>this.capacity){this.capacity=Math.max(e,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);const r=this.uint8;this._refreshViews(),r&&this.uint8.set(r)}}_refreshViews(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")}}function T2(i,e=1){let r=0,a=0;return{members:i.map(o=>{const h=F9[o.type].BYTES_PER_ELEMENT,p=r=j6(r,Math.max(e,h)),m=o.components||1;return a=Math.max(a,h),r+=h*m,{name:o.name,type:o.type,components:m,offset:p}}),size:j6(r,Math.max(a,e)),alignment:e}}function j6(i,e){return Math.ceil(i/e)*e}class o5 extends C2{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,r){const a=this.length;return this.resize(a+1),this.emplace(a,e,r)}emplace(e,r,a){const o=2*e;return this.int16[o+0]=r,this.int16[o+1]=a,e}}o5.prototype.bytesPerElement=4,$1("StructArrayLayout2i4",o5);class l5 extends C2{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,r,a){const o=this.length;return this.resize(o+1),this.emplace(o,e,r,a)}emplace(e,r,a,o){const h=3*e;return this.int16[h+0]=r,this.int16[h+1]=a,this.int16[h+2]=o,e}}l5.prototype.bytesPerElement=6,$1("StructArrayLayout3i6",l5);class l6 extends C2{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,r,a,o){const h=this.length;return this.resize(h+1),this.emplace(h,e,r,a,o)}emplace(e,r,a,o,h){const p=4*e;return this.int16[p+0]=r,this.int16[p+1]=a,this.int16[p+2]=o,this.int16[p+3]=h,e}}l6.prototype.bytesPerElement=8,$1("StructArrayLayout4i8",l6);class Q5 extends C2{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,r,a,o,h,p){const m=this.length;return this.resize(m+1),this.emplace(m,e,r,a,o,h,p)}emplace(e,r,a,o,h,p,m){const _=6*e;return this.int16[_+0]=r,this.int16[_+1]=a,this.int16[_+2]=o,this.int16[_+3]=h,this.int16[_+4]=p,this.int16[_+5]=m,e}}Q5.prototype.bytesPerElement=12,$1("StructArrayLayout2i4i12",Q5);class e9 extends C2{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,r,a,o,h,p){const m=this.length;return this.resize(m+1),this.emplace(m,e,r,a,o,h,p)}emplace(e,r,a,o,h,p,m){const _=4*e,x=8*e;return this.int16[_+0]=r,this.int16[_+1]=a,this.uint8[x+4]=o,this.uint8[x+5]=h,this.uint8[x+6]=p,this.uint8[x+7]=m,e}}e9.prototype.bytesPerElement=8,$1("StructArrayLayout2i4ub8",e9);class $6 extends C2{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,r){const a=this.length;return this.resize(a+1),this.emplace(a,e,r)}emplace(e,r,a){const o=2*e;return this.float32[o+0]=r,this.float32[o+1]=a,e}}$6.prototype.bytesPerElement=8,$1("StructArrayLayout2f8",$6);class t9 extends C2{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,r,a,o,h,p,m,_,x,S){const E=this.length;return this.resize(E+1),this.emplace(E,e,r,a,o,h,p,m,_,x,S)}emplace(e,r,a,o,h,p,m,_,x,S,E){const P=10*e;return this.uint16[P+0]=r,this.uint16[P+1]=a,this.uint16[P+2]=o,this.uint16[P+3]=h,this.uint16[P+4]=p,this.uint16[P+5]=m,this.uint16[P+6]=_,this.uint16[P+7]=x,this.uint16[P+8]=S,this.uint16[P+9]=E,e}}t9.prototype.bytesPerElement=20,$1("StructArrayLayout10ui20",t9);class i9 extends C2{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,r,a,o,h,p,m,_,x,S,E,P){const z=this.length;return this.resize(z+1),this.emplace(z,e,r,a,o,h,p,m,_,x,S,E,P)}emplace(e,r,a,o,h,p,m,_,x,S,E,P,z){const L=12*e;return this.int16[L+0]=r,this.int16[L+1]=a,this.int16[L+2]=o,this.int16[L+3]=h,this.uint16[L+4]=p,this.uint16[L+5]=m,this.uint16[L+6]=_,this.uint16[L+7]=x,this.int16[L+8]=S,this.int16[L+9]=E,this.int16[L+10]=P,this.int16[L+11]=z,e}}i9.prototype.bytesPerElement=24,$1("StructArrayLayout4i4ui4i24",i9);class K4 extends C2{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,r,a){const o=this.length;return this.resize(o+1),this.emplace(o,e,r,a)}emplace(e,r,a,o){const h=3*e;return this.float32[h+0]=r,this.float32[h+1]=a,this.float32[h+2]=o,e}}K4.prototype.bytesPerElement=12,$1("StructArrayLayout3f12",K4);class u extends C2{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(e){const r=this.length;return this.resize(r+1),this.emplace(r,e)}emplace(e,r){return this.uint32[1*e+0]=r,e}}u.prototype.bytesPerElement=4,$1("StructArrayLayout1ul4",u);class t extends C2{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,r,a,o,h,p,m,_,x){const S=this.length;return this.resize(S+1),this.emplace(S,e,r,a,o,h,p,m,_,x)}emplace(e,r,a,o,h,p,m,_,x,S){const E=10*e,P=5*e;return this.int16[E+0]=r,this.int16[E+1]=a,this.int16[E+2]=o,this.int16[E+3]=h,this.int16[E+4]=p,this.int16[E+5]=m,this.uint32[P+3]=_,this.uint16[E+8]=x,this.uint16[E+9]=S,e}}t.prototype.bytesPerElement=20,$1("StructArrayLayout6i1ul2ui20",t);class n extends C2{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,r,a,o,h,p){const m=this.length;return this.resize(m+1),this.emplace(m,e,r,a,o,h,p)}emplace(e,r,a,o,h,p,m){const _=6*e;return this.int16[_+0]=r,this.int16[_+1]=a,this.int16[_+2]=o,this.int16[_+3]=h,this.int16[_+4]=p,this.int16[_+5]=m,e}}n.prototype.bytesPerElement=12,$1("StructArrayLayout2i2i2i12",n);class s extends C2{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,r,a,o,h){const p=this.length;return this.resize(p+1),this.emplace(p,e,r,a,o,h)}emplace(e,r,a,o,h,p){const m=4*e,_=8*e;return this.float32[m+0]=r,this.float32[m+1]=a,this.float32[m+2]=o,this.int16[_+6]=h,this.int16[_+7]=p,e}}s.prototype.bytesPerElement=16,$1("StructArrayLayout2f1f2i16",s);class l extends C2{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,r,a,o){const h=this.length;return this.resize(h+1),this.emplace(h,e,r,a,o)}emplace(e,r,a,o,h){const p=12*e,m=3*e;return this.uint8[p+0]=r,this.uint8[p+1]=a,this.float32[m+1]=o,this.float32[m+2]=h,e}}l.prototype.bytesPerElement=12,$1("StructArrayLayout2ub2f12",l);class d extends C2{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,r,a){const o=this.length;return this.resize(o+1),this.emplace(o,e,r,a)}emplace(e,r,a,o){const h=3*e;return this.uint16[h+0]=r,this.uint16[h+1]=a,this.uint16[h+2]=o,e}}d.prototype.bytesPerElement=6,$1("StructArrayLayout3ui6",d);class g extends C2{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,r,a,o,h,p,m,_,x,S,E,P,z,L,B,Z,X){const s1=this.length;return this.resize(s1+1),this.emplace(s1,e,r,a,o,h,p,m,_,x,S,E,P,z,L,B,Z,X)}emplace(e,r,a,o,h,p,m,_,x,S,E,P,z,L,B,Z,X,s1){const Y=24*e,c1=12*e,p1=48*e;return this.int16[Y+0]=r,this.int16[Y+1]=a,this.uint16[Y+2]=o,this.uint16[Y+3]=h,this.uint32[c1+2]=p,this.uint32[c1+3]=m,this.uint32[c1+4]=_,this.uint16[Y+10]=x,this.uint16[Y+11]=S,this.uint16[Y+12]=E,this.float32[c1+7]=P,this.float32[c1+8]=z,this.uint8[p1+36]=L,this.uint8[p1+37]=B,this.uint8[p1+38]=Z,this.uint32[c1+10]=X,this.int16[Y+22]=s1,e}}g.prototype.bytesPerElement=48,$1("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",g);class y extends C2{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,r,a,o,h,p,m,_,x,S,E,P,z,L,B,Z,X,s1,Y,c1,p1,S1,H1,Y1,Z1,U1,L1,K1){const B1=this.length;return this.resize(B1+1),this.emplace(B1,e,r,a,o,h,p,m,_,x,S,E,P,z,L,B,Z,X,s1,Y,c1,p1,S1,H1,Y1,Z1,U1,L1,K1)}emplace(e,r,a,o,h,p,m,_,x,S,E,P,z,L,B,Z,X,s1,Y,c1,p1,S1,H1,Y1,Z1,U1,L1,K1,B1){const M1=32*e,s4=16*e;return this.int16[M1+0]=r,this.int16[M1+1]=a,this.int16[M1+2]=o,this.int16[M1+3]=h,this.int16[M1+4]=p,this.int16[M1+5]=m,this.int16[M1+6]=_,this.int16[M1+7]=x,this.uint16[M1+8]=S,this.uint16[M1+9]=E,this.uint16[M1+10]=P,this.uint16[M1+11]=z,this.uint16[M1+12]=L,this.uint16[M1+13]=B,this.uint16[M1+14]=Z,this.uint16[M1+15]=X,this.uint16[M1+16]=s1,this.uint16[M1+17]=Y,this.uint16[M1+18]=c1,this.uint16[M1+19]=p1,this.uint16[M1+20]=S1,this.uint16[M1+21]=H1,this.uint16[M1+22]=Y1,this.uint32[s4+12]=Z1,this.float32[s4+13]=U1,this.float32[s4+14]=L1,this.uint16[M1+30]=K1,this.uint16[M1+31]=B1,e}}y.prototype.bytesPerElement=64,$1("StructArrayLayout8i15ui1ul2f2ui64",y);class v extends C2{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e){const r=this.length;return this.resize(r+1),this.emplace(r,e)}emplace(e,r){return this.float32[1*e+0]=r,e}}v.prototype.bytesPerElement=4,$1("StructArrayLayout1f4",v);class w extends C2{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,r,a){const o=this.length;return this.resize(o+1),this.emplace(o,e,r,a)}emplace(e,r,a,o){const h=3*e;return this.uint16[6*e+0]=r,this.float32[h+1]=a,this.float32[h+2]=o,e}}w.prototype.bytesPerElement=12,$1("StructArrayLayout1ui2f12",w);class T extends C2{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,r,a){const o=this.length;return this.resize(o+1),this.emplace(o,e,r,a)}emplace(e,r,a,o){const h=4*e;return this.uint32[2*e+0]=r,this.uint16[h+2]=a,this.uint16[h+3]=o,e}}T.prototype.bytesPerElement=8,$1("StructArrayLayout1ul2ui8",T);class I extends C2{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,r){const a=this.length;return this.resize(a+1),this.emplace(a,e,r)}emplace(e,r,a){const o=2*e;return this.uint16[o+0]=r,this.uint16[o+1]=a,e}}I.prototype.bytesPerElement=4,$1("StructArrayLayout2ui4",I);class A extends C2{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e){const r=this.length;return this.resize(r+1),this.emplace(r,e)}emplace(e,r){return this.uint16[1*e+0]=r,e}}A.prototype.bytesPerElement=2,$1("StructArrayLayout1ui2",A);class N extends C2{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,r,a,o){const h=this.length;return this.resize(h+1),this.emplace(h,e,r,a,o)}emplace(e,r,a,o,h){const p=4*e;return this.float32[p+0]=r,this.float32[p+1]=a,this.float32[p+2]=o,this.float32[p+3]=h,e}}N.prototype.bytesPerElement=16,$1("StructArrayLayout4f16",N);class O extends o6{get anchorPointX(){return this._structArray.int16[this._pos2+0]}get anchorPointY(){return this._structArray.int16[this._pos2+1]}get x1(){return this._structArray.int16[this._pos2+2]}get y1(){return this._structArray.int16[this._pos2+3]}get x2(){return this._structArray.int16[this._pos2+4]}get y2(){return this._structArray.int16[this._pos2+5]}get featureIndex(){return this._structArray.uint32[this._pos4+3]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+8]}get bucketIndex(){return this._structArray.uint16[this._pos2+9]}get anchorPoint(){return new j1(this.anchorPointX,this.anchorPointY)}}O.prototype.size=20;class j extends t{get(e){return new O(this,e)}}$1("CollisionBoxArray",j);class R extends o6{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get glyphStartIndex(){return this._structArray.uint16[this._pos2+2]}get numGlyphs(){return this._structArray.uint16[this._pos2+3]}get vertexStartIndex(){return this._structArray.uint32[this._pos4+2]}get lineStartIndex(){return this._structArray.uint32[this._pos4+3]}get lineLength(){return this._structArray.uint32[this._pos4+4]}get segment(){return this._structArray.uint16[this._pos2+10]}get lowerSize(){return this._structArray.uint16[this._pos2+11]}get upperSize(){return this._structArray.uint16[this._pos2+12]}get lineOffsetX(){return this._structArray.float32[this._pos4+7]}get lineOffsetY(){return this._structArray.float32[this._pos4+8]}get writingMode(){return this._structArray.uint8[this._pos1+36]}get placedOrientation(){return this._structArray.uint8[this._pos1+37]}set placedOrientation(e){this._structArray.uint8[this._pos1+37]=e}get hidden(){return this._structArray.uint8[this._pos1+38]}set hidden(e){this._structArray.uint8[this._pos1+38]=e}get crossTileID(){return this._structArray.uint32[this._pos4+10]}set crossTileID(e){this._structArray.uint32[this._pos4+10]=e}get associatedIconIndex(){return this._structArray.int16[this._pos2+22]}}R.prototype.size=48;class n1 extends g{get(e){return new R(this,e)}}$1("PlacedSymbolArray",n1);class d1 extends o6{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get rightJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+2]}get centerJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+3]}get leftJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+4]}get verticalPlacedTextSymbolIndex(){return this._structArray.int16[this._pos2+5]}get placedIconSymbolIndex(){return this._structArray.int16[this._pos2+6]}get verticalPlacedIconSymbolIndex(){return this._structArray.int16[this._pos2+7]}get key(){return this._structArray.uint16[this._pos2+8]}get textBoxStartIndex(){return this._structArray.uint16[this._pos2+9]}get textBoxEndIndex(){return this._structArray.uint16[this._pos2+10]}get verticalTextBoxStartIndex(){return this._structArray.uint16[this._pos2+11]}get verticalTextBoxEndIndex(){return this._structArray.uint16[this._pos2+12]}get iconBoxStartIndex(){return this._structArray.uint16[this._pos2+13]}get iconBoxEndIndex(){return this._structArray.uint16[this._pos2+14]}get verticalIconBoxStartIndex(){return this._structArray.uint16[this._pos2+15]}get verticalIconBoxEndIndex(){return this._structArray.uint16[this._pos2+16]}get featureIndex(){return this._structArray.uint16[this._pos2+17]}get numHorizontalGlyphVertices(){return this._structArray.uint16[this._pos2+18]}get numVerticalGlyphVertices(){return this._structArray.uint16[this._pos2+19]}get numIconVertices(){return this._structArray.uint16[this._pos2+20]}get numVerticalIconVertices(){return this._structArray.uint16[this._pos2+21]}get useRuntimeCollisionCircles(){return this._structArray.uint16[this._pos2+22]}get crossTileID(){return this._structArray.uint32[this._pos4+12]}set crossTileID(e){this._structArray.uint32[this._pos4+12]=e}get textBoxScale(){return this._structArray.float32[this._pos4+13]}get collisionCircleDiameter(){return this._structArray.float32[this._pos4+14]}get textAnchorOffsetStartIndex(){return this._structArray.uint16[this._pos2+30]}get textAnchorOffsetEndIndex(){return this._structArray.uint16[this._pos2+31]}}d1.prototype.size=64;class H extends y{get(e){return new d1(this,e)}}$1("SymbolInstanceArray",H);class a1 extends v{getoffsetX(e){return this.float32[1*e+0]}}$1("GlyphOffsetArray",a1);class f1 extends l5{getx(e){return this.int16[3*e+0]}gety(e){return this.int16[3*e+1]}gettileUnitDistanceFromAnchor(e){return this.int16[3*e+2]}}$1("SymbolLineVertexArray",f1);class m1 extends o6{get textAnchor(){return this._structArray.uint16[this._pos2+0]}get textOffset0(){return this._structArray.float32[this._pos4+1]}get textOffset1(){return this._structArray.float32[this._pos4+2]}}m1.prototype.size=12;class w1 extends w{get(e){return new m1(this,e)}}$1("TextAnchorOffsetArray",w1);class P1 extends o6{get featureIndex(){return this._structArray.uint32[this._pos4+0]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+2]}get bucketIndex(){return this._structArray.uint16[this._pos2+3]}}P1.prototype.size=8;class E1 extends T{get(e){return new P1(this,e)}}$1("FeatureIndexArray",E1);class k1 extends o5{}class J1 extends o5{}class z4 extends o5{}class V1 extends Q5{}class p4 extends e9{}class t4 extends $6{}class e2 extends t9{}class M4 extends i9{}class T4 extends K4{}class L4 extends u{}class L2 extends n{}class o2 extends l{}class h7 extends d{}class W2 extends I{}const N2=T2([{name:"a_pos",components:2,type:"Int16"}],4),{members:u3}=N2;class g2{constructor(e=[]){this.segments=e}prepareSegment(e,r,a,o){let h=this.segments[this.segments.length-1];return e>g2.MAX_VERTEX_ARRAY_LENGTH&&P2(`Max vertices per segment is ${g2.MAX_VERTEX_ARRAY_LENGTH}: bucket requested ${e}`),(!h||h.vertexLength+e>g2.MAX_VERTEX_ARRAY_LENGTH||h.sortKey!==o)&&(h={vertexOffset:r.length,primitiveOffset:a.length,vertexLength:0,primitiveLength:0},o!==void 0&&(h.sortKey=o),this.segments.push(h)),h}get(){return this.segments}destroy(){for(const e of this.segments)for(const r in e.vaos)e.vaos[r].destroy()}static simpleSegment(e,r,a,o){return new g2([{vertexOffset:e,primitiveOffset:r,vertexLength:a,primitiveLength:o,vaos:{},sortKey:0}])}}function Y3(i,e){return 256*(i=O7(Math.floor(i),0,255))+O7(Math.floor(e),0,255)}g2.MAX_VERTEX_ARRAY_LENGTH=Math.pow(2,16)-1,$1("SegmentVector",g2);const Q3=T2([{name:"a_pattern_from",components:4,type:"Uint16"},{name:"a_pattern_to",components:4,type:"Uint16"},{name:"a_pixel_ratio_from",components:1,type:"Uint16"},{name:"a_pixel_ratio_to",components:1,type:"Uint16"}]);var B0={exports:{}},c6={exports:{}};c6.exports=function(i,e){var r,a,o,h,p,m,_,x;for(a=i.length-(r=3&i.length),o=e,p=3432918353,m=461845907,x=0;x>>16)*p&65535)<<16)&4294967295)<<15|_>>>17))*m+(((_>>>16)*m&65535)<<16)&4294967295)<<13|o>>>19))+((5*(o>>>16)&65535)<<16)&4294967295))+((58964+(h>>>16)&65535)<<16);switch(_=0,r){case 3:_^=(255&i.charCodeAt(x+2))<<16;case 2:_^=(255&i.charCodeAt(x+1))<<8;case 1:o^=_=(65535&(_=(_=(65535&(_^=255&i.charCodeAt(x)))*p+(((_>>>16)*p&65535)<<16)&4294967295)<<15|_>>>17))*m+(((_>>>16)*m&65535)<<16)&4294967295}return o^=i.length,o=2246822507*(65535&(o^=o>>>16))+((2246822507*(o>>>16)&65535)<<16)&4294967295,o=3266489909*(65535&(o^=o>>>13))+((3266489909*(o>>>16)&65535)<<16)&4294967295,(o^=o>>>16)>>>0};var q6=c6.exports,S7={exports:{}};S7.exports=function(i,e){for(var r,a=i.length,o=e^a,h=0;a>=4;)r=1540483477*(65535&(r=255&i.charCodeAt(h)|(255&i.charCodeAt(++h))<<8|(255&i.charCodeAt(++h))<<16|(255&i.charCodeAt(++h))<<24))+((1540483477*(r>>>16)&65535)<<16),o=1540483477*(65535&o)+((1540483477*(o>>>16)&65535)<<16)^(r=1540483477*(65535&(r^=r>>>24))+((1540483477*(r>>>16)&65535)<<16)),a-=4,++h;switch(a){case 3:o^=(255&i.charCodeAt(h+2))<<16;case 2:o^=(255&i.charCodeAt(h+1))<<8;case 1:o=1540483477*(65535&(o^=255&i.charCodeAt(h)))+((1540483477*(o>>>16)&65535)<<16)}return o=1540483477*(65535&(o^=o>>>13))+((1540483477*(o>>>16)&65535)<<16),(o^=o>>>15)>>>0};var d7=q6,L7=S7.exports;B0.exports=d7,B0.exports.murmur3=d7,B0.exports.murmur2=L7;var u6=r1(B0.exports);class D2{constructor(){this.ids=[],this.positions=[],this.indexed=!1}add(e,r,a,o){this.ids.push(X2(e)),this.positions.push(r,a,o)}getPositions(e){if(!this.indexed)throw new Error("Trying to get index, but feature positions are not indexed");const r=X2(e);let a=0,o=this.ids.length-1;for(;a>1;this.ids[p]>=r?o=p:a=p+1}const h=[];for(;this.ids[a]===r;)h.push({index:this.positions[3*a],start:this.positions[3*a+1],end:this.positions[3*a+2]}),a++;return h}static serialize(e,r){const a=new Float64Array(e.ids),o=new Uint32Array(e.positions);return X7(a,o,0,a.length-1),r&&r.push(a.buffer,o.buffer),{ids:a,positions:o}}static deserialize(e){const r=new D2;return r.ids=e.ids,r.positions=e.positions,r.indexed=!0,r}}function X2(i){const e=+i;return!isNaN(e)&&e<=Number.MAX_SAFE_INTEGER?e:u6(String(i))}function X7(i,e,r,a){for(;r>1];let h=r-1,p=a+1;for(;;){do h++;while(i[h]o);if(h>=p)break;F2(i,h,p),F2(e,3*h,3*p),F2(e,3*h+1,3*p+1),F2(e,3*h+2,3*p+2)}p-r`u_${o}`),this.type=a}setUniform(e,r,a){e.set(a.constantOr(this.value))}getBinding(e,r,a){return this.type==="color"?new B9(e,r):new C5(e,r)}}class d6{constructor(e,r){this.uniformNames=r.map(a=>`u_${a}`),this.patternFrom=null,this.patternTo=null,this.pixelRatioFrom=1,this.pixelRatioTo=1}setConstantPatternPositions(e,r){this.pixelRatioFrom=r.pixelRatio,this.pixelRatioTo=e.pixelRatio,this.patternFrom=r.tlbr,this.patternTo=e.tlbr}setUniform(e,r,a,o){const h=o==="u_pattern_to"?this.patternTo:o==="u_pattern_from"?this.patternFrom:o==="u_pixel_ratio_to"?this.pixelRatioTo:o==="u_pixel_ratio_from"?this.pixelRatioFrom:null;h&&e.set(h)}getBinding(e,r,a){return a.substr(0,9)==="u_pattern"?new R9(e,r):new C5(e,r)}}class t0{constructor(e,r,a,o){this.expression=e,this.type=a,this.maxValue=0,this.paintVertexAttributes=r.map(h=>({name:`a_${h}`,type:"Float32",components:a==="color"?2:1,offset:0})),this.paintVertexArray=new o}populatePaintArray(e,r,a,o,h){const p=this.paintVertexArray.length,m=this.expression.evaluate(new m2(0),r,{},o,[],h);this.paintVertexArray.resize(e),this._setPaintValue(p,e,m)}updatePaintArray(e,r,a,o){const h=this.expression.evaluate({zoom:0},a,o);this._setPaintValue(e,r,h)}_setPaintValue(e,r,a){if(this.type==="color"){const o=r9(a);for(let h=e;h`u_${m}_t`),this.type=a,this.useIntegerZoom=o,this.zoom=h,this.maxValue=0,this.paintVertexAttributes=r.map(m=>({name:`a_${m}`,type:"Float32",components:a==="color"?4:2,offset:0})),this.paintVertexArray=new p}populatePaintArray(e,r,a,o,h){const p=this.expression.evaluate(new m2(this.zoom),r,{},o,[],h),m=this.expression.evaluate(new m2(this.zoom+1),r,{},o,[],h),_=this.paintVertexArray.length;this.paintVertexArray.resize(e),this._setPaintValue(_,e,p,m)}updatePaintArray(e,r,a,o){const h=this.expression.evaluate({zoom:this.zoom},a,o),p=this.expression.evaluate({zoom:this.zoom+1},a,o);this._setPaintValue(e,r,h,p)}_setPaintValue(e,r,a,o){if(this.type==="color"){const h=r9(a),p=r9(o);for(let m=e;m`#define HAS_UNIFORM_${o}`))}return e}getBinderAttributes(){const e=[];for(const r in this.binders){const a=this.binders[r];if(a instanceof t0||a instanceof S3)for(let o=0;o!0){this.programConfigurations={};for(const o of e)this.programConfigurations[o.id]=new n9(o,r,a);this.needsUpload=!1,this._featureMap=new D2,this._bufferOffset=0}populatePaintArrays(e,r,a,o,h,p){for(const m in this.programConfigurations)this.programConfigurations[m].populatePaintArrays(e,r,o,h,p);r.id!==void 0&&this._featureMap.add(r.id,a,this._bufferOffset,e),this._bufferOffset=e,this.needsUpload=!0}updatePaintArrays(e,r,a,o){for(const h of a)this.needsUpload=this.programConfigurations[h.id].updatePaintArrays(e,this._featureMap,r,h,o)||this.needsUpload}get(e){return this.programConfigurations[e]}upload(e){if(this.needsUpload){for(const r in this.programConfigurations)this.programConfigurations[r].upload(e);this.needsUpload=!1}}destroy(){for(const e in this.programConfigurations)this.programConfigurations[e].destroy()}}function Oi(i,e){return{"text-opacity":["opacity"],"icon-opacity":["opacity"],"text-color":["fill_color"],"icon-color":["fill_color"],"text-halo-color":["halo_color"],"icon-halo-color":["halo_color"],"text-halo-blur":["halo_blur"],"icon-halo-blur":["halo_blur"],"text-halo-width":["halo_width"],"icon-halo-width":["halo_width"],"line-gap-width":["gapwidth"],"line-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-extrusion-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"]}[i]||[i.replace(`${e}-`,"").replace(/-/g,"_")]}function le(i,e,r){const a={color:{source:$6,composite:N},number:{source:v,composite:$6}},o=function(h){return{"line-pattern":{source:e2,composite:e2},"fill-pattern":{source:e2,composite:e2},"fill-extrusion-pattern":{source:e2,composite:e2}}[h]}(i);return o&&o[r]||a[e][r]}$1("ConstantBinder",e0),$1("CrossFadedConstantBinder",d6),$1("SourceExpressionBinder",t0),$1("CrossFadedCompositeBinder",i0),$1("CompositeExpressionBinder",S3),$1("ProgramConfiguration",n9,{omit:["_buffers"]}),$1("ProgramConfigurationSet",y0);const q2=8192,f8=Math.pow(2,14)-1,ce=-f8-1;function c5(i){const e=q2/i.extent,r=i.loadGeometry();for(let a=0;ap.x+1||_p.y+1)&&P2("Geometry exceeds allowed extent, reduce your vector tile buffer size")}}return r}function u5(i,e){return{type:i.type,id:i.id,properties:i.properties,geometry:e?c5(i):[]}}function O9(i,e,r,a,o){i.emplaceBack(2*e+(a+1)/2,2*r+(o+1)/2)}class m8{constructor(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map(r=>r.id),this.index=e.index,this.hasPattern=!1,this.layoutVertexArray=new J1,this.indexArray=new h7,this.segments=new g2,this.programConfigurations=new y0(e.layers,e.zoom),this.stateDependentLayerIds=this.layers.filter(r=>r.isStateDependent()).map(r=>r.id)}populate(e,r,a){const o=this.layers[0],h=[];let p=null,m=!1;o.type==="circle"&&(p=o.layout.get("circle-sort-key"),m=!p.isConstant());for(const{feature:_,id:x,index:S,sourceLayerIndex:E}of e){const P=this.layers[0]._featureFilter.needGeometry,z=u5(_,P);if(!this.layers[0]._featureFilter.filter(new m2(this.zoom),z,a))continue;const L=m?p.evaluate(z,{},a):void 0,B={id:x,properties:_.properties,type:_.type,sourceLayerIndex:E,index:S,geometry:P?z.geometry:c5(_),patterns:{},sortKey:L};h.push(B)}m&&h.sort((_,x)=>_.sortKey-x.sortKey);for(const _ of h){const{geometry:x,index:S,sourceLayerIndex:E}=_,P=e[S].feature;this.addFeature(_,x,S,a),r.featureIndex.insert(P,x,S,E,this.index)}}update(e,r,a){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,r,this.stateDependentLayers,a)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,u3),this.indexBuffer=e.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}addFeature(e,r,a,o){for(const h of r)for(const p of h){const m=p.x,_=p.y;if(m<0||m>=q2||_<0||_>=q2)continue;const x=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,e.sortKey),S=x.vertexLength;O9(this.layoutVertexArray,m,_,-1,-1),O9(this.layoutVertexArray,m,_,1,-1),O9(this.layoutVertexArray,m,_,1,1),O9(this.layoutVertexArray,m,_,-1,1),this.indexArray.emplaceBack(S,S+1,S+2),this.indexArray.emplaceBack(S,S+3,S+2),x.vertexLength+=4,x.primitiveLength+=2}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,a,{},o)}}function ue(i,e){for(let r=0;r1){if(g8(i,e))return!0;for(let a=0;a1?r:r.sub(e)._mult(o)._add(e))}function pe(i,e){let r,a,o,h=!1;for(let p=0;pe.y!=o.y>e.y&&e.x<(o.x-a.x)*(e.y-a.y)/(o.y-a.y)+a.x&&(h=!h)}return h}function P5(i,e){let r=!1;for(let a=0,o=i.length-1;ae.y!=p.y>e.y&&e.x<(p.x-h.x)*(e.y-h.y)/(p.y-h.y)+h.x&&(r=!r)}return r}function ji(i,e,r){const a=r[0],o=r[2];if(i.xo.x&&e.x>o.x||i.yo.y&&e.y>o.y)return!1;const h=f7(i,e,r[0]);return h!==f7(i,e,r[1])||h!==f7(i,e,r[2])||h!==f7(i,e,r[3])}function a9(i,e,r){const a=e.paint.get(i).value;return a.kind==="constant"?a.value:r.programConfigurations.get(e.id).getMaxValue(i)}function N9(i){return Math.sqrt(i[0]*i[0]+i[1]*i[1])}function V9(i,e,r,a,o){if(!e[0]&&!e[1])return i;const h=j1.convert(e)._mult(o);r==="viewport"&&h._rotate(-a);const p=[];for(let m=0;mye(Z,B))}(x,_),z=E?S*m:S;for(const L of o)for(const B of L){const Z=E?B:ye(B,_);let X=z;const s1=U9([],[B.x,B.y,0,1],_);if(this.paint.get("circle-pitch-scale")==="viewport"&&this.paint.get("circle-pitch-alignment")==="map"?X*=s1[3]/p.cameraToCenterDistance:this.paint.get("circle-pitch-scale")==="map"&&this.paint.get("circle-pitch-alignment")==="viewport"&&(X*=p.cameraToCenterDistance/s1[3]),Ni(P,Z,X))return!0}return!1}}function ye(i,e){const r=U9([],[i.x,i.y,0,1],e);return new j1(r[0]/r[3],r[1]/r[3])}class _e extends m8{}let ve;$1("HeatmapBucket",_e,{omit:["layers"]});var Zi={get paint(){return ve=ve||new O2({"heatmap-radius":new d4(_1.paint_heatmap["heatmap-radius"]),"heatmap-weight":new d4(_1.paint_heatmap["heatmap-weight"]),"heatmap-intensity":new a4(_1.paint_heatmap["heatmap-intensity"]),"heatmap-color":new J5(_1.paint_heatmap["heatmap-color"]),"heatmap-opacity":new a4(_1.paint_heatmap["heatmap-opacity"])})}};function v8(i,{width:e,height:r},a,o){if(o){if(o instanceof Uint8ClampedArray)o=new Uint8Array(o.buffer);else if(o.length!==e*r*a)throw new RangeError(`mismatched image size. expected: ${o.length} but got: ${e*r*a}`)}else o=new Uint8Array(e*r*a);return i.width=e,i.height=r,i.data=o,i}function xe(i,{width:e,height:r},a){if(e===i.width&&r===i.height)return;const o=v8({},{width:e,height:r},a);x8(i,o,{x:0,y:0},{x:0,y:0},{width:Math.min(i.width,e),height:Math.min(i.height,r)},a),i.width=e,i.height=r,i.data=o.data}function x8(i,e,r,a,o,h){if(o.width===0||o.height===0)return e;if(o.width>i.width||o.height>i.height||r.x>i.width-o.width||r.y>i.height-o.height)throw new RangeError("out of range source coordinates for image copy");if(o.width>e.width||o.height>e.height||a.x>e.width-o.width||a.y>e.height-o.height)throw new RangeError("out of range destination coordinates for image copy");const p=i.data,m=e.data;if(p===m)throw new Error("srcData equals dstData, so image is already copied");for(let _=0;_{e[i.evaluationKey]=_;const x=i.expression.evaluate(e);o.data[p+m+0]=Math.floor(255*x.r/x.a),o.data[p+m+1]=Math.floor(255*x.g/x.a),o.data[p+m+2]=Math.floor(255*x.b/x.a),o.data[p+m+3]=Math.floor(255*x.a)};if(i.clips)for(let p=0,m=0;p80*r){a=h=i[0],o=p=i[1];for(var L=r;Lh&&(h=m),_>p&&(p=_);x=(x=Math.max(h-a,p-o))!==0?32767/x:0}return l9(P,z,r,a,o,x,0),z}function Se(i,e,r,a,o){var h,p;if(o===T8(i,e,r,a)>0)for(h=e;h=e;h-=a)p=Ee(h,i[h],i[h+1],p);return p&&$9(p,p.next)&&(u9(p),p=p.next),p}function h5(i,e){if(!i)return i;e||(e=i);var r,a=i;do if(r=!1,a.steiner||!$9(a,a.next)&&V2(a.prev,a,a.next)!==0)a=a.next;else{if(u9(a),(a=e=a.prev)===a.next)break;r=!0}while(r||a!==e);return e}function l9(i,e,r,a,o,h,p){if(i){!p&&h&&function(S,E,P,z){var L=S;do L.z===0&&(L.z=w8(L.x,L.y,E,P,z)),L.prevZ=L.prev,L.nextZ=L.next,L=L.next;while(L!==S);L.prevZ.nextZ=null,L.prevZ=null,function(B){var Z,X,s1,Y,c1,p1,S1,H1,Y1=1;do{for(X=B,B=null,c1=null,p1=0;X;){for(p1++,s1=X,S1=0,Z=0;Z0||H1>0&&s1;)S1!==0&&(H1===0||!s1||X.z<=s1.z)?(Y=X,X=X.nextZ,S1--):(Y=s1,s1=s1.nextZ,H1--),c1?c1.nextZ=Y:B=Y,Y.prevZ=c1,c1=Y;X=s1}c1.nextZ=null,Y1*=2}while(p1>1)}(L)}(i,a,o,h);for(var m,_,x=i;i.prev!==i.next;)if(m=i.prev,_=i.next,h?Qi(i,a,o,h):Yi(i))e.push(m.i/r|0),e.push(i.i/r|0),e.push(_.i/r|0),u9(i),i=_.next,x=_.next;else if((i=_)===x){p?p===1?l9(i=er(h5(i),e,r),e,r,a,o,h,2):p===2&&tr(i,e,r,a,o,h):l9(h5(i),e,r,a,o,h,1);break}}}function Yi(i){var e=i.prev,r=i,a=i.next;if(V2(e,r,a)>=0)return!1;for(var o=e.x,h=r.x,p=a.x,m=e.y,_=r.y,x=a.y,S=oh?o>p?o:p:h>p?h:p,z=m>_?m>x?m:x:_>x?_:x,L=a.next;L!==e;){if(L.x>=S&&L.x<=P&&L.y>=E&&L.y<=z&&A5(o,m,h,_,p,x,L.x,L.y)&&V2(L.prev,L,L.next)>=0)return!1;L=L.next}return!0}function Qi(i,e,r,a){var o=i.prev,h=i,p=i.next;if(V2(o,h,p)>=0)return!1;for(var m=o.x,_=h.x,x=p.x,S=o.y,E=h.y,P=p.y,z=m<_?m_?m>x?m:x:_>x?_:x,Z=S>E?S>P?S:P:E>P?E:P,X=w8(z,L,e,r,a),s1=w8(B,Z,e,r,a),Y=i.prevZ,c1=i.nextZ;Y&&Y.z>=X&&c1&&c1.z<=s1;){if(Y.x>=z&&Y.x<=B&&Y.y>=L&&Y.y<=Z&&Y!==o&&Y!==p&&A5(m,S,_,E,x,P,Y.x,Y.y)&&V2(Y.prev,Y,Y.next)>=0||(Y=Y.prevZ,c1.x>=z&&c1.x<=B&&c1.y>=L&&c1.y<=Z&&c1!==o&&c1!==p&&A5(m,S,_,E,x,P,c1.x,c1.y)&&V2(c1.prev,c1,c1.next)>=0))return!1;c1=c1.nextZ}for(;Y&&Y.z>=X;){if(Y.x>=z&&Y.x<=B&&Y.y>=L&&Y.y<=Z&&Y!==o&&Y!==p&&A5(m,S,_,E,x,P,Y.x,Y.y)&&V2(Y.prev,Y,Y.next)>=0)return!1;Y=Y.prevZ}for(;c1&&c1.z<=s1;){if(c1.x>=z&&c1.x<=B&&c1.y>=L&&c1.y<=Z&&c1!==o&&c1!==p&&A5(m,S,_,E,x,P,c1.x,c1.y)&&V2(c1.prev,c1,c1.next)>=0)return!1;c1=c1.nextZ}return!0}function er(i,e,r){var a=i;do{var o=a.prev,h=a.next.next;!$9(o,h)&&Te(o,a,a.next,h)&&c9(o,h)&&c9(h,o)&&(e.push(o.i/r|0),e.push(a.i/r|0),e.push(h.i/r|0),u9(a),u9(a.next),a=i=h),a=a.next}while(a!==i);return h5(a)}function tr(i,e,r,a,o,h){var p=i;do{for(var m=p.next.next;m!==p.prev;){if(p.i!==m.i&&sr(p,m)){var _=Ie(p,m);return p=h5(p,p.next),_=h5(_,_.next),l9(p,e,r,a,o,h,0),void l9(_,e,r,a,o,h,0)}m=m.next}p=p.next}while(p!==i)}function ir(i,e){return i.x-e.x}function rr(i,e){var r=function(o,h){var p,m=h,_=o.x,x=o.y,S=-1/0;do{if(x<=m.y&&x>=m.next.y&&m.next.y!==m.y){var E=m.x+(x-m.y)*(m.next.x-m.x)/(m.next.y-m.y);if(E<=_&&E>S&&(S=E,p=m.x=m.x&&m.x>=L&&_!==m.x&&A5(xp.x||m.x===p.x&&nr(p,m)))&&(p=m,Z=P)),m=m.next;while(m!==z);return p}(i,e);if(!r)return e;var a=Ie(r,i);return h5(a,a.next),h5(r,r.next)}function nr(i,e){return V2(i.prev,i,e.prev)<0&&V2(e.next,i,i.next)<0}function w8(i,e,r,a,o){return(i=1431655765&((i=858993459&((i=252645135&((i=16711935&((i=(i-r)*o|0)|i<<8))|i<<4))|i<<2))|i<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=(e-a)*o|0)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function ar(i){var e=i,r=i;do(e.x=(i-p)*(h-m)&&(i-p)*(a-m)>=(r-p)*(e-m)&&(r-p)*(h-m)>=(o-p)*(a-m)}function sr(i,e){return i.next.i!==e.i&&i.prev.i!==e.i&&!function(r,a){var o=r;do{if(o.i!==r.i&&o.next.i!==r.i&&o.i!==a.i&&o.next.i!==a.i&&Te(o,o.next,r,a))return!0;o=o.next}while(o!==r);return!1}(i,e)&&(c9(i,e)&&c9(e,i)&&function(r,a){var o=r,h=!1,p=(r.x+a.x)/2,m=(r.y+a.y)/2;do o.y>m!=o.next.y>m&&o.next.y!==o.y&&p<(o.next.x-o.x)*(m-o.y)/(o.next.y-o.y)+o.x&&(h=!h),o=o.next;while(o!==r);return h}(i,e)&&(V2(i.prev,i,e.prev)||V2(i,e.prev,e))||$9(i,e)&&V2(i.prev,i,i.next)>0&&V2(e.prev,e,e.next)>0)}function V2(i,e,r){return(e.y-i.y)*(r.x-e.x)-(e.x-i.x)*(r.y-e.y)}function $9(i,e){return i.x===e.x&&i.y===e.y}function Te(i,e,r,a){var o=G9(V2(i,e,r)),h=G9(V2(i,e,a)),p=G9(V2(r,a,i)),m=G9(V2(r,a,e));return o!==h&&p!==m||!(o!==0||!q9(i,r,e))||!(h!==0||!q9(i,a,e))||!(p!==0||!q9(r,i,a))||!(m!==0||!q9(r,e,a))}function q9(i,e,r){return e.x<=Math.max(i.x,r.x)&&e.x>=Math.min(i.x,r.x)&&e.y<=Math.max(i.y,r.y)&&e.y>=Math.min(i.y,r.y)}function G9(i){return i>0?1:i<0?-1:0}function c9(i,e){return V2(i.prev,i,i.next)<0?V2(i,e,i.next)>=0&&V2(i,i.prev,e)>=0:V2(i,e,i.prev)<0||V2(i,i.next,e)<0}function Ie(i,e){var r=new S8(i.i,i.x,i.y),a=new S8(e.i,e.x,e.y),o=i.next,h=e.prev;return i.next=e,e.prev=i,r.next=o,o.prev=r,a.next=r,r.prev=a,h.next=a,a.prev=h,a}function Ee(i,e,r,a){var o=new S8(i,e,r);return a?(o.next=a.next,o.prev=a,a.next.prev=o,a.next=o):(o.prev=o,o.next=o),o}function u9(i){i.next.prev=i.prev,i.prev.next=i.next,i.prevZ&&(i.prevZ.nextZ=i.nextZ),i.nextZ&&(i.nextZ.prevZ=i.prevZ)}function S8(i,e,r){this.i=i,this.x=e,this.y=r,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}function T8(i,e,r,a){for(var o=0,h=e,p=r-a;h0&&r.holes.push(a+=i[o-1].length)}return r};var Ce=r1(b8.exports);function or(i,e,r,a,o){Pe(i,e,r||0,a||i.length-1,o||lr)}function Pe(i,e,r,a,o){for(;a>r;){if(a-r>600){var h=a-r+1,p=e-r+1,m=Math.log(h),_=.5*Math.exp(2*m/3),x=.5*Math.sqrt(m*_*(h-_)/h)*(p-h/2<0?-1:1);Pe(i,e,Math.max(r,Math.floor(e-p*_/h+x)),Math.min(a,Math.floor(e+(h-p)*_/h+x)),o)}var S=i[e],E=r,P=a;for(h9(i,r,e),o(i[a],S)>0&&h9(i,r,a);E0;)P--}o(i[r],S)===0?h9(i,r,P):h9(i,++P,a),P<=e&&(r=P+1),e<=P&&(a=P-1)}}function h9(i,e,r){var a=i[e];i[e]=i[r],i[r]=a}function lr(i,e){return ie?1:0}function I8(i,e){const r=i.length;if(r<=1)return[i];const a=[];let o,h;for(let p=0;p1)for(let p=0;pr.id),this.index=e.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new z4,this.indexArray=new h7,this.indexArray2=new W2,this.programConfigurations=new y0(e.layers,e.zoom),this.segments=new g2,this.segments2=new g2,this.stateDependentLayerIds=this.layers.filter(r=>r.isStateDependent()).map(r=>r.id)}populate(e,r,a){this.hasPattern=E8("fill",this.layers,r);const o=this.layers[0].layout.get("fill-sort-key"),h=!o.isConstant(),p=[];for(const{feature:m,id:_,index:x,sourceLayerIndex:S}of e){const E=this.layers[0]._featureFilter.needGeometry,P=u5(m,E);if(!this.layers[0]._featureFilter.filter(new m2(this.zoom),P,a))continue;const z=h?o.evaluate(P,{},a,r.availableImages):void 0,L={id:_,properties:m.properties,type:m.type,sourceLayerIndex:S,index:x,geometry:E?P.geometry:c5(m),patterns:{},sortKey:z};p.push(L)}h&&p.sort((m,_)=>m.sortKey-_.sortKey);for(const m of p){const{geometry:_,index:x,sourceLayerIndex:S}=m;if(this.hasPattern){const E=C8("fill",this.layers,m,this.zoom,r);this.patternFeatures.push(E)}else this.addFeature(m,_,x,a,{});r.featureIndex.insert(e[x].feature,_,x,S,this.index)}}update(e,r,a){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,r,this.stateDependentLayers,a)}addFeatures(e,r,a){for(const o of this.patternFeatures)this.addFeature(o,o.geometry,o.index,r,a)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,Ji),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.indexBuffer2=e.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())}addFeature(e,r,a,o,h){for(const p of I8(r,500)){let m=0;for(const z of p)m+=z.length;const _=this.segments.prepareSegment(m,this.layoutVertexArray,this.indexArray),x=_.vertexLength,S=[],E=[];for(const z of p){if(z.length===0)continue;z!==p[0]&&E.push(S.length/2);const L=this.segments2.prepareSegment(z.length,this.layoutVertexArray,this.indexArray2),B=L.vertexLength;this.layoutVertexArray.emplaceBack(z[0].x,z[0].y),this.indexArray2.emplaceBack(B+z.length-1,B),S.push(z[0].x),S.push(z[0].y);for(let Z=1;Z>3}if(o--,a===1||a===2)h+=i.readSVarint(),p+=i.readSVarint(),a===1&&(e&&m.push(e),e=[]),e.push(new mr(h,p));else{if(a!==7)throw new Error("unknown command "+a);e&&e.push(e[0].clone())}}return e&&m.push(e),m},k5.prototype.bbox=function(){var i=this._pbf;i.pos=this._geometry;for(var e=i.readVarint()+i.pos,r=1,a=0,o=0,h=0,p=1/0,m=-1/0,_=1/0,x=-1/0;i.pos>3}if(a--,r===1||r===2)(o+=i.readSVarint())m&&(m=o),(h+=i.readSVarint())<_&&(_=h),h>x&&(x=h);else if(r!==7)throw new Error("unknown command "+r)}return[p,_,m,x]},k5.prototype.toGeoJSON=function(i,e,r){var a,o,h=this.extent*Math.pow(2,r),p=this.extent*i,m=this.extent*e,_=this.loadGeometry(),x=k5.types[this.type];function S(z){for(var L=0;L>3;o=p===1?a.readString():p===2?a.readFloat():p===3?a.readDouble():p===4?a.readVarint64():p===5?a.readVarint():p===6?a.readSVarint():p===7?a.readBoolean():null}return o}(r))}Le.prototype.feature=function(i){if(i<0||i>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[i];var e=this._pbf.readVarint()+this._pbf.pos;return new _r(this._pbf,e,this.extent,this._keys,this._values)};var xr=ze;function br(i,e,r){if(i===3){var a=new xr(r,r.readVarint()+r.pos);a.length&&(e[a.name]=a)}}G6.VectorTile=function(i,e){this.layers=i.readFields(br,{},e)},G6.VectorTileFeature=ke,G6.VectorTileLayer=ze;const wr=G6.VectorTileFeature.types,M8=Math.pow(2,13);function d9(i,e,r,a,o,h,p,m){i.emplaceBack(e,r,2*Math.floor(a*M8)+p,o*M8*2,h*M8*2,Math.round(m))}class A8{constructor(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map(r=>r.id),this.index=e.index,this.hasPattern=!1,this.layoutVertexArray=new V1,this.centroidVertexArray=new k1,this.indexArray=new h7,this.programConfigurations=new y0(e.layers,e.zoom),this.segments=new g2,this.stateDependentLayerIds=this.layers.filter(r=>r.isStateDependent()).map(r=>r.id)}populate(e,r,a){this.features=[],this.hasPattern=E8("fill-extrusion",this.layers,r);for(const{feature:o,id:h,index:p,sourceLayerIndex:m}of e){const _=this.layers[0]._featureFilter.needGeometry,x=u5(o,_);if(!this.layers[0]._featureFilter.filter(new m2(this.zoom),x,a))continue;const S={id:h,sourceLayerIndex:m,index:p,geometry:_?x.geometry:c5(o),properties:o.properties,type:o.type,patterns:{}};this.hasPattern?this.features.push(C8("fill-extrusion",this.layers,S,this.zoom,r)):this.addFeature(S,S.geometry,p,a,{}),r.featureIndex.insert(o,S.geometry,p,m,this.index,!0)}}addFeatures(e,r,a){for(const o of this.features){const{geometry:h}=o;this.addFeature(o,h,o.index,r,a)}}update(e,r,a){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,r,this.stateDependentLayers,a)}isEmpty(){return this.layoutVertexArray.length===0&&this.centroidVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,fr),this.centroidVertexBuffer=e.createVertexBuffer(this.centroidVertexArray,pr.members,!0),this.indexBuffer=e.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.centroidVertexBuffer.destroy())}addFeature(e,r,a,o,h){const p={x:0,y:0,vertexCount:0};for(const m of I8(r,500)){let _=0;for(const L of m)_+=L.length;let x=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray);for(const L of m){if(L.length===0||Tr(L))continue;let B=0;for(let Z=0;Z=1){const s1=L[Z-1];if(!Sr(X,s1)){x.vertexLength+4>g2.MAX_VERTEX_ARRAY_LENGTH&&(x=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));const Y=X.sub(s1)._perp()._unit(),c1=s1.dist(X);B+c1>32768&&(B=0),d9(this.layoutVertexArray,X.x,X.y,Y.x,Y.y,0,0,B),d9(this.layoutVertexArray,X.x,X.y,Y.x,Y.y,0,1,B),p.x+=2*X.x,p.y+=2*X.y,p.vertexCount+=2,B+=c1,d9(this.layoutVertexArray,s1.x,s1.y,Y.x,Y.y,0,0,B),d9(this.layoutVertexArray,s1.x,s1.y,Y.x,Y.y,0,1,B),p.x+=2*s1.x,p.y+=2*s1.y,p.vertexCount+=2;const p1=x.vertexLength;this.indexArray.emplaceBack(p1,p1+2,p1+1),this.indexArray.emplaceBack(p1+1,p1+2,p1+3),x.vertexLength+=4,x.primitiveLength+=2}}}}if(x.vertexLength+_>g2.MAX_VERTEX_ARRAY_LENGTH&&(x=this.segments.prepareSegment(_,this.layoutVertexArray,this.indexArray)),wr[e.type]!=="Polygon")continue;const S=[],E=[],P=x.vertexLength;for(const L of m)if(L.length!==0){L!==m[0]&&E.push(S.length/2);for(let B=0;Bq2)||i.y===e.y&&(i.y<0||i.y>q2)}function Tr(i){return i.every(e=>e.x<0)||i.every(e=>e.x>q2)||i.every(e=>e.y<0)||i.every(e=>e.y>q2)}let De;$1("FillExtrusionBucket",A8,{omit:["layers","features"]});var Ir={get paint(){return De=De||new O2({"fill-extrusion-opacity":new a4(_1["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new d4(_1["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new a4(_1["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new a4(_1["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new s5(_1["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new d4(_1["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new d4(_1["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new a4(_1["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"])})}};class Er extends w3{constructor(e){super(e,Ir)}createBucket(e){return new A8(e)}queryRadius(){return N9(this.paint.get("fill-extrusion-translate"))}is3D(){return!0}queryIntersectsFeature(e,r,a,o,h,p,m,_){const x=V9(e,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),p.angle,m),S=this.paint.get("fill-extrusion-height").evaluate(r,a),E=this.paint.get("fill-extrusion-base").evaluate(r,a),P=function(L,B,Z,X){const s1=[];for(const Y of L){const c1=[Y.x,Y.y,0,1];U9(c1,c1,B),s1.push(new j1(c1[0]/c1[3],c1[1]/c1[3]))}return s1}(x,_),z=function(L,B,Z,X){const s1=[],Y=[],c1=X[8]*B,p1=X[9]*B,S1=X[10]*B,H1=X[11]*B,Y1=X[8]*Z,Z1=X[9]*Z,U1=X[10]*Z,L1=X[11]*Z;for(const K1 of L){const B1=[],M1=[];for(const s4 of K1){const i4=s4.x,C4=s4.y,y2=X[0]*i4+X[4]*C4+X[12],w2=X[1]*i4+X[5]*C4+X[13],J2=X[2]*i4+X[6]*C4+X[14],T3=X[3]*i4+X[7]*C4+X[15],J7=J2+S1,G2=T3+H1,p7=y2+Y1,I7=w2+Z1,Y7=J2+U1,Q7=T3+L1,Y2=new j1((y2+c1)/G2,(w2+p1)/G2);Y2.z=J7/G2,B1.push(Y2);const Q2=new j1(p7/Q7,I7/Q7);Q2.z=Y7/Q7,M1.push(Q2)}s1.push(B1),Y.push(M1)}return[s1,Y]}(o,E,S,_);return function(L,B,Z){let X=1/0;he(Z,B)&&(X=Fe(Z,B[0]));for(let s1=0;s1r.id),this.index=e.index,this.hasPattern=!1,this.patternFeatures=[],this.lineClipsArray=[],this.gradients={},this.layers.forEach(r=>{this.gradients[r.id]={}}),this.layoutVertexArray=new p4,this.layoutVertexArray2=new t4,this.indexArray=new h7,this.programConfigurations=new y0(e.layers,e.zoom),this.segments=new g2,this.maxLineLength=0,this.stateDependentLayerIds=this.layers.filter(r=>r.isStateDependent()).map(r=>r.id)}populate(e,r,a){this.hasPattern=E8("line",this.layers,r);const o=this.layers[0].layout.get("line-sort-key"),h=!o.isConstant(),p=[];for(const{feature:m,id:_,index:x,sourceLayerIndex:S}of e){const E=this.layers[0]._featureFilter.needGeometry,P=u5(m,E);if(!this.layers[0]._featureFilter.filter(new m2(this.zoom),P,a))continue;const z=h?o.evaluate(P,{},a):void 0,L={id:_,properties:m.properties,type:m.type,sourceLayerIndex:S,index:x,geometry:E?P.geometry:c5(m),patterns:{},sortKey:z};p.push(L)}h&&p.sort((m,_)=>m.sortKey-_.sortKey);for(const m of p){const{geometry:_,index:x,sourceLayerIndex:S}=m;if(this.hasPattern){const E=C8("line",this.layers,m,this.zoom,r);this.patternFeatures.push(E)}else this.addFeature(m,_,x,a,{});r.featureIndex.insert(e[x].feature,_,x,S,this.index)}}update(e,r,a){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,r,this.stateDependentLayers,a)}addFeatures(e,r,a){for(const o of this.patternFeatures)this.addFeature(o,o.geometry,o.index,r,a)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexArray2.length!==0&&(this.layoutVertexBuffer2=e.createVertexBuffer(this.layoutVertexArray2,Ar)),this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,Pr),this.indexBuffer=e.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}lineFeatureClips(e){if(e.properties&&Object.prototype.hasOwnProperty.call(e.properties,"mapbox_clip_start")&&Object.prototype.hasOwnProperty.call(e.properties,"mapbox_clip_end"))return{start:+e.properties.mapbox_clip_start,end:+e.properties.mapbox_clip_end}}addFeature(e,r,a,o,h){const p=this.layers[0].layout,m=p.get("line-join").evaluate(e,{}),_=p.get("line-cap"),x=p.get("line-miter-limit"),S=p.get("line-round-limit");this.lineClips=this.lineFeatureClips(e);for(const E of r)this.addLine(E,e,m,_,x,S);this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,a,h,o)}addLine(e,r,a,o,h,p){if(this.distance=0,this.scaledDistance=0,this.totalDistance=0,this.lineClips){this.lineClipsArray.push(this.lineClips);for(let X=0;X=2&&e[_-1].equals(e[_-2]);)_--;let x=0;for(;x<_-1&&e[x].equals(e[x+1]);)x++;if(_<(m?3:2))return;a==="bevel"&&(h=1.05);const S=this.overscaling<=16?15*q2/(512*this.overscaling):0,E=this.segments.prepareSegment(10*_,this.layoutVertexArray,this.indexArray);let P,z,L,B,Z;this.e1=this.e2=-1,m&&(P=e[_-2],Z=e[x].sub(P)._unit()._perp());for(let X=x;X<_;X++){if(L=X===_-1?m?e[x+1]:void 0:e[X+1],L&&e[X].equals(L))continue;Z&&(B=Z),P&&(z=P),P=e[X],Z=L?L.sub(P)._unit()._perp():B,B=B||Z;let s1=B.add(Z);s1.x===0&&s1.y===0||s1._unit();const Y=B.x*Z.x+B.y*Z.y,c1=s1.x*Z.x+s1.y*Z.y,p1=c1!==0?1/c1:1/0,S1=2*Math.sqrt(2-2*c1),H1=c10;if(H1&&X>x){const L1=P.dist(z);if(L1>2*S){const K1=P.sub(P.sub(z)._mult(S/L1)._round());this.updateDistance(z,K1),this.addCurrentVertex(K1,B,0,0,E),z=K1}}const Z1=z&&L;let U1=Z1?a:m?"butt":o;if(Z1&&U1==="round"&&(p1h&&(U1="bevel"),U1==="bevel"&&(p1>2&&(U1="flipbevel"),p1100)s1=Z.mult(-1);else{const L1=p1*B.add(Z).mag()/B.sub(Z).mag();s1._perp()._mult(L1*(Y1?-1:1))}this.addCurrentVertex(P,s1,0,0,E),this.addCurrentVertex(P,s1.mult(-1),0,0,E)}else if(U1==="bevel"||U1==="fakeround"){const L1=-Math.sqrt(p1*p1-1),K1=Y1?L1:0,B1=Y1?0:L1;if(z&&this.addCurrentVertex(P,B,K1,B1,E),U1==="fakeround"){const M1=Math.round(180*S1/Math.PI/20);for(let s4=1;s42*S){const K1=P.add(L.sub(P)._mult(S/L1)._round());this.updateDistance(P,K1),this.addCurrentVertex(K1,Z,0,0,E),P=K1}}}}addCurrentVertex(e,r,a,o,h,p=!1){const m=r.y*o-r.x,_=-r.y-r.x*o;this.addHalfVertex(e,r.x+r.y*a,r.y-r.x*a,p,!1,a,h),this.addHalfVertex(e,m,_,p,!0,-o,h),this.distance>Re/2&&this.totalDistance===0&&(this.distance=0,this.updateScaledDistance(),this.addCurrentVertex(e,r,a,o,h,p))}addHalfVertex({x:e,y:r},a,o,h,p,m,_){const x=.5*(this.lineClips?this.scaledDistance*(Re-1):this.scaledDistance);this.layoutVertexArray.emplaceBack((e<<1)+(h?1:0),(r<<1)+(p?1:0),Math.round(63*a)+128,Math.round(63*o)+128,1+(m===0?0:m<0?-1:1)|(63&x)<<2,x>>6),this.lineClips&&this.layoutVertexArray2.emplaceBack((this.scaledDistance-this.lineClips.start)/(this.lineClips.end-this.lineClips.start),this.lineClipsArray.length);const S=_.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,S),_.primitiveLength++),p?this.e2=S:this.e1=S}updateScaledDistance(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance}updateDistance(e,r){this.distance+=e.dist(r),this.updateScaledDistance()}}let Be,Oe;$1("LineBucket",k8,{omit:["layers","patternFeatures"]});var Ne={get paint(){return Oe=Oe||new O2({"line-opacity":new d4(_1.paint_line["line-opacity"]),"line-color":new d4(_1.paint_line["line-color"]),"line-translate":new a4(_1.paint_line["line-translate"]),"line-translate-anchor":new a4(_1.paint_line["line-translate-anchor"]),"line-width":new d4(_1.paint_line["line-width"]),"line-gap-width":new d4(_1.paint_line["line-gap-width"]),"line-offset":new d4(_1.paint_line["line-offset"]),"line-blur":new d4(_1.paint_line["line-blur"]),"line-dasharray":new K5(_1.paint_line["line-dasharray"]),"line-pattern":new s5(_1.paint_line["line-pattern"]),"line-gradient":new J5(_1.paint_line["line-gradient"])})},get layout(){return Be=Be||new O2({"line-cap":new a4(_1.layout_line["line-cap"]),"line-join":new d4(_1.layout_line["line-join"]),"line-miter-limit":new a4(_1.layout_line["line-miter-limit"]),"line-round-limit":new a4(_1.layout_line["line-round-limit"]),"line-sort-key":new d4(_1.layout_line["line-sort-key"])})}};class Lr extends d4{possiblyEvaluate(e,r){return r=new m2(Math.floor(r.zoom),{now:r.now,fadeDuration:r.fadeDuration,zoomHistory:r.zoomHistory,transition:r.transition}),super.possiblyEvaluate(e,r)}evaluate(e,r,a,o){return r=U2({},r,{zoom:Math.floor(r.zoom)}),super.evaluate(e,r,a,o)}}let Z9;class Dr extends w3{constructor(e){super(e,Ne),this.gradientVersion=0,Z9||(Z9=new Lr(Ne.paint.properties["line-width"].specification),Z9.useIntegerZoom=!0)}_handleSpecialPaintPropertyUpdate(e){if(e==="line-gradient"){const r=this.gradientExpression();this.stepInterpolant=!!function(a){return a._styleExpression!==void 0}(r)&&r._styleExpression.expression instanceof P3,this.gradientVersion=(this.gradientVersion+1)%Number.MAX_SAFE_INTEGER}}gradientExpression(){return this._transitionablePaint._values["line-gradient"].value.expression}recalculate(e,r){super.recalculate(e,r),this.paint._values["line-floorwidth"]=Z9.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,e)}createBucket(e){return new k8(e)}queryRadius(e){const r=e,a=Ve(a9("line-width",this,r),a9("line-gap-width",this,r)),o=a9("line-offset",this,r);return a/2+Math.abs(o)+N9(this.paint.get("line-translate"))}queryIntersectsFeature(e,r,a,o,h,p,m){const _=V9(e,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),p.angle,m),x=m/2*Ve(this.paint.get("line-width").evaluate(r,a),this.paint.get("line-gap-width").evaluate(r,a)),S=this.paint.get("line-offset").evaluate(r,a);return S&&(o=function(E,P){const z=[];for(let L=0;L=3){for(let Z=0;Z0?e+2*i:i}const Fr=T2([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"}],4),Rr=T2([{name:"a_projected_pos",components:3,type:"Float32"}],4);T2([{name:"a_fade_opacity",components:1,type:"Uint32"}],4);const Br=T2([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"}]);T2([{type:"Int16",name:"anchorPointX"},{type:"Int16",name:"anchorPointY"},{type:"Int16",name:"x1"},{type:"Int16",name:"y1"},{type:"Int16",name:"x2"},{type:"Int16",name:"y2"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"}]);const Ue=T2([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4),Or=T2([{name:"a_pos",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);function Nr(i,e,r){return i.sections.forEach(a=>{a.text=function(o,h,p){const m=h.layout.get("text-transform").evaluate(p,{});return m==="uppercase"?o=o.toLocaleUpperCase():m==="lowercase"&&(o=o.toLocaleLowerCase()),c3.applyArabicShaping&&(o=c3.applyArabicShaping(o)),o}(a.text,e,r)}),i}T2([{name:"triangle",components:3,type:"Uint16"}]),T2([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"},{type:"Int16",name:"associatedIconIndex"}]),T2([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint16",name:"useRuntimeCollisionCircles"},{type:"Uint32",name:"crossTileID"},{type:"Float32",name:"textBoxScale"},{type:"Float32",name:"collisionCircleDiameter"},{type:"Uint16",name:"textAnchorOffsetStartIndex"},{type:"Uint16",name:"textAnchorOffsetEndIndex"}]),T2([{type:"Float32",name:"offsetX"}]),T2([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]),T2([{type:"Uint16",name:"textAnchor"},{type:"Float32",components:2,name:"textOffset"}]);const f9={"!":"︕","#":"#",$:"$","%":"%","&":"&","(":"︵",")":"︶","*":"*","+":"+",",":"︐","-":"︲",".":"・","/":"/",":":"︓",";":"︔","<":"︿","=":"=",">":"﹀","?":"︖","@":"@","[":"﹇","\\":"\","]":"﹈","^":"^",_:"︳","`":"`","{":"︷","|":"―","}":"︸","~":"~","¢":"¢","£":"£","¥":"¥","¦":"¦","¬":"¬","¯":" ̄","–":"︲","—":"︱","‘":"﹃","’":"﹄","“":"﹁","”":"﹂","…":"︙","‧":"・","₩":"₩","、":"︑","。":"︒","〈":"︿","〉":"﹀","《":"︽","》":"︾","「":"﹁","」":"﹂","『":"﹃","』":"﹄","【":"︻","】":"︼","〔":"︹","〕":"︺","〖":"︗","〗":"︘","!":"︕","(":"︵",")":"︶",",":"︐","-":"︲",".":"・",":":"︓",";":"︔","<":"︿",">":"﹀","?":"︖","[":"﹇","]":"﹈","_":"︳","{":"︷","|":"―","}":"︸","⦅":"︵","⦆":"︶","。":"︒","「":"﹁","」":"﹂"};var K2=24,je=i2,$e=function(i,e,r,a,o){var h,p,m=8*o-a-1,_=(1<>1,S=-7,E=r?o-1:0,P=r?-1:1,z=i[e+E];for(E+=P,h=z&(1<<-S)-1,z>>=-S,S+=m;S>0;h=256*h+i[e+E],E+=P,S-=8);for(p=h&(1<<-S)-1,h>>=-S,S+=a;S>0;p=256*p+i[e+E],E+=P,S-=8);if(h===0)h=1-x;else{if(h===_)return p?NaN:1/0*(z?-1:1);p+=Math.pow(2,a),h-=x}return(z?-1:1)*p*Math.pow(2,h-a)},qe=function(i,e,r,a,o,h){var p,m,_,x=8*h-o-1,S=(1<>1,P=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,z=a?0:h-1,L=a?1:-1,B=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(m=isNaN(e)?1:0,p=S):(p=Math.floor(Math.log(e)/Math.LN2),e*(_=Math.pow(2,-p))<1&&(p--,_*=2),(e+=p+E>=1?P/_:P*Math.pow(2,1-E))*_>=2&&(p++,_/=2),p+E>=S?(m=0,p=S):p+E>=1?(m=(e*_-1)*Math.pow(2,o),p+=E):(m=e*Math.pow(2,E-1)*Math.pow(2,o),p=0));o>=8;i[r+z]=255&m,z+=L,m/=256,o-=8);for(p=p<0;i[r+z]=255&p,z+=L,p/=256,x-=8);i[r+z-L]|=128*B};function i2(i){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(i)?i:new Uint8Array(i||0),this.pos=0,this.type=0,this.length=this.buf.length}i2.Varint=0,i2.Fixed64=1,i2.Bytes=2,i2.Fixed32=5;var z8=4294967296,Ge=1/z8,Ze=typeof TextDecoder>"u"?null:new TextDecoder("utf8");function p6(i){return i.type===i2.Bytes?i.readVarint()+i.pos:i.pos+1}function z5(i,e,r){return r?4294967296*e+(i>>>0):4294967296*(e>>>0)+(i>>>0)}function He(i,e,r){var a=e<=16383?1:e<=2097151?2:e<=268435455?3:Math.floor(Math.log(e)/(7*Math.LN2));r.realloc(a);for(var o=r.pos-1;o>=i;o--)r.buf[o+a]=r.buf[o]}function Vr(i,e){for(var r=0;r>>8,i[r+2]=e>>>16,i[r+3]=e>>>24}function We(i,e){return(i[e]|i[e+1]<<8|i[e+2]<<16)+(i[e+3]<<24)}i2.prototype={destroy:function(){this.buf=null},readFields:function(i,e,r){for(r=r||this.length;this.pos>3,h=this.pos;this.type=7&a,i(o,e,this),this.pos===h&&this.skip(a)}return e},readMessage:function(i,e){return this.readFields(i,e,this.readVarint()+this.pos)},readFixed32:function(){var i=H9(this.buf,this.pos);return this.pos+=4,i},readSFixed32:function(){var i=We(this.buf,this.pos);return this.pos+=4,i},readFixed64:function(){var i=H9(this.buf,this.pos)+H9(this.buf,this.pos+4)*z8;return this.pos+=8,i},readSFixed64:function(){var i=H9(this.buf,this.pos)+We(this.buf,this.pos+4)*z8;return this.pos+=8,i},readFloat:function(){var i=$e(this.buf,this.pos,!0,23,4);return this.pos+=4,i},readDouble:function(){var i=$e(this.buf,this.pos,!0,52,8);return this.pos+=8,i},readVarint:function(i){var e,r,a=this.buf;return e=127&(r=a[this.pos++]),r<128?e:(e|=(127&(r=a[this.pos++]))<<7,r<128?e:(e|=(127&(r=a[this.pos++]))<<14,r<128?e:(e|=(127&(r=a[this.pos++]))<<21,r<128?e:function(o,h,p){var m,_,x=p.buf;if(m=(112&(_=x[p.pos++]))>>4,_<128||(m|=(127&(_=x[p.pos++]))<<3,_<128)||(m|=(127&(_=x[p.pos++]))<<10,_<128)||(m|=(127&(_=x[p.pos++]))<<17,_<128)||(m|=(127&(_=x[p.pos++]))<<24,_<128)||(m|=(1&(_=x[p.pos++]))<<31,_<128))return z5(o,m,h);throw new Error("Expected varint not more than 10 bytes")}(e|=(15&(r=a[this.pos]))<<28,i,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var i=this.readVarint();return i%2==1?(i+1)/-2:i/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var i=this.readVarint()+this.pos,e=this.pos;return this.pos=i,i-e>=12&&Ze?function(r,a,o){return Ze.decode(r.subarray(a,o))}(this.buf,e,i):function(r,a,o){for(var h="",p=a;p239?4:S>223?3:S>191?2:1;if(p+P>o)break;P===1?S<128&&(E=S):P===2?(192&(m=r[p+1]))==128&&(E=(31&S)<<6|63&m)<=127&&(E=null):P===3?(_=r[p+2],(192&(m=r[p+1]))==128&&(192&_)==128&&((E=(15&S)<<12|(63&m)<<6|63&_)<=2047||E>=55296&&E<=57343)&&(E=null)):P===4&&(_=r[p+2],x=r[p+3],(192&(m=r[p+1]))==128&&(192&_)==128&&(192&x)==128&&((E=(15&S)<<18|(63&m)<<12|(63&_)<<6|63&x)<=65535||E>=1114112)&&(E=null)),E===null?(E=65533,P=1):E>65535&&(E-=65536,h+=String.fromCharCode(E>>>10&1023|55296),E=56320|1023&E),h+=String.fromCharCode(E),p+=P}return h}(this.buf,e,i)},readBytes:function(){var i=this.readVarint()+this.pos,e=this.buf.subarray(this.pos,i);return this.pos=i,e},readPackedVarint:function(i,e){if(this.type!==i2.Bytes)return i.push(this.readVarint(e));var r=p6(this);for(i=i||[];this.pos127;);else if(e===i2.Bytes)this.pos=this.readVarint()+this.pos;else if(e===i2.Fixed32)this.pos+=4;else{if(e!==i2.Fixed64)throw new Error("Unimplemented type: "+e);this.pos+=8}},writeTag:function(i,e){this.writeVarint(i<<3|e)},realloc:function(i){for(var e=this.length||16;e268435455||i<0?function(e,r){var a,o;if(e>=0?(a=e%4294967296|0,o=e/4294967296|0):(o=~(-e/4294967296),4294967295^(a=~(-e%4294967296))?a=a+1|0:(a=0,o=o+1|0)),e>=18446744073709552e3||e<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");r.realloc(10),function(h,p,m){m.buf[m.pos++]=127&h|128,h>>>=7,m.buf[m.pos++]=127&h|128,h>>>=7,m.buf[m.pos++]=127&h|128,h>>>=7,m.buf[m.pos++]=127&h|128,m.buf[m.pos]=127&(h>>>=7)}(a,0,r),function(h,p){var m=(7&h)<<4;p.buf[p.pos++]|=m|((h>>>=3)?128:0),h&&(p.buf[p.pos++]=127&h|((h>>>=7)?128:0),h&&(p.buf[p.pos++]=127&h|((h>>>=7)?128:0),h&&(p.buf[p.pos++]=127&h|((h>>>=7)?128:0),h&&(p.buf[p.pos++]=127&h|((h>>>=7)?128:0),h&&(p.buf[p.pos++]=127&h)))))}(o,r)}(i,this):(this.realloc(4),this.buf[this.pos++]=127&i|(i>127?128:0),i<=127||(this.buf[this.pos++]=127&(i>>>=7)|(i>127?128:0),i<=127||(this.buf[this.pos++]=127&(i>>>=7)|(i>127?128:0),i<=127||(this.buf[this.pos++]=i>>>7&127))))},writeSVarint:function(i){this.writeVarint(i<0?2*-i-1:2*i)},writeBoolean:function(i){this.writeVarint(!!i)},writeString:function(i){i=String(i),this.realloc(4*i.length),this.pos++;var e=this.pos;this.pos=function(a,o,h){for(var p,m,_=0;_55295&&p<57344){if(!m){p>56319||_+1===o.length?(a[h++]=239,a[h++]=191,a[h++]=189):m=p;continue}if(p<56320){a[h++]=239,a[h++]=191,a[h++]=189,m=p;continue}p=m-55296<<10|p-56320|65536,m=null}else m&&(a[h++]=239,a[h++]=191,a[h++]=189,m=null);p<128?a[h++]=p:(p<2048?a[h++]=p>>6|192:(p<65536?a[h++]=p>>12|224:(a[h++]=p>>18|240,a[h++]=p>>12&63|128),a[h++]=p>>6&63|128),a[h++]=63&p|128)}return h}(this.buf,i,this.pos);var r=this.pos-e;r>=128&&He(e,r,this),this.pos=e-1,this.writeVarint(r),this.pos+=r},writeFloat:function(i){this.realloc(4),qe(this.buf,i,this.pos,!0,23,4),this.pos+=4},writeDouble:function(i){this.realloc(8),qe(this.buf,i,this.pos,!0,52,8),this.pos+=8},writeBytes:function(i){var e=i.length;this.writeVarint(e),this.realloc(e);for(var r=0;r=128&&He(r,a,this),this.pos=r-1,this.writeVarint(a),this.pos+=a},writeMessage:function(i,e,r){this.writeTag(i,i2.Bytes),this.writeRawMessage(e,r)},writePackedVarint:function(i,e){e.length&&this.writeMessage(i,Vr,e)},writePackedSVarint:function(i,e){e.length&&this.writeMessage(i,Ur,e)},writePackedBoolean:function(i,e){e.length&&this.writeMessage(i,qr,e)},writePackedFloat:function(i,e){e.length&&this.writeMessage(i,jr,e)},writePackedDouble:function(i,e){e.length&&this.writeMessage(i,$r,e)},writePackedFixed32:function(i,e){e.length&&this.writeMessage(i,Gr,e)},writePackedSFixed32:function(i,e){e.length&&this.writeMessage(i,Zr,e)},writePackedFixed64:function(i,e){e.length&&this.writeMessage(i,Hr,e)},writePackedSFixed64:function(i,e){e.length&&this.writeMessage(i,Wr,e)},writeBytesField:function(i,e){this.writeTag(i,i2.Bytes),this.writeBytes(e)},writeFixed32Field:function(i,e){this.writeTag(i,i2.Fixed32),this.writeFixed32(e)},writeSFixed32Field:function(i,e){this.writeTag(i,i2.Fixed32),this.writeSFixed32(e)},writeFixed64Field:function(i,e){this.writeTag(i,i2.Fixed64),this.writeFixed64(e)},writeSFixed64Field:function(i,e){this.writeTag(i,i2.Fixed64),this.writeSFixed64(e)},writeVarintField:function(i,e){this.writeTag(i,i2.Varint),this.writeVarint(e)},writeSVarintField:function(i,e){this.writeTag(i,i2.Varint),this.writeSVarint(e)},writeStringField:function(i,e){this.writeTag(i,i2.Bytes),this.writeString(e)},writeFloatField:function(i,e){this.writeTag(i,i2.Fixed32),this.writeFloat(e)},writeDoubleField:function(i,e){this.writeTag(i,i2.Fixed64),this.writeDouble(e)},writeBooleanField:function(i,e){this.writeVarintField(i,!!e)}};var L8=r1(je);const D8=3;function Xr(i,e,r){i===1&&r.readMessage(Kr,e)}function Kr(i,e,r){if(i===3){const{id:a,bitmap:o,width:h,height:p,left:m,top:_,advance:x}=r.readMessage(Jr,{});e.push({id:a,bitmap:new o9({width:h+2*D8,height:p+2*D8},o),metrics:{width:h,height:p,left:m,top:_,advance:x}})}}function Jr(i,e,r){i===1?e.id=r.readVarint():i===2?e.bitmap=r.readBytes():i===3?e.width=r.readVarint():i===4?e.height=r.readVarint():i===5?e.left=r.readSVarint():i===6?e.top=r.readSVarint():i===7&&(e.advance=r.readVarint())}const Xe=D8;function Ke(i){let e=0,r=0;for(const p of i)e+=p.w*p.h,r=Math.max(r,p.w);i.sort((p,m)=>m.h-p.h);const a=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(e/.95)),r),h:1/0}];let o=0,h=0;for(const p of i)for(let m=a.length-1;m>=0;m--){const _=a[m];if(!(p.w>_.w||p.h>_.h)){if(p.x=_.x,p.y=_.y,h=Math.max(h,p.y+p.h),o=Math.max(o,p.x+p.w),p.w===_.w&&p.h===_.h){const x=a.pop();m=0&&a>=e&&X9[this.text.charCodeAt(a)];a--)r--;this.text=this.text.substring(e,r),this.sectionIndex=this.sectionIndex.slice(e,r)}substring(e,r){const a=new D5;return a.text=this.text.substring(e,r),a.sectionIndex=this.sectionIndex.slice(e,r),a.sections=this.sections,a}toString(){return this.text}getMaxScale(){return this.sectionIndex.reduce((e,r)=>Math.max(e,this.sections[r].scale),0)}addTextSection(e,r){this.text+=e.text,this.sections.push(g9.forText(e.scale,e.fontStack||r));const a=this.sections.length-1;for(let o=0;o=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)}}function W9(i,e,r,a,o,h,p,m,_,x,S,E,P,z,L,B){const Z=D5.fromFeature(i,o);let X;E===c.ai.vertical&&Z.verticalizePunctuation();const{processBidirectionalText:s1,processStyledBidirectionalText:Y}=c3;if(s1&&Z.sections.length===1){X=[];const S1=s1(Z.toString(),R8(Z,x,h,e,a,z,L));for(const H1 of S1){const Y1=new D5;Y1.text=H1,Y1.sections=Z.sections;for(let Z1=0;Z10&&m6>d3&&(d3=m6)}else{const F3=Y1[B4.fontStack],f3=F3&&F3[E7];if(f3&&f3.rect)_0=f3.rect,r0=f3.metrics;else{const m6=H1[B4.fontStack],b9=m6&&m6[E7];if(!b9)continue;r0=b9.metrics}t7=(Q2-B4.scale)*K2}n0?(S1.verticalizable=!0,F7.push({glyph:E7,imageName:v0,x:y2,y:w2+t7,vertical:n0,scale:B4.scale,fontStack:B4.fontStack,sectionIndex:R7,metrics:r0,rect:_0}),y2+=f6*B4.scale+s4):(F7.push({glyph:E7,imageName:v0,x:y2,y:w2+t7,vertical:n0,scale:B4.scale,fontStack:B4.fontStack,sectionIndex:R7,metrics:r0,rect:_0}),y2+=r0.advance*B4.scale+s4)}F7.length!==0&&(J2=Math.max(y2-s4,J2),en(F7,0,F7.length-1,J7,d3)),y2=0;const p3=L1*Q2+d3;e3.lineOffset=Math.max(d3,D7),w2+=p3,T3=Math.max(p3,T3),++G2}var p7;const I7=w2-m9,{horizontalAlign:Y7,verticalAlign:Q7}=B8(K1);(function(Y2,Q2,D7,e3,F7,d3,p3,e7,B4){const R7=(Q2-D7)*F7;let E7=0;E7=d3!==p3?-e7*e3-m9:(-e3*B4+.5)*p3;for(const t7 of Y2)for(const r0 of t7.positionedGlyphs)r0.x+=R7,r0.y+=E7})(S1.positionedLines,J7,Y7,Q7,J2,T3,L1,I7,U1.length),S1.top+=-Q7*I7,S1.bottom=S1.top+I7,S1.left+=-Y7*J2,S1.right=S1.left+J2}(p1,e,r,a,X,p,m,_,E,x,P,B),!function(S1){for(const H1 of S1)if(H1.positionedGlyphs.length!==0)return!1;return!0}(c1)&&p1}const X9={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},Yr={10:!0,32:!0,38:!0,40:!0,41:!0,43:!0,45:!0,47:!0,173:!0,183:!0,8203:!0,8208:!0,8211:!0,8231:!0};function Ye(i,e,r,a,o,h){if(e.imageName){const p=a[e.imageName];return p?p.displaySize[0]*e.scale*K2/h+o:0}{const p=r[e.fontStack],m=p&&p[i];return m?m.metrics.advance*e.scale+o:0}}function Qe(i,e,r,a){const o=Math.pow(i-e,2);return a?i=0;let S=0;for(let P=0;Pp.id),this.index=e.index,this.pixelRatio=e.pixelRatio,this.sourceLayerIndex=e.sourceLayerIndex,this.hasPattern=!1,this.hasRTLText=!1,this.sortKeyRanges=[],this.collisionCircleArray=[],this.placementInvProjMatrix=_8([]),this.placementViewportMatrix=_8([]);const r=this.layers[0]._unevaluatedLayout._values;this.textSizeData=rt(this.zoom,r["text-size"]),this.iconSizeData=rt(this.zoom,r["icon-size"]);const a=this.layers[0].layout,o=a.get("symbol-sort-key"),h=a.get("symbol-z-order");this.canOverlap=O8(a,"text-overlap","text-allow-overlap")!=="never"||O8(a,"icon-overlap","icon-allow-overlap")!=="never"||a.get("text-ignore-placement")||a.get("icon-ignore-placement"),this.sortFeaturesByKey=h!=="viewport-y"&&!o.isConstant(),this.sortFeaturesByY=(h==="viewport-y"||h==="auto"&&!this.sortFeaturesByKey)&&this.canOverlap,a.get("symbol-placement")==="point"&&(this.writingModes=a.get("text-writing-mode").map(p=>c.ai[p])),this.stateDependentLayerIds=this.layers.filter(p=>p.isStateDependent()).map(p=>p.id),this.sourceID=e.sourceID}createArrays(){this.text=new V8(new y0(this.layers,this.zoom,e=>/^text/.test(e))),this.icon=new V8(new y0(this.layers,this.zoom,e=>/^icon/.test(e))),this.glyphOffsetArray=new a1,this.lineVertexArray=new f1,this.symbolInstances=new H,this.textAnchorOffsets=new w1}calculateGlyphDependencies(e,r,a,o,h){for(let p=0;p0)&&(p.value.kind!=="constant"||p.value.value.length>0),S=_.value.kind!=="constant"||!!_.value.value||Object.keys(_.parameters).length>0,E=h.get("symbol-sort-key");if(this.features=[],!x&&!S)return;const P=r.iconDependencies,z=r.glyphDependencies,L=r.availableImages,B=new m2(this.zoom);for(const{feature:Z,id:X,index:s1,sourceLayerIndex:Y}of e){const c1=o._featureFilter.needGeometry,p1=u5(Z,c1);if(!o._featureFilter.filter(B,p1,a))continue;let S1,H1;if(c1||(p1.geometry=c5(Z)),x){const Z1=o.getValueAndResolveTokens("text-field",p1,a,L),U1=s2.factory(Z1);an(U1)&&(this.hasRTLText=!0),(!this.hasRTLText||W5()==="unavailable"||this.hasRTLText&&c3.isParsed())&&(S1=Nr(U1,o,p1))}if(S){const Z1=o.getValueAndResolveTokens("icon-image",p1,a,L);H1=Z1 instanceof $2?Z1:$2.fromString(Z1)}if(!S1&&!H1)continue;const Y1=this.sortFeaturesByKey?E.evaluate(p1,{},a):void 0;if(this.features.push({id:X,text:S1,icon:H1,index:s1,sourceLayerIndex:Y,geometry:p1.geometry,properties:Z.properties,type:rn[Z.type],sortKey:Y1}),H1&&(P[H1.name]=!0),S1){const Z1=p.evaluate(p1,{},a).join(","),U1=h.get("text-rotation-alignment")!=="viewport"&&h.get("symbol-placement")!=="point";this.allowVerticalPlacement=this.writingModes&&this.writingModes.indexOf(c.ai.vertical)>=0;for(const L1 of S1.sections)if(L1.image)P[L1.image.name]=!0;else{const K1=V6(S1.toString()),B1=L1.fontStack||Z1,M1=z[B1]=z[B1]||{};this.calculateGlyphDependencies(L1.text,M1,U1,this.allowVerticalPlacement,K1)}}}h.get("symbol-placement")==="line"&&(this.features=function(Z){const X={},s1={},Y=[];let c1=0;function p1(Z1){Y.push(Z[Z1]),c1++}function S1(Z1,U1,L1){const K1=s1[Z1];return delete s1[Z1],s1[U1]=K1,Y[K1].geometry[0].pop(),Y[K1].geometry[0]=Y[K1].geometry[0].concat(L1[0]),K1}function H1(Z1,U1,L1){const K1=X[U1];return delete X[U1],X[Z1]=K1,Y[K1].geometry[0].shift(),Y[K1].geometry[0]=L1[0].concat(Y[K1].geometry[0]),K1}function Y1(Z1,U1,L1){const K1=L1?U1[0][U1[0].length-1]:U1[0][0];return`${Z1}:${K1.x}:${K1.y}`}for(let Z1=0;Z1Z1.geometry)}(this.features)),this.sortFeaturesByKey&&this.features.sort((Z,X)=>Z.sortKey-X.sortKey)}update(e,r,a){this.stateDependentLayers.length&&(this.text.programConfigurations.updatePaintArrays(e,r,this.layers,a),this.icon.programConfigurations.updatePaintArrays(e,r,this.layers,a))}isEmpty(){return this.symbolInstances.length===0&&!this.hasRTLText}uploadPending(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload}upload(e){!this.uploaded&&this.hasDebugData()&&(this.textCollisionBox.upload(e),this.iconCollisionBox.upload(e)),this.text.upload(e,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(e,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload),this.uploaded=!0}destroyDebugData(){this.textCollisionBox.destroy(),this.iconCollisionBox.destroy()}destroy(){this.text.destroy(),this.icon.destroy(),this.hasDebugData()&&this.destroyDebugData()}addToLineVertexArray(e,r){const a=this.lineVertexArray.length;if(e.segment!==void 0){let o=e.dist(r[e.segment+1]),h=e.dist(r[e.segment]);const p={};for(let m=e.segment+1;m=0;m--)p[m]={x:r[m].x,y:r[m].y,tileUnitDistanceFromAnchor:h},m>0&&(h+=r[m-1].dist(r[m]));for(let m=0;m0}hasIconData(){return this.icon.segments.get().length>0}hasDebugData(){return this.textCollisionBox&&this.iconCollisionBox}hasTextCollisionBoxData(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0}hasIconCollisionBoxData(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0}addIndicesForPlacedSymbol(e,r){const a=e.placedSymbolArray.get(r),o=a.vertexStartIndex+4*a.numGlyphs;for(let h=a.vertexStartIndex;ho[m]-o[_]||h[_]-h[m]),p}addToSortKeyRanges(e,r){const a=this.sortKeyRanges[this.sortKeyRanges.length-1];a&&a.sortKey===r?a.symbolInstanceEnd=e+1:this.sortKeyRanges.push({sortKey:r,symbolInstanceStart:e,symbolInstanceEnd:e+1})}sortFeatures(e){if(this.sortFeaturesByY&&this.sortedAngle!==e&&!(this.text.segments.get().length>1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(e),this.sortedAngle=e,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(const r of this.symbolInstanceIndexes){const a=this.symbolInstances.get(r);this.featureSortOrder.push(a.featureIndex),[a.rightJustifiedTextSymbolIndex,a.centerJustifiedTextSymbolIndex,a.leftJustifiedTextSymbolIndex].forEach((o,h,p)=>{o>=0&&p.indexOf(o)===h&&this.addIndicesForPlacedSymbol(this.text,o)}),a.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,a.verticalPlacedTextSymbolIndex),a.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,a.placedIconSymbolIndex),a.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,a.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}}}let nt,at;$1("SymbolBucket",F5,{omit:["layers","collisionBoxArray","features","compareText"]}),F5.MAX_GLYPHS=65535,F5.addDynamicAttributes=N8;var j8={get paint(){return at=at||new O2({"icon-opacity":new d4(_1.paint_symbol["icon-opacity"]),"icon-color":new d4(_1.paint_symbol["icon-color"]),"icon-halo-color":new d4(_1.paint_symbol["icon-halo-color"]),"icon-halo-width":new d4(_1.paint_symbol["icon-halo-width"]),"icon-halo-blur":new d4(_1.paint_symbol["icon-halo-blur"]),"icon-translate":new a4(_1.paint_symbol["icon-translate"]),"icon-translate-anchor":new a4(_1.paint_symbol["icon-translate-anchor"]),"text-opacity":new d4(_1.paint_symbol["text-opacity"]),"text-color":new d4(_1.paint_symbol["text-color"],{runtimeType:n7,getOverride:i=>i.textColor,hasOverride:i=>!!i.textColor}),"text-halo-color":new d4(_1.paint_symbol["text-halo-color"]),"text-halo-width":new d4(_1.paint_symbol["text-halo-width"]),"text-halo-blur":new d4(_1.paint_symbol["text-halo-blur"]),"text-translate":new a4(_1.paint_symbol["text-translate"]),"text-translate-anchor":new a4(_1.paint_symbol["text-translate-anchor"])})},get layout(){return nt=nt||new O2({"symbol-placement":new a4(_1.layout_symbol["symbol-placement"]),"symbol-spacing":new a4(_1.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new a4(_1.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new d4(_1.layout_symbol["symbol-sort-key"]),"symbol-z-order":new a4(_1.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new a4(_1.layout_symbol["icon-allow-overlap"]),"icon-overlap":new a4(_1.layout_symbol["icon-overlap"]),"icon-ignore-placement":new a4(_1.layout_symbol["icon-ignore-placement"]),"icon-optional":new a4(_1.layout_symbol["icon-optional"]),"icon-rotation-alignment":new a4(_1.layout_symbol["icon-rotation-alignment"]),"icon-size":new d4(_1.layout_symbol["icon-size"]),"icon-text-fit":new a4(_1.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new a4(_1.layout_symbol["icon-text-fit-padding"]),"icon-image":new d4(_1.layout_symbol["icon-image"]),"icon-rotate":new d4(_1.layout_symbol["icon-rotate"]),"icon-padding":new d4(_1.layout_symbol["icon-padding"]),"icon-keep-upright":new a4(_1.layout_symbol["icon-keep-upright"]),"icon-offset":new d4(_1.layout_symbol["icon-offset"]),"icon-anchor":new d4(_1.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new a4(_1.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new a4(_1.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new a4(_1.layout_symbol["text-rotation-alignment"]),"text-field":new d4(_1.layout_symbol["text-field"]),"text-font":new d4(_1.layout_symbol["text-font"]),"text-size":new d4(_1.layout_symbol["text-size"]),"text-max-width":new d4(_1.layout_symbol["text-max-width"]),"text-line-height":new a4(_1.layout_symbol["text-line-height"]),"text-letter-spacing":new d4(_1.layout_symbol["text-letter-spacing"]),"text-justify":new d4(_1.layout_symbol["text-justify"]),"text-radial-offset":new d4(_1.layout_symbol["text-radial-offset"]),"text-variable-anchor":new a4(_1.layout_symbol["text-variable-anchor"]),"text-variable-anchor-offset":new d4(_1.layout_symbol["text-variable-anchor-offset"]),"text-anchor":new d4(_1.layout_symbol["text-anchor"]),"text-max-angle":new a4(_1.layout_symbol["text-max-angle"]),"text-writing-mode":new a4(_1.layout_symbol["text-writing-mode"]),"text-rotate":new d4(_1.layout_symbol["text-rotate"]),"text-padding":new a4(_1.layout_symbol["text-padding"]),"text-keep-upright":new a4(_1.layout_symbol["text-keep-upright"]),"text-transform":new d4(_1.layout_symbol["text-transform"]),"text-offset":new d4(_1.layout_symbol["text-offset"]),"text-allow-overlap":new a4(_1.layout_symbol["text-allow-overlap"]),"text-overlap":new a4(_1.layout_symbol["text-overlap"]),"text-ignore-placement":new a4(_1.layout_symbol["text-ignore-placement"]),"text-optional":new a4(_1.layout_symbol["text-optional"])})}};class st{constructor(e){if(e.property.overrides===void 0)throw new Error("overrides must be provided to instantiate FormatSectionOverride class");this.type=e.property.overrides?e.property.overrides.runtimeType:y7,this.defaultValue=e}evaluate(e){if(e.formattedSection){const r=this.defaultValue.property.overrides;if(r&&r.hasOverride(e.formattedSection))return r.getOverride(e.formattedSection)}return e.feature&&e.featureState?this.defaultValue.evaluate(e.feature,e.featureState):this.defaultValue.property.specification.default}eachChild(e){this.defaultValue.isConstant()||e(this.defaultValue.value._styleExpression.expression)}outputDefined(){return!1}serialize(){return null}}$1("FormatSectionOverride",st,{omit:["defaultValue"]});class J9 extends w3{constructor(e){super(e,j8)}recalculate(e,r){if(super.recalculate(e,r),this.layout.get("icon-rotation-alignment")==="auto"&&(this.layout._values["icon-rotation-alignment"]=this.layout.get("symbol-placement")!=="point"?"map":"viewport"),this.layout.get("text-rotation-alignment")==="auto"&&(this.layout._values["text-rotation-alignment"]=this.layout.get("symbol-placement")!=="point"?"map":"viewport"),this.layout.get("text-pitch-alignment")==="auto"&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")==="map"?"map":"viewport"),this.layout.get("icon-pitch-alignment")==="auto"&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),this.layout.get("symbol-placement")==="point"){const a=this.layout.get("text-writing-mode");if(a){const o=[];for(const h of a)o.indexOf(h)<0&&o.push(h);this.layout._values["text-writing-mode"]=o}else this.layout._values["text-writing-mode"]=["horizontal"]}this._setPaintOverrides()}getValueAndResolveTokens(e,r,a,o){const h=this.layout.get(e).evaluate(r,{},a,o),p=this._unevaluatedLayout._values[e];return p.isDataDriven()||s3(p.value)||!h?h:function(m,_){return _.replace(/{([^{}]+)}/g,(x,S)=>m&&S in m?String(m[S]):"")}(r.properties,h)}createBucket(e){return new F5(e)}queryRadius(){return 0}queryIntersectsFeature(){throw new Error("Should take a different path in FeatureIndex")}_setPaintOverrides(){for(const e of j8.paint.overridableProperties){if(!J9.hasPaintOverride(this.layout,e))continue;const r=this.paint.get(e),a=new st(r),o=new M0(a,r.property.specification);let h=null;h=r.value.kind==="constant"||r.value.kind==="source"?new A0("source",o):new W3("composite",o,r.value.zoomStops),this.paint._values[e]=new z7(r.property,h,r.parameters)}}_handleOverridablePaintPropertyUpdate(e,r,a){return!(!this.layout||r.isDataDriven()||a.isDataDriven())&&J9.hasPaintOverride(this.layout,e)}static hasPaintOverride(e,r){const a=e.get("text-field"),o=j8.paint.properties[r];let h=!1;const p=m=>{for(const _ of m)if(o.overrides&&o.overrides.hasOverride(_))return void(h=!0)};if(a.value.kind==="constant"&&a.value.value instanceof s2)p(a.value.value.sections);else if(a.value.kind==="source"){const m=x=>{h||(x instanceof C3&&c2(x.value)===U?p(x.value.sections):x instanceof Y0?p(x.sections):x.eachChild(m))},_=a.value;_._styleExpression&&m(_._styleExpression.expression)}return h}}let ot;var sn={get paint(){return ot=ot||new O2({"background-color":new a4(_1.paint_background["background-color"]),"background-pattern":new K5(_1.paint_background["background-pattern"]),"background-opacity":new a4(_1.paint_background["background-opacity"])})}};class on extends w3{constructor(e){super(e,sn)}}let lt;var ln={get paint(){return lt=lt||new O2({"raster-opacity":new a4(_1.paint_raster["raster-opacity"]),"raster-hue-rotate":new a4(_1.paint_raster["raster-hue-rotate"]),"raster-brightness-min":new a4(_1.paint_raster["raster-brightness-min"]),"raster-brightness-max":new a4(_1.paint_raster["raster-brightness-max"]),"raster-saturation":new a4(_1.paint_raster["raster-saturation"]),"raster-contrast":new a4(_1.paint_raster["raster-contrast"]),"raster-resampling":new a4(_1.paint_raster["raster-resampling"]),"raster-fade-duration":new a4(_1.paint_raster["raster-fade-duration"])})}};class cn extends w3{constructor(e){super(e,ln)}}class un extends w3{constructor(e){super(e,{}),this.onAdd=r=>{this.implementation.onAdd&&this.implementation.onAdd(r,r.painter.context.gl)},this.onRemove=r=>{this.implementation.onRemove&&this.implementation.onRemove(r,r.painter.context.gl)},this.implementation=e}is3D(){return this.implementation.renderingMode==="3d"}hasOffscreenPass(){return this.implementation.prerender!==void 0}recalculate(){}updateTransitions(){}hasTransition(){return!1}serialize(){throw new Error("Custom layers cannot be serialized")}}class hn{constructor(e){this._callback=e,this._triggered=!1,typeof MessageChannel<"u"&&(this._channel=new MessageChannel,this._channel.port2.onmessage=()=>{this._triggered=!1,this._callback()})}trigger(){this._triggered||(this._triggered=!0,this._channel?this._channel.port1.postMessage(!0):setTimeout(()=>{this._triggered=!1,this._callback()},0))}remove(){delete this._channel,this._callback=()=>{}}}const $8=63710088e-1;class W6{constructor(e,r){if(isNaN(e)||isNaN(r))throw new Error(`Invalid LngLat object: (${e}, ${r})`);if(this.lng=+e,this.lat=+r,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")}wrap(){return new W6($0(this.lng,-180,180),this.lat)}toArray(){return[this.lng,this.lat]}toString(){return`LngLat(${this.lng}, ${this.lat})`}distanceTo(e){const r=Math.PI/180,a=this.lat*r,o=e.lat*r,h=Math.sin(a)*Math.sin(o)+Math.cos(a)*Math.cos(o)*Math.cos((e.lng-this.lng)*r);return $8*Math.acos(Math.min(h,1))}static convert(e){if(e instanceof W6)return e;if(Array.isArray(e)&&(e.length===2||e.length===3))return new W6(Number(e[0]),Number(e[1]));if(!Array.isArray(e)&&typeof e=="object"&&e!==null)return new W6(Number("lng"in e?e.lng:e.lon),Number(e.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")}}const ct=2*Math.PI*$8;function ut(i){return ct*Math.cos(i*Math.PI/180)}function ht(i){return(180+i)/360}function dt(i){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+i*Math.PI/360)))/360}function pt(i,e){return i/ut(e)}function ft(i){return 360*i-180}function q8(i){return 360/Math.PI*Math.atan(Math.exp((180-360*i)*Math.PI/180))-90}class Y9{constructor(e,r,a=0){this.x=+e,this.y=+r,this.z=+a}static fromLngLat(e,r=0){const a=W6.convert(e);return new Y9(ht(a.lng),dt(a.lat),pt(r,a.lat))}toLngLat(){return new W6(ft(this.x),q8(this.y))}toAltitude(){return this.z*ut(q8(this.y))}meterInMercatorCoordinateUnits(){return 1/ct*(e=q8(this.y),1/Math.cos(e*Math.PI/180));var e}}function mt(i,e,r){var a=2*Math.PI*6378137/256/Math.pow(2,r);return[i*a-2*Math.PI*6378137/2,e*a-2*Math.PI*6378137/2]}class G8{constructor(e,r,a){if(e<0||e>25||a<0||a>=Math.pow(2,e)||r<0||r>=Math.pow(2,e))throw new Error(`x=${r}, y=${a}, z=${e} outside of bounds. 0<=x<${Math.pow(2,e)}, 0<=y<${Math.pow(2,e)} 0<=z<=25 `);this.z=e,this.x=r,this.y=a,this.key=_9(0,e,e,r,a)}equals(e){return this.z===e.z&&this.x===e.x&&this.y===e.y}url(e,r,a){const o=(p=this.y,m=this.z,_=mt(256*(h=this.x),256*(p=Math.pow(2,m)-p-1),m),x=mt(256*(h+1),256*(p+1),m),_[0]+","+_[1]+","+x[0]+","+x[1]);var h,p,m,_,x;const S=function(E,P,z){let L,B="";for(let Z=E;Z>0;Z--)L=1<1?"@2x":"").replace(/{quadkey}/g,S).replace(/{bbox-epsg-3857}/g,o)}isChildOf(e){const r=this.z-e.z;return r>0&&e.x===this.x>>r&&e.y===this.y>>r}getTilePoint(e){const r=Math.pow(2,this.z);return new j1((e.x*r-this.x)*q2,(e.y*r-this.y)*q2)}toString(){return`${this.z}/${this.x}/${this.y}`}}class gt{constructor(e,r){this.wrap=e,this.canonical=r,this.key=_9(e,r.z,r.z,r.x,r.y)}}class D3{constructor(e,r,a,o,h){if(e= z; overscaledZ = ${e}; z = ${a}`);this.overscaledZ=e,this.wrap=r,this.canonical=new G8(a,+o,+h),this.key=_9(r,e,a,o,h)}clone(){return new D3(this.overscaledZ,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)}equals(e){return this.overscaledZ===e.overscaledZ&&this.wrap===e.wrap&&this.canonical.equals(e.canonical)}scaledTo(e){if(e>this.overscaledZ)throw new Error(`targetZ > this.overscaledZ; targetZ = ${e}; overscaledZ = ${this.overscaledZ}`);const r=this.canonical.z-e;return e>this.canonical.z?new D3(e,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new D3(e,this.wrap,e,this.canonical.x>>r,this.canonical.y>>r)}calculateScaledKey(e,r){if(e>this.overscaledZ)throw new Error(`targetZ > this.overscaledZ; targetZ = ${e}; overscaledZ = ${this.overscaledZ}`);const a=this.canonical.z-e;return e>this.canonical.z?_9(this.wrap*+r,e,this.canonical.z,this.canonical.x,this.canonical.y):_9(this.wrap*+r,e,e,this.canonical.x>>a,this.canonical.y>>a)}isChildOf(e){if(e.wrap!==this.wrap)return!1;const r=this.canonical.z-e.canonical.z;return e.overscaledZ===0||e.overscaledZ>r&&e.canonical.y===this.canonical.y>>r}children(e){if(this.overscaledZ>=e)return[new D3(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];const r=this.canonical.z+1,a=2*this.canonical.x,o=2*this.canonical.y;return[new D3(r,this.wrap,r,a,o),new D3(r,this.wrap,r,a+1,o),new D3(r,this.wrap,r,a,o+1),new D3(r,this.wrap,r,a+1,o+1)]}isLessThan(e){return this.wrape.wrap)&&(this.overscaledZe.overscaledZ)&&(this.canonical.xe.canonical.x)&&this.canonical.ythis.max&&(this.max=E),E=this.dim+1||r<-1||r>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(r+1)*this.stride+(e+1)}unpack(e,r,a){return e*this.redFactor+r*this.greenFactor+a*this.blueFactor-this.baseShift}getPixels(){return new L3({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))}backfillBorder(e,r,a){if(this.dim!==e.dim)throw new Error("dem dimension mismatch");let o=r*this.dim,h=r*this.dim+this.dim,p=a*this.dim,m=a*this.dim+this.dim;switch(r){case-1:o=h-1;break;case 1:h=o+1}switch(a){case-1:p=m-1;break;case 1:m=p+1}const _=-r*this.dim,x=-a*this.dim;for(let S=p;S=this._numberToString.length)throw new Error(`Out of bounds. Index requested n=${e} can't be >= this._numberToString.length ${this._numberToString.length}`);return this._numberToString[e]}}class vt{constructor(e,r,a,o,h){this.type="Feature",this._vectorTileFeature=e,e._z=r,e._x=a,e._y=o,this.properties=e.properties,this.id=h}get geometry(){return this._geometry===void 0&&(this._geometry=this._vectorTileFeature.toGeoJSON(this._vectorTileFeature._x,this._vectorTileFeature._y,this._vectorTileFeature._z).geometry),this._geometry}set geometry(e){this._geometry=e}toJSON(){const e={geometry:this.geometry};for(const r in this)r!=="_geometry"&&r!=="_vectorTileFeature"&&(e[r]=this[r]);return e}}class xt{constructor(e,r){this.tileID=e,this.x=e.canonical.x,this.y=e.canonical.y,this.z=e.canonical.z,this.grid=new J3(q2,16,0),this.grid3D=new J3(q2,16,0),this.featureIndexArray=new E1,this.promoteId=r}insert(e,r,a,o,h,p){const m=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(a,o,h);const _=p?this.grid3D:this.grid;for(let x=0;x=0&&E[3]>=0&&_.insert(m,E[0],E[1],E[2],E[3])}}loadVTLayers(){return this.vtLayers||(this.vtLayers=new G6.VectorTile(new L8(this.rawTileData)).layers,this.sourceLayerCoder=new _t(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers}query(e,r,a,o){this.loadVTLayers();const h=e.params||{},p=q2/e.tileSize/e.scale,m=D6(h.filter),_=e.queryGeometry,x=e.queryPadding*p,S=wt(_),E=this.grid.query(S.minX-x,S.minY-x,S.maxX+x,S.maxY+x),P=wt(e.cameraQueryGeometry),z=this.grid3D.query(P.minX-x,P.minY-x,P.maxX+x,P.maxY+x,(Z,X,s1,Y)=>function(c1,p1,S1,H1,Y1){for(const U1 of c1)if(p1<=U1.x&&S1<=U1.y&&H1>=U1.x&&Y1>=U1.y)return!0;const Z1=[new j1(p1,S1),new j1(p1,Y1),new j1(H1,Y1),new j1(H1,S1)];if(c1.length>2){for(const U1 of Z1)if(P5(c1,U1))return!0}for(let U1=0;U1(Y||(Y=c5(c1)),p1.queryIntersectsFeature(_,c1,S1,Y,this.z,e.transform,p,e.pixelPosMatrix)))}return L}loadMatchingFeature(e,r,a,o,h,p,m,_,x,S,E){const P=this.bucketLayerIDs[r];if(p&&!function(Z,X){for(let s1=0;s1=0)return!0;return!1}(p,P))return;const z=this.sourceLayerCoder.decode(a),L=this.vtLayers[z].feature(o);if(h.needGeometry){const Z=u5(L,!0);if(!h.filter(new m2(this.tileID.overscaledZ),Z,this.tileID.canonical))return}else if(!h.filter(new m2(this.tileID.overscaledZ),L))return;const B=this.getId(L,z);for(let Z=0;Z{const m=e instanceof E5?e.get(p):null;return m&&m.evaluate?m.evaluate(r,a,o):m})}function wt(i){let e=1/0,r=1/0,a=-1/0,o=-1/0;for(const h of i)e=Math.min(e,h.x),r=Math.min(r,h.y),a=Math.max(a,h.x),o=Math.max(o,h.y);return{minX:e,minY:r,maxX:a,maxY:o}}function dn(i,e){return e-i}function St(i,e,r,a,o){const h=[];for(let p=0;p=a&&E.x>=a||(S.x>=a?S=new j1(a,S.y+(a-S.x)/(E.x-S.x)*(E.y-S.y))._round():E.x>=a&&(E=new j1(a,S.y+(a-S.x)/(E.x-S.x)*(E.y-S.y))._round()),S.y>=o&&E.y>=o||(S.y>=o?S=new j1(S.x+(o-S.y)/(E.y-S.y)*(E.x-S.x),o)._round():E.y>=o&&(E=new j1(S.x+(o-S.y)/(E.y-S.y)*(E.x-S.x),o)._round()),_&&S.equals(_[_.length-1])||(_=[S],h.push(_)),_.push(E)))))}}return h}$1("FeatureIndex",xt,{omit:["rawTileData","sourceLayerCoder"]});class X6 extends j1{constructor(e,r,a,o){super(e,r),this.angle=a,o!==void 0&&(this.segment=o)}clone(){return new X6(this.x,this.y,this.angle,this.segment)}}function Tt(i,e,r,a,o){if(e.segment===void 0||r===0)return!0;let h=e,p=e.segment+1,m=0;for(;m>-r/2;){if(p--,p<0)return!1;m-=i[p].dist(h),h=i[p]}m+=i[p].dist(i[p+1]),p++;const _=[];let x=0;for(;ma;)x-=_.shift().angleDelta;if(x>o)return!1;p++,m+=S.dist(E)}return!0}function It(i){let e=0;for(let r=0;rx){const L=(x-_)/z,B=c7.number(E.x,P.x,L),Z=c7.number(E.y,P.y,L),X=new X6(B,Z,P.angleTo(E),S);return X._round(),!p||Tt(i,X,m,p,e)?X:void 0}_+=z}}function fn(i,e,r,a,o,h,p,m,_){const x=Et(a,h,p),S=Ct(a,o),E=S*p,P=i[0].x===0||i[0].x===_||i[0].y===0||i[0].y===_;return e-E=0&&c1<_&&p1>=0&&p1<_&&P-x>=0&&P+x<=S){const S1=new X6(c1,p1,s1,L);S1._round(),a&&!Tt(i,S1,h,a,o)||z.push(S1)}}E+=X}return m||z.length||p||(z=Pt(i,E/2,r,a,o,h,p,!0,_)),z}$1("Anchor",X6);const R5=h3;function Mt(i,e,r,a){const o=[],h=i.image,p=h.pixelRatio,m=h.paddedRect.w-2*R5,_=h.paddedRect.h-2*R5,x=i.right-i.left,S=i.bottom-i.top,E=h.stretchX||[[0,m]],P=h.stretchY||[[0,_]],z=(L1,K1)=>L1+K1[1]-K1[0],L=E.reduce(z,0),B=P.reduce(z,0),Z=m-L,X=_-B;let s1=0,Y=L,c1=0,p1=B,S1=0,H1=Z,Y1=0,Z1=X;if(h.content&&a){const L1=h.content;s1=Q9(E,0,L1[0]),c1=Q9(P,0,L1[1]),Y=Q9(E,L1[0],L1[2]),p1=Q9(P,L1[1],L1[3]),S1=L1[0]-s1,Y1=L1[1]-c1,H1=L1[2]-L1[0]-Y,Z1=L1[3]-L1[1]-p1}const U1=(L1,K1,B1,M1)=>{const s4=e8(L1.stretch-s1,Y,x,i.left),i4=t8(L1.fixed-S1,H1,L1.stretch,L),C4=e8(K1.stretch-c1,p1,S,i.top),y2=t8(K1.fixed-Y1,Z1,K1.stretch,B),w2=e8(B1.stretch-s1,Y,x,i.left),J2=t8(B1.fixed-S1,H1,B1.stretch,L),T3=e8(M1.stretch-c1,p1,S,i.top),J7=t8(M1.fixed-Y1,Z1,M1.stretch,B),G2=new j1(s4,C4),p7=new j1(w2,C4),I7=new j1(w2,T3),Y7=new j1(s4,T3),Q7=new j1(i4/p,y2/p),Y2=new j1(J2/p,J7/p),Q2=e*Math.PI/180;if(Q2){const F7=Math.sin(Q2),d3=Math.cos(Q2),p3=[d3,-F7,F7,d3];G2._matMult(p3),p7._matMult(p3),Y7._matMult(p3),I7._matMult(p3)}const D7=L1.stretch+L1.fixed,e3=K1.stretch+K1.fixed;return{tl:G2,tr:p7,bl:Y7,br:I7,tex:{x:h.paddedRect.x+R5+D7,y:h.paddedRect.y+R5+e3,w:B1.stretch+B1.fixed-D7,h:M1.stretch+M1.fixed-e3},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:Q7,pixelOffsetBR:Y2,minFontScaleX:H1/p/x,minFontScaleY:Z1/p/S,isSDF:r}};if(a&&(h.stretchX||h.stretchY)){const L1=At(E,Z,L),K1=At(P,X,B);for(let B1=0;B10&&(L=Math.max(10,L),this.circleDiameter=L)}else{let E=p.top*m-_[0],P=p.bottom*m+_[2],z=p.left*m-_[3],L=p.right*m+_[1];const B=p.collisionPadding;if(B&&(z-=B[0]*m,E-=B[1]*m,L+=B[2]*m,P+=B[3]*m),S){const Z=new j1(z,E),X=new j1(L,E),s1=new j1(z,P),Y=new j1(L,P),c1=S*Math.PI/180;Z._rotate(c1),X._rotate(c1),s1._rotate(c1),Y._rotate(c1),z=Math.min(Z.x,X.x,s1.x,Y.x),L=Math.max(Z.x,X.x,s1.x,Y.x),E=Math.min(Z.y,X.y,s1.y,Y.y),P=Math.max(Z.y,X.y,s1.y,Y.y)}e.emplaceBack(r.x,r.y,z,E,L,P,a,o,h)}this.boxEndIndex=e.length}}class mn{constructor(e=[],r=gn){if(this.data=e,this.length=this.data.length,this.compare=r,this.length>0)for(let a=(this.length>>1)-1;a>=0;a--)this._down(a)}push(e){this.data.push(e),this.length++,this._up(this.length-1)}pop(){if(this.length===0)return;const e=this.data[0],r=this.data.pop();return this.length--,this.length>0&&(this.data[0]=r,this._down(0)),e}peek(){return this.data[0]}_up(e){const{data:r,compare:a}=this,o=r[e];for(;e>0;){const h=e-1>>1,p=r[h];if(a(o,p)>=0)break;r[e]=p,e=h}r[e]=o}_down(e){const{data:r,compare:a}=this,o=this.length>>1,h=r[e];for(;e=0)break;r[e]=m,e=p}r[e]=h}}function gn(i,e){return ie?1:0}function yn(i,e=1,r=!1){let a=1/0,o=1/0,h=-1/0,p=-1/0;const m=i[0];for(let z=0;zh)&&(h=L.x),(!z||L.y>p)&&(p=L.y)}const _=Math.min(h-a,p-o);let x=_/2;const S=new mn([],_n);if(_===0)return new j1(a,o);for(let z=a;zE.d||!E.d)&&(E=z,r&&console.log("found best %d after %d probes",Math.round(1e4*z.d)/1e4,P)),z.max-E.d<=e||(x=z.h/2,S.push(new B5(z.p.x-x,z.p.y-x,x,i)),S.push(new B5(z.p.x+x,z.p.y-x,x,i)),S.push(new B5(z.p.x-x,z.p.y+x,x,i)),S.push(new B5(z.p.x+x,z.p.y+x,x,i)),P+=4)}return r&&(console.log(`num probes: ${P}`),console.log(`best distance: ${E.d}`)),E.p}function _n(i,e){return e.max-i.max}function B5(i,e,r,a){this.p=new j1(i,e),this.h=r,this.d=function(o,h){let p=!1,m=1/0;for(let _=0;_o.y!=L.y>o.y&&o.x<(L.x-z.x)*(o.y-z.y)/(L.y-z.y)+z.x&&(p=!p),m=Math.min(m,de(o,z,L))}}return(p?1:-1)*Math.sqrt(m)}(this.p,a),this.max=this.d+this.h*Math.SQRT2}var T7;c.aq=void 0,(T7=c.aq||(c.aq={}))[T7.center=1]="center",T7[T7.left=2]="left",T7[T7.right=3]="right",T7[T7.top=4]="top",T7[T7.bottom=5]="bottom",T7[T7["top-left"]=6]="top-left",T7[T7["top-right"]=7]="top-right",T7[T7["bottom-left"]=8]="bottom-left",T7[T7["bottom-right"]=9]="bottom-right";const K6=7,Z8=Number.POSITIVE_INFINITY;function kt(i,e){return e[1]!==Z8?function(r,a,o){let h=0,p=0;switch(a=Math.abs(a),o=Math.abs(o),r){case"top-right":case"top-left":case"top":p=o-K6;break;case"bottom-right":case"bottom-left":case"bottom":p=-o+K6}switch(r){case"top-right":case"bottom-right":case"right":h=-a;break;case"top-left":case"bottom-left":case"left":h=a}return[h,p]}(i,e[0],e[1]):function(r,a){let o=0,h=0;a<0&&(a=0);const p=a/Math.SQRT2;switch(r){case"top-right":case"top-left":h=p-K6;break;case"bottom-right":case"bottom-left":h=-p+K6;break;case"bottom":h=-a+K6;break;case"top":h=a-K6}switch(r){case"top-right":case"bottom-right":o=-p;break;case"top-left":case"bottom-left":o=p;break;case"left":o=a;break;case"right":o=-a}return[o,h]}(i,e[0])}function zt(i,e,r){var a;const o=i.layout,h=(a=o.get("text-variable-anchor-offset"))===null||a===void 0?void 0:a.evaluate(e,{},r);if(h){const m=h.values,_=[];for(let x=0;xP*K2);S.startsWith("top")?E[1]-=K6:S.startsWith("bottom")&&(E[1]+=K6),_[x+1]=E}return new j2(_)}const p=o.get("text-variable-anchor");if(p){let m;m=i._unevaluatedLayout.getValue("text-radial-offset")!==void 0?[o.get("text-radial-offset").evaluate(e,{},r)*K2,Z8]:o.get("text-offset").evaluate(e,{},r).map(x=>x*K2);const _=[];for(const x of p)_.push(x,kt(x,m));return new j2(_)}return null}function H8(i){switch(i){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}function vn(i,e,r,a,o,h,p,m,_,x,S){let E=h.textMaxSize.evaluate(e,{});E===void 0&&(E=p);const P=i.layers[0].layout,z=P.get("icon-offset").evaluate(e,{},S),L=Dt(r.horizontal),B=p/24,Z=i.tilePixelRatio*B,X=i.tilePixelRatio*E/24,s1=i.tilePixelRatio*m,Y=i.tilePixelRatio*P.get("symbol-spacing"),c1=P.get("text-padding")*i.tilePixelRatio,p1=function(M1,s4,i4,C4=1){const y2=M1.get("icon-padding").evaluate(s4,{},i4),w2=y2&&y2.values;return[w2[0]*C4,w2[1]*C4,w2[2]*C4,w2[3]*C4]}(P,e,S,i.tilePixelRatio),S1=P.get("text-max-angle")/180*Math.PI,H1=P.get("text-rotation-alignment")!=="viewport"&&P.get("symbol-placement")!=="point",Y1=P.get("icon-rotation-alignment")==="map"&&P.get("symbol-placement")!=="point",Z1=P.get("symbol-placement"),U1=Y/2,L1=P.get("icon-text-fit");let K1;a&&L1!=="none"&&(i.allowVerticalPlacement&&r.vertical&&(K1=it(a,r.vertical,L1,P.get("icon-text-fit-padding"),z,B)),L&&(a=it(a,L,L1,P.get("icon-text-fit-padding"),z,B)));const B1=(M1,s4)=>{s4.x<0||s4.x>=q2||s4.y<0||s4.y>=q2||function(i4,C4,y2,w2,J2,T3,J7,G2,p7,I7,Y7,Q7,Y2,Q2,D7,e3,F7,d3,p3,e7,B4,R7,E7,t7,r0){const _0=i4.addToLineVertexArray(C4,y2);let v0,f6,n0,F3,f3=0,m6=0,b9=0,Ot=0,te=-1,ie=-1;const g6={};let Nt=u6("");if(i4.allowVerticalPlacement&&w2.vertical){const B7=G2.layout.get("text-rotate").evaluate(B4,{},t7)+90;n0=new i8(p7,C4,I7,Y7,Q7,w2.vertical,Y2,Q2,D7,B7),J7&&(F3=new i8(p7,C4,I7,Y7,Q7,J7,F7,d3,D7,B7))}if(J2){const B7=G2.layout.get("icon-rotate").evaluate(B4,{}),R3=G2.layout.get("icon-text-fit")!=="none",d5=Mt(J2,B7,E7,R3),b0=J7?Mt(J7,B7,E7,R3):void 0;f6=new i8(p7,C4,I7,Y7,Q7,J2,F7,d3,!1,B7),f3=4*d5.length;const p5=i4.iconSizeData;let N0=null;p5.kind==="source"?(N0=[O0*G2.layout.get("icon-size").evaluate(B4,{})],N0[0]>H6&&P2(`${i4.layerIds[0]}: Value for "icon-size" is >= ${y9}. Reduce your "icon-size".`)):p5.kind==="composite"&&(N0=[O0*R7.compositeIconSizes[0].evaluate(B4,{},t7),O0*R7.compositeIconSizes[1].evaluate(B4,{},t7)],(N0[0]>H6||N0[1]>H6)&&P2(`${i4.layerIds[0]}: Value for "icon-size" is >= ${y9}. Reduce your "icon-size".`)),i4.addSymbols(i4.icon,d5,N0,e7,p3,B4,c.ai.none,C4,_0.lineStartIndex,_0.lineLength,-1,t7),te=i4.icon.placedSymbolArray.length-1,b0&&(m6=4*b0.length,i4.addSymbols(i4.icon,b0,N0,e7,p3,B4,c.ai.vertical,C4,_0.lineStartIndex,_0.lineLength,-1,t7),ie=i4.icon.placedSymbolArray.length-1)}const Vt=Object.keys(w2.horizontal);for(const B7 of Vt){const R3=w2.horizontal[B7];if(!v0){Nt=u6(R3.text);const b0=G2.layout.get("text-rotate").evaluate(B4,{},t7);v0=new i8(p7,C4,I7,Y7,Q7,R3,Y2,Q2,D7,b0)}const d5=R3.positionedLines.length===1;if(b9+=Lt(i4,C4,R3,T3,G2,D7,B4,e3,_0,w2.vertical?c.ai.horizontal:c.ai.horizontalOnly,d5?Vt:[B7],g6,te,R7,t7),d5)break}w2.vertical&&(Ot+=Lt(i4,C4,w2.vertical,T3,G2,D7,B4,e3,_0,c.ai.vertical,["vertical"],g6,ie,R7,t7));const wn=v0?v0.boxStartIndex:i4.collisionBoxArray.length,Sn=v0?v0.boxEndIndex:i4.collisionBoxArray.length,Tn=n0?n0.boxStartIndex:i4.collisionBoxArray.length,In=n0?n0.boxEndIndex:i4.collisionBoxArray.length,En=f6?f6.boxStartIndex:i4.collisionBoxArray.length,Cn=f6?f6.boxEndIndex:i4.collisionBoxArray.length,Pn=F3?F3.boxStartIndex:i4.collisionBoxArray.length,Mn=F3?F3.boxEndIndex:i4.collisionBoxArray.length;let x0=-1;const n8=(B7,R3)=>B7&&B7.circleDiameter?Math.max(B7.circleDiameter,R3):R3;x0=n8(v0,x0),x0=n8(n0,x0),x0=n8(f6,x0),x0=n8(F3,x0);const Ut=x0>-1?1:0;Ut&&(x0*=r0/K2),i4.glyphOffsetArray.length>=F5.MAX_GLYPHS&&P2("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),B4.sortKey!==void 0&&i4.addToSortKeyRanges(i4.symbolInstances.length,B4.sortKey);const An=zt(G2,B4,t7),[kn,zn]=function(B7,R3){const d5=B7.length,b0=R3==null?void 0:R3.values;if((b0==null?void 0:b0.length)>0)for(let p5=0;p5=0?g6.right:-1,g6.center>=0?g6.center:-1,g6.left>=0?g6.left:-1,g6.vertical||-1,te,ie,Nt,wn,Sn,Tn,In,En,Cn,Pn,Mn,I7,b9,Ot,f3,m6,Ut,0,Y2,x0,kn,zn)}(i,s4,M1,r,a,o,K1,i.layers[0],i.collisionBoxArray,e.index,e.sourceLayerIndex,i.index,Z,[c1,c1,c1,c1],H1,_,s1,p1,Y1,z,e,h,x,S,p)};if(Z1==="line")for(const M1 of St(e.geometry,0,0,q2,q2)){const s4=fn(M1,Y,S1,r.vertical||L,a,24,X,i.overscaling,q2);for(const i4 of s4)L&&xn(i,L.text,U1,i4)||B1(M1,i4)}else if(Z1==="line-center"){for(const M1 of e.geometry)if(M1.length>1){const s4=pn(M1,S1,r.vertical||L,a,24,X);s4&&B1(M1,s4)}}else if(e.type==="Polygon")for(const M1 of I8(e.geometry,0)){const s4=yn(M1,16);B1(M1[0],new X6(s4.x,s4.y,0))}else if(e.type==="LineString")for(const M1 of e.geometry)B1(M1,new X6(M1[0].x,M1[0].y,0));else if(e.type==="Point")for(const M1 of e.geometry)for(const s4 of M1)B1([s4],new X6(s4.x,s4.y,0))}function Lt(i,e,r,a,o,h,p,m,_,x,S,E,P,z,L){const B=function(s1,Y,c1,p1,S1,H1,Y1,Z1){const U1=p1.layout.get("text-rotate").evaluate(H1,{})*Math.PI/180,L1=[];for(const K1 of Y.positionedLines)for(const B1 of K1.positionedGlyphs){if(!B1.rect)continue;const M1=B1.rect||{};let s4=Xe+1,i4=!0,C4=1,y2=0;const w2=(S1||Z1)&&B1.vertical,J2=B1.metrics.advance*B1.scale/2;if(Z1&&Y.verticalizable&&(y2=K1.lineOffset/2-(B1.imageName?-(K2-B1.metrics.width*B1.scale)/2:(B1.scale-1)*K2)),B1.imageName){const e7=Y1[B1.imageName];i4=e7.sdf,C4=e7.pixelRatio,s4=h3/C4}const T3=S1?[B1.x+J2,B1.y]:[0,0];let J7=S1?[0,0]:[B1.x+J2+c1[0],B1.y+c1[1]-y2],G2=[0,0];w2&&(G2=J7,J7=[0,0]);const p7=B1.metrics.isDoubleResolution?2:1,I7=(B1.metrics.left-s4)*B1.scale-J2+J7[0],Y7=(-B1.metrics.top-s4)*B1.scale+J7[1],Q7=I7+M1.w/p7*B1.scale/C4,Y2=Y7+M1.h/p7*B1.scale/C4,Q2=new j1(I7,Y7),D7=new j1(Q7,Y7),e3=new j1(I7,Y2),F7=new j1(Q7,Y2);if(w2){const e7=new j1(-J2,J2-m9),B4=-Math.PI/2,R7=K2/2-J2,E7=new j1(5-m9-R7,-(B1.imageName?R7:0)),t7=new j1(...G2);Q2._rotateAround(B4,e7)._add(E7)._add(t7),D7._rotateAround(B4,e7)._add(E7)._add(t7),e3._rotateAround(B4,e7)._add(E7)._add(t7),F7._rotateAround(B4,e7)._add(E7)._add(t7)}if(U1){const e7=Math.sin(U1),B4=Math.cos(U1),R7=[B4,-e7,e7,B4];Q2._matMult(R7),D7._matMult(R7),e3._matMult(R7),F7._matMult(R7)}const d3=new j1(0,0),p3=new j1(0,0);L1.push({tl:Q2,tr:D7,bl:e3,br:F7,tex:M1,writingMode:Y.writingMode,glyphOffset:T3,sectionIndex:B1.sectionIndex,isSDF:i4,pixelOffsetTL:d3,pixelOffsetBR:p3,minFontScaleX:0,minFontScaleY:0})}return L1}(0,r,m,o,h,p,a,i.allowVerticalPlacement),Z=i.textSizeData;let X=null;Z.kind==="source"?(X=[O0*o.layout.get("text-size").evaluate(p,{})],X[0]>H6&&P2(`${i.layerIds[0]}: Value for "text-size" is >= ${y9}. Reduce your "text-size".`)):Z.kind==="composite"&&(X=[O0*z.compositeTextSizes[0].evaluate(p,{},L),O0*z.compositeTextSizes[1].evaluate(p,{},L)],(X[0]>H6||X[1]>H6)&&P2(`${i.layerIds[0]}: Value for "text-size" is >= ${y9}. Reduce your "text-size".`)),i.addSymbols(i.text,B,X,m,h,p,x,e,_.lineStartIndex,_.lineLength,P,L);for(const s1 of S)E[s1]=i.text.placedSymbolArray.length-1;return 4*B.length}function Dt(i){for(const e in i)return i[e];return null}function xn(i,e,r,a){const o=i.compareText;if(e in o){const h=o[e];for(let p=h.length-1;p>=0;p--)if(a.dist(h[p])>4;if(o!==1)throw new Error(`Got v${o} data when expected v1.`);const h=Ft[15&a];if(!h)throw new Error("Unrecognized array type.");const[p]=new Uint16Array(e,2,1),[m]=new Uint32Array(e,4,1);return new W8(m,p,h,e)}constructor(e,r=64,a=Float64Array,o){if(isNaN(e)||e<0)throw new Error(`Unpexpected numItems value: ${e}.`);this.numItems=+e,this.nodeSize=Math.min(Math.max(+r,2),65535),this.ArrayType=a,this.IndexArrayType=e<65536?Uint16Array:Uint32Array;const h=Ft.indexOf(this.ArrayType),p=2*e*this.ArrayType.BYTES_PER_ELEMENT,m=e*this.IndexArrayType.BYTES_PER_ELEMENT,_=(8-m%8)%8;if(h<0)throw new Error(`Unexpected typed array class: ${a}.`);o&&o instanceof ArrayBuffer?(this.data=o,this.ids=new this.IndexArrayType(this.data,8,e),this.coords=new this.ArrayType(this.data,8+m+_,2*e),this._pos=2*e,this._finished=!0):(this.data=new ArrayBuffer(8+p+m+_),this.ids=new this.IndexArrayType(this.data,8,e),this.coords=new this.ArrayType(this.data,8+m+_,2*e),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,16+h]),new Uint16Array(this.data,2,1)[0]=r,new Uint32Array(this.data,4,1)[0]=e)}add(e,r){const a=this._pos>>1;return this.ids[a]=a,this.coords[this._pos++]=e,this.coords[this._pos++]=r,a}finish(){const e=this._pos>>1;if(e!==this.numItems)throw new Error(`Added ${e} items when expected ${this.numItems}.`);return X8(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(e,r,a,o){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:h,coords:p,nodeSize:m}=this,_=[0,h.length-1,0],x=[];for(;_.length;){const S=_.pop()||0,E=_.pop()||0,P=_.pop()||0;if(E-P<=m){for(let Z=P;Z<=E;Z++){const X=p[2*Z],s1=p[2*Z+1];X>=e&&X<=a&&s1>=r&&s1<=o&&x.push(h[Z])}continue}const z=P+E>>1,L=p[2*z],B=p[2*z+1];L>=e&&L<=a&&B>=r&&B<=o&&x.push(h[z]),(S===0?e<=L:r<=B)&&(_.push(P),_.push(z-1),_.push(1-S)),(S===0?a>=L:o>=B)&&(_.push(z+1),_.push(E),_.push(1-S))}return x}within(e,r,a){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:o,coords:h,nodeSize:p}=this,m=[0,o.length-1,0],_=[],x=a*a;for(;m.length;){const S=m.pop()||0,E=m.pop()||0,P=m.pop()||0;if(E-P<=p){for(let Z=P;Z<=E;Z++)Bt(h[2*Z],h[2*Z+1],e,r)<=x&&_.push(o[Z]);continue}const z=P+E>>1,L=h[2*z],B=h[2*z+1];Bt(L,B,e,r)<=x&&_.push(o[z]),(S===0?e-a<=L:r-a<=B)&&(m.push(P),m.push(z-1),m.push(1-S)),(S===0?e+a>=L:r+a>=B)&&(m.push(z+1),m.push(E),m.push(1-S))}return _}}function X8(i,e,r,a,o,h){if(o-a<=r)return;const p=a+o>>1;Rt(i,e,p,a,o,h),X8(i,e,r,a,p-1,1-h),X8(i,e,r,p+1,o,1-h)}function Rt(i,e,r,a,o,h){for(;o>a;){if(o-a>600){const x=o-a+1,S=r-a+1,E=Math.log(x),P=.5*Math.exp(2*E/3),z=.5*Math.sqrt(E*P*(x-P)/x)*(S-x/2<0?-1:1);Rt(i,e,r,Math.max(a,Math.floor(r-S*P/x+z)),Math.min(o,Math.floor(r+(x-S)*P/x+z)),h)}const p=e[2*r+h];let m=a,_=o;for(v9(i,e,a,r),e[2*o+h]>p&&v9(i,e,a,o);m<_;){for(v9(i,e,m,_),m++,_--;e[2*m+h]p;)_--}e[2*a+h]===p?v9(i,e,a,_):(_++,v9(i,e,_,o)),_<=r&&(a=_+1),r<=_&&(o=_-1)}}function v9(i,e,r,a){K8(i,r,a),K8(e,2*r,2*a),K8(e,2*r+1,2*a+1)}function K8(i,e,r){const a=i[e];i[e]=i[r],i[r]=a}function Bt(i,e,r,a){const o=i-r,h=e-a;return o*o+h*h}var J8;c.bh=void 0,(J8=c.bh||(c.bh={})).create="create",J8.load="load",J8.fullLoad="fullLoad";let r8=null,x9=[];const Y8=1e3/60,Q8="loadTime",ee="fullLoadTime",bn={mark(i){performance.mark(i)},frame(i){const e=i;r8!=null&&x9.push(e-r8),r8=e},clearMetrics(){r8=null,x9=[],performance.clearMeasures(Q8),performance.clearMeasures(ee);for(const i in c.bh)performance.clearMarks(c.bh[i])},getPerformanceMetrics(){performance.measure(Q8,c.bh.create,c.bh.load),performance.measure(ee,c.bh.create,c.bh.fullLoad);const i=performance.getEntriesByName(Q8)[0].duration,e=performance.getEntriesByName(ee)[0].duration,r=x9.length,a=1/(x9.reduce((h,p)=>h+p,0)/r/1e3),o=x9.filter(h=>h>Y8).reduce((h,p)=>h+(p-Y8)/Y8,0);return{loadTime:i,fullLoadTime:e,fps:a,percentDroppedFrames:o/(r+o)*100,totalFrames:r}}};c.$=function(i,e,r){var a,o,h,p,m,_,x,S,E,P,z,L,B=r[0],Z=r[1],X=r[2];return e===i?(i[12]=e[0]*B+e[4]*Z+e[8]*X+e[12],i[13]=e[1]*B+e[5]*Z+e[9]*X+e[13],i[14]=e[2]*B+e[6]*Z+e[10]*X+e[14],i[15]=e[3]*B+e[7]*Z+e[11]*X+e[15]):(o=e[1],h=e[2],p=e[3],m=e[4],_=e[5],x=e[6],S=e[7],E=e[8],P=e[9],z=e[10],L=e[11],i[0]=a=e[0],i[1]=o,i[2]=h,i[3]=p,i[4]=m,i[5]=_,i[6]=x,i[7]=S,i[8]=E,i[9]=P,i[10]=z,i[11]=L,i[12]=a*B+m*Z+E*X+e[12],i[13]=o*B+_*Z+P*X+e[13],i[14]=h*B+x*Z+z*X+e[14],i[15]=p*B+S*Z+L*X+e[15]),i},c.A=M5,c.B=c7,c.C=class{constructor(i,e,r){this.receive=a=>{const o=a.data,h=o.id;if(h&&(!o.targetMapId||this.mapId===o.targetMapId))if(o.type===""){delete this.tasks[h];const p=this.cancelCallbacks[h];delete this.cancelCallbacks[h],p&&p()}else m7()||o.mustQueue?(this.tasks[h]=o,this.taskQueue.push(h),this.invoker.trigger()):this.processTask(h,o)},this.process=()=>{if(!this.taskQueue.length)return;const a=this.taskQueue.shift(),o=this.tasks[a];delete this.tasks[a],this.taskQueue.length&&this.invoker.trigger(),o&&this.processTask(a,o)},this.target=i,this.parent=e,this.mapId=r,this.callbacks={},this.tasks={},this.taskQueue=[],this.cancelCallbacks={},this.invoker=new hn(this.process),this.target.addEventListener("message",this.receive,!1),this.globalScope=m7()?i:window}send(i,e,r,a,o=!1){const h=Math.round(1e18*Math.random()).toString(36).substring(0,10);r&&(this.callbacks[h]=r);const p=[],m={id:h,type:i,hasCallback:!!r,targetMapId:a,mustQueue:o,sourceMapId:this.mapId,data:H7(e,p)};return this.target.postMessage(m,{transfer:p}),{cancel:()=>{r&&delete this.callbacks[h],this.target.postMessage({id:h,type:"",targetMapId:a,sourceMapId:this.mapId})}}}processTask(i,e){if(e.type===""){const r=this.callbacks[i];delete this.callbacks[i],r&&(e.error?r(z3(e.error)):r(null,z3(e.data)))}else{let r=!1;const a=[],o=e.hasCallback?(m,_)=>{r=!0,delete this.cancelCallbacks[i];const x={id:i,type:"",sourceMapId:this.mapId,error:m?H7(m):null,data:H7(_,a)};this.target.postMessage(x,{transfer:a})}:m=>{r=!0};let h=null;const p=z3(e.data);if(this.parent[e.type])h=this.parent[e.type](e.sourceMapId,p,o);else if("getWorkerSource"in this.parent){const m=e.type.split(".");h=this.parent.getWorkerSource(e.sourceMapId,m[0],p.source)[m[1]](p,o)}else o(new Error(`Could not find function ${e.type}`));!r&&h&&h.cancel&&(this.cancelCallbacks[i]=h.cancel)}}remove(){this.invoker.remove(),this.target.removeEventListener("message",this.receive,!1)}},c.D=a4,c.E=l0,c.F=function(i,e){const r={};for(let a=0;a{}}},c.Y=z1,c.Z=function(){var i=new M5(16);return M5!=Float32Array&&(i[1]=0,i[2]=0,i[3]=0,i[4]=0,i[6]=0,i[7]=0,i[8]=0,i[9]=0,i[11]=0,i[12]=0,i[13]=0,i[14]=0),i[0]=1,i[5]=1,i[10]=1,i[15]=1,i},c._=W1,c.a=s0,c.a$=class extends A{},c.a0=function(i,e,r){var a=r[0],o=r[1],h=r[2];return i[0]=e[0]*a,i[1]=e[1]*a,i[2]=e[2]*a,i[3]=e[3]*a,i[4]=e[4]*o,i[5]=e[5]*o,i[6]=e[6]*o,i[7]=e[7]*o,i[8]=e[8]*h,i[9]=e[9]*h,i[10]=e[10]*h,i[11]=e[11]*h,i[12]=e[12],i[13]=e[13],i[14]=e[14],i[15]=e[15],i},c.a1=ge,c.a2=function(){return y6++},c.a3=j,c.a4=F5,c.a5=function(){c3.isLoading()||c3.isLoaded()||W5()!=="deferred"||k9()},c.a6=D6,c.a7=u5,c.a8=m2,c.a9=vt,c.aA=n5,c.aB=function(i){i=i.slice();const e=Object.create(null);for(let r=0;r{a[p.source]?r.push({command:D4.removeLayer,args:[p.id]}):h.push(p)}),r=r.concat(o),function(p,m,_){m=m||[];const x=(p=p||[]).map($7),S=m.map($7),E=p.reduce(m3,{}),P=m.reduce(m3,{}),z=x.slice(),L=Object.create(null);let B,Z,X,s1,Y,c1,p1;for(B=0,Z=0;B@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,(r,a,o,h)=>{const p=o||h;return e[a]=!p||p.toLowerCase(),""}),e["max-age"]){const r=parseInt(e["max-age"],10);isNaN(r)?delete e["max-age"]:e["max-age"]=r}return e},c.ab=function(i,e){const r=[];for(const a in i)a in e||r.push(a);return r},c.ac=function(i){if(I3==null){const e=i.navigator?i.navigator.userAgent:null;I3=!!i.safari||!(!e||!(/\b(iPad|iPhone|iPod)\b/.test(e)||e.match("Safari")&&!e.match("Chrome")))}return I3},c.ad=O7,c.ae=function(i,e,r){var a=Math.sin(r),o=Math.cos(r),h=e[0],p=e[1],m=e[2],_=e[3],x=e[4],S=e[5],E=e[6],P=e[7];return e!==i&&(i[8]=e[8],i[9]=e[9],i[10]=e[10],i[11]=e[11],i[12]=e[12],i[13]=e[13],i[14]=e[14],i[15]=e[15]),i[0]=h*o+x*a,i[1]=p*o+S*a,i[2]=m*o+E*a,i[3]=_*o+P*a,i[4]=x*o-h*a,i[5]=S*o-p*a,i[6]=E*o-m*a,i[7]=P*o-_*a,i},c.af=function(i){var e=new M5(16);return e[0]=i[0],e[1]=i[1],e[2]=i[2],e[3]=i[3],e[4]=i[4],e[5]=i[5],e[6]=i[6],e[7]=i[7],e[8]=i[8],e[9]=i[9],e[10]=i[10],e[11]=i[11],e[12]=i[12],e[13]=i[13],e[14]=i[14],e[15]=i[15],e},c.ag=U9,c.ah=function(i,e){let r=0,a=0;if(i.kind==="constant")a=i.layoutSize;else if(i.kind!=="source"){const{interpolationType:o,minZoom:h,maxZoom:p}=i,m=o?O7(x7.interpolationFactor(o,e,h,p),0,1):0;i.kind==="camera"?a=c7.number(i.minSize,i.maxSize,m):r=m}return{uSizeT:r,uSize:a}},c.aj=function(i,{uSize:e,uSizeT:r},{lowerSize:a,upperSize:o}){return i.kind==="source"?a/O0:i.kind==="composite"?c7.number(a/O0,o/O0,r):e},c.ak=N8,c.al=function(i,e,r,a){const o=e.y-i.y,h=e.x-i.x,p=a.y-r.y,m=a.x-r.x,_=p*h-m*o;if(_===0)return null;const x=(m*(i.y-r.y)-p*(i.x-r.x))/_;return new j1(i.x+x*h,i.y+x*o)},c.am=St,c.an=ue,c.ao=_8,c.ap=K2,c.ar=O8,c.as=function(i,e){var r=e[0],a=e[1],o=e[2],h=e[3],p=e[4],m=e[5],_=e[6],x=e[7],S=e[8],E=e[9],P=e[10],z=e[11],L=e[12],B=e[13],Z=e[14],X=e[15],s1=r*m-a*p,Y=r*_-o*p,c1=r*x-h*p,p1=a*_-o*m,S1=a*x-h*m,H1=o*x-h*_,Y1=S*B-E*L,Z1=S*Z-P*L,U1=S*X-z*L,L1=E*Z-P*B,K1=E*X-z*B,B1=P*X-z*Z,M1=s1*B1-Y*K1+c1*L1+p1*U1-S1*Z1+H1*Y1;return M1?(i[0]=(m*B1-_*K1+x*L1)*(M1=1/M1),i[1]=(o*K1-a*B1-h*L1)*M1,i[2]=(B*H1-Z*S1+X*p1)*M1,i[3]=(P*S1-E*H1-z*p1)*M1,i[4]=(_*U1-p*B1-x*Z1)*M1,i[5]=(r*B1-o*U1+h*Z1)*M1,i[6]=(Z*c1-L*H1-X*Y)*M1,i[7]=(S*H1-P*c1+z*Y)*M1,i[8]=(p*K1-m*U1+x*Y1)*M1,i[9]=(a*U1-r*K1-h*Y1)*M1,i[10]=(L*S1-B*c1+X*s1)*M1,i[11]=(E*c1-S*S1-z*s1)*M1,i[12]=(m*Z1-p*L1-_*Y1)*M1,i[13]=(r*L1-a*Z1+o*Y1)*M1,i[14]=(B*Y-L*p1-Z*s1)*M1,i[15]=(S*p1-E*Y+P*s1)*M1,i):null},c.at=H8,c.au=B8,c.av=W8,c.aw=function(){const i={},e=_1.$version;for(const r in _1.$root){const a=_1.$root[r];if(a.required){let o=null;o=r==="version"?e:a.type==="array"?[]:{},o!=null&&(i[r]=o)}}return i},c.ax=D4,c.ay=g0,c.az=l2,c.b=function(i,e){const r=new Blob([new Uint8Array(i)],{type:"image/png"});createImageBitmap(r).then(a=>{e(null,a)}).catch(a=>{e(new Error(`Could not load image because of ${a.message}. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.`))})},c.b0=h7,c.b1=function(i,e){var r=i[0],a=i[1],o=i[2],h=i[3],p=i[4],m=i[5],_=i[6],x=i[7],S=i[8],E=i[9],P=i[10],z=i[11],L=i[12],B=i[13],Z=i[14],X=i[15],s1=e[0],Y=e[1],c1=e[2],p1=e[3],S1=e[4],H1=e[5],Y1=e[6],Z1=e[7],U1=e[8],L1=e[9],K1=e[10],B1=e[11],M1=e[12],s4=e[13],i4=e[14],C4=e[15];return Math.abs(r-s1)<=K7*Math.max(1,Math.abs(r),Math.abs(s1))&&Math.abs(a-Y)<=K7*Math.max(1,Math.abs(a),Math.abs(Y))&&Math.abs(o-c1)<=K7*Math.max(1,Math.abs(o),Math.abs(c1))&&Math.abs(h-p1)<=K7*Math.max(1,Math.abs(h),Math.abs(p1))&&Math.abs(p-S1)<=K7*Math.max(1,Math.abs(p),Math.abs(S1))&&Math.abs(m-H1)<=K7*Math.max(1,Math.abs(m),Math.abs(H1))&&Math.abs(_-Y1)<=K7*Math.max(1,Math.abs(_),Math.abs(Y1))&&Math.abs(x-Z1)<=K7*Math.max(1,Math.abs(x),Math.abs(Z1))&&Math.abs(S-U1)<=K7*Math.max(1,Math.abs(S),Math.abs(U1))&&Math.abs(E-L1)<=K7*Math.max(1,Math.abs(E),Math.abs(L1))&&Math.abs(P-K1)<=K7*Math.max(1,Math.abs(P),Math.abs(K1))&&Math.abs(z-B1)<=K7*Math.max(1,Math.abs(z),Math.abs(B1))&&Math.abs(L-M1)<=K7*Math.max(1,Math.abs(L),Math.abs(M1))&&Math.abs(B-s4)<=K7*Math.max(1,Math.abs(B),Math.abs(s4))&&Math.abs(Z-i4)<=K7*Math.max(1,Math.abs(Z),Math.abs(i4))&&Math.abs(X-C4)<=K7*Math.max(1,Math.abs(X),Math.abs(C4))},c.b2=function(i,e){return i[0]=e[0],i[1]=e[1],i[2]=e[2],i[3]=e[3],i[4]=e[4],i[5]=e[5],i[6]=e[6],i[7]=e[7],i[8]=e[8],i[9]=e[9],i[10]=e[10],i[11]=e[11],i[12]=e[12],i[13]=e[13],i[14]=e[14],i[15]=e[15],i},c.b3=function(i,e,r){return i[0]=e[0]*r[0],i[1]=e[1]*r[1],i[2]=e[2]*r[2],i[3]=e[3]*r[3],i},c.b4=function(i,e){return i[0]*e[0]+i[1]*e[1]+i[2]*e[2]+i[3]*e[3]},c.b5=$0,c.b6=gt,c.b7=pt,c.b8=function(i,e,r,a,o){var h,p=1/Math.tan(e/2);return i[0]=p/r,i[1]=0,i[2]=0,i[3]=0,i[4]=0,i[5]=p,i[6]=0,i[7]=0,i[8]=0,i[9]=0,i[11]=-1,i[12]=0,i[13]=0,i[15]=0,o!=null&&o!==1/0?(i[10]=(o+a)*(h=1/(a-o)),i[14]=2*o*a*h):(i[10]=-1,i[14]=-2*a),i},c.b9=function(i,e,r){var a=Math.sin(r),o=Math.cos(r),h=e[4],p=e[5],m=e[6],_=e[7],x=e[8],S=e[9],E=e[10],P=e[11];return e!==i&&(i[0]=e[0],i[1]=e[1],i[2]=e[2],i[3]=e[3],i[12]=e[12],i[13]=e[13],i[14]=e[14],i[15]=e[15]),i[4]=h*o+x*a,i[5]=p*o+S*a,i[6]=m*o+E*a,i[7]=_*o+P*a,i[8]=x*o-h*a,i[9]=S*o-p*a,i[10]=E*o-m*a,i[11]=P*o-_*a,i},c.bA=o4,c.bB=je,c.bC=z6,c.bD=c3,c.ba=A4,c.bb=r7,c.bc=function(i,e){return i[0]=e[0],i[1]=0,i[2]=0,i[3]=0,i[4]=0,i[5]=e[1],i[6]=0,i[7]=0,i[8]=0,i[9]=0,i[10]=e[2],i[11]=0,i[12]=0,i[13]=0,i[14]=0,i[15]=1,i},c.bd=class extends l5{},c.be=$8,c.bf=ft,c.bg=bn,c.bi=t3,c.bj=function(i,e,r=!1){if(W7===$5||W7===q5||W7===G5)throw new Error("setRTLTextPlugin cannot be called multiple times.");R0=Z2.resolveURL(i),W7=$5,Z5=e,H5(),r||k9()},c.bk=W5,c.bl=function(i,e){const r={};for(let o=0;oM1*K2)}let Z1=p?"center":r.get("text-justify").evaluate(x,{},i.canonical);const U1=r.get("symbol-placement"),L1=U1==="point"?r.get("text-max-width").evaluate(x,{},i.canonical)*K2:0,K1=()=>{i.bucket.allowVerticalPlacement&&V6(c1)&&(L.vertical=W9(B,i.glyphMap,i.glyphPositions,i.imagePositions,S,L1,h,H1,"left",S1,X,c.ai.vertical,!0,U1,P,E))};if(!p&&Y1){const B1=new Set;if(Z1==="auto")for(let s4=0;s4{e(null,r),URL.revokeObjectURL(r.src),r.onload=null,window.requestAnimationFrame(()=>{r.src=q0})},r.onerror=()=>e(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."));const a=new Blob([new Uint8Array(i)],{type:"image/png"});r.src=i.byteLength?URL.createObjectURL(a):q0},c.e=U2,c.f=function(i,e){return N3(U2(i,{type:"json"}),e)},c.g=y4,c.h=Z2,c.i=m7,c.j=V3,c.k=E3,c.l=G0,c.m=N3,c.n=function(i){return new L8(i).readFields(Xr,[])},c.o=function(i,e,r){if(!i.length)return r(null,[]);let a=i.length;const o=new Array(i.length);let h=null;i.forEach((p,m)=>{e(p,(_,x)=>{_&&(h=_),o[m]=x,--a==0&&r(h,o)})})},c.p=Ke,c.q=o9,c.r=O2,c.s=C7,c.t=t2,c.u=R1,c.v=_1,c.w=P2,c.x=o3,c.y=k3,c.z=function([i,e,r]){return e+=90,e*=Math.PI/180,r*=Math.PI/180,{x:i*Math.cos(e)*Math.sin(r),y:i*Math.sin(e)*Math.sin(r),z:i*Math.cos(r)}}}),g1(["./shared"],function(c){class W1{constructor(C){this.keyCache={},C&&this.replace(C)}replace(C){this._layerConfigs={},this._layers={},this.update(C,[])}update(C,M){for(const $ of C){this._layerConfigs[$.id]=$;const G=this._layers[$.id]=c.aC($);G._featureFilter=c.a6(G.filter),this.keyCache[$.id]&&delete this.keyCache[$.id]}for(const $ of M)delete this.keyCache[$],delete this._layerConfigs[$],delete this._layers[$];this.familiesBySource={};const F=c.bl(Object.values(this._layerConfigs),this.keyCache);for(const $ of F){const G=$.map(x1=>this._layers[x1.id]),o1=G[0];if(o1.visibility==="none")continue;const e1=o1.source||"";let W=this.familiesBySource[e1];W||(W=this.familiesBySource[e1]={});const i1=o1.sourceLayer||"_geojsonTileLayer";let v1=W[i1];v1||(v1=W[i1]=[]),v1.push(G)}}}class r1{constructor(C){const M={},F=[];for(const e1 in C){const W=C[e1],i1=M[e1]={};for(const v1 in W){const x1=W[+v1];if(!x1||x1.bitmap.width===0||x1.bitmap.height===0)continue;const b1={x:0,y:0,w:x1.bitmap.width+2,h:x1.bitmap.height+2};F.push(b1),i1[v1]={rect:b1,metrics:x1.metrics}}}const{w:$,h:G}=c.p(F),o1=new c.q({width:$||1,height:G||1});for(const e1 in C){const W=C[e1];for(const i1 in W){const v1=W[+i1];if(!v1||v1.bitmap.width===0||v1.bitmap.height===0)continue;const x1=M[e1][i1].rect;c.q.copy(v1.bitmap,o1,{x:0,y:0},{x:x1.x+1,y:x1.y+1},v1.bitmap)}}this.image=o1,this.positions=M}}c.bm("GlyphAtlas",r1);class o4{constructor(C){this.tileID=new c.O(C.tileID.overscaledZ,C.tileID.wrap,C.tileID.canonical.z,C.tileID.canonical.x,C.tileID.canonical.y),this.uid=C.uid,this.zoom=C.zoom,this.pixelRatio=C.pixelRatio,this.tileSize=C.tileSize,this.source=C.source,this.overscaling=this.tileID.overscaleFactor(),this.showCollisionBoxes=C.showCollisionBoxes,this.collectResourceTiming=!!C.collectResourceTiming,this.returnDependencies=!!C.returnDependencies,this.promoteId=C.promoteId,this.inFlightDependencies=[],this.dependencySentinel=-1}parse(C,M,F,$,G){this.status="parsing",this.data=C,this.collisionBoxArray=new c.a3;const o1=new c.bn(Object.keys(C.layers).sort()),e1=new c.bo(this.tileID,this.promoteId);e1.bucketLayerIDs=[];const W={},i1={featureIndex:e1,iconDependencies:{},patternDependencies:{},glyphDependencies:{},availableImages:F},v1=M.familiesBySource[this.source];for(const O4 in v1){const F4=C.layers[O4];if(!F4)continue;F4.version===1&&c.w(`Vector tile source "${this.source}" layer "${O4}" does not use vector tile spec v2 and therefore may have some rendering errors.`);const a7=o1.encode(O4),Y4=[];for(let A2=0;A2=R2.maxzoom||R2.visibility!=="none"&&(u4(A2,this.zoom,F),(W[R2.id]=R2.createBucket({index:e1.bucketLayerIDs.length,layers:A2,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:a7,sourceID:this.source})).populate(Y4,i1,this.tileID.canonical),e1.bucketLayerIDs.push(A2.map(G7=>G7.id)))}}let x1,b1,Q1,m4;const X1=c.aH(i1.glyphDependencies,O4=>Object.keys(O4).map(Number));this.inFlightDependencies.forEach(O4=>O4==null?void 0:O4.cancel()),this.inFlightDependencies=[];const n4=++this.dependencySentinel;Object.keys(X1).length?this.inFlightDependencies.push($.send("getGlyphs",{uid:this.uid,stacks:X1,source:this.source,tileID:this.tileID,type:"glyphs"},(O4,F4)=>{n4===this.dependencySentinel&&(x1||(x1=O4,b1=F4,S4.call(this)))})):b1={};const _4=Object.keys(i1.iconDependencies);_4.length?this.inFlightDependencies.push($.send("getImages",{icons:_4,source:this.source,tileID:this.tileID,type:"icons"},(O4,F4)=>{n4===this.dependencySentinel&&(x1||(x1=O4,Q1=F4,S4.call(this)))})):Q1={};const $4=Object.keys(i1.patternDependencies);function S4(){if(x1)return G(x1);if(b1&&Q1&&m4){const O4=new r1(b1),F4=new c.bp(Q1,m4);for(const a7 in W){const Y4=W[a7];Y4 instanceof c.a4?(u4(Y4.layers,this.zoom,F),c.bq({bucket:Y4,glyphMap:b1,glyphPositions:O4.positions,imageMap:Q1,imagePositions:F4.iconPositions,showCollisionBoxes:this.showCollisionBoxes,canonical:this.tileID.canonical})):Y4.hasPattern&&(Y4 instanceof c.br||Y4 instanceof c.bs||Y4 instanceof c.bt)&&(u4(Y4.layers,this.zoom,F),Y4.addFeatures(i1,this.tileID.canonical,F4.patternPositions))}this.status="done",G(null,{buckets:Object.values(W).filter(a7=>!a7.isEmpty()),featureIndex:e1,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:O4.image,imageAtlas:F4,glyphMap:this.returnDependencies?b1:null,iconMap:this.returnDependencies?Q1:null,glyphPositions:this.returnDependencies?O4.positions:null})}}$4.length?this.inFlightDependencies.push($.send("getImages",{icons:$4,source:this.source,tileID:this.tileID,type:"patterns"},(O4,F4)=>{n4===this.dependencySentinel&&(x1||(x1=O4,m4=F4,S4.call(this)))})):m4={},S4.call(this)}}function u4(U,C,M){const F=new c.a8(C);for(const $ of U)$.recalculate(F,M)}function j1(U,C){const M=c.l(U.request,(F,$,G,o1)=>{if(F)C(F);else if($)try{const e1=new c.bw.VectorTile(new c.bv($));C(null,{vectorTile:e1,rawData:$,cacheControl:G,expires:o1})}catch(e1){const W=new Uint8Array($);let i1=`Unable to parse the tile at ${U.request.url}, `;i1+=W[0]===31&&W[1]===139?"please make sure the data is not gzipped and that you have configured the relevant header in the server":`got error: ${e1.messge}`,C(new Error(i1))}});return()=>{M.cancel(),C()}}class c4{constructor(C,M,F,$){this.actor=C,this.layerIndex=M,this.availableImages=F,this.loadVectorData=$||j1,this.fetching={},this.loading={},this.loaded={}}loadTile(C,M){const F=C.uid;this.loading||(this.loading={});const $=!!(C&&C.request&&C.request.collectResourceTiming)&&new c.bu(C.request),G=this.loading[F]=new o4(C);G.abort=this.loadVectorData(C,(o1,e1)=>{if(delete this.loading[F],o1||!e1)return G.status="done",this.loaded[F]=G,M(o1);const W=e1.rawData,i1={};e1.expires&&(i1.expires=e1.expires),e1.cacheControl&&(i1.cacheControl=e1.cacheControl);const v1={};if($){const x1=$.finish();x1&&(v1.resourceTiming=JSON.parse(JSON.stringify(x1)))}G.vectorTile=e1.vectorTile,G.parse(e1.vectorTile,this.layerIndex,this.availableImages,this.actor,(x1,b1)=>{if(delete this.fetching[F],x1||!b1)return M(x1);M(null,c.e({rawTileData:W.slice(0)},b1,i1,v1))}),this.loaded=this.loaded||{},this.loaded[F]=G,this.fetching[F]={rawTileData:W,cacheControl:i1,resourceTiming:v1}})}reloadTile(C,M){const F=this.loaded,$=C.uid;if(F&&F[$]){const G=F[$];G.showCollisionBoxes=C.showCollisionBoxes,G.status==="parsing"?G.parse(G.vectorTile,this.layerIndex,this.availableImages,this.actor,(o1,e1)=>{if(o1||!e1)return M(o1,e1);let W;if(this.fetching[$]){const{rawTileData:i1,cacheControl:v1,resourceTiming:x1}=this.fetching[$];delete this.fetching[$],W=c.e({rawTileData:i1.slice(0)},e1,v1,x1)}else W=e1;M(null,W)}):G.status==="done"&&(G.vectorTile?G.parse(G.vectorTile,this.layerIndex,this.availableImages,this.actor,M):M())}}abortTile(C,M){const F=this.loading,$=C.uid;F&&F[$]&&F[$].abort&&(F[$].abort(),delete F[$]),M()}removeTile(C,M){const F=this.loaded,$=C.uid;F&&F[$]&&delete F[$],M()}}class b4{constructor(){this.loaded={}}loadTile(C,M){return c._(this,void 0,void 0,function*(){const{uid:F,encoding:$,rawImageData:G,redFactor:o1,greenFactor:e1,blueFactor:W,baseShift:i1}=C,v1=G.width+2,x1=G.height+2,b1=c.a(G)?new c.R({width:v1,height:x1},yield c.bx(G,-1,-1,v1,x1)):G,Q1=new c.by(F,b1,$,o1,e1,W,i1);this.loaded=this.loaded||{},this.loaded[F]=Q1,M(null,Q1)})}removeTile(C){const M=this.loaded,F=C.uid;M&&M[F]&&delete M[F]}}function r4(U,C){if(U.length!==0){g4(U[0],C);for(var M=1;M=Math.abs(e1)?M-W+e1:e1-W+M,M=W}M+F>=0!=!!C&&U.reverse()}var I4=c.bz(function U(C,M){var F,$=C&&C.type;if($==="FeatureCollection")for(F=0;F>31}function m7(U,C){for(var M=U.loadGeometry(),F=U.type,$=0,G=0,o1=M.length,e1=0;e1U},o0=Math.fround||(V7=new Float32Array(1),U=>(V7[0]=+U,V7[0]));var V7;const E4=3,M2=5,l7=6;class Z2{constructor(C){this.options=Object.assign(Object.create(q0),C),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(C){const{log:M,minZoom:F,maxZoom:$}=this.options;M&&console.time("total time");const G=`prepare ${C.length} points`;M&&console.time(G),this.points=C;const o1=[];for(let W=0;W=F;W--){const i1=+Date.now();e1=this.trees[W]=this._createTree(this._cluster(e1,W)),M&&console.log("z%d: %d clusters in %dms",W,e1.numItems,+Date.now()-i1)}return M&&console.timeEnd("total time"),this}getClusters(C,M){let F=((C[0]+180)%360+360)%360-180;const $=Math.max(-90,Math.min(90,C[1]));let G=C[2]===180?180:((C[2]+180)%360+360)%360-180;const o1=Math.max(-90,Math.min(90,C[3]));if(C[2]-C[0]>=360)F=-180,G=180;else if(F>G){const x1=this.getClusters([F,$,180,o1],M),b1=this.getClusters([-180,$,G,o1],M);return x1.concat(b1)}const e1=this.trees[this._limitZoom(M)],W=e1.range(l2(F),y4(o1),l2(G),y4($)),i1=e1.data,v1=[];for(const x1 of W){const b1=this.stride*x1;v1.push(i1[b1+M2]>1?S0(i1,b1,this.clusterProps):this.points[i1[b1+E4]])}return v1}getChildren(C){const M=this._getOriginId(C),F=this._getOriginZoom(C),$="No cluster with the specified id.",G=this.trees[F];if(!G)throw new Error($);const o1=G.data;if(M*this.stride>=o1.length)throw new Error($);const e1=this.options.radius/(this.options.extent*Math.pow(2,F-1)),W=G.within(o1[M*this.stride],o1[M*this.stride+1],e1),i1=[];for(const v1 of W){const x1=v1*this.stride;o1[x1+4]===C&&i1.push(o1[x1+M2]>1?S0(o1,x1,this.clusterProps):this.points[o1[x1+E4]])}if(i1.length===0)throw new Error($);return i1}getLeaves(C,M,F){const $=[];return this._appendLeaves($,C,M=M||10,F=F||0,0),$}getTile(C,M,F){const $=this.trees[this._limitZoom(C)],G=Math.pow(2,C),{extent:o1,radius:e1}=this.options,W=e1/o1,i1=(F-W)/G,v1=(F+1+W)/G,x1={features:[]};return this._addTileFeatures($.range((M-W)/G,i1,(M+1+W)/G,v1),$.data,M,F,G,x1),M===0&&this._addTileFeatures($.range(1-W/G,i1,1,v1),$.data,G,F,G,x1),M===G-1&&this._addTileFeatures($.range(0,i1,W/G,v1),$.data,-1,F,G,x1),x1.features.length?x1:null}getClusterExpansionZoom(C){let M=this._getOriginZoom(C)-1;for(;M<=this.options.maxZoom;){const F=this.getChildren(C);if(M++,F.length!==1)break;C=F[0].properties.cluster_id}return M}_appendLeaves(C,M,F,$,G){const o1=this.getChildren(M);for(const e1 of o1){const W=e1.properties;if(W&&W.cluster?G+W.point_count<=$?G+=W.point_count:G=this._appendLeaves(C,W.cluster_id,F,$,G):G<$?G++:C.push(e1),C.length===F)break}return G}_createTree(C){const M=new c.av(C.length/this.stride|0,this.options.nodeSize,Float32Array);for(let F=0;F1;let v1,x1,b1;if(i1)v1=t3(M,W,this.clusterProps),x1=M[W],b1=M[W+1];else{const X1=this.points[M[W+E4]];v1=X1.properties;const[n4,_4]=X1.geometry.coordinates;x1=l2(n4),b1=y4(_4)}const Q1={type:1,geometry:[[Math.round(this.options.extent*(x1*G-F)),Math.round(this.options.extent*(b1*G-$))]],tags:v1};let m4;m4=i1||this.options.generateId?M[W+E4]:this.points[M[W+E4]].id,m4!==void 0&&(Q1.id=m4),o1.features.push(Q1)}}_limitZoom(C){return Math.max(this.options.minZoom,Math.min(Math.floor(+C),this.options.maxZoom+1))}_cluster(C,M){const{radius:F,extent:$,reduce:G,minPoints:o1}=this.options,e1=F/($*Math.pow(2,M)),W=C.data,i1=[],v1=this.stride;for(let x1=0;x1M&&(n4+=W[$4+M2])}if(n4>X1&&n4>=o1){let _4,$4=b1*X1,S4=Q1*X1,O4=-1;const F4=((x1/v1|0)<<5)+(M+1)+this.points.length;for(const a7 of m4){const Y4=a7*v1;if(W[Y4+2]<=M)continue;W[Y4+2]=M;const A2=W[Y4+M2];$4+=W[Y4]*A2,S4+=W[Y4+1]*A2,W[Y4+4]=F4,G&&(_4||(_4=this._map(W,x1,!0),O4=this.clusterProps.length,this.clusterProps.push(_4)),G(_4,this._map(W,Y4)))}W[x1+4]=F4,i1.push($4/n4,S4/n4,1/0,F4,-1,n4),G&&i1.push(O4)}else{for(let _4=0;_41)for(const _4 of m4){const $4=_4*v1;if(!(W[$4+2]<=M)){W[$4+2]=M;for(let S4=0;S4>5}_getOriginZoom(C){return(C-this.points.length)%32}_map(C,M,F){if(C[M+M2]>1){const o1=this.clusterProps[C[M+l7]];return F?Object.assign({},o1):o1}const $=this.points[C[M+E4]].properties,G=this.options.map($);return F&&G===$?Object.assign({},G):G}}function S0(U,C,M){return{type:"Feature",id:U[C+E4],properties:t3(U,C,M),geometry:{type:"Point",coordinates:[(F=U[C],360*(F-.5)),T0(U[C+1])]}};var F}function t3(U,C,M){const F=U[C+M2],$=F>=1e4?`${Math.round(F/1e3)}k`:F>=1e3?Math.round(F/100)/10+"k":F,G=U[C+l7],o1=G===-1?{}:Object.assign({},M[G]);return Object.assign(o1,{cluster:!0,cluster_id:U[C+E4],point_count:F,point_count_abbreviated:$})}function l2(U){return U/360+.5}function y4(U){const C=Math.sin(U*Math.PI/180),M=.5-.25*Math.log((1+C)/(1-C))/Math.PI;return M<0?0:M>1?1:M}function T0(U){const C=(180-360*U)*Math.PI/180;return 360*Math.atan(Math.exp(C))/Math.PI-90}function N3(U,C,M,F){for(var $,G=F,o1=M-C>>1,e1=M-C,W=U[C],i1=U[C+1],v1=U[M],x1=U[M+1],b1=C+3;b1G)$=b1,G=Q1;else if(Q1===G){var m4=Math.abs(b1-o1);m4F&&($-C>3&&N3(U,C,$,F),U[$+2]=G,M-$>3&&N3(U,$,M,F))}function G0(U,C,M,F,$,G){var o1=$-M,e1=G-F;if(o1!==0||e1!==0){var W=((U-M)*o1+(C-F)*e1)/(o1*o1+e1*e1);W>1?(M=$,F=G):W>0&&(M+=o1*W,F+=e1*W)}return(o1=U-M)*o1+(e1=C-F)*e1}function C7(U,C,M,F){var $={id:U===void 0?null:U,type:C,geometry:M,tags:F,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return function(G){var o1=G.geometry,e1=G.type;if(e1==="Point"||e1==="MultiPoint"||e1==="LineString")I0(G,o1);else if(e1==="Polygon"||e1==="MultiLineString")for(var W=0;W0&&(o1+=F?($*i1-W*G)/2:Math.sqrt(Math.pow(W-$,2)+Math.pow(i1-G,2))),$=W,G=i1}var v1=C.length-3;C[2]=1,N3(C,0,v1,M),C[v1+2]=1,C.size=Math.abs(o1),C.start=0,C.end=C.size}function l0(U,C,M,F){for(var $=0;$1?1:M}function U7(U,C,M,F,$,G,o1,e1){if(F/=C,G>=(M/=C)&&o1=F)return null;for(var W=[],i1=0;i1=M&&m4=F)){var X1=[];if(b1==="Point"||b1==="MultiPoint")J4(x1,X1,M,F,$);else if(b1==="LineString")D4(x1,X1,M,F,$,!1,e1.lineMetrics);else if(b1==="MultiLineString")j7(x1,X1,M,F,$,!1);else if(b1==="Polygon")j7(x1,X1,M,F,$,!0);else if(b1==="MultiPolygon")for(var n4=0;n4=M&&o1<=F&&(C.push(U[G]),C.push(U[G+1]),C.push(U[G+2]))}}function D4(U,C,M,F,$,G,o1){for(var e1,W,i1=i3(U),v1=$===0?c0:U3,x1=U.start,b1=0;b1M&&(W=v1(i1,Q1,m4,n4,_4,M),o1&&(i1.start=x1+e1*W)):$4>F?S4=M&&(W=v1(i1,Q1,m4,n4,_4,M),O4=!0),S4>F&&$4<=F&&(W=v1(i1,Q1,m4,n4,_4,F),O4=!0),!G&&O4&&(o1&&(i1.end=x1+e1*W),C.push(i1),i1=i3(U)),o1&&(x1+=e1)}var F4=U.length-3;Q1=U[F4],m4=U[F4+1],X1=U[F4+2],($4=$===0?Q1:m4)>=M&&$4<=F&&r3(i1,Q1,m4,X1),F4=i1.length-3,G&&F4>=3&&(i1[F4]!==i1[0]||i1[F4+1]!==i1[1])&&r3(i1,i1[0],i1[1],i1[2]),i1.length&&C.push(i1)}function i3(U){var C=[];return C.size=U.size,C.start=U.start,C.end=U.end,C}function j7(U,C,M,F,$,G){for(var o1=0;o1o1.maxX&&(o1.maxX=v1),x1>o1.maxY&&(o1.maxY=x1)}return o1}function u0(U,C,M,F){var $=C.geometry,G=C.type,o1=[];if(G==="Point"||G==="MultiPoint")for(var e1=0;e1<$.length;e1+=3)o1.push($[e1]),o1.push($[e1+1]),U.numPoints++,U.numSimplified++;else if(G==="LineString")y7(o1,$,U,M,!1,!1);else if(G==="MultiLineString"||G==="Polygon")for(e1=0;e1<$.length;e1++)y7(o1,$[e1],U,M,G==="Polygon",e1===0);else if(G==="MultiPolygon")for(var W=0;W<$.length;W++){var i1=$[W];for(e1=0;e10&&C.size<($?o1:F))M.numPoints+=C.length/3;else{for(var e1=[],W=0;Wo1)&&(M.numSimplified++,e1.push(C[W]),e1.push(C[W+1])),M.numPoints++;$&&function(i1,v1){for(var x1=0,b1=0,Q1=i1.length,m4=Q1-2;b10===v1)for(b1=0,Q1=i1.length;b124)throw new Error("maxZoom should be in the 0-24 range");if(C.promoteId&&C.generateId)throw new Error("promoteId and generateId cannot be used together.");var F=function($,G){var o1=[];if($.type==="FeatureCollection")for(var e1=0;e1<$.features.length;e1++)q4(o1,$.features[e1],G,e1);else q4(o1,$.type==="Feature"?$:{geometry:$},G);return o1}(U,C);this.tiles={},this.tileCoords=[],M&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",C.indexMaxZoom,C.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),F=function($,G){var o1=G.buffer/G.extent,e1=$,W=U7($,1,-1-o1,o1,0,-1,2,G),i1=U7($,1,1-o1,2+o1,0,-1,2,G);return(W||i1)&&(e1=U7($,1,-o1,1+o1,0,-1,2,G)||[],W&&(e1=$7(W,1).concat(e1)),i1&&(e1=e1.concat($7(i1,-1)))),e1}(F,C),F.length&&this.splitTile(F,0,0,0),M&&(F.length&&console.log("features: %d, points: %d",this.tiles[0].numFeatures,this.tiles[0].numPoints),console.timeEnd("generate tiles"),console.log("tiles generated:",this.total,JSON.stringify(this.stats)))}function w4(U,C,M){return 32*((1<1&&console.time("creation"),b1=this.tiles[x1]=_2(U,C,M,F,W),this.tileCoords.push({z:C,x:M,y:F}),i1)){i1>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",C,M,F,b1.numFeatures,b1.numPoints,b1.numSimplified),console.timeEnd("creation"));var Q1="z"+C;this.stats[Q1]=(this.stats[Q1]||0)+1,this.total++}if(b1.source=U,$){if(C===W.maxZoom||C===$)continue;var m4=1<<$-C;if(M!==Math.floor(G/m4)||F!==Math.floor(o1/m4))continue}else if(C===W.indexMaxZoom||b1.numPoints<=W.indexMaxPoints)continue;if(b1.source=null,U.length!==0){i1>1&&console.time("clipping");var X1,n4,_4,$4,S4,O4,F4=.5*W.buffer/W.extent,a7=.5-F4,Y4=.5+F4,A2=1+F4;X1=n4=_4=$4=null,S4=U7(U,v1,M-F4,M+Y4,0,b1.minX,b1.maxX,W),O4=U7(U,v1,M+a7,M+A2,0,b1.minX,b1.maxX,W),U=null,S4&&(X1=U7(S4,v1,F-F4,F+Y4,1,b1.minY,b1.maxY,W),n4=U7(S4,v1,F+a7,F+A2,1,b1.minY,b1.maxY,W),S4=null),O4&&(_4=U7(O4,v1,F-F4,F+Y4,1,b1.minY,b1.maxY,W),$4=U7(O4,v1,F+a7,F+A2,1,b1.minY,b1.maxY,W),O4=null),i1>1&&console.timeEnd("clipping"),e1.push(X1||[],C+1,2*M,2*F),e1.push(n4||[],C+1,2*M,2*F+1),e1.push(_4||[],C+1,2*M+1,2*F),e1.push($4||[],C+1,2*M+1,2*F+1)}}},F1.prototype.getTile=function(U,C,M){var F=this.options,$=F.extent,G=F.debug;if(U<0||U>24)return null;var o1=1<1&&console.log("drilling down to z%d-%d-%d",U,C,M);for(var W,i1=U,v1=C,x1=M;!W&&i1>0;)i1--,v1=Math.floor(v1/2),x1=Math.floor(x1/2),W=this.tiles[w4(i1,v1,x1)];return W&&W.source?(G>1&&console.log("found parent tile z%d-%d-%d",i1,v1,x1),G>1&&console.time("drilling down"),this.splitTile(W.source,i1,v1,x1,U,C,M),G>1&&console.timeEnd("drilling down"),this.tiles[e1]?z1(this.tiles[e1],$):null):null};class h4 extends c4{constructor(C,M,F,$){super(C,M,F),this._dataUpdateable=new Map,this.loadGeoJSON=(G,o1)=>{const{promoteId:e1}=G;if(G.request)return c.f(G.request,(W,i1,v1,x1)=>{this._dataUpdateable=n7(i1,e1)?M7(i1,e1):void 0,o1(W,i1,v1,x1)});if(typeof G.data=="string")try{const W=JSON.parse(G.data);this._dataUpdateable=n7(W,e1)?M7(W,e1):void 0,o1(null,W)}catch{o1(new Error(`Input data given to '${G.source}' is not a valid GeoJSON object.`))}else G.dataDiff?this._dataUpdateable?(function(W,i1,v1){var x1,b1,Q1,m4;if(i1.removeAll&&W.clear(),i1.remove)for(const X1 of i1.remove)W.delete(X1);if(i1.add)for(const X1 of i1.add){const n4=f4(X1,v1);n4!=null&&W.set(n4,X1)}if(i1.update)for(const X1 of i1.update){let n4=W.get(X1.id);if(n4==null)continue;const _4=!X1.removeAllProperties&&(((x1=X1.removeProperties)===null||x1===void 0?void 0:x1.length)>0||((b1=X1.addOrUpdateProperties)===null||b1===void 0?void 0:b1.length)>0);if((X1.newGeometry||X1.removeAllProperties||_4)&&(n4=Object.assign({},n4),W.set(X1.id,n4),_4&&(n4.properties=Object.assign({},n4.properties))),X1.newGeometry&&(n4.geometry=X1.newGeometry),X1.removeAllProperties)n4.properties={};else if(((Q1=X1.removeProperties)===null||Q1===void 0?void 0:Q1.length)>0)for(const $4 of X1.removeProperties)Object.prototype.hasOwnProperty.call(n4.properties,$4)&&delete n4.properties[$4];if(((m4=X1.addOrUpdateProperties)===null||m4===void 0?void 0:m4.length)>0)for(const{key:$4,value:S4}of X1.addOrUpdateProperties)n4.properties[$4]=S4}}(this._dataUpdateable,G.dataDiff,e1),o1(null,{type:"FeatureCollection",features:Array.from(this._dataUpdateable.values())})):o1(new Error(`Cannot update existing geojson data in ${G.source}`)):o1(new Error(`Input data given to '${G.source}' is not a valid GeoJSON object.`));return{cancel:()=>{}}},this.loadVectorData=this.loadGeoJSONTile,$&&(this.loadGeoJSON=$)}loadGeoJSONTile(C,M){const F=C.tileID.canonical;if(!this._geoJSONIndex)return M(null,null);const $=this._geoJSONIndex.getTile(F.z,F.x,F.y);if(!$)return M(null,null);const G=new class{constructor(e1){this.layers={_geojsonTileLayer:this},this.name="_geojsonTileLayer",this.extent=c.N,this.length=e1.length,this._features=e1}feature(e1){return new class{constructor(W){this._feature=W,this.extent=c.N,this.type=W.type,this.properties=W.tags,"id"in W&&!isNaN(W.id)&&(this.id=parseInt(W.id,10))}loadGeometry(){if(this._feature.type===1){const W=[];for(const i1 of this._feature.geometry)W.push([new c.P(i1[0],i1[1])]);return W}{const W=[];for(const i1 of this._feature.geometry){const v1=[];for(const x1 of i1)v1.push(new c.P(x1[0],x1[1]));W.push(v1)}return W}}toGeoJSON(W,i1,v1){return i7.call(this,W,i1,v1)}}(this._features[e1])}}($.features);let o1=s0(G);o1.byteOffset===0&&o1.byteLength===o1.buffer.byteLength||(o1=new Uint8Array(o1)),M(null,{vectorTile:G,rawData:o1.buffer})}loadData(C,M){var F;(F=this._pendingRequest)===null||F===void 0||F.cancel(),this._pendingCallback&&this._pendingCallback(null,{abandoned:!0});const $=!!(C&&C.request&&C.request.collectResourceTiming)&&new c.bu(C.request);this._pendingCallback=M,this._pendingRequest=this.loadGeoJSON(C,(G,o1)=>{if(delete this._pendingCallback,delete this._pendingRequest,G||!o1)return M(G);if(typeof o1!="object")return M(new Error(`Input data given to '${C.source}' is not a valid GeoJSON object.`));{I4(o1,!0);try{if(C.filter){const W=c.bC(C.filter,{type:"boolean","property-type":"data-driven",overridable:!1,transition:!1});if(W.result==="error")throw new Error(W.value.map(v1=>`${v1.key}: ${v1.message}`).join(", "));o1={type:"FeatureCollection",features:o1.features.filter(v1=>W.value.evaluate({zoom:0},v1))}}this._geoJSONIndex=C.cluster?new Z2(function({superclusterOptions:W,clusterProperties:i1}){if(!i1||!W)return W;const v1={},x1={},b1={accumulated:null,zoom:0},Q1={properties:null},m4=Object.keys(i1);for(const X1 of m4){const[n4,_4]=i1[X1],$4=c.bC(_4),S4=c.bC(typeof n4=="string"?[n4,["accumulated"],["get",X1]]:n4);v1[X1]=$4.value,x1[X1]=S4.value}return W.map=X1=>{Q1.properties=X1;const n4={};for(const _4 of m4)n4[_4]=v1[_4].evaluate(b1,Q1);return n4},W.reduce=(X1,n4)=>{Q1.properties=n4;for(const _4 of m4)b1.accumulated=X1[_4],X1[_4]=x1[_4].evaluate(b1,Q1)},W}(C)).load(o1.features):function(W,i1){return new F1(W,i1)}(o1,C.geojsonVtOptions)}catch(W){return M(W)}this.loaded={};const e1={};if($){const W=$.finish();W&&(e1.resourceTiming={},e1.resourceTiming[C.source]=JSON.parse(JSON.stringify(W)))}M(null,e1)}})}reloadTile(C,M){const F=this.loaded;return F&&F[C.uid]?super.reloadTile(C,M):this.loadTile(C,M)}removeSource(C,M){this._pendingCallback&&this._pendingCallback(null,{abandoned:!0}),M()}getClusterExpansionZoom(C,M){try{M(null,this._geoJSONIndex.getClusterExpansionZoom(C.clusterId))}catch(F){M(F)}}getClusterChildren(C,M){try{M(null,this._geoJSONIndex.getChildren(C.clusterId))}catch(F){M(F)}}getClusterLeaves(C,M){try{M(null,this._geoJSONIndex.getLeaves(C.clusterId,C.limit,C.offset))}catch(F){M(F)}}}class q7{constructor(C){this.self=C,this.actor=new c.C(C,this),this.layerIndexes={},this.availableImages={},this.workerSourceTypes={vector:c4,geojson:h4},this.workerSources={},this.demWorkerSources={},this.self.registerWorkerSource=(M,F)=>{if(this.workerSourceTypes[M])throw new Error(`Worker source with name "${M}" already registered.`);this.workerSourceTypes[M]=F},this.self.registerRTLTextPlugin=M=>{if(c.bD.isParsed())throw new Error("RTL text plugin already registered.");c.bD.applyArabicShaping=M.applyArabicShaping,c.bD.processBidirectionalText=M.processBidirectionalText,c.bD.processStyledBidirectionalText=M.processStyledBidirectionalText}}setReferrer(C,M){this.referrer=M}setImages(C,M,F){this.availableImages[C]=M;for(const $ in this.workerSources[C]){const G=this.workerSources[C][$];for(const o1 in G)G[o1].availableImages=M}F()}setLayers(C,M,F){this.getLayerIndex(C).replace(M),F()}updateLayers(C,M,F){this.getLayerIndex(C).update(M.layers,M.removedIds),F()}loadTile(C,M,F){this.getWorkerSource(C,M.type,M.source).loadTile(M,F)}loadDEMTile(C,M,F){this.getDEMWorkerSource(C,M.source).loadTile(M,F)}reloadTile(C,M,F){this.getWorkerSource(C,M.type,M.source).reloadTile(M,F)}abortTile(C,M,F){this.getWorkerSource(C,M.type,M.source).abortTile(M,F)}removeTile(C,M,F){this.getWorkerSource(C,M.type,M.source).removeTile(M,F)}removeDEMTile(C,M){this.getDEMWorkerSource(C,M.source).removeTile(M)}removeSource(C,M,F){if(!this.workerSources[C]||!this.workerSources[C][M.type]||!this.workerSources[C][M.type][M.source])return;const $=this.workerSources[C][M.type][M.source];delete this.workerSources[C][M.type][M.source],$.removeSource!==void 0?$.removeSource(M,F):F()}loadWorkerSource(C,M,F){try{this.self.importScripts(M.url),F()}catch($){F($.toString())}}syncRTLPluginState(C,M,F){try{c.bD.setState(M);const $=c.bD.getPluginURL();if(c.bD.isLoaded()&&!c.bD.isParsed()&&$!=null){this.self.importScripts($);const G=c.bD.isParsed();F(G?void 0:new Error(`RTL Text Plugin failed to import scripts from ${$}`),G)}}catch($){F($.toString())}}getAvailableImages(C){let M=this.availableImages[C];return M||(M=[]),M}getLayerIndex(C){let M=this.layerIndexes[C];return M||(M=this.layerIndexes[C]=new W1),M}getWorkerSource(C,M,F){return this.workerSources[C]||(this.workerSources[C]={}),this.workerSources[C][M]||(this.workerSources[C][M]={}),this.workerSources[C][M][F]||(this.workerSources[C][M][F]=new this.workerSourceTypes[M]({send:($,G,o1)=>{this.actor.send($,G,o1,C)}},this.getLayerIndex(C),this.getAvailableImages(C))),this.workerSources[C][M][F]}getDEMWorkerSource(C,M){return this.demWorkerSources[C]||(this.demWorkerSources[C]={}),this.demWorkerSources[C][M]||(this.demWorkerSources[C][M]=new b4),this.demWorkerSources[C][M]}}return c.i()&&(self.worker=new q7(self)),q7}),g1(["./shared"],function(c){var W1="3.6.2";class r1{static testProp(t){if(!r1.docStyle)return t[0];for(let n=0;n{window.removeEventListener("click",r1.suppressClickInternal,!0)},0)}static mousePos(t,n){const s=t.getBoundingClientRect();return new c.P(n.clientX-s.left-t.clientLeft,n.clientY-s.top-t.clientTop)}static touchPos(t,n){const s=t.getBoundingClientRect(),l=[];for(let d=0;d{t=[],n=0,s=0,l={}},u.addThrottleControl=w=>{const T=s++;return l[T]=w,T},u.removeThrottleControl=w=>{delete l[w],y()},u.getImage=(w,T,I=!0)=>{o4.supported&&(w.headers||(w.headers={}),w.headers.accept="image/webp,*/*");const A={requestParameters:w,supportImageRefresh:I,callback:T,cancelled:!1,completed:!1,cancel:()=>{A.completed||A.cancelled||(A.cancelled=!0,A.innerRequest&&(A.innerRequest.cancel(),n--),y())}};return t.push(A),y(),A};const d=w=>{const{requestParameters:T,supportImageRefresh:I,callback:A}=w;return c.e(T,{type:"image"}),(I!==!1||c.i()||c.g(T.url)||T.headers&&!Object.keys(T.headers).reduce((N,O)=>N&&O==="accept",!0)?c.m:v)(T,(N,O,j,R)=>{g(w,A,N,O,j,R)})},g=(w,T,I,A,N,O)=>{I?T(I):A instanceof HTMLImageElement||c.a(A)?T(null,A):A&&((j,R)=>{typeof createImageBitmap=="function"?c.b(j,R):c.d(j,R)})(A,(j,R)=>{j!=null?T(j):R!=null&&T(null,R,{cacheControl:N,expires:O})}),w.cancelled||(w.completed=!0,n--,y())},y=()=>{const w=(()=>{const T=Object.keys(l);let I=!1;if(T.length>0){for(const A of T)if(I=l[A](),I)break}return I})()?c.c.MAX_PARALLEL_IMAGE_REQUESTS_PER_FRAME:c.c.MAX_PARALLEL_IMAGE_REQUESTS;for(let T=n;T0;T++){const I=t.shift();if(I.cancelled){T--;continue}const A=d(I);n++,I.innerRequest=A}},v=(w,T)=>{const I=new Image,A=w.url;let N=!1;const O=w.credentials;return O&&O==="include"?I.crossOrigin="use-credentials":(O&&O==="same-origin"||!c.s(A))&&(I.crossOrigin="anonymous"),I.fetchPriority="high",I.onload=()=>{T(null,I),I.onerror=I.onload=null},I.onerror=()=>{N||T(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.")),I.onerror=I.onload=null},I.src=A,{cancel:()=>{N=!0,I.src=""}}}}(g4||(g4={})),g4.resetRequestQueue(),function(u){u.Glyphs="Glyphs",u.Image="Image",u.Source="Source",u.SpriteImage="SpriteImage",u.SpriteJSON="SpriteJSON",u.Style="Style",u.Tile="Tile",u.Unknown="Unknown"}(I4||(I4={}));class i7{constructor(t){this._transformRequestFn=t}transformRequest(t,n){return this._transformRequestFn&&this._transformRequestFn(t,n)||{url:t}}normalizeSpriteURL(t,n,s){const l=function(d){const g=d.match(N4);if(!g)throw new Error(`Unable to parse URL "${d}"`);return{protocol:g[1],authority:g[2],path:g[3]||"/",params:g[4]?g[4].split("&"):[]}}(t);return l.path+=`${n}${s}`,function(d){const g=d.params.length?`?${d.params.join("&")}`:"";return`${d.protocol}://${d.authority}${d.path}${g}`}(l)}setTransformRequest(t){this._transformRequestFn=t}}const N4=/^(\w+):\/\/([^/?]*)(\/[^?]+)?\??(.+)?/;function A4(u){var t=new c.A(3);return t[0]=u[0],t[1]=u[1],t[2]=u[2],t}var r7,O7=function(u,t,n){return u[0]=t[0]-n[0],u[1]=t[1]-n[1],u[2]=t[2]-n[2],u};r7=new c.A(3),c.A!=Float32Array&&(r7[0]=0,r7[1]=0,r7[2]=0);var $0=function(u){var t=u[0],n=u[1];return t*t+n*n};function U2(u){const t=[];if(typeof u=="string")t.push({id:"default",url:u});else if(u&&u.length>0){const n=[];for(const{id:s,url:l}of u){const d=`${s}${l}`;n.indexOf(d)===-1&&(n.push(d),t.push({id:s,url:l}))}}return t}function y6(u,t,n,s,l){if(s)return void u(s);if(l!==Object.values(t).length||l!==Object.values(n).length)return;const d={};for(const g in t){d[g]={};const y=c.h.getImageCanvasContext(n[g]),v=t[g];for(const w in v){const{width:T,height:I,x:A,y:N,sdf:O,pixelRatio:j,stretchX:R,stretchY:n1,content:d1}=v[w];d[g][w]={data:null,pixelRatio:j,sdf:O,stretchX:R,stretchY:n1,content:d1,spriteData:{width:T,height:I,x:A,y:N,context:y}}}}u(null,d)}(function(){var u=new c.A(2);c.A!=Float32Array&&(u[0]=0,u[1]=0)})();class a2{constructor(t,n,s,l){this.context=t,this.format=s,this.texture=t.gl.createTexture(),this.update(n,l)}update(t,n,s){const{width:l,height:d}=t,g=!(this.size&&this.size[0]===l&&this.size[1]===d||s),{context:y}=this,{gl:v}=y;if(this.useMipmap=!!(n&&n.useMipmap),v.bindTexture(v.TEXTURE_2D,this.texture),y.pixelStoreUnpackFlipY.set(!1),y.pixelStoreUnpack.set(1),y.pixelStoreUnpackPremultiplyAlpha.set(this.format===v.RGBA&&(!n||n.premultiply!==!1)),g)this.size=[l,d],t instanceof HTMLImageElement||t instanceof HTMLCanvasElement||t instanceof HTMLVideoElement||t instanceof ImageData||c.a(t)?v.texImage2D(v.TEXTURE_2D,0,this.format,this.format,v.UNSIGNED_BYTE,t):v.texImage2D(v.TEXTURE_2D,0,this.format,l,d,0,this.format,v.UNSIGNED_BYTE,t.data);else{const{x:w,y:T}=s||{x:0,y:0};t instanceof HTMLImageElement||t instanceof HTMLCanvasElement||t instanceof HTMLVideoElement||t instanceof ImageData||c.a(t)?v.texSubImage2D(v.TEXTURE_2D,0,w,T,v.RGBA,v.UNSIGNED_BYTE,t):v.texSubImage2D(v.TEXTURE_2D,0,w,T,l,d,v.RGBA,v.UNSIGNED_BYTE,t.data)}this.useMipmap&&this.isSizePowerOfTwo()&&v.generateMipmap(v.TEXTURE_2D)}bind(t,n,s){const{context:l}=this,{gl:d}=l;d.bindTexture(d.TEXTURE_2D,this.texture),s!==d.LINEAR_MIPMAP_NEAREST||this.isSizePowerOfTwo()||(s=d.LINEAR),t!==this.filter&&(d.texParameteri(d.TEXTURE_2D,d.TEXTURE_MAG_FILTER,t),d.texParameteri(d.TEXTURE_2D,d.TEXTURE_MIN_FILTER,s||t),this.filter=t),n!==this.wrap&&(d.texParameteri(d.TEXTURE_2D,d.TEXTURE_WRAP_S,n),d.texParameteri(d.TEXTURE_2D,d.TEXTURE_WRAP_T,n),this.wrap=n)}isSizePowerOfTwo(){return this.size[0]===this.size[1]&&Math.log(this.size[0])/Math.LN2%1==0}destroy(){const{gl:t}=this.context;t.deleteTexture(this.texture),this.texture=null}}function a0(u){const{userImage:t}=u;return!!(t&&t.render&&t.render())&&(u.data.replace(new Uint8Array(t.data.buffer)),!0)}class S2 extends c.E{constructor(){super(),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new c.R({width:1,height:1}),this.dirty=!0}isLoaded(){return this.loaded}setLoaded(t){if(this.loaded!==t&&(this.loaded=t,t)){for(const{ids:n,callback:s}of this.requestors)this._notify(n,s);this.requestors=[]}}getImage(t){const n=this.images[t];if(n&&!n.data&&n.spriteData){const s=n.spriteData;n.data=new c.R({width:s.width,height:s.height},s.context.getImageData(s.x,s.y,s.width,s.height).data),n.spriteData=null}return n}addImage(t,n){if(this.images[t])throw new Error(`Image id ${t} already exist, use updateImage instead`);this._validate(t,n)&&(this.images[t]=n)}_validate(t,n){let s=!0;const l=n.data||n.spriteData;return this._validateStretch(n.stretchX,l&&l.width)||(this.fire(new c.j(new Error(`Image "${t}" has invalid "stretchX" value`))),s=!1),this._validateStretch(n.stretchY,l&&l.height)||(this.fire(new c.j(new Error(`Image "${t}" has invalid "stretchY" value`))),s=!1),this._validateContent(n.content,n)||(this.fire(new c.j(new Error(`Image "${t}" has invalid "content" value`))),s=!1),s}_validateStretch(t,n){if(!t)return!0;let s=0;for(const l of t){if(l[0]-1);v++,d[v]=y,g[v]=w,g[v+1]=O3}for(let y=0,v=0;y{let y=this.entries[l];y||(y=this.entries[l]={glyphs:{},requests:{},ranges:{}});let v=y.glyphs[d];if(v!==void 0)return void g(null,{stack:l,id:d,glyph:v});if(v=this._tinySDF(y,l,d),v)return y.glyphs[d]=v,void g(null,{stack:l,id:d,glyph:v});const w=Math.floor(d/256);if(256*w>65535)return void g(new Error("glyphs > 65535 not supported"));if(y.ranges[w])return void g(null,{stack:l,id:d,glyph:v});if(!this.url)return void g(new Error("glyphsUrl is not set"));let T=y.requests[w];T||(T=y.requests[w]=[],N7.loadGlyphRange(l,w,this.url,this.requestManager,(I,A)=>{if(A){for(const N in A)this._doesCharSupportLocalGlyph(+N)||(y.glyphs[+N]=A[+N]);y.ranges[w]=!0}for(const N of T)N(I,A);delete y.requests[w]})),T.push((I,A)=>{I?g(I):A&&g(null,{stack:l,id:d,glyph:A[d]||null})})},(l,d)=>{if(l)n(l);else if(d){const g={};for(const{stack:y,id:v,glyph:w}of d)(g[y]||(g[y]={}))[v]=w&&{id:w.id,bitmap:w.bitmap.clone(),metrics:w.metrics};n(null,g)}})}_doesCharSupportLocalGlyph(t){return!!this.localIdeographFontFamily&&(c.u["CJK Unified Ideographs"](t)||c.u["Hangul Syllables"](t)||c.u.Hiragana(t)||c.u.Katakana(t))}_tinySDF(t,n,s){const l=this.localIdeographFontFamily;if(!l||!this._doesCharSupportLocalGlyph(s))return;let d=t.tinySDF;if(!d){let y="400";/bold/i.test(n)?y="900":/medium/i.test(n)?y="500":/light/i.test(n)&&(y="200"),d=t.tinySDF=new N7.TinySDF({fontSize:48,buffer:6,radius:16,cutoff:.25,fontFamily:l,fontWeight:y})}const g=d.draw(String.fromCharCode(s));return{id:s,bitmap:new c.q({width:g.width||60,height:g.height||60},g.data),metrics:{width:g.glyphWidth/2||24,height:g.glyphHeight/2||24,left:g.glyphLeft/2+.5||0,top:g.glyphTop/2-27.5||-8,advance:g.glyphAdvance/2||24,isDoubleResolution:!0}}}}N7.loadGlyphRange=function(u,t,n,s,l){const d=256*t,g=d+255,y=s.transformRequest(n.replace("{fontstack}",u).replace("{range}",`${d}-${g}`),I4.Glyphs);c.l(y,(v,w)=>{if(v)l(v);else if(w){const T={};for(const I of c.n(w))T[I.id]=I;l(null,T)}})},N7.TinySDF=class{constructor({fontSize:u=24,buffer:t=3,radius:n=8,cutoff:s=.25,fontFamily:l="sans-serif",fontWeight:d="normal",fontStyle:g="normal"}={}){this.buffer=t,this.cutoff=s,this.radius=n;const y=this.size=u+4*t,v=this._createCanvas(y),w=this.ctx=v.getContext("2d",{willReadFrequently:!0});w.font=`${g} ${d} ${u}px ${l}`,w.textBaseline="alphabetic",w.textAlign="left",w.fillStyle="black",this.gridOuter=new Float64Array(y*y),this.gridInner=new Float64Array(y*y),this.f=new Float64Array(y),this.z=new Float64Array(y+1),this.v=new Uint16Array(y)}_createCanvas(u){const t=document.createElement("canvas");return t.width=t.height=u,t}draw(u){const{width:t,actualBoundingBoxAscent:n,actualBoundingBoxDescent:s,actualBoundingBoxLeft:l,actualBoundingBoxRight:d}=this.ctx.measureText(u),g=Math.ceil(n),y=Math.max(0,Math.min(this.size-this.buffer,Math.ceil(d-l))),v=Math.min(this.size-this.buffer,g+Math.ceil(s)),w=y+2*this.buffer,T=v+2*this.buffer,I=Math.max(w*T,0),A=new Uint8ClampedArray(I),N={data:A,width:w,height:T,glyphWidth:y,glyphHeight:v,glyphTop:g,glyphLeft:0,glyphAdvance:t};if(y===0||v===0)return N;const{ctx:O,buffer:j,gridInner:R,gridOuter:n1}=this;O.clearRect(j,j,y,v),O.fillText(u,j,j+g);const d1=O.getImageData(j,j,y,v);n1.fill(O3,0,I),R.fill(0,0,I);for(let H=0;H0?w1*w1:0,R[m1]=w1<0?w1*w1:0}}P2(n1,0,0,w,T,w,this.f,this.v,this.z),P2(R,j,j,y,v,w,this.f,this.v,this.z);for(let H=0;H1&&(v=t[++y]);const T=Math.abs(w-v.left),I=Math.abs(w-v.right),A=Math.min(T,I);let N;const O=d/s*(l+1);if(v.isDash){const j=l-Math.abs(O);N=Math.sqrt(A*A+j*j)}else N=l-Math.sqrt(A*A+O*O);this.data[g+w]=Math.max(0,Math.min(255,N+128))}}}addRegularDash(t){for(let y=t.length-1;y>=0;--y){const v=t[y],w=t[y+1];v.zeroLength?t.splice(y,1):w&&w.isDash===v.isDash&&(w.left=v.left,t.splice(y,1))}const n=t[0],s=t[t.length-1];n.isDash===s.isDash&&(n.left=s.left-this.width,s.right=n.right+this.width);const l=this.width*this.nextRow;let d=0,g=t[d];for(let y=0;y1&&(g=t[++d]);const v=Math.abs(y-g.left),w=Math.abs(y-g.right),T=Math.min(v,w);this.data[l+y]=Math.max(0,Math.min(255,(g.isDash?T:-T)+128))}}addDash(t,n){const s=n?7:0,l=2*s+1;if(this.nextRow+l>this.height)return c.w("LineAtlas out of space"),null;let d=0;for(let y=0;y{l.send(t,n,d)},s=s||function(){})}getActor(){return this.currentActor=(this.currentActor+1)%this.actors.length,this.actors[this.currentActor]}remove(t=!0){this.actors.forEach(n=>{n.remove()}),this.actors=[],t&&this.workerPool.release(this.id)}}function V7(u,t,n){const s=function(l,d){if(l)return n(l);if(d){const g=c.F(c.e(d,u),["tiles","minzoom","maxzoom","attribution","bounds","scheme","tileSize","encoding"]);d.vector_layers&&(g.vectorLayers=d.vector_layers,g.vectorLayerIds=g.vectorLayers.map(y=>y.id)),n(null,g)}};return u.url?c.f(t.transformRequest(u.url,I4.Source),s):c.h.frame(()=>s(null,u))}class E4{constructor(t,n){t&&(n?this.setSouthWest(t).setNorthEast(n):Array.isArray(t)&&(t.length===4?this.setSouthWest([t[0],t[1]]).setNorthEast([t[2],t[3]]):this.setSouthWest(t[0]).setNorthEast(t[1])))}setNorthEast(t){return this._ne=t instanceof c.L?new c.L(t.lng,t.lat):c.L.convert(t),this}setSouthWest(t){return this._sw=t instanceof c.L?new c.L(t.lng,t.lat):c.L.convert(t),this}extend(t){const n=this._sw,s=this._ne;let l,d;if(t instanceof c.L)l=t,d=t;else{if(!(t instanceof E4))return Array.isArray(t)?t.length===4||t.every(Array.isArray)?this.extend(E4.convert(t)):this.extend(c.L.convert(t)):t&&("lng"in t||"lon"in t)&&"lat"in t?this.extend(c.L.convert(t)):this;if(l=t._sw,d=t._ne,!l||!d)return this}return n||s?(n.lng=Math.min(l.lng,n.lng),n.lat=Math.min(l.lat,n.lat),s.lng=Math.max(d.lng,s.lng),s.lat=Math.max(d.lat,s.lat)):(this._sw=new c.L(l.lng,l.lat),this._ne=new c.L(d.lng,d.lat)),this}getCenter(){return new c.L((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)}getSouthWest(){return this._sw}getNorthEast(){return this._ne}getNorthWest(){return new c.L(this.getWest(),this.getNorth())}getSouthEast(){return new c.L(this.getEast(),this.getSouth())}getWest(){return this._sw.lng}getSouth(){return this._sw.lat}getEast(){return this._ne.lng}getNorth(){return this._ne.lat}toArray(){return[this._sw.toArray(),this._ne.toArray()]}toString(){return`LngLatBounds(${this._sw.toString()}, ${this._ne.toString()})`}isEmpty(){return!(this._sw&&this._ne)}contains(t){const{lng:n,lat:s}=c.L.convert(t);let l=this._sw.lng<=n&&n<=this._ne.lng;return this._sw.lng>this._ne.lng&&(l=this._sw.lng>=n&&n>=this._ne.lng),this._sw.lat<=s&&s<=this._ne.lat&&l}static convert(t){return t instanceof E4?t:t&&new E4(t)}static fromLngLat(t,n=0){const s=360*n/40075017,l=s/Math.cos(Math.PI/180*t.lat);return new E4(new c.L(t.lng-l,t.lat-s),new c.L(t.lng+l,t.lat+s))}}class M2{constructor(t,n,s){this.bounds=E4.convert(this.validateBounds(t)),this.minzoom=n||0,this.maxzoom=s||24}validateBounds(t){return Array.isArray(t)&&t.length===4?[Math.max(-180,t[0]),Math.max(-90,t[1]),Math.min(180,t[2]),Math.min(90,t[3])]:[-180,-90,180,90]}contains(t){const n=Math.pow(2,t.z),s=Math.floor(c.G(this.bounds.getWest())*n),l=Math.floor(c.H(this.bounds.getNorth())*n),d=Math.ceil(c.G(this.bounds.getEast())*n),g=Math.ceil(c.H(this.bounds.getSouth())*n);return t.x>=s&&t.x=l&&t.y{this._loaded=!1,this.fire(new c.k("dataloading",{dataType:"source"})),this._tileJSONRequest=V7(this._options,this.map._requestManager,(d,g)=>{this._tileJSONRequest=null,this._loaded=!0,this.map.style.sourceCaches[this.id].clearTiles(),d?this.fire(new c.j(d)):g&&(c.e(this,g),g.bounds&&(this.tileBounds=new M2(g.bounds,this.minzoom,this.maxzoom)),this.fire(new c.k("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new c.k("data",{dataType:"source",sourceDataType:"content"})))})},this.serialize=()=>c.e({},this._options),this.id=t,this.dispatcher=s,this.type="vector",this.minzoom=0,this.maxzoom=22,this.scheme="xyz",this.tileSize=512,this.reparseOverscaled=!0,this.isTileClipped=!0,this._loaded=!1,c.e(this,c.F(n,["url","scheme","tileSize","promoteId"])),this._options=c.e({type:"vector"},n),this._collectResourceTiming=n.collectResourceTiming,this.tileSize!==512)throw new Error("vector tile sources must have a tileSize of 512");this.setEventedParent(l)}loaded(){return this._loaded}hasTile(t){return!this.tileBounds||this.tileBounds.contains(t.canonical)}onAdd(t){this.map=t,this.load()}setSourceProperty(t){this._tileJSONRequest&&this._tileJSONRequest.cancel(),t(),this.load()}setTiles(t){return this.setSourceProperty(()=>{this._options.tiles=t}),this}setUrl(t){return this.setSourceProperty(()=>{this.url=t,this._options.url=t}),this}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)}loadTile(t,n){const s=t.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme),l={request:this.map._requestManager.transformRequest(s,I4.Tile),uid:t.uid,tileID:t.tileID,zoom:t.tileID.overscaledZ,tileSize:this.tileSize*t.tileID.overscaleFactor(),type:this.type,source:this.id,pixelRatio:this.map.getPixelRatio(),showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};function d(g,y){return delete t.request,t.aborted?n(null):g&&g.status!==404?n(g):(y&&y.resourceTiming&&(t.resourceTiming=y.resourceTiming),this.map._refreshExpiredTiles&&y&&t.setExpiryData(y),t.loadVectorData(y,this.map.painter),n(null),void(t.reloadCallback&&(this.loadTile(t,t.reloadCallback),t.reloadCallback=null)))}l.request.collectResourceTiming=this._collectResourceTiming,t.actor&&t.state!=="expired"?t.state==="loading"?t.reloadCallback=n:t.request=t.actor.send("reloadTile",l,d.bind(this)):(t.actor=this.dispatcher.getActor(),t.request=t.actor.send("loadTile",l,d.bind(this)))}abortTile(t){t.request&&(t.request.cancel(),delete t.request),t.actor&&t.actor.send("abortTile",{uid:t.uid,type:this.type,source:this.id},void 0)}unloadTile(t){t.unloadVectorData(),t.actor&&t.actor.send("removeTile",{uid:t.uid,type:this.type,source:this.id},void 0)}hasTransition(){return!1}}class Z2 extends c.E{constructor(t,n,s,l){super(),this.id=t,this.dispatcher=s,this.setEventedParent(l),this.type="raster",this.minzoom=0,this.maxzoom=22,this.roundZoom=!0,this.scheme="xyz",this.tileSize=512,this._loaded=!1,this._options=c.e({type:"raster"},n),c.e(this,c.F(n,["url","scheme","tileSize"]))}load(){this._loaded=!1,this.fire(new c.k("dataloading",{dataType:"source"})),this._tileJSONRequest=V7(this._options,this.map._requestManager,(t,n)=>{this._tileJSONRequest=null,this._loaded=!0,t?this.fire(new c.j(t)):n&&(c.e(this,n),n.bounds&&(this.tileBounds=new M2(n.bounds,this.minzoom,this.maxzoom)),this.fire(new c.k("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new c.k("data",{dataType:"source",sourceDataType:"content"})))})}loaded(){return this._loaded}onAdd(t){this.map=t,this.load()}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)}setSourceProperty(t){this._tileJSONRequest&&this._tileJSONRequest.cancel(),t(),this.load()}setTiles(t){return this.setSourceProperty(()=>{this._options.tiles=t}),this}serialize(){return c.e({},this._options)}hasTile(t){return!this.tileBounds||this.tileBounds.contains(t.canonical)}loadTile(t,n){const s=t.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme);t.request=g4.getImage(this.map._requestManager.transformRequest(s,I4.Tile),(l,d,g)=>{if(delete t.request,t.aborted)t.state="unloaded",n(null);else if(l)t.state="errored",n(l);else if(d){this.map._refreshExpiredTiles&&g&&t.setExpiryData(g);const y=this.map.painter.context,v=y.gl;t.texture=this.map.painter.getTileTexture(d.width),t.texture?t.texture.update(d,{useMipmap:!0}):(t.texture=new a2(y,d,v.RGBA,{useMipmap:!0}),t.texture.bind(v.LINEAR,v.CLAMP_TO_EDGE,v.LINEAR_MIPMAP_NEAREST),y.extTextureFilterAnisotropic&&v.texParameterf(v.TEXTURE_2D,y.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,y.extTextureFilterAnisotropicMax)),t.state="loaded",n(null)}},this.map._refreshExpiredTiles)}abortTile(t,n){t.request&&(t.request.cancel(),delete t.request),n()}unloadTile(t,n){t.texture&&this.map.painter.saveTileTexture(t.texture),n()}hasTransition(){return!1}}class S0 extends Z2{constructor(t,n,s,l){super(t,n,s,l),this.type="raster-dem",this.maxzoom=22,this._options=c.e({type:"raster-dem"},n),this.encoding=n.encoding||"mapbox",this.redFactor=n.redFactor,this.greenFactor=n.greenFactor,this.blueFactor=n.blueFactor,this.baseShift=n.baseShift}loadTile(t,n){const s=t.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme),l=this.map._requestManager.transformRequest(s,I4.Tile);function d(g,y){g&&(t.state="errored",n(g)),y&&(t.dem=y,t.needsHillshadePrepare=!0,t.needsTerrainPrepare=!0,t.state="loaded",n(null))}t.neighboringTiles=this._getNeighboringTiles(t.tileID),t.request=g4.getImage(l,(g,y,v)=>c._(this,void 0,void 0,function*(){if(delete t.request,t.aborted)t.state="unloaded",n(null);else if(g)t.state="errored",n(g);else if(y){this.map._refreshExpiredTiles&&t.setExpiryData(v);const w=c.a(y)&&c.J()?y:yield function(I){return c._(this,void 0,void 0,function*(){if(typeof VideoFrame<"u"&&c.K()){const A=I.width+2,N=I.height+2;try{return new c.R({width:A,height:N},yield c.M(I,-1,-1,A,N))}catch{}}return c.h.getImageData(I,1)})}(y),T={uid:t.uid,coord:t.tileID,source:this.id,rawImageData:w,encoding:this.encoding,redFactor:this.redFactor,greenFactor:this.greenFactor,blueFactor:this.blueFactor,baseShift:this.baseShift};t.actor&&t.state!=="expired"||(t.actor=this.dispatcher.getActor(),t.actor.send("loadDEMTile",T,d))}}),this.map._refreshExpiredTiles)}_getNeighboringTiles(t){const n=t.canonical,s=Math.pow(2,n.z),l=(n.x-1+s)%s,d=n.x===0?t.wrap-1:t.wrap,g=(n.x+1+s)%s,y=n.x+1===s?t.wrap+1:t.wrap,v={};return v[new c.O(t.overscaledZ,d,n.z,l,n.y).key]={backfilled:!1},v[new c.O(t.overscaledZ,y,n.z,g,n.y).key]={backfilled:!1},n.y>0&&(v[new c.O(t.overscaledZ,d,n.z,l,n.y-1).key]={backfilled:!1},v[new c.O(t.overscaledZ,t.wrap,n.z,n.x,n.y-1).key]={backfilled:!1},v[new c.O(t.overscaledZ,y,n.z,g,n.y-1).key]={backfilled:!1}),n.y+1{this._updateWorkerData()},this.serialize=()=>c.e({},this._options,{type:this.type,data:this._data}),this.id=t,this.type="geojson",this.minzoom=0,this.maxzoom=18,this.tileSize=512,this.isTileClipped=!0,this.reparseOverscaled=!0,this._removed=!1,this._pendingLoads=0,this.actor=s.getActor(),this.setEventedParent(l),this._data=n.data,this._options=c.e({},n),this._collectResourceTiming=n.collectResourceTiming,n.maxzoom!==void 0&&(this.maxzoom=n.maxzoom),n.type&&(this.type=n.type),n.attribution&&(this.attribution=n.attribution),this.promoteId=n.promoteId;const d=c.N/this.tileSize;this.workerOptions=c.e({source:this.id,cluster:n.cluster||!1,geojsonVtOptions:{buffer:(n.buffer!==void 0?n.buffer:128)*d,tolerance:(n.tolerance!==void 0?n.tolerance:.375)*d,extent:c.N,maxZoom:this.maxzoom,lineMetrics:n.lineMetrics||!1,generateId:n.generateId||!1},superclusterOptions:{maxZoom:n.clusterMaxZoom!==void 0?n.clusterMaxZoom:this.maxzoom-1,minPoints:Math.max(2,n.clusterMinPoints||2),extent:c.N,radius:(n.clusterRadius||50)*d,log:!1,generateId:n.generateId||!1},clusterProperties:n.clusterProperties,filter:n.filter},n.workerOptions),typeof this.promoteId=="string"&&(this.workerOptions.promoteId=this.promoteId)}onAdd(t){this.map=t,this.load()}setData(t){return this._data=t,this._updateWorkerData(),this}updateData(t){return this._updateWorkerData(t),this}setClusterOptions(t){return this.workerOptions.cluster=t.cluster,t&&(t.clusterRadius!==void 0&&(this.workerOptions.superclusterOptions.radius=t.clusterRadius),t.clusterMaxZoom!==void 0&&(this.workerOptions.superclusterOptions.maxZoom=t.clusterMaxZoom)),this._updateWorkerData(),this}getClusterExpansionZoom(t,n){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:t,source:this.id},n),this}getClusterChildren(t,n){return this.actor.send("geojson.getClusterChildren",{clusterId:t,source:this.id},n),this}getClusterLeaves(t,n,s,l){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:t,limit:n,offset:s},l),this}_updateWorkerData(t){const n=c.e({},this.workerOptions);t?n.dataDiff=t:typeof this._data=="string"?(n.request=this.map._requestManager.transformRequest(c.h.resolveURL(this._data),I4.Source),n.request.collectResourceTiming=this._collectResourceTiming):n.data=JSON.stringify(this._data),this._pendingLoads++,this.fire(new c.k("dataloading",{dataType:"source"})),this.actor.send(`${this.type}.loadData`,n,(s,l)=>{if(this._pendingLoads--,this._removed||l&&l.abandoned)return void this.fire(new c.k("dataabort",{dataType:"source"}));let d=null;if(l&&l.resourceTiming&&l.resourceTiming[this.id]&&(d=l.resourceTiming[this.id].slice(0)),s)return void this.fire(new c.j(s));const g={dataType:"source"};this._collectResourceTiming&&d&&d.length>0&&c.e(g,{resourceTiming:d}),this.fire(new c.k("data",Object.assign(Object.assign({},g),{sourceDataType:"metadata"}))),this.fire(new c.k("data",Object.assign(Object.assign({},g),{sourceDataType:"content"})))})}loaded(){return this._pendingLoads===0}loadTile(t,n){const s=t.actor?"reloadTile":"loadTile";t.actor=this.actor;const l={type:this.type,uid:t.uid,tileID:t.tileID,zoom:t.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:this.map.getPixelRatio(),showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};t.request=this.actor.send(s,l,(d,g)=>(delete t.request,t.unloadVectorData(),t.aborted?n(null):d?n(d):(t.loadVectorData(g,this.map.painter,s==="reloadTile"),n(null))))}abortTile(t){t.request&&(t.request.cancel(),delete t.request),t.aborted=!0}unloadTile(t){t.unloadVectorData(),this.actor.send("removeTile",{uid:t.uid,type:this.type,source:this.id})}onRemove(){this._removed=!0,this.actor.send("removeSource",{type:this.type,source:this.id})}hasTransition(){return!1}}var l2=c.Q([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]);class y4 extends c.E{constructor(t,n,s,l){super(),this.load=(d,g)=>{this._loaded=!1,this.fire(new c.k("dataloading",{dataType:"source"})),this.url=this.options.url,this._request=g4.getImage(this.map._requestManager.transformRequest(this.url,I4.Image),(y,v)=>{this._request=null,this._loaded=!0,y?this.fire(new c.j(y)):v&&(this.image=v,d&&(this.coordinates=d),g&&g(),this._finishLoading())})},this.prepare=()=>{if(Object.keys(this.tiles).length===0||!this.image)return;const d=this.map.painter.context,g=d.gl;this.boundsBuffer||(this.boundsBuffer=d.createVertexBuffer(this._boundsArray,l2.members)),this.boundsSegments||(this.boundsSegments=c.S.simpleSegment(0,0,4,2)),this.texture||(this.texture=new a2(d,this.image,g.RGBA),this.texture.bind(g.LINEAR,g.CLAMP_TO_EDGE));let y=!1;for(const v in this.tiles){const w=this.tiles[v];w.state!=="loaded"&&(w.state="loaded",w.texture=this.texture,y=!0)}y&&this.fire(new c.k("data",{dataType:"source",sourceDataType:"idle",sourceId:this.id}))},this.serialize=()=>({type:"image",url:this.options.url,coordinates:this.coordinates}),this.id=t,this.dispatcher=s,this.coordinates=n.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(l),this.options=n}loaded(){return this._loaded}updateImage(t){return t.url?(this._request&&(this._request.cancel(),this._request=null),this.options.url=t.url,this.load(t.coordinates,()=>{this.texture=null}),this):this}_finishLoading(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new c.k("data",{dataType:"source",sourceDataType:"metadata"})))}onAdd(t){this.map=t,this.load()}onRemove(){this._request&&(this._request.cancel(),this._request=null)}setCoordinates(t){this.coordinates=t;const n=t.map(c.U.fromLngLat);this.tileID=function(l){let d=1/0,g=1/0,y=-1/0,v=-1/0;for(const A of l)d=Math.min(d,A.x),g=Math.min(g,A.y),y=Math.max(y,A.x),v=Math.max(v,A.y);const w=Math.max(y-d,v-g),T=Math.max(0,Math.floor(-Math.log(w)/Math.LN2)),I=Math.pow(2,T);return new c.W(T,Math.floor((d+y)/2*I),Math.floor((g+v)/2*I))}(n),this.minzoom=this.maxzoom=this.tileID.z;const s=n.map(l=>this.tileID.getTilePoint(l)._round());return this._boundsArray=new c.V,this._boundsArray.emplaceBack(s[0].x,s[0].y,0,0),this._boundsArray.emplaceBack(s[1].x,s[1].y,c.N,0),this._boundsArray.emplaceBack(s[3].x,s[3].y,0,c.N),this._boundsArray.emplaceBack(s[2].x,s[2].y,c.N,c.N),this.boundsBuffer&&(this.boundsBuffer.destroy(),delete this.boundsBuffer),this.fire(new c.k("data",{dataType:"source",sourceDataType:"content"})),this}loadTile(t,n){this.tileID&&this.tileID.equals(t.tileID.canonical)?(this.tiles[String(t.tileID.wrap)]=t,t.buckets={},n(null)):(t.state="errored",n(null))}hasTransition(){return!1}}class T0 extends y4{constructor(t,n,s,l){super(t,n,s,l),this.load=()=>{this._loaded=!1;const d=this.options;this.urls=[];for(const g of d.urls)this.urls.push(this.map._requestManager.transformRequest(g,I4.Source).url);c.X(this.urls,(g,y)=>{this._loaded=!0,g?this.fire(new c.j(g)):y&&(this.video=y,this.video.loop=!0,this.video.addEventListener("playing",()=>{this.map.triggerRepaint()}),this.map&&this.video.play(),this._finishLoading())})},this.prepare=()=>{if(Object.keys(this.tiles).length===0||this.video.readyState<2)return;const d=this.map.painter.context,g=d.gl;this.boundsBuffer||(this.boundsBuffer=d.createVertexBuffer(this._boundsArray,l2.members)),this.boundsSegments||(this.boundsSegments=c.S.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(g.LINEAR,g.CLAMP_TO_EDGE),g.texSubImage2D(g.TEXTURE_2D,0,0,0,g.RGBA,g.UNSIGNED_BYTE,this.video)):(this.texture=new a2(d,this.video,g.RGBA),this.texture.bind(g.LINEAR,g.CLAMP_TO_EDGE));let y=!1;for(const v in this.tiles){const w=this.tiles[v];w.state!=="loaded"&&(w.state="loaded",w.texture=this.texture,y=!0)}y&&this.fire(new c.k("data",{dataType:"source",sourceDataType:"idle",sourceId:this.id}))},this.serialize=()=>({type:"video",urls:this.urls,coordinates:this.coordinates}),this.roundZoom=!0,this.type="video",this.options=n}pause(){this.video&&this.video.pause()}play(){this.video&&this.video.play()}seek(t){if(this.video){const n=this.video.seekable;tn.end(0)?this.fire(new c.j(new c.Y(`sources.${this.id}`,null,`Playback for this video can be set only between the ${n.start(0)} and ${n.end(0)}-second mark.`))):this.video.currentTime=t}}getVideo(){return this.video}onAdd(t){this.map||(this.map=t,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))}hasTransition(){return this.video&&!this.video.paused}}class N3 extends y4{constructor(t,n,s,l){super(t,n,s,l),this.load=()=>{this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof HTMLCanvasElement?this.options.canvas:document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new c.j(new Error("Canvas dimensions cannot be less than or equal to zero."))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading())},this.prepare=()=>{let d=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,d=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,d=!0),this._hasInvalidDimensions()||Object.keys(this.tiles).length===0)return;const g=this.map.painter.context,y=g.gl;this.boundsBuffer||(this.boundsBuffer=g.createVertexBuffer(this._boundsArray,l2.members)),this.boundsSegments||(this.boundsSegments=c.S.simpleSegment(0,0,4,2)),this.texture?(d||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new a2(g,this.canvas,y.RGBA,{premultiply:!0});let v=!1;for(const w in this.tiles){const T=this.tiles[w];T.state!=="loaded"&&(T.state="loaded",T.texture=this.texture,v=!0)}v&&this.fire(new c.k("data",{dataType:"source",sourceDataType:"idle",sourceId:this.id}))},this.serialize=()=>({type:"canvas",coordinates:this.coordinates}),n.coordinates?Array.isArray(n.coordinates)&&n.coordinates.length===4&&!n.coordinates.some(d=>!Array.isArray(d)||d.length!==2||d.some(g=>typeof g!="number"))||this.fire(new c.j(new c.Y(`sources.${t}`,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new c.j(new c.Y(`sources.${t}`,null,'missing required property "coordinates"'))),n.animate&&typeof n.animate!="boolean"&&this.fire(new c.j(new c.Y(`sources.${t}`,null,'optional "animate" property must be a boolean value'))),n.canvas?typeof n.canvas=="string"||n.canvas instanceof HTMLCanvasElement||this.fire(new c.j(new c.Y(`sources.${t}`,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new c.j(new c.Y(`sources.${t}`,null,'missing required property "canvas"'))),this.options=n,this.animate=n.animate===void 0||n.animate}getCanvas(){return this.canvas}onAdd(t){this.map=t,this.load(),this.canvas&&this.animate&&this.play()}onRemove(){this.pause()}hasTransition(){return this._playing}_hasInvalidDimensions(){for(const t of[this.canvas.width,this.canvas.height])if(isNaN(t)||t<=0)return!0;return!1}}const G0={},C7=u=>{switch(u){case"geojson":return t3;case"image":return y4;case"raster":return Z2;case"raster-dem":return S0;case"vector":return l7;case"video":return T0;case"canvas":return N3}return G0[u]};function I0(u,t){const n=c.Z();return c.$(n,n,[1,1,0]),c.a0(n,n,[.5*u.width,.5*u.height,1]),c.a1(n,n,u.calculatePosMatrix(t.toUnwrapped()))}function q4(u,t,n,s,l,d){const g=function(I,A,N){if(I)for(const O of I){const j=A[O];if(j&&j.source===N&&j.type==="fill-extrusion")return!0}else for(const O in A){const j=A[O];if(j.source===N&&j.type==="fill-extrusion")return!0}return!1}(l&&l.layers,t,u.id),y=d.maxPitchScaleFactor(),v=u.tilesIn(s,y,g);v.sort(E3);const w=[];for(const I of v)w.push({wrappedTileID:I.tileID.wrapped().key,queryResults:I.tile.queryRenderedFeatures(t,n,u._state,I.queryGeometry,I.cameraQueryGeometry,I.scale,l,d,y,I0(u.transform,I.tileID))});const T=function(I){const A={},N={};for(const O of I){const j=O.queryResults,R=O.wrappedTileID,n1=N[R]=N[R]||{};for(const d1 in j){const H=j[d1],a1=n1[d1]=n1[d1]||{},f1=A[d1]=A[d1]||[];for(const m1 of H)a1[m1.featureIndex]||(a1[m1.featureIndex]=!0,f1.push(m1))}}return A}(w);for(const I in T)T[I].forEach(A=>{const N=A.feature,O=u.getFeatureState(N.layer["source-layer"],N.id);N.source=N.layer.source,N.layer["source-layer"]&&(N.sourceLayer=N.layer["source-layer"]),N.state=O});return T}function E3(u,t){const n=u.tileID,s=t.tileID;return n.overscaledZ-s.overscaledZ||n.canonical.y-s.canonical.y||n.wrap-s.wrap||n.canonical.x-s.canonical.x}class V3{constructor(t,n){this.timeAdded=0,this.fadeEndTime=0,this.tileID=t,this.uid=c.a2(),this.uses=0,this.tileSize=n,this.buckets={},this.expirationTime=null,this.queryPadding=0,this.hasSymbolBuckets=!1,this.hasRTLText=!1,this.dependencies={},this.rtt=[],this.rttCoords={},this.expiredRequestCount=0,this.state="loading"}registerFadeDuration(t){const n=t+this.timeAdded;nd.getLayer(w)).filter(Boolean);if(v.length!==0){y.layers=v,y.stateDependentLayerIds&&(y.stateDependentLayers=y.stateDependentLayerIds.map(w=>v.filter(T=>T.id===w)[0]));for(const w of v)g[w.id]=y}}return g}(t.buckets,n.style),this.hasSymbolBuckets=!1;for(const l in this.buckets){const d=this.buckets[l];if(d instanceof c.a4){if(this.hasSymbolBuckets=!0,!s)break;d.justReloaded=!0}}if(this.hasRTLText=!1,this.hasSymbolBuckets)for(const l in this.buckets){const d=this.buckets[l];if(d instanceof c.a4&&d.hasRTLText){this.hasRTLText=!0,c.a5();break}}this.queryPadding=0;for(const l in this.buckets){const d=this.buckets[l];this.queryPadding=Math.max(this.queryPadding,n.style.getLayer(l).queryRadius(d))}t.imageAtlas&&(this.imageAtlas=t.imageAtlas),t.glyphAtlasImage&&(this.glyphAtlasImage=t.glyphAtlasImage)}else this.collisionBoxArray=new c.a3}unloadVectorData(){for(const t in this.buckets)this.buckets[t].destroy();this.buckets={},this.imageAtlasTexture&&this.imageAtlasTexture.destroy(),this.imageAtlas&&(this.imageAtlas=null),this.glyphAtlasTexture&&this.glyphAtlasTexture.destroy(),this.latestFeatureIndex=null,this.state="unloaded"}getBucket(t){return this.buckets[t.id]}upload(t){for(const s in this.buckets){const l=this.buckets[s];l.uploadPending()&&l.upload(t)}const n=t.gl;this.imageAtlas&&!this.imageAtlas.uploaded&&(this.imageAtlasTexture=new a2(t,this.imageAtlas.image,n.RGBA),this.imageAtlas.uploaded=!0),this.glyphAtlasImage&&(this.glyphAtlasTexture=new a2(t,this.glyphAtlasImage,n.ALPHA),this.glyphAtlasImage=null)}prepare(t){this.imageAtlas&&this.imageAtlas.patchUpdatedImages(t,this.imageAtlasTexture)}queryRenderedFeatures(t,n,s,l,d,g,y,v,w,T){return this.latestFeatureIndex&&this.latestFeatureIndex.rawTileData?this.latestFeatureIndex.query({queryGeometry:l,cameraQueryGeometry:d,scale:g,tileSize:this.tileSize,pixelPosMatrix:T,transform:v,params:y,queryPadding:this.queryPadding*w},t,n,s):{}}querySourceFeatures(t,n){const s=this.latestFeatureIndex;if(!s||!s.rawTileData)return;const l=s.loadVTLayers(),d=n&&n.sourceLayer?n.sourceLayer:"",g=l._geojsonTileLayer||l[d];if(!g)return;const y=c.a6(n&&n.filter),{z:v,x:w,y:T}=this.tileID.canonical,I={z:v,x:w,y:T};for(let A=0;As)l=!1;else if(n)if(this.expirationTime{this.remove(t,d)},s)),this.data[l].push(d),this.order.push(l),this.order.length>this.max){const g=this._getAndRemoveByKey(this.order[0]);g&&this.onRemove(g)}return this}has(t){return t.wrapped().key in this.data}getAndRemove(t){return this.has(t)?this._getAndRemoveByKey(t.wrapped().key):null}_getAndRemoveByKey(t){const n=this.data[t].shift();return n.timeout&&clearTimeout(n.timeout),this.data[t].length===0&&delete this.data[t],this.order.splice(this.order.indexOf(t),1),n.value}getByKey(t){const n=this.data[t];return n?n[0].value:null}get(t){return this.has(t)?this.data[t.wrapped().key][0].value:null}remove(t,n){if(!this.has(t))return this;const s=t.wrapped().key,l=n===void 0?0:this.data[s].indexOf(n),d=this.data[s][l];return this.data[s].splice(l,1),d.timeout&&clearTimeout(d.timeout),this.data[s].length===0&&delete this.data[s],this.onRemove(d.value),this.order.splice(this.order.indexOf(s),1),this}setMaxSize(t){for(this.max=t;this.order.length>this.max;){const n=this._getAndRemoveByKey(this.order[0]);n&&this.onRemove(n)}return this}filter(t){const n=[];for(const s in this.data)for(const l of this.data[s])t(l.value)||n.push(l);for(const s of n)this.remove(s.value.tileID,s)}}class _1{constructor(){this.state={},this.stateChanges={},this.deletedStates={}}updateState(t,n,s){const l=String(n);if(this.stateChanges[t]=this.stateChanges[t]||{},this.stateChanges[t][l]=this.stateChanges[t][l]||{},c.e(this.stateChanges[t][l],s),this.deletedStates[t]===null){this.deletedStates[t]={};for(const d in this.state[t])d!==l&&(this.deletedStates[t][d]=null)}else if(this.deletedStates[t]&&this.deletedStates[t][l]===null){this.deletedStates[t][l]={};for(const d in this.state[t][l])s[d]||(this.deletedStates[t][l][d]=null)}else for(const d in s)this.deletedStates[t]&&this.deletedStates[t][l]&&this.deletedStates[t][l][d]===null&&delete this.deletedStates[t][l][d]}removeFeatureState(t,n,s){if(this.deletedStates[t]===null)return;const l=String(n);if(this.deletedStates[t]=this.deletedStates[t]||{},s&&n!==void 0)this.deletedStates[t][l]!==null&&(this.deletedStates[t][l]=this.deletedStates[t][l]||{},this.deletedStates[t][l][s]=null);else if(n!==void 0)if(this.stateChanges[t]&&this.stateChanges[t][l])for(s in this.deletedStates[t][l]={},this.stateChanges[t][l])this.deletedStates[t][l][s]=null;else this.deletedStates[t][l]=null;else this.deletedStates[t]=null}getState(t,n){const s=String(n),l=c.e({},(this.state[t]||{})[s],(this.stateChanges[t]||{})[s]);if(this.deletedStates[t]===null)return{};if(this.deletedStates[t]){const d=this.deletedStates[t][n];if(d===null)return{};for(const g in d)delete l[g]}return l}initializeTileState(t,n){t.setFeatureState(this.state,n)}coalesceChanges(t,n){const s={};for(const l in this.stateChanges){this.state[l]=this.state[l]||{};const d={};for(const g in this.stateChanges[l])this.state[l][g]||(this.state[l][g]={}),c.e(this.state[l][g],this.stateChanges[l][g]),d[g]=this.state[l][g];s[l]=d}for(const l in this.deletedStates){this.state[l]=this.state[l]||{};const d={};if(this.deletedStates[l]===null)for(const g in this.state[l])d[g]={},this.state[l][g]={};else for(const g in this.deletedStates[l]){if(this.deletedStates[l][g]===null)this.state[l][g]={};else for(const y of Object.keys(this.deletedStates[l][g]))delete this.state[l][g][y];d[g]=this.state[l][g]}s[l]=s[l]||{},c.e(s[l],d)}if(this.stateChanges={},this.deletedStates={},Object.keys(s).length!==0)for(const l in t)t[l].setFeatureState(s,n)}}class g7 extends c.E{constructor(t,n,s){super(),this.id=t,this.dispatcher=s,this.on("data",l=>{l.dataType==="source"&&l.sourceDataType==="metadata"&&(this._sourceLoaded=!0),this._sourceLoaded&&!this._paused&&l.dataType==="source"&&l.sourceDataType==="content"&&(this.reload(),this.transform&&this.update(this.transform,this.terrain),this._didEmitContent=!0)}),this.on("dataloading",()=>{this._sourceErrored=!1}),this.on("error",()=>{this._sourceErrored=this._source.loaded()}),this._source=((l,d,g,y)=>{const v=new(C7(d.type))(l,d,g,y);if(v.id!==l)throw new Error(`Expected Source id to be ${l} instead of ${v.id}`);return v})(t,n,s,this),this._tiles={},this._cache=new l0(0,this._unloadTile.bind(this)),this._timers={},this._cacheTimers={},this._maxTileCacheSize=null,this._maxTileCacheZoomLevels=null,this._loadedParentTiles={},this._coveredTiles={},this._state=new _1,this._didEmitContent=!1,this._updated=!1}onAdd(t){this.map=t,this._maxTileCacheSize=t?t._maxTileCacheSize:null,this._maxTileCacheZoomLevels=t?t._maxTileCacheZoomLevels:null,this._source&&this._source.onAdd&&this._source.onAdd(t)}onRemove(t){this.clearTiles(),this._source&&this._source.onRemove&&this._source.onRemove(t)}loaded(){if(this._sourceErrored)return!0;if(!this._sourceLoaded||!this._source.loaded())return!1;if(!(this.used===void 0&&this.usedForTerrain===void 0||this.used||this.usedForTerrain))return!0;if(!this._updated)return!1;for(const t in this._tiles){const n=this._tiles[t];if(n.state!=="loaded"&&n.state!=="errored")return!1}return!0}getSource(){return this._source}pause(){this._paused=!0}resume(){if(!this._paused)return;const t=this._shouldReloadOnResume;this._paused=!1,this._shouldReloadOnResume=!1,t&&this.reload(),this.transform&&this.update(this.transform,this.terrain)}_loadTile(t,n){return this._source.loadTile(t,n)}_unloadTile(t){if(this._source.unloadTile)return this._source.unloadTile(t,()=>{})}_abortTile(t){this._source.abortTile&&this._source.abortTile(t,()=>{}),this._source.fire(new c.k("dataabort",{tile:t,coord:t.tileID,dataType:"source"}))}serialize(){return this._source.serialize()}prepare(t){this._source.prepare&&this._source.prepare(),this._state.coalesceChanges(this._tiles,this.map?this.map.painter:null);for(const n in this._tiles){const s=this._tiles[n];s.upload(t),s.prepare(this.map.style.imageManager)}}getIds(){return Object.values(this._tiles).map(t=>t.tileID).sort(U7).map(t=>t.key)}getRenderableIds(t){const n=[];for(const s in this._tiles)this._isIdRenderable(s,t)&&n.push(this._tiles[s]);return t?n.sort((s,l)=>{const d=s.tileID,g=l.tileID,y=new c.P(d.canonical.x,d.canonical.y)._rotate(this.transform.angle),v=new c.P(g.canonical.x,g.canonical.y)._rotate(this.transform.angle);return d.overscaledZ-g.overscaledZ||v.y-y.y||v.x-y.x}).map(s=>s.tileID.key):n.map(s=>s.tileID).sort(U7).map(s=>s.key)}hasRenderableParent(t){const n=this.findLoadedParent(t,0);return!!n&&this._isIdRenderable(n.tileID.key)}_isIdRenderable(t,n){return this._tiles[t]&&this._tiles[t].hasData()&&!this._coveredTiles[t]&&(n||!this._tiles[t].holdingForFade())}reload(){if(this._paused)this._shouldReloadOnResume=!0;else{this._cache.reset();for(const t in this._tiles)this._tiles[t].state!=="errored"&&this._reloadTile(t,"reloading")}}_reloadTile(t,n){const s=this._tiles[t];s&&(s.state!=="loading"&&(s.state=n),this._loadTile(s,this._tileLoaded.bind(this,s,t,n)))}_tileLoaded(t,n,s,l){if(l)return t.state="errored",void(l.status!==404?this._source.fire(new c.j(l,{tile:t})):this.update(this.transform,this.terrain));t.timeAdded=c.h.now(),s==="expired"&&(t.refreshedUponExpiration=!0),this._setTileReloadTimer(n,t),this.getSource().type==="raster-dem"&&t.dem&&this._backfillDEM(t),this._state.initializeTileState(t,this.map?this.map.painter:null),t.aborted||this._source.fire(new c.k("data",{dataType:"source",tile:t,coord:t.tileID}))}_backfillDEM(t){const n=this.getRenderableIds();for(let l=0;l1||(Math.abs(g)>1&&(Math.abs(g+v)===1?g+=v:Math.abs(g-v)===1&&(g-=v)),d.dem&&l.dem&&(l.dem.backfillBorder(d.dem,g,y),l.neighboringTiles&&l.neighboringTiles[w]&&(l.neighboringTiles[w].backfilled=!0)))}}getTile(t){return this.getTileByID(t.key)}getTileByID(t){return this._tiles[t]}_retainLoadedChildren(t,n,s,l){for(const d in this._tiles){let g=this._tiles[d];if(l[d]||!g.hasData()||g.tileID.overscaledZ<=n||g.tileID.overscaledZ>s)continue;let y=g.tileID;for(;g&&g.tileID.overscaledZ>n+1;){const w=g.tileID.scaledTo(g.tileID.overscaledZ-1);g=this._tiles[w.key],g&&g.hasData()&&(y=w)}let v=y;for(;v.overscaledZ>n;)if(v=v.scaledTo(v.overscaledZ-1),t[v.key]){l[y.key]=y;break}}}findLoadedParent(t,n){if(t.key in this._loadedParentTiles){const s=this._loadedParentTiles[t.key];return s&&s.tileID.overscaledZ>=n?s:null}for(let s=t.overscaledZ-1;s>=n;s--){const l=t.scaledTo(s),d=this._getLoadedTile(l);if(d)return d}}_getLoadedTile(t){const n=this._tiles[t.key];return n&&n.hasData()?n:this._cache.getByKey(t.wrapped().key)}updateCacheSize(t){const n=Math.ceil(t.width/this._source.tileSize)+1,s=Math.ceil(t.height/this._source.tileSize)+1,l=Math.floor(n*s*(this._maxTileCacheZoomLevels===null?c.c.MAX_TILE_CACHE_ZOOM_LEVELS:this._maxTileCacheZoomLevels)),d=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,l):l;this._cache.setMaxSize(d)}handleWrapJump(t){const n=Math.round((t-(this._prevLng===void 0?t:this._prevLng))/360);if(this._prevLng=t,n){const s={};for(const l in this._tiles){const d=this._tiles[l];d.tileID=d.tileID.unwrapTo(d.tileID.wrap+n),s[d.tileID.key]=d}this._tiles=s;for(const l in this._timers)clearTimeout(this._timers[l]),delete this._timers[l];for(const l in this._tiles)this._setTileReloadTimer(l,this._tiles[l])}}update(t,n){if(this.transform=t,this.terrain=n,!this._sourceLoaded||this._paused)return;let s;this.updateCacheSize(t),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used||this.usedForTerrain?this._source.tileID?s=t.getVisibleUnwrappedCoordinates(this._source.tileID).map(T=>new c.O(T.canonical.z,T.wrap,T.canonical.z,T.canonical.x,T.canonical.y)):(s=t.coveringTiles({tileSize:this.usedForTerrain?this.tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:!this.usedForTerrain&&this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled,terrain:n}),this._source.hasTile&&(s=s.filter(T=>this._source.hasTile(T)))):s=[];const l=t.coveringZoomLevel(this._source),d=Math.max(l-g7.maxOverzooming,this._source.minzoom),g=Math.max(l+g7.maxUnderzooming,this._source.minzoom);if(this.usedForTerrain){const T={};for(const I of s)if(I.canonical.z>this._source.minzoom){const A=I.scaledTo(I.canonical.z-1);T[A.key]=A;const N=I.scaledTo(Math.max(this._source.minzoom,Math.min(I.canonical.z,5)));T[N.key]=N}s=s.concat(Object.values(T))}const y=s.length===0&&!this._updated&&this._didEmitContent;this._updated=!0,y&&this.fire(new c.k("data",{sourceDataType:"idle",dataType:"source",sourceId:this.id}));const v=this._updateRetainedTiles(s,l);if(J4(this._source.type)){const T={},I={},A=Object.keys(v),N=c.h.now();for(const O of A){const j=v[O],R=this._tiles[O];if(!R||R.fadeEndTime!==0&&R.fadeEndTime<=N)continue;const n1=this.findLoadedParent(j,d);n1&&(this._addTile(n1.tileID),T[n1.tileID.key]=n1.tileID),I[O]=j}this._retainLoadedChildren(I,l,g,v);for(const O in T)v[O]||(this._coveredTiles[O]=!0,v[O]=T[O]);if(n){const O={},j={};for(const R of s)this._tiles[R.key].hasData()?O[R.key]=R:j[R.key]=R;for(const R in j){const n1=j[R].children(this._source.maxzoom);this._tiles[n1[0].key]&&this._tiles[n1[1].key]&&this._tiles[n1[2].key]&&this._tiles[n1[3].key]&&(O[n1[0].key]=v[n1[0].key]=n1[0],O[n1[1].key]=v[n1[1].key]=n1[1],O[n1[2].key]=v[n1[2].key]=n1[2],O[n1[3].key]=v[n1[3].key]=n1[3],delete j[R])}for(const R in j){const n1=this.findLoadedParent(j[R],this._source.minzoom);if(n1){O[n1.tileID.key]=v[n1.tileID.key]=n1.tileID;for(const d1 in O)O[d1].isChildOf(n1.tileID)&&delete O[d1]}}for(const R in this._tiles)O[R]||(this._coveredTiles[R]=!0)}}for(const T in v)this._tiles[T].clearFadeHold();const w=c.ab(this._tiles,v);for(const T of w){const I=this._tiles[T];I.hasSymbolBuckets&&!I.holdingForFade()?I.setHoldDuration(this.map._fadeDuration):I.hasSymbolBuckets&&!I.symbolFadeFinished()||this._removeTile(T)}this._updateLoadedParentTileCache()}releaseSymbolFadeTiles(){for(const t in this._tiles)this._tiles[t].holdingForFade()&&this._removeTile(t)}_updateRetainedTiles(t,n){const s={},l={},d=Math.max(n-g7.maxOverzooming,this._source.minzoom),g=Math.max(n+g7.maxUnderzooming,this._source.minzoom),y={};for(const v of t){const w=this._addTile(v);s[v.key]=v,w.hasData()||nthis._source.maxzoom){const I=v.children(this._source.maxzoom)[0],A=this.getTile(I);if(A&&A.hasData()){s[I.key]=I;continue}}else{const I=v.children(this._source.maxzoom);if(s[I[0].key]&&s[I[1].key]&&s[I[2].key]&&s[I[3].key])continue}let T=w.wasRequested();for(let I=v.overscaledZ-1;I>=d;--I){const A=v.scaledTo(I);if(l[A.key])break;if(l[A.key]=!0,w=this.getTile(A),!w&&T&&(w=this._addTile(A)),w){const N=w.hasData();if((T||N)&&(s[A.key]=A),T=w.wasRequested(),N)break}}}return s}_updateLoadedParentTileCache(){this._loadedParentTiles={};for(const t in this._tiles){const n=[];let s,l=this._tiles[t].tileID;for(;l.overscaledZ>0;){if(l.key in this._loadedParentTiles){s=this._loadedParentTiles[l.key];break}n.push(l.key);const d=l.scaledTo(l.overscaledZ-1);if(s=this._getLoadedTile(d),s)break;l=d}for(const d of n)this._loadedParentTiles[d]=s}}_addTile(t){let n=this._tiles[t.key];if(n)return n;n=this._cache.getAndRemove(t),n&&(this._setTileReloadTimer(t.key,n),n.tileID=t,this._state.initializeTileState(n,this.map?this.map.painter:null),this._cacheTimers[t.key]&&(clearTimeout(this._cacheTimers[t.key]),delete this._cacheTimers[t.key],this._setTileReloadTimer(t.key,n)));const s=n;return n||(n=new V3(t,this._source.tileSize*t.overscaleFactor()),this._loadTile(n,this._tileLoaded.bind(this,n,t.key,n.state))),n.uses++,this._tiles[t.key]=n,s||this._source.fire(new c.k("dataloading",{tile:n,coord:n.tileID,dataType:"source"})),n}_setTileReloadTimer(t,n){t in this._timers&&(clearTimeout(this._timers[t]),delete this._timers[t]);const s=n.getExpiryTimeout();s&&(this._timers[t]=setTimeout(()=>{this._reloadTile(t,"expired"),delete this._timers[t]},s))}_removeTile(t){const n=this._tiles[t];n&&(n.uses--,delete this._tiles[t],this._timers[t]&&(clearTimeout(this._timers[t]),delete this._timers[t]),n.uses>0||(n.hasData()&&n.state!=="reloading"?this._cache.add(n.tileID,n,n.getExpiryTimeout()):(n.aborted=!0,this._abortTile(n),this._unloadTile(n))))}clearTiles(){this._shouldReloadOnResume=!1,this._paused=!1;for(const t in this._tiles)this._removeTile(t);this._cache.reset()}tilesIn(t,n,s){const l=[],d=this.transform;if(!d)return l;const g=s?d.getCameraQueryGeometry(t):t,y=t.map(O=>d.pointCoordinate(O,this.terrain)),v=g.map(O=>d.pointCoordinate(O,this.terrain)),w=this.getIds();let T=1/0,I=1/0,A=-1/0,N=-1/0;for(const O of v)T=Math.min(T,O.x),I=Math.min(I,O.y),A=Math.max(A,O.x),N=Math.max(N,O.y);for(let O=0;O=0&&H[1].y+d1>=0){const a1=y.map(m1=>R.getTilePoint(m1)),f1=v.map(m1=>R.getTilePoint(m1));l.push({tile:j,tileID:R,queryGeometry:a1,cameraQueryGeometry:f1,scale:n1})}}return l}getVisibleCoordinates(t){const n=this.getRenderableIds(t).map(s=>this._tiles[s].tileID);for(const s of n)s.posMatrix=this.transform.calculatePosMatrix(s.toUnwrapped());return n}hasTransition(){if(this._source.hasTransition())return!0;if(J4(this._source.type)){const t=c.h.now();for(const n in this._tiles)if(this._tiles[n].fadeEndTime>=t)return!0}return!1}setFeatureState(t,n,s){this._state.updateState(t=t||"_geojsonTileLayer",n,s)}removeFeatureState(t,n,s){this._state.removeFeatureState(t=t||"_geojsonTileLayer",n,s)}getFeatureState(t,n){return this._state.getState(t=t||"_geojsonTileLayer",n)}setDependencies(t,n,s){const l=this._tiles[t];l&&l.setDependencies(n,s)}reloadTilesForDependencies(t,n){for(const s in this._tiles)this._tiles[s].hasDependency(t,n)&&this._reloadTile(s,"reloading");this._cache.filter(s=>!s.hasDependency(t,n))}}function U7(u,t){const n=Math.abs(2*u.wrap)-+(u.wrap<0),s=Math.abs(2*t.wrap)-+(t.wrap<0);return u.overscaledZ-t.overscaledZ||s-n||t.canonical.y-u.canonical.y||t.canonical.x-u.canonical.x}function J4(u){return u==="raster"||u==="image"||u==="video"}g7.maxOverzooming=10,g7.maxUnderzooming=3;const D4="mapboxgl_preloaded_worker_pool";class i3{constructor(){this.active={}}acquire(t){if(!this.workers)for(this.workers=[];this.workers.length{n.terminate()}),this.workers=null)}isPreloaded(){return!!this.active[D4]}numActive(){return Object.keys(this.active).length}}const j7=Math.floor(c.h.hardwareConcurrency/2);let r3;function c0(){return r3||(r3=new i3),r3}i3.workerCount=c.ac(globalThis)?Math.max(Math.min(j7,3),1):1;class U3{constructor(t,n){this.reset(t,n)}reset(t,n){this.points=t||[],this._distances=[0];for(let s=1;s0?(l-g)/y:0;return this.points[d].mult(1-v).add(this.points[n].mult(v))}}function $7(u,t){let n=!0;return u==="always"||u!=="never"&&t!=="never"||(n=!1),n}class m3{constructor(t,n,s){const l=this.boxCells=[],d=this.circleCells=[];this.xCellCount=Math.ceil(t/s),this.yCellCount=Math.ceil(n/s);for(let g=0;gthis.width||l<0||n>this.height)return[];const v=[];if(t<=0&&n<=0&&this.width<=s&&this.height<=l){if(d)return[{key:null,x1:t,y1:n,x2:s,y2:l}];for(let w=0;w0}hitTestCircle(t,n,s,l,d){const g=t-s,y=t+s,v=n-s,w=n+s;if(y<0||g>this.width||w<0||v>this.height)return!1;const T=[];return this._forEachCell(g,v,y,w,this._queryCellCircle,T,{hitTest:!0,overlapMode:l,circle:{x:t,y:n,radius:s},seenUids:{box:{},circle:{}}},d),T.length>0}_queryCell(t,n,s,l,d,g,y,v){const{seenUids:w,hitTest:T,overlapMode:I}=y,A=this.boxCells[d];if(A!==null){const O=this.bboxes;for(const j of A)if(!w.box[j]){w.box[j]=!0;const R=4*j,n1=this.boxKeys[j];if(t<=O[R+2]&&n<=O[R+3]&&s>=O[R+0]&&l>=O[R+1]&&(!v||v(n1))&&(!T||!$7(I,n1.overlapMode))&&(g.push({key:n1,x1:O[R],y1:O[R+1],x2:O[R+2],y2:O[R+3]}),T))return!0}}const N=this.circleCells[d];if(N!==null){const O=this.circles;for(const j of N)if(!w.circle[j]){w.circle[j]=!0;const R=3*j,n1=this.circleKeys[j];if(this._circleAndRectCollide(O[R],O[R+1],O[R+2],t,n,s,l)&&(!v||v(n1))&&(!T||!$7(I,n1.overlapMode))){const d1=O[R],H=O[R+1],a1=O[R+2];if(g.push({key:n1,x1:d1-a1,y1:H-a1,x2:d1+a1,y2:H+a1}),T)return!0}}}return!1}_queryCellCircle(t,n,s,l,d,g,y,v){const{circle:w,seenUids:T,overlapMode:I}=y,A=this.boxCells[d];if(A!==null){const O=this.bboxes;for(const j of A)if(!T.box[j]){T.box[j]=!0;const R=4*j,n1=this.boxKeys[j];if(this._circleAndRectCollide(w.x,w.y,w.radius,O[R+0],O[R+1],O[R+2],O[R+3])&&(!v||v(n1))&&!$7(I,n1.overlapMode))return g.push(!0),!0}}const N=this.circleCells[d];if(N!==null){const O=this.circles;for(const j of N)if(!T.circle[j]){T.circle[j]=!0;const R=3*j,n1=this.circleKeys[j];if(this._circlesCollide(O[R],O[R+1],O[R+2],w.x,w.y,w.radius)&&(!v||v(n1))&&!$7(I,n1.overlapMode))return g.push(!0),!0}}}_forEachCell(t,n,s,l,d,g,y,v){const w=this._convertToXCellCoord(t),T=this._convertToYCellCoord(n),I=this._convertToXCellCoord(s),A=this._convertToYCellCoord(l);for(let N=w;N<=I;N++)for(let O=T;O<=A;O++)if(d.call(this,t,n,s,l,this.xCellCount*O+N,g,y,v))return}_convertToXCellCoord(t){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(t*this.xScale)))}_convertToYCellCoord(t){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(t*this.yScale)))}_circlesCollide(t,n,s,l,d,g){const y=l-t,v=d-n,w=s+g;return w*w>y*y+v*v}_circleAndRectCollide(t,n,s,l,d,g,y){const v=(g-l)/2,w=Math.abs(t-(l+v));if(w>v+s)return!1;const T=(y-d)/2,I=Math.abs(n-(d+T));if(I>T+s)return!1;if(w<=v||I<=T)return!0;const A=w-v,N=I-T;return A*A+N*N<=s*s}}function z1(u,t,n,s,l){const d=c.Z();return t?(c.a0(d,d,[1/l,1/l,1]),n||c.ae(d,d,s.angle)):c.a1(d,s.labelPlaneMatrix,u),d}function P7(u,t,n,s,l){if(t){const d=c.af(u);return c.a0(d,d,[l,l,1]),n||c.ae(d,d,-s.angle),d}return s.glCoordMatrix}function _2(u,t,n){let s;n?(s=[u.x,u.y,n(u.x,u.y),1],c.ag(s,s,t)):(s=[u.x,u.y,0,1],$(s,s,t));const l=s[3];return{point:new c.P(s[0]/l,s[1]/l),signedDistanceFromCamera:l}}function u0(u,t){return .5+u/t*.5}function y7(u,t){const n=u[0]/u[3],s=u[1]/u[3];return n>=-t[0]&&n<=t[0]&&s>=-t[1]&&s<=t[1]}function F1(u,t,n,s,l,d,g,y,v,w){const T=s?u.textSizeData:u.iconSizeData,I=c.ah(T,n.transform.zoom),A=[256/n.width*2+1,256/n.height*2+1],N=s?u.text.dynamicLayoutVertexArray:u.icon.dynamicLayoutVertexArray;N.clear();const O=u.lineVertexArray,j=s?u.text.placedSymbolArray:u.icon.placedSymbolArray,R=n.transform.width/n.transform.height;let n1=!1;for(let d1=0;d1Math.abs(n.x-t.x)*s?{useVertical:!0}:(u===c.ai.vertical?t.yn.x)?{needsFlipping:!0}:null}function n7(u,t,n,s,l,d,g,y,v,w,T,I,A,N,O,j){const R=t/24,n1=u.lineOffsetX*R,d1=u.lineOffsetY*R;let H;if(u.numGlyphs>1){const a1=u.glyphStartIndex+u.numGlyphs,f1=u.lineStartIndex,m1=u.lineStartIndex+u.lineLength,w1=w4(R,y,n1,d1,n,T,I,u,v,d,A,O,j);if(!w1)return{notEnoughRoom:!0};const P1=_2(w1.first.point,g,j).point,E1=_2(w1.last.point,g,j).point;if(s&&!n){const k1=f4(u.writingMode,P1,E1,N);if(k1)return k1}H=[w1.first];for(let k1=u.glyphStartIndex+1;k10?P1.point:M7(I,w1,f1,1,l,j),k1=f4(u.writingMode,f1,E1,N);if(k1)return k1}const a1=C(R*y.getoffsetX(u.glyphStartIndex),n1,d1,n,T,I,u.segment,u.lineStartIndex,u.lineStartIndex+u.lineLength,v,d,A,O,j);if(!a1)return{notEnoughRoom:!0};H=[a1]}for(const a1 of H)c.ak(w,a1.point,a1.angle);return{}}function M7(u,t,n,s,l,d){const g=_2(u.add(u.sub(t)._unit()),l,d).point,y=n.sub(g);return n.add(y._mult(s/y.mag()))}function h4(u,t){const{projectionCache:n,lineVertexArray:s,labelPlaneMatrix:l,tileAnchorPoint:d,distanceFromAnchor:g,getElevation:y,previousVertex:v,direction:w,absOffsetX:T}=t;if(n.projections[u])return n.projections[u];const I=new c.P(s.getx(u),s.gety(u)),A=_2(I,l,y);if(A.signedDistanceFromCamera>0)return n.projections[u]=A.point,A.point;const N=u-w;return M7(g===0?d:new c.P(s.getx(N),s.gety(N)),I,v,T-g+1,l,y)}function q7(u,t,n){return u._unit()._perp()._mult(t*n)}function U(u,t,n,s,l,d,g,y){const{projectionCache:v,direction:w}=y;if(v.offsets[u])return v.offsets[u];const T=n.add(t);if(u+w=l)return v.offsets[u]=T,T;const I=h4(u+w,y),A=q7(I.sub(n),g,w),N=n.add(A),O=I.add(A);return v.offsets[u]=c.al(d,T,N,O)||T,v.offsets[u]}function C(u,t,n,s,l,d,g,y,v,w,T,I,A,N){const O=s?u-t:u+t;let j=O>0?1:-1,R=0;s&&(j*=-1,R=Math.PI),j<0&&(R+=Math.PI);let n1,d1,H=j>0?y+g:y+g+1,a1=l,f1=l,m1=0,w1=0;const P1=Math.abs(O),E1=[];let k1;for(;m1+w1<=P1;){if(H+=j,H=v)return null;m1+=w1,f1=a1,d1=n1;const V1={projectionCache:I,lineVertexArray:w,labelPlaneMatrix:T,tileAnchorPoint:d,distanceFromAnchor:m1,getElevation:N,previousVertex:f1,direction:j,absOffsetX:P1};if(a1=h4(H,V1),n===0)E1.push(f1),k1=a1.sub(f1);else{let p4;const t4=a1.sub(f1);p4=t4.mag()===0?q7(h4(H+j,V1).sub(a1),n,j):q7(t4,n,j),d1||(d1=f1.add(p4)),n1=U(H,p4,a1,y,v,d1,n,V1),E1.push(d1),k1=n1.sub(d1)}w1=k1.mag()}const J1=k1._mult((P1-m1)/w1)._add(d1||f1),z4=R+Math.atan2(a1.y-f1.y,a1.x-f1.x);return E1.push(J1),{point:J1,angle:A?z4:0,path:E1}}const M=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function F(u,t){for(let n=0;n=1;T4--)t4.push(V1.path[T4]);for(let T4=1;T4_2(L4,v,O));t4=T4.some(L4=>L4.signedDistanceFromCamera<=0)?[]:T4.map(L4=>L4.point)}let M4=[];if(t4.length>0){const T4=t4[0].clone(),L4=t4[0].clone();for(let L2=1;L2=k1.x&&L4.x<=J1.x&&T4.y>=k1.y&&L4.y<=J1.y?[t4]:L4.xJ1.x||L4.yJ1.y?[]:c.am([t4],k1.x,k1.y,J1.x,J1.y)}for(const T4 of M4){z4.reset(T4,.25*E1);let L4=0;L4=z4.length<=.5*E1?1:Math.ceil(z4.paddedLength/e2)+1;for(let L2=0;L2=this.screenRightBoundary||lthis.screenBottomBoundary}isInsideGrid(t,n,s,l){return s>=0&&t=0&&ns.collisionGroupID===n}}return this.collisionGroups[t]}}function m4(u,t,n,s,l){const{horizontalAlign:d,verticalAlign:g}=c.au(u);return new c.P(-(d-.5)*t+s[0]*l,-(g-.5)*n+s[1]*l)}function X1(u,t,n,s,l,d){const{x1:g,x2:y,y1:v,y2:w,anchorPointX:T,anchorPointY:I}=u,A=new c.P(t,n);return s&&A._rotate(l?d:-d),{x1:g+A.x,y1:v+A.y,x2:y+A.x,y2:w+A.y,anchorPointX:T,anchorPointY:I}}class n4{constructor(t,n,s,l,d){this.transform=t.clone(),this.terrain=n,this.collisionIndex=new o1(this.transform),this.placements={},this.opacities={},this.variableOffsets={},this.stale=!1,this.commitTime=0,this.fadeDuration=s,this.retainedQueryData={},this.collisionGroups=new Q1(l),this.collisionCircleArrays={},this.prevPlacement=d,d&&(d.prevPlacement=void 0),this.placedOrientations={}}getBucketParts(t,n,s,l){const d=s.getBucket(n),g=s.latestFeatureIndex;if(!d||!g||n.id!==d.layerIds[0])return;const y=s.collisionBoxArray,v=d.layers[0].layout,w=Math.pow(2,this.transform.zoom-s.tileID.overscaledZ),T=s.tileSize/c.N,I=this.transform.calculatePosMatrix(s.tileID.toUnwrapped()),A=v.get("text-pitch-alignment")==="map",N=v.get("text-rotation-alignment")==="map",O=e1(s,1,this.transform.zoom),j=z1(I,A,N,this.transform,O);let R=null;if(A){const d1=P7(I,A,N,this.transform,O);R=c.a1([],this.transform.labelPlaneMatrix,d1)}this.retainedQueryData[d.bucketInstanceId]=new b1(d.bucketInstanceId,g,d.sourceLayerIndex,d.index,s.tileID);const n1={bucket:d,layout:v,posMatrix:I,textLabelPlaneMatrix:j,labelToScreenMatrix:R,scale:w,textPixelRatio:T,holdingForFade:s.holdingForFade(),collisionBoxArray:y,partiallyEvaluatedTextSize:c.ah(d.textSizeData,this.transform.zoom),collisionGroup:this.collisionGroups.get(d.sourceID)};if(l)for(const d1 of d.sortKeyRanges){const{sortKey:H,symbolInstanceStart:a1,symbolInstanceEnd:f1}=d1;t.push({sortKey:H,symbolInstanceStart:a1,symbolInstanceEnd:f1,parameters:n1})}else t.push({symbolInstanceStart:0,symbolInstanceEnd:d.symbolInstances.length,parameters:n1})}attemptAnchorPlacement(t,n,s,l,d,g,y,v,w,T,I,A,N,O,j,R){const n1=c.aq[t.textAnchor],d1=[t.textOffset0,t.textOffset1],H=m4(n1,s,l,d1,d),a1=this.collisionIndex.placeCollisionBox(X1(n,H.x,H.y,g,y,this.transform.angle),I,v,w,T.predicate,R);if((!j||this.collisionIndex.placeCollisionBox(X1(j,H.x,H.y,g,y,this.transform.angle),I,v,w,T.predicate,R).box.length!==0)&&a1.box.length>0){let f1;if(this.prevPlacement&&this.prevPlacement.variableOffsets[A.crossTileID]&&this.prevPlacement.placements[A.crossTileID]&&this.prevPlacement.placements[A.crossTileID].text&&(f1=this.prevPlacement.variableOffsets[A.crossTileID].anchor),A.crossTileID===0)throw new Error("symbolInstance.crossTileID can't be 0");return this.variableOffsets[A.crossTileID]={textOffset:d1,width:s,height:l,anchor:n1,textBoxScale:d,prevAnchor:f1},this.markUsedJustification(N,n1,A,O),N.allowVerticalPlacement&&(this.markUsedOrientation(N,O,A),this.placedOrientations[A.crossTileID]=O),{shift:H,placedGlyphBoxes:a1}}}placeLayerBucketPart(t,n,s){const{bucket:l,layout:d,posMatrix:g,textLabelPlaneMatrix:y,labelToScreenMatrix:v,textPixelRatio:w,holdingForFade:T,collisionBoxArray:I,partiallyEvaluatedTextSize:A,collisionGroup:N}=t.parameters,O=d.get("text-optional"),j=d.get("icon-optional"),R=c.ar(d,"text-overlap","text-allow-overlap"),n1=R==="always",d1=c.ar(d,"icon-overlap","icon-allow-overlap"),H=d1==="always",a1=d.get("text-rotation-alignment")==="map",f1=d.get("text-pitch-alignment")==="map",m1=d.get("icon-text-fit")!=="none",w1=d.get("symbol-z-order")==="viewport-y",P1=n1&&(H||!l.hasIconData()||j),E1=H&&(n1||!l.hasTextData()||O);!l.collisionArrays&&I&&l.deserializeCollisionBoxes(I);const k1=this.retainedQueryData[l.bucketInstanceId].tileID,J1=this.terrain?(V1,p4)=>this.terrain.getElevation(k1,V1,p4):null,z4=(V1,p4)=>{var t4,e2;if(n[V1.crossTileID])return;if(T)return void(this.placements[V1.crossTileID]=new v1(!1,!1,!1));let M4=!1,T4=!1,L4=!0,L2=null,o2={box:null,offscreen:null},h7={box:null,offscreen:null},W2=null,N2=null,u3=null,g2=0,Y3=0,Q3=0;p4.textFeatureIndex?g2=p4.textFeatureIndex:V1.useRuntimeCollisionCircles&&(g2=V1.featureIndex),p4.verticalTextFeatureIndex&&(Y3=p4.verticalTextFeatureIndex);const B0=p4.textBox;if(B0){const S7=D2=>{let X2=c.ai.horizontal;if(l.allowVerticalPlacement&&!D2&&this.prevPlacement){const X7=this.prevPlacement.placedOrientations[V1.crossTileID];X7&&(this.placedOrientations[V1.crossTileID]=X7,X2=X7,this.markUsedOrientation(l,X2,V1))}return X2},d7=(D2,X2)=>{if(l.allowVerticalPlacement&&V1.numVerticalGlyphVertices>0&&p4.verticalTextBox){for(const X7 of l.writingModes)if(X7===c.ai.vertical?(o2=X2(),h7=o2):o2=D2(),o2&&o2.box&&o2.box.length)break}else o2=D2()},L7=V1.textAnchorOffsetStartIndex,u6=V1.textAnchorOffsetEndIndex;if(u6===L7){const D2=(X2,X7)=>{const F2=this.collisionIndex.placeCollisionBox(X2,R,w,g,N.predicate,J1);return F2&&F2.box&&F2.box.length&&(this.markUsedOrientation(l,X7,V1),this.placedOrientations[V1.crossTileID]=X7),F2};d7(()=>D2(B0,c.ai.horizontal),()=>{const X2=p4.verticalTextBox;return l.allowVerticalPlacement&&V1.numVerticalGlyphVertices>0&&X2?D2(X2,c.ai.vertical):{box:null,offscreen:null}}),S7(o2&&o2.box&&o2.box.length)}else{let D2=c.aq[(e2=(t4=this.prevPlacement)===null||t4===void 0?void 0:t4.variableOffsets[V1.crossTileID])===null||e2===void 0?void 0:e2.anchor];const X2=(F2,h6,C5)=>{const R9=F2.x2-F2.x1,B9=F2.y2-F2.y1,p8=V1.textBoxScale,r9=m1&&d1==="never"?h6:null;let e0={box:[],offscreen:!1},d6=R==="never"?1:2,t0="never";D2&&d6++;for(let S3=0;S3X2(B0,p4.iconBox,c.ai.horizontal),()=>{const F2=p4.verticalTextBox;return l.allowVerticalPlacement&&!(o2&&o2.box&&o2.box.length)&&V1.numVerticalGlyphVertices>0&&F2?X2(F2,p4.verticalIconBox,c.ai.vertical):{box:null,offscreen:null}}),o2&&(M4=o2.box,L4=o2.offscreen);const X7=S7(o2&&o2.box);if(!M4&&this.prevPlacement){const F2=this.prevPlacement.variableOffsets[V1.crossTileID];F2&&(this.variableOffsets[V1.crossTileID]=F2,this.markUsedJustification(l,F2.anchor,V1,X7))}}}if(W2=o2,M4=W2&&W2.box&&W2.box.length>0,L4=W2&&W2.offscreen,V1.useRuntimeCollisionCircles){const S7=l.text.placedSymbolArray.get(V1.centerJustifiedTextSymbolIndex),d7=c.aj(l.textSizeData,A,S7),L7=d.get("text-padding");N2=this.collisionIndex.placeCollisionCircles(R,S7,l.lineVertexArray,l.glyphOffsetArray,d7,g,y,v,s,f1,N.predicate,V1.collisionCircleDiameter,L7,J1),N2.circles.length&&N2.collisionDetected&&!s&&c.w("Collisions detected, but collision boxes are not shown"),M4=n1||N2.circles.length>0&&!N2.collisionDetected,L4=L4&&N2.offscreen}if(p4.iconFeatureIndex&&(Q3=p4.iconFeatureIndex),p4.iconBox){const S7=d7=>{const L7=m1&&L2?X1(d7,L2.x,L2.y,a1,f1,this.transform.angle):d7;return this.collisionIndex.placeCollisionBox(L7,d1,w,g,N.predicate,J1)};h7&&h7.box&&h7.box.length&&p4.verticalIconBox?(u3=S7(p4.verticalIconBox),T4=u3.box.length>0):(u3=S7(p4.iconBox),T4=u3.box.length>0),L4=L4&&u3.offscreen}const c6=O||V1.numHorizontalGlyphVertices===0&&V1.numVerticalGlyphVertices===0,q6=j||V1.numIconVertices===0;if(c6||q6?q6?c6||(T4=T4&&M4):M4=T4&&M4:T4=M4=T4&&M4,M4&&W2&&W2.box&&this.collisionIndex.insertCollisionBox(W2.box,R,d.get("text-ignore-placement"),l.bucketInstanceId,h7&&h7.box&&Y3?Y3:g2,N.ID),T4&&u3&&this.collisionIndex.insertCollisionBox(u3.box,d1,d.get("icon-ignore-placement"),l.bucketInstanceId,Q3,N.ID),N2&&(M4&&this.collisionIndex.insertCollisionCircles(N2.circles,R,d.get("text-ignore-placement"),l.bucketInstanceId,g2,N.ID),s)){const S7=l.bucketInstanceId;let d7=this.collisionCircleArrays[S7];d7===void 0&&(d7=this.collisionCircleArrays[S7]=new x1);for(let L7=0;L7=0;--p4){const t4=V1[p4];z4(l.symbolInstances.get(t4),l.collisionArrays[t4])}}else for(let V1=t.symbolInstanceStart;V1=0&&(t.text.placedSymbolArray.get(y).crossTileID=d>=0&&y!==d?0:s.crossTileID)}markUsedOrientation(t,n,s){const l=n===c.ai.horizontal||n===c.ai.horizontalOnly?n:0,d=n===c.ai.vertical?n:0,g=[s.leftJustifiedTextSymbolIndex,s.centerJustifiedTextSymbolIndex,s.rightJustifiedTextSymbolIndex];for(const y of g)t.text.placedSymbolArray.get(y).placedOrientation=l;s.verticalPlacedTextSymbolIndex&&(t.text.placedSymbolArray.get(s.verticalPlacedTextSymbolIndex).placedOrientation=d)}commit(t){this.commitTime=t,this.zoomAtLastRecencyCheck=this.transform.zoom;const n=this.prevPlacement;let s=!1;this.prevZoomAdjustment=n?n.zoomAdjustment(this.transform.zoom):0;const l=n?n.symbolFadeChange(t):1,d=n?n.opacities:{},g=n?n.variableOffsets:{},y=n?n.placedOrientations:{};for(const v in this.placements){const w=this.placements[v],T=d[v];T?(this.opacities[v]=new i1(T,l,w.text,w.icon),s=s||w.text!==T.text.placed||w.icon!==T.icon.placed):(this.opacities[v]=new i1(null,l,w.text,w.icon,w.skipFade),s=s||w.text||w.icon)}for(const v in d){const w=d[v];if(!this.opacities[v]){const T=new i1(w,l,!1,!1);T.isHidden()||(this.opacities[v]=T,s=s||w.text.placed||w.icon.placed)}}for(const v in g)this.variableOffsets[v]||!this.opacities[v]||this.opacities[v].isHidden()||(this.variableOffsets[v]=g[v]);for(const v in y)this.placedOrientations[v]||!this.opacities[v]||this.opacities[v].isHidden()||(this.placedOrientations[v]=y[v]);if(n&&n.lastPlacementChangeTime===void 0)throw new Error("Last placement time for previous placement is not defined");s?this.lastPlacementChangeTime=t:typeof this.lastPlacementChangeTime!="number"&&(this.lastPlacementChangeTime=n?n.lastPlacementChangeTime:t)}updateLayerOpacities(t,n){const s={};for(const l of n){const d=l.getBucket(t);d&&l.latestFeatureIndex&&t.id===d.layerIds[0]&&this.updateBucketOpacities(d,s,l.collisionBoxArray)}}updateBucketOpacities(t,n,s){t.hasTextData()&&(t.text.opacityVertexArray.clear(),t.text.hasVisibleVertices=!1),t.hasIconData()&&(t.icon.opacityVertexArray.clear(),t.icon.hasVisibleVertices=!1),t.hasIconCollisionBoxData()&&t.iconCollisionBox.collisionVertexArray.clear(),t.hasTextCollisionBoxData()&&t.textCollisionBox.collisionVertexArray.clear();const l=t.layers[0],d=l.layout,g=new i1(null,0,!1,!1,!0),y=d.get("text-allow-overlap"),v=d.get("icon-allow-overlap"),w=l._unevaluatedLayout.hasValue("text-variable-anchor")||l._unevaluatedLayout.hasValue("text-variable-anchor-offset"),T=d.get("text-rotation-alignment")==="map",I=d.get("text-pitch-alignment")==="map",A=d.get("icon-text-fit")!=="none",N=new i1(null,0,y&&(v||!t.hasIconData()||d.get("icon-optional")),v&&(y||!t.hasTextData()||d.get("text-optional")),!0);!t.collisionArrays&&s&&(t.hasIconCollisionBoxData()||t.hasTextCollisionBoxData())&&t.deserializeCollisionBoxes(s);const O=(j,R,n1)=>{for(let d1=0;d10,m1=this.placedOrientations[R.crossTileID],w1=m1===c.ai.vertical,P1=m1===c.ai.horizontal||m1===c.ai.horizontalOnly;if(n1>0||d1>0){const E1=R2(a1.text);O(t.text,n1,w1?G7:E1),O(t.text,d1,P1?G7:E1);const k1=a1.text.isHidden();[R.rightJustifiedTextSymbolIndex,R.centerJustifiedTextSymbolIndex,R.leftJustifiedTextSymbolIndex].forEach(V1=>{V1>=0&&(t.text.placedSymbolArray.get(V1).hidden=k1||w1?1:0)}),R.verticalPlacedTextSymbolIndex>=0&&(t.text.placedSymbolArray.get(R.verticalPlacedTextSymbolIndex).hidden=k1||P1?1:0);const J1=this.variableOffsets[R.crossTileID];J1&&this.markUsedJustification(t,J1.anchor,R,m1);const z4=this.placedOrientations[R.crossTileID];z4&&(this.markUsedJustification(t,"left",R,z4),this.markUsedOrientation(t,z4,R))}if(f1){const E1=R2(a1.icon),k1=!(A&&R.verticalPlacedIconSymbolIndex&&w1);R.placedIconSymbolIndex>=0&&(O(t.icon,R.numIconVertices,k1?E1:G7),t.icon.placedSymbolArray.get(R.placedIconSymbolIndex).hidden=a1.icon.isHidden()),R.verticalPlacedIconSymbolIndex>=0&&(O(t.icon,R.numVerticalIconVertices,k1?G7:E1),t.icon.placedSymbolArray.get(R.verticalPlacedIconSymbolIndex).hidden=a1.icon.isHidden())}if(t.hasIconCollisionBoxData()||t.hasTextCollisionBoxData()){const E1=t.collisionArrays[j];if(E1){let k1=new c.P(0,0);if(E1.textBox||E1.verticalTextBox){let z4=!0;if(w){const V1=this.variableOffsets[H];V1?(k1=m4(V1.anchor,V1.width,V1.height,V1.textOffset,V1.textBoxScale),T&&k1._rotate(I?this.transform.angle:-this.transform.angle)):z4=!1}E1.textBox&&_4(t.textCollisionBox.collisionVertexArray,a1.text.placed,!z4||w1,k1.x,k1.y),E1.verticalTextBox&&_4(t.textCollisionBox.collisionVertexArray,a1.text.placed,!z4||P1,k1.x,k1.y)}const J1=!!(!P1&&E1.verticalIconBox);E1.iconBox&&_4(t.iconCollisionBox.collisionVertexArray,a1.icon.placed,J1,A?k1.x:0,A?k1.y:0),E1.verticalIconBox&&_4(t.iconCollisionBox.collisionVertexArray,a1.icon.placed,!J1,A?k1.x:0,A?k1.y:0)}}}if(t.sortFeatures(this.transform.angle),this.retainedQueryData[t.bucketInstanceId]&&(this.retainedQueryData[t.bucketInstanceId].featureSortOrder=t.featureSortOrder),t.hasTextData()&&t.text.opacityVertexBuffer&&t.text.opacityVertexBuffer.updateData(t.text.opacityVertexArray),t.hasIconData()&&t.icon.opacityVertexBuffer&&t.icon.opacityVertexBuffer.updateData(t.icon.opacityVertexArray),t.hasIconCollisionBoxData()&&t.iconCollisionBox.collisionVertexBuffer&&t.iconCollisionBox.collisionVertexBuffer.updateData(t.iconCollisionBox.collisionVertexArray),t.hasTextCollisionBoxData()&&t.textCollisionBox.collisionVertexBuffer&&t.textCollisionBox.collisionVertexBuffer.updateData(t.textCollisionBox.collisionVertexArray),t.text.opacityVertexArray.length!==t.text.layoutVertexArray.length/4)throw new Error(`bucket.text.opacityVertexArray.length (= ${t.text.opacityVertexArray.length}) !== bucket.text.layoutVertexArray.length (= ${t.text.layoutVertexArray.length}) / 4`);if(t.icon.opacityVertexArray.length!==t.icon.layoutVertexArray.length/4)throw new Error(`bucket.icon.opacityVertexArray.length (= ${t.icon.opacityVertexArray.length}) !== bucket.icon.layoutVertexArray.length (= ${t.icon.layoutVertexArray.length}) / 4`);if(t.bucketInstanceId in this.collisionCircleArrays){const j=this.collisionCircleArrays[t.bucketInstanceId];t.placementInvProjMatrix=j.invProjMatrix,t.placementViewportMatrix=j.viewportMatrix,t.collisionCircleArray=j.circles,delete this.collisionCircleArrays[t.bucketInstanceId]}}symbolFadeChange(t){return this.fadeDuration===0?1:(t-this.commitTime)/this.fadeDuration+this.prevZoomAdjustment}zoomAdjustment(t){return Math.max(0,(this.transform.zoom-t)/1.5)}hasTransitions(t){return this.stale||t-this.lastPlacementChangeTimet}setStale(){this.stale=!0}}function _4(u,t,n,s,l){u.emplaceBack(t?1:0,n?1:0,s||0,l||0),u.emplaceBack(t?1:0,n?1:0,s||0,l||0),u.emplaceBack(t?1:0,n?1:0,s||0,l||0),u.emplaceBack(t?1:0,n?1:0,s||0,l||0)}const $4=Math.pow(2,25),S4=Math.pow(2,24),O4=Math.pow(2,17),F4=Math.pow(2,16),a7=Math.pow(2,9),Y4=Math.pow(2,8),A2=Math.pow(2,1);function R2(u){if(u.opacity===0&&!u.placed)return 0;if(u.opacity===1&&u.placed)return 4294967295;const t=u.placed?1:0,n=Math.floor(127*u.opacity);return n*$4+t*S4+n*O4+t*F4+n*a7+t*Y4+n*A2+t}const G7=0;class Z0{constructor(t){this._sortAcrossTiles=t.layout.get("symbol-z-order")!=="viewport-y"&&!t.layout.get("symbol-sort-key").isConstant(),this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]}continuePlacement(t,n,s,l,d){const g=this._bucketParts;for(;this._currentTileIndexy.sortKey-v.sortKey));this._currentPartIndex!this._forceFullPlacement&&c.h.now()-l>2;for(;this._currentPlacementIndex>=0;){const g=n[t[this._currentPlacementIndex]],y=this.placement.collisionIndex.transform.zoom;if(g.type==="symbol"&&(!g.minzoom||g.minzoom<=y)&&(!g.maxzoom||g.maxzoom>y)){if(this._inProgressLayer||(this._inProgressLayer=new Z0(g)),this._inProgressLayer.continuePlacement(s[g.source],this.placement,this._showCollisionBoxes,g,d))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0}commit(t){return this.placement.commit(t),this.placement}}const $3=512/c.N/2;class B2{constructor(t,n,s){this.tileID=t,this.bucketInstanceId=s,this._symbolsByKey={};const l=new Map;for(let d=0;d({x:Math.floor(v.anchorX*$3),y:Math.floor(v.anchorY*$3)})),crossTileIDs:g.map(v=>v.crossTileID)};if(y.positions.length>128){const v=new c.av(y.positions.length,16,Uint16Array);for(const{x:w,y:T}of y.positions)v.add(w,T);v.finish(),delete y.positions,y.index=v}this._symbolsByKey[d]=y}}getScaledCoordinates(t,n){const{x:s,y:l,z:d}=this.tileID.canonical,{x:g,y,z:v}=n.canonical,w=$3/Math.pow(2,v-d),T=(y*c.N+t.anchorY)*w,I=l*c.N*$3;return{x:Math.floor((g*c.N+t.anchorX)*w-s*c.N*$3),y:Math.floor(T-I)}}findMatches(t,n,s){const l=this.tileID.canonical.zt)}}class G4{constructor(){this.maxCrossTileID=0}generate(){return++this.maxCrossTileID}}class _6{constructor(){this.indexes={},this.usedCrossTileIDs={},this.lng=0}handleWrapJump(t){const n=Math.round((t-this.lng)/360);if(n!==0)for(const s in this.indexes){const l=this.indexes[s],d={};for(const g in l){const y=l[g];y.tileID=y.tileID.unwrapTo(y.tileID.wrap+n),d[y.tileID.key]=y}this.indexes[s]=d}this.lng=t}addBucket(t,n,s){if(this.indexes[t.overscaledZ]&&this.indexes[t.overscaledZ][t.key]){if(this.indexes[t.overscaledZ][t.key].bucketInstanceId===n.bucketInstanceId)return!1;this.removeBucketCrossTileIDs(t.overscaledZ,this.indexes[t.overscaledZ][t.key])}for(let d=0;dt.overscaledZ)for(const y in g){const v=g[y];v.tileID.isChildOf(t)&&v.findMatches(n.symbolInstances,t,l)}else{const y=g[t.scaledTo(Number(d)).key];y&&y.findMatches(n.symbolInstances,t,l)}}for(let d=0;d{n[s]=!0});for(const s in this.layerIndexes)n[s]||delete this.layerIndexes[s]}}const s2=(u,t)=>c.x(u,t&&t.filter(n=>n.identifier!=="source.canvas")),s7=c.F(c.ax,["addLayer","removeLayer","setPaintProperty","setLayoutProperty","setFilter","addSource","removeSource","setLayerZoomRange","setLight","setTransition","setGeoJSONSourceData","setGlyphs","setSprite"]),h0=c.F(c.ax,["setCenter","setZoom","setBearing","setPitch"]),j2=c.aw();class $2 extends c.E{constructor(t,n={}){super(),this.map=t,this.dispatcher=new o0(c0(),this,t._getMapId()),this.imageManager=new S2,this.imageManager.setEventedParent(this),this.glyphManager=new N7(t._requestManager,n.localIdeographFontFamily),this.lineAtlas=new q0(256,512),this.crossTileSymbolIndex=new n3,this._spritesImagesIds={},this._layers={},this._order=[],this.sourceCaches={},this.zoomHistory=new c.ay,this._loaded=!1,this._availableImages=[],this._resetUpdates(),this.dispatcher.broadcast("setReferrer",c.az());const s=this;this._rtlTextPluginCallback=$2.registerForPluginStateChange(l=>{s.dispatcher.broadcast("syncRTLPluginState",{pluginStatus:l.pluginStatus,pluginURL:l.pluginURL},(d,g)=>{if(c.aA(d),g&&g.every(y=>y))for(const y in s.sourceCaches){const v=s.sourceCaches[y].getSource().type;v!=="vector"&&v!=="geojson"||s.sourceCaches[y].reload()}})}),this.on("data",l=>{if(l.dataType!=="source"||l.sourceDataType!=="metadata")return;const d=this.sourceCaches[l.sourceId];if(!d)return;const g=d.getSource();if(g&&g.vectorLayerIds)for(const y in this._layers){const v=this._layers[y];v.source===g.id&&this._validateLayer(v)}})}loadURL(t,n={},s){this.fire(new c.k("dataloading",{dataType:"style"})),n.validate=typeof n.validate!="boolean"||n.validate;const l=this.map._requestManager.transformRequest(t,I4.Style);this._request=c.f(l,(d,g)=>{this._request=null,d?this.fire(new c.j(d)):g&&this._load(g,n,s)})}loadJSON(t,n={},s){this.fire(new c.k("dataloading",{dataType:"style"})),this._request=c.h.frame(()=>{this._request=null,n.validate=n.validate!==!1,this._load(t,n,s)})}loadEmpty(){this.fire(new c.k("dataloading",{dataType:"style"})),this._load(j2,{validate:!1})}_load(t,n,s){var l;const d=n.transformStyle?n.transformStyle(s,t):t;if(!n.validate||!s2(this,c.y(d))){this._loaded=!0,this.stylesheet=d;for(const g in d.sources)this.addSource(g,d.sources[g],{validate:!1});d.sprite?this._loadSprite(d.sprite):this.imageManager.setLoaded(!0),this.glyphManager.setURL(d.glyphs),this._createLayers(),this.light=new s0(this.stylesheet.light),this.map.setTerrain((l=this.stylesheet.terrain)!==null&&l!==void 0?l:null),this.fire(new c.k("data",{dataType:"style"})),this.fire(new c.k("style.load"))}}_createLayers(){const t=c.aB(this.stylesheet.layers);this.dispatcher.broadcast("setLayers",t),this._order=t.map(n=>n.id),this._layers={},this._serializedLayers=null;for(const n of t){const s=c.aC(n);s.setEventedParent(this,{layer:{id:n.id}}),this._layers[n.id]=s}}_loadSprite(t,n=!1,s=void 0){this.imageManager.setLoaded(!1),this._spriteRequest=function(l,d,g,y){const v=U2(l),w=v.length,T=g>1?"@2x":"",I={},A={},N={};for(const{id:O,url:j}of v){const R=d.transformRequest(d.normalizeSpriteURL(j,T,".json"),I4.SpriteJSON),n1=`${O}_${R.url}`;I[n1]=c.f(R,(a1,f1)=>{delete I[n1],A[O]=f1,y6(y,A,N,a1,w)});const d1=d.transformRequest(d.normalizeSpriteURL(j,T,".png"),I4.SpriteImage),H=`${O}_${d1.url}`;I[H]=g4.getImage(d1,(a1,f1)=>{delete I[H],N[O]=f1,y6(y,A,N,a1,w)})}return{cancel(){for(const O of Object.values(I))O.cancel()}}}(t,this.map._requestManager,this.map.getPixelRatio(),(l,d)=>{if(this._spriteRequest=null,l)this.fire(new c.j(l));else if(d)for(const g in d){this._spritesImagesIds[g]=[];const y=this._spritesImagesIds[g]?this._spritesImagesIds[g].filter(v=>!(v in d)):[];for(const v of y)this.imageManager.removeImage(v),this._changedImages[v]=!0;for(const v in d[g]){const w=g==="default"?v:`${g}:${v}`;this._spritesImagesIds[g].push(w),w in this.imageManager.images?this.imageManager.updateImage(w,d[g][v],!1):this.imageManager.addImage(w,d[g][v]),n&&(this._changedImages[w]=!0)}}this.imageManager.setLoaded(!0),this._availableImages=this.imageManager.listImages(),n&&(this._changed=!0),this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new c.k("data",{dataType:"style"})),s&&s(l)})}_unloadSprite(){for(const t of Object.values(this._spritesImagesIds).flat())this.imageManager.removeImage(t),this._changedImages[t]=!0;this._spritesImagesIds={},this._availableImages=this.imageManager.listImages(),this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new c.k("data",{dataType:"style"}))}_validateLayer(t){const n=this.sourceCaches[t.source];if(!n)return;const s=t.sourceLayer;if(!s)return;const l=n.getSource();(l.type==="geojson"||l.vectorLayerIds&&l.vectorLayerIds.indexOf(s)===-1)&&this.fire(new c.j(new Error(`Source layer "${s}" does not exist on source "${l.id}" as specified by style layer "${t.id}".`)))}loaded(){if(!this._loaded||Object.keys(this._updatedSources).length)return!1;for(const t in this.sourceCaches)if(!this.sourceCaches[t].loaded())return!1;return!!this.imageManager.isLoaded()}_serializeByIds(t){const n=this._serializedAllLayers();if(!t||t.length===0)return Object.values(n);const s=[];for(const l of t)n[l]&&s.push(n[l]);return s}_serializedAllLayers(){let t=this._serializedLayers;if(t)return t;t=this._serializedLayers={};const n=Object.keys(this._layers);for(const s of n){const l=this._layers[s];l.type!=="custom"&&(t[s]=l.serialize())}return t}hasTransitions(){if(this.light&&this.light.hasTransition())return!0;for(const t in this.sourceCaches)if(this.sourceCaches[t].hasTransition())return!0;for(const t in this._layers)if(this._layers[t].hasTransition())return!0;return!1}_checkLoaded(){if(!this._loaded)throw new Error("Style is not done loading.")}update(t){if(!this._loaded)return;const n=this._changed;if(this._changed){const l=Object.keys(this._updatedLayers),d=Object.keys(this._removedLayers);(l.length||d.length)&&this._updateWorkerLayers(l,d);for(const g in this._updatedSources){const y=this._updatedSources[g];if(y==="reload")this._reloadSource(g);else{if(y!=="clear")throw new Error(`Invalid action ${y}`);this._clearSource(g)}}this._updateTilesForChangedImages(),this._updateTilesForChangedGlyphs();for(const g in this._updatedPaintProps)this._layers[g].updateTransitions(t);this.light.updateTransitions(t),this._resetUpdates()}const s={};for(const l in this.sourceCaches){const d=this.sourceCaches[l];s[l]=d.used,d.used=!1}for(const l of this._order){const d=this._layers[l];d.recalculate(t,this._availableImages),!d.isHidden(t.zoom)&&d.source&&(this.sourceCaches[d.source].used=!0)}for(const l in s){const d=this.sourceCaches[l];s[l]!==d.used&&d.fire(new c.k("data",{sourceDataType:"visibility",dataType:"source",sourceId:l}))}this.light.recalculate(t),this.z=t.zoom,n&&this.fire(new c.k("data",{dataType:"style"}))}_updateTilesForChangedImages(){const t=Object.keys(this._changedImages);if(t.length){for(const n in this.sourceCaches)this.sourceCaches[n].reloadTilesForDependencies(["icons","patterns"],t);this._changedImages={}}}_updateTilesForChangedGlyphs(){if(this._glyphsDidChange){for(const t in this.sourceCaches)this.sourceCaches[t].reloadTilesForDependencies(["glyphs"],[""]);this._glyphsDidChange=!1}}_updateWorkerLayers(t,n){this.dispatcher.broadcast("updateLayers",{layers:this._serializeByIds(t),removedIds:n})}_resetUpdates(){this._changed=!1,this._updatedLayers={},this._removedLayers={},this._updatedSources={},this._updatedPaintProps={},this._changedImages={},this._glyphsDidChange=!1}setState(t,n={}){this._checkLoaded();const s=this.serialize();if(t=n.transformStyle?n.transformStyle(s,t):t,s2(this,c.y(t)))return!1;(t=c.aD(t)).layers=c.aB(t.layers);const l=c.aE(s,t).filter(g=>!(g.command in h0));if(l.length===0)return!1;const d=l.filter(g=>!(g.command in s7));if(d.length>0)throw new Error(`Unimplemented: ${d.map(g=>g.command).join(", ")}.`);for(const g of l)g.command!=="setTransition"&&this[g.command].apply(this,g.args);return this.stylesheet=t,this._serializedLayers=null,!0}addImage(t,n){if(this.getImage(t))return this.fire(new c.j(new Error(`An image named "${t}" already exists.`)));this.imageManager.addImage(t,n),this._afterImageUpdated(t)}updateImage(t,n){this.imageManager.updateImage(t,n)}getImage(t){return this.imageManager.getImage(t)}removeImage(t){if(!this.getImage(t))return this.fire(new c.j(new Error(`An image named "${t}" does not exist.`)));this.imageManager.removeImage(t),this._afterImageUpdated(t)}_afterImageUpdated(t){this._availableImages=this.imageManager.listImages(),this._changedImages[t]=!0,this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new c.k("data",{dataType:"style"}))}listImages(){return this._checkLoaded(),this.imageManager.listImages()}addSource(t,n,s={}){if(this._checkLoaded(),this.sourceCaches[t]!==void 0)throw new Error(`Source "${t}" already exists.`);if(!n.type)throw new Error(`The type property must be defined, but only the following properties were given: ${Object.keys(n).join(", ")}.`);if(["vector","raster","geojson","video","image"].indexOf(n.type)>=0&&this._validate(c.y.source,`sources.${t}`,n,null,s))return;this.map&&this.map._collectResourceTiming&&(n.collectResourceTiming=!0);const l=this.sourceCaches[t]=new g7(t,n,this.dispatcher);l.style=this,l.setEventedParent(this,()=>({isSourceLoaded:l.loaded(),source:l.serialize(),sourceId:t})),l.onAdd(this.map),this._changed=!0}removeSource(t){if(this._checkLoaded(),this.sourceCaches[t]===void 0)throw new Error("There is no source with this ID");for(const s in this._layers)if(this._layers[s].source===t)return this.fire(new c.j(new Error(`Source "${t}" cannot be removed while layer "${s}" is using it.`)));const n=this.sourceCaches[t];delete this.sourceCaches[t],delete this._updatedSources[t],n.fire(new c.k("data",{sourceDataType:"metadata",dataType:"source",sourceId:t})),n.setEventedParent(null),n.onRemove(this.map),this._changed=!0}setGeoJSONSourceData(t,n){if(this._checkLoaded(),this.sourceCaches[t]===void 0)throw new Error(`There is no source with this ID=${t}`);const s=this.sourceCaches[t].getSource();if(s.type!=="geojson")throw new Error(`geojsonSource.type is ${s.type}, which is !== 'geojson`);s.setData(n),this._changed=!0}getSource(t){return this.sourceCaches[t]&&this.sourceCaches[t].getSource()}addLayer(t,n,s={}){this._checkLoaded();const l=t.id;if(this.getLayer(l))return void this.fire(new c.j(new Error(`Layer "${l}" already exists on this map.`)));let d;if(t.type==="custom"){if(s2(this,c.aF(t)))return;d=c.aC(t)}else{if("source"in t&&typeof t.source=="object"&&(this.addSource(l,t.source),t=c.aD(t),t=c.e(t,{source:l})),this._validate(c.y.layer,`layers.${l}`,t,{arrayIndex:-1},s))return;d=c.aC(t),this._validateLayer(d),d.setEventedParent(this,{layer:{id:l}})}const g=n?this._order.indexOf(n):this._order.length;if(n&&g===-1)this.fire(new c.j(new Error(`Cannot add layer "${l}" before non-existing layer "${n}".`)));else{if(this._order.splice(g,0,l),this._layerOrderChanged=!0,this._layers[l]=d,this._removedLayers[l]&&d.source&&d.type!=="custom"){const y=this._removedLayers[l];delete this._removedLayers[l],y.type!==d.type?this._updatedSources[d.source]="clear":(this._updatedSources[d.source]="reload",this.sourceCaches[d.source].pause())}this._updateLayer(d),d.onAdd&&d.onAdd(this.map)}}moveLayer(t,n){if(this._checkLoaded(),this._changed=!0,!this._layers[t])return void this.fire(new c.j(new Error(`The layer '${t}' does not exist in the map's style and cannot be moved.`)));if(t===n)return;const s=this._order.indexOf(t);this._order.splice(s,1);const l=n?this._order.indexOf(n):this._order.length;n&&l===-1?this.fire(new c.j(new Error(`Cannot move layer "${t}" before non-existing layer "${n}".`))):(this._order.splice(l,0,t),this._layerOrderChanged=!0)}removeLayer(t){this._checkLoaded();const n=this._layers[t];if(!n)return void this.fire(new c.j(new Error(`Cannot remove non-existing layer "${t}".`)));n.setEventedParent(null);const s=this._order.indexOf(t);this._order.splice(s,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[t]=n,delete this._layers[t],this._serializedLayers&&delete this._serializedLayers[t],delete this._updatedLayers[t],delete this._updatedPaintProps[t],n.onRemove&&n.onRemove(this.map)}getLayer(t){return this._layers[t]}getLayersOrder(){return[...this._order]}hasLayer(t){return t in this._layers}setLayerZoomRange(t,n,s){this._checkLoaded();const l=this.getLayer(t);l?l.minzoom===n&&l.maxzoom===s||(n!=null&&(l.minzoom=n),s!=null&&(l.maxzoom=s),this._updateLayer(l)):this.fire(new c.j(new Error(`Cannot set the zoom range of non-existing layer "${t}".`)))}setFilter(t,n,s={}){this._checkLoaded();const l=this.getLayer(t);if(l){if(!c.aG(l.filter,n))return n==null?(l.filter=void 0,void this._updateLayer(l)):void(this._validate(c.y.filter,`layers.${l.id}.filter`,n,null,s)||(l.filter=c.aD(n),this._updateLayer(l)))}else this.fire(new c.j(new Error(`Cannot filter non-existing layer "${t}".`)))}getFilter(t){return c.aD(this.getLayer(t).filter)}setLayoutProperty(t,n,s,l={}){this._checkLoaded();const d=this.getLayer(t);d?c.aG(d.getLayoutProperty(n),s)||(d.setLayoutProperty(n,s,l),this._updateLayer(d)):this.fire(new c.j(new Error(`Cannot style non-existing layer "${t}".`)))}getLayoutProperty(t,n){const s=this.getLayer(t);if(s)return s.getLayoutProperty(n);this.fire(new c.j(new Error(`Cannot get style of non-existing layer "${t}".`)))}setPaintProperty(t,n,s,l={}){this._checkLoaded();const d=this.getLayer(t);d?c.aG(d.getPaintProperty(n),s)||(d.setPaintProperty(n,s,l)&&this._updateLayer(d),this._changed=!0,this._updatedPaintProps[t]=!0):this.fire(new c.j(new Error(`Cannot style non-existing layer "${t}".`)))}getPaintProperty(t,n){return this.getLayer(t).getPaintProperty(n)}setFeatureState(t,n){this._checkLoaded();const s=t.source,l=t.sourceLayer,d=this.sourceCaches[s];if(d===void 0)return void this.fire(new c.j(new Error(`The source '${s}' does not exist in the map's style.`)));const g=d.getSource().type;g==="geojson"&&l?this.fire(new c.j(new Error("GeoJSON sources cannot have a sourceLayer parameter."))):g!=="vector"||l?(t.id===void 0&&this.fire(new c.j(new Error("The feature id parameter must be provided."))),d.setFeatureState(l,t.id,n)):this.fire(new c.j(new Error("The sourceLayer parameter must be provided for vector source types.")))}removeFeatureState(t,n){this._checkLoaded();const s=t.source,l=this.sourceCaches[s];if(l===void 0)return void this.fire(new c.j(new Error(`The source '${s}' does not exist in the map's style.`)));const d=l.getSource().type,g=d==="vector"?t.sourceLayer:void 0;d!=="vector"||g?n&&typeof t.id!="string"&&typeof t.id!="number"?this.fire(new c.j(new Error("A feature id is required to remove its specific state property."))):l.removeFeatureState(g,t.id,n):this.fire(new c.j(new Error("The sourceLayer parameter must be provided for vector source types.")))}getFeatureState(t){this._checkLoaded();const n=t.source,s=t.sourceLayer,l=this.sourceCaches[n];if(l!==void 0)return l.getSource().type!=="vector"||s?(t.id===void 0&&this.fire(new c.j(new Error("The feature id parameter must be provided."))),l.getFeatureState(s,t.id)):void this.fire(new c.j(new Error("The sourceLayer parameter must be provided for vector source types.")));this.fire(new c.j(new Error(`The source '${n}' does not exist in the map's style.`)))}getTransition(){return c.e({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)}serialize(){if(!this._loaded)return;const t=c.aH(this.sourceCaches,d=>d.serialize()),n=this._serializeByIds(this._order),s=this.map.getTerrain()||void 0,l=this.stylesheet;return c.aI({version:l.version,name:l.name,metadata:l.metadata,light:l.light,center:l.center,zoom:l.zoom,bearing:l.bearing,pitch:l.pitch,sprite:l.sprite,glyphs:l.glyphs,transition:l.transition,sources:t,layers:n,terrain:s},d=>d!==void 0)}_updateLayer(t){this._updatedLayers[t.id]=!0,t.source&&!this._updatedSources[t.source]&&this.sourceCaches[t.source].getSource().type!=="raster"&&(this._updatedSources[t.source]="reload",this.sourceCaches[t.source].pause()),this._serializedLayers=null,this._changed=!0}_flattenAndSortRenderedFeatures(t){const n=g=>this._layers[g].type==="fill-extrusion",s={},l=[];for(let g=this._order.length-1;g>=0;g--){const y=this._order[g];if(n(y)){s[y]=g;for(const v of t){const w=v[y];if(w)for(const T of w)l.push(T)}}}l.sort((g,y)=>y.intersectionZ-g.intersectionZ);const d=[];for(let g=this._order.length-1;g>=0;g--){const y=this._order[g];if(n(y))for(let v=l.length-1;v>=0;v--){const w=l[v].feature;if(s[w.layer.id]{const P1=n1.featureSortOrder;if(P1){const E1=P1.indexOf(m1.featureIndex);return P1.indexOf(w1.featureIndex)-E1}return w1.featureIndex-m1.featureIndex});for(const m1 of f1)a1.push(m1)}}for(const n1 in O)O[n1].forEach(d1=>{const H=d1.feature,a1=w[y[n1].source].getFeatureState(H.layer["source-layer"],H.id);H.source=H.layer.source,H.layer["source-layer"]&&(H.sourceLayer=H.layer["source-layer"]),H.state=a1});return O}(this._layers,g,this.sourceCaches,t,n,this.placement.collisionIndex,this.placement.retainedQueryData)),this._flattenAndSortRenderedFeatures(d)}querySourceFeatures(t,n){n&&n.filter&&this._validate(c.y.filter,"querySourceFeatures.filter",n.filter,null,n);const s=this.sourceCaches[t];return s?function(l,d){const g=l.getRenderableIds().map(w=>l.getTileByID(w)),y=[],v={};for(let w=0;w{G0[l]=d})(t,n),n.workerSourceURL?void this.dispatcher.broadcast("loadWorkerSource",{name:t,url:n.workerSourceURL},s):s(null,null))}getLight(){return this.light.getLight()}setLight(t,n={}){this._checkLoaded();const s=this.light.getLight();let l=!1;for(const g in t)if(!c.aG(t[g],s[g])){l=!0;break}if(!l)return;const d={now:c.h.now(),transition:c.e({duration:300,delay:0},this.stylesheet.transition)};this.light.setLight(t,n),this.light.updateTransitions(d)}_validate(t,n,s,l,d={}){return(!d||d.validate!==!1)&&s2(this,t.call(c.y,c.e({key:n,style:this.serialize(),value:s,styleSpec:c.v},l)))}_remove(t=!0){this._request&&(this._request.cancel(),this._request=null),this._spriteRequest&&(this._spriteRequest.cancel(),this._spriteRequest=null),c.aJ.off("pluginStateChange",this._rtlTextPluginCallback);for(const n in this._layers)this._layers[n].setEventedParent(null);for(const n in this.sourceCaches){const s=this.sourceCaches[n];s.setEventedParent(null),s.onRemove(this.map)}this.imageManager.setEventedParent(null),this.setEventedParent(null),this.dispatcher.remove(t)}_clearSource(t){this.sourceCaches[t].clearTiles()}_reloadSource(t){this.sourceCaches[t].resume(),this.sourceCaches[t].reload()}_updateSources(t){for(const n in this.sourceCaches)this.sourceCaches[n].update(t,this.map.terrain)}_generateCollisionBoxes(){for(const t in this.sourceCaches)this._reloadSource(t)}_updatePlacement(t,n,s,l,d=!1){let g=!1,y=!1;const v={};for(const w of this._order){const T=this._layers[w];if(T.type!=="symbol")continue;if(!v[T.source]){const A=this.sourceCaches[T.source];v[T.source]=A.getRenderableIds(!0).map(N=>A.getTileByID(N)).sort((N,O)=>O.tileID.overscaledZ-N.tileID.overscaledZ||(N.tileID.isLessThan(O.tileID)?-1:1))}const I=this.crossTileSymbolIndex.addLayer(T,v[T.source],t.center.lng);g=g||I}if(this.crossTileSymbolIndex.pruneUnusedLayers(this._order),((d=d||this._layerOrderChanged||s===0)||!this.pauseablePlacement||this.pauseablePlacement.isDone()&&!this.placement.stillRecent(c.h.now(),t.zoom))&&(this.pauseablePlacement=new j3(t,this.map.terrain,this._order,d,n,s,l,this.placement),this._layerOrderChanged=!1),this.pauseablePlacement.isDone()?this.placement.setStale():(this.pauseablePlacement.continuePlacement(this._order,this._layers,v),this.pauseablePlacement.isDone()&&(this.placement=this.pauseablePlacement.commit(c.h.now()),y=!0),g&&this.pauseablePlacement.placement.setStale()),y||g)for(const w of this._order){const T=this._layers[w];T.type==="symbol"&&this.placement.updateLayerOpacities(T,v[T.source])}return!this.pauseablePlacement.isDone()||this.placement.hasTransitions(c.h.now())}_releaseSymbolFadeTiles(){for(const t in this.sourceCaches)this.sourceCaches[t].releaseSymbolFadeTiles()}getImages(t,n,s){this.imageManager.getImages(n.icons,s),this._updateTilesForChangedImages();const l=this.sourceCaches[n.source];l&&l.setDependencies(n.tileID.key,n.type,n.icons)}getGlyphs(t,n,s){this.glyphManager.getGlyphs(n.stacks,s);const l=this.sourceCaches[n.source];l&&l.setDependencies(n.tileID.key,n.type,[""])}getResource(t,n,s){return c.m(n,s)}getGlyphsUrl(){return this.stylesheet.glyphs||null}setGlyphs(t,n={}){this._checkLoaded(),t&&this._validate(c.y.glyphs,"glyphs",t,null,n)||(this._glyphsDidChange=!0,this.stylesheet.glyphs=t,this.glyphManager.entries={},this.glyphManager.setURL(t))}addSprite(t,n,s={},l){this._checkLoaded();const d=[{id:t,url:n}],g=[...U2(this.stylesheet.sprite),...d];this._validate(c.y.sprite,"sprite",g,null,s)||(this.stylesheet.sprite=g,this._loadSprite(d,!0,l))}removeSprite(t){this._checkLoaded();const n=U2(this.stylesheet.sprite);if(n.find(s=>s.id===t)){if(this._spritesImagesIds[t])for(const s of this._spritesImagesIds[t])this.imageManager.removeImage(s),this._changedImages[s]=!0;n.splice(n.findIndex(s=>s.id===t),1),this.stylesheet.sprite=n.length>0?n:void 0,delete this._spritesImagesIds[t],this._availableImages=this.imageManager.listImages(),this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new c.k("data",{dataType:"style"}))}else this.fire(new c.j(new Error(`Sprite "${t}" doesn't exists on this map.`)))}getSprite(){return U2(this.stylesheet.sprite)}setSprite(t,n={},s){this._checkLoaded(),t&&this._validate(c.y.sprite,"sprite",t,null,n)||(this.stylesheet.sprite=t,t?this._loadSprite(t,!0,s):(this._unloadSprite(),s&&s(null)))}}$2.registerForPluginStateChange=c.aK;var v6=c.Q([{name:"a_pos",type:"Int16",components:2}]),E0="attribute vec3 a_pos3d;uniform mat4 u_matrix;uniform float u_ele_delta;varying vec2 v_texture_pos;varying float v_depth;void main() {float extent=8192.0;float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/extent;gl_Position=u_matrix*vec4(a_pos3d.xy,get_elevation(a_pos3d.xy)-ele_delta,1.0);v_depth=gl_Position.z/gl_Position.w;}";const c2={prelude:V4(`#ifdef GL_ES precision mediump float; #else diff --git a/docs/assets/MasonryGrid.stories-De91Npnf.js b/docs/assets/MasonryGrid.stories-ClYaSA_D.js similarity index 96% rename from docs/assets/MasonryGrid.stories-De91Npnf.js rename to docs/assets/MasonryGrid.stories-ClYaSA_D.js index 7c1ecd89..fd5290d4 100644 --- a/docs/assets/MasonryGrid.stories-De91Npnf.js +++ b/docs/assets/MasonryGrid.stories-ClYaSA_D.js @@ -1,4 +1,4 @@ -import{j as n}from"./jsx-runtime-BTCK_S7S.js";import{r as i}from"./index-CBqU2yxZ.js";import{a as k}from"./chunk-WFFRPTHA-B2vgThZf.js";import{d as q}from"./index-DfmhmaGJ.js";import{P as _}from"./Pagination-D0HmnRDL.js";import{H as M}from"./Header-BJ3NNdPz.js";import{I as T}from"./Label-Cq1fb1cd.js";import{L as N}from"./Loader-CooidObp.js";import{S as G}from"./Segment-C5_maSSM.js";import{D as d}from"./Dimmer-D_gwaesu.js";import{T as A}from"./Transition-DSFEXhCu.js";import{_ as S}from"./index-default-C_maRo4o.js";import{w as P}from"./Images-DFvK9Yjz.js";import"./_commonjsHelpers-BosuxZz1.js";import"./preview-errors-CzpZmerH.js";import"./index-CKJfshIT.js";import"./v4-D8aEg3BZ.js";import"./mapValues-CZh2vnSw.js";import"./pickBy-CU2rOOKe.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-Bu_b4Pek.js";import"./index-Cw1G72V2.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./debounce-Bq1aTuh-.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./map-B4PnIEPz.js";import"./getElementType-CckcRzoH.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./toFinite-KQ8KevIC.js";import"./Menu-9i0apxqd.js";import"./_arrayReduce-CrxnWFSq.js";import"./deburr-CEfyoYOr.js";import"./Icon-2tEtgK8g.js";import"./keyboardKey-OMDgGVm3.js";import"./includes-CQoJOerW.js";import"./forEach-CXlln0XP.js";import"./Portal-DvhHJPzU.js";import"./index-DZGZymok.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./_baseAssignValue-izmKBXUH.js";import"./filter-CVNi8iPS.js";import"./index-xJp9Kd2E.js";import"./Number-D3yuhZId.js";const L=e=>{const a={},r=[];for(let t=0;t0?e.gap:0}px`},children:a[`column${t}`]},t));return n.jsx("div",{className:"masonryGrid",children:r})},D=350,H=175,$=e=>{const[a,r]=i.useState(!1),[t,s]=i.useState(0);return i.useEffect(()=>{s(H+Math.ceil(Math.random()*D))},[]),n.jsxs(d.Dimmable,{className:"item",dimmed:a,onClick:()=>e.onClick&&e.onClick(e.item),onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),style:{cursor:e.onClick?"pointer":void 0,height:`${t}px`},children:[n.jsx(A,{duration:800,visible:a,children:n.jsxs(d.Inner,{active:a,children:[n.jsx(M,{content:e.item.title,inverted:!0,subheader:e.item.subtitle}),e.item.extra&&n.jsx("div",{className:"extraContainer",children:e.item.extra})]})}),n.jsx(T,{alt:e.item.alt,className:"image",src:e.item.image}),e.renderContent&&e.renderContent(e.item)]})},c=e=>n.jsxs("div",{className:"masonry-grid",children:[n.jsx(N,{active:e.loading}),n.jsxs("div",{children:[n.jsx(L,{columns:e.columns,gap:e.gap,children:S.map(e.items,(a,r)=>n.jsx($,{item:a,onClick:e.onClick,renderContent:e.renderContent},r))}),e.pages>1&&e.onPageChange&&n.jsx(G,{basic:!0,textAlign:"center",children:n.jsx(_,{activePage:e.page,firstItem:null,lastItem:null,onPageChange:(a,{activePage:r})=>e.onPageChange&&e.onPageChange(r),totalPages:e.pages,size:"small"})})]}),!e.loading&&!(e.items&&e.items.length)&&e.renderEmpty&&e.renderEmpty()]});c.__docgenInfo={description:"",methods:[],displayName:"MasonryGrid",props:{columns:{required:!0,flowType:{name:"number"},description:""},gap:{required:!0,flowType:{name:"number"},description:""},items:{required:!0,flowType:{name:"Array",elements:[{name:"signature",type:"object",raw:`{ +import{j as n}from"./jsx-runtime-BTCK_S7S.js";import{r as i}from"./index-CBqU2yxZ.js";import{a as k}from"./chunk-WFFRPTHA-B2vgThZf.js";import{d as q}from"./index-CAen7T_W.js";import{P as _}from"./Pagination-D0HmnRDL.js";import{H as M}from"./Header-BJ3NNdPz.js";import{I as T}from"./Label-Cq1fb1cd.js";import{L as N}from"./Loader-CooidObp.js";import{S as G}from"./Segment-C5_maSSM.js";import{D as d}from"./Dimmer-D_gwaesu.js";import{T as A}from"./Transition-DSFEXhCu.js";import{_ as S}from"./index-default-C_maRo4o.js";import{w as P}from"./Images-DFvK9Yjz.js";import"./_commonjsHelpers-BosuxZz1.js";import"./preview-errors-CzpZmerH.js";import"./index-CKJfshIT.js";import"./v4-D8aEg3BZ.js";import"./mapValues-LQZI9uWW.js";import"./pickBy-Us6u5-To.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-DCkRKKtx.js";import"./index-Cw1G72V2.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./debounce-BkgZrIul.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./map-B4PnIEPz.js";import"./getElementType-CckcRzoH.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./toFinite-KQ8KevIC.js";import"./Menu-9i0apxqd.js";import"./_arrayReduce-CrxnWFSq.js";import"./deburr-CEfyoYOr.js";import"./Icon-2tEtgK8g.js";import"./keyboardKey-OMDgGVm3.js";import"./includes-CQoJOerW.js";import"./forEach-CXlln0XP.js";import"./Portal-DvhHJPzU.js";import"./index-DZGZymok.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./_baseAssignValue-izmKBXUH.js";import"./filter-CVNi8iPS.js";import"./index-xJp9Kd2E.js";import"./Number-D3yuhZId.js";const L=e=>{const a={},r=[];for(let t=0;t0?e.gap:0}px`},children:a[`column${t}`]},t));return n.jsx("div",{className:"masonryGrid",children:r})},D=350,H=175,$=e=>{const[a,r]=i.useState(!1),[t,s]=i.useState(0);return i.useEffect(()=>{s(H+Math.ceil(Math.random()*D))},[]),n.jsxs(d.Dimmable,{className:"item",dimmed:a,onClick:()=>e.onClick&&e.onClick(e.item),onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),style:{cursor:e.onClick?"pointer":void 0,height:`${t}px`},children:[n.jsx(A,{duration:800,visible:a,children:n.jsxs(d.Inner,{active:a,children:[n.jsx(M,{content:e.item.title,inverted:!0,subheader:e.item.subtitle}),e.item.extra&&n.jsx("div",{className:"extraContainer",children:e.item.extra})]})}),n.jsx(T,{alt:e.item.alt,className:"image",src:e.item.image}),e.renderContent&&e.renderContent(e.item)]})},c=e=>n.jsxs("div",{className:"masonry-grid",children:[n.jsx(N,{active:e.loading}),n.jsxs("div",{children:[n.jsx(L,{columns:e.columns,gap:e.gap,children:S.map(e.items,(a,r)=>n.jsx($,{item:a,onClick:e.onClick,renderContent:e.renderContent},r))}),e.pages>1&&e.onPageChange&&n.jsx(G,{basic:!0,textAlign:"center",children:n.jsx(_,{activePage:e.page,firstItem:null,lastItem:null,onPageChange:(a,{activePage:r})=>e.onPageChange&&e.onPageChange(r),totalPages:e.pages,size:"small"})})]}),!e.loading&&!(e.items&&e.items.length)&&e.renderEmpty&&e.renderEmpty()]});c.__docgenInfo={description:"",methods:[],displayName:"MasonryGrid",props:{columns:{required:!0,flowType:{name:"number"},description:""},gap:{required:!0,flowType:{name:"number"},description:""},items:{required:!0,flowType:{name:"Array",elements:[{name:"signature",type:"object",raw:`{ alt: string, extra?: Element | string, id: number, diff --git a/docs/assets/MediaGallery.stories-CBjYKsLp.js b/docs/assets/MediaGallery.stories-Dk6XSlqM.js similarity index 96% rename from docs/assets/MediaGallery.stories-CBjYKsLp.js rename to docs/assets/MediaGallery.stories-Dk6XSlqM.js index b5f85086..f54f372c 100644 --- a/docs/assets/MediaGallery.stories-CBjYKsLp.js +++ b/docs/assets/MediaGallery.stories-Dk6XSlqM.js @@ -1,4 +1,4 @@ -import{j as i}from"./jsx-runtime-BTCK_S7S.js";import{r as m}from"./index-CBqU2yxZ.js";import{a as v}from"./chunk-WFFRPTHA-B2vgThZf.js";import{d as j}from"./index-DfmhmaGJ.js";import{B as s}from"./Button-Blq7Z6RX.js";import{I}from"./Label-Cq1fb1cd.js";import{L as C}from"./Loader-CooidObp.js";import{D as w}from"./Dimmer-D_gwaesu.js";import{T as N}from"./Transition-DSFEXhCu.js";import{P as f}from"./PlayButton-Duxkdt-o.js";import{V as P}from"./VideoPlayer-DLJxAPDP.js";import{v as T}from"./SampleVideo-Bq74ahmY.js";import{w as k}from"./Images-DFvK9Yjz.js";import"./_commonjsHelpers-BosuxZz1.js";import"./preview-errors-CzpZmerH.js";import"./index-CKJfshIT.js";import"./v4-D8aEg3BZ.js";import"./mapValues-CZh2vnSw.js";import"./pickBy-CU2rOOKe.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-Bu_b4Pek.js";import"./index-Cw1G72V2.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./debounce-Bq1aTuh-.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getElementType-CckcRzoH.js";import"./Icon-2tEtgK8g.js";import"./map-B4PnIEPz.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./toFinite-KQ8KevIC.js";import"./index-DZGZymok.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./includes-CQoJOerW.js";import"./forEach-CXlln0XP.js";import"./_baseAssignValue-izmKBXUH.js";import"./filter-CVNi8iPS.js";import"./Message-3p6wyYpA.js";import"./Modal-Bz2VEyQG.js";import"./index-BBpNyw-T.js";import"./_baseSet-6y0qliU9.js";import"./_arrayReduce-CrxnWFSq.js";import"./isEmpty-Cyb9hIKi.js";import"./ModalContext-Bu-D9kD-.js";import"./i18n-C8zWlANG.js";import"./i18next-Sc0HEOoc.js";import"./toPropertyKey-hKuLU48H.js";import"./defineProperty-CCxoMnQV.js";import"./inherits-D5wXBZoG.js";import"./createClass-D2z1h_eG.js";import"./getPrototypeOf-BYVhAdwF.js";import"./index-xJp9Kd2E.js";import"./index-default-C_maRo4o.js";import"./Number-D3yuhZId.js";const y=()=>i.jsx("div",{className:"icon video-player-button",children:i.jsx("div",{children:i.jsx(f,{})})});y.__docgenInfo={description:"",methods:[],displayName:"VideoPlayerButton"};const l=e=>{const[t,r]=m.useState(!1);return i.jsxs(w,{active:e.visible,className:"media-gallery mediaGallery",page:!0,children:[e.loading&&i.jsx(C,{active:!0,size:"big"}),e.item&&i.jsxs(i.Fragment,{children:[i.jsx(N,{animation:"fade",mountOnShow:!1,children:i.jsxs("div",{className:"imageContainer",children:[i.jsx(I,{src:e.item.image,style:{objectFit:"contain"}}),e.item.type==="video"&&i.jsx(f,{onClick:()=>r(!0),style:{position:"absolute",top:"50%"}})]})}),e.renderContent&&e.renderContent(),e.onClose&&i.jsx("div",{className:"controls top right",children:i.jsx(s,{basic:!0,circular:!0,icon:"times",inverted:!0,onClick:e.onClose,size:"large"})}),e.label&&i.jsx("div",{className:"controls top left",children:i.jsx(s,{basic:!0,content:e.label,inverted:!0,size:"large"})}),e.onPrevious&&i.jsx("div",{className:"controls middle left",children:i.jsx(s,{basic:!0,disabled:!e.onPrevious,inverted:!0,icon:"angle left",onClick:e.onPrevious,size:"huge"})}),e.onNext&&i.jsx("div",{className:"controls middle right",children:i.jsx(s,{basic:!0,disabled:!e.onNext,inverted:!0,icon:"angle right",onClick:e.onNext,size:"huge"})}),e.item.src&&i.jsx(P,{autoPlay:!0,embedded:e.item.embedded,icon:i.jsx(y,{}),onClose:()=>r(!1),open:t,placeholder:e.item.preview,size:"huge",video:e.item.src})]})]})};l.__docgenInfo={description:"",methods:[],displayName:"MediaGallery",props:{item:{required:!0,flowType:{name:"signature",type:"object",raw:`{ +import{j as i}from"./jsx-runtime-BTCK_S7S.js";import{r as m}from"./index-CBqU2yxZ.js";import{a as v}from"./chunk-WFFRPTHA-B2vgThZf.js";import{d as j}from"./index-CAen7T_W.js";import{B as s}from"./Button-Blq7Z6RX.js";import{I}from"./Label-Cq1fb1cd.js";import{L as C}from"./Loader-CooidObp.js";import{D as w}from"./Dimmer-D_gwaesu.js";import{T as N}from"./Transition-DSFEXhCu.js";import{P as f}from"./PlayButton-Duxkdt-o.js";import{V as P}from"./VideoPlayer-DLJxAPDP.js";import{v as T}from"./SampleVideo-Bq74ahmY.js";import{w as k}from"./Images-DFvK9Yjz.js";import"./_commonjsHelpers-BosuxZz1.js";import"./preview-errors-CzpZmerH.js";import"./index-CKJfshIT.js";import"./v4-D8aEg3BZ.js";import"./mapValues-LQZI9uWW.js";import"./pickBy-Us6u5-To.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-DCkRKKtx.js";import"./index-Cw1G72V2.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./debounce-BkgZrIul.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getElementType-CckcRzoH.js";import"./Icon-2tEtgK8g.js";import"./map-B4PnIEPz.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./toFinite-KQ8KevIC.js";import"./index-DZGZymok.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./includes-CQoJOerW.js";import"./forEach-CXlln0XP.js";import"./_baseAssignValue-izmKBXUH.js";import"./filter-CVNi8iPS.js";import"./Message-3p6wyYpA.js";import"./Modal-Bz2VEyQG.js";import"./index-BBpNyw-T.js";import"./_baseSet-6y0qliU9.js";import"./_arrayReduce-CrxnWFSq.js";import"./isEmpty-Cyb9hIKi.js";import"./ModalContext-Bu-D9kD-.js";import"./i18n-C8zWlANG.js";import"./i18next-Sc0HEOoc.js";import"./toPropertyKey-hKuLU48H.js";import"./defineProperty-CCxoMnQV.js";import"./inherits-D5wXBZoG.js";import"./createClass-D2z1h_eG.js";import"./getPrototypeOf-BYVhAdwF.js";import"./index-xJp9Kd2E.js";import"./index-default-C_maRo4o.js";import"./Number-D3yuhZId.js";const y=()=>i.jsx("div",{className:"icon video-player-button",children:i.jsx("div",{children:i.jsx(f,{})})});y.__docgenInfo={description:"",methods:[],displayName:"VideoPlayerButton"};const l=e=>{const[t,r]=m.useState(!1);return i.jsxs(w,{active:e.visible,className:"media-gallery mediaGallery",page:!0,children:[e.loading&&i.jsx(C,{active:!0,size:"big"}),e.item&&i.jsxs(i.Fragment,{children:[i.jsx(N,{animation:"fade",mountOnShow:!1,children:i.jsxs("div",{className:"imageContainer",children:[i.jsx(I,{src:e.item.image,style:{objectFit:"contain"}}),e.item.type==="video"&&i.jsx(f,{onClick:()=>r(!0),style:{position:"absolute",top:"50%"}})]})}),e.renderContent&&e.renderContent(),e.onClose&&i.jsx("div",{className:"controls top right",children:i.jsx(s,{basic:!0,circular:!0,icon:"times",inverted:!0,onClick:e.onClose,size:"large"})}),e.label&&i.jsx("div",{className:"controls top left",children:i.jsx(s,{basic:!0,content:e.label,inverted:!0,size:"large"})}),e.onPrevious&&i.jsx("div",{className:"controls middle left",children:i.jsx(s,{basic:!0,disabled:!e.onPrevious,inverted:!0,icon:"angle left",onClick:e.onPrevious,size:"huge"})}),e.onNext&&i.jsx("div",{className:"controls middle right",children:i.jsx(s,{basic:!0,disabled:!e.onNext,inverted:!0,icon:"angle right",onClick:e.onNext,size:"huge"})}),e.item.src&&i.jsx(P,{autoPlay:!0,embedded:e.item.embedded,icon:i.jsx(y,{}),onClose:()=>r(!1),open:t,placeholder:e.item.preview,size:"huge",video:e.item.src})]})]})};l.__docgenInfo={description:"",methods:[],displayName:"MediaGallery",props:{item:{required:!0,flowType:{name:"signature",type:"object",raw:`{ image?: string, embedded?: boolean, preview?: string, diff --git a/docs/assets/MediaGrid.stories-Bc9gy8Ke.js b/docs/assets/MediaGrid.stories-GwQ2NQWv.js similarity index 90% rename from docs/assets/MediaGrid.stories-Bc9gy8Ke.js rename to docs/assets/MediaGrid.stories-GwQ2NQWv.js index 4af56d7e..fd287d63 100644 --- a/docs/assets/MediaGrid.stories-Bc9gy8Ke.js +++ b/docs/assets/MediaGrid.stories-GwQ2NQWv.js @@ -1,4 +1,4 @@ -import{j as i}from"./jsx-runtime-BTCK_S7S.js";import{r as p}from"./index-CBqU2yxZ.js";import{a as k}from"./chunk-WFFRPTHA-B2vgThZf.js";import{d as C}from"./index-DfmhmaGJ.js";import{I as _}from"./Label-Cq1fb1cd.js";import{L as w}from"./Loader-CooidObp.js";import{_ as s}from"./index-default-C_maRo4o.js";import{w as y}from"./Images-DFvK9Yjz.js";import"./_commonjsHelpers-BosuxZz1.js";import"./preview-errors-CzpZmerH.js";import"./index-CKJfshIT.js";import"./v4-D8aEg3BZ.js";import"./mapValues-CZh2vnSw.js";import"./pickBy-CU2rOOKe.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-Bu_b4Pek.js";import"./index-Cw1G72V2.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./debounce-Bq1aTuh-.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./getElementType-CckcRzoH.js";import"./Icon-2tEtgK8g.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./forEach-CXlln0XP.js";import"./Dimmer-D_gwaesu.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./index-DZGZymok.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./index-xJp9Kd2E.js";import"./Number-D3yuhZId.js";const x=5,a=e=>{const[n,h]=p.useState([]);return p.useEffect(()=>{const t=[];for(let r=0;ri.jsx("div",{className:"mediaImage",children:i.jsx(_,{onClick:()=>e.onClick&&e.onClick(t),src:t.image,style:{cursor:e.onClick?"pointer":void 0,objectFit:"cover",width:"100%"}})},r))})]})};a.__docgenInfo={description:"",methods:[],displayName:"MediaGrid",props:{items:{required:!0,flowType:{name:"Array",elements:[{name:"signature",type:"object",raw:`{ +import{j as i}from"./jsx-runtime-BTCK_S7S.js";import{r as p}from"./index-CBqU2yxZ.js";import{a as k}from"./chunk-WFFRPTHA-B2vgThZf.js";import{d as C}from"./index-CAen7T_W.js";import{I as _}from"./Label-Cq1fb1cd.js";import{L as w}from"./Loader-CooidObp.js";import{_ as s}from"./index-default-C_maRo4o.js";import{w as y}from"./Images-DFvK9Yjz.js";import"./_commonjsHelpers-BosuxZz1.js";import"./preview-errors-CzpZmerH.js";import"./index-CKJfshIT.js";import"./v4-D8aEg3BZ.js";import"./mapValues-LQZI9uWW.js";import"./pickBy-Us6u5-To.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-DCkRKKtx.js";import"./index-Cw1G72V2.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./debounce-BkgZrIul.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./getElementType-CckcRzoH.js";import"./Icon-2tEtgK8g.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./forEach-CXlln0XP.js";import"./Dimmer-D_gwaesu.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./index-DZGZymok.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./index-xJp9Kd2E.js";import"./Number-D3yuhZId.js";const x=5,a=e=>{const[n,h]=p.useState([]);return p.useEffect(()=>{const t=[];for(let r=0;ri.jsx("div",{className:"mediaImage",children:i.jsx(_,{onClick:()=>e.onClick&&e.onClick(t),src:t.image,style:{cursor:e.onClick?"pointer":void 0,objectFit:"cover",width:"100%"}})},r))})]})};a.__docgenInfo={description:"",methods:[],displayName:"MediaGrid",props:{items:{required:!0,flowType:{name:"Array",elements:[{name:"signature",type:"object",raw:`{ image: string }`,signature:{properties:[{key:"image",value:{name:"string",required:!0}}]}}],raw:"Array"},description:""},loading:{required:!1,flowType:{name:"boolean"},description:""},onClick:{required:!1,flowType:{name:"signature",type:"function",raw:"(item: Item) => void",signature:{arguments:[{name:"item",type:{name:"signature",type:"object",raw:`{ image: string diff --git a/docs/assets/MediaList.stories-S0IVrTkH.js b/docs/assets/MediaList.stories-DgcimUF5.js similarity index 94% rename from docs/assets/MediaList.stories-S0IVrTkH.js rename to docs/assets/MediaList.stories-DgcimUF5.js index 3ca6abce..a7a1e126 100644 --- a/docs/assets/MediaList.stories-S0IVrTkH.js +++ b/docs/assets/MediaList.stories-DgcimUF5.js @@ -1,4 +1,4 @@ -import{j as n}from"./jsx-runtime-BTCK_S7S.js";import{r as d}from"./index-CBqU2yxZ.js";import{a as u}from"./chunk-WFFRPTHA-B2vgThZf.js";import{d as A}from"./index-DfmhmaGJ.js";import{_ as p}from"./index-default-C_maRo4o.js";import{g as C}from"./index.es28-dE8xdd4L.js";import{I as P}from"./Label-Cq1fb1cd.js";import{C as i}from"./Card-BJT3uTAq.js";import{L as R}from"./ListLoader-BdgbIqvc.js";import{P as L}from"./PlayButton-Duxkdt-o.js";import{w as c}from"./Images-DFvK9Yjz.js";import"./_commonjsHelpers-BosuxZz1.js";import"./preview-errors-CzpZmerH.js";import"./index-CKJfshIT.js";import"./v4-D8aEg3BZ.js";import"./mapValues-CZh2vnSw.js";import"./pickBy-CU2rOOKe.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-Bu_b4Pek.js";import"./index-Cw1G72V2.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./debounce-Bq1aTuh-.js";import"./index-DZGZymok.js";import"./iframe-ovyJW9VA.js";import"../sb-preview/runtime.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./getElementType-CckcRzoH.js";import"./Icon-2tEtgK8g.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./forEach-CXlln0XP.js";import"./Dimmer-D_gwaesu.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./map-B4PnIEPz.js";import"./Loader-CooidObp.js";import"./Segment-C5_maSSM.js";import"./i18n-C8zWlANG.js";import"./i18next-Sc0HEOoc.js";import"./toPropertyKey-hKuLU48H.js";import"./defineProperty-CCxoMnQV.js";import"./inherits-D5wXBZoG.js";import"./createClass-D2z1h_eG.js";import"./getPrototypeOf-BYVhAdwF.js";import"./Button-Blq7Z6RX.js";import"./index-xJp9Kd2E.js";import"./Number-D3yuhZId.js";const s=e=>n.jsxs(C,{offset:100,onBottomReached:e.onBottomReached,children:[n.jsx(R,{active:e.loading||!1}),n.jsx(i.Group,{doubling:!0,stackable:!0,children:p.map(e.items,(t,r)=>n.jsxs(i,{onClick:e.onClick.bind(void 0,t,r),children:[n.jsx(P,{alt:t.alt,src:t.image,style:{objectFit:"cover"}}),t.type==="video"&&n.jsx("div",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"},children:n.jsx(L,{})}),(e.renderMeta||e.renderHeader||e.renderDescription)&&n.jsxs(i.Content,{children:[e.renderHeader&&n.jsx(i.Header,{content:e.renderHeader(t),textAlign:e.textAlign}),e.renderMeta&&n.jsx(i.Meta,{content:e.renderMeta(t),textAlign:e.textAlign}),e.renderDescription&&n.jsx(i.Description,{content:e.renderDescription(t),textAlign:e.textAlign})]}),e.renderExtra&&n.jsx(i.Content,{content:e.renderExtra(t),extra:!0,textAlign:e.textAlign})]}))})]});s.__docgenInfo={description:"",methods:[],displayName:"MediaList",props:{items:{required:!0,flowType:{name:"Array",elements:[{name:"signature",type:"object",raw:`{ +import{j as n}from"./jsx-runtime-BTCK_S7S.js";import{r as d}from"./index-CBqU2yxZ.js";import{a as u}from"./chunk-WFFRPTHA-B2vgThZf.js";import{d as A}from"./index-CAen7T_W.js";import{_ as p}from"./index-default-C_maRo4o.js";import{g as C}from"./index.es28-Dp3-vHIY.js";import{I as P}from"./Label-Cq1fb1cd.js";import{C as i}from"./Card-BJT3uTAq.js";import{L as R}from"./ListLoader-BdgbIqvc.js";import{P as L}from"./PlayButton-Duxkdt-o.js";import{w as c}from"./Images-DFvK9Yjz.js";import"./_commonjsHelpers-BosuxZz1.js";import"./preview-errors-CzpZmerH.js";import"./index-CKJfshIT.js";import"./v4-D8aEg3BZ.js";import"./mapValues-LQZI9uWW.js";import"./pickBy-Us6u5-To.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-DCkRKKtx.js";import"./index-Cw1G72V2.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./debounce-BkgZrIul.js";import"./index-DZGZymok.js";import"./iframe-BQtATEn0.js";import"../sb-preview/runtime.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./getElementType-CckcRzoH.js";import"./Icon-2tEtgK8g.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./forEach-CXlln0XP.js";import"./Dimmer-D_gwaesu.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./map-B4PnIEPz.js";import"./Loader-CooidObp.js";import"./Segment-C5_maSSM.js";import"./i18n-C8zWlANG.js";import"./i18next-Sc0HEOoc.js";import"./toPropertyKey-hKuLU48H.js";import"./defineProperty-CCxoMnQV.js";import"./inherits-D5wXBZoG.js";import"./createClass-D2z1h_eG.js";import"./getPrototypeOf-BYVhAdwF.js";import"./Button-Blq7Z6RX.js";import"./index-xJp9Kd2E.js";import"./Number-D3yuhZId.js";const s=e=>n.jsxs(C,{offset:100,onBottomReached:e.onBottomReached,children:[n.jsx(R,{active:e.loading||!1}),n.jsx(i.Group,{doubling:!0,stackable:!0,children:p.map(e.items,(t,r)=>n.jsxs(i,{onClick:e.onClick.bind(void 0,t,r),children:[n.jsx(P,{alt:t.alt,src:t.image,style:{objectFit:"cover"}}),t.type==="video"&&n.jsx("div",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"},children:n.jsx(L,{})}),(e.renderMeta||e.renderHeader||e.renderDescription)&&n.jsxs(i.Content,{children:[e.renderHeader&&n.jsx(i.Header,{content:e.renderHeader(t),textAlign:e.textAlign}),e.renderMeta&&n.jsx(i.Meta,{content:e.renderMeta(t),textAlign:e.textAlign}),e.renderDescription&&n.jsx(i.Description,{content:e.renderDescription(t),textAlign:e.textAlign})]}),e.renderExtra&&n.jsx(i.Content,{content:e.renderExtra(t),extra:!0,textAlign:e.textAlign})]}))})]});s.__docgenInfo={description:"",methods:[],displayName:"MediaList",props:{items:{required:!0,flowType:{name:"Array",elements:[{name:"signature",type:"object",raw:`{ ...any, image: string, type: 'image' | 'video' diff --git a/docs/assets/MenuBar.stories-CIr167Kk.js b/docs/assets/MenuBar.stories-CfUdm4UC.js similarity index 92% rename from docs/assets/MenuBar.stories-CIr167Kk.js rename to docs/assets/MenuBar.stories-CfUdm4UC.js index 99b9fb42..c508327f 100644 --- a/docs/assets/MenuBar.stories-CIr167Kk.js +++ b/docs/assets/MenuBar.stories-CfUdm4UC.js @@ -1,4 +1,4 @@ -import{j as e}from"./jsx-runtime-BTCK_S7S.js";import"./index-CBqU2yxZ.js";import{d as r}from"./index-DfmhmaGJ.js";import{M as c}from"./MenuBar-0zX1-Zh0.js";import"./_commonjsHelpers-BosuxZz1.js";import"./mapValues-CZh2vnSw.js";import"./pickBy-CU2rOOKe.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-Bu_b4Pek.js";import"./index-Cw1G72V2.js";import"./index-CKJfshIT.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./preview-errors-CzpZmerH.js";import"./debounce-Bq1aTuh-.js";import"./Menu-9i0apxqd.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./map-B4PnIEPz.js";import"./getElementType-CckcRzoH.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./_arrayReduce-CrxnWFSq.js";import"./deburr-CEfyoYOr.js";import"./Icon-2tEtgK8g.js";import"./Dropdown-Di2cPjwR.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./without-BP-mqg2K.js";import"./isArrayLikeObject-CbXKTyfk.js";import"./isEmpty-Cyb9hIKi.js";import"./index-BBpNyw-T.js";import"./_baseSet-6y0qliU9.js";import"./_baseAssignValue-izmKBXUH.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./index-DZGZymok.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./Label-Cq1fb1cd.js";import"./forEach-CXlln0XP.js";import"./Dimmer-D_gwaesu.js";import"./filter-CVNi8iPS.js";import"./index-default-C_maRo4o.js";const Y={title:"Components/Semantic UI/MenuBar",decorators:[r.withKnobs]},n=()=>e.jsx(c,{header:{content:"Test Application"},items:[{content:"Products",items:[{content:"Enterprise",onClick:()=>{}},{content:"Consumer",onClick:()=>{}}]},{content:"CMS Solution",items:[{content:"Rails",onClick:()=>{}},{content:"Python",onClick:()=>{}},{content:"PHP",onClick:()=>{}}]},{content:"Hosting",items:[{content:"Shared",onClick:()=>{}},{content:"Dedicated",onClick:()=>{}}]},{content:"Clothing",items:[{content:"Mens",items:[{content:"T-Shirts",onClick:()=>{}},{content:"Pants",onClick:()=>{}}]},{content:"Womens",items:[{content:"T-Shirts",onClick:()=>{}},{content:"Dresses",onClick:()=>{}}]}]}]});n.__docgenInfo={description:"",methods:[],displayName:"Default"};var t,o,i;n.parameters={...n.parameters,docs:{...(t=n.parameters)==null?void 0:t.docs,source:{originalSource:`() => e.jsx(c,{header:{content:"Test Application"},items:[{content:"Products",items:[{content:"Enterprise",onClick:()=>{}},{content:"Consumer",onClick:()=>{}}]},{content:"CMS Solution",items:[{content:"Rails",onClick:()=>{}},{content:"Python",onClick:()=>{}},{content:"PHP",onClick:()=>{}}]},{content:"Hosting",items:[{content:"Shared",onClick:()=>{}},{content:"Dedicated",onClick:()=>{}}]},{content:"Clothing",items:[{content:"Mens",items:[{content:"T-Shirts",onClick:()=>{}},{content:"Pants",onClick:()=>{}}]},{content:"Womens",items:[{content:"T-Shirts",onClick:()=>{}},{content:"Dresses",onClick:()=>{}}]}]}]});n.__docgenInfo={description:"",methods:[],displayName:"Default"};var t,o,i;n.parameters={...n.parameters,docs:{...(t=n.parameters)==null?void 0:t.docs,source:{originalSource:`() => i.jsx(c,{header:{content:"Test Application"},items:[{content:"Products",items:[{content:"Enterprise",onClick:()=>{}},{content:"Consumer",onClick:()=>{}}]},{content:"CMS Solution",items:[{content:"Rails",onClick:()=>{}},{content:"Python",onClick:()=>{}},{content:"PHP",onClick:()=>{}}]},{content:"Hosting",items:[{content:"Shared",onClick:()=>{}},{content:"Dedicated",onClick:()=>{}}]},{content:"Clothing",items:[{content:"Mens",items:[{content:"T-Shirts",onClick:()=>{}},{content:"Pants",onClick:()=>{}}]},{content:"Womens",items:[{content:"T-Shirts",onClick:()=>{}},{content:"Dresses",onClick:()=>{}}]}]}]});n.__docgenInfo={description:"",methods:[],displayName:"Default"};var t,o,e;n.parameters={...n.parameters,docs:{...(t=n.parameters)==null?void 0:t.docs,source:{originalSource:`() => i.jsx(c,{header:{content:"Test Application"},items:[{content:"Products",items:[{content:"Enterprise",onClick:()=>{}},{content:"Consumer",onClick:()=>{}}]},{content:"CMS Solution",items:[{content:"Rails",onClick:()=>{}},{content:"Python",onClick:()=>{}},{content:"PHP",onClick:()=>{}}]},{content:"Hosting",items:[{content:"Shared",onClick:()=>{}},{content:"Dedicated",onClick:()=>{}}]},{content:"Clothing",items:[{content:"Mens",items:[{content:"T-Shirts",onClick:()=>{}},{content:"Pants",onClick:()=>{}}]},{content:"Womens",items:[{content:"T-Shirts",onClick:()=>{}},{content:"Dresses",onClick:()=>{}}]}]}]});n.__docgenInfo={description:"",methods:[],displayName:"Default"};var t,o,e;n.parameters={...n.parameters,docs:{...(t=n.parameters)==null?void 0:t.docs,source:{originalSource:`() => e.jsx(m,{alt:"Test Image",image:I.files("Image",".png, .jpg, .jpeg",[u]),onClose:i("close"),open:!0}),r=()=>e.jsx(m,{alt:"Test Image",image:"/path/to/image.jpg",onClose:i("close"),open:!0}),t=()=>e.jsx(m,{alt:"Test Image",image:"http://localhost:3000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBZ0lEIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--05fcfd55941c73ff139611bcc194a158f08fe5a5/sample_640x426.tiff",onClose:i("close"),open:!0});o.__docgenInfo={description:"",methods:[],displayName:"Default"};r.__docgenInfo={description:"",methods:[],displayName:"Error"};t.__docgenInfo={description:"",methods:[],displayName:"ErrorLongURL"};var p,s,a;o.parameters={...o.parameters,docs:{...(p=o.parameters)==null?void 0:p.docs,source:{originalSource:"() => ",...(a=(s=o.parameters)==null?void 0:s.docs)==null?void 0:a.source}}};var c,n,l;r.parameters={...r.parameters,docs:{...(c=r.parameters)==null?void 0:c.docs,source:{originalSource:"() => ",...(l=(n=r.parameters)==null?void 0:n.docs)==null?void 0:l.source}}};var g,d,f;t.parameters={...t.parameters,docs:{...(g=t.parameters)==null?void 0:g.docs,source:{originalSource:"() => ",...(f=(d=t.parameters)==null?void 0:d.docs)==null?void 0:f.source}}};const uo=["Default","Error","ErrorLongURL"];export{o as Default,r as Error,t as ErrorLongURL,uo as __namedExportsOrder,Io as default}; +import{j as e}from"./jsx-runtime-BTCK_S7S.js";import"./index-CBqU2yxZ.js";import{a as i}from"./chunk-WFFRPTHA-B2vgThZf.js";import{d as I}from"./index-CAen7T_W.js";import{i as u}from"./test-image-BGrKnxUR.js";import{P as m}from"./PhotoViewer-CgBZCy1u.js";import"./_commonjsHelpers-BosuxZz1.js";import"./preview-errors-CzpZmerH.js";import"./index-CKJfshIT.js";import"./v4-D8aEg3BZ.js";import"./mapValues-LQZI9uWW.js";import"./pickBy-Us6u5-To.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-DCkRKKtx.js";import"./index-Cw1G72V2.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./debounce-BkgZrIul.js";import"./Message-3p6wyYpA.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getElementType-CckcRzoH.js";import"./Icon-2tEtgK8g.js";import"./map-B4PnIEPz.js";import"./Label-Cq1fb1cd.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./forEach-CXlln0XP.js";import"./Dimmer-D_gwaesu.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./index-DZGZymok.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./Modal-Bz2VEyQG.js";import"./index-BBpNyw-T.js";import"./_baseSet-6y0qliU9.js";import"./_baseAssignValue-izmKBXUH.js";import"./_arrayReduce-CrxnWFSq.js";import"./isEmpty-Cyb9hIKi.js";import"./Button-Blq7Z6RX.js";import"./ModalContext-Bu-D9kD-.js";import"./i18n-C8zWlANG.js";import"./i18next-Sc0HEOoc.js";import"./toPropertyKey-hKuLU48H.js";import"./defineProperty-CCxoMnQV.js";import"./inherits-D5wXBZoG.js";import"./createClass-D2z1h_eG.js";import"./getPrototypeOf-BYVhAdwF.js";const Io={title:"Components/Semantic UI/PhotoViewer",decorators:[I.withKnobs]},o=()=>e.jsx(m,{alt:"Test Image",image:I.files("Image",".png, .jpg, .jpeg",[u]),onClose:i("close"),open:!0}),r=()=>e.jsx(m,{alt:"Test Image",image:"/path/to/image.jpg",onClose:i("close"),open:!0}),t=()=>e.jsx(m,{alt:"Test Image",image:"http://localhost:3000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBZ0lEIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--05fcfd55941c73ff139611bcc194a158f08fe5a5/sample_640x426.tiff",onClose:i("close"),open:!0});o.__docgenInfo={description:"",methods:[],displayName:"Default"};r.__docgenInfo={description:"",methods:[],displayName:"Error"};t.__docgenInfo={description:"",methods:[],displayName:"ErrorLongURL"};var p,s,a;o.parameters={...o.parameters,docs:{...(p=o.parameters)==null?void 0:p.docs,source:{originalSource:"() => ",...(a=(s=o.parameters)==null?void 0:s.docs)==null?void 0:a.source}}};var c,n,l;r.parameters={...r.parameters,docs:{...(c=r.parameters)==null?void 0:c.docs,source:{originalSource:"() => ",...(l=(n=r.parameters)==null?void 0:n.docs)==null?void 0:l.source}}};var g,d,f;t.parameters={...t.parameters,docs:{...(g=t.parameters)==null?void 0:g.docs,source:{originalSource:"() => ",...(f=(d=t.parameters)==null?void 0:d.docs)==null?void 0:f.source}}};const uo=["Default","Error","ErrorLongURL"];export{o as Default,r as Error,t as ErrorLongURL,uo as __namedExportsOrder,Io as default}; diff --git a/docs/assets/PlaceMarker.stories-C9NEeaBA.js b/docs/assets/PlaceMarker.stories-BHPov8g4.js similarity index 99% rename from docs/assets/PlaceMarker.stories-C9NEeaBA.js rename to docs/assets/PlaceMarker.stories-BHPov8g4.js index 8b4c3a68..f6c0e15b 100644 --- a/docs/assets/PlaceMarker.stories-C9NEeaBA.js +++ b/docs/assets/PlaceMarker.stories-BHPov8g4.js @@ -1,4 +1,4 @@ -import{j as zc}from"./jsx-runtime-BTCK_S7S.js";import{m as $b,f as Gb,s as jb,k as qb,X as Zb,a as Xb,i as Hb,z as Yb}from"./MapStyles-X53DxvlK.js";import{r as Re,R as Lg}from"./index-CBqU2yxZ.js";import{r as Qy}from"./index-DZGZymok.js";import{_ as Wb}from"./iframe-ovyJW9VA.js";import"./_commonjsHelpers-BosuxZz1.js";import"../sb-preview/runtime.js";var Th=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Jb(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var tv={exports:{}};(function(t,e){(function(i,a){t.exports=a()})(Th,function(){var i=function(b,P){var U={drag:[],click:[],mousemove:[],mousedown:[],mouseup:[],mouseout:[],keydown:[],keyup:[],touchstart:[],touchmove:[],touchend:[],tap:[]},tt={on:function(ht,vt,Vt){if(U[ht]===void 0)throw new Error("Invalid event type: "+ht);U[ht].push({selector:vt,fn:Vt})},render:function(ht){P.store.featureChanged(ht)}},lt=function(ht,vt){for(var Vt=U[ht],Zt=Vt.length;Zt--;){var se=Vt[Zt];if(se.selector(vt)){se.fn.call(tt,vt)||P.store.render(),P.ui.updateMapClasses();break}}};return b.start.call(tt),{render:b.render,stop:function(){b.stop&&b.stop()},trash:function(){b.trash&&(b.trash(),P.store.render())},combineFeatures:function(){b.combineFeatures&&b.combineFeatures()},uncombineFeatures:function(){b.uncombineFeatures&&b.uncombineFeatures()},drag:function(ht){lt("drag",ht)},click:function(ht){lt("click",ht)},mousemove:function(ht){lt("mousemove",ht)},mousedown:function(ht){lt("mousedown",ht)},mouseup:function(ht){lt("mouseup",ht)},mouseout:function(ht){lt("mouseout",ht)},keydown:function(ht){lt("keydown",ht)},keyup:function(ht){lt("keyup",ht)},touchstart:function(ht){lt("touchstart",ht)},touchmove:function(ht){lt("touchmove",ht)},touchend:function(ht){lt("touchend",ht)},tap:function(ht){lt("tap",ht)}}};function a(b){return b&&b.__esModule&&Object.prototype.hasOwnProperty.call(b,"default")?b.default:b}function c(b){if(b.__esModule)return b;var P=b.default;if(typeof P=="function"){var U=function tt(){if(this instanceof tt){var lt=[null];lt.push.apply(lt,arguments);var ht=Function.bind.apply(P,lt);return new ht}return P.apply(this,arguments)};U.prototype=P.prototype}else U={};return Object.defineProperty(U,"__esModule",{value:!0}),Object.keys(b).forEach(function(tt){var lt=Object.getOwnPropertyDescriptor(b,tt);Object.defineProperty(U,tt,lt.get?lt:{enumerable:!0,get:function(){return b[tt]}})}),U}var f={},x={RADIUS:6378137,FLATTENING:1/298.257223563,POLAR_RADIUS:63567523142e-4},u=x;function A(b){var P=0;if(b&&b.length>0){P+=Math.abs(L(b[0]));for(var U=1;U2){for(vt=0;vt=Math.pow(2,b)?Kr(b,P):ht};Kr.rack=function(b,P,U){var tt=function(ht){var vt=0;do{if(vt++>10){if(!U)throw new Error("too many ID collisions, use more bits");b+=U}var Vt=Kr(b,P)}while(Object.hasOwnProperty.call(lt,Vt));return lt[Vt]=ht,Vt},lt=tt.hats={};return tt.get=function(ht){return tt.hats[ht]},tt.set=function(ht,vt){return tt.hats[ht]=vt,tt},tt.bits=b||128,tt.base=P||16,tt};var Pr=a(ko.exports),Fe=function(b,P){this.ctx=b,this.properties=P.properties||{},this.coordinates=P.geometry.coordinates,this.id=P.id||Pr(),this.type=P.geometry.type};Fe.prototype.changed=function(){this.ctx.store.featureChanged(this.id)},Fe.prototype.incomingCoords=function(b){this.setCoordinates(b)},Fe.prototype.setCoordinates=function(b){this.coordinates=b,this.changed()},Fe.prototype.getCoordinates=function(){return JSON.parse(JSON.stringify(this.coordinates))},Fe.prototype.setProperty=function(b,P){this.properties[b]=P},Fe.prototype.toGeoJSON=function(){return JSON.parse(JSON.stringify({id:this.id,type:xt.FEATURE,properties:this.properties,geometry:{coordinates:this.getCoordinates(),type:this.type}}))},Fe.prototype.internal=function(b){var P={id:this.id,meta:Ut.FEATURE,"meta:type":this.type,active:jt.INACTIVE,mode:b};if(this.ctx.options.userProperties)for(var U in this.properties)P["user_"+U]=this.properties[U];return{type:xt.FEATURE,properties:P,geometry:{coordinates:this.getCoordinates(),type:this.type}}};var qn=function(b,P){Fe.call(this,b,P)};(qn.prototype=Object.create(Fe.prototype)).isValid=function(){return typeof this.coordinates[0]=="number"&&typeof this.coordinates[1]=="number"},qn.prototype.updateCoordinate=function(b,P,U){this.coordinates=arguments.length===3?[P,U]:[b,P],this.changed()},qn.prototype.getCoordinate=function(){return this.getCoordinates()};var dr=function(b,P){Fe.call(this,b,P)};(dr.prototype=Object.create(Fe.prototype)).isValid=function(){return this.coordinates.length>1},dr.prototype.addCoordinate=function(b,P,U){this.changed();var tt=parseInt(b,10);this.coordinates.splice(tt,0,[P,U])},dr.prototype.getCoordinate=function(b){var P=parseInt(b,10);return JSON.parse(JSON.stringify(this.coordinates[P]))},dr.prototype.removeCoordinate=function(b){this.changed(),this.coordinates.splice(parseInt(b,10),1)},dr.prototype.updateCoordinate=function(b,P,U){var tt=parseInt(b,10);this.coordinates[tt]=[P,U],this.changed()};var Qr=function(b,P){Fe.call(this,b,P),this.coordinates=this.coordinates.map(function(U){return U.slice(0,-1)})};(Qr.prototype=Object.create(Fe.prototype)).isValid=function(){return this.coordinates.length!==0&&this.coordinates.every(function(b){return b.length>2})},Qr.prototype.incomingCoords=function(b){this.coordinates=b.map(function(P){return P.slice(0,-1)}),this.changed()},Qr.prototype.setCoordinates=function(b){this.coordinates=b,this.changed()},Qr.prototype.addCoordinate=function(b,P,U){this.changed();var tt=b.split(".").map(function(lt){return parseInt(lt,10)});this.coordinates[tt[0]].splice(tt[1],0,[P,U])},Qr.prototype.removeCoordinate=function(b){this.changed();var P=b.split(".").map(function(tt){return parseInt(tt,10)}),U=this.coordinates[P[0]];U&&(U.splice(P[1],1),U.length<3&&this.coordinates.splice(P[0],1))},Qr.prototype.getCoordinate=function(b){var P=b.split(".").map(function(tt){return parseInt(tt,10)}),U=this.coordinates[P[0]];return JSON.parse(JSON.stringify(U[P[1]]))},Qr.prototype.getCoordinates=function(){return this.coordinates.map(function(b){return b.concat([b[0]])})},Qr.prototype.updateCoordinate=function(b,P,U){this.changed();var tt=b.split("."),lt=parseInt(tt[0],10),ht=parseInt(tt[1],10);this.coordinates[lt]===void 0&&(this.coordinates[lt]=[]),this.coordinates[lt][ht]=[P,U]};var al={MultiPoint:qn,MultiLineString:dr,MultiPolygon:Qr},zo=function(b,P,U,tt,lt){var ht=U.split("."),vt=parseInt(ht[0],10),Vt=ht[1]?ht.slice(1).join("."):null;return b[vt][P](Vt,tt,lt)},Jn=function(b,P){if(Fe.call(this,b,P),delete this.coordinates,this.model=al[P.geometry.type],this.model===void 0)throw new TypeError(P.geometry.type+" is not a valid type");this.features=this._coordinatesToFeatures(P.geometry.coordinates)};function Be(b){this.map=b.map,this.drawConfig=JSON.parse(JSON.stringify(b.options||{})),this._ctx=b}(Jn.prototype=Object.create(Fe.prototype))._coordinatesToFeatures=function(b){var P=this,U=this.model.bind(this);return b.map(function(tt){return new U(P.ctx,{id:Pr(),type:xt.FEATURE,properties:{},geometry:{coordinates:tt,type:P.type.replace("Multi","")}})})},Jn.prototype.isValid=function(){return this.features.every(function(b){return b.isValid()})},Jn.prototype.setCoordinates=function(b){this.features=this._coordinatesToFeatures(b),this.changed()},Jn.prototype.getCoordinate=function(b){return zo(this.features,"getCoordinate",b)},Jn.prototype.getCoordinates=function(){return JSON.parse(JSON.stringify(this.features.map(function(b){return b.type===xt.POLYGON?b.getCoordinates():b.coordinates})))},Jn.prototype.updateCoordinate=function(b,P,U){zo(this.features,"updateCoordinate",b,P,U),this.changed()},Jn.prototype.addCoordinate=function(b,P,U){zo(this.features,"addCoordinate",b,P,U),this.changed()},Jn.prototype.removeCoordinate=function(b){zo(this.features,"removeCoordinate",b),this.changed()},Jn.prototype.getFeatures=function(){return this.features},Be.prototype.setSelected=function(b){return this._ctx.store.setSelected(b)},Be.prototype.setSelectedCoordinates=function(b){var P=this;this._ctx.store.setSelectedCoordinates(b),b.reduce(function(U,tt){return U[tt.feature_id]===void 0&&(U[tt.feature_id]=!0,P._ctx.store.get(tt.feature_id).changed()),U},{})},Be.prototype.getSelected=function(){return this._ctx.store.getSelected()},Be.prototype.getSelectedIds=function(){return this._ctx.store.getSelectedIds()},Be.prototype.isSelected=function(b){return this._ctx.store.isSelected(b)},Be.prototype.getFeature=function(b){return this._ctx.store.get(b)},Be.prototype.select=function(b){return this._ctx.store.select(b)},Be.prototype.deselect=function(b){return this._ctx.store.deselect(b)},Be.prototype.deleteFeature=function(b,P){return P===void 0&&(P={}),this._ctx.store.delete(b,P)},Be.prototype.addFeature=function(b){return this._ctx.store.add(b)},Be.prototype.clearSelectedFeatures=function(){return this._ctx.store.clearSelected()},Be.prototype.clearSelectedCoordinates=function(){return this._ctx.store.clearSelectedCoordinates()},Be.prototype.setActionableState=function(b){b===void 0&&(b={});var P={trash:b.trash||!1,combineFeatures:b.combineFeatures||!1,uncombineFeatures:b.uncombineFeatures||!1};return this._ctx.events.actionable(P)},Be.prototype.changeMode=function(b,P,U){return P===void 0&&(P={}),U===void 0&&(U={}),this._ctx.events.changeMode(b,P,U)},Be.prototype.updateUIClasses=function(b){return this._ctx.ui.queueMapClasses(b)},Be.prototype.activateUIButton=function(b){return this._ctx.ui.setActiveButton(b)},Be.prototype.featuresAt=function(b,P,U){if(U===void 0&&(U="click"),U!=="click"&&U!=="touch")throw new Error("invalid buffer type");return Yt[U](b,P,this._ctx)},Be.prototype.newFeature=function(b){var P=b.geometry.type;return P===xt.POINT?new qn(this._ctx,b):P===xt.LINE_STRING?new dr(this._ctx,b):P===xt.POLYGON?new Qr(this._ctx,b):new Jn(this._ctx,b)},Be.prototype.isInstanceOf=function(b,P){if(b===xt.POINT)return P instanceof qn;if(b===xt.LINE_STRING)return P instanceof dr;if(b===xt.POLYGON)return P instanceof Qr;if(b==="MultiFeature")return P instanceof Jn;throw new Error("Unknown feature class: "+b)},Be.prototype.doRender=function(b){return this._ctx.store.featureChanged(b)},Be.prototype.onSetup=function(){},Be.prototype.onDrag=function(){},Be.prototype.onClick=function(){},Be.prototype.onMouseMove=function(){},Be.prototype.onMouseDown=function(){},Be.prototype.onMouseUp=function(){},Be.prototype.onMouseOut=function(){},Be.prototype.onKeyUp=function(){},Be.prototype.onKeyDown=function(){},Be.prototype.onTouchStart=function(){},Be.prototype.onTouchMove=function(){},Be.prototype.onTouchEnd=function(){},Be.prototype.onTap=function(){},Be.prototype.onStop=function(){},Be.prototype.onTrash=function(){},Be.prototype.onCombineFeature=function(){},Be.prototype.onUncombineFeature=function(){},Be.prototype.toDisplayFeatures=function(){throw new Error("You must overwrite toDisplayFeatures")};var ll={drag:"onDrag",click:"onClick",mousemove:"onMouseMove",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseout:"onMouseOut",keyup:"onKeyUp",keydown:"onKeyDown",touchstart:"onTouchStart",touchmove:"onTouchMove",touchend:"onTouchEnd",tap:"onTap"},Ws=Object.keys(ll);function Fl(b){var P=Object.keys(b);return function(U,tt){tt===void 0&&(tt={});var lt={},ht=P.reduce(function(vt,Vt){return vt[Vt]=b[Vt],vt},new Be(U));return{start:function(){var vt=this;lt=ht.onSetup(tt),Ws.forEach(function(Vt){var Zt,se=ll[Vt],ae=function(){return!1};b[se]&&(ae=function(){return!0}),vt.on(Vt,ae,(Zt=se,function(ne){return ht[Zt](lt,ne)}))})},stop:function(){ht.onStop(lt)},trash:function(){ht.onTrash(lt)},combineFeatures:function(){ht.onCombineFeatures(lt)},uncombineFeatures:function(){ht.onUncombineFeatures(lt)},render:function(vt,Vt){ht.toDisplayFeatures(lt,vt,Vt)}}}}function Qi(b){return[].concat(b).filter(function(P){return P!==void 0})}function ul(){var b=this;if(!(b.ctx.map&&b.ctx.map.getSource(Z.HOT)!==void 0))return Zt();var P=b.ctx.events.currentModeName();b.ctx.ui.queueMapClasses({mode:P});var U=[],tt=[];b.isDirty?tt=b.getAllIds():(U=b.getChangedIds().filter(function(se){return b.get(se)!==void 0}),tt=b.sources.hot.filter(function(se){return se.properties.id&&U.indexOf(se.properties.id)===-1&&b.get(se.properties.id)!==void 0}).map(function(se){return se.properties.id})),b.sources.hot=[];var lt=b.sources.cold.length;b.sources.cold=b.isDirty?[]:b.sources.cold.filter(function(se){var ae=se.properties.id||se.properties.parent;return U.indexOf(ae)===-1});var ht=lt!==b.sources.cold.length||tt.length>0;function vt(se,ae){var ne=b.get(se).internal(P);b.ctx.events.currentModeRender(ne,function(Ge){b.sources[ae].push(Ge)})}if(U.forEach(function(se){return vt(se,"hot")}),tt.forEach(function(se){return vt(se,"cold")}),ht&&b.ctx.map.getSource(Z.COLD).setData({type:xt.FEATURE_COLLECTION,features:b.sources.cold}),b.ctx.map.getSource(Z.HOT).setData({type:xt.FEATURE_COLLECTION,features:b.sources.hot}),b._emitSelectionChange&&(b.ctx.map.fire(Nt.SELECTION_CHANGE,{features:b.getSelected().map(function(se){return se.toGeoJSON()}),points:b.getSelectedCoordinates().map(function(se){return{type:xt.FEATURE,properties:{},geometry:{type:xt.POINT,coordinates:se.coordinates}}})}),b._emitSelectionChange=!1),b._deletedFeaturesToEmit.length){var Vt=b._deletedFeaturesToEmit.map(function(se){return se.toGeoJSON()});b._deletedFeaturesToEmit=[],b.ctx.map.fire(Nt.DELETE,{features:Vt})}function Zt(){b.isDirty=!1,b.clearChangedIds()}Zt(),b.ctx.map.fire(Nt.RENDER,{})}function Sn(b){var P,U=this;this._features={},this._featureIds=new je,this._selectedFeatureIds=new je,this._selectedCoordinates=[],this._changedFeatureIds=new je,this._deletedFeaturesToEmit=[],this._emitSelectionChange=!1,this._mapInitialConfig={},this.ctx=b,this.sources={hot:[],cold:[]},this.render=function(){P||(P=requestAnimationFrame(function(){P=null,ul.call(U)}))},this.isDirty=!1}function Cs(b,P){var U=b._selectedCoordinates.filter(function(tt){return b._selectedFeatureIds.has(tt.feature_id)});b._selectedCoordinates.length===U.length||P.silent||(b._emitSelectionChange=!0),b._selectedCoordinates=U}Sn.prototype.createRenderBatch=function(){var b=this,P=this.render,U=0;return this.render=function(){U++},function(){b.render=P,U>0&&b.render()}},Sn.prototype.setDirty=function(){return this.isDirty=!0,this},Sn.prototype.featureChanged=function(b){return this._changedFeatureIds.add(b),this},Sn.prototype.getChangedIds=function(){return this._changedFeatureIds.values()},Sn.prototype.clearChangedIds=function(){return this._changedFeatureIds.clear(),this},Sn.prototype.getAllIds=function(){return this._featureIds.values()},Sn.prototype.add=function(b){return this.featureChanged(b.id),this._features[b.id]=b,this._featureIds.add(b.id),this},Sn.prototype.delete=function(b,P){var U=this;return P===void 0&&(P={}),Qi(b).forEach(function(tt){U._featureIds.has(tt)&&(U._featureIds.delete(tt),U._selectedFeatureIds.delete(tt),P.silent||U._deletedFeaturesToEmit.indexOf(U._features[tt])===-1&&U._deletedFeaturesToEmit.push(U._features[tt]),delete U._features[tt],U.isDirty=!0)}),Cs(this,P),this},Sn.prototype.get=function(b){return this._features[b]},Sn.prototype.getAll=function(){var b=this;return Object.keys(this._features).map(function(P){return b._features[P]})},Sn.prototype.select=function(b,P){var U=this;return P===void 0&&(P={}),Qi(b).forEach(function(tt){U._selectedFeatureIds.has(tt)||(U._selectedFeatureIds.add(tt),U._changedFeatureIds.add(tt),P.silent||(U._emitSelectionChange=!0))}),this},Sn.prototype.deselect=function(b,P){var U=this;return P===void 0&&(P={}),Qi(b).forEach(function(tt){U._selectedFeatureIds.has(tt)&&(U._selectedFeatureIds.delete(tt),U._changedFeatureIds.add(tt),P.silent||(U._emitSelectionChange=!0))}),Cs(this,P),this},Sn.prototype.clearSelected=function(b){return b===void 0&&(b={}),this.deselect(this._selectedFeatureIds.values(),{silent:b.silent}),this},Sn.prototype.setSelected=function(b,P){var U=this;return P===void 0&&(P={}),b=Qi(b),this.deselect(this._selectedFeatureIds.values().filter(function(tt){return b.indexOf(tt)===-1}),{silent:P.silent}),this.select(b.filter(function(tt){return!U._selectedFeatureIds.has(tt)}),{silent:P.silent}),this},Sn.prototype.setSelectedCoordinates=function(b){return this._selectedCoordinates=b,this._emitSelectionChange=!0,this},Sn.prototype.clearSelectedCoordinates=function(){return this._selectedCoordinates=[],this._emitSelectionChange=!0,this},Sn.prototype.getSelectedIds=function(){return this._selectedFeatureIds.values()},Sn.prototype.getSelected=function(){var b=this;return this._selectedFeatureIds.values().map(function(P){return b.get(P)})},Sn.prototype.getSelectedCoordinates=function(){var b=this;return this._selectedCoordinates.map(function(P){return{coordinates:b.get(P.feature_id).getCoordinate(P.coord_path)}})},Sn.prototype.isSelected=function(b){return this._selectedFeatureIds.has(b)},Sn.prototype.setFeatureProperty=function(b,P,U){this.get(b).setProperty(P,U),this.featureChanged(b)},Sn.prototype.storeMapConfig=function(){var b=this;De.forEach(function(P){b.ctx.map[P]&&(b._mapInitialConfig[P]=b.ctx.map[P].isEnabled())})},Sn.prototype.restoreMapConfig=function(){var b=this;Object.keys(this._mapInitialConfig).forEach(function(P){b._mapInitialConfig[P]?b.ctx.map[P].enable():b.ctx.map[P].disable()})},Sn.prototype.getInitialConfigValue=function(b){return this._mapInitialConfig[b]===void 0||this._mapInitialConfig[b]};var Js=function(){for(var b=arguments,P={},U=0;U=48&&zt<=57)};function Ze(zt,ye,Tn){Tn===void 0&&(Tn={}),Ge.stop();var er=Vt[zt];if(er===void 0)throw new Error(zt+" is not valid");ne=zt;var ur=er(vt,ye);Ge=i(ur,vt),Tn.silent||vt.map.fire(Nt.MODE_CHANGE,{mode:zt}),vt.store.setDirty(),vt.store.render()}ae.keydown=function(zt){(zt.srcElement||zt.target).classList.contains("mapboxgl-canvas")&&(zt.keyCode!==8&&zt.keyCode!==46||!vt.options.controls.trash?tr(zt.keyCode)?Ge.keydown(zt):zt.keyCode===49&&vt.options.controls.point?Ze(wt.DRAW_POINT):zt.keyCode===50&&vt.options.controls.line_string?Ze(wt.DRAW_LINE_STRING):zt.keyCode===51&&vt.options.controls.polygon&&Ze(wt.DRAW_POLYGON):(zt.preventDefault(),Ge.trash()))},ae.keyup=function(zt){tr(zt.keyCode)&&Ge.keyup(zt)},ae.zoomend=function(){vt.store.changeZoom()},ae.data=function(zt){if(zt.dataType==="style"){var ye=vt.setup,Tn=vt.map,er=vt.options,ur=vt.store;er.styles.some(function(Oi){return Tn.getLayer(Oi.id)})||(ye.addLayers(),ur.setDirty(),ur.render())}};var xr={trash:!1,combineFeatures:!1,uncombineFeatures:!1};return{start:function(){ne=vt.options.defaultMode,Ge=i(Vt[ne](vt),vt)},changeMode:Ze,actionable:function(zt){var ye=!1;Object.keys(zt).forEach(function(Tn){if(xr[Tn]===void 0)throw new Error("Invalid action type");xr[Tn]!==zt[Tn]&&(ye=!0),xr[Tn]=zt[Tn]}),ye&&vt.map.fire(Nt.ACTIONABLE,{actions:xr})},currentModeName:function(){return ne},currentModeRender:function(zt,ye){return Ge.render(zt,ye)},fire:function(zt,ye){ae[zt]&&ae[zt](ye)},addEventListeners:function(){vt.map.on("mousemove",ae.mousemove),vt.map.on("mousedown",ae.mousedown),vt.map.on("mouseup",ae.mouseup),vt.map.on("data",ae.data),vt.map.on("touchmove",ae.touchmove),vt.map.on("touchstart",ae.touchstart),vt.map.on("touchend",ae.touchend),vt.container.addEventListener("mouseout",ae.mouseout),vt.options.keybindings&&(vt.container.addEventListener("keydown",ae.keydown),vt.container.addEventListener("keyup",ae.keyup))},removeEventListeners:function(){vt.map.off("mousemove",ae.mousemove),vt.map.off("mousedown",ae.mousedown),vt.map.off("mouseup",ae.mouseup),vt.map.off("data",ae.data),vt.map.off("touchmove",ae.touchmove),vt.map.off("touchstart",ae.touchstart),vt.map.off("touchend",ae.touchend),vt.container.removeEventListener("mouseout",ae.mouseout),vt.options.keybindings&&(vt.container.removeEventListener("keydown",ae.keydown),vt.container.removeEventListener("keyup",ae.keyup))},trash:function(zt){Ge.trash(zt)},combineFeatures:function(){Ge.combineFeatures()},uncombineFeatures:function(){Ge.uncombineFeatures()},getMode:function(){return ne}}}(b),b.ui=function(vt){var Vt={},Zt=null,se={mode:null,feature:null,mouse:null},ae={mode:null,feature:null,mouse:null};function ne(zt){ae=At(ae,zt)}function Ge(){var zt,ye;if(vt.container){var Tn=[],er=[];Di.forEach(function(ur){ae[ur]!==se[ur]&&(Tn.push(ur+"-"+se[ur]),ae[ur]!==null&&er.push(ur+"-"+ae[ur]))}),Tn.length>0&&(zt=vt.container.classList).remove.apply(zt,Tn),er.length>0&&(ye=vt.container.classList).add.apply(ye,er),se=At(se,ae)}}function tr(zt,ye){ye===void 0&&(ye={});var Tn=document.createElement("button");return Tn.className=j.CONTROL_BUTTON+" "+ye.className,Tn.setAttribute("title",ye.title),ye.container.appendChild(Tn),Tn.addEventListener("click",function(er){if(er.preventDefault(),er.stopPropagation(),er.target===Zt)return Ze(),void ye.onDeactivate();xr(zt),ye.onActivate()},!0),Tn}function Ze(){Zt&&(Zt.classList.remove(j.ACTIVE_BUTTON),Zt=null)}function xr(zt){Ze();var ye=Vt[zt];ye&&ye&&zt!=="trash"&&(ye.classList.add(j.ACTIVE_BUTTON),Zt=ye)}return{setActiveButton:xr,queueMapClasses:ne,updateMapClasses:Ge,clearMapClasses:function(){ne({mode:null,feature:null,mouse:null}),Ge()},addButtons:function(){var zt=vt.options.controls,ye=document.createElement("div");return ye.className=j.CONTROL_GROUP+" "+j.CONTROL_BASE,zt&&(zt[pt.LINE]&&(Vt[pt.LINE]=tr(pt.LINE,{container:ye,className:j.CONTROL_BUTTON_LINE,title:"LineString tool "+(vt.options.keybindings?"(l)":""),onActivate:function(){return vt.events.changeMode(wt.DRAW_LINE_STRING)},onDeactivate:function(){return vt.events.trash()}})),zt[pt.POLYGON]&&(Vt[pt.POLYGON]=tr(pt.POLYGON,{container:ye,className:j.CONTROL_BUTTON_POLYGON,title:"Polygon tool "+(vt.options.keybindings?"(p)":""),onActivate:function(){return vt.events.changeMode(wt.DRAW_POLYGON)},onDeactivate:function(){return vt.events.trash()}})),zt[pt.POINT]&&(Vt[pt.POINT]=tr(pt.POINT,{container:ye,className:j.CONTROL_BUTTON_POINT,title:"Marker tool "+(vt.options.keybindings?"(m)":""),onActivate:function(){return vt.events.changeMode(wt.DRAW_POINT)},onDeactivate:function(){return vt.events.trash()}})),zt.trash&&(Vt.trash=tr("trash",{container:ye,className:j.CONTROL_BUTTON_TRASH,title:"Delete",onActivate:function(){vt.events.trash()}})),zt.combine_features&&(Vt.combine_features=tr("combineFeatures",{container:ye,className:j.CONTROL_BUTTON_COMBINE_FEATURES,title:"Combine",onActivate:function(){vt.events.combineFeatures()}})),zt.uncombine_features&&(Vt.uncombine_features=tr("uncombineFeatures",{container:ye,className:j.CONTROL_BUTTON_UNCOMBINE_FEATURES,title:"Uncombine",onActivate:function(){vt.events.uncombineFeatures()}}))),ye},removeButtons:function(){Object.keys(Vt).forEach(function(zt){var ye=Vt[zt];ye.parentNode&&ye.parentNode.removeChild(ye),delete Vt[zt]})}}}(b),b.container=lt.getContainer(),b.store=new Sn(b),P=b.ui.addButtons(),b.options.boxSelect&&(b.boxZoomInitial=lt.boxZoom.isEnabled(),lt.boxZoom.disable(),lt.dragPan.disable(),lt.dragPan.enable()),lt.loaded()?tt.connect():(lt.on("load",tt.connect),U=setInterval(function(){lt.loaded()&&tt.connect()},16)),b.events.start(),P},addLayers:function(){b.map.addSource(Z.COLD,{data:{type:xt.FEATURE_COLLECTION,features:[]},type:"geojson"}),b.map.addSource(Z.HOT,{data:{type:xt.FEATURE_COLLECTION,features:[]},type:"geojson"}),b.options.styles.forEach(function(lt){b.map.addLayer(lt)}),b.store.setDirty(!0),b.store.render()},removeLayers:function(){b.options.styles.forEach(function(lt){b.map.getLayer(lt.id)&&b.map.removeLayer(lt.id)}),b.map.getSource(Z.COLD)&&b.map.removeSource(Z.COLD),b.map.getSource(Z.HOT)&&b.map.removeSource(Z.HOT)}};return b.setup=tt,tt}var Dn=[{id:"gl-draw-polygon-fill-inactive",type:"fill",filter:["all",["==","active","false"],["==","$type","Polygon"],["!=","mode","static"]],paint:{"fill-color":"#3bb2d0","fill-outline-color":"#3bb2d0","fill-opacity":.1}},{id:"gl-draw-polygon-fill-active",type:"fill",filter:["all",["==","active","true"],["==","$type","Polygon"]],paint:{"fill-color":"#fbb03b","fill-outline-color":"#fbb03b","fill-opacity":.1}},{id:"gl-draw-polygon-midpoint",type:"circle",filter:["all",["==","$type","Point"],["==","meta","midpoint"]],paint:{"circle-radius":3,"circle-color":"#fbb03b"}},{id:"gl-draw-polygon-stroke-inactive",type:"line",filter:["all",["==","active","false"],["==","$type","Polygon"],["!=","mode","static"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#3bb2d0","line-width":2}},{id:"gl-draw-polygon-stroke-active",type:"line",filter:["all",["==","active","true"],["==","$type","Polygon"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#fbb03b","line-dasharray":[.2,2],"line-width":2}},{id:"gl-draw-line-inactive",type:"line",filter:["all",["==","active","false"],["==","$type","LineString"],["!=","mode","static"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#3bb2d0","line-width":2}},{id:"gl-draw-line-active",type:"line",filter:["all",["==","$type","LineString"],["==","active","true"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#fbb03b","line-dasharray":[.2,2],"line-width":2}},{id:"gl-draw-polygon-and-line-vertex-stroke-inactive",type:"circle",filter:["all",["==","meta","vertex"],["==","$type","Point"],["!=","mode","static"]],paint:{"circle-radius":5,"circle-color":"#fff"}},{id:"gl-draw-polygon-and-line-vertex-inactive",type:"circle",filter:["all",["==","meta","vertex"],["==","$type","Point"],["!=","mode","static"]],paint:{"circle-radius":3,"circle-color":"#fbb03b"}},{id:"gl-draw-point-point-stroke-inactive",type:"circle",filter:["all",["==","active","false"],["==","$type","Point"],["==","meta","feature"],["!=","mode","static"]],paint:{"circle-radius":5,"circle-opacity":1,"circle-color":"#fff"}},{id:"gl-draw-point-inactive",type:"circle",filter:["all",["==","active","false"],["==","$type","Point"],["==","meta","feature"],["!=","mode","static"]],paint:{"circle-radius":3,"circle-color":"#3bb2d0"}},{id:"gl-draw-point-stroke-active",type:"circle",filter:["all",["==","$type","Point"],["==","active","true"],["!=","meta","midpoint"]],paint:{"circle-radius":7,"circle-color":"#fff"}},{id:"gl-draw-point-active",type:"circle",filter:["all",["==","$type","Point"],["!=","meta","midpoint"],["==","active","true"]],paint:{"circle-radius":5,"circle-color":"#fbb03b"}},{id:"gl-draw-polygon-fill-static",type:"fill",filter:["all",["==","mode","static"],["==","$type","Polygon"]],paint:{"fill-color":"#404040","fill-outline-color":"#404040","fill-opacity":.1}},{id:"gl-draw-polygon-stroke-static",type:"line",filter:["all",["==","mode","static"],["==","$type","Polygon"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#404040","line-width":2}},{id:"gl-draw-line-static",type:"line",filter:["all",["==","mode","static"],["==","$type","LineString"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#404040","line-width":2}},{id:"gl-draw-point-static",type:"circle",filter:["all",["==","mode","static"],["==","$type","Point"]],paint:{"circle-radius":5,"circle-color":"#404040"}}];function ln(b){return function(P){var U=P.featureTarget;return!!U&&!!U.properties&&U.properties.meta===b}}function Fo(b){return!!b.originalEvent&&!!b.originalEvent.shiftKey&&b.originalEvent.button===0}function _o(b){return!!b.featureTarget&&!!b.featureTarget.properties&&b.featureTarget.properties.active===jt.ACTIVE&&b.featureTarget.properties.meta===Ut.FEATURE}function Bo(b){return!!b.featureTarget&&!!b.featureTarget.properties&&b.featureTarget.properties.active===jt.INACTIVE&&b.featureTarget.properties.meta===Ut.FEATURE}function Ra(b){return b.featureTarget===void 0}function Ks(b){return!!b.featureTarget&&!!b.featureTarget.properties&&b.featureTarget.properties.meta===Ut.FEATURE}function yo(b){var P=b.featureTarget;return!!P&&!!P.properties&&P.properties.meta===Ut.VERTEX}function ss(b){return!!b.originalEvent&&b.originalEvent.shiftKey===!0}function Ht(b){return b.keyCode===27}function to(b){return b.keyCode===13}var lr=Object.freeze({__proto__:null,isOfMetaType:ln,isShiftMousedown:Fo,isActiveFeature:_o,isInactiveFeature:Bo,noTarget:Ra,isFeature:Ks,isVertex:yo,isShiftDown:ss,isEscapeKey:Ht,isEnterKey:to,isTrue:function(){return!0}}),ka=Ni;function Ni(b,P){this.x=b,this.y=P}Ni.prototype={clone:function(){return new Ni(this.x,this.y)},add:function(b){return this.clone()._add(b)},sub:function(b){return this.clone()._sub(b)},multByPoint:function(b){return this.clone()._multByPoint(b)},divByPoint:function(b){return this.clone()._divByPoint(b)},mult:function(b){return this.clone()._mult(b)},div:function(b){return this.clone()._div(b)},rotate:function(b){return this.clone()._rotate(b)},rotateAround:function(b,P){return this.clone()._rotateAround(b,P)},matMult:function(b){return this.clone()._matMult(b)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(b){return this.x===b.x&&this.y===b.y},dist:function(b){return Math.sqrt(this.distSqr(b))},distSqr:function(b){var P=b.x-this.x,U=b.y-this.y;return P*P+U*U},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(b){return Math.atan2(this.y-b.y,this.x-b.x)},angleWith:function(b){return this.angleWithSep(b.x,b.y)},angleWithSep:function(b,P){return Math.atan2(this.x*P-this.y*b,this.x*b+this.y*P)},_matMult:function(b){var P=b[0]*this.x+b[1]*this.y,U=b[2]*this.x+b[3]*this.y;return this.x=P,this.y=U,this},_add:function(b){return this.x+=b.x,this.y+=b.y,this},_sub:function(b){return this.x-=b.x,this.y-=b.y,this},_mult:function(b){return this.x*=b,this.y*=b,this},_div:function(b){return this.x/=b,this.y/=b,this},_multByPoint:function(b){return this.x*=b.x,this.y*=b.y,this},_divByPoint:function(b){return this.x/=b.x,this.y/=b.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var b=this.y;return this.y=this.x,this.x=-b,this},_rotate:function(b){var P=Math.cos(b),U=Math.sin(b),tt=P*this.x-U*this.y,lt=U*this.x+P*this.y;return this.x=tt,this.y=lt,this},_rotateAround:function(b,P){var U=Math.cos(b),tt=Math.sin(b),lt=P.x+U*(this.x-P.x)-tt*(this.y-P.y),ht=P.y+tt*(this.x-P.x)+U*(this.y-P.y);return this.x=lt,this.y=ht,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},Ni.convert=function(b){return b instanceof Ni?b:Array.isArray(b)?new Ni(b[0],b[1]):b};var Jt=a(ka);function Xe(b,P){var U=P.getBoundingClientRect();return new Jt(b.clientX-U.left-(P.clientLeft||0),b.clientY-U.top-(P.clientTop||0))}function Le(b,P,U,tt){return{type:xt.FEATURE,properties:{meta:Ut.VERTEX,parent:b,coord_path:U,active:tt?jt.ACTIVE:jt.INACTIVE},geometry:{type:xt.POINT,coordinates:P}}}function pi(b,P,U){var tt=P.geometry.coordinates,lt=U.geometry.coordinates;if(tt[1]>85||tt[1]<_e||lt[1]>85||lt[1]<_e)return null;var ht={lng:(tt[0]+lt[0])/2,lat:(tt[1]+lt[1])/2};return{type:xt.FEATURE,properties:{meta:Ut.MIDPOINT,parent:b,lng:ht.lng,lat:ht.lat,coord_path:U.properties.coord_path},geometry:{type:xt.POINT,coordinates:[ht.lng,ht.lat]}}}function eo(b,P,U){P===void 0&&(P={}),U===void 0&&(U=null);var tt,lt=b.geometry,ht=lt.type,vt=lt.coordinates,Vt=b.properties&&b.properties.id,Zt=[];function se(ne,Ge){var tr="",Ze=null;ne.forEach(function(xr,zt){var ye=Ge!=null?Ge+"."+zt:String(zt),Tn=Le(Vt,xr,ye,ae(ye));if(P.midpoints&&Ze){var er=pi(Vt,Ze,Tn);er&&Zt.push(er)}Ze=Tn;var ur=JSON.stringify(xr);tr!==ur&&Zt.push(Tn),zt===0&&(tr=ur)})}function ae(ne){return!!P.selectedPaths&&P.selectedPaths.indexOf(ne)!==-1}return ht===xt.POINT?Zt.push(Le(Vt,vt,U,ae(U))):ht===xt.POLYGON?vt.forEach(function(ne,Ge){se(ne,U!==null?U+"."+Ge:String(Ge))}):ht===xt.LINE_STRING?se(vt,U):ht.indexOf(xt.MULTI_PREFIX)===0&&(tt=ht.replace(xt.MULTI_PREFIX,""),vt.forEach(function(ne,Ge){var tr={type:xt.FEATURE,properties:b.properties,geometry:{type:tt,coordinates:ne}};Zt=Zt.concat(eo(tr,P,Ge))})),Zt}var Ce={enable:function(b){setTimeout(function(){b.map&&b.map.doubleClickZoom&&b._ctx&&b._ctx.store&&b._ctx.store.getInitialConfigValue&&b._ctx.store.getInitialConfigValue("doubleClickZoom")&&b.map.doubleClickZoom.enable()},0)},disable:function(b){setTimeout(function(){b.map&&b.map.doubleClickZoom&&b.map.doubleClickZoom.disable()},0)}},vo={exports:{}},J=function(b){if(!b||!b.type)return null;var P=k[b.type];if(!P)return null;if(P==="geometry")return{type:"FeatureCollection",features:[{type:"Feature",properties:{},geometry:b}]};if(P==="feature")return{type:"FeatureCollection",features:[b]};if(P==="featurecollection")return b},k={Point:"geometry",MultiPoint:"geometry",LineString:"geometry",MultiLineString:"geometry",Polygon:"geometry",MultiPolygon:"geometry",GeometryCollection:"geometry",Feature:"feature",FeatureCollection:"featurecollection"},B=a(J),q=Object.freeze({__proto__:null,default:function b(P){switch(P&&P.type||null){case"FeatureCollection":return P.features=P.features.reduce(function(U,tt){return U.concat(b(tt))},[]),P;case"Feature":return P.geometry?b(P.geometry).map(function(U){var tt={type:"Feature",properties:JSON.parse(JSON.stringify(P.properties)),geometry:U};return P.id!==void 0&&(tt.id=P.id),tt}):[P];case"MultiPoint":return P.coordinates.map(function(U){return{type:"Point",coordinates:U}});case"MultiPolygon":return P.coordinates.map(function(U){return{type:"Polygon",coordinates:U}});case"MultiLineString":return P.coordinates.map(function(U){return{type:"LineString",coordinates:U}});case"GeometryCollection":return P.geometries.map(b).reduce(function(U,tt){return U.concat(tt)},[]);case"Point":case"Polygon":case"LineString":return[P]}}}),Q=J,et=c(q),mt=function(b){return function P(U){return Array.isArray(U)&&U.length&&typeof U[0]=="number"?[U]:U.reduce(function(tt,lt){return Array.isArray(lt)&&Array.isArray(lt[0])?tt.concat(P(lt)):(tt.push(lt),tt)},[])}(b)};et instanceof Function||(et=et.default);var ut={exports:{}},ot=ut.exports=function(b){return new ct(b)};function ct(b){this.value=b}function Mt(b,P,U){var tt=[],lt=[],ht=!0;return function vt(Vt){var Zt=U?Dt(Vt):Vt,se={},ae=!0,ne={node:Zt,node_:Vt,path:[].concat(tt),parent:lt[lt.length-1],parents:lt,key:tt.slice(-1)[0],isRoot:tt.length===0,level:tt.length,circular:null,update:function(Ze,xr){ne.isRoot||(ne.parent.node[ne.key]=Ze),ne.node=Ze,xr&&(ae=!1)},delete:function(Ze){delete ne.parent.node[ne.key],Ze&&(ae=!1)},remove:function(Ze){Ne(ne.parent.node)?ne.parent.node.splice(ne.key,1):delete ne.parent.node[ne.key],Ze&&(ae=!1)},keys:null,before:function(Ze){se.before=Ze},after:function(Ze){se.after=Ze},pre:function(Ze){se.pre=Ze},post:function(Ze){se.post=Ze},stop:function(){ht=!1},block:function(){ae=!1}};if(!ht)return ne;function Ge(){if(typeof ne.node=="object"&&ne.node!==null){ne.keys&&ne.node_===ne.node||(ne.keys=Ot(ne.node)),ne.isLeaf=ne.keys.length==0;for(var Ze=0;Ze=P&&this._bbox[3]>=U},We.prototype.intersect=function(b){return this._valid?(P=b instanceof We?b.bbox():b,!(this._bbox[0]>P[2]||this._bbox[2]P[3])):null;var P},We.prototype._fastContains=function(){if(!this._valid)return new Function("return null;");var b="return "+this._bbox[0]+"<= ll[0] &&"+this._bbox[1]+"<= ll[1] &&"+this._bbox[2]+">= ll[0] &&"+this._bbox[3]+">= ll[1]";return new Function("ll",b)},We.prototype.polygon=function(){return this._valid?{type:"Polygon",coordinates:[[[this._bbox[0],this._bbox[1]],[this._bbox[2],this._bbox[1]],[this._bbox[2],this._bbox[3]],[this._bbox[0],this._bbox[3]],[this._bbox[0],this._bbox[1]]]]}:null};var dn=function(b){if(!b)return[];var P=et(Q(b)),U=[];return P.features.forEach(function(tt){tt.geometry&&(U=U.concat(mt(tt.geometry.coordinates)))}),U},un=$e,fi=En,On={features:["FeatureCollection"],coordinates:["Point","MultiPoint","LineString","MultiLineString","Polygon","MultiPolygon"],geometry:["Feature"],geometries:["GeometryCollection"]},Ar=Object.keys(On);function Fr(b){for(var P=fi(),U=dn(b),tt=0;ttU&&(U=ne),Gelt&&(lt=Ge),neVt&&(Vt=Ze)});var Zt=P;return U+Zt.lat>85&&(Zt.lat=85-U),lt+Zt.lat>90&&(Zt.lat=90-lt),tt+Zt.lat<-85&&(Zt.lat=-85-tt),ht+Zt.lat=270&&(Zt.lng-=360*Math.ceil(Math.abs(Zt.lng)/360)),Zt}function ta(b,P){var U=Qs(b.map(function(tt){return tt.toGeoJSON()}),P);b.forEach(function(tt){var lt,ht=tt.getCoordinates(),vt=function(Zt){var se={lng:Zt[0]+U.lng,lat:Zt[1]+U.lat};return[se.lng,se.lat]},Vt=function(Zt){return Zt.map(function(se){return vt(se)})};tt.type===xt.POINT?lt=vt(ht):tt.type===xt.LINE_STRING||tt.type===xt.MULTI_POINT?lt=ht.map(vt):tt.type===xt.POLYGON||tt.type===xt.MULTI_LINE_STRING?lt=ht.map(Vt):tt.type===xt.MULTI_POLYGON&&(lt=ht.map(function(Zt){return Zt.map(function(se){return Vt(se)})})),tt.incomingCoords(lt)})}var Br={onSetup:function(b){var P=this,U={dragMoveLocation:null,boxSelectStartLocation:null,boxSelectElement:void 0,boxSelecting:!1,canBoxSelect:!1,dragMoving:!1,canDragMove:!1,initiallySelectedFeatureIds:b.featureIds||[]};return this.setSelected(U.initiallySelectedFeatureIds.filter(function(tt){return P.getFeature(tt)!==void 0})),this.fireActionable(),this.setActionableState({combineFeatures:!0,uncombineFeatures:!0,trash:!0}),U},fireUpdate:function(){this.map.fire(Nt.UPDATE,{action:Bt.MOVE,features:this.getSelected().map(function(b){return b.toGeoJSON()})})},fireActionable:function(){var b=this,P=this.getSelected(),U=P.filter(function(Vt){return b.isInstanceOf("MultiFeature",Vt)}),tt=!1;if(P.length>1){tt=!0;var lt=P[0].type.replace("Multi","");P.forEach(function(Vt){Vt.type.replace("Multi","")!==lt&&(tt=!1)})}var ht=U.length>0,vt=P.length>0;this.setActionableState({combineFeatures:tt,uncombineFeatures:ht,trash:vt})},getUniqueIds:function(b){return b.length?b.map(function(P){return P.properties.id}).filter(function(P){return P!==void 0}).reduce(function(P,U){return P.add(U),P},new je).values():[]},stopExtendedInteractions:function(b){b.boxSelectElement&&(b.boxSelectElement.parentNode&&b.boxSelectElement.parentNode.removeChild(b.boxSelectElement),b.boxSelectElement=null),this.map.dragPan.enable(),b.boxSelecting=!1,b.canBoxSelect=!1,b.dragMoving=!1,b.canDragMove=!1},onStop:function(){Ce.enable(this)},onMouseMove:function(b,P){return Ks(P)&&b.dragMoving&&this.fireUpdate(),this.stopExtendedInteractions(b),!0},onMouseOut:function(b){return!b.dragMoving||this.fireUpdate()}};Br.onTap=Br.onClick=function(b,P){return Ra(P)?this.clickAnywhere(b,P):ln(Ut.VERTEX)(P)?this.clickOnVertex(b,P):Ks(P)?this.clickOnFeature(b,P):void 0},Br.clickAnywhere=function(b){var P=this,U=this.getSelectedIds();U.length&&(this.clearSelectedFeatures(),U.forEach(function(tt){return P.doRender(tt)})),Ce.enable(this),this.stopExtendedInteractions(b)},Br.clickOnVertex=function(b,P){this.changeMode(wt.DIRECT_SELECT,{featureId:P.featureTarget.properties.parent,coordPath:P.featureTarget.properties.coord_path,startPos:P.lngLat}),this.updateUIClasses({mouse:st.MOVE})},Br.startOnActiveFeature=function(b,P){this.stopExtendedInteractions(b),this.map.dragPan.disable(),this.doRender(P.featureTarget.properties.id),b.canDragMove=!0,b.dragMoveLocation=P.lngLat},Br.clickOnFeature=function(b,P){var U=this;Ce.disable(this),this.stopExtendedInteractions(b);var tt=ss(P),lt=this.getSelectedIds(),ht=P.featureTarget.properties.id,vt=this.isSelected(ht);if(!tt&&vt&&this.getFeature(ht).type!==xt.POINT)return this.changeMode(wt.DIRECT_SELECT,{featureId:ht});vt&&tt?(this.deselect(ht),this.updateUIClasses({mouse:st.POINTER}),lt.length===1&&Ce.enable(this)):!vt&&tt?(this.select(ht),this.updateUIClasses({mouse:st.MOVE})):vt||tt||(lt.forEach(function(Vt){return U.doRender(Vt)}),this.setSelected(ht),this.updateUIClasses({mouse:st.MOVE})),this.doRender(ht)},Br.onMouseDown=function(b,P){return _o(P)?this.startOnActiveFeature(b,P):this.drawConfig.boxSelect&&Fo(P)?this.startBoxSelect(b,P):void 0},Br.startBoxSelect=function(b,P){this.stopExtendedInteractions(b),this.map.dragPan.disable(),b.boxSelectStartLocation=Xe(P.originalEvent,this.map.getContainer()),b.canBoxSelect=!0},Br.onTouchStart=function(b,P){if(_o(P))return this.startOnActiveFeature(b,P)},Br.onDrag=function(b,P){return b.canDragMove?this.dragMove(b,P):this.drawConfig.boxSelect&&b.canBoxSelect?this.whileBoxSelect(b,P):void 0},Br.whileBoxSelect=function(b,P){b.boxSelecting=!0,this.updateUIClasses({mouse:st.ADD}),b.boxSelectElement||(b.boxSelectElement=document.createElement("div"),b.boxSelectElement.classList.add(j.BOX_SELECT),this.map.getContainer().appendChild(b.boxSelectElement));var U=Xe(P.originalEvent,this.map.getContainer()),tt=Math.min(b.boxSelectStartLocation.x,U.x),lt=Math.max(b.boxSelectStartLocation.x,U.x),ht=Math.min(b.boxSelectStartLocation.y,U.y),vt=Math.max(b.boxSelectStartLocation.y,U.y),Vt="translate("+tt+"px, "+ht+"px)";b.boxSelectElement.style.transform=Vt,b.boxSelectElement.style.WebkitTransform=Vt,b.boxSelectElement.style.width=lt-tt+"px",b.boxSelectElement.style.height=vt-ht+"px"},Br.dragMove=function(b,P){b.dragMoving=!0,P.originalEvent.stopPropagation();var U={lng:P.lngLat.lng-b.dragMoveLocation.lng,lat:P.lngLat.lat-b.dragMoveLocation.lat};ta(this.getSelected(),U),b.dragMoveLocation=P.lngLat},Br.onTouchEnd=Br.onMouseUp=function(b,P){var U=this;if(b.dragMoving)this.fireUpdate();else if(b.boxSelecting){var tt=[b.boxSelectStartLocation,Xe(P.originalEvent,this.map.getContainer())],lt=this.featuresAt(null,tt,"click"),ht=this.getUniqueIds(lt).filter(function(vt){return!U.isSelected(vt)});ht.length&&(this.select(ht),ht.forEach(function(vt){return U.doRender(vt)}),this.updateUIClasses({mouse:st.MOVE}))}this.stopExtendedInteractions(b)},Br.toDisplayFeatures=function(b,P,U){P.properties.active=this.isSelected(P.properties.id)?jt.ACTIVE:jt.INACTIVE,U(P),this.fireActionable(),P.properties.active===jt.ACTIVE&&P.geometry.type!==xt.POINT&&eo(P).forEach(U)},Br.onTrash=function(){this.deleteFeature(this.getSelectedIds()),this.fireActionable()},Br.onCombineFeatures=function(){var b=this.getSelected();if(!(b.length===0||b.length<2)){for(var P=[],U=[],tt=b[0].type.replace("Multi",""),lt=0;lt1){var vt=this.newFeature({type:xt.FEATURE,properties:U[0].properties,geometry:{type:"Multi"+tt,coordinates:P}});this.addFeature(vt),this.deleteFeature(this.getSelectedIds(),{silent:!0}),this.setSelected([vt.id]),this.map.fire(Nt.COMBINE_FEATURES,{createdFeatures:[vt.toGeoJSON()],deletedFeatures:U})}this.fireActionable()}},Br.onUncombineFeatures=function(){var b=this,P=this.getSelected();if(P.length!==0){for(var U=[],tt=[],lt=function(vt){var Vt=P[vt];b.isInstanceOf("MultiFeature",Vt)&&(Vt.getFeatures().forEach(function(Zt){b.addFeature(Zt),Zt.properties=Vt.properties,U.push(Zt.toGeoJSON()),b.select([Zt.id])}),b.deleteFeature(Vt.id,{silent:!0}),tt.push(Vt.toGeoJSON()))},ht=0;ht1&&this.map.fire(Nt.UNCOMBINE_FEATURES,{createdFeatures:U,deletedFeatures:tt}),this.fireActionable()}};var In=ln(Ut.VERTEX),Iu=ln(Ut.MIDPOINT),Vo={fireUpdate:function(){this.map.fire(Nt.UPDATE,{action:Bt.CHANGE_COORDINATES,features:this.getSelected().map(function(b){return b.toGeoJSON()})})},fireActionable:function(b){this.setActionableState({combineFeatures:!1,uncombineFeatures:!1,trash:b.selectedCoordPaths.length>0})},startDragging:function(b,P){this.map.dragPan.disable(),b.canDragMove=!0,b.dragMoveLocation=P.lngLat},stopDragging:function(b){this.map.dragPan.enable(),b.dragMoving=!1,b.canDragMove=!1,b.dragMoveLocation=null},onVertex:function(b,P){this.startDragging(b,P);var U=P.featureTarget.properties,tt=b.selectedCoordPaths.indexOf(U.coord_path);ss(P)||tt!==-1?ss(P)&&tt===-1&&b.selectedCoordPaths.push(U.coord_path):b.selectedCoordPaths=[U.coord_path];var lt=this.pathsToCoordinates(b.featureId,b.selectedCoordPaths);this.setSelectedCoordinates(lt)},onMidpoint:function(b,P){this.startDragging(b,P);var U=P.featureTarget.properties;b.feature.addCoordinate(U.coord_path,U.lng,U.lat),this.fireUpdate(),b.selectedCoordPaths=[U.coord_path]},pathsToCoordinates:function(b,P){return P.map(function(U){return{feature_id:b,coord_path:U}})},onFeature:function(b,P){b.selectedCoordPaths.length===0?this.startDragging(b,P):this.stopDragging(b)},dragFeature:function(b,P,U){ta(this.getSelected(),U),b.dragMoveLocation=P.lngLat},dragVertex:function(b,P,U){for(var tt=b.selectedCoordPaths.map(function(Vt){return b.feature.getCoordinate(Vt)}),lt=Qs(tt.map(function(Vt){return{type:xt.FEATURE,properties:{},geometry:{type:xt.POINT,coordinates:Vt}}}),U),ht=0;ht0?this.dragVertex(b,P,U):this.dragFeature(b,P,U),b.dragMoveLocation=P.lngLat}},Vo.onClick=function(b,P){return Ra(P)?this.clickNoTarget(b,P):_o(P)?this.clickActiveFeature(b,P):Bo(P)?this.clickInactive(b,P):void this.stopDragging(b)},Vo.onTap=function(b,P){return Ra(P)?this.clickNoTarget(b,P):_o(P)?this.clickActiveFeature(b,P):Bo(P)?this.clickInactive(b,P):void 0},Vo.onTouchEnd=Vo.onMouseUp=function(b){b.dragMoving&&this.fireUpdate(),this.stopDragging(b)};var Zn={};function di(b,P){return!!b.lngLat&&b.lngLat.lng===P[0]&&b.lngLat.lat===P[1]}Zn.onSetup=function(){var b=this.newFeature({type:xt.FEATURE,properties:{},geometry:{type:xt.POINT,coordinates:[]}});return this.addFeature(b),this.clearSelectedFeatures(),this.updateUIClasses({mouse:st.ADD}),this.activateUIButton(pt.POINT),this.setActionableState({trash:!0}),{point:b}},Zn.stopDrawingAndRemove=function(b){this.deleteFeature([b.point.id],{silent:!0}),this.changeMode(wt.SIMPLE_SELECT)},Zn.onTap=Zn.onClick=function(b,P){this.updateUIClasses({mouse:st.MOVE}),b.point.updateCoordinate("",P.lngLat.lng,P.lngLat.lat),this.map.fire(Nt.CREATE,{features:[b.point.toGeoJSON()]}),this.changeMode(wt.SIMPLE_SELECT,{featureIds:[b.point.id]})},Zn.onStop=function(b){this.activateUIButton(),b.point.getCoordinate().length||this.deleteFeature([b.point.id],{silent:!0})},Zn.toDisplayFeatures=function(b,P,U){var tt=P.properties.id===b.point.id;if(P.properties.active=tt?jt.ACTIVE:jt.INACTIVE,!tt)return U(P)},Zn.onTrash=Zn.stopDrawingAndRemove,Zn.onKeyUp=function(b,P){if(Ht(P)||to(P))return this.stopDrawingAndRemove(b,P)};var za={onSetup:function(){var b=this.newFeature({type:xt.FEATURE,properties:{},geometry:{type:xt.POLYGON,coordinates:[[]]}});return this.addFeature(b),this.clearSelectedFeatures(),Ce.disable(this),this.updateUIClasses({mouse:st.ADD}),this.activateUIButton(pt.POLYGON),this.setActionableState({trash:!0}),{polygon:b,currentVertexPosition:0}},clickAnywhere:function(b,P){if(b.currentVertexPosition>0&&di(P,b.polygon.coordinates[0][b.currentVertexPosition-1]))return this.changeMode(wt.SIMPLE_SELECT,{featureIds:[b.polygon.id]});this.updateUIClasses({mouse:st.ADD}),b.polygon.updateCoordinate("0."+b.currentVertexPosition,P.lngLat.lng,P.lngLat.lat),b.currentVertexPosition++,b.polygon.updateCoordinate("0."+b.currentVertexPosition,P.lngLat.lng,P.lngLat.lat)},clickOnVertex:function(b){return this.changeMode(wt.SIMPLE_SELECT,{featureIds:[b.polygon.id]})},onMouseMove:function(b,P){b.polygon.updateCoordinate("0."+b.currentVertexPosition,P.lngLat.lng,P.lngLat.lat),yo(P)&&this.updateUIClasses({mouse:st.POINTER})}};za.onTap=za.onClick=function(b,P){return yo(P)?this.clickOnVertex(b,P):this.clickAnywhere(b,P)},za.onKeyUp=function(b,P){Ht(P)?(this.deleteFeature([b.polygon.id],{silent:!0}),this.changeMode(wt.SIMPLE_SELECT)):to(P)&&this.changeMode(wt.SIMPLE_SELECT,{featureIds:[b.polygon.id]})},za.onStop=function(b){this.updateUIClasses({mouse:st.NONE}),Ce.enable(this),this.activateUIButton(),this.getFeature(b.polygon.id)!==void 0&&(b.polygon.removeCoordinate("0."+b.currentVertexPosition),b.polygon.isValid()?this.map.fire(Nt.CREATE,{features:[b.polygon.toGeoJSON()]}):(this.deleteFeature([b.polygon.id],{silent:!0}),this.changeMode(wt.SIMPLE_SELECT,{},{silent:!0})))},za.toDisplayFeatures=function(b,P,U){var tt=P.properties.id===b.polygon.id;if(P.properties.active=tt?jt.ACTIVE:jt.INACTIVE,!tt)return U(P);if(P.geometry.coordinates.length!==0){var lt=P.geometry.coordinates[0].length;if(!(lt<3)){if(P.properties.meta=Ut.FEATURE,U(Le(b.polygon.id,P.geometry.coordinates[0][0],"0.0",!1)),lt>3){var ht=P.geometry.coordinates[0].length-3;U(Le(b.polygon.id,P.geometry.coordinates[0][ht],"0."+ht,!1))}if(lt<=4){var vt=[[P.geometry.coordinates[0][0][0],P.geometry.coordinates[0][0][1]],[P.geometry.coordinates[0][1][0],P.geometry.coordinates[0][1][1]]];if(U({type:xt.FEATURE,properties:P.properties,geometry:{coordinates:vt,type:xt.LINE_STRING}}),lt===3)return}return U(P)}}},za.onTrash=function(b){this.deleteFeature([b.polygon.id],{silent:!0}),this.changeMode(wt.SIMPLE_SELECT)};var Hr={onSetup:function(b){var P,U,tt=(b=b||{}).featureId,lt="forward";if(tt){if(!(P=this.getFeature(tt)))throw new Error("Could not find a feature with the provided featureId");var ht=b.from;if(ht&&ht.type==="Feature"&&ht.geometry&&ht.geometry.type==="Point"&&(ht=ht.geometry),ht&&ht.type==="Point"&&ht.coordinates&&ht.coordinates.length===2&&(ht=ht.coordinates),!ht||!Array.isArray(ht))throw new Error("Please use the `from` property to indicate which point to continue the line from");var vt=P.coordinates.length-1;if(P.coordinates[vt][0]===ht[0]&&P.coordinates[vt][1]===ht[1])U=vt+1,P.addCoordinate.apply(P,[U].concat(P.coordinates[vt]));else{if(P.coordinates[0][0]!==ht[0]||P.coordinates[0][1]!==ht[1])throw new Error("`from` should match the point at either the start or the end of the provided LineString");lt="backwards",U=0,P.addCoordinate.apply(P,[U].concat(P.coordinates[0]))}}else P=this.newFeature({type:xt.FEATURE,properties:{},geometry:{type:xt.LINE_STRING,coordinates:[]}}),U=0,this.addFeature(P);return this.clearSelectedFeatures(),Ce.disable(this),this.updateUIClasses({mouse:st.ADD}),this.activateUIButton(pt.LINE),this.setActionableState({trash:!0}),{line:P,currentVertexPosition:U,direction:lt}},clickAnywhere:function(b,P){if(b.currentVertexPosition>0&&di(P,b.line.coordinates[b.currentVertexPosition-1])||b.direction==="backwards"&&di(P,b.line.coordinates[b.currentVertexPosition+1]))return this.changeMode(wt.SIMPLE_SELECT,{featureIds:[b.line.id]});this.updateUIClasses({mouse:st.ADD}),b.line.updateCoordinate(b.currentVertexPosition,P.lngLat.lng,P.lngLat.lat),b.direction==="forward"?(b.currentVertexPosition++,b.line.updateCoordinate(b.currentVertexPosition,P.lngLat.lng,P.lngLat.lat)):b.line.addCoordinate(0,P.lngLat.lng,P.lngLat.lat)},clickOnVertex:function(b){return this.changeMode(wt.SIMPLE_SELECT,{featureIds:[b.line.id]})},onMouseMove:function(b,P){b.line.updateCoordinate(b.currentVertexPosition,P.lngLat.lng,P.lngLat.lat),yo(P)&&this.updateUIClasses({mouse:st.POINTER})}};Hr.onTap=Hr.onClick=function(b,P){if(yo(P))return this.clickOnVertex(b,P);this.clickAnywhere(b,P)},Hr.onKeyUp=function(b,P){to(P)?this.changeMode(wt.SIMPLE_SELECT,{featureIds:[b.line.id]}):Ht(P)&&(this.deleteFeature([b.line.id],{silent:!0}),this.changeMode(wt.SIMPLE_SELECT))},Hr.onStop=function(b){Ce.enable(this),this.activateUIButton(),this.getFeature(b.line.id)!==void 0&&(b.line.removeCoordinate(""+b.currentVertexPosition),b.line.isValid()?this.map.fire(Nt.CREATE,{features:[b.line.toGeoJSON()]}):(this.deleteFeature([b.line.id],{silent:!0}),this.changeMode(wt.SIMPLE_SELECT,{},{silent:!0})))},Hr.onTrash=function(b){this.deleteFeature([b.line.id],{silent:!0}),this.changeMode(wt.SIMPLE_SELECT)},Hr.toDisplayFeatures=function(b,P,U){var tt=P.properties.id===b.line.id;if(P.properties.active=tt?jt.ACTIVE:jt.INACTIVE,!tt)return U(P);P.geometry.coordinates.length<2||(P.properties.meta=Ut.FEATURE,U(Le(b.line.id,P.geometry.coordinates[b.direction==="forward"?P.geometry.coordinates.length-2:1],""+(b.direction==="forward"?P.geometry.coordinates.length-2:1),!1)),U(P))};var Yr={simple_select:Br,direct_select:Vo,draw_point:Zn,draw_polygon:za,draw_line_string:Hr},Tu={defaultMode:wt.SIMPLE_SELECT,keybindings:!0,touchEnabled:!0,clickBuffer:2,touchBuffer:25,boxSelect:!0,displayControlsDefault:!0,styles:Dn,modes:Yr,controls:{},userProperties:!1},cl={point:!0,line_string:!0,polygon:!0,trash:!0,combine_features:!0,uncombine_features:!0},Kn={point:!1,line_string:!1,polygon:!1,trash:!1,combine_features:!1,uncombine_features:!1};function mn(b,P){return b.map(function(U){return U.source?U:At(U,{id:U.id+"."+P,source:P==="hot"?Z.HOT:Z.COLD})})}var Ps={exports:{}};(function(b,P){var U="__lodash_hash_undefined__",tt=9007199254740991,lt="[object Arguments]",ht="[object Array]",vt="[object Boolean]",Vt="[object Date]",Zt="[object Error]",se="[object Function]",ae="[object Map]",ne="[object Number]",Ge="[object Object]",tr="[object Promise]",Ze="[object RegExp]",xr="[object Set]",zt="[object String]",ye="[object Symbol]",Tn="[object WeakMap]",er="[object ArrayBuffer]",ur="[object DataView]",Oi=/^\[object .+?Constructor\]$/,Cu=/^(?:0|[1-9]\d*)$/,Rn={};Rn["[object Float32Array]"]=Rn["[object Float64Array]"]=Rn["[object Int8Array]"]=Rn["[object Int16Array]"]=Rn["[object Int32Array]"]=Rn["[object Uint8Array]"]=Rn["[object Uint8ClampedArray]"]=Rn["[object Uint16Array]"]=Rn["[object Uint32Array]"]=!0,Rn[lt]=Rn[ht]=Rn[er]=Rn[vt]=Rn[ur]=Rn[Vt]=Rn[Zt]=Rn[se]=Rn[ae]=Rn[ne]=Rn[Ge]=Rn[Ze]=Rn[xr]=Rn[zt]=Rn[Tn]=!1;var hl=typeof Th=="object"&&Th&&Th.Object===Object&&Th,Pu=typeof self=="object"&&self&&self.Object===Object&&self,Ri=hl||Pu||Function("return this")(),As=P&&!P.nodeType&&P,en=As&&b&&!b.nodeType&&b,$l=en&&en.exports===As,Ei=$l&&hl.process,ki=function(){try{return Ei&&Ei.binding&&Ei.binding("util")}catch{}}(),Au=ki&&ki.isTypedArray;function Lu(_t,Lt){for(var ee=-1,Te=_t==null?0:_t.length;++eebr))return!1;var cr=cn.get(_t);if(cr&&cn.get(Lt))return cr==Lt;var Pn=-1,zi=!0,hs=2&ee?new fl:void 0;for(cn.set(_t,Lt),cn.set(Lt,_t);++Pn-1},no.prototype.set=function(_t,Lt){var ee=this.__data__,Te=dl(ee,_t);return Te<0?(++this.size,ee.push([_t,Lt])):ee[Te][1]=Lt,this},ia.prototype.clear=function(){this.size=0,this.__data__={hash:new Cn,map:new(Uo||no),string:new Cn}},ia.prototype.delete=function(_t){var Lt=$u(this,_t).delete(_t);return this.size-=Lt?1:0,Lt},ia.prototype.get=function(_t){return $u(this,_t).get(_t)},ia.prototype.has=function(_t){return $u(this,_t).has(_t)},ia.prototype.set=function(_t,Lt){var ee=$u(this,_t),Te=ee.size;return ee.set(_t,Lt),this.size+=ee.size==Te?0:1,this},fl.prototype.add=fl.prototype.push=function(_t){return this.__data__.set(_t,U),this},fl.prototype.has=function(_t){return this.__data__.has(_t)},$o.prototype.clear=function(){this.__data__=new no,this.size=0},$o.prototype.delete=function(_t){var Lt=this.__data__,ee=Lt.delete(_t);return this.size=Lt.size,ee},$o.prototype.get=function(_t){return this.__data__.get(_t)},$o.prototype.has=function(_t){return this.__data__.has(_t)},$o.prototype.set=function(_t,Lt){var ee=this.__data__;if(ee instanceof no){var Te=ee.__data__;if(!Uo||Te.length<199)return Te.push([_t,Lt]),this.size=++ee.size,this;ee=this.__data__=new ia(Te)}return ee.set(_t,Lt),this.size=ee.size,this};var Gu=Ba?function(_t){return _t==null?[]:(_t=Object(_t),function(Lt,ee){for(var Te=-1,Gn=Lt==null?0:Lt.length,cn=0,gr=[];++Te-1&&_t%1==0&&_t-1&&_t%1==0&&_t<=tt}function Si(_t){var Lt=typeof _t;return _t!=null&&(Lt=="object"||Lt=="function")}function cs(_t){return _t!=null&&typeof _t=="object"}var _l=Au?function(_t){return function(Lt){return _t(Lt)}}(Au):function(_t){return cs(_t)&&aa(_t.length)&&!!Rn[oa(_t)]};function Zu(_t){return(Lt=_t)!=null&&aa(Lt.length)&&!rr(Lt)?Bu(_t):Hl(_t);var Lt}b.exports=function(_t,Lt){return gl(_t,Lt)}})(Ps,Ps.exports);var Qn=a(Ps.exports);function Vl(b,P){return b.length===P.length&&JSON.stringify(b.map(function(U){return U}).sort())===JSON.stringify(P.map(function(U){return U}).sort())}var bo={Polygon:Qr,LineString:dr,Point:qn,MultiPolygon:Jn,MultiLineString:Jn,MultiPoint:Jn},xc=Object.freeze({__proto__:null,CommonSelectors:lr,constrainFeatureMovement:Qs,createMidPoint:pi,createSupplementaryPoints:eo,createVertex:Le,doubleClickZoom:Ce,euclideanDistance:_n,featuresAt:Yt,getFeatureAtAndSetCursors:rn,isClick:Wn,isEventAtCoordinates:di,isTap:Cr,mapEventToBoundingBox:fn,ModeHandler:i,moveFeatures:ta,sortFeatures:ke,stringSetsAreEqual:Vl,StringSet:je,theme:Dn,toDenseArray:Qi}),ea=function(b,P){var U={options:b=function(lt){lt===void 0&&(lt={});var ht=At(lt);return lt.controls||(ht.controls={}),lt.displayControlsDefault===!1?ht.controls=At(Kn,lt.controls):ht.controls=At(cl,lt.controls),(ht=At(Tu,ht)).styles=mn(ht.styles,"cold").concat(mn(ht.styles,"hot")),ht}(b)};P=function(lt,ht){return ht.modes=wt,ht.getFeatureIdsAt=function(vt){return Yt.click({point:vt},null,lt).map(function(Vt){return Vt.properties.id})},ht.getSelectedIds=function(){return lt.store.getSelectedIds()},ht.getSelected=function(){return{type:xt.FEATURE_COLLECTION,features:lt.store.getSelectedIds().map(function(vt){return lt.store.get(vt)}).map(function(vt){return vt.toGeoJSON()})}},ht.getSelectedPoints=function(){return{type:xt.FEATURE_COLLECTION,features:lt.store.getSelectedCoordinates().map(function(vt){return{type:xt.FEATURE,properties:{},geometry:{type:xt.POINT,coordinates:vt.coordinates}}})}},ht.set=function(vt){if(vt.type===void 0||vt.type!==xt.FEATURE_COLLECTION||!Array.isArray(vt.features))throw new Error("Invalid FeatureCollection");var Vt=lt.store.createRenderBatch(),Zt=lt.store.getAllIds().slice(),se=ht.add(vt),ae=new je(se);return(Zt=Zt.filter(function(ne){return!ae.has(ne)})).length&&ht.delete(Zt),Vt(),se},ht.add=function(vt){var Vt=JSON.parse(JSON.stringify(B(vt))).features.map(function(Zt){if(Zt.id=Zt.id||Pr(),Zt.geometry===null)throw new Error("Invalid geometry: null");if(lt.store.get(Zt.id)===void 0||lt.store.get(Zt.id).type!==Zt.geometry.type){var se=bo[Zt.geometry.type];if(se===void 0)throw new Error("Invalid geometry type: "+Zt.geometry.type+".");var ae=new se(lt,Zt);lt.store.add(ae)}else{var ne=lt.store.get(Zt.id);ne.properties=Zt.properties,Qn(ne.properties,Zt.properties)||lt.store.featureChanged(ne.id),Qn(ne.getCoordinates(),Zt.geometry.coordinates)||ne.incomingCoords(Zt.geometry.coordinates)}return Zt.id});return lt.store.render(),Vt},ht.get=function(vt){var Vt=lt.store.get(vt);if(Vt)return Vt.toGeoJSON()},ht.getAll=function(){return{type:xt.FEATURE_COLLECTION,features:lt.store.getAll().map(function(vt){return vt.toGeoJSON()})}},ht.delete=function(vt){return lt.store.delete(vt,{silent:!0}),ht.getMode()!==wt.DIRECT_SELECT||lt.store.getSelectedIds().length?lt.store.render():lt.events.changeMode(wt.SIMPLE_SELECT,void 0,{silent:!0}),ht},ht.deleteAll=function(){return lt.store.delete(lt.store.getAllIds(),{silent:!0}),ht.getMode()===wt.DIRECT_SELECT?lt.events.changeMode(wt.SIMPLE_SELECT,void 0,{silent:!0}):lt.store.render(),ht},ht.changeMode=function(vt,Vt){return Vt===void 0&&(Vt={}),vt===wt.SIMPLE_SELECT&&ht.getMode()===wt.SIMPLE_SELECT?(Vl(Vt.featureIds||[],lt.store.getSelectedIds())||(lt.store.setSelected(Vt.featureIds,{silent:!0}),lt.store.render()),ht):(vt===wt.DIRECT_SELECT&&ht.getMode()===wt.DIRECT_SELECT&&Vt.featureId===lt.store.getSelectedIds()[0]||lt.events.changeMode(vt,Vt,{silent:!0}),ht)},ht.getMode=function(){return lt.events.getMode()},ht.trash=function(){return lt.events.trash({silent:!0}),ht},ht.combineFeatures=function(){return lt.events.combineFeatures({silent:!0}),ht},ht.uncombineFeatures=function(){return lt.events.uncombineFeatures({silent:!0}),ht},ht.setFeatureProperty=function(vt,Vt,Zt){return lt.store.setFeatureProperty(vt,Vt,Zt),ht},ht}(U,P),U.api=P;var tt=mo(U);return P.onAdd=tt.onAdd,P.onRemove=tt.onRemove,P.types=pt,P.options=b,P};function Ul(b){ea(b,this)}return Ul.modes=Yr,Ul.constants=Ve,Ul.lib=xc,Ul})})(tv);var Kb=tv.exports;const md=Jb(Kb),Qb=Re.createContext(null);function t1(t,e){const i=Array.isArray(t)?t[0]:t?t.x:0,a=Array.isArray(t)?t[1]:t?t.y:0,c=Array.isArray(e)?e[0]:e?e.x:0,f=Array.isArray(e)?e[1]:e?e.y:0;return i===c&&a===f}function cu(t,e){if(t===e)return!0;if(!t||!e)return!1;if(Array.isArray(t)){if(!Array.isArray(e)||t.length!==e.length)return!1;for(let i=0;i{let c=null;"interactive"in a&&(c=Object.assign({},a),delete c.interactive);const f=e[a.ref];if(f){c=c||Object.assign({},a),delete c.ref;for(const x of n1)x in f&&(c[x]=f[x])}return c||a});return{...t,layers:i}}var cy={};const hy={version:8,sources:{},layers:[]},py={mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",click:"onClick",dblclick:"onDblClick",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",mouseout:"onMouseOut",contextmenu:"onContextMenu",touchstart:"onTouchStart",touchend:"onTouchEnd",touchmove:"onTouchMove",touchcancel:"onTouchCancel"},Eg={movestart:"onMoveStart",move:"onMove",moveend:"onMoveEnd",dragstart:"onDragStart",drag:"onDrag",dragend:"onDragEnd",zoomstart:"onZoomStart",zoom:"onZoom",zoomend:"onZoomEnd",rotatestart:"onRotateStart",rotate:"onRotate",rotateend:"onRotateEnd",pitchstart:"onPitchStart",pitch:"onPitch",pitchend:"onPitchEnd"},fy={wheel:"onWheel",boxzoomstart:"onBoxZoomStart",boxzoomend:"onBoxZoomEnd",boxzoomcancel:"onBoxZoomCancel",resize:"onResize",load:"onLoad",render:"onRender",idle:"onIdle",remove:"onRemove",data:"onData",styledata:"onStyleData",sourcedata:"onSourceData",error:"onError"},r1=["minZoom","maxZoom","minPitch","maxPitch","maxBounds","projection","renderWorldCopies"],i1=["scrollZoom","boxZoom","dragRotate","dragPan","keyboard","doubleClickZoom","touchZoomRotate","touchPitch"];let Mg=class Dg{constructor(e,i,a){this._map=null,this._internalUpdate=!1,this._inRender=!1,this._hoveredFeatures=null,this._deferredEvents={move:!1,zoom:!1,pitch:!1,rotate:!1},this._onEvent=c=>{const f=this.props[fy[c.type]];f?f(c):c.type==="error"&&console.error(c.error)},this._onPointerEvent=c=>{(c.type==="mousemove"||c.type==="mouseout")&&this._updateHover(c);const f=this.props[py[c.type]];f&&(this.props.interactiveLayerIds&&c.type!=="mouseover"&&c.type!=="mouseout"&&(c.features=this._hoveredFeatures||this._queryRenderedFeatures(c.point)),f(c),delete c.features)},this._onCameraEvent=c=>{if(!this._internalUpdate){const f=this.props[Eg[c.type]];f&&f(c)}c.type in this._deferredEvents&&(this._deferredEvents[c.type]=!1)},this._MapClass=e,this.props=i,this._initialize(a)}get map(){return this._map}get transform(){return this._renderTransform}setProps(e){const i=this.props;this.props=e;const a=this._updateSettings(e,i);a&&this._createShadowTransform(this._map);const c=this._updateSize(e),f=this._updateViewState(e,!0);this._updateStyle(e,i),this._updateStyleComponents(e,i),this._updateHandlers(e,i),(a||c||f&&!this._map.isMoving())&&this.redraw()}static reuse(e,i){const a=Dg.savedMaps.pop();if(!a)return null;const c=a.map,f=c.getContainer();for(i.className=f.className;f.childNodes.length>0;)i.appendChild(f.childNodes[0]);c._container=i;const x=c._resizeObserver;x&&(x.disconnect(),x.observe(i)),a.setProps({...e,styleDiffing:!1}),c.resize();const{initialViewState:u}=e;return u&&(u.bounds?c.fitBounds(u.bounds,{...u.fitBoundsOptions,duration:0}):a._updateViewState(u,!1)),c.isStyleLoaded()?c.fire("load"):c.once("styledata",()=>c.fire("load")),c._update(),a}_initialize(e){const{props:i}=this,{mapStyle:a=hy}=i,c={...i,...i.initialViewState,accessToken:i.mapboxAccessToken||o1()||null,container:e,style:uy(a)},f=c.initialViewState||c.viewState||c;if(Object.assign(c,{center:[f.longitude||0,f.latitude||0],zoom:f.zoom||0,pitch:f.pitch||0,bearing:f.bearing||0}),i.gl){const F=HTMLCanvasElement.prototype.getContext;HTMLCanvasElement.prototype.getContext=()=>(HTMLCanvasElement.prototype.getContext=F,i.gl)}const x=new this._MapClass(c);f.padding&&x.setPadding(f.padding),i.cursor&&(x.getCanvas().style.cursor=i.cursor),this._createShadowTransform(x);const u=x._render;x._render=F=>{this._inRender=!0,u.call(x,F),this._inRender=!1};const A=x._renderTaskQueue.run;x._renderTaskQueue.run=F=>{A.call(x._renderTaskQueue,F),this._onBeforeRepaint()},x.on("render",()=>this._onAfterRepaint());const L=x.fire;x.fire=this._fireEvent.bind(this,L),x.on("resize",()=>{this._renderTransform.resize(x.transform.width,x.transform.height)}),x.on("styledata",()=>{this._updateStyleComponents(this.props,{}),sy(x.transform,this._renderTransform)}),x.on("sourcedata",()=>this._updateStyleComponents(this.props,{}));for(const F in py)x.on(F,this._onPointerEvent);for(const F in Eg)x.on(F,this._onCameraEvent);for(const F in fy)x.on(F,this._onEvent);this._map=x}recycle(){const e=this.map.getContainer().querySelector("[mapboxgl-children]");e==null||e.remove(),Dg.savedMaps.push(this)}destroy(){this._map.remove()}redraw(){const e=this._map;!this._inRender&&e.style&&(e._frame&&(e._frame.cancel(),e._frame=null),e._render())}_createShadowTransform(e){const i=e1(e.transform);e.painter.transform=i,this._renderTransform=i}_updateSize(e){const{viewState:i}=e;if(i){const a=this._map;if(i.width!==a.transform.width||i.height!==a.transform.height)return a.resize(),!0}return!1}_updateViewState(e,i){if(this._internalUpdate)return!1;const a=this._map,c=this._renderTransform,{zoom:f,pitch:x,bearing:u}=c,A=a.isMoving();A&&(c.cameraElevationReference="sea");const L=ly(c,{...ay(a.transform),...e});if(A&&(c.cameraElevationReference="ground"),L&&i){const F=this._deferredEvents;F.move=!0,F.zoom||(F.zoom=f!==c.zoom),F.rotate||(F.rotate=u!==c.bearing),F.pitch||(F.pitch=x!==c.pitch)}return A||ly(a.transform,e),L}_updateSettings(e,i){const a=this._map;let c=!1;for(const f of r1)if(f in e&&!cu(e[f],i[f])){c=!0;const x=a[`set${f[0].toUpperCase()}${f.slice(1)}`];x==null||x.call(a,e[f])}return c}_updateStyle(e,i){if(e.cursor!==i.cursor&&(this._map.getCanvas().style.cursor=e.cursor||""),e.mapStyle!==i.mapStyle){const{mapStyle:a=hy,styleDiffing:c=!0}=e,f={diff:c};return"localIdeographFontFamily"in e&&(f.localIdeographFontFamily=e.localIdeographFontFamily),this._map.setStyle(uy(a),f),!0}return!1}_updateStyleComponents(e,i){const a=this._map;let c=!1;return a.isStyleLoaded()&&("light"in e&&a.setLight&&!cu(e.light,i.light)&&(c=!0,a.setLight(e.light)),"fog"in e&&a.setFog&&!cu(e.fog,i.fog)&&(c=!0,a.setFog(e.fog)),"terrain"in e&&a.setTerrain&&!cu(e.terrain,i.terrain)&&(!e.terrain||a.getSource(e.terrain.source))&&(c=!0,a.setTerrain(e.terrain))),c}_updateHandlers(e,i){var a,c;const f=this._map;let x=!1;for(const u of i1){const A=(a=e[u])!==null&&a!==void 0?a:!0,L=(c=i[u])!==null&&c!==void 0?c:!0;cu(A,L)||(x=!0,A?f[u].enable(A):f[u].disable())}return x}_queryRenderedFeatures(e){const i=this._map,a=i.transform,{interactiveLayerIds:c=[]}=this.props;try{return i.transform=this._renderTransform,i.queryRenderedFeatures(e,{layers:c.filter(i.getLayer.bind(i))})}catch{return[]}finally{i.transform=a}}_updateHover(e){var i;const{props:a}=this;if(a.interactiveLayerIds&&(a.onMouseMove||a.onMouseEnter||a.onMouseLeave)){const c=e.type,f=((i=this._hoveredFeatures)===null||i===void 0?void 0:i.length)>0,x=this._queryRenderedFeatures(e.point),u=x.length>0;!u&&f&&(e.type="mouseleave",this._onPointerEvent(e)),this._hoveredFeatures=x,u&&!f&&(e.type="mouseenter",this._onPointerEvent(e)),e.type=c}else this._hoveredFeatures=null}_fireEvent(e,i,a){const c=this._map,f=c.transform,x=typeof i=="string"?i:i.type;return x==="move"&&this._updateViewState(this.props,!1),x in Eg&&(typeof i=="object"&&(i.viewState=ay(f)),this._map.isMoving())?(c.transform=this._renderTransform,e.call(c,i,a),c.transform=f,c):(e.call(c,i,a),c)}_onBeforeRepaint(){const e=this._map;this._internalUpdate=!0;for(const a in this._deferredEvents)this._deferredEvents[a]&&e.fire(a);this._internalUpdate=!1;const i=this._map.transform;e.transform=this._renderTransform,this._onAfterRepaint=()=>{sy(this._renderTransform,i),e.transform=i}}};Mg.savedMaps=[];function o1(){let t=null;if(typeof location<"u"){const e=/access_token=([^&\/]*)/.exec(location.search);t=e&&e[1]}try{t=t||cy.MapboxAccessToken}catch{}try{t=t||cy.REACT_APP_MAPBOX_ACCESS_TOKEN}catch{}return t}const s1=["setMaxBounds","setMinZoom","setMaxZoom","setMinPitch","setMaxPitch","setRenderWorldCopies","setProjection","setStyle","addSource","removeSource","addLayer","removeLayer","setLayerZoomRange","setFilter","setPaintProperty","setLayoutProperty","setLight","setTerrain","setFog","remove"];function a1(t){if(!t)return null;const e=t.map,i={getMap:()=>e,getCenter:()=>t.transform.center,getZoom:()=>t.transform.zoom,getBearing:()=>t.transform.bearing,getPitch:()=>t.transform.pitch,getPadding:()=>t.transform.padding,getBounds:()=>t.transform.getBounds(),project:a=>{const c=e.transform;e.transform=t.transform;const f=e.project(a);return e.transform=c,f},unproject:a=>{const c=e.transform;e.transform=t.transform;const f=e.unproject(a);return e.transform=c,f},queryTerrainElevation:(a,c)=>{const f=e.transform;e.transform=t.transform;const x=e.queryTerrainElevation(a,c);return e.transform=f,x},queryRenderedFeatures:(a,c)=>{const f=e.transform;e.transform=t.transform;const x=e.queryRenderedFeatures(a,c);return e.transform=f,x}};for(const a of l1(e))!(a in i)&&!s1.includes(a)&&(i[a]=e[a].bind(e));return i}function l1(t){const e=new Set;let i=t;for(;i;){for(const a of Object.getOwnPropertyNames(i))a[0]!=="_"&&typeof t[a]=="function"&&a!=="fire"&&a!=="setEventedParent"&&e.add(a);i=Object.getPrototypeOf(i)}return Array.from(e)}const u1=typeof document<"u"?Re.useLayoutEffect:Re.useEffect,c1=["baseApiUrl","maxParallelImageRequests","workerClass","workerCount","workerUrl"];function h1(t,e){for(const a of c1)a in e&&(t[a]=e[a]);const{RTLTextPlugin:i="https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-rtl-text/v0.2.3/mapbox-gl-rtl-text.js"}=e;i&&t.getRTLTextPluginStatus&&t.getRTLTextPluginStatus()==="unavailable"&&t.setRTLTextPlugin(i,a=>{a&&console.error(a)},!0)}const _d=Re.createContext(null);function p1(t,e,i){const a=Re.useContext(Qb),[c,f]=Re.useState(null),x=Re.useRef(),{current:u}=Re.useRef({mapLib:null,map:null});Re.useEffect(()=>{const F=t.mapLib;let j=!0,Z;return Promise.resolve(F||i).then(st=>{if(!j)return;if(!st)throw new Error("Invalid mapLib");const pt="Map"in st?st:st.default;if(!pt.Map)throw new Error("Invalid mapLib");if(h1(pt,t),!pt.supported||pt.supported(t))t.reuseMaps&&(Z=Mg.reuse(t,x.current)),Z||(Z=new Mg(pt.Map,t,x.current)),u.map=a1(Z),u.mapLib=pt,f(Z),a==null||a.onMapMount(u.map,t.id);else throw new Error("Map is not supported by this browser")}).catch(st=>{const{onError:pt}=t;pt?pt({type:"error",target:null,originalEvent:null,error:st}):console.error(st)}),()=>{j=!1,Z&&(a==null||a.onMapUnmount(t.id),t.reuseMaps?Z.recycle():Z.destroy())}},[]),u1(()=>{c&&c.setProps(t)}),Re.useImperativeHandle(e,()=>u.map,[c]);const A=Re.useMemo(()=>({position:"relative",width:"100%",height:"100%",...t.style}),[t.style]),L={height:"100%"};return Re.createElement("div",{id:t.id,ref:x,style:A},c&&Re.createElement(_d.Provider,{value:u},Re.createElement("div",{"mapboxgl-children":"",style:L},t.children)))}const f1=/box|flex|grid|column|lineHeight|fontWeight|opacity|order|tabSize|zIndex/;function Kc(t,e){if(!t||!e)return;const i=t.style;for(const a in e){const c=e[a];Number.isFinite(c)&&!f1.test(a)?i[a]=`${c}px`:i[a]=c}}function d1(t,e){const{map:i,mapLib:a}=Re.useContext(_d),c=Re.useRef({props:t});c.current.props=t;const f=Re.useMemo(()=>{let xt=!1;Re.Children.forEach(t.children,Bt=>{Bt&&(xt=!0)});const wt={...t,element:xt?document.createElement("div"):null},Nt=new a.Marker(wt);return Nt.setLngLat([t.longitude,t.latitude]),Nt.getElement().addEventListener("click",Bt=>{var Ut,jt;(jt=(Ut=c.current.props).onClick)===null||jt===void 0||jt.call(Ut,{type:"click",target:Nt,originalEvent:Bt})}),Nt.on("dragstart",Bt=>{var Ut,jt;const De=Bt;De.lngLat=f.getLngLat(),(jt=(Ut=c.current.props).onDragStart)===null||jt===void 0||jt.call(Ut,De)}),Nt.on("drag",Bt=>{var Ut,jt;const De=Bt;De.lngLat=f.getLngLat(),(jt=(Ut=c.current.props).onDrag)===null||jt===void 0||jt.call(Ut,De)}),Nt.on("dragend",Bt=>{var Ut,jt;const De=Bt;De.lngLat=f.getLngLat(),(jt=(Ut=c.current.props).onDragEnd)===null||jt===void 0||jt.call(Ut,De)}),Nt},[]);Re.useEffect(()=>(f.addTo(i.getMap()),()=>{f.remove()}),[]);const{longitude:x,latitude:u,offset:A,style:L,draggable:F=!1,popup:j=null,rotation:Z=0,rotationAlignment:st="auto",pitchAlignment:pt="auto"}=t;return Re.useEffect(()=>{Kc(f.getElement(),L)},[L]),Re.useImperativeHandle(e,()=>f,[]),(f.getLngLat().lng!==x||f.getLngLat().lat!==u)&&f.setLngLat([x,u]),A&&!t1(f.getOffset(),A)&&f.setOffset(A),f.isDraggable()!==F&&f.setDraggable(F),f.getRotation()!==Z&&f.setRotation(Z),f.getRotationAlignment()!==st&&f.setRotationAlignment(st),f.getPitchAlignment()!==pt&&f.setPitchAlignment(pt),f.getPopup()!==j&&f.setPopup(j),Qy.createPortal(t.children,f.getElement())}Re.memo(Re.forwardRef(d1));function dy(t){return new Set(t?t.trim().split(/\s+/):[])}function g1(t,e){const{map:i,mapLib:a}=Re.useContext(_d),c=Re.useMemo(()=>document.createElement("div"),[]),f=Re.useRef({props:t});f.current.props=t;const x=Re.useMemo(()=>{const u={...t},A=new a.Popup(u);return A.setLngLat([t.longitude,t.latitude]),A.once("open",L=>{var F,j;(j=(F=f.current.props).onOpen)===null||j===void 0||j.call(F,L)}),A},[]);if(Re.useEffect(()=>{const u=A=>{var L,F;(F=(L=f.current.props).onClose)===null||F===void 0||F.call(L,A)};return x.on("close",u),x.setDOMContent(c).addTo(i.getMap()),()=>{x.off("close",u),x.isOpen()&&x.remove()}},[]),Re.useEffect(()=>{Kc(x.getElement(),t.style)},[t.style]),Re.useImperativeHandle(e,()=>x,[]),x.isOpen()&&((x.getLngLat().lng!==t.longitude||x.getLngLat().lat!==t.latitude)&&x.setLngLat([t.longitude,t.latitude]),t.offset&&!cu(x.options.offset,t.offset)&&x.setOffset(t.offset),(x.options.anchor!==t.anchor||x.options.maxWidth!==t.maxWidth)&&(x.options.anchor=t.anchor,x.setMaxWidth(t.maxWidth)),x.options.className!==t.className)){const u=dy(x.options.className),A=dy(t.className);for(const L of u)A.has(L)||x.removeClassName(L);for(const L of A)u.has(L)||x.addClassName(L);x.options.className=t.className}return Qy.createPortal(t.children,c)}Re.memo(Re.forwardRef(g1));function Wh(t,e,i,a){const c=Re.useContext(_d),f=Re.useMemo(()=>t(c),[]);return Re.useEffect(()=>{const x=a||i||e,u=typeof e=="function"&&typeof i=="function"?e:null,A=typeof i=="function"?i:typeof e=="function"?e:null,{map:L}=c;return L.hasControl(f)||(L.addControl(f,x==null?void 0:x.position),u&&u(c)),()=>{A&&A(c),L.hasControl(f)&&L.removeControl(f)}},[]),f}function m1(t){const e=Wh(({mapLib:i})=>new i.AttributionControl(t),{position:t.position});return Re.useEffect(()=>{Kc(e._container,t.style)},[t.style]),null}Re.memo(m1);function _1(t){const e=Wh(({mapLib:i})=>new i.FullscreenControl({container:t.containerId&&document.getElementById(t.containerId)}),{position:t.position});return Re.useEffect(()=>{Kc(e._controlContainer,t.style)},[t.style]),null}Re.memo(_1);function y1(t,e){const i=Re.useRef({props:t}),a=Wh(({mapLib:c})=>{const f=new c.GeolocateControl(t),x=f._setupUI;return f._setupUI=u=>{f._container.hasChildNodes()||x(u)},f.on("geolocate",u=>{var A,L;(L=(A=i.current.props).onGeolocate)===null||L===void 0||L.call(A,u)}),f.on("error",u=>{var A,L;(L=(A=i.current.props).onError)===null||L===void 0||L.call(A,u)}),f.on("outofmaxbounds",u=>{var A,L;(L=(A=i.current.props).onOutOfMaxBounds)===null||L===void 0||L.call(A,u)}),f.on("trackuserlocationstart",u=>{var A,L;(L=(A=i.current.props).onTrackUserLocationStart)===null||L===void 0||L.call(A,u)}),f.on("trackuserlocationend",u=>{var A,L;(L=(A=i.current.props).onTrackUserLocationEnd)===null||L===void 0||L.call(A,u)}),f},{position:t.position});return i.current.props=t,Re.useImperativeHandle(e,()=>a,[]),Re.useEffect(()=>{Kc(a._container,t.style)},[t.style]),null}Re.memo(Re.forwardRef(y1));function v1(t){const e=Wh(({mapLib:i})=>new i.NavigationControl(t),{position:t.position});return Re.useEffect(()=>{Kc(e._container,t.style)},[t.style]),null}Re.memo(v1);function x1(t){const e=Wh(({mapLib:f})=>new f.ScaleControl(t),{position:t.position}),i=Re.useRef(t),a=i.current;i.current=t;const{style:c}=t;return t.maxWidth!==void 0&&t.maxWidth!==a.maxWidth&&(e.options.maxWidth=t.maxWidth),t.unit!==void 0&&t.unit!==a.unit&&e.setUnit(t.unit),Re.useEffect(()=>{Kc(e._container,c)},[c]),null}Re.memo(x1);const b1=Wb(()=>import("./index.es164-KR_AuFpw.js"),__vite__mapDeps([]),import.meta.url).then(t=>t.i);Re.forwardRef(function(t,e){return p1(t,e,b1)});Re.forwardRef((t,e)=>{const i=Wh(()=>new md(t),({map:a})=>{a.on("draw.create",t.onCreate),a.on("draw.update",t.onUpdate),a.on("draw.delete",t.onDelete)},({map:a})=>{a.off("draw.create",t.onCreate),a.off("draw.update",t.onUpdate),a.off("draw.delete",t.onDelete)},{position:t.position});return Re.useImperativeHandle(e,()=>i,[i]),null});var ev={exports:{}},Bp={},gy;function w1(){if(gy)return Bp;gy=1;/** +import{j as zc}from"./jsx-runtime-BTCK_S7S.js";import{m as $b,f as Gb,s as jb,k as qb,X as Zb,a as Xb,i as Hb,z as Yb}from"./MapStyles-X53DxvlK.js";import{r as Re,R as Lg}from"./index-CBqU2yxZ.js";import{r as Qy}from"./index-DZGZymok.js";import{_ as Wb}from"./iframe-BQtATEn0.js";import"./_commonjsHelpers-BosuxZz1.js";import"../sb-preview/runtime.js";var Th=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Jb(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var tv={exports:{}};(function(t,e){(function(i,a){t.exports=a()})(Th,function(){var i=function(b,P){var U={drag:[],click:[],mousemove:[],mousedown:[],mouseup:[],mouseout:[],keydown:[],keyup:[],touchstart:[],touchmove:[],touchend:[],tap:[]},tt={on:function(ht,vt,Vt){if(U[ht]===void 0)throw new Error("Invalid event type: "+ht);U[ht].push({selector:vt,fn:Vt})},render:function(ht){P.store.featureChanged(ht)}},lt=function(ht,vt){for(var Vt=U[ht],Zt=Vt.length;Zt--;){var se=Vt[Zt];if(se.selector(vt)){se.fn.call(tt,vt)||P.store.render(),P.ui.updateMapClasses();break}}};return b.start.call(tt),{render:b.render,stop:function(){b.stop&&b.stop()},trash:function(){b.trash&&(b.trash(),P.store.render())},combineFeatures:function(){b.combineFeatures&&b.combineFeatures()},uncombineFeatures:function(){b.uncombineFeatures&&b.uncombineFeatures()},drag:function(ht){lt("drag",ht)},click:function(ht){lt("click",ht)},mousemove:function(ht){lt("mousemove",ht)},mousedown:function(ht){lt("mousedown",ht)},mouseup:function(ht){lt("mouseup",ht)},mouseout:function(ht){lt("mouseout",ht)},keydown:function(ht){lt("keydown",ht)},keyup:function(ht){lt("keyup",ht)},touchstart:function(ht){lt("touchstart",ht)},touchmove:function(ht){lt("touchmove",ht)},touchend:function(ht){lt("touchend",ht)},tap:function(ht){lt("tap",ht)}}};function a(b){return b&&b.__esModule&&Object.prototype.hasOwnProperty.call(b,"default")?b.default:b}function c(b){if(b.__esModule)return b;var P=b.default;if(typeof P=="function"){var U=function tt(){if(this instanceof tt){var lt=[null];lt.push.apply(lt,arguments);var ht=Function.bind.apply(P,lt);return new ht}return P.apply(this,arguments)};U.prototype=P.prototype}else U={};return Object.defineProperty(U,"__esModule",{value:!0}),Object.keys(b).forEach(function(tt){var lt=Object.getOwnPropertyDescriptor(b,tt);Object.defineProperty(U,tt,lt.get?lt:{enumerable:!0,get:function(){return b[tt]}})}),U}var f={},x={RADIUS:6378137,FLATTENING:1/298.257223563,POLAR_RADIUS:63567523142e-4},u=x;function A(b){var P=0;if(b&&b.length>0){P+=Math.abs(L(b[0]));for(var U=1;U2){for(vt=0;vt=Math.pow(2,b)?Kr(b,P):ht};Kr.rack=function(b,P,U){var tt=function(ht){var vt=0;do{if(vt++>10){if(!U)throw new Error("too many ID collisions, use more bits");b+=U}var Vt=Kr(b,P)}while(Object.hasOwnProperty.call(lt,Vt));return lt[Vt]=ht,Vt},lt=tt.hats={};return tt.get=function(ht){return tt.hats[ht]},tt.set=function(ht,vt){return tt.hats[ht]=vt,tt},tt.bits=b||128,tt.base=P||16,tt};var Pr=a(ko.exports),Fe=function(b,P){this.ctx=b,this.properties=P.properties||{},this.coordinates=P.geometry.coordinates,this.id=P.id||Pr(),this.type=P.geometry.type};Fe.prototype.changed=function(){this.ctx.store.featureChanged(this.id)},Fe.prototype.incomingCoords=function(b){this.setCoordinates(b)},Fe.prototype.setCoordinates=function(b){this.coordinates=b,this.changed()},Fe.prototype.getCoordinates=function(){return JSON.parse(JSON.stringify(this.coordinates))},Fe.prototype.setProperty=function(b,P){this.properties[b]=P},Fe.prototype.toGeoJSON=function(){return JSON.parse(JSON.stringify({id:this.id,type:xt.FEATURE,properties:this.properties,geometry:{coordinates:this.getCoordinates(),type:this.type}}))},Fe.prototype.internal=function(b){var P={id:this.id,meta:Ut.FEATURE,"meta:type":this.type,active:jt.INACTIVE,mode:b};if(this.ctx.options.userProperties)for(var U in this.properties)P["user_"+U]=this.properties[U];return{type:xt.FEATURE,properties:P,geometry:{coordinates:this.getCoordinates(),type:this.type}}};var qn=function(b,P){Fe.call(this,b,P)};(qn.prototype=Object.create(Fe.prototype)).isValid=function(){return typeof this.coordinates[0]=="number"&&typeof this.coordinates[1]=="number"},qn.prototype.updateCoordinate=function(b,P,U){this.coordinates=arguments.length===3?[P,U]:[b,P],this.changed()},qn.prototype.getCoordinate=function(){return this.getCoordinates()};var dr=function(b,P){Fe.call(this,b,P)};(dr.prototype=Object.create(Fe.prototype)).isValid=function(){return this.coordinates.length>1},dr.prototype.addCoordinate=function(b,P,U){this.changed();var tt=parseInt(b,10);this.coordinates.splice(tt,0,[P,U])},dr.prototype.getCoordinate=function(b){var P=parseInt(b,10);return JSON.parse(JSON.stringify(this.coordinates[P]))},dr.prototype.removeCoordinate=function(b){this.changed(),this.coordinates.splice(parseInt(b,10),1)},dr.prototype.updateCoordinate=function(b,P,U){var tt=parseInt(b,10);this.coordinates[tt]=[P,U],this.changed()};var Qr=function(b,P){Fe.call(this,b,P),this.coordinates=this.coordinates.map(function(U){return U.slice(0,-1)})};(Qr.prototype=Object.create(Fe.prototype)).isValid=function(){return this.coordinates.length!==0&&this.coordinates.every(function(b){return b.length>2})},Qr.prototype.incomingCoords=function(b){this.coordinates=b.map(function(P){return P.slice(0,-1)}),this.changed()},Qr.prototype.setCoordinates=function(b){this.coordinates=b,this.changed()},Qr.prototype.addCoordinate=function(b,P,U){this.changed();var tt=b.split(".").map(function(lt){return parseInt(lt,10)});this.coordinates[tt[0]].splice(tt[1],0,[P,U])},Qr.prototype.removeCoordinate=function(b){this.changed();var P=b.split(".").map(function(tt){return parseInt(tt,10)}),U=this.coordinates[P[0]];U&&(U.splice(P[1],1),U.length<3&&this.coordinates.splice(P[0],1))},Qr.prototype.getCoordinate=function(b){var P=b.split(".").map(function(tt){return parseInt(tt,10)}),U=this.coordinates[P[0]];return JSON.parse(JSON.stringify(U[P[1]]))},Qr.prototype.getCoordinates=function(){return this.coordinates.map(function(b){return b.concat([b[0]])})},Qr.prototype.updateCoordinate=function(b,P,U){this.changed();var tt=b.split("."),lt=parseInt(tt[0],10),ht=parseInt(tt[1],10);this.coordinates[lt]===void 0&&(this.coordinates[lt]=[]),this.coordinates[lt][ht]=[P,U]};var al={MultiPoint:qn,MultiLineString:dr,MultiPolygon:Qr},zo=function(b,P,U,tt,lt){var ht=U.split("."),vt=parseInt(ht[0],10),Vt=ht[1]?ht.slice(1).join("."):null;return b[vt][P](Vt,tt,lt)},Jn=function(b,P){if(Fe.call(this,b,P),delete this.coordinates,this.model=al[P.geometry.type],this.model===void 0)throw new TypeError(P.geometry.type+" is not a valid type");this.features=this._coordinatesToFeatures(P.geometry.coordinates)};function Be(b){this.map=b.map,this.drawConfig=JSON.parse(JSON.stringify(b.options||{})),this._ctx=b}(Jn.prototype=Object.create(Fe.prototype))._coordinatesToFeatures=function(b){var P=this,U=this.model.bind(this);return b.map(function(tt){return new U(P.ctx,{id:Pr(),type:xt.FEATURE,properties:{},geometry:{coordinates:tt,type:P.type.replace("Multi","")}})})},Jn.prototype.isValid=function(){return this.features.every(function(b){return b.isValid()})},Jn.prototype.setCoordinates=function(b){this.features=this._coordinatesToFeatures(b),this.changed()},Jn.prototype.getCoordinate=function(b){return zo(this.features,"getCoordinate",b)},Jn.prototype.getCoordinates=function(){return JSON.parse(JSON.stringify(this.features.map(function(b){return b.type===xt.POLYGON?b.getCoordinates():b.coordinates})))},Jn.prototype.updateCoordinate=function(b,P,U){zo(this.features,"updateCoordinate",b,P,U),this.changed()},Jn.prototype.addCoordinate=function(b,P,U){zo(this.features,"addCoordinate",b,P,U),this.changed()},Jn.prototype.removeCoordinate=function(b){zo(this.features,"removeCoordinate",b),this.changed()},Jn.prototype.getFeatures=function(){return this.features},Be.prototype.setSelected=function(b){return this._ctx.store.setSelected(b)},Be.prototype.setSelectedCoordinates=function(b){var P=this;this._ctx.store.setSelectedCoordinates(b),b.reduce(function(U,tt){return U[tt.feature_id]===void 0&&(U[tt.feature_id]=!0,P._ctx.store.get(tt.feature_id).changed()),U},{})},Be.prototype.getSelected=function(){return this._ctx.store.getSelected()},Be.prototype.getSelectedIds=function(){return this._ctx.store.getSelectedIds()},Be.prototype.isSelected=function(b){return this._ctx.store.isSelected(b)},Be.prototype.getFeature=function(b){return this._ctx.store.get(b)},Be.prototype.select=function(b){return this._ctx.store.select(b)},Be.prototype.deselect=function(b){return this._ctx.store.deselect(b)},Be.prototype.deleteFeature=function(b,P){return P===void 0&&(P={}),this._ctx.store.delete(b,P)},Be.prototype.addFeature=function(b){return this._ctx.store.add(b)},Be.prototype.clearSelectedFeatures=function(){return this._ctx.store.clearSelected()},Be.prototype.clearSelectedCoordinates=function(){return this._ctx.store.clearSelectedCoordinates()},Be.prototype.setActionableState=function(b){b===void 0&&(b={});var P={trash:b.trash||!1,combineFeatures:b.combineFeatures||!1,uncombineFeatures:b.uncombineFeatures||!1};return this._ctx.events.actionable(P)},Be.prototype.changeMode=function(b,P,U){return P===void 0&&(P={}),U===void 0&&(U={}),this._ctx.events.changeMode(b,P,U)},Be.prototype.updateUIClasses=function(b){return this._ctx.ui.queueMapClasses(b)},Be.prototype.activateUIButton=function(b){return this._ctx.ui.setActiveButton(b)},Be.prototype.featuresAt=function(b,P,U){if(U===void 0&&(U="click"),U!=="click"&&U!=="touch")throw new Error("invalid buffer type");return Yt[U](b,P,this._ctx)},Be.prototype.newFeature=function(b){var P=b.geometry.type;return P===xt.POINT?new qn(this._ctx,b):P===xt.LINE_STRING?new dr(this._ctx,b):P===xt.POLYGON?new Qr(this._ctx,b):new Jn(this._ctx,b)},Be.prototype.isInstanceOf=function(b,P){if(b===xt.POINT)return P instanceof qn;if(b===xt.LINE_STRING)return P instanceof dr;if(b===xt.POLYGON)return P instanceof Qr;if(b==="MultiFeature")return P instanceof Jn;throw new Error("Unknown feature class: "+b)},Be.prototype.doRender=function(b){return this._ctx.store.featureChanged(b)},Be.prototype.onSetup=function(){},Be.prototype.onDrag=function(){},Be.prototype.onClick=function(){},Be.prototype.onMouseMove=function(){},Be.prototype.onMouseDown=function(){},Be.prototype.onMouseUp=function(){},Be.prototype.onMouseOut=function(){},Be.prototype.onKeyUp=function(){},Be.prototype.onKeyDown=function(){},Be.prototype.onTouchStart=function(){},Be.prototype.onTouchMove=function(){},Be.prototype.onTouchEnd=function(){},Be.prototype.onTap=function(){},Be.prototype.onStop=function(){},Be.prototype.onTrash=function(){},Be.prototype.onCombineFeature=function(){},Be.prototype.onUncombineFeature=function(){},Be.prototype.toDisplayFeatures=function(){throw new Error("You must overwrite toDisplayFeatures")};var ll={drag:"onDrag",click:"onClick",mousemove:"onMouseMove",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseout:"onMouseOut",keyup:"onKeyUp",keydown:"onKeyDown",touchstart:"onTouchStart",touchmove:"onTouchMove",touchend:"onTouchEnd",tap:"onTap"},Ws=Object.keys(ll);function Fl(b){var P=Object.keys(b);return function(U,tt){tt===void 0&&(tt={});var lt={},ht=P.reduce(function(vt,Vt){return vt[Vt]=b[Vt],vt},new Be(U));return{start:function(){var vt=this;lt=ht.onSetup(tt),Ws.forEach(function(Vt){var Zt,se=ll[Vt],ae=function(){return!1};b[se]&&(ae=function(){return!0}),vt.on(Vt,ae,(Zt=se,function(ne){return ht[Zt](lt,ne)}))})},stop:function(){ht.onStop(lt)},trash:function(){ht.onTrash(lt)},combineFeatures:function(){ht.onCombineFeatures(lt)},uncombineFeatures:function(){ht.onUncombineFeatures(lt)},render:function(vt,Vt){ht.toDisplayFeatures(lt,vt,Vt)}}}}function Qi(b){return[].concat(b).filter(function(P){return P!==void 0})}function ul(){var b=this;if(!(b.ctx.map&&b.ctx.map.getSource(Z.HOT)!==void 0))return Zt();var P=b.ctx.events.currentModeName();b.ctx.ui.queueMapClasses({mode:P});var U=[],tt=[];b.isDirty?tt=b.getAllIds():(U=b.getChangedIds().filter(function(se){return b.get(se)!==void 0}),tt=b.sources.hot.filter(function(se){return se.properties.id&&U.indexOf(se.properties.id)===-1&&b.get(se.properties.id)!==void 0}).map(function(se){return se.properties.id})),b.sources.hot=[];var lt=b.sources.cold.length;b.sources.cold=b.isDirty?[]:b.sources.cold.filter(function(se){var ae=se.properties.id||se.properties.parent;return U.indexOf(ae)===-1});var ht=lt!==b.sources.cold.length||tt.length>0;function vt(se,ae){var ne=b.get(se).internal(P);b.ctx.events.currentModeRender(ne,function(Ge){b.sources[ae].push(Ge)})}if(U.forEach(function(se){return vt(se,"hot")}),tt.forEach(function(se){return vt(se,"cold")}),ht&&b.ctx.map.getSource(Z.COLD).setData({type:xt.FEATURE_COLLECTION,features:b.sources.cold}),b.ctx.map.getSource(Z.HOT).setData({type:xt.FEATURE_COLLECTION,features:b.sources.hot}),b._emitSelectionChange&&(b.ctx.map.fire(Nt.SELECTION_CHANGE,{features:b.getSelected().map(function(se){return se.toGeoJSON()}),points:b.getSelectedCoordinates().map(function(se){return{type:xt.FEATURE,properties:{},geometry:{type:xt.POINT,coordinates:se.coordinates}}})}),b._emitSelectionChange=!1),b._deletedFeaturesToEmit.length){var Vt=b._deletedFeaturesToEmit.map(function(se){return se.toGeoJSON()});b._deletedFeaturesToEmit=[],b.ctx.map.fire(Nt.DELETE,{features:Vt})}function Zt(){b.isDirty=!1,b.clearChangedIds()}Zt(),b.ctx.map.fire(Nt.RENDER,{})}function Sn(b){var P,U=this;this._features={},this._featureIds=new je,this._selectedFeatureIds=new je,this._selectedCoordinates=[],this._changedFeatureIds=new je,this._deletedFeaturesToEmit=[],this._emitSelectionChange=!1,this._mapInitialConfig={},this.ctx=b,this.sources={hot:[],cold:[]},this.render=function(){P||(P=requestAnimationFrame(function(){P=null,ul.call(U)}))},this.isDirty=!1}function Cs(b,P){var U=b._selectedCoordinates.filter(function(tt){return b._selectedFeatureIds.has(tt.feature_id)});b._selectedCoordinates.length===U.length||P.silent||(b._emitSelectionChange=!0),b._selectedCoordinates=U}Sn.prototype.createRenderBatch=function(){var b=this,P=this.render,U=0;return this.render=function(){U++},function(){b.render=P,U>0&&b.render()}},Sn.prototype.setDirty=function(){return this.isDirty=!0,this},Sn.prototype.featureChanged=function(b){return this._changedFeatureIds.add(b),this},Sn.prototype.getChangedIds=function(){return this._changedFeatureIds.values()},Sn.prototype.clearChangedIds=function(){return this._changedFeatureIds.clear(),this},Sn.prototype.getAllIds=function(){return this._featureIds.values()},Sn.prototype.add=function(b){return this.featureChanged(b.id),this._features[b.id]=b,this._featureIds.add(b.id),this},Sn.prototype.delete=function(b,P){var U=this;return P===void 0&&(P={}),Qi(b).forEach(function(tt){U._featureIds.has(tt)&&(U._featureIds.delete(tt),U._selectedFeatureIds.delete(tt),P.silent||U._deletedFeaturesToEmit.indexOf(U._features[tt])===-1&&U._deletedFeaturesToEmit.push(U._features[tt]),delete U._features[tt],U.isDirty=!0)}),Cs(this,P),this},Sn.prototype.get=function(b){return this._features[b]},Sn.prototype.getAll=function(){var b=this;return Object.keys(this._features).map(function(P){return b._features[P]})},Sn.prototype.select=function(b,P){var U=this;return P===void 0&&(P={}),Qi(b).forEach(function(tt){U._selectedFeatureIds.has(tt)||(U._selectedFeatureIds.add(tt),U._changedFeatureIds.add(tt),P.silent||(U._emitSelectionChange=!0))}),this},Sn.prototype.deselect=function(b,P){var U=this;return P===void 0&&(P={}),Qi(b).forEach(function(tt){U._selectedFeatureIds.has(tt)&&(U._selectedFeatureIds.delete(tt),U._changedFeatureIds.add(tt),P.silent||(U._emitSelectionChange=!0))}),Cs(this,P),this},Sn.prototype.clearSelected=function(b){return b===void 0&&(b={}),this.deselect(this._selectedFeatureIds.values(),{silent:b.silent}),this},Sn.prototype.setSelected=function(b,P){var U=this;return P===void 0&&(P={}),b=Qi(b),this.deselect(this._selectedFeatureIds.values().filter(function(tt){return b.indexOf(tt)===-1}),{silent:P.silent}),this.select(b.filter(function(tt){return!U._selectedFeatureIds.has(tt)}),{silent:P.silent}),this},Sn.prototype.setSelectedCoordinates=function(b){return this._selectedCoordinates=b,this._emitSelectionChange=!0,this},Sn.prototype.clearSelectedCoordinates=function(){return this._selectedCoordinates=[],this._emitSelectionChange=!0,this},Sn.prototype.getSelectedIds=function(){return this._selectedFeatureIds.values()},Sn.prototype.getSelected=function(){var b=this;return this._selectedFeatureIds.values().map(function(P){return b.get(P)})},Sn.prototype.getSelectedCoordinates=function(){var b=this;return this._selectedCoordinates.map(function(P){return{coordinates:b.get(P.feature_id).getCoordinate(P.coord_path)}})},Sn.prototype.isSelected=function(b){return this._selectedFeatureIds.has(b)},Sn.prototype.setFeatureProperty=function(b,P,U){this.get(b).setProperty(P,U),this.featureChanged(b)},Sn.prototype.storeMapConfig=function(){var b=this;De.forEach(function(P){b.ctx.map[P]&&(b._mapInitialConfig[P]=b.ctx.map[P].isEnabled())})},Sn.prototype.restoreMapConfig=function(){var b=this;Object.keys(this._mapInitialConfig).forEach(function(P){b._mapInitialConfig[P]?b.ctx.map[P].enable():b.ctx.map[P].disable()})},Sn.prototype.getInitialConfigValue=function(b){return this._mapInitialConfig[b]===void 0||this._mapInitialConfig[b]};var Js=function(){for(var b=arguments,P={},U=0;U=48&&zt<=57)};function Ze(zt,ye,Tn){Tn===void 0&&(Tn={}),Ge.stop();var er=Vt[zt];if(er===void 0)throw new Error(zt+" is not valid");ne=zt;var ur=er(vt,ye);Ge=i(ur,vt),Tn.silent||vt.map.fire(Nt.MODE_CHANGE,{mode:zt}),vt.store.setDirty(),vt.store.render()}ae.keydown=function(zt){(zt.srcElement||zt.target).classList.contains("mapboxgl-canvas")&&(zt.keyCode!==8&&zt.keyCode!==46||!vt.options.controls.trash?tr(zt.keyCode)?Ge.keydown(zt):zt.keyCode===49&&vt.options.controls.point?Ze(wt.DRAW_POINT):zt.keyCode===50&&vt.options.controls.line_string?Ze(wt.DRAW_LINE_STRING):zt.keyCode===51&&vt.options.controls.polygon&&Ze(wt.DRAW_POLYGON):(zt.preventDefault(),Ge.trash()))},ae.keyup=function(zt){tr(zt.keyCode)&&Ge.keyup(zt)},ae.zoomend=function(){vt.store.changeZoom()},ae.data=function(zt){if(zt.dataType==="style"){var ye=vt.setup,Tn=vt.map,er=vt.options,ur=vt.store;er.styles.some(function(Oi){return Tn.getLayer(Oi.id)})||(ye.addLayers(),ur.setDirty(),ur.render())}};var xr={trash:!1,combineFeatures:!1,uncombineFeatures:!1};return{start:function(){ne=vt.options.defaultMode,Ge=i(Vt[ne](vt),vt)},changeMode:Ze,actionable:function(zt){var ye=!1;Object.keys(zt).forEach(function(Tn){if(xr[Tn]===void 0)throw new Error("Invalid action type");xr[Tn]!==zt[Tn]&&(ye=!0),xr[Tn]=zt[Tn]}),ye&&vt.map.fire(Nt.ACTIONABLE,{actions:xr})},currentModeName:function(){return ne},currentModeRender:function(zt,ye){return Ge.render(zt,ye)},fire:function(zt,ye){ae[zt]&&ae[zt](ye)},addEventListeners:function(){vt.map.on("mousemove",ae.mousemove),vt.map.on("mousedown",ae.mousedown),vt.map.on("mouseup",ae.mouseup),vt.map.on("data",ae.data),vt.map.on("touchmove",ae.touchmove),vt.map.on("touchstart",ae.touchstart),vt.map.on("touchend",ae.touchend),vt.container.addEventListener("mouseout",ae.mouseout),vt.options.keybindings&&(vt.container.addEventListener("keydown",ae.keydown),vt.container.addEventListener("keyup",ae.keyup))},removeEventListeners:function(){vt.map.off("mousemove",ae.mousemove),vt.map.off("mousedown",ae.mousedown),vt.map.off("mouseup",ae.mouseup),vt.map.off("data",ae.data),vt.map.off("touchmove",ae.touchmove),vt.map.off("touchstart",ae.touchstart),vt.map.off("touchend",ae.touchend),vt.container.removeEventListener("mouseout",ae.mouseout),vt.options.keybindings&&(vt.container.removeEventListener("keydown",ae.keydown),vt.container.removeEventListener("keyup",ae.keyup))},trash:function(zt){Ge.trash(zt)},combineFeatures:function(){Ge.combineFeatures()},uncombineFeatures:function(){Ge.uncombineFeatures()},getMode:function(){return ne}}}(b),b.ui=function(vt){var Vt={},Zt=null,se={mode:null,feature:null,mouse:null},ae={mode:null,feature:null,mouse:null};function ne(zt){ae=At(ae,zt)}function Ge(){var zt,ye;if(vt.container){var Tn=[],er=[];Di.forEach(function(ur){ae[ur]!==se[ur]&&(Tn.push(ur+"-"+se[ur]),ae[ur]!==null&&er.push(ur+"-"+ae[ur]))}),Tn.length>0&&(zt=vt.container.classList).remove.apply(zt,Tn),er.length>0&&(ye=vt.container.classList).add.apply(ye,er),se=At(se,ae)}}function tr(zt,ye){ye===void 0&&(ye={});var Tn=document.createElement("button");return Tn.className=j.CONTROL_BUTTON+" "+ye.className,Tn.setAttribute("title",ye.title),ye.container.appendChild(Tn),Tn.addEventListener("click",function(er){if(er.preventDefault(),er.stopPropagation(),er.target===Zt)return Ze(),void ye.onDeactivate();xr(zt),ye.onActivate()},!0),Tn}function Ze(){Zt&&(Zt.classList.remove(j.ACTIVE_BUTTON),Zt=null)}function xr(zt){Ze();var ye=Vt[zt];ye&&ye&&zt!=="trash"&&(ye.classList.add(j.ACTIVE_BUTTON),Zt=ye)}return{setActiveButton:xr,queueMapClasses:ne,updateMapClasses:Ge,clearMapClasses:function(){ne({mode:null,feature:null,mouse:null}),Ge()},addButtons:function(){var zt=vt.options.controls,ye=document.createElement("div");return ye.className=j.CONTROL_GROUP+" "+j.CONTROL_BASE,zt&&(zt[pt.LINE]&&(Vt[pt.LINE]=tr(pt.LINE,{container:ye,className:j.CONTROL_BUTTON_LINE,title:"LineString tool "+(vt.options.keybindings?"(l)":""),onActivate:function(){return vt.events.changeMode(wt.DRAW_LINE_STRING)},onDeactivate:function(){return vt.events.trash()}})),zt[pt.POLYGON]&&(Vt[pt.POLYGON]=tr(pt.POLYGON,{container:ye,className:j.CONTROL_BUTTON_POLYGON,title:"Polygon tool "+(vt.options.keybindings?"(p)":""),onActivate:function(){return vt.events.changeMode(wt.DRAW_POLYGON)},onDeactivate:function(){return vt.events.trash()}})),zt[pt.POINT]&&(Vt[pt.POINT]=tr(pt.POINT,{container:ye,className:j.CONTROL_BUTTON_POINT,title:"Marker tool "+(vt.options.keybindings?"(m)":""),onActivate:function(){return vt.events.changeMode(wt.DRAW_POINT)},onDeactivate:function(){return vt.events.trash()}})),zt.trash&&(Vt.trash=tr("trash",{container:ye,className:j.CONTROL_BUTTON_TRASH,title:"Delete",onActivate:function(){vt.events.trash()}})),zt.combine_features&&(Vt.combine_features=tr("combineFeatures",{container:ye,className:j.CONTROL_BUTTON_COMBINE_FEATURES,title:"Combine",onActivate:function(){vt.events.combineFeatures()}})),zt.uncombine_features&&(Vt.uncombine_features=tr("uncombineFeatures",{container:ye,className:j.CONTROL_BUTTON_UNCOMBINE_FEATURES,title:"Uncombine",onActivate:function(){vt.events.uncombineFeatures()}}))),ye},removeButtons:function(){Object.keys(Vt).forEach(function(zt){var ye=Vt[zt];ye.parentNode&&ye.parentNode.removeChild(ye),delete Vt[zt]})}}}(b),b.container=lt.getContainer(),b.store=new Sn(b),P=b.ui.addButtons(),b.options.boxSelect&&(b.boxZoomInitial=lt.boxZoom.isEnabled(),lt.boxZoom.disable(),lt.dragPan.disable(),lt.dragPan.enable()),lt.loaded()?tt.connect():(lt.on("load",tt.connect),U=setInterval(function(){lt.loaded()&&tt.connect()},16)),b.events.start(),P},addLayers:function(){b.map.addSource(Z.COLD,{data:{type:xt.FEATURE_COLLECTION,features:[]},type:"geojson"}),b.map.addSource(Z.HOT,{data:{type:xt.FEATURE_COLLECTION,features:[]},type:"geojson"}),b.options.styles.forEach(function(lt){b.map.addLayer(lt)}),b.store.setDirty(!0),b.store.render()},removeLayers:function(){b.options.styles.forEach(function(lt){b.map.getLayer(lt.id)&&b.map.removeLayer(lt.id)}),b.map.getSource(Z.COLD)&&b.map.removeSource(Z.COLD),b.map.getSource(Z.HOT)&&b.map.removeSource(Z.HOT)}};return b.setup=tt,tt}var Dn=[{id:"gl-draw-polygon-fill-inactive",type:"fill",filter:["all",["==","active","false"],["==","$type","Polygon"],["!=","mode","static"]],paint:{"fill-color":"#3bb2d0","fill-outline-color":"#3bb2d0","fill-opacity":.1}},{id:"gl-draw-polygon-fill-active",type:"fill",filter:["all",["==","active","true"],["==","$type","Polygon"]],paint:{"fill-color":"#fbb03b","fill-outline-color":"#fbb03b","fill-opacity":.1}},{id:"gl-draw-polygon-midpoint",type:"circle",filter:["all",["==","$type","Point"],["==","meta","midpoint"]],paint:{"circle-radius":3,"circle-color":"#fbb03b"}},{id:"gl-draw-polygon-stroke-inactive",type:"line",filter:["all",["==","active","false"],["==","$type","Polygon"],["!=","mode","static"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#3bb2d0","line-width":2}},{id:"gl-draw-polygon-stroke-active",type:"line",filter:["all",["==","active","true"],["==","$type","Polygon"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#fbb03b","line-dasharray":[.2,2],"line-width":2}},{id:"gl-draw-line-inactive",type:"line",filter:["all",["==","active","false"],["==","$type","LineString"],["!=","mode","static"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#3bb2d0","line-width":2}},{id:"gl-draw-line-active",type:"line",filter:["all",["==","$type","LineString"],["==","active","true"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#fbb03b","line-dasharray":[.2,2],"line-width":2}},{id:"gl-draw-polygon-and-line-vertex-stroke-inactive",type:"circle",filter:["all",["==","meta","vertex"],["==","$type","Point"],["!=","mode","static"]],paint:{"circle-radius":5,"circle-color":"#fff"}},{id:"gl-draw-polygon-and-line-vertex-inactive",type:"circle",filter:["all",["==","meta","vertex"],["==","$type","Point"],["!=","mode","static"]],paint:{"circle-radius":3,"circle-color":"#fbb03b"}},{id:"gl-draw-point-point-stroke-inactive",type:"circle",filter:["all",["==","active","false"],["==","$type","Point"],["==","meta","feature"],["!=","mode","static"]],paint:{"circle-radius":5,"circle-opacity":1,"circle-color":"#fff"}},{id:"gl-draw-point-inactive",type:"circle",filter:["all",["==","active","false"],["==","$type","Point"],["==","meta","feature"],["!=","mode","static"]],paint:{"circle-radius":3,"circle-color":"#3bb2d0"}},{id:"gl-draw-point-stroke-active",type:"circle",filter:["all",["==","$type","Point"],["==","active","true"],["!=","meta","midpoint"]],paint:{"circle-radius":7,"circle-color":"#fff"}},{id:"gl-draw-point-active",type:"circle",filter:["all",["==","$type","Point"],["!=","meta","midpoint"],["==","active","true"]],paint:{"circle-radius":5,"circle-color":"#fbb03b"}},{id:"gl-draw-polygon-fill-static",type:"fill",filter:["all",["==","mode","static"],["==","$type","Polygon"]],paint:{"fill-color":"#404040","fill-outline-color":"#404040","fill-opacity":.1}},{id:"gl-draw-polygon-stroke-static",type:"line",filter:["all",["==","mode","static"],["==","$type","Polygon"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#404040","line-width":2}},{id:"gl-draw-line-static",type:"line",filter:["all",["==","mode","static"],["==","$type","LineString"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#404040","line-width":2}},{id:"gl-draw-point-static",type:"circle",filter:["all",["==","mode","static"],["==","$type","Point"]],paint:{"circle-radius":5,"circle-color":"#404040"}}];function ln(b){return function(P){var U=P.featureTarget;return!!U&&!!U.properties&&U.properties.meta===b}}function Fo(b){return!!b.originalEvent&&!!b.originalEvent.shiftKey&&b.originalEvent.button===0}function _o(b){return!!b.featureTarget&&!!b.featureTarget.properties&&b.featureTarget.properties.active===jt.ACTIVE&&b.featureTarget.properties.meta===Ut.FEATURE}function Bo(b){return!!b.featureTarget&&!!b.featureTarget.properties&&b.featureTarget.properties.active===jt.INACTIVE&&b.featureTarget.properties.meta===Ut.FEATURE}function Ra(b){return b.featureTarget===void 0}function Ks(b){return!!b.featureTarget&&!!b.featureTarget.properties&&b.featureTarget.properties.meta===Ut.FEATURE}function yo(b){var P=b.featureTarget;return!!P&&!!P.properties&&P.properties.meta===Ut.VERTEX}function ss(b){return!!b.originalEvent&&b.originalEvent.shiftKey===!0}function Ht(b){return b.keyCode===27}function to(b){return b.keyCode===13}var lr=Object.freeze({__proto__:null,isOfMetaType:ln,isShiftMousedown:Fo,isActiveFeature:_o,isInactiveFeature:Bo,noTarget:Ra,isFeature:Ks,isVertex:yo,isShiftDown:ss,isEscapeKey:Ht,isEnterKey:to,isTrue:function(){return!0}}),ka=Ni;function Ni(b,P){this.x=b,this.y=P}Ni.prototype={clone:function(){return new Ni(this.x,this.y)},add:function(b){return this.clone()._add(b)},sub:function(b){return this.clone()._sub(b)},multByPoint:function(b){return this.clone()._multByPoint(b)},divByPoint:function(b){return this.clone()._divByPoint(b)},mult:function(b){return this.clone()._mult(b)},div:function(b){return this.clone()._div(b)},rotate:function(b){return this.clone()._rotate(b)},rotateAround:function(b,P){return this.clone()._rotateAround(b,P)},matMult:function(b){return this.clone()._matMult(b)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(b){return this.x===b.x&&this.y===b.y},dist:function(b){return Math.sqrt(this.distSqr(b))},distSqr:function(b){var P=b.x-this.x,U=b.y-this.y;return P*P+U*U},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(b){return Math.atan2(this.y-b.y,this.x-b.x)},angleWith:function(b){return this.angleWithSep(b.x,b.y)},angleWithSep:function(b,P){return Math.atan2(this.x*P-this.y*b,this.x*b+this.y*P)},_matMult:function(b){var P=b[0]*this.x+b[1]*this.y,U=b[2]*this.x+b[3]*this.y;return this.x=P,this.y=U,this},_add:function(b){return this.x+=b.x,this.y+=b.y,this},_sub:function(b){return this.x-=b.x,this.y-=b.y,this},_mult:function(b){return this.x*=b,this.y*=b,this},_div:function(b){return this.x/=b,this.y/=b,this},_multByPoint:function(b){return this.x*=b.x,this.y*=b.y,this},_divByPoint:function(b){return this.x/=b.x,this.y/=b.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var b=this.y;return this.y=this.x,this.x=-b,this},_rotate:function(b){var P=Math.cos(b),U=Math.sin(b),tt=P*this.x-U*this.y,lt=U*this.x+P*this.y;return this.x=tt,this.y=lt,this},_rotateAround:function(b,P){var U=Math.cos(b),tt=Math.sin(b),lt=P.x+U*(this.x-P.x)-tt*(this.y-P.y),ht=P.y+tt*(this.x-P.x)+U*(this.y-P.y);return this.x=lt,this.y=ht,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},Ni.convert=function(b){return b instanceof Ni?b:Array.isArray(b)?new Ni(b[0],b[1]):b};var Jt=a(ka);function Xe(b,P){var U=P.getBoundingClientRect();return new Jt(b.clientX-U.left-(P.clientLeft||0),b.clientY-U.top-(P.clientTop||0))}function Le(b,P,U,tt){return{type:xt.FEATURE,properties:{meta:Ut.VERTEX,parent:b,coord_path:U,active:tt?jt.ACTIVE:jt.INACTIVE},geometry:{type:xt.POINT,coordinates:P}}}function pi(b,P,U){var tt=P.geometry.coordinates,lt=U.geometry.coordinates;if(tt[1]>85||tt[1]<_e||lt[1]>85||lt[1]<_e)return null;var ht={lng:(tt[0]+lt[0])/2,lat:(tt[1]+lt[1])/2};return{type:xt.FEATURE,properties:{meta:Ut.MIDPOINT,parent:b,lng:ht.lng,lat:ht.lat,coord_path:U.properties.coord_path},geometry:{type:xt.POINT,coordinates:[ht.lng,ht.lat]}}}function eo(b,P,U){P===void 0&&(P={}),U===void 0&&(U=null);var tt,lt=b.geometry,ht=lt.type,vt=lt.coordinates,Vt=b.properties&&b.properties.id,Zt=[];function se(ne,Ge){var tr="",Ze=null;ne.forEach(function(xr,zt){var ye=Ge!=null?Ge+"."+zt:String(zt),Tn=Le(Vt,xr,ye,ae(ye));if(P.midpoints&&Ze){var er=pi(Vt,Ze,Tn);er&&Zt.push(er)}Ze=Tn;var ur=JSON.stringify(xr);tr!==ur&&Zt.push(Tn),zt===0&&(tr=ur)})}function ae(ne){return!!P.selectedPaths&&P.selectedPaths.indexOf(ne)!==-1}return ht===xt.POINT?Zt.push(Le(Vt,vt,U,ae(U))):ht===xt.POLYGON?vt.forEach(function(ne,Ge){se(ne,U!==null?U+"."+Ge:String(Ge))}):ht===xt.LINE_STRING?se(vt,U):ht.indexOf(xt.MULTI_PREFIX)===0&&(tt=ht.replace(xt.MULTI_PREFIX,""),vt.forEach(function(ne,Ge){var tr={type:xt.FEATURE,properties:b.properties,geometry:{type:tt,coordinates:ne}};Zt=Zt.concat(eo(tr,P,Ge))})),Zt}var Ce={enable:function(b){setTimeout(function(){b.map&&b.map.doubleClickZoom&&b._ctx&&b._ctx.store&&b._ctx.store.getInitialConfigValue&&b._ctx.store.getInitialConfigValue("doubleClickZoom")&&b.map.doubleClickZoom.enable()},0)},disable:function(b){setTimeout(function(){b.map&&b.map.doubleClickZoom&&b.map.doubleClickZoom.disable()},0)}},vo={exports:{}},J=function(b){if(!b||!b.type)return null;var P=k[b.type];if(!P)return null;if(P==="geometry")return{type:"FeatureCollection",features:[{type:"Feature",properties:{},geometry:b}]};if(P==="feature")return{type:"FeatureCollection",features:[b]};if(P==="featurecollection")return b},k={Point:"geometry",MultiPoint:"geometry",LineString:"geometry",MultiLineString:"geometry",Polygon:"geometry",MultiPolygon:"geometry",GeometryCollection:"geometry",Feature:"feature",FeatureCollection:"featurecollection"},B=a(J),q=Object.freeze({__proto__:null,default:function b(P){switch(P&&P.type||null){case"FeatureCollection":return P.features=P.features.reduce(function(U,tt){return U.concat(b(tt))},[]),P;case"Feature":return P.geometry?b(P.geometry).map(function(U){var tt={type:"Feature",properties:JSON.parse(JSON.stringify(P.properties)),geometry:U};return P.id!==void 0&&(tt.id=P.id),tt}):[P];case"MultiPoint":return P.coordinates.map(function(U){return{type:"Point",coordinates:U}});case"MultiPolygon":return P.coordinates.map(function(U){return{type:"Polygon",coordinates:U}});case"MultiLineString":return P.coordinates.map(function(U){return{type:"LineString",coordinates:U}});case"GeometryCollection":return P.geometries.map(b).reduce(function(U,tt){return U.concat(tt)},[]);case"Point":case"Polygon":case"LineString":return[P]}}}),Q=J,et=c(q),mt=function(b){return function P(U){return Array.isArray(U)&&U.length&&typeof U[0]=="number"?[U]:U.reduce(function(tt,lt){return Array.isArray(lt)&&Array.isArray(lt[0])?tt.concat(P(lt)):(tt.push(lt),tt)},[])}(b)};et instanceof Function||(et=et.default);var ut={exports:{}},ot=ut.exports=function(b){return new ct(b)};function ct(b){this.value=b}function Mt(b,P,U){var tt=[],lt=[],ht=!0;return function vt(Vt){var Zt=U?Dt(Vt):Vt,se={},ae=!0,ne={node:Zt,node_:Vt,path:[].concat(tt),parent:lt[lt.length-1],parents:lt,key:tt.slice(-1)[0],isRoot:tt.length===0,level:tt.length,circular:null,update:function(Ze,xr){ne.isRoot||(ne.parent.node[ne.key]=Ze),ne.node=Ze,xr&&(ae=!1)},delete:function(Ze){delete ne.parent.node[ne.key],Ze&&(ae=!1)},remove:function(Ze){Ne(ne.parent.node)?ne.parent.node.splice(ne.key,1):delete ne.parent.node[ne.key],Ze&&(ae=!1)},keys:null,before:function(Ze){se.before=Ze},after:function(Ze){se.after=Ze},pre:function(Ze){se.pre=Ze},post:function(Ze){se.post=Ze},stop:function(){ht=!1},block:function(){ae=!1}};if(!ht)return ne;function Ge(){if(typeof ne.node=="object"&&ne.node!==null){ne.keys&&ne.node_===ne.node||(ne.keys=Ot(ne.node)),ne.isLeaf=ne.keys.length==0;for(var Ze=0;Ze=P&&this._bbox[3]>=U},We.prototype.intersect=function(b){return this._valid?(P=b instanceof We?b.bbox():b,!(this._bbox[0]>P[2]||this._bbox[2]P[3])):null;var P},We.prototype._fastContains=function(){if(!this._valid)return new Function("return null;");var b="return "+this._bbox[0]+"<= ll[0] &&"+this._bbox[1]+"<= ll[1] &&"+this._bbox[2]+">= ll[0] &&"+this._bbox[3]+">= ll[1]";return new Function("ll",b)},We.prototype.polygon=function(){return this._valid?{type:"Polygon",coordinates:[[[this._bbox[0],this._bbox[1]],[this._bbox[2],this._bbox[1]],[this._bbox[2],this._bbox[3]],[this._bbox[0],this._bbox[3]],[this._bbox[0],this._bbox[1]]]]}:null};var dn=function(b){if(!b)return[];var P=et(Q(b)),U=[];return P.features.forEach(function(tt){tt.geometry&&(U=U.concat(mt(tt.geometry.coordinates)))}),U},un=$e,fi=En,On={features:["FeatureCollection"],coordinates:["Point","MultiPoint","LineString","MultiLineString","Polygon","MultiPolygon"],geometry:["Feature"],geometries:["GeometryCollection"]},Ar=Object.keys(On);function Fr(b){for(var P=fi(),U=dn(b),tt=0;ttU&&(U=ne),Gelt&&(lt=Ge),neVt&&(Vt=Ze)});var Zt=P;return U+Zt.lat>85&&(Zt.lat=85-U),lt+Zt.lat>90&&(Zt.lat=90-lt),tt+Zt.lat<-85&&(Zt.lat=-85-tt),ht+Zt.lat=270&&(Zt.lng-=360*Math.ceil(Math.abs(Zt.lng)/360)),Zt}function ta(b,P){var U=Qs(b.map(function(tt){return tt.toGeoJSON()}),P);b.forEach(function(tt){var lt,ht=tt.getCoordinates(),vt=function(Zt){var se={lng:Zt[0]+U.lng,lat:Zt[1]+U.lat};return[se.lng,se.lat]},Vt=function(Zt){return Zt.map(function(se){return vt(se)})};tt.type===xt.POINT?lt=vt(ht):tt.type===xt.LINE_STRING||tt.type===xt.MULTI_POINT?lt=ht.map(vt):tt.type===xt.POLYGON||tt.type===xt.MULTI_LINE_STRING?lt=ht.map(Vt):tt.type===xt.MULTI_POLYGON&&(lt=ht.map(function(Zt){return Zt.map(function(se){return Vt(se)})})),tt.incomingCoords(lt)})}var Br={onSetup:function(b){var P=this,U={dragMoveLocation:null,boxSelectStartLocation:null,boxSelectElement:void 0,boxSelecting:!1,canBoxSelect:!1,dragMoving:!1,canDragMove:!1,initiallySelectedFeatureIds:b.featureIds||[]};return this.setSelected(U.initiallySelectedFeatureIds.filter(function(tt){return P.getFeature(tt)!==void 0})),this.fireActionable(),this.setActionableState({combineFeatures:!0,uncombineFeatures:!0,trash:!0}),U},fireUpdate:function(){this.map.fire(Nt.UPDATE,{action:Bt.MOVE,features:this.getSelected().map(function(b){return b.toGeoJSON()})})},fireActionable:function(){var b=this,P=this.getSelected(),U=P.filter(function(Vt){return b.isInstanceOf("MultiFeature",Vt)}),tt=!1;if(P.length>1){tt=!0;var lt=P[0].type.replace("Multi","");P.forEach(function(Vt){Vt.type.replace("Multi","")!==lt&&(tt=!1)})}var ht=U.length>0,vt=P.length>0;this.setActionableState({combineFeatures:tt,uncombineFeatures:ht,trash:vt})},getUniqueIds:function(b){return b.length?b.map(function(P){return P.properties.id}).filter(function(P){return P!==void 0}).reduce(function(P,U){return P.add(U),P},new je).values():[]},stopExtendedInteractions:function(b){b.boxSelectElement&&(b.boxSelectElement.parentNode&&b.boxSelectElement.parentNode.removeChild(b.boxSelectElement),b.boxSelectElement=null),this.map.dragPan.enable(),b.boxSelecting=!1,b.canBoxSelect=!1,b.dragMoving=!1,b.canDragMove=!1},onStop:function(){Ce.enable(this)},onMouseMove:function(b,P){return Ks(P)&&b.dragMoving&&this.fireUpdate(),this.stopExtendedInteractions(b),!0},onMouseOut:function(b){return!b.dragMoving||this.fireUpdate()}};Br.onTap=Br.onClick=function(b,P){return Ra(P)?this.clickAnywhere(b,P):ln(Ut.VERTEX)(P)?this.clickOnVertex(b,P):Ks(P)?this.clickOnFeature(b,P):void 0},Br.clickAnywhere=function(b){var P=this,U=this.getSelectedIds();U.length&&(this.clearSelectedFeatures(),U.forEach(function(tt){return P.doRender(tt)})),Ce.enable(this),this.stopExtendedInteractions(b)},Br.clickOnVertex=function(b,P){this.changeMode(wt.DIRECT_SELECT,{featureId:P.featureTarget.properties.parent,coordPath:P.featureTarget.properties.coord_path,startPos:P.lngLat}),this.updateUIClasses({mouse:st.MOVE})},Br.startOnActiveFeature=function(b,P){this.stopExtendedInteractions(b),this.map.dragPan.disable(),this.doRender(P.featureTarget.properties.id),b.canDragMove=!0,b.dragMoveLocation=P.lngLat},Br.clickOnFeature=function(b,P){var U=this;Ce.disable(this),this.stopExtendedInteractions(b);var tt=ss(P),lt=this.getSelectedIds(),ht=P.featureTarget.properties.id,vt=this.isSelected(ht);if(!tt&&vt&&this.getFeature(ht).type!==xt.POINT)return this.changeMode(wt.DIRECT_SELECT,{featureId:ht});vt&&tt?(this.deselect(ht),this.updateUIClasses({mouse:st.POINTER}),lt.length===1&&Ce.enable(this)):!vt&&tt?(this.select(ht),this.updateUIClasses({mouse:st.MOVE})):vt||tt||(lt.forEach(function(Vt){return U.doRender(Vt)}),this.setSelected(ht),this.updateUIClasses({mouse:st.MOVE})),this.doRender(ht)},Br.onMouseDown=function(b,P){return _o(P)?this.startOnActiveFeature(b,P):this.drawConfig.boxSelect&&Fo(P)?this.startBoxSelect(b,P):void 0},Br.startBoxSelect=function(b,P){this.stopExtendedInteractions(b),this.map.dragPan.disable(),b.boxSelectStartLocation=Xe(P.originalEvent,this.map.getContainer()),b.canBoxSelect=!0},Br.onTouchStart=function(b,P){if(_o(P))return this.startOnActiveFeature(b,P)},Br.onDrag=function(b,P){return b.canDragMove?this.dragMove(b,P):this.drawConfig.boxSelect&&b.canBoxSelect?this.whileBoxSelect(b,P):void 0},Br.whileBoxSelect=function(b,P){b.boxSelecting=!0,this.updateUIClasses({mouse:st.ADD}),b.boxSelectElement||(b.boxSelectElement=document.createElement("div"),b.boxSelectElement.classList.add(j.BOX_SELECT),this.map.getContainer().appendChild(b.boxSelectElement));var U=Xe(P.originalEvent,this.map.getContainer()),tt=Math.min(b.boxSelectStartLocation.x,U.x),lt=Math.max(b.boxSelectStartLocation.x,U.x),ht=Math.min(b.boxSelectStartLocation.y,U.y),vt=Math.max(b.boxSelectStartLocation.y,U.y),Vt="translate("+tt+"px, "+ht+"px)";b.boxSelectElement.style.transform=Vt,b.boxSelectElement.style.WebkitTransform=Vt,b.boxSelectElement.style.width=lt-tt+"px",b.boxSelectElement.style.height=vt-ht+"px"},Br.dragMove=function(b,P){b.dragMoving=!0,P.originalEvent.stopPropagation();var U={lng:P.lngLat.lng-b.dragMoveLocation.lng,lat:P.lngLat.lat-b.dragMoveLocation.lat};ta(this.getSelected(),U),b.dragMoveLocation=P.lngLat},Br.onTouchEnd=Br.onMouseUp=function(b,P){var U=this;if(b.dragMoving)this.fireUpdate();else if(b.boxSelecting){var tt=[b.boxSelectStartLocation,Xe(P.originalEvent,this.map.getContainer())],lt=this.featuresAt(null,tt,"click"),ht=this.getUniqueIds(lt).filter(function(vt){return!U.isSelected(vt)});ht.length&&(this.select(ht),ht.forEach(function(vt){return U.doRender(vt)}),this.updateUIClasses({mouse:st.MOVE}))}this.stopExtendedInteractions(b)},Br.toDisplayFeatures=function(b,P,U){P.properties.active=this.isSelected(P.properties.id)?jt.ACTIVE:jt.INACTIVE,U(P),this.fireActionable(),P.properties.active===jt.ACTIVE&&P.geometry.type!==xt.POINT&&eo(P).forEach(U)},Br.onTrash=function(){this.deleteFeature(this.getSelectedIds()),this.fireActionable()},Br.onCombineFeatures=function(){var b=this.getSelected();if(!(b.length===0||b.length<2)){for(var P=[],U=[],tt=b[0].type.replace("Multi",""),lt=0;lt1){var vt=this.newFeature({type:xt.FEATURE,properties:U[0].properties,geometry:{type:"Multi"+tt,coordinates:P}});this.addFeature(vt),this.deleteFeature(this.getSelectedIds(),{silent:!0}),this.setSelected([vt.id]),this.map.fire(Nt.COMBINE_FEATURES,{createdFeatures:[vt.toGeoJSON()],deletedFeatures:U})}this.fireActionable()}},Br.onUncombineFeatures=function(){var b=this,P=this.getSelected();if(P.length!==0){for(var U=[],tt=[],lt=function(vt){var Vt=P[vt];b.isInstanceOf("MultiFeature",Vt)&&(Vt.getFeatures().forEach(function(Zt){b.addFeature(Zt),Zt.properties=Vt.properties,U.push(Zt.toGeoJSON()),b.select([Zt.id])}),b.deleteFeature(Vt.id,{silent:!0}),tt.push(Vt.toGeoJSON()))},ht=0;ht1&&this.map.fire(Nt.UNCOMBINE_FEATURES,{createdFeatures:U,deletedFeatures:tt}),this.fireActionable()}};var In=ln(Ut.VERTEX),Iu=ln(Ut.MIDPOINT),Vo={fireUpdate:function(){this.map.fire(Nt.UPDATE,{action:Bt.CHANGE_COORDINATES,features:this.getSelected().map(function(b){return b.toGeoJSON()})})},fireActionable:function(b){this.setActionableState({combineFeatures:!1,uncombineFeatures:!1,trash:b.selectedCoordPaths.length>0})},startDragging:function(b,P){this.map.dragPan.disable(),b.canDragMove=!0,b.dragMoveLocation=P.lngLat},stopDragging:function(b){this.map.dragPan.enable(),b.dragMoving=!1,b.canDragMove=!1,b.dragMoveLocation=null},onVertex:function(b,P){this.startDragging(b,P);var U=P.featureTarget.properties,tt=b.selectedCoordPaths.indexOf(U.coord_path);ss(P)||tt!==-1?ss(P)&&tt===-1&&b.selectedCoordPaths.push(U.coord_path):b.selectedCoordPaths=[U.coord_path];var lt=this.pathsToCoordinates(b.featureId,b.selectedCoordPaths);this.setSelectedCoordinates(lt)},onMidpoint:function(b,P){this.startDragging(b,P);var U=P.featureTarget.properties;b.feature.addCoordinate(U.coord_path,U.lng,U.lat),this.fireUpdate(),b.selectedCoordPaths=[U.coord_path]},pathsToCoordinates:function(b,P){return P.map(function(U){return{feature_id:b,coord_path:U}})},onFeature:function(b,P){b.selectedCoordPaths.length===0?this.startDragging(b,P):this.stopDragging(b)},dragFeature:function(b,P,U){ta(this.getSelected(),U),b.dragMoveLocation=P.lngLat},dragVertex:function(b,P,U){for(var tt=b.selectedCoordPaths.map(function(Vt){return b.feature.getCoordinate(Vt)}),lt=Qs(tt.map(function(Vt){return{type:xt.FEATURE,properties:{},geometry:{type:xt.POINT,coordinates:Vt}}}),U),ht=0;ht0?this.dragVertex(b,P,U):this.dragFeature(b,P,U),b.dragMoveLocation=P.lngLat}},Vo.onClick=function(b,P){return Ra(P)?this.clickNoTarget(b,P):_o(P)?this.clickActiveFeature(b,P):Bo(P)?this.clickInactive(b,P):void this.stopDragging(b)},Vo.onTap=function(b,P){return Ra(P)?this.clickNoTarget(b,P):_o(P)?this.clickActiveFeature(b,P):Bo(P)?this.clickInactive(b,P):void 0},Vo.onTouchEnd=Vo.onMouseUp=function(b){b.dragMoving&&this.fireUpdate(),this.stopDragging(b)};var Zn={};function di(b,P){return!!b.lngLat&&b.lngLat.lng===P[0]&&b.lngLat.lat===P[1]}Zn.onSetup=function(){var b=this.newFeature({type:xt.FEATURE,properties:{},geometry:{type:xt.POINT,coordinates:[]}});return this.addFeature(b),this.clearSelectedFeatures(),this.updateUIClasses({mouse:st.ADD}),this.activateUIButton(pt.POINT),this.setActionableState({trash:!0}),{point:b}},Zn.stopDrawingAndRemove=function(b){this.deleteFeature([b.point.id],{silent:!0}),this.changeMode(wt.SIMPLE_SELECT)},Zn.onTap=Zn.onClick=function(b,P){this.updateUIClasses({mouse:st.MOVE}),b.point.updateCoordinate("",P.lngLat.lng,P.lngLat.lat),this.map.fire(Nt.CREATE,{features:[b.point.toGeoJSON()]}),this.changeMode(wt.SIMPLE_SELECT,{featureIds:[b.point.id]})},Zn.onStop=function(b){this.activateUIButton(),b.point.getCoordinate().length||this.deleteFeature([b.point.id],{silent:!0})},Zn.toDisplayFeatures=function(b,P,U){var tt=P.properties.id===b.point.id;if(P.properties.active=tt?jt.ACTIVE:jt.INACTIVE,!tt)return U(P)},Zn.onTrash=Zn.stopDrawingAndRemove,Zn.onKeyUp=function(b,P){if(Ht(P)||to(P))return this.stopDrawingAndRemove(b,P)};var za={onSetup:function(){var b=this.newFeature({type:xt.FEATURE,properties:{},geometry:{type:xt.POLYGON,coordinates:[[]]}});return this.addFeature(b),this.clearSelectedFeatures(),Ce.disable(this),this.updateUIClasses({mouse:st.ADD}),this.activateUIButton(pt.POLYGON),this.setActionableState({trash:!0}),{polygon:b,currentVertexPosition:0}},clickAnywhere:function(b,P){if(b.currentVertexPosition>0&&di(P,b.polygon.coordinates[0][b.currentVertexPosition-1]))return this.changeMode(wt.SIMPLE_SELECT,{featureIds:[b.polygon.id]});this.updateUIClasses({mouse:st.ADD}),b.polygon.updateCoordinate("0."+b.currentVertexPosition,P.lngLat.lng,P.lngLat.lat),b.currentVertexPosition++,b.polygon.updateCoordinate("0."+b.currentVertexPosition,P.lngLat.lng,P.lngLat.lat)},clickOnVertex:function(b){return this.changeMode(wt.SIMPLE_SELECT,{featureIds:[b.polygon.id]})},onMouseMove:function(b,P){b.polygon.updateCoordinate("0."+b.currentVertexPosition,P.lngLat.lng,P.lngLat.lat),yo(P)&&this.updateUIClasses({mouse:st.POINTER})}};za.onTap=za.onClick=function(b,P){return yo(P)?this.clickOnVertex(b,P):this.clickAnywhere(b,P)},za.onKeyUp=function(b,P){Ht(P)?(this.deleteFeature([b.polygon.id],{silent:!0}),this.changeMode(wt.SIMPLE_SELECT)):to(P)&&this.changeMode(wt.SIMPLE_SELECT,{featureIds:[b.polygon.id]})},za.onStop=function(b){this.updateUIClasses({mouse:st.NONE}),Ce.enable(this),this.activateUIButton(),this.getFeature(b.polygon.id)!==void 0&&(b.polygon.removeCoordinate("0."+b.currentVertexPosition),b.polygon.isValid()?this.map.fire(Nt.CREATE,{features:[b.polygon.toGeoJSON()]}):(this.deleteFeature([b.polygon.id],{silent:!0}),this.changeMode(wt.SIMPLE_SELECT,{},{silent:!0})))},za.toDisplayFeatures=function(b,P,U){var tt=P.properties.id===b.polygon.id;if(P.properties.active=tt?jt.ACTIVE:jt.INACTIVE,!tt)return U(P);if(P.geometry.coordinates.length!==0){var lt=P.geometry.coordinates[0].length;if(!(lt<3)){if(P.properties.meta=Ut.FEATURE,U(Le(b.polygon.id,P.geometry.coordinates[0][0],"0.0",!1)),lt>3){var ht=P.geometry.coordinates[0].length-3;U(Le(b.polygon.id,P.geometry.coordinates[0][ht],"0."+ht,!1))}if(lt<=4){var vt=[[P.geometry.coordinates[0][0][0],P.geometry.coordinates[0][0][1]],[P.geometry.coordinates[0][1][0],P.geometry.coordinates[0][1][1]]];if(U({type:xt.FEATURE,properties:P.properties,geometry:{coordinates:vt,type:xt.LINE_STRING}}),lt===3)return}return U(P)}}},za.onTrash=function(b){this.deleteFeature([b.polygon.id],{silent:!0}),this.changeMode(wt.SIMPLE_SELECT)};var Hr={onSetup:function(b){var P,U,tt=(b=b||{}).featureId,lt="forward";if(tt){if(!(P=this.getFeature(tt)))throw new Error("Could not find a feature with the provided featureId");var ht=b.from;if(ht&&ht.type==="Feature"&&ht.geometry&&ht.geometry.type==="Point"&&(ht=ht.geometry),ht&&ht.type==="Point"&&ht.coordinates&&ht.coordinates.length===2&&(ht=ht.coordinates),!ht||!Array.isArray(ht))throw new Error("Please use the `from` property to indicate which point to continue the line from");var vt=P.coordinates.length-1;if(P.coordinates[vt][0]===ht[0]&&P.coordinates[vt][1]===ht[1])U=vt+1,P.addCoordinate.apply(P,[U].concat(P.coordinates[vt]));else{if(P.coordinates[0][0]!==ht[0]||P.coordinates[0][1]!==ht[1])throw new Error("`from` should match the point at either the start or the end of the provided LineString");lt="backwards",U=0,P.addCoordinate.apply(P,[U].concat(P.coordinates[0]))}}else P=this.newFeature({type:xt.FEATURE,properties:{},geometry:{type:xt.LINE_STRING,coordinates:[]}}),U=0,this.addFeature(P);return this.clearSelectedFeatures(),Ce.disable(this),this.updateUIClasses({mouse:st.ADD}),this.activateUIButton(pt.LINE),this.setActionableState({trash:!0}),{line:P,currentVertexPosition:U,direction:lt}},clickAnywhere:function(b,P){if(b.currentVertexPosition>0&&di(P,b.line.coordinates[b.currentVertexPosition-1])||b.direction==="backwards"&&di(P,b.line.coordinates[b.currentVertexPosition+1]))return this.changeMode(wt.SIMPLE_SELECT,{featureIds:[b.line.id]});this.updateUIClasses({mouse:st.ADD}),b.line.updateCoordinate(b.currentVertexPosition,P.lngLat.lng,P.lngLat.lat),b.direction==="forward"?(b.currentVertexPosition++,b.line.updateCoordinate(b.currentVertexPosition,P.lngLat.lng,P.lngLat.lat)):b.line.addCoordinate(0,P.lngLat.lng,P.lngLat.lat)},clickOnVertex:function(b){return this.changeMode(wt.SIMPLE_SELECT,{featureIds:[b.line.id]})},onMouseMove:function(b,P){b.line.updateCoordinate(b.currentVertexPosition,P.lngLat.lng,P.lngLat.lat),yo(P)&&this.updateUIClasses({mouse:st.POINTER})}};Hr.onTap=Hr.onClick=function(b,P){if(yo(P))return this.clickOnVertex(b,P);this.clickAnywhere(b,P)},Hr.onKeyUp=function(b,P){to(P)?this.changeMode(wt.SIMPLE_SELECT,{featureIds:[b.line.id]}):Ht(P)&&(this.deleteFeature([b.line.id],{silent:!0}),this.changeMode(wt.SIMPLE_SELECT))},Hr.onStop=function(b){Ce.enable(this),this.activateUIButton(),this.getFeature(b.line.id)!==void 0&&(b.line.removeCoordinate(""+b.currentVertexPosition),b.line.isValid()?this.map.fire(Nt.CREATE,{features:[b.line.toGeoJSON()]}):(this.deleteFeature([b.line.id],{silent:!0}),this.changeMode(wt.SIMPLE_SELECT,{},{silent:!0})))},Hr.onTrash=function(b){this.deleteFeature([b.line.id],{silent:!0}),this.changeMode(wt.SIMPLE_SELECT)},Hr.toDisplayFeatures=function(b,P,U){var tt=P.properties.id===b.line.id;if(P.properties.active=tt?jt.ACTIVE:jt.INACTIVE,!tt)return U(P);P.geometry.coordinates.length<2||(P.properties.meta=Ut.FEATURE,U(Le(b.line.id,P.geometry.coordinates[b.direction==="forward"?P.geometry.coordinates.length-2:1],""+(b.direction==="forward"?P.geometry.coordinates.length-2:1),!1)),U(P))};var Yr={simple_select:Br,direct_select:Vo,draw_point:Zn,draw_polygon:za,draw_line_string:Hr},Tu={defaultMode:wt.SIMPLE_SELECT,keybindings:!0,touchEnabled:!0,clickBuffer:2,touchBuffer:25,boxSelect:!0,displayControlsDefault:!0,styles:Dn,modes:Yr,controls:{},userProperties:!1},cl={point:!0,line_string:!0,polygon:!0,trash:!0,combine_features:!0,uncombine_features:!0},Kn={point:!1,line_string:!1,polygon:!1,trash:!1,combine_features:!1,uncombine_features:!1};function mn(b,P){return b.map(function(U){return U.source?U:At(U,{id:U.id+"."+P,source:P==="hot"?Z.HOT:Z.COLD})})}var Ps={exports:{}};(function(b,P){var U="__lodash_hash_undefined__",tt=9007199254740991,lt="[object Arguments]",ht="[object Array]",vt="[object Boolean]",Vt="[object Date]",Zt="[object Error]",se="[object Function]",ae="[object Map]",ne="[object Number]",Ge="[object Object]",tr="[object Promise]",Ze="[object RegExp]",xr="[object Set]",zt="[object String]",ye="[object Symbol]",Tn="[object WeakMap]",er="[object ArrayBuffer]",ur="[object DataView]",Oi=/^\[object .+?Constructor\]$/,Cu=/^(?:0|[1-9]\d*)$/,Rn={};Rn["[object Float32Array]"]=Rn["[object Float64Array]"]=Rn["[object Int8Array]"]=Rn["[object Int16Array]"]=Rn["[object Int32Array]"]=Rn["[object Uint8Array]"]=Rn["[object Uint8ClampedArray]"]=Rn["[object Uint16Array]"]=Rn["[object Uint32Array]"]=!0,Rn[lt]=Rn[ht]=Rn[er]=Rn[vt]=Rn[ur]=Rn[Vt]=Rn[Zt]=Rn[se]=Rn[ae]=Rn[ne]=Rn[Ge]=Rn[Ze]=Rn[xr]=Rn[zt]=Rn[Tn]=!1;var hl=typeof Th=="object"&&Th&&Th.Object===Object&&Th,Pu=typeof self=="object"&&self&&self.Object===Object&&self,Ri=hl||Pu||Function("return this")(),As=P&&!P.nodeType&&P,en=As&&b&&!b.nodeType&&b,$l=en&&en.exports===As,Ei=$l&&hl.process,ki=function(){try{return Ei&&Ei.binding&&Ei.binding("util")}catch{}}(),Au=ki&&ki.isTypedArray;function Lu(_t,Lt){for(var ee=-1,Te=_t==null?0:_t.length;++eebr))return!1;var cr=cn.get(_t);if(cr&&cn.get(Lt))return cr==Lt;var Pn=-1,zi=!0,hs=2&ee?new fl:void 0;for(cn.set(_t,Lt),cn.set(Lt,_t);++Pn-1},no.prototype.set=function(_t,Lt){var ee=this.__data__,Te=dl(ee,_t);return Te<0?(++this.size,ee.push([_t,Lt])):ee[Te][1]=Lt,this},ia.prototype.clear=function(){this.size=0,this.__data__={hash:new Cn,map:new(Uo||no),string:new Cn}},ia.prototype.delete=function(_t){var Lt=$u(this,_t).delete(_t);return this.size-=Lt?1:0,Lt},ia.prototype.get=function(_t){return $u(this,_t).get(_t)},ia.prototype.has=function(_t){return $u(this,_t).has(_t)},ia.prototype.set=function(_t,Lt){var ee=$u(this,_t),Te=ee.size;return ee.set(_t,Lt),this.size+=ee.size==Te?0:1,this},fl.prototype.add=fl.prototype.push=function(_t){return this.__data__.set(_t,U),this},fl.prototype.has=function(_t){return this.__data__.has(_t)},$o.prototype.clear=function(){this.__data__=new no,this.size=0},$o.prototype.delete=function(_t){var Lt=this.__data__,ee=Lt.delete(_t);return this.size=Lt.size,ee},$o.prototype.get=function(_t){return this.__data__.get(_t)},$o.prototype.has=function(_t){return this.__data__.has(_t)},$o.prototype.set=function(_t,Lt){var ee=this.__data__;if(ee instanceof no){var Te=ee.__data__;if(!Uo||Te.length<199)return Te.push([_t,Lt]),this.size=++ee.size,this;ee=this.__data__=new ia(Te)}return ee.set(_t,Lt),this.size=ee.size,this};var Gu=Ba?function(_t){return _t==null?[]:(_t=Object(_t),function(Lt,ee){for(var Te=-1,Gn=Lt==null?0:Lt.length,cn=0,gr=[];++Te-1&&_t%1==0&&_t-1&&_t%1==0&&_t<=tt}function Si(_t){var Lt=typeof _t;return _t!=null&&(Lt=="object"||Lt=="function")}function cs(_t){return _t!=null&&typeof _t=="object"}var _l=Au?function(_t){return function(Lt){return _t(Lt)}}(Au):function(_t){return cs(_t)&&aa(_t.length)&&!!Rn[oa(_t)]};function Zu(_t){return(Lt=_t)!=null&&aa(Lt.length)&&!rr(Lt)?Bu(_t):Hl(_t);var Lt}b.exports=function(_t,Lt){return gl(_t,Lt)}})(Ps,Ps.exports);var Qn=a(Ps.exports);function Vl(b,P){return b.length===P.length&&JSON.stringify(b.map(function(U){return U}).sort())===JSON.stringify(P.map(function(U){return U}).sort())}var bo={Polygon:Qr,LineString:dr,Point:qn,MultiPolygon:Jn,MultiLineString:Jn,MultiPoint:Jn},xc=Object.freeze({__proto__:null,CommonSelectors:lr,constrainFeatureMovement:Qs,createMidPoint:pi,createSupplementaryPoints:eo,createVertex:Le,doubleClickZoom:Ce,euclideanDistance:_n,featuresAt:Yt,getFeatureAtAndSetCursors:rn,isClick:Wn,isEventAtCoordinates:di,isTap:Cr,mapEventToBoundingBox:fn,ModeHandler:i,moveFeatures:ta,sortFeatures:ke,stringSetsAreEqual:Vl,StringSet:je,theme:Dn,toDenseArray:Qi}),ea=function(b,P){var U={options:b=function(lt){lt===void 0&&(lt={});var ht=At(lt);return lt.controls||(ht.controls={}),lt.displayControlsDefault===!1?ht.controls=At(Kn,lt.controls):ht.controls=At(cl,lt.controls),(ht=At(Tu,ht)).styles=mn(ht.styles,"cold").concat(mn(ht.styles,"hot")),ht}(b)};P=function(lt,ht){return ht.modes=wt,ht.getFeatureIdsAt=function(vt){return Yt.click({point:vt},null,lt).map(function(Vt){return Vt.properties.id})},ht.getSelectedIds=function(){return lt.store.getSelectedIds()},ht.getSelected=function(){return{type:xt.FEATURE_COLLECTION,features:lt.store.getSelectedIds().map(function(vt){return lt.store.get(vt)}).map(function(vt){return vt.toGeoJSON()})}},ht.getSelectedPoints=function(){return{type:xt.FEATURE_COLLECTION,features:lt.store.getSelectedCoordinates().map(function(vt){return{type:xt.FEATURE,properties:{},geometry:{type:xt.POINT,coordinates:vt.coordinates}}})}},ht.set=function(vt){if(vt.type===void 0||vt.type!==xt.FEATURE_COLLECTION||!Array.isArray(vt.features))throw new Error("Invalid FeatureCollection");var Vt=lt.store.createRenderBatch(),Zt=lt.store.getAllIds().slice(),se=ht.add(vt),ae=new je(se);return(Zt=Zt.filter(function(ne){return!ae.has(ne)})).length&&ht.delete(Zt),Vt(),se},ht.add=function(vt){var Vt=JSON.parse(JSON.stringify(B(vt))).features.map(function(Zt){if(Zt.id=Zt.id||Pr(),Zt.geometry===null)throw new Error("Invalid geometry: null");if(lt.store.get(Zt.id)===void 0||lt.store.get(Zt.id).type!==Zt.geometry.type){var se=bo[Zt.geometry.type];if(se===void 0)throw new Error("Invalid geometry type: "+Zt.geometry.type+".");var ae=new se(lt,Zt);lt.store.add(ae)}else{var ne=lt.store.get(Zt.id);ne.properties=Zt.properties,Qn(ne.properties,Zt.properties)||lt.store.featureChanged(ne.id),Qn(ne.getCoordinates(),Zt.geometry.coordinates)||ne.incomingCoords(Zt.geometry.coordinates)}return Zt.id});return lt.store.render(),Vt},ht.get=function(vt){var Vt=lt.store.get(vt);if(Vt)return Vt.toGeoJSON()},ht.getAll=function(){return{type:xt.FEATURE_COLLECTION,features:lt.store.getAll().map(function(vt){return vt.toGeoJSON()})}},ht.delete=function(vt){return lt.store.delete(vt,{silent:!0}),ht.getMode()!==wt.DIRECT_SELECT||lt.store.getSelectedIds().length?lt.store.render():lt.events.changeMode(wt.SIMPLE_SELECT,void 0,{silent:!0}),ht},ht.deleteAll=function(){return lt.store.delete(lt.store.getAllIds(),{silent:!0}),ht.getMode()===wt.DIRECT_SELECT?lt.events.changeMode(wt.SIMPLE_SELECT,void 0,{silent:!0}):lt.store.render(),ht},ht.changeMode=function(vt,Vt){return Vt===void 0&&(Vt={}),vt===wt.SIMPLE_SELECT&&ht.getMode()===wt.SIMPLE_SELECT?(Vl(Vt.featureIds||[],lt.store.getSelectedIds())||(lt.store.setSelected(Vt.featureIds,{silent:!0}),lt.store.render()),ht):(vt===wt.DIRECT_SELECT&&ht.getMode()===wt.DIRECT_SELECT&&Vt.featureId===lt.store.getSelectedIds()[0]||lt.events.changeMode(vt,Vt,{silent:!0}),ht)},ht.getMode=function(){return lt.events.getMode()},ht.trash=function(){return lt.events.trash({silent:!0}),ht},ht.combineFeatures=function(){return lt.events.combineFeatures({silent:!0}),ht},ht.uncombineFeatures=function(){return lt.events.uncombineFeatures({silent:!0}),ht},ht.setFeatureProperty=function(vt,Vt,Zt){return lt.store.setFeatureProperty(vt,Vt,Zt),ht},ht}(U,P),U.api=P;var tt=mo(U);return P.onAdd=tt.onAdd,P.onRemove=tt.onRemove,P.types=pt,P.options=b,P};function Ul(b){ea(b,this)}return Ul.modes=Yr,Ul.constants=Ve,Ul.lib=xc,Ul})})(tv);var Kb=tv.exports;const md=Jb(Kb),Qb=Re.createContext(null);function t1(t,e){const i=Array.isArray(t)?t[0]:t?t.x:0,a=Array.isArray(t)?t[1]:t?t.y:0,c=Array.isArray(e)?e[0]:e?e.x:0,f=Array.isArray(e)?e[1]:e?e.y:0;return i===c&&a===f}function cu(t,e){if(t===e)return!0;if(!t||!e)return!1;if(Array.isArray(t)){if(!Array.isArray(e)||t.length!==e.length)return!1;for(let i=0;i{let c=null;"interactive"in a&&(c=Object.assign({},a),delete c.interactive);const f=e[a.ref];if(f){c=c||Object.assign({},a),delete c.ref;for(const x of n1)x in f&&(c[x]=f[x])}return c||a});return{...t,layers:i}}var cy={};const hy={version:8,sources:{},layers:[]},py={mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",click:"onClick",dblclick:"onDblClick",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",mouseout:"onMouseOut",contextmenu:"onContextMenu",touchstart:"onTouchStart",touchend:"onTouchEnd",touchmove:"onTouchMove",touchcancel:"onTouchCancel"},Eg={movestart:"onMoveStart",move:"onMove",moveend:"onMoveEnd",dragstart:"onDragStart",drag:"onDrag",dragend:"onDragEnd",zoomstart:"onZoomStart",zoom:"onZoom",zoomend:"onZoomEnd",rotatestart:"onRotateStart",rotate:"onRotate",rotateend:"onRotateEnd",pitchstart:"onPitchStart",pitch:"onPitch",pitchend:"onPitchEnd"},fy={wheel:"onWheel",boxzoomstart:"onBoxZoomStart",boxzoomend:"onBoxZoomEnd",boxzoomcancel:"onBoxZoomCancel",resize:"onResize",load:"onLoad",render:"onRender",idle:"onIdle",remove:"onRemove",data:"onData",styledata:"onStyleData",sourcedata:"onSourceData",error:"onError"},r1=["minZoom","maxZoom","minPitch","maxPitch","maxBounds","projection","renderWorldCopies"],i1=["scrollZoom","boxZoom","dragRotate","dragPan","keyboard","doubleClickZoom","touchZoomRotate","touchPitch"];let Mg=class Dg{constructor(e,i,a){this._map=null,this._internalUpdate=!1,this._inRender=!1,this._hoveredFeatures=null,this._deferredEvents={move:!1,zoom:!1,pitch:!1,rotate:!1},this._onEvent=c=>{const f=this.props[fy[c.type]];f?f(c):c.type==="error"&&console.error(c.error)},this._onPointerEvent=c=>{(c.type==="mousemove"||c.type==="mouseout")&&this._updateHover(c);const f=this.props[py[c.type]];f&&(this.props.interactiveLayerIds&&c.type!=="mouseover"&&c.type!=="mouseout"&&(c.features=this._hoveredFeatures||this._queryRenderedFeatures(c.point)),f(c),delete c.features)},this._onCameraEvent=c=>{if(!this._internalUpdate){const f=this.props[Eg[c.type]];f&&f(c)}c.type in this._deferredEvents&&(this._deferredEvents[c.type]=!1)},this._MapClass=e,this.props=i,this._initialize(a)}get map(){return this._map}get transform(){return this._renderTransform}setProps(e){const i=this.props;this.props=e;const a=this._updateSettings(e,i);a&&this._createShadowTransform(this._map);const c=this._updateSize(e),f=this._updateViewState(e,!0);this._updateStyle(e,i),this._updateStyleComponents(e,i),this._updateHandlers(e,i),(a||c||f&&!this._map.isMoving())&&this.redraw()}static reuse(e,i){const a=Dg.savedMaps.pop();if(!a)return null;const c=a.map,f=c.getContainer();for(i.className=f.className;f.childNodes.length>0;)i.appendChild(f.childNodes[0]);c._container=i;const x=c._resizeObserver;x&&(x.disconnect(),x.observe(i)),a.setProps({...e,styleDiffing:!1}),c.resize();const{initialViewState:u}=e;return u&&(u.bounds?c.fitBounds(u.bounds,{...u.fitBoundsOptions,duration:0}):a._updateViewState(u,!1)),c.isStyleLoaded()?c.fire("load"):c.once("styledata",()=>c.fire("load")),c._update(),a}_initialize(e){const{props:i}=this,{mapStyle:a=hy}=i,c={...i,...i.initialViewState,accessToken:i.mapboxAccessToken||o1()||null,container:e,style:uy(a)},f=c.initialViewState||c.viewState||c;if(Object.assign(c,{center:[f.longitude||0,f.latitude||0],zoom:f.zoom||0,pitch:f.pitch||0,bearing:f.bearing||0}),i.gl){const F=HTMLCanvasElement.prototype.getContext;HTMLCanvasElement.prototype.getContext=()=>(HTMLCanvasElement.prototype.getContext=F,i.gl)}const x=new this._MapClass(c);f.padding&&x.setPadding(f.padding),i.cursor&&(x.getCanvas().style.cursor=i.cursor),this._createShadowTransform(x);const u=x._render;x._render=F=>{this._inRender=!0,u.call(x,F),this._inRender=!1};const A=x._renderTaskQueue.run;x._renderTaskQueue.run=F=>{A.call(x._renderTaskQueue,F),this._onBeforeRepaint()},x.on("render",()=>this._onAfterRepaint());const L=x.fire;x.fire=this._fireEvent.bind(this,L),x.on("resize",()=>{this._renderTransform.resize(x.transform.width,x.transform.height)}),x.on("styledata",()=>{this._updateStyleComponents(this.props,{}),sy(x.transform,this._renderTransform)}),x.on("sourcedata",()=>this._updateStyleComponents(this.props,{}));for(const F in py)x.on(F,this._onPointerEvent);for(const F in Eg)x.on(F,this._onCameraEvent);for(const F in fy)x.on(F,this._onEvent);this._map=x}recycle(){const e=this.map.getContainer().querySelector("[mapboxgl-children]");e==null||e.remove(),Dg.savedMaps.push(this)}destroy(){this._map.remove()}redraw(){const e=this._map;!this._inRender&&e.style&&(e._frame&&(e._frame.cancel(),e._frame=null),e._render())}_createShadowTransform(e){const i=e1(e.transform);e.painter.transform=i,this._renderTransform=i}_updateSize(e){const{viewState:i}=e;if(i){const a=this._map;if(i.width!==a.transform.width||i.height!==a.transform.height)return a.resize(),!0}return!1}_updateViewState(e,i){if(this._internalUpdate)return!1;const a=this._map,c=this._renderTransform,{zoom:f,pitch:x,bearing:u}=c,A=a.isMoving();A&&(c.cameraElevationReference="sea");const L=ly(c,{...ay(a.transform),...e});if(A&&(c.cameraElevationReference="ground"),L&&i){const F=this._deferredEvents;F.move=!0,F.zoom||(F.zoom=f!==c.zoom),F.rotate||(F.rotate=u!==c.bearing),F.pitch||(F.pitch=x!==c.pitch)}return A||ly(a.transform,e),L}_updateSettings(e,i){const a=this._map;let c=!1;for(const f of r1)if(f in e&&!cu(e[f],i[f])){c=!0;const x=a[`set${f[0].toUpperCase()}${f.slice(1)}`];x==null||x.call(a,e[f])}return c}_updateStyle(e,i){if(e.cursor!==i.cursor&&(this._map.getCanvas().style.cursor=e.cursor||""),e.mapStyle!==i.mapStyle){const{mapStyle:a=hy,styleDiffing:c=!0}=e,f={diff:c};return"localIdeographFontFamily"in e&&(f.localIdeographFontFamily=e.localIdeographFontFamily),this._map.setStyle(uy(a),f),!0}return!1}_updateStyleComponents(e,i){const a=this._map;let c=!1;return a.isStyleLoaded()&&("light"in e&&a.setLight&&!cu(e.light,i.light)&&(c=!0,a.setLight(e.light)),"fog"in e&&a.setFog&&!cu(e.fog,i.fog)&&(c=!0,a.setFog(e.fog)),"terrain"in e&&a.setTerrain&&!cu(e.terrain,i.terrain)&&(!e.terrain||a.getSource(e.terrain.source))&&(c=!0,a.setTerrain(e.terrain))),c}_updateHandlers(e,i){var a,c;const f=this._map;let x=!1;for(const u of i1){const A=(a=e[u])!==null&&a!==void 0?a:!0,L=(c=i[u])!==null&&c!==void 0?c:!0;cu(A,L)||(x=!0,A?f[u].enable(A):f[u].disable())}return x}_queryRenderedFeatures(e){const i=this._map,a=i.transform,{interactiveLayerIds:c=[]}=this.props;try{return i.transform=this._renderTransform,i.queryRenderedFeatures(e,{layers:c.filter(i.getLayer.bind(i))})}catch{return[]}finally{i.transform=a}}_updateHover(e){var i;const{props:a}=this;if(a.interactiveLayerIds&&(a.onMouseMove||a.onMouseEnter||a.onMouseLeave)){const c=e.type,f=((i=this._hoveredFeatures)===null||i===void 0?void 0:i.length)>0,x=this._queryRenderedFeatures(e.point),u=x.length>0;!u&&f&&(e.type="mouseleave",this._onPointerEvent(e)),this._hoveredFeatures=x,u&&!f&&(e.type="mouseenter",this._onPointerEvent(e)),e.type=c}else this._hoveredFeatures=null}_fireEvent(e,i,a){const c=this._map,f=c.transform,x=typeof i=="string"?i:i.type;return x==="move"&&this._updateViewState(this.props,!1),x in Eg&&(typeof i=="object"&&(i.viewState=ay(f)),this._map.isMoving())?(c.transform=this._renderTransform,e.call(c,i,a),c.transform=f,c):(e.call(c,i,a),c)}_onBeforeRepaint(){const e=this._map;this._internalUpdate=!0;for(const a in this._deferredEvents)this._deferredEvents[a]&&e.fire(a);this._internalUpdate=!1;const i=this._map.transform;e.transform=this._renderTransform,this._onAfterRepaint=()=>{sy(this._renderTransform,i),e.transform=i}}};Mg.savedMaps=[];function o1(){let t=null;if(typeof location<"u"){const e=/access_token=([^&\/]*)/.exec(location.search);t=e&&e[1]}try{t=t||cy.MapboxAccessToken}catch{}try{t=t||cy.REACT_APP_MAPBOX_ACCESS_TOKEN}catch{}return t}const s1=["setMaxBounds","setMinZoom","setMaxZoom","setMinPitch","setMaxPitch","setRenderWorldCopies","setProjection","setStyle","addSource","removeSource","addLayer","removeLayer","setLayerZoomRange","setFilter","setPaintProperty","setLayoutProperty","setLight","setTerrain","setFog","remove"];function a1(t){if(!t)return null;const e=t.map,i={getMap:()=>e,getCenter:()=>t.transform.center,getZoom:()=>t.transform.zoom,getBearing:()=>t.transform.bearing,getPitch:()=>t.transform.pitch,getPadding:()=>t.transform.padding,getBounds:()=>t.transform.getBounds(),project:a=>{const c=e.transform;e.transform=t.transform;const f=e.project(a);return e.transform=c,f},unproject:a=>{const c=e.transform;e.transform=t.transform;const f=e.unproject(a);return e.transform=c,f},queryTerrainElevation:(a,c)=>{const f=e.transform;e.transform=t.transform;const x=e.queryTerrainElevation(a,c);return e.transform=f,x},queryRenderedFeatures:(a,c)=>{const f=e.transform;e.transform=t.transform;const x=e.queryRenderedFeatures(a,c);return e.transform=f,x}};for(const a of l1(e))!(a in i)&&!s1.includes(a)&&(i[a]=e[a].bind(e));return i}function l1(t){const e=new Set;let i=t;for(;i;){for(const a of Object.getOwnPropertyNames(i))a[0]!=="_"&&typeof t[a]=="function"&&a!=="fire"&&a!=="setEventedParent"&&e.add(a);i=Object.getPrototypeOf(i)}return Array.from(e)}const u1=typeof document<"u"?Re.useLayoutEffect:Re.useEffect,c1=["baseApiUrl","maxParallelImageRequests","workerClass","workerCount","workerUrl"];function h1(t,e){for(const a of c1)a in e&&(t[a]=e[a]);const{RTLTextPlugin:i="https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-rtl-text/v0.2.3/mapbox-gl-rtl-text.js"}=e;i&&t.getRTLTextPluginStatus&&t.getRTLTextPluginStatus()==="unavailable"&&t.setRTLTextPlugin(i,a=>{a&&console.error(a)},!0)}const _d=Re.createContext(null);function p1(t,e,i){const a=Re.useContext(Qb),[c,f]=Re.useState(null),x=Re.useRef(),{current:u}=Re.useRef({mapLib:null,map:null});Re.useEffect(()=>{const F=t.mapLib;let j=!0,Z;return Promise.resolve(F||i).then(st=>{if(!j)return;if(!st)throw new Error("Invalid mapLib");const pt="Map"in st?st:st.default;if(!pt.Map)throw new Error("Invalid mapLib");if(h1(pt,t),!pt.supported||pt.supported(t))t.reuseMaps&&(Z=Mg.reuse(t,x.current)),Z||(Z=new Mg(pt.Map,t,x.current)),u.map=a1(Z),u.mapLib=pt,f(Z),a==null||a.onMapMount(u.map,t.id);else throw new Error("Map is not supported by this browser")}).catch(st=>{const{onError:pt}=t;pt?pt({type:"error",target:null,originalEvent:null,error:st}):console.error(st)}),()=>{j=!1,Z&&(a==null||a.onMapUnmount(t.id),t.reuseMaps?Z.recycle():Z.destroy())}},[]),u1(()=>{c&&c.setProps(t)}),Re.useImperativeHandle(e,()=>u.map,[c]);const A=Re.useMemo(()=>({position:"relative",width:"100%",height:"100%",...t.style}),[t.style]),L={height:"100%"};return Re.createElement("div",{id:t.id,ref:x,style:A},c&&Re.createElement(_d.Provider,{value:u},Re.createElement("div",{"mapboxgl-children":"",style:L},t.children)))}const f1=/box|flex|grid|column|lineHeight|fontWeight|opacity|order|tabSize|zIndex/;function Kc(t,e){if(!t||!e)return;const i=t.style;for(const a in e){const c=e[a];Number.isFinite(c)&&!f1.test(a)?i[a]=`${c}px`:i[a]=c}}function d1(t,e){const{map:i,mapLib:a}=Re.useContext(_d),c=Re.useRef({props:t});c.current.props=t;const f=Re.useMemo(()=>{let xt=!1;Re.Children.forEach(t.children,Bt=>{Bt&&(xt=!0)});const wt={...t,element:xt?document.createElement("div"):null},Nt=new a.Marker(wt);return Nt.setLngLat([t.longitude,t.latitude]),Nt.getElement().addEventListener("click",Bt=>{var Ut,jt;(jt=(Ut=c.current.props).onClick)===null||jt===void 0||jt.call(Ut,{type:"click",target:Nt,originalEvent:Bt})}),Nt.on("dragstart",Bt=>{var Ut,jt;const De=Bt;De.lngLat=f.getLngLat(),(jt=(Ut=c.current.props).onDragStart)===null||jt===void 0||jt.call(Ut,De)}),Nt.on("drag",Bt=>{var Ut,jt;const De=Bt;De.lngLat=f.getLngLat(),(jt=(Ut=c.current.props).onDrag)===null||jt===void 0||jt.call(Ut,De)}),Nt.on("dragend",Bt=>{var Ut,jt;const De=Bt;De.lngLat=f.getLngLat(),(jt=(Ut=c.current.props).onDragEnd)===null||jt===void 0||jt.call(Ut,De)}),Nt},[]);Re.useEffect(()=>(f.addTo(i.getMap()),()=>{f.remove()}),[]);const{longitude:x,latitude:u,offset:A,style:L,draggable:F=!1,popup:j=null,rotation:Z=0,rotationAlignment:st="auto",pitchAlignment:pt="auto"}=t;return Re.useEffect(()=>{Kc(f.getElement(),L)},[L]),Re.useImperativeHandle(e,()=>f,[]),(f.getLngLat().lng!==x||f.getLngLat().lat!==u)&&f.setLngLat([x,u]),A&&!t1(f.getOffset(),A)&&f.setOffset(A),f.isDraggable()!==F&&f.setDraggable(F),f.getRotation()!==Z&&f.setRotation(Z),f.getRotationAlignment()!==st&&f.setRotationAlignment(st),f.getPitchAlignment()!==pt&&f.setPitchAlignment(pt),f.getPopup()!==j&&f.setPopup(j),Qy.createPortal(t.children,f.getElement())}Re.memo(Re.forwardRef(d1));function dy(t){return new Set(t?t.trim().split(/\s+/):[])}function g1(t,e){const{map:i,mapLib:a}=Re.useContext(_d),c=Re.useMemo(()=>document.createElement("div"),[]),f=Re.useRef({props:t});f.current.props=t;const x=Re.useMemo(()=>{const u={...t},A=new a.Popup(u);return A.setLngLat([t.longitude,t.latitude]),A.once("open",L=>{var F,j;(j=(F=f.current.props).onOpen)===null||j===void 0||j.call(F,L)}),A},[]);if(Re.useEffect(()=>{const u=A=>{var L,F;(F=(L=f.current.props).onClose)===null||F===void 0||F.call(L,A)};return x.on("close",u),x.setDOMContent(c).addTo(i.getMap()),()=>{x.off("close",u),x.isOpen()&&x.remove()}},[]),Re.useEffect(()=>{Kc(x.getElement(),t.style)},[t.style]),Re.useImperativeHandle(e,()=>x,[]),x.isOpen()&&((x.getLngLat().lng!==t.longitude||x.getLngLat().lat!==t.latitude)&&x.setLngLat([t.longitude,t.latitude]),t.offset&&!cu(x.options.offset,t.offset)&&x.setOffset(t.offset),(x.options.anchor!==t.anchor||x.options.maxWidth!==t.maxWidth)&&(x.options.anchor=t.anchor,x.setMaxWidth(t.maxWidth)),x.options.className!==t.className)){const u=dy(x.options.className),A=dy(t.className);for(const L of u)A.has(L)||x.removeClassName(L);for(const L of A)u.has(L)||x.addClassName(L);x.options.className=t.className}return Qy.createPortal(t.children,c)}Re.memo(Re.forwardRef(g1));function Wh(t,e,i,a){const c=Re.useContext(_d),f=Re.useMemo(()=>t(c),[]);return Re.useEffect(()=>{const x=a||i||e,u=typeof e=="function"&&typeof i=="function"?e:null,A=typeof i=="function"?i:typeof e=="function"?e:null,{map:L}=c;return L.hasControl(f)||(L.addControl(f,x==null?void 0:x.position),u&&u(c)),()=>{A&&A(c),L.hasControl(f)&&L.removeControl(f)}},[]),f}function m1(t){const e=Wh(({mapLib:i})=>new i.AttributionControl(t),{position:t.position});return Re.useEffect(()=>{Kc(e._container,t.style)},[t.style]),null}Re.memo(m1);function _1(t){const e=Wh(({mapLib:i})=>new i.FullscreenControl({container:t.containerId&&document.getElementById(t.containerId)}),{position:t.position});return Re.useEffect(()=>{Kc(e._controlContainer,t.style)},[t.style]),null}Re.memo(_1);function y1(t,e){const i=Re.useRef({props:t}),a=Wh(({mapLib:c})=>{const f=new c.GeolocateControl(t),x=f._setupUI;return f._setupUI=u=>{f._container.hasChildNodes()||x(u)},f.on("geolocate",u=>{var A,L;(L=(A=i.current.props).onGeolocate)===null||L===void 0||L.call(A,u)}),f.on("error",u=>{var A,L;(L=(A=i.current.props).onError)===null||L===void 0||L.call(A,u)}),f.on("outofmaxbounds",u=>{var A,L;(L=(A=i.current.props).onOutOfMaxBounds)===null||L===void 0||L.call(A,u)}),f.on("trackuserlocationstart",u=>{var A,L;(L=(A=i.current.props).onTrackUserLocationStart)===null||L===void 0||L.call(A,u)}),f.on("trackuserlocationend",u=>{var A,L;(L=(A=i.current.props).onTrackUserLocationEnd)===null||L===void 0||L.call(A,u)}),f},{position:t.position});return i.current.props=t,Re.useImperativeHandle(e,()=>a,[]),Re.useEffect(()=>{Kc(a._container,t.style)},[t.style]),null}Re.memo(Re.forwardRef(y1));function v1(t){const e=Wh(({mapLib:i})=>new i.NavigationControl(t),{position:t.position});return Re.useEffect(()=>{Kc(e._container,t.style)},[t.style]),null}Re.memo(v1);function x1(t){const e=Wh(({mapLib:f})=>new f.ScaleControl(t),{position:t.position}),i=Re.useRef(t),a=i.current;i.current=t;const{style:c}=t;return t.maxWidth!==void 0&&t.maxWidth!==a.maxWidth&&(e.options.maxWidth=t.maxWidth),t.unit!==void 0&&t.unit!==a.unit&&e.setUnit(t.unit),Re.useEffect(()=>{Kc(e._container,c)},[c]),null}Re.memo(x1);const b1=Wb(()=>import("./index.es62-KR_AuFpw.js"),__vite__mapDeps([]),import.meta.url).then(t=>t.i);Re.forwardRef(function(t,e){return p1(t,e,b1)});Re.forwardRef((t,e)=>{const i=Wh(()=>new md(t),({map:a})=>{a.on("draw.create",t.onCreate),a.on("draw.update",t.onUpdate),a.on("draw.delete",t.onDelete)},({map:a})=>{a.off("draw.create",t.onCreate),a.off("draw.update",t.onUpdate),a.off("draw.delete",t.onDelete)},{position:t.position});return Re.useImperativeHandle(e,()=>i,[i]),null});var ev={exports:{}},Bp={},gy;function w1(){if(gy)return Bp;gy=1;/** * @license React * react-jsx-runtime.production.min.js * diff --git a/docs/assets/ReferenceCodeDropdown-DuhJF7pk.js b/docs/assets/ReferenceCodeDropdown-BxuC_CmL.js similarity index 97% rename from docs/assets/ReferenceCodeDropdown-DuhJF7pk.js rename to docs/assets/ReferenceCodeDropdown-BxuC_CmL.js index a0177b9f..8326657c 100644 --- a/docs/assets/ReferenceCodeDropdown-DuhJF7pk.js +++ b/docs/assets/ReferenceCodeDropdown-BxuC_CmL.js @@ -1,4 +1,4 @@ -import{j as g}from"./jsx-runtime-BTCK_S7S.js";import{r as a}from"./index-CBqU2yxZ.js";import{D as v}from"./Dropdown-Di2cPjwR.js";import{_ as t}from"./index-default-C_maRo4o.js";import"./index.es28-dE8xdd4L.js";import{s as h}from"./index.es12-BES12XY4.js";class k extends h{getBaseUrl(){return"/controlled_vocabulary/reference_codes"}getTransform(){return{}}}const w=new k,p=e=>{const[d,c]=a.useState(!1),[i,y]=a.useState([]),_=a.useMemo(()=>{const r=t.pluck(t.filter(e.value,n=>!n._destroy),"reference_code_id");return e.multiple?r:t.first(r)},[e.multiple,e.value]),m=a.useCallback(r=>{const n=t.findWhere(i,{key:r});return{reference_code_id:r,reference_code:{id:r,name:n.text}}},[i]),f=a.useCallback(r=>({key:r.id,value:r.id,text:r.name}),[]),b=a.useCallback((r,n)=>{let u;e.multiple?u=n.value:u=t.compact([n.value]);const o=[];t.each(u,l=>{let s=t.findWhere(e.value,{reference_code_id:l});s||(s=m(l)),o.push(t.omit(s,"_destroy"))}),t.each(e.value,l=>{l.id&&!t.contains(u,l.reference_code_id)&&o.push({...l,_destroy:!0})}),e.onChange(o)},[m,e.multiple,e.onChange,e.value]);return a.useEffect(()=>{c(!0);const r={per_page:0,reference_table:e.referenceTable,sort_by:"name"};w.fetchAll(r).then(({data:n})=>y(t.map(n.reference_codes,f))).finally(()=>c(!1))},[f]),g.jsx(v,{clearable:!0,disabled:d||e.disabled,fluid:e.fluid,loading:d,multiple:e.multiple,onChange:b,options:i,placeholder:e.placeholder,search:!0,selection:!0,selectOnBlur:!1,value:_})};p.defaultProps={disabled:!1,fluid:!0,multiple:!1,placeholder:void 0};p.__docgenInfo={description:"",methods:[],displayName:"ReferenceCodeDropdown",props:{disabled:{required:!1,flowType:{name:"boolean"},description:"",defaultValue:{value:"false",computed:!1}},fluid:{required:!1,flowType:{name:"boolean"},description:"",defaultValue:{value:"true",computed:!1}},multiple:{required:!1,flowType:{name:"boolean"},description:"",defaultValue:{value:"false",computed:!1}},onChange:{required:!0,flowType:{name:"signature",type:"function",raw:"(item: Item) => void",signature:{arguments:[{name:"item",type:{name:"signature",type:"object",raw:`{ +import{j as g}from"./jsx-runtime-BTCK_S7S.js";import{r as a}from"./index-CBqU2yxZ.js";import{D as v}from"./Dropdown-Di2cPjwR.js";import{_ as t}from"./index-default-C_maRo4o.js";import"./index.es28-Dp3-vHIY.js";import{s as h}from"./index.es12-BljXGOZw.js";class k extends h{getBaseUrl(){return"/controlled_vocabulary/reference_codes"}getTransform(){return{}}}const w=new k,p=e=>{const[d,c]=a.useState(!1),[i,y]=a.useState([]),_=a.useMemo(()=>{const r=t.pluck(t.filter(e.value,n=>!n._destroy),"reference_code_id");return e.multiple?r:t.first(r)},[e.multiple,e.value]),m=a.useCallback(r=>{const n=t.findWhere(i,{key:r});return{reference_code_id:r,reference_code:{id:r,name:n.text}}},[i]),f=a.useCallback(r=>({key:r.id,value:r.id,text:r.name}),[]),b=a.useCallback((r,n)=>{let u;e.multiple?u=n.value:u=t.compact([n.value]);const o=[];t.each(u,l=>{let s=t.findWhere(e.value,{reference_code_id:l});s||(s=m(l)),o.push(t.omit(s,"_destroy"))}),t.each(e.value,l=>{l.id&&!t.contains(u,l.reference_code_id)&&o.push({...l,_destroy:!0})}),e.onChange(o)},[m,e.multiple,e.onChange,e.value]);return a.useEffect(()=>{c(!0);const r={per_page:0,reference_table:e.referenceTable,sort_by:"name"};w.fetchAll(r).then(({data:n})=>y(t.map(n.reference_codes,f))).finally(()=>c(!1))},[f]),g.jsx(v,{clearable:!0,disabled:d||e.disabled,fluid:e.fluid,loading:d,multiple:e.multiple,onChange:b,options:i,placeholder:e.placeholder,search:!0,selection:!0,selectOnBlur:!1,value:_})};p.defaultProps={disabled:!1,fluid:!0,multiple:!1,placeholder:void 0};p.__docgenInfo={description:"",methods:[],displayName:"ReferenceCodeDropdown",props:{disabled:{required:!1,flowType:{name:"boolean"},description:"",defaultValue:{value:"false",computed:!1}},fluid:{required:!1,flowType:{name:"boolean"},description:"",defaultValue:{value:"true",computed:!1}},multiple:{required:!1,flowType:{name:"boolean"},description:"",defaultValue:{value:"false",computed:!1}},onChange:{required:!0,flowType:{name:"signature",type:"function",raw:"(item: Item) => void",signature:{arguments:[{name:"item",type:{name:"signature",type:"object",raw:`{ reference_table_id: number, key: string }`,signature:{properties:[{key:"reference_table_id",value:{name:"number",required:!0}},{key:"key",value:{name:"string",required:!0}}]}}}],return:{name:"void"}}},description:""},placeholder:{required:!1,flowType:{name:"string"},description:"",defaultValue:{value:"undefined",computed:!0}},referenceTable:{required:!0,flowType:{name:"string"},description:""},value:{required:!0,flowType:{name:"union",raw:"Item | Array",elements:[{name:"signature",type:"object",raw:`{ diff --git a/docs/assets/ReferenceCodeDropdown.stories-C-buW2Pl.js b/docs/assets/ReferenceCodeDropdown.stories-Ck_yEqzN.js similarity index 86% rename from docs/assets/ReferenceCodeDropdown.stories-C-buW2Pl.js rename to docs/assets/ReferenceCodeDropdown.stories-Ck_yEqzN.js index 5f046840..759ef56b 100644 --- a/docs/assets/ReferenceCodeDropdown.stories-C-buW2Pl.js +++ b/docs/assets/ReferenceCodeDropdown.stories-Ck_yEqzN.js @@ -1,4 +1,4 @@ -import{j as s}from"./jsx-runtime-BTCK_S7S.js";import{r as b}from"./index-CBqU2yxZ.js";import{a as C}from"./chunk-WFFRPTHA-B2vgThZf.js";import{d as h}from"./index-DfmhmaGJ.js";import{R as n}from"./ReferenceCodeDropdown-DuhJF7pk.js";import"./_commonjsHelpers-BosuxZz1.js";import"./preview-errors-CzpZmerH.js";import"./index-CKJfshIT.js";import"./v4-D8aEg3BZ.js";import"./mapValues-CZh2vnSw.js";import"./pickBy-CU2rOOKe.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-Bu_b4Pek.js";import"./index-Cw1G72V2.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./debounce-Bq1aTuh-.js";import"./Dropdown-Di2cPjwR.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./includes-CQoJOerW.js";import"./getElementType-CckcRzoH.js";import"./toFinite-KQ8KevIC.js";import"./map-B4PnIEPz.js";import"./without-BP-mqg2K.js";import"./isArrayLikeObject-CbXKTyfk.js";import"./isEmpty-Cyb9hIKi.js";import"./deburr-CEfyoYOr.js";import"./index-BBpNyw-T.js";import"./_baseSet-6y0qliU9.js";import"./_baseAssignValue-izmKBXUH.js";import"./_arrayReduce-CrxnWFSq.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./index-DZGZymok.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./Icon-2tEtgK8g.js";import"./Label-Cq1fb1cd.js";import"./forEach-CXlln0XP.js";import"./Dimmer-D_gwaesu.js";import"./filter-CVNi8iPS.js";import"./index-default-C_maRo4o.js";import"./index.es28-dE8xdd4L.js";import"./iframe-ovyJW9VA.js";import"../sb-preview/runtime.js";import"./index.es12-BES12XY4.js";const ge={title:"Components/Controlled Vocabulary/ReferenceCodeDropdown",decorators:[h.withKnobs]},e=()=>s.jsx(n,{fluid:!0,label:"Locations",required:!0,onChange:C("change"),referenceTable:"locations",value:""}),r=()=>{const[t,i]=b.useState([]);return s.jsx(n,{fluid:!0,label:"Locations",multiple:!0,required:!0,onChange:a=>i(a),referenceTable:"locations",value:t})},o=()=>{const[t,i]=b.useState([{reference_code_id:1},{reference_code_id:2}]);return s.jsx(n,{fluid:!0,label:"Locations",multiple:!0,required:!0,onChange:a=>i(a),referenceTable:"locations",value:t})};e.__docgenInfo={description:"",methods:[],displayName:"Default"};r.__docgenInfo={description:"",methods:[],displayName:"Multiple"};o.__docgenInfo={description:"",methods:[],displayName:"ExistingValues"};var p,l,m;e.parameters={...e.parameters,docs:{...(p=e.parameters)==null?void 0:p.docs,source:{originalSource:"() => ",...(m=(l=e.parameters)==null?void 0:l.docs)==null?void 0:m.source}}};var c,u,d;r.parameters={...r.parameters,docs:{...(c=r.parameters)==null?void 0:c.docs,source:{originalSource:`() => { +import{j as s}from"./jsx-runtime-BTCK_S7S.js";import{r as b}from"./index-CBqU2yxZ.js";import{a as C}from"./chunk-WFFRPTHA-B2vgThZf.js";import{d as h}from"./index-CAen7T_W.js";import{R as n}from"./ReferenceCodeDropdown-BxuC_CmL.js";import"./_commonjsHelpers-BosuxZz1.js";import"./preview-errors-CzpZmerH.js";import"./index-CKJfshIT.js";import"./v4-D8aEg3BZ.js";import"./mapValues-LQZI9uWW.js";import"./pickBy-Us6u5-To.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-DCkRKKtx.js";import"./index-Cw1G72V2.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./debounce-BkgZrIul.js";import"./Dropdown-Di2cPjwR.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./includes-CQoJOerW.js";import"./getElementType-CckcRzoH.js";import"./toFinite-KQ8KevIC.js";import"./map-B4PnIEPz.js";import"./without-BP-mqg2K.js";import"./isArrayLikeObject-CbXKTyfk.js";import"./isEmpty-Cyb9hIKi.js";import"./deburr-CEfyoYOr.js";import"./index-BBpNyw-T.js";import"./_baseSet-6y0qliU9.js";import"./_baseAssignValue-izmKBXUH.js";import"./_arrayReduce-CrxnWFSq.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./index-DZGZymok.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./Icon-2tEtgK8g.js";import"./Label-Cq1fb1cd.js";import"./forEach-CXlln0XP.js";import"./Dimmer-D_gwaesu.js";import"./filter-CVNi8iPS.js";import"./index-default-C_maRo4o.js";import"./index.es28-Dp3-vHIY.js";import"./iframe-BQtATEn0.js";import"../sb-preview/runtime.js";import"./index.es12-BljXGOZw.js";const ge={title:"Components/Controlled Vocabulary/ReferenceCodeDropdown",decorators:[h.withKnobs]},e=()=>s.jsx(n,{fluid:!0,label:"Locations",required:!0,onChange:C("change"),referenceTable:"locations",value:""}),r=()=>{const[t,i]=b.useState([]);return s.jsx(n,{fluid:!0,label:"Locations",multiple:!0,required:!0,onChange:a=>i(a),referenceTable:"locations",value:t})},o=()=>{const[t,i]=b.useState([{reference_code_id:1},{reference_code_id:2}]);return s.jsx(n,{fluid:!0,label:"Locations",multiple:!0,required:!0,onChange:a=>i(a),referenceTable:"locations",value:t})};e.__docgenInfo={description:"",methods:[],displayName:"Default"};r.__docgenInfo={description:"",methods:[],displayName:"Multiple"};o.__docgenInfo={description:"",methods:[],displayName:"ExistingValues"};var p,l,m;e.parameters={...e.parameters,docs:{...(p=e.parameters)==null?void 0:p.docs,source:{originalSource:"() => ",...(m=(l=e.parameters)==null?void 0:l.docs)==null?void 0:m.source}}};var c,u,d;r.parameters={...r.parameters,docs:{...(c=r.parameters)==null?void 0:c.docs,source:{originalSource:`() => { const [value, setValue] = useState([]); return setValue(selected)} referenceTable='locations' value={value} />; }`,...(d=(u=r.parameters)==null?void 0:u.docs)==null?void 0:d.source}}};var f,g,_;o.parameters={...o.parameters,docs:{...(f=o.parameters)==null?void 0:f.docs,source:{originalSource:`() => { diff --git a/docs/assets/ReferenceCodeFormDropdown.stories-paQfOUbk.js b/docs/assets/ReferenceCodeFormDropdown.stories-D95XH1zc.js similarity index 91% rename from docs/assets/ReferenceCodeFormDropdown.stories-paQfOUbk.js rename to docs/assets/ReferenceCodeFormDropdown.stories-D95XH1zc.js index aa657a07..5f9d0591 100644 --- a/docs/assets/ReferenceCodeFormDropdown.stories-paQfOUbk.js +++ b/docs/assets/ReferenceCodeFormDropdown.stories-D95XH1zc.js @@ -1,3 +1,3 @@ -import{j as o}from"./jsx-runtime-BTCK_S7S.js";import{r as y}from"./index-CBqU2yxZ.js";import{d as q}from"./index-DfmhmaGJ.js";import{a as F}from"./chunk-WFFRPTHA-B2vgThZf.js";import{F as m}from"./Form-fErk-qk_.js";import{o as j,d as I,t as P,h as k}from"./index.es98-Dz6XvXHK.js";import{r as a}from"./index.es28-dE8xdd4L.js";import"./index-DZGZymok.js";import{R as S}from"./ReferenceCodeDropdown-DuhJF7pk.js";import{i as s,R as K}from"./ReferenceCodeFormLabel-DfITz1xW.js";import{H as E}from"./Header-BJ3NNdPz.js";import{M as l}from"./Modal-Bz2VEyQG.js";import{s as A}from"./index.es12-BES12XY4.js";import{u as N}from"./DragDrop-ryAVAQMJ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./mapValues-CZh2vnSw.js";import"./pickBy-CU2rOOKe.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-Bu_b4Pek.js";import"./index-Cw1G72V2.js";import"./index-CKJfshIT.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./preview-errors-CzpZmerH.js";import"./debounce-Bq1aTuh-.js";import"./v4-D8aEg3BZ.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getElementType-CckcRzoH.js";import"./Button-Blq7Z6RX.js";import"./Icon-2tEtgK8g.js";import"./Label-Cq1fb1cd.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./forEach-CXlln0XP.js";import"./Dimmer-D_gwaesu.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./map-B4PnIEPz.js";import"./Checkbox-C9uAfnsM.js";import"./_baseSet-6y0qliU9.js";import"./_baseAssignValue-izmKBXUH.js";import"./Dropdown-Di2cPjwR.js";import"./without-BP-mqg2K.js";import"./isArrayLikeObject-CbXKTyfk.js";import"./isEmpty-Cyb9hIKi.js";import"./deburr-CEfyoYOr.js";import"./index-BBpNyw-T.js";import"./_arrayReduce-CrxnWFSq.js";import"./filter-CVNi8iPS.js";import"./Input--hQVCRQV.js";import"./index.es3-D5uPylQL.js";import"./index.es2-BuM_NOqV.js";import"./index.es23-SQskR_RA.js";import"./useDrop-BRQoWSA5.js";import"./DndContext-B-2NJP7Z.js";import"./redux-C8f_Y06i.js";import"./objectSpread2-N4c0DWqo.js";import"./defineProperty-CCxoMnQV.js";import"./toPropertyKey-hKuLU48H.js";import"./index.es21-BD0kU5QO.js";import"./iframe-ovyJW9VA.js";import"../sb-preview/runtime.js";import"./index-default-C_maRo4o.js";import"./Popup-BP01NTlV.js";import"./createClass-D2z1h_eG.js";import"./inherits-D5wXBZoG.js";import"./getPrototypeOf-BYVhAdwF.js";import"./toArray-D9zoIPho.js";import"./nonIterableRest-Bc-81Ll3.js";import"./iterableToArray-DI-mZnTP.js";import"./unsupportedIterableToArray-78IFcom3.js";const $=(e,r)=>e&&r&&e.toString().toLowerCase().includes(r.toString().toLowerCase()),L=e=>a.isNumber(e)||a.isBoolean(e)?e:e||"",B={includes:$,toString:L},h=(e,r,n,i)=>{if(!a.has(n,i))return;const t=n[i];a.isArray(t)?a.each(t,(d,c)=>h(e,`${r}[${i}]`,t,c)):a.isObject(t)&&!a.isFunction(t)?a.each(a.keys(t),d=>h(e,`${r}[${i}]`,t,d)):e.append(`${r}[${i}]`,B.toString(t))},H={setAttribute:h};class C{constructor(){if(this.constructor===C)throw new TypeError('Abstract class "NestedAttributesTransform" cannot be instantiated directly.')}getPayloadKeys(){return[]}toFormData(r,n,i,t){a.each(i[t],(d,c)=>{a.each(this.getPayloadKeys(),p=>{H.setAttribute(r,`${n}[${t}][${c}]`,d,p)})})}toPayload(r,n){return{[n]:a.map(r[n],(i,t)=>({...a.pick(i,this.getPayloadKeys()),order:t}))}}}const _=e=>o.jsx(j.Consumer,{children:r=>o.jsxs(l,{as:m,centered:!1,mountNode:r,open:!0,children:[o.jsx(l.Header,{content:e.item.id?s.t("ReferenceCodeModal.title.edit"):s.t("ReferenceCodeModal.title.add")}),o.jsx(l.Content,{children:o.jsx(m.Input,{autoFocus:!0,error:e.isError("name"),label:s.t("ReferenceCodeModal.labels.name"),onChange:e.onTextInputChange.bind(void 0,"name"),required:e.isRequired("name"),value:e.item.name})}),e.children]})});_.__docgenInfo={description:"",methods:[],displayName:"ReferenceCodeModal"};const w=e=>o.jsx(j.Consumer,{children:r=>o.jsxs(l,{as:m,centered:!1,className:"reference-table-modal",mountNode:r,open:!0,children:[o.jsx(l.Header,{content:e.item.id?s.t("ReferenceTableModal.title.edit"):s.t("ReferenceTableModal.title.add")}),o.jsxs(l.Content,{children:[o.jsx(m.Input,{autoFocus:!0,error:e.isError("name"),label:s.t("ReferenceTableModal.labels.name"),onChange:e.onTextInputChange.bind(void 0,"name"),required:e.isRequired("name"),value:e.item.name}),o.jsx(m.Input,{error:e.isError("key"),label:s.t("ReferenceTableModal.labels.key"),onChange:e.onTextInputChange.bind(void 0,"key"),required:e.isRequired("key"),value:e.item.key}),o.jsx(E,{content:s.t("ReferenceTableModal.labels.referenceCodes")}),o.jsx(I,{actions:[{name:"edit"},{name:"copy"},{name:"delete"}],columns:[{name:"name",label:s.t("ReferenceTableModal.referenceCodes.columns.name")}],items:e.item.reference_codes,modal:{component:_,props:{required:["name"]}},onDelete:e.onDeleteChildAssociation.bind(void 0,"reference_codes"),onSave:e.onSaveChildAssociation.bind(void 0,"reference_codes")})]}),e.children]})});w.__docgenInfo={description:"",methods:[],displayName:"ReferenceTableModal"};class O extends C{getPayloadKeys(){return["id","name","_destroy"]}toPayload(r,n="reference_codes"){return super.toPayload(r,n)}}const U=new O;class z extends P{getParameterName(){return"reference_table"}getPayloadKeys(){return["name","key"]}toPayload(r,n={}){return super.toPayload(r,{...n,...U.toPayload(r)})}}const V=new z;class G extends A{fetchByKey(r){return this.getAxios().get(`${this.getBaseUrl()}/find_by_key`,{params:{key:r}})}getBaseUrl(){return"/controlled_vocabulary/reference_tables"}getTransform(){return V}}const g=new G,D=e=>{const{error:r,label:n,required:i,referenceTable:t,...d}=e,[c,p]=y.useState(!1),[v,M]=y.useState(0);return o.jsxs(o.Fragment,{children:[o.jsx(m.Input,{error:r,label:o.jsx(K,{label:n,onClick:()=>p(!0),referenceTable:t}),required:i,children:y.createElement(S,{...d,id:t,referenceTable:t,key:v})}),c&&o.jsx(k,{component:w,item:{id:t,key:t},onClose:()=>p(!1),onInitialize:b=>g.fetchByKey(b).then(({data:f})=>({...f.reference_table,key:b})),onSave:b=>g.save(b).then(({data:f})=>f.reference_table).then(()=>M(f=>f+1)).finally(()=>p(!1))})]})};D.__docgenInfo={description:"",methods:[],displayName:"ReferenceCodeFormDropdown",props:{error:{required:!1,flowType:{name:"boolean"},description:""},label:{required:!1,flowType:{name:"string"},description:""},required:{required:!1,flowType:{name:"boolean"},description:""},referenceTable:{required:!0,flowType:{name:"string"},description:""}}};const yr={title:"Components/Controlled Vocabulary/ReferenceCodeFormDropdown",decorators:[q.withKnobs]},u=N(()=>o.jsx(m,{children:o.jsx(D,{fluid:!0,label:"Locations",required:!0,onChange:F("change"),referenceTable:"locations",value:""})}));u.__docgenInfo={description:"",methods:[],displayName:"Default"};var x,R,T;u.parameters={...u.parameters,docs:{...(x=u.parameters)==null?void 0:x.docs,source:{originalSource:`useDragDrop(() => +import{j as o}from"./jsx-runtime-BTCK_S7S.js";import{r as y}from"./index-CBqU2yxZ.js";import{d as q}from"./index-CAen7T_W.js";import{a as F}from"./chunk-WFFRPTHA-B2vgThZf.js";import{F as m}from"./Form-fErk-qk_.js";import{o as j,d as I,t as P,h as k}from"./index.es98-CYRWAWq9.js";import{r as a}from"./index.es28-Dp3-vHIY.js";import"./index-DZGZymok.js";import{R as S}from"./ReferenceCodeDropdown-BxuC_CmL.js";import{i as s,R as K}from"./ReferenceCodeFormLabel-DfITz1xW.js";import{H as E}from"./Header-BJ3NNdPz.js";import{M as l}from"./Modal-Bz2VEyQG.js";import{s as A}from"./index.es12-BljXGOZw.js";import{u as N}from"./DragDrop-ryAVAQMJ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./mapValues-LQZI9uWW.js";import"./pickBy-Us6u5-To.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-DCkRKKtx.js";import"./index-Cw1G72V2.js";import"./index-CKJfshIT.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./preview-errors-CzpZmerH.js";import"./debounce-BkgZrIul.js";import"./v4-D8aEg3BZ.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getElementType-CckcRzoH.js";import"./Button-Blq7Z6RX.js";import"./Icon-2tEtgK8g.js";import"./Label-Cq1fb1cd.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./forEach-CXlln0XP.js";import"./Dimmer-D_gwaesu.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./map-B4PnIEPz.js";import"./Checkbox-C9uAfnsM.js";import"./_baseSet-6y0qliU9.js";import"./_baseAssignValue-izmKBXUH.js";import"./Dropdown-Di2cPjwR.js";import"./without-BP-mqg2K.js";import"./isArrayLikeObject-CbXKTyfk.js";import"./isEmpty-Cyb9hIKi.js";import"./deburr-CEfyoYOr.js";import"./index-BBpNyw-T.js";import"./_arrayReduce-CrxnWFSq.js";import"./filter-CVNi8iPS.js";import"./Input--hQVCRQV.js";import"./index.es3-Dgr_7mVc.js";import"./index.es2-9OW1Q_bJ.js";import"./index.es23-SQskR_RA.js";import"./useDrop-BRQoWSA5.js";import"./DndContext-B-2NJP7Z.js";import"./redux-C8f_Y06i.js";import"./objectSpread2-N4c0DWqo.js";import"./defineProperty-CCxoMnQV.js";import"./toPropertyKey-hKuLU48H.js";import"./index.es21-BD0kU5QO.js";import"./iframe-BQtATEn0.js";import"../sb-preview/runtime.js";import"./index-default-C_maRo4o.js";import"./Popup-BP01NTlV.js";import"./createClass-D2z1h_eG.js";import"./inherits-D5wXBZoG.js";import"./getPrototypeOf-BYVhAdwF.js";import"./toArray-D9zoIPho.js";import"./nonIterableRest-Bc-81Ll3.js";import"./iterableToArray-DI-mZnTP.js";import"./unsupportedIterableToArray-78IFcom3.js";const $=(e,r)=>e&&r&&e.toString().toLowerCase().includes(r.toString().toLowerCase()),L=e=>a.isNumber(e)||a.isBoolean(e)?e:e||"",B={includes:$,toString:L},h=(e,r,n,i)=>{if(!a.has(n,i))return;const t=n[i];a.isArray(t)?a.each(t,(d,c)=>h(e,`${r}[${i}]`,t,c)):a.isObject(t)&&!a.isFunction(t)?a.each(a.keys(t),d=>h(e,`${r}[${i}]`,t,d)):e.append(`${r}[${i}]`,B.toString(t))},H={setAttribute:h};class C{constructor(){if(this.constructor===C)throw new TypeError('Abstract class "NestedAttributesTransform" cannot be instantiated directly.')}getPayloadKeys(){return[]}toFormData(r,n,i,t){a.each(i[t],(d,c)=>{a.each(this.getPayloadKeys(),p=>{H.setAttribute(r,`${n}[${t}][${c}]`,d,p)})})}toPayload(r,n){return{[n]:a.map(r[n],(i,t)=>({...a.pick(i,this.getPayloadKeys()),order:t}))}}}const _=e=>o.jsx(j.Consumer,{children:r=>o.jsxs(l,{as:m,centered:!1,mountNode:r,open:!0,children:[o.jsx(l.Header,{content:e.item.id?s.t("ReferenceCodeModal.title.edit"):s.t("ReferenceCodeModal.title.add")}),o.jsx(l.Content,{children:o.jsx(m.Input,{autoFocus:!0,error:e.isError("name"),label:s.t("ReferenceCodeModal.labels.name"),onChange:e.onTextInputChange.bind(void 0,"name"),required:e.isRequired("name"),value:e.item.name})}),e.children]})});_.__docgenInfo={description:"",methods:[],displayName:"ReferenceCodeModal"};const w=e=>o.jsx(j.Consumer,{children:r=>o.jsxs(l,{as:m,centered:!1,className:"reference-table-modal",mountNode:r,open:!0,children:[o.jsx(l.Header,{content:e.item.id?s.t("ReferenceTableModal.title.edit"):s.t("ReferenceTableModal.title.add")}),o.jsxs(l.Content,{children:[o.jsx(m.Input,{autoFocus:!0,error:e.isError("name"),label:s.t("ReferenceTableModal.labels.name"),onChange:e.onTextInputChange.bind(void 0,"name"),required:e.isRequired("name"),value:e.item.name}),o.jsx(m.Input,{error:e.isError("key"),label:s.t("ReferenceTableModal.labels.key"),onChange:e.onTextInputChange.bind(void 0,"key"),required:e.isRequired("key"),value:e.item.key}),o.jsx(E,{content:s.t("ReferenceTableModal.labels.referenceCodes")}),o.jsx(I,{actions:[{name:"edit"},{name:"copy"},{name:"delete"}],columns:[{name:"name",label:s.t("ReferenceTableModal.referenceCodes.columns.name")}],items:e.item.reference_codes,modal:{component:_,props:{required:["name"]}},onDelete:e.onDeleteChildAssociation.bind(void 0,"reference_codes"),onSave:e.onSaveChildAssociation.bind(void 0,"reference_codes")})]}),e.children]})});w.__docgenInfo={description:"",methods:[],displayName:"ReferenceTableModal"};class O extends C{getPayloadKeys(){return["id","name","_destroy"]}toPayload(r,n="reference_codes"){return super.toPayload(r,n)}}const U=new O;class z extends P{getParameterName(){return"reference_table"}getPayloadKeys(){return["name","key"]}toPayload(r,n={}){return super.toPayload(r,{...n,...U.toPayload(r)})}}const V=new z;class G extends A{fetchByKey(r){return this.getAxios().get(`${this.getBaseUrl()}/find_by_key`,{params:{key:r}})}getBaseUrl(){return"/controlled_vocabulary/reference_tables"}getTransform(){return V}}const g=new G,D=e=>{const{error:r,label:n,required:i,referenceTable:t,...d}=e,[c,p]=y.useState(!1),[v,M]=y.useState(0);return o.jsxs(o.Fragment,{children:[o.jsx(m.Input,{error:r,label:o.jsx(K,{label:n,onClick:()=>p(!0),referenceTable:t}),required:i,children:y.createElement(S,{...d,id:t,referenceTable:t,key:v})}),c&&o.jsx(k,{component:w,item:{id:t,key:t},onClose:()=>p(!1),onInitialize:b=>g.fetchByKey(b).then(({data:f})=>({...f.reference_table,key:b})),onSave:b=>g.save(b).then(({data:f})=>f.reference_table).then(()=>M(f=>f+1)).finally(()=>p(!1))})]})};D.__docgenInfo={description:"",methods:[],displayName:"ReferenceCodeFormDropdown",props:{error:{required:!1,flowType:{name:"boolean"},description:""},label:{required:!1,flowType:{name:"string"},description:""},required:{required:!1,flowType:{name:"boolean"},description:""},referenceTable:{required:!0,flowType:{name:"string"},description:""}}};const yr={title:"Components/Controlled Vocabulary/ReferenceCodeFormDropdown",decorators:[q.withKnobs]},u=N(()=>o.jsx(m,{children:o.jsx(D,{fluid:!0,label:"Locations",required:!0,onChange:F("change"),referenceTable:"locations",value:""})}));u.__docgenInfo={description:"",methods:[],displayName:"Default"};var x,R,T;u.parameters={...u.parameters,docs:{...(x=u.parameters)==null?void 0:x.docs,source:{originalSource:`useDragDrop(() => )`,...(T=(R=u.parameters)==null?void 0:R.docs)==null?void 0:T.source}}};const hr=["Default"];export{u as Default,hr as __namedExportsOrder,yr as default}; diff --git a/docs/assets/ReferenceCodeFormLabel.stories-D1BDWrjF.js b/docs/assets/ReferenceCodeFormLabel.stories-CynY05BP.js similarity index 89% rename from docs/assets/ReferenceCodeFormLabel.stories-D1BDWrjF.js rename to docs/assets/ReferenceCodeFormLabel.stories-CynY05BP.js index c49bfce9..bbe7c2bd 100644 --- a/docs/assets/ReferenceCodeFormLabel.stories-D1BDWrjF.js +++ b/docs/assets/ReferenceCodeFormLabel.stories-CynY05BP.js @@ -1 +1 @@ -import{j as m}from"./jsx-runtime-BTCK_S7S.js";import"./index-CBqU2yxZ.js";import{d as e}from"./index-DfmhmaGJ.js";import{a as p}from"./chunk-WFFRPTHA-B2vgThZf.js";import{R as a}from"./ReferenceCodeFormLabel-DfITz1xW.js";import"./_commonjsHelpers-BosuxZz1.js";import"./mapValues-CZh2vnSw.js";import"./pickBy-CU2rOOKe.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-Bu_b4Pek.js";import"./index-Cw1G72V2.js";import"./index-CKJfshIT.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./preview-errors-CzpZmerH.js";import"./debounce-Bq1aTuh-.js";import"./v4-D8aEg3BZ.js";import"./Button-Blq7Z6RX.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getElementType-CckcRzoH.js";import"./Icon-2tEtgK8g.js";import"./Label-Cq1fb1cd.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./forEach-CXlln0XP.js";import"./Dimmer-D_gwaesu.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./index-DZGZymok.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./map-B4PnIEPz.js";import"./Header-BJ3NNdPz.js";import"./Popup-BP01NTlV.js";import"./index-BBpNyw-T.js";import"./_baseSet-6y0qliU9.js";import"./_baseAssignValue-izmKBXUH.js";import"./_arrayReduce-CrxnWFSq.js";import"./createClass-D2z1h_eG.js";import"./toPropertyKey-hKuLU48H.js";import"./inherits-D5wXBZoG.js";import"./getPrototypeOf-BYVhAdwF.js";import"./defineProperty-CCxoMnQV.js";import"./toArray-D9zoIPho.js";import"./nonIterableRest-Bc-81Ll3.js";import"./iterableToArray-DI-mZnTP.js";import"./unsupportedIterableToArray-78IFcom3.js";const mo={title:"Components/Controlled Vocabulary/ReferenceCodeFormLabel",decorators:[e.withKnobs]},o=()=>m.jsx(a,{label:"Locations",onClick:p("click"),referenceTable:"locations"});o.__docgenInfo={description:"",methods:[],displayName:"Default"};var r,t,i;o.parameters={...o.parameters,docs:{...(r=o.parameters)==null?void 0:r.docs,source:{originalSource:"() => ",...(i=(t=o.parameters)==null?void 0:t.docs)==null?void 0:i.source}}};const eo=["Default"];export{o as Default,eo as __namedExportsOrder,mo as default}; +import{j as m}from"./jsx-runtime-BTCK_S7S.js";import"./index-CBqU2yxZ.js";import{d as e}from"./index-CAen7T_W.js";import{a as p}from"./chunk-WFFRPTHA-B2vgThZf.js";import{R as a}from"./ReferenceCodeFormLabel-DfITz1xW.js";import"./_commonjsHelpers-BosuxZz1.js";import"./mapValues-LQZI9uWW.js";import"./pickBy-Us6u5-To.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-DCkRKKtx.js";import"./index-Cw1G72V2.js";import"./index-CKJfshIT.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./preview-errors-CzpZmerH.js";import"./debounce-BkgZrIul.js";import"./v4-D8aEg3BZ.js";import"./Button-Blq7Z6RX.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getElementType-CckcRzoH.js";import"./Icon-2tEtgK8g.js";import"./Label-Cq1fb1cd.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./forEach-CXlln0XP.js";import"./Dimmer-D_gwaesu.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./index-DZGZymok.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./map-B4PnIEPz.js";import"./Header-BJ3NNdPz.js";import"./Popup-BP01NTlV.js";import"./index-BBpNyw-T.js";import"./_baseSet-6y0qliU9.js";import"./_baseAssignValue-izmKBXUH.js";import"./_arrayReduce-CrxnWFSq.js";import"./createClass-D2z1h_eG.js";import"./toPropertyKey-hKuLU48H.js";import"./inherits-D5wXBZoG.js";import"./getPrototypeOf-BYVhAdwF.js";import"./defineProperty-CCxoMnQV.js";import"./toArray-D9zoIPho.js";import"./nonIterableRest-Bc-81Ll3.js";import"./iterableToArray-DI-mZnTP.js";import"./unsupportedIterableToArray-78IFcom3.js";const mo={title:"Components/Controlled Vocabulary/ReferenceCodeFormLabel",decorators:[e.withKnobs]},o=()=>m.jsx(a,{label:"Locations",onClick:p("click"),referenceTable:"locations"});o.__docgenInfo={description:"",methods:[],displayName:"Default"};var r,t,i;o.parameters={...o.parameters,docs:{...(r=o.parameters)==null?void 0:r.docs,source:{originalSource:"() => ",...(i=(t=o.parameters)==null?void 0:t.docs)==null?void 0:i.source}}};const eo=["Default"];export{o as Default,eo as __namedExportsOrder,mo as default}; diff --git a/docs/assets/RemoteDropdown.stories-D07InO26.js b/docs/assets/RemoteDropdown.stories-qMaNCn_X.js similarity index 97% rename from docs/assets/RemoteDropdown.stories-D07InO26.js rename to docs/assets/RemoteDropdown.stories-qMaNCn_X.js index c065c3ae..4ee4aaf7 100644 --- a/docs/assets/RemoteDropdown.stories-D07InO26.js +++ b/docs/assets/RemoteDropdown.stories-qMaNCn_X.js @@ -1,4 +1,4 @@ -var _=Object.defineProperty;var j=(o,n,e)=>n in o?_(o,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[n]=e;var y=(o,n,e)=>(j(o,typeof n!="symbol"?n+"":n,e),e);import{j as d}from"./jsx-runtime-BTCK_S7S.js";import{r}from"./index-CBqU2yxZ.js";import{d as s}from"./index-DfmhmaGJ.js";import{_ as i}from"./index-default-C_maRo4o.js";import{A as f}from"./Api-DXLamogn.js";import{u as b}from"./index.es28-dE8xdd4L.js";import{I as w}from"./Icon-2tEtgK8g.js";import{D as B}from"./Dropdown-Di2cPjwR.js";import{i as S}from"./i18n-C8zWlANG.js";import"./_commonjsHelpers-BosuxZz1.js";import"./mapValues-CZh2vnSw.js";import"./pickBy-CU2rOOKe.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-Bu_b4Pek.js";import"./index-Cw1G72V2.js";import"./index-CKJfshIT.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./preview-errors-CzpZmerH.js";import"./debounce-Bq1aTuh-.js";import"./index-DZGZymok.js";import"./iframe-ovyJW9VA.js";import"../sb-preview/runtime.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getElementType-CckcRzoH.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./map-B4PnIEPz.js";import"./without-BP-mqg2K.js";import"./isArrayLikeObject-CbXKTyfk.js";import"./isEmpty-Cyb9hIKi.js";import"./deburr-CEfyoYOr.js";import"./index-BBpNyw-T.js";import"./_baseSet-6y0qliU9.js";import"./_baseAssignValue-izmKBXUH.js";import"./_arrayReduce-CrxnWFSq.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./Label-Cq1fb1cd.js";import"./forEach-CXlln0XP.js";import"./Dimmer-D_gwaesu.js";import"./filter-CVNi8iPS.js";import"./i18next-Sc0HEOoc.js";import"./toPropertyKey-hKuLU48H.js";import"./defineProperty-CCxoMnQV.js";import"./inherits-D5wXBZoG.js";import"./createClass-D2z1h_eG.js";import"./getPrototypeOf-BYVhAdwF.js";class p extends r.Component{constructor(e){super(e);y(this,"dropdown");this.state={loading:!1,options:[],page:1,pages:1,search:""},this.dropdown=r.createRef()}componentDidMount(){this.onReset()}componentDidUpdate(e){this.props.value!==e.value&&this.setState({page:1,pages:1,search:""},this.onSearch.bind(this))}getClassNames(){const e=["remote-dropdown"];return this.props.className&&e.push(this.props.className),e.join(" ")}getValues(){let e=[];const{value:t}=this.props;return t&&t.length&&(e=Array.isArray(t)?t:[t]),e}getOption(e){return{key:e,text:e,value:e}}getOptions(){const e=[...this.state.options];i.each(this.getValues(),a=>{i.findWhere(e,{value:a})||e.push(this.getOption(a))});const{search:t}=this.state;return this.props.allowAdditions&&t&&!i.findWhere(e,{text:t})&&e.push({key:"add",value:"add",text:this.renderAddOption(),onClick:this.onAddItem.bind(this)}),this.state.pagethis.setState(a=>({page:a.page+1}),this.onSearch.bind(this))}),e}getSearchOptions(){return i.filter(this.getOptions(),e=>!this.getValues().includes(e.value))}onAddItem(e){return this.props.onAddItem&&this.props.onAddItem(this.state.search).then(()=>{let t=this.state.search;this.props.multiple&&(t=[...this.props.value,this.state.search]),this.onOptionSelection(e,{value:t}),this.props.multiple||this.dropdown.current.close()})}onOptionSelection(e,{value:t}){this.props.onSelection(t)}onReset(){this.setState({options:i.map(this.getValues(),this.getOption.bind(this)),page:1,pages:1,search:""})}onSearch(){const{page:e,search:t}=this.state;this.setState({loading:!0},()=>{this.props.onLoad({page:e,search:t}).then(({data:a})=>{const l=i.map(a[this.props.collectionName],this.props.renderOption.bind(this)),{pages:M}=a.list;this.setState(E=>({loading:!1,options:[...e>1?E.options||[]:[],...l],page:e,pages:M}))})})}onSearchChange(e,{searchQuery:t}){this.setState({page:1,pages:1,search:t})}render(){return d.jsx(B,{className:this.getClassNames(),clearable:!0,fluid:this.props.fluid,loading:this.state.loading,multiple:this.props.multiple,onBlur:this.onReset.bind(this),onClose:this.onReset.bind(this),onChange:this.onOptionSelection.bind(this),onOpen:this.onSearch.bind(this),onSearchChange:this.onSearchChange.bind(this),options:this.getOptions(),placeholder:this.props.placeholder,ref:this.dropdown,scrolling:!0,search:()=>this.getSearchOptions(),searchInput:{"aria-label":"Search",className:"remote-dropdown-search-input",onKeyDown:b.clearSearchTimer.bind(this),onKeyUp:b.setSearchTimer.bind(this,this.onSearch.bind(this))},searchQuery:this.state.search,selectOnBlur:!1,selection:!0,value:this.props.value})}renderAddOption(){return d.jsxs("div",{className:"extra-option",children:[d.jsx(w,{name:"plus circle"}),`${S.t("RemoteDropdown.labels.add")} ${this.state.search}`]})}renderLoadMoreOption(){return d.jsxs("div",{className:"extra-option",children:[d.jsx(w,{name:"refresh"}),S.t("RemoteDropdown.labels.loadMore")]})}}y(p,"defaultProps");p.defaultProps={allowAdditions:!1,className:"",fluid:!1,multiple:!1,onAddItem:void 0,placeholder:null};p.__docgenInfo={description:"",methods:[{name:"getClassNames",docblock:`Returns the dropdown class name(s). +var _=Object.defineProperty;var j=(o,n,e)=>n in o?_(o,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[n]=e;var y=(o,n,e)=>(j(o,typeof n!="symbol"?n+"":n,e),e);import{j as d}from"./jsx-runtime-BTCK_S7S.js";import{r}from"./index-CBqU2yxZ.js";import{d as s}from"./index-CAen7T_W.js";import{_ as i}from"./index-default-C_maRo4o.js";import{A as f}from"./Api-DXLamogn.js";import{u as b}from"./index.es28-Dp3-vHIY.js";import{I as w}from"./Icon-2tEtgK8g.js";import{D as B}from"./Dropdown-Di2cPjwR.js";import{i as S}from"./i18n-C8zWlANG.js";import"./_commonjsHelpers-BosuxZz1.js";import"./mapValues-LQZI9uWW.js";import"./pickBy-Us6u5-To.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-DCkRKKtx.js";import"./index-Cw1G72V2.js";import"./index-CKJfshIT.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./preview-errors-CzpZmerH.js";import"./debounce-BkgZrIul.js";import"./index-DZGZymok.js";import"./iframe-BQtATEn0.js";import"../sb-preview/runtime.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getElementType-CckcRzoH.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./map-B4PnIEPz.js";import"./without-BP-mqg2K.js";import"./isArrayLikeObject-CbXKTyfk.js";import"./isEmpty-Cyb9hIKi.js";import"./deburr-CEfyoYOr.js";import"./index-BBpNyw-T.js";import"./_baseSet-6y0qliU9.js";import"./_baseAssignValue-izmKBXUH.js";import"./_arrayReduce-CrxnWFSq.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./Label-Cq1fb1cd.js";import"./forEach-CXlln0XP.js";import"./Dimmer-D_gwaesu.js";import"./filter-CVNi8iPS.js";import"./i18next-Sc0HEOoc.js";import"./toPropertyKey-hKuLU48H.js";import"./defineProperty-CCxoMnQV.js";import"./inherits-D5wXBZoG.js";import"./createClass-D2z1h_eG.js";import"./getPrototypeOf-BYVhAdwF.js";class p extends r.Component{constructor(e){super(e);y(this,"dropdown");this.state={loading:!1,options:[],page:1,pages:1,search:""},this.dropdown=r.createRef()}componentDidMount(){this.onReset()}componentDidUpdate(e){this.props.value!==e.value&&this.setState({page:1,pages:1,search:""},this.onSearch.bind(this))}getClassNames(){const e=["remote-dropdown"];return this.props.className&&e.push(this.props.className),e.join(" ")}getValues(){let e=[];const{value:t}=this.props;return t&&t.length&&(e=Array.isArray(t)?t:[t]),e}getOption(e){return{key:e,text:e,value:e}}getOptions(){const e=[...this.state.options];i.each(this.getValues(),a=>{i.findWhere(e,{value:a})||e.push(this.getOption(a))});const{search:t}=this.state;return this.props.allowAdditions&&t&&!i.findWhere(e,{text:t})&&e.push({key:"add",value:"add",text:this.renderAddOption(),onClick:this.onAddItem.bind(this)}),this.state.pagethis.setState(a=>({page:a.page+1}),this.onSearch.bind(this))}),e}getSearchOptions(){return i.filter(this.getOptions(),e=>!this.getValues().includes(e.value))}onAddItem(e){return this.props.onAddItem&&this.props.onAddItem(this.state.search).then(()=>{let t=this.state.search;this.props.multiple&&(t=[...this.props.value,this.state.search]),this.onOptionSelection(e,{value:t}),this.props.multiple||this.dropdown.current.close()})}onOptionSelection(e,{value:t}){this.props.onSelection(t)}onReset(){this.setState({options:i.map(this.getValues(),this.getOption.bind(this)),page:1,pages:1,search:""})}onSearch(){const{page:e,search:t}=this.state;this.setState({loading:!0},()=>{this.props.onLoad({page:e,search:t}).then(({data:a})=>{const l=i.map(a[this.props.collectionName],this.props.renderOption.bind(this)),{pages:M}=a.list;this.setState(E=>({loading:!1,options:[...e>1?E.options||[]:[],...l],page:e,pages:M}))})})}onSearchChange(e,{searchQuery:t}){this.setState({page:1,pages:1,search:t})}render(){return d.jsx(B,{className:this.getClassNames(),clearable:!0,fluid:this.props.fluid,loading:this.state.loading,multiple:this.props.multiple,onBlur:this.onReset.bind(this),onClose:this.onReset.bind(this),onChange:this.onOptionSelection.bind(this),onOpen:this.onSearch.bind(this),onSearchChange:this.onSearchChange.bind(this),options:this.getOptions(),placeholder:this.props.placeholder,ref:this.dropdown,scrolling:!0,search:()=>this.getSearchOptions(),searchInput:{"aria-label":"Search",className:"remote-dropdown-search-input",onKeyDown:b.clearSearchTimer.bind(this),onKeyUp:b.setSearchTimer.bind(this,this.onSearch.bind(this))},searchQuery:this.state.search,selectOnBlur:!1,selection:!0,value:this.props.value})}renderAddOption(){return d.jsxs("div",{className:"extra-option",children:[d.jsx(w,{name:"plus circle"}),`${S.t("RemoteDropdown.labels.add")} ${this.state.search}`]})}renderLoadMoreOption(){return d.jsxs("div",{className:"extra-option",children:[d.jsx(w,{name:"refresh"}),S.t("RemoteDropdown.labels.loadMore")]})}}y(p,"defaultProps");p.defaultProps={allowAdditions:!1,className:"",fluid:!1,multiple:!1,onAddItem:void 0,placeholder:null};p.__docgenInfo={description:"",methods:[{name:"getClassNames",docblock:`Returns the dropdown class name(s). @returns {string}`,modifiers:[],params:[],returns:{type:{name:"string"}},description:"Returns the dropdown class name(s)."},{name:"getValues",docblock:`Returns the dropdown value as an array. diff --git a/docs/assets/RichTextArea.stories-GUYjY3FJ.js b/docs/assets/RichTextArea.stories-D4EJRtr1.js similarity index 82% rename from docs/assets/RichTextArea.stories-GUYjY3FJ.js rename to docs/assets/RichTextArea.stories-D4EJRtr1.js index d4ee9b3e..e6aaa7e4 100644 --- a/docs/assets/RichTextArea.stories-GUYjY3FJ.js +++ b/docs/assets/RichTextArea.stories-D4EJRtr1.js @@ -1,4 +1,4 @@ -import{j as t}from"./jsx-runtime-BTCK_S7S.js";import{r as d}from"./index-CBqU2yxZ.js";import{d as m}from"./index-DfmhmaGJ.js";import{_ as u}from"./iframe-ovyJW9VA.js";import{i as p}from"./i18n-Dfa7mXnt.js";import"./_commonjsHelpers-BosuxZz1.js";import"./mapValues-CZh2vnSw.js";import"./pickBy-CU2rOOKe.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-Bu_b4Pek.js";import"./index-Cw1G72V2.js";import"./index-CKJfshIT.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./preview-errors-CzpZmerH.js";import"./debounce-Bq1aTuh-.js";import"../sb-preview/runtime.js";import"./i18next-Sc0HEOoc.js";import"./toPropertyKey-hKuLU48H.js";import"./defineProperty-CCxoMnQV.js";import"./inherits-D5wXBZoG.js";import"./assertThisInitialized-B9jnkVVz.js";import"./setPrototypeOf-DgZC2w_0.js";import"./createClass-D2z1h_eG.js";import"./getPrototypeOf-BYVhAdwF.js";const c=e=>o=>t.jsx(d.Suspense,{fallback:t.jsx("div",{children:p.t("Common.messages.loading")}),children:t.jsx(e,{...o})}),f=d.lazy(()=>u(()=>import("./index-CkEa8p3r.js").then(e=>e.i),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14]),import.meta.url)),h="


",g="",i=c(e=>t.jsx(f,{className:"rich-text-area",formats:e.formats,modules:e.modules,onChange:o=>{let r=o;o===h&&(r=g),e.onChange(r)},placeholder:e.placeholder,theme:"snow",value:e.value}));i.defaultProps={formats:["header","font","size","bold","italic","underline","strike","blockquote","list","bullet","indent","link","image","video"],modules:{toolbar:[[{header:"1"},{header:"2"},{font:[]}],[{size:[]}],["bold","italic","underline","strike","blockquote"],[{list:"ordered"},{list:"bullet"},{indent:"-1"},{indent:"+1"}],["link","image"],["clean"]],clipboard:{matchVisual:!1}},placeholder:void 0};i.__docgenInfo={description:"",methods:[],displayName:"RichTextArea",props:{formats:{required:!1,flowType:{name:"any"},description:"",defaultValue:{value:`[ +import{j as t}from"./jsx-runtime-BTCK_S7S.js";import{r as d}from"./index-CBqU2yxZ.js";import{d as m}from"./index-CAen7T_W.js";import{_ as u}from"./iframe-BQtATEn0.js";import{i as p}from"./i18n-Dfa7mXnt.js";import"./_commonjsHelpers-BosuxZz1.js";import"./mapValues-LQZI9uWW.js";import"./pickBy-Us6u5-To.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-DCkRKKtx.js";import"./index-Cw1G72V2.js";import"./index-CKJfshIT.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./preview-errors-CzpZmerH.js";import"./debounce-BkgZrIul.js";import"../sb-preview/runtime.js";import"./i18next-Sc0HEOoc.js";import"./toPropertyKey-hKuLU48H.js";import"./defineProperty-CCxoMnQV.js";import"./inherits-D5wXBZoG.js";import"./assertThisInitialized-B9jnkVVz.js";import"./setPrototypeOf-DgZC2w_0.js";import"./createClass-D2z1h_eG.js";import"./getPrototypeOf-BYVhAdwF.js";const c=e=>o=>t.jsx(d.Suspense,{fallback:t.jsx("div",{children:p.t("Common.messages.loading")}),children:t.jsx(e,{...o})}),f=d.lazy(()=>u(()=>import("./index-DumwFUzA.js").then(e=>e.i),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14]),import.meta.url)),h="


",g="",i=c(e=>t.jsx(f,{className:"rich-text-area",formats:e.formats,modules:e.modules,onChange:o=>{let r=o;o===h&&(r=g),e.onChange(r)},placeholder:e.placeholder,theme:"snow",value:e.value}));i.defaultProps={formats:["header","font","size","bold","italic","underline","strike","blockquote","list","bullet","indent","link","image","video"],modules:{toolbar:[[{header:"1"},{header:"2"},{font:[]}],[{size:[]}],["bold","italic","underline","strike","blockquote"],[{list:"ordered"},{list:"bullet"},{indent:"-1"},{indent:"+1"}],["link","image"],["clean"]],clipboard:{matchVisual:!1}},placeholder:void 0};i.__docgenInfo={description:"",methods:[],displayName:"RichTextArea",props:{formats:{required:!1,flowType:{name:"any"},description:"",defaultValue:{value:`[ 'header', 'font', 'size', @@ -48,7 +48,7 @@ import{j as t}from"./jsx-runtime-BTCK_S7S.js";import{r as d}from"./index-CBqU2yx }`,computed:!1}},onChange:{required:!0,flowType:{name:"signature",type:"function",raw:"(value: string) => void",signature:{arguments:[{name:"value",type:{name:"string"}}],return:{name:"void"}}},description:""},placeholder:{required:!1,flowType:{name:"string"},description:"",defaultValue:{value:"undefined",computed:!0}},value:{required:!0,flowType:{name:"string",nullable:!0},description:""}}};const H={title:"Components/Common/RichTextArea",decorators:[m.withKnobs]},n=()=>t.jsx(i,{onChange:()=>{},value:""});n.__docgenInfo={description:"",methods:[],displayName:"Default"};var a,l,s;n.parameters={...n.parameters,docs:{...(a=n.parameters)==null?void 0:a.docs,source:{originalSource:"() => {}} value='' />",...(s=(l=n.parameters)==null?void 0:l.docs)==null?void 0:s.source}}};const K=["Default"];export{n as Default,K as __namedExportsOrder,H as default}; function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["./index-CkEa8p3r.js","./_commonjsHelpers-BosuxZz1.js","./index-CBqU2yxZ.js","./index-DZGZymok.js","./index-DfmhmaGJ.js","./mapValues-CZh2vnSw.js","./pickBy-CU2rOOKe.js","./_commonjs-dynamic-modules-TDtrdbi3.js","./isPlainObject-Bu_b4Pek.js","./index-Cw1G72V2.js","./index-CKJfshIT.js","./tiny-invariant.cjs-DxxScMW_.js","./___vite-browser-external_commonjs-proxy-DRaEfepn.js","./preview-errors-CzpZmerH.js","./debounce-Bq1aTuh-.js"] + __vite__mapDeps.viteFileDeps = ["./index-DumwFUzA.js","./_commonjsHelpers-BosuxZz1.js","./index-CBqU2yxZ.js","./index-DZGZymok.js","./index-CAen7T_W.js","./mapValues-LQZI9uWW.js","./pickBy-Us6u5-To.js","./_commonjs-dynamic-modules-TDtrdbi3.js","./isPlainObject-DCkRKKtx.js","./index-Cw1G72V2.js","./index-CKJfshIT.js","./tiny-invariant.cjs-DxxScMW_.js","./___vite-browser-external_commonjs-proxy-DRaEfepn.js","./preview-errors-CzpZmerH.js","./debounce-BkgZrIul.js"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } diff --git a/docs/assets/SearchBox.stories-BOlEbQrI.js b/docs/assets/SearchBox.stories-Cu50ctA9.js similarity index 97% rename from docs/assets/SearchBox.stories-BOlEbQrI.js rename to docs/assets/SearchBox.stories-Cu50ctA9.js index f6c69d5f..0b4372e8 100644 --- a/docs/assets/SearchBox.stories-BOlEbQrI.js +++ b/docs/assets/SearchBox.stories-Cu50ctA9.js @@ -1,4 +1,4 @@ -import{j as s}from"./jsx-runtime-BTCK_S7S.js";import{a as i}from"./chunk-WFFRPTHA-B2vgThZf.js";import{r as a}from"./index-CBqU2yxZ.js";import{u as f}from"./index.es28-dE8xdd4L.js";import{I as N}from"./Icon-2tEtgK8g.js";import{I as Q}from"./Input--hQVCRQV.js";import{_ as y}from"./index-default-C_maRo4o.js";import"./preview-errors-CzpZmerH.js";import"./index-CKJfshIT.js";import"./v4-D8aEg3BZ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-DZGZymok.js";import"./iframe-ovyJW9VA.js";import"../sb-preview/runtime.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getElementType-CckcRzoH.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./map-B4PnIEPz.js";import"./Label-Cq1fb1cd.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./forEach-CXlln0XP.js";import"./Dimmer-D_gwaesu.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./Button-Blq7Z6RX.js";const b=({useSearchBox:u,...e})=>{const{query:r,refine:p,clear:d,isSearchStalled:C}=u(e),[l,S]=a.useState(r),h=a.useRef(),j=a.useCallback(()=>{S(""),d();const{current:m}=h;m&&m.focus()},[d]),E=a.useCallback(()=>p(l),[p,l]);return s.jsx(Q,{...e,"aria-label":"Search",icon:s.jsx(N,{link:!y.isEmpty(r),name:y.isEmpty(r)?"search":"times",onClick:j}),input:{"aria-label":"search"},loading:C,onChange:(m,{value:D})=>S(D),onKeyDown:()=>f.clearSearchTimer(),onKeyUp:()=>f.setSearchTimer(E),ref:h,type:"text",value:l})},c=b;b.__docgenInfo={description:"This component is used with the `useSearchBox` function from Instant Search Hooks and renders an input element that\nwhen changed will execute a new query.",methods:[],displayName:"SearchBox",props:{useSearchBox:{required:!0,flowType:{name:"signature",type:"function",raw:`(props: any) => ({ +import{j as s}from"./jsx-runtime-BTCK_S7S.js";import{a as i}from"./chunk-WFFRPTHA-B2vgThZf.js";import{r as a}from"./index-CBqU2yxZ.js";import{u as f}from"./index.es28-Dp3-vHIY.js";import{I as N}from"./Icon-2tEtgK8g.js";import{I as Q}from"./Input--hQVCRQV.js";import{_ as y}from"./index-default-C_maRo4o.js";import"./preview-errors-CzpZmerH.js";import"./index-CKJfshIT.js";import"./v4-D8aEg3BZ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-DZGZymok.js";import"./iframe-BQtATEn0.js";import"../sb-preview/runtime.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getElementType-CckcRzoH.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./map-B4PnIEPz.js";import"./Label-Cq1fb1cd.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./forEach-CXlln0XP.js";import"./Dimmer-D_gwaesu.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./Button-Blq7Z6RX.js";const b=({useSearchBox:u,...e})=>{const{query:r,refine:p,clear:d,isSearchStalled:C}=u(e),[l,S]=a.useState(r),h=a.useRef(),j=a.useCallback(()=>{S(""),d();const{current:m}=h;m&&m.focus()},[d]),E=a.useCallback(()=>p(l),[p,l]);return s.jsx(Q,{...e,"aria-label":"Search",icon:s.jsx(N,{link:!y.isEmpty(r),name:y.isEmpty(r)?"search":"times",onClick:j}),input:{"aria-label":"search"},loading:C,onChange:(m,{value:D})=>S(D),onKeyDown:()=>f.clearSearchTimer(),onKeyUp:()=>f.setSearchTimer(E),ref:h,type:"text",value:l})},c=b;b.__docgenInfo={description:"This component is used with the `useSearchBox` function from Instant Search Hooks and renders an input element that\nwhen changed will execute a new query.",methods:[],displayName:"SearchBox",props:{useSearchBox:{required:!0,flowType:{name:"signature",type:"function",raw:`(props: any) => ({ query: string, refine: (value: string) => void, clear: () => void, diff --git a/docs/assets/SearchResults.stories-BX4iA5fv.js b/docs/assets/SearchResults.stories-Cx4fvBXa.js similarity index 93% rename from docs/assets/SearchResults.stories-BX4iA5fv.js rename to docs/assets/SearchResults.stories-Cx4fvBXa.js index db6b5ada..b5795944 100644 --- a/docs/assets/SearchResults.stories-BX4iA5fv.js +++ b/docs/assets/SearchResults.stories-Cx4fvBXa.js @@ -1,4 +1,4 @@ -import{j as n}from"./jsx-runtime-BTCK_S7S.js";import{f as r}from"./index-xJp9Kd2E.js";import"./index-CBqU2yxZ.js";import{_ as E}from"./index-default-C_maRo4o.js";import{I as H}from"./ItemCollection-DnmhVDTV.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index.es28-dE8xdd4L.js";import"./index-DZGZymok.js";import"./iframe-ovyJW9VA.js";import"../sb-preview/runtime.js";import"./uuid-BH6G0oTz.js";import"./Loader-CooidObp.js";import"./extends-CCbyfPlC.js";import"./getElementType-CckcRzoH.js";import"./i18n-C8zWlANG.js";import"./i18next-Sc0HEOoc.js";import"./toPropertyKey-hKuLU48H.js";import"./defineProperty-CCxoMnQV.js";import"./inherits-D5wXBZoG.js";import"./assertThisInitialized-B9jnkVVz.js";import"./setPrototypeOf-DgZC2w_0.js";import"./createClass-D2z1h_eG.js";import"./getPrototypeOf-BYVhAdwF.js";import"./Items-YtEeTDLX.js";import"./Button-Blq7Z6RX.js";import"./inheritsLoose-1HkgTRWY.js";import"./Icon-2tEtgK8g.js";import"./Label-Cq1fb1cd.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./forEach-CXlln0XP.js";import"./Dimmer-D_gwaesu.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./map-B4PnIEPz.js";import"./Header-BJ3NNdPz.js";import"./Segment-C5_maSSM.js";import"./Checkbox-C9uAfnsM.js";import"./_baseSet-6y0qliU9.js";import"./_baseAssignValue-izmKBXUH.js";import"./Card-BJT3uTAq.js";import"./Item-9lJy5i0K.js";import"./List-B05DD_Os.js";import"./Confirm-Dw9rt56R.js";import"./Transition-DSFEXhCu.js";import"./filter-CVNi8iPS.js";import"./Modal-Bz2VEyQG.js";import"./index-BBpNyw-T.js";import"./_arrayReduce-CrxnWFSq.js";import"./isEmpty-Cyb9hIKi.js";import"./Pagination-D0HmnRDL.js";import"./Menu-9i0apxqd.js";import"./deburr-CEfyoYOr.js";import"./Grid-Czr5owxQ.js";import"./DropdownButton-D3g-r0e9.js";import"./Dropdown-Di2cPjwR.js";import"./without-BP-mqg2K.js";import"./isArrayLikeObject-CbXKTyfk.js";import"./EditModal-DRtAb_yR.js";import"./index.es3-D5uPylQL.js";import"./Message-3p6wyYpA.js";import"./Toaster-C1YYqOUE.js";import"./Form-fErk-qk_.js";import"./Input--hQVCRQV.js";import"./AssociatedDropdown-CR7UI3kV.js";import"./FuzzyDate-RqvLBloE.js";import"./DateInput-BO57_F9J.js";import"./ModalContext-Bu-D9kD-.js";import"./Trans-Bk6mzQm0.js";import"./objectWithoutProperties--RY0eV0u.js";import"./utils-Bq6oISwF.js";import"./DataList-Ge7tGBgD.js";import"./Draggable-KQRXc-DM.js";import"./useDrop-BRQoWSA5.js";import"./DndContext-B-2NJP7Z.js";import"./redux-C8f_Y06i.js";import"./objectSpread2-N4c0DWqo.js";const o=({useHits:e,...m})=>{const{hits:y}=e(m),{as:h,asProps:g,link:v,renderDescription:w,renderEmptyList:b,renderExtra:x,renderHeader:T,renderImage:N,renderMeta:j}=m;return n.jsx(H,{as:h,asProps:g,hideToggle:!0,items:y,link:v,renderDescription:w,renderEmptyList:b,renderExtra:x,renderHeader:T,renderImage:N,renderMeta:j})};o.defaultProps={as:void 0,asProps:void 0,link:void 0,renderDescription:void 0,renderEmptyList:void 0,renderExtra:void 0,renderHeader:void 0,renderImage:void 0,renderMeta:void 0};const a=o;o.__docgenInfo={description:"This component is used with the `useHits` hook from Instant Search Hooks and renders a pass-through to the\n`ItemCollection` component.",methods:[],displayName:"SearchResults",props:{useHits:{required:!0,flowType:{name:"signature",type:"function",raw:`(props: any) => ({ +import{j as n}from"./jsx-runtime-BTCK_S7S.js";import{f as r}from"./index-xJp9Kd2E.js";import"./index-CBqU2yxZ.js";import{_ as E}from"./index-default-C_maRo4o.js";import{I as H}from"./ItemCollection-DKUmqgEi.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index.es28-Dp3-vHIY.js";import"./index-DZGZymok.js";import"./iframe-BQtATEn0.js";import"../sb-preview/runtime.js";import"./uuid-BH6G0oTz.js";import"./Loader-CooidObp.js";import"./extends-CCbyfPlC.js";import"./getElementType-CckcRzoH.js";import"./i18n-C8zWlANG.js";import"./i18next-Sc0HEOoc.js";import"./toPropertyKey-hKuLU48H.js";import"./defineProperty-CCxoMnQV.js";import"./inherits-D5wXBZoG.js";import"./assertThisInitialized-B9jnkVVz.js";import"./setPrototypeOf-DgZC2w_0.js";import"./createClass-D2z1h_eG.js";import"./getPrototypeOf-BYVhAdwF.js";import"./Items-CMIdL9uL.js";import"./Button-Blq7Z6RX.js";import"./inheritsLoose-1HkgTRWY.js";import"./Icon-2tEtgK8g.js";import"./Label-Cq1fb1cd.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./forEach-CXlln0XP.js";import"./Dimmer-D_gwaesu.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./map-B4PnIEPz.js";import"./Header-BJ3NNdPz.js";import"./Segment-C5_maSSM.js";import"./Checkbox-C9uAfnsM.js";import"./_baseSet-6y0qliU9.js";import"./_baseAssignValue-izmKBXUH.js";import"./Card-BJT3uTAq.js";import"./Item-9lJy5i0K.js";import"./List-tmAiyZhD.js";import"./Confirm-Dw9rt56R.js";import"./Transition-DSFEXhCu.js";import"./filter-CVNi8iPS.js";import"./Modal-Bz2VEyQG.js";import"./index-BBpNyw-T.js";import"./_arrayReduce-CrxnWFSq.js";import"./isEmpty-Cyb9hIKi.js";import"./Pagination-D0HmnRDL.js";import"./Menu-9i0apxqd.js";import"./deburr-CEfyoYOr.js";import"./Grid-Czr5owxQ.js";import"./DropdownButton-D3g-r0e9.js";import"./Dropdown-Di2cPjwR.js";import"./without-BP-mqg2K.js";import"./isArrayLikeObject-CbXKTyfk.js";import"./EditModal-WP1CvOLP.js";import"./index.es3-Dgr_7mVc.js";import"./Message-3p6wyYpA.js";import"./Toaster-C1YYqOUE.js";import"./Form-fErk-qk_.js";import"./Input--hQVCRQV.js";import"./AssociatedDropdown-DQppeffT.js";import"./FuzzyDate-Bx1epA16.js";import"./DateInput-BO57_F9J.js";import"./ModalContext-Bu-D9kD-.js";import"./Trans-Bk6mzQm0.js";import"./objectWithoutProperties--RY0eV0u.js";import"./utils-Bq6oISwF.js";import"./DataList-DKTsnuj_.js";import"./Draggable-KQRXc-DM.js";import"./useDrop-BRQoWSA5.js";import"./DndContext-B-2NJP7Z.js";import"./redux-C8f_Y06i.js";import"./objectSpread2-N4c0DWqo.js";const o=({useHits:e,...m})=>{const{hits:y}=e(m),{as:h,asProps:g,link:v,renderDescription:w,renderEmptyList:b,renderExtra:x,renderHeader:T,renderImage:N,renderMeta:j}=m;return n.jsx(H,{as:h,asProps:g,hideToggle:!0,items:y,link:v,renderDescription:w,renderEmptyList:b,renderExtra:x,renderHeader:T,renderImage:N,renderMeta:j})};o.defaultProps={as:void 0,asProps:void 0,link:void 0,renderDescription:void 0,renderEmptyList:void 0,renderExtra:void 0,renderHeader:void 0,renderImage:void 0,renderMeta:void 0};const a=o;o.__docgenInfo={description:"This component is used with the `useHits` hook from Instant Search Hooks and renders a pass-through to the\n`ItemCollection` component.",methods:[],displayName:"SearchResults",props:{useHits:{required:!0,flowType:{name:"signature",type:"function",raw:`(props: any) => ({ hits: Array })`,signature:{arguments:[{name:"props",type:{name:"any"}}],return:{name:"signature",type:"object",raw:`{ hits: Array diff --git a/docs/assets/Section.stories-r-HnqG6T.js b/docs/assets/Section.stories-CLrupiGc.js similarity index 92% rename from docs/assets/Section.stories-r-HnqG6T.js rename to docs/assets/Section.stories-CLrupiGc.js index c1b6206d..c694f096 100644 --- a/docs/assets/Section.stories-r-HnqG6T.js +++ b/docs/assets/Section.stories-CLrupiGc.js @@ -1,4 +1,4 @@ -import{j as i}from"./jsx-runtime-BTCK_S7S.js";import{f as s}from"./index-xJp9Kd2E.js";import"./index-CBqU2yxZ.js";import{d as h}from"./index-DfmhmaGJ.js";import{_ as d}from"./index-default-C_maRo4o.js";import{N as a}from"./Number-D3yuhZId.js";import{D as v}from"./Divider-C9xp3Rj7.js";import{H as x}from"./Header-BJ3NNdPz.js";import"./_commonjsHelpers-BosuxZz1.js";import"./mapValues-CZh2vnSw.js";import"./pickBy-CU2rOOKe.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-Bu_b4Pek.js";import"./index-Cw1G72V2.js";import"./index-CKJfshIT.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./preview-errors-CzpZmerH.js";import"./debounce-Bq1aTuh-.js";import"./extends-CCbyfPlC.js";import"./getElementType-CckcRzoH.js";import"./Icon-2tEtgK8g.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./Label-Cq1fb1cd.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./forEach-CXlln0XP.js";import"./Dimmer-D_gwaesu.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./index-DZGZymok.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";const r=e=>e.visible?i.jsxs("div",{className:"section",children:[e.header&&i.jsx(x,{content:e.header}),e.children,i.jsx(v,{hidden:!e.divided})]}):null;r.defaultProps={divided:!0,header:void 0,visible:!0};r.__docgenInfo={description:"",methods:[],displayName:"Section",props:{children:{required:!0,flowType:{name:"Node"},description:""},divided:{required:!1,flowType:{name:"boolean"},description:"",defaultValue:{value:"true",computed:!1}},header:{required:!1,flowType:{name:"string"},description:"",defaultValue:{value:"undefined",computed:!0}},visible:{required:!1,flowType:{name:"boolean"},description:"",defaultValue:{value:"true",computed:!1}}}};const $={title:"Components/Semantic UI/Section",decorators:[h.withKnobs]},n=[];d.times(5,()=>{n.push({content:s.lorem.lines(a.getRandomInt(2,7)),header:s.random.words(a.getRandomInt(1,3))})});const o=()=>i.jsx("div",{children:d.map(n,e=>i.jsx(r,{header:e.header,children:e.content}))}),t=()=>i.jsx("div",{children:d.map(n,e=>i.jsx(r,{header:e.header,divided:!1,children:e.content}))});o.__docgenInfo={description:"",methods:[],displayName:"Default"};t.__docgenInfo={description:"",methods:[],displayName:"Undivided"};var m,p,c;o.parameters={...o.parameters,docs:{...(m=o.parameters)==null?void 0:m.docs,source:{originalSource:`() =>
+import{j as i}from"./jsx-runtime-BTCK_S7S.js";import{f as s}from"./index-xJp9Kd2E.js";import"./index-CBqU2yxZ.js";import{d as h}from"./index-CAen7T_W.js";import{_ as d}from"./index-default-C_maRo4o.js";import{N as a}from"./Number-D3yuhZId.js";import{D as v}from"./Divider-C9xp3Rj7.js";import{H as x}from"./Header-BJ3NNdPz.js";import"./_commonjsHelpers-BosuxZz1.js";import"./mapValues-LQZI9uWW.js";import"./pickBy-Us6u5-To.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-DCkRKKtx.js";import"./index-Cw1G72V2.js";import"./index-CKJfshIT.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./preview-errors-CzpZmerH.js";import"./debounce-BkgZrIul.js";import"./extends-CCbyfPlC.js";import"./getElementType-CckcRzoH.js";import"./Icon-2tEtgK8g.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./Label-Cq1fb1cd.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./forEach-CXlln0XP.js";import"./Dimmer-D_gwaesu.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./index-DZGZymok.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";const r=e=>e.visible?i.jsxs("div",{className:"section",children:[e.header&&i.jsx(x,{content:e.header}),e.children,i.jsx(v,{hidden:!e.divided})]}):null;r.defaultProps={divided:!0,header:void 0,visible:!0};r.__docgenInfo={description:"",methods:[],displayName:"Section",props:{children:{required:!0,flowType:{name:"Node"},description:""},divided:{required:!1,flowType:{name:"boolean"},description:"",defaultValue:{value:"true",computed:!1}},header:{required:!1,flowType:{name:"string"},description:"",defaultValue:{value:"undefined",computed:!0}},visible:{required:!1,flowType:{name:"boolean"},description:"",defaultValue:{value:"true",computed:!1}}}};const $={title:"Components/Semantic UI/Section",decorators:[h.withKnobs]},n=[];d.times(5,()=>{n.push({content:s.lorem.lines(a.getRandomInt(2,7)),header:s.random.words(a.getRandomInt(1,3))})});const o=()=>i.jsx("div",{children:d.map(n,e=>i.jsx(r,{header:e.header,children:e.content}))}),t=()=>i.jsx("div",{children:d.map(n,e=>i.jsx(r,{header:e.header,divided:!1,children:e.content}))});o.__docgenInfo={description:"",methods:[],displayName:"Default"};t.__docgenInfo={description:"",methods:[],displayName:"Undivided"};var m,p,c;o.parameters={...o.parameters,docs:{...(m=o.parameters)==null?void 0:m.docs,source:{originalSource:`() =>
{_.map(sections, section =>
{section.content}
)} diff --git a/docs/assets/Selectize.stories-BVLmnFB-.js b/docs/assets/Selectize.stories-CM1OQmv5.js similarity index 96% rename from docs/assets/Selectize.stories-BVLmnFB-.js rename to docs/assets/Selectize.stories-CM1OQmv5.js index c94f991a..76979511 100644 --- a/docs/assets/Selectize.stories-BVLmnFB-.js +++ b/docs/assets/Selectize.stories-CM1OQmv5.js @@ -1,4 +1,4 @@ -import{j as a}from"./jsx-runtime-BTCK_S7S.js";import{r as i}from"./index-CBqU2yxZ.js";import{a as m}from"./chunk-WFFRPTHA-B2vgThZf.js";import{d as g}from"./index-DfmhmaGJ.js";import{C as c}from"./Card-BJT3uTAq.js";import{_ as l}from"./index-default-C_maRo4o.js";import{A as h}from"./AddModal-8so4BWij.js";import{A as C}from"./Api-DXLamogn.js";import{F as me}from"./Form-fErk-qk_.js";import{G as I}from"./Grid-Czr5owxQ.js";import{M as le}from"./Message-3p6wyYpA.js";import{T as k}from"./Table-Xx3vjhN9.js";import{B as b}from"./Button-Blq7Z6RX.js";import{I as $}from"./Icon-2tEtgK8g.js";import{M as N}from"./Modal-Bz2VEyQG.js";import{S as ne}from"./SelectizeHeader-BiV_Rzyz.js";import{i as v}from"./i18n-C8zWlANG.js";import{M as oe}from"./ModalContext-Bu-D9kD-.js";import{u as de}from"./DataList-Ge7tGBgD.js";import{u as ce}from"./List-B05DD_Os.js";import{H as ue}from"./Header-BJ3NNdPz.js";import{I as ge}from"./Label-Cq1fb1cd.js";import{S as re}from"./Segment-C5_maSSM.js";import{T as pe}from"./Transition-DSFEXhCu.js";import{w as fe}from"./Images-DFvK9Yjz.js";import"./_commonjsHelpers-BosuxZz1.js";import"./preview-errors-CzpZmerH.js";import"./index-CKJfshIT.js";import"./v4-D8aEg3BZ.js";import"./mapValues-CZh2vnSw.js";import"./pickBy-CU2rOOKe.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-Bu_b4Pek.js";import"./index-Cw1G72V2.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./debounce-Bq1aTuh-.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getElementType-CckcRzoH.js";import"./map-B4PnIEPz.js";import"./Checkbox-C9uAfnsM.js";import"./_baseSet-6y0qliU9.js";import"./_baseAssignValue-izmKBXUH.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./toFinite-KQ8KevIC.js";import"./index-DZGZymok.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./Dropdown-Di2cPjwR.js";import"./includes-CQoJOerW.js";import"./without-BP-mqg2K.js";import"./isArrayLikeObject-CbXKTyfk.js";import"./isEmpty-Cyb9hIKi.js";import"./deburr-CEfyoYOr.js";import"./index-BBpNyw-T.js";import"./_arrayReduce-CrxnWFSq.js";import"./filter-CVNi8iPS.js";import"./Input--hQVCRQV.js";import"./i18next-Sc0HEOoc.js";import"./toPropertyKey-hKuLU48H.js";import"./defineProperty-CCxoMnQV.js";import"./inherits-D5wXBZoG.js";import"./createClass-D2z1h_eG.js";import"./getPrototypeOf-BYVhAdwF.js";import"./index.es28-dE8xdd4L.js";import"./iframe-ovyJW9VA.js";import"../sb-preview/runtime.js";import"./index.es3-D5uPylQL.js";import"./uuid-BH6G0oTz.js";import"./Toaster-C1YYqOUE.js";import"./Confirm-Dw9rt56R.js";import"./Pagination-D0HmnRDL.js";import"./Menu-9i0apxqd.js";import"./DropdownButton-D3g-r0e9.js";import"./EditModal-DRtAb_yR.js";import"./Loader-CooidObp.js";import"./Dimmer-D_gwaesu.js";import"./AssociatedDropdown-CR7UI3kV.js";import"./FuzzyDate-RqvLBloE.js";import"./DateInput-BO57_F9J.js";import"./Trans-Bk6mzQm0.js";import"./objectWithoutProperties--RY0eV0u.js";import"./utils-Bq6oISwF.js";import"./forEach-CXlln0XP.js";import"./index-xJp9Kd2E.js";import"./Number-D3yuhZId.js";const _e=de(ce(e=>{i.useEffect(()=>{e.onInit&&e.onInit()},[]);const r=i.useCallback(d=>e.isSelected(d)?a.jsx($,{color:"green",name:"check"}):null,[e.selectedItems]),o=()=>e.renderHeader?e.renderHeader({onItemClick:e.onItemSelection.bind(void 0),selectedItem:e.selectedItem,selectedItems:e.selectedItems}):a.jsx(ne,{isSelected:d=>e.selectedItem===d,items:e.selectedItems,onItemClick:e.onItemSelection.bind(void 0),renderItem:e.renderItem.bind(void 0)}),t=i.useCallback(()=>l.isEmpty(e.items)?null:e.renderItems?e.renderItems({isSelected:e.isSelected,items:e.items,onSelect:e.onSelect}):a.jsx(k,{basic:!0,padded:!0,selectable:!0,children:a.jsx(k.Body,{children:l.map(e.items,(d,_)=>a.jsxs(k.Row,{onClick:e.onSelect.bind(void 0,d),children:[a.jsx(k.Cell,{children:e.renderItem(d)}),a.jsx(k.Cell,{children:r(d)})]},_))})}),[r,e.items,e.onSelect,e.renderItem]),s=i.useCallback(()=>e.items&&e.items.length||e.loading?null:a.jsx(I,{className:"empty",padded:"vertically",children:a.jsxs(I.Column,{textAlign:"center",children:[a.jsx(I.Row,{children:a.jsx($,{name:"search",size:"huge"})}),a.jsx(I.Row,{children:v.t("Selectize.messages.noRecords")})]})}),[e.items,e.loading]);return a.jsx(I,{children:a.jsxs(I.Column,{textAlign:"center",children:[o(),t(),s()]})})})),f=e=>{const[r,o]=i.useState(!1),[t,s]=i.useState(),[d,_]=i.useState(e.selectedItems||[]),y=i.useMemo(()=>!!e.multiple,[e.multiple]),H=i.useMemo(()=>l.isNumber(e.multiple)?e.multiple:Number.MAX_SAFE_INTEGER,[e.multiple]),S=i.useCallback(u=>!!l.findWhere(d,{id:u.id},[d])),n=i.useCallback(u=>{S(u)?_(P=>l.filter(P,se=>se.id!==u.id)):y?d.length>=H?o(!0):_(P=>[...P,u]):_([u])},[S,e.multiple]),p=i.useCallback(u=>{t===u?(s(null),n(u)):s(u)},[t,n]),x=i.useCallback(u=>e.modal&&e.modal.onSave?e.modal.onSave(u).then(P=>n(P)):Promise.resolve(),[n,e.modal]);return a.jsx(oe.Consumer,{children:u=>a.jsxs(N,{as:me,centered:e.centered,className:"selectize",mountNode:u,noValidate:!0,open:!0,size:"small",children:[a.jsx(N.Header,{content:e.title}),a.jsxs(N.Content,{children:[a.jsx(le,{content:v.t("Selectize.messages.maxSelected.content"),error:!0,header:v.t("Selectize.messages.maxSelected.header"),onDismiss:()=>o(!1),visible:r}),a.jsx(_e,{...e,actions:[],isSelected:S,onDelete:()=>Promise.resolve(),onDeleteAll:()=>Promise.resolve(),onItemSelection:p,onSave:x,onSelect:n,selectedItem:t,selectedItems:d})]}),a.jsxs(N.Actions,{children:[a.jsx(b,{onClick:e.onSave.bind(void 0,d),primary:!0,size:"medium",type:"submit",children:v.t("Common.buttons.save")}),a.jsx(b,{basic:!0,onClick:e.onClose.bind(void 0),size:"medium",type:"button",children:v.t("Common.buttons.cancel")})]})]})})};f.defaultProps={centered:!1,modal:void 0,multiple:!0,searchable:!0,selectedItems:[]};f.__docgenInfo={description:"",methods:[],displayName:"Selectize",props:{centered:{required:!1,flowType:{name:"boolean"},description:"",defaultValue:{value:"false",computed:!1}},collectionName:{required:!0,flowType:{name:"string"},description:""},filters:{required:!1,flowType:{name:"signature",type:"object",raw:`{ +import{j as a}from"./jsx-runtime-BTCK_S7S.js";import{r as i}from"./index-CBqU2yxZ.js";import{a as m}from"./chunk-WFFRPTHA-B2vgThZf.js";import{d as g}from"./index-CAen7T_W.js";import{C as c}from"./Card-BJT3uTAq.js";import{_ as l}from"./index-default-C_maRo4o.js";import{A as h}from"./AddModal-8so4BWij.js";import{A as C}from"./Api-DXLamogn.js";import{F as me}from"./Form-fErk-qk_.js";import{G as I}from"./Grid-Czr5owxQ.js";import{M as le}from"./Message-3p6wyYpA.js";import{T as k}from"./Table-Xx3vjhN9.js";import{B as b}from"./Button-Blq7Z6RX.js";import{I as $}from"./Icon-2tEtgK8g.js";import{M as N}from"./Modal-Bz2VEyQG.js";import{S as ne}from"./SelectizeHeader-BiV_Rzyz.js";import{i as v}from"./i18n-C8zWlANG.js";import{M as oe}from"./ModalContext-Bu-D9kD-.js";import{u as de}from"./DataList-DKTsnuj_.js";import{u as ce}from"./List-tmAiyZhD.js";import{H as ue}from"./Header-BJ3NNdPz.js";import{I as ge}from"./Label-Cq1fb1cd.js";import{S as re}from"./Segment-C5_maSSM.js";import{T as pe}from"./Transition-DSFEXhCu.js";import{w as fe}from"./Images-DFvK9Yjz.js";import"./_commonjsHelpers-BosuxZz1.js";import"./preview-errors-CzpZmerH.js";import"./index-CKJfshIT.js";import"./v4-D8aEg3BZ.js";import"./mapValues-LQZI9uWW.js";import"./pickBy-Us6u5-To.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-DCkRKKtx.js";import"./index-Cw1G72V2.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./debounce-BkgZrIul.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getElementType-CckcRzoH.js";import"./map-B4PnIEPz.js";import"./Checkbox-C9uAfnsM.js";import"./_baseSet-6y0qliU9.js";import"./_baseAssignValue-izmKBXUH.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./toFinite-KQ8KevIC.js";import"./index-DZGZymok.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./Dropdown-Di2cPjwR.js";import"./includes-CQoJOerW.js";import"./without-BP-mqg2K.js";import"./isArrayLikeObject-CbXKTyfk.js";import"./isEmpty-Cyb9hIKi.js";import"./deburr-CEfyoYOr.js";import"./index-BBpNyw-T.js";import"./_arrayReduce-CrxnWFSq.js";import"./filter-CVNi8iPS.js";import"./Input--hQVCRQV.js";import"./i18next-Sc0HEOoc.js";import"./toPropertyKey-hKuLU48H.js";import"./defineProperty-CCxoMnQV.js";import"./inherits-D5wXBZoG.js";import"./createClass-D2z1h_eG.js";import"./getPrototypeOf-BYVhAdwF.js";import"./index.es28-Dp3-vHIY.js";import"./iframe-BQtATEn0.js";import"../sb-preview/runtime.js";import"./index.es3-Dgr_7mVc.js";import"./uuid-BH6G0oTz.js";import"./Toaster-C1YYqOUE.js";import"./Confirm-Dw9rt56R.js";import"./Pagination-D0HmnRDL.js";import"./Menu-9i0apxqd.js";import"./DropdownButton-D3g-r0e9.js";import"./EditModal-WP1CvOLP.js";import"./Loader-CooidObp.js";import"./Dimmer-D_gwaesu.js";import"./AssociatedDropdown-DQppeffT.js";import"./FuzzyDate-Bx1epA16.js";import"./DateInput-BO57_F9J.js";import"./Trans-Bk6mzQm0.js";import"./objectWithoutProperties--RY0eV0u.js";import"./utils-Bq6oISwF.js";import"./forEach-CXlln0XP.js";import"./index-xJp9Kd2E.js";import"./Number-D3yuhZId.js";const _e=de(ce(e=>{i.useEffect(()=>{e.onInit&&e.onInit()},[]);const r=i.useCallback(d=>e.isSelected(d)?a.jsx($,{color:"green",name:"check"}):null,[e.selectedItems]),o=()=>e.renderHeader?e.renderHeader({onItemClick:e.onItemSelection.bind(void 0),selectedItem:e.selectedItem,selectedItems:e.selectedItems}):a.jsx(ne,{isSelected:d=>e.selectedItem===d,items:e.selectedItems,onItemClick:e.onItemSelection.bind(void 0),renderItem:e.renderItem.bind(void 0)}),t=i.useCallback(()=>l.isEmpty(e.items)?null:e.renderItems?e.renderItems({isSelected:e.isSelected,items:e.items,onSelect:e.onSelect}):a.jsx(k,{basic:!0,padded:!0,selectable:!0,children:a.jsx(k.Body,{children:l.map(e.items,(d,_)=>a.jsxs(k.Row,{onClick:e.onSelect.bind(void 0,d),children:[a.jsx(k.Cell,{children:e.renderItem(d)}),a.jsx(k.Cell,{children:r(d)})]},_))})}),[r,e.items,e.onSelect,e.renderItem]),s=i.useCallback(()=>e.items&&e.items.length||e.loading?null:a.jsx(I,{className:"empty",padded:"vertically",children:a.jsxs(I.Column,{textAlign:"center",children:[a.jsx(I.Row,{children:a.jsx($,{name:"search",size:"huge"})}),a.jsx(I.Row,{children:v.t("Selectize.messages.noRecords")})]})}),[e.items,e.loading]);return a.jsx(I,{children:a.jsxs(I.Column,{textAlign:"center",children:[o(),t(),s()]})})})),f=e=>{const[r,o]=i.useState(!1),[t,s]=i.useState(),[d,_]=i.useState(e.selectedItems||[]),y=i.useMemo(()=>!!e.multiple,[e.multiple]),H=i.useMemo(()=>l.isNumber(e.multiple)?e.multiple:Number.MAX_SAFE_INTEGER,[e.multiple]),S=i.useCallback(u=>!!l.findWhere(d,{id:u.id},[d])),n=i.useCallback(u=>{S(u)?_(P=>l.filter(P,se=>se.id!==u.id)):y?d.length>=H?o(!0):_(P=>[...P,u]):_([u])},[S,e.multiple]),p=i.useCallback(u=>{t===u?(s(null),n(u)):s(u)},[t,n]),x=i.useCallback(u=>e.modal&&e.modal.onSave?e.modal.onSave(u).then(P=>n(P)):Promise.resolve(),[n,e.modal]);return a.jsx(oe.Consumer,{children:u=>a.jsxs(N,{as:me,centered:e.centered,className:"selectize",mountNode:u,noValidate:!0,open:!0,size:"small",children:[a.jsx(N.Header,{content:e.title}),a.jsxs(N.Content,{children:[a.jsx(le,{content:v.t("Selectize.messages.maxSelected.content"),error:!0,header:v.t("Selectize.messages.maxSelected.header"),onDismiss:()=>o(!1),visible:r}),a.jsx(_e,{...e,actions:[],isSelected:S,onDelete:()=>Promise.resolve(),onDeleteAll:()=>Promise.resolve(),onItemSelection:p,onSave:x,onSelect:n,selectedItem:t,selectedItems:d})]}),a.jsxs(N.Actions,{children:[a.jsx(b,{onClick:e.onSave.bind(void 0,d),primary:!0,size:"medium",type:"submit",children:v.t("Common.buttons.save")}),a.jsx(b,{basic:!0,onClick:e.onClose.bind(void 0),size:"medium",type:"button",children:v.t("Common.buttons.cancel")})]})]})})};f.defaultProps={centered:!1,modal:void 0,multiple:!0,searchable:!0,selectedItems:[]};f.__docgenInfo={description:"",methods:[],displayName:"Selectize",props:{centered:{required:!1,flowType:{name:"boolean"},description:"",defaultValue:{value:"false",computed:!1}},collectionName:{required:!0,flowType:{name:"string"},description:""},filters:{required:!1,flowType:{name:"signature",type:"object",raw:`{ component: ComponentType, defaults: any, props: any, diff --git a/docs/assets/SimpleEditPage.stories-Bj6FIWsN.js b/docs/assets/SimpleEditPage.stories-Cii-WvJK.js similarity index 98% rename from docs/assets/SimpleEditPage.stories-Bj6FIWsN.js rename to docs/assets/SimpleEditPage.stories-Cii-WvJK.js index bf3c40e7..a85954fa 100644 --- a/docs/assets/SimpleEditPage.stories-Bj6FIWsN.js +++ b/docs/assets/SimpleEditPage.stories-Cii-WvJK.js @@ -1,4 +1,4 @@ -import{j as r}from"./jsx-runtime-BTCK_S7S.js";import{a as A}from"./chunk-WFFRPTHA-B2vgThZf.js";import{r as l,R as S}from"./index-CBqU2yxZ.js";import{F as j}from"./Form-fErk-qk_.js";import"./index.es28-dE8xdd4L.js";import{m as z}from"./index.es21-BD0kU5QO.js";import{G as h}from"./Grid-Czr5owxQ.js";import{M as v}from"./Menu-9i0apxqd.js";import{M as R}from"./Message-3p6wyYpA.js";import{B as N}from"./Button-Blq7Z6RX.js";import{_ as B}from"./extends-CCbyfPlC.js";import{_ as H}from"./inheritsLoose-1HkgTRWY.js";import{_ as k,m as $,o as V,n as U}from"./getElementType-CckcRzoH.js";import{b as w,a as y,i as E,R as G}from"./Portal-DvhHJPzU.js";import{_ as x}from"./index-default-C_maRo4o.js";import{i as g}from"./i18n-C8zWlANG.js";import{T as I}from"./Toaster-C1YYqOUE.js";import"./preview-errors-CzpZmerH.js";import"./index-CKJfshIT.js";import"./v4-D8aEg3BZ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./Label-Cq1fb1cd.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./Icon-2tEtgK8g.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./forEach-CXlln0XP.js";import"./Dimmer-D_gwaesu.js";import"./Checkbox-C9uAfnsM.js";import"./_baseSet-6y0qliU9.js";import"./_baseAssignValue-izmKBXUH.js";import"./Dropdown-Di2cPjwR.js";import"./map-B4PnIEPz.js";import"./without-BP-mqg2K.js";import"./isArrayLikeObject-CbXKTyfk.js";import"./isEmpty-Cyb9hIKi.js";import"./deburr-CEfyoYOr.js";import"./index-BBpNyw-T.js";import"./_arrayReduce-CrxnWFSq.js";import"./keyboardKey-OMDgGVm3.js";import"./filter-CVNi8iPS.js";import"./Input--hQVCRQV.js";import"./index-DZGZymok.js";import"./iframe-ovyJW9VA.js";import"../sb-preview/runtime.js";import"./setPrototypeOf-DgZC2w_0.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./i18next-Sc0HEOoc.js";import"./toPropertyKey-hKuLU48H.js";import"./defineProperty-CCxoMnQV.js";import"./inherits-D5wXBZoG.js";import"./createClass-D2z1h_eG.js";import"./getPrototypeOf-BYVhAdwF.js";import"./Transition-DSFEXhCu.js";var T=function(o){H(m,o);function m(){for(var t,n=arguments.length,s=new Array(n),a=0;a0)return t.stickToContextTop(e);if(t.contextRect.bottom=t.contextRect.bottom},t.didReachStartingPoint=function(){return t.stickyRect.top<=t.triggerRect.top},t.didTouchScreenTop=function(){return t.triggerRect.topwindow.innerHeight},t.isOversized=function(){return t.stickyRect.height>window.innerHeight},t.pushing=function(e){var i=t.props.pushing;i&&t.setState({pushing:e})},t.stick=function(e,i){t.setState({bound:i,sticky:!0}),k(t.props,"onStick",e,t.props)},t.unstick=function(e,i){t.setState({bound:i,sticky:!1}),k(t.props,"onUnstick",e,t.props)},t.stickToContextBottom=function(e){k(t.props,"onBottom",e,t.props),t.stick(e,!0),t.pushing(!0)},t.stickToContextTop=function(e){k(t.props,"onTop",e,t.props),t.unstick(e,!1),t.pushing(!1)},t.stickToScreenBottom=function(e){var i=t.props.bottomOffset;t.stick(e,!1),t.setState({bottom:i,top:null})},t.stickToScreenTop=function(e){var i=t.props.offset;t.stick(e,!1),t.setState({top:i,bottom:null})},t}var f=m.prototype;return f.componentDidMount=function(){if(E()){var n=this.state.active;n&&(this.handleUpdate(),this.addListeners(this.props.scrollContext))}},m.getDerivedStateFromProps=function(n,s){return s.active!==n.active&&!n.active?{active:n.active,sticky:!1}:{active:n.active}},f.componentDidUpdate=function(n,s){if(s.active===this.state.active){n.scrollContext!==this.props.scrollContext&&(this.removeListeners(n.scrollContext),this.addListeners(this.props.scrollContext));return}if(this.state.active){this.handleUpdate(),this.addListeners(this.props.scrollContext);return}this.removeListeners(n.scrollContext)},f.componentWillUnmount=function(){if(E()){var n=this.state.active;n&&(this.removeListeners(this.props.scrollContext),cancelAnimationFrame(this.frameId))}},f.computeStyle=function(){var n=this.props.styleElement,s=this.state,a=s.bottom,e=s.bound,i=s.sticky,u=s.top;return i?B({bottom:e?0:a,top:e?void 0:u,width:this.triggerRect.width},n):n},f.render=function(){var n=this.props,s=n.children,a=n.className,e=this.state,i=e.bottom,u=e.bound,p=e.sticky,c=$(m,this.props),d=V(m,this.props),F=U(p&&"ui",p&&"stuck-container",p&&(u?"bound-container":"fixed-container"),a),q=U("ui",p&&(u?"bound bottom":"fixed"),p&&!u&&(i===null?"top":"bottom"),"sticky"),L=p&&this.stickyRect?{height:this.stickyRect.height}:{};return S.createElement(d,B({},c,{className:F}),S.createElement("div",{ref:this.triggerRef,style:L}),S.createElement("div",{className:q,ref:this.stickyRef,style:this.computeStyle()},s))},m}(l.Component);T.handledProps=["active","as","bottomOffset","children","className","context","offset","onBottom","onStick","onTop","onUnstick","pushing","scrollContext","styleElement"];T.propTypes={};T.defaultProps={active:!0,bottomOffset:0,offset:0,scrollContext:E()?window:null};const C=o=>{const[m,f]=l.useState(),[t,n]=l.useState(!1),s=l.useRef(),a=z.findByType(o.children,C.Tab),e=l.useMemo(()=>x.find(a,c=>c.key===m),[m,a]),i=l.useMemo(()=>{const c=["simple-edit-page"];return o.className&&c.push(o.className),c.join(" ")},[o.className]),u=l.useCallback(c=>{const{key:d}=c;f(d),o.onTabClick&&o.onTabClick(d)},[o.onTabClick]),p=l.useCallback(()=>{const c=r.jsxs(v,{...o.menuProps,children:[(a==null?void 0:a.length)>1&&x.map(a,d=>r.jsx(v.Item,{active:d.key===m,disabled:o.loading||o.saving,name:d.props.name,onClick:()=>u(d)},d.key)),r.jsx(v.Menu,{position:"right",children:r.jsxs(v.Item,{className:"button-container",children:[o.editable&&r.jsx(N,{content:g.t("Common.buttons.save"),disabled:o.loading||o.saving,onClick:o.onSave,primary:!0}),r.jsx(N,{basic:!0,content:g.t("Common.buttons.cancel"),disabled:o.loading||o.saving,onClick:o.onCancel})]})})]});return o.stickyMenu?r.jsx(T,{context:s,offset:20,children:c}):c});return l.useEffect(()=>{let c;o.defaultTab?c={key:o.defaultTab}:c=x.first(a),c&&u(c),o.saved&&n(!0)},[]),r.jsxs(h,{className:i,children:[r.jsx(h.Row,{children:r.jsx(h.Column,{children:p()})}),r.jsx(h.Row,{children:r.jsx(h.Column,{children:r.jsx(G,{innerRef:s,children:r.jsxs("div",{children:[r.jsxs(j,{error:!x.isEmpty(o.errors),loading:o.loading||o.saving,noValidate:!0,children:[r.jsx(R,{error:!0,header:g.t("Common.errors.save"),list:o.errors}),e&&e.props.children]}),t&&r.jsxs(I,{onDismiss:()=>n(!1),type:I.MessageTypes.positive,children:[r.jsx(R.Header,{content:g.t("Common.messages.save.header")}),r.jsx(R.Content,{content:g.t("Common.messages.save.content")})]})]})})})})]})};C.defaultProps={editable:!0,menuProps:{pointing:!0,secondary:!0}};const O=o=>o.children;O.displayName="Tab";const W=Object.assign(C,{Tab:O}),P=W;C.__docgenInfo={description:"This component can be used to render the layout for a form/page with edit capabilities. Use in conjunction with the\n`withEditPage` higher-order component for a fully fledged record editing environment.",methods:[],displayName:"SimpleEditPage",props:{className:{required:!1,flowType:{name:"string"},description:"Additional class attribute to apply to the root DOM element."},defaultTab:{required:!1,flowType:{name:"string"},description:"Sets the default visible tab. If no value is provided, the first tab will be visible."},editable:{required:!1,flowType:{name:"boolean"},description:"If `false`, the save button will be hidden.",defaultValue:{value:"true",computed:!1}},menuProps:{required:!1,flowType:{name:"MenuProps"},description:"Props to provide to the Semantic UI `Menu` component.",defaultValue:{value:`{ +import{j as r}from"./jsx-runtime-BTCK_S7S.js";import{a as A}from"./chunk-WFFRPTHA-B2vgThZf.js";import{r as l,R as S}from"./index-CBqU2yxZ.js";import{F as j}from"./Form-fErk-qk_.js";import"./index.es28-Dp3-vHIY.js";import{m as z}from"./index.es21-BD0kU5QO.js";import{G as h}from"./Grid-Czr5owxQ.js";import{M as v}from"./Menu-9i0apxqd.js";import{M as R}from"./Message-3p6wyYpA.js";import{B as N}from"./Button-Blq7Z6RX.js";import{_ as B}from"./extends-CCbyfPlC.js";import{_ as H}from"./inheritsLoose-1HkgTRWY.js";import{_ as k,m as $,o as V,n as U}from"./getElementType-CckcRzoH.js";import{b as w,a as y,i as E,R as G}from"./Portal-DvhHJPzU.js";import{_ as x}from"./index-default-C_maRo4o.js";import{i as g}from"./i18n-C8zWlANG.js";import{T as I}from"./Toaster-C1YYqOUE.js";import"./preview-errors-CzpZmerH.js";import"./index-CKJfshIT.js";import"./v4-D8aEg3BZ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./Label-Cq1fb1cd.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./Icon-2tEtgK8g.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./forEach-CXlln0XP.js";import"./Dimmer-D_gwaesu.js";import"./Checkbox-C9uAfnsM.js";import"./_baseSet-6y0qliU9.js";import"./_baseAssignValue-izmKBXUH.js";import"./Dropdown-Di2cPjwR.js";import"./map-B4PnIEPz.js";import"./without-BP-mqg2K.js";import"./isArrayLikeObject-CbXKTyfk.js";import"./isEmpty-Cyb9hIKi.js";import"./deburr-CEfyoYOr.js";import"./index-BBpNyw-T.js";import"./_arrayReduce-CrxnWFSq.js";import"./keyboardKey-OMDgGVm3.js";import"./filter-CVNi8iPS.js";import"./Input--hQVCRQV.js";import"./index-DZGZymok.js";import"./iframe-BQtATEn0.js";import"../sb-preview/runtime.js";import"./setPrototypeOf-DgZC2w_0.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./i18next-Sc0HEOoc.js";import"./toPropertyKey-hKuLU48H.js";import"./defineProperty-CCxoMnQV.js";import"./inherits-D5wXBZoG.js";import"./createClass-D2z1h_eG.js";import"./getPrototypeOf-BYVhAdwF.js";import"./Transition-DSFEXhCu.js";var T=function(o){H(m,o);function m(){for(var t,n=arguments.length,s=new Array(n),a=0;a0)return t.stickToContextTop(e);if(t.contextRect.bottom=t.contextRect.bottom},t.didReachStartingPoint=function(){return t.stickyRect.top<=t.triggerRect.top},t.didTouchScreenTop=function(){return t.triggerRect.topwindow.innerHeight},t.isOversized=function(){return t.stickyRect.height>window.innerHeight},t.pushing=function(e){var i=t.props.pushing;i&&t.setState({pushing:e})},t.stick=function(e,i){t.setState({bound:i,sticky:!0}),k(t.props,"onStick",e,t.props)},t.unstick=function(e,i){t.setState({bound:i,sticky:!1}),k(t.props,"onUnstick",e,t.props)},t.stickToContextBottom=function(e){k(t.props,"onBottom",e,t.props),t.stick(e,!0),t.pushing(!0)},t.stickToContextTop=function(e){k(t.props,"onTop",e,t.props),t.unstick(e,!1),t.pushing(!1)},t.stickToScreenBottom=function(e){var i=t.props.bottomOffset;t.stick(e,!1),t.setState({bottom:i,top:null})},t.stickToScreenTop=function(e){var i=t.props.offset;t.stick(e,!1),t.setState({top:i,bottom:null})},t}var f=m.prototype;return f.componentDidMount=function(){if(E()){var n=this.state.active;n&&(this.handleUpdate(),this.addListeners(this.props.scrollContext))}},m.getDerivedStateFromProps=function(n,s){return s.active!==n.active&&!n.active?{active:n.active,sticky:!1}:{active:n.active}},f.componentDidUpdate=function(n,s){if(s.active===this.state.active){n.scrollContext!==this.props.scrollContext&&(this.removeListeners(n.scrollContext),this.addListeners(this.props.scrollContext));return}if(this.state.active){this.handleUpdate(),this.addListeners(this.props.scrollContext);return}this.removeListeners(n.scrollContext)},f.componentWillUnmount=function(){if(E()){var n=this.state.active;n&&(this.removeListeners(this.props.scrollContext),cancelAnimationFrame(this.frameId))}},f.computeStyle=function(){var n=this.props.styleElement,s=this.state,a=s.bottom,e=s.bound,i=s.sticky,u=s.top;return i?B({bottom:e?0:a,top:e?void 0:u,width:this.triggerRect.width},n):n},f.render=function(){var n=this.props,s=n.children,a=n.className,e=this.state,i=e.bottom,u=e.bound,p=e.sticky,c=$(m,this.props),d=V(m,this.props),F=U(p&&"ui",p&&"stuck-container",p&&(u?"bound-container":"fixed-container"),a),q=U("ui",p&&(u?"bound bottom":"fixed"),p&&!u&&(i===null?"top":"bottom"),"sticky"),L=p&&this.stickyRect?{height:this.stickyRect.height}:{};return S.createElement(d,B({},c,{className:F}),S.createElement("div",{ref:this.triggerRef,style:L}),S.createElement("div",{className:q,ref:this.stickyRef,style:this.computeStyle()},s))},m}(l.Component);T.handledProps=["active","as","bottomOffset","children","className","context","offset","onBottom","onStick","onTop","onUnstick","pushing","scrollContext","styleElement"];T.propTypes={};T.defaultProps={active:!0,bottomOffset:0,offset:0,scrollContext:E()?window:null};const C=o=>{const[m,f]=l.useState(),[t,n]=l.useState(!1),s=l.useRef(),a=z.findByType(o.children,C.Tab),e=l.useMemo(()=>x.find(a,c=>c.key===m),[m,a]),i=l.useMemo(()=>{const c=["simple-edit-page"];return o.className&&c.push(o.className),c.join(" ")},[o.className]),u=l.useCallback(c=>{const{key:d}=c;f(d),o.onTabClick&&o.onTabClick(d)},[o.onTabClick]),p=l.useCallback(()=>{const c=r.jsxs(v,{...o.menuProps,children:[(a==null?void 0:a.length)>1&&x.map(a,d=>r.jsx(v.Item,{active:d.key===m,disabled:o.loading||o.saving,name:d.props.name,onClick:()=>u(d)},d.key)),r.jsx(v.Menu,{position:"right",children:r.jsxs(v.Item,{className:"button-container",children:[o.editable&&r.jsx(N,{content:g.t("Common.buttons.save"),disabled:o.loading||o.saving,onClick:o.onSave,primary:!0}),r.jsx(N,{basic:!0,content:g.t("Common.buttons.cancel"),disabled:o.loading||o.saving,onClick:o.onCancel})]})})]});return o.stickyMenu?r.jsx(T,{context:s,offset:20,children:c}):c});return l.useEffect(()=>{let c;o.defaultTab?c={key:o.defaultTab}:c=x.first(a),c&&u(c),o.saved&&n(!0)},[]),r.jsxs(h,{className:i,children:[r.jsx(h.Row,{children:r.jsx(h.Column,{children:p()})}),r.jsx(h.Row,{children:r.jsx(h.Column,{children:r.jsx(G,{innerRef:s,children:r.jsxs("div",{children:[r.jsxs(j,{error:!x.isEmpty(o.errors),loading:o.loading||o.saving,noValidate:!0,children:[r.jsx(R,{error:!0,header:g.t("Common.errors.save"),list:o.errors}),e&&e.props.children]}),t&&r.jsxs(I,{onDismiss:()=>n(!1),type:I.MessageTypes.positive,children:[r.jsx(R.Header,{content:g.t("Common.messages.save.header")}),r.jsx(R.Content,{content:g.t("Common.messages.save.content")})]})]})})})})]})};C.defaultProps={editable:!0,menuProps:{pointing:!0,secondary:!0}};const O=o=>o.children;O.displayName="Tab";const W=Object.assign(C,{Tab:O}),P=W;C.__docgenInfo={description:"This component can be used to render the layout for a form/page with edit capabilities. Use in conjunction with the\n`withEditPage` higher-order component for a fully fledged record editing environment.",methods:[],displayName:"SimpleEditPage",props:{className:{required:!1,flowType:{name:"string"},description:"Additional class attribute to apply to the root DOM element."},defaultTab:{required:!1,flowType:{name:"string"},description:"Sets the default visible tab. If no value is provided, the first tab will be visible."},editable:{required:!1,flowType:{name:"boolean"},description:"If `false`, the save button will be hidden.",defaultValue:{value:"true",computed:!1}},menuProps:{required:!1,flowType:{name:"MenuProps"},description:"Props to provide to the Semantic UI `Menu` component.",defaultValue:{value:`{ pointing: true, secondary: true }`,computed:!1}},onCancel:{required:!0,flowType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:'Callback fired when the "Cancel" button is clicked.'},onTabClick:{required:!1,flowType:{name:"signature",type:"function",raw:"(tab: string) => void",signature:{arguments:[{name:"tab",type:{name:"string"}}],return:{name:"void"}}},description:`Callback fired when a tab is clicked. diff --git a/docs/assets/StyleSelector-BpXJnbXT.js b/docs/assets/StyleSelector-CaHWErOZ.js similarity index 97% rename from docs/assets/StyleSelector-BpXJnbXT.js rename to docs/assets/StyleSelector-CaHWErOZ.js index 8779298b..be0d5563 100644 --- a/docs/assets/StyleSelector-BpXJnbXT.js +++ b/docs/assets/StyleSelector-CaHWErOZ.js @@ -1 +1 @@ -import{j as y}from"./jsx-runtime-BTCK_S7S.js";import{r as c}from"./index.es28-dE8xdd4L.js";import{r as n}from"./index-CBqU2yxZ.js";import{D as S}from"./Dropdown-Di2cPjwR.js";import{_ as b}from"./index-default-C_maRo4o.js";const x=[{isDefault:!1,name:"apa",title:"American Psychological Association 7th edition"},{isDefault:!1,name:"chicago-note-bibliography",title:"Chicago Manual of Style 17th edition (note)"},{isDefault:!0,name:"modern-language-association",title:"Modern Language Association 9th edition"},{isDefault:!1,name:"turabian-fullnote-bibliography",title:"Turabian 8th edition (full note)"}],C=10349,v={coreCitationStyles:x,citationStylesCount:C},w=o=>{const[a,e]=n.useState(),[l,r]=n.useState({}),[i,d]=n.useState(),[m,f]=n.useState(),s=n.useMemo(()=>v.coreCitationStyles,[]),h=n.useCallback(t=>{const u=c.findWhere(s,{name:t});e(t),d(u==null?void 0:u.title)},[s]),g=n.useMemo(()=>({name:a,title:i,xml:m}),[a,i,m]);return n.useEffect(()=>{if(!a){let t;o?t=c.findWhere(s,{name:o}):t=c.findWhere(s,{isDefault:!0}),h(t==null?void 0:t.name)}},[s,o]),n.useEffect(()=>{a&&(c.has(l,a)?f(l[a]):fetch(`https://www.zotero.org/styles/${a}`).then(t=>t.text()).then(t=>{f(t),r(u=>({...u,[a]:t}))}))},[a,l]),{onStyleChange:h,style:g,styles:s}},p=o=>{const{onStyleChange:a,style:e,styles:l}=w(o.value);return n.useEffect(()=>{e!=null&&e.name&&(e!=null&&e.xml)&&o.onChange(e.name,e.xml)},[e]),y.jsx(S,{onChange:(r,{value:i})=>a(i),options:b.map(l,({name:r,title:i})=>({key:r,value:r,text:i})),search:!0,searchInput:{"aria-label":"Search styles"},selectOnBlur:!1,selection:!0,text:e==null?void 0:e.title,value:(e==null?void 0:e.name)||""})},j=p;p.__docgenInfo={description:"This component can be used, along with the `useCitationStyles` hook, to display a list of bibliographic styles\nsupported by Zotero.",methods:[],displayName:"StyleSelector",props:{onChange:{required:!0,flowType:{name:"signature",type:"function",raw:"(name: string, xml: string) => void",signature:{arguments:[{name:"name",type:{name:"string"}},{name:"xml",type:{name:"string"}}],return:{name:"void"}}},description:"Callback fired when the style selector is changed."},value:{required:!1,flowType:{name:"string"},description:"Default style value."}}};export{j as S}; +import{j as y}from"./jsx-runtime-BTCK_S7S.js";import{r as c}from"./index.es28-Dp3-vHIY.js";import{r as n}from"./index-CBqU2yxZ.js";import{D as S}from"./Dropdown-Di2cPjwR.js";import{_ as b}from"./index-default-C_maRo4o.js";const x=[{isDefault:!1,name:"apa",title:"American Psychological Association 7th edition"},{isDefault:!1,name:"chicago-note-bibliography",title:"Chicago Manual of Style 17th edition (note)"},{isDefault:!0,name:"modern-language-association",title:"Modern Language Association 9th edition"},{isDefault:!1,name:"turabian-fullnote-bibliography",title:"Turabian 8th edition (full note)"}],C=10349,v={coreCitationStyles:x,citationStylesCount:C},w=o=>{const[a,e]=n.useState(),[l,r]=n.useState({}),[i,d]=n.useState(),[m,f]=n.useState(),s=n.useMemo(()=>v.coreCitationStyles,[]),h=n.useCallback(t=>{const u=c.findWhere(s,{name:t});e(t),d(u==null?void 0:u.title)},[s]),g=n.useMemo(()=>({name:a,title:i,xml:m}),[a,i,m]);return n.useEffect(()=>{if(!a){let t;o?t=c.findWhere(s,{name:o}):t=c.findWhere(s,{isDefault:!0}),h(t==null?void 0:t.name)}},[s,o]),n.useEffect(()=>{a&&(c.has(l,a)?f(l[a]):fetch(`https://www.zotero.org/styles/${a}`).then(t=>t.text()).then(t=>{f(t),r(u=>({...u,[a]:t}))}))},[a,l]),{onStyleChange:h,style:g,styles:s}},p=o=>{const{onStyleChange:a,style:e,styles:l}=w(o.value);return n.useEffect(()=>{e!=null&&e.name&&(e!=null&&e.xml)&&o.onChange(e.name,e.xml)},[e]),y.jsx(S,{onChange:(r,{value:i})=>a(i),options:b.map(l,({name:r,title:i})=>({key:r,value:r,text:i})),search:!0,searchInput:{"aria-label":"Search styles"},selectOnBlur:!1,selection:!0,text:e==null?void 0:e.title,value:(e==null?void 0:e.name)||""})},j=p;p.__docgenInfo={description:"This component can be used, along with the `useCitationStyles` hook, to display a list of bibliographic styles\nsupported by Zotero.",methods:[],displayName:"StyleSelector",props:{onChange:{required:!0,flowType:{name:"signature",type:"function",raw:"(name: string, xml: string) => void",signature:{arguments:[{name:"name",type:{name:"string"}},{name:"xml",type:{name:"string"}}],return:{name:"void"}}},description:"Callback fired when the style selector is changed."},value:{required:!1,flowType:{name:"string"},description:"Default style value."}}};export{j as S}; diff --git a/docs/assets/StyleSelector.stories-Df3DvZOh.js b/docs/assets/StyleSelector.stories-Li21fODd.js similarity index 90% rename from docs/assets/StyleSelector.stories-Df3DvZOh.js rename to docs/assets/StyleSelector.stories-Li21fODd.js index 36bcb3f5..8af89bd2 100644 --- a/docs/assets/StyleSelector.stories-Df3DvZOh.js +++ b/docs/assets/StyleSelector.stories-Li21fODd.js @@ -1,4 +1,4 @@ -import{j as o}from"./jsx-runtime-BTCK_S7S.js";import{a as e}from"./chunk-WFFRPTHA-B2vgThZf.js";import"./index-CBqU2yxZ.js";import{S as p}from"./StyleSelector-BpXJnbXT.js";import"./preview-errors-CzpZmerH.js";import"./index-CKJfshIT.js";import"./v4-D8aEg3BZ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index.es28-dE8xdd4L.js";import"./index-DZGZymok.js";import"./iframe-ovyJW9VA.js";import"../sb-preview/runtime.js";import"./Dropdown-Di2cPjwR.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./includes-CQoJOerW.js";import"./getElementType-CckcRzoH.js";import"./toFinite-KQ8KevIC.js";import"./map-B4PnIEPz.js";import"./without-BP-mqg2K.js";import"./isArrayLikeObject-CbXKTyfk.js";import"./isEmpty-Cyb9hIKi.js";import"./deburr-CEfyoYOr.js";import"./index-BBpNyw-T.js";import"./_baseSet-6y0qliU9.js";import"./_baseAssignValue-izmKBXUH.js";import"./_arrayReduce-CrxnWFSq.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./Icon-2tEtgK8g.js";import"./Label-Cq1fb1cd.js";import"./forEach-CXlln0XP.js";import"./Dimmer-D_gwaesu.js";import"./filter-CVNi8iPS.js";import"./index-default-C_maRo4o.js";const Q={title:"Components/Semantic UI/StyleSelector",component:p},t=()=>o.jsx("div",{style:{minHeight:"400px"},children:o.jsx(p,{onChange:e("onChange")})});t.__docgenInfo={description:"",methods:[],displayName:"Default"};var r,i,m;t.parameters={...t.parameters,docs:{...(r=t.parameters)==null?void 0:r.docs,source:{originalSource:`() =>
o.jsx("div",{style:{minHeight:"400px"},children:o.jsx(p,{onChange:e("onChange")})});t.__docgenInfo={description:"",methods:[],displayName:"Default"};var r,i,m;t.parameters={...t.parameters,docs:{...(r=t.parameters)==null?void 0:r.docs,source:{originalSource:`() =>
diff --git a/docs/assets/TabbedModal-DZNfI0w-.js b/docs/assets/TabbedModal-80_P0_JO.js similarity index 98% rename from docs/assets/TabbedModal-DZNfI0w-.js rename to docs/assets/TabbedModal-80_P0_JO.js index e4d14adc..8cbe5066 100644 --- a/docs/assets/TabbedModal-DZNfI0w-.js +++ b/docs/assets/TabbedModal-80_P0_JO.js @@ -1,4 +1,4 @@ -var u=Object.defineProperty;var h=(a,e,s)=>e in a?u(a,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):a[e]=s;var l=(a,e,s)=>(h(a,typeof e!="symbol"?e+"":e,s),s);import{j as r}from"./jsx-runtime-BTCK_S7S.js";import"./index.es28-dE8xdd4L.js";import{r as f}from"./index-CBqU2yxZ.js";import{m as i}from"./index.es21-BD0kU5QO.js";import{M as m}from"./Menu-9i0apxqd.js";import{H as b}from"./Header-BJ3NNdPz.js";import{M as d}from"./Modal-Bz2VEyQG.js";import{_ as o}from"./index-default-C_maRo4o.js";import{M as T}from"./ModalContext-Bu-D9kD-.js";const t=class t extends f.Component{constructor(e){super(e),this.state={tab:null}}componentDidMount(){const e=o.first(i.findByType(this.props.children,t.Tab));this.setState({tab:e.props.name})}getHeaderClasses(){const e=["modal-header"];return this.props.inlineTabs&&e.push("inline-header"),e.join(" ")}getModalClasses(){const e=["tabbed-modal"];return this.props.className&&e.push(this.props.className),e.join(" ")}render(){const e=i.findByType(this.props.children,t.Tab),s=o.find(e,p=>p.props.name===this.state.tab);return r.jsx(T.Consumer,{children:p=>r.jsxs(d,{className:this.getModalClasses(),mountNode:p,...o.omit(this.props,"header","renderHeader","inlineTabs","className"),children:[r.jsxs(d.Header,{className:this.getHeaderClasses(),children:[this.renderHeader(),r.jsx(m,{float:"right",secondary:!0,children:o.map(i.findByType(this.props.children,t.Tab),this.renderTab.bind(this))})]}),r.jsx(d.Content,{children:s&&r.jsx("div",{children:s.props.children},s.props.name)}),i.findByType(this.props.children,d.Actions)]})})}renderHeader(){return this.props.renderHeader?this.props.renderHeader():r.jsx(b,{content:this.props.header})}renderTab(e){const{name:s}=e.props;return r.jsx(m.Item,{active:this.state.tab===s,name:s,onClick:()=>this.setState({tab:s}),children:s},s)}};l(t,"defaultProps"),l(t,"Tab");let n=t;const c=a=>a.children;c.displayName="Tab";n.Tab=c;n.defaultProps={className:void 0,inlineTabs:!0,renderHeader:void 0};n.__docgenInfo={description:"",methods:[{name:"Tab",docblock:null,modifiers:["static"],params:[{name:"props",optional:!1,type:null}],returns:null},{name:"getHeaderClasses",docblock:`Returns the header classes. +var u=Object.defineProperty;var h=(a,e,s)=>e in a?u(a,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):a[e]=s;var l=(a,e,s)=>(h(a,typeof e!="symbol"?e+"":e,s),s);import{j as r}from"./jsx-runtime-BTCK_S7S.js";import"./index.es28-Dp3-vHIY.js";import{r as f}from"./index-CBqU2yxZ.js";import{m as i}from"./index.es21-BD0kU5QO.js";import{M as m}from"./Menu-9i0apxqd.js";import{H as b}from"./Header-BJ3NNdPz.js";import{M as d}from"./Modal-Bz2VEyQG.js";import{_ as o}from"./index-default-C_maRo4o.js";import{M as T}from"./ModalContext-Bu-D9kD-.js";const t=class t extends f.Component{constructor(e){super(e),this.state={tab:null}}componentDidMount(){const e=o.first(i.findByType(this.props.children,t.Tab));this.setState({tab:e.props.name})}getHeaderClasses(){const e=["modal-header"];return this.props.inlineTabs&&e.push("inline-header"),e.join(" ")}getModalClasses(){const e=["tabbed-modal"];return this.props.className&&e.push(this.props.className),e.join(" ")}render(){const e=i.findByType(this.props.children,t.Tab),s=o.find(e,p=>p.props.name===this.state.tab);return r.jsx(T.Consumer,{children:p=>r.jsxs(d,{className:this.getModalClasses(),mountNode:p,...o.omit(this.props,"header","renderHeader","inlineTabs","className"),children:[r.jsxs(d.Header,{className:this.getHeaderClasses(),children:[this.renderHeader(),r.jsx(m,{float:"right",secondary:!0,children:o.map(i.findByType(this.props.children,t.Tab),this.renderTab.bind(this))})]}),r.jsx(d.Content,{children:s&&r.jsx("div",{children:s.props.children},s.props.name)}),i.findByType(this.props.children,d.Actions)]})})}renderHeader(){return this.props.renderHeader?this.props.renderHeader():r.jsx(b,{content:this.props.header})}renderTab(e){const{name:s}=e.props;return r.jsx(m.Item,{active:this.state.tab===s,name:s,onClick:()=>this.setState({tab:s}),children:s},s)}};l(t,"defaultProps"),l(t,"Tab");let n=t;const c=a=>a.children;c.displayName="Tab";n.Tab=c;n.defaultProps={className:void 0,inlineTabs:!0,renderHeader:void 0};n.__docgenInfo={description:"",methods:[{name:"Tab",docblock:null,modifiers:["static"],params:[{name:"props",optional:!1,type:null}],returns:null},{name:"getHeaderClasses",docblock:`Returns the header classes. @returns {string}`,modifiers:[],params:[],returns:{type:{name:"string"}},description:"Returns the header classes."},{name:"getModalClasses",docblock:`Returns the modal classes. diff --git a/docs/assets/TabbedModal.stories-DpfUK-6Z.js b/docs/assets/TabbedModal.stories-eaOd302G.js similarity index 89% rename from docs/assets/TabbedModal.stories-DpfUK-6Z.js rename to docs/assets/TabbedModal.stories-eaOd302G.js index 0a4153af..c99c8747 100644 --- a/docs/assets/TabbedModal.stories-DpfUK-6Z.js +++ b/docs/assets/TabbedModal.stories-eaOd302G.js @@ -1,4 +1,4 @@ -import{j as e}from"./jsx-runtime-BTCK_S7S.js";import"./index-CBqU2yxZ.js";import{d as a}from"./index-DfmhmaGJ.js";import{_ as h}from"./index-default-C_maRo4o.js";import{T as o}from"./TabbedModal-DZNfI0w-.js";import"./_commonjsHelpers-BosuxZz1.js";import"./mapValues-CZh2vnSw.js";import"./pickBy-CU2rOOKe.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-Bu_b4Pek.js";import"./index-Cw1G72V2.js";import"./index-CKJfshIT.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./preview-errors-CzpZmerH.js";import"./debounce-Bq1aTuh-.js";import"./index.es28-dE8xdd4L.js";import"./index-DZGZymok.js";import"./iframe-ovyJW9VA.js";import"../sb-preview/runtime.js";import"./index.es21-BD0kU5QO.js";import"./Menu-9i0apxqd.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./map-B4PnIEPz.js";import"./getElementType-CckcRzoH.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./_arrayReduce-CrxnWFSq.js";import"./deburr-CEfyoYOr.js";import"./Icon-2tEtgK8g.js";import"./Header-BJ3NNdPz.js";import"./Label-Cq1fb1cd.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./forEach-CXlln0XP.js";import"./Dimmer-D_gwaesu.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./Modal-Bz2VEyQG.js";import"./index-BBpNyw-T.js";import"./_baseSet-6y0qliU9.js";import"./_baseAssignValue-izmKBXUH.js";import"./isEmpty-Cyb9hIKi.js";import"./Button-Blq7Z6RX.js";import"./ModalContext-Bu-D9kD-.js";const le={title:"Components/Semantic UI/TabbedModal",decorators:[a.withKnobs]},t=()=>e.jsxs(o,{header:a.text("Header","Modal Header"),inlineTabs:a.boolean("Inline tabs",!1),open:!0,children:[e.jsx(o.Tab,{name:"Tab 1",children:e.jsx("div",{children:"Tab 1 content"})}),e.jsx(o.Tab,{name:"Tab 2",children:e.jsx("div",{children:"Tab 2 content"})})]}),r=()=>{const M=a.number("Number of tabs",3);return e.jsx(o,{header:a.text("Header","Modal Header"),inlineTabs:a.boolean("Inline tabs",!1),open:!0,children:h.times(M,d=>e.jsx(o.Tab,{name:`Tab ${d}`,children:e.jsx("div",{children:`Tab ${d} content`})}))})},n=()=>e.jsxs(o,{header:a.text("Header","Modal Header"),inlineTabs:a.boolean("Inline tabs",!1),open:!0,children:[e.jsx(o.Tab,{name:a.text("Tab 1 Name","Tab 1"),children:e.jsx("div",{children:"Tab 1 content"})}),e.jsx(o.Tab,{name:a.text("Tab 2 Name","Tab 2"),children:e.jsx("div",{children:"Tab 2 content"})})]});t.__docgenInfo={description:"",methods:[],displayName:"Default"};r.__docgenInfo={description:"",methods:[],displayName:"DynamicTabs"};n.__docgenInfo={description:"",methods:[],displayName:"NamedTabs"};var i,b,s;t.parameters={...t.parameters,docs:{...(i=t.parameters)==null?void 0:i.docs,source:{originalSource:`() => +import{j as e}from"./jsx-runtime-BTCK_S7S.js";import"./index-CBqU2yxZ.js";import{d as a}from"./index-CAen7T_W.js";import{_ as h}from"./index-default-C_maRo4o.js";import{T as o}from"./TabbedModal-80_P0_JO.js";import"./_commonjsHelpers-BosuxZz1.js";import"./mapValues-LQZI9uWW.js";import"./pickBy-Us6u5-To.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-DCkRKKtx.js";import"./index-Cw1G72V2.js";import"./index-CKJfshIT.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./preview-errors-CzpZmerH.js";import"./debounce-BkgZrIul.js";import"./index.es28-Dp3-vHIY.js";import"./index-DZGZymok.js";import"./iframe-BQtATEn0.js";import"../sb-preview/runtime.js";import"./index.es21-BD0kU5QO.js";import"./Menu-9i0apxqd.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./map-B4PnIEPz.js";import"./getElementType-CckcRzoH.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./_arrayReduce-CrxnWFSq.js";import"./deburr-CEfyoYOr.js";import"./Icon-2tEtgK8g.js";import"./Header-BJ3NNdPz.js";import"./Label-Cq1fb1cd.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./forEach-CXlln0XP.js";import"./Dimmer-D_gwaesu.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./Modal-Bz2VEyQG.js";import"./index-BBpNyw-T.js";import"./_baseSet-6y0qliU9.js";import"./_baseAssignValue-izmKBXUH.js";import"./isEmpty-Cyb9hIKi.js";import"./Button-Blq7Z6RX.js";import"./ModalContext-Bu-D9kD-.js";const le={title:"Components/Semantic UI/TabbedModal",decorators:[a.withKnobs]},t=()=>e.jsxs(o,{header:a.text("Header","Modal Header"),inlineTabs:a.boolean("Inline tabs",!1),open:!0,children:[e.jsx(o.Tab,{name:"Tab 1",children:e.jsx("div",{children:"Tab 1 content"})}),e.jsx(o.Tab,{name:"Tab 2",children:e.jsx("div",{children:"Tab 2 content"})})]}),r=()=>{const M=a.number("Number of tabs",3);return e.jsx(o,{header:a.text("Header","Modal Header"),inlineTabs:a.boolean("Inline tabs",!1),open:!0,children:h.times(M,d=>e.jsx(o.Tab,{name:`Tab ${d}`,children:e.jsx("div",{children:`Tab ${d} content`})}))})},n=()=>e.jsxs(o,{header:a.text("Header","Modal Header"),inlineTabs:a.boolean("Inline tabs",!1),open:!0,children:[e.jsx(o.Tab,{name:a.text("Tab 1 Name","Tab 1"),children:e.jsx("div",{children:"Tab 1 content"})}),e.jsx(o.Tab,{name:a.text("Tab 2 Name","Tab 2"),children:e.jsx("div",{children:"Tab 2 content"})})]});t.__docgenInfo={description:"",methods:[],displayName:"Default"};r.__docgenInfo={description:"",methods:[],displayName:"DynamicTabs"};n.__docgenInfo={description:"",methods:[],displayName:"NamedTabs"};var i,b,s;t.parameters={...t.parameters,docs:{...(i=t.parameters)==null?void 0:i.docs,source:{originalSource:`() =>
Tab 1 content
diff --git a/docs/assets/TagsList.stories-DMQkVQiI.js b/docs/assets/TagsList.stories-agq51TaR.js similarity index 89% rename from docs/assets/TagsList.stories-DMQkVQiI.js rename to docs/assets/TagsList.stories-agq51TaR.js index 45f4cf3d..2f0b973e 100644 --- a/docs/assets/TagsList.stories-DMQkVQiI.js +++ b/docs/assets/TagsList.stories-agq51TaR.js @@ -1,4 +1,4 @@ -import{j as t}from"./jsx-runtime-BTCK_S7S.js";import"./index-CBqU2yxZ.js";import{d}from"./index-DfmhmaGJ.js";import{I as p}from"./Icon-2tEtgK8g.js";import{L as u}from"./Label-Cq1fb1cd.js";import{_ as f}from"./index-default-C_maRo4o.js";import"./_commonjsHelpers-BosuxZz1.js";import"./mapValues-CZh2vnSw.js";import"./pickBy-CU2rOOKe.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-Bu_b4Pek.js";import"./index-Cw1G72V2.js";import"./index-CKJfshIT.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./preview-errors-CzpZmerH.js";import"./debounce-Bq1aTuh-.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getElementType-CckcRzoH.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./forEach-CXlln0XP.js";import"./Dimmer-D_gwaesu.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./index-DZGZymok.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";const n=r=>t.jsx("div",{className:"tags-list",children:f.map(r.tags||[],e=>t.jsxs(u,{style:{backgroundColor:r.config&&r.config[e]&&r.config[e].background,color:r.config&&r.config[e]&&r.config[e].color,marginRight:"10px"},children:[e,r.onDelete&&t.jsx(p,{name:"delete",onClick:r.onDelete.bind(void 0,e)})]}))});n.__docgenInfo={description:"",methods:[],displayName:"TagsList",props:{config:{required:!1,flowType:{name:"signature",type:"object",raw:`{ +import{j as t}from"./jsx-runtime-BTCK_S7S.js";import"./index-CBqU2yxZ.js";import{d}from"./index-CAen7T_W.js";import{I as p}from"./Icon-2tEtgK8g.js";import{L as u}from"./Label-Cq1fb1cd.js";import{_ as f}from"./index-default-C_maRo4o.js";import"./_commonjsHelpers-BosuxZz1.js";import"./mapValues-LQZI9uWW.js";import"./pickBy-Us6u5-To.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-DCkRKKtx.js";import"./index-Cw1G72V2.js";import"./index-CKJfshIT.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./preview-errors-CzpZmerH.js";import"./debounce-BkgZrIul.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getElementType-CckcRzoH.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./forEach-CXlln0XP.js";import"./Dimmer-D_gwaesu.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./index-DZGZymok.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";const n=r=>t.jsx("div",{className:"tags-list",children:f.map(r.tags||[],e=>t.jsxs(u,{style:{backgroundColor:r.config&&r.config[e]&&r.config[e].background,color:r.config&&r.config[e]&&r.config[e].color,marginRight:"10px"},children:[e,r.onDelete&&t.jsx(p,{name:"delete",onClick:r.onDelete.bind(void 0,e)})]}))});n.__docgenInfo={description:"",methods:[],displayName:"TagsList",props:{config:{required:!1,flowType:{name:"signature",type:"object",raw:`{ [key: string]: { background: string, color: string diff --git a/docs/assets/Thumbnail.stories-Drk3heeI.js b/docs/assets/Thumbnail.stories-Dsr1I8K4.js similarity index 92% rename from docs/assets/Thumbnail.stories-Drk3heeI.js rename to docs/assets/Thumbnail.stories-Dsr1I8K4.js index 245cbe6d..c6417965 100644 --- a/docs/assets/Thumbnail.stories-Drk3heeI.js +++ b/docs/assets/Thumbnail.stories-Dsr1I8K4.js @@ -1,4 +1,4 @@ -import{j as r}from"./jsx-runtime-BTCK_S7S.js";import{r as m}from"./index-CBqU2yxZ.js";import{d}from"./index-DfmhmaGJ.js";import{B as c}from"./Button-Blq7Z6RX.js";import{I as l}from"./Label-Cq1fb1cd.js";import{L as u}from"./Loader-CooidObp.js";import{L as f}from"./LazyImage-BiB2Uvja.js";import"./_commonjsHelpers-BosuxZz1.js";import"./mapValues-CZh2vnSw.js";import"./pickBy-CU2rOOKe.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-Bu_b4Pek.js";import"./index-Cw1G72V2.js";import"./index-CKJfshIT.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./preview-errors-CzpZmerH.js";import"./debounce-Bq1aTuh-.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getElementType-CckcRzoH.js";import"./Icon-2tEtgK8g.js";import"./map-B4PnIEPz.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./toFinite-KQ8KevIC.js";import"./index-DZGZymok.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./includes-CQoJOerW.js";import"./forEach-CXlln0XP.js";import"./Dimmer-D_gwaesu.js";import"./LazyLoader-D1S4_28m.js";import"./without-BP-mqg2K.js";import"./isArrayLikeObject-CbXKTyfk.js";import"./Segment-C5_maSSM.js";import"./Transition-DSFEXhCu.js";import"./_baseAssignValue-izmKBXUH.js";import"./filter-CVNi8iPS.js";import"./i18n-C8zWlANG.js";import"./i18next-Sc0HEOoc.js";import"./toPropertyKey-hKuLU48H.js";import"./defineProperty-CCxoMnQV.js";import"./inherits-D5wXBZoG.js";import"./createClass-D2z1h_eG.js";import"./getPrototypeOf-BYVhAdwF.js";import"./DownloadButton-B5qnjgmD.js";import"./uuid-BH6G0oTz.js";import"./PhotoViewer-CgBZCy1u.js";import"./Message-3p6wyYpA.js";import"./Modal-Bz2VEyQG.js";import"./index-BBpNyw-T.js";import"./_baseSet-6y0qliU9.js";import"./_arrayReduce-CrxnWFSq.js";import"./isEmpty-Cyb9hIKi.js";import"./ModalContext-Bu-D9kD-.js";const s=t=>{const[o,e]=m.useState(!0);return m.useEffect(()=>{o||e(!0)},[t.src]),r.jsxs("div",{children:[r.jsx(u,{active:t.src&&o}),t.src&&r.jsx(l,{...t,onLoad:()=>e(!1),style:{...t.style,visibility:o?"hidden":"visible"}}),!t.src&&r.jsx(f,{})]})};s.defaultProps={style:{}};s.__docgenInfo={description:"",methods:[],displayName:"Thumbnail",props:{src:{required:!0,flowType:{name:"string",nullable:!0},description:""},style:{required:!1,flowType:{name:"any"},description:"",defaultValue:{value:"{}",computed:!1}}}};const It={title:"Components/Semantic UI/Thumbnail",decorators:[d.withKnobs]},i=()=>{const[t,o]=m.useState(0);return r.jsxs(r.Fragment,{children:[r.jsx(s,{src:`https://picsum.photos/500?random=${t}`}),r.jsx(c,{content:"Reload",icon:"refresh",onClick:()=>o(e=>e+1),primary:!0,style:{marginTop:"1em"}})]})};i.__docgenInfo={description:"",methods:[],displayName:"Default"};var p,n,a;i.parameters={...i.parameters,docs:{...(p=i.parameters)==null?void 0:p.docs,source:{originalSource:`() => { +import{j as r}from"./jsx-runtime-BTCK_S7S.js";import{r as m}from"./index-CBqU2yxZ.js";import{d}from"./index-CAen7T_W.js";import{B as c}from"./Button-Blq7Z6RX.js";import{I as l}from"./Label-Cq1fb1cd.js";import{L as u}from"./Loader-CooidObp.js";import{L as f}from"./LazyImage-BiB2Uvja.js";import"./_commonjsHelpers-BosuxZz1.js";import"./mapValues-LQZI9uWW.js";import"./pickBy-Us6u5-To.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-DCkRKKtx.js";import"./index-Cw1G72V2.js";import"./index-CKJfshIT.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./preview-errors-CzpZmerH.js";import"./debounce-BkgZrIul.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getElementType-CckcRzoH.js";import"./Icon-2tEtgK8g.js";import"./map-B4PnIEPz.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./toFinite-KQ8KevIC.js";import"./index-DZGZymok.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./includes-CQoJOerW.js";import"./forEach-CXlln0XP.js";import"./Dimmer-D_gwaesu.js";import"./LazyLoader-D1S4_28m.js";import"./without-BP-mqg2K.js";import"./isArrayLikeObject-CbXKTyfk.js";import"./Segment-C5_maSSM.js";import"./Transition-DSFEXhCu.js";import"./_baseAssignValue-izmKBXUH.js";import"./filter-CVNi8iPS.js";import"./i18n-C8zWlANG.js";import"./i18next-Sc0HEOoc.js";import"./toPropertyKey-hKuLU48H.js";import"./defineProperty-CCxoMnQV.js";import"./inherits-D5wXBZoG.js";import"./createClass-D2z1h_eG.js";import"./getPrototypeOf-BYVhAdwF.js";import"./DownloadButton-B5qnjgmD.js";import"./uuid-BH6G0oTz.js";import"./PhotoViewer-CgBZCy1u.js";import"./Message-3p6wyYpA.js";import"./Modal-Bz2VEyQG.js";import"./index-BBpNyw-T.js";import"./_baseSet-6y0qliU9.js";import"./_arrayReduce-CrxnWFSq.js";import"./isEmpty-Cyb9hIKi.js";import"./ModalContext-Bu-D9kD-.js";const s=t=>{const[o,e]=m.useState(!0);return m.useEffect(()=>{o||e(!0)},[t.src]),r.jsxs("div",{children:[r.jsx(u,{active:t.src&&o}),t.src&&r.jsx(l,{...t,onLoad:()=>e(!1),style:{...t.style,visibility:o?"hidden":"visible"}}),!t.src&&r.jsx(f,{})]})};s.defaultProps={style:{}};s.__docgenInfo={description:"",methods:[],displayName:"Thumbnail",props:{src:{required:!0,flowType:{name:"string",nullable:!0},description:""},style:{required:!1,flowType:{name:"any"},description:"",defaultValue:{value:"{}",computed:!1}}}};const It={title:"Components/Semantic UI/Thumbnail",decorators:[d.withKnobs]},i=()=>{const[t,o]=m.useState(0);return r.jsxs(r.Fragment,{children:[r.jsx(s,{src:`https://picsum.photos/500?random=${t}`}),r.jsx(c,{content:"Reload",icon:"refresh",onClick:()=>o(e=>e+1),primary:!0,style:{marginTop:"1em"}})]})};i.__docgenInfo={description:"",methods:[],displayName:"Default"};var p,n,a;i.parameters={...i.parameters,docs:{...(p=i.parameters)==null?void 0:p.docs,source:{originalSource:`() => { const [index, setIndex] = useState(0); return <> diff --git a/docs/assets/Toaster.stories-BQ_sDuGN.js b/docs/assets/Toaster.stories-q1-Mw20P.js similarity index 91% rename from docs/assets/Toaster.stories-BQ_sDuGN.js rename to docs/assets/Toaster.stories-q1-Mw20P.js index 8f6126e5..a63474b6 100644 --- a/docs/assets/Toaster.stories-BQ_sDuGN.js +++ b/docs/assets/Toaster.stories-q1-Mw20P.js @@ -1,4 +1,4 @@ -import{j as e}from"./jsx-runtime-BTCK_S7S.js";import{r as a}from"./index-CBqU2yxZ.js";import{d as f}from"./index-DfmhmaGJ.js";import{T as s}from"./Toaster-C1YYqOUE.js";import"./_commonjsHelpers-BosuxZz1.js";import"./mapValues-CZh2vnSw.js";import"./pickBy-CU2rOOKe.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-Bu_b4Pek.js";import"./index-Cw1G72V2.js";import"./index-CKJfshIT.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./preview-errors-CzpZmerH.js";import"./debounce-Bq1aTuh-.js";import"./Message-3p6wyYpA.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getElementType-CckcRzoH.js";import"./Icon-2tEtgK8g.js";import"./map-B4PnIEPz.js";import"./Transition-DSFEXhCu.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./forEach-CXlln0XP.js";import"./_baseAssignValue-izmKBXUH.js";import"./filter-CVNi8iPS.js";import"./index-default-C_maRo4o.js";const V={title:"Components/Semantic UI/Toaster",component:s,decorators:[f.withKnobs]},t=()=>(a.useState(0),e.jsx(e.Fragment,{children:e.jsx(s,{type:"info",timeout:3e3,children:e.jsx(e.Fragment,{children:"I am Info Toast!"})})})),r=()=>(a.useState(0),e.jsx(e.Fragment,{children:e.jsx(s,{type:"positive",timeout:3e3,children:e.jsx(e.Fragment,{children:"I am Positive Toast!"})})})),o=()=>(a.useState(0),e.jsx(e.Fragment,{children:e.jsx(s,{type:"negative",timeout:3e3,children:e.jsx(e.Fragment,{children:"I am Negative Toast!"})})})),n=()=>(a.useState(0),e.jsx(e.Fragment,{children:e.jsx(s,{type:"warning",timeout:3e3,children:e.jsx(e.Fragment,{children:"I am Warning Toast!"})})}));t.__docgenInfo={description:"",methods:[],displayName:"Info"};r.__docgenInfo={description:"",methods:[],displayName:"Positive"};o.__docgenInfo={description:"",methods:[],displayName:"Negative"};n.__docgenInfo={description:"",methods:[],displayName:"Warning"};var i,m,p;t.parameters={...t.parameters,docs:{...(i=t.parameters)==null?void 0:i.docs,source:{originalSource:`() => { +import{j as e}from"./jsx-runtime-BTCK_S7S.js";import{r as a}from"./index-CBqU2yxZ.js";import{d as f}from"./index-CAen7T_W.js";import{T as s}from"./Toaster-C1YYqOUE.js";import"./_commonjsHelpers-BosuxZz1.js";import"./mapValues-LQZI9uWW.js";import"./pickBy-Us6u5-To.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-DCkRKKtx.js";import"./index-Cw1G72V2.js";import"./index-CKJfshIT.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./preview-errors-CzpZmerH.js";import"./debounce-BkgZrIul.js";import"./Message-3p6wyYpA.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getElementType-CckcRzoH.js";import"./Icon-2tEtgK8g.js";import"./map-B4PnIEPz.js";import"./Transition-DSFEXhCu.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./forEach-CXlln0XP.js";import"./_baseAssignValue-izmKBXUH.js";import"./filter-CVNi8iPS.js";import"./index-default-C_maRo4o.js";const V={title:"Components/Semantic UI/Toaster",component:s,decorators:[f.withKnobs]},t=()=>(a.useState(0),e.jsx(e.Fragment,{children:e.jsx(s,{type:"info",timeout:3e3,children:e.jsx(e.Fragment,{children:"I am Info Toast!"})})})),r=()=>(a.useState(0),e.jsx(e.Fragment,{children:e.jsx(s,{type:"positive",timeout:3e3,children:e.jsx(e.Fragment,{children:"I am Positive Toast!"})})})),o=()=>(a.useState(0),e.jsx(e.Fragment,{children:e.jsx(s,{type:"negative",timeout:3e3,children:e.jsx(e.Fragment,{children:"I am Negative Toast!"})})})),n=()=>(a.useState(0),e.jsx(e.Fragment,{children:e.jsx(s,{type:"warning",timeout:3e3,children:e.jsx(e.Fragment,{children:"I am Warning Toast!"})})}));t.__docgenInfo={description:"",methods:[],displayName:"Info"};r.__docgenInfo={description:"",methods:[],displayName:"Positive"};o.__docgenInfo={description:"",methods:[],displayName:"Negative"};n.__docgenInfo={description:"",methods:[],displayName:"Warning"};var i,m,p;t.parameters={...t.parameters,docs:{...(i=t.parameters)==null?void 0:i.docs,source:{originalSource:`() => { const [index, setIndex] = useState(0); return <> diff --git a/docs/assets/TreeGraph.stories-J3v3DI7t.js b/docs/assets/TreeGraph.stories-ByOW_9Dh.js similarity index 99% rename from docs/assets/TreeGraph.stories-J3v3DI7t.js rename to docs/assets/TreeGraph.stories-ByOW_9Dh.js index d110fec2..6b878bb5 100644 --- a/docs/assets/TreeGraph.stories-J3v3DI7t.js +++ b/docs/assets/TreeGraph.stories-ByOW_9Dh.js @@ -1,4 +1,4 @@ -import{j}from"./jsx-runtime-BTCK_S7S.js";import{R as x,r as P}from"./index-CBqU2yxZ.js";import{d as ft}from"./index-DfmhmaGJ.js";import{_ as pe}from"./index-default-C_maRo4o.js";import{_ as Ke}from"./toPropertyKey-hKuLU48H.js";import{_ as wt,a as re,b as Je}from"./inherits-D5wXBZoG.js";import{_ as ie}from"./createClass-D2z1h_eG.js";import{_ as ke}from"./assertThisInitialized-B9jnkVVz.js";import{_ as ge}from"./getPrototypeOf-BYVhAdwF.js";import{_ as me}from"./defineProperty-CCxoMnQV.js";import{_ as Tr}from"./toArray-D9zoIPho.js";import{P as E}from"./index-D3ylJrlI.js";import{a as Rr}from"./debounce-Bq1aTuh-.js";import{c as X}from"./index-BpvXyOxN.js";import"./_commonjsHelpers-BosuxZz1.js";import"./mapValues-CZh2vnSw.js";import"./pickBy-CU2rOOKe.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-Bu_b4Pek.js";import"./index-Cw1G72V2.js";import"./index-CKJfshIT.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./preview-errors-CzpZmerH.js";import"./setPrototypeOf-DgZC2w_0.js";import"./nonIterableRest-Bc-81Ll3.js";import"./iterableToArray-DI-mZnTP.js";import"./unsupportedIterableToArray-78IFcom3.js";var Cr=["top","left","transform","className","children","innerRef"];function Nt(){return Nt=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&(n[i]=t[i]);return n}function _e(t){var e=t.top,n=e===void 0?0:e,r=t.left,i=r===void 0?0:r,a=t.transform,s=t.className,o=t.children,u=t.innerRef,l=Lr(t,Cr);return x.createElement("g",Nt({ref:u,className:X("visx-group",s),transform:a||"translate("+i+", "+n+")"},l),o)}_e.propTypes={top:E.number,left:E.number,transform:E.string,className:E.string,children:E.node,innerRef:E.oneOfType([E.string,E.func,E.object])};function jr(t){var e=0,n=t.children,r=n&&n.length;if(!r)e=1;else for(;--r>=0;)e+=n[r].value;t.value=e}function Nr(){return this.eachAfter(jr)}function Dr(t){var e=this,n,r=[e],i,a,s;do for(n=r.reverse(),r=[];e=n.pop();)if(t(e),i=e.children,i)for(a=0,s=i.length;a=0;--i)n.push(r[i]);return this}function Mr(t){for(var e=this,n=[e],r=[],i,a,s;e=n.pop();)if(r.push(e),i=e.children,i)for(a=0,s=i.length;a=0;)n+=r[i].value;e.value=n})}function $r(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})}function zr(t){for(var e=this,n=Br(e,t),r=[e];e!==n;)e=e.parent,r.push(e);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r}function Br(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;for(t=n.pop(),e=r.pop();t===e;)i=t,t=n.pop(),e=r.pop();return i}function Yr(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e}function Xr(){var t=[];return this.each(function(e){t.push(e)}),t}function Fr(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t}function Vr(){var t=this,e=[];return t.each(function(n){n!==t&&e.push({source:n.parent,target:n})}),e}function nn(t,e){var n=new Ge(t),r=+t.value&&(n.value=t.value),i,a=[n],s,o,u,l;for(e==null&&(e=Kr);i=a.pop();)if(r&&(i.value=+i.data.value),(o=e(i.data))&&(l=o.length))for(i.children=new Array(l),u=l-1;u>=0;--u)a.push(s=i.children[u]=new Ge(o[u])),s.parent=i,s.depth=i.depth+1;return n.eachBefore(Ur)}function Hr(){return nn(this).eachBefore(Wr)}function Kr(t){return t.children}function Wr(t){t.data=t.data.data}function Ur(t){var e=0;do t.height=e;while((t=t.parent)&&t.height<++e)}function Ge(t){this.data=t,this.depth=this.height=0,this.parent=null}Ge.prototype=nn.prototype={constructor:Ge,count:Nr,each:Dr,eachAfter:Mr,eachBefore:Ir,sum:Ar,sort:$r,path:zr,ancestors:Yr,descendants:Xr,leaves:Fr,links:Vr,copy:Hr};function Gr(t,e){return t.parent===e.parent?1:2}function kt(t){var e=t.children;return e?e[0]:t.t}function _t(t){var e=t.children;return e?e[e.length-1]:t.t}function qr(t,e,n){var r=n/(e.i-t.i);e.c-=r,e.s+=n,t.c+=r,e.z+=n,e.m+=n}function Jr(t){for(var e=0,n=0,r=t.children,i=r.length,a;--i>=0;)a=r[i],a.z+=e,a.m+=e,e+=a.s+(n+=a.c)}function Zr(t,e,n){return t.a.parent===e.parent?t.a:n}function ht(t,e){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=e}ht.prototype=Object.create(Ge.prototype);function Qr(t){for(var e=new ht(t,0),n,r=[e],i,a,s,o;n=r.pop();)if(a=n._.children)for(n.children=new Array(o=a.length),s=o-1;s>=0;--s)r.push(i=n.children[s]=new ht(a[s],s)),i.parent=n;return(e.parent=new ht(null,0)).children=[e],e}function ei(){var t=Gr,e=1,n=1,r=null;function i(l){var c=Qr(l);if(c.eachAfter(a),c.parent.m=-c.z,c.eachBefore(s),r)l.eachBefore(u);else{var f=l,h=l,d=l;l.eachBefore(function(m){m.xh.x&&(h=m),m.depth>d.depth&&(d=m)});var p=f===h?1:t(f,h)/2,v=p-f.x,y=e/(h.x+p+v),g=n/(d.depth||1);l.eachBefore(function(m){m.x=(m.x+v)*y,m.y=m.depth*g})}return l}function a(l){var c=l.children,f=l.parent.children,h=l.i?f[l.i-1]:null;if(c){Jr(l);var d=(c[0].z+c[c.length-1].z)/2;h?(l.z=h.z+t(l._,h._),l.m=l.z-d):l.z=d}else h&&(l.z=h.z+t(l._,h._));l.parent.A=o(l,h,l.parent.A||f[0])}function s(l){l._.x=l.z+l.parent.m,l.m+=l.parent.m}function o(l,c,f){if(c){for(var h=l,d=l,p=c,v=h.parent.children[0],y=h.m,g=d.m,m=p.m,O=v.m,b;p=_t(p),h=kt(h),p&&h;)v=kt(v),d=_t(d),d.a=l,b=p.z+m-h.z-y+t(p._,h._),b>0&&(qr(Zr(p,l,f),l,b),y+=b,g+=b),m+=p.m,y+=h.m,O+=v.m,g+=d.m;p&&!_t(d)&&(d.t=p,d.m+=m-g),h&&!kt(v)&&(v.t=h,v.m+=y-O,f=l)}return f}function u(l){l.x*=e,l.y=l.depth*n}return i.separation=function(l){return arguments.length?(t=l,i):t},i.size=function(l){return arguments.length?(r=!1,e=+l[0],n=+l[1],i):r?null:[e,n]},i.nodeSize=function(l){return arguments.length?(r=!0,e=+l[0],n=+l[1],i):r?[e,n]:null},i}var ti={source:{x:0,y:0},target:{x:0,y:0}};function Qn(t){var e=t.link,n=e===void 0?ti:e;return x.createElement("line",{x1:n.source.x,y1:n.source.y,x2:n.target.x,y2:n.target.y,strokeWidth:2,stroke:"#999",strokeOpacity:.6})}Qn.propTypes={link:E.shape({source:E.shape({x:E.number.isRequired,y:E.number.isRequired}).isRequired,target:E.shape({x:E.number.isRequired,y:E.number.isRequired}).isRequired})};function er(t){var e=t.node,n=e===void 0?{x:0,y:0,r:15}:e;return x.createElement("circle",{cx:n.x,cy:n.y,r:n.r||15,fill:"#21D4FD"})}er.propTypes={node:E.shape({x:E.number.isRequired,y:E.number.isRequired,r:E.number})};function tr(t){var e=t.top,n=t.left,r=t.className,i=t.root,a=t.size,s=t.nodeSize,o=t.separation,u=t.children,l=t.linkComponent,c=l===void 0?Qn:l,f=t.nodeComponent,h=f===void 0?er:f,d=ei();a&&d.size(a),s&&d.nodeSize(s),o&&d.separation(o);var p=d(i);return u?x.createElement(x.Fragment,null,u(p)):x.createElement(_e,{top:e,left:n,className:X("visx-tree",r)},c&&p.links().map(function(v,y){return x.createElement(_e,{key:"tree-link-"+y},x.createElement(c,{link:v}))}),h&&p.descendants().map(function(v,y){return x.createElement(_e,{key:"tree-node-"+y},x.createElement(h,{node:v}))}))}tr.propTypes={children:E.func,top:E.number,left:E.number,className:E.string,separation:E.func};var Ee=[],ni=function(){return Ee.some(function(t){return t.activeTargets.length>0})},ri=function(){return Ee.some(function(t){return t.skippedTargets.length>0})},cn="ResizeObserver loop completed with undelivered notifications.",ii=function(){var t;typeof ErrorEvent=="function"?t=new ErrorEvent("error",{message:cn}):(t=document.createEvent("Event"),t.initEvent("error",!1,!1),t.message=cn),window.dispatchEvent(t)},qe;(function(t){t.BORDER_BOX="border-box",t.CONTENT_BOX="content-box",t.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(qe||(qe={}));var Pe=function(t){return Object.freeze(t)},ai=function(){function t(e,n){this.inlineSize=e,this.blockSize=n,Pe(this)}return t}(),nr=function(){function t(e,n,r,i){return this.x=e,this.y=n,this.width=r,this.height=i,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Pe(this)}return t.prototype.toJSON=function(){var e=this,n=e.x,r=e.y,i=e.top,a=e.right,s=e.bottom,o=e.left,u=e.width,l=e.height;return{x:n,y:r,top:i,right:a,bottom:s,left:o,width:u,height:l}},t.fromRect=function(e){return new t(e.x,e.y,e.width,e.height)},t}(),rn=function(t){return t instanceof SVGElement&&"getBBox"in t},rr=function(t){if(rn(t)){var e=t.getBBox(),n=e.width,r=e.height;return!n&&!r}var i=t,a=i.offsetWidth,s=i.offsetHeight;return!(a||s||t.getClientRects().length)},ln=function(t){var e;if(t instanceof Element)return!0;var n=(e=t==null?void 0:t.ownerDocument)===null||e===void 0?void 0:e.defaultView;return!!(n&&t instanceof n.Element)},si=function(t){switch(t.tagName){case"INPUT":if(t.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},We=typeof window<"u"?window:{},at=new WeakMap,fn=/auto|scroll/,oi=/^tb|vertical/,ui=/msie|trident/i.test(We.navigator&&We.navigator.userAgent),Q=function(t){return parseFloat(t||"0")},Ae=function(t,e,n){return t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=!1),new ai((n?e:t)||0,(n?t:e)||0)},hn=Pe({devicePixelContentBoxSize:Ae(),borderBoxSize:Ae(),contentBoxSize:Ae(),contentRect:new nr(0,0,0,0)}),ir=function(t,e){if(e===void 0&&(e=!1),at.has(t)&&!e)return at.get(t);if(rr(t))return at.set(t,hn),hn;var n=getComputedStyle(t),r=rn(t)&&t.ownerSVGElement&&t.getBBox(),i=!ui&&n.boxSizing==="border-box",a=oi.test(n.writingMode||""),s=!r&&fn.test(n.overflowY||""),o=!r&&fn.test(n.overflowX||""),u=r?0:Q(n.paddingTop),l=r?0:Q(n.paddingRight),c=r?0:Q(n.paddingBottom),f=r?0:Q(n.paddingLeft),h=r?0:Q(n.borderTopWidth),d=r?0:Q(n.borderRightWidth),p=r?0:Q(n.borderBottomWidth),v=r?0:Q(n.borderLeftWidth),y=f+l,g=u+c,m=v+d,O=h+p,b=o?t.offsetHeight-O-t.clientHeight:0,R=s?t.offsetWidth-m-t.clientWidth:0,k=i?y+m:0,M=i?g+O:0,A=r?r.width:Q(n.width)-k-R,N=r?r.height:Q(n.height)-M-b,G=A+y+R+m,ye=N+g+b+O,F=Pe({devicePixelContentBoxSize:Ae(Math.round(A*devicePixelRatio),Math.round(N*devicePixelRatio),a),borderBoxSize:Ae(G,ye,a),contentBoxSize:Ae(A,N,a),contentRect:new nr(f,u,A,N)});return at.set(t,F),F},ar=function(t,e,n){var r=ir(t,n),i=r.borderBoxSize,a=r.contentBoxSize,s=r.devicePixelContentBoxSize;switch(e){case qe.DEVICE_PIXEL_CONTENT_BOX:return s;case qe.BORDER_BOX:return i;default:return a}},ci=function(){function t(e){var n=ir(e);this.target=e,this.contentRect=n.contentRect,this.borderBoxSize=Pe([n.borderBoxSize]),this.contentBoxSize=Pe([n.contentBoxSize]),this.devicePixelContentBoxSize=Pe([n.devicePixelContentBoxSize])}return t}(),sr=function(t){if(rr(t))return 1/0;for(var e=0,n=t.parentNode;n;)e+=1,n=n.parentNode;return e},li=function(){var t=1/0,e=[];Ee.forEach(function(s){if(s.activeTargets.length!==0){var o=[];s.activeTargets.forEach(function(l){var c=new ci(l.target),f=sr(l.target);o.push(c),l.lastReportedSize=ar(l.target,l.observedBox),ft?n.activeTargets.push(i):n.skippedTargets.push(i))})})},fi=function(){var t=0;for(dn(t);ni();)t=li(),dn(t);return ri()&&ii(),t>0},Et,or=[],hi=function(){return or.splice(0).forEach(function(t){return t()})},di=function(t){if(!Et){var e=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return hi()}).observe(n,r),Et=function(){n.textContent="".concat(e?e--:e++)}}or.push(t),Et()},pi=function(t){di(function(){requestAnimationFrame(t)})},dt=0,gi=function(){return!!dt},vi=250,mi={attributes:!0,characterData:!0,childList:!0,subtree:!0},pn=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],gn=function(t){return t===void 0&&(t=0),Date.now()+t},Pt=!1,yi=function(){function t(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return t.prototype.run=function(e){var n=this;if(e===void 0&&(e=vi),!Pt){Pt=!0;var r=gn(e);pi(function(){var i=!1;try{i=fi()}finally{if(Pt=!1,e=r-gn(),!gi())return;i?n.run(1e3):e>0?n.run(e):n.start()}})}},t.prototype.schedule=function(){this.stop(),this.run()},t.prototype.observe=function(){var e=this,n=function(){return e.observer&&e.observer.observe(document.body,mi)};document.body?n():We.addEventListener("DOMContentLoaded",n)},t.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),pn.forEach(function(n){return We.addEventListener(n,e.listener,!0)}))},t.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),pn.forEach(function(n){return We.removeEventListener(n,e.listener,!0)}),this.stopped=!0)},t}(),Dt=new yi,vn=function(t){!dt&&t>0&&Dt.start(),dt+=t,!dt&&Dt.stop()},bi=function(t){return!rn(t)&&!si(t)&&getComputedStyle(t).display==="inline"},xi=function(){function t(e,n){this.target=e,this.observedBox=n||qe.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return t.prototype.isActive=function(){var e=ar(this.target,this.observedBox,!0);return bi(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},t}(),wi=function(){function t(e,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=n}return t}(),st=new WeakMap,mn=function(t,e){for(var n=0;n=0&&(a&&Ee.splice(Ee.indexOf(r),1),r.observationTargets.splice(i,1),vn(-1))},t.disconnect=function(e){var n=this,r=st.get(e);r.observationTargets.slice().forEach(function(i){return n.unobserve(e,i.target)}),r.activeTargets.splice(0,r.activeTargets.length)},t}(),Oi=function(){function t(e){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof e!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");ot.connect(this,e)}return t.prototype.observe=function(e,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!ln(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");ot.observe(this,e,n)},t.prototype.unobserve=function(e){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!ln(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");ot.unobserve(this,e)},t.prototype.disconnect=function(){ot.disconnect(this)},t.toString=function(){return"function ResizeObserver () { [polyfill code] }"},t}();function It(){return It=Object.assign?Object.assign.bind():function(t){for(var e=1;eSe)if(!(Math.abs(c*o-u*l)>Se)||!i)this._+="L"+(this._x1=t)+","+(this._y1=e);else{var h=n-a,d=r-s,p=o*o+u*u,v=h*h+d*d,y=Math.sqrt(p),g=Math.sqrt(f),m=i*Math.tan((At-Math.acos((p+f-v)/(2*y*g)))/2),O=m/g,b=m/y;Math.abs(O-1)>Se&&(this._+="L"+(t+O*l)+","+(e+O*c)),this._+="A"+i+","+i+",0,0,"+ +(c*h>l*d)+","+(this._x1=t+b*o)+","+(this._y1=e+b*u)}},arc:function(t,e,n,r,i,a){t=+t,e=+e,n=+n,a=!!a;var s=n*Math.cos(r),o=n*Math.sin(r),u=t+s,l=e+o,c=1^a,f=a?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);this._x1===null?this._+="M"+u+","+l:(Math.abs(this._x1-u)>Se||Math.abs(this._y1-l)>Se)&&(this._+="L"+u+","+l),n&&(f<0&&(f=f%$t+$t),f>Ei?this._+="A"+n+","+n+",0,1,"+c+","+(t-s)+","+(e-o)+"A"+n+","+n+",0,1,"+c+","+(this._x1=u)+","+(this._y1=l):f>Se&&(this._+="A"+n+","+n+",0,"+ +(f>=At)+","+c+","+(this._x1=t+n*Math.cos(i))+","+(this._y1=e+n*Math.sin(i))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};function yn(t){return function(){return t}}function Pi(t){return t[0]}function Ti(t){return t[1]}function ut(t,e){return[(e=+e)*Math.cos(t-=Math.PI/2),e*Math.sin(t)]}var Ri=Array.prototype.slice;function Ci(t){return t.source}function Li(t){return t.target}function an(t){var e=Ci,n=Li,r=Pi,i=Ti,a=null;function s(){var o,u=Ri.call(arguments),l=e.apply(this,u),c=n.apply(this,u);if(a||(a=o=ae()),t(a,+r.apply(this,(u[0]=l,u)),+i.apply(this,u),+r.apply(this,(u[0]=c,u)),+i.apply(this,u)),o)return a=null,o+""||null}return s.source=function(o){return arguments.length?(e=o,s):e},s.target=function(o){return arguments.length?(n=o,s):n},s.x=function(o){return arguments.length?(r=typeof o=="function"?o:yn(+o),s):r},s.y=function(o){return arguments.length?(i=typeof o=="function"?o:yn(+o),s):i},s.context=function(o){return arguments.length?(a=o??null,s):a},s}function ji(t,e,n,r,i){t.moveTo(e,n),t.bezierCurveTo(e=(e+r)/2,n,e,i,r,i)}function Ni(t,e,n,r,i){t.moveTo(e,n),t.bezierCurveTo(e,n=(n+i)/2,r,n,r,i)}function Di(t,e,n,r,i){var a=ut(e,n),s=ut(e,n=(n+i)/2),o=ut(r,n),u=ut(r,i);t.moveTo(a[0],a[1]),t.bezierCurveTo(s[0],s[1],o[0],o[1],u[0],u[1])}function Ii(){return an(ji)}function Mi(){return an(Ni)}function Ai(){var t=an(Di);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t}function H(t){return typeof(t==null?void 0:t.x)=="number"?t==null?void 0:t.x:0}function K(t){return typeof(t==null?void 0:t.y)=="number"?t==null?void 0:t.y:0}function W(t){return t==null?void 0:t.source}function U(t){return t==null?void 0:t.target}var $i=["className","children","data","innerRef","path","x","y","source","target"];function Bt(){return Bt=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&(n[i]=t[i]);return n}function Bi(t){var e=t.source,n=t.target,r=t.x,i=t.y;return function(a){var s=Ii();return s.x(r),s.y(i),s.source(e),s.target(n),s(a)}}function Yi(t){var e=t.className,n=t.children,r=t.data,i=t.innerRef,a=t.path,s=t.x,o=s===void 0?K:s,u=t.y,l=u===void 0?H:u,c=t.source,f=c===void 0?W:c,h=t.target,d=h===void 0?U:h,p=zi(t,$i),v=a||Bi({source:f,target:d,x:o,y:l});return n?x.createElement(x.Fragment,null,n({path:v})):x.createElement("path",Bt({ref:i,className:X("visx-link visx-link-horizontal-diagonal",e),d:v(r)||""},p))}var Xi=["className","children","data","innerRef","path","x","y","source","target"];function Yt(){return Yt=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&(n[i]=t[i]);return n}function Vi(t){var e=t.source,n=t.target,r=t.x,i=t.y;return function(a){var s=Mi();return s.x(r),s.y(i),s.source(e),s.target(n),s(a)}}function Hi(t){var e=t.className,n=t.children,r=t.data,i=t.innerRef,a=t.path,s=t.x,o=s===void 0?H:s,u=t.y,l=u===void 0?K:u,c=t.source,f=c===void 0?W:c,h=t.target,d=h===void 0?U:h,p=Fi(t,Xi),v=a||Vi({source:f,target:d,x:o,y:l});return n?x.createElement(x.Fragment,null,n({path:v})):x.createElement("path",Yt({ref:i,className:X("visx-link visx-link-vertical-diagonal",e),d:v(r)||""},p))}var Ki=["className","children","data","innerRef","path","angle","radius","source","target"];function Xt(){return Xt=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&(n[i]=t[i]);return n}function Ui(t){var e=t.source,n=t.target,r=t.angle,i=t.radius;return function(a){var s=Ai();return s.angle(r),s.radius(i),s.source(e),s.target(n),s(a)}}function Gi(t){var e=t.className,n=t.children,r=t.data,i=t.innerRef,a=t.path,s=t.angle,o=s===void 0?H:s,u=t.radius,l=u===void 0?K:u,c=t.source,f=c===void 0?W:c,h=t.target,d=h===void 0?U:h,p=Wi(t,Ki),v=a||Ui({source:f,target:d,angle:o,radius:l});return n?x.createElement(x.Fragment,null,n({path:v})):x.createElement("path",Xt({ref:i,className:X("visx-link visx-link-radial-diagonal",e),d:v(r)||""},p))}var qi=["className","children","data","innerRef","path","percent","x","y","source","target"];function Ft(){return Ft=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&(n[i]=t[i]);return n}function Zi(t){var e=t.source,n=t.target,r=t.x,i=t.y,a=t.percent;return function(s){var o=e(s),u=n(s),l=r(o),c=i(o),f=r(u),h=i(u),d=f-l,p=h-c,v=a*(d+p),y=a*(p-d),g=ae();return g.moveTo(l,c),g.bezierCurveTo(l+v,c+y,f+y,h-v,f,h),g.toString()}}function Qi(t){var e=t.className,n=t.children,r=t.data,i=t.innerRef,a=t.path,s=t.percent,o=s===void 0?.2:s,u=t.x,l=u===void 0?K:u,c=t.y,f=c===void 0?H:c,h=t.source,d=h===void 0?W:h,p=t.target,v=p===void 0?U:p,y=Ji(t,qi),g=a||Zi({source:d,target:v,x:l,y:f,percent:o});return n?x.createElement(x.Fragment,null,n({path:g})):x.createElement("path",Ft({ref:i,className:X("visx-link visx-link-horizontal-curve",e),d:g(r)||""},y))}var ea=["className","children","data","innerRef","path","percent","x","y","source","target"];function Vt(){return Vt=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&(n[i]=t[i]);return n}function na(t){var e=t.source,n=t.target,r=t.x,i=t.y,a=t.percent;return function(s){var o=e(s),u=n(s),l=r(o),c=i(o),f=r(u),h=i(u),d=f-l,p=h-c,v=a*(d+p),y=a*(p-d),g=ae();return g.moveTo(l,c),g.bezierCurveTo(l+v,c+y,f+y,h-v,f,h),g.toString()}}function ra(t){var e=t.className,n=t.children,r=t.data,i=t.innerRef,a=t.path,s=t.percent,o=s===void 0?.2:s,u=t.x,l=u===void 0?H:u,c=t.y,f=c===void 0?K:c,h=t.source,d=h===void 0?W:h,p=t.target,v=p===void 0?U:p,y=ta(t,ea),g=a||na({source:d,target:v,x:l,y:f,percent:o});return n?x.createElement(x.Fragment,null,n({path:g})):x.createElement("path",Vt({ref:i,className:X("visx-link visx-link-vertical-curve",e),d:g(r)||""},y))}var ia=["className","children","data","innerRef","path","percent","x","y","source","target"];function Ht(){return Ht=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&(n[i]=t[i]);return n}function sa(t){var e=t.source,n=t.target,r=t.x,i=t.y,a=t.percent;return function(s){var o=e(s),u=n(s),l=r(o)-Math.PI/2,c=i(o),f=r(u)-Math.PI/2,h=i(u),d=Math.cos(l),p=Math.sin(l),v=Math.cos(f),y=Math.sin(f),g=c*d,m=c*p,O=h*v,b=h*y,R=O-g,k=b-m,M=a*(R+k),A=a*(k-R),N=ae();return N.moveTo(g,m),N.bezierCurveTo(g+M,m+A,O+A,b-M,O,b),N.toString()}}function oa(t){var e=t.className,n=t.children,r=t.data,i=t.innerRef,a=t.path,s=t.percent,o=s===void 0?.2:s,u=t.x,l=u===void 0?H:u,c=t.y,f=c===void 0?K:c,h=t.source,d=h===void 0?W:h,p=t.target,v=p===void 0?U:p,y=aa(t,ia),g=a||sa({source:d,target:v,x:l,y:f,percent:o});return n?x.createElement(x.Fragment,null,n({path:g})):x.createElement("path",Ht({ref:i,className:X("visx-link visx-link-radial-curve",e),d:g(r)||""},y))}var ua=["className","children","innerRef","data","path","x","y","source","target"];function Kt(){return Kt=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&(n[i]=t[i]);return n}function la(t){var e=t.source,n=t.target,r=t.x,i=t.y;return function(a){var s=e(a),o=n(a),u=r(s),l=i(s),c=r(o),f=i(o),h=ae();return h.moveTo(u,l),h.lineTo(c,f),h.toString()}}function fa(t){var e=t.className,n=t.children,r=t.innerRef,i=t.data,a=t.path,s=t.x,o=s===void 0?K:s,u=t.y,l=u===void 0?H:u,c=t.source,f=c===void 0?W:c,h=t.target,d=h===void 0?U:h,p=ca(t,ua),v=a||la({source:f,target:d,x:o,y:l});return n?x.createElement(x.Fragment,null,n({path:v})):x.createElement("path",Kt({ref:r,className:X("visx-link visx-link-horizontal-line",e),d:v(i)||""},p))}var ha=["className","innerRef","data","path","x","y","source","target","children"];function Wt(){return Wt=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&(n[i]=t[i]);return n}function pa(t){var e=t.source,n=t.target,r=t.x,i=t.y;return function(a){var s=e(a),o=n(a),u=r(s),l=i(s),c=r(o),f=i(o),h=ae();return h.moveTo(u,l),h.lineTo(c,f),h.toString()}}function ga(t){var e=t.className,n=t.innerRef,r=t.data,i=t.path,a=t.x,s=a===void 0?H:a,o=t.y,u=o===void 0?K:o,l=t.source,c=l===void 0?W:l,f=t.target,h=f===void 0?U:f,d=t.children,p=da(t,ha),v=i||pa({source:c,target:h,x:s,y:u});return d?x.createElement(x.Fragment,null,d({path:v})):x.createElement("path",Wt({ref:n,className:X("visx-link visx-link-vertical-line",e),d:v(r)||""},p))}var va=["className","innerRef","data","path","x","y","source","target","children"];function Ut(){return Ut=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&(n[i]=t[i]);return n}function ya(t){var e=t.source,n=t.target,r=t.x,i=t.y;return function(a){var s=e(a),o=n(a),u=r(s)-Math.PI/2,l=i(s),c=r(o)-Math.PI/2,f=i(o),h=Math.cos(u),d=Math.sin(u),p=Math.cos(c),v=Math.sin(c),y=ae();return y.moveTo(l*h,l*d),y.lineTo(f*p,f*v),y.toString()}}function ba(t){var e=t.className,n=t.innerRef,r=t.data,i=t.path,a=t.x,s=a===void 0?H:a,o=t.y,u=o===void 0?K:o,l=t.source,c=l===void 0?W:l,f=t.target,h=f===void 0?U:f,d=t.children,p=ma(t,va),v=i||ya({source:c,target:h,x:s,y:u});return d?x.createElement(x.Fragment,null,d({path:v})):x.createElement("path",Ut({ref:n,className:X("visx-link visx-link-radial-line",e),d:v(r)||""},p))}var xa=["className","innerRef","data","path","percent","x","y","source","target","children"];function Gt(){return Gt=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&(n[i]=t[i]);return n}function Oa(t){var e=t.source,n=t.target,r=t.x,i=t.y,a=t.percent;return function(s){var o=e(s),u=n(s),l=r(o),c=i(o),f=r(u),h=i(u),d=ae();return d.moveTo(l,c),d.lineTo(l+(f-l)*a,c),d.lineTo(l+(f-l)*a,h),d.lineTo(f,h),d.toString()}}function Sa(t){var e=t.className,n=t.innerRef,r=t.data,i=t.path,a=t.percent,s=a===void 0?.5:a,o=t.x,u=o===void 0?K:o,l=t.y,c=l===void 0?H:l,f=t.source,h=f===void 0?W:f,d=t.target,p=d===void 0?U:d,v=t.children,y=wa(t,xa),g=i||Oa({source:h,target:p,x:u,y:c,percent:s});return v?x.createElement(x.Fragment,null,v({path:g})):x.createElement("path",Gt({ref:n,className:X("visx-link visx-link-horizontal-step",e),d:g(r)||""},y))}var ka=["className","innerRef","data","path","percent","x","y","source","target","children"];function qt(){return qt=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&(n[i]=t[i]);return n}function Ea(t){var e=t.source,n=t.target,r=t.x,i=t.y,a=t.percent;return function(s){var o=e(s),u=n(s),l=r(o),c=i(o),f=r(u),h=i(u),d=ae();return d.moveTo(l,c),d.lineTo(l,c+(h-c)*a),d.lineTo(f,c+(h-c)*a),d.lineTo(f,h),d.toString()}}function Pa(t){var e=t.className,n=t.innerRef,r=t.data,i=t.path,a=t.percent,s=a===void 0?.5:a,o=t.x,u=o===void 0?H:o,l=t.y,c=l===void 0?K:l,f=t.source,h=f===void 0?W:f,d=t.target,p=d===void 0?U:d,v=t.children,y=_a(t,ka),g=i||Ea({source:h,target:p,x:u,y:c,percent:s});return v?x.createElement(x.Fragment,null,v({path:g})):x.createElement("path",qt({ref:n,className:X("visx-link visx-link-vertical-step",e),d:g(r)||""},y))}var Ta=["className","innerRef","data","path","x","y","source","target","children"];function Jt(){return Jt=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&(n[i]=t[i]);return n}function Ca(t){var e=t.source,n=t.target,r=t.x,i=t.y;return function(a){var s=e(a),o=n(a),u=r(s),l=i(s),c=r(o),f=i(o),h=u-Math.PI/2,d=l,p=c-Math.PI/2,v=f,y=Math.cos(h),g=Math.sin(h),m=Math.cos(p),O=Math.sin(p),b=Math.abs(p-h)>Math.PI?p<=h:p>h;return` +import{j}from"./jsx-runtime-BTCK_S7S.js";import{R as x,r as P}from"./index-CBqU2yxZ.js";import{d as ft}from"./index-CAen7T_W.js";import{_ as pe}from"./index-default-C_maRo4o.js";import{_ as Ke}from"./toPropertyKey-hKuLU48H.js";import{_ as wt,a as re,b as Je}from"./inherits-D5wXBZoG.js";import{_ as ie}from"./createClass-D2z1h_eG.js";import{_ as ke}from"./assertThisInitialized-B9jnkVVz.js";import{_ as ge}from"./getPrototypeOf-BYVhAdwF.js";import{_ as me}from"./defineProperty-CCxoMnQV.js";import{_ as Tr}from"./toArray-D9zoIPho.js";import{P as E}from"./index-D3ylJrlI.js";import{a as Rr}from"./debounce-BkgZrIul.js";import{c as X}from"./index-BpvXyOxN.js";import"./_commonjsHelpers-BosuxZz1.js";import"./mapValues-LQZI9uWW.js";import"./pickBy-Us6u5-To.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-DCkRKKtx.js";import"./index-Cw1G72V2.js";import"./index-CKJfshIT.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./preview-errors-CzpZmerH.js";import"./setPrototypeOf-DgZC2w_0.js";import"./nonIterableRest-Bc-81Ll3.js";import"./iterableToArray-DI-mZnTP.js";import"./unsupportedIterableToArray-78IFcom3.js";var Cr=["top","left","transform","className","children","innerRef"];function Nt(){return Nt=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&(n[i]=t[i]);return n}function _e(t){var e=t.top,n=e===void 0?0:e,r=t.left,i=r===void 0?0:r,a=t.transform,s=t.className,o=t.children,u=t.innerRef,l=Lr(t,Cr);return x.createElement("g",Nt({ref:u,className:X("visx-group",s),transform:a||"translate("+i+", "+n+")"},l),o)}_e.propTypes={top:E.number,left:E.number,transform:E.string,className:E.string,children:E.node,innerRef:E.oneOfType([E.string,E.func,E.object])};function jr(t){var e=0,n=t.children,r=n&&n.length;if(!r)e=1;else for(;--r>=0;)e+=n[r].value;t.value=e}function Nr(){return this.eachAfter(jr)}function Dr(t){var e=this,n,r=[e],i,a,s;do for(n=r.reverse(),r=[];e=n.pop();)if(t(e),i=e.children,i)for(a=0,s=i.length;a=0;--i)n.push(r[i]);return this}function Mr(t){for(var e=this,n=[e],r=[],i,a,s;e=n.pop();)if(r.push(e),i=e.children,i)for(a=0,s=i.length;a=0;)n+=r[i].value;e.value=n})}function $r(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})}function zr(t){for(var e=this,n=Br(e,t),r=[e];e!==n;)e=e.parent,r.push(e);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r}function Br(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;for(t=n.pop(),e=r.pop();t===e;)i=t,t=n.pop(),e=r.pop();return i}function Yr(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e}function Xr(){var t=[];return this.each(function(e){t.push(e)}),t}function Fr(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t}function Vr(){var t=this,e=[];return t.each(function(n){n!==t&&e.push({source:n.parent,target:n})}),e}function nn(t,e){var n=new Ge(t),r=+t.value&&(n.value=t.value),i,a=[n],s,o,u,l;for(e==null&&(e=Kr);i=a.pop();)if(r&&(i.value=+i.data.value),(o=e(i.data))&&(l=o.length))for(i.children=new Array(l),u=l-1;u>=0;--u)a.push(s=i.children[u]=new Ge(o[u])),s.parent=i,s.depth=i.depth+1;return n.eachBefore(Ur)}function Hr(){return nn(this).eachBefore(Wr)}function Kr(t){return t.children}function Wr(t){t.data=t.data.data}function Ur(t){var e=0;do t.height=e;while((t=t.parent)&&t.height<++e)}function Ge(t){this.data=t,this.depth=this.height=0,this.parent=null}Ge.prototype=nn.prototype={constructor:Ge,count:Nr,each:Dr,eachAfter:Mr,eachBefore:Ir,sum:Ar,sort:$r,path:zr,ancestors:Yr,descendants:Xr,leaves:Fr,links:Vr,copy:Hr};function Gr(t,e){return t.parent===e.parent?1:2}function kt(t){var e=t.children;return e?e[0]:t.t}function _t(t){var e=t.children;return e?e[e.length-1]:t.t}function qr(t,e,n){var r=n/(e.i-t.i);e.c-=r,e.s+=n,t.c+=r,e.z+=n,e.m+=n}function Jr(t){for(var e=0,n=0,r=t.children,i=r.length,a;--i>=0;)a=r[i],a.z+=e,a.m+=e,e+=a.s+(n+=a.c)}function Zr(t,e,n){return t.a.parent===e.parent?t.a:n}function ht(t,e){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=e}ht.prototype=Object.create(Ge.prototype);function Qr(t){for(var e=new ht(t,0),n,r=[e],i,a,s,o;n=r.pop();)if(a=n._.children)for(n.children=new Array(o=a.length),s=o-1;s>=0;--s)r.push(i=n.children[s]=new ht(a[s],s)),i.parent=n;return(e.parent=new ht(null,0)).children=[e],e}function ei(){var t=Gr,e=1,n=1,r=null;function i(l){var c=Qr(l);if(c.eachAfter(a),c.parent.m=-c.z,c.eachBefore(s),r)l.eachBefore(u);else{var f=l,h=l,d=l;l.eachBefore(function(m){m.xh.x&&(h=m),m.depth>d.depth&&(d=m)});var p=f===h?1:t(f,h)/2,v=p-f.x,y=e/(h.x+p+v),g=n/(d.depth||1);l.eachBefore(function(m){m.x=(m.x+v)*y,m.y=m.depth*g})}return l}function a(l){var c=l.children,f=l.parent.children,h=l.i?f[l.i-1]:null;if(c){Jr(l);var d=(c[0].z+c[c.length-1].z)/2;h?(l.z=h.z+t(l._,h._),l.m=l.z-d):l.z=d}else h&&(l.z=h.z+t(l._,h._));l.parent.A=o(l,h,l.parent.A||f[0])}function s(l){l._.x=l.z+l.parent.m,l.m+=l.parent.m}function o(l,c,f){if(c){for(var h=l,d=l,p=c,v=h.parent.children[0],y=h.m,g=d.m,m=p.m,O=v.m,b;p=_t(p),h=kt(h),p&&h;)v=kt(v),d=_t(d),d.a=l,b=p.z+m-h.z-y+t(p._,h._),b>0&&(qr(Zr(p,l,f),l,b),y+=b,g+=b),m+=p.m,y+=h.m,O+=v.m,g+=d.m;p&&!_t(d)&&(d.t=p,d.m+=m-g),h&&!kt(v)&&(v.t=h,v.m+=y-O,f=l)}return f}function u(l){l.x*=e,l.y=l.depth*n}return i.separation=function(l){return arguments.length?(t=l,i):t},i.size=function(l){return arguments.length?(r=!1,e=+l[0],n=+l[1],i):r?null:[e,n]},i.nodeSize=function(l){return arguments.length?(r=!0,e=+l[0],n=+l[1],i):r?[e,n]:null},i}var ti={source:{x:0,y:0},target:{x:0,y:0}};function Qn(t){var e=t.link,n=e===void 0?ti:e;return x.createElement("line",{x1:n.source.x,y1:n.source.y,x2:n.target.x,y2:n.target.y,strokeWidth:2,stroke:"#999",strokeOpacity:.6})}Qn.propTypes={link:E.shape({source:E.shape({x:E.number.isRequired,y:E.number.isRequired}).isRequired,target:E.shape({x:E.number.isRequired,y:E.number.isRequired}).isRequired})};function er(t){var e=t.node,n=e===void 0?{x:0,y:0,r:15}:e;return x.createElement("circle",{cx:n.x,cy:n.y,r:n.r||15,fill:"#21D4FD"})}er.propTypes={node:E.shape({x:E.number.isRequired,y:E.number.isRequired,r:E.number})};function tr(t){var e=t.top,n=t.left,r=t.className,i=t.root,a=t.size,s=t.nodeSize,o=t.separation,u=t.children,l=t.linkComponent,c=l===void 0?Qn:l,f=t.nodeComponent,h=f===void 0?er:f,d=ei();a&&d.size(a),s&&d.nodeSize(s),o&&d.separation(o);var p=d(i);return u?x.createElement(x.Fragment,null,u(p)):x.createElement(_e,{top:e,left:n,className:X("visx-tree",r)},c&&p.links().map(function(v,y){return x.createElement(_e,{key:"tree-link-"+y},x.createElement(c,{link:v}))}),h&&p.descendants().map(function(v,y){return x.createElement(_e,{key:"tree-node-"+y},x.createElement(h,{node:v}))}))}tr.propTypes={children:E.func,top:E.number,left:E.number,className:E.string,separation:E.func};var Ee=[],ni=function(){return Ee.some(function(t){return t.activeTargets.length>0})},ri=function(){return Ee.some(function(t){return t.skippedTargets.length>0})},cn="ResizeObserver loop completed with undelivered notifications.",ii=function(){var t;typeof ErrorEvent=="function"?t=new ErrorEvent("error",{message:cn}):(t=document.createEvent("Event"),t.initEvent("error",!1,!1),t.message=cn),window.dispatchEvent(t)},qe;(function(t){t.BORDER_BOX="border-box",t.CONTENT_BOX="content-box",t.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(qe||(qe={}));var Pe=function(t){return Object.freeze(t)},ai=function(){function t(e,n){this.inlineSize=e,this.blockSize=n,Pe(this)}return t}(),nr=function(){function t(e,n,r,i){return this.x=e,this.y=n,this.width=r,this.height=i,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Pe(this)}return t.prototype.toJSON=function(){var e=this,n=e.x,r=e.y,i=e.top,a=e.right,s=e.bottom,o=e.left,u=e.width,l=e.height;return{x:n,y:r,top:i,right:a,bottom:s,left:o,width:u,height:l}},t.fromRect=function(e){return new t(e.x,e.y,e.width,e.height)},t}(),rn=function(t){return t instanceof SVGElement&&"getBBox"in t},rr=function(t){if(rn(t)){var e=t.getBBox(),n=e.width,r=e.height;return!n&&!r}var i=t,a=i.offsetWidth,s=i.offsetHeight;return!(a||s||t.getClientRects().length)},ln=function(t){var e;if(t instanceof Element)return!0;var n=(e=t==null?void 0:t.ownerDocument)===null||e===void 0?void 0:e.defaultView;return!!(n&&t instanceof n.Element)},si=function(t){switch(t.tagName){case"INPUT":if(t.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},We=typeof window<"u"?window:{},at=new WeakMap,fn=/auto|scroll/,oi=/^tb|vertical/,ui=/msie|trident/i.test(We.navigator&&We.navigator.userAgent),Q=function(t){return parseFloat(t||"0")},Ae=function(t,e,n){return t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=!1),new ai((n?e:t)||0,(n?t:e)||0)},hn=Pe({devicePixelContentBoxSize:Ae(),borderBoxSize:Ae(),contentBoxSize:Ae(),contentRect:new nr(0,0,0,0)}),ir=function(t,e){if(e===void 0&&(e=!1),at.has(t)&&!e)return at.get(t);if(rr(t))return at.set(t,hn),hn;var n=getComputedStyle(t),r=rn(t)&&t.ownerSVGElement&&t.getBBox(),i=!ui&&n.boxSizing==="border-box",a=oi.test(n.writingMode||""),s=!r&&fn.test(n.overflowY||""),o=!r&&fn.test(n.overflowX||""),u=r?0:Q(n.paddingTop),l=r?0:Q(n.paddingRight),c=r?0:Q(n.paddingBottom),f=r?0:Q(n.paddingLeft),h=r?0:Q(n.borderTopWidth),d=r?0:Q(n.borderRightWidth),p=r?0:Q(n.borderBottomWidth),v=r?0:Q(n.borderLeftWidth),y=f+l,g=u+c,m=v+d,O=h+p,b=o?t.offsetHeight-O-t.clientHeight:0,R=s?t.offsetWidth-m-t.clientWidth:0,k=i?y+m:0,M=i?g+O:0,A=r?r.width:Q(n.width)-k-R,N=r?r.height:Q(n.height)-M-b,G=A+y+R+m,ye=N+g+b+O,F=Pe({devicePixelContentBoxSize:Ae(Math.round(A*devicePixelRatio),Math.round(N*devicePixelRatio),a),borderBoxSize:Ae(G,ye,a),contentBoxSize:Ae(A,N,a),contentRect:new nr(f,u,A,N)});return at.set(t,F),F},ar=function(t,e,n){var r=ir(t,n),i=r.borderBoxSize,a=r.contentBoxSize,s=r.devicePixelContentBoxSize;switch(e){case qe.DEVICE_PIXEL_CONTENT_BOX:return s;case qe.BORDER_BOX:return i;default:return a}},ci=function(){function t(e){var n=ir(e);this.target=e,this.contentRect=n.contentRect,this.borderBoxSize=Pe([n.borderBoxSize]),this.contentBoxSize=Pe([n.contentBoxSize]),this.devicePixelContentBoxSize=Pe([n.devicePixelContentBoxSize])}return t}(),sr=function(t){if(rr(t))return 1/0;for(var e=0,n=t.parentNode;n;)e+=1,n=n.parentNode;return e},li=function(){var t=1/0,e=[];Ee.forEach(function(s){if(s.activeTargets.length!==0){var o=[];s.activeTargets.forEach(function(l){var c=new ci(l.target),f=sr(l.target);o.push(c),l.lastReportedSize=ar(l.target,l.observedBox),ft?n.activeTargets.push(i):n.skippedTargets.push(i))})})},fi=function(){var t=0;for(dn(t);ni();)t=li(),dn(t);return ri()&&ii(),t>0},Et,or=[],hi=function(){return or.splice(0).forEach(function(t){return t()})},di=function(t){if(!Et){var e=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return hi()}).observe(n,r),Et=function(){n.textContent="".concat(e?e--:e++)}}or.push(t),Et()},pi=function(t){di(function(){requestAnimationFrame(t)})},dt=0,gi=function(){return!!dt},vi=250,mi={attributes:!0,characterData:!0,childList:!0,subtree:!0},pn=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],gn=function(t){return t===void 0&&(t=0),Date.now()+t},Pt=!1,yi=function(){function t(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return t.prototype.run=function(e){var n=this;if(e===void 0&&(e=vi),!Pt){Pt=!0;var r=gn(e);pi(function(){var i=!1;try{i=fi()}finally{if(Pt=!1,e=r-gn(),!gi())return;i?n.run(1e3):e>0?n.run(e):n.start()}})}},t.prototype.schedule=function(){this.stop(),this.run()},t.prototype.observe=function(){var e=this,n=function(){return e.observer&&e.observer.observe(document.body,mi)};document.body?n():We.addEventListener("DOMContentLoaded",n)},t.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),pn.forEach(function(n){return We.addEventListener(n,e.listener,!0)}))},t.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),pn.forEach(function(n){return We.removeEventListener(n,e.listener,!0)}),this.stopped=!0)},t}(),Dt=new yi,vn=function(t){!dt&&t>0&&Dt.start(),dt+=t,!dt&&Dt.stop()},bi=function(t){return!rn(t)&&!si(t)&&getComputedStyle(t).display==="inline"},xi=function(){function t(e,n){this.target=e,this.observedBox=n||qe.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return t.prototype.isActive=function(){var e=ar(this.target,this.observedBox,!0);return bi(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},t}(),wi=function(){function t(e,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=n}return t}(),st=new WeakMap,mn=function(t,e){for(var n=0;n=0&&(a&&Ee.splice(Ee.indexOf(r),1),r.observationTargets.splice(i,1),vn(-1))},t.disconnect=function(e){var n=this,r=st.get(e);r.observationTargets.slice().forEach(function(i){return n.unobserve(e,i.target)}),r.activeTargets.splice(0,r.activeTargets.length)},t}(),Oi=function(){function t(e){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof e!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");ot.connect(this,e)}return t.prototype.observe=function(e,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!ln(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");ot.observe(this,e,n)},t.prototype.unobserve=function(e){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!ln(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");ot.unobserve(this,e)},t.prototype.disconnect=function(){ot.disconnect(this)},t.toString=function(){return"function ResizeObserver () { [polyfill code] }"},t}();function It(){return It=Object.assign?Object.assign.bind():function(t){for(var e=1;eSe)if(!(Math.abs(c*o-u*l)>Se)||!i)this._+="L"+(this._x1=t)+","+(this._y1=e);else{var h=n-a,d=r-s,p=o*o+u*u,v=h*h+d*d,y=Math.sqrt(p),g=Math.sqrt(f),m=i*Math.tan((At-Math.acos((p+f-v)/(2*y*g)))/2),O=m/g,b=m/y;Math.abs(O-1)>Se&&(this._+="L"+(t+O*l)+","+(e+O*c)),this._+="A"+i+","+i+",0,0,"+ +(c*h>l*d)+","+(this._x1=t+b*o)+","+(this._y1=e+b*u)}},arc:function(t,e,n,r,i,a){t=+t,e=+e,n=+n,a=!!a;var s=n*Math.cos(r),o=n*Math.sin(r),u=t+s,l=e+o,c=1^a,f=a?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);this._x1===null?this._+="M"+u+","+l:(Math.abs(this._x1-u)>Se||Math.abs(this._y1-l)>Se)&&(this._+="L"+u+","+l),n&&(f<0&&(f=f%$t+$t),f>Ei?this._+="A"+n+","+n+",0,1,"+c+","+(t-s)+","+(e-o)+"A"+n+","+n+",0,1,"+c+","+(this._x1=u)+","+(this._y1=l):f>Se&&(this._+="A"+n+","+n+",0,"+ +(f>=At)+","+c+","+(this._x1=t+n*Math.cos(i))+","+(this._y1=e+n*Math.sin(i))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};function yn(t){return function(){return t}}function Pi(t){return t[0]}function Ti(t){return t[1]}function ut(t,e){return[(e=+e)*Math.cos(t-=Math.PI/2),e*Math.sin(t)]}var Ri=Array.prototype.slice;function Ci(t){return t.source}function Li(t){return t.target}function an(t){var e=Ci,n=Li,r=Pi,i=Ti,a=null;function s(){var o,u=Ri.call(arguments),l=e.apply(this,u),c=n.apply(this,u);if(a||(a=o=ae()),t(a,+r.apply(this,(u[0]=l,u)),+i.apply(this,u),+r.apply(this,(u[0]=c,u)),+i.apply(this,u)),o)return a=null,o+""||null}return s.source=function(o){return arguments.length?(e=o,s):e},s.target=function(o){return arguments.length?(n=o,s):n},s.x=function(o){return arguments.length?(r=typeof o=="function"?o:yn(+o),s):r},s.y=function(o){return arguments.length?(i=typeof o=="function"?o:yn(+o),s):i},s.context=function(o){return arguments.length?(a=o??null,s):a},s}function ji(t,e,n,r,i){t.moveTo(e,n),t.bezierCurveTo(e=(e+r)/2,n,e,i,r,i)}function Ni(t,e,n,r,i){t.moveTo(e,n),t.bezierCurveTo(e,n=(n+i)/2,r,n,r,i)}function Di(t,e,n,r,i){var a=ut(e,n),s=ut(e,n=(n+i)/2),o=ut(r,n),u=ut(r,i);t.moveTo(a[0],a[1]),t.bezierCurveTo(s[0],s[1],o[0],o[1],u[0],u[1])}function Ii(){return an(ji)}function Mi(){return an(Ni)}function Ai(){var t=an(Di);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t}function H(t){return typeof(t==null?void 0:t.x)=="number"?t==null?void 0:t.x:0}function K(t){return typeof(t==null?void 0:t.y)=="number"?t==null?void 0:t.y:0}function W(t){return t==null?void 0:t.source}function U(t){return t==null?void 0:t.target}var $i=["className","children","data","innerRef","path","x","y","source","target"];function Bt(){return Bt=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&(n[i]=t[i]);return n}function Bi(t){var e=t.source,n=t.target,r=t.x,i=t.y;return function(a){var s=Ii();return s.x(r),s.y(i),s.source(e),s.target(n),s(a)}}function Yi(t){var e=t.className,n=t.children,r=t.data,i=t.innerRef,a=t.path,s=t.x,o=s===void 0?K:s,u=t.y,l=u===void 0?H:u,c=t.source,f=c===void 0?W:c,h=t.target,d=h===void 0?U:h,p=zi(t,$i),v=a||Bi({source:f,target:d,x:o,y:l});return n?x.createElement(x.Fragment,null,n({path:v})):x.createElement("path",Bt({ref:i,className:X("visx-link visx-link-horizontal-diagonal",e),d:v(r)||""},p))}var Xi=["className","children","data","innerRef","path","x","y","source","target"];function Yt(){return Yt=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&(n[i]=t[i]);return n}function Vi(t){var e=t.source,n=t.target,r=t.x,i=t.y;return function(a){var s=Mi();return s.x(r),s.y(i),s.source(e),s.target(n),s(a)}}function Hi(t){var e=t.className,n=t.children,r=t.data,i=t.innerRef,a=t.path,s=t.x,o=s===void 0?H:s,u=t.y,l=u===void 0?K:u,c=t.source,f=c===void 0?W:c,h=t.target,d=h===void 0?U:h,p=Fi(t,Xi),v=a||Vi({source:f,target:d,x:o,y:l});return n?x.createElement(x.Fragment,null,n({path:v})):x.createElement("path",Yt({ref:i,className:X("visx-link visx-link-vertical-diagonal",e),d:v(r)||""},p))}var Ki=["className","children","data","innerRef","path","angle","radius","source","target"];function Xt(){return Xt=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&(n[i]=t[i]);return n}function Ui(t){var e=t.source,n=t.target,r=t.angle,i=t.radius;return function(a){var s=Ai();return s.angle(r),s.radius(i),s.source(e),s.target(n),s(a)}}function Gi(t){var e=t.className,n=t.children,r=t.data,i=t.innerRef,a=t.path,s=t.angle,o=s===void 0?H:s,u=t.radius,l=u===void 0?K:u,c=t.source,f=c===void 0?W:c,h=t.target,d=h===void 0?U:h,p=Wi(t,Ki),v=a||Ui({source:f,target:d,angle:o,radius:l});return n?x.createElement(x.Fragment,null,n({path:v})):x.createElement("path",Xt({ref:i,className:X("visx-link visx-link-radial-diagonal",e),d:v(r)||""},p))}var qi=["className","children","data","innerRef","path","percent","x","y","source","target"];function Ft(){return Ft=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&(n[i]=t[i]);return n}function Zi(t){var e=t.source,n=t.target,r=t.x,i=t.y,a=t.percent;return function(s){var o=e(s),u=n(s),l=r(o),c=i(o),f=r(u),h=i(u),d=f-l,p=h-c,v=a*(d+p),y=a*(p-d),g=ae();return g.moveTo(l,c),g.bezierCurveTo(l+v,c+y,f+y,h-v,f,h),g.toString()}}function Qi(t){var e=t.className,n=t.children,r=t.data,i=t.innerRef,a=t.path,s=t.percent,o=s===void 0?.2:s,u=t.x,l=u===void 0?K:u,c=t.y,f=c===void 0?H:c,h=t.source,d=h===void 0?W:h,p=t.target,v=p===void 0?U:p,y=Ji(t,qi),g=a||Zi({source:d,target:v,x:l,y:f,percent:o});return n?x.createElement(x.Fragment,null,n({path:g})):x.createElement("path",Ft({ref:i,className:X("visx-link visx-link-horizontal-curve",e),d:g(r)||""},y))}var ea=["className","children","data","innerRef","path","percent","x","y","source","target"];function Vt(){return Vt=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&(n[i]=t[i]);return n}function na(t){var e=t.source,n=t.target,r=t.x,i=t.y,a=t.percent;return function(s){var o=e(s),u=n(s),l=r(o),c=i(o),f=r(u),h=i(u),d=f-l,p=h-c,v=a*(d+p),y=a*(p-d),g=ae();return g.moveTo(l,c),g.bezierCurveTo(l+v,c+y,f+y,h-v,f,h),g.toString()}}function ra(t){var e=t.className,n=t.children,r=t.data,i=t.innerRef,a=t.path,s=t.percent,o=s===void 0?.2:s,u=t.x,l=u===void 0?H:u,c=t.y,f=c===void 0?K:c,h=t.source,d=h===void 0?W:h,p=t.target,v=p===void 0?U:p,y=ta(t,ea),g=a||na({source:d,target:v,x:l,y:f,percent:o});return n?x.createElement(x.Fragment,null,n({path:g})):x.createElement("path",Vt({ref:i,className:X("visx-link visx-link-vertical-curve",e),d:g(r)||""},y))}var ia=["className","children","data","innerRef","path","percent","x","y","source","target"];function Ht(){return Ht=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&(n[i]=t[i]);return n}function sa(t){var e=t.source,n=t.target,r=t.x,i=t.y,a=t.percent;return function(s){var o=e(s),u=n(s),l=r(o)-Math.PI/2,c=i(o),f=r(u)-Math.PI/2,h=i(u),d=Math.cos(l),p=Math.sin(l),v=Math.cos(f),y=Math.sin(f),g=c*d,m=c*p,O=h*v,b=h*y,R=O-g,k=b-m,M=a*(R+k),A=a*(k-R),N=ae();return N.moveTo(g,m),N.bezierCurveTo(g+M,m+A,O+A,b-M,O,b),N.toString()}}function oa(t){var e=t.className,n=t.children,r=t.data,i=t.innerRef,a=t.path,s=t.percent,o=s===void 0?.2:s,u=t.x,l=u===void 0?H:u,c=t.y,f=c===void 0?K:c,h=t.source,d=h===void 0?W:h,p=t.target,v=p===void 0?U:p,y=aa(t,ia),g=a||sa({source:d,target:v,x:l,y:f,percent:o});return n?x.createElement(x.Fragment,null,n({path:g})):x.createElement("path",Ht({ref:i,className:X("visx-link visx-link-radial-curve",e),d:g(r)||""},y))}var ua=["className","children","innerRef","data","path","x","y","source","target"];function Kt(){return Kt=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&(n[i]=t[i]);return n}function la(t){var e=t.source,n=t.target,r=t.x,i=t.y;return function(a){var s=e(a),o=n(a),u=r(s),l=i(s),c=r(o),f=i(o),h=ae();return h.moveTo(u,l),h.lineTo(c,f),h.toString()}}function fa(t){var e=t.className,n=t.children,r=t.innerRef,i=t.data,a=t.path,s=t.x,o=s===void 0?K:s,u=t.y,l=u===void 0?H:u,c=t.source,f=c===void 0?W:c,h=t.target,d=h===void 0?U:h,p=ca(t,ua),v=a||la({source:f,target:d,x:o,y:l});return n?x.createElement(x.Fragment,null,n({path:v})):x.createElement("path",Kt({ref:r,className:X("visx-link visx-link-horizontal-line",e),d:v(i)||""},p))}var ha=["className","innerRef","data","path","x","y","source","target","children"];function Wt(){return Wt=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&(n[i]=t[i]);return n}function pa(t){var e=t.source,n=t.target,r=t.x,i=t.y;return function(a){var s=e(a),o=n(a),u=r(s),l=i(s),c=r(o),f=i(o),h=ae();return h.moveTo(u,l),h.lineTo(c,f),h.toString()}}function ga(t){var e=t.className,n=t.innerRef,r=t.data,i=t.path,a=t.x,s=a===void 0?H:a,o=t.y,u=o===void 0?K:o,l=t.source,c=l===void 0?W:l,f=t.target,h=f===void 0?U:f,d=t.children,p=da(t,ha),v=i||pa({source:c,target:h,x:s,y:u});return d?x.createElement(x.Fragment,null,d({path:v})):x.createElement("path",Wt({ref:n,className:X("visx-link visx-link-vertical-line",e),d:v(r)||""},p))}var va=["className","innerRef","data","path","x","y","source","target","children"];function Ut(){return Ut=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&(n[i]=t[i]);return n}function ya(t){var e=t.source,n=t.target,r=t.x,i=t.y;return function(a){var s=e(a),o=n(a),u=r(s)-Math.PI/2,l=i(s),c=r(o)-Math.PI/2,f=i(o),h=Math.cos(u),d=Math.sin(u),p=Math.cos(c),v=Math.sin(c),y=ae();return y.moveTo(l*h,l*d),y.lineTo(f*p,f*v),y.toString()}}function ba(t){var e=t.className,n=t.innerRef,r=t.data,i=t.path,a=t.x,s=a===void 0?H:a,o=t.y,u=o===void 0?K:o,l=t.source,c=l===void 0?W:l,f=t.target,h=f===void 0?U:f,d=t.children,p=ma(t,va),v=i||ya({source:c,target:h,x:s,y:u});return d?x.createElement(x.Fragment,null,d({path:v})):x.createElement("path",Ut({ref:n,className:X("visx-link visx-link-radial-line",e),d:v(r)||""},p))}var xa=["className","innerRef","data","path","percent","x","y","source","target","children"];function Gt(){return Gt=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&(n[i]=t[i]);return n}function Oa(t){var e=t.source,n=t.target,r=t.x,i=t.y,a=t.percent;return function(s){var o=e(s),u=n(s),l=r(o),c=i(o),f=r(u),h=i(u),d=ae();return d.moveTo(l,c),d.lineTo(l+(f-l)*a,c),d.lineTo(l+(f-l)*a,h),d.lineTo(f,h),d.toString()}}function Sa(t){var e=t.className,n=t.innerRef,r=t.data,i=t.path,a=t.percent,s=a===void 0?.5:a,o=t.x,u=o===void 0?K:o,l=t.y,c=l===void 0?H:l,f=t.source,h=f===void 0?W:f,d=t.target,p=d===void 0?U:d,v=t.children,y=wa(t,xa),g=i||Oa({source:h,target:p,x:u,y:c,percent:s});return v?x.createElement(x.Fragment,null,v({path:g})):x.createElement("path",Gt({ref:n,className:X("visx-link visx-link-horizontal-step",e),d:g(r)||""},y))}var ka=["className","innerRef","data","path","percent","x","y","source","target","children"];function qt(){return qt=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&(n[i]=t[i]);return n}function Ea(t){var e=t.source,n=t.target,r=t.x,i=t.y,a=t.percent;return function(s){var o=e(s),u=n(s),l=r(o),c=i(o),f=r(u),h=i(u),d=ae();return d.moveTo(l,c),d.lineTo(l,c+(h-c)*a),d.lineTo(f,c+(h-c)*a),d.lineTo(f,h),d.toString()}}function Pa(t){var e=t.className,n=t.innerRef,r=t.data,i=t.path,a=t.percent,s=a===void 0?.5:a,o=t.x,u=o===void 0?H:o,l=t.y,c=l===void 0?K:l,f=t.source,h=f===void 0?W:f,d=t.target,p=d===void 0?U:d,v=t.children,y=_a(t,ka),g=i||Ea({source:h,target:p,x:u,y:c,percent:s});return v?x.createElement(x.Fragment,null,v({path:g})):x.createElement("path",qt({ref:n,className:X("visx-link visx-link-vertical-step",e),d:g(r)||""},y))}var Ta=["className","innerRef","data","path","x","y","source","target","children"];function Jt(){return Jt=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&(n[i]=t[i]);return n}function Ca(t){var e=t.source,n=t.target,r=t.x,i=t.y;return function(a){var s=e(a),o=n(a),u=r(s),l=i(s),c=r(o),f=i(o),h=u-Math.PI/2,d=l,p=c-Math.PI/2,v=f,y=Math.cos(h),g=Math.sin(h),m=Math.cos(p),O=Math.sin(p),b=Math.abs(p-h)>Math.PI?p<=h:p>h;return` M`+d*y+","+d*g+` A`+d+","+d+",0,0,"+(b?1:0)+","+d*m+","+d*O+` L`+v*m+","+v*O+` diff --git a/docs/assets/UserDefinedFields-lsgXKzri.js b/docs/assets/UserDefinedFields-BkORgl2w.js similarity index 69% rename from docs/assets/UserDefinedFields-lsgXKzri.js rename to docs/assets/UserDefinedFields-BkORgl2w.js index 96c5be37..6cf3a10d 100644 --- a/docs/assets/UserDefinedFields-lsgXKzri.js +++ b/docs/assets/UserDefinedFields-BkORgl2w.js @@ -1 +1 @@ -import"./index.es28-dE8xdd4L.js";import"./index-CBqU2yxZ.js";import{s as r}from"./index.es12-BES12XY4.js";import{t as s}from"./index.es98-Dz6XvXHK.js";class t extends s{getPayloadKeys(){return["table_name","column_name","data_type","required","searchable","allow_multiple","options","order"]}getParameterName(){return"user_defined_field"}}const d=new t;class i extends r{fetchDataTypes(){return this.getAxios().get("/user_defined_fields/data_types")}fetchTables(){return this.getAxios().get("/user_defined_fields/tables")}getBaseUrl(){return"/user_defined_fields/user_defined_fields"}getTransform(){return d}}const o=new i;export{o as U}; +import"./index.es28-Dp3-vHIY.js";import"./index-CBqU2yxZ.js";import{s as r}from"./index.es12-BljXGOZw.js";import{t as s}from"./index.es98-CYRWAWq9.js";class t extends s{getPayloadKeys(){return["table_name","column_name","data_type","required","searchable","allow_multiple","options","order"]}getParameterName(){return"user_defined_field"}}const d=new t;class i extends r{fetchDataTypes(){return this.getAxios().get("/user_defined_fields/data_types")}fetchTables(){return this.getAxios().get("/user_defined_fields/tables")}getBaseUrl(){return"/user_defined_fields/user_defined_fields"}getTransform(){return d}}const o=new i;export{o as U}; diff --git a/docs/assets/UserDefinedFields-CroUrdkF.js b/docs/assets/UserDefinedFields-vb7cVvdH.js similarity index 99% rename from docs/assets/UserDefinedFields-CroUrdkF.js rename to docs/assets/UserDefinedFields-vb7cVvdH.js index 28ad99be..2be585c0 100644 --- a/docs/assets/UserDefinedFields-CroUrdkF.js +++ b/docs/assets/UserDefinedFields-vb7cVvdH.js @@ -1 +1 @@ -import{m as et,l as tt}from"./index.es98-Dz6XvXHK.js";import{r as C}from"./index-CBqU2yxZ.js";import{j as x}from"./jsx-runtime-BTCK_S7S.js";import{F as _}from"./Form-fErk-qk_.js";import{M as he}from"./Modal-Bz2VEyQG.js";import{_ as P}from"./index-default-C_maRo4o.js";import{B as Pe}from"./Button-Blq7Z6RX.js";import{I as rt}from"./Input--hQVCRQV.js";import{L as ke}from"./Label-Cq1fb1cd.js";import{U as Re}from"./UserDefinedFields-lsgXKzri.js";import{_ as X}from"./toPropertyKey-hKuLU48H.js";import{_ as le,a as F,b as ee}from"./inherits-D5wXBZoG.js";import{_ as D}from"./createClass-D2z1h_eG.js";import{_ as $}from"./assertThisInitialized-B9jnkVVz.js";import{_ as T}from"./getPrototypeOf-BYVhAdwF.js";import{_ as A}from"./defineProperty-CCxoMnQV.js";import{_ as nt}from"./toArray-D9zoIPho.js";const at="times circle outline",it="check circle outline",ot="red",st="green",fr=o=>{let a=at,r=ot;return o.value&&(a=it,r=st),et.jsx(tt,{color:r,name:a})};function je(o,a){var r=Object.keys(o);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(o);a&&(t=t.filter(function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable})),r.push.apply(r,t)}return r}function Ce(o){for(var a=1;a1&&arguments[1]!==void 0?arguments[1]:{};F(this,o),this.init(a,r)}return D(o,[{key:"init",value:function(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=r||ut,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(r){this.debug=r}},{key:"log",value:function(){for(var r=arguments.length,t=new Array(r),e=0;e1?t-1:0),n=1;n-1?s.replace(/###/g,"."):s}function e(){return!o||typeof o=="string"}for(var n=typeof a!="string"?[].concat(a):a.split(".");n.length>1;){if(e())return{};var i=t(n.shift());!o[i]&&r&&(o[i]=new r),Object.prototype.hasOwnProperty.call(o,i)?o=o[i]:o={}}return e()?{}:{obj:o,k:t(n.shift())}}function Fe(o,a,r){var t=me(o,a,Object),e=t.obj,n=t.k;e[n]=r}function ct(o,a,r,t){var e=me(o,a,Object),n=e.obj,i=e.k;n[i]=n[i]||[],t&&(n[i]=n[i].concat(r)),t||n[i].push(r)}function se(o,a){var r=me(o,a),t=r.obj,e=r.k;if(t)return t[e]}function De(o,a,r){var t=se(o,r);return t!==void 0?t:se(a,r)}function qe(o,a,r){for(var t in a)t!=="__proto__"&&t!=="constructor"&&(t in o?typeof o[t]=="string"||o[t]instanceof String||typeof a[t]=="string"||a[t]instanceof String?r&&(o[t]=a[t]):qe(o[t],a[t],r):o[t]=a[t]);return o}function H(o){return o.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var gt={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function dt(o){return typeof o=="string"?o.replace(/[&<>"'\/]/g,function(a){return gt[a]}):o}var fe=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,pt=[" ",",","?","!",";"];function ht(o,a,r){a=a||"",r=r||"";var t=pt.filter(function(s){return a.indexOf(s)<0&&r.indexOf(s)<0});if(t.length===0)return!0;var e=new RegExp("(".concat(t.map(function(s){return s==="?"?"\\?":s}).join("|"),")")),n=!e.test(o);if(!n){var i=o.indexOf(r);i>0&&!e.test(o.substring(0,i))&&(n=!0)}return n}function Ee(o,a){var r=Object.keys(o);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(o);a&&(t=t.filter(function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable})),r.push.apply(r,t)}return r}function ae(o){for(var a=1;a"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 ze(o,a){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(o){if(o[a])return o[a];for(var t=a.split(r),e=o,n=0;nn+i;)i++,s=t.slice(n,n+i).join(r),u=e[s];if(u===void 0)return;if(u===null)return null;if(a.endsWith(s)){if(typeof u=="string")return u;if(s&&typeof u[s]=="string")return u[s]}var f=t.slice(n+i).join(r);return f?ze(u,f,r):void 0}e=e[t[n]]}return e}}var yt=function(o){le(r,o);var a=vt(r);function r(t){var e,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return F(this,r),e=a.call(this),fe&&U.call($(e)),e.data=t||{},e.options=n,e.options.keySeparator===void 0&&(e.options.keySeparator="."),e.options.ignoreJSONStructure===void 0&&(e.options.ignoreJSONStructure=!0),e}return D(r,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var n=this.options.ns.indexOf(e);n>-1&&this.options.ns.splice(n,1)}},{key:"getResource",value:function(e,n,i){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},u=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,f=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure,c=[e,n];i&&typeof i!="string"&&(c=c.concat(i)),i&&typeof i=="string"&&(c=c.concat(u?i.split(u):i)),e.indexOf(".")>-1&&(c=e.split("."));var l=se(this.data,c);return l||!f||typeof i!="string"?l:ze(this.data&&this.data[e]&&this.data[e][n],i,u)}},{key:"addResource",value:function(e,n,i,s){var u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},f=this.options.keySeparator;f===void 0&&(f=".");var c=[e,n];i&&(c=c.concat(f?i.split(f):i)),e.indexOf(".")>-1&&(c=e.split("."),s=n,n=c[1]),this.addNamespaces(n),Fe(this.data,c,s),u.silent||this.emit("added",e,n,i,s)}},{key:"addResources",value:function(e,n,i){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var u in i)(typeof i[u]=="string"||Object.prototype.toString.apply(i[u])==="[object Array]")&&this.addResource(e,n,u,i[u],{silent:!0});s.silent||this.emit("added",e,n,i)}},{key:"addResourceBundle",value:function(e,n,i,s,u){var f=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},c=[e,n];e.indexOf(".")>-1&&(c=e.split("."),s=i,i=n,n=c[1]),this.addNamespaces(n);var l=se(this.data,c)||{};s?qe(l,i,u):l=ae(ae({},l),i),Fe(this.data,c,l),f.silent||this.emit("added",e,n,i)}},{key:"removeResourceBundle",value:function(e,n){this.hasResourceBundle(e,n)&&delete this.data[e][n],this.removeNamespaces(n),this.emit("removed",e,n)}},{key:"hasResourceBundle",value:function(e,n){return this.getResource(e,n)!==void 0}},{key:"getResourceBundle",value:function(e,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?ae(ae({},{}),this.getResource(e,n)):this.getResource(e,n)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"hasLanguageSomeTranslations",value:function(e){var n=this.getDataByLanguage(e),i=n&&Object.keys(n)||[];return!!i.find(function(s){return n[s]&&Object.keys(n[s]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),r}(U),We={processors:{},addPostProcessor:function(a){this.processors[a.name]=a},handle:function(a,r,t,e,n){var i=this;return a.forEach(function(s){i.processors[s]&&(r=i.processors[s].process(r,t,e,n))}),r}};function _e(o,a){var r=Object.keys(o);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(o);a&&(t=t.filter(function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable})),r.push.apply(r,t)}return r}function S(o){for(var a=1;a"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}}var Ie={},Te=function(o){le(r,o);var a=bt(r);function r(t){var e,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return F(this,r),e=a.call(this),fe&&U.call($(e)),ft(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,$(e)),e.options=n,e.options.keySeparator===void 0&&(e.options.keySeparator="."),e.logger=N.create("translator"),e}return D(r,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(e==null)return!1;var i=this.resolve(e,n);return i&&i.res!==void 0}},{key:"extractFromKey",value:function(e,n){var i=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;i===void 0&&(i=":");var s=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,u=n.ns||this.options.defaultNS||[],f=i&&e.indexOf(i)>-1,c=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!ht(e,i,s);if(f&&!c){var l=e.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:e,namespaces:u};var g=e.split(i);(i!==s||i===s&&this.options.ns.indexOf(g[0])>-1)&&(u=g.shift()),e=g.join(s)}return typeof u=="string"&&(u=[u]),{key:e,namespaces:u}}},{key:"translate",value:function(e,n,i){var s=this;if(X(n)!=="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),n||(n={}),e==null)return"";Array.isArray(e)||(e=[String(e)]);var u=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,f=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,c=this.extractFromKey(e[e.length-1],n),l=c.key,g=c.namespaces,d=g[g.length-1],m=n.lng||this.language,y=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(m&&m.toLowerCase()==="cimode"){if(y){var v=n.nsSeparator||this.options.nsSeparator;return u?(p.res="".concat(d).concat(v).concat(l),p):"".concat(d).concat(v).concat(l)}return u?(p.res=l,p):l}var p=this.resolve(e,n),h=p&&p.res,O=p&&p.usedKey||l,b=p&&p.exactUsedKey||l,L=Object.prototype.toString.apply(h),E=["[object Number]","[object Function]","[object RegExp]"],M=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,q=!this.i18nFormat||this.i18nFormat.handleAsObject,z=typeof h!="string"&&typeof h!="boolean"&&typeof h!="number";if(q&&h&&z&&E.indexOf(L)<0&&!(typeof M=="string"&&L==="[object Array]")){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var K=this.options.returnedObjectHandler?this.options.returnedObjectHandler(O,h,S(S({},n),{},{ns:g})):"key '".concat(l," (").concat(this.language,")' returned an object instead of string.");return u?(p.res=K,p):K}if(f){var ye=L==="[object Array]",te=ye?[]:{},Ge=ye?b:O;for(var B in h)if(Object.prototype.hasOwnProperty.call(h,B)){var be="".concat(Ge).concat(f).concat(B);te[B]=this.translate(be,S(S({},n),{joinArrays:!1,ns:g})),te[B]===be&&(te[B]=h[B])}h=te}}else if(q&&typeof M=="string"&&L==="[object Array]")h=h.join(M),h&&(h=this.extendTranslation(h,e,n,i));else{var re=!1,W=!1,Oe=n.count!==void 0&&typeof n.count!="string",ce=r.hasDefaultValue(n),Qe=Oe?this.pluralResolver.getSuffix(m,n.count,n):"",Y=n["defaultValue".concat(Qe)]||n.defaultValue;!this.isValidLookup(h)&&ce&&(re=!0,h=Y),this.isValidLookup(h)||(W=!0,h=l);var Ze=n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,Xe=Ze&&W?void 0:h,G=ce&&Y!==h&&this.options.updateMissing;if(W||re||G){if(this.logger.log(G?"updateKey":"missingKey",m,d,l,G?Y:h),f){var xe=this.resolve(l,S(S({},n),{},{keySeparator:!1}));xe&&xe.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var Q=[],ne=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&ne&&ne[0])for(var ge=0;ge1&&arguments[1]!==void 0?arguments[1]:{},s,u,f,c,l;return typeof e=="string"&&(e=[e]),e.forEach(function(g){if(!n.isValidLookup(s)){var d=n.extractFromKey(g,i),m=d.key;u=m;var y=d.namespaces;n.options.fallbackNS&&(y=y.concat(n.options.fallbackNS));var v=i.count!==void 0&&typeof i.count!="string",p=v&&!i.ordinal&&i.count===0&&n.pluralResolver.shouldUseIntlApi(),h=i.context!==void 0&&(typeof i.context=="string"||typeof i.context=="number")&&i.context!=="",O=i.lngs?i.lngs:n.languageUtils.toResolveHierarchy(i.lng||n.language,i.fallbackLng);y.forEach(function(b){n.isValidLookup(s)||(l=b,!Ie["".concat(O[0],"-").concat(b)]&&n.utils&&n.utils.hasLoadedNamespace&&!n.utils.hasLoadedNamespace(l)&&(Ie["".concat(O[0],"-").concat(b)]=!0,n.logger.warn('key "'.concat(u,'" for languages "').concat(O.join(", "),`" won't get resolved as namespace "`).concat(l,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),O.forEach(function(L){if(!n.isValidLookup(s)){c=L;var E=[m];if(n.i18nFormat&&n.i18nFormat.addLookupKeys)n.i18nFormat.addLookupKeys(E,m,L,b,i);else{var M;v&&(M=n.pluralResolver.getSuffix(L,i.count,i));var q="".concat(n.options.pluralSeparator,"zero");if(v&&(E.push(m+M),p&&E.push(m+q)),h){var z="".concat(m).concat(n.options.contextSeparator).concat(i.context);E.push(z),v&&(E.push(z+M),p&&E.push(z+q))}}for(var K;K=E.pop();)n.isValidLookup(s)||(f=K,s=n.getResource(L,b,K,i))}}))})}}),{res:s,usedKey:u,exactUsedKey:f,usedLng:c,usedNS:l}}},{key:"isValidLookup",value:function(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}},{key:"getResource",value:function(e,n,i){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,n,i,s):this.resourceStore.getResource(e,n,i,s)}}],[{key:"hasDefaultValue",value:function(e){var n="defaultValue";for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&n===i.substring(0,n.length)&&e[i]!==void 0)return!0;return!1}}]),r}(U);function ve(o){return o.charAt(0).toUpperCase()+o.slice(1)}var xt=function(){function o(a){F(this,o),this.options=a,this.supportedLngs=this.options.supportedLngs||!1,this.logger=N.create("languageUtils")}return D(o,[{key:"getScriptPartFromCode",value:function(r){if(!r||r.indexOf("-")<0)return null;var t=r.split("-");return t.length===2||(t.pop(),t[t.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(t.join("-"))}},{key:"getLanguagePartFromCode",value:function(r){if(!r||r.indexOf("-")<0)return r;var t=r.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(r){if(typeof r=="string"&&r.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],e=r.split("-");return this.options.lowerCaseLng?e=e.map(function(n){return n.toLowerCase()}):e.length===2?(e[0]=e[0].toLowerCase(),e[1]=e[1].toUpperCase(),t.indexOf(e[1].toLowerCase())>-1&&(e[1]=ve(e[1].toLowerCase()))):e.length===3&&(e[0]=e[0].toLowerCase(),e[1].length===2&&(e[1]=e[1].toUpperCase()),e[0]!=="sgn"&&e[2].length===2&&(e[2]=e[2].toUpperCase()),t.indexOf(e[1].toLowerCase())>-1&&(e[1]=ve(e[1].toLowerCase())),t.indexOf(e[2].toLowerCase())>-1&&(e[2]=ve(e[2].toLowerCase()))),e.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?r.toLowerCase():r}},{key:"isSupportedCode",value:function(r){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(r=this.getLanguagePartFromCode(r)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(r)>-1}},{key:"getBestMatchFromCodes",value:function(r){var t=this;if(!r)return null;var e;return r.forEach(function(n){if(!e){var i=t.formatLanguageCode(n);(!t.options.supportedLngs||t.isSupportedCode(i))&&(e=i)}}),!e&&this.options.supportedLngs&&r.forEach(function(n){if(!e){var i=t.getLanguagePartFromCode(n);if(t.isSupportedCode(i))return e=i;e=t.options.supportedLngs.find(function(s){if(s.indexOf(i)===0)return s})}}),e||(e=this.getFallbackCodes(this.options.fallbackLng)[0]),e}},{key:"getFallbackCodes",value:function(r,t){if(!r)return[];if(typeof r=="function"&&(r=r(t)),typeof r=="string"&&(r=[r]),Object.prototype.toString.apply(r)==="[object Array]")return r;if(!t)return r.default||[];var e=r[t];return e||(e=r[this.getScriptPartFromCode(t)]),e||(e=r[this.formatLanguageCode(t)]),e||(e=r[this.getLanguagePartFromCode(t)]),e||(e=r.default),e||[]}},{key:"toResolveHierarchy",value:function(r,t){var e=this,n=this.getFallbackCodes(t||this.options.fallbackLng||[],r),i=[],s=function(f){f&&(e.isSupportedCode(f)?i.push(f):e.logger.warn("rejecting language code not found in supportedLngs: ".concat(f)))};return typeof r=="string"&&r.indexOf("-")>-1?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(r)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(r)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(r))):typeof r=="string"&&s(this.formatLanguageCode(r)),n.forEach(function(u){i.indexOf(u)<0&&s(e.formatLanguageCode(u))}),i}}]),o}(),St=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],wt={1:function(a){return+(a>1)},2:function(a){return+(a!=1)},3:function(a){return 0},4:function(a){return a%10==1&&a%100!=11?0:a%10>=2&&a%10<=4&&(a%100<10||a%100>=20)?1:2},5:function(a){return a==0?0:a==1?1:a==2?2:a%100>=3&&a%100<=10?3:a%100>=11?4:5},6:function(a){return a==1?0:a>=2&&a<=4?1:2},7:function(a){return a==1?0:a%10>=2&&a%10<=4&&(a%100<10||a%100>=20)?1:2},8:function(a){return a==1?0:a==2?1:a!=8&&a!=11?2:3},9:function(a){return+(a>=2)},10:function(a){return a==1?0:a==2?1:a<7?2:a<11?3:4},11:function(a){return a==1||a==11?0:a==2||a==12?1:a>2&&a<20?2:3},12:function(a){return+(a%10!=1||a%100==11)},13:function(a){return+(a!==0)},14:function(a){return a==1?0:a==2?1:a==3?2:3},15:function(a){return a%10==1&&a%100!=11?0:a%10>=2&&(a%100<10||a%100>=20)?1:2},16:function(a){return a%10==1&&a%100!=11?0:a!==0?1:2},17:function(a){return a==1||a%10==1&&a%100!=11?0:1},18:function(a){return a==0?0:a==1?1:2},19:function(a){return a==1?0:a==0||a%100>1&&a%100<11?1:a%100>10&&a%100<20?2:3},20:function(a){return a==1?0:a==0||a%100>0&&a%100<20?1:2},21:function(a){return a%100==1?1:a%100==2?2:a%100==3||a%100==4?3:0},22:function(a){return a==1?0:a==2?1:(a<0||a>10)&&a%10==0?2:3}},Lt=["v1","v2","v3"],Ue={zero:0,one:1,two:2,few:3,many:4,other:5};function Pt(){var o={};return St.forEach(function(a){a.lngs.forEach(function(r){o[r]={numbers:a.nr,plurals:wt[a.fc]}})}),o}var kt=function(){function o(a){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};F(this,o),this.languageUtils=a,this.options=r,this.logger=N.create("pluralResolver"),(!this.options.compatibilityJSON||this.options.compatibilityJSON==="v4")&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=Pt()}return D(o,[{key:"addRule",value:function(r,t){this.rules[r]=t}},{key:"getRule",value:function(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(r,{type:t.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[r]||this.rules[this.languageUtils.getLanguagePartFromCode(r)]}},{key:"needsPlural",value:function(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=this.getRule(r,t);return this.shouldUseIntlApi()?e&&e.resolvedOptions().pluralCategories.length>1:e&&e.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(r,t){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(r,e).map(function(n){return"".concat(t).concat(n)})}},{key:"getSuffixes",value:function(r){var t=this,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=this.getRule(r,e);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort(function(i,s){return Ue[i]-Ue[s]}).map(function(i){return"".concat(t.options.prepend).concat(i)}):n.numbers.map(function(i){return t.getSuffix(r,i,e)}):[]}},{key:"getSuffix",value:function(r,t){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=this.getRule(r,e);return n?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(n.select(t)):this.getSuffixRetroCompatible(n,t):(this.logger.warn("no plural rule found for: ".concat(r)),"")}},{key:"getSuffixRetroCompatible",value:function(r,t){var e=this,n=r.noAbs?r.plurals(t):r.plurals(Math.abs(t)),i=r.numbers[n];this.options.simplifyPluralSuffix&&r.numbers.length===2&&r.numbers[0]===1&&(i===2?i="plural":i===1&&(i=""));var s=function(){return e.options.prepend&&i.toString()?e.options.prepend+i.toString():i.toString()};return this.options.compatibilityJSON==="v1"?i===1?"":typeof i=="number"?"_plural_".concat(i.toString()):s():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&r.numbers.length===2&&r.numbers[0]===1?s():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}},{key:"shouldUseIntlApi",value:function(){return!Lt.includes(this.options.compatibilityJSON)}}]),o}();function Ae(o,a){var r=Object.keys(o);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(o);a&&(t=t.filter(function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable})),r.push.apply(r,t)}return r}function k(o){for(var a=1;a0&&arguments[0]!==void 0?arguments[0]:{};F(this,o),this.logger=N.create("interpolator"),this.options=a,this.format=a.interpolation&&a.interpolation.format||function(r){return r},this.init(a)}return D(o,[{key:"init",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};r.interpolation||(r.interpolation={escapeValue:!0});var t=r.interpolation;this.escape=t.escape!==void 0?t.escape:dt,this.escapeValue=t.escapeValue!==void 0?t.escapeValue:!0,this.useRawValueToEscape=t.useRawValueToEscape!==void 0?t.useRawValueToEscape:!1,this.prefix=t.prefix?H(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?H(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?H(t.nestingPrefix):t.nestingPrefixEscaped||H("$t("),this.nestingSuffix=t.nestingSuffix?H(t.nestingSuffix):t.nestingSuffixEscaped||H(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=t.alwaysFormat!==void 0?t.alwaysFormat:!1,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var r="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(r,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var e="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(e,"g")}},{key:"interpolate",value:function(r,t,e,n){var i=this,s,u,f,c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function l(v){return v.replace(/\$/g,"$$$$")}var g=function(p){if(p.indexOf(i.formatSeparator)<0){var h=De(t,c,p);return i.alwaysFormat?i.format(h,void 0,e,k(k(k({},n),t),{},{interpolationkey:p})):h}var O=p.split(i.formatSeparator),b=O.shift().trim(),L=O.join(i.formatSeparator).trim();return i.format(De(t,c,b),L,e,k(k(k({},n),t),{},{interpolationkey:b}))};this.resetRegExp();var d=n&&n.missingInterpolationHandler||this.options.missingInterpolationHandler,m=n&&n.interpolation&&n.interpolation.skipOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,y=[{regex:this.regexpUnescape,safeValue:function(p){return l(p)}},{regex:this.regexp,safeValue:function(p){return i.escapeValue?l(i.escape(p)):l(p)}}];return y.forEach(function(v){for(f=0;s=v.regex.exec(r);){var p=s[1].trim();if(u=g(p),u===void 0)if(typeof d=="function"){var h=d(r,s,n);u=typeof h=="string"?h:""}else if(n&&n.hasOwnProperty(p))u="";else if(m){u=s[0];continue}else i.logger.warn("missed to pass in variable ".concat(p," for interpolating ").concat(r)),u="";else typeof u!="string"&&!i.useRawValueToEscape&&(u=Ne(u));var O=v.safeValue(u);if(r=r.replace(s[0],O),m?(v.regex.lastIndex+=u.length,v.regex.lastIndex-=s[0].length):v.regex.lastIndex=0,f++,f>=i.maxReplaces)break}}),r}},{key:"nest",value:function(r,t){var e=this,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i,s,u=k({},n);u.applyPostProcessor=!1,delete u.defaultValue;function f(d,m){var y=this.nestingOptionsSeparator;if(d.indexOf(y)<0)return d;var v=d.split(new RegExp("".concat(y,"[ ]*{"))),p="{".concat(v[1]);d=v[0],p=this.interpolate(p,u);var h=p.match(/'/g),O=p.match(/"/g);(h&&h.length%2===0&&!O||O.length%2!==0)&&(p=p.replace(/'/g,'"'));try{u=JSON.parse(p),m&&(u=k(k({},m),u))}catch(b){return this.logger.warn("failed parsing options string in nesting for key ".concat(d),b),"".concat(d).concat(y).concat(p)}return delete u.defaultValue,d}for(;i=this.nestingRegexp.exec(r);){var c=[],l=!1;if(i[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(i[1])){var g=i[1].split(this.formatSeparator).map(function(d){return d.trim()});i[1]=g.shift(),c=g,l=!0}if(s=t(f.call(this,i[1].trim(),u),u),s&&i[0]===r&&typeof s!="string")return s;typeof s!="string"&&(s=Ne(s)),s||(this.logger.warn("missed to resolve ".concat(i[1]," for nesting ").concat(r)),s=""),l&&(s=c.reduce(function(d,m){return e.format(d,m,n.lng,k(k({},n),{},{interpolationkey:i[1].trim()}))},s.trim())),r=r.replace(i[0],s),this.regexp.lastIndex=0}return r}}]),o}();function Me(o,a){var r=Object.keys(o);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(o);a&&(t=t.filter(function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable})),r.push.apply(r,t)}return r}function I(o){for(var a=1;a-1){var t=o.split("(");a=t[0].toLowerCase().trim();var e=t[1].substring(0,t[1].length-1);if(a==="currency"&&e.indexOf(":")<0)r.currency||(r.currency=e.trim());else if(a==="relativetime"&&e.indexOf(":")<0)r.range||(r.range=e.trim());else{var n=e.split(";");n.forEach(function(i){if(i){var s=i.split(":"),u=nt(s),f=u[0],c=u.slice(1),l=c.join(":").trim().replace(/^'+|'+$/g,"");r[f.trim()]||(r[f.trim()]=l),l==="false"&&(r[f.trim()]=!1),l==="true"&&(r[f.trim()]=!0),isNaN(l)||(r[f.trim()]=parseInt(l,10))}})}}return{formatName:a,formatOptions:r}}function J(o){var a={};return function(t,e,n){var i=e+JSON.stringify(n),s=a[i];return s||(s=o(e,n),a[i]=s),s(t)}}var Ct=function(){function o(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};F(this,o),this.logger=N.create("formatter"),this.options=a,this.formats={number:J(function(r,t){var e=new Intl.NumberFormat(r,t);return function(n){return e.format(n)}}),currency:J(function(r,t){var e=new Intl.NumberFormat(r,I(I({},t),{},{style:"currency"}));return function(n){return e.format(n)}}),datetime:J(function(r,t){var e=new Intl.DateTimeFormat(r,I({},t));return function(n){return e.format(n)}}),relativetime:J(function(r,t){var e=new Intl.RelativeTimeFormat(r,I({},t));return function(n){return e.format(n,t.range||"day")}}),list:J(function(r,t){var e=new Intl.ListFormat(r,I({},t));return function(n){return e.format(n)}})},this.init(a)}return D(o,[{key:"init",value:function(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}},e=t.interpolation;this.formatSeparator=e.formatSeparator?e.formatSeparator:e.formatSeparator||","}},{key:"add",value:function(r,t){this.formats[r.toLowerCase().trim()]=t}},{key:"addCached",value:function(r,t){this.formats[r.toLowerCase().trim()]=J(t)}},{key:"format",value:function(r,t,e,n){var i=this,s=t.split(this.formatSeparator),u=s.reduce(function(f,c){var l=jt(c),g=l.formatName,d=l.formatOptions;if(i.formats[g]){var m=f;try{var y=n&&n.formatParams&&n.formatParams[n.interpolationkey]||{},v=y.locale||y.lng||n.locale||n.lng||e;m=i.formats[g](f,v,I(I(I({},d),n),y))}catch(p){i.logger.warn(p)}return m}else i.logger.warn("there was no format function for ".concat(g));return f},r);return u}}]),o}();function $e(o,a){var r=Object.keys(o);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(o);a&&(t=t.filter(function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable})),r.push.apply(r,t)}return r}function Ke(o){for(var a=1;a"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 Dt(o,a){o.pending[a]!==void 0&&(delete o.pending[a],o.pendingCount--)}var Et=function(o){le(r,o);var a=Nt(r);function r(t,e,n){var i,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return F(this,r),i=a.call(this),fe&&U.call($(i)),i.backend=t,i.store=e,i.services=n,i.languageUtils=n.languageUtils,i.options=s,i.logger=N.create("backendConnector"),i.waitingReads=[],i.maxParallelReads=s.maxParallelReads||10,i.readingCalls=0,i.maxRetries=s.maxRetries>=0?s.maxRetries:5,i.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(n,s.backend,s),i}return D(r,[{key:"queueLoad",value:function(e,n,i,s){var u=this,f={},c={},l={},g={};return e.forEach(function(d){var m=!0;n.forEach(function(y){var v="".concat(d,"|").concat(y);!i.reload&&u.store.hasResourceBundle(d,y)?u.state[v]=2:u.state[v]<0||(u.state[v]===1?c[v]===void 0&&(c[v]=!0):(u.state[v]=1,m=!1,c[v]===void 0&&(c[v]=!0),f[v]===void 0&&(f[v]=!0),g[y]===void 0&&(g[y]=!0)))}),m||(l[d]=!0)}),(Object.keys(f).length||Object.keys(c).length)&&this.queue.push({pending:c,pendingCount:Object.keys(c).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(f),pending:Object.keys(c),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(g)}}},{key:"loaded",value:function(e,n,i){var s=e.split("|"),u=s[0],f=s[1];n&&this.emit("failedLoading",u,f,n),i&&this.store.addResourceBundle(u,f,i),this.state[e]=n?-1:2;var c={};this.queue.forEach(function(l){ct(l.loaded,[u],f),Dt(l,e),n&&l.errors.push(n),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(function(g){c[g]||(c[g]={});var d=l.loaded[g];d.length&&d.forEach(function(m){c[g][m]===void 0&&(c[g][m]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",c),this.queue=this.queue.filter(function(l){return!l.done})}},{key:"read",value:function(e,n,i){var s=this,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,f=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,c=arguments.length>5?arguments[5]:void 0;if(!e.length)return c(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:n,fcName:i,tried:u,wait:f,callback:c});return}return this.readingCalls++,this.backend[i](e,n,function(l,g){if(s.readingCalls--,s.waitingReads.length>0){var d=s.waitingReads.shift();s.read(d.lng,d.ns,d.fcName,d.tried,d.wait,d.callback)}if(l&&g&&u2&&arguments[2]!==void 0?arguments[2]:{},u=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),u&&u();typeof e=="string"&&(e=this.languageUtils.toResolveHierarchy(e)),typeof n=="string"&&(n=[n]);var f=this.queueLoad(e,n,s,u);if(!f.toLoad.length)return f.pending.length||u(),null;f.toLoad.forEach(function(c){i.loadOne(c)})}},{key:"load",value:function(e,n,i){this.prepareLoading(e,n,{},i)}},{key:"reload",value:function(e,n,i){this.prepareLoading(e,n,{reload:!0},i)}},{key:"loadOne",value:function(e){var n=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",s=e.split("|"),u=s[0],f=s[1];this.read(u,f,"read",void 0,void 0,function(c,l){c&&n.logger.warn("".concat(i,"loading namespace ").concat(f," for language ").concat(u," failed"),c),!c&&l&&n.logger.log("".concat(i,"loaded namespace ").concat(f," for language ").concat(u),l),n.loaded(e,c,l)})}},{key:"saveMissing",value:function(e,n,i,s,u){var f=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn('did not save key "'.concat(i,'" as the namespace "').concat(n,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}i==null||i===""||(this.backend&&this.backend.create&&this.backend.create(e,n,i,s,null,Ke(Ke({},f),{},{isUpdate:u})),!(!e||!e[0])&&this.store.addResource(e[0],n,i,s))}}]),r}(U);function _t(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(a){var r={};if(X(a[1])==="object"&&(r=a[1]),typeof a[1]=="string"&&(r.defaultValue=a[1]),typeof a[2]=="string"&&(r.tDescription=a[2]),X(a[2])==="object"||X(a[3])==="object"){var t=a[3]||a[2];Object.keys(t).forEach(function(e){r[e]=t[e]})}return r},interpolation:{escapeValue:!0,format:function(a,r,t,e){return a},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function Be(o){return typeof o.ns=="string"&&(o.ns=[o.ns]),typeof o.fallbackLng=="string"&&(o.fallbackLng=[o.fallbackLng]),typeof o.fallbackNS=="string"&&(o.fallbackNS=[o.fallbackNS]),o.supportedLngs&&o.supportedLngs.indexOf("cimode")<0&&(o.supportedLngs=o.supportedLngs.concat(["cimode"])),o}function Ve(o,a){var r=Object.keys(o);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(o);a&&(t=t.filter(function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable})),r.push.apply(r,t)}return r}function j(o){for(var a=1;a"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 ie(){}function Ut(o){var a=Object.getOwnPropertyNames(Object.getPrototypeOf(o));a.forEach(function(r){typeof o[r]=="function"&&(o[r]=o[r].bind(o))})}var ue=function(o){le(r,o);var a=It(r);function r(){var t,e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(F(this,r),t=a.call(this),fe&&U.call($(t)),t.options=Be(e),t.services={},t.logger=N,t.modules={external:[]},Ut($(t)),n&&!t.isInitialized&&!e.isClone){if(!t.options.initImmediate)return t.init(e,n),ee(t,$(t));setTimeout(function(){t.init(e,n)},0)}return t}return D(r,[{key:"init",value:function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;typeof n=="function"&&(i=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(typeof n.ns=="string"?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));var s=_t();this.options=j(j(j({},s),this.options),Be(n)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=j(j({},s.interpolation),this.options.interpolation)),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);function u(p){return p?typeof p=="function"?new p:p:null}if(!this.options.isClone){this.modules.logger?N.init(u(this.modules.logger),this.options):N.init(null,this.options);var f;this.modules.formatter?f=this.modules.formatter:typeof Intl<"u"&&(f=Ct);var c=new xt(this.options);this.store=new yt(this.options.resources,this.options);var l=this.services;l.logger=N,l.resourceStore=this.store,l.languageUtils=c,l.pluralResolver=new kt(c,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),f&&(!this.options.interpolation.format||this.options.interpolation.format===s.interpolation.format)&&(l.formatter=u(f),l.formatter.init(l,this.options),this.options.interpolation.format=l.formatter.format.bind(l.formatter)),l.interpolator=new Rt(this.options),l.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},l.backendConnector=new Et(u(this.modules.backend),l.resourceStore,l,this.options),l.backendConnector.on("*",function(p){for(var h=arguments.length,O=new Array(h>1?h-1:0),b=1;b1?h-1:0),b=1;b0&&g[0]!=="dev"&&(this.options.lng=g[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined");var d=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];d.forEach(function(p){e[p]=function(){var h;return(h=e.store)[p].apply(h,arguments)}});var m=["addResource","addResources","addResourceBundle","removeResourceBundle"];m.forEach(function(p){e[p]=function(){var h;return(h=e.store)[p].apply(h,arguments),e}});var y=Z(),v=function(){var h=function(b,L){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),y.resolve(L),i(b,L)};if(e.languages&&e.options.compatibilityAPI!=="v1"&&!e.isInitialized)return h(null,e.t.bind(e));e.changeLanguage(e.options.lng,h)};return this.options.resources||!this.options.initImmediate?v():setTimeout(v,0),y}},{key:"loadResources",value:function(e){var n=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ie,s=i,u=typeof e=="string"?e:this.language;if(typeof e=="function"&&(s=e),!this.options.resources||this.options.partialBundledLanguages){if(u&&u.toLowerCase()==="cimode")return s();var f=[],c=function(d){if(d){var m=n.services.languageUtils.toResolveHierarchy(d);m.forEach(function(y){f.indexOf(y)<0&&f.push(y)})}};if(u)c(u);else{var l=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);l.forEach(function(g){return c(g)})}this.options.preload&&this.options.preload.forEach(function(g){return c(g)}),this.services.backendConnector.load(f,this.options.ns,function(g){!g&&!n.resolvedLanguage&&n.language&&n.setResolvedLanguage(n.language),s(g)})}else s(null)}},{key:"reloadResources",value:function(e,n,i){var s=Z();return e||(e=this.languages),n||(n=this.options.ns),i||(i=ie),this.services.backendConnector.reload(e,n,function(u){s.resolve(),i(u)}),s}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&We.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}},{key:"setResolvedLanguage",value:function(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-1))for(var n=0;n-1)&&this.store.hasLanguageSomeTranslations(i)){this.resolvedLanguage=i;break}}}},{key:"changeLanguage",value:function(e,n){var i=this;this.isLanguageChangingTo=e;var s=Z();this.emit("languageChanging",e);var u=function(g){i.language=g,i.languages=i.services.languageUtils.toResolveHierarchy(g),i.resolvedLanguage=void 0,i.setResolvedLanguage(g)},f=function(g,d){d?(u(d),i.translator.changeLanguage(d),i.isLanguageChangingTo=void 0,i.emit("languageChanged",d),i.logger.log("languageChanged",d)):i.isLanguageChangingTo=void 0,s.resolve(function(){return i.t.apply(i,arguments)}),n&&n(g,function(){return i.t.apply(i,arguments)})},c=function(g){!e&&!g&&i.services.languageDetector&&(g=[]);var d=typeof g=="string"?g:i.services.languageUtils.getBestMatchFromCodes(g);d&&(i.language||u(d),i.translator.language||i.translator.changeLanguage(d),i.services.languageDetector&&i.services.languageDetector.cacheUserLanguage(d)),i.loadResources(d,function(m){f(m,d)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?c(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(c):c(e),s}},{key:"getFixedT",value:function(e,n,i){var s=this,u=function f(c,l){var g;if(X(l)!=="object"){for(var d=arguments.length,m=new Array(d>2?d-2:0),y=2;y1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var s=this.resolvedLanguage||this.languages[0],u=this.options?this.options.fallbackLng:!1,f=this.languages[this.languages.length-1];if(s.toLowerCase()==="cimode")return!0;var c=function(d,m){var y=n.services.backendConnector.state["".concat(d,"|").concat(m)];return y===-1||y===2};if(i.precheck){var l=i.precheck(this,c);if(l!==void 0)return l}return!!(this.hasResourceBundle(s,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||c(s,e)&&(!u||c(f,e)))}},{key:"loadNamespaces",value:function(e,n){var i=this,s=Z();return this.options.ns?(typeof e=="string"&&(e=[e]),e.forEach(function(u){i.options.ns.indexOf(u)<0&&i.options.ns.push(u)}),this.loadResources(function(u){s.resolve(),n&&n(u)}),s):(n&&n(),Promise.resolve())}},{key:"loadLanguages",value:function(e,n){var i=Z();typeof e=="string"&&(e=[e]);var s=this.options.preload||[],u=e.filter(function(f){return s.indexOf(f)<0});return u.length?(this.options.preload=s.concat(u),this.loadResources(function(f){i.resolve(),n&&n(f)}),i):(n&&n(),Promise.resolve())}},{key:"dir",value:function(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";var n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"];return n.indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ie,s=j(j(j({},this.options),n),{isClone:!0}),u=new r(s);(n.debug!==void 0||n.prefix!==void 0)&&(u.logger=u.logger.clone(n));var f=["store","services","language"];return f.forEach(function(c){u[c]=e[c]}),u.services=j({},this.services),u.services.utils={hasLoadedNamespace:u.hasLoadedNamespace.bind(u)},u.translator=new Te(u.services,u.options),u.translator.on("*",function(c){for(var l=arguments.length,g=new Array(l>1?l-1:0),d=1;d0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;return new ue(o,a)});var w=ue.createInstance();w.createInstance=ue.createInstance;w.createInstance;w.init;w.loadResources;w.reloadResources;w.use;w.changeLanguage;w.getFixedT;w.t;w.exists;w.setDefaultNamespace;w.hasLoadedNamespace;w.loadNamespaces;w.loadLanguages;const At={labels:{allowMultiple:"Allow multiple",dataType:"Data type",name:"Name",order:"Order",required:"Required",searchable:"Searchable",table:"Table"},title:{add:"Add User Defined Field",edit:"Edit User Defined Field"}},Mt={errors:{numeric:"{{name}} must be numeric"}},$t={columns:{dataType:"Data type",name:"Name",order:"Order",required:"Required",table:"Table",uuid:"Identifier"}},Kt={columns:{dataType:"Data type",name:"Name",order:"Order",required:"Required",table:"Table",uuid:"Identifier"}},Bt={UserDefinedFieldModal:At,UserDefinedFields:Mt,UserDefinedFieldsEmbeddedList:$t,UserDefinedFieldsList:Kt},Vt={en:{translation:Bt}},R=w.createInstance();R.init({debug:!0,fallbackLng:"en",lng:"en",interpolation:{escapeValue:!1},resources:Vt});const Ye=o=>{const[a,r]=C.useState(P.map(o.options,s=>({value:s}))),t=C.useCallback(()=>{r(s=>[...s,{new:!0}])},[]),e=C.useCallback(s=>{r(u=>P.filter(u,(f,c)=>c!==s))},[]),n=C.useCallback(s=>{r(u=>P.map(u,(f,c)=>s!==c?f:{...f,new:!1}))},[a]),i=C.useCallback((s,u,{value:f})=>{r(c=>P.map(c,(l,g)=>g!==s?l:{...l,value:f}))},[]);return C.useEffect(()=>{const s=P.filter(a,u=>!u.new);o.onChange(P.pluck(s,"value"))},[a]),x.jsxs("div",{className:"user-defined-field-options",children:[x.jsx(Pe,{basic:!0,icon:"plus",onClick:t,type:"button"}),P.map(a,(s,u)=>x.jsxs(x.Fragment,{children:[s.new&&x.jsxs(ke,{children:[x.jsx(rt,{autoFocus:!0,onChange:i.bind(void 0,u),value:s.value}),x.jsx(Pe,{basic:!0,color:"green",icon:"checkmark",onClick:n.bind(void 0,u),type:"button",size:"tiny"})]}),!s.new&&x.jsx(ke,{content:s.value,onRemove:e.bind(void 0,u)})]}))]})};Ye.__docgenInfo={description:"",methods:[],displayName:"UserDefinedFieldOptions",props:{options:{required:!0,flowType:{name:"Array",elements:[{name:"string"}],raw:"Array"},description:""},onChange:{required:!0,flowType:{name:"signature",type:"function",raw:"(options: Array) => void",signature:{arguments:[{name:"options",type:{name:"Array",elements:[{name:"string"}],raw:"Array"}}],return:{name:"void"}}},description:""}}};const He={select:"Select"},Ht=o=>{const[a,r]=C.useState([]),[t,e]=C.useState([]),n=C.useCallback(i=>P.map(i,s=>({key:s,value:s,text:s})),[]);return C.useEffect(()=>{o.hideTable||Re.fetchTables().then(({data:i})=>e(n(i.tables))),Re.fetchDataTypes().then(({data:i})=>r(n(i.data_types)))},[]),x.jsxs(he,{as:_,centered:!1,open:!0,children:[x.jsx(he.Header,{content:o.item.id?R.t("UserDefinedFieldModal.title.edit"):R.t("UserDefinedFieldModal.title.add")}),x.jsxs(he.Content,{children:[!o.hideTable&&x.jsx(_.Dropdown,{clearable:!0,error:o.isError("table_name"),label:R.t("UserDefinedFieldModal.labels.table"),onChange:o.onTextInputChange.bind(void 0,"table_name"),options:t,required:o.isRequired("table_name"),selection:!0,selectOnBlur:!1,value:o.item.table_name||""}),x.jsx(_.Input,{error:o.isError("column_name"),label:R.t("UserDefinedFieldModal.labels.name"),onChange:o.onTextInputChange.bind(void 0,"column_name"),required:o.isRequired("column_name"),value:o.item.column_name||""}),x.jsx(_.Dropdown,{clearable:!0,error:o.isError("data_type"),label:R.t("UserDefinedFieldModal.labels.dataType"),onChange:o.onTextInputChange.bind(void 0,"data_type"),options:a,required:o.isRequired("data_type"),selection:!0,selectOnBlur:!1,value:o.item.data_type||""}),x.jsx(_.Input,{error:o.isError("order"),label:R.t("UserDefinedFieldModal.labels.order"),onChange:o.onTextInputChange.bind(void 0,"order"),required:o.isRequired("oder"),value:o.item.order||0,type:"number"}),x.jsxs(_.Group,{children:[x.jsx(_.Checkbox,{error:o.isError("required"),checked:o.item.required,label:R.t("UserDefinedFieldModal.labels.required"),onChange:o.onCheckboxInputChange.bind(void 0,"required")}),x.jsx(_.Checkbox,{error:o.isError("searchable"),checked:o.item.searchable,label:R.t("UserDefinedFieldModal.labels.searchable"),onChange:o.onCheckboxInputChange.bind(void 0,"searchable")}),o.item.data_type===He.select&&x.jsx(_.Checkbox,{error:o.isError("allow_multiple"),checked:o.item.allow_multiple,label:R.t("UserDefinedFieldModal.labels.allowMultiple"),onChange:o.onCheckboxInputChange.bind(void 0,"allow_multiple")})]}),o.item.data_type===He.select&&x.jsx(Ye,{options:o.item.options,onChange:i=>o.onSetState({options:i})})]}),o.children]})};Ht.__docgenInfo={description:"",methods:[],displayName:"UserDefinedFieldModal",props:{hideTable:{required:!1,flowType:{name:"boolean"},description:""}}};const oe="user_defined",Je=".",Jt=({key:o,error:a})=>{const r={};if(o&&o.startsWith(oe)&&P.contains(o,Je)){const[,t]=o.split(Je);P.extend(r,{[`${oe}[${t}]`]:`${t} ${a}`})}if(o===oe&&!P.isEmpty(a)){const[t,e]=a;P.extend(r,{[`${oe}[${t}]`]:e})}return r},qt=o=>{const a={};return o.order||P.extend(a,{order:R.t("UserDefinedFields.errors.numeric",{name:"order"})}),a},cr={resolveError:Jt,validateUserDefinedField:qt};export{fr as O,Ht as U,cr as a,R as i}; +import{m as et,l as tt}from"./index.es98-CYRWAWq9.js";import{r as C}from"./index-CBqU2yxZ.js";import{j as x}from"./jsx-runtime-BTCK_S7S.js";import{F as _}from"./Form-fErk-qk_.js";import{M as he}from"./Modal-Bz2VEyQG.js";import{_ as P}from"./index-default-C_maRo4o.js";import{B as Pe}from"./Button-Blq7Z6RX.js";import{I as rt}from"./Input--hQVCRQV.js";import{L as ke}from"./Label-Cq1fb1cd.js";import{U as Re}from"./UserDefinedFields-BkORgl2w.js";import{_ as X}from"./toPropertyKey-hKuLU48H.js";import{_ as le,a as F,b as ee}from"./inherits-D5wXBZoG.js";import{_ as D}from"./createClass-D2z1h_eG.js";import{_ as $}from"./assertThisInitialized-B9jnkVVz.js";import{_ as T}from"./getPrototypeOf-BYVhAdwF.js";import{_ as A}from"./defineProperty-CCxoMnQV.js";import{_ as nt}from"./toArray-D9zoIPho.js";const at="times circle outline",it="check circle outline",ot="red",st="green",fr=o=>{let a=at,r=ot;return o.value&&(a=it,r=st),et.jsx(tt,{color:r,name:a})};function je(o,a){var r=Object.keys(o);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(o);a&&(t=t.filter(function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable})),r.push.apply(r,t)}return r}function Ce(o){for(var a=1;a1&&arguments[1]!==void 0?arguments[1]:{};F(this,o),this.init(a,r)}return D(o,[{key:"init",value:function(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=r||ut,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(r){this.debug=r}},{key:"log",value:function(){for(var r=arguments.length,t=new Array(r),e=0;e1?t-1:0),n=1;n-1?s.replace(/###/g,"."):s}function e(){return!o||typeof o=="string"}for(var n=typeof a!="string"?[].concat(a):a.split(".");n.length>1;){if(e())return{};var i=t(n.shift());!o[i]&&r&&(o[i]=new r),Object.prototype.hasOwnProperty.call(o,i)?o=o[i]:o={}}return e()?{}:{obj:o,k:t(n.shift())}}function Fe(o,a,r){var t=me(o,a,Object),e=t.obj,n=t.k;e[n]=r}function ct(o,a,r,t){var e=me(o,a,Object),n=e.obj,i=e.k;n[i]=n[i]||[],t&&(n[i]=n[i].concat(r)),t||n[i].push(r)}function se(o,a){var r=me(o,a),t=r.obj,e=r.k;if(t)return t[e]}function De(o,a,r){var t=se(o,r);return t!==void 0?t:se(a,r)}function qe(o,a,r){for(var t in a)t!=="__proto__"&&t!=="constructor"&&(t in o?typeof o[t]=="string"||o[t]instanceof String||typeof a[t]=="string"||a[t]instanceof String?r&&(o[t]=a[t]):qe(o[t],a[t],r):o[t]=a[t]);return o}function H(o){return o.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var gt={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function dt(o){return typeof o=="string"?o.replace(/[&<>"'\/]/g,function(a){return gt[a]}):o}var fe=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,pt=[" ",",","?","!",";"];function ht(o,a,r){a=a||"",r=r||"";var t=pt.filter(function(s){return a.indexOf(s)<0&&r.indexOf(s)<0});if(t.length===0)return!0;var e=new RegExp("(".concat(t.map(function(s){return s==="?"?"\\?":s}).join("|"),")")),n=!e.test(o);if(!n){var i=o.indexOf(r);i>0&&!e.test(o.substring(0,i))&&(n=!0)}return n}function Ee(o,a){var r=Object.keys(o);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(o);a&&(t=t.filter(function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable})),r.push.apply(r,t)}return r}function ae(o){for(var a=1;a"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 ze(o,a){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(o){if(o[a])return o[a];for(var t=a.split(r),e=o,n=0;nn+i;)i++,s=t.slice(n,n+i).join(r),u=e[s];if(u===void 0)return;if(u===null)return null;if(a.endsWith(s)){if(typeof u=="string")return u;if(s&&typeof u[s]=="string")return u[s]}var f=t.slice(n+i).join(r);return f?ze(u,f,r):void 0}e=e[t[n]]}return e}}var yt=function(o){le(r,o);var a=vt(r);function r(t){var e,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return F(this,r),e=a.call(this),fe&&U.call($(e)),e.data=t||{},e.options=n,e.options.keySeparator===void 0&&(e.options.keySeparator="."),e.options.ignoreJSONStructure===void 0&&(e.options.ignoreJSONStructure=!0),e}return D(r,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var n=this.options.ns.indexOf(e);n>-1&&this.options.ns.splice(n,1)}},{key:"getResource",value:function(e,n,i){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},u=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,f=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure,c=[e,n];i&&typeof i!="string"&&(c=c.concat(i)),i&&typeof i=="string"&&(c=c.concat(u?i.split(u):i)),e.indexOf(".")>-1&&(c=e.split("."));var l=se(this.data,c);return l||!f||typeof i!="string"?l:ze(this.data&&this.data[e]&&this.data[e][n],i,u)}},{key:"addResource",value:function(e,n,i,s){var u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},f=this.options.keySeparator;f===void 0&&(f=".");var c=[e,n];i&&(c=c.concat(f?i.split(f):i)),e.indexOf(".")>-1&&(c=e.split("."),s=n,n=c[1]),this.addNamespaces(n),Fe(this.data,c,s),u.silent||this.emit("added",e,n,i,s)}},{key:"addResources",value:function(e,n,i){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var u in i)(typeof i[u]=="string"||Object.prototype.toString.apply(i[u])==="[object Array]")&&this.addResource(e,n,u,i[u],{silent:!0});s.silent||this.emit("added",e,n,i)}},{key:"addResourceBundle",value:function(e,n,i,s,u){var f=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},c=[e,n];e.indexOf(".")>-1&&(c=e.split("."),s=i,i=n,n=c[1]),this.addNamespaces(n);var l=se(this.data,c)||{};s?qe(l,i,u):l=ae(ae({},l),i),Fe(this.data,c,l),f.silent||this.emit("added",e,n,i)}},{key:"removeResourceBundle",value:function(e,n){this.hasResourceBundle(e,n)&&delete this.data[e][n],this.removeNamespaces(n),this.emit("removed",e,n)}},{key:"hasResourceBundle",value:function(e,n){return this.getResource(e,n)!==void 0}},{key:"getResourceBundle",value:function(e,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?ae(ae({},{}),this.getResource(e,n)):this.getResource(e,n)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"hasLanguageSomeTranslations",value:function(e){var n=this.getDataByLanguage(e),i=n&&Object.keys(n)||[];return!!i.find(function(s){return n[s]&&Object.keys(n[s]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),r}(U),We={processors:{},addPostProcessor:function(a){this.processors[a.name]=a},handle:function(a,r,t,e,n){var i=this;return a.forEach(function(s){i.processors[s]&&(r=i.processors[s].process(r,t,e,n))}),r}};function _e(o,a){var r=Object.keys(o);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(o);a&&(t=t.filter(function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable})),r.push.apply(r,t)}return r}function S(o){for(var a=1;a"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}}var Ie={},Te=function(o){le(r,o);var a=bt(r);function r(t){var e,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return F(this,r),e=a.call(this),fe&&U.call($(e)),ft(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,$(e)),e.options=n,e.options.keySeparator===void 0&&(e.options.keySeparator="."),e.logger=N.create("translator"),e}return D(r,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(e==null)return!1;var i=this.resolve(e,n);return i&&i.res!==void 0}},{key:"extractFromKey",value:function(e,n){var i=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;i===void 0&&(i=":");var s=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,u=n.ns||this.options.defaultNS||[],f=i&&e.indexOf(i)>-1,c=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!ht(e,i,s);if(f&&!c){var l=e.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:e,namespaces:u};var g=e.split(i);(i!==s||i===s&&this.options.ns.indexOf(g[0])>-1)&&(u=g.shift()),e=g.join(s)}return typeof u=="string"&&(u=[u]),{key:e,namespaces:u}}},{key:"translate",value:function(e,n,i){var s=this;if(X(n)!=="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),n||(n={}),e==null)return"";Array.isArray(e)||(e=[String(e)]);var u=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,f=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,c=this.extractFromKey(e[e.length-1],n),l=c.key,g=c.namespaces,d=g[g.length-1],m=n.lng||this.language,y=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(m&&m.toLowerCase()==="cimode"){if(y){var v=n.nsSeparator||this.options.nsSeparator;return u?(p.res="".concat(d).concat(v).concat(l),p):"".concat(d).concat(v).concat(l)}return u?(p.res=l,p):l}var p=this.resolve(e,n),h=p&&p.res,O=p&&p.usedKey||l,b=p&&p.exactUsedKey||l,L=Object.prototype.toString.apply(h),E=["[object Number]","[object Function]","[object RegExp]"],M=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,q=!this.i18nFormat||this.i18nFormat.handleAsObject,z=typeof h!="string"&&typeof h!="boolean"&&typeof h!="number";if(q&&h&&z&&E.indexOf(L)<0&&!(typeof M=="string"&&L==="[object Array]")){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var K=this.options.returnedObjectHandler?this.options.returnedObjectHandler(O,h,S(S({},n),{},{ns:g})):"key '".concat(l," (").concat(this.language,")' returned an object instead of string.");return u?(p.res=K,p):K}if(f){var ye=L==="[object Array]",te=ye?[]:{},Ge=ye?b:O;for(var B in h)if(Object.prototype.hasOwnProperty.call(h,B)){var be="".concat(Ge).concat(f).concat(B);te[B]=this.translate(be,S(S({},n),{joinArrays:!1,ns:g})),te[B]===be&&(te[B]=h[B])}h=te}}else if(q&&typeof M=="string"&&L==="[object Array]")h=h.join(M),h&&(h=this.extendTranslation(h,e,n,i));else{var re=!1,W=!1,Oe=n.count!==void 0&&typeof n.count!="string",ce=r.hasDefaultValue(n),Qe=Oe?this.pluralResolver.getSuffix(m,n.count,n):"",Y=n["defaultValue".concat(Qe)]||n.defaultValue;!this.isValidLookup(h)&&ce&&(re=!0,h=Y),this.isValidLookup(h)||(W=!0,h=l);var Ze=n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,Xe=Ze&&W?void 0:h,G=ce&&Y!==h&&this.options.updateMissing;if(W||re||G){if(this.logger.log(G?"updateKey":"missingKey",m,d,l,G?Y:h),f){var xe=this.resolve(l,S(S({},n),{},{keySeparator:!1}));xe&&xe.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var Q=[],ne=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&ne&&ne[0])for(var ge=0;ge1&&arguments[1]!==void 0?arguments[1]:{},s,u,f,c,l;return typeof e=="string"&&(e=[e]),e.forEach(function(g){if(!n.isValidLookup(s)){var d=n.extractFromKey(g,i),m=d.key;u=m;var y=d.namespaces;n.options.fallbackNS&&(y=y.concat(n.options.fallbackNS));var v=i.count!==void 0&&typeof i.count!="string",p=v&&!i.ordinal&&i.count===0&&n.pluralResolver.shouldUseIntlApi(),h=i.context!==void 0&&(typeof i.context=="string"||typeof i.context=="number")&&i.context!=="",O=i.lngs?i.lngs:n.languageUtils.toResolveHierarchy(i.lng||n.language,i.fallbackLng);y.forEach(function(b){n.isValidLookup(s)||(l=b,!Ie["".concat(O[0],"-").concat(b)]&&n.utils&&n.utils.hasLoadedNamespace&&!n.utils.hasLoadedNamespace(l)&&(Ie["".concat(O[0],"-").concat(b)]=!0,n.logger.warn('key "'.concat(u,'" for languages "').concat(O.join(", "),`" won't get resolved as namespace "`).concat(l,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),O.forEach(function(L){if(!n.isValidLookup(s)){c=L;var E=[m];if(n.i18nFormat&&n.i18nFormat.addLookupKeys)n.i18nFormat.addLookupKeys(E,m,L,b,i);else{var M;v&&(M=n.pluralResolver.getSuffix(L,i.count,i));var q="".concat(n.options.pluralSeparator,"zero");if(v&&(E.push(m+M),p&&E.push(m+q)),h){var z="".concat(m).concat(n.options.contextSeparator).concat(i.context);E.push(z),v&&(E.push(z+M),p&&E.push(z+q))}}for(var K;K=E.pop();)n.isValidLookup(s)||(f=K,s=n.getResource(L,b,K,i))}}))})}}),{res:s,usedKey:u,exactUsedKey:f,usedLng:c,usedNS:l}}},{key:"isValidLookup",value:function(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}},{key:"getResource",value:function(e,n,i){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,n,i,s):this.resourceStore.getResource(e,n,i,s)}}],[{key:"hasDefaultValue",value:function(e){var n="defaultValue";for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&n===i.substring(0,n.length)&&e[i]!==void 0)return!0;return!1}}]),r}(U);function ve(o){return o.charAt(0).toUpperCase()+o.slice(1)}var xt=function(){function o(a){F(this,o),this.options=a,this.supportedLngs=this.options.supportedLngs||!1,this.logger=N.create("languageUtils")}return D(o,[{key:"getScriptPartFromCode",value:function(r){if(!r||r.indexOf("-")<0)return null;var t=r.split("-");return t.length===2||(t.pop(),t[t.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(t.join("-"))}},{key:"getLanguagePartFromCode",value:function(r){if(!r||r.indexOf("-")<0)return r;var t=r.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(r){if(typeof r=="string"&&r.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],e=r.split("-");return this.options.lowerCaseLng?e=e.map(function(n){return n.toLowerCase()}):e.length===2?(e[0]=e[0].toLowerCase(),e[1]=e[1].toUpperCase(),t.indexOf(e[1].toLowerCase())>-1&&(e[1]=ve(e[1].toLowerCase()))):e.length===3&&(e[0]=e[0].toLowerCase(),e[1].length===2&&(e[1]=e[1].toUpperCase()),e[0]!=="sgn"&&e[2].length===2&&(e[2]=e[2].toUpperCase()),t.indexOf(e[1].toLowerCase())>-1&&(e[1]=ve(e[1].toLowerCase())),t.indexOf(e[2].toLowerCase())>-1&&(e[2]=ve(e[2].toLowerCase()))),e.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?r.toLowerCase():r}},{key:"isSupportedCode",value:function(r){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(r=this.getLanguagePartFromCode(r)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(r)>-1}},{key:"getBestMatchFromCodes",value:function(r){var t=this;if(!r)return null;var e;return r.forEach(function(n){if(!e){var i=t.formatLanguageCode(n);(!t.options.supportedLngs||t.isSupportedCode(i))&&(e=i)}}),!e&&this.options.supportedLngs&&r.forEach(function(n){if(!e){var i=t.getLanguagePartFromCode(n);if(t.isSupportedCode(i))return e=i;e=t.options.supportedLngs.find(function(s){if(s.indexOf(i)===0)return s})}}),e||(e=this.getFallbackCodes(this.options.fallbackLng)[0]),e}},{key:"getFallbackCodes",value:function(r,t){if(!r)return[];if(typeof r=="function"&&(r=r(t)),typeof r=="string"&&(r=[r]),Object.prototype.toString.apply(r)==="[object Array]")return r;if(!t)return r.default||[];var e=r[t];return e||(e=r[this.getScriptPartFromCode(t)]),e||(e=r[this.formatLanguageCode(t)]),e||(e=r[this.getLanguagePartFromCode(t)]),e||(e=r.default),e||[]}},{key:"toResolveHierarchy",value:function(r,t){var e=this,n=this.getFallbackCodes(t||this.options.fallbackLng||[],r),i=[],s=function(f){f&&(e.isSupportedCode(f)?i.push(f):e.logger.warn("rejecting language code not found in supportedLngs: ".concat(f)))};return typeof r=="string"&&r.indexOf("-")>-1?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(r)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(r)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(r))):typeof r=="string"&&s(this.formatLanguageCode(r)),n.forEach(function(u){i.indexOf(u)<0&&s(e.formatLanguageCode(u))}),i}}]),o}(),St=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],wt={1:function(a){return+(a>1)},2:function(a){return+(a!=1)},3:function(a){return 0},4:function(a){return a%10==1&&a%100!=11?0:a%10>=2&&a%10<=4&&(a%100<10||a%100>=20)?1:2},5:function(a){return a==0?0:a==1?1:a==2?2:a%100>=3&&a%100<=10?3:a%100>=11?4:5},6:function(a){return a==1?0:a>=2&&a<=4?1:2},7:function(a){return a==1?0:a%10>=2&&a%10<=4&&(a%100<10||a%100>=20)?1:2},8:function(a){return a==1?0:a==2?1:a!=8&&a!=11?2:3},9:function(a){return+(a>=2)},10:function(a){return a==1?0:a==2?1:a<7?2:a<11?3:4},11:function(a){return a==1||a==11?0:a==2||a==12?1:a>2&&a<20?2:3},12:function(a){return+(a%10!=1||a%100==11)},13:function(a){return+(a!==0)},14:function(a){return a==1?0:a==2?1:a==3?2:3},15:function(a){return a%10==1&&a%100!=11?0:a%10>=2&&(a%100<10||a%100>=20)?1:2},16:function(a){return a%10==1&&a%100!=11?0:a!==0?1:2},17:function(a){return a==1||a%10==1&&a%100!=11?0:1},18:function(a){return a==0?0:a==1?1:2},19:function(a){return a==1?0:a==0||a%100>1&&a%100<11?1:a%100>10&&a%100<20?2:3},20:function(a){return a==1?0:a==0||a%100>0&&a%100<20?1:2},21:function(a){return a%100==1?1:a%100==2?2:a%100==3||a%100==4?3:0},22:function(a){return a==1?0:a==2?1:(a<0||a>10)&&a%10==0?2:3}},Lt=["v1","v2","v3"],Ue={zero:0,one:1,two:2,few:3,many:4,other:5};function Pt(){var o={};return St.forEach(function(a){a.lngs.forEach(function(r){o[r]={numbers:a.nr,plurals:wt[a.fc]}})}),o}var kt=function(){function o(a){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};F(this,o),this.languageUtils=a,this.options=r,this.logger=N.create("pluralResolver"),(!this.options.compatibilityJSON||this.options.compatibilityJSON==="v4")&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=Pt()}return D(o,[{key:"addRule",value:function(r,t){this.rules[r]=t}},{key:"getRule",value:function(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(r,{type:t.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[r]||this.rules[this.languageUtils.getLanguagePartFromCode(r)]}},{key:"needsPlural",value:function(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=this.getRule(r,t);return this.shouldUseIntlApi()?e&&e.resolvedOptions().pluralCategories.length>1:e&&e.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(r,t){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(r,e).map(function(n){return"".concat(t).concat(n)})}},{key:"getSuffixes",value:function(r){var t=this,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=this.getRule(r,e);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort(function(i,s){return Ue[i]-Ue[s]}).map(function(i){return"".concat(t.options.prepend).concat(i)}):n.numbers.map(function(i){return t.getSuffix(r,i,e)}):[]}},{key:"getSuffix",value:function(r,t){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=this.getRule(r,e);return n?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(n.select(t)):this.getSuffixRetroCompatible(n,t):(this.logger.warn("no plural rule found for: ".concat(r)),"")}},{key:"getSuffixRetroCompatible",value:function(r,t){var e=this,n=r.noAbs?r.plurals(t):r.plurals(Math.abs(t)),i=r.numbers[n];this.options.simplifyPluralSuffix&&r.numbers.length===2&&r.numbers[0]===1&&(i===2?i="plural":i===1&&(i=""));var s=function(){return e.options.prepend&&i.toString()?e.options.prepend+i.toString():i.toString()};return this.options.compatibilityJSON==="v1"?i===1?"":typeof i=="number"?"_plural_".concat(i.toString()):s():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&r.numbers.length===2&&r.numbers[0]===1?s():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}},{key:"shouldUseIntlApi",value:function(){return!Lt.includes(this.options.compatibilityJSON)}}]),o}();function Ae(o,a){var r=Object.keys(o);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(o);a&&(t=t.filter(function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable})),r.push.apply(r,t)}return r}function k(o){for(var a=1;a0&&arguments[0]!==void 0?arguments[0]:{};F(this,o),this.logger=N.create("interpolator"),this.options=a,this.format=a.interpolation&&a.interpolation.format||function(r){return r},this.init(a)}return D(o,[{key:"init",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};r.interpolation||(r.interpolation={escapeValue:!0});var t=r.interpolation;this.escape=t.escape!==void 0?t.escape:dt,this.escapeValue=t.escapeValue!==void 0?t.escapeValue:!0,this.useRawValueToEscape=t.useRawValueToEscape!==void 0?t.useRawValueToEscape:!1,this.prefix=t.prefix?H(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?H(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?H(t.nestingPrefix):t.nestingPrefixEscaped||H("$t("),this.nestingSuffix=t.nestingSuffix?H(t.nestingSuffix):t.nestingSuffixEscaped||H(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=t.alwaysFormat!==void 0?t.alwaysFormat:!1,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var r="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(r,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var e="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(e,"g")}},{key:"interpolate",value:function(r,t,e,n){var i=this,s,u,f,c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function l(v){return v.replace(/\$/g,"$$$$")}var g=function(p){if(p.indexOf(i.formatSeparator)<0){var h=De(t,c,p);return i.alwaysFormat?i.format(h,void 0,e,k(k(k({},n),t),{},{interpolationkey:p})):h}var O=p.split(i.formatSeparator),b=O.shift().trim(),L=O.join(i.formatSeparator).trim();return i.format(De(t,c,b),L,e,k(k(k({},n),t),{},{interpolationkey:b}))};this.resetRegExp();var d=n&&n.missingInterpolationHandler||this.options.missingInterpolationHandler,m=n&&n.interpolation&&n.interpolation.skipOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,y=[{regex:this.regexpUnescape,safeValue:function(p){return l(p)}},{regex:this.regexp,safeValue:function(p){return i.escapeValue?l(i.escape(p)):l(p)}}];return y.forEach(function(v){for(f=0;s=v.regex.exec(r);){var p=s[1].trim();if(u=g(p),u===void 0)if(typeof d=="function"){var h=d(r,s,n);u=typeof h=="string"?h:""}else if(n&&n.hasOwnProperty(p))u="";else if(m){u=s[0];continue}else i.logger.warn("missed to pass in variable ".concat(p," for interpolating ").concat(r)),u="";else typeof u!="string"&&!i.useRawValueToEscape&&(u=Ne(u));var O=v.safeValue(u);if(r=r.replace(s[0],O),m?(v.regex.lastIndex+=u.length,v.regex.lastIndex-=s[0].length):v.regex.lastIndex=0,f++,f>=i.maxReplaces)break}}),r}},{key:"nest",value:function(r,t){var e=this,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i,s,u=k({},n);u.applyPostProcessor=!1,delete u.defaultValue;function f(d,m){var y=this.nestingOptionsSeparator;if(d.indexOf(y)<0)return d;var v=d.split(new RegExp("".concat(y,"[ ]*{"))),p="{".concat(v[1]);d=v[0],p=this.interpolate(p,u);var h=p.match(/'/g),O=p.match(/"/g);(h&&h.length%2===0&&!O||O.length%2!==0)&&(p=p.replace(/'/g,'"'));try{u=JSON.parse(p),m&&(u=k(k({},m),u))}catch(b){return this.logger.warn("failed parsing options string in nesting for key ".concat(d),b),"".concat(d).concat(y).concat(p)}return delete u.defaultValue,d}for(;i=this.nestingRegexp.exec(r);){var c=[],l=!1;if(i[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(i[1])){var g=i[1].split(this.formatSeparator).map(function(d){return d.trim()});i[1]=g.shift(),c=g,l=!0}if(s=t(f.call(this,i[1].trim(),u),u),s&&i[0]===r&&typeof s!="string")return s;typeof s!="string"&&(s=Ne(s)),s||(this.logger.warn("missed to resolve ".concat(i[1]," for nesting ").concat(r)),s=""),l&&(s=c.reduce(function(d,m){return e.format(d,m,n.lng,k(k({},n),{},{interpolationkey:i[1].trim()}))},s.trim())),r=r.replace(i[0],s),this.regexp.lastIndex=0}return r}}]),o}();function Me(o,a){var r=Object.keys(o);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(o);a&&(t=t.filter(function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable})),r.push.apply(r,t)}return r}function I(o){for(var a=1;a-1){var t=o.split("(");a=t[0].toLowerCase().trim();var e=t[1].substring(0,t[1].length-1);if(a==="currency"&&e.indexOf(":")<0)r.currency||(r.currency=e.trim());else if(a==="relativetime"&&e.indexOf(":")<0)r.range||(r.range=e.trim());else{var n=e.split(";");n.forEach(function(i){if(i){var s=i.split(":"),u=nt(s),f=u[0],c=u.slice(1),l=c.join(":").trim().replace(/^'+|'+$/g,"");r[f.trim()]||(r[f.trim()]=l),l==="false"&&(r[f.trim()]=!1),l==="true"&&(r[f.trim()]=!0),isNaN(l)||(r[f.trim()]=parseInt(l,10))}})}}return{formatName:a,formatOptions:r}}function J(o){var a={};return function(t,e,n){var i=e+JSON.stringify(n),s=a[i];return s||(s=o(e,n),a[i]=s),s(t)}}var Ct=function(){function o(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};F(this,o),this.logger=N.create("formatter"),this.options=a,this.formats={number:J(function(r,t){var e=new Intl.NumberFormat(r,t);return function(n){return e.format(n)}}),currency:J(function(r,t){var e=new Intl.NumberFormat(r,I(I({},t),{},{style:"currency"}));return function(n){return e.format(n)}}),datetime:J(function(r,t){var e=new Intl.DateTimeFormat(r,I({},t));return function(n){return e.format(n)}}),relativetime:J(function(r,t){var e=new Intl.RelativeTimeFormat(r,I({},t));return function(n){return e.format(n,t.range||"day")}}),list:J(function(r,t){var e=new Intl.ListFormat(r,I({},t));return function(n){return e.format(n)}})},this.init(a)}return D(o,[{key:"init",value:function(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}},e=t.interpolation;this.formatSeparator=e.formatSeparator?e.formatSeparator:e.formatSeparator||","}},{key:"add",value:function(r,t){this.formats[r.toLowerCase().trim()]=t}},{key:"addCached",value:function(r,t){this.formats[r.toLowerCase().trim()]=J(t)}},{key:"format",value:function(r,t,e,n){var i=this,s=t.split(this.formatSeparator),u=s.reduce(function(f,c){var l=jt(c),g=l.formatName,d=l.formatOptions;if(i.formats[g]){var m=f;try{var y=n&&n.formatParams&&n.formatParams[n.interpolationkey]||{},v=y.locale||y.lng||n.locale||n.lng||e;m=i.formats[g](f,v,I(I(I({},d),n),y))}catch(p){i.logger.warn(p)}return m}else i.logger.warn("there was no format function for ".concat(g));return f},r);return u}}]),o}();function $e(o,a){var r=Object.keys(o);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(o);a&&(t=t.filter(function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable})),r.push.apply(r,t)}return r}function Ke(o){for(var a=1;a"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 Dt(o,a){o.pending[a]!==void 0&&(delete o.pending[a],o.pendingCount--)}var Et=function(o){le(r,o);var a=Nt(r);function r(t,e,n){var i,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return F(this,r),i=a.call(this),fe&&U.call($(i)),i.backend=t,i.store=e,i.services=n,i.languageUtils=n.languageUtils,i.options=s,i.logger=N.create("backendConnector"),i.waitingReads=[],i.maxParallelReads=s.maxParallelReads||10,i.readingCalls=0,i.maxRetries=s.maxRetries>=0?s.maxRetries:5,i.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(n,s.backend,s),i}return D(r,[{key:"queueLoad",value:function(e,n,i,s){var u=this,f={},c={},l={},g={};return e.forEach(function(d){var m=!0;n.forEach(function(y){var v="".concat(d,"|").concat(y);!i.reload&&u.store.hasResourceBundle(d,y)?u.state[v]=2:u.state[v]<0||(u.state[v]===1?c[v]===void 0&&(c[v]=!0):(u.state[v]=1,m=!1,c[v]===void 0&&(c[v]=!0),f[v]===void 0&&(f[v]=!0),g[y]===void 0&&(g[y]=!0)))}),m||(l[d]=!0)}),(Object.keys(f).length||Object.keys(c).length)&&this.queue.push({pending:c,pendingCount:Object.keys(c).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(f),pending:Object.keys(c),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(g)}}},{key:"loaded",value:function(e,n,i){var s=e.split("|"),u=s[0],f=s[1];n&&this.emit("failedLoading",u,f,n),i&&this.store.addResourceBundle(u,f,i),this.state[e]=n?-1:2;var c={};this.queue.forEach(function(l){ct(l.loaded,[u],f),Dt(l,e),n&&l.errors.push(n),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(function(g){c[g]||(c[g]={});var d=l.loaded[g];d.length&&d.forEach(function(m){c[g][m]===void 0&&(c[g][m]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",c),this.queue=this.queue.filter(function(l){return!l.done})}},{key:"read",value:function(e,n,i){var s=this,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,f=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,c=arguments.length>5?arguments[5]:void 0;if(!e.length)return c(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:n,fcName:i,tried:u,wait:f,callback:c});return}return this.readingCalls++,this.backend[i](e,n,function(l,g){if(s.readingCalls--,s.waitingReads.length>0){var d=s.waitingReads.shift();s.read(d.lng,d.ns,d.fcName,d.tried,d.wait,d.callback)}if(l&&g&&u2&&arguments[2]!==void 0?arguments[2]:{},u=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),u&&u();typeof e=="string"&&(e=this.languageUtils.toResolveHierarchy(e)),typeof n=="string"&&(n=[n]);var f=this.queueLoad(e,n,s,u);if(!f.toLoad.length)return f.pending.length||u(),null;f.toLoad.forEach(function(c){i.loadOne(c)})}},{key:"load",value:function(e,n,i){this.prepareLoading(e,n,{},i)}},{key:"reload",value:function(e,n,i){this.prepareLoading(e,n,{reload:!0},i)}},{key:"loadOne",value:function(e){var n=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",s=e.split("|"),u=s[0],f=s[1];this.read(u,f,"read",void 0,void 0,function(c,l){c&&n.logger.warn("".concat(i,"loading namespace ").concat(f," for language ").concat(u," failed"),c),!c&&l&&n.logger.log("".concat(i,"loaded namespace ").concat(f," for language ").concat(u),l),n.loaded(e,c,l)})}},{key:"saveMissing",value:function(e,n,i,s,u){var f=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn('did not save key "'.concat(i,'" as the namespace "').concat(n,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}i==null||i===""||(this.backend&&this.backend.create&&this.backend.create(e,n,i,s,null,Ke(Ke({},f),{},{isUpdate:u})),!(!e||!e[0])&&this.store.addResource(e[0],n,i,s))}}]),r}(U);function _t(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(a){var r={};if(X(a[1])==="object"&&(r=a[1]),typeof a[1]=="string"&&(r.defaultValue=a[1]),typeof a[2]=="string"&&(r.tDescription=a[2]),X(a[2])==="object"||X(a[3])==="object"){var t=a[3]||a[2];Object.keys(t).forEach(function(e){r[e]=t[e]})}return r},interpolation:{escapeValue:!0,format:function(a,r,t,e){return a},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function Be(o){return typeof o.ns=="string"&&(o.ns=[o.ns]),typeof o.fallbackLng=="string"&&(o.fallbackLng=[o.fallbackLng]),typeof o.fallbackNS=="string"&&(o.fallbackNS=[o.fallbackNS]),o.supportedLngs&&o.supportedLngs.indexOf("cimode")<0&&(o.supportedLngs=o.supportedLngs.concat(["cimode"])),o}function Ve(o,a){var r=Object.keys(o);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(o);a&&(t=t.filter(function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable})),r.push.apply(r,t)}return r}function j(o){for(var a=1;a"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 ie(){}function Ut(o){var a=Object.getOwnPropertyNames(Object.getPrototypeOf(o));a.forEach(function(r){typeof o[r]=="function"&&(o[r]=o[r].bind(o))})}var ue=function(o){le(r,o);var a=It(r);function r(){var t,e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(F(this,r),t=a.call(this),fe&&U.call($(t)),t.options=Be(e),t.services={},t.logger=N,t.modules={external:[]},Ut($(t)),n&&!t.isInitialized&&!e.isClone){if(!t.options.initImmediate)return t.init(e,n),ee(t,$(t));setTimeout(function(){t.init(e,n)},0)}return t}return D(r,[{key:"init",value:function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;typeof n=="function"&&(i=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(typeof n.ns=="string"?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));var s=_t();this.options=j(j(j({},s),this.options),Be(n)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=j(j({},s.interpolation),this.options.interpolation)),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);function u(p){return p?typeof p=="function"?new p:p:null}if(!this.options.isClone){this.modules.logger?N.init(u(this.modules.logger),this.options):N.init(null,this.options);var f;this.modules.formatter?f=this.modules.formatter:typeof Intl<"u"&&(f=Ct);var c=new xt(this.options);this.store=new yt(this.options.resources,this.options);var l=this.services;l.logger=N,l.resourceStore=this.store,l.languageUtils=c,l.pluralResolver=new kt(c,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),f&&(!this.options.interpolation.format||this.options.interpolation.format===s.interpolation.format)&&(l.formatter=u(f),l.formatter.init(l,this.options),this.options.interpolation.format=l.formatter.format.bind(l.formatter)),l.interpolator=new Rt(this.options),l.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},l.backendConnector=new Et(u(this.modules.backend),l.resourceStore,l,this.options),l.backendConnector.on("*",function(p){for(var h=arguments.length,O=new Array(h>1?h-1:0),b=1;b1?h-1:0),b=1;b0&&g[0]!=="dev"&&(this.options.lng=g[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined");var d=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];d.forEach(function(p){e[p]=function(){var h;return(h=e.store)[p].apply(h,arguments)}});var m=["addResource","addResources","addResourceBundle","removeResourceBundle"];m.forEach(function(p){e[p]=function(){var h;return(h=e.store)[p].apply(h,arguments),e}});var y=Z(),v=function(){var h=function(b,L){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),y.resolve(L),i(b,L)};if(e.languages&&e.options.compatibilityAPI!=="v1"&&!e.isInitialized)return h(null,e.t.bind(e));e.changeLanguage(e.options.lng,h)};return this.options.resources||!this.options.initImmediate?v():setTimeout(v,0),y}},{key:"loadResources",value:function(e){var n=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ie,s=i,u=typeof e=="string"?e:this.language;if(typeof e=="function"&&(s=e),!this.options.resources||this.options.partialBundledLanguages){if(u&&u.toLowerCase()==="cimode")return s();var f=[],c=function(d){if(d){var m=n.services.languageUtils.toResolveHierarchy(d);m.forEach(function(y){f.indexOf(y)<0&&f.push(y)})}};if(u)c(u);else{var l=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);l.forEach(function(g){return c(g)})}this.options.preload&&this.options.preload.forEach(function(g){return c(g)}),this.services.backendConnector.load(f,this.options.ns,function(g){!g&&!n.resolvedLanguage&&n.language&&n.setResolvedLanguage(n.language),s(g)})}else s(null)}},{key:"reloadResources",value:function(e,n,i){var s=Z();return e||(e=this.languages),n||(n=this.options.ns),i||(i=ie),this.services.backendConnector.reload(e,n,function(u){s.resolve(),i(u)}),s}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&We.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}},{key:"setResolvedLanguage",value:function(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-1))for(var n=0;n-1)&&this.store.hasLanguageSomeTranslations(i)){this.resolvedLanguage=i;break}}}},{key:"changeLanguage",value:function(e,n){var i=this;this.isLanguageChangingTo=e;var s=Z();this.emit("languageChanging",e);var u=function(g){i.language=g,i.languages=i.services.languageUtils.toResolveHierarchy(g),i.resolvedLanguage=void 0,i.setResolvedLanguage(g)},f=function(g,d){d?(u(d),i.translator.changeLanguage(d),i.isLanguageChangingTo=void 0,i.emit("languageChanged",d),i.logger.log("languageChanged",d)):i.isLanguageChangingTo=void 0,s.resolve(function(){return i.t.apply(i,arguments)}),n&&n(g,function(){return i.t.apply(i,arguments)})},c=function(g){!e&&!g&&i.services.languageDetector&&(g=[]);var d=typeof g=="string"?g:i.services.languageUtils.getBestMatchFromCodes(g);d&&(i.language||u(d),i.translator.language||i.translator.changeLanguage(d),i.services.languageDetector&&i.services.languageDetector.cacheUserLanguage(d)),i.loadResources(d,function(m){f(m,d)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?c(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(c):c(e),s}},{key:"getFixedT",value:function(e,n,i){var s=this,u=function f(c,l){var g;if(X(l)!=="object"){for(var d=arguments.length,m=new Array(d>2?d-2:0),y=2;y1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var s=this.resolvedLanguage||this.languages[0],u=this.options?this.options.fallbackLng:!1,f=this.languages[this.languages.length-1];if(s.toLowerCase()==="cimode")return!0;var c=function(d,m){var y=n.services.backendConnector.state["".concat(d,"|").concat(m)];return y===-1||y===2};if(i.precheck){var l=i.precheck(this,c);if(l!==void 0)return l}return!!(this.hasResourceBundle(s,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||c(s,e)&&(!u||c(f,e)))}},{key:"loadNamespaces",value:function(e,n){var i=this,s=Z();return this.options.ns?(typeof e=="string"&&(e=[e]),e.forEach(function(u){i.options.ns.indexOf(u)<0&&i.options.ns.push(u)}),this.loadResources(function(u){s.resolve(),n&&n(u)}),s):(n&&n(),Promise.resolve())}},{key:"loadLanguages",value:function(e,n){var i=Z();typeof e=="string"&&(e=[e]);var s=this.options.preload||[],u=e.filter(function(f){return s.indexOf(f)<0});return u.length?(this.options.preload=s.concat(u),this.loadResources(function(f){i.resolve(),n&&n(f)}),i):(n&&n(),Promise.resolve())}},{key:"dir",value:function(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";var n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"];return n.indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ie,s=j(j(j({},this.options),n),{isClone:!0}),u=new r(s);(n.debug!==void 0||n.prefix!==void 0)&&(u.logger=u.logger.clone(n));var f=["store","services","language"];return f.forEach(function(c){u[c]=e[c]}),u.services=j({},this.services),u.services.utils={hasLoadedNamespace:u.hasLoadedNamespace.bind(u)},u.translator=new Te(u.services,u.options),u.translator.on("*",function(c){for(var l=arguments.length,g=new Array(l>1?l-1:0),d=1;d0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;return new ue(o,a)});var w=ue.createInstance();w.createInstance=ue.createInstance;w.createInstance;w.init;w.loadResources;w.reloadResources;w.use;w.changeLanguage;w.getFixedT;w.t;w.exists;w.setDefaultNamespace;w.hasLoadedNamespace;w.loadNamespaces;w.loadLanguages;const At={labels:{allowMultiple:"Allow multiple",dataType:"Data type",name:"Name",order:"Order",required:"Required",searchable:"Searchable",table:"Table"},title:{add:"Add User Defined Field",edit:"Edit User Defined Field"}},Mt={errors:{numeric:"{{name}} must be numeric"}},$t={columns:{dataType:"Data type",name:"Name",order:"Order",required:"Required",table:"Table",uuid:"Identifier"}},Kt={columns:{dataType:"Data type",name:"Name",order:"Order",required:"Required",table:"Table",uuid:"Identifier"}},Bt={UserDefinedFieldModal:At,UserDefinedFields:Mt,UserDefinedFieldsEmbeddedList:$t,UserDefinedFieldsList:Kt},Vt={en:{translation:Bt}},R=w.createInstance();R.init({debug:!0,fallbackLng:"en",lng:"en",interpolation:{escapeValue:!1},resources:Vt});const Ye=o=>{const[a,r]=C.useState(P.map(o.options,s=>({value:s}))),t=C.useCallback(()=>{r(s=>[...s,{new:!0}])},[]),e=C.useCallback(s=>{r(u=>P.filter(u,(f,c)=>c!==s))},[]),n=C.useCallback(s=>{r(u=>P.map(u,(f,c)=>s!==c?f:{...f,new:!1}))},[a]),i=C.useCallback((s,u,{value:f})=>{r(c=>P.map(c,(l,g)=>g!==s?l:{...l,value:f}))},[]);return C.useEffect(()=>{const s=P.filter(a,u=>!u.new);o.onChange(P.pluck(s,"value"))},[a]),x.jsxs("div",{className:"user-defined-field-options",children:[x.jsx(Pe,{basic:!0,icon:"plus",onClick:t,type:"button"}),P.map(a,(s,u)=>x.jsxs(x.Fragment,{children:[s.new&&x.jsxs(ke,{children:[x.jsx(rt,{autoFocus:!0,onChange:i.bind(void 0,u),value:s.value}),x.jsx(Pe,{basic:!0,color:"green",icon:"checkmark",onClick:n.bind(void 0,u),type:"button",size:"tiny"})]}),!s.new&&x.jsx(ke,{content:s.value,onRemove:e.bind(void 0,u)})]}))]})};Ye.__docgenInfo={description:"",methods:[],displayName:"UserDefinedFieldOptions",props:{options:{required:!0,flowType:{name:"Array",elements:[{name:"string"}],raw:"Array"},description:""},onChange:{required:!0,flowType:{name:"signature",type:"function",raw:"(options: Array) => void",signature:{arguments:[{name:"options",type:{name:"Array",elements:[{name:"string"}],raw:"Array"}}],return:{name:"void"}}},description:""}}};const He={select:"Select"},Ht=o=>{const[a,r]=C.useState([]),[t,e]=C.useState([]),n=C.useCallback(i=>P.map(i,s=>({key:s,value:s,text:s})),[]);return C.useEffect(()=>{o.hideTable||Re.fetchTables().then(({data:i})=>e(n(i.tables))),Re.fetchDataTypes().then(({data:i})=>r(n(i.data_types)))},[]),x.jsxs(he,{as:_,centered:!1,open:!0,children:[x.jsx(he.Header,{content:o.item.id?R.t("UserDefinedFieldModal.title.edit"):R.t("UserDefinedFieldModal.title.add")}),x.jsxs(he.Content,{children:[!o.hideTable&&x.jsx(_.Dropdown,{clearable:!0,error:o.isError("table_name"),label:R.t("UserDefinedFieldModal.labels.table"),onChange:o.onTextInputChange.bind(void 0,"table_name"),options:t,required:o.isRequired("table_name"),selection:!0,selectOnBlur:!1,value:o.item.table_name||""}),x.jsx(_.Input,{error:o.isError("column_name"),label:R.t("UserDefinedFieldModal.labels.name"),onChange:o.onTextInputChange.bind(void 0,"column_name"),required:o.isRequired("column_name"),value:o.item.column_name||""}),x.jsx(_.Dropdown,{clearable:!0,error:o.isError("data_type"),label:R.t("UserDefinedFieldModal.labels.dataType"),onChange:o.onTextInputChange.bind(void 0,"data_type"),options:a,required:o.isRequired("data_type"),selection:!0,selectOnBlur:!1,value:o.item.data_type||""}),x.jsx(_.Input,{error:o.isError("order"),label:R.t("UserDefinedFieldModal.labels.order"),onChange:o.onTextInputChange.bind(void 0,"order"),required:o.isRequired("oder"),value:o.item.order||0,type:"number"}),x.jsxs(_.Group,{children:[x.jsx(_.Checkbox,{error:o.isError("required"),checked:o.item.required,label:R.t("UserDefinedFieldModal.labels.required"),onChange:o.onCheckboxInputChange.bind(void 0,"required")}),x.jsx(_.Checkbox,{error:o.isError("searchable"),checked:o.item.searchable,label:R.t("UserDefinedFieldModal.labels.searchable"),onChange:o.onCheckboxInputChange.bind(void 0,"searchable")}),o.item.data_type===He.select&&x.jsx(_.Checkbox,{error:o.isError("allow_multiple"),checked:o.item.allow_multiple,label:R.t("UserDefinedFieldModal.labels.allowMultiple"),onChange:o.onCheckboxInputChange.bind(void 0,"allow_multiple")})]}),o.item.data_type===He.select&&x.jsx(Ye,{options:o.item.options,onChange:i=>o.onSetState({options:i})})]}),o.children]})};Ht.__docgenInfo={description:"",methods:[],displayName:"UserDefinedFieldModal",props:{hideTable:{required:!1,flowType:{name:"boolean"},description:""}}};const oe="user_defined",Je=".",Jt=({key:o,error:a})=>{const r={};if(o&&o.startsWith(oe)&&P.contains(o,Je)){const[,t]=o.split(Je);P.extend(r,{[`${oe}[${t}]`]:`${t} ${a}`})}if(o===oe&&!P.isEmpty(a)){const[t,e]=a;P.extend(r,{[`${oe}[${t}]`]:e})}return r},qt=o=>{const a={};return o.order||P.extend(a,{order:R.t("UserDefinedFields.errors.numeric",{name:"order"})}),a},cr={resolveError:Jt,validateUserDefinedField:qt};export{fr as O,Ht as U,cr as a,R as i}; diff --git a/docs/assets/UserDefinedFieldsEmbeddedList.stories-DM_NRXKE.js b/docs/assets/UserDefinedFieldsEmbeddedList.stories-1FZnZWe_.js similarity index 92% rename from docs/assets/UserDefinedFieldsEmbeddedList.stories-DM_NRXKE.js rename to docs/assets/UserDefinedFieldsEmbeddedList.stories-1FZnZWe_.js index 8ef15474..72e650cc 100644 --- a/docs/assets/UserDefinedFieldsEmbeddedList.stories-DM_NRXKE.js +++ b/docs/assets/UserDefinedFieldsEmbeddedList.stories-1FZnZWe_.js @@ -1,4 +1,4 @@ -import{j as u}from"./jsx-runtime-BTCK_S7S.js";import{r as n}from"./index-CBqU2yxZ.js";import{_ as c}from"./index-default-C_maRo4o.js";import{d as E}from"./index.es98-Dz6XvXHK.js";import{i as r,O as F,U as x,a as L}from"./UserDefinedFields-CroUrdkF.js";import"./index.es28-dE8xdd4L.js";import"./index-DZGZymok.js";import{u as b}from"./DragDrop-ryAVAQMJ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index.es3-D5uPylQL.js";import"./index.es2-BuM_NOqV.js";import"./index.es23-SQskR_RA.js";import"./useDrop-BRQoWSA5.js";import"./DndContext-B-2NJP7Z.js";import"./redux-C8f_Y06i.js";import"./objectSpread2-N4c0DWqo.js";import"./defineProperty-CCxoMnQV.js";import"./toPropertyKey-hKuLU48H.js";import"./index.es21-BD0kU5QO.js";import"./Form-fErk-qk_.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getElementType-CckcRzoH.js";import"./Button-Blq7Z6RX.js";import"./Icon-2tEtgK8g.js";import"./Label-Cq1fb1cd.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./forEach-CXlln0XP.js";import"./Dimmer-D_gwaesu.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./map-B4PnIEPz.js";import"./Checkbox-C9uAfnsM.js";import"./_baseSet-6y0qliU9.js";import"./_baseAssignValue-izmKBXUH.js";import"./Dropdown-Di2cPjwR.js";import"./without-BP-mqg2K.js";import"./isArrayLikeObject-CbXKTyfk.js";import"./isEmpty-Cyb9hIKi.js";import"./deburr-CEfyoYOr.js";import"./index-BBpNyw-T.js";import"./_arrayReduce-CrxnWFSq.js";import"./filter-CVNi8iPS.js";import"./Input--hQVCRQV.js";import"./Modal-Bz2VEyQG.js";import"./UserDefinedFields-lsgXKzri.js";import"./index.es12-BES12XY4.js";import"./inherits-D5wXBZoG.js";import"./createClass-D2z1h_eG.js";import"./getPrototypeOf-BYVhAdwF.js";import"./toArray-D9zoIPho.js";import"./nonIterableRest-Bc-81Ll3.js";import"./iterableToArray-DI-mZnTP.js";import"./unsupportedIterableToArray-78IFcom3.js";import"./iframe-ovyJW9VA.js";import"../sb-preview/runtime.js";const g=["actions","columns","defaults","excludeColumns","modal"],k=0,f=o=>{const e=n.useCallback(i=>c.contains(o.excludeColumns,i),[o.excludeColumns]);return u.jsx(E,{...c.omit(o,g),actions:[{name:"edit"},{name:"delete"}],columns:[{name:"table_name",label:r.t("UserDefinedFieldsEmbeddedList.columns.table"),hidden:e("table_name")},{name:"column_name",label:r.t("UserDefinedFieldsEmbeddedList.columns.name"),hidden:e("column_name")},{name:"data_type",label:r.t("UserDefinedFieldsEmbeddedList.columns.dataType"),hidden:e("data_type")},{name:"required",label:r.t("UserDefinedFieldsEmbeddedList.columns.required"),render:i=>u.jsx(F,{value:i.required}),hidden:e("required")},{name:"order",label:r.t("UserDefinedFieldsEmbeddedList.columns.order"),hidden:e("order")},{name:"uuid",label:r.t("UserDefinedFieldsEmbeddedList.columns.uuid"),hidden:e("uuid")}],modal:{component:x,props:{defaults:{order:k,...o.defaults||{}},hideTable:e("table_name"),validate:L.validateUserDefinedField.bind(void 0)}}})};f.__docgenInfo={description:"",methods:[],displayName:"UserDefinedFieldsEmbeddedList",props:{defaults:{required:!0,flowType:{name:"any"},description:""},excludeColumns:{required:!1,flowType:{name:"Array",elements:[{name:"string"}],raw:"Array"},description:""}}};const He={title:"Components/User Defined Fields/UserDefinedFieldsEmbeddedList"},a=b(()=>{const[o,e]=n.useState([]),i=n.useCallback(t=>e(s=>c.filter(s,d=>d!==t)),[]),m=n.useCallback(t=>e(s=>[...s,t]),[]);return u.jsx(f,{items:o,onDelete:i,onSave:m})}),l=b(()=>{const[o,e]=n.useState([]),i=n.useCallback(t=>e(s=>c.filter(s,d=>d!==t)),[]),m=n.useCallback(t=>e(s=>[...s,t]),[]);return u.jsx(f,{items:o,modal:{defaults:{table_name:"people"},props:{hideTable:!0}},onDelete:i,onSave:m})}),p=b(()=>{const[o,e]=n.useState([]),i=n.useCallback(t=>e(s=>c.filter(s,d=>d!==t)),[]),m=n.useCallback(t=>e(s=>[...s,t]),[]);return u.jsx(f,{addButton:{color:"purple",location:"top"},items:o,onDelete:i,onSave:m})});a.__docgenInfo={description:"",methods:[],displayName:"Default"};l.__docgenInfo={description:"",methods:[],displayName:"HiddenTableSelector"};p.__docgenInfo={description:"",methods:[],displayName:"CustomAddButton"};var D,v,I;a.parameters={...a.parameters,docs:{...(D=a.parameters)==null?void 0:D.docs,source:{originalSource:`useDragDrop(() => { +import{j as u}from"./jsx-runtime-BTCK_S7S.js";import{r as n}from"./index-CBqU2yxZ.js";import{_ as c}from"./index-default-C_maRo4o.js";import{d as E}from"./index.es98-CYRWAWq9.js";import{i as r,O as F,U as x,a as L}from"./UserDefinedFields-vb7cVvdH.js";import"./index.es28-Dp3-vHIY.js";import"./index-DZGZymok.js";import{u as b}from"./DragDrop-ryAVAQMJ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index.es3-Dgr_7mVc.js";import"./index.es2-9OW1Q_bJ.js";import"./index.es23-SQskR_RA.js";import"./useDrop-BRQoWSA5.js";import"./DndContext-B-2NJP7Z.js";import"./redux-C8f_Y06i.js";import"./objectSpread2-N4c0DWqo.js";import"./defineProperty-CCxoMnQV.js";import"./toPropertyKey-hKuLU48H.js";import"./index.es21-BD0kU5QO.js";import"./Form-fErk-qk_.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getElementType-CckcRzoH.js";import"./Button-Blq7Z6RX.js";import"./Icon-2tEtgK8g.js";import"./Label-Cq1fb1cd.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./forEach-CXlln0XP.js";import"./Dimmer-D_gwaesu.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./map-B4PnIEPz.js";import"./Checkbox-C9uAfnsM.js";import"./_baseSet-6y0qliU9.js";import"./_baseAssignValue-izmKBXUH.js";import"./Dropdown-Di2cPjwR.js";import"./without-BP-mqg2K.js";import"./isArrayLikeObject-CbXKTyfk.js";import"./isEmpty-Cyb9hIKi.js";import"./deburr-CEfyoYOr.js";import"./index-BBpNyw-T.js";import"./_arrayReduce-CrxnWFSq.js";import"./filter-CVNi8iPS.js";import"./Input--hQVCRQV.js";import"./Modal-Bz2VEyQG.js";import"./UserDefinedFields-BkORgl2w.js";import"./index.es12-BljXGOZw.js";import"./inherits-D5wXBZoG.js";import"./createClass-D2z1h_eG.js";import"./getPrototypeOf-BYVhAdwF.js";import"./toArray-D9zoIPho.js";import"./nonIterableRest-Bc-81Ll3.js";import"./iterableToArray-DI-mZnTP.js";import"./unsupportedIterableToArray-78IFcom3.js";import"./iframe-BQtATEn0.js";import"../sb-preview/runtime.js";const g=["actions","columns","defaults","excludeColumns","modal"],k=0,f=o=>{const e=n.useCallback(i=>c.contains(o.excludeColumns,i),[o.excludeColumns]);return u.jsx(E,{...c.omit(o,g),actions:[{name:"edit"},{name:"delete"}],columns:[{name:"table_name",label:r.t("UserDefinedFieldsEmbeddedList.columns.table"),hidden:e("table_name")},{name:"column_name",label:r.t("UserDefinedFieldsEmbeddedList.columns.name"),hidden:e("column_name")},{name:"data_type",label:r.t("UserDefinedFieldsEmbeddedList.columns.dataType"),hidden:e("data_type")},{name:"required",label:r.t("UserDefinedFieldsEmbeddedList.columns.required"),render:i=>u.jsx(F,{value:i.required}),hidden:e("required")},{name:"order",label:r.t("UserDefinedFieldsEmbeddedList.columns.order"),hidden:e("order")},{name:"uuid",label:r.t("UserDefinedFieldsEmbeddedList.columns.uuid"),hidden:e("uuid")}],modal:{component:x,props:{defaults:{order:k,...o.defaults||{}},hideTable:e("table_name"),validate:L.validateUserDefinedField.bind(void 0)}}})};f.__docgenInfo={description:"",methods:[],displayName:"UserDefinedFieldsEmbeddedList",props:{defaults:{required:!0,flowType:{name:"any"},description:""},excludeColumns:{required:!1,flowType:{name:"Array",elements:[{name:"string"}],raw:"Array"},description:""}}};const He={title:"Components/User Defined Fields/UserDefinedFieldsEmbeddedList"},a=b(()=>{const[o,e]=n.useState([]),i=n.useCallback(t=>e(s=>c.filter(s,d=>d!==t)),[]),m=n.useCallback(t=>e(s=>[...s,t]),[]);return u.jsx(f,{items:o,onDelete:i,onSave:m})}),l=b(()=>{const[o,e]=n.useState([]),i=n.useCallback(t=>e(s=>c.filter(s,d=>d!==t)),[]),m=n.useCallback(t=>e(s=>[...s,t]),[]);return u.jsx(f,{items:o,modal:{defaults:{table_name:"people"},props:{hideTable:!0}},onDelete:i,onSave:m})}),p=b(()=>{const[o,e]=n.useState([]),i=n.useCallback(t=>e(s=>c.filter(s,d=>d!==t)),[]),m=n.useCallback(t=>e(s=>[...s,t]),[]);return u.jsx(f,{addButton:{color:"purple",location:"top"},items:o,onDelete:i,onSave:m})});a.__docgenInfo={description:"",methods:[],displayName:"Default"};l.__docgenInfo={description:"",methods:[],displayName:"HiddenTableSelector"};p.__docgenInfo={description:"",methods:[],displayName:"CustomAddButton"};var D,v,I;a.parameters={...a.parameters,docs:{...(D=a.parameters)==null?void 0:D.docs,source:{originalSource:`useDragDrop(() => { const [items, setItems] = useState([]); /** diff --git a/docs/assets/UserDefinedFieldsForm.stories-CpjFfgJc.js b/docs/assets/UserDefinedFieldsForm.stories-uT98ow-F.js similarity index 87% rename from docs/assets/UserDefinedFieldsForm.stories-CpjFfgJc.js rename to docs/assets/UserDefinedFieldsForm.stories-uT98ow-F.js index 7c3c9612..72caf947 100644 --- a/docs/assets/UserDefinedFieldsForm.stories-CpjFfgJc.js +++ b/docs/assets/UserDefinedFieldsForm.stories-uT98ow-F.js @@ -1,4 +1,4 @@ -import{j as a}from"./jsx-runtime-BTCK_S7S.js";import{r as d}from"./index-CBqU2yxZ.js";import{d as F}from"./index-DfmhmaGJ.js";import{F as u}from"./Form-fErk-qk_.js";import{v as q}from"./index.es98-Dz6XvXHK.js";import{d as D}from"./index.es28-dE8xdd4L.js";import"./index-DZGZymok.js";import{_ as b}from"./index-default-C_maRo4o.js";import{U as j}from"./UserDefinedFields-lsgXKzri.js";import"./_commonjsHelpers-BosuxZz1.js";import"./mapValues-CZh2vnSw.js";import"./pickBy-CU2rOOKe.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-Bu_b4Pek.js";import"./index-Cw1G72V2.js";import"./index-CKJfshIT.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./preview-errors-CzpZmerH.js";import"./debounce-Bq1aTuh-.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getElementType-CckcRzoH.js";import"./Button-Blq7Z6RX.js";import"./Icon-2tEtgK8g.js";import"./Label-Cq1fb1cd.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./forEach-CXlln0XP.js";import"./Dimmer-D_gwaesu.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./map-B4PnIEPz.js";import"./Checkbox-C9uAfnsM.js";import"./_baseSet-6y0qliU9.js";import"./_baseAssignValue-izmKBXUH.js";import"./Dropdown-Di2cPjwR.js";import"./without-BP-mqg2K.js";import"./isArrayLikeObject-CbXKTyfk.js";import"./isEmpty-Cyb9hIKi.js";import"./deburr-CEfyoYOr.js";import"./index-BBpNyw-T.js";import"./_arrayReduce-CrxnWFSq.js";import"./filter-CVNi8iPS.js";import"./Input--hQVCRQV.js";import"./index.es3-D5uPylQL.js";import"./index.es2-BuM_NOqV.js";import"./index.es23-SQskR_RA.js";import"./useDrop-BRQoWSA5.js";import"./DndContext-B-2NJP7Z.js";import"./redux-C8f_Y06i.js";import"./objectSpread2-N4c0DWqo.js";import"./defineProperty-CCxoMnQV.js";import"./toPropertyKey-hKuLU48H.js";import"./index.es21-BD0kU5QO.js";import"./iframe-ovyJW9VA.js";import"../sb-preview/runtime.js";import"./index.es12-BES12XY4.js";const p={boolean:"Boolean",date:"Date",number:"Number",richText:"RichText",select:"Select",string:"String",text:"Text"},C=r=>{const[y,g]=d.useState([]),c=d.useCallback(e=>`user_defined[${e.uuid}]`,[]),i=d.useCallback(e=>r.isError(c(e)),[c,r.isError]),m=d.useCallback((e,o)=>{r.onChange({...r.data,[e.uuid]:o}),r.onClearValidationError&&r.onClearValidationError(c(e))},[c,r.data,r.onChange,r.onClearValidationError]),f=d.useCallback(e=>{let o;const s=r.data&&r.data[e.uuid];return e.data_type===p.string&&(o=a.jsx(u.Input,{error:i(e),label:e.column_name,required:e.required,onChange:(t,{value:n})=>m(e,n),value:s})),e.data_type===p.number&&(o=a.jsx(u.Input,{error:i(e),label:e.column_name,required:e.required,onChange:(t,{value:n})=>m(e,n),value:s,type:"number"})),e.data_type===p.select&&(o=a.jsx(u.Dropdown,{clearable:!0,error:i(e),label:e.column_name,multiple:e.allow_multiple,required:e.required,options:b.map(e.options,t=>({key:t,value:t,text:t})),onChange:(t,{value:n})=>m(e,n),selectOnBlur:!1,selection:!0,value:s})),e.data_type===p.text&&(o=a.jsx(u.TextArea,{error:i(e),label:e.column_name,required:e.required,onChange:(t,{value:n})=>m(e,n),value:s})),e.data_type===p.date&&(o=a.jsx(u.Input,{error:i(e),label:e.column_name,required:e.required,children:a.jsx(q,{onChange:t=>m(e,t&&t.toISOString()),value:s&&new Date(s)})})),e.data_type===p.boolean&&(o=a.jsx(u.Checkbox,{checked:!!s,error:i(e),label:e.column_name,onChange:(t,{checked:n})=>m(e,n)})),e.data_type===p.richText&&(o=a.jsx(u.Input,{error:i(e),label:e.column_name,required:e.required,children:a.jsx(D,{onChange:t=>m(e,t),value:s})})),o},[r.data,i,m]);return d.useEffect(()=>{const e={defineable_id:r.defineableId,defineable_type:r.defineableType,per_page:0,sort_by:"order",table_name:r.tableName};j.fetchAll(e).then(({data:o})=>g(o.user_defined_fields))},[]),a.jsx(a.Fragment,{children:b.map(y,f.bind(void 0))})};C.__docgenInfo={description:"",methods:[],displayName:"UserDefinedFieldsForm",props:{data:{required:!0,flowType:{name:"any"},description:""},defineableId:{required:!1,flowType:{name:"number"},description:""},defineableType:{required:!1,flowType:{name:"string"},description:""},isError:{required:!0,flowType:{name:"signature",type:"function",raw:"(key: string) => boolean",signature:{arguments:[{name:"key",type:{name:"string"}}],return:{name:"boolean"}}},description:""},onChange:{required:!0,flowType:{name:"signature",type:"function",raw:"(obj: any) => void",signature:{arguments:[{name:"obj",type:{name:"any"}}],return:{name:"void"}}},description:""},onClearValidationError:{required:!0,flowType:{name:"signature",type:"function",raw:"(...keys: Array) => void",signature:{arguments:[{name:"keys",type:{name:"Array",elements:[{name:"string"}],raw:"Array"},rest:!0}],return:{name:"void"}}},description:""},tableName:{required:!1,flowType:{name:"string"},description:""}}};const Ae={title:"Components/User Defined Fields/UserDefinedFieldsForm",decorators:[F.withKnobs]},l=()=>{const[r,y]=d.useState({"First name":"Bob","Last name":"Smith"});return a.jsx(u,{children:a.jsx(C,{data:r,isError:()=>!1,onChange:g=>y(g)})})};l.__docgenInfo={description:"",methods:[],displayName:"Default"};var _,h,x;l.parameters={...l.parameters,docs:{...(_=l.parameters)==null?void 0:_.docs,source:{originalSource:`() => { +import{j as a}from"./jsx-runtime-BTCK_S7S.js";import{r as d}from"./index-CBqU2yxZ.js";import{d as F}from"./index-CAen7T_W.js";import{F as u}from"./Form-fErk-qk_.js";import{v as q}from"./index.es98-CYRWAWq9.js";import{d as D}from"./index.es28-Dp3-vHIY.js";import"./index-DZGZymok.js";import{_ as b}from"./index-default-C_maRo4o.js";import{U as j}from"./UserDefinedFields-BkORgl2w.js";import"./_commonjsHelpers-BosuxZz1.js";import"./mapValues-LQZI9uWW.js";import"./pickBy-Us6u5-To.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-DCkRKKtx.js";import"./index-Cw1G72V2.js";import"./index-CKJfshIT.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./preview-errors-CzpZmerH.js";import"./debounce-BkgZrIul.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getElementType-CckcRzoH.js";import"./Button-Blq7Z6RX.js";import"./Icon-2tEtgK8g.js";import"./Label-Cq1fb1cd.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./forEach-CXlln0XP.js";import"./Dimmer-D_gwaesu.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./map-B4PnIEPz.js";import"./Checkbox-C9uAfnsM.js";import"./_baseSet-6y0qliU9.js";import"./_baseAssignValue-izmKBXUH.js";import"./Dropdown-Di2cPjwR.js";import"./without-BP-mqg2K.js";import"./isArrayLikeObject-CbXKTyfk.js";import"./isEmpty-Cyb9hIKi.js";import"./deburr-CEfyoYOr.js";import"./index-BBpNyw-T.js";import"./_arrayReduce-CrxnWFSq.js";import"./filter-CVNi8iPS.js";import"./Input--hQVCRQV.js";import"./index.es3-Dgr_7mVc.js";import"./index.es2-9OW1Q_bJ.js";import"./index.es23-SQskR_RA.js";import"./useDrop-BRQoWSA5.js";import"./DndContext-B-2NJP7Z.js";import"./redux-C8f_Y06i.js";import"./objectSpread2-N4c0DWqo.js";import"./defineProperty-CCxoMnQV.js";import"./toPropertyKey-hKuLU48H.js";import"./index.es21-BD0kU5QO.js";import"./iframe-BQtATEn0.js";import"../sb-preview/runtime.js";import"./index.es12-BljXGOZw.js";const p={boolean:"Boolean",date:"Date",number:"Number",richText:"RichText",select:"Select",string:"String",text:"Text"},C=r=>{const[y,g]=d.useState([]),c=d.useCallback(e=>`user_defined[${e.uuid}]`,[]),i=d.useCallback(e=>r.isError(c(e)),[c,r.isError]),m=d.useCallback((e,o)=>{r.onChange({...r.data,[e.uuid]:o}),r.onClearValidationError&&r.onClearValidationError(c(e))},[c,r.data,r.onChange,r.onClearValidationError]),f=d.useCallback(e=>{let o;const s=r.data&&r.data[e.uuid];return e.data_type===p.string&&(o=a.jsx(u.Input,{error:i(e),label:e.column_name,required:e.required,onChange:(t,{value:n})=>m(e,n),value:s})),e.data_type===p.number&&(o=a.jsx(u.Input,{error:i(e),label:e.column_name,required:e.required,onChange:(t,{value:n})=>m(e,n),value:s,type:"number"})),e.data_type===p.select&&(o=a.jsx(u.Dropdown,{clearable:!0,error:i(e),label:e.column_name,multiple:e.allow_multiple,required:e.required,options:b.map(e.options,t=>({key:t,value:t,text:t})),onChange:(t,{value:n})=>m(e,n),selectOnBlur:!1,selection:!0,value:s})),e.data_type===p.text&&(o=a.jsx(u.TextArea,{error:i(e),label:e.column_name,required:e.required,onChange:(t,{value:n})=>m(e,n),value:s})),e.data_type===p.date&&(o=a.jsx(u.Input,{error:i(e),label:e.column_name,required:e.required,children:a.jsx(q,{onChange:t=>m(e,t&&t.toISOString()),value:s&&new Date(s)})})),e.data_type===p.boolean&&(o=a.jsx(u.Checkbox,{checked:!!s,error:i(e),label:e.column_name,onChange:(t,{checked:n})=>m(e,n)})),e.data_type===p.richText&&(o=a.jsx(u.Input,{error:i(e),label:e.column_name,required:e.required,children:a.jsx(D,{onChange:t=>m(e,t),value:s})})),o},[r.data,i,m]);return d.useEffect(()=>{const e={defineable_id:r.defineableId,defineable_type:r.defineableType,per_page:0,sort_by:"order",table_name:r.tableName};j.fetchAll(e).then(({data:o})=>g(o.user_defined_fields))},[]),a.jsx(a.Fragment,{children:b.map(y,f.bind(void 0))})};C.__docgenInfo={description:"",methods:[],displayName:"UserDefinedFieldsForm",props:{data:{required:!0,flowType:{name:"any"},description:""},defineableId:{required:!1,flowType:{name:"number"},description:""},defineableType:{required:!1,flowType:{name:"string"},description:""},isError:{required:!0,flowType:{name:"signature",type:"function",raw:"(key: string) => boolean",signature:{arguments:[{name:"key",type:{name:"string"}}],return:{name:"boolean"}}},description:""},onChange:{required:!0,flowType:{name:"signature",type:"function",raw:"(obj: any) => void",signature:{arguments:[{name:"obj",type:{name:"any"}}],return:{name:"void"}}},description:""},onClearValidationError:{required:!0,flowType:{name:"signature",type:"function",raw:"(...keys: Array) => void",signature:{arguments:[{name:"keys",type:{name:"Array",elements:[{name:"string"}],raw:"Array"},rest:!0}],return:{name:"void"}}},description:""},tableName:{required:!1,flowType:{name:"string"},description:""}}};const Ae={title:"Components/User Defined Fields/UserDefinedFieldsForm",decorators:[F.withKnobs]},l=()=>{const[r,y]=d.useState({"First name":"Bob","Last name":"Smith"});return a.jsx(u,{children:a.jsx(C,{data:r,isError:()=>!1,onChange:g=>y(g)})})};l.__docgenInfo={description:"",methods:[],displayName:"Default"};var _,h,x;l.parameters={...l.parameters,docs:{...(_=l.parameters)==null?void 0:_.docs,source:{originalSource:`() => { const [data, setData] = useState({ 'First name': 'Bob', 'Last name': 'Smith' diff --git a/docs/assets/UserDefinedFieldsList.stories-D2LZQ5UG.js b/docs/assets/UserDefinedFieldsList.stories-D-sB7oYT.js similarity index 88% rename from docs/assets/UserDefinedFieldsList.stories-D2LZQ5UG.js rename to docs/assets/UserDefinedFieldsList.stories-D-sB7oYT.js index daafc4db..e5bbf9a2 100644 --- a/docs/assets/UserDefinedFieldsList.stories-D2LZQ5UG.js +++ b/docs/assets/UserDefinedFieldsList.stories-D-sB7oYT.js @@ -1,4 +1,4 @@ -import{j as d}from"./jsx-runtime-BTCK_S7S.js";import{r}from"./index-CBqU2yxZ.js";import{d as F}from"./index-DfmhmaGJ.js";import{_ as l}from"./index-default-C_maRo4o.js";import{D as S}from"./index.es98-Dz6XvXHK.js";import{i as n,O as C,U as y,a as L}from"./UserDefinedFields-CroUrdkF.js";import"./index.es28-dE8xdd4L.js";import"./index-DZGZymok.js";import{U as u}from"./UserDefinedFields-lsgXKzri.js";import{u as U}from"./DragDrop-ryAVAQMJ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./mapValues-CZh2vnSw.js";import"./pickBy-CU2rOOKe.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-Bu_b4Pek.js";import"./index-Cw1G72V2.js";import"./index-CKJfshIT.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./preview-errors-CzpZmerH.js";import"./debounce-Bq1aTuh-.js";import"./index.es3-D5uPylQL.js";import"./index.es2-BuM_NOqV.js";import"./index.es23-SQskR_RA.js";import"./useDrop-BRQoWSA5.js";import"./DndContext-B-2NJP7Z.js";import"./redux-C8f_Y06i.js";import"./objectSpread2-N4c0DWqo.js";import"./defineProperty-CCxoMnQV.js";import"./toPropertyKey-hKuLU48H.js";import"./index.es21-BD0kU5QO.js";import"./Form-fErk-qk_.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getElementType-CckcRzoH.js";import"./Button-Blq7Z6RX.js";import"./Icon-2tEtgK8g.js";import"./Label-Cq1fb1cd.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./forEach-CXlln0XP.js";import"./Dimmer-D_gwaesu.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./map-B4PnIEPz.js";import"./Checkbox-C9uAfnsM.js";import"./_baseSet-6y0qliU9.js";import"./_baseAssignValue-izmKBXUH.js";import"./Dropdown-Di2cPjwR.js";import"./without-BP-mqg2K.js";import"./isArrayLikeObject-CbXKTyfk.js";import"./isEmpty-Cyb9hIKi.js";import"./deburr-CEfyoYOr.js";import"./index-BBpNyw-T.js";import"./_arrayReduce-CrxnWFSq.js";import"./filter-CVNi8iPS.js";import"./Input--hQVCRQV.js";import"./Modal-Bz2VEyQG.js";import"./inherits-D5wXBZoG.js";import"./createClass-D2z1h_eG.js";import"./getPrototypeOf-BYVhAdwF.js";import"./toArray-D9zoIPho.js";import"./nonIterableRest-Bc-81Ll3.js";import"./iterableToArray-DI-mZnTP.js";import"./unsupportedIterableToArray-78IFcom3.js";import"./iframe-ovyJW9VA.js";import"../sb-preview/runtime.js";import"./index.es12-BES12XY4.js";const x=["actions","collectionName","columns","defaults","excludeColumns","modal","onDelete","onLoad","onSave"],g=0,f=o=>{const e=r.useCallback(t=>l.contains(o.excludeColumns,t),[o.excludeColumns]);return d.jsx(S,{...l.omit(o,x),actions:[{name:"edit"},{name:"delete"}],columns:[{name:"table_name",label:n.t("UserDefinedFieldsList.columns.table"),hidden:e("table_name")},{name:"column_name",label:n.t("UserDefinedFieldsList.columns.name"),hidden:e("column_name")},{name:"data_type",label:n.t("UserDefinedFieldsList.columns.dataType"),hidden:e("data_type")},{name:"required",label:n.t("UserDefinedFieldsList.columns.required"),render:t=>d.jsx(C,{value:t.required}),hidden:e("required")},{name:"order",label:n.t("UserDefinedFieldsList.columns.order"),hidden:e("order")},{name:"uuid",label:n.t("UserDefinedFieldsList.columns.uuid"),hidden:e("uuid")}],collectionName:"user_defined_fields",modal:{component:y,props:{defaults:{order:g,...o.defaults||{}},hideTable:e("table_name"),validate:L.validateUserDefinedField.bind(void 0)}},onDelete:t=>u.delete(t),onLoad:t=>u.fetchAll(t),onSave:t=>u.save(t)})};f.__docgenInfo={description:"",methods:[],displayName:"UserDefinedFieldsList",props:{defaults:{required:!1,flowType:{name:"any"},description:""},excludeColumns:{required:!1,flowType:{name:"Array",elements:[{name:"string"}],raw:"Array"},description:""}}};const Qe={title:"Components/User Defined Fields/UserDefinedFieldsList",decorators:[F.withKnobs]},m=U(()=>{const[o,e]=r.useState([]),t=r.useCallback(i=>e(s=>l.filter(s,c=>c!==i)),[]),p=r.useCallback(i=>e(s=>[...s,i]),[]);return d.jsx(f,{items:o,onDelete:t,onSave:p})}),a=U(()=>{const[o,e]=r.useState([]),t=r.useCallback(i=>e(s=>l.filter(s,c=>c!==i)),[]),p=r.useCallback(i=>e(s=>[...s,i]),[]);return d.jsx(f,{addButton:{color:"purple",location:"top"},items:o,onDelete:t,onSave:p})});m.__docgenInfo={description:"",methods:[],displayName:"Default"};a.__docgenInfo={description:"",methods:[],displayName:"CustomAddButton"};var D,v,_;m.parameters={...m.parameters,docs:{...(D=m.parameters)==null?void 0:D.docs,source:{originalSource:`useDragDrop(() => { +import{j as d}from"./jsx-runtime-BTCK_S7S.js";import{r}from"./index-CBqU2yxZ.js";import{d as F}from"./index-CAen7T_W.js";import{_ as l}from"./index-default-C_maRo4o.js";import{D as S}from"./index.es98-CYRWAWq9.js";import{i as n,O as C,U as y,a as L}from"./UserDefinedFields-vb7cVvdH.js";import"./index.es28-Dp3-vHIY.js";import"./index-DZGZymok.js";import{U as u}from"./UserDefinedFields-BkORgl2w.js";import{u as U}from"./DragDrop-ryAVAQMJ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./mapValues-LQZI9uWW.js";import"./pickBy-Us6u5-To.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-DCkRKKtx.js";import"./index-Cw1G72V2.js";import"./index-CKJfshIT.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./preview-errors-CzpZmerH.js";import"./debounce-BkgZrIul.js";import"./index.es3-Dgr_7mVc.js";import"./index.es2-9OW1Q_bJ.js";import"./index.es23-SQskR_RA.js";import"./useDrop-BRQoWSA5.js";import"./DndContext-B-2NJP7Z.js";import"./redux-C8f_Y06i.js";import"./objectSpread2-N4c0DWqo.js";import"./defineProperty-CCxoMnQV.js";import"./toPropertyKey-hKuLU48H.js";import"./index.es21-BD0kU5QO.js";import"./Form-fErk-qk_.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getElementType-CckcRzoH.js";import"./Button-Blq7Z6RX.js";import"./Icon-2tEtgK8g.js";import"./Label-Cq1fb1cd.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./forEach-CXlln0XP.js";import"./Dimmer-D_gwaesu.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./map-B4PnIEPz.js";import"./Checkbox-C9uAfnsM.js";import"./_baseSet-6y0qliU9.js";import"./_baseAssignValue-izmKBXUH.js";import"./Dropdown-Di2cPjwR.js";import"./without-BP-mqg2K.js";import"./isArrayLikeObject-CbXKTyfk.js";import"./isEmpty-Cyb9hIKi.js";import"./deburr-CEfyoYOr.js";import"./index-BBpNyw-T.js";import"./_arrayReduce-CrxnWFSq.js";import"./filter-CVNi8iPS.js";import"./Input--hQVCRQV.js";import"./Modal-Bz2VEyQG.js";import"./inherits-D5wXBZoG.js";import"./createClass-D2z1h_eG.js";import"./getPrototypeOf-BYVhAdwF.js";import"./toArray-D9zoIPho.js";import"./nonIterableRest-Bc-81Ll3.js";import"./iterableToArray-DI-mZnTP.js";import"./unsupportedIterableToArray-78IFcom3.js";import"./iframe-BQtATEn0.js";import"../sb-preview/runtime.js";import"./index.es12-BljXGOZw.js";const x=["actions","collectionName","columns","defaults","excludeColumns","modal","onDelete","onLoad","onSave"],g=0,f=o=>{const e=r.useCallback(t=>l.contains(o.excludeColumns,t),[o.excludeColumns]);return d.jsx(S,{...l.omit(o,x),actions:[{name:"edit"},{name:"delete"}],columns:[{name:"table_name",label:n.t("UserDefinedFieldsList.columns.table"),hidden:e("table_name")},{name:"column_name",label:n.t("UserDefinedFieldsList.columns.name"),hidden:e("column_name")},{name:"data_type",label:n.t("UserDefinedFieldsList.columns.dataType"),hidden:e("data_type")},{name:"required",label:n.t("UserDefinedFieldsList.columns.required"),render:t=>d.jsx(C,{value:t.required}),hidden:e("required")},{name:"order",label:n.t("UserDefinedFieldsList.columns.order"),hidden:e("order")},{name:"uuid",label:n.t("UserDefinedFieldsList.columns.uuid"),hidden:e("uuid")}],collectionName:"user_defined_fields",modal:{component:y,props:{defaults:{order:g,...o.defaults||{}},hideTable:e("table_name"),validate:L.validateUserDefinedField.bind(void 0)}},onDelete:t=>u.delete(t),onLoad:t=>u.fetchAll(t),onSave:t=>u.save(t)})};f.__docgenInfo={description:"",methods:[],displayName:"UserDefinedFieldsList",props:{defaults:{required:!1,flowType:{name:"any"},description:""},excludeColumns:{required:!1,flowType:{name:"Array",elements:[{name:"string"}],raw:"Array"},description:""}}};const Qe={title:"Components/User Defined Fields/UserDefinedFieldsList",decorators:[F.withKnobs]},m=U(()=>{const[o,e]=r.useState([]),t=r.useCallback(i=>e(s=>l.filter(s,c=>c!==i)),[]),p=r.useCallback(i=>e(s=>[...s,i]),[]);return d.jsx(f,{items:o,onDelete:t,onSave:p})}),a=U(()=>{const[o,e]=r.useState([]),t=r.useCallback(i=>e(s=>l.filter(s,c=>c!==i)),[]),p=r.useCallback(i=>e(s=>[...s,i]),[]);return d.jsx(f,{addButton:{color:"purple",location:"top"},items:o,onDelete:t,onSave:p})});m.__docgenInfo={description:"",methods:[],displayName:"Default"};a.__docgenInfo={description:"",methods:[],displayName:"CustomAddButton"};var D,v,_;m.parameters={...m.parameters,docs:{...(D=m.parameters)==null?void 0:D.docs,source:{originalSource:`useDragDrop(() => { const [items, setItems] = useState([]); /** diff --git a/docs/assets/VideoFrameSelector.stories-C3GxBbP-.js b/docs/assets/VideoFrameSelector.stories-YwgL8X05.js similarity index 97% rename from docs/assets/VideoFrameSelector.stories-C3GxBbP-.js rename to docs/assets/VideoFrameSelector.stories-YwgL8X05.js index 53b85e89..803e56e0 100644 --- a/docs/assets/VideoFrameSelector.stories-C3GxBbP-.js +++ b/docs/assets/VideoFrameSelector.stories-YwgL8X05.js @@ -1,4 +1,4 @@ -import{j as e}from"./jsx-runtime-BTCK_S7S.js";import{r as o}from"./index-CBqU2yxZ.js";import{L as C}from"./LazyVideo-DYSkHXXp.js";import{o as L}from"./index.es28-dE8xdd4L.js";import{G as x}from"./Grid-Czr5owxQ.js";import{B as s}from"./Button-Blq7Z6RX.js";import{I as T}from"./Input--hQVCRQV.js";import{L as M}from"./Label-Cq1fb1cd.js";import{S as R}from"./Segment-C5_maSSM.js";import{M as p}from"./Modal-Bz2VEyQG.js";import{i as l}from"./i18n-C8zWlANG.js";import{M as _}from"./ModalContext-Bu-D9kD-.js";import{w as E}from"./withTranslation-D8FvQLBO.js";import{v as S}from"./SampleVideo-Bq74ahmY.js";import"./_commonjsHelpers-BosuxZz1.js";import"./LazyLoader-D1S4_28m.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getElementType-CckcRzoH.js";import"./forEach-CXlln0XP.js";import"./without-BP-mqg2K.js";import"./isArrayLikeObject-CbXKTyfk.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./index-DZGZymok.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./Loader-CooidObp.js";import"./Icon-2tEtgK8g.js";import"./Dimmer-D_gwaesu.js";import"./Transition-DSFEXhCu.js";import"./_baseAssignValue-izmKBXUH.js";import"./filter-CVNi8iPS.js";import"./DownloadButton-B5qnjgmD.js";import"./uuid-BH6G0oTz.js";import"./VideoPlayer-DLJxAPDP.js";import"./Message-3p6wyYpA.js";import"./map-B4PnIEPz.js";import"./iframe-ovyJW9VA.js";import"../sb-preview/runtime.js";import"./index-BBpNyw-T.js";import"./_baseSet-6y0qliU9.js";import"./_arrayReduce-CrxnWFSq.js";import"./isEmpty-Cyb9hIKi.js";import"./i18next-Sc0HEOoc.js";import"./toPropertyKey-hKuLU48H.js";import"./defineProperty-CCxoMnQV.js";import"./inherits-D5wXBZoG.js";import"./createClass-D2z1h_eG.js";import"./getPrototypeOf-BYVhAdwF.js";import"./slicedToArray-D1W8oQh0.js";import"./nonIterableRest-Bc-81Ll3.js";import"./unsupportedIterableToArray-78IFcom3.js";import"./objectWithoutProperties--RY0eV0u.js";import"./utils-Bq6oISwF.js";const N=1,k=1,A=300,g=r=>{const[c,u]=o.useState(0),[d,w]=o.useState(r.defaultInterval),[i,v]=o.useState(0),[F,f]=o.useState(!1),n=o.useRef(null);return o.useEffect(()=>{n.current&&(n.current.currentTime=i)},[i]),e.jsxs(e.Fragment,{children:[e.jsx(s,{...r.button,onClick:()=>f(!0)}),e.jsx(_.Consumer,{children:I=>e.jsxs(p,{centered:!1,className:"video-frame-selector",mountNode:I,open:F,size:"small",children:[e.jsx(p.Header,{content:r.title}),e.jsxs(p.Content,{children:[e.jsx(R,{children:e.jsx("video",{crossOrigin:"anonymous",onLoadedMetadata:()=>n.current&&u(n.current.duration),ref:n,src:r.src})}),e.jsxs(x,{columns:2,children:[e.jsxs(x.Column,{children:[e.jsx("div",{children:e.jsx(M,{content:l.t("VideoFrameSelector.labels.interval",{count:d})})}),e.jsx(T,{"aria-label":"Interval Selector",min:k,max:A,name:"duration",onChange:(a,{value:t})=>w(Number(t)),step:N,type:"range",value:d})]}),e.jsxs(x.Column,{textAlign:"right",children:[e.jsx(s,{"aria-label":"Previous Frame",basic:!0,disabled:i===0,icon:"arrow left",onClick:()=>v(Math.max(i-d,0))}),e.jsx(s,{"aria-label":"Next Frame",basic:!0,disabled:i===c,icon:"arrow right",onClick:()=>v(Math.min(i+d,c))})]})]})]}),e.jsxs(p.Actions,{children:[e.jsx(s,{content:l.t("Common.buttons.ok"),primary:!0,onClick:()=>{const a=n.current;if(a&&L.isBrowser()){const t=document.createElement("canvas");t.width=a.videoWidth,t.height=a.videoHeight,t.getContext("2d").drawImage(a,0,0,t.width,t.height),t.toBlob(h=>{const y=new File([h],"test.png",{lastModified:new Date().getTime(),type:h.type});r.onSelect(y),f(!1)})}}}),e.jsx(s,{basic:!0,content:l.t("Common.buttons.cancel"),onClick:()=>f(!1)})]})]})})]})};g.defaultProps={button:{basic:!0,content:l.t("VideoFrameSelector.buttons.select"),icon:"image"},defaultInterval:15,title:l.t("VideoFrameSelector.title")};const q=E()(g);g.__docgenInfo={description:"",methods:[],displayName:"VideoFrameSelector",props:{button:{required:!1,flowType:{name:"any"},description:"",defaultValue:{value:`{ +import{j as e}from"./jsx-runtime-BTCK_S7S.js";import{r as o}from"./index-CBqU2yxZ.js";import{L as C}from"./LazyVideo-DYSkHXXp.js";import{o as L}from"./index.es28-Dp3-vHIY.js";import{G as x}from"./Grid-Czr5owxQ.js";import{B as s}from"./Button-Blq7Z6RX.js";import{I as T}from"./Input--hQVCRQV.js";import{L as M}from"./Label-Cq1fb1cd.js";import{S as R}from"./Segment-C5_maSSM.js";import{M as p}from"./Modal-Bz2VEyQG.js";import{i as l}from"./i18n-C8zWlANG.js";import{M as _}from"./ModalContext-Bu-D9kD-.js";import{w as E}from"./withTranslation-D8FvQLBO.js";import{v as S}from"./SampleVideo-Bq74ahmY.js";import"./_commonjsHelpers-BosuxZz1.js";import"./LazyLoader-D1S4_28m.js";import"./extends-CCbyfPlC.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getElementType-CckcRzoH.js";import"./forEach-CXlln0XP.js";import"./without-BP-mqg2K.js";import"./isArrayLikeObject-CbXKTyfk.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./index-DZGZymok.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./Loader-CooidObp.js";import"./Icon-2tEtgK8g.js";import"./Dimmer-D_gwaesu.js";import"./Transition-DSFEXhCu.js";import"./_baseAssignValue-izmKBXUH.js";import"./filter-CVNi8iPS.js";import"./DownloadButton-B5qnjgmD.js";import"./uuid-BH6G0oTz.js";import"./VideoPlayer-DLJxAPDP.js";import"./Message-3p6wyYpA.js";import"./map-B4PnIEPz.js";import"./iframe-BQtATEn0.js";import"../sb-preview/runtime.js";import"./index-BBpNyw-T.js";import"./_baseSet-6y0qliU9.js";import"./_arrayReduce-CrxnWFSq.js";import"./isEmpty-Cyb9hIKi.js";import"./i18next-Sc0HEOoc.js";import"./toPropertyKey-hKuLU48H.js";import"./defineProperty-CCxoMnQV.js";import"./inherits-D5wXBZoG.js";import"./createClass-D2z1h_eG.js";import"./getPrototypeOf-BYVhAdwF.js";import"./slicedToArray-D1W8oQh0.js";import"./nonIterableRest-Bc-81Ll3.js";import"./unsupportedIterableToArray-78IFcom3.js";import"./objectWithoutProperties--RY0eV0u.js";import"./utils-Bq6oISwF.js";const N=1,k=1,A=300,g=r=>{const[c,u]=o.useState(0),[d,w]=o.useState(r.defaultInterval),[i,v]=o.useState(0),[F,f]=o.useState(!1),n=o.useRef(null);return o.useEffect(()=>{n.current&&(n.current.currentTime=i)},[i]),e.jsxs(e.Fragment,{children:[e.jsx(s,{...r.button,onClick:()=>f(!0)}),e.jsx(_.Consumer,{children:I=>e.jsxs(p,{centered:!1,className:"video-frame-selector",mountNode:I,open:F,size:"small",children:[e.jsx(p.Header,{content:r.title}),e.jsxs(p.Content,{children:[e.jsx(R,{children:e.jsx("video",{crossOrigin:"anonymous",onLoadedMetadata:()=>n.current&&u(n.current.duration),ref:n,src:r.src})}),e.jsxs(x,{columns:2,children:[e.jsxs(x.Column,{children:[e.jsx("div",{children:e.jsx(M,{content:l.t("VideoFrameSelector.labels.interval",{count:d})})}),e.jsx(T,{"aria-label":"Interval Selector",min:k,max:A,name:"duration",onChange:(a,{value:t})=>w(Number(t)),step:N,type:"range",value:d})]}),e.jsxs(x.Column,{textAlign:"right",children:[e.jsx(s,{"aria-label":"Previous Frame",basic:!0,disabled:i===0,icon:"arrow left",onClick:()=>v(Math.max(i-d,0))}),e.jsx(s,{"aria-label":"Next Frame",basic:!0,disabled:i===c,icon:"arrow right",onClick:()=>v(Math.min(i+d,c))})]})]})]}),e.jsxs(p.Actions,{children:[e.jsx(s,{content:l.t("Common.buttons.ok"),primary:!0,onClick:()=>{const a=n.current;if(a&&L.isBrowser()){const t=document.createElement("canvas");t.width=a.videoWidth,t.height=a.videoHeight,t.getContext("2d").drawImage(a,0,0,t.width,t.height),t.toBlob(h=>{const y=new File([h],"test.png",{lastModified:new Date().getTime(),type:h.type});r.onSelect(y),f(!1)})}}}),e.jsx(s,{basic:!0,content:l.t("Common.buttons.cancel"),onClick:()=>f(!1)})]})]})})]})};g.defaultProps={button:{basic:!0,content:l.t("VideoFrameSelector.buttons.select"),icon:"image"},defaultInterval:15,title:l.t("VideoFrameSelector.title")};const q=E()(g);g.__docgenInfo={description:"",methods:[],displayName:"VideoFrameSelector",props:{button:{required:!1,flowType:{name:"any"},description:"",defaultValue:{value:`{ basic: true, content: i18n.t('VideoFrameSelector.buttons.select'), icon: 'image' diff --git a/docs/assets/ViewXML.stories-DBAsHBUp.js b/docs/assets/ViewXML.stories-hMIo-utb.js similarity index 99% rename from docs/assets/ViewXML.stories-DBAsHBUp.js rename to docs/assets/ViewXML.stories-hMIo-utb.js index 9c48bbb3..f9aee7ea 100644 --- a/docs/assets/ViewXML.stories-DBAsHBUp.js +++ b/docs/assets/ViewXML.stories-hMIo-utb.js @@ -1,4 +1,4 @@ -import{j as ie}from"./jsx-runtime-BTCK_S7S.js";import{R as pe,r as ac}from"./index-CBqU2yxZ.js";import{d as rc}from"./index-DfmhmaGJ.js";import{L as ic}from"./LinkButton-COql2obt.js";import{B as yl}from"./Button-Blq7Z6RX.js";import{M as Ue}from"./Modal-Bz2VEyQG.js";import{i as Cr}from"./i18n-C8zWlANG.js";import{M as oc}from"./ModalContext-Bu-D9kD-.js";import{_ as sc}from"./objectWithoutProperties--RY0eV0u.js";import{_ as lc}from"./toConsumableArray-BlSjX6Hi.js";import{_ as hl}from"./defineProperty-CCxoMnQV.js";import{_ as cc}from"./extends-CCbyfPlC.js";import{g as _c}from"./_commonjsHelpers-BosuxZz1.js";import"./mapValues-CZh2vnSw.js";import"./pickBy-CU2rOOKe.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./isPlainObject-Bu_b4Pek.js";import"./index-Cw1G72V2.js";import"./index-CKJfshIT.js";import"./tiny-invariant.cjs-DxxScMW_.js";import"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import"./preview-errors-CzpZmerH.js";import"./debounce-Bq1aTuh-.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getElementType-CckcRzoH.js";import"./Icon-2tEtgK8g.js";import"./Label-Cq1fb1cd.js";import"./ModernAutoControlledComponent-DJBWk5EW.js";import"./assertThisInitialized-B9jnkVVz.js";import"./includes-CQoJOerW.js";import"./toFinite-KQ8KevIC.js";import"./forEach-CXlln0XP.js";import"./Dimmer-D_gwaesu.js";import"./Portal-DvhHJPzU.js";import"./keyboardKey-OMDgGVm3.js";import"./index-DZGZymok.js";import"./objectWithoutPropertiesLoose-1QL-frMM.js";import"./map-B4PnIEPz.js";import"./index-BBpNyw-T.js";import"./_baseSet-6y0qliU9.js";import"./_baseAssignValue-izmKBXUH.js";import"./_arrayReduce-CrxnWFSq.js";import"./isEmpty-Cyb9hIKi.js";import"./i18next-Sc0HEOoc.js";import"./toPropertyKey-hKuLU48H.js";import"./inherits-D5wXBZoG.js";import"./createClass-D2z1h_eG.js";import"./getPrototypeOf-BYVhAdwF.js";import"./unsupportedIterableToArray-78IFcom3.js";import"./iterableToArray-DI-mZnTP.js";function kr(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),a.push.apply(a,n)}return a}function Ce(t){for(var e=1;e=4)return[t[0],t[1],t[2],t[3],"".concat(t[0],".").concat(t[1]),"".concat(t[0],".").concat(t[2]),"".concat(t[0],".").concat(t[3]),"".concat(t[1],".").concat(t[0]),"".concat(t[1],".").concat(t[2]),"".concat(t[1],".").concat(t[3]),"".concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[1]),"".concat(t[2],".").concat(t[3]),"".concat(t[3],".").concat(t[0]),"".concat(t[3],".").concat(t[1]),"".concat(t[3],".").concat(t[2]),"".concat(t[0],".").concat(t[1],".").concat(t[2]),"".concat(t[0],".").concat(t[1],".").concat(t[3]),"".concat(t[0],".").concat(t[2],".").concat(t[1]),"".concat(t[0],".").concat(t[2],".").concat(t[3]),"".concat(t[0],".").concat(t[3],".").concat(t[1]),"".concat(t[0],".").concat(t[3],".").concat(t[2]),"".concat(t[1],".").concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[0],".").concat(t[3]),"".concat(t[1],".").concat(t[2],".").concat(t[0]),"".concat(t[1],".").concat(t[2],".").concat(t[3]),"".concat(t[1],".").concat(t[3],".").concat(t[0]),"".concat(t[1],".").concat(t[3],".").concat(t[2]),"".concat(t[2],".").concat(t[0],".").concat(t[1]),"".concat(t[2],".").concat(t[0],".").concat(t[3]),"".concat(t[2],".").concat(t[1],".").concat(t[0]),"".concat(t[2],".").concat(t[1],".").concat(t[3]),"".concat(t[2],".").concat(t[3],".").concat(t[0]),"".concat(t[2],".").concat(t[3],".").concat(t[1]),"".concat(t[3],".").concat(t[0],".").concat(t[1]),"".concat(t[3],".").concat(t[0],".").concat(t[2]),"".concat(t[3],".").concat(t[1],".").concat(t[0]),"".concat(t[3],".").concat(t[1],".").concat(t[2]),"".concat(t[3],".").concat(t[2],".").concat(t[0]),"".concat(t[3],".").concat(t[2],".").concat(t[1]),"".concat(t[0],".").concat(t[1],".").concat(t[2],".").concat(t[3]),"".concat(t[0],".").concat(t[1],".").concat(t[3],".").concat(t[2]),"".concat(t[0],".").concat(t[2],".").concat(t[1],".").concat(t[3]),"".concat(t[0],".").concat(t[2],".").concat(t[3],".").concat(t[1]),"".concat(t[0],".").concat(t[3],".").concat(t[1],".").concat(t[2]),"".concat(t[0],".").concat(t[3],".").concat(t[2],".").concat(t[1]),"".concat(t[1],".").concat(t[0],".").concat(t[2],".").concat(t[3]),"".concat(t[1],".").concat(t[0],".").concat(t[3],".").concat(t[2]),"".concat(t[1],".").concat(t[2],".").concat(t[0],".").concat(t[3]),"".concat(t[1],".").concat(t[2],".").concat(t[3],".").concat(t[0]),"".concat(t[1],".").concat(t[3],".").concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[3],".").concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[0],".").concat(t[1],".").concat(t[3]),"".concat(t[2],".").concat(t[0],".").concat(t[3],".").concat(t[1]),"".concat(t[2],".").concat(t[1],".").concat(t[0],".").concat(t[3]),"".concat(t[2],".").concat(t[1],".").concat(t[3],".").concat(t[0]),"".concat(t[2],".").concat(t[3],".").concat(t[0],".").concat(t[1]),"".concat(t[2],".").concat(t[3],".").concat(t[1],".").concat(t[0]),"".concat(t[3],".").concat(t[0],".").concat(t[1],".").concat(t[2]),"".concat(t[3],".").concat(t[0],".").concat(t[2],".").concat(t[1]),"".concat(t[3],".").concat(t[1],".").concat(t[0],".").concat(t[2]),"".concat(t[3],".").concat(t[1],".").concat(t[2],".").concat(t[0]),"".concat(t[3],".").concat(t[2],".").concat(t[0],".").concat(t[1]),"".concat(t[3],".").concat(t[2],".").concat(t[1],".").concat(t[0])]}var Ve={};function uc(t){if(t.length===0||t.length===1)return t;var e=t.join(".");return Ve[e]||(Ve[e]=dc(t)),Ve[e]}function mc(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2?arguments[2]:void 0,n=t.filter(function(i){return i!=="token"}),r=uc(n);return r.reduce(function(i,o){return Ce(Ce({},i),a[o])},e)}function Ur(t){return t.join(" ")}function pc(t,e){var a=0;return function(n){return a+=1,n.map(function(r,i){return Dl({node:r,stylesheet:t,useInlineStyles:e,key:"code-segment-".concat(a,"-").concat(i)})})}}function Dl(t){var e=t.node,a=t.stylesheet,n=t.style,r=n===void 0?{}:n,i=t.useInlineStyles,o=t.key,s=e.properties,l=e.type,_=e.tagName,c=e.value;if(l==="text")return c;if(_){var u=pc(a,i),d;if(!i)d=Ce(Ce({},s),{},{className:Ur(s.className)});else{var m=Object.keys(a).reduce(function(S,f){return f.split(".").forEach(function(R){S.includes(R)||S.push(R)}),S},[]),E=s.className&&s.className.includes("token")?["token"]:[],g=s.className&&E.concat(s.className.filter(function(S){return!m.includes(S)}));d=Ce(Ce({},s),{},{className:Ur(g)||void 0,style:mc(s.className,Object.assign({},s.style,r),a)})}var T=u(e.children);return pe.createElement(_,cc({key:o},d),T)}}const Ec=function(t,e){var a=t.listLanguages();return a.indexOf(e)!==-1};var gc=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function Fr(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),a.push.apply(a,n)}return a}function se(t){for(var e=1;e=4)return[t[0],t[1],t[2],t[3],"".concat(t[0],".").concat(t[1]),"".concat(t[0],".").concat(t[2]),"".concat(t[0],".").concat(t[3]),"".concat(t[1],".").concat(t[0]),"".concat(t[1],".").concat(t[2]),"".concat(t[1],".").concat(t[3]),"".concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[1]),"".concat(t[2],".").concat(t[3]),"".concat(t[3],".").concat(t[0]),"".concat(t[3],".").concat(t[1]),"".concat(t[3],".").concat(t[2]),"".concat(t[0],".").concat(t[1],".").concat(t[2]),"".concat(t[0],".").concat(t[1],".").concat(t[3]),"".concat(t[0],".").concat(t[2],".").concat(t[1]),"".concat(t[0],".").concat(t[2],".").concat(t[3]),"".concat(t[0],".").concat(t[3],".").concat(t[1]),"".concat(t[0],".").concat(t[3],".").concat(t[2]),"".concat(t[1],".").concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[0],".").concat(t[3]),"".concat(t[1],".").concat(t[2],".").concat(t[0]),"".concat(t[1],".").concat(t[2],".").concat(t[3]),"".concat(t[1],".").concat(t[3],".").concat(t[0]),"".concat(t[1],".").concat(t[3],".").concat(t[2]),"".concat(t[2],".").concat(t[0],".").concat(t[1]),"".concat(t[2],".").concat(t[0],".").concat(t[3]),"".concat(t[2],".").concat(t[1],".").concat(t[0]),"".concat(t[2],".").concat(t[1],".").concat(t[3]),"".concat(t[2],".").concat(t[3],".").concat(t[0]),"".concat(t[2],".").concat(t[3],".").concat(t[1]),"".concat(t[3],".").concat(t[0],".").concat(t[1]),"".concat(t[3],".").concat(t[0],".").concat(t[2]),"".concat(t[3],".").concat(t[1],".").concat(t[0]),"".concat(t[3],".").concat(t[1],".").concat(t[2]),"".concat(t[3],".").concat(t[2],".").concat(t[0]),"".concat(t[3],".").concat(t[2],".").concat(t[1]),"".concat(t[0],".").concat(t[1],".").concat(t[2],".").concat(t[3]),"".concat(t[0],".").concat(t[1],".").concat(t[3],".").concat(t[2]),"".concat(t[0],".").concat(t[2],".").concat(t[1],".").concat(t[3]),"".concat(t[0],".").concat(t[2],".").concat(t[3],".").concat(t[1]),"".concat(t[0],".").concat(t[3],".").concat(t[1],".").concat(t[2]),"".concat(t[0],".").concat(t[3],".").concat(t[2],".").concat(t[1]),"".concat(t[1],".").concat(t[0],".").concat(t[2],".").concat(t[3]),"".concat(t[1],".").concat(t[0],".").concat(t[3],".").concat(t[2]),"".concat(t[1],".").concat(t[2],".").concat(t[0],".").concat(t[3]),"".concat(t[1],".").concat(t[2],".").concat(t[3],".").concat(t[0]),"".concat(t[1],".").concat(t[3],".").concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[3],".").concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[0],".").concat(t[1],".").concat(t[3]),"".concat(t[2],".").concat(t[0],".").concat(t[3],".").concat(t[1]),"".concat(t[2],".").concat(t[1],".").concat(t[0],".").concat(t[3]),"".concat(t[2],".").concat(t[1],".").concat(t[3],".").concat(t[0]),"".concat(t[2],".").concat(t[3],".").concat(t[0],".").concat(t[1]),"".concat(t[2],".").concat(t[3],".").concat(t[1],".").concat(t[0]),"".concat(t[3],".").concat(t[0],".").concat(t[1],".").concat(t[2]),"".concat(t[3],".").concat(t[0],".").concat(t[2],".").concat(t[1]),"".concat(t[3],".").concat(t[1],".").concat(t[0],".").concat(t[2]),"".concat(t[3],".").concat(t[1],".").concat(t[2],".").concat(t[0]),"".concat(t[3],".").concat(t[2],".").concat(t[0],".").concat(t[1]),"".concat(t[3],".").concat(t[2],".").concat(t[1],".").concat(t[0])]}var Ve={};function uc(t){if(t.length===0||t.length===1)return t;var e=t.join(".");return Ve[e]||(Ve[e]=dc(t)),Ve[e]}function mc(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2?arguments[2]:void 0,n=t.filter(function(i){return i!=="token"}),r=uc(n);return r.reduce(function(i,o){return Ce(Ce({},i),a[o])},e)}function Ur(t){return t.join(" ")}function pc(t,e){var a=0;return function(n){return a+=1,n.map(function(r,i){return Dl({node:r,stylesheet:t,useInlineStyles:e,key:"code-segment-".concat(a,"-").concat(i)})})}}function Dl(t){var e=t.node,a=t.stylesheet,n=t.style,r=n===void 0?{}:n,i=t.useInlineStyles,o=t.key,s=e.properties,l=e.type,_=e.tagName,c=e.value;if(l==="text")return c;if(_){var u=pc(a,i),d;if(!i)d=Ce(Ce({},s),{},{className:Ur(s.className)});else{var m=Object.keys(a).reduce(function(S,f){return f.split(".").forEach(function(R){S.includes(R)||S.push(R)}),S},[]),E=s.className&&s.className.includes("token")?["token"]:[],g=s.className&&E.concat(s.className.filter(function(S){return!m.includes(S)}));d=Ce(Ce({},s),{},{className:Ur(g)||void 0,style:mc(s.className,Object.assign({},s.style,r),a)})}var T=u(e.children);return pe.createElement(_,cc({key:o},d),T)}}const Ec=function(t,e){var a=t.listLanguages();return a.indexOf(e)!==-1};var gc=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function Fr(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),a.push.apply(a,n)}return a}function se(t){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:[],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],n=0;n2&&arguments[2]!==void 0?arguments[2]:[];return Be({children:v,lineNumber:O,lineNumberStyle:s,largestLineNumber:o,showInlineLineNumbers:r,lineProps:a,className:N,showLineNumbers:n,wrapLongLines:l})}function g(v,O){if(n&&O&&r){var N=Ll(s,O,o);v.unshift(Ml(O,N))}return v}function T(v,O){var N=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return e||N.length>0?E(v,O,N):g(v,O)}for(var S=function(){var O=c[m],N=O.children[0].value,L=Tc(N);if(L){var M=N.split(` `);M.forEach(function(x,B){var y=n&&u.length+i,F={type:"text",value:"".concat(x,` diff --git a/docs/assets/WithTooltip-V3YHNWJZ-DqqgVbMQ.js b/docs/assets/WithTooltip-V3YHNWJZ-DzmTmVU4.js similarity index 56% rename from docs/assets/WithTooltip-V3YHNWJZ-DqqgVbMQ.js rename to docs/assets/WithTooltip-V3YHNWJZ-DzmTmVU4.js index a3a14600..4354f3f4 100644 --- a/docs/assets/WithTooltip-V3YHNWJZ-DqqgVbMQ.js +++ b/docs/assets/WithTooltip-V3YHNWJZ-DzmTmVU4.js @@ -1 +1 @@ -import{W as d,W as g,a as j}from"./chunk-HLWAVYOI-CFPuBJI5.js";import"./iframe-ovyJW9VA.js";import"../sb-preview/runtime.js";import"./index-CBqU2yxZ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./react-18-DnM9deRA.js";import"./index-DZGZymok.js";import"./pickBy-CU2rOOKe.js";import"./mapValues-CZh2vnSw.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./index-Cw1G72V2.js";import"./extends-CCbyfPlC.js";import"./assertThisInitialized-B9jnkVVz.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getPrototypeOf-BYVhAdwF.js";import"./cloneDeep-kl2wD128.js";import"./index-CKJfshIT.js";import"./index-CeKoIcWT.js";export{d as WithToolTipState,g as WithTooltip,j as WithTooltipPure}; +import{W as d,W as g,a as j}from"./chunk-HLWAVYOI-DX5qqaYu.js";import"./iframe-BQtATEn0.js";import"../sb-preview/runtime.js";import"./index-CBqU2yxZ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./react-18-DnM9deRA.js";import"./index-DZGZymok.js";import"./pickBy-Us6u5-To.js";import"./mapValues-LQZI9uWW.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./index-Cw1G72V2.js";import"./extends-CCbyfPlC.js";import"./assertThisInitialized-B9jnkVVz.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getPrototypeOf-BYVhAdwF.js";import"./cloneDeep-C80tdQ4I.js";import"./index-CKJfshIT.js";import"./index-mVz13F_n.js";export{d as WithToolTipState,g as WithTooltip,j as WithTooltipPure}; diff --git a/docs/assets/addDecorator-BCpt89nL.js b/docs/assets/addDecorator-ntFu4QYE.js similarity index 89% rename from docs/assets/addDecorator-BCpt89nL.js rename to docs/assets/addDecorator-ntFu4QYE.js index f516561e..64cb988b 100644 --- a/docs/assets/addDecorator-BCpt89nL.js +++ b/docs/assets/addDecorator-ntFu4QYE.js @@ -1 +1 @@ -import{d as n}from"./index-DfmhmaGJ.js";function i(o,s){for(var a=0;ae[r]})}}}return Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}var t={};Object.defineProperty(t,"__esModule",{value:!0});var c=t.decorators=void 0,f=n,u=[f.withKnobs];c=t.decorators=u;const p=i({__proto__:null,get decorators(){return c},default:t},[t]);export{p as a}; +import{d as n}from"./index-CAen7T_W.js";function i(o,s){for(var a=0;ae[r]})}}}return Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}var t={};Object.defineProperty(t,"__esModule",{value:!0});var c=t.decorators=void 0,f=n,u=[f.withKnobs];c=t.decorators=u;const p=i({__proto__:null,get decorators(){return c},default:t},[t]);export{p as a}; diff --git a/docs/assets/chunk-HLWAVYOI-CFPuBJI5.js b/docs/assets/chunk-HLWAVYOI-DX5qqaYu.js similarity index 99% rename from docs/assets/chunk-HLWAVYOI-CFPuBJI5.js rename to docs/assets/chunk-HLWAVYOI-DX5qqaYu.js index 0ad1ed70..354bfb70 100644 --- a/docs/assets/chunk-HLWAVYOI-CFPuBJI5.js +++ b/docs/assets/chunk-HLWAVYOI-DX5qqaYu.js @@ -1,4 +1,4 @@ -import{_ as Et}from"./iframe-ovyJW9VA.js";import{r as b,R as a}from"./index-CBqU2yxZ.js";import{r as Bc,u as Ic}from"./react-18-DnM9deRA.js";import{m as nr,r as Hc,s as Nc}from"./pickBy-CU2rOOKe.js";import{r as Mi,O as Zc}from"./index-DZGZymok.js";import{L as Bi,O as jc}from"./index-Cw1G72V2.js";import{_ as hn}from"./extends-CCbyfPlC.js";import{_ as Pc}from"./assertThisInitialized-B9jnkVVz.js";import{_ as Vc}from"./inheritsLoose-1HkgTRWY.js";import{_ as zc}from"./getPrototypeOf-BYVhAdwF.js";import{_ as Ii}from"./setPrototypeOf-DgZC2w_0.js";import{g as Hi,c as Vn}from"./_commonjsHelpers-BosuxZz1.js";import{G as qc,H as Ni,I as Uc,J as Wc}from"./mapValues-CZh2vnSw.js";import{c as Gc}from"./cloneDeep-kl2wD128.js";import{d as ve}from"./index-CKJfshIT.js";import{S as sl,s as xa,b as zn}from"./index-CeKoIcWT.js";var He=e=>`control-${e.replace(/\s+/g,"-")}`,bn=e=>`set-${e.replace(/\s+/g,"-")}`;const{global:Yc}=__STORYBOOK_MODULE_GLOBAL__,{logger:Kc}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var Xc=Object.create,Zi=Object.defineProperty,Jc=Object.getOwnPropertyDescriptor,ji=Object.getOwnPropertyNames,Qc=Object.getPrototypeOf,e0=Object.prototype.hasOwnProperty,oo=(e,t)=>function(){return t||(0,e[ji(e)[0]])((t={exports:{}}).exports,t),t.exports},t0=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of ji(t))!e0.call(e,o)&&o!==r&&Zi(e,o,{get:()=>t[o],enumerable:!(n=Jc(t,o))||n.enumerable});return e},Pi=(e,t,r)=>(r=e!=null?Xc(Qc(e)):{},t0(t||!e||!e.__esModule?Zi(r,"default",{value:e,enumerable:!0}):r,e));function Gt(){return Gt=Object.assign?Object.assign.bind():function(e){for(var t=1;t"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 Kr(e,t,r){return o0()?Kr=Reflect.construct.bind():Kr=function(n,o,l){var i=[null];i.push.apply(i,o);var s=Function.bind.apply(n,i),u=new s;return l&&br(u,l.prototype),u},Kr.apply(null,arguments)}function Aa(e){var t=typeof Map=="function"?new Map:void 0;return Aa=function(r){if(r===null||!a0(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,n)}function n(){return Kr(r,arguments,wa(this).constructor)}return n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),br(n,r)},Aa(e)}var l0={1:`Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }). +import{_ as Et}from"./iframe-BQtATEn0.js";import{r as b,R as a}from"./index-CBqU2yxZ.js";import{r as Bc,u as Ic}from"./react-18-DnM9deRA.js";import{m as nr,r as Hc,s as Nc}from"./pickBy-Us6u5-To.js";import{r as Mi,O as Zc}from"./index-DZGZymok.js";import{L as Bi,O as jc}from"./index-Cw1G72V2.js";import{_ as hn}from"./extends-CCbyfPlC.js";import{_ as Pc}from"./assertThisInitialized-B9jnkVVz.js";import{_ as Vc}from"./inheritsLoose-1HkgTRWY.js";import{_ as zc}from"./getPrototypeOf-BYVhAdwF.js";import{_ as Ii}from"./setPrototypeOf-DgZC2w_0.js";import{g as Hi,c as Vn}from"./_commonjsHelpers-BosuxZz1.js";import{G as qc,H as Ni,I as Uc,J as Wc}from"./mapValues-LQZI9uWW.js";import{c as Gc}from"./cloneDeep-C80tdQ4I.js";import{d as ve}from"./index-CKJfshIT.js";import{S as sl,s as xa,b as zn}from"./index-mVz13F_n.js";var He=e=>`control-${e.replace(/\s+/g,"-")}`,bn=e=>`set-${e.replace(/\s+/g,"-")}`;const{global:Yc}=__STORYBOOK_MODULE_GLOBAL__,{logger:Kc}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var Xc=Object.create,Zi=Object.defineProperty,Jc=Object.getOwnPropertyDescriptor,ji=Object.getOwnPropertyNames,Qc=Object.getPrototypeOf,e0=Object.prototype.hasOwnProperty,oo=(e,t)=>function(){return t||(0,e[ji(e)[0]])((t={exports:{}}).exports,t),t.exports},t0=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of ji(t))!e0.call(e,o)&&o!==r&&Zi(e,o,{get:()=>t[o],enumerable:!(n=Jc(t,o))||n.enumerable});return e},Pi=(e,t,r)=>(r=e!=null?Xc(Qc(e)):{},t0(t||!e||!e.__esModule?Zi(r,"default",{value:e,enumerable:!0}):r,e));function Gt(){return Gt=Object.assign?Object.assign.bind():function(e){for(var t=1;t"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 Kr(e,t,r){return o0()?Kr=Reflect.construct.bind():Kr=function(n,o,l){var i=[null];i.push.apply(i,o);var s=Function.bind.apply(n,i),u=new s;return l&&br(u,l.prototype),u},Kr.apply(null,arguments)}function Aa(e){var t=typeof Map=="function"?new Map:void 0;return Aa=function(r){if(r===null||!a0(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,n)}function n(){return Kr(r,arguments,wa(this).constructor)}return n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),br(n,r)},Aa(e)}var l0={1:`Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }). `,2:`Passed invalid arguments to hsla, please pass multiple numbers e.g. hsla(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }). @@ -226,9 +226,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho path { fill: currentColor; } -`,be=({icon:e,useSymbol:t,...r})=>a.createElement(Eu,{viewBox:"0 0 14 14",width:"14px",height:"14px",...r},t?a.createElement("use",{xlinkHref:`#icon--${e}`}):Fr[e]),tm=b.memo(function({icons:e=Object.keys(Fr)}){return a.createElement(Eu,{viewBox:"0 0 14 14",style:{position:"absolute",width:0,height:0},"data-chromatic":"ignore"},e.map(t=>a.createElement("symbol",{id:`icon--${t}`,key:t},Fr[t])))}),rm=0,nm=e=>e.button===rm&&!e.altKey&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey,am=(e,t)=>{nm(e)&&(e.preventDefault(),t(e))},om=R.span(({withArrow:e})=>e?{"> svg:last-of-type":{height:"0.7em",width:"0.7em",marginRight:0,marginLeft:"0.25em",bottom:"auto",verticalAlign:"inherit"}}:{},({containsIcon:e})=>e?{svg:{height:"1em",width:"1em",verticalAlign:"middle",position:"relative",bottom:0,marginRight:0}}:{}),lm=R.a(({theme:e})=>({display:"inline-block",transition:"all 150ms ease-out",textDecoration:"none",color:e.color.secondary,"&:hover, &:focus":{cursor:"pointer",color:Ut(.07,e.color.secondary),"svg path:not([fill])":{fill:Ut(.07,e.color.secondary)}},"&:active":{color:Ut(.1,e.color.secondary),"svg path:not([fill])":{fill:Ut(.1,e.color.secondary)}},svg:{display:"inline-block",height:"1em",width:"1em",verticalAlign:"text-top",position:"relative",bottom:"-0.125em",marginRight:"0.4em","& path":{fill:e.color.secondary}}}),({theme:e,secondary:t,tertiary:r})=>{let n;return t&&(n=[e.textMutedColor,e.color.dark,e.color.darker]),r&&(n=[e.color.dark,e.color.darkest,e.textMutedColor]),n?{color:n[0],"svg path:not([fill])":{fill:n[0]},"&:hover":{color:n[1],"svg path:not([fill])":{fill:n[1]}},"&:active":{color:n[2],"svg path:not([fill])":{fill:n[2]}}}:{}},({nochrome:e})=>e?{color:"inherit","&:hover, &:active":{color:"inherit",textDecoration:"underline"}}:{},({theme:e,inverse:t})=>t?{color:e.color.lightest,":not([fill])":{fill:e.color.lightest},"&:hover":{color:e.color.lighter,"svg path:not([fill])":{fill:e.color.lighter}},"&:active":{color:e.color.light,"svg path:not([fill])":{fill:e.color.light}}}:{},({isButton:e})=>e?{border:0,borderRadius:0,background:"none",padding:0,fontSize:"inherit"}:{}),vt=({cancel:e,children:t,onClick:r,withArrow:n,containsIcon:o,className:l,...i})=>a.createElement(lm,{...i,onClick:r&&e?s=>am(s,r):r,className:l},a.createElement(om,{withArrow:n,containsIcon:o},t,n&&a.createElement(be,{icon:"arrowright"})));vt.defaultProps={cancel:!0,className:void 0,style:void 0,onClick:void 0,withArrow:!1,containsIcon:!1};var im=R.div(({theme:e})=>({fontSize:`${e.typography.size.s2}px`,lineHeight:"1.6",h1:{fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},h2:{fontSize:`${e.typography.size.m2}px`,borderBottom:`1px solid ${e.appBorderColor}`},h3:{fontSize:`${e.typography.size.m1}px`},h4:{fontSize:`${e.typography.size.s3}px`},h5:{fontSize:`${e.typography.size.s2}px`},h6:{fontSize:`${e.typography.size.s2}px`,color:e.color.dark},"pre:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"pre pre, pre.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px"},"pre pre code, pre.prismjs code":{color:"inherit",fontSize:"inherit"},"pre code":{margin:0,padding:0,whiteSpace:"pre",border:"none",background:"transparent"},"pre code, pre tt":{backgroundColor:"transparent",border:"none"},"body > *:first-of-type":{marginTop:"0 !important"},"body > *:last-child":{marginBottom:"0 !important"},a:{color:e.color.secondary,textDecoration:"none"},"a.absent":{color:"#cc0000"},"a.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0},"h1, h2, h3, h4, h5, h6":{margin:"20px 0 10px",padding:0,cursor:"text",position:"relative","&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& tt, & code":{fontSize:"inherit"}},"h1:first-of-type + h2":{marginTop:0,paddingTop:0},"p, blockquote, ul, ol, dl, li, table, pre":{margin:"15px 0"},hr:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},"body > h1:first-of-type, body > h2:first-of-type, body > h3:first-of-type, body > h4:first-of-type, body > h5:first-of-type, body > h6:first-of-type":{marginTop:0,paddingTop:0},"body > h1:first-of-type + h2":{marginTop:0,paddingTop:0},"a:first-of-type h1, a:first-of-type h2, a:first-of-type h3, a:first-of-type h4, a:first-of-type h5, a:first-of-type h6":{marginTop:0,paddingTop:0},"h1 p, h2 p, h3 p, h4 p, h5 p, h6 p":{marginTop:0},"li p.first":{display:"inline-block"},"ul, ol":{paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},dl:{padding:0},"dl dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",margin:"0 0 15px",padding:"0 15px","&:first-of-type":{padding:0},"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},blockquote:{borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},table:{padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:"white",margin:0,padding:0,"& th":{fontWeight:"bold",border:`1px solid ${e.appBorderColor}`,textAlign:"left",margin:0,padding:"6px 13px"},"& td":{border:`1px solid ${e.appBorderColor}`,textAlign:"left",margin:0,padding:"6px 13px"},"&:nth-of-type(2n)":{backgroundColor:e.color.lighter},"& th :first-of-type, & td :first-of-type":{marginTop:0},"& th :last-child, & td :last-child":{marginBottom:0}}},img:{maxWidth:"100%"},"span.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"span.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"span.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"span.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"span.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}},"code, tt":{margin:"0 2px",padding:"0 5px",whiteSpace:"nowrap",border:`1px solid ${e.color.mediumlight}`,backgroundColor:e.color.lighter,borderRadius:3,color:e.base==="dark"&&e.color.darkest}})),Mt=[],rr=null,sm=b.lazy(async()=>{let{SyntaxHighlighter:e}=await Et(()=>import("./syntaxhighlighter-B5GMVT5T-vdlkRt9a.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]),import.meta.url);return Mt.length>0&&(Mt.forEach(t=>{e.registerLanguage(...t)}),Mt=[]),rr===null&&(rr=e),{default:t=>a.createElement(e,{...t})}}),um=b.lazy(async()=>{let[{SyntaxHighlighter:e},{formatter:t}]=await Promise.all([Et(()=>import("./syntaxhighlighter-B5GMVT5T-vdlkRt9a.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]),import.meta.url),Et(()=>import("./formatter-SWP5E3XI-B4uEpjfg.js"),__vite__mapDeps([18,6,7,3,8,1,2,4,5,9,10,11,12,13,14,15,16,17]),import.meta.url)]);return Mt.length>0&&(Mt.forEach(r=>{e.registerLanguage(...r)}),Mt=[]),rr===null&&(rr=e),{default:r=>a.createElement(e,{...r,formatter:t})}}),Ln=e=>a.createElement(b.Suspense,{fallback:a.createElement("div",null)},e.format!==!1?a.createElement(um,{...e}):a.createElement(sm,{...e}));Ln.registerLanguage=(...e)=>{if(rr!==null){rr.registerLanguage(...e);return}Mt.push(e)};var cm=e=>typeof e=="number"?e:Number(e),dm=R.div(({theme:e,col:t,row:r=1})=>t?{display:"inline-block",verticalAlign:"inherit","& > *":{marginLeft:t*e.layoutMargin,verticalAlign:"inherit"},[`& > *:first-child${Da}`]:{marginLeft:0}}:{"& > *":{marginTop:r*e.layoutMargin},[`& > *:first-child${Da}`]:{marginTop:0}},({theme:e,outer:t,col:r,row:n})=>{switch(!0){case!!(t&&r):return{marginLeft:t*e.layoutMargin,marginRight:t*e.layoutMargin};case!!(t&&n):return{marginTop:t*e.layoutMargin,marginBottom:t*e.layoutMargin};default:return{}}}),pm=({col:e,row:t,outer:r,children:n,...o})=>{let l=cm(typeof r=="number"||!r?r:e||t);return a.createElement(dm,{col:e,row:t,outer:l,...o},n)},fm=R.div(({theme:e})=>({fontWeight:e.typography.weight.bold})),mm=R.div(),gm=R.div(({theme:e})=>({padding:30,textAlign:"center",color:e.color.defaultText,fontSize:e.typography.size.s2-1})),xu=({children:e,...t})=>{let[r,n]=b.Children.toArray(e);return a.createElement(gm,{...t},a.createElement(fm,null,r),n&&a.createElement(mm,null,n))},hm=R.div(({scale:e=1,elementHeight:t})=>({height:t||"auto",transformOrigin:"top left",transform:`scale(${1/e})`}));function bm({scale:e,children:t}){let r=b.useRef(null),[n,o]=b.useState(0),l=b.useCallback(({height:i})=>{i&&o(i/e)},[e]);return b.useEffect(()=>{r.current&&o(r.current.getBoundingClientRect().height)},[e]),Xs({ref:r,onResize:l}),a.createElement(hm,{scale:e,elementHeight:n},a.createElement("div",{ref:r,className:"innerZoomElementWrapper"},t))}var ym=class extends b.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{iFrameRef:e}=this.props;this.iframe=e.current}shouldComponentUpdate(e){let{scale:t,active:r}=this.props;return t!==e.scale&&this.setIframeInnerZoom(e.scale),r!==e.active&&this.iframe.setAttribute("data-is-storybook",e.active?"true":"false"),e.children.props.src!==this.props.children.props.src}setIframeInnerZoom(e){try{Object.assign(this.iframe.contentDocument.body.style,{width:`${e*100}%`,height:`${e*100}%`,transform:`scale(${1/e})`,transformOrigin:"top left"})}catch{this.setIframeZoom(e)}}setIframeZoom(e){Object.assign(this.iframe.style,{width:`${e*100}%`,height:`${e*100}%`,transform:`scale(${1/e})`,transformOrigin:"top left"})}render(){let{children:e}=this.props;return a.createElement(a.Fragment,null,e)}},wu={Element:bm,IFrame:ym},{document:vm}=hf,Em=R.strong(({theme:e})=>({color:e.color.orange})),xm=R.strong(({theme:e})=>({color:e.color.ancillary,textDecoration:"underline"})),Jl=R.em(({theme:e})=>({color:e.textMutedColor})),wm=/(Error): (.*)\n/,Am=/at (?:(.*) )?\(?(.+)\)?/,Cm=/([^@]+)?(?:\/<)?@(.+)?/,Sm=/([^@]+)?@(.+)?/,Au=({error:e})=>{if(!e)return a.createElement(b.Fragment,null,"This error has no stack or message");if(!e.stack)return a.createElement(b.Fragment,null,e.message||"This error has no stack or message");let t=e.stack.toString();t&&e.message&&!t.includes(e.message)&&(t=`Error: ${e.message} +`,be=({icon:e,useSymbol:t,...r})=>a.createElement(Eu,{viewBox:"0 0 14 14",width:"14px",height:"14px",...r},t?a.createElement("use",{xlinkHref:`#icon--${e}`}):Fr[e]),tm=b.memo(function({icons:e=Object.keys(Fr)}){return a.createElement(Eu,{viewBox:"0 0 14 14",style:{position:"absolute",width:0,height:0},"data-chromatic":"ignore"},e.map(t=>a.createElement("symbol",{id:`icon--${t}`,key:t},Fr[t])))}),rm=0,nm=e=>e.button===rm&&!e.altKey&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey,am=(e,t)=>{nm(e)&&(e.preventDefault(),t(e))},om=R.span(({withArrow:e})=>e?{"> svg:last-of-type":{height:"0.7em",width:"0.7em",marginRight:0,marginLeft:"0.25em",bottom:"auto",verticalAlign:"inherit"}}:{},({containsIcon:e})=>e?{svg:{height:"1em",width:"1em",verticalAlign:"middle",position:"relative",bottom:0,marginRight:0}}:{}),lm=R.a(({theme:e})=>({display:"inline-block",transition:"all 150ms ease-out",textDecoration:"none",color:e.color.secondary,"&:hover, &:focus":{cursor:"pointer",color:Ut(.07,e.color.secondary),"svg path:not([fill])":{fill:Ut(.07,e.color.secondary)}},"&:active":{color:Ut(.1,e.color.secondary),"svg path:not([fill])":{fill:Ut(.1,e.color.secondary)}},svg:{display:"inline-block",height:"1em",width:"1em",verticalAlign:"text-top",position:"relative",bottom:"-0.125em",marginRight:"0.4em","& path":{fill:e.color.secondary}}}),({theme:e,secondary:t,tertiary:r})=>{let n;return t&&(n=[e.textMutedColor,e.color.dark,e.color.darker]),r&&(n=[e.color.dark,e.color.darkest,e.textMutedColor]),n?{color:n[0],"svg path:not([fill])":{fill:n[0]},"&:hover":{color:n[1],"svg path:not([fill])":{fill:n[1]}},"&:active":{color:n[2],"svg path:not([fill])":{fill:n[2]}}}:{}},({nochrome:e})=>e?{color:"inherit","&:hover, &:active":{color:"inherit",textDecoration:"underline"}}:{},({theme:e,inverse:t})=>t?{color:e.color.lightest,":not([fill])":{fill:e.color.lightest},"&:hover":{color:e.color.lighter,"svg path:not([fill])":{fill:e.color.lighter}},"&:active":{color:e.color.light,"svg path:not([fill])":{fill:e.color.light}}}:{},({isButton:e})=>e?{border:0,borderRadius:0,background:"none",padding:0,fontSize:"inherit"}:{}),vt=({cancel:e,children:t,onClick:r,withArrow:n,containsIcon:o,className:l,...i})=>a.createElement(lm,{...i,onClick:r&&e?s=>am(s,r):r,className:l},a.createElement(om,{withArrow:n,containsIcon:o},t,n&&a.createElement(be,{icon:"arrowright"})));vt.defaultProps={cancel:!0,className:void 0,style:void 0,onClick:void 0,withArrow:!1,containsIcon:!1};var im=R.div(({theme:e})=>({fontSize:`${e.typography.size.s2}px`,lineHeight:"1.6",h1:{fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},h2:{fontSize:`${e.typography.size.m2}px`,borderBottom:`1px solid ${e.appBorderColor}`},h3:{fontSize:`${e.typography.size.m1}px`},h4:{fontSize:`${e.typography.size.s3}px`},h5:{fontSize:`${e.typography.size.s2}px`},h6:{fontSize:`${e.typography.size.s2}px`,color:e.color.dark},"pre:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"pre pre, pre.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px"},"pre pre code, pre.prismjs code":{color:"inherit",fontSize:"inherit"},"pre code":{margin:0,padding:0,whiteSpace:"pre",border:"none",background:"transparent"},"pre code, pre tt":{backgroundColor:"transparent",border:"none"},"body > *:first-of-type":{marginTop:"0 !important"},"body > *:last-child":{marginBottom:"0 !important"},a:{color:e.color.secondary,textDecoration:"none"},"a.absent":{color:"#cc0000"},"a.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0},"h1, h2, h3, h4, h5, h6":{margin:"20px 0 10px",padding:0,cursor:"text",position:"relative","&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& tt, & code":{fontSize:"inherit"}},"h1:first-of-type + h2":{marginTop:0,paddingTop:0},"p, blockquote, ul, ol, dl, li, table, pre":{margin:"15px 0"},hr:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},"body > h1:first-of-type, body > h2:first-of-type, body > h3:first-of-type, body > h4:first-of-type, body > h5:first-of-type, body > h6:first-of-type":{marginTop:0,paddingTop:0},"body > h1:first-of-type + h2":{marginTop:0,paddingTop:0},"a:first-of-type h1, a:first-of-type h2, a:first-of-type h3, a:first-of-type h4, a:first-of-type h5, a:first-of-type h6":{marginTop:0,paddingTop:0},"h1 p, h2 p, h3 p, h4 p, h5 p, h6 p":{marginTop:0},"li p.first":{display:"inline-block"},"ul, ol":{paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},dl:{padding:0},"dl dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",margin:"0 0 15px",padding:"0 15px","&:first-of-type":{padding:0},"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},blockquote:{borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},table:{padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:"white",margin:0,padding:0,"& th":{fontWeight:"bold",border:`1px solid ${e.appBorderColor}`,textAlign:"left",margin:0,padding:"6px 13px"},"& td":{border:`1px solid ${e.appBorderColor}`,textAlign:"left",margin:0,padding:"6px 13px"},"&:nth-of-type(2n)":{backgroundColor:e.color.lighter},"& th :first-of-type, & td :first-of-type":{marginTop:0},"& th :last-child, & td :last-child":{marginBottom:0}}},img:{maxWidth:"100%"},"span.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"span.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"span.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"span.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"span.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}},"code, tt":{margin:"0 2px",padding:"0 5px",whiteSpace:"nowrap",border:`1px solid ${e.color.mediumlight}`,backgroundColor:e.color.lighter,borderRadius:3,color:e.base==="dark"&&e.color.darkest}})),Mt=[],rr=null,sm=b.lazy(async()=>{let{SyntaxHighlighter:e}=await Et(()=>import("./syntaxhighlighter-B5GMVT5T-B1t35bt5.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]),import.meta.url);return Mt.length>0&&(Mt.forEach(t=>{e.registerLanguage(...t)}),Mt=[]),rr===null&&(rr=e),{default:t=>a.createElement(e,{...t})}}),um=b.lazy(async()=>{let[{SyntaxHighlighter:e},{formatter:t}]=await Promise.all([Et(()=>import("./syntaxhighlighter-B5GMVT5T-B1t35bt5.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]),import.meta.url),Et(()=>import("./formatter-SWP5E3XI-By3sFlHh.js"),__vite__mapDeps([18,6,7,3,8,1,2,4,5,9,10,11,12,13,14,15,16,17]),import.meta.url)]);return Mt.length>0&&(Mt.forEach(r=>{e.registerLanguage(...r)}),Mt=[]),rr===null&&(rr=e),{default:r=>a.createElement(e,{...r,formatter:t})}}),Ln=e=>a.createElement(b.Suspense,{fallback:a.createElement("div",null)},e.format!==!1?a.createElement(um,{...e}):a.createElement(sm,{...e}));Ln.registerLanguage=(...e)=>{if(rr!==null){rr.registerLanguage(...e);return}Mt.push(e)};var cm=e=>typeof e=="number"?e:Number(e),dm=R.div(({theme:e,col:t,row:r=1})=>t?{display:"inline-block",verticalAlign:"inherit","& > *":{marginLeft:t*e.layoutMargin,verticalAlign:"inherit"},[`& > *:first-child${Da}`]:{marginLeft:0}}:{"& > *":{marginTop:r*e.layoutMargin},[`& > *:first-child${Da}`]:{marginTop:0}},({theme:e,outer:t,col:r,row:n})=>{switch(!0){case!!(t&&r):return{marginLeft:t*e.layoutMargin,marginRight:t*e.layoutMargin};case!!(t&&n):return{marginTop:t*e.layoutMargin,marginBottom:t*e.layoutMargin};default:return{}}}),pm=({col:e,row:t,outer:r,children:n,...o})=>{let l=cm(typeof r=="number"||!r?r:e||t);return a.createElement(dm,{col:e,row:t,outer:l,...o},n)},fm=R.div(({theme:e})=>({fontWeight:e.typography.weight.bold})),mm=R.div(),gm=R.div(({theme:e})=>({padding:30,textAlign:"center",color:e.color.defaultText,fontSize:e.typography.size.s2-1})),xu=({children:e,...t})=>{let[r,n]=b.Children.toArray(e);return a.createElement(gm,{...t},a.createElement(fm,null,r),n&&a.createElement(mm,null,n))},hm=R.div(({scale:e=1,elementHeight:t})=>({height:t||"auto",transformOrigin:"top left",transform:`scale(${1/e})`}));function bm({scale:e,children:t}){let r=b.useRef(null),[n,o]=b.useState(0),l=b.useCallback(({height:i})=>{i&&o(i/e)},[e]);return b.useEffect(()=>{r.current&&o(r.current.getBoundingClientRect().height)},[e]),Xs({ref:r,onResize:l}),a.createElement(hm,{scale:e,elementHeight:n},a.createElement("div",{ref:r,className:"innerZoomElementWrapper"},t))}var ym=class extends b.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{iFrameRef:e}=this.props;this.iframe=e.current}shouldComponentUpdate(e){let{scale:t,active:r}=this.props;return t!==e.scale&&this.setIframeInnerZoom(e.scale),r!==e.active&&this.iframe.setAttribute("data-is-storybook",e.active?"true":"false"),e.children.props.src!==this.props.children.props.src}setIframeInnerZoom(e){try{Object.assign(this.iframe.contentDocument.body.style,{width:`${e*100}%`,height:`${e*100}%`,transform:`scale(${1/e})`,transformOrigin:"top left"})}catch{this.setIframeZoom(e)}}setIframeZoom(e){Object.assign(this.iframe.style,{width:`${e*100}%`,height:`${e*100}%`,transform:`scale(${1/e})`,transformOrigin:"top left"})}render(){let{children:e}=this.props;return a.createElement(a.Fragment,null,e)}},wu={Element:bm,IFrame:ym},{document:vm}=hf,Em=R.strong(({theme:e})=>({color:e.color.orange})),xm=R.strong(({theme:e})=>({color:e.color.ancillary,textDecoration:"underline"})),Jl=R.em(({theme:e})=>({color:e.textMutedColor})),wm=/(Error): (.*)\n/,Am=/at (?:(.*) )?\(?(.+)\)?/,Cm=/([^@]+)?(?:\/<)?@(.+)?/,Sm=/([^@]+)?@(.+)?/,Au=({error:e})=>{if(!e)return a.createElement(b.Fragment,null,"This error has no stack or message");if(!e.stack)return a.createElement(b.Fragment,null,e.message||"This error has no stack or message");let t=e.stack.toString();t&&e.message&&!t.includes(e.message)&&(t=`Error: ${e.message} -${t}`);let r=t.match(wm);if(!r)return a.createElement(b.Fragment,null,t);let[,n,o]=r,l=t.split(/\n/).slice(1),[,...i]=l.map(s=>{let u=s.match(Am)||s.match(Cm)||s.match(Sm);return u?{name:(u[1]||"").replace("/<",""),location:u[2].replace(vm.location.origin,"")}:null}).filter(Boolean);return a.createElement(b.Fragment,null,a.createElement("span",null,n),": ",a.createElement(Em,null,o),a.createElement("br",null),i.map((s,u)=>s.name?a.createElement(b.Fragment,{key:u}," ","at ",a.createElement(xm,null,s.name)," (",a.createElement(Jl,null,s.location),")",a.createElement("br",null)):a.createElement(b.Fragment,{key:u}," ","at ",a.createElement(Jl,null,s.location),a.createElement("br",null))))},Cu=R.button(({small:e,theme:t})=>({border:0,borderRadius:"3em",cursor:"pointer",display:"inline-block",overflow:"hidden",padding:e?"8px 16px":"13px 20px",position:"relative",textAlign:"center",textDecoration:"none",transitionProperty:"background, box-shadow",transitionDuration:"150ms",transitionTimingFunction:"ease-out",verticalAlign:"top",whiteSpace:"nowrap",userSelect:"none",opacity:1,margin:0,background:"transparent",fontSize:`${e?t.typography.size.s1:t.typography.size.s2-1}px`,fontWeight:t.typography.weight.bold,lineHeight:"1",svg:{display:"inline-block",height:e?12:14,width:e?12:14,verticalAlign:"top",marginRight:e?4:6,marginTop:e?0:-1,marginBottom:e?0:-1,pointerEvents:"none",path:{fill:"currentColor"}}}),({disabled:e})=>e?{cursor:"not-allowed !important",opacity:.5,"&:hover":{transform:"none"}}:{},({containsIcon:e,small:t})=>e?{svg:{display:"block",margin:0},...t?{padding:10}:{padding:13}}:{},({theme:e,primary:t,secondary:r,gray:n})=>{let o;return n?o=e.color.mediumlight:r?o=e.color.secondary:t&&(o=e.color.primary),o?{background:o,color:n?e.color.darkest:e.color.lightest,"&:hover":{background:Ut(.05,o)},"&:active":{boxShadow:"rgba(0, 0, 0, 0.1) 0 0 0 3em inset"},"&:focus":{boxShadow:`${st(o,1)} 0 1px 9px 2px`,outline:"none"},"&:focus:hover":{boxShadow:`${st(o,.2)} 0 8px 18px 0px`}}:{}},({theme:e,tertiary:t,inForm:r,small:n})=>t?{background:e.button.background,color:e.input.color,boxShadow:`${e.button.border} 0 0 0 1px inset`,borderRadius:e.input.borderRadius,...r&&n?{padding:"10px 16px"}:{},"&:hover":{background:e.base==="light"?Ut(.02,e.button.background):Vf(.03,e.button.background),...r?{}:{boxShadow:"rgba(0,0,0,.2) 0 2px 6px 0, rgba(0,0,0,.1) 0 0 0 1px inset"}},"&:active":{background:e.button.background},"&:focus":{boxShadow:`${st(e.color.secondary,1)} 0 0 0 1px inset`,outline:"none"}}:{},({theme:e,outline:t})=>t?{boxShadow:`${ye(.8,e.color.defaultText)} 0 0 0 1px inset`,color:ye(.3,e.color.defaultText),background:"transparent","&:hover, &:focus":{boxShadow:`${ye(.5,e.color.defaultText)} 0 0 0 1px inset`,outline:"none"},"&:active":{boxShadow:`${ye(.5,e.color.defaultText)} 0 0 0 2px inset`,color:ye(0,e.color.defaultText)}}:{},({theme:e,outline:t,primary:r})=>{let n=e.color.primary;return t&&r?{boxShadow:`${n} 0 0 0 1px inset`,color:n,"svg path:not([fill])":{fill:n},"&:hover":{boxShadow:`${n} 0 0 0 1px inset`,background:"transparent"},"&:active":{background:n,boxShadow:`${n} 0 0 0 1px inset`,color:e.color.tertiary},"&:focus":{boxShadow:`${n} 0 0 0 1px inset, ${st(n,.4)} 0 1px 9px 2px`,outline:"none"},"&:focus:hover":{boxShadow:`${n} 0 0 0 1px inset, ${st(n,.2)} 0 8px 18px 0px`}}:{}},({theme:e,outline:t,primary:r,secondary:n})=>{let o;return n?o=e.color.secondary:r&&(o=e.color.primary),t&&o?{boxShadow:`${o} 0 0 0 1px inset`,color:o,"svg path:not([fill])":{fill:o},"&:hover":{boxShadow:`${o} 0 0 0 1px inset`,background:"transparent"},"&:active":{background:o,boxShadow:`${o} 0 0 0 1px inset`,color:e.color.tertiary},"&:focus":{boxShadow:`${o} 0 0 0 1px inset, ${st(o,.4)} 0 1px 9px 2px`,outline:"none"},"&:focus:hover":{boxShadow:`${o} 0 0 0 1px inset, ${st(o,.2)} 0 8px 18px 0px`}}:{}}),km=Cu.withComponent("a"),Su=Object.assign(b.forwardRef(function({isLink:e,children:t,...r},n){return e?a.createElement(km,{...r,ref:n},t):a.createElement(Cu,{...r,ref:n},t)}),{defaultProps:{isLink:!1}}),Rm=R.label(({theme:e})=>({display:"flex",borderBottom:`1px solid ${e.appBorderColor}`,margin:"0 15px",padding:"8px 0","&:last-child":{marginBottom:"3rem"}})),Tm=R.span(({theme:e})=>({minWidth:100,fontWeight:e.typography.weight.bold,marginRight:15,display:"flex",justifyContent:"flex-start",alignItems:"center",lineHeight:"16px"})),ku=({label:e,children:t,...r})=>a.createElement(Rm,{...r},e?a.createElement(Tm,null,a.createElement("span",null,e)):null,t);ku.defaultProps={label:void 0};function qa(){return qa=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[o]=e[o]);return r}var Ql=function(e,t){if(typeof e=="function"){e(t);return}e.current=t},Om=function(e,t){var r=b.useRef();return b.useCallback(function(n){e.current=n,r.current&&Ql(r.current,null),r.current=t,t&&Ql(t,n)},[t])},Lm=Om,Dm=function(){},_m=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],$m=function(e,t){e.cacheMeasurements,e.maxRows,e.minRows;var r=e.onChange,n=r===void 0?Dm:r;e.onHeightChange;var o=Fm(e,_m);o.value;var l=b.useRef(null),i=Lm(l,t);return b.useRef(0),b.useRef(),b.createElement("textarea",qa({},o,{onChange:n,ref:i}))},Mm=b.forwardRef($m),Bm={appearance:"none",border:"0 none",boxSizing:"inherit",display:" block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},Zo=({theme:e})=>({...Bm,transition:"box-shadow 200ms ease-out, opacity 200ms ease-out",color:e.input.color||"inherit",background:e.input.background,boxShadow:`${e.input.border} 0 0 0 1px inset`,borderRadius:e.input.borderRadius,fontSize:e.typography.size.s2-1,lineHeight:"20px",padding:"6px 10px",boxSizing:"border-box",height:32,'&[type="file"]':{height:"auto"},"&:focus":{boxShadow:`${e.color.secondary} 0 0 0 1px inset`,outline:"none"},"&[disabled]":{cursor:"not-allowed",opacity:.5},"&:-webkit-autofill":{WebkitBoxShadow:`0 0 0 3em ${e.color.lightest} inset`},"&::placeholder":{color:e.textMutedColor,opacity:1}}),Dn=({size:e})=>{switch(e){case"100%":return{width:"100%"};case"flex":return{flex:1};case"auto":default:return{display:"inline"}}},Ru=({align:e})=>{switch(e){case"end":return{textAlign:"right"};case"center":return{textAlign:"center"};case"start":default:return{textAlign:"left"}}},_n=({valid:e,theme:t})=>{switch(e){case"valid":return{boxShadow:`${t.color.positive} 0 0 0 1px inset !important`};case"error":return{boxShadow:`${t.color.negative} 0 0 0 1px inset !important`};case"warn":return{boxShadow:`${t.color.warning} 0 0 0 1px inset`};case void 0:case null:default:return{}}},Im=Object.assign(R(b.forwardRef(function({size:e,valid:t,align:r,...n},o){return a.createElement("input",{...n,ref:o})}))(Zo,Dn,Ru,_n,{minHeight:32}),{displayName:"Input"}),Hm=Object.assign(R(b.forwardRef(function({size:e,valid:t,align:r,...n},o){return a.createElement("select",{...n,ref:o})}))(Zo,Dn,_n,{height:32,userSelect:"none",paddingRight:20,appearance:"menulist"}),{displayName:"Select"}),Nm=Object.assign(R(b.forwardRef(function({size:e,valid:t,align:r,...n},o){return a.createElement(Mm,{...n,ref:o})}))(Zo,Dn,Ru,_n,({height:e=400})=>({overflow:"visible",maxHeight:e})),{displayName:"Textarea"}),Zm=R(b.forwardRef(function({size:e,valid:t,align:r,...n},o){return a.createElement(Su,{...n,ref:o})}))(Dn,_n,{userSelect:"none",overflow:"visible",zIndex:2,"&:hover":{transform:"none"}}),jm=Object.assign(b.forwardRef(function(e,t){return a.createElement(Zm,{...e,tertiary:!0,small:!0,inForm:!0,ref:t})}),{displayName:"Button"}),Ie=Object.assign(R.form({boxSizing:"border-box",width:"100%"}),{Field:ku,Input:Im,Select:Hm,Textarea:Nm,Button:jm}),Pm=b.lazy(()=>Et(()=>import("./WithTooltip-V3YHNWJZ-DqqgVbMQ.js"),__vite__mapDeps([19,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]),import.meta.url).then(e=>({default:e.WithTooltip}))),Vm=e=>a.createElement(b.Suspense,{fallback:a.createElement("div",null)},a.createElement(Pm,{...e})),zm=b.lazy(()=>Et(()=>import("./WithTooltip-V3YHNWJZ-DqqgVbMQ.js"),__vite__mapDeps([19,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]),import.meta.url).then(e=>({default:e.WithTooltipPure}))),Tu=e=>a.createElement(b.Suspense,{fallback:a.createElement("div",null)},a.createElement(zm,{...e})),qm=R.div(({theme:e})=>({fontWeight:e.typography.weight.bold})),Um=R.span(),Wm=R.div(({theme:e})=>({marginTop:8,textAlign:"center","> *":{margin:"0 8px",fontWeight:e.typography.weight.bold}})),Gm=R.div(({theme:e})=>({color:e.color.defaultText,lineHeight:"18px"})),Ym=R.div({padding:15,width:280,boxSizing:"border-box"}),Fu=({title:e,desc:t,links:r})=>a.createElement(Ym,null,a.createElement(Gm,null,e&&a.createElement(qm,null,e),t&&a.createElement(Um,null,t)),r&&a.createElement(Wm,null,r.map(({title:n,...o})=>a.createElement(vt,{...o,key:n},n))));Fu.defaultProps={title:null,desc:null,links:null};var Km=R.div(({theme:e})=>({padding:"2px 6px",lineHeight:"16px",fontSize:10,fontWeight:e.typography.weight.bold,color:e.color.lightest,boxShadow:"0 0 5px 0 rgba(0, 0, 0, 0.3)",borderRadius:4,whiteSpace:"nowrap",pointerEvents:"none",zIndex:-1,background:e.base==="light"?"rgba(60, 60, 60, 0.9)":"rgba(0, 0, 0, 0.95)",margin:6})),Xm=({note:e,...t})=>a.createElement(Km,{...t},e),Jm=R(({active:e,loading:t,disabled:r,...n})=>a.createElement("span",{...n}))(({theme:e})=>({color:e.color.defaultText,fontWeight:e.typography.weight.regular}),({active:e,theme:t})=>e?{color:t.color.secondary,fontWeight:t.typography.weight.bold}:{},({loading:e,theme:t})=>e?{display:"inline-block",flex:"none",...t.animation.inlineGlow}:{},({disabled:e,theme:t})=>e?{color:ye(.7,t.color.defaultText)}:{}),Qm=R.span({display:"flex","& svg":{height:12,width:12,margin:"3px 0",verticalAlign:"top"},"& path":{fill:"inherit"}}),eg=R.span({flex:1,textAlign:"left",display:"flex",flexDirection:"column"},({isIndented:e})=>e?{marginLeft:24}:{}),tg=R.span(({theme:e})=>({fontSize:"11px",lineHeight:"14px"}),({active:e,theme:t})=>e?{color:t.color.secondary}:{},({theme:e,disabled:t})=>t?{color:e.textMutedColor}:{}),ei=R.span(({active:e,theme:t})=>e?{"& svg":{opacity:1},"& svg path:not([fill])":{fill:t.color.secondary}}:{},()=>({display:"flex",maxWidth:14})),rg=R.a(({theme:e})=>({fontSize:e.typography.size.s1,transition:"all 150ms ease-out",color:e.color.dark,textDecoration:"none",cursor:"pointer",justifyContent:"space-between",lineHeight:"18px",padding:"7px 10px",display:"flex",alignItems:"center","& > * + *":{paddingLeft:10},"&:hover":{background:e.background.hoverable},"&:hover svg":{opacity:1}}),({disabled:e})=>e?{cursor:"not-allowed"}:{}),ng=nr(100)((e,t,r)=>{let n={};return e&&Object.assign(n,{onClick:e}),t&&Object.assign(n,{href:t}),r&&t&&Object.assign(n,{to:t,as:r}),n}),Ou=({loading:e,left:t,title:r,center:n,right:o,icon:l,active:i,disabled:s,isIndented:u,href:c,onClick:d,LinkWrapper:h,...m})=>{let p=ng(d,c,h),g={active:i,disabled:s},f=typeof l=="string"&&Fr[l];return a.createElement(rg,{...g,...m,...p},l?a.createElement(ei,{...g},f?a.createElement(be,{icon:l}):l):t&&a.createElement(ei,{...g},t),r||n?a.createElement(eg,{isIndented:!t&&!l&&u},r&&a.createElement(Jm,{...g,loading:e},r),n&&a.createElement(tg,{...g},n)):null,o&&a.createElement(Qm,{...g},o))};Ou.defaultProps={loading:!1,left:null,title:a.createElement("span",null,"Loading state"),center:null,right:null,active:!1,disabled:!1,href:null,LinkWrapper:null,onClick:null};var jo=Ou,ag=R.div({minWidth:180,overflow:"hidden",overflowY:"auto",maxHeight:15.5*32},({theme:e})=>({borderRadius:e.appBorderRadius})),og=e=>{let{LinkWrapper:t,onClick:r,id:n,isIndented:o,...l}=e,{title:i,href:s,active:u}=l,c=b.useCallback(h=>{r(h,l)},[r]),d=!!r;return a.createElement(jo,{title:i,active:u,href:s,id:`list-item-${n}`,LinkWrapper:t,isIndented:o,...l,...d?{onClick:c}:{}})},Po=({links:e,LinkWrapper:t})=>{let r=e.some(n=>n.left||n.icon);return a.createElement(ag,null,e.map(({isGatsby:n,...o})=>a.createElement(og,{key:o.id,LinkWrapper:n?t:null,isIndented:r,...o})))};Po.defaultProps={LinkWrapper:jo.defaultProps.LinkWrapper};var Vo=a.forwardRef(({children:e,...t},r)=>t.href!=null?a.createElement("a",{ref:r,...t},e):a.createElement("button",{ref:r,type:"button",...t},e));Vo.displayName="ButtonOrLink";var Ir=R(Vo,{shouldForwardProp:io})({whiteSpace:"normal",display:"inline-flex",overflow:"hidden",verticalAlign:"top",justifyContent:"center",alignItems:"center",textAlign:"center",textDecoration:"none","&:empty":{display:"none"}},({theme:e})=>({padding:"0 15px",transition:"color 0.2s linear, border-bottom-color 0.2s linear",height:40,lineHeight:"12px",cursor:"pointer",background:"transparent",border:"0 solid transparent",borderTop:"3px solid transparent",borderBottom:"3px solid transparent",fontWeight:"bold",fontSize:13,"&:focus":{outline:"0 none",borderBottomColor:e.color.secondary}}),({active:e,textColor:t,theme:r})=>e?{color:t||r.barSelectedColor,borderBottomColor:r.barSelectedColor}:{color:t||r.barTextColor,borderBottomColor:"transparent"});Ir.displayName="TabButton";var Bt=R(Vo,{shouldForwardProp:io})(()=>({alignItems:"center",background:"transparent",border:"none",borderRadius:4,color:"inherit",cursor:"pointer",display:"inline-flex",fontSize:13,fontWeight:"bold",height:28,justifyContent:"center",marginTop:6,padding:"8px 7px","& > svg":{width:14}}),({active:e,theme:t})=>e?{backgroundColor:t.background.hoverable,color:t.barSelectedColor}:{},({disabled:e,theme:t})=>e?{opacity:.5,cursor:"not-allowed"}:{"&:hover, &:focus-visible":{background:ye(.88,t.color.secondary),color:t.barHoverColor},"&:focus-visible":{outline:Fn},"&:focus:not(:focus-visible)":{outline:"none"}});Bt.displayName="IconButton";var lg=R.div(({theme:e})=>({width:14,height:14,backgroundColor:e.appBorderColor,animation:`${e.animation.glow} 1.5s ease-in-out infinite`})),ig=R.div(()=>({marginTop:6,padding:7,height:28})),Lu=()=>a.createElement(ig,null,a.createElement(lg,null)),Ua=R.div({display:"flex",whiteSpace:"nowrap",flexBasis:"auto",marginLeft:3,marginRight:3},({scrollable:e})=>e?{flexShrink:0}:{},({left:e})=>e?{"& > *":{marginLeft:4}}:{},({right:e})=>e?{marginLeft:30,"& > *":{marginRight:4}}:{});Ua.displayName="Side";var sg=({children:e,className:t,scrollable:r})=>r?a.createElement(Co,{vertical:!1,className:t},e):a.createElement("div",{className:t},e),zo=R(sg)(({theme:e,scrollable:t=!0})=>({color:e.barTextColor,width:"100%",height:40,flexShrink:0,overflow:t?"auto":"hidden",overflowY:"hidden"}),({theme:e,border:t=!1})=>t?{boxShadow:`${e.appBorderColor} 0 -1px 0 0 inset`,background:e.barBg}:{});zo.displayName="Bar";var ug=R.div(({bgColor:e})=>({display:"flex",justifyContent:"space-between",position:"relative",flexWrap:"nowrap",flexShrink:0,height:40,backgroundColor:e||""})),$n=({children:e,backgroundColor:t,...r})=>{let[n,o]=b.Children.toArray(e);return a.createElement(zo,{...r},a.createElement(ug,{bgColor:t},a.createElement(Ua,{scrollable:r.scrollable,left:!0},n),o?a.createElement(Ua,{right:!0},o):null))};$n.displayName="FlexBar";var Du=R.div(({active:e})=>e?{display:"block"}:{display:"none"}),ti=e=>b.Children.toArray(e).map(({props:{title:t,id:r,color:n,children:o}})=>{let l=Array.isArray(o)?o[0]:o;return{title:t,id:r,...n?{color:n}:{},render:typeof l=="function"?l:({active:i})=>a.createElement(Du,{active:i,role:"tabpanel"},l)}}),cg=R.span(({theme:e,isActive:t})=>({display:"inline-block",width:0,height:0,marginLeft:8,color:t?e.color.secondary:e.color.mediumdark,borderRight:"3px solid transparent",borderLeft:"3px solid transparent",borderTop:"3px solid",transition:"transform .1s ease-out"})),dg=R(Ir)(({active:e,theme:t,preActive:r})=>` +${t}`);let r=t.match(wm);if(!r)return a.createElement(b.Fragment,null,t);let[,n,o]=r,l=t.split(/\n/).slice(1),[,...i]=l.map(s=>{let u=s.match(Am)||s.match(Cm)||s.match(Sm);return u?{name:(u[1]||"").replace("/<",""),location:u[2].replace(vm.location.origin,"")}:null}).filter(Boolean);return a.createElement(b.Fragment,null,a.createElement("span",null,n),": ",a.createElement(Em,null,o),a.createElement("br",null),i.map((s,u)=>s.name?a.createElement(b.Fragment,{key:u}," ","at ",a.createElement(xm,null,s.name)," (",a.createElement(Jl,null,s.location),")",a.createElement("br",null)):a.createElement(b.Fragment,{key:u}," ","at ",a.createElement(Jl,null,s.location),a.createElement("br",null))))},Cu=R.button(({small:e,theme:t})=>({border:0,borderRadius:"3em",cursor:"pointer",display:"inline-block",overflow:"hidden",padding:e?"8px 16px":"13px 20px",position:"relative",textAlign:"center",textDecoration:"none",transitionProperty:"background, box-shadow",transitionDuration:"150ms",transitionTimingFunction:"ease-out",verticalAlign:"top",whiteSpace:"nowrap",userSelect:"none",opacity:1,margin:0,background:"transparent",fontSize:`${e?t.typography.size.s1:t.typography.size.s2-1}px`,fontWeight:t.typography.weight.bold,lineHeight:"1",svg:{display:"inline-block",height:e?12:14,width:e?12:14,verticalAlign:"top",marginRight:e?4:6,marginTop:e?0:-1,marginBottom:e?0:-1,pointerEvents:"none",path:{fill:"currentColor"}}}),({disabled:e})=>e?{cursor:"not-allowed !important",opacity:.5,"&:hover":{transform:"none"}}:{},({containsIcon:e,small:t})=>e?{svg:{display:"block",margin:0},...t?{padding:10}:{padding:13}}:{},({theme:e,primary:t,secondary:r,gray:n})=>{let o;return n?o=e.color.mediumlight:r?o=e.color.secondary:t&&(o=e.color.primary),o?{background:o,color:n?e.color.darkest:e.color.lightest,"&:hover":{background:Ut(.05,o)},"&:active":{boxShadow:"rgba(0, 0, 0, 0.1) 0 0 0 3em inset"},"&:focus":{boxShadow:`${st(o,1)} 0 1px 9px 2px`,outline:"none"},"&:focus:hover":{boxShadow:`${st(o,.2)} 0 8px 18px 0px`}}:{}},({theme:e,tertiary:t,inForm:r,small:n})=>t?{background:e.button.background,color:e.input.color,boxShadow:`${e.button.border} 0 0 0 1px inset`,borderRadius:e.input.borderRadius,...r&&n?{padding:"10px 16px"}:{},"&:hover":{background:e.base==="light"?Ut(.02,e.button.background):Vf(.03,e.button.background),...r?{}:{boxShadow:"rgba(0,0,0,.2) 0 2px 6px 0, rgba(0,0,0,.1) 0 0 0 1px inset"}},"&:active":{background:e.button.background},"&:focus":{boxShadow:`${st(e.color.secondary,1)} 0 0 0 1px inset`,outline:"none"}}:{},({theme:e,outline:t})=>t?{boxShadow:`${ye(.8,e.color.defaultText)} 0 0 0 1px inset`,color:ye(.3,e.color.defaultText),background:"transparent","&:hover, &:focus":{boxShadow:`${ye(.5,e.color.defaultText)} 0 0 0 1px inset`,outline:"none"},"&:active":{boxShadow:`${ye(.5,e.color.defaultText)} 0 0 0 2px inset`,color:ye(0,e.color.defaultText)}}:{},({theme:e,outline:t,primary:r})=>{let n=e.color.primary;return t&&r?{boxShadow:`${n} 0 0 0 1px inset`,color:n,"svg path:not([fill])":{fill:n},"&:hover":{boxShadow:`${n} 0 0 0 1px inset`,background:"transparent"},"&:active":{background:n,boxShadow:`${n} 0 0 0 1px inset`,color:e.color.tertiary},"&:focus":{boxShadow:`${n} 0 0 0 1px inset, ${st(n,.4)} 0 1px 9px 2px`,outline:"none"},"&:focus:hover":{boxShadow:`${n} 0 0 0 1px inset, ${st(n,.2)} 0 8px 18px 0px`}}:{}},({theme:e,outline:t,primary:r,secondary:n})=>{let o;return n?o=e.color.secondary:r&&(o=e.color.primary),t&&o?{boxShadow:`${o} 0 0 0 1px inset`,color:o,"svg path:not([fill])":{fill:o},"&:hover":{boxShadow:`${o} 0 0 0 1px inset`,background:"transparent"},"&:active":{background:o,boxShadow:`${o} 0 0 0 1px inset`,color:e.color.tertiary},"&:focus":{boxShadow:`${o} 0 0 0 1px inset, ${st(o,.4)} 0 1px 9px 2px`,outline:"none"},"&:focus:hover":{boxShadow:`${o} 0 0 0 1px inset, ${st(o,.2)} 0 8px 18px 0px`}}:{}}),km=Cu.withComponent("a"),Su=Object.assign(b.forwardRef(function({isLink:e,children:t,...r},n){return e?a.createElement(km,{...r,ref:n},t):a.createElement(Cu,{...r,ref:n},t)}),{defaultProps:{isLink:!1}}),Rm=R.label(({theme:e})=>({display:"flex",borderBottom:`1px solid ${e.appBorderColor}`,margin:"0 15px",padding:"8px 0","&:last-child":{marginBottom:"3rem"}})),Tm=R.span(({theme:e})=>({minWidth:100,fontWeight:e.typography.weight.bold,marginRight:15,display:"flex",justifyContent:"flex-start",alignItems:"center",lineHeight:"16px"})),ku=({label:e,children:t,...r})=>a.createElement(Rm,{...r},e?a.createElement(Tm,null,a.createElement("span",null,e)):null,t);ku.defaultProps={label:void 0};function qa(){return qa=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[o]=e[o]);return r}var Ql=function(e,t){if(typeof e=="function"){e(t);return}e.current=t},Om=function(e,t){var r=b.useRef();return b.useCallback(function(n){e.current=n,r.current&&Ql(r.current,null),r.current=t,t&&Ql(t,n)},[t])},Lm=Om,Dm=function(){},_m=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],$m=function(e,t){e.cacheMeasurements,e.maxRows,e.minRows;var r=e.onChange,n=r===void 0?Dm:r;e.onHeightChange;var o=Fm(e,_m);o.value;var l=b.useRef(null),i=Lm(l,t);return b.useRef(0),b.useRef(),b.createElement("textarea",qa({},o,{onChange:n,ref:i}))},Mm=b.forwardRef($m),Bm={appearance:"none",border:"0 none",boxSizing:"inherit",display:" block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},Zo=({theme:e})=>({...Bm,transition:"box-shadow 200ms ease-out, opacity 200ms ease-out",color:e.input.color||"inherit",background:e.input.background,boxShadow:`${e.input.border} 0 0 0 1px inset`,borderRadius:e.input.borderRadius,fontSize:e.typography.size.s2-1,lineHeight:"20px",padding:"6px 10px",boxSizing:"border-box",height:32,'&[type="file"]':{height:"auto"},"&:focus":{boxShadow:`${e.color.secondary} 0 0 0 1px inset`,outline:"none"},"&[disabled]":{cursor:"not-allowed",opacity:.5},"&:-webkit-autofill":{WebkitBoxShadow:`0 0 0 3em ${e.color.lightest} inset`},"&::placeholder":{color:e.textMutedColor,opacity:1}}),Dn=({size:e})=>{switch(e){case"100%":return{width:"100%"};case"flex":return{flex:1};case"auto":default:return{display:"inline"}}},Ru=({align:e})=>{switch(e){case"end":return{textAlign:"right"};case"center":return{textAlign:"center"};case"start":default:return{textAlign:"left"}}},_n=({valid:e,theme:t})=>{switch(e){case"valid":return{boxShadow:`${t.color.positive} 0 0 0 1px inset !important`};case"error":return{boxShadow:`${t.color.negative} 0 0 0 1px inset !important`};case"warn":return{boxShadow:`${t.color.warning} 0 0 0 1px inset`};case void 0:case null:default:return{}}},Im=Object.assign(R(b.forwardRef(function({size:e,valid:t,align:r,...n},o){return a.createElement("input",{...n,ref:o})}))(Zo,Dn,Ru,_n,{minHeight:32}),{displayName:"Input"}),Hm=Object.assign(R(b.forwardRef(function({size:e,valid:t,align:r,...n},o){return a.createElement("select",{...n,ref:o})}))(Zo,Dn,_n,{height:32,userSelect:"none",paddingRight:20,appearance:"menulist"}),{displayName:"Select"}),Nm=Object.assign(R(b.forwardRef(function({size:e,valid:t,align:r,...n},o){return a.createElement(Mm,{...n,ref:o})}))(Zo,Dn,Ru,_n,({height:e=400})=>({overflow:"visible",maxHeight:e})),{displayName:"Textarea"}),Zm=R(b.forwardRef(function({size:e,valid:t,align:r,...n},o){return a.createElement(Su,{...n,ref:o})}))(Dn,_n,{userSelect:"none",overflow:"visible",zIndex:2,"&:hover":{transform:"none"}}),jm=Object.assign(b.forwardRef(function(e,t){return a.createElement(Zm,{...e,tertiary:!0,small:!0,inForm:!0,ref:t})}),{displayName:"Button"}),Ie=Object.assign(R.form({boxSizing:"border-box",width:"100%"}),{Field:ku,Input:Im,Select:Hm,Textarea:Nm,Button:jm}),Pm=b.lazy(()=>Et(()=>import("./WithTooltip-V3YHNWJZ-DzmTmVU4.js"),__vite__mapDeps([19,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]),import.meta.url).then(e=>({default:e.WithTooltip}))),Vm=e=>a.createElement(b.Suspense,{fallback:a.createElement("div",null)},a.createElement(Pm,{...e})),zm=b.lazy(()=>Et(()=>import("./WithTooltip-V3YHNWJZ-DzmTmVU4.js"),__vite__mapDeps([19,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]),import.meta.url).then(e=>({default:e.WithTooltipPure}))),Tu=e=>a.createElement(b.Suspense,{fallback:a.createElement("div",null)},a.createElement(zm,{...e})),qm=R.div(({theme:e})=>({fontWeight:e.typography.weight.bold})),Um=R.span(),Wm=R.div(({theme:e})=>({marginTop:8,textAlign:"center","> *":{margin:"0 8px",fontWeight:e.typography.weight.bold}})),Gm=R.div(({theme:e})=>({color:e.color.defaultText,lineHeight:"18px"})),Ym=R.div({padding:15,width:280,boxSizing:"border-box"}),Fu=({title:e,desc:t,links:r})=>a.createElement(Ym,null,a.createElement(Gm,null,e&&a.createElement(qm,null,e),t&&a.createElement(Um,null,t)),r&&a.createElement(Wm,null,r.map(({title:n,...o})=>a.createElement(vt,{...o,key:n},n))));Fu.defaultProps={title:null,desc:null,links:null};var Km=R.div(({theme:e})=>({padding:"2px 6px",lineHeight:"16px",fontSize:10,fontWeight:e.typography.weight.bold,color:e.color.lightest,boxShadow:"0 0 5px 0 rgba(0, 0, 0, 0.3)",borderRadius:4,whiteSpace:"nowrap",pointerEvents:"none",zIndex:-1,background:e.base==="light"?"rgba(60, 60, 60, 0.9)":"rgba(0, 0, 0, 0.95)",margin:6})),Xm=({note:e,...t})=>a.createElement(Km,{...t},e),Jm=R(({active:e,loading:t,disabled:r,...n})=>a.createElement("span",{...n}))(({theme:e})=>({color:e.color.defaultText,fontWeight:e.typography.weight.regular}),({active:e,theme:t})=>e?{color:t.color.secondary,fontWeight:t.typography.weight.bold}:{},({loading:e,theme:t})=>e?{display:"inline-block",flex:"none",...t.animation.inlineGlow}:{},({disabled:e,theme:t})=>e?{color:ye(.7,t.color.defaultText)}:{}),Qm=R.span({display:"flex","& svg":{height:12,width:12,margin:"3px 0",verticalAlign:"top"},"& path":{fill:"inherit"}}),eg=R.span({flex:1,textAlign:"left",display:"flex",flexDirection:"column"},({isIndented:e})=>e?{marginLeft:24}:{}),tg=R.span(({theme:e})=>({fontSize:"11px",lineHeight:"14px"}),({active:e,theme:t})=>e?{color:t.color.secondary}:{},({theme:e,disabled:t})=>t?{color:e.textMutedColor}:{}),ei=R.span(({active:e,theme:t})=>e?{"& svg":{opacity:1},"& svg path:not([fill])":{fill:t.color.secondary}}:{},()=>({display:"flex",maxWidth:14})),rg=R.a(({theme:e})=>({fontSize:e.typography.size.s1,transition:"all 150ms ease-out",color:e.color.dark,textDecoration:"none",cursor:"pointer",justifyContent:"space-between",lineHeight:"18px",padding:"7px 10px",display:"flex",alignItems:"center","& > * + *":{paddingLeft:10},"&:hover":{background:e.background.hoverable},"&:hover svg":{opacity:1}}),({disabled:e})=>e?{cursor:"not-allowed"}:{}),ng=nr(100)((e,t,r)=>{let n={};return e&&Object.assign(n,{onClick:e}),t&&Object.assign(n,{href:t}),r&&t&&Object.assign(n,{to:t,as:r}),n}),Ou=({loading:e,left:t,title:r,center:n,right:o,icon:l,active:i,disabled:s,isIndented:u,href:c,onClick:d,LinkWrapper:h,...m})=>{let p=ng(d,c,h),g={active:i,disabled:s},f=typeof l=="string"&&Fr[l];return a.createElement(rg,{...g,...m,...p},l?a.createElement(ei,{...g},f?a.createElement(be,{icon:l}):l):t&&a.createElement(ei,{...g},t),r||n?a.createElement(eg,{isIndented:!t&&!l&&u},r&&a.createElement(Jm,{...g,loading:e},r),n&&a.createElement(tg,{...g},n)):null,o&&a.createElement(Qm,{...g},o))};Ou.defaultProps={loading:!1,left:null,title:a.createElement("span",null,"Loading state"),center:null,right:null,active:!1,disabled:!1,href:null,LinkWrapper:null,onClick:null};var jo=Ou,ag=R.div({minWidth:180,overflow:"hidden",overflowY:"auto",maxHeight:15.5*32},({theme:e})=>({borderRadius:e.appBorderRadius})),og=e=>{let{LinkWrapper:t,onClick:r,id:n,isIndented:o,...l}=e,{title:i,href:s,active:u}=l,c=b.useCallback(h=>{r(h,l)},[r]),d=!!r;return a.createElement(jo,{title:i,active:u,href:s,id:`list-item-${n}`,LinkWrapper:t,isIndented:o,...l,...d?{onClick:c}:{}})},Po=({links:e,LinkWrapper:t})=>{let r=e.some(n=>n.left||n.icon);return a.createElement(ag,null,e.map(({isGatsby:n,...o})=>a.createElement(og,{key:o.id,LinkWrapper:n?t:null,isIndented:r,...o})))};Po.defaultProps={LinkWrapper:jo.defaultProps.LinkWrapper};var Vo=a.forwardRef(({children:e,...t},r)=>t.href!=null?a.createElement("a",{ref:r,...t},e):a.createElement("button",{ref:r,type:"button",...t},e));Vo.displayName="ButtonOrLink";var Ir=R(Vo,{shouldForwardProp:io})({whiteSpace:"normal",display:"inline-flex",overflow:"hidden",verticalAlign:"top",justifyContent:"center",alignItems:"center",textAlign:"center",textDecoration:"none","&:empty":{display:"none"}},({theme:e})=>({padding:"0 15px",transition:"color 0.2s linear, border-bottom-color 0.2s linear",height:40,lineHeight:"12px",cursor:"pointer",background:"transparent",border:"0 solid transparent",borderTop:"3px solid transparent",borderBottom:"3px solid transparent",fontWeight:"bold",fontSize:13,"&:focus":{outline:"0 none",borderBottomColor:e.color.secondary}}),({active:e,textColor:t,theme:r})=>e?{color:t||r.barSelectedColor,borderBottomColor:r.barSelectedColor}:{color:t||r.barTextColor,borderBottomColor:"transparent"});Ir.displayName="TabButton";var Bt=R(Vo,{shouldForwardProp:io})(()=>({alignItems:"center",background:"transparent",border:"none",borderRadius:4,color:"inherit",cursor:"pointer",display:"inline-flex",fontSize:13,fontWeight:"bold",height:28,justifyContent:"center",marginTop:6,padding:"8px 7px","& > svg":{width:14}}),({active:e,theme:t})=>e?{backgroundColor:t.background.hoverable,color:t.barSelectedColor}:{},({disabled:e,theme:t})=>e?{opacity:.5,cursor:"not-allowed"}:{"&:hover, &:focus-visible":{background:ye(.88,t.color.secondary),color:t.barHoverColor},"&:focus-visible":{outline:Fn},"&:focus:not(:focus-visible)":{outline:"none"}});Bt.displayName="IconButton";var lg=R.div(({theme:e})=>({width:14,height:14,backgroundColor:e.appBorderColor,animation:`${e.animation.glow} 1.5s ease-in-out infinite`})),ig=R.div(()=>({marginTop:6,padding:7,height:28})),Lu=()=>a.createElement(ig,null,a.createElement(lg,null)),Ua=R.div({display:"flex",whiteSpace:"nowrap",flexBasis:"auto",marginLeft:3,marginRight:3},({scrollable:e})=>e?{flexShrink:0}:{},({left:e})=>e?{"& > *":{marginLeft:4}}:{},({right:e})=>e?{marginLeft:30,"& > *":{marginRight:4}}:{});Ua.displayName="Side";var sg=({children:e,className:t,scrollable:r})=>r?a.createElement(Co,{vertical:!1,className:t},e):a.createElement("div",{className:t},e),zo=R(sg)(({theme:e,scrollable:t=!0})=>({color:e.barTextColor,width:"100%",height:40,flexShrink:0,overflow:t?"auto":"hidden",overflowY:"hidden"}),({theme:e,border:t=!1})=>t?{boxShadow:`${e.appBorderColor} 0 -1px 0 0 inset`,background:e.barBg}:{});zo.displayName="Bar";var ug=R.div(({bgColor:e})=>({display:"flex",justifyContent:"space-between",position:"relative",flexWrap:"nowrap",flexShrink:0,height:40,backgroundColor:e||""})),$n=({children:e,backgroundColor:t,...r})=>{let[n,o]=b.Children.toArray(e);return a.createElement(zo,{...r},a.createElement(ug,{bgColor:t},a.createElement(Ua,{scrollable:r.scrollable,left:!0},n),o?a.createElement(Ua,{right:!0},o):null))};$n.displayName="FlexBar";var Du=R.div(({active:e})=>e?{display:"block"}:{display:"none"}),ti=e=>b.Children.toArray(e).map(({props:{title:t,id:r,color:n,children:o}})=>{let l=Array.isArray(o)?o[0]:o;return{title:t,id:r,...n?{color:n}:{},render:typeof l=="function"?l:({active:i})=>a.createElement(Du,{active:i,role:"tabpanel"},l)}}),cg=R.span(({theme:e,isActive:t})=>({display:"inline-block",width:0,height:0,marginLeft:8,color:t?e.color.secondary:e.color.mediumdark,borderRight:"3px solid transparent",borderLeft:"3px solid transparent",borderTop:"3px solid",transition:"transform .1s ease-out"})),dg=R(Ir)(({active:e,theme:t,preActive:r})=>` color: ${r||e?t.color.secondary:t.color.mediumdark}; &:hover { color: ${t.color.secondary}; @@ -292,7 +292,7 @@ ${t}`);let r=t.match(wm);if(!r)return a.createElement(b.Fragment,null,t);let[,n, ${We(.02,e.input.background)} 100%)`:`linear-gradient(to right, ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%, ${Ot(.02,e.input.background)} ${(n-t)/(r-t)*100}%, - ${Ot(.02,e.input.background)} 100%)`,boxShadow:`${e.appBorderColor} 0 0 0 1px inset`,color:"transparent",width:"100%",height:"6px",cursor:"pointer"},"&::-ms-fill-lower":{borderRadius:6},"&::-ms-fill-upper":{borderRadius:6},"&::-ms-thumb":{width:16,height:16,background:`${e.input.background}`,border:`1px solid ${ut(e.appBorderColor,.2)}`,borderRadius:50,cursor:"grab",marginTop:0},"@supports (-ms-ime-align:auto)":{"input[type=range]":{margin:"0"}}})),Ac=R.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:"nowrap",fontFeatureSettings:"tnum",fontVariantNumeric:"tabular-nums"}),H4=R(Ac)(({numberOFDecimalsPlaces:e,max:t})=>({width:`${e+t.toString().length*2+3}ch`,textAlign:"right",flexShrink:0})),N4=R.div({display:"flex",alignItems:"center",width:"100%"});function Z4(e){let t=e.toString().match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}var j4=({name:e,value:t,onChange:r,min:n=0,max:o=100,step:l=1,onBlur:i,onFocus:s})=>{let u=h=>{r(e4(h.target.value))},c=t!==void 0,d=b.useMemo(()=>Z4(l),[l]);return a.createElement(N4,null,a.createElement(Ac,null,n),a.createElement(I4,{id:He(e),type:"range",onChange:u,name:e,value:t,min:n,max:o,step:l,onFocus:s,onBlur:i}),a.createElement(H4,{numberOFDecimalsPlaces:d,max:o},c?t.toFixed(d):"--"," / ",o))},P4=R.label({display:"flex"}),V4=R.div(({isMaxed:e})=>({marginLeft:"0.75rem",paddingTop:"0.35rem",color:e?"red":void 0})),z4=({name:e,value:t,onChange:r,onFocus:n,onBlur:o,maxLength:l})=>{let i=h=>{r(h.target.value)},[s,u]=b.useState(!1),c=b.useCallback(()=>{r(""),u(!0)},[u]);if(t===void 0)return a.createElement(Ie.Button,{id:bn(e),onClick:c},"Set string");let d=typeof t=="string";return a.createElement(P4,null,a.createElement(Ie.Textarea,{id:He(e),maxLength:l,onChange:i,size:"flex",placeholder:"Edit string...",autoFocus:s,valid:d?null:"error",name:e,value:d?t:"",onFocus:n,onBlur:o}),l&&a.createElement(V4,{isMaxed:(t==null?void 0:t.length)===l},(t==null?void 0:t.length)??0," / ",l))},q4=R(Ie.Input)({padding:10});function U4(e){e.forEach(t=>{t.startsWith("blob:")&&URL.revokeObjectURL(t)})}var W4=({onChange:e,name:t,accept:r="image/*",value:n})=>{let o=b.useRef(null);function l(i){if(!i.target.files)return;let s=Array.from(i.target.files).map(u=>URL.createObjectURL(u));e(s),U4(n)}return b.useEffect(()=>{n==null&&o.current&&(o.current.value=null)},[n,t]),a.createElement(q4,{ref:o,id:He(t),type:"file",name:t,multiple:!0,onChange:l,accept:r,size:"flex"})},G4=b.lazy(()=>Et(()=>import("./Color-6VNJS4EI-D1nvHf14.js"),__vite__mapDeps([20,2,3,21,7,1,4,5,6,8,9,10,11,12,13,14,15,16,17]),import.meta.url)),Y4=e=>a.createElement(b.Suspense,{fallback:a.createElement("div",null)},a.createElement(G4,{...e})),K4={array:Di,object:Di,boolean:U3,color:Y4,date:J3,number:t4,check:zt,"inline-check":zt,radio:zt,"inline-radio":zt,select:zt,"multi-select":zt,range:j4,text:z4,file:W4},_i=()=>a.createElement(a.Fragment,null,"-"),X4=({row:e,arg:t,updateArgs:r,isHovered:n})=>{let{key:o,control:l}=e,[i,s]=b.useState(!1),[u,c]=b.useState({value:t});b.useEffect(()=>{i||c({value:t})},[i,t]);let d=b.useCallback(f=>(c({value:f}),r({[o]:f}),f),[r,o]),h=b.useCallback(()=>s(!1),[]),m=b.useCallback(()=>s(!0),[]);if(!l||l.disable)return n?a.createElement(vt,{href:"https://storybook.js.org/docs/react/essentials/controls",target:"_blank",withArrow:!0},"Setup controls"):a.createElement(_i,null);let p={name:o,argType:e,value:u.value,onChange:d,onBlur:h,onFocus:m},g=K4[l.type]||_i;return a.createElement(g,{...p,...l,controlType:l.type})},J4=R.span({fontWeight:"bold"}),Q4=R.span(({theme:e})=>({color:e.color.negative,fontFamily:e.typography.fonts.mono,cursor:"help"})),e7=R.div(({theme:e})=>({"&&":{p:{margin:"0 0 10px 0"},a:{color:e.color.secondary}},code:{...pt({theme:e}),fontSize:12,fontFamily:e.typography.fonts.mono},"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}})),t7=R.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?X(.1,e.color.defaultText):X(.2,e.color.defaultText),marginTop:t?4:0})),r7=R.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?X(.1,e.color.defaultText):X(.2,e.color.defaultText),marginTop:t?12:0,marginBottom:12})),n7=R.td(({theme:e,expandable:t})=>({paddingLeft:t?"40px !important":"20px !important"})),Gr=e=>{var f;let[t,r]=b.useState(!1),{row:n,updateArgs:o,compact:l,expandable:i,initialExpandedArgs:s}=e,{name:u,description:c}=n,d=n.table||{},h=d.type||n.type,m=d.defaultValue||n.defaultValue,p=(f=n.type)==null?void 0:f.required,g=c!=null&&c!=="";return a.createElement("tr",{onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1)},a.createElement(n7,{expandable:i},a.createElement(J4,null,u),p?a.createElement(Q4,{title:"Required"},"*"):null),l?null:a.createElement("td",null,g&&a.createElement(e7,null,a.createElement(ic,null,c)),d.jsDocTags!=null?a.createElement(a.Fragment,null,a.createElement(r7,{hasDescription:g},a.createElement(ya,{value:h,initialExpandedArgs:s})),a.createElement($3,{tags:d.jsDocTags})):a.createElement(t7,{hasDescription:g},a.createElement(ya,{value:h,initialExpandedArgs:s}))),l?null:a.createElement("td",null,a.createElement(ya,{value:m,initialExpandedArgs:s})),o?a.createElement("td",null,a.createElement(X4,{...e,isHovered:t})):null)},a7=R(be)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?X(.25,e.color.defaultText):X(.3,e.color.defaultText),border:"none",display:"inline-block"})),o7=R.span(({theme:e})=>({display:"flex",lineHeight:"20px",alignItems:"center"})),l7=R.td(({theme:e})=>({position:"relative",letterSpacing:"0.35em",textTransform:"uppercase",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s1-1,color:e.base==="light"?X(.4,e.color.defaultText):X(.6,e.color.defaultText),background:`${e.background.app} !important`,"& ~ td":{background:`${e.background.app} !important`}})),i7=R.td(({theme:e})=>({position:"relative",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,background:e.background.app})),s7=R.td(()=>({position:"relative"})),u7=R.tr(({theme:e})=>({"&:hover > td":{backgroundColor:`${Ot(.005,e.background.app)} !important`,boxShadow:`${e.color.mediumlight} 0 - 1px 0 0 inset`,cursor:"row-resize"}})),$i=R.button(()=>({background:"none",border:"none",padding:"0",font:"inherit",position:"absolute",top:0,bottom:0,left:0,right:0,height:"100%",width:"100%",color:"transparent",cursor:"row-resize !important"})),Ea=({level:e="section",label:t,children:r,initialExpanded:n=!0,colSpan:o=3})=>{let[l,i]=b.useState(n),s=e==="subsection"?i7:l7,u=(r==null?void 0:r.length)||0,c=e==="subsection"?`${u} item${u!==1?"s":""}`:"",d=l?"arrowdown":"arrowright",h=`${l?"Hide":"Show"} ${e==="subsection"?u:t} item${u!==1?"s":""}`;return a.createElement(a.Fragment,null,a.createElement(u7,{title:h},a.createElement(s,{colSpan:1},a.createElement($i,{onClick:m=>i(!l),tabIndex:0},h),a.createElement(o7,null,a.createElement(a7,{icon:d}),t)),a.createElement(s7,{colSpan:o-1},a.createElement($i,{onClick:m=>i(!l),tabIndex:-1,style:{outline:"none"}},h),l?null:c)),l?r:null)},Yr=R.div(({theme:e})=>({display:"flex",gap:16,borderBottom:`1px solid ${e.appBorderColor}`,"&:last-child":{borderBottom:0}})),pe=R.div(({numColumn:e})=>({display:"flex",flexDirection:"column",flex:e||1,gap:5,padding:"12px 20px"})),ne=R.div(({theme:e,width:t,height:r})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,width:t||"100%",height:r||16,borderRadius:3})),fe=[2,4,2,2],c7=()=>a.createElement(a.Fragment,null,a.createElement(Yr,null,a.createElement(pe,{numColumn:fe[0]},a.createElement(ne,{width:"60%"})),a.createElement(pe,{numColumn:fe[1]},a.createElement(ne,{width:"30%"})),a.createElement(pe,{numColumn:fe[2]},a.createElement(ne,{width:"60%"})),a.createElement(pe,{numColumn:fe[3]},a.createElement(ne,{width:"60%"}))),a.createElement(Yr,null,a.createElement(pe,{numColumn:fe[0]},a.createElement(ne,{width:"60%"})),a.createElement(pe,{numColumn:fe[1]},a.createElement(ne,{width:"80%"}),a.createElement(ne,{width:"30%"})),a.createElement(pe,{numColumn:fe[2]},a.createElement(ne,{width:"60%"})),a.createElement(pe,{numColumn:fe[3]},a.createElement(ne,{width:"60%"}))),a.createElement(Yr,null,a.createElement(pe,{numColumn:fe[0]},a.createElement(ne,{width:"60%"})),a.createElement(pe,{numColumn:fe[1]},a.createElement(ne,{width:"80%"}),a.createElement(ne,{width:"30%"})),a.createElement(pe,{numColumn:fe[2]},a.createElement(ne,{width:"60%"})),a.createElement(pe,{numColumn:fe[3]},a.createElement(ne,{width:"60%"}))),a.createElement(Yr,null,a.createElement(pe,{numColumn:fe[0]},a.createElement(ne,{width:"60%"})),a.createElement(pe,{numColumn:fe[1]},a.createElement(ne,{width:"80%"}),a.createElement(ne,{width:"30%"})),a.createElement(pe,{numColumn:fe[2]},a.createElement(ne,{width:"60%"})),a.createElement(pe,{numColumn:fe[3]},a.createElement(ne,{width:"60%"})))),d7=R.div(({inAddonPanel:e,theme:t})=>({height:e?"100%":"auto",display:"flex",border:e?"none":`1px solid ${t.appBorderColor}`,borderRadius:e?0:t.appBorderRadius,padding:e?0:40,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:t.background.content,boxShadow:"rgba(0, 0, 0, 0.10) 0 1px 3px 0"})),p7=R.div({display:"flex",flexDirection:"column",gap:4,maxWidth:415}),f7=R.div(({theme:e})=>({fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,textAlign:"center",color:e.textColor})),m7=R.div(({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s2-1,textAlign:"center",color:e.textMutedColor})),g7=R.div(({theme:e})=>({display:"flex",fontSize:e.typography.size.s2-1,gap:25})),h7=R.div(({theme:e})=>({width:1,height:16,backgroundColor:e.appBorderColor})),b7=({inAddonPanel:e})=>{let[t,r]=b.useState(!0);return b.useEffect(()=>{let n=setTimeout(()=>{r(!1)},100);return()=>clearTimeout(n)},[]),t?null:a.createElement(d7,{inAddonPanel:e},a.createElement(p7,null,a.createElement(f7,null,e?"Interactive story playground":"Args table with interactive controls couldn't be auto-generated"),a.createElement(m7,null,"Controls give you an easy to use interface to test your components. Set your story args and you'll see controls appearing here automatically.")),a.createElement(g7,null,e&&a.createElement(a.Fragment,null,a.createElement(vt,{href:"https://youtu.be/0gOfS6K0x0E",target:"_blank",withArrow:!0},a.createElement(be,{icon:"video"})," Watch 5m video"),a.createElement(h7,null),a.createElement(vt,{href:"https://storybook.js.org/docs/react/essentials/controls",target:"_blank",withArrow:!0},"Read docs")),!e&&a.createElement(vt,{href:"https://storybook.js.org/docs/react/essentials/controls",target:"_blank",withArrow:!0},"Learn how to set that up")))},y7=R.table(({theme:e,compact:t,inAddonPanel:r})=>({"&&":{borderSpacing:0,color:e.color.defaultText,"td, th":{padding:0,border:"none",verticalAlign:"top",textOverflow:"ellipsis"},fontSize:e.typography.size.s2-1,lineHeight:"20px",textAlign:"left",width:"100%",marginTop:r?0:25,marginBottom:r?0:40,"thead th:first-of-type, td:first-of-type":{width:"25%"},"th:first-of-type, td:first-of-type":{paddingLeft:20},"th:nth-of-type(2), td:nth-of-type(2)":{...t?null:{width:"35%"}},"td:nth-of-type(3)":{...t?null:{width:"15%"}},"th:last-of-type, td:last-of-type":{paddingRight:20,...t?null:{width:"25%"}},th:{color:e.base==="light"?X(.25,e.color.defaultText):X(.45,e.color.defaultText),paddingTop:10,paddingBottom:10,paddingLeft:15,paddingRight:15},td:{paddingTop:"10px",paddingBottom:"10px","&:not(:first-of-type)":{paddingLeft:15,paddingRight:15},"&:last-of-type":{paddingRight:20}},marginLeft:r?0:1,marginRight:r?0:1,tbody:{...r?null:{filter:e.base==="light"?"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.10))":"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.20))"},"> tr > *":{background:e.background.content,borderTop:`1px solid ${e.appBorderColor}`},...r?null:{"> tr:first-of-type > *":{borderBlockStart:`1px solid ${e.appBorderColor}`},"> tr:last-of-type > *":{borderBlockEnd:`1px solid ${e.appBorderColor}`},"> tr > *:first-of-type":{borderInlineStart:`1px solid ${e.appBorderColor}`},"> tr > *:last-of-type":{borderInlineEnd:`1px solid ${e.appBorderColor}`},"> tr:first-of-type > td:first-of-type":{borderTopLeftRadius:e.appBorderRadius},"> tr:first-of-type > td:last-of-type":{borderTopRightRadius:e.appBorderRadius},"> tr:last-of-type > td:first-of-type":{borderBottomLeftRadius:e.appBorderRadius},"> tr:last-of-type > td:last-of-type":{borderBottomRightRadius:e.appBorderRadius}}}}})),v7=R(Bt)(({theme:e})=>({color:e.barTextColor,margin:"-4px -12px -4px 0"})),E7=R.span({display:"flex",justifyContent:"space-between"}),x7={alpha:(e,t)=>e.name.localeCompare(t.name),requiredFirst:(e,t)=>{var r,n;return+!!((r=t.type)!=null&&r.required)-+!!((n=e.type)!=null&&n.required)||e.name.localeCompare(t.name)},none:void 0},w7=(e,t)=>{let r={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!e)return r;Object.entries(e).forEach(([l,i])=>{let{category:s,subcategory:u}=(i==null?void 0:i.table)||{};if(s){let c=r.sections[s]||{ungrouped:[],subsections:{}};if(!u)c.ungrouped.push({key:l,...i});else{let d=c.subsections[u]||[];d.push({key:l,...i}),c.subsections[u]=d}r.sections[s]=c}else if(u){let c=r.ungroupedSubsections[u]||[];c.push({key:l,...i}),r.ungroupedSubsections[u]=c}else r.ungrouped.push({key:l,...i})});let n=x7[t],o=l=>n?Object.keys(l).reduce((i,s)=>({...i,[s]:l[s].sort(n)}),{}):l;return{ungrouped:r.ungrouped.sort(n),ungroupedSubsections:o(r.ungroupedSubsections),sections:Object.keys(r.sections).reduce((l,i)=>({...l,[i]:{ungrouped:r.sections[i].ungrouped.sort(n),subsections:o(r.sections[i].subsections)}}),{})}},A7=(e,t,r)=>{try{return jc(e,t,r)}catch(n){return t3.warn(n.message),!1}},C7=e=>{let{updateArgs:t,resetArgs:r,compact:n,inAddonPanel:o,initialExpandedArgs:l,sort:i="none",isLoading:s}=e;if("error"in e){let{error:v}=e;return a.createElement(uc,null,v," ",a.createElement(vt,{href:"http://storybook.js.org/docs/",target:"_blank",withArrow:!0},"Read the docs"))}if(s)return a.createElement(c7,null);let{rows:u,args:c,globals:d}="rows"in e&&e,h=w7(uh(u,v=>{var y;return!((y=v==null?void 0:v.table)!=null&&y.disable)&&A7(v,c||{},d||{})}),i),m=h.ungrouped.length===0,p=Object.entries(h.sections).length===0,g=Object.entries(h.ungroupedSubsections).length===0;if(m&&p&&g)return a.createElement(b7,{inAddonPanel:o});let f=1;t&&(f+=1),n||(f+=2);let A=Object.keys(h.sections).length>0,w={updateArgs:t,compact:n,inAddonPanel:o,initialExpandedArgs:l};return a.createElement(No,null,a.createElement(y7,{compact:n,inAddonPanel:o,className:"docblock-argstable sb-unstyled"},a.createElement("thead",{className:"docblock-argstable-head"},a.createElement("tr",null,a.createElement("th",null,a.createElement("span",null,"Name")),n?null:a.createElement("th",null,a.createElement("span",null,"Description")),n?null:a.createElement("th",null,a.createElement("span",null,"Default")),t?a.createElement("th",null,a.createElement(E7,null,"Control"," ",!s&&r&&a.createElement(v7,{onClick:()=>r(),title:"Reset controls"},a.createElement(be,{icon:"undo","aria-hidden":!0})))):null)),a.createElement("tbody",{className:"docblock-argstable-body"},h.ungrouped.map(v=>a.createElement(Gr,{key:v.key,row:v,arg:c&&c[v.key],...w})),Object.entries(h.ungroupedSubsections).map(([v,y])=>a.createElement(Ea,{key:v,label:v,level:"subsection",colSpan:f},y.map(x=>a.createElement(Gr,{key:x.key,row:x,arg:c&&c[x.key],expandable:A,...w})))),Object.entries(h.sections).map(([v,y])=>a.createElement(Ea,{key:v,label:v,level:"section",colSpan:f},y.ungrouped.map(x=>a.createElement(Gr,{key:x.key,row:x,arg:c&&c[x.key],...w})),Object.entries(y.subsections).map(([x,E])=>a.createElement(Ea,{key:x,label:x,level:"subsection",colSpan:f},E.map(C=>a.createElement(Gr,{key:C.key,row:C,arg:c&&c[C.key],expandable:A,...w})))))))))};R.div(({theme:e})=>({marginRight:30,fontSize:`${e.typography.size.s1}px`,color:e.base==="light"?X(.4,e.color.defaultText):X(.6,e.color.defaultText)}));R.div({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});R.div({display:"flex",flexDirection:"row",alignItems:"baseline","&:not(:last-child)":{marginBottom:"1rem"}});R.div(J,({theme:e})=>({...Nn(e),margin:"25px 0 40px",padding:"30px 20px"}));R.div(({theme:e})=>({fontWeight:e.typography.weight.bold,color:e.color.defaultText}));R.div(({theme:e})=>({color:e.base==="light"?X(.2,e.color.defaultText):X(.6,e.color.defaultText)}));R.div({flex:"0 0 30%",lineHeight:"20px",marginTop:5});R.div(({theme:e})=>({flex:1,textAlign:"center",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,lineHeight:1,overflow:"hidden",color:e.base==="light"?X(.4,e.color.defaultText):X(.6,e.color.defaultText),"> div":{display:"inline-block",overflow:"hidden",maxWidth:"100%",textOverflow:"ellipsis"},span:{display:"block",marginTop:2}}));R.div({display:"flex",flexDirection:"row"});R.div(({background:e})=>({position:"relative",flex:1,"&::before":{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:e,content:'""'}}));R.div(({theme:e})=>({...Nn(e),display:"flex",flexDirection:"row",height:50,marginBottom:5,overflow:"hidden",backgroundColor:"white",backgroundImage:"repeating-linear-gradient(-45deg, #ccc, #ccc 1px, #fff 1px, #fff 16px)",backgroundClip:"padding-box"}));R.div({display:"flex",flexDirection:"column",flex:1,position:"relative",marginBottom:30});R.div({flex:1,display:"flex",flexDirection:"row"});R.div({display:"flex",alignItems:"flex-start"});R.div({flex:"0 0 30%"});R.div({flex:1});R.div(({theme:e})=>({display:"flex",flexDirection:"row",alignItems:"center",paddingBottom:20,fontWeight:e.typography.weight.bold,color:e.base==="light"?X(.4,e.color.defaultText):X(.6,e.color.defaultText)}));R.div(({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"20px",display:"flex",flexDirection:"column"}));R.div(({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s2,color:e.color.defaultText,marginLeft:10,lineHeight:1.2}));R.div(({theme:e})=>({...Nn(e),overflow:"hidden",height:40,width:40,display:"flex",alignItems:"center",justifyContent:"center",flex:"none","> img, > svg":{width:20,height:20}}));R.div({display:"inline-flex",flexDirection:"row",alignItems:"center",flex:"0 1 calc(20% - 10px)",minWidth:120,margin:"0px 10px 30px 0"});R.div({display:"flex",flexFlow:"row wrap"});var S7=e=>`anchor--${e}`,k7=({storyId:e,children:t})=>a.createElement("div",{id:S7(e),className:"sb-anchor"},t);Oe&&Oe.__DOCS_CONTEXT__===void 0&&(Oe.__DOCS_CONTEXT__=b.createContext(null),Oe.__DOCS_CONTEXT__.displayName="DocsContext");var Re=Oe?Oe.__DOCS_CONTEXT__:b.createContext(null),Hr=(e,t)=>b.useContext(Re).resolveOf(e,t);function R7(e,t="start"){e.scrollIntoView({behavior:"smooth",block:t,inline:"nearest"})}function T7(e,t){let r=tl([e],t);return r&&r[0]}function tl(e,t){let[r,n]=b.useState({});return b.useEffect(()=>{Promise.all(e.map(async o=>{let l=await t.loadStory(o);n(i=>i[o]===l?i:{...i,[o]:l})}))}),e.map(o=>{if(r[o])return r[o];try{return t.storyById(o)}catch{return null}})}function Cc(e){return Nc(e)}var Sc=b.createContext({sources:{}}),kc="--unknown--",F7=({children:e,channel:t})=>{let[r,n]=b.useState({});return b.useEffect(()=>{let o=(l,i=null,s=!1)=>{let{id:u,args:c=void 0,source:d,format:h}=typeof l=="string"?{id:l,source:i,format:s}:l,m=c?Cc(c):kc;n(p=>({...p,[u]:{...p[u],[m]:{code:d,format:h}}}))};return t.on(sl,o),()=>t.off(sl,o)},[]),a.createElement(Sc.Provider,{value:{sources:r}},e)},O7=(e=>(e.OPEN="open",e.CLOSED="closed",e.NONE="none",e))(O7||{}),L7=e=>{let t=e.map(r=>{var n,o;return(o=(n=r.parameters.docs)==null?void 0:n.source)==null?void 0:o.state}).filter(Boolean);return t.length===0?"closed":t[0]},D7=(e,t,r)=>{let{sources:n}=r,o=n==null?void 0:n[e];return(o==null?void 0:o[Cc(t)])||(o==null?void 0:o[kc])||{code:""}},_7=({snippet:e,storyContext:t,typeFromProps:r,transformFromProps:n})=>{var u,c,d,h,m,p;let{__isArgsStory:o}=t.parameters,l=((u=t.parameters.docs)==null?void 0:u.source)||{},i=r||l.type||zn.AUTO;if(l.code!==void 0)return l.code;let s=i===zn.DYNAMIC||i===zn.AUTO&&e&&o?e:l.originalSource||"";return l.transformSource&&ue(ve`The \`transformSource\` parameter at \`parameters.docs.source.transformSource\` is deprecated, please use \`parameters.docs.source.transform\` instead. + ${Ot(.02,e.input.background)} 100%)`,boxShadow:`${e.appBorderColor} 0 0 0 1px inset`,color:"transparent",width:"100%",height:"6px",cursor:"pointer"},"&::-ms-fill-lower":{borderRadius:6},"&::-ms-fill-upper":{borderRadius:6},"&::-ms-thumb":{width:16,height:16,background:`${e.input.background}`,border:`1px solid ${ut(e.appBorderColor,.2)}`,borderRadius:50,cursor:"grab",marginTop:0},"@supports (-ms-ime-align:auto)":{"input[type=range]":{margin:"0"}}})),Ac=R.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:"nowrap",fontFeatureSettings:"tnum",fontVariantNumeric:"tabular-nums"}),H4=R(Ac)(({numberOFDecimalsPlaces:e,max:t})=>({width:`${e+t.toString().length*2+3}ch`,textAlign:"right",flexShrink:0})),N4=R.div({display:"flex",alignItems:"center",width:"100%"});function Z4(e){let t=e.toString().match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}var j4=({name:e,value:t,onChange:r,min:n=0,max:o=100,step:l=1,onBlur:i,onFocus:s})=>{let u=h=>{r(e4(h.target.value))},c=t!==void 0,d=b.useMemo(()=>Z4(l),[l]);return a.createElement(N4,null,a.createElement(Ac,null,n),a.createElement(I4,{id:He(e),type:"range",onChange:u,name:e,value:t,min:n,max:o,step:l,onFocus:s,onBlur:i}),a.createElement(H4,{numberOFDecimalsPlaces:d,max:o},c?t.toFixed(d):"--"," / ",o))},P4=R.label({display:"flex"}),V4=R.div(({isMaxed:e})=>({marginLeft:"0.75rem",paddingTop:"0.35rem",color:e?"red":void 0})),z4=({name:e,value:t,onChange:r,onFocus:n,onBlur:o,maxLength:l})=>{let i=h=>{r(h.target.value)},[s,u]=b.useState(!1),c=b.useCallback(()=>{r(""),u(!0)},[u]);if(t===void 0)return a.createElement(Ie.Button,{id:bn(e),onClick:c},"Set string");let d=typeof t=="string";return a.createElement(P4,null,a.createElement(Ie.Textarea,{id:He(e),maxLength:l,onChange:i,size:"flex",placeholder:"Edit string...",autoFocus:s,valid:d?null:"error",name:e,value:d?t:"",onFocus:n,onBlur:o}),l&&a.createElement(V4,{isMaxed:(t==null?void 0:t.length)===l},(t==null?void 0:t.length)??0," / ",l))},q4=R(Ie.Input)({padding:10});function U4(e){e.forEach(t=>{t.startsWith("blob:")&&URL.revokeObjectURL(t)})}var W4=({onChange:e,name:t,accept:r="image/*",value:n})=>{let o=b.useRef(null);function l(i){if(!i.target.files)return;let s=Array.from(i.target.files).map(u=>URL.createObjectURL(u));e(s),U4(n)}return b.useEffect(()=>{n==null&&o.current&&(o.current.value=null)},[n,t]),a.createElement(q4,{ref:o,id:He(t),type:"file",name:t,multiple:!0,onChange:l,accept:r,size:"flex"})},G4=b.lazy(()=>Et(()=>import("./Color-6VNJS4EI-DDpNuNxI.js"),__vite__mapDeps([20,2,3,21,7,1,4,5,6,8,9,10,11,12,13,14,15,16,17]),import.meta.url)),Y4=e=>a.createElement(b.Suspense,{fallback:a.createElement("div",null)},a.createElement(G4,{...e})),K4={array:Di,object:Di,boolean:U3,color:Y4,date:J3,number:t4,check:zt,"inline-check":zt,radio:zt,"inline-radio":zt,select:zt,"multi-select":zt,range:j4,text:z4,file:W4},_i=()=>a.createElement(a.Fragment,null,"-"),X4=({row:e,arg:t,updateArgs:r,isHovered:n})=>{let{key:o,control:l}=e,[i,s]=b.useState(!1),[u,c]=b.useState({value:t});b.useEffect(()=>{i||c({value:t})},[i,t]);let d=b.useCallback(f=>(c({value:f}),r({[o]:f}),f),[r,o]),h=b.useCallback(()=>s(!1),[]),m=b.useCallback(()=>s(!0),[]);if(!l||l.disable)return n?a.createElement(vt,{href:"https://storybook.js.org/docs/react/essentials/controls",target:"_blank",withArrow:!0},"Setup controls"):a.createElement(_i,null);let p={name:o,argType:e,value:u.value,onChange:d,onBlur:h,onFocus:m},g=K4[l.type]||_i;return a.createElement(g,{...p,...l,controlType:l.type})},J4=R.span({fontWeight:"bold"}),Q4=R.span(({theme:e})=>({color:e.color.negative,fontFamily:e.typography.fonts.mono,cursor:"help"})),e7=R.div(({theme:e})=>({"&&":{p:{margin:"0 0 10px 0"},a:{color:e.color.secondary}},code:{...pt({theme:e}),fontSize:12,fontFamily:e.typography.fonts.mono},"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}})),t7=R.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?X(.1,e.color.defaultText):X(.2,e.color.defaultText),marginTop:t?4:0})),r7=R.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?X(.1,e.color.defaultText):X(.2,e.color.defaultText),marginTop:t?12:0,marginBottom:12})),n7=R.td(({theme:e,expandable:t})=>({paddingLeft:t?"40px !important":"20px !important"})),Gr=e=>{var f;let[t,r]=b.useState(!1),{row:n,updateArgs:o,compact:l,expandable:i,initialExpandedArgs:s}=e,{name:u,description:c}=n,d=n.table||{},h=d.type||n.type,m=d.defaultValue||n.defaultValue,p=(f=n.type)==null?void 0:f.required,g=c!=null&&c!=="";return a.createElement("tr",{onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1)},a.createElement(n7,{expandable:i},a.createElement(J4,null,u),p?a.createElement(Q4,{title:"Required"},"*"):null),l?null:a.createElement("td",null,g&&a.createElement(e7,null,a.createElement(ic,null,c)),d.jsDocTags!=null?a.createElement(a.Fragment,null,a.createElement(r7,{hasDescription:g},a.createElement(ya,{value:h,initialExpandedArgs:s})),a.createElement($3,{tags:d.jsDocTags})):a.createElement(t7,{hasDescription:g},a.createElement(ya,{value:h,initialExpandedArgs:s}))),l?null:a.createElement("td",null,a.createElement(ya,{value:m,initialExpandedArgs:s})),o?a.createElement("td",null,a.createElement(X4,{...e,isHovered:t})):null)},a7=R(be)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?X(.25,e.color.defaultText):X(.3,e.color.defaultText),border:"none",display:"inline-block"})),o7=R.span(({theme:e})=>({display:"flex",lineHeight:"20px",alignItems:"center"})),l7=R.td(({theme:e})=>({position:"relative",letterSpacing:"0.35em",textTransform:"uppercase",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s1-1,color:e.base==="light"?X(.4,e.color.defaultText):X(.6,e.color.defaultText),background:`${e.background.app} !important`,"& ~ td":{background:`${e.background.app} !important`}})),i7=R.td(({theme:e})=>({position:"relative",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,background:e.background.app})),s7=R.td(()=>({position:"relative"})),u7=R.tr(({theme:e})=>({"&:hover > td":{backgroundColor:`${Ot(.005,e.background.app)} !important`,boxShadow:`${e.color.mediumlight} 0 - 1px 0 0 inset`,cursor:"row-resize"}})),$i=R.button(()=>({background:"none",border:"none",padding:"0",font:"inherit",position:"absolute",top:0,bottom:0,left:0,right:0,height:"100%",width:"100%",color:"transparent",cursor:"row-resize !important"})),Ea=({level:e="section",label:t,children:r,initialExpanded:n=!0,colSpan:o=3})=>{let[l,i]=b.useState(n),s=e==="subsection"?i7:l7,u=(r==null?void 0:r.length)||0,c=e==="subsection"?`${u} item${u!==1?"s":""}`:"",d=l?"arrowdown":"arrowright",h=`${l?"Hide":"Show"} ${e==="subsection"?u:t} item${u!==1?"s":""}`;return a.createElement(a.Fragment,null,a.createElement(u7,{title:h},a.createElement(s,{colSpan:1},a.createElement($i,{onClick:m=>i(!l),tabIndex:0},h),a.createElement(o7,null,a.createElement(a7,{icon:d}),t)),a.createElement(s7,{colSpan:o-1},a.createElement($i,{onClick:m=>i(!l),tabIndex:-1,style:{outline:"none"}},h),l?null:c)),l?r:null)},Yr=R.div(({theme:e})=>({display:"flex",gap:16,borderBottom:`1px solid ${e.appBorderColor}`,"&:last-child":{borderBottom:0}})),pe=R.div(({numColumn:e})=>({display:"flex",flexDirection:"column",flex:e||1,gap:5,padding:"12px 20px"})),ne=R.div(({theme:e,width:t,height:r})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,width:t||"100%",height:r||16,borderRadius:3})),fe=[2,4,2,2],c7=()=>a.createElement(a.Fragment,null,a.createElement(Yr,null,a.createElement(pe,{numColumn:fe[0]},a.createElement(ne,{width:"60%"})),a.createElement(pe,{numColumn:fe[1]},a.createElement(ne,{width:"30%"})),a.createElement(pe,{numColumn:fe[2]},a.createElement(ne,{width:"60%"})),a.createElement(pe,{numColumn:fe[3]},a.createElement(ne,{width:"60%"}))),a.createElement(Yr,null,a.createElement(pe,{numColumn:fe[0]},a.createElement(ne,{width:"60%"})),a.createElement(pe,{numColumn:fe[1]},a.createElement(ne,{width:"80%"}),a.createElement(ne,{width:"30%"})),a.createElement(pe,{numColumn:fe[2]},a.createElement(ne,{width:"60%"})),a.createElement(pe,{numColumn:fe[3]},a.createElement(ne,{width:"60%"}))),a.createElement(Yr,null,a.createElement(pe,{numColumn:fe[0]},a.createElement(ne,{width:"60%"})),a.createElement(pe,{numColumn:fe[1]},a.createElement(ne,{width:"80%"}),a.createElement(ne,{width:"30%"})),a.createElement(pe,{numColumn:fe[2]},a.createElement(ne,{width:"60%"})),a.createElement(pe,{numColumn:fe[3]},a.createElement(ne,{width:"60%"}))),a.createElement(Yr,null,a.createElement(pe,{numColumn:fe[0]},a.createElement(ne,{width:"60%"})),a.createElement(pe,{numColumn:fe[1]},a.createElement(ne,{width:"80%"}),a.createElement(ne,{width:"30%"})),a.createElement(pe,{numColumn:fe[2]},a.createElement(ne,{width:"60%"})),a.createElement(pe,{numColumn:fe[3]},a.createElement(ne,{width:"60%"})))),d7=R.div(({inAddonPanel:e,theme:t})=>({height:e?"100%":"auto",display:"flex",border:e?"none":`1px solid ${t.appBorderColor}`,borderRadius:e?0:t.appBorderRadius,padding:e?0:40,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:t.background.content,boxShadow:"rgba(0, 0, 0, 0.10) 0 1px 3px 0"})),p7=R.div({display:"flex",flexDirection:"column",gap:4,maxWidth:415}),f7=R.div(({theme:e})=>({fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,textAlign:"center",color:e.textColor})),m7=R.div(({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s2-1,textAlign:"center",color:e.textMutedColor})),g7=R.div(({theme:e})=>({display:"flex",fontSize:e.typography.size.s2-1,gap:25})),h7=R.div(({theme:e})=>({width:1,height:16,backgroundColor:e.appBorderColor})),b7=({inAddonPanel:e})=>{let[t,r]=b.useState(!0);return b.useEffect(()=>{let n=setTimeout(()=>{r(!1)},100);return()=>clearTimeout(n)},[]),t?null:a.createElement(d7,{inAddonPanel:e},a.createElement(p7,null,a.createElement(f7,null,e?"Interactive story playground":"Args table with interactive controls couldn't be auto-generated"),a.createElement(m7,null,"Controls give you an easy to use interface to test your components. Set your story args and you'll see controls appearing here automatically.")),a.createElement(g7,null,e&&a.createElement(a.Fragment,null,a.createElement(vt,{href:"https://youtu.be/0gOfS6K0x0E",target:"_blank",withArrow:!0},a.createElement(be,{icon:"video"})," Watch 5m video"),a.createElement(h7,null),a.createElement(vt,{href:"https://storybook.js.org/docs/react/essentials/controls",target:"_blank",withArrow:!0},"Read docs")),!e&&a.createElement(vt,{href:"https://storybook.js.org/docs/react/essentials/controls",target:"_blank",withArrow:!0},"Learn how to set that up")))},y7=R.table(({theme:e,compact:t,inAddonPanel:r})=>({"&&":{borderSpacing:0,color:e.color.defaultText,"td, th":{padding:0,border:"none",verticalAlign:"top",textOverflow:"ellipsis"},fontSize:e.typography.size.s2-1,lineHeight:"20px",textAlign:"left",width:"100%",marginTop:r?0:25,marginBottom:r?0:40,"thead th:first-of-type, td:first-of-type":{width:"25%"},"th:first-of-type, td:first-of-type":{paddingLeft:20},"th:nth-of-type(2), td:nth-of-type(2)":{...t?null:{width:"35%"}},"td:nth-of-type(3)":{...t?null:{width:"15%"}},"th:last-of-type, td:last-of-type":{paddingRight:20,...t?null:{width:"25%"}},th:{color:e.base==="light"?X(.25,e.color.defaultText):X(.45,e.color.defaultText),paddingTop:10,paddingBottom:10,paddingLeft:15,paddingRight:15},td:{paddingTop:"10px",paddingBottom:"10px","&:not(:first-of-type)":{paddingLeft:15,paddingRight:15},"&:last-of-type":{paddingRight:20}},marginLeft:r?0:1,marginRight:r?0:1,tbody:{...r?null:{filter:e.base==="light"?"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.10))":"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.20))"},"> tr > *":{background:e.background.content,borderTop:`1px solid ${e.appBorderColor}`},...r?null:{"> tr:first-of-type > *":{borderBlockStart:`1px solid ${e.appBorderColor}`},"> tr:last-of-type > *":{borderBlockEnd:`1px solid ${e.appBorderColor}`},"> tr > *:first-of-type":{borderInlineStart:`1px solid ${e.appBorderColor}`},"> tr > *:last-of-type":{borderInlineEnd:`1px solid ${e.appBorderColor}`},"> tr:first-of-type > td:first-of-type":{borderTopLeftRadius:e.appBorderRadius},"> tr:first-of-type > td:last-of-type":{borderTopRightRadius:e.appBorderRadius},"> tr:last-of-type > td:first-of-type":{borderBottomLeftRadius:e.appBorderRadius},"> tr:last-of-type > td:last-of-type":{borderBottomRightRadius:e.appBorderRadius}}}}})),v7=R(Bt)(({theme:e})=>({color:e.barTextColor,margin:"-4px -12px -4px 0"})),E7=R.span({display:"flex",justifyContent:"space-between"}),x7={alpha:(e,t)=>e.name.localeCompare(t.name),requiredFirst:(e,t)=>{var r,n;return+!!((r=t.type)!=null&&r.required)-+!!((n=e.type)!=null&&n.required)||e.name.localeCompare(t.name)},none:void 0},w7=(e,t)=>{let r={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!e)return r;Object.entries(e).forEach(([l,i])=>{let{category:s,subcategory:u}=(i==null?void 0:i.table)||{};if(s){let c=r.sections[s]||{ungrouped:[],subsections:{}};if(!u)c.ungrouped.push({key:l,...i});else{let d=c.subsections[u]||[];d.push({key:l,...i}),c.subsections[u]=d}r.sections[s]=c}else if(u){let c=r.ungroupedSubsections[u]||[];c.push({key:l,...i}),r.ungroupedSubsections[u]=c}else r.ungrouped.push({key:l,...i})});let n=x7[t],o=l=>n?Object.keys(l).reduce((i,s)=>({...i,[s]:l[s].sort(n)}),{}):l;return{ungrouped:r.ungrouped.sort(n),ungroupedSubsections:o(r.ungroupedSubsections),sections:Object.keys(r.sections).reduce((l,i)=>({...l,[i]:{ungrouped:r.sections[i].ungrouped.sort(n),subsections:o(r.sections[i].subsections)}}),{})}},A7=(e,t,r)=>{try{return jc(e,t,r)}catch(n){return t3.warn(n.message),!1}},C7=e=>{let{updateArgs:t,resetArgs:r,compact:n,inAddonPanel:o,initialExpandedArgs:l,sort:i="none",isLoading:s}=e;if("error"in e){let{error:v}=e;return a.createElement(uc,null,v," ",a.createElement(vt,{href:"http://storybook.js.org/docs/",target:"_blank",withArrow:!0},"Read the docs"))}if(s)return a.createElement(c7,null);let{rows:u,args:c,globals:d}="rows"in e&&e,h=w7(uh(u,v=>{var y;return!((y=v==null?void 0:v.table)!=null&&y.disable)&&A7(v,c||{},d||{})}),i),m=h.ungrouped.length===0,p=Object.entries(h.sections).length===0,g=Object.entries(h.ungroupedSubsections).length===0;if(m&&p&&g)return a.createElement(b7,{inAddonPanel:o});let f=1;t&&(f+=1),n||(f+=2);let A=Object.keys(h.sections).length>0,w={updateArgs:t,compact:n,inAddonPanel:o,initialExpandedArgs:l};return a.createElement(No,null,a.createElement(y7,{compact:n,inAddonPanel:o,className:"docblock-argstable sb-unstyled"},a.createElement("thead",{className:"docblock-argstable-head"},a.createElement("tr",null,a.createElement("th",null,a.createElement("span",null,"Name")),n?null:a.createElement("th",null,a.createElement("span",null,"Description")),n?null:a.createElement("th",null,a.createElement("span",null,"Default")),t?a.createElement("th",null,a.createElement(E7,null,"Control"," ",!s&&r&&a.createElement(v7,{onClick:()=>r(),title:"Reset controls"},a.createElement(be,{icon:"undo","aria-hidden":!0})))):null)),a.createElement("tbody",{className:"docblock-argstable-body"},h.ungrouped.map(v=>a.createElement(Gr,{key:v.key,row:v,arg:c&&c[v.key],...w})),Object.entries(h.ungroupedSubsections).map(([v,y])=>a.createElement(Ea,{key:v,label:v,level:"subsection",colSpan:f},y.map(x=>a.createElement(Gr,{key:x.key,row:x,arg:c&&c[x.key],expandable:A,...w})))),Object.entries(h.sections).map(([v,y])=>a.createElement(Ea,{key:v,label:v,level:"section",colSpan:f},y.ungrouped.map(x=>a.createElement(Gr,{key:x.key,row:x,arg:c&&c[x.key],...w})),Object.entries(y.subsections).map(([x,E])=>a.createElement(Ea,{key:x,label:x,level:"subsection",colSpan:f},E.map(C=>a.createElement(Gr,{key:C.key,row:C,arg:c&&c[C.key],expandable:A,...w})))))))))};R.div(({theme:e})=>({marginRight:30,fontSize:`${e.typography.size.s1}px`,color:e.base==="light"?X(.4,e.color.defaultText):X(.6,e.color.defaultText)}));R.div({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});R.div({display:"flex",flexDirection:"row",alignItems:"baseline","&:not(:last-child)":{marginBottom:"1rem"}});R.div(J,({theme:e})=>({...Nn(e),margin:"25px 0 40px",padding:"30px 20px"}));R.div(({theme:e})=>({fontWeight:e.typography.weight.bold,color:e.color.defaultText}));R.div(({theme:e})=>({color:e.base==="light"?X(.2,e.color.defaultText):X(.6,e.color.defaultText)}));R.div({flex:"0 0 30%",lineHeight:"20px",marginTop:5});R.div(({theme:e})=>({flex:1,textAlign:"center",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,lineHeight:1,overflow:"hidden",color:e.base==="light"?X(.4,e.color.defaultText):X(.6,e.color.defaultText),"> div":{display:"inline-block",overflow:"hidden",maxWidth:"100%",textOverflow:"ellipsis"},span:{display:"block",marginTop:2}}));R.div({display:"flex",flexDirection:"row"});R.div(({background:e})=>({position:"relative",flex:1,"&::before":{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:e,content:'""'}}));R.div(({theme:e})=>({...Nn(e),display:"flex",flexDirection:"row",height:50,marginBottom:5,overflow:"hidden",backgroundColor:"white",backgroundImage:"repeating-linear-gradient(-45deg, #ccc, #ccc 1px, #fff 1px, #fff 16px)",backgroundClip:"padding-box"}));R.div({display:"flex",flexDirection:"column",flex:1,position:"relative",marginBottom:30});R.div({flex:1,display:"flex",flexDirection:"row"});R.div({display:"flex",alignItems:"flex-start"});R.div({flex:"0 0 30%"});R.div({flex:1});R.div(({theme:e})=>({display:"flex",flexDirection:"row",alignItems:"center",paddingBottom:20,fontWeight:e.typography.weight.bold,color:e.base==="light"?X(.4,e.color.defaultText):X(.6,e.color.defaultText)}));R.div(({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"20px",display:"flex",flexDirection:"column"}));R.div(({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s2,color:e.color.defaultText,marginLeft:10,lineHeight:1.2}));R.div(({theme:e})=>({...Nn(e),overflow:"hidden",height:40,width:40,display:"flex",alignItems:"center",justifyContent:"center",flex:"none","> img, > svg":{width:20,height:20}}));R.div({display:"inline-flex",flexDirection:"row",alignItems:"center",flex:"0 1 calc(20% - 10px)",minWidth:120,margin:"0px 10px 30px 0"});R.div({display:"flex",flexFlow:"row wrap"});var S7=e=>`anchor--${e}`,k7=({storyId:e,children:t})=>a.createElement("div",{id:S7(e),className:"sb-anchor"},t);Oe&&Oe.__DOCS_CONTEXT__===void 0&&(Oe.__DOCS_CONTEXT__=b.createContext(null),Oe.__DOCS_CONTEXT__.displayName="DocsContext");var Re=Oe?Oe.__DOCS_CONTEXT__:b.createContext(null),Hr=(e,t)=>b.useContext(Re).resolveOf(e,t);function R7(e,t="start"){e.scrollIntoView({behavior:"smooth",block:t,inline:"nearest"})}function T7(e,t){let r=tl([e],t);return r&&r[0]}function tl(e,t){let[r,n]=b.useState({});return b.useEffect(()=>{Promise.all(e.map(async o=>{let l=await t.loadStory(o);n(i=>i[o]===l?i:{...i,[o]:l})}))}),e.map(o=>{if(r[o])return r[o];try{return t.storyById(o)}catch{return null}})}function Cc(e){return Nc(e)}var Sc=b.createContext({sources:{}}),kc="--unknown--",F7=({children:e,channel:t})=>{let[r,n]=b.useState({});return b.useEffect(()=>{let o=(l,i=null,s=!1)=>{let{id:u,args:c=void 0,source:d,format:h}=typeof l=="string"?{id:l,source:i,format:s}:l,m=c?Cc(c):kc;n(p=>({...p,[u]:{...p[u],[m]:{code:d,format:h}}}))};return t.on(sl,o),()=>t.off(sl,o)},[]),a.createElement(Sc.Provider,{value:{sources:r}},e)},O7=(e=>(e.OPEN="open",e.CLOSED="closed",e.NONE="none",e))(O7||{}),L7=e=>{let t=e.map(r=>{var n,o;return(o=(n=r.parameters.docs)==null?void 0:n.source)==null?void 0:o.state}).filter(Boolean);return t.length===0?"closed":t[0]},D7=(e,t,r)=>{let{sources:n}=r,o=n==null?void 0:n[e];return(o==null?void 0:o[Cc(t)])||(o==null?void 0:o[kc])||{code:""}},_7=({snippet:e,storyContext:t,typeFromProps:r,transformFromProps:n})=>{var u,c,d,h,m,p;let{__isArgsStory:o}=t.parameters,l=((u=t.parameters.docs)==null?void 0:u.source)||{},i=r||l.type||zn.AUTO;if(l.code!==void 0)return l.code;let s=i===zn.DYNAMIC||i===zn.AUTO&&e&&o?e:l.originalSource||"";return l.transformSource&&ue(ve`The \`transformSource\` parameter at \`parameters.docs.source.transformSource\` is deprecated, please use \`parameters.docs.source.transform\` instead. Please refer to the migration guide: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#source-block `),(c=t.parameters.docs)!=null&&c.transformSource&&ue(ve`The \`transformSource\` parameter at \`parameters.docs.transformSource\` is deprecated, please use \`parameters.docs.source.transform\` instead. @@ -348,7 +348,7 @@ ${t}`);let r=t.match(wm);if(!r)return a.createElement(b.Fragment,null,t);let[,n, `),o?a.createElement($c,{of:o.moduleExport,expanded:!1,__primary:!0,withToolbar:!0}):null},fy=({children:e,disableAnchor:t,...r})=>{if(t||typeof e!="string")return a.createElement(Io,null,e);let n=e.toLowerCase().replace(/[^a-z0-9]/gi,"-");return a.createElement(nl,{as:"h2",id:n,...r},e)},my=R(fy)(({theme:e})=>({fontSize:`${e.typography.size.s2-1}px`,fontWeight:e.typography.weight.bold,lineHeight:"16px",letterSpacing:"0.35em",textTransform:"uppercase",color:e.textMutedColor,border:0,marginBottom:"12px","&:first-of-type":{marginTop:"56px"}})),gy=({title:e="Stories",includePrimary:t=!0})=>{let{componentStories:r}=b.useContext(Re),n=r().filter(o=>{var l,i;return!((i=(l=o.parameters)==null?void 0:l.docs)!=null&&i.disable)});return t||(n=n.slice(1)),!n||n.length===0?null:a.createElement(a.Fragment,null,a.createElement(my,null,e),n.map(o=>o&&a.createElement($c,{key:o.id,of:o.moduleExport,expanded:!0,__forceInitialArgs:!0})))},hy=()=>{let e=Hr("meta",["meta"]),{stories:t}=e.csfFile,r=Object.keys(t).length===1;return a.createElement(a.Fragment,null,a.createElement(uy,null),a.createElement(cy,null),a.createElement(ao,{of:"meta"}),r?a.createElement(ao,{of:"story"}):null,a.createElement(py,null),a.createElement(j7,null),r?null:a.createElement(gy,null))};function by({context:e,docsParameter:t}){let r=t.container||ly,n=t.page||hy;return a.createElement(r,{context:e,theme:t.theme},a.createElement(n,null))}var yy={code:Oc,a:Lc,..._c},vy=class extends b.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e){let{showException:t}=this.props;t(e)}render(){let{hasError:e}=this.state,{children:t}=this.props;return e?null:a.createElement(a.Fragment,null,t)}},jy=class{constructor(){this.render=async(e,t,r)=>{let n={...yy,...t==null?void 0:t.components},o=by;return new Promise((l,i)=>{Et(()=>import("./index-DI5IigMn.js"),__vite__mapDeps([22,2,3]),import.meta.url).then(({MDXProvider:s})=>Bc(a.createElement(vy,{showException:i,key:Math.random()},a.createElement(s,{components:n},a.createElement(o,{context:e,docsParameter:t}))),r)).then(()=>l())})},this.unmount=e=>{Ic(e)}}};export{jy as D,Ie as F,be as I,So as S,Xm as T,mf as W,Se as _,Ks as a,I as b,Is as c,yy as d,ly as e,Vm as f,He as g,R as n,Iy as s}; function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["./syntaxhighlighter-B5GMVT5T-vdlkRt9a.js","./iframe-ovyJW9VA.js","./index-CBqU2yxZ.js","./_commonjsHelpers-BosuxZz1.js","./react-18-DnM9deRA.js","./index-DZGZymok.js","./pickBy-CU2rOOKe.js","./mapValues-CZh2vnSw.js","./_commonjs-dynamic-modules-TDtrdbi3.js","./index-Cw1G72V2.js","./extends-CCbyfPlC.js","./assertThisInitialized-B9jnkVVz.js","./inheritsLoose-1HkgTRWY.js","./setPrototypeOf-DgZC2w_0.js","./getPrototypeOf-BYVhAdwF.js","./cloneDeep-kl2wD128.js","./index-CKJfshIT.js","./index-CeKoIcWT.js","./formatter-SWP5E3XI-B4uEpjfg.js","./WithTooltip-V3YHNWJZ-DqqgVbMQ.js","./Color-6VNJS4EI-D1nvHf14.js","./debounce-Bq1aTuh-.js","./index-DI5IigMn.js"] + __vite__mapDeps.viteFileDeps = ["./syntaxhighlighter-B5GMVT5T-B1t35bt5.js","./iframe-BQtATEn0.js","./index-CBqU2yxZ.js","./_commonjsHelpers-BosuxZz1.js","./react-18-DnM9deRA.js","./index-DZGZymok.js","./pickBy-Us6u5-To.js","./mapValues-LQZI9uWW.js","./_commonjs-dynamic-modules-TDtrdbi3.js","./index-Cw1G72V2.js","./extends-CCbyfPlC.js","./assertThisInitialized-B9jnkVVz.js","./inheritsLoose-1HkgTRWY.js","./setPrototypeOf-DgZC2w_0.js","./getPrototypeOf-BYVhAdwF.js","./cloneDeep-C80tdQ4I.js","./index-CKJfshIT.js","./index-mVz13F_n.js","./formatter-SWP5E3XI-By3sFlHh.js","./WithTooltip-V3YHNWJZ-DzmTmVU4.js","./Color-6VNJS4EI-DDpNuNxI.js","./debounce-BkgZrIul.js","./index-DI5IigMn.js"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } diff --git a/docs/assets/cloneDeep-kl2wD128.js b/docs/assets/cloneDeep-C80tdQ4I.js similarity index 96% rename from docs/assets/cloneDeep-kl2wD128.js rename to docs/assets/cloneDeep-C80tdQ4I.js index 2cb9a765..cfdba371 100644 --- a/docs/assets/cloneDeep-kl2wD128.js +++ b/docs/assets/cloneDeep-C80tdQ4I.js @@ -1 +1 @@ -import{g as N}from"./_commonjsHelpers-BosuxZz1.js";import{k as E,f as G,g as P,h as T,i as C,j as B,l as w,m as R,n as K,d as V,o as k,b as Y}from"./mapValues-CZh2vnSw.js";import{_ as p,k as L,a as W,b as h,c as q,d as H,e as J,f as Q,g as X,h as Z}from"./pickBy-CU2rOOKe.js";function z(e,r){for(var t=-1,o=e==null?0:e.length;++t=t||a<0||u&&d>=v}function l(){var e=T();if(h(e))return p(e);i=setTimeout(l,k(e))}function p(e){return i=void 0,b&&s?g(e):(s=c=void 0,f)}function N(){i!==void 0&&clearTimeout(i),m=0,s=o=c=i=void 0}function W(){return i===void 0?f:p(T())}function x(){var e=T(),a=h(e);if(s=arguments,c=this,o=e,a){if(i===void 0)return S(o);if(u)return clearTimeout(i),i=setTimeout(l,t),g(o)}return i===void 0&&(i=setTimeout(l,t)),f}return x.cancel=N,x.flush=W,x}var ir=tr;const or=C(ir);export{or as a,ir as d}; +import{g as C}from"./_commonjsHelpers-BosuxZz1.js";import{c as j,d as O,e as A}from"./mapValues-LQZI9uWW.js";var L=j,M=function(){return L.Date.now()},B=M,F=/\s/;function R(r){for(var t=r.length;t--&&F.test(r.charAt(t)););return t}var D=R,H=D,P=/^\s+/;function U(r){return r&&r.slice(0,H(r)+1).replace(P,"")}var X=U,q=X,y=O,w=A,_=NaN,z=/^[-+]0x[0-9a-f]+$/i,G=/^0b[01]+$/i,J=/^0o[0-7]+$/i,K=parseInt;function Q(r){if(typeof r=="number")return r;if(w(r))return _;if(y(r)){var t=typeof r.valueOf=="function"?r.valueOf():r;r=y(t)?t+"":t}if(typeof r!="string")return r===0?r:+r;r=q(r);var n=G.test(r);return n||J.test(r)?K(r.slice(2),n?2:8):z.test(r)?_:+r}var V=Q,Y=O,T=B,$=V,Z="Expected a function",rr=Math.max,er=Math.min;function tr(r,t,n){var s,c,v,f,i,o,m=0,I=!1,u=!1,b=!0;if(typeof r!="function")throw new TypeError(Z);t=$(t)||0,Y(n)&&(I=!!n.leading,u="maxWait"in n,v=u?rr($(n.maxWait)||0,t):v,b="trailing"in n?!!n.trailing:b);function g(e){var a=s,d=c;return s=c=void 0,m=e,f=r.apply(d,a),f}function S(e){return m=e,i=setTimeout(l,t),I?g(e):f}function k(e){var a=e-o,d=e-m,E=t-a;return u?er(E,v-d):E}function h(e){var a=e-o,d=e-m;return o===void 0||a>=t||a<0||u&&d>=v}function l(){var e=T();if(h(e))return p(e);i=setTimeout(l,k(e))}function p(e){return i=void 0,b&&s?g(e):(s=c=void 0,f)}function N(){i!==void 0&&clearTimeout(i),m=0,s=o=c=i=void 0}function W(){return i===void 0?f:p(T())}function x(){var e=T(),a=h(e);if(s=arguments,c=this,o=e,a){if(i===void 0)return S(o);if(u)return clearTimeout(i),i=setTimeout(l,t),g(o)}return i===void 0&&(i=setTimeout(l,t)),f}return x.cancel=N,x.flush=W,x}var ir=tr;const or=C(ir);export{or as a,ir as d}; diff --git a/docs/assets/entry-preview-docs-nmOPi3-h.js b/docs/assets/entry-preview-docs-CffAHyOy.js similarity index 99% rename from docs/assets/entry-preview-docs-nmOPi3-h.js rename to docs/assets/entry-preview-docs-CffAHyOy.js index cdebbb1c..5d21a29d 100644 --- a/docs/assets/entry-preview-docs-nmOPi3-h.js +++ b/docs/assets/entry-preview-docs-CffAHyOy.js @@ -1,4 +1,4 @@ -import{u as Dn,e as qn,a as Un,S as Gn,c as te,g as zn,b as qr,h as Wn,d as $n,T as Ur,i as ft,f as Jn}from"./index-CeKoIcWT.js";import{P as Gr}from"./index-D3ylJrlI.js";import{g as xi,c as lt,a as Xn}from"./_commonjsHelpers-BosuxZz1.js";import{d as Hn}from"./index-CKJfshIT.js";import{i as Qn}from"./isPlainObject-Bu_b4Pek.js";import{F as zr}from"./mapValues-CZh2vnSw.js";import{i as Yn}from"./isString-VUkjdOh0.js";import{R as at,r as ze}from"./index-CBqU2yxZ.js";const Kn=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","search","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];var Zn=Kn;const es=xi(Zn);var bi={},Si={};(function(e){(function t(r){var i,s,a,c,f,p;function y(m){var x={},_,k;for(_ in m)m.hasOwnProperty(_)&&(k=m[_],typeof k=="object"&&k!==null?x[_]=y(k):x[_]=k);return x}function g(m,x){var _,k,V,R;for(k=m.length,V=0;k;)_=k>>>1,R=V+_,x(m[R])?k=_:(V=R+1,k-=_+1);return V}i={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ChainExpression:"ChainExpression",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ComprehensionBlock:"ComprehensionBlock",ComprehensionExpression:"ComprehensionExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DebuggerStatement:"DebuggerStatement",DirectiveStatement:"DirectiveStatement",DoWhileStatement:"DoWhileStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",GeneratorExpression:"GeneratorExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportExpression:"ImportExpression",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",ModuleSpecifier:"ModuleSpecifier",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",PrivateIdentifier:"PrivateIdentifier",Program:"Program",Property:"Property",PropertyDefinition:"PropertyDefinition",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"},a={AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AwaitExpression:["argument"],BlockStatement:["body"],BinaryExpression:["left","right"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ChainExpression:["expression"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ComprehensionBlock:["left","right"],ComprehensionExpression:["blocks","filter","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DirectiveStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExportAllDeclaration:["source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],ForStatement:["init","test","update","body"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],GeneratorExpression:["blocks","filter","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportExpression:["source"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],Literal:[],LabeledStatement:["label","body"],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],ModuleSpecifier:[],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],PrivateIdentifier:[],Program:["body"],Property:["key","value"],PropertyDefinition:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],Super:[],SwitchStatement:["discriminant","cases"],SwitchCase:["test","consequent"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]},c={},f={},p={},s={Break:c,Skip:f,Remove:p};function b(m,x){this.parent=m,this.key=x}b.prototype.replace=function(x){this.parent[this.key]=x},b.prototype.remove=function(){return Array.isArray(this.parent)?(this.parent.splice(this.key,1),!0):(this.replace(null),!1)};function E(m,x,_,k){this.node=m,this.path=x,this.wrap=_,this.ref=k}function S(){}S.prototype.path=function(){var x,_,k,V,R,G;function q(B,H){if(Array.isArray(H))for(k=0,V=H.length;k=0;--_)if(m[_].node===x)return!0;return!1}S.prototype.traverse=function(x,_){var k,V,R,G,q,B,H,ne,ue,ie,Q,xe;for(this.__initialize(x,_),xe={},k=this.__worklist,V=this.__leavelist,k.push(new E(x,null,null,null)),V.push(new E(null,null,null,null));k.length;){if(R=k.pop(),R===xe){if(R=V.pop(),B=this.__execute(_.leave,R),this.__state===c||B===c)return;continue}if(R.node){if(B=this.__execute(_.enter,R),this.__state===c||B===c)return;if(k.push(xe),V.push(R),this.__state===f||B===f)continue;if(G=R.node,q=G.type||R.wrap,ie=this.__keys[q],!ie)if(this.__fallback)ie=this.__fallback(G);else throw new Error("Unknown node type "+q+".");for(ne=ie.length;(ne-=1)>=0;)if(H=ie[ne],Q=G[H],!!Q){if(Array.isArray(Q)){for(ue=Q.length;(ue-=1)>=0;)if(Q[ue]&&!I(V,Q[ue])){if(v(q,ie[ne]))R=new E(Q[ue],[H,ue],"Property",null);else if(C(Q[ue]))R=new E(Q[ue],[H,ue],null,null);else continue;k.push(R)}}else if(C(Q)){if(I(V,Q))continue;k.push(new E(Q,H,null,null))}}}}},S.prototype.replace=function(x,_){var k,V,R,G,q,B,H,ne,ue,ie,Q,xe,Te;function Je(F){var je,vt,Me,ee;if(F.ref.remove()){for(vt=F.ref.key,ee=F.ref.parent,je=k.length;je--;)if(Me=k[je],Me.ref&&Me.ref.parent===ee){if(Me.ref.key=0;)if(Te=ue[H],ie=R[Te],!!ie)if(Array.isArray(ie)){for(ne=ie.length;(ne-=1)>=0;)if(ie[ne]){if(v(G,ue[H]))B=new E(ie[ne],[Te,ne],"Property",new b(ie,ne));else if(C(ie[ne]))B=new E(ie[ne],[Te,ne],null,new b(ie,ne));else continue;k.push(B)}}else C(ie)&&k.push(new E(ie,Te,null,new b(R,Te)))}}return xe.root};function O(m,x){var _=new S;return _.traverse(m,x)}function L(m,x){var _=new S;return _.replace(m,x)}function j(m,x){var _;return _=g(x,function(V){return V.range[0]>m.range[0]}),m.extendedRange=[m.range[0],m.range[1]],_!==x.length&&(m.extendedRange[1]=x[_].range[0]),_-=1,_>=0&&(m.extendedRange[0]=x[_].range[1]),m}function w(m,x,_){var k=[],V,R,G,q;if(!m.range)throw new Error("attachComments needs range information");if(!_.length){if(x.length){for(G=0,R=x.length;GB.range[0]));)H.extendedRange[1]===B.range[0]?(B.leadingComments||(B.leadingComments=[]),B.leadingComments.push(H),k.splice(q,1)):q+=1;if(q===k.length)return s.Break;if(k[q].extendedRange[0]>B.range[1])return s.Skip}}),q=0,O(m,{leave:function(B){for(var H;qB.range[1])return s.Skip}}),m}return r.Syntax=i,r.traverse=O,r.replace=L,r.attachComments=w,r.VisitorKeys=a,r.VisitorOption=s,r.Controller=S,r.cloneEnvironment=function(){return t({})},r})(e)})(Si);var it={},Yt={},_t={},Et={},Wr;function ts(){if(Wr)return Et;Wr=1;var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");return Et.encode=function(t){if(0<=t&&t>1;return p?-y:y}return _t.encode=function(p){var y="",g,b=a(p);do g=b&i,b>>>=t,b>0&&(g|=s),y+=e.encode(g);while(b>0);return y},_t.decode=function(p,y,g){var b=p.length,E=0,S=0,C,v;do{if(y>=b)throw new Error("Expected more digits in base 64 VLQ value.");if(v=e.decode(p.charCodeAt(y++)),v===-1)throw new Error("Invalid base64 digit: "+p.charAt(y-1));C=!!(v&s),v&=i,E=E+(v<=0;G--)V=k[G],V==="."?k.splice(G,1):V===".."?R++:R>0&&(V===""?(k.splice(G+1,R),R=0):(k.splice(G,2),R--));return m=k.join("/"),m===""&&(m=_?"/":"."),x?(x.path=m,a(x)):m}e.normalize=c;function f(w,m){w===""&&(w="."),m===""&&(m=".");var x=s(m),_=s(w);if(_&&(w=_.path||"/"),x&&!x.scheme)return _&&(x.scheme=_.scheme),a(x);if(x||m.match(i))return m;if(_&&!_.host&&!_.path)return _.host=m,a(_);var k=m.charAt(0)==="/"?m:c(w.replace(/\/+$/,"")+"/"+m);return _?(_.path=k,a(_)):k}e.join=f,e.isAbsolute=function(w){return w.charAt(0)==="/"||r.test(w)};function p(w,m){w===""&&(w="."),w=w.replace(/\/$/,"");for(var x=0;m.indexOf(w+"/")!==0;){var _=w.lastIndexOf("/");if(_<0||(w=w.slice(0,_),w.match(/^([^\/]+:\/)?\/*$/)))return m;++x}return Array(x+1).join("../")+m.substr(w.length+1)}e.relative=p;var y=function(){var w=Object.create(null);return!("__proto__"in w)}();function g(w){return w}function b(w){return S(w)?"$"+w:w}e.toSetString=y?g:b;function E(w){return S(w)?w.slice(1):w}e.fromSetString=y?g:E;function S(w){if(!w)return!1;var m=w.length;if(m<9||w.charCodeAt(m-1)!==95||w.charCodeAt(m-2)!==95||w.charCodeAt(m-3)!==111||w.charCodeAt(m-4)!==116||w.charCodeAt(m-5)!==111||w.charCodeAt(m-6)!==114||w.charCodeAt(m-7)!==112||w.charCodeAt(m-8)!==95||w.charCodeAt(m-9)!==95)return!1;for(var x=m-10;x>=0;x--)if(w.charCodeAt(x)!==36)return!1;return!0}function C(w,m,x){var _=I(w.source,m.source);return _!==0||(_=w.originalLine-m.originalLine,_!==0)||(_=w.originalColumn-m.originalColumn,_!==0||x)||(_=w.generatedColumn-m.generatedColumn,_!==0)||(_=w.generatedLine-m.generatedLine,_!==0)?_:I(w.name,m.name)}e.compareByOriginalPositions=C;function v(w,m,x){var _=w.generatedLine-m.generatedLine;return _!==0||(_=w.generatedColumn-m.generatedColumn,_!==0||x)||(_=I(w.source,m.source),_!==0)||(_=w.originalLine-m.originalLine,_!==0)||(_=w.originalColumn-m.originalColumn,_!==0)?_:I(w.name,m.name)}e.compareByGeneratedPositionsDeflated=v;function I(w,m){return w===m?0:w===null?1:m===null?-1:w>m?1:-1}function O(w,m){var x=w.generatedLine-m.generatedLine;return x!==0||(x=w.generatedColumn-m.generatedColumn,x!==0)||(x=I(w.source,m.source),x!==0)||(x=w.originalLine-m.originalLine,x!==0)||(x=w.originalColumn-m.originalColumn,x!==0)?x:I(w.name,m.name)}e.compareByGeneratedPositionsInflated=O;function L(w){return JSON.parse(w.replace(/^\)]}'[^\n]*\n/,""))}e.parseSourceMapInput=L;function j(w,m,x){if(m=m||"",w&&(w[w.length-1]!=="/"&&m[0]!=="/"&&(w+="/"),m=w+m),x){var _=s(x);if(!_)throw new Error("sourceMapURL could not be parsed");if(_.path){var k=_.path.lastIndexOf("/");k>=0&&(_.path=_.path.substring(0,k+1))}m=f(a(_),m)}return c(m)}e.computeSourceURL=j}(Kt)),Kt}var Zt={},Xr;function Ei(){if(Xr)return Zt;Xr=1;var e=pt(),t=Object.prototype.hasOwnProperty,r=typeof Map<"u";function i(){this._array=[],this._set=r?new Map:Object.create(null)}return i.fromArray=function(a,c){for(var f=new i,p=0,y=a.length;p=0)return c}else{var f=e.toSetString(a);if(t.call(this._set,f))return this._set[f]}throw new Error('"'+a+'" is not in the set.')},i.prototype.at=function(a){if(a>=0&&aa||c==a&&p>=f||e.compareByGeneratedPositionsInflated(i,s)<=0}function r(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}return r.prototype.unsortedForEach=function(s,a){this._array.forEach(s,a)},r.prototype.add=function(s){t(this._last,s)?(this._last=s,this._array.push(s)):(this._sorted=!1,this._array.push(s))},r.prototype.toArray=function(){return this._sorted||(this._array.sort(e.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},er.MappingList=r,er}var Qr;function Ci(){if(Qr)return Yt;Qr=1;var e=_i(),t=pt(),r=Ei().ArraySet,i=rs().MappingList;function s(a){a||(a={}),this._file=t.getArg(a,"file",null),this._sourceRoot=t.getArg(a,"sourceRoot",null),this._skipValidation=t.getArg(a,"skipValidation",!1),this._sources=new r,this._names=new r,this._mappings=new i,this._sourcesContents=null}return s.prototype._version=3,s.fromSourceMap=function(c){var f=c.sourceRoot,p=new s({file:c.file,sourceRoot:f});return c.eachMapping(function(y){var g={generated:{line:y.generatedLine,column:y.generatedColumn}};y.source!=null&&(g.source=y.source,f!=null&&(g.source=t.relative(f,g.source)),g.original={line:y.originalLine,column:y.originalColumn},y.name!=null&&(g.name=y.name)),p.addMapping(g)}),c.sources.forEach(function(y){var g=y;f!==null&&(g=t.relative(f,y)),p._sources.has(g)||p._sources.add(g);var b=c.sourceContentFor(y);b!=null&&p.setSourceContent(y,b)}),p},s.prototype.addMapping=function(c){var f=t.getArg(c,"generated"),p=t.getArg(c,"original",null),y=t.getArg(c,"source",null),g=t.getArg(c,"name",null);this._skipValidation||this._validateMapping(f,p,y,g),y!=null&&(y=String(y),this._sources.has(y)||this._sources.add(y)),g!=null&&(g=String(g),this._names.has(g)||this._names.add(g)),this._mappings.add({generatedLine:f.line,generatedColumn:f.column,originalLine:p!=null&&p.line,originalColumn:p!=null&&p.column,source:y,name:g})},s.prototype.setSourceContent=function(c,f){var p=c;this._sourceRoot!=null&&(p=t.relative(this._sourceRoot,p)),f!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[t.toSetString(p)]=f):this._sourcesContents&&(delete this._sourcesContents[t.toSetString(p)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},s.prototype.applySourceMap=function(c,f,p){var y=f;if(f==null){if(c.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);y=c.file}var g=this._sourceRoot;g!=null&&(y=t.relative(g,y));var b=new r,E=new r;this._mappings.unsortedForEach(function(S){if(S.source===y&&S.originalLine!=null){var C=c.originalPositionFor({line:S.originalLine,column:S.originalColumn});C.source!=null&&(S.source=C.source,p!=null&&(S.source=t.join(p,S.source)),g!=null&&(S.source=t.relative(g,S.source)),S.originalLine=C.line,S.originalColumn=C.column,C.name!=null&&(S.name=C.name))}var v=S.source;v!=null&&!b.has(v)&&b.add(v);var I=S.name;I!=null&&!E.has(I)&&E.add(I)},this),this._sources=b,this._names=E,c.sources.forEach(function(S){var C=c.sourceContentFor(S);C!=null&&(p!=null&&(S=t.join(p,S)),g!=null&&(S=t.relative(g,S)),this.setSourceContent(S,C))},this)},s.prototype._validateMapping=function(c,f,p,y){if(f&&typeof f.line!="number"&&typeof f.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(c&&"line"in c&&"column"in c&&c.line>0&&c.column>=0&&!f&&!p&&!y)){if(c&&"line"in c&&"column"in c&&f&&"line"in f&&"column"in f&&c.line>0&&c.column>=0&&f.line>0&&f.column>=0&&p)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:c,source:p,original:f,name:y}))}},s.prototype._serializeMappings=function(){for(var c=0,f=1,p=0,y=0,g=0,b=0,E="",S,C,v,I,O=this._mappings.toArray(),L=0,j=O.length;L0){if(!t.compareByGeneratedPositionsInflated(C,O[L-1]))continue;S+=","}S+=e.encode(C.generatedColumn-c),c=C.generatedColumn,C.source!=null&&(I=this._sources.indexOf(C.source),S+=e.encode(I-b),b=I,S+=e.encode(C.originalLine-1-y),y=C.originalLine-1,S+=e.encode(C.originalColumn-p),p=C.originalColumn,C.name!=null&&(v=this._names.indexOf(C.name),S+=e.encode(v-g),g=v)),E+=S}return E},s.prototype._generateSourcesContent=function(c,f){return c.map(function(p){if(!this._sourcesContents)return null;f!=null&&(p=t.relative(f,p));var y=t.toSetString(p);return Object.prototype.hasOwnProperty.call(this._sourcesContents,y)?this._sourcesContents[y]:null},this)},s.prototype.toJSON=function(){var c={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(c.file=this._file),this._sourceRoot!=null&&(c.sourceRoot=this._sourceRoot),this._sourcesContents&&(c.sourcesContent=this._generateSourcesContent(c.sources,c.sourceRoot)),c},s.prototype.toString=function(){return JSON.stringify(this.toJSON())},Yt.SourceMapGenerator=s,Yt}var nt={},tr={},Yr;function is(){return Yr||(Yr=1,function(e){e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2;function t(r,i,s,a,c,f){var p=Math.floor((i-r)/2)+r,y=c(s,a[p],!0);return y===0?p:y>0?i-p>1?t(p,i,s,a,c,f):f==e.LEAST_UPPER_BOUND?i1?t(r,p,s,a,c,f):f==e.LEAST_UPPER_BOUND?p:r<0?-1:r}e.search=function(i,s,a,c){if(s.length===0)return-1;var f=t(-1,s.length,i,s,a,c||e.GREATEST_LOWER_BOUND);if(f<0)return-1;for(;f-1>=0&&a(s[f],s[f-1],!0)===0;)--f;return f}}(tr)),tr}var rr={},Kr;function ns(){if(Kr)return rr;Kr=1;function e(i,s,a){var c=i[s];i[s]=i[a],i[a]=c}function t(i,s){return Math.round(i+Math.random()*(s-i))}function r(i,s,a,c){if(a=0){var v=this._originalMappings[C];if(g.column===void 0)for(var I=v.originalLine;v&&v.originalLine===I;)S.push({line:e.getArg(v,"generatedLine",null),column:e.getArg(v,"generatedColumn",null),lastColumn:e.getArg(v,"lastGeneratedColumn",null)}),v=this._originalMappings[++C];else for(var O=v.originalColumn;v&&v.originalLine===b&&v.originalColumn==O;)S.push({line:e.getArg(v,"generatedLine",null),column:e.getArg(v,"generatedColumn",null),lastColumn:e.getArg(v,"lastGeneratedColumn",null)}),v=this._originalMappings[++C]}return S},nt.SourceMapConsumer=a;function c(y,g){var b=y;typeof y=="string"&&(b=e.parseSourceMapInput(y));var E=e.getArg(b,"version"),S=e.getArg(b,"sources"),C=e.getArg(b,"names",[]),v=e.getArg(b,"sourceRoot",null),I=e.getArg(b,"sourcesContent",null),O=e.getArg(b,"mappings"),L=e.getArg(b,"file",null);if(E!=this._version)throw new Error("Unsupported version: "+E);v&&(v=e.normalize(v)),S=S.map(String).map(e.normalize).map(function(j){return v&&e.isAbsolute(v)&&e.isAbsolute(j)?e.relative(v,j):j}),this._names=r.fromArray(C.map(String),!0),this._sources=r.fromArray(S,!0),this._absoluteSources=this._sources.toArray().map(function(j){return e.computeSourceURL(v,j,g)}),this.sourceRoot=v,this.sourcesContent=I,this._mappings=O,this._sourceMapURL=g,this.file=L}c.prototype=Object.create(a.prototype),c.prototype.consumer=a,c.prototype._findSourceIndex=function(y){var g=y;if(this.sourceRoot!=null&&(g=e.relative(this.sourceRoot,g)),this._sources.has(g))return this._sources.indexOf(g);var b;for(b=0;b1&&(k.source=I+R[1],I+=R[1],k.originalLine=C+R[2],C=k.originalLine,k.originalLine+=1,k.originalColumn=v+R[3],v=k.originalColumn,R.length>4&&(k.name=O+R[4],O+=R[4])),_.push(k),typeof k.originalLine=="number"&&x.push(k)}s(_,e.compareByGeneratedPositionsDeflated),this.__generatedMappings=_,s(x,e.compareByOriginalPositions),this.__originalMappings=x},c.prototype._findMapping=function(g,b,E,S,C,v){if(g[E]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+g[E]);if(g[S]<0)throw new TypeError("Column must be greater than or equal to 0, got "+g[S]);return t.search(g,b,C,v)},c.prototype.computeColumnSpans=function(){for(var g=0;g=0){var S=this._generatedMappings[E];if(S.generatedLine===b.generatedLine){var C=e.getArg(S,"source",null);C!==null&&(C=this._sources.at(C),C=e.computeSourceURL(this.sourceRoot,C,this._sourceMapURL));var v=e.getArg(S,"name",null);return v!==null&&(v=this._names.at(v)),{source:C,line:e.getArg(S,"originalLine",null),column:e.getArg(S,"originalColumn",null),name:v}}}return{source:null,line:null,column:null,name:null}},c.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(g){return g==null}):!1},c.prototype.sourceContentFor=function(g,b){if(!this.sourcesContent)return null;var E=this._findSourceIndex(g);if(E>=0)return this.sourcesContent[E];var S=g;this.sourceRoot!=null&&(S=e.relative(this.sourceRoot,S));var C;if(this.sourceRoot!=null&&(C=e.urlParse(this.sourceRoot))){var v=S.replace(/^file:\/\//,"");if(C.scheme=="file"&&this._sources.has(v))return this.sourcesContent[this._sources.indexOf(v)];if((!C.path||C.path=="/")&&this._sources.has("/"+S))return this.sourcesContent[this._sources.indexOf("/"+S)]}if(b)return null;throw new Error('"'+S+'" is not in the SourceMap.')},c.prototype.generatedPositionFor=function(g){var b=e.getArg(g,"source");if(b=this._findSourceIndex(b),b<0)return{line:null,column:null,lastColumn:null};var E={source:b,originalLine:e.getArg(g,"line"),originalColumn:e.getArg(g,"column")},S=this._findMapping(E,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,e.getArg(g,"bias",a.GREATEST_LOWER_BOUND));if(S>=0){var C=this._originalMappings[S];if(C.source===E.source)return{line:e.getArg(C,"generatedLine",null),column:e.getArg(C,"generatedColumn",null),lastColumn:e.getArg(C,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},nt.BasicSourceMapConsumer=c;function p(y,g){var b=y;typeof y=="string"&&(b=e.parseSourceMapInput(y));var E=e.getArg(b,"version"),S=e.getArg(b,"sections");if(E!=this._version)throw new Error("Unsupported version: "+E);this._sources=new r,this._names=new r;var C={line:-1,column:0};this._sections=S.map(function(v){if(v.url)throw new Error("Support for url field in sections not implemented.");var I=e.getArg(v,"offset"),O=e.getArg(I,"line"),L=e.getArg(I,"column");if(O=0;p--)this.prepend(f[p]);else if(f[s]||typeof f=="string")this.children.unshift(f);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+f);return this},a.prototype.walk=function(f){for(var p,y=0,g=this.children.length;y0){for(p=[],y=0;y=6.0"},gs=[{name:"Yusuke Suzuki",email:"utatane.tea@gmail.com",web:"http://github.com/Constellation"}],ys={type:"git",url:"http://github.com/estools/escodegen.git"},vs={estraverse:"^5.2.0",esutils:"^2.0.2",esprima:"^4.0.1"},xs={"source-map":"~0.6.1"},bs={acorn:"^8.0.4",bluebird:"^3.4.7","bower-registry-client":"^1.0.0",chai:"^4.2.0","chai-exclude":"^2.0.2","commonjs-everywhere":"^0.9.7",gulp:"^4.0.2","gulp-eslint":"^6.0.0","gulp-mocha":"^7.0.2",minimist:"^1.2.5",optionator:"^0.9.1",semver:"^7.3.4"},Ss="BSD-2-Clause",_s={test:"gulp travis","unit-test":"gulp test",lint:"gulp lint",release:"node tools/release.js","build-min":"./node_modules/.bin/cjsify -ma path: tools/entry-point.js > escodegen.browser.min.js",build:"./node_modules/.bin/cjsify -a path: tools/entry-point.js > escodegen.browser.js"},Es={name:us,description:ls,homepage:cs,main:hs,bin:fs,files:ps,version:ds,engines:ms,maintainers:gs,repository:ys,dependencies:vs,optionalDependencies:xs,devDependencies:bs,license:Ss,scripts:_s};(function(e){(function(){var t,r,i,s,a,c,f,p,y,g,b,E,S,C,v,I,O,L,j,w,m,x,_,k,V,R;a=Si,c=Dn,t=a.Syntax;function G(n){return oe.Expression.hasOwnProperty(n.type)}function q(n){return oe.Statement.hasOwnProperty(n.type)}r={Sequence:0,Yield:1,Assignment:1,Conditional:2,ArrowFunction:2,Coalesce:3,LogicalOR:4,LogicalAND:5,BitwiseOR:6,BitwiseXOR:7,BitwiseAND:8,Equality:9,Relational:10,BitwiseSHIFT:11,Additive:12,Multiplicative:13,Exponentiation:14,Await:15,Unary:15,Postfix:16,OptionalChaining:17,Call:18,New:19,TaggedTemplate:20,Member:21,Primary:22},i={"??":r.Coalesce,"||":r.LogicalOR,"&&":r.LogicalAND,"|":r.BitwiseOR,"^":r.BitwiseXOR,"&":r.BitwiseAND,"==":r.Equality,"!=":r.Equality,"===":r.Equality,"!==":r.Equality,is:r.Equality,isnt:r.Equality,"<":r.Relational,">":r.Relational,"<=":r.Relational,">=":r.Relational,in:r.Relational,instanceof:r.Relational,"<<":r.BitwiseSHIFT,">>":r.BitwiseSHIFT,">>>":r.BitwiseSHIFT,"+":r.Additive,"-":r.Additive,"*":r.Multiplicative,"%":r.Multiplicative,"/":r.Multiplicative,"**":r.Exponentiation};var B=1,H=2,ne=4,ue=8,ie=16,Q=32,xe=64,Te=H|ne,Je=B|H,F=B|H|ne,je=B,vt=ne,Me=B|ne,ee=B,we=B|Q,xt=0,An=B|ie,kn=B|ue;function Lr(){return{indent:null,base:null,parse:null,comment:!1,format:{indent:{style:" ",base:0,adjustMultilineComment:!1},newline:` +import{u as Dn,e as qn,a as Un,S as Gn,c as te,g as zn,b as qr,h as Wn,d as $n,T as Ur,i as ft,f as Jn}from"./index-mVz13F_n.js";import{P as Gr}from"./index-D3ylJrlI.js";import{g as xi,c as lt,a as Xn}from"./_commonjsHelpers-BosuxZz1.js";import{d as Hn}from"./index-CKJfshIT.js";import{i as Qn}from"./isPlainObject-DCkRKKtx.js";import{F as zr}from"./mapValues-LQZI9uWW.js";import{i as Yn}from"./isString-CQ5MsmPY.js";import{R as at,r as ze}from"./index-CBqU2yxZ.js";const Kn=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","search","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];var Zn=Kn;const es=xi(Zn);var bi={},Si={};(function(e){(function t(r){var i,s,a,c,f,p;function y(m){var x={},_,k;for(_ in m)m.hasOwnProperty(_)&&(k=m[_],typeof k=="object"&&k!==null?x[_]=y(k):x[_]=k);return x}function g(m,x){var _,k,V,R;for(k=m.length,V=0;k;)_=k>>>1,R=V+_,x(m[R])?k=_:(V=R+1,k-=_+1);return V}i={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ChainExpression:"ChainExpression",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ComprehensionBlock:"ComprehensionBlock",ComprehensionExpression:"ComprehensionExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DebuggerStatement:"DebuggerStatement",DirectiveStatement:"DirectiveStatement",DoWhileStatement:"DoWhileStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",GeneratorExpression:"GeneratorExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportExpression:"ImportExpression",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",ModuleSpecifier:"ModuleSpecifier",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",PrivateIdentifier:"PrivateIdentifier",Program:"Program",Property:"Property",PropertyDefinition:"PropertyDefinition",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"},a={AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AwaitExpression:["argument"],BlockStatement:["body"],BinaryExpression:["left","right"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ChainExpression:["expression"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ComprehensionBlock:["left","right"],ComprehensionExpression:["blocks","filter","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DirectiveStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExportAllDeclaration:["source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],ForStatement:["init","test","update","body"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],GeneratorExpression:["blocks","filter","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportExpression:["source"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],Literal:[],LabeledStatement:["label","body"],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],ModuleSpecifier:[],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],PrivateIdentifier:[],Program:["body"],Property:["key","value"],PropertyDefinition:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],Super:[],SwitchStatement:["discriminant","cases"],SwitchCase:["test","consequent"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]},c={},f={},p={},s={Break:c,Skip:f,Remove:p};function b(m,x){this.parent=m,this.key=x}b.prototype.replace=function(x){this.parent[this.key]=x},b.prototype.remove=function(){return Array.isArray(this.parent)?(this.parent.splice(this.key,1),!0):(this.replace(null),!1)};function E(m,x,_,k){this.node=m,this.path=x,this.wrap=_,this.ref=k}function S(){}S.prototype.path=function(){var x,_,k,V,R,G;function q(B,H){if(Array.isArray(H))for(k=0,V=H.length;k=0;--_)if(m[_].node===x)return!0;return!1}S.prototype.traverse=function(x,_){var k,V,R,G,q,B,H,ne,ue,ie,Q,xe;for(this.__initialize(x,_),xe={},k=this.__worklist,V=this.__leavelist,k.push(new E(x,null,null,null)),V.push(new E(null,null,null,null));k.length;){if(R=k.pop(),R===xe){if(R=V.pop(),B=this.__execute(_.leave,R),this.__state===c||B===c)return;continue}if(R.node){if(B=this.__execute(_.enter,R),this.__state===c||B===c)return;if(k.push(xe),V.push(R),this.__state===f||B===f)continue;if(G=R.node,q=G.type||R.wrap,ie=this.__keys[q],!ie)if(this.__fallback)ie=this.__fallback(G);else throw new Error("Unknown node type "+q+".");for(ne=ie.length;(ne-=1)>=0;)if(H=ie[ne],Q=G[H],!!Q){if(Array.isArray(Q)){for(ue=Q.length;(ue-=1)>=0;)if(Q[ue]&&!I(V,Q[ue])){if(v(q,ie[ne]))R=new E(Q[ue],[H,ue],"Property",null);else if(C(Q[ue]))R=new E(Q[ue],[H,ue],null,null);else continue;k.push(R)}}else if(C(Q)){if(I(V,Q))continue;k.push(new E(Q,H,null,null))}}}}},S.prototype.replace=function(x,_){var k,V,R,G,q,B,H,ne,ue,ie,Q,xe,Te;function Je(F){var je,vt,Me,ee;if(F.ref.remove()){for(vt=F.ref.key,ee=F.ref.parent,je=k.length;je--;)if(Me=k[je],Me.ref&&Me.ref.parent===ee){if(Me.ref.key=0;)if(Te=ue[H],ie=R[Te],!!ie)if(Array.isArray(ie)){for(ne=ie.length;(ne-=1)>=0;)if(ie[ne]){if(v(G,ue[H]))B=new E(ie[ne],[Te,ne],"Property",new b(ie,ne));else if(C(ie[ne]))B=new E(ie[ne],[Te,ne],null,new b(ie,ne));else continue;k.push(B)}}else C(ie)&&k.push(new E(ie,Te,null,new b(R,Te)))}}return xe.root};function O(m,x){var _=new S;return _.traverse(m,x)}function L(m,x){var _=new S;return _.replace(m,x)}function j(m,x){var _;return _=g(x,function(V){return V.range[0]>m.range[0]}),m.extendedRange=[m.range[0],m.range[1]],_!==x.length&&(m.extendedRange[1]=x[_].range[0]),_-=1,_>=0&&(m.extendedRange[0]=x[_].range[1]),m}function w(m,x,_){var k=[],V,R,G,q;if(!m.range)throw new Error("attachComments needs range information");if(!_.length){if(x.length){for(G=0,R=x.length;GB.range[0]));)H.extendedRange[1]===B.range[0]?(B.leadingComments||(B.leadingComments=[]),B.leadingComments.push(H),k.splice(q,1)):q+=1;if(q===k.length)return s.Break;if(k[q].extendedRange[0]>B.range[1])return s.Skip}}),q=0,O(m,{leave:function(B){for(var H;qB.range[1])return s.Skip}}),m}return r.Syntax=i,r.traverse=O,r.replace=L,r.attachComments=w,r.VisitorKeys=a,r.VisitorOption=s,r.Controller=S,r.cloneEnvironment=function(){return t({})},r})(e)})(Si);var it={},Yt={},_t={},Et={},Wr;function ts(){if(Wr)return Et;Wr=1;var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");return Et.encode=function(t){if(0<=t&&t>1;return p?-y:y}return _t.encode=function(p){var y="",g,b=a(p);do g=b&i,b>>>=t,b>0&&(g|=s),y+=e.encode(g);while(b>0);return y},_t.decode=function(p,y,g){var b=p.length,E=0,S=0,C,v;do{if(y>=b)throw new Error("Expected more digits in base 64 VLQ value.");if(v=e.decode(p.charCodeAt(y++)),v===-1)throw new Error("Invalid base64 digit: "+p.charAt(y-1));C=!!(v&s),v&=i,E=E+(v<=0;G--)V=k[G],V==="."?k.splice(G,1):V===".."?R++:R>0&&(V===""?(k.splice(G+1,R),R=0):(k.splice(G,2),R--));return m=k.join("/"),m===""&&(m=_?"/":"."),x?(x.path=m,a(x)):m}e.normalize=c;function f(w,m){w===""&&(w="."),m===""&&(m=".");var x=s(m),_=s(w);if(_&&(w=_.path||"/"),x&&!x.scheme)return _&&(x.scheme=_.scheme),a(x);if(x||m.match(i))return m;if(_&&!_.host&&!_.path)return _.host=m,a(_);var k=m.charAt(0)==="/"?m:c(w.replace(/\/+$/,"")+"/"+m);return _?(_.path=k,a(_)):k}e.join=f,e.isAbsolute=function(w){return w.charAt(0)==="/"||r.test(w)};function p(w,m){w===""&&(w="."),w=w.replace(/\/$/,"");for(var x=0;m.indexOf(w+"/")!==0;){var _=w.lastIndexOf("/");if(_<0||(w=w.slice(0,_),w.match(/^([^\/]+:\/)?\/*$/)))return m;++x}return Array(x+1).join("../")+m.substr(w.length+1)}e.relative=p;var y=function(){var w=Object.create(null);return!("__proto__"in w)}();function g(w){return w}function b(w){return S(w)?"$"+w:w}e.toSetString=y?g:b;function E(w){return S(w)?w.slice(1):w}e.fromSetString=y?g:E;function S(w){if(!w)return!1;var m=w.length;if(m<9||w.charCodeAt(m-1)!==95||w.charCodeAt(m-2)!==95||w.charCodeAt(m-3)!==111||w.charCodeAt(m-4)!==116||w.charCodeAt(m-5)!==111||w.charCodeAt(m-6)!==114||w.charCodeAt(m-7)!==112||w.charCodeAt(m-8)!==95||w.charCodeAt(m-9)!==95)return!1;for(var x=m-10;x>=0;x--)if(w.charCodeAt(x)!==36)return!1;return!0}function C(w,m,x){var _=I(w.source,m.source);return _!==0||(_=w.originalLine-m.originalLine,_!==0)||(_=w.originalColumn-m.originalColumn,_!==0||x)||(_=w.generatedColumn-m.generatedColumn,_!==0)||(_=w.generatedLine-m.generatedLine,_!==0)?_:I(w.name,m.name)}e.compareByOriginalPositions=C;function v(w,m,x){var _=w.generatedLine-m.generatedLine;return _!==0||(_=w.generatedColumn-m.generatedColumn,_!==0||x)||(_=I(w.source,m.source),_!==0)||(_=w.originalLine-m.originalLine,_!==0)||(_=w.originalColumn-m.originalColumn,_!==0)?_:I(w.name,m.name)}e.compareByGeneratedPositionsDeflated=v;function I(w,m){return w===m?0:w===null?1:m===null?-1:w>m?1:-1}function O(w,m){var x=w.generatedLine-m.generatedLine;return x!==0||(x=w.generatedColumn-m.generatedColumn,x!==0)||(x=I(w.source,m.source),x!==0)||(x=w.originalLine-m.originalLine,x!==0)||(x=w.originalColumn-m.originalColumn,x!==0)?x:I(w.name,m.name)}e.compareByGeneratedPositionsInflated=O;function L(w){return JSON.parse(w.replace(/^\)]}'[^\n]*\n/,""))}e.parseSourceMapInput=L;function j(w,m,x){if(m=m||"",w&&(w[w.length-1]!=="/"&&m[0]!=="/"&&(w+="/"),m=w+m),x){var _=s(x);if(!_)throw new Error("sourceMapURL could not be parsed");if(_.path){var k=_.path.lastIndexOf("/");k>=0&&(_.path=_.path.substring(0,k+1))}m=f(a(_),m)}return c(m)}e.computeSourceURL=j}(Kt)),Kt}var Zt={},Xr;function Ei(){if(Xr)return Zt;Xr=1;var e=pt(),t=Object.prototype.hasOwnProperty,r=typeof Map<"u";function i(){this._array=[],this._set=r?new Map:Object.create(null)}return i.fromArray=function(a,c){for(var f=new i,p=0,y=a.length;p=0)return c}else{var f=e.toSetString(a);if(t.call(this._set,f))return this._set[f]}throw new Error('"'+a+'" is not in the set.')},i.prototype.at=function(a){if(a>=0&&aa||c==a&&p>=f||e.compareByGeneratedPositionsInflated(i,s)<=0}function r(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}return r.prototype.unsortedForEach=function(s,a){this._array.forEach(s,a)},r.prototype.add=function(s){t(this._last,s)?(this._last=s,this._array.push(s)):(this._sorted=!1,this._array.push(s))},r.prototype.toArray=function(){return this._sorted||(this._array.sort(e.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},er.MappingList=r,er}var Qr;function Ci(){if(Qr)return Yt;Qr=1;var e=_i(),t=pt(),r=Ei().ArraySet,i=rs().MappingList;function s(a){a||(a={}),this._file=t.getArg(a,"file",null),this._sourceRoot=t.getArg(a,"sourceRoot",null),this._skipValidation=t.getArg(a,"skipValidation",!1),this._sources=new r,this._names=new r,this._mappings=new i,this._sourcesContents=null}return s.prototype._version=3,s.fromSourceMap=function(c){var f=c.sourceRoot,p=new s({file:c.file,sourceRoot:f});return c.eachMapping(function(y){var g={generated:{line:y.generatedLine,column:y.generatedColumn}};y.source!=null&&(g.source=y.source,f!=null&&(g.source=t.relative(f,g.source)),g.original={line:y.originalLine,column:y.originalColumn},y.name!=null&&(g.name=y.name)),p.addMapping(g)}),c.sources.forEach(function(y){var g=y;f!==null&&(g=t.relative(f,y)),p._sources.has(g)||p._sources.add(g);var b=c.sourceContentFor(y);b!=null&&p.setSourceContent(y,b)}),p},s.prototype.addMapping=function(c){var f=t.getArg(c,"generated"),p=t.getArg(c,"original",null),y=t.getArg(c,"source",null),g=t.getArg(c,"name",null);this._skipValidation||this._validateMapping(f,p,y,g),y!=null&&(y=String(y),this._sources.has(y)||this._sources.add(y)),g!=null&&(g=String(g),this._names.has(g)||this._names.add(g)),this._mappings.add({generatedLine:f.line,generatedColumn:f.column,originalLine:p!=null&&p.line,originalColumn:p!=null&&p.column,source:y,name:g})},s.prototype.setSourceContent=function(c,f){var p=c;this._sourceRoot!=null&&(p=t.relative(this._sourceRoot,p)),f!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[t.toSetString(p)]=f):this._sourcesContents&&(delete this._sourcesContents[t.toSetString(p)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},s.prototype.applySourceMap=function(c,f,p){var y=f;if(f==null){if(c.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);y=c.file}var g=this._sourceRoot;g!=null&&(y=t.relative(g,y));var b=new r,E=new r;this._mappings.unsortedForEach(function(S){if(S.source===y&&S.originalLine!=null){var C=c.originalPositionFor({line:S.originalLine,column:S.originalColumn});C.source!=null&&(S.source=C.source,p!=null&&(S.source=t.join(p,S.source)),g!=null&&(S.source=t.relative(g,S.source)),S.originalLine=C.line,S.originalColumn=C.column,C.name!=null&&(S.name=C.name))}var v=S.source;v!=null&&!b.has(v)&&b.add(v);var I=S.name;I!=null&&!E.has(I)&&E.add(I)},this),this._sources=b,this._names=E,c.sources.forEach(function(S){var C=c.sourceContentFor(S);C!=null&&(p!=null&&(S=t.join(p,S)),g!=null&&(S=t.relative(g,S)),this.setSourceContent(S,C))},this)},s.prototype._validateMapping=function(c,f,p,y){if(f&&typeof f.line!="number"&&typeof f.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(c&&"line"in c&&"column"in c&&c.line>0&&c.column>=0&&!f&&!p&&!y)){if(c&&"line"in c&&"column"in c&&f&&"line"in f&&"column"in f&&c.line>0&&c.column>=0&&f.line>0&&f.column>=0&&p)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:c,source:p,original:f,name:y}))}},s.prototype._serializeMappings=function(){for(var c=0,f=1,p=0,y=0,g=0,b=0,E="",S,C,v,I,O=this._mappings.toArray(),L=0,j=O.length;L0){if(!t.compareByGeneratedPositionsInflated(C,O[L-1]))continue;S+=","}S+=e.encode(C.generatedColumn-c),c=C.generatedColumn,C.source!=null&&(I=this._sources.indexOf(C.source),S+=e.encode(I-b),b=I,S+=e.encode(C.originalLine-1-y),y=C.originalLine-1,S+=e.encode(C.originalColumn-p),p=C.originalColumn,C.name!=null&&(v=this._names.indexOf(C.name),S+=e.encode(v-g),g=v)),E+=S}return E},s.prototype._generateSourcesContent=function(c,f){return c.map(function(p){if(!this._sourcesContents)return null;f!=null&&(p=t.relative(f,p));var y=t.toSetString(p);return Object.prototype.hasOwnProperty.call(this._sourcesContents,y)?this._sourcesContents[y]:null},this)},s.prototype.toJSON=function(){var c={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(c.file=this._file),this._sourceRoot!=null&&(c.sourceRoot=this._sourceRoot),this._sourcesContents&&(c.sourcesContent=this._generateSourcesContent(c.sources,c.sourceRoot)),c},s.prototype.toString=function(){return JSON.stringify(this.toJSON())},Yt.SourceMapGenerator=s,Yt}var nt={},tr={},Yr;function is(){return Yr||(Yr=1,function(e){e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2;function t(r,i,s,a,c,f){var p=Math.floor((i-r)/2)+r,y=c(s,a[p],!0);return y===0?p:y>0?i-p>1?t(p,i,s,a,c,f):f==e.LEAST_UPPER_BOUND?i1?t(r,p,s,a,c,f):f==e.LEAST_UPPER_BOUND?p:r<0?-1:r}e.search=function(i,s,a,c){if(s.length===0)return-1;var f=t(-1,s.length,i,s,a,c||e.GREATEST_LOWER_BOUND);if(f<0)return-1;for(;f-1>=0&&a(s[f],s[f-1],!0)===0;)--f;return f}}(tr)),tr}var rr={},Kr;function ns(){if(Kr)return rr;Kr=1;function e(i,s,a){var c=i[s];i[s]=i[a],i[a]=c}function t(i,s){return Math.round(i+Math.random()*(s-i))}function r(i,s,a,c){if(a=0){var v=this._originalMappings[C];if(g.column===void 0)for(var I=v.originalLine;v&&v.originalLine===I;)S.push({line:e.getArg(v,"generatedLine",null),column:e.getArg(v,"generatedColumn",null),lastColumn:e.getArg(v,"lastGeneratedColumn",null)}),v=this._originalMappings[++C];else for(var O=v.originalColumn;v&&v.originalLine===b&&v.originalColumn==O;)S.push({line:e.getArg(v,"generatedLine",null),column:e.getArg(v,"generatedColumn",null),lastColumn:e.getArg(v,"lastGeneratedColumn",null)}),v=this._originalMappings[++C]}return S},nt.SourceMapConsumer=a;function c(y,g){var b=y;typeof y=="string"&&(b=e.parseSourceMapInput(y));var E=e.getArg(b,"version"),S=e.getArg(b,"sources"),C=e.getArg(b,"names",[]),v=e.getArg(b,"sourceRoot",null),I=e.getArg(b,"sourcesContent",null),O=e.getArg(b,"mappings"),L=e.getArg(b,"file",null);if(E!=this._version)throw new Error("Unsupported version: "+E);v&&(v=e.normalize(v)),S=S.map(String).map(e.normalize).map(function(j){return v&&e.isAbsolute(v)&&e.isAbsolute(j)?e.relative(v,j):j}),this._names=r.fromArray(C.map(String),!0),this._sources=r.fromArray(S,!0),this._absoluteSources=this._sources.toArray().map(function(j){return e.computeSourceURL(v,j,g)}),this.sourceRoot=v,this.sourcesContent=I,this._mappings=O,this._sourceMapURL=g,this.file=L}c.prototype=Object.create(a.prototype),c.prototype.consumer=a,c.prototype._findSourceIndex=function(y){var g=y;if(this.sourceRoot!=null&&(g=e.relative(this.sourceRoot,g)),this._sources.has(g))return this._sources.indexOf(g);var b;for(b=0;b1&&(k.source=I+R[1],I+=R[1],k.originalLine=C+R[2],C=k.originalLine,k.originalLine+=1,k.originalColumn=v+R[3],v=k.originalColumn,R.length>4&&(k.name=O+R[4],O+=R[4])),_.push(k),typeof k.originalLine=="number"&&x.push(k)}s(_,e.compareByGeneratedPositionsDeflated),this.__generatedMappings=_,s(x,e.compareByOriginalPositions),this.__originalMappings=x},c.prototype._findMapping=function(g,b,E,S,C,v){if(g[E]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+g[E]);if(g[S]<0)throw new TypeError("Column must be greater than or equal to 0, got "+g[S]);return t.search(g,b,C,v)},c.prototype.computeColumnSpans=function(){for(var g=0;g=0){var S=this._generatedMappings[E];if(S.generatedLine===b.generatedLine){var C=e.getArg(S,"source",null);C!==null&&(C=this._sources.at(C),C=e.computeSourceURL(this.sourceRoot,C,this._sourceMapURL));var v=e.getArg(S,"name",null);return v!==null&&(v=this._names.at(v)),{source:C,line:e.getArg(S,"originalLine",null),column:e.getArg(S,"originalColumn",null),name:v}}}return{source:null,line:null,column:null,name:null}},c.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(g){return g==null}):!1},c.prototype.sourceContentFor=function(g,b){if(!this.sourcesContent)return null;var E=this._findSourceIndex(g);if(E>=0)return this.sourcesContent[E];var S=g;this.sourceRoot!=null&&(S=e.relative(this.sourceRoot,S));var C;if(this.sourceRoot!=null&&(C=e.urlParse(this.sourceRoot))){var v=S.replace(/^file:\/\//,"");if(C.scheme=="file"&&this._sources.has(v))return this.sourcesContent[this._sources.indexOf(v)];if((!C.path||C.path=="/")&&this._sources.has("/"+S))return this.sourcesContent[this._sources.indexOf("/"+S)]}if(b)return null;throw new Error('"'+S+'" is not in the SourceMap.')},c.prototype.generatedPositionFor=function(g){var b=e.getArg(g,"source");if(b=this._findSourceIndex(b),b<0)return{line:null,column:null,lastColumn:null};var E={source:b,originalLine:e.getArg(g,"line"),originalColumn:e.getArg(g,"column")},S=this._findMapping(E,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,e.getArg(g,"bias",a.GREATEST_LOWER_BOUND));if(S>=0){var C=this._originalMappings[S];if(C.source===E.source)return{line:e.getArg(C,"generatedLine",null),column:e.getArg(C,"generatedColumn",null),lastColumn:e.getArg(C,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},nt.BasicSourceMapConsumer=c;function p(y,g){var b=y;typeof y=="string"&&(b=e.parseSourceMapInput(y));var E=e.getArg(b,"version"),S=e.getArg(b,"sections");if(E!=this._version)throw new Error("Unsupported version: "+E);this._sources=new r,this._names=new r;var C={line:-1,column:0};this._sections=S.map(function(v){if(v.url)throw new Error("Support for url field in sections not implemented.");var I=e.getArg(v,"offset"),O=e.getArg(I,"line"),L=e.getArg(I,"column");if(O=0;p--)this.prepend(f[p]);else if(f[s]||typeof f=="string")this.children.unshift(f);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+f);return this},a.prototype.walk=function(f){for(var p,y=0,g=this.children.length;y0){for(p=[],y=0;y=6.0"},gs=[{name:"Yusuke Suzuki",email:"utatane.tea@gmail.com",web:"http://github.com/Constellation"}],ys={type:"git",url:"http://github.com/estools/escodegen.git"},vs={estraverse:"^5.2.0",esutils:"^2.0.2",esprima:"^4.0.1"},xs={"source-map":"~0.6.1"},bs={acorn:"^8.0.4",bluebird:"^3.4.7","bower-registry-client":"^1.0.0",chai:"^4.2.0","chai-exclude":"^2.0.2","commonjs-everywhere":"^0.9.7",gulp:"^4.0.2","gulp-eslint":"^6.0.0","gulp-mocha":"^7.0.2",minimist:"^1.2.5",optionator:"^0.9.1",semver:"^7.3.4"},Ss="BSD-2-Clause",_s={test:"gulp travis","unit-test":"gulp test",lint:"gulp lint",release:"node tools/release.js","build-min":"./node_modules/.bin/cjsify -ma path: tools/entry-point.js > escodegen.browser.min.js",build:"./node_modules/.bin/cjsify -a path: tools/entry-point.js > escodegen.browser.js"},Es={name:us,description:ls,homepage:cs,main:hs,bin:fs,files:ps,version:ds,engines:ms,maintainers:gs,repository:ys,dependencies:vs,optionalDependencies:xs,devDependencies:bs,license:Ss,scripts:_s};(function(e){(function(){var t,r,i,s,a,c,f,p,y,g,b,E,S,C,v,I,O,L,j,w,m,x,_,k,V,R;a=Si,c=Dn,t=a.Syntax;function G(n){return oe.Expression.hasOwnProperty(n.type)}function q(n){return oe.Statement.hasOwnProperty(n.type)}r={Sequence:0,Yield:1,Assignment:1,Conditional:2,ArrowFunction:2,Coalesce:3,LogicalOR:4,LogicalAND:5,BitwiseOR:6,BitwiseXOR:7,BitwiseAND:8,Equality:9,Relational:10,BitwiseSHIFT:11,Additive:12,Multiplicative:13,Exponentiation:14,Await:15,Unary:15,Postfix:16,OptionalChaining:17,Call:18,New:19,TaggedTemplate:20,Member:21,Primary:22},i={"??":r.Coalesce,"||":r.LogicalOR,"&&":r.LogicalAND,"|":r.BitwiseOR,"^":r.BitwiseXOR,"&":r.BitwiseAND,"==":r.Equality,"!=":r.Equality,"===":r.Equality,"!==":r.Equality,is:r.Equality,isnt:r.Equality,"<":r.Relational,">":r.Relational,"<=":r.Relational,">=":r.Relational,in:r.Relational,instanceof:r.Relational,"<<":r.BitwiseSHIFT,">>":r.BitwiseSHIFT,">>>":r.BitwiseSHIFT,"+":r.Additive,"-":r.Additive,"*":r.Multiplicative,"%":r.Multiplicative,"/":r.Multiplicative,"**":r.Exponentiation};var B=1,H=2,ne=4,ue=8,ie=16,Q=32,xe=64,Te=H|ne,Je=B|H,F=B|H|ne,je=B,vt=ne,Me=B|ne,ee=B,we=B|Q,xt=0,An=B|ie,kn=B|ue;function Lr(){return{indent:null,base:null,parse:null,comment:!1,format:{indent:{style:" ",base:0,adjustMultilineComment:!1},newline:` `,space:" ",json:!1,renumber:!1,hexadecimal:!1,quotes:"single",escapeless:!1,compact:!1,parentheses:!0,semicolons:!0,safeConcatenation:!1,preserveBlankLines:!1},moz:{comprehensionExpressionStartsWithAssignment:!1,starlessGenerator:!1},sourceMap:null,sourceMapRoot:null,sourceMapWithCode:!1,directive:!1,raw:!0,verbatim:null,sourceCode:null}}function De(n,u){var o="";for(u|=0;u>0;u>>>=1,n+=n)u&1&&(o+=n);return o}function Tn(n){return/[\r\n]/g.test(n)}function he(n){var u=n.length;return u&&c.code.isLineTerminator(n.charCodeAt(u-1))}function Or(n,u){var o;for(o in u)u.hasOwnProperty(o)&&(n[o]=u[o]);return n}function bt(n,u){var o,l;function d(A){return typeof A=="object"&&A instanceof Object&&!(A instanceof RegExp)}for(o in u)u.hasOwnProperty(o)&&(l=u[o],d(l)?d(n[o])?bt(n[o],l):n[o]=bt({},l):n[o]=l);return n}function In(n){var u,o,l,d,A;if(n!==n)throw new Error("Numeric literal whose value is NaN");if(n<0||n===0&&1/n<0)throw new Error("Numeric literal whose value is negative");if(n===1/0)return y?"null":g?"1e400":"1e+400";if(u=""+n,!g||u.length<3)return u;for(o=u.indexOf("."),!y&&u.charCodeAt(0)===48&&o===1&&(o=0,u=u.slice(1)),l=u,u=u.replace("e+","e"),d=0,(A=l.indexOf("e"))>0&&(d=+l.slice(A+1),l=l.slice(0,A)),o>=0&&(d-=l.length-o-1,l=+(l.slice(0,o)+l.slice(o+1))+""),A=0;l.charCodeAt(l.length+A-1)===48;)--A;return A!==0&&(d-=A,l=l.slice(0,A)),d!==0&&(l+="e"+d),(l.length1e12&&Math.floor(n)===n&&(l="0x"+n.toString(16)).length255?"\\u"+"0000".slice(o.length)+o:n===0&&!c.code.isDecimalDigit(u)?"\\0":n===11?"\\x0B":"\\x"+"00".slice(o.length)+o)}function Ln(n){if(n===92)return"\\\\";if(n===10)return"\\n";if(n===13)return"\\r";if(n===8232)return"\\u2028";if(n===8233)return"\\u2029";throw new Error("Incorrectly classified character")}function On(n){var u,o,l,d;for(d=E==="double"?'"':"'",u=0,o=n.length;u126))){u+=Nn(d,n.charCodeAt(o+1));continue}u+=String.fromCharCode(d)}if(P=!(E==="double"||E==="auto"&&T=0&&!c.code.isLineTerminator(n.charCodeAt(u));--u);return n.length-1-u}function Fn(n,u){var o,l,d,A,T,P,M,J;for(o=n.split(/\r\n|[\r\n]/),P=Number.MAX_VALUE,l=1,d=o.length;lT&&(P=T)}for(typeof u<"u"?(M=f,o[1][P]==="*"&&(u+=" "),f=u):(P&1&&--P,M=f),l=1,d=o.length;l0){if(A=u,k){for(d=n.leadingComments[0],u=[],J=d.extendedRange,ce=d.range,He=_.substring(J[0],ce[0]),Ae=(He.match(/\n/g)||[]).length,Ae>0?(u.push(De(` diff --git a/docs/assets/formatter-SWP5E3XI-B4uEpjfg.js b/docs/assets/formatter-SWP5E3XI-By3sFlHh.js similarity index 99% rename from docs/assets/formatter-SWP5E3XI-B4uEpjfg.js rename to docs/assets/formatter-SWP5E3XI-By3sFlHh.js index b0dee235..eeece91d 100644 --- a/docs/assets/formatter-SWP5E3XI-B4uEpjfg.js +++ b/docs/assets/formatter-SWP5E3XI-By3sFlHh.js @@ -1,4 +1,4 @@ -import{_ as ea,b as ta}from"./chunk-HLWAVYOI-CFPuBJI5.js";import{m as pl}from"./pickBy-CU2rOOKe.js";import"./iframe-ovyJW9VA.js";import"../sb-preview/runtime.js";import"./index-CBqU2yxZ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./react-18-DnM9deRA.js";import"./index-DZGZymok.js";import"./index-Cw1G72V2.js";import"./extends-CCbyfPlC.js";import"./assertThisInitialized-B9jnkVVz.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getPrototypeOf-BYVhAdwF.js";import"./mapValues-CZh2vnSw.js";import"./cloneDeep-kl2wD128.js";import"./index-CKJfshIT.js";import"./index-CeKoIcWT.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";var cl=ta({"node_modules/prettier/parser-html.js"(Jr,Xr){(function(Ae){if(typeof Jr=="object"&&typeof Xr=="object")Xr.exports=Ae();else if(typeof define=="function"&&define.amd)define(Ae);else{var Yt=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};Yt.prettierPlugins=Yt.prettierPlugins||{},Yt.prettierPlugins.html=Ae()}})(function(){var Ae=(ot,Ne)=>()=>(Ne||ot((Ne={exports:{}}).exports,Ne),Ne.exports),Yt=Ae((ot,Ne)=>{var Se=function(Oe){return Oe&&Oe.Math==Math&&Oe};Ne.exports=Se(typeof globalThis=="object"&&globalThis)||Se(typeof window=="object"&&window)||Se(typeof self=="object"&&self)||Se(typeof global=="object"&&global)||function(){return this}()||Function("return this")()}),hr=Ae((ot,Ne)=>{Ne.exports=function(Se){try{return!!Se()}catch{return!0}}}),br=Ae((ot,Ne)=>{var Se=hr();Ne.exports=!Se(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})}),Hr=Ae((ot,Ne)=>{var Se=hr();Ne.exports=!Se(function(){var Oe=(function(){}).bind();return typeof Oe!="function"||Oe.hasOwnProperty("prototype")})}),gr=Ae((ot,Ne)=>{var Se=Hr(),Oe=Function.prototype.call;Ne.exports=Se?Oe.bind(Oe):function(){return Oe.apply(Oe,arguments)}}),Dn=Ae(ot=>{var Ne={}.propertyIsEnumerable,Se=Object.getOwnPropertyDescriptor,Oe=Se&&!Ne.call({1:2},1);ot.f=Oe?function(ee){var V=Se(this,ee);return!!V&&V.enumerable}:Ne}),Lr=Ae((ot,Ne)=>{Ne.exports=function(Se,Oe){return{enumerable:!(Se&1),configurable:!(Se&2),writable:!(Se&4),value:Oe}}}),Dr=Ae((ot,Ne)=>{var Se=Hr(),Oe=Function.prototype,ee=Oe.call,V=Se&&Oe.bind.bind(ee,ee);Ne.exports=Se?V:function(W){return function(){return ee.apply(W,arguments)}}}),Br=Ae((ot,Ne)=>{var Se=Dr(),Oe=Se({}.toString),ee=Se("".slice);Ne.exports=function(V){return ee(Oe(V),8,-1)}}),Zr=Ae((ot,Ne)=>{var Se=Dr(),Oe=hr(),ee=Br(),V=Object,W=Se("".split);Ne.exports=Oe(function(){return!V("z").propertyIsEnumerable(0)})?function(Z){return ee(Z)=="String"?W(Z,""):V(Z)}:V}),nn=Ae((ot,Ne)=>{Ne.exports=function(Se){return Se==null}}),qn=Ae((ot,Ne)=>{var Se=nn(),Oe=TypeError;Ne.exports=function(ee){if(Se(ee))throw Oe("Can't call method on "+ee);return ee}}),dn=Ae((ot,Ne)=>{var Se=Zr(),Oe=qn();Ne.exports=function(ee){return Se(Oe(ee))}}),Vn=Ae((ot,Ne)=>{var Se=typeof document=="object"&&document.all,Oe=typeof Se>"u"&&Se!==void 0;Ne.exports={all:Se,IS_HTMLDDA:Oe}}),dr=Ae((ot,Ne)=>{var Se=Vn(),Oe=Se.all;Ne.exports=Se.IS_HTMLDDA?function(ee){return typeof ee=="function"||ee===Oe}:function(ee){return typeof ee=="function"}}),Or=Ae((ot,Ne)=>{var Se=dr(),Oe=Vn(),ee=Oe.all;Ne.exports=Oe.IS_HTMLDDA?function(V){return typeof V=="object"?V!==null:Se(V)||V===ee}:function(V){return typeof V=="object"?V!==null:Se(V)}}),un=Ae((ot,Ne)=>{var Se=Yt(),Oe=dr(),ee=function(V){return Oe(V)?V:void 0};Ne.exports=function(V,W){return arguments.length<2?ee(Se[V]):Se[V]&&Se[V][W]}}),Un=Ae((ot,Ne)=>{var Se=Dr();Ne.exports=Se({}.isPrototypeOf)}),ii=Ae((ot,Ne)=>{var Se=un();Ne.exports=Se("navigator","userAgent")||""}),si=Ae((ot,Ne)=>{var Se=Yt(),Oe=ii(),ee=Se.process,V=Se.Deno,W=ee&&ee.versions||V&&V.version,Z=W&&W.v8,Y,ne;Z&&(Y=Z.split("."),ne=Y[0]>0&&Y[0]<4?1:+(Y[0]+Y[1])),!ne&&Oe&&(Y=Oe.match(/Edge\/(\d+)/),(!Y||Y[1]>=74)&&(Y=Oe.match(/Chrome\/(\d+)/),Y&&(ne=+Y[1]))),Ne.exports=ne}),Gn=Ae((ot,Ne)=>{var Se=si(),Oe=hr();Ne.exports=!!Object.getOwnPropertySymbols&&!Oe(function(){var ee=Symbol();return!String(ee)||!(Object(ee)instanceof Symbol)||!Symbol.sham&&Se&&Se<41})}),Jn=Ae((ot,Ne)=>{var Se=Gn();Ne.exports=Se&&!Symbol.sham&&typeof Symbol.iterator=="symbol"}),Xn=Ae((ot,Ne)=>{var Se=un(),Oe=dr(),ee=Un(),V=Jn(),W=Object;Ne.exports=V?function(Z){return typeof Z=="symbol"}:function(Z){var Y=Se("Symbol");return Oe(Y)&&ee(Y.prototype,W(Z))}}),fn=Ae((ot,Ne)=>{var Se=String;Ne.exports=function(Oe){try{return Se(Oe)}catch{return"Object"}}}),sn=Ae((ot,Ne)=>{var Se=dr(),Oe=fn(),ee=TypeError;Ne.exports=function(V){if(Se(V))return V;throw ee(Oe(V)+" is not a function")}}),mn=Ae((ot,Ne)=>{var Se=sn(),Oe=nn();Ne.exports=function(ee,V){var W=ee[V];return Oe(W)?void 0:Se(W)}}),ai=Ae((ot,Ne)=>{var Se=gr(),Oe=dr(),ee=Or(),V=TypeError;Ne.exports=function(W,Z){var Y,ne;if(Z==="string"&&Oe(Y=W.toString)&&!ee(ne=Se(Y,W))||Oe(Y=W.valueOf)&&!ee(ne=Se(Y,W))||Z!=="string"&&Oe(Y=W.toString)&&!ee(ne=Se(Y,W)))return ne;throw V("Can't convert object to primitive value")}}),oi=Ae((ot,Ne)=>{Ne.exports=!1}),hn=Ae((ot,Ne)=>{var Se=Yt(),Oe=Object.defineProperty;Ne.exports=function(ee,V){try{Oe(Se,ee,{value:V,configurable:!0,writable:!0})}catch{Se[ee]=V}return V}}),gn=Ae((ot,Ne)=>{var Se=Yt(),Oe=hn(),ee="__core-js_shared__",V=Se[ee]||Oe(ee,{});Ne.exports=V}),Wn=Ae((ot,Ne)=>{var Se=oi(),Oe=gn();(Ne.exports=function(ee,V){return Oe[ee]||(Oe[ee]=V!==void 0?V:{})})("versions",[]).push({version:"3.26.1",mode:Se?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.26.1/LICENSE",source:"https://github.com/zloirock/core-js"})}),Sn=Ae((ot,Ne)=>{var Se=qn(),Oe=Object;Ne.exports=function(ee){return Oe(Se(ee))}}),kr=Ae((ot,Ne)=>{var Se=Dr(),Oe=Sn(),ee=Se({}.hasOwnProperty);Ne.exports=Object.hasOwn||function(V,W){return ee(Oe(V),W)}}),zn=Ae((ot,Ne)=>{var Se=Dr(),Oe=0,ee=Math.random(),V=Se(1 .toString);Ne.exports=function(W){return"Symbol("+(W===void 0?"":W)+")_"+V(++Oe+ee,36)}}),$r=Ae((ot,Ne)=>{var Se=Yt(),Oe=Wn(),ee=kr(),V=zn(),W=Gn(),Z=Jn(),Y=Oe("wks"),ne=Se.Symbol,Fe=ne&&ne.for,je=Z?ne:ne&&ne.withoutSetter||V;Ne.exports=function(he){if(!ee(Y,he)||!(W||typeof Y[he]=="string")){var qe="Symbol."+he;W&&ee(ne,he)?Y[he]=ne[he]:Z&&Fe?Y[he]=Fe(qe):Y[he]=je(qe)}return Y[he]}}),li=Ae((ot,Ne)=>{var Se=gr(),Oe=Or(),ee=Xn(),V=mn(),W=ai(),Z=$r(),Y=TypeError,ne=Z("toPrimitive");Ne.exports=function(Fe,je){if(!Oe(Fe)||ee(Fe))return Fe;var he=V(Fe,ne),qe;if(he){if(je===void 0&&(je="default"),qe=Se(he,Fe,je),!Oe(qe)||ee(qe))return qe;throw Y("Can't convert object to primitive value")}return je===void 0&&(je="number"),W(Fe,je)}}),yn=Ae((ot,Ne)=>{var Se=li(),Oe=Xn();Ne.exports=function(ee){var V=Se(ee,"string");return Oe(V)?V:V+""}}),pi=Ae((ot,Ne)=>{var Se=Yt(),Oe=Or(),ee=Se.document,V=Oe(ee)&&Oe(ee.createElement);Ne.exports=function(W){return V?ee.createElement(W):{}}}),Hn=Ae((ot,Ne)=>{var Se=br(),Oe=hr(),ee=pi();Ne.exports=!Se&&!Oe(function(){return Object.defineProperty(ee("div"),"a",{get:function(){return 7}}).a!=7})}),Yn=Ae(ot=>{var Ne=br(),Se=gr(),Oe=Dn(),ee=Lr(),V=dn(),W=yn(),Z=kr(),Y=Hn(),ne=Object.getOwnPropertyDescriptor;ot.f=Ne?ne:function(Fe,je){if(Fe=V(Fe),je=W(je),Y)try{return ne(Fe,je)}catch{}if(Z(Fe,je))return ee(!Se(Oe.f,Fe,je),Fe[je])}}),ci=Ae((ot,Ne)=>{var Se=br(),Oe=hr();Ne.exports=Se&&Oe(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})}),Wr=Ae((ot,Ne)=>{var Se=Or(),Oe=String,ee=TypeError;Ne.exports=function(V){if(Se(V))return V;throw ee(Oe(V)+" is not an object")}}),en=Ae(ot=>{var Ne=br(),Se=Hn(),Oe=ci(),ee=Wr(),V=yn(),W=TypeError,Z=Object.defineProperty,Y=Object.getOwnPropertyDescriptor,ne="enumerable",Fe="configurable",je="writable";ot.f=Ne?Oe?function(he,qe,et){if(ee(he),qe=V(qe),ee(et),typeof he=="function"&&qe==="prototype"&&"value"in et&&je in et&&!et[je]){var Ze=Y(he,qe);Ze&&Ze[je]&&(he[qe]=et.value,et={configurable:Fe in et?et[Fe]:Ze[Fe],enumerable:ne in et?et[ne]:Ze[ne],writable:!1})}return Z(he,qe,et)}:Z:function(he,qe,et){if(ee(he),qe=V(qe),ee(et),Se)try{return Z(he,qe,et)}catch{}if("get"in et||"set"in et)throw W("Accessors not supported");return"value"in et&&(he[qe]=et.value),he}}),Kn=Ae((ot,Ne)=>{var Se=br(),Oe=en(),ee=Lr();Ne.exports=Se?function(V,W,Z){return Oe.f(V,W,ee(1,Z))}:function(V,W,Z){return V[W]=Z,V}}),Di=Ae((ot,Ne)=>{var Se=br(),Oe=kr(),ee=Function.prototype,V=Se&&Object.getOwnPropertyDescriptor,W=Oe(ee,"name"),Z=W&&(function(){}).name==="something",Y=W&&(!Se||Se&&V(ee,"name").configurable);Ne.exports={EXISTS:W,PROPER:Z,CONFIGURABLE:Y}}),Qn=Ae((ot,Ne)=>{var Se=Dr(),Oe=dr(),ee=gn(),V=Se(Function.toString);Oe(ee.inspectSource)||(ee.inspectSource=function(W){return V(W)}),Ne.exports=ee.inspectSource}),di=Ae((ot,Ne)=>{var Se=Yt(),Oe=dr(),ee=Se.WeakMap;Ne.exports=Oe(ee)&&/native code/.test(String(ee))}),fi=Ae((ot,Ne)=>{var Se=Wn(),Oe=zn(),ee=Se("keys");Ne.exports=function(V){return ee[V]||(ee[V]=Oe(V))}}),Zn=Ae((ot,Ne)=>{Ne.exports={}}),mi=Ae((ot,Ne)=>{var Se=di(),Oe=Yt(),ee=Or(),V=Kn(),W=kr(),Z=gn(),Y=fi(),ne=Zn(),Fe="Object already initialized",je=Oe.TypeError,he=Oe.WeakMap,qe,et,Ze,nt=function(At){return Ze(At)?et(At):qe(At,{})},rt=function(At){return function(Lt){var qt;if(!ee(Lt)||(qt=et(Lt)).type!==At)throw je("Incompatible receiver, "+At+" required");return qt}};Se||Z.state?($=Z.state||(Z.state=new he),$.get=$.get,$.has=$.has,$.set=$.set,qe=function(At,Lt){if($.has(At))throw je(Fe);return Lt.facade=At,$.set(At,Lt),Lt},et=function(At){return $.get(At)||{}},Ze=function(At){return $.has(At)}):(Ft=Y("state"),ne[Ft]=!0,qe=function(At,Lt){if(W(At,Ft))throw je(Fe);return Lt.facade=At,V(At,Ft,Lt),Lt},et=function(At){return W(At,Ft)?At[Ft]:{}},Ze=function(At){return W(At,Ft)});var $,Ft;Ne.exports={set:qe,get:et,has:Ze,enforce:nt,getterFor:rt}}),gu=Ae((ot,Ne)=>{var Se=hr(),Oe=dr(),ee=kr(),V=br(),W=Di().CONFIGURABLE,Z=Qn(),Y=mi(),ne=Y.enforce,Fe=Y.get,je=Object.defineProperty,he=V&&!Se(function(){return je(function(){},"length",{value:8}).length!==8}),qe=String(String).split("String"),et=Ne.exports=function(Ze,nt,rt){String(nt).slice(0,7)==="Symbol("&&(nt="["+String(nt).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),rt&&rt.getter&&(nt="get "+nt),rt&&rt.setter&&(nt="set "+nt),(!ee(Ze,"name")||W&&Ze.name!==nt)&&(V?je(Ze,"name",{value:nt,configurable:!0}):Ze.name=nt),he&&rt&&ee(rt,"arity")&&Ze.length!==rt.arity&&je(Ze,"length",{value:rt.arity});try{rt&&ee(rt,"constructor")&&rt.constructor?V&&je(Ze,"prototype",{writable:!1}):Ze.prototype&&(Ze.prototype=void 0)}catch{}var $=ne(Ze);return ee($,"source")||($.source=qe.join(typeof nt=="string"?nt:"")),Ze};Function.prototype.toString=et(function(){return Oe(this)&&Fe(this).source||Z(this)},"toString")}),hi=Ae((ot,Ne)=>{var Se=dr(),Oe=en(),ee=gu(),V=hn();Ne.exports=function(W,Z,Y,ne){ne||(ne={});var Fe=ne.enumerable,je=ne.name!==void 0?ne.name:Z;if(Se(Y)&&ee(Y,je,ne),ne.global)Fe?W[Z]=Y:V(Z,Y);else{try{ne.unsafe?W[Z]&&(Fe=!0):delete W[Z]}catch{}Fe?W[Z]=Y:Oe.f(W,Z,{value:Y,enumerable:!1,configurable:!ne.nonConfigurable,writable:!ne.nonWritable})}return W}}),gi=Ae((ot,Ne)=>{var Se=Math.ceil,Oe=Math.floor;Ne.exports=Math.trunc||function(ee){var V=+ee;return(V>0?Oe:Se)(V)}}),xn=Ae((ot,Ne)=>{var Se=gi();Ne.exports=function(Oe){var ee=+Oe;return ee!==ee||ee===0?0:Se(ee)}}),yi=Ae((ot,Ne)=>{var Se=xn(),Oe=Math.max,ee=Math.min;Ne.exports=function(V,W){var Z=Se(V);return Z<0?Oe(Z+W,0):ee(Z,W)}}),Ei=Ae((ot,Ne)=>{var Se=xn(),Oe=Math.min;Ne.exports=function(ee){return ee>0?Oe(Se(ee),9007199254740991):0}}),tn=Ae((ot,Ne)=>{var Se=Ei();Ne.exports=function(Oe){return Se(Oe.length)}}),Ci=Ae((ot,Ne)=>{var Se=dn(),Oe=yi(),ee=tn(),V=function(W){return function(Z,Y,ne){var Fe=Se(Z),je=ee(Fe),he=Oe(ne,je),qe;if(W&&Y!=Y){for(;je>he;)if(qe=Fe[he++],qe!=qe)return!0}else for(;je>he;he++)if((W||he in Fe)&&Fe[he]===Y)return W||he||0;return!W&&-1}};Ne.exports={includes:V(!0),indexOf:V(!1)}}),Fi=Ae((ot,Ne)=>{var Se=Dr(),Oe=kr(),ee=dn(),V=Ci().indexOf,W=Zn(),Z=Se([].push);Ne.exports=function(Y,ne){var Fe=ee(Y),je=0,he=[],qe;for(qe in Fe)!Oe(W,qe)&&Oe(Fe,qe)&&Z(he,qe);for(;ne.length>je;)Oe(Fe,qe=ne[je++])&&(~V(he,qe)||Z(he,qe));return he}}),Ai=Ae((ot,Ne)=>{Ne.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]}),vi=Ae(ot=>{var Ne=Fi(),Se=Ai(),Oe=Se.concat("length","prototype");ot.f=Object.getOwnPropertyNames||function(ee){return Ne(ee,Oe)}}),bi=Ae(ot=>{ot.f=Object.getOwnPropertySymbols}),Si=Ae((ot,Ne)=>{var Se=un(),Oe=Dr(),ee=vi(),V=bi(),W=Wr(),Z=Oe([].concat);Ne.exports=Se("Reflect","ownKeys")||function(Y){var ne=ee.f(W(Y)),Fe=V.f;return Fe?Z(ne,Fe(Y)):ne}}),xi=Ae((ot,Ne)=>{var Se=kr(),Oe=Si(),ee=Yn(),V=en();Ne.exports=function(W,Z,Y){for(var ne=Oe(Z),Fe=V.f,je=ee.f,he=0;he{var Se=hr(),Oe=dr(),ee=/#|\.prototype\./,V=function(Fe,je){var he=Z[W(Fe)];return he==ne?!0:he==Y?!1:Oe(je)?Se(je):!!je},W=V.normalize=function(Fe){return String(Fe).replace(ee,".").toLowerCase()},Z=V.data={},Y=V.NATIVE="N",ne=V.POLYFILL="P";Ne.exports=V}),an=Ae((ot,Ne)=>{var Se=Yt(),Oe=Yn().f,ee=Kn(),V=hi(),W=hn(),Z=xi(),Y=Ti();Ne.exports=function(ne,Fe){var je=ne.target,he=ne.global,qe=ne.stat,et,Ze,nt,rt,$,Ft;if(he?Ze=Se:qe?Ze=Se[je]||W(je,{}):Ze=(Se[je]||{}).prototype,Ze)for(nt in Fe){if($=Fe[nt],ne.dontCallGetSet?(Ft=Oe(Ze,nt),rt=Ft&&Ft.value):rt=Ze[nt],et=Y(he?nt:je+(qe?".":"#")+nt,ne.forced),!et&&rt!==void 0){if(typeof $==typeof rt)continue;Z($,rt)}(ne.sham||rt&&rt.sham)&&ee($,"sham",!0),V(Ze,nt,$,ne)}}}),yu=Ae(()=>{var ot=an(),Ne=Yt();ot({global:!0,forced:Ne.globalThis!==Ne},{globalThis:Ne})}),Bi=Ae(()=>{yu()}),Eu=Ae((ot,Ne)=>{var Se=Br();Ne.exports=Array.isArray||function(Oe){return Se(Oe)=="Array"}}),Cu=Ae((ot,Ne)=>{var Se=TypeError,Oe=9007199254740991;Ne.exports=function(ee){if(ee>Oe)throw Se("Maximum allowed index exceeded");return ee}}),Fu=Ae((ot,Ne)=>{var Se=Br(),Oe=Dr();Ne.exports=function(ee){if(Se(ee)==="Function")return Oe(ee)}}),Au=Ae((ot,Ne)=>{var Se=Fu(),Oe=sn(),ee=Hr(),V=Se(Se.bind);Ne.exports=function(W,Z){return Oe(W),Z===void 0?W:ee?V(W,Z):function(){return W.apply(Z,arguments)}}}),vu=Ae((ot,Ne)=>{var Se=Eu(),Oe=tn(),ee=Cu(),V=Au(),W=function(Z,Y,ne,Fe,je,he,qe,et){for(var Ze=je,nt=0,rt=qe?V(qe,et):!1,$,Ft;nt0&&Se($)?(Ft=Oe($),Ze=W(Z,Y,$,Ft,Ze,he-1)-1):(ee(Ze+1),Z[Ze]=$),Ze++),nt++;return Ze};Ne.exports=W}),wi=Ae((ot,Ne)=>{var Se=$r(),Oe=Se("toStringTag"),ee={};ee[Oe]="z",Ne.exports=String(ee)==="[object z]"}),bu=Ae((ot,Ne)=>{var Se=wi(),Oe=dr(),ee=Br(),V=$r(),W=V("toStringTag"),Z=Object,Y=ee(function(){return arguments}())=="Arguments",ne=function(Fe,je){try{return Fe[je]}catch{}};Ne.exports=Se?ee:function(Fe){var je,he,qe;return Fe===void 0?"Undefined":Fe===null?"Null":typeof(he=ne(je=Z(Fe),W))=="string"?he:Y?ee(je):(qe=ee(je))=="Object"&&Oe(je.callee)?"Arguments":qe}}),Su=Ae((ot,Ne)=>{var Se=Dr(),Oe=hr(),ee=dr(),V=bu(),W=un(),Z=Qn(),Y=function(){},ne=[],Fe=W("Reflect","construct"),je=/^\s*(?:class|function)\b/,he=Se(je.exec),qe=!je.exec(Y),et=function(nt){if(!ee(nt))return!1;try{return Fe(Y,ne,nt),!0}catch{return!1}},Ze=function(nt){if(!ee(nt))return!1;switch(V(nt)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return qe||!!he(je,Z(nt))}catch{return!0}};Ze.sham=!0,Ne.exports=!Fe||Oe(function(){var nt;return et(et.call)||!et(Object)||!et(function(){nt=!0})||nt})?Ze:et}),Ni=Ae((ot,Ne)=>{var Se=Eu(),Oe=Su(),ee=Or(),V=$r(),W=V("species"),Z=Array;Ne.exports=function(Y){var ne;return Se(Y)&&(ne=Y.constructor,Oe(ne)&&(ne===Z||Se(ne.prototype))?ne=void 0:ee(ne)&&(ne=ne[W],ne===null&&(ne=void 0))),ne===void 0?Z:ne}}),xu=Ae((ot,Ne)=>{var Se=Ni();Ne.exports=function(Oe,ee){return new(Se(Oe))(ee===0?0:ee)}}),_i=Ae(()=>{var ot=an(),Ne=vu(),Se=sn(),Oe=Sn(),ee=tn(),V=xu();ot({target:"Array",proto:!0},{flatMap:function(W){var Z=Oe(this),Y=ee(Z),ne;return Se(W),ne=V(Z,0),ne.length=Ne(ne,Z,Z,Y,0,1,W,arguments.length>1?arguments[1]:void 0),ne}})}),eu=Ae((ot,Ne)=>{Ne.exports={}}),ki=Ae((ot,Ne)=>{var Se=$r(),Oe=eu(),ee=Se("iterator"),V=Array.prototype;Ne.exports=function(W){return W!==void 0&&(Oe.Array===W||V[ee]===W)}}),Tu=Ae((ot,Ne)=>{var Se=bu(),Oe=mn(),ee=nn(),V=eu(),W=$r(),Z=W("iterator");Ne.exports=function(Y){if(!ee(Y))return Oe(Y,Z)||Oe(Y,"@@iterator")||V[Se(Y)]}}),Pi=Ae((ot,Ne)=>{var Se=gr(),Oe=sn(),ee=Wr(),V=fn(),W=Tu(),Z=TypeError;Ne.exports=function(Y,ne){var Fe=arguments.length<2?W(Y):ne;if(Oe(Fe))return ee(Se(Fe,Y));throw Z(V(Y)+" is not iterable")}}),Ii=Ae((ot,Ne)=>{var Se=gr(),Oe=Wr(),ee=mn();Ne.exports=function(V,W,Z){var Y,ne;Oe(V);try{if(Y=ee(V,"return"),!Y){if(W==="throw")throw Z;return Z}Y=Se(Y,V)}catch(Fe){ne=!0,Y=Fe}if(W==="throw")throw Z;if(ne)throw Y;return Oe(Y),Z}}),ji=Ae((ot,Ne)=>{var Se=Au(),Oe=gr(),ee=Wr(),V=fn(),W=ki(),Z=tn(),Y=Un(),ne=Pi(),Fe=Tu(),je=Ii(),he=TypeError,qe=function(Ze,nt){this.stopped=Ze,this.result=nt},et=qe.prototype;Ne.exports=function(Ze,nt,rt){var $=rt&&rt.that,Ft=!!(rt&&rt.AS_ENTRIES),At=!!(rt&&rt.IS_RECORD),Lt=!!(rt&&rt.IS_ITERATOR),qt=!!(rt&&rt.INTERRUPTED),Zt=Se(nt,$),ue,yr,Pr,zr,fr,Rr,mr,rn=function(Fr){return ue&&je(ue,"normal",Fr),new qe(!0,Fr)},wr=function(Fr){return Ft?(ee(Fr),qt?Zt(Fr[0],Fr[1],rn):Zt(Fr[0],Fr[1])):qt?Zt(Fr,rn):Zt(Fr)};if(At)ue=Ze.iterator;else if(Lt)ue=Ze;else{if(yr=Fe(Ze),!yr)throw he(V(Ze)+" is not iterable");if(W(yr)){for(Pr=0,zr=Z(Ze);zr>Pr;Pr++)if(fr=wr(Ze[Pr]),fr&&Y(et,fr))return fr;return new qe(!1)}ue=ne(Ze,yr)}for(Rr=At?Ze.next:ue.next;!(mr=Oe(Rr,ue)).done;){try{fr=wr(mr.value)}catch(Fr){je(ue,"throw",Fr)}if(typeof fr=="object"&&fr&&Y(et,fr))return fr}return new qe(!1)}}),Li=Ae((ot,Ne)=>{var Se=yn(),Oe=en(),ee=Lr();Ne.exports=function(V,W,Z){var Y=Se(W);Y in V?Oe.f(V,Y,ee(0,Z)):V[Y]=Z}}),Oi=Ae(()=>{var ot=an(),Ne=ji(),Se=Li();ot({target:"Object",stat:!0},{fromEntries:function(Oe){var ee={};return Ne(Oe,function(V,W){Se(ee,V,W)},{AS_ENTRIES:!0}),ee}})}),$i=Ae((ot,Ne)=>{var Se=["cliName","cliCategory","cliDescription"];function Oe(L,re){if(L==null)return{};var ge=ee(L,re),Ee,Pe;if(Object.getOwnPropertySymbols){var ie=Object.getOwnPropertySymbols(L);for(Pe=0;Pe=0)&&Object.prototype.propertyIsEnumerable.call(L,Ee)&&(ge[Ee]=L[Ee])}return ge}function ee(L,re){if(L==null)return{};var ge={},Ee=Object.keys(L),Pe,ie;for(ie=0;ie=0)&&(ge[Pe]=L[Pe]);return ge}Bi(),_i(),Oi();var V=Object.create,W=Object.defineProperty,Z=Object.getOwnPropertyDescriptor,Y=Object.getOwnPropertyNames,ne=Object.getPrototypeOf,Fe=Object.prototype.hasOwnProperty,je=(L,re)=>function(){return L&&(re=(0,L[Y(L)[0]])(L=0)),re},he=(L,re)=>function(){return re||(0,L[Y(L)[0]])((re={exports:{}}).exports,re),re.exports},qe=(L,re)=>{for(var ge in re)W(L,ge,{get:re[ge],enumerable:!0})},et=(L,re,ge,Ee)=>{if(re&&typeof re=="object"||typeof re=="function")for(let Pe of Y(re))!Fe.call(L,Pe)&&Pe!==ge&&W(L,Pe,{get:()=>re[Pe],enumerable:!(Ee=Z(re,Pe))||Ee.enumerable});return L},Ze=(L,re,ge)=>(ge=L!=null?V(ne(L)):{},et(re||!L||!L.__esModule?W(ge,"default",{value:L,enumerable:!0}):ge,L)),nt=L=>et(W({},"__esModule",{value:!0}),L),rt,$=je({""(){rt={env:{},argv:[]}}}),Ft=he({"node_modules/angular-html-parser/lib/compiler/src/chars.js"(L){$(),Object.defineProperty(L,"__esModule",{value:!0}),L.$EOF=0,L.$BSPACE=8,L.$TAB=9,L.$LF=10,L.$VTAB=11,L.$FF=12,L.$CR=13,L.$SPACE=32,L.$BANG=33,L.$DQ=34,L.$HASH=35,L.$$=36,L.$PERCENT=37,L.$AMPERSAND=38,L.$SQ=39,L.$LPAREN=40,L.$RPAREN=41,L.$STAR=42,L.$PLUS=43,L.$COMMA=44,L.$MINUS=45,L.$PERIOD=46,L.$SLASH=47,L.$COLON=58,L.$SEMICOLON=59,L.$LT=60,L.$EQ=61,L.$GT=62,L.$QUESTION=63,L.$0=48,L.$7=55,L.$9=57,L.$A=65,L.$E=69,L.$F=70,L.$X=88,L.$Z=90,L.$LBRACKET=91,L.$BACKSLASH=92,L.$RBRACKET=93,L.$CARET=94,L.$_=95,L.$a=97,L.$b=98,L.$e=101,L.$f=102,L.$n=110,L.$r=114,L.$t=116,L.$u=117,L.$v=118,L.$x=120,L.$z=122,L.$LBRACE=123,L.$BAR=124,L.$RBRACE=125,L.$NBSP=160,L.$PIPE=124,L.$TILDA=126,L.$AT=64,L.$BT=96;function re(Ue){return Ue>=L.$TAB&&Ue<=L.$SPACE||Ue==L.$NBSP}L.isWhitespace=re;function ge(Ue){return L.$0<=Ue&&Ue<=L.$9}L.isDigit=ge;function Ee(Ue){return Ue>=L.$a&&Ue<=L.$z||Ue>=L.$A&&Ue<=L.$Z}L.isAsciiLetter=Ee;function Pe(Ue){return Ue>=L.$a&&Ue<=L.$f||Ue>=L.$A&&Ue<=L.$F||ge(Ue)}L.isAsciiHexDigit=Pe;function ie(Ue){return Ue===L.$LF||Ue===L.$CR}L.isNewLine=ie;function de(Ue){return L.$0<=Ue&&Ue<=L.$7}L.isOctalDigit=de}}),At=he({"node_modules/angular-html-parser/lib/compiler/src/aot/static_symbol.js"(L){$(),Object.defineProperty(L,"__esModule",{value:!0});var re=class{constructor(Ee,Pe,ie){this.filePath=Ee,this.name=Pe,this.members=ie}assertNoMembers(){if(this.members.length)throw new Error(`Illegal state: symbol without members expected, but got ${JSON.stringify(this)}.`)}};L.StaticSymbol=re;var ge=class{constructor(){this.cache=new Map}get(Ee,Pe,ie){ie=ie||[];let de=ie.length?`.${ie.join(".")}`:"",Ue=`"${Ee}".${Pe}${de}`,Ge=this.cache.get(Ue);return Ge||(Ge=new re(Ee,Pe,ie),this.cache.set(Ue,Ge)),Ge}};L.StaticSymbolCache=ge}}),Lt=he({"node_modules/angular-html-parser/lib/compiler/src/util.js"(L){$(),Object.defineProperty(L,"__esModule",{value:!0});var re=/-+([a-z0-9])/g;function ge(le){return le.replace(re,function(){for(var We=arguments.length,Me=new Array(We),at=0;atde(Me,this,We))}visitStringMap(le,We){let Me={};return Object.keys(le).forEach(at=>{Me[at]=de(le[at],this,We)}),Me}visitPrimitive(le,We){return le}visitOther(le,We){return le}};L.ValueTransformer=gt,L.SyncAsync={assertSync:le=>{if(st(le))throw new Error("Illegal state: value cannot be a promise");return le},then:(le,We)=>st(le)?le.then(We):We(le),all:le=>le.some(st)?Promise.all(le):le};function ce(le){throw new Error(`Internal Error: ${le}`)}L.error=ce;function ve(le,We){let Me=Error(le);return Me[Ve]=!0,We&&(Me[He]=We),Me}L.syntaxError=ve;var Ve="ngSyntaxError",He="ngParseErrors";function Je(le){return le[Ve]}L.isSyntaxError=Je;function Qe(le){return le[He]||[]}L.getParseErrors=Qe;function yt(le){return le.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}L.escapeRegExp=yt;var _t=Object.getPrototypeOf({});function ct(le){return typeof le=="object"&&le!==null&&Object.getPrototypeOf(le)===_t}function kt(le){let We="";for(let Me=0;Me=55296&&at<=56319&&le.length>Me+1){let Jt=le.charCodeAt(Me+1);Jt>=56320&&Jt<=57343&&(Me++,at=(at-55296<<10)+Jt-56320+65536)}at<=127?We+=String.fromCharCode(at):at<=2047?We+=String.fromCharCode(at>>6&31|192,at&63|128):at<=65535?We+=String.fromCharCode(at>>12|224,at>>6&63|128,at&63|128):at<=2097151&&(We+=String.fromCharCode(at>>18&7|240,at>>12&63|128,at>>6&63|128,at&63|128))}return We}L.utf8Encode=kt;function $t(le){if(typeof le=="string")return le;if(le instanceof Array)return"["+le.map($t).join(", ")+"]";if(le==null)return""+le;if(le.overriddenName)return`${le.overriddenName}`;if(le.name)return`${le.name}`;if(!le.toString)return"object";let We=le.toString();if(We==null)return""+We;let Me=We.indexOf(` +import{_ as ea,b as ta}from"./chunk-HLWAVYOI-DX5qqaYu.js";import{m as pl}from"./pickBy-Us6u5-To.js";import"./iframe-BQtATEn0.js";import"../sb-preview/runtime.js";import"./index-CBqU2yxZ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./react-18-DnM9deRA.js";import"./index-DZGZymok.js";import"./index-Cw1G72V2.js";import"./extends-CCbyfPlC.js";import"./assertThisInitialized-B9jnkVVz.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getPrototypeOf-BYVhAdwF.js";import"./mapValues-LQZI9uWW.js";import"./cloneDeep-C80tdQ4I.js";import"./index-CKJfshIT.js";import"./index-mVz13F_n.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";var cl=ta({"node_modules/prettier/parser-html.js"(Jr,Xr){(function(Ae){if(typeof Jr=="object"&&typeof Xr=="object")Xr.exports=Ae();else if(typeof define=="function"&&define.amd)define(Ae);else{var Yt=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};Yt.prettierPlugins=Yt.prettierPlugins||{},Yt.prettierPlugins.html=Ae()}})(function(){var Ae=(ot,Ne)=>()=>(Ne||ot((Ne={exports:{}}).exports,Ne),Ne.exports),Yt=Ae((ot,Ne)=>{var Se=function(Oe){return Oe&&Oe.Math==Math&&Oe};Ne.exports=Se(typeof globalThis=="object"&&globalThis)||Se(typeof window=="object"&&window)||Se(typeof self=="object"&&self)||Se(typeof global=="object"&&global)||function(){return this}()||Function("return this")()}),hr=Ae((ot,Ne)=>{Ne.exports=function(Se){try{return!!Se()}catch{return!0}}}),br=Ae((ot,Ne)=>{var Se=hr();Ne.exports=!Se(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})}),Hr=Ae((ot,Ne)=>{var Se=hr();Ne.exports=!Se(function(){var Oe=(function(){}).bind();return typeof Oe!="function"||Oe.hasOwnProperty("prototype")})}),gr=Ae((ot,Ne)=>{var Se=Hr(),Oe=Function.prototype.call;Ne.exports=Se?Oe.bind(Oe):function(){return Oe.apply(Oe,arguments)}}),Dn=Ae(ot=>{var Ne={}.propertyIsEnumerable,Se=Object.getOwnPropertyDescriptor,Oe=Se&&!Ne.call({1:2},1);ot.f=Oe?function(ee){var V=Se(this,ee);return!!V&&V.enumerable}:Ne}),Lr=Ae((ot,Ne)=>{Ne.exports=function(Se,Oe){return{enumerable:!(Se&1),configurable:!(Se&2),writable:!(Se&4),value:Oe}}}),Dr=Ae((ot,Ne)=>{var Se=Hr(),Oe=Function.prototype,ee=Oe.call,V=Se&&Oe.bind.bind(ee,ee);Ne.exports=Se?V:function(W){return function(){return ee.apply(W,arguments)}}}),Br=Ae((ot,Ne)=>{var Se=Dr(),Oe=Se({}.toString),ee=Se("".slice);Ne.exports=function(V){return ee(Oe(V),8,-1)}}),Zr=Ae((ot,Ne)=>{var Se=Dr(),Oe=hr(),ee=Br(),V=Object,W=Se("".split);Ne.exports=Oe(function(){return!V("z").propertyIsEnumerable(0)})?function(Z){return ee(Z)=="String"?W(Z,""):V(Z)}:V}),nn=Ae((ot,Ne)=>{Ne.exports=function(Se){return Se==null}}),qn=Ae((ot,Ne)=>{var Se=nn(),Oe=TypeError;Ne.exports=function(ee){if(Se(ee))throw Oe("Can't call method on "+ee);return ee}}),dn=Ae((ot,Ne)=>{var Se=Zr(),Oe=qn();Ne.exports=function(ee){return Se(Oe(ee))}}),Vn=Ae((ot,Ne)=>{var Se=typeof document=="object"&&document.all,Oe=typeof Se>"u"&&Se!==void 0;Ne.exports={all:Se,IS_HTMLDDA:Oe}}),dr=Ae((ot,Ne)=>{var Se=Vn(),Oe=Se.all;Ne.exports=Se.IS_HTMLDDA?function(ee){return typeof ee=="function"||ee===Oe}:function(ee){return typeof ee=="function"}}),Or=Ae((ot,Ne)=>{var Se=dr(),Oe=Vn(),ee=Oe.all;Ne.exports=Oe.IS_HTMLDDA?function(V){return typeof V=="object"?V!==null:Se(V)||V===ee}:function(V){return typeof V=="object"?V!==null:Se(V)}}),un=Ae((ot,Ne)=>{var Se=Yt(),Oe=dr(),ee=function(V){return Oe(V)?V:void 0};Ne.exports=function(V,W){return arguments.length<2?ee(Se[V]):Se[V]&&Se[V][W]}}),Un=Ae((ot,Ne)=>{var Se=Dr();Ne.exports=Se({}.isPrototypeOf)}),ii=Ae((ot,Ne)=>{var Se=un();Ne.exports=Se("navigator","userAgent")||""}),si=Ae((ot,Ne)=>{var Se=Yt(),Oe=ii(),ee=Se.process,V=Se.Deno,W=ee&&ee.versions||V&&V.version,Z=W&&W.v8,Y,ne;Z&&(Y=Z.split("."),ne=Y[0]>0&&Y[0]<4?1:+(Y[0]+Y[1])),!ne&&Oe&&(Y=Oe.match(/Edge\/(\d+)/),(!Y||Y[1]>=74)&&(Y=Oe.match(/Chrome\/(\d+)/),Y&&(ne=+Y[1]))),Ne.exports=ne}),Gn=Ae((ot,Ne)=>{var Se=si(),Oe=hr();Ne.exports=!!Object.getOwnPropertySymbols&&!Oe(function(){var ee=Symbol();return!String(ee)||!(Object(ee)instanceof Symbol)||!Symbol.sham&&Se&&Se<41})}),Jn=Ae((ot,Ne)=>{var Se=Gn();Ne.exports=Se&&!Symbol.sham&&typeof Symbol.iterator=="symbol"}),Xn=Ae((ot,Ne)=>{var Se=un(),Oe=dr(),ee=Un(),V=Jn(),W=Object;Ne.exports=V?function(Z){return typeof Z=="symbol"}:function(Z){var Y=Se("Symbol");return Oe(Y)&&ee(Y.prototype,W(Z))}}),fn=Ae((ot,Ne)=>{var Se=String;Ne.exports=function(Oe){try{return Se(Oe)}catch{return"Object"}}}),sn=Ae((ot,Ne)=>{var Se=dr(),Oe=fn(),ee=TypeError;Ne.exports=function(V){if(Se(V))return V;throw ee(Oe(V)+" is not a function")}}),mn=Ae((ot,Ne)=>{var Se=sn(),Oe=nn();Ne.exports=function(ee,V){var W=ee[V];return Oe(W)?void 0:Se(W)}}),ai=Ae((ot,Ne)=>{var Se=gr(),Oe=dr(),ee=Or(),V=TypeError;Ne.exports=function(W,Z){var Y,ne;if(Z==="string"&&Oe(Y=W.toString)&&!ee(ne=Se(Y,W))||Oe(Y=W.valueOf)&&!ee(ne=Se(Y,W))||Z!=="string"&&Oe(Y=W.toString)&&!ee(ne=Se(Y,W)))return ne;throw V("Can't convert object to primitive value")}}),oi=Ae((ot,Ne)=>{Ne.exports=!1}),hn=Ae((ot,Ne)=>{var Se=Yt(),Oe=Object.defineProperty;Ne.exports=function(ee,V){try{Oe(Se,ee,{value:V,configurable:!0,writable:!0})}catch{Se[ee]=V}return V}}),gn=Ae((ot,Ne)=>{var Se=Yt(),Oe=hn(),ee="__core-js_shared__",V=Se[ee]||Oe(ee,{});Ne.exports=V}),Wn=Ae((ot,Ne)=>{var Se=oi(),Oe=gn();(Ne.exports=function(ee,V){return Oe[ee]||(Oe[ee]=V!==void 0?V:{})})("versions",[]).push({version:"3.26.1",mode:Se?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.26.1/LICENSE",source:"https://github.com/zloirock/core-js"})}),Sn=Ae((ot,Ne)=>{var Se=qn(),Oe=Object;Ne.exports=function(ee){return Oe(Se(ee))}}),kr=Ae((ot,Ne)=>{var Se=Dr(),Oe=Sn(),ee=Se({}.hasOwnProperty);Ne.exports=Object.hasOwn||function(V,W){return ee(Oe(V),W)}}),zn=Ae((ot,Ne)=>{var Se=Dr(),Oe=0,ee=Math.random(),V=Se(1 .toString);Ne.exports=function(W){return"Symbol("+(W===void 0?"":W)+")_"+V(++Oe+ee,36)}}),$r=Ae((ot,Ne)=>{var Se=Yt(),Oe=Wn(),ee=kr(),V=zn(),W=Gn(),Z=Jn(),Y=Oe("wks"),ne=Se.Symbol,Fe=ne&&ne.for,je=Z?ne:ne&&ne.withoutSetter||V;Ne.exports=function(he){if(!ee(Y,he)||!(W||typeof Y[he]=="string")){var qe="Symbol."+he;W&&ee(ne,he)?Y[he]=ne[he]:Z&&Fe?Y[he]=Fe(qe):Y[he]=je(qe)}return Y[he]}}),li=Ae((ot,Ne)=>{var Se=gr(),Oe=Or(),ee=Xn(),V=mn(),W=ai(),Z=$r(),Y=TypeError,ne=Z("toPrimitive");Ne.exports=function(Fe,je){if(!Oe(Fe)||ee(Fe))return Fe;var he=V(Fe,ne),qe;if(he){if(je===void 0&&(je="default"),qe=Se(he,Fe,je),!Oe(qe)||ee(qe))return qe;throw Y("Can't convert object to primitive value")}return je===void 0&&(je="number"),W(Fe,je)}}),yn=Ae((ot,Ne)=>{var Se=li(),Oe=Xn();Ne.exports=function(ee){var V=Se(ee,"string");return Oe(V)?V:V+""}}),pi=Ae((ot,Ne)=>{var Se=Yt(),Oe=Or(),ee=Se.document,V=Oe(ee)&&Oe(ee.createElement);Ne.exports=function(W){return V?ee.createElement(W):{}}}),Hn=Ae((ot,Ne)=>{var Se=br(),Oe=hr(),ee=pi();Ne.exports=!Se&&!Oe(function(){return Object.defineProperty(ee("div"),"a",{get:function(){return 7}}).a!=7})}),Yn=Ae(ot=>{var Ne=br(),Se=gr(),Oe=Dn(),ee=Lr(),V=dn(),W=yn(),Z=kr(),Y=Hn(),ne=Object.getOwnPropertyDescriptor;ot.f=Ne?ne:function(Fe,je){if(Fe=V(Fe),je=W(je),Y)try{return ne(Fe,je)}catch{}if(Z(Fe,je))return ee(!Se(Oe.f,Fe,je),Fe[je])}}),ci=Ae((ot,Ne)=>{var Se=br(),Oe=hr();Ne.exports=Se&&Oe(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})}),Wr=Ae((ot,Ne)=>{var Se=Or(),Oe=String,ee=TypeError;Ne.exports=function(V){if(Se(V))return V;throw ee(Oe(V)+" is not an object")}}),en=Ae(ot=>{var Ne=br(),Se=Hn(),Oe=ci(),ee=Wr(),V=yn(),W=TypeError,Z=Object.defineProperty,Y=Object.getOwnPropertyDescriptor,ne="enumerable",Fe="configurable",je="writable";ot.f=Ne?Oe?function(he,qe,et){if(ee(he),qe=V(qe),ee(et),typeof he=="function"&&qe==="prototype"&&"value"in et&&je in et&&!et[je]){var Ze=Y(he,qe);Ze&&Ze[je]&&(he[qe]=et.value,et={configurable:Fe in et?et[Fe]:Ze[Fe],enumerable:ne in et?et[ne]:Ze[ne],writable:!1})}return Z(he,qe,et)}:Z:function(he,qe,et){if(ee(he),qe=V(qe),ee(et),Se)try{return Z(he,qe,et)}catch{}if("get"in et||"set"in et)throw W("Accessors not supported");return"value"in et&&(he[qe]=et.value),he}}),Kn=Ae((ot,Ne)=>{var Se=br(),Oe=en(),ee=Lr();Ne.exports=Se?function(V,W,Z){return Oe.f(V,W,ee(1,Z))}:function(V,W,Z){return V[W]=Z,V}}),Di=Ae((ot,Ne)=>{var Se=br(),Oe=kr(),ee=Function.prototype,V=Se&&Object.getOwnPropertyDescriptor,W=Oe(ee,"name"),Z=W&&(function(){}).name==="something",Y=W&&(!Se||Se&&V(ee,"name").configurable);Ne.exports={EXISTS:W,PROPER:Z,CONFIGURABLE:Y}}),Qn=Ae((ot,Ne)=>{var Se=Dr(),Oe=dr(),ee=gn(),V=Se(Function.toString);Oe(ee.inspectSource)||(ee.inspectSource=function(W){return V(W)}),Ne.exports=ee.inspectSource}),di=Ae((ot,Ne)=>{var Se=Yt(),Oe=dr(),ee=Se.WeakMap;Ne.exports=Oe(ee)&&/native code/.test(String(ee))}),fi=Ae((ot,Ne)=>{var Se=Wn(),Oe=zn(),ee=Se("keys");Ne.exports=function(V){return ee[V]||(ee[V]=Oe(V))}}),Zn=Ae((ot,Ne)=>{Ne.exports={}}),mi=Ae((ot,Ne)=>{var Se=di(),Oe=Yt(),ee=Or(),V=Kn(),W=kr(),Z=gn(),Y=fi(),ne=Zn(),Fe="Object already initialized",je=Oe.TypeError,he=Oe.WeakMap,qe,et,Ze,nt=function(At){return Ze(At)?et(At):qe(At,{})},rt=function(At){return function(Lt){var qt;if(!ee(Lt)||(qt=et(Lt)).type!==At)throw je("Incompatible receiver, "+At+" required");return qt}};Se||Z.state?($=Z.state||(Z.state=new he),$.get=$.get,$.has=$.has,$.set=$.set,qe=function(At,Lt){if($.has(At))throw je(Fe);return Lt.facade=At,$.set(At,Lt),Lt},et=function(At){return $.get(At)||{}},Ze=function(At){return $.has(At)}):(Ft=Y("state"),ne[Ft]=!0,qe=function(At,Lt){if(W(At,Ft))throw je(Fe);return Lt.facade=At,V(At,Ft,Lt),Lt},et=function(At){return W(At,Ft)?At[Ft]:{}},Ze=function(At){return W(At,Ft)});var $,Ft;Ne.exports={set:qe,get:et,has:Ze,enforce:nt,getterFor:rt}}),gu=Ae((ot,Ne)=>{var Se=hr(),Oe=dr(),ee=kr(),V=br(),W=Di().CONFIGURABLE,Z=Qn(),Y=mi(),ne=Y.enforce,Fe=Y.get,je=Object.defineProperty,he=V&&!Se(function(){return je(function(){},"length",{value:8}).length!==8}),qe=String(String).split("String"),et=Ne.exports=function(Ze,nt,rt){String(nt).slice(0,7)==="Symbol("&&(nt="["+String(nt).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),rt&&rt.getter&&(nt="get "+nt),rt&&rt.setter&&(nt="set "+nt),(!ee(Ze,"name")||W&&Ze.name!==nt)&&(V?je(Ze,"name",{value:nt,configurable:!0}):Ze.name=nt),he&&rt&&ee(rt,"arity")&&Ze.length!==rt.arity&&je(Ze,"length",{value:rt.arity});try{rt&&ee(rt,"constructor")&&rt.constructor?V&&je(Ze,"prototype",{writable:!1}):Ze.prototype&&(Ze.prototype=void 0)}catch{}var $=ne(Ze);return ee($,"source")||($.source=qe.join(typeof nt=="string"?nt:"")),Ze};Function.prototype.toString=et(function(){return Oe(this)&&Fe(this).source||Z(this)},"toString")}),hi=Ae((ot,Ne)=>{var Se=dr(),Oe=en(),ee=gu(),V=hn();Ne.exports=function(W,Z,Y,ne){ne||(ne={});var Fe=ne.enumerable,je=ne.name!==void 0?ne.name:Z;if(Se(Y)&&ee(Y,je,ne),ne.global)Fe?W[Z]=Y:V(Z,Y);else{try{ne.unsafe?W[Z]&&(Fe=!0):delete W[Z]}catch{}Fe?W[Z]=Y:Oe.f(W,Z,{value:Y,enumerable:!1,configurable:!ne.nonConfigurable,writable:!ne.nonWritable})}return W}}),gi=Ae((ot,Ne)=>{var Se=Math.ceil,Oe=Math.floor;Ne.exports=Math.trunc||function(ee){var V=+ee;return(V>0?Oe:Se)(V)}}),xn=Ae((ot,Ne)=>{var Se=gi();Ne.exports=function(Oe){var ee=+Oe;return ee!==ee||ee===0?0:Se(ee)}}),yi=Ae((ot,Ne)=>{var Se=xn(),Oe=Math.max,ee=Math.min;Ne.exports=function(V,W){var Z=Se(V);return Z<0?Oe(Z+W,0):ee(Z,W)}}),Ei=Ae((ot,Ne)=>{var Se=xn(),Oe=Math.min;Ne.exports=function(ee){return ee>0?Oe(Se(ee),9007199254740991):0}}),tn=Ae((ot,Ne)=>{var Se=Ei();Ne.exports=function(Oe){return Se(Oe.length)}}),Ci=Ae((ot,Ne)=>{var Se=dn(),Oe=yi(),ee=tn(),V=function(W){return function(Z,Y,ne){var Fe=Se(Z),je=ee(Fe),he=Oe(ne,je),qe;if(W&&Y!=Y){for(;je>he;)if(qe=Fe[he++],qe!=qe)return!0}else for(;je>he;he++)if((W||he in Fe)&&Fe[he]===Y)return W||he||0;return!W&&-1}};Ne.exports={includes:V(!0),indexOf:V(!1)}}),Fi=Ae((ot,Ne)=>{var Se=Dr(),Oe=kr(),ee=dn(),V=Ci().indexOf,W=Zn(),Z=Se([].push);Ne.exports=function(Y,ne){var Fe=ee(Y),je=0,he=[],qe;for(qe in Fe)!Oe(W,qe)&&Oe(Fe,qe)&&Z(he,qe);for(;ne.length>je;)Oe(Fe,qe=ne[je++])&&(~V(he,qe)||Z(he,qe));return he}}),Ai=Ae((ot,Ne)=>{Ne.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]}),vi=Ae(ot=>{var Ne=Fi(),Se=Ai(),Oe=Se.concat("length","prototype");ot.f=Object.getOwnPropertyNames||function(ee){return Ne(ee,Oe)}}),bi=Ae(ot=>{ot.f=Object.getOwnPropertySymbols}),Si=Ae((ot,Ne)=>{var Se=un(),Oe=Dr(),ee=vi(),V=bi(),W=Wr(),Z=Oe([].concat);Ne.exports=Se("Reflect","ownKeys")||function(Y){var ne=ee.f(W(Y)),Fe=V.f;return Fe?Z(ne,Fe(Y)):ne}}),xi=Ae((ot,Ne)=>{var Se=kr(),Oe=Si(),ee=Yn(),V=en();Ne.exports=function(W,Z,Y){for(var ne=Oe(Z),Fe=V.f,je=ee.f,he=0;he{var Se=hr(),Oe=dr(),ee=/#|\.prototype\./,V=function(Fe,je){var he=Z[W(Fe)];return he==ne?!0:he==Y?!1:Oe(je)?Se(je):!!je},W=V.normalize=function(Fe){return String(Fe).replace(ee,".").toLowerCase()},Z=V.data={},Y=V.NATIVE="N",ne=V.POLYFILL="P";Ne.exports=V}),an=Ae((ot,Ne)=>{var Se=Yt(),Oe=Yn().f,ee=Kn(),V=hi(),W=hn(),Z=xi(),Y=Ti();Ne.exports=function(ne,Fe){var je=ne.target,he=ne.global,qe=ne.stat,et,Ze,nt,rt,$,Ft;if(he?Ze=Se:qe?Ze=Se[je]||W(je,{}):Ze=(Se[je]||{}).prototype,Ze)for(nt in Fe){if($=Fe[nt],ne.dontCallGetSet?(Ft=Oe(Ze,nt),rt=Ft&&Ft.value):rt=Ze[nt],et=Y(he?nt:je+(qe?".":"#")+nt,ne.forced),!et&&rt!==void 0){if(typeof $==typeof rt)continue;Z($,rt)}(ne.sham||rt&&rt.sham)&&ee($,"sham",!0),V(Ze,nt,$,ne)}}}),yu=Ae(()=>{var ot=an(),Ne=Yt();ot({global:!0,forced:Ne.globalThis!==Ne},{globalThis:Ne})}),Bi=Ae(()=>{yu()}),Eu=Ae((ot,Ne)=>{var Se=Br();Ne.exports=Array.isArray||function(Oe){return Se(Oe)=="Array"}}),Cu=Ae((ot,Ne)=>{var Se=TypeError,Oe=9007199254740991;Ne.exports=function(ee){if(ee>Oe)throw Se("Maximum allowed index exceeded");return ee}}),Fu=Ae((ot,Ne)=>{var Se=Br(),Oe=Dr();Ne.exports=function(ee){if(Se(ee)==="Function")return Oe(ee)}}),Au=Ae((ot,Ne)=>{var Se=Fu(),Oe=sn(),ee=Hr(),V=Se(Se.bind);Ne.exports=function(W,Z){return Oe(W),Z===void 0?W:ee?V(W,Z):function(){return W.apply(Z,arguments)}}}),vu=Ae((ot,Ne)=>{var Se=Eu(),Oe=tn(),ee=Cu(),V=Au(),W=function(Z,Y,ne,Fe,je,he,qe,et){for(var Ze=je,nt=0,rt=qe?V(qe,et):!1,$,Ft;nt0&&Se($)?(Ft=Oe($),Ze=W(Z,Y,$,Ft,Ze,he-1)-1):(ee(Ze+1),Z[Ze]=$),Ze++),nt++;return Ze};Ne.exports=W}),wi=Ae((ot,Ne)=>{var Se=$r(),Oe=Se("toStringTag"),ee={};ee[Oe]="z",Ne.exports=String(ee)==="[object z]"}),bu=Ae((ot,Ne)=>{var Se=wi(),Oe=dr(),ee=Br(),V=$r(),W=V("toStringTag"),Z=Object,Y=ee(function(){return arguments}())=="Arguments",ne=function(Fe,je){try{return Fe[je]}catch{}};Ne.exports=Se?ee:function(Fe){var je,he,qe;return Fe===void 0?"Undefined":Fe===null?"Null":typeof(he=ne(je=Z(Fe),W))=="string"?he:Y?ee(je):(qe=ee(je))=="Object"&&Oe(je.callee)?"Arguments":qe}}),Su=Ae((ot,Ne)=>{var Se=Dr(),Oe=hr(),ee=dr(),V=bu(),W=un(),Z=Qn(),Y=function(){},ne=[],Fe=W("Reflect","construct"),je=/^\s*(?:class|function)\b/,he=Se(je.exec),qe=!je.exec(Y),et=function(nt){if(!ee(nt))return!1;try{return Fe(Y,ne,nt),!0}catch{return!1}},Ze=function(nt){if(!ee(nt))return!1;switch(V(nt)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return qe||!!he(je,Z(nt))}catch{return!0}};Ze.sham=!0,Ne.exports=!Fe||Oe(function(){var nt;return et(et.call)||!et(Object)||!et(function(){nt=!0})||nt})?Ze:et}),Ni=Ae((ot,Ne)=>{var Se=Eu(),Oe=Su(),ee=Or(),V=$r(),W=V("species"),Z=Array;Ne.exports=function(Y){var ne;return Se(Y)&&(ne=Y.constructor,Oe(ne)&&(ne===Z||Se(ne.prototype))?ne=void 0:ee(ne)&&(ne=ne[W],ne===null&&(ne=void 0))),ne===void 0?Z:ne}}),xu=Ae((ot,Ne)=>{var Se=Ni();Ne.exports=function(Oe,ee){return new(Se(Oe))(ee===0?0:ee)}}),_i=Ae(()=>{var ot=an(),Ne=vu(),Se=sn(),Oe=Sn(),ee=tn(),V=xu();ot({target:"Array",proto:!0},{flatMap:function(W){var Z=Oe(this),Y=ee(Z),ne;return Se(W),ne=V(Z,0),ne.length=Ne(ne,Z,Z,Y,0,1,W,arguments.length>1?arguments[1]:void 0),ne}})}),eu=Ae((ot,Ne)=>{Ne.exports={}}),ki=Ae((ot,Ne)=>{var Se=$r(),Oe=eu(),ee=Se("iterator"),V=Array.prototype;Ne.exports=function(W){return W!==void 0&&(Oe.Array===W||V[ee]===W)}}),Tu=Ae((ot,Ne)=>{var Se=bu(),Oe=mn(),ee=nn(),V=eu(),W=$r(),Z=W("iterator");Ne.exports=function(Y){if(!ee(Y))return Oe(Y,Z)||Oe(Y,"@@iterator")||V[Se(Y)]}}),Pi=Ae((ot,Ne)=>{var Se=gr(),Oe=sn(),ee=Wr(),V=fn(),W=Tu(),Z=TypeError;Ne.exports=function(Y,ne){var Fe=arguments.length<2?W(Y):ne;if(Oe(Fe))return ee(Se(Fe,Y));throw Z(V(Y)+" is not iterable")}}),Ii=Ae((ot,Ne)=>{var Se=gr(),Oe=Wr(),ee=mn();Ne.exports=function(V,W,Z){var Y,ne;Oe(V);try{if(Y=ee(V,"return"),!Y){if(W==="throw")throw Z;return Z}Y=Se(Y,V)}catch(Fe){ne=!0,Y=Fe}if(W==="throw")throw Z;if(ne)throw Y;return Oe(Y),Z}}),ji=Ae((ot,Ne)=>{var Se=Au(),Oe=gr(),ee=Wr(),V=fn(),W=ki(),Z=tn(),Y=Un(),ne=Pi(),Fe=Tu(),je=Ii(),he=TypeError,qe=function(Ze,nt){this.stopped=Ze,this.result=nt},et=qe.prototype;Ne.exports=function(Ze,nt,rt){var $=rt&&rt.that,Ft=!!(rt&&rt.AS_ENTRIES),At=!!(rt&&rt.IS_RECORD),Lt=!!(rt&&rt.IS_ITERATOR),qt=!!(rt&&rt.INTERRUPTED),Zt=Se(nt,$),ue,yr,Pr,zr,fr,Rr,mr,rn=function(Fr){return ue&&je(ue,"normal",Fr),new qe(!0,Fr)},wr=function(Fr){return Ft?(ee(Fr),qt?Zt(Fr[0],Fr[1],rn):Zt(Fr[0],Fr[1])):qt?Zt(Fr,rn):Zt(Fr)};if(At)ue=Ze.iterator;else if(Lt)ue=Ze;else{if(yr=Fe(Ze),!yr)throw he(V(Ze)+" is not iterable");if(W(yr)){for(Pr=0,zr=Z(Ze);zr>Pr;Pr++)if(fr=wr(Ze[Pr]),fr&&Y(et,fr))return fr;return new qe(!1)}ue=ne(Ze,yr)}for(Rr=At?Ze.next:ue.next;!(mr=Oe(Rr,ue)).done;){try{fr=wr(mr.value)}catch(Fr){je(ue,"throw",Fr)}if(typeof fr=="object"&&fr&&Y(et,fr))return fr}return new qe(!1)}}),Li=Ae((ot,Ne)=>{var Se=yn(),Oe=en(),ee=Lr();Ne.exports=function(V,W,Z){var Y=Se(W);Y in V?Oe.f(V,Y,ee(0,Z)):V[Y]=Z}}),Oi=Ae(()=>{var ot=an(),Ne=ji(),Se=Li();ot({target:"Object",stat:!0},{fromEntries:function(Oe){var ee={};return Ne(Oe,function(V,W){Se(ee,V,W)},{AS_ENTRIES:!0}),ee}})}),$i=Ae((ot,Ne)=>{var Se=["cliName","cliCategory","cliDescription"];function Oe(L,re){if(L==null)return{};var ge=ee(L,re),Ee,Pe;if(Object.getOwnPropertySymbols){var ie=Object.getOwnPropertySymbols(L);for(Pe=0;Pe=0)&&Object.prototype.propertyIsEnumerable.call(L,Ee)&&(ge[Ee]=L[Ee])}return ge}function ee(L,re){if(L==null)return{};var ge={},Ee=Object.keys(L),Pe,ie;for(ie=0;ie=0)&&(ge[Pe]=L[Pe]);return ge}Bi(),_i(),Oi();var V=Object.create,W=Object.defineProperty,Z=Object.getOwnPropertyDescriptor,Y=Object.getOwnPropertyNames,ne=Object.getPrototypeOf,Fe=Object.prototype.hasOwnProperty,je=(L,re)=>function(){return L&&(re=(0,L[Y(L)[0]])(L=0)),re},he=(L,re)=>function(){return re||(0,L[Y(L)[0]])((re={exports:{}}).exports,re),re.exports},qe=(L,re)=>{for(var ge in re)W(L,ge,{get:re[ge],enumerable:!0})},et=(L,re,ge,Ee)=>{if(re&&typeof re=="object"||typeof re=="function")for(let Pe of Y(re))!Fe.call(L,Pe)&&Pe!==ge&&W(L,Pe,{get:()=>re[Pe],enumerable:!(Ee=Z(re,Pe))||Ee.enumerable});return L},Ze=(L,re,ge)=>(ge=L!=null?V(ne(L)):{},et(re||!L||!L.__esModule?W(ge,"default",{value:L,enumerable:!0}):ge,L)),nt=L=>et(W({},"__esModule",{value:!0}),L),rt,$=je({""(){rt={env:{},argv:[]}}}),Ft=he({"node_modules/angular-html-parser/lib/compiler/src/chars.js"(L){$(),Object.defineProperty(L,"__esModule",{value:!0}),L.$EOF=0,L.$BSPACE=8,L.$TAB=9,L.$LF=10,L.$VTAB=11,L.$FF=12,L.$CR=13,L.$SPACE=32,L.$BANG=33,L.$DQ=34,L.$HASH=35,L.$$=36,L.$PERCENT=37,L.$AMPERSAND=38,L.$SQ=39,L.$LPAREN=40,L.$RPAREN=41,L.$STAR=42,L.$PLUS=43,L.$COMMA=44,L.$MINUS=45,L.$PERIOD=46,L.$SLASH=47,L.$COLON=58,L.$SEMICOLON=59,L.$LT=60,L.$EQ=61,L.$GT=62,L.$QUESTION=63,L.$0=48,L.$7=55,L.$9=57,L.$A=65,L.$E=69,L.$F=70,L.$X=88,L.$Z=90,L.$LBRACKET=91,L.$BACKSLASH=92,L.$RBRACKET=93,L.$CARET=94,L.$_=95,L.$a=97,L.$b=98,L.$e=101,L.$f=102,L.$n=110,L.$r=114,L.$t=116,L.$u=117,L.$v=118,L.$x=120,L.$z=122,L.$LBRACE=123,L.$BAR=124,L.$RBRACE=125,L.$NBSP=160,L.$PIPE=124,L.$TILDA=126,L.$AT=64,L.$BT=96;function re(Ue){return Ue>=L.$TAB&&Ue<=L.$SPACE||Ue==L.$NBSP}L.isWhitespace=re;function ge(Ue){return L.$0<=Ue&&Ue<=L.$9}L.isDigit=ge;function Ee(Ue){return Ue>=L.$a&&Ue<=L.$z||Ue>=L.$A&&Ue<=L.$Z}L.isAsciiLetter=Ee;function Pe(Ue){return Ue>=L.$a&&Ue<=L.$f||Ue>=L.$A&&Ue<=L.$F||ge(Ue)}L.isAsciiHexDigit=Pe;function ie(Ue){return Ue===L.$LF||Ue===L.$CR}L.isNewLine=ie;function de(Ue){return L.$0<=Ue&&Ue<=L.$7}L.isOctalDigit=de}}),At=he({"node_modules/angular-html-parser/lib/compiler/src/aot/static_symbol.js"(L){$(),Object.defineProperty(L,"__esModule",{value:!0});var re=class{constructor(Ee,Pe,ie){this.filePath=Ee,this.name=Pe,this.members=ie}assertNoMembers(){if(this.members.length)throw new Error(`Illegal state: symbol without members expected, but got ${JSON.stringify(this)}.`)}};L.StaticSymbol=re;var ge=class{constructor(){this.cache=new Map}get(Ee,Pe,ie){ie=ie||[];let de=ie.length?`.${ie.join(".")}`:"",Ue=`"${Ee}".${Pe}${de}`,Ge=this.cache.get(Ue);return Ge||(Ge=new re(Ee,Pe,ie),this.cache.set(Ue,Ge)),Ge}};L.StaticSymbolCache=ge}}),Lt=he({"node_modules/angular-html-parser/lib/compiler/src/util.js"(L){$(),Object.defineProperty(L,"__esModule",{value:!0});var re=/-+([a-z0-9])/g;function ge(le){return le.replace(re,function(){for(var We=arguments.length,Me=new Array(We),at=0;atde(Me,this,We))}visitStringMap(le,We){let Me={};return Object.keys(le).forEach(at=>{Me[at]=de(le[at],this,We)}),Me}visitPrimitive(le,We){return le}visitOther(le,We){return le}};L.ValueTransformer=gt,L.SyncAsync={assertSync:le=>{if(st(le))throw new Error("Illegal state: value cannot be a promise");return le},then:(le,We)=>st(le)?le.then(We):We(le),all:le=>le.some(st)?Promise.all(le):le};function ce(le){throw new Error(`Internal Error: ${le}`)}L.error=ce;function ve(le,We){let Me=Error(le);return Me[Ve]=!0,We&&(Me[He]=We),Me}L.syntaxError=ve;var Ve="ngSyntaxError",He="ngParseErrors";function Je(le){return le[Ve]}L.isSyntaxError=Je;function Qe(le){return le[He]||[]}L.getParseErrors=Qe;function yt(le){return le.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}L.escapeRegExp=yt;var _t=Object.getPrototypeOf({});function ct(le){return typeof le=="object"&&le!==null&&Object.getPrototypeOf(le)===_t}function kt(le){let We="";for(let Me=0;Me=55296&&at<=56319&&le.length>Me+1){let Jt=le.charCodeAt(Me+1);Jt>=56320&&Jt<=57343&&(Me++,at=(at-55296<<10)+Jt-56320+65536)}at<=127?We+=String.fromCharCode(at):at<=2047?We+=String.fromCharCode(at>>6&31|192,at&63|128):at<=65535?We+=String.fromCharCode(at>>12|224,at>>6&63|128,at&63|128):at<=2097151&&(We+=String.fromCharCode(at>>18&7|240,at>>12&63|128,at>>6&63|128,at&63|128))}return We}L.utf8Encode=kt;function $t(le){if(typeof le=="string")return le;if(le instanceof Array)return"["+le.map($t).join(", ")+"]";if(le==null)return""+le;if(le.overriddenName)return`${le.overriddenName}`;if(le.name)return`${le.name}`;if(!le.toString)return"object";let We=le.toString();if(We==null)return""+We;let Me=We.indexOf(` `);return Me===-1?We:We.substring(0,Me)}L.stringify=$t;function ir(le){return typeof le=="function"&&le.hasOwnProperty("__forward_ref__")?le():le}L.resolveForwardRef=ir;function st(le){return!!le&&typeof le.then=="function"}L.isPromise=st;var Ot=class{constructor(le){this.full=le;let We=le.split(".");this.major=We[0],this.minor=We[1],this.patch=We.slice(2).join(".")}};L.Version=Ot;var Vt=typeof window<"u"&&window,Ut=typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self,rr=typeof globalThis<"u"&&globalThis,z=rr||Vt||Ut;L.global=z}}),qt=he({"node_modules/angular-html-parser/lib/compiler/src/compile_metadata.js"(L){$(),Object.defineProperty(L,"__esModule",{value:!0});var re=At(),ge=Lt(),Ee=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/;function Pe(Me){return Me.replace(/\W/g,"_")}L.sanitizeIdentifier=Pe;var ie=0;function de(Me){if(!Me||!Me.reference)return null;let at=Me.reference;if(at instanceof re.StaticSymbol)return at.name;if(at.__anonymousType)return at.__anonymousType;let Jt=ge.stringify(at);return Jt.indexOf("(")>=0?(Jt=`anonymous_${ie++}`,at.__anonymousType=Jt):Jt=Pe(Jt),Jt}L.identifierName=de;function Ue(Me){let at=Me.reference;return at instanceof re.StaticSymbol?at.filePath:`./${ge.stringify(at)}`}L.identifierModuleUrl=Ue;function Ge(Me,at){return`View_${de({reference:Me})}_${at}`}L.viewClassName=Ge;function gt(Me){return`RenderType_${de({reference:Me})}`}L.rendererTypeName=gt;function ce(Me){return`HostView_${de({reference:Me})}`}L.hostViewClassName=ce;function ve(Me){return`${de({reference:Me})}NgFactory`}L.componentFactoryName=ve;var Ve;(function(Me){Me[Me.Pipe=0]="Pipe",Me[Me.Directive=1]="Directive",Me[Me.NgModule=2]="NgModule",Me[Me.Injectable=3]="Injectable"})(Ve=L.CompileSummaryKind||(L.CompileSummaryKind={}));function He(Me){return Me.value!=null?Pe(Me.value):de(Me.identifier)}L.tokenName=He;function Je(Me){return Me.identifier!=null?Me.identifier.reference:Me.value}L.tokenReference=Je;var Qe=class{constructor(){let{moduleUrl:Me,styles:at,styleUrls:Jt}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.moduleUrl=Me||null,this.styles=st(at),this.styleUrls=st(Jt)}};L.CompileStylesheetMetadata=Qe;var yt=class{constructor(Me){let{encapsulation:at,template:Jt,templateUrl:er,htmlAst:Ar,styles:Er,styleUrls:_r,externalStylesheets:xr,animations:Ir,ngContentSelectors:Mr,interpolation:or,isInline:lt,preserveWhitespaces:mt}=Me;if(this.encapsulation=at,this.template=Jt,this.templateUrl=er,this.htmlAst=Ar,this.styles=st(Er),this.styleUrls=st(_r),this.externalStylesheets=st(xr),this.animations=Ir?Vt(Ir):[],this.ngContentSelectors=Mr||[],or&&or.length!=2)throw new Error("'interpolation' should have a start and an end symbol.");this.interpolation=or,this.isInline=lt,this.preserveWhitespaces=mt}toSummary(){return{ngContentSelectors:this.ngContentSelectors,encapsulation:this.encapsulation,styles:this.styles,animations:this.animations}}};L.CompileTemplateMetadata=yt;var _t=class{static create(Me){let{isHost:at,type:Jt,isComponent:er,selector:Ar,exportAs:Er,changeDetection:_r,inputs:xr,outputs:Ir,host:Mr,providers:or,viewProviders:lt,queries:mt,guards:St,viewQueries:xt,entryComponents:Kt,template:sr,componentViewType:lr,rendererType:Qt,componentFactory:Kr}=Me,Pn={},In={},Hu={};Mr!=null&&Object.keys(Mr).forEach(vr=>{let Qr=Mr[vr],cn=vr.match(Ee);cn===null?Hu[vr]=Qr:cn[1]!=null?In[cn[1]]=Qr:cn[2]!=null&&(Pn[cn[2]]=Qr)});let Yu={};xr==null||xr.forEach(vr=>{let Qr=ge.splitAtColon(vr,[vr,vr]);Yu[Qr[0]]=Qr[1]});let Ku={};return Ir==null||Ir.forEach(vr=>{let Qr=ge.splitAtColon(vr,[vr,vr]);Ku[Qr[0]]=Qr[1]}),new _t({isHost:at,type:Jt,isComponent:!!er,selector:Ar,exportAs:Er,changeDetection:_r,inputs:Yu,outputs:Ku,hostListeners:Pn,hostProperties:In,hostAttributes:Hu,providers:or,viewProviders:lt,queries:mt,guards:St,viewQueries:xt,entryComponents:Kt,template:sr,componentViewType:lr,rendererType:Qt,componentFactory:Kr})}constructor(Me){let{isHost:at,type:Jt,isComponent:er,selector:Ar,exportAs:Er,changeDetection:_r,inputs:xr,outputs:Ir,hostListeners:Mr,hostProperties:or,hostAttributes:lt,providers:mt,viewProviders:St,queries:xt,guards:Kt,viewQueries:sr,entryComponents:lr,template:Qt,componentViewType:Kr,rendererType:Pn,componentFactory:In}=Me;this.isHost=!!at,this.type=Jt,this.isComponent=er,this.selector=Ar,this.exportAs=Er,this.changeDetection=_r,this.inputs=xr,this.outputs=Ir,this.hostListeners=Mr,this.hostProperties=or,this.hostAttributes=lt,this.providers=st(mt),this.viewProviders=st(St),this.queries=st(xt),this.guards=Kt,this.viewQueries=st(sr),this.entryComponents=st(lr),this.template=Qt,this.componentViewType=Kr,this.rendererType=Pn,this.componentFactory=In}toSummary(){return{summaryKind:Ve.Directive,type:this.type,isComponent:this.isComponent,selector:this.selector,exportAs:this.exportAs,inputs:this.inputs,outputs:this.outputs,hostListeners:this.hostListeners,hostProperties:this.hostProperties,hostAttributes:this.hostAttributes,providers:this.providers,viewProviders:this.viewProviders,queries:this.queries,guards:this.guards,viewQueries:this.viewQueries,entryComponents:this.entryComponents,changeDetection:this.changeDetection,template:this.template&&this.template.toSummary(),componentViewType:this.componentViewType,rendererType:this.rendererType,componentFactory:this.componentFactory}}};L.CompileDirectiveMetadata=_t;var ct=class{constructor(Me){let{type:at,name:Jt,pure:er}=Me;this.type=at,this.name=Jt,this.pure=!!er}toSummary(){return{summaryKind:Ve.Pipe,type:this.type,name:this.name,pure:this.pure}}};L.CompilePipeMetadata=ct;var kt=class{};L.CompileShallowModuleMetadata=kt;var $t=class{constructor(Me){let{type:at,providers:Jt,declaredDirectives:er,exportedDirectives:Ar,declaredPipes:Er,exportedPipes:_r,entryComponents:xr,bootstrapComponents:Ir,importedModules:Mr,exportedModules:or,schemas:lt,transitiveModule:mt,id:St}=Me;this.type=at||null,this.declaredDirectives=st(er),this.exportedDirectives=st(Ar),this.declaredPipes=st(Er),this.exportedPipes=st(_r),this.providers=st(Jt),this.entryComponents=st(xr),this.bootstrapComponents=st(Ir),this.importedModules=st(Mr),this.exportedModules=st(or),this.schemas=st(lt),this.id=St||null,this.transitiveModule=mt||null}toSummary(){let Me=this.transitiveModule;return{summaryKind:Ve.NgModule,type:this.type,entryComponents:Me.entryComponents,providers:Me.providers,modules:Me.modules,exportedDirectives:Me.exportedDirectives,exportedPipes:Me.exportedPipes}}};L.CompileNgModuleMetadata=$t;var ir=class{constructor(){this.directivesSet=new Set,this.directives=[],this.exportedDirectivesSet=new Set,this.exportedDirectives=[],this.pipesSet=new Set,this.pipes=[],this.exportedPipesSet=new Set,this.exportedPipes=[],this.modulesSet=new Set,this.modules=[],this.entryComponentsSet=new Set,this.entryComponents=[],this.providers=[]}addProvider(Me,at){this.providers.push({provider:Me,module:at})}addDirective(Me){this.directivesSet.has(Me.reference)||(this.directivesSet.add(Me.reference),this.directives.push(Me))}addExportedDirective(Me){this.exportedDirectivesSet.has(Me.reference)||(this.exportedDirectivesSet.add(Me.reference),this.exportedDirectives.push(Me))}addPipe(Me){this.pipesSet.has(Me.reference)||(this.pipesSet.add(Me.reference),this.pipes.push(Me))}addExportedPipe(Me){this.exportedPipesSet.has(Me.reference)||(this.exportedPipesSet.add(Me.reference),this.exportedPipes.push(Me))}addModule(Me){this.modulesSet.has(Me.reference)||(this.modulesSet.add(Me.reference),this.modules.push(Me))}addEntryComponent(Me){this.entryComponentsSet.has(Me.componentType)||(this.entryComponentsSet.add(Me.componentType),this.entryComponents.push(Me))}};L.TransitiveCompileNgModuleMetadata=ir;function st(Me){return Me||[]}var Ot=class{constructor(Me,at){let{useClass:Jt,useValue:er,useExisting:Ar,useFactory:Er,deps:_r,multi:xr}=at;this.token=Me,this.useClass=Jt||null,this.useValue=er,this.useExisting=Ar,this.useFactory=Er||null,this.dependencies=_r||null,this.multi=!!xr}};L.ProviderMeta=Ot;function Vt(Me){return Me.reduce((at,Jt)=>{let er=Array.isArray(Jt)?Vt(Jt):Jt;return at.concat(er)},[])}L.flatten=Vt;function Ut(Me){return Me.replace(/(\w+:\/\/[\w:-]+)?(\/+)?/,"ng:///")}function rr(Me,at,Jt){let er;return Jt.isInline?at.type.reference instanceof re.StaticSymbol?er=`${at.type.reference.filePath}.${at.type.reference.name}.html`:er=`${de(Me)}/${de(at.type)}.html`:er=Jt.templateUrl,at.type.reference instanceof re.StaticSymbol?er:Ut(er)}L.templateSourceUrl=rr;function z(Me,at){let Jt=Me.moduleUrl.split(/\/\\/g),er=Jt[Jt.length-1];return Ut(`css/${at}${er}.ngstyle.js`)}L.sharedStylesheetJitUrl=z;function le(Me){return Ut(`${de(Me.type)}/module.ngfactory.js`)}L.ngModuleJitUrl=le;function We(Me,at){return Ut(`${de(Me)}/${de(at.type)}.ngfactory.js`)}L.templateJitUrl=We}}),Zt=he({"node_modules/angular-html-parser/lib/compiler/src/parse_util.js"(L){$(),Object.defineProperty(L,"__esModule",{value:!0});var re=Ft(),ge=qt(),Ee=class{constructor(ce,ve,Ve,He){this.file=ce,this.offset=ve,this.line=Ve,this.col=He}toString(){return this.offset!=null?`${this.file.url}@${this.line}:${this.col}`:this.file.url}moveBy(ce){let ve=this.file.content,Ve=ve.length,He=this.offset,Je=this.line,Qe=this.col;for(;He>0&&ce<0;)if(He--,ce++,ve.charCodeAt(He)==re.$LF){Je--;let yt=ve.substr(0,He-1).lastIndexOf(String.fromCharCode(re.$LF));Qe=yt>0?He-yt:He}else Qe--;for(;He0;){let yt=ve.charCodeAt(He);He++,ce--,yt==re.$LF?(Je++,Qe=0):Qe++}return new Ee(this.file,He,Je,Qe)}getContext(ce,ve){let Ve=this.file.content,He=this.offset;if(He!=null){He>Ve.length-1&&(He=Ve.length-1);let Je=He,Qe=0,yt=0;for(;Qe0&&(He--,Qe++,!(Ve[He]==` `&&++yt==ve)););for(Qe=0,yt=0;Qe2&&arguments[2]!==void 0?arguments[2]:null;this.start=ce,this.end=ve,this.details=Ve}toString(){return this.start.file.content.substring(this.start.offset,this.end.offset)}};L.ParseSourceSpan=ie,L.EMPTY_PARSE_LOCATION=new Ee(new Pe("",""),0,0,0),L.EMPTY_SOURCE_SPAN=new ie(L.EMPTY_PARSE_LOCATION,L.EMPTY_PARSE_LOCATION);var de;(function(ce){ce[ce.WARNING=0]="WARNING",ce[ce.ERROR=1]="ERROR"})(de=L.ParseErrorLevel||(L.ParseErrorLevel={}));var Ue=class{constructor(ce,ve){let Ve=arguments.length>2&&arguments[2]!==void 0?arguments[2]:de.ERROR;this.span=ce,this.msg=ve,this.level=Ve}contextualMessage(){let ce=this.span.start.getContext(100,3);return ce?`${this.msg} ("${ce.before}[${de[this.level]} ->]${ce.after}")`:this.msg}toString(){let ce=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${ce}`}};L.ParseError=Ue;function Ge(ce,ve){let Ve=ge.identifierModuleUrl(ve),He=Ve!=null?`in ${ce} ${ge.identifierName(ve)} in ${Ve}`:`in ${ce} ${ge.identifierName(ve)}`,Je=new Pe("",He);return new ie(new Ee(Je,-1,-1,-1),new Ee(Je,-1,-1,-1))}L.typeSourceSpan=Ge;function gt(ce,ve,Ve){let He=`in ${ce} ${ve} in ${Ve}`,Je=new Pe("",He);return new ie(new Ee(Je,-1,-1,-1),new Ee(Je,-1,-1,-1))}L.r3JitTypeSourceSpan=gt}}),ue=he({"src/utils/front-matter/parse.js"(L,re){$();var ge=new RegExp("^(?-{3}|\\+{3})(?[^\\n]*)\\n(?:|(?.*?)\\n)(?\\k|\\.{3})[^\\S\\n]*(?:\\n|$)","s");function Ee(Pe){let ie=Pe.match(ge);if(!ie)return{content:Pe};let{startDelimiter:de,language:Ue,value:Ge="",endDelimiter:gt}=ie.groups,ce=Ue.trim()||"yaml";if(de==="+++"&&(ce="toml"),ce!=="yaml"&&de!==gt)return{content:Pe};let[ve]=ie;return{frontMatter:{type:"front-matter",lang:ce,value:Ge,startDelimiter:de,endDelimiter:gt,raw:ve.replace(/\n$/,"")},content:ve.replace(/[^\n]/g," ")+Pe.slice(ve.length)}}re.exports=Ee}}),yr=he({"src/utils/get-last.js"(L,re){$();var ge=Ee=>Ee[Ee.length-1];re.exports=ge}}),Pr=he({"src/common/parser-create-error.js"(L,re){$();function ge(Ee,Pe){let ie=new SyntaxError(Ee+" ("+Pe.start.line+":"+Pe.start.column+")");return ie.loc=Pe,ie}re.exports=ge}}),zr={};qe(zr,{default:()=>fr});function fr(L){if(typeof L!="string")throw new TypeError("Expected a string");return L.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var Rr=je({"node_modules/escape-string-regexp/index.js"(){$()}}),mr=he({"node_modules/semver/internal/debug.js"(L,re){$();var ge=typeof rt=="object"&&rt.env&&rt.env.NODE_DEBUG&&/\bsemver\b/i.test(rt.env.NODE_DEBUG)?function(){for(var Ee=arguments.length,Pe=new Array(Ee),ie=0;ie{};re.exports=ge}}),rn=he({"node_modules/semver/internal/constants.js"(L,re){$();var ge="2.0.0",Ee=256,Pe=Number.MAX_SAFE_INTEGER||9007199254740991,ie=16;re.exports={SEMVER_SPEC_VERSION:ge,MAX_LENGTH:Ee,MAX_SAFE_INTEGER:Pe,MAX_SAFE_COMPONENT_LENGTH:ie}}}),wr=he({"node_modules/semver/internal/re.js"(L,re){$();var{MAX_SAFE_COMPONENT_LENGTH:ge}=rn(),Ee=mr();L=re.exports={};var Pe=L.re=[],ie=L.src=[],de=L.t={},Ue=0,Ge=(gt,ce,ve)=>{let Ve=Ue++;Ee(gt,Ve,ce),de[gt]=Ve,ie[Ve]=ce,Pe[Ve]=new RegExp(ce,ve?"g":void 0)};Ge("NUMERICIDENTIFIER","0|[1-9]\\d*"),Ge("NUMERICIDENTIFIERLOOSE","[0-9]+"),Ge("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),Ge("MAINVERSION",`(${ie[de.NUMERICIDENTIFIER]})\\.(${ie[de.NUMERICIDENTIFIER]})\\.(${ie[de.NUMERICIDENTIFIER]})`),Ge("MAINVERSIONLOOSE",`(${ie[de.NUMERICIDENTIFIERLOOSE]})\\.(${ie[de.NUMERICIDENTIFIERLOOSE]})\\.(${ie[de.NUMERICIDENTIFIERLOOSE]})`),Ge("PRERELEASEIDENTIFIER",`(?:${ie[de.NUMERICIDENTIFIER]}|${ie[de.NONNUMERICIDENTIFIER]})`),Ge("PRERELEASEIDENTIFIERLOOSE",`(?:${ie[de.NUMERICIDENTIFIERLOOSE]}|${ie[de.NONNUMERICIDENTIFIER]})`),Ge("PRERELEASE",`(?:-(${ie[de.PRERELEASEIDENTIFIER]}(?:\\.${ie[de.PRERELEASEIDENTIFIER]})*))`),Ge("PRERELEASELOOSE",`(?:-?(${ie[de.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${ie[de.PRERELEASEIDENTIFIERLOOSE]})*))`),Ge("BUILDIDENTIFIER","[0-9A-Za-z-]+"),Ge("BUILD",`(?:\\+(${ie[de.BUILDIDENTIFIER]}(?:\\.${ie[de.BUILDIDENTIFIER]})*))`),Ge("FULLPLAIN",`v?${ie[de.MAINVERSION]}${ie[de.PRERELEASE]}?${ie[de.BUILD]}?`),Ge("FULL",`^${ie[de.FULLPLAIN]}$`),Ge("LOOSEPLAIN",`[v=\\s]*${ie[de.MAINVERSIONLOOSE]}${ie[de.PRERELEASELOOSE]}?${ie[de.BUILD]}?`),Ge("LOOSE",`^${ie[de.LOOSEPLAIN]}$`),Ge("GTLT","((?:<|>)?=?)"),Ge("XRANGEIDENTIFIERLOOSE",`${ie[de.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),Ge("XRANGEIDENTIFIER",`${ie[de.NUMERICIDENTIFIER]}|x|X|\\*`),Ge("XRANGEPLAIN",`[v=\\s]*(${ie[de.XRANGEIDENTIFIER]})(?:\\.(${ie[de.XRANGEIDENTIFIER]})(?:\\.(${ie[de.XRANGEIDENTIFIER]})(?:${ie[de.PRERELEASE]})?${ie[de.BUILD]}?)?)?`),Ge("XRANGEPLAINLOOSE",`[v=\\s]*(${ie[de.XRANGEIDENTIFIERLOOSE]})(?:\\.(${ie[de.XRANGEIDENTIFIERLOOSE]})(?:\\.(${ie[de.XRANGEIDENTIFIERLOOSE]})(?:${ie[de.PRERELEASELOOSE]})?${ie[de.BUILD]}?)?)?`),Ge("XRANGE",`^${ie[de.GTLT]}\\s*${ie[de.XRANGEPLAIN]}$`),Ge("XRANGELOOSE",`^${ie[de.GTLT]}\\s*${ie[de.XRANGEPLAINLOOSE]}$`),Ge("COERCE",`(^|[^\\d])(\\d{1,${ge}})(?:\\.(\\d{1,${ge}}))?(?:\\.(\\d{1,${ge}}))?(?:$|[^\\d])`),Ge("COERCERTL",ie[de.COERCE],!0),Ge("LONETILDE","(?:~>?)"),Ge("TILDETRIM",`(\\s*)${ie[de.LONETILDE]}\\s+`,!0),L.tildeTrimReplace="$1~",Ge("TILDE",`^${ie[de.LONETILDE]}${ie[de.XRANGEPLAIN]}$`),Ge("TILDELOOSE",`^${ie[de.LONETILDE]}${ie[de.XRANGEPLAINLOOSE]}$`),Ge("LONECARET","(?:\\^)"),Ge("CARETTRIM",`(\\s*)${ie[de.LONECARET]}\\s+`,!0),L.caretTrimReplace="$1^",Ge("CARET",`^${ie[de.LONECARET]}${ie[de.XRANGEPLAIN]}$`),Ge("CARETLOOSE",`^${ie[de.LONECARET]}${ie[de.XRANGEPLAINLOOSE]}$`),Ge("COMPARATORLOOSE",`^${ie[de.GTLT]}\\s*(${ie[de.LOOSEPLAIN]})$|^$`),Ge("COMPARATOR",`^${ie[de.GTLT]}\\s*(${ie[de.FULLPLAIN]})$|^$`),Ge("COMPARATORTRIM",`(\\s*)${ie[de.GTLT]}\\s*(${ie[de.LOOSEPLAIN]}|${ie[de.XRANGEPLAIN]})`,!0),L.comparatorTrimReplace="$1$2$3",Ge("HYPHENRANGE",`^\\s*(${ie[de.XRANGEPLAIN]})\\s+-\\s+(${ie[de.XRANGEPLAIN]})\\s*$`),Ge("HYPHENRANGELOOSE",`^\\s*(${ie[de.XRANGEPLAINLOOSE]})\\s+-\\s+(${ie[de.XRANGEPLAINLOOSE]})\\s*$`),Ge("STAR","(<|>)?=?\\s*\\*"),Ge("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),Ge("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}}),Fr=he({"node_modules/semver/internal/parse-options.js"(L,re){$();var ge=["includePrerelease","loose","rtl"],Ee=Pe=>Pe?typeof Pe!="object"?{loose:!0}:ge.filter(ie=>Pe[ie]).reduce((ie,de)=>(ie[de]=!0,ie),{}):{};re.exports=Ee}}),Tn=he({"node_modules/semver/internal/identifiers.js"(L,re){$();var ge=/^[0-9]+$/,Ee=(ie,de)=>{let Ue=ge.test(ie),Ge=ge.test(de);return Ue&&Ge&&(ie=+ie,de=+de),ie===de?0:Ue&&!Ge?-1:Ge&&!Ue?1:ieEe(de,ie);re.exports={compareIdentifiers:Ee,rcompareIdentifiers:Pe}}}),Bn=he({"node_modules/semver/classes/semver.js"(L,re){$();var ge=mr(),{MAX_LENGTH:Ee,MAX_SAFE_INTEGER:Pe}=rn(),{re:ie,t:de}=wr(),Ue=Fr(),{compareIdentifiers:Ge}=Tn(),gt=class{constructor(ce,ve){if(ve=Ue(ve),ce instanceof gt){if(ce.loose===!!ve.loose&&ce.includePrerelease===!!ve.includePrerelease)return ce;ce=ce.version}else if(typeof ce!="string")throw new TypeError(`Invalid Version: ${ce}`);if(ce.length>Ee)throw new TypeError(`version is longer than ${Ee} characters`);ge("SemVer",ce,ve),this.options=ve,this.loose=!!ve.loose,this.includePrerelease=!!ve.includePrerelease;let Ve=ce.trim().match(ve.loose?ie[de.LOOSE]:ie[de.FULL]);if(!Ve)throw new TypeError(`Invalid Version: ${ce}`);if(this.raw=ce,this.major=+Ve[1],this.minor=+Ve[2],this.patch=+Ve[3],this.major>Pe||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Pe||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Pe||this.patch<0)throw new TypeError("Invalid patch version");Ve[4]?this.prerelease=Ve[4].split(".").map(He=>{if(/^[0-9]+$/.test(He)){let Je=+He;if(Je>=0&&Je=0;)typeof this.prerelease[Ve]=="number"&&(this.prerelease[Ve]++,Ve=-2);Ve===-1&&this.prerelease.push(0)}ve&&(Ge(this.prerelease[0],ve)===0?isNaN(this.prerelease[1])&&(this.prerelease=[ve,0]):this.prerelease=[ve,0]);break;default:throw new Error(`invalid increment argument: ${ce}`)}return this.format(),this.raw=this.version,this}};re.exports=gt}}),on=he({"node_modules/semver/functions/compare.js"(L,re){$();var ge=Bn(),Ee=(Pe,ie,de)=>new ge(Pe,de).compare(new ge(ie,de));re.exports=Ee}}),Nr=he({"node_modules/semver/functions/lt.js"(L,re){$();var ge=on(),Ee=(Pe,ie,de)=>ge(Pe,ie,de)<0;re.exports=Ee}}),Bu=he({"node_modules/semver/functions/gte.js"(L,re){$();var ge=on(),Ee=(Pe,ie,de)=>ge(Pe,ie,de)>=0;re.exports=Ee}}),Ri=he({"src/utils/arrayify.js"(L,re){$(),re.exports=(ge,Ee)=>Object.entries(ge).map(Pe=>{let[ie,de]=Pe;return Object.assign({[Ee]:ie},de)})}}),wu=he({"package.json"(L,re){re.exports={version:"2.8.8"}}}),Mi=he({"node_modules/outdent/lib/index.js"(L,re){$(),Object.defineProperty(L,"__esModule",{value:!0}),L.outdent=void 0;function ge(){for(var ct=[],kt=0;kt{for(const i of r)if(i.type==="childList")for(const e of i.addedNodes)e.tagName==="LINK"&&e.rel==="modulepreload"&&m(e)}).observe(document,{childList:!0,subtree:!0});function a(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerPolicy&&(i.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?i.credentials="include":r.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function m(r){if(r.ep)return;r.ep=!0;const i=a(r);fetch(r.href,i)}})();const d="modulepreload",O=function(o,s){return new URL(o,s).href},E={},t=function(s,a,m){let r=Promise.resolve();if(a&&a.length>0){const i=document.getElementsByTagName("link");r=Promise.all(a.map(e=>{if(e=O(e,m),e in E)return;E[e]=!0;const c=e.endsWith(".css"),l=c?'[rel="stylesheet"]':"";if(!!m)for(let u=i.length-1;u>=0;u--){const n=i[u];if(n.href===e&&(!c||n.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${e}"]${l}`))return;const _=document.createElement("link");if(_.rel=c?"stylesheet":d,c||(_.as="script",_.crossOrigin=""),_.href=e,document.head.appendChild(_),c)return new Promise((u,n)=>{_.addEventListener("load",u),_.addEventListener("error",()=>n(new Error(`Unable to preload CSS for ${e}`)))})}))}return r.then(()=>s()).catch(i=>{const e=new Event("vite:preloadError",{cancelable:!0});if(e.payload=i,window.dispatchEvent(e),!e.defaultPrevented)throw i})},{createBrowserChannel:L}=__STORYBOOK_MODULE_CHANNELS__,{addons:R}=__STORYBOOK_MODULE_PREVIEW_API__,p=L({page:"preview"});R.setChannel(p);window.__STORYBOOK_ADDONS_CHANNEL__=p;window.CONFIG_TYPE==="DEVELOPMENT"&&(window.__STORYBOOK_SERVER_CHANNEL__=p);const P={"./src/common/InfiniteScroll.stories.js":async()=>t(()=>import("./InfiniteScroll.stories-C49Dd1kM.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40]),import.meta.url),"./src/common/Keyboard.stories.js":async()=>t(()=>import("./Keyboard.stories-DvSTFzs2.js"),__vite__mapDeps([41,1,2,3,42,13,10,43,4,5,6,7,8,9,11,12,14,44,45]),import.meta.url),"./src/common/RichTextArea.stories.js":async()=>t(()=>import("./RichTextArea.stories-GUYjY3FJ.js"),__vite__mapDeps([46,1,2,3,4,5,6,7,8,9,10,11,12,13,14,47,48,40,39,49,22,18,50,51,52]),import.meta.url),"./src/components/Welcome.stories.js":async()=>t(()=>import("./Welcome.stories-CC1xAJ0k.js"),__vite__mapDeps([53,1,2,3]),import.meta.url),"./src/controlled-vocabulary/ReferenceCodeDropdown.stories.js":async()=>t(()=>import("./ReferenceCodeDropdown.stories-C-buW2Pl.js"),__vite__mapDeps([54,1,2,3,42,13,10,43,4,5,6,7,8,9,11,12,14,55,56,16,17,18,24,19,25,32,57,58,59,60,61,62,63,64,21,22,28,29,30,31,23,20,26,27,65,33,66,67]),import.meta.url),"./src/controlled-vocabulary/ReferenceCodeFormDropdown.stories.js":async()=>t(()=>import("./ReferenceCodeFormDropdown.stories-paQfOUbk.js"),__vite__mapDeps([68,1,2,3,4,5,6,7,8,9,10,11,12,13,14,42,43,69,16,17,18,19,70,23,20,21,22,24,25,26,27,28,29,30,31,32,71,62,63,56,57,58,59,60,61,64,65,72,73,66,74,75,76,77,36,37,38,39,40,78,55,33,67,79,80,81,50,49,51,82,83,84,85,86,87,35]),import.meta.url),"./src/controlled-vocabulary/ReferenceCodeFormLabel.stories.js":async()=>t(()=>import("./ReferenceCodeFormLabel.stories-D1BDWrjF.js"),__vite__mapDeps([88,1,2,3,4,5,6,7,8,9,10,11,12,13,14,42,43,79,70,16,17,18,19,23,20,21,22,24,25,26,27,28,29,30,31,32,80,81,61,62,63,64,50,40,49,51,39,82,83,84,85,86]),import.meta.url),"./src/core-data/LoadingAnimation.stories.js":async()=>t(()=>import("./LoadingAnimation.stories-B8BvOQTy.js"),__vite__mapDeps([89,1,2,3,90,91]),import.meta.url),"./src/core-data/MediaGallery.stories.js":async()=>t(()=>import("./MediaGallery.stories-DmASKrbc.js"),__vite__mapDeps([92,1,2,3,93,16,94,37,38,39,40,30,12,43,95,96]),import.meta.url),"./src/core-data/PlaceDetailsPanel.stories.js":async()=>t(()=>import("./PlaceDetailsPanel.stories-D7hdR4CN.js"),__vite__mapDeps([97,1,2,3,42,13,10,43,33,98,16,94,37,38,39,40,30,12,99,90,91,100,93,95,96,101,102,103,104,105,106,107]),import.meta.url),"./src/core-data/PlaceMarker.stories.js":async()=>t(()=>import("./PlaceMarker.stories-C9NEeaBA.js"),__vite__mapDeps([108,1,2,3,109,30]),import.meta.url),"./src/core-data/PlaceResultsList.stories.js":async()=>t(()=>import("./PlaceResultsList.stories-7ml9P4A4.js"),__vite__mapDeps([110,1,2,3,42,13,10,43,16,22,17,18,33,111]),import.meta.url),"./src/core-data/RelatedItemsList.stories.js":async()=>t(()=>import("./RelatedItemsList.stories-BHOXxMVl.js"),__vite__mapDeps([112,1,2,3,98,16,94,37,38,39,40,30,12,43,33,99,90,91,100,93,95,96,101,102,103,104,105,106]),import.meta.url),"./src/core-data/RelatedList.stories.js":async()=>t(()=>import("./RelatedList.stories-DOikSUmL.js"),__vite__mapDeps([113,1,2,3,102,33]),import.meta.url),"./src/core-data/RelatedMedia.stories.js":async()=>t(()=>import("./RelatedMedia.stories-BMR0cJFV.js"),__vite__mapDeps([114,1,2,3,100,94,37,38,39,40,16,30,12,43,33,93,95,96,107]),import.meta.url),"./src/core-data/RelatedOrganizations.stories.js":async()=>t(()=>import("./RelatedOrganizations.stories-DAaYH5Tq.js"),__vite__mapDeps([115,1,2,3,101,99,102,33,95]),import.meta.url),"./src/core-data/RelatedPeople.stories.js":async()=>t(()=>import("./RelatedPeople.stories-Caf5OgHx.js"),__vite__mapDeps([116,1,2,3,103,99,102,33,95]),import.meta.url),"./src/core-data/RelatedPlaces.stories.js":async()=>t(()=>import("./RelatedPlaces.stories-WOHLYKrm.js"),__vite__mapDeps([117,1,2,3,104,99,102,33,95]),import.meta.url),"./src/core-data/RelatedTaxonimies.stories.js":async()=>t(()=>import("./RelatedTaxonimies.stories-DINnFaB4.js"),__vite__mapDeps([118,1,2,3,105,99,102,33,95]),import.meta.url),"./src/geospatial/LocationMarker.stories.js":async()=>t(()=>import("./LocationMarker.stories-5XR-_M2-.js"),__vite__mapDeps([119,1,2,3,109,30,120]),import.meta.url),"./src/geospatial/MapDraw.stories.js":async()=>t(()=>import("./MapDraw.stories-DKSg65V-.js"),__vite__mapDeps([121,1,2,3,42,13,10,43,122,30,33,120,123]),import.meta.url),"./src/semantic-ui/AccordionDataList.stories.js":async()=>t(()=>import("./AccordionDataList.stories-CsYPBCtb.js"),__vite__mapDeps([124,1,2,3,42,13,10,43,4,5,6,7,8,9,11,12,14,70,16,17,18,19,23,20,21,22,24,25,26,27,28,29,30,31,32,33,71,62,63,56,57,58,59,60,61,64,65,125,126,127,128,66,74,129,130,72,131,48,40,39,49,50,51,132,133,134,135,136,87,137,138,139,80,140,141,142,143,144,69,145,146,147,148,149,150,151,152,153,154,155,156,157,158]),import.meta.url),"./src/semantic-ui/AccordionList.stories.js":async()=>t(()=>import("./AccordionList.stories-a7xEEwhw.js"),__vite__mapDeps([159,1,2,3,42,13,10,43,4,5,6,7,8,9,11,12,14,33,70,16,17,18,19,23,20,21,22,24,25,26,27,28,29,30,31,32,66,74,136,133,63,65,87,61,62,64,59,137,138,60,139,130,80,72,71,131,48,40,39,49,50,51,142,143,132,134,144,125,126,57,58,127,156,157,160]),import.meta.url),"./src/semantic-ui/AccordionSelector.stories.js":async()=>t(()=>import("./AccordionSelector.stories-BdgABZxJ.js"),__vite__mapDeps([161,1,2,3,42,13,10,43,4,5,6,7,8,9,11,12,14,70,16,17,18,19,23,20,21,22,24,25,26,27,28,29,30,31,32,33,66,139,130,80,72,87,61,62,63,64,59,131,48,40,39,49,50,51,142,74,143,132,133,65,134,144,150,125,126,57,58,127,162,163,164,165,166,83,85,153,154,156,157,167]),import.meta.url),"./src/semantic-ui/ArrowButtons.stories.js":async()=>t(()=>import("./ArrowButtons.stories-6z_rtFr4.js"),__vite__mapDeps([168,1,2,3,42,13,10,43,169,70,16,17,18,19,23,20,21,22,24,25,26,27,28,29,30,31,32,170]),import.meta.url),"./src/semantic-ui/AssociatedDropdown.stories.js":async()=>t(()=>import("./AssociatedDropdown.stories-CdW11X5w.js"),__vite__mapDeps([171,1,2,3,42,13,10,43,4,5,6,7,8,9,11,12,14,69,16,17,18,19,70,23,20,21,22,24,25,26,27,28,29,30,31,32,71,62,63,56,57,58,59,60,61,64,65,72,87,156,157,33,145,66,130,142,74,143,132,133,134,131,48,40,39,49,50,51,144,146,47]),import.meta.url),"./src/semantic-ui/AudioPlayer.stories.js":async()=>t(()=>import("./AudioPlayer.stories-cG6P3Mkd.js"),__vite__mapDeps([172,1,2,3,42,13,10,43,4,5,6,7,8,9,11,12,14,173,130,16,17,18,19,23,32,70,20,21,22,24,25,26,27,28,29,30,31,87,61,62,63,64,59,131,48,40,39,49,50,51,150,174,175]),import.meta.url),"./src/semantic-ui/BibliographyForm.stories.js":async()=>t(()=>import("./BibliographyForm.stories-CcvFteaz.js"),__vite__mapDeps([176,1,2,3,69,16,17,18,19,70,23,20,21,22,24,25,26,27,28,29,30,31,32,71,62,63,56,57,58,59,60,61,64,65,72,177,33,178,131,48,40,39,49,50,51,179,47]),import.meta.url),"./src/semantic-ui/BibliographyList.stories.js":async()=>t(()=>import("./BibliographyList.stories-CHHdxtlO.js"),__vite__mapDeps([180,1,2,3,4,5,6,7,8,9,10,11,12,13,14,33,75,66,30,129,139,16,19,130,17,18,23,32,70,20,21,22,24,25,26,27,28,29,31,181,69,71,62,63,56,57,58,59,60,61,64,65,72,87,131,48,40,39,49,50,51,177,178,179,182,183,184,132,133,134,135,136,137,138,80,140,141,142,74,143,144,145,146,147,148,149,150,151,152,153,154,155,185]),import.meta.url),"./src/semantic-ui/BibliographySearchInput.stories.js":async()=>t(()=>import("./BibliographySearchInput.stories-BJT8w4fP.js"),__vite__mapDeps([186,1,2,3,182,70,16,17,18,19,23,20,21,22,24,25,26,27,28,29,30,31,32,72,178,33,131,48,40,39,49,50,51,183]),import.meta.url),"./src/semantic-ui/BooleanIcon.stories.js":async()=>t(()=>import("./BooleanIcon.stories-Cf5DXsV1.js"),__vite__mapDeps([187,1,2,3,4,5,6,7,8,9,10,11,12,13,14,23,16,17,18,19]),import.meta.url),"./src/semantic-ui/Breadcrumbs.stories.js":async()=>t(()=>import("./Breadcrumbs.stories-DQEHCwm0.js"),__vite__mapDeps([188,1,2,3,16,19,23,17,18,26,33,143,189]),import.meta.url),"./src/semantic-ui/CancelButton.stories.js":async()=>t(()=>import("./CancelButton.stories-Do12fFvS.js"),__vite__mapDeps([190,1,2,3,42,13,10,43,4,5,6,7,8,9,11,12,14,191,70,16,17,18,19,23,20,21,22,24,25,26,27,28,29,30,31,32,131,48,40,39,49,50,51]),import.meta.url),"./src/semantic-ui/ColorButton.stories.js":async()=>t(()=>import("./ColorButton.stories-BQutYKtU.js"),__vite__mapDeps([192,1,2,3,42,13,10,43,4,5,6,7,8,9,11,12,14,70,16,17,18,19,23,20,21,22,24,25,26,27,28,29,30,31,32,193]),import.meta.url),"./src/semantic-ui/ColorPickerModal.stories.js":async()=>t(()=>import("./ColorPickerModal.stories-COMh_oAs.js"),__vite__mapDeps([194,1,2,3,42,13,10,43,4,5,6,7,8,9,11,12,14,195,196,197,19,16,63,58,62,25,26,32,21,22,17,18,70,23,20,24,27,28,29,30,31,87,61,64,59,131,48,40,39,49,50,51,150,198]),import.meta.url),"./src/semantic-ui/CurrentFacetLabels.stories.js":async()=>t(()=>import("./CurrentFacetLabels.stories-D1YKZNDo.js"),__vite__mapDeps([199,1,2,3,42,13,10,43,200,70,16,17,18,19,23,20,21,22,24,25,26,27,28,29,30,31,32,33]),import.meta.url),"./src/semantic-ui/CurrentFacets.stories.js":async()=>t(()=>import("./CurrentFacets.stories-CPNVGHdM.js"),__vite__mapDeps([201,1,2,3,42,13,10,43,4,5,6,7,8,9,11,12,14,33,200,70,16,17,18,19,23,20,21,22,24,25,26,27,28,29,30,31,32,202,87,61,62,63,64,59,131,48,40,39,49,50,51]),import.meta.url),"./src/semantic-ui/CurrentFacetsModal.stories.js":async()=>t(()=>import("./CurrentFacetsModal.stories-CSfpaeZO.js"),__vite__mapDeps([203,1,2,3,204,42,13,10,43,70,16,17,18,19,23,20,21,22,24,25,26,27,28,29,30,31,32,33,202,87,61,62,63,64,59,200,131,48,40,39,49,50,51]),import.meta.url),"./src/semantic-ui/DataTable.stories.js":async()=>t(()=>import("./DataTable.stories-DL_WlDxA.js"),__vite__mapDeps([205,1,2,3,42,13,10,43,4,5,6,7,8,9,11,12,14,136,16,17,18,133,24,19,25,26,63,65,70,23,20,21,22,27,28,29,30,31,32,87,61,62,64,59,80,206,66,74,207,143,71,81,50,40,33,131,48,39,49,51,56,57,58,60,208,77,36,37,38,135,137,138,139,140,141,142,130,132,134,144,69,72,145,146,147,148,149,150,151,152,153,154,155,209,35]),import.meta.url),"./src/semantic-ui/DataView.stories.js":async()=>t(()=>import("./DataView.stories-Do6T3up5.js"),__vite__mapDeps([210,1,2,3,4,5,6,7,8,9,10,11,12,13,14,33,69,16,17,18,19,70,23,20,21,22,24,25,26,27,28,29,30,31,32,71,62,63,56,57,58,59,60,61,64,65,72,139,87,206,66,74,207,143,81,50,40,131,48,39,49,51,208,77,36,37,38,135,136,133,137,138,80,140,141,142,130,132,134,144,145,146,147,148,149,150,151,152,153,154,155,209,211,212,128,129,35,213]),import.meta.url),"./src/semantic-ui/DateInput.stories.js":async()=>t(()=>import("./DateInput.stories-4-GxLJEq.js"),__vite__mapDeps([214,1,2,3,42,13,10,43,148,23,16,17,18,19,72,24,25,32,20,21,22,26,27,28,29,30,31,70,149]),import.meta.url),"./src/semantic-ui/DatePicker.stories.js":async()=>t(()=>import("./DatePicker.stories-Xuif5Nsn.js"),__vite__mapDeps([215,1,2,3,69,16,17,18,19,70,23,20,21,22,24,25,26,27,28,29,30,31,32,71,62,63,56,57,58,59,60,61,64,65,72,197,133,148,149,216]),import.meta.url),"./src/semantic-ui/DescriptorField.stories.js":async()=>t(()=>import("./DescriptorField.stories-B8meZkEv.js"),__vite__mapDeps([217,1,2,3,4,5,6,7,8,9,10,11,12,13,14,81,16,17,18,19,21,22,61,62,63,64,24,25,28,29,30,31,50,40]),import.meta.url),"./src/semantic-ui/DownloadButton.stories.js":async()=>t(()=>import("./DownloadButton.stories-Dq58DhJz.js"),__vite__mapDeps([218,1,2,3,219,129,23,16,17,18,19,131,48,40,39,49,22,50,51,220]),import.meta.url),"./src/semantic-ui/DropdownButton.stories.js":async()=>t(()=>import("./DropdownButton.stories-B5fLHKVw.js"),__vite__mapDeps([221,1,2,3,33,140,70,16,17,18,19,23,20,21,22,24,25,26,27,28,29,30,31,32,56,57,58,59,60,61,62,63,64,65,141]),import.meta.url),"./src/semantic-ui/EditModal.stories.js":async()=>t(()=>import("./EditModal.stories-CwYJ6YVE.js"),__vite__mapDeps([222,1,2,3,42,13,10,43,4,5,6,7,8,9,11,12,14,69,16,17,18,19,70,23,20,21,22,24,25,26,27,28,29,30,31,32,71,62,63,56,57,58,59,60,61,64,65,72,130,87,33,156,157,145,66,142,74,143,132,133,134,131,48,40,39,49,50,51,144,146,223]),import.meta.url),"./src/semantic-ui/EditPage.stories.js":async()=>t(()=>import("./EditPage.stories-CRgOvQDb.js"),__vite__mapDeps([224,1,2,3,42,13,10,43,4,5,6,7,8,9,11,12,14,69,16,17,18,19,70,23,20,21,22,24,25,26,27,28,29,30,31,32,71,62,63,56,57,58,59,60,61,64,65,72,33,156,87,157,145,66,130,142,74,143,132,133,134,131,48,40,39,49,50,51,144,146,138,191,225,223,226]),import.meta.url),"./src/semantic-ui/EmbeddedList.stories.js":async()=>t(()=>import("./EmbeddedList.stories-B55bOPxL.js"),__vite__mapDeps([227,1,2,3,42,13,10,43,4,5,6,7,8,9,11,12,14,70,16,17,18,19,23,20,21,22,24,25,26,27,28,29,30,31,32,228,33,156,87,61,62,63,64,59,142,66,74,130,143,132,133,65,134,131,48,40,39,49,50,51,144,207,129,206,71,81,56,57,58,60,208,77,36,37,38,135,136,137,138,139,80,140,141,69,72,145,146,147,148,149,150,151,152,153,154,155,209,229,78,230,35,231]),import.meta.url),"./src/semantic-ui/Facet.stories.js":async()=>t(()=>import("./Facet.stories-CntnM9og.js"),__vite__mapDeps([232,1,2,3,4,5,6,7,8,9,10,11,12,13,14,69,16,17,18,19,70,23,20,21,22,24,25,26,27,28,29,30,31,32,71,62,63,56,57,58,59,60,61,64,65,72,233,234,80,126,235]),import.meta.url),"./src/semantic-ui/FacetClearButton.stories.js":async()=>t(()=>import("./FacetClearButton.stories-CRsWt0-5.js"),__vite__mapDeps([236,1,2,3,42,13,10,43,70,16,17,18,19,23,20,21,22,24,25,26,27,28,29,30,31,32]),import.meta.url),"./src/semantic-ui/FacetList.stories.js":async()=>t(()=>import("./FacetList.stories-6txQKgIe.js"),__vite__mapDeps([237,1,2,3,42,13,10,43,70,16,17,18,19,23,20,21,22,24,25,26,27,28,29,30,31,32,66,72,181,71,62,63,33,233,234,80,126,57,58,235,131,48,40,39,49,50,51,238,239,240]),import.meta.url),"./src/semantic-ui/FacetSlider.stories.js":async()=>t(()=>import("./FacetSlider.stories-BiwZqbBY.js"),__vite__mapDeps([241,1,2,3,42,13,10,43,38,39,40,242,85,84,166,83,243,16,153,31,139,19,233,234,80,23,17,18,20,21,22,24,25,26,27,28,29,30,126,32,57,58,235,244]),import.meta.url),"./src/semantic-ui/FacetToggle.stories.js":async()=>t(()=>import("./FacetToggle.stories-CslYGx8N.js"),__vite__mapDeps([245,1,2,3,20,16,17,18,21,22,19,23,24,25,26,27,28,29,30,31,71,62,63,233,234,80,126,32,57,58,235]),import.meta.url),"./src/semantic-ui/FileInputButton.stories.js":async()=>t(()=>import("./FileInputButton.stories-DNVcqPFx.js"),__vite__mapDeps([246,1,2,3,42,13,10,43,4,5,6,7,8,9,11,12,14,247,70,16,17,18,19,23,20,21,22,24,25,26,27,28,29,30,31,32]),import.meta.url),"./src/semantic-ui/FileUpload.stories.js":async()=>t(()=>import("./FileUpload.stories-CFBNM96l.js"),__vite__mapDeps([248,1,2,3,42,13,10,43,249,130,16,17,18,19,23,32,33,131,48,40,39,49,22,50,51,152,153,31,154,250]),import.meta.url),"./src/semantic-ui/FileUploadModal.stories.js":async()=>t(()=>import("./FileUploadModal.stories-BzS2eTOQ.js"),__vite__mapDeps([251,1,2,3,42,13,10,43,69,16,17,18,19,70,23,20,21,22,24,25,26,27,28,29,30,31,32,71,62,63,56,57,58,59,60,61,64,65,72,252,130,143,87,33,249,131,48,40,39,49,50,51,152,153,154,250,80,150,253]),import.meta.url),"./src/semantic-ui/FuzzyDate.stories.js":async()=>t(()=>import("./FuzzyDate.stories-BQ1xpzZ9.js"),__vite__mapDeps([254,1,2,3,42,13,10,43,4,5,6,7,8,9,11,12,14,69,16,17,18,19,70,23,20,21,22,24,25,26,27,28,29,30,31,32,71,62,63,56,57,58,59,60,61,64,65,72,169,170,147,66,87,33,131,48,40,39,49,50,51,148,149,150,151]),import.meta.url),"./src/semantic-ui/GoogleMap.stories.js":async()=>t(()=>import("./GoogleMap.stories-BjR8S3IO.js"),__vite__mapDeps([255,1,2,3,69,16,17,18,19,70,23,20,21,22,24,25,26,27,28,29,30,31,32,71,62,63,56,57,58,59,60,61,64,65,72,122,66,256]),import.meta.url),"./src/semantic-ui/GooglePlacesSearch.stories.js":async()=>t(()=>import("./GooglePlacesSearch.stories-BVzZ_7G6.js"),__vite__mapDeps([257,1,2,3,42,13,10,43,69,16,17,18,19,70,23,20,21,22,24,25,26,27,28,29,30,31,32,71,62,63,56,57,58,59,60,61,64,65,72,122,256,33]),import.meta.url),"./src/semantic-ui/HorizontalCards.stories.js":async()=>t(()=>import("./HorizontalCards.stories-BQDatMOE.js"),__vite__mapDeps([258,1,2,3,42,13,10,43,4,5,6,7,8,9,11,12,14,33,70,16,17,18,19,23,20,21,22,24,25,26,27,28,29,30,31,32,80,15,208,77,36,37,38,39,40,35,259,204,260,261]),import.meta.url),"./src/semantic-ui/ImageCarousel.stories.js":async()=>t(()=>import("./ImageCarousel.stories-DkLbCkZL.js"),__vite__mapDeps([262,1,2,3,70,16,17,18,19,23,20,21,22,24,25,26,27,28,29,30,31,32,33,139,143,133,63,65,259,204,260,263]),import.meta.url),"./src/semantic-ui/ItemCollection.stories.js":async()=>t(()=>import("./ItemCollection.stories-CK8mT4d6.js"),__vite__mapDeps([264,1,2,3,42,13,10,43,4,5,6,7,8,9,11,12,14,70,16,17,18,19,23,20,21,22,24,25,26,27,28,29,30,31,32,228,80,56,57,58,59,60,61,62,63,64,65,33,156,87,142,66,74,130,143,132,133,134,131,48,40,39,49,50,51,144,265,129,266,163,71,15,252,135,136,137,138,139,140,141,69,72,145,146,147,148,149,150,151,152,153,154,155,128,208,77,36,37,38,267,268,229,78,230,35]),import.meta.url),"./src/semantic-ui/ItemList.stories.js":async()=>t(()=>import("./ItemList.stories-ByuTI5fo.js"),__vite__mapDeps([269,1,2,3,42,13,10,43,4,5,6,7,8,9,11,12,14,70,16,17,18,19,23,20,21,22,24,25,26,27,28,29,30,31,32,80,33,156,87,61,62,63,64,59,157,143,131,48,40,39,49,50,51,266,163,71,15,252,135,136,133,65,137,138,60,139,140,56,57,58,141,142,66,74,130,132,134,144,69,72,145,146,147,148,149,150,151,152,153,154,155,128,129,208,77,36,37,38,267,34,270,35]),import.meta.url),"./src/semantic-ui/Items.stories.js":async()=>t(()=>import("./Items.stories-CCw80XJx.js"),__vite__mapDeps([271,1,2,3,42,13,10,43,4,5,6,7,8,9,11,12,14,136,16,17,18,133,24,19,25,26,63,65,70,23,20,21,22,27,28,29,30,31,32,87,61,62,64,59,80,33,266,163,71,15,252,131,48,40,39,49,50,51,135,137,138,60,139,140,56,57,58,141,142,66,74,130,143,132,134,144,69,72,145,146,147,148,149,150,151,152,153,154,155,128,129,208,77,36,37,38,267,220,35]),import.meta.url),"./src/semantic-ui/KeyValuePairs.stories.js":async()=>t(()=>import("./KeyValuePairs.stories-kzno01Bl.js"),__vite__mapDeps([272,1,2,3,4,5,6,7,8,9,10,11,12,13,14,139,16,19,70,17,18,23,20,21,22,24,25,26,27,28,29,30,31,32,72,33,131,48,40,39,49,50,51]),import.meta.url),"./src/semantic-ui/KeyboardField.stories.js":async()=>t(()=>import("./KeyboardField.stories-Dl2hfwXG.js"),__vite__mapDeps([273,1,2,3,4,5,6,7,8,9,10,11,12,13,14,69,16,17,18,19,70,23,20,21,22,24,25,26,27,28,29,30,31,32,71,62,63,56,57,58,59,60,61,64,65,72,44,66,163,133,131,48,40,39,49,50,51,274,238,239,275,276]),import.meta.url),"./src/semantic-ui/LazyAudio.stories.js":async()=>t(()=>import("./LazyAudio.stories-BeMWH0Uj.js"),__vite__mapDeps([277,1,2,3,4,5,6,7,8,9,10,11,12,13,14,33,175,278,279,16,17,18,19,26,57,58,24,25,28,29,21,22,30,31,20,23,27,143,280,70,32,163,133,63,65,131,48,40,39,49,50,51,173,130,87,61,62,64,59,150,174,219,129,281,247,220]),import.meta.url),"./src/semantic-ui/LazyDocument.stories.js":async()=>t(()=>import("./LazyDocument.stories-HpM-poGd.js"),__vite__mapDeps([282,1,2,3,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,252,33,247,70,131,48,40,39,49,50,51,220,283,7,12,11,279,57,58,143,280,163,133,63,65,219,129,197,284,285]),import.meta.url),"./src/semantic-ui/LazyIIIF.stories.js":async()=>t(()=>import("./LazyIIIF.stories-CfH75RMo.js"),__vite__mapDeps([286,1,2,3,4,5,6,7,8,9,10,11,12,13,14,94,37,38,39,40,16,30,43,70,17,18,19,23,20,21,22,24,25,26,27,28,29,31,32,87,61,62,63,64,59,33,131,48,49,50,51,287,247,278,279,57,58,143,280,163,133,65,173,130,150,174,219,129,281,283,197,284,288,289,290,291,292,293,294,295,152,153,154,220]),import.meta.url),"./src/semantic-ui/LazyImage.stories.js":async()=>t(()=>import("./LazyImage.stories-D_4ZWQi-.js"),__vite__mapDeps([296,1,2,3,42,13,10,43,70,16,17,18,19,23,20,21,22,24,25,26,27,28,29,30,31,32,15,252,220,288,279,57,58,143,280,163,133,63,65,131,48,40,39,49,50,51,219,129,289,130,87,61,62,64,59,150,290,291,285]),import.meta.url),"./src/semantic-ui/LazyMedia.stories.js":async()=>t(()=>import("./LazyMedia.stories-DjiBIJqO.js"),__vite__mapDeps([297,1,2,3,4,5,6,7,8,9,10,11,12,13,14,287,23,16,17,18,19,33,247,70,20,21,22,24,25,26,27,28,29,30,31,32,131,48,40,39,49,50,51,278,279,57,58,143,280,163,133,63,65,173,130,87,61,62,64,59,150,174,219,129,281,283,197,284,288,289,290,291,292,293,294,295,152,153,154,175,220]),import.meta.url),"./src/semantic-ui/LazyVideo.stories.js":async()=>t(()=>import("./LazyVideo.stories-BXIwGNQ6.js"),__vite__mapDeps([298,1,2,3,42,13,10,43,70,16,17,18,19,23,20,21,22,24,25,26,27,28,29,30,31,32,87,61,62,63,64,59,15,252,33,220,247,292,279,57,58,143,280,163,133,65,131,48,40,39,49,50,51,219,129,293,130,150,294,295,285,299]),import.meta.url),"./src/semantic-ui/LinkButton.stories.js":async()=>t(()=>import("./LinkButton.stories-DvQmvDuy.js"),__vite__mapDeps([300,1,2,3,42,13,10,43,4,5,6,7,8,9,11,12,14,238,70,16,17,18,19,23,20,21,22,24,25,26,27,28,29,30,31,32,239]),import.meta.url),"./src/semantic-ui/LinkLabel.stories.js":async()=>t(()=>import("./LinkLabel.stories-t99Urlye.js"),__vite__mapDeps([301,1,2,3,42,13,10,43,4,5,6,7,8,9,11,12,14,69,16,17,18,19,70,23,20,21,22,24,25,26,27,28,29,30,31,32,71,62,63,56,57,58,59,60,61,64,65,72,274,238,239,275]),import.meta.url),"./src/semantic-ui/ListLoader.stories.js":async()=>t(()=>import("./ListLoader.stories-DowEQgW1.js"),__vite__mapDeps([302,1,2,3,4,5,6,7,8,9,10,11,12,13,14,303,143,16,19,163,27,17,18,28,29,21,22,25,30,31,131,48,40,39,49,50,51,304]),import.meta.url),"./src/semantic-ui/ListTable.stories.js":async()=>t(()=>import("./ListTable.stories-DtIRVZyn.js"),__vite__mapDeps([305,1,2,3,42,13,10,43,4,5,6,7,8,9,11,12,14,70,16,17,18,19,23,20,21,22,24,25,26,27,28,29,30,31,32,33,66,74,76,206,207,143,71,62,63,81,61,64,50,40,131,48,39,49,51,56,57,58,59,60,65,208,77,36,37,38,135,136,133,87,137,138,139,80,140,141,142,130,132,134,144,69,72,145,146,147,148,149,150,151,152,153,154,155,209,128,129,157,156,270,34,35,306]),import.meta.url),"./src/semantic-ui/LoginModal.stories.js":async()=>t(()=>import("./LoginModal.stories-DWr4b1eE.js"),__vite__mapDeps([307,1,2,3,42,13,10,43,4,5,6,7,8,9,11,12,14,69,16,17,18,19,70,23,20,21,22,24,25,26,27,28,29,30,31,32,71,62,63,56,57,58,59,60,61,64,65,72,139,130,80,87,131,48,40,39,49,50,51,150,308]),import.meta.url),"./src/semantic-ui/MasonryGrid.stories.js":async()=>t(()=>import("./MasonryGrid.stories-De91Npnf.js"),__vite__mapDeps([309,1,2,3,42,13,10,43,4,5,6,7,8,9,11,12,14,137,16,17,18,32,19,21,22,25,138,64,60,23,29,80,20,24,26,27,28,30,31,143,163,133,63,65,33,259,204,260,310]),import.meta.url),"./src/semantic-ui/MediaGallery.stories.js":async()=>t(()=>import("./MediaGallery.stories-CBjYKsLp.js"),__vite__mapDeps([311,1,2,3,42,13,10,43,4,5,6,7,8,9,11,12,14,70,16,17,18,19,23,20,21,22,24,25,26,27,28,29,30,31,32,143,133,63,65,312,313,293,130,87,61,62,64,59,150,131,48,40,39,49,50,51,294,299,259,204,33,260,314]),import.meta.url),"./src/semantic-ui/MediaGrid.stories.js":async()=>t(()=>import("./MediaGrid.stories-Bc9gy8Ke.js"),__vite__mapDeps([315,1,2,3,42,13,10,43,4,5,6,7,8,9,11,12,14,20,16,17,18,21,22,19,23,24,25,26,27,28,29,30,31,143,33,259,204,260,316]),import.meta.url),"./src/semantic-ui/MediaList.stories.js":async()=>t(()=>import("./MediaList.stories-S0IVrTkH.js"),__vite__mapDeps([317,1,2,3,42,13,10,43,4,5,6,7,8,9,11,12,14,33,66,30,20,16,17,18,21,22,19,23,24,25,26,27,28,29,31,15,32,303,143,163,131,48,40,39,49,50,51,304,312,70,313,259,204,260,318]),import.meta.url),"./src/semantic-ui/MenuBar.stories.js":async()=>t(()=>import("./MenuBar.stories-CIr167Kk.js"),__vite__mapDeps([319,1,2,3,4,5,6,7,8,9,10,11,12,13,14,211,138,16,17,18,32,19,21,22,64,60,23,56,24,25,57,58,59,61,62,63,28,29,30,31,20,26,27,65,33]),import.meta.url),"./src/semantic-ui/MenuSidebar.stories.js":async()=>t(()=>import("./MenuSidebar.stories-BX8IyUbL.js"),__vite__mapDeps([320,1,2,3,4,5,6,7,8,9,10,11,12,13,14,212,138,16,17,18,32,19,21,22,64,60,23,80,20,24,25,26,27,28,29,30,31,33]),import.meta.url),"./src/semantic-ui/ModalDropdown.stories.js":async()=>t(()=>import("./ModalDropdown.stories-B5bQfR-W.js"),__vite__mapDeps([321,1,2,3,69,16,17,18,19,70,23,20,21,22,24,25,26,27,28,29,30,31,32,71,62,63,56,57,58,59,60,61,64,65,72,87,42,13,10,43,131,48,40,39,49,50,51,165,166,83,85,153,154,322]),import.meta.url),"./src/semantic-ui/NestedAccordion.stories.js":async()=>t(()=>import("./NestedAccordion.stories-CyX4Mh_H.js"),__vite__mapDeps([323,1,2,3,42,13,10,43,33,125,70,16,17,18,19,23,20,21,22,24,25,26,27,28,29,30,31,32,126,57,58,127]),import.meta.url),"./src/semantic-ui/PhotoViewer.stories.js":async()=>t(()=>import("./PhotoViewer.stories-gk5YGf4f.js"),__vite__mapDeps([324,1,2,3,42,13,10,43,4,5,6,7,8,9,11,12,14,220,289,130,16,17,18,19,23,32,20,21,22,24,25,26,27,28,29,30,31,87,61,62,63,64,59,70,150,131,48,40,39,49,50,51,290]),import.meta.url),"./src/semantic-ui/PlayButton.stories.js":async()=>t(()=>import("./PlayButton.stories-CzjW6Hiu.js"),__vite__mapDeps([325,1,2,3,312,70,16,17,18,19,23,20,21,22,24,25,26,27,28,29,30,31,32,313,42,13,10,43]),import.meta.url),"./src/semantic-ui/RemoteDropdown.stories.js":async()=>t(()=>import("./RemoteDropdown.stories-D07InO26.js"),__vite__mapDeps([326,1,2,3,4,5,6,7,8,9,10,11,12,13,14,33,157,66,30,23,16,17,18,19,56,24,25,32,57,58,59,60,61,62,63,64,21,22,28,29,31,20,26,27,65,131,48,40,39,49,50,51,327]),import.meta.url),"./src/semantic-ui/SaveButton.stories.js":async()=>t(()=>import("./SaveButton.stories-BrxsFbhP.js"),__vite__mapDeps([328,1,2,3,225,70,16,17,18,19,23,20,21,22,24,25,26,27,28,29,30,31,32,143,131,48,40,39,49,50,51]),import.meta.url),"./src/semantic-ui/SearchBox.stories.js":async()=>t(()=>import("./SearchBox.stories-BOlEbQrI.js"),__vite__mapDeps([329,1,2,3,42,13,10,43,66,30,23,16,17,18,19,72,24,25,32,20,21,22,26,27,28,29,31,70,33]),import.meta.url),"./src/semantic-ui/SearchPagination.stories.js":async()=>t(()=>import("./SearchPagination.stories-CM9aHNHL.js"),__vite__mapDeps([330,1,2,3,42,13,10,43,137,16,17,18,32,19,21,22,25,138,64,60,23,29]),import.meta.url),"./src/semantic-ui/SearchResults.stories.js":async()=>t(()=>import("./SearchResults.stories-BX4iA5fv.js"),__vite__mapDeps([331,1,2,3,204,33,265,66,30,129,143,16,19,131,48,40,39,49,22,18,50,51,266,70,17,23,20,21,24,25,26,27,28,29,31,32,80,163,71,62,63,15,252,135,136,133,65,87,61,64,59,137,138,60,139,140,56,57,58,141,142,74,130,132,134,144,69,72,145,146,147,148,149,150,151,152,153,154,155,128,208,77,36,37,38,267,268]),import.meta.url),"./src/semantic-ui/SearchResultsPerPage.stories.js":async()=>t(()=>import("./SearchResultsPerPage.stories-78x4BMlG.js"),__vite__mapDeps([332,1,2,3,42,13,10,43,33,140,70,16,17,18,19,23,20,21,22,24,25,26,27,28,29,30,31,32,56,57,58,59,60,61,62,63,64,65,141,131,48,40,39,49,50,51]),import.meta.url),"./src/semantic-ui/SearchResultsSort.stories.js":async()=>t(()=>import("./SearchResultsSort.stories-Dm7feu9v.js"),__vite__mapDeps([333,1,2,3,42,13,10,43,33,140,70,16,17,18,19,23,20,21,22,24,25,26,27,28,29,30,31,32,56,57,58,59,60,61,62,63,64,65,141]),import.meta.url),"./src/semantic-ui/SearchStats.stories.js":async()=>t(()=>import("./SearchStats.stories-B03rJ8Fr.js"),__vite__mapDeps([334,1,2,3,131,48,40,39,49,22,18,50,51]),import.meta.url),"./src/semantic-ui/Section.stories.js":async()=>t(()=>import("./Section.stories-r-HnqG6T.js"),__vite__mapDeps([335,1,2,3,204,4,5,6,7,8,9,10,11,12,13,14,33,260,234,16,19,80,23,17,18,20,21,22,24,25,26,27,28,29,30,31]),import.meta.url),"./src/semantic-ui/Selectize.stories.js":async()=>t(()=>import("./Selectize.stories-BVLmnFB-.js"),__vite__mapDeps([336,1,2,3,42,13,10,43,4,5,6,7,8,9,11,12,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,156,87,61,62,63,64,59,70,157,69,71,56,57,58,60,65,72,139,130,207,162,163,164,131,48,40,39,49,50,51,150,128,66,74,129,132,133,134,135,136,137,138,80,140,141,142,143,144,145,146,147,148,149,151,152,153,154,155,259,204,260,337]),import.meta.url),"./src/semantic-ui/SimpleEditPage.stories.js":async()=>t(()=>import("./SimpleEditPage.stories-Bj6FIWsN.js"),__vite__mapDeps([338,1,2,3,42,13,10,43,69,16,17,18,19,70,23,20,21,22,24,25,26,27,28,29,30,31,32,71,62,63,56,57,58,59,60,61,64,65,72,66,78,139,138,130,33,131,48,40,39,49,50,51,132,133,134,339]),import.meta.url),"./src/semantic-ui/StyleSelector.stories.js":async()=>t(()=>import("./StyleSelector.stories-Df3DvZOh.js"),__vite__mapDeps([340,1,2,3,42,13,10,43,184,66,30,56,16,17,18,24,19,25,32,57,58,59,60,61,62,63,64,21,22,28,29,31,23,20,26,27,65,33]),import.meta.url),"./src/semantic-ui/TabbedModal.stories.js":async()=>t(()=>import("./TabbedModal.stories-DpfUK-6Z.js"),__vite__mapDeps([341,1,2,3,4,5,6,7,8,9,10,11,12,13,14,33,229,66,30,78,138,16,17,18,32,19,21,22,64,60,23,80,20,24,25,26,27,28,29,31,87,61,62,63,59,70,150,230]),import.meta.url),"./src/semantic-ui/TabsMenu.stories.js":async()=>t(()=>import("./TabsMenu.stories-CH9RNwn5.js"),__vite__mapDeps([342,1,2,3,42,13,10,43,138,16,17,18,32,19,21,22,64,60,23,33]),import.meta.url),"./src/semantic-ui/TagsList.stories.js":async()=>t(()=>import("./TagsList.stories-DMQkVQiI.js"),__vite__mapDeps([343,1,2,3,4,5,6,7,8,9,10,11,12,13,14,23,16,17,18,19,20,21,22,24,25,26,27,28,29,30,31,33]),import.meta.url),"./src/semantic-ui/Thumbnail.stories.js":async()=>t(()=>import("./Thumbnail.stories-Drk3heeI.js"),__vite__mapDeps([344,1,2,3,4,5,6,7,8,9,10,11,12,13,14,70,16,17,18,19,23,20,21,22,24,25,26,27,28,29,30,31,32,143,288,279,57,58,280,163,133,63,65,131,48,40,39,49,50,51,219,129,289,130,87,61,62,64,59,150,290,291]),import.meta.url),"./src/semantic-ui/Toaster.stories.js":async()=>t(()=>import("./Toaster.stories-BQ_sDuGN.js"),__vite__mapDeps([345,1,2,3,4,5,6,7,8,9,10,11,12,13,14,132,130,16,17,18,19,23,32,133,24,25,26,63,65,33,134]),import.meta.url),"./src/semantic-ui/VideoFrameSelector.stories.js":async()=>t(()=>import("./VideoFrameSelector.stories-C3GxBbP-.js"),__vite__mapDeps([346,1,2,3,292,279,16,17,18,19,26,57,58,24,25,28,29,21,22,30,31,20,23,27,143,280,70,32,163,133,63,65,131,48,40,39,49,50,51,219,129,293,130,87,61,62,64,59,150,294,295,66,139,72,165,166,83,85,153,154,299,347]),import.meta.url),"./src/semantic-ui/VideoPlayer.stories.js":async()=>t(()=>import("./VideoPlayer.stories-CtoWQrA2.js"),__vite__mapDeps([348,1,2,3,42,13,10,43,70,16,17,18,19,23,20,21,22,24,25,26,27,28,29,30,31,32,293,130,87,61,62,63,64,59,150,131,48,40,39,49,50,51,294,299]),import.meta.url),"./src/semantic-ui/ViewXML.stories.js":async()=>t(()=>import("./ViewXML.stories-DBAsHBUp.js"),__vite__mapDeps([349,1,2,3,4,5,6,7,8,9,10,11,12,13,14,238,70,16,17,18,19,23,20,21,22,24,25,26,27,28,29,30,31,32,239,87,61,62,63,64,59,131,48,40,39,49,50,51,150,153,242,85,84]),import.meta.url),"./src/user-defined-fields/UserDefinedFieldsEmbeddedList.stories.js":async()=>t(()=>import("./UserDefinedFieldsEmbeddedList.stories-DM_NRXKE.js"),__vite__mapDeps([350,1,2,3,33,73,66,30,74,75,76,77,36,37,38,39,40,78,351,69,16,17,18,19,70,23,20,21,22,24,25,26,27,28,29,31,32,71,62,63,56,57,58,59,60,61,64,65,72,87,352,67,49,50,51,82,83,84,85,353,35]),import.meta.url),"./src/user-defined-fields/UserDefinedFieldsForm.stories.js":async()=>t(()=>import("./UserDefinedFieldsForm.stories-CpjFfgJc.js"),__vite__mapDeps([354,1,2,3,4,5,6,7,8,9,10,11,12,13,14,69,16,17,18,19,70,23,20,21,22,24,25,26,27,28,29,30,31,32,71,62,63,56,57,58,59,60,61,64,65,72,73,66,74,75,76,77,36,37,38,39,40,78,33,352,67]),import.meta.url),"./src/user-defined-fields/UserDefinedFieldsList.stories.js":async()=>t(()=>import("./UserDefinedFieldsList.stories-D2LZQ5UG.js"),__vite__mapDeps([355,1,2,3,4,5,6,7,8,9,10,11,12,13,14,33,73,66,30,74,75,76,77,36,37,38,39,40,78,351,69,16,17,18,19,70,23,20,21,22,24,25,26,27,28,29,31,32,71,62,63,56,57,58,59,60,61,64,65,72,87,352,67,49,50,51,82,83,84,85,353,35]),import.meta.url),"./src/visualize/TreeGraph.stories.js":async()=>t(()=>import("./TreeGraph.stories-J3v3DI7t.js"),__vite__mapDeps([356,1,2,3,4,5,6,7,8,9,10,11,12,13,14,33,40,49,22,18,50,51,39,82,83,84,85,197,243,357]),import.meta.url)};async function y(o){return P[o]()}const{composeConfigs:T,PreviewWeb:I,ClientApi:D}=__STORYBOOK_MODULE_PREVIEW_API__,A=async()=>{const o=await Promise.all([t(()=>import("./addDecorator-BCpt89nL.js").then(s=>s.a),__vite__mapDeps([358,4,2,3,5,6,7,8,9,10,11,12,13,14]),import.meta.url),t(()=>import("./entry-preview-Dp0xjCR0.js"),__vite__mapDeps([359,2,3,360,30]),import.meta.url),t(()=>import("./entry-preview-docs-nmOPi3-h.js"),__vite__mapDeps([361,362,5,3,197,10,8,195,2]),import.meta.url),t(()=>import("./preview-HMMJgXCc.js"),__vite__mapDeps([]),import.meta.url),t(()=>import("./preview-BaIHkKcy.js"),__vite__mapDeps([363,13,10,43]),import.meta.url),t(()=>import("./preview-VF71Pp15.js"),__vite__mapDeps([]),import.meta.url),t(()=>import("./preview-BUjdUH78.js"),__vite__mapDeps([364,9]),import.meta.url),t(()=>import("./preview-Sz5pvSEA.js"),__vite__mapDeps([365,1,2,3,366,360,30,6,5,7,9,16,22,17,18,51,196,10,362,150,367]),import.meta.url)]);return T(o)};window.__STORYBOOK_PREVIEW__=window.__STORYBOOK_PREVIEW__||new I;window.__STORYBOOK_STORY_STORE__=window.__STORYBOOK_STORY_STORE__||window.__STORYBOOK_PREVIEW__.storyStore;window.__STORYBOOK_CLIENT_API__=window.__STORYBOOK_CLIENT_API__||new D({storyStore:window.__STORYBOOK_PREVIEW__.storyStore});window.__STORYBOOK_PREVIEW__.initialize({importFn:y,getProjectAnnotations:A});export{t as _}; +import"../sb-preview/runtime.js";(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))m(r);new MutationObserver(r=>{for(const i of r)if(i.type==="childList")for(const e of i.addedNodes)e.tagName==="LINK"&&e.rel==="modulepreload"&&m(e)}).observe(document,{childList:!0,subtree:!0});function a(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerPolicy&&(i.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?i.credentials="include":r.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function m(r){if(r.ep)return;r.ep=!0;const i=a(r);fetch(r.href,i)}})();const d="modulepreload",O=function(o,s){return new URL(o,s).href},E={},t=function(s,a,m){let r=Promise.resolve();if(a&&a.length>0){const i=document.getElementsByTagName("link");r=Promise.all(a.map(e=>{if(e=O(e,m),e in E)return;E[e]=!0;const c=e.endsWith(".css"),l=c?'[rel="stylesheet"]':"";if(!!m)for(let u=i.length-1;u>=0;u--){const n=i[u];if(n.href===e&&(!c||n.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${e}"]${l}`))return;const _=document.createElement("link");if(_.rel=c?"stylesheet":d,c||(_.as="script",_.crossOrigin=""),_.href=e,document.head.appendChild(_),c)return new Promise((u,n)=>{_.addEventListener("load",u),_.addEventListener("error",()=>n(new Error(`Unable to preload CSS for ${e}`)))})}))}return r.then(()=>s()).catch(i=>{const e=new Event("vite:preloadError",{cancelable:!0});if(e.payload=i,window.dispatchEvent(e),!e.defaultPrevented)throw i})},{createBrowserChannel:L}=__STORYBOOK_MODULE_CHANNELS__,{addons:R}=__STORYBOOK_MODULE_PREVIEW_API__,p=L({page:"preview"});R.setChannel(p);window.__STORYBOOK_ADDONS_CHANNEL__=p;window.CONFIG_TYPE==="DEVELOPMENT"&&(window.__STORYBOOK_SERVER_CHANNEL__=p);const P={"./src/common/InfiniteScroll.stories.js":async()=>t(()=>import("./InfiniteScroll.stories-D0DEq3pl.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40]),import.meta.url),"./src/common/Keyboard.stories.js":async()=>t(()=>import("./Keyboard.stories-DjAyLjfL.js"),__vite__mapDeps([41,1,2,3,42,13,10,43,4,5,6,7,8,9,11,12,14,44,45]),import.meta.url),"./src/common/RichTextArea.stories.js":async()=>t(()=>import("./RichTextArea.stories-D4EJRtr1.js"),__vite__mapDeps([46,1,2,3,4,5,6,7,8,9,10,11,12,13,14,47,48,40,39,49,22,18,50,51,52]),import.meta.url),"./src/components/Welcome.stories.js":async()=>t(()=>import("./Welcome.stories-CC1xAJ0k.js"),__vite__mapDeps([53,1,2,3]),import.meta.url),"./src/controlled-vocabulary/ReferenceCodeDropdown.stories.js":async()=>t(()=>import("./ReferenceCodeDropdown.stories-Ck_yEqzN.js"),__vite__mapDeps([54,1,2,3,42,13,10,43,4,5,6,7,8,9,11,12,14,55,56,16,17,18,24,19,25,32,57,58,59,60,61,62,63,64,21,22,28,29,30,31,23,20,26,27,65,33,66,67]),import.meta.url),"./src/controlled-vocabulary/ReferenceCodeFormDropdown.stories.js":async()=>t(()=>import("./ReferenceCodeFormDropdown.stories-D95XH1zc.js"),__vite__mapDeps([68,1,2,3,4,5,6,7,8,9,10,11,12,13,14,42,43,69,16,17,18,19,70,23,20,21,22,24,25,26,27,28,29,30,31,32,71,62,63,56,57,58,59,60,61,64,65,72,73,66,74,75,76,77,36,37,38,39,40,78,55,33,67,79,80,81,50,49,51,82,83,84,85,86,87,35]),import.meta.url),"./src/controlled-vocabulary/ReferenceCodeFormLabel.stories.js":async()=>t(()=>import("./ReferenceCodeFormLabel.stories-CynY05BP.js"),__vite__mapDeps([88,1,2,3,4,5,6,7,8,9,10,11,12,13,14,42,43,79,70,16,17,18,19,23,20,21,22,24,25,26,27,28,29,30,31,32,80,81,61,62,63,64,50,40,49,51,39,82,83,84,85,86]),import.meta.url),"./src/core-data/LoadingAnimation.stories.js":async()=>t(()=>import("./LoadingAnimation.stories-B8BvOQTy.js"),__vite__mapDeps([89,1,2,3,90,91]),import.meta.url),"./src/core-data/MediaGallery.stories.js":async()=>t(()=>import("./MediaGallery.stories-DmASKrbc.js"),__vite__mapDeps([92,1,2,3,93,16,94,37,38,39,40,30,12,43,95,96]),import.meta.url),"./src/core-data/PlaceDetailsPanel.stories.js":async()=>t(()=>import("./PlaceDetailsPanel.stories-D7hdR4CN.js"),__vite__mapDeps([97,1,2,3,42,13,10,43,33,98,16,94,37,38,39,40,30,12,99,90,91,100,93,95,96,101,102,103,104,105,106,107]),import.meta.url),"./src/core-data/PlaceMarker.stories.js":async()=>t(()=>import("./PlaceMarker.stories-BHPov8g4.js"),__vite__mapDeps([108,1,2,3,109,30]),import.meta.url),"./src/core-data/PlaceResultsList.stories.js":async()=>t(()=>import("./PlaceResultsList.stories-7ml9P4A4.js"),__vite__mapDeps([110,1,2,3,42,13,10,43,16,22,17,18,33,111]),import.meta.url),"./src/core-data/RelatedItemsList.stories.js":async()=>t(()=>import("./RelatedItemsList.stories-BHOXxMVl.js"),__vite__mapDeps([112,1,2,3,98,16,94,37,38,39,40,30,12,43,33,99,90,91,100,93,95,96,101,102,103,104,105,106]),import.meta.url),"./src/core-data/RelatedList.stories.js":async()=>t(()=>import("./RelatedList.stories-DOikSUmL.js"),__vite__mapDeps([113,1,2,3,102,33]),import.meta.url),"./src/core-data/RelatedMedia.stories.js":async()=>t(()=>import("./RelatedMedia.stories-BMR0cJFV.js"),__vite__mapDeps([114,1,2,3,100,94,37,38,39,40,16,30,12,43,33,93,95,96,107]),import.meta.url),"./src/core-data/RelatedOrganizations.stories.js":async()=>t(()=>import("./RelatedOrganizations.stories-DAaYH5Tq.js"),__vite__mapDeps([115,1,2,3,101,99,102,33,95]),import.meta.url),"./src/core-data/RelatedPeople.stories.js":async()=>t(()=>import("./RelatedPeople.stories-Caf5OgHx.js"),__vite__mapDeps([116,1,2,3,103,99,102,33,95]),import.meta.url),"./src/core-data/RelatedPlaces.stories.js":async()=>t(()=>import("./RelatedPlaces.stories-WOHLYKrm.js"),__vite__mapDeps([117,1,2,3,104,99,102,33,95]),import.meta.url),"./src/core-data/RelatedTaxonimies.stories.js":async()=>t(()=>import("./RelatedTaxonimies.stories-DINnFaB4.js"),__vite__mapDeps([118,1,2,3,105,99,102,33,95]),import.meta.url),"./src/geospatial/LocationMarker.stories.js":async()=>t(()=>import("./LocationMarker.stories-5XR-_M2-.js"),__vite__mapDeps([119,1,2,3,109,30,120]),import.meta.url),"./src/geospatial/MapDraw.stories.js":async()=>t(()=>import("./MapDraw.stories-BDWFoOm2.js"),__vite__mapDeps([121,1,2,3,42,13,10,43,122,30,33,120,123]),import.meta.url),"./src/semantic-ui/AccordionDataList.stories.js":async()=>t(()=>import("./AccordionDataList.stories-wFssQmkQ.js"),__vite__mapDeps([124,1,2,3,42,13,10,43,4,5,6,7,8,9,11,12,14,70,16,17,18,19,23,20,21,22,24,25,26,27,28,29,30,31,32,33,71,62,63,56,57,58,59,60,61,64,65,125,126,127,128,66,74,129,130,72,131,48,40,39,49,50,51,132,133,134,135,136,87,137,138,139,80,140,141,142,143,144,69,145,146,147,148,149,150,151,152,153,154,155,156,157,158]),import.meta.url),"./src/semantic-ui/AccordionList.stories.js":async()=>t(()=>import("./AccordionList.stories-B2Nn7UUD.js"),__vite__mapDeps([159,1,2,3,42,13,10,43,4,5,6,7,8,9,11,12,14,33,70,16,17,18,19,23,20,21,22,24,25,26,27,28,29,30,31,32,66,74,136,133,63,65,87,61,62,64,59,137,138,60,139,130,80,72,71,131,48,40,39,49,50,51,142,143,132,134,144,125,126,57,58,127,156,157,160]),import.meta.url),"./src/semantic-ui/AccordionSelector.stories.js":async()=>t(()=>import("./AccordionSelector.stories-B7uVjHJ9.js"),__vite__mapDeps([161,1,2,3,42,13,10,43,4,5,6,7,8,9,11,12,14,70,16,17,18,19,23,20,21,22,24,25,26,27,28,29,30,31,32,33,66,139,130,80,72,87,61,62,63,64,59,131,48,40,39,49,50,51,142,74,143,132,133,65,134,144,150,125,126,57,58,127,162,163,164,165,166,83,85,153,154,156,157,167]),import.meta.url),"./src/semantic-ui/ArrowButtons.stories.js":async()=>t(()=>import("./ArrowButtons.stories-6z_rtFr4.js"),__vite__mapDeps([168,1,2,3,42,13,10,43,169,70,16,17,18,19,23,20,21,22,24,25,26,27,28,29,30,31,32,170]),import.meta.url),"./src/semantic-ui/AssociatedDropdown.stories.js":async()=>t(()=>import("./AssociatedDropdown.stories-g__EHNPB.js"),__vite__mapDeps([171,1,2,3,42,13,10,43,4,5,6,7,8,9,11,12,14,69,16,17,18,19,70,23,20,21,22,24,25,26,27,28,29,30,31,32,71,62,63,56,57,58,59,60,61,64,65,72,87,156,157,33,145,66,130,142,74,143,132,133,134,131,48,40,39,49,50,51,144,146,47]),import.meta.url),"./src/semantic-ui/AudioPlayer.stories.js":async()=>t(()=>import("./AudioPlayer.stories-C6tTaEgH.js"),__vite__mapDeps([172,1,2,3,42,13,10,43,4,5,6,7,8,9,11,12,14,173,130,16,17,18,19,23,32,70,20,21,22,24,25,26,27,28,29,30,31,87,61,62,63,64,59,131,48,40,39,49,50,51,150,174,175]),import.meta.url),"./src/semantic-ui/BibliographyForm.stories.js":async()=>t(()=>import("./BibliographyForm.stories-CcvFteaz.js"),__vite__mapDeps([176,1,2,3,69,16,17,18,19,70,23,20,21,22,24,25,26,27,28,29,30,31,32,71,62,63,56,57,58,59,60,61,64,65,72,177,33,178,131,48,40,39,49,50,51,179,47]),import.meta.url),"./src/semantic-ui/BibliographyList.stories.js":async()=>t(()=>import("./BibliographyList.stories-Cgz5JvPc.js"),__vite__mapDeps([180,1,2,3,4,5,6,7,8,9,10,11,12,13,14,33,75,66,30,129,139,16,19,130,17,18,23,32,70,20,21,22,24,25,26,27,28,29,31,181,69,71,62,63,56,57,58,59,60,61,64,65,72,87,131,48,40,39,49,50,51,177,178,179,182,183,184,132,133,134,135,136,137,138,80,140,141,142,74,143,144,145,146,147,148,149,150,151,152,153,154,155,185]),import.meta.url),"./src/semantic-ui/BibliographySearchInput.stories.js":async()=>t(()=>import("./BibliographySearchInput.stories-BJT8w4fP.js"),__vite__mapDeps([186,1,2,3,182,70,16,17,18,19,23,20,21,22,24,25,26,27,28,29,30,31,32,72,178,33,131,48,40,39,49,50,51,183]),import.meta.url),"./src/semantic-ui/BooleanIcon.stories.js":async()=>t(()=>import("./BooleanIcon.stories-A0FZb-hn.js"),__vite__mapDeps([187,1,2,3,4,5,6,7,8,9,10,11,12,13,14,23,16,17,18,19]),import.meta.url),"./src/semantic-ui/Breadcrumbs.stories.js":async()=>t(()=>import("./Breadcrumbs.stories-DQEHCwm0.js"),__vite__mapDeps([188,1,2,3,16,19,23,17,18,26,33,143,189]),import.meta.url),"./src/semantic-ui/CancelButton.stories.js":async()=>t(()=>import("./CancelButton.stories-CUiAEb1e.js"),__vite__mapDeps([190,1,2,3,42,13,10,43,4,5,6,7,8,9,11,12,14,191,70,16,17,18,19,23,20,21,22,24,25,26,27,28,29,30,31,32,131,48,40,39,49,50,51]),import.meta.url),"./src/semantic-ui/ColorButton.stories.js":async()=>t(()=>import("./ColorButton.stories-CWP48Pvy.js"),__vite__mapDeps([192,1,2,3,42,13,10,43,4,5,6,7,8,9,11,12,14,70,16,17,18,19,23,20,21,22,24,25,26,27,28,29,30,31,32,193]),import.meta.url),"./src/semantic-ui/ColorPickerModal.stories.js":async()=>t(()=>import("./ColorPickerModal.stories-ea_lVU2T.js"),__vite__mapDeps([194,1,2,3,42,13,10,43,4,5,6,7,8,9,11,12,14,195,196,197,19,16,63,58,62,25,26,32,21,22,17,18,70,23,20,24,27,28,29,30,31,87,61,64,59,131,48,40,39,49,50,51,150,198]),import.meta.url),"./src/semantic-ui/CurrentFacetLabels.stories.js":async()=>t(()=>import("./CurrentFacetLabels.stories-D1YKZNDo.js"),__vite__mapDeps([199,1,2,3,42,13,10,43,200,70,16,17,18,19,23,20,21,22,24,25,26,27,28,29,30,31,32,33]),import.meta.url),"./src/semantic-ui/CurrentFacets.stories.js":async()=>t(()=>import("./CurrentFacets.stories-C4e5WrtH.js"),__vite__mapDeps([201,1,2,3,42,13,10,43,4,5,6,7,8,9,11,12,14,33,200,70,16,17,18,19,23,20,21,22,24,25,26,27,28,29,30,31,32,202,87,61,62,63,64,59,131,48,40,39,49,50,51]),import.meta.url),"./src/semantic-ui/CurrentFacetsModal.stories.js":async()=>t(()=>import("./CurrentFacetsModal.stories-CSfpaeZO.js"),__vite__mapDeps([203,1,2,3,204,42,13,10,43,70,16,17,18,19,23,20,21,22,24,25,26,27,28,29,30,31,32,33,202,87,61,62,63,64,59,200,131,48,40,39,49,50,51]),import.meta.url),"./src/semantic-ui/DataTable.stories.js":async()=>t(()=>import("./DataTable.stories-CTK1Iy3Y.js"),__vite__mapDeps([205,1,2,3,42,13,10,43,4,5,6,7,8,9,11,12,14,136,16,17,18,133,24,19,25,26,63,65,70,23,20,21,22,27,28,29,30,31,32,87,61,62,64,59,80,206,66,74,207,143,71,81,50,40,33,131,48,39,49,51,56,57,58,60,208,77,36,37,38,135,137,138,139,140,141,142,130,132,134,144,69,72,145,146,147,148,149,150,151,152,153,154,155,209,35]),import.meta.url),"./src/semantic-ui/DataView.stories.js":async()=>t(()=>import("./DataView.stories-DfiwRonR.js"),__vite__mapDeps([210,1,2,3,4,5,6,7,8,9,10,11,12,13,14,33,69,16,17,18,19,70,23,20,21,22,24,25,26,27,28,29,30,31,32,71,62,63,56,57,58,59,60,61,64,65,72,139,87,206,66,74,207,143,81,50,40,131,48,39,49,51,208,77,36,37,38,135,136,133,137,138,80,140,141,142,130,132,134,144,145,146,147,148,149,150,151,152,153,154,155,209,211,212,128,129,35,213]),import.meta.url),"./src/semantic-ui/DateInput.stories.js":async()=>t(()=>import("./DateInput.stories-4-GxLJEq.js"),__vite__mapDeps([214,1,2,3,42,13,10,43,148,23,16,17,18,19,72,24,25,32,20,21,22,26,27,28,29,30,31,70,149]),import.meta.url),"./src/semantic-ui/DatePicker.stories.js":async()=>t(()=>import("./DatePicker.stories-Xuif5Nsn.js"),__vite__mapDeps([215,1,2,3,69,16,17,18,19,70,23,20,21,22,24,25,26,27,28,29,30,31,32,71,62,63,56,57,58,59,60,61,64,65,72,197,133,148,149,216]),import.meta.url),"./src/semantic-ui/DescriptorField.stories.js":async()=>t(()=>import("./DescriptorField.stories-TnftbNSB.js"),__vite__mapDeps([217,1,2,3,4,5,6,7,8,9,10,11,12,13,14,81,16,17,18,19,21,22,61,62,63,64,24,25,28,29,30,31,50,40]),import.meta.url),"./src/semantic-ui/DownloadButton.stories.js":async()=>t(()=>import("./DownloadButton.stories-Dq58DhJz.js"),__vite__mapDeps([218,1,2,3,219,129,23,16,17,18,19,131,48,40,39,49,22,50,51,220]),import.meta.url),"./src/semantic-ui/DropdownButton.stories.js":async()=>t(()=>import("./DropdownButton.stories-B5fLHKVw.js"),__vite__mapDeps([221,1,2,3,33,140,70,16,17,18,19,23,20,21,22,24,25,26,27,28,29,30,31,32,56,57,58,59,60,61,62,63,64,65,141]),import.meta.url),"./src/semantic-ui/EditModal.stories.js":async()=>t(()=>import("./EditModal.stories-hrnq1AGc.js"),__vite__mapDeps([222,1,2,3,42,13,10,43,4,5,6,7,8,9,11,12,14,69,16,17,18,19,70,23,20,21,22,24,25,26,27,28,29,30,31,32,71,62,63,56,57,58,59,60,61,64,65,72,130,87,33,156,157,145,66,142,74,143,132,133,134,131,48,40,39,49,50,51,144,146,223]),import.meta.url),"./src/semantic-ui/EditPage.stories.js":async()=>t(()=>import("./EditPage.stories-ufc0BTYY.js"),__vite__mapDeps([224,1,2,3,42,13,10,43,4,5,6,7,8,9,11,12,14,69,16,17,18,19,70,23,20,21,22,24,25,26,27,28,29,30,31,32,71,62,63,56,57,58,59,60,61,64,65,72,33,156,87,157,145,66,130,142,74,143,132,133,134,131,48,40,39,49,50,51,144,146,138,191,225,223,226]),import.meta.url),"./src/semantic-ui/EmbeddedList.stories.js":async()=>t(()=>import("./EmbeddedList.stories-bBwQoxqi.js"),__vite__mapDeps([227,1,2,3,42,13,10,43,4,5,6,7,8,9,11,12,14,70,16,17,18,19,23,20,21,22,24,25,26,27,28,29,30,31,32,228,33,156,87,61,62,63,64,59,142,66,74,130,143,132,133,65,134,131,48,40,39,49,50,51,144,207,129,206,71,81,56,57,58,60,208,77,36,37,38,135,136,137,138,139,80,140,141,69,72,145,146,147,148,149,150,151,152,153,154,155,209,229,78,230,35,231]),import.meta.url),"./src/semantic-ui/Facet.stories.js":async()=>t(()=>import("./Facet.stories-DUMUgu3A.js"),__vite__mapDeps([232,1,2,3,4,5,6,7,8,9,10,11,12,13,14,69,16,17,18,19,70,23,20,21,22,24,25,26,27,28,29,30,31,32,71,62,63,56,57,58,59,60,61,64,65,72,233,234,80,126,235]),import.meta.url),"./src/semantic-ui/FacetClearButton.stories.js":async()=>t(()=>import("./FacetClearButton.stories-CRsWt0-5.js"),__vite__mapDeps([236,1,2,3,42,13,10,43,70,16,17,18,19,23,20,21,22,24,25,26,27,28,29,30,31,32]),import.meta.url),"./src/semantic-ui/FacetList.stories.js":async()=>t(()=>import("./FacetList.stories-BJStJSuq.js"),__vite__mapDeps([237,1,2,3,42,13,10,43,70,16,17,18,19,23,20,21,22,24,25,26,27,28,29,30,31,32,66,72,181,71,62,63,33,233,234,80,126,57,58,235,131,48,40,39,49,50,51,238,239,240]),import.meta.url),"./src/semantic-ui/FacetSlider.stories.js":async()=>t(()=>import("./FacetSlider.stories-BiwZqbBY.js"),__vite__mapDeps([241,1,2,3,42,13,10,43,38,39,40,242,85,84,166,83,243,16,153,31,139,19,233,234,80,23,17,18,20,21,22,24,25,26,27,28,29,30,126,32,57,58,235,244]),import.meta.url),"./src/semantic-ui/FacetToggle.stories.js":async()=>t(()=>import("./FacetToggle.stories-CslYGx8N.js"),__vite__mapDeps([245,1,2,3,20,16,17,18,21,22,19,23,24,25,26,27,28,29,30,31,71,62,63,233,234,80,126,32,57,58,235]),import.meta.url),"./src/semantic-ui/FileInputButton.stories.js":async()=>t(()=>import("./FileInputButton.stories-DkjMC3bF.js"),__vite__mapDeps([246,1,2,3,42,13,10,43,4,5,6,7,8,9,11,12,14,247,70,16,17,18,19,23,20,21,22,24,25,26,27,28,29,30,31,32]),import.meta.url),"./src/semantic-ui/FileUpload.stories.js":async()=>t(()=>import("./FileUpload.stories-CFBNM96l.js"),__vite__mapDeps([248,1,2,3,42,13,10,43,249,130,16,17,18,19,23,32,33,131,48,40,39,49,22,50,51,152,153,31,154,250]),import.meta.url),"./src/semantic-ui/FileUploadModal.stories.js":async()=>t(()=>import("./FileUploadModal.stories-BzS2eTOQ.js"),__vite__mapDeps([251,1,2,3,42,13,10,43,69,16,17,18,19,70,23,20,21,22,24,25,26,27,28,29,30,31,32,71,62,63,56,57,58,59,60,61,64,65,72,252,130,143,87,33,249,131,48,40,39,49,50,51,152,153,154,250,80,150,253]),import.meta.url),"./src/semantic-ui/FuzzyDate.stories.js":async()=>t(()=>import("./FuzzyDate.stories-OLsqeBX2.js"),__vite__mapDeps([254,1,2,3,42,13,10,43,4,5,6,7,8,9,11,12,14,69,16,17,18,19,70,23,20,21,22,24,25,26,27,28,29,30,31,32,71,62,63,56,57,58,59,60,61,64,65,72,169,170,147,66,87,33,131,48,40,39,49,50,51,148,149,150,151]),import.meta.url),"./src/semantic-ui/GoogleMap.stories.js":async()=>t(()=>import("./GoogleMap.stories-fMrtMxUY.js"),__vite__mapDeps([255,1,2,3,69,16,17,18,19,70,23,20,21,22,24,25,26,27,28,29,30,31,32,71,62,63,56,57,58,59,60,61,64,65,72,122,66,256]),import.meta.url),"./src/semantic-ui/GooglePlacesSearch.stories.js":async()=>t(()=>import("./GooglePlacesSearch.stories-BVzZ_7G6.js"),__vite__mapDeps([257,1,2,3,42,13,10,43,69,16,17,18,19,70,23,20,21,22,24,25,26,27,28,29,30,31,32,71,62,63,56,57,58,59,60,61,64,65,72,122,256,33]),import.meta.url),"./src/semantic-ui/HorizontalCards.stories.js":async()=>t(()=>import("./HorizontalCards.stories-ClzFpanE.js"),__vite__mapDeps([258,1,2,3,42,13,10,43,4,5,6,7,8,9,11,12,14,33,70,16,17,18,19,23,20,21,22,24,25,26,27,28,29,30,31,32,80,15,208,77,36,37,38,39,40,35,259,204,260,261]),import.meta.url),"./src/semantic-ui/ImageCarousel.stories.js":async()=>t(()=>import("./ImageCarousel.stories-DkLbCkZL.js"),__vite__mapDeps([262,1,2,3,70,16,17,18,19,23,20,21,22,24,25,26,27,28,29,30,31,32,33,139,143,133,63,65,259,204,260,263]),import.meta.url),"./src/semantic-ui/ItemCollection.stories.js":async()=>t(()=>import("./ItemCollection.stories-BSCcZdOP.js"),__vite__mapDeps([264,1,2,3,42,13,10,43,4,5,6,7,8,9,11,12,14,70,16,17,18,19,23,20,21,22,24,25,26,27,28,29,30,31,32,228,80,56,57,58,59,60,61,62,63,64,65,33,156,87,142,66,74,130,143,132,133,134,131,48,40,39,49,50,51,144,265,129,266,163,71,15,252,135,136,137,138,139,140,141,69,72,145,146,147,148,149,150,151,152,153,154,155,128,208,77,36,37,38,267,268,229,78,230,35]),import.meta.url),"./src/semantic-ui/ItemList.stories.js":async()=>t(()=>import("./ItemList.stories-CCEc8kOI.js"),__vite__mapDeps([269,1,2,3,42,13,10,43,4,5,6,7,8,9,11,12,14,70,16,17,18,19,23,20,21,22,24,25,26,27,28,29,30,31,32,80,33,156,87,61,62,63,64,59,157,143,131,48,40,39,49,50,51,266,163,71,15,252,135,136,133,65,137,138,60,139,140,56,57,58,141,142,66,74,130,132,134,144,69,72,145,146,147,148,149,150,151,152,153,154,155,128,129,208,77,36,37,38,267,34,270,35]),import.meta.url),"./src/semantic-ui/Items.stories.js":async()=>t(()=>import("./Items.stories-0TRTJ2fu.js"),__vite__mapDeps([271,1,2,3,42,13,10,43,4,5,6,7,8,9,11,12,14,136,16,17,18,133,24,19,25,26,63,65,70,23,20,21,22,27,28,29,30,31,32,87,61,62,64,59,80,33,266,163,71,15,252,131,48,40,39,49,50,51,135,137,138,60,139,140,56,57,58,141,142,66,74,130,143,132,134,144,69,72,145,146,147,148,149,150,151,152,153,154,155,128,129,208,77,36,37,38,267,220,35]),import.meta.url),"./src/semantic-ui/KeyValuePairs.stories.js":async()=>t(()=>import("./KeyValuePairs.stories-CADmdGs7.js"),__vite__mapDeps([272,1,2,3,4,5,6,7,8,9,10,11,12,13,14,139,16,19,70,17,18,23,20,21,22,24,25,26,27,28,29,30,31,32,72,33,131,48,40,39,49,50,51]),import.meta.url),"./src/semantic-ui/KeyboardField.stories.js":async()=>t(()=>import("./KeyboardField.stories-BK0kPuM7.js"),__vite__mapDeps([273,1,2,3,4,5,6,7,8,9,10,11,12,13,14,69,16,17,18,19,70,23,20,21,22,24,25,26,27,28,29,30,31,32,71,62,63,56,57,58,59,60,61,64,65,72,44,66,163,133,131,48,40,39,49,50,51,274,238,239,275,276]),import.meta.url),"./src/semantic-ui/LazyAudio.stories.js":async()=>t(()=>import("./LazyAudio.stories-DGlBZPrC.js"),__vite__mapDeps([277,1,2,3,4,5,6,7,8,9,10,11,12,13,14,33,175,278,279,16,17,18,19,26,57,58,24,25,28,29,21,22,30,31,20,23,27,143,280,70,32,163,133,63,65,131,48,40,39,49,50,51,173,130,87,61,62,64,59,150,174,219,129,281,247,220]),import.meta.url),"./src/semantic-ui/LazyDocument.stories.js":async()=>t(()=>import("./LazyDocument.stories-HpM-poGd.js"),__vite__mapDeps([282,1,2,3,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,252,33,247,70,131,48,40,39,49,50,51,220,283,7,12,11,279,57,58,143,280,163,133,63,65,219,129,197,284,285]),import.meta.url),"./src/semantic-ui/LazyIIIF.stories.js":async()=>t(()=>import("./LazyIIIF.stories-DKyyWUeS.js"),__vite__mapDeps([286,1,2,3,4,5,6,7,8,9,10,11,12,13,14,94,37,38,39,40,16,30,43,70,17,18,19,23,20,21,22,24,25,26,27,28,29,31,32,87,61,62,63,64,59,33,131,48,49,50,51,287,247,278,279,57,58,143,280,163,133,65,173,130,150,174,219,129,281,283,197,284,288,289,290,291,292,293,294,295,152,153,154,220]),import.meta.url),"./src/semantic-ui/LazyImage.stories.js":async()=>t(()=>import("./LazyImage.stories-D_4ZWQi-.js"),__vite__mapDeps([296,1,2,3,42,13,10,43,70,16,17,18,19,23,20,21,22,24,25,26,27,28,29,30,31,32,15,252,220,288,279,57,58,143,280,163,133,63,65,131,48,40,39,49,50,51,219,129,289,130,87,61,62,64,59,150,290,291,285]),import.meta.url),"./src/semantic-ui/LazyMedia.stories.js":async()=>t(()=>import("./LazyMedia.stories-s5JqQB64.js"),__vite__mapDeps([297,1,2,3,4,5,6,7,8,9,10,11,12,13,14,287,23,16,17,18,19,33,247,70,20,21,22,24,25,26,27,28,29,30,31,32,131,48,40,39,49,50,51,278,279,57,58,143,280,163,133,63,65,173,130,87,61,62,64,59,150,174,219,129,281,283,197,284,288,289,290,291,292,293,294,295,152,153,154,175,220]),import.meta.url),"./src/semantic-ui/LazyVideo.stories.js":async()=>t(()=>import("./LazyVideo.stories-BXIwGNQ6.js"),__vite__mapDeps([298,1,2,3,42,13,10,43,70,16,17,18,19,23,20,21,22,24,25,26,27,28,29,30,31,32,87,61,62,63,64,59,15,252,33,220,247,292,279,57,58,143,280,163,133,65,131,48,40,39,49,50,51,219,129,293,130,150,294,295,285,299]),import.meta.url),"./src/semantic-ui/LinkButton.stories.js":async()=>t(()=>import("./LinkButton.stories-De_2Ejvz.js"),__vite__mapDeps([300,1,2,3,42,13,10,43,4,5,6,7,8,9,11,12,14,238,70,16,17,18,19,23,20,21,22,24,25,26,27,28,29,30,31,32,239]),import.meta.url),"./src/semantic-ui/LinkLabel.stories.js":async()=>t(()=>import("./LinkLabel.stories-CBgMoLWU.js"),__vite__mapDeps([301,1,2,3,42,13,10,43,4,5,6,7,8,9,11,12,14,69,16,17,18,19,70,23,20,21,22,24,25,26,27,28,29,30,31,32,71,62,63,56,57,58,59,60,61,64,65,72,274,238,239,275]),import.meta.url),"./src/semantic-ui/ListLoader.stories.js":async()=>t(()=>import("./ListLoader.stories-C2lJEZ2u.js"),__vite__mapDeps([302,1,2,3,4,5,6,7,8,9,10,11,12,13,14,303,143,16,19,163,27,17,18,28,29,21,22,25,30,31,131,48,40,39,49,50,51,304]),import.meta.url),"./src/semantic-ui/ListTable.stories.js":async()=>t(()=>import("./ListTable.stories-CtO5CSDj.js"),__vite__mapDeps([305,1,2,3,42,13,10,43,4,5,6,7,8,9,11,12,14,70,16,17,18,19,23,20,21,22,24,25,26,27,28,29,30,31,32,33,66,74,76,206,207,143,71,62,63,81,61,64,50,40,131,48,39,49,51,56,57,58,59,60,65,208,77,36,37,38,135,136,133,87,137,138,139,80,140,141,142,130,132,134,144,69,72,145,146,147,148,149,150,151,152,153,154,155,209,128,129,157,156,270,34,35,306]),import.meta.url),"./src/semantic-ui/LoginModal.stories.js":async()=>t(()=>import("./LoginModal.stories-6RES0UQe.js"),__vite__mapDeps([307,1,2,3,42,13,10,43,4,5,6,7,8,9,11,12,14,69,16,17,18,19,70,23,20,21,22,24,25,26,27,28,29,30,31,32,71,62,63,56,57,58,59,60,61,64,65,72,139,130,80,87,131,48,40,39,49,50,51,150,308]),import.meta.url),"./src/semantic-ui/MasonryGrid.stories.js":async()=>t(()=>import("./MasonryGrid.stories-ClYaSA_D.js"),__vite__mapDeps([309,1,2,3,42,13,10,43,4,5,6,7,8,9,11,12,14,137,16,17,18,32,19,21,22,25,138,64,60,23,29,80,20,24,26,27,28,30,31,143,163,133,63,65,33,259,204,260,310]),import.meta.url),"./src/semantic-ui/MediaGallery.stories.js":async()=>t(()=>import("./MediaGallery.stories-Dk6XSlqM.js"),__vite__mapDeps([311,1,2,3,42,13,10,43,4,5,6,7,8,9,11,12,14,70,16,17,18,19,23,20,21,22,24,25,26,27,28,29,30,31,32,143,133,63,65,312,313,293,130,87,61,62,64,59,150,131,48,40,39,49,50,51,294,299,259,204,33,260,314]),import.meta.url),"./src/semantic-ui/MediaGrid.stories.js":async()=>t(()=>import("./MediaGrid.stories-GwQ2NQWv.js"),__vite__mapDeps([315,1,2,3,42,13,10,43,4,5,6,7,8,9,11,12,14,20,16,17,18,21,22,19,23,24,25,26,27,28,29,30,31,143,33,259,204,260,316]),import.meta.url),"./src/semantic-ui/MediaList.stories.js":async()=>t(()=>import("./MediaList.stories-DgcimUF5.js"),__vite__mapDeps([317,1,2,3,42,13,10,43,4,5,6,7,8,9,11,12,14,33,66,30,20,16,17,18,21,22,19,23,24,25,26,27,28,29,31,15,32,303,143,163,131,48,40,39,49,50,51,304,312,70,313,259,204,260,318]),import.meta.url),"./src/semantic-ui/MenuBar.stories.js":async()=>t(()=>import("./MenuBar.stories-CfUdm4UC.js"),__vite__mapDeps([319,1,2,3,4,5,6,7,8,9,10,11,12,13,14,211,138,16,17,18,32,19,21,22,64,60,23,56,24,25,57,58,59,61,62,63,28,29,30,31,20,26,27,65,33]),import.meta.url),"./src/semantic-ui/MenuSidebar.stories.js":async()=>t(()=>import("./MenuSidebar.stories-DtSfMTeW.js"),__vite__mapDeps([320,1,2,3,4,5,6,7,8,9,10,11,12,13,14,212,138,16,17,18,32,19,21,22,64,60,23,80,20,24,25,26,27,28,29,30,31,33]),import.meta.url),"./src/semantic-ui/ModalDropdown.stories.js":async()=>t(()=>import("./ModalDropdown.stories-B5bQfR-W.js"),__vite__mapDeps([321,1,2,3,69,16,17,18,19,70,23,20,21,22,24,25,26,27,28,29,30,31,32,71,62,63,56,57,58,59,60,61,64,65,72,87,42,13,10,43,131,48,40,39,49,50,51,165,166,83,85,153,154,322]),import.meta.url),"./src/semantic-ui/NestedAccordion.stories.js":async()=>t(()=>import("./NestedAccordion.stories-CyX4Mh_H.js"),__vite__mapDeps([323,1,2,3,42,13,10,43,33,125,70,16,17,18,19,23,20,21,22,24,25,26,27,28,29,30,31,32,126,57,58,127]),import.meta.url),"./src/semantic-ui/PhotoViewer.stories.js":async()=>t(()=>import("./PhotoViewer.stories-xrB9Oh9v.js"),__vite__mapDeps([324,1,2,3,42,13,10,43,4,5,6,7,8,9,11,12,14,220,289,130,16,17,18,19,23,32,20,21,22,24,25,26,27,28,29,30,31,87,61,62,63,64,59,70,150,131,48,40,39,49,50,51,290]),import.meta.url),"./src/semantic-ui/PlayButton.stories.js":async()=>t(()=>import("./PlayButton.stories-CzjW6Hiu.js"),__vite__mapDeps([325,1,2,3,312,70,16,17,18,19,23,20,21,22,24,25,26,27,28,29,30,31,32,313,42,13,10,43]),import.meta.url),"./src/semantic-ui/RemoteDropdown.stories.js":async()=>t(()=>import("./RemoteDropdown.stories-qMaNCn_X.js"),__vite__mapDeps([326,1,2,3,4,5,6,7,8,9,10,11,12,13,14,33,157,66,30,23,16,17,18,19,56,24,25,32,57,58,59,60,61,62,63,64,21,22,28,29,31,20,26,27,65,131,48,40,39,49,50,51,327]),import.meta.url),"./src/semantic-ui/SaveButton.stories.js":async()=>t(()=>import("./SaveButton.stories-BrxsFbhP.js"),__vite__mapDeps([328,1,2,3,225,70,16,17,18,19,23,20,21,22,24,25,26,27,28,29,30,31,32,143,131,48,40,39,49,50,51]),import.meta.url),"./src/semantic-ui/SearchBox.stories.js":async()=>t(()=>import("./SearchBox.stories-Cu50ctA9.js"),__vite__mapDeps([329,1,2,3,42,13,10,43,66,30,23,16,17,18,19,72,24,25,32,20,21,22,26,27,28,29,31,70,33]),import.meta.url),"./src/semantic-ui/SearchPagination.stories.js":async()=>t(()=>import("./SearchPagination.stories-CM9aHNHL.js"),__vite__mapDeps([330,1,2,3,42,13,10,43,137,16,17,18,32,19,21,22,25,138,64,60,23,29]),import.meta.url),"./src/semantic-ui/SearchResults.stories.js":async()=>t(()=>import("./SearchResults.stories-Cx4fvBXa.js"),__vite__mapDeps([331,1,2,3,204,33,265,66,30,129,143,16,19,131,48,40,39,49,22,18,50,51,266,70,17,23,20,21,24,25,26,27,28,29,31,32,80,163,71,62,63,15,252,135,136,133,65,87,61,64,59,137,138,60,139,140,56,57,58,141,142,74,130,132,134,144,69,72,145,146,147,148,149,150,151,152,153,154,155,128,208,77,36,37,38,267,268]),import.meta.url),"./src/semantic-ui/SearchResultsPerPage.stories.js":async()=>t(()=>import("./SearchResultsPerPage.stories-78x4BMlG.js"),__vite__mapDeps([332,1,2,3,42,13,10,43,33,140,70,16,17,18,19,23,20,21,22,24,25,26,27,28,29,30,31,32,56,57,58,59,60,61,62,63,64,65,141,131,48,40,39,49,50,51]),import.meta.url),"./src/semantic-ui/SearchResultsSort.stories.js":async()=>t(()=>import("./SearchResultsSort.stories-Dm7feu9v.js"),__vite__mapDeps([333,1,2,3,42,13,10,43,33,140,70,16,17,18,19,23,20,21,22,24,25,26,27,28,29,30,31,32,56,57,58,59,60,61,62,63,64,65,141]),import.meta.url),"./src/semantic-ui/SearchStats.stories.js":async()=>t(()=>import("./SearchStats.stories-B03rJ8Fr.js"),__vite__mapDeps([334,1,2,3,131,48,40,39,49,22,18,50,51]),import.meta.url),"./src/semantic-ui/Section.stories.js":async()=>t(()=>import("./Section.stories-CLrupiGc.js"),__vite__mapDeps([335,1,2,3,204,4,5,6,7,8,9,10,11,12,13,14,33,260,234,16,19,80,23,17,18,20,21,22,24,25,26,27,28,29,30,31]),import.meta.url),"./src/semantic-ui/Selectize.stories.js":async()=>t(()=>import("./Selectize.stories-CM1OQmv5.js"),__vite__mapDeps([336,1,2,3,42,13,10,43,4,5,6,7,8,9,11,12,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,156,87,61,62,63,64,59,70,157,69,71,56,57,58,60,65,72,139,130,207,162,163,164,131,48,40,39,49,50,51,150,128,66,74,129,132,133,134,135,136,137,138,80,140,141,142,143,144,145,146,147,148,149,151,152,153,154,155,259,204,260,337]),import.meta.url),"./src/semantic-ui/SimpleEditPage.stories.js":async()=>t(()=>import("./SimpleEditPage.stories-Cii-WvJK.js"),__vite__mapDeps([338,1,2,3,42,13,10,43,69,16,17,18,19,70,23,20,21,22,24,25,26,27,28,29,30,31,32,71,62,63,56,57,58,59,60,61,64,65,72,66,78,139,138,130,33,131,48,40,39,49,50,51,132,133,134,339]),import.meta.url),"./src/semantic-ui/StyleSelector.stories.js":async()=>t(()=>import("./StyleSelector.stories-Li21fODd.js"),__vite__mapDeps([340,1,2,3,42,13,10,43,184,66,30,56,16,17,18,24,19,25,32,57,58,59,60,61,62,63,64,21,22,28,29,31,23,20,26,27,65,33]),import.meta.url),"./src/semantic-ui/TabbedModal.stories.js":async()=>t(()=>import("./TabbedModal.stories-eaOd302G.js"),__vite__mapDeps([341,1,2,3,4,5,6,7,8,9,10,11,12,13,14,33,229,66,30,78,138,16,17,18,32,19,21,22,64,60,23,80,20,24,25,26,27,28,29,31,87,61,62,63,59,70,150,230]),import.meta.url),"./src/semantic-ui/TabsMenu.stories.js":async()=>t(()=>import("./TabsMenu.stories-CH9RNwn5.js"),__vite__mapDeps([342,1,2,3,42,13,10,43,138,16,17,18,32,19,21,22,64,60,23,33]),import.meta.url),"./src/semantic-ui/TagsList.stories.js":async()=>t(()=>import("./TagsList.stories-agq51TaR.js"),__vite__mapDeps([343,1,2,3,4,5,6,7,8,9,10,11,12,13,14,23,16,17,18,19,20,21,22,24,25,26,27,28,29,30,31,33]),import.meta.url),"./src/semantic-ui/Thumbnail.stories.js":async()=>t(()=>import("./Thumbnail.stories-Dsr1I8K4.js"),__vite__mapDeps([344,1,2,3,4,5,6,7,8,9,10,11,12,13,14,70,16,17,18,19,23,20,21,22,24,25,26,27,28,29,30,31,32,143,288,279,57,58,280,163,133,63,65,131,48,40,39,49,50,51,219,129,289,130,87,61,62,64,59,150,290,291]),import.meta.url),"./src/semantic-ui/Toaster.stories.js":async()=>t(()=>import("./Toaster.stories-q1-Mw20P.js"),__vite__mapDeps([345,1,2,3,4,5,6,7,8,9,10,11,12,13,14,132,130,16,17,18,19,23,32,133,24,25,26,63,65,33,134]),import.meta.url),"./src/semantic-ui/VideoFrameSelector.stories.js":async()=>t(()=>import("./VideoFrameSelector.stories-YwgL8X05.js"),__vite__mapDeps([346,1,2,3,292,279,16,17,18,19,26,57,58,24,25,28,29,21,22,30,31,20,23,27,143,280,70,32,163,133,63,65,131,48,40,39,49,50,51,219,129,293,130,87,61,62,64,59,150,294,295,66,139,72,165,166,83,85,153,154,299,347]),import.meta.url),"./src/semantic-ui/VideoPlayer.stories.js":async()=>t(()=>import("./VideoPlayer.stories-CtoWQrA2.js"),__vite__mapDeps([348,1,2,3,42,13,10,43,70,16,17,18,19,23,20,21,22,24,25,26,27,28,29,30,31,32,293,130,87,61,62,63,64,59,150,131,48,40,39,49,50,51,294,299]),import.meta.url),"./src/semantic-ui/ViewXML.stories.js":async()=>t(()=>import("./ViewXML.stories-hMIo-utb.js"),__vite__mapDeps([349,1,2,3,4,5,6,7,8,9,10,11,12,13,14,238,70,16,17,18,19,23,20,21,22,24,25,26,27,28,29,30,31,32,239,87,61,62,63,64,59,131,48,40,39,49,50,51,150,153,242,85,84]),import.meta.url),"./src/user-defined-fields/UserDefinedFieldsEmbeddedList.stories.js":async()=>t(()=>import("./UserDefinedFieldsEmbeddedList.stories-1FZnZWe_.js"),__vite__mapDeps([350,1,2,3,33,73,66,30,74,75,76,77,36,37,38,39,40,78,351,69,16,17,18,19,70,23,20,21,22,24,25,26,27,28,29,31,32,71,62,63,56,57,58,59,60,61,64,65,72,87,352,67,49,50,51,82,83,84,85,353,35]),import.meta.url),"./src/user-defined-fields/UserDefinedFieldsForm.stories.js":async()=>t(()=>import("./UserDefinedFieldsForm.stories-uT98ow-F.js"),__vite__mapDeps([354,1,2,3,4,5,6,7,8,9,10,11,12,13,14,69,16,17,18,19,70,23,20,21,22,24,25,26,27,28,29,30,31,32,71,62,63,56,57,58,59,60,61,64,65,72,73,66,74,75,76,77,36,37,38,39,40,78,33,352,67]),import.meta.url),"./src/user-defined-fields/UserDefinedFieldsList.stories.js":async()=>t(()=>import("./UserDefinedFieldsList.stories-D-sB7oYT.js"),__vite__mapDeps([355,1,2,3,4,5,6,7,8,9,10,11,12,13,14,33,73,66,30,74,75,76,77,36,37,38,39,40,78,351,69,16,17,18,19,70,23,20,21,22,24,25,26,27,28,29,31,32,71,62,63,56,57,58,59,60,61,64,65,72,87,352,67,49,50,51,82,83,84,85,353,35]),import.meta.url),"./src/visualize/TreeGraph.stories.js":async()=>t(()=>import("./TreeGraph.stories-ByOW_9Dh.js"),__vite__mapDeps([356,1,2,3,4,5,6,7,8,9,10,11,12,13,14,33,40,49,22,18,50,51,39,82,83,84,85,197,243,357]),import.meta.url)};async function y(o){return P[o]()}const{composeConfigs:T,PreviewWeb:I,ClientApi:D}=__STORYBOOK_MODULE_PREVIEW_API__,A=async()=>{const o=await Promise.all([t(()=>import("./addDecorator-ntFu4QYE.js").then(s=>s.a),__vite__mapDeps([358,4,2,3,5,6,7,8,9,10,11,12,13,14]),import.meta.url),t(()=>import("./entry-preview-Dp0xjCR0.js"),__vite__mapDeps([359,2,3,360,30]),import.meta.url),t(()=>import("./entry-preview-docs-CffAHyOy.js"),__vite__mapDeps([361,362,5,3,197,10,8,195,2]),import.meta.url),t(()=>import("./preview-ZhVzadk2.js"),__vite__mapDeps([]),import.meta.url),t(()=>import("./preview-BaIHkKcy.js"),__vite__mapDeps([363,13,10,43]),import.meta.url),t(()=>import("./preview-ClejsdtK.js"),__vite__mapDeps([]),import.meta.url),t(()=>import("./preview-BUjdUH78.js"),__vite__mapDeps([364,9]),import.meta.url),t(()=>import("./preview-VCSZH52V.js"),__vite__mapDeps([365,1,2,3,366,360,30,6,5,7,9,16,22,17,18,51,196,10,362,150,367]),import.meta.url)]);return T(o)};window.__STORYBOOK_PREVIEW__=window.__STORYBOOK_PREVIEW__||new I;window.__STORYBOOK_STORY_STORE__=window.__STORYBOOK_STORY_STORE__||window.__STORYBOOK_PREVIEW__.storyStore;window.__STORYBOOK_CLIENT_API__=window.__STORYBOOK_CLIENT_API__||new D({storyStore:window.__STORYBOOK_PREVIEW__.storyStore});window.__STORYBOOK_PREVIEW__.initialize({importFn:y,getProjectAnnotations:A});export{t as _}; function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["./InfiniteScroll.stories-C49Dd1kM.js","./jsx-runtime-BTCK_S7S.js","./index-CBqU2yxZ.js","./_commonjsHelpers-BosuxZz1.js","./index-DfmhmaGJ.js","./mapValues-CZh2vnSw.js","./pickBy-CU2rOOKe.js","./_commonjs-dynamic-modules-TDtrdbi3.js","./isPlainObject-Bu_b4Pek.js","./index-Cw1G72V2.js","./index-CKJfshIT.js","./tiny-invariant.cjs-DxxScMW_.js","./___vite-browser-external_commonjs-proxy-DRaEfepn.js","./preview-errors-CzpZmerH.js","./debounce-Bq1aTuh-.js","./Card-BJT3uTAq.js","./extends-CCbyfPlC.js","./inheritsLoose-1HkgTRWY.js","./setPrototypeOf-DgZC2w_0.js","./getElementType-CckcRzoH.js","./Label-Cq1fb1cd.js","./ModernAutoControlledComponent-DJBWk5EW.js","./assertThisInitialized-B9jnkVVz.js","./Icon-2tEtgK8g.js","./includes-CQoJOerW.js","./toFinite-KQ8KevIC.js","./forEach-CXlln0XP.js","./Dimmer-D_gwaesu.js","./Portal-DvhHJPzU.js","./keyboardKey-OMDgGVm3.js","./index-DZGZymok.js","./objectWithoutPropertiesLoose-1QL-frMM.js","./map-B4PnIEPz.js","./index-default-C_maRo4o.js","./Cars-2_9qFJX9.js","./DragDrop-ryAVAQMJ.js","./DndContext-B-2NJP7Z.js","./redux-C8f_Y06i.js","./objectSpread2-N4c0DWqo.js","./defineProperty-CCxoMnQV.js","./toPropertyKey-hKuLU48H.js","./Keyboard.stories-DvSTFzs2.js","./chunk-WFFRPTHA-B2vgThZf.js","./v4-D8aEg3BZ.js","./english-BQymWagN.js","./Keyboard-Dv1TlCyI.css","./RichTextArea.stories-GUYjY3FJ.js","./i18n-Dfa7mXnt.js","./i18next-Sc0HEOoc.js","./inherits-D5wXBZoG.js","./createClass-D2z1h_eG.js","./getPrototypeOf-BYVhAdwF.js","./RichTextArea-DJ0h_gmD.css","./Welcome.stories-CC1xAJ0k.js","./ReferenceCodeDropdown.stories-C-buW2Pl.js","./ReferenceCodeDropdown-DuhJF7pk.js","./Dropdown-Di2cPjwR.js","./without-BP-mqg2K.js","./isArrayLikeObject-CbXKTyfk.js","./isEmpty-Cyb9hIKi.js","./deburr-CEfyoYOr.js","./index-BBpNyw-T.js","./_baseSet-6y0qliU9.js","./_baseAssignValue-izmKBXUH.js","./_arrayReduce-CrxnWFSq.js","./filter-CVNi8iPS.js","./index.es28-dE8xdd4L.js","./index.es12-BES12XY4.js","./ReferenceCodeFormDropdown.stories-paQfOUbk.js","./Form-fErk-qk_.js","./Button-Blq7Z6RX.js","./Checkbox-C9uAfnsM.js","./Input--hQVCRQV.js","./index.es98-Dz6XvXHK.js","./index.es3-D5uPylQL.js","./index.es2-BuM_NOqV.js","./index.es23-SQskR_RA.js","./useDrop-BRQoWSA5.js","./index.es21-BD0kU5QO.js","./ReferenceCodeFormLabel-DfITz1xW.js","./Header-BJ3NNdPz.js","./Popup-BP01NTlV.js","./toArray-D9zoIPho.js","./nonIterableRest-Bc-81Ll3.js","./iterableToArray-DI-mZnTP.js","./unsupportedIterableToArray-78IFcom3.js","./ReferenceCodeFormLabel-BznQDcEP.css","./Modal-Bz2VEyQG.js","./ReferenceCodeFormLabel.stories-D1BDWrjF.js","./LoadingAnimation.stories-B8BvOQTy.js","./LoadAnimation-BHD0cPOn.js","./LoadAnimation-Cgpg0k4W.css","./MediaGallery.stories-DmASKrbc.js","./MediaGallery-DJAX-ugO.js","./index-C_X5wfCI.js","./createLucideIcon-CT11eyui.js","./MediaGallery-Bo9nQh_y.css","./PlaceDetailsPanel.stories-D7hdR4CN.js","./RelatedItemsList-B8cdfms1.js","./i18n-CPgn2q6e.js","./RelatedMedia-DKxxuEaF.js","./RelatedOrganizations-9fy0W2zN.js","./RelatedList-C7v-JxC_.js","./RelatedPeople-B2Gn1jY1.js","./RelatedPlaces-CvIMvrrF.js","./RelatedTaxonomies-kDsrq_Fg.js","./RelatedItemsList-DHpm3xPu.css","./RelatedMedia-70r_42sD.js","./PlaceMarker.stories-C9NEeaBA.js","./MapStyles-X53DxvlK.js","./PlaceResultsList.stories-7ml9P4A4.js","./PlaceResultsList-kl3rgoh7.css","./RelatedItemsList.stories-BHOXxMVl.js","./RelatedList.stories-DOikSUmL.js","./RelatedMedia.stories-BMR0cJFV.js","./RelatedOrganizations.stories-DAaYH5Tq.js","./RelatedPeople.stories-Caf5OgHx.js","./RelatedPlaces.stories-WOHLYKrm.js","./RelatedTaxonimies.stories-DINnFaB4.js","./LocationMarker.stories-5XR-_M2-.js","./Map-B-oiJBWx.js","./MapDraw.stories-DKSg65V-.js","./Environment-CB6gPeJ7.js","./MapDraw-gJmbv_j4.css","./AccordionDataList.stories-CsYPBCtb.js","./NestedAccordion-CZICvb0a.js","./Accordion-hxhfwUID.js","./NestedAccordion-BN20waj5.css","./DataList-Ge7tGBgD.js","./uuid-BH6G0oTz.js","./Message-3p6wyYpA.js","./i18n-C8zWlANG.js","./Toaster-C1YYqOUE.js","./Transition-DSFEXhCu.js","./Toaster-yLPTYOAD.css","./List-B05DD_Os.js","./Confirm-Dw9rt56R.js","./Pagination-D0HmnRDL.js","./Menu-9i0apxqd.js","./Grid-Czr5owxQ.js","./DropdownButton-D3g-r0e9.js","./DropdownButton-2vzpnZlx.css","./EditModal-DRtAb_yR.js","./Loader-CooidObp.js","./EditModal-BBqyP8we.css","./AssociatedDropdown-CR7UI3kV.js","./AssociatedDropdown-9Xedb5Ad.css","./FuzzyDate-RqvLBloE.js","./DateInput-BO57_F9J.js","./DateInput-CECdAaXY.css","./ModalContext-Bu-D9kD-.js","./FuzzyDate-j_vM7Sim.css","./Trans-Bk6mzQm0.js","./objectWithoutProperties--RY0eV0u.js","./utils-Bq6oISwF.js","./List-NhiJ3XYe.css","./AddModal-8so4BWij.js","./Api-DXLamogn.js","./AccordionDataList-B6Avyi96.css","./AccordionList.stories-a7xEEwhw.js","./AccordionList-D1-ynN11.css","./AccordionSelector.stories-BdgABZxJ.js","./SelectizeHeader-BiV_Rzyz.js","./Segment-C5_maSSM.js","./SelectizeHeader-B3ViV-TP.css","./withTranslation-D8FvQLBO.js","./slicedToArray-D1W8oQh0.js","./AccordionSelector-BiejeTI3.css","./ArrowButtons.stories-6z_rtFr4.js","./ArrowButtons-D1_59lZa.js","./ArrowButtons-Cw7tzIZp.css","./AssociatedDropdown.stories-CdW11X5w.js","./AudioPlayer.stories-cG6P3Mkd.js","./AudioPlayer-DbqX1JnS.js","./AudioPlayer-DHFyifxl.css","./SampleAudio-DqClFjld.js","./BibliographyForm.stories-CcvFteaz.js","./BibliographyForm-D3b_g0ZP.js","./Bibliography-isW7v-pd.js","./BibliographyForm-BAtRFF_A.css","./BibliographyList.stories-CHHdxtlO.js","./List-Cog7Mcyf.js","./BibliographySearchInput-DdTwVKt4.js","./BibliographySearchInput-CyloBfMS.css","./StyleSelector-BpXJnbXT.js","./BibliographyList-DYWOWlNz.css","./BibliographySearchInput.stories-BJT8w4fP.js","./BooleanIcon.stories-Cf5DXsV1.js","./Breadcrumbs.stories-DQEHCwm0.js","./Breadcrumbs-WyjvVzyD.css","./CancelButton.stories-Do12fFvS.js","./CancelButton-jygaxOmX.js","./ColorButton.stories-BQutYKtU.js","./ColorButton-C7ZrtsIF.css","./ColorPickerModal.stories-COMh_oAs.js","./isString-VUkjdOh0.js","./cloneDeep-kl2wD128.js","./index-D3ylJrlI.js","./ColorPickerModal-D6JlcGR9.css","./CurrentFacetLabels.stories-D1YKZNDo.js","./CurrentFacetLabels-CMZ1g7IV.js","./CurrentFacets.stories-CPNVGHdM.js","./CurrentFacetsModal-DDPlIXyS.js","./CurrentFacetsModal.stories-CSfpaeZO.js","./index-xJp9Kd2E.js","./DataTable.stories-DL_WlDxA.js","./DataTable-CZodmOBN.js","./Table-Xx3vjhN9.js","./Draggable-KQRXc-DM.js","./DataTable-B3kGSR_w.css","./DataView.stories-Do6T3up5.js","./MenuBar-0zX1-Zh0.js","./MenuSidebar-btOdA7yG.js","./DataView-dHfwqF47.css","./DateInput.stories-4-GxLJEq.js","./DatePicker.stories-Xuif5Nsn.js","./DatePicker-BoSdJYSS.css","./DescriptorField.stories-B8meZkEv.js","./DownloadButton.stories-Dq58DhJz.js","./DownloadButton-B5qnjgmD.js","./test-image-BGrKnxUR.js","./DropdownButton.stories-B5fLHKVw.js","./EditModal.stories-CwYJ6YVE.js","./Companies-Dq8qL_4h.js","./EditPage.stories-CRgOvQDb.js","./SaveButton-Dq5XP_RE.js","./EditPage-JGwGd2CC.css","./EmbeddedList.stories-B55bOPxL.js","./Colors-DiV52Fwf.js","./TabbedModal-DZNfI0w-.js","./TabbedModal-ByIDW2qK.css","./EmbeddedList-DEnqn13-.css","./Facet.stories-CntnM9og.js","./Facet-0ehrYZai.js","./Divider-C9xp3Rj7.js","./Facet-CkJXTxyt.css","./FacetClearButton.stories-CRsWt0-5.js","./FacetList.stories-6txQKgIe.js","./LinkButton-COql2obt.js","./LinkButton-BzQc1Etx.css","./FacetList-oVngdc91.css","./FacetSlider.stories-BiwZqbBY.js","./toConsumableArray-BlSjX6Hi.js","./index-BpvXyOxN.js","./FacetSlider-DJ6jM5d9.css","./FacetToggle.stories-CslYGx8N.js","./FileInputButton.stories-DNVcqPFx.js","./FileInputButton-qbfOXRVs.js","./FileUpload.stories-CFBNM96l.js","./FileUpload-Bs-KrlvA.js","./FileUpload-CjTwum27.css","./FileUploadModal.stories-BzS2eTOQ.js","./Item-9lJy5i0K.js","./FileUploadModal-d3hZcGQ2.css","./FuzzyDate.stories-BQ1xpzZ9.js","./GoogleMap.stories-BjR8S3IO.js","./esm-DEHfAp-s.js","./GooglePlacesSearch.stories-BVzZ_7G6.js","./HorizontalCards.stories-BQDatMOE.js","./Images-DFvK9Yjz.js","./Number-D3yuhZId.js","./HorizontalCards-CXJKhDYh.css","./ImageCarousel.stories-DkLbCkZL.js","./ImageCarousel-C5mlSHi3.css","./ItemCollection.stories-CK8mT4d6.js","./ItemCollection-DnmhVDTV.js","./Items-YtEeTDLX.js","./Items-DUiJ2Kg0.css","./ItemCollection-DTbYjs7A.css","./ItemList.stories-ByuTI5fo.js","./FilterModal-DL7Cc0hY.js","./Items.stories-CCw80XJx.js","./KeyValuePairs.stories-kzno01Bl.js","./KeyboardField.stories-Dl2hfwXG.js","./LinkLabel-oB1DYe7W.js","./LinkLabel-C0OH82k5.css","./KeyboardField-BMwGSE7p.css","./LazyAudio.stories-BeMWH0Uj.js","./LazyAudio-BiEA90M2.js","./LazyLoader-D1S4_28m.js","./LazyLoader-iVeYbw60.css","./LazyAudio-DqZ3NNVg.css","./LazyDocument.stories-HpM-poGd.js","./LazyDocument-DOVXXgOt.js","./LazyDocument-BVWLI450.css","./portrait-test-image-CFX7vfGN.js","./LazyIIIF.stories-CfH75RMo.js","./LazyMedia-BYbWGqJT.js","./LazyImage-BiB2Uvja.js","./PhotoViewer-CgBZCy1u.js","./PhotoViewer-saMlUfAQ.css","./LazyImage-DAATBDIP.css","./LazyVideo-DYSkHXXp.js","./VideoPlayer-DLJxAPDP.js","./VideoPlayer-dpJihtpS.css","./LazyVideo-d82gT1V6.css","./LazyImage.stories-D_4ZWQi-.js","./LazyMedia.stories-DjiBIJqO.js","./LazyVideo.stories-BXIwGNQ6.js","./SampleVideo-Bq74ahmY.js","./LinkButton.stories-DvQmvDuy.js","./LinkLabel.stories-t99Urlye.js","./ListLoader.stories-DowEQgW1.js","./ListLoader-BdgbIqvc.js","./ListLoader-u0hA0_gM.css","./ListTable.stories-DtIRVZyn.js","./ListTable-CV2iVJTC.css","./LoginModal.stories-DWr4b1eE.js","./LoginModal-Cf8-v6KX.css","./MasonryGrid.stories-De91Npnf.js","./MasonryGrid-C4zFXZrb.css","./MediaGallery.stories-CBjYKsLp.js","./PlayButton-Duxkdt-o.js","./PlayButton-CaWT9xzP.css","./MediaGallery-B8P8lAkH.css","./MediaGrid.stories-Bc9gy8Ke.js","./MediaGrid-BMyAHRaJ.css","./MediaList.stories-S0IVrTkH.js","./MediaList-DAozXVdt.css","./MenuBar.stories-CIr167Kk.js","./MenuSidebar.stories-BX8IyUbL.js","./ModalDropdown.stories-B5bQfR-W.js","./ModalDropdown-B2iwBsqA.css","./NestedAccordion.stories-CyX4Mh_H.js","./PhotoViewer.stories-gk5YGf4f.js","./PlayButton.stories-CzjW6Hiu.js","./RemoteDropdown.stories-D07InO26.js","./RemoteDropdown-BUbDzEG-.css","./SaveButton.stories-BrxsFbhP.js","./SearchBox.stories-BOlEbQrI.js","./SearchPagination.stories-CM9aHNHL.js","./SearchResults.stories-BX4iA5fv.js","./SearchResultsPerPage.stories-78x4BMlG.js","./SearchResultsSort.stories-Dm7feu9v.js","./SearchStats.stories-B03rJ8Fr.js","./Section.stories-r-HnqG6T.js","./Selectize.stories-BVLmnFB-.js","./Selectize-TuHxKYD_.css","./SimpleEditPage.stories-Bj6FIWsN.js","./SimpleEditPage-CAbS1f12.css","./StyleSelector.stories-Df3DvZOh.js","./TabbedModal.stories-DpfUK-6Z.js","./TabsMenu.stories-CH9RNwn5.js","./TagsList.stories-DMQkVQiI.js","./Thumbnail.stories-Drk3heeI.js","./Toaster.stories-BQ_sDuGN.js","./VideoFrameSelector.stories-C3GxBbP-.js","./VideoFrameSelector-CXHfdy6l.css","./VideoPlayer.stories-CtoWQrA2.js","./ViewXML.stories-DBAsHBUp.js","./UserDefinedFieldsEmbeddedList.stories-DM_NRXKE.js","./UserDefinedFields-CroUrdkF.js","./UserDefinedFields-lsgXKzri.js","./UserDefinedFields-CfIg0tQx.css","./UserDefinedFieldsForm.stories-CpjFfgJc.js","./UserDefinedFieldsList.stories-D2LZQ5UG.js","./TreeGraph.stories-J3v3DI7t.js","./TreeGraph-D9mstute.css","./addDecorator-BCpt89nL.js","./entry-preview-Dp0xjCR0.js","./react-18-DnM9deRA.js","./entry-preview-docs-nmOPi3-h.js","./index-CeKoIcWT.js","./preview-BaIHkKcy.js","./preview-BUjdUH78.js","./preview-Sz5pvSEA.js","./chunk-HLWAVYOI-CFPuBJI5.js","./preview-yaBR85SU.css"] + __vite__mapDeps.viteFileDeps = ["./InfiniteScroll.stories-D0DEq3pl.js","./jsx-runtime-BTCK_S7S.js","./index-CBqU2yxZ.js","./_commonjsHelpers-BosuxZz1.js","./index-CAen7T_W.js","./mapValues-LQZI9uWW.js","./pickBy-Us6u5-To.js","./_commonjs-dynamic-modules-TDtrdbi3.js","./isPlainObject-DCkRKKtx.js","./index-Cw1G72V2.js","./index-CKJfshIT.js","./tiny-invariant.cjs-DxxScMW_.js","./___vite-browser-external_commonjs-proxy-DRaEfepn.js","./preview-errors-CzpZmerH.js","./debounce-BkgZrIul.js","./Card-BJT3uTAq.js","./extends-CCbyfPlC.js","./inheritsLoose-1HkgTRWY.js","./setPrototypeOf-DgZC2w_0.js","./getElementType-CckcRzoH.js","./Label-Cq1fb1cd.js","./ModernAutoControlledComponent-DJBWk5EW.js","./assertThisInitialized-B9jnkVVz.js","./Icon-2tEtgK8g.js","./includes-CQoJOerW.js","./toFinite-KQ8KevIC.js","./forEach-CXlln0XP.js","./Dimmer-D_gwaesu.js","./Portal-DvhHJPzU.js","./keyboardKey-OMDgGVm3.js","./index-DZGZymok.js","./objectWithoutPropertiesLoose-1QL-frMM.js","./map-B4PnIEPz.js","./index-default-C_maRo4o.js","./Cars-2_9qFJX9.js","./DragDrop-ryAVAQMJ.js","./DndContext-B-2NJP7Z.js","./redux-C8f_Y06i.js","./objectSpread2-N4c0DWqo.js","./defineProperty-CCxoMnQV.js","./toPropertyKey-hKuLU48H.js","./Keyboard.stories-DjAyLjfL.js","./chunk-WFFRPTHA-B2vgThZf.js","./v4-D8aEg3BZ.js","./english-BQymWagN.js","./Keyboard-Dv1TlCyI.css","./RichTextArea.stories-D4EJRtr1.js","./i18n-Dfa7mXnt.js","./i18next-Sc0HEOoc.js","./inherits-D5wXBZoG.js","./createClass-D2z1h_eG.js","./getPrototypeOf-BYVhAdwF.js","./RichTextArea-DJ0h_gmD.css","./Welcome.stories-CC1xAJ0k.js","./ReferenceCodeDropdown.stories-Ck_yEqzN.js","./ReferenceCodeDropdown-BxuC_CmL.js","./Dropdown-Di2cPjwR.js","./without-BP-mqg2K.js","./isArrayLikeObject-CbXKTyfk.js","./isEmpty-Cyb9hIKi.js","./deburr-CEfyoYOr.js","./index-BBpNyw-T.js","./_baseSet-6y0qliU9.js","./_baseAssignValue-izmKBXUH.js","./_arrayReduce-CrxnWFSq.js","./filter-CVNi8iPS.js","./index.es28-Dp3-vHIY.js","./index.es12-BljXGOZw.js","./ReferenceCodeFormDropdown.stories-D95XH1zc.js","./Form-fErk-qk_.js","./Button-Blq7Z6RX.js","./Checkbox-C9uAfnsM.js","./Input--hQVCRQV.js","./index.es98-CYRWAWq9.js","./index.es3-Dgr_7mVc.js","./index.es2-9OW1Q_bJ.js","./index.es23-SQskR_RA.js","./useDrop-BRQoWSA5.js","./index.es21-BD0kU5QO.js","./ReferenceCodeFormLabel-DfITz1xW.js","./Header-BJ3NNdPz.js","./Popup-BP01NTlV.js","./toArray-D9zoIPho.js","./nonIterableRest-Bc-81Ll3.js","./iterableToArray-DI-mZnTP.js","./unsupportedIterableToArray-78IFcom3.js","./ReferenceCodeFormLabel-BznQDcEP.css","./Modal-Bz2VEyQG.js","./ReferenceCodeFormLabel.stories-CynY05BP.js","./LoadingAnimation.stories-B8BvOQTy.js","./LoadAnimation-BHD0cPOn.js","./LoadAnimation-Cgpg0k4W.css","./MediaGallery.stories-DmASKrbc.js","./MediaGallery-DJAX-ugO.js","./index-C_X5wfCI.js","./createLucideIcon-CT11eyui.js","./MediaGallery-Bo9nQh_y.css","./PlaceDetailsPanel.stories-D7hdR4CN.js","./RelatedItemsList-B8cdfms1.js","./i18n-CPgn2q6e.js","./RelatedMedia-DKxxuEaF.js","./RelatedOrganizations-9fy0W2zN.js","./RelatedList-C7v-JxC_.js","./RelatedPeople-B2Gn1jY1.js","./RelatedPlaces-CvIMvrrF.js","./RelatedTaxonomies-kDsrq_Fg.js","./RelatedItemsList-DHpm3xPu.css","./RelatedMedia-70r_42sD.js","./PlaceMarker.stories-BHPov8g4.js","./MapStyles-X53DxvlK.js","./PlaceResultsList.stories-7ml9P4A4.js","./PlaceResultsList-kl3rgoh7.css","./RelatedItemsList.stories-BHOXxMVl.js","./RelatedList.stories-DOikSUmL.js","./RelatedMedia.stories-BMR0cJFV.js","./RelatedOrganizations.stories-DAaYH5Tq.js","./RelatedPeople.stories-Caf5OgHx.js","./RelatedPlaces.stories-WOHLYKrm.js","./RelatedTaxonimies.stories-DINnFaB4.js","./LocationMarker.stories-5XR-_M2-.js","./Map-B-oiJBWx.js","./MapDraw.stories-BDWFoOm2.js","./Environment-CB6gPeJ7.js","./MapDraw-gJmbv_j4.css","./AccordionDataList.stories-wFssQmkQ.js","./NestedAccordion-CZICvb0a.js","./Accordion-hxhfwUID.js","./NestedAccordion-BN20waj5.css","./DataList-DKTsnuj_.js","./uuid-BH6G0oTz.js","./Message-3p6wyYpA.js","./i18n-C8zWlANG.js","./Toaster-C1YYqOUE.js","./Transition-DSFEXhCu.js","./Toaster-yLPTYOAD.css","./List-tmAiyZhD.js","./Confirm-Dw9rt56R.js","./Pagination-D0HmnRDL.js","./Menu-9i0apxqd.js","./Grid-Czr5owxQ.js","./DropdownButton-D3g-r0e9.js","./DropdownButton-2vzpnZlx.css","./EditModal-WP1CvOLP.js","./Loader-CooidObp.js","./EditModal-BBqyP8we.css","./AssociatedDropdown-DQppeffT.js","./AssociatedDropdown-9Xedb5Ad.css","./FuzzyDate-Bx1epA16.js","./DateInput-BO57_F9J.js","./DateInput-CECdAaXY.css","./ModalContext-Bu-D9kD-.js","./FuzzyDate-j_vM7Sim.css","./Trans-Bk6mzQm0.js","./objectWithoutProperties--RY0eV0u.js","./utils-Bq6oISwF.js","./List-NhiJ3XYe.css","./AddModal-8so4BWij.js","./Api-DXLamogn.js","./AccordionDataList-B6Avyi96.css","./AccordionList.stories-B2Nn7UUD.js","./AccordionList-D1-ynN11.css","./AccordionSelector.stories-B7uVjHJ9.js","./SelectizeHeader-BiV_Rzyz.js","./Segment-C5_maSSM.js","./SelectizeHeader-B3ViV-TP.css","./withTranslation-D8FvQLBO.js","./slicedToArray-D1W8oQh0.js","./AccordionSelector-BiejeTI3.css","./ArrowButtons.stories-6z_rtFr4.js","./ArrowButtons-D1_59lZa.js","./ArrowButtons-Cw7tzIZp.css","./AssociatedDropdown.stories-g__EHNPB.js","./AudioPlayer.stories-C6tTaEgH.js","./AudioPlayer-DbqX1JnS.js","./AudioPlayer-DHFyifxl.css","./SampleAudio-DqClFjld.js","./BibliographyForm.stories-CcvFteaz.js","./BibliographyForm-D3b_g0ZP.js","./Bibliography-isW7v-pd.js","./BibliographyForm-BAtRFF_A.css","./BibliographyList.stories-Cgz5JvPc.js","./List-Cog7Mcyf.js","./BibliographySearchInput-DdTwVKt4.js","./BibliographySearchInput-CyloBfMS.css","./StyleSelector-CaHWErOZ.js","./BibliographyList-DYWOWlNz.css","./BibliographySearchInput.stories-BJT8w4fP.js","./BooleanIcon.stories-A0FZb-hn.js","./Breadcrumbs.stories-DQEHCwm0.js","./Breadcrumbs-WyjvVzyD.css","./CancelButton.stories-CUiAEb1e.js","./CancelButton-jygaxOmX.js","./ColorButton.stories-CWP48Pvy.js","./ColorButton-C7ZrtsIF.css","./ColorPickerModal.stories-ea_lVU2T.js","./isString-CQ5MsmPY.js","./cloneDeep-C80tdQ4I.js","./index-D3ylJrlI.js","./ColorPickerModal-D6JlcGR9.css","./CurrentFacetLabels.stories-D1YKZNDo.js","./CurrentFacetLabels-CMZ1g7IV.js","./CurrentFacets.stories-C4e5WrtH.js","./CurrentFacetsModal-DDPlIXyS.js","./CurrentFacetsModal.stories-CSfpaeZO.js","./index-xJp9Kd2E.js","./DataTable.stories-CTK1Iy3Y.js","./DataTable-Cu5azNeI.js","./Table-Xx3vjhN9.js","./Draggable-KQRXc-DM.js","./DataTable-B3kGSR_w.css","./DataView.stories-DfiwRonR.js","./MenuBar-0zX1-Zh0.js","./MenuSidebar-btOdA7yG.js","./DataView-dHfwqF47.css","./DateInput.stories-4-GxLJEq.js","./DatePicker.stories-Xuif5Nsn.js","./DatePicker-BoSdJYSS.css","./DescriptorField.stories-TnftbNSB.js","./DownloadButton.stories-Dq58DhJz.js","./DownloadButton-B5qnjgmD.js","./test-image-BGrKnxUR.js","./DropdownButton.stories-B5fLHKVw.js","./EditModal.stories-hrnq1AGc.js","./Companies-Dq8qL_4h.js","./EditPage.stories-ufc0BTYY.js","./SaveButton-Dq5XP_RE.js","./EditPage-JGwGd2CC.css","./EmbeddedList.stories-bBwQoxqi.js","./Colors-DiV52Fwf.js","./TabbedModal-80_P0_JO.js","./TabbedModal-ByIDW2qK.css","./EmbeddedList-DEnqn13-.css","./Facet.stories-DUMUgu3A.js","./Facet-0ehrYZai.js","./Divider-C9xp3Rj7.js","./Facet-CkJXTxyt.css","./FacetClearButton.stories-CRsWt0-5.js","./FacetList.stories-BJStJSuq.js","./LinkButton-COql2obt.js","./LinkButton-BzQc1Etx.css","./FacetList-oVngdc91.css","./FacetSlider.stories-BiwZqbBY.js","./toConsumableArray-BlSjX6Hi.js","./index-BpvXyOxN.js","./FacetSlider-DJ6jM5d9.css","./FacetToggle.stories-CslYGx8N.js","./FileInputButton.stories-DkjMC3bF.js","./FileInputButton-qbfOXRVs.js","./FileUpload.stories-CFBNM96l.js","./FileUpload-Bs-KrlvA.js","./FileUpload-CjTwum27.css","./FileUploadModal.stories-BzS2eTOQ.js","./Item-9lJy5i0K.js","./FileUploadModal-d3hZcGQ2.css","./FuzzyDate.stories-OLsqeBX2.js","./GoogleMap.stories-fMrtMxUY.js","./esm-DEHfAp-s.js","./GooglePlacesSearch.stories-BVzZ_7G6.js","./HorizontalCards.stories-ClzFpanE.js","./Images-DFvK9Yjz.js","./Number-D3yuhZId.js","./HorizontalCards-CXJKhDYh.css","./ImageCarousel.stories-DkLbCkZL.js","./ImageCarousel-C5mlSHi3.css","./ItemCollection.stories-BSCcZdOP.js","./ItemCollection-DKUmqgEi.js","./Items-CMIdL9uL.js","./Items-DUiJ2Kg0.css","./ItemCollection-DTbYjs7A.css","./ItemList.stories-CCEc8kOI.js","./FilterModal-FAXyOL-f.js","./Items.stories-0TRTJ2fu.js","./KeyValuePairs.stories-CADmdGs7.js","./KeyboardField.stories-BK0kPuM7.js","./LinkLabel-oB1DYe7W.js","./LinkLabel-C0OH82k5.css","./KeyboardField-BMwGSE7p.css","./LazyAudio.stories-DGlBZPrC.js","./LazyAudio-BiEA90M2.js","./LazyLoader-D1S4_28m.js","./LazyLoader-iVeYbw60.css","./LazyAudio-DqZ3NNVg.css","./LazyDocument.stories-HpM-poGd.js","./LazyDocument-DOVXXgOt.js","./LazyDocument-BVWLI450.css","./portrait-test-image-CFX7vfGN.js","./LazyIIIF.stories-DKyyWUeS.js","./LazyMedia-BYbWGqJT.js","./LazyImage-BiB2Uvja.js","./PhotoViewer-CgBZCy1u.js","./PhotoViewer-saMlUfAQ.css","./LazyImage-DAATBDIP.css","./LazyVideo-DYSkHXXp.js","./VideoPlayer-DLJxAPDP.js","./VideoPlayer-dpJihtpS.css","./LazyVideo-d82gT1V6.css","./LazyImage.stories-D_4ZWQi-.js","./LazyMedia.stories-s5JqQB64.js","./LazyVideo.stories-BXIwGNQ6.js","./SampleVideo-Bq74ahmY.js","./LinkButton.stories-De_2Ejvz.js","./LinkLabel.stories-CBgMoLWU.js","./ListLoader.stories-C2lJEZ2u.js","./ListLoader-BdgbIqvc.js","./ListLoader-u0hA0_gM.css","./ListTable.stories-CtO5CSDj.js","./ListTable-CV2iVJTC.css","./LoginModal.stories-6RES0UQe.js","./LoginModal-Cf8-v6KX.css","./MasonryGrid.stories-ClYaSA_D.js","./MasonryGrid-C4zFXZrb.css","./MediaGallery.stories-Dk6XSlqM.js","./PlayButton-Duxkdt-o.js","./PlayButton-CaWT9xzP.css","./MediaGallery-B8P8lAkH.css","./MediaGrid.stories-GwQ2NQWv.js","./MediaGrid-BMyAHRaJ.css","./MediaList.stories-DgcimUF5.js","./MediaList-DAozXVdt.css","./MenuBar.stories-CfUdm4UC.js","./MenuSidebar.stories-DtSfMTeW.js","./ModalDropdown.stories-B5bQfR-W.js","./ModalDropdown-B2iwBsqA.css","./NestedAccordion.stories-CyX4Mh_H.js","./PhotoViewer.stories-xrB9Oh9v.js","./PlayButton.stories-CzjW6Hiu.js","./RemoteDropdown.stories-qMaNCn_X.js","./RemoteDropdown-BUbDzEG-.css","./SaveButton.stories-BrxsFbhP.js","./SearchBox.stories-Cu50ctA9.js","./SearchPagination.stories-CM9aHNHL.js","./SearchResults.stories-Cx4fvBXa.js","./SearchResultsPerPage.stories-78x4BMlG.js","./SearchResultsSort.stories-Dm7feu9v.js","./SearchStats.stories-B03rJ8Fr.js","./Section.stories-CLrupiGc.js","./Selectize.stories-CM1OQmv5.js","./Selectize-TuHxKYD_.css","./SimpleEditPage.stories-Cii-WvJK.js","./SimpleEditPage-CAbS1f12.css","./StyleSelector.stories-Li21fODd.js","./TabbedModal.stories-eaOd302G.js","./TabsMenu.stories-CH9RNwn5.js","./TagsList.stories-agq51TaR.js","./Thumbnail.stories-Dsr1I8K4.js","./Toaster.stories-q1-Mw20P.js","./VideoFrameSelector.stories-YwgL8X05.js","./VideoFrameSelector-CXHfdy6l.css","./VideoPlayer.stories-CtoWQrA2.js","./ViewXML.stories-hMIo-utb.js","./UserDefinedFieldsEmbeddedList.stories-1FZnZWe_.js","./UserDefinedFields-vb7cVvdH.js","./UserDefinedFields-BkORgl2w.js","./UserDefinedFields-CfIg0tQx.css","./UserDefinedFieldsForm.stories-uT98ow-F.js","./UserDefinedFieldsList.stories-D-sB7oYT.js","./TreeGraph.stories-ByOW_9Dh.js","./TreeGraph-D9mstute.css","./addDecorator-ntFu4QYE.js","./entry-preview-Dp0xjCR0.js","./react-18-DnM9deRA.js","./entry-preview-docs-CffAHyOy.js","./index-mVz13F_n.js","./preview-BaIHkKcy.js","./preview-BUjdUH78.js","./preview-VCSZH52V.js","./chunk-HLWAVYOI-DX5qqaYu.js","./preview-CVntq-z9.css"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } diff --git a/docs/assets/index-DfmhmaGJ.js b/docs/assets/index-CAen7T_W.js similarity index 59% rename from docs/assets/index-DfmhmaGJ.js rename to docs/assets/index-CAen7T_W.js index b4c4bc5c..f8f895bb 100644 --- a/docs/assets/index-DfmhmaGJ.js +++ b/docs/assets/index-CAen7T_W.js @@ -1,21 +1,21 @@ -import{r as Xr}from"./index-CBqU2yxZ.js";import{s as zl,t as Kl,v as pi,i as bh,K as Xl,b as gi,n as Sh,L as Eh,d as yi,M as _h,m as wh,N as Oh,O as Rh,P as Ql,x as Ah,Q as Th,R as Ph,E as Ch,S as xh,g as Ih,A as Nh,T as Pn}from"./mapValues-CZh2vnSw.js";import{_ as Dh,k as Jl,d as Lh,c as Fh,e as $h,f as jh,i as kh,j as Mh,l as $n,r as qh}from"./pickBy-CU2rOOKe.js";import{a as ua}from"./isPlainObject-Bu_b4Pek.js";import{c as ot,a as Oa}from"./_commonjsHelpers-BosuxZz1.js";import{d as Uh}from"./index-Cw1G72V2.js";import{e as Gh}from"./index-CKJfshIT.js";import{t as Zl,r as Ra}from"./tiny-invariant.cjs-DxxScMW_.js";import{r as Hh}from"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import{p as Bh}from"./preview-errors-CzpZmerH.js";import{d as Wh}from"./debounce-Bq1aTuh-.js";var Jo={exports:{}},mi=Object.defineProperty,Yh=Object.getOwnPropertyDescriptor,Vh=Object.getOwnPropertyNames,zh=Object.prototype.hasOwnProperty,Kh=(t,e)=>{for(var n in e)mi(t,n,{get:e[n],enumerable:!0})},Xh=(t,e,n,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let l of Vh(e))!zh.call(t,l)&&l!==n&&mi(t,l,{get:()=>e[l],enumerable:!(a=Yh(e,l))||a.enumerable});return t},Qh=t=>Xh(mi({},"__esModule",{value:!0}),t),eu={};Kh(eu,{Addon_TypesEnum:()=>tu});var vi=Qh(eu),tu=(t=>(t.TAB="tab",t.PANEL="panel",t.TOOL="tool",t.TOOLEXTRA="toolextra",t.PREVIEW="preview",t.experimental_PAGE="page",t.experimental_SIDEBAR_BOTTOM="sidebar-bottom",t.experimental_SIDEBAR_TOP="sidebar-top",t.NOTES_ELEMENT="notes-element",t))(tu||{}),Jh=zl,Zh=Kl;function ed(t,e,n){(n!==void 0&&!Zh(t[e],n)||n===void 0&&!(e in t))&&Jh(t,e,n)}var ru=ed,td=pi,rd=bh;function nd(t){return rd(t)&&td(t)}var ad=nd;function od(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}var nu=od,id=Dh,sd=Jl;function ld(t){return id(t,sd(t))}var ud=ld,js=ru,cd=Lh,fd=Fh,hd=$h,dd=jh,ks=Xl,Ms=gi,pd=ad,gd=Sh,yd=Eh,md=yi,vd=ua,bd=_h,qs=nu,Sd=ud;function Ed(t,e,n,a,l,i,f){var u=qs(t,n),s=qs(e,n),h=f.get(s);if(h){js(t,n,h);return}var c=i?i(u,s,n+"",t,e,f):void 0,p=c===void 0;if(p){var y=Ms(s),m=!y&&gd(s),v=!y&&!m&&bd(s);c=s,y||m||v?Ms(u)?c=u:pd(u)?c=hd(u):m?(p=!1,c=cd(s,!0)):v?(p=!1,c=fd(s,!0)):c=[]:vd(s)||ks(s)?(c=u,ks(u)?c=Sd(u):(!md(u)||yd(u))&&(c=dd(s))):p=!1}p&&(f.set(s,c),l(c,s,a,i,f),f.delete(s)),js(t,n,c)}var _d=Ed,wd=wh,Od=ru,Rd=Oh,Ad=_d,Td=yi,Pd=Jl,Cd=nu;function au(t,e,n,a,l){t!==e&&Rd(e,function(i,f){if(l||(l=new wd),Td(i))Ad(t,e,f,n,au,a,l);else{var u=a?a(Cd(t,f),i,f+"",t,e,l):void 0;u===void 0&&(u=i),Od(t,f,u)}},Pd)}var xd=au,ro,Us;function Id(){if(Us)return ro;Us=1;function t(e,n,a){switch(a.length){case 0:return e.call(n);case 1:return e.call(n,a[0]);case 2:return e.call(n,a[0],a[1]);case 3:return e.call(n,a[0],a[1],a[2])}return e.apply(n,a)}return ro=t,ro}var no,Gs;function ou(){if(Gs)return no;Gs=1;var t=Id(),e=Math.max;function n(a,l,i){return l=e(l===void 0?a.length-1:l,0),function(){for(var f=arguments,u=-1,s=e(f.length-l,0),h=Array(s);++u0){if(++i>=t)return arguments[0]}else i=0;return l.apply(void 0,arguments)}}return io=a,io}var so,Ys;function iu(){if(Ys)return so;Ys=1;var t=Dd(),e=Ld(),n=e(t);return so=n,so}var Fd=Ql,$d=ou(),jd=iu();function kd(t,e){return jd($d(t,e,Fd),t+"")}var Md=kd,qd=Kl,Ud=pi,Gd=Ah,Hd=yi;function Bd(t,e,n){if(!Hd(n))return!1;var a=typeof e;return(a=="number"?Ud(n)&&Gd(e,n.length):a=="string"&&e in n)?qd(n[e],t):!1}var Wd=Bd,Yd=Md,Vd=Wd;function zd(t){return Yd(function(e,n){var a=-1,l=n.length,i=l>1?n[l-1]:void 0,f=l>2?n[2]:void 0;for(i=t.length>3&&typeof i=="function"?(l--,i):void 0,f&&Vd(n[0],n[1],f)&&(i=l<3?void 0:i,l=1),e=Object(e);++a{for(var n in e)bi(t,n,{get:e[n],enumerable:!0})},np=(t,e,n,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let l of ep(e))!tp.call(t,l)&&l!==n&&bi(t,l,{get:()=>e[l],enumerable:!(a=Zd(e,l))||a.enumerable});return t},ap=t=>np(bi({},"__esModule",{value:!0}),t),lu={};rp(lu,{CHANNEL_CREATED:()=>ip,CONFIG_ERROR:()=>sp,CURRENT_STORY_WAS_SET:()=>lp,DOCS_PREPARED:()=>up,DOCS_RENDERED:()=>cp,FORCE_REMOUNT:()=>hp,FORCE_RE_RENDER:()=>fp,GLOBALS_UPDATED:()=>dp,IGNORED_EXCEPTION:()=>Xp,NAVIGATE_URL:()=>pp,PLAY_FUNCTION_THREW_EXCEPTION:()=>gp,PRELOAD_ENTRIES:()=>yp,PREVIEW_BUILDER_PROGRESS:()=>mp,PREVIEW_KEYDOWN:()=>vp,REGISTER_SUBSCRIPTION:()=>bp,REQUEST_WHATS_NEW_DATA:()=>Wp,RESET_STORY_ARGS:()=>Sp,RESULT_WHATS_NEW_DATA:()=>Yp,SELECT_STORY:()=>Ep,SET_CONFIG:()=>_p,SET_CURRENT_STORY:()=>wp,SET_GLOBALS:()=>Op,SET_INDEX:()=>Rp,SET_STORIES:()=>Ap,SET_WHATS_NEW_CACHE:()=>Vp,SHARED_STATE_CHANGED:()=>Tp,SHARED_STATE_SET:()=>Pp,STORIES_COLLAPSE_ALL:()=>Cp,STORIES_EXPAND_ALL:()=>xp,STORY_ARGS_UPDATED:()=>Ip,STORY_CHANGED:()=>Np,STORY_ERRORED:()=>Dp,STORY_INDEX_INVALIDATED:()=>Lp,STORY_MISSING:()=>Fp,STORY_PREPARED:()=>$p,STORY_RENDERED:()=>kp,STORY_RENDER_PHASE_CHANGED:()=>jp,STORY_SPECIFIED:()=>Mp,STORY_THREW_EXCEPTION:()=>qp,STORY_UNCHANGED:()=>Up,TELEMETRY_ERROR:()=>Kp,TOGGLE_WHATS_NEW_NOTIFICATIONS:()=>zp,UPDATE_GLOBALS:()=>Gp,UPDATE_QUERY_PARAMS:()=>Hp,UPDATE_STORY_ARGS:()=>Bp,default:()=>op});var Qe=ap(lu),Si=(t=>(t.CHANNEL_CREATED="channelCreated",t.CONFIG_ERROR="configError",t.STORY_INDEX_INVALIDATED="storyIndexInvalidated",t.STORY_SPECIFIED="storySpecified",t.SET_CONFIG="setConfig",t.SET_STORIES="setStories",t.SET_INDEX="setIndex",t.SET_CURRENT_STORY="setCurrentStory",t.CURRENT_STORY_WAS_SET="currentStoryWasSet",t.FORCE_RE_RENDER="forceReRender",t.FORCE_REMOUNT="forceRemount",t.PRELOAD_ENTRIES="preloadStories",t.STORY_PREPARED="storyPrepared",t.DOCS_PREPARED="docsPrepared",t.STORY_CHANGED="storyChanged",t.STORY_UNCHANGED="storyUnchanged",t.STORY_RENDERED="storyRendered",t.STORY_MISSING="storyMissing",t.STORY_ERRORED="storyErrored",t.STORY_THREW_EXCEPTION="storyThrewException",t.STORY_RENDER_PHASE_CHANGED="storyRenderPhaseChanged",t.PLAY_FUNCTION_THREW_EXCEPTION="playFunctionThrewException",t.UPDATE_STORY_ARGS="updateStoryArgs",t.STORY_ARGS_UPDATED="storyArgsUpdated",t.RESET_STORY_ARGS="resetStoryArgs",t.SET_GLOBALS="setGlobals",t.UPDATE_GLOBALS="updateGlobals",t.GLOBALS_UPDATED="globalsUpdated",t.REGISTER_SUBSCRIPTION="registerSubscription",t.PREVIEW_KEYDOWN="previewKeydown",t.PREVIEW_BUILDER_PROGRESS="preview_builder_progress",t.SELECT_STORY="selectStory",t.STORIES_COLLAPSE_ALL="storiesCollapseAll",t.STORIES_EXPAND_ALL="storiesExpandAll",t.DOCS_RENDERED="docsRendered",t.SHARED_STATE_CHANGED="sharedStateChanged",t.SHARED_STATE_SET="sharedStateSet",t.NAVIGATE_URL="navigateUrl",t.UPDATE_QUERY_PARAMS="updateQueryParams",t.REQUEST_WHATS_NEW_DATA="requestWhatsNewData",t.RESULT_WHATS_NEW_DATA="resultWhatsNewData",t.SET_WHATS_NEW_CACHE="setWhatsNewCache",t.TOGGLE_WHATS_NEW_NOTIFICATIONS="toggleWhatsNewNotifications",t.TELEMETRY_ERROR="telemetryError",t))(Si||{}),op=Si,{CHANNEL_CREATED:ip,CONFIG_ERROR:sp,CURRENT_STORY_WAS_SET:lp,DOCS_PREPARED:up,DOCS_RENDERED:cp,FORCE_RE_RENDER:fp,FORCE_REMOUNT:hp,GLOBALS_UPDATED:dp,NAVIGATE_URL:pp,PLAY_FUNCTION_THREW_EXCEPTION:gp,PRELOAD_ENTRIES:yp,PREVIEW_BUILDER_PROGRESS:mp,PREVIEW_KEYDOWN:vp,REGISTER_SUBSCRIPTION:bp,RESET_STORY_ARGS:Sp,SELECT_STORY:Ep,SET_CONFIG:_p,SET_CURRENT_STORY:wp,SET_GLOBALS:Op,SET_INDEX:Rp,SET_STORIES:Ap,SHARED_STATE_CHANGED:Tp,SHARED_STATE_SET:Pp,STORIES_COLLAPSE_ALL:Cp,STORIES_EXPAND_ALL:xp,STORY_ARGS_UPDATED:Ip,STORY_CHANGED:Np,STORY_ERRORED:Dp,STORY_INDEX_INVALIDATED:Lp,STORY_MISSING:Fp,STORY_PREPARED:$p,STORY_RENDER_PHASE_CHANGED:jp,STORY_RENDERED:kp,STORY_SPECIFIED:Mp,STORY_THREW_EXCEPTION:qp,STORY_UNCHANGED:Up,UPDATE_GLOBALS:Gp,UPDATE_QUERY_PARAMS:Hp,UPDATE_STORY_ARGS:Bp,REQUEST_WHATS_NEW_DATA:Wp,RESULT_WHATS_NEW_DATA:Yp,SET_WHATS_NEW_CACHE:Vp,TOGGLE_WHATS_NEW_NOTIFICATIONS:zp,TELEMETRY_ERROR:Kp}=Si,Xp=new Error("ignoredException"),Ei=Object.defineProperty,Qp=Object.getOwnPropertyDescriptor,Jp=Object.getOwnPropertyNames,Zp=Object.prototype.hasOwnProperty,eg=(t,e)=>{for(var n in e)Ei(t,n,{get:e[n],enumerable:!0})},tg=(t,e,n,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let l of Jp(e))!Zp.call(t,l)&&l!==n&&Ei(t,l,{get:()=>e[l],enumerable:!(a=Qp(e,l))||a.enumerable});return t},rg=t=>tg(Ei({},"__esModule",{value:!0}),t),uu={};eg(uu,{global:()=>ng});var Ne=rg(uu),ng=(()=>{let t;return typeof window<"u"?t=window:typeof globalThis<"u"?t=globalThis:typeof ot<"u"?t=ot:typeof self<"u"?t=self:t={},t})(),_i=Object.defineProperty,ag=Object.getOwnPropertyDescriptor,og=Object.getOwnPropertyNames,ig=Object.prototype.hasOwnProperty,sg=(t,e)=>{for(var n in e)_i(t,n,{get:e[n],enumerable:!0})},lg=(t,e,n,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let l of og(e))!ig.call(t,l)&&l!==n&&_i(t,l,{get:()=>e[l],enumerable:!(a=ag(e,l))||a.enumerable});return t},ug=t=>lg(_i({},"__esModule",{value:!0}),t),cu={};sg(cu,{deprecate:()=>dg,logger:()=>ya,once:()=>ft,pretty:()=>$t});var je=ug(cu),cg=Ne,{LOGLEVEL:fg}=cg.global,pr={trace:1,debug:2,info:3,warn:4,error:5,silent:10},hg=fg,Br=pr[hg]||pr.info,ya={trace:(t,...e)=>{Br<=pr.trace&&console.trace(t,...e)},debug:(t,...e)=>{Br<=pr.debug&&console.debug(t,...e)},info:(t,...e)=>{Br<=pr.info&&console.info(t,...e)},warn:(t,...e)=>{Br<=pr.warn&&console.warn(t,...e)},error:(t,...e)=>{Br<=pr.error&&console.error(t,...e)},log:(t,...e)=>{Br(e,...n)=>{if(!Zo.has(e))return Zo.add(e),ya[t](e,...n)};ft.clear=()=>Zo.clear();ft.trace=ft("trace");ft.debug=ft("debug");ft.info=ft("info");ft.warn=ft("warn");ft.error=ft("error");ft.log=ft("log");var dg=ft("warn"),$t=t=>(...e)=>{let n=[];if(e.length){let a=//gi,l=/<\/span>/gi,i;for(n.push(e[0].replace(a,"%c").replace(l,"%c"));i=a.exec(e[0]);)n.push(i[2]),n.push("");for(let f=1;fa.length(this._area)&&(s--,u--)}return f||this},keys:function(i){return this.each(function(f,u,s){s.push(f)},i||[])},get:function(i,f){var u=a.get(this._area,this._in(i)),s;return typeof f=="function"&&(s=f,f=null),u!==null?a.parse(u,s):f??u},getAll:function(i){return this.each(function(f,u,s){s[f]=u},i||{})},transact:function(i,f,u){var s=this.get(i,u),h=f(s);return this.set(i,h===void 0?s:h),this},set:function(i,f,u){var s=this.get(i),h;return s!=null&&u===!1?f:(typeof u=="function"&&(h=u,u=void 0),a.set(this._area,this._in(i),a.stringify(f,h),u)||s)},setAll:function(i,f){var u,s;for(var h in i)s=i[h],this.set(h,s,f)!==s&&(u=!0);return u},add:function(i,f,u){var s=this.get(i);if(s instanceof Array)f=s.concat(f);else if(s!==null){var h=typeof s;if(h===typeof f&&h==="object"){for(var c in f)s[c]=f[c];f=s}else f=s+f}return a.set(this._area,this._in(i),a.stringify(f,u)),f},remove:function(i,f){var u=this.get(i,f);return a.remove(this._area,this._in(i)),u},clear:function(){return this._ns?this.each(function(i){a.remove(this._area,this._in(i))},1):a.clear(this._area),this},clearAll:function(){var i=this._area;for(var f in a.areas)a.areas.hasOwnProperty(f)&&(this._area=a.areas[f],this.clear());return this._area=i,this},_in:function(i){return typeof i!="string"&&(i=a.stringify(i)),this._ns?this._ns+i:i},_out:function(i){return this._ns?i&&i.indexOf(this._ns)===0?i.substring(this._ns.length):void 0:i}},storage:function(i){return a.inherit(a.storageAPI,{items:{},name:i})},storageAPI:{length:0,has:function(i){return this.items.hasOwnProperty(i)},key:function(i){var f=0;for(var u in this.items)if(this.has(u)&&i===f++)return u},setItem:function(i,f){this.has(i)||this.length++,this.items[i]=f},removeItem:function(i){this.has(i)&&(delete this.items[i],this.length--)},getItem:function(i){return this.has(i)?this.items[i]:null},clear:function(){for(var i in this.items)this.removeItem(i)}}},l=a.Store("local",function(){try{return localStorage}catch{}}());l.local=l,l._=a,l.area("session",function(){try{return sessionStorage}catch{}}()),l.area("page",a.storage("page")),typeof n=="function"&&n.amd!==void 0?n("store2",[],function(){return l}):t.exports?t.exports=l:(e.store&&(a.conflict=e.store),e.store=l)})(ot,ot&&ot.define)})(fu);var pg=fu.exports;const wi=Oa(kh);var gg=Th;function yg(t,e){return gg(t,e)}var mg=yg;const rr=Oa(Uh),ct=Oa(Gh);var lo,Vs;function vg(){if(Vs)return lo;Vs=1;function t(e,n,a,l){for(var i=-1,f=e==null?0:e.length;++i0&&i(c)?l>1?n(c,l-1,i,f,u):t(u,c):f||(u[u.length]=c)}return u}return mo=n,mo}var vo,rl;function Tg(){if(rl)return vo;rl=1;var t=Ag();function e(n){var a=n==null?0:n.length;return a?t(n,1):[]}return vo=e,vo}var bo,nl;function Pg(){if(nl)return bo;nl=1;var t=Tg(),e=ou(),n=iu();function a(l){return n(e(l,void 0,t),l+"")}return bo=a,bo}var So,al;function hu(){if(al)return So;al=1;var t=Og(),e=Pg(),n=e(function(a,l){return a==null?{}:t(a,l)});return So=n,So}var Eo,ol;function Cg(){if(ol)return Eo;ol=1;var t=Object.defineProperty,e=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,l=(R,L)=>{for(var Q in L)t(R,Q,{get:L[Q],enumerable:!0})},i=(R,L,Q,fe)=>{if(L&&typeof L=="object"||typeof L=="function")for(let Ee of n(L))!a.call(R,Ee)&&Ee!==Q&&t(R,Ee,{get:()=>L[Ee],enumerable:!(fe=e(L,Ee))||fe.enumerable});return R},f=R=>i(t({},"__esModule",{value:!0}),R),u={};l(u,{create:()=>wr,themes:()=>_t}),Eo=f(u);function s(){return s=Object.assign?Object.assign.bind():function(R){for(var L=1;L"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 E(R,L,Q){return v()?E=Reflect.construct.bind():E=function(fe,Ee,Ce){var De=[null];De.push.apply(De,Ee);var We=Function.bind.apply(fe,De),Ye=new We;return Ce&&c(Ye,Ce.prototype),Ye},E.apply(null,arguments)}function T(R){var L=typeof Map=="function"?new Map:void 0;return T=function(Q){if(Q===null||!m(Q))return Q;if(typeof Q!="function")throw new TypeError("Super expression must either be null or a function");if(typeof L<"u"){if(L.has(Q))return L.get(Q);L.set(Q,fe)}function fe(){return E(Q,arguments,y(this).constructor)}return fe.prototype=Object.create(Q.prototype,{constructor:{value:fe,enumerable:!1,writable:!0,configurable:!0}}),c(fe,Q)},T(R)}var I=function(R){p(L,R);function L(Q){var fe;return fe=R.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+Q+" for more information.")||this,h(fe)}return L}(T(Error));function Y(R){return Math.round(R*255)}function ne(R,L,Q){return Y(R)+","+Y(L)+","+Y(Q)}function J(R,L,Q,fe){if(fe===void 0&&(fe=ne),L===0)return fe(Q,Q,Q);var Ee=(R%360+360)%360/60,Ce=(1-Math.abs(2*Q-1))*L,De=Ce*(1-Math.abs(Ee%2-1)),We=0,Ye=0,pt=0;Ee>=0&&Ee<1?(We=Ce,Ye=De):Ee>=1&&Ee<2?(We=De,Ye=Ce):Ee>=2&&Ee<3?(Ye=Ce,pt=De):Ee>=3&&Ee<4?(Ye=De,pt=Ce):Ee>=4&&Ee<5?(We=De,pt=Ce):Ee>=5&&Ee<6&&(We=Ce,pt=De);var wt=Q-Ce/2,Dt=We+wt,gt=Ye+wt,Or=pt+wt;return fe(Dt,gt,Or)}var C={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",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",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",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:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",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:"639",red:"f00",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:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function H(R){if(typeof R!="string")return R;var L=R.toLowerCase();return C[L]?"#"+C[L]:R}var K=/^#[a-fA-F0-9]{6}$/,Z=/^#[a-fA-F0-9]{8}$/,oe=/^#[a-fA-F0-9]{3}$/,ee=/^#[a-fA-F0-9]{4}$/,B=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,W=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,re=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,he=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function O(R){if(typeof R!="string")throw new I(3);var L=H(R);if(L.match(K))return{red:parseInt(""+L[1]+L[2],16),green:parseInt(""+L[3]+L[4],16),blue:parseInt(""+L[5]+L[6],16)};if(L.match(Z)){var Q=parseFloat((parseInt(""+L[7]+L[8],16)/255).toFixed(2));return{red:parseInt(""+L[1]+L[2],16),green:parseInt(""+L[3]+L[4],16),blue:parseInt(""+L[5]+L[6],16),alpha:Q}}if(L.match(oe))return{red:parseInt(""+L[1]+L[1],16),green:parseInt(""+L[2]+L[2],16),blue:parseInt(""+L[3]+L[3],16)};if(L.match(ee)){var fe=parseFloat((parseInt(""+L[4]+L[4],16)/255).toFixed(2));return{red:parseInt(""+L[1]+L[1],16),green:parseInt(""+L[2]+L[2],16),blue:parseInt(""+L[3]+L[3],16),alpha:fe}}var Ee=B.exec(L);if(Ee)return{red:parseInt(""+Ee[1],10),green:parseInt(""+Ee[2],10),blue:parseInt(""+Ee[3],10)};var Ce=W.exec(L.substring(0,50));if(Ce)return{red:parseInt(""+Ce[1],10),green:parseInt(""+Ce[2],10),blue:parseInt(""+Ce[3],10),alpha:parseFloat(""+Ce[4])>1?parseFloat(""+Ce[4])/100:parseFloat(""+Ce[4])};var De=re.exec(L);if(De){var We=parseInt(""+De[1],10),Ye=parseInt(""+De[2],10)/100,pt=parseInt(""+De[3],10)/100,wt="rgb("+J(We,Ye,pt)+")",Dt=B.exec(wt);if(!Dt)throw new I(4,L,wt);return{red:parseInt(""+Dt[1],10),green:parseInt(""+Dt[2],10),blue:parseInt(""+Dt[3],10)}}var gt=he.exec(L.substring(0,50));if(gt){var Or=parseInt(""+gt[1],10),un=parseInt(""+gt[2],10)/100,cn=parseInt(""+gt[3],10)/100,Rr="rgb("+J(Or,un,cn)+")",lr=B.exec(Rr);if(!lr)throw new I(4,L,Rr);return{red:parseInt(""+lr[1],10),green:parseInt(""+lr[2],10),blue:parseInt(""+lr[3],10),alpha:parseFloat(""+gt[4])>1?parseFloat(""+gt[4])/100:parseFloat(""+gt[4])}}throw new I(5)}function P(R){var L=R.red/255,Q=R.green/255,fe=R.blue/255,Ee=Math.max(L,Q,fe),Ce=Math.min(L,Q,fe),De=(Ee+Ce)/2;if(Ee===Ce)return R.alpha!==void 0?{hue:0,saturation:0,lightness:De,alpha:R.alpha}:{hue:0,saturation:0,lightness:De};var We,Ye=Ee-Ce,pt=De>.5?Ye/(2-Ee-Ce):Ye/(Ee+Ce);switch(Ee){case L:We=(Q-fe)/Ye+(Q=1?le(R,L,Q):"rgba("+J(R,L,Q)+","+fe+")";if(typeof R=="object"&&L===void 0&&Q===void 0&&fe===void 0)return R.alpha>=1?le(R.hue,R.saturation,R.lightness):"rgba("+J(R.hue,R.saturation,R.lightness)+","+R.alpha+")";throw new I(2)}function Be(R,L,Q){if(typeof R=="number"&&typeof L=="number"&&typeof Q=="number")return V("#"+X(R)+X(L)+X(Q));if(typeof R=="object"&&L===void 0&&Q===void 0)return V("#"+X(R.red)+X(R.green)+X(R.blue));throw new I(6)}function At(R,L,Q,fe){if(typeof R=="string"&&typeof L=="number"){var Ee=O(R);return"rgba("+Ee.red+","+Ee.green+","+Ee.blue+","+L+")"}else{if(typeof R=="number"&&typeof L=="number"&&typeof Q=="number"&&typeof fe=="number")return fe>=1?Be(R,L,Q):"rgba("+R+","+L+","+Q+","+fe+")";if(typeof R=="object"&&L===void 0&&Q===void 0&&fe===void 0)return R.alpha>=1?Be(R.red,R.green,R.blue):"rgba("+R.red+","+R.green+","+R.blue+","+R.alpha+")"}throw new I(7)}var qt=function(R){return typeof R.red=="number"&&typeof R.green=="number"&&typeof R.blue=="number"&&(typeof R.alpha!="number"||typeof R.alpha>"u")},Sr=function(R){return typeof R.red=="number"&&typeof R.green=="number"&&typeof R.blue=="number"&&typeof R.alpha=="number"},on=function(R){return typeof R.hue=="number"&&typeof R.saturation=="number"&&typeof R.lightness=="number"&&(typeof R.alpha!="number"||typeof R.alpha>"u")},Nt=function(R){return typeof R.hue=="number"&&typeof R.saturation=="number"&&typeof R.lightness=="number"&&typeof R.alpha=="number"};function st(R){if(typeof R!="object")throw new I(8);if(Sr(R))return At(R);if(qt(R))return Be(R);if(Nt(R))return Te(R);if(on(R))return _e(R);throw new I(8)}function Qt(R,L,Q){return function(){var fe=Q.concat(Array.prototype.slice.call(arguments));return fe.length>=L?R.apply(this,fe):Qt(R,L,fe)}}function Et(R){return Qt(R,R.length,[])}function Jt(R,L,Q){return Math.max(R,Math.min(L,Q))}function jr(R,L){if(L==="transparent")return L;var Q=F(L);return st(s({},Q,{lightness:Jt(0,1,Q.lightness-parseFloat(R))}))}Et(jr);function ir(R,L){if(L==="transparent")return L;var Q=F(L);return st(s({},Q,{lightness:Jt(0,1,Q.lightness+parseFloat(R))}))}Et(ir);function sn(R,L){if(L==="transparent")return L;var Q=O(L),fe=typeof Q.alpha=="number"?Q.alpha:1,Ee=s({},Q,{alpha:Jt(0,1,+(fe*100-parseFloat(R)*100).toFixed(2)/100)});return At(Ee)}var kr=Et(sn),Mr=kr,$e={primary:"#FF4785",secondary:"#029CFD",tertiary:"#FAFBFC",ancillary:"#22a699",orange:"#FC521F",gold:"#FFAE00",green:"#66BF3C",seafoam:"#37D5D3",purple:"#6F2CAC",ultraviolet:"#2A0481",lightest:"#FFFFFF",lighter:"#F7FAFC",light:"#EEF3F6",mediumlight:"#ECF4F9",medium:"#D9E8F2",mediumdark:"#73828C",dark:"#5C6870",darker:"#454E54",darkest:"#2E3438",border:"hsla(203, 50%, 30%, 0.15)",positive:"#66BF3C",negative:"#FF4400",warning:"#E69D00",critical:"#FFFFFF",defaultText:"#2E3438",inverseText:"#FFFFFF",positiveText:"#448028",negativeText:"#D43900",warningText:"#A15C20"},Ut={app:"#F6F9FC",bar:$e.lightest,content:$e.lightest,preview:$e.lightest,gridCellSize:10,hoverable:Mr(.9,$e.secondary),positive:"#E1FFD4",negative:"#FEDED2",warning:"#FFF5CF",critical:"#FF4400"},Tt={fonts:{base:['"Nunito Sans"',"-apple-system",'".SFNSText-Regular"','"San Francisco"',"BlinkMacSystemFont",'"Segoe UI"','"Helvetica Neue"',"Helvetica","Arial","sans-serif"].join(", "),mono:["ui-monospace","Menlo","Monaco",'"Roboto Mono"','"Oxygen Mono"','"Ubuntu Monospace"','"Source Code Pro"','"Droid Sans Mono"','"Courier New"',"monospace"].join(", ")},weight:{regular:400,bold:700},size:{s1:12,s2:14,s3:16,m1:20,m2:24,m3:28,l1:32,l2:40,l3:48,code:90}},He={base:"light",colorPrimary:"#FF4785",colorSecondary:"#029CFD",appBg:Ut.app,appContentBg:$e.lightest,appPreviewBg:$e.lightest,appBorderColor:$e.border,appBorderRadius:4,fontBase:Tt.fonts.base,fontCode:Tt.fonts.mono,textColor:$e.darkest,textInverseColor:$e.lightest,textMutedColor:$e.dark,barTextColor:$e.mediumdark,barHoverColor:$e.secondary,barSelectedColor:$e.secondary,barBg:$e.lightest,buttonBg:Ut.app,buttonBorder:$e.medium,booleanBg:$e.mediumlight,booleanSelectedBg:$e.lightest,inputBg:$e.lightest,inputBorder:$e.border,inputTextColor:$e.darkest,inputBorderRadius:4},Pt=He,Er={base:"dark",colorPrimary:"#FF4785",colorSecondary:"#029CFD",appBg:"#222425",appContentBg:"#1B1C1D",appPreviewBg:$e.lightest,appBorderColor:"rgba(255,255,255,.1)",appBorderRadius:4,fontBase:Tt.fonts.base,fontCode:Tt.fonts.mono,textColor:"#C9CDCF",textInverseColor:"#222425",textMutedColor:"#798186",barTextColor:"#798186",barHoverColor:$e.secondary,barSelectedColor:$e.secondary,barBg:"#292C2E",buttonBg:"#222425",buttonBorder:"rgba(255,255,255,.1)",booleanBg:"#222425",booleanSelectedBg:"#2E3438",inputBg:"#1B1C1D",inputBorder:"rgba(255,255,255,.1)",inputTextColor:$e.lightest,inputBorderRadius:4},_r=Er,qr=Ne,{window:sr}=qr.global,ln=()=>!sr||!sr.matchMedia?"light":sr.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",_t={light:Pt,dark:_r,normal:Pt},dt=ln(),wr=(R={base:dt},L)=>{let Q={..._t[dt],..._t[R.base]||{},...R,base:_t[R.base]?R.base:dt};return{...L,...Q,barSelectedColor:R.barSelectedColor||Q.colorSecondary}};return Eo}var xg=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},n=Symbol("test"),a=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(a)!=="[object Symbol]")return!1;var l=42;e[n]=l;for(n in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var i=Object.getOwnPropertySymbols(e);if(i.length!==1||i[0]!==n||!Object.prototype.propertyIsEnumerable.call(e,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var f=Object.getOwnPropertyDescriptor(e,n);if(f.value!==l||f.enumerable!==!0)return!1}return!0},il=typeof Symbol<"u"&&Symbol,Ig=xg,Ng=function(){return typeof il!="function"||typeof Symbol!="function"||typeof il("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Ig()},sl={foo:{}},Dg=Object,Lg=function(){return{__proto__:sl}.foo===sl.foo&&!({__proto__:null}instanceof Dg)},Fg="Function.prototype.bind called on incompatible ",$g=Object.prototype.toString,jg=Math.max,kg="[object Function]",ll=function(e,n){for(var a=[],l=0;l"u"||!Ze?Ae:Ze(Uint8Array),Nr={"%AggregateError%":typeof AggregateError>"u"?Ae:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Ae:ArrayBuffer,"%ArrayIteratorPrototype%":Wr&&Ze?Ze([][Symbol.iterator]()):Ae,"%AsyncFromSyncIteratorPrototype%":Ae,"%AsyncFunction%":zr,"%AsyncGenerator%":zr,"%AsyncGeneratorFunction%":zr,"%AsyncIteratorPrototype%":zr,"%Atomics%":typeof Atomics>"u"?Ae:Atomics,"%BigInt%":typeof BigInt>"u"?Ae:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Ae:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Ae:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Ae:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?Ae:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Ae:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Ae:FinalizationRegistry,"%Function%":du,"%GeneratorFunction%":zr,"%Int8Array%":typeof Int8Array>"u"?Ae:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Ae:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Ae:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Wr&&Ze?Ze(Ze([][Symbol.iterator]())):Ae,"%JSON%":typeof JSON=="object"?JSON:Ae,"%Map%":typeof Map>"u"?Ae:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Wr||!Ze?Ae:Ze(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Ae:Promise,"%Proxy%":typeof Proxy>"u"?Ae:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?Ae:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Ae:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Wr||!Ze?Ae:Ze(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Ae:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Wr&&Ze?Ze(""[Symbol.iterator]()):Ae,"%Symbol%":Wr?Symbol:Ae,"%SyntaxError%":Zr,"%ThrowTypeError%":Vg,"%TypedArray%":Kg,"%TypeError%":Jr,"%Uint8Array%":typeof Uint8Array>"u"?Ae:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Ae:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Ae:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Ae:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?Ae:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Ae:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Ae:WeakSet};if(Ze)try{null.error}catch(t){var Xg=Ze(Ze(t));Nr["%Error.prototype%"]=Xg}var Qg=function t(e){var n;if(e==="%AsyncFunction%")n=_o("async function () {}");else if(e==="%GeneratorFunction%")n=_o("function* () {}");else if(e==="%AsyncGeneratorFunction%")n=_o("async function* () {}");else if(e==="%AsyncGenerator%"){var a=t("%AsyncGeneratorFunction%");a&&(n=a.prototype)}else if(e==="%AsyncIteratorPrototype%"){var l=t("%AsyncGenerator%");l&&Ze&&(n=Ze(l.prototype))}return Nr[e]=n,n},ul={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},kn=Oi,ma=Yg,Jg=kn.call(Function.call,Array.prototype.concat),Zg=kn.call(Function.apply,Array.prototype.splice),cl=kn.call(Function.call,String.prototype.replace),va=kn.call(Function.call,String.prototype.slice),ey=kn.call(Function.call,RegExp.prototype.exec),ty=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ry=/\\(\\)?/g,ny=function(e){var n=va(e,0,1),a=va(e,-1);if(n==="%"&&a!=="%")throw new Zr("invalid intrinsic syntax, expected closing `%`");if(a==="%"&&n!=="%")throw new Zr("invalid intrinsic syntax, expected opening `%`");var l=[];return cl(e,ty,function(i,f,u,s){l[l.length]=u?cl(s,ry,"$1"):f||i}),l},ay=function(e,n){var a=e,l;if(ma(ul,a)&&(l=ul[a],a="%"+l[0]+"%"),ma(Nr,a)){var i=Nr[a];if(i===zr&&(i=Qg(a)),typeof i>"u"&&!n)throw new Jr("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:l,name:a,value:i}}throw new Zr("intrinsic "+e+" does not exist!")},Fr=function(e,n){if(typeof e!="string"||e.length===0)throw new Jr("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new Jr('"allowMissing" argument must be a boolean');if(ey(/^%?[^%]*%?$/,e)===null)throw new Zr("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var a=ny(e),l=a.length>0?a[0]:"",i=ay("%"+l+"%",n),f=i.name,u=i.value,s=!1,h=i.alias;h&&(l=h[0],Zg(a,Jg([0,1],h)));for(var c=1,p=!0;c=a.length){var E=Ir(u,y);p=!!E,p&&"get"in E&&!("originalValue"in E.get)?u=E.get:u=u[y]}else p=ma(u,y),u=u[y];p&&!s&&(Nr[f]=u)}}return u},pu={exports:{}},oy=Fr,ei=oy("%Object.defineProperty%",!0),ti=function(){if(ei)try{return ei({},"a",{value:1}),!0}catch{return!1}return!1};ti.hasArrayLengthDefineBug=function(){if(!ti())return null;try{return ei([],"length",{value:1}).length!==1}catch{return!0}};var gu=ti,iy=Fr,ca=iy("%Object.getOwnPropertyDescriptor%",!0);if(ca)try{ca([],"length")}catch{ca=null}var yu=ca,sy=gu(),Ri=Fr,Nn=sy&&Ri("%Object.defineProperty%",!0);if(Nn)try{Nn({},"a",{value:1})}catch{Nn=!1}var ly=Ri("%SyntaxError%"),Yr=Ri("%TypeError%"),fl=yu,uy=function(e,n,a){if(!e||typeof e!="object"&&typeof e!="function")throw new Yr("`obj` must be an object or a function`");if(typeof n!="string"&&typeof n!="symbol")throw new Yr("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Yr("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Yr("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Yr("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Yr("`loose`, if provided, must be a boolean");var l=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,f=arguments.length>5?arguments[5]:null,u=arguments.length>6?arguments[6]:!1,s=!!fl&&fl(e,n);if(Nn)Nn(e,n,{configurable:f===null&&s?s.configurable:!f,enumerable:l===null&&s?s.enumerable:!l,value:a,writable:i===null&&s?s.writable:!i});else if(u||!l&&!i&&!f)e[n]=a;else throw new ly("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},mu=Fr,hl=uy,cy=gu(),dl=yu,pl=mu("%TypeError%"),fy=mu("%Math.floor%"),hy=function(e,n){if(typeof e!="function")throw new pl("`fn` is not a function");if(typeof n!="number"||n<0||n>4294967295||fy(n)!==n)throw new pl("`length` must be a positive 32-bit integer");var a=arguments.length>2&&!!arguments[2],l=!0,i=!0;if("length"in e&&dl){var f=dl(e,"length");f&&!f.configurable&&(l=!1),f&&!f.writable&&(i=!1)}return(l||i||!a)&&(cy?hl(e,"length",n,!0,!0):hl(e,"length",n)),e};(function(t){var e=Oi,n=Fr,a=hy,l=n("%TypeError%"),i=n("%Function.prototype.apply%"),f=n("%Function.prototype.call%"),u=n("%Reflect.apply%",!0)||e.call(f,i),s=n("%Object.defineProperty%",!0),h=n("%Math.max%");if(s)try{s({},"a",{value:1})}catch{s=null}t.exports=function(y){if(typeof y!="function")throw new l("a function is required");var m=u(e,f,arguments);return a(m,1+h(0,y.length-(arguments.length-1)),!0)};var c=function(){return u(e,i,arguments)};s?s(t.exports,"apply",{value:c}):t.exports.apply=c})(pu);var dy=pu.exports,vu=Fr,bu=dy,py=bu(vu("String.prototype.indexOf")),gy=function(e,n){var a=vu(e,!!n);return typeof a=="function"&&py(e,".prototype.")>-1?bu(a):a},Ai=typeof Map=="function"&&Map.prototype,Oo=Object.getOwnPropertyDescriptor&&Ai?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,ba=Ai&&Oo&&typeof Oo.get=="function"?Oo.get:null,gl=Ai&&Map.prototype.forEach,Ti=typeof Set=="function"&&Set.prototype,Ro=Object.getOwnPropertyDescriptor&&Ti?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Sa=Ti&&Ro&&typeof Ro.get=="function"?Ro.get:null,yl=Ti&&Set.prototype.forEach,yy=typeof WeakMap=="function"&&WeakMap.prototype,Dn=yy?WeakMap.prototype.has:null,my=typeof WeakSet=="function"&&WeakSet.prototype,Ln=my?WeakSet.prototype.has:null,vy=typeof WeakRef=="function"&&WeakRef.prototype,ml=vy?WeakRef.prototype.deref:null,by=Boolean.prototype.valueOf,Sy=Object.prototype.toString,Ey=Function.prototype.toString,_y=String.prototype.match,Pi=String.prototype.slice,yr=String.prototype.replace,wy=String.prototype.toUpperCase,vl=String.prototype.toLowerCase,Su=RegExp.prototype.test,bl=Array.prototype.concat,Xt=Array.prototype.join,Oy=Array.prototype.slice,Sl=Math.floor,ri=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Ao=Object.getOwnPropertySymbols,ni=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,en=typeof Symbol=="function"&&typeof Symbol.iterator=="object",it=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===en||!0)?Symbol.toStringTag:null,Eu=Object.prototype.propertyIsEnumerable,El=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function _l(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||Su.call(/e/,e))return e;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var a=t<0?-Sl(-t):Sl(t);if(a!==t){var l=String(a),i=Pi.call(e,l.length+1);return yr.call(l,n,"$&_")+"."+yr.call(yr.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return yr.call(e,n,"$&_")}var ai=Hh,wl=ai.custom,Ol=wu(wl)?wl:null,Ry=function t(e,n,a,l){var i=n||{};if(gr(i,"quoteStyle")&&i.quoteStyle!=="single"&&i.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(gr(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var f=gr(i,"customInspect")?i.customInspect:!0;if(typeof f!="boolean"&&f!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(gr(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(gr(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var u=i.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return Ru(e,i);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var s=String(e);return u?_l(e,s):s}if(typeof e=="bigint"){var h=String(e)+"n";return u?_l(e,h):h}var c=typeof i.depth>"u"?5:i.depth;if(typeof a>"u"&&(a=0),a>=c&&c>0&&typeof e=="object")return oi(e)?"[Array]":"[Object]";var p=Hy(i,a);if(typeof l>"u")l=[];else if(Ou(l,e)>=0)return"[Circular]";function y(re,he,O){if(he&&(l=Oy.call(l),l.push(he)),O){var P={depth:i.depth};return gr(i,"quoteStyle")&&(P.quoteStyle=i.quoteStyle),t(re,P,a+1,l)}return t(re,i,a+1,l)}if(typeof e=="function"&&!Rl(e)){var m=Ly(e),v=ta(e,y);return"[Function"+(m?": "+m:" (anonymous)")+"]"+(v.length>0?" { "+Xt.call(v,", ")+" }":"")}if(wu(e)){var E=en?yr.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):ni.call(e);return typeof e=="object"&&!en?On(E):E}if(qy(e)){for(var T="<"+vl.call(String(e.nodeName)),I=e.attributes||[],Y=0;Y",T}if(oi(e)){if(e.length===0)return"[]";var ne=ta(e,y);return p&&!Gy(ne)?"["+ii(ne,p)+"]":"[ "+Xt.call(ne,", ")+" ]"}if(Py(e)){var J=ta(e,y);return!("cause"in Error.prototype)&&"cause"in e&&!Eu.call(e,"cause")?"{ ["+String(e)+"] "+Xt.call(bl.call("[cause]: "+y(e.cause),J),", ")+" }":J.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+Xt.call(J,", ")+" }"}if(typeof e=="object"&&f){if(Ol&&typeof e[Ol]=="function"&&ai)return ai(e,{depth:c-a});if(f!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(Fy(e)){var C=[];return gl&&gl.call(e,function(re,he){C.push(y(he,e,!0)+" => "+y(re,e))}),Al("Map",ba.call(e),C,p)}if(ky(e)){var H=[];return yl&&yl.call(e,function(re){H.push(y(re,e))}),Al("Set",Sa.call(e),H,p)}if($y(e))return To("WeakMap");if(My(e))return To("WeakSet");if(jy(e))return To("WeakRef");if(xy(e))return On(y(Number(e)));if(Ny(e))return On(y(ri.call(e)));if(Iy(e))return On(by.call(e));if(Cy(e))return On(y(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(e===ot)return"{ [object globalThis] }";if(!Ty(e)&&!Rl(e)){var K=ta(e,y),Z=El?El(e)===Object.prototype:e instanceof Object||e.constructor===Object,oe=e instanceof Object?"":"null prototype",ee=!Z&&it&&Object(e)===e&&it in e?Pi.call(br(e),8,-1):oe?"Object":"",B=Z||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",W=B+(ee||oe?"["+Xt.call(bl.call([],ee||[],oe||[]),": ")+"] ":"");return K.length===0?W+"{}":p?W+"{"+ii(K,p)+"}":W+"{ "+Xt.call(K,", ")+" }"}return String(e)};function _u(t,e,n){var a=(n.quoteStyle||e)==="double"?'"':"'";return a+t+a}function Ay(t){return yr.call(String(t),/"/g,""")}function oi(t){return br(t)==="[object Array]"&&(!it||!(typeof t=="object"&&it in t))}function Ty(t){return br(t)==="[object Date]"&&(!it||!(typeof t=="object"&&it in t))}function Rl(t){return br(t)==="[object RegExp]"&&(!it||!(typeof t=="object"&&it in t))}function Py(t){return br(t)==="[object Error]"&&(!it||!(typeof t=="object"&&it in t))}function Cy(t){return br(t)==="[object String]"&&(!it||!(typeof t=="object"&&it in t))}function xy(t){return br(t)==="[object Number]"&&(!it||!(typeof t=="object"&&it in t))}function Iy(t){return br(t)==="[object Boolean]"&&(!it||!(typeof t=="object"&&it in t))}function wu(t){if(en)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!ni)return!1;try{return ni.call(t),!0}catch{}return!1}function Ny(t){if(!t||typeof t!="object"||!ri)return!1;try{return ri.call(t),!0}catch{}return!1}var Dy=Object.prototype.hasOwnProperty||function(t){return t in this};function gr(t,e){return Dy.call(t,e)}function br(t){return Sy.call(t)}function Ly(t){if(t.name)return t.name;var e=_y.call(Ey.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function Ou(t,e){if(t.indexOf)return t.indexOf(e);for(var n=0,a=t.length;ne.maxStringLength){var n=t.length-e.maxStringLength,a="... "+n+" more character"+(n>1?"s":"");return Ru(Pi.call(t,0,e.maxStringLength),e)+a}var l=yr.call(yr.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Uy);return _u(l,"single",e)}function Uy(t){var e=t.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return n?"\\"+n:"\\x"+(e<16?"0":"")+wy.call(e.toString(16))}function On(t){return"Object("+t+")"}function To(t){return t+" { ? }"}function Al(t,e,n,a){var l=a?ii(n,a):Xt.call(n,", ");return t+" ("+e+") {"+l+"}"}function Gy(t){for(var e=0;e=0)return!1;return!0}function Hy(t,e){var n;if(t.indent===" ")n=" ";else if(typeof t.indent=="number"&&t.indent>0)n=Xt.call(Array(t.indent+1)," ");else return null;return{base:n,prev:Xt.call(Array(e+1),n)}}function ii(t,e){if(t.length===0)return"";var n=` +import{r as Xr}from"./index-CBqU2yxZ.js";import{s as kl,t as Ml,v as li,i as ud,K as ql,b as ui,n as cd,L as fd,d as ci,M as dd,m as hd,N as pd,O as gd,P as Ul,x as yd,Q as md,R as vd,E as bd,S as Sd,g as Ed,A as _d,T as Pn}from"./mapValues-LQZI9uWW.js";import{_ as wd,k as Gl,d as Od,c as Rd,e as Ad,f as Td,i as Pd,j as Cd,l as $n,r as xd}from"./pickBy-Us6u5-To.js";import{a as ua}from"./isPlainObject-DCkRKKtx.js";import{c as ot,a as Oa}from"./_commonjsHelpers-BosuxZz1.js";import{d as Id}from"./index-Cw1G72V2.js";import{e as Nd}from"./index-CKJfshIT.js";import{t as Hl,r as Ra}from"./tiny-invariant.cjs-DxxScMW_.js";import{r as Dd}from"./___vite-browser-external_commonjs-proxy-DRaEfepn.js";import{p as Ld}from"./preview-errors-CzpZmerH.js";import{d as Fd}from"./debounce-BkgZrIul.js";var Yo={exports:{}},fi=Object.defineProperty,$d=Object.getOwnPropertyDescriptor,jd=Object.getOwnPropertyNames,kd=Object.prototype.hasOwnProperty,Md=(t,e)=>{for(var n in e)fi(t,n,{get:e[n],enumerable:!0})},qd=(t,e,n,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let l of jd(e))!kd.call(t,l)&&l!==n&&fi(t,l,{get:()=>e[l],enumerable:!(a=$d(e,l))||a.enumerable});return t},Ud=t=>qd(fi({},"__esModule",{value:!0}),t),Bl={};Md(Bl,{Addon_TypesEnum:()=>Wl});var di=Ud(Bl),Wl=(t=>(t.TAB="tab",t.PANEL="panel",t.TOOL="tool",t.TOOLEXTRA="toolextra",t.PREVIEW="preview",t.experimental_PAGE="page",t.experimental_SIDEBAR_BOTTOM="sidebar-bottom",t.experimental_SIDEBAR_TOP="sidebar-top",t.NOTES_ELEMENT="notes-element",t))(Wl||{}),Gd=kl,Hd=Ml;function Bd(t,e,n){(n!==void 0&&!Hd(t[e],n)||n===void 0&&!(e in t))&&Gd(t,e,n)}var Yl=Bd,Wd=li,Yd=ud;function Vd(t){return Yd(t)&&Wd(t)}var zd=Vd;function Kd(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}var Vl=Kd,Xd=wd,Qd=Gl;function Jd(t){return Xd(t,Qd(t))}var Zd=Jd,Is=Yl,eh=Od,th=Rd,rh=Ad,nh=Td,Ns=ql,Ds=ui,ah=zd,oh=cd,ih=fd,sh=ci,lh=ua,uh=dd,Ls=Vl,ch=Zd;function fh(t,e,n,a,l,i,f){var u=Ls(t,n),s=Ls(e,n),d=f.get(s);if(d){Is(t,n,d);return}var c=i?i(u,s,n+"",t,e,f):void 0,p=c===void 0;if(p){var y=Ds(s),m=!y&&oh(s),v=!y&&!m&&uh(s);c=s,y||m||v?Ds(u)?c=u:ah(u)?c=rh(u):m?(p=!1,c=eh(s,!0)):v?(p=!1,c=th(s,!0)):c=[]:lh(s)||Ns(s)?(c=u,Ns(u)?c=ch(u):(!sh(u)||ih(u))&&(c=nh(s))):p=!1}p&&(f.set(s,c),l(c,s,a,i,f),f.delete(s)),Is(t,n,c)}var dh=fh,hh=hd,ph=Yl,gh=pd,yh=dh,mh=ci,vh=Gl,bh=Vl;function zl(t,e,n,a,l){t!==e&&gh(e,function(i,f){if(l||(l=new hh),mh(i))yh(t,e,f,n,zl,a,l);else{var u=a?a(bh(t,f),i,f+"",t,e,l):void 0;u===void 0&&(u=i),ph(t,f,u)}},vh)}var Sh=zl;function Eh(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}var _h=Eh,wh=_h,Fs=Math.max;function Oh(t,e,n){return e=Fs(e===void 0?t.length-1:e,0),function(){for(var a=arguments,l=-1,i=Fs(a.length-e,0),f=Array(i);++l0){if(++e>=Ih)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var Fh=Lh,$h=xh,jh=Fh,kh=jh($h),Xl=kh,Mh=Ul,qh=Kl,Uh=Xl;function Gh(t,e){return Uh(qh(t,e,Mh),t+"")}var Hh=Gh,Bh=Ml,Wh=li,Yh=yd,Vh=ci;function zh(t,e,n){if(!Vh(n))return!1;var a=typeof e;return(a=="number"?Wh(n)&&Yh(e,n.length):a=="string"&&e in n)?Bh(n[e],t):!1}var Kh=zh,Xh=Hh,Qh=Kh;function Jh(t){return Xh(function(e,n){var a=-1,l=n.length,i=l>1?n[l-1]:void 0,f=l>2?n[2]:void 0;for(i=t.length>3&&typeof i=="function"?(l--,i):void 0,f&&Qh(n[0],n[1],f)&&(i=l<3?void 0:i,l=1),e=Object(e);++a{for(var n in e)hi(t,n,{get:e[n],enumerable:!0})},sp=(t,e,n,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let l of ap(e))!op.call(t,l)&&l!==n&&hi(t,l,{get:()=>e[l],enumerable:!(a=np(e,l))||a.enumerable});return t},lp=t=>sp(hi({},"__esModule",{value:!0}),t),Jl={};ip(Jl,{CHANNEL_CREATED:()=>cp,CONFIG_ERROR:()=>fp,CURRENT_STORY_WAS_SET:()=>dp,DOCS_PREPARED:()=>hp,DOCS_RENDERED:()=>pp,FORCE_REMOUNT:()=>yp,FORCE_RE_RENDER:()=>gp,GLOBALS_UPDATED:()=>mp,IGNORED_EXCEPTION:()=>eg,NAVIGATE_URL:()=>vp,PLAY_FUNCTION_THREW_EXCEPTION:()=>bp,PRELOAD_ENTRIES:()=>Sp,PREVIEW_BUILDER_PROGRESS:()=>Ep,PREVIEW_KEYDOWN:()=>_p,REGISTER_SUBSCRIPTION:()=>wp,REQUEST_WHATS_NEW_DATA:()=>Kp,RESET_STORY_ARGS:()=>Op,RESULT_WHATS_NEW_DATA:()=>Xp,SELECT_STORY:()=>Rp,SET_CONFIG:()=>Ap,SET_CURRENT_STORY:()=>Tp,SET_GLOBALS:()=>Pp,SET_INDEX:()=>Cp,SET_STORIES:()=>xp,SET_WHATS_NEW_CACHE:()=>Qp,SHARED_STATE_CHANGED:()=>Ip,SHARED_STATE_SET:()=>Np,STORIES_COLLAPSE_ALL:()=>Dp,STORIES_EXPAND_ALL:()=>Lp,STORY_ARGS_UPDATED:()=>Fp,STORY_CHANGED:()=>$p,STORY_ERRORED:()=>jp,STORY_INDEX_INVALIDATED:()=>kp,STORY_MISSING:()=>Mp,STORY_PREPARED:()=>qp,STORY_RENDERED:()=>Gp,STORY_RENDER_PHASE_CHANGED:()=>Up,STORY_SPECIFIED:()=>Hp,STORY_THREW_EXCEPTION:()=>Bp,STORY_UNCHANGED:()=>Wp,TELEMETRY_ERROR:()=>Zp,TOGGLE_WHATS_NEW_NOTIFICATIONS:()=>Jp,UPDATE_GLOBALS:()=>Yp,UPDATE_QUERY_PARAMS:()=>Vp,UPDATE_STORY_ARGS:()=>zp,default:()=>up});var Qe=lp(Jl),pi=(t=>(t.CHANNEL_CREATED="channelCreated",t.CONFIG_ERROR="configError",t.STORY_INDEX_INVALIDATED="storyIndexInvalidated",t.STORY_SPECIFIED="storySpecified",t.SET_CONFIG="setConfig",t.SET_STORIES="setStories",t.SET_INDEX="setIndex",t.SET_CURRENT_STORY="setCurrentStory",t.CURRENT_STORY_WAS_SET="currentStoryWasSet",t.FORCE_RE_RENDER="forceReRender",t.FORCE_REMOUNT="forceRemount",t.PRELOAD_ENTRIES="preloadStories",t.STORY_PREPARED="storyPrepared",t.DOCS_PREPARED="docsPrepared",t.STORY_CHANGED="storyChanged",t.STORY_UNCHANGED="storyUnchanged",t.STORY_RENDERED="storyRendered",t.STORY_MISSING="storyMissing",t.STORY_ERRORED="storyErrored",t.STORY_THREW_EXCEPTION="storyThrewException",t.STORY_RENDER_PHASE_CHANGED="storyRenderPhaseChanged",t.PLAY_FUNCTION_THREW_EXCEPTION="playFunctionThrewException",t.UPDATE_STORY_ARGS="updateStoryArgs",t.STORY_ARGS_UPDATED="storyArgsUpdated",t.RESET_STORY_ARGS="resetStoryArgs",t.SET_GLOBALS="setGlobals",t.UPDATE_GLOBALS="updateGlobals",t.GLOBALS_UPDATED="globalsUpdated",t.REGISTER_SUBSCRIPTION="registerSubscription",t.PREVIEW_KEYDOWN="previewKeydown",t.PREVIEW_BUILDER_PROGRESS="preview_builder_progress",t.SELECT_STORY="selectStory",t.STORIES_COLLAPSE_ALL="storiesCollapseAll",t.STORIES_EXPAND_ALL="storiesExpandAll",t.DOCS_RENDERED="docsRendered",t.SHARED_STATE_CHANGED="sharedStateChanged",t.SHARED_STATE_SET="sharedStateSet",t.NAVIGATE_URL="navigateUrl",t.UPDATE_QUERY_PARAMS="updateQueryParams",t.REQUEST_WHATS_NEW_DATA="requestWhatsNewData",t.RESULT_WHATS_NEW_DATA="resultWhatsNewData",t.SET_WHATS_NEW_CACHE="setWhatsNewCache",t.TOGGLE_WHATS_NEW_NOTIFICATIONS="toggleWhatsNewNotifications",t.TELEMETRY_ERROR="telemetryError",t))(pi||{}),up=pi,{CHANNEL_CREATED:cp,CONFIG_ERROR:fp,CURRENT_STORY_WAS_SET:dp,DOCS_PREPARED:hp,DOCS_RENDERED:pp,FORCE_RE_RENDER:gp,FORCE_REMOUNT:yp,GLOBALS_UPDATED:mp,NAVIGATE_URL:vp,PLAY_FUNCTION_THREW_EXCEPTION:bp,PRELOAD_ENTRIES:Sp,PREVIEW_BUILDER_PROGRESS:Ep,PREVIEW_KEYDOWN:_p,REGISTER_SUBSCRIPTION:wp,RESET_STORY_ARGS:Op,SELECT_STORY:Rp,SET_CONFIG:Ap,SET_CURRENT_STORY:Tp,SET_GLOBALS:Pp,SET_INDEX:Cp,SET_STORIES:xp,SHARED_STATE_CHANGED:Ip,SHARED_STATE_SET:Np,STORIES_COLLAPSE_ALL:Dp,STORIES_EXPAND_ALL:Lp,STORY_ARGS_UPDATED:Fp,STORY_CHANGED:$p,STORY_ERRORED:jp,STORY_INDEX_INVALIDATED:kp,STORY_MISSING:Mp,STORY_PREPARED:qp,STORY_RENDER_PHASE_CHANGED:Up,STORY_RENDERED:Gp,STORY_SPECIFIED:Hp,STORY_THREW_EXCEPTION:Bp,STORY_UNCHANGED:Wp,UPDATE_GLOBALS:Yp,UPDATE_QUERY_PARAMS:Vp,UPDATE_STORY_ARGS:zp,REQUEST_WHATS_NEW_DATA:Kp,RESULT_WHATS_NEW_DATA:Xp,SET_WHATS_NEW_CACHE:Qp,TOGGLE_WHATS_NEW_NOTIFICATIONS:Jp,TELEMETRY_ERROR:Zp}=pi,eg=new Error("ignoredException"),gi=Object.defineProperty,tg=Object.getOwnPropertyDescriptor,rg=Object.getOwnPropertyNames,ng=Object.prototype.hasOwnProperty,ag=(t,e)=>{for(var n in e)gi(t,n,{get:e[n],enumerable:!0})},og=(t,e,n,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let l of rg(e))!ng.call(t,l)&&l!==n&&gi(t,l,{get:()=>e[l],enumerable:!(a=tg(e,l))||a.enumerable});return t},ig=t=>og(gi({},"__esModule",{value:!0}),t),Zl={};ag(Zl,{global:()=>sg});var Ne=ig(Zl),sg=(()=>{let t;return typeof window<"u"?t=window:typeof globalThis<"u"?t=globalThis:typeof ot<"u"?t=ot:typeof self<"u"?t=self:t={},t})(),yi=Object.defineProperty,lg=Object.getOwnPropertyDescriptor,ug=Object.getOwnPropertyNames,cg=Object.prototype.hasOwnProperty,fg=(t,e)=>{for(var n in e)yi(t,n,{get:e[n],enumerable:!0})},dg=(t,e,n,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let l of ug(e))!cg.call(t,l)&&l!==n&&yi(t,l,{get:()=>e[l],enumerable:!(a=lg(e,l))||a.enumerable});return t},hg=t=>dg(yi({},"__esModule",{value:!0}),t),eu={};fg(eu,{deprecate:()=>mg,logger:()=>ya,once:()=>ft,pretty:()=>$t});var je=hg(eu),pg=Ne,{LOGLEVEL:gg}=pg.global,pr={trace:1,debug:2,info:3,warn:4,error:5,silent:10},yg=gg,Br=pr[yg]||pr.info,ya={trace:(t,...e)=>{Br<=pr.trace&&console.trace(t,...e)},debug:(t,...e)=>{Br<=pr.debug&&console.debug(t,...e)},info:(t,...e)=>{Br<=pr.info&&console.info(t,...e)},warn:(t,...e)=>{Br<=pr.warn&&console.warn(t,...e)},error:(t,...e)=>{Br<=pr.error&&console.error(t,...e)},log:(t,...e)=>{Br(e,...n)=>{if(!Vo.has(e))return Vo.add(e),ya[t](e,...n)};ft.clear=()=>Vo.clear();ft.trace=ft("trace");ft.debug=ft("debug");ft.info=ft("info");ft.warn=ft("warn");ft.error=ft("error");ft.log=ft("log");var mg=ft("warn"),$t=t=>(...e)=>{let n=[];if(e.length){let a=//gi,l=/<\/span>/gi,i;for(n.push(e[0].replace(a,"%c").replace(l,"%c"));i=a.exec(e[0]);)n.push(i[2]),n.push("");for(let f=1;fa.length(this._area)&&(s--,u--)}return f||this},keys:function(i){return this.each(function(f,u,s){s.push(f)},i||[])},get:function(i,f){var u=a.get(this._area,this._in(i)),s;return typeof f=="function"&&(s=f,f=null),u!==null?a.parse(u,s):f??u},getAll:function(i){return this.each(function(f,u,s){s[f]=u},i||{})},transact:function(i,f,u){var s=this.get(i,u),d=f(s);return this.set(i,d===void 0?s:d),this},set:function(i,f,u){var s=this.get(i),d;return s!=null&&u===!1?f:(typeof u=="function"&&(d=u,u=void 0),a.set(this._area,this._in(i),a.stringify(f,d),u)||s)},setAll:function(i,f){var u,s;for(var d in i)s=i[d],this.set(d,s,f)!==s&&(u=!0);return u},add:function(i,f,u){var s=this.get(i);if(s instanceof Array)f=s.concat(f);else if(s!==null){var d=typeof s;if(d===typeof f&&d==="object"){for(var c in f)s[c]=f[c];f=s}else f=s+f}return a.set(this._area,this._in(i),a.stringify(f,u)),f},remove:function(i,f){var u=this.get(i,f);return a.remove(this._area,this._in(i)),u},clear:function(){return this._ns?this.each(function(i){a.remove(this._area,this._in(i))},1):a.clear(this._area),this},clearAll:function(){var i=this._area;for(var f in a.areas)a.areas.hasOwnProperty(f)&&(this._area=a.areas[f],this.clear());return this._area=i,this},_in:function(i){return typeof i!="string"&&(i=a.stringify(i)),this._ns?this._ns+i:i},_out:function(i){return this._ns?i&&i.indexOf(this._ns)===0?i.substring(this._ns.length):void 0:i}},storage:function(i){return a.inherit(a.storageAPI,{items:{},name:i})},storageAPI:{length:0,has:function(i){return this.items.hasOwnProperty(i)},key:function(i){var f=0;for(var u in this.items)if(this.has(u)&&i===f++)return u},setItem:function(i,f){this.has(i)||this.length++,this.items[i]=f},removeItem:function(i){this.has(i)&&(delete this.items[i],this.length--)},getItem:function(i){return this.has(i)?this.items[i]:null},clear:function(){for(var i in this.items)this.removeItem(i)}}},l=a.Store("local",function(){try{return localStorage}catch{}}());l.local=l,l._=a,l.area("session",function(){try{return sessionStorage}catch{}}()),l.area("page",a.storage("page")),typeof n=="function"&&n.amd!==void 0?n("store2",[],function(){return l}):t.exports?t.exports=l:(e.store&&(a.conflict=e.store),e.store=l)})(ot,ot&&ot.define)})(tu);var vg=tu.exports;const mi=Oa(Pd);var bg=md;function Sg(t,e){return bg(t,e)}var Eg=Sg;const rr=Oa(Id),ct=Oa(Nd);var ro,js;function _g(){if(js)return ro;js=1;function t(e,n,a,l){for(var i=-1,f=e==null?0:e.length;++i0&&i(c)?l>1?n(c,l-1,i,f,u):t(u,c):f||(u[u.length]=c)}return u}return co=n,co}var fo,Ys;function Ig(){if(Ys)return fo;Ys=1;var t=xg();function e(n){var a=n==null?0:n.length;return a?t(n,1):[]}return fo=e,fo}var ho,Vs;function Ng(){if(Vs)return ho;Vs=1;var t=Ig(),e=Kl,n=Xl;function a(l){return n(e(l,void 0,t),l+"")}return ho=a,ho}var po,zs;function ru(){if(zs)return po;zs=1;var t=Pg(),e=Ng(),n=e(function(a,l){return a==null?{}:t(a,l)});return po=n,po}var go,Ks;function Dg(){if(Ks)return go;Ks=1;var t=Object.defineProperty,e=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,l=(R,L)=>{for(var Q in L)t(R,Q,{get:L[Q],enumerable:!0})},i=(R,L,Q,fe)=>{if(L&&typeof L=="object"||typeof L=="function")for(let Ee of n(L))!a.call(R,Ee)&&Ee!==Q&&t(R,Ee,{get:()=>L[Ee],enumerable:!(fe=e(L,Ee))||fe.enumerable});return R},f=R=>i(t({},"__esModule",{value:!0}),R),u={};l(u,{create:()=>wr,themes:()=>_t}),go=f(u);function s(){return s=Object.assign?Object.assign.bind():function(R){for(var L=1;L"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 E(R,L,Q){return v()?E=Reflect.construct.bind():E=function(fe,Ee,Ce){var De=[null];De.push.apply(De,Ee);var We=Function.bind.apply(fe,De),Ye=new We;return Ce&&c(Ye,Ce.prototype),Ye},E.apply(null,arguments)}function T(R){var L=typeof Map=="function"?new Map:void 0;return T=function(Q){if(Q===null||!m(Q))return Q;if(typeof Q!="function")throw new TypeError("Super expression must either be null or a function");if(typeof L<"u"){if(L.has(Q))return L.get(Q);L.set(Q,fe)}function fe(){return E(Q,arguments,y(this).constructor)}return fe.prototype=Object.create(Q.prototype,{constructor:{value:fe,enumerable:!1,writable:!0,configurable:!0}}),c(fe,Q)},T(R)}var I=function(R){p(L,R);function L(Q){var fe;return fe=R.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+Q+" for more information.")||this,d(fe)}return L}(T(Error));function Y(R){return Math.round(R*255)}function ne(R,L,Q){return Y(R)+","+Y(L)+","+Y(Q)}function J(R,L,Q,fe){if(fe===void 0&&(fe=ne),L===0)return fe(Q,Q,Q);var Ee=(R%360+360)%360/60,Ce=(1-Math.abs(2*Q-1))*L,De=Ce*(1-Math.abs(Ee%2-1)),We=0,Ye=0,pt=0;Ee>=0&&Ee<1?(We=Ce,Ye=De):Ee>=1&&Ee<2?(We=De,Ye=Ce):Ee>=2&&Ee<3?(Ye=Ce,pt=De):Ee>=3&&Ee<4?(Ye=De,pt=Ce):Ee>=4&&Ee<5?(We=De,pt=Ce):Ee>=5&&Ee<6&&(We=Ce,pt=De);var wt=Q-Ce/2,Dt=We+wt,gt=Ye+wt,Or=pt+wt;return fe(Dt,gt,Or)}var C={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",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",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",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:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",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:"639",red:"f00",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:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function H(R){if(typeof R!="string")return R;var L=R.toLowerCase();return C[L]?"#"+C[L]:R}var K=/^#[a-fA-F0-9]{6}$/,Z=/^#[a-fA-F0-9]{8}$/,oe=/^#[a-fA-F0-9]{3}$/,ee=/^#[a-fA-F0-9]{4}$/,B=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,W=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,re=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,de=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function O(R){if(typeof R!="string")throw new I(3);var L=H(R);if(L.match(K))return{red:parseInt(""+L[1]+L[2],16),green:parseInt(""+L[3]+L[4],16),blue:parseInt(""+L[5]+L[6],16)};if(L.match(Z)){var Q=parseFloat((parseInt(""+L[7]+L[8],16)/255).toFixed(2));return{red:parseInt(""+L[1]+L[2],16),green:parseInt(""+L[3]+L[4],16),blue:parseInt(""+L[5]+L[6],16),alpha:Q}}if(L.match(oe))return{red:parseInt(""+L[1]+L[1],16),green:parseInt(""+L[2]+L[2],16),blue:parseInt(""+L[3]+L[3],16)};if(L.match(ee)){var fe=parseFloat((parseInt(""+L[4]+L[4],16)/255).toFixed(2));return{red:parseInt(""+L[1]+L[1],16),green:parseInt(""+L[2]+L[2],16),blue:parseInt(""+L[3]+L[3],16),alpha:fe}}var Ee=B.exec(L);if(Ee)return{red:parseInt(""+Ee[1],10),green:parseInt(""+Ee[2],10),blue:parseInt(""+Ee[3],10)};var Ce=W.exec(L.substring(0,50));if(Ce)return{red:parseInt(""+Ce[1],10),green:parseInt(""+Ce[2],10),blue:parseInt(""+Ce[3],10),alpha:parseFloat(""+Ce[4])>1?parseFloat(""+Ce[4])/100:parseFloat(""+Ce[4])};var De=re.exec(L);if(De){var We=parseInt(""+De[1],10),Ye=parseInt(""+De[2],10)/100,pt=parseInt(""+De[3],10)/100,wt="rgb("+J(We,Ye,pt)+")",Dt=B.exec(wt);if(!Dt)throw new I(4,L,wt);return{red:parseInt(""+Dt[1],10),green:parseInt(""+Dt[2],10),blue:parseInt(""+Dt[3],10)}}var gt=de.exec(L.substring(0,50));if(gt){var Or=parseInt(""+gt[1],10),un=parseInt(""+gt[2],10)/100,cn=parseInt(""+gt[3],10)/100,Rr="rgb("+J(Or,un,cn)+")",lr=B.exec(Rr);if(!lr)throw new I(4,L,Rr);return{red:parseInt(""+lr[1],10),green:parseInt(""+lr[2],10),blue:parseInt(""+lr[3],10),alpha:parseFloat(""+gt[4])>1?parseFloat(""+gt[4])/100:parseFloat(""+gt[4])}}throw new I(5)}function P(R){var L=R.red/255,Q=R.green/255,fe=R.blue/255,Ee=Math.max(L,Q,fe),Ce=Math.min(L,Q,fe),De=(Ee+Ce)/2;if(Ee===Ce)return R.alpha!==void 0?{hue:0,saturation:0,lightness:De,alpha:R.alpha}:{hue:0,saturation:0,lightness:De};var We,Ye=Ee-Ce,pt=De>.5?Ye/(2-Ee-Ce):Ye/(Ee+Ce);switch(Ee){case L:We=(Q-fe)/Ye+(Q=1?le(R,L,Q):"rgba("+J(R,L,Q)+","+fe+")";if(typeof R=="object"&&L===void 0&&Q===void 0&&fe===void 0)return R.alpha>=1?le(R.hue,R.saturation,R.lightness):"rgba("+J(R.hue,R.saturation,R.lightness)+","+R.alpha+")";throw new I(2)}function Be(R,L,Q){if(typeof R=="number"&&typeof L=="number"&&typeof Q=="number")return V("#"+X(R)+X(L)+X(Q));if(typeof R=="object"&&L===void 0&&Q===void 0)return V("#"+X(R.red)+X(R.green)+X(R.blue));throw new I(6)}function At(R,L,Q,fe){if(typeof R=="string"&&typeof L=="number"){var Ee=O(R);return"rgba("+Ee.red+","+Ee.green+","+Ee.blue+","+L+")"}else{if(typeof R=="number"&&typeof L=="number"&&typeof Q=="number"&&typeof fe=="number")return fe>=1?Be(R,L,Q):"rgba("+R+","+L+","+Q+","+fe+")";if(typeof R=="object"&&L===void 0&&Q===void 0&&fe===void 0)return R.alpha>=1?Be(R.red,R.green,R.blue):"rgba("+R.red+","+R.green+","+R.blue+","+R.alpha+")"}throw new I(7)}var qt=function(R){return typeof R.red=="number"&&typeof R.green=="number"&&typeof R.blue=="number"&&(typeof R.alpha!="number"||typeof R.alpha>"u")},Sr=function(R){return typeof R.red=="number"&&typeof R.green=="number"&&typeof R.blue=="number"&&typeof R.alpha=="number"},on=function(R){return typeof R.hue=="number"&&typeof R.saturation=="number"&&typeof R.lightness=="number"&&(typeof R.alpha!="number"||typeof R.alpha>"u")},Nt=function(R){return typeof R.hue=="number"&&typeof R.saturation=="number"&&typeof R.lightness=="number"&&typeof R.alpha=="number"};function st(R){if(typeof R!="object")throw new I(8);if(Sr(R))return At(R);if(qt(R))return Be(R);if(Nt(R))return Te(R);if(on(R))return _e(R);throw new I(8)}function Qt(R,L,Q){return function(){var fe=Q.concat(Array.prototype.slice.call(arguments));return fe.length>=L?R.apply(this,fe):Qt(R,L,fe)}}function Et(R){return Qt(R,R.length,[])}function Jt(R,L,Q){return Math.max(R,Math.min(L,Q))}function jr(R,L){if(L==="transparent")return L;var Q=F(L);return st(s({},Q,{lightness:Jt(0,1,Q.lightness-parseFloat(R))}))}Et(jr);function ir(R,L){if(L==="transparent")return L;var Q=F(L);return st(s({},Q,{lightness:Jt(0,1,Q.lightness+parseFloat(R))}))}Et(ir);function sn(R,L){if(L==="transparent")return L;var Q=O(L),fe=typeof Q.alpha=="number"?Q.alpha:1,Ee=s({},Q,{alpha:Jt(0,1,+(fe*100-parseFloat(R)*100).toFixed(2)/100)});return At(Ee)}var kr=Et(sn),Mr=kr,$e={primary:"#FF4785",secondary:"#029CFD",tertiary:"#FAFBFC",ancillary:"#22a699",orange:"#FC521F",gold:"#FFAE00",green:"#66BF3C",seafoam:"#37D5D3",purple:"#6F2CAC",ultraviolet:"#2A0481",lightest:"#FFFFFF",lighter:"#F7FAFC",light:"#EEF3F6",mediumlight:"#ECF4F9",medium:"#D9E8F2",mediumdark:"#73828C",dark:"#5C6870",darker:"#454E54",darkest:"#2E3438",border:"hsla(203, 50%, 30%, 0.15)",positive:"#66BF3C",negative:"#FF4400",warning:"#E69D00",critical:"#FFFFFF",defaultText:"#2E3438",inverseText:"#FFFFFF",positiveText:"#448028",negativeText:"#D43900",warningText:"#A15C20"},Ut={app:"#F6F9FC",bar:$e.lightest,content:$e.lightest,preview:$e.lightest,gridCellSize:10,hoverable:Mr(.9,$e.secondary),positive:"#E1FFD4",negative:"#FEDED2",warning:"#FFF5CF",critical:"#FF4400"},Tt={fonts:{base:['"Nunito Sans"',"-apple-system",'".SFNSText-Regular"','"San Francisco"',"BlinkMacSystemFont",'"Segoe UI"','"Helvetica Neue"',"Helvetica","Arial","sans-serif"].join(", "),mono:["ui-monospace","Menlo","Monaco",'"Roboto Mono"','"Oxygen Mono"','"Ubuntu Monospace"','"Source Code Pro"','"Droid Sans Mono"','"Courier New"',"monospace"].join(", ")},weight:{regular:400,bold:700},size:{s1:12,s2:14,s3:16,m1:20,m2:24,m3:28,l1:32,l2:40,l3:48,code:90}},He={base:"light",colorPrimary:"#FF4785",colorSecondary:"#029CFD",appBg:Ut.app,appContentBg:$e.lightest,appPreviewBg:$e.lightest,appBorderColor:$e.border,appBorderRadius:4,fontBase:Tt.fonts.base,fontCode:Tt.fonts.mono,textColor:$e.darkest,textInverseColor:$e.lightest,textMutedColor:$e.dark,barTextColor:$e.mediumdark,barHoverColor:$e.secondary,barSelectedColor:$e.secondary,barBg:$e.lightest,buttonBg:Ut.app,buttonBorder:$e.medium,booleanBg:$e.mediumlight,booleanSelectedBg:$e.lightest,inputBg:$e.lightest,inputBorder:$e.border,inputTextColor:$e.darkest,inputBorderRadius:4},Pt=He,Er={base:"dark",colorPrimary:"#FF4785",colorSecondary:"#029CFD",appBg:"#222425",appContentBg:"#1B1C1D",appPreviewBg:$e.lightest,appBorderColor:"rgba(255,255,255,.1)",appBorderRadius:4,fontBase:Tt.fonts.base,fontCode:Tt.fonts.mono,textColor:"#C9CDCF",textInverseColor:"#222425",textMutedColor:"#798186",barTextColor:"#798186",barHoverColor:$e.secondary,barSelectedColor:$e.secondary,barBg:"#292C2E",buttonBg:"#222425",buttonBorder:"rgba(255,255,255,.1)",booleanBg:"#222425",booleanSelectedBg:"#2E3438",inputBg:"#1B1C1D",inputBorder:"rgba(255,255,255,.1)",inputTextColor:$e.lightest,inputBorderRadius:4},_r=Er,qr=Ne,{window:sr}=qr.global,ln=()=>!sr||!sr.matchMedia?"light":sr.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",_t={light:Pt,dark:_r,normal:Pt},ht=ln(),wr=(R={base:ht},L)=>{let Q={..._t[ht],..._t[R.base]||{},...R,base:_t[R.base]?R.base:ht};return{...L,...Q,barSelectedColor:R.barSelectedColor||Q.colorSecondary}};return go}var Lg=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},n=Symbol("test"),a=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(a)!=="[object Symbol]")return!1;var l=42;e[n]=l;for(n in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var i=Object.getOwnPropertySymbols(e);if(i.length!==1||i[0]!==n||!Object.prototype.propertyIsEnumerable.call(e,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var f=Object.getOwnPropertyDescriptor(e,n);if(f.value!==l||f.enumerable!==!0)return!1}return!0},Xs=typeof Symbol<"u"&&Symbol,Fg=Lg,$g=function(){return typeof Xs!="function"||typeof Symbol!="function"||typeof Xs("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Fg()},Qs={foo:{}},jg=Object,kg=function(){return{__proto__:Qs}.foo===Qs.foo&&!({__proto__:null}instanceof jg)},Mg="Function.prototype.bind called on incompatible ",qg=Object.prototype.toString,Ug=Math.max,Gg="[object Function]",Js=function(e,n){for(var a=[],l=0;l"u"||!Ze?Ae:Ze(Uint8Array),Nr={"%AggregateError%":typeof AggregateError>"u"?Ae:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Ae:ArrayBuffer,"%ArrayIteratorPrototype%":Wr&&Ze?Ze([][Symbol.iterator]()):Ae,"%AsyncFromSyncIteratorPrototype%":Ae,"%AsyncFunction%":zr,"%AsyncGenerator%":zr,"%AsyncGeneratorFunction%":zr,"%AsyncIteratorPrototype%":zr,"%Atomics%":typeof Atomics>"u"?Ae:Atomics,"%BigInt%":typeof BigInt>"u"?Ae:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Ae:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Ae:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Ae:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?Ae:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Ae:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Ae:FinalizationRegistry,"%Function%":nu,"%GeneratorFunction%":zr,"%Int8Array%":typeof Int8Array>"u"?Ae:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Ae:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Ae:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Wr&&Ze?Ze(Ze([][Symbol.iterator]())):Ae,"%JSON%":typeof JSON=="object"?JSON:Ae,"%Map%":typeof Map>"u"?Ae:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Wr||!Ze?Ae:Ze(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Ae:Promise,"%Proxy%":typeof Proxy>"u"?Ae:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?Ae:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Ae:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Wr||!Ze?Ae:Ze(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Ae:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Wr&&Ze?Ze(""[Symbol.iterator]()):Ae,"%Symbol%":Wr?Symbol:Ae,"%SyntaxError%":Zr,"%ThrowTypeError%":Qg,"%TypedArray%":Zg,"%TypeError%":Jr,"%Uint8Array%":typeof Uint8Array>"u"?Ae:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Ae:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Ae:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Ae:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?Ae:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Ae:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Ae:WeakSet};if(Ze)try{null.error}catch(t){var ey=Ze(Ze(t));Nr["%Error.prototype%"]=ey}var ty=function t(e){var n;if(e==="%AsyncFunction%")n=yo("async function () {}");else if(e==="%GeneratorFunction%")n=yo("function* () {}");else if(e==="%AsyncGeneratorFunction%")n=yo("async function* () {}");else if(e==="%AsyncGenerator%"){var a=t("%AsyncGeneratorFunction%");a&&(n=a.prototype)}else if(e==="%AsyncIteratorPrototype%"){var l=t("%AsyncGenerator%");l&&Ze&&(n=Ze(l.prototype))}return Nr[e]=n,n},Zs={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},kn=vi,ma=Xg,ry=kn.call(Function.call,Array.prototype.concat),ny=kn.call(Function.apply,Array.prototype.splice),el=kn.call(Function.call,String.prototype.replace),va=kn.call(Function.call,String.prototype.slice),ay=kn.call(Function.call,RegExp.prototype.exec),oy=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,iy=/\\(\\)?/g,sy=function(e){var n=va(e,0,1),a=va(e,-1);if(n==="%"&&a!=="%")throw new Zr("invalid intrinsic syntax, expected closing `%`");if(a==="%"&&n!=="%")throw new Zr("invalid intrinsic syntax, expected opening `%`");var l=[];return el(e,oy,function(i,f,u,s){l[l.length]=u?el(s,iy,"$1"):f||i}),l},ly=function(e,n){var a=e,l;if(ma(Zs,a)&&(l=Zs[a],a="%"+l[0]+"%"),ma(Nr,a)){var i=Nr[a];if(i===zr&&(i=ty(a)),typeof i>"u"&&!n)throw new Jr("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:l,name:a,value:i}}throw new Zr("intrinsic "+e+" does not exist!")},Fr=function(e,n){if(typeof e!="string"||e.length===0)throw new Jr("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new Jr('"allowMissing" argument must be a boolean');if(ay(/^%?[^%]*%?$/,e)===null)throw new Zr("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var a=sy(e),l=a.length>0?a[0]:"",i=ly("%"+l+"%",n),f=i.name,u=i.value,s=!1,d=i.alias;d&&(l=d[0],ny(a,ry([0,1],d)));for(var c=1,p=!0;c=a.length){var E=Ir(u,y);p=!!E,p&&"get"in E&&!("originalValue"in E.get)?u=E.get:u=u[y]}else p=ma(u,y),u=u[y];p&&!s&&(Nr[f]=u)}}return u},au={exports:{}},uy=Fr,zo=uy("%Object.defineProperty%",!0),Ko=function(){if(zo)try{return zo({},"a",{value:1}),!0}catch{return!1}return!1};Ko.hasArrayLengthDefineBug=function(){if(!Ko())return null;try{return zo([],"length",{value:1}).length!==1}catch{return!0}};var ou=Ko,cy=Fr,ca=cy("%Object.getOwnPropertyDescriptor%",!0);if(ca)try{ca([],"length")}catch{ca=null}var iu=ca,fy=ou(),bi=Fr,Nn=fy&&bi("%Object.defineProperty%",!0);if(Nn)try{Nn({},"a",{value:1})}catch{Nn=!1}var dy=bi("%SyntaxError%"),Yr=bi("%TypeError%"),tl=iu,hy=function(e,n,a){if(!e||typeof e!="object"&&typeof e!="function")throw new Yr("`obj` must be an object or a function`");if(typeof n!="string"&&typeof n!="symbol")throw new Yr("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Yr("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Yr("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Yr("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Yr("`loose`, if provided, must be a boolean");var l=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,f=arguments.length>5?arguments[5]:null,u=arguments.length>6?arguments[6]:!1,s=!!tl&&tl(e,n);if(Nn)Nn(e,n,{configurable:f===null&&s?s.configurable:!f,enumerable:l===null&&s?s.enumerable:!l,value:a,writable:i===null&&s?s.writable:!i});else if(u||!l&&!i&&!f)e[n]=a;else throw new dy("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},su=Fr,rl=hy,py=ou(),nl=iu,al=su("%TypeError%"),gy=su("%Math.floor%"),yy=function(e,n){if(typeof e!="function")throw new al("`fn` is not a function");if(typeof n!="number"||n<0||n>4294967295||gy(n)!==n)throw new al("`length` must be a positive 32-bit integer");var a=arguments.length>2&&!!arguments[2],l=!0,i=!0;if("length"in e&&nl){var f=nl(e,"length");f&&!f.configurable&&(l=!1),f&&!f.writable&&(i=!1)}return(l||i||!a)&&(py?rl(e,"length",n,!0,!0):rl(e,"length",n)),e};(function(t){var e=vi,n=Fr,a=yy,l=n("%TypeError%"),i=n("%Function.prototype.apply%"),f=n("%Function.prototype.call%"),u=n("%Reflect.apply%",!0)||e.call(f,i),s=n("%Object.defineProperty%",!0),d=n("%Math.max%");if(s)try{s({},"a",{value:1})}catch{s=null}t.exports=function(y){if(typeof y!="function")throw new l("a function is required");var m=u(e,f,arguments);return a(m,1+d(0,y.length-(arguments.length-1)),!0)};var c=function(){return u(e,i,arguments)};s?s(t.exports,"apply",{value:c}):t.exports.apply=c})(au);var my=au.exports,lu=Fr,uu=my,vy=uu(lu("String.prototype.indexOf")),by=function(e,n){var a=lu(e,!!n);return typeof a=="function"&&vy(e,".prototype.")>-1?uu(a):a},Si=typeof Map=="function"&&Map.prototype,vo=Object.getOwnPropertyDescriptor&&Si?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,ba=Si&&vo&&typeof vo.get=="function"?vo.get:null,ol=Si&&Map.prototype.forEach,Ei=typeof Set=="function"&&Set.prototype,bo=Object.getOwnPropertyDescriptor&&Ei?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Sa=Ei&&bo&&typeof bo.get=="function"?bo.get:null,il=Ei&&Set.prototype.forEach,Sy=typeof WeakMap=="function"&&WeakMap.prototype,Dn=Sy?WeakMap.prototype.has:null,Ey=typeof WeakSet=="function"&&WeakSet.prototype,Ln=Ey?WeakSet.prototype.has:null,_y=typeof WeakRef=="function"&&WeakRef.prototype,sl=_y?WeakRef.prototype.deref:null,wy=Boolean.prototype.valueOf,Oy=Object.prototype.toString,Ry=Function.prototype.toString,Ay=String.prototype.match,_i=String.prototype.slice,yr=String.prototype.replace,Ty=String.prototype.toUpperCase,ll=String.prototype.toLowerCase,cu=RegExp.prototype.test,ul=Array.prototype.concat,Xt=Array.prototype.join,Py=Array.prototype.slice,cl=Math.floor,Xo=typeof BigInt=="function"?BigInt.prototype.valueOf:null,So=Object.getOwnPropertySymbols,Qo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,en=typeof Symbol=="function"&&typeof Symbol.iterator=="object",it=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===en||!0)?Symbol.toStringTag:null,fu=Object.prototype.propertyIsEnumerable,fl=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function dl(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||cu.call(/e/,e))return e;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var a=t<0?-cl(-t):cl(t);if(a!==t){var l=String(a),i=_i.call(e,l.length+1);return yr.call(l,n,"$&_")+"."+yr.call(yr.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return yr.call(e,n,"$&_")}var Jo=Dd,hl=Jo.custom,pl=hu(hl)?hl:null,Cy=function t(e,n,a,l){var i=n||{};if(gr(i,"quoteStyle")&&i.quoteStyle!=="single"&&i.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(gr(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var f=gr(i,"customInspect")?i.customInspect:!0;if(typeof f!="boolean"&&f!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(gr(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(gr(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var u=i.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return gu(e,i);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var s=String(e);return u?dl(e,s):s}if(typeof e=="bigint"){var d=String(e)+"n";return u?dl(e,d):d}var c=typeof i.depth>"u"?5:i.depth;if(typeof a>"u"&&(a=0),a>=c&&c>0&&typeof e=="object")return Zo(e)?"[Array]":"[Object]";var p=Vy(i,a);if(typeof l>"u")l=[];else if(pu(l,e)>=0)return"[Circular]";function y(re,de,O){if(de&&(l=Py.call(l),l.push(de)),O){var P={depth:i.depth};return gr(i,"quoteStyle")&&(P.quoteStyle=i.quoteStyle),t(re,P,a+1,l)}return t(re,i,a+1,l)}if(typeof e=="function"&&!gl(e)){var m=ky(e),v=ta(e,y);return"[Function"+(m?": "+m:" (anonymous)")+"]"+(v.length>0?" { "+Xt.call(v,", ")+" }":"")}if(hu(e)){var E=en?yr.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):Qo.call(e);return typeof e=="object"&&!en?On(E):E}if(By(e)){for(var T="<"+ll.call(String(e.nodeName)),I=e.attributes||[],Y=0;Y",T}if(Zo(e)){if(e.length===0)return"[]";var ne=ta(e,y);return p&&!Yy(ne)?"["+ei(ne,p)+"]":"[ "+Xt.call(ne,", ")+" ]"}if(Ny(e)){var J=ta(e,y);return!("cause"in Error.prototype)&&"cause"in e&&!fu.call(e,"cause")?"{ ["+String(e)+"] "+Xt.call(ul.call("[cause]: "+y(e.cause),J),", ")+" }":J.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+Xt.call(J,", ")+" }"}if(typeof e=="object"&&f){if(pl&&typeof e[pl]=="function"&&Jo)return Jo(e,{depth:c-a});if(f!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(My(e)){var C=[];return ol&&ol.call(e,function(re,de){C.push(y(de,e,!0)+" => "+y(re,e))}),yl("Map",ba.call(e),C,p)}if(Gy(e)){var H=[];return il&&il.call(e,function(re){H.push(y(re,e))}),yl("Set",Sa.call(e),H,p)}if(qy(e))return Eo("WeakMap");if(Hy(e))return Eo("WeakSet");if(Uy(e))return Eo("WeakRef");if(Ly(e))return On(y(Number(e)));if($y(e))return On(y(Xo.call(e)));if(Fy(e))return On(wy.call(e));if(Dy(e))return On(y(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(e===ot)return"{ [object globalThis] }";if(!Iy(e)&&!gl(e)){var K=ta(e,y),Z=fl?fl(e)===Object.prototype:e instanceof Object||e.constructor===Object,oe=e instanceof Object?"":"null prototype",ee=!Z&&it&&Object(e)===e&&it in e?_i.call(br(e),8,-1):oe?"Object":"",B=Z||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",W=B+(ee||oe?"["+Xt.call(ul.call([],ee||[],oe||[]),": ")+"] ":"");return K.length===0?W+"{}":p?W+"{"+ei(K,p)+"}":W+"{ "+Xt.call(K,", ")+" }"}return String(e)};function du(t,e,n){var a=(n.quoteStyle||e)==="double"?'"':"'";return a+t+a}function xy(t){return yr.call(String(t),/"/g,""")}function Zo(t){return br(t)==="[object Array]"&&(!it||!(typeof t=="object"&&it in t))}function Iy(t){return br(t)==="[object Date]"&&(!it||!(typeof t=="object"&&it in t))}function gl(t){return br(t)==="[object RegExp]"&&(!it||!(typeof t=="object"&&it in t))}function Ny(t){return br(t)==="[object Error]"&&(!it||!(typeof t=="object"&&it in t))}function Dy(t){return br(t)==="[object String]"&&(!it||!(typeof t=="object"&&it in t))}function Ly(t){return br(t)==="[object Number]"&&(!it||!(typeof t=="object"&&it in t))}function Fy(t){return br(t)==="[object Boolean]"&&(!it||!(typeof t=="object"&&it in t))}function hu(t){if(en)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!Qo)return!1;try{return Qo.call(t),!0}catch{}return!1}function $y(t){if(!t||typeof t!="object"||!Xo)return!1;try{return Xo.call(t),!0}catch{}return!1}var jy=Object.prototype.hasOwnProperty||function(t){return t in this};function gr(t,e){return jy.call(t,e)}function br(t){return Oy.call(t)}function ky(t){if(t.name)return t.name;var e=Ay.call(Ry.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function pu(t,e){if(t.indexOf)return t.indexOf(e);for(var n=0,a=t.length;ne.maxStringLength){var n=t.length-e.maxStringLength,a="... "+n+" more character"+(n>1?"s":"");return gu(_i.call(t,0,e.maxStringLength),e)+a}var l=yr.call(yr.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Wy);return du(l,"single",e)}function Wy(t){var e=t.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return n?"\\"+n:"\\x"+(e<16?"0":"")+Ty.call(e.toString(16))}function On(t){return"Object("+t+")"}function Eo(t){return t+" { ? }"}function yl(t,e,n,a){var l=a?ei(n,a):Xt.call(n,", ");return t+" ("+e+") {"+l+"}"}function Yy(t){for(var e=0;e=0)return!1;return!0}function Vy(t,e){var n;if(t.indent===" ")n=" ";else if(typeof t.indent=="number"&&t.indent>0)n=Xt.call(Array(t.indent+1)," ");else return null;return{base:n,prev:Xt.call(Array(e+1),n)}}function ei(t,e){if(t.length===0)return"";var n=` `+e.prev+e.base;return n+Xt.call(t,","+n)+` -`+e.prev}function ta(t,e){var n=oi(t),a=[];if(n){a.length=t.length;for(var l=0;l1;){var n=e.pop(),a=n.obj[n.prop];if(xr(a)){for(var l=[],i=0;i=48&&h<=57||h>=65&&h<=90||h>=97&&h<=122||i===am.RFC1738&&(h===40||h===41)){u+=f.charAt(s);continue}if(h<128){u=u+Vt[h];continue}if(h<2048){u=u+(Vt[192|h>>6]+Vt[128|h&63]);continue}if(h<55296||h>=57344){u=u+(Vt[224|h>>12]+Vt[128|h>>6&63]+Vt[128|h&63]);continue}s+=1,h=65536+((h&1023)<<10|f.charCodeAt(s)&1023),u+=Vt[240|h>>18]+Vt[128|h>>12&63]+Vt[128|h>>6&63]+Vt[128|h&63]}return u},cm=function(e){for(var n=[{obj:{o:e},prop:"o"}],a=[],l=0;l"u"&&(ne=0)}if(typeof s=="function"?I=s(n,I):I instanceof Date?I=p(I):a==="comma"&&nr(I)&&(I=fa.maybeMap(I,function(P){return P instanceof Date?p(P):P})),I===null){if(i)return u&&!v?u(n,at.encoder,E,"key",y):n;I=""}if(vm(I)||fa.isBuffer(I)){if(u){var H=v?n:u(n,at.encoder,E,"key",y);return[m(H)+"="+m(u(I,at.encoder,E,"value",y))]}return[m(n)+"="+m(String(I))]}var K=[];if(typeof I>"u")return K;var Z;if(a==="comma"&&nr(I))v&&u&&(I=fa.maybeMap(I,u)),Z=[{value:I.length>0?I.join(",")||null:void 0}];else if(nr(s))Z=s;else{var oe=Object.keys(I);Z=h?oe.sort(h):oe}for(var ee=l&&nr(I)&&I.length===1?n+"[]":n,B=0;B"u"?at.allowDots:!!e.allowDots,charset:n,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:at.charsetSentinel,delimiter:typeof e.delimiter>"u"?at.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:at.encode,encoder:typeof e.encoder=="function"?e.encoder:at.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:at.encodeValuesOnly,filter:i,format:a,formatter:l,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:at.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:at.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:at.strictNullHandling}},Em=function(t,e){var n=t,a=Sm(e),l,i;typeof a.filter=="function"?(i=a.filter,n=i("",n)):nr(a.filter)&&(i=a.filter,l=i);var f=[];if(typeof n!="object"||n===null)return"";var u;e&&e.arrayFormat in Tl?u=e.arrayFormat:e&&"indices"in e?u=e.indices?"indices":"repeat":u="indices";var s=Tl[u];if(e&&"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var h=s==="comma"&&e&&e.commaRoundTrip;l||(l=Object.keys(n)),a.sort&&l.sort(a.sort);for(var c=Pu(),p=0;p0?v+m:""},tn=Tu,si=Object.prototype.hasOwnProperty,_m=Array.isArray,Je={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:tn.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},wm=function(t){return t.replace(/&#(\d+);/g,function(e,n){return String.fromCharCode(parseInt(n,10))})},xu=function(t,e){return t&&typeof t=="string"&&e.comma&&t.indexOf(",")>-1?t.split(","):t},Om="utf8=%26%2310003%3B",Rm="utf8=%E2%9C%93",Am=function(e,n){var a={__proto__:null},l=n.ignoreQueryPrefix?e.replace(/^\?/,""):e,i=n.parameterLimit===1/0?void 0:n.parameterLimit,f=l.split(n.delimiter,i),u=-1,s,h=n.charset;if(n.charsetSentinel)for(s=0;s-1&&(v=_m(v)?[v]:v),si.call(a,m)?a[m]=tn.combine(a[m],v):a[m]=v}return a},Tm=function(t,e,n,a){for(var l=a?e:xu(e,n),i=t.length-1;i>=0;--i){var f,u=t[i];if(u==="[]"&&n.parseArrays)f=[].concat(l);else{f=n.plainObjects?Object.create(null):{};var s=u.charAt(0)==="["&&u.charAt(u.length-1)==="]"?u.slice(1,-1):u,h=parseInt(s,10);!n.parseArrays&&s===""?f={0:l}:!isNaN(h)&&u!==s&&String(h)===s&&h>=0&&n.parseArrays&&h<=n.arrayLimit?(f=[],f[h]=l):s!=="__proto__"&&(f[s]=l)}l=f}return l},Pm=function(e,n,a,l){if(e){var i=a.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,f=/(\[[^[\]]*])/,u=/(\[[^[\]]*])/g,s=a.depth>0&&f.exec(i),h=s?i.slice(0,s.index):i,c=[];if(h){if(!a.plainObjects&&si.call(Object.prototype,h)&&!a.allowPrototypes)return;c.push(h)}for(var p=0;a.depth>0&&(s=u.exec(i))!==null&&p"u"?Je.charset:e.charset;return{allowDots:typeof e.allowDots>"u"?Je.allowDots:!!e.allowDots,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:Je.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:Je.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:Je.arrayLimit,charset:n,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:Je.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:Je.comma,decoder:typeof e.decoder=="function"?e.decoder:Je.decoder,delimiter:typeof e.delimiter=="string"||tn.isRegExp(e.delimiter)?e.delimiter:Je.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:Je.depth,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:Je.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:Je.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:Je.plainObjects,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:Je.strictNullHandling}},xm=function(t,e){var n=Cm(e);if(t===""||t===null||typeof t>"u")return n.plainObjects?Object.create(null):{};for(var a=typeof t=="string"?Am(t,n):t,l=n.plainObjects?Object.create(null):{},i=Object.keys(a),f=0;ffunction(){return w||(0,S[a(S)[0]])((w={exports:{}}).exports,w),w.exports},u=(S,w)=>{for(var x in w)e(S,x,{get:w[x],enumerable:!0})},s=(S,w,x,N)=>{if(w&&typeof w=="object"||typeof w=="function")for(let M of a(w))!i.call(S,M)&&M!==x&&e(S,M,{get:()=>w[M],enumerable:!(N=n(w,M))||N.enumerable});return S},h=(S,w,x)=>(x=S!=null?t(l(S)):{},s(w||!S||!S.__esModule?e(x,"default",{value:S,enumerable:!0}):x,S)),c=S=>s(e({},"__esModule",{value:!0}),S),p=f({"../../node_modules/lodash/_freeGlobal.js"(S,w){var x=typeof ot=="object"&&ot&&ot.Object===Object&&ot;w.exports=x}}),y=f({"../../node_modules/lodash/_root.js"(S,w){var x=p(),N=typeof self=="object"&&self&&self.Object===Object&&self,M=x||N||Function("return this")();w.exports=M}}),m=f({"../../node_modules/lodash/_Symbol.js"(S,w){var x=y(),N=x.Symbol;w.exports=N}}),v=f({"../../node_modules/lodash/_getRawTag.js"(S,w){var x=m(),N=Object.prototype,M=N.hasOwnProperty,ue=N.toString,ie=x?x.toStringTag:void 0;function ge(be){var Le=M.call(be,ie),ke=be[ie];try{be[ie]=void 0;var Re=!0}catch{}var Ie=ue.call(be);return Re&&(Le?be[ie]=ke:delete be[ie]),Ie}w.exports=ge}}),E=f({"../../node_modules/lodash/_objectToString.js"(S,w){var x=Object.prototype,N=x.toString;function M(ue){return N.call(ue)}w.exports=M}}),T=f({"../../node_modules/lodash/_baseGetTag.js"(S,w){var x=m(),N=v(),M=E(),ue="[object Null]",ie="[object Undefined]",ge=x?x.toStringTag:void 0;function be(Le){return Le==null?Le===void 0?ie:ue:ge&&ge in Object(Le)?N(Le):M(Le)}w.exports=be}}),I=f({"../../node_modules/lodash/_overArg.js"(S,w){function x(N,M){return function(ue){return N(M(ue))}}w.exports=x}}),Y=f({"../../node_modules/lodash/_getPrototype.js"(S,w){var x=I(),N=x(Object.getPrototypeOf,Object);w.exports=N}}),ne=f({"../../node_modules/lodash/isObjectLike.js"(S,w){function x(N){return N!=null&&typeof N=="object"}w.exports=x}}),J=f({"../../node_modules/lodash/isPlainObject.js"(S,w){var x=T(),N=Y(),M=ne(),ue="[object Object]",ie=Function.prototype,ge=Object.prototype,be=ie.toString,Le=ge.hasOwnProperty,ke=be.call(Object);function Re(Ie){if(!M(Ie)||x(Ie)!=ue)return!1;var qe=N(Ie);if(qe===null)return!0;var ut=Le.call(qe,"constructor")&&qe.constructor;return typeof ut=="function"&&ut instanceof ut&&be.call(ut)==ke}w.exports=Re}}),C={};u(C,{BaseLocationProvider:()=>dn,DEEPLY_EQUAL:()=>P,Link:()=>lt,Location:()=>fn,LocationProvider:()=>Ua,Match:()=>hn,Route:()=>Ur,buildArgsParam:()=>Te,deepDiff:()=>F,getMatch:()=>Sr,parsePath:()=>O,queryFromLocation:()=>At,queryFromString:()=>Be,stringifyQuery:()=>qt,useNavigate:()=>qa}),Io=c(C);var H=je,K=Object.prototype.hasOwnProperty;function Z(S,w,x){for(x of S.keys())if(oe(x,w))return x}function oe(S,w){var x,N,M;if(S===w)return!0;if(S&&w&&(x=S.constructor)===w.constructor){if(x===Date)return S.getTime()===w.getTime();if(x===RegExp)return S.toString()===w.toString();if(x===Array){if((N=S.length)===w.length)for(;N--&&oe(S[N],w[N]););return N===-1}if(x===Set){if(S.size!==w.size)return!1;for(N of S)if(M=N,M&&typeof M=="object"&&(M=Z(w,M),!M)||!w.has(M))return!1;return!0}if(x===Map){if(S.size!==w.size)return!1;for(N of S)if(M=N[0],M&&typeof M=="object"&&(M=Z(w,M),!M)||!oe(N[1],w.get(M)))return!1;return!0}if(x===ArrayBuffer)S=new Uint8Array(S),w=new Uint8Array(w);else if(x===DataView){if((N=S.byteLength)===w.byteLength)for(;N--&&S.getInt8(N)===w.getInt8(N););return N===-1}if(ArrayBuffer.isView(S)){if((N=S.byteLength)===w.byteLength)for(;N--&&S[N]===w[N];);return N===-1}if(!x||typeof S=="object"){N=0;for(x in S)if(K.call(S,x)&&++N&&!K.call(w,x)||!(x in w)||!oe(S[x],w[x]))return!1;return Object.keys(w).length===N}}return S!==S&&w!==w}var ee=h(J()),B=h($n()),W=h(Qr);function re(S){for(var w=[],x=1;x1;){var n=e.pop(),a=n.obj[n.prop];if(xr(a)){for(var l=[],i=0;i=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||i===lm.RFC1738&&(d===40||d===41)){u+=f.charAt(s);continue}if(d<128){u=u+Vt[d];continue}if(d<2048){u=u+(Vt[192|d>>6]+Vt[128|d&63]);continue}if(d<55296||d>=57344){u=u+(Vt[224|d>>12]+Vt[128|d>>6&63]+Vt[128|d&63]);continue}s+=1,d=65536+((d&1023)<<10|f.charCodeAt(s)&1023),u+=Vt[240|d>>18]+Vt[128|d>>12&63]+Vt[128|d>>6&63]+Vt[128|d&63]}return u},pm=function(e){for(var n=[{obj:{o:e},prop:"o"}],a=[],l=0;l"u"&&(ne=0)}if(typeof s=="function"?I=s(n,I):I instanceof Date?I=p(I):a==="comma"&&nr(I)&&(I=fa.maybeMap(I,function(P){return P instanceof Date?p(P):P})),I===null){if(i)return u&&!v?u(n,at.encoder,E,"key",y):n;I=""}if(_m(I)||fa.isBuffer(I)){if(u){var H=v?n:u(n,at.encoder,E,"key",y);return[m(H)+"="+m(u(I,at.encoder,E,"value",y))]}return[m(n)+"="+m(String(I))]}var K=[];if(typeof I>"u")return K;var Z;if(a==="comma"&&nr(I))v&&u&&(I=fa.maybeMap(I,u)),Z=[{value:I.length>0?I.join(",")||null:void 0}];else if(nr(s))Z=s;else{var oe=Object.keys(I);Z=d?oe.sort(d):oe}for(var ee=l&&nr(I)&&I.length===1?n+"[]":n,B=0;B"u"?at.allowDots:!!e.allowDots,charset:n,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:at.charsetSentinel,delimiter:typeof e.delimiter>"u"?at.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:at.encode,encoder:typeof e.encoder=="function"?e.encoder:at.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:at.encodeValuesOnly,filter:i,format:a,formatter:l,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:at.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:at.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:at.strictNullHandling}},Rm=function(t,e){var n=t,a=Om(e),l,i;typeof a.filter=="function"?(i=a.filter,n=i("",n)):nr(a.filter)&&(i=a.filter,l=i);var f=[];if(typeof n!="object"||n===null)return"";var u;e&&e.arrayFormat in ml?u=e.arrayFormat:e&&"indices"in e?u=e.indices?"indices":"repeat":u="indices";var s=ml[u];if(e&&"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var d=s==="comma"&&e&&e.commaRoundTrip;l||(l=Object.keys(n)),a.sort&&l.sort(a.sort);for(var c=vu(),p=0;p0?v+m:""},tn=mu,ti=Object.prototype.hasOwnProperty,Am=Array.isArray,Je={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:tn.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},Tm=function(t){return t.replace(/&#(\d+);/g,function(e,n){return String.fromCharCode(parseInt(n,10))})},Su=function(t,e){return t&&typeof t=="string"&&e.comma&&t.indexOf(",")>-1?t.split(","):t},Pm="utf8=%26%2310003%3B",Cm="utf8=%E2%9C%93",xm=function(e,n){var a={__proto__:null},l=n.ignoreQueryPrefix?e.replace(/^\?/,""):e,i=n.parameterLimit===1/0?void 0:n.parameterLimit,f=l.split(n.delimiter,i),u=-1,s,d=n.charset;if(n.charsetSentinel)for(s=0;s-1&&(v=Am(v)?[v]:v),ti.call(a,m)?a[m]=tn.combine(a[m],v):a[m]=v}return a},Im=function(t,e,n,a){for(var l=a?e:Su(e,n),i=t.length-1;i>=0;--i){var f,u=t[i];if(u==="[]"&&n.parseArrays)f=[].concat(l);else{f=n.plainObjects?Object.create(null):{};var s=u.charAt(0)==="["&&u.charAt(u.length-1)==="]"?u.slice(1,-1):u,d=parseInt(s,10);!n.parseArrays&&s===""?f={0:l}:!isNaN(d)&&u!==s&&String(d)===s&&d>=0&&n.parseArrays&&d<=n.arrayLimit?(f=[],f[d]=l):s!=="__proto__"&&(f[s]=l)}l=f}return l},Nm=function(e,n,a,l){if(e){var i=a.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,f=/(\[[^[\]]*])/,u=/(\[[^[\]]*])/g,s=a.depth>0&&f.exec(i),d=s?i.slice(0,s.index):i,c=[];if(d){if(!a.plainObjects&&ti.call(Object.prototype,d)&&!a.allowPrototypes)return;c.push(d)}for(var p=0;a.depth>0&&(s=u.exec(i))!==null&&p"u"?Je.charset:e.charset;return{allowDots:typeof e.allowDots>"u"?Je.allowDots:!!e.allowDots,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:Je.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:Je.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:Je.arrayLimit,charset:n,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:Je.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:Je.comma,decoder:typeof e.decoder=="function"?e.decoder:Je.decoder,delimiter:typeof e.delimiter=="string"||tn.isRegExp(e.delimiter)?e.delimiter:Je.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:Je.depth,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:Je.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:Je.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:Je.plainObjects,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:Je.strictNullHandling}},Lm=function(t,e){var n=Dm(e);if(t===""||t===null||typeof t>"u")return n.plainObjects?Object.create(null):{};for(var a=typeof t=="string"?xm(t,n):t,l=n.plainObjects?Object.create(null):{},i=Object.keys(a),f=0;ffunction(){return w||(0,S[a(S)[0]])((w={exports:{}}).exports,w),w.exports},u=(S,w)=>{for(var x in w)e(S,x,{get:w[x],enumerable:!0})},s=(S,w,x,N)=>{if(w&&typeof w=="object"||typeof w=="function")for(let M of a(w))!i.call(S,M)&&M!==x&&e(S,M,{get:()=>w[M],enumerable:!(N=n(w,M))||N.enumerable});return S},d=(S,w,x)=>(x=S!=null?t(l(S)):{},s(w||!S||!S.__esModule?e(x,"default",{value:S,enumerable:!0}):x,S)),c=S=>s(e({},"__esModule",{value:!0}),S),p=f({"../../node_modules/lodash/_freeGlobal.js"(S,w){var x=typeof ot=="object"&&ot&&ot.Object===Object&&ot;w.exports=x}}),y=f({"../../node_modules/lodash/_root.js"(S,w){var x=p(),N=typeof self=="object"&&self&&self.Object===Object&&self,M=x||N||Function("return this")();w.exports=M}}),m=f({"../../node_modules/lodash/_Symbol.js"(S,w){var x=y(),N=x.Symbol;w.exports=N}}),v=f({"../../node_modules/lodash/_getRawTag.js"(S,w){var x=m(),N=Object.prototype,M=N.hasOwnProperty,ue=N.toString,ie=x?x.toStringTag:void 0;function ge(be){var Le=M.call(be,ie),ke=be[ie];try{be[ie]=void 0;var Re=!0}catch{}var Ie=ue.call(be);return Re&&(Le?be[ie]=ke:delete be[ie]),Ie}w.exports=ge}}),E=f({"../../node_modules/lodash/_objectToString.js"(S,w){var x=Object.prototype,N=x.toString;function M(ue){return N.call(ue)}w.exports=M}}),T=f({"../../node_modules/lodash/_baseGetTag.js"(S,w){var x=m(),N=v(),M=E(),ue="[object Null]",ie="[object Undefined]",ge=x?x.toStringTag:void 0;function be(Le){return Le==null?Le===void 0?ie:ue:ge&&ge in Object(Le)?N(Le):M(Le)}w.exports=be}}),I=f({"../../node_modules/lodash/_overArg.js"(S,w){function x(N,M){return function(ue){return N(M(ue))}}w.exports=x}}),Y=f({"../../node_modules/lodash/_getPrototype.js"(S,w){var x=I(),N=x(Object.getPrototypeOf,Object);w.exports=N}}),ne=f({"../../node_modules/lodash/isObjectLike.js"(S,w){function x(N){return N!=null&&typeof N=="object"}w.exports=x}}),J=f({"../../node_modules/lodash/isPlainObject.js"(S,w){var x=T(),N=Y(),M=ne(),ue="[object Object]",ie=Function.prototype,ge=Object.prototype,be=ie.toString,Le=ge.hasOwnProperty,ke=be.call(Object);function Re(Ie){if(!M(Ie)||x(Ie)!=ue)return!1;var qe=N(Ie);if(qe===null)return!0;var ut=Le.call(qe,"constructor")&&qe.constructor;return typeof ut=="function"&&ut instanceof ut&&be.call(ut)==ke}w.exports=Re}}),C={};u(C,{BaseLocationProvider:()=>hn,DEEPLY_EQUAL:()=>P,Link:()=>lt,Location:()=>fn,LocationProvider:()=>Ua,Match:()=>dn,Route:()=>Ur,buildArgsParam:()=>Te,deepDiff:()=>F,getMatch:()=>Sr,parsePath:()=>O,queryFromLocation:()=>At,queryFromString:()=>Be,stringifyQuery:()=>qt,useNavigate:()=>qa}),Ro=c(C);var H=je,K=Object.prototype.hasOwnProperty;function Z(S,w,x){for(x of S.keys())if(oe(x,w))return x}function oe(S,w){var x,N,M;if(S===w)return!0;if(S&&w&&(x=S.constructor)===w.constructor){if(x===Date)return S.getTime()===w.getTime();if(x===RegExp)return S.toString()===w.toString();if(x===Array){if((N=S.length)===w.length)for(;N--&&oe(S[N],w[N]););return N===-1}if(x===Set){if(S.size!==w.size)return!1;for(N of S)if(M=N,M&&typeof M=="object"&&(M=Z(w,M),!M)||!w.has(M))return!1;return!0}if(x===Map){if(S.size!==w.size)return!1;for(N of S)if(M=N[0],M&&typeof M=="object"&&(M=Z(w,M),!M)||!oe(N[1],w.get(M)))return!1;return!0}if(x===ArrayBuffer)S=new Uint8Array(S),w=new Uint8Array(w);else if(x===DataView){if((N=S.byteLength)===w.byteLength)for(;N--&&S.getInt8(N)===w.getInt8(N););return N===-1}if(ArrayBuffer.isView(S)){if((N=S.byteLength)===w.byteLength)for(;N--&&S[N]===w[N];);return N===-1}if(!x||typeof S=="object"){N=0;for(x in S)if(K.call(S,x)&&++N&&!K.call(w,x)||!(x in w)||!oe(S[x],w[x]))return!1;return Object.keys(w).length===N}}return S!==S&&w!==w}var ee=d(J()),B=d($n()),W=d(Qr);function re(S){for(var w=[],x=1;x{let w={viewMode:void 0,storyId:void 0,refId:void 0};if(S){let[,x,N,M]=S.toLowerCase().match(he)||[];x&&Object.assign(w,{viewMode:x,storyId:M,refId:N})}return w}),P=Symbol("Deeply equal"),F=(S,w)=>{if(typeof S!=typeof w)return w;if(oe(S,w))return P;if(Array.isArray(S)&&Array.isArray(w)){let x=w.reduce((N,M,ue)=>{let ie=F(S[ue],M);return ie!==P&&(N[ue]=ie),N},new Array(w.length));return w.length>=S.length?x:x.concat(new Array(S.length-w.length).fill(void 0))}return(0,ee.default)(S)&&(0,ee.default)(w)?Object.keys({...S,...w}).reduce((x,N)=>{let M=F(S==null?void 0:S[N],w==null?void 0:w[N]);return M===P?x:Object.assign(x,{[N]:M})},{}):w},j=/^[a-zA-Z0-9 _-]*$/,V=/^-?[0-9]+(\.[0-9]+)?$/,X=/^#([a-f0-9]{3,4}|[a-f0-9]{6}|[a-f0-9]{8})$/i,ae=/^(rgba?|hsla?)\(([0-9]{1,3}),\s?([0-9]{1,3})%?,\s?([0-9]{1,3})%?,?\s?([0-9](\.[0-9]{1,2})?)?\)$/i,pe=(S="",w)=>S===null||S===""||!j.test(S)?!1:w==null||w instanceof Date||typeof w=="number"||typeof w=="boolean"?!0:typeof w=="string"?j.test(w)||V.test(w)||X.test(w)||ae.test(w):Array.isArray(w)?w.every(x=>pe(S,x)):(0,ee.default)(w)?Object.entries(w).every(([x,N])=>pe(x,N)):!1,le=S=>S===void 0?"!undefined":S===null?"!null":typeof S=="string"?X.test(S)?`!hex(${S.slice(1)})`:ae.test(S)?`!${S.replace(/[\s%]/g,"")}`:S:typeof S=="boolean"?`!${S}`:Array.isArray(S)?S.map(le):(0,ee.default)(S)?Object.entries(S).reduce((w,[x,N])=>Object.assign(w,{[x]:le(N)}),{}):S,_e={encode:!1,delimiter:";",allowDots:!0,format:"RFC1738",serializeDate:S=>`!date(${S.toISOString()})`},Te=(S,w)=>{let x=F(S,w);if(!x||x===P)return"";let N=Object.entries(x).reduce((M,[ue,ie])=>pe(ue,ie)?Object.assign(M,{[ue]:ie}):(H.once.warn(re` +`)),ie+=Re+N[be+1]}),ie}var de=/\/([^/]+)\/(?:(.*)_)?([^/]+)?/,O=(0,B.default)(1e3)(S=>{let w={viewMode:void 0,storyId:void 0,refId:void 0};if(S){let[,x,N,M]=S.toLowerCase().match(de)||[];x&&Object.assign(w,{viewMode:x,storyId:M,refId:N})}return w}),P=Symbol("Deeply equal"),F=(S,w)=>{if(typeof S!=typeof w)return w;if(oe(S,w))return P;if(Array.isArray(S)&&Array.isArray(w)){let x=w.reduce((N,M,ue)=>{let ie=F(S[ue],M);return ie!==P&&(N[ue]=ie),N},new Array(w.length));return w.length>=S.length?x:x.concat(new Array(S.length-w.length).fill(void 0))}return(0,ee.default)(S)&&(0,ee.default)(w)?Object.keys({...S,...w}).reduce((x,N)=>{let M=F(S==null?void 0:S[N],w==null?void 0:w[N]);return M===P?x:Object.assign(x,{[N]:M})},{}):w},j=/^[a-zA-Z0-9 _-]*$/,V=/^-?[0-9]+(\.[0-9]+)?$/,X=/^#([a-f0-9]{3,4}|[a-f0-9]{6}|[a-f0-9]{8})$/i,ae=/^(rgba?|hsla?)\(([0-9]{1,3}),\s?([0-9]{1,3})%?,\s?([0-9]{1,3})%?,?\s?([0-9](\.[0-9]{1,2})?)?\)$/i,pe=(S="",w)=>S===null||S===""||!j.test(S)?!1:w==null||w instanceof Date||typeof w=="number"||typeof w=="boolean"?!0:typeof w=="string"?j.test(w)||V.test(w)||X.test(w)||ae.test(w):Array.isArray(w)?w.every(x=>pe(S,x)):(0,ee.default)(w)?Object.entries(w).every(([x,N])=>pe(x,N)):!1,le=S=>S===void 0?"!undefined":S===null?"!null":typeof S=="string"?X.test(S)?`!hex(${S.slice(1)})`:ae.test(S)?`!${S.replace(/[\s%]/g,"")}`:S:typeof S=="boolean"?`!${S}`:Array.isArray(S)?S.map(le):(0,ee.default)(S)?Object.entries(S).reduce((w,[x,N])=>Object.assign(w,{[x]:le(N)}),{}):S,_e={encode:!1,delimiter:";",allowDots:!0,format:"RFC1738",serializeDate:S=>`!date(${S.toISOString()})`},Te=(S,w)=>{let x=F(S,w);if(!x||x===P)return"";let N=Object.entries(x).reduce((M,[ue,ie])=>pe(ue,ie)?Object.assign(M,{[ue]:ie}):(H.once.warn(re` Omitted potentially unsafe URL args. More info: https://storybook.js.org/docs/react/writing-stories/args#setting-args-through-the-url - `),M),{});return W.default.stringify(le(N),_e).replace(/ /g,"+").split(";").map(M=>M.replace("=",":")).join(";")},Be=(0,B.default)(1e3)(S=>S!==void 0?W.default.parse(S,{ignoreQueryPrefix:!0}):{}),At=S=>Be(S.search),qt=S=>W.default.stringify(S,{addQueryPrefix:!0,encode:!1}),Sr=(0,B.default)(1e3)((S,w,x=!0)=>{if(x){if(typeof w!="string")throw new Error("startsWith only works with string targets");return S&&S.startsWith(w)?{path:S}:null}let N=typeof w=="string"&&S===w,M=S&&w&&S.match(w);return N||M?{path:S}:null}),on=(()=>{let S;return typeof window<"u"?S=window:typeof globalThis<"u"?S=globalThis:typeof ot<"u"?S=ot:typeof self<"u"?S=self:S={},S})(),Nt=h(Xr),st=Xr;function Qt(){return Qt=Object.assign?Object.assign.bind():function(S){for(var w=1;w=0&&(w.hash=S.substr(x),S=S.substr(0,x));var N=S.indexOf("?");N>=0&&(w.search=S.substr(N),S=S.substr(0,N)),S&&(w.pathname=S)}return w}var He=Xr;function Pt(S,w){if(!S)throw new Error(w)}var Er=(0,He.createContext)(null),_r=(0,He.createContext)(null),qr=(0,He.createContext)({outlet:null,matches:[]});function sr(S){let{basename:w="/",children:x=null,location:N,navigationType:M=Et.Pop,navigator:ue,static:ie=!1}=S;_t()&&Pt(!1);let ge=We(w),be=(0,He.useMemo)(()=>({basename:ge,navigator:ue,static:ie}),[ge,ue,ie]);typeof N=="string"&&(N=Tt(N));let{pathname:Le="/",search:ke="",hash:Re="",state:Ie=null,key:qe="default"}=N,ut=(0,He.useMemo)(()=>{let Ot=Ce(Le,ge);return Ot==null?null:{pathname:Ot,search:ke,hash:Re,state:Ie,key:qe}},[ge,Le,ke,Re,Ie,qe]);return ut==null?null:(0,He.createElement)(Er.Provider,{value:be},(0,He.createElement)(_r.Provider,{children:x,value:{location:ut,navigationType:M}}))}function ln(S){_t()||Pt(!1);let{basename:w,navigator:x}=(0,He.useContext)(Er),{hash:N,pathname:M,search:ue}=R(S),ie=M;if(w!=="/"){let ge=Ee(S),be=ge!=null&&ge.endsWith("/");ie=M==="/"?w+(be?"/":""):De([w,M])}return x.createHref({pathname:ie,search:ue,hash:N})}function _t(){return(0,He.useContext)(_r)!=null}function dt(){return _t()||Pt(!1),(0,He.useContext)(_r).location}function wr(){_t()||Pt(!1);let{basename:S,navigator:w}=(0,He.useContext)(Er),{matches:x}=(0,He.useContext)(qr),{pathname:N}=dt(),M=JSON.stringify(x.map(ie=>ie.pathnameBase)),ue=(0,He.useRef)(!1);return(0,He.useEffect)(()=>{ue.current=!0}),(0,He.useCallback)(function(ie,ge){if(ge===void 0&&(ge={}),!ue.current)return;if(typeof ie=="number"){w.go(ie);return}let be=fe(ie,JSON.parse(M),N);S!=="/"&&(be.pathname=De([S,be.pathname])),(ge.replace?w.replace:w.push)(be,ge.state)},[S,w,M,N])}function R(S){let{matches:w}=(0,He.useContext)(qr),{pathname:x}=dt(),N=JSON.stringify(w.map(M=>M.pathnameBase));return(0,He.useMemo)(()=>fe(S,JSON.parse(N),x),[S,N,x])}function L(S,w){w===void 0&&(w="/");let{pathname:x,search:N="",hash:M=""}=typeof S=="string"?Tt(S):S;return{pathname:x?x.startsWith("/")?x:Q(x,w):w,search:Ye(N),hash:pt(M)}}function Q(S,w){let x=w.replace(/\/+$/,"").split("/");return S.split("/").forEach(N=>{N===".."?x.length>1&&x.pop():N!=="."&&x.push(N)}),x.length>1?x.join("/"):"/"}function fe(S,w,x){let N=typeof S=="string"?Tt(S):S,M=S===""||N.pathname===""?"/":N.pathname,ue;if(M==null)ue=x;else{let ge=w.length-1;if(M.startsWith("..")){let be=M.split("/");for(;be[0]==="..";)be.shift(),ge-=1;N.pathname=be.join("/")}ue=ge>=0?w[ge]:"/"}let ie=L(N,ue);return M&&M!=="/"&&M.endsWith("/")&&!ie.pathname.endsWith("/")&&(ie.pathname+="/"),ie}function Ee(S){return S===""||S.pathname===""?"/":typeof S=="string"?Tt(S).pathname:S.pathname}function Ce(S,w){if(w==="/")return S;if(!S.toLowerCase().startsWith(w.toLowerCase()))return null;let x=S.charAt(w.length);return x&&x!=="/"?null:S.slice(w.length)||"/"}var De=S=>S.join("/").replace(/\/\/+/g,"/"),We=S=>S.replace(/\/+$/,"").replace(/^\/*/,"/"),Ye=S=>!S||S==="?"?"":S.startsWith("?")?S:"?"+S,pt=S=>!S||S==="#"?"":S.startsWith("#")?S:"#"+S;function wt(){return wt=Object.assign||function(S){for(var w=1;w=0)&&(x[M]=S[M]);return x}var gt=["onClick","reloadDocument","replace","state","target","to"],Or=["aria-current","caseSensitive","className","end","style","to"];function un(S){let{basename:w,children:x,window:N}=S,M=(0,st.useRef)();M.current==null&&(M.current=sn({window:N}));let ue=M.current,[ie,ge]=(0,st.useState)({action:ue.action,location:ue.location});return(0,st.useLayoutEffect)(()=>ue.listen(ge),[ue]),(0,st.createElement)(sr,{basename:w,children:x,location:ie.location,navigationType:ie.action,navigator:ue})}function cn(S){return!!(S.metaKey||S.altKey||S.ctrlKey||S.shiftKey)}var Rr=(0,st.forwardRef)(function(S,w){let{onClick:x,reloadDocument:N,replace:M=!1,state:ue,target:ie,to:ge}=S,be=Dt(S,gt),Le=ln(ge),ke=lr(ge,{replace:M,state:ue,target:ie});function Re(Ie){x&&x(Ie),!Ie.defaultPrevented&&!N&&ke(Ie)}return(0,st.createElement)("a",wt({},be,{href:Le,onClick:Re,ref:w,target:ie}))});(0,st.forwardRef)(function(S,w){let{"aria-current":x="page",caseSensitive:N=!1,className:M="",end:ue=!1,style:ie,to:ge}=S,be=Dt(S,Or),Le=dt(),ke=R(ge),Re=Le.pathname,Ie=ke.pathname;N||(Re=Re.toLowerCase(),Ie=Ie.toLowerCase());let qe=Re===Ie||!ue&&Re.startsWith(Ie)&&Re.charAt(Ie.length)==="/",ut=qe?x:void 0,Ot;typeof M=="function"?Ot=M({isActive:qe}):Ot=[M,qe?"active":null].filter(Boolean).join(" ");let Ar=typeof ie=="function"?ie({isActive:qe}):ie;return(0,st.createElement)(Rr,wt({},be,{"aria-current":ut,className:Ot,ref:w,style:Ar,to:ge}))});function lr(S,w){let{target:x,replace:N,state:M}=w===void 0?{}:w,ue=wr(),ie=dt(),ge=R(S);return(0,st.useCallback)(be=>{if(be.button===0&&(!x||x==="_self")&&!cn(be)){be.preventDefault();let Le=!!N||Ut(ie)===Ut(ge);ue(S,{replace:Le,state:M})}},[ie,ue,ge,N,M,x,S])}var ur=h(Xr),Hn=({hidden:S,children:w})=>ur.default.createElement("div",{hidden:S},w),{document:Bn}=on,Ma=()=>`${Bn.location.pathname}?`,qa=()=>{let S=wr();return(0,Nt.useCallback)((w,{plain:x,...N}={})=>{if(typeof w=="string"&&w.startsWith("#")){Bn.location.hash=w;return}if(typeof w=="string"){let M=x?w:`?path=${w}`;return S(M,N)}if(typeof w=="number")return S(w)},[])},lt=({to:S,children:w,...x})=>Nt.default.createElement(Rr,{to:`${Ma()}path=${S}`,...x},w);lt.displayName="QueryLink";var fn=({children:S})=>{let w=dt(),{path:x,singleStory:N}=Be(w.search),{viewMode:M,storyId:ue,refId:ie}=O(x);return Nt.default.createElement(Nt.default.Fragment,null,S({path:x||"/",location:w,viewMode:M,storyId:ue,refId:ie,singleStory:N==="true"}))};fn.displayName="QueryLocation";function hn({children:S,path:w,startsWith:x=!1}){return Nt.default.createElement(fn,null,({path:N,...M})=>S({match:Sr(N,w,x),...M}))}hn.displayName="QueryMatch";function Ur(S){let{children:w,hideOnly:x,...N}=S;return N.startsWith===void 0&&(N.startsWith=!1),Nt.default.createElement(hn,{...N},({match:M})=>x?Nt.default.createElement(Hn,{hidden:!M},w):M?w:null)}Ur.displayName="Route";var Ua=(...S)=>un(...S),dn=(...S)=>sr(...S);return Io}var Fm=Object.create,Aa=Object.defineProperty,$m=Object.getOwnPropertyDescriptor,jm=Object.getOwnPropertyNames,km=Object.getPrototypeOf,Mm=Object.prototype.hasOwnProperty,qm=(t,e)=>{for(var n in e)Aa(t,n,{get:e[n],enumerable:!0})},Iu=(t,e,n,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let l of jm(e))!Mm.call(t,l)&&l!==n&&Aa(t,l,{get:()=>e[l],enumerable:!(a=$m(e,l))||a.enumerable});return t},Ta=(t,e,n)=>(n=t!=null?Fm(km(t)):{},Iu(e||!t||!t.__esModule?Aa(n,"default",{value:t,enumerable:!0}):n,t)),Um=t=>Iu(Aa({},"__esModule",{value:!0}),t),Nu={};qm(Nu,{Channel:()=>Mn,PostMessageTransport:()=>Ni,WebsocketTransport:()=>Di,createBrowserChannel:()=>iv,createPostMessageChannel:()=>Jm,createWebSocketChannel:()=>nv,default:()=>ov});var Ea=Um(Nu),Gm=Ne,Hm=t=>t.transports!==void 0,Bm=()=>Math.random().toString(16).slice(2),Mn=class{constructor(t={}){this.sender=Bm(),this.events={},this.data={},this.transports=[],this.isAsync=t.async||!1,Hm(t)?(this.transports=t.transports||[],this.transports.forEach(e=>{e.setHandler(n=>this.handleEvent(n))})):this.transports=t.transport?[t.transport]:[],this.transports.forEach(e=>{e.setHandler(n=>this.handleEvent(n))})}get hasTransport(){return this.transports.length>0}addListener(t,e){this.events[t]=this.events[t]||[],this.events[t].push(e)}emit(t,...e){let n={type:t,args:e,from:this.sender},a={};e.length>=1&&e[0]&&e[0].options&&(a=e[0].options);let l=()=>{this.transports.forEach(i=>{i.send(n,a)}),this.handleEvent(n)};this.isAsync?setImmediate(l):l()}last(t){return this.data[t]}eventNames(){return Object.keys(this.events)}listenerCount(t){let e=this.listeners(t);return e?e.length:0}listeners(t){return this.events[t]||void 0}once(t,e){let n=this.onceListener(t,e);this.addListener(t,n)}removeAllListeners(t){t?this.events[t]&&delete this.events[t]:this.events={}}removeListener(t,e){let n=this.listeners(t);n&&(this.events[t]=n.filter(a=>a!==e))}on(t,e){this.addListener(t,e)}off(t,e){this.removeListener(t,e)}handleEvent(t){let e=this.listeners(t.type);e&&e.length&&e.forEach(n=>{n.apply(t,t.args)}),this.data[t.type]=t.args}onceListener(t,e){let n=(...a)=>(this.removeListener(t,n),e(...a));return n}},nt=Ne,Wm=Ta(Qe),aa=je,No=wi,Ym=Ta(Qr),Vm=Ta(Zl),zm=je,Km=t=>{let e=Array.from(document.querySelectorAll("iframe[data-is-storybook]")),[n,...a]=e.filter(i=>{try{return i.contentWindow===t.source}catch{}let f=i.getAttribute("src"),u;try{if(!f)return!1;({origin:u}=new URL(f,document.location.toString()))}catch{return!1}return u===t.origin}),l=n==null?void 0:n.getAttribute("src");if(l&&a.length===0){let{protocol:i,host:f,pathname:u}=new URL(l,document.location.toString());return`${i}//${f}${u}`}return a.length>0&&zm.logger.error("found multiple candidates for event source"),null},{document:Do,location:oa}=nt.global,xl="storybook-channel",Xm={allowFunction:!0,maxDepth:25},Ni=class{constructor(t){this.config=t,this.connected=!1;var e;if(this.buffer=[],typeof((e=nt.global)==null?void 0:e.addEventListener)=="function"&&nt.global.addEventListener("message",this.handleEvent.bind(this),!1),t.page!=="manager"&&t.page!=="preview")throw new Error(`postmsg-channel: "config.page" cannot be "${t.page}"`)}setHandler(t){this.handler=(...e)=>{t.apply(this,e),!this.connected&&this.getLocalFrame().length&&(this.flush(),this.connected=!0)}}send(t,e){let{target:n,allowRegExp:a,allowFunction:l,allowSymbol:i,allowDate:f,allowError:u,allowUndefined:s,allowClass:h,maxDepth:c,space:p,lazyEval:y}=e||{},m=Object.fromEntries(Object.entries({allowRegExp:a,allowFunction:l,allowSymbol:i,allowDate:f,allowError:u,allowUndefined:s,allowClass:h,maxDepth:c,space:p,lazyEval:y}).filter(([Y,ne])=>typeof ne<"u")),v={...Xm,...nt.global.CHANNEL_OPTIONS||{},...m},E=this.getFrames(n),T=Ym.default.parse((oa==null?void 0:oa.search)||"",{ignoreQueryPrefix:!0}),I=(0,No.stringify)({key:xl,event:t,refId:T.refId},v);return E.length?(this.buffer.length&&this.flush(),E.forEach(Y=>{try{Y.postMessage(I,"*")}catch{aa.logger.error("sending over postmessage fail")}}),Promise.resolve(null)):new Promise((Y,ne)=>{this.buffer.push({event:t,resolve:Y,reject:ne})})}flush(){let{buffer:t}=this;this.buffer=[],t.forEach(e=>{this.send(e.event).then(e.resolve).catch(e.reject)})}getFrames(t){if(this.config.page==="manager"){let e=Array.from(Do.querySelectorAll("iframe[data-is-storybook][data-is-loaded]")).flatMap(n=>{try{return n.contentWindow&&n.dataset.isStorybook!==void 0&&n.id===t?[n.contentWindow]:[]}catch{return[]}});return e!=null&&e.length?e:this.getCurrentFrames()}return nt.global&&nt.global.parent&&nt.global.parent!==nt.global.self?[nt.global.parent]:[]}getCurrentFrames(){return this.config.page==="manager"?Array.from(Do.querySelectorAll('[data-is-storybook="true"]')).flatMap(t=>t.contentWindow?[t.contentWindow]:[]):nt.global&&nt.global.parent?[nt.global.parent]:[]}getLocalFrame(){return this.config.page==="manager"?Array.from(Do.querySelectorAll("#storybook-preview-iframe")).flatMap(t=>t.contentWindow?[t.contentWindow]:[]):nt.global&&nt.global.parent?[nt.global.parent]:[]}handleEvent(t){try{let{data:e}=t,{key:n,event:a,refId:l}=typeof e=="string"&&(0,No.isJSON)(e)?(0,No.parse)(e,nt.global.CHANNEL_OPTIONS||{}):e;if(n===xl){let i=this.config.page==="manager"?' manager ':' preview ',f=Object.values(Wm).includes(a.type)?`${a.type}`:`${a.type}`;if(l&&(a.refId=l),a.source=this.config.page==="preview"?t.origin:Km(t),!a.source){aa.pretty.error(`${i} received ${f} but was unable to determine the source of the event`);return}let u=`${i} received ${f} (${e.length})`;aa.pretty.debug(oa.origin!==a.source?u:`${u} (on ${oa.origin} from ${a.source})`,...a.args),(0,Vm.default)(this.handler,"ChannelHandler should be set"),this.handler(a)}}catch(e){aa.logger.error(e)}}},Qm=Ni;function Jm({page:t}){let e=new Qm({page:t});return new Mn({transport:e})}var Zm=Ne,ev=je,Lo=wi,tv=Ta(Zl),{WebSocket:rv}=Zm.global,Di=class{constructor({url:t,onError:e}){this.buffer=[],this.isReady=!1,this.socket=new rv(t),this.socket.onopen=()=>{this.isReady=!0,this.flush()},this.socket.onmessage=({data:n})=>{let a=typeof n=="string"&&(0,Lo.isJSON)(n)?(0,Lo.parse)(n):n;(0,tv.default)(this.handler,"WebsocketTransport handler should be set"),this.handler(a)},this.socket.onerror=n=>{e&&e(n)}}setHandler(t){this.handler=t}send(t){this.isReady?this.sendNow(t):this.sendLater(t)}sendLater(t){this.buffer.push(t)}sendNow(t){let e=(0,Lo.stringify)(t,{maxDepth:15,allowFunction:!0});this.socket.send(e)}flush(){let{buffer:t}=this;this.buffer=[],t.forEach(e=>this.send(e))}};function nv({url:t,async:e=!1,onError:n=a=>ev.logger.warn(a)}){let a=t;if(!a){let i=window.location.protocol==="http:"?"ws":"wss",{hostname:f,port:u}=window.location;a=`${i}://${f}:${u}/storybook-server-channel`}let l=new Di({url:a,onError:n});return new Mn({transport:l,async:e})}var{CONFIG_TYPE:av}=Gm.global,ov=Mn;function iv({page:t,extraTransports:e=[]}){let n=[new Ni({page:t}),...e];if(av==="DEVELOPMENT"){let a=window.location.protocol==="http:"?"ws":"wss",{hostname:l,port:i}=window.location,f=`${a}://${l}:${i}/storybook-server-channel`;n.push(new Di({url:f,onError:()=>{}}))}return new Mn({transports:n})}var Fo={},sv=Object.create,Pa=Object.defineProperty,lv=Object.getOwnPropertyDescriptor,Du=Object.getOwnPropertyNames,uv=Object.getPrototypeOf,cv=Object.prototype.hasOwnProperty,me=(t,e)=>function(){return e||(0,t[Du(t)[0]])((e={exports:{}}).exports,e),e.exports},St=(t,e)=>{for(var n in e)Pa(t,n,{get:e[n],enumerable:!0})},Lu=(t,e,n,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let l of Du(e))!cv.call(t,l)&&l!==n&&Pa(t,l,{get:()=>e[l],enumerable:!(a=lv(e,l))||a.enumerable});return t},jt=(t,e,n)=>(n=t!=null?sv(uv(t)):{},Lu(e||!t||!t.__esModule?Pa(n,"default",{value:t,enumerable:!0}):n,t)),fv=t=>Lu(Pa({},"__esModule",{value:!0}),t),Ca=me({"../../node_modules/semver/internal/constants.js"(t,e){var n="2.0.0",a=Number.MAX_SAFE_INTEGER||9007199254740991,l=16,i=250,f=["major","premajor","minor","preminor","patch","prepatch","prerelease"];e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:l,MAX_SAFE_BUILD_LENGTH:i,MAX_SAFE_INTEGER:a,RELEASE_TYPES:f,SEMVER_SPEC_VERSION:n,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}}}),xa=me({"../../node_modules/semver/internal/debug.js"(t,e){var n=typeof process=="object"&&Fo&&Fo.NODE_DEBUG&&/\bsemver\b/i.test(Fo.NODE_DEBUG)?(...a)=>console.error("SEMVER",...a):()=>{};e.exports=n}}),qn=me({"../../node_modules/semver/internal/re.js"(t,e){var{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:a,MAX_LENGTH:l}=Ca(),i=xa();t=e.exports={};var f=t.re=[],u=t.safeRe=[],s=t.src=[],h=t.t={},c=0,p="[a-zA-Z0-9-]",y=[["\\s",1],["\\d",l],[p,a]],m=E=>{for(let[T,I]of y)E=E.split(`${T}*`).join(`${T}{0,${I}}`).split(`${T}+`).join(`${T}{1,${I}}`);return E},v=(E,T,I)=>{let Y=m(T),ne=c++;i(E,ne,T),h[E]=ne,s[ne]=T,f[ne]=new RegExp(T,I?"g":void 0),u[ne]=new RegExp(Y,I?"g":void 0)};v("NUMERICIDENTIFIER","0|[1-9]\\d*"),v("NUMERICIDENTIFIERLOOSE","\\d+"),v("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${p}*`),v("MAINVERSION",`(${s[h.NUMERICIDENTIFIER]})\\.(${s[h.NUMERICIDENTIFIER]})\\.(${s[h.NUMERICIDENTIFIER]})`),v("MAINVERSIONLOOSE",`(${s[h.NUMERICIDENTIFIERLOOSE]})\\.(${s[h.NUMERICIDENTIFIERLOOSE]})\\.(${s[h.NUMERICIDENTIFIERLOOSE]})`),v("PRERELEASEIDENTIFIER",`(?:${s[h.NUMERICIDENTIFIER]}|${s[h.NONNUMERICIDENTIFIER]})`),v("PRERELEASEIDENTIFIERLOOSE",`(?:${s[h.NUMERICIDENTIFIERLOOSE]}|${s[h.NONNUMERICIDENTIFIER]})`),v("PRERELEASE",`(?:-(${s[h.PRERELEASEIDENTIFIER]}(?:\\.${s[h.PRERELEASEIDENTIFIER]})*))`),v("PRERELEASELOOSE",`(?:-?(${s[h.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${s[h.PRERELEASEIDENTIFIERLOOSE]})*))`),v("BUILDIDENTIFIER",`${p}+`),v("BUILD",`(?:\\+(${s[h.BUILDIDENTIFIER]}(?:\\.${s[h.BUILDIDENTIFIER]})*))`),v("FULLPLAIN",`v?${s[h.MAINVERSION]}${s[h.PRERELEASE]}?${s[h.BUILD]}?`),v("FULL",`^${s[h.FULLPLAIN]}$`),v("LOOSEPLAIN",`[v=\\s]*${s[h.MAINVERSIONLOOSE]}${s[h.PRERELEASELOOSE]}?${s[h.BUILD]}?`),v("LOOSE",`^${s[h.LOOSEPLAIN]}$`),v("GTLT","((?:<|>)?=?)"),v("XRANGEIDENTIFIERLOOSE",`${s[h.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),v("XRANGEIDENTIFIER",`${s[h.NUMERICIDENTIFIER]}|x|X|\\*`),v("XRANGEPLAIN",`[v=\\s]*(${s[h.XRANGEIDENTIFIER]})(?:\\.(${s[h.XRANGEIDENTIFIER]})(?:\\.(${s[h.XRANGEIDENTIFIER]})(?:${s[h.PRERELEASE]})?${s[h.BUILD]}?)?)?`),v("XRANGEPLAINLOOSE",`[v=\\s]*(${s[h.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[h.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[h.XRANGEIDENTIFIERLOOSE]})(?:${s[h.PRERELEASELOOSE]})?${s[h.BUILD]}?)?)?`),v("XRANGE",`^${s[h.GTLT]}\\s*${s[h.XRANGEPLAIN]}$`),v("XRANGELOOSE",`^${s[h.GTLT]}\\s*${s[h.XRANGEPLAINLOOSE]}$`),v("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),v("COERCERTL",s[h.COERCE],!0),v("LONETILDE","(?:~>?)"),v("TILDETRIM",`(\\s*)${s[h.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",v("TILDE",`^${s[h.LONETILDE]}${s[h.XRANGEPLAIN]}$`),v("TILDELOOSE",`^${s[h.LONETILDE]}${s[h.XRANGEPLAINLOOSE]}$`),v("LONECARET","(?:\\^)"),v("CARETTRIM",`(\\s*)${s[h.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",v("CARET",`^${s[h.LONECARET]}${s[h.XRANGEPLAIN]}$`),v("CARETLOOSE",`^${s[h.LONECARET]}${s[h.XRANGEPLAINLOOSE]}$`),v("COMPARATORLOOSE",`^${s[h.GTLT]}\\s*(${s[h.LOOSEPLAIN]})$|^$`),v("COMPARATOR",`^${s[h.GTLT]}\\s*(${s[h.FULLPLAIN]})$|^$`),v("COMPARATORTRIM",`(\\s*)${s[h.GTLT]}\\s*(${s[h.LOOSEPLAIN]}|${s[h.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",v("HYPHENRANGE",`^\\s*(${s[h.XRANGEPLAIN]})\\s+-\\s+(${s[h.XRANGEPLAIN]})\\s*$`),v("HYPHENRANGELOOSE",`^\\s*(${s[h.XRANGEPLAINLOOSE]})\\s+-\\s+(${s[h.XRANGEPLAINLOOSE]})\\s*$`),v("STAR","(<|>)?=?\\s*\\*"),v("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),v("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}}),Li=me({"../../node_modules/semver/internal/parse-options.js"(t,e){var n=Object.freeze({loose:!0}),a=Object.freeze({}),l=i=>i?typeof i!="object"?n:i:a;e.exports=l}}),Fu=me({"../../node_modules/semver/internal/identifiers.js"(t,e){var n=/^[0-9]+$/,a=(i,f)=>{let u=n.test(i),s=n.test(f);return u&&s&&(i=+i,f=+f),i===f?0:u&&!s?-1:s&&!u?1:ia(f,i);e.exports={compareIdentifiers:a,rcompareIdentifiers:l}}}),ht=me({"../../node_modules/semver/classes/semver.js"(t,e){var n=xa(),{MAX_LENGTH:a,MAX_SAFE_INTEGER:l}=Ca(),{safeRe:i,t:f}=qn(),u=Li(),{compareIdentifiers:s}=Fu(),h=class Kt{constructor(p,y){if(y=u(y),p instanceof Kt){if(p.loose===!!y.loose&&p.includePrerelease===!!y.includePrerelease)return p;p=p.version}else if(typeof p!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof p}".`);if(p.length>a)throw new TypeError(`version is longer than ${a} characters`);n("SemVer",p,y),this.options=y,this.loose=!!y.loose,this.includePrerelease=!!y.includePrerelease;let m=p.trim().match(y.loose?i[f.LOOSE]:i[f.FULL]);if(!m)throw new TypeError(`Invalid Version: ${p}`);if(this.raw=p,this.major=+m[1],this.minor=+m[2],this.patch=+m[3],this.major>l||this.major<0)throw new TypeError("Invalid major version");if(this.minor>l||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>l||this.patch<0)throw new TypeError("Invalid patch version");m[4]?this.prerelease=m[4].split(".").map(v=>{if(/^[0-9]+$/.test(v)){let E=+v;if(E>=0&&E=0;)typeof this.prerelease[E]=="number"&&(this.prerelease[E]++,E=-2);if(E===-1){if(y===this.prerelease.join(".")&&m===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(v)}}if(y){let E=[y,v];m===!1&&(E=[y]),s(this.prerelease[0],y)===0?isNaN(this.prerelease[1])&&(this.prerelease=E):this.prerelease=E}break}default:throw new Error(`invalid increment argument: ${p}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};e.exports=h}}),an=me({"../../node_modules/semver/functions/parse.js"(t,e){var n=ht(),a=(l,i,f=!1)=>{if(l instanceof n)return l;try{return new n(l,i)}catch(u){if(!f)return null;throw u}};e.exports=a}}),hv=me({"../../node_modules/semver/functions/valid.js"(t,e){var n=an(),a=(l,i)=>{let f=n(l,i);return f?f.version:null};e.exports=a}}),dv=me({"../../node_modules/semver/functions/clean.js"(t,e){var n=an(),a=(l,i)=>{let f=n(l.trim().replace(/^[=v]+/,""),i);return f?f.version:null};e.exports=a}}),pv=me({"../../node_modules/semver/functions/inc.js"(t,e){var n=ht(),a=(l,i,f,u,s)=>{typeof f=="string"&&(s=u,u=f,f=void 0);try{return new n(l instanceof n?l.version:l,f).inc(i,u,s).version}catch{return null}};e.exports=a}}),gv=me({"../../node_modules/semver/functions/diff.js"(t,e){var n=an(),a=(l,i)=>{let f=n(l,null,!0),u=n(i,null,!0),s=f.compare(u);if(s===0)return null;let h=s>0,c=h?f:u,p=h?u:f,y=!!c.prerelease.length;if(p.prerelease.length&&!y)return!p.patch&&!p.minor?"major":c.patch?"patch":c.minor?"minor":"major";let m=y?"pre":"";return f.major!==u.major?m+"major":f.minor!==u.minor?m+"minor":f.patch!==u.patch?m+"patch":"prerelease"};e.exports=a}}),yv=me({"../../node_modules/semver/functions/major.js"(t,e){var n=ht(),a=(l,i)=>new n(l,i).major;e.exports=a}}),mv=me({"../../node_modules/semver/functions/minor.js"(t,e){var n=ht(),a=(l,i)=>new n(l,i).minor;e.exports=a}}),vv=me({"../../node_modules/semver/functions/patch.js"(t,e){var n=ht(),a=(l,i)=>new n(l,i).patch;e.exports=a}}),bv=me({"../../node_modules/semver/functions/prerelease.js"(t,e){var n=an(),a=(l,i)=>{let f=n(l,i);return f&&f.prerelease.length?f.prerelease:null};e.exports=a}}),kt=me({"../../node_modules/semver/functions/compare.js"(t,e){var n=ht(),a=(l,i,f)=>new n(l,f).compare(new n(i,f));e.exports=a}}),Sv=me({"../../node_modules/semver/functions/rcompare.js"(t,e){var n=kt(),a=(l,i,f)=>n(i,l,f);e.exports=a}}),Ev=me({"../../node_modules/semver/functions/compare-loose.js"(t,e){var n=kt(),a=(l,i)=>n(l,i,!0);e.exports=a}}),Fi=me({"../../node_modules/semver/functions/compare-build.js"(t,e){var n=ht(),a=(l,i,f)=>{let u=new n(l,f),s=new n(i,f);return u.compare(s)||u.compareBuild(s)};e.exports=a}}),_v=me({"../../node_modules/semver/functions/sort.js"(t,e){var n=Fi(),a=(l,i)=>l.sort((f,u)=>n(f,u,i));e.exports=a}}),wv=me({"../../node_modules/semver/functions/rsort.js"(t,e){var n=Fi(),a=(l,i)=>l.sort((f,u)=>n(u,f,i));e.exports=a}}),Ia=me({"../../node_modules/semver/functions/gt.js"(t,e){var n=kt(),a=(l,i,f)=>n(l,i,f)>0;e.exports=a}}),$i=me({"../../node_modules/semver/functions/lt.js"(t,e){var n=kt(),a=(l,i,f)=>n(l,i,f)<0;e.exports=a}}),$u=me({"../../node_modules/semver/functions/eq.js"(t,e){var n=kt(),a=(l,i,f)=>n(l,i,f)===0;e.exports=a}}),ju=me({"../../node_modules/semver/functions/neq.js"(t,e){var n=kt(),a=(l,i,f)=>n(l,i,f)!==0;e.exports=a}}),ji=me({"../../node_modules/semver/functions/gte.js"(t,e){var n=kt(),a=(l,i,f)=>n(l,i,f)>=0;e.exports=a}}),ki=me({"../../node_modules/semver/functions/lte.js"(t,e){var n=kt(),a=(l,i,f)=>n(l,i,f)<=0;e.exports=a}}),ku=me({"../../node_modules/semver/functions/cmp.js"(t,e){var n=$u(),a=ju(),l=Ia(),i=ji(),f=$i(),u=ki(),s=(h,c,p,y)=>{switch(c){case"===":return typeof h=="object"&&(h=h.version),typeof p=="object"&&(p=p.version),h===p;case"!==":return typeof h=="object"&&(h=h.version),typeof p=="object"&&(p=p.version),h!==p;case"":case"=":case"==":return n(h,p,y);case"!=":return a(h,p,y);case">":return l(h,p,y);case">=":return i(h,p,y);case"<":return f(h,p,y);case"<=":return u(h,p,y);default:throw new TypeError(`Invalid operator: ${c}`)}};e.exports=s}}),Ov=me({"../../node_modules/semver/functions/coerce.js"(t,e){var n=ht(),a=an(),{safeRe:l,t:i}=qn(),f=(u,s)=>{if(u instanceof n)return u;if(typeof u=="number"&&(u=String(u)),typeof u!="string")return null;s=s||{};let h=null;if(!s.rtl)h=u.match(l[i.COERCE]);else{let c;for(;(c=l[i.COERCERTL].exec(u))&&(!h||h.index+h[0].length!==u.length);)(!h||c.index+c[0].length!==h.index+h[0].length)&&(h=c),l[i.COERCERTL].lastIndex=c.index+c[1].length+c[2].length;l[i.COERCERTL].lastIndex=-1}return h===null?null:a(`${h[2]}.${h[3]||"0"}.${h[4]||"0"}`,s)};e.exports=f}}),Rv=me({"../../node_modules/yallist/iterator.js"(t,e){e.exports=function(n){n.prototype[Symbol.iterator]=function*(){for(let a=this.head;a;a=a.next)yield a.value}}}}),Av=me({"../../node_modules/yallist/yallist.js"(t,e){e.exports=n,n.Node=f,n.create=n;function n(u){var s=this;if(s instanceof n||(s=new n),s.tail=null,s.head=null,s.length=0,u&&typeof u.forEach=="function")u.forEach(function(p){s.push(p)});else if(arguments.length>0)for(var h=0,c=arguments.length;h1)h=s;else if(this.head)c=this.head.next,h=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var p=0;c!==null;p++)h=u(h,c.value,p),c=c.next;return h},n.prototype.reduceReverse=function(u,s){var h,c=this.tail;if(arguments.length>1)h=s;else if(this.tail)c=this.tail.prev,h=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var p=this.length-1;c!==null;p--)h=u(h,c.value,p),c=c.prev;return h},n.prototype.toArray=function(){for(var u=new Array(this.length),s=0,h=this.head;h!==null;s++)u[s]=h.value,h=h.next;return u},n.prototype.toArrayReverse=function(){for(var u=new Array(this.length),s=0,h=this.tail;h!==null;s++)u[s]=h.value,h=h.prev;return u},n.prototype.slice=function(u,s){s=s||this.length,s<0&&(s+=this.length),u=u||0,u<0&&(u+=this.length);var h=new n;if(sthis.length&&(s=this.length);for(var c=0,p=this.head;p!==null&&cthis.length&&(s=this.length);for(var c=this.length,p=this.tail;p!==null&&c>s;c--)p=p.prev;for(;p!==null&&c>u;c--,p=p.prev)h.push(p.value);return h},n.prototype.splice=function(u,s,...h){u>this.length&&(u=this.length-1),u<0&&(u=this.length+u);for(var c=0,p=this.head;p!==null&&c1,v=class{constructor(C){if(typeof C=="number"&&(C={max:C}),C||(C={}),C.max&&(typeof C.max!="number"||C.max<0))throw new TypeError("max must be a non-negative number");this[a]=C.max||1/0;let H=C.length||m;if(this[i]=typeof H!="function"?m:H,this[f]=C.stale||!1,C.maxAge&&typeof C.maxAge!="number")throw new TypeError("maxAge must be a number");this[u]=C.maxAge||0,this[s]=C.dispose,this[h]=C.noDisposeOnSet||!1,this[y]=C.updateAgeOnGet||!1,this.reset()}set max(C){if(typeof C!="number"||C<0)throw new TypeError("max must be a non-negative number");this[a]=C||1/0,I(this)}get max(){return this[a]}set allowStale(C){this[f]=!!C}get allowStale(){return this[f]}set maxAge(C){if(typeof C!="number")throw new TypeError("maxAge must be a non-negative number");this[u]=C,I(this)}get maxAge(){return this[u]}set lengthCalculator(C){typeof C!="function"&&(C=m),C!==this[i]&&(this[i]=C,this[l]=0,this[c].forEach(H=>{H.length=this[i](H.value,H.key),this[l]+=H.length})),I(this)}get lengthCalculator(){return this[i]}get length(){return this[l]}get itemCount(){return this[c].length}rforEach(C,H){H=H||this;for(let K=this[c].tail;K!==null;){let Z=K.prev;J(this,C,K,H),K=Z}}forEach(C,H){H=H||this;for(let K=this[c].head;K!==null;){let Z=K.next;J(this,C,K,H),K=Z}}keys(){return this[c].toArray().map(C=>C.key)}values(){return this[c].toArray().map(C=>C.value)}reset(){this[s]&&this[c]&&this[c].length&&this[c].forEach(C=>this[s](C.key,C.value)),this[p]=new Map,this[c]=new n,this[l]=0}dump(){return this[c].map(C=>T(this,C)?!1:{k:C.key,v:C.value,e:C.now+(C.maxAge||0)}).toArray().filter(C=>C)}dumpLru(){return this[c]}set(C,H,K){if(K=K||this[u],K&&typeof K!="number")throw new TypeError("maxAge must be a number");let Z=K?Date.now():0,oe=this[i](H,C);if(this[p].has(C)){if(oe>this[a])return Y(this,this[p].get(C)),!1;let B=this[p].get(C).value;return this[s]&&(this[h]||this[s](C,B.value)),B.now=Z,B.maxAge=K,B.value=H,this[l]+=oe-B.length,B.length=oe,this.get(C),I(this),!0}let ee=new ne(C,H,oe,Z,K);return ee.length>this[a]?(this[s]&&this[s](C,H),!1):(this[l]+=ee.length,this[c].unshift(ee),this[p].set(C,this[c].head),I(this),!0)}has(C){if(!this[p].has(C))return!1;let H=this[p].get(C).value;return!T(this,H)}get(C){return E(this,C,!0)}peek(C){return E(this,C,!1)}pop(){let C=this[c].tail;return C?(Y(this,C),C.value):null}del(C){Y(this,this[p].get(C))}load(C){this.reset();let H=Date.now();for(let K=C.length-1;K>=0;K--){let Z=C[K],oe=Z.e||0;if(oe===0)this.set(Z.k,Z.v);else{let ee=oe-H;ee>0&&this.set(Z.k,Z.v,ee)}}}prune(){this[p].forEach((C,H)=>E(this,H,!1))}},E=(C,H,K)=>{let Z=C[p].get(H);if(Z){let oe=Z.value;if(T(C,oe)){if(Y(C,Z),!C[f])return}else K&&(C[y]&&(Z.value.now=Date.now()),C[c].unshiftNode(Z));return oe.value}},T=(C,H)=>{if(!H||!H.maxAge&&!C[u])return!1;let K=Date.now()-H.now;return H.maxAge?K>H.maxAge:C[u]&&K>C[u]},I=C=>{if(C[l]>C[a])for(let H=C[c].tail;C[l]>C[a]&&H!==null;){let K=H.prev;Y(C,H),H=K}},Y=(C,H)=>{if(H){let K=H.value;C[s]&&C[s](K.key,K.value),C[l]-=K.length,C[p].delete(K.key),C[c].removeNode(H)}},ne=class{constructor(C,H,K,Z,oe){this.key=C,this.value=H,this.length=K,this.now=Z,this.maxAge=oe||0}},J=(C,H,K,Z)=>{let oe=K.value;T(C,oe)&&(Y(C,K),C[f]||(oe=void 0)),oe&&H.call(Z,oe.value,oe.key,C)};e.exports=v}}),Mt=me({"../../node_modules/semver/classes/range.js"(t,e){var n=class ha{constructor(P,F){if(F=i(F),P instanceof ha)return P.loose===!!F.loose&&P.includePrerelease===!!F.includePrerelease?P:new ha(P.raw,F);if(P instanceof f)return this.raw=P.value,this.set=[[P]],this.format(),this;if(this.options=F,this.loose=!!F.loose,this.includePrerelease=!!F.includePrerelease,this.raw=P.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(j=>this.parseRange(j.trim())).filter(j=>j.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let j=this.set[0];if(this.set=this.set.filter(V=>!T(V[0])),this.set.length===0)this.set=[j];else if(this.set.length>1){for(let V of this.set)if(V.length===1&&I(V[0])){this.set=[V];break}}}this.format()}format(){return this.range=this.set.map(P=>P.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(P){let F=((this.options.includePrerelease&&v)|(this.options.loose&&E))+":"+P,j=l.get(F);if(j)return j;let V=this.options.loose,X=V?h[c.HYPHENRANGELOOSE]:h[c.HYPHENRANGE];P=P.replace(X,re(this.options.includePrerelease)),u("hyphen replace",P),P=P.replace(h[c.COMPARATORTRIM],p),u("comparator trim",P),P=P.replace(h[c.TILDETRIM],y),u("tilde trim",P),P=P.replace(h[c.CARETTRIM],m),u("caret trim",P);let ae=P.split(" ").map(Te=>ne(Te,this.options)).join(" ").split(/\s+/).map(Te=>W(Te,this.options));V&&(ae=ae.filter(Te=>(u("loose invalid filter",Te,this.options),!!Te.match(h[c.COMPARATORLOOSE])))),u("range list",ae);let pe=new Map,le=ae.map(Te=>new f(Te,this.options));for(let Te of le){if(T(Te))return[Te];pe.set(Te.value,Te)}pe.size>1&&pe.has("")&&pe.delete("");let _e=[...pe.values()];return l.set(F,_e),_e}intersects(P,F){if(!(P instanceof ha))throw new TypeError("a Range is required");return this.set.some(j=>Y(j,F)&&P.set.some(V=>Y(V,F)&&j.every(X=>V.every(ae=>X.intersects(ae,F)))))}test(P){if(!P)return!1;if(typeof P=="string")try{P=new s(P,this.options)}catch{return!1}for(let F=0;FO.value==="<0.0.0-0",I=O=>O.value==="",Y=(O,P)=>{let F=!0,j=O.slice(),V=j.pop();for(;F&&j.length;)F=j.every(X=>V.intersects(X,P)),V=j.pop();return F},ne=(O,P)=>(u("comp",O,P),O=K(O,P),u("caret",O),O=C(O,P),u("tildes",O),O=oe(O,P),u("xrange",O),O=B(O,P),u("stars",O),O),J=O=>!O||O.toLowerCase()==="x"||O==="*",C=(O,P)=>O.trim().split(/\s+/).map(F=>H(F,P)).join(" "),H=(O,P)=>{let F=P.loose?h[c.TILDELOOSE]:h[c.TILDE];return O.replace(F,(j,V,X,ae,pe)=>{u("tilde",O,j,V,X,ae,pe);let le;return J(V)?le="":J(X)?le=`>=${V}.0.0 <${+V+1}.0.0-0`:J(ae)?le=`>=${V}.${X}.0 <${V}.${+X+1}.0-0`:pe?(u("replaceTilde pr",pe),le=`>=${V}.${X}.${ae}-${pe} <${V}.${+X+1}.0-0`):le=`>=${V}.${X}.${ae} <${V}.${+X+1}.0-0`,u("tilde return",le),le})},K=(O,P)=>O.trim().split(/\s+/).map(F=>Z(F,P)).join(" "),Z=(O,P)=>{u("caret",O,P);let F=P.loose?h[c.CARETLOOSE]:h[c.CARET],j=P.includePrerelease?"-0":"";return O.replace(F,(V,X,ae,pe,le)=>{u("caret",O,V,X,ae,pe,le);let _e;return J(X)?_e="":J(ae)?_e=`>=${X}.0.0${j} <${+X+1}.0.0-0`:J(pe)?X==="0"?_e=`>=${X}.${ae}.0${j} <${X}.${+ae+1}.0-0`:_e=`>=${X}.${ae}.0${j} <${+X+1}.0.0-0`:le?(u("replaceCaret pr",le),X==="0"?ae==="0"?_e=`>=${X}.${ae}.${pe}-${le} <${X}.${ae}.${+pe+1}-0`:_e=`>=${X}.${ae}.${pe}-${le} <${X}.${+ae+1}.0-0`:_e=`>=${X}.${ae}.${pe}-${le} <${+X+1}.0.0-0`):(u("no pr"),X==="0"?ae==="0"?_e=`>=${X}.${ae}.${pe}${j} <${X}.${ae}.${+pe+1}-0`:_e=`>=${X}.${ae}.${pe}${j} <${X}.${+ae+1}.0-0`:_e=`>=${X}.${ae}.${pe} <${+X+1}.0.0-0`),u("caret return",_e),_e})},oe=(O,P)=>(u("replaceXRanges",O,P),O.split(/\s+/).map(F=>ee(F,P)).join(" ")),ee=(O,P)=>{O=O.trim();let F=P.loose?h[c.XRANGELOOSE]:h[c.XRANGE];return O.replace(F,(j,V,X,ae,pe,le)=>{u("xRange",O,j,V,X,ae,pe,le);let _e=J(X),Te=_e||J(ae),Be=Te||J(pe),At=Be;return V==="="&&At&&(V=""),le=P.includePrerelease?"-0":"",_e?V===">"||V==="<"?j="<0.0.0-0":j="*":V&&At?(Te&&(ae=0),pe=0,V===">"?(V=">=",Te?(X=+X+1,ae=0,pe=0):(ae=+ae+1,pe=0)):V==="<="&&(V="<",Te?X=+X+1:ae=+ae+1),V==="<"&&(le="-0"),j=`${V+X}.${ae}.${pe}${le}`):Te?j=`>=${X}.0.0${le} <${+X+1}.0.0-0`:Be&&(j=`>=${X}.${ae}.0${le} <${X}.${+ae+1}.0-0`),u("xRange return",j),j})},B=(O,P)=>(u("replaceStars",O,P),O.trim().replace(h[c.STAR],"")),W=(O,P)=>(u("replaceGTE0",O,P),O.trim().replace(h[P.includePrerelease?c.GTE0PRE:c.GTE0],"")),re=O=>(P,F,j,V,X,ae,pe,le,_e,Te,Be,At,qt)=>(J(j)?F="":J(V)?F=`>=${j}.0.0${O?"-0":""}`:J(X)?F=`>=${j}.${V}.0${O?"-0":""}`:ae?F=`>=${F}`:F=`>=${F}${O?"-0":""}`,J(_e)?le="":J(Te)?le=`<${+_e+1}.0.0-0`:J(Be)?le=`<${_e}.${+Te+1}.0-0`:At?le=`<=${_e}.${Te}.${Be}-${At}`:O?le=`<${_e}.${Te}.${+Be+1}-0`:le=`<=${le}`,`${F} ${le}`.trim()),he=(O,P,F)=>{for(let j=0;j0){let V=O[j].semver;if(V.major===P.major&&V.minor===P.minor&&V.patch===P.patch)return!0}return!1}return!0}}}),Na=me({"../../node_modules/semver/classes/comparator.js"(t,e){var n=Symbol("SemVer ANY"),a=class li{static get ANY(){return n}constructor(y,m){if(m=l(m),y instanceof li){if(y.loose===!!m.loose)return y;y=y.value}y=y.trim().split(/\s+/).join(" "),s("comparator",y,m),this.options=m,this.loose=!!m.loose,this.parse(y),this.semver===n?this.value="":this.value=this.operator+this.semver.version,s("comp",this)}parse(y){let m=this.options.loose?i[f.COMPARATORLOOSE]:i[f.COMPARATOR],v=y.match(m);if(!v)throw new TypeError(`Invalid comparator: ${y}`);this.operator=v[1]!==void 0?v[1]:"",this.operator==="="&&(this.operator=""),v[2]?this.semver=new h(v[2],this.options.loose):this.semver=n}toString(){return this.value}test(y){if(s("Comparator.test",y,this.options.loose),this.semver===n||y===n)return!0;if(typeof y=="string")try{y=new h(y,this.options)}catch{return!1}return u(y,this.operator,this.semver,this.options)}intersects(y,m){if(!(y instanceof li))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new c(y.value,m).test(this.value):y.operator===""?y.value===""?!0:new c(this.value,m).test(y.semver):(m=l(m),m.includePrerelease&&(this.value==="<0.0.0-0"||y.value==="<0.0.0-0")||!m.includePrerelease&&(this.value.startsWith("<0.0.0")||y.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&y.operator.startsWith(">")||this.operator.startsWith("<")&&y.operator.startsWith("<")||this.semver.version===y.semver.version&&this.operator.includes("=")&&y.operator.includes("=")||u(this.semver,"<",y.semver,m)&&this.operator.startsWith(">")&&y.operator.startsWith("<")||u(this.semver,">",y.semver,m)&&this.operator.startsWith("<")&&y.operator.startsWith(">")))}};e.exports=a;var l=Li(),{safeRe:i,t:f}=qn(),u=ku(),s=xa(),h=ht(),c=Mt()}}),Da=me({"../../node_modules/semver/functions/satisfies.js"(t,e){var n=Mt(),a=(l,i,f)=>{try{i=new n(i,f)}catch{return!1}return i.test(l)};e.exports=a}}),Pv=me({"../../node_modules/semver/ranges/to-comparators.js"(t,e){var n=Mt(),a=(l,i)=>new n(l,i).set.map(f=>f.map(u=>u.value).join(" ").trim().split(" "));e.exports=a}}),Cv=me({"../../node_modules/semver/ranges/max-satisfying.js"(t,e){var n=ht(),a=Mt(),l=(i,f,u)=>{let s=null,h=null,c=null;try{c=new a(f,u)}catch{return null}return i.forEach(p=>{c.test(p)&&(!s||h.compare(p)===-1)&&(s=p,h=new n(s,u))}),s};e.exports=l}}),xv=me({"../../node_modules/semver/ranges/min-satisfying.js"(t,e){var n=ht(),a=Mt(),l=(i,f,u)=>{let s=null,h=null,c=null;try{c=new a(f,u)}catch{return null}return i.forEach(p=>{c.test(p)&&(!s||h.compare(p)===1)&&(s=p,h=new n(s,u))}),s};e.exports=l}}),Iv=me({"../../node_modules/semver/ranges/min-version.js"(t,e){var n=ht(),a=Mt(),l=Ia(),i=(f,u)=>{f=new a(f,u);let s=new n("0.0.0");if(f.test(s)||(s=new n("0.0.0-0"),f.test(s)))return s;s=null;for(let h=0;h{let m=new n(y.semver.version);switch(y.operator){case">":m.prerelease.length===0?m.patch++:m.prerelease.push(0),m.raw=m.format();case"":case">=":(!p||l(m,p))&&(p=m);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${y.operator}`)}}),p&&(!s||l(s,p))&&(s=p)}return s&&f.test(s)?s:null};e.exports=i}}),Nv=me({"../../node_modules/semver/ranges/valid.js"(t,e){var n=Mt(),a=(l,i)=>{try{return new n(l,i).range||"*"}catch{return null}};e.exports=a}}),Mi=me({"../../node_modules/semver/ranges/outside.js"(t,e){var n=ht(),a=Na(),{ANY:l}=a,i=Mt(),f=Da(),u=Ia(),s=$i(),h=ki(),c=ji(),p=(y,m,v,E)=>{y=new n(y,E),m=new i(m,E);let T,I,Y,ne,J;switch(v){case">":T=u,I=h,Y=s,ne=">",J=">=";break;case"<":T=s,I=c,Y=u,ne="<",J="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(f(y,m,E))return!1;for(let C=0;C{oe.semver===l&&(oe=new a(">=0.0.0")),K=K||oe,Z=Z||oe,T(oe.semver,K.semver,E)?K=oe:Y(oe.semver,Z.semver,E)&&(Z=oe)}),K.operator===ne||K.operator===J||(!Z.operator||Z.operator===ne)&&I(y,Z.semver)||Z.operator===J&&Y(y,Z.semver))return!1}return!0};e.exports=p}}),Dv=me({"../../node_modules/semver/ranges/gtr.js"(t,e){var n=Mi(),a=(l,i,f)=>n(l,i,">",f);e.exports=a}}),Lv=me({"../../node_modules/semver/ranges/ltr.js"(t,e){var n=Mi(),a=(l,i,f)=>n(l,i,"<",f);e.exports=a}}),Fv=me({"../../node_modules/semver/ranges/intersects.js"(t,e){var n=Mt(),a=(l,i,f)=>(l=new n(l,f),i=new n(i,f),l.intersects(i,f));e.exports=a}}),$v=me({"../../node_modules/semver/ranges/simplify.js"(t,e){var n=Da(),a=kt();e.exports=(l,i,f)=>{let u=[],s=null,h=null,c=l.sort((v,E)=>a(v,E,f));for(let v of c)n(v,i,f)?(h=v,s||(s=v)):(h&&u.push([s,h]),h=null,s=null);s&&u.push([s,null]);let p=[];for(let[v,E]of u)v===E?p.push(v):!E&&v===c[0]?p.push("*"):E?v===c[0]?p.push(`<=${E}`):p.push(`${v} - ${E}`):p.push(`>=${v}`);let y=p.join(" || "),m=typeof i.raw=="string"?i.raw:String(i);return y.length{if(m===v)return!0;m=new n(m,E),v=new n(v,E);let T=!1;e:for(let I of m.set){for(let Y of v.set){let ne=c(I,Y,E);if(T=T||ne!==null,ne)continue e}if(T)return!1}return!0},s=[new a(">=0.0.0-0")],h=[new a(">=0.0.0")],c=(m,v,E)=>{if(m===v)return!0;if(m.length===1&&m[0].semver===l){if(v.length===1&&v[0].semver===l)return!0;E.includePrerelease?m=s:m=h}if(v.length===1&&v[0].semver===l){if(E.includePrerelease)return!0;v=h}let T=new Set,I,Y;for(let ee of m)ee.operator===">"||ee.operator===">="?I=p(I,ee,E):ee.operator==="<"||ee.operator==="<="?Y=y(Y,ee,E):T.add(ee.semver);if(T.size>1)return null;let ne;if(I&&Y&&(ne=f(I.semver,Y.semver,E),ne>0||ne===0&&(I.operator!==">="||Y.operator!=="<=")))return null;for(let ee of T){if(I&&!i(ee,String(I),E)||Y&&!i(ee,String(Y),E))return null;for(let B of v)if(!i(ee,String(B),E))return!1;return!0}let J,C,H,K,Z=Y&&!E.includePrerelease&&Y.semver.prerelease.length?Y.semver:!1,oe=I&&!E.includePrerelease&&I.semver.prerelease.length?I.semver:!1;Z&&Z.prerelease.length===1&&Y.operator==="<"&&Z.prerelease[0]===0&&(Z=!1);for(let ee of v){if(K=K||ee.operator===">"||ee.operator===">=",H=H||ee.operator==="<"||ee.operator==="<=",I){if(oe&&ee.semver.prerelease&&ee.semver.prerelease.length&&ee.semver.major===oe.major&&ee.semver.minor===oe.minor&&ee.semver.patch===oe.patch&&(oe=!1),ee.operator===">"||ee.operator===">="){if(J=p(I,ee,E),J===ee&&J!==I)return!1}else if(I.operator===">="&&!i(I.semver,String(ee),E))return!1}if(Y){if(Z&&ee.semver.prerelease&&ee.semver.prerelease.length&&ee.semver.major===Z.major&&ee.semver.minor===Z.minor&&ee.semver.patch===Z.patch&&(Z=!1),ee.operator==="<"||ee.operator==="<="){if(C=y(Y,ee,E),C===ee&&C!==Y)return!1}else if(Y.operator==="<="&&!i(Y.semver,String(ee),E))return!1}if(!ee.operator&&(Y||I)&&ne!==0)return!1}return!(I&&H&&!Y&&ne!==0||Y&&K&&!I&&ne!==0||oe||Z)},p=(m,v,E)=>{if(!m)return v;let T=f(m.semver,v.semver,E);return T>0?m:T<0||v.operator===">"&&m.operator===">="?v:m},y=(m,v,E)=>{if(!m)return v;let T=f(m.semver,v.semver,E);return T<0?m:T>0||v.operator==="<"&&m.operator==="<="?v:m};e.exports=u}}),kv=me({"../../node_modules/semver/index.js"(t,e){var n=qn(),a=Ca(),l=ht(),i=Fu(),f=an(),u=hv(),s=dv(),h=pv(),c=gv(),p=yv(),y=mv(),m=vv(),v=bv(),E=kt(),T=Sv(),I=Ev(),Y=Fi(),ne=_v(),J=wv(),C=Ia(),H=$i(),K=$u(),Z=ju(),oe=ji(),ee=ki(),B=ku(),W=Ov(),re=Na(),he=Mt(),O=Da(),P=Pv(),F=Cv(),j=xv(),V=Iv(),X=Nv(),ae=Mi(),pe=Dv(),le=Lv(),_e=Fv(),Te=$v(),Be=jv();e.exports={parse:f,valid:u,clean:s,inc:h,diff:c,major:p,minor:y,patch:m,prerelease:v,compare:E,rcompare:T,compareLoose:I,compareBuild:Y,sort:ne,rsort:J,gt:C,lt:H,eq:K,neq:Z,gte:oe,lte:ee,cmp:B,coerce:W,Comparator:re,Range:he,satisfies:O,toComparators:P,maxSatisfying:F,minSatisfying:j,minVersion:V,validRange:X,outside:ae,gtr:pe,ltr:le,intersects:_e,simplifyRange:Te,subset:Be,SemVer:l,re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:a.SEMVER_SPEC_VERSION,RELEASE_TYPES:a.RELEASE_TYPES,compareIdentifiers:i.compareIdentifiers,rcompareIdentifiers:i.rcompareIdentifiers}}}),Mu={};St(Mu,{ActiveTabs:()=>aS,Consumer:()=>hc,ManagerContext:()=>Un,Provider:()=>fc,addons:()=>nS,combineParameters:()=>cc,controlOrMetaKey:()=>$b,controlOrMetaSymbol:()=>Fb,eventMatchesShortcut:()=>kb,eventToShortcut:()=>Gi,isMacLike:()=>La,isShortcutTaken:()=>jb,keyToSymbol:()=>tc,merge:()=>mr,mockChannel:()=>uc,optionOrAltSymbol:()=>ec,shortcutMatchesShortcut:()=>Hi,shortcutToHumanString:()=>Mb,types:()=>yS,useAddonState:()=>cS,useArgTypes:()=>gS,useArgs:()=>fS,useChannel:()=>pc,useGlobalTypes:()=>dS,useGlobals:()=>hS,useParameter:()=>uS,useSharedState:()=>gc,useStoryPrepared:()=>lS,useStorybookApi:()=>or,useStorybookState:()=>sS});var Mv=fv(Mu),Ke=jt(Xr),qv=jt(su),tr=Qe,$o=je,Uv=Xr,Gv=({api:t,state:e})=>(0,Uv.createContext)({api:t,state:e}),Cn=jt(pg),Il=wi,Hv=t=>{t.fn("set",function(e,n){return t.set(this._area,this._in(e),(0,Il.stringify)(n,{maxDepth:50}))}),t.fn("get",function(e,n){let a=t.get(this._area,this._in(e));return a!==null?(0,Il.parse)(a):n||a})};Hv(Cn.default._);var qu="@storybook/manager/store";function ui(t){return t.get(qu)||{}}function Bv(t,e){return t.set(qu,e)}function Wv(t,e){let n=ui(t);return Bv(t,{...n,...e})}var Yv=class{constructor({setState:t,getState:e}){this.upstreamSetState=t,this.upstreamGetState=e}getInitialState(t){return{...t,...ui(Cn.default.local),...ui(Cn.default.session)}}getState(){return this.upstreamGetState()}async setState(t,e,n){let a,l;typeof e=="function"?(a=e,l=n):l=e;let{persistence:i="none"}=l||{},f={},u={};typeof t=="function"?f=h=>(u=t(h),u):(f=t,u=f);let s=await new Promise(h=>{this.upstreamSetState(f,h)});if(i!=="none"){let h=i==="session"?Cn.default.session:Cn.default.local;await Wv(h,u)}return a&&a(s),s}},Vv=jt(su),zv=jt(mg),Kv=je,mr=(t,e)=>(0,Vv.default)({},t,e,(n,a)=>{if(Array.isArray(a)&&Array.isArray(n))return a.forEach(l=>{n.find(i=>i===l||(0,zv.default)(i,l))||n.push(l)}),n;if(Array.isArray(n))return Kv.logger.log(["the types mismatch, picking",n]),n}),Xv=(...t)=>t.reduce((e,n)=>mr(e,n),{}),ci=Xv,Uu={};St(Uu,{init:()=>Qv});var Qv=({provider:t,fullAPI:e})=>({api:t.renderPreview?{renderPreview:t.renderPreview}:{},state:{},init:()=>{t.handleAPI(e)}}),Gu={};St(Gu,{ensurePanel:()=>fi,init:()=>Jv});var ia=vi;function fi(t,e,n){let a=Object.keys(t);return a.indexOf(e)>=0?e:a.length?a[0]:n}var Jv=({provider:t,store:e,fullAPI:n})=>{let a={getElements:l=>t.getElements(l),getPanels:()=>a.getElements(ia.Addon_TypesEnum.PANEL),getStoryPanels:()=>{let l=a.getElements(ia.Addon_TypesEnum.PANEL),{storyId:i}=e.getState(),f=n.getData(i);if(!l||!f||f.type!=="story")return l;let{parameters:u}=f,s={};return Object.entries(l).forEach(([h,c])=>{let{paramKey:p}=c;p&&u&&u[p]&&u[p].disable||(s[h]=c)}),s},getSelectedPanel:()=>{let{selectedPanel:l}=e.getState();return fi(a.getElements(ia.Addon_TypesEnum.PANEL),l,l)},setSelectedPanel:l=>{e.setState({selectedPanel:l},{persistence:"session"})},setAddonState(l,i,f){let u,{addons:s}=e.getState();return typeof i=="function"?u=i(a.getAddonState(l)):u=i,e.setState({addons:{...s,[l]:u}},f).then(()=>a.getAddonState(l))},getAddonState:l=>e.getState().addons[l]||(globalThis==null?void 0:globalThis.STORYBOOK_ADDON_STATE[l])};return{api:a,state:{selectedPanel:fi(a.getElements(ia.Addon_TypesEnum.PANEL),e.getState().selectedPanel),addons:{}}}},Hu={};St(Hu,{init:()=>Zv});var Nl=Qe,Zv=({provider:t})=>{let e={getChannel:()=>t.channel,on:(n,a)=>(t.channel.on(n,a),()=>t.channel.off(n,a)),off:(n,a)=>t.channel.off(n,a),once:(n,a)=>t.channel.once(n,a),emit:(n,a,...l)=>{var i;(i=a==null?void 0:a.options)!=null&&i.target&&a.options.target!=="storybook-preview-iframe"&&!a.options.target.startsWith("storybook-ref-")&&(a.options.target=a.options.target!=="storybook_internal"?`storybook-ref-${a.options.target}`:"storybook-preview-iframe"),t.channel.emit(n,a,...l)},collapseAll:()=>{e.emit(Nl.STORIES_COLLAPSE_ALL,{})},expandAll:()=>{e.emit(Nl.STORIES_EXPAND_ALL)}};return{api:e,state:{}}},Bu={};St(Bu,{init:()=>eb});var eb=({store:t})=>{let e={addNotification:n=>{e.clearNotification(n.id);let{notifications:a}=t.getState();t.setState({notifications:[...a,n]})},clearNotification:n=>{let{notifications:a}=t.getState();t.setState({notifications:a.filter(i=>i.id!==n)});let l=a.find(i=>i.id===n);l&&l.onClear&&l.onClear({dismissed:!1})}};return{api:e,state:{notifications:[]}}},Wu={};St(Wu,{init:()=>tb});var tb=({store:t,navigate:e,fullAPI:n})=>{let a=()=>{let{path:l}=n.getUrlState();return!!(l||"").match(/^\/settings/)};return{state:{settings:{lastTrackedStoryId:null}},api:{closeSettings:()=>{let{settings:{lastTrackedStoryId:l}}=t.getState();l?n.selectStory(l):n.selectFirstStory()},changeSettingsTab:l=>{e(`/settings/${l}`)},isSettingsScreenActive:a,navigateToSettingsPage:async l=>{if(!a()){let{settings:i,storyId:f}=t.getState();await t.setState({settings:{...i,lastTrackedStoryId:f}})}e(l)},retrieveSelection(){let{settings:l}=t.getState();return l.lastTrackedStoryId},storeSelection:async()=>{let{storyId:l,settings:i}=t.getState();await t.setState({settings:{...i,lastTrackedStoryId:l}})}}}},Yu={};St(Yu,{init:()=>Tb});var rb=Ne,Vr=rr,tt=Qe,nb=je,ab=je,Vu={};St(Vu,{defaultStoryMapper:()=>Qu,getSourceType:()=>Xu,init:()=>wb});var zu=Ne,ob=ct,Ku=jt($n()),ib=ct,sb=jt(wg()),lb=jt(Pn),ub=rr,cb=/\s*\/\s*/,fb=({globalParameters:t,kindParameters:e,stories:n})=>(0,lb.default)(n,a=>({...a,parameters:cc(t,e[a.kind],a.parameters)})),hb=(t,e)=>qi(db(t),e),db=t=>({v:4,entries:Object.entries(t).reduce((e,[n,a])=>{if(!a)return e;let{docsOnly:l,fileName:i,...f}=a.parameters,u={title:a.kind,id:n,name:a.name,importPath:i};if(l)e[n]={type:"docs",tags:["stories-mdx"],storiesImports:[],...u};else{let{argTypes:s,args:h,initialArgs:c}=a;e[n]={type:"story",...u,parameters:f,argTypes:s,args:h,initialArgs:c}}return e},{})}),pb=t=>({v:3,stories:Object.values(t.stories).reduce((e,n)=>(e[n.id]={...n,title:n.kind,name:n.name||n.story,importPath:n.parameters.fileName||""},e),{})}),gb=t=>{let e=(0,sb.default)(Object.values(t.stories),"title");return{v:4,entries:Object.values(t.stories).reduce((n,a)=>{var l;let i="story";return((l=a.parameters)!=null&&l.docsOnly||a.name==="Page"&&e[a.title]===1)&&(i="docs"),n[a.id]={type:i,...i==="docs"&&{tags:["stories-mdx"],storiesImports:[]},...a},delete n[a.id].story,delete n[a.id].kind,n},{})}},qi=(t,{provider:e,docsOptions:n,filters:a,status:l})=>{if(!t.v)throw new Error("Composition: Missing stories.json version");let i=t;i=i.v===2?pb(i):i,i=i.v===3?gb(i):i,i=i;let f=Object.values(i.entries).filter(E=>{let T=!0;return Object.values(a).forEach(I=>{T!==!1&&(T=I({...E,status:l[E.id]}))}),T}),{sidebar:u={}}=e.getConfig(),{showRoots:s,collapsedRoots:h=[],renderLabel:c}=u,p=typeof s<"u",y=f.reduce((E,T)=>{if(n.docsMode&&T.type!=="docs")return E;let{title:I}=T,Y=I.trim().split(cb),ne=(!p||s)&&Y.length>1?[Y.shift()]:[],J=[...ne,...Y],C=J.reduce((H,K,Z)=>{let oe=Z>0&&H[Z-1],ee=(0,ub.sanitize)(oe?`${oe}-${K}`:K);if(oe===ee)throw new Error(ib.dedent` + `),M),{});return W.default.stringify(le(N),_e).replace(/ /g,"+").split(";").map(M=>M.replace("=",":")).join(";")},Be=(0,B.default)(1e3)(S=>S!==void 0?W.default.parse(S,{ignoreQueryPrefix:!0}):{}),At=S=>Be(S.search),qt=S=>W.default.stringify(S,{addQueryPrefix:!0,encode:!1}),Sr=(0,B.default)(1e3)((S,w,x=!0)=>{if(x){if(typeof w!="string")throw new Error("startsWith only works with string targets");return S&&S.startsWith(w)?{path:S}:null}let N=typeof w=="string"&&S===w,M=S&&w&&S.match(w);return N||M?{path:S}:null}),on=(()=>{let S;return typeof window<"u"?S=window:typeof globalThis<"u"?S=globalThis:typeof ot<"u"?S=ot:typeof self<"u"?S=self:S={},S})(),Nt=d(Xr),st=Xr;function Qt(){return Qt=Object.assign?Object.assign.bind():function(S){for(var w=1;w=0&&(w.hash=S.substr(x),S=S.substr(0,x));var N=S.indexOf("?");N>=0&&(w.search=S.substr(N),S=S.substr(0,N)),S&&(w.pathname=S)}return w}var He=Xr;function Pt(S,w){if(!S)throw new Error(w)}var Er=(0,He.createContext)(null),_r=(0,He.createContext)(null),qr=(0,He.createContext)({outlet:null,matches:[]});function sr(S){let{basename:w="/",children:x=null,location:N,navigationType:M=Et.Pop,navigator:ue,static:ie=!1}=S;_t()&&Pt(!1);let ge=We(w),be=(0,He.useMemo)(()=>({basename:ge,navigator:ue,static:ie}),[ge,ue,ie]);typeof N=="string"&&(N=Tt(N));let{pathname:Le="/",search:ke="",hash:Re="",state:Ie=null,key:qe="default"}=N,ut=(0,He.useMemo)(()=>{let Ot=Ce(Le,ge);return Ot==null?null:{pathname:Ot,search:ke,hash:Re,state:Ie,key:qe}},[ge,Le,ke,Re,Ie,qe]);return ut==null?null:(0,He.createElement)(Er.Provider,{value:be},(0,He.createElement)(_r.Provider,{children:x,value:{location:ut,navigationType:M}}))}function ln(S){_t()||Pt(!1);let{basename:w,navigator:x}=(0,He.useContext)(Er),{hash:N,pathname:M,search:ue}=R(S),ie=M;if(w!=="/"){let ge=Ee(S),be=ge!=null&&ge.endsWith("/");ie=M==="/"?w+(be?"/":""):De([w,M])}return x.createHref({pathname:ie,search:ue,hash:N})}function _t(){return(0,He.useContext)(_r)!=null}function ht(){return _t()||Pt(!1),(0,He.useContext)(_r).location}function wr(){_t()||Pt(!1);let{basename:S,navigator:w}=(0,He.useContext)(Er),{matches:x}=(0,He.useContext)(qr),{pathname:N}=ht(),M=JSON.stringify(x.map(ie=>ie.pathnameBase)),ue=(0,He.useRef)(!1);return(0,He.useEffect)(()=>{ue.current=!0}),(0,He.useCallback)(function(ie,ge){if(ge===void 0&&(ge={}),!ue.current)return;if(typeof ie=="number"){w.go(ie);return}let be=fe(ie,JSON.parse(M),N);S!=="/"&&(be.pathname=De([S,be.pathname])),(ge.replace?w.replace:w.push)(be,ge.state)},[S,w,M,N])}function R(S){let{matches:w}=(0,He.useContext)(qr),{pathname:x}=ht(),N=JSON.stringify(w.map(M=>M.pathnameBase));return(0,He.useMemo)(()=>fe(S,JSON.parse(N),x),[S,N,x])}function L(S,w){w===void 0&&(w="/");let{pathname:x,search:N="",hash:M=""}=typeof S=="string"?Tt(S):S;return{pathname:x?x.startsWith("/")?x:Q(x,w):w,search:Ye(N),hash:pt(M)}}function Q(S,w){let x=w.replace(/\/+$/,"").split("/");return S.split("/").forEach(N=>{N===".."?x.length>1&&x.pop():N!=="."&&x.push(N)}),x.length>1?x.join("/"):"/"}function fe(S,w,x){let N=typeof S=="string"?Tt(S):S,M=S===""||N.pathname===""?"/":N.pathname,ue;if(M==null)ue=x;else{let ge=w.length-1;if(M.startsWith("..")){let be=M.split("/");for(;be[0]==="..";)be.shift(),ge-=1;N.pathname=be.join("/")}ue=ge>=0?w[ge]:"/"}let ie=L(N,ue);return M&&M!=="/"&&M.endsWith("/")&&!ie.pathname.endsWith("/")&&(ie.pathname+="/"),ie}function Ee(S){return S===""||S.pathname===""?"/":typeof S=="string"?Tt(S).pathname:S.pathname}function Ce(S,w){if(w==="/")return S;if(!S.toLowerCase().startsWith(w.toLowerCase()))return null;let x=S.charAt(w.length);return x&&x!=="/"?null:S.slice(w.length)||"/"}var De=S=>S.join("/").replace(/\/\/+/g,"/"),We=S=>S.replace(/\/+$/,"").replace(/^\/*/,"/"),Ye=S=>!S||S==="?"?"":S.startsWith("?")?S:"?"+S,pt=S=>!S||S==="#"?"":S.startsWith("#")?S:"#"+S;function wt(){return wt=Object.assign||function(S){for(var w=1;w=0)&&(x[M]=S[M]);return x}var gt=["onClick","reloadDocument","replace","state","target","to"],Or=["aria-current","caseSensitive","className","end","style","to"];function un(S){let{basename:w,children:x,window:N}=S,M=(0,st.useRef)();M.current==null&&(M.current=sn({window:N}));let ue=M.current,[ie,ge]=(0,st.useState)({action:ue.action,location:ue.location});return(0,st.useLayoutEffect)(()=>ue.listen(ge),[ue]),(0,st.createElement)(sr,{basename:w,children:x,location:ie.location,navigationType:ie.action,navigator:ue})}function cn(S){return!!(S.metaKey||S.altKey||S.ctrlKey||S.shiftKey)}var Rr=(0,st.forwardRef)(function(S,w){let{onClick:x,reloadDocument:N,replace:M=!1,state:ue,target:ie,to:ge}=S,be=Dt(S,gt),Le=ln(ge),ke=lr(ge,{replace:M,state:ue,target:ie});function Re(Ie){x&&x(Ie),!Ie.defaultPrevented&&!N&&ke(Ie)}return(0,st.createElement)("a",wt({},be,{href:Le,onClick:Re,ref:w,target:ie}))});(0,st.forwardRef)(function(S,w){let{"aria-current":x="page",caseSensitive:N=!1,className:M="",end:ue=!1,style:ie,to:ge}=S,be=Dt(S,Or),Le=ht(),ke=R(ge),Re=Le.pathname,Ie=ke.pathname;N||(Re=Re.toLowerCase(),Ie=Ie.toLowerCase());let qe=Re===Ie||!ue&&Re.startsWith(Ie)&&Re.charAt(Ie.length)==="/",ut=qe?x:void 0,Ot;typeof M=="function"?Ot=M({isActive:qe}):Ot=[M,qe?"active":null].filter(Boolean).join(" ");let Ar=typeof ie=="function"?ie({isActive:qe}):ie;return(0,st.createElement)(Rr,wt({},be,{"aria-current":ut,className:Ot,ref:w,style:Ar,to:ge}))});function lr(S,w){let{target:x,replace:N,state:M}=w===void 0?{}:w,ue=wr(),ie=ht(),ge=R(S);return(0,st.useCallback)(be=>{if(be.button===0&&(!x||x==="_self")&&!cn(be)){be.preventDefault();let Le=!!N||Ut(ie)===Ut(ge);ue(S,{replace:Le,state:M})}},[ie,ue,ge,N,M,x,S])}var ur=d(Xr),Hn=({hidden:S,children:w})=>ur.default.createElement("div",{hidden:S},w),{document:Bn}=on,Ma=()=>`${Bn.location.pathname}?`,qa=()=>{let S=wr();return(0,Nt.useCallback)((w,{plain:x,...N}={})=>{if(typeof w=="string"&&w.startsWith("#")){Bn.location.hash=w;return}if(typeof w=="string"){let M=x?w:`?path=${w}`;return S(M,N)}if(typeof w=="number")return S(w)},[])},lt=({to:S,children:w,...x})=>Nt.default.createElement(Rr,{to:`${Ma()}path=${S}`,...x},w);lt.displayName="QueryLink";var fn=({children:S})=>{let w=ht(),{path:x,singleStory:N}=Be(w.search),{viewMode:M,storyId:ue,refId:ie}=O(x);return Nt.default.createElement(Nt.default.Fragment,null,S({path:x||"/",location:w,viewMode:M,storyId:ue,refId:ie,singleStory:N==="true"}))};fn.displayName="QueryLocation";function dn({children:S,path:w,startsWith:x=!1}){return Nt.default.createElement(fn,null,({path:N,...M})=>S({match:Sr(N,w,x),...M}))}dn.displayName="QueryMatch";function Ur(S){let{children:w,hideOnly:x,...N}=S;return N.startsWith===void 0&&(N.startsWith=!1),Nt.default.createElement(dn,{...N},({match:M})=>x?Nt.default.createElement(Hn,{hidden:!M},w):M?w:null)}Ur.displayName="Route";var Ua=(...S)=>un(...S),hn=(...S)=>sr(...S);return Ro}var Mm=Object.create,Aa=Object.defineProperty,qm=Object.getOwnPropertyDescriptor,Um=Object.getOwnPropertyNames,Gm=Object.getPrototypeOf,Hm=Object.prototype.hasOwnProperty,Bm=(t,e)=>{for(var n in e)Aa(t,n,{get:e[n],enumerable:!0})},Eu=(t,e,n,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let l of Um(e))!Hm.call(t,l)&&l!==n&&Aa(t,l,{get:()=>e[l],enumerable:!(a=qm(e,l))||a.enumerable});return t},Ta=(t,e,n)=>(n=t!=null?Mm(Gm(t)):{},Eu(e||!t||!t.__esModule?Aa(n,"default",{value:t,enumerable:!0}):n,t)),Wm=t=>Eu(Aa({},"__esModule",{value:!0}),t),_u={};Bm(_u,{Channel:()=>Mn,PostMessageTransport:()=>Ai,WebsocketTransport:()=>Ti,createBrowserChannel:()=>cv,createPostMessageChannel:()=>rv,createWebSocketChannel:()=>sv,default:()=>uv});var Ea=Wm(_u),Ym=Ne,Vm=t=>t.transports!==void 0,zm=()=>Math.random().toString(16).slice(2),Mn=class{constructor(t={}){this.sender=zm(),this.events={},this.data={},this.transports=[],this.isAsync=t.async||!1,Vm(t)?(this.transports=t.transports||[],this.transports.forEach(e=>{e.setHandler(n=>this.handleEvent(n))})):this.transports=t.transport?[t.transport]:[],this.transports.forEach(e=>{e.setHandler(n=>this.handleEvent(n))})}get hasTransport(){return this.transports.length>0}addListener(t,e){this.events[t]=this.events[t]||[],this.events[t].push(e)}emit(t,...e){let n={type:t,args:e,from:this.sender},a={};e.length>=1&&e[0]&&e[0].options&&(a=e[0].options);let l=()=>{this.transports.forEach(i=>{i.send(n,a)}),this.handleEvent(n)};this.isAsync?setImmediate(l):l()}last(t){return this.data[t]}eventNames(){return Object.keys(this.events)}listenerCount(t){let e=this.listeners(t);return e?e.length:0}listeners(t){return this.events[t]||void 0}once(t,e){let n=this.onceListener(t,e);this.addListener(t,n)}removeAllListeners(t){t?this.events[t]&&delete this.events[t]:this.events={}}removeListener(t,e){let n=this.listeners(t);n&&(this.events[t]=n.filter(a=>a!==e))}on(t,e){this.addListener(t,e)}off(t,e){this.removeListener(t,e)}handleEvent(t){let e=this.listeners(t.type);e&&e.length&&e.forEach(n=>{n.apply(t,t.args)}),this.data[t.type]=t.args}onceListener(t,e){let n=(...a)=>(this.removeListener(t,n),e(...a));return n}},nt=Ne,Km=Ta(Qe),aa=je,Ao=mi,Xm=Ta(Qr),Qm=Ta(Hl),Jm=je,Zm=t=>{let e=Array.from(document.querySelectorAll("iframe[data-is-storybook]")),[n,...a]=e.filter(i=>{try{return i.contentWindow===t.source}catch{}let f=i.getAttribute("src"),u;try{if(!f)return!1;({origin:u}=new URL(f,document.location.toString()))}catch{return!1}return u===t.origin}),l=n==null?void 0:n.getAttribute("src");if(l&&a.length===0){let{protocol:i,host:f,pathname:u}=new URL(l,document.location.toString());return`${i}//${f}${u}`}return a.length>0&&Jm.logger.error("found multiple candidates for event source"),null},{document:To,location:oa}=nt.global,Sl="storybook-channel",ev={allowFunction:!0,maxDepth:25},Ai=class{constructor(t){this.config=t,this.connected=!1;var e;if(this.buffer=[],typeof((e=nt.global)==null?void 0:e.addEventListener)=="function"&&nt.global.addEventListener("message",this.handleEvent.bind(this),!1),t.page!=="manager"&&t.page!=="preview")throw new Error(`postmsg-channel: "config.page" cannot be "${t.page}"`)}setHandler(t){this.handler=(...e)=>{t.apply(this,e),!this.connected&&this.getLocalFrame().length&&(this.flush(),this.connected=!0)}}send(t,e){let{target:n,allowRegExp:a,allowFunction:l,allowSymbol:i,allowDate:f,allowError:u,allowUndefined:s,allowClass:d,maxDepth:c,space:p,lazyEval:y}=e||{},m=Object.fromEntries(Object.entries({allowRegExp:a,allowFunction:l,allowSymbol:i,allowDate:f,allowError:u,allowUndefined:s,allowClass:d,maxDepth:c,space:p,lazyEval:y}).filter(([Y,ne])=>typeof ne<"u")),v={...ev,...nt.global.CHANNEL_OPTIONS||{},...m},E=this.getFrames(n),T=Xm.default.parse((oa==null?void 0:oa.search)||"",{ignoreQueryPrefix:!0}),I=(0,Ao.stringify)({key:Sl,event:t,refId:T.refId},v);return E.length?(this.buffer.length&&this.flush(),E.forEach(Y=>{try{Y.postMessage(I,"*")}catch{aa.logger.error("sending over postmessage fail")}}),Promise.resolve(null)):new Promise((Y,ne)=>{this.buffer.push({event:t,resolve:Y,reject:ne})})}flush(){let{buffer:t}=this;this.buffer=[],t.forEach(e=>{this.send(e.event).then(e.resolve).catch(e.reject)})}getFrames(t){if(this.config.page==="manager"){let e=Array.from(To.querySelectorAll("iframe[data-is-storybook][data-is-loaded]")).flatMap(n=>{try{return n.contentWindow&&n.dataset.isStorybook!==void 0&&n.id===t?[n.contentWindow]:[]}catch{return[]}});return e!=null&&e.length?e:this.getCurrentFrames()}return nt.global&&nt.global.parent&&nt.global.parent!==nt.global.self?[nt.global.parent]:[]}getCurrentFrames(){return this.config.page==="manager"?Array.from(To.querySelectorAll('[data-is-storybook="true"]')).flatMap(t=>t.contentWindow?[t.contentWindow]:[]):nt.global&&nt.global.parent?[nt.global.parent]:[]}getLocalFrame(){return this.config.page==="manager"?Array.from(To.querySelectorAll("#storybook-preview-iframe")).flatMap(t=>t.contentWindow?[t.contentWindow]:[]):nt.global&&nt.global.parent?[nt.global.parent]:[]}handleEvent(t){try{let{data:e}=t,{key:n,event:a,refId:l}=typeof e=="string"&&(0,Ao.isJSON)(e)?(0,Ao.parse)(e,nt.global.CHANNEL_OPTIONS||{}):e;if(n===Sl){let i=this.config.page==="manager"?' manager ':' preview ',f=Object.values(Km).includes(a.type)?`${a.type}`:`${a.type}`;if(l&&(a.refId=l),a.source=this.config.page==="preview"?t.origin:Zm(t),!a.source){aa.pretty.error(`${i} received ${f} but was unable to determine the source of the event`);return}let u=`${i} received ${f} (${e.length})`;aa.pretty.debug(oa.origin!==a.source?u:`${u} (on ${oa.origin} from ${a.source})`,...a.args),(0,Qm.default)(this.handler,"ChannelHandler should be set"),this.handler(a)}}catch(e){aa.logger.error(e)}}},tv=Ai;function rv({page:t}){let e=new tv({page:t});return new Mn({transport:e})}var nv=Ne,av=je,Po=mi,ov=Ta(Hl),{WebSocket:iv}=nv.global,Ti=class{constructor({url:t,onError:e}){this.buffer=[],this.isReady=!1,this.socket=new iv(t),this.socket.onopen=()=>{this.isReady=!0,this.flush()},this.socket.onmessage=({data:n})=>{let a=typeof n=="string"&&(0,Po.isJSON)(n)?(0,Po.parse)(n):n;(0,ov.default)(this.handler,"WebsocketTransport handler should be set"),this.handler(a)},this.socket.onerror=n=>{e&&e(n)}}setHandler(t){this.handler=t}send(t){this.isReady?this.sendNow(t):this.sendLater(t)}sendLater(t){this.buffer.push(t)}sendNow(t){let e=(0,Po.stringify)(t,{maxDepth:15,allowFunction:!0});this.socket.send(e)}flush(){let{buffer:t}=this;this.buffer=[],t.forEach(e=>this.send(e))}};function sv({url:t,async:e=!1,onError:n=a=>av.logger.warn(a)}){let a=t;if(!a){let i=window.location.protocol==="http:"?"ws":"wss",{hostname:f,port:u}=window.location;a=`${i}://${f}:${u}/storybook-server-channel`}let l=new Ti({url:a,onError:n});return new Mn({transport:l,async:e})}var{CONFIG_TYPE:lv}=Ym.global,uv=Mn;function cv({page:t,extraTransports:e=[]}){let n=[new Ai({page:t}),...e];if(lv==="DEVELOPMENT"){let a=window.location.protocol==="http:"?"ws":"wss",{hostname:l,port:i}=window.location,f=`${a}://${l}:${i}/storybook-server-channel`;n.push(new Ti({url:f,onError:()=>{}}))}return new Mn({transports:n})}var Co={},fv=Object.create,Pa=Object.defineProperty,dv=Object.getOwnPropertyDescriptor,wu=Object.getOwnPropertyNames,hv=Object.getPrototypeOf,pv=Object.prototype.hasOwnProperty,me=(t,e)=>function(){return e||(0,t[wu(t)[0]])((e={exports:{}}).exports,e),e.exports},St=(t,e)=>{for(var n in e)Pa(t,n,{get:e[n],enumerable:!0})},Ou=(t,e,n,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let l of wu(e))!pv.call(t,l)&&l!==n&&Pa(t,l,{get:()=>e[l],enumerable:!(a=dv(e,l))||a.enumerable});return t},jt=(t,e,n)=>(n=t!=null?fv(hv(t)):{},Ou(e||!t||!t.__esModule?Pa(n,"default",{value:t,enumerable:!0}):n,t)),gv=t=>Ou(Pa({},"__esModule",{value:!0}),t),Ca=me({"../../node_modules/semver/internal/constants.js"(t,e){var n="2.0.0",a=Number.MAX_SAFE_INTEGER||9007199254740991,l=16,i=250,f=["major","premajor","minor","preminor","patch","prepatch","prerelease"];e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:l,MAX_SAFE_BUILD_LENGTH:i,MAX_SAFE_INTEGER:a,RELEASE_TYPES:f,SEMVER_SPEC_VERSION:n,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}}}),xa=me({"../../node_modules/semver/internal/debug.js"(t,e){var n=typeof process=="object"&&Co&&Co.NODE_DEBUG&&/\bsemver\b/i.test(Co.NODE_DEBUG)?(...a)=>console.error("SEMVER",...a):()=>{};e.exports=n}}),qn=me({"../../node_modules/semver/internal/re.js"(t,e){var{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:a,MAX_LENGTH:l}=Ca(),i=xa();t=e.exports={};var f=t.re=[],u=t.safeRe=[],s=t.src=[],d=t.t={},c=0,p="[a-zA-Z0-9-]",y=[["\\s",1],["\\d",l],[p,a]],m=E=>{for(let[T,I]of y)E=E.split(`${T}*`).join(`${T}{0,${I}}`).split(`${T}+`).join(`${T}{1,${I}}`);return E},v=(E,T,I)=>{let Y=m(T),ne=c++;i(E,ne,T),d[E]=ne,s[ne]=T,f[ne]=new RegExp(T,I?"g":void 0),u[ne]=new RegExp(Y,I?"g":void 0)};v("NUMERICIDENTIFIER","0|[1-9]\\d*"),v("NUMERICIDENTIFIERLOOSE","\\d+"),v("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${p}*`),v("MAINVERSION",`(${s[d.NUMERICIDENTIFIER]})\\.(${s[d.NUMERICIDENTIFIER]})\\.(${s[d.NUMERICIDENTIFIER]})`),v("MAINVERSIONLOOSE",`(${s[d.NUMERICIDENTIFIERLOOSE]})\\.(${s[d.NUMERICIDENTIFIERLOOSE]})\\.(${s[d.NUMERICIDENTIFIERLOOSE]})`),v("PRERELEASEIDENTIFIER",`(?:${s[d.NUMERICIDENTIFIER]}|${s[d.NONNUMERICIDENTIFIER]})`),v("PRERELEASEIDENTIFIERLOOSE",`(?:${s[d.NUMERICIDENTIFIERLOOSE]}|${s[d.NONNUMERICIDENTIFIER]})`),v("PRERELEASE",`(?:-(${s[d.PRERELEASEIDENTIFIER]}(?:\\.${s[d.PRERELEASEIDENTIFIER]})*))`),v("PRERELEASELOOSE",`(?:-?(${s[d.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${s[d.PRERELEASEIDENTIFIERLOOSE]})*))`),v("BUILDIDENTIFIER",`${p}+`),v("BUILD",`(?:\\+(${s[d.BUILDIDENTIFIER]}(?:\\.${s[d.BUILDIDENTIFIER]})*))`),v("FULLPLAIN",`v?${s[d.MAINVERSION]}${s[d.PRERELEASE]}?${s[d.BUILD]}?`),v("FULL",`^${s[d.FULLPLAIN]}$`),v("LOOSEPLAIN",`[v=\\s]*${s[d.MAINVERSIONLOOSE]}${s[d.PRERELEASELOOSE]}?${s[d.BUILD]}?`),v("LOOSE",`^${s[d.LOOSEPLAIN]}$`),v("GTLT","((?:<|>)?=?)"),v("XRANGEIDENTIFIERLOOSE",`${s[d.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),v("XRANGEIDENTIFIER",`${s[d.NUMERICIDENTIFIER]}|x|X|\\*`),v("XRANGEPLAIN",`[v=\\s]*(${s[d.XRANGEIDENTIFIER]})(?:\\.(${s[d.XRANGEIDENTIFIER]})(?:\\.(${s[d.XRANGEIDENTIFIER]})(?:${s[d.PRERELEASE]})?${s[d.BUILD]}?)?)?`),v("XRANGEPLAINLOOSE",`[v=\\s]*(${s[d.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[d.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[d.XRANGEIDENTIFIERLOOSE]})(?:${s[d.PRERELEASELOOSE]})?${s[d.BUILD]}?)?)?`),v("XRANGE",`^${s[d.GTLT]}\\s*${s[d.XRANGEPLAIN]}$`),v("XRANGELOOSE",`^${s[d.GTLT]}\\s*${s[d.XRANGEPLAINLOOSE]}$`),v("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),v("COERCERTL",s[d.COERCE],!0),v("LONETILDE","(?:~>?)"),v("TILDETRIM",`(\\s*)${s[d.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",v("TILDE",`^${s[d.LONETILDE]}${s[d.XRANGEPLAIN]}$`),v("TILDELOOSE",`^${s[d.LONETILDE]}${s[d.XRANGEPLAINLOOSE]}$`),v("LONECARET","(?:\\^)"),v("CARETTRIM",`(\\s*)${s[d.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",v("CARET",`^${s[d.LONECARET]}${s[d.XRANGEPLAIN]}$`),v("CARETLOOSE",`^${s[d.LONECARET]}${s[d.XRANGEPLAINLOOSE]}$`),v("COMPARATORLOOSE",`^${s[d.GTLT]}\\s*(${s[d.LOOSEPLAIN]})$|^$`),v("COMPARATOR",`^${s[d.GTLT]}\\s*(${s[d.FULLPLAIN]})$|^$`),v("COMPARATORTRIM",`(\\s*)${s[d.GTLT]}\\s*(${s[d.LOOSEPLAIN]}|${s[d.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",v("HYPHENRANGE",`^\\s*(${s[d.XRANGEPLAIN]})\\s+-\\s+(${s[d.XRANGEPLAIN]})\\s*$`),v("HYPHENRANGELOOSE",`^\\s*(${s[d.XRANGEPLAINLOOSE]})\\s+-\\s+(${s[d.XRANGEPLAINLOOSE]})\\s*$`),v("STAR","(<|>)?=?\\s*\\*"),v("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),v("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}}),Pi=me({"../../node_modules/semver/internal/parse-options.js"(t,e){var n=Object.freeze({loose:!0}),a=Object.freeze({}),l=i=>i?typeof i!="object"?n:i:a;e.exports=l}}),Ru=me({"../../node_modules/semver/internal/identifiers.js"(t,e){var n=/^[0-9]+$/,a=(i,f)=>{let u=n.test(i),s=n.test(f);return u&&s&&(i=+i,f=+f),i===f?0:u&&!s?-1:s&&!u?1:ia(f,i);e.exports={compareIdentifiers:a,rcompareIdentifiers:l}}}),dt=me({"../../node_modules/semver/classes/semver.js"(t,e){var n=xa(),{MAX_LENGTH:a,MAX_SAFE_INTEGER:l}=Ca(),{safeRe:i,t:f}=qn(),u=Pi(),{compareIdentifiers:s}=Ru(),d=class Kt{constructor(p,y){if(y=u(y),p instanceof Kt){if(p.loose===!!y.loose&&p.includePrerelease===!!y.includePrerelease)return p;p=p.version}else if(typeof p!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof p}".`);if(p.length>a)throw new TypeError(`version is longer than ${a} characters`);n("SemVer",p,y),this.options=y,this.loose=!!y.loose,this.includePrerelease=!!y.includePrerelease;let m=p.trim().match(y.loose?i[f.LOOSE]:i[f.FULL]);if(!m)throw new TypeError(`Invalid Version: ${p}`);if(this.raw=p,this.major=+m[1],this.minor=+m[2],this.patch=+m[3],this.major>l||this.major<0)throw new TypeError("Invalid major version");if(this.minor>l||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>l||this.patch<0)throw new TypeError("Invalid patch version");m[4]?this.prerelease=m[4].split(".").map(v=>{if(/^[0-9]+$/.test(v)){let E=+v;if(E>=0&&E=0;)typeof this.prerelease[E]=="number"&&(this.prerelease[E]++,E=-2);if(E===-1){if(y===this.prerelease.join(".")&&m===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(v)}}if(y){let E=[y,v];m===!1&&(E=[y]),s(this.prerelease[0],y)===0?isNaN(this.prerelease[1])&&(this.prerelease=E):this.prerelease=E}break}default:throw new Error(`invalid increment argument: ${p}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};e.exports=d}}),an=me({"../../node_modules/semver/functions/parse.js"(t,e){var n=dt(),a=(l,i,f=!1)=>{if(l instanceof n)return l;try{return new n(l,i)}catch(u){if(!f)return null;throw u}};e.exports=a}}),yv=me({"../../node_modules/semver/functions/valid.js"(t,e){var n=an(),a=(l,i)=>{let f=n(l,i);return f?f.version:null};e.exports=a}}),mv=me({"../../node_modules/semver/functions/clean.js"(t,e){var n=an(),a=(l,i)=>{let f=n(l.trim().replace(/^[=v]+/,""),i);return f?f.version:null};e.exports=a}}),vv=me({"../../node_modules/semver/functions/inc.js"(t,e){var n=dt(),a=(l,i,f,u,s)=>{typeof f=="string"&&(s=u,u=f,f=void 0);try{return new n(l instanceof n?l.version:l,f).inc(i,u,s).version}catch{return null}};e.exports=a}}),bv=me({"../../node_modules/semver/functions/diff.js"(t,e){var n=an(),a=(l,i)=>{let f=n(l,null,!0),u=n(i,null,!0),s=f.compare(u);if(s===0)return null;let d=s>0,c=d?f:u,p=d?u:f,y=!!c.prerelease.length;if(p.prerelease.length&&!y)return!p.patch&&!p.minor?"major":c.patch?"patch":c.minor?"minor":"major";let m=y?"pre":"";return f.major!==u.major?m+"major":f.minor!==u.minor?m+"minor":f.patch!==u.patch?m+"patch":"prerelease"};e.exports=a}}),Sv=me({"../../node_modules/semver/functions/major.js"(t,e){var n=dt(),a=(l,i)=>new n(l,i).major;e.exports=a}}),Ev=me({"../../node_modules/semver/functions/minor.js"(t,e){var n=dt(),a=(l,i)=>new n(l,i).minor;e.exports=a}}),_v=me({"../../node_modules/semver/functions/patch.js"(t,e){var n=dt(),a=(l,i)=>new n(l,i).patch;e.exports=a}}),wv=me({"../../node_modules/semver/functions/prerelease.js"(t,e){var n=an(),a=(l,i)=>{let f=n(l,i);return f&&f.prerelease.length?f.prerelease:null};e.exports=a}}),kt=me({"../../node_modules/semver/functions/compare.js"(t,e){var n=dt(),a=(l,i,f)=>new n(l,f).compare(new n(i,f));e.exports=a}}),Ov=me({"../../node_modules/semver/functions/rcompare.js"(t,e){var n=kt(),a=(l,i,f)=>n(i,l,f);e.exports=a}}),Rv=me({"../../node_modules/semver/functions/compare-loose.js"(t,e){var n=kt(),a=(l,i)=>n(l,i,!0);e.exports=a}}),Ci=me({"../../node_modules/semver/functions/compare-build.js"(t,e){var n=dt(),a=(l,i,f)=>{let u=new n(l,f),s=new n(i,f);return u.compare(s)||u.compareBuild(s)};e.exports=a}}),Av=me({"../../node_modules/semver/functions/sort.js"(t,e){var n=Ci(),a=(l,i)=>l.sort((f,u)=>n(f,u,i));e.exports=a}}),Tv=me({"../../node_modules/semver/functions/rsort.js"(t,e){var n=Ci(),a=(l,i)=>l.sort((f,u)=>n(u,f,i));e.exports=a}}),Ia=me({"../../node_modules/semver/functions/gt.js"(t,e){var n=kt(),a=(l,i,f)=>n(l,i,f)>0;e.exports=a}}),xi=me({"../../node_modules/semver/functions/lt.js"(t,e){var n=kt(),a=(l,i,f)=>n(l,i,f)<0;e.exports=a}}),Au=me({"../../node_modules/semver/functions/eq.js"(t,e){var n=kt(),a=(l,i,f)=>n(l,i,f)===0;e.exports=a}}),Tu=me({"../../node_modules/semver/functions/neq.js"(t,e){var n=kt(),a=(l,i,f)=>n(l,i,f)!==0;e.exports=a}}),Ii=me({"../../node_modules/semver/functions/gte.js"(t,e){var n=kt(),a=(l,i,f)=>n(l,i,f)>=0;e.exports=a}}),Ni=me({"../../node_modules/semver/functions/lte.js"(t,e){var n=kt(),a=(l,i,f)=>n(l,i,f)<=0;e.exports=a}}),Pu=me({"../../node_modules/semver/functions/cmp.js"(t,e){var n=Au(),a=Tu(),l=Ia(),i=Ii(),f=xi(),u=Ni(),s=(d,c,p,y)=>{switch(c){case"===":return typeof d=="object"&&(d=d.version),typeof p=="object"&&(p=p.version),d===p;case"!==":return typeof d=="object"&&(d=d.version),typeof p=="object"&&(p=p.version),d!==p;case"":case"=":case"==":return n(d,p,y);case"!=":return a(d,p,y);case">":return l(d,p,y);case">=":return i(d,p,y);case"<":return f(d,p,y);case"<=":return u(d,p,y);default:throw new TypeError(`Invalid operator: ${c}`)}};e.exports=s}}),Pv=me({"../../node_modules/semver/functions/coerce.js"(t,e){var n=dt(),a=an(),{safeRe:l,t:i}=qn(),f=(u,s)=>{if(u instanceof n)return u;if(typeof u=="number"&&(u=String(u)),typeof u!="string")return null;s=s||{};let d=null;if(!s.rtl)d=u.match(l[i.COERCE]);else{let c;for(;(c=l[i.COERCERTL].exec(u))&&(!d||d.index+d[0].length!==u.length);)(!d||c.index+c[0].length!==d.index+d[0].length)&&(d=c),l[i.COERCERTL].lastIndex=c.index+c[1].length+c[2].length;l[i.COERCERTL].lastIndex=-1}return d===null?null:a(`${d[2]}.${d[3]||"0"}.${d[4]||"0"}`,s)};e.exports=f}}),Cv=me({"../../node_modules/yallist/iterator.js"(t,e){e.exports=function(n){n.prototype[Symbol.iterator]=function*(){for(let a=this.head;a;a=a.next)yield a.value}}}}),xv=me({"../../node_modules/yallist/yallist.js"(t,e){e.exports=n,n.Node=f,n.create=n;function n(u){var s=this;if(s instanceof n||(s=new n),s.tail=null,s.head=null,s.length=0,u&&typeof u.forEach=="function")u.forEach(function(p){s.push(p)});else if(arguments.length>0)for(var d=0,c=arguments.length;d1)d=s;else if(this.head)c=this.head.next,d=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var p=0;c!==null;p++)d=u(d,c.value,p),c=c.next;return d},n.prototype.reduceReverse=function(u,s){var d,c=this.tail;if(arguments.length>1)d=s;else if(this.tail)c=this.tail.prev,d=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var p=this.length-1;c!==null;p--)d=u(d,c.value,p),c=c.prev;return d},n.prototype.toArray=function(){for(var u=new Array(this.length),s=0,d=this.head;d!==null;s++)u[s]=d.value,d=d.next;return u},n.prototype.toArrayReverse=function(){for(var u=new Array(this.length),s=0,d=this.tail;d!==null;s++)u[s]=d.value,d=d.prev;return u},n.prototype.slice=function(u,s){s=s||this.length,s<0&&(s+=this.length),u=u||0,u<0&&(u+=this.length);var d=new n;if(sthis.length&&(s=this.length);for(var c=0,p=this.head;p!==null&&cthis.length&&(s=this.length);for(var c=this.length,p=this.tail;p!==null&&c>s;c--)p=p.prev;for(;p!==null&&c>u;c--,p=p.prev)d.push(p.value);return d},n.prototype.splice=function(u,s,...d){u>this.length&&(u=this.length-1),u<0&&(u=this.length+u);for(var c=0,p=this.head;p!==null&&c1,v=class{constructor(C){if(typeof C=="number"&&(C={max:C}),C||(C={}),C.max&&(typeof C.max!="number"||C.max<0))throw new TypeError("max must be a non-negative number");this[a]=C.max||1/0;let H=C.length||m;if(this[i]=typeof H!="function"?m:H,this[f]=C.stale||!1,C.maxAge&&typeof C.maxAge!="number")throw new TypeError("maxAge must be a number");this[u]=C.maxAge||0,this[s]=C.dispose,this[d]=C.noDisposeOnSet||!1,this[y]=C.updateAgeOnGet||!1,this.reset()}set max(C){if(typeof C!="number"||C<0)throw new TypeError("max must be a non-negative number");this[a]=C||1/0,I(this)}get max(){return this[a]}set allowStale(C){this[f]=!!C}get allowStale(){return this[f]}set maxAge(C){if(typeof C!="number")throw new TypeError("maxAge must be a non-negative number");this[u]=C,I(this)}get maxAge(){return this[u]}set lengthCalculator(C){typeof C!="function"&&(C=m),C!==this[i]&&(this[i]=C,this[l]=0,this[c].forEach(H=>{H.length=this[i](H.value,H.key),this[l]+=H.length})),I(this)}get lengthCalculator(){return this[i]}get length(){return this[l]}get itemCount(){return this[c].length}rforEach(C,H){H=H||this;for(let K=this[c].tail;K!==null;){let Z=K.prev;J(this,C,K,H),K=Z}}forEach(C,H){H=H||this;for(let K=this[c].head;K!==null;){let Z=K.next;J(this,C,K,H),K=Z}}keys(){return this[c].toArray().map(C=>C.key)}values(){return this[c].toArray().map(C=>C.value)}reset(){this[s]&&this[c]&&this[c].length&&this[c].forEach(C=>this[s](C.key,C.value)),this[p]=new Map,this[c]=new n,this[l]=0}dump(){return this[c].map(C=>T(this,C)?!1:{k:C.key,v:C.value,e:C.now+(C.maxAge||0)}).toArray().filter(C=>C)}dumpLru(){return this[c]}set(C,H,K){if(K=K||this[u],K&&typeof K!="number")throw new TypeError("maxAge must be a number");let Z=K?Date.now():0,oe=this[i](H,C);if(this[p].has(C)){if(oe>this[a])return Y(this,this[p].get(C)),!1;let B=this[p].get(C).value;return this[s]&&(this[d]||this[s](C,B.value)),B.now=Z,B.maxAge=K,B.value=H,this[l]+=oe-B.length,B.length=oe,this.get(C),I(this),!0}let ee=new ne(C,H,oe,Z,K);return ee.length>this[a]?(this[s]&&this[s](C,H),!1):(this[l]+=ee.length,this[c].unshift(ee),this[p].set(C,this[c].head),I(this),!0)}has(C){if(!this[p].has(C))return!1;let H=this[p].get(C).value;return!T(this,H)}get(C){return E(this,C,!0)}peek(C){return E(this,C,!1)}pop(){let C=this[c].tail;return C?(Y(this,C),C.value):null}del(C){Y(this,this[p].get(C))}load(C){this.reset();let H=Date.now();for(let K=C.length-1;K>=0;K--){let Z=C[K],oe=Z.e||0;if(oe===0)this.set(Z.k,Z.v);else{let ee=oe-H;ee>0&&this.set(Z.k,Z.v,ee)}}}prune(){this[p].forEach((C,H)=>E(this,H,!1))}},E=(C,H,K)=>{let Z=C[p].get(H);if(Z){let oe=Z.value;if(T(C,oe)){if(Y(C,Z),!C[f])return}else K&&(C[y]&&(Z.value.now=Date.now()),C[c].unshiftNode(Z));return oe.value}},T=(C,H)=>{if(!H||!H.maxAge&&!C[u])return!1;let K=Date.now()-H.now;return H.maxAge?K>H.maxAge:C[u]&&K>C[u]},I=C=>{if(C[l]>C[a])for(let H=C[c].tail;C[l]>C[a]&&H!==null;){let K=H.prev;Y(C,H),H=K}},Y=(C,H)=>{if(H){let K=H.value;C[s]&&C[s](K.key,K.value),C[l]-=K.length,C[p].delete(K.key),C[c].removeNode(H)}},ne=class{constructor(C,H,K,Z,oe){this.key=C,this.value=H,this.length=K,this.now=Z,this.maxAge=oe||0}},J=(C,H,K,Z)=>{let oe=K.value;T(C,oe)&&(Y(C,K),C[f]||(oe=void 0)),oe&&H.call(Z,oe.value,oe.key,C)};e.exports=v}}),Mt=me({"../../node_modules/semver/classes/range.js"(t,e){var n=class da{constructor(P,F){if(F=i(F),P instanceof da)return P.loose===!!F.loose&&P.includePrerelease===!!F.includePrerelease?P:new da(P.raw,F);if(P instanceof f)return this.raw=P.value,this.set=[[P]],this.format(),this;if(this.options=F,this.loose=!!F.loose,this.includePrerelease=!!F.includePrerelease,this.raw=P.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(j=>this.parseRange(j.trim())).filter(j=>j.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let j=this.set[0];if(this.set=this.set.filter(V=>!T(V[0])),this.set.length===0)this.set=[j];else if(this.set.length>1){for(let V of this.set)if(V.length===1&&I(V[0])){this.set=[V];break}}}this.format()}format(){return this.range=this.set.map(P=>P.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(P){let F=((this.options.includePrerelease&&v)|(this.options.loose&&E))+":"+P,j=l.get(F);if(j)return j;let V=this.options.loose,X=V?d[c.HYPHENRANGELOOSE]:d[c.HYPHENRANGE];P=P.replace(X,re(this.options.includePrerelease)),u("hyphen replace",P),P=P.replace(d[c.COMPARATORTRIM],p),u("comparator trim",P),P=P.replace(d[c.TILDETRIM],y),u("tilde trim",P),P=P.replace(d[c.CARETTRIM],m),u("caret trim",P);let ae=P.split(" ").map(Te=>ne(Te,this.options)).join(" ").split(/\s+/).map(Te=>W(Te,this.options));V&&(ae=ae.filter(Te=>(u("loose invalid filter",Te,this.options),!!Te.match(d[c.COMPARATORLOOSE])))),u("range list",ae);let pe=new Map,le=ae.map(Te=>new f(Te,this.options));for(let Te of le){if(T(Te))return[Te];pe.set(Te.value,Te)}pe.size>1&&pe.has("")&&pe.delete("");let _e=[...pe.values()];return l.set(F,_e),_e}intersects(P,F){if(!(P instanceof da))throw new TypeError("a Range is required");return this.set.some(j=>Y(j,F)&&P.set.some(V=>Y(V,F)&&j.every(X=>V.every(ae=>X.intersects(ae,F)))))}test(P){if(!P)return!1;if(typeof P=="string")try{P=new s(P,this.options)}catch{return!1}for(let F=0;FO.value==="<0.0.0-0",I=O=>O.value==="",Y=(O,P)=>{let F=!0,j=O.slice(),V=j.pop();for(;F&&j.length;)F=j.every(X=>V.intersects(X,P)),V=j.pop();return F},ne=(O,P)=>(u("comp",O,P),O=K(O,P),u("caret",O),O=C(O,P),u("tildes",O),O=oe(O,P),u("xrange",O),O=B(O,P),u("stars",O),O),J=O=>!O||O.toLowerCase()==="x"||O==="*",C=(O,P)=>O.trim().split(/\s+/).map(F=>H(F,P)).join(" "),H=(O,P)=>{let F=P.loose?d[c.TILDELOOSE]:d[c.TILDE];return O.replace(F,(j,V,X,ae,pe)=>{u("tilde",O,j,V,X,ae,pe);let le;return J(V)?le="":J(X)?le=`>=${V}.0.0 <${+V+1}.0.0-0`:J(ae)?le=`>=${V}.${X}.0 <${V}.${+X+1}.0-0`:pe?(u("replaceTilde pr",pe),le=`>=${V}.${X}.${ae}-${pe} <${V}.${+X+1}.0-0`):le=`>=${V}.${X}.${ae} <${V}.${+X+1}.0-0`,u("tilde return",le),le})},K=(O,P)=>O.trim().split(/\s+/).map(F=>Z(F,P)).join(" "),Z=(O,P)=>{u("caret",O,P);let F=P.loose?d[c.CARETLOOSE]:d[c.CARET],j=P.includePrerelease?"-0":"";return O.replace(F,(V,X,ae,pe,le)=>{u("caret",O,V,X,ae,pe,le);let _e;return J(X)?_e="":J(ae)?_e=`>=${X}.0.0${j} <${+X+1}.0.0-0`:J(pe)?X==="0"?_e=`>=${X}.${ae}.0${j} <${X}.${+ae+1}.0-0`:_e=`>=${X}.${ae}.0${j} <${+X+1}.0.0-0`:le?(u("replaceCaret pr",le),X==="0"?ae==="0"?_e=`>=${X}.${ae}.${pe}-${le} <${X}.${ae}.${+pe+1}-0`:_e=`>=${X}.${ae}.${pe}-${le} <${X}.${+ae+1}.0-0`:_e=`>=${X}.${ae}.${pe}-${le} <${+X+1}.0.0-0`):(u("no pr"),X==="0"?ae==="0"?_e=`>=${X}.${ae}.${pe}${j} <${X}.${ae}.${+pe+1}-0`:_e=`>=${X}.${ae}.${pe}${j} <${X}.${+ae+1}.0-0`:_e=`>=${X}.${ae}.${pe} <${+X+1}.0.0-0`),u("caret return",_e),_e})},oe=(O,P)=>(u("replaceXRanges",O,P),O.split(/\s+/).map(F=>ee(F,P)).join(" ")),ee=(O,P)=>{O=O.trim();let F=P.loose?d[c.XRANGELOOSE]:d[c.XRANGE];return O.replace(F,(j,V,X,ae,pe,le)=>{u("xRange",O,j,V,X,ae,pe,le);let _e=J(X),Te=_e||J(ae),Be=Te||J(pe),At=Be;return V==="="&&At&&(V=""),le=P.includePrerelease?"-0":"",_e?V===">"||V==="<"?j="<0.0.0-0":j="*":V&&At?(Te&&(ae=0),pe=0,V===">"?(V=">=",Te?(X=+X+1,ae=0,pe=0):(ae=+ae+1,pe=0)):V==="<="&&(V="<",Te?X=+X+1:ae=+ae+1),V==="<"&&(le="-0"),j=`${V+X}.${ae}.${pe}${le}`):Te?j=`>=${X}.0.0${le} <${+X+1}.0.0-0`:Be&&(j=`>=${X}.${ae}.0${le} <${X}.${+ae+1}.0-0`),u("xRange return",j),j})},B=(O,P)=>(u("replaceStars",O,P),O.trim().replace(d[c.STAR],"")),W=(O,P)=>(u("replaceGTE0",O,P),O.trim().replace(d[P.includePrerelease?c.GTE0PRE:c.GTE0],"")),re=O=>(P,F,j,V,X,ae,pe,le,_e,Te,Be,At,qt)=>(J(j)?F="":J(V)?F=`>=${j}.0.0${O?"-0":""}`:J(X)?F=`>=${j}.${V}.0${O?"-0":""}`:ae?F=`>=${F}`:F=`>=${F}${O?"-0":""}`,J(_e)?le="":J(Te)?le=`<${+_e+1}.0.0-0`:J(Be)?le=`<${_e}.${+Te+1}.0-0`:At?le=`<=${_e}.${Te}.${Be}-${At}`:O?le=`<${_e}.${Te}.${+Be+1}-0`:le=`<=${le}`,`${F} ${le}`.trim()),de=(O,P,F)=>{for(let j=0;j0){let V=O[j].semver;if(V.major===P.major&&V.minor===P.minor&&V.patch===P.patch)return!0}return!1}return!0}}}),Na=me({"../../node_modules/semver/classes/comparator.js"(t,e){var n=Symbol("SemVer ANY"),a=class ri{static get ANY(){return n}constructor(y,m){if(m=l(m),y instanceof ri){if(y.loose===!!m.loose)return y;y=y.value}y=y.trim().split(/\s+/).join(" "),s("comparator",y,m),this.options=m,this.loose=!!m.loose,this.parse(y),this.semver===n?this.value="":this.value=this.operator+this.semver.version,s("comp",this)}parse(y){let m=this.options.loose?i[f.COMPARATORLOOSE]:i[f.COMPARATOR],v=y.match(m);if(!v)throw new TypeError(`Invalid comparator: ${y}`);this.operator=v[1]!==void 0?v[1]:"",this.operator==="="&&(this.operator=""),v[2]?this.semver=new d(v[2],this.options.loose):this.semver=n}toString(){return this.value}test(y){if(s("Comparator.test",y,this.options.loose),this.semver===n||y===n)return!0;if(typeof y=="string")try{y=new d(y,this.options)}catch{return!1}return u(y,this.operator,this.semver,this.options)}intersects(y,m){if(!(y instanceof ri))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new c(y.value,m).test(this.value):y.operator===""?y.value===""?!0:new c(this.value,m).test(y.semver):(m=l(m),m.includePrerelease&&(this.value==="<0.0.0-0"||y.value==="<0.0.0-0")||!m.includePrerelease&&(this.value.startsWith("<0.0.0")||y.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&y.operator.startsWith(">")||this.operator.startsWith("<")&&y.operator.startsWith("<")||this.semver.version===y.semver.version&&this.operator.includes("=")&&y.operator.includes("=")||u(this.semver,"<",y.semver,m)&&this.operator.startsWith(">")&&y.operator.startsWith("<")||u(this.semver,">",y.semver,m)&&this.operator.startsWith("<")&&y.operator.startsWith(">")))}};e.exports=a;var l=Pi(),{safeRe:i,t:f}=qn(),u=Pu(),s=xa(),d=dt(),c=Mt()}}),Da=me({"../../node_modules/semver/functions/satisfies.js"(t,e){var n=Mt(),a=(l,i,f)=>{try{i=new n(i,f)}catch{return!1}return i.test(l)};e.exports=a}}),Nv=me({"../../node_modules/semver/ranges/to-comparators.js"(t,e){var n=Mt(),a=(l,i)=>new n(l,i).set.map(f=>f.map(u=>u.value).join(" ").trim().split(" "));e.exports=a}}),Dv=me({"../../node_modules/semver/ranges/max-satisfying.js"(t,e){var n=dt(),a=Mt(),l=(i,f,u)=>{let s=null,d=null,c=null;try{c=new a(f,u)}catch{return null}return i.forEach(p=>{c.test(p)&&(!s||d.compare(p)===-1)&&(s=p,d=new n(s,u))}),s};e.exports=l}}),Lv=me({"../../node_modules/semver/ranges/min-satisfying.js"(t,e){var n=dt(),a=Mt(),l=(i,f,u)=>{let s=null,d=null,c=null;try{c=new a(f,u)}catch{return null}return i.forEach(p=>{c.test(p)&&(!s||d.compare(p)===1)&&(s=p,d=new n(s,u))}),s};e.exports=l}}),Fv=me({"../../node_modules/semver/ranges/min-version.js"(t,e){var n=dt(),a=Mt(),l=Ia(),i=(f,u)=>{f=new a(f,u);let s=new n("0.0.0");if(f.test(s)||(s=new n("0.0.0-0"),f.test(s)))return s;s=null;for(let d=0;d{let m=new n(y.semver.version);switch(y.operator){case">":m.prerelease.length===0?m.patch++:m.prerelease.push(0),m.raw=m.format();case"":case">=":(!p||l(m,p))&&(p=m);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${y.operator}`)}}),p&&(!s||l(s,p))&&(s=p)}return s&&f.test(s)?s:null};e.exports=i}}),$v=me({"../../node_modules/semver/ranges/valid.js"(t,e){var n=Mt(),a=(l,i)=>{try{return new n(l,i).range||"*"}catch{return null}};e.exports=a}}),Di=me({"../../node_modules/semver/ranges/outside.js"(t,e){var n=dt(),a=Na(),{ANY:l}=a,i=Mt(),f=Da(),u=Ia(),s=xi(),d=Ni(),c=Ii(),p=(y,m,v,E)=>{y=new n(y,E),m=new i(m,E);let T,I,Y,ne,J;switch(v){case">":T=u,I=d,Y=s,ne=">",J=">=";break;case"<":T=s,I=c,Y=u,ne="<",J="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(f(y,m,E))return!1;for(let C=0;C{oe.semver===l&&(oe=new a(">=0.0.0")),K=K||oe,Z=Z||oe,T(oe.semver,K.semver,E)?K=oe:Y(oe.semver,Z.semver,E)&&(Z=oe)}),K.operator===ne||K.operator===J||(!Z.operator||Z.operator===ne)&&I(y,Z.semver)||Z.operator===J&&Y(y,Z.semver))return!1}return!0};e.exports=p}}),jv=me({"../../node_modules/semver/ranges/gtr.js"(t,e){var n=Di(),a=(l,i,f)=>n(l,i,">",f);e.exports=a}}),kv=me({"../../node_modules/semver/ranges/ltr.js"(t,e){var n=Di(),a=(l,i,f)=>n(l,i,"<",f);e.exports=a}}),Mv=me({"../../node_modules/semver/ranges/intersects.js"(t,e){var n=Mt(),a=(l,i,f)=>(l=new n(l,f),i=new n(i,f),l.intersects(i,f));e.exports=a}}),qv=me({"../../node_modules/semver/ranges/simplify.js"(t,e){var n=Da(),a=kt();e.exports=(l,i,f)=>{let u=[],s=null,d=null,c=l.sort((v,E)=>a(v,E,f));for(let v of c)n(v,i,f)?(d=v,s||(s=v)):(d&&u.push([s,d]),d=null,s=null);s&&u.push([s,null]);let p=[];for(let[v,E]of u)v===E?p.push(v):!E&&v===c[0]?p.push("*"):E?v===c[0]?p.push(`<=${E}`):p.push(`${v} - ${E}`):p.push(`>=${v}`);let y=p.join(" || "),m=typeof i.raw=="string"?i.raw:String(i);return y.length{if(m===v)return!0;m=new n(m,E),v=new n(v,E);let T=!1;e:for(let I of m.set){for(let Y of v.set){let ne=c(I,Y,E);if(T=T||ne!==null,ne)continue e}if(T)return!1}return!0},s=[new a(">=0.0.0-0")],d=[new a(">=0.0.0")],c=(m,v,E)=>{if(m===v)return!0;if(m.length===1&&m[0].semver===l){if(v.length===1&&v[0].semver===l)return!0;E.includePrerelease?m=s:m=d}if(v.length===1&&v[0].semver===l){if(E.includePrerelease)return!0;v=d}let T=new Set,I,Y;for(let ee of m)ee.operator===">"||ee.operator===">="?I=p(I,ee,E):ee.operator==="<"||ee.operator==="<="?Y=y(Y,ee,E):T.add(ee.semver);if(T.size>1)return null;let ne;if(I&&Y&&(ne=f(I.semver,Y.semver,E),ne>0||ne===0&&(I.operator!==">="||Y.operator!=="<=")))return null;for(let ee of T){if(I&&!i(ee,String(I),E)||Y&&!i(ee,String(Y),E))return null;for(let B of v)if(!i(ee,String(B),E))return!1;return!0}let J,C,H,K,Z=Y&&!E.includePrerelease&&Y.semver.prerelease.length?Y.semver:!1,oe=I&&!E.includePrerelease&&I.semver.prerelease.length?I.semver:!1;Z&&Z.prerelease.length===1&&Y.operator==="<"&&Z.prerelease[0]===0&&(Z=!1);for(let ee of v){if(K=K||ee.operator===">"||ee.operator===">=",H=H||ee.operator==="<"||ee.operator==="<=",I){if(oe&&ee.semver.prerelease&&ee.semver.prerelease.length&&ee.semver.major===oe.major&&ee.semver.minor===oe.minor&&ee.semver.patch===oe.patch&&(oe=!1),ee.operator===">"||ee.operator===">="){if(J=p(I,ee,E),J===ee&&J!==I)return!1}else if(I.operator===">="&&!i(I.semver,String(ee),E))return!1}if(Y){if(Z&&ee.semver.prerelease&&ee.semver.prerelease.length&&ee.semver.major===Z.major&&ee.semver.minor===Z.minor&&ee.semver.patch===Z.patch&&(Z=!1),ee.operator==="<"||ee.operator==="<="){if(C=y(Y,ee,E),C===ee&&C!==Y)return!1}else if(Y.operator==="<="&&!i(Y.semver,String(ee),E))return!1}if(!ee.operator&&(Y||I)&&ne!==0)return!1}return!(I&&H&&!Y&&ne!==0||Y&&K&&!I&&ne!==0||oe||Z)},p=(m,v,E)=>{if(!m)return v;let T=f(m.semver,v.semver,E);return T>0?m:T<0||v.operator===">"&&m.operator===">="?v:m},y=(m,v,E)=>{if(!m)return v;let T=f(m.semver,v.semver,E);return T<0?m:T>0||v.operator==="<"&&m.operator==="<="?v:m};e.exports=u}}),Gv=me({"../../node_modules/semver/index.js"(t,e){var n=qn(),a=Ca(),l=dt(),i=Ru(),f=an(),u=yv(),s=mv(),d=vv(),c=bv(),p=Sv(),y=Ev(),m=_v(),v=wv(),E=kt(),T=Ov(),I=Rv(),Y=Ci(),ne=Av(),J=Tv(),C=Ia(),H=xi(),K=Au(),Z=Tu(),oe=Ii(),ee=Ni(),B=Pu(),W=Pv(),re=Na(),de=Mt(),O=Da(),P=Nv(),F=Dv(),j=Lv(),V=Fv(),X=$v(),ae=Di(),pe=jv(),le=kv(),_e=Mv(),Te=qv(),Be=Uv();e.exports={parse:f,valid:u,clean:s,inc:d,diff:c,major:p,minor:y,patch:m,prerelease:v,compare:E,rcompare:T,compareLoose:I,compareBuild:Y,sort:ne,rsort:J,gt:C,lt:H,eq:K,neq:Z,gte:oe,lte:ee,cmp:B,coerce:W,Comparator:re,Range:de,satisfies:O,toComparators:P,maxSatisfying:F,minSatisfying:j,minVersion:V,validRange:X,outside:ae,gtr:pe,ltr:le,intersects:_e,simplifyRange:Te,subset:Be,SemVer:l,re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:a.SEMVER_SPEC_VERSION,RELEASE_TYPES:a.RELEASE_TYPES,compareIdentifiers:i.compareIdentifiers,rcompareIdentifiers:i.rcompareIdentifiers}}}),Cu={};St(Cu,{ActiveTabs:()=>lS,Consumer:()=>rc,ManagerContext:()=>Un,Provider:()=>tc,addons:()=>sS,combineParameters:()=>ec,controlOrMetaKey:()=>qb,controlOrMetaSymbol:()=>Mb,eventMatchesShortcut:()=>Gb,eventToShortcut:()=>$i,isMacLike:()=>La,isShortcutTaken:()=>Ub,keyToSymbol:()=>Wu,merge:()=>mr,mockChannel:()=>Zu,optionOrAltSymbol:()=>Bu,shortcutMatchesShortcut:()=>ji,shortcutToHumanString:()=>Hb,types:()=>SS,useAddonState:()=>pS,useArgTypes:()=>bS,useArgs:()=>gS,useChannel:()=>ac,useGlobalTypes:()=>mS,useGlobals:()=>yS,useParameter:()=>hS,useSharedState:()=>oc,useStoryPrepared:()=>dS,useStorybookApi:()=>or,useStorybookState:()=>fS});var Hv=gv(Cu),Ke=jt(Xr),Bv=jt(Ql),tr=Qe,xo=je,Wv=Xr,Yv=({api:t,state:e})=>(0,Wv.createContext)({api:t,state:e}),Cn=jt(vg),El=mi,Vv=t=>{t.fn("set",function(e,n){return t.set(this._area,this._in(e),(0,El.stringify)(n,{maxDepth:50}))}),t.fn("get",function(e,n){let a=t.get(this._area,this._in(e));return a!==null?(0,El.parse)(a):n||a})};Vv(Cn.default._);var xu="@storybook/manager/store";function ni(t){return t.get(xu)||{}}function zv(t,e){return t.set(xu,e)}function Kv(t,e){let n=ni(t);return zv(t,{...n,...e})}var Xv=class{constructor({setState:t,getState:e}){this.upstreamSetState=t,this.upstreamGetState=e}getInitialState(t){return{...t,...ni(Cn.default.local),...ni(Cn.default.session)}}getState(){return this.upstreamGetState()}async setState(t,e,n){let a,l;typeof e=="function"?(a=e,l=n):l=e;let{persistence:i="none"}=l||{},f={},u={};typeof t=="function"?f=d=>(u=t(d),u):(f=t,u=f);let s=await new Promise(d=>{this.upstreamSetState(f,d)});if(i!=="none"){let d=i==="session"?Cn.default.session:Cn.default.local;await Kv(d,u)}return a&&a(s),s}},Qv=jt(Ql),Jv=jt(Eg),Zv=je,mr=(t,e)=>(0,Qv.default)({},t,e,(n,a)=>{if(Array.isArray(a)&&Array.isArray(n))return a.forEach(l=>{n.find(i=>i===l||(0,Jv.default)(i,l))||n.push(l)}),n;if(Array.isArray(n))return Zv.logger.log(["the types mismatch, picking",n]),n}),eb=(...t)=>t.reduce((e,n)=>mr(e,n),{}),ai=eb,Iu={};St(Iu,{init:()=>tb});var tb=({provider:t,fullAPI:e})=>({api:t.renderPreview?{renderPreview:t.renderPreview}:{},state:{},init:()=>{t.handleAPI(e)}}),Nu={};St(Nu,{ensurePanel:()=>oi,init:()=>rb});var ia=di;function oi(t,e,n){let a=Object.keys(t);return a.indexOf(e)>=0?e:a.length?a[0]:n}var rb=({provider:t,store:e,fullAPI:n})=>{let a={getElements:l=>t.getElements(l),getPanels:()=>a.getElements(ia.Addon_TypesEnum.PANEL),getStoryPanels:()=>{let l=a.getElements(ia.Addon_TypesEnum.PANEL),{storyId:i}=e.getState(),f=n.getData(i);if(!l||!f||f.type!=="story")return l;let{parameters:u}=f,s={};return Object.entries(l).forEach(([d,c])=>{let{paramKey:p}=c;p&&u&&u[p]&&u[p].disable||(s[d]=c)}),s},getSelectedPanel:()=>{let{selectedPanel:l}=e.getState();return oi(a.getElements(ia.Addon_TypesEnum.PANEL),l,l)},setSelectedPanel:l=>{e.setState({selectedPanel:l},{persistence:"session"})},setAddonState(l,i,f){let u,{addons:s}=e.getState();return typeof i=="function"?u=i(a.getAddonState(l)):u=i,e.setState({addons:{...s,[l]:u}},f).then(()=>a.getAddonState(l))},getAddonState:l=>e.getState().addons[l]||(globalThis==null?void 0:globalThis.STORYBOOK_ADDON_STATE[l])};return{api:a,state:{selectedPanel:oi(a.getElements(ia.Addon_TypesEnum.PANEL),e.getState().selectedPanel),addons:{}}}},Du={};St(Du,{init:()=>nb});var _l=Qe,nb=({provider:t})=>{let e={getChannel:()=>t.channel,on:(n,a)=>(t.channel.on(n,a),()=>t.channel.off(n,a)),off:(n,a)=>t.channel.off(n,a),once:(n,a)=>t.channel.once(n,a),emit:(n,a,...l)=>{var i;(i=a==null?void 0:a.options)!=null&&i.target&&a.options.target!=="storybook-preview-iframe"&&!a.options.target.startsWith("storybook-ref-")&&(a.options.target=a.options.target!=="storybook_internal"?`storybook-ref-${a.options.target}`:"storybook-preview-iframe"),t.channel.emit(n,a,...l)},collapseAll:()=>{e.emit(_l.STORIES_COLLAPSE_ALL,{})},expandAll:()=>{e.emit(_l.STORIES_EXPAND_ALL)}};return{api:e,state:{}}},Lu={};St(Lu,{init:()=>ab});var ab=({store:t})=>{let e={addNotification:n=>{e.clearNotification(n.id);let{notifications:a}=t.getState();t.setState({notifications:[...a,n]})},clearNotification:n=>{let{notifications:a}=t.getState();t.setState({notifications:a.filter(i=>i.id!==n)});let l=a.find(i=>i.id===n);l&&l.onClear&&l.onClear({dismissed:!1})}};return{api:e,state:{notifications:[]}}},Fu={};St(Fu,{init:()=>ob});var ob=({store:t,navigate:e,fullAPI:n})=>{let a=()=>{let{path:l}=n.getUrlState();return!!(l||"").match(/^\/settings/)};return{state:{settings:{lastTrackedStoryId:null}},api:{closeSettings:()=>{let{settings:{lastTrackedStoryId:l}}=t.getState();l?n.selectStory(l):n.selectFirstStory()},changeSettingsTab:l=>{e(`/settings/${l}`)},isSettingsScreenActive:a,navigateToSettingsPage:async l=>{if(!a()){let{settings:i,storyId:f}=t.getState();await t.setState({settings:{...i,lastTrackedStoryId:f}})}e(l)},retrieveSelection(){let{settings:l}=t.getState();return l.lastTrackedStoryId},storeSelection:async()=>{let{storyId:l,settings:i}=t.getState();await t.setState({settings:{...i,lastTrackedStoryId:l}})}}}},$u={};St($u,{init:()=>Ib});var ib=Ne,Vr=rr,tt=Qe,sb=je,lb=je,ju={};St(ju,{defaultStoryMapper:()=>Uu,getSourceType:()=>qu,init:()=>Tb});var ku=Ne,ub=ct,Mu=jt($n()),cb=ct,fb=jt(Tg()),db=jt(Pn),hb=rr,pb=/\s*\/\s*/,gb=({globalParameters:t,kindParameters:e,stories:n})=>(0,db.default)(n,a=>({...a,parameters:ec(t,e[a.kind],a.parameters)})),yb=(t,e)=>Li(mb(t),e),mb=t=>({v:4,entries:Object.entries(t).reduce((e,[n,a])=>{if(!a)return e;let{docsOnly:l,fileName:i,...f}=a.parameters,u={title:a.kind,id:n,name:a.name,importPath:i};if(l)e[n]={type:"docs",tags:["stories-mdx"],storiesImports:[],...u};else{let{argTypes:s,args:d,initialArgs:c}=a;e[n]={type:"story",...u,parameters:f,argTypes:s,args:d,initialArgs:c}}return e},{})}),vb=t=>({v:3,stories:Object.values(t.stories).reduce((e,n)=>(e[n.id]={...n,title:n.kind,name:n.name||n.story,importPath:n.parameters.fileName||""},e),{})}),bb=t=>{let e=(0,fb.default)(Object.values(t.stories),"title");return{v:4,entries:Object.values(t.stories).reduce((n,a)=>{var l;let i="story";return((l=a.parameters)!=null&&l.docsOnly||a.name==="Page"&&e[a.title]===1)&&(i="docs"),n[a.id]={type:i,...i==="docs"&&{tags:["stories-mdx"],storiesImports:[]},...a},delete n[a.id].story,delete n[a.id].kind,n},{})}},Li=(t,{provider:e,docsOptions:n,filters:a,status:l})=>{if(!t.v)throw new Error("Composition: Missing stories.json version");let i=t;i=i.v===2?vb(i):i,i=i.v===3?bb(i):i,i=i;let f=Object.values(i.entries).filter(E=>{let T=!0;return Object.values(a).forEach(I=>{T!==!1&&(T=I({...E,status:l[E.id]}))}),T}),{sidebar:u={}}=e.getConfig(),{showRoots:s,collapsedRoots:d=[],renderLabel:c}=u,p=typeof s<"u",y=f.reduce((E,T)=>{if(n.docsMode&&T.type!=="docs")return E;let{title:I}=T,Y=I.trim().split(pb),ne=(!p||s)&&Y.length>1?[Y.shift()]:[],J=[...ne,...Y],C=J.reduce((H,K,Z)=>{let oe=Z>0&&H[Z-1],ee=(0,hb.sanitize)(oe?`${oe}-${K}`:K);if(oe===ee)throw new Error(cb.dedent` Invalid part '${K}', leading to id === parentId ('${ee}'), inside title '${I}' Did you create a path that uses the separator char accidentally, such as 'Vue ' where '/' is a separator char? See https://github.com/storybookjs/storybook/issues/6128 - `);return H.push(ee),H},[]);return C.forEach((H,K)=>{let Z=C[K+1]||T.id;ne.length&&K===0?E[H]=mr(E[H]||{},{type:"root",id:H,name:J[K],depth:K,renderLabel:c,startCollapsed:h.includes(H),children:[Z],isRoot:!0,isComponent:!1,isLeaf:!1}):(!E[H]||E[H].type==="component")&&K===C.length-1?E[H]=mr(E[H]||{},{type:"component",id:H,name:J[K],parent:C[K-1],depth:K,renderLabel:c,...Z&&{children:[Z]},isRoot:!1,isComponent:!0,isLeaf:!1}):E[H]=mr(E[H]||{},{type:"group",id:H,name:J[K],parent:C[K-1],depth:K,renderLabel:c,...Z&&{children:[Z]},isRoot:!1,isComponent:!1,isLeaf:!1})}),E[T.id]={type:"story",...T,depth:C.length,parent:C[C.length-1],renderLabel:c,prepared:!!T.parameters,kind:T.title,isRoot:!1,isComponent:!1,isLeaf:!0},E},{});function m(E,T){return E[T.id]||(E[T.id]=T,(T.type==="root"||T.type==="group"||T.type==="component")&&T.children.forEach(I=>m(E,y[I]))),E}let v=Object.values(y).filter(E=>E.type!=="root"&&!E.parent).reduce(m,{});return Object.values(y).filter(E=>E.type==="root").reduce(m,v)},yb=(t,e)=>e?Object.fromEntries(Object.entries(t).map(([n,a])=>{let l=e[n];return a.type==="story"&&(l==null?void 0:l.type)==="story"&&l.prepared?[n,{...l,...a,prepared:!0}]:[n,a]})):t,mb=(0,Ku.default)(1)(t=>Object.entries(t).reduce((e,n)=>{let a=n[1];return a.type==="component"&&e.push([...a.children]),e},[])),vb=(0,Ku.default)(1)(t=>Object.keys(t).filter(e=>["story","docs"].includes(t[e].type))),{location:bb,fetch:Dl}=zu.global,Ll=/(\/((?:[^\/]+?)\.[^\/]+?)|\/)$/,Xu=(t,e)=>{let{origin:n,pathname:a}=bb,{origin:l,pathname:i}=new URL(t),f=`${n+a}`.replace(Ll,""),u=`${l+i}`.replace(Ll,"");return f===u?["local",u]:e||t?["external",u]:[null,null]},Qu=(t,e)=>({...e,kind:e.kind.replace("|","/")}),Sb=(t,e)=>Object.entries(t).reduce((n,[a,l])=>({...n,[a]:{...l,refId:e.id}}),{});async function Fl(t){if(!t)return{};try{let e=await t;if(e===!1||e===!0)throw new Error("Unexpected boolean response");if(!e.ok)throw new Error(`Unexpected response not OK: ${e.statusText}`);let n=await e.json();return n.entries||n.stories?{storyIndex:n}:n}catch(e){return{indexError:e}}}var Eb=t=>{let e=/https?:\/\/(.+:.+)@/,n=t,a,[,l]=t.match(e)||[];return l&&(n=t.replace(`${l}@`,""),a=btoa(`${l}`)),{url:n,authorization:a}},_b=(t,e,n)=>{let{storyMapper:a}=n;return a?Object.entries(t).reduce((l,[i,f])=>({...l,[i]:a(e,f)}),{}):t},wb=({store:t,provider:e,singleStory:n,docsOptions:a={}},{runCheck:l=!0}={})=>{let i={findRef:s=>{let h=i.getRefs();return Object.values(h).find(({url:c})=>c.match(s))},changeRefVersion:(s,h)=>{let{versions:c,title:p}=i.getRefs()[s],y={id:s,url:h,versions:c,title:p,index:{},expanded:!0};i.setRef(s,{...y,type:"unknown"},!1),i.checkRef(y)},changeRefState:(s,h)=>{let{[s]:c,...p}=i.getRefs();p[s]={...c,previewInitialized:h},t.setState({refs:p})},checkRef:async s=>{let{id:h,url:c,version:p,type:y}=s,m=y==="server-checked",v={},E=p?`?version=${p}`:"",T=m?"omit":"include",I=Eb(c),Y={Accept:"application/json"};I.authorization&&Object.assign(Y,{Authorization:`Basic ${I.authorization}`});let[ne,J]=await Promise.all(["index.json","stories.json"].map(async H=>Fl(Dl(`${I.url}/${H}${E}`,{headers:Y,credentials:T}))));if(!ne.indexError||!J.indexError){let H=await Fl(Dl(`${I.url}/metadata.json${E}`,{headers:Y,credentials:T,cache:"no-cache"}).catch(()=>!1));Object.assign(v,{...ne.indexError?J:ne,...!H.indexError&&H})}else m||(v.indexError={message:ob.dedent` + `);return H.push(ee),H},[]);return C.forEach((H,K)=>{let Z=C[K+1]||T.id;ne.length&&K===0?E[H]=mr(E[H]||{},{type:"root",id:H,name:J[K],depth:K,renderLabel:c,startCollapsed:d.includes(H),children:[Z],isRoot:!0,isComponent:!1,isLeaf:!1}):(!E[H]||E[H].type==="component")&&K===C.length-1?E[H]=mr(E[H]||{},{type:"component",id:H,name:J[K],parent:C[K-1],depth:K,renderLabel:c,...Z&&{children:[Z]},isRoot:!1,isComponent:!0,isLeaf:!1}):E[H]=mr(E[H]||{},{type:"group",id:H,name:J[K],parent:C[K-1],depth:K,renderLabel:c,...Z&&{children:[Z]},isRoot:!1,isComponent:!1,isLeaf:!1})}),E[T.id]={type:"story",...T,depth:C.length,parent:C[C.length-1],renderLabel:c,prepared:!!T.parameters,kind:T.title,isRoot:!1,isComponent:!1,isLeaf:!0},E},{});function m(E,T){return E[T.id]||(E[T.id]=T,(T.type==="root"||T.type==="group"||T.type==="component")&&T.children.forEach(I=>m(E,y[I]))),E}let v=Object.values(y).filter(E=>E.type!=="root"&&!E.parent).reduce(m,{});return Object.values(y).filter(E=>E.type==="root").reduce(m,v)},Sb=(t,e)=>e?Object.fromEntries(Object.entries(t).map(([n,a])=>{let l=e[n];return a.type==="story"&&(l==null?void 0:l.type)==="story"&&l.prepared?[n,{...l,...a,prepared:!0}]:[n,a]})):t,Eb=(0,Mu.default)(1)(t=>Object.entries(t).reduce((e,n)=>{let a=n[1];return a.type==="component"&&e.push([...a.children]),e},[])),_b=(0,Mu.default)(1)(t=>Object.keys(t).filter(e=>["story","docs"].includes(t[e].type))),{location:wb,fetch:wl}=ku.global,Ol=/(\/((?:[^\/]+?)\.[^\/]+?)|\/)$/,qu=(t,e)=>{let{origin:n,pathname:a}=wb,{origin:l,pathname:i}=new URL(t),f=`${n+a}`.replace(Ol,""),u=`${l+i}`.replace(Ol,"");return f===u?["local",u]:e||t?["external",u]:[null,null]},Uu=(t,e)=>({...e,kind:e.kind.replace("|","/")}),Ob=(t,e)=>Object.entries(t).reduce((n,[a,l])=>({...n,[a]:{...l,refId:e.id}}),{});async function Rl(t){if(!t)return{};try{let e=await t;if(e===!1||e===!0)throw new Error("Unexpected boolean response");if(!e.ok)throw new Error(`Unexpected response not OK: ${e.statusText}`);let n=await e.json();return n.entries||n.stories?{storyIndex:n}:n}catch(e){return{indexError:e}}}var Rb=t=>{let e=/https?:\/\/(.+:.+)@/,n=t,a,[,l]=t.match(e)||[];return l&&(n=t.replace(`${l}@`,""),a=btoa(`${l}`)),{url:n,authorization:a}},Ab=(t,e,n)=>{let{storyMapper:a}=n;return a?Object.entries(t).reduce((l,[i,f])=>({...l,[i]:a(e,f)}),{}):t},Tb=({store:t,provider:e,singleStory:n,docsOptions:a={}},{runCheck:l=!0}={})=>{let i={findRef:s=>{let d=i.getRefs();return Object.values(d).find(({url:c})=>c.match(s))},changeRefVersion:(s,d)=>{let{versions:c,title:p}=i.getRefs()[s],y={id:s,url:d,versions:c,title:p,index:{},expanded:!0};i.setRef(s,{...y,type:"unknown"},!1),i.checkRef(y)},changeRefState:(s,d)=>{let{[s]:c,...p}=i.getRefs();p[s]={...c,previewInitialized:d},t.setState({refs:p})},checkRef:async s=>{let{id:d,url:c,version:p,type:y}=s,m=y==="server-checked",v={},E=p?`?version=${p}`:"",T=m?"omit":"include",I=Rb(c),Y={Accept:"application/json"};I.authorization&&Object.assign(Y,{Authorization:`Basic ${I.authorization}`});let[ne,J]=await Promise.all(["index.json","stories.json"].map(async H=>Rl(wl(`${I.url}/${H}${E}`,{headers:Y,credentials:T}))));if(!ne.indexError||!J.indexError){let H=await Rl(wl(`${I.url}/metadata.json${E}`,{headers:Y,credentials:T,cache:"no-cache"}).catch(()=>!1));Object.assign(v,{...ne.indexError?J:ne,...!H.indexError&&H})}else m||(v.indexError={message:ub.dedent` Error: Loading of ref failed at fetch (lib/api/src/modules/refs.ts) @@ -25,15 +25,15 @@ import{r as Xr}from"./index-CBqU2yxZ.js";import{s as zl,t as Kl,v as pi,i as bh, it's possible a CORS error happened. Please check your dev-tools network tab. - `});let C=s.versions&&Object.keys(s.versions).length?s.versions:v.versions;await i.setRef(h,{id:h,url:I.url,...v,...C?{versions:C}:{},type:v.storyIndex?"lazy":"auto-inject"})},getRefs:()=>{let{refs:s={}}=t.getState();return s},setRef:(s,{storyIndex:h,setStoriesData:c,...p},y=!1)=>{if(n)return;let{storyMapper:m=Qu}=e.getConfig(),v=i.getRefs()[s],E;c?E=hb(_b(c,v,{storyMapper:m}),{provider:e,docsOptions:a,filters:{},status:{}}):h&&(E=qi(h,{provider:e,docsOptions:a,filters:{},status:{}})),E&&(E=Sb(E,v)),i.updateRef(s,{index:E,...p})},updateRef:(s,h)=>{let{[s]:c,...p}=i.getRefs();p[s]={...c,...h};let y=Object.keys(u).reduce((m,v)=>(m[v]=p[v],m),{});t.setState({refs:y})}},f=!n&&zu.global.REFS||{},u=f;return l&&Object.entries(f).forEach(([s,h])=>{i.checkRef({...h,stories:{}})}),{api:i,state:{refs:u}}},Rt=(t,e)=>{let{source:n,refId:a,type:l}=t,[i,f]=Xu(n,a),u=a&&e.getRefs()[a]?e.getRefs()[a]:e.findRef(f),s={source:n,sourceType:i,sourceLocation:f,refId:a,ref:u,type:l};switch(!0){case typeof a=="string":case i==="local":case i==="external":return s;default:return ab.logger.warn(`Received a ${l} frame that was not configured as a ref`),null}},{FEATURES:$l,fetch:Ob}=rb.global,Rb="./index.json",Ab=["enableShortcuts","theme","showRoots"];function jo(t){if(!t||typeof t=="string")return t;let e={...t};return Ab.forEach(n=>{n in e&&delete e[n]}),e}var Tb=({fullAPI:t,store:e,navigate:n,provider:a,storyId:l,viewMode:i,docsOptions:f={}})=>{var u;let s={storyId:Vr.toId,getData:(c,p)=>{let y=s.resolveStory(c,p);if((y==null?void 0:y.type)==="story"||(y==null?void 0:y.type)==="docs")return y},isPrepared:(c,p)=>{let y=s.getData(c,p);return y?y.type==="story"?y.prepared:!0:!1},resolveStory:(c,p)=>{let{refs:y,index:m}=e.getState();return p&&!y[p]?null:p?y[p].index?y[p].index[c]:void 0:m?m[c]:void 0},getCurrentStoryData:()=>{let{storyId:c,refId:p}=e.getState();return s.getData(c,p)},getParameters:(c,p)=>{let{storyId:y,refId:m}=typeof c=="string"?{storyId:c,refId:void 0}:c,v=s.getData(y,m);if(["story","docs"].includes(v==null?void 0:v.type)){let{parameters:E}=v;if(E)return p?E[p]:E}return null},getCurrentParameter:c=>{let{storyId:p,refId:y}=e.getState();return s.getParameters({storyId:p,refId:y},c)||void 0},jumpToComponent:c=>{let{index:p,storyId:y,refs:m,refId:v}=e.getState();if(!s.getData(y,v))return;let E=v?m[v].index||{}:p,T=s.findSiblingStoryId(y,E,c,!0);T&&s.selectStory(T,void 0,{ref:v})},jumpToStory:c=>{let{index:p,storyId:y,refs:m,refId:v}=e.getState(),E=s.getData(y,v);if(!E)return;let T=E.refId?m[E.refId].index:p,I=s.findSiblingStoryId(y,T,c,!1);I&&s.selectStory(I,void 0,{ref:v})},selectFirstStory:()=>{let{index:c}=e.getState(),p=Object.keys(c).find(y=>c[y].type==="story");if(p){s.selectStory(p);return}n("/")},selectStory:(c=void 0,p=void 0,y={})=>{let{ref:m}=y,{storyId:v,index:E,refs:T}=e.getState(),I=m?T[m].index:E,Y=v==null?void 0:v.split("--",2)[0];if(p)if(c){let ne=m?`${m}_${(0,Vr.toId)(c,p)}`:(0,Vr.toId)(c,p);if(I[ne])s.selectStory(ne,void 0,y);else{let J=I[(0,Vr.sanitize)(c)];if((J==null?void 0:J.type)==="component"){let C=J.children.find(H=>I[H].name===p);C&&s.selectStory(C,void 0,y)}}}else{let ne=(0,Vr.toId)(Y,p);s.selectStory(ne,void 0,y)}else{let ne=c?I[c]||I[(0,Vr.sanitize)(c)]:I[Y];if(!ne)throw new Error(`Unknown id or title: '${c}'`);e.setState({settings:{...e.getState().settings,lastTrackedStoryId:ne.id}});let J=s.findLeafEntry(I,ne.id),C=J.refId?`${J.refId}_${J.id}`:J.id;n(`/${J.type}/${C}`)}},findLeafEntry(c,p){let y=c[p];if(y.type==="docs"||y.type==="story")return y;let m=y.children[0];return s.findLeafEntry(c,m)},findLeafStoryId(c,p){var y;return(y=s.findLeafEntry(c,p))==null?void 0:y.id},findSiblingStoryId(c,p,y,m){if(m){let T=mb(p),I=T.findIndex(Y=>Y.includes(c));return I===T.length-1&&y>0||I===0&&y<0?void 0:T[I+y]?T[I+y][0]:void 0}let v=vb(p),E=v.indexOf(c);if(!(E===v.length-1&&y>0)&&!(E===0&&y<0))return v[E+y]},updateStoryArgs:(c,p)=>{let{id:y,refId:m}=c;a.channel.emit(tt.UPDATE_STORY_ARGS,{storyId:y,updatedArgs:p,options:{target:m}})},resetStoryArgs:(c,p)=>{let{id:y,refId:m}=c;a.channel.emit(tt.RESET_STORY_ARGS,{storyId:y,argNames:p,options:{target:m}})},fetchIndex:async()=>{try{let c=await Ob(Rb);if(c.status!==200)throw new Error(await c.text());let p=await c.json();if(p.v<3){nb.logger.warn(`Skipping story index with version v${p.v}, awaiting SET_STORIES.`);return}await s.setIndex(p)}catch(c){await e.setState({indexError:c})}},setIndex:async c=>{let{index:p,status:y,filters:m}=e.getState(),v=qi(c,{provider:a,docsOptions:f,status:y,filters:m}),E=yb(v,p);await e.setState({internal_index:c,index:E,indexError:void 0})},updateStory:async(c,p,y)=>{if(y){let{id:m,index:v}=y;v[c]={...v[c],...p},await t.updateRef(m,{index:v})}else{let{index:m}=e.getState();m[c]={...m[c],...p},await e.setState({index:m})}},updateDocs:async(c,p,y)=>{if(y){let{id:m,index:v}=y;v[c]={...v[c],...p},await t.updateRef(m,{index:v})}else{let{index:m}=e.getState();m[c]={...m[c],...p},await e.setState({index:m})}},setPreviewInitialized:async c=>{c?t.updateRef(c.id,{previewInitialized:!0}):e.setState({previewInitialized:!0})},experimental_updateStatus:async(c,p)=>{let{status:y,internal_index:m}=e.getState(),v={...y},E=typeof p=="function"?p(y):p;Object.keys(E).length!==0&&(Object.entries(E).forEach(([T,I])=>{v[T]={...v[T]||{}},I===null?delete v[T][c]:v[T][c]=I,Object.keys(v[T]).length===0&&delete v[T]}),await e.setState({status:v},{persistence:"session"}),m&&await s.setIndex(m))},experimental_setFilter:async(c,p)=>{let{internal_index:y}=e.getState();await e.setState({filters:{...e.getState().filters,[c]:p}}),await s.setIndex(y)}};a.channel.on(tt.STORY_SPECIFIED,function({storyId:c,viewMode:p}){let{sourceType:y}=Rt(this,t);if(y==="local"){let m=e.getState(),v=m.path==="/"||m.viewMode==="story"||m.viewMode==="docs",E=m.viewMode&&m.storyId,T=m.viewMode!==p||m.storyId!==c,{type:I}=m.index[m.storyId]||{};v&&(E&&T&&!(I==="root"||I==="component"||I==="group")?a.channel.emit(tt.SET_CURRENT_STORY,{storyId:m.storyId,viewMode:m.viewMode}):T&&n(`/${p}/${c}`))}}),a.channel.on(tt.CURRENT_STORY_WAS_SET,function(){let{ref:c}=Rt(this,t);s.setPreviewInitialized(c)}),a.channel.on(tt.STORY_CHANGED,function(){let{sourceType:c}=Rt(this,t);if(c==="local"){let p=s.getCurrentParameter("options");p&&t.setOptions(jo(p))}}),a.channel.on(tt.STORY_PREPARED,function({id:c,...p}){let{ref:y,sourceType:m}=Rt(this,t);if(s.updateStory(c,{...p,prepared:!0},y),!y&&!e.getState().hasCalledSetOptions){let{options:v}=p.parameters;t.setOptions(jo(v)),e.setState({hasCalledSetOptions:!0})}if(m==="local"){let{storyId:v,index:E,refId:T}=e.getState(),I=Array.from(new Set([s.findSiblingStoryId(v,E,1,!0),s.findSiblingStoryId(v,E,-1,!0)])).filter(Boolean);a.channel.emit(tt.PRELOAD_ENTRIES,{ids:I,options:{target:T}})}}),a.channel.on(tt.DOCS_PREPARED,function({id:c,...p}){let{ref:y}=Rt(this,t);s.updateStory(c,{...p,prepared:!0},y)}),a.channel.on(tt.SET_INDEX,function(c){let{ref:p}=Rt(this,t);if(p)t.setRef(p.id,{...p,storyIndex:c},!0);else{s.setIndex(c);let y=s.getCurrentParameter("options");t.setOptions(jo(y))}}),a.channel.on(tt.SET_STORIES,function(c){let{ref:p}=Rt(this,t),y=c.v?fb(c):c.stories;if(p)t.setRef(p.id,{...p,setStoriesData:y},!0);else throw new Error("Cannot call SET_STORIES for local frame")}),a.channel.on(tt.SELECT_STORY,function({kind:c,title:p=c,story:y,name:m=y,storyId:v,...E}){let{ref:T}=Rt(this,t);T?t.selectStory(v||p,m,{...E,ref:T.id}):t.selectStory(v||p,m,E)}),a.channel.on(tt.STORY_ARGS_UPDATED,function({storyId:c,args:p}){let{ref:y}=Rt(this,t);s.updateStory(c,{args:p},y)}),a.channel.on(tt.CONFIG_ERROR,function(c){let{ref:p}=Rt(this,t);s.setPreviewInitialized(p)}),a.channel.on(tt.STORY_MISSING,function(c){let{ref:p}=Rt(this,t);s.setPreviewInitialized(p)}),a.channel.on(tt.SET_CONFIG,()=>{var c,p;let y=a.getConfig();(c=y==null?void 0:y.sidebar)!=null&&c.filters&&e.setState({filters:{...e.getState().filters,...(p=y==null?void 0:y.sidebar)==null?void 0:p.filters}})});let h=a.getConfig();return{api:s,state:{storyId:l,viewMode:i,hasCalledSetOptions:!1,previewInitialized:!1,status:{},filters:((u=h==null?void 0:h.sidebar)==null?void 0:u.filters)||{}},init:async()=>{$l!=null&&$l.storyStoreV7&&(a.channel.on(tt.STORY_INDEX_INVALIDATED,()=>s.fetchIndex()),await s.fetchIndex())}}},Ui={};St(Ui,{ActiveTabs:()=>Ju,focusableUIElements:()=>da,init:()=>Nb});var Pb=Ne,Rn=jt(hu()),sa=Ra(),Cb=Cg(),xb=Qe,{document:Ib}=Pb.global,Ju={SIDEBAR:"sidebar",CANVAS:"canvas",ADDONS:"addons"},Cr={ui:{enableShortcuts:!0},layout:{initialActive:Ju.CANVAS,showToolbar:!0,isFullscreen:!1,showPanel:!0,showNav:!0,panelPosition:"bottom",showTabs:!0},selectedPanel:void 0,theme:(0,Cb.create)()},da={storySearchField:"storybook-explorer-searchfield",storyListMenu:"storybook-explorer-menu",storyPanelRoot:"storybook-panel-root"},Nb=({store:t,provider:e,singleStory:n,fullAPI:a})=>{let l={toggleFullscreen(f){return t.setState(u=>{let{showNav:s}=u.layout,h=typeof f=="boolean"?f:!u.layout.isFullscreen,c=s===!1&&h===!1;return{layout:{...u.layout,isFullscreen:h,showNav:!n&&c?!0:s}}},{persistence:"session"})},togglePanel(f){return t.setState(u=>{let{showNav:s,isFullscreen:h}=u.layout,c=typeof f<"u"?f:!u.layout.showPanel,p=s===!1&&c===!1;return{layout:{...u.layout,showPanel:c,isFullscreen:p?!0:h}}},{persistence:"session"})},togglePanelPosition(f){return typeof f<"u"?t.setState(u=>({layout:{...u.layout,panelPosition:f}}),{persistence:"permanent"}):t.setState(u=>({layout:{...u.layout,panelPosition:u.layout.panelPosition==="right"?"bottom":"right"}}),{persistence:"permanent"})},toggleNav(f){return t.setState(u=>{if(n)return{layout:u.layout};let{showPanel:s,isFullscreen:h}=u.layout,c=typeof f<"u"?f:!u.layout.showNav,p=s===!1&&c===!1;return{layout:{...u.layout,showNav:c,isFullscreen:p?!0:!c&&h}}},{persistence:"session"})},toggleToolbar(f){return t.setState(u=>{let s=typeof f<"u"?f:!u.layout.showToolbar;return{layout:{...u.layout,showToolbar:s}}},{persistence:"session"})},resetLayout(){return t.setState(f=>({layout:{...f.layout,showNav:!1,showPanel:!1,isFullscreen:!1}}),{persistence:"session"})},focusOnUIElement(f,u){if(!f)return;let s=Ib.getElementById(f);s&&(s.focus(),u&&s.select())},getInitialOptions(){let{theme:f,selectedPanel:u,...s}=e.getConfig();return{...Cr,layout:{...Cr.layout,...(0,Rn.default)(s,Object.keys(Cr.layout)),...n&&{showNav:!1}},ui:{...Cr.ui,...(0,Rn.default)(s,Object.keys(Cr.ui))},selectedPanel:u||Cr.selectedPanel,theme:f||Cr.theme}},setOptions:f=>{let{layout:u,ui:s,selectedPanel:h,theme:c}=t.getState();if(f){let p={...u,...f.layout,...(0,Rn.default)(f,Object.keys(u)),...n&&{showNav:!1}},y={...s,...f.ui,...(0,Rn.default)(f,Object.keys(s))},m={...c,...f.theme},v={};(0,sa.dequal)(s,y)||(v.ui=y),(0,sa.dequal)(u,p)||(v.layout=p),f.selectedPanel&&!(0,sa.dequal)(h,f.selectedPanel)&&(v.selectedPanel=f.selectedPanel),Object.keys(v).length&&t.setState(v,{persistence:"permanent"}),(0,sa.dequal)(c,m)||t.setState({theme:m})}}},i=(0,Rn.default)(t.getState(),"layout","selectedPanel");return{api:l,state:mr(l.getInitialOptions(),i),init:()=>{l.setOptions(mr(l.getInitialOptions(),i)),e.channel.on(xb.SET_CONFIG,()=>{l.setOptions(mr(l.getInitialOptions(),i))})}}},Zu={};St(Zu,{controlOrMetaKey:()=>pa,defaultShortcuts:()=>Kr,init:()=>Ub,isMacLike:()=>rc,keys:()=>hi});var Db=Ne,jl=Qe,Lb=Ne,{navigator:ko}=Lb.global,La=()=>ko&&ko.platform?!!ko.platform.match(/(Mac|iPhone|iPod|iPad)/i):!1,Fb=()=>La()?"⌘":"ctrl",$b=()=>La()?"meta":"control",ec=()=>La()?"⌥":"alt",jb=(t,e)=>JSON.stringify(t)===JSON.stringify(e),Gi=t=>{var e;if(["Meta","Alt","Control","Shift"].includes(t.key))return null;let n=[];if(t.altKey&&n.push("alt"),t.ctrlKey&&n.push("control"),t.metaKey&&n.push("meta"),t.shiftKey&&n.push("shift"),t.key&&t.key.length===1&&t.key!==" "){let a=t.key.toUpperCase(),l=(e=t.code)==null?void 0:e.toUpperCase().replace("KEY","").replace("DIGIT","");l&&l.length===1&&l!==a?n.push([a,l]):n.push(a)}return t.key===" "&&n.push("space"),t.key==="Escape"&&n.push("escape"),t.key==="ArrowRight"&&n.push("ArrowRight"),t.key==="ArrowDown"&&n.push("ArrowDown"),t.key==="ArrowUp"&&n.push("ArrowUp"),t.key==="ArrowLeft"&&n.push("ArrowLeft"),n.length>0?n:null},Hi=(t,e)=>!t||!e||(t.join("").startsWith("shift/")&&t.shift(),t.length!==e.length)?!1:!t.find((n,a)=>Array.isArray(n)?!n.includes(e[a]):n!==e[a]),kb=(t,e)=>Hi(Gi(t),e),tc=t=>t==="alt"?ec():t==="control"?"⌃":t==="meta"?"⌘":t==="shift"?"⇧​":t==="Enter"||t==="Backspace"||t==="Esc"||t==="escape"?"":t===" "?"SPACE":t==="ArrowUp"?"↑":t==="ArrowDown"?"↓":t==="ArrowLeft"?"←":t==="ArrowRight"?"→":t.toUpperCase(),Mb=t=>t.map(tc).join(" "),{navigator:Mo,document:kl}=Db.global,rc=()=>Mo&&Mo.platform?!!Mo.platform.match(/(Mac|iPhone|iPod|iPad)/i):!1,pa=()=>rc()?"meta":"control";function hi(t){return Object.keys(t)}var Kr=Object.freeze({fullScreen:["F"],togglePanel:["A"],panelPosition:["D"],toggleNav:["S"],toolbar:["T"],search:["/"],focusNav:["1"],focusIframe:["2"],focusPanel:["3"],prevComponent:["alt","ArrowUp"],nextComponent:["alt","ArrowDown"],prevStory:["alt","ArrowLeft"],nextStory:["alt","ArrowRight"],shortcutsPage:[pa(),"shift",","],aboutPage:[","],escape:["escape"],collapseAll:[pa(),"shift","ArrowUp"],expandAll:[pa(),"shift","ArrowDown"],remount:["alt","R"]}),qo={};function qb(t){let e=t.target;return/input|textarea/i.test(e.tagName)||e.getAttribute("contenteditable")!==null}var Ub=({store:t,fullAPI:e,provider:n})=>{let a={getShortcutKeys(){return t.getState().shortcuts},getDefaultShortcuts(){return{...Kr,...a.getAddonsShortcutDefaults()}},getAddonsShortcuts(){return qo},getAddonsShortcutLabels(){let f={};return Object.entries(a.getAddonsShortcuts()).forEach(([u,{label:s}])=>{f[u]=s}),f},getAddonsShortcutDefaults(){let f={};return Object.entries(a.getAddonsShortcuts()).forEach(([u,{defaultShortcut:s}])=>{f[u]=s}),f},async setShortcuts(f){return await t.setState({shortcuts:f},{persistence:"permanent"}),f},async restoreAllDefaultShortcuts(){return a.setShortcuts(a.getDefaultShortcuts())},async setShortcut(f,u){let s=a.getShortcutKeys();return await a.setShortcuts({...s,[f]:u}),u},async setAddonShortcut(f,u){let s=a.getShortcutKeys();return await a.setShortcuts({...s,[`${f}-${u.actionName}`]:u.defaultShortcut}),qo[`${f}-${u.actionName}`]=u,u},async restoreDefaultShortcut(f){let u=a.getDefaultShortcuts()[f];return a.setShortcut(f,u)},handleKeydownEvent(f){let u=Gi(f),s=a.getShortcutKeys(),h=hi(s).find(c=>Hi(u,s[c]));h&&a.handleShortcutFeature(h,f)},handleShortcutFeature(f,u){let{layout:{isFullscreen:s,showNav:h,showPanel:c},ui:{enableShortcuts:p},storyId:y}=t.getState();if(p)switch(u!=null&&u.preventDefault&&u.preventDefault(),f){case"escape":{s?e.toggleFullscreen():h||e.toggleNav();break}case"focusNav":{s&&e.toggleFullscreen(),h||e.toggleNav(),e.focusOnUIElement(da.storyListMenu);break}case"search":{s&&e.toggleFullscreen(),h||e.toggleNav(),setTimeout(()=>{e.focusOnUIElement(da.storySearchField,!0)},0);break}case"focusIframe":{let m=kl.getElementById("storybook-preview-iframe");if(m)try{m.contentWindow.focus()}catch{}break}case"focusPanel":{s&&e.toggleFullscreen(),c||e.togglePanel(),e.focusOnUIElement(da.storyPanelRoot);break}case"nextStory":{e.jumpToStory(1);break}case"prevStory":{e.jumpToStory(-1);break}case"nextComponent":{e.jumpToComponent(1);break}case"prevComponent":{e.jumpToComponent(-1);break}case"fullScreen":{e.toggleFullscreen();break}case"togglePanel":{s&&(e.toggleFullscreen(),e.resetLayout()),e.togglePanel();break}case"toggleNav":{s&&(e.toggleFullscreen(),e.resetLayout()),e.toggleNav();break}case"toolbar":{e.toggleToolbar();break}case"panelPosition":{s&&e.toggleFullscreen(),c||e.togglePanel(),e.togglePanelPosition();break}case"aboutPage":{e.navigate("/settings/about");break}case"shortcutsPage":{e.navigate("/settings/shortcuts");break}case"collapseAll":{e.collapseAll();break}case"expandAll":{e.expandAll();break}case"remount":{e.emit(jl.FORCE_REMOUNT,{storyId:y});break}default:qo[f].action();break}}},{shortcuts:l=Kr}=t.getState(),i={shortcuts:hi(Kr).reduce((f,u)=>({...f,[u]:l[u]||Kr[u]}),Kr)};return{api:a,state:i,init:()=>{kl.addEventListener("keydown",f=>{qb(f)||a.handleKeydownEvent(f)}),n.channel.on(jl.PREVIEW_KEYDOWN,f=>{a.handleKeydownEvent(f.event)})}}},nc={};St(nc,{init:()=>Bb});var An=Qe,di=Lm(),ac=Ra(),Gb=Ne,{window:Uo}=Gb.global,Tn=t=>{if(t==="true"||t==="1")return!0;if(t==="false"||t==="0")return!1},Go,Hb=({state:{location:t,path:e,viewMode:n,storyId:a},singleStory:l})=>{let{full:i,panel:f,nav:u,shortcuts:s,addonPanel:h,tabs:c,path:p,...y}=(0,di.queryFromLocation)(t),m={isFullscreen:Tn(i),showNav:!l&&Tn(u),showPanel:Tn(f),panelPosition:["right","bottom"].includes(f)?f:void 0,showTabs:Tn(c)},v={enableShortcuts:Tn(s)},E=h||void 0,T=a,I=(0,ac.dequal)(Go,y)?Go:y;return Go=I,{viewMode:n,layout:m,ui:v,selectedPanel:E,location:t,path:e,customQueryParams:I,storyId:T}},Bb=t=>{let{store:e,navigate:n,provider:a,fullAPI:l}=t,i=(h,c={},p={})=>{let y=Object.entries(c).filter(([,v])=>v).sort(([v],[E])=>v`${v}=${E}`),m=[h,...y].join("&");return n(m,p)},f={getQueryParam(h){let{customQueryParams:c}=e.getState();return c?c[h]:void 0},getUrlState(){let{path:h,customQueryParams:c,storyId:p,url:y,viewMode:m}=e.getState();return{path:h,queryParams:c,storyId:p,url:y,viewMode:m}},setQueryParams(h){let{customQueryParams:c}=e.getState(),p={},y={...c,...Object.entries(h).reduce((m,[v,E])=>(E!==null&&(m[v]=E),m),p)};(0,ac.dequal)(c,y)||(e.setState({customQueryParams:y}),a.channel.emit(An.UPDATE_QUERY_PARAMS,y))},navigateUrl(h,c){n(h,{plain:!0,...c})}},u=()=>{let{path:h,queryParams:c,viewMode:p}=f.getUrlState();if(p!=="story")return;let y=l.getCurrentStoryData();if((y==null?void 0:y.type)!=="story")return;let{args:m,initialArgs:v}=y,E=(0,di.buildArgsParam)(v,m);i(h,{...c,args:E},{replace:!0}),f.setQueryParams({args:E})};a.channel.on(An.SET_CURRENT_STORY,()=>u());let s;return a.channel.on(An.STORY_ARGS_UPDATED,()=>{"requestIdleCallback"in Uo?(s&&Uo.cancelIdleCallback(s),s=Uo.requestIdleCallback(u,{timeout:1e3})):(s&&clearTimeout(s),setTimeout(u,100))}),a.channel.on(An.GLOBALS_UPDATED,({globals:h,initialGlobals:c})=>{let{path:p,queryParams:y}=f.getUrlState(),m=(0,di.buildArgsParam)(c,h);i(p,{...y,globals:m},{replace:!0}),f.setQueryParams({globals:m})}),a.channel.on(An.NAVIGATE_URL,(h,c)=>{f.navigateUrl(h,c)}),{api:f,state:Hb(t)}},oc={};St(oc,{init:()=>Kb});var Wb=Ne,dr=jt(kv()),Yb=jt($n()),Vb="7.6.17",{VERSIONCHECK:zb}=Wb.global,Ml=(0,Yb.default)(1)(()=>{try{return{...JSON.parse(zb).data||{}}}catch{return{}}}),Kb=({store:t})=>{let{dismissedVersionNotification:e}=t.getState(),n={versions:{current:{version:Vb},...Ml()},dismissedVersionNotification:e},a={getCurrentVersion:()=>{let{versions:{current:l}}=t.getState();return l},getLatestVersion:()=>{let{versions:{latest:l,next:i,current:f}}=t.getState();return f&&dr.default.prerelease(f.version)&&i?l&&dr.default.gt(l.version,i.version)?l:i:l},versionUpdateAvailable:()=>{let l=a.getLatestVersion(),i=a.getCurrentVersion();if(l){if(!l.version||!i.version)return!0;let f=dr.default.prerelease(i.version)?`${dr.default.major(i.version)}.${dr.default.minor(i.version)}.${dr.default.patch(i.version)}`:i.version,u=dr.default.diff(f,l.version);return dr.default.gt(l.version,f)&&u!=="patch"&&!u.includes("pre")}return!1}};return{init:async()=>{let{versions:l={}}=t.getState(),{latest:i,next:f}=Ml();await t.setState({versions:{...l,latest:i,next:f}})},state:n,api:a}},ic={};St(ic,{init:()=>Qb});var Xb=Ne,la=Qe,ql="whats-new",Qb=({fullAPI:t,store:e,provider:n})=>{let a={whatsNewData:void 0};function l(s){e.setState({whatsNewData:s}),a.whatsNewData=s}let i={isWhatsNewUnread(){var s;return((s=a.whatsNewData)==null?void 0:s.status)==="SUCCESS"&&!a.whatsNewData.postIsRead},whatsNewHasBeenRead(){var s;((s=a.whatsNewData)==null?void 0:s.status)==="SUCCESS"&&(u({lastReadPost:a.whatsNewData.url}),l({...a.whatsNewData,postIsRead:!0}),t.clearNotification(ql))},toggleWhatsNewNotifications(){var s;((s=a.whatsNewData)==null?void 0:s.status)==="SUCCESS"&&(l({...a.whatsNewData,disableWhatsNewNotifications:!a.whatsNewData.disableWhatsNewNotifications}),n.channel.emit(la.TOGGLE_WHATS_NEW_NOTIFICATIONS,{disableWhatsNewNotifications:a.whatsNewData.disableWhatsNewNotifications}))}};function f(){return n.channel.emit(la.REQUEST_WHATS_NEW_DATA),new Promise(s=>n.channel.once(la.RESULT_WHATS_NEW_DATA,({data:h})=>s(h)))}function u(s){n.channel.emit(la.SET_WHATS_NEW_CACHE,s)}return{init:async()=>{var s;if(Xb.global.CONFIG_TYPE!=="DEVELOPMENT")return;let h=await f();l(h);let c=t.getUrlState();!((c==null?void 0:c.path)==="/onboarding"||((s=c.queryParams)==null?void 0:s.onboarding)==="true")&&h.status==="SUCCESS"&&!h.disableWhatsNewNotifications&&h.showNotification&&t.addNotification({id:ql,link:"/settings/whats-new",content:{headline:h.excerpt,subHeadline:"Click to learn what's new in Storybook"},icon:{name:"hearthollow"},onClear({dismissed:p}){p&&u({lastDismissedPost:h.url})}})},state:a,api:i}},sc={};St(sc,{init:()=>Jb});var Ho=Qe,Ul=je,Gl=Ra(),Jb=({store:t,fullAPI:e,provider:n})=>{let a={getGlobals(){return t.getState().globals},getGlobalTypes(){return t.getState().globalTypes},updateGlobals(f){n.channel.emit(Ho.UPDATE_GLOBALS,{globals:f,options:{target:"storybook-preview-iframe"}})}},l={globals:{},globalTypes:{}},i=f=>{var u;let s=(u=t.getState())==null?void 0:u.globals;(0,Gl.dequal)(f,s)||t.setState({globals:f})};return n.channel.on(Ho.GLOBALS_UPDATED,function({globals:f}){let{ref:u}=Rt(this,e);u?Ul.logger.warn("received a GLOBALS_UPDATED from a non-local ref. This is not currently supported."):i(f)}),n.channel.on(Ho.SET_GLOBALS,function({globals:f,globalTypes:u}){var s;let{ref:h}=Rt(this,e),c=(s=t.getState())==null?void 0:s.globals;h?Object.keys(f).length>0&&Ul.logger.warn("received globals from a non-local ref. This is not currently supported."):t.setState({globals:f,globalTypes:u}),c&&Object.keys(c).length!==0&&!(0,Gl.dequal)(f,c)&&a.updateGlobals(c)}),{api:a,state:l}},Bo=Ne,Hl=Qe,lc=vi,Zb=je,eS=Ea;function uc(){let t={setHandler:()=>{},send:()=>{}};return new eS.Channel({transport:t})}var tS=class{constructor(){this.loaders={},this.elements={},this.config={},this.getChannel=()=>(this.channel||this.setChannel(uc()),this.channel),this.getServerChannel=()=>{if(!this.serverChannel)throw new Error("Accessing non-existent serverChannel");return this.serverChannel},this.ready=()=>this.promise,this.hasChannel=()=>!!this.channel,this.hasServerChannel=()=>!!this.serverChannel,this.setChannel=e=>{this.channel=e,this.resolve()},this.setServerChannel=e=>{this.serverChannel=e},this.addPanel=(e,n)=>{this.add(e,{type:lc.Addon_TypesEnum.PANEL,...n})},this.setConfig=e=>{Object.assign(this.config,e),this.hasChannel()?this.getChannel().emit(Hl.SET_CONFIG,this.config):this.ready().then(n=>{n.emit(Hl.SET_CONFIG,this.config)})},this.getConfig=()=>this.config,this.register=(e,n)=>{this.loaders[e]&&Zb.logger.warn(`${e} was loaded twice, this could have bad side-effects`),this.loaders[e]=n},this.loadAddons=e=>{Object.values(this.loaders).forEach(n=>n(e))},this.promise=new Promise(e=>{this.resolve=()=>e(this.getChannel())})}getElements(e){return this.elements[e]||(this.elements[e]={}),this.elements[e]}add(e,n){let{type:a}=n,l=this.getElements(a);l[e]={id:e,...n}}},Wo="__STORYBOOK_ADDONS_MANAGER";function rS(){return Bo.global[Wo]||(Bo.global[Wo]=new tS),Bo.global[Wo]}var nS=rS(),{ActiveTabs:aS}=Ui,Un=Gv({api:void 0,state:ci({})}),cc=(...t)=>(0,qv.default)({},...t,(e,n)=>{if(Array.isArray(n))return n}),fc=class extends Ke.Component{constructor(t){super(t),this.api={},this.initModules=()=>{this.modules.forEach(E=>{"init"in E&&E.init()})};let{location:e,path:n,refId:a,viewMode:l=t.docsOptions.docsMode?"docs":t.viewMode,singleStory:i,storyId:f,docsOptions:u,navigate:s}=t,h=new Yv({getState:()=>this.state,setState:(E,T)=>this.setState(E,T)}),c={location:e,path:n,viewMode:l,singleStory:i,storyId:f,refId:a},p={docsOptions:u};this.state=h.getInitialState(ci({...c,...p}));let y={navigate:s,store:h,provider:t.provider};this.modules=[Uu,Hu,Gu,Ui,Bu,Wu,Zu,Yu,Vu,sc,nc,oc,ic].map(E=>E.init({...c,...p,...y,state:this.state,fullAPI:this.api}));let m=ci(this.state,...this.modules.map(E=>E.state)),v=Object.assign(this.api,{navigate:s},...this.modules.map(E=>E.api));this.state=m,this.api=v}static getDerivedStateFromProps(t,e){return e.path!==t.path?{...e,location:t.location,path:t.path,refId:t.refId,viewMode:t.viewMode,storyId:t.storyId}:null}shouldComponentUpdate(t,e){let n=this.state,a=this.props;return n!==e||a.path!==t.path}render(){let{children:t}=this.props,e={state:this.state,api:this.api};return Ke.default.createElement(oS,{effect:this.initModules},Ke.default.createElement(Un.Provider,{value:e},Ke.default.createElement(hc,null,t)))}};fc.displayName="Manager";var oS=({children:t,effect:e})=>(Ke.default.useEffect(e,[]),t),iS=t=>t;function hc({filter:t=iS,children:e}){let n=(0,Ke.useContext)(Un),a=(0,Ke.useRef)(e),l=(0,Ke.useRef)(t);if(typeof a.current!="function")return Ke.default.createElement(Ke.Fragment,null,a.current);let i=l.current(n),f=(0,Ke.useMemo)(()=>[...Object.entries(i).reduce((u,s)=>u.concat(s),[])],[n.state]);return(0,Ke.useMemo)(()=>{let u=a.current;return Ke.default.createElement(u,{...i})},f)}function sS(){let{state:t}=(0,Ke.useContext)(Un);return{...t,get storiesHash(){return(0,$o.deprecate)("state.storiesHash is deprecated, please use state.index"),this.index||{}},get storiesConfigured(){return(0,$o.deprecate)("state.storiesConfigured is deprecated, please use state.previewInitialized"),this.previewInitialized},get storiesFailed(){return(0,$o.deprecate)("state.storiesFailed is deprecated, please use state.indexError"),this.indexError}}}function or(){let{api:t}=(0,Ke.useContext)(Un);return t}function dc(t,e){return typeof t>"u"?e:t}var pc=(t,e=[])=>{let n=or();return(0,Ke.useEffect)(()=>(Object.entries(t).forEach(([a,l])=>n.on(a,l)),()=>{Object.entries(t).forEach(([a,l])=>n.off(a,l))}),e),n.emit};function lS(t){return or().isPrepared(t)}function uS(t,e){let n=or().getCurrentParameter(t);return dc(n,e)}globalThis.STORYBOOK_ADDON_STATE={};var{STORYBOOK_ADDON_STATE:zt}=globalThis;function gc(t,e){let n=or(),a=n.getAddonState(t)||zt[t],l=dc(a,zt[t]?zt[t]:e),i=!1;l===e&&e!==void 0&&(zt[t]=e,i=!0),(0,Ke.useEffect)(()=>{i&&n.setAddonState(t,e)},[i]);let f=async(h,c)=>{let p=await n.setAddonState(t,h,c);return zt[t]=p,p},u=(0,Ke.useMemo)(()=>{let h={[`${tr.SHARED_STATE_CHANGED}-client-${t}`]:f,[`${tr.SHARED_STATE_SET}-client-${t}`]:f},c={[tr.SET_STORIES]:async()=>{let p=n.getAddonState(t);p?(zt[t]=p,n.emit(`${tr.SHARED_STATE_SET}-manager-${t}`,p)):zt[t]?(await f(zt[t]),n.emit(`${tr.SHARED_STATE_SET}-manager-${t}`,zt[t])):e!==void 0&&(await f(e),zt[t]=e,n.emit(`${tr.SHARED_STATE_SET}-manager-${t}`,e))},[tr.STORY_CHANGED]:()=>{let p=n.getAddonState(t);p!==void 0&&n.emit(`${tr.SHARED_STATE_SET}-manager-${t}`,p)}};return{...h,...c}},[t]),s=pc(u);return[l,async(h,c)=>{let p=await f(h,c);s(`${tr.SHARED_STATE_CHANGED}-manager-${t}`,p)}]}function cS(t,e){return gc(t,e)}function fS(){let{getCurrentStoryData:t,updateStoryArgs:e,resetStoryArgs:n}=or(),a=t(),l=(a==null?void 0:a.type)==="story"?a.args:{},i=(0,Ke.useCallback)(u=>e(a,u),[a,e]),f=(0,Ke.useCallback)(u=>n(a,u),[a,n]);return[l,i,f]}function hS(){let t=or();return[t.getGlobals(),t.updateGlobals]}function dS(){return or().getGlobalTypes()}function pS(){let{getCurrentStoryData:t}=or();return t()}function gS(){let t=pS();return(t==null?void 0:t.type)==="story"&&t.argTypes||{}}var yS=lc.Addon_TypesEnum,Bi=Object.defineProperty,mS=Object.getOwnPropertyDescriptor,vS=Object.getOwnPropertyNames,bS=Object.prototype.hasOwnProperty,SS=(t,e)=>{for(var n in e)Bi(t,n,{get:e[n],enumerable:!0})},ES=(t,e,n,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let l of vS(e))!bS.call(t,l)&&l!==n&&Bi(t,l,{get:()=>e[l],enumerable:!(a=mS(e,l))||a.enumerable});return t},_S=t=>ES(Bi({},"__esModule",{value:!0}),t),yc={};SS(yc,{AddonStore:()=>vc,HooksContext:()=>AS,addons:()=>Lr,applyHooks:()=>PS,makeDecorator:()=>qS,mockChannel:()=>mc,useArgs:()=>kS,useCallback:()=>jn,useChannel:()=>$S,useEffect:()=>_c,useGlobals:()=>MS,useMemo:()=>IS,useParameter:()=>jS,useReducer:()=>FS,useRef:()=>NS,useState:()=>LS,useStoryContext:()=>$a});var wS=_S(yc),Yo=Ne,OS=Ea;function mc(){let t={setHandler:()=>{},send:()=>{}};return new OS.Channel({transport:t})}var vc=class{constructor(){this.getChannel=()=>{if(!this.channel){let t=mc();return this.setChannel(t),t}return this.channel},this.getServerChannel=()=>{if(!this.serverChannel)throw new Error("Accessing non-existent serverChannel");return this.serverChannel},this.ready=()=>this.promise,this.hasChannel=()=>!!this.channel,this.hasServerChannel=()=>!!this.serverChannel,this.setChannel=t=>{this.channel=t,this.resolve()},this.setServerChannel=t=>{this.serverChannel=t},this.promise=new Promise(t=>{this.resolve=()=>t(this.getChannel())})}},Vo="__STORYBOOK_ADDONS_PREVIEW";function RS(){return Yo.global[Vo]||(Yo.global[Vo]=new vc),Yo.global[Vo]}var Lr=RS(),ga=Ne,xn=je,rn=Qe,AS=class{constructor(){this.hookListsMap=void 0,this.mountedDecorators=void 0,this.prevMountedDecorators=void 0,this.currentHooks=void 0,this.nextHookIndex=void 0,this.currentPhase=void 0,this.currentEffects=void 0,this.prevEffects=void 0,this.currentDecoratorName=void 0,this.hasUpdates=void 0,this.currentContext=void 0,this.renderListener=t=>{var e;t===((e=this.currentContext)==null?void 0:e.id)&&(this.triggerEffects(),this.currentContext=null,this.removeRenderListeners())},this.init()}init(){this.hookListsMap=new WeakMap,this.mountedDecorators=new Set,this.prevMountedDecorators=new Set,this.currentHooks=[],this.nextHookIndex=0,this.currentPhase="NONE",this.currentEffects=[],this.prevEffects=[],this.currentDecoratorName=null,this.hasUpdates=!1,this.currentContext=null}clean(){this.prevEffects.forEach(t=>{t.destroy&&t.destroy()}),this.init(),this.removeRenderListeners()}getNextHook(){let t=this.currentHooks[this.nextHookIndex];return this.nextHookIndex+=1,t}triggerEffects(){this.prevEffects.forEach(t=>{!this.currentEffects.includes(t)&&t.destroy&&t.destroy()}),this.currentEffects.forEach(t=>{this.prevEffects.includes(t)||(t.destroy=t.create())}),this.prevEffects=this.currentEffects,this.currentEffects=[]}addRenderListeners(){this.removeRenderListeners(),Lr.getChannel().on(rn.STORY_RENDERED,this.renderListener)}removeRenderListeners(){Lr.getChannel().removeListener(rn.STORY_RENDERED,this.renderListener)}};function Bl(t){let e=(...n)=>{let{hooks:a}=typeof n[0]=="function"?n[1]:n[0],l=a.currentPhase,i=a.currentHooks,f=a.nextHookIndex,u=a.currentDecoratorName;a.currentDecoratorName=t.name,a.prevMountedDecorators.has(t)?(a.currentPhase="UPDATE",a.currentHooks=a.hookListsMap.get(t)||[]):(a.currentPhase="MOUNT",a.currentHooks=[],a.hookListsMap.set(t,a.currentHooks),a.prevMountedDecorators.add(t)),a.nextHookIndex=0;let s=ga.global.STORYBOOK_HOOKS_CONTEXT;ga.global.STORYBOOK_HOOKS_CONTEXT=a;let h=t(...n);if(ga.global.STORYBOOK_HOOKS_CONTEXT=s,a.currentPhase==="UPDATE"&&a.getNextHook()!=null)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return a.currentPhase=l,a.currentHooks=i,a.nextHookIndex=f,a.currentDecoratorName=u,h};return e.originalFn=t,e}var zo=0,TS=25,PS=t=>(e,n)=>{let a=t(Bl(e),n.map(l=>Bl(l)));return l=>{let{hooks:i}=l;i.prevMountedDecorators??(i.prevMountedDecorators=new Set),i.mountedDecorators=new Set([e,...n]),i.currentContext=l,i.hasUpdates=!1;let f=a(l);for(zo=1;i.hasUpdates;)if(i.hasUpdates=!1,i.currentEffects=[],f=a(l),zo+=1,zo>TS)throw new Error("Too many re-renders. Storybook limits the number of renders to prevent an infinite loop.");return i.addRenderListeners(),f}},CS=(t,e)=>t.length===e.length&&t.every((n,a)=>n===e[a]),Wi=()=>new Error("Storybook preview hooks can only be called inside decorators and story functions.");function bc(){return ga.global.STORYBOOK_HOOKS_CONTEXT||null}function Yi(){let t=bc();if(t==null)throw Wi();return t}function xS(t,e,n){let a=Yi();if(a.currentPhase==="MOUNT"){n!=null&&!Array.isArray(n)&&xn.logger.warn(`${t} received a final argument that is not an array (instead, received ${n}). When specified, the final argument must be an array.`);let l={name:t,deps:n};return a.currentHooks.push(l),e(l),l}if(a.currentPhase==="UPDATE"){let l=a.getNextHook();if(l==null)throw new Error("Rendered more hooks than during the previous render.");return l.name!==t&&xn.logger.warn(`Storybook has detected a change in the order of Hooks${a.currentDecoratorName?` called by ${a.currentDecoratorName}`:""}. This will lead to bugs and errors if not fixed.`),n!=null&&l.deps==null&&xn.logger.warn(`${t} received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.`),n!=null&&l.deps!=null&&n.length!==l.deps.length&&xn.logger.warn(`The final argument passed to ${t} changed size between renders. The order and size of this array must remain constant. + `});let C=s.versions&&Object.keys(s.versions).length?s.versions:v.versions;await i.setRef(d,{id:d,url:I.url,...v,...C?{versions:C}:{},type:v.storyIndex?"lazy":"auto-inject"})},getRefs:()=>{let{refs:s={}}=t.getState();return s},setRef:(s,{storyIndex:d,setStoriesData:c,...p},y=!1)=>{if(n)return;let{storyMapper:m=Uu}=e.getConfig(),v=i.getRefs()[s],E;c?E=yb(Ab(c,v,{storyMapper:m}),{provider:e,docsOptions:a,filters:{},status:{}}):d&&(E=Li(d,{provider:e,docsOptions:a,filters:{},status:{}})),E&&(E=Ob(E,v)),i.updateRef(s,{index:E,...p})},updateRef:(s,d)=>{let{[s]:c,...p}=i.getRefs();p[s]={...c,...d};let y=Object.keys(u).reduce((m,v)=>(m[v]=p[v],m),{});t.setState({refs:y})}},f=!n&&ku.global.REFS||{},u=f;return l&&Object.entries(f).forEach(([s,d])=>{i.checkRef({...d,stories:{}})}),{api:i,state:{refs:u}}},Rt=(t,e)=>{let{source:n,refId:a,type:l}=t,[i,f]=qu(n,a),u=a&&e.getRefs()[a]?e.getRefs()[a]:e.findRef(f),s={source:n,sourceType:i,sourceLocation:f,refId:a,ref:u,type:l};switch(!0){case typeof a=="string":case i==="local":case i==="external":return s;default:return lb.logger.warn(`Received a ${l} frame that was not configured as a ref`),null}},{FEATURES:Al,fetch:Pb}=ib.global,Cb="./index.json",xb=["enableShortcuts","theme","showRoots"];function Io(t){if(!t||typeof t=="string")return t;let e={...t};return xb.forEach(n=>{n in e&&delete e[n]}),e}var Ib=({fullAPI:t,store:e,navigate:n,provider:a,storyId:l,viewMode:i,docsOptions:f={}})=>{var u;let s={storyId:Vr.toId,getData:(c,p)=>{let y=s.resolveStory(c,p);if((y==null?void 0:y.type)==="story"||(y==null?void 0:y.type)==="docs")return y},isPrepared:(c,p)=>{let y=s.getData(c,p);return y?y.type==="story"?y.prepared:!0:!1},resolveStory:(c,p)=>{let{refs:y,index:m}=e.getState();return p&&!y[p]?null:p?y[p].index?y[p].index[c]:void 0:m?m[c]:void 0},getCurrentStoryData:()=>{let{storyId:c,refId:p}=e.getState();return s.getData(c,p)},getParameters:(c,p)=>{let{storyId:y,refId:m}=typeof c=="string"?{storyId:c,refId:void 0}:c,v=s.getData(y,m);if(["story","docs"].includes(v==null?void 0:v.type)){let{parameters:E}=v;if(E)return p?E[p]:E}return null},getCurrentParameter:c=>{let{storyId:p,refId:y}=e.getState();return s.getParameters({storyId:p,refId:y},c)||void 0},jumpToComponent:c=>{let{index:p,storyId:y,refs:m,refId:v}=e.getState();if(!s.getData(y,v))return;let E=v?m[v].index||{}:p,T=s.findSiblingStoryId(y,E,c,!0);T&&s.selectStory(T,void 0,{ref:v})},jumpToStory:c=>{let{index:p,storyId:y,refs:m,refId:v}=e.getState(),E=s.getData(y,v);if(!E)return;let T=E.refId?m[E.refId].index:p,I=s.findSiblingStoryId(y,T,c,!1);I&&s.selectStory(I,void 0,{ref:v})},selectFirstStory:()=>{let{index:c}=e.getState(),p=Object.keys(c).find(y=>c[y].type==="story");if(p){s.selectStory(p);return}n("/")},selectStory:(c=void 0,p=void 0,y={})=>{let{ref:m}=y,{storyId:v,index:E,refs:T}=e.getState(),I=m?T[m].index:E,Y=v==null?void 0:v.split("--",2)[0];if(p)if(c){let ne=m?`${m}_${(0,Vr.toId)(c,p)}`:(0,Vr.toId)(c,p);if(I[ne])s.selectStory(ne,void 0,y);else{let J=I[(0,Vr.sanitize)(c)];if((J==null?void 0:J.type)==="component"){let C=J.children.find(H=>I[H].name===p);C&&s.selectStory(C,void 0,y)}}}else{let ne=(0,Vr.toId)(Y,p);s.selectStory(ne,void 0,y)}else{let ne=c?I[c]||I[(0,Vr.sanitize)(c)]:I[Y];if(!ne)throw new Error(`Unknown id or title: '${c}'`);e.setState({settings:{...e.getState().settings,lastTrackedStoryId:ne.id}});let J=s.findLeafEntry(I,ne.id),C=J.refId?`${J.refId}_${J.id}`:J.id;n(`/${J.type}/${C}`)}},findLeafEntry(c,p){let y=c[p];if(y.type==="docs"||y.type==="story")return y;let m=y.children[0];return s.findLeafEntry(c,m)},findLeafStoryId(c,p){var y;return(y=s.findLeafEntry(c,p))==null?void 0:y.id},findSiblingStoryId(c,p,y,m){if(m){let T=Eb(p),I=T.findIndex(Y=>Y.includes(c));return I===T.length-1&&y>0||I===0&&y<0?void 0:T[I+y]?T[I+y][0]:void 0}let v=_b(p),E=v.indexOf(c);if(!(E===v.length-1&&y>0)&&!(E===0&&y<0))return v[E+y]},updateStoryArgs:(c,p)=>{let{id:y,refId:m}=c;a.channel.emit(tt.UPDATE_STORY_ARGS,{storyId:y,updatedArgs:p,options:{target:m}})},resetStoryArgs:(c,p)=>{let{id:y,refId:m}=c;a.channel.emit(tt.RESET_STORY_ARGS,{storyId:y,argNames:p,options:{target:m}})},fetchIndex:async()=>{try{let c=await Pb(Cb);if(c.status!==200)throw new Error(await c.text());let p=await c.json();if(p.v<3){sb.logger.warn(`Skipping story index with version v${p.v}, awaiting SET_STORIES.`);return}await s.setIndex(p)}catch(c){await e.setState({indexError:c})}},setIndex:async c=>{let{index:p,status:y,filters:m}=e.getState(),v=Li(c,{provider:a,docsOptions:f,status:y,filters:m}),E=Sb(v,p);await e.setState({internal_index:c,index:E,indexError:void 0})},updateStory:async(c,p,y)=>{if(y){let{id:m,index:v}=y;v[c]={...v[c],...p},await t.updateRef(m,{index:v})}else{let{index:m}=e.getState();m[c]={...m[c],...p},await e.setState({index:m})}},updateDocs:async(c,p,y)=>{if(y){let{id:m,index:v}=y;v[c]={...v[c],...p},await t.updateRef(m,{index:v})}else{let{index:m}=e.getState();m[c]={...m[c],...p},await e.setState({index:m})}},setPreviewInitialized:async c=>{c?t.updateRef(c.id,{previewInitialized:!0}):e.setState({previewInitialized:!0})},experimental_updateStatus:async(c,p)=>{let{status:y,internal_index:m}=e.getState(),v={...y},E=typeof p=="function"?p(y):p;Object.keys(E).length!==0&&(Object.entries(E).forEach(([T,I])=>{v[T]={...v[T]||{}},I===null?delete v[T][c]:v[T][c]=I,Object.keys(v[T]).length===0&&delete v[T]}),await e.setState({status:v},{persistence:"session"}),m&&await s.setIndex(m))},experimental_setFilter:async(c,p)=>{let{internal_index:y}=e.getState();await e.setState({filters:{...e.getState().filters,[c]:p}}),await s.setIndex(y)}};a.channel.on(tt.STORY_SPECIFIED,function({storyId:c,viewMode:p}){let{sourceType:y}=Rt(this,t);if(y==="local"){let m=e.getState(),v=m.path==="/"||m.viewMode==="story"||m.viewMode==="docs",E=m.viewMode&&m.storyId,T=m.viewMode!==p||m.storyId!==c,{type:I}=m.index[m.storyId]||{};v&&(E&&T&&!(I==="root"||I==="component"||I==="group")?a.channel.emit(tt.SET_CURRENT_STORY,{storyId:m.storyId,viewMode:m.viewMode}):T&&n(`/${p}/${c}`))}}),a.channel.on(tt.CURRENT_STORY_WAS_SET,function(){let{ref:c}=Rt(this,t);s.setPreviewInitialized(c)}),a.channel.on(tt.STORY_CHANGED,function(){let{sourceType:c}=Rt(this,t);if(c==="local"){let p=s.getCurrentParameter("options");p&&t.setOptions(Io(p))}}),a.channel.on(tt.STORY_PREPARED,function({id:c,...p}){let{ref:y,sourceType:m}=Rt(this,t);if(s.updateStory(c,{...p,prepared:!0},y),!y&&!e.getState().hasCalledSetOptions){let{options:v}=p.parameters;t.setOptions(Io(v)),e.setState({hasCalledSetOptions:!0})}if(m==="local"){let{storyId:v,index:E,refId:T}=e.getState(),I=Array.from(new Set([s.findSiblingStoryId(v,E,1,!0),s.findSiblingStoryId(v,E,-1,!0)])).filter(Boolean);a.channel.emit(tt.PRELOAD_ENTRIES,{ids:I,options:{target:T}})}}),a.channel.on(tt.DOCS_PREPARED,function({id:c,...p}){let{ref:y}=Rt(this,t);s.updateStory(c,{...p,prepared:!0},y)}),a.channel.on(tt.SET_INDEX,function(c){let{ref:p}=Rt(this,t);if(p)t.setRef(p.id,{...p,storyIndex:c},!0);else{s.setIndex(c);let y=s.getCurrentParameter("options");t.setOptions(Io(y))}}),a.channel.on(tt.SET_STORIES,function(c){let{ref:p}=Rt(this,t),y=c.v?gb(c):c.stories;if(p)t.setRef(p.id,{...p,setStoriesData:y},!0);else throw new Error("Cannot call SET_STORIES for local frame")}),a.channel.on(tt.SELECT_STORY,function({kind:c,title:p=c,story:y,name:m=y,storyId:v,...E}){let{ref:T}=Rt(this,t);T?t.selectStory(v||p,m,{...E,ref:T.id}):t.selectStory(v||p,m,E)}),a.channel.on(tt.STORY_ARGS_UPDATED,function({storyId:c,args:p}){let{ref:y}=Rt(this,t);s.updateStory(c,{args:p},y)}),a.channel.on(tt.CONFIG_ERROR,function(c){let{ref:p}=Rt(this,t);s.setPreviewInitialized(p)}),a.channel.on(tt.STORY_MISSING,function(c){let{ref:p}=Rt(this,t);s.setPreviewInitialized(p)}),a.channel.on(tt.SET_CONFIG,()=>{var c,p;let y=a.getConfig();(c=y==null?void 0:y.sidebar)!=null&&c.filters&&e.setState({filters:{...e.getState().filters,...(p=y==null?void 0:y.sidebar)==null?void 0:p.filters}})});let d=a.getConfig();return{api:s,state:{storyId:l,viewMode:i,hasCalledSetOptions:!1,previewInitialized:!1,status:{},filters:((u=d==null?void 0:d.sidebar)==null?void 0:u.filters)||{}},init:async()=>{Al!=null&&Al.storyStoreV7&&(a.channel.on(tt.STORY_INDEX_INVALIDATED,()=>s.fetchIndex()),await s.fetchIndex())}}},Fi={};St(Fi,{ActiveTabs:()=>Gu,focusableUIElements:()=>ha,init:()=>$b});var Nb=Ne,Rn=jt(ru()),sa=Ra(),Db=Dg(),Lb=Qe,{document:Fb}=Nb.global,Gu={SIDEBAR:"sidebar",CANVAS:"canvas",ADDONS:"addons"},Cr={ui:{enableShortcuts:!0},layout:{initialActive:Gu.CANVAS,showToolbar:!0,isFullscreen:!1,showPanel:!0,showNav:!0,panelPosition:"bottom",showTabs:!0},selectedPanel:void 0,theme:(0,Db.create)()},ha={storySearchField:"storybook-explorer-searchfield",storyListMenu:"storybook-explorer-menu",storyPanelRoot:"storybook-panel-root"},$b=({store:t,provider:e,singleStory:n,fullAPI:a})=>{let l={toggleFullscreen(f){return t.setState(u=>{let{showNav:s}=u.layout,d=typeof f=="boolean"?f:!u.layout.isFullscreen,c=s===!1&&d===!1;return{layout:{...u.layout,isFullscreen:d,showNav:!n&&c?!0:s}}},{persistence:"session"})},togglePanel(f){return t.setState(u=>{let{showNav:s,isFullscreen:d}=u.layout,c=typeof f<"u"?f:!u.layout.showPanel,p=s===!1&&c===!1;return{layout:{...u.layout,showPanel:c,isFullscreen:p?!0:d}}},{persistence:"session"})},togglePanelPosition(f){return typeof f<"u"?t.setState(u=>({layout:{...u.layout,panelPosition:f}}),{persistence:"permanent"}):t.setState(u=>({layout:{...u.layout,panelPosition:u.layout.panelPosition==="right"?"bottom":"right"}}),{persistence:"permanent"})},toggleNav(f){return t.setState(u=>{if(n)return{layout:u.layout};let{showPanel:s,isFullscreen:d}=u.layout,c=typeof f<"u"?f:!u.layout.showNav,p=s===!1&&c===!1;return{layout:{...u.layout,showNav:c,isFullscreen:p?!0:!c&&d}}},{persistence:"session"})},toggleToolbar(f){return t.setState(u=>{let s=typeof f<"u"?f:!u.layout.showToolbar;return{layout:{...u.layout,showToolbar:s}}},{persistence:"session"})},resetLayout(){return t.setState(f=>({layout:{...f.layout,showNav:!1,showPanel:!1,isFullscreen:!1}}),{persistence:"session"})},focusOnUIElement(f,u){if(!f)return;let s=Fb.getElementById(f);s&&(s.focus(),u&&s.select())},getInitialOptions(){let{theme:f,selectedPanel:u,...s}=e.getConfig();return{...Cr,layout:{...Cr.layout,...(0,Rn.default)(s,Object.keys(Cr.layout)),...n&&{showNav:!1}},ui:{...Cr.ui,...(0,Rn.default)(s,Object.keys(Cr.ui))},selectedPanel:u||Cr.selectedPanel,theme:f||Cr.theme}},setOptions:f=>{let{layout:u,ui:s,selectedPanel:d,theme:c}=t.getState();if(f){let p={...u,...f.layout,...(0,Rn.default)(f,Object.keys(u)),...n&&{showNav:!1}},y={...s,...f.ui,...(0,Rn.default)(f,Object.keys(s))},m={...c,...f.theme},v={};(0,sa.dequal)(s,y)||(v.ui=y),(0,sa.dequal)(u,p)||(v.layout=p),f.selectedPanel&&!(0,sa.dequal)(d,f.selectedPanel)&&(v.selectedPanel=f.selectedPanel),Object.keys(v).length&&t.setState(v,{persistence:"permanent"}),(0,sa.dequal)(c,m)||t.setState({theme:m})}}},i=(0,Rn.default)(t.getState(),"layout","selectedPanel");return{api:l,state:mr(l.getInitialOptions(),i),init:()=>{l.setOptions(mr(l.getInitialOptions(),i)),e.channel.on(Lb.SET_CONFIG,()=>{l.setOptions(mr(l.getInitialOptions(),i))})}}},Hu={};St(Hu,{controlOrMetaKey:()=>pa,defaultShortcuts:()=>Kr,init:()=>Wb,isMacLike:()=>Yu,keys:()=>ii});var jb=Ne,Tl=Qe,kb=Ne,{navigator:No}=kb.global,La=()=>No&&No.platform?!!No.platform.match(/(Mac|iPhone|iPod|iPad)/i):!1,Mb=()=>La()?"⌘":"ctrl",qb=()=>La()?"meta":"control",Bu=()=>La()?"⌥":"alt",Ub=(t,e)=>JSON.stringify(t)===JSON.stringify(e),$i=t=>{var e;if(["Meta","Alt","Control","Shift"].includes(t.key))return null;let n=[];if(t.altKey&&n.push("alt"),t.ctrlKey&&n.push("control"),t.metaKey&&n.push("meta"),t.shiftKey&&n.push("shift"),t.key&&t.key.length===1&&t.key!==" "){let a=t.key.toUpperCase(),l=(e=t.code)==null?void 0:e.toUpperCase().replace("KEY","").replace("DIGIT","");l&&l.length===1&&l!==a?n.push([a,l]):n.push(a)}return t.key===" "&&n.push("space"),t.key==="Escape"&&n.push("escape"),t.key==="ArrowRight"&&n.push("ArrowRight"),t.key==="ArrowDown"&&n.push("ArrowDown"),t.key==="ArrowUp"&&n.push("ArrowUp"),t.key==="ArrowLeft"&&n.push("ArrowLeft"),n.length>0?n:null},ji=(t,e)=>!t||!e||(t.join("").startsWith("shift/")&&t.shift(),t.length!==e.length)?!1:!t.find((n,a)=>Array.isArray(n)?!n.includes(e[a]):n!==e[a]),Gb=(t,e)=>ji($i(t),e),Wu=t=>t==="alt"?Bu():t==="control"?"⌃":t==="meta"?"⌘":t==="shift"?"⇧​":t==="Enter"||t==="Backspace"||t==="Esc"||t==="escape"?"":t===" "?"SPACE":t==="ArrowUp"?"↑":t==="ArrowDown"?"↓":t==="ArrowLeft"?"←":t==="ArrowRight"?"→":t.toUpperCase(),Hb=t=>t.map(Wu).join(" "),{navigator:Do,document:Pl}=jb.global,Yu=()=>Do&&Do.platform?!!Do.platform.match(/(Mac|iPhone|iPod|iPad)/i):!1,pa=()=>Yu()?"meta":"control";function ii(t){return Object.keys(t)}var Kr=Object.freeze({fullScreen:["F"],togglePanel:["A"],panelPosition:["D"],toggleNav:["S"],toolbar:["T"],search:["/"],focusNav:["1"],focusIframe:["2"],focusPanel:["3"],prevComponent:["alt","ArrowUp"],nextComponent:["alt","ArrowDown"],prevStory:["alt","ArrowLeft"],nextStory:["alt","ArrowRight"],shortcutsPage:[pa(),"shift",","],aboutPage:[","],escape:["escape"],collapseAll:[pa(),"shift","ArrowUp"],expandAll:[pa(),"shift","ArrowDown"],remount:["alt","R"]}),Lo={};function Bb(t){let e=t.target;return/input|textarea/i.test(e.tagName)||e.getAttribute("contenteditable")!==null}var Wb=({store:t,fullAPI:e,provider:n})=>{let a={getShortcutKeys(){return t.getState().shortcuts},getDefaultShortcuts(){return{...Kr,...a.getAddonsShortcutDefaults()}},getAddonsShortcuts(){return Lo},getAddonsShortcutLabels(){let f={};return Object.entries(a.getAddonsShortcuts()).forEach(([u,{label:s}])=>{f[u]=s}),f},getAddonsShortcutDefaults(){let f={};return Object.entries(a.getAddonsShortcuts()).forEach(([u,{defaultShortcut:s}])=>{f[u]=s}),f},async setShortcuts(f){return await t.setState({shortcuts:f},{persistence:"permanent"}),f},async restoreAllDefaultShortcuts(){return a.setShortcuts(a.getDefaultShortcuts())},async setShortcut(f,u){let s=a.getShortcutKeys();return await a.setShortcuts({...s,[f]:u}),u},async setAddonShortcut(f,u){let s=a.getShortcutKeys();return await a.setShortcuts({...s,[`${f}-${u.actionName}`]:u.defaultShortcut}),Lo[`${f}-${u.actionName}`]=u,u},async restoreDefaultShortcut(f){let u=a.getDefaultShortcuts()[f];return a.setShortcut(f,u)},handleKeydownEvent(f){let u=$i(f),s=a.getShortcutKeys(),d=ii(s).find(c=>ji(u,s[c]));d&&a.handleShortcutFeature(d,f)},handleShortcutFeature(f,u){let{layout:{isFullscreen:s,showNav:d,showPanel:c},ui:{enableShortcuts:p},storyId:y}=t.getState();if(p)switch(u!=null&&u.preventDefault&&u.preventDefault(),f){case"escape":{s?e.toggleFullscreen():d||e.toggleNav();break}case"focusNav":{s&&e.toggleFullscreen(),d||e.toggleNav(),e.focusOnUIElement(ha.storyListMenu);break}case"search":{s&&e.toggleFullscreen(),d||e.toggleNav(),setTimeout(()=>{e.focusOnUIElement(ha.storySearchField,!0)},0);break}case"focusIframe":{let m=Pl.getElementById("storybook-preview-iframe");if(m)try{m.contentWindow.focus()}catch{}break}case"focusPanel":{s&&e.toggleFullscreen(),c||e.togglePanel(),e.focusOnUIElement(ha.storyPanelRoot);break}case"nextStory":{e.jumpToStory(1);break}case"prevStory":{e.jumpToStory(-1);break}case"nextComponent":{e.jumpToComponent(1);break}case"prevComponent":{e.jumpToComponent(-1);break}case"fullScreen":{e.toggleFullscreen();break}case"togglePanel":{s&&(e.toggleFullscreen(),e.resetLayout()),e.togglePanel();break}case"toggleNav":{s&&(e.toggleFullscreen(),e.resetLayout()),e.toggleNav();break}case"toolbar":{e.toggleToolbar();break}case"panelPosition":{s&&e.toggleFullscreen(),c||e.togglePanel(),e.togglePanelPosition();break}case"aboutPage":{e.navigate("/settings/about");break}case"shortcutsPage":{e.navigate("/settings/shortcuts");break}case"collapseAll":{e.collapseAll();break}case"expandAll":{e.expandAll();break}case"remount":{e.emit(Tl.FORCE_REMOUNT,{storyId:y});break}default:Lo[f].action();break}}},{shortcuts:l=Kr}=t.getState(),i={shortcuts:ii(Kr).reduce((f,u)=>({...f,[u]:l[u]||Kr[u]}),Kr)};return{api:a,state:i,init:()=>{Pl.addEventListener("keydown",f=>{Bb(f)||a.handleKeydownEvent(f)}),n.channel.on(Tl.PREVIEW_KEYDOWN,f=>{a.handleKeydownEvent(f.event)})}}},Vu={};St(Vu,{init:()=>zb});var An=Qe,si=km(),zu=Ra(),Yb=Ne,{window:Fo}=Yb.global,Tn=t=>{if(t==="true"||t==="1")return!0;if(t==="false"||t==="0")return!1},$o,Vb=({state:{location:t,path:e,viewMode:n,storyId:a},singleStory:l})=>{let{full:i,panel:f,nav:u,shortcuts:s,addonPanel:d,tabs:c,path:p,...y}=(0,si.queryFromLocation)(t),m={isFullscreen:Tn(i),showNav:!l&&Tn(u),showPanel:Tn(f),panelPosition:["right","bottom"].includes(f)?f:void 0,showTabs:Tn(c)},v={enableShortcuts:Tn(s)},E=d||void 0,T=a,I=(0,zu.dequal)($o,y)?$o:y;return $o=I,{viewMode:n,layout:m,ui:v,selectedPanel:E,location:t,path:e,customQueryParams:I,storyId:T}},zb=t=>{let{store:e,navigate:n,provider:a,fullAPI:l}=t,i=(d,c={},p={})=>{let y=Object.entries(c).filter(([,v])=>v).sort(([v],[E])=>v`${v}=${E}`),m=[d,...y].join("&");return n(m,p)},f={getQueryParam(d){let{customQueryParams:c}=e.getState();return c?c[d]:void 0},getUrlState(){let{path:d,customQueryParams:c,storyId:p,url:y,viewMode:m}=e.getState();return{path:d,queryParams:c,storyId:p,url:y,viewMode:m}},setQueryParams(d){let{customQueryParams:c}=e.getState(),p={},y={...c,...Object.entries(d).reduce((m,[v,E])=>(E!==null&&(m[v]=E),m),p)};(0,zu.dequal)(c,y)||(e.setState({customQueryParams:y}),a.channel.emit(An.UPDATE_QUERY_PARAMS,y))},navigateUrl(d,c){n(d,{plain:!0,...c})}},u=()=>{let{path:d,queryParams:c,viewMode:p}=f.getUrlState();if(p!=="story")return;let y=l.getCurrentStoryData();if((y==null?void 0:y.type)!=="story")return;let{args:m,initialArgs:v}=y,E=(0,si.buildArgsParam)(v,m);i(d,{...c,args:E},{replace:!0}),f.setQueryParams({args:E})};a.channel.on(An.SET_CURRENT_STORY,()=>u());let s;return a.channel.on(An.STORY_ARGS_UPDATED,()=>{"requestIdleCallback"in Fo?(s&&Fo.cancelIdleCallback(s),s=Fo.requestIdleCallback(u,{timeout:1e3})):(s&&clearTimeout(s),setTimeout(u,100))}),a.channel.on(An.GLOBALS_UPDATED,({globals:d,initialGlobals:c})=>{let{path:p,queryParams:y}=f.getUrlState(),m=(0,si.buildArgsParam)(c,d);i(p,{...y,globals:m},{replace:!0}),f.setQueryParams({globals:m})}),a.channel.on(An.NAVIGATE_URL,(d,c)=>{f.navigateUrl(d,c)}),{api:f,state:Vb(t)}},Ku={};St(Ku,{init:()=>Zb});var Kb=Ne,hr=jt(Gv()),Xb=jt($n()),Qb="7.6.17",{VERSIONCHECK:Jb}=Kb.global,Cl=(0,Xb.default)(1)(()=>{try{return{...JSON.parse(Jb).data||{}}}catch{return{}}}),Zb=({store:t})=>{let{dismissedVersionNotification:e}=t.getState(),n={versions:{current:{version:Qb},...Cl()},dismissedVersionNotification:e},a={getCurrentVersion:()=>{let{versions:{current:l}}=t.getState();return l},getLatestVersion:()=>{let{versions:{latest:l,next:i,current:f}}=t.getState();return f&&hr.default.prerelease(f.version)&&i?l&&hr.default.gt(l.version,i.version)?l:i:l},versionUpdateAvailable:()=>{let l=a.getLatestVersion(),i=a.getCurrentVersion();if(l){if(!l.version||!i.version)return!0;let f=hr.default.prerelease(i.version)?`${hr.default.major(i.version)}.${hr.default.minor(i.version)}.${hr.default.patch(i.version)}`:i.version,u=hr.default.diff(f,l.version);return hr.default.gt(l.version,f)&&u!=="patch"&&!u.includes("pre")}return!1}};return{init:async()=>{let{versions:l={}}=t.getState(),{latest:i,next:f}=Cl();await t.setState({versions:{...l,latest:i,next:f}})},state:n,api:a}},Xu={};St(Xu,{init:()=>tS});var eS=Ne,la=Qe,xl="whats-new",tS=({fullAPI:t,store:e,provider:n})=>{let a={whatsNewData:void 0};function l(s){e.setState({whatsNewData:s}),a.whatsNewData=s}let i={isWhatsNewUnread(){var s;return((s=a.whatsNewData)==null?void 0:s.status)==="SUCCESS"&&!a.whatsNewData.postIsRead},whatsNewHasBeenRead(){var s;((s=a.whatsNewData)==null?void 0:s.status)==="SUCCESS"&&(u({lastReadPost:a.whatsNewData.url}),l({...a.whatsNewData,postIsRead:!0}),t.clearNotification(xl))},toggleWhatsNewNotifications(){var s;((s=a.whatsNewData)==null?void 0:s.status)==="SUCCESS"&&(l({...a.whatsNewData,disableWhatsNewNotifications:!a.whatsNewData.disableWhatsNewNotifications}),n.channel.emit(la.TOGGLE_WHATS_NEW_NOTIFICATIONS,{disableWhatsNewNotifications:a.whatsNewData.disableWhatsNewNotifications}))}};function f(){return n.channel.emit(la.REQUEST_WHATS_NEW_DATA),new Promise(s=>n.channel.once(la.RESULT_WHATS_NEW_DATA,({data:d})=>s(d)))}function u(s){n.channel.emit(la.SET_WHATS_NEW_CACHE,s)}return{init:async()=>{var s;if(eS.global.CONFIG_TYPE!=="DEVELOPMENT")return;let d=await f();l(d);let c=t.getUrlState();!((c==null?void 0:c.path)==="/onboarding"||((s=c.queryParams)==null?void 0:s.onboarding)==="true")&&d.status==="SUCCESS"&&!d.disableWhatsNewNotifications&&d.showNotification&&t.addNotification({id:xl,link:"/settings/whats-new",content:{headline:d.excerpt,subHeadline:"Click to learn what's new in Storybook"},icon:{name:"hearthollow"},onClear({dismissed:p}){p&&u({lastDismissedPost:d.url})}})},state:a,api:i}},Qu={};St(Qu,{init:()=>rS});var jo=Qe,Il=je,Nl=Ra(),rS=({store:t,fullAPI:e,provider:n})=>{let a={getGlobals(){return t.getState().globals},getGlobalTypes(){return t.getState().globalTypes},updateGlobals(f){n.channel.emit(jo.UPDATE_GLOBALS,{globals:f,options:{target:"storybook-preview-iframe"}})}},l={globals:{},globalTypes:{}},i=f=>{var u;let s=(u=t.getState())==null?void 0:u.globals;(0,Nl.dequal)(f,s)||t.setState({globals:f})};return n.channel.on(jo.GLOBALS_UPDATED,function({globals:f}){let{ref:u}=Rt(this,e);u?Il.logger.warn("received a GLOBALS_UPDATED from a non-local ref. This is not currently supported."):i(f)}),n.channel.on(jo.SET_GLOBALS,function({globals:f,globalTypes:u}){var s;let{ref:d}=Rt(this,e),c=(s=t.getState())==null?void 0:s.globals;d?Object.keys(f).length>0&&Il.logger.warn("received globals from a non-local ref. This is not currently supported."):t.setState({globals:f,globalTypes:u}),c&&Object.keys(c).length!==0&&!(0,Nl.dequal)(f,c)&&a.updateGlobals(c)}),{api:a,state:l}},ko=Ne,Dl=Qe,Ju=di,nS=je,aS=Ea;function Zu(){let t={setHandler:()=>{},send:()=>{}};return new aS.Channel({transport:t})}var oS=class{constructor(){this.loaders={},this.elements={},this.config={},this.getChannel=()=>(this.channel||this.setChannel(Zu()),this.channel),this.getServerChannel=()=>{if(!this.serverChannel)throw new Error("Accessing non-existent serverChannel");return this.serverChannel},this.ready=()=>this.promise,this.hasChannel=()=>!!this.channel,this.hasServerChannel=()=>!!this.serverChannel,this.setChannel=e=>{this.channel=e,this.resolve()},this.setServerChannel=e=>{this.serverChannel=e},this.addPanel=(e,n)=>{this.add(e,{type:Ju.Addon_TypesEnum.PANEL,...n})},this.setConfig=e=>{Object.assign(this.config,e),this.hasChannel()?this.getChannel().emit(Dl.SET_CONFIG,this.config):this.ready().then(n=>{n.emit(Dl.SET_CONFIG,this.config)})},this.getConfig=()=>this.config,this.register=(e,n)=>{this.loaders[e]&&nS.logger.warn(`${e} was loaded twice, this could have bad side-effects`),this.loaders[e]=n},this.loadAddons=e=>{Object.values(this.loaders).forEach(n=>n(e))},this.promise=new Promise(e=>{this.resolve=()=>e(this.getChannel())})}getElements(e){return this.elements[e]||(this.elements[e]={}),this.elements[e]}add(e,n){let{type:a}=n,l=this.getElements(a);l[e]={id:e,...n}}},Mo="__STORYBOOK_ADDONS_MANAGER";function iS(){return ko.global[Mo]||(ko.global[Mo]=new oS),ko.global[Mo]}var sS=iS(),{ActiveTabs:lS}=Fi,Un=Yv({api:void 0,state:ai({})}),ec=(...t)=>(0,Bv.default)({},...t,(e,n)=>{if(Array.isArray(n))return n}),tc=class extends Ke.Component{constructor(t){super(t),this.api={},this.initModules=()=>{this.modules.forEach(E=>{"init"in E&&E.init()})};let{location:e,path:n,refId:a,viewMode:l=t.docsOptions.docsMode?"docs":t.viewMode,singleStory:i,storyId:f,docsOptions:u,navigate:s}=t,d=new Xv({getState:()=>this.state,setState:(E,T)=>this.setState(E,T)}),c={location:e,path:n,viewMode:l,singleStory:i,storyId:f,refId:a},p={docsOptions:u};this.state=d.getInitialState(ai({...c,...p}));let y={navigate:s,store:d,provider:t.provider};this.modules=[Iu,Du,Nu,Fi,Lu,Fu,Hu,$u,ju,Qu,Vu,Ku,Xu].map(E=>E.init({...c,...p,...y,state:this.state,fullAPI:this.api}));let m=ai(this.state,...this.modules.map(E=>E.state)),v=Object.assign(this.api,{navigate:s},...this.modules.map(E=>E.api));this.state=m,this.api=v}static getDerivedStateFromProps(t,e){return e.path!==t.path?{...e,location:t.location,path:t.path,refId:t.refId,viewMode:t.viewMode,storyId:t.storyId}:null}shouldComponentUpdate(t,e){let n=this.state,a=this.props;return n!==e||a.path!==t.path}render(){let{children:t}=this.props,e={state:this.state,api:this.api};return Ke.default.createElement(uS,{effect:this.initModules},Ke.default.createElement(Un.Provider,{value:e},Ke.default.createElement(rc,null,t)))}};tc.displayName="Manager";var uS=({children:t,effect:e})=>(Ke.default.useEffect(e,[]),t),cS=t=>t;function rc({filter:t=cS,children:e}){let n=(0,Ke.useContext)(Un),a=(0,Ke.useRef)(e),l=(0,Ke.useRef)(t);if(typeof a.current!="function")return Ke.default.createElement(Ke.Fragment,null,a.current);let i=l.current(n),f=(0,Ke.useMemo)(()=>[...Object.entries(i).reduce((u,s)=>u.concat(s),[])],[n.state]);return(0,Ke.useMemo)(()=>{let u=a.current;return Ke.default.createElement(u,{...i})},f)}function fS(){let{state:t}=(0,Ke.useContext)(Un);return{...t,get storiesHash(){return(0,xo.deprecate)("state.storiesHash is deprecated, please use state.index"),this.index||{}},get storiesConfigured(){return(0,xo.deprecate)("state.storiesConfigured is deprecated, please use state.previewInitialized"),this.previewInitialized},get storiesFailed(){return(0,xo.deprecate)("state.storiesFailed is deprecated, please use state.indexError"),this.indexError}}}function or(){let{api:t}=(0,Ke.useContext)(Un);return t}function nc(t,e){return typeof t>"u"?e:t}var ac=(t,e=[])=>{let n=or();return(0,Ke.useEffect)(()=>(Object.entries(t).forEach(([a,l])=>n.on(a,l)),()=>{Object.entries(t).forEach(([a,l])=>n.off(a,l))}),e),n.emit};function dS(t){return or().isPrepared(t)}function hS(t,e){let n=or().getCurrentParameter(t);return nc(n,e)}globalThis.STORYBOOK_ADDON_STATE={};var{STORYBOOK_ADDON_STATE:zt}=globalThis;function oc(t,e){let n=or(),a=n.getAddonState(t)||zt[t],l=nc(a,zt[t]?zt[t]:e),i=!1;l===e&&e!==void 0&&(zt[t]=e,i=!0),(0,Ke.useEffect)(()=>{i&&n.setAddonState(t,e)},[i]);let f=async(d,c)=>{let p=await n.setAddonState(t,d,c);return zt[t]=p,p},u=(0,Ke.useMemo)(()=>{let d={[`${tr.SHARED_STATE_CHANGED}-client-${t}`]:f,[`${tr.SHARED_STATE_SET}-client-${t}`]:f},c={[tr.SET_STORIES]:async()=>{let p=n.getAddonState(t);p?(zt[t]=p,n.emit(`${tr.SHARED_STATE_SET}-manager-${t}`,p)):zt[t]?(await f(zt[t]),n.emit(`${tr.SHARED_STATE_SET}-manager-${t}`,zt[t])):e!==void 0&&(await f(e),zt[t]=e,n.emit(`${tr.SHARED_STATE_SET}-manager-${t}`,e))},[tr.STORY_CHANGED]:()=>{let p=n.getAddonState(t);p!==void 0&&n.emit(`${tr.SHARED_STATE_SET}-manager-${t}`,p)}};return{...d,...c}},[t]),s=ac(u);return[l,async(d,c)=>{let p=await f(d,c);s(`${tr.SHARED_STATE_CHANGED}-manager-${t}`,p)}]}function pS(t,e){return oc(t,e)}function gS(){let{getCurrentStoryData:t,updateStoryArgs:e,resetStoryArgs:n}=or(),a=t(),l=(a==null?void 0:a.type)==="story"?a.args:{},i=(0,Ke.useCallback)(u=>e(a,u),[a,e]),f=(0,Ke.useCallback)(u=>n(a,u),[a,n]);return[l,i,f]}function yS(){let t=or();return[t.getGlobals(),t.updateGlobals]}function mS(){return or().getGlobalTypes()}function vS(){let{getCurrentStoryData:t}=or();return t()}function bS(){let t=vS();return(t==null?void 0:t.type)==="story"&&t.argTypes||{}}var SS=Ju.Addon_TypesEnum,ki=Object.defineProperty,ES=Object.getOwnPropertyDescriptor,_S=Object.getOwnPropertyNames,wS=Object.prototype.hasOwnProperty,OS=(t,e)=>{for(var n in e)ki(t,n,{get:e[n],enumerable:!0})},RS=(t,e,n,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let l of _S(e))!wS.call(t,l)&&l!==n&&ki(t,l,{get:()=>e[l],enumerable:!(a=ES(e,l))||a.enumerable});return t},AS=t=>RS(ki({},"__esModule",{value:!0}),t),ic={};OS(ic,{AddonStore:()=>lc,HooksContext:()=>xS,addons:()=>Lr,applyHooks:()=>NS,makeDecorator:()=>BS,mockChannel:()=>sc,useArgs:()=>GS,useCallback:()=>jn,useChannel:()=>qS,useEffect:()=>dc,useGlobals:()=>HS,useMemo:()=>FS,useParameter:()=>US,useReducer:()=>MS,useRef:()=>$S,useState:()=>kS,useStoryContext:()=>$a});var TS=AS(ic),qo=Ne,PS=Ea;function sc(){let t={setHandler:()=>{},send:()=>{}};return new PS.Channel({transport:t})}var lc=class{constructor(){this.getChannel=()=>{if(!this.channel){let t=sc();return this.setChannel(t),t}return this.channel},this.getServerChannel=()=>{if(!this.serverChannel)throw new Error("Accessing non-existent serverChannel");return this.serverChannel},this.ready=()=>this.promise,this.hasChannel=()=>!!this.channel,this.hasServerChannel=()=>!!this.serverChannel,this.setChannel=t=>{this.channel=t,this.resolve()},this.setServerChannel=t=>{this.serverChannel=t},this.promise=new Promise(t=>{this.resolve=()=>t(this.getChannel())})}},Uo="__STORYBOOK_ADDONS_PREVIEW";function CS(){return qo.global[Uo]||(qo.global[Uo]=new lc),qo.global[Uo]}var Lr=CS(),ga=Ne,xn=je,rn=Qe,xS=class{constructor(){this.hookListsMap=void 0,this.mountedDecorators=void 0,this.prevMountedDecorators=void 0,this.currentHooks=void 0,this.nextHookIndex=void 0,this.currentPhase=void 0,this.currentEffects=void 0,this.prevEffects=void 0,this.currentDecoratorName=void 0,this.hasUpdates=void 0,this.currentContext=void 0,this.renderListener=t=>{var e;t===((e=this.currentContext)==null?void 0:e.id)&&(this.triggerEffects(),this.currentContext=null,this.removeRenderListeners())},this.init()}init(){this.hookListsMap=new WeakMap,this.mountedDecorators=new Set,this.prevMountedDecorators=new Set,this.currentHooks=[],this.nextHookIndex=0,this.currentPhase="NONE",this.currentEffects=[],this.prevEffects=[],this.currentDecoratorName=null,this.hasUpdates=!1,this.currentContext=null}clean(){this.prevEffects.forEach(t=>{t.destroy&&t.destroy()}),this.init(),this.removeRenderListeners()}getNextHook(){let t=this.currentHooks[this.nextHookIndex];return this.nextHookIndex+=1,t}triggerEffects(){this.prevEffects.forEach(t=>{!this.currentEffects.includes(t)&&t.destroy&&t.destroy()}),this.currentEffects.forEach(t=>{this.prevEffects.includes(t)||(t.destroy=t.create())}),this.prevEffects=this.currentEffects,this.currentEffects=[]}addRenderListeners(){this.removeRenderListeners(),Lr.getChannel().on(rn.STORY_RENDERED,this.renderListener)}removeRenderListeners(){Lr.getChannel().removeListener(rn.STORY_RENDERED,this.renderListener)}};function Ll(t){let e=(...n)=>{let{hooks:a}=typeof n[0]=="function"?n[1]:n[0],l=a.currentPhase,i=a.currentHooks,f=a.nextHookIndex,u=a.currentDecoratorName;a.currentDecoratorName=t.name,a.prevMountedDecorators.has(t)?(a.currentPhase="UPDATE",a.currentHooks=a.hookListsMap.get(t)||[]):(a.currentPhase="MOUNT",a.currentHooks=[],a.hookListsMap.set(t,a.currentHooks),a.prevMountedDecorators.add(t)),a.nextHookIndex=0;let s=ga.global.STORYBOOK_HOOKS_CONTEXT;ga.global.STORYBOOK_HOOKS_CONTEXT=a;let d=t(...n);if(ga.global.STORYBOOK_HOOKS_CONTEXT=s,a.currentPhase==="UPDATE"&&a.getNextHook()!=null)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return a.currentPhase=l,a.currentHooks=i,a.nextHookIndex=f,a.currentDecoratorName=u,d};return e.originalFn=t,e}var Go=0,IS=25,NS=t=>(e,n)=>{let a=t(Ll(e),n.map(l=>Ll(l)));return l=>{let{hooks:i}=l;i.prevMountedDecorators??(i.prevMountedDecorators=new Set),i.mountedDecorators=new Set([e,...n]),i.currentContext=l,i.hasUpdates=!1;let f=a(l);for(Go=1;i.hasUpdates;)if(i.hasUpdates=!1,i.currentEffects=[],f=a(l),Go+=1,Go>IS)throw new Error("Too many re-renders. Storybook limits the number of renders to prevent an infinite loop.");return i.addRenderListeners(),f}},DS=(t,e)=>t.length===e.length&&t.every((n,a)=>n===e[a]),Mi=()=>new Error("Storybook preview hooks can only be called inside decorators and story functions.");function uc(){return ga.global.STORYBOOK_HOOKS_CONTEXT||null}function qi(){let t=uc();if(t==null)throw Mi();return t}function LS(t,e,n){let a=qi();if(a.currentPhase==="MOUNT"){n!=null&&!Array.isArray(n)&&xn.logger.warn(`${t} received a final argument that is not an array (instead, received ${n}). When specified, the final argument must be an array.`);let l={name:t,deps:n};return a.currentHooks.push(l),e(l),l}if(a.currentPhase==="UPDATE"){let l=a.getNextHook();if(l==null)throw new Error("Rendered more hooks than during the previous render.");return l.name!==t&&xn.logger.warn(`Storybook has detected a change in the order of Hooks${a.currentDecoratorName?` called by ${a.currentDecoratorName}`:""}. This will lead to bugs and errors if not fixed.`),n!=null&&l.deps==null&&xn.logger.warn(`${t} received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.`),n!=null&&l.deps!=null&&n.length!==l.deps.length&&xn.logger.warn(`The final argument passed to ${t} changed size between renders. The order and size of this array must remain constant. Previous: ${l.deps} -Incoming: ${n}`),(n==null||l.deps==null||!CS(n,l.deps))&&(e(l),l.deps=n),l}throw Wi()}function Fa(t,e,n){let{memoizedState:a}=xS(t,l=>{l.memoizedState=e()},n);return a}function IS(t,e){return Fa("useMemo",t,e)}function jn(t,e){return Fa("useCallback",()=>t,e)}function Sc(t,e){return Fa(t,()=>({current:e}),[])}function NS(t){return Sc("useRef",t)}function DS(){let t=bc();if(t!=null&&t.currentPhase!=="NONE")t.hasUpdates=!0;else try{Lr.getChannel().emit(rn.FORCE_RE_RENDER)}catch{xn.logger.warn("State updates of Storybook preview hooks work only in browser")}}function Ec(t,e){let n=Sc(t,typeof e=="function"?e():e),a=l=>{n.current=typeof l=="function"?l(n.current):l,DS()};return[n.current,a]}function LS(t){return Ec("useState",t)}function FS(t,e,n){let a=n!=null?()=>n(e):e,[l,i]=Ec("useReducer",a);return[l,f=>i(u=>t(u,f))]}function _c(t,e){let n=Yi(),a=Fa("useEffect",()=>({create:t}),e);n.currentEffects.includes(a)||n.currentEffects.push(a)}function $S(t,e=[]){let n=Lr.getChannel();return _c(()=>(Object.entries(t).forEach(([a,l])=>n.on(a,l)),()=>{Object.entries(t).forEach(([a,l])=>n.removeListener(a,l))}),[...Object.keys(t),...e]),jn(n.emit.bind(n),[n])}function $a(){let{currentContext:t}=Yi();if(t==null)throw Wi();return t}function jS(t,e){let{parameters:n}=$a();if(t)return n[t]??e}function kS(){let t=Lr.getChannel(),{id:e,args:n}=$a(),a=jn(i=>t.emit(rn.UPDATE_STORY_ARGS,{storyId:e,updatedArgs:i}),[t,e]),l=jn(i=>t.emit(rn.RESET_STORY_ARGS,{storyId:e,argNames:i}),[t,e]);return[n,a,l]}function MS(){let t=Lr.getChannel(),{globals:e}=$a(),n=jn(a=>t.emit(rn.UPDATE_GLOBALS,{globals:a}),[t]);return[e,n]}var qS=({name:t,parameterName:e,wrapper:n,skipIfNoParametersOrOptions:a=!1})=>{let l=i=>(f,u)=>{let s=u.parameters&&u.parameters[e];return s&&s.disable||a&&!i&&!s?f(u):n(f,u,{options:i,parameters:s})};return(...i)=>typeof i[0]=="function"?l()(...i):(...f)=>{if(f.length>1)return i.length>1?l(i)(...f):l(...i)(...f);throw new Error(`Passing stories directly into ${t}() is not allowed, - instead use addDecorator(${t}) and pass options with the '${e}' parameter`)}},Vi=Object.defineProperty,US=Object.getOwnPropertyDescriptor,GS=Object.getOwnPropertyNames,HS=Object.prototype.hasOwnProperty,BS=(t,e)=>{for(var n in e)Vi(t,n,{get:e[n],enumerable:!0})},WS=(t,e,n,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let l of GS(e))!HS.call(t,l)&&l!==n&&Vi(t,l,{get:()=>e[l],enumerable:!(a=US(e,l))||a.enumerable});return t},YS=t=>WS(Vi({},"__esModule",{value:!0}),t),wc={};BS(wc,{HooksContext:()=>bt.HooksContext,addons:()=>Wl.addons,applyHooks:()=>bt.applyHooks,makeDecorator:()=>bt.makeDecorator,mockChannel:()=>Wl.mockChannel,types:()=>VS.Addon_TypesEnum,useArgs:()=>bt.useArgs,useCallback:()=>bt.useCallback,useChannel:()=>bt.useChannel,useEffect:()=>bt.useEffect,useGlobals:()=>bt.useGlobals,useMemo:()=>bt.useMemo,useParameter:()=>bt.useParameter,useReducer:()=>bt.useReducer,useRef:()=>bt.useRef,useState:()=>bt.useState,useStoryContext:()=>bt.useStoryContext});var Oc=YS(wc),VS=vi,Wl=Mv,bt=wS,Xe={};Object.defineProperty(Xe,"__esModule",{value:!0});Xe.SET_OPTIONS=Xe.SET=Xe.RESET=Xe.PARAM_KEY=Xe.PANEL_ID=Xe.CLICK=Xe.CHANGE=Xe.ADDON_ID=void 0;var zS="knobs";Xe.PARAM_KEY=zS;var $r="storybookjs/knobs";Xe.ADDON_ID=$r;var KS="".concat($r,"/panel");Xe.PANEL_ID=KS;var XS="".concat($r,"/reset");Xe.RESET=XS;var QS="".concat($r,"/set");Xe.SET=QS;var JS="".concat($r,"/change");Xe.CHANGE=JS;var ZS="".concat($r,"/set-options");Xe.SET_OPTIONS=ZS;var eE="".concat($r,"/click");Xe.CLICK=eE;var Gn={},Rc={exports:{}},Ko,Yl;function Xo(){if(Yl)return Ko;Yl=1;function t(c){return Array.prototype.slice.apply(c)}var e="pending",n="resolved",a="rejected";function l(c){this.status=e,this._continuations=[],this._parent=null,this._paused=!1,c&&c.call(this,this._continueWith.bind(this),this._failWith.bind(this))}function i(c){return c&&typeof c.then=="function"}function f(c){return c}l.prototype={then:function(c,p){var y=l.unresolved()._setParent(this);if(this._isRejected()){if(this._paused)return this._continuations.push({promise:y,nextFn:c,catchFn:p}),y;if(p)try{var m=p(this._error);return i(m)?(this._chainPromiseData(m,y),y):l.resolve(m)._setParent(this)}catch(v){return l.reject(v)._setParent(this)}return l.reject(this._error)._setParent(this)}return this._continuations.push({promise:y,nextFn:c,catchFn:p}),this._runResolutions(),y},catch:function(c){if(this._isResolved())return l.resolve(this._data)._setParent(this);var p=l.unresolved()._setParent(this);return this._continuations.push({promise:p,catchFn:c}),this._runRejections(),p},finally:function(c){var p=!1;function y(m,v){if(!p){p=!0,c||(c=f);var E=c(m);return i(E)?E.then(function(){if(v)throw v;return m}):m}}return this.then(function(m){return y(m)}).catch(function(m){return y(null,m)})},pause:function(){return this._paused=!0,this},resume:function(){var c=this._findFirstPaused();return c&&(c._paused=!1,c._runResolutions(),c._runRejections()),this},_findAncestry:function(){return this._continuations.reduce(function(c,p){if(p.promise){var y={promise:p.promise,children:p.promise._findAncestry()};c.push(y)}return c},[])},_setParent:function(c){if(this._parent)throw new Error("parent already set");return this._parent=c,this},_continueWith:function(c){var p=this._findFirstPending();p&&(p._data=c,p._setResolved())},_findFirstPending:function(){return this._findFirstAncestor(function(c){return c._isPending&&c._isPending()})},_findFirstPaused:function(){return this._findFirstAncestor(function(c){return c._paused})},_findFirstAncestor:function(c){for(var p=this,y;p;)c(p)&&(y=p),p=p._parent;return y},_failWith:function(c){var p=this._findFirstPending();p&&(p._error=c,p._setRejected())},_takeContinuations:function(){return this._continuations.splice(0,this._continuations.length)},_runRejections:function(){if(!(this._paused||!this._isRejected())){var c=this._error,p=this._takeContinuations(),y=this;p.forEach(function(m){if(m.catchFn)try{var v=m.catchFn(c);y._handleUserFunctionResult(v,m.promise)}catch(E){m.promise.reject(E)}else m.promise.reject(c)})}},_runResolutions:function(){if(!(this._paused||!this._isResolved()||this._isPending())){var c=this._takeContinuations(),p=this._data,y=this;if(c.forEach(function(m){if(m.nextFn)try{var v=m.nextFn(p);y._handleUserFunctionResult(v,m.promise)}catch(E){y._handleResolutionError(E,m)}else m.promise&&m.promise.resolve(p)}),i(this._data))return this._handleWhenResolvedDataIsPromise(this._data)}},_handleResolutionError:function(c,p){if(this._setRejected(),p.catchFn)try{p.catchFn(c);return}catch(y){c=y}p.promise&&p.promise.reject(c)},_handleWhenResolvedDataIsPromise:function(c){var p=this;return c.then(function(y){p._data=y,p._runResolutions()}).catch(function(y){p._error=y,p._setRejected(),p._runRejections()})},_handleUserFunctionResult:function(c,p){i(c)?this._chainPromiseData(c,p):p.resolve(c)},_chainPromiseData:function(c,p){c.then(function(y){p.resolve(y)}).catch(function(y){p.reject(y)})},_setResolved:function(){this.status=n,this._paused||this._runResolutions()},_setRejected:function(){this.status=a,this._paused||this._runRejections()},_isPending:function(){return this.status===e},_isResolved:function(){return this.status===n},_isRejected:function(){return this.status===a}},l.resolve=function(c){return new l(function(p,y){i(c)?c.then(function(m){p(m)}).catch(function(m){y(m)}):p(c)})},l.reject=function(c){return new l(function(p,y){y(c)})},l.unresolved=function(){return new l(function(c,p){this.resolve=c,this.reject=p})},l.all=function(){var c=t(arguments);return Array.isArray(c[0])&&(c=c[0]),c.length?new l(function(p,y){var m=[],v=0,E=function(){v===c.length&&p(m)},T=!1,I=function(Y){T||(T=!0,y(Y))};c.forEach(function(Y,ne){l.resolve(Y).then(function(J){m[ne]=J,v+=1,E()}).catch(function(J){I(J)})})}):l.resolve([])};function u(c){return typeof window<"u"&&"AggregateError"in window?new window.AggregateError(c):{errors:c}}if(l.any=function(){var c=t(arguments);return Array.isArray(c[0])&&(c=c[0]),c.length?new l(function(p,y){var m=[],v=0,E=function(){v===c.length&&y(u(m))},T=!1,I=function(Y){T||(T=!0,p(Y))};c.forEach(function(Y,ne){l.resolve(Y).then(function(J){I(J)}).catch(function(J){m[ne]=J,v+=1,E()})})}):l.reject(u([]))},l.allSettled=function(){var c=t(arguments);return Array.isArray(c[0])&&(c=c[0]),c.length?new l(function(p){var y=[],m=0,v=function(){m+=1,m===c.length&&p(y)};c.forEach(function(E,T){l.resolve(E).then(function(I){y[T]={status:"fulfilled",value:I},v()}).catch(function(I){y[T]={status:"rejected",reason:I},v()})})}):l.resolve([])},Promise===l)throw new Error("Please use SynchronousPromise.installGlobally() to install globally");var s=Promise;l.installGlobally=function(c){if(Promise===l)return c;var p=h(c);return Promise=l,p},l.uninstallGlobally=function(){Promise===l&&(Promise=s)};function h(c){if(typeof c>"u"||c.__patched)return c;var p=c;return c=function(){p.apply(this,t(arguments))},c.__patched=!0,c}return Ko={SynchronousPromise:l},Ko}const tE=Oa(Bh);var Qo,Vl;function rE(){if(Vl)return Qo;Vl=1,Qo=t;function t(n,a){if(e("noDeprecation"))return n;var l=!1;function i(){if(!l){if(e("throwDeprecation"))throw new Error(a);e("traceDeprecation")?console.trace(a):console.warn(a),l=!0}return n.apply(this,arguments)}return i}function e(n){try{if(!ot.localStorage)return!1}catch{return!1}var a=ot.localStorage[n];return a==null?!1:String(a).toLowerCase()==="true"}return Qo}(function(t){var e=Object.create,n=Object.defineProperty,a=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,i=Object.getPrototypeOf,f=Object.prototype.hasOwnProperty,u=(r,o)=>function(){return o||(0,r[l(r)[0]])((o={exports:{}}).exports,o),o.exports},s=(r,o)=>{for(var d in o)n(r,d,{get:o[d],enumerable:!0})},h=(r,o,d,g)=>{if(o&&typeof o=="object"||typeof o=="function")for(let b of l(o))!f.call(r,b)&&b!==d&&n(r,b,{get:()=>o[b],enumerable:!(g=a(o,b))||g.enumerable});return r},c=(r,o,d)=>(d=r!=null?e(i(r)):{},h(o||!r||!r.__esModule?n(d,"default",{value:r,enumerable:!0}):d,r)),p=r=>h(n({},"__esModule",{value:!0}),r),y=u({"../../node_modules/ansi-to-html/node_modules/entities/lib/maps/entities.json"(r,o){o.exports={Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"⁡",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",amp:"&",AMP:"&",andand:"⩕",And:"⩓",and:"∧",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angmsd:"∡",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",apacir:"⩯",ap:"≈",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxHd:"╤",boxhD:"╥",boxHD:"╦",boxhu:"┴",boxHu:"╧",boxhU:"╨",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsolb:"⧅",bsol:"\\",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",capand:"⩄",capbrcup:"⩉",capcap:"⩋",cap:"∩",Cap:"⋒",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cir:"○",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cup:"∪",Cup:"⋓",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",Darr:"↡",dArr:"⇓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",ddagger:"‡",ddarr:"⇊",DD:"ⅅ",dd:"ⅆ",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrowBar:"⤓",downarrow:"↓",DownArrow:"↓",Downarrow:"⇓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVectorBar:"⥖",DownLeftVector:"↽",DownRightTeeVector:"⥟",DownRightVectorBar:"⥗",DownRightVector:"⇁",DownTeeArrow:"↧",DownTee:"⊤",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",Ecirc:"Ê",ecirc:"ê",ecir:"≖",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",edot:"ė",eDot:"≑",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp13:" ",emsp14:" ",emsp:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",ge:"≥",gE:"≧",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",gescc:"⪩",ges:"⩾",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gla:"⪥",gl:"≷",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gt:">",GT:">",Gt:"≫",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",harrcir:"⥈",harr:"↔",hArr:"⇔",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",Im:"ℑ",imof:"⊷",imped:"Ƶ",Implies:"⇒",incare:"℅",in:"∈",infin:"∞",infintie:"⧝",inodot:"ı",intcal:"⊺",int:"∫",Int:"∬",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larrb:"⇤",larrbfs:"⤟",larr:"←",Larr:"↞",lArr:"⇐",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",latail:"⤙",lAtail:"⤛",lat:"⪫",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",LeftArrowBar:"⇤",leftarrow:"←",LeftArrow:"←",Leftarrow:"⇐",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVectorBar:"⥙",LeftDownVector:"⇃",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTeeArrow:"↤",LeftTee:"⊣",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangleBar:"⧏",LeftTriangle:"⊲",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVectorBar:"⥘",LeftUpVector:"↿",LeftVectorBar:"⥒",LeftVector:"↼",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",lescc:"⪨",les:"⩽",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",llarr:"⇇",ll:"≪",Ll:"⋘",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoustache:"⎰",lmoust:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftrightarrow:"⟷",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longmapsto:"⟼",longrightarrow:"⟶",LongRightArrow:"⟶",Longrightarrow:"⟹",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",lt:"<",LT:"<",Lt:"≪",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",midast:"*",midcir:"⫰",mid:"∣",middot:"·",minusb:"⊟",minus:"−",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natural:"♮",naturals:"ℕ",natur:"♮",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",ne:"≠",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:` -`,nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nlE:"≦̸",nle:"≰",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangleBar:"⧏̸",NotLeftTriangle:"⋪",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangleBar:"⧐̸",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",nparallel:"∦",npar:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",nprec:"⊀",npreceq:"⪯̸",npre:"⪯̸",nrarrc:"⤳̸",nrarr:"↛",nrArr:"⇏",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",Ocirc:"Ô",ocirc:"ô",ocir:"⊚",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",orarr:"↻",Or:"⩔",or:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",otimesas:"⨶",Otimes:"⨷",otimes:"⊗",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",para:"¶",parallel:"∥",par:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plus:"+",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",prap:"⪷",Pr:"⪻",pr:"≺",prcue:"≼",precapprox:"⪷",prec:"≺",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",pre:"⪯",prE:"⪳",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportional:"∝",Proportion:"∷",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarr:"→",Rarr:"↠",rArr:"⇒",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",Re:"ℜ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrowBar:"⇥",rightarrow:"→",RightArrow:"→",Rightarrow:"⇒",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVectorBar:"⥕",RightDownVector:"⇂",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTeeArrow:"↦",RightTee:"⊢",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangleBar:"⧐",RightTriangle:"⊳",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVectorBar:"⥔",RightUpVector:"↾",RightVectorBar:"⥓",RightVector:"⇀",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoustache:"⎱",rmoust:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",scap:"⪸",Scaron:"Š",scaron:"š",Sc:"⪼",sc:"≻",sccue:"≽",sce:"⪰",scE:"⪴",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdotb:"⊡",sdot:"⋅",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",solbar:"⌿",solb:"⧄",sol:"/",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squ:"□",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succapprox:"⪸",succ:"≻",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",Sup:"⋑",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:" ",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",therefore:"∴",Therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",ThinSpace:" ",thinsp:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",timesbar:"⨱",timesb:"⊠",times:"×",timesd:"⨰",tint:"∭",toea:"⤨",topbot:"⌶",topcir:"⫱",top:"⊤",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",uarr:"↑",Uarr:"↟",uArr:"⇑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrowBar:"⤒",uparrow:"↑",UpArrow:"↑",Uparrow:"⇑",UpArrowDownArrow:"⇅",updownarrow:"↕",UpDownArrow:"↕",Updownarrow:"⇕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTeeArrow:"↥",UpTee:"⊥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",Vcy:"В",vcy:"в",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",veebar:"⊻",vee:"∨",Vee:"⋁",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xharr:"⟷",xhArr:"⟺",Xi:"Ξ",xi:"ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",yuml:"ÿ",Yuml:"Ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",zfr:"𝔷",Zfr:"ℨ",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"}}}),m=u({"../../node_modules/ansi-to-html/node_modules/entities/lib/maps/legacy.json"(r,o){o.exports={Aacute:"Á",aacute:"á",Acirc:"Â",acirc:"â",acute:"´",AElig:"Æ",aelig:"æ",Agrave:"À",agrave:"à",amp:"&",AMP:"&",Aring:"Å",aring:"å",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",brvbar:"¦",Ccedil:"Ç",ccedil:"ç",cedil:"¸",cent:"¢",copy:"©",COPY:"©",curren:"¤",deg:"°",divide:"÷",Eacute:"É",eacute:"é",Ecirc:"Ê",ecirc:"ê",Egrave:"È",egrave:"è",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",GT:">",Iacute:"Í",iacute:"í",Icirc:"Î",icirc:"î",iexcl:"¡",Igrave:"Ì",igrave:"ì",iquest:"¿",Iuml:"Ï",iuml:"ï",laquo:"«",lt:"<",LT:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",Ntilde:"Ñ",ntilde:"ñ",Oacute:"Ó",oacute:"ó",Ocirc:"Ô",ocirc:"ô",Ograve:"Ò",ograve:"ò",ordf:"ª",ordm:"º",Oslash:"Ø",oslash:"ø",Otilde:"Õ",otilde:"õ",Ouml:"Ö",ouml:"ö",para:"¶",plusmn:"±",pound:"£",quot:'"',QUOT:'"',raquo:"»",reg:"®",REG:"®",sect:"§",shy:"­",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",THORN:"Þ",thorn:"þ",times:"×",Uacute:"Ú",uacute:"ú",Ucirc:"Û",ucirc:"û",Ugrave:"Ù",ugrave:"ù",uml:"¨",Uuml:"Ü",uuml:"ü",Yacute:"Ý",yacute:"ý",yen:"¥",yuml:"ÿ"}}}),v=u({"../../node_modules/ansi-to-html/node_modules/entities/lib/maps/xml.json"(r,o){o.exports={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}}}),E=u({"../../node_modules/ansi-to-html/node_modules/entities/lib/maps/decode.json"(r,o){o.exports={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376}}}),T=u({"../../node_modules/ansi-to-html/node_modules/entities/lib/decode_codepoint.js"(r){var o=r&&r.__importDefault||function(_){return _&&_.__esModule?_:{default:_}};Object.defineProperty(r,"__esModule",{value:!0});var d=o(E()),g=String.fromCodePoint||function(_){var A="";return _>65535&&(_-=65536,A+=String.fromCharCode(_>>>10&1023|55296),_=56320|_&1023),A+=String.fromCharCode(_),A};function b(_){return _>=55296&&_<=57343||_>1114111?"�":(_ in d.default&&(_=d.default[_]),g(_))}r.default=b}}),I=u({"../../node_modules/ansi-to-html/node_modules/entities/lib/decode.js"(r){var o=r&&r.__importDefault||function(G){return G&&G.__esModule?G:{default:G}};Object.defineProperty(r,"__esModule",{value:!0}),r.decodeHTML=r.decodeHTMLStrict=r.decodeXML=void 0;var d=o(y()),g=o(m()),b=o(v()),_=o(T()),A=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;r.decodeXML=D(b.default),r.decodeHTMLStrict=D(d.default);function D(G){var z=U(G);return function(se){return String(se).replace(A,z)}}var q=function(G,z){return G1?z(ve):ve.charCodeAt(0)).toString(16).toUpperCase()+";"}function ce(ve,xe){return function(Ue){return Ue.replace(xe,function(xt){return ve[xt]}).replace(G,se)}}var Pe=new RegExp(b.source+"|"+G.source,"g");function Se(ve){return ve.replace(Pe,se)}r.escape=Se;function we(ve){return ve.replace(b,se)}r.escapeUTF8=we;function de(ve){return function(xe){return xe.replace(Pe,function(Ue){return ve[Ue]||se(Ue)})}}}}),ne=u({"../../node_modules/ansi-to-html/node_modules/entities/lib/index.js"(r){Object.defineProperty(r,"__esModule",{value:!0}),r.decodeXMLStrict=r.decodeHTML5Strict=r.decodeHTML4Strict=r.decodeHTML5=r.decodeHTML4=r.decodeHTMLStrict=r.decodeHTML=r.decodeXML=r.encodeHTML5=r.encodeHTML4=r.escapeUTF8=r.escape=r.encodeNonAsciiHTML=r.encodeHTML=r.encodeXML=r.encode=r.decodeStrict=r.decode=void 0;var o=I(),d=Y();function g(q,U){return(!U||U<=0?o.decodeXML:o.decodeHTML)(q)}r.decode=g;function b(q,U){return(!U||U<=0?o.decodeXML:o.decodeHTMLStrict)(q)}r.decodeStrict=b;function _(q,U){return(!U||U<=0?d.encodeXML:d.encodeHTML)(q)}r.encode=_;var A=Y();Object.defineProperty(r,"encodeXML",{enumerable:!0,get:function(){return A.encodeXML}}),Object.defineProperty(r,"encodeHTML",{enumerable:!0,get:function(){return A.encodeHTML}}),Object.defineProperty(r,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return A.encodeNonAsciiHTML}}),Object.defineProperty(r,"escape",{enumerable:!0,get:function(){return A.escape}}),Object.defineProperty(r,"escapeUTF8",{enumerable:!0,get:function(){return A.escapeUTF8}}),Object.defineProperty(r,"encodeHTML4",{enumerable:!0,get:function(){return A.encodeHTML}}),Object.defineProperty(r,"encodeHTML5",{enumerable:!0,get:function(){return A.encodeHTML}});var D=I();Object.defineProperty(r,"decodeXML",{enumerable:!0,get:function(){return D.decodeXML}}),Object.defineProperty(r,"decodeHTML",{enumerable:!0,get:function(){return D.decodeHTML}}),Object.defineProperty(r,"decodeHTMLStrict",{enumerable:!0,get:function(){return D.decodeHTMLStrict}}),Object.defineProperty(r,"decodeHTML4",{enumerable:!0,get:function(){return D.decodeHTML}}),Object.defineProperty(r,"decodeHTML5",{enumerable:!0,get:function(){return D.decodeHTML}}),Object.defineProperty(r,"decodeHTML4Strict",{enumerable:!0,get:function(){return D.decodeHTMLStrict}}),Object.defineProperty(r,"decodeHTML5Strict",{enumerable:!0,get:function(){return D.decodeHTMLStrict}}),Object.defineProperty(r,"decodeXMLStrict",{enumerable:!0,get:function(){return D.decodeXML}})}}),J=u({"../../node_modules/ansi-to-html/lib/ansi_to_html.js"(r,o){function d($,k){if(!($ instanceof k))throw new TypeError("Cannot call a class as a function")}function g($,k){for(var te=0;te"u"||$[Symbol.iterator]==null){if(Array.isArray($)||($=A($))){var k=0,te=function(){};return{s:te,n:function(){return k>=$.length?{done:!0}:{done:!1,value:$[k++]}},e:function(et){throw et},f:te}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ye,Fe=!0,ze=!1,It;return{s:function(){ye=$[Symbol.iterator]()},n:function(){var et=ye.next();return Fe=et.done,et},e:function(et){ze=!0,It=et},f:function(){try{!Fe&&ye.return!=null&&ye.return()}finally{if(ze)throw It}}}}function A($,k){if($){if(typeof $=="string")return D($,k);var te=Object.prototype.toString.call($).slice(8,-1);if(te==="Object"&&$.constructor&&(te=$.constructor.name),te==="Map"||te==="Set")return Array.from(te);if(te==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(te))return D($,k)}}function D($,k){(k==null||k>$.length)&&(k=$.length);for(var te=0,ye=new Array(k);te0?$*40+55:0,It=k>0?k*40+55:0,et=te>0?te*40+55:0;ye[Fe]=ce([ze,It,et])}function se($){for(var k=$.toString(16);k.length<2;)k="0"+k;return k}function ce($){var k=[],te=_($),ye;try{for(te.s();!(ye=te.n()).done;){var Fe=ye.value;k.push(se(Fe))}}catch(ze){te.e(ze)}finally{te.f()}return"#"+k.join("")}function Pe($,k,te,ye){var Fe;return k==="text"?Fe=xt(te,ye):k==="display"?Fe=we($,te,ye):k==="xterm256"?Fe=Ft($,ye.colors[te]):k==="rgb"&&(Fe=Se($,te)),Fe}function Se($,k){k=k.substring(2).slice(0,-1);var te=+k.substr(0,2),ye=k.substring(5).split(";"),Fe=ye.map(function(ze){return("0"+Number(ze).toString(16)).substr(-2)}).join("");return Bt($,(te===38?"color:#":"background-color:#")+Fe)}function we($,k,te){k=parseInt(k,10);var ye={"-1":function(){return"
"},0:function(){return $.length&&de($)},1:function(){return vt($,"b")},3:function(){return vt($,"i")},4:function(){return vt($,"u")},8:function(){return Bt($,"display:none")},9:function(){return vt($,"strike")},22:function(){return Bt($,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return _n($,"i")},24:function(){return _n($,"u")},39:function(){return Ft($,te.fg)},49:function(){return Wt($,te.bg)},53:function(){return Bt($,"text-decoration:overline")}},Fe;return ye[k]?Fe=ye[k]():4"}).join("")}function ve($,k){for(var te=[],ye=$;ye<=k;ye++)te.push(ye);return te}function xe($){return function(k){return($===null||k.category!==$)&&$!=="all"}}function Ue($){$=parseInt($,10);var k=null;return $===0?k="all":$===1?k="bold":2<$&&$<5?k="underline":4<$&&$<7?k="blink":$===8?k="hide":$===9?k="strike":29<$&&$<38||$===39||89<$&&$<98?k="foreground-color":(39<$&&$<48||$===49||99<$&&$<108)&&(k="background-color"),k}function xt($,k){return k.escapeXML?q.encodeXML($):$}function vt($,k,te){return te||(te=""),$.push(k),"<".concat(k).concat(te?' style="'.concat(te,'"'):"",">")}function Bt($,k){return vt($,"span",k)}function Ft($,k){return vt($,"span","color:"+k)}function Wt($,k){return vt($,"span","background-color:"+k)}function _n($,k){var te;if($.slice(-1)[0]===k&&(te=$.pop()),te)return""}function lh($,k,te){var ye=!1,Fe=3;function ze(){return""}function It(Yt,er){return te("xterm256",er),""}function et(Yt){return k.newline?te("display",-1):te("text",Yt),""}function Zn(Yt,er){ye=!0,er.trim().length===0&&(er="0"),er=er.trimRight(";").split(";");var ea=_(er),$s;try{for(ea.s();!($s=ea.n()).done;){var mh=$s.value;te("display",mh)}}catch(vh){ea.e(vh)}finally{ea.f()}return""}function fh(Yt){return te("text",Yt),""}function hh(Yt){return te("rgb",Yt),""}var Ds=[{pattern:/^\x08+/,sub:ze},{pattern:/^\x1b\[[012]?K/,sub:ze},{pattern:/^\x1b\[\(B/,sub:ze},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:hh},{pattern:/^\x1b\[38;5;(\d+)m/,sub:It},{pattern:/^\n/,sub:et},{pattern:/^\r+\n/,sub:et},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:Zn},{pattern:/^\x1b\[\d?J/,sub:ze},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:ze},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:ze},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:fh}];function dh(Yt,er){er>Fe&&ye||(ye=!1,$=$.replace(Yt.pattern,Yt.sub))}var Ls=[],ph=$,wn=ph.length;e:for(;wn>0;){for(var to=0,Fs=0,gh=Ds.length;FsCs,DocsContext:()=>Va,HooksContext:()=>P,Preview:()=>cs,PreviewWeb:()=>_s,StoryStore:()=>Zi,addArgTypes:()=>zf,addArgTypesEnhancer:()=>Xf,addArgs:()=>Vf,addArgsEnhancer:()=>Kf,addDecorator:()=>Bf,addLoader:()=>Yf,addParameters:()=>Wf,addStepRunner:()=>Qf,addons:()=>W,applyHooks:()=>X,combineArgs:()=>fe,combineParameters:()=>Re,composeConfigs:()=>Ha,composeStepRunners:()=>Ga,composeStories:()=>Mc,composeStory:()=>kc,decorateStory:()=>Ie,defaultDecorateStory:()=>ut,filterArgTypes:()=>cr,getQueryParam:()=>rh,getQueryParams:()=>xs,inferControls:()=>fr,makeDecorator:()=>$e,mockChannel:()=>Z,normalizeStory:()=>Ur,prepareMeta:()=>Ar,prepareStory:()=>Ot,sanitizeStoryContextUpdate:()=>qe,setGlobalRender:()=>Jf,setProjectAnnotations:()=>jc,simulateDOMContentLoaded:()=>Za,simulatePageLoad:()=>jf,sortStoriesV7:()=>Kc,start:()=>sh,useArgs:()=>kr,useCallback:()=>qt,useChannel:()=>jr,useEffect:()=>Jt,useGlobals:()=>Mr,useMemo:()=>At,useParameter:()=>sn,useReducer:()=>Et,useRef:()=>on,useState:()=>Qt,useStoryContext:()=>ir,userOrAutoTitle:()=>rs,userOrAutoTitleFromSpecifier:()=>ts}),t.exports=p(C);var H=Ne,K=Ea;function Z(){let r={setHandler:()=>{},send:()=>{}};return new K.Channel({transport:r})}var oe=class{constructor(){this.getChannel=()=>{if(!this.channel){let r=Z();return this.setChannel(r),r}return this.channel},this.getServerChannel=()=>{if(!this.serverChannel)throw new Error("Accessing non-existent serverChannel");return this.serverChannel},this.ready=()=>this.promise,this.hasChannel=()=>!!this.channel,this.hasServerChannel=()=>!!this.serverChannel,this.setChannel=r=>{this.channel=r,this.resolve()},this.setServerChannel=r=>{this.serverChannel=r},this.promise=new Promise(r=>{this.resolve=()=>r(this.getChannel())})}},ee="__STORYBOOK_ADDONS_PREVIEW";function B(){return H.global[ee]||(H.global[ee]=new oe),H.global[ee]}var W=B(),re=Ne,he=je,O=Qe,P=class{constructor(){this.hookListsMap=void 0,this.mountedDecorators=void 0,this.prevMountedDecorators=void 0,this.currentHooks=void 0,this.nextHookIndex=void 0,this.currentPhase=void 0,this.currentEffects=void 0,this.prevEffects=void 0,this.currentDecoratorName=void 0,this.hasUpdates=void 0,this.currentContext=void 0,this.renderListener=r=>{var o;r===((o=this.currentContext)==null?void 0:o.id)&&(this.triggerEffects(),this.currentContext=null,this.removeRenderListeners())},this.init()}init(){this.hookListsMap=new WeakMap,this.mountedDecorators=new Set,this.prevMountedDecorators=new Set,this.currentHooks=[],this.nextHookIndex=0,this.currentPhase="NONE",this.currentEffects=[],this.prevEffects=[],this.currentDecoratorName=null,this.hasUpdates=!1,this.currentContext=null}clean(){this.prevEffects.forEach(r=>{r.destroy&&r.destroy()}),this.init(),this.removeRenderListeners()}getNextHook(){let r=this.currentHooks[this.nextHookIndex];return this.nextHookIndex+=1,r}triggerEffects(){this.prevEffects.forEach(r=>{!this.currentEffects.includes(r)&&r.destroy&&r.destroy()}),this.currentEffects.forEach(r=>{this.prevEffects.includes(r)||(r.destroy=r.create())}),this.prevEffects=this.currentEffects,this.currentEffects=[]}addRenderListeners(){this.removeRenderListeners(),W.getChannel().on(O.STORY_RENDERED,this.renderListener)}removeRenderListeners(){W.getChannel().removeListener(O.STORY_RENDERED,this.renderListener)}};function F(r){let o=(...d)=>{let{hooks:g}=typeof d[0]=="function"?d[1]:d[0],b=g.currentPhase,_=g.currentHooks,A=g.nextHookIndex,D=g.currentDecoratorName;g.currentDecoratorName=r.name,g.prevMountedDecorators.has(r)?(g.currentPhase="UPDATE",g.currentHooks=g.hookListsMap.get(r)||[]):(g.currentPhase="MOUNT",g.currentHooks=[],g.hookListsMap.set(r,g.currentHooks),g.prevMountedDecorators.add(r)),g.nextHookIndex=0;let q=re.global.STORYBOOK_HOOKS_CONTEXT;re.global.STORYBOOK_HOOKS_CONTEXT=g;let U=r(...d);if(re.global.STORYBOOK_HOOKS_CONTEXT=q,g.currentPhase==="UPDATE"&&g.getNextHook()!=null)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return g.currentPhase=b,g.currentHooks=_,g.nextHookIndex=A,g.currentDecoratorName=D,U};return o.originalFn=r,o}var j=0,V=25,X=r=>(o,d)=>{let g=r(F(o),d.map(b=>F(b)));return b=>{let{hooks:_}=b;_.prevMountedDecorators??(_.prevMountedDecorators=new Set),_.mountedDecorators=new Set([o,...d]),_.currentContext=b,_.hasUpdates=!1;let A=g(b);for(j=1;_.hasUpdates;)if(_.hasUpdates=!1,_.currentEffects=[],A=g(b),j+=1,j>V)throw new Error("Too many re-renders. Storybook limits the number of renders to prevent an infinite loop.");return _.addRenderListeners(),A}},ae=(r,o)=>r.length===o.length&&r.every((d,g)=>d===o[g]),pe=()=>new Error("Storybook preview hooks can only be called inside decorators and story functions.");function le(){return re.global.STORYBOOK_HOOKS_CONTEXT||null}function _e(){let r=le();if(r==null)throw pe();return r}function Te(r,o,d){let g=_e();if(g.currentPhase==="MOUNT"){d!=null&&!Array.isArray(d)&&he.logger.warn(`${r} received a final argument that is not an array (instead, received ${d}). When specified, the final argument must be an array.`);let b={name:r,deps:d};return g.currentHooks.push(b),o(b),b}if(g.currentPhase==="UPDATE"){let b=g.getNextHook();if(b==null)throw new Error("Rendered more hooks than during the previous render.");return b.name!==r&&he.logger.warn(`Storybook has detected a change in the order of Hooks${g.currentDecoratorName?` called by ${g.currentDecoratorName}`:""}. This will lead to bugs and errors if not fixed.`),d!=null&&b.deps==null&&he.logger.warn(`${r} received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.`),d!=null&&b.deps!=null&&d.length!==b.deps.length&&he.logger.warn(`The final argument passed to ${r} changed size between renders. The order and size of this array must remain constant. +Incoming: ${n}`),(n==null||l.deps==null||!DS(n,l.deps))&&(e(l),l.deps=n),l}throw Mi()}function Fa(t,e,n){let{memoizedState:a}=LS(t,l=>{l.memoizedState=e()},n);return a}function FS(t,e){return Fa("useMemo",t,e)}function jn(t,e){return Fa("useCallback",()=>t,e)}function cc(t,e){return Fa(t,()=>({current:e}),[])}function $S(t){return cc("useRef",t)}function jS(){let t=uc();if(t!=null&&t.currentPhase!=="NONE")t.hasUpdates=!0;else try{Lr.getChannel().emit(rn.FORCE_RE_RENDER)}catch{xn.logger.warn("State updates of Storybook preview hooks work only in browser")}}function fc(t,e){let n=cc(t,typeof e=="function"?e():e),a=l=>{n.current=typeof l=="function"?l(n.current):l,jS()};return[n.current,a]}function kS(t){return fc("useState",t)}function MS(t,e,n){let a=n!=null?()=>n(e):e,[l,i]=fc("useReducer",a);return[l,f=>i(u=>t(u,f))]}function dc(t,e){let n=qi(),a=Fa("useEffect",()=>({create:t}),e);n.currentEffects.includes(a)||n.currentEffects.push(a)}function qS(t,e=[]){let n=Lr.getChannel();return dc(()=>(Object.entries(t).forEach(([a,l])=>n.on(a,l)),()=>{Object.entries(t).forEach(([a,l])=>n.removeListener(a,l))}),[...Object.keys(t),...e]),jn(n.emit.bind(n),[n])}function $a(){let{currentContext:t}=qi();if(t==null)throw Mi();return t}function US(t,e){let{parameters:n}=$a();if(t)return n[t]??e}function GS(){let t=Lr.getChannel(),{id:e,args:n}=$a(),a=jn(i=>t.emit(rn.UPDATE_STORY_ARGS,{storyId:e,updatedArgs:i}),[t,e]),l=jn(i=>t.emit(rn.RESET_STORY_ARGS,{storyId:e,argNames:i}),[t,e]);return[n,a,l]}function HS(){let t=Lr.getChannel(),{globals:e}=$a(),n=jn(a=>t.emit(rn.UPDATE_GLOBALS,{globals:a}),[t]);return[e,n]}var BS=({name:t,parameterName:e,wrapper:n,skipIfNoParametersOrOptions:a=!1})=>{let l=i=>(f,u)=>{let s=u.parameters&&u.parameters[e];return s&&s.disable||a&&!i&&!s?f(u):n(f,u,{options:i,parameters:s})};return(...i)=>typeof i[0]=="function"?l()(...i):(...f)=>{if(f.length>1)return i.length>1?l(i)(...f):l(...i)(...f);throw new Error(`Passing stories directly into ${t}() is not allowed, + instead use addDecorator(${t}) and pass options with the '${e}' parameter`)}},Ui=Object.defineProperty,WS=Object.getOwnPropertyDescriptor,YS=Object.getOwnPropertyNames,VS=Object.prototype.hasOwnProperty,zS=(t,e)=>{for(var n in e)Ui(t,n,{get:e[n],enumerable:!0})},KS=(t,e,n,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let l of YS(e))!VS.call(t,l)&&l!==n&&Ui(t,l,{get:()=>e[l],enumerable:!(a=WS(e,l))||a.enumerable});return t},XS=t=>KS(Ui({},"__esModule",{value:!0}),t),hc={};zS(hc,{HooksContext:()=>bt.HooksContext,addons:()=>Fl.addons,applyHooks:()=>bt.applyHooks,makeDecorator:()=>bt.makeDecorator,mockChannel:()=>Fl.mockChannel,types:()=>QS.Addon_TypesEnum,useArgs:()=>bt.useArgs,useCallback:()=>bt.useCallback,useChannel:()=>bt.useChannel,useEffect:()=>bt.useEffect,useGlobals:()=>bt.useGlobals,useMemo:()=>bt.useMemo,useParameter:()=>bt.useParameter,useReducer:()=>bt.useReducer,useRef:()=>bt.useRef,useState:()=>bt.useState,useStoryContext:()=>bt.useStoryContext});var pc=XS(hc),QS=di,Fl=Hv,bt=TS,Xe={};Object.defineProperty(Xe,"__esModule",{value:!0});Xe.SET_OPTIONS=Xe.SET=Xe.RESET=Xe.PARAM_KEY=Xe.PANEL_ID=Xe.CLICK=Xe.CHANGE=Xe.ADDON_ID=void 0;var JS="knobs";Xe.PARAM_KEY=JS;var $r="storybookjs/knobs";Xe.ADDON_ID=$r;var ZS="".concat($r,"/panel");Xe.PANEL_ID=ZS;var eE="".concat($r,"/reset");Xe.RESET=eE;var tE="".concat($r,"/set");Xe.SET=tE;var rE="".concat($r,"/change");Xe.CHANGE=rE;var nE="".concat($r,"/set-options");Xe.SET_OPTIONS=nE;var aE="".concat($r,"/click");Xe.CLICK=aE;var Gn={},gc={exports:{}},Ho,$l;function Bo(){if($l)return Ho;$l=1;function t(c){return Array.prototype.slice.apply(c)}var e="pending",n="resolved",a="rejected";function l(c){this.status=e,this._continuations=[],this._parent=null,this._paused=!1,c&&c.call(this,this._continueWith.bind(this),this._failWith.bind(this))}function i(c){return c&&typeof c.then=="function"}function f(c){return c}l.prototype={then:function(c,p){var y=l.unresolved()._setParent(this);if(this._isRejected()){if(this._paused)return this._continuations.push({promise:y,nextFn:c,catchFn:p}),y;if(p)try{var m=p(this._error);return i(m)?(this._chainPromiseData(m,y),y):l.resolve(m)._setParent(this)}catch(v){return l.reject(v)._setParent(this)}return l.reject(this._error)._setParent(this)}return this._continuations.push({promise:y,nextFn:c,catchFn:p}),this._runResolutions(),y},catch:function(c){if(this._isResolved())return l.resolve(this._data)._setParent(this);var p=l.unresolved()._setParent(this);return this._continuations.push({promise:p,catchFn:c}),this._runRejections(),p},finally:function(c){var p=!1;function y(m,v){if(!p){p=!0,c||(c=f);var E=c(m);return i(E)?E.then(function(){if(v)throw v;return m}):m}}return this.then(function(m){return y(m)}).catch(function(m){return y(null,m)})},pause:function(){return this._paused=!0,this},resume:function(){var c=this._findFirstPaused();return c&&(c._paused=!1,c._runResolutions(),c._runRejections()),this},_findAncestry:function(){return this._continuations.reduce(function(c,p){if(p.promise){var y={promise:p.promise,children:p.promise._findAncestry()};c.push(y)}return c},[])},_setParent:function(c){if(this._parent)throw new Error("parent already set");return this._parent=c,this},_continueWith:function(c){var p=this._findFirstPending();p&&(p._data=c,p._setResolved())},_findFirstPending:function(){return this._findFirstAncestor(function(c){return c._isPending&&c._isPending()})},_findFirstPaused:function(){return this._findFirstAncestor(function(c){return c._paused})},_findFirstAncestor:function(c){for(var p=this,y;p;)c(p)&&(y=p),p=p._parent;return y},_failWith:function(c){var p=this._findFirstPending();p&&(p._error=c,p._setRejected())},_takeContinuations:function(){return this._continuations.splice(0,this._continuations.length)},_runRejections:function(){if(!(this._paused||!this._isRejected())){var c=this._error,p=this._takeContinuations(),y=this;p.forEach(function(m){if(m.catchFn)try{var v=m.catchFn(c);y._handleUserFunctionResult(v,m.promise)}catch(E){m.promise.reject(E)}else m.promise.reject(c)})}},_runResolutions:function(){if(!(this._paused||!this._isResolved()||this._isPending())){var c=this._takeContinuations(),p=this._data,y=this;if(c.forEach(function(m){if(m.nextFn)try{var v=m.nextFn(p);y._handleUserFunctionResult(v,m.promise)}catch(E){y._handleResolutionError(E,m)}else m.promise&&m.promise.resolve(p)}),i(this._data))return this._handleWhenResolvedDataIsPromise(this._data)}},_handleResolutionError:function(c,p){if(this._setRejected(),p.catchFn)try{p.catchFn(c);return}catch(y){c=y}p.promise&&p.promise.reject(c)},_handleWhenResolvedDataIsPromise:function(c){var p=this;return c.then(function(y){p._data=y,p._runResolutions()}).catch(function(y){p._error=y,p._setRejected(),p._runRejections()})},_handleUserFunctionResult:function(c,p){i(c)?this._chainPromiseData(c,p):p.resolve(c)},_chainPromiseData:function(c,p){c.then(function(y){p.resolve(y)}).catch(function(y){p.reject(y)})},_setResolved:function(){this.status=n,this._paused||this._runResolutions()},_setRejected:function(){this.status=a,this._paused||this._runRejections()},_isPending:function(){return this.status===e},_isResolved:function(){return this.status===n},_isRejected:function(){return this.status===a}},l.resolve=function(c){return new l(function(p,y){i(c)?c.then(function(m){p(m)}).catch(function(m){y(m)}):p(c)})},l.reject=function(c){return new l(function(p,y){y(c)})},l.unresolved=function(){return new l(function(c,p){this.resolve=c,this.reject=p})},l.all=function(){var c=t(arguments);return Array.isArray(c[0])&&(c=c[0]),c.length?new l(function(p,y){var m=[],v=0,E=function(){v===c.length&&p(m)},T=!1,I=function(Y){T||(T=!0,y(Y))};c.forEach(function(Y,ne){l.resolve(Y).then(function(J){m[ne]=J,v+=1,E()}).catch(function(J){I(J)})})}):l.resolve([])};function u(c){return typeof window<"u"&&"AggregateError"in window?new window.AggregateError(c):{errors:c}}if(l.any=function(){var c=t(arguments);return Array.isArray(c[0])&&(c=c[0]),c.length?new l(function(p,y){var m=[],v=0,E=function(){v===c.length&&y(u(m))},T=!1,I=function(Y){T||(T=!0,p(Y))};c.forEach(function(Y,ne){l.resolve(Y).then(function(J){I(J)}).catch(function(J){m[ne]=J,v+=1,E()})})}):l.reject(u([]))},l.allSettled=function(){var c=t(arguments);return Array.isArray(c[0])&&(c=c[0]),c.length?new l(function(p){var y=[],m=0,v=function(){m+=1,m===c.length&&p(y)};c.forEach(function(E,T){l.resolve(E).then(function(I){y[T]={status:"fulfilled",value:I},v()}).catch(function(I){y[T]={status:"rejected",reason:I},v()})})}):l.resolve([])},Promise===l)throw new Error("Please use SynchronousPromise.installGlobally() to install globally");var s=Promise;l.installGlobally=function(c){if(Promise===l)return c;var p=d(c);return Promise=l,p},l.uninstallGlobally=function(){Promise===l&&(Promise=s)};function d(c){if(typeof c>"u"||c.__patched)return c;var p=c;return c=function(){p.apply(this,t(arguments))},c.__patched=!0,c}return Ho={SynchronousPromise:l},Ho}const oE=Oa(Ld);var Wo,jl;function iE(){if(jl)return Wo;jl=1,Wo=t;function t(n,a){if(e("noDeprecation"))return n;var l=!1;function i(){if(!l){if(e("throwDeprecation"))throw new Error(a);e("traceDeprecation")?console.trace(a):console.warn(a),l=!0}return n.apply(this,arguments)}return i}function e(n){try{if(!ot.localStorage)return!1}catch{return!1}var a=ot.localStorage[n];return a==null?!1:String(a).toLowerCase()==="true"}return Wo}(function(t){var e=Object.create,n=Object.defineProperty,a=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,i=Object.getPrototypeOf,f=Object.prototype.hasOwnProperty,u=(r,o)=>function(){return o||(0,r[l(r)[0]])((o={exports:{}}).exports,o),o.exports},s=(r,o)=>{for(var h in o)n(r,h,{get:o[h],enumerable:!0})},d=(r,o,h,g)=>{if(o&&typeof o=="object"||typeof o=="function")for(let b of l(o))!f.call(r,b)&&b!==h&&n(r,b,{get:()=>o[b],enumerable:!(g=a(o,b))||g.enumerable});return r},c=(r,o,h)=>(h=r!=null?e(i(r)):{},d(o||!r||!r.__esModule?n(h,"default",{value:r,enumerable:!0}):h,r)),p=r=>d(n({},"__esModule",{value:!0}),r),y=u({"../../node_modules/ansi-to-html/node_modules/entities/lib/maps/entities.json"(r,o){o.exports={Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"⁡",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",amp:"&",AMP:"&",andand:"⩕",And:"⩓",and:"∧",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angmsd:"∡",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",apacir:"⩯",ap:"≈",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxHd:"╤",boxhD:"╥",boxHD:"╦",boxhu:"┴",boxHu:"╧",boxhU:"╨",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsolb:"⧅",bsol:"\\",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",capand:"⩄",capbrcup:"⩉",capcap:"⩋",cap:"∩",Cap:"⋒",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cir:"○",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cup:"∪",Cup:"⋓",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",Darr:"↡",dArr:"⇓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",ddagger:"‡",ddarr:"⇊",DD:"ⅅ",dd:"ⅆ",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrowBar:"⤓",downarrow:"↓",DownArrow:"↓",Downarrow:"⇓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVectorBar:"⥖",DownLeftVector:"↽",DownRightTeeVector:"⥟",DownRightVectorBar:"⥗",DownRightVector:"⇁",DownTeeArrow:"↧",DownTee:"⊤",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",Ecirc:"Ê",ecirc:"ê",ecir:"≖",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",edot:"ė",eDot:"≑",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp13:" ",emsp14:" ",emsp:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",ge:"≥",gE:"≧",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",gescc:"⪩",ges:"⩾",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gla:"⪥",gl:"≷",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gt:">",GT:">",Gt:"≫",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",harrcir:"⥈",harr:"↔",hArr:"⇔",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",Im:"ℑ",imof:"⊷",imped:"Ƶ",Implies:"⇒",incare:"℅",in:"∈",infin:"∞",infintie:"⧝",inodot:"ı",intcal:"⊺",int:"∫",Int:"∬",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larrb:"⇤",larrbfs:"⤟",larr:"←",Larr:"↞",lArr:"⇐",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",latail:"⤙",lAtail:"⤛",lat:"⪫",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",LeftArrowBar:"⇤",leftarrow:"←",LeftArrow:"←",Leftarrow:"⇐",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVectorBar:"⥙",LeftDownVector:"⇃",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTeeArrow:"↤",LeftTee:"⊣",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangleBar:"⧏",LeftTriangle:"⊲",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVectorBar:"⥘",LeftUpVector:"↿",LeftVectorBar:"⥒",LeftVector:"↼",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",lescc:"⪨",les:"⩽",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",llarr:"⇇",ll:"≪",Ll:"⋘",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoustache:"⎰",lmoust:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftrightarrow:"⟷",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longmapsto:"⟼",longrightarrow:"⟶",LongRightArrow:"⟶",Longrightarrow:"⟹",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",lt:"<",LT:"<",Lt:"≪",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",midast:"*",midcir:"⫰",mid:"∣",middot:"·",minusb:"⊟",minus:"−",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natural:"♮",naturals:"ℕ",natur:"♮",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",ne:"≠",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:` +`,nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nlE:"≦̸",nle:"≰",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangleBar:"⧏̸",NotLeftTriangle:"⋪",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangleBar:"⧐̸",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",nparallel:"∦",npar:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",nprec:"⊀",npreceq:"⪯̸",npre:"⪯̸",nrarrc:"⤳̸",nrarr:"↛",nrArr:"⇏",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",Ocirc:"Ô",ocirc:"ô",ocir:"⊚",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",orarr:"↻",Or:"⩔",or:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",otimesas:"⨶",Otimes:"⨷",otimes:"⊗",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",para:"¶",parallel:"∥",par:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plus:"+",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",prap:"⪷",Pr:"⪻",pr:"≺",prcue:"≼",precapprox:"⪷",prec:"≺",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",pre:"⪯",prE:"⪳",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportional:"∝",Proportion:"∷",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarr:"→",Rarr:"↠",rArr:"⇒",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",Re:"ℜ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrowBar:"⇥",rightarrow:"→",RightArrow:"→",Rightarrow:"⇒",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVectorBar:"⥕",RightDownVector:"⇂",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTeeArrow:"↦",RightTee:"⊢",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangleBar:"⧐",RightTriangle:"⊳",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVectorBar:"⥔",RightUpVector:"↾",RightVectorBar:"⥓",RightVector:"⇀",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoustache:"⎱",rmoust:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",scap:"⪸",Scaron:"Š",scaron:"š",Sc:"⪼",sc:"≻",sccue:"≽",sce:"⪰",scE:"⪴",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdotb:"⊡",sdot:"⋅",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",solbar:"⌿",solb:"⧄",sol:"/",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squ:"□",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succapprox:"⪸",succ:"≻",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",Sup:"⋑",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:" ",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",therefore:"∴",Therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",ThinSpace:" ",thinsp:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",timesbar:"⨱",timesb:"⊠",times:"×",timesd:"⨰",tint:"∭",toea:"⤨",topbot:"⌶",topcir:"⫱",top:"⊤",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",uarr:"↑",Uarr:"↟",uArr:"⇑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrowBar:"⤒",uparrow:"↑",UpArrow:"↑",Uparrow:"⇑",UpArrowDownArrow:"⇅",updownarrow:"↕",UpDownArrow:"↕",Updownarrow:"⇕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTeeArrow:"↥",UpTee:"⊥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",Vcy:"В",vcy:"в",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",veebar:"⊻",vee:"∨",Vee:"⋁",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xharr:"⟷",xhArr:"⟺",Xi:"Ξ",xi:"ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",yuml:"ÿ",Yuml:"Ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",zfr:"𝔷",Zfr:"ℨ",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"}}}),m=u({"../../node_modules/ansi-to-html/node_modules/entities/lib/maps/legacy.json"(r,o){o.exports={Aacute:"Á",aacute:"á",Acirc:"Â",acirc:"â",acute:"´",AElig:"Æ",aelig:"æ",Agrave:"À",agrave:"à",amp:"&",AMP:"&",Aring:"Å",aring:"å",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",brvbar:"¦",Ccedil:"Ç",ccedil:"ç",cedil:"¸",cent:"¢",copy:"©",COPY:"©",curren:"¤",deg:"°",divide:"÷",Eacute:"É",eacute:"é",Ecirc:"Ê",ecirc:"ê",Egrave:"È",egrave:"è",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",GT:">",Iacute:"Í",iacute:"í",Icirc:"Î",icirc:"î",iexcl:"¡",Igrave:"Ì",igrave:"ì",iquest:"¿",Iuml:"Ï",iuml:"ï",laquo:"«",lt:"<",LT:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",Ntilde:"Ñ",ntilde:"ñ",Oacute:"Ó",oacute:"ó",Ocirc:"Ô",ocirc:"ô",Ograve:"Ò",ograve:"ò",ordf:"ª",ordm:"º",Oslash:"Ø",oslash:"ø",Otilde:"Õ",otilde:"õ",Ouml:"Ö",ouml:"ö",para:"¶",plusmn:"±",pound:"£",quot:'"',QUOT:'"',raquo:"»",reg:"®",REG:"®",sect:"§",shy:"­",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",THORN:"Þ",thorn:"þ",times:"×",Uacute:"Ú",uacute:"ú",Ucirc:"Û",ucirc:"û",Ugrave:"Ù",ugrave:"ù",uml:"¨",Uuml:"Ü",uuml:"ü",Yacute:"Ý",yacute:"ý",yen:"¥",yuml:"ÿ"}}}),v=u({"../../node_modules/ansi-to-html/node_modules/entities/lib/maps/xml.json"(r,o){o.exports={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}}}),E=u({"../../node_modules/ansi-to-html/node_modules/entities/lib/maps/decode.json"(r,o){o.exports={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376}}}),T=u({"../../node_modules/ansi-to-html/node_modules/entities/lib/decode_codepoint.js"(r){var o=r&&r.__importDefault||function(_){return _&&_.__esModule?_:{default:_}};Object.defineProperty(r,"__esModule",{value:!0});var h=o(E()),g=String.fromCodePoint||function(_){var A="";return _>65535&&(_-=65536,A+=String.fromCharCode(_>>>10&1023|55296),_=56320|_&1023),A+=String.fromCharCode(_),A};function b(_){return _>=55296&&_<=57343||_>1114111?"�":(_ in h.default&&(_=h.default[_]),g(_))}r.default=b}}),I=u({"../../node_modules/ansi-to-html/node_modules/entities/lib/decode.js"(r){var o=r&&r.__importDefault||function(G){return G&&G.__esModule?G:{default:G}};Object.defineProperty(r,"__esModule",{value:!0}),r.decodeHTML=r.decodeHTMLStrict=r.decodeXML=void 0;var h=o(y()),g=o(m()),b=o(v()),_=o(T()),A=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;r.decodeXML=D(b.default),r.decodeHTMLStrict=D(h.default);function D(G){var z=U(G);return function(se){return String(se).replace(A,z)}}var q=function(G,z){return G1?z(ve):ve.charCodeAt(0)).toString(16).toUpperCase()+";"}function ce(ve,xe){return function(Ue){return Ue.replace(xe,function(xt){return ve[xt]}).replace(G,se)}}var Pe=new RegExp(b.source+"|"+G.source,"g");function Se(ve){return ve.replace(Pe,se)}r.escape=Se;function we(ve){return ve.replace(b,se)}r.escapeUTF8=we;function he(ve){return function(xe){return xe.replace(Pe,function(Ue){return ve[Ue]||se(Ue)})}}}}),ne=u({"../../node_modules/ansi-to-html/node_modules/entities/lib/index.js"(r){Object.defineProperty(r,"__esModule",{value:!0}),r.decodeXMLStrict=r.decodeHTML5Strict=r.decodeHTML4Strict=r.decodeHTML5=r.decodeHTML4=r.decodeHTMLStrict=r.decodeHTML=r.decodeXML=r.encodeHTML5=r.encodeHTML4=r.escapeUTF8=r.escape=r.encodeNonAsciiHTML=r.encodeHTML=r.encodeXML=r.encode=r.decodeStrict=r.decode=void 0;var o=I(),h=Y();function g(q,U){return(!U||U<=0?o.decodeXML:o.decodeHTML)(q)}r.decode=g;function b(q,U){return(!U||U<=0?o.decodeXML:o.decodeHTMLStrict)(q)}r.decodeStrict=b;function _(q,U){return(!U||U<=0?h.encodeXML:h.encodeHTML)(q)}r.encode=_;var A=Y();Object.defineProperty(r,"encodeXML",{enumerable:!0,get:function(){return A.encodeXML}}),Object.defineProperty(r,"encodeHTML",{enumerable:!0,get:function(){return A.encodeHTML}}),Object.defineProperty(r,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return A.encodeNonAsciiHTML}}),Object.defineProperty(r,"escape",{enumerable:!0,get:function(){return A.escape}}),Object.defineProperty(r,"escapeUTF8",{enumerable:!0,get:function(){return A.escapeUTF8}}),Object.defineProperty(r,"encodeHTML4",{enumerable:!0,get:function(){return A.encodeHTML}}),Object.defineProperty(r,"encodeHTML5",{enumerable:!0,get:function(){return A.encodeHTML}});var D=I();Object.defineProperty(r,"decodeXML",{enumerable:!0,get:function(){return D.decodeXML}}),Object.defineProperty(r,"decodeHTML",{enumerable:!0,get:function(){return D.decodeHTML}}),Object.defineProperty(r,"decodeHTMLStrict",{enumerable:!0,get:function(){return D.decodeHTMLStrict}}),Object.defineProperty(r,"decodeHTML4",{enumerable:!0,get:function(){return D.decodeHTML}}),Object.defineProperty(r,"decodeHTML5",{enumerable:!0,get:function(){return D.decodeHTML}}),Object.defineProperty(r,"decodeHTML4Strict",{enumerable:!0,get:function(){return D.decodeHTMLStrict}}),Object.defineProperty(r,"decodeHTML5Strict",{enumerable:!0,get:function(){return D.decodeHTMLStrict}}),Object.defineProperty(r,"decodeXMLStrict",{enumerable:!0,get:function(){return D.decodeXML}})}}),J=u({"../../node_modules/ansi-to-html/lib/ansi_to_html.js"(r,o){function h($,k){if(!($ instanceof k))throw new TypeError("Cannot call a class as a function")}function g($,k){for(var te=0;te"u"||$[Symbol.iterator]==null){if(Array.isArray($)||($=A($))){var k=0,te=function(){};return{s:te,n:function(){return k>=$.length?{done:!0}:{done:!1,value:$[k++]}},e:function(et){throw et},f:te}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ye,Fe=!0,ze=!1,It;return{s:function(){ye=$[Symbol.iterator]()},n:function(){var et=ye.next();return Fe=et.done,et},e:function(et){ze=!0,It=et},f:function(){try{!Fe&&ye.return!=null&&ye.return()}finally{if(ze)throw It}}}}function A($,k){if($){if(typeof $=="string")return D($,k);var te=Object.prototype.toString.call($).slice(8,-1);if(te==="Object"&&$.constructor&&(te=$.constructor.name),te==="Map"||te==="Set")return Array.from(te);if(te==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(te))return D($,k)}}function D($,k){(k==null||k>$.length)&&(k=$.length);for(var te=0,ye=new Array(k);te0?$*40+55:0,It=k>0?k*40+55:0,et=te>0?te*40+55:0;ye[Fe]=ce([ze,It,et])}function se($){for(var k=$.toString(16);k.length<2;)k="0"+k;return k}function ce($){var k=[],te=_($),ye;try{for(te.s();!(ye=te.n()).done;){var Fe=ye.value;k.push(se(Fe))}}catch(ze){te.e(ze)}finally{te.f()}return"#"+k.join("")}function Pe($,k,te,ye){var Fe;return k==="text"?Fe=xt(te,ye):k==="display"?Fe=we($,te,ye):k==="xterm256"?Fe=Ft($,ye.colors[te]):k==="rgb"&&(Fe=Se($,te)),Fe}function Se($,k){k=k.substring(2).slice(0,-1);var te=+k.substr(0,2),ye=k.substring(5).split(";"),Fe=ye.map(function(ze){return("0"+Number(ze).toString(16)).substr(-2)}).join("");return Bt($,(te===38?"color:#":"background-color:#")+Fe)}function we($,k,te){k=parseInt(k,10);var ye={"-1":function(){return"
"},0:function(){return $.length&&he($)},1:function(){return vt($,"b")},3:function(){return vt($,"i")},4:function(){return vt($,"u")},8:function(){return Bt($,"display:none")},9:function(){return vt($,"strike")},22:function(){return Bt($,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return _n($,"i")},24:function(){return _n($,"u")},39:function(){return Ft($,te.fg)},49:function(){return Wt($,te.bg)},53:function(){return Bt($,"text-decoration:overline")}},Fe;return ye[k]?Fe=ye[k]():4"}).join("")}function ve($,k){for(var te=[],ye=$;ye<=k;ye++)te.push(ye);return te}function xe($){return function(k){return($===null||k.category!==$)&&$!=="all"}}function Ue($){$=parseInt($,10);var k=null;return $===0?k="all":$===1?k="bold":2<$&&$<5?k="underline":4<$&&$<7?k="blink":$===8?k="hide":$===9?k="strike":29<$&&$<38||$===39||89<$&&$<98?k="foreground-color":(39<$&&$<48||$===49||99<$&&$<108)&&(k="background-color"),k}function xt($,k){return k.escapeXML?q.encodeXML($):$}function vt($,k,te){return te||(te=""),$.push(k),"<".concat(k).concat(te?' style="'.concat(te,'"'):"",">")}function Bt($,k){return vt($,"span",k)}function Ft($,k){return vt($,"span","color:"+k)}function Wt($,k){return vt($,"span","background-color:"+k)}function _n($,k){var te;if($.slice(-1)[0]===k&&(te=$.pop()),te)return""}function Jf($,k,te){var ye=!1,Fe=3;function ze(){return""}function It(Yt,er){return te("xterm256",er),""}function et(Yt){return k.newline?te("display",-1):te("text",Yt),""}function Zn(Yt,er){ye=!0,er.trim().length===0&&(er="0"),er=er.trimRight(";").split(";");var ea=_(er),xs;try{for(ea.s();!(xs=ea.n()).done;){var sd=xs.value;te("display",sd)}}catch(ld){ea.e(ld)}finally{ea.f()}return""}function td(Yt){return te("text",Yt),""}function rd(Yt){return te("rgb",Yt),""}var Ts=[{pattern:/^\x08+/,sub:ze},{pattern:/^\x1b\[[012]?K/,sub:ze},{pattern:/^\x1b\[\(B/,sub:ze},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:rd},{pattern:/^\x1b\[38;5;(\d+)m/,sub:It},{pattern:/^\n/,sub:et},{pattern:/^\r+\n/,sub:et},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:Zn},{pattern:/^\x1b\[\d?J/,sub:ze},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:ze},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:ze},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:td}];function nd(Yt,er){er>Fe&&ye||(ye=!1,$=$.replace(Yt.pattern,Yt.sub))}var Ps=[],ad=$,wn=ad.length;e:for(;wn>0;){for(var to=0,Cs=0,od=Ts.length;Csws,DocsContext:()=>Va,HooksContext:()=>P,Preview:()=>as,PreviewWeb:()=>ys,StoryStore:()=>Vi,addArgTypes:()=>kf,addArgTypesEnhancer:()=>qf,addArgs:()=>jf,addArgsEnhancer:()=>Mf,addDecorator:()=>Lf,addLoader:()=>$f,addParameters:()=>Ff,addStepRunner:()=>Uf,addons:()=>W,applyHooks:()=>X,combineArgs:()=>fe,combineParameters:()=>Re,composeConfigs:()=>Ha,composeStepRunners:()=>Ga,composeStories:()=>Cc,composeStory:()=>Pc,decorateStory:()=>Ie,defaultDecorateStory:()=>ut,filterArgTypes:()=>cr,getQueryParam:()=>Yf,getQueryParams:()=>Os,inferControls:()=>fr,makeDecorator:()=>$e,mockChannel:()=>Z,normalizeStory:()=>Ur,prepareMeta:()=>Ar,prepareStory:()=>Ot,sanitizeStoryContextUpdate:()=>qe,setGlobalRender:()=>Gf,setProjectAnnotations:()=>Tc,simulateDOMContentLoaded:()=>Za,simulatePageLoad:()=>Tf,sortStoriesV7:()=>Mc,start:()=>Qf,useArgs:()=>kr,useCallback:()=>qt,useChannel:()=>jr,useEffect:()=>Jt,useGlobals:()=>Mr,useMemo:()=>At,useParameter:()=>sn,useReducer:()=>Et,useRef:()=>on,useState:()=>Qt,useStoryContext:()=>ir,userOrAutoTitle:()=>Xi,userOrAutoTitleFromSpecifier:()=>Ki}),t.exports=p(C);var H=Ne,K=Ea;function Z(){let r={setHandler:()=>{},send:()=>{}};return new K.Channel({transport:r})}var oe=class{constructor(){this.getChannel=()=>{if(!this.channel){let r=Z();return this.setChannel(r),r}return this.channel},this.getServerChannel=()=>{if(!this.serverChannel)throw new Error("Accessing non-existent serverChannel");return this.serverChannel},this.ready=()=>this.promise,this.hasChannel=()=>!!this.channel,this.hasServerChannel=()=>!!this.serverChannel,this.setChannel=r=>{this.channel=r,this.resolve()},this.setServerChannel=r=>{this.serverChannel=r},this.promise=new Promise(r=>{this.resolve=()=>r(this.getChannel())})}},ee="__STORYBOOK_ADDONS_PREVIEW";function B(){return H.global[ee]||(H.global[ee]=new oe),H.global[ee]}var W=B(),re=Ne,de=je,O=Qe,P=class{constructor(){this.hookListsMap=void 0,this.mountedDecorators=void 0,this.prevMountedDecorators=void 0,this.currentHooks=void 0,this.nextHookIndex=void 0,this.currentPhase=void 0,this.currentEffects=void 0,this.prevEffects=void 0,this.currentDecoratorName=void 0,this.hasUpdates=void 0,this.currentContext=void 0,this.renderListener=r=>{var o;r===((o=this.currentContext)==null?void 0:o.id)&&(this.triggerEffects(),this.currentContext=null,this.removeRenderListeners())},this.init()}init(){this.hookListsMap=new WeakMap,this.mountedDecorators=new Set,this.prevMountedDecorators=new Set,this.currentHooks=[],this.nextHookIndex=0,this.currentPhase="NONE",this.currentEffects=[],this.prevEffects=[],this.currentDecoratorName=null,this.hasUpdates=!1,this.currentContext=null}clean(){this.prevEffects.forEach(r=>{r.destroy&&r.destroy()}),this.init(),this.removeRenderListeners()}getNextHook(){let r=this.currentHooks[this.nextHookIndex];return this.nextHookIndex+=1,r}triggerEffects(){this.prevEffects.forEach(r=>{!this.currentEffects.includes(r)&&r.destroy&&r.destroy()}),this.currentEffects.forEach(r=>{this.prevEffects.includes(r)||(r.destroy=r.create())}),this.prevEffects=this.currentEffects,this.currentEffects=[]}addRenderListeners(){this.removeRenderListeners(),W.getChannel().on(O.STORY_RENDERED,this.renderListener)}removeRenderListeners(){W.getChannel().removeListener(O.STORY_RENDERED,this.renderListener)}};function F(r){let o=(...h)=>{let{hooks:g}=typeof h[0]=="function"?h[1]:h[0],b=g.currentPhase,_=g.currentHooks,A=g.nextHookIndex,D=g.currentDecoratorName;g.currentDecoratorName=r.name,g.prevMountedDecorators.has(r)?(g.currentPhase="UPDATE",g.currentHooks=g.hookListsMap.get(r)||[]):(g.currentPhase="MOUNT",g.currentHooks=[],g.hookListsMap.set(r,g.currentHooks),g.prevMountedDecorators.add(r)),g.nextHookIndex=0;let q=re.global.STORYBOOK_HOOKS_CONTEXT;re.global.STORYBOOK_HOOKS_CONTEXT=g;let U=r(...h);if(re.global.STORYBOOK_HOOKS_CONTEXT=q,g.currentPhase==="UPDATE"&&g.getNextHook()!=null)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return g.currentPhase=b,g.currentHooks=_,g.nextHookIndex=A,g.currentDecoratorName=D,U};return o.originalFn=r,o}var j=0,V=25,X=r=>(o,h)=>{let g=r(F(o),h.map(b=>F(b)));return b=>{let{hooks:_}=b;_.prevMountedDecorators??(_.prevMountedDecorators=new Set),_.mountedDecorators=new Set([o,...h]),_.currentContext=b,_.hasUpdates=!1;let A=g(b);for(j=1;_.hasUpdates;)if(_.hasUpdates=!1,_.currentEffects=[],A=g(b),j+=1,j>V)throw new Error("Too many re-renders. Storybook limits the number of renders to prevent an infinite loop.");return _.addRenderListeners(),A}},ae=(r,o)=>r.length===o.length&&r.every((h,g)=>h===o[g]),pe=()=>new Error("Storybook preview hooks can only be called inside decorators and story functions.");function le(){return re.global.STORYBOOK_HOOKS_CONTEXT||null}function _e(){let r=le();if(r==null)throw pe();return r}function Te(r,o,h){let g=_e();if(g.currentPhase==="MOUNT"){h!=null&&!Array.isArray(h)&&de.logger.warn(`${r} received a final argument that is not an array (instead, received ${h}). When specified, the final argument must be an array.`);let b={name:r,deps:h};return g.currentHooks.push(b),o(b),b}if(g.currentPhase==="UPDATE"){let b=g.getNextHook();if(b==null)throw new Error("Rendered more hooks than during the previous render.");return b.name!==r&&de.logger.warn(`Storybook has detected a change in the order of Hooks${g.currentDecoratorName?` called by ${g.currentDecoratorName}`:""}. This will lead to bugs and errors if not fixed.`),h!=null&&b.deps==null&&de.logger.warn(`${r} received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.`),h!=null&&b.deps!=null&&h.length!==b.deps.length&&de.logger.warn(`The final argument passed to ${r} changed size between renders. The order and size of this array must remain constant. Previous: ${b.deps} -Incoming: ${d}`),(d==null||b.deps==null||!ae(d,b.deps))&&(o(b),b.deps=d),b}throw pe()}function Be(r,o,d){let{memoizedState:g}=Te(r,b=>{b.memoizedState=o()},d);return g}function At(r,o){return Be("useMemo",r,o)}function qt(r,o){return Be("useCallback",()=>r,o)}function Sr(r,o){return Be(r,()=>({current:o}),[])}function on(r){return Sr("useRef",r)}function Nt(){let r=le();if(r!=null&&r.currentPhase!=="NONE")r.hasUpdates=!0;else try{W.getChannel().emit(O.FORCE_RE_RENDER)}catch{he.logger.warn("State updates of Storybook preview hooks work only in browser")}}function st(r,o){let d=Sr(r,typeof o=="function"?o():o),g=b=>{d.current=typeof b=="function"?b(d.current):b,Nt()};return[d.current,g]}function Qt(r){return st("useState",r)}function Et(r,o,d){let g=d!=null?()=>d(o):o,[b,_]=st("useReducer",g);return[b,A=>_(D=>r(D,A))]}function Jt(r,o){let d=_e(),g=Be("useEffect",()=>({create:r}),o);d.currentEffects.includes(g)||d.currentEffects.push(g)}function jr(r,o=[]){let d=W.getChannel();return Jt(()=>(Object.entries(r).forEach(([g,b])=>d.on(g,b)),()=>{Object.entries(r).forEach(([g,b])=>d.removeListener(g,b))}),[...Object.keys(r),...o]),qt(d.emit.bind(d),[d])}function ir(){let{currentContext:r}=_e();if(r==null)throw pe();return r}function sn(r,o){let{parameters:d}=ir();if(r)return d[r]??o}function kr(){let r=W.getChannel(),{id:o,args:d}=ir(),g=qt(_=>r.emit(O.UPDATE_STORY_ARGS,{storyId:o,updatedArgs:_}),[r,o]),b=qt(_=>r.emit(O.RESET_STORY_ARGS,{storyId:o,argNames:_}),[r,o]);return[d,g,b]}function Mr(){let r=W.getChannel(),{globals:o}=ir(),d=qt(g=>r.emit(O.UPDATE_GLOBALS,{globals:g}),[r]);return[o,d]}var $e=({name:r,parameterName:o,wrapper:d,skipIfNoParametersOrOptions:g=!1})=>{let b=_=>(A,D)=>{let q=D.parameters&&D.parameters[o];return q&&q.disable||g&&!_&&!q?A(D):d(A,D,{options:_,parameters:q})};return(..._)=>typeof _[0]=="function"?b()(..._):(...A)=>{if(A.length>1)return _.length>1?b(_)(...A):b(..._)(...A);throw new Error(`Passing stories directly into ${r}() is not allowed, - instead use addDecorator(${r}) and pass options with the '${o}' parameter`)}},Ut=c($n()),Tt=c(Pn),He=c(hu()),Pt=Xo(),Er=c($n()),_r=tE,qr=(0,Er.default)(1)(r=>Object.values(r).reduce((o,d)=>(o[d.importPath]=o[d.importPath]||d,o),{})),sr=class{constructor({entries:r}={v:4,entries:{}}){this.entries=r}entryFromSpecifier(r){let o=Object.values(this.entries);if(r==="*")return o[0];if(typeof r=="string")return this.entries[r]?this.entries[r]:o.find(b=>b.id.startsWith(r));let{name:d,title:g}=r;return o.find(b=>b.name===d&&b.title===g)}storyIdToEntry(r){let o=this.entries[r];if(!o)throw new _r.MissingStoryAfterHmrError({storyId:r});return o}importPathToEntry(r){return qr(this.entries)[r]}},ln=Ra(),_t=je,dt=c(ua),wr=ct,R=Symbol("incompatible"),L=(r,o)=>{let d=o.type;if(r==null||!d||o.mapping)return r;switch(d.name){case"string":return String(r);case"enum":return r;case"number":return Number(r);case"boolean":return String(r)==="true";case"array":return!d.value||!Array.isArray(r)?R:r.reduce((g,b,_)=>{let A=L(b,{type:d.value});return A!==R&&(g[_]=A),g},new Array(r.length));case"object":return typeof r=="string"||typeof r=="number"?r:!d.value||typeof r!="object"?R:Object.entries(r).reduce((g,[b,_])=>{let A=L(_,{type:d.value[b]});return A===R?g:Object.assign(g,{[b]:A})},{});default:return R}},Q=(r,o)=>Object.entries(r).reduce((d,[g,b])=>{if(!o[g])return d;let _=L(b,o[g]);return _===R?d:Object.assign(d,{[g]:_})},{}),fe=(r,o)=>Array.isArray(r)&&Array.isArray(o)?o.reduce((d,g,b)=>(d[b]=fe(r[b],o[b]),d),[...r]).filter(d=>d!==void 0):!(0,dt.default)(r)||!(0,dt.default)(o)?o:Object.keys({...r,...o}).reduce((d,g)=>{if(g in o){let b=fe(r[g],o[g]);b!==void 0&&(d[g]=b)}else d[g]=r[g];return d},{}),Ee=(r,o)=>Object.entries(o).reduce((d,[g,{options:b}])=>{function _(){return g in r&&(d[g]=r[g]),d}if(!b)return _();if(!Array.isArray(b))return _t.once.error(wr.dedent` +Incoming: ${h}`),(h==null||b.deps==null||!ae(h,b.deps))&&(o(b),b.deps=h),b}throw pe()}function Be(r,o,h){let{memoizedState:g}=Te(r,b=>{b.memoizedState=o()},h);return g}function At(r,o){return Be("useMemo",r,o)}function qt(r,o){return Be("useCallback",()=>r,o)}function Sr(r,o){return Be(r,()=>({current:o}),[])}function on(r){return Sr("useRef",r)}function Nt(){let r=le();if(r!=null&&r.currentPhase!=="NONE")r.hasUpdates=!0;else try{W.getChannel().emit(O.FORCE_RE_RENDER)}catch{de.logger.warn("State updates of Storybook preview hooks work only in browser")}}function st(r,o){let h=Sr(r,typeof o=="function"?o():o),g=b=>{h.current=typeof b=="function"?b(h.current):b,Nt()};return[h.current,g]}function Qt(r){return st("useState",r)}function Et(r,o,h){let g=h!=null?()=>h(o):o,[b,_]=st("useReducer",g);return[b,A=>_(D=>r(D,A))]}function Jt(r,o){let h=_e(),g=Be("useEffect",()=>({create:r}),o);h.currentEffects.includes(g)||h.currentEffects.push(g)}function jr(r,o=[]){let h=W.getChannel();return Jt(()=>(Object.entries(r).forEach(([g,b])=>h.on(g,b)),()=>{Object.entries(r).forEach(([g,b])=>h.removeListener(g,b))}),[...Object.keys(r),...o]),qt(h.emit.bind(h),[h])}function ir(){let{currentContext:r}=_e();if(r==null)throw pe();return r}function sn(r,o){let{parameters:h}=ir();if(r)return h[r]??o}function kr(){let r=W.getChannel(),{id:o,args:h}=ir(),g=qt(_=>r.emit(O.UPDATE_STORY_ARGS,{storyId:o,updatedArgs:_}),[r,o]),b=qt(_=>r.emit(O.RESET_STORY_ARGS,{storyId:o,argNames:_}),[r,o]);return[h,g,b]}function Mr(){let r=W.getChannel(),{globals:o}=ir(),h=qt(g=>r.emit(O.UPDATE_GLOBALS,{globals:g}),[r]);return[o,h]}var $e=({name:r,parameterName:o,wrapper:h,skipIfNoParametersOrOptions:g=!1})=>{let b=_=>(A,D)=>{let q=D.parameters&&D.parameters[o];return q&&q.disable||g&&!_&&!q?A(D):h(A,D,{options:_,parameters:q})};return(..._)=>typeof _[0]=="function"?b()(..._):(...A)=>{if(A.length>1)return _.length>1?b(_)(...A):b(..._)(...A);throw new Error(`Passing stories directly into ${r}() is not allowed, + instead use addDecorator(${r}) and pass options with the '${o}' parameter`)}},Ut=c($n()),Tt=c(Pn),He=c(ru()),Pt=Bo(),Er=c($n()),_r=oE,qr=(0,Er.default)(1)(r=>Object.values(r).reduce((o,h)=>(o[h.importPath]=o[h.importPath]||h,o),{})),sr=class{constructor({entries:r}={v:4,entries:{}}){this.entries=r}entryFromSpecifier(r){let o=Object.values(this.entries);if(r==="*")return o[0];if(typeof r=="string")return this.entries[r]?this.entries[r]:o.find(b=>b.id.startsWith(r));let{name:h,title:g}=r;return o.find(b=>b.name===h&&b.title===g)}storyIdToEntry(r){let o=this.entries[r];if(!o)throw new _r.MissingStoryAfterHmrError({storyId:r});return o}importPathToEntry(r){return qr(this.entries)[r]}},ln=Ra(),_t=je,ht=c(ua),wr=ct,R=Symbol("incompatible"),L=(r,o)=>{let h=o.type;if(r==null||!h||o.mapping)return r;switch(h.name){case"string":return String(r);case"enum":return r;case"number":return Number(r);case"boolean":return String(r)==="true";case"array":return!h.value||!Array.isArray(r)?R:r.reduce((g,b,_)=>{let A=L(b,{type:h.value});return A!==R&&(g[_]=A),g},new Array(r.length));case"object":return typeof r=="string"||typeof r=="number"?r:!h.value||typeof r!="object"?R:Object.entries(r).reduce((g,[b,_])=>{let A=L(_,{type:h.value[b]});return A===R?g:Object.assign(g,{[b]:A})},{});default:return R}},Q=(r,o)=>Object.entries(r).reduce((h,[g,b])=>{if(!o[g])return h;let _=L(b,o[g]);return _===R?h:Object.assign(h,{[g]:_})},{}),fe=(r,o)=>Array.isArray(r)&&Array.isArray(o)?o.reduce((h,g,b)=>(h[b]=fe(r[b],o[b]),h),[...r]).filter(h=>h!==void 0):!(0,ht.default)(r)||!(0,ht.default)(o)?o:Object.keys({...r,...o}).reduce((h,g)=>{if(g in o){let b=fe(r[g],o[g]);b!==void 0&&(h[g]=b)}else h[g]=r[g];return h},{}),Ee=(r,o)=>Object.entries(o).reduce((h,[g,{options:b}])=>{function _(){return g in r&&(h[g]=r[g]),h}if(!b)return _();if(!Array.isArray(b))return _t.once.error(wr.dedent` Invalid argType: '${g}.options' should be an array. More info: https://storybook.js.org/docs/react/api/argtypes @@ -41,25 +41,25 @@ Incoming: ${d}`),(d==null||b.deps==null||!ae(d,b.deps))&&(o(b),b.deps=d),b}throw Invalid argType: '${g}.options' should only contain primitives. Use a 'mapping' for complex values. More info: https://storybook.js.org/docs/react/writing-stories/args#mapping-to-complex-arg-values - `),_();let A=Array.isArray(r[g]),D=A&&r[g].findIndex(z=>!b.includes(z)),q=A&&D===-1;if(r[g]===void 0||b.includes(r[g])||q)return _();let U=A?`${g}[${D}]`:g,G=b.map(z=>typeof z=="string"?`'${z}'`:String(z)).join(", ");return _t.once.warn(`Received illegal value for '${U}'. Supported options: ${G}`),d},{}),Ce=Symbol("Deeply equal"),De=(r,o)=>{if(typeof r!=typeof o)return o;if((0,ln.dequal)(r,o))return Ce;if(Array.isArray(r)&&Array.isArray(o)){let d=o.reduce((g,b,_)=>{let A=De(r[_],b);return A!==Ce&&(g[_]=A),g},new Array(o.length));return o.length>=r.length?d:d.concat(new Array(r.length-o.length).fill(void 0))}return(0,dt.default)(r)&&(0,dt.default)(o)?Object.keys({...r,...o}).reduce((d,g)=>{let b=De(r==null?void 0:r[g],o==null?void 0:o[g]);return b===Ce?d:Object.assign(d,{[g]:b})},{}):o},We="UNTARGETED";function Ye({args:r,argTypes:o}){let d={};return Object.entries(r).forEach(([g,b])=>{let{target:_=We}=o[g]||{};d[_]=d[_]||{},d[_][g]=b}),d}function pt(r){return Object.keys(r).forEach(o=>r[o]===void 0&&delete r[o]),r}var wt=class{constructor(){this.initialArgsByStoryId={},this.argsByStoryId={}}get(r){if(!(r in this.argsByStoryId))throw new Error(`No args known for ${r} -- has it been rendered yet?`);return this.argsByStoryId[r]}setInitial(r){if(!this.initialArgsByStoryId[r.id])this.initialArgsByStoryId[r.id]=r.initialArgs,this.argsByStoryId[r.id]=r.initialArgs;else if(this.initialArgsByStoryId[r.id]!==r.initialArgs){let o=De(this.initialArgsByStoryId[r.id],this.argsByStoryId[r.id]);this.initialArgsByStoryId[r.id]=r.initialArgs,this.argsByStoryId[r.id]=r.initialArgs,o!==Ce&&this.updateFromDelta(r,o)}}updateFromDelta(r,o){let d=Ee(o,r.argTypes);this.argsByStoryId[r.id]=fe(this.argsByStoryId[r.id],d)}updateFromPersisted(r,o){let d=Q(o,r.argTypes);return this.updateFromDelta(r,d)}update(r,o){if(!(r in this.argsByStoryId))throw new Error(`No args known for ${r} -- has it been rendered yet?`);this.argsByStoryId[r]=pt({...this.argsByStoryId[r],...o})}},Dt=je,gt=(r={})=>Object.entries(r).reduce((o,[d,{defaultValue:g}])=>(typeof g<"u"&&(o[d]=g),o),{}),Or=class{constructor({globals:r={},globalTypes:o={}}){this.set({globals:r,globalTypes:o})}set({globals:r={},globalTypes:o={}}){let d=this.initialGlobals&&De(this.initialGlobals,this.globals);this.allowedGlobalNames=new Set([...Object.keys(r),...Object.keys(o)]);let g=gt(o);this.initialGlobals={...g,...r},this.globals=this.initialGlobals,d&&d!==Ce&&this.updateFromPersisted(d)}filterAllowedGlobals(r){return Object.entries(r).reduce((o,[d,g])=>(this.allowedGlobalNames.has(d)?o[d]=g:Dt.logger.warn(`Attempted to set a global (${d}) that is not defined in initial globals or globalTypes`),o),{})}updateFromPersisted(r){let o=this.filterAllowedGlobals(r);this.globals={...this.globals,...o}}get(){return this.globals}update(r){this.globals={...this.globals,...this.filterAllowedGlobals(r)}}},un=c(Pn),cn=r=>typeof r=="string"?{name:r}:r,Rr=r=>typeof r=="string"?{type:r}:r,lr=(r,o)=>{let{type:d,control:g,...b}=r,_={name:o,...b};return d&&(_.type=cn(d)),g?_.control=Rr(g):g===!1&&(_.control={disable:!0}),_},ur=r=>(0,un.default)(r,lr),Hn=rr,Bn=ct,Ma=je,qa=c(rE()),lt=r=>Array.isArray(r)?r:r?[r]:[],fn=Bn.dedent` + `),_();let A=Array.isArray(r[g]),D=A&&r[g].findIndex(z=>!b.includes(z)),q=A&&D===-1;if(r[g]===void 0||b.includes(r[g])||q)return _();let U=A?`${g}[${D}]`:g,G=b.map(z=>typeof z=="string"?`'${z}'`:String(z)).join(", ");return _t.once.warn(`Received illegal value for '${U}'. Supported options: ${G}`),h},{}),Ce=Symbol("Deeply equal"),De=(r,o)=>{if(typeof r!=typeof o)return o;if((0,ln.dequal)(r,o))return Ce;if(Array.isArray(r)&&Array.isArray(o)){let h=o.reduce((g,b,_)=>{let A=De(r[_],b);return A!==Ce&&(g[_]=A),g},new Array(o.length));return o.length>=r.length?h:h.concat(new Array(r.length-o.length).fill(void 0))}return(0,ht.default)(r)&&(0,ht.default)(o)?Object.keys({...r,...o}).reduce((h,g)=>{let b=De(r==null?void 0:r[g],o==null?void 0:o[g]);return b===Ce?h:Object.assign(h,{[g]:b})},{}):o},We="UNTARGETED";function Ye({args:r,argTypes:o}){let h={};return Object.entries(r).forEach(([g,b])=>{let{target:_=We}=o[g]||{};h[_]=h[_]||{},h[_][g]=b}),h}function pt(r){return Object.keys(r).forEach(o=>r[o]===void 0&&delete r[o]),r}var wt=class{constructor(){this.initialArgsByStoryId={},this.argsByStoryId={}}get(r){if(!(r in this.argsByStoryId))throw new Error(`No args known for ${r} -- has it been rendered yet?`);return this.argsByStoryId[r]}setInitial(r){if(!this.initialArgsByStoryId[r.id])this.initialArgsByStoryId[r.id]=r.initialArgs,this.argsByStoryId[r.id]=r.initialArgs;else if(this.initialArgsByStoryId[r.id]!==r.initialArgs){let o=De(this.initialArgsByStoryId[r.id],this.argsByStoryId[r.id]);this.initialArgsByStoryId[r.id]=r.initialArgs,this.argsByStoryId[r.id]=r.initialArgs,o!==Ce&&this.updateFromDelta(r,o)}}updateFromDelta(r,o){let h=Ee(o,r.argTypes);this.argsByStoryId[r.id]=fe(this.argsByStoryId[r.id],h)}updateFromPersisted(r,o){let h=Q(o,r.argTypes);return this.updateFromDelta(r,h)}update(r,o){if(!(r in this.argsByStoryId))throw new Error(`No args known for ${r} -- has it been rendered yet?`);this.argsByStoryId[r]=pt({...this.argsByStoryId[r],...o})}},Dt=je,gt=(r={})=>Object.entries(r).reduce((o,[h,{defaultValue:g}])=>(typeof g<"u"&&(o[h]=g),o),{}),Or=class{constructor({globals:r={},globalTypes:o={}}){this.set({globals:r,globalTypes:o})}set({globals:r={},globalTypes:o={}}){let h=this.initialGlobals&&De(this.initialGlobals,this.globals);this.allowedGlobalNames=new Set([...Object.keys(r),...Object.keys(o)]);let g=gt(o);this.initialGlobals={...g,...r},this.globals=this.initialGlobals,h&&h!==Ce&&this.updateFromPersisted(h)}filterAllowedGlobals(r){return Object.entries(r).reduce((o,[h,g])=>(this.allowedGlobalNames.has(h)?o[h]=g:Dt.logger.warn(`Attempted to set a global (${h}) that is not defined in initial globals or globalTypes`),o),{})}updateFromPersisted(r){let o=this.filterAllowedGlobals(r);this.globals={...this.globals,...o}}get(){return this.globals}update(r){this.globals={...this.globals,...this.filterAllowedGlobals(r)}}},un=c(Pn),cn=r=>typeof r=="string"?{name:r}:r,Rr=r=>typeof r=="string"?{type:r}:r,lr=(r,o)=>{let{type:h,control:g,...b}=r,_={name:o,...b};return h&&(_.type=cn(h)),g?_.control=Rr(g):g===!1&&(_.control={disable:!0}),_},ur=r=>(0,un.default)(r,lr),Hn=rr,Bn=ct,Ma=je,qa=c(iE()),lt=r=>Array.isArray(r)?r:r?[r]:[],fn=Bn.dedent` CSF .story annotations deprecated; annotate story functions directly: - StoryFn.story.name => StoryFn.storyName - StoryFn.story.(parameters|decorators) => StoryFn.(parameters|decorators) See https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#hoisted-csf-annotations for details and codemod. -`,hn=(0,qa.default)(()=>{},fn);function Ur(r,o,d){let g=o,b=typeof o=="function"?o:null,{story:_}=g;_&&(Ma.logger.debug("deprecated story",_),hn());let A=(0,Hn.storyNameFromExport)(r),D=typeof g!="function"&&g.name||g.storyName||(_==null?void 0:_.name)||A,q=[...lt(g.decorators),...lt(_==null?void 0:_.decorators)],U={..._==null?void 0:_.parameters,...g.parameters},G={..._==null?void 0:_.args,...g.args},z={..._==null?void 0:_.argTypes,...g.argTypes},se=[...lt(g.loaders),...lt(_==null?void 0:_.loaders)],{render:ce,play:Pe,tags:Se=[]}=g,we=U.__id||(0,Hn.toId)(d.id,A);return{moduleExport:o,id:we,name:D,tags:Se,decorators:q,parameters:U,args:G,argTypes:ur(z),loaders:se,...ce&&{render:ce},...b&&{userStoryFn:b},...Pe&&{play:Pe}}}var Ua=rr,dn=je,S=c(ct),w=rr;function x(r,o=r.title,d){let{id:g,argTypes:b}=r;return{id:(0,w.sanitize)(g||o),...r,title:o,...b&&{argTypes:ur(b)},parameters:{fileName:d,...r.parameters}}}var N=r=>{let{globals:o,globalTypes:d}=r;(o||d)&&dn.logger.error("Global args/argTypes can only be set globally",JSON.stringify({globals:o,globalTypes:d}))},M=r=>{let{options:o}=r;o!=null&&o.storySort&&dn.logger.error("The storySort option parameter can only be set globally")},ue=r=>{r&&(N(r),M(r))},ie=r=>{r.subcomponents&&(0,dn.deprecate)(S.default`The \`subcomponents\` annotation is deprecated. +`,dn=(0,qa.default)(()=>{},fn);function Ur(r,o,h){let g=o,b=typeof o=="function"?o:null,{story:_}=g;_&&(Ma.logger.debug("deprecated story",_),dn());let A=(0,Hn.storyNameFromExport)(r),D=typeof g!="function"&&g.name||g.storyName||(_==null?void 0:_.name)||A,q=[...lt(g.decorators),...lt(_==null?void 0:_.decorators)],U={..._==null?void 0:_.parameters,...g.parameters},G={..._==null?void 0:_.args,...g.args},z={..._==null?void 0:_.argTypes,...g.argTypes},se=[...lt(g.loaders),...lt(_==null?void 0:_.loaders)],{render:ce,play:Pe,tags:Se=[]}=g,we=U.__id||(0,Hn.toId)(h.id,A);return{moduleExport:o,id:we,name:D,tags:Se,decorators:q,parameters:U,args:G,argTypes:ur(z),loaders:se,...ce&&{render:ce},...b&&{userStoryFn:b},...Pe&&{play:Pe}}}var Ua=rr,hn=je,S=c(ct),w=rr;function x(r,o=r.title,h){let{id:g,argTypes:b}=r;return{id:(0,w.sanitize)(g||o),...r,title:o,...b&&{argTypes:ur(b)},parameters:{fileName:h,...r.parameters}}}var N=r=>{let{globals:o,globalTypes:h}=r;(o||h)&&hn.logger.error("Global args/argTypes can only be set globally",JSON.stringify({globals:o,globalTypes:h}))},M=r=>{let{options:o}=r;o!=null&&o.storySort&&hn.logger.error("The storySort option parameter can only be set globally")},ue=r=>{r&&(N(r),M(r))},ie=r=>{r.subcomponents&&(0,hn.deprecate)(S.default`The \`subcomponents\` annotation is deprecated. Please refer to the migration guide: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#argstable-block' - `)};function ge(r,o,d){let{default:g,__namedExportsOrder:b,..._}=r,A=x(g,d,o);ue(A.parameters),ie(A);let D={meta:A,stories:{},moduleExports:r};return Object.keys(_).forEach(q=>{if((0,Ua.isExportStory)(q,A)){let U=Ur(q,_[q],A);ue(U.parameters),D.stories[U.id]=U}}),D}var be=Ne,Le=rr,ke=c(ua),Re=(...r)=>{let o={},d=r.filter(Boolean),g=d.reduce((b,_)=>(Object.entries(_).forEach(([A,D])=>{let q=b[A];Array.isArray(D)||typeof q>"u"?b[A]=D:(0,ke.default)(D)&&(0,ke.default)(q)?o[A]=!0:typeof D<"u"&&(b[A]=D)}),b),{});return Object.keys(o).forEach(b=>{let _=d.filter(Boolean).map(A=>A[b]).filter(A=>typeof A<"u");_.every(A=>(0,ke.default)(A))?g[b]=Re(..._):g[b]=_[_.length-1]}),g};function Ie(r,o,d){let g=d(r);return b=>o(g,b)}function qe({componentId:r,title:o,kind:d,id:g,name:b,story:_,parameters:A,initialArgs:D,argTypes:q,...U}={}){return U}function ut(r,o){let d={},g=_=>A=>{if(!d.value)throw new Error("Decorated function called without init");return d.value={...d.value,...qe(A)},_(d.value)},b=o.reduce((_,A)=>Ie(_,A,g),r);return _=>(d.value=_,b(_))}function Ot(r,o,d){let{moduleExport:g,id:b,name:_}=r||{},A=pn(r,o,d),D=async we=>{let de={...we,loaded:{}};for(let ve of[..."__STORYBOOK_TEST_LOADERS__"in be.global&&Array.isArray(be.global.__STORYBOOK_TEST_LOADERS__)?[be.global.__STORYBOOK_TEST_LOADERS__]:[],lt(d.loaders),lt(o.loaders),lt(r.loaders)]){let xe=await Promise.all(ve.map(xt=>xt(de))),Ue=Object.assign({},...xe);de={...de,loaded:{...de.loaded,...Ue}}}return de},q=we=>{let{passArgsFirst:de=!0}=we.parameters;return de?se(we.args,we):se(we)},{applyDecorators:U=ut,runStep:G}=d,z=[...lt(r==null?void 0:r.decorators),...lt(o==null?void 0:o.decorators),...lt(d==null?void 0:d.decorators)],se=(r==null?void 0:r.userStoryFn)||(r==null?void 0:r.render)||o.render||d.render;if(!se)throw new Error(`No render function available for storyId '${b}'`);let ce=X(U)(q,z),Pe=we=>ce(we),Se=(r==null?void 0:r.play)||o.play;return{...A,moduleExport:g,id:b,name:_,story:_,originalStoryFn:se,undecoratedStoryFn:q,unboundStoryFn:Pe,applyLoaders:D,playFunction:Se&&(async we=>{let de={...we,step:(ve,xe)=>G(ve,xe,de)};return Se(de)})}}function Ar(r,o,d){return{...pn(void 0,r,o),moduleExport:d}}function pn(r,o,d){let g=[...(r==null?void 0:r.tags)||o.tags||[],"story"],b=Re(d.parameters,o.parameters,r==null?void 0:r.parameters),{argTypesEnhancers:_=[],argsEnhancers:A=[]}=d,D=Re(d.argTypes,o.argTypes,r==null?void 0:r.argTypes);if(r){let Pe=(r==null?void 0:r.userStoryFn)||(r==null?void 0:r.render)||o.render||d.render,{passArgsFirst:Se=!0}=b;b.__isArgsStory=Se&&Pe&&Pe.length>0}let q={...d.args,...o.args,...r==null?void 0:r.args},U={componentId:o.id,title:o.title,kind:o.title,id:(r==null?void 0:r.id)||o.id,name:(r==null?void 0:r.name)||"__meta",story:(r==null?void 0:r.name)||"__meta",component:o.component,subcomponents:o.subcomponents,tags:g,parameters:b,initialArgs:q,argTypes:D};U.argTypes=_.reduce((Pe,Se)=>Se({...U,argTypes:Pe}),U.argTypes);let G={...q};U.initialArgs=A.reduce((Pe,Se)=>({...Pe,...Se({...U,initialArgs:Pe})}),G);let{name:z,story:se,...ce}=U;return ce}function Gr(r){var o;let{args:d}=r,g={...r,allArgs:void 0,argsByTarget:void 0};if((o=be.global.FEATURES)!=null&&o.argTypeTargetsV7){let A=Ye(r);g={...r,allArgs:r.args,argsByTarget:A,args:A[We]||{}}}let b=Object.entries(g.args).reduce((A,[D,q])=>{var U;if(!((U=g.argTypes[D])!=null&&U.mapping))return A[D]=q,A;let G=z=>z in g.argTypes[D].mapping?g.argTypes[D].mapping[z]:z;return A[D]=Array.isArray(q)?q.map(G):G(q),A},{}),_=Object.entries(b).reduce((A,[D,q])=>{let U=g.argTypes[D]||{};return(0,Le.includeConditionalArg)(U,b,g.globals)&&(A[D]=q),A},{});return{...g,unmappedArgs:d,args:_}}var Hr=c(Pn),Wn=ct,Tr=je,gn=(r,o,d)=>{let g=typeof r;switch(g){case"boolean":case"string":case"number":case"function":case"symbol":return{name:g}}return r?d.has(r)?(Tr.logger.warn(Wn.dedent` + `)};function ge(r,o,h){let{default:g,__namedExportsOrder:b,..._}=r,A=x(g,h,o);ue(A.parameters),ie(A);let D={meta:A,stories:{},moduleExports:r};return Object.keys(_).forEach(q=>{if((0,Ua.isExportStory)(q,A)){let U=Ur(q,_[q],A);ue(U.parameters),D.stories[U.id]=U}}),D}var be=Ne,Le=rr,ke=c(ua),Re=(...r)=>{let o={},h=r.filter(Boolean),g=h.reduce((b,_)=>(Object.entries(_).forEach(([A,D])=>{let q=b[A];Array.isArray(D)||typeof q>"u"?b[A]=D:(0,ke.default)(D)&&(0,ke.default)(q)?o[A]=!0:typeof D<"u"&&(b[A]=D)}),b),{});return Object.keys(o).forEach(b=>{let _=h.filter(Boolean).map(A=>A[b]).filter(A=>typeof A<"u");_.every(A=>(0,ke.default)(A))?g[b]=Re(..._):g[b]=_[_.length-1]}),g};function Ie(r,o,h){let g=h(r);return b=>o(g,b)}function qe({componentId:r,title:o,kind:h,id:g,name:b,story:_,parameters:A,initialArgs:D,argTypes:q,...U}={}){return U}function ut(r,o){let h={},g=_=>A=>{if(!h.value)throw new Error("Decorated function called without init");return h.value={...h.value,...qe(A)},_(h.value)},b=o.reduce((_,A)=>Ie(_,A,g),r);return _=>(h.value=_,b(_))}function Ot(r,o,h){let{moduleExport:g,id:b,name:_}=r||{},A=pn(r,o,h),D=async we=>{let he={...we,loaded:{}};for(let ve of[..."__STORYBOOK_TEST_LOADERS__"in be.global&&Array.isArray(be.global.__STORYBOOK_TEST_LOADERS__)?[be.global.__STORYBOOK_TEST_LOADERS__]:[],lt(h.loaders),lt(o.loaders),lt(r.loaders)]){let xe=await Promise.all(ve.map(xt=>xt(he))),Ue=Object.assign({},...xe);he={...he,loaded:{...he.loaded,...Ue}}}return he},q=we=>{let{passArgsFirst:he=!0}=we.parameters;return he?se(we.args,we):se(we)},{applyDecorators:U=ut,runStep:G}=h,z=[...lt(r==null?void 0:r.decorators),...lt(o==null?void 0:o.decorators),...lt(h==null?void 0:h.decorators)],se=(r==null?void 0:r.userStoryFn)||(r==null?void 0:r.render)||o.render||h.render;if(!se)throw new Error(`No render function available for storyId '${b}'`);let ce=X(U)(q,z),Pe=we=>ce(we),Se=(r==null?void 0:r.play)||o.play;return{...A,moduleExport:g,id:b,name:_,story:_,originalStoryFn:se,undecoratedStoryFn:q,unboundStoryFn:Pe,applyLoaders:D,playFunction:Se&&(async we=>{let he={...we,step:(ve,xe)=>G(ve,xe,he)};return Se(he)})}}function Ar(r,o,h){return{...pn(void 0,r,o),moduleExport:h}}function pn(r,o,h){let g=[...(r==null?void 0:r.tags)||o.tags||[],"story"],b=Re(h.parameters,o.parameters,r==null?void 0:r.parameters),{argTypesEnhancers:_=[],argsEnhancers:A=[]}=h,D=Re(h.argTypes,o.argTypes,r==null?void 0:r.argTypes);if(r){let Pe=(r==null?void 0:r.userStoryFn)||(r==null?void 0:r.render)||o.render||h.render,{passArgsFirst:Se=!0}=b;b.__isArgsStory=Se&&Pe&&Pe.length>0}let q={...h.args,...o.args,...r==null?void 0:r.args},U={componentId:o.id,title:o.title,kind:o.title,id:(r==null?void 0:r.id)||o.id,name:(r==null?void 0:r.name)||"__meta",story:(r==null?void 0:r.name)||"__meta",component:o.component,subcomponents:o.subcomponents,tags:g,parameters:b,initialArgs:q,argTypes:D};U.argTypes=_.reduce((Pe,Se)=>Se({...U,argTypes:Pe}),U.argTypes);let G={...q};U.initialArgs=A.reduce((Pe,Se)=>({...Pe,...Se({...U,initialArgs:Pe})}),G);let{name:z,story:se,...ce}=U;return ce}function Gr(r){var o;let{args:h}=r,g={...r,allArgs:void 0,argsByTarget:void 0};if((o=be.global.FEATURES)!=null&&o.argTypeTargetsV7){let A=Ye(r);g={...r,allArgs:r.args,argsByTarget:A,args:A[We]||{}}}let b=Object.entries(g.args).reduce((A,[D,q])=>{var U;if(!((U=g.argTypes[D])!=null&&U.mapping))return A[D]=q,A;let G=z=>z in g.argTypes[D].mapping?g.argTypes[D].mapping[z]:z;return A[D]=Array.isArray(q)?q.map(G):G(q),A},{}),_=Object.entries(b).reduce((A,[D,q])=>{let U=g.argTypes[D]||{};return(0,Le.includeConditionalArg)(U,b,g.globals)&&(A[D]=q),A},{});return{...g,unmappedArgs:h,args:_}}var Hr=c(Pn),Wn=ct,Tr=je,gn=(r,o,h)=>{let g=typeof r;switch(g){case"boolean":case"string":case"number":case"function":case"symbol":return{name:g}}return r?h.has(r)?(Tr.logger.warn(Wn.dedent` We've detected a cycle in arg '${o}'. Args should be JSON-serializable. Consider using the mapping feature or fully custom args: - Mapping: https://storybook.js.org/docs/react/writing-stories/args#mapping-to-complex-arg-values - Custom args: https://storybook.js.org/docs/react/essentials/controls#fully-custom-args - `),{name:"other",value:"cyclic object"}):(d.add(r),Array.isArray(r)?{name:"array",value:r.length>0?gn(r[0],o,new Set(d)):{name:"other",value:"unknown"}}:{name:"object",value:(0,Hr.default)(r,b=>gn(b,o,new Set(d)))}):{name:"object",value:{}}},Oe=r=>{let{id:o,argTypes:d={},initialArgs:g={}}=r,b=(0,Hr.default)(g,(A,D)=>({name:D,type:gn(A,`${o}.${D}`,new Set)})),_=(0,Hr.default)(d,(A,D)=>({name:D}));return Re(b,_,d)};Oe.secondPass=!0;var Me=c(Pn),yt=je,Lt=c(qh()),mt=(r,o)=>Array.isArray(o)?o.includes(r):r.match(o),cr=(r,o,d)=>!o&&!d?r:r&&(0,Lt.default)(r,(g,b)=>{let _=g.name||b;return(!o||mt(_,o))&&(!d||!mt(_,d))}),yn=(r,o,d)=>{let{type:g,options:b}=r;if(g){if(d.color&&d.color.test(o)){let _=g.name;if(_==="string")return{control:{type:"color"}};_!=="enum"&&yt.logger.warn(`Addon controls: Control of type color only supports string, received "${_}" instead`)}if(d.date&&d.date.test(o))return{control:{type:"date"}};switch(g.name){case"array":return{control:{type:"object"}};case"boolean":return{control:{type:"boolean"}};case"string":return{control:{type:"text"}};case"number":return{control:{type:"number"}};case"enum":{let{value:_}=g;return{control:{type:(_==null?void 0:_.length)<=5?"radio":"select"},options:_}}case"function":case"symbol":return null;default:return{control:{type:b?"select":"object"}}}}},fr=r=>{let{argTypes:o,parameters:{__isArgsStory:d,controls:{include:g=null,exclude:b=null,matchers:_={}}={}}}=r;if(!d)return o;let A=cr(o,g,b),D=(0,Me.default)(A,(q,U)=>(q==null?void 0:q.type)&&yn(q,U,_));return Re(D,A)};fr.secondPass=!0;function Xi({argTypes:r,globalTypes:o,argTypesEnhancers:d,decorators:g,loaders:b,..._}){return{...r&&{argTypes:ur(r)},...o&&{globalTypes:ur(o)},decorators:lt(g),loaders:lt(b),argTypesEnhancers:[...d||[],Oe,fr],..._}}var Fc=Ne;function Ga(r){return async(o,d,g)=>{await r.reduceRight((b,_)=>async()=>_(o,b,g),async()=>d(g))()}}function mn(r,o){return r.map(d=>{var g;return((g=d.default)==null?void 0:g[o])??d[o]}).filter(Boolean)}function Yn(r,o,d={}){return mn(r,o).reduce((g,b)=>d.reverseFileOrder?[...b,...g]:[...g,...b],[])}function Vn(r,o){return Object.assign({},...mn(r,o))}function zn(r,o){return mn(r,o).pop()}function Ha(r){var o;let d=Yn(r,"argTypesEnhancers"),g=mn(r,"runStep");return{parameters:Re(...mn(r,"parameters")),decorators:Yn(r,"decorators",{reverseFileOrder:!(((o=Fc.global.FEATURES)==null?void 0:o.legacyDecoratorFileOrder)??!1)}),args:Vn(r,"args"),argsEnhancers:Yn(r,"argsEnhancers"),argTypes:Vn(r,"argTypes"),argTypesEnhancers:[...d.filter(b=>!b.secondPass),...d.filter(b=>b.secondPass)],globals:Vn(r,"globals"),globalTypes:Vn(r,"globalTypes"),loaders:Yn(r,"loaders"),render:zn(r,"render"),renderToCanvas:zn(r,"renderToCanvas"),renderToDOM:zn(r,"renderToDOM"),applyDecorators:zn(r,"applyDecorators"),runStep:Ga(g)}}var $c=rr,Qi=Ha([]);function jc(r){let o=Array.isArray(r)?r:[r];Qi=Ha(o)}function kc(r,o,d=Qi,g={},b){var _;if(r===void 0)throw new Error("Expected a story but received undefined.");o.title=o.title??"ComposedStory";let A=x(o),D=b||r.storyName||((_=r.story)==null?void 0:_.name)||r.name||"unknown",q=Ur(D,r,A),U=Xi({...d,...g}),G=Ot(q,A,U),z=gt(d.globalTypes);return Object.assign(se=>{let ce={...G,hooks:new P,globals:z,args:{...G.initialArgs,...se}};return G.unboundStoryFn(Gr(ce))},{storyName:D,args:G.initialArgs,play:G.playFunction,parameters:G.parameters,id:G.id})}function Mc(r,o,d){let{default:g,__esModule:b,__namedExportsOrder:_,...A}=r;return Object.entries(A).reduce((D,[q,U])=>(0,$c.isExportStory)(q,g)?Object.assign(D,{[q]:d(U,g,o,q)}):D,{})}var Ji=1e3,qc=1e4,Uc=20,Zi=class{constructor(){this.getStoriesJsonData=()=>{let{storyIndex:r}=this;if(!r)throw new Error("getStoriesJsonData called before initialization");let o=this.getSetStoriesPayload(),d=["fileName","docsOnly","framework","__id","__isArgsStory"];return{v:3,stories:(0,Tt.default)(o.stories,g=>{let{importPath:b}=r.entries[g.id];return{...(0,He.default)(g,["id","name","title"]),importPath:b,kind:g.title,story:g.name,parameters:{...(0,He.default)(g.parameters,d),fileName:b}}})}},this.args=new wt,this.hooks={},this.processCSFFileWithCache=(0,Ut.default)(Ji)(ge),this.prepareMetaWithCache=(0,Ut.default)(Ji)(Ar),this.prepareStoryWithCache=(0,Ut.default)(qc)(Ot),this.initializationPromise=new Pt.SynchronousPromise(r=>{this.resolveInitializationPromise=r})}setProjectAnnotations(r){this.projectAnnotations=Xi(r);let{globals:o,globalTypes:d}=r;this.globals?this.globals.set({globals:o,globalTypes:d}):this.globals=new Or({globals:o,globalTypes:d})}initialize({storyIndex:r,importFn:o,cache:d=!1}){return this.storyIndex=new sr(r),this.importFn=o,this.resolveInitializationPromise(),d?this.cacheAllCSFFiles():Pt.SynchronousPromise.resolve()}async onStoriesChanged({importFn:r,storyIndex:o}){await this.initializationPromise,r&&(this.importFn=r),o&&(this.storyIndex.entries=o.entries),this.cachedCSFFiles&&await this.cacheAllCSFFiles()}async storyIdToEntry(r){return await this.initializationPromise,this.storyIndex.storyIdToEntry(r)}loadCSFFileByStoryId(r){if(!this.storyIndex||!this.importFn)throw new Error("loadCSFFileByStoryId called before initialization");let{importPath:o,title:d}=this.storyIndex.storyIdToEntry(r);return this.importFn(o).then(g=>this.processCSFFileWithCache(g,o,d))}loadAllCSFFiles({batchSize:r=Uc}={}){if(!this.storyIndex)throw new Error("loadAllCSFFiles called before initialization");let o=Object.entries(this.storyIndex.entries).map(([g,{importPath:b}])=>[b,g]),d=g=>{if(g.length===0)return Pt.SynchronousPromise.resolve([]);let b=g.slice(0,r).map(([_,A])=>this.loadCSFFileByStoryId(A).then(D=>({importPath:_,csfFile:D})));return Pt.SynchronousPromise.all(b).then(_=>d(g.slice(r)).then(A=>_.concat(A)))};return d(o).then(g=>g.reduce((b,{importPath:_,csfFile:A})=>(b[_]=A,b),{}))}cacheAllCSFFiles(){return this.initializationPromise.then(()=>this.loadAllCSFFiles().then(r=>{this.cachedCSFFiles=r}))}preparedMetaFromCSFFile({csfFile:r}){if(!this.projectAnnotations)throw new Error("storyFromCSFFile called before initialization");let o=r.meta;return this.prepareMetaWithCache(o,this.projectAnnotations,r.moduleExports.default)}async loadStory({storyId:r}){await this.initializationPromise;let o=await this.loadCSFFileByStoryId(r);return this.storyFromCSFFile({storyId:r,csfFile:o})}storyFromCSFFile({storyId:r,csfFile:o}){if(!this.projectAnnotations)throw new Error("storyFromCSFFile called before initialization");let d=o.stories[r];if(!d)throw new Error(`Didn't find '${r}' in CSF file, this is unexpected`);let g=o.meta,b=this.prepareStoryWithCache(d,g,this.projectAnnotations);return this.args.setInitial(b),this.hooks[b.id]=this.hooks[b.id]||new P,b}componentStoriesFromCSFFile({csfFile:r}){if(!this.storyIndex)throw new Error("componentStoriesFromCSFFile called before initialization");return Object.keys(this.storyIndex.entries).filter(o=>!!r.stories[o]).map(o=>this.storyFromCSFFile({storyId:o,csfFile:r}))}async loadEntry(r){let o=await this.storyIdToEntry(r),{importFn:d,storyIndex:g}=this;if(!g||!d)throw new Error("loadEntry called before initialization");let b=o.type==="docs"?o.storiesImports:[],[_,...A]=await Promise.all([d(o.importPath),...b.map(D=>{let q=g.importPathToEntry(D);return this.loadCSFFileByStoryId(q.id)})]);return{entryExports:_,csfFiles:A}}getStoryContext(r,{forceInitialArgs:o=!1}={}){if(!this.globals)throw new Error("getStoryContext called before initialization");return Gr({...r,args:o?r.initialArgs:this.args.get(r.id),globals:this.globals.get(),hooks:this.hooks[r.id]})}cleanupStory(r){this.hooks[r.id].clean()}extract(r={includeDocsOnly:!1}){if(!this.storyIndex)throw new Error("extract called before initialization");let{cachedCSFFiles:o}=this;if(!o)throw new Error("Cannot call extract() unless you call cacheAllCSFFiles() first.");return Object.entries(this.storyIndex.entries).reduce((d,[g,{type:b,importPath:_}])=>{if(b==="docs")return d;let A=o[_],D=this.storyFromCSFFile({storyId:g,csfFile:A});return!r.includeDocsOnly&&D.parameters.docsOnly||(d[g]=Object.entries(D).reduce((q,[U,G])=>U==="moduleExport"||typeof G=="function"?q:Array.isArray(G)?Object.assign(q,{[U]:G.slice().sort()}):Object.assign(q,{[U]:G}),{args:D.initialArgs})),d},{})}getSetStoriesPayload(){if(!this.globals)throw new Error("getSetStoriesPayload called before initialization");let r=this.extract({includeDocsOnly:!0}),o=Object.values(r).reduce((d,{title:g})=>(d[g]={},d),{});return{v:2,globals:this.globals.get(),globalParameters:{},kindParameters:o,stories:r}}getSetIndexPayload(){if(!this.storyIndex)throw new Error("getSetIndexPayload called before initialization");if(!this.cachedCSFFiles)throw new Error("Cannot call getSetIndexPayload() unless you call cacheAllCSFFiles() first");let{cachedCSFFiles:r}=this,o=this.extract({includeDocsOnly:!0});return{v:4,entries:Object.fromEntries(Object.entries(this.storyIndex.entries).map(([d,g])=>[d,o[d]?{...g,args:o[d].initialArgs,initialArgs:o[d].initialArgs,argTypes:o[d].argTypes,parameters:o[d].parameters}:{...g,parameters:this.preparedMetaFromCSFFile({csfFile:r[g.importPath]}).parameters}]))}}raw(){return Object.values(this.extract()).map(({id:r})=>this.fromId(r)).filter(Boolean)}fromId(r){if(!this.storyIndex)throw new Error("fromId called before initialization");if(!this.cachedCSFFiles)throw new Error("Cannot call fromId/raw() unless you call cacheAllCSFFiles() first.");let o;try{({importPath:o}=this.storyIndex.storyIdToEntry(r))}catch{return null}let d=this.cachedCSFFiles[o],g=this.storyFromCSFFile({storyId:r,csfFile:d});return{...g,storyFn:b=>{let _={...this.getStoryContext(g),viewMode:"story"};return g.unboundStoryFn({..._,...b})}}}};function Ba(r){return r.startsWith("\\\\?\\")?r:r.replace(/\\/g,"/")}var Gc=ct,Hc=je,Bc=r=>{let o=[...r],d=o[o.length-1],g=d.indexOf("."),b=g>0?d.substr(0,g):d;o[o.length-1]=b;let[_,...A]=o;return _===""&&(o=A),o},Wc=/^index$/i,Yc=r=>{let o;return r.filter((d,g)=>g===r.length-1&&(d===o||Wc.test(d))?!1:(o=d,!0))};function es(r){let o=new RegExp("/{1,}","g");return r.join("/").replace(o,"/")}var ts=(r,o,d)=>{let{directory:g,importPathMatcher:b,titlePrefix:_=""}=o||{};typeof r=="number"&&Hc.once.warn(Gc.dedent` + `),{name:"other",value:"cyclic object"}):(h.add(r),Array.isArray(r)?{name:"array",value:r.length>0?gn(r[0],o,new Set(h)):{name:"other",value:"unknown"}}:{name:"object",value:(0,Hr.default)(r,b=>gn(b,o,new Set(h)))}):{name:"object",value:{}}},Oe=r=>{let{id:o,argTypes:h={},initialArgs:g={}}=r,b=(0,Hr.default)(g,(A,D)=>({name:D,type:gn(A,`${o}.${D}`,new Set)})),_=(0,Hr.default)(h,(A,D)=>({name:D}));return Re(b,_,h)};Oe.secondPass=!0;var Me=c(Pn),yt=je,Lt=c(xd()),mt=(r,o)=>Array.isArray(o)?o.includes(r):r.match(o),cr=(r,o,h)=>!o&&!h?r:r&&(0,Lt.default)(r,(g,b)=>{let _=g.name||b;return(!o||mt(_,o))&&(!h||!mt(_,h))}),yn=(r,o,h)=>{let{type:g,options:b}=r;if(g){if(h.color&&h.color.test(o)){let _=g.name;if(_==="string")return{control:{type:"color"}};_!=="enum"&&yt.logger.warn(`Addon controls: Control of type color only supports string, received "${_}" instead`)}if(h.date&&h.date.test(o))return{control:{type:"date"}};switch(g.name){case"array":return{control:{type:"object"}};case"boolean":return{control:{type:"boolean"}};case"string":return{control:{type:"text"}};case"number":return{control:{type:"number"}};case"enum":{let{value:_}=g;return{control:{type:(_==null?void 0:_.length)<=5?"radio":"select"},options:_}}case"function":case"symbol":return null;default:return{control:{type:b?"select":"object"}}}}},fr=r=>{let{argTypes:o,parameters:{__isArgsStory:h,controls:{include:g=null,exclude:b=null,matchers:_={}}={}}}=r;if(!h)return o;let A=cr(o,g,b),D=(0,Me.default)(A,(q,U)=>(q==null?void 0:q.type)&&yn(q,U,_));return Re(D,A)};fr.secondPass=!0;function Bi({argTypes:r,globalTypes:o,argTypesEnhancers:h,decorators:g,loaders:b,..._}){return{...r&&{argTypes:ur(r)},...o&&{globalTypes:ur(o)},decorators:lt(g),loaders:lt(b),argTypesEnhancers:[...h||[],Oe,fr],..._}}var Rc=Ne;function Ga(r){return async(o,h,g)=>{await r.reduceRight((b,_)=>async()=>_(o,b,g),async()=>h(g))()}}function mn(r,o){return r.map(h=>{var g;return((g=h.default)==null?void 0:g[o])??h[o]}).filter(Boolean)}function Yn(r,o,h={}){return mn(r,o).reduce((g,b)=>h.reverseFileOrder?[...b,...g]:[...g,...b],[])}function Vn(r,o){return Object.assign({},...mn(r,o))}function zn(r,o){return mn(r,o).pop()}function Ha(r){var o;let h=Yn(r,"argTypesEnhancers"),g=mn(r,"runStep");return{parameters:Re(...mn(r,"parameters")),decorators:Yn(r,"decorators",{reverseFileOrder:!(((o=Rc.global.FEATURES)==null?void 0:o.legacyDecoratorFileOrder)??!1)}),args:Vn(r,"args"),argsEnhancers:Yn(r,"argsEnhancers"),argTypes:Vn(r,"argTypes"),argTypesEnhancers:[...h.filter(b=>!b.secondPass),...h.filter(b=>b.secondPass)],globals:Vn(r,"globals"),globalTypes:Vn(r,"globalTypes"),loaders:Yn(r,"loaders"),render:zn(r,"render"),renderToCanvas:zn(r,"renderToCanvas"),renderToDOM:zn(r,"renderToDOM"),applyDecorators:zn(r,"applyDecorators"),runStep:Ga(g)}}var Ac=rr,Wi=Ha([]);function Tc(r){let o=Array.isArray(r)?r:[r];Wi=Ha(o)}function Pc(r,o,h=Wi,g={},b){var _;if(r===void 0)throw new Error("Expected a story but received undefined.");o.title=o.title??"ComposedStory";let A=x(o),D=b||r.storyName||((_=r.story)==null?void 0:_.name)||r.name||"unknown",q=Ur(D,r,A),U=Bi({...h,...g}),G=Ot(q,A,U),z=gt(h.globalTypes);return Object.assign(se=>{let ce={...G,hooks:new P,globals:z,args:{...G.initialArgs,...se}};return G.unboundStoryFn(Gr(ce))},{storyName:D,args:G.initialArgs,play:G.playFunction,parameters:G.parameters,id:G.id})}function Cc(r,o,h){let{default:g,__esModule:b,__namedExportsOrder:_,...A}=r;return Object.entries(A).reduce((D,[q,U])=>(0,Ac.isExportStory)(q,g)?Object.assign(D,{[q]:h(U,g,o,q)}):D,{})}var Yi=1e3,xc=1e4,Ic=20,Vi=class{constructor(){this.getStoriesJsonData=()=>{let{storyIndex:r}=this;if(!r)throw new Error("getStoriesJsonData called before initialization");let o=this.getSetStoriesPayload(),h=["fileName","docsOnly","framework","__id","__isArgsStory"];return{v:3,stories:(0,Tt.default)(o.stories,g=>{let{importPath:b}=r.entries[g.id];return{...(0,He.default)(g,["id","name","title"]),importPath:b,kind:g.title,story:g.name,parameters:{...(0,He.default)(g.parameters,h),fileName:b}}})}},this.args=new wt,this.hooks={},this.processCSFFileWithCache=(0,Ut.default)(Yi)(ge),this.prepareMetaWithCache=(0,Ut.default)(Yi)(Ar),this.prepareStoryWithCache=(0,Ut.default)(xc)(Ot),this.initializationPromise=new Pt.SynchronousPromise(r=>{this.resolveInitializationPromise=r})}setProjectAnnotations(r){this.projectAnnotations=Bi(r);let{globals:o,globalTypes:h}=r;this.globals?this.globals.set({globals:o,globalTypes:h}):this.globals=new Or({globals:o,globalTypes:h})}initialize({storyIndex:r,importFn:o,cache:h=!1}){return this.storyIndex=new sr(r),this.importFn=o,this.resolveInitializationPromise(),h?this.cacheAllCSFFiles():Pt.SynchronousPromise.resolve()}async onStoriesChanged({importFn:r,storyIndex:o}){await this.initializationPromise,r&&(this.importFn=r),o&&(this.storyIndex.entries=o.entries),this.cachedCSFFiles&&await this.cacheAllCSFFiles()}async storyIdToEntry(r){return await this.initializationPromise,this.storyIndex.storyIdToEntry(r)}loadCSFFileByStoryId(r){if(!this.storyIndex||!this.importFn)throw new Error("loadCSFFileByStoryId called before initialization");let{importPath:o,title:h}=this.storyIndex.storyIdToEntry(r);return this.importFn(o).then(g=>this.processCSFFileWithCache(g,o,h))}loadAllCSFFiles({batchSize:r=Ic}={}){if(!this.storyIndex)throw new Error("loadAllCSFFiles called before initialization");let o=Object.entries(this.storyIndex.entries).map(([g,{importPath:b}])=>[b,g]),h=g=>{if(g.length===0)return Pt.SynchronousPromise.resolve([]);let b=g.slice(0,r).map(([_,A])=>this.loadCSFFileByStoryId(A).then(D=>({importPath:_,csfFile:D})));return Pt.SynchronousPromise.all(b).then(_=>h(g.slice(r)).then(A=>_.concat(A)))};return h(o).then(g=>g.reduce((b,{importPath:_,csfFile:A})=>(b[_]=A,b),{}))}cacheAllCSFFiles(){return this.initializationPromise.then(()=>this.loadAllCSFFiles().then(r=>{this.cachedCSFFiles=r}))}preparedMetaFromCSFFile({csfFile:r}){if(!this.projectAnnotations)throw new Error("storyFromCSFFile called before initialization");let o=r.meta;return this.prepareMetaWithCache(o,this.projectAnnotations,r.moduleExports.default)}async loadStory({storyId:r}){await this.initializationPromise;let o=await this.loadCSFFileByStoryId(r);return this.storyFromCSFFile({storyId:r,csfFile:o})}storyFromCSFFile({storyId:r,csfFile:o}){if(!this.projectAnnotations)throw new Error("storyFromCSFFile called before initialization");let h=o.stories[r];if(!h)throw new Error(`Didn't find '${r}' in CSF file, this is unexpected`);let g=o.meta,b=this.prepareStoryWithCache(h,g,this.projectAnnotations);return this.args.setInitial(b),this.hooks[b.id]=this.hooks[b.id]||new P,b}componentStoriesFromCSFFile({csfFile:r}){if(!this.storyIndex)throw new Error("componentStoriesFromCSFFile called before initialization");return Object.keys(this.storyIndex.entries).filter(o=>!!r.stories[o]).map(o=>this.storyFromCSFFile({storyId:o,csfFile:r}))}async loadEntry(r){let o=await this.storyIdToEntry(r),{importFn:h,storyIndex:g}=this;if(!g||!h)throw new Error("loadEntry called before initialization");let b=o.type==="docs"?o.storiesImports:[],[_,...A]=await Promise.all([h(o.importPath),...b.map(D=>{let q=g.importPathToEntry(D);return this.loadCSFFileByStoryId(q.id)})]);return{entryExports:_,csfFiles:A}}getStoryContext(r,{forceInitialArgs:o=!1}={}){if(!this.globals)throw new Error("getStoryContext called before initialization");return Gr({...r,args:o?r.initialArgs:this.args.get(r.id),globals:this.globals.get(),hooks:this.hooks[r.id]})}cleanupStory(r){this.hooks[r.id].clean()}extract(r={includeDocsOnly:!1}){if(!this.storyIndex)throw new Error("extract called before initialization");let{cachedCSFFiles:o}=this;if(!o)throw new Error("Cannot call extract() unless you call cacheAllCSFFiles() first.");return Object.entries(this.storyIndex.entries).reduce((h,[g,{type:b,importPath:_}])=>{if(b==="docs")return h;let A=o[_],D=this.storyFromCSFFile({storyId:g,csfFile:A});return!r.includeDocsOnly&&D.parameters.docsOnly||(h[g]=Object.entries(D).reduce((q,[U,G])=>U==="moduleExport"||typeof G=="function"?q:Array.isArray(G)?Object.assign(q,{[U]:G.slice().sort()}):Object.assign(q,{[U]:G}),{args:D.initialArgs})),h},{})}getSetStoriesPayload(){if(!this.globals)throw new Error("getSetStoriesPayload called before initialization");let r=this.extract({includeDocsOnly:!0}),o=Object.values(r).reduce((h,{title:g})=>(h[g]={},h),{});return{v:2,globals:this.globals.get(),globalParameters:{},kindParameters:o,stories:r}}getSetIndexPayload(){if(!this.storyIndex)throw new Error("getSetIndexPayload called before initialization");if(!this.cachedCSFFiles)throw new Error("Cannot call getSetIndexPayload() unless you call cacheAllCSFFiles() first");let{cachedCSFFiles:r}=this,o=this.extract({includeDocsOnly:!0});return{v:4,entries:Object.fromEntries(Object.entries(this.storyIndex.entries).map(([h,g])=>[h,o[h]?{...g,args:o[h].initialArgs,initialArgs:o[h].initialArgs,argTypes:o[h].argTypes,parameters:o[h].parameters}:{...g,parameters:this.preparedMetaFromCSFFile({csfFile:r[g.importPath]}).parameters}]))}}raw(){return Object.values(this.extract()).map(({id:r})=>this.fromId(r)).filter(Boolean)}fromId(r){if(!this.storyIndex)throw new Error("fromId called before initialization");if(!this.cachedCSFFiles)throw new Error("Cannot call fromId/raw() unless you call cacheAllCSFFiles() first.");let o;try{({importPath:o}=this.storyIndex.storyIdToEntry(r))}catch{return null}let h=this.cachedCSFFiles[o],g=this.storyFromCSFFile({storyId:r,csfFile:h});return{...g,storyFn:b=>{let _={...this.getStoryContext(g),viewMode:"story"};return g.unboundStoryFn({..._,...b})}}}};function Ba(r){return r.startsWith("\\\\?\\")?r:r.replace(/\\/g,"/")}var Nc=ct,Dc=je,Lc=r=>{let o=[...r],h=o[o.length-1],g=h.indexOf("."),b=g>0?h.substr(0,g):h;o[o.length-1]=b;let[_,...A]=o;return _===""&&(o=A),o},Fc=/^index$/i,$c=r=>{let o;return r.filter((h,g)=>g===r.length-1&&(h===o||Fc.test(h))?!1:(o=h,!0))};function zi(r){let o=new RegExp("/{1,}","g");return r.join("/").replace(o,"/")}var Ki=(r,o,h)=>{let{directory:g,importPathMatcher:b,titlePrefix:_=""}=o||{};typeof r=="number"&&Dc.once.warn(Nc.dedent` CSF Auto-title received a numeric fileName. This typically happens when webpack is mis-configured in production mode. To force webpack to produce filenames, set optimization.moduleIds = "named" in your webpack config. - `);let A=Ba(String(r));if(b.exec(A)){if(!d){let D=A.replace(g,""),q=Ba(es([_,D])).split("/");return q=Bc(q),q=Yc(q),q.join("/")}return _?Ba(es([_,d])):d}},rs=(r,o,d)=>{for(let g=0;g(o,d)=>{if(o.title===d.title&&!r.includeNames)return 0;let g=r.method||"configure",b=r.order||[],_=o.title.trim().split(ns),A=d.title.trim().split(ns);r.includeNames&&(_.push(o.name),A.push(d.name));let D=0;for(;_[D]||A[D];){if(!_[D])return-1;if(!A[D])return 1;let q=_[D],U=A[D];if(q!==U){let z=b.indexOf(q),se=b.indexOf(U),ce=b.indexOf("*");return z!==-1||se!==-1?(z===-1&&(ce!==-1?z=ce:z=b.length),se===-1&&(ce!==-1?se=ce:se=b.length),z-se):g==="configure"?0:q.localeCompare(U,r.locales?r.locales:void 0,{numeric:!0,sensitivity:"accent"})}let G=b.indexOf(q);G===-1&&(G=b.indexOf("*")),b=G!==-1&&Array.isArray(b[G+1])?b[G+1]:[],D+=1}return 0},as=(r,o,d)=>{if(o){let g;typeof o=="function"?g=o:g=zc(o),r.sort(g)}else r.sort((g,b)=>d.indexOf(g.importPath)-d.indexOf(b.importPath));return r},Kc=(r,o,d)=>{try{return as(r,o,d)}catch(g){throw new Error(Vc.dedent` + `);let A=Ba(String(r));if(b.exec(A)){if(!h){let D=A.replace(g,""),q=Ba(zi([_,D])).split("/");return q=Lc(q),q=$c(q),q.join("/")}return _?Ba(zi([_,h])):h}},Xi=(r,o,h)=>{for(let g=0;g(o,h)=>{if(o.title===h.title&&!r.includeNames)return 0;let g=r.method||"configure",b=r.order||[],_=o.title.trim().split(Qi),A=h.title.trim().split(Qi);r.includeNames&&(_.push(o.name),A.push(h.name));let D=0;for(;_[D]||A[D];){if(!_[D])return-1;if(!A[D])return 1;let q=_[D],U=A[D];if(q!==U){let z=b.indexOf(q),se=b.indexOf(U),ce=b.indexOf("*");return z!==-1||se!==-1?(z===-1&&(ce!==-1?z=ce:z=b.length),se===-1&&(ce!==-1?se=ce:se=b.length),z-se):g==="configure"?0:q.localeCompare(U,r.locales?r.locales:void 0,{numeric:!0,sensitivity:"accent"})}let G=b.indexOf(q);G===-1&&(G=b.indexOf("*")),b=G!==-1&&Array.isArray(b[G+1])?b[G+1]:[],D+=1}return 0},Ji=(r,o,h)=>{if(o){let g;typeof o=="function"?g=o:g=kc(o),r.sort(g)}else r.sort((g,b)=>h.indexOf(g.importPath)-h.indexOf(b.importPath));return r},Mc=(r,o,h)=>{try{return Ji(r,o,h)}catch(g){throw new Error(jc.dedent` Error sorting stories with sort parameter ${o}: > ${g.message} @@ -67,18 +67,18 @@ See https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#hoisted-csf- Are you using a V6-style sort function in V7 mode? More info: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#v7-style-story-sort - `)}},os=r=>{let{id:o,title:d,name:g,parameters:b,type:_}=r;return{id:o,title:d,name:g,importPath:b.fileName,type:_}},Xc=(r,o,d)=>{if(o&&typeof o=="function")return r.sort(o),r.map(b=>os(b[1]));let g=r.map(b=>os(b[1]));return as(g,o,d)},is=ct,vn=Ne,ss=Xo(),Gt=Qe,Wa=je,Qc=je,Kn=Qe,Xn=new Error("prepareAborted"),{AbortController:ls}=globalThis;function Jc(r){try{let{name:o="Error",message:d=String(r),stack:g}=r;return{name:o,message:d,stack:g}}catch{return{name:"Error",message:String(r)}}}var us=class{constructor(r,o,d,g,b,_,A={autoplay:!0,forceInitialArgs:!1},D){this.channel=r,this.store=o,this.renderToScreen=d,this.callbacks=g,this.id=b,this.viewMode=_,this.renderOptions=A,this.type="story",this.notYetRendered=!0,this.disableKeyListeners=!1,this.teardownRender=()=>{},this.torndown=!1,this.abortController=new ls,D&&(this.story=D,this.phase="preparing")}async runPhase(r,o,d){this.phase=o,this.channel.emit(Kn.STORY_RENDER_PHASE_CHANGED,{newPhase:this.phase,storyId:this.id}),d&&await d(),r.aborted&&(this.phase="aborted",this.channel.emit(Kn.STORY_RENDER_PHASE_CHANGED,{newPhase:this.phase,storyId:this.id}))}async prepare(){if(await this.runPhase(this.abortController.signal,"preparing",async()=>{this.story=await this.store.loadStory({storyId:this.id})}),this.abortController.signal.aborted)throw this.store.cleanupStory(this.story),Xn}isEqual(r){return!!(this.id===r.id&&this.story&&this.story===r.story)}isPreparing(){return["preparing"].includes(this.phase)}isPending(){return["rendering","playing"].includes(this.phase)}async renderToElement(r){return this.canvasElement=r,this.render({initial:!0,forceRemount:!0})}storyContext(){if(!this.story)throw new Error("Cannot call storyContext before preparing");let{forceInitialArgs:r}=this.renderOptions;return this.store.getStoryContext(this.story,{forceInitialArgs:r})}async render({initial:r=!1,forceRemount:o=!1}={}){let{canvasElement:d}=this;if(!this.story)throw new Error("cannot render when not prepared");if(!d)throw new Error("cannot render when canvasElement is unset");let{id:g,componentId:b,title:_,name:A,tags:D,applyLoaders:q,unboundStoryFn:U,playFunction:G}=this.story;o&&!r&&(this.cancelRender(),this.abortController=new ls);let z=this.abortController.signal;try{let se;if(await this.runPhase(z,"loading",async()=>{se=await q({...this.storyContext(),viewMode:this.viewMode})}),z.aborted)return;let ce={...se,...this.storyContext(),abortSignal:z,canvasElement:d},Pe={componentId:b,title:_,kind:_,id:g,name:A,story:A,tags:D,...this.callbacks,showError:Se=>(this.phase="errored",this.callbacks.showError(Se)),showException:Se=>(this.phase="errored",this.callbacks.showException(Se)),forceRemount:o||this.notYetRendered,storyContext:ce,storyFn:()=>U(ce),unboundStoryFn:U};if(await this.runPhase(z,"rendering",async()=>{let Se=await this.renderToScreen(Pe,d);this.teardownRender=Se||(()=>{})}),this.notYetRendered=!1,z.aborted)return;if(this.renderOptions.autoplay&&o&&G&&this.phase!=="errored"){this.disableKeyListeners=!0;try{await this.runPhase(z,"playing",async()=>{await G(Pe.storyContext)}),await this.runPhase(z,"played")}catch(Se){if(Qc.logger.error(Se),await this.runPhase(z,"errored",async()=>{this.channel.emit(Kn.PLAY_FUNCTION_THREW_EXCEPTION,Jc(Se))}),this.story.parameters.throwPlayFunctionExceptions!==!1)throw Se}if(this.disableKeyListeners=!1,z.aborted)return}await this.runPhase(z,"completed",async()=>this.channel.emit(Kn.STORY_RENDERED,g))}catch(se){this.phase="errored",this.callbacks.showException(se)}}async rerender(){return this.render()}async remount(){return this.render({forceRemount:!0})}cancelRender(){var r;(r=this.abortController)==null||r.abort()}async teardown(){this.torndown=!0,this.cancelRender(),this.story&&this.store.cleanupStory(this.story);for(let r=0;r<3;r+=1){if(!this.isPending()){await this.teardownRender();return}await new Promise(o=>setTimeout(o,0))}window.location.reload(),await new Promise(()=>{})}},{fetch:Zc}=vn.global,ef="./index.json",cs=class{constructor(r=W.getChannel()){this.channel=r,this.storyRenders=[];var o;(o=vn.global.FEATURES)!=null&&o.storyStoreV7&&W.hasServerChannel()&&(this.serverChannel=W.getServerChannel()),this.storyStore=new Zi}initialize({getStoryIndex:r,importFn:o,getProjectAnnotations:d}){return this.getStoryIndex=r,this.importFn=o,this.setupListeners(),this.getProjectAnnotationsOrRenderError(d).then(g=>this.initializeWithProjectAnnotations(g))}setupListeners(){this.channel.on(Gt.STORY_INDEX_INVALIDATED,this.onStoryIndexChanged.bind(this)),this.channel.on(Gt.UPDATE_GLOBALS,this.onUpdateGlobals.bind(this)),this.channel.on(Gt.UPDATE_STORY_ARGS,this.onUpdateArgs.bind(this)),this.channel.on(Gt.RESET_STORY_ARGS,this.onResetArgs.bind(this)),this.channel.on(Gt.FORCE_RE_RENDER,this.onForceReRender.bind(this)),this.channel.on(Gt.FORCE_REMOUNT,this.onForceRemount.bind(this))}getProjectAnnotationsOrRenderError(r){return ss.SynchronousPromise.resolve().then(r).then(o=>{if(o.renderToDOM&&(0,Wa.deprecate)("`renderToDOM` is deprecated, please rename to `renderToCanvas`"),this.renderToCanvas=o.renderToCanvas||o.renderToDOM,!this.renderToCanvas)throw new Error(is.dedent` + `)}},Zi=r=>{let{id:o,title:h,name:g,parameters:b,type:_}=r;return{id:o,title:h,name:g,importPath:b.fileName,type:_}},qc=(r,o,h)=>{if(o&&typeof o=="function")return r.sort(o),r.map(b=>Zi(b[1]));let g=r.map(b=>Zi(b[1]));return Ji(g,o,h)},es=ct,vn=Ne,ts=Bo(),Gt=Qe,Wa=je,Uc=je,Kn=Qe,Xn=new Error("prepareAborted"),{AbortController:rs}=globalThis;function Gc(r){try{let{name:o="Error",message:h=String(r),stack:g}=r;return{name:o,message:h,stack:g}}catch{return{name:"Error",message:String(r)}}}var ns=class{constructor(r,o,h,g,b,_,A={autoplay:!0,forceInitialArgs:!1},D){this.channel=r,this.store=o,this.renderToScreen=h,this.callbacks=g,this.id=b,this.viewMode=_,this.renderOptions=A,this.type="story",this.notYetRendered=!0,this.disableKeyListeners=!1,this.teardownRender=()=>{},this.torndown=!1,this.abortController=new rs,D&&(this.story=D,this.phase="preparing")}async runPhase(r,o,h){this.phase=o,this.channel.emit(Kn.STORY_RENDER_PHASE_CHANGED,{newPhase:this.phase,storyId:this.id}),h&&await h(),r.aborted&&(this.phase="aborted",this.channel.emit(Kn.STORY_RENDER_PHASE_CHANGED,{newPhase:this.phase,storyId:this.id}))}async prepare(){if(await this.runPhase(this.abortController.signal,"preparing",async()=>{this.story=await this.store.loadStory({storyId:this.id})}),this.abortController.signal.aborted)throw this.store.cleanupStory(this.story),Xn}isEqual(r){return!!(this.id===r.id&&this.story&&this.story===r.story)}isPreparing(){return["preparing"].includes(this.phase)}isPending(){return["rendering","playing"].includes(this.phase)}async renderToElement(r){return this.canvasElement=r,this.render({initial:!0,forceRemount:!0})}storyContext(){if(!this.story)throw new Error("Cannot call storyContext before preparing");let{forceInitialArgs:r}=this.renderOptions;return this.store.getStoryContext(this.story,{forceInitialArgs:r})}async render({initial:r=!1,forceRemount:o=!1}={}){let{canvasElement:h}=this;if(!this.story)throw new Error("cannot render when not prepared");if(!h)throw new Error("cannot render when canvasElement is unset");let{id:g,componentId:b,title:_,name:A,tags:D,applyLoaders:q,unboundStoryFn:U,playFunction:G}=this.story;o&&!r&&(this.cancelRender(),this.abortController=new rs);let z=this.abortController.signal;try{let se;if(await this.runPhase(z,"loading",async()=>{se=await q({...this.storyContext(),viewMode:this.viewMode})}),z.aborted)return;let ce={...se,...this.storyContext(),abortSignal:z,canvasElement:h},Pe={componentId:b,title:_,kind:_,id:g,name:A,story:A,tags:D,...this.callbacks,showError:Se=>(this.phase="errored",this.callbacks.showError(Se)),showException:Se=>(this.phase="errored",this.callbacks.showException(Se)),forceRemount:o||this.notYetRendered,storyContext:ce,storyFn:()=>U(ce),unboundStoryFn:U};if(await this.runPhase(z,"rendering",async()=>{let Se=await this.renderToScreen(Pe,h);this.teardownRender=Se||(()=>{})}),this.notYetRendered=!1,z.aborted)return;if(this.renderOptions.autoplay&&o&&G&&this.phase!=="errored"){this.disableKeyListeners=!0;try{await this.runPhase(z,"playing",async()=>{await G(Pe.storyContext)}),await this.runPhase(z,"played")}catch(Se){if(Uc.logger.error(Se),await this.runPhase(z,"errored",async()=>{this.channel.emit(Kn.PLAY_FUNCTION_THREW_EXCEPTION,Gc(Se))}),this.story.parameters.throwPlayFunctionExceptions!==!1)throw Se}if(this.disableKeyListeners=!1,z.aborted)return}await this.runPhase(z,"completed",async()=>this.channel.emit(Kn.STORY_RENDERED,g))}catch(se){this.phase="errored",this.callbacks.showException(se)}}async rerender(){return this.render()}async remount(){return this.render({forceRemount:!0})}cancelRender(){var r;(r=this.abortController)==null||r.abort()}async teardown(){this.torndown=!0,this.cancelRender(),this.story&&this.store.cleanupStory(this.story);for(let r=0;r<3;r+=1){if(!this.isPending()){await this.teardownRender();return}await new Promise(o=>setTimeout(o,0))}window.location.reload(),await new Promise(()=>{})}},{fetch:Hc}=vn.global,Bc="./index.json",as=class{constructor(r=W.getChannel()){this.channel=r,this.storyRenders=[];var o;(o=vn.global.FEATURES)!=null&&o.storyStoreV7&&W.hasServerChannel()&&(this.serverChannel=W.getServerChannel()),this.storyStore=new Vi}initialize({getStoryIndex:r,importFn:o,getProjectAnnotations:h}){return this.getStoryIndex=r,this.importFn=o,this.setupListeners(),this.getProjectAnnotationsOrRenderError(h).then(g=>this.initializeWithProjectAnnotations(g))}setupListeners(){this.channel.on(Gt.STORY_INDEX_INVALIDATED,this.onStoryIndexChanged.bind(this)),this.channel.on(Gt.UPDATE_GLOBALS,this.onUpdateGlobals.bind(this)),this.channel.on(Gt.UPDATE_STORY_ARGS,this.onUpdateArgs.bind(this)),this.channel.on(Gt.RESET_STORY_ARGS,this.onResetArgs.bind(this)),this.channel.on(Gt.FORCE_RE_RENDER,this.onForceReRender.bind(this)),this.channel.on(Gt.FORCE_REMOUNT,this.onForceRemount.bind(this))}getProjectAnnotationsOrRenderError(r){return ts.SynchronousPromise.resolve().then(r).then(o=>{if(o.renderToDOM&&(0,Wa.deprecate)("`renderToDOM` is deprecated, please rename to `renderToCanvas`"),this.renderToCanvas=o.renderToCanvas||o.renderToDOM,!this.renderToCanvas)throw new Error(es.dedent` Expected your framework's preset to export a \`renderToCanvas\` field. Perhaps it needs to be upgraded for Storybook 6.4? More info: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#mainjs-framework-field - `);return o}).catch(o=>{throw this.renderPreviewEntryError("Error reading preview.js:",o),o})}initializeWithProjectAnnotations(r){var o;this.storyStore.setProjectAnnotations(r),this.setInitialGlobals();let d;if((o=vn.global.FEATURES)!=null&&o.storyStoreV7)d=this.getStoryIndexFromServer();else{if(!this.getStoryIndex)throw new Error("No `getStoryIndex` passed defined in v6 mode");d=ss.SynchronousPromise.resolve().then(this.getStoryIndex)}return d.then(g=>this.initializeWithStoryIndex(g)).catch(g=>{throw this.renderPreviewEntryError("Error loading story index:",g),g})}async setInitialGlobals(){this.emitGlobals()}emitGlobals(){if(!this.storyStore.globals||!this.storyStore.projectAnnotations)throw new Error("Cannot emit before initialization");let r={globals:this.storyStore.globals.get()||{},globalTypes:this.storyStore.projectAnnotations.globalTypes||{}};this.channel.emit(Gt.SET_GLOBALS,r)}async getStoryIndexFromServer(){let r=await Zc(ef);if(r.status===200)return r.json();throw new Error(await r.text())}initializeWithStoryIndex(r){var o;if(!this.importFn)throw new Error("Cannot call initializeWithStoryIndex before initialization");return this.storyStore.initialize({storyIndex:r,importFn:this.importFn,cache:!((o=vn.global.FEATURES)!=null&&o.storyStoreV7)})}async onGetProjectAnnotationsChanged({getProjectAnnotations:r}){delete this.previewEntryError;let o=await this.getProjectAnnotationsOrRenderError(r);if(!this.storyStore.projectAnnotations){await this.initializeWithProjectAnnotations(o);return}await this.storyStore.setProjectAnnotations(o),this.emitGlobals()}async onStoryIndexChanged(){if(delete this.previewEntryError,!!this.storyStore.projectAnnotations)try{let r=await this.getStoryIndexFromServer();this.storyStore.storyIndex||await this.initializeWithStoryIndex(r),await this.onStoriesChanged({storyIndex:r})}catch(r){throw this.renderPreviewEntryError("Error loading story index:",r),r}}async onStoriesChanged({importFn:r,storyIndex:o}){await this.storyStore.onStoriesChanged({importFn:r,storyIndex:o})}async onUpdateGlobals({globals:r}){if(!this.storyStore.globals)throw new Error("Cannot call onUpdateGlobals before initialization");this.storyStore.globals.update(r),await Promise.all(this.storyRenders.map(o=>o.rerender())),this.channel.emit(Gt.GLOBALS_UPDATED,{globals:this.storyStore.globals.get(),initialGlobals:this.storyStore.globals.initialGlobals})}async onUpdateArgs({storyId:r,updatedArgs:o}){this.storyStore.args.update(r,o),await Promise.all(this.storyRenders.filter(d=>d.id===r&&!d.renderOptions.forceInitialArgs).map(d=>d.rerender())),this.channel.emit(Gt.STORY_ARGS_UPDATED,{storyId:r,args:this.storyStore.args.get(r)})}async onResetArgs({storyId:r,argNames:o}){let d=this.storyRenders.find(_=>_.id===r),g=(d==null?void 0:d.story)||await this.storyStore.loadStory({storyId:r}),b=(o||[...new Set([...Object.keys(g.initialArgs),...Object.keys(this.storyStore.args.get(r))])]).reduce((_,A)=>(_[A]=g.initialArgs[A],_),{});await this.onUpdateArgs({storyId:r,updatedArgs:b})}async onForceReRender(){await Promise.all(this.storyRenders.map(r=>r.rerender()))}async onForceRemount({storyId:r}){await Promise.all(this.storyRenders.filter(o=>o.id===r).map(o=>o.remount()))}renderStoryToElement(r,o,d,g){if(!this.renderToCanvas)throw new Error("Cannot call renderStoryToElement before initialization");let b=new us(this.channel,this.storyStore,this.renderToCanvas,d,r.id,"docs",g,r);return b.renderToElement(o),this.storyRenders.push(b),async()=>{await this.teardownRender(b)}}async teardownRender(r,{viewModeChanged:o}={}){var d;this.storyRenders=this.storyRenders.filter(g=>g!==r),await((d=r==null?void 0:r.teardown)==null?void 0:d.call(r,{viewModeChanged:o}))}async extract(r){var o;if(this.previewEntryError)throw this.previewEntryError;if(!this.storyStore.projectAnnotations)throw new Error(is.dedent`Failed to initialize Storybook. + `);return o}).catch(o=>{throw this.renderPreviewEntryError("Error reading preview.js:",o),o})}initializeWithProjectAnnotations(r){var o;this.storyStore.setProjectAnnotations(r),this.setInitialGlobals();let h;if((o=vn.global.FEATURES)!=null&&o.storyStoreV7)h=this.getStoryIndexFromServer();else{if(!this.getStoryIndex)throw new Error("No `getStoryIndex` passed defined in v6 mode");h=ts.SynchronousPromise.resolve().then(this.getStoryIndex)}return h.then(g=>this.initializeWithStoryIndex(g)).catch(g=>{throw this.renderPreviewEntryError("Error loading story index:",g),g})}async setInitialGlobals(){this.emitGlobals()}emitGlobals(){if(!this.storyStore.globals||!this.storyStore.projectAnnotations)throw new Error("Cannot emit before initialization");let r={globals:this.storyStore.globals.get()||{},globalTypes:this.storyStore.projectAnnotations.globalTypes||{}};this.channel.emit(Gt.SET_GLOBALS,r)}async getStoryIndexFromServer(){let r=await Hc(Bc);if(r.status===200)return r.json();throw new Error(await r.text())}initializeWithStoryIndex(r){var o;if(!this.importFn)throw new Error("Cannot call initializeWithStoryIndex before initialization");return this.storyStore.initialize({storyIndex:r,importFn:this.importFn,cache:!((o=vn.global.FEATURES)!=null&&o.storyStoreV7)})}async onGetProjectAnnotationsChanged({getProjectAnnotations:r}){delete this.previewEntryError;let o=await this.getProjectAnnotationsOrRenderError(r);if(!this.storyStore.projectAnnotations){await this.initializeWithProjectAnnotations(o);return}await this.storyStore.setProjectAnnotations(o),this.emitGlobals()}async onStoryIndexChanged(){if(delete this.previewEntryError,!!this.storyStore.projectAnnotations)try{let r=await this.getStoryIndexFromServer();this.storyStore.storyIndex||await this.initializeWithStoryIndex(r),await this.onStoriesChanged({storyIndex:r})}catch(r){throw this.renderPreviewEntryError("Error loading story index:",r),r}}async onStoriesChanged({importFn:r,storyIndex:o}){await this.storyStore.onStoriesChanged({importFn:r,storyIndex:o})}async onUpdateGlobals({globals:r}){if(!this.storyStore.globals)throw new Error("Cannot call onUpdateGlobals before initialization");this.storyStore.globals.update(r),await Promise.all(this.storyRenders.map(o=>o.rerender())),this.channel.emit(Gt.GLOBALS_UPDATED,{globals:this.storyStore.globals.get(),initialGlobals:this.storyStore.globals.initialGlobals})}async onUpdateArgs({storyId:r,updatedArgs:o}){this.storyStore.args.update(r,o),await Promise.all(this.storyRenders.filter(h=>h.id===r&&!h.renderOptions.forceInitialArgs).map(h=>h.rerender())),this.channel.emit(Gt.STORY_ARGS_UPDATED,{storyId:r,args:this.storyStore.args.get(r)})}async onResetArgs({storyId:r,argNames:o}){let h=this.storyRenders.find(_=>_.id===r),g=(h==null?void 0:h.story)||await this.storyStore.loadStory({storyId:r}),b=(o||[...new Set([...Object.keys(g.initialArgs),...Object.keys(this.storyStore.args.get(r))])]).reduce((_,A)=>(_[A]=g.initialArgs[A],_),{});await this.onUpdateArgs({storyId:r,updatedArgs:b})}async onForceReRender(){await Promise.all(this.storyRenders.map(r=>r.rerender()))}async onForceRemount({storyId:r}){await Promise.all(this.storyRenders.filter(o=>o.id===r).map(o=>o.remount()))}renderStoryToElement(r,o,h,g){if(!this.renderToCanvas)throw new Error("Cannot call renderStoryToElement before initialization");let b=new ns(this.channel,this.storyStore,this.renderToCanvas,h,r.id,"docs",g,r);return b.renderToElement(o),this.storyRenders.push(b),async()=>{await this.teardownRender(b)}}async teardownRender(r,{viewModeChanged:o}={}){var h;this.storyRenders=this.storyRenders.filter(g=>g!==r),await((h=r==null?void 0:r.teardown)==null?void 0:h.call(r,{viewModeChanged:o}))}async extract(r){var o;if(this.previewEntryError)throw this.previewEntryError;if(!this.storyStore.projectAnnotations)throw new Error(es.dedent`Failed to initialize Storybook. - Do you have an error in your \`preview.js\`? Check your Storybook's browser console for errors.`);return(o=vn.global.FEATURES)!=null&&o.storyStoreV7&&await this.storyStore.cacheAllCSFFiles(),this.storyStore.extract(r)}renderPreviewEntryError(r,o){this.previewEntryError=o,Wa.logger.error(r),Wa.logger.error(o),this.channel.emit(Gt.CONFIG_ERROR,o)}},tf=Ne,Ya=ct,bn=Ne,Ve=Qe,Qn=je,rf=Qe,nf=c(ct),Va=class{constructor(r,o,d,g){this.channel=r,this.store=o,this.renderStoryToElement=d,this.storyIdByName=b=>{let _=this.nameToStoryId.get(b);if(_)return _;throw new Error(`No story found with that name: ${b}`)},this.componentStories=()=>this.componentStoriesValue,this.storyById=b=>{if(!b){if(!this.primaryStory)throw new Error("No primary story defined for docs entry. Did you forget to use ``?");return this.primaryStory}let _=this.storyIdToCSFFile.get(b);if(!_)throw new Error(`Called \`storyById\` for story that was never loaded: ${b}`);return this.store.storyFromCSFFile({storyId:b,csfFile:_})},this.getStoryContext=b=>({...this.store.getStoryContext(b),viewMode:"docs"}),this.loadStory=b=>this.store.loadStory({storyId:b}),this.storyIdToCSFFile=new Map,this.exportToStory=new Map,this.exportsToCSFFile=new Map,this.nameToStoryId=new Map,this.componentStoriesValue=[],g.forEach((b,_)=>{this.referenceCSFFile(b)})}referenceCSFFile(r){this.exportsToCSFFile.set(r.moduleExports,r),this.exportsToCSFFile.set(r.moduleExports.default,r),this.store.componentStoriesFromCSFFile({csfFile:r}).forEach(o=>{let d=r.stories[o.id];this.storyIdToCSFFile.set(d.id,r),this.exportToStory.set(d.moduleExport,o)})}attachCSFFile(r){if(!this.exportsToCSFFile.has(r.moduleExports))throw new Error("Cannot attach a CSF file that has not been referenced");this.attachedCSFFile=r,this.store.componentStoriesFromCSFFile({csfFile:r}).forEach(o=>{this.nameToStoryId.set(o.name,o.id),this.componentStoriesValue.push(o),this.primaryStory||(this.primaryStory=o)})}referenceMeta(r,o){let d=this.resolveModuleExport(r);if(d.type!=="meta")throw new Error(" must reference a CSF file module export or meta export. Did you mistakenly reference your component instead of your CSF file?");o&&this.attachCSFFile(d.csfFile)}get projectAnnotations(){let{projectAnnotations:r}=this.store;if(!r)throw new Error("Can't get projectAnnotations from DocsContext before they are initialized");return r}resolveAttachedModuleExportType(r){if(r==="story"){if(!this.primaryStory)throw new Error("No primary story attached to this docs file, did you forget to use ?");return{type:"story",story:this.primaryStory}}if(!this.attachedCSFFile)throw new Error("No CSF file attached to this docs file, did you forget to use ?");if(r==="meta")return{type:"meta",csfFile:this.attachedCSFFile};let{component:o}=this.attachedCSFFile.meta;if(!o)throw new Error("Attached CSF file does not defined a component, did you forget to export one?");return{type:"component",component:o}}resolveModuleExport(r){let o=this.exportsToCSFFile.get(r);if(o)return{type:"meta",csfFile:o};let d=this.exportToStory.get(r);return d?{type:"story",story:d}:{type:"component",component:r}}resolveOf(r,o=[]){let d;if(["component","meta","story"].includes(r)){let g=r;d=this.resolveAttachedModuleExportType(g)}else d=this.resolveModuleExport(r);if(o.length&&!o.includes(d.type)){let g=d.type==="component"?"component or unknown":d.type;throw new Error(nf.default`Invalid value passed to the 'of' prop. The value was resolved to a '${g}' type but the only types for this block are: ${o.join(", ")}. + Do you have an error in your \`preview.js\`? Check your Storybook's browser console for errors.`);return(o=vn.global.FEATURES)!=null&&o.storyStoreV7&&await this.storyStore.cacheAllCSFFiles(),this.storyStore.extract(r)}renderPreviewEntryError(r,o){this.previewEntryError=o,Wa.logger.error(r),Wa.logger.error(o),this.channel.emit(Gt.CONFIG_ERROR,o)}},Wc=Ne,Ya=ct,bn=Ne,Ve=Qe,Qn=je,Yc=Qe,Vc=c(ct),Va=class{constructor(r,o,h,g){this.channel=r,this.store=o,this.renderStoryToElement=h,this.storyIdByName=b=>{let _=this.nameToStoryId.get(b);if(_)return _;throw new Error(`No story found with that name: ${b}`)},this.componentStories=()=>this.componentStoriesValue,this.storyById=b=>{if(!b){if(!this.primaryStory)throw new Error("No primary story defined for docs entry. Did you forget to use ``?");return this.primaryStory}let _=this.storyIdToCSFFile.get(b);if(!_)throw new Error(`Called \`storyById\` for story that was never loaded: ${b}`);return this.store.storyFromCSFFile({storyId:b,csfFile:_})},this.getStoryContext=b=>({...this.store.getStoryContext(b),viewMode:"docs"}),this.loadStory=b=>this.store.loadStory({storyId:b}),this.storyIdToCSFFile=new Map,this.exportToStory=new Map,this.exportsToCSFFile=new Map,this.nameToStoryId=new Map,this.componentStoriesValue=[],g.forEach((b,_)=>{this.referenceCSFFile(b)})}referenceCSFFile(r){this.exportsToCSFFile.set(r.moduleExports,r),this.exportsToCSFFile.set(r.moduleExports.default,r),this.store.componentStoriesFromCSFFile({csfFile:r}).forEach(o=>{let h=r.stories[o.id];this.storyIdToCSFFile.set(h.id,r),this.exportToStory.set(h.moduleExport,o)})}attachCSFFile(r){if(!this.exportsToCSFFile.has(r.moduleExports))throw new Error("Cannot attach a CSF file that has not been referenced");this.attachedCSFFile=r,this.store.componentStoriesFromCSFFile({csfFile:r}).forEach(o=>{this.nameToStoryId.set(o.name,o.id),this.componentStoriesValue.push(o),this.primaryStory||(this.primaryStory=o)})}referenceMeta(r,o){let h=this.resolveModuleExport(r);if(h.type!=="meta")throw new Error(" must reference a CSF file module export or meta export. Did you mistakenly reference your component instead of your CSF file?");o&&this.attachCSFFile(h.csfFile)}get projectAnnotations(){let{projectAnnotations:r}=this.store;if(!r)throw new Error("Can't get projectAnnotations from DocsContext before they are initialized");return r}resolveAttachedModuleExportType(r){if(r==="story"){if(!this.primaryStory)throw new Error("No primary story attached to this docs file, did you forget to use ?");return{type:"story",story:this.primaryStory}}if(!this.attachedCSFFile)throw new Error("No CSF file attached to this docs file, did you forget to use ?");if(r==="meta")return{type:"meta",csfFile:this.attachedCSFFile};let{component:o}=this.attachedCSFFile.meta;if(!o)throw new Error("Attached CSF file does not defined a component, did you forget to export one?");return{type:"component",component:o}}resolveModuleExport(r){let o=this.exportsToCSFFile.get(r);if(o)return{type:"meta",csfFile:o};let h=this.exportToStory.get(r);return h?{type:"story",story:h}:{type:"component",component:r}}resolveOf(r,o=[]){let h;if(["component","meta","story"].includes(r)){let g=r;h=this.resolveAttachedModuleExportType(g)}else h=this.resolveModuleExport(r);if(o.length&&!o.includes(h.type)){let g=h.type==="component"?"component or unknown":h.type;throw new Error(Vc.default`Invalid value passed to the 'of' prop. The value was resolved to a '${g}' type but the only types for this block are: ${o.join(", ")}. - Did you pass a component to the 'of' prop when the block only supports a story or a meta? - ... or vice versa? - - Did you pass a story, CSF file or meta to the 'of' prop that is not indexed, ie. is not targeted by the 'stories' globs in the main configuration?`)}switch(d.type){case"component":return{...d,projectAnnotations:this.projectAnnotations};case"meta":return{...d,preparedMeta:this.store.preparedMetaFromCSFFile({csfFile:d.csfFile})};case"story":default:return d}}},fs=class{constructor(r,o,d,g){this.channel=r,this.store=o,this.entry=d,this.callbacks=g,this.type="docs",this.subtype="csf",this.torndown=!1,this.disableKeyListeners=!1,this.preparing=!1,this.id=d.id}isPreparing(){return this.preparing}async prepare(){this.preparing=!0;let{entryExports:r,csfFiles:o=[]}=await this.store.loadEntry(this.id);if(this.torndown)throw Xn;let{importPath:d,title:g}=this.entry,b=this.store.processCSFFileWithCache(r,d,g),_=Object.keys(b.stories)[0];this.story=this.store.storyFromCSFFile({storyId:_,csfFile:b}),this.csfFiles=[b,...o],this.preparing=!1}isEqual(r){return!!(this.id===r.id&&this.story&&this.story===r.story)}docsContext(r){if(!this.csfFiles)throw new Error("Cannot render docs before preparing");let o=new Va(this.channel,this.store,r,this.csfFiles);return this.csfFiles.forEach(d=>o.attachCSFFile(d)),o}async renderToElement(r,o){if(!this.story||!this.csfFiles)throw new Error("Cannot render docs before preparing");let d=this.docsContext(o),{docs:g}=this.story.parameters||{};if(!g)throw new Error("Cannot render a story in viewMode=docs if `@storybook/addon-docs` is not installed");let b=await g.renderer(),{render:_}=b,A=async()=>{try{await _(d,g,r),this.channel.emit(rf.DOCS_RENDERED,this.id)}catch(D){this.callbacks.showException(D)}};return this.rerender=async()=>A(),this.teardownRender=async({viewModeChanged:D})=>{!D||!r||b.unmount(r)},A()}async teardown({viewModeChanged:r}={}){var o;(o=this.teardownRender)==null||o.call(this,{viewModeChanged:r}),this.torndown=!0}},af=Qe,hs=class{constructor(r,o,d,g){this.channel=r,this.store=o,this.entry=d,this.callbacks=g,this.type="docs",this.subtype="mdx",this.torndown=!1,this.disableKeyListeners=!1,this.preparing=!1,this.id=d.id}isPreparing(){return this.preparing}async prepare(){this.preparing=!0;let{entryExports:r,csfFiles:o=[]}=await this.store.loadEntry(this.id);if(this.torndown)throw Xn;this.csfFiles=o,this.exports=r,this.preparing=!1}isEqual(r){return!!(this.id===r.id&&this.exports&&this.exports===r.exports)}docsContext(r){if(!this.csfFiles)throw new Error("Cannot render docs before preparing");return new Va(this.channel,this.store,r,this.csfFiles)}async renderToElement(r,o){if(!this.exports||!this.csfFiles||!this.store.projectAnnotations)throw new Error("Cannot render docs before preparing");let d=this.docsContext(o),{docs:g}=this.store.projectAnnotations.parameters||{};if(!g)throw new Error("Cannot render a story in viewMode=docs if `@storybook/addon-docs` is not installed");let b={...g,page:this.exports.default},_=await g.renderer(),{render:A}=_,D=async()=>{try{await A(d,b,r),this.channel.emit(af.DOCS_RENDERED,this.id)}catch(q){this.callbacks.showException(q)}};return this.rerender=async()=>D(),this.teardownRender=async({viewModeChanged:q}={})=>{!q||!r||(_.unmount(r),this.torndown=!0)},D()}async teardown({viewModeChanged:r}={}){var o;(o=this.teardownRender)==null||o.call(this,{viewModeChanged:r}),this.torndown=!0}},of=globalThis;function sf(r){let o=r.composedPath&&r.composedPath()[0]||r.target;return/input|textarea/i.test(o.tagName)||o.getAttribute("contenteditable")!==null}var lf="autodocs",uf="stories-mdx",cf="attached-mdx";function ff({tags:r}){return!(r!=null&&r.includes(lf))&&!(r!=null&&r.includes(uf))}function za(r){return r.type==="story"}function hf(r){return r.type==="docs"}function df(r){return hf(r)&&r.subtype==="csf"}var pf=class extends cs{constructor(r,o){super(),this.selectionStore=r,this.view=o}setupListeners(){super.setupListeners(),of.onkeydown=this.onKeydown.bind(this),this.channel.on(Ve.SET_CURRENT_STORY,this.onSetCurrentStory.bind(this)),this.channel.on(Ve.UPDATE_QUERY_PARAMS,this.onUpdateQueryParams.bind(this)),this.channel.on(Ve.PRELOAD_ENTRIES,this.onPreloadStories.bind(this))}async setInitialGlobals(){if(!this.storyStore.globals)throw new Error("Cannot call setInitialGlobals before initialization");let{globals:r}=this.selectionStore.selectionSpecifier||{};r&&this.storyStore.globals.updateFromPersisted(r),this.emitGlobals()}initializeWithStoryIndex(r){return super.initializeWithStoryIndex(r).then(()=>{var o;return(o=bn.global.FEATURES)!=null&&o.storyStoreV7||this.channel.emit(Ve.SET_INDEX,this.storyStore.getSetIndexPayload()),this.selectSpecifiedStory()})}async selectSpecifiedStory(){if(!this.storyStore.storyIndex)throw new Error("Cannot call selectSpecifiedStory before initialization");if(this.selectionStore.selection){await this.renderSelection();return}if(!this.selectionStore.selectionSpecifier){this.renderMissingStory();return}let{storySpecifier:r,args:o}=this.selectionStore.selectionSpecifier,d=this.storyStore.storyIndex.entryFromSpecifier(r);if(!d){r==="*"?this.renderStoryLoadingException(r,new Error(Ya.dedent` + - Did you pass a story, CSF file or meta to the 'of' prop that is not indexed, ie. is not targeted by the 'stories' globs in the main configuration?`)}switch(h.type){case"component":return{...h,projectAnnotations:this.projectAnnotations};case"meta":return{...h,preparedMeta:this.store.preparedMetaFromCSFFile({csfFile:h.csfFile})};case"story":default:return h}}},os=class{constructor(r,o,h,g){this.channel=r,this.store=o,this.entry=h,this.callbacks=g,this.type="docs",this.subtype="csf",this.torndown=!1,this.disableKeyListeners=!1,this.preparing=!1,this.id=h.id}isPreparing(){return this.preparing}async prepare(){this.preparing=!0;let{entryExports:r,csfFiles:o=[]}=await this.store.loadEntry(this.id);if(this.torndown)throw Xn;let{importPath:h,title:g}=this.entry,b=this.store.processCSFFileWithCache(r,h,g),_=Object.keys(b.stories)[0];this.story=this.store.storyFromCSFFile({storyId:_,csfFile:b}),this.csfFiles=[b,...o],this.preparing=!1}isEqual(r){return!!(this.id===r.id&&this.story&&this.story===r.story)}docsContext(r){if(!this.csfFiles)throw new Error("Cannot render docs before preparing");let o=new Va(this.channel,this.store,r,this.csfFiles);return this.csfFiles.forEach(h=>o.attachCSFFile(h)),o}async renderToElement(r,o){if(!this.story||!this.csfFiles)throw new Error("Cannot render docs before preparing");let h=this.docsContext(o),{docs:g}=this.story.parameters||{};if(!g)throw new Error("Cannot render a story in viewMode=docs if `@storybook/addon-docs` is not installed");let b=await g.renderer(),{render:_}=b,A=async()=>{try{await _(h,g,r),this.channel.emit(Yc.DOCS_RENDERED,this.id)}catch(D){this.callbacks.showException(D)}};return this.rerender=async()=>A(),this.teardownRender=async({viewModeChanged:D})=>{!D||!r||b.unmount(r)},A()}async teardown({viewModeChanged:r}={}){var o;(o=this.teardownRender)==null||o.call(this,{viewModeChanged:r}),this.torndown=!0}},zc=Qe,is=class{constructor(r,o,h,g){this.channel=r,this.store=o,this.entry=h,this.callbacks=g,this.type="docs",this.subtype="mdx",this.torndown=!1,this.disableKeyListeners=!1,this.preparing=!1,this.id=h.id}isPreparing(){return this.preparing}async prepare(){this.preparing=!0;let{entryExports:r,csfFiles:o=[]}=await this.store.loadEntry(this.id);if(this.torndown)throw Xn;this.csfFiles=o,this.exports=r,this.preparing=!1}isEqual(r){return!!(this.id===r.id&&this.exports&&this.exports===r.exports)}docsContext(r){if(!this.csfFiles)throw new Error("Cannot render docs before preparing");return new Va(this.channel,this.store,r,this.csfFiles)}async renderToElement(r,o){if(!this.exports||!this.csfFiles||!this.store.projectAnnotations)throw new Error("Cannot render docs before preparing");let h=this.docsContext(o),{docs:g}=this.store.projectAnnotations.parameters||{};if(!g)throw new Error("Cannot render a story in viewMode=docs if `@storybook/addon-docs` is not installed");let b={...g,page:this.exports.default},_=await g.renderer(),{render:A}=_,D=async()=>{try{await A(h,b,r),this.channel.emit(zc.DOCS_RENDERED,this.id)}catch(q){this.callbacks.showException(q)}};return this.rerender=async()=>D(),this.teardownRender=async({viewModeChanged:q}={})=>{!q||!r||(_.unmount(r),this.torndown=!0)},D()}async teardown({viewModeChanged:r}={}){var o;(o=this.teardownRender)==null||o.call(this,{viewModeChanged:r}),this.torndown=!0}},Kc=globalThis;function Xc(r){let o=r.composedPath&&r.composedPath()[0]||r.target;return/input|textarea/i.test(o.tagName)||o.getAttribute("contenteditable")!==null}var Qc="autodocs",Jc="stories-mdx",Zc="attached-mdx";function ef({tags:r}){return!(r!=null&&r.includes(Qc))&&!(r!=null&&r.includes(Jc))}function za(r){return r.type==="story"}function tf(r){return r.type==="docs"}function rf(r){return tf(r)&&r.subtype==="csf"}var nf=class extends as{constructor(r,o){super(),this.selectionStore=r,this.view=o}setupListeners(){super.setupListeners(),Kc.onkeydown=this.onKeydown.bind(this),this.channel.on(Ve.SET_CURRENT_STORY,this.onSetCurrentStory.bind(this)),this.channel.on(Ve.UPDATE_QUERY_PARAMS,this.onUpdateQueryParams.bind(this)),this.channel.on(Ve.PRELOAD_ENTRIES,this.onPreloadStories.bind(this))}async setInitialGlobals(){if(!this.storyStore.globals)throw new Error("Cannot call setInitialGlobals before initialization");let{globals:r}=this.selectionStore.selectionSpecifier||{};r&&this.storyStore.globals.updateFromPersisted(r),this.emitGlobals()}initializeWithStoryIndex(r){return super.initializeWithStoryIndex(r).then(()=>{var o;return(o=bn.global.FEATURES)!=null&&o.storyStoreV7||this.channel.emit(Ve.SET_INDEX,this.storyStore.getSetIndexPayload()),this.selectSpecifiedStory()})}async selectSpecifiedStory(){if(!this.storyStore.storyIndex)throw new Error("Cannot call selectSpecifiedStory before initialization");if(this.selectionStore.selection){await this.renderSelection();return}if(!this.selectionStore.selectionSpecifier){this.renderMissingStory();return}let{storySpecifier:r,args:o}=this.selectionStore.selectionSpecifier,h=this.storyStore.storyIndex.entryFromSpecifier(r);if(!h){r==="*"?this.renderStoryLoadingException(r,new Error(Ya.dedent` Couldn't find any stories in your Storybook. - Please check your stories field of your main.js config. - Also check the browser console and terminal for error messages. @@ -87,16 +87,16 @@ See https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#hoisted-csf- - Are you sure a story with that id exists? - Please check your stories field of your main.js config. - Also check the browser console and terminal for error messages. - `));return}let{id:g,type:b}=d;this.selectionStore.setSelection({storyId:g,viewMode:b}),this.channel.emit(Ve.STORY_SPECIFIED,this.selectionStore.selection),this.channel.emit(Ve.CURRENT_STORY_WAS_SET,this.selectionStore.selection),await this.renderSelection({persistedArgs:o})}async onGetProjectAnnotationsChanged({getProjectAnnotations:r}){await super.onGetProjectAnnotationsChanged({getProjectAnnotations:r}),this.selectionStore.selection&&this.renderSelection()}async onStoriesChanged({importFn:r,storyIndex:o}){var d;await super.onStoriesChanged({importFn:r,storyIndex:o}),(d=bn.global.FEATURES)!=null&&d.storyStoreV7||this.channel.emit(Ve.SET_INDEX,await this.storyStore.getSetIndexPayload()),this.selectionStore.selection?await this.renderSelection():await this.selectSpecifiedStory()}onKeydown(r){if(!this.storyRenders.find(o=>o.disableKeyListeners)&&!sf(r)){let{altKey:o,ctrlKey:d,metaKey:g,shiftKey:b,key:_,code:A,keyCode:D}=r;this.channel.emit(Ve.PREVIEW_KEYDOWN,{event:{altKey:o,ctrlKey:d,metaKey:g,shiftKey:b,key:_,code:A,keyCode:D}})}}async onSetCurrentStory(r){this.selectionStore.setSelection({viewMode:"story",...r}),await this.storyStore.initializationPromise,this.channel.emit(Ve.CURRENT_STORY_WAS_SET,this.selectionStore.selection),this.renderSelection()}onUpdateQueryParams(r){this.selectionStore.setQueryParams(r)}async onUpdateGlobals({globals:r}){var o,d;super.onUpdateGlobals({globals:r}),(this.currentRender instanceof hs||this.currentRender instanceof fs)&&await((d=(o=this.currentRender).rerender)==null?void 0:d.call(o))}async onUpdateArgs({storyId:r,updatedArgs:o}){super.onUpdateArgs({storyId:r,updatedArgs:o})}async onPreloadStories({ids:r}){await Promise.allSettled(r.map(o=>this.storyStore.loadEntry(o)))}async renderSelection({persistedArgs:r}={}){var o,d,g,b,_,A;let{renderToCanvas:D}=this;if(!D)throw new Error("Cannot call renderSelection before initialization");let{selection:q}=this.selectionStore;if(!q)throw new Error("Cannot call renderSelection as no selection was made");let{storyId:U}=q,G;try{G=await this.storyStore.storyIdToEntry(U)}catch(de){this.currentRender&&await this.teardownRender(this.currentRender),this.renderStoryLoadingException(U,de);return}let z=((o=this.currentSelection)==null?void 0:o.storyId)!==U,se=((d=this.currentRender)==null?void 0:d.type)!==G.type;G.type==="story"?this.view.showPreparingStory({immediate:se}):this.view.showPreparingDocs({immediate:se}),(g=this.currentRender)!=null&&g.isPreparing()&&await this.teardownRender(this.currentRender);let ce;G.type==="story"?ce=new us(this.channel,this.storyStore,(...de)=>(this.view.showStoryDuringRender(),D(...de)),this.mainStoryCallbacks(U),U,"story"):ff(G)?ce=new hs(this.channel,this.storyStore,G,this.mainStoryCallbacks(U)):ce=new fs(this.channel,this.storyStore,G,this.mainStoryCallbacks(U));let Pe=this.currentSelection;this.currentSelection=q;let Se=this.currentRender;this.currentRender=ce;try{await ce.prepare()}catch(de){de!==Xn&&(Se&&await this.teardownRender(Se),this.renderStoryLoadingException(U,de));return}let we=!z&&Se&&!ce.isEqual(Se);if(r&&za(ce)){if(!ce.story)throw new Error("Render has not been prepared!");this.storyStore.args.updateFromPersisted(ce.story,r)}if(Se&&!Se.torndown&&!z&&!we&&!se){this.currentRender=Se,this.channel.emit(Ve.STORY_UNCHANGED,U),this.view.showMain();return}if(Se&&await this.teardownRender(Se,{viewModeChanged:se}),Pe&&(z||se)&&this.channel.emit(Ve.STORY_CHANGED,U),za(ce)){if(!ce.story)throw new Error("Render has not been prepared!");let{parameters:de,initialArgs:ve,argTypes:xe,unmappedArgs:Ue}=this.storyStore.getStoryContext(ce.story);(b=bn.global.FEATURES)!=null&&b.storyStoreV7&&this.channel.emit(Ve.STORY_PREPARED,{id:U,parameters:de,initialArgs:ve,argTypes:xe,args:Ue}),(we||r)&&this.channel.emit(Ve.STORY_ARGS_UPDATED,{storyId:U,args:Ue})}else if((_=bn.global.FEATURES)!=null&&_.storyStoreV7){if(!this.storyStore.projectAnnotations)throw new Error("Store not initialized");let{parameters:de}=this.storyStore.projectAnnotations;if(df(ce)||(A=ce.entry.tags)!=null&&A.includes(cf)){if(!ce.csfFiles)throw new Error("Render not prepared, or attached MDX file has no CSF references");({parameters:de}=this.storyStore.preparedMetaFromCSFFile({csfFile:ce.csfFiles[0]}))}this.channel.emit(Ve.DOCS_PREPARED,{id:U,parameters:de})}if(za(ce)){if(!ce.story)throw new Error("Render has not been prepared!");this.storyRenders.push(ce),this.currentRender.renderToElement(this.view.prepareForStory(ce.story))}else this.currentRender.renderToElement(this.view.prepareForDocs(),this.renderStoryToElement.bind(this))}async teardownRender(r,{viewModeChanged:o=!1}={}){var d;this.storyRenders=this.storyRenders.filter(g=>g!==r),await((d=r==null?void 0:r.teardown)==null?void 0:d.call(r,{viewModeChanged:o}))}async extract(r){var o;if(this.previewEntryError)throw this.previewEntryError;if(!this.storyStore.projectAnnotations)throw new Error(Ya.dedent`Failed to initialize Storybook. + `));return}let{id:g,type:b}=h;this.selectionStore.setSelection({storyId:g,viewMode:b}),this.channel.emit(Ve.STORY_SPECIFIED,this.selectionStore.selection),this.channel.emit(Ve.CURRENT_STORY_WAS_SET,this.selectionStore.selection),await this.renderSelection({persistedArgs:o})}async onGetProjectAnnotationsChanged({getProjectAnnotations:r}){await super.onGetProjectAnnotationsChanged({getProjectAnnotations:r}),this.selectionStore.selection&&this.renderSelection()}async onStoriesChanged({importFn:r,storyIndex:o}){var h;await super.onStoriesChanged({importFn:r,storyIndex:o}),(h=bn.global.FEATURES)!=null&&h.storyStoreV7||this.channel.emit(Ve.SET_INDEX,await this.storyStore.getSetIndexPayload()),this.selectionStore.selection?await this.renderSelection():await this.selectSpecifiedStory()}onKeydown(r){if(!this.storyRenders.find(o=>o.disableKeyListeners)&&!Xc(r)){let{altKey:o,ctrlKey:h,metaKey:g,shiftKey:b,key:_,code:A,keyCode:D}=r;this.channel.emit(Ve.PREVIEW_KEYDOWN,{event:{altKey:o,ctrlKey:h,metaKey:g,shiftKey:b,key:_,code:A,keyCode:D}})}}async onSetCurrentStory(r){this.selectionStore.setSelection({viewMode:"story",...r}),await this.storyStore.initializationPromise,this.channel.emit(Ve.CURRENT_STORY_WAS_SET,this.selectionStore.selection),this.renderSelection()}onUpdateQueryParams(r){this.selectionStore.setQueryParams(r)}async onUpdateGlobals({globals:r}){var o,h;super.onUpdateGlobals({globals:r}),(this.currentRender instanceof is||this.currentRender instanceof os)&&await((h=(o=this.currentRender).rerender)==null?void 0:h.call(o))}async onUpdateArgs({storyId:r,updatedArgs:o}){super.onUpdateArgs({storyId:r,updatedArgs:o})}async onPreloadStories({ids:r}){await Promise.allSettled(r.map(o=>this.storyStore.loadEntry(o)))}async renderSelection({persistedArgs:r}={}){var o,h,g,b,_,A;let{renderToCanvas:D}=this;if(!D)throw new Error("Cannot call renderSelection before initialization");let{selection:q}=this.selectionStore;if(!q)throw new Error("Cannot call renderSelection as no selection was made");let{storyId:U}=q,G;try{G=await this.storyStore.storyIdToEntry(U)}catch(he){this.currentRender&&await this.teardownRender(this.currentRender),this.renderStoryLoadingException(U,he);return}let z=((o=this.currentSelection)==null?void 0:o.storyId)!==U,se=((h=this.currentRender)==null?void 0:h.type)!==G.type;G.type==="story"?this.view.showPreparingStory({immediate:se}):this.view.showPreparingDocs({immediate:se}),(g=this.currentRender)!=null&&g.isPreparing()&&await this.teardownRender(this.currentRender);let ce;G.type==="story"?ce=new ns(this.channel,this.storyStore,(...he)=>(this.view.showStoryDuringRender(),D(...he)),this.mainStoryCallbacks(U),U,"story"):ef(G)?ce=new is(this.channel,this.storyStore,G,this.mainStoryCallbacks(U)):ce=new os(this.channel,this.storyStore,G,this.mainStoryCallbacks(U));let Pe=this.currentSelection;this.currentSelection=q;let Se=this.currentRender;this.currentRender=ce;try{await ce.prepare()}catch(he){he!==Xn&&(Se&&await this.teardownRender(Se),this.renderStoryLoadingException(U,he));return}let we=!z&&Se&&!ce.isEqual(Se);if(r&&za(ce)){if(!ce.story)throw new Error("Render has not been prepared!");this.storyStore.args.updateFromPersisted(ce.story,r)}if(Se&&!Se.torndown&&!z&&!we&&!se){this.currentRender=Se,this.channel.emit(Ve.STORY_UNCHANGED,U),this.view.showMain();return}if(Se&&await this.teardownRender(Se,{viewModeChanged:se}),Pe&&(z||se)&&this.channel.emit(Ve.STORY_CHANGED,U),za(ce)){if(!ce.story)throw new Error("Render has not been prepared!");let{parameters:he,initialArgs:ve,argTypes:xe,unmappedArgs:Ue}=this.storyStore.getStoryContext(ce.story);(b=bn.global.FEATURES)!=null&&b.storyStoreV7&&this.channel.emit(Ve.STORY_PREPARED,{id:U,parameters:he,initialArgs:ve,argTypes:xe,args:Ue}),(we||r)&&this.channel.emit(Ve.STORY_ARGS_UPDATED,{storyId:U,args:Ue})}else if((_=bn.global.FEATURES)!=null&&_.storyStoreV7){if(!this.storyStore.projectAnnotations)throw new Error("Store not initialized");let{parameters:he}=this.storyStore.projectAnnotations;if(rf(ce)||(A=ce.entry.tags)!=null&&A.includes(Zc)){if(!ce.csfFiles)throw new Error("Render not prepared, or attached MDX file has no CSF references");({parameters:he}=this.storyStore.preparedMetaFromCSFFile({csfFile:ce.csfFiles[0]}))}this.channel.emit(Ve.DOCS_PREPARED,{id:U,parameters:he})}if(za(ce)){if(!ce.story)throw new Error("Render has not been prepared!");this.storyRenders.push(ce),this.currentRender.renderToElement(this.view.prepareForStory(ce.story))}else this.currentRender.renderToElement(this.view.prepareForDocs(),this.renderStoryToElement.bind(this))}async teardownRender(r,{viewModeChanged:o=!1}={}){var h;this.storyRenders=this.storyRenders.filter(g=>g!==r),await((h=r==null?void 0:r.teardown)==null?void 0:h.call(r,{viewModeChanged:o}))}async extract(r){var o;if(this.previewEntryError)throw this.previewEntryError;if(!this.storyStore.projectAnnotations)throw new Error(Ya.dedent`Failed to initialize Storybook. - Do you have an error in your \`preview.js\`? Check your Storybook's browser console for errors.`);return(o=bn.global.FEATURES)!=null&&o.storyStoreV7&&await this.storyStore.cacheAllCSFFiles(),this.storyStore.extract(r)}mainStoryCallbacks(r){return{showMain:()=>this.view.showMain(),showError:o=>this.renderError(r,o),showException:o=>this.renderException(r,o)}}renderPreviewEntryError(r,o){super.renderPreviewEntryError(r,o),this.view.showErrorDisplay(o)}renderMissingStory(){this.view.showNoPreview(),this.channel.emit(Ve.STORY_MISSING)}renderStoryLoadingException(r,o){Qn.logger.error(o),this.view.showErrorDisplay(o),this.channel.emit(Ve.STORY_MISSING,r)}renderException(r,o){var d;let{name:g="Error",message:b=String(o),stack:_}=o;this.channel.emit(Ve.STORY_THREW_EXCEPTION,{name:g,message:b,stack:_}),this.channel.emit(Ve.STORY_RENDER_PHASE_CHANGED,{newPhase:"errored",storyId:r}),(d=o.message)!=null&&d.startsWith("ignoredException")||(this.view.showErrorDisplay(o),Qn.logger.error(`Error rendering story '${r}':`),Qn.logger.error(o))}renderError(r,{title:o,description:d}){Qn.logger.error(`Error rendering story ${o}: ${d}`),this.channel.emit(Ve.STORY_ERRORED,{title:o,description:d}),this.channel.emit(Ve.STORY_RENDER_PHASE_CHANGED,{newPhase:"errored",storyId:r}),this.view.showErrorDisplay({message:o,stack:d})}},gf=Ne,Ka=c(Qr),yf=c(Qr),mf=ct,vf=je,bf=c(ua),ds=/^[a-zA-Z0-9 _-]*$/,ps=/^-?[0-9]+(\.[0-9]+)?$/,Sf=/^#([a-f0-9]{3,4}|[a-f0-9]{6}|[a-f0-9]{8})$/i,gs=/^(rgba?|hsla?)\(([0-9]{1,3}),\s?([0-9]{1,3})%?,\s?([0-9]{1,3})%?,?\s?([0-9](\.[0-9]{1,2})?)?\)$/i,Xa=(r="",o)=>r===null||r===""||!ds.test(r)?!1:o==null||o instanceof Date||typeof o=="number"||typeof o=="boolean"?!0:typeof o=="string"?ds.test(o)||ps.test(o)||Sf.test(o)||gs.test(o):Array.isArray(o)?o.every(d=>Xa(r,d)):(0,bf.default)(o)?Object.entries(o).every(([d,g])=>Xa(d,g)):!1,Ef={delimiter:";",allowDots:!0,allowSparse:!0,decoder(r,o,d,g){if(g==="value"&&r.startsWith("!")){if(r==="!undefined")return;if(r==="!null")return null;if(r==="!true")return!0;if(r==="!false")return!1;if(r.startsWith("!date(")&&r.endsWith(")"))return new Date(r.slice(6,-1));if(r.startsWith("!hex(")&&r.endsWith(")"))return`#${r.slice(5,-1)}`;let b=r.slice(1).match(gs);if(b)return r.startsWith("!rgba")?`${b[1]}(${b[2]}, ${b[3]}, ${b[4]}, ${b[5]})`:r.startsWith("!hsla")?`${b[1]}(${b[2]}, ${b[3]}%, ${b[4]}%, ${b[5]})`:r.startsWith("!rgb")?`${b[1]}(${b[2]}, ${b[3]}, ${b[4]})`:`${b[1]}(${b[2]}, ${b[3]}%, ${b[4]}%)`}return g==="value"&&ps.test(r)?Number(r):o(r,o,d)}},ys=r=>{let o=r.split(";").map(d=>d.replace("=","~").replace(":","="));return Object.entries(yf.default.parse(o.join(";"),Ef)).reduce((d,[g,b])=>Xa(g,b)?Object.assign(d,{[g]:b}):(vf.once.warn(mf.dedent` + Do you have an error in your \`preview.js\`? Check your Storybook's browser console for errors.`);return(o=bn.global.FEATURES)!=null&&o.storyStoreV7&&await this.storyStore.cacheAllCSFFiles(),this.storyStore.extract(r)}mainStoryCallbacks(r){return{showMain:()=>this.view.showMain(),showError:o=>this.renderError(r,o),showException:o=>this.renderException(r,o)}}renderPreviewEntryError(r,o){super.renderPreviewEntryError(r,o),this.view.showErrorDisplay(o)}renderMissingStory(){this.view.showNoPreview(),this.channel.emit(Ve.STORY_MISSING)}renderStoryLoadingException(r,o){Qn.logger.error(o),this.view.showErrorDisplay(o),this.channel.emit(Ve.STORY_MISSING,r)}renderException(r,o){var h;let{name:g="Error",message:b=String(o),stack:_}=o;this.channel.emit(Ve.STORY_THREW_EXCEPTION,{name:g,message:b,stack:_}),this.channel.emit(Ve.STORY_RENDER_PHASE_CHANGED,{newPhase:"errored",storyId:r}),(h=o.message)!=null&&h.startsWith("ignoredException")||(this.view.showErrorDisplay(o),Qn.logger.error(`Error rendering story '${r}':`),Qn.logger.error(o))}renderError(r,{title:o,description:h}){Qn.logger.error(`Error rendering story ${o}: ${h}`),this.channel.emit(Ve.STORY_ERRORED,{title:o,description:h}),this.channel.emit(Ve.STORY_RENDER_PHASE_CHANGED,{newPhase:"errored",storyId:r}),this.view.showErrorDisplay({message:o,stack:h})}},af=Ne,Ka=c(Qr),of=c(Qr),sf=ct,lf=je,uf=c(ua),ss=/^[a-zA-Z0-9 _-]*$/,ls=/^-?[0-9]+(\.[0-9]+)?$/,cf=/^#([a-f0-9]{3,4}|[a-f0-9]{6}|[a-f0-9]{8})$/i,us=/^(rgba?|hsla?)\(([0-9]{1,3}),\s?([0-9]{1,3})%?,\s?([0-9]{1,3})%?,?\s?([0-9](\.[0-9]{1,2})?)?\)$/i,Xa=(r="",o)=>r===null||r===""||!ss.test(r)?!1:o==null||o instanceof Date||typeof o=="number"||typeof o=="boolean"?!0:typeof o=="string"?ss.test(o)||ls.test(o)||cf.test(o)||us.test(o):Array.isArray(o)?o.every(h=>Xa(r,h)):(0,uf.default)(o)?Object.entries(o).every(([h,g])=>Xa(h,g)):!1,ff={delimiter:";",allowDots:!0,allowSparse:!0,decoder(r,o,h,g){if(g==="value"&&r.startsWith("!")){if(r==="!undefined")return;if(r==="!null")return null;if(r==="!true")return!0;if(r==="!false")return!1;if(r.startsWith("!date(")&&r.endsWith(")"))return new Date(r.slice(6,-1));if(r.startsWith("!hex(")&&r.endsWith(")"))return`#${r.slice(5,-1)}`;let b=r.slice(1).match(us);if(b)return r.startsWith("!rgba")?`${b[1]}(${b[2]}, ${b[3]}, ${b[4]}, ${b[5]})`:r.startsWith("!hsla")?`${b[1]}(${b[2]}, ${b[3]}%, ${b[4]}%, ${b[5]})`:r.startsWith("!rgb")?`${b[1]}(${b[2]}, ${b[3]}, ${b[4]})`:`${b[1]}(${b[2]}, ${b[3]}%, ${b[4]}%)`}return g==="value"&&ls.test(r)?Number(r):o(r,o,h)}},cs=r=>{let o=r.split(";").map(h=>h.replace("=","~").replace(":","="));return Object.entries(of.default.parse(o.join(";"),ff)).reduce((h,[g,b])=>Xa(g,b)?Object.assign(h,{[g]:b}):(lf.once.warn(sf.dedent` Omitted potentially unsafe URL args. More info: https://storybook.js.org/docs/react/writing-stories/args#setting-args-through-the-url - `),d),{})},{history:ms,document:hr}=gf.global;function _f(r){let o=(r||"").match(/^\/story\/(.+)/);if(!o)throw new Error(`Invalid path '${r}', must start with '/story/'`);return o[1]}var vs=({selection:r,extraParams:o})=>{let{search:d=""}=hr.location,{path:g,selectedKind:b,selectedStory:_,...A}=Ka.default.parse(d,{ignoreQueryPrefix:!0});return Ka.default.stringify({...A,...o,...r&&{id:r.storyId,viewMode:r.viewMode}},{encode:!1,addQueryPrefix:!0})},wf=r=>{if(!r)return;let o=vs({selection:r}),{hash:d=""}=hr.location;hr.title=r.storyId,ms.replaceState({},"",`${hr.location.pathname}${o}${d}`)},Of=r=>r!=null&&typeof r=="object"&&Array.isArray(r)===!1,Sn=r=>{if(r!==void 0){if(typeof r=="string")return r;if(Array.isArray(r))return Sn(r[0]);if(Of(r))return Sn(Object.values(r).filter(Boolean))}},Rf=()=>{var r;let o=Ka.default.parse((r=hr==null?void 0:hr.location)==null?void 0:r.search,{ignoreQueryPrefix:!0}),d=typeof o.args=="string"?ys(o.args):void 0,g=typeof o.globals=="string"?ys(o.globals):void 0,b=Sn(o.viewMode);(typeof b!="string"||!b.match(/docs|story/))&&(b="story");let _=Sn(o.path),A=_?_f(_):Sn(o.id);return A?{storySpecifier:A,args:d,globals:g,viewMode:b}:null},Af=class{constructor(){this.selectionSpecifier=Rf()}setSelection(r){this.selection=r,wf(this.selection)}setQueryParams(r){let o=vs({extraParams:r}),{hash:d=""}=hr.location;ms.replaceState({},"",`${hr.location.pathname}${o}${d}`)}},Tf=Ne,Pf=je,Cf=c(J()),xf=ct,If=c(Qr),{document:rt}=Tf.global,bs=100,Ss=(r=>(r.MAIN="MAIN",r.NOPREVIEW="NOPREVIEW",r.PREPARING_STORY="PREPARING_STORY",r.PREPARING_DOCS="PREPARING_DOCS",r.ERROR="ERROR",r))(Ss||{}),Qa={PREPARING_STORY:"sb-show-preparing-story",PREPARING_DOCS:"sb-show-preparing-docs",MAIN:"sb-show-main",NOPREVIEW:"sb-show-nopreview",ERROR:"sb-show-errordisplay"},Ja={centered:"sb-main-centered",fullscreen:"sb-main-fullscreen",padded:"sb-main-padded"},Es=new Cf.default({escapeXML:!0}),Nf=class{constructor(){this.testing=!1;var r;let{__SPECIAL_TEST_PARAMETER__:o}=If.default.parse((r=rt==null?void 0:rt.location)==null?void 0:r.search,{ignoreQueryPrefix:!0});switch(o){case"preparing-story":{this.showPreparingStory(),this.testing=!0;break}case"preparing-docs":{this.showPreparingDocs(),this.testing=!0;break}}}prepareForStory(r){return this.showStory(),this.applyLayout(r.parameters.layout),rt.documentElement.scrollTop=0,rt.documentElement.scrollLeft=0,this.storyRoot()}storyRoot(){return rt.getElementById("storybook-root")}prepareForDocs(){return this.showMain(),this.showDocs(),this.applyLayout("fullscreen"),rt.documentElement.scrollTop=0,rt.documentElement.scrollLeft=0,this.docsRoot()}docsRoot(){return rt.getElementById("storybook-docs")}applyLayout(r="padded"){if(r==="none"){rt.body.classList.remove(this.currentLayoutClass),this.currentLayoutClass=null;return}this.checkIfLayoutExists(r);let o=Ja[r];rt.body.classList.remove(this.currentLayoutClass),rt.body.classList.add(o),this.currentLayoutClass=o}checkIfLayoutExists(r){Ja[r]||Pf.logger.warn(xf.dedent`The desired layout: ${r} is not a valid option. - The possible options are: ${Object.keys(Ja).join(", ")}, none.`)}showMode(r){clearTimeout(this.preparingTimeout),Object.keys(Ss).forEach(o=>{o===r?rt.body.classList.add(Qa[o]):rt.body.classList.remove(Qa[o])})}showErrorDisplay({message:r="",stack:o=""}){let d=r,g=o,b=r.split(` -`);b.length>1&&([d]=b,g=b.slice(1).join(` -`)),rt.getElementById("error-message").innerHTML=Es.toHtml(d),rt.getElementById("error-stack").innerHTML=Es.toHtml(g),this.showMode("ERROR")}showNoPreview(){var r,o;this.testing||(this.showMode("NOPREVIEW"),(r=this.storyRoot())==null||r.setAttribute("hidden","true"),(o=this.docsRoot())==null||o.setAttribute("hidden","true"))}showPreparingStory({immediate:r=!1}={}){clearTimeout(this.preparingTimeout),r?this.showMode("PREPARING_STORY"):this.preparingTimeout=setTimeout(()=>this.showMode("PREPARING_STORY"),bs)}showPreparingDocs({immediate:r=!1}={}){clearTimeout(this.preparingTimeout),r?this.showMode("PREPARING_DOCS"):this.preparingTimeout=setTimeout(()=>this.showMode("PREPARING_DOCS"),bs)}showMain(){this.showMode("MAIN")}showDocs(){this.storyRoot().setAttribute("hidden","true"),this.docsRoot().removeAttribute("hidden")}showStory(){this.docsRoot().setAttribute("hidden","true"),this.storyRoot().removeAttribute("hidden")}showStoryDuringRender(){rt.body.classList.add(Qa.MAIN)}},_s=class extends pf{constructor(){super(new Af,new Nf),tf.global.__STORYBOOK_PREVIEW__=this}},Df=Ne,{document:Pr}=Df.global,Lf=["application/javascript","application/ecmascript","application/x-ecmascript","application/x-javascript","text/ecmascript","text/javascript","text/javascript1.0","text/javascript1.1","text/javascript1.2","text/javascript1.3","text/javascript1.4","text/javascript1.5","text/jscript","text/livescript","text/x-ecmascript","text/x-javascript","module"],Ff="script",ws="scripts-root";function Za(){let r=Pr.createEvent("Event");r.initEvent("DOMContentLoaded",!0,!0),Pr.dispatchEvent(r)}function $f(r,o,d){let g=Pr.createElement("script");g.type=r.type==="module"?"module":"text/javascript",r.src?(g.onload=o,g.onerror=o,g.src=r.src):g.textContent=r.innerText,d?d.appendChild(g):Pr.head.appendChild(g),r.parentNode.removeChild(r),r.src||o()}function Os(r,o,d=0){r[d](()=>{d++,d===r.length?o():Os(r,o,d)})}function jf(r){let o=Pr.getElementById(ws);o?o.innerHTML="":(o=Pr.createElement("div"),o.id=ws,Pr.body.appendChild(o));let d=Array.from(r.querySelectorAll(Ff));if(d.length){let g=[];d.forEach(b=>{let _=b.getAttribute("type");(!_||Lf.includes(_))&&g.push(A=>$f(b,A,o))}),g.length&&Os(g,Za,void 0)}else Za()}var kf=ct,Ct=Ne,Rs=je,As=rr,eo=Ne,Ts=ct,Mf=Xo(),En=rr,qf=je,Ps="autodocs",Uf="stories-mdx",Gf=class{constructor(){this.projectAnnotations={loaders:[],decorators:[],parameters:{},argsEnhancers:[],argTypesEnhancers:[],args:{},argTypes:{}},this.entries={},this.csfExports={}}importFn(r){return Mf.SynchronousPromise.resolve().then(()=>{let o=this.csfExports[r];if(!o)throw new Error(`Unknown path: ${r}`);return o})}getStoryIndex(r){var o,d;let g=Object.keys(this.csfExports),b=(d=(o=this.projectAnnotations.parameters)==null?void 0:o.options)==null?void 0:d.storySort,_=Object.entries(this.entries).map(([D,{type:q,importPath:U,...G}])=>{let z=this.csfExports[U],se=r.processCSFFileWithCache(z,U,z.default.title),ce;return q==="story"?ce=r.storyFromCSFFile({storyId:D,csfFile:se}):ce={...G,story:G.name,kind:G.title,componentId:(0,En.toId)(G.componentId||G.title),parameters:{fileName:U}},[D,ce,se.meta.parameters,this.projectAnnotations.parameters||{}]}),A;try{A=Xc(_,b,g)}catch(D){throw typeof b=="function"?new Error(Ts.dedent` + `),h),{})},{history:fs,document:dr}=af.global;function df(r){let o=(r||"").match(/^\/story\/(.+)/);if(!o)throw new Error(`Invalid path '${r}', must start with '/story/'`);return o[1]}var ds=({selection:r,extraParams:o})=>{let{search:h=""}=dr.location,{path:g,selectedKind:b,selectedStory:_,...A}=Ka.default.parse(h,{ignoreQueryPrefix:!0});return Ka.default.stringify({...A,...o,...r&&{id:r.storyId,viewMode:r.viewMode}},{encode:!1,addQueryPrefix:!0})},hf=r=>{if(!r)return;let o=ds({selection:r}),{hash:h=""}=dr.location;dr.title=r.storyId,fs.replaceState({},"",`${dr.location.pathname}${o}${h}`)},pf=r=>r!=null&&typeof r=="object"&&Array.isArray(r)===!1,Sn=r=>{if(r!==void 0){if(typeof r=="string")return r;if(Array.isArray(r))return Sn(r[0]);if(pf(r))return Sn(Object.values(r).filter(Boolean))}},gf=()=>{var r;let o=Ka.default.parse((r=dr==null?void 0:dr.location)==null?void 0:r.search,{ignoreQueryPrefix:!0}),h=typeof o.args=="string"?cs(o.args):void 0,g=typeof o.globals=="string"?cs(o.globals):void 0,b=Sn(o.viewMode);(typeof b!="string"||!b.match(/docs|story/))&&(b="story");let _=Sn(o.path),A=_?df(_):Sn(o.id);return A?{storySpecifier:A,args:h,globals:g,viewMode:b}:null},yf=class{constructor(){this.selectionSpecifier=gf()}setSelection(r){this.selection=r,hf(this.selection)}setQueryParams(r){let o=ds({extraParams:r}),{hash:h=""}=dr.location;fs.replaceState({},"",`${dr.location.pathname}${o}${h}`)}},mf=Ne,vf=je,bf=c(J()),Sf=ct,Ef=c(Qr),{document:rt}=mf.global,hs=100,ps=(r=>(r.MAIN="MAIN",r.NOPREVIEW="NOPREVIEW",r.PREPARING_STORY="PREPARING_STORY",r.PREPARING_DOCS="PREPARING_DOCS",r.ERROR="ERROR",r))(ps||{}),Qa={PREPARING_STORY:"sb-show-preparing-story",PREPARING_DOCS:"sb-show-preparing-docs",MAIN:"sb-show-main",NOPREVIEW:"sb-show-nopreview",ERROR:"sb-show-errordisplay"},Ja={centered:"sb-main-centered",fullscreen:"sb-main-fullscreen",padded:"sb-main-padded"},gs=new bf.default({escapeXML:!0}),_f=class{constructor(){this.testing=!1;var r;let{__SPECIAL_TEST_PARAMETER__:o}=Ef.default.parse((r=rt==null?void 0:rt.location)==null?void 0:r.search,{ignoreQueryPrefix:!0});switch(o){case"preparing-story":{this.showPreparingStory(),this.testing=!0;break}case"preparing-docs":{this.showPreparingDocs(),this.testing=!0;break}}}prepareForStory(r){return this.showStory(),this.applyLayout(r.parameters.layout),rt.documentElement.scrollTop=0,rt.documentElement.scrollLeft=0,this.storyRoot()}storyRoot(){return rt.getElementById("storybook-root")}prepareForDocs(){return this.showMain(),this.showDocs(),this.applyLayout("fullscreen"),rt.documentElement.scrollTop=0,rt.documentElement.scrollLeft=0,this.docsRoot()}docsRoot(){return rt.getElementById("storybook-docs")}applyLayout(r="padded"){if(r==="none"){rt.body.classList.remove(this.currentLayoutClass),this.currentLayoutClass=null;return}this.checkIfLayoutExists(r);let o=Ja[r];rt.body.classList.remove(this.currentLayoutClass),rt.body.classList.add(o),this.currentLayoutClass=o}checkIfLayoutExists(r){Ja[r]||vf.logger.warn(Sf.dedent`The desired layout: ${r} is not a valid option. + The possible options are: ${Object.keys(Ja).join(", ")}, none.`)}showMode(r){clearTimeout(this.preparingTimeout),Object.keys(ps).forEach(o=>{o===r?rt.body.classList.add(Qa[o]):rt.body.classList.remove(Qa[o])})}showErrorDisplay({message:r="",stack:o=""}){let h=r,g=o,b=r.split(` +`);b.length>1&&([h]=b,g=b.slice(1).join(` +`)),rt.getElementById("error-message").innerHTML=gs.toHtml(h),rt.getElementById("error-stack").innerHTML=gs.toHtml(g),this.showMode("ERROR")}showNoPreview(){var r,o;this.testing||(this.showMode("NOPREVIEW"),(r=this.storyRoot())==null||r.setAttribute("hidden","true"),(o=this.docsRoot())==null||o.setAttribute("hidden","true"))}showPreparingStory({immediate:r=!1}={}){clearTimeout(this.preparingTimeout),r?this.showMode("PREPARING_STORY"):this.preparingTimeout=setTimeout(()=>this.showMode("PREPARING_STORY"),hs)}showPreparingDocs({immediate:r=!1}={}){clearTimeout(this.preparingTimeout),r?this.showMode("PREPARING_DOCS"):this.preparingTimeout=setTimeout(()=>this.showMode("PREPARING_DOCS"),hs)}showMain(){this.showMode("MAIN")}showDocs(){this.storyRoot().setAttribute("hidden","true"),this.docsRoot().removeAttribute("hidden")}showStory(){this.docsRoot().setAttribute("hidden","true"),this.storyRoot().removeAttribute("hidden")}showStoryDuringRender(){rt.body.classList.add(Qa.MAIN)}},ys=class extends nf{constructor(){super(new yf,new _f),Wc.global.__STORYBOOK_PREVIEW__=this}},wf=Ne,{document:Pr}=wf.global,Of=["application/javascript","application/ecmascript","application/x-ecmascript","application/x-javascript","text/ecmascript","text/javascript","text/javascript1.0","text/javascript1.1","text/javascript1.2","text/javascript1.3","text/javascript1.4","text/javascript1.5","text/jscript","text/livescript","text/x-ecmascript","text/x-javascript","module"],Rf="script",ms="scripts-root";function Za(){let r=Pr.createEvent("Event");r.initEvent("DOMContentLoaded",!0,!0),Pr.dispatchEvent(r)}function Af(r,o,h){let g=Pr.createElement("script");g.type=r.type==="module"?"module":"text/javascript",r.src?(g.onload=o,g.onerror=o,g.src=r.src):g.textContent=r.innerText,h?h.appendChild(g):Pr.head.appendChild(g),r.parentNode.removeChild(r),r.src||o()}function vs(r,o,h=0){r[h](()=>{h++,h===r.length?o():vs(r,o,h)})}function Tf(r){let o=Pr.getElementById(ms);o?o.innerHTML="":(o=Pr.createElement("div"),o.id=ms,Pr.body.appendChild(o));let h=Array.from(r.querySelectorAll(Rf));if(h.length){let g=[];h.forEach(b=>{let _=b.getAttribute("type");(!_||Of.includes(_))&&g.push(A=>Af(b,A,o))}),g.length&&vs(g,Za,void 0)}else Za()}var Pf=ct,Ct=Ne,bs=je,Ss=rr,eo=Ne,Es=ct,Cf=Bo(),En=rr,xf=je,_s="autodocs",If="stories-mdx",Nf=class{constructor(){this.projectAnnotations={loaders:[],decorators:[],parameters:{},argsEnhancers:[],argTypesEnhancers:[],args:{},argTypes:{}},this.entries={},this.csfExports={}}importFn(r){return Cf.SynchronousPromise.resolve().then(()=>{let o=this.csfExports[r];if(!o)throw new Error(`Unknown path: ${r}`);return o})}getStoryIndex(r){var o,h;let g=Object.keys(this.csfExports),b=(h=(o=this.projectAnnotations.parameters)==null?void 0:o.options)==null?void 0:h.storySort,_=Object.entries(this.entries).map(([D,{type:q,importPath:U,...G}])=>{let z=this.csfExports[U],se=r.processCSFFileWithCache(z,U,z.default.title),ce;return q==="story"?ce=r.storyFromCSFFile({storyId:D,csfFile:se}):ce={...G,story:G.name,kind:G.title,componentId:(0,En.toId)(G.componentId||G.title),parameters:{fileName:U}},[D,ce,se.meta.parameters,this.projectAnnotations.parameters||{}]}),A;try{A=qc(_,b,g)}catch(D){throw typeof b=="function"?new Error(Es.dedent` Error sorting stories with sort parameter ${b}: > ${D.message} @@ -104,7 +104,7 @@ See https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#hoisted-csf- Are you using a V7-style sort function in V6 compatibility mode? More info: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#v7-style-story-sort - `):D}return{v:4,entries:A.reduce((D,q)=>(D[q.id]=this.entries[q.id],D),{})}}clearFilenameExports(r){this.csfExports[r]&&(Object.entries(this.entries).forEach(([o,{importPath:d}])=>{d===r&&delete this.entries[o]}),this.csfExports[r]={})}addStoriesFromExports(r,o){var d;if(r.match(/\.mdx$/)&&!r.match(/\.stories\.mdx$/)&&((d=eo.global.FEATURES)==null?void 0:d.storyStoreV7MdxErrors)!==!1)throw new Error(Ts.dedent` + `):D}return{v:4,entries:A.reduce((D,q)=>(D[q.id]=this.entries[q.id],D),{})}}clearFilenameExports(r){this.csfExports[r]&&(Object.entries(this.entries).forEach(([o,{importPath:h}])=>{h===r&&delete this.entries[o]}),this.csfExports[r]={})}addStoriesFromExports(r,o){var h;if(r.match(/\.mdx$/)&&!r.match(/\.stories\.mdx$/)&&((h=eo.global.FEATURES)==null?void 0:h.storyStoreV7MdxErrors)!==!1)throw new Error(Es.dedent` Cannot index \`.mdx\` file (\`${r}\`) in \`storyStoreV7: false\` mode. The legacy story store does not support new-style \`.mdx\` files. If the file above @@ -112,16 +112,16 @@ See https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#hoisted-csf- exclude it from your \`stories\` glob, or add to it. If you wanted to index the file, you'll need to name it \`stories.mdx\` and stick to the - legacy (6.x) MDX API, or use the new store.`);if(this.csfExports[r]===o)return;this.clearFilenameExports(r);let{default:g,__namedExportsOrder:b,..._}=o,{id:A,title:D,tags:q=[]}=g||{},U=(eo.global.STORIES||[]).map(we=>({...we,importPathMatcher:new RegExp(we.importPathMatcher)}));if(D=rs(r,U,D),!D){qf.logger.info(`Unexpected default export without title in '${r}': ${JSON.stringify(o.default)}`);return}this.csfExports[r]={...o,default:{...g,title:D}};let G=_;Array.isArray(b)&&(G={},b.forEach(we=>{let de=_[we];de&&(G[we]=de)}));let z=Object.entries(G).filter(([we])=>(0,En.isExportStory)(we,g)),se=eo.global.DOCS_OPTIONS||{},{autodocs:ce}=se,Pe=q.includes(Ps),Se=ce===!0||ce==="tag"&&Pe;if(z.length&&(q.includes(Uf)||Se)){let we=se.defaultName,de=(0,En.toId)(A||D,we);this.entries[de]={type:"docs",id:de,title:D,name:we,importPath:r,...A&&{componentId:A},tags:[...q,"docs",...Se&&!Pe?[Ps]:[]],storiesImports:[]}}z.forEach(([we,de])=>{var ve,xe,Ue;let xt=(0,En.storyNameFromExport)(we),vt=((ve=de.parameters)==null?void 0:ve.__id)||(0,En.toId)(A||D,xt),Bt=typeof de!="function"&&de.name||de.storyName||((xe=de.story)==null?void 0:xe.name)||xt;(Ue=de.parameters)!=null&&Ue.docsOnly||(this.entries[vt]={type:"story",id:vt,name:Bt,title:D,importPath:r,...A&&{componentId:A},tags:[...de.tags||q,"story"]})})}},Hf={addDecorator:"Instead, use `export const decorators = [];` in your `preview.js`.",addParameters:"Instead, use `export const parameters = {};` in your `preview.js`.",addLoader:"Instead, use `export const loaders = [];` in your `preview.js`.",addArgs:"",addArgTypes:"",addArgsEnhancer:"",addArgTypesEnhancer:"",addStepRunner:"",getGlobalRender:"",setGlobalRender:""},Zt=r=>{var o;if((o=Ct.global.FEATURES)!=null&&o.storyStoreV7)throw new Error(kf.dedent`You cannot use \`${r}\` with the new Story Store. + legacy (6.x) MDX API, or use the new store.`);if(this.csfExports[r]===o)return;this.clearFilenameExports(r);let{default:g,__namedExportsOrder:b,..._}=o,{id:A,title:D,tags:q=[]}=g||{},U=(eo.global.STORIES||[]).map(we=>({...we,importPathMatcher:new RegExp(we.importPathMatcher)}));if(D=Xi(r,U,D),!D){xf.logger.info(`Unexpected default export without title in '${r}': ${JSON.stringify(o.default)}`);return}this.csfExports[r]={...o,default:{...g,title:D}};let G=_;Array.isArray(b)&&(G={},b.forEach(we=>{let he=_[we];he&&(G[we]=he)}));let z=Object.entries(G).filter(([we])=>(0,En.isExportStory)(we,g)),se=eo.global.DOCS_OPTIONS||{},{autodocs:ce}=se,Pe=q.includes(_s),Se=ce===!0||ce==="tag"&&Pe;if(z.length&&(q.includes(If)||Se)){let we=se.defaultName,he=(0,En.toId)(A||D,we);this.entries[he]={type:"docs",id:he,title:D,name:we,importPath:r,...A&&{componentId:A},tags:[...q,"docs",...Se&&!Pe?[_s]:[]],storiesImports:[]}}z.forEach(([we,he])=>{var ve,xe,Ue;let xt=(0,En.storyNameFromExport)(we),vt=((ve=he.parameters)==null?void 0:ve.__id)||(0,En.toId)(A||D,xt),Bt=typeof he!="function"&&he.name||he.storyName||((xe=he.story)==null?void 0:xe.name)||xt;(Ue=he.parameters)!=null&&Ue.docsOnly||(this.entries[vt]={type:"story",id:vt,name:Bt,title:D,importPath:r,...A&&{componentId:A},tags:[...he.tags||q,"story"]})})}},Df={addDecorator:"Instead, use `export const decorators = [];` in your `preview.js`.",addParameters:"Instead, use `export const parameters = {};` in your `preview.js`.",addLoader:"Instead, use `export const loaders = [];` in your `preview.js`.",addArgs:"",addArgTypes:"",addArgsEnhancer:"",addArgTypesEnhancer:"",addStepRunner:"",getGlobalRender:"",setGlobalRender:""},Zt=r=>{var o;if((o=Ct.global.FEATURES)!=null&&o.storyStoreV7)throw new Error(Pf.dedent`You cannot use \`${r}\` with the new Story Store. - ${Hf[r]}`);if(!Ct.global.__STORYBOOK_CLIENT_API__)throw new Error(`Singleton client API not yet initialized, cannot call \`${r}\`.`)},Bf=r=>{var o;Zt("addDecorator"),(o=Ct.global.__STORYBOOK_CLIENT_API__)==null||o.addDecorator(r)},Wf=r=>{var o;Zt("addParameters"),(o=Ct.global.__STORYBOOK_CLIENT_API__)==null||o.addParameters(r)},Yf=r=>{var o;Zt("addLoader"),(o=Ct.global.__STORYBOOK_CLIENT_API__)==null||o.addLoader(r)},Vf=r=>{var o;Zt("addArgs"),(o=Ct.global.__STORYBOOK_CLIENT_API__)==null||o.addArgs(r)},zf=r=>{var o;Zt("addArgTypes"),(o=Ct.global.__STORYBOOK_CLIENT_API__)==null||o.addArgTypes(r)},Kf=r=>{var o;Zt("addArgsEnhancer"),(o=Ct.global.__STORYBOOK_CLIENT_API__)==null||o.addArgsEnhancer(r)},Xf=r=>{var o;Zt("addArgTypesEnhancer"),(o=Ct.global.__STORYBOOK_CLIENT_API__)==null||o.addArgTypesEnhancer(r)},Qf=r=>{var o;Zt("addStepRunner"),(o=Ct.global.__STORYBOOK_CLIENT_API__)==null||o.addStepRunner(r)},Jf=r=>{Zt("setGlobalRender"),Ct.global.__STORYBOOK_CLIENT_API__&&(Ct.global.__STORYBOOK_CLIENT_API__.facade.projectAnnotations.render=r)},Zf=new Set(["string","number","boolean","symbol"]),Cs=class{constructor({storyStore:r}={}){this.lastFileName=0,this.addDecorator=o=>{var d;(d=this.facade.projectAnnotations.decorators)==null||d.push(o)},this.addParameters=({globals:o,globalTypes:d,...g})=>{this.facade.projectAnnotations.parameters=Re(this.facade.projectAnnotations.parameters,g),o&&(this.facade.projectAnnotations.globals={...this.facade.projectAnnotations.globals,...o}),d&&(this.facade.projectAnnotations.globalTypes={...this.facade.projectAnnotations.globalTypes,...ur(d)})},this.addStepRunner=o=>{this.facade.projectAnnotations.runStep=Ga([this.facade.projectAnnotations.runStep,o].filter(Boolean))},this.addLoader=o=>{var d;(d=this.facade.projectAnnotations.loaders)==null||d.push(o)},this.addArgs=o=>{this.facade.projectAnnotations.args={...this.facade.projectAnnotations.args,...o}},this.addArgTypes=o=>{this.facade.projectAnnotations.argTypes={...this.facade.projectAnnotations.argTypes,...ur(o)}},this.addArgsEnhancer=o=>{var d;(d=this.facade.projectAnnotations.argsEnhancers)==null||d.push(o)},this.addArgTypesEnhancer=o=>{var d;(d=this.facade.projectAnnotations.argTypesEnhancers)==null||d.push(o)},this._addedExports={},this.storiesOf=(o,d)=>{if(!o&&typeof o!="string")throw new Error("Invalid or missing kind provided for stories, should be a string");if(d||Rs.logger.warn(`Missing 'module' parameter for story with a kind of '${o}'. It will break your HMR`),d){let G=Object.getPrototypeOf(d);G.exports&&G.exports.default&&Rs.logger.error(`Illegal mix of CSF default export and storiesOf calls in a single file: ${G.i}`)}let g=d&&d.id?`${d.id}`:(this.lastFileName++).toString(),b=g,_=1;for(;this._addedExports[b];)_+=1,b=`${g}-${_}`;d&&d.hot&&d.hot.accept&&(d.hot.accept(),d.hot.dispose(()=>{this.facade.clearFilenameExports(b),delete this._addedExports[b],setTimeout(()=>{var G;this._loadAddedExports(),(G=this.onImportFnChanged)==null||G.call(this,{importFn:this.importFn.bind(this)})},0)}));let A=!1,D={kind:o.toString(),add:()=>D,addDecorator:()=>D,addLoader:()=>D,addParameters:()=>D};Object.keys(this.addons).forEach(G=>{let z=this.addons[G];D[G]=(...se)=>(z.apply(D,se),D)});let q={id:(0,As.sanitize)(o),title:o,decorators:[],loaders:[],parameters:{}};this._addedExports[b]={default:q};let U=0;return D.add=(G,z,se={})=>{if(A=!0,typeof G!="string")throw new Error(`Invalid or missing storyName provided for a "${o}" story.`);if(!z||Array.isArray(z)||Zf.has(typeof z))throw new Error(`Cannot load story "${G}" in "${o}" due to invalid format. Storybook expected a function/object but received ${typeof z} instead.`);let{decorators:ce,loaders:Pe,component:Se,args:we,argTypes:de,...ve}=se,xe=se.__id||(0,As.toId)(o,G),Ue=this._addedExports[b];return Ue[`story${U}`]={name:G,parameters:{fileName:b,__id:xe,...ve},decorators:ce,loaders:Pe,args:we,argTypes:de,component:Se,render:z},U+=1,D},D.addDecorator=G=>{var z;if(A)throw new Error(`You cannot add a decorator after the first story for a kind. + ${Df[r]}`);if(!Ct.global.__STORYBOOK_CLIENT_API__)throw new Error(`Singleton client API not yet initialized, cannot call \`${r}\`.`)},Lf=r=>{var o;Zt("addDecorator"),(o=Ct.global.__STORYBOOK_CLIENT_API__)==null||o.addDecorator(r)},Ff=r=>{var o;Zt("addParameters"),(o=Ct.global.__STORYBOOK_CLIENT_API__)==null||o.addParameters(r)},$f=r=>{var o;Zt("addLoader"),(o=Ct.global.__STORYBOOK_CLIENT_API__)==null||o.addLoader(r)},jf=r=>{var o;Zt("addArgs"),(o=Ct.global.__STORYBOOK_CLIENT_API__)==null||o.addArgs(r)},kf=r=>{var o;Zt("addArgTypes"),(o=Ct.global.__STORYBOOK_CLIENT_API__)==null||o.addArgTypes(r)},Mf=r=>{var o;Zt("addArgsEnhancer"),(o=Ct.global.__STORYBOOK_CLIENT_API__)==null||o.addArgsEnhancer(r)},qf=r=>{var o;Zt("addArgTypesEnhancer"),(o=Ct.global.__STORYBOOK_CLIENT_API__)==null||o.addArgTypesEnhancer(r)},Uf=r=>{var o;Zt("addStepRunner"),(o=Ct.global.__STORYBOOK_CLIENT_API__)==null||o.addStepRunner(r)},Gf=r=>{Zt("setGlobalRender"),Ct.global.__STORYBOOK_CLIENT_API__&&(Ct.global.__STORYBOOK_CLIENT_API__.facade.projectAnnotations.render=r)},Hf=new Set(["string","number","boolean","symbol"]),ws=class{constructor({storyStore:r}={}){this.lastFileName=0,this.addDecorator=o=>{var h;(h=this.facade.projectAnnotations.decorators)==null||h.push(o)},this.addParameters=({globals:o,globalTypes:h,...g})=>{this.facade.projectAnnotations.parameters=Re(this.facade.projectAnnotations.parameters,g),o&&(this.facade.projectAnnotations.globals={...this.facade.projectAnnotations.globals,...o}),h&&(this.facade.projectAnnotations.globalTypes={...this.facade.projectAnnotations.globalTypes,...ur(h)})},this.addStepRunner=o=>{this.facade.projectAnnotations.runStep=Ga([this.facade.projectAnnotations.runStep,o].filter(Boolean))},this.addLoader=o=>{var h;(h=this.facade.projectAnnotations.loaders)==null||h.push(o)},this.addArgs=o=>{this.facade.projectAnnotations.args={...this.facade.projectAnnotations.args,...o}},this.addArgTypes=o=>{this.facade.projectAnnotations.argTypes={...this.facade.projectAnnotations.argTypes,...ur(o)}},this.addArgsEnhancer=o=>{var h;(h=this.facade.projectAnnotations.argsEnhancers)==null||h.push(o)},this.addArgTypesEnhancer=o=>{var h;(h=this.facade.projectAnnotations.argTypesEnhancers)==null||h.push(o)},this._addedExports={},this.storiesOf=(o,h)=>{if(!o&&typeof o!="string")throw new Error("Invalid or missing kind provided for stories, should be a string");if(h||bs.logger.warn(`Missing 'module' parameter for story with a kind of '${o}'. It will break your HMR`),h){let G=Object.getPrototypeOf(h);G.exports&&G.exports.default&&bs.logger.error(`Illegal mix of CSF default export and storiesOf calls in a single file: ${G.i}`)}let g=h&&h.id?`${h.id}`:(this.lastFileName++).toString(),b=g,_=1;for(;this._addedExports[b];)_+=1,b=`${g}-${_}`;h&&h.hot&&h.hot.accept&&(h.hot.accept(),h.hot.dispose(()=>{this.facade.clearFilenameExports(b),delete this._addedExports[b],setTimeout(()=>{var G;this._loadAddedExports(),(G=this.onImportFnChanged)==null||G.call(this,{importFn:this.importFn.bind(this)})},0)}));let A=!1,D={kind:o.toString(),add:()=>D,addDecorator:()=>D,addLoader:()=>D,addParameters:()=>D};Object.keys(this.addons).forEach(G=>{let z=this.addons[G];D[G]=(...se)=>(z.apply(D,se),D)});let q={id:(0,Ss.sanitize)(o),title:o,decorators:[],loaders:[],parameters:{}};this._addedExports[b]={default:q};let U=0;return D.add=(G,z,se={})=>{if(A=!0,typeof G!="string")throw new Error(`Invalid or missing storyName provided for a "${o}" story.`);if(!z||Array.isArray(z)||Hf.has(typeof z))throw new Error(`Cannot load story "${G}" in "${o}" due to invalid format. Storybook expected a function/object but received ${typeof z} instead.`);let{decorators:ce,loaders:Pe,component:Se,args:we,argTypes:he,...ve}=se,xe=se.__id||(0,Ss.toId)(o,G),Ue=this._addedExports[b];return Ue[`story${U}`]={name:G,parameters:{fileName:b,__id:xe,...ve},decorators:ce,loaders:Pe,args:we,argTypes:he,component:Se,render:z},U+=1,D},D.addDecorator=G=>{var z;if(A)throw new Error(`You cannot add a decorator after the first story for a kind. Read more here: https://github.com/storybookjs/storybook/blob/master/MIGRATION.md#can-no-longer-add-decoratorsparameters-after-stories`);return(z=q.decorators)==null||z.push(G),D},D.addLoader=G=>{var z;if(A)throw new Error("You cannot add a loader after the first story for a kind.");return(z=q.loaders)==null||z.push(G),D},D.addParameters=({component:G,args:z,argTypes:se,tags:ce,...Pe})=>{if(A)throw new Error(`You cannot add parameters after the first story for a kind. -Read more here: https://github.com/storybookjs/storybook/blob/master/MIGRATION.md#can-no-longer-add-decoratorsparameters-after-stories`);return q.parameters=Re(q.parameters,Pe),G&&(q.component=G),z&&(q.args={...q.args,...z}),se&&(q.argTypes={...q.argTypes,...se}),ce&&(q.tags=ce),D},D},this.raw=()=>{var o;return(o=this.storyStore)==null?void 0:o.raw()},this.facade=new Gf,this.addons={},this.storyStore=r}importFn(r){return this.facade.importFn(r)}getStoryIndex(){if(!this.storyStore)throw new Error("Cannot get story index before setting storyStore");return this.facade.getStoryIndex(this.storyStore)}_loadAddedExports(){Object.entries(this._addedExports).forEach(([r,o])=>this.facade.addStoriesFromExports(r,o))}get _storyStore(){return this.storyStore}},eh=Ne,th=Qr,xs=()=>{let{document:r}=eh.global;return r&&r.location&&r.location.search?(0,th.parse)(r.location.search,{ignoreQueryPrefix:!0}):{}},rh=r=>xs()[r],Ht=Ne,nh=Ea,ah=Qe,Is=je;function oh(r){let o=null;Array.isArray(r)?o=r:r.keys&&(o=[r]);let d=new Map;if(o)o.forEach(g=>{g.keys().forEach(b=>{try{let _=g(b);d.set(typeof g.resolve=="function"?g.resolve(b):b,_)}catch(_){let A=_.message&&_.stack?`${_.message} - ${_.stack}`:_.toString();Is.logger.error(`Unexpected error while loading ${b}: ${A}`)}})});else{let g=r();Array.isArray(g)&&g.every(b=>b.default!=null)?d=new Map(g.map((b,_)=>[`exports-map-${_}`,b])):g&&Is.logger.warn(`Loader function passed to 'configure' should return void or an array of module exports that all contain a 'default' export. Received: ${JSON.stringify(g)}`)}return d}function ih(r,o){var d,g,b;let _=((g=(d=o==null?void 0:o.hot)==null?void 0:d.data)==null?void 0:g.lastExportsMap)||new Map;(b=o==null?void 0:o.hot)!=null&&b.dispose&&(o.hot.accept(),o.hot.dispose(U=>{U.lastExportsMap=_}));let A=oh(r),D=new Map;Array.from(A.entries()).filter(([,U])=>!!U.default).filter(([U,G])=>_.get(U)!==G).forEach(([U,G])=>D.set(U,G));let q=new Map;return Array.from(_.keys()).filter(U=>!A.has(U)).forEach(U=>{let G=_.get(U);G&&q.set(U,G)}),_=A,{added:D,removed:q}}var{FEATURES:Ns}=Ht.global,Jn=r=>()=>{throw new Error(`@storybook/client-api:${r} was removed in storyStoreV7.`)};function sh(r,{decorateStory:o,render:d}={}){var g,b;if(Ht.global&&(Ht.global.IS_STORYBOOK=!0),Ns!=null&&Ns.storyStoreV7)return{forceReRender:Jn("forceReRender"),configure:Jn("configure"),clientApi:{storiesOf:Jn("clientApi.storiesOf"),raw:Jn("raw")}};let _=(0,nh.createBrowserChannel)({page:"preview"});W.setChannel(_);let A=((g=Ht.global)==null?void 0:g.__STORYBOOK_CLIENT_API__)||new Cs,D=((b=Ht.global)==null?void 0:b.__STORYBOOK_PREVIEW__)||new _s,q=!1,U=z=>A.importFn(z);function G(){let z=A.getStoryIndex();D.onStoriesChanged({storyIndex:z,importFn:U})}return A.onImportFnChanged=G,A.storyStore=D.storyStore,Ht.global&&(Ht.global.__STORYBOOK_CLIENT_API__=A,Ht.global.__STORYBOOK_ADDONS_CHANNEL__=_,Ht.global.__STORYBOOK_PREVIEW__=D,Ht.global.__STORYBOOK_STORY_STORE__=D.storyStore),{forceReRender:()=>_.emit(ah.FORCE_RE_RENDER),clientApi:A,configure(z,se,ce,Pe=!0){if(Pe)throw new Error("unexpected configure() call");A.addParameters({renderer:z});let Se=()=>{let{added:we,removed:de}=ih(se,ce);return A._loadAddedExports(),Array.from(we.entries()).forEach(([ve,xe])=>A.facade.addStoriesFromExports(ve,xe)),Array.from(de.entries()).forEach(([ve])=>A.facade.clearFilenameExports(ve)),{render:d,...A.facade.projectAnnotations,renderToCanvas:r,applyDecorators:o}};q?(Se(),G()):(D.initialize({getStoryIndex:()=>A.getStoryIndex(),importFn:U,getProjectAnnotations:Se}),q=!0)}}}})(Rc);var Ac=Rc.exports,Tc={},In;typeof window<"u"?In=window:typeof ot<"u"?In=ot:typeof self<"u"?In=self:In={};var nE=In;/*! +Read more here: https://github.com/storybookjs/storybook/blob/master/MIGRATION.md#can-no-longer-add-decoratorsparameters-after-stories`);return q.parameters=Re(q.parameters,Pe),G&&(q.component=G),z&&(q.args={...q.args,...z}),se&&(q.argTypes={...q.argTypes,...se}),ce&&(q.tags=ce),D},D},this.raw=()=>{var o;return(o=this.storyStore)==null?void 0:o.raw()},this.facade=new Nf,this.addons={},this.storyStore=r}importFn(r){return this.facade.importFn(r)}getStoryIndex(){if(!this.storyStore)throw new Error("Cannot get story index before setting storyStore");return this.facade.getStoryIndex(this.storyStore)}_loadAddedExports(){Object.entries(this._addedExports).forEach(([r,o])=>this.facade.addStoriesFromExports(r,o))}get _storyStore(){return this.storyStore}},Bf=Ne,Wf=Qr,Os=()=>{let{document:r}=Bf.global;return r&&r.location&&r.location.search?(0,Wf.parse)(r.location.search,{ignoreQueryPrefix:!0}):{}},Yf=r=>Os()[r],Ht=Ne,Vf=Ea,zf=Qe,Rs=je;function Kf(r){let o=null;Array.isArray(r)?o=r:r.keys&&(o=[r]);let h=new Map;if(o)o.forEach(g=>{g.keys().forEach(b=>{try{let _=g(b);h.set(typeof g.resolve=="function"?g.resolve(b):b,_)}catch(_){let A=_.message&&_.stack?`${_.message} + ${_.stack}`:_.toString();Rs.logger.error(`Unexpected error while loading ${b}: ${A}`)}})});else{let g=r();Array.isArray(g)&&g.every(b=>b.default!=null)?h=new Map(g.map((b,_)=>[`exports-map-${_}`,b])):g&&Rs.logger.warn(`Loader function passed to 'configure' should return void or an array of module exports that all contain a 'default' export. Received: ${JSON.stringify(g)}`)}return h}function Xf(r,o){var h,g,b;let _=((g=(h=o==null?void 0:o.hot)==null?void 0:h.data)==null?void 0:g.lastExportsMap)||new Map;(b=o==null?void 0:o.hot)!=null&&b.dispose&&(o.hot.accept(),o.hot.dispose(U=>{U.lastExportsMap=_}));let A=Kf(r),D=new Map;Array.from(A.entries()).filter(([,U])=>!!U.default).filter(([U,G])=>_.get(U)!==G).forEach(([U,G])=>D.set(U,G));let q=new Map;return Array.from(_.keys()).filter(U=>!A.has(U)).forEach(U=>{let G=_.get(U);G&&q.set(U,G)}),_=A,{added:D,removed:q}}var{FEATURES:As}=Ht.global,Jn=r=>()=>{throw new Error(`@storybook/client-api:${r} was removed in storyStoreV7.`)};function Qf(r,{decorateStory:o,render:h}={}){var g,b;if(Ht.global&&(Ht.global.IS_STORYBOOK=!0),As!=null&&As.storyStoreV7)return{forceReRender:Jn("forceReRender"),configure:Jn("configure"),clientApi:{storiesOf:Jn("clientApi.storiesOf"),raw:Jn("raw")}};let _=(0,Vf.createBrowserChannel)({page:"preview"});W.setChannel(_);let A=((g=Ht.global)==null?void 0:g.__STORYBOOK_CLIENT_API__)||new ws,D=((b=Ht.global)==null?void 0:b.__STORYBOOK_PREVIEW__)||new ys,q=!1,U=z=>A.importFn(z);function G(){let z=A.getStoryIndex();D.onStoriesChanged({storyIndex:z,importFn:U})}return A.onImportFnChanged=G,A.storyStore=D.storyStore,Ht.global&&(Ht.global.__STORYBOOK_CLIENT_API__=A,Ht.global.__STORYBOOK_ADDONS_CHANNEL__=_,Ht.global.__STORYBOOK_PREVIEW__=D,Ht.global.__STORYBOOK_STORY_STORE__=D.storyStore),{forceReRender:()=>_.emit(zf.FORCE_RE_RENDER),clientApi:A,configure(z,se,ce,Pe=!0){if(Pe)throw new Error("unexpected configure() call");A.addParameters({renderer:z});let Se=()=>{let{added:we,removed:he}=Xf(se,ce);return A._loadAddedExports(),Array.from(we.entries()).forEach(([ve,xe])=>A.facade.addStoriesFromExports(ve,xe)),Array.from(he.entries()).forEach(([ve])=>A.facade.clearFilenameExports(ve)),{render:h,...A.facade.projectAnnotations,renderToCanvas:r,applyDecorators:o}};q?(Se(),G()):(D.initialize({getStoryIndex:()=>A.getStoryIndex(),importFn:U,getProjectAnnotations:Se}),q=!0)}}}})(gc);var yc=gc.exports,mc={},In;typeof window<"u"?In=window:typeof ot<"u"?In=ot:typeof self<"u"?In=self:In={};var sE=In;/*! * escape-html * Copyright(c) 2012-2013 TJ Holowaychuk * Copyright(c) 2015 Andreas Lubbe * Copyright(c) 2015 Tiancheng "Timothy" Gu * MIT Licensed - */var aE=/["'&<>]/,oE=iE;function iE(t){var e=""+t,n=aE.exec(e);if(!n)return e;var a,l="",i=0,f=0;for(i=n.index;i=0)&&Object.prototype.propertyIsEnumerable.call(O,j)&&(F[j]=O[j])}return F}function c(O,P){if(O==null)return{};var F={},j=Object.keys(O),V,X;for(X=0;X=0)&&(F[V]=O[V]);return F}function p(O,P){if(!(O instanceof P))throw new TypeError("Cannot call a class as a function")}function y(O,P){for(var F=0;FO.length)&&(P=O.length);for(var F=0,j=new Array(P);F0&&arguments[0]!==void 0?arguments[0]:+new Date,e=ja.addons.getChannel();e.emit(Dr.SET,{knobs:ar.getAll(),timestamp:t})}var xc=function(){ar.markAllUnused(),Ki()},dE=(0,cE.default)(xc,hE);function Ic(t){var e=t.name,n=t.value,a=ar.get(e);a.value=n,!wa.options.disableForceUpdate&&!a.disableForceUpdate&&(!wa.options.disableDebounce&&!a.disableDebounce?dE():xc())}function Nc(t){var e=ar.get(t.name);e.callback&&e.callback()!==!1&&Ki()}function Dc(){ar.reset(),ka(!1)}function Lc(){ar.reset(),Ki(),ka(!1)}function pE(){ar.reset();var t=ja.addons.getChannel();t.removeListener(Dr.CHANGE,Ic),t.removeListener(Dr.CLICK,Nc),t.removeListener(zi.STORY_CHANGED,Dc),t.removeListener(Dr.RESET,Lc),ar.unsubscribe(ka)}function gE(){var t=ja.addons.getChannel();return t.on(Dr.CHANGE,Ic),t.on(Dr.CLICK,Nc),t.on(zi.STORY_CHANGED,Dc),t.on(Dr.RESET,Lc),ar.subscribe(ka),pE}function yE(){(0,uE.useEffect)(gE,[])}(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n={knob:!0,text:!0,boolean:!0,number:!0,color:!0,object:!0,select:!0,radios:!0,array:!0,date:!0,button:!0,files:!0,optionsKnob:!0,withKnobs:!0};e.array=J,e.boolean=v,e.button=H,e.color=T,e.date=C,e.files=K,e.knob=y,e.number=E,e.object=I,e.optionsKnob=Z,e.radios=ne,e.select=Y,e.text=m,e.withKnobs=void 0;var a=Oc,l=Xe;Object.keys(l).forEach(function(B){B==="default"||B==="__esModule"||Object.prototype.hasOwnProperty.call(n,B)||B in e&&e[B]===l[B]||Object.defineProperty(e,B,{enumerable:!0,get:function(){return l[B]}})});var i=Gn;function f(B){"@babel/helpers - typeof";return f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(W){return typeof W}:function(W){return W&&typeof Symbol=="function"&&W.constructor===Symbol&&W!==Symbol.prototype?"symbol":typeof W},f(B)}function u(B,W){var re=Object.keys(B);if(Object.getOwnPropertySymbols){var he=Object.getOwnPropertySymbols(B);W&&(he=he.filter(function(O){return Object.getOwnPropertyDescriptor(B,O).enumerable})),re.push.apply(re,he)}return re}function s(B){for(var W=1;W2&&arguments[2]!==void 0?arguments[2]:{},he=arguments.length>3?arguments[3]:void 0,O={min:0,max:10,step:1},P=re.range?s(s({},O),re):re,F=s(s({type:"number"},P),{},{value:W,groupId:he});return i.manager.knob(B,F)}function T(B,W,re){return i.manager.knob(B,{type:"color",value:W,groupId:re})}function I(B,W,re){return i.manager.knob(B,{type:"object",value:W,groupId:re})}function Y(B,W,re,he){return i.manager.knob(B,{type:"select",selectV2:!0,options:W,value:re,groupId:he})}function ne(B,W,re,he){return i.manager.knob(B,{type:"radios",options:W,value:re,groupId:he})}function J(B,W){var re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:",",he=arguments.length>3?arguments[3]:void 0;return i.manager.knob(B,{type:"array",value:W,separator:re,groupId:he})}function C(B){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new Date,re=arguments.length>2?arguments[2]:void 0,he=W?W.getTime():new Date().getTime();return i.manager.knob(B,{type:"date",value:he,groupId:re})}function H(B,W,re){return i.manager.knob(B,{type:"button",callback:W,hideLabel:!0,groupId:re})}function K(B,W){var re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],he=arguments.length>3?arguments[3]:void 0;return i.manager.knob(B,{type:"files",accept:W,value:re,groupId:he})}function Z(B,W,re,he,O){return i.manager.knob(B,{type:"options",options:W,value:re,optionsObj:he,groupId:O})}var oe={escapeHTML:!0},ee=(0,a.makeDecorator)({name:"withKnobs",parameterName:"knobs",skipIfNoParametersOrOptions:!1,wrapper:function(W,re,he){var O=he.options,P=he.parameters,F=P||O,j=s(s({},oe),F),V=a.addons.getChannel();return i.manager.setChannel(V),i.manager.setOptions(j),V.emit(l.SET_OPTIONS,j),(0,i.registerKnobs)(),W(re)}});e.withKnobs=ee,t&&t.hot&&t.hot.decline&&t.hot.decline()})(Jo,Jo.exports);var CE=Jo.exports;export{CE as d,mg as i,Sg as r}; + */var lE=/["'&<>]/,uE=cE;function cE(t){var e=""+t,n=lE.exec(e);if(!n)return e;var a,l="",i=0,f=0;for(i=n.index;i=0)&&Object.prototype.propertyIsEnumerable.call(O,j)&&(F[j]=O[j])}return F}function c(O,P){if(O==null)return{};var F={},j=Object.keys(O),V,X;for(X=0;X=0)&&(F[V]=O[V]);return F}function p(O,P){if(!(O instanceof P))throw new TypeError("Cannot call a class as a function")}function y(O,P){for(var F=0;FO.length)&&(P=O.length);for(var F=0,j=new Array(P);F0&&arguments[0]!==void 0?arguments[0]:+new Date,e=ja.addons.getChannel();e.emit(Dr.SET,{knobs:ar.getAll(),timestamp:t})}var Sc=function(){ar.markAllUnused(),Hi()},mE=(0,pE.default)(Sc,yE);function Ec(t){var e=t.name,n=t.value,a=ar.get(e);a.value=n,!wa.options.disableForceUpdate&&!a.disableForceUpdate&&(!wa.options.disableDebounce&&!a.disableDebounce?mE():Sc())}function _c(t){var e=ar.get(t.name);e.callback&&e.callback()!==!1&&Hi()}function wc(){ar.reset(),ka(!1)}function Oc(){ar.reset(),Hi(),ka(!1)}function vE(){ar.reset();var t=ja.addons.getChannel();t.removeListener(Dr.CHANGE,Ec),t.removeListener(Dr.CLICK,_c),t.removeListener(Gi.STORY_CHANGED,wc),t.removeListener(Dr.RESET,Oc),ar.unsubscribe(ka)}function bE(){var t=ja.addons.getChannel();return t.on(Dr.CHANGE,Ec),t.on(Dr.CLICK,_c),t.on(Gi.STORY_CHANGED,wc),t.on(Dr.RESET,Oc),ar.subscribe(ka),vE}function SE(){(0,hE.useEffect)(bE,[])}(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n={knob:!0,text:!0,boolean:!0,number:!0,color:!0,object:!0,select:!0,radios:!0,array:!0,date:!0,button:!0,files:!0,optionsKnob:!0,withKnobs:!0};e.array=J,e.boolean=v,e.button=H,e.color=T,e.date=C,e.files=K,e.knob=y,e.number=E,e.object=I,e.optionsKnob=Z,e.radios=ne,e.select=Y,e.text=m,e.withKnobs=void 0;var a=pc,l=Xe;Object.keys(l).forEach(function(B){B==="default"||B==="__esModule"||Object.prototype.hasOwnProperty.call(n,B)||B in e&&e[B]===l[B]||Object.defineProperty(e,B,{enumerable:!0,get:function(){return l[B]}})});var i=Gn;function f(B){"@babel/helpers - typeof";return f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(W){return typeof W}:function(W){return W&&typeof Symbol=="function"&&W.constructor===Symbol&&W!==Symbol.prototype?"symbol":typeof W},f(B)}function u(B,W){var re=Object.keys(B);if(Object.getOwnPropertySymbols){var de=Object.getOwnPropertySymbols(B);W&&(de=de.filter(function(O){return Object.getOwnPropertyDescriptor(B,O).enumerable})),re.push.apply(re,de)}return re}function s(B){for(var W=1;W2&&arguments[2]!==void 0?arguments[2]:{},de=arguments.length>3?arguments[3]:void 0,O={min:0,max:10,step:1},P=re.range?s(s({},O),re):re,F=s(s({type:"number"},P),{},{value:W,groupId:de});return i.manager.knob(B,F)}function T(B,W,re){return i.manager.knob(B,{type:"color",value:W,groupId:re})}function I(B,W,re){return i.manager.knob(B,{type:"object",value:W,groupId:re})}function Y(B,W,re,de){return i.manager.knob(B,{type:"select",selectV2:!0,options:W,value:re,groupId:de})}function ne(B,W,re,de){return i.manager.knob(B,{type:"radios",options:W,value:re,groupId:de})}function J(B,W){var re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:",",de=arguments.length>3?arguments[3]:void 0;return i.manager.knob(B,{type:"array",value:W,separator:re,groupId:de})}function C(B){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new Date,re=arguments.length>2?arguments[2]:void 0,de=W?W.getTime():new Date().getTime();return i.manager.knob(B,{type:"date",value:de,groupId:re})}function H(B,W,re){return i.manager.knob(B,{type:"button",callback:W,hideLabel:!0,groupId:re})}function K(B,W){var re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],de=arguments.length>3?arguments[3]:void 0;return i.manager.knob(B,{type:"files",accept:W,value:re,groupId:de})}function Z(B,W,re,de,O){return i.manager.knob(B,{type:"options",options:W,value:re,optionsObj:de,groupId:O})}var oe={escapeHTML:!0},ee=(0,a.makeDecorator)({name:"withKnobs",parameterName:"knobs",skipIfNoParametersOrOptions:!1,wrapper:function(W,re,de){var O=de.options,P=de.parameters,F=P||O,j=s(s({},oe),F),V=a.addons.getChannel();return i.manager.setChannel(V),i.manager.setOptions(j),V.emit(l.SET_OPTIONS,j),(0,i.registerKnobs)(),W(re)}});e.withKnobs=ee,t&&t.hot&&t.hot.decline&&t.hot.decline()})(Yo,Yo.exports);var DE=Yo.exports;export{DE as d,Eg as i,Og as r}; diff --git a/docs/assets/index-CkEa8p3r.js b/docs/assets/index-DumwFUzA.js similarity index 99% rename from docs/assets/index-CkEa8p3r.js rename to docs/assets/index-DumwFUzA.js index f0ef1ded..814227cc 100644 --- a/docs/assets/index-CkEa8p3r.js +++ b/docs/assets/index-DumwFUzA.js @@ -1,4 +1,4 @@ -import{c as dt,g as At}from"./_commonjsHelpers-BosuxZz1.js";import{r as kt}from"./index-CBqU2yxZ.js";import{r as wt}from"./index-DZGZymok.js";import{i as Nt}from"./index-DfmhmaGJ.js";function Tt(ot,X){for(var L=0;Lh[d]})}}}return Object.freeze(Object.defineProperty(ot,Symbol.toStringTag,{value:"Module"}))}var _t={exports:{}};/*! +import{c as dt,g as At}from"./_commonjsHelpers-BosuxZz1.js";import{r as kt}from"./index-CBqU2yxZ.js";import{r as wt}from"./index-DZGZymok.js";import{i as Nt}from"./index-CAen7T_W.js";function Tt(ot,X){for(var L=0;Lh[d]})}}}return Object.freeze(Object.defineProperty(ot,Symbol.toStringTag,{value:"Module"}))}var _t={exports:{}};/*! * Quill Editor v1.3.7 * https://quilljs.com/ * Copyright (c) 2014, Jason Chen diff --git a/docs/assets/index-CeKoIcWT.js b/docs/assets/index-mVz13F_n.js similarity index 99% rename from docs/assets/index-CeKoIcWT.js rename to docs/assets/index-mVz13F_n.js index f23ec6ad..68b99441 100644 --- a/docs/assets/index-CeKoIcWT.js +++ b/docs/assets/index-mVz13F_n.js @@ -1,3 +1,3 @@ -import{p as Tu}from"./mapValues-CZh2vnSw.js";import{g as vu}from"./_commonjsHelpers-BosuxZz1.js";var Fu={},X={},Cu={exports:{}};(function(){function e(n){if(n==null)return!1;switch(n.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"Literal":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":return!0}return!1}function u(n){if(n==null)return!1;switch(n.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return!0}return!1}function i(n){if(n==null)return!1;switch(n.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":return!0}return!1}function s(n){return i(n)||n!=null&&n.type==="FunctionDeclaration"}function D(n){switch(n.type){case"IfStatement":return n.alternate!=null?n.alternate:n.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return n.body}return null}function F(n){var f;if(n.type!=="IfStatement"||n.alternate==null)return!1;f=n.consequent;do{if(f.type==="IfStatement"&&f.alternate==null)return!0;f=D(f)}while(f);return!1}Cu.exports={isExpression:e,isStatement:i,isIterationStatement:u,isSourceElement:s,isProblematicIfStatement:F,trailingStatement:D}})();var xu=Cu.exports,Eu={exports:{}};(function(){var e,u,i,s,D,F;u={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,NonAsciiIdentifierPart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/},e={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};function n(p){return 48<=p&&p<=57}function f(p){return 48<=p&&p<=57||97<=p&&p<=102||65<=p&&p<=70}function g(p){return p>=48&&p<=55}i=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279];function v(p){return p===32||p===9||p===11||p===12||p===160||p>=5760&&i.indexOf(p)>=0}function k(p){return p===10||p===13||p===8232||p===8233}function _(p){if(p<=65535)return String.fromCharCode(p);var V=String.fromCharCode(Math.floor((p-65536)/1024)+55296),$=String.fromCharCode((p-65536)%1024+56320);return V+$}for(s=new Array(128),F=0;F<128;++F)s[F]=F>=97&&F<=122||F>=65&&F<=90||F===36||F===95;for(D=new Array(128),F=0;F<128;++F)D[F]=F>=97&&F<=122||F>=65&&F<=90||F>=48&&F<=57||F===36||F===95;function E(p){return p<128?s[p]:u.NonAsciiIdentifierStart.test(_(p))}function y(p){return p<128?D[p]:u.NonAsciiIdentifierPart.test(_(p))}function m(p){return p<128?s[p]:e.NonAsciiIdentifierStart.test(_(p))}function c(p){return p<128?D[p]:e.NonAsciiIdentifierPart.test(_(p))}Eu.exports={isDecimalDigit:n,isHexDigit:f,isOctalDigit:g,isWhiteSpace:v,isLineTerminator:k,isIdentifierStartES5:E,isIdentifierPartES5:y,isIdentifierStartES6:m,isIdentifierPartES6:c}})();var ou=Eu.exports,lu={exports:{}};(function(){var e=ou;function u(E){switch(E){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return!0;default:return!1}}function i(E,y){return!y&&E==="yield"?!1:s(E,y)}function s(E,y){if(y&&u(E))return!0;switch(E.length){case 2:return E==="if"||E==="in"||E==="do";case 3:return E==="var"||E==="for"||E==="new"||E==="try";case 4:return E==="this"||E==="else"||E==="case"||E==="void"||E==="with"||E==="enum";case 5:return E==="while"||E==="break"||E==="catch"||E==="throw"||E==="const"||E==="yield"||E==="class"||E==="super";case 6:return E==="return"||E==="typeof"||E==="delete"||E==="switch"||E==="export"||E==="import";case 7:return E==="default"||E==="finally"||E==="extends";case 8:return E==="function"||E==="continue"||E==="debugger";case 10:return E==="instanceof";default:return!1}}function D(E,y){return E==="null"||E==="true"||E==="false"||i(E,y)}function F(E,y){return E==="null"||E==="true"||E==="false"||s(E,y)}function n(E){return E==="eval"||E==="arguments"}function f(E){var y,m,c;if(E.length===0||(c=E.charCodeAt(0),!e.isIdentifierStartES5(c)))return!1;for(y=1,m=E.length;y=m||(p=E.charCodeAt(y),!(56320<=p&&p<=57343)))return!1;c=g(c,p)}if(!V(c))return!1;V=e.isIdentifierPartES6}return!0}function k(E,y){return f(E)&&!D(E,y)}function _(E,y){return v(E)&&!F(E,y)}lu.exports={isKeywordES5:i,isKeywordES6:s,isReservedWordES5:D,isReservedWordES6:F,isRestrictedWord:n,isIdentifierNameES5:f,isIdentifierNameES6:v,isIdentifierES5:k,isIdentifierES6:_}})();var Nu=lu.exports;(function(){X.ast=xu,X.code=ou,X.keyword=Nu})();var H={},J={};const Su="doctrine",wu="JSDoc parser",bu="https://github.com/eslint/doctrine",Ru="lib/doctrine.js",Ou="3.0.0",_u={node:">=6.0.0"},Pu={lib:"./lib"},ku=["lib"],Lu=[{name:"Nicholas C. Zakas",email:"nicholas+npm@nczconsulting.com",web:"https://www.nczonline.net"},{name:"Yusuke Suzuki",email:"utatane.tea@gmail.com",web:"https://github.com/Constellation"}],Iu="eslint/doctrine",Mu={coveralls:"^3.0.1",dateformat:"^1.0.11",eslint:"^1.10.3","eslint-release":"^1.0.0",linefix:"^0.1.1",mocha:"^3.4.2","npm-license":"^0.3.1",nyc:"^10.3.2",semver:"^5.0.3",shelljs:"^0.5.3","shelljs-nodecli":"^0.1.1",should:"^5.0.1"},Uu="Apache-2.0",Vu={pretest:"npm run lint",test:"nyc mocha",coveralls:"nyc report --reporter=text-lcov | coveralls",lint:"eslint lib/","generate-release":"eslint-generate-release","generate-alpharelease":"eslint-generate-prerelease alpha","generate-betarelease":"eslint-generate-prerelease beta","generate-rcrelease":"eslint-generate-prerelease rc","publish-release":"eslint-publish-release"},Wu={esutils:"^2.0.2"},$u={name:Su,description:wu,homepage:bu,main:Ru,version:Ou,engines:_u,directories:Pu,files:ku,maintainers:Lu,repository:Iu,devDependencies:Mu,license:Uu,scripts:Vu,dependencies:Wu};function ju(e,u){if(!e)throw new Error(u||"unknown assertion error")}var Ku=ju;(function(){var e;e=$u.version,J.VERSION=e;function u(s){this.name="DoctrineError",this.message=s}u.prototype=function(){var s=function(){};return s.prototype=Error.prototype,new s}(),u.prototype.constructor=u,J.DoctrineError=u;function i(s){throw new u(s)}J.throwError=i,J.assert=Ku})();(function(){var e,u,i,s,D,F,n,f,g,v,k,_;g=X,v=J,e={NullableLiteral:"NullableLiteral",AllLiteral:"AllLiteral",NullLiteral:"NullLiteral",UndefinedLiteral:"UndefinedLiteral",VoidLiteral:"VoidLiteral",UnionType:"UnionType",ArrayType:"ArrayType",RecordType:"RecordType",FieldType:"FieldType",FunctionType:"FunctionType",ParameterType:"ParameterType",RestType:"RestType",NonNullableType:"NonNullableType",OptionalType:"OptionalType",NullableType:"NullableType",NameExpression:"NameExpression",TypeApplication:"TypeApplication",StringLiteralType:"StringLiteralType",NumericLiteralType:"NumericLiteralType",BooleanLiteralType:"BooleanLiteralType"},u={ILLEGAL:0,DOT_LT:1,REST:2,LT:3,GT:4,LPAREN:5,RPAREN:6,LBRACE:7,RBRACE:8,LBRACK:9,RBRACK:10,COMMA:11,COLON:12,STAR:13,PIPE:14,QUESTION:15,BANG:16,EQUAL:17,NAME:18,STRING:19,NUMBER:20,EOF:21};function E(r){return"><(){}[],:*|?!=".indexOf(String.fromCharCode(r))===-1&&!g.code.isWhiteSpace(r)&&!g.code.isLineTerminator(r)}function y(r,t,B,A){this._previous=r,this._index=t,this._token=B,this._value=A}y.prototype.restore=function(){F=this._previous,D=this._index,n=this._token,f=this._value},y.save=function(){return new y(F,D,n,f)};function m(r,t){return _&&(r.range=[t[0]+k,t[1]+k]),r}function c(){var r=i.charAt(D);return D+=1,r}function p(r){var t,B,A,a=0;for(B=r==="u"?4:2,t=0;t=48&&p<=55}i=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279];function v(p){return p===32||p===9||p===11||p===12||p===160||p>=5760&&i.indexOf(p)>=0}function k(p){return p===10||p===13||p===8232||p===8233}function _(p){if(p<=65535)return String.fromCharCode(p);var V=String.fromCharCode(Math.floor((p-65536)/1024)+55296),$=String.fromCharCode((p-65536)%1024+56320);return V+$}for(s=new Array(128),F=0;F<128;++F)s[F]=F>=97&&F<=122||F>=65&&F<=90||F===36||F===95;for(D=new Array(128),F=0;F<128;++F)D[F]=F>=97&&F<=122||F>=65&&F<=90||F>=48&&F<=57||F===36||F===95;function E(p){return p<128?s[p]:u.NonAsciiIdentifierStart.test(_(p))}function y(p){return p<128?D[p]:u.NonAsciiIdentifierPart.test(_(p))}function m(p){return p<128?s[p]:e.NonAsciiIdentifierStart.test(_(p))}function c(p){return p<128?D[p]:e.NonAsciiIdentifierPart.test(_(p))}Eu.exports={isDecimalDigit:n,isHexDigit:f,isOctalDigit:g,isWhiteSpace:v,isLineTerminator:k,isIdentifierStartES5:E,isIdentifierPartES5:y,isIdentifierStartES6:m,isIdentifierPartES6:c}})();var ou=Eu.exports,lu={exports:{}};(function(){var e=ou;function u(E){switch(E){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return!0;default:return!1}}function i(E,y){return!y&&E==="yield"?!1:s(E,y)}function s(E,y){if(y&&u(E))return!0;switch(E.length){case 2:return E==="if"||E==="in"||E==="do";case 3:return E==="var"||E==="for"||E==="new"||E==="try";case 4:return E==="this"||E==="else"||E==="case"||E==="void"||E==="with"||E==="enum";case 5:return E==="while"||E==="break"||E==="catch"||E==="throw"||E==="const"||E==="yield"||E==="class"||E==="super";case 6:return E==="return"||E==="typeof"||E==="delete"||E==="switch"||E==="export"||E==="import";case 7:return E==="default"||E==="finally"||E==="extends";case 8:return E==="function"||E==="continue"||E==="debugger";case 10:return E==="instanceof";default:return!1}}function D(E,y){return E==="null"||E==="true"||E==="false"||i(E,y)}function F(E,y){return E==="null"||E==="true"||E==="false"||s(E,y)}function n(E){return E==="eval"||E==="arguments"}function f(E){var y,m,c;if(E.length===0||(c=E.charCodeAt(0),!e.isIdentifierStartES5(c)))return!1;for(y=1,m=E.length;y=m||(p=E.charCodeAt(y),!(56320<=p&&p<=57343)))return!1;c=g(c,p)}if(!V(c))return!1;V=e.isIdentifierPartES6}return!0}function k(E,y){return f(E)&&!D(E,y)}function _(E,y){return v(E)&&!F(E,y)}lu.exports={isKeywordES5:i,isKeywordES6:s,isReservedWordES5:D,isReservedWordES6:F,isRestrictedWord:n,isIdentifierNameES5:f,isIdentifierNameES6:v,isIdentifierES5:k,isIdentifierES6:_}})();var Nu=lu.exports;(function(){X.ast=xu,X.code=ou,X.keyword=Nu})();var H={},J={};const Su="doctrine",wu="JSDoc parser",bu="https://github.com/eslint/doctrine",Ru="lib/doctrine.js",Ou="3.0.0",_u={node:">=6.0.0"},Pu={lib:"./lib"},ku=["lib"],Lu=[{name:"Nicholas C. Zakas",email:"nicholas+npm@nczconsulting.com",web:"https://www.nczonline.net"},{name:"Yusuke Suzuki",email:"utatane.tea@gmail.com",web:"https://github.com/Constellation"}],Iu="eslint/doctrine",Mu={coveralls:"^3.0.1",dateformat:"^1.0.11",eslint:"^1.10.3","eslint-release":"^1.0.0",linefix:"^0.1.1",mocha:"^3.4.2","npm-license":"^0.3.1",nyc:"^10.3.2",semver:"^5.0.3",shelljs:"^0.5.3","shelljs-nodecli":"^0.1.1",should:"^5.0.1"},Uu="Apache-2.0",Vu={pretest:"npm run lint",test:"nyc mocha",coveralls:"nyc report --reporter=text-lcov | coveralls",lint:"eslint lib/","generate-release":"eslint-generate-release","generate-alpharelease":"eslint-generate-prerelease alpha","generate-betarelease":"eslint-generate-prerelease beta","generate-rcrelease":"eslint-generate-prerelease rc","publish-release":"eslint-publish-release"},Wu={esutils:"^2.0.2"},$u={name:Su,description:wu,homepage:bu,main:Ru,version:Ou,engines:_u,directories:Pu,files:ku,maintainers:Lu,repository:Iu,devDependencies:Mu,license:Uu,scripts:Vu,dependencies:Wu};function ju(e,u){if(!e)throw new Error(u||"unknown assertion error")}var Ku=ju;(function(){var e;e=$u.version,J.VERSION=e;function u(s){this.name="DoctrineError",this.message=s}u.prototype=function(){var s=function(){};return s.prototype=Error.prototype,new s}(),u.prototype.constructor=u,J.DoctrineError=u;function i(s){throw new u(s)}J.throwError=i,J.assert=Ku})();(function(){var e,u,i,s,D,F,n,f,g,v,k,_;g=X,v=J,e={NullableLiteral:"NullableLiteral",AllLiteral:"AllLiteral",NullLiteral:"NullLiteral",UndefinedLiteral:"UndefinedLiteral",VoidLiteral:"VoidLiteral",UnionType:"UnionType",ArrayType:"ArrayType",RecordType:"RecordType",FieldType:"FieldType",FunctionType:"FunctionType",ParameterType:"ParameterType",RestType:"RestType",NonNullableType:"NonNullableType",OptionalType:"OptionalType",NullableType:"NullableType",NameExpression:"NameExpression",TypeApplication:"TypeApplication",StringLiteralType:"StringLiteralType",NumericLiteralType:"NumericLiteralType",BooleanLiteralType:"BooleanLiteralType"},u={ILLEGAL:0,DOT_LT:1,REST:2,LT:3,GT:4,LPAREN:5,RPAREN:6,LBRACE:7,RBRACE:8,LBRACK:9,RBRACK:10,COMMA:11,COLON:12,STAR:13,PIPE:14,QUESTION:15,BANG:16,EQUAL:17,NAME:18,STRING:19,NUMBER:20,EOF:21};function E(r){return"><(){}[],:*|?!=".indexOf(String.fromCharCode(r))===-1&&!g.code.isWhiteSpace(r)&&!g.code.isLineTerminator(r)}function y(r,t,B,A){this._previous=r,this._index=t,this._token=B,this._value=A}y.prototype.restore=function(){F=this._previous,D=this._index,n=this._token,f=this._value},y.save=function(){return new y(F,D,n,f)};function m(r,t){return _&&(r.range=[t[0]+k,t[1]+k]),r}function c(){var r=i.charAt(D);return D+=1,r}function p(r){var t,B,A,a=0;for(B=r==="u"?4:2,t=0;t=0&&D=s)return u.ILLEGAL;if(t=i.charCodeAt(D+1),t===60)break}f+=c()}return u.NAME}function I(){var r;for(F=D;D=s)return n=u.EOF,n;switch(r=i.charCodeAt(D),r){case 39:case 34:return n=V(),n;case 58:return c(),n=u.COLON,n;case 44:return c(),n=u.COMMA,n;case 40:return c(),n=u.LPAREN,n;case 41:return c(),n=u.RPAREN,n;case 91:return c(),n=u.LBRACK,n;case 93:return c(),n=u.RBRACK,n;case 123:return c(),n=u.LBRACE,n;case 125:return c(),n=u.RBRACE,n;case 46:if(D+1=97&&C<=122||C>=65&&C<=90||C>=48&&C<=57}function v(C){return C==="param"||C==="argument"||C==="arg"}function k(C){return C==="return"||C==="returns"}function _(C){return C==="property"||C==="prop"}function E(C){return v(C)||_(C)||C==="alias"||C==="this"||C==="mixes"||C==="requires"}function y(C){return E(C)||C==="const"||C==="constant"}function m(C){return _(C)||v(C)}function c(C){return _(C)||v(C)}function p(C){return v(C)||k(C)||C==="define"||C==="enum"||C==="implements"||C==="this"||C==="type"||C==="typedef"||_(C)}function V(C){return p(C)||C==="throws"||C==="const"||C==="constant"||C==="namespace"||C==="member"||C==="var"||C==="module"||C==="constructor"||C==="class"||C==="extends"||C==="augments"||C==="public"||C==="private"||C==="protected"}var $="[ \\f\\t\\v\\u00a0\\u1680\\u180e\\u2000-\\u200a\\u202f\\u205f\\u3000\\ufeff]",eu="("+$+"*(?:\\*"+$+`?)?)(.+|[\r \u2028\u2029])`;function I(C){return C.replace(/^\/\*\*?/,"").replace(/\*\/$/,"").replace(new RegExp(eu,"g"),"$2").replace(/\s*$/,"")}function T(C,P){for(var o=C.replace(/^\/\*\*?/,""),M=0,U=new RegExp(eu,"g"),d;d=U.exec(o);)if(M+=d[1].length,d.index+d[0].length>P+M)return P+M+C.length-o.length;return C.replace(/\*\/$/,"").replace(/\s*$/,"").length}(function(C){var P,o,M,U,d,q,ru,K,tu;function N(){var A=d.charCodeAt(o);return o+=1,D.code.isLineTerminator(A)&&!(A===13&&d.charCodeAt(o)===10)&&(M+=1),String.fromCharCode(A)}function au(){var A="";for(N();o=A)return null;if(d.charCodeAt(o)===91)if(a)b=!0,h=N();else return null;if(h+=W(A),l)for(d.charCodeAt(o)===58&&(h==="module"||h==="external"||h==="event")&&(h+=N(),h+=W(A)),d.charCodeAt(o)===91&&d.charCodeAt(o+1)===93&&(h+=N(),h+=N());d.charCodeAt(o)===46||d.charCodeAt(o)===47||d.charCodeAt(o)===35||d.charCodeAt(o)===45||d.charCodeAt(o)===126;)h+=N(),h+=W(A);if(b){if(G(A),d.charCodeAt(o)===61){h+=N(),G(A);for(var O,j=1;o=A||d.charCodeAt(o)!==93)return null;h+=N()}return h}function iu(){for(;o=U?!1:(i.assert(d.charCodeAt(o)===64),!0)}function S(A){return d===q?A:T(q,A)}function w(A,a){this._options=A,this._title=a.toLowerCase(),this._tag={title:a,description:null},this._options.lineNumbers&&(this._tag.lineNumber=M),this._first=o-a.length-1,this._last=0,this._extra={}}w.prototype.addError=function(a){var l=Array.prototype.slice.call(arguments,1),h=a.replace(/%(\d)/g,function(b,x){return i.assert(x1&&(this._tag.default=A.slice(1).join("=")),this._tag.name=A[0],this._tag.type&&this._tag.type.type!=="OptionalType"&&(this._tag.type={type:"OptionalType",expression:this._tag.type}));else{if(!E(this._title))return!0;if(v(this._title)&&this._tag.type&&this._tag.type.name)this._extra.name=this._tag.type,this._tag.name=this._tag.type.name,this._tag.type=null;else if(!this.addError("Missing or invalid tag name"))return!1}return!0},w.prototype.parseDescription=function(){var a=n(d,o,this._last).trim();return a&&(/^-\s+/.test(a)&&(a=a.substring(2)),this._tag.description=a),!0},w.prototype.parseCaption=function(){var a=n(d,o,this._last).trim(),l="",h="",b=a.indexOf(l),x=a.indexOf(h);return b>=0&&x>=0?(this._tag.caption=a.substring(b+l.length,x).trim(),this._tag.description=a.substring(x+h.length).trim()):this._tag.description=a,!0},w.prototype.parseKind=function(){var a,l;return l={class:!0,constant:!0,event:!0,external:!0,file:!0,function:!0,member:!0,mixin:!0,module:!0,namespace:!0,typedef:!0},a=n(d,o,this._last).trim(),this._tag.kind=a,!(!F(l,a)&&!this.addError("Invalid kind name '%0'",a))},w.prototype.parseAccess=function(){var a;return a=n(d,o,this._last).trim(),this._tag.access=a,!(a!=="private"&&a!=="protected"&&a!=="public"&&!this.addError("Invalid access name '%0'",a))},w.prototype.parseThis=function(){var a=n(d,o,this._last).trim();if(a&&a.charAt(0)==="{"){var l=this.parseType();return l&&this._tag.type.type==="NameExpression"||this._tag.type.type==="UnionType"?(this._tag.name=this._tag.type.name,!0):this.addError("Invalid name for this")}else return this.parseNamePath()},w.prototype.parseVariation=function(){var a,l;return l=n(d,o,this._last).trim(),a=parseFloat(l,10),this._tag.variation=a,!(isNaN(a)&&!this.addError("Invalid variation '%0'",l))},w.prototype.ensureEnd=function(){var A=n(d,o,this._last).trim();return!(A&&!this.addError("Unknown content '%0'",A))},w.prototype.epilogue=function(){var a;return a=this._tag.description,!(c(this._title)&&!this._tag.type&&a&&a.charAt(0)==="["&&(this._tag.type=this._extra.name,this._tag.name||(this._tag.name=void 0),!K&&!this.addError("Missing or invalid tag name")))},P={access:["parseAccess"],alias:["parseNamePath","ensureEnd"],augments:["parseType","parseNamePathOptional","ensureEnd"],constructor:["parseType","parseNamePathOptional","ensureEnd"],class:["parseType","parseNamePathOptional","ensureEnd"],extends:["parseType","parseNamePathOptional","ensureEnd"],example:["parseCaption"],deprecated:["parseDescription"],global:["ensureEnd"],inner:["ensureEnd"],instance:["ensureEnd"],kind:["parseKind"],mixes:["parseNamePath","ensureEnd"],mixin:["parseNamePathOptional","ensureEnd"],member:["parseType","parseNamePathOptional","ensureEnd"],method:["parseNamePathOptional","ensureEnd"],module:["parseType","parseNamePathOptional","ensureEnd"],func:["parseNamePathOptional","ensureEnd"],function:["parseNamePathOptional","ensureEnd"],var:["parseType","parseNamePathOptional","ensureEnd"],name:["parseNamePath","ensureEnd"],namespace:["parseType","parseNamePathOptional","ensureEnd"],private:["parseType","parseDescription"],protected:["parseType","parseDescription"],public:["parseType","parseDescription"],readonly:["ensureEnd"],requires:["parseNamePath","ensureEnd"],since:["parseDescription"],static:["ensureEnd"],summary:["parseDescription"],this:["parseThis","ensureEnd"],todo:["parseDescription"],typedef:["parseType","parseNamePathOptional"],variation:["parseVariation"],version:["parseDescription"]},w.prototype.parse=function(){var a,l,h,b;if(!this._title&&!this.addError("Missing or invalid title"))return null;for(this._last=z(this._title),this._options.range&&(this._tag.range=[this._first,d.slice(0,this._last).replace(/\s*$/,"").length].map(S)),F(P,this._title)?h=P[this._title]:h=["parseType","parseName","parseDescription","epilogue"],a=0,l=h.length;ae.replace(cu,""),qu=e=>cu.test(e),Bu=e=>{let u=Qu(e);return qu(e)||Number.isNaN(Number(u))?u:Number(u)},zu=e=>{switch(e.type){case"function":return{name:"function"};case"object":let u={};return e.signature.properties.forEach(i=>{u[i.key]=Z(i.value)}),{name:"object",value:u};default:throw new Error(`Unknown: ${e}`)}},Z=e=>{let{name:u,raw:i}=e,s={};switch(typeof i<"u"&&(s.raw=i),e.name){case"string":case"number":case"symbol":case"boolean":return{...s,name:u};case"Array":return{...s,name:"array",value:e.elements.map(Z)};case"signature":return{...s,...zu(e)};case"union":let D;return e.elements.every(F=>F.name==="literal")?D={...s,name:"enum",value:e.elements.map(F=>Bu(F.value))}:D={...s,name:u,value:e.elements.map(Z)},D;case"intersection":return{...s,name:u,value:e.elements.map(Z)};default:return{...s,name:"other",value:u}}},Hu=e=>e.name==="literal",Yu=e=>e.value.replace(/['|"]/g,""),Xu=e=>{switch(e.type){case"function":return{name:"function"};case"object":let u={};return e.signature.properties.forEach(i=>{u[i.key]=uu(i.value)}),{name:"object",value:u};default:throw new Error(`Unknown: ${e}`)}},uu=e=>{let{name:u,raw:i}=e,s={};switch(typeof i<"u"&&(s.raw=i),e.name){case"literal":return{...s,name:"other",value:e.value};case"string":case"number":case"symbol":case"boolean":return{...s,name:u};case"Array":return{...s,name:"array",value:e.elements.map(uu)};case"signature":return{...s,...Xu(e)};case"union":return e.elements.every(Hu)?{...s,name:"enum",value:e.elements.map(Yu)}:{...s,name:u,value:e.elements.map(uu)};case"intersection":return{...s,name:u,value:e.elements.map(uu)};default:return{...s,name:"other",value:u}}},Zu=/^\(.*\) => /,Y=e=>{let{name:u,raw:i,computed:s,value:D}=e,F={};switch(typeof i<"u"&&(F.raw=i),u){case"enum":{let f=s?D:D.map(g=>Bu(g.value));return{...F,name:u,value:f}}case"string":case"number":case"symbol":return{...F,name:u};case"func":return{...F,name:"function"};case"bool":case"boolean":return{...F,name:"boolean"};case"arrayOf":case"array":return{...F,name:"array",value:D&&Y(D)};case"object":return{...F,name:u};case"objectOf":return{...F,name:u,value:Y(D)};case"shape":case"exact":let n=Tu(D,f=>Y(f));return{...F,name:"object",value:n};case"union":return{...F,name:"union",value:D.map(f=>Y(f))};case"instanceOf":case"element":case"elementType":default:{if((u==null?void 0:u.indexOf("|"))>0)try{let v=u.split("|").map(k=>JSON.parse(k));return{...F,name:"enum",value:v}}catch{}let f=D?`${u}(${D})`:u,g=Zu.test(u)?"function":"other";return{...F,name:g,value:f}}}},Au=e=>{let{type:u,tsType:i,flowType:s}=e;return u!=null?Y(u):i!=null?Z(i):s!=null?uu(s):null},ue=(e=>(e.JAVASCRIPT="JavaScript",e.FLOW="Flow",e.TYPESCRIPT="TypeScript",e.UNKNOWN="Unknown",e))(ue||{}),ee=["null","undefined"];function su(e){return ee.some(u=>u===e)}var re=e=>{if(!e)return"";if(typeof e=="string")return e;throw new Error(`Description: expected string, got: ${JSON.stringify(e)}`)};function pu(e){return!!e.__docgenInfo}function te(e){return e!=null&&Object.keys(e).length>0}function De(e,u){return pu(e)?e.__docgenInfo[u]:null}function ne(e){return pu(e)&&re(e.__docgenInfo.description)}function ae(e){return e!=null&&e.includes("@")}function ie(e,u){let i;try{i=Gu.parse(e,{tags:u,sloppy:!0})}catch(s){throw console.error(s),new Error("Cannot parse JSDoc tags.")}return i}var Ae={tags:["param","arg","argument","returns","ignore","deprecated"]},se=(e,u=Ae)=>{if(!ae(e))return{includesJsDoc:!1,ignore:!1};let i=ie(e,u.tags),s=Fe(i);return s.ignore?{includesJsDoc:!0,ignore:!0}:{includesJsDoc:!0,ignore:!1,description:i.description,extractedTags:s}};function Fe(e){let u={params:null,deprecated:null,returns:null,ignore:!1};for(let i=0;iu.includes("null")?u.replace("-null","").replace(".null",""):e.name,getTypeName:()=>e.type!=null?Q(e.type):null}:null}function Ee(e){return e.title!=null?e.description:null}function oe(e){return e.type!=null?{type:e.type,description:e.description,getTypeName:()=>Q(e.type)}:null}function Q(e){return e.type==="NameExpression"?e.name:e.type==="RecordType"?`({${e.fields.map(u=>{if(u.value!=null){let i=Q(u.value);return`${u.key}: ${i}`}return u.key}).join(", ")}})`:e.type==="UnionType"?`(${e.elements.map(Q).join("|")})`:e.type==="ArrayType"?"[]":e.type==="TypeApplication"&&e.expression!=null&&e.expression.name==="Array"?`${Q(e.applications[0])}[]`:e.type==="NullableType"||e.type==="NonNullableType"||e.type==="OptionalType"?Q(e.expression):e.type==="AllLiteral"?"any":null}function fu(e){return e.length>90}function le(e){return e.length>50}function R(e,u){return e===u?{summary:e}:{summary:e,detail:u}}function hu({name:e,value:u,elements:i,raw:s}){return u??(i!=null?i.map(hu).join(" | "):s??e)}function ce({name:e,raw:u,elements:i}){return i!=null?R(i.map(hu).join(" | ")):u!=null?R(u.replace(/^\|\s*/,"")):R(e)}function Be({type:e,raw:u}){return u!=null?R(u):R(e)}function pe({type:e,raw:u}){return u!=null?fu(u)?R(e,u):R(u):R(e)}function fe(e){let{type:u}=e;return u==="object"?pe(e):Be(e)}function he({name:e,raw:u}){return u!=null?fu(u)?R(e,u):R(u):R(e)}function de(e){if(e==null)return null;switch(e.name){case"union":return ce(e);case"signature":return fe(e);default:return he(e)}}function me(e,u){if(e!=null){let{value:i}=e;if(!su(i))return le(i)?R(u.name,i):R(i)}return null}var ye=(e,u)=>{let{flowType:i,description:s,required:D,defaultValue:F}=u;return{name:e,type:de(i),required:D,description:s,defaultValue:me(F,i)}};function ge({tsType:e,required:u}){if(e==null)return null;let i=e.name;return u||(i=i.replace(" | undefined","")),R(["Array","Record","signature"].includes(e.name)?e.raw:i)}function Te({defaultValue:e}){if(e!=null){let{value:u}=e;if(!su(u))return R(u)}return null}var ve=(e,u)=>{let{description:i,required:s}=u;return{name:e,type:ge(u),required:s,description:i,defaultValue:Te(u)}};function xe(e){return e!=null?R(e.name):null}function Ne(e){let{computed:u,func:i}=e;return typeof u>"u"&&typeof i>"u"}function Se(e){return e?e.name==="string"?!0:e.name==="enum"?Array.isArray(e.value)&&e.value.every(({value:u})=>typeof u=="string"&&u[0]==='"'&&u[u.length-1]==='"'):!1:!1}function we(e,u){if(e!=null){let{value:i}=e;if(!su(i))return Ne(e)&&Se(u)?R(JSON.stringify(i)):R(i)}return null}function du(e,u,i){let{description:s,required:D,defaultValue:F}=i;return{name:e,type:xe(u),required:D,description:s,defaultValue:we(F,u)}}function nu(e,u){var i;if(u.includesJsDoc){let{description:s,extractedTags:D}=u;s!=null&&(e.description=u.description);let F={...D,params:(i=D==null?void 0:D.params)==null?void 0:i.map(n=>({name:n.getPrettyName(),description:n.description}))};Object.values(F).filter(Boolean).length>0&&(e.jsDocTags=F)}return e}var be=(e,u,i)=>{let s=du(e,u.type,u);return s.sbType=Au(u),nu(s,i)},Re=(e,u,i)=>{let s=ve(e,u);return s.sbType=Au(u),nu(s,i)},Oe=(e,u,i)=>{let s=ye(e,u);return s.sbType=Au(u),nu(s,i)},_e=(e,u,i)=>{let s=du(e,{name:"unknown"},u);return nu(s,i)},mu=e=>{switch(e){case"JavaScript":return be;case"TypeScript":return Re;case"Flow":return Oe;default:return _e}},yu=e=>e.type!=null?"JavaScript":e.flowType!=null?"Flow":e.tsType!=null?"TypeScript":"Unknown",Pe=e=>{let u=yu(e[0]),i=mu(u);return e.map(s=>{var F;let D=s;return(F=s.type)!=null&&F.elements&&(D={...s,type:{...s.type,value:s.type.elements}}),gu(D.name,D,u,i)})},ke=e=>{let u=Object.keys(e),i=yu(e[u[0]]),s=mu(i);return u.map(D=>{let F=e[D];return F!=null?gu(D,F,i,s):null}).filter(Boolean)},Ve=(e,u)=>{let i=De(e,u);return te(i)?Array.isArray(i)?Pe(i):ke(i):[]};function gu(e,u,i,s){let D=se(u.description);return D.includesJsDoc&&D.ignore?null:{propDef:s(e,u,D),jsDocTags:D.extractedTags,docgenInfo:u,typeSystem:i}}function We(e){return e!=null&&ne(e)}var $e=e=>{let{component:u,argTypes:i,parameters:{docs:s={}}}=e,{extractArgTypes:D}=s,F=D&&u?D(u):{};return F?Ju(F,i):i},Le="storybook/docs",je=`${Le}/snippet-rendered`,Ie=(e=>(e.AUTO="auto",e.CODE="code",e.DYNAMIC="dynamic",e))(Ie||{});export{je as S,ue as T,$e as a,Ie as b,R as c,Ve as d,We as e,fu as f,De as g,pu as h,le as i,re as s,X as u}; diff --git a/docs/assets/index.es12-BES12XY4.js b/docs/assets/index.es12-BljXGOZw.js similarity index 92% rename from docs/assets/index.es12-BES12XY4.js rename to docs/assets/index.es12-BljXGOZw.js index f77dd6c3..15494e46 100644 --- a/docs/assets/index.es12-BES12XY4.js +++ b/docs/assets/index.es12-BljXGOZw.js @@ -1 +1 @@ -import{l as a,V as n}from"./index.es28-dE8xdd4L.js";var i=n;const e=a(i);class s{static configure(t){t(e)}constructor(){if(this.constructor===s)throw new TypeError('Abstract class "BaseService" cannot be instantiated directly.')}create(t){const r=this.getTransform();return e.post(this.getBaseUrl(),r.toPayload(t),this.getConfig())}delete(t){return e.delete(`${this.getBaseUrl()}/${t.id}`)}fetchAll(t){return e.get(this.getBaseUrl(),{params:t})}fetchOne(t){return e.get(`${this.getBaseUrl()}/${t}`)}save(t){return t.id?this.update(t):this.create(t)}search(t){return e.post(`${this.getBaseUrl()}/search`,t)}update(t){const r=this.getTransform();return e.put(`${this.getBaseUrl()}/${t.id}`,r.toPayload(t),this.getConfig())}getAxios(){return e}getBaseUrl(){return""}getConfig(){return null}getTransform(){return{}}}export{s}; +import{l as a,V as n}from"./index.es28-Dp3-vHIY.js";var i=n;const e=a(i);class s{static configure(t){t(e)}constructor(){if(this.constructor===s)throw new TypeError('Abstract class "BaseService" cannot be instantiated directly.')}create(t){const r=this.getTransform();return e.post(this.getBaseUrl(),r.toPayload(t),this.getConfig())}delete(t){return e.delete(`${this.getBaseUrl()}/${t.id}`)}fetchAll(t){return e.get(this.getBaseUrl(),{params:t})}fetchOne(t){return e.get(`${this.getBaseUrl()}/${t}`)}save(t){return t.id?this.update(t):this.create(t)}search(t){return e.post(`${this.getBaseUrl()}/search`,t)}update(t){const r=this.getTransform();return e.put(`${this.getBaseUrl()}/${t.id}`,r.toPayload(t),this.getConfig())}getAxios(){return e}getBaseUrl(){return""}getConfig(){return null}getTransform(){return{}}}export{s}; diff --git a/docs/assets/index.es2-BuM_NOqV.js b/docs/assets/index.es2-9OW1Q_bJ.js similarity index 81% rename from docs/assets/index.es2-BuM_NOqV.js rename to docs/assets/index.es2-9OW1Q_bJ.js index 63ebf24f..4c1a3109 100644 --- a/docs/assets/index.es2-BuM_NOqV.js +++ b/docs/assets/index.es2-9OW1Q_bJ.js @@ -1 +1 @@ -import{r as s,a as y,s as d,X as f,m as E}from"./index.es28-dE8xdd4L.js";import{r}from"./index-CBqU2yxZ.js";const b=e=>{const[n,m]=r.useState(),l=r.useCallback(i=>{const t={...i};return s.isEmpty(t.title)&&s.isEmpty(t.creators)&&s.isEmpty(t.issue)&&s.extend(t,{title:y.t("Citation.labels.untitled")}),t},[]);return r.useEffect(()=>{if(e.locale&&e.style&&e.item){const{uid:i,...t}=e.item,c=new d({initialItems:[{key:i,...l(t)}],persist:!1}),a=s.first(c.itemsCSL),p={retrieveLocale:()=>e.locale,retrieveItem:()=>a},o=new f.Engine(p,e.style);o.updateItems([a.id]);const u=o.makeBibliography();m(s.last(u))}},[l,e.item,e.locale,e.style]),E.jsx("div",{dangerouslySetInnerHTML:{__html:n}})};export{b as Y}; +import{r as s,a as y,s as d,X as f,m as E}from"./index.es28-Dp3-vHIY.js";import{r}from"./index-CBqU2yxZ.js";const b=e=>{const[n,m]=r.useState(),l=r.useCallback(i=>{const t={...i};return s.isEmpty(t.title)&&s.isEmpty(t.creators)&&s.isEmpty(t.issue)&&s.extend(t,{title:y.t("Citation.labels.untitled")}),t},[]);return r.useEffect(()=>{if(e.locale&&e.style&&e.item){const{uid:i,...t}=e.item,c=new d({initialItems:[{key:i,...l(t)}],persist:!1}),a=s.first(c.itemsCSL),p={retrieveLocale:()=>e.locale,retrieveItem:()=>a},o=new f.Engine(p,e.style);o.updateItems([a.id]);const u=o.makeBibliography();m(s.last(u))}},[l,e.item,e.locale,e.style]),E.jsx("div",{dangerouslySetInnerHTML:{__html:n}})};export{b as Y}; diff --git a/docs/assets/index.es28-dE8xdd4L.js b/docs/assets/index.es28-Dp3-vHIY.js similarity index 99% rename from docs/assets/index.es28-dE8xdd4L.js rename to docs/assets/index.es28-Dp3-vHIY.js index 69cbfe94..231256bc 100644 --- a/docs/assets/index.es28-dE8xdd4L.js +++ b/docs/assets/index.es28-Dp3-vHIY.js @@ -1,4 +1,4 @@ -import{R as aD,r as H}from"./index-CBqU2yxZ.js";import{r as ea}from"./index-DZGZymok.js";import{_ as sD}from"./iframe-ovyJW9VA.js";var ey={exports:{}},Pa={},dm;function oD(){if(dm)return Pa;dm=1;/** +import{R as aD,r as H}from"./index-CBqU2yxZ.js";import{r as ea}from"./index-DZGZymok.js";import{_ as sD}from"./iframe-BQtATEn0.js";var ey={exports:{}},Pa={},dm;function oD(){if(dm)return Pa;dm=1;/** * @license React * react-jsx-runtime.production.min.js * @@ -169,7 +169,7 @@ PERFORMANCE OF THIS SOFTWARE. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function u(te,U){if(te){if(typeof te=="string")return s(te,U);var Q=Object.prototype.toString.call(te).slice(8,-1);return Q==="Object"&&te.constructor&&(Q=te.constructor.name),Q==="Map"||Q==="Set"?Array.from(te):Q==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Q)?s(te,U):void 0}}function s(te,U){(U==null||U>te.length)&&(U=te.length);for(var Q=0,F=new Array(U);Q2&&arguments[2]!==void 0&&arguments[2]?Object.assign({},this.getDefaultDiplay(),W):W||this.getDefaultDiplay())[V]||V}},{key:"getUpdatedInput",value:function(V,W,I){var Y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:I,X=arguments.length>4&&arguments[4]!==void 0&&arguments[4],q=this.getOptions(),ae=[I,Y,X],se=W;return(V==="{bksp}"||V==="{backspace}")&&se.length>0?se=this.removeAt.apply(this,[se].concat(ae)):(V==="{delete}"||V==="{forwarddelete}")&&se.length>0?se=this.removeForwardsAt.apply(this,[se].concat(ae)):V==="{space}"?se=this.addStringAt.apply(this,[se," "].concat(ae)):V!=="{tab}"||typeof q.tabCharOnTab=="boolean"&&q.tabCharOnTab===!1?V!=="{enter}"&&V!=="{numpadenter}"||!q.newLineOnEnter?V.includes("numpad")&&Number.isInteger(Number(V[V.length-2]))?se=this.addStringAt.apply(this,[se,V[V.length-2]].concat(ae)):V==="{numpaddivide}"?se=this.addStringAt.apply(this,[se,"/"].concat(ae)):V==="{numpadmultiply}"?se=this.addStringAt.apply(this,[se,"*"].concat(ae)):V==="{numpadsubtract}"?se=this.addStringAt.apply(this,[se,"-"].concat(ae)):V==="{numpadadd}"?se=this.addStringAt.apply(this,[se,"+"].concat(ae)):V==="{numpaddecimal}"?se=this.addStringAt.apply(this,[se,"."].concat(ae)):V==="{"||V==="}"?se=this.addStringAt.apply(this,[se,V].concat(ae)):V.includes("{")||V.includes("}")||(se=this.addStringAt.apply(this,[se,V].concat(ae))):se=this.addStringAt.apply(this,[se,` `].concat(ae)):se=this.addStringAt.apply(this,[se," "].concat(ae)),q.debug&&console.log("Input will be: "+se),se}},{key:"updateCaretPos",value:function(V){var W=arguments.length>1&&arguments[1]!==void 0&&arguments[1],I=this.updateCaretPosAction(V,W);this.dispatch(function(Y){Y.setCaretPosition(I)})}},{key:"updateCaretPosAction",value:function(V){var W=arguments.length>1&&arguments[1]!==void 0&&arguments[1],I=this.getOptions(),Y=this.getCaretPosition();return Y!=null&&(W?Y>0&&(Y-=V):Y+=V),I.debug&&console.log("Caret at:",Y),Y}},{key:"addStringAt",value:function(V,W){var I,Y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:V.length,X=arguments.length>3&&arguments[3]!==void 0?arguments[3]:V.length,q=arguments.length>4&&arguments[4]!==void 0&&arguments[4];return Y||Y===0?(I=[V.slice(0,Y),W,V.slice(X)].join(""),this.isMaxLengthReached()||q&&this.updateCaretPos(W.length)):I=V+W,I}},{key:"removeAt",value:function(V){var W,I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:V.length,Y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:V.length,X=arguments.length>3&&arguments[3]!==void 0&&arguments[3];if(I===0&&Y===0)return V;if(I===Y){var q=/([\uD800-\uDBFF][\uDC00-\uDFFF])/g;I&&I>=0?V.substring(I-2,I).match(q)?(W=V.substr(0,I-2)+V.substr(I),X&&this.updateCaretPos(2,!0)):(W=V.substr(0,I-1)+V.substr(I),X&&this.updateCaretPos(1,!0)):V.slice(-2).match(q)?(W=V.slice(0,-2),X&&this.updateCaretPos(2,!0)):(W=V.slice(0,-1),X&&this.updateCaretPos(1,!0))}else W=V.slice(0,I)+V.slice(Y),X&&this.dispatch(function(ae){ae.setCaretPosition(I)});return W}},{key:"removeForwardsAt",value:function(V){var W,I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:V.length,Y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:V.length,X=arguments.length>3&&arguments[3]!==void 0&&arguments[3];return V!=null&&V.length&&I!==null?(I===Y?W=V.substring(I,I+2).match(/([\uD800-\uDBFF][\uDC00-\uDFFF])/g)?V.substr(0,I)+V.substr(I+2):V.substr(0,I)+V.substr(I+1):(W=V.slice(0,I)+V.slice(Y),X&&this.dispatch(function(q){q.setCaretPosition(I)})),W):V}},{key:"handleMaxLength",value:function(V,W){var I=this.getOptions(),Y=I.maxLength,X=V[I.inputName||"default"],q=W.length-1>=Y;if(W.length<=X.length)return!1;if(Number.isInteger(Y))return I.debug&&console.log("maxLength (num) reached:",q),q?(this.maxLengthReached=!0,!0):(this.maxLengthReached=!1,!1);if(l(Y)==="object"){var ae=W.length-1>=Y[I.inputName||"default"];return I.debug&&console.log("maxLength (obj) reached:",ae),ae?(this.maxLengthReached=!0,!0):(this.maxLengthReached=!1,!1)}}},{key:"isMaxLengthReached",value:function(){return!!this.maxLengthReached}},{key:"isTouchDevice",value:function(){return"ontouchstart"in window||navigator.maxTouchPoints}},{key:"pointerEventsSupported",value:function(){return!!window.PointerEvent}},{key:"camelCase",value:function(V){return V?V.toLowerCase().trim().split(/[.\-_\s]/g).reduce(function(W,I){return I.length?W+I[0].toUpperCase()+I.slice(1):W}):""}},{key:"chunkArray",value:function(V,W){return o(Array(Math.ceil(V.length/W))).map(function(I,Y){return V.slice(W*Y,W+W*Y)})}},{key:"escapeRegex",value:function(V){return V.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}},{key:"getRtlOffset",value:function(V,W){var I=V,Y=W.indexOf("‫");return Y=q.length?{done:!0}:{done:!1,value:q[le++]}},e:function(ie){throw ie},f:de}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ge,ye=!0,he=!1;return{s:function(){se=se.call(q)},n:function(){var ie=se.next();return ye=ie.done,ie},e:function(ie){he=!0,ge=ie},f:function(){try{ye||se.return==null||se.return()}finally{if(he)throw ge}}}}(Object.getOwnPropertyNames(V.prototype));try{for(Y.s();!(I=Y.n()).done;){var X=I.value;X==="constructor"||X==="bindMethods"||(W[X]=W[X].bind(W))}}catch(q){Y.e(q)}finally{Y.f()}}}],Q&&c(U.prototype,Q),F&&c(U,F),Object.defineProperty(U,"prototype",{writable:!1}),te}();m(f,"noop",function(){});var b=f;function _(te){return _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(U){return typeof U}:function(U){return U&&typeof Symbol=="function"&&U.constructor===Symbol&&U!==Symbol.prototype?"symbol":typeof U},_(te)}function v(te,U){for(var Q=0;Q1?(V=W)===null||V===void 0?void 0:V.toLowerCase():W}},{key:"keyCodeToKey",value:function(F){return{8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",65:"A",66:"B",67:"C",68:"D",69:"E",70:"F",71:"G",72:"H",73:"I",74:"J",75:"K",76:"L",77:"M",78:"N",79:"O",80:"P",81:"Q",82:"R",83:"S",84:"T",85:"U",86:"V",87:"W",88:"X",89:"Y",90:"Z",91:"Meta",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9",106:"NumpadMultiply",107:"NumpadAdd",109:"NumpadSubtract",110:"NumpadDecimal",111:"NumpadDivide",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"}[F]||""}}])&&v(U.prototype,Q),Object.defineProperty(U,"prototype",{writable:!1}),te}();function S(te){return S=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(U){return typeof U}:function(U){return U&&typeof Symbol=="function"&&U.constructor===Symbol&&U!==Symbol.prototype?"symbol":typeof U},S(te)}function P(te,U){for(var Q=0;Q0&&arguments[0]!==void 0?arguments[0]:be();return ae(ce,Le)},se.appendChild(De)});var le=X>0,de=document.createElement("div");de.classList.add("hg-candidate-box-prev"),le&&de.classList.add("hg-candidate-box-btn-active");var ge=function(){le&&W.renderPage({candidateListPages:I,targetElement:Y,pageIndex:X-1,nbPages:q,onItemSelected:ae})};this.options.useTouchEvents?de.ontouchstart=ge:de.onclick=ge,this.candidateBoxElement.appendChild(de),this.candidateBoxElement.appendChild(se);var ye=Xte.length)&&(U=te.length);for(var Q=0,F=new Array(U);Q1&&arguments[1]!==void 0?arguments[1]:F;this.caretPosition=F,this.caretPositionEnd=V}},{key:"getInputCandidates",value:function(F){var V=this,W=this.options,I=W.layoutCandidates,Y=W.layoutCandidatesCaseSensitiveMatch;if(!I||ne(I)!=="object")return{};var X=Object.keys(I).filter(function(se){var le=F.substring(0,V.getCaretPositionEnd()||0)||F,de=new RegExp("".concat(V.utilities.escapeRegex(se),"$"),Y?"g":"gi");return!!B(le.matchAll(de)).length});if(X.length>1){var q=X.sort(function(se,le){return le.length-se.length})[0];return{candidateKey:q,candidateValue:I[q]}}if(X.length){var ae=X[0];return{candidateKey:ae,candidateValue:I[ae]}}return{}}},{key:"showCandidatesBox",value:function(F,V,W){var I=this;this.candidateBox&&this.candidateBox.show({candidateValue:V,targetElement:W,onSelect:function(Y,X){var q=I.options,ae=q.layoutCandidatesCaseSensitiveMatch,se=q.disableCandidateNormalization,le=q.enableLayoutCandidatesKeyPress,de=Y;se||(de=Y.normalize("NFD"));var ge=I.getInput(I.options.inputName,!0),ye=I.getCaretPositionEnd()||0,he=ge.substring(0,ye||0)||ge,ie=new RegExp("".concat(I.utilities.escapeRegex(F),"$"),ae?"g":"gi"),ce=he.replace(ie,de),_e=ge.replace(he,ce),De=ce.length-he.length,be=(ye||ge.length)+De;be<0&&(be=0),I.setInput(_e,I.options.inputName,!0),I.setCaretPosition(be),le&&typeof I.options.onKeyPress=="function"&&I.options.onKeyPress(Y,X),typeof I.options.onChange=="function"&&I.options.onChange(I.getInput(I.options.inputName,!0),X),typeof I.options.onChangeAll=="function"&&I.options.onChangeAll(I.getAllInputs(),X)}})}},{key:"handleButtonClicked",value:function(F,V){var W=this.options,I=W.inputName,Y=I===void 0?this.defaultName:I,X=W.debug;if(F!=="{//}"){this.input[Y]||(this.input[Y]="");var q=this.utilities.getUpdatedInput(F,this.input[Y],this.caretPosition,this.caretPositionEnd);if(this.utilities.isStandardButton(F)&&this.activeInputElement&&this.input[Y]&&this.input[Y]===q&&this.caretPosition===0&&this.caretPositionEnd===q.length)return this.setInput("",this.options.inputName,!0),this.setCaretPosition(0),this.activeInputElement.value="",this.activeInputElement.setSelectionRange(0,0),void this.handleButtonClicked(F,V);if(typeof this.options.onKeyPress=="function"&&this.options.onKeyPress(F,V),this.input[Y]!==q&&(!this.options.inputPattern||this.options.inputPattern&&this.inputPatternIsValid(q))){if(this.options.maxLength&&this.utilities.handleMaxLength(this.input,q))return;var ae=this.utilities.getUpdatedInput(F,this.input[Y],this.caretPosition,this.caretPositionEnd,!0);if(this.setInput(ae,this.options.inputName,!0),X&&console.log("Input changed:",this.getAllInputs()),this.options.debug&&console.log("Caret at: ",this.getCaretPosition(),this.getCaretPositionEnd(),"(".concat(this.keyboardDOMClass,")"),V==null?void 0:V.type),this.options.syncInstanceInputs&&this.syncInstanceInputs(),typeof this.options.onChange=="function"&&this.options.onChange(this.getInput(this.options.inputName,!0),V),typeof this.options.onChangeAll=="function"&&this.options.onChangeAll(this.getAllInputs(),V),V!=null&&V.target&&this.options.enableLayoutCandidates){var se,le=this.getInputCandidates(q),de=le.candidateKey,ge=le.candidateValue;de&&ge?this.showCandidatesBox(de,ge,this.keyboardDOM):(se=this.candidateBox)===null||se===void 0||se.destroy()}}this.caretPositionEnd&&this.caretPosition!==this.caretPositionEnd&&(this.setCaretPosition(this.caretPositionEnd,this.caretPositionEnd),this.activeInputElement&&this.activeInputElement.setSelectionRange(this.caretPositionEnd,this.caretPositionEnd),this.options.debug&&console.log("Caret position aligned",this.caretPosition)),X&&console.log("Key pressed:",F)}}},{key:"getMouseHold",value:function(){return this.isMouseHold}},{key:"setMouseHold",value:function(F){this.options.syncInstanceInputs?this.dispatch(function(V){V.isMouseHold=F}):this.isMouseHold=F}},{key:"handleButtonMouseDown",value:function(F,V){var W=this;V&&(this.options.preventMouseDownDefault&&V.preventDefault(),this.options.stopMouseDownPropagation&&V.stopPropagation(),V.target.classList.add(this.activeButtonClass)),this.holdInteractionTimeout&&clearTimeout(this.holdInteractionTimeout),this.holdTimeout&&clearTimeout(this.holdTimeout),this.setMouseHold(!0),this.options.disableButtonHold||(this.holdTimeout=window.setTimeout(function(){(W.getMouseHold()&&(!F.includes("{")&&!F.includes("}")||F==="{delete}"||F==="{backspace}"||F==="{bksp}"||F==="{space}"||F==="{tab}")||F==="{arrowright}"||F==="{arrowleft}"||F==="{arrowup}"||F==="{arrowdown}")&&(W.options.debug&&console.log("Button held:",F),W.handleButtonHold(F)),clearTimeout(W.holdTimeout)},500))}},{key:"handleButtonMouseUp",value:function(F,V){var W=this;V&&(this.options.preventMouseUpDefault&&V.preventDefault&&V.preventDefault(),this.options.stopMouseUpPropagation&&V.stopPropagation&&V.stopPropagation(),!(V.target===this.keyboardDOM||V.target&&this.keyboardDOM.contains(V.target)||this.candidateBox&&this.candidateBox.candidateBoxElement&&(V.target===this.candidateBox.candidateBoxElement||V.target&&this.candidateBox.candidateBoxElement.contains(V.target)))&&this.candidateBox&&this.candidateBox.destroy()),this.recurseButtons(function(I){I.classList.remove(W.activeButtonClass)}),this.setMouseHold(!1),this.holdInteractionTimeout&&clearTimeout(this.holdInteractionTimeout),F&&typeof this.options.onKeyReleased=="function"&&this.options.onKeyReleased(F,V)}},{key:"handleKeyboardContainerMouseDown",value:function(F){this.options.preventMouseDownDefault&&F.preventDefault()}},{key:"handleButtonHold",value:function(F){var V=this;this.holdInteractionTimeout&&clearTimeout(this.holdInteractionTimeout),this.holdInteractionTimeout=window.setTimeout(function(){V.getMouseHold()?(V.handleButtonClicked(F),V.handleButtonHold(F)):clearTimeout(V.holdInteractionTimeout)},100)}},{key:"syncInstanceInputs",value:function(){var F=this;this.dispatch(function(V){V.replaceInput(F.input),V.setCaretPosition(F.caretPosition,F.caretPositionEnd)})}},{key:"clearInput",value:function(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.inputName||this.defaultName;this.input[F]="",this.setCaretPosition(0),this.options.syncInstanceInputs&&this.syncInstanceInputs()}},{key:"getInput",value:function(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.inputName||this.defaultName,V=arguments.length>1&&arguments[1]!==void 0&&arguments[1];return this.options.syncInstanceInputs&&!V&&this.syncInstanceInputs(),this.options.rtl?"‫"+this.input[F].replace("‫","").replace("‬","")+"‬":this.input[F]}},{key:"getAllInputs",value:function(){var F=this,V={};return Object.keys(this.input).forEach(function(W){V[W]=F.getInput(W,!0)}),V}},{key:"setInput",value:function(F){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.inputName||this.defaultName,W=arguments.length>2?arguments[2]:void 0;this.input[V]=F,!W&&this.options.syncInstanceInputs&&this.syncInstanceInputs()}},{key:"replaceInput",value:function(F){this.input=F}},{key:"setOptions",value:function(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},V=this.changedOptions(F);this.options=Object.assign(this.options,F),V.length&&(this.options.debug&&console.log("changedOptions",V),this.onSetOptions(V),this.render())}},{key:"changedOptions",value:function(F){var V=this;return Object.keys(F).filter(function(W){return JSON.stringify(F[W])!==JSON.stringify(V.options[W])})}},{key:"onSetOptions",value:function(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];F.includes("layoutName")&&this.candidateBox&&this.candidateBox.destroy(),(F.includes("layoutCandidatesPageSize")||F.includes("layoutCandidates"))&&this.candidateBox&&(this.candidateBox.destroy(),this.candidateBox=new A({utilities:this.utilities,options:this.options}))}},{key:"resetRows",value:function(){this.keyboardRowsDOM&&this.keyboardRowsDOM.remove(),this.keyboardDOM.className=this.keyboardDOMClass,this.keyboardDOM.setAttribute("data-skInstance",this.currentInstanceName),this.buttonElements={}}},{key:"dispatch",value:function(F){if(!window.SimpleKeyboardInstances)throw console.warn("SimpleKeyboardInstances is not defined. Dispatch cannot be called."),new Error("INSTANCES_VAR_ERROR");return Object.keys(window.SimpleKeyboardInstances).forEach(function(V){F(window.SimpleKeyboardInstances[V],V)})}},{key:"addButtonTheme",value:function(F,V){var W=this;V&&F&&(F.split(" ").forEach(function(I){V.split(" ").forEach(function(Y){W.options.buttonTheme||(W.options.buttonTheme=[]);var X=!1;W.options.buttonTheme.map(function(q){if(q!=null&&q.class.split(" ").includes(Y)){X=!0;var ae=q.buttons.split(" ");ae.includes(I)||(X=!0,ae.push(I),q.buttons=ae.join(" "))}return q}),X||W.options.buttonTheme.push({class:Y,buttons:F})})}),this.render())}},{key:"removeButtonTheme",value:function(F,V){var W=this;if(!F&&!V)return this.options.buttonTheme=[],void this.render();F&&Array.isArray(this.options.buttonTheme)&&this.options.buttonTheme.length&&(F.split(" ").forEach(function(I){var Y;(Y=W.options)===null||Y===void 0||(Y=Y.buttonTheme)===null||Y===void 0||Y.map(function(X,q){if(X&&V&&V.includes(X.class)||!V){var ae,se,le=(ae=X)===null||ae===void 0?void 0:ae.buttons.split(" ").filter(function(de){return de!==I});X&&le!=null&&le.length?X.buttons=le.join(" "):((se=W.options.buttonTheme)===null||se===void 0||se.splice(q,1),X=null)}return X})}),this.render())}},{key:"getButtonElement",value:function(F){var V,W=this.buttonElements[F];return W&&(V=W.length>1?W:W[0]),V}},{key:"inputPatternIsValid",value:function(F){var V,W=this.options.inputPattern;if((V=W instanceof RegExp?W:W[this.options.inputName||this.defaultName])&&F){var I=V.test(F);return this.options.debug&&console.log('inputPattern ("'.concat(V,'"): ').concat(I?"passed":"did not pass!")),I}return!0}},{key:"setEventListeners",value:function(){if(this.isFirstKeyboardInstance||!this.allKeyboardInstances){this.options.debug&&console.log("Caret handling started (".concat(this.keyboardDOMClass,")"));var F=this.options.physicalKeyboardHighlightPreventDefault,V=F!==void 0&&F;document.addEventListener("keyup",this.handleKeyUp,V),document.addEventListener("keydown",this.handleKeyDown,V),document.addEventListener("mouseup",this.handleMouseUp),document.addEventListener("touchend",this.handleTouchEnd),document.addEventListener("selectionchange",this.handleSelectionChange),document.addEventListener("select",this.handleSelect)}}},{key:"handleKeyUp",value:function(F){this.caretEventHandler(F),this.options.physicalKeyboardHighlight&&this.physicalKeyboard.handleHighlightKeyUp(F)}},{key:"handleKeyDown",value:function(F){this.options.physicalKeyboardHighlight&&this.physicalKeyboard.handleHighlightKeyDown(F)}},{key:"handleMouseUp",value:function(F){this.caretEventHandler(F)}},{key:"handleTouchEnd",value:function(F){this.caretEventHandler(F)}},{key:"handleSelect",value:function(F){this.caretEventHandler(F)}},{key:"handleSelectionChange",value:function(F){navigator.userAgent.includes("Firefox")||this.caretEventHandler(F)}},{key:"caretEventHandler",value:function(F){var V,W=this;F.target.tagName&&(V=F.target.tagName.toLowerCase()),this.dispatch(function(I){var Y=F.target===I.keyboardDOM||F.target&&I.keyboardDOM.contains(F.target);if(W.options.syncInstanceInputs&&Array.isArray(F.path)&&(Y=F.path.some(function(ae){var se;return ae==null||(se=ae.hasAttribute)===null||se===void 0?void 0:se.call(ae,"data-skInstance")})),(V==="textarea"||V==="input"&&["text","search","url","tel","password"].includes(F.target.type))&&!I.options.disableCaretPositioning){var X=F.target.selectionStart,q=F.target.selectionEnd;I.options.rtl&&(X=I.utilities.getRtlOffset(X,I.getInput()),q=I.utilities.getRtlOffset(q,I.getInput())),I.setCaretPosition(X,q),W.activeInputElement=F.target,I.options.debug&&console.log("Caret at: ",I.getCaretPosition(),I.getCaretPositionEnd(),F&&F.target.tagName.toLowerCase(),"(".concat(I.keyboardDOMClass,")"),F==null?void 0:F.type)}else!I.options.disableCaretPositioning&&Y||(F==null?void 0:F.type)==="selectionchange"||(I.setCaretPosition(null),W.activeInputElement=null,I.options.debug&&console.log('Caret position reset due to "'.concat(F==null?void 0:F.type,'" event'),F))})}},{key:"recurseButtons",value:function(F){var V=this;F&&Object.keys(this.buttonElements).forEach(function(W){return V.buttonElements[W].forEach(F)})}},{key:"destroy",value:function(){this.options.debug&&console.log("Destroying simple-keyboard instance: ".concat(this.currentInstanceName));var F=this.options.physicalKeyboardHighlightPreventDefault,V=F!==void 0&&F;document.removeEventListener("keyup",this.handleKeyUp,V),document.removeEventListener("keydown",this.handleKeyDown,V),document.removeEventListener("mouseup",this.handleMouseUp),document.removeEventListener("touchend",this.handleTouchEnd),document.removeEventListener("select",this.handleSelect),document.removeEventListener("selectionchange",this.handleSelectionChange),document.onpointerup=null,document.ontouchend=null,document.ontouchcancel=null,document.onmouseup=null,this.recurseButtons(function(W){W&&(W.onpointerdown=null,W.onpointerup=null,W.onpointercancel=null,W.ontouchstart=null,W.ontouchend=null,W.ontouchcancel=null,W.onclick=null,W.onmousedown=null,W.onmouseup=null,W.remove(),W=null)}),this.keyboardDOM.onpointerdown=null,this.keyboardDOM.ontouchstart=null,this.keyboardDOM.onmousedown=null,this.resetRows(),this.candidateBox&&(this.candidateBox.destroy(),this.candidateBox=null),this.activeInputElement=null,this.keyboardDOM.removeAttribute("data-skInstance"),this.keyboardDOM.innerHTML="",window.SimpleKeyboardInstances[this.currentInstanceName]=null,delete window.SimpleKeyboardInstances[this.currentInstanceName],this.initialized=!1}},{key:"getButtonThemeClasses",value:function(F){var V=this.options.buttonTheme,W=[];return Array.isArray(V)&&V.forEach(function(I){if(I&&I.class&&typeof I.class=="string"&&I.buttons&&typeof I.buttons=="string"){var Y=I.class.split(" ");I.buttons.split(" ").includes(F)&&(W=[].concat(B(W),B(Y)))}else console.warn('Incorrect "buttonTheme". Please check the documentation.',I)}),W}},{key:"setDOMButtonAttributes",value:function(F,V){var W=this.options.buttonAttributes;Array.isArray(W)&&W.forEach(function(I){I.attribute&&typeof I.attribute=="string"&&I.value&&typeof I.value=="string"&&I.buttons&&typeof I.buttons=="string"?I.buttons.split(" ").includes(F)&&V(I.attribute,I.value):console.warn('Incorrect "buttonAttributes". Please check the documentation.',I)})}},{key:"onTouchDeviceDetected",value:function(){this.processAutoTouchEvents(),this.disableContextualWindow()}},{key:"disableContextualWindow",value:function(){window.oncontextmenu=function(F){if(F.target.classList.contains("hg-button"))return F.preventDefault(),F.stopPropagation(),!1}}},{key:"processAutoTouchEvents",value:function(){this.options.autoUseTouchEvents&&(this.options.useTouchEvents=!0,this.options.debug&&console.log("autoUseTouchEvents: Touch device detected, useTouchEvents enabled."))}},{key:"onInit",value:function(){this.options.debug&&console.log("".concat(this.keyboardDOMClass," Initialized")),this.setEventListeners(),typeof this.options.onInit=="function"&&this.options.onInit(this)}},{key:"beforeFirstRender",value:function(){this.utilities.isTouchDevice()&&this.onTouchDeviceDetected(),typeof this.options.beforeFirstRender=="function"&&this.options.beforeFirstRender(this),this.isFirstKeyboardInstance&&this.utilities.pointerEventsSupported()&&!this.options.useTouchEvents&&!this.options.useMouseEvents&&this.options.debug&&console.log("Using PointerEvents as it is supported by this browser"),this.options.useTouchEvents&&this.options.debug&&console.log("useTouchEvents has been enabled. Only touch events will be used.")}},{key:"beforeRender",value:function(){typeof this.options.beforeRender=="function"&&this.options.beforeRender(this)}},{key:"onRender",value:function(){typeof this.options.onRender=="function"&&this.options.onRender(this)}},{key:"onModulesLoaded",value:function(){typeof this.options.onModulesLoaded=="function"&&this.options.onModulesLoaded(this)}},{key:"loadModules",value:function(){var F=this;Array.isArray(this.options.modules)&&(this.options.modules.forEach(function(V){var W=new V(F);W.init&&W.init(F)}),this.keyboardPluginClasses="modules-loaded",this.render(),this.onModulesLoaded())}},{key:"getModuleProp",value:function(F,V){return!!this.modules[F]&&this.modules[F][V]}},{key:"getModulesList",value:function(){return Object.keys(this.modules)}},{key:"parseRowDOMContainers",value:function(F,V,W,I){var Y=this,X=Array.from(F.children),q=0;return X.length&&W.forEach(function(ae,se){var le=I[se];if(!(le&&le>ae))return!1;var de=ae-q,ge=le-q,ye=document.createElement("div");ye.className+="hg-button-container";var he="".concat(Y.options.layoutName,"-r").concat(V,"c").concat(se);ye.setAttribute("data-skUID",he);var ie=X.splice(de,ge-de+1);q=ge-de,ie.forEach(function(ce){return ye.appendChild(ce)}),X.splice(de,0,ye),F.innerHTML="",X.forEach(function(ce){return F.appendChild(ce)}),Y.options.debug&&console.log("rowDOMContainer",ie,de,ge,q+1)}),F}},{key:"render",value:function(){var F=this;this.resetRows(),this.initialized||this.beforeFirstRender(),this.beforeRender();var V="hg-layout-".concat(this.options.layoutName),W=this.options.layout||{default:["` 1 2 3 4 5 6 7 8 9 0 - = {bksp}","{tab} q w e r t y u i o p [ ] \\","{lock} a s d f g h j k l ; ' {enter}","{shift} z x c v b n m , . / {shift}",".com @ {space}"],shift:["~ ! @ # $ % ^ & * ( ) _ + {bksp}","{tab} Q W E R T Y U I O P { } |",'{lock} A S D F G H J K L : " {enter}',"{shift} Z X C V B N M < > ? {shift}",".com @ {space}"]},I=this.options.useTouchEvents||!1,Y=I?"hg-touch-events":"",X=this.options.useMouseEvents||!1,q=this.options.disableRowButtonContainers;this.keyboardDOM.className=this.getKeyboardClassString(this.options.theme,V,this.keyboardPluginClasses,Y),this.keyboardDOM.setAttribute("data-skInstance",this.currentInstanceName),this.keyboardRowsDOM=document.createElement("div"),this.keyboardRowsDOM.className="hg-rows",W[this.options.layoutName||this.defaultName].forEach(function(ae,se){var le=ae.split(" ");F.options.excludeFromLayout&&F.options.excludeFromLayout[F.options.layoutName||F.defaultName]&&(le=le.filter(function(he){return F.options.excludeFromLayout&&!F.options.excludeFromLayout[F.options.layoutName||F.defaultName].includes(he)}));var de=document.createElement("div");de.className+="hg-row";var ge=[],ye=[];le.forEach(function(he,ie){var ce,_e=!q&&typeof he=="string"&&he.length>1&&he.indexOf("[")===0,De=!q&&typeof he=="string"&&he.length>1&&he.indexOf("]")===he.length-1;_e&&(ge.push(ie),he=he.replace(/\[/g,"")),De&&(ye.push(ie),he=he.replace(/\]/g,""));var be=F.utilities.getButtonClass(he),Le=F.utilities.getButtonDisplayName(he,F.options.display,F.options.mergeDisplay),Ye=F.options.useButtonTag?"button":"div",Ee=document.createElement(Ye);Ee.className+="hg-button ".concat(be),(ce=Ee.classList).add.apply(ce,B(F.getButtonThemeClasses(he))),F.setDOMButtonAttributes(he,function(Oe,Je){Ee.setAttribute(Oe,Je)}),F.activeButtonClass="hg-activeButton",!F.utilities.pointerEventsSupported()||I||X?I?(Ee.ontouchstart=function(Oe){F.handleButtonClicked(he,Oe),F.handleButtonMouseDown(he,Oe)},Ee.ontouchend=function(Oe){F.handleButtonMouseUp(he,Oe)},Ee.ontouchcancel=function(Oe){F.handleButtonMouseUp(he,Oe)}):(Ee.onclick=function(Oe){F.setMouseHold(!1),typeof F.options.onKeyReleased!="function"&&F.handleButtonClicked(he,Oe)},Ee.onmousedown=function(Oe){typeof F.options.onKeyReleased!="function"||F.isMouseHold||F.handleButtonClicked(he,Oe),F.handleButtonMouseDown(he,Oe)},Ee.onmouseup=function(Oe){F.handleButtonMouseUp(he,Oe)}):(Ee.onpointerdown=function(Oe){F.handleButtonClicked(he,Oe),F.handleButtonMouseDown(he,Oe)},Ee.onpointerup=function(Oe){F.handleButtonMouseUp(he,Oe)},Ee.onpointercancel=function(Oe){F.handleButtonMouseUp(he,Oe)}),Ee.setAttribute("data-skBtn",he);var We="".concat(F.options.layoutName,"-r").concat(se,"b").concat(ie);Ee.setAttribute("data-skBtnUID",We);var ze=document.createElement("span");ze.innerHTML=Le,Ee.appendChild(ze),F.buttonElements[he]||(F.buttonElements[he]=[]),F.buttonElements[he].push(Ee),de.appendChild(Ee)}),de=F.parseRowDOMContainers(de,se,ge,ye),F.keyboardRowsDOM.appendChild(de)}),this.keyboardDOM.appendChild(this.keyboardRowsDOM),this.onRender(),this.initialized||(this.initialized=!0,!this.utilities.pointerEventsSupported()||I||X?I?(document.ontouchend=function(ae){return F.handleButtonMouseUp(void 0,ae)},document.ontouchcancel=function(ae){return F.handleButtonMouseUp(void 0,ae)},this.keyboardDOM.ontouchstart=function(ae){return F.handleKeyboardContainerMouseDown(ae)}):I||(document.onmouseup=function(ae){return F.handleButtonMouseUp(void 0,ae)},this.keyboardDOM.onmousedown=function(ae){return F.handleKeyboardContainerMouseDown(ae)}):(document.onpointerup=function(ae){return F.handleButtonMouseUp(void 0,ae)},this.keyboardDOM.onpointerdown=function(ae){return F.handleKeyboardContainerMouseDown(ae)}),this.onInit())}}],Q&&w(U.prototype,Q),Object.defineProperty(U,"prototype",{writable:!1}),te}(),re=K,pe=K}(),a}()})})(Mb);var wI=Mb.exports;const SI=zo(wI),CI="{lock}",xI="{shift}",AI="default",dd="shift",FI=e=>{const t=H.useRef(),r=i=>{const n=i===CI||i===xI;n&&t.current&&t.current.options.layoutName===dd?t.current.setOptions({layoutName:AI}):n&&t.current&&t.current.options.layoutName!==dd&&t.current.setOptions({layoutName:dd})};return H.useEffect(()=>{const{layout:i,onChange:n}=e;t.current=new SI(`.${e.keyboardClass}`,{...i,onChange:n,onKeyPress:r}),t.current.setInput(e.value)},[]),H.useEffect(()=>{t.current&&t.current.setInput(e.value)},[e.value]),kt.jsx("div",{className:e.keyboardClass})};FI.defaultProps={keyboardClass:"simple-keyboard"};const NI=e=>t=>kt.jsx(H.Suspense,{fallback:kt.jsx("div",{children:ub.t("Common.messages.loading")}),children:kt.jsx(e,{...t})}),OI=H.lazy(()=>sD(()=>import("./index.es64-BXKYfou_.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url).then(e=>e.i)),PI="


",II="",YI=NI(e=>kt.jsx(OI,{className:"rich-text-area",formats:e.formats,modules:e.modules,onChange:t=>{let r=t;t===PI&&(r=II),e.onChange(r)},placeholder:e.placeholder,theme:"snow",value:e.value}));YI.defaultProps={formats:["header","font","size","bold","italic","underline","strike","blockquote","list","bullet","indent","link","image","video"],modules:{toolbar:[[{header:"1"},{header:"2"},{font:[]}],[{size:[]}],["bold","italic","underline","strike","blockquote"],[{list:"ordered"},{list:"bullet"},{indent:"-1"},{indent:"+1"}],["link","image"],["clean"]],clipboard:{matchVisual:!1}},placeholder:void 0};var am={exports:{}},Eb=function(e,t){return function(){for(var r=new Array(arguments.length),i=0;i"u"}function RI(e){return e!==null&&!up(e)&&e.constructor!==null&&!up(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function Lb(e){return Ui.call(e)==="[object ArrayBuffer]"}function BI(e){return Ui.call(e)==="[object FormData]"}function $I(e){var t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Lb(e.buffer),t}function zI(e){return typeof e=="string"}function HI(e){return typeof e=="number"}function wb(e){return e!==null&&typeof e=="object"}function wo(e){if(Ui.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function UI(e){return Ui.call(e)==="[object Date]"}function VI(e){return Ui.call(e)==="[object File]"}function WI(e){return Ui.call(e)==="[object Blob]"}function Sb(e){return Ui.call(e)==="[object Function]"}function GI(e){return wb(e)&&Sb(e.pipe)}function KI(e){return Ui.call(e)==="[object URLSearchParams]"}function JI(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function ZI(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function om(e,t){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),sm(e))for(var r=0,i=e.length;r"u"||($n.isArray(o)?u=u+"[]":o=[o],$n.forEach(o,function(s){$n.isDate(s)?s=s.toISOString():$n.isObject(s)&&(s=JSON.stringify(s)),n.push(Tg(u)+"="+Tg(s))}))}),i=n.join("&")}if(i){var a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e},QI=Tr;function gu(){this.handlers=[]}gu.prototype.use=function(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1};gu.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)};gu.prototype.forEach=function(e){QI.forEach(this.handlers,function(t){t!==null&&e(t)})};var eY=gu,tY=Tr,rY=function(e,t){tY.forEach(e,function(r,i){i!==t&&i.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[i])})},xb=function(e,t,r,i,n){return e.config=t,r&&(e.code=r),e.request=i,e.response=n,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e},Ab={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},pd,kg;function Fb(){if(kg)return pd;kg=1;var e=xb;return pd=function(t,r,i,n,a){var o=new Error(t);return e(o,r,i,n,a)},pd}var md,Mg;function iY(){if(Mg)return md;Mg=1;var e=Fb();return md=function(t,r,i){var n=i.config.validateStatus;!i.status||!n||n(i.status)?t(i):r(e("Request failed with status code "+i.status,i.config,null,i.request,i))},md}var hd,Eg;function nY(){if(Eg)return hd;Eg=1;var e=Tr;return hd=e.isStandardBrowserEnv()?function(){return{write:function(t,r,i,n,a,o){var u=[];u.push(t+"="+encodeURIComponent(r)),e.isNumber(i)&&u.push("expires="+new Date(i).toGMTString()),e.isString(n)&&u.push("path="+n),e.isString(a)&&u.push("domain="+a),o===!0&&u.push("secure"),document.cookie=u.join("; ")},read:function(t){var r=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),hd}var Lg,wg;function aY(){return wg||(wg=1,Lg=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}),Lg}var Sg,Cg;function sY(){return Cg||(Cg=1,Sg=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}),Sg}var fd,xg;function oY(){if(xg)return fd;xg=1;var e=aY(),t=sY();return fd=function(r,i){return r&&!e(i)?t(r,i):i},fd}var gd,Ag;function uY(){if(Ag)return gd;Ag=1;var e=Tr,t=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return gd=function(r){var i={},n,a,o;return r&&e.forEach(r.split(` +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function G(te,U){(U==null||U>te.length)&&(U=te.length);for(var Q=0,F=new Array(U);Q1&&arguments[1]!==void 0?arguments[1]:F;this.caretPosition=F,this.caretPositionEnd=V}},{key:"getInputCandidates",value:function(F){var V=this,W=this.options,I=W.layoutCandidates,Y=W.layoutCandidatesCaseSensitiveMatch;if(!I||ne(I)!=="object")return{};var X=Object.keys(I).filter(function(se){var le=F.substring(0,V.getCaretPositionEnd()||0)||F,de=new RegExp("".concat(V.utilities.escapeRegex(se),"$"),Y?"g":"gi");return!!B(le.matchAll(de)).length});if(X.length>1){var q=X.sort(function(se,le){return le.length-se.length})[0];return{candidateKey:q,candidateValue:I[q]}}if(X.length){var ae=X[0];return{candidateKey:ae,candidateValue:I[ae]}}return{}}},{key:"showCandidatesBox",value:function(F,V,W){var I=this;this.candidateBox&&this.candidateBox.show({candidateValue:V,targetElement:W,onSelect:function(Y,X){var q=I.options,ae=q.layoutCandidatesCaseSensitiveMatch,se=q.disableCandidateNormalization,le=q.enableLayoutCandidatesKeyPress,de=Y;se||(de=Y.normalize("NFD"));var ge=I.getInput(I.options.inputName,!0),ye=I.getCaretPositionEnd()||0,he=ge.substring(0,ye||0)||ge,ie=new RegExp("".concat(I.utilities.escapeRegex(F),"$"),ae?"g":"gi"),ce=he.replace(ie,de),_e=ge.replace(he,ce),De=ce.length-he.length,be=(ye||ge.length)+De;be<0&&(be=0),I.setInput(_e,I.options.inputName,!0),I.setCaretPosition(be),le&&typeof I.options.onKeyPress=="function"&&I.options.onKeyPress(Y,X),typeof I.options.onChange=="function"&&I.options.onChange(I.getInput(I.options.inputName,!0),X),typeof I.options.onChangeAll=="function"&&I.options.onChangeAll(I.getAllInputs(),X)}})}},{key:"handleButtonClicked",value:function(F,V){var W=this.options,I=W.inputName,Y=I===void 0?this.defaultName:I,X=W.debug;if(F!=="{//}"){this.input[Y]||(this.input[Y]="");var q=this.utilities.getUpdatedInput(F,this.input[Y],this.caretPosition,this.caretPositionEnd);if(this.utilities.isStandardButton(F)&&this.activeInputElement&&this.input[Y]&&this.input[Y]===q&&this.caretPosition===0&&this.caretPositionEnd===q.length)return this.setInput("",this.options.inputName,!0),this.setCaretPosition(0),this.activeInputElement.value="",this.activeInputElement.setSelectionRange(0,0),void this.handleButtonClicked(F,V);if(typeof this.options.onKeyPress=="function"&&this.options.onKeyPress(F,V),this.input[Y]!==q&&(!this.options.inputPattern||this.options.inputPattern&&this.inputPatternIsValid(q))){if(this.options.maxLength&&this.utilities.handleMaxLength(this.input,q))return;var ae=this.utilities.getUpdatedInput(F,this.input[Y],this.caretPosition,this.caretPositionEnd,!0);if(this.setInput(ae,this.options.inputName,!0),X&&console.log("Input changed:",this.getAllInputs()),this.options.debug&&console.log("Caret at: ",this.getCaretPosition(),this.getCaretPositionEnd(),"(".concat(this.keyboardDOMClass,")"),V==null?void 0:V.type),this.options.syncInstanceInputs&&this.syncInstanceInputs(),typeof this.options.onChange=="function"&&this.options.onChange(this.getInput(this.options.inputName,!0),V),typeof this.options.onChangeAll=="function"&&this.options.onChangeAll(this.getAllInputs(),V),V!=null&&V.target&&this.options.enableLayoutCandidates){var se,le=this.getInputCandidates(q),de=le.candidateKey,ge=le.candidateValue;de&&ge?this.showCandidatesBox(de,ge,this.keyboardDOM):(se=this.candidateBox)===null||se===void 0||se.destroy()}}this.caretPositionEnd&&this.caretPosition!==this.caretPositionEnd&&(this.setCaretPosition(this.caretPositionEnd,this.caretPositionEnd),this.activeInputElement&&this.activeInputElement.setSelectionRange(this.caretPositionEnd,this.caretPositionEnd),this.options.debug&&console.log("Caret position aligned",this.caretPosition)),X&&console.log("Key pressed:",F)}}},{key:"getMouseHold",value:function(){return this.isMouseHold}},{key:"setMouseHold",value:function(F){this.options.syncInstanceInputs?this.dispatch(function(V){V.isMouseHold=F}):this.isMouseHold=F}},{key:"handleButtonMouseDown",value:function(F,V){var W=this;V&&(this.options.preventMouseDownDefault&&V.preventDefault(),this.options.stopMouseDownPropagation&&V.stopPropagation(),V.target.classList.add(this.activeButtonClass)),this.holdInteractionTimeout&&clearTimeout(this.holdInteractionTimeout),this.holdTimeout&&clearTimeout(this.holdTimeout),this.setMouseHold(!0),this.options.disableButtonHold||(this.holdTimeout=window.setTimeout(function(){(W.getMouseHold()&&(!F.includes("{")&&!F.includes("}")||F==="{delete}"||F==="{backspace}"||F==="{bksp}"||F==="{space}"||F==="{tab}")||F==="{arrowright}"||F==="{arrowleft}"||F==="{arrowup}"||F==="{arrowdown}")&&(W.options.debug&&console.log("Button held:",F),W.handleButtonHold(F)),clearTimeout(W.holdTimeout)},500))}},{key:"handleButtonMouseUp",value:function(F,V){var W=this;V&&(this.options.preventMouseUpDefault&&V.preventDefault&&V.preventDefault(),this.options.stopMouseUpPropagation&&V.stopPropagation&&V.stopPropagation(),!(V.target===this.keyboardDOM||V.target&&this.keyboardDOM.contains(V.target)||this.candidateBox&&this.candidateBox.candidateBoxElement&&(V.target===this.candidateBox.candidateBoxElement||V.target&&this.candidateBox.candidateBoxElement.contains(V.target)))&&this.candidateBox&&this.candidateBox.destroy()),this.recurseButtons(function(I){I.classList.remove(W.activeButtonClass)}),this.setMouseHold(!1),this.holdInteractionTimeout&&clearTimeout(this.holdInteractionTimeout),F&&typeof this.options.onKeyReleased=="function"&&this.options.onKeyReleased(F,V)}},{key:"handleKeyboardContainerMouseDown",value:function(F){this.options.preventMouseDownDefault&&F.preventDefault()}},{key:"handleButtonHold",value:function(F){var V=this;this.holdInteractionTimeout&&clearTimeout(this.holdInteractionTimeout),this.holdInteractionTimeout=window.setTimeout(function(){V.getMouseHold()?(V.handleButtonClicked(F),V.handleButtonHold(F)):clearTimeout(V.holdInteractionTimeout)},100)}},{key:"syncInstanceInputs",value:function(){var F=this;this.dispatch(function(V){V.replaceInput(F.input),V.setCaretPosition(F.caretPosition,F.caretPositionEnd)})}},{key:"clearInput",value:function(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.inputName||this.defaultName;this.input[F]="",this.setCaretPosition(0),this.options.syncInstanceInputs&&this.syncInstanceInputs()}},{key:"getInput",value:function(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.inputName||this.defaultName,V=arguments.length>1&&arguments[1]!==void 0&&arguments[1];return this.options.syncInstanceInputs&&!V&&this.syncInstanceInputs(),this.options.rtl?"‫"+this.input[F].replace("‫","").replace("‬","")+"‬":this.input[F]}},{key:"getAllInputs",value:function(){var F=this,V={};return Object.keys(this.input).forEach(function(W){V[W]=F.getInput(W,!0)}),V}},{key:"setInput",value:function(F){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.inputName||this.defaultName,W=arguments.length>2?arguments[2]:void 0;this.input[V]=F,!W&&this.options.syncInstanceInputs&&this.syncInstanceInputs()}},{key:"replaceInput",value:function(F){this.input=F}},{key:"setOptions",value:function(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},V=this.changedOptions(F);this.options=Object.assign(this.options,F),V.length&&(this.options.debug&&console.log("changedOptions",V),this.onSetOptions(V),this.render())}},{key:"changedOptions",value:function(F){var V=this;return Object.keys(F).filter(function(W){return JSON.stringify(F[W])!==JSON.stringify(V.options[W])})}},{key:"onSetOptions",value:function(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];F.includes("layoutName")&&this.candidateBox&&this.candidateBox.destroy(),(F.includes("layoutCandidatesPageSize")||F.includes("layoutCandidates"))&&this.candidateBox&&(this.candidateBox.destroy(),this.candidateBox=new A({utilities:this.utilities,options:this.options}))}},{key:"resetRows",value:function(){this.keyboardRowsDOM&&this.keyboardRowsDOM.remove(),this.keyboardDOM.className=this.keyboardDOMClass,this.keyboardDOM.setAttribute("data-skInstance",this.currentInstanceName),this.buttonElements={}}},{key:"dispatch",value:function(F){if(!window.SimpleKeyboardInstances)throw console.warn("SimpleKeyboardInstances is not defined. Dispatch cannot be called."),new Error("INSTANCES_VAR_ERROR");return Object.keys(window.SimpleKeyboardInstances).forEach(function(V){F(window.SimpleKeyboardInstances[V],V)})}},{key:"addButtonTheme",value:function(F,V){var W=this;V&&F&&(F.split(" ").forEach(function(I){V.split(" ").forEach(function(Y){W.options.buttonTheme||(W.options.buttonTheme=[]);var X=!1;W.options.buttonTheme.map(function(q){if(q!=null&&q.class.split(" ").includes(Y)){X=!0;var ae=q.buttons.split(" ");ae.includes(I)||(X=!0,ae.push(I),q.buttons=ae.join(" "))}return q}),X||W.options.buttonTheme.push({class:Y,buttons:F})})}),this.render())}},{key:"removeButtonTheme",value:function(F,V){var W=this;if(!F&&!V)return this.options.buttonTheme=[],void this.render();F&&Array.isArray(this.options.buttonTheme)&&this.options.buttonTheme.length&&(F.split(" ").forEach(function(I){var Y;(Y=W.options)===null||Y===void 0||(Y=Y.buttonTheme)===null||Y===void 0||Y.map(function(X,q){if(X&&V&&V.includes(X.class)||!V){var ae,se,le=(ae=X)===null||ae===void 0?void 0:ae.buttons.split(" ").filter(function(de){return de!==I});X&&le!=null&&le.length?X.buttons=le.join(" "):((se=W.options.buttonTheme)===null||se===void 0||se.splice(q,1),X=null)}return X})}),this.render())}},{key:"getButtonElement",value:function(F){var V,W=this.buttonElements[F];return W&&(V=W.length>1?W:W[0]),V}},{key:"inputPatternIsValid",value:function(F){var V,W=this.options.inputPattern;if((V=W instanceof RegExp?W:W[this.options.inputName||this.defaultName])&&F){var I=V.test(F);return this.options.debug&&console.log('inputPattern ("'.concat(V,'"): ').concat(I?"passed":"did not pass!")),I}return!0}},{key:"setEventListeners",value:function(){if(this.isFirstKeyboardInstance||!this.allKeyboardInstances){this.options.debug&&console.log("Caret handling started (".concat(this.keyboardDOMClass,")"));var F=this.options.physicalKeyboardHighlightPreventDefault,V=F!==void 0&&F;document.addEventListener("keyup",this.handleKeyUp,V),document.addEventListener("keydown",this.handleKeyDown,V),document.addEventListener("mouseup",this.handleMouseUp),document.addEventListener("touchend",this.handleTouchEnd),document.addEventListener("selectionchange",this.handleSelectionChange),document.addEventListener("select",this.handleSelect)}}},{key:"handleKeyUp",value:function(F){this.caretEventHandler(F),this.options.physicalKeyboardHighlight&&this.physicalKeyboard.handleHighlightKeyUp(F)}},{key:"handleKeyDown",value:function(F){this.options.physicalKeyboardHighlight&&this.physicalKeyboard.handleHighlightKeyDown(F)}},{key:"handleMouseUp",value:function(F){this.caretEventHandler(F)}},{key:"handleTouchEnd",value:function(F){this.caretEventHandler(F)}},{key:"handleSelect",value:function(F){this.caretEventHandler(F)}},{key:"handleSelectionChange",value:function(F){navigator.userAgent.includes("Firefox")||this.caretEventHandler(F)}},{key:"caretEventHandler",value:function(F){var V,W=this;F.target.tagName&&(V=F.target.tagName.toLowerCase()),this.dispatch(function(I){var Y=F.target===I.keyboardDOM||F.target&&I.keyboardDOM.contains(F.target);if(W.options.syncInstanceInputs&&Array.isArray(F.path)&&(Y=F.path.some(function(ae){var se;return ae==null||(se=ae.hasAttribute)===null||se===void 0?void 0:se.call(ae,"data-skInstance")})),(V==="textarea"||V==="input"&&["text","search","url","tel","password"].includes(F.target.type))&&!I.options.disableCaretPositioning){var X=F.target.selectionStart,q=F.target.selectionEnd;I.options.rtl&&(X=I.utilities.getRtlOffset(X,I.getInput()),q=I.utilities.getRtlOffset(q,I.getInput())),I.setCaretPosition(X,q),W.activeInputElement=F.target,I.options.debug&&console.log("Caret at: ",I.getCaretPosition(),I.getCaretPositionEnd(),F&&F.target.tagName.toLowerCase(),"(".concat(I.keyboardDOMClass,")"),F==null?void 0:F.type)}else!I.options.disableCaretPositioning&&Y||(F==null?void 0:F.type)==="selectionchange"||(I.setCaretPosition(null),W.activeInputElement=null,I.options.debug&&console.log('Caret position reset due to "'.concat(F==null?void 0:F.type,'" event'),F))})}},{key:"recurseButtons",value:function(F){var V=this;F&&Object.keys(this.buttonElements).forEach(function(W){return V.buttonElements[W].forEach(F)})}},{key:"destroy",value:function(){this.options.debug&&console.log("Destroying simple-keyboard instance: ".concat(this.currentInstanceName));var F=this.options.physicalKeyboardHighlightPreventDefault,V=F!==void 0&&F;document.removeEventListener("keyup",this.handleKeyUp,V),document.removeEventListener("keydown",this.handleKeyDown,V),document.removeEventListener("mouseup",this.handleMouseUp),document.removeEventListener("touchend",this.handleTouchEnd),document.removeEventListener("select",this.handleSelect),document.removeEventListener("selectionchange",this.handleSelectionChange),document.onpointerup=null,document.ontouchend=null,document.ontouchcancel=null,document.onmouseup=null,this.recurseButtons(function(W){W&&(W.onpointerdown=null,W.onpointerup=null,W.onpointercancel=null,W.ontouchstart=null,W.ontouchend=null,W.ontouchcancel=null,W.onclick=null,W.onmousedown=null,W.onmouseup=null,W.remove(),W=null)}),this.keyboardDOM.onpointerdown=null,this.keyboardDOM.ontouchstart=null,this.keyboardDOM.onmousedown=null,this.resetRows(),this.candidateBox&&(this.candidateBox.destroy(),this.candidateBox=null),this.activeInputElement=null,this.keyboardDOM.removeAttribute("data-skInstance"),this.keyboardDOM.innerHTML="",window.SimpleKeyboardInstances[this.currentInstanceName]=null,delete window.SimpleKeyboardInstances[this.currentInstanceName],this.initialized=!1}},{key:"getButtonThemeClasses",value:function(F){var V=this.options.buttonTheme,W=[];return Array.isArray(V)&&V.forEach(function(I){if(I&&I.class&&typeof I.class=="string"&&I.buttons&&typeof I.buttons=="string"){var Y=I.class.split(" ");I.buttons.split(" ").includes(F)&&(W=[].concat(B(W),B(Y)))}else console.warn('Incorrect "buttonTheme". Please check the documentation.',I)}),W}},{key:"setDOMButtonAttributes",value:function(F,V){var W=this.options.buttonAttributes;Array.isArray(W)&&W.forEach(function(I){I.attribute&&typeof I.attribute=="string"&&I.value&&typeof I.value=="string"&&I.buttons&&typeof I.buttons=="string"?I.buttons.split(" ").includes(F)&&V(I.attribute,I.value):console.warn('Incorrect "buttonAttributes". Please check the documentation.',I)})}},{key:"onTouchDeviceDetected",value:function(){this.processAutoTouchEvents(),this.disableContextualWindow()}},{key:"disableContextualWindow",value:function(){window.oncontextmenu=function(F){if(F.target.classList.contains("hg-button"))return F.preventDefault(),F.stopPropagation(),!1}}},{key:"processAutoTouchEvents",value:function(){this.options.autoUseTouchEvents&&(this.options.useTouchEvents=!0,this.options.debug&&console.log("autoUseTouchEvents: Touch device detected, useTouchEvents enabled."))}},{key:"onInit",value:function(){this.options.debug&&console.log("".concat(this.keyboardDOMClass," Initialized")),this.setEventListeners(),typeof this.options.onInit=="function"&&this.options.onInit(this)}},{key:"beforeFirstRender",value:function(){this.utilities.isTouchDevice()&&this.onTouchDeviceDetected(),typeof this.options.beforeFirstRender=="function"&&this.options.beforeFirstRender(this),this.isFirstKeyboardInstance&&this.utilities.pointerEventsSupported()&&!this.options.useTouchEvents&&!this.options.useMouseEvents&&this.options.debug&&console.log("Using PointerEvents as it is supported by this browser"),this.options.useTouchEvents&&this.options.debug&&console.log("useTouchEvents has been enabled. Only touch events will be used.")}},{key:"beforeRender",value:function(){typeof this.options.beforeRender=="function"&&this.options.beforeRender(this)}},{key:"onRender",value:function(){typeof this.options.onRender=="function"&&this.options.onRender(this)}},{key:"onModulesLoaded",value:function(){typeof this.options.onModulesLoaded=="function"&&this.options.onModulesLoaded(this)}},{key:"loadModules",value:function(){var F=this;Array.isArray(this.options.modules)&&(this.options.modules.forEach(function(V){var W=new V(F);W.init&&W.init(F)}),this.keyboardPluginClasses="modules-loaded",this.render(),this.onModulesLoaded())}},{key:"getModuleProp",value:function(F,V){return!!this.modules[F]&&this.modules[F][V]}},{key:"getModulesList",value:function(){return Object.keys(this.modules)}},{key:"parseRowDOMContainers",value:function(F,V,W,I){var Y=this,X=Array.from(F.children),q=0;return X.length&&W.forEach(function(ae,se){var le=I[se];if(!(le&&le>ae))return!1;var de=ae-q,ge=le-q,ye=document.createElement("div");ye.className+="hg-button-container";var he="".concat(Y.options.layoutName,"-r").concat(V,"c").concat(se);ye.setAttribute("data-skUID",he);var ie=X.splice(de,ge-de+1);q=ge-de,ie.forEach(function(ce){return ye.appendChild(ce)}),X.splice(de,0,ye),F.innerHTML="",X.forEach(function(ce){return F.appendChild(ce)}),Y.options.debug&&console.log("rowDOMContainer",ie,de,ge,q+1)}),F}},{key:"render",value:function(){var F=this;this.resetRows(),this.initialized||this.beforeFirstRender(),this.beforeRender();var V="hg-layout-".concat(this.options.layoutName),W=this.options.layout||{default:["` 1 2 3 4 5 6 7 8 9 0 - = {bksp}","{tab} q w e r t y u i o p [ ] \\","{lock} a s d f g h j k l ; ' {enter}","{shift} z x c v b n m , . / {shift}",".com @ {space}"],shift:["~ ! @ # $ % ^ & * ( ) _ + {bksp}","{tab} Q W E R T Y U I O P { } |",'{lock} A S D F G H J K L : " {enter}',"{shift} Z X C V B N M < > ? {shift}",".com @ {space}"]},I=this.options.useTouchEvents||!1,Y=I?"hg-touch-events":"",X=this.options.useMouseEvents||!1,q=this.options.disableRowButtonContainers;this.keyboardDOM.className=this.getKeyboardClassString(this.options.theme,V,this.keyboardPluginClasses,Y),this.keyboardDOM.setAttribute("data-skInstance",this.currentInstanceName),this.keyboardRowsDOM=document.createElement("div"),this.keyboardRowsDOM.className="hg-rows",W[this.options.layoutName||this.defaultName].forEach(function(ae,se){var le=ae.split(" ");F.options.excludeFromLayout&&F.options.excludeFromLayout[F.options.layoutName||F.defaultName]&&(le=le.filter(function(he){return F.options.excludeFromLayout&&!F.options.excludeFromLayout[F.options.layoutName||F.defaultName].includes(he)}));var de=document.createElement("div");de.className+="hg-row";var ge=[],ye=[];le.forEach(function(he,ie){var ce,_e=!q&&typeof he=="string"&&he.length>1&&he.indexOf("[")===0,De=!q&&typeof he=="string"&&he.length>1&&he.indexOf("]")===he.length-1;_e&&(ge.push(ie),he=he.replace(/\[/g,"")),De&&(ye.push(ie),he=he.replace(/\]/g,""));var be=F.utilities.getButtonClass(he),Le=F.utilities.getButtonDisplayName(he,F.options.display,F.options.mergeDisplay),Ye=F.options.useButtonTag?"button":"div",Ee=document.createElement(Ye);Ee.className+="hg-button ".concat(be),(ce=Ee.classList).add.apply(ce,B(F.getButtonThemeClasses(he))),F.setDOMButtonAttributes(he,function(Oe,Je){Ee.setAttribute(Oe,Je)}),F.activeButtonClass="hg-activeButton",!F.utilities.pointerEventsSupported()||I||X?I?(Ee.ontouchstart=function(Oe){F.handleButtonClicked(he,Oe),F.handleButtonMouseDown(he,Oe)},Ee.ontouchend=function(Oe){F.handleButtonMouseUp(he,Oe)},Ee.ontouchcancel=function(Oe){F.handleButtonMouseUp(he,Oe)}):(Ee.onclick=function(Oe){F.setMouseHold(!1),typeof F.options.onKeyReleased!="function"&&F.handleButtonClicked(he,Oe)},Ee.onmousedown=function(Oe){typeof F.options.onKeyReleased!="function"||F.isMouseHold||F.handleButtonClicked(he,Oe),F.handleButtonMouseDown(he,Oe)},Ee.onmouseup=function(Oe){F.handleButtonMouseUp(he,Oe)}):(Ee.onpointerdown=function(Oe){F.handleButtonClicked(he,Oe),F.handleButtonMouseDown(he,Oe)},Ee.onpointerup=function(Oe){F.handleButtonMouseUp(he,Oe)},Ee.onpointercancel=function(Oe){F.handleButtonMouseUp(he,Oe)}),Ee.setAttribute("data-skBtn",he);var We="".concat(F.options.layoutName,"-r").concat(se,"b").concat(ie);Ee.setAttribute("data-skBtnUID",We);var ze=document.createElement("span");ze.innerHTML=Le,Ee.appendChild(ze),F.buttonElements[he]||(F.buttonElements[he]=[]),F.buttonElements[he].push(Ee),de.appendChild(Ee)}),de=F.parseRowDOMContainers(de,se,ge,ye),F.keyboardRowsDOM.appendChild(de)}),this.keyboardDOM.appendChild(this.keyboardRowsDOM),this.onRender(),this.initialized||(this.initialized=!0,!this.utilities.pointerEventsSupported()||I||X?I?(document.ontouchend=function(ae){return F.handleButtonMouseUp(void 0,ae)},document.ontouchcancel=function(ae){return F.handleButtonMouseUp(void 0,ae)},this.keyboardDOM.ontouchstart=function(ae){return F.handleKeyboardContainerMouseDown(ae)}):I||(document.onmouseup=function(ae){return F.handleButtonMouseUp(void 0,ae)},this.keyboardDOM.onmousedown=function(ae){return F.handleKeyboardContainerMouseDown(ae)}):(document.onpointerup=function(ae){return F.handleButtonMouseUp(void 0,ae)},this.keyboardDOM.onpointerdown=function(ae){return F.handleKeyboardContainerMouseDown(ae)}),this.onInit())}}],Q&&w(U.prototype,Q),Object.defineProperty(U,"prototype",{writable:!1}),te}(),re=K,pe=K}(),a}()})})(Mb);var wI=Mb.exports;const SI=zo(wI),CI="{lock}",xI="{shift}",AI="default",dd="shift",FI=e=>{const t=H.useRef(),r=i=>{const n=i===CI||i===xI;n&&t.current&&t.current.options.layoutName===dd?t.current.setOptions({layoutName:AI}):n&&t.current&&t.current.options.layoutName!==dd&&t.current.setOptions({layoutName:dd})};return H.useEffect(()=>{const{layout:i,onChange:n}=e;t.current=new SI(`.${e.keyboardClass}`,{...i,onChange:n,onKeyPress:r}),t.current.setInput(e.value)},[]),H.useEffect(()=>{t.current&&t.current.setInput(e.value)},[e.value]),kt.jsx("div",{className:e.keyboardClass})};FI.defaultProps={keyboardClass:"simple-keyboard"};const NI=e=>t=>kt.jsx(H.Suspense,{fallback:kt.jsx("div",{children:ub.t("Common.messages.loading")}),children:kt.jsx(e,{...t})}),OI=H.lazy(()=>sD(()=>import("./index.es64-BAO8nvLK.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url).then(e=>e.i)),PI="


",II="",YI=NI(e=>kt.jsx(OI,{className:"rich-text-area",formats:e.formats,modules:e.modules,onChange:t=>{let r=t;t===PI&&(r=II),e.onChange(r)},placeholder:e.placeholder,theme:"snow",value:e.value}));YI.defaultProps={formats:["header","font","size","bold","italic","underline","strike","blockquote","list","bullet","indent","link","image","video"],modules:{toolbar:[[{header:"1"},{header:"2"},{font:[]}],[{size:[]}],["bold","italic","underline","strike","blockquote"],[{list:"ordered"},{list:"bullet"},{indent:"-1"},{indent:"+1"}],["link","image"],["clean"]],clipboard:{matchVisual:!1}},placeholder:void 0};var am={exports:{}},Eb=function(e,t){return function(){for(var r=new Array(arguments.length),i=0;i"u"}function RI(e){return e!==null&&!up(e)&&e.constructor!==null&&!up(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function Lb(e){return Ui.call(e)==="[object ArrayBuffer]"}function BI(e){return Ui.call(e)==="[object FormData]"}function $I(e){var t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Lb(e.buffer),t}function zI(e){return typeof e=="string"}function HI(e){return typeof e=="number"}function wb(e){return e!==null&&typeof e=="object"}function wo(e){if(Ui.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function UI(e){return Ui.call(e)==="[object Date]"}function VI(e){return Ui.call(e)==="[object File]"}function WI(e){return Ui.call(e)==="[object Blob]"}function Sb(e){return Ui.call(e)==="[object Function]"}function GI(e){return wb(e)&&Sb(e.pipe)}function KI(e){return Ui.call(e)==="[object URLSearchParams]"}function JI(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function ZI(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function om(e,t){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),sm(e))for(var r=0,i=e.length;r"u"||($n.isArray(o)?u=u+"[]":o=[o],$n.forEach(o,function(s){$n.isDate(s)?s=s.toISOString():$n.isObject(s)&&(s=JSON.stringify(s)),n.push(Tg(u)+"="+Tg(s))}))}),i=n.join("&")}if(i){var a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e},QI=Tr;function gu(){this.handlers=[]}gu.prototype.use=function(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1};gu.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)};gu.prototype.forEach=function(e){QI.forEach(this.handlers,function(t){t!==null&&e(t)})};var eY=gu,tY=Tr,rY=function(e,t){tY.forEach(e,function(r,i){i!==t&&i.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[i])})},xb=function(e,t,r,i,n){return e.config=t,r&&(e.code=r),e.request=i,e.response=n,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e},Ab={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},pd,kg;function Fb(){if(kg)return pd;kg=1;var e=xb;return pd=function(t,r,i,n,a){var o=new Error(t);return e(o,r,i,n,a)},pd}var md,Mg;function iY(){if(Mg)return md;Mg=1;var e=Fb();return md=function(t,r,i){var n=i.config.validateStatus;!i.status||!n||n(i.status)?t(i):r(e("Request failed with status code "+i.status,i.config,null,i.request,i))},md}var hd,Eg;function nY(){if(Eg)return hd;Eg=1;var e=Tr;return hd=e.isStandardBrowserEnv()?function(){return{write:function(t,r,i,n,a,o){var u=[];u.push(t+"="+encodeURIComponent(r)),e.isNumber(i)&&u.push("expires="+new Date(i).toGMTString()),e.isString(n)&&u.push("path="+n),e.isString(a)&&u.push("domain="+a),o===!0&&u.push("secure"),document.cookie=u.join("; ")},read:function(t){var r=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),hd}var Lg,wg;function aY(){return wg||(wg=1,Lg=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}),Lg}var Sg,Cg;function sY(){return Cg||(Cg=1,Sg=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}),Sg}var fd,xg;function oY(){if(xg)return fd;xg=1;var e=aY(),t=sY();return fd=function(r,i){return r&&!e(i)?t(r,i):i},fd}var gd,Ag;function uY(){if(Ag)return gd;Ag=1;var e=Tr,t=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return gd=function(r){var i={},n,a,o;return r&&e.forEach(r.split(` `),function(u){if(o=u.indexOf(":"),n=e.trim(u.substr(0,o)).toLowerCase(),a=e.trim(u.substr(o+1)),n){if(i[n]&&t.indexOf(n)>=0)return;n==="set-cookie"?i[n]=(i[n]?i[n]:[]).concat([a]):i[n]=i[n]?i[n]+", "+a:a}}),i},gd}var yd,Fg;function lY(){if(Fg)return yd;Fg=1;var e=Tr;return yd=e.isStandardBrowserEnv()?function(){var t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),i;function n(a){var o=a;return t&&(r.setAttribute("href",o),o=r.href),r.setAttribute("href",o),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return i=n(window.location.href),function(a){var o=e.isString(a)?n(a):a;return o.protocol===i.protocol&&o.host===i.host}}():function(){return function(){return!0}}(),yd}var _d,Ng;function yu(){if(Ng)return _d;Ng=1;function e(t){this.message=t}return e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,_d=e,_d}var vd,Og;function Pg(){if(Og)return vd;Og=1;var e=Tr,t=iY(),r=nY(),i=Cb,n=oY(),a=uY(),o=lY(),u=Fb(),s=Ab,l=yu();return vd=function(c){return new Promise(function(m,p){var f=c.data,b=c.headers,_=c.responseType,v;function T(){c.cancelToken&&c.cancelToken.unsubscribe(v),c.signal&&c.signal.removeEventListener("abort",v)}e.isFormData(f)&&delete b["Content-Type"];var k=new XMLHttpRequest;if(c.auth){var M=c.auth.username||"",S=c.auth.password?unescape(encodeURIComponent(c.auth.password)):"";b.Authorization="Basic "+btoa(M+":"+S)}var P=n(c.baseURL,c.url);k.open(c.method.toUpperCase(),i(P,c.params,c.paramsSerializer),!0),k.timeout=c.timeout;function C(){if(k){var L="getAllResponseHeaders"in k?a(k.getAllResponseHeaders()):null,A=!_||_==="text"||_==="json"?k.responseText:k.response,B={data:A,status:k.status,statusText:k.statusText,headers:L,config:c,request:k};t(function(G){m(G),T()},function(G){p(G),T()},B),k=null}}if("onloadend"in k?k.onloadend=C:k.onreadystatechange=function(){!k||k.readyState!==4||k.status===0&&!(k.responseURL&&k.responseURL.indexOf("file:")===0)||setTimeout(C)},k.onabort=function(){k&&(p(u("Request aborted",c,"ECONNABORTED",k)),k=null)},k.onerror=function(){p(u("Network Error",c,null,k)),k=null},k.ontimeout=function(){var L=c.timeout?"timeout of "+c.timeout+"ms exceeded":"timeout exceeded",A=c.transitional||s;c.timeoutErrorMessage&&(L=c.timeoutErrorMessage),p(u(L,c,A.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",k)),k=null},e.isStandardBrowserEnv()){var J=(c.withCredentials||o(P))&&c.xsrfCookieName?r.read(c.xsrfCookieName):void 0;J&&(b[c.xsrfHeaderName]=J)}"setRequestHeader"in k&&e.forEach(b,function(L,A){typeof f>"u"&&A.toLowerCase()==="content-type"?delete b[A]:k.setRequestHeader(A,L)}),e.isUndefined(c.withCredentials)||(k.withCredentials=!!c.withCredentials),_&&_!=="json"&&(k.responseType=c.responseType),typeof c.onDownloadProgress=="function"&&k.addEventListener("progress",c.onDownloadProgress),typeof c.onUploadProgress=="function"&&k.upload&&k.upload.addEventListener("progress",c.onUploadProgress),(c.cancelToken||c.signal)&&(v=function(L){k&&(p(!L||L&&L.type?new l("canceled"):L),k.abort(),k=null)},c.cancelToken&&c.cancelToken.subscribe(v),c.signal&&(c.signal.aborted?v():c.signal.addEventListener("abort",v))),f||(f=null),k.send(f)})},vd}var ir=Tr,Ig=rY,cY=xb,dY=Ab,pY={"Content-Type":"application/x-www-form-urlencoded"};function Yg(e,t){!ir.isUndefined(e)&&ir.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function mY(){var e;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(e=Pg()),e}function hY(e,t,r){if(ir.isString(e))try{return(t||JSON.parse)(e),ir.trim(e)}catch(i){if(i.name!=="SyntaxError")throw i}return(r||JSON.stringify)(e)}var _u={transitional:dY,adapter:mY(),transformRequest:[function(e,t){return Ig(t,"Accept"),Ig(t,"Content-Type"),ir.isFormData(e)||ir.isArrayBuffer(e)||ir.isBuffer(e)||ir.isStream(e)||ir.isFile(e)||ir.isBlob(e)?e:ir.isArrayBufferView(e)?e.buffer:ir.isURLSearchParams(e)?(Yg(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):ir.isObject(e)||t&&t["Content-Type"]==="application/json"?(Yg(t,"application/json"),hY(e)):e}],transformResponse:[function(e){var t=this.transitional||_u.transitional,r=t&&t.silentJSONParsing,i=t&&t.forcedJSONParsing,n=!r&&this.responseType==="json";if(n||i&&ir.isString(e)&&e.length)try{return JSON.parse(e)}catch(a){if(n)throw a.name==="SyntaxError"?cY(a,this,"E_JSON_PARSE"):a}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};ir.forEach(["delete","get","head"],function(e){_u.headers[e]={}});ir.forEach(["post","put","patch"],function(e){_u.headers[e]=ir.merge(pY)});var um=_u,fY=Tr,gY=um,yY=function(e,t,r){var i=this||gY;return fY.forEach(r,function(n){e=n.call(i,e,t)}),e},jg,Rg;function Nb(){return Rg||(Rg=1,jg=function(e){return!!(e&&e.__CANCEL__)}),jg}var Bg=Tr,bd=yY,_Y=Nb(),vY=um,bY=yu();function Dd(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new bY("canceled")}var DY=function(e){Dd(e),e.headers=e.headers||{},e.data=bd.call(e,e.data,e.headers,e.transformRequest),e.headers=Bg.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),Bg.forEach(["delete","get","head","post","put","patch","common"],function(r){delete e.headers[r]});var t=e.adapter||vY.adapter;return t(e).then(function(r){return Dd(e),r.data=bd.call(e,r.data,r.headers,e.transformResponse),r},function(r){return _Y(r)||(Dd(e),r&&r.response&&(r.response.data=bd.call(e,r.response.data,r.response.headers,e.transformResponse))),Promise.reject(r)})},Lr=Tr,Ob=function(e,t){t=t||{};var r={};function i(l,c){return Lr.isPlainObject(l)&&Lr.isPlainObject(c)?Lr.merge(l,c):Lr.isPlainObject(c)?Lr.merge({},c):Lr.isArray(c)?c.slice():c}function n(l){if(Lr.isUndefined(t[l])){if(!Lr.isUndefined(e[l]))return i(void 0,e[l])}else return i(e[l],t[l])}function a(l){if(!Lr.isUndefined(t[l]))return i(void 0,t[l])}function o(l){if(Lr.isUndefined(t[l])){if(!Lr.isUndefined(e[l]))return i(void 0,e[l])}else return i(void 0,t[l])}function u(l){if(l in t)return i(e[l],t[l]);if(l in e)return i(void 0,e[l])}var s={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:u};return Lr.forEach(Object.keys(e).concat(Object.keys(t)),function(l){var c=s[l]||n,m=c(l);Lr.isUndefined(m)&&c!==u||(r[l]=m)}),r},$g,zg;function Pb(){return zg||(zg=1,$g={version:"0.26.1"}),$g}var TY=Pb().version,lm={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){lm[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});var Hg={};lm.transitional=function(e,t,r){function i(n,a){return"[Axios v"+TY+"] Transitional option '"+n+"'"+a+(r?". "+r:"")}return function(n,a,o){if(e===!1)throw new Error(i(a," has been removed"+(t?" in "+t:"")));return t&&!Hg[a]&&(Hg[a]=!0,console.warn(i(a," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(n,a,o):!0}};function kY(e,t,r){if(typeof e!="object")throw new TypeError("options must be an object");for(var i=Object.keys(e),n=i.length;n-- >0;){var a=i[n],o=t[a];if(o){var u=e[a],s=u===void 0||o(u,a,e);if(s!==!0)throw new TypeError("option "+a+" must be "+s);continue}if(r!==!0)throw Error("Unknown option "+a)}}var MY={assertOptions:kY,validators:lm},Ib=Tr,EY=Cb,Ug=eY,Vg=DY,vu=Ob,Yb=MY,zn=Yb.validators;function vs(e){this.defaults=e,this.interceptors={request:new Ug,response:new Ug}}vs.prototype.request=function(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=vu(this.defaults,t),t.method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var r=t.transitional;r!==void 0&&Yb.assertOptions(r,{silentJSONParsing:zn.transitional(zn.boolean),forcedJSONParsing:zn.transitional(zn.boolean),clarifyTimeoutError:zn.transitional(zn.boolean)},!1);var i=[],n=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(t)===!1||(n=n&&m.synchronous,i.unshift(m.fulfilled,m.rejected))});var a=[];this.interceptors.response.forEach(function(m){a.push(m.fulfilled,m.rejected)});var o;if(!n){var u=[Vg,void 0];for(Array.prototype.unshift.apply(u,i),u=u.concat(a),o=Promise.resolve(t);u.length;)o=o.then(u.shift(),u.shift());return o}for(var s=t;i.length;){var l=i.shift(),c=i.shift();try{s=l(s)}catch(m){c(m);break}}try{o=Vg(s)}catch(m){return Promise.reject(m)}for(;a.length;)o=o.then(a.shift(),a.shift());return o};vs.prototype.getUri=function(e){return e=vu(this.defaults,e),EY(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")};Ib.forEach(["delete","get","head","options"],function(e){vs.prototype[e]=function(t,r){return this.request(vu(r||{},{method:e,url:t,data:(r||{}).data}))}});Ib.forEach(["post","put","patch"],function(e){vs.prototype[e]=function(t,r,i){return this.request(vu(i||{},{method:e,url:t,data:r}))}});var LY=vs,Td,Wg;function wY(){if(Wg)return Td;Wg=1;var e=yu();function t(r){if(typeof r!="function")throw new TypeError("executor must be a function.");var i;this.promise=new Promise(function(a){i=a});var n=this;this.promise.then(function(a){if(n._listeners){var o,u=n._listeners.length;for(o=0;o>>0,j;for(j=0;j0)for(x=0;x=11?g:g+12;if(O==="下午"||O==="晚上")return g+12},meridiem:function(g,O,ue){var fe=g*100+O;return fe<600?"凌晨":fe<900?"早上":fe<1130?"上午":fe<1230?"中午":fe<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(g,O){switch(O){case"d":case"D":case"DDD":return g+"日";case"M":return g+"月";case"w":case"W":return g+"週";default:return g}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}}),r.locale("en"),r})})();var IY=Object.defineProperty,YY=(e,t,r)=>t in e?IY(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ja=(e,t,r)=>(YY(e,typeof t!="symbol"?t+"":t,r),r);const jY="en",RY=31,Co=class Yi{constructor(t=jY,r=Yi.Calendars.gregorian){Ja(this,"locale"),Ja(this,"name"),this.locale=t,this.name=r}addDate(t,r){const i=this.moment(t);return this.isHijri()?i.add(r,"iDate"):i.add(r,"date")}addMonth(t,r){const i=this.moment(t);return this.isHijri()?i.add(r,"iMonth"):i.add(r,"month")}addYear(t,r){const i=this.moment(t);return this.isHijri()?i.add(r,"iYear"):i.add(r,"year")}convertToDate({year:t,month:r,date:i}){let n=this.moment().hours(0).minutes(0).seconds(0);return this.isHijri()?n=n.iYear(t||this.getDefaultYear()).iMonth(r||this.getDefaultMonth()).iDate(i||this.getDefaultDate()):n=n.year(t||this.getDefaultYear()).month(r||this.getDefaultMonth()).date(i||this.getDefaultDate()),n}daysInMonth(t,r){const i=t||this.getDefaultYear(),n=r||this.getDefaultMonth(),a=this.convertToDate({year:i,month:n,date:this.getDefaultDate()});return(this.isHijri()?a.iDaysInMonth():a.daysInMonth())||RY}format(t,r=Yi.DateFormats.gregorian){return this.moment(t).format(Yi.DateFormats[this.name][r])}getDefaultDate(){return Yi.Defaults[this.name].date}getDefaultMonth(){return Yi.Defaults[this.name].month}getDefaultYear(){return Yi.Defaults[this.name].year}isHijri(){return this.name===Yi.Calendars.hijri}listMonths(){const t=this.moment().localeData();return this.isHijri()?t._iMonths:t.months()}moment(t=null){const r=t?Xg(t):Xg();return r.locale(this.locale),r}parseDate(t){const r=this.moment(t);return{year:this.isHijri()?r.iYear():r.year(),month:this.isHijri()?r.iMonth():r.month(),date:this.isHijri()?r.iDate():r.date()}}};Ja(Co,"Calendars"),Ja(Co,"DateFormats"),Ja(Co,"Defaults");let dn=Co;dn.Calendars={gregorian:"gregorian",hijri:"hijri"};dn.DateFormats={[dn.Calendars.gregorian]:{0:"YYYY",1:"MMMM YYYY",2:"L"},[dn.Calendars.hijri]:{0:"iYYYY",1:"iMMMM iYYYY",2:"iM/iD/iYYYY"}};dn.Defaults={[dn.Calendars.gregorian]:{year:0,month:0,date:1},[dn.Calendars.hijri]:{year:1410,month:0,date:1}};var BY=Object.defineProperty,$Y=(e,t,r)=>t in e?BY(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,zY=(e,t,r)=>($Y(e,typeof t!="symbol"?t+"":t,r),r);class HY{constructor(){zY(this,"timeout"),this.timeout=null}clearSearchTimer(){clearTimeout(this.timeout)}setSearchTimer(t){clearTimeout(this.timeout),this.timeout=setTimeout(t,500)}}const qY=new HY;export{ZY as V,GY as X,ub as a,dn as b,hi as c,YI as d,LI as g,zo as l,kt as m,Dg as o,km as r,KY as s,qY as u,FI as y}; function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["./index.es64-BXKYfou_.js","./index-CBqU2yxZ.js","./_commonjsHelpers-BosuxZz1.js","./index-DZGZymok.js","./iframe-ovyJW9VA.js"] + __vite__mapDeps.viteFileDeps = ["./index.es64-BAO8nvLK.js","./index-CBqU2yxZ.js","./_commonjsHelpers-BosuxZz1.js","./index-DZGZymok.js","./iframe-BQtATEn0.js"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } diff --git a/docs/assets/index.es3-D5uPylQL.js b/docs/assets/index.es3-Dgr_7mVc.js similarity index 98% rename from docs/assets/index.es3-D5uPylQL.js rename to docs/assets/index.es3-Dgr_7mVc.js index fb371e35..d60f5709 100644 --- a/docs/assets/index.es3-D5uPylQL.js +++ b/docs/assets/index.es3-Dgr_7mVc.js @@ -1 +1 @@ -import{r as i,a as h,m as c}from"./index.es28-dE8xdd4L.js";import{r as C}from"./index-CBqU2yxZ.js";const g=["",null,void 0,[],{}],v={emptyValues:g,ignoreHtml:!0,ignoreWhitespace:!0},l=/(<([^>]+)>)/gi,m=/\s\s+/g,E=n=>i.isObject(n)||i.isArray(n)?i.isEmpty(n):!n,u=(n,t,e={})=>{const s=i.defaults(e,v);if(n===t||i.contains(s.emptyValues,n)&&i.contains(s.emptyValues,t))return!0;if(i.isString(n)&&i.isString(t)){let o=n,r=t;if(s.ignoreWhitespace&&(o=n.replace(m," "),r=t.replace(m," ")),s.ignoreHtml&&(o=o.replace(l,""),r=r.replace(l,"")),o===r)return!0}if(i.isFunction(n)&&i.isFunction(t)&&n.toString()===t.toString())return!0;if(n!==null&&typeof n=="object"&&t!==null&&typeof t=="object"){const o=i.keys(n),r=i.keys(t);if(o.length!==r.length)return!1;let d=!0;return i.each(i.keys(n),a=>{i.has(t,a)&&u(n[a],t[a])||(d=!1)}),!!d}return!1},S=n=>!!n&&typeof n=="object"&&typeof n.then=="function",p={isEmpty:E,isEqual:u,isPromise:S},f="can't be blank",y="has already been taken",k=n=>class extends C.Component{constructor(t){super(t);const e=i.defaults(t.item||{},t.defaults||{});this.state={item:e,loading:!1,originalItem:e,saving:!1,validationErrors:[]}}componentDidMount(){this.props.onInitialize&&this.props.item&&this.props.item.id&&this.setState({loading:!0},()=>{this.props.onInitialize&&this.props.item&&this.props.onInitialize(this.props.item.id).then(t=>this.setState({item:t,originalItem:t,loading:!1}))})}componentDidUpdate(t){t.item!==this.props.item&&this.setState({item:this.props.item,originalItem:this.props.item})}componentWillUnmount(){this.onSetState({saving:!1})}isChild(t,e){return t.uid&&e.uid&&t.uid===e.uid||t.id&&e.id&&t.id===e.id}isRequired(t){return this.props.required&&i.contains(this.props.required,t)}isError(t){return i.has(this.state.validationErrors,t)}onClearValidationError(...t){this.setState(e=>({validationErrors:i.omit(e.validationErrors,t)}))}onClose(){this.props.onClose()}onCreateChildAssociation(t,e){this.setState(s=>({item:{...s.item,[t]:[...s.item[t]||[],e]}}))}onDeleteChildAssociation(t,e){return e.id?this.onMarkChildAssociationForDelete(t,e):this.onRemoveChildAssociation(t,e)}onError({response:{data:{errors:t={}},status:e}}){const s={};i.each(Object.keys(t),o=>{const r=t[o],d=this.state.item[o];i.each(r,a=>{a===y?i.extend(s,{[o]:h.t("EditContainer.errors.unique",{key:o,value:d})}):a===f?i.extend(s,{[o]:h.t("EditContainer.errors.required",{key:o})}):this.props.resolveValidationError&&i.extend(s,this.props.resolveValidationError({key:o,error:a,status:e,item:this.state.item}))})}),e===400&&i.isEmpty(s)?i.extend(s,{error:h.t("EditContainer.errors.general")}):e===500&&i.isEmpty(s)&&i.extend(s,{error:h.t("EditContainer.errors.system")}),this.setState({saving:!1,validationErrors:s})}onMarkChildAssociationForDelete(t,e){this.setState(s=>({item:{...s.item,[t]:i.map(s.item[t]||[],o=>o.id===e.id?{...o,_destroy:!0}:o)}}))}onMultiAddChildAssociations(t,e){const s=this.state.item[t];i.each(e,this.onSaveChildAssociation.bind(this,t));const o=i.filter(s,r=>!i.find(e,this.isChild.bind(this,r)));i.each(o,this.onDeleteChildAssociation.bind(this,t))}onRemoveChildAssociation(t,e){this.setState(s=>({item:{...s.item,[t]:i.filter(s.item[t]||[],o=>!(this.isChild(o,e)||p.isEqual(o,e)))}}))}onReset(){const t=this.props.defaults||{};this.setState({item:t,originalItem:t})}onSave(){this.validateForm()&&this.setState({saving:!0},()=>{this.props.onSave(this.state.item).catch(this.onError.bind(this)).finally(()=>this.setState({saving:!1}))})}onSaveChildAssociation(t,e){const s=this.state.item[t]||[];return i.find(s,this.isChild.bind(this,e))?this.onUpdateChildAssociation(t,e):this.onCreateChildAssociation(t,e)}onUpdateChildAssociation(t,e){this.setState(s=>({item:{...s.item,[t]:i.map(s.item[t]||[],o=>this.isChild(e,o)?e:o)}}))}onAssociationInputChange(t,e,s={}){this.setState(o=>({item:{...o.item,[t]:s.id||"",[e]:s||{}},validationErrors:i.omit(o.validationErrors,t)}))}onCheckboxInputChange(t){this.setState(e=>({item:{...e.item,[t]:!e.item[t]}}))}onSetState(t){this.setState(e=>({item:{...e.item,...t},validationErrors:i.omit(e.validationErrors,i.keys(t))}))}onTextInputChange(t,e,{value:s}){this.setState(o=>({item:{...o.item,[t]:s},validationErrors:i.omit(o.validationErrors,t)}))}render(){return c.jsx(n,{...this.props,dirty:!!(this.state.item.id&&!p.isEqual(this.state.item,this.state.originalItem)),errors:i.values(this.state.validationErrors),isError:this.isError.bind(this),isRequired:this.isRequired.bind(this),item:this.state.item,loading:this.state.loading,onAssociationInputChange:this.onAssociationInputChange.bind(this),onCheckboxInputChange:this.onCheckboxInputChange.bind(this),onClearValidationError:this.onClearValidationError.bind(this),onDeleteChildAssociation:this.onDeleteChildAssociation.bind(this),onMultiAddChildAssociations:this.onMultiAddChildAssociations.bind(this),onReset:this.onReset.bind(this),onSave:this.onSave.bind(this),onSaveChildAssociation:this.onSaveChildAssociation.bind(this),onTextInputChange:this.onTextInputChange.bind(this),onSetState:this.onSetState.bind(this),saving:this.state.saving})}validateForm(){const t=[];this.props.validate&&i.extend(t,this.props.validate(this.state.item));const e=this.props.required||[];return i.each(e,s=>{const o=this.state.item[s];let r;i.isNumber(o)?r=i.isEmpty(o.toString()):r=i.isEmpty(o),r&&i.extend(t,{[s]:h.t("EditContainer.errors.required",{key:s})})}),this.setState({validationErrors:t}),i.keys(t).length===0}};export{k as H,p as Y}; +import{r as i,a as h,m as c}from"./index.es28-Dp3-vHIY.js";import{r as C}from"./index-CBqU2yxZ.js";const g=["",null,void 0,[],{}],v={emptyValues:g,ignoreHtml:!0,ignoreWhitespace:!0},l=/(<([^>]+)>)/gi,m=/\s\s+/g,E=n=>i.isObject(n)||i.isArray(n)?i.isEmpty(n):!n,u=(n,t,e={})=>{const s=i.defaults(e,v);if(n===t||i.contains(s.emptyValues,n)&&i.contains(s.emptyValues,t))return!0;if(i.isString(n)&&i.isString(t)){let o=n,r=t;if(s.ignoreWhitespace&&(o=n.replace(m," "),r=t.replace(m," ")),s.ignoreHtml&&(o=o.replace(l,""),r=r.replace(l,"")),o===r)return!0}if(i.isFunction(n)&&i.isFunction(t)&&n.toString()===t.toString())return!0;if(n!==null&&typeof n=="object"&&t!==null&&typeof t=="object"){const o=i.keys(n),r=i.keys(t);if(o.length!==r.length)return!1;let d=!0;return i.each(i.keys(n),a=>{i.has(t,a)&&u(n[a],t[a])||(d=!1)}),!!d}return!1},S=n=>!!n&&typeof n=="object"&&typeof n.then=="function",p={isEmpty:E,isEqual:u,isPromise:S},f="can't be blank",y="has already been taken",k=n=>class extends C.Component{constructor(t){super(t);const e=i.defaults(t.item||{},t.defaults||{});this.state={item:e,loading:!1,originalItem:e,saving:!1,validationErrors:[]}}componentDidMount(){this.props.onInitialize&&this.props.item&&this.props.item.id&&this.setState({loading:!0},()=>{this.props.onInitialize&&this.props.item&&this.props.onInitialize(this.props.item.id).then(t=>this.setState({item:t,originalItem:t,loading:!1}))})}componentDidUpdate(t){t.item!==this.props.item&&this.setState({item:this.props.item,originalItem:this.props.item})}componentWillUnmount(){this.onSetState({saving:!1})}isChild(t,e){return t.uid&&e.uid&&t.uid===e.uid||t.id&&e.id&&t.id===e.id}isRequired(t){return this.props.required&&i.contains(this.props.required,t)}isError(t){return i.has(this.state.validationErrors,t)}onClearValidationError(...t){this.setState(e=>({validationErrors:i.omit(e.validationErrors,t)}))}onClose(){this.props.onClose()}onCreateChildAssociation(t,e){this.setState(s=>({item:{...s.item,[t]:[...s.item[t]||[],e]}}))}onDeleteChildAssociation(t,e){return e.id?this.onMarkChildAssociationForDelete(t,e):this.onRemoveChildAssociation(t,e)}onError({response:{data:{errors:t={}},status:e}}){const s={};i.each(Object.keys(t),o=>{const r=t[o],d=this.state.item[o];i.each(r,a=>{a===y?i.extend(s,{[o]:h.t("EditContainer.errors.unique",{key:o,value:d})}):a===f?i.extend(s,{[o]:h.t("EditContainer.errors.required",{key:o})}):this.props.resolveValidationError&&i.extend(s,this.props.resolveValidationError({key:o,error:a,status:e,item:this.state.item}))})}),e===400&&i.isEmpty(s)?i.extend(s,{error:h.t("EditContainer.errors.general")}):e===500&&i.isEmpty(s)&&i.extend(s,{error:h.t("EditContainer.errors.system")}),this.setState({saving:!1,validationErrors:s})}onMarkChildAssociationForDelete(t,e){this.setState(s=>({item:{...s.item,[t]:i.map(s.item[t]||[],o=>o.id===e.id?{...o,_destroy:!0}:o)}}))}onMultiAddChildAssociations(t,e){const s=this.state.item[t];i.each(e,this.onSaveChildAssociation.bind(this,t));const o=i.filter(s,r=>!i.find(e,this.isChild.bind(this,r)));i.each(o,this.onDeleteChildAssociation.bind(this,t))}onRemoveChildAssociation(t,e){this.setState(s=>({item:{...s.item,[t]:i.filter(s.item[t]||[],o=>!(this.isChild(o,e)||p.isEqual(o,e)))}}))}onReset(){const t=this.props.defaults||{};this.setState({item:t,originalItem:t})}onSave(){this.validateForm()&&this.setState({saving:!0},()=>{this.props.onSave(this.state.item).catch(this.onError.bind(this)).finally(()=>this.setState({saving:!1}))})}onSaveChildAssociation(t,e){const s=this.state.item[t]||[];return i.find(s,this.isChild.bind(this,e))?this.onUpdateChildAssociation(t,e):this.onCreateChildAssociation(t,e)}onUpdateChildAssociation(t,e){this.setState(s=>({item:{...s.item,[t]:i.map(s.item[t]||[],o=>this.isChild(e,o)?e:o)}}))}onAssociationInputChange(t,e,s={}){this.setState(o=>({item:{...o.item,[t]:s.id||"",[e]:s||{}},validationErrors:i.omit(o.validationErrors,t)}))}onCheckboxInputChange(t){this.setState(e=>({item:{...e.item,[t]:!e.item[t]}}))}onSetState(t){this.setState(e=>({item:{...e.item,...t},validationErrors:i.omit(e.validationErrors,i.keys(t))}))}onTextInputChange(t,e,{value:s}){this.setState(o=>({item:{...o.item,[t]:s},validationErrors:i.omit(o.validationErrors,t)}))}render(){return c.jsx(n,{...this.props,dirty:!!(this.state.item.id&&!p.isEqual(this.state.item,this.state.originalItem)),errors:i.values(this.state.validationErrors),isError:this.isError.bind(this),isRequired:this.isRequired.bind(this),item:this.state.item,loading:this.state.loading,onAssociationInputChange:this.onAssociationInputChange.bind(this),onCheckboxInputChange:this.onCheckboxInputChange.bind(this),onClearValidationError:this.onClearValidationError.bind(this),onDeleteChildAssociation:this.onDeleteChildAssociation.bind(this),onMultiAddChildAssociations:this.onMultiAddChildAssociations.bind(this),onReset:this.onReset.bind(this),onSave:this.onSave.bind(this),onSaveChildAssociation:this.onSaveChildAssociation.bind(this),onTextInputChange:this.onTextInputChange.bind(this),onSetState:this.onSetState.bind(this),saving:this.state.saving})}validateForm(){const t=[];this.props.validate&&i.extend(t,this.props.validate(this.state.item));const e=this.props.required||[];return i.each(e,s=>{const o=this.state.item[s];let r;i.isNumber(o)?r=i.isEmpty(o.toString()):r=i.isEmpty(o),r&&i.extend(t,{[s]:h.t("EditContainer.errors.required",{key:s})})}),this.setState({validationErrors:t}),i.keys(t).length===0}};export{k as H,p as Y}; diff --git a/docs/assets/index.es164-KR_AuFpw.js b/docs/assets/index.es62-KR_AuFpw.js similarity index 100% rename from docs/assets/index.es164-KR_AuFpw.js rename to docs/assets/index.es62-KR_AuFpw.js diff --git a/docs/assets/index.es64-BXKYfou_.js b/docs/assets/index.es64-BAO8nvLK.js similarity index 99% rename from docs/assets/index.es64-BXKYfou_.js rename to docs/assets/index.es64-BAO8nvLK.js index d6d6c147..5320dcdf 100644 --- a/docs/assets/index.es64-BXKYfou_.js +++ b/docs/assets/index.es64-BAO8nvLK.js @@ -1,4 +1,4 @@ -import{c as ht,l as Re}from"./index.es28-dE8xdd4L.js";import{R as De}from"./index-CBqU2yxZ.js";import{O as Fe}from"./index-DZGZymok.js";import"./iframe-ovyJW9VA.js";import"../sb-preview/runtime.js";import"./_commonjsHelpers-BosuxZz1.js";function Ue(){this.__data__=[],this.size=0}var He=Ue;function Ke(P,C){return P===C||P!==P&&C!==C}var ke=Ke,Ve=ke;function ze(P,C){for(var b=P.length;b--;)if(Ve(P[b][0],C))return b;return-1}var qt=ze,Ze=qt,We=Array.prototype,Ge=We.splice;function Ye(P){var C=this.__data__,b=Ze(C,P);if(b<0)return!1;var u=C.length-1;return b==u?C.pop():Ge.call(C,b,1),--this.size,!0}var Xe=Ye,Qe=qt;function Je(P){var C=this.__data__,b=Qe(C,P);return b<0?void 0:C[b][1]}var tr=Je,er=qt;function rr(P){return er(this.__data__,P)>-1}var nr=rr,or=qt;function ir(P,C){var b=this.__data__,u=or(b,P);return u<0?(++this.size,b.push([P,C])):b[u][1]=C,this}var ar=ir,lr=He,ur=Xe,sr=tr,cr=nr,fr=ar;function gt(P){var C=-1,b=P==null?0:P.length;for(this.clear();++Cm))return!1;var d=E.get(P),h=E.get(C);if(d&&h)return d==C&&h==P;var a=-1,t=!0,e=b&Jo?new Go:void 0;for(E.set(P,C),E.set(C,P);++a-1&&P%1==0&&P-1&&P%1==0&&P<=sa}var Se=ca,fa=St,ha=Se,pa=Lt,da="[object Arguments]",ya="[object Array]",va="[object Boolean]",ga="[object Date]",ba="[object Error]",ma="[object Function]",_a="[object Map]",Oa="[object Number]",ka="[object Object]",wa="[object RegExp]",Ea="[object Set]",xa="[object String]",Na="[object WeakMap]",ja="[object ArrayBuffer]",Pa="[object DataView]",Aa="[object Float32Array]",qa="[object Float64Array]",Ta="[object Int8Array]",Sa="[object Int16Array]",Ca="[object Int32Array]",$a="[object Uint8Array]",La="[object Uint8ClampedArray]",Ba="[object Uint16Array]",Ma="[object Uint32Array]",at={};at[Aa]=at[qa]=at[Ta]=at[Sa]=at[Ca]=at[$a]=at[La]=at[Ba]=at[Ma]=!0;at[da]=at[ya]=at[ja]=at[va]=at[Pa]=at[ga]=at[ba]=at[ma]=at[_a]=at[Oa]=at[ka]=at[wa]=at[Ea]=at[xa]=at[Na]=!1;function Ia(P){return pa(P)&&ha(P.length)&&!!at[fa(P)]}var Ra=Ia;function Da(P){return function(C){return P(C)}}var Fa=Da,Pt={exports:{}};Pt.exports;(function(P,C){var b=we,u=C&&!C.nodeType&&C,p=u&&!0&&P&&!P.nodeType&&P,E=p&&p.exports===u,w=E&&b.process,m=function(){try{var g=p&&p.require&&p.require("util").types;return g||w&&w.binding&&w.binding("util")}catch{}}();P.exports=m})(Pt,Pt.exports);var Ua=Pt.exports,Ha=Ra,Ka=Fa,ie=Ua,ae=ie&&ie.isTypedArray,Va=ae?Ka(ae):Ha,Ce=Va,za=Vi,Za=ra,Wa=Zt,Ga=Te,Ya=ua,Xa=Ce,Qa=Object.prototype,Ja=Qa.hasOwnProperty;function tl(P,C){var b=Wa(P),u=!b&&Za(P),p=!b&&!u&&Ga(P),E=!b&&!u&&!p&&Xa(P),w=b||u||p||E,m=w?za(P.length,String):[],g=m.length;for(var d in P)(C||Ja.call(P,d))&&!(w&&(d=="length"||p&&(d=="offset"||d=="parent")||E&&(d=="buffer"||d=="byteLength"||d=="byteOffset")||Ya(d,g)))&&m.push(d);return m}var el=tl,rl=Object.prototype;function nl(P){var C=P&&P.constructor,b=typeof C=="function"&&C.prototype||rl;return P===b}var ol=nl;function il(P,C){return function(b){return P(C(b))}}var al=il,ll=al,ul=ll(Object.keys,Object),sl=ul,cl=ol,fl=sl,hl=Object.prototype,pl=hl.hasOwnProperty;function dl(P){if(!cl(P))return fl(P);var C=[];for(var b in Object(P))pl.call(P,b)&&b!="constructor"&&C.push(b);return C}var yl=dl,vl=Ne,gl=Se;function bl(P){return P!=null&&gl(P.length)&&!vl(P)}var ml=bl,_l=el,Ol=yl,kl=ml;function wl(P){return kl(P)?_l(P):Ol(P)}var El=wl,xl=Ci,Nl=Hi,jl=El;function Pl(P){return xl(P,jl,Nl)}var Al=Pl,le=Al,ql=1,Tl=Object.prototype,Sl=Tl.hasOwnProperty;function Cl(P,C,b,u,p,E){var w=b&ql,m=le(P),g=m.length,d=le(C),h=d.length;if(g!=h&&!w)return!1;for(var a=g;a--;){var t=m[a];if(!(w?t in C:Sl.call(C,t)))return!1}var e=E.get(P),c=E.get(C);if(e&&c)return e==C&&c==P;var l=!0;E.set(P,C),E.set(C,P);for(var o=w;++a-1}var nr=rr,or=qt;function ir(P,C){var b=this.__data__,u=or(b,P);return u<0?(++this.size,b.push([P,C])):b[u][1]=C,this}var ar=ir,lr=He,ur=Xe,sr=tr,cr=nr,fr=ar;function gt(P){var C=-1,b=P==null?0:P.length;for(this.clear();++Cm))return!1;var d=E.get(P),h=E.get(C);if(d&&h)return d==C&&h==P;var a=-1,t=!0,e=b&Jo?new Go:void 0;for(E.set(P,C),E.set(C,P);++a-1&&P%1==0&&P-1&&P%1==0&&P<=sa}var Se=ca,fa=St,ha=Se,pa=Lt,da="[object Arguments]",ya="[object Array]",va="[object Boolean]",ga="[object Date]",ba="[object Error]",ma="[object Function]",_a="[object Map]",Oa="[object Number]",ka="[object Object]",wa="[object RegExp]",Ea="[object Set]",xa="[object String]",Na="[object WeakMap]",ja="[object ArrayBuffer]",Pa="[object DataView]",Aa="[object Float32Array]",qa="[object Float64Array]",Ta="[object Int8Array]",Sa="[object Int16Array]",Ca="[object Int32Array]",$a="[object Uint8Array]",La="[object Uint8ClampedArray]",Ba="[object Uint16Array]",Ma="[object Uint32Array]",at={};at[Aa]=at[qa]=at[Ta]=at[Sa]=at[Ca]=at[$a]=at[La]=at[Ba]=at[Ma]=!0;at[da]=at[ya]=at[ja]=at[va]=at[Pa]=at[ga]=at[ba]=at[ma]=at[_a]=at[Oa]=at[ka]=at[wa]=at[Ea]=at[xa]=at[Na]=!1;function Ia(P){return pa(P)&&ha(P.length)&&!!at[fa(P)]}var Ra=Ia;function Da(P){return function(C){return P(C)}}var Fa=Da,Pt={exports:{}};Pt.exports;(function(P,C){var b=we,u=C&&!C.nodeType&&C,p=u&&!0&&P&&!P.nodeType&&P,E=p&&p.exports===u,w=E&&b.process,m=function(){try{var g=p&&p.require&&p.require("util").types;return g||w&&w.binding&&w.binding("util")}catch{}}();P.exports=m})(Pt,Pt.exports);var Ua=Pt.exports,Ha=Ra,Ka=Fa,ie=Ua,ae=ie&&ie.isTypedArray,Va=ae?Ka(ae):Ha,Ce=Va,za=Vi,Za=ra,Wa=Zt,Ga=Te,Ya=ua,Xa=Ce,Qa=Object.prototype,Ja=Qa.hasOwnProperty;function tl(P,C){var b=Wa(P),u=!b&&Za(P),p=!b&&!u&&Ga(P),E=!b&&!u&&!p&&Xa(P),w=b||u||p||E,m=w?za(P.length,String):[],g=m.length;for(var d in P)(C||Ja.call(P,d))&&!(w&&(d=="length"||p&&(d=="offset"||d=="parent")||E&&(d=="buffer"||d=="byteLength"||d=="byteOffset")||Ya(d,g)))&&m.push(d);return m}var el=tl,rl=Object.prototype;function nl(P){var C=P&&P.constructor,b=typeof C=="function"&&C.prototype||rl;return P===b}var ol=nl;function il(P,C){return function(b){return P(C(b))}}var al=il,ll=al,ul=ll(Object.keys,Object),sl=ul,cl=ol,fl=sl,hl=Object.prototype,pl=hl.hasOwnProperty;function dl(P){if(!cl(P))return fl(P);var C=[];for(var b in Object(P))pl.call(P,b)&&b!="constructor"&&C.push(b);return C}var yl=dl,vl=Ne,gl=Se;function bl(P){return P!=null&&gl(P.length)&&!vl(P)}var ml=bl,_l=el,Ol=yl,kl=ml;function wl(P){return kl(P)?_l(P):Ol(P)}var El=wl,xl=Ci,Nl=Hi,jl=El;function Pl(P){return xl(P,jl,Nl)}var Al=Pl,le=Al,ql=1,Tl=Object.prototype,Sl=Tl.hasOwnProperty;function Cl(P,C,b,u,p,E){var w=b&ql,m=le(P),g=m.length,d=le(C),h=d.length;if(g!=h&&!w)return!1;for(var a=g;a--;){var t=m[a];if(!(w?t in C:Sl.call(C,t)))return!1}var e=E.get(P),c=E.get(C);if(e&&c)return e==C&&c==P;var l=!0;E.set(P,C),E.set(C,P);for(var o=w;++a-1}var Me=Ie,Ee=N;function xe(r,e){var a=this.__data__,t=Ee(a,r);return t<0?(++this.size,a.push([r,e])):a[t][1]=e,this}var je=xe,De=he,Le=Se,Re=Pe,Ge=Me,Fe=je;function S(r){var e=-1,a=r==null?0:r.length;for(this.clear();++e-1&&r%1==0&&r<=Gn}var cr=Fn,Nn=or,qn=cr;function Hn(r){return r!=null&&qn(r.length)&&!Nn(r)}var Kn=Hn,R={exports:{}};function zn(){return!1}var Un=zn;R.exports;(function(r,e){var a=$,t=Un,s=e&&!e.nodeType&&e,n=s&&!0&&r&&!r.nodeType&&r,i=n&&n.exports===s,u=i?a.Buffer:void 0,o=u?u.isBuffer:void 0,v=o||t;r.exports=v})(R,R.exports);var ne=R.exports,Bn=M,Jn=cr,Wn=E,Xn="[object Arguments]",Yn="[object Array]",Zn="[object Boolean]",Qn="[object Date]",Vn="[object Error]",kn="[object Function]",rs="[object Map]",es="[object Number]",as="[object Object]",ts="[object RegExp]",ns="[object Set]",ss="[object String]",is="[object WeakMap]",os="[object ArrayBuffer]",us="[object DataView]",vs="[object Float32Array]",cs="[object Float64Array]",fs="[object Int8Array]",ls="[object Int16Array]",ps="[object Int32Array]",_s="[object Uint8Array]",gs="[object Uint8ClampedArray]",hs="[object Uint16Array]",$s="[object Uint32Array]",c={};c[vs]=c[cs]=c[fs]=c[ls]=c[ps]=c[_s]=c[gs]=c[hs]=c[$s]=!0;c[Xn]=c[Yn]=c[os]=c[Zn]=c[us]=c[Qn]=c[Vn]=c[kn]=c[rs]=c[es]=c[as]=c[ts]=c[ns]=c[ss]=c[is]=!1;function ys(r){return Wn(r)&&Jn(r.length)&&!!c[Bn(r)]}var bs=ys;function ds(r){return function(e){return r(e)}}var As=ds,G={exports:{}};G.exports;(function(r,e){var a=Qr,t=e&&!e.nodeType&&e,s=t&&!0&&r&&!r.nodeType&&r,n=s&&s.exports===t,i=n&&a.process,u=function(){try{var o=s&&s.require&&s.require("util").types;return o||i&&i.binding&&i.binding("util")}catch{}}();r.exports=u})(G,G.exports);var Ts=G.exports,ms=bs,Ss=As,mr=Ts,Sr=mr&&mr.isTypedArray,Os=Sr?Ss(Sr):ms,se=Os;function Cs(r,e){for(var a=-1,t=Array(r);++a-1&&r%1==0&&ru))return!1;var v=n.get(r),p=n.get(e);if(v&&p)return v==e&&p==r;var l=-1,f=!0,h=a&ii?new ai:void 0;for(n.set(r,e),n.set(e,r);++l-1}var Oe=me,Se=N;function Ce(r,e){var a=this.__data__,t=Se(a,r);return t<0?(++this.size,a.push([r,e])):a[t][1]=e,this}var Pe=Ce,we=ue,Ie=ye,Ee=Ae,Me=Oe,xe=Pe;function O(r){var e=-1,a=r==null?0:r.length;for(this.clear();++e-1&&r%1==0&&r<=Mn}var nr=xn,jn=er,Dn=nr;function Ln(r){return r!=null&&Dn(r.length)&&!jn(r)}var Gn=Ln,G={exports:{}};function Fn(){return!1}var Rn=Fn;G.exports;(function(r,e){var a=h,t=Rn,s=e&&!e.nodeType&&e,n=s&&!0&&r&&!r.nodeType&&r,i=n&&n.exports===s,o=i?a.Buffer:void 0,c=o?o.isBuffer:void 0,v=c||t;r.exports=v})(G,G.exports);var Zr=G.exports,Nn=E,Hn=nr,Kn=M,Un="[object Arguments]",Bn="[object Array]",zn="[object Boolean]",qn="[object Date]",Jn="[object Error]",Wn="[object Function]",Xn="[object Map]",Yn="[object Number]",Zn="[object Object]",Qn="[object RegExp]",Vn="[object Set]",kn="[object String]",rs="[object WeakMap]",es="[object ArrayBuffer]",as="[object DataView]",ts="[object Float32Array]",ns="[object Float64Array]",ss="[object Int8Array]",is="[object Int16Array]",os="[object Int32Array]",vs="[object Uint8Array]",cs="[object Uint8ClampedArray]",us="[object Uint16Array]",fs="[object Uint32Array]",u={};u[ts]=u[ns]=u[ss]=u[is]=u[os]=u[vs]=u[cs]=u[us]=u[fs]=!0;u[Un]=u[Bn]=u[es]=u[zn]=u[as]=u[qn]=u[Jn]=u[Wn]=u[Xn]=u[Yn]=u[Zn]=u[Qn]=u[Vn]=u[kn]=u[rs]=!1;function ls(r){return Kn(r)&&Hn(r.length)&&!!u[Nn(r)]}var ps=ls;function _s(r){return function(e){return r(e)}}var gs=_s,F={exports:{}};F.exports;(function(r,e){var a=Br,t=e&&!e.nodeType&&e,s=t&&!0&&r&&!r.nodeType&&r,n=s&&s.exports===t,i=n&&a.process,o=function(){try{var c=s&&s.require&&s.require("util").types;return c||i&&i.binding&&i.binding("util")}catch{}}();r.exports=o})(F,F.exports);var $s=F.exports,hs=ps,ys=gs,yr=$s,br=yr&&yr.isTypedArray,bs=br?ys(br):hs,Qr=bs;function ds(r,e){for(var a=-1,t=Array(r);++a-1&&r%1==0&&ro))return!1;var v=n.get(r),p=n.get(e);if(v&&p)return v==e&&p==r;var l=-1,f=!0,$=a&ri?new Zs:void 0;for(n.set(r,e),n.set(e,r);++lfunction(){return t||(0,e[__getOwnPropNames(e)[0]])((t={exports:{}}).exports,t),t.exports},__copyProps=(e,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of __getOwnPropNames(t))!__hasOwnProp.call(e,o)&&o!==r&&__defProp(e,o,{get:()=>t[o],enumerable:!(a=__getOwnPropDesc(t,o))||a.enumerable});return e},__toESM=(e,t,r)=>(r=e!=null?__create(__getProtoOf(e)):{},__copyProps(t||!e||!e.__esModule?__defProp(r,"default",{value:e,enumerable:!0}):r,e)),eventProperties=["bubbles","cancelBubble","cancelable","composed","currentTarget","defaultPrevented","eventPhase","isTrusted","returnValue","srcElement","target","timeStamp","type"],customEventSpecificProperties=["detail"];function extractEventHiddenProperties(e){const t=eventProperties.filter(r=>e[r]!==void 0).reduce((r,a)=>({...r,[a]:e[a]}),{});return e instanceof CustomEvent&&customEventSpecificProperties.filter(r=>e[r]!==void 0).forEach(r=>{t[r]=e[r]}),t}var memoizerific={exports:{}},hasRequiredMemoizerific;function requireMemoizerific(){return hasRequiredMemoizerific||(hasRequiredMemoizerific=1,function(e,t){(function(r){e.exports=r()})(function(){return function r(a,o,u){function i(c,y){if(!o[c]){if(!a[c]){var l=typeof commonjsRequire=="function"&&commonjsRequire;if(!y&&l)return l(c,!0);if(s)return s(c,!0);var d=new Error("Cannot find module '"+c+"'");throw d.code="MODULE_NOT_FOUND",d}var p=o[c]={exports:{}};a[c][0].call(p.exports,function(_){var h=a[c][1][_];return i(h||_)},p,p.exports,r,a,o,u)}return o[c].exports}for(var s=typeof commonjsRequire=="function"&&commonjsRequire,n=0;n=0)return this.lastItem=this.list[s],this.list[s].val},u.prototype.set=function(i,s){var n;return this.lastItem&&this.isEqual(this.lastItem.key,i)?(this.lastItem.val=s,this):(n=this.indexOf(i),n>=0?(this.lastItem=this.list[n],this.list[n].val=s,this):(this.lastItem={key:i,val:s},this.list.push(this.lastItem),this.size++,this))},u.prototype.delete=function(i){var s;if(this.lastItem&&this.isEqual(this.lastItem.key,i)&&(this.lastItem=void 0),s=this.indexOf(i),s>=0)return this.size--,this.list.splice(s,1)[0]},u.prototype.has=function(i){var s;return this.lastItem&&this.isEqual(this.lastItem.key,i)?!0:(s=this.indexOf(i),s>=0?(this.lastItem=this.list[s],!0):!1)},u.prototype.forEach=function(i,s){var n;for(n=0;n0&&(w[S]={cacheItem:_,arg:arguments[S]},j?i(l,w):l.push(w),l.length>c&&s(l.shift())),p.wasMemoized=j,p.numArgs=S+1,v};return p.limit=c,p.wasMemoized=!1,p.cache=y,p.lru=l,p}};function i(c,y){var l=c.length,d=y.length,p,_,h;for(_=0;_=0&&(l=c[p],d=l.cacheItem.get(l.arg),!d||!d.size);p--)l.cacheItem.delete(l.arg)}function n(c,y){return c===y||c!==c&&y!==y}},{"map-or-similar":1}]},{},[3])(3)})}(memoizerific)),memoizerific.exports}var memoizerificExports=requireMemoizerific();const memoize$1=getDefaultExportFromCjs(memoizerificExports);var require_shams=__commonJS({"node_modules/has-symbols/shams.js"(e,t){t.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var a={},o=Symbol("test"),u=Object(o);if(typeof o=="string"||Object.prototype.toString.call(o)!=="[object Symbol]"||Object.prototype.toString.call(u)!=="[object Symbol]")return!1;var i=42;a[o]=i;for(o in a)return!1;if(typeof Object.keys=="function"&&Object.keys(a).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(a).length!==0)return!1;var s=Object.getOwnPropertySymbols(a);if(s.length!==1||s[0]!==o||!Object.prototype.propertyIsEnumerable.call(a,o))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var n=Object.getOwnPropertyDescriptor(a,o);if(n.value!==i||n.enumerable!==!0)return!1}return!0}}}),require_has_symbols=__commonJS({"node_modules/has-symbols/index.js"(e,t){var r=typeof Symbol<"u"&&Symbol,a=require_shams();t.exports=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:a()}}}),require_implementation=__commonJS({"node_modules/function-bind/implementation.js"(e,t){var r="Function.prototype.bind called on incompatible ",a=Array.prototype.slice,o=Object.prototype.toString,u="[object Function]";t.exports=function(s){var n=this;if(typeof n!="function"||o.call(n)!==u)throw new TypeError(r+n);for(var c=a.call(arguments,1),y,l=function(){if(this instanceof y){var v=n.apply(this,c.concat(a.call(arguments)));return Object(v)===v?v:this}else return n.apply(s,c.concat(a.call(arguments)))},d=Math.max(0,n.length-c.length),p=[],_=0;_"u"?r:l(Uint8Array),_={"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":y?l([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":d,"%AsyncGenerator%":d,"%AsyncGeneratorFunction%":d,"%AsyncIteratorPrototype%":d,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":d,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":y?l(l([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!y?r:l(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!y?r:l(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":y?l(""[Symbol.iterator]()):r,"%Symbol%":y?Symbol:r,"%SyntaxError%":a,"%ThrowTypeError%":c,"%TypedArray%":p,"%TypeError%":u,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet},h=function A(g){var b;if(g==="%AsyncFunction%")b=i("async function () {}");else if(g==="%GeneratorFunction%")b=i("function* () {}");else if(g==="%AsyncGeneratorFunction%")b=i("async function* () {}");else if(g==="%AsyncGenerator%"){var m=A("%AsyncGeneratorFunction%");m&&(b=m.prototype)}else if(g==="%AsyncIteratorPrototype%"){var P=A("%AsyncGenerator%");P&&(b=l(P.prototype))}return _[g]=b,b},v={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},S=require_function_bind(),w=require_src(),j=S.call(Function.call,Array.prototype.concat),x=S.call(Function.apply,Array.prototype.splice),D=S.call(Function.call,String.prototype.replace),M=S.call(Function.call,String.prototype.slice),z=S.call(Function.call,RegExp.prototype.exec),k=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,U=/\\(\\)?/g,G=function(g){var b=M(g,0,1),m=M(g,-1);if(b==="%"&&m!=="%")throw new a("invalid intrinsic syntax, expected closing `%`");if(m==="%"&&b!=="%")throw new a("invalid intrinsic syntax, expected opening `%`");var P=[];return D(g,k,function(I,E,O,$){P[P.length]=O?D($,U,"$1"):E||I}),P},K=function(g,b){var m=g,P;if(w(v,m)&&(P=v[m],m="%"+P[0]+"%"),w(_,m)){var I=_[m];if(I===d&&(I=h(m)),typeof I>"u"&&!b)throw new u("intrinsic "+g+" exists, but is not available. Please file an issue!");return{alias:P,name:m,value:I}}throw new a("intrinsic "+g+" does not exist!")};t.exports=function(g,b){if(typeof g!="string"||g.length===0)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof b!="boolean")throw new u('"allowMissing" argument must be a boolean');if(z(/^%?[^%]*%?$/,g)===null)throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var m=G(g),P=m.length>0?m[0]:"",I=K("%"+P+"%",b),E=I.name,O=I.value,$=!1,B=I.alias;B&&(P=B[0],x(m,j([0,1],B)));for(var R=1,T=!0;R=m.length){var N=s(O,C);T=!!N,T&&"get"in N&&!("originalValue"in N.get)?O=N.get:O=O[C]}else T=w(O,C),O=O[C];T&&!$&&(_[E]=O)}}return O}}}),require_call_bind=__commonJS({"node_modules/call-bind/index.js"(e,t){var r=require_function_bind(),a=require_get_intrinsic(),o=a("%Function.prototype.apply%"),u=a("%Function.prototype.call%"),i=a("%Reflect.apply%",!0)||r.call(u,o),s=a("%Object.getOwnPropertyDescriptor%",!0),n=a("%Object.defineProperty%",!0),c=a("%Math.max%");if(n)try{n({},"a",{value:1})}catch{n=null}t.exports=function(d){var p=i(r,u,arguments);if(s&&n){var _=s(p,"length");_.configurable&&n(p,"length",{value:1+c(0,d.length-(arguments.length-1))})}return p};var y=function(){return i(r,o,arguments)};n?n(t.exports,"apply",{value:y}):t.exports.apply=y}}),require_callBound=__commonJS({"node_modules/call-bind/callBound.js"(e,t){var r=require_get_intrinsic(),a=require_call_bind(),o=a(r("String.prototype.indexOf"));t.exports=function(i,s){var n=r(i,!!s);return typeof n=="function"&&o(i,".prototype.")>-1?a(n):n}}}),require_shams2=__commonJS({"node_modules/has-tostringtag/shams.js"(e,t){var r=require_shams();t.exports=function(){return r()&&!!Symbol.toStringTag}}}),require_is_regex=__commonJS({"node_modules/is-regex/index.js"(e,t){var r=require_callBound(),a=require_shams2()(),o,u,i,s;a&&(o=r("Object.prototype.hasOwnProperty"),u=r("RegExp.prototype.exec"),i={},n=function(){throw i},s={toString:n,valueOf:n},typeof Symbol.toPrimitive=="symbol"&&(s[Symbol.toPrimitive]=n));var n,c=r("Object.prototype.toString"),y=Object.getOwnPropertyDescriptor,l="[object RegExp]";t.exports=a?function(p){if(!p||typeof p!="object")return!1;var _=y(p,"lastIndex"),h=_&&o(_,"value");if(!h)return!1;try{u(p,s)}catch(v){return v===i}}:function(p){return!p||typeof p!="object"&&typeof p!="function"?!1:c(p)===l}}}),require_is_function=__commonJS({"node_modules/is-function/index.js"(e,t){t.exports=a;var r=Object.prototype.toString;function a(o){if(!o)return!1;var u=r.call(o);return u==="[object Function]"||typeof o=="function"&&u!=="[object RegExp]"||typeof window<"u"&&(o===window.setTimeout||o===window.alert||o===window.confirm||o===window.prompt)}}}),require_is_symbol=__commonJS({"node_modules/is-symbol/index.js"(e,t){var r=Object.prototype.toString,a=require_has_symbols()();a?(o=Symbol.prototype.toString,u=/^Symbol\(.*\)$/,i=function(n){return typeof n.valueOf()!="symbol"?!1:u.test(o.call(n))},t.exports=function(n){if(typeof n=="symbol")return!0;if(r.call(n)!=="[object Symbol]")return!1;try{return i(n)}catch{return!1}}):t.exports=function(n){return!1};var o,u,i}}),import_is_regex=__toESM(require_is_regex()),import_is_function=__toESM(require_is_function()),import_is_symbol=__toESM(require_is_symbol());function isObject(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}var freeGlobal=typeof global=="object"&&global&&global.Object===Object&&global,freeGlobal_default=freeGlobal,freeSelf=typeof self=="object"&&self&&self.Object===Object&&self,root2=freeGlobal_default||freeSelf||Function("return this")(),root_default=root2,Symbol2=root_default.Symbol,Symbol_default=Symbol2,objectProto=Object.prototype,hasOwnProperty=objectProto.hasOwnProperty,nativeObjectToString=objectProto.toString,symToStringTag=Symbol_default?Symbol_default.toStringTag:void 0;function getRawTag(e){var t=hasOwnProperty.call(e,symToStringTag),r=e[symToStringTag];try{e[symToStringTag]=void 0;var a=!0}catch{}var o=nativeObjectToString.call(e);return a&&(t?e[symToStringTag]=r:delete e[symToStringTag]),o}var getRawTag_default=getRawTag,objectProto2=Object.prototype,nativeObjectToString2=objectProto2.toString;function objectToString(e){return nativeObjectToString2.call(e)}var objectToString_default=objectToString,nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag2=Symbol_default?Symbol_default.toStringTag:void 0;function baseGetTag(e){return e==null?e===void 0?undefinedTag:nullTag:symToStringTag2&&symToStringTag2 in Object(e)?getRawTag_default(e):objectToString_default(e)}var baseGetTag_default=baseGetTag;function isObjectLike(e){return e!=null&&typeof e=="object"}var isObjectLike_default=isObjectLike,symbolTag="[object Symbol]";function isSymbol(e){return typeof e=="symbol"||isObjectLike_default(e)&&baseGetTag_default(e)==symbolTag}var isSymbol_default=isSymbol;function arrayMap(e,t){for(var r=-1,a=e==null?0:e.length,o=Array(a);++r-1}var listCacheHas_default=listCacheHas;function listCacheSet(e,t){var r=this.__data__,a=assocIndexOf_default(r,e);return a<0?(++this.size,r.push([e,t])):r[a][1]=t,this}var listCacheSet_default=listCacheSet;function ListCache(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t{let t=null,r=!1,a=!1,o=!1,u="";if(e.indexOf("//")>=0||e.indexOf("/*")>=0)for(let i=0;iremoveCodeComments(e).replace(/\n\s*/g,"").trim()),convertShorthandMethods=function(t,r){const a=r.slice(0,r.indexOf("{")),o=r.slice(r.indexOf("{"));if(a.includes("=>")||a.includes("function"))return r;let u=a;return u=u.replace(t,"function"),u+o},dateFormat=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,isJSON=e=>e.match(/^[\[\{\"\}].*[\]\}\"]$/);function convertUnconventionalData(e){if(!isObject3(e))return e;let t=e,r=!1;return typeof Event<"u"&&e instanceof Event&&(t=extractEventHiddenProperties(t),r=!0),t=Object.keys(t).reduce((a,o)=>{try{t[o]&&t[o].toJSON,a[o]=t[o]}catch{r=!0}return a},{}),r?t:e}var replacer=function(t){let r,a,o,u;return function(s,n){try{if(s==="")return u=[],r=new Map([[n,"[]"]]),a=new Map,o=[],n;const c=a.get(this)||this;for(;o.length&&c!==o[0];)o.shift(),u.pop();if(typeof n=="boolean")return n;if(n===void 0)return t.allowUndefined?"_undefined_":void 0;if(n===null)return null;if(typeof n=="number")return n===-1/0?"_-Infinity_":n===1/0?"_Infinity_":Number.isNaN(n)?"_NaN_":n;if(typeof n=="bigint")return`_bigint_${n.toString()}`;if(typeof n=="string")return dateFormat.test(n)?t.allowDate?`_date_${n}`:void 0:n;if((0,import_is_regex.default)(n))return t.allowRegExp?`_regexp_${n.flags}|${n.source}`:void 0;if((0,import_is_function.default)(n)){if(!t.allowFunction)return;const{name:l}=n,d=n.toString();return d.match(/(\[native code\]|WEBPACK_IMPORTED_MODULE|__webpack_exports__|__webpack_require__)/)?`_function_${l}|${(()=>{}).toString()}`:`_function_${l}|${cleanCode(convertShorthandMethods(s,d))}`}if((0,import_is_symbol.default)(n)){if(!t.allowSymbol)return;const l=Symbol.keyFor(n);return l!==void 0?`_gsymbol_${l}`:`_symbol_${n.toString().slice(7,-1)}`}if(o.length>=t.maxDepth)return Array.isArray(n)?`[Array(${n.length})]`:"[Object]";if(n===this)return`_duplicate_${JSON.stringify(u)}`;if(n instanceof Error&&t.allowError)return{__isConvertedError__:!0,errorProperties:{...n.cause?{cause:n.cause}:{},...n,name:n.name,message:n.message,stack:n.stack,"_constructor-name_":n.constructor.name}};if(n.constructor&&n.constructor.name&&n.constructor.name!=="Object"&&!Array.isArray(n)&&!t.allowClass)return;const y=r.get(n);if(!y){const l=Array.isArray(n)?n:convertUnconventionalData(n);if(n.constructor&&n.constructor.name&&n.constructor.name!=="Object"&&!Array.isArray(n)&&t.allowClass)try{Object.assign(l,{"_constructor-name_":n.constructor.name})}catch{}return u.push(s),o.unshift(l),r.set(n,JSON.stringify(u)),n!==l&&a.set(n,l),l}return`_duplicate_${y}`}catch{return}}},reviver2=function reviver(options){const refs=[];let root;return function revive(key,value){if(key===""&&(root=value,refs.forEach(({target:e,container:t,replacement:r})=>{const a=isJSON(r)?JSON.parse(r):r.split(".");a.length===0?t[e]=root:t[e]=get_default(root,a)})),key==="_constructor-name_")return value;if(isObject3(value)&&value.__isConvertedError__){const{message:e,...t}=value.errorProperties,r=new Error(e);return Object.assign(r,t),r}if(isObject3(value)&&value["_constructor-name_"]&&options.allowFunction){const e=value["_constructor-name_"];if(e!=="Object"){const t=new Function(`return function ${e.replace(/[^a-zA-Z0-9$_]+/g,"")}(){}`)();Object.setPrototypeOf(value,new t)}return delete value["_constructor-name_"],value}if(typeof value=="string"&&value.startsWith("_function_")&&options.allowFunction){const[,name,source]=value.match(/_function_([^|]*)\|(.*)/)||[],sourceSanitized=source.replace(/[(\(\))|\\| |\]|`]*$/,"");if(!options.lazyEval)return eval(`(${sourceSanitized})`);const result=(...args)=>{const f=eval(`(${sourceSanitized})`);return f(...args)};return Object.defineProperty(result,"toString",{value:()=>sourceSanitized}),Object.defineProperty(result,"name",{value:name}),result}if(typeof value=="string"&&value.startsWith("_regexp_")&&options.allowRegExp){const[,e,t]=value.match(/_regexp_([^|]*)\|(.*)/)||[];return new RegExp(t,e)}return typeof value=="string"&&value.startsWith("_date_")&&options.allowDate?new Date(value.replace("_date_","")):typeof value=="string"&&value.startsWith("_duplicate_")?(refs.push({target:key,container:this,replacement:value.replace(/^_duplicate_/,"")}),null):typeof value=="string"&&value.startsWith("_symbol_")&&options.allowSymbol?Symbol(value.replace("_symbol_","")):typeof value=="string"&&value.startsWith("_gsymbol_")&&options.allowSymbol?Symbol.for(value.replace("_gsymbol_","")):typeof value=="string"&&value==="_-Infinity_"?-1/0:typeof value=="string"&&value==="_Infinity_"?1/0:typeof value=="string"&&value==="_NaN_"?NaN:typeof value=="string"&&value.startsWith("_bigint_")&&typeof BigInt=="function"?BigInt(value.replace("_bigint_","")):value}},defaultOptions={maxDepth:10,space:void 0,allowFunction:!0,allowRegExp:!0,allowDate:!0,allowClass:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0,lazyEval:!0},stringify=(e,t={})=>{const r={...defaultOptions,...t};return JSON.stringify(convertUnconventionalData(e),replacer(r),t.space)},mutator=()=>{const e=new Map;return function t(r){isObject3(r)&&Object.entries(r).forEach(([a,o])=>{o==="_undefined_"?r[a]=void 0:e.get(o)||(e.set(o,!0),t(o))}),Array.isArray(r)&&r.forEach((a,o)=>{a==="_undefined_"?(e.set(a,!0),r[o]=void 0):e.get(a)||(e.set(a,!0),t(a))})}},parse=(e,t={})=>{const r={...defaultOptions,...t},a=JSON.parse(e,reviver2(r));return mutator()(a),a};/*! - * isobject - * - * Copyright (c) 2014-2017, Jon Schlinkert. - * Released under the MIT License. - *//** - * @license - * Lodash (Custom Build) - * Build: `lodash modularize exports="es" -o ./` - * Copyright OpenJS Foundation and other contributors - * Released under MIT license - * Based on Underscore.js 1.8.3 - * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */const dist=Object.freeze(Object.defineProperty({__proto__:null,isJSON,parse,replacer,reviver:reviver2,stringify},Symbol.toStringTag,{value:"Module"}));var _baseSet,hasRequired_baseSet;function require_baseSet(){if(hasRequired_baseSet)return _baseSet;hasRequired_baseSet=1;var e=_assignValue,t=require_castPath(),r=_isIndex,a=isObject_1,o=_toKey;function u(i,s,n,c){if(!a(i))return i;s=t(s,i);for(var y=-1,l=s.length,d=l-1,p=i;p!=null&&++yfunction(){return t||(0,e[__getOwnPropNames(e)[0]])((t={exports:{}}).exports,t),t.exports},__copyProps=(e,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of __getOwnPropNames(t))!__hasOwnProp.call(e,o)&&o!==r&&__defProp(e,o,{get:()=>t[o],enumerable:!(a=__getOwnPropDesc(t,o))||a.enumerable});return e},__toESM=(e,t,r)=>(r=e!=null?__create(__getProtoOf(e)):{},__copyProps(t||!e||!e.__esModule?__defProp(r,"default",{value:e,enumerable:!0}):r,e)),eventProperties=["bubbles","cancelBubble","cancelable","composed","currentTarget","defaultPrevented","eventPhase","isTrusted","returnValue","srcElement","target","timeStamp","type"],customEventSpecificProperties=["detail"];function extractEventHiddenProperties(e){const t=eventProperties.filter(r=>e[r]!==void 0).reduce((r,a)=>({...r,[a]:e[a]}),{});return e instanceof CustomEvent&&customEventSpecificProperties.filter(r=>e[r]!==void 0).forEach(r=>{t[r]=e[r]}),t}var memoizerific={exports:{}},hasRequiredMemoizerific;function requireMemoizerific(){return hasRequiredMemoizerific||(hasRequiredMemoizerific=1,function(e,t){(function(r){e.exports=r()})(function(){return function r(a,o,u){function i(c,y){if(!o[c]){if(!a[c]){var l=typeof commonjsRequire=="function"&&commonjsRequire;if(!y&&l)return l(c,!0);if(s)return s(c,!0);var d=new Error("Cannot find module '"+c+"'");throw d.code="MODULE_NOT_FOUND",d}var p=o[c]={exports:{}};a[c][0].call(p.exports,function(_){var h=a[c][1][_];return i(h||_)},p,p.exports,r,a,o,u)}return o[c].exports}for(var s=typeof commonjsRequire=="function"&&commonjsRequire,n=0;n=0)return this.lastItem=this.list[s],this.list[s].val},u.prototype.set=function(i,s){var n;return this.lastItem&&this.isEqual(this.lastItem.key,i)?(this.lastItem.val=s,this):(n=this.indexOf(i),n>=0?(this.lastItem=this.list[n],this.list[n].val=s,this):(this.lastItem={key:i,val:s},this.list.push(this.lastItem),this.size++,this))},u.prototype.delete=function(i){var s;if(this.lastItem&&this.isEqual(this.lastItem.key,i)&&(this.lastItem=void 0),s=this.indexOf(i),s>=0)return this.size--,this.list.splice(s,1)[0]},u.prototype.has=function(i){var s;return this.lastItem&&this.isEqual(this.lastItem.key,i)?!0:(s=this.indexOf(i),s>=0?(this.lastItem=this.list[s],!0):!1)},u.prototype.forEach=function(i,s){var n;for(n=0;n0&&(w[S]={cacheItem:_,arg:arguments[S]},j?i(l,w):l.push(w),l.length>c&&s(l.shift())),p.wasMemoized=j,p.numArgs=S+1,v};return p.limit=c,p.wasMemoized=!1,p.cache=y,p.lru=l,p}};function i(c,y){var l=c.length,d=y.length,p,_,h;for(_=0;_=0&&(l=c[p],d=l.cacheItem.get(l.arg),!d||!d.size);p--)l.cacheItem.delete(l.arg)}function n(c,y){return c===y||c!==c&&y!==y}},{"map-or-similar":1}]},{},[3])(3)})}(memoizerific)),memoizerific.exports}var memoizerificExports=requireMemoizerific();const memoize$1=getDefaultExportFromCjs(memoizerificExports);var require_shams=__commonJS({"node_modules/has-symbols/shams.js"(e,t){t.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var a={},o=Symbol("test"),u=Object(o);if(typeof o=="string"||Object.prototype.toString.call(o)!=="[object Symbol]"||Object.prototype.toString.call(u)!=="[object Symbol]")return!1;var i=42;a[o]=i;for(o in a)return!1;if(typeof Object.keys=="function"&&Object.keys(a).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(a).length!==0)return!1;var s=Object.getOwnPropertySymbols(a);if(s.length!==1||s[0]!==o||!Object.prototype.propertyIsEnumerable.call(a,o))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var n=Object.getOwnPropertyDescriptor(a,o);if(n.value!==i||n.enumerable!==!0)return!1}return!0}}}),require_has_symbols=__commonJS({"node_modules/has-symbols/index.js"(e,t){var r=typeof Symbol<"u"&&Symbol,a=require_shams();t.exports=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:a()}}}),require_implementation=__commonJS({"node_modules/function-bind/implementation.js"(e,t){var r="Function.prototype.bind called on incompatible ",a=Array.prototype.slice,o=Object.prototype.toString,u="[object Function]";t.exports=function(s){var n=this;if(typeof n!="function"||o.call(n)!==u)throw new TypeError(r+n);for(var c=a.call(arguments,1),y,l=function(){if(this instanceof y){var v=n.apply(this,c.concat(a.call(arguments)));return Object(v)===v?v:this}else return n.apply(s,c.concat(a.call(arguments)))},d=Math.max(0,n.length-c.length),p=[],_=0;_"u"?r:l(Uint8Array),_={"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":y?l([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":d,"%AsyncGenerator%":d,"%AsyncGeneratorFunction%":d,"%AsyncIteratorPrototype%":d,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":d,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":y?l(l([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!y?r:l(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!y?r:l(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":y?l(""[Symbol.iterator]()):r,"%Symbol%":y?Symbol:r,"%SyntaxError%":a,"%ThrowTypeError%":c,"%TypedArray%":p,"%TypeError%":u,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet},h=function A(g){var b;if(g==="%AsyncFunction%")b=i("async function () {}");else if(g==="%GeneratorFunction%")b=i("function* () {}");else if(g==="%AsyncGeneratorFunction%")b=i("async function* () {}");else if(g==="%AsyncGenerator%"){var m=A("%AsyncGeneratorFunction%");m&&(b=m.prototype)}else if(g==="%AsyncIteratorPrototype%"){var P=A("%AsyncGenerator%");P&&(b=l(P.prototype))}return _[g]=b,b},v={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},S=require_function_bind(),w=require_src(),j=S.call(Function.call,Array.prototype.concat),x=S.call(Function.apply,Array.prototype.splice),D=S.call(Function.call,String.prototype.replace),M=S.call(Function.call,String.prototype.slice),z=S.call(Function.call,RegExp.prototype.exec),k=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,U=/\\(\\)?/g,G=function(g){var b=M(g,0,1),m=M(g,-1);if(b==="%"&&m!=="%")throw new a("invalid intrinsic syntax, expected closing `%`");if(m==="%"&&b!=="%")throw new a("invalid intrinsic syntax, expected opening `%`");var P=[];return D(g,k,function(I,E,O,$){P[P.length]=O?D($,U,"$1"):E||I}),P},K=function(g,b){var m=g,P;if(w(v,m)&&(P=v[m],m="%"+P[0]+"%"),w(_,m)){var I=_[m];if(I===d&&(I=h(m)),typeof I>"u"&&!b)throw new u("intrinsic "+g+" exists, but is not available. Please file an issue!");return{alias:P,name:m,value:I}}throw new a("intrinsic "+g+" does not exist!")};t.exports=function(g,b){if(typeof g!="string"||g.length===0)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof b!="boolean")throw new u('"allowMissing" argument must be a boolean');if(z(/^%?[^%]*%?$/,g)===null)throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var m=G(g),P=m.length>0?m[0]:"",I=K("%"+P+"%",b),E=I.name,O=I.value,$=!1,B=I.alias;B&&(P=B[0],x(m,j([0,1],B)));for(var R=1,T=!0;R=m.length){var q=s(O,C);T=!!q,T&&"get"in q&&!("originalValue"in q.get)?O=q.get:O=O[C]}else T=w(O,C),O=O[C];T&&!$&&(_[E]=O)}}return O}}}),require_call_bind=__commonJS({"node_modules/call-bind/index.js"(e,t){var r=require_function_bind(),a=require_get_intrinsic(),o=a("%Function.prototype.apply%"),u=a("%Function.prototype.call%"),i=a("%Reflect.apply%",!0)||r.call(u,o),s=a("%Object.getOwnPropertyDescriptor%",!0),n=a("%Object.defineProperty%",!0),c=a("%Math.max%");if(n)try{n({},"a",{value:1})}catch{n=null}t.exports=function(d){var p=i(r,u,arguments);if(s&&n){var _=s(p,"length");_.configurable&&n(p,"length",{value:1+c(0,d.length-(arguments.length-1))})}return p};var y=function(){return i(r,o,arguments)};n?n(t.exports,"apply",{value:y}):t.exports.apply=y}}),require_callBound=__commonJS({"node_modules/call-bind/callBound.js"(e,t){var r=require_get_intrinsic(),a=require_call_bind(),o=a(r("String.prototype.indexOf"));t.exports=function(i,s){var n=r(i,!!s);return typeof n=="function"&&o(i,".prototype.")>-1?a(n):n}}}),require_shams2=__commonJS({"node_modules/has-tostringtag/shams.js"(e,t){var r=require_shams();t.exports=function(){return r()&&!!Symbol.toStringTag}}}),require_is_regex=__commonJS({"node_modules/is-regex/index.js"(e,t){var r=require_callBound(),a=require_shams2()(),o,u,i,s;a&&(o=r("Object.prototype.hasOwnProperty"),u=r("RegExp.prototype.exec"),i={},n=function(){throw i},s={toString:n,valueOf:n},typeof Symbol.toPrimitive=="symbol"&&(s[Symbol.toPrimitive]=n));var n,c=r("Object.prototype.toString"),y=Object.getOwnPropertyDescriptor,l="[object RegExp]";t.exports=a?function(p){if(!p||typeof p!="object")return!1;var _=y(p,"lastIndex"),h=_&&o(_,"value");if(!h)return!1;try{u(p,s)}catch(v){return v===i}}:function(p){return!p||typeof p!="object"&&typeof p!="function"?!1:c(p)===l}}}),require_is_function=__commonJS({"node_modules/is-function/index.js"(e,t){t.exports=a;var r=Object.prototype.toString;function a(o){if(!o)return!1;var u=r.call(o);return u==="[object Function]"||typeof o=="function"&&u!=="[object RegExp]"||typeof window<"u"&&(o===window.setTimeout||o===window.alert||o===window.confirm||o===window.prompt)}}}),require_is_symbol=__commonJS({"node_modules/is-symbol/index.js"(e,t){var r=Object.prototype.toString,a=require_has_symbols()();a?(o=Symbol.prototype.toString,u=/^Symbol\(.*\)$/,i=function(n){return typeof n.valueOf()!="symbol"?!1:u.test(o.call(n))},t.exports=function(n){if(typeof n=="symbol")return!0;if(r.call(n)!=="[object Symbol]")return!1;try{return i(n)}catch{return!1}}):t.exports=function(n){return!1};var o,u,i}}),import_is_regex=__toESM(require_is_regex()),import_is_function=__toESM(require_is_function()),import_is_symbol=__toESM(require_is_symbol());function isObject(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}var freeGlobal=typeof global=="object"&&global&&global.Object===Object&&global,freeGlobal_default=freeGlobal,freeSelf=typeof self=="object"&&self&&self.Object===Object&&self,root2=freeGlobal_default||freeSelf||Function("return this")(),root_default=root2,Symbol2=root_default.Symbol,Symbol_default=Symbol2,objectProto=Object.prototype,hasOwnProperty=objectProto.hasOwnProperty,nativeObjectToString=objectProto.toString,symToStringTag=Symbol_default?Symbol_default.toStringTag:void 0;function getRawTag(e){var t=hasOwnProperty.call(e,symToStringTag),r=e[symToStringTag];try{e[symToStringTag]=void 0;var a=!0}catch{}var o=nativeObjectToString.call(e);return a&&(t?e[symToStringTag]=r:delete e[symToStringTag]),o}var getRawTag_default=getRawTag,objectProto2=Object.prototype,nativeObjectToString2=objectProto2.toString;function objectToString(e){return nativeObjectToString2.call(e)}var objectToString_default=objectToString,nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag2=Symbol_default?Symbol_default.toStringTag:void 0;function baseGetTag(e){return e==null?e===void 0?undefinedTag:nullTag:symToStringTag2&&symToStringTag2 in Object(e)?getRawTag_default(e):objectToString_default(e)}var baseGetTag_default=baseGetTag;function isObjectLike(e){return e!=null&&typeof e=="object"}var isObjectLike_default=isObjectLike,symbolTag="[object Symbol]";function isSymbol(e){return typeof e=="symbol"||isObjectLike_default(e)&&baseGetTag_default(e)==symbolTag}var isSymbol_default=isSymbol;function arrayMap(e,t){for(var r=-1,a=e==null?0:e.length,o=Array(a);++r-1}var listCacheHas_default=listCacheHas;function listCacheSet(e,t){var r=this.__data__,a=assocIndexOf_default(r,e);return a<0?(++this.size,r.push([e,t])):r[a][1]=t,this}var listCacheSet_default=listCacheSet;function ListCache(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t{let t=null,r=!1,a=!1,o=!1,u="";if(e.indexOf("//")>=0||e.indexOf("/*")>=0)for(let i=0;iremoveCodeComments(e).replace(/\n\s*/g,"").trim()),convertShorthandMethods=function(t,r){const a=r.slice(0,r.indexOf("{")),o=r.slice(r.indexOf("{"));if(a.includes("=>")||a.includes("function"))return r;let u=a;return u=u.replace(t,"function"),u+o},dateFormat=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,isJSON=e=>e.match(/^[\[\{\"\}].*[\]\}\"]$/);function convertUnconventionalData(e){if(!isObject3(e))return e;let t=e,r=!1;return typeof Event<"u"&&e instanceof Event&&(t=extractEventHiddenProperties(t),r=!0),t=Object.keys(t).reduce((a,o)=>{try{t[o]&&t[o].toJSON,a[o]=t[o]}catch{r=!0}return a},{}),r?t:e}var replacer=function(t){let r,a,o,u;return function(s,n){try{if(s==="")return u=[],r=new Map([[n,"[]"]]),a=new Map,o=[],n;const c=a.get(this)||this;for(;o.length&&c!==o[0];)o.shift(),u.pop();if(typeof n=="boolean")return n;if(n===void 0)return t.allowUndefined?"_undefined_":void 0;if(n===null)return null;if(typeof n=="number")return n===-1/0?"_-Infinity_":n===1/0?"_Infinity_":Number.isNaN(n)?"_NaN_":n;if(typeof n=="bigint")return`_bigint_${n.toString()}`;if(typeof n=="string")return dateFormat.test(n)?t.allowDate?`_date_${n}`:void 0:n;if((0,import_is_regex.default)(n))return t.allowRegExp?`_regexp_${n.flags}|${n.source}`:void 0;if((0,import_is_function.default)(n)){if(!t.allowFunction)return;const{name:l}=n,d=n.toString();return d.match(/(\[native code\]|WEBPACK_IMPORTED_MODULE|__webpack_exports__|__webpack_require__)/)?`_function_${l}|${(()=>{}).toString()}`:`_function_${l}|${cleanCode(convertShorthandMethods(s,d))}`}if((0,import_is_symbol.default)(n)){if(!t.allowSymbol)return;const l=Symbol.keyFor(n);return l!==void 0?`_gsymbol_${l}`:`_symbol_${n.toString().slice(7,-1)}`}if(o.length>=t.maxDepth)return Array.isArray(n)?`[Array(${n.length})]`:"[Object]";if(n===this)return`_duplicate_${JSON.stringify(u)}`;if(n instanceof Error&&t.allowError)return{__isConvertedError__:!0,errorProperties:{...n.cause?{cause:n.cause}:{},...n,name:n.name,message:n.message,stack:n.stack,"_constructor-name_":n.constructor.name}};if(n.constructor&&n.constructor.name&&n.constructor.name!=="Object"&&!Array.isArray(n)&&!t.allowClass)return;const y=r.get(n);if(!y){const l=Array.isArray(n)?n:convertUnconventionalData(n);if(n.constructor&&n.constructor.name&&n.constructor.name!=="Object"&&!Array.isArray(n)&&t.allowClass)try{Object.assign(l,{"_constructor-name_":n.constructor.name})}catch{}return u.push(s),o.unshift(l),r.set(n,JSON.stringify(u)),n!==l&&a.set(n,l),l}return`_duplicate_${y}`}catch{return}}},reviver2=function reviver(options){const refs=[];let root;return function revive(key,value){if(key===""&&(root=value,refs.forEach(({target:e,container:t,replacement:r})=>{const a=isJSON(r)?JSON.parse(r):r.split(".");a.length===0?t[e]=root:t[e]=get_default(root,a)})),key==="_constructor-name_")return value;if(isObject3(value)&&value.__isConvertedError__){const{message:e,...t}=value.errorProperties,r=new Error(e);return Object.assign(r,t),r}if(isObject3(value)&&value["_constructor-name_"]&&options.allowFunction){const e=value["_constructor-name_"];if(e!=="Object"){const t=new Function(`return function ${e.replace(/[^a-zA-Z0-9$_]+/g,"")}(){}`)();Object.setPrototypeOf(value,new t)}return delete value["_constructor-name_"],value}if(typeof value=="string"&&value.startsWith("_function_")&&options.allowFunction){const[,name,source]=value.match(/_function_([^|]*)\|(.*)/)||[],sourceSanitized=source.replace(/[(\(\))|\\| |\]|`]*$/,"");if(!options.lazyEval)return eval(`(${sourceSanitized})`);const result=(...args)=>{const f=eval(`(${sourceSanitized})`);return f(...args)};return Object.defineProperty(result,"toString",{value:()=>sourceSanitized}),Object.defineProperty(result,"name",{value:name}),result}if(typeof value=="string"&&value.startsWith("_regexp_")&&options.allowRegExp){const[,e,t]=value.match(/_regexp_([^|]*)\|(.*)/)||[];return new RegExp(t,e)}return typeof value=="string"&&value.startsWith("_date_")&&options.allowDate?new Date(value.replace("_date_","")):typeof value=="string"&&value.startsWith("_duplicate_")?(refs.push({target:key,container:this,replacement:value.replace(/^_duplicate_/,"")}),null):typeof value=="string"&&value.startsWith("_symbol_")&&options.allowSymbol?Symbol(value.replace("_symbol_","")):typeof value=="string"&&value.startsWith("_gsymbol_")&&options.allowSymbol?Symbol.for(value.replace("_gsymbol_","")):typeof value=="string"&&value==="_-Infinity_"?-1/0:typeof value=="string"&&value==="_Infinity_"?1/0:typeof value=="string"&&value==="_NaN_"?NaN:typeof value=="string"&&value.startsWith("_bigint_")&&typeof BigInt=="function"?BigInt(value.replace("_bigint_","")):value}},defaultOptions={maxDepth:10,space:void 0,allowFunction:!0,allowRegExp:!0,allowDate:!0,allowClass:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0,lazyEval:!0},stringify=(e,t={})=>{const r={...defaultOptions,...t};return JSON.stringify(convertUnconventionalData(e),replacer(r),t.space)},mutator=()=>{const e=new Map;return function t(r){isObject3(r)&&Object.entries(r).forEach(([a,o])=>{o==="_undefined_"?r[a]=void 0:e.get(o)||(e.set(o,!0),t(o))}),Array.isArray(r)&&r.forEach((a,o)=>{a==="_undefined_"?(e.set(a,!0),r[o]=void 0):e.get(a)||(e.set(a,!0),t(a))})}},parse=(e,t={})=>{const r={...defaultOptions,...t},a=JSON.parse(e,reviver2(r));return mutator()(a),a};/*! + * isobject + * + * Copyright (c) 2014-2017, Jon Schlinkert. + * Released under the MIT License. + *//** + * @license + * Lodash (Custom Build) + * Build: `lodash modularize exports="es" -o ./` + * Copyright OpenJS Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */const dist=Object.freeze(Object.defineProperty({__proto__:null,isJSON,parse,replacer,reviver:reviver2,stringify},Symbol.toStringTag,{value:"Module"}));var _baseSet,hasRequired_baseSet;function require_baseSet(){if(hasRequired_baseSet)return _baseSet;hasRequired_baseSet=1;var e=_assignValue,t=_castPath,r=_isIndex,a=isObject_1,o=_toKey;function u(i,s,n,c){if(!a(i))return i;s=t(s,i);for(var y=-1,l=s.length,d=l-1,p=i;p!=null&&++yinput.search{width:100%}.association-dropdown div[role=listbox] div[role=option] span.text{display:block}.association-dropdown div[role=alert]{max-width:100%}.ui.form.field .ui.input .association-dropdown input.dropdown-search-input,.ui.form .wide.field .ui.input .association-dropdown input.dropdown-search-input{width:100%}.ui.dropdown:not(.button)>.default.text{color:#5f5f5fdb}.audio-player.ui.modal>.content>audio{width:100%}.audio-player>.content>.ui.message>.content>p{word-break:break-all}.bibliography-search-input{display:flex;justify-content:center;margin-bottom:40px}.bibliography-search-input>.input{width:60%}.bibliography-search-input>.search-button.ui.button{margin-left:5px}.bibliography-list .sort-selector.ui.basic.buttons{margin-left:5px}.ui.breadcrumb:first-child{margin-bottom:1em;margin-top:.5em}.color-button.ui.button{border:1px solid rgba(34,36,38,.15);vertical-align:middle}.color-picker-modal.ui.modal{width:auto}.data-table .ui.table .actions-cell{white-space:nowrap;width:1px}.data-table .empty-button{display:inline;margin-left:5px;margin-right:4px}.data-table .empty-container{font-size:1.1em;padding:15px}.data-table .expandable{cursor:pointer}.data-table .expanded-panel{display:table-row}.data-table .footer{margin-top:10px}.data-table .header{margin-bottom:10px}.data-table .hidden{display:none}.data-table.ui.celled.table tr th{position:relative}.data-table.ui.celled.table tr td.actions-cell{white-space:nowrap}.date-input.ui.icon.input>i.icon.right{cursor:pointer;pointer-events:inherit;left:auto;right:1px}.date-input.ui.icon.input>input{padding-right:calc(22px + 1.1em)!important}.data-view-modal.ui.form .field span.label{display:block;font-weight:700}.react-calendar{width:350px;max-width:100%;background:#fff;border:1px solid #a0a096;font-family:Arial,Helvetica,sans-serif;line-height:1.125em}.react-calendar--doubleView{width:700px}.react-calendar--doubleView .react-calendar__viewContainer{display:flex;margin:-.5em}.react-calendar--doubleView .react-calendar__viewContainer>*{width:50%;margin:.5em}.react-calendar,.react-calendar *,.react-calendar *:before,.react-calendar *:after{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.react-calendar button{margin:0;border:0;outline:none}.react-calendar button:enabled:hover{cursor:pointer}.react-calendar__navigation{display:flex;height:44px;margin-bottom:1em}.react-calendar__navigation button{min-width:44px;background:none}.react-calendar__navigation button:disabled{background-color:#f0f0f0}.react-calendar__navigation button:enabled:hover,.react-calendar__navigation button:enabled:focus{background-color:#e6e6e6}.react-calendar__month-view__weekdays{text-align:center;text-transform:uppercase;font-weight:700;font-size:.75em}.react-calendar__month-view__weekdays__weekday{padding:.5em}.react-calendar__month-view__weekNumbers .react-calendar__tile{display:flex;align-items:center;justify-content:center;font-size:.75em;font-weight:700}.react-calendar__month-view__days__day--weekend{color:#d10000}.react-calendar__month-view__days__day--neighboringMonth{color:#757575}.react-calendar__year-view .react-calendar__tile,.react-calendar__decade-view .react-calendar__tile,.react-calendar__century-view .react-calendar__tile{padding:2em .5em}.react-calendar__tile{max-width:100%;padding:10px 6.6667px;background:none;text-align:center;line-height:16px}.react-calendar__tile:disabled{background-color:#f0f0f0}.react-calendar__tile:enabled:hover,.react-calendar__tile:enabled:focus{background-color:#e6e6e6}.react-calendar__tile--now{background:#ffff76}.react-calendar__tile--now:enabled:hover,.react-calendar__tile--now:enabled:focus{background:#ffffa9}.react-calendar__tile--hasActive{background:#76baff}.react-calendar__tile--hasActive:enabled:hover,.react-calendar__tile--hasActive:enabled:focus{background:#a9d4ff}.react-calendar__tile--active{background:#006edc;color:#fff}.react-calendar__tile--active:enabled:hover,.react-calendar__tile--active:enabled:focus{background:#1087ff}.react-calendar--selectRange .react-calendar__tile--hover{background-color:#e6e6e6}div.react-calendar{margin-top:3em;background:#fff;color:#0009!important;border:none;border-radius:.28571429rem;text-transform:none;text-shadow:none;box-shadow:0 0 0 1px #22242626 inset;padding:.58928571em}.react-calendar,.react-calendar button{font-family:Lato,Helvetica Neue,Arial,Helvetica,sans-serif}.react-calendar button{background:transparent none;color:#000000de;font-weight:400;border-radius:.28571429rem;text-transform:none;text-shadow:none}.react-calendar button:focus,.react-calendar .react-calendar__navigation button:enabled:focus{background:transparent none}.react-calendar button:enabled:hover,.react-calendar .react-calendar__navigation button:enabled:hover{background:#fff;color:#0009}.react-calendar .react-calendar__month-view__days__day--neighboringMonth{color:#0000008a}.react-calendar abbr[title]{text-decoration:none}.react-calendar .react-calendar__tile--now{background-color:#fbbd08;color:#000}.react-calendar .react-calendar__tile--now:enabled:hover{background-color:#eaae00;color:#fff}.react-calendar .react-calendar__month-view__days__day--weekend{color:#db2828}.react-calendar .react-calendar__month-view__days__day--weekend:enabled:hover{color:#d01919}.react-calendar .react-calendar__tile--active{background-color:#1d77bb;color:#fff}.react-calendar .react-calendar__tile--active:enabled:hover{background-color:#1678c2;color:#fff}.dropdown-button.ui.buttons{font-size:unset}.edit-modal-actions .saving.ui.inline.loader.active{margin-left:4px;margin-top:-2px}.ui.form .fields .wide.field.inline-dropdown{margin-right:25px}.edit-page .button-container{text-align:right}.edit-page .ui.menu:not(.vertical) .item>.button{margin-right:.25em}.embedded-list{width:100%}.embedded-list .list-buttons{margin-top:10px}.facet.ui.accordion{padding-bottom:1em}.facet.ui.accordion.hidden{display:none}.facet.ui.accordion>.title>.facet-title{display:flex;justify-content:space-between}.facet.ui.accordion>.title>.facet-title .header{margin-bottom:0}.facet.ui.accordion>.title:not(.ui){padding-top:0}.facet.ui.accordion .content{margin-bottom:1em}.facet-list .toggleable{display:block;margin-top:1em}.rc-slider{position:relative;width:100%;height:14px;padding:5px 0;border-radius:6px;touch-action:none;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.rc-slider *{box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.rc-slider-rail{position:absolute;width:100%;height:4px;background-color:#e9e9e9;border-radius:6px}.rc-slider-track,.rc-slider-tracks{position:absolute;height:4px;background-color:#abe2fb;border-radius:6px}.rc-slider-track-draggable{z-index:1;box-sizing:content-box;background-clip:content-box;border-top:5px solid rgba(0,0,0,0);border-bottom:5px solid rgba(0,0,0,0);transform:translateY(-5px)}.rc-slider-handle{position:absolute;z-index:1;width:14px;height:14px;margin-top:-5px;background-color:#fff;border:solid 2px #96dbfa;border-radius:50%;cursor:pointer;cursor:-webkit-grab;cursor:grab;opacity:.8;touch-action:pan-x}.rc-slider-handle-dragging.rc-slider-handle-dragging.rc-slider-handle-dragging{border-color:#57c5f7;box-shadow:0 0 0 5px #96dbfa}.rc-slider-handle:focus{outline:none;box-shadow:none}.rc-slider-handle:focus-visible{border-color:#2db7f5;box-shadow:0 0 0 3px #96dbfa}.rc-slider-handle-click-focused:focus{border-color:#96dbfa;box-shadow:unset}.rc-slider-handle:hover{border-color:#57c5f7}.rc-slider-handle:active{border-color:#57c5f7;box-shadow:0 0 5px #57c5f7;cursor:-webkit-grabbing;cursor:grabbing}.rc-slider-mark{position:absolute;top:18px;left:0;width:100%;font-size:12px}.rc-slider-mark-text{position:absolute;display:inline-block;color:#999;text-align:center;vertical-align:middle;cursor:pointer}.rc-slider-mark-text-active{color:#666}.rc-slider-step{position:absolute;width:100%;height:4px;background:transparent}.rc-slider-dot{position:absolute;bottom:-2px;width:8px;height:8px;vertical-align:middle;background-color:#fff;border:2px solid #e9e9e9;border-radius:50%;cursor:pointer}.rc-slider-dot-active{border-color:#96dbfa}.rc-slider-dot-reverse{margin-right:-4px}.rc-slider-disabled{background-color:#e9e9e9}.rc-slider-disabled .rc-slider-track{background-color:#ccc}.rc-slider-disabled .rc-slider-handle,.rc-slider-disabled .rc-slider-dot{background-color:#fff;border-color:#ccc;box-shadow:none;cursor:not-allowed}.rc-slider-disabled .rc-slider-mark-text,.rc-slider-disabled .rc-slider-dot{cursor:not-allowed!important}.rc-slider-vertical{width:14px;height:100%;padding:0 5px}.rc-slider-vertical .rc-slider-rail{width:4px;height:100%}.rc-slider-vertical .rc-slider-track{bottom:0;left:5px;width:4px}.rc-slider-vertical .rc-slider-track-draggable{border-top:0;border-bottom:0;border-right:5px solid rgba(0,0,0,0);border-left:5px solid rgba(0,0,0,0);transform:translate(-5px)}.rc-slider-vertical .rc-slider-handle{position:absolute;z-index:1;margin-top:0;margin-left:-5px;touch-action:pan-y}.rc-slider-vertical .rc-slider-mark{top:0;left:18px;height:100%}.rc-slider-vertical .rc-slider-step{width:4px;height:100%}.rc-slider-vertical .rc-slider-dot{margin-left:-2px}.rc-slider-tooltip-zoom-down-enter,.rc-slider-tooltip-zoom-down-appear,.rc-slider-tooltip-zoom-down-leave{display:block!important;animation-duration:.3s;animation-fill-mode:both;animation-play-state:paused}.rc-slider-tooltip-zoom-down-enter.rc-slider-tooltip-zoom-down-enter-active,.rc-slider-tooltip-zoom-down-appear.rc-slider-tooltip-zoom-down-appear-active{animation-name:rcSliderTooltipZoomDownIn;animation-play-state:running}.rc-slider-tooltip-zoom-down-leave.rc-slider-tooltip-zoom-down-leave-active{animation-name:rcSliderTooltipZoomDownOut;animation-play-state:running}.rc-slider-tooltip-zoom-down-enter,.rc-slider-tooltip-zoom-down-appear{transform:scale(0);animation-timing-function:cubic-bezier(.23,1,.32,1)}.rc-slider-tooltip-zoom-down-leave{animation-timing-function:cubic-bezier(.755,.05,.855,.06)}@keyframes rcSliderTooltipZoomDownIn{0%{transform:scale(0);transform-origin:50% 100%;opacity:0}to{transform:scale(1);transform-origin:50% 100%}}@keyframes rcSliderTooltipZoomDownOut{0%{transform:scale(1);transform-origin:50% 100%}to{transform:scale(0);transform-origin:50% 100%;opacity:0}}.rc-slider-tooltip{position:absolute;top:-9999px;left:-9999px;visibility:visible;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.rc-slider-tooltip *{box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.rc-slider-tooltip-hidden{display:none}.rc-slider-tooltip-placement-top{padding:4px 0 8px}.rc-slider-tooltip-inner{min-width:24px;height:24px;padding:6px 2px;color:#fff;font-size:12px;line-height:1;text-align:center;text-decoration:none;background-color:#6c6c6c;border-radius:6px;box-shadow:0 0 4px #d9d9d9}.rc-slider-tooltip-arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid}.rc-slider-tooltip-placement-top .rc-slider-tooltip-arrow{bottom:4px;left:50%;margin-left:-4px;border-width:4px 4px 0;border-top-color:#6c6c6c}.facet-slider>.ui.grid{margin-top:0}.facet-slider .granularity-dropdown{margin-bottom:16px}.facet-slider>.range-container{padding-left:10px;padding-right:10px}.file-upload{margin-top:10px}.file-upload .file-dropzone{align-items:center;border:2px dashed rgb(187,186,186);cursor:pointer;display:flex;font-size:16px;justify-content:center;outline:none;padding:15px;text-align:center}.file-upload .file-dropzone .icon{color:#1d77bb}.file-upload .file-dropzone-text{padding:10px}.file-upload .file-dropzone-text .link-text{color:#1d77bb}.file-upload .file-input{display:none}.image-carousel>.content{height:100%;width:100%}.image-carousel>.content>.ui.grid{height:100%}.image-carousel>.content>.ui.grid>.row.image-content{flex-grow:1}.image-carousel>.content>.ui.grid>.row.image-content>.column{display:flex;justify-content:center;align-items:center}.image-carousel>.content>.ui.grid>.row.image-content>.column.image-container{flex-grow:1}.image-carousel>.content>.ui.grid>.row.image-content>.column.image-container img{width:100%;height:auto;max-height:70vh;object-fit:contain}.image-carousel .ui.button,.image-carousel .ui.button:hover{border:none;background:none;color:#fff}.fuzzy-date-modal .accuracy-container .ui.radio.checkbox{padding-right:10px}.fuzzy-date-modal .button-container{margin-left:8px;margin-top:23px}.item-collection>.ui.loader.active{position:fixed}.horizontal-cards .ui.cards{display:flex;flex-direction:row;flex-wrap:nowrap;overflow:hidden;padding-top:.5em;padding-bottom:.5em}.horizontal-cards .ui.cards::-webkit-scrollbar{width:0!important;display:none}.horizontal-cards .ui.cards>.card>.content{flex-grow:0}.horizontal-cards .ui.cards>.card>.content>.header{margin-bottom:0;margin-top:0}.horizontal-cards .ui.cards>.card>.content.more{display:flex;flex-direction:column;flex-grow:1;justify-content:center;align-items:center}.horizontal-cards .ui.cards>.card>.content.more>.header{margin-top:.5em}.horizontal-cards .button-container{margin-top:.5em}.horizontal-cards .button-container .pagination{float:right}.horizontal-cards .clearFloat{clear:both}.horizontal-cards .ui.cards>.card>.image-placeholder{aspect-ratio:1 / 1}.field.keyboard-field .hg-candidate-box{top:56px;left:4px}.item-list{margin:1em 0}.item-list .ui.icon.header{display:block}.item-list .ui.items>.item>.checkbox-container{display:flex;align-items:center;justify-content:flex-end;padding-right:100px;width:20%}.lazy-audio.ui.segment{display:inline-block!important;max-width:100%;padding:0}.lazy-audio.ui.segment .buttons{display:flex;flex-direction:column}.lazy-audio.ui.segment .buttons .ui.button{margin-top:5px;margin-bottom:5px}.lazy-audio .placeholder-image.ui.image{background-color:#f9fafb;box-shadow:0 1px 3px #d4d4d5,0 0 0 1px #d4d4d5;padding-top:20%;padding-bottom:20%;text-align:center}.lazy-document.ui.segment{display:inline-block!important;max-width:100%;padding:0}.lazy-document.ui.segment .buttons{display:flex;flex-direction:column;z-index:1000}.lazy-document.ui.segment .buttons .ui.button{margin-top:5px;margin-bottom:5px}.lazy-document .placeholder-image.ui.image{background-color:#f9fafb;box-shadow:0 1px 3px #d4d4d5,0 0 0 1px #d4d4d5;padding-top:20%;padding-bottom:20%;text-align:center}.lazy-document .react-pdf__Page__canvas{width:100%!important;height:100%!important}.lazy-document>.image.hidden{display:none}.pdf-container{width:200px;height:300px}.lazy-image.ui.segment{display:inline-block!important;max-width:100%;padding:0}.lazy-image.ui.segment .buttons{display:flex;flex-direction:column}.lazy-image.ui.segment .buttons .ui.button{margin-top:5px;margin-bottom:5px}.lazy-image .placeholder-image.ui.image{background-color:#f9fafb;box-shadow:0 1px 3px #d4d4d5,0 0 0 1px #d4d4d5;padding-top:20%;padding-bottom:20%;text-align:center}.lazy-image>.image.hidden{display:none}.ui.button.basic.compact.link-button{background:none;border:none;box-shadow:none;font-weight:400;margin:0em 0em .28571429rem;padding:0}.link-label+.link-button.ui.button.basic.compact{float:right;padding-right:15px}.ui.form .field>label.link-label{display:inline-block}.lazy-video.ui.segment{display:inline-block!important;max-width:100%;padding:0}.lazy-video.ui.segment .buttons{display:flex;flex-direction:column}.lazy-video.ui.segment .buttons .ui.button{margin-top:5px;margin-bottom:5px}.lazy-video .placeholder-image.ui.image{background-color:#f9fafb;box-shadow:0 1px 3px #d4d4d5,0 0 0 1px #d4d4d5;padding-top:20%;padding-bottom:20%;text-align:center}.lazy-video.ui.segment>.image>video{display:table;width:100%}.lazy-video>.image.hidden{display:none}.header .flex-end-menu{justify-content:flex-end}.header .list-header-menu,.header .per-page-menu{flex-shrink:0}.header .ui.grid.filter-labels>.row:first-child{padding-bottom:0}.header .ui.grid>.row:nth-child(2){padding-top:0}.listLoader.ui.segment{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);padding:50px;z-index:999}.list-table .table-container{margin-top:20px}.login-modal .ui.grid>.column>.row{margin:15px 150px 0}.login-modal .ui.input.form-field{display:block}.mediaGallery.ui.page.dimmer{display:flex;flex-direction:column;justify-content:center}.mediaGallery.ui.page.dimmer .imageContainer{position:relative;flex-grow:1}.mediaGallery.ui.page.dimmer .controls{position:absolute}.mediaGallery.ui.page.dimmer .left{left:1em}.mediaGallery.ui.page.dimmer .right{right:1em}.mediaGallery.ui.page.dimmer .top{top:1em}.mediaGallery.ui.page.dimmer .middle{top:50%}.mediaGallery.ui.page.transition>.content{display:flex;flex-direction:column;justify-content:center;align-items:center}.mediaGrid{position:relative}.mediaGrid .grid1{display:grid;grid-template-columns:repeat(1,1fr);grid-gap:10px;width:100%}.mediaGrid .grid2{display:grid;grid-template-columns:repeat(2,1fr);grid-gap:10px;width:100%}.mediaGrid .grid3{display:grid;grid-template-columns:repeat(4,1fr);grid-template-rows:repeat(2,235px);grid-gap:10px;width:100%}.mediaGrid .grid3 .mediaImage:first-child{grid-column:span 2;grid-row:span 2}.mediaGrid .grid3 .mediaImage{grid-column:span 2}.mediaGrid .grid4{display:grid;grid-template-columns:repeat(4,1fr);grid-template-rows:repeat(2,235px);grid-gap:10px;width:100%}.mediaGrid .grid4 .mediaImage:first-child{grid-column:span 2;grid-row:span 2}.mediaGrid .grid4 .mediaImage:nth-child(4){grid-column:span 2}.mediaGrid .grid5{display:grid;grid-template-columns:repeat(4,1fr);grid-gap:10px;width:100%}.mediaGrid .grid5 .mediaImage:first-child{grid-column:span 2;grid-row:span 2}.mediaGrid .mediaImage{position:relative}.mediaGrid .mediaImage div{height:100%;width:100%}.masonryGrid{display:flex}.masonryGrid>.column{flex:1}.masonryGrid>.column>.itemContainer{display:flex;justify-content:center;align-items:center;background:#efefef}.masonryGrid .placeholderWrapper{height:100%}.masonryGrid>.column>.itemContainer>.item{position:relative;width:100%;z-index:500}.masonryGrid>.column>.itemContainer>.item .favoriteContainer{position:absolute;bottom:1em;right:1em;z-index:600}.masonryGrid>.column>.itemContainer>.item .extraContainer{position:absolute;bottom:1em;left:1em}.masonryGrid>.column>.itemContainer>.item .image{height:100%;object-fit:cover;width:100%}.masonryGrid>.column>.itemContainer>.item .ui.transition{display:flex!important;z-index:500}.mediaList .ui.cards>.card>.meta{padding:.5em}.modal-dropdown{width:90%}.modal-dropdown .buttons{width:10%}.modal-dropdown.ui.search.selection.dropdown>input.search{width:100%}.play-button.ui.button{opacity:.7}.photo-viewer{padding:30px}.photo-viewer>.content>.ui.message>.content>p{word-break:break-all}.nested-accordion .ui.icon.button.accordion-button{background-color:transparent;display:inline-block}.nested-accordion .ui.icon.button.accordion-button.hidden i{visibility:hidden}.nested-accordion .ui.icon.button.inverted.accordion-button{box-shadow:none!important;color:#fff}.nested-accordion.ui.styled.accordion .title{color:#0009}.nested-accordion .title>.container{display:flex;flex-direction:row;justify-content:space-between;align-items:center}.nested-accordion .title>.container>div:first-child{flex-grow:1;white-space:nowrap}.nested-accordion .title>.container>div:first-child>.item-container{display:inline-block;width:100%}.nested-accordion .title>.container>.right-container{margin-left:1em;text-align:right;display:flex;align-items:center}.nested-accordion .title>.container>.right-container>.row-select-checkbox{margin-left:1.5em}.remote-dropdown .extra-option{opacity:.5}.ui.remote-dropdown .menu .item{display:flex;flex-direction:row-reverse;justify-content:flex-end}.ui.remote-dropdown .menu .item .description{justify-self:flex-start}.selectize-header .ui.button.selected{margin:3px}.selectize .add-button.ui.button{margin-left:10px}.selectize .ui.primary.button.button-selected{margin:5px}.selectize .empty{opacity:.87}.simple-edit-page.ui.grid{padding-bottom:2.5em}.simple-edit-page .menu .item.button-container>.button{margin-right:.25em}.selectize-image-header.ui.segment .container{display:flex;flex-direction:row;align-items:center}.selectize-image-header.ui.segment .container>.ui.cards{display:flex;flex-direction:row;flex-grow:1;margin:0em .2rem}.selectize-image-header.ui.segment>.bottom-container{display:flex;flex-direction:row;justify-content:space-between;align-items:center;width:100%}.selectize-image-header.ui.segment>.bottom-container .ui.button.link{box-shadow:0 0;-moz-box-shadow:0 0;-webkit-box-shadow:0 0}.selectize-image-header.ui.segment .container>.ui.cards>.ui.card>.content{word-break:break-word}.selectize-image-header.ui.segment .container>.ui.cards>.ui.card>.content>.meta{font-size:.7em}.selectize-image-header.ui.segment .container>.ui.cards>.ui.card>.image{aspect-ratio:1;object-fit:cover;width:100%}.selectize-image-header.ui.segment .container>.ui.cards>.ui.card>.ui.segment.placeholder{align-items:center;aspect-ratio:1;margin-bottom:0;max-width:100%;min-height:unset}.selectize-image-header.ui.segment .container>.ui.cards>.ui.card>.ui.segment.placeholder>.icon{color:#000000de;height:unset}.tabbed-modal.ui .modal-header .ui.menu{max-width:100%;overflow:auto;padding:5px 0}.tabbed-modal.ui .modal-header.inline-header .ui.menu{display:inline-flex;margin-left:30px}.tabbed-modal.ui .modal-header.inline-header .ui.header{display:inline}.video-player-button{height:100%;left:0;position:absolute;top:0;width:100%;z-index:2}.video-player-button>div:first-child{align-items:center;display:flex;height:100%;justify-content:center;width:100%}.toaster.ui.message{position:fixed;top:0;right:0;left:0;margin:auto;width:30%;z-index:999}.video-frame-selector video{width:100%}.video-player video{width:100%}.video-player>.content>.ui.message>.content>p{word-break:break-all}.column-resize{position:absolute;top:0;bottom:0;right:0;cursor:col-resize;width:5px;padding:5px}.data-table-column-selector .configure-button.ui.icon.button>.icon{vertical-align:middle}.data-table-column-selector .ui.dropdown.open-right>.menu{top:100%;bottom:auto;right:0;left:auto}.file-upload-status.ui.label>.loader{margin-right:1em}.file-upload-progress{display:flex;align-items:center}.file-upload-progress>.progress-container{display:flex;flex-direction:column;margin-left:20px;width:100%}.file-upload-progress>.progress-container>.ui.header{display:flex;align-items:flex-end}.file-upload-progress>.progress-container>.ui.header>.content{margin-right:40px}.file-upload-progress>.progress-container>.progress{margin-bottom:0}.lazy-loader{background-color:#f9fafb;box-shadow:0 1px 3px #d4d4d5,0 0 0 1px #d4d4d5;padding-top:20%;padding-bottom:20%;text-align:center}.filter-labels{margin-top:1em}.ui.form .creator-field.fields{align-items:end}.ui.form .creator-field.fields>.field.flex{flex-grow:1}.ui.form .creator-field.fields>.field.flex>label{display:flex}/*! + */.transition{animation-iteration-count:1;animation-duration:.3s;animation-timing-function:ease;animation-fill-mode:both}.animating.transition{backface-visibility:hidden;visibility:visible!important}.loading.transition{position:absolute;top:-99999px;left:-99999px}.hidden.transition{display:none;visibility:hidden}.visible.transition{display:block!important;visibility:visible!important}.disabled.transition{animation-play-state:paused}.looping.transition{animation-iteration-count:infinite}.transition.browse{animation-duration:.5s}.transition.browse.in{animation-name:browseIn}.transition.browse.out,.transition.browse.left.out{animation-name:browseOutLeft}.transition.browse.right.out{animation-name:browseOutRight}@keyframes browseIn{0%{transform:scale(.8) translateZ(0);z-index:-1}10%{transform:scale(.8) translateZ(0);z-index:-1;opacity:.7}80%{transform:scale(1.05) translateZ(0);opacity:1;z-index:999}to{transform:scale(1) translateZ(0);z-index:999}}@keyframes browseOutLeft{0%{z-index:999;transform:translate(0) rotateY(0) rotateX(0)}50%{z-index:-1;transform:translate(-105%) rotateY(35deg) rotateX(10deg) translateZ(-10px)}80%{opacity:1}to{z-index:-1;transform:translate(0) rotateY(0) rotateX(0) translateZ(-10px);opacity:0}}@keyframes browseOutRight{0%{z-index:999;transform:translate(0) rotateY(0) rotateX(0)}50%{z-index:1;transform:translate(105%) rotateY(35deg) rotateX(10deg) translateZ(-10px)}80%{opacity:1}to{z-index:1;transform:translate(0) rotateY(0) rotateX(0) translateZ(-10px);opacity:0}}.drop.transition{transform-origin:top center;animation-duration:.4s;animation-timing-function:cubic-bezier(.34,1.61,.7,1)}.drop.transition.in{animation-name:dropIn}.drop.transition.out{animation-name:dropOut}@keyframes dropIn{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes dropOut{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(0)}}.transition.fade.in{animation-name:fadeIn}.transition[class*="fade up"].in{animation-name:fadeInUp}.transition[class*="fade down"].in{animation-name:fadeInDown}.transition[class*="fade left"].in{animation-name:fadeInLeft}.transition[class*="fade right"].in{animation-name:fadeInRight}.transition.fade.out{animation-name:fadeOut}.transition[class*="fade up"].out{animation-name:fadeOutUp}.transition[class*="fade down"].out{animation-name:fadeOutDown}.transition[class*="fade left"].out{animation-name:fadeOutLeft}.transition[class*="fade right"].out{animation-name:fadeOutRight}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeInUp{0%{opacity:0;transform:translateY(10%)}to{opacity:1;transform:translateY(0)}}@keyframes fadeInDown{0%{opacity:0;transform:translateY(-10%)}to{opacity:1;transform:translateY(0)}}@keyframes fadeInLeft{0%{opacity:0;transform:translate(10%)}to{opacity:1;transform:translate(0)}}@keyframes fadeInRight{0%{opacity:0;transform:translate(-10%)}to{opacity:1;transform:translate(0)}}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}@keyframes fadeOutUp{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(5%)}}@keyframes fadeOutDown{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-5%)}}@keyframes fadeOutLeft{0%{opacity:1;transform:translate(0)}to{opacity:0;transform:translate(5%)}}@keyframes fadeOutRight{0%{opacity:1;transform:translate(0)}to{opacity:0;transform:translate(-5%)}}.flip.transition.in,.flip.transition.out{animation-duration:.6s}.horizontal.flip.transition.in{animation-name:horizontalFlipIn}.horizontal.flip.transition.out{animation-name:horizontalFlipOut}.vertical.flip.transition.in{animation-name:verticalFlipIn}.vertical.flip.transition.out{animation-name:verticalFlipOut}@keyframes horizontalFlipIn{0%{transform:perspective(2000px) rotateY(-90deg);opacity:0}to{transform:perspective(2000px) rotateY(0);opacity:1}}@keyframes verticalFlipIn{0%{transform:perspective(2000px) rotateX(-90deg);opacity:0}to{transform:perspective(2000px) rotateX(0);opacity:1}}@keyframes horizontalFlipOut{0%{transform:perspective(2000px) rotateY(0);opacity:1}to{transform:perspective(2000px) rotateY(90deg);opacity:0}}@keyframes verticalFlipOut{0%{transform:perspective(2000px) rotateX(0);opacity:1}to{transform:perspective(2000px) rotateX(-90deg);opacity:0}}.scale.transition.in{animation-name:scaleIn}.scale.transition.out{animation-name:scaleOut}@keyframes scaleIn{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes scaleOut{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.9)}}.transition.fly{animation-duration:.6s;transition-timing-function:cubic-bezier(.215,.61,.355,1)}.transition.fly.in{animation-name:flyIn}.transition[class*="fly up"].in{animation-name:flyInUp}.transition[class*="fly down"].in{animation-name:flyInDown}.transition[class*="fly left"].in{animation-name:flyInLeft}.transition[class*="fly right"].in{animation-name:flyInRight}.transition.fly.out{animation-name:flyOut}.transition[class*="fly up"].out{animation-name:flyOutUp}.transition[class*="fly down"].out{animation-name:flyOutDown}.transition[class*="fly left"].out{animation-name:flyOutLeft}.transition[class*="fly right"].out{animation-name:flyOutRight}@keyframes flyIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}20%{transform:scale3d(1.1,1.1,1.1)}40%{transform:scale3d(.9,.9,.9)}60%{opacity:1;transform:scale3d(1.03,1.03,1.03)}80%{transform:scale3d(.97,.97,.97)}to{opacity:1;transform:scaleZ(1)}}@keyframes flyInUp{0%{opacity:0;transform:translate3d(0,1500px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes flyInDown{0%{opacity:0;transform:translate3d(0,-1500px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes flyInLeft{0%{opacity:0;transform:translate3d(1500px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes flyInRight{0%{opacity:0;transform:translate3d(-1500px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes flyOut{20%{transform:scale3d(.9,.9,.9)}50%,55%{opacity:1;transform:scale3d(1.1,1.1,1.1)}to{opacity:0;transform:scale3d(.3,.3,.3)}}@keyframes flyOutUp{20%{transform:translate3d(0,10px,0)}40%,45%{opacity:1;transform:translate3d(0,-20px,0)}to{opacity:0;transform:translate3d(0,2000px,0)}}@keyframes flyOutDown{20%{transform:translate3d(0,-10px,0)}40%,45%{opacity:1;transform:translate3d(0,20px,0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes flyOutRight{20%{opacity:1;transform:translate3d(20px,0,0)}to{opacity:0;transform:translate3d(-2000px,0,0)}}@keyframes flyOutLeft{20%{opacity:1;transform:translate3d(-20px,0,0)}to{opacity:0;transform:translate3d(2000px,0,0)}}.transition.slide.in,.transition[class*="slide down"].in{animation-name:slideInY;transform-origin:top center}.transition[class*="slide up"].in{animation-name:slideInY;transform-origin:bottom center}.transition[class*="slide left"].in{animation-name:slideInX;transform-origin:center right}.transition[class*="slide right"].in{animation-name:slideInX;transform-origin:center left}.transition.slide.out,.transition[class*="slide down"].out{animation-name:slideOutY;transform-origin:top center}.transition[class*="slide up"].out{animation-name:slideOutY;transform-origin:bottom center}.transition[class*="slide left"].out{animation-name:slideOutX;transform-origin:center right}.transition[class*="slide right"].out{animation-name:slideOutX;transform-origin:center left}@keyframes slideInY{0%{opacity:0;transform:scaleY(0)}to{opacity:1;transform:scaleY(1)}}@keyframes slideInX{0%{opacity:0;transform:scaleX(0)}to{opacity:1;transform:scaleX(1)}}@keyframes slideOutY{0%{opacity:1;transform:scaleY(1)}to{opacity:0;transform:scaleY(0)}}@keyframes slideOutX{0%{opacity:1;transform:scaleX(1)}to{opacity:0;transform:scaleX(0)}}.transition.swing{animation-duration:.8s}.transition[class*="swing down"].in{animation-name:swingInX;transform-origin:top center}.transition[class*="swing up"].in{animation-name:swingInX;transform-origin:bottom center}.transition[class*="swing left"].in{animation-name:swingInY;transform-origin:center right}.transition[class*="swing right"].in{animation-name:swingInY;transform-origin:center left}.transition.swing.out,.transition[class*="swing down"].out{animation-name:swingOutX;transform-origin:top center}.transition[class*="swing up"].out{animation-name:swingOutX;transform-origin:bottom center}.transition[class*="swing left"].out{animation-name:swingOutY;transform-origin:center right}.transition[class*="swing right"].out{animation-name:swingOutY;transform-origin:center left}@keyframes swingInX{0%{transform:perspective(1000px) rotateX(90deg);opacity:0}40%{transform:perspective(1000px) rotateX(-30deg);opacity:1}60%{transform:perspective(1000px) rotateX(15deg)}80%{transform:perspective(1000px) rotateX(-7.5deg)}to{transform:perspective(1000px) rotateX(0)}}@keyframes swingInY{0%{transform:perspective(1000px) rotateY(-90deg);opacity:0}40%{transform:perspective(1000px) rotateY(30deg);opacity:1}60%{transform:perspective(1000px) rotateY(-17.5deg)}80%{transform:perspective(1000px) rotateY(7.5deg)}to{transform:perspective(1000px) rotateY(0)}}@keyframes swingOutX{0%{transform:perspective(1000px) rotateX(0)}40%{transform:perspective(1000px) rotateX(-7.5deg)}60%{transform:perspective(1000px) rotateX(17.5deg)}80%{transform:perspective(1000px) rotateX(-30deg);opacity:1}to{transform:perspective(1000px) rotateX(90deg);opacity:0}}@keyframes swingOutY{0%{transform:perspective(1000px) rotateY(0)}40%{transform:perspective(1000px) rotateY(7.5deg)}60%{transform:perspective(1000px) rotateY(-10deg)}80%{transform:perspective(1000px) rotateY(30deg);opacity:1}to{transform:perspective(1000px) rotateY(-90deg);opacity:0}}.transition.zoom.in{animation-name:zoomIn}.transition.zoom.out{animation-name:zoomOut}@keyframes zoomIn{0%{opacity:1;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes zoomOut{0%{opacity:1;transform:scale(1)}to{opacity:1;transform:scale(0)}}.flash.transition{animation-duration:.75s;animation-name:flash}.shake.transition{animation-duration:.75s;animation-name:shake}.bounce.transition{animation-duration:.75s;animation-name:bounce}.tada.transition{animation-duration:.75s;animation-name:tada}.pulse.transition{animation-duration:.5s;animation-name:pulse}.jiggle.transition{animation-duration:.75s;animation-name:jiggle}.transition.glow{animation-duration:2s;animation-timing-function:cubic-bezier(.19,1,.22,1)}.transition.glow{animation-name:glow}@keyframes flash{0%,50%,to{opacity:1}25%,75%{opacity:0}}@keyframes shake{0%,to{transform:translate(0)}10%,30%,50%,70%,90%{transform:translate(-10px)}20%,40%,60%,80%{transform:translate(10px)}}@keyframes bounce{0%,20%,50%,80%,to{transform:translateY(0)}40%{transform:translateY(-30px)}60%{transform:translateY(-15px)}}@keyframes tada{0%{transform:scale(1)}10%,20%{transform:scale(.9) rotate(-3deg)}30%,50%,70%,90%{transform:scale(1.1) rotate(3deg)}40%,60%,80%{transform:scale(1.1) rotate(-3deg)}to{transform:scale(1) rotate(0)}}@keyframes pulse{0%{transform:scale(1);opacity:1}50%{transform:scale(.9);opacity:.7}to{transform:scale(1);opacity:1}}@keyframes jiggle{0%{transform:scaleZ(1)}30%{transform:scale3d(1.25,.75,1)}40%{transform:scale3d(.75,1.25,1)}50%{transform:scale3d(1.15,.85,1)}65%{transform:scale3d(.95,1.05,1)}75%{transform:scale3d(1.05,.95,1)}to{transform:scaleZ(1)}}@keyframes glow{0%{background-color:#fcfcfd}30%{background-color:#fff6cd}to{background-color:#fcfcfd}}.accordion-data-list{margin-bottom:1em;margin-top:1em}.accordion-data-list .ui.styled.accordion div[index="0"] .title{border-top:none}.accordion-list .accordion-header{text-align:right}.accordion-list .accordion-header .add-button{margin-left:5px}.accordion-list .accordion-header .input.search{display:inline-block}.accordion-list p.record-count{text-align:right;margin-top:10px}.accordion-list .footer{margin-top:15px}.accordion-list .sub-header{display:flex;align-items:center;justify-content:flex-end;padding:.75em 1em}.accordion-selector .ui.button.add-button{margin-left:10px}.arrow-buttons{padding-left:5px;padding-right:15px}.association-dropdown{display:flex;align-items:center;flex-wrap:wrap;width:100%}.association-dropdown .buttons{display:flex;flex-wrap:wrap;flex-grow:.1}.association-dropdown .dropdown-container{flex-grow:1}.association-dropdown .inline-dropdown{width:100%}.association-dropdown .ui.search.selection.dropdown>input.search{width:100%}.association-dropdown div[role=listbox] div[role=option] span.text{display:block}.association-dropdown div[role=alert]{max-width:100%}.ui.form.field .ui.input .association-dropdown input.dropdown-search-input,.ui.form .wide.field .ui.input .association-dropdown input.dropdown-search-input{width:100%}.ui.dropdown:not(.button)>.default.text{color:#5f5f5fdb}.audio-player.ui.modal>.content>audio{width:100%}.audio-player>.content>.ui.message>.content>p{word-break:break-all}.bibliography-list .sort-selector.ui.basic.buttons{margin-left:5px}.bibliography-search-input{display:flex;justify-content:center;margin-bottom:40px}.bibliography-search-input>.input{width:60%}.bibliography-search-input>.search-button.ui.button{margin-left:5px}.ui.breadcrumb:first-child{margin-bottom:1em;margin-top:.5em}.color-button.ui.button{border:1px solid rgba(34,36,38,.15);vertical-align:middle}.color-picker-modal.ui.modal{width:auto}.data-table .ui.table .actions-cell{white-space:nowrap;width:1px}.data-table .empty-button{display:inline;margin-left:5px;margin-right:4px}.data-table .empty-container{font-size:1.1em;padding:15px}.data-table .expandable{cursor:pointer}.data-table .expanded-panel{display:table-row}.data-table .footer{margin-top:10px}.data-table .header{margin-bottom:10px}.data-table .hidden{display:none}.data-table.ui.celled.table tr th{position:relative}.data-table.ui.celled.table tr td.actions-cell{white-space:nowrap}.date-input.ui.icon.input>i.icon.right{cursor:pointer;pointer-events:inherit;left:auto;right:1px}.date-input.ui.icon.input>input{padding-right:calc(22px + 1.1em)!important}.react-calendar{width:350px;max-width:100%;background:#fff;border:1px solid #a0a096;font-family:Arial,Helvetica,sans-serif;line-height:1.125em}.react-calendar--doubleView{width:700px}.react-calendar--doubleView .react-calendar__viewContainer{display:flex;margin:-.5em}.react-calendar--doubleView .react-calendar__viewContainer>*{width:50%;margin:.5em}.react-calendar,.react-calendar *,.react-calendar *:before,.react-calendar *:after{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.react-calendar button{margin:0;border:0;outline:none}.react-calendar button:enabled:hover{cursor:pointer}.react-calendar__navigation{display:flex;height:44px;margin-bottom:1em}.react-calendar__navigation button{min-width:44px;background:none}.react-calendar__navigation button:disabled{background-color:#f0f0f0}.react-calendar__navigation button:enabled:hover,.react-calendar__navigation button:enabled:focus{background-color:#e6e6e6}.react-calendar__month-view__weekdays{text-align:center;text-transform:uppercase;font-weight:700;font-size:.75em}.react-calendar__month-view__weekdays__weekday{padding:.5em}.react-calendar__month-view__weekNumbers .react-calendar__tile{display:flex;align-items:center;justify-content:center;font-size:.75em;font-weight:700}.react-calendar__month-view__days__day--weekend{color:#d10000}.react-calendar__month-view__days__day--neighboringMonth{color:#757575}.react-calendar__year-view .react-calendar__tile,.react-calendar__decade-view .react-calendar__tile,.react-calendar__century-view .react-calendar__tile{padding:2em .5em}.react-calendar__tile{max-width:100%;padding:10px 6.6667px;background:none;text-align:center;line-height:16px}.react-calendar__tile:disabled{background-color:#f0f0f0}.react-calendar__tile:enabled:hover,.react-calendar__tile:enabled:focus{background-color:#e6e6e6}.react-calendar__tile--now{background:#ffff76}.react-calendar__tile--now:enabled:hover,.react-calendar__tile--now:enabled:focus{background:#ffffa9}.react-calendar__tile--hasActive{background:#76baff}.react-calendar__tile--hasActive:enabled:hover,.react-calendar__tile--hasActive:enabled:focus{background:#a9d4ff}.react-calendar__tile--active{background:#006edc;color:#fff}.react-calendar__tile--active:enabled:hover,.react-calendar__tile--active:enabled:focus{background:#1087ff}.react-calendar--selectRange .react-calendar__tile--hover{background-color:#e6e6e6}div.react-calendar{margin-top:3em;background:#fff;color:#0009!important;border:none;border-radius:.28571429rem;text-transform:none;text-shadow:none;box-shadow:0 0 0 1px #22242626 inset;padding:.58928571em}.react-calendar,.react-calendar button{font-family:Lato,Helvetica Neue,Arial,Helvetica,sans-serif}.react-calendar button{background:transparent none;color:#000000de;font-weight:400;border-radius:.28571429rem;text-transform:none;text-shadow:none}.react-calendar button:focus,.react-calendar .react-calendar__navigation button:enabled:focus{background:transparent none}.react-calendar button:enabled:hover,.react-calendar .react-calendar__navigation button:enabled:hover{background:#fff;color:#0009}.react-calendar .react-calendar__month-view__days__day--neighboringMonth{color:#0000008a}.react-calendar abbr[title]{text-decoration:none}.react-calendar .react-calendar__tile--now{background-color:#fbbd08;color:#000}.react-calendar .react-calendar__tile--now:enabled:hover{background-color:#eaae00;color:#fff}.react-calendar .react-calendar__month-view__days__day--weekend{color:#db2828}.react-calendar .react-calendar__month-view__days__day--weekend:enabled:hover{color:#d01919}.react-calendar .react-calendar__tile--active{background-color:#1d77bb;color:#fff}.react-calendar .react-calendar__tile--active:enabled:hover{background-color:#1678c2;color:#fff}.data-view-modal.ui.form .field span.label{display:block;font-weight:700}.dropdown-button.ui.buttons{font-size:unset}.edit-modal-actions .saving.ui.inline.loader.active{margin-left:4px;margin-top:-2px}.ui.form .fields .wide.field.inline-dropdown{margin-right:25px}.edit-page .button-container{text-align:right}.edit-page .ui.menu:not(.vertical) .item>.button{margin-right:.25em}.facet.ui.accordion{padding-bottom:1em}.facet.ui.accordion.hidden{display:none}.facet.ui.accordion>.title>.facet-title{display:flex;justify-content:space-between}.facet.ui.accordion>.title>.facet-title .header{margin-bottom:0}.facet.ui.accordion>.title:not(.ui){padding-top:0}.facet.ui.accordion .content{margin-bottom:1em}.embedded-list{width:100%}.embedded-list .list-buttons{margin-top:10px}.facet-list .toggleable{display:block;margin-top:1em}.rc-slider{position:relative;width:100%;height:14px;padding:5px 0;border-radius:6px;touch-action:none;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.rc-slider *{box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.rc-slider-rail{position:absolute;width:100%;height:4px;background-color:#e9e9e9;border-radius:6px}.rc-slider-track,.rc-slider-tracks{position:absolute;height:4px;background-color:#abe2fb;border-radius:6px}.rc-slider-track-draggable{z-index:1;box-sizing:content-box;background-clip:content-box;border-top:5px solid rgba(0,0,0,0);border-bottom:5px solid rgba(0,0,0,0);transform:translateY(-5px)}.rc-slider-handle{position:absolute;z-index:1;width:14px;height:14px;margin-top:-5px;background-color:#fff;border:solid 2px #96dbfa;border-radius:50%;cursor:pointer;cursor:-webkit-grab;cursor:grab;opacity:.8;touch-action:pan-x}.rc-slider-handle-dragging.rc-slider-handle-dragging.rc-slider-handle-dragging{border-color:#57c5f7;box-shadow:0 0 0 5px #96dbfa}.rc-slider-handle:focus{outline:none;box-shadow:none}.rc-slider-handle:focus-visible{border-color:#2db7f5;box-shadow:0 0 0 3px #96dbfa}.rc-slider-handle-click-focused:focus{border-color:#96dbfa;box-shadow:unset}.rc-slider-handle:hover{border-color:#57c5f7}.rc-slider-handle:active{border-color:#57c5f7;box-shadow:0 0 5px #57c5f7;cursor:-webkit-grabbing;cursor:grabbing}.rc-slider-mark{position:absolute;top:18px;left:0;width:100%;font-size:12px}.rc-slider-mark-text{position:absolute;display:inline-block;color:#999;text-align:center;vertical-align:middle;cursor:pointer}.rc-slider-mark-text-active{color:#666}.rc-slider-step{position:absolute;width:100%;height:4px;background:transparent}.rc-slider-dot{position:absolute;bottom:-2px;width:8px;height:8px;vertical-align:middle;background-color:#fff;border:2px solid #e9e9e9;border-radius:50%;cursor:pointer}.rc-slider-dot-active{border-color:#96dbfa}.rc-slider-dot-reverse{margin-right:-4px}.rc-slider-disabled{background-color:#e9e9e9}.rc-slider-disabled .rc-slider-track{background-color:#ccc}.rc-slider-disabled .rc-slider-handle,.rc-slider-disabled .rc-slider-dot{background-color:#fff;border-color:#ccc;box-shadow:none;cursor:not-allowed}.rc-slider-disabled .rc-slider-mark-text,.rc-slider-disabled .rc-slider-dot{cursor:not-allowed!important}.rc-slider-vertical{width:14px;height:100%;padding:0 5px}.rc-slider-vertical .rc-slider-rail{width:4px;height:100%}.rc-slider-vertical .rc-slider-track{bottom:0;left:5px;width:4px}.rc-slider-vertical .rc-slider-track-draggable{border-top:0;border-bottom:0;border-right:5px solid rgba(0,0,0,0);border-left:5px solid rgba(0,0,0,0);transform:translate(-5px)}.rc-slider-vertical .rc-slider-handle{position:absolute;z-index:1;margin-top:0;margin-left:-5px;touch-action:pan-y}.rc-slider-vertical .rc-slider-mark{top:0;left:18px;height:100%}.rc-slider-vertical .rc-slider-step{width:4px;height:100%}.rc-slider-vertical .rc-slider-dot{margin-left:-2px}.rc-slider-tooltip-zoom-down-enter,.rc-slider-tooltip-zoom-down-appear,.rc-slider-tooltip-zoom-down-leave{display:block!important;animation-duration:.3s;animation-fill-mode:both;animation-play-state:paused}.rc-slider-tooltip-zoom-down-enter.rc-slider-tooltip-zoom-down-enter-active,.rc-slider-tooltip-zoom-down-appear.rc-slider-tooltip-zoom-down-appear-active{animation-name:rcSliderTooltipZoomDownIn;animation-play-state:running}.rc-slider-tooltip-zoom-down-leave.rc-slider-tooltip-zoom-down-leave-active{animation-name:rcSliderTooltipZoomDownOut;animation-play-state:running}.rc-slider-tooltip-zoom-down-enter,.rc-slider-tooltip-zoom-down-appear{transform:scale(0);animation-timing-function:cubic-bezier(.23,1,.32,1)}.rc-slider-tooltip-zoom-down-leave{animation-timing-function:cubic-bezier(.755,.05,.855,.06)}@keyframes rcSliderTooltipZoomDownIn{0%{transform:scale(0);transform-origin:50% 100%;opacity:0}to{transform:scale(1);transform-origin:50% 100%}}@keyframes rcSliderTooltipZoomDownOut{0%{transform:scale(1);transform-origin:50% 100%}to{transform:scale(0);transform-origin:50% 100%;opacity:0}}.rc-slider-tooltip{position:absolute;top:-9999px;left:-9999px;visibility:visible;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.rc-slider-tooltip *{box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.rc-slider-tooltip-hidden{display:none}.rc-slider-tooltip-placement-top{padding:4px 0 8px}.rc-slider-tooltip-inner{min-width:24px;height:24px;padding:6px 2px;color:#fff;font-size:12px;line-height:1;text-align:center;text-decoration:none;background-color:#6c6c6c;border-radius:6px;box-shadow:0 0 4px #d9d9d9}.rc-slider-tooltip-arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid}.rc-slider-tooltip-placement-top .rc-slider-tooltip-arrow{bottom:4px;left:50%;margin-left:-4px;border-width:4px 4px 0;border-top-color:#6c6c6c}.facet-slider>.ui.grid{margin-top:0}.facet-slider .granularity-dropdown{margin-bottom:16px}.facet-slider>.range-container{padding-left:10px;padding-right:10px}.file-upload{margin-top:10px}.file-upload .file-dropzone{align-items:center;border:2px dashed rgb(187,186,186);cursor:pointer;display:flex;font-size:16px;justify-content:center;outline:none;padding:15px;text-align:center}.file-upload .file-dropzone .icon{color:#1d77bb}.file-upload .file-dropzone-text{padding:10px}.file-upload .file-dropzone-text .link-text{color:#1d77bb}.file-upload .file-input{display:none}.fuzzy-date-modal .accuracy-container .ui.radio.checkbox{padding-right:10px}.fuzzy-date-modal .button-container{margin-left:8px;margin-top:23px}.horizontal-cards .ui.cards{display:flex;flex-direction:row;flex-wrap:nowrap;overflow:hidden;padding-top:.5em;padding-bottom:.5em}.horizontal-cards .ui.cards::-webkit-scrollbar{width:0!important;display:none}.horizontal-cards .ui.cards>.card>.content{flex-grow:0}.horizontal-cards .ui.cards>.card>.content>.header{margin-bottom:0;margin-top:0}.horizontal-cards .ui.cards>.card>.content.more{display:flex;flex-direction:column;flex-grow:1;justify-content:center;align-items:center}.horizontal-cards .ui.cards>.card>.content.more>.header{margin-top:.5em}.horizontal-cards .button-container{margin-top:.5em}.horizontal-cards .button-container .pagination{float:right}.horizontal-cards .clearFloat{clear:both}.horizontal-cards .ui.cards>.card>.image-placeholder{aspect-ratio:1 / 1}.image-carousel>.content{height:100%;width:100%}.image-carousel>.content>.ui.grid{height:100%}.image-carousel>.content>.ui.grid>.row.image-content{flex-grow:1}.image-carousel>.content>.ui.grid>.row.image-content>.column{display:flex;justify-content:center;align-items:center}.image-carousel>.content>.ui.grid>.row.image-content>.column.image-container{flex-grow:1}.image-carousel>.content>.ui.grid>.row.image-content>.column.image-container img{width:100%;height:auto;max-height:70vh;object-fit:contain}.image-carousel .ui.button,.image-carousel .ui.button:hover{border:none;background:none;color:#fff}.item-collection>.ui.loader.active{position:fixed}.item-list{margin:1em 0}.item-list .ui.icon.header{display:block}.item-list .ui.items>.item>.checkbox-container{display:flex;align-items:center;justify-content:flex-end;padding-right:100px;width:20%}.field.keyboard-field .hg-candidate-box{top:56px;left:4px}.lazy-audio.ui.segment{display:inline-block!important;max-width:100%;padding:0}.lazy-audio.ui.segment .buttons{display:flex;flex-direction:column}.lazy-audio.ui.segment .buttons .ui.button{margin-top:5px;margin-bottom:5px}.lazy-audio .placeholder-image.ui.image{background-color:#f9fafb;box-shadow:0 1px 3px #d4d4d5,0 0 0 1px #d4d4d5;padding-top:20%;padding-bottom:20%;text-align:center}.lazy-document.ui.segment{display:inline-block!important;max-width:100%;padding:0}.lazy-document.ui.segment .buttons{display:flex;flex-direction:column;z-index:1000}.lazy-document.ui.segment .buttons .ui.button{margin-top:5px;margin-bottom:5px}.lazy-document .placeholder-image.ui.image{background-color:#f9fafb;box-shadow:0 1px 3px #d4d4d5,0 0 0 1px #d4d4d5;padding-top:20%;padding-bottom:20%;text-align:center}.lazy-document .react-pdf__Page__canvas{width:100%!important;height:100%!important}.lazy-document>.image.hidden{display:none}.pdf-container{width:200px;height:300px}.lazy-image.ui.segment{display:inline-block!important;max-width:100%;padding:0}.lazy-image.ui.segment .buttons{display:flex;flex-direction:column}.lazy-image.ui.segment .buttons .ui.button{margin-top:5px;margin-bottom:5px}.lazy-image .placeholder-image.ui.image{background-color:#f9fafb;box-shadow:0 1px 3px #d4d4d5,0 0 0 1px #d4d4d5;padding-top:20%;padding-bottom:20%;text-align:center}.lazy-image>.image.hidden{display:none}.ui.button.basic.compact.link-button{background:none;border:none;box-shadow:none;font-weight:400;margin:0em 0em .28571429rem;padding:0}.link-label+.link-button.ui.button.basic.compact{float:right;padding-right:15px}.ui.form .field>label.link-label{display:inline-block}.lazy-video.ui.segment{display:inline-block!important;max-width:100%;padding:0}.lazy-video.ui.segment .buttons{display:flex;flex-direction:column}.lazy-video.ui.segment .buttons .ui.button{margin-top:5px;margin-bottom:5px}.lazy-video .placeholder-image.ui.image{background-color:#f9fafb;box-shadow:0 1px 3px #d4d4d5,0 0 0 1px #d4d4d5;padding-top:20%;padding-bottom:20%;text-align:center}.lazy-video.ui.segment>.image>video{display:table;width:100%}.lazy-video>.image.hidden{display:none}.header .flex-end-menu{justify-content:flex-end}.header .list-header-menu,.header .per-page-menu{flex-shrink:0}.header .ui.grid.filter-labels>.row:first-child{padding-bottom:0}.header .ui.grid>.row:nth-child(2){padding-top:0}.listLoader.ui.segment{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);padding:50px;z-index:999}.list-table .table-container{margin-top:20px}.login-modal .ui.grid>.column>.row{margin:15px 150px 0}.login-modal .ui.input.form-field{display:block}.masonryGrid{display:flex}.masonryGrid>.column{flex:1}.masonryGrid>.column>.itemContainer{display:flex;justify-content:center;align-items:center;background:#efefef}.masonryGrid .placeholderWrapper{height:100%}.masonryGrid>.column>.itemContainer>.item{position:relative;width:100%;z-index:500}.masonryGrid>.column>.itemContainer>.item .favoriteContainer{position:absolute;bottom:1em;right:1em;z-index:600}.masonryGrid>.column>.itemContainer>.item .extraContainer{position:absolute;bottom:1em;left:1em}.masonryGrid>.column>.itemContainer>.item .image{height:100%;object-fit:cover;width:100%}.masonryGrid>.column>.itemContainer>.item .ui.transition{display:flex!important;z-index:500}.mediaGallery.ui.page.dimmer{display:flex;flex-direction:column;justify-content:center}.mediaGallery.ui.page.dimmer .imageContainer{position:relative;flex-grow:1}.mediaGallery.ui.page.dimmer .controls{position:absolute}.mediaGallery.ui.page.dimmer .left{left:1em}.mediaGallery.ui.page.dimmer .right{right:1em}.mediaGallery.ui.page.dimmer .top{top:1em}.mediaGallery.ui.page.dimmer .middle{top:50%}.mediaGallery.ui.page.transition>.content{display:flex;flex-direction:column;justify-content:center;align-items:center}.mediaGrid{position:relative}.mediaGrid .grid1{display:grid;grid-template-columns:repeat(1,1fr);grid-gap:10px;width:100%}.mediaGrid .grid2{display:grid;grid-template-columns:repeat(2,1fr);grid-gap:10px;width:100%}.mediaGrid .grid3{display:grid;grid-template-columns:repeat(4,1fr);grid-template-rows:repeat(2,235px);grid-gap:10px;width:100%}.mediaGrid .grid3 .mediaImage:first-child{grid-column:span 2;grid-row:span 2}.mediaGrid .grid3 .mediaImage{grid-column:span 2}.mediaGrid .grid4{display:grid;grid-template-columns:repeat(4,1fr);grid-template-rows:repeat(2,235px);grid-gap:10px;width:100%}.mediaGrid .grid4 .mediaImage:first-child{grid-column:span 2;grid-row:span 2}.mediaGrid .grid4 .mediaImage:nth-child(4){grid-column:span 2}.mediaGrid .grid5{display:grid;grid-template-columns:repeat(4,1fr);grid-gap:10px;width:100%}.mediaGrid .grid5 .mediaImage:first-child{grid-column:span 2;grid-row:span 2}.mediaGrid .mediaImage{position:relative}.mediaGrid .mediaImage div{height:100%;width:100%}.mediaList .ui.cards>.card>.meta{padding:.5em}.modal-dropdown{width:90%}.modal-dropdown .buttons{width:10%}.modal-dropdown.ui.search.selection.dropdown>input.search{width:100%}.play-button.ui.button{opacity:.7}.photo-viewer{padding:30px}.photo-viewer>.content>.ui.message>.content>p{word-break:break-all}.nested-accordion .ui.icon.button.accordion-button{background-color:transparent;display:inline-block}.nested-accordion .ui.icon.button.accordion-button.hidden i{visibility:hidden}.nested-accordion .ui.icon.button.inverted.accordion-button{box-shadow:none!important;color:#fff}.nested-accordion.ui.styled.accordion .title{color:#0009}.nested-accordion .title>.container{display:flex;flex-direction:row;justify-content:space-between;align-items:center}.nested-accordion .title>.container>div:first-child{flex-grow:1;white-space:nowrap}.nested-accordion .title>.container>div:first-child>.item-container{display:inline-block;width:100%}.nested-accordion .title>.container>.right-container{margin-left:1em;text-align:right;display:flex;align-items:center}.nested-accordion .title>.container>.right-container>.row-select-checkbox{margin-left:1.5em}.remote-dropdown .extra-option{opacity:.5}.ui.remote-dropdown .menu .item{display:flex;flex-direction:row-reverse;justify-content:flex-end}.ui.remote-dropdown .menu .item .description{justify-self:flex-start}.selectize-header .ui.button.selected{margin:3px}.selectize .add-button.ui.button{margin-left:10px}.selectize .ui.primary.button.button-selected{margin:5px}.selectize .empty{opacity:.87}.selectize-image-header.ui.segment .container{display:flex;flex-direction:row;align-items:center}.selectize-image-header.ui.segment .container>.ui.cards{display:flex;flex-direction:row;flex-grow:1;margin:0em .2rem}.selectize-image-header.ui.segment>.bottom-container{display:flex;flex-direction:row;justify-content:space-between;align-items:center;width:100%}.selectize-image-header.ui.segment>.bottom-container .ui.button.link{box-shadow:0 0;-moz-box-shadow:0 0;-webkit-box-shadow:0 0}.selectize-image-header.ui.segment .container>.ui.cards>.ui.card>.content{word-break:break-word}.selectize-image-header.ui.segment .container>.ui.cards>.ui.card>.content>.meta{font-size:.7em}.selectize-image-header.ui.segment .container>.ui.cards>.ui.card>.image{aspect-ratio:1;object-fit:cover;width:100%}.selectize-image-header.ui.segment .container>.ui.cards>.ui.card>.ui.segment.placeholder{align-items:center;aspect-ratio:1;margin-bottom:0;max-width:100%;min-height:unset}.selectize-image-header.ui.segment .container>.ui.cards>.ui.card>.ui.segment.placeholder>.icon{color:#000000de;height:unset}.simple-edit-page.ui.grid{padding-bottom:2.5em}.simple-edit-page .menu .item.button-container>.button{margin-right:.25em}.tabbed-modal.ui .modal-header .ui.menu{max-width:100%;overflow:auto;padding:5px 0}.tabbed-modal.ui .modal-header.inline-header .ui.menu{display:inline-flex;margin-left:30px}.tabbed-modal.ui .modal-header.inline-header .ui.header{display:inline}.toaster.ui.message{position:fixed;top:0;right:0;left:0;margin:auto;width:30%;z-index:999}.video-player-button{height:100%;left:0;position:absolute;top:0;width:100%;z-index:2}.video-player-button>div:first-child{align-items:center;display:flex;height:100%;justify-content:center;width:100%}.video-player video{width:100%}.video-player>.content>.ui.message>.content>p{word-break:break-all}.video-frame-selector video{width:100%}.column-resize{position:absolute;top:0;bottom:0;right:0;cursor:col-resize;width:5px;padding:5px}.data-table-column-selector .configure-button.ui.icon.button>.icon{vertical-align:middle}.data-table-column-selector .ui.dropdown.open-right>.menu{top:100%;bottom:auto;right:0;left:auto}.file-upload-status.ui.label>.loader{margin-right:1em}.file-upload-progress{display:flex;align-items:center}.file-upload-progress>.progress-container{display:flex;flex-direction:column;margin-left:20px;width:100%}.file-upload-progress>.progress-container>.ui.header{display:flex;align-items:flex-end}.file-upload-progress>.progress-container>.ui.header>.content{margin-right:40px}.file-upload-progress>.progress-container>.progress{margin-bottom:0}.lazy-loader{background-color:#f9fafb;box-shadow:0 1px 3px #d4d4d5,0 0 0 1px #d4d4d5;padding-top:20%;padding-bottom:20%;text-align:center}.filter-labels{margin-top:1em}.ui.form .creator-field.fields{align-items:end}.ui.form .creator-field.fields>.field.flex{flex-grow:1}.ui.form .creator-field.fields>.field.flex>label{display:flex}/*! * * simple-keyboard v3.0.22 * https://github.com/hodgef/simple-keyboard diff --git a/docs/assets/preview-VF71Pp15.js b/docs/assets/preview-ClejsdtK.js similarity index 50% rename from docs/assets/preview-VF71Pp15.js rename to docs/assets/preview-ClejsdtK.js index 44a79554..693b05ec 100644 --- a/docs/assets/preview-VF71Pp15.js +++ b/docs/assets/preview-ClejsdtK.js @@ -1,7 +1,7 @@ -import{_ as e}from"./iframe-ovyJW9VA.js";import"../sb-preview/runtime.js";var a={docs:{renderer:async()=>{let{DocsRenderer:r}=await e(()=>import("./DocsRenderer-NNNQARDV-e71qsaWv.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18]),import.meta.url);return new r}}};export{a as parameters}; +import{_ as e}from"./iframe-BQtATEn0.js";import"../sb-preview/runtime.js";var a={docs:{renderer:async()=>{let{DocsRenderer:r}=await e(()=>import("./DocsRenderer-NNNQARDV-C740RQnY.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18]),import.meta.url);return new r}}};export{a as parameters}; function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["./DocsRenderer-NNNQARDV-e71qsaWv.js","./chunk-HLWAVYOI-CFPuBJI5.js","./iframe-ovyJW9VA.js","./index-CBqU2yxZ.js","./_commonjsHelpers-BosuxZz1.js","./react-18-DnM9deRA.js","./index-DZGZymok.js","./pickBy-CU2rOOKe.js","./mapValues-CZh2vnSw.js","./_commonjs-dynamic-modules-TDtrdbi3.js","./index-Cw1G72V2.js","./extends-CCbyfPlC.js","./assertThisInitialized-B9jnkVVz.js","./inheritsLoose-1HkgTRWY.js","./setPrototypeOf-DgZC2w_0.js","./getPrototypeOf-BYVhAdwF.js","./cloneDeep-kl2wD128.js","./index-CKJfshIT.js","./index-CeKoIcWT.js"] + __vite__mapDeps.viteFileDeps = ["./DocsRenderer-NNNQARDV-C740RQnY.js","./chunk-HLWAVYOI-DX5qqaYu.js","./iframe-BQtATEn0.js","./index-CBqU2yxZ.js","./_commonjsHelpers-BosuxZz1.js","./react-18-DnM9deRA.js","./index-DZGZymok.js","./pickBy-Us6u5-To.js","./mapValues-LQZI9uWW.js","./_commonjs-dynamic-modules-TDtrdbi3.js","./index-Cw1G72V2.js","./extends-CCbyfPlC.js","./assertThisInitialized-B9jnkVVz.js","./inheritsLoose-1HkgTRWY.js","./setPrototypeOf-DgZC2w_0.js","./getPrototypeOf-BYVhAdwF.js","./cloneDeep-C80tdQ4I.js","./index-CKJfshIT.js","./index-mVz13F_n.js"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } diff --git a/docs/assets/preview-Sz5pvSEA.js b/docs/assets/preview-VCSZH52V.js similarity index 68% rename from docs/assets/preview-Sz5pvSEA.js rename to docs/assets/preview-VCSZH52V.js index 4ef39a10..910c46a8 100644 --- a/docs/assets/preview-Sz5pvSEA.js +++ b/docs/assets/preview-VCSZH52V.js @@ -1 +1 @@ -import{j as t}from"./jsx-runtime-BTCK_S7S.js";import{e as m}from"./chunk-HLWAVYOI-CFPuBJI5.js";import{r as s}from"./index-CBqU2yxZ.js";import{M as n}from"./ModalContext-Bu-D9kD-.js";import"./iframe-ovyJW9VA.js";import"../sb-preview/runtime.js";import"./react-18-DnM9deRA.js";import"./index-DZGZymok.js";import"./_commonjsHelpers-BosuxZz1.js";import"./pickBy-CU2rOOKe.js";import"./mapValues-CZh2vnSw.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./index-Cw1G72V2.js";import"./extends-CCbyfPlC.js";import"./assertThisInitialized-B9jnkVVz.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getPrototypeOf-BYVhAdwF.js";import"./cloneDeep-kl2wD128.js";import"./index-CKJfshIT.js";import"./index-CeKoIcWT.js";var o={BASE_URL:"./",MODE:"production",DEV:!1,PROD:!0,SSR:!1,STORYBOOK:"true"};let i;o.A11Y_TAGS&&(i={config:{runOnly:{type:"tag",values:o.A11Y_TAGS.split(",")}}});const g={a11y:i,docs:{container:({children:e,context:p})=>{const r=s.useRef();return t.jsx(n.Provider,{value:r==null?void 0:r.current,children:t.jsx(m,{context:p,children:t.jsx("div",{ref:r,children:e})})})}},options:{storySort:{order:["Overview","Components"]}}};export{g as parameters}; +import{j as t}from"./jsx-runtime-BTCK_S7S.js";import{e as m}from"./chunk-HLWAVYOI-DX5qqaYu.js";import{r as s}from"./index-CBqU2yxZ.js";import{M as n}from"./ModalContext-Bu-D9kD-.js";import"./iframe-BQtATEn0.js";import"../sb-preview/runtime.js";import"./react-18-DnM9deRA.js";import"./index-DZGZymok.js";import"./_commonjsHelpers-BosuxZz1.js";import"./pickBy-Us6u5-To.js";import"./mapValues-LQZI9uWW.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./index-Cw1G72V2.js";import"./extends-CCbyfPlC.js";import"./assertThisInitialized-B9jnkVVz.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getPrototypeOf-BYVhAdwF.js";import"./cloneDeep-C80tdQ4I.js";import"./index-CKJfshIT.js";import"./index-mVz13F_n.js";var o={BASE_URL:"./",MODE:"production",DEV:!1,PROD:!0,SSR:!1,STORYBOOK:"true"};let i;o.A11Y_TAGS&&(i={config:{runOnly:{type:"tag",values:o.A11Y_TAGS.split(",")}}});const g={a11y:i,docs:{container:({children:e,context:p})=>{const r=s.useRef();return t.jsx(n.Provider,{value:r==null?void 0:r.current,children:t.jsx(m,{context:p,children:t.jsx("div",{ref:r,children:e})})})}},options:{storySort:{order:["Overview","Components"]}}};export{g as parameters}; diff --git a/docs/assets/preview-HMMJgXCc.js b/docs/assets/preview-ZhVzadk2.js similarity index 94% rename from docs/assets/preview-HMMJgXCc.js rename to docs/assets/preview-ZhVzadk2.js index 3374357d..ac3eb279 100644 --- a/docs/assets/preview-HMMJgXCc.js +++ b/docs/assets/preview-ZhVzadk2.js @@ -1,4 +1,4 @@ -import{_ as f}from"./iframe-ovyJW9VA.js";import"../sb-preview/runtime.js";const{global:N}=__STORYBOOK_MODULE_GLOBAL__,{addons:T}=__STORYBOOK_MODULE_PREVIEW_API__;var n="storybook/a11y",y=`${n}/result`,U=`${n}/request`,g=`${n}/running`,p=`${n}/error`,w=`${n}/manual`,a={RESULT:y,REQUEST:U,RUNNING:g,ERROR:p,MANUAL:w},{document:L,window:d}=N,r=T.getChannel(),o=!1,l,A=async e=>{let{manual:t}=await O(e);t||await _(e)},_=async e=>{l=e;try{let t=await O(e);if(!o){o=!0,r.emit(a.RUNNING);let i=(await f(()=>import("./axe-v-VkGQKA.js").then(S=>S.a),__vite__mapDeps([0,1]),import.meta.url)).default,{element:R="#storybook-root",config:s,options:E={}}=t,u=L.querySelector(R);if(!u)return;i.reset(),s&&i.configure(s);let m=await i.run(u,E),c=JSON.parse(JSON.stringify(m));l===e?r.emit(a.RESULT,c):(o=!1,_(l))}}catch(t){r.emit(a.ERROR,t)}finally{o=!1}},O=async e=>{let{parameters:t}=await d.__STORYBOOK_STORY_STORE__.loadStory({storyId:e})||{};return t.a11y||{config:{},options:{}}};r.on(a.REQUEST,A);r.on(a.MANUAL,_); +import{_ as f}from"./iframe-BQtATEn0.js";import"../sb-preview/runtime.js";const{global:N}=__STORYBOOK_MODULE_GLOBAL__,{addons:T}=__STORYBOOK_MODULE_PREVIEW_API__;var n="storybook/a11y",y=`${n}/result`,U=`${n}/request`,g=`${n}/running`,p=`${n}/error`,w=`${n}/manual`,a={RESULT:y,REQUEST:U,RUNNING:g,ERROR:p,MANUAL:w},{document:L,window:d}=N,r=T.getChannel(),o=!1,l,A=async e=>{let{manual:t}=await O(e);t||await _(e)},_=async e=>{l=e;try{let t=await O(e);if(!o){o=!0,r.emit(a.RUNNING);let i=(await f(()=>import("./axe-v-VkGQKA.js").then(S=>S.a),__vite__mapDeps([0,1]),import.meta.url)).default,{element:R="#storybook-root",config:s,options:E={}}=t,u=L.querySelector(R);if(!u)return;i.reset(),s&&i.configure(s);let m=await i.run(u,E),c=JSON.parse(JSON.stringify(m));l===e?r.emit(a.RESULT,c):(o=!1,_(l))}}catch(t){r.emit(a.ERROR,t)}finally{o=!1}},O=async e=>{let{parameters:t}=await d.__STORYBOOK_STORY_STORE__.loadStory({storyId:e})||{};return t.a11y||{config:{},options:{}}};r.on(a.REQUEST,A);r.on(a.MANUAL,_); function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { __vite__mapDeps.viteFileDeps = ["./axe-v-VkGQKA.js","./_commonjsHelpers-BosuxZz1.js"] diff --git a/docs/assets/syntaxhighlighter-B5GMVT5T-vdlkRt9a.js b/docs/assets/syntaxhighlighter-B5GMVT5T-B1t35bt5.js similarity index 56% rename from docs/assets/syntaxhighlighter-B5GMVT5T-vdlkRt9a.js rename to docs/assets/syntaxhighlighter-B5GMVT5T-B1t35bt5.js index 2ad14ecf..23fe1445 100644 --- a/docs/assets/syntaxhighlighter-B5GMVT5T-vdlkRt9a.js +++ b/docs/assets/syntaxhighlighter-B5GMVT5T-B1t35bt5.js @@ -1 +1 @@ -import{S,c as b,s as F}from"./chunk-HLWAVYOI-CFPuBJI5.js";import"./iframe-ovyJW9VA.js";import"../sb-preview/runtime.js";import"./index-CBqU2yxZ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./react-18-DnM9deRA.js";import"./index-DZGZymok.js";import"./pickBy-CU2rOOKe.js";import"./mapValues-CZh2vnSw.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./index-Cw1G72V2.js";import"./extends-CCbyfPlC.js";import"./assertThisInitialized-B9jnkVVz.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getPrototypeOf-BYVhAdwF.js";import"./cloneDeep-kl2wD128.js";import"./index-CKJfshIT.js";import"./index-CeKoIcWT.js";export{S as SyntaxHighlighter,b as createCopyToClipboardFunction,F as default}; +import{S,c as b,s as F}from"./chunk-HLWAVYOI-DX5qqaYu.js";import"./iframe-BQtATEn0.js";import"../sb-preview/runtime.js";import"./index-CBqU2yxZ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./react-18-DnM9deRA.js";import"./index-DZGZymok.js";import"./pickBy-Us6u5-To.js";import"./mapValues-LQZI9uWW.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./index-Cw1G72V2.js";import"./extends-CCbyfPlC.js";import"./assertThisInitialized-B9jnkVVz.js";import"./inheritsLoose-1HkgTRWY.js";import"./setPrototypeOf-DgZC2w_0.js";import"./getPrototypeOf-BYVhAdwF.js";import"./cloneDeep-C80tdQ4I.js";import"./index-CKJfshIT.js";import"./index-mVz13F_n.js";export{S as SyntaxHighlighter,b as createCopyToClipboardFunction,F as default}; diff --git a/docs/iframe.html b/docs/iframe.html index 98179d12..79b9b77e 100644 --- a/docs/iframe.html +++ b/docs/iframe.html @@ -359,7 +359,7 @@ } - + diff --git a/docs/project.json b/docs/project.json index 5e05e906..a28a27b1 100644 --- a/docs/project.json +++ b/docs/project.json @@ -1 +1 @@ -{"generatedAt":1709570362257,"hasCustomBabel":true,"hasCustomWebpack":false,"hasStaticDirs":false,"hasStorybookEslint":false,"refCount":0,"monorepo":"Workspaces","packageManager":{"type":"yarn","version":"1.22.21"},"preview":{"usesGlobals":false},"framework":{"name":"@storybook/react-vite","options":{}},"builder":"@storybook/builder-vite","renderer":"@storybook/react","storybookVersion":"7.6.17","storybookVersionSpecifier":"^7.6.17","language":"javascript","storybookPackages":{"@storybook/addons":{"version":"7.6.17"},"@storybook/api":{"version":"7.6.17"},"@storybook/builder-vite":{"version":"7.6.17"},"@storybook/cli":{"version":"7.6.17"},"@storybook/components":{"version":"7.6.17"},"@storybook/core-events":{"version":"7.6.17"},"@storybook/react":{"version":"7.6.17"},"@storybook/react-vite":{"version":"7.6.17"},"@storybook/react-webpack5":{"version":"7.6.17"},"@storybook/theming":{"version":"7.6.17"},"storybook":{"version":"7.6.10"}},"addons":{"@storybook/addon-a11y":{"version":"7.6.17"},"@storybook/addon-actions":{"version":"7.6.17"},"@storybook/addon-docs":{"version":"7.6.17"},"@storybook/addon-knobs":{"version":"7.0.2"},"@storybook/addon-links":{"version":"7.6.17"}}} +{"generatedAt":1709671556924,"hasCustomBabel":true,"hasCustomWebpack":false,"hasStaticDirs":false,"hasStorybookEslint":false,"refCount":0,"monorepo":"Workspaces","packageManager":{"type":"yarn","version":"1.22.21"},"preview":{"usesGlobals":false},"framework":{"name":"@storybook/react-vite","options":{}},"builder":"@storybook/builder-vite","renderer":"@storybook/react","storybookVersion":"7.6.17","storybookVersionSpecifier":"^7.6.17","language":"javascript","storybookPackages":{"@storybook/addons":{"version":"7.6.17"},"@storybook/api":{"version":"7.6.17"},"@storybook/builder-vite":{"version":"7.6.17"},"@storybook/cli":{"version":"7.6.17"},"@storybook/components":{"version":"7.6.17"},"@storybook/core-events":{"version":"7.6.17"},"@storybook/react":{"version":"7.6.17"},"@storybook/react-vite":{"version":"7.6.17"},"@storybook/react-webpack5":{"version":"7.6.17"},"@storybook/theming":{"version":"7.6.17"},"storybook":{"version":"7.6.10"}},"addons":{"@storybook/addon-a11y":{"version":"7.6.17"},"@storybook/addon-actions":{"version":"7.6.17"},"@storybook/addon-docs":{"version":"7.6.17"},"@storybook/addon-knobs":{"version":"7.0.2"},"@storybook/addon-links":{"version":"7.6.17"}}}