diff --git a/build/blocks/event-date/index.asset.php b/build/blocks/event-date/index.asset.php index a040b1c83..5f9a2ab47 100644 --- a/build/blocks/event-date/index.asset.php +++ b/build/blocks/event-date/index.asset.php @@ -1 +1 @@ - array('moment', 'react', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-date', 'wp-element', 'wp-i18n'), 'version' => '9a693c52f333685e40d8'); + array('moment', 'react', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-date', 'wp-element', 'wp-i18n'), 'version' => '7e39cbc446a04833fd2d'); diff --git a/build/blocks/event-date/index.js b/build/blocks/event-date/index.js index f2abdfcc0..018cd9c40 100644 --- a/build/blocks/event-date/index.js +++ b/build/blocks/event-date/index.js @@ -1,2 +1,2 @@ -(()=>{"use strict";var e,t={9554:(e,t,n)=>{const r=window.wp.blocks,a=window.React,s=window.moment;var i=n.n(s);const o=window.wp.i18n,l=window.wp.blockEditor,c=window.wp.components,m=window.wp.element,d=(e,t="")=>{for(const[n,r]of Object.entries(e)){let e=n;t&&(e+="_"+String(t));const a=new CustomEvent(e,{detail:r});dispatchEvent(a)}},p=window.wp.data,u=window.wp.apiFetch;var f=n.n(u);function g(){(0,p.dispatch)("core/editor")?.editPost({meta:{_non_existing_meta:!0}})}function v(e){if("object"==typeof GatherPress)return e.split(".").reduce(((e,t)=>e&&e[t]),GatherPress)}function h(e,t){if("object"!=typeof GatherPress)return;const n=e.split("."),r=n.pop();n.reduce(((e,t)=>{var n;return null!==(n=e[t])&&void 0!==n?n:e[t]={}}),GatherPress)[r]=t}function T(){const e=i().tz(v("eventDetails.dateTime.datetime_end"),y());return"gatherpress_event"===(0,p.select)("core/editor")?.getCurrentPostType()&&i().tz(y()).valueOf()>e.valueOf()}function E(){const e="gatherpress_event_past",t=(0,p.dispatch)("core/notices");t.removeNotice(e),T()&&t.createNotice("warning",(0,o.__)("This event has already passed.","gatherpress"),{id:e,isDismissible:!1})}const D=window.wp.date,_="YYYY-MM-DDTHH:mm:ss",w="YYYY-MM-DD HH:mm:ss",z=i().tz(y()).add(1,"day").set("hour",18).set("minute",0).set("second",0).format(_),b=i().tz(z,y()).add(2,"hours").format(_);function S(){return x(v("settings.dateFormat"))+" "+x(v("settings.timeFormat"))}function y(e=v("eventDetails.dateTime.timezone")){return i().tz.zone(e)?e:(0,o.__)("GMT","gatherpress")}function O(e=""){const t=/^([+-])(\d{2}):(00|15|30|45)$/,n=e.replace(t,"$1");return n!==e?"UTC"+n+parseInt(e.replace(t,"$2")).toString()+e.replace(t,"$3").replace("00","").replace("15",".25").replace("30",".5").replace("45",".75"):e}function k(e,t=null){!function(e){const t=i().tz(v("eventDetails.dateTime.datetime_end"),y()).valueOf(),n=i().tz(e,y()).valueOf();n>=t&&P(i().tz(n,y()).add(2,"hours").format(_))}(e),h("eventDetails.dateTime.datetime_start",e),"function"==typeof t&&t(e),g()}function P(e,t=null){!function(e){const t=i().tz(v("eventDetails.dateTime.datetime_start"),y()).valueOf(),n=i().tz(e,y()).valueOf();n<=t&&k(i().tz(n,y()).subtract(2,"hours").format(_))}(e),h("eventDetails.dateTime.datetime_end",e),null!==t&&t(e),g()}function C(){const e=(0,p.select)("core/editor").isSavingPost(),t=(0,p.select)("core/editor").isAutosavingPost();"gatherpress_event"===(0,p.select)("core/editor")?.getCurrentPostType()&&e&&!t&&f()({path:v("urls.eventRestApi")+"/datetime",method:"POST",data:{post_id:v("eventDetails.postId"),datetime_start:i().tz(v("eventDetails.dateTime.datetime_start"),y()).format(w),datetime_end:i().tz(v("eventDetails.dateTime.datetime_end"),y()).format(w),timezone:v("eventDetails.dateTime.timezone"),_wpnonce:v("misc.nonce")}}).then((()=>{!function(){const e="gatherpress_event_communcation",t=(0,p.dispatch)("core/notices");t.removeNotice(e),"publish"!==(0,p.select)("core/editor").getEditedPostAttribute("status")||T()||t.createNotice("success",(0,o.__)("Send an event update to members via email?","gatherpress"),{id:e,isDismissible:!0,actions:[{onClick:()=>{d({setOpen:!0})},label:(0,o.__)("Compose Message","gatherpress")}]})}()}))}function x(e){const t={d:"DD",D:"ddd",j:"D",l:"dddd",N:"E",S:"o",w:"e",z:"DDD",W:"W",F:"MMMM",m:"MM",M:"MMM",n:"M",t:"",L:"",o:"YYYY",Y:"YYYY",y:"YY",a:"a",A:"A",B:"",g:"h",G:"H",h:"hh",H:"HH",i:"mm",s:"ss",u:"SSS",e:"zz",I:"",O:"",P:"",T:"",Z:"",c:"",r:"",U:"X"};return String(e).split("").map((e=>e in t?t[e]:e)).join("")}const M=e=>{const{isSelected:t}=e,n=t?"none":"block";return(0,a.createElement)("div",{style:{position:"relative"}},e.children,(0,a.createElement)("div",{style:{position:"absolute",top:"0",right:"0",bottom:"0",left:"0",display:n}}))},Y=e=>{const{dateTimeStart:t}=e;return i().tz(t,y()).format(S())},F=e=>{const{dateTimeEnd:t}=e;return i().tz(t,y()).format(S())},j=e=>{const{dateTimeStart:t,setDateTimeStart:n}=e,r=(0,D.getSettings)(),s=/a(?!\\)/i.test(r.formats.time.toLowerCase().replace(/\\\\/g,"").split("").reverse().join(""));return(0,a.createElement)(c.DateTimePicker,{currentDate:t,onChange:e=>k(e,n),is12Hour:s})},$=e=>{const{dateTimeEnd:t,setDateTimeEnd:n}=e,r=(0,D.getSettings)(),s=/a(?!\\)/i.test(r.formats.time.toLowerCase().replace(/\\\\/g,"").split("").reverse().join(""));return(0,a.createElement)(c.DateTimePicker,{currentDate:t,onChange:e=>P(e,n),is12Hour:s})},I=e=>{const{dateTimeStart:t,setDateTimeStart:n}=e;return(0,m.useEffect)((()=>{n(i().tz(function(){let e=v("eventDetails.dateTime.datetime_start");return e=""!==e?i().tz(e,y()).format(_):z,h("eventDetails.dateTime.datetime_start",e),e}(),y()).format(_)),d({setDateTimeStart:t}),E()})),(0,a.createElement)(c.PanelRow,null,(0,a.createElement)(c.Flex,{direction:"column",gap:"0"},(0,a.createElement)(c.FlexItem,null,(0,a.createElement)("label",{htmlFor:"gatherpress-datetime-start"},(0,o.__)("Start","gatherpress"))),(0,a.createElement)(c.FlexItem,null,(0,a.createElement)(c.Dropdown,{popoverProps:{placement:"bottom-end"},renderToggle:({isOpen:e,onToggle:n})=>(0,a.createElement)(c.Button,{id:"gatherpress-datetime-start",onClick:n,"aria-expanded":e,isLink:!0},(0,a.createElement)(Y,{dateTimeStart:t})),renderContent:()=>(0,a.createElement)(j,{dateTimeStart:t,setDateTimeStart:n})}))))},H=e=>{const{dateTimeEnd:t,setDateTimeEnd:n}=e;return(0,m.useEffect)((()=>{n(i().tz(function(){let e=v("eventDetails.dateTime.datetime_end");return e=""!==e?i().tz(e,y()).format(_):b,h("eventDetails.dateTime.datetime_end",e),e}(),y()).format(_)),d({setDateTimeEnd:t}),E()})),(0,a.createElement)(c.PanelRow,null,(0,a.createElement)(c.Flex,{direction:"column",gap:"0"},(0,a.createElement)(c.FlexItem,null,(0,a.createElement)("label",{htmlFor:"gatherpress-datetime-end"},(0,o.__)("End","gatherpress"))),(0,a.createElement)(c.FlexItem,null,(0,a.createElement)(c.Dropdown,{popoverProps:{placement:"bottom-end"},renderToggle:({isOpen:e,onToggle:n})=>(0,a.createElement)(c.Button,{id:"gatherpress-datetime-end",onClick:n,"aria-expanded":e,isLink:!0},(0,a.createElement)(F,{dateTimeEnd:t})),renderContent:()=>(0,a.createElement)($,{dateTimeEnd:t,setDateTimeEnd:n})}))))},G=e=>{const{timezone:t,setTimezone:n}=e,r=v("misc.timezoneChoices");return(0,m.useEffect)((()=>{n(v("eventDetails.dateTime.timezone"))}),[n]),(0,m.useEffect)((()=>{d({setTimezone:v("eventDetails.dateTime.timezone")})})),(0,a.createElement)(c.PanelRow,null,(0,a.createElement)(c.SelectControl,{label:(0,o.__)("Time Zone","gatherpress"),value:O(t),onChange:e=>{e=function(e=""){const t=/^UTC([+-])(\d+)(.\d+)?$/,n=e.replace(t,"$1");if(n!==e){const r=e.replace(t,"$2").padStart(2,"0");let a=e.replace(t,"$3");return""===a&&(a=":00"),a=a.replace(".25",":15").replace(".5",":30").replace(".75",":45"),n+r+a}return e}(e),n(e),h("eventDetails.dateTime.timezone",e),g()}},Object.keys(r).map((e=>(0,a.createElement)("optgroup",{key:e,label:e},Object.keys(r[e]).map((t=>(0,a.createElement)("option",{key:t,value:t},r[e][t]))))))))},N=()=>{const[e,t]=(0,m.useState)(),[n,r]=(0,m.useState)(),[s,i]=(0,m.useState)();return(0,p.subscribe)(C),(0,a.createElement)(a.Fragment,null,(0,a.createElement)("h3",null,(0,o.__)("Date & time","gatherpress")),(0,a.createElement)(I,{dateTimeStart:e,setDateTimeStart:t}),(0,a.createElement)(H,{dateTimeEnd:n,setDateTimeEnd:r}),(0,a.createElement)(G,{timezone:s,setTimezone:i}))},B=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"gatherpress/event-date","version":"1.0.1","title":"Event Date","category":"gatherpress","icon":"clock","example":{},"description":"Displays the date and time for an event.","attributes":{"eventEnd":{"type":"string"},"eventStart":{"type":"string"}},"supports":{"html":false},"textdomain":"gatherpress","editorScript":"file:./index.js","style":"file:./style-index.css","render":"file:./render.php"}');(0,r.registerBlockType)(B,{edit:()=>{const e=(0,l.useBlockProps)(),[t,n]=(0,m.useState)(z),[r,s]=(0,m.useState)(b),[d,u]=(0,m.useState)(y());return((e,t="")=>{for(const[n,r]of Object.entries(e)){let e=n;t&&(e+="_"+String(t)),addEventListener(e,(e=>{r(e.detail)}),!1)}})({setDateTimeEnd:s,setDateTimeStart:n,setTimezone:u}),(0,a.createElement)("div",{...e},(0,a.createElement)(M,null,(0,a.createElement)(c.Flex,{justify:"normal",align:"center",gap:"4"},(0,a.createElement)(c.FlexItem,{display:"flex",className:"gatherpress-event-date__icon"},(0,a.createElement)(c.Icon,{icon:"clock"})),(0,a.createElement)(c.FlexItem,null,((e,t,n)=>{const r=x(v("settings.dateFormat")),a=x(v("settings.timeFormat")),s=v("settings.showTimezone")?"z":"",l=r+" "+a,c=y(n);let m=r+" "+a+" "+s;return i().tz(e,c).format(r)===i().tz(t,c).format(r)&&(m=a+" "+s),(0,o.sprintf)(/* translators: %1$s: datetime start, %2$s: datetime end, %3$s timezone. */ /* translators: %1$s: datetime start, %2$s: datetime end, %3$s timezone. */ +(()=>{"use strict";var e,t={9554:(e,t,n)=>{const r=window.wp.blocks,a=window.React,s=window.moment;var i=n.n(s);const o=window.wp.i18n,l=window.wp.blockEditor,c=window.wp.components,m=window.wp.element,d=(e,t="")=>{for(const[n,r]of Object.entries(e)){let e=n;t&&(e+="_"+String(t));const a=new CustomEvent(e,{detail:r});dispatchEvent(a)}},p=window.wp.data,u=window.wp.apiFetch;var f=n.n(u);function g(){(0,p.dispatch)("core/editor")?.editPost({meta:{_non_existing_meta:!0}})}function v(e){if("object"==typeof GatherPress)return e.split(".").reduce(((e,t)=>e&&e[t]),GatherPress)}function h(e,t){if("object"!=typeof GatherPress)return;const n=e.split("."),r=n.pop();n.reduce(((e,t)=>{var n;return null!==(n=e[t])&&void 0!==n?n:e[t]={}}),GatherPress)[r]=t}function T(){const e=i().tz(v("eventDetails.dateTime.datetime_end"),y());return"gatherpress_event"===(0,p.select)("core/editor")?.getCurrentPostType()&&i().tz(y()).valueOf()>e.valueOf()}function E(){const e="gatherpress_event_past",t=(0,p.dispatch)("core/notices");t.removeNotice(e),T()&&t.createNotice("warning",(0,o.__)("This event has already passed.","gatherpress"),{id:e,isDismissible:!1})}const D=window.wp.date,_="YYYY-MM-DDTHH:mm:ss",w="YYYY-MM-DD HH:mm:ss",z=i().tz(y()).add(1,"day").set("hour",18).set("minute",0).set("second",0).format(_),b=i().tz(z,y()).add(2,"hours").format(_);function S(){return x(v("settings.dateFormat"))+" "+x(v("settings.timeFormat"))}function y(e=v("eventDetails.dateTime.timezone")){return i().tz.zone(e)?e:(0,o.__)("GMT","gatherpress")}function O(e=""){const t=/^([+-])(\d{2}):(00|15|30|45)$/,n=e.replace(t,"$1");return n!==e?"UTC"+n+parseInt(e.replace(t,"$2")).toString()+e.replace(t,"$3").replace("00","").replace("15",".25").replace("30",".5").replace("45",".75"):e}function k(e,t=null){!function(e){const t=i().tz(v("eventDetails.dateTime.datetime_end"),y()).valueOf(),n=i().tz(e,y()).valueOf();n>=t&&P(i().tz(n,y()).add(2,"hours").format(_))}(e),h("eventDetails.dateTime.datetime_start",e),"function"==typeof t&&t(e),g()}function P(e,t=null){!function(e){const t=i().tz(v("eventDetails.dateTime.datetime_start"),y()).valueOf(),n=i().tz(e,y()).valueOf();n<=t&&k(i().tz(n,y()).subtract(2,"hours").format(_))}(e),h("eventDetails.dateTime.datetime_end",e),null!==t&&t(e),g()}function C(){const e=(0,p.select)("core/editor").isSavingPost(),t=(0,p.select)("core/editor").isAutosavingPost();"gatherpress_event"===(0,p.select)("core/editor")?.getCurrentPostType()&&e&&!t&&f()({path:v("urls.eventRestApi")+"/datetime",method:"POST",data:{post_id:v("eventDetails.postId"),datetime_start:i().tz(v("eventDetails.dateTime.datetime_start"),y()).format(w),datetime_end:i().tz(v("eventDetails.dateTime.datetime_end"),y()).format(w),timezone:v("eventDetails.dateTime.timezone"),_wpnonce:v("misc.nonce")}}).then((()=>{!function(){const e="gatherpress_event_communcation",t=(0,p.dispatch)("core/notices");t.removeNotice(e),"publish"!==(0,p.select)("core/editor").getEditedPostAttribute("status")||T()||t.createNotice("success",(0,o.__)("Send an event update to members via email?","gatherpress"),{id:e,isDismissible:!0,actions:[{onClick:()=>{d({setOpen:!0})},label:(0,o.__)("Compose Message","gatherpress")}]})}()}))}function x(e){const t={d:"DD",D:"ddd",j:"D",l:"dddd",N:"E",S:"o",w:"e",z:"DDD",W:"W",F:"MMMM",m:"MM",M:"MMM",n:"M",t:"",L:"",o:"YYYY",Y:"YYYY",y:"YY",a:"a",A:"A",B:"",g:"h",G:"H",h:"hh",H:"HH",i:"mm",s:"ss",u:"SSS",e:"zz",I:"",O:"",P:"",T:"",Z:"",c:"",r:"",U:"X"};return String(e).split("").map(((e,n,r)=>{const a=r[n-1];return e in t&&"\\"!==a?t[e]:e})).join("")}const M=e=>{const{isSelected:t}=e,n=t?"none":"block";return(0,a.createElement)("div",{style:{position:"relative"}},e.children,(0,a.createElement)("div",{style:{position:"absolute",top:"0",right:"0",bottom:"0",left:"0",display:n}}))},Y=e=>{const{dateTimeStart:t}=e;return i().tz(t,y()).format(S())},F=e=>{const{dateTimeEnd:t}=e;return i().tz(t,y()).format(S())},j=e=>{const{dateTimeStart:t,setDateTimeStart:n}=e,r=(0,D.getSettings)(),s=/a(?!\\)/i.test(r.formats.time.toLowerCase().replace(/\\\\/g,"").split("").reverse().join(""));return(0,a.createElement)(c.DateTimePicker,{currentDate:t,onChange:e=>k(e,n),is12Hour:s})},$=e=>{const{dateTimeEnd:t,setDateTimeEnd:n}=e,r=(0,D.getSettings)(),s=/a(?!\\)/i.test(r.formats.time.toLowerCase().replace(/\\\\/g,"").split("").reverse().join(""));return(0,a.createElement)(c.DateTimePicker,{currentDate:t,onChange:e=>P(e,n),is12Hour:s})},I=e=>{const{dateTimeStart:t,setDateTimeStart:n}=e;return(0,m.useEffect)((()=>{n(i().tz(function(){let e=v("eventDetails.dateTime.datetime_start");return e=""!==e?i().tz(e,y()).format(_):z,h("eventDetails.dateTime.datetime_start",e),e}(),y()).format(_)),d({setDateTimeStart:t}),E()})),(0,a.createElement)(c.PanelRow,null,(0,a.createElement)(c.Flex,{direction:"column",gap:"0"},(0,a.createElement)(c.FlexItem,null,(0,a.createElement)("label",{htmlFor:"gatherpress-datetime-start"},(0,o.__)("Start","gatherpress"))),(0,a.createElement)(c.FlexItem,null,(0,a.createElement)(c.Dropdown,{popoverProps:{placement:"bottom-end"},renderToggle:({isOpen:e,onToggle:n})=>(0,a.createElement)(c.Button,{id:"gatherpress-datetime-start",onClick:n,"aria-expanded":e,isLink:!0},(0,a.createElement)(Y,{dateTimeStart:t})),renderContent:()=>(0,a.createElement)(j,{dateTimeStart:t,setDateTimeStart:n})}))))},H=e=>{const{dateTimeEnd:t,setDateTimeEnd:n}=e;return(0,m.useEffect)((()=>{n(i().tz(function(){let e=v("eventDetails.dateTime.datetime_end");return e=""!==e?i().tz(e,y()).format(_):b,h("eventDetails.dateTime.datetime_end",e),e}(),y()).format(_)),d({setDateTimeEnd:t}),E()})),(0,a.createElement)(c.PanelRow,null,(0,a.createElement)(c.Flex,{direction:"column",gap:"0"},(0,a.createElement)(c.FlexItem,null,(0,a.createElement)("label",{htmlFor:"gatherpress-datetime-end"},(0,o.__)("End","gatherpress"))),(0,a.createElement)(c.FlexItem,null,(0,a.createElement)(c.Dropdown,{popoverProps:{placement:"bottom-end"},renderToggle:({isOpen:e,onToggle:n})=>(0,a.createElement)(c.Button,{id:"gatherpress-datetime-end",onClick:n,"aria-expanded":e,isLink:!0},(0,a.createElement)(F,{dateTimeEnd:t})),renderContent:()=>(0,a.createElement)($,{dateTimeEnd:t,setDateTimeEnd:n})}))))},G=e=>{const{timezone:t,setTimezone:n}=e,r=v("misc.timezoneChoices");return(0,m.useEffect)((()=>{n(v("eventDetails.dateTime.timezone"))}),[n]),(0,m.useEffect)((()=>{d({setTimezone:v("eventDetails.dateTime.timezone")})})),(0,a.createElement)(c.PanelRow,null,(0,a.createElement)(c.SelectControl,{label:(0,o.__)("Time Zone","gatherpress"),value:O(t),onChange:e=>{e=function(e=""){const t=/^UTC([+-])(\d+)(.\d+)?$/,n=e.replace(t,"$1");if(n!==e){const r=e.replace(t,"$2").padStart(2,"0");let a=e.replace(t,"$3");return""===a&&(a=":00"),a=a.replace(".25",":15").replace(".5",":30").replace(".75",":45"),n+r+a}return e}(e),n(e),h("eventDetails.dateTime.timezone",e),g()}},Object.keys(r).map((e=>(0,a.createElement)("optgroup",{key:e,label:e},Object.keys(r[e]).map((t=>(0,a.createElement)("option",{key:t,value:t},r[e][t]))))))))},N=()=>{const[e,t]=(0,m.useState)(),[n,r]=(0,m.useState)(),[s,i]=(0,m.useState)();return(0,p.subscribe)(C),(0,a.createElement)(a.Fragment,null,(0,a.createElement)("h3",null,(0,o.__)("Date & time","gatherpress")),(0,a.createElement)(I,{dateTimeStart:e,setDateTimeStart:t}),(0,a.createElement)(H,{dateTimeEnd:n,setDateTimeEnd:r}),(0,a.createElement)(G,{timezone:s,setTimezone:i}))},B=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"gatherpress/event-date","version":"1.0.1","title":"Event Date","category":"gatherpress","icon":"clock","example":{},"description":"Displays the date and time for an event.","attributes":{"eventEnd":{"type":"string"},"eventStart":{"type":"string"}},"supports":{"html":false},"textdomain":"gatherpress","editorScript":"file:./index.js","style":"file:./style-index.css","render":"file:./render.php"}');(0,r.registerBlockType)(B,{edit:()=>{const e=(0,l.useBlockProps)(),[t,n]=(0,m.useState)(z),[r,s]=(0,m.useState)(b),[d,u]=(0,m.useState)(y());return((e,t="")=>{for(const[n,r]of Object.entries(e)){let e=n;t&&(e+="_"+String(t)),addEventListener(e,(e=>{r(e.detail)}),!1)}})({setDateTimeEnd:s,setDateTimeStart:n,setTimezone:u}),(0,a.createElement)("div",{...e},(0,a.createElement)(M,null,(0,a.createElement)(c.Flex,{justify:"normal",align:"center",gap:"4"},(0,a.createElement)(c.FlexItem,{display:"flex",className:"gatherpress-event-date__icon"},(0,a.createElement)(c.Icon,{icon:"clock"})),(0,a.createElement)(c.FlexItem,null,((e,t,n)=>{const r=x(v("settings.dateFormat")),a=x(v("settings.timeFormat")),s=v("settings.showTimezone")?"z":"",l=r+" "+a,c=y(n);let m=r+" "+a+" "+s;return i().tz(e,c).format(r)===i().tz(t,c).format(r)&&(m=a+" "+s),(0,o.sprintf)(/* translators: %1$s: datetime start, %2$s: datetime end, %3$s timezone. */ /* translators: %1$s: datetime start, %2$s: datetime end, %3$s timezone. */ (0,o.__)("%1$s to %2$s %3$s","gatherpress"),i().tz(e,c).format(l),i().tz(t,c).format(m),(d=y(d=c),(0,o.__)("GMT","gatherpress")!==d?"":function(e=""){return e.replace(":","")}(v("eventDetails.dateTime.timezone"))));var d})(t,r,d)),"string"==typeof(0,p.select)("core/editor")?.getCurrentPostType()&&(0,a.createElement)(l.InspectorControls,null,(0,a.createElement)(c.PanelBody,null,(0,a.createElement)(N,null))))))},save:()=>null})}},n={};function r(e){var a=n[e];if(void 0!==a)return a.exports;var s=n[e]={exports:{}};return t[e](s,s.exports,r),s.exports}r.m=t,e=[],r.O=(t,n,a,s)=>{if(!n){var i=1/0;for(m=0;m=s)&&Object.keys(r.O).every((e=>r.O[e](n[l])))?n.splice(l--,1):(o=!1,s0&&e[m-1][2]>s;m--)e[m]=e[m-1];e[m]=[n,a,s]},r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={532:0,4:0};r.O.j=t=>0===e[t];var t=(t,n)=>{var a,s,[i,o,l]=n,c=0;if(i.some((t=>0!==e[t]))){for(a in o)r.o(o,a)&&(r.m[a]=o[a]);if(l)var m=l(r)}for(t&&t(n);cr(9554)));a=r.O(a)})(); \ No newline at end of file diff --git a/build/blocks/events-list/events-list.asset.php b/build/blocks/events-list/events-list.asset.php index 76c0ee086..944031742 100644 --- a/build/blocks/events-list/events-list.asset.php +++ b/build/blocks/events-list/events-list.asset.php @@ -1 +1 @@ - array('react', 'react-dom', 'wp-api-fetch', 'wp-components', 'wp-data', 'wp-dom-ready', 'wp-element', 'wp-i18n'), 'version' => '312b602bf15d128a6649'); + array('react', 'react-dom', 'wp-api-fetch', 'wp-components', 'wp-data', 'wp-dom-ready', 'wp-element', 'wp-i18n'), 'version' => '425cbfc777f973f269e8'); diff --git a/build/blocks/events-list/events-list.js b/build/blocks/events-list/events-list.js index 64977b7ca..7768fb34f 100644 --- a/build/blocks/events-list/events-list.js +++ b/build/blocks/events-list/events-list.js @@ -1,5 +1,5 @@ -(()=>{var e={5413:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(n=t.ElementType||(t.ElementType={})),t.isTag=function(e){return e.type===n.Tag||e.type===n.Script||e.type===n.Style},t.Root=n.Root,t.Text=n.Text,t.Directive=n.Directive,t.Comment=n.Comment,t.Script=n.Script,t.Style=n.Style,t.Tag=n.Tag,t.CDATA=n.CDATA,t.Doctype=n.Doctype},1141:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,r)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var i=n(5413),a=n(6957);r(n(6957),t);var s={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},l=function(){function e(e,t,n){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=s),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:s,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?i.ElementType.Tag:void 0,o=new a.Element(e,t,void 0,n);this.addNode(o),this.tagStack.push(o)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===i.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var n=new a.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===i.ElementType.Comment)this.lastNode.data+=e;else{var t=new a.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new a.Text(""),t=new a.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new a.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=l,t.default=l},6957:function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,o=arguments.length;n0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(s);t.NodeWithChildren=p;var f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.CDATA,t}return r(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(p);t.CDATA=f;var m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.Root,t}return r(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(p);t.Document=m;var h=function(e){function t(t,n,o,r){void 0===o&&(o=[]),void 0===r&&(r="script"===t?a.ElementType.Script:"style"===t?a.ElementType.Style:a.ElementType.Tag);var i=e.call(this,o)||this;return i.name=t,i.attribs=n,i.type=r,i}return r(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var n,o;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(o=e["x-attribsPrefix"])||void 0===o?void 0:o[t]}}))},enumerable:!1,configurable:!0}),t}(p);function v(e){return(0,a.isTag)(e)}function y(e){return e.type===a.ElementType.CDATA}function g(e){return e.type===a.ElementType.Text}function b(e){return e.type===a.ElementType.Comment}function w(e){return e.type===a.ElementType.Directive}function _(e){return e.type===a.ElementType.Root}function E(e,t){var n;if(void 0===t&&(t=!1),g(e))n=new c(e.data);else if(b(e))n=new u(e.data);else if(v(e)){var o=t?x(e.children):[],r=new h(e.name,i({},e.attribs),o);o.forEach((function(e){return e.parent=r})),null!=e.namespace&&(r.namespace=e.namespace),e["x-attribsNamespace"]&&(r["x-attribsNamespace"]=i({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(r["x-attribsPrefix"]=i({},e["x-attribsPrefix"])),n=r}else if(y(e)){o=t?x(e.children):[];var a=new f(o);o.forEach((function(e){return e.parent=a})),n=a}else if(_(e)){o=t?x(e.children):[];var s=new m(o);o.forEach((function(e){return e.parent=s})),e["x-mode"]&&(s["x-mode"]=e["x-mode"]),n=s}else{if(!w(e))throw new Error("Not implemented yet: ".concat(e.type));var l=new d(e.name,e.data);null!=e["x-name"]&&(l["x-name"]=e["x-name"],l["x-publicId"]=e["x-publicId"],l["x-systemId"]=e["x-systemId"]),n=l}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function x(e){for(var t=e.map((function(e){return E(e,!0)})),n=1;n{var o;!function(){"use strict";var r=!("undefined"==typeof window||!window.document||!window.document.createElement),i={canUseDOM:r,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:r&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:r&&!!window.screen};void 0===(o=function(){return i}.call(t,n,t,e))||(e.exports=o)}()},5270:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES=void 0,t.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES.reduce((function(e,t){return e[t.toLowerCase()]=t,e}),{})},5496:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="html",o="head",r="body",i=/<([a-zA-Z]+[0-9]?)/,a=//i,s=//i,l=function(e,t){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},c=function(e,t){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},u="object"==typeof window&&window.DOMParser;if("function"==typeof u){var d=new u;l=c=function(e,t){return t&&(e="<".concat(t,">").concat(e,"")),d.parseFromString(e,"text/html")}}if("object"==typeof document&&document.implementation){var p=document.implementation.createHTMLDocument();l=function(e,t){if(t){var n=p.documentElement.querySelector(t);return n&&(n.innerHTML=e),p}return p.documentElement.innerHTML=e,p}}var f,m="object"==typeof document&&document.createElement("template");m&&m.content&&(f=function(e){return m.innerHTML=e,m.content.childNodes}),t.default=function(e){var t,u,d=e.match(i),p=d&&d[1]?d[1].toLowerCase():"";switch(p){case n:var m=c(e);return a.test(e)||null===(t=null==(v=m.querySelector(o))?void 0:v.parentNode)||void 0===t||t.removeChild(v),s.test(e)||null===(u=null==(v=m.querySelector(r))?void 0:v.parentNode)||void 0===u||u.removeChild(v),m.querySelectorAll(n);case o:case r:var h=l(e).querySelectorAll(p);return s.test(e)&&a.test(e)?h[0].parentNode.childNodes:h;default:return f?f(e):(v=l(e,r).querySelector(r)).childNodes;var v}}},2471:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(5496)),i=n(7731),a=/<(![a-zA-Z\s]+)>/;t.default=function(e){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];var t=e.match(a),n=t?t[1]:void 0;return(0,i.formatDOM)((0,r.default)(e),null,n)}},7731:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatDOM=t.formatAttributes=void 0;var o=n(1141),r=n(5270);function i(e){for(var t={},n=0,o=e.length;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(4210),r=n(4958),i=["checked","value"],a=["input","select","textarea"],s={reset:!0,submit:!0};function l(e){return o.possibleStandardNames[e]}t.default=function(e,t){void 0===e&&(e={});var n={},c=Boolean(e.type&&s[e.type]);for(var u in e){var d=e[u];if((0,o.isCustomAttribute)(u))n[u]=d;else{var p=u.toLowerCase(),f=l(p);if(f){var m=(0,o.getPropertyInfo)(f);switch(i.includes(f)&&a.includes(t)&&!c&&(f=l("default"+p)),n[f]=d,m&&m.type){case o.BOOLEAN:n[f]=!0;break;case o.OVERLOADED_BOOLEAN:""===d&&(n[f]=!0)}}else r.PRESERVE_CUSTOM_ATTRIBUTES&&(n[u]=d)}}return(0,r.setStyleProp)(e.style,n),n}},308:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=n(1609),i=o(n(840)),a=n(4958),s={cloneElement:r.cloneElement,createElement:r.createElement,isValidElement:r.isValidElement};function l(e){return a.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&(0,a.isCustomComponent)(e.name,e.attribs)}t.default=function e(t,n){void 0===n&&(n={});for(var o=[],r="function"==typeof n.replace,c=n.transform||a.returnFirstArg,u=n.library||s,d=u.cloneElement,p=u.createElement,f=u.isValidElement,m=t.length,h=0;h1&&(y=d(y,{key:y.key||h})),o.push(c(y,v,h));continue}}if("text"!==v.type){var g=v,b={};l(g)?((0,a.setStyleProp)(g.attribs.style,g.attribs),b=g.attribs):g.attribs&&(b=(0,i.default)(g.attribs,g.name));var w=void 0;switch(v.type){case"script":case"style":v.children[0]&&(b.dangerouslySetInnerHTML={__html:v.children[0].data});break;case"tag":"textarea"===v.name&&v.children[0]?b.defaultValue=v.children[0].data:v.children&&v.children.length&&(w=e(v.children,n));break;default:continue}m>1&&(b.key=h),o.push(c(p(v.name,b,w),v,h))}else{var _=!v.data.trim().length;if(_&&v.parent&&!(0,a.canTextBeChildOfNode)(v.parent))continue;if(n.trim&&_)continue;o.push(c(v.data,v,h))}}return 1===o.length?o[0]:o}},442:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.htmlToDOM=t.domToReact=t.attributesToProps=t.Text=t.ProcessingInstruction=t.Element=t.Comment=void 0;var r=o(n(2471));t.htmlToDOM=r.default;var i=o(n(840));t.attributesToProps=i.default;var a=o(n(308));t.domToReact=a.default;var s=n(1141);Object.defineProperty(t,"Comment",{enumerable:!0,get:function(){return s.Comment}}),Object.defineProperty(t,"Element",{enumerable:!0,get:function(){return s.Element}}),Object.defineProperty(t,"ProcessingInstruction",{enumerable:!0,get:function(){return s.ProcessingInstruction}}),Object.defineProperty(t,"Text",{enumerable:!0,get:function(){return s.Text}});var l={lowerCaseAttributeNames:!1};t.default=function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");return e?(0,a.default)((0,r.default)(e,(null==t?void 0:t.htmlparser2)||l),t):[]}},4958:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.returnFirstArg=t.canTextBeChildOfNode=t.ELEMENTS_WITH_NO_TEXT_CHILDREN=t.PRESERVE_CUSTOM_ATTRIBUTES=t.setStyleProp=t.isCustomComponent=void 0;var r=n(1609),i=o(n(5229)),a=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);t.isCustomComponent=function(e,t){return e.includes("-")?!a.has(e):Boolean(t&&"string"==typeof t.is)};var s={reactCompat:!0};t.setStyleProp=function(e,t){if("string"==typeof e)if(e.trim())try{t.style=(0,i.default)(e,s)}catch(e){t.style={}}else t.style={}},t.PRESERVE_CUSTOM_ATTRIBUTES=Number(r.version.split(".")[0])>=16,t.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]),t.canTextBeChildOfNode=function(e){return!t.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(e.name)},t.returnFirstArg=function(e){return e}},9788:e=>{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,o=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,l=/^\s+|\s+$/g,c="";function u(e){return e?e.replace(l,c):c}e.exports=function(e,l){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];l=l||{};var d=1,p=1;function f(e){var t=e.match(n);t&&(d+=t.length);var o=e.lastIndexOf("\n");p=~o?e.length-o:p+e.length}function m(){var e={line:d,column:p};return function(t){return t.position=new h(e),b(),t}}function h(e){this.start=e,this.end={line:d,column:p},this.source=l.source}h.prototype.content=e;var v=[];function y(t){var n=new Error(l.source+":"+d+":"+p+": "+t);if(n.reason=t,n.filename=l.source,n.line=d,n.column=p,n.source=e,!l.silent)throw n;v.push(n)}function g(t){var n=t.exec(e);if(n){var o=n[0];return f(o),e=e.slice(o.length),n}}function b(){g(o)}function w(e){var t;for(e=e||[];t=_();)!1!==t&&e.push(t);return e}function _(){var t=m();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;c!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,c===e.charAt(n-1))return y("End of comment missing");var o=e.slice(2,n-2);return p+=2,f(o),e=e.slice(n),p+=2,t({type:"comment",comment:o})}}function E(){var e=m(),n=g(r);if(n){if(_(),!g(i))return y("property missing ':'");var o=g(a),l=e({type:"declaration",property:u(n[0].replace(t,c)),value:o?u(o[0].replace(t,c)):c});return g(s),l}}return b(),function(){var e,t=[];for(w(t);e=E();)!1!==e&&(t.push(e),w(t));return t}()}},2694:(e,t,n)=>{"use strict";var o=n(6925);function r(){}function i(){}i.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,i,a){if(a!==o){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return n.PropTypes=n,n}},5556:(e,t,n)=>{e.exports=n(2694)()},6925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},1345:(e,t,n)=>{"use strict";function o(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function r(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function i(e,t){try{var n=this.props,o=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,o)}finally{this.props=n,this.state=o}}function a(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,a=null,s=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?a="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(a="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?s="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(s="UNSAFE_componentWillUpdate"),null!==n||null!==a||null!==s){var l=e.displayName||e.name,c="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+l+" uses "+c+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==a?"\n "+a:"")+(null!==s?"\n "+s:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=o,t.componentWillReceiveProps=r),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=i;var u=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var o=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;u.call(this,e,t,o)}}return e}n.r(t),n.d(t,{polyfill:()=>a}),o.__suppressDeprecationWarning=!0,r.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0},1720:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bodyOpenClassName=t.portalClassName=void 0;var o=Object.assign||function(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t0&&0==(g-=1)&&u.show(t),n.props.shouldFocusAfterRender&&(n.props.shouldReturnFocusAfterClose?(l.returnFocus(n.props.preventScroll),l.teardownScopedFocus()):l.popWithoutFocus()),n.props.onAfterClose&&n.props.onAfterClose(),m.default.deregister(n)},n.open=function(){n.beforeOpen(),n.state.afterOpen&&n.state.beforeClose?(clearTimeout(n.closeTimer),n.setState({beforeClose:!1})):(n.props.shouldFocusAfterRender&&(l.setupScopedFocus(n.node),l.markForFocusLater()),n.setState({isOpen:!0},(function(){n.openAnimationFrame=requestAnimationFrame((function(){n.setState({afterOpen:!0}),n.props.isOpen&&n.props.onAfterOpen&&n.props.onAfterOpen({overlayEl:n.overlay,contentEl:n.content})}))})))},n.close=function(){n.props.closeTimeoutMS>0?n.closeWithTimeout():n.closeWithoutTimeout()},n.focusContent=function(){return n.content&&!n.contentHasFocus()&&n.content.focus({preventScroll:!0})},n.closeWithTimeout=function(){var e=Date.now()+n.props.closeTimeoutMS;n.setState({beforeClose:!0,closesAt:e},(function(){n.closeTimer=setTimeout(n.closeWithoutTimeout,n.state.closesAt-Date.now())}))},n.closeWithoutTimeout=function(){n.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},n.afterClose)},n.handleKeyDown=function(e){(function(e){return"Tab"===e.code||9===e.keyCode})(e)&&(0,c.default)(n.content,e),n.props.shouldCloseOnEsc&&function(e){return"Escape"===e.code||27===e.keyCode}(e)&&(e.stopPropagation(),n.requestClose(e))},n.handleOverlayOnClick=function(e){null===n.shouldClose&&(n.shouldClose=!0),n.shouldClose&&n.props.shouldCloseOnOverlayClick&&(n.ownerHandlesClose()?n.requestClose(e):n.focusContent()),n.shouldClose=null},n.handleContentOnMouseUp=function(){n.shouldClose=!1},n.handleOverlayOnMouseDown=function(e){n.props.shouldCloseOnOverlayClick||e.target!=n.overlay||e.preventDefault()},n.handleContentOnClick=function(){n.shouldClose=!1},n.handleContentOnMouseDown=function(){n.shouldClose=!1},n.requestClose=function(e){return n.ownerHandlesClose()&&n.props.onRequestClose(e)},n.ownerHandlesClose=function(){return n.props.onRequestClose},n.shouldBeClosed=function(){return!n.state.isOpen&&!n.state.beforeClose},n.contentHasFocus=function(){return document.activeElement===n.content||n.content.contains(document.activeElement)},n.buildClassName=function(e,t){var o="object"===(void 0===t?"undefined":r(t))?t:{base:y[e],afterOpen:y[e]+"--after-open",beforeClose:y[e]+"--before-close"},i=o.base;return n.state.afterOpen&&(i=i+" "+o.afterOpen),n.state.beforeClose&&(i=i+" "+o.beforeClose),"string"==typeof t&&t?i+" "+t:i},n.attributesFromObject=function(e,t){return Object.keys(t).reduce((function(n,o){return n[e+"-"+o]=t[o],n}),{})},n.state={afterOpen:!1,beforeClose:!1},n.shouldClose=null,n.moveFromContentToOverlay=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(e,t){this.props.isOpen&&!e.isOpen?this.open():!this.props.isOpen&&e.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!t.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var e=this.props,t=e.appElement,n=e.ariaHideApp,o=e.htmlOpenClassName,r=e.bodyOpenClassName,i=e.parentSelector,a=i&&i().ownerDocument||document;r&&d.add(a.body,r),o&&d.add(a.getElementsByTagName("html")[0],o),n&&(g+=1,u.hide(t)),m.default.register(this)}},{key:"render",value:function(){var e=this.props,t=e.id,n=e.className,r=e.overlayClassName,i=e.defaultStyles,a=e.children,s=n?{}:i.content,l=r?{}:i.overlay;if(this.shouldBeClosed())return null;var c={ref:this.setOverlayRef,className:this.buildClassName("overlay",r),style:o({},l,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},u=o({id:t,ref:this.setContentRef,style:o({},s,this.props.style.content),className:this.buildClassName("content",n),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",o({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),d=this.props.contentElement(u,a);return this.props.overlayElement(c,d)}}]),t}(a.Component);b.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},b.propTypes={isOpen:s.default.bool.isRequired,defaultStyles:s.default.shape({content:s.default.object,overlay:s.default.object}),style:s.default.shape({content:s.default.object,overlay:s.default.object}),className:s.default.oneOfType([s.default.string,s.default.object]),overlayClassName:s.default.oneOfType([s.default.string,s.default.object]),parentSelector:s.default.func,bodyOpenClassName:s.default.string,htmlOpenClassName:s.default.string,ariaHideApp:s.default.bool,appElement:s.default.oneOfType([s.default.instanceOf(f.default),s.default.instanceOf(p.SafeHTMLCollection),s.default.instanceOf(p.SafeNodeList),s.default.arrayOf(s.default.instanceOf(f.default))]),onAfterOpen:s.default.func,onAfterClose:s.default.func,onRequestClose:s.default.func,closeTimeoutMS:s.default.number,shouldFocusAfterRender:s.default.bool,shouldCloseOnOverlayClick:s.default.bool,shouldReturnFocusAfterClose:s.default.bool,preventScroll:s.default.bool,role:s.default.string,contentLabel:s.default.string,aria:s.default.object,data:s.default.object,children:s.default.node,shouldCloseOnEsc:s.default.bool,overlayRef:s.default.func,contentRef:s.default.func,id:s.default.string,overlayElement:s.default.func,contentElement:s.default.func,testId:s.default.string},t.default=b,e.exports=t.default},6462:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){a&&(a.removeAttribute?a.removeAttribute("aria-hidden"):null!=a.length?a.forEach((function(e){return e.removeAttribute("aria-hidden")})):document.querySelectorAll(a).forEach((function(e){return e.removeAttribute("aria-hidden")}))),a=null},t.log=function(){},t.assertNodeList=s,t.setElement=function(e){var t=e;if("string"==typeof t&&i.canUseDOM){var n=document.querySelectorAll(t);s(n,t),t=n}return a=t||a},t.validateElement=l,t.hide=function(e){var t=!0,n=!1,o=void 0;try{for(var r,i=l(e)[Symbol.iterator]();!(t=(r=i.next()).done);t=!0)r.value.setAttribute("aria-hidden","true")}catch(e){n=!0,o=e}finally{try{!t&&i.return&&i.return()}finally{if(n)throw o}}},t.show=function(e){var t=!0,n=!1,o=void 0;try{for(var r,i=l(e)[Symbol.iterator]();!(t=(r=i.next()).done);t=!0)r.value.removeAttribute("aria-hidden")}catch(e){n=!0,o=e}finally{try{!t&&i.return&&i.return()}finally{if(n)throw o}}},t.documentNotReadyOrSSRTesting=function(){a=null};var o,r=(o=n(9771))&&o.__esModule?o:{default:o},i=n(834),a=null;function s(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function l(e){var t=e||a;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,r.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}},7727:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){for(var e=[i,a],t=0;t0?(document.body.firstChild!==i&&document.body.insertBefore(i,document.body.firstChild),document.body.lastChild!==a&&document.body.appendChild(a)):(i.parentElement&&i.parentElement.removeChild(i),a.parentElement&&a.parentElement.removeChild(a))}))},4838:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){var e=document.getElementsByTagName("html")[0];for(var t in n)r(e,n[t]);var i=document.body;for(var a in o)r(i,o[a]);n={},o={}},t.log=function(){};var n={},o={};function r(e,t){e.classList.remove(t)}t.add=function(e,t){return r=e.classList,i="html"==e.nodeName.toLowerCase()?n:o,void t.split(" ").forEach((function(e){!function(e,t){e[t]||(e[t]=0),e[t]+=1}(i,e),r.add(e)}));var r,i},t.remove=function(e,t){return r=e.classList,i="html"==e.nodeName.toLowerCase()?n:o,void t.split(" ").forEach((function(e){!function(e,t){e[t]&&(e[t]-=1)}(i,e),0===i[e]&&r.remove(e)}));var r,i}},7791:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){i=[]},t.log=function(){},t.handleBlur=l,t.handleFocus=c,t.markForFocusLater=function(){i.push(document.activeElement)},t.returnFocus=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=null;try{return void(0!==i.length&&(t=i.pop()).focus({preventScroll:e}))}catch(e){console.warn(["You tried to return focus to",t,"but it is not in the DOM anymore"].join(" "))}},t.popWithoutFocus=function(){i.length>0&&i.pop()},t.setupScopedFocus=function(e){a=e,window.addEventListener?(window.addEventListener("blur",l,!1),document.addEventListener("focus",c,!0)):(window.attachEvent("onBlur",l),document.attachEvent("onFocus",c))},t.teardownScopedFocus=function(){a=null,window.addEventListener?(window.removeEventListener("blur",l),document.removeEventListener("focus",c)):(window.detachEvent("onBlur",l),document.detachEvent("onFocus",c))};var o,r=(o=n(2411))&&o.__esModule?o:{default:o},i=[],a=null,s=!1;function l(){s=!0}function c(){if(s){if(s=!1,!a)return;setTimeout((function(){a.contains(document.activeElement)||((0,r.default)(a)[0]||a).focus()}),0)}}},9628:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.log=function(){console.log("portalOpenInstances ----------"),console.log(o.openInstances.length),o.openInstances.forEach((function(e){return console.log(e)})),console.log("end portalOpenInstances ----------")},t.resetState=function(){o=new n};var n=function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.register=function(e){-1===t.openInstances.indexOf(e)&&(t.openInstances.push(e),t.emit("register"))},this.deregister=function(e){var n=t.openInstances.indexOf(e);-1!==n&&(t.openInstances.splice(n,1),t.emit("deregister"))},this.subscribe=function(e){t.subscribers.push(e)},this.emit=function(e){t.subscribers.forEach((function(n){return n(e,t.openInstances.slice())}))},this.openInstances=[],this.subscribers=[]},o=new n;t.default=o},834:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canUseDOM=t.SafeNodeList=t.SafeHTMLCollection=void 0;var o,r=((o=n(411))&&o.__esModule?o:{default:o}).default,i=r.canUseDOM?window.HTMLElement:{};t.SafeHTMLCollection=r.canUseDOM?window.HTMLCollection:{},t.SafeNodeList=r.canUseDOM?window.NodeList:{},t.canUseDOM=r.canUseDOM,t.default=i},7067:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,r.default)(e);if(n.length){var o=void 0,a=t.shiftKey,s=n[0],l=n[n.length-1],c=i();if(e===c){if(!a)return;o=l}if(l!==c||a||(o=s),s===c&&a&&(o=l),o)return t.preventDefault(),void o.focus();var u=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null!=u&&"Chrome"!=u[1]&&null==/\biPod\b|\biPad\b/g.exec(navigator.userAgent)){var d=n.indexOf(c);if(d>-1&&(d+=a?-1:1),void 0===(o=n[d]))return t.preventDefault(),void(o=a?l:s).focus();t.preventDefault(),o.focus()}}else t.preventDefault()};var o,r=(o=n(2411))&&o.__esModule?o:{default:o};function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return e.activeElement.shadowRoot?i(e.activeElement.shadowRoot):e.activeElement}e.exports=t.default},2411:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){return[].slice.call(t.querySelectorAll("*"),0).reduce((function(t,n){return t.concat(n.shadowRoot?e(n.shadowRoot):[n])}),[]).filter(a)};var n="none",o="contents",r=/input|select|textarea|button|object|iframe/;function i(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;try{var r=window.getComputedStyle(e),i=r.getPropertyValue("display");return t?i!==o&&function(e,t){return"visible"!==t.getPropertyValue("overflow")||e.scrollWidth<=0&&e.scrollHeight<=0}(e,r):i===n}catch(e){return console.warn("Failed to inspect element style"),!1}}function a(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var n=isNaN(t);return(n||t>=0)&&function(e,t){var n=e.nodeName.toLowerCase();return(r.test(n)&&!e.disabled||"a"===n&&e.href||t)&&function(e){for(var t=e,n=e.getRootNode&&e.getRootNode();t&&t!==document.body;){if(n&&t===n&&(t=n.host.parentNode),i(t))return!1;t=t.parentNode}return!0}(e)}(e,!n)}e.exports=t.default},312:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r=(o=n(1720))&&o.__esModule?o:{default:o};t.default=r.default,e.exports=t.default},4210:(e,t,n)=>{"use strict";function o(e,t,n,o,r,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=o,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}const r={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach((e=>{r[e]=new o(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((([e,t])=>{r[e]=new o(e,1,!1,t,null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((e=>{r[e]=new o(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((e=>{r[e]=new o(e,2,!1,e,null,!1,!1)})),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach((e=>{r[e]=new o(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((e=>{r[e]=new o(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((e=>{r[e]=new o(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((e=>{r[e]=new o(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((e=>{r[e]=new o(e,5,!1,e.toLowerCase(),null,!1,!1)}));const i=/[\-\:]([a-z])/g,a=e=>e[1].toUpperCase();["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach((e=>{const t=e.replace(i,a);r[t]=new o(t,1,!1,e,null,!1,!1)})),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach((e=>{const t=e.replace(i,a);r[t]=new o(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((e=>{const t=e.replace(i,a);r[t]=new o(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((e=>{r[e]=new o(e,1,!1,e.toLowerCase(),null,!1,!1)})),r.xlinkHref=new o("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((e=>{r[e]=new o(e,1,!1,e.toLowerCase(),null,!0,!0)}));const{CAMELCASE:s,SAME:l,possibleStandardNames:c}=n(6811),u=RegExp.prototype.test.bind(new RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")),d=Object.keys(c).reduce(((e,t)=>{const n=c[t];return n===l?e[t]=t:n===s?e[t.toLowerCase()]=t:e[t]=n,e}),{});t.BOOLEAN=3,t.BOOLEANISH_STRING=2,t.NUMERIC=5,t.OVERLOADED_BOOLEAN=4,t.POSITIVE_NUMERIC=6,t.RESERVED=0,t.STRING=1,t.getPropertyInfo=function(e){return r.hasOwnProperty(e)?r[e]:null},t.isCustomAttribute=u,t.possibleStandardNames=d},6811:(e,t)=>{t.SAME=0,t.CAMELCASE=1,t.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}},5229:function(e,t,n){"use strict";var o=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n(1133)),r=n(8917);function i(e,t){var n={};return e&&"string"==typeof e?((0,o.default)(e,(function(e,o){e&&o&&(n[(0,r.camelCase)(e,t)]=o)})),n):n}i.default=i,e.exports=i},8917:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=void 0;var n=/^--[a-zA-Z0-9-]+$/,o=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,s=function(e,t){return t.toUpperCase()},l=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||r.test(e)||n.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(a,l):e.replace(i,l)).replace(o,s))}},1133:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(9788));t.default=function(e,t){var n=null;if(!e||"string"!=typeof e)return n;var o=(0,r.default)(e),i="function"==typeof t;return o.forEach((function(e){if("declaration"===e.type){var o=e.property,r=e.value;i?t(o,r,e):r&&((n=n||{})[o]=r)}})),n}},9771:e=>{"use strict";e.exports=function(){}},1609:e=>{"use strict";e.exports=window.React},5795:e=>{"use strict";e.exports=window.ReactDOM},6942:(e,t)=>{var n;!function(){"use strict";var o={}.hasOwnProperty;function r(){for(var e="",t=0;t{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e=n(1609);const t=window.wp.domReady;var o=n.n(t);const r=window.wp.element,i=window.wp.components,a=window.wp.i18n;var s=n(442);const l=s.default||s;var c=n(312),u=n.n(c);const d=Math.min,p=Math.max,f=Math.round,m=Math.floor,h=e=>({x:e,y:e}),v={left:"right",right:"left",bottom:"top",top:"bottom"},y={start:"end",end:"start"};function g(e,t,n){return p(e,d(t,n))}function b(e,t){return"function"==typeof e?e(t):e}function w(e){return e.split("-")[0]}function _(e){return e.split("-")[1]}function E(e){return"x"===e?"y":"x"}function x(e){return"y"===e?"height":"width"}function S(e){return["top","bottom"].includes(w(e))?"y":"x"}function O(e){return E(S(e))}function C(e){return e.replace(/start|end/g,(e=>y[e]))}function T(e){return e.replace(/left|right|bottom|top/g,(e=>v[e]))}function k(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function A(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function N(e,t,n){let{reference:o,floating:r}=e;const i=S(t),a=O(t),s=x(a),l=w(t),c="y"===i,u=o.x+o.width/2-r.width/2,d=o.y+o.height/2-r.height/2,p=o[s]/2-r[s]/2;let f;switch(l){case"top":f={x:u,y:o.y-r.height};break;case"bottom":f={x:u,y:o.y+o.height};break;case"right":f={x:o.x+o.width,y:d};break;case"left":f={x:o.x-r.width,y:d};break;default:f={x:o.x,y:o.y}}switch(_(t)){case"start":f[a]-=p*(n&&c?-1:1);break;case"end":f[a]+=p*(n&&c?-1:1)}return f}async function R(e,t){var n;void 0===t&&(t={});const{x:o,y:r,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:f=0}=b(t,e),m=k(f),h=s[p?"floating"===d?"reference":"floating":d],v=A(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),y="floating"===d?{...a.floating,x:o,y:r}:a.reference,g=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),w=await(null==i.isElement?void 0:i.isElement(g))&&await(null==i.getScale?void 0:i.getScale(g))||{x:1,y:1},_=A(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:g,strategy:l}):y);return{top:(v.top-_.top+m.top)/w.y,bottom:(_.bottom-v.bottom+m.bottom)/w.y,left:(v.left-_.left+m.left)/w.x,right:(_.right-v.right+m.right)/w.x}}const P=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:i,placement:a,middlewareData:s}=t,l=await async function(e,t){const{placement:n,platform:o,elements:r}=e,i=await(null==o.isRTL?void 0:o.isRTL(r.floating)),a=w(n),s=_(n),l="y"===S(n),c=["left","top"].includes(a)?-1:1,u=i&&l?-1:1,d=b(t,e);let{mainAxis:p,crossAxis:f,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&"number"==typeof m&&(f="end"===s?-1*m:m),l?{x:f*u,y:p*c}:{x:p*c,y:f*u}}(t,e);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(o=s.arrow)&&o.alignmentOffset?{}:{x:r+l.x,y:i+l.y,data:{...l,placement:a}}}}};function M(e){return j(e)?(e.nodeName||"").toLowerCase():"#document"}function L(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function D(e){var t;return null==(t=(j(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function j(e){return e instanceof Node||e instanceof L(e).Node}function I(e){return e instanceof Element||e instanceof L(e).Element}function F(e){return e instanceof HTMLElement||e instanceof L(e).HTMLElement}function H(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof L(e).ShadowRoot)}function B(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=q(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(r)}function U(e){return["table","td","th"].includes(M(e))}function W(e){const t=z(),n=q(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function z(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function V(e){return["html","body","#document"].includes(M(e))}function q(e){return L(e).getComputedStyle(e)}function $(e){return I(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function G(e){if("html"===M(e))return e;const t=e.assignedSlot||e.parentNode||H(e)&&e.host||D(e);return H(t)?t.host:t}function X(e){const t=G(e);return V(t)?e.ownerDocument?e.ownerDocument.body:e.body:F(t)&&B(t)?t:X(t)}function Y(e,t,n){var o;void 0===t&&(t=[]),void 0===n&&(n=!0);const r=X(e),i=r===(null==(o=e.ownerDocument)?void 0:o.body),a=L(r);return i?t.concat(a,a.visualViewport||[],B(r)?r:[],a.frameElement&&n?Y(a.frameElement):[]):t.concat(r,Y(r,[],n))}function K(e){const t=q(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=F(e),i=r?e.offsetWidth:n,a=r?e.offsetHeight:o,s=f(n)!==i||f(o)!==a;return s&&(n=i,o=a),{width:n,height:o,$:s}}function Z(e){return I(e)?e:e.contextElement}function J(e){const t=Z(e);if(!F(t))return h(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=K(t);let a=(i?f(n.width):n.width)/o,s=(i?f(n.height):n.height)/r;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Q=h(0);function ee(e){const t=L(e);return z()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Q}function te(e,t,n,o){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=e.getBoundingClientRect(),i=Z(e);let a=h(1);t&&(o?I(o)&&(a=J(o)):a=J(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==L(e))&&t}(i,n,o)?ee(i):h(0);let l=(r.left+s.x)/a.x,c=(r.top+s.y)/a.y,u=r.width/a.x,d=r.height/a.y;if(i){const e=L(i),t=o&&I(o)?L(o):o;let n=e,r=n.frameElement;for(;r&&o&&t!==n;){const e=J(r),t=r.getBoundingClientRect(),o=q(r),i=t.left+(r.clientLeft+parseFloat(o.paddingLeft))*e.x,a=t.top+(r.clientTop+parseFloat(o.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=i,c+=a,n=L(r),r=n.frameElement}}return A({width:u,height:d,x:l,y:c})}const ne=[":popover-open",":modal"];function oe(e){return ne.some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function re(e){return te(D(e)).left+$(e).scrollLeft}function ie(e,t,n){let o;if("viewport"===t)o=function(e,t){const n=L(e),o=D(e),r=n.visualViewport;let i=o.clientWidth,a=o.clientHeight,s=0,l=0;if(r){i=r.width,a=r.height;const e=z();(!e||e&&"fixed"===t)&&(s=r.offsetLeft,l=r.offsetTop)}return{width:i,height:a,x:s,y:l}}(e,n);else if("document"===t)o=function(e){const t=D(e),n=$(e),o=e.ownerDocument.body,r=p(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),i=p(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let a=-n.scrollLeft+re(e);const s=-n.scrollTop;return"rtl"===q(o).direction&&(a+=p(t.clientWidth,o.clientWidth)-r),{width:r,height:i,x:a,y:s}}(D(e));else if(I(t))o=function(e,t){const n=te(e,!0,"fixed"===t),o=n.top+e.clientTop,r=n.left+e.clientLeft,i=F(e)?J(e):h(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:r*i.x,y:o*i.y}}(t,n);else{const n=ee(e);o={...t,x:t.x-n.x,y:t.y-n.y}}return A(o)}function ae(e,t){const n=G(e);return!(n===t||!I(n)||V(n))&&("fixed"===q(n).position||ae(n,t))}function se(e,t,n){const o=F(t),r=D(t),i="fixed"===n,a=te(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=h(0);if(o||!o&&!i)if(("body"!==M(t)||B(r))&&(s=$(t)),o){const e=te(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else r&&(l.x=re(r));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function le(e,t){return F(e)&&"fixed"!==q(e).position?t?t(e):e.offsetParent:null}function ce(e,t){const n=L(e);if(!F(e)||oe(e))return n;let o=le(e,t);for(;o&&U(o)&&"static"===q(o).position;)o=le(o,t);return o&&("html"===M(o)||"body"===M(o)&&"static"===q(o).position&&!W(o))?n:o||function(e){let t=G(e);for(;F(t)&&!V(t);){if(W(t))return t;t=G(t)}return null}(e)||n}const ue={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const i="fixed"===r,a=D(o),s=!!t&&oe(t.floating);if(o===a||s&&i)return n;let l={scrollLeft:0,scrollTop:0},c=h(1);const u=h(0),d=F(o);if((d||!d&&!i)&&(("body"!==M(o)||B(a))&&(l=$(o)),F(o))){const e=te(o);c=J(o),u.x=e.x+o.clientLeft,u.y=e.y+o.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x,y:n.y*c.y-l.scrollTop*c.y+u.y}},getDocumentElement:D,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const i=[..."clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let o=Y(e,[],!1).filter((e=>I(e)&&"body"!==M(e))),r=null;const i="fixed"===q(e).position;let a=i?G(e):e;for(;I(a)&&!V(a);){const t=q(a),n=W(a);n||"fixed"!==t.position||(r=null),(i?!n&&!r:!n&&"static"===t.position&&r&&["absolute","fixed"].includes(r.position)||B(a)&&!n&&ae(e,a))?o=o.filter((e=>e!==a)):r=t,a=G(a)}return t.set(e,o),o}(t,this._c):[].concat(n),o],a=i[0],s=i.reduce(((e,n)=>{const o=ie(t,n,r);return e.top=p(o.top,e.top),e.right=d(o.right,e.right),e.bottom=d(o.bottom,e.bottom),e.left=p(o.left,e.left),e}),ie(t,a,r));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:ce,getElementRects:async function(e){const t=this.getOffsetParent||ce,n=this.getDimensions;return{reference:se(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,...await n(e.floating)}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=K(e);return{width:t,height:n}},getScale:J,isElement:I,isRTL:function(e){return"rtl"===q(e).direction}};const de=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=b(e,t),c={x:n,y:o},u=await R(t,l),d=S(w(r)),p=E(d);let f=c[p],m=c[d];if(i){const e="y"===p?"bottom":"right";f=g(f+u["y"===p?"top":"left"],f,f-u[e])}if(a){const e="y"===d?"bottom":"right";m=g(m+u["y"===d?"top":"left"],m,m-u[e])}const h=s.fn({...t,[p]:f,[d]:m});return{...h,data:{x:h.x-n,y:h.y-o}}}}},pe=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:i,rects:a,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,...v}=b(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const y=w(r),g=w(s)===s,E=await(null==l.isRTL?void 0:l.isRTL(c.floating)),S=p||(g||!h?[T(s)]:function(e){const t=T(e);return[C(e),t,C(t)]}(s));p||"none"===m||S.push(...function(e,t,n,o){const r=_(e);let i=function(e,t,n){const o=["left","right"],r=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?r:o:t?o:r;case"left":case"right":return t?i:a;default:return[]}}(w(e),"start"===n,o);return r&&(i=i.map((e=>e+"-"+r)),t&&(i=i.concat(i.map(C)))),i}(s,h,m,E));const k=[s,...S],A=await R(t,v),N=[];let P=(null==(o=i.flip)?void 0:o.overflows)||[];if(u&&N.push(A[y]),d){const e=function(e,t,n){void 0===n&&(n=!1);const o=_(e),r=O(e),i=x(r);let a="x"===r?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=T(a)),[a,T(a)]}(r,a,E);N.push(A[e[0]],A[e[1]])}if(P=[...P,{placement:r,overflows:N}],!N.every((e=>e<=0))){var M,L;const e=((null==(M=i.flip)?void 0:M.index)||0)+1,t=k[e];if(t)return{data:{index:e,overflows:P},reset:{placement:t}};let n=null==(L=P.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:L.placement;if(!n)switch(f){case"bestFit":{var D;const e=null==(D=P.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:D[0];e&&(n=e);break}case"initialPlacement":n=s}if(r!==n)return{reset:{placement:n}}}return{}}}},fe=(e,t,n)=>{const o=new Map,r={platform:ue,...n},i={...r.platform,_c:o};return(async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:d}=N(c,o,l),p=o,f={},m=0;for(let n=0;n{if(!e)return{tooltipStyles:{},tooltipArrowStyles:{},place:o};if(null===t)return{tooltipStyles:{},tooltipArrowStyles:{},place:o};const l=a;return n?(l.push({name:"arrow",options:c={element:n,padding:5},async fn(e){const{x:t,y:n,placement:o,rects:r,platform:i,elements:a,middlewareData:s}=e,{element:l,padding:u=0}=b(c,e)||{};if(null==l)return{};const p=k(u),f={x:t,y:n},m=O(o),h=x(m),v=await i.getDimensions(l),y="y"===m,w=y?"top":"left",E=y?"bottom":"right",S=y?"clientHeight":"clientWidth",C=r.reference[h]+r.reference[m]-f[m]-r.floating[h],T=f[m]-r.reference[m],A=await(null==i.getOffsetParent?void 0:i.getOffsetParent(l));let N=A?A[S]:0;N&&await(null==i.isElement?void 0:i.isElement(A))||(N=a.floating[S]||r.floating[h]);const R=C/2-T/2,P=N/2-v[h]/2-1,M=d(p[w],P),L=d(p[E],P),D=M,j=N-v[h]-L,I=N/2-v[h]/2+R,F=g(D,I,j),H=!s.arrow&&null!=_(o)&&I!==F&&r.reference[h]/2-(I{var r,i;const a={left:`${e}px`,top:`${t}px`,border:s},{x:l,y:c}=null!==(r=o.arrow)&&void 0!==r?r:{x:0,y:0},u=null!==(i={top:"bottom",right:"left",bottom:"top",left:"right"}[n.split("-")[0]])&&void 0!==i?i:"bottom",d=s&&{borderBottom:s,borderRight:s};let p=0;if(s){const e=`${s}`.match(/(\d+)px/);p=(null==e?void 0:e[1])?Number(e[1]):1}return{tooltipStyles:a,tooltipArrowStyles:{left:null!=l?`${l}px`:"",top:null!=c?`${c}px`:"",right:"",bottom:"",...d,[u]:`-${4+p}px`},place:n}}))):fe(e,t,{placement:"bottom",strategy:i,middleware:l}).then((({x:e,y:t,placement:n})=>({tooltipStyles:{left:`${e}px`,top:`${t}px`},tooltipArrowStyles:{},place:n})));var c},ge=(e,t)=>!("CSS"in window&&"supports"in window.CSS)||window.CSS.supports(e,t),be=(e,t,n)=>{let o=null;const r=function(...r){const i=()=>{o=null,n||e.apply(this,r)};n&&!o&&(e.apply(this,r),o=setTimeout(i,t)),n||(o&&clearTimeout(o),o=setTimeout(i,t))};return r.cancel=()=>{o&&(clearTimeout(o),o=null)},r},we=e=>null!==e&&!Array.isArray(e)&&"object"==typeof e,_e=(e,t)=>{if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&e.every(((e,n)=>_e(e,t[n])));if(Array.isArray(e)!==Array.isArray(t))return!1;if(!we(e)||!we(t))return e===t;const n=Object.keys(e),o=Object.keys(t);return n.length===o.length&&n.every((n=>_e(e[n],t[n])))},Ee=e=>{if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;const t=getComputedStyle(e);return["overflow","overflow-x","overflow-y"].some((e=>{const n=t.getPropertyValue(e);return"auto"===n||"scroll"===n}))},xe=e=>{if(!e)return null;let t=e.parentElement;for(;t;){if(Ee(t))return t;t=t.parentElement}return document.scrollingElement||document.documentElement},Se="undefined"!=typeof window?e.useLayoutEffect:e.useEffect,Oe={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},Ce=(0,e.createContext)({getTooltipData:()=>Oe});function Te(t="DEFAULT_TOOLTIP_ID"){return(0,e.useContext)(Ce).getTooltipData(t)}var ke={tooltip:"core-styles-module_tooltip__3vRRp",fixed:"core-styles-module_fixed__pcSol",arrow:"core-styles-module_arrow__cvMwQ",noArrow:"core-styles-module_noArrow__xock6",clickable:"core-styles-module_clickable__ZuTTB",show:"core-styles-module_show__Nt9eE",closing:"core-styles-module_closing__sGnxF"},Ae={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const Ne=({forwardRef:t,id:n,className:o,classNameArrow:r,variant:i="dark",anchorId:a,anchorSelect:s,place:l="top",offset:c=10,events:u=["hover"],openOnClick:f=!1,positionStrategy:h="absolute",middlewares:v,wrapper:y,delayShow:g=0,delayHide:b=0,float:w=!1,hidden:_=!1,noArrow:E=!1,clickable:x=!1,closeOnEsc:S=!1,closeOnScroll:O=!1,closeOnResize:C=!1,openEvents:T,closeEvents:k,globalCloseEvents:A,imperativeModeOnly:N,style:R,position:P,afterShow:M,afterHide:L,content:j,contentWrapperRef:I,isOpen:F,defaultIsOpen:H=!1,setIsOpen:B,activeAnchor:U,setActiveAnchor:W,border:z,opacity:V,arrowColor:q,role:$="tooltip"})=>{var G;const X=(0,e.useRef)(null),K=(0,e.useRef)(null),J=(0,e.useRef)(null),Q=(0,e.useRef)(null),ee=(0,e.useRef)(null),[ne,oe]=(0,e.useState)({tooltipStyles:{},tooltipArrowStyles:{},place:l}),[re,ie]=(0,e.useState)(!1),[ae,se]=(0,e.useState)(!1),[le,ce]=(0,e.useState)(null),ue=(0,e.useRef)(!1),de=(0,e.useRef)(null),{anchorRefs:pe,setActiveAnchor:fe}=Te(n),he=(0,e.useRef)(!1),[ve,ge]=(0,e.useState)([]),we=(0,e.useRef)(!1),Ee=f||u.includes("click"),Oe=Ee||(null==T?void 0:T.click)||(null==T?void 0:T.dblclick)||(null==T?void 0:T.mousedown),Ce=T?{...T}:{mouseenter:!0,focus:!0,click:!1,dblclick:!1,mousedown:!1};!T&&Ee&&Object.assign(Ce,{mouseenter:!1,focus:!1,click:!0});const Ne=k?{...k}:{mouseleave:!0,blur:!0,click:!1,dblclick:!1,mouseup:!1};!k&&Ee&&Object.assign(Ne,{mouseleave:!1,blur:!1});const Re=A?{...A}:{escape:S||!1,scroll:O||!1,resize:C||!1,clickOutsideAnchor:Oe||!1};N&&(Object.assign(Ce,{mouseenter:!1,focus:!1,click:!1,dblclick:!1,mousedown:!1}),Object.assign(Ne,{mouseleave:!1,blur:!1,click:!1,dblclick:!1,mouseup:!1}),Object.assign(Re,{escape:!1,scroll:!1,resize:!1,clickOutsideAnchor:!1})),Se((()=>(we.current=!0,()=>{we.current=!1})),[]);const Pe=e=>{we.current&&(e&&se(!0),setTimeout((()=>{we.current&&(null==B||B(e),void 0===F&&ie(e))}),10))};(0,e.useEffect)((()=>{if(void 0===F)return()=>null;F&&se(!0);const e=setTimeout((()=>{ie(F)}),10);return()=>{clearTimeout(e)}}),[F]),(0,e.useEffect)((()=>{if(re!==ue.current)if(ee.current&&clearTimeout(ee.current),ue.current=re,re)null==M||M();else{const e=(e=>{const t=getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay").match(/^([\d.]+)(ms|s)$/);if(!t)return 0;const[,n,o]=t;return Number(n)*("ms"===o?1:1e3)})();ee.current=setTimeout((()=>{se(!1),ce(null),null==L||L()}),e+25)}}),[re]);const Me=e=>{oe((t=>_e(t,e)?t:e))},Le=(e=g)=>{J.current&&clearTimeout(J.current),ae?Pe(!0):J.current=setTimeout((()=>{Pe(!0)}),e)},De=(e=b)=>{Q.current&&clearTimeout(Q.current),Q.current=setTimeout((()=>{he.current||Pe(!1)}),e)},je=e=>{var t;if(!e)return;const n=null!==(t=e.currentTarget)&&void 0!==t?t:e.target;if(!(null==n?void 0:n.isConnected))return W(null),void fe({current:null});g?Le():Pe(!0),W(n),fe({current:n}),Q.current&&clearTimeout(Q.current)},Ie=()=>{x?De(b||100):b?De():Pe(!1),J.current&&clearTimeout(J.current)},Fe=({x:e,y:t})=>{var n;const o={getBoundingClientRect:()=>({x:e,y:t,width:0,height:0,top:t,left:e,right:e,bottom:t})};ye({place:null!==(n=null==le?void 0:le.place)&&void 0!==n?n:l,offset:c,elementReference:o,tooltipReference:X.current,tooltipArrowReference:K.current,strategy:h,middlewares:v,border:z}).then((e=>{Me(e)}))},He=e=>{if(!e)return;const t=e,n={x:t.clientX,y:t.clientY};Fe(n),de.current=n},Be=e=>{var t;if(!re)return;const n=e.target;n.isConnected&&((null===(t=X.current)||void 0===t?void 0:t.contains(n))||[document.querySelector(`[id='${a}']`),...ve].some((e=>null==e?void 0:e.contains(n)))||(Pe(!1),J.current&&clearTimeout(J.current)))},Ue=be(je,50,!0),We=be(Ie,50,!0),ze=e=>{We.cancel(),Ue(e)},Ve=()=>{Ue.cancel(),We()},qe=(0,e.useCallback)((()=>{var e,t;const n=null!==(e=null==le?void 0:le.position)&&void 0!==e?e:P;n?Fe(n):w?de.current&&Fe(de.current):(null==U?void 0:U.isConnected)&&ye({place:null!==(t=null==le?void 0:le.place)&&void 0!==t?t:l,offset:c,elementReference:U,tooltipReference:X.current,tooltipArrowReference:K.current,strategy:h,middlewares:v,border:z}).then((e=>{we.current&&Me(e)}))}),[re,U,j,R,l,null==le?void 0:le.place,c,h,P,null==le?void 0:le.position,w]);(0,e.useEffect)((()=>{var e,t;const n=new Set(pe);ve.forEach((e=>{n.add({current:e})}));const o=document.querySelector(`[id='${a}']`);o&&n.add({current:o});const r=()=>{Pe(!1)},i=xe(U),s=xe(X.current);Re.scroll&&(window.addEventListener("scroll",r),null==i||i.addEventListener("scroll",r),null==s||s.addEventListener("scroll",r));let l=null;Re.resize?window.addEventListener("resize",r):U&&X.current&&(l=function(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=o,c=Z(e),u=r||i?[...c?Y(c):[],...Y(t)]:[];u.forEach((e=>{r&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const f=c&&s?function(e,t){let n,o=null;const r=D(e);function i(){var e;clearTimeout(n),null==(e=o)||e.disconnect(),o=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),i();const{left:c,top:u,width:f,height:h}=e.getBoundingClientRect();if(s||t(),!f||!h)return;const v={rootMargin:-m(u)+"px "+-m(r.clientWidth-(c+f))+"px "+-m(r.clientHeight-(u+h))+"px "+-m(c)+"px",threshold:p(0,d(1,l))||1};let y=!0;function g(e){const t=e[0].intersectionRatio;if(t!==l){if(!y)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),100)}y=!1}try{o=new IntersectionObserver(g,{...v,root:r.ownerDocument})}catch(e){o=new IntersectionObserver(g,v)}o.observe(e)}(!0),i}(c,n):null;let h,v=-1,y=null;a&&(y=new ResizeObserver((e=>{let[o]=e;o&&o.target===c&&y&&(y.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame((()=>{var e;null==(e=y)||e.observe(t)}))),n()})),c&&!l&&y.observe(c),y.observe(t));let g=l?te(e):null;return l&&function t(){const o=te(e);!g||o.x===g.x&&o.y===g.y&&o.width===g.width&&o.height===g.height||n(),g=o,h=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{r&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==f||f(),null==(e=y)||e.disconnect(),y=null,l&&cancelAnimationFrame(h)}}(U,X.current,qe,{ancestorResize:!0,elementResize:!0,layoutShift:!0}));const c=e=>{"Escape"===e.key&&Pe(!1)};Re.escape&&window.addEventListener("keydown",c),Re.clickOutsideAnchor&&window.addEventListener("click",Be);const u=[],f=e=>{re&&(null==e?void 0:e.target)===U||je(e)},h=e=>{re&&(null==e?void 0:e.target)===U&&Ie()},v=["mouseenter","mouseleave","focus","blur"],y=["click","dblclick","mousedown","mouseup"];Object.entries(Ce).forEach((([e,t])=>{t&&(v.includes(e)?u.push({event:e,listener:ze}):y.includes(e)&&u.push({event:e,listener:f}))})),Object.entries(Ne).forEach((([e,t])=>{t&&(v.includes(e)?u.push({event:e,listener:Ve}):y.includes(e)&&u.push({event:e,listener:h}))})),w&&u.push({event:"pointermove",listener:He});const g=()=>{he.current=!0},b=()=>{he.current=!1,Ie()};return x&&!Oe&&(null===(e=X.current)||void 0===e||e.addEventListener("mouseenter",g),null===(t=X.current)||void 0===t||t.addEventListener("mouseleave",b)),u.forEach((({event:e,listener:t})=>{n.forEach((n=>{var o;null===(o=n.current)||void 0===o||o.addEventListener(e,t)}))})),()=>{var e,t;Re.scroll&&(window.removeEventListener("scroll",r),null==i||i.removeEventListener("scroll",r),null==s||s.removeEventListener("scroll",r)),Re.resize?window.removeEventListener("resize",r):null==l||l(),Re.clickOutsideAnchor&&window.removeEventListener("click",Be),Re.escape&&window.removeEventListener("keydown",c),x&&!Oe&&(null===(e=X.current)||void 0===e||e.removeEventListener("mouseenter",g),null===(t=X.current)||void 0===t||t.removeEventListener("mouseleave",b)),u.forEach((({event:e,listener:t})=>{n.forEach((n=>{var o;null===(o=n.current)||void 0===o||o.removeEventListener(e,t)}))}))}}),[U,qe,ae,pe,ve,T,k,A,Ee,g,b]),(0,e.useEffect)((()=>{var e,t;let o=null!==(t=null!==(e=null==le?void 0:le.anchorSelect)&&void 0!==e?e:s)&&void 0!==t?t:"";!o&&n&&(o=`[data-tooltip-id='${n}']`);const r=new MutationObserver((e=>{const t=[],r=[];e.forEach((e=>{if("attributes"===e.type&&"data-tooltip-id"===e.attributeName&&(e.target.getAttribute("data-tooltip-id")===n?t.push(e.target):e.oldValue===n&&r.push(e.target)),"childList"===e.type){if(U){const t=[...e.removedNodes].filter((e=>1===e.nodeType));if(o)try{r.push(...t.filter((e=>e.matches(o)))),r.push(...t.flatMap((e=>[...e.querySelectorAll(o)])))}catch(e){}t.some((e=>{var t;return!!(null===(t=null==e?void 0:e.contains)||void 0===t?void 0:t.call(e,U))&&(se(!1),Pe(!1),W(null),J.current&&clearTimeout(J.current),Q.current&&clearTimeout(Q.current),!0)}))}if(o)try{const n=[...e.addedNodes].filter((e=>1===e.nodeType));t.push(...n.filter((e=>e.matches(o)))),t.push(...n.flatMap((e=>[...e.querySelectorAll(o)])))}catch(e){}}})),(t.length||r.length)&&ge((e=>[...e.filter((e=>!r.includes(e))),...t]))}));return r.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"],attributeOldValue:!0}),()=>{r.disconnect()}}),[n,s,null==le?void 0:le.anchorSelect,U]),(0,e.useEffect)((()=>{qe()}),[qe]),(0,e.useEffect)((()=>{if(!(null==I?void 0:I.current))return()=>null;const e=new ResizeObserver((()=>{setTimeout((()=>qe()))}));return e.observe(I.current),()=>{e.disconnect()}}),[j,null==I?void 0:I.current]),(0,e.useEffect)((()=>{var e;const t=document.querySelector(`[id='${a}']`),n=[...ve,t];U&&n.includes(U)||W(null!==(e=ve[0])&&void 0!==e?e:t)}),[a,ve,U]),(0,e.useEffect)((()=>(H&&Pe(!0),()=>{J.current&&clearTimeout(J.current),Q.current&&clearTimeout(Q.current)})),[]),(0,e.useEffect)((()=>{var e;let t=null!==(e=null==le?void 0:le.anchorSelect)&&void 0!==e?e:s;if(!t&&n&&(t=`[data-tooltip-id='${n}']`),t)try{const e=Array.from(document.querySelectorAll(t));ge(e)}catch(e){ge([])}}),[n,s,null==le?void 0:le.anchorSelect]),(0,e.useEffect)((()=>{J.current&&(clearTimeout(J.current),Le(g))}),[g]);const $e=null!==(G=null==le?void 0:le.content)&&void 0!==G?G:j,Ge=re&&Object.keys(ne.tooltipStyles).length>0;return(0,e.useImperativeHandle)(t,(()=>({open:e=>{if(null==e?void 0:e.anchorSelect)try{document.querySelector(e.anchorSelect)}catch(t){return void console.warn(`[react-tooltip] "${e.anchorSelect}" is not a valid CSS selector`)}ce(null!=e?e:null),(null==e?void 0:e.delay)?Le(e.delay):Pe(!0)},close:e=>{(null==e?void 0:e.delay)?De(e.delay):Pe(!1)},activeAnchor:U,place:ne.place,isOpen:Boolean(ae&&!_&&$e&&Ge)}))),ae&&!_&&$e?e.createElement(y,{id:n,role:$,className:me("react-tooltip",ke.tooltip,Ae.tooltip,Ae[i],o,`react-tooltip__place-${ne.place}`,ke[Ge?"show":"closing"],Ge?"react-tooltip__show":"react-tooltip__closing","fixed"===h&&ke.fixed,x&&ke.clickable),onTransitionEnd:e=>{ee.current&&clearTimeout(ee.current),re||"opacity"!==e.propertyName||(se(!1),ce(null),null==L||L())},style:{...R,...ne.tooltipStyles,opacity:void 0!==V&&Ge?V:void 0},ref:X},$e,e.createElement(y,{className:me("react-tooltip-arrow",ke.arrow,Ae.arrow,r,E&&ke.noArrow),style:{...ne.tooltipArrowStyles,background:q?`linear-gradient(to right bottom, transparent 50%, ${q} 50%)`:void 0},ref:K})):null},Re=({content:t})=>e.createElement("span",{dangerouslySetInnerHTML:{__html:t}}),Pe=e.forwardRef((({id:t,anchorId:n,anchorSelect:o,content:r,html:i,render:a,className:s,classNameArrow:l,variant:c="dark",place:u="top",offset:d=10,wrapper:p="div",children:f=null,events:m=["hover"],openOnClick:h=!1,positionStrategy:v="absolute",middlewares:y,delayShow:g=0,delayHide:b=0,float:w=!1,hidden:_=!1,noArrow:E=!1,clickable:x=!1,closeOnEsc:S=!1,closeOnScroll:O=!1,closeOnResize:C=!1,openEvents:T,closeEvents:k,globalCloseEvents:A,imperativeModeOnly:N=!1,style:R,position:P,isOpen:M,defaultIsOpen:L=!1,disableStyleInjection:D=!1,border:j,opacity:I,arrowColor:F,setIsOpen:H,afterShow:B,afterHide:U,role:W="tooltip"},z)=>{const[V,q]=(0,e.useState)(r),[$,G]=(0,e.useState)(i),[X,Y]=(0,e.useState)(u),[K,Z]=(0,e.useState)(c),[J,Q]=(0,e.useState)(d),[ee,te]=(0,e.useState)(g),[ne,oe]=(0,e.useState)(b),[re,ie]=(0,e.useState)(w),[ae,se]=(0,e.useState)(_),[le,ce]=(0,e.useState)(p),[ue,de]=(0,e.useState)(m),[pe,fe]=(0,e.useState)(v),[he,ve]=(0,e.useState)(null),[ye,be]=(0,e.useState)(null),we=(0,e.useRef)(D),{anchorRefs:_e,activeAnchor:Ee}=Te(t),xe=e=>null==e?void 0:e.getAttributeNames().reduce(((t,n)=>{var o;return n.startsWith("data-tooltip-")&&(t[n.replace(/^data-tooltip-/,"")]=null!==(o=null==e?void 0:e.getAttribute(n))&&void 0!==o?o:null),t}),{}),Se=e=>{const t={place:e=>{var t;Y(null!==(t=e)&&void 0!==t?t:u)},content:e=>{q(null!=e?e:r)},html:e=>{G(null!=e?e:i)},variant:e=>{var t;Z(null!==(t=e)&&void 0!==t?t:c)},offset:e=>{Q(null===e?d:Number(e))},wrapper:e=>{var t;ce(null!==(t=e)&&void 0!==t?t:p)},events:e=>{const t=null==e?void 0:e.split(" ");de(null!=t?t:m)},"position-strategy":e=>{var t;fe(null!==(t=e)&&void 0!==t?t:v)},"delay-show":e=>{te(null===e?g:Number(e))},"delay-hide":e=>{oe(null===e?b:Number(e))},float:e=>{ie(null===e?w:"true"===e)},hidden:e=>{se(null===e?_:"true"===e)},"class-name":e=>{ve(e)}};Object.values(t).forEach((e=>e(null))),Object.entries(e).forEach((([e,n])=>{var o;null===(o=t[e])||void 0===o||o.call(t,n)}))};(0,e.useEffect)((()=>{q(r)}),[r]),(0,e.useEffect)((()=>{G(i)}),[i]),(0,e.useEffect)((()=>{Y(u)}),[u]),(0,e.useEffect)((()=>{Z(c)}),[c]),(0,e.useEffect)((()=>{Q(d)}),[d]),(0,e.useEffect)((()=>{te(g)}),[g]),(0,e.useEffect)((()=>{oe(b)}),[b]),(0,e.useEffect)((()=>{ie(w)}),[w]),(0,e.useEffect)((()=>{se(_)}),[_]),(0,e.useEffect)((()=>{fe(v)}),[v]),(0,e.useEffect)((()=>{we.current!==D&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")}),[D]),(0,e.useEffect)((()=>{"undefined"!=typeof window&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:"core"===D,disableBase:D}}))}),[]),(0,e.useEffect)((()=>{var e;const r=new Set(_e);let i=o;if(!i&&t&&(i=`[data-tooltip-id='${t}']`),i)try{document.querySelectorAll(i).forEach((e=>{r.add({current:e})}))}catch(e){console.warn(`[react-tooltip] "${i}" is not a valid CSS selector`)}const a=document.querySelector(`[id='${n}']`);if(a&&r.add({current:a}),!r.size)return()=>null;const s=null!==(e=null!=ye?ye:a)&&void 0!==e?e:Ee.current,l=new MutationObserver((e=>{e.forEach((e=>{var t;if(!s||"attributes"!==e.type||!(null===(t=e.attributeName)||void 0===t?void 0:t.startsWith("data-tooltip-")))return;const n=xe(s);Se(n)}))})),c={attributes:!0,childList:!1,subtree:!1};if(s){const e=xe(s);Se(e),l.observe(s,c)}return()=>{l.disconnect()}}),[_e,Ee,ye,n,o]),(0,e.useEffect)((()=>{(null==R?void 0:R.border)&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),j&&!ge("border",`${j}`)&&console.warn(`[react-tooltip] "${j}" is not a valid \`border\`.`),(null==R?void 0:R.opacity)&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),I&&!ge("opacity",`${I}`)&&console.warn(`[react-tooltip] "${I}" is not a valid \`opacity\`.`)}),[]);let Oe=f;const Ce=(0,e.useRef)(null);if(a){const t=a({content:(null==ye?void 0:ye.getAttribute("data-tooltip-content"))||V||null,activeAnchor:ye});Oe=t?e.createElement("div",{ref:Ce,className:"react-tooltip-content-wrapper"},t):null}else V&&(Oe=V);$&&(Oe=e.createElement(Re,{content:$}));const ke={forwardRef:z,id:t,anchorId:n,anchorSelect:o,className:me(s,he),classNameArrow:l,content:Oe,contentWrapperRef:Ce,place:X,variant:K,offset:J,wrapper:le,events:ue,openOnClick:h,positionStrategy:pe,middlewares:y,delayShow:ee,delayHide:ne,float:re,hidden:ae,noArrow:E,clickable:x,closeOnEsc:S,closeOnScroll:O,closeOnResize:C,openEvents:T,closeEvents:k,globalCloseEvents:A,imperativeModeOnly:N,style:R,position:P,isOpen:M,defaultIsOpen:L,border:j,opacity:I,arrowColor:F,setIsOpen:H,afterShow:B,afterHide:U,activeAnchor:ye,setActiveAnchor:e=>be(e),role:W};return e.createElement(Ne,{...ke})}));"undefined"!=typeof window&&window.addEventListener("react-tooltip-inject-styles",(e=>{e.detail.disableCore||ve({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in}",type:"core"}),e.detail.disableBase||ve({css:"\n.styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:8px;height:8px}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}",type:"base"})}));const Me=window.wp.apiFetch;var Le=n.n(Me);const De=({type:t="upcoming",status:n="no_status"})=>{const o={upcoming:{attending:{icon:"dashicons dashicons-yes-alt",text:(0,a._x)("Attending","Responded Status","gatherpress")},waiting_list:{icon:"dashicons dashicons-editor-help",text:(0,a._x)("Waiting List","Responded Status","gatherpress")},not_attending:{icon:"dashicons dashicons-dismiss",text:(0,a._x)("Not Attending","Responded Status","gatherpress")},no_status:{icon:"",text:""}},past:{attending:{icon:"dashicons dashicons-yes-alt",text:(0,a._x)("Went","Responded Status","gatherpress")},waiting_list:{icon:"dashicons dashicons-dismiss",text:(0,a._x)("Didn't Go","Responded Status","gatherpress")},not_attending:{icon:"dashicons dashicons-dismiss",text:(0,a._x)("Didn't Go","Responded Status","gatherpress")},no_status:{icon:"dashicons dashicons-dismiss",text:(0,a._x)("Didn't Go","Responded Status","gatherpress")}}};return(0,e.createElement)("div",{className:"gatherpress-status__response"},(0,e.createElement)("span",{className:o[t][n].icon}),(0,e.createElement)("strong",null,o[t][n].text))};function je(e){if("object"==typeof GatherPress)return e.split(".").reduce(((e,t)=>e&&e[t]),GatherPress)}window.wp.data;const Ie=({postId:t,currentUser:n="",type:o,enableAnonymousRsvp:s,enableInitialDecline:c,maxGuestLimit:d})=>{const[p,f]=(0,r.useState)(n.status),[m,h]=(0,r.useState)(Number(n.anonymous)),[v,y]=(0,r.useState)(n.guests),[g,b]=(0,r.useState)("hidden"),[w,_]=(0,r.useState)("false"),[E,x]=(0,r.useState)(!1);if("past"===o)return"";"undefined"==typeof adminpage&&u().setAppElement(".gatherpress-enabled");const S=e=>{e.preventDefault(),x(!1)},O=async(e,n,o,r=0,i=!0)=>{e.preventDefault(),"attending"!==n&&(r=0),Le()({path:je("urls.eventRestApi")+"/rsvp",method:"POST",data:{post_id:t,status:n,guests:r,anonymous:o,_wpnonce:je("misc.nonce")}}).then((t=>{if(t.success){f(t.status),y(t.guests);const n={all:0,attending:0,not_attending:0,waiting_list:0};for(const[e,o]of Object.entries(t.responses))n[e]=o.count;((e,t="")=>{for(const[n,o]of Object.entries(e)){let e=n;t&&(e+="_"+String(t));const r=new CustomEvent(e,{detail:o});dispatchEvent(r)}})({setRsvpStatus:t.status,setRsvpResponse:t.responses,setRsvpCount:n,setRsvpSeeAllLink:n[t.status]>8,setOnlineEventLink:t.online_link},t.event_id),i&&S(e)}}))},C=e=>{switch(e){case"attending":return(0,a.__)("You're attending","gatherpress");case"waiting_list":return(0,a.__)("You're wait listed","gatherpress");case"not_attending":return(0,a.__)("You're not attending","gatherpress")}return(0,a.__)("RSVP to this event","gatherpress")};return(0,e.createElement)("div",{className:"gatherpress-rsvp"},(0,e.createElement)(i.ButtonGroup,{className:"gatherpress-buttons wp-block-buttons"},(0,e.createElement)("div",{className:"gatherpress-buttons__container wp-block-button"},(0,e.createElement)("a",{href:"#",className:"gatherpress-buttons__button wp-block-button__link","aria-expanded":w,tabIndex:"0",onKeyDown:e=>{13===e.keyCode&&(b("hidden"===g?"show":"hidden"),_("false"===w?"true":"false"))},onClick:e=>(e=>{e.preventDefault(),x(!0)})(e)},(e=>{switch(e){case"attending":case"waiting_list":case"not_attending":return(0,a.__)("Edit RSVP","gatherpress")}return(0,a.__)("RSVP","gatherpress")})(p))),(0,e.createElement)(u(),{isOpen:E,onRequestClose:S,style:{overlay:{zIndex:999999999},content:{top:"50%",left:"50%",right:"auto",bottom:"auto",marginRight:"-50%",transform:"translate(-50%, -50%)"}},contentLabel:(0,a.__)("Edit RSVP","gatherpress")},0===n.length&&(0,e.createElement)((()=>(0,e.createElement)("div",{className:"gatherpress-modal gatherpress-modal__rsvp"},(0,e.createElement)("div",{className:"gatherpress-modal__header"},(0,a.__)("Login Required","gatherpress")),(0,e.createElement)("div",{className:"gatherpress-modal__content"},(0,e.createElement)("div",{className:"gatherpress-modal__text"},l((0,a.sprintf)(/* translators: %s: 'Login' (hyperlinked) */ /* translators: %s: 'Login' (hyperlinked) */ -(0,a.__)("You must %s to RSVP to events.","gatherpress"),`\n\t\t\t\t\t\t\t\t\t${(0,a._x)("Login","Context: You must ~ to RSVP to events.","gatherpress")}\n\t\t\t\t\t\t\t\t`))),""!==je("urls.registrationUrl")&&(0,e.createElement)("div",{className:"gatherpress-modal__text"},l((0,a.sprintf)(/* translators: %s: 'Register' (hyperlinked) */ /* translators: %s: 'Register' (hyperlinked) */ -(0,a.__)("%s if you do not have an account.","gatherpress"),`\n\t\t\t\t\t\t\t\t\t\t${(0,a._x)("Register","Context: ~ if you do not have an account.","gatherpress")}\n\t\t\t\t\t\t\t\t\t`)))),(0,e.createElement)(i.ButtonGroup,{className:"gatherpress-buttons wp-block-buttons"},(0,e.createElement)("div",{className:"gatherpress-buttons__container wp-block-button"},(0,e.createElement)("a",{href:"#",onClick:S,className:"gatherpress-buttons__button wp-block-button__link"},(0,a.__)("Close","gatherpress")))))),null),0!==n.length&&(0,e.createElement)((({status:t})=>{let n="",o="";return"not_attending"===t||"no_status"===t?(n="attending",o=(0,a.__)("Attend","gatherpress")):(n="not_attending",o=(0,a._x)("Not Attending","action of not attending","gatherpress")),(0,e.createElement)("div",{className:"gatherpress-modal gatherpress-modal__rsvp"},(0,e.createElement)("div",{className:"gatherpress-modal__header"},C(p)?C(p):(0,e.createElement)(i.Spinner,null)),(0,e.createElement)("div",{className:"gatherpress-modal__content"},(0,e.createElement)("div",{className:"gatherpress-modal__text"},l((0,a.sprintf)(/* translators: %s: button label. */ /* translators: %s: button label. */ -(0,a.__)("To set or change your attending status, simply click the %s button below.","gatherpress"),""+o+""))),0{const t=Number(e.target.value);y(t),O(e,p,m,t,!1)},defaultValue:v})),s&&(0,e.createElement)("div",{className:"gatherpress-modal__anonymous"},(0,e.createElement)("input",{id:"gatherpress-anonymous",type:"checkbox",onChange:e=>{const t=Number(e.target.checked);h(t),O(e,p,t,0,!1)},checked:m}),(0,e.createElement)("label",{htmlFor:"gatherpress-anonymous",tabIndex:"0",className:"gatherpress-tooltip","data-tooltip-id":"gatherpress-anonymous-tooltip","data-tooltip-content":(0,a.__)("Only admins will see your identity.","gatherpress")},(0,a.__)("List me as anonymous.","gatherpress")),(0,e.createElement)(Pe,{id:"gatherpress-anonymous-tooltip"}))),(0,e.createElement)(i.ButtonGroup,{className:"gatherpress-buttons wp-block-buttons"},(0,e.createElement)("div",{className:"gatherpress-buttons__container wp-block-button is-style-outline"},(0,e.createElement)("a",{href:"#",onClick:e=>O(e,n,m,"not_attending"!==n?v:0,"not_attending"===n),className:"gatherpress-buttons__button wp-block-button__link"},o)),(0,e.createElement)("div",{className:"gatherpress-buttons__container wp-block-button"},(0,e.createElement)("a",{href:"#",onClick:S,className:"gatherpress-buttons__button wp-block-button__link"},(0,a.__)("Close","gatherpress")))),c&&"no_status"===p&&1!==m?(0,e.createElement)(i.ButtonGroup,{className:"gatherpress-buttons wp-block-buttons"},(0,e.createElement)("div",{className:"gatherpress-buttons__container wp-block-button"},(0,e.createElement)("a",{href:"#",onClick:e=>O(e,"not_attending",null),className:"gatherpress-buttons__text-link"},(0,a._x)("Not Attending","Responded Status","gatherpress")))):(0,e.createElement)(e.Fragment,null))}),{status:p}))),"no_status"!==p&&(0,e.createElement)("div",{className:"gatherpress-status"},(0,e.createElement)(De,{type:o,status:p}),0{const[a,s]=(0,r.useState)(i);((e,t="")=>{for(const[n,o]of Object.entries(e)){let e=n;t&&(e+="_"+String(t)),addEventListener(e,(e=>{o(e.detail)}),!1)}})({setRsvpResponse:s},t);let l="";return"object"==typeof a&&void 0!==a[n]&&(i=[...a[n].responses],o&&(i=i.splice(0,o)),l=i.map(((t,n)=>{const{name:o,photo:r}=t;return(0,e.createElement)("figure",{key:n,className:"gatherpress-rsvp-response__member-avatar"},(0,e.createElement)("img",{alt:o,title:o,src:r}))}))),(0,e.createElement)(e.Fragment,null,l)},He=t=>{const{type:n,event:o,eventOptions:r}=t,i="default"===r.imageSize?"featured_image":"featured_image_"+r.imageSize,a=l(o[i]),s="gatherpress-events-list";let c="location";const u=o.venue?.is_online_event;return u&&(c="video-alt2"),(0,e.createElement)("div",{className:`${s}`},(0,e.createElement)("div",{className:`${s}__header`},(0,e.createElement)("div",{className:`${s}__info`},r.showFeaturedImage&&(0,e.createElement)("figure",{className:`${s}__image`},(0,e.createElement)("a",{href:o.permalink},a)),(0,e.createElement)("div",{className:`${s}__datetime`},(0,e.createElement)("strong",null,o.datetime_start)),(0,e.createElement)("div",{className:`${s}__title`},(0,e.createElement)("a",{href:o.permalink},l(o.title))),o.venue&&r.showVenue&&(0,e.createElement)("div",{className:`${s}__venue`},(0,e.createElement)("span",{className:`dashicons dashicons-${c}`}),!u&&(0,e.createElement)("a",{href:o.venue.permalink},l(o.venue.name)),u&&(0,e.createElement)("span",null,l(o.venue.name))),r.showDescription&&(0,e.createElement)("div",{className:`${s}__content`},(0,e.createElement)("div",{className:`${s}__excerpt`},l(o.excerpt.split(" ").splice(0,parseInt(r.descriptionLimit)).join(" ")+"[…]"))))),(0,e.createElement)("div",{className:`${s}__footer`},r.showRsvpResponse&&(0,e.createElement)("div",{className:"gatherpress-rsvp-response__items"},(0,e.createElement)(Fe,{postId:o.ID,value:"attending",responses:o.responses,limit:"3"})),"upcoming"===n&&r.showRsvp&&(0,e.createElement)(Ie,{postId:o.ID,currentUser:o.current_user,type:n,enableAnonymousRsvp:o.gatherpress_enable_anonymous_rsvp,enableInitialDecline:o.gatherpress_enable_initial_decline}),"past"===n&&r.showRsvp&&""!==o.current_user&&(0,e.createElement)(De,{type:n,status:o.current_user?.status})))},Be=t=>{const{eventOptions:n,maxNumberOfEvents:o,datetimeFormat:s,type:l,topics:c,venues:u}=t,[d,p]=(0,r.useState)([]),[f,m]=(0,r.useState)(!1),h=d.map((t=>(0,e.createElement)(He,{key:t.ID,eventOptions:n,type:l,event:t})));return(0,r.useEffect)((()=>{let e="",t="";"object"==typeof c&&(e=c.map((e=>e.slug))?.join(",")),"object"==typeof u&&(t=u.map((e=>e.slug))?.join(","));const n=je("urls.eventRestApi")+`/events-list?event_list_type=${l}&max_number=${o}&datetime_format=${s}&topics=${e}&venues=${t}`;je("misc.isUserLoggedIn")?Le()({path:n}).then((e=>{m(!0),p(e)})):fetch(n).then((e=>e.json())).then((e=>{m(!0),p(e)}))}),[p,o,s,l,c,u]),(0,e.createElement)("div",{className:`gatherpress-${l}-events-list`},!f&&(0,e.createElement)(i.Spinner,null),f&&0===d.length&&(()=>{const t="upcoming"===l?(0,a.__)("There are no upcoming events.","gatherpress"):(0,a.__)("There are no past events.","gatherpress");return(0,e.createElement)("div",{className:`gatherpress-${l}-events__no_events_message`},t)})(),f&&h)};o()((()=>{const t=document.querySelectorAll('[data-gatherpress_block_name="events-list"]');for(let l=0;l{var e={5413:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(n=t.ElementType||(t.ElementType={})),t.isTag=function(e){return e.type===n.Tag||e.type===n.Script||e.type===n.Style},t.Root=n.Root,t.Text=n.Text,t.Directive=n.Directive,t.Comment=n.Comment,t.Script=n.Script,t.Style=n.Style,t.Tag=n.Tag,t.CDATA=n.CDATA,t.Doctype=n.Doctype},1141:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,r)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var i=n(5413),a=n(6957);r(n(6957),t);var s={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},l=function(){function e(e,t,n){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=s),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:s,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?i.ElementType.Tag:void 0,o=new a.Element(e,t,void 0,n);this.addNode(o),this.tagStack.push(o)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===i.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var n=new a.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===i.ElementType.Comment)this.lastNode.data+=e;else{var t=new a.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new a.Text(""),t=new a.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new a.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=l,t.default=l},6957:function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,o=arguments.length;n0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(s);t.NodeWithChildren=p;var f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.CDATA,t}return r(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(p);t.CDATA=f;var m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.Root,t}return r(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(p);t.Document=m;var h=function(e){function t(t,n,o,r){void 0===o&&(o=[]),void 0===r&&(r="script"===t?a.ElementType.Script:"style"===t?a.ElementType.Style:a.ElementType.Tag);var i=e.call(this,o)||this;return i.name=t,i.attribs=n,i.type=r,i}return r(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var n,o;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(o=e["x-attribsPrefix"])||void 0===o?void 0:o[t]}}))},enumerable:!1,configurable:!0}),t}(p);function v(e){return(0,a.isTag)(e)}function y(e){return e.type===a.ElementType.CDATA}function g(e){return e.type===a.ElementType.Text}function b(e){return e.type===a.ElementType.Comment}function w(e){return e.type===a.ElementType.Directive}function _(e){return e.type===a.ElementType.Root}function E(e,t){var n;if(void 0===t&&(t=!1),g(e))n=new c(e.data);else if(b(e))n=new u(e.data);else if(v(e)){var o=t?x(e.children):[],r=new h(e.name,i({},e.attribs),o);o.forEach((function(e){return e.parent=r})),null!=e.namespace&&(r.namespace=e.namespace),e["x-attribsNamespace"]&&(r["x-attribsNamespace"]=i({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(r["x-attribsPrefix"]=i({},e["x-attribsPrefix"])),n=r}else if(y(e)){o=t?x(e.children):[];var a=new f(o);o.forEach((function(e){return e.parent=a})),n=a}else if(_(e)){o=t?x(e.children):[];var s=new m(o);o.forEach((function(e){return e.parent=s})),e["x-mode"]&&(s["x-mode"]=e["x-mode"]),n=s}else{if(!w(e))throw new Error("Not implemented yet: ".concat(e.type));var l=new d(e.name,e.data);null!=e["x-name"]&&(l["x-name"]=e["x-name"],l["x-publicId"]=e["x-publicId"],l["x-systemId"]=e["x-systemId"]),n=l}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function x(e){for(var t=e.map((function(e){return E(e,!0)})),n=1;n{var o;!function(){"use strict";var r=!("undefined"==typeof window||!window.document||!window.document.createElement),i={canUseDOM:r,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:r&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:r&&!!window.screen};void 0===(o=function(){return i}.call(t,n,t,e))||(e.exports=o)}()},5270:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES=void 0,t.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES.reduce((function(e,t){return e[t.toLowerCase()]=t,e}),{})},5496:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="html",o="head",r="body",i=/<([a-zA-Z]+[0-9]?)/,a=//i,s=//i,l=function(e,t){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},c=function(e,t){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},u="object"==typeof window&&window.DOMParser;if("function"==typeof u){var d=new u;l=c=function(e,t){return t&&(e="<".concat(t,">").concat(e,"")),d.parseFromString(e,"text/html")}}if("object"==typeof document&&document.implementation){var p=document.implementation.createHTMLDocument();l=function(e,t){if(t){var n=p.documentElement.querySelector(t);return n&&(n.innerHTML=e),p}return p.documentElement.innerHTML=e,p}}var f,m="object"==typeof document&&document.createElement("template");m&&m.content&&(f=function(e){return m.innerHTML=e,m.content.childNodes}),t.default=function(e){var t,u,d=e.match(i),p=d&&d[1]?d[1].toLowerCase():"";switch(p){case n:var m=c(e);return a.test(e)||null===(t=null==(v=m.querySelector(o))?void 0:v.parentNode)||void 0===t||t.removeChild(v),s.test(e)||null===(u=null==(v=m.querySelector(r))?void 0:v.parentNode)||void 0===u||u.removeChild(v),m.querySelectorAll(n);case o:case r:var h=l(e).querySelectorAll(p);return s.test(e)&&a.test(e)?h[0].parentNode.childNodes:h;default:return f?f(e):(v=l(e,r).querySelector(r)).childNodes;var v}}},2471:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(5496)),i=n(7731),a=/<(![a-zA-Z\s]+)>/;t.default=function(e){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];var t=e.match(a),n=t?t[1]:void 0;return(0,i.formatDOM)((0,r.default)(e),null,n)}},7731:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatDOM=t.formatAttributes=void 0;var o=n(1141),r=n(5270);function i(e){for(var t={},n=0,o=e.length;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(4210),r=n(4958),i=["checked","value"],a=["input","select","textarea"],s={reset:!0,submit:!0};function l(e){return o.possibleStandardNames[e]}t.default=function(e,t){void 0===e&&(e={});var n={},c=Boolean(e.type&&s[e.type]);for(var u in e){var d=e[u];if((0,o.isCustomAttribute)(u))n[u]=d;else{var p=u.toLowerCase(),f=l(p);if(f){var m=(0,o.getPropertyInfo)(f);switch(i.includes(f)&&a.includes(t)&&!c&&(f=l("default"+p)),n[f]=d,m&&m.type){case o.BOOLEAN:n[f]=!0;break;case o.OVERLOADED_BOOLEAN:""===d&&(n[f]=!0)}}else r.PRESERVE_CUSTOM_ATTRIBUTES&&(n[u]=d)}}return(0,r.setStyleProp)(e.style,n),n}},308:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=n(1609),i=o(n(840)),a=n(4958),s={cloneElement:r.cloneElement,createElement:r.createElement,isValidElement:r.isValidElement};function l(e){return a.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&(0,a.isCustomComponent)(e.name,e.attribs)}t.default=function e(t,n){void 0===n&&(n={});for(var o=[],r="function"==typeof n.replace,c=n.transform||a.returnFirstArg,u=n.library||s,d=u.cloneElement,p=u.createElement,f=u.isValidElement,m=t.length,h=0;h1&&(y=d(y,{key:y.key||h})),o.push(c(y,v,h));continue}}if("text"!==v.type){var g=v,b={};l(g)?((0,a.setStyleProp)(g.attribs.style,g.attribs),b=g.attribs):g.attribs&&(b=(0,i.default)(g.attribs,g.name));var w=void 0;switch(v.type){case"script":case"style":v.children[0]&&(b.dangerouslySetInnerHTML={__html:v.children[0].data});break;case"tag":"textarea"===v.name&&v.children[0]?b.defaultValue=v.children[0].data:v.children&&v.children.length&&(w=e(v.children,n));break;default:continue}m>1&&(b.key=h),o.push(c(p(v.name,b,w),v,h))}else{var _=!v.data.trim().length;if(_&&v.parent&&!(0,a.canTextBeChildOfNode)(v.parent))continue;if(n.trim&&_)continue;o.push(c(v.data,v,h))}}return 1===o.length?o[0]:o}},442:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.htmlToDOM=t.domToReact=t.attributesToProps=t.Text=t.ProcessingInstruction=t.Element=t.Comment=void 0;var r=o(n(2471));t.htmlToDOM=r.default;var i=o(n(840));t.attributesToProps=i.default;var a=o(n(308));t.domToReact=a.default;var s=n(1141);Object.defineProperty(t,"Comment",{enumerable:!0,get:function(){return s.Comment}}),Object.defineProperty(t,"Element",{enumerable:!0,get:function(){return s.Element}}),Object.defineProperty(t,"ProcessingInstruction",{enumerable:!0,get:function(){return s.ProcessingInstruction}}),Object.defineProperty(t,"Text",{enumerable:!0,get:function(){return s.Text}});var l={lowerCaseAttributeNames:!1};t.default=function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");return e?(0,a.default)((0,r.default)(e,(null==t?void 0:t.htmlparser2)||l),t):[]}},4958:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.returnFirstArg=t.canTextBeChildOfNode=t.ELEMENTS_WITH_NO_TEXT_CHILDREN=t.PRESERVE_CUSTOM_ATTRIBUTES=t.setStyleProp=t.isCustomComponent=void 0;var r=n(1609),i=o(n(5229)),a=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);t.isCustomComponent=function(e,t){return e.includes("-")?!a.has(e):Boolean(t&&"string"==typeof t.is)};var s={reactCompat:!0};t.setStyleProp=function(e,t){if("string"==typeof e)if(e.trim())try{t.style=(0,i.default)(e,s)}catch(e){t.style={}}else t.style={}},t.PRESERVE_CUSTOM_ATTRIBUTES=Number(r.version.split(".")[0])>=16,t.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]),t.canTextBeChildOfNode=function(e){return!t.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(e.name)},t.returnFirstArg=function(e){return e}},9788:e=>{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,o=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,l=/^\s+|\s+$/g,c="";function u(e){return e?e.replace(l,c):c}e.exports=function(e,l){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];l=l||{};var d=1,p=1;function f(e){var t=e.match(n);t&&(d+=t.length);var o=e.lastIndexOf("\n");p=~o?e.length-o:p+e.length}function m(){var e={line:d,column:p};return function(t){return t.position=new h(e),b(),t}}function h(e){this.start=e,this.end={line:d,column:p},this.source=l.source}h.prototype.content=e;var v=[];function y(t){var n=new Error(l.source+":"+d+":"+p+": "+t);if(n.reason=t,n.filename=l.source,n.line=d,n.column=p,n.source=e,!l.silent)throw n;v.push(n)}function g(t){var n=t.exec(e);if(n){var o=n[0];return f(o),e=e.slice(o.length),n}}function b(){g(o)}function w(e){var t;for(e=e||[];t=_();)!1!==t&&e.push(t);return e}function _(){var t=m();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;c!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,c===e.charAt(n-1))return y("End of comment missing");var o=e.slice(2,n-2);return p+=2,f(o),e=e.slice(n),p+=2,t({type:"comment",comment:o})}}function E(){var e=m(),n=g(r);if(n){if(_(),!g(i))return y("property missing ':'");var o=g(a),l=e({type:"declaration",property:u(n[0].replace(t,c)),value:o?u(o[0].replace(t,c)):c});return g(s),l}}return b(),function(){var e,t=[];for(w(t);e=E();)!1!==e&&(t.push(e),w(t));return t}()}},2694:(e,t,n)=>{"use strict";var o=n(6925);function r(){}function i(){}i.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,i,a){if(a!==o){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return n.PropTypes=n,n}},5556:(e,t,n)=>{e.exports=n(2694)()},6925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},1345:(e,t,n)=>{"use strict";function o(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function r(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function i(e,t){try{var n=this.props,o=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,o)}finally{this.props=n,this.state=o}}function a(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,a=null,s=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?a="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(a="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?s="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(s="UNSAFE_componentWillUpdate"),null!==n||null!==a||null!==s){var l=e.displayName||e.name,c="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+l+" uses "+c+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==a?"\n "+a:"")+(null!==s?"\n "+s:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=o,t.componentWillReceiveProps=r),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=i;var u=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var o=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;u.call(this,e,t,o)}}return e}n.r(t),n.d(t,{polyfill:()=>a}),o.__suppressDeprecationWarning=!0,r.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0},1720:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bodyOpenClassName=t.portalClassName=void 0;var o=Object.assign||function(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t0&&0==(g-=1)&&u.show(t),n.props.shouldFocusAfterRender&&(n.props.shouldReturnFocusAfterClose?(l.returnFocus(n.props.preventScroll),l.teardownScopedFocus()):l.popWithoutFocus()),n.props.onAfterClose&&n.props.onAfterClose(),m.default.deregister(n)},n.open=function(){n.beforeOpen(),n.state.afterOpen&&n.state.beforeClose?(clearTimeout(n.closeTimer),n.setState({beforeClose:!1})):(n.props.shouldFocusAfterRender&&(l.setupScopedFocus(n.node),l.markForFocusLater()),n.setState({isOpen:!0},(function(){n.openAnimationFrame=requestAnimationFrame((function(){n.setState({afterOpen:!0}),n.props.isOpen&&n.props.onAfterOpen&&n.props.onAfterOpen({overlayEl:n.overlay,contentEl:n.content})}))})))},n.close=function(){n.props.closeTimeoutMS>0?n.closeWithTimeout():n.closeWithoutTimeout()},n.focusContent=function(){return n.content&&!n.contentHasFocus()&&n.content.focus({preventScroll:!0})},n.closeWithTimeout=function(){var e=Date.now()+n.props.closeTimeoutMS;n.setState({beforeClose:!0,closesAt:e},(function(){n.closeTimer=setTimeout(n.closeWithoutTimeout,n.state.closesAt-Date.now())}))},n.closeWithoutTimeout=function(){n.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},n.afterClose)},n.handleKeyDown=function(e){(function(e){return"Tab"===e.code||9===e.keyCode})(e)&&(0,c.default)(n.content,e),n.props.shouldCloseOnEsc&&function(e){return"Escape"===e.code||27===e.keyCode}(e)&&(e.stopPropagation(),n.requestClose(e))},n.handleOverlayOnClick=function(e){null===n.shouldClose&&(n.shouldClose=!0),n.shouldClose&&n.props.shouldCloseOnOverlayClick&&(n.ownerHandlesClose()?n.requestClose(e):n.focusContent()),n.shouldClose=null},n.handleContentOnMouseUp=function(){n.shouldClose=!1},n.handleOverlayOnMouseDown=function(e){n.props.shouldCloseOnOverlayClick||e.target!=n.overlay||e.preventDefault()},n.handleContentOnClick=function(){n.shouldClose=!1},n.handleContentOnMouseDown=function(){n.shouldClose=!1},n.requestClose=function(e){return n.ownerHandlesClose()&&n.props.onRequestClose(e)},n.ownerHandlesClose=function(){return n.props.onRequestClose},n.shouldBeClosed=function(){return!n.state.isOpen&&!n.state.beforeClose},n.contentHasFocus=function(){return document.activeElement===n.content||n.content.contains(document.activeElement)},n.buildClassName=function(e,t){var o="object"===(void 0===t?"undefined":r(t))?t:{base:y[e],afterOpen:y[e]+"--after-open",beforeClose:y[e]+"--before-close"},i=o.base;return n.state.afterOpen&&(i=i+" "+o.afterOpen),n.state.beforeClose&&(i=i+" "+o.beforeClose),"string"==typeof t&&t?i+" "+t:i},n.attributesFromObject=function(e,t){return Object.keys(t).reduce((function(n,o){return n[e+"-"+o]=t[o],n}),{})},n.state={afterOpen:!1,beforeClose:!1},n.shouldClose=null,n.moveFromContentToOverlay=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(e,t){this.props.isOpen&&!e.isOpen?this.open():!this.props.isOpen&&e.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!t.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var e=this.props,t=e.appElement,n=e.ariaHideApp,o=e.htmlOpenClassName,r=e.bodyOpenClassName,i=e.parentSelector,a=i&&i().ownerDocument||document;r&&d.add(a.body,r),o&&d.add(a.getElementsByTagName("html")[0],o),n&&(g+=1,u.hide(t)),m.default.register(this)}},{key:"render",value:function(){var e=this.props,t=e.id,n=e.className,r=e.overlayClassName,i=e.defaultStyles,a=e.children,s=n?{}:i.content,l=r?{}:i.overlay;if(this.shouldBeClosed())return null;var c={ref:this.setOverlayRef,className:this.buildClassName("overlay",r),style:o({},l,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},u=o({id:t,ref:this.setContentRef,style:o({},s,this.props.style.content),className:this.buildClassName("content",n),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",o({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),d=this.props.contentElement(u,a);return this.props.overlayElement(c,d)}}]),t}(a.Component);b.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},b.propTypes={isOpen:s.default.bool.isRequired,defaultStyles:s.default.shape({content:s.default.object,overlay:s.default.object}),style:s.default.shape({content:s.default.object,overlay:s.default.object}),className:s.default.oneOfType([s.default.string,s.default.object]),overlayClassName:s.default.oneOfType([s.default.string,s.default.object]),parentSelector:s.default.func,bodyOpenClassName:s.default.string,htmlOpenClassName:s.default.string,ariaHideApp:s.default.bool,appElement:s.default.oneOfType([s.default.instanceOf(f.default),s.default.instanceOf(p.SafeHTMLCollection),s.default.instanceOf(p.SafeNodeList),s.default.arrayOf(s.default.instanceOf(f.default))]),onAfterOpen:s.default.func,onAfterClose:s.default.func,onRequestClose:s.default.func,closeTimeoutMS:s.default.number,shouldFocusAfterRender:s.default.bool,shouldCloseOnOverlayClick:s.default.bool,shouldReturnFocusAfterClose:s.default.bool,preventScroll:s.default.bool,role:s.default.string,contentLabel:s.default.string,aria:s.default.object,data:s.default.object,children:s.default.node,shouldCloseOnEsc:s.default.bool,overlayRef:s.default.func,contentRef:s.default.func,id:s.default.string,overlayElement:s.default.func,contentElement:s.default.func,testId:s.default.string},t.default=b,e.exports=t.default},6462:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){a&&(a.removeAttribute?a.removeAttribute("aria-hidden"):null!=a.length?a.forEach((function(e){return e.removeAttribute("aria-hidden")})):document.querySelectorAll(a).forEach((function(e){return e.removeAttribute("aria-hidden")}))),a=null},t.log=function(){},t.assertNodeList=s,t.setElement=function(e){var t=e;if("string"==typeof t&&i.canUseDOM){var n=document.querySelectorAll(t);s(n,t),t=n}return a=t||a},t.validateElement=l,t.hide=function(e){var t=!0,n=!1,o=void 0;try{for(var r,i=l(e)[Symbol.iterator]();!(t=(r=i.next()).done);t=!0)r.value.setAttribute("aria-hidden","true")}catch(e){n=!0,o=e}finally{try{!t&&i.return&&i.return()}finally{if(n)throw o}}},t.show=function(e){var t=!0,n=!1,o=void 0;try{for(var r,i=l(e)[Symbol.iterator]();!(t=(r=i.next()).done);t=!0)r.value.removeAttribute("aria-hidden")}catch(e){n=!0,o=e}finally{try{!t&&i.return&&i.return()}finally{if(n)throw o}}},t.documentNotReadyOrSSRTesting=function(){a=null};var o,r=(o=n(9771))&&o.__esModule?o:{default:o},i=n(834),a=null;function s(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function l(e){var t=e||a;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,r.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}},7727:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){for(var e=[i,a],t=0;t0?(document.body.firstChild!==i&&document.body.insertBefore(i,document.body.firstChild),document.body.lastChild!==a&&document.body.appendChild(a)):(i.parentElement&&i.parentElement.removeChild(i),a.parentElement&&a.parentElement.removeChild(a))}))},4838:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){var e=document.getElementsByTagName("html")[0];for(var t in n)r(e,n[t]);var i=document.body;for(var a in o)r(i,o[a]);n={},o={}},t.log=function(){};var n={},o={};function r(e,t){e.classList.remove(t)}t.add=function(e,t){return r=e.classList,i="html"==e.nodeName.toLowerCase()?n:o,void t.split(" ").forEach((function(e){!function(e,t){e[t]||(e[t]=0),e[t]+=1}(i,e),r.add(e)}));var r,i},t.remove=function(e,t){return r=e.classList,i="html"==e.nodeName.toLowerCase()?n:o,void t.split(" ").forEach((function(e){!function(e,t){e[t]&&(e[t]-=1)}(i,e),0===i[e]&&r.remove(e)}));var r,i}},7791:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){i=[]},t.log=function(){},t.handleBlur=l,t.handleFocus=c,t.markForFocusLater=function(){i.push(document.activeElement)},t.returnFocus=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=null;try{return void(0!==i.length&&(t=i.pop()).focus({preventScroll:e}))}catch(e){console.warn(["You tried to return focus to",t,"but it is not in the DOM anymore"].join(" "))}},t.popWithoutFocus=function(){i.length>0&&i.pop()},t.setupScopedFocus=function(e){a=e,window.addEventListener?(window.addEventListener("blur",l,!1),document.addEventListener("focus",c,!0)):(window.attachEvent("onBlur",l),document.attachEvent("onFocus",c))},t.teardownScopedFocus=function(){a=null,window.addEventListener?(window.removeEventListener("blur",l),document.removeEventListener("focus",c)):(window.detachEvent("onBlur",l),document.detachEvent("onFocus",c))};var o,r=(o=n(2411))&&o.__esModule?o:{default:o},i=[],a=null,s=!1;function l(){s=!0}function c(){if(s){if(s=!1,!a)return;setTimeout((function(){a.contains(document.activeElement)||((0,r.default)(a)[0]||a).focus()}),0)}}},9628:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.log=function(){console.log("portalOpenInstances ----------"),console.log(o.openInstances.length),o.openInstances.forEach((function(e){return console.log(e)})),console.log("end portalOpenInstances ----------")},t.resetState=function(){o=new n};var n=function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.register=function(e){-1===t.openInstances.indexOf(e)&&(t.openInstances.push(e),t.emit("register"))},this.deregister=function(e){var n=t.openInstances.indexOf(e);-1!==n&&(t.openInstances.splice(n,1),t.emit("deregister"))},this.subscribe=function(e){t.subscribers.push(e)},this.emit=function(e){t.subscribers.forEach((function(n){return n(e,t.openInstances.slice())}))},this.openInstances=[],this.subscribers=[]},o=new n;t.default=o},834:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canUseDOM=t.SafeNodeList=t.SafeHTMLCollection=void 0;var o,r=((o=n(411))&&o.__esModule?o:{default:o}).default,i=r.canUseDOM?window.HTMLElement:{};t.SafeHTMLCollection=r.canUseDOM?window.HTMLCollection:{},t.SafeNodeList=r.canUseDOM?window.NodeList:{},t.canUseDOM=r.canUseDOM,t.default=i},7067:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,r.default)(e);if(n.length){var o=void 0,a=t.shiftKey,s=n[0],l=n[n.length-1],c=i();if(e===c){if(!a)return;o=l}if(l!==c||a||(o=s),s===c&&a&&(o=l),o)return t.preventDefault(),void o.focus();var u=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null!=u&&"Chrome"!=u[1]&&null==/\biPod\b|\biPad\b/g.exec(navigator.userAgent)){var d=n.indexOf(c);if(d>-1&&(d+=a?-1:1),void 0===(o=n[d]))return t.preventDefault(),void(o=a?l:s).focus();t.preventDefault(),o.focus()}}else t.preventDefault()};var o,r=(o=n(2411))&&o.__esModule?o:{default:o};function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return e.activeElement.shadowRoot?i(e.activeElement.shadowRoot):e.activeElement}e.exports=t.default},2411:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){return[].slice.call(t.querySelectorAll("*"),0).reduce((function(t,n){return t.concat(n.shadowRoot?e(n.shadowRoot):[n])}),[]).filter(a)};var n="none",o="contents",r=/input|select|textarea|button|object|iframe/;function i(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;try{var r=window.getComputedStyle(e),i=r.getPropertyValue("display");return t?i!==o&&function(e,t){return"visible"!==t.getPropertyValue("overflow")||e.scrollWidth<=0&&e.scrollHeight<=0}(e,r):i===n}catch(e){return console.warn("Failed to inspect element style"),!1}}function a(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var n=isNaN(t);return(n||t>=0)&&function(e,t){var n=e.nodeName.toLowerCase();return(r.test(n)&&!e.disabled||"a"===n&&e.href||t)&&function(e){for(var t=e,n=e.getRootNode&&e.getRootNode();t&&t!==document.body;){if(n&&t===n&&(t=n.host.parentNode),i(t))return!1;t=t.parentNode}return!0}(e)}(e,!n)}e.exports=t.default},312:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r=(o=n(1720))&&o.__esModule?o:{default:o};t.default=r.default,e.exports=t.default},4210:(e,t,n)=>{"use strict";function o(e,t,n,o,r,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=o,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}const r={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach((e=>{r[e]=new o(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((([e,t])=>{r[e]=new o(e,1,!1,t,null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((e=>{r[e]=new o(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((e=>{r[e]=new o(e,2,!1,e,null,!1,!1)})),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach((e=>{r[e]=new o(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((e=>{r[e]=new o(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((e=>{r[e]=new o(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((e=>{r[e]=new o(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((e=>{r[e]=new o(e,5,!1,e.toLowerCase(),null,!1,!1)}));const i=/[\-\:]([a-z])/g,a=e=>e[1].toUpperCase();["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach((e=>{const t=e.replace(i,a);r[t]=new o(t,1,!1,e,null,!1,!1)})),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach((e=>{const t=e.replace(i,a);r[t]=new o(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((e=>{const t=e.replace(i,a);r[t]=new o(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((e=>{r[e]=new o(e,1,!1,e.toLowerCase(),null,!1,!1)})),r.xlinkHref=new o("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((e=>{r[e]=new o(e,1,!1,e.toLowerCase(),null,!0,!0)}));const{CAMELCASE:s,SAME:l,possibleStandardNames:c}=n(6811),u=RegExp.prototype.test.bind(new RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")),d=Object.keys(c).reduce(((e,t)=>{const n=c[t];return n===l?e[t]=t:n===s?e[t.toLowerCase()]=t:e[t]=n,e}),{});t.BOOLEAN=3,t.BOOLEANISH_STRING=2,t.NUMERIC=5,t.OVERLOADED_BOOLEAN=4,t.POSITIVE_NUMERIC=6,t.RESERVED=0,t.STRING=1,t.getPropertyInfo=function(e){return r.hasOwnProperty(e)?r[e]:null},t.isCustomAttribute=u,t.possibleStandardNames=d},6811:(e,t)=>{t.SAME=0,t.CAMELCASE=1,t.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}},5229:function(e,t,n){"use strict";var o=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n(1133)),r=n(8917);function i(e,t){var n={};return e&&"string"==typeof e?((0,o.default)(e,(function(e,o){e&&o&&(n[(0,r.camelCase)(e,t)]=o)})),n):n}i.default=i,e.exports=i},8917:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=void 0;var n=/^--[a-zA-Z0-9-]+$/,o=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,s=function(e,t){return t.toUpperCase()},l=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||r.test(e)||n.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(a,l):e.replace(i,l)).replace(o,s))}},1133:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(9788));t.default=function(e,t){var n=null;if(!e||"string"!=typeof e)return n;var o=(0,r.default)(e),i="function"==typeof t;return o.forEach((function(e){if("declaration"===e.type){var o=e.property,r=e.value;i?t(o,r,e):r&&((n=n||{})[o]=r)}})),n}},9771:e=>{"use strict";e.exports=function(){}},1609:e=>{"use strict";e.exports=window.React},5795:e=>{"use strict";e.exports=window.ReactDOM},6942:(e,t)=>{var n;!function(){"use strict";var o={}.hasOwnProperty;function r(){for(var e="",t=0;t{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e=n(1609);const t=window.wp.domReady;var o=n.n(t);const r=window.wp.element,i=window.wp.components,a=window.wp.i18n;var s=n(442);const l=s.default||s;var c=n(312),u=n.n(c);const d=Math.min,p=Math.max,f=Math.round,m=Math.floor,h=e=>({x:e,y:e}),v={left:"right",right:"left",bottom:"top",top:"bottom"},y={start:"end",end:"start"};function g(e,t,n){return p(e,d(t,n))}function b(e,t){return"function"==typeof e?e(t):e}function w(e){return e.split("-")[0]}function _(e){return e.split("-")[1]}function E(e){return"x"===e?"y":"x"}function x(e){return"y"===e?"height":"width"}function S(e){return["top","bottom"].includes(w(e))?"y":"x"}function O(e){return E(S(e))}function C(e){return e.replace(/start|end/g,(e=>y[e]))}function T(e){return e.replace(/left|right|bottom|top/g,(e=>v[e]))}function k(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function A(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function N(e,t,n){let{reference:o,floating:r}=e;const i=S(t),a=O(t),s=x(a),l=w(t),c="y"===i,u=o.x+o.width/2-r.width/2,d=o.y+o.height/2-r.height/2,p=o[s]/2-r[s]/2;let f;switch(l){case"top":f={x:u,y:o.y-r.height};break;case"bottom":f={x:u,y:o.y+o.height};break;case"right":f={x:o.x+o.width,y:d};break;case"left":f={x:o.x-r.width,y:d};break;default:f={x:o.x,y:o.y}}switch(_(t)){case"start":f[a]-=p*(n&&c?-1:1);break;case"end":f[a]+=p*(n&&c?-1:1)}return f}async function R(e,t){var n;void 0===t&&(t={});const{x:o,y:r,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:f=0}=b(t,e),m=k(f),h=s[p?"floating"===d?"reference":"floating":d],v=A(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),y="floating"===d?{x:o,y:r,width:a.floating.width,height:a.floating.height}:a.reference,g=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),w=await(null==i.isElement?void 0:i.isElement(g))&&await(null==i.getScale?void 0:i.getScale(g))||{x:1,y:1},_=A(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:g,strategy:l}):y);return{top:(v.top-_.top+m.top)/w.y,bottom:(_.bottom-v.bottom+m.bottom)/w.y,left:(v.left-_.left+m.left)/w.x,right:(_.right-v.right+m.right)/w.x}}function P(e){return D(e)?(e.nodeName||"").toLowerCase():"#document"}function M(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function L(e){var t;return null==(t=(D(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function D(e){return e instanceof Node||e instanceof M(e).Node}function j(e){return e instanceof Element||e instanceof M(e).Element}function I(e){return e instanceof HTMLElement||e instanceof M(e).HTMLElement}function F(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof M(e).ShadowRoot)}function H(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=V(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(r)}function B(e){return["table","td","th"].includes(P(e))}function U(e){const t=W(),n=V(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function W(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function z(e){return["html","body","#document"].includes(P(e))}function V(e){return M(e).getComputedStyle(e)}function q(e){return j(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function $(e){if("html"===P(e))return e;const t=e.assignedSlot||e.parentNode||F(e)&&e.host||L(e);return F(t)?t.host:t}function G(e){const t=$(e);return z(t)?e.ownerDocument?e.ownerDocument.body:e.body:I(t)&&H(t)?t:G(t)}function X(e,t,n){var o;void 0===t&&(t=[]),void 0===n&&(n=!0);const r=G(e),i=r===(null==(o=e.ownerDocument)?void 0:o.body),a=M(r);return i?t.concat(a,a.visualViewport||[],H(r)?r:[],a.frameElement&&n?X(a.frameElement):[]):t.concat(r,X(r,[],n))}function Y(e){const t=V(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=I(e),i=r?e.offsetWidth:n,a=r?e.offsetHeight:o,s=f(n)!==i||f(o)!==a;return s&&(n=i,o=a),{width:n,height:o,$:s}}function K(e){return j(e)?e:e.contextElement}function Z(e){const t=K(e);if(!I(t))return h(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=Y(t);let a=(i?f(n.width):n.width)/o,s=(i?f(n.height):n.height)/r;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const J=h(0);function Q(e){const t=M(e);return W()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:J}function ee(e,t,n,o){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=e.getBoundingClientRect(),i=K(e);let a=h(1);t&&(o?j(o)&&(a=Z(o)):a=Z(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==M(e))&&t}(i,n,o)?Q(i):h(0);let l=(r.left+s.x)/a.x,c=(r.top+s.y)/a.y,u=r.width/a.x,d=r.height/a.y;if(i){const e=M(i),t=o&&j(o)?M(o):o;let n=e,r=n.frameElement;for(;r&&o&&t!==n;){const e=Z(r),t=r.getBoundingClientRect(),o=V(r),i=t.left+(r.clientLeft+parseFloat(o.paddingLeft))*e.x,a=t.top+(r.clientTop+parseFloat(o.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=i,c+=a,n=M(r),r=n.frameElement}}return A({width:u,height:d,x:l,y:c})}const te=[":popover-open",":modal"];function ne(e){return te.some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function oe(e){return ee(L(e)).left+q(e).scrollLeft}function re(e,t,n){let o;if("viewport"===t)o=function(e,t){const n=M(e),o=L(e),r=n.visualViewport;let i=o.clientWidth,a=o.clientHeight,s=0,l=0;if(r){i=r.width,a=r.height;const e=W();(!e||e&&"fixed"===t)&&(s=r.offsetLeft,l=r.offsetTop)}return{width:i,height:a,x:s,y:l}}(e,n);else if("document"===t)o=function(e){const t=L(e),n=q(e),o=e.ownerDocument.body,r=p(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),i=p(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let a=-n.scrollLeft+oe(e);const s=-n.scrollTop;return"rtl"===V(o).direction&&(a+=p(t.clientWidth,o.clientWidth)-r),{width:r,height:i,x:a,y:s}}(L(e));else if(j(t))o=function(e,t){const n=ee(e,!0,"fixed"===t),o=n.top+e.clientTop,r=n.left+e.clientLeft,i=I(e)?Z(e):h(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:r*i.x,y:o*i.y}}(t,n);else{const n=Q(e);o={...t,x:t.x-n.x,y:t.y-n.y}}return A(o)}function ie(e,t){const n=$(e);return!(n===t||!j(n)||z(n))&&("fixed"===V(n).position||ie(n,t))}function ae(e,t,n){const o=I(t),r=L(t),i="fixed"===n,a=ee(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=h(0);if(o||!o&&!i)if(("body"!==P(t)||H(r))&&(s=q(t)),o){const e=ee(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else r&&(l.x=oe(r));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function se(e){return"static"===V(e).position}function le(e,t){return I(e)&&"fixed"!==V(e).position?t?t(e):e.offsetParent:null}function ce(e,t){const n=M(e);if(ne(e))return n;if(!I(e)){let t=$(e);for(;t&&!z(t);){if(j(t)&&!se(t))return t;t=$(t)}return n}let o=le(e,t);for(;o&&B(o)&&se(o);)o=le(o,t);return o&&z(o)&&se(o)&&!U(o)?n:o||function(e){let t=$(e);for(;I(t)&&!z(t);){if(U(t))return t;t=$(t)}return null}(e)||n}const ue={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const i="fixed"===r,a=L(o),s=!!t&&ne(t.floating);if(o===a||s&&i)return n;let l={scrollLeft:0,scrollTop:0},c=h(1);const u=h(0),d=I(o);if((d||!d&&!i)&&(("body"!==P(o)||H(a))&&(l=q(o)),I(o))){const e=ee(o);c=Z(o),u.x=e.x+o.clientLeft,u.y=e.y+o.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x,y:n.y*c.y-l.scrollTop*c.y+u.y}},getDocumentElement:L,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const i=[..."clippingAncestors"===n?ne(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let o=X(e,[],!1).filter((e=>j(e)&&"body"!==P(e))),r=null;const i="fixed"===V(e).position;let a=i?$(e):e;for(;j(a)&&!z(a);){const t=V(a),n=U(a);n||"fixed"!==t.position||(r=null),(i?!n&&!r:!n&&"static"===t.position&&r&&["absolute","fixed"].includes(r.position)||H(a)&&!n&&ie(e,a))?o=o.filter((e=>e!==a)):r=t,a=$(a)}return t.set(e,o),o}(t,this._c):[].concat(n),o],a=i[0],s=i.reduce(((e,n)=>{const o=re(t,n,r);return e.top=p(o.top,e.top),e.right=d(o.right,e.right),e.bottom=d(o.bottom,e.bottom),e.left=p(o.left,e.left),e}),re(t,a,r));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:ce,getElementRects:async function(e){const t=this.getOffsetParent||ce,n=this.getDimensions,o=await n(e.floating);return{reference:ae(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=Y(e);return{width:t,height:n}},getScale:Z,isElement:j,isRTL:function(e){return"rtl"===V(e).direction}};const de=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:i,placement:a,middlewareData:s}=t,l=await async function(e,t){const{placement:n,platform:o,elements:r}=e,i=await(null==o.isRTL?void 0:o.isRTL(r.floating)),a=w(n),s=_(n),l="y"===S(n),c=["left","top"].includes(a)?-1:1,u=i&&l?-1:1,d=b(t,e);let{mainAxis:p,crossAxis:f,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&"number"==typeof m&&(f="end"===s?-1*m:m),l?{x:f*u,y:p*c}:{x:p*c,y:f*u}}(t,e);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(o=s.arrow)&&o.alignmentOffset?{}:{x:r+l.x,y:i+l.y,data:{...l,placement:a}}}}},pe=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=b(e,t),c={x:n,y:o},u=await R(t,l),d=S(w(r)),p=E(d);let f=c[p],m=c[d];if(i){const e="y"===p?"bottom":"right";f=g(f+u["y"===p?"top":"left"],f,f-u[e])}if(a){const e="y"===d?"bottom":"right";m=g(m+u["y"===d?"top":"left"],m,m-u[e])}const h=s.fn({...t,[p]:f,[d]:m});return{...h,data:{x:h.x-n,y:h.y-o}}}}},fe=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:i,rects:a,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,...v}=b(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const y=w(r),g=w(s)===s,E=await(null==l.isRTL?void 0:l.isRTL(c.floating)),S=p||(g||!h?[T(s)]:function(e){const t=T(e);return[C(e),t,C(t)]}(s));p||"none"===m||S.push(...function(e,t,n,o){const r=_(e);let i=function(e,t,n){const o=["left","right"],r=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?r:o:t?o:r;case"left":case"right":return t?i:a;default:return[]}}(w(e),"start"===n,o);return r&&(i=i.map((e=>e+"-"+r)),t&&(i=i.concat(i.map(C)))),i}(s,h,m,E));const k=[s,...S],A=await R(t,v),N=[];let P=(null==(o=i.flip)?void 0:o.overflows)||[];if(u&&N.push(A[y]),d){const e=function(e,t,n){void 0===n&&(n=!1);const o=_(e),r=O(e),i=x(r);let a="x"===r?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=T(a)),[a,T(a)]}(r,a,E);N.push(A[e[0]],A[e[1]])}if(P=[...P,{placement:r,overflows:N}],!N.every((e=>e<=0))){var M,L;const e=((null==(M=i.flip)?void 0:M.index)||0)+1,t=k[e];if(t)return{data:{index:e,overflows:P},reset:{placement:t}};let n=null==(L=P.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:L.placement;if(!n)switch(f){case"bestFit":{var D;const e=null==(D=P.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:D[0];e&&(n=e);break}case"initialPlacement":n=s}if(r!==n)return{reset:{placement:n}}}return{}}}},me=(e,t,n)=>{const o=new Map,r={platform:ue,...n},i={...r.platform,_c:o};return(async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:d}=N(c,o,l),p=o,f={},m=0;for(let n=0;n{if(!e)return{tooltipStyles:{},tooltipArrowStyles:{},place:o};if(null===t)return{tooltipStyles:{},tooltipArrowStyles:{},place:o};const l=a;return n?(l.push({name:"arrow",options:c={element:n,padding:5},async fn(e){const{x:t,y:n,placement:o,rects:r,platform:i,elements:a,middlewareData:s}=e,{element:l,padding:u=0}=b(c,e)||{};if(null==l)return{};const p=k(u),f={x:t,y:n},m=O(o),h=x(m),v=await i.getDimensions(l),y="y"===m,w=y?"top":"left",E=y?"bottom":"right",S=y?"clientHeight":"clientWidth",C=r.reference[h]+r.reference[m]-f[m]-r.floating[h],T=f[m]-r.reference[m],A=await(null==i.getOffsetParent?void 0:i.getOffsetParent(l));let N=A?A[S]:0;N&&await(null==i.isElement?void 0:i.isElement(A))||(N=a.floating[S]||r.floating[h]);const R=C/2-T/2,P=N/2-v[h]/2-1,M=d(p[w],P),L=d(p[E],P),D=M,j=N-v[h]-L,I=N/2-v[h]/2+R,F=g(D,I,j),H=!s.arrow&&null!=_(o)&&I!==F&&r.reference[h]/2-(I{var r,i;const a={left:`${e}px`,top:`${t}px`,border:s},{x:l,y:c}=null!==(r=o.arrow)&&void 0!==r?r:{x:0,y:0},u=null!==(i={top:"bottom",right:"left",bottom:"top",left:"right"}[n.split("-")[0]])&&void 0!==i?i:"bottom",d=s&&{borderBottom:s,borderRight:s};let p=0;if(s){const e=`${s}`.match(/(\d+)px/);p=(null==e?void 0:e[1])?Number(e[1]):1}return{tooltipStyles:a,tooltipArrowStyles:{left:null!=l?`${l}px`:"",top:null!=c?`${c}px`:"",right:"",bottom:"",...d,[u]:`-${4+p}px`},place:n}}))):me(e,t,{placement:"bottom",strategy:i,middleware:l}).then((({x:e,y:t,placement:n})=>({tooltipStyles:{left:`${e}px`,top:`${t}px`},tooltipArrowStyles:{},place:n})));var c},be=(e,t)=>!("CSS"in window&&"supports"in window.CSS)||window.CSS.supports(e,t),we=(e,t,n)=>{let o=null;const r=function(...r){const i=()=>{o=null,n||e.apply(this,r)};n&&!o&&(e.apply(this,r),o=setTimeout(i,t)),n||(o&&clearTimeout(o),o=setTimeout(i,t))};return r.cancel=()=>{o&&(clearTimeout(o),o=null)},r},_e=e=>null!==e&&!Array.isArray(e)&&"object"==typeof e,Ee=(e,t)=>{if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&e.every(((e,n)=>Ee(e,t[n])));if(Array.isArray(e)!==Array.isArray(t))return!1;if(!_e(e)||!_e(t))return e===t;const n=Object.keys(e),o=Object.keys(t);return n.length===o.length&&n.every((n=>Ee(e[n],t[n])))},xe=e=>{if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;const t=getComputedStyle(e);return["overflow","overflow-x","overflow-y"].some((e=>{const n=t.getPropertyValue(e);return"auto"===n||"scroll"===n}))},Se=e=>{if(!e)return null;let t=e.parentElement;for(;t;){if(xe(t))return t;t=t.parentElement}return document.scrollingElement||document.documentElement},Oe="undefined"!=typeof window?e.useLayoutEffect:e.useEffect,Ce={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},Te=(0,e.createContext)({getTooltipData:()=>Ce});function ke(t="DEFAULT_TOOLTIP_ID"){return(0,e.useContext)(Te).getTooltipData(t)}var Ae={tooltip:"core-styles-module_tooltip__3vRRp",fixed:"core-styles-module_fixed__pcSol",arrow:"core-styles-module_arrow__cvMwQ",noArrow:"core-styles-module_noArrow__xock6",clickable:"core-styles-module_clickable__ZuTTB",show:"core-styles-module_show__Nt9eE",closing:"core-styles-module_closing__sGnxF"},Ne={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const Re=({forwardRef:t,id:n,className:o,classNameArrow:r,variant:i="dark",anchorId:a,anchorSelect:s,place:l="top",offset:c=10,events:u=["hover"],openOnClick:f=!1,positionStrategy:h="absolute",middlewares:v,wrapper:y,delayShow:g=0,delayHide:b=0,float:w=!1,hidden:_=!1,noArrow:E=!1,clickable:x=!1,closeOnEsc:S=!1,closeOnScroll:O=!1,closeOnResize:C=!1,openEvents:T,closeEvents:k,globalCloseEvents:A,imperativeModeOnly:N,style:R,position:P,afterShow:M,afterHide:D,content:j,contentWrapperRef:I,isOpen:F,defaultIsOpen:H=!1,setIsOpen:B,activeAnchor:U,setActiveAnchor:W,border:z,opacity:V,arrowColor:q,role:$="tooltip"})=>{var G;const Y=(0,e.useRef)(null),Z=(0,e.useRef)(null),J=(0,e.useRef)(null),Q=(0,e.useRef)(null),te=(0,e.useRef)(null),[ne,oe]=(0,e.useState)({tooltipStyles:{},tooltipArrowStyles:{},place:l}),[re,ie]=(0,e.useState)(!1),[ae,se]=(0,e.useState)(!1),[le,ce]=(0,e.useState)(null),ue=(0,e.useRef)(!1),de=(0,e.useRef)(null),{anchorRefs:pe,setActiveAnchor:fe}=ke(n),me=(0,e.useRef)(!1),[ve,ye]=(0,e.useState)([]),be=(0,e.useRef)(!1),_e=f||u.includes("click"),xe=_e||(null==T?void 0:T.click)||(null==T?void 0:T.dblclick)||(null==T?void 0:T.mousedown),Ce=T?{...T}:{mouseenter:!0,focus:!0,click:!1,dblclick:!1,mousedown:!1};!T&&_e&&Object.assign(Ce,{mouseenter:!1,focus:!1,click:!0});const Te=k?{...k}:{mouseleave:!0,blur:!0,click:!1,dblclick:!1,mouseup:!1};!k&&_e&&Object.assign(Te,{mouseleave:!1,blur:!1});const Re=A?{...A}:{escape:S||!1,scroll:O||!1,resize:C||!1,clickOutsideAnchor:xe||!1};N&&(Object.assign(Ce,{mouseenter:!1,focus:!1,click:!1,dblclick:!1,mousedown:!1}),Object.assign(Te,{mouseleave:!1,blur:!1,click:!1,dblclick:!1,mouseup:!1}),Object.assign(Re,{escape:!1,scroll:!1,resize:!1,clickOutsideAnchor:!1})),Oe((()=>(be.current=!0,()=>{be.current=!1})),[]);const Pe=e=>{be.current&&(e&&se(!0),setTimeout((()=>{be.current&&(null==B||B(e),void 0===F&&ie(e))}),10))};(0,e.useEffect)((()=>{if(void 0===F)return()=>null;F&&se(!0);const e=setTimeout((()=>{ie(F)}),10);return()=>{clearTimeout(e)}}),[F]),(0,e.useEffect)((()=>{if(re!==ue.current)if(te.current&&clearTimeout(te.current),ue.current=re,re)null==M||M();else{const e=(e=>{const t=getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay").match(/^([\d.]+)(ms|s)$/);if(!t)return 0;const[,n,o]=t;return Number(n)*("ms"===o?1:1e3)})();te.current=setTimeout((()=>{se(!1),ce(null),null==D||D()}),e+25)}}),[re]);const Me=e=>{oe((t=>Ee(t,e)?t:e))},Le=(e=g)=>{J.current&&clearTimeout(J.current),ae?Pe(!0):J.current=setTimeout((()=>{Pe(!0)}),e)},De=(e=b)=>{Q.current&&clearTimeout(Q.current),Q.current=setTimeout((()=>{me.current||Pe(!1)}),e)},je=e=>{var t;if(!e)return;const n=null!==(t=e.currentTarget)&&void 0!==t?t:e.target;if(!(null==n?void 0:n.isConnected))return W(null),void fe({current:null});g?Le():Pe(!0),W(n),fe({current:n}),Q.current&&clearTimeout(Q.current)},Ie=()=>{x?De(b||100):b?De():Pe(!1),J.current&&clearTimeout(J.current)},Fe=({x:e,y:t})=>{var n;const o={getBoundingClientRect:()=>({x:e,y:t,width:0,height:0,top:t,left:e,right:e,bottom:t})};ge({place:null!==(n=null==le?void 0:le.place)&&void 0!==n?n:l,offset:c,elementReference:o,tooltipReference:Y.current,tooltipArrowReference:Z.current,strategy:h,middlewares:v,border:z}).then((e=>{Me(e)}))},He=e=>{if(!e)return;const t=e,n={x:t.clientX,y:t.clientY};Fe(n),de.current=n},Be=e=>{var t;if(!re)return;const n=e.target;n.isConnected&&((null===(t=Y.current)||void 0===t?void 0:t.contains(n))||[document.querySelector(`[id='${a}']`),...ve].some((e=>null==e?void 0:e.contains(n)))||(Pe(!1),J.current&&clearTimeout(J.current)))},Ue=we(je,50,!0),We=we(Ie,50,!0),ze=e=>{We.cancel(),Ue(e)},Ve=()=>{Ue.cancel(),We()},qe=(0,e.useCallback)((()=>{var e,t;const n=null!==(e=null==le?void 0:le.position)&&void 0!==e?e:P;n?Fe(n):w?de.current&&Fe(de.current):(null==U?void 0:U.isConnected)&&ge({place:null!==(t=null==le?void 0:le.place)&&void 0!==t?t:l,offset:c,elementReference:U,tooltipReference:Y.current,tooltipArrowReference:Z.current,strategy:h,middlewares:v,border:z}).then((e=>{be.current&&Me(e)}))}),[re,U,j,R,l,null==le?void 0:le.place,c,h,P,null==le?void 0:le.position,w]);(0,e.useEffect)((()=>{var e,t;const n=new Set(pe);ve.forEach((e=>{n.add({current:e})}));const o=document.querySelector(`[id='${a}']`);o&&n.add({current:o});const r=()=>{Pe(!1)},i=Se(U),s=Se(Y.current);Re.scroll&&(window.addEventListener("scroll",r),null==i||i.addEventListener("scroll",r),null==s||s.addEventListener("scroll",r));let l=null;Re.resize?window.addEventListener("resize",r):U&&Y.current&&(l=function(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=o,c=K(e),u=r||i?[...c?X(c):[],...X(t)]:[];u.forEach((e=>{r&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const f=c&&s?function(e,t){let n,o=null;const r=L(e);function i(){var e;clearTimeout(n),null==(e=o)||e.disconnect(),o=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),i();const{left:c,top:u,width:f,height:h}=e.getBoundingClientRect();if(s||t(),!f||!h)return;const v={rootMargin:-m(u)+"px "+-m(r.clientWidth-(c+f))+"px "+-m(r.clientHeight-(u+h))+"px "+-m(c)+"px",threshold:p(0,d(1,l))||1};let y=!0;function g(e){const t=e[0].intersectionRatio;if(t!==l){if(!y)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),1e3)}y=!1}try{o=new IntersectionObserver(g,{...v,root:r.ownerDocument})}catch(e){o=new IntersectionObserver(g,v)}o.observe(e)}(!0),i}(c,n):null;let h,v=-1,y=null;a&&(y=new ResizeObserver((e=>{let[o]=e;o&&o.target===c&&y&&(y.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame((()=>{var e;null==(e=y)||e.observe(t)}))),n()})),c&&!l&&y.observe(c),y.observe(t));let g=l?ee(e):null;return l&&function t(){const o=ee(e);!g||o.x===g.x&&o.y===g.y&&o.width===g.width&&o.height===g.height||n(),g=o,h=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{r&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==f||f(),null==(e=y)||e.disconnect(),y=null,l&&cancelAnimationFrame(h)}}(U,Y.current,qe,{ancestorResize:!0,elementResize:!0,layoutShift:!0}));const c=e=>{"Escape"===e.key&&Pe(!1)};Re.escape&&window.addEventListener("keydown",c),Re.clickOutsideAnchor&&window.addEventListener("click",Be);const u=[],f=e=>{re&&(null==e?void 0:e.target)===U||je(e)},h=e=>{re&&(null==e?void 0:e.target)===U&&Ie()},v=["mouseenter","mouseleave","focus","blur"],y=["click","dblclick","mousedown","mouseup"];Object.entries(Ce).forEach((([e,t])=>{t&&(v.includes(e)?u.push({event:e,listener:ze}):y.includes(e)&&u.push({event:e,listener:f}))})),Object.entries(Te).forEach((([e,t])=>{t&&(v.includes(e)?u.push({event:e,listener:Ve}):y.includes(e)&&u.push({event:e,listener:h}))})),w&&u.push({event:"pointermove",listener:He});const g=()=>{me.current=!0},b=()=>{me.current=!1,Ie()};return x&&!xe&&(null===(e=Y.current)||void 0===e||e.addEventListener("mouseenter",g),null===(t=Y.current)||void 0===t||t.addEventListener("mouseleave",b)),u.forEach((({event:e,listener:t})=>{n.forEach((n=>{var o;null===(o=n.current)||void 0===o||o.addEventListener(e,t)}))})),()=>{var e,t;Re.scroll&&(window.removeEventListener("scroll",r),null==i||i.removeEventListener("scroll",r),null==s||s.removeEventListener("scroll",r)),Re.resize?window.removeEventListener("resize",r):null==l||l(),Re.clickOutsideAnchor&&window.removeEventListener("click",Be),Re.escape&&window.removeEventListener("keydown",c),x&&!xe&&(null===(e=Y.current)||void 0===e||e.removeEventListener("mouseenter",g),null===(t=Y.current)||void 0===t||t.removeEventListener("mouseleave",b)),u.forEach((({event:e,listener:t})=>{n.forEach((n=>{var o;null===(o=n.current)||void 0===o||o.removeEventListener(e,t)}))}))}}),[U,qe,ae,pe,ve,T,k,A,_e,g,b]),(0,e.useEffect)((()=>{var e,t;let o=null!==(t=null!==(e=null==le?void 0:le.anchorSelect)&&void 0!==e?e:s)&&void 0!==t?t:"";!o&&n&&(o=`[data-tooltip-id='${n.replace(/'/g,"\\'")}']`);const r=new MutationObserver((e=>{const t=[],r=[];e.forEach((e=>{if("attributes"===e.type&&"data-tooltip-id"===e.attributeName&&(e.target.getAttribute("data-tooltip-id")===n?t.push(e.target):e.oldValue===n&&r.push(e.target)),"childList"===e.type){if(U){const t=[...e.removedNodes].filter((e=>1===e.nodeType));if(o)try{r.push(...t.filter((e=>e.matches(o)))),r.push(...t.flatMap((e=>[...e.querySelectorAll(o)])))}catch(e){}t.some((e=>{var t;return!!(null===(t=null==e?void 0:e.contains)||void 0===t?void 0:t.call(e,U))&&(se(!1),Pe(!1),W(null),J.current&&clearTimeout(J.current),Q.current&&clearTimeout(Q.current),!0)}))}if(o)try{const n=[...e.addedNodes].filter((e=>1===e.nodeType));t.push(...n.filter((e=>e.matches(o)))),t.push(...n.flatMap((e=>[...e.querySelectorAll(o)])))}catch(e){}}})),(t.length||r.length)&&ye((e=>[...e.filter((e=>!r.includes(e))),...t]))}));return r.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"],attributeOldValue:!0}),()=>{r.disconnect()}}),[n,s,null==le?void 0:le.anchorSelect,U]),(0,e.useEffect)((()=>{qe()}),[qe]),(0,e.useEffect)((()=>{if(!(null==I?void 0:I.current))return()=>null;const e=new ResizeObserver((()=>{setTimeout((()=>qe()))}));return e.observe(I.current),()=>{e.disconnect()}}),[j,null==I?void 0:I.current]),(0,e.useEffect)((()=>{var e;const t=document.querySelector(`[id='${a}']`),n=[...ve,t];U&&n.includes(U)||W(null!==(e=ve[0])&&void 0!==e?e:t)}),[a,ve,U]),(0,e.useEffect)((()=>(H&&Pe(!0),()=>{J.current&&clearTimeout(J.current),Q.current&&clearTimeout(Q.current)})),[]),(0,e.useEffect)((()=>{var e;let t=null!==(e=null==le?void 0:le.anchorSelect)&&void 0!==e?e:s;if(!t&&n&&(t=`[data-tooltip-id='${n.replace(/'/g,"\\'")}']`),t)try{const e=Array.from(document.querySelectorAll(t));ye(e)}catch(e){ye([])}}),[n,s,null==le?void 0:le.anchorSelect]),(0,e.useEffect)((()=>{J.current&&(clearTimeout(J.current),Le(g))}),[g]);const $e=null!==(G=null==le?void 0:le.content)&&void 0!==G?G:j,Ge=re&&Object.keys(ne.tooltipStyles).length>0;return(0,e.useImperativeHandle)(t,(()=>({open:e=>{if(null==e?void 0:e.anchorSelect)try{document.querySelector(e.anchorSelect)}catch(t){return void console.warn(`[react-tooltip] "${e.anchorSelect}" is not a valid CSS selector`)}ce(null!=e?e:null),(null==e?void 0:e.delay)?Le(e.delay):Pe(!0)},close:e=>{(null==e?void 0:e.delay)?De(e.delay):Pe(!1)},activeAnchor:U,place:ne.place,isOpen:Boolean(ae&&!_&&$e&&Ge)}))),ae&&!_&&$e?e.createElement(y,{id:n,role:$,className:he("react-tooltip",Ae.tooltip,Ne.tooltip,Ne[i],o,`react-tooltip__place-${ne.place}`,Ae[Ge?"show":"closing"],Ge?"react-tooltip__show":"react-tooltip__closing","fixed"===h&&Ae.fixed,x&&Ae.clickable),onTransitionEnd:e=>{te.current&&clearTimeout(te.current),re||"opacity"!==e.propertyName||(se(!1),ce(null),null==D||D())},style:{...R,...ne.tooltipStyles,opacity:void 0!==V&&Ge?V:void 0},ref:Y},$e,e.createElement(y,{className:he("react-tooltip-arrow",Ae.arrow,Ne.arrow,r,E&&Ae.noArrow),style:{...ne.tooltipArrowStyles,background:q?`linear-gradient(to right bottom, transparent 50%, ${q} 50%)`:void 0},ref:Z})):null},Pe=({content:t})=>e.createElement("span",{dangerouslySetInnerHTML:{__html:t}}),Me=e.forwardRef((({id:t,anchorId:n,anchorSelect:o,content:r,html:i,render:a,className:s,classNameArrow:l,variant:c="dark",place:u="top",offset:d=10,wrapper:p="div",children:f=null,events:m=["hover"],openOnClick:h=!1,positionStrategy:v="absolute",middlewares:y,delayShow:g=0,delayHide:b=0,float:w=!1,hidden:_=!1,noArrow:E=!1,clickable:x=!1,closeOnEsc:S=!1,closeOnScroll:O=!1,closeOnResize:C=!1,openEvents:T,closeEvents:k,globalCloseEvents:A,imperativeModeOnly:N=!1,style:R,position:P,isOpen:M,defaultIsOpen:L=!1,disableStyleInjection:D=!1,border:j,opacity:I,arrowColor:F,setIsOpen:H,afterShow:B,afterHide:U,role:W="tooltip"},z)=>{const[V,q]=(0,e.useState)(r),[$,G]=(0,e.useState)(i),[X,Y]=(0,e.useState)(u),[K,Z]=(0,e.useState)(c),[J,Q]=(0,e.useState)(d),[ee,te]=(0,e.useState)(g),[ne,oe]=(0,e.useState)(b),[re,ie]=(0,e.useState)(w),[ae,se]=(0,e.useState)(_),[le,ce]=(0,e.useState)(p),[ue,de]=(0,e.useState)(m),[pe,fe]=(0,e.useState)(v),[me,ve]=(0,e.useState)(null),[ye,ge]=(0,e.useState)(null),we=(0,e.useRef)(D),{anchorRefs:_e,activeAnchor:Ee}=ke(t),xe=e=>null==e?void 0:e.getAttributeNames().reduce(((t,n)=>{var o;return n.startsWith("data-tooltip-")&&(t[n.replace(/^data-tooltip-/,"")]=null!==(o=null==e?void 0:e.getAttribute(n))&&void 0!==o?o:null),t}),{}),Se=e=>{const t={place:e=>{var t;Y(null!==(t=e)&&void 0!==t?t:u)},content:e=>{q(null!=e?e:r)},html:e=>{G(null!=e?e:i)},variant:e=>{var t;Z(null!==(t=e)&&void 0!==t?t:c)},offset:e=>{Q(null===e?d:Number(e))},wrapper:e=>{var t;ce(null!==(t=e)&&void 0!==t?t:p)},events:e=>{const t=null==e?void 0:e.split(" ");de(null!=t?t:m)},"position-strategy":e=>{var t;fe(null!==(t=e)&&void 0!==t?t:v)},"delay-show":e=>{te(null===e?g:Number(e))},"delay-hide":e=>{oe(null===e?b:Number(e))},float:e=>{ie(null===e?w:"true"===e)},hidden:e=>{se(null===e?_:"true"===e)},"class-name":e=>{ve(e)}};Object.values(t).forEach((e=>e(null))),Object.entries(e).forEach((([e,n])=>{var o;null===(o=t[e])||void 0===o||o.call(t,n)}))};(0,e.useEffect)((()=>{q(r)}),[r]),(0,e.useEffect)((()=>{G(i)}),[i]),(0,e.useEffect)((()=>{Y(u)}),[u]),(0,e.useEffect)((()=>{Z(c)}),[c]),(0,e.useEffect)((()=>{Q(d)}),[d]),(0,e.useEffect)((()=>{te(g)}),[g]),(0,e.useEffect)((()=>{oe(b)}),[b]),(0,e.useEffect)((()=>{ie(w)}),[w]),(0,e.useEffect)((()=>{se(_)}),[_]),(0,e.useEffect)((()=>{fe(v)}),[v]),(0,e.useEffect)((()=>{we.current!==D&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")}),[D]),(0,e.useEffect)((()=>{"undefined"!=typeof window&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:"core"===D,disableBase:D}}))}),[]),(0,e.useEffect)((()=>{var e;const r=new Set(_e);let i=o;if(!i&&t&&(i=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`),i)try{document.querySelectorAll(i).forEach((e=>{r.add({current:e})}))}catch(e){console.warn(`[react-tooltip] "${i}" is not a valid CSS selector`)}const a=document.querySelector(`[id='${n}']`);if(a&&r.add({current:a}),!r.size)return()=>null;const s=null!==(e=null!=ye?ye:a)&&void 0!==e?e:Ee.current,l=new MutationObserver((e=>{e.forEach((e=>{var t;if(!s||"attributes"!==e.type||!(null===(t=e.attributeName)||void 0===t?void 0:t.startsWith("data-tooltip-")))return;const n=xe(s);Se(n)}))})),c={attributes:!0,childList:!1,subtree:!1};if(s){const e=xe(s);Se(e),l.observe(s,c)}return()=>{l.disconnect()}}),[_e,Ee,ye,n,o]),(0,e.useEffect)((()=>{(null==R?void 0:R.border)&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),j&&!be("border",`${j}`)&&console.warn(`[react-tooltip] "${j}" is not a valid \`border\`.`),(null==R?void 0:R.opacity)&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),I&&!be("opacity",`${I}`)&&console.warn(`[react-tooltip] "${I}" is not a valid \`opacity\`.`)}),[]);let Oe=f;const Ce=(0,e.useRef)(null);if(a){const t=a({content:(null==ye?void 0:ye.getAttribute("data-tooltip-content"))||V||null,activeAnchor:ye});Oe=t?e.createElement("div",{ref:Ce,className:"react-tooltip-content-wrapper"},t):null}else V&&(Oe=V);$&&(Oe=e.createElement(Pe,{content:$}));const Te={forwardRef:z,id:t,anchorId:n,anchorSelect:o,className:he(s,me),classNameArrow:l,content:Oe,contentWrapperRef:Ce,place:X,variant:K,offset:J,wrapper:le,events:ue,openOnClick:h,positionStrategy:pe,middlewares:y,delayShow:ee,delayHide:ne,float:re,hidden:ae,noArrow:E,clickable:x,closeOnEsc:S,closeOnScroll:O,closeOnResize:C,openEvents:T,closeEvents:k,globalCloseEvents:A,imperativeModeOnly:N,style:R,position:P,isOpen:M,defaultIsOpen:L,border:j,opacity:I,arrowColor:F,setIsOpen:H,afterShow:B,afterHide:U,activeAnchor:ye,setActiveAnchor:e=>ge(e),role:W};return e.createElement(Re,{...Te})}));"undefined"!=typeof window&&window.addEventListener("react-tooltip-inject-styles",(e=>{e.detail.disableCore||ye({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in}",type:"core"}),e.detail.disableBase||ye({css:"\n.styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:8px;height:8px}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}",type:"base"})}));const Le=window.wp.apiFetch;var De=n.n(Le);const je=({type:t="upcoming",status:n="no_status"})=>{const o={upcoming:{attending:{icon:"dashicons dashicons-yes-alt",text:(0,a._x)("Attending","Responded Status","gatherpress")},waiting_list:{icon:"dashicons dashicons-editor-help",text:(0,a._x)("Waiting List","Responded Status","gatherpress")},not_attending:{icon:"dashicons dashicons-dismiss",text:(0,a._x)("Not Attending","Responded Status","gatherpress")},no_status:{icon:"",text:""}},past:{attending:{icon:"dashicons dashicons-yes-alt",text:(0,a._x)("Went","Responded Status","gatherpress")},waiting_list:{icon:"dashicons dashicons-dismiss",text:(0,a._x)("Didn't Go","Responded Status","gatherpress")},not_attending:{icon:"dashicons dashicons-dismiss",text:(0,a._x)("Didn't Go","Responded Status","gatherpress")},no_status:{icon:"dashicons dashicons-dismiss",text:(0,a._x)("Didn't Go","Responded Status","gatherpress")}}};return(0,e.createElement)("div",{className:"gatherpress-status__response"},(0,e.createElement)("span",{className:o[t][n].icon}),(0,e.createElement)("strong",null,o[t][n].text))};function Ie(e){if("object"==typeof GatherPress)return e.split(".").reduce(((e,t)=>e&&e[t]),GatherPress)}window.wp.data;const Fe=({postId:t,currentUser:n="",type:o,enableAnonymousRsvp:s,enableInitialDecline:c,maxGuestLimit:d})=>{const[p,f]=(0,r.useState)(n.status),[m,h]=(0,r.useState)(Number(n.anonymous)),[v,y]=(0,r.useState)(n.guests),[g,b]=(0,r.useState)("hidden"),[w,_]=(0,r.useState)("false"),[E,x]=(0,r.useState)(!1);if("past"===o)return"";"undefined"==typeof adminpage&&u().setAppElement(".gatherpress-enabled");const S=e=>{e.preventDefault(),x(!1)},O=async(e,n,o,r=0,i=!0)=>{e.preventDefault(),"attending"!==n&&(r=0),De()({path:Ie("urls.eventRestApi")+"/rsvp",method:"POST",data:{post_id:t,status:n,guests:r,anonymous:o,_wpnonce:Ie("misc.nonce")}}).then((t=>{if(t.success){f(t.status),y(t.guests);const n={all:0,attending:0,not_attending:0,waiting_list:0};for(const[e,o]of Object.entries(t.responses))n[e]=o.count;((e,t="")=>{for(const[n,o]of Object.entries(e)){let e=n;t&&(e+="_"+String(t));const r=new CustomEvent(e,{detail:o});dispatchEvent(r)}})({setRsvpStatus:t.status,setRsvpResponse:t.responses,setRsvpCount:n,setRsvpSeeAllLink:n[t.status]>8,setOnlineEventLink:t.online_link},t.event_id),i&&S(e)}}))},C=e=>{switch(e){case"attending":return(0,a.__)("You're attending","gatherpress");case"waiting_list":return(0,a.__)("You're wait listed","gatherpress");case"not_attending":return(0,a.__)("You're not attending","gatherpress")}return(0,a.__)("RSVP to this event","gatherpress")};return(0,e.createElement)("div",{className:"gatherpress-rsvp"},(0,e.createElement)(i.ButtonGroup,{className:"gatherpress-buttons wp-block-buttons"},(0,e.createElement)("div",{className:"gatherpress-buttons__container wp-block-button"},(0,e.createElement)("a",{href:"#",className:"gatherpress-buttons__button wp-block-button__link","aria-expanded":w,tabIndex:"0",onKeyDown:e=>{13===e.keyCode&&(b("hidden"===g?"show":"hidden"),_("false"===w?"true":"false"))},onClick:e=>(e=>{e.preventDefault(),x(!0)})(e)},(e=>{switch(e){case"attending":case"waiting_list":case"not_attending":return(0,a.__)("Edit RSVP","gatherpress")}return(0,a.__)("RSVP","gatherpress")})(p))),(0,e.createElement)(u(),{isOpen:E,onRequestClose:S,style:{overlay:{zIndex:999999999},content:{top:"50%",left:"50%",right:"auto",bottom:"auto",marginRight:"-50%",transform:"translate(-50%, -50%)"}},contentLabel:(0,a.__)("Edit RSVP","gatherpress")},0===n.length&&(0,e.createElement)((()=>(0,e.createElement)("div",{className:"gatherpress-modal gatherpress-modal__rsvp"},(0,e.createElement)("div",{className:"gatherpress-modal__header"},(0,a.__)("Login Required","gatherpress")),(0,e.createElement)("div",{className:"gatherpress-modal__content"},(0,e.createElement)("div",{className:"gatherpress-modal__text"},l((0,a.sprintf)(/* translators: %s: 'Login' (hyperlinked) */ /* translators: %s: 'Login' (hyperlinked) */ +(0,a.__)("You must %s to RSVP to events.","gatherpress"),`\n\t\t\t\t\t\t\t\t\t${(0,a._x)("Login","Context: You must ~ to RSVP to events.","gatherpress")}\n\t\t\t\t\t\t\t\t`))),""!==Ie("urls.registrationUrl")&&(0,e.createElement)("div",{className:"gatherpress-modal__text"},l((0,a.sprintf)(/* translators: %s: 'Register' (hyperlinked) */ /* translators: %s: 'Register' (hyperlinked) */ +(0,a.__)("%s if you do not have an account.","gatherpress"),`\n\t\t\t\t\t\t\t\t\t\t${(0,a._x)("Register","Context: ~ if you do not have an account.","gatherpress")}\n\t\t\t\t\t\t\t\t\t`)))),(0,e.createElement)(i.ButtonGroup,{className:"gatherpress-buttons wp-block-buttons"},(0,e.createElement)("div",{className:"gatherpress-buttons__container wp-block-button"},(0,e.createElement)("a",{href:"#",onClick:S,className:"gatherpress-buttons__button wp-block-button__link"},(0,a.__)("Close","gatherpress")))))),null),0!==n.length&&(0,e.createElement)((({status:t})=>{let n="",o="";return"not_attending"===t||"no_status"===t?(n="attending",o=(0,a.__)("Attend","gatherpress")):(n="not_attending",o=(0,a._x)("Not Attending","action of not attending","gatherpress")),(0,e.createElement)("div",{className:"gatherpress-modal gatherpress-modal__rsvp"},(0,e.createElement)("div",{className:"gatherpress-modal__header"},C(p)?C(p):(0,e.createElement)(i.Spinner,null)),(0,e.createElement)("div",{className:"gatherpress-modal__content"},(0,e.createElement)("div",{className:"gatherpress-modal__text"},l((0,a.sprintf)(/* translators: %s: button label. */ /* translators: %s: button label. */ +(0,a.__)("To set or change your attending status, simply click the %s button below.","gatherpress"),""+o+""))),0{const t=Number(e.target.value);y(t),O(e,p,m,t,!1)},defaultValue:v})),s&&(0,e.createElement)("div",{className:"gatherpress-modal__anonymous"},(0,e.createElement)("input",{id:"gatherpress-anonymous",type:"checkbox",onChange:e=>{const t=Number(e.target.checked);h(t),O(e,p,t,0,!1)},checked:m}),(0,e.createElement)("label",{htmlFor:"gatherpress-anonymous",tabIndex:"0",className:"gatherpress-tooltip","data-tooltip-id":"gatherpress-anonymous-tooltip","data-tooltip-content":(0,a.__)("Only admins will see your identity.","gatherpress")},(0,a.__)("List me as anonymous.","gatherpress")),(0,e.createElement)(Me,{id:"gatherpress-anonymous-tooltip"}))),(0,e.createElement)(i.ButtonGroup,{className:"gatherpress-buttons wp-block-buttons"},(0,e.createElement)("div",{className:"gatherpress-buttons__container wp-block-button is-style-outline"},(0,e.createElement)("a",{href:"#",onClick:e=>O(e,n,m,"not_attending"!==n?v:0,"not_attending"===n),className:"gatherpress-buttons__button wp-block-button__link"},o)),(0,e.createElement)("div",{className:"gatherpress-buttons__container wp-block-button"},(0,e.createElement)("a",{href:"#",onClick:S,className:"gatherpress-buttons__button wp-block-button__link"},(0,a.__)("Close","gatherpress")))),c&&"no_status"===p&&1!==m?(0,e.createElement)(i.ButtonGroup,{className:"gatherpress-buttons wp-block-buttons"},(0,e.createElement)("div",{className:"gatherpress-buttons__container wp-block-button"},(0,e.createElement)("a",{href:"#",onClick:e=>O(e,"not_attending",null),className:"gatherpress-buttons__text-link"},(0,a._x)("Not Attending","Responded Status","gatherpress")))):(0,e.createElement)(e.Fragment,null))}),{status:p}))),"no_status"!==p&&(0,e.createElement)("div",{className:"gatherpress-status"},(0,e.createElement)(je,{type:o,status:p}),0{const[a,s]=(0,r.useState)(i);((e,t="")=>{for(const[n,o]of Object.entries(e)){let e=n;t&&(e+="_"+String(t)),addEventListener(e,(e=>{o(e.detail)}),!1)}})({setRsvpResponse:s},t);let l="";return"object"==typeof a&&void 0!==a[n]&&(i=[...a[n].responses],o&&(i=i.splice(0,o)),l=i.map(((t,n)=>{const{name:o,photo:r}=t;return(0,e.createElement)("figure",{key:n,className:"gatherpress-rsvp-response__member-avatar"},(0,e.createElement)("img",{alt:o,title:o,src:r}))}))),(0,e.createElement)(e.Fragment,null,l)},Be=t=>{const{type:n,event:o,eventOptions:r}=t,i="default"===r.imageSize?"featured_image":"featured_image_"+r.imageSize,a=l(o[i]),s="gatherpress-events-list";let c="location";const u=o.venue?.is_online_event;return u&&(c="video-alt2"),(0,e.createElement)("div",{className:`${s}`},(0,e.createElement)("div",{className:`${s}__header`},(0,e.createElement)("div",{className:`${s}__info`},r.showFeaturedImage&&(0,e.createElement)("figure",{className:`${s}__image`},(0,e.createElement)("a",{href:o.permalink},a)),(0,e.createElement)("div",{className:`${s}__datetime`},(0,e.createElement)("strong",null,o.datetime_start)),(0,e.createElement)("div",{className:`${s}__title`},(0,e.createElement)("a",{href:o.permalink},l(o.title))),o.venue&&r.showVenue&&(0,e.createElement)("div",{className:`${s}__venue`},(0,e.createElement)("span",{className:`dashicons dashicons-${c}`}),!u&&(0,e.createElement)("a",{href:o.venue.permalink},l(o.venue.name)),u&&(0,e.createElement)("span",null,l(o.venue.name))),r.showDescription&&(0,e.createElement)("div",{className:`${s}__content`},(0,e.createElement)("div",{className:`${s}__excerpt`},l(o.excerpt.split(" ").splice(0,parseInt(r.descriptionLimit)).join(" ")+"[…]"))))),(0,e.createElement)("div",{className:`${s}__footer`},r.showRsvpResponse&&(0,e.createElement)("div",{className:"gatherpress-rsvp-response__items"},(0,e.createElement)(He,{postId:o.ID,value:"attending",responses:o.responses,limit:"3"})),"upcoming"===n&&r.showRsvp&&(0,e.createElement)(Fe,{postId:o.ID,currentUser:o.current_user,type:n,enableAnonymousRsvp:o.gatherpress_enable_anonymous_rsvp,enableInitialDecline:o.gatherpress_enable_initial_decline}),"past"===n&&r.showRsvp&&""!==o.current_user&&(0,e.createElement)(je,{type:n,status:o.current_user?.status})))},Ue=t=>{const{eventOptions:n,maxNumberOfEvents:o,datetimeFormat:s,type:l,topics:c,venues:u}=t,[d,p]=(0,r.useState)([]),[f,m]=(0,r.useState)(!1),h=d.map((t=>(0,e.createElement)(Be,{key:t.ID,eventOptions:n,type:l,event:t})));return(0,r.useEffect)((()=>{let e="",t="";"object"==typeof c&&(e=c.map((e=>e.slug))?.join(",")),"object"==typeof u&&(t=u.map((e=>e.slug))?.join(","));const n=Ie("urls.eventRestApi")+`/events-list?event_list_type=${l}&max_number=${o}&datetime_format=${s}&topics=${e}&venues=${t}`;Ie("misc.isUserLoggedIn")?De()({path:n}).then((e=>{m(!0),p(e)})):fetch(n).then((e=>e.json())).then((e=>{m(!0),p(e)}))}),[p,o,s,l,c,u]),(0,e.createElement)("div",{className:`gatherpress-${l}-events-list`},!f&&(0,e.createElement)(i.Spinner,null),f&&0===d.length&&(()=>{const t="upcoming"===l?(0,a.__)("There are no upcoming events.","gatherpress"):(0,a.__)("There are no past events.","gatherpress");return(0,e.createElement)("div",{className:`gatherpress-${l}-events__no_events_message`},t)})(),f&&h)};o()((()=>{const t=document.querySelectorAll('[data-gatherpress_block_name="events-list"]');for(let l=0;l array('lodash', 'react', 'react-dom', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => '4418243136224c349ef8'); + array('lodash', 'react', 'react-dom', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => '52e9a2c60b1e9c4bd949'); diff --git a/build/blocks/events-list/index.js b/build/blocks/events-list/index.js index 9c9c75fe6..31ac5aa3a 100644 --- a/build/blocks/events-list/index.js +++ b/build/blocks/events-list/index.js @@ -1,5 +1,5 @@ -(()=>{var e,t={6383:(e,t,n)=>{"use strict";const o=window.wp.blocks;var r=n(1609);const i=window.lodash;var s=n(6942),a=n.n(s),l=n(442);const c=l.default||l,u=window.wp.i18n,d=window.wp.blockEditor,p=window.wp.components,f=window.wp.coreData,m=window.wp.data,h=window.wp.element;var v=n(312),y=n.n(v);const g=Math.min,b=Math.max,w=Math.round,_=Math.floor,E=e=>({x:e,y:e}),x={left:"right",right:"left",bottom:"top",top:"bottom"},S={start:"end",end:"start"};function O(e,t,n){return b(e,g(t,n))}function C(e,t){return"function"==typeof e?e(t):e}function k(e){return e.split("-")[0]}function T(e){return e.split("-")[1]}function A(e){return"x"===e?"y":"x"}function R(e){return"y"===e?"height":"width"}function N(e){return["top","bottom"].includes(k(e))?"y":"x"}function P(e){return A(N(e))}function D(e){return e.replace(/start|end/g,(e=>S[e]))}function L(e){return e.replace(/left|right|bottom|top/g,(e=>x[e]))}function M(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function j(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function I(e,t,n){let{reference:o,floating:r}=e;const i=N(t),s=P(t),a=R(s),l=k(t),c="y"===i,u=o.x+o.width/2-r.width/2,d=o.y+o.height/2-r.height/2,p=o[a]/2-r[a]/2;let f;switch(l){case"top":f={x:u,y:o.y-r.height};break;case"bottom":f={x:u,y:o.y+o.height};break;case"right":f={x:o.x+o.width,y:d};break;case"left":f={x:o.x-r.width,y:d};break;default:f={x:o.x,y:o.y}}switch(T(t)){case"start":f[s]-=p*(n&&c?-1:1);break;case"end":f[s]+=p*(n&&c?-1:1)}return f}async function F(e,t){var n;void 0===t&&(t={});const{x:o,y:r,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:f=0}=C(t,e),m=M(f),h=a[p?"floating"===d?"reference":"floating":d],v=j(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),y="floating"===d?{...s.floating,x:o,y:r}:s.reference,g=await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),b=await(null==i.isElement?void 0:i.isElement(g))&&await(null==i.getScale?void 0:i.getScale(g))||{x:1,y:1},w=j(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:g,strategy:l}):y);return{top:(v.top-w.top+m.top)/b.y,bottom:(w.bottom-v.bottom+m.bottom)/b.y,left:(v.left-w.left+m.left)/b.x,right:(w.right-v.right+m.right)/b.x}}const H=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:i,placement:s,middlewareData:a}=t,l=await async function(e,t){const{placement:n,platform:o,elements:r}=e,i=await(null==o.isRTL?void 0:o.isRTL(r.floating)),s=k(n),a=T(n),l="y"===N(n),c=["left","top"].includes(s)?-1:1,u=i&&l?-1:1,d=C(t,e);let{mainAxis:p,crossAxis:f,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return a&&"number"==typeof m&&(f="end"===a?-1*m:m),l?{x:f*u,y:p*c}:{x:p*c,y:f*u}}(t,e);return s===(null==(n=a.offset)?void 0:n.placement)&&null!=(o=a.arrow)&&o.alignmentOffset?{}:{x:r+l.x,y:i+l.y,data:{...l,placement:s}}}}};function B(e){return V(e)?(e.nodeName||"").toLowerCase():"#document"}function U(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function W(e){var t;return null==(t=(V(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function V(e){return e instanceof Node||e instanceof U(e).Node}function z(e){return e instanceof Element||e instanceof U(e).Element}function q(e){return e instanceof HTMLElement||e instanceof U(e).HTMLElement}function $(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof U(e).ShadowRoot)}function G(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=J(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(r)}function X(e){return["table","td","th"].includes(B(e))}function Y(e){const t=K(),n=J(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function K(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Z(e){return["html","body","#document"].includes(B(e))}function J(e){return U(e).getComputedStyle(e)}function Q(e){return z(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function ee(e){if("html"===B(e))return e;const t=e.assignedSlot||e.parentNode||$(e)&&e.host||W(e);return $(t)?t.host:t}function te(e){const t=ee(e);return Z(t)?e.ownerDocument?e.ownerDocument.body:e.body:q(t)&&G(t)?t:te(t)}function ne(e,t,n){var o;void 0===t&&(t=[]),void 0===n&&(n=!0);const r=te(e),i=r===(null==(o=e.ownerDocument)?void 0:o.body),s=U(r);return i?t.concat(s,s.visualViewport||[],G(r)?r:[],s.frameElement&&n?ne(s.frameElement):[]):t.concat(r,ne(r,[],n))}function oe(e){const t=J(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=q(e),i=r?e.offsetWidth:n,s=r?e.offsetHeight:o,a=w(n)!==i||w(o)!==s;return a&&(n=i,o=s),{width:n,height:o,$:a}}function re(e){return z(e)?e:e.contextElement}function ie(e){const t=re(e);if(!q(t))return E(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=oe(t);let s=(i?w(n.width):n.width)/o,a=(i?w(n.height):n.height)/r;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const se=E(0);function ae(e){const t=U(e);return K()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:se}function le(e,t,n,o){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=e.getBoundingClientRect(),i=re(e);let s=E(1);t&&(o?z(o)&&(s=ie(o)):s=ie(e));const a=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==U(e))&&t}(i,n,o)?ae(i):E(0);let l=(r.left+a.x)/s.x,c=(r.top+a.y)/s.y,u=r.width/s.x,d=r.height/s.y;if(i){const e=U(i),t=o&&z(o)?U(o):o;let n=e,r=n.frameElement;for(;r&&o&&t!==n;){const e=ie(r),t=r.getBoundingClientRect(),o=J(r),i=t.left+(r.clientLeft+parseFloat(o.paddingLeft))*e.x,s=t.top+(r.clientTop+parseFloat(o.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=i,c+=s,n=U(r),r=n.frameElement}}return j({width:u,height:d,x:l,y:c})}const ce=[":popover-open",":modal"];function ue(e){return ce.some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function de(e){return le(W(e)).left+Q(e).scrollLeft}function pe(e,t,n){let o;if("viewport"===t)o=function(e,t){const n=U(e),o=W(e),r=n.visualViewport;let i=o.clientWidth,s=o.clientHeight,a=0,l=0;if(r){i=r.width,s=r.height;const e=K();(!e||e&&"fixed"===t)&&(a=r.offsetLeft,l=r.offsetTop)}return{width:i,height:s,x:a,y:l}}(e,n);else if("document"===t)o=function(e){const t=W(e),n=Q(e),o=e.ownerDocument.body,r=b(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),i=b(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+de(e);const a=-n.scrollTop;return"rtl"===J(o).direction&&(s+=b(t.clientWidth,o.clientWidth)-r),{width:r,height:i,x:s,y:a}}(W(e));else if(z(t))o=function(e,t){const n=le(e,!0,"fixed"===t),o=n.top+e.clientTop,r=n.left+e.clientLeft,i=q(e)?ie(e):E(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:r*i.x,y:o*i.y}}(t,n);else{const n=ae(e);o={...t,x:t.x-n.x,y:t.y-n.y}}return j(o)}function fe(e,t){const n=ee(e);return!(n===t||!z(n)||Z(n))&&("fixed"===J(n).position||fe(n,t))}function me(e,t,n){const o=q(t),r=W(t),i="fixed"===n,s=le(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=E(0);if(o||!o&&!i)if(("body"!==B(t)||G(r))&&(a=Q(t)),o){const e=le(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else r&&(l.x=de(r));return{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function he(e,t){return q(e)&&"fixed"!==J(e).position?t?t(e):e.offsetParent:null}function ve(e,t){const n=U(e);if(!q(e)||ue(e))return n;let o=he(e,t);for(;o&&X(o)&&"static"===J(o).position;)o=he(o,t);return o&&("html"===B(o)||"body"===B(o)&&"static"===J(o).position&&!Y(o))?n:o||function(e){let t=ee(e);for(;q(t)&&!Z(t);){if(Y(t))return t;t=ee(t)}return null}(e)||n}const ye={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const i="fixed"===r,s=W(o),a=!!t&&ue(t.floating);if(o===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},c=E(1);const u=E(0),d=q(o);if((d||!d&&!i)&&(("body"!==B(o)||G(s))&&(l=Q(o)),q(o))){const e=le(o);c=ie(o),u.x=e.x+o.clientLeft,u.y=e.y+o.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x,y:n.y*c.y-l.scrollTop*c.y+u.y}},getDocumentElement:W,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const i=[..."clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let o=ne(e,[],!1).filter((e=>z(e)&&"body"!==B(e))),r=null;const i="fixed"===J(e).position;let s=i?ee(e):e;for(;z(s)&&!Z(s);){const t=J(s),n=Y(s);n||"fixed"!==t.position||(r=null),(i?!n&&!r:!n&&"static"===t.position&&r&&["absolute","fixed"].includes(r.position)||G(s)&&!n&&fe(e,s))?o=o.filter((e=>e!==s)):r=t,s=ee(s)}return t.set(e,o),o}(t,this._c):[].concat(n),o],s=i[0],a=i.reduce(((e,n)=>{const o=pe(t,n,r);return e.top=b(o.top,e.top),e.right=g(o.right,e.right),e.bottom=g(o.bottom,e.bottom),e.left=b(o.left,e.left),e}),pe(t,s,r));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:ve,getElementRects:async function(e){const t=this.getOffsetParent||ve,n=this.getDimensions;return{reference:me(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,...await n(e.floating)}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=oe(e);return{width:t,height:n}},getScale:ie,isElement:z,isRTL:function(e){return"rtl"===J(e).direction}};const ge=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=C(e,t),c={x:n,y:o},u=await F(t,l),d=N(k(r)),p=A(d);let f=c[p],m=c[d];if(i){const e="y"===p?"bottom":"right";f=O(f+u["y"===p?"top":"left"],f,f-u[e])}if(s){const e="y"===d?"bottom":"right";m=O(m+u["y"===d?"top":"left"],m,m-u[e])}const h=a.fn({...t,[p]:f,[d]:m});return{...h,data:{x:h.x-n,y:h.y-o}}}}},be=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,...v}=C(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const y=k(r),g=k(a)===a,b=await(null==l.isRTL?void 0:l.isRTL(c.floating)),w=p||(g||!h?[L(a)]:function(e){const t=L(e);return[D(e),t,D(t)]}(a));p||"none"===m||w.push(...function(e,t,n,o){const r=T(e);let i=function(e,t,n){const o=["left","right"],r=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?r:o:t?o:r;case"left":case"right":return t?i:s;default:return[]}}(k(e),"start"===n,o);return r&&(i=i.map((e=>e+"-"+r)),t&&(i=i.concat(i.map(D)))),i}(a,h,m,b));const _=[a,...w],E=await F(t,v),x=[];let S=(null==(o=i.flip)?void 0:o.overflows)||[];if(u&&x.push(E[y]),d){const e=function(e,t,n){void 0===n&&(n=!1);const o=T(e),r=P(e),i=R(r);let s="x"===r?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=L(s)),[s,L(s)]}(r,s,b);x.push(E[e[0]],E[e[1]])}if(S=[...S,{placement:r,overflows:x}],!x.every((e=>e<=0))){var O,A;const e=((null==(O=i.flip)?void 0:O.index)||0)+1,t=_[e];if(t)return{data:{index:e,overflows:S},reset:{placement:t}};let n=null==(A=S.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:A.placement;if(!n)switch(f){case"bestFit":{var N;const e=null==(N=S.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:N[0];e&&(n=e);break}case"initialPlacement":n=a}if(r!==n)return{reset:{placement:n}}}return{}}}},we=(e,t,n)=>{const o=new Map,r={platform:ye,...n},i={...r.platform,_c:o};return(async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),l=await(null==s.isRTL?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:d}=I(c,o,l),p=o,f={},m=0;for(let n=0;n{if(!e)return{tooltipStyles:{},tooltipArrowStyles:{},place:o};if(null===t)return{tooltipStyles:{},tooltipArrowStyles:{},place:o};const l=s;return n?(l.push({name:"arrow",options:c={element:n,padding:5},async fn(e){const{x:t,y:n,placement:o,rects:r,platform:i,elements:s,middlewareData:a}=e,{element:l,padding:u=0}=C(c,e)||{};if(null==l)return{};const d=M(u),p={x:t,y:n},f=P(o),m=R(f),h=await i.getDimensions(l),v="y"===f,y=v?"top":"left",b=v?"bottom":"right",w=v?"clientHeight":"clientWidth",_=r.reference[m]+r.reference[f]-p[f]-r.floating[m],E=p[f]-r.reference[f],x=await(null==i.getOffsetParent?void 0:i.getOffsetParent(l));let S=x?x[w]:0;S&&await(null==i.isElement?void 0:i.isElement(x))||(S=s.floating[w]||r.floating[m]);const k=_/2-E/2,A=S/2-h[m]/2-1,N=g(d[y],A),D=g(d[b],A),L=N,j=S-h[m]-D,I=S/2-h[m]/2+k,F=O(L,I,j),H=!a.arrow&&null!=T(o)&&I!==F&&r.reference[m]/2-(I{var r,i;const s={left:`${e}px`,top:`${t}px`,border:a},{x:l,y:c}=null!==(r=o.arrow)&&void 0!==r?r:{x:0,y:0},u=null!==(i={top:"bottom",right:"left",bottom:"top",left:"right"}[n.split("-")[0]])&&void 0!==i?i:"bottom",d=a&&{borderBottom:a,borderRight:a};let p=0;if(a){const e=`${a}`.match(/(\d+)px/);p=(null==e?void 0:e[1])?Number(e[1]):1}return{tooltipStyles:s,tooltipArrowStyles:{left:null!=l?`${l}px`:"",top:null!=c?`${c}px`:"",right:"",bottom:"",...d,[u]:`-${4+p}px`},place:n}}))):we(e,t,{placement:"bottom",strategy:i,middleware:l}).then((({x:e,y:t,placement:n})=>({tooltipStyles:{left:`${e}px`,top:`${t}px`},tooltipArrowStyles:{},place:n})));var c},Se=(e,t)=>!("CSS"in window&&"supports"in window.CSS)||window.CSS.supports(e,t),Oe=(e,t,n)=>{let o=null;const r=function(...r){const i=()=>{o=null,n||e.apply(this,r)};n&&!o&&(e.apply(this,r),o=setTimeout(i,t)),n||(o&&clearTimeout(o),o=setTimeout(i,t))};return r.cancel=()=>{o&&(clearTimeout(o),o=null)},r},Ce=e=>null!==e&&!Array.isArray(e)&&"object"==typeof e,ke=(e,t)=>{if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&e.every(((e,n)=>ke(e,t[n])));if(Array.isArray(e)!==Array.isArray(t))return!1;if(!Ce(e)||!Ce(t))return e===t;const n=Object.keys(e),o=Object.keys(t);return n.length===o.length&&n.every((n=>ke(e[n],t[n])))},Te=e=>{if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;const t=getComputedStyle(e);return["overflow","overflow-x","overflow-y"].some((e=>{const n=t.getPropertyValue(e);return"auto"===n||"scroll"===n}))},Ae=e=>{if(!e)return null;let t=e.parentElement;for(;t;){if(Te(t))return t;t=t.parentElement}return document.scrollingElement||document.documentElement},Re="undefined"!=typeof window?r.useLayoutEffect:r.useEffect,Ne={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},Pe=(0,r.createContext)({getTooltipData:()=>Ne});function De(e="DEFAULT_TOOLTIP_ID"){return(0,r.useContext)(Pe).getTooltipData(e)}var Le={tooltip:"core-styles-module_tooltip__3vRRp",fixed:"core-styles-module_fixed__pcSol",arrow:"core-styles-module_arrow__cvMwQ",noArrow:"core-styles-module_noArrow__xock6",clickable:"core-styles-module_clickable__ZuTTB",show:"core-styles-module_show__Nt9eE",closing:"core-styles-module_closing__sGnxF"},Me={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const je=({forwardRef:e,id:t,className:n,classNameArrow:o,variant:i="dark",anchorId:a,anchorSelect:l,place:c="top",offset:u=10,events:d=["hover"],openOnClick:p=!1,positionStrategy:f="absolute",middlewares:m,wrapper:h,delayShow:v=0,delayHide:y=0,float:w=!1,hidden:E=!1,noArrow:x=!1,clickable:S=!1,closeOnEsc:O=!1,closeOnScroll:C=!1,closeOnResize:k=!1,openEvents:T,closeEvents:A,globalCloseEvents:R,imperativeModeOnly:N,style:P,position:D,afterShow:L,afterHide:M,content:j,contentWrapperRef:I,isOpen:F,defaultIsOpen:H=!1,setIsOpen:B,activeAnchor:U,setActiveAnchor:V,border:z,opacity:q,arrowColor:$,role:G="tooltip"})=>{var X;const Y=(0,r.useRef)(null),K=(0,r.useRef)(null),Z=(0,r.useRef)(null),J=(0,r.useRef)(null),Q=(0,r.useRef)(null),[ee,te]=(0,r.useState)({tooltipStyles:{},tooltipArrowStyles:{},place:c}),[oe,ie]=(0,r.useState)(!1),[se,ae]=(0,r.useState)(!1),[ce,ue]=(0,r.useState)(null),de=(0,r.useRef)(!1),pe=(0,r.useRef)(null),{anchorRefs:fe,setActiveAnchor:me}=De(t),he=(0,r.useRef)(!1),[ve,ye]=(0,r.useState)([]),ge=(0,r.useRef)(!1),be=p||d.includes("click"),we=be||(null==T?void 0:T.click)||(null==T?void 0:T.dblclick)||(null==T?void 0:T.mousedown),_e=T?{...T}:{mouseenter:!0,focus:!0,click:!1,dblclick:!1,mousedown:!1};!T&&be&&Object.assign(_e,{mouseenter:!1,focus:!1,click:!0});const Ee=A?{...A}:{mouseleave:!0,blur:!0,click:!1,dblclick:!1,mouseup:!1};!A&&be&&Object.assign(Ee,{mouseleave:!1,blur:!1});const Se=R?{...R}:{escape:O||!1,scroll:C||!1,resize:k||!1,clickOutsideAnchor:we||!1};N&&(Object.assign(_e,{mouseenter:!1,focus:!1,click:!1,dblclick:!1,mousedown:!1}),Object.assign(Ee,{mouseleave:!1,blur:!1,click:!1,dblclick:!1,mouseup:!1}),Object.assign(Se,{escape:!1,scroll:!1,resize:!1,clickOutsideAnchor:!1})),Re((()=>(ge.current=!0,()=>{ge.current=!1})),[]);const Ce=e=>{ge.current&&(e&&ae(!0),setTimeout((()=>{ge.current&&(null==B||B(e),void 0===F&&ie(e))}),10))};(0,r.useEffect)((()=>{if(void 0===F)return()=>null;F&&ae(!0);const e=setTimeout((()=>{ie(F)}),10);return()=>{clearTimeout(e)}}),[F]),(0,r.useEffect)((()=>{if(oe!==de.current)if(Q.current&&clearTimeout(Q.current),de.current=oe,oe)null==L||L();else{const e=(e=>{const t=getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay").match(/^([\d.]+)(ms|s)$/);if(!t)return 0;const[,n,o]=t;return Number(n)*("ms"===o?1:1e3)})();Q.current=setTimeout((()=>{ae(!1),ue(null),null==M||M()}),e+25)}}),[oe]);const Te=e=>{te((t=>ke(t,e)?t:e))},Ne=(e=v)=>{Z.current&&clearTimeout(Z.current),se?Ce(!0):Z.current=setTimeout((()=>{Ce(!0)}),e)},Pe=(e=y)=>{J.current&&clearTimeout(J.current),J.current=setTimeout((()=>{he.current||Ce(!1)}),e)},je=e=>{var t;if(!e)return;const n=null!==(t=e.currentTarget)&&void 0!==t?t:e.target;if(!(null==n?void 0:n.isConnected))return V(null),void me({current:null});v?Ne():Ce(!0),V(n),me({current:n}),J.current&&clearTimeout(J.current)},Ie=()=>{S?Pe(y||100):y?Pe():Ce(!1),Z.current&&clearTimeout(Z.current)},Fe=({x:e,y:t})=>{var n;const o={getBoundingClientRect:()=>({x:e,y:t,width:0,height:0,top:t,left:e,right:e,bottom:t})};xe({place:null!==(n=null==ce?void 0:ce.place)&&void 0!==n?n:c,offset:u,elementReference:o,tooltipReference:Y.current,tooltipArrowReference:K.current,strategy:f,middlewares:m,border:z}).then((e=>{Te(e)}))},He=e=>{if(!e)return;const t=e,n={x:t.clientX,y:t.clientY};Fe(n),pe.current=n},Be=e=>{var t;if(!oe)return;const n=e.target;n.isConnected&&((null===(t=Y.current)||void 0===t?void 0:t.contains(n))||[document.querySelector(`[id='${a}']`),...ve].some((e=>null==e?void 0:e.contains(n)))||(Ce(!1),Z.current&&clearTimeout(Z.current)))},Ue=Oe(je,50,!0),We=Oe(Ie,50,!0),Ve=e=>{We.cancel(),Ue(e)},ze=()=>{Ue.cancel(),We()},qe=(0,r.useCallback)((()=>{var e,t;const n=null!==(e=null==ce?void 0:ce.position)&&void 0!==e?e:D;n?Fe(n):w?pe.current&&Fe(pe.current):(null==U?void 0:U.isConnected)&&xe({place:null!==(t=null==ce?void 0:ce.place)&&void 0!==t?t:c,offset:u,elementReference:U,tooltipReference:Y.current,tooltipArrowReference:K.current,strategy:f,middlewares:m,border:z}).then((e=>{ge.current&&Te(e)}))}),[oe,U,j,P,c,null==ce?void 0:ce.place,u,f,D,null==ce?void 0:ce.position,w]);(0,r.useEffect)((()=>{var e,t;const n=new Set(fe);ve.forEach((e=>{n.add({current:e})}));const o=document.querySelector(`[id='${a}']`);o&&n.add({current:o});const r=()=>{Ce(!1)},i=Ae(U),s=Ae(Y.current);Se.scroll&&(window.addEventListener("scroll",r),null==i||i.addEventListener("scroll",r),null==s||s.addEventListener("scroll",r));let l=null;Se.resize?window.addEventListener("resize",r):U&&Y.current&&(l=function(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:l=!1}=o,c=re(e),u=r||i?[...c?ne(c):[],...ne(t)]:[];u.forEach((e=>{r&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=c&&a?function(e,t){let n,o=null;const r=W(e);function i(){var e;clearTimeout(n),null==(e=o)||e.disconnect(),o=null}return function s(a,l){void 0===a&&(a=!1),void 0===l&&(l=1),i();const{left:c,top:u,width:d,height:p}=e.getBoundingClientRect();if(a||t(),!d||!p)return;const f={rootMargin:-_(u)+"px "+-_(r.clientWidth-(c+d))+"px "+-_(r.clientHeight-(u+p))+"px "+-_(c)+"px",threshold:b(0,g(1,l))||1};let m=!0;function h(e){const t=e[0].intersectionRatio;if(t!==l){if(!m)return s();t?s(!1,t):n=setTimeout((()=>{s(!1,1e-7)}),100)}m=!1}try{o=new IntersectionObserver(h,{...f,root:r.ownerDocument})}catch(e){o=new IntersectionObserver(h,f)}o.observe(e)}(!0),i}(c,n):null;let p,f=-1,m=null;s&&(m=new ResizeObserver((e=>{let[o]=e;o&&o.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame((()=>{var e;null==(e=m)||e.observe(t)}))),n()})),c&&!l&&m.observe(c),m.observe(t));let h=l?le(e):null;return l&&function t(){const o=le(e);!h||o.x===h.x&&o.y===h.y&&o.width===h.width&&o.height===h.height||n(),h=o,p=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{r&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=m)||e.disconnect(),m=null,l&&cancelAnimationFrame(p)}}(U,Y.current,qe,{ancestorResize:!0,elementResize:!0,layoutShift:!0}));const c=e=>{"Escape"===e.key&&Ce(!1)};Se.escape&&window.addEventListener("keydown",c),Se.clickOutsideAnchor&&window.addEventListener("click",Be);const u=[],d=e=>{oe&&(null==e?void 0:e.target)===U||je(e)},p=e=>{oe&&(null==e?void 0:e.target)===U&&Ie()},f=["mouseenter","mouseleave","focus","blur"],m=["click","dblclick","mousedown","mouseup"];Object.entries(_e).forEach((([e,t])=>{t&&(f.includes(e)?u.push({event:e,listener:Ve}):m.includes(e)&&u.push({event:e,listener:d}))})),Object.entries(Ee).forEach((([e,t])=>{t&&(f.includes(e)?u.push({event:e,listener:ze}):m.includes(e)&&u.push({event:e,listener:p}))})),w&&u.push({event:"pointermove",listener:He});const h=()=>{he.current=!0},v=()=>{he.current=!1,Ie()};return S&&!we&&(null===(e=Y.current)||void 0===e||e.addEventListener("mouseenter",h),null===(t=Y.current)||void 0===t||t.addEventListener("mouseleave",v)),u.forEach((({event:e,listener:t})=>{n.forEach((n=>{var o;null===(o=n.current)||void 0===o||o.addEventListener(e,t)}))})),()=>{var e,t;Se.scroll&&(window.removeEventListener("scroll",r),null==i||i.removeEventListener("scroll",r),null==s||s.removeEventListener("scroll",r)),Se.resize?window.removeEventListener("resize",r):null==l||l(),Se.clickOutsideAnchor&&window.removeEventListener("click",Be),Se.escape&&window.removeEventListener("keydown",c),S&&!we&&(null===(e=Y.current)||void 0===e||e.removeEventListener("mouseenter",h),null===(t=Y.current)||void 0===t||t.removeEventListener("mouseleave",v)),u.forEach((({event:e,listener:t})=>{n.forEach((n=>{var o;null===(o=n.current)||void 0===o||o.removeEventListener(e,t)}))}))}}),[U,qe,se,fe,ve,T,A,R,be,v,y]),(0,r.useEffect)((()=>{var e,n;let o=null!==(n=null!==(e=null==ce?void 0:ce.anchorSelect)&&void 0!==e?e:l)&&void 0!==n?n:"";!o&&t&&(o=`[data-tooltip-id='${t}']`);const r=new MutationObserver((e=>{const n=[],r=[];e.forEach((e=>{if("attributes"===e.type&&"data-tooltip-id"===e.attributeName&&(e.target.getAttribute("data-tooltip-id")===t?n.push(e.target):e.oldValue===t&&r.push(e.target)),"childList"===e.type){if(U){const t=[...e.removedNodes].filter((e=>1===e.nodeType));if(o)try{r.push(...t.filter((e=>e.matches(o)))),r.push(...t.flatMap((e=>[...e.querySelectorAll(o)])))}catch(e){}t.some((e=>{var t;return!!(null===(t=null==e?void 0:e.contains)||void 0===t?void 0:t.call(e,U))&&(ae(!1),Ce(!1),V(null),Z.current&&clearTimeout(Z.current),J.current&&clearTimeout(J.current),!0)}))}if(o)try{const t=[...e.addedNodes].filter((e=>1===e.nodeType));n.push(...t.filter((e=>e.matches(o)))),n.push(...t.flatMap((e=>[...e.querySelectorAll(o)])))}catch(e){}}})),(n.length||r.length)&&ye((e=>[...e.filter((e=>!r.includes(e))),...n]))}));return r.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"],attributeOldValue:!0}),()=>{r.disconnect()}}),[t,l,null==ce?void 0:ce.anchorSelect,U]),(0,r.useEffect)((()=>{qe()}),[qe]),(0,r.useEffect)((()=>{if(!(null==I?void 0:I.current))return()=>null;const e=new ResizeObserver((()=>{setTimeout((()=>qe()))}));return e.observe(I.current),()=>{e.disconnect()}}),[j,null==I?void 0:I.current]),(0,r.useEffect)((()=>{var e;const t=document.querySelector(`[id='${a}']`),n=[...ve,t];U&&n.includes(U)||V(null!==(e=ve[0])&&void 0!==e?e:t)}),[a,ve,U]),(0,r.useEffect)((()=>(H&&Ce(!0),()=>{Z.current&&clearTimeout(Z.current),J.current&&clearTimeout(J.current)})),[]),(0,r.useEffect)((()=>{var e;let n=null!==(e=null==ce?void 0:ce.anchorSelect)&&void 0!==e?e:l;if(!n&&t&&(n=`[data-tooltip-id='${t}']`),n)try{const e=Array.from(document.querySelectorAll(n));ye(e)}catch(e){ye([])}}),[t,l,null==ce?void 0:ce.anchorSelect]),(0,r.useEffect)((()=>{Z.current&&(clearTimeout(Z.current),Ne(v))}),[v]);const $e=null!==(X=null==ce?void 0:ce.content)&&void 0!==X?X:j,Ge=oe&&Object.keys(ee.tooltipStyles).length>0;return(0,r.useImperativeHandle)(e,(()=>({open:e=>{if(null==e?void 0:e.anchorSelect)try{document.querySelector(e.anchorSelect)}catch(t){return void console.warn(`[react-tooltip] "${e.anchorSelect}" is not a valid CSS selector`)}ue(null!=e?e:null),(null==e?void 0:e.delay)?Ne(e.delay):Ce(!0)},close:e=>{(null==e?void 0:e.delay)?Pe(e.delay):Ce(!1)},activeAnchor:U,place:ee.place,isOpen:Boolean(se&&!E&&$e&&Ge)}))),se&&!E&&$e?r.createElement(h,{id:t,role:G,className:s("react-tooltip",Le.tooltip,Me.tooltip,Me[i],n,`react-tooltip__place-${ee.place}`,Le[Ge?"show":"closing"],Ge?"react-tooltip__show":"react-tooltip__closing","fixed"===f&&Le.fixed,S&&Le.clickable),onTransitionEnd:e=>{Q.current&&clearTimeout(Q.current),oe||"opacity"!==e.propertyName||(ae(!1),ue(null),null==M||M())},style:{...P,...ee.tooltipStyles,opacity:void 0!==q&&Ge?q:void 0},ref:Y},$e,r.createElement(h,{className:s("react-tooltip-arrow",Le.arrow,Me.arrow,o,x&&Le.noArrow),style:{...ee.tooltipArrowStyles,background:$?`linear-gradient(to right bottom, transparent 50%, ${$} 50%)`:void 0},ref:K})):null},Ie=({content:e})=>r.createElement("span",{dangerouslySetInnerHTML:{__html:e}}),Fe=r.forwardRef((({id:e,anchorId:t,anchorSelect:n,content:o,html:i,render:a,className:l,classNameArrow:c,variant:u="dark",place:d="top",offset:p=10,wrapper:f="div",children:m=null,events:h=["hover"],openOnClick:v=!1,positionStrategy:y="absolute",middlewares:g,delayShow:b=0,delayHide:w=0,float:_=!1,hidden:E=!1,noArrow:x=!1,clickable:S=!1,closeOnEsc:O=!1,closeOnScroll:C=!1,closeOnResize:k=!1,openEvents:T,closeEvents:A,globalCloseEvents:R,imperativeModeOnly:N=!1,style:P,position:D,isOpen:L,defaultIsOpen:M=!1,disableStyleInjection:j=!1,border:I,opacity:F,arrowColor:H,setIsOpen:B,afterShow:U,afterHide:W,role:V="tooltip"},z)=>{const[q,$]=(0,r.useState)(o),[G,X]=(0,r.useState)(i),[Y,K]=(0,r.useState)(d),[Z,J]=(0,r.useState)(u),[Q,ee]=(0,r.useState)(p),[te,ne]=(0,r.useState)(b),[oe,re]=(0,r.useState)(w),[ie,se]=(0,r.useState)(_),[ae,le]=(0,r.useState)(E),[ce,ue]=(0,r.useState)(f),[de,pe]=(0,r.useState)(h),[fe,me]=(0,r.useState)(y),[he,ve]=(0,r.useState)(null),[ye,ge]=(0,r.useState)(null),be=(0,r.useRef)(j),{anchorRefs:we,activeAnchor:_e}=De(e),Ee=e=>null==e?void 0:e.getAttributeNames().reduce(((t,n)=>{var o;return n.startsWith("data-tooltip-")&&(t[n.replace(/^data-tooltip-/,"")]=null!==(o=null==e?void 0:e.getAttribute(n))&&void 0!==o?o:null),t}),{}),xe=e=>{const t={place:e=>{var t;K(null!==(t=e)&&void 0!==t?t:d)},content:e=>{$(null!=e?e:o)},html:e=>{X(null!=e?e:i)},variant:e=>{var t;J(null!==(t=e)&&void 0!==t?t:u)},offset:e=>{ee(null===e?p:Number(e))},wrapper:e=>{var t;ue(null!==(t=e)&&void 0!==t?t:f)},events:e=>{const t=null==e?void 0:e.split(" ");pe(null!=t?t:h)},"position-strategy":e=>{var t;me(null!==(t=e)&&void 0!==t?t:y)},"delay-show":e=>{ne(null===e?b:Number(e))},"delay-hide":e=>{re(null===e?w:Number(e))},float:e=>{se(null===e?_:"true"===e)},hidden:e=>{le(null===e?E:"true"===e)},"class-name":e=>{ve(e)}};Object.values(t).forEach((e=>e(null))),Object.entries(e).forEach((([e,n])=>{var o;null===(o=t[e])||void 0===o||o.call(t,n)}))};(0,r.useEffect)((()=>{$(o)}),[o]),(0,r.useEffect)((()=>{X(i)}),[i]),(0,r.useEffect)((()=>{K(d)}),[d]),(0,r.useEffect)((()=>{J(u)}),[u]),(0,r.useEffect)((()=>{ee(p)}),[p]),(0,r.useEffect)((()=>{ne(b)}),[b]),(0,r.useEffect)((()=>{re(w)}),[w]),(0,r.useEffect)((()=>{se(_)}),[_]),(0,r.useEffect)((()=>{le(E)}),[E]),(0,r.useEffect)((()=>{me(y)}),[y]),(0,r.useEffect)((()=>{be.current!==j&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")}),[j]),(0,r.useEffect)((()=>{"undefined"!=typeof window&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:"core"===j,disableBase:j}}))}),[]),(0,r.useEffect)((()=>{var o;const r=new Set(we);let i=n;if(!i&&e&&(i=`[data-tooltip-id='${e}']`),i)try{document.querySelectorAll(i).forEach((e=>{r.add({current:e})}))}catch(o){console.warn(`[react-tooltip] "${i}" is not a valid CSS selector`)}const s=document.querySelector(`[id='${t}']`);if(s&&r.add({current:s}),!r.size)return()=>null;const a=null!==(o=null!=ye?ye:s)&&void 0!==o?o:_e.current,l=new MutationObserver((e=>{e.forEach((e=>{var t;if(!a||"attributes"!==e.type||!(null===(t=e.attributeName)||void 0===t?void 0:t.startsWith("data-tooltip-")))return;const n=Ee(a);xe(n)}))})),c={attributes:!0,childList:!1,subtree:!1};if(a){const e=Ee(a);xe(e),l.observe(a,c)}return()=>{l.disconnect()}}),[we,_e,ye,t,n]),(0,r.useEffect)((()=>{(null==P?void 0:P.border)&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),I&&!Se("border",`${I}`)&&console.warn(`[react-tooltip] "${I}" is not a valid \`border\`.`),(null==P?void 0:P.opacity)&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),F&&!Se("opacity",`${F}`)&&console.warn(`[react-tooltip] "${F}" is not a valid \`opacity\`.`)}),[]);let Oe=m;const Ce=(0,r.useRef)(null);if(a){const e=a({content:(null==ye?void 0:ye.getAttribute("data-tooltip-content"))||q||null,activeAnchor:ye});Oe=e?r.createElement("div",{ref:Ce,className:"react-tooltip-content-wrapper"},e):null}else q&&(Oe=q);G&&(Oe=r.createElement(Ie,{content:G}));const ke={forwardRef:z,id:e,anchorId:t,anchorSelect:n,className:s(l,he),classNameArrow:c,content:Oe,contentWrapperRef:Ce,place:Y,variant:Z,offset:Q,wrapper:ce,events:de,openOnClick:v,positionStrategy:fe,middlewares:g,delayShow:te,delayHide:oe,float:ie,hidden:ae,noArrow:x,clickable:S,closeOnEsc:O,closeOnScroll:C,closeOnResize:k,openEvents:T,closeEvents:A,globalCloseEvents:R,imperativeModeOnly:N,style:P,position:D,isOpen:L,defaultIsOpen:M,border:I,opacity:F,arrowColor:H,setIsOpen:B,afterShow:U,afterHide:W,activeAnchor:ye,setActiveAnchor:e=>ge(e),role:V};return r.createElement(je,{...ke})}));"undefined"!=typeof window&&window.addEventListener("react-tooltip-inject-styles",(e=>{e.detail.disableCore||Ee({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in}",type:"core"}),e.detail.disableBase||Ee({css:"\n.styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:8px;height:8px}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}",type:"base"})}));const He=window.wp.apiFetch;var Be=n.n(He);const Ue=({type:e="upcoming",status:t="no_status"})=>{const n={upcoming:{attending:{icon:"dashicons dashicons-yes-alt",text:(0,u._x)("Attending","Responded Status","gatherpress")},waiting_list:{icon:"dashicons dashicons-editor-help",text:(0,u._x)("Waiting List","Responded Status","gatherpress")},not_attending:{icon:"dashicons dashicons-dismiss",text:(0,u._x)("Not Attending","Responded Status","gatherpress")},no_status:{icon:"",text:""}},past:{attending:{icon:"dashicons dashicons-yes-alt",text:(0,u._x)("Went","Responded Status","gatherpress")},waiting_list:{icon:"dashicons dashicons-dismiss",text:(0,u._x)("Didn't Go","Responded Status","gatherpress")},not_attending:{icon:"dashicons dashicons-dismiss",text:(0,u._x)("Didn't Go","Responded Status","gatherpress")},no_status:{icon:"dashicons dashicons-dismiss",text:(0,u._x)("Didn't Go","Responded Status","gatherpress")}}};return(0,r.createElement)("div",{className:"gatherpress-status__response"},(0,r.createElement)("span",{className:n[e][t].icon}),(0,r.createElement)("strong",null,n[e][t].text))};function We(e){if("object"==typeof GatherPress)return e.split(".").reduce(((e,t)=>e&&e[t]),GatherPress)}const Ve=({postId:e,currentUser:t="",type:n,enableAnonymousRsvp:o,enableInitialDecline:i,maxGuestLimit:s})=>{const[a,l]=(0,h.useState)(t.status),[d,f]=(0,h.useState)(Number(t.anonymous)),[m,v]=(0,h.useState)(t.guests),[g,b]=(0,h.useState)("hidden"),[w,_]=(0,h.useState)("false"),[E,x]=(0,h.useState)(!1);if("past"===n)return"";"undefined"==typeof adminpage&&y().setAppElement(".gatherpress-enabled");const S=e=>{e.preventDefault(),x(!1)},O=async(t,n,o,r=0,i=!0)=>{t.preventDefault(),"attending"!==n&&(r=0),Be()({path:We("urls.eventRestApi")+"/rsvp",method:"POST",data:{post_id:e,status:n,guests:r,anonymous:o,_wpnonce:We("misc.nonce")}}).then((e=>{if(e.success){l(e.status),v(e.guests);const n={all:0,attending:0,not_attending:0,waiting_list:0};for(const[t,o]of Object.entries(e.responses))n[t]=o.count;((e,t="")=>{for(const[n,o]of Object.entries(e)){let e=n;t&&(e+="_"+String(t));const r=new CustomEvent(e,{detail:o});dispatchEvent(r)}})({setRsvpStatus:e.status,setRsvpResponse:e.responses,setRsvpCount:n,setRsvpSeeAllLink:n[e.status]>8,setOnlineEventLink:e.online_link},e.event_id),i&&S(t)}}))},C=e=>{switch(e){case"attending":return(0,u.__)("You're attending","gatherpress");case"waiting_list":return(0,u.__)("You're wait listed","gatherpress");case"not_attending":return(0,u.__)("You're not attending","gatherpress")}return(0,u.__)("RSVP to this event","gatherpress")};return(0,r.createElement)("div",{className:"gatherpress-rsvp"},(0,r.createElement)(p.ButtonGroup,{className:"gatherpress-buttons wp-block-buttons"},(0,r.createElement)("div",{className:"gatherpress-buttons__container wp-block-button"},(0,r.createElement)("a",{href:"#",className:"gatherpress-buttons__button wp-block-button__link","aria-expanded":w,tabIndex:"0",onKeyDown:e=>{13===e.keyCode&&(b("hidden"===g?"show":"hidden"),_("false"===w?"true":"false"))},onClick:e=>(e=>{e.preventDefault(),x(!0)})(e)},(e=>{switch(e){case"attending":case"waiting_list":case"not_attending":return(0,u.__)("Edit RSVP","gatherpress")}return(0,u.__)("RSVP","gatherpress")})(a))),(0,r.createElement)(y(),{isOpen:E,onRequestClose:S,style:{overlay:{zIndex:999999999},content:{top:"50%",left:"50%",right:"auto",bottom:"auto",marginRight:"-50%",transform:"translate(-50%, -50%)"}},contentLabel:(0,u.__)("Edit RSVP","gatherpress")},0===t.length&&(0,r.createElement)((()=>(0,r.createElement)("div",{className:"gatherpress-modal gatherpress-modal__rsvp"},(0,r.createElement)("div",{className:"gatherpress-modal__header"},(0,u.__)("Login Required","gatherpress")),(0,r.createElement)("div",{className:"gatherpress-modal__content"},(0,r.createElement)("div",{className:"gatherpress-modal__text"},c((0,u.sprintf)(/* translators: %s: 'Login' (hyperlinked) */ /* translators: %s: 'Login' (hyperlinked) */ -(0,u.__)("You must %s to RSVP to events.","gatherpress"),`\n\t\t\t\t\t\t\t\t\t${(0,u._x)("Login","Context: You must ~ to RSVP to events.","gatherpress")}\n\t\t\t\t\t\t\t\t`))),""!==We("urls.registrationUrl")&&(0,r.createElement)("div",{className:"gatherpress-modal__text"},c((0,u.sprintf)(/* translators: %s: 'Register' (hyperlinked) */ /* translators: %s: 'Register' (hyperlinked) */ -(0,u.__)("%s if you do not have an account.","gatherpress"),`\n\t\t\t\t\t\t\t\t\t\t${(0,u._x)("Register","Context: ~ if you do not have an account.","gatherpress")}\n\t\t\t\t\t\t\t\t\t`)))),(0,r.createElement)(p.ButtonGroup,{className:"gatherpress-buttons wp-block-buttons"},(0,r.createElement)("div",{className:"gatherpress-buttons__container wp-block-button"},(0,r.createElement)("a",{href:"#",onClick:S,className:"gatherpress-buttons__button wp-block-button__link"},(0,u.__)("Close","gatherpress")))))),null),0!==t.length&&(0,r.createElement)((({status:e})=>{let t="",n="";return"not_attending"===e||"no_status"===e?(t="attending",n=(0,u.__)("Attend","gatherpress")):(t="not_attending",n=(0,u._x)("Not Attending","action of not attending","gatherpress")),(0,r.createElement)("div",{className:"gatherpress-modal gatherpress-modal__rsvp"},(0,r.createElement)("div",{className:"gatherpress-modal__header"},C(a)?C(a):(0,r.createElement)(p.Spinner,null)),(0,r.createElement)("div",{className:"gatherpress-modal__content"},(0,r.createElement)("div",{className:"gatherpress-modal__text"},c((0,u.sprintf)(/* translators: %s: button label. */ /* translators: %s: button label. */ -(0,u.__)("To set or change your attending status, simply click the %s button below.","gatherpress"),""+n+""))),0{const t=Number(e.target.value);v(t),O(e,a,d,t,!1)},defaultValue:m})),o&&(0,r.createElement)("div",{className:"gatherpress-modal__anonymous"},(0,r.createElement)("input",{id:"gatherpress-anonymous",type:"checkbox",onChange:e=>{const t=Number(e.target.checked);f(t),O(e,a,t,0,!1)},checked:d}),(0,r.createElement)("label",{htmlFor:"gatherpress-anonymous",tabIndex:"0",className:"gatherpress-tooltip","data-tooltip-id":"gatherpress-anonymous-tooltip","data-tooltip-content":(0,u.__)("Only admins will see your identity.","gatherpress")},(0,u.__)("List me as anonymous.","gatherpress")),(0,r.createElement)(Fe,{id:"gatherpress-anonymous-tooltip"}))),(0,r.createElement)(p.ButtonGroup,{className:"gatherpress-buttons wp-block-buttons"},(0,r.createElement)("div",{className:"gatherpress-buttons__container wp-block-button is-style-outline"},(0,r.createElement)("a",{href:"#",onClick:e=>O(e,t,d,"not_attending"!==t?m:0,"not_attending"===t),className:"gatherpress-buttons__button wp-block-button__link"},n)),(0,r.createElement)("div",{className:"gatherpress-buttons__container wp-block-button"},(0,r.createElement)("a",{href:"#",onClick:S,className:"gatherpress-buttons__button wp-block-button__link"},(0,u.__)("Close","gatherpress")))),i&&"no_status"===a&&1!==d?(0,r.createElement)(p.ButtonGroup,{className:"gatherpress-buttons wp-block-buttons"},(0,r.createElement)("div",{className:"gatherpress-buttons__container wp-block-button"},(0,r.createElement)("a",{href:"#",onClick:e=>O(e,"not_attending",null),className:"gatherpress-buttons__text-link"},(0,u._x)("Not Attending","Responded Status","gatherpress")))):(0,r.createElement)(r.Fragment,null))}),{status:a}))),"no_status"!==a&&(0,r.createElement)("div",{className:"gatherpress-status"},(0,r.createElement)(Ue,{type:n,status:a}),0{const[i,s]=(0,h.useState)(o);((e,t="")=>{for(const[n,o]of Object.entries(e)){let e=n;t&&(e+="_"+String(t)),addEventListener(e,(e=>{o(e.detail)}),!1)}})({setRsvpResponse:s},e);let a="";return"object"==typeof i&&void 0!==i[t]&&(o=[...i[t].responses],n&&(o=o.splice(0,n)),a=o.map(((e,t)=>{const{name:n,photo:o}=e;return(0,r.createElement)("figure",{key:t,className:"gatherpress-rsvp-response__member-avatar"},(0,r.createElement)("img",{alt:n,title:n,src:o}))}))),(0,r.createElement)(r.Fragment,null,a)},qe=e=>{const{type:t,event:n,eventOptions:o}=e,i="default"===o.imageSize?"featured_image":"featured_image_"+o.imageSize,s=c(n[i]),a="gatherpress-events-list";let l="location";const u=n.venue?.is_online_event;return u&&(l="video-alt2"),(0,r.createElement)("div",{className:`${a}`},(0,r.createElement)("div",{className:`${a}__header`},(0,r.createElement)("div",{className:`${a}__info`},o.showFeaturedImage&&(0,r.createElement)("figure",{className:`${a}__image`},(0,r.createElement)("a",{href:n.permalink},s)),(0,r.createElement)("div",{className:`${a}__datetime`},(0,r.createElement)("strong",null,n.datetime_start)),(0,r.createElement)("div",{className:`${a}__title`},(0,r.createElement)("a",{href:n.permalink},c(n.title))),n.venue&&o.showVenue&&(0,r.createElement)("div",{className:`${a}__venue`},(0,r.createElement)("span",{className:`dashicons dashicons-${l}`}),!u&&(0,r.createElement)("a",{href:n.venue.permalink},c(n.venue.name)),u&&(0,r.createElement)("span",null,c(n.venue.name))),o.showDescription&&(0,r.createElement)("div",{className:`${a}__content`},(0,r.createElement)("div",{className:`${a}__excerpt`},c(n.excerpt.split(" ").splice(0,parseInt(o.descriptionLimit)).join(" ")+"[…]"))))),(0,r.createElement)("div",{className:`${a}__footer`},o.showRsvpResponse&&(0,r.createElement)("div",{className:"gatherpress-rsvp-response__items"},(0,r.createElement)(ze,{postId:n.ID,value:"attending",responses:n.responses,limit:"3"})),"upcoming"===t&&o.showRsvp&&(0,r.createElement)(Ve,{postId:n.ID,currentUser:n.current_user,type:t,enableAnonymousRsvp:n.gatherpress_enable_anonymous_rsvp,enableInitialDecline:n.gatherpress_enable_initial_decline}),"past"===t&&o.showRsvp&&""!==n.current_user&&(0,r.createElement)(Ue,{type:t,status:n.current_user?.status})))},$e=e=>{const{eventOptions:t,maxNumberOfEvents:n,datetimeFormat:o,type:i,topics:s,venues:a}=e,[l,c]=(0,h.useState)([]),[d,f]=(0,h.useState)(!1),m=l.map((e=>(0,r.createElement)(qe,{key:e.ID,eventOptions:t,type:i,event:e})));return(0,h.useEffect)((()=>{let e="",t="";"object"==typeof s&&(e=s.map((e=>e.slug))?.join(",")),"object"==typeof a&&(t=a.map((e=>e.slug))?.join(","));const r=We("urls.eventRestApi")+`/events-list?event_list_type=${i}&max_number=${n}&datetime_format=${o}&topics=${e}&venues=${t}`;We("misc.isUserLoggedIn")?Be()({path:r}).then((e=>{f(!0),c(e)})):fetch(r).then((e=>e.json())).then((e=>{f(!0),c(e)}))}),[c,n,o,i,s,a]),(0,r.createElement)("div",{className:`gatherpress-${i}-events-list`},!d&&(0,r.createElement)(p.Spinner,null),d&&0===l.length&&(()=>{const e="upcoming"===i?(0,u.__)("There are no upcoming events.","gatherpress"):(0,u.__)("There are no past events.","gatherpress");return(0,r.createElement)("div",{className:`gatherpress-${i}-events__no_events_message`},e)})(),d&&m)},Ge=e=>{const{isSelected:t}=e,n=t?"none":"block";return(0,r.createElement)("div",{style:{position:"relative"}},e.children,(0,r.createElement)("div",{style:{position:"absolute",top:"0",right:"0",bottom:"0",left:"0",display:n}}))},Xe=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"gatherpress/events-list","version":"1.0.1","title":"Events List","category":"gatherpress","icon":"list-view","example":{},"description":"Displays events that are either upcoming or have occurred in the past.","attributes":{"eventOptions":{"type":"object","default":{"descriptionLimit":55,"imageSize":"default","showRsvpResponse":true,"showFeaturedImage":true,"showDescription":true,"showRsvp":true,"showVenue":true}},"datetimeFormat":{"type":"string","default":"D, M j, Y, g:i a T"},"maxNumberOfEvents":{"type":"integer","default":5},"topics":{"type":"array","items":{"type":"object"}},"venues":{"type":"array","items":{"type":"object"}},"type":{"type":"string","default":"upcoming"}},"supports":{"html":false},"textdomain":"gatherpress","editorScript":"file:./index.js","style":"file:./style-index.css","viewScript":"file:./events-list.js","render":"file:./render.php"}');(0,o.registerBlockType)(Xe,{edit:e=>{var t,n,o;const{attributes:s,setAttributes:l}=e,h=(0,d.useBlockProps)(),{topics:v,venues:y}=s,{topicsList:g}=(0,m.useSelect)((e=>{const{getEntityRecords:t}=e(f.store);return{topicsList:t("taxonomy","gatherpress_topic",{per_page:-1,context:"view"})}}),[]),{venueList:b}=(0,m.useSelect)((e=>{const{getEntityRecords:t}=e(f.store);return{venueList:t("taxonomy","_gatherpress_venue",{per_page:-1,context:"view"})}}),[]),w=null!==(t=g?.reduce(((e,t)=>({...e,[t.name]:t})),{}))&&void 0!==t?t:{},_=null!==(n=b?.reduce(((e,t)=>({...e,[t.name]:t})),{}))&&void 0!==n?n:{};return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(d.InspectorControls,null,(0,r.createElement)(p.PanelBody,null,(0,r.createElement)("p",null,(0,u.__)("Event List type","gatherpress")),(0,r.createElement)(p.ButtonGroup,{className:"block-editor-block-styles__variants"},(0,r.createElement)(p.Button,{className:a()("block-editor-block-styles__item",{"is-active":"upcoming"===s.type}),variant:"secondary",label:(0,u.__)("Upcoming","gatherpress"),onClick:()=>{l({type:"upcoming"})}},(0,r.createElement)(p.__experimentalText,{as:"span",limit:12,ellipsizeMode:"tail",className:"block-editor-block-styles__item-text",truncate:!0},(0,u.__)("Upcoming","gatherpress"))),(0,r.createElement)(p.Button,{className:a()("block-editor-block-styles__item",{"is-active":"past"===s.type}),variant:"secondary",label:(0,u.__)("Past","gatherpress"),onClick:()=>{l({type:"past"})}},(0,r.createElement)(p.__experimentalText,{as:"span",limit:12,ellipsizeMode:"tail",className:"block-editor-block-styles__item-text",truncate:!0},(0,u.__)("Past","gatherpress"))))),(0,r.createElement)(p.PanelBody,null,(0,r.createElement)(p.TextControl,{label:(0,u.__)("Date & time format","gatherpress"),value:s.datetimeFormat,help:c((0,u.__)('For more information read the Documentation on date and time formatting.',"gatherpress")),onChange:e=>l({datetimeFormat:e})}),(0,r.createElement)(p.RangeControl,{label:(0,u.__)("Maximum number of events to display","gatherpress"),min:1,max:10,value:parseInt(s.maxNumberOfEvents,10),onChange:e=>l({maxNumberOfEvents:e})}),(0,r.createElement)(p.FormTokenField,{key:"query-controls-topics-select",label:(0,u.__)("Topics","gatherpress"),value:v&&v.map((e=>({id:e.id,slug:e.slug,value:e.name||e.value}))),suggestions:Object.keys(w),onChange:e=>{if(e.some((e=>"string"==typeof e&&!w[e])))return;const t=e.map((e=>"string"==typeof e?w[e]:e));if((0,i.includes)(t,null))return!1;l({topics:t})},maxSuggestions:20}),(0,r.createElement)(p.FormTokenField,{key:"query-controls-venues-select",label:(0,u.__)("Venues","gatherpress"),value:y&&y.map((e=>({id:e.id,slug:e.slug,value:e.name||e.value}))),suggestions:Object.keys(_),onChange:e=>{if(e.some((e=>"string"==typeof e&&!_[e])))return;const t=e.map((e=>"string"==typeof e?_[e]:e));if((0,i.includes)(t,null))return!1;l({venues:t})},maxSuggestions:20})),(0,r.createElement)(p.PanelBody,null,(0,r.createElement)(p.ToggleControl,{label:(0,u.__)("Show/Hide All RSVP Responses","gatherpress"),help:s.eventOptions.showRsvpResponse?(0,u.__)("Show All RSVP Responses","gatherpress"):(0,u.__)("Hide All RSVP Responses","gatherpress"),checked:null===(o=s.eventOptions.showRsvpResponse)||void 0===o||o,onChange:e=>{l({eventOptions:{...s.eventOptions,showRsvpResponse:e}})}}),(0,r.createElement)(p.ToggleControl,{label:(0,u.__)("Show/Hide My RSVP Response"),help:s.eventOptions.showRsvp?(0,u.__)("Show My RSVP Response"):(0,u.__)("Hide My RSVP Response"),checked:s.eventOptions.showRsvp,onChange:e=>{l({eventOptions:{...s.eventOptions,showRsvp:e}})}}),(0,r.createElement)(p.SelectControl,{label:(0,u.__)("Image Size Options","gatherpress"),value:s.eventOptions.imageSize,options:[{label:"Default",value:"default"},{label:"Thumbnail",value:"thumbnail"},{label:"Large",value:"large"}],onChange:e=>l({eventOptions:{...s.eventOptions,imageSize:e}})}),(0,r.createElement)(p.ToggleControl,{label:(0,u.__)("Show/Hide Featured Image","gatherpress"),help:s.eventOptions.showFeaturedImage?(0,u.__)("Show Featured Image","gatherpress"):(0,u.__)("Hide Featured Image","gatherpress"),checked:s.eventOptions.showFeaturedImage,onChange:e=>{l({eventOptions:{...s.eventOptions,showFeaturedImage:e}})}}),(0,r.createElement)(p.ToggleControl,{label:(0,u.__)("Show/Hide Description","gatherpress"),help:s.eventOptions.showDescription?(0,u.__)("Show Description","gatherpress"):(0,u.__)("Hide Description","gatherpress"),checked:s.eventOptions.showDescription,onChange:e=>{l({eventOptions:{...s.eventOptions,showDescription:e}})}}),(0,r.createElement)(p.TextControl,{label:(0,u.__)("Description Limit"),help:(0,u.__)("Limit the amount of words that display underneath the title of the event"),value:parseInt(s.eventOptions.descriptionLimit),onChange:e=>l({eventOptions:{...s.eventOptions,descriptionLimit:e}}),min:0,max:55,type:"number"}),(0,r.createElement)(p.ToggleControl,{label:(0,u.__)("Show/Event Venue"),help:s.eventOptions.showVenue?(0,u.__)("Show Event Venue"):(0,u.__)("Hide Event Venue"),checked:s.eventOptions.showVenue,onChange:e=>{l({eventOptions:{...s.eventOptions,showVenue:e}})}}))),(0,r.createElement)("div",{...h},(0,r.createElement)(Ge,null,(0,r.createElement)($e,{eventOptions:s.eventOptions,maxNumberOfEvents:s.maxNumberOfEvents,datetimeFormat:s.datetimeFormat,type:s.type,topics:s.topics,venues:s.venues}))))},save:()=>null})},5413:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(n=t.ElementType||(t.ElementType={})),t.isTag=function(e){return e.type===n.Tag||e.type===n.Script||e.type===n.Style},t.Root=n.Root,t.Text=n.Text,t.Directive=n.Directive,t.Comment=n.Comment,t.Script=n.Script,t.Style=n.Style,t.Tag=n.Tag,t.CDATA=n.CDATA,t.Doctype=n.Doctype},1141:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,r)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var i=n(5413),s=n(6957);r(n(6957),t);var a={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},l=function(){function e(e,t,n){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=a),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:a,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?i.ElementType.Tag:void 0,o=new s.Element(e,t,void 0,n);this.addNode(o),this.tagStack.push(o)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===i.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var n=new s.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===i.ElementType.Comment)this.lastNode.data+=e;else{var t=new s.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new s.Text(""),t=new s.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new s.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=l,t.default=l},6957:function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,o=arguments.length;n0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(a);t.NodeWithChildren=p;var f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=s.ElementType.CDATA,t}return r(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(p);t.CDATA=f;var m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=s.ElementType.Root,t}return r(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(p);t.Document=m;var h=function(e){function t(t,n,o,r){void 0===o&&(o=[]),void 0===r&&(r="script"===t?s.ElementType.Script:"style"===t?s.ElementType.Style:s.ElementType.Tag);var i=e.call(this,o)||this;return i.name=t,i.attribs=n,i.type=r,i}return r(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var n,o;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(o=e["x-attribsPrefix"])||void 0===o?void 0:o[t]}}))},enumerable:!1,configurable:!0}),t}(p);function v(e){return(0,s.isTag)(e)}function y(e){return e.type===s.ElementType.CDATA}function g(e){return e.type===s.ElementType.Text}function b(e){return e.type===s.ElementType.Comment}function w(e){return e.type===s.ElementType.Directive}function _(e){return e.type===s.ElementType.Root}function E(e,t){var n;if(void 0===t&&(t=!1),g(e))n=new c(e.data);else if(b(e))n=new u(e.data);else if(v(e)){var o=t?x(e.children):[],r=new h(e.name,i({},e.attribs),o);o.forEach((function(e){return e.parent=r})),null!=e.namespace&&(r.namespace=e.namespace),e["x-attribsNamespace"]&&(r["x-attribsNamespace"]=i({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(r["x-attribsPrefix"]=i({},e["x-attribsPrefix"])),n=r}else if(y(e)){o=t?x(e.children):[];var s=new f(o);o.forEach((function(e){return e.parent=s})),n=s}else if(_(e)){o=t?x(e.children):[];var a=new m(o);o.forEach((function(e){return e.parent=a})),e["x-mode"]&&(a["x-mode"]=e["x-mode"]),n=a}else{if(!w(e))throw new Error("Not implemented yet: ".concat(e.type));var l=new d(e.name,e.data);null!=e["x-name"]&&(l["x-name"]=e["x-name"],l["x-publicId"]=e["x-publicId"],l["x-systemId"]=e["x-systemId"]),n=l}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function x(e){for(var t=e.map((function(e){return E(e,!0)})),n=1;n{var o;!function(){"use strict";var r=!("undefined"==typeof window||!window.document||!window.document.createElement),i={canUseDOM:r,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:r&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:r&&!!window.screen};void 0===(o=function(){return i}.call(t,n,t,e))||(e.exports=o)}()},5270:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES=void 0,t.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES.reduce((function(e,t){return e[t.toLowerCase()]=t,e}),{})},5496:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="html",o="head",r="body",i=/<([a-zA-Z]+[0-9]?)/,s=//i,a=//i,l=function(e,t){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},c=function(e,t){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},u="object"==typeof window&&window.DOMParser;if("function"==typeof u){var d=new u;l=c=function(e,t){return t&&(e="<".concat(t,">").concat(e,"")),d.parseFromString(e,"text/html")}}if("object"==typeof document&&document.implementation){var p=document.implementation.createHTMLDocument();l=function(e,t){if(t){var n=p.documentElement.querySelector(t);return n&&(n.innerHTML=e),p}return p.documentElement.innerHTML=e,p}}var f,m="object"==typeof document&&document.createElement("template");m&&m.content&&(f=function(e){return m.innerHTML=e,m.content.childNodes}),t.default=function(e){var t,u,d=e.match(i),p=d&&d[1]?d[1].toLowerCase():"";switch(p){case n:var m=c(e);return s.test(e)||null===(t=null==(v=m.querySelector(o))?void 0:v.parentNode)||void 0===t||t.removeChild(v),a.test(e)||null===(u=null==(v=m.querySelector(r))?void 0:v.parentNode)||void 0===u||u.removeChild(v),m.querySelectorAll(n);case o:case r:var h=l(e).querySelectorAll(p);return a.test(e)&&s.test(e)?h[0].parentNode.childNodes:h;default:return f?f(e):(v=l(e,r).querySelector(r)).childNodes;var v}}},2471:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(5496)),i=n(7731),s=/<(![a-zA-Z\s]+)>/;t.default=function(e){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];var t=e.match(s),n=t?t[1]:void 0;return(0,i.formatDOM)((0,r.default)(e),null,n)}},7731:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatDOM=t.formatAttributes=void 0;var o=n(1141),r=n(5270);function i(e){for(var t={},n=0,o=e.length;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(4210),r=n(4958),i=["checked","value"],s=["input","select","textarea"],a={reset:!0,submit:!0};function l(e){return o.possibleStandardNames[e]}t.default=function(e,t){void 0===e&&(e={});var n={},c=Boolean(e.type&&a[e.type]);for(var u in e){var d=e[u];if((0,o.isCustomAttribute)(u))n[u]=d;else{var p=u.toLowerCase(),f=l(p);if(f){var m=(0,o.getPropertyInfo)(f);switch(i.includes(f)&&s.includes(t)&&!c&&(f=l("default"+p)),n[f]=d,m&&m.type){case o.BOOLEAN:n[f]=!0;break;case o.OVERLOADED_BOOLEAN:""===d&&(n[f]=!0)}}else r.PRESERVE_CUSTOM_ATTRIBUTES&&(n[u]=d)}}return(0,r.setStyleProp)(e.style,n),n}},308:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=n(1609),i=o(n(840)),s=n(4958),a={cloneElement:r.cloneElement,createElement:r.createElement,isValidElement:r.isValidElement};function l(e){return s.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&(0,s.isCustomComponent)(e.name,e.attribs)}t.default=function e(t,n){void 0===n&&(n={});for(var o=[],r="function"==typeof n.replace,c=n.transform||s.returnFirstArg,u=n.library||a,d=u.cloneElement,p=u.createElement,f=u.isValidElement,m=t.length,h=0;h1&&(y=d(y,{key:y.key||h})),o.push(c(y,v,h));continue}}if("text"!==v.type){var g=v,b={};l(g)?((0,s.setStyleProp)(g.attribs.style,g.attribs),b=g.attribs):g.attribs&&(b=(0,i.default)(g.attribs,g.name));var w=void 0;switch(v.type){case"script":case"style":v.children[0]&&(b.dangerouslySetInnerHTML={__html:v.children[0].data});break;case"tag":"textarea"===v.name&&v.children[0]?b.defaultValue=v.children[0].data:v.children&&v.children.length&&(w=e(v.children,n));break;default:continue}m>1&&(b.key=h),o.push(c(p(v.name,b,w),v,h))}else{var _=!v.data.trim().length;if(_&&v.parent&&!(0,s.canTextBeChildOfNode)(v.parent))continue;if(n.trim&&_)continue;o.push(c(v.data,v,h))}}return 1===o.length?o[0]:o}},442:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.htmlToDOM=t.domToReact=t.attributesToProps=t.Text=t.ProcessingInstruction=t.Element=t.Comment=void 0;var r=o(n(2471));t.htmlToDOM=r.default;var i=o(n(840));t.attributesToProps=i.default;var s=o(n(308));t.domToReact=s.default;var a=n(1141);Object.defineProperty(t,"Comment",{enumerable:!0,get:function(){return a.Comment}}),Object.defineProperty(t,"Element",{enumerable:!0,get:function(){return a.Element}}),Object.defineProperty(t,"ProcessingInstruction",{enumerable:!0,get:function(){return a.ProcessingInstruction}}),Object.defineProperty(t,"Text",{enumerable:!0,get:function(){return a.Text}});var l={lowerCaseAttributeNames:!1};t.default=function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");return e?(0,s.default)((0,r.default)(e,(null==t?void 0:t.htmlparser2)||l),t):[]}},4958:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.returnFirstArg=t.canTextBeChildOfNode=t.ELEMENTS_WITH_NO_TEXT_CHILDREN=t.PRESERVE_CUSTOM_ATTRIBUTES=t.setStyleProp=t.isCustomComponent=void 0;var r=n(1609),i=o(n(5229)),s=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);t.isCustomComponent=function(e,t){return e.includes("-")?!s.has(e):Boolean(t&&"string"==typeof t.is)};var a={reactCompat:!0};t.setStyleProp=function(e,t){if("string"==typeof e)if(e.trim())try{t.style=(0,i.default)(e,a)}catch(e){t.style={}}else t.style={}},t.PRESERVE_CUSTOM_ATTRIBUTES=Number(r.version.split(".")[0])>=16,t.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]),t.canTextBeChildOfNode=function(e){return!t.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(e.name)},t.returnFirstArg=function(e){return e}},9788:e=>{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,o=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,l=/^\s+|\s+$/g,c="";function u(e){return e?e.replace(l,c):c}e.exports=function(e,l){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];l=l||{};var d=1,p=1;function f(e){var t=e.match(n);t&&(d+=t.length);var o=e.lastIndexOf("\n");p=~o?e.length-o:p+e.length}function m(){var e={line:d,column:p};return function(t){return t.position=new h(e),b(),t}}function h(e){this.start=e,this.end={line:d,column:p},this.source=l.source}h.prototype.content=e;var v=[];function y(t){var n=new Error(l.source+":"+d+":"+p+": "+t);if(n.reason=t,n.filename=l.source,n.line=d,n.column=p,n.source=e,!l.silent)throw n;v.push(n)}function g(t){var n=t.exec(e);if(n){var o=n[0];return f(o),e=e.slice(o.length),n}}function b(){g(o)}function w(e){var t;for(e=e||[];t=_();)!1!==t&&e.push(t);return e}function _(){var t=m();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;c!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,c===e.charAt(n-1))return y("End of comment missing");var o=e.slice(2,n-2);return p+=2,f(o),e=e.slice(n),p+=2,t({type:"comment",comment:o})}}function E(){var e=m(),n=g(r);if(n){if(_(),!g(i))return y("property missing ':'");var o=g(s),l=e({type:"declaration",property:u(n[0].replace(t,c)),value:o?u(o[0].replace(t,c)):c});return g(a),l}}return b(),function(){var e,t=[];for(w(t);e=E();)!1!==e&&(t.push(e),w(t));return t}()}},2694:(e,t,n)=>{"use strict";var o=n(6925);function r(){}function i(){}i.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,i,s){if(s!==o){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return n.PropTypes=n,n}},5556:(e,t,n)=>{e.exports=n(2694)()},6925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},1345:(e,t,n)=>{"use strict";function o(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function r(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function i(e,t){try{var n=this.props,o=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,o)}finally{this.props=n,this.state=o}}function s(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,s=null,a=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?s="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(s="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?a="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(a="UNSAFE_componentWillUpdate"),null!==n||null!==s||null!==a){var l=e.displayName||e.name,c="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+l+" uses "+c+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==s?"\n "+s:"")+(null!==a?"\n "+a:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=o,t.componentWillReceiveProps=r),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=i;var u=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var o=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;u.call(this,e,t,o)}}return e}n.r(t),n.d(t,{polyfill:()=>s}),o.__suppressDeprecationWarning=!0,r.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0},1720:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bodyOpenClassName=t.portalClassName=void 0;var o=Object.assign||function(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t0&&0==(g-=1)&&u.show(t),n.props.shouldFocusAfterRender&&(n.props.shouldReturnFocusAfterClose?(l.returnFocus(n.props.preventScroll),l.teardownScopedFocus()):l.popWithoutFocus()),n.props.onAfterClose&&n.props.onAfterClose(),m.default.deregister(n)},n.open=function(){n.beforeOpen(),n.state.afterOpen&&n.state.beforeClose?(clearTimeout(n.closeTimer),n.setState({beforeClose:!1})):(n.props.shouldFocusAfterRender&&(l.setupScopedFocus(n.node),l.markForFocusLater()),n.setState({isOpen:!0},(function(){n.openAnimationFrame=requestAnimationFrame((function(){n.setState({afterOpen:!0}),n.props.isOpen&&n.props.onAfterOpen&&n.props.onAfterOpen({overlayEl:n.overlay,contentEl:n.content})}))})))},n.close=function(){n.props.closeTimeoutMS>0?n.closeWithTimeout():n.closeWithoutTimeout()},n.focusContent=function(){return n.content&&!n.contentHasFocus()&&n.content.focus({preventScroll:!0})},n.closeWithTimeout=function(){var e=Date.now()+n.props.closeTimeoutMS;n.setState({beforeClose:!0,closesAt:e},(function(){n.closeTimer=setTimeout(n.closeWithoutTimeout,n.state.closesAt-Date.now())}))},n.closeWithoutTimeout=function(){n.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},n.afterClose)},n.handleKeyDown=function(e){(function(e){return"Tab"===e.code||9===e.keyCode})(e)&&(0,c.default)(n.content,e),n.props.shouldCloseOnEsc&&function(e){return"Escape"===e.code||27===e.keyCode}(e)&&(e.stopPropagation(),n.requestClose(e))},n.handleOverlayOnClick=function(e){null===n.shouldClose&&(n.shouldClose=!0),n.shouldClose&&n.props.shouldCloseOnOverlayClick&&(n.ownerHandlesClose()?n.requestClose(e):n.focusContent()),n.shouldClose=null},n.handleContentOnMouseUp=function(){n.shouldClose=!1},n.handleOverlayOnMouseDown=function(e){n.props.shouldCloseOnOverlayClick||e.target!=n.overlay||e.preventDefault()},n.handleContentOnClick=function(){n.shouldClose=!1},n.handleContentOnMouseDown=function(){n.shouldClose=!1},n.requestClose=function(e){return n.ownerHandlesClose()&&n.props.onRequestClose(e)},n.ownerHandlesClose=function(){return n.props.onRequestClose},n.shouldBeClosed=function(){return!n.state.isOpen&&!n.state.beforeClose},n.contentHasFocus=function(){return document.activeElement===n.content||n.content.contains(document.activeElement)},n.buildClassName=function(e,t){var o="object"===(void 0===t?"undefined":r(t))?t:{base:y[e],afterOpen:y[e]+"--after-open",beforeClose:y[e]+"--before-close"},i=o.base;return n.state.afterOpen&&(i=i+" "+o.afterOpen),n.state.beforeClose&&(i=i+" "+o.beforeClose),"string"==typeof t&&t?i+" "+t:i},n.attributesFromObject=function(e,t){return Object.keys(t).reduce((function(n,o){return n[e+"-"+o]=t[o],n}),{})},n.state={afterOpen:!1,beforeClose:!1},n.shouldClose=null,n.moveFromContentToOverlay=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(e,t){this.props.isOpen&&!e.isOpen?this.open():!this.props.isOpen&&e.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!t.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var e=this.props,t=e.appElement,n=e.ariaHideApp,o=e.htmlOpenClassName,r=e.bodyOpenClassName,i=e.parentSelector,s=i&&i().ownerDocument||document;r&&d.add(s.body,r),o&&d.add(s.getElementsByTagName("html")[0],o),n&&(g+=1,u.hide(t)),m.default.register(this)}},{key:"render",value:function(){var e=this.props,t=e.id,n=e.className,r=e.overlayClassName,i=e.defaultStyles,s=e.children,a=n?{}:i.content,l=r?{}:i.overlay;if(this.shouldBeClosed())return null;var c={ref:this.setOverlayRef,className:this.buildClassName("overlay",r),style:o({},l,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},u=o({id:t,ref:this.setContentRef,style:o({},a,this.props.style.content),className:this.buildClassName("content",n),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",o({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),d=this.props.contentElement(u,s);return this.props.overlayElement(c,d)}}]),t}(s.Component);b.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},b.propTypes={isOpen:a.default.bool.isRequired,defaultStyles:a.default.shape({content:a.default.object,overlay:a.default.object}),style:a.default.shape({content:a.default.object,overlay:a.default.object}),className:a.default.oneOfType([a.default.string,a.default.object]),overlayClassName:a.default.oneOfType([a.default.string,a.default.object]),parentSelector:a.default.func,bodyOpenClassName:a.default.string,htmlOpenClassName:a.default.string,ariaHideApp:a.default.bool,appElement:a.default.oneOfType([a.default.instanceOf(f.default),a.default.instanceOf(p.SafeHTMLCollection),a.default.instanceOf(p.SafeNodeList),a.default.arrayOf(a.default.instanceOf(f.default))]),onAfterOpen:a.default.func,onAfterClose:a.default.func,onRequestClose:a.default.func,closeTimeoutMS:a.default.number,shouldFocusAfterRender:a.default.bool,shouldCloseOnOverlayClick:a.default.bool,shouldReturnFocusAfterClose:a.default.bool,preventScroll:a.default.bool,role:a.default.string,contentLabel:a.default.string,aria:a.default.object,data:a.default.object,children:a.default.node,shouldCloseOnEsc:a.default.bool,overlayRef:a.default.func,contentRef:a.default.func,id:a.default.string,overlayElement:a.default.func,contentElement:a.default.func,testId:a.default.string},t.default=b,e.exports=t.default},6462:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){s&&(s.removeAttribute?s.removeAttribute("aria-hidden"):null!=s.length?s.forEach((function(e){return e.removeAttribute("aria-hidden")})):document.querySelectorAll(s).forEach((function(e){return e.removeAttribute("aria-hidden")}))),s=null},t.log=function(){},t.assertNodeList=a,t.setElement=function(e){var t=e;if("string"==typeof t&&i.canUseDOM){var n=document.querySelectorAll(t);a(n,t),t=n}return s=t||s},t.validateElement=l,t.hide=function(e){var t=!0,n=!1,o=void 0;try{for(var r,i=l(e)[Symbol.iterator]();!(t=(r=i.next()).done);t=!0)r.value.setAttribute("aria-hidden","true")}catch(e){n=!0,o=e}finally{try{!t&&i.return&&i.return()}finally{if(n)throw o}}},t.show=function(e){var t=!0,n=!1,o=void 0;try{for(var r,i=l(e)[Symbol.iterator]();!(t=(r=i.next()).done);t=!0)r.value.removeAttribute("aria-hidden")}catch(e){n=!0,o=e}finally{try{!t&&i.return&&i.return()}finally{if(n)throw o}}},t.documentNotReadyOrSSRTesting=function(){s=null};var o,r=(o=n(9771))&&o.__esModule?o:{default:o},i=n(834),s=null;function a(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function l(e){var t=e||s;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,r.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}},7727:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){for(var e=[i,s],t=0;t0?(document.body.firstChild!==i&&document.body.insertBefore(i,document.body.firstChild),document.body.lastChild!==s&&document.body.appendChild(s)):(i.parentElement&&i.parentElement.removeChild(i),s.parentElement&&s.parentElement.removeChild(s))}))},4838:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){var e=document.getElementsByTagName("html")[0];for(var t in n)r(e,n[t]);var i=document.body;for(var s in o)r(i,o[s]);n={},o={}},t.log=function(){};var n={},o={};function r(e,t){e.classList.remove(t)}t.add=function(e,t){return r=e.classList,i="html"==e.nodeName.toLowerCase()?n:o,void t.split(" ").forEach((function(e){!function(e,t){e[t]||(e[t]=0),e[t]+=1}(i,e),r.add(e)}));var r,i},t.remove=function(e,t){return r=e.classList,i="html"==e.nodeName.toLowerCase()?n:o,void t.split(" ").forEach((function(e){!function(e,t){e[t]&&(e[t]-=1)}(i,e),0===i[e]&&r.remove(e)}));var r,i}},7791:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){i=[]},t.log=function(){},t.handleBlur=l,t.handleFocus=c,t.markForFocusLater=function(){i.push(document.activeElement)},t.returnFocus=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=null;try{return void(0!==i.length&&(t=i.pop()).focus({preventScroll:e}))}catch(e){console.warn(["You tried to return focus to",t,"but it is not in the DOM anymore"].join(" "))}},t.popWithoutFocus=function(){i.length>0&&i.pop()},t.setupScopedFocus=function(e){s=e,window.addEventListener?(window.addEventListener("blur",l,!1),document.addEventListener("focus",c,!0)):(window.attachEvent("onBlur",l),document.attachEvent("onFocus",c))},t.teardownScopedFocus=function(){s=null,window.addEventListener?(window.removeEventListener("blur",l),document.removeEventListener("focus",c)):(window.detachEvent("onBlur",l),document.detachEvent("onFocus",c))};var o,r=(o=n(2411))&&o.__esModule?o:{default:o},i=[],s=null,a=!1;function l(){a=!0}function c(){if(a){if(a=!1,!s)return;setTimeout((function(){s.contains(document.activeElement)||((0,r.default)(s)[0]||s).focus()}),0)}}},9628:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.log=function(){console.log("portalOpenInstances ----------"),console.log(o.openInstances.length),o.openInstances.forEach((function(e){return console.log(e)})),console.log("end portalOpenInstances ----------")},t.resetState=function(){o=new n};var n=function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.register=function(e){-1===t.openInstances.indexOf(e)&&(t.openInstances.push(e),t.emit("register"))},this.deregister=function(e){var n=t.openInstances.indexOf(e);-1!==n&&(t.openInstances.splice(n,1),t.emit("deregister"))},this.subscribe=function(e){t.subscribers.push(e)},this.emit=function(e){t.subscribers.forEach((function(n){return n(e,t.openInstances.slice())}))},this.openInstances=[],this.subscribers=[]},o=new n;t.default=o},834:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canUseDOM=t.SafeNodeList=t.SafeHTMLCollection=void 0;var o,r=((o=n(411))&&o.__esModule?o:{default:o}).default,i=r.canUseDOM?window.HTMLElement:{};t.SafeHTMLCollection=r.canUseDOM?window.HTMLCollection:{},t.SafeNodeList=r.canUseDOM?window.NodeList:{},t.canUseDOM=r.canUseDOM,t.default=i},7067:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,r.default)(e);if(n.length){var o=void 0,s=t.shiftKey,a=n[0],l=n[n.length-1],c=i();if(e===c){if(!s)return;o=l}if(l!==c||s||(o=a),a===c&&s&&(o=l),o)return t.preventDefault(),void o.focus();var u=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null!=u&&"Chrome"!=u[1]&&null==/\biPod\b|\biPad\b/g.exec(navigator.userAgent)){var d=n.indexOf(c);if(d>-1&&(d+=s?-1:1),void 0===(o=n[d]))return t.preventDefault(),void(o=s?l:a).focus();t.preventDefault(),o.focus()}}else t.preventDefault()};var o,r=(o=n(2411))&&o.__esModule?o:{default:o};function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return e.activeElement.shadowRoot?i(e.activeElement.shadowRoot):e.activeElement}e.exports=t.default},2411:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){return[].slice.call(t.querySelectorAll("*"),0).reduce((function(t,n){return t.concat(n.shadowRoot?e(n.shadowRoot):[n])}),[]).filter(s)};var n="none",o="contents",r=/input|select|textarea|button|object|iframe/;function i(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;try{var r=window.getComputedStyle(e),i=r.getPropertyValue("display");return t?i!==o&&function(e,t){return"visible"!==t.getPropertyValue("overflow")||e.scrollWidth<=0&&e.scrollHeight<=0}(e,r):i===n}catch(e){return console.warn("Failed to inspect element style"),!1}}function s(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var n=isNaN(t);return(n||t>=0)&&function(e,t){var n=e.nodeName.toLowerCase();return(r.test(n)&&!e.disabled||"a"===n&&e.href||t)&&function(e){for(var t=e,n=e.getRootNode&&e.getRootNode();t&&t!==document.body;){if(n&&t===n&&(t=n.host.parentNode),i(t))return!1;t=t.parentNode}return!0}(e)}(e,!n)}e.exports=t.default},312:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r=(o=n(1720))&&o.__esModule?o:{default:o};t.default=r.default,e.exports=t.default},4210:(e,t,n)=>{"use strict";function o(e,t,n,o,r,i,s){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=o,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}const r={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach((e=>{r[e]=new o(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((([e,t])=>{r[e]=new o(e,1,!1,t,null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((e=>{r[e]=new o(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((e=>{r[e]=new o(e,2,!1,e,null,!1,!1)})),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach((e=>{r[e]=new o(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((e=>{r[e]=new o(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((e=>{r[e]=new o(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((e=>{r[e]=new o(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((e=>{r[e]=new o(e,5,!1,e.toLowerCase(),null,!1,!1)}));const i=/[\-\:]([a-z])/g,s=e=>e[1].toUpperCase();["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach((e=>{const t=e.replace(i,s);r[t]=new o(t,1,!1,e,null,!1,!1)})),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach((e=>{const t=e.replace(i,s);r[t]=new o(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((e=>{const t=e.replace(i,s);r[t]=new o(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((e=>{r[e]=new o(e,1,!1,e.toLowerCase(),null,!1,!1)})),r.xlinkHref=new o("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((e=>{r[e]=new o(e,1,!1,e.toLowerCase(),null,!0,!0)}));const{CAMELCASE:a,SAME:l,possibleStandardNames:c}=n(6811),u=RegExp.prototype.test.bind(new RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")),d=Object.keys(c).reduce(((e,t)=>{const n=c[t];return n===l?e[t]=t:n===a?e[t.toLowerCase()]=t:e[t]=n,e}),{});t.BOOLEAN=3,t.BOOLEANISH_STRING=2,t.NUMERIC=5,t.OVERLOADED_BOOLEAN=4,t.POSITIVE_NUMERIC=6,t.RESERVED=0,t.STRING=1,t.getPropertyInfo=function(e){return r.hasOwnProperty(e)?r[e]:null},t.isCustomAttribute=u,t.possibleStandardNames=d},6811:(e,t)=>{t.SAME=0,t.CAMELCASE=1,t.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}},5229:function(e,t,n){"use strict";var o=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n(1133)),r=n(8917);function i(e,t){var n={};return e&&"string"==typeof e?((0,o.default)(e,(function(e,o){e&&o&&(n[(0,r.camelCase)(e,t)]=o)})),n):n}i.default=i,e.exports=i},8917:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=void 0;var n=/^--[a-zA-Z0-9-]+$/,o=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,a=function(e,t){return t.toUpperCase()},l=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||r.test(e)||n.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(s,l):e.replace(i,l)).replace(o,a))}},1133:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(9788));t.default=function(e,t){var n=null;if(!e||"string"!=typeof e)return n;var o=(0,r.default)(e),i="function"==typeof t;return o.forEach((function(e){if("declaration"===e.type){var o=e.property,r=e.value;i?t(o,r,e):r&&((n=n||{})[o]=r)}})),n}},9771:e=>{"use strict";e.exports=function(){}},1609:e=>{"use strict";e.exports=window.React},5795:e=>{"use strict";e.exports=window.ReactDOM},6942:(e,t)=>{var n;!function(){"use strict";var o={}.hasOwnProperty;function r(){for(var e="",t=0;t{if(!n){var s=1/0;for(u=0;u=i)&&Object.keys(o.O).every((e=>o.O[e](n[l])))?n.splice(l--,1):(a=!1,i0&&e[u-1][2]>i;u--)e[u]=e[u-1];e[u]=[n,r,i]},o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={105:0,149:0};o.O.j=t=>0===e[t];var t=(t,n)=>{var r,i,[s,a,l]=n,c=0;if(s.some((t=>0!==e[t]))){for(r in a)o.o(a,r)&&(o.m[r]=a[r]);if(l)var u=l(o)}for(t&&t(n);co(6383)));r=o.O(r)})(); \ No newline at end of file +(()=>{var e,t={6383:(e,t,n)=>{"use strict";const o=window.wp.blocks;var r=n(1609);const i=window.lodash;var s=n(6942),a=n.n(s),l=n(442);const c=l.default||l,u=window.wp.i18n,d=window.wp.blockEditor,p=window.wp.components,f=window.wp.coreData,m=window.wp.data,h=window.wp.element;var v=n(312),y=n.n(v);const g=Math.min,b=Math.max,w=Math.round,_=Math.floor,E=e=>({x:e,y:e}),x={left:"right",right:"left",bottom:"top",top:"bottom"},S={start:"end",end:"start"};function O(e,t,n){return b(e,g(t,n))}function C(e,t){return"function"==typeof e?e(t):e}function k(e){return e.split("-")[0]}function T(e){return e.split("-")[1]}function A(e){return"x"===e?"y":"x"}function R(e){return"y"===e?"height":"width"}function N(e){return["top","bottom"].includes(k(e))?"y":"x"}function P(e){return A(N(e))}function D(e){return e.replace(/start|end/g,(e=>S[e]))}function L(e){return e.replace(/left|right|bottom|top/g,(e=>x[e]))}function M(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function j(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function I(e,t,n){let{reference:o,floating:r}=e;const i=N(t),s=P(t),a=R(s),l=k(t),c="y"===i,u=o.x+o.width/2-r.width/2,d=o.y+o.height/2-r.height/2,p=o[a]/2-r[a]/2;let f;switch(l){case"top":f={x:u,y:o.y-r.height};break;case"bottom":f={x:u,y:o.y+o.height};break;case"right":f={x:o.x+o.width,y:d};break;case"left":f={x:o.x-r.width,y:d};break;default:f={x:o.x,y:o.y}}switch(T(t)){case"start":f[s]-=p*(n&&c?-1:1);break;case"end":f[s]+=p*(n&&c?-1:1)}return f}async function F(e,t){var n;void 0===t&&(t={});const{x:o,y:r,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:f=0}=C(t,e),m=M(f),h=a[p?"floating"===d?"reference":"floating":d],v=j(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),y="floating"===d?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,g=await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),b=await(null==i.isElement?void 0:i.isElement(g))&&await(null==i.getScale?void 0:i.getScale(g))||{x:1,y:1},w=j(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:g,strategy:l}):y);return{top:(v.top-w.top+m.top)/b.y,bottom:(w.bottom-v.bottom+m.bottom)/b.y,left:(v.left-w.left+m.left)/b.x,right:(w.right-v.right+m.right)/b.x}}function H(e){return W(e)?(e.nodeName||"").toLowerCase():"#document"}function B(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function U(e){var t;return null==(t=(W(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function W(e){return e instanceof Node||e instanceof B(e).Node}function V(e){return e instanceof Element||e instanceof B(e).Element}function z(e){return e instanceof HTMLElement||e instanceof B(e).HTMLElement}function q(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof B(e).ShadowRoot)}function $(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=Z(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(r)}function G(e){return["table","td","th"].includes(H(e))}function X(e){const t=Y(),n=Z(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function Y(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function K(e){return["html","body","#document"].includes(H(e))}function Z(e){return B(e).getComputedStyle(e)}function J(e){return V(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Q(e){if("html"===H(e))return e;const t=e.assignedSlot||e.parentNode||q(e)&&e.host||U(e);return q(t)?t.host:t}function ee(e){const t=Q(e);return K(t)?e.ownerDocument?e.ownerDocument.body:e.body:z(t)&&$(t)?t:ee(t)}function te(e,t,n){var o;void 0===t&&(t=[]),void 0===n&&(n=!0);const r=ee(e),i=r===(null==(o=e.ownerDocument)?void 0:o.body),s=B(r);return i?t.concat(s,s.visualViewport||[],$(r)?r:[],s.frameElement&&n?te(s.frameElement):[]):t.concat(r,te(r,[],n))}function ne(e){const t=Z(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=z(e),i=r?e.offsetWidth:n,s=r?e.offsetHeight:o,a=w(n)!==i||w(o)!==s;return a&&(n=i,o=s),{width:n,height:o,$:a}}function oe(e){return V(e)?e:e.contextElement}function re(e){const t=oe(e);if(!z(t))return E(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=ne(t);let s=(i?w(n.width):n.width)/o,a=(i?w(n.height):n.height)/r;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const ie=E(0);function se(e){const t=B(e);return Y()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:ie}function ae(e,t,n,o){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=e.getBoundingClientRect(),i=oe(e);let s=E(1);t&&(o?V(o)&&(s=re(o)):s=re(e));const a=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==B(e))&&t}(i,n,o)?se(i):E(0);let l=(r.left+a.x)/s.x,c=(r.top+a.y)/s.y,u=r.width/s.x,d=r.height/s.y;if(i){const e=B(i),t=o&&V(o)?B(o):o;let n=e,r=n.frameElement;for(;r&&o&&t!==n;){const e=re(r),t=r.getBoundingClientRect(),o=Z(r),i=t.left+(r.clientLeft+parseFloat(o.paddingLeft))*e.x,s=t.top+(r.clientTop+parseFloat(o.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=i,c+=s,n=B(r),r=n.frameElement}}return j({width:u,height:d,x:l,y:c})}const le=[":popover-open",":modal"];function ce(e){return le.some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function ue(e){return ae(U(e)).left+J(e).scrollLeft}function de(e,t,n){let o;if("viewport"===t)o=function(e,t){const n=B(e),o=U(e),r=n.visualViewport;let i=o.clientWidth,s=o.clientHeight,a=0,l=0;if(r){i=r.width,s=r.height;const e=Y();(!e||e&&"fixed"===t)&&(a=r.offsetLeft,l=r.offsetTop)}return{width:i,height:s,x:a,y:l}}(e,n);else if("document"===t)o=function(e){const t=U(e),n=J(e),o=e.ownerDocument.body,r=b(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),i=b(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+ue(e);const a=-n.scrollTop;return"rtl"===Z(o).direction&&(s+=b(t.clientWidth,o.clientWidth)-r),{width:r,height:i,x:s,y:a}}(U(e));else if(V(t))o=function(e,t){const n=ae(e,!0,"fixed"===t),o=n.top+e.clientTop,r=n.left+e.clientLeft,i=z(e)?re(e):E(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:r*i.x,y:o*i.y}}(t,n);else{const n=se(e);o={...t,x:t.x-n.x,y:t.y-n.y}}return j(o)}function pe(e,t){const n=Q(e);return!(n===t||!V(n)||K(n))&&("fixed"===Z(n).position||pe(n,t))}function fe(e,t,n){const o=z(t),r=U(t),i="fixed"===n,s=ae(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=E(0);if(o||!o&&!i)if(("body"!==H(t)||$(r))&&(a=J(t)),o){const e=ae(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else r&&(l.x=ue(r));return{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function me(e){return"static"===Z(e).position}function he(e,t){return z(e)&&"fixed"!==Z(e).position?t?t(e):e.offsetParent:null}function ve(e,t){const n=B(e);if(ce(e))return n;if(!z(e)){let t=Q(e);for(;t&&!K(t);){if(V(t)&&!me(t))return t;t=Q(t)}return n}let o=he(e,t);for(;o&&G(o)&&me(o);)o=he(o,t);return o&&K(o)&&me(o)&&!X(o)?n:o||function(e){let t=Q(e);for(;z(t)&&!K(t);){if(X(t))return t;t=Q(t)}return null}(e)||n}const ye={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const i="fixed"===r,s=U(o),a=!!t&&ce(t.floating);if(o===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},c=E(1);const u=E(0),d=z(o);if((d||!d&&!i)&&(("body"!==H(o)||$(s))&&(l=J(o)),z(o))){const e=ae(o);c=re(o),u.x=e.x+o.clientLeft,u.y=e.y+o.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x,y:n.y*c.y-l.scrollTop*c.y+u.y}},getDocumentElement:U,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const i=[..."clippingAncestors"===n?ce(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let o=te(e,[],!1).filter((e=>V(e)&&"body"!==H(e))),r=null;const i="fixed"===Z(e).position;let s=i?Q(e):e;for(;V(s)&&!K(s);){const t=Z(s),n=X(s);n||"fixed"!==t.position||(r=null),(i?!n&&!r:!n&&"static"===t.position&&r&&["absolute","fixed"].includes(r.position)||$(s)&&!n&&pe(e,s))?o=o.filter((e=>e!==s)):r=t,s=Q(s)}return t.set(e,o),o}(t,this._c):[].concat(n),o],s=i[0],a=i.reduce(((e,n)=>{const o=de(t,n,r);return e.top=b(o.top,e.top),e.right=g(o.right,e.right),e.bottom=g(o.bottom,e.bottom),e.left=b(o.left,e.left),e}),de(t,s,r));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:ve,getElementRects:async function(e){const t=this.getOffsetParent||ve,n=this.getDimensions,o=await n(e.floating);return{reference:fe(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=ne(e);return{width:t,height:n}},getScale:re,isElement:V,isRTL:function(e){return"rtl"===Z(e).direction}};const ge=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:i,placement:s,middlewareData:a}=t,l=await async function(e,t){const{placement:n,platform:o,elements:r}=e,i=await(null==o.isRTL?void 0:o.isRTL(r.floating)),s=k(n),a=T(n),l="y"===N(n),c=["left","top"].includes(s)?-1:1,u=i&&l?-1:1,d=C(t,e);let{mainAxis:p,crossAxis:f,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return a&&"number"==typeof m&&(f="end"===a?-1*m:m),l?{x:f*u,y:p*c}:{x:p*c,y:f*u}}(t,e);return s===(null==(n=a.offset)?void 0:n.placement)&&null!=(o=a.arrow)&&o.alignmentOffset?{}:{x:r+l.x,y:i+l.y,data:{...l,placement:s}}}}},be=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=C(e,t),c={x:n,y:o},u=await F(t,l),d=N(k(r)),p=A(d);let f=c[p],m=c[d];if(i){const e="y"===p?"bottom":"right";f=O(f+u["y"===p?"top":"left"],f,f-u[e])}if(s){const e="y"===d?"bottom":"right";m=O(m+u["y"===d?"top":"left"],m,m-u[e])}const h=a.fn({...t,[p]:f,[d]:m});return{...h,data:{x:h.x-n,y:h.y-o}}}}},we=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,...v}=C(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const y=k(r),g=k(a)===a,b=await(null==l.isRTL?void 0:l.isRTL(c.floating)),w=p||(g||!h?[L(a)]:function(e){const t=L(e);return[D(e),t,D(t)]}(a));p||"none"===m||w.push(...function(e,t,n,o){const r=T(e);let i=function(e,t,n){const o=["left","right"],r=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?r:o:t?o:r;case"left":case"right":return t?i:s;default:return[]}}(k(e),"start"===n,o);return r&&(i=i.map((e=>e+"-"+r)),t&&(i=i.concat(i.map(D)))),i}(a,h,m,b));const _=[a,...w],E=await F(t,v),x=[];let S=(null==(o=i.flip)?void 0:o.overflows)||[];if(u&&x.push(E[y]),d){const e=function(e,t,n){void 0===n&&(n=!1);const o=T(e),r=P(e),i=R(r);let s="x"===r?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=L(s)),[s,L(s)]}(r,s,b);x.push(E[e[0]],E[e[1]])}if(S=[...S,{placement:r,overflows:x}],!x.every((e=>e<=0))){var O,A;const e=((null==(O=i.flip)?void 0:O.index)||0)+1,t=_[e];if(t)return{data:{index:e,overflows:S},reset:{placement:t}};let n=null==(A=S.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:A.placement;if(!n)switch(f){case"bestFit":{var N;const e=null==(N=S.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:N[0];e&&(n=e);break}case"initialPlacement":n=a}if(r!==n)return{reset:{placement:n}}}return{}}}},_e=(e,t,n)=>{const o=new Map,r={platform:ye,...n},i={...r.platform,_c:o};return(async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),l=await(null==s.isRTL?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:d}=I(c,o,l),p=o,f={},m=0;for(let n=0;n{if(!e)return{tooltipStyles:{},tooltipArrowStyles:{},place:o};if(null===t)return{tooltipStyles:{},tooltipArrowStyles:{},place:o};const l=s;return n?(l.push({name:"arrow",options:c={element:n,padding:5},async fn(e){const{x:t,y:n,placement:o,rects:r,platform:i,elements:s,middlewareData:a}=e,{element:l,padding:u=0}=C(c,e)||{};if(null==l)return{};const d=M(u),p={x:t,y:n},f=P(o),m=R(f),h=await i.getDimensions(l),v="y"===f,y=v?"top":"left",b=v?"bottom":"right",w=v?"clientHeight":"clientWidth",_=r.reference[m]+r.reference[f]-p[f]-r.floating[m],E=p[f]-r.reference[f],x=await(null==i.getOffsetParent?void 0:i.getOffsetParent(l));let S=x?x[w]:0;S&&await(null==i.isElement?void 0:i.isElement(x))||(S=s.floating[w]||r.floating[m]);const k=_/2-E/2,A=S/2-h[m]/2-1,N=g(d[y],A),D=g(d[b],A),L=N,j=S-h[m]-D,I=S/2-h[m]/2+k,F=O(L,I,j),H=!a.arrow&&null!=T(o)&&I!==F&&r.reference[m]/2-(I{var r,i;const s={left:`${e}px`,top:`${t}px`,border:a},{x:l,y:c}=null!==(r=o.arrow)&&void 0!==r?r:{x:0,y:0},u=null!==(i={top:"bottom",right:"left",bottom:"top",left:"right"}[n.split("-")[0]])&&void 0!==i?i:"bottom",d=a&&{borderBottom:a,borderRight:a};let p=0;if(a){const e=`${a}`.match(/(\d+)px/);p=(null==e?void 0:e[1])?Number(e[1]):1}return{tooltipStyles:s,tooltipArrowStyles:{left:null!=l?`${l}px`:"",top:null!=c?`${c}px`:"",right:"",bottom:"",...d,[u]:`-${4+p}px`},place:n}}))):_e(e,t,{placement:"bottom",strategy:i,middleware:l}).then((({x:e,y:t,placement:n})=>({tooltipStyles:{left:`${e}px`,top:`${t}px`},tooltipArrowStyles:{},place:n})));var c},Oe=(e,t)=>!("CSS"in window&&"supports"in window.CSS)||window.CSS.supports(e,t),Ce=(e,t,n)=>{let o=null;const r=function(...r){const i=()=>{o=null,n||e.apply(this,r)};n&&!o&&(e.apply(this,r),o=setTimeout(i,t)),n||(o&&clearTimeout(o),o=setTimeout(i,t))};return r.cancel=()=>{o&&(clearTimeout(o),o=null)},r},ke=e=>null!==e&&!Array.isArray(e)&&"object"==typeof e,Te=(e,t)=>{if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&e.every(((e,n)=>Te(e,t[n])));if(Array.isArray(e)!==Array.isArray(t))return!1;if(!ke(e)||!ke(t))return e===t;const n=Object.keys(e),o=Object.keys(t);return n.length===o.length&&n.every((n=>Te(e[n],t[n])))},Ae=e=>{if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;const t=getComputedStyle(e);return["overflow","overflow-x","overflow-y"].some((e=>{const n=t.getPropertyValue(e);return"auto"===n||"scroll"===n}))},Re=e=>{if(!e)return null;let t=e.parentElement;for(;t;){if(Ae(t))return t;t=t.parentElement}return document.scrollingElement||document.documentElement},Ne="undefined"!=typeof window?r.useLayoutEffect:r.useEffect,Pe={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},De=(0,r.createContext)({getTooltipData:()=>Pe});function Le(e="DEFAULT_TOOLTIP_ID"){return(0,r.useContext)(De).getTooltipData(e)}var Me={tooltip:"core-styles-module_tooltip__3vRRp",fixed:"core-styles-module_fixed__pcSol",arrow:"core-styles-module_arrow__cvMwQ",noArrow:"core-styles-module_noArrow__xock6",clickable:"core-styles-module_clickable__ZuTTB",show:"core-styles-module_show__Nt9eE",closing:"core-styles-module_closing__sGnxF"},je={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const Ie=({forwardRef:e,id:t,className:n,classNameArrow:o,variant:i="dark",anchorId:a,anchorSelect:l,place:c="top",offset:u=10,events:d=["hover"],openOnClick:p=!1,positionStrategy:f="absolute",middlewares:m,wrapper:h,delayShow:v=0,delayHide:y=0,float:w=!1,hidden:E=!1,noArrow:x=!1,clickable:S=!1,closeOnEsc:O=!1,closeOnScroll:C=!1,closeOnResize:k=!1,openEvents:T,closeEvents:A,globalCloseEvents:R,imperativeModeOnly:N,style:P,position:D,afterShow:L,afterHide:M,content:j,contentWrapperRef:I,isOpen:F,defaultIsOpen:H=!1,setIsOpen:B,activeAnchor:W,setActiveAnchor:V,border:z,opacity:q,arrowColor:$,role:G="tooltip"})=>{var X;const Y=(0,r.useRef)(null),K=(0,r.useRef)(null),Z=(0,r.useRef)(null),J=(0,r.useRef)(null),Q=(0,r.useRef)(null),[ee,ne]=(0,r.useState)({tooltipStyles:{},tooltipArrowStyles:{},place:c}),[re,ie]=(0,r.useState)(!1),[se,le]=(0,r.useState)(!1),[ce,ue]=(0,r.useState)(null),de=(0,r.useRef)(!1),pe=(0,r.useRef)(null),{anchorRefs:fe,setActiveAnchor:me}=Le(t),he=(0,r.useRef)(!1),[ve,ye]=(0,r.useState)([]),ge=(0,r.useRef)(!1),be=p||d.includes("click"),we=be||(null==T?void 0:T.click)||(null==T?void 0:T.dblclick)||(null==T?void 0:T.mousedown),_e=T?{...T}:{mouseenter:!0,focus:!0,click:!1,dblclick:!1,mousedown:!1};!T&&be&&Object.assign(_e,{mouseenter:!1,focus:!1,click:!0});const Ee=A?{...A}:{mouseleave:!0,blur:!0,click:!1,dblclick:!1,mouseup:!1};!A&&be&&Object.assign(Ee,{mouseleave:!1,blur:!1});const xe=R?{...R}:{escape:O||!1,scroll:C||!1,resize:k||!1,clickOutsideAnchor:we||!1};N&&(Object.assign(_e,{mouseenter:!1,focus:!1,click:!1,dblclick:!1,mousedown:!1}),Object.assign(Ee,{mouseleave:!1,blur:!1,click:!1,dblclick:!1,mouseup:!1}),Object.assign(xe,{escape:!1,scroll:!1,resize:!1,clickOutsideAnchor:!1})),Ne((()=>(ge.current=!0,()=>{ge.current=!1})),[]);const Oe=e=>{ge.current&&(e&&le(!0),setTimeout((()=>{ge.current&&(null==B||B(e),void 0===F&&ie(e))}),10))};(0,r.useEffect)((()=>{if(void 0===F)return()=>null;F&&le(!0);const e=setTimeout((()=>{ie(F)}),10);return()=>{clearTimeout(e)}}),[F]),(0,r.useEffect)((()=>{if(re!==de.current)if(Q.current&&clearTimeout(Q.current),de.current=re,re)null==L||L();else{const e=(e=>{const t=getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay").match(/^([\d.]+)(ms|s)$/);if(!t)return 0;const[,n,o]=t;return Number(n)*("ms"===o?1:1e3)})();Q.current=setTimeout((()=>{le(!1),ue(null),null==M||M()}),e+25)}}),[re]);const ke=e=>{ne((t=>Te(t,e)?t:e))},Ae=(e=v)=>{Z.current&&clearTimeout(Z.current),se?Oe(!0):Z.current=setTimeout((()=>{Oe(!0)}),e)},Pe=(e=y)=>{J.current&&clearTimeout(J.current),J.current=setTimeout((()=>{he.current||Oe(!1)}),e)},De=e=>{var t;if(!e)return;const n=null!==(t=e.currentTarget)&&void 0!==t?t:e.target;if(!(null==n?void 0:n.isConnected))return V(null),void me({current:null});v?Ae():Oe(!0),V(n),me({current:n}),J.current&&clearTimeout(J.current)},Ie=()=>{S?Pe(y||100):y?Pe():Oe(!1),Z.current&&clearTimeout(Z.current)},Fe=({x:e,y:t})=>{var n;const o={getBoundingClientRect:()=>({x:e,y:t,width:0,height:0,top:t,left:e,right:e,bottom:t})};Se({place:null!==(n=null==ce?void 0:ce.place)&&void 0!==n?n:c,offset:u,elementReference:o,tooltipReference:Y.current,tooltipArrowReference:K.current,strategy:f,middlewares:m,border:z}).then((e=>{ke(e)}))},He=e=>{if(!e)return;const t=e,n={x:t.clientX,y:t.clientY};Fe(n),pe.current=n},Be=e=>{var t;if(!re)return;const n=e.target;n.isConnected&&((null===(t=Y.current)||void 0===t?void 0:t.contains(n))||[document.querySelector(`[id='${a}']`),...ve].some((e=>null==e?void 0:e.contains(n)))||(Oe(!1),Z.current&&clearTimeout(Z.current)))},Ue=Ce(De,50,!0),We=Ce(Ie,50,!0),Ve=e=>{We.cancel(),Ue(e)},ze=()=>{Ue.cancel(),We()},qe=(0,r.useCallback)((()=>{var e,t;const n=null!==(e=null==ce?void 0:ce.position)&&void 0!==e?e:D;n?Fe(n):w?pe.current&&Fe(pe.current):(null==W?void 0:W.isConnected)&&Se({place:null!==(t=null==ce?void 0:ce.place)&&void 0!==t?t:c,offset:u,elementReference:W,tooltipReference:Y.current,tooltipArrowReference:K.current,strategy:f,middlewares:m,border:z}).then((e=>{ge.current&&ke(e)}))}),[re,W,j,P,c,null==ce?void 0:ce.place,u,f,D,null==ce?void 0:ce.position,w]);(0,r.useEffect)((()=>{var e,t;const n=new Set(fe);ve.forEach((e=>{n.add({current:e})}));const o=document.querySelector(`[id='${a}']`);o&&n.add({current:o});const r=()=>{Oe(!1)},i=Re(W),s=Re(Y.current);xe.scroll&&(window.addEventListener("scroll",r),null==i||i.addEventListener("scroll",r),null==s||s.addEventListener("scroll",r));let l=null;xe.resize?window.addEventListener("resize",r):W&&Y.current&&(l=function(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:l=!1}=o,c=oe(e),u=r||i?[...c?te(c):[],...te(t)]:[];u.forEach((e=>{r&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=c&&a?function(e,t){let n,o=null;const r=U(e);function i(){var e;clearTimeout(n),null==(e=o)||e.disconnect(),o=null}return function s(a,l){void 0===a&&(a=!1),void 0===l&&(l=1),i();const{left:c,top:u,width:d,height:p}=e.getBoundingClientRect();if(a||t(),!d||!p)return;const f={rootMargin:-_(u)+"px "+-_(r.clientWidth-(c+d))+"px "+-_(r.clientHeight-(u+p))+"px "+-_(c)+"px",threshold:b(0,g(1,l))||1};let m=!0;function h(e){const t=e[0].intersectionRatio;if(t!==l){if(!m)return s();t?s(!1,t):n=setTimeout((()=>{s(!1,1e-7)}),1e3)}m=!1}try{o=new IntersectionObserver(h,{...f,root:r.ownerDocument})}catch(e){o=new IntersectionObserver(h,f)}o.observe(e)}(!0),i}(c,n):null;let p,f=-1,m=null;s&&(m=new ResizeObserver((e=>{let[o]=e;o&&o.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame((()=>{var e;null==(e=m)||e.observe(t)}))),n()})),c&&!l&&m.observe(c),m.observe(t));let h=l?ae(e):null;return l&&function t(){const o=ae(e);!h||o.x===h.x&&o.y===h.y&&o.width===h.width&&o.height===h.height||n(),h=o,p=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{r&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=m)||e.disconnect(),m=null,l&&cancelAnimationFrame(p)}}(W,Y.current,qe,{ancestorResize:!0,elementResize:!0,layoutShift:!0}));const c=e=>{"Escape"===e.key&&Oe(!1)};xe.escape&&window.addEventListener("keydown",c),xe.clickOutsideAnchor&&window.addEventListener("click",Be);const u=[],d=e=>{re&&(null==e?void 0:e.target)===W||De(e)},p=e=>{re&&(null==e?void 0:e.target)===W&&Ie()},f=["mouseenter","mouseleave","focus","blur"],m=["click","dblclick","mousedown","mouseup"];Object.entries(_e).forEach((([e,t])=>{t&&(f.includes(e)?u.push({event:e,listener:Ve}):m.includes(e)&&u.push({event:e,listener:d}))})),Object.entries(Ee).forEach((([e,t])=>{t&&(f.includes(e)?u.push({event:e,listener:ze}):m.includes(e)&&u.push({event:e,listener:p}))})),w&&u.push({event:"pointermove",listener:He});const h=()=>{he.current=!0},v=()=>{he.current=!1,Ie()};return S&&!we&&(null===(e=Y.current)||void 0===e||e.addEventListener("mouseenter",h),null===(t=Y.current)||void 0===t||t.addEventListener("mouseleave",v)),u.forEach((({event:e,listener:t})=>{n.forEach((n=>{var o;null===(o=n.current)||void 0===o||o.addEventListener(e,t)}))})),()=>{var e,t;xe.scroll&&(window.removeEventListener("scroll",r),null==i||i.removeEventListener("scroll",r),null==s||s.removeEventListener("scroll",r)),xe.resize?window.removeEventListener("resize",r):null==l||l(),xe.clickOutsideAnchor&&window.removeEventListener("click",Be),xe.escape&&window.removeEventListener("keydown",c),S&&!we&&(null===(e=Y.current)||void 0===e||e.removeEventListener("mouseenter",h),null===(t=Y.current)||void 0===t||t.removeEventListener("mouseleave",v)),u.forEach((({event:e,listener:t})=>{n.forEach((n=>{var o;null===(o=n.current)||void 0===o||o.removeEventListener(e,t)}))}))}}),[W,qe,se,fe,ve,T,A,R,be,v,y]),(0,r.useEffect)((()=>{var e,n;let o=null!==(n=null!==(e=null==ce?void 0:ce.anchorSelect)&&void 0!==e?e:l)&&void 0!==n?n:"";!o&&t&&(o=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`);const r=new MutationObserver((e=>{const n=[],r=[];e.forEach((e=>{if("attributes"===e.type&&"data-tooltip-id"===e.attributeName&&(e.target.getAttribute("data-tooltip-id")===t?n.push(e.target):e.oldValue===t&&r.push(e.target)),"childList"===e.type){if(W){const t=[...e.removedNodes].filter((e=>1===e.nodeType));if(o)try{r.push(...t.filter((e=>e.matches(o)))),r.push(...t.flatMap((e=>[...e.querySelectorAll(o)])))}catch(e){}t.some((e=>{var t;return!!(null===(t=null==e?void 0:e.contains)||void 0===t?void 0:t.call(e,W))&&(le(!1),Oe(!1),V(null),Z.current&&clearTimeout(Z.current),J.current&&clearTimeout(J.current),!0)}))}if(o)try{const t=[...e.addedNodes].filter((e=>1===e.nodeType));n.push(...t.filter((e=>e.matches(o)))),n.push(...t.flatMap((e=>[...e.querySelectorAll(o)])))}catch(e){}}})),(n.length||r.length)&&ye((e=>[...e.filter((e=>!r.includes(e))),...n]))}));return r.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"],attributeOldValue:!0}),()=>{r.disconnect()}}),[t,l,null==ce?void 0:ce.anchorSelect,W]),(0,r.useEffect)((()=>{qe()}),[qe]),(0,r.useEffect)((()=>{if(!(null==I?void 0:I.current))return()=>null;const e=new ResizeObserver((()=>{setTimeout((()=>qe()))}));return e.observe(I.current),()=>{e.disconnect()}}),[j,null==I?void 0:I.current]),(0,r.useEffect)((()=>{var e;const t=document.querySelector(`[id='${a}']`),n=[...ve,t];W&&n.includes(W)||V(null!==(e=ve[0])&&void 0!==e?e:t)}),[a,ve,W]),(0,r.useEffect)((()=>(H&&Oe(!0),()=>{Z.current&&clearTimeout(Z.current),J.current&&clearTimeout(J.current)})),[]),(0,r.useEffect)((()=>{var e;let n=null!==(e=null==ce?void 0:ce.anchorSelect)&&void 0!==e?e:l;if(!n&&t&&(n=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`),n)try{const e=Array.from(document.querySelectorAll(n));ye(e)}catch(e){ye([])}}),[t,l,null==ce?void 0:ce.anchorSelect]),(0,r.useEffect)((()=>{Z.current&&(clearTimeout(Z.current),Ae(v))}),[v]);const $e=null!==(X=null==ce?void 0:ce.content)&&void 0!==X?X:j,Ge=re&&Object.keys(ee.tooltipStyles).length>0;return(0,r.useImperativeHandle)(e,(()=>({open:e=>{if(null==e?void 0:e.anchorSelect)try{document.querySelector(e.anchorSelect)}catch(t){return void console.warn(`[react-tooltip] "${e.anchorSelect}" is not a valid CSS selector`)}ue(null!=e?e:null),(null==e?void 0:e.delay)?Ae(e.delay):Oe(!0)},close:e=>{(null==e?void 0:e.delay)?Pe(e.delay):Oe(!1)},activeAnchor:W,place:ee.place,isOpen:Boolean(se&&!E&&$e&&Ge)}))),se&&!E&&$e?r.createElement(h,{id:t,role:G,className:s("react-tooltip",Me.tooltip,je.tooltip,je[i],n,`react-tooltip__place-${ee.place}`,Me[Ge?"show":"closing"],Ge?"react-tooltip__show":"react-tooltip__closing","fixed"===f&&Me.fixed,S&&Me.clickable),onTransitionEnd:e=>{Q.current&&clearTimeout(Q.current),re||"opacity"!==e.propertyName||(le(!1),ue(null),null==M||M())},style:{...P,...ee.tooltipStyles,opacity:void 0!==q&&Ge?q:void 0},ref:Y},$e,r.createElement(h,{className:s("react-tooltip-arrow",Me.arrow,je.arrow,o,x&&Me.noArrow),style:{...ee.tooltipArrowStyles,background:$?`linear-gradient(to right bottom, transparent 50%, ${$} 50%)`:void 0},ref:K})):null},Fe=({content:e})=>r.createElement("span",{dangerouslySetInnerHTML:{__html:e}}),He=r.forwardRef((({id:e,anchorId:t,anchorSelect:n,content:o,html:i,render:a,className:l,classNameArrow:c,variant:u="dark",place:d="top",offset:p=10,wrapper:f="div",children:m=null,events:h=["hover"],openOnClick:v=!1,positionStrategy:y="absolute",middlewares:g,delayShow:b=0,delayHide:w=0,float:_=!1,hidden:E=!1,noArrow:x=!1,clickable:S=!1,closeOnEsc:O=!1,closeOnScroll:C=!1,closeOnResize:k=!1,openEvents:T,closeEvents:A,globalCloseEvents:R,imperativeModeOnly:N=!1,style:P,position:D,isOpen:L,defaultIsOpen:M=!1,disableStyleInjection:j=!1,border:I,opacity:F,arrowColor:H,setIsOpen:B,afterShow:U,afterHide:W,role:V="tooltip"},z)=>{const[q,$]=(0,r.useState)(o),[G,X]=(0,r.useState)(i),[Y,K]=(0,r.useState)(d),[Z,J]=(0,r.useState)(u),[Q,ee]=(0,r.useState)(p),[te,ne]=(0,r.useState)(b),[oe,re]=(0,r.useState)(w),[ie,se]=(0,r.useState)(_),[ae,le]=(0,r.useState)(E),[ce,ue]=(0,r.useState)(f),[de,pe]=(0,r.useState)(h),[fe,me]=(0,r.useState)(y),[he,ve]=(0,r.useState)(null),[ye,ge]=(0,r.useState)(null),be=(0,r.useRef)(j),{anchorRefs:we,activeAnchor:_e}=Le(e),Ee=e=>null==e?void 0:e.getAttributeNames().reduce(((t,n)=>{var o;return n.startsWith("data-tooltip-")&&(t[n.replace(/^data-tooltip-/,"")]=null!==(o=null==e?void 0:e.getAttribute(n))&&void 0!==o?o:null),t}),{}),xe=e=>{const t={place:e=>{var t;K(null!==(t=e)&&void 0!==t?t:d)},content:e=>{$(null!=e?e:o)},html:e=>{X(null!=e?e:i)},variant:e=>{var t;J(null!==(t=e)&&void 0!==t?t:u)},offset:e=>{ee(null===e?p:Number(e))},wrapper:e=>{var t;ue(null!==(t=e)&&void 0!==t?t:f)},events:e=>{const t=null==e?void 0:e.split(" ");pe(null!=t?t:h)},"position-strategy":e=>{var t;me(null!==(t=e)&&void 0!==t?t:y)},"delay-show":e=>{ne(null===e?b:Number(e))},"delay-hide":e=>{re(null===e?w:Number(e))},float:e=>{se(null===e?_:"true"===e)},hidden:e=>{le(null===e?E:"true"===e)},"class-name":e=>{ve(e)}};Object.values(t).forEach((e=>e(null))),Object.entries(e).forEach((([e,n])=>{var o;null===(o=t[e])||void 0===o||o.call(t,n)}))};(0,r.useEffect)((()=>{$(o)}),[o]),(0,r.useEffect)((()=>{X(i)}),[i]),(0,r.useEffect)((()=>{K(d)}),[d]),(0,r.useEffect)((()=>{J(u)}),[u]),(0,r.useEffect)((()=>{ee(p)}),[p]),(0,r.useEffect)((()=>{ne(b)}),[b]),(0,r.useEffect)((()=>{re(w)}),[w]),(0,r.useEffect)((()=>{se(_)}),[_]),(0,r.useEffect)((()=>{le(E)}),[E]),(0,r.useEffect)((()=>{me(y)}),[y]),(0,r.useEffect)((()=>{be.current!==j&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")}),[j]),(0,r.useEffect)((()=>{"undefined"!=typeof window&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:"core"===j,disableBase:j}}))}),[]),(0,r.useEffect)((()=>{var o;const r=new Set(we);let i=n;if(!i&&e&&(i=`[data-tooltip-id='${e.replace(/'/g,"\\'")}']`),i)try{document.querySelectorAll(i).forEach((e=>{r.add({current:e})}))}catch(o){console.warn(`[react-tooltip] "${i}" is not a valid CSS selector`)}const s=document.querySelector(`[id='${t}']`);if(s&&r.add({current:s}),!r.size)return()=>null;const a=null!==(o=null!=ye?ye:s)&&void 0!==o?o:_e.current,l=new MutationObserver((e=>{e.forEach((e=>{var t;if(!a||"attributes"!==e.type||!(null===(t=e.attributeName)||void 0===t?void 0:t.startsWith("data-tooltip-")))return;const n=Ee(a);xe(n)}))})),c={attributes:!0,childList:!1,subtree:!1};if(a){const e=Ee(a);xe(e),l.observe(a,c)}return()=>{l.disconnect()}}),[we,_e,ye,t,n]),(0,r.useEffect)((()=>{(null==P?void 0:P.border)&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),I&&!Oe("border",`${I}`)&&console.warn(`[react-tooltip] "${I}" is not a valid \`border\`.`),(null==P?void 0:P.opacity)&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),F&&!Oe("opacity",`${F}`)&&console.warn(`[react-tooltip] "${F}" is not a valid \`opacity\`.`)}),[]);let Se=m;const Ce=(0,r.useRef)(null);if(a){const e=a({content:(null==ye?void 0:ye.getAttribute("data-tooltip-content"))||q||null,activeAnchor:ye});Se=e?r.createElement("div",{ref:Ce,className:"react-tooltip-content-wrapper"},e):null}else q&&(Se=q);G&&(Se=r.createElement(Fe,{content:G}));const ke={forwardRef:z,id:e,anchorId:t,anchorSelect:n,className:s(l,he),classNameArrow:c,content:Se,contentWrapperRef:Ce,place:Y,variant:Z,offset:Q,wrapper:ce,events:de,openOnClick:v,positionStrategy:fe,middlewares:g,delayShow:te,delayHide:oe,float:ie,hidden:ae,noArrow:x,clickable:S,closeOnEsc:O,closeOnScroll:C,closeOnResize:k,openEvents:T,closeEvents:A,globalCloseEvents:R,imperativeModeOnly:N,style:P,position:D,isOpen:L,defaultIsOpen:M,border:I,opacity:F,arrowColor:H,setIsOpen:B,afterShow:U,afterHide:W,activeAnchor:ye,setActiveAnchor:e=>ge(e),role:V};return r.createElement(Ie,{...ke})}));"undefined"!=typeof window&&window.addEventListener("react-tooltip-inject-styles",(e=>{e.detail.disableCore||xe({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in}",type:"core"}),e.detail.disableBase||xe({css:"\n.styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:8px;height:8px}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}",type:"base"})}));const Be=window.wp.apiFetch;var Ue=n.n(Be);const We=({type:e="upcoming",status:t="no_status"})=>{const n={upcoming:{attending:{icon:"dashicons dashicons-yes-alt",text:(0,u._x)("Attending","Responded Status","gatherpress")},waiting_list:{icon:"dashicons dashicons-editor-help",text:(0,u._x)("Waiting List","Responded Status","gatherpress")},not_attending:{icon:"dashicons dashicons-dismiss",text:(0,u._x)("Not Attending","Responded Status","gatherpress")},no_status:{icon:"",text:""}},past:{attending:{icon:"dashicons dashicons-yes-alt",text:(0,u._x)("Went","Responded Status","gatherpress")},waiting_list:{icon:"dashicons dashicons-dismiss",text:(0,u._x)("Didn't Go","Responded Status","gatherpress")},not_attending:{icon:"dashicons dashicons-dismiss",text:(0,u._x)("Didn't Go","Responded Status","gatherpress")},no_status:{icon:"dashicons dashicons-dismiss",text:(0,u._x)("Didn't Go","Responded Status","gatherpress")}}};return(0,r.createElement)("div",{className:"gatherpress-status__response"},(0,r.createElement)("span",{className:n[e][t].icon}),(0,r.createElement)("strong",null,n[e][t].text))};function Ve(e){if("object"==typeof GatherPress)return e.split(".").reduce(((e,t)=>e&&e[t]),GatherPress)}const ze=({postId:e,currentUser:t="",type:n,enableAnonymousRsvp:o,enableInitialDecline:i,maxGuestLimit:s})=>{const[a,l]=(0,h.useState)(t.status),[d,f]=(0,h.useState)(Number(t.anonymous)),[m,v]=(0,h.useState)(t.guests),[g,b]=(0,h.useState)("hidden"),[w,_]=(0,h.useState)("false"),[E,x]=(0,h.useState)(!1);if("past"===n)return"";"undefined"==typeof adminpage&&y().setAppElement(".gatherpress-enabled");const S=e=>{e.preventDefault(),x(!1)},O=async(t,n,o,r=0,i=!0)=>{t.preventDefault(),"attending"!==n&&(r=0),Ue()({path:Ve("urls.eventRestApi")+"/rsvp",method:"POST",data:{post_id:e,status:n,guests:r,anonymous:o,_wpnonce:Ve("misc.nonce")}}).then((e=>{if(e.success){l(e.status),v(e.guests);const n={all:0,attending:0,not_attending:0,waiting_list:0};for(const[t,o]of Object.entries(e.responses))n[t]=o.count;((e,t="")=>{for(const[n,o]of Object.entries(e)){let e=n;t&&(e+="_"+String(t));const r=new CustomEvent(e,{detail:o});dispatchEvent(r)}})({setRsvpStatus:e.status,setRsvpResponse:e.responses,setRsvpCount:n,setRsvpSeeAllLink:n[e.status]>8,setOnlineEventLink:e.online_link},e.event_id),i&&S(t)}}))},C=e=>{switch(e){case"attending":return(0,u.__)("You're attending","gatherpress");case"waiting_list":return(0,u.__)("You're wait listed","gatherpress");case"not_attending":return(0,u.__)("You're not attending","gatherpress")}return(0,u.__)("RSVP to this event","gatherpress")};return(0,r.createElement)("div",{className:"gatherpress-rsvp"},(0,r.createElement)(p.ButtonGroup,{className:"gatherpress-buttons wp-block-buttons"},(0,r.createElement)("div",{className:"gatherpress-buttons__container wp-block-button"},(0,r.createElement)("a",{href:"#",className:"gatherpress-buttons__button wp-block-button__link","aria-expanded":w,tabIndex:"0",onKeyDown:e=>{13===e.keyCode&&(b("hidden"===g?"show":"hidden"),_("false"===w?"true":"false"))},onClick:e=>(e=>{e.preventDefault(),x(!0)})(e)},(e=>{switch(e){case"attending":case"waiting_list":case"not_attending":return(0,u.__)("Edit RSVP","gatherpress")}return(0,u.__)("RSVP","gatherpress")})(a))),(0,r.createElement)(y(),{isOpen:E,onRequestClose:S,style:{overlay:{zIndex:999999999},content:{top:"50%",left:"50%",right:"auto",bottom:"auto",marginRight:"-50%",transform:"translate(-50%, -50%)"}},contentLabel:(0,u.__)("Edit RSVP","gatherpress")},0===t.length&&(0,r.createElement)((()=>(0,r.createElement)("div",{className:"gatherpress-modal gatherpress-modal__rsvp"},(0,r.createElement)("div",{className:"gatherpress-modal__header"},(0,u.__)("Login Required","gatherpress")),(0,r.createElement)("div",{className:"gatherpress-modal__content"},(0,r.createElement)("div",{className:"gatherpress-modal__text"},c((0,u.sprintf)(/* translators: %s: 'Login' (hyperlinked) */ /* translators: %s: 'Login' (hyperlinked) */ +(0,u.__)("You must %s to RSVP to events.","gatherpress"),`\n\t\t\t\t\t\t\t\t\t${(0,u._x)("Login","Context: You must ~ to RSVP to events.","gatherpress")}\n\t\t\t\t\t\t\t\t`))),""!==Ve("urls.registrationUrl")&&(0,r.createElement)("div",{className:"gatherpress-modal__text"},c((0,u.sprintf)(/* translators: %s: 'Register' (hyperlinked) */ /* translators: %s: 'Register' (hyperlinked) */ +(0,u.__)("%s if you do not have an account.","gatherpress"),`\n\t\t\t\t\t\t\t\t\t\t${(0,u._x)("Register","Context: ~ if you do not have an account.","gatherpress")}\n\t\t\t\t\t\t\t\t\t`)))),(0,r.createElement)(p.ButtonGroup,{className:"gatherpress-buttons wp-block-buttons"},(0,r.createElement)("div",{className:"gatherpress-buttons__container wp-block-button"},(0,r.createElement)("a",{href:"#",onClick:S,className:"gatherpress-buttons__button wp-block-button__link"},(0,u.__)("Close","gatherpress")))))),null),0!==t.length&&(0,r.createElement)((({status:e})=>{let t="",n="";return"not_attending"===e||"no_status"===e?(t="attending",n=(0,u.__)("Attend","gatherpress")):(t="not_attending",n=(0,u._x)("Not Attending","action of not attending","gatherpress")),(0,r.createElement)("div",{className:"gatherpress-modal gatherpress-modal__rsvp"},(0,r.createElement)("div",{className:"gatherpress-modal__header"},C(a)?C(a):(0,r.createElement)(p.Spinner,null)),(0,r.createElement)("div",{className:"gatherpress-modal__content"},(0,r.createElement)("div",{className:"gatherpress-modal__text"},c((0,u.sprintf)(/* translators: %s: button label. */ /* translators: %s: button label. */ +(0,u.__)("To set or change your attending status, simply click the %s button below.","gatherpress"),""+n+""))),0{const t=Number(e.target.value);v(t),O(e,a,d,t,!1)},defaultValue:m})),o&&(0,r.createElement)("div",{className:"gatherpress-modal__anonymous"},(0,r.createElement)("input",{id:"gatherpress-anonymous",type:"checkbox",onChange:e=>{const t=Number(e.target.checked);f(t),O(e,a,t,0,!1)},checked:d}),(0,r.createElement)("label",{htmlFor:"gatherpress-anonymous",tabIndex:"0",className:"gatherpress-tooltip","data-tooltip-id":"gatherpress-anonymous-tooltip","data-tooltip-content":(0,u.__)("Only admins will see your identity.","gatherpress")},(0,u.__)("List me as anonymous.","gatherpress")),(0,r.createElement)(He,{id:"gatherpress-anonymous-tooltip"}))),(0,r.createElement)(p.ButtonGroup,{className:"gatherpress-buttons wp-block-buttons"},(0,r.createElement)("div",{className:"gatherpress-buttons__container wp-block-button is-style-outline"},(0,r.createElement)("a",{href:"#",onClick:e=>O(e,t,d,"not_attending"!==t?m:0,"not_attending"===t),className:"gatherpress-buttons__button wp-block-button__link"},n)),(0,r.createElement)("div",{className:"gatherpress-buttons__container wp-block-button"},(0,r.createElement)("a",{href:"#",onClick:S,className:"gatherpress-buttons__button wp-block-button__link"},(0,u.__)("Close","gatherpress")))),i&&"no_status"===a&&1!==d?(0,r.createElement)(p.ButtonGroup,{className:"gatherpress-buttons wp-block-buttons"},(0,r.createElement)("div",{className:"gatherpress-buttons__container wp-block-button"},(0,r.createElement)("a",{href:"#",onClick:e=>O(e,"not_attending",null),className:"gatherpress-buttons__text-link"},(0,u._x)("Not Attending","Responded Status","gatherpress")))):(0,r.createElement)(r.Fragment,null))}),{status:a}))),"no_status"!==a&&(0,r.createElement)("div",{className:"gatherpress-status"},(0,r.createElement)(We,{type:n,status:a}),0{const[i,s]=(0,h.useState)(o);((e,t="")=>{for(const[n,o]of Object.entries(e)){let e=n;t&&(e+="_"+String(t)),addEventListener(e,(e=>{o(e.detail)}),!1)}})({setRsvpResponse:s},e);let a="";return"object"==typeof i&&void 0!==i[t]&&(o=[...i[t].responses],n&&(o=o.splice(0,n)),a=o.map(((e,t)=>{const{name:n,photo:o}=e;return(0,r.createElement)("figure",{key:t,className:"gatherpress-rsvp-response__member-avatar"},(0,r.createElement)("img",{alt:n,title:n,src:o}))}))),(0,r.createElement)(r.Fragment,null,a)},$e=e=>{const{type:t,event:n,eventOptions:o}=e,i="default"===o.imageSize?"featured_image":"featured_image_"+o.imageSize,s=c(n[i]),a="gatherpress-events-list";let l="location";const u=n.venue?.is_online_event;return u&&(l="video-alt2"),(0,r.createElement)("div",{className:`${a}`},(0,r.createElement)("div",{className:`${a}__header`},(0,r.createElement)("div",{className:`${a}__info`},o.showFeaturedImage&&(0,r.createElement)("figure",{className:`${a}__image`},(0,r.createElement)("a",{href:n.permalink},s)),(0,r.createElement)("div",{className:`${a}__datetime`},(0,r.createElement)("strong",null,n.datetime_start)),(0,r.createElement)("div",{className:`${a}__title`},(0,r.createElement)("a",{href:n.permalink},c(n.title))),n.venue&&o.showVenue&&(0,r.createElement)("div",{className:`${a}__venue`},(0,r.createElement)("span",{className:`dashicons dashicons-${l}`}),!u&&(0,r.createElement)("a",{href:n.venue.permalink},c(n.venue.name)),u&&(0,r.createElement)("span",null,c(n.venue.name))),o.showDescription&&(0,r.createElement)("div",{className:`${a}__content`},(0,r.createElement)("div",{className:`${a}__excerpt`},c(n.excerpt.split(" ").splice(0,parseInt(o.descriptionLimit)).join(" ")+"[…]"))))),(0,r.createElement)("div",{className:`${a}__footer`},o.showRsvpResponse&&(0,r.createElement)("div",{className:"gatherpress-rsvp-response__items"},(0,r.createElement)(qe,{postId:n.ID,value:"attending",responses:n.responses,limit:"3"})),"upcoming"===t&&o.showRsvp&&(0,r.createElement)(ze,{postId:n.ID,currentUser:n.current_user,type:t,enableAnonymousRsvp:n.gatherpress_enable_anonymous_rsvp,enableInitialDecline:n.gatherpress_enable_initial_decline}),"past"===t&&o.showRsvp&&""!==n.current_user&&(0,r.createElement)(We,{type:t,status:n.current_user?.status})))},Ge=e=>{const{eventOptions:t,maxNumberOfEvents:n,datetimeFormat:o,type:i,topics:s,venues:a}=e,[l,c]=(0,h.useState)([]),[d,f]=(0,h.useState)(!1),m=l.map((e=>(0,r.createElement)($e,{key:e.ID,eventOptions:t,type:i,event:e})));return(0,h.useEffect)((()=>{let e="",t="";"object"==typeof s&&(e=s.map((e=>e.slug))?.join(",")),"object"==typeof a&&(t=a.map((e=>e.slug))?.join(","));const r=Ve("urls.eventRestApi")+`/events-list?event_list_type=${i}&max_number=${n}&datetime_format=${o}&topics=${e}&venues=${t}`;Ve("misc.isUserLoggedIn")?Ue()({path:r}).then((e=>{f(!0),c(e)})):fetch(r).then((e=>e.json())).then((e=>{f(!0),c(e)}))}),[c,n,o,i,s,a]),(0,r.createElement)("div",{className:`gatherpress-${i}-events-list`},!d&&(0,r.createElement)(p.Spinner,null),d&&0===l.length&&(()=>{const e="upcoming"===i?(0,u.__)("There are no upcoming events.","gatherpress"):(0,u.__)("There are no past events.","gatherpress");return(0,r.createElement)("div",{className:`gatherpress-${i}-events__no_events_message`},e)})(),d&&m)},Xe=e=>{const{isSelected:t}=e,n=t?"none":"block";return(0,r.createElement)("div",{style:{position:"relative"}},e.children,(0,r.createElement)("div",{style:{position:"absolute",top:"0",right:"0",bottom:"0",left:"0",display:n}}))},Ye=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"gatherpress/events-list","version":"1.0.1","title":"Events List","category":"gatherpress","icon":"list-view","example":{},"description":"Displays events that are either upcoming or have occurred in the past.","attributes":{"eventOptions":{"type":"object","default":{"descriptionLimit":55,"imageSize":"default","showRsvpResponse":true,"showFeaturedImage":true,"showDescription":true,"showRsvp":true,"showVenue":true}},"datetimeFormat":{"type":"string","default":"D, M j, Y, g:i a T"},"maxNumberOfEvents":{"type":"integer","default":5},"topics":{"type":"array","items":{"type":"object"}},"venues":{"type":"array","items":{"type":"object"}},"type":{"type":"string","default":"upcoming"}},"supports":{"html":false},"textdomain":"gatherpress","editorScript":"file:./index.js","style":"file:./style-index.css","viewScript":"file:./events-list.js","render":"file:./render.php"}');(0,o.registerBlockType)(Ye,{edit:e=>{var t,n,o;const{attributes:s,setAttributes:l}=e,h=(0,d.useBlockProps)(),{topics:v,venues:y}=s,{topicsList:g}=(0,m.useSelect)((e=>{const{getEntityRecords:t}=e(f.store);return{topicsList:t("taxonomy","gatherpress_topic",{per_page:-1,context:"view"})}}),[]),{venueList:b}=(0,m.useSelect)((e=>{const{getEntityRecords:t}=e(f.store);return{venueList:t("taxonomy","_gatherpress_venue",{per_page:-1,context:"view"})}}),[]),w=null!==(t=g?.reduce(((e,t)=>({...e,[t.name]:t})),{}))&&void 0!==t?t:{},_=null!==(n=b?.reduce(((e,t)=>({...e,[t.name]:t})),{}))&&void 0!==n?n:{};return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(d.InspectorControls,null,(0,r.createElement)(p.PanelBody,null,(0,r.createElement)("p",null,(0,u.__)("Event List type","gatherpress")),(0,r.createElement)(p.ButtonGroup,{className:"block-editor-block-styles__variants"},(0,r.createElement)(p.Button,{className:a()("block-editor-block-styles__item",{"is-active":"upcoming"===s.type}),variant:"secondary",label:(0,u.__)("Upcoming","gatherpress"),onClick:()=>{l({type:"upcoming"})}},(0,r.createElement)(p.__experimentalText,{as:"span",limit:12,ellipsizeMode:"tail",className:"block-editor-block-styles__item-text",truncate:!0},(0,u.__)("Upcoming","gatherpress"))),(0,r.createElement)(p.Button,{className:a()("block-editor-block-styles__item",{"is-active":"past"===s.type}),variant:"secondary",label:(0,u.__)("Past","gatherpress"),onClick:()=>{l({type:"past"})}},(0,r.createElement)(p.__experimentalText,{as:"span",limit:12,ellipsizeMode:"tail",className:"block-editor-block-styles__item-text",truncate:!0},(0,u.__)("Past","gatherpress"))))),(0,r.createElement)(p.PanelBody,null,(0,r.createElement)(p.TextControl,{label:(0,u.__)("Date & time format","gatherpress"),value:s.datetimeFormat,help:c((0,u.__)('For more information read the Documentation on date and time formatting.',"gatherpress")),onChange:e=>l({datetimeFormat:e})}),(0,r.createElement)(p.RangeControl,{label:(0,u.__)("Maximum number of events to display","gatherpress"),min:1,max:10,value:parseInt(s.maxNumberOfEvents,10),onChange:e=>l({maxNumberOfEvents:e})}),(0,r.createElement)(p.FormTokenField,{key:"query-controls-topics-select",label:(0,u.__)("Topics","gatherpress"),value:v&&v.map((e=>({id:e.id,slug:e.slug,value:e.name||e.value}))),suggestions:Object.keys(w),onChange:e=>{if(e.some((e=>"string"==typeof e&&!w[e])))return;const t=e.map((e=>"string"==typeof e?w[e]:e));if((0,i.includes)(t,null))return!1;l({topics:t})},maxSuggestions:20}),(0,r.createElement)(p.FormTokenField,{key:"query-controls-venues-select",label:(0,u.__)("Venues","gatherpress"),value:y&&y.map((e=>({id:e.id,slug:e.slug,value:e.name||e.value}))),suggestions:Object.keys(_),onChange:e=>{if(e.some((e=>"string"==typeof e&&!_[e])))return;const t=e.map((e=>"string"==typeof e?_[e]:e));if((0,i.includes)(t,null))return!1;l({venues:t})},maxSuggestions:20})),(0,r.createElement)(p.PanelBody,null,(0,r.createElement)(p.ToggleControl,{label:(0,u.__)("Show/Hide All RSVP Responses","gatherpress"),help:s.eventOptions.showRsvpResponse?(0,u.__)("Show All RSVP Responses","gatherpress"):(0,u.__)("Hide All RSVP Responses","gatherpress"),checked:null===(o=s.eventOptions.showRsvpResponse)||void 0===o||o,onChange:e=>{l({eventOptions:{...s.eventOptions,showRsvpResponse:e}})}}),(0,r.createElement)(p.ToggleControl,{label:(0,u.__)("Show/Hide My RSVP Response"),help:s.eventOptions.showRsvp?(0,u.__)("Show My RSVP Response"):(0,u.__)("Hide My RSVP Response"),checked:s.eventOptions.showRsvp,onChange:e=>{l({eventOptions:{...s.eventOptions,showRsvp:e}})}}),(0,r.createElement)(p.SelectControl,{label:(0,u.__)("Image Size Options","gatherpress"),value:s.eventOptions.imageSize,options:[{label:"Default",value:"default"},{label:"Thumbnail",value:"thumbnail"},{label:"Large",value:"large"}],onChange:e=>l({eventOptions:{...s.eventOptions,imageSize:e}})}),(0,r.createElement)(p.ToggleControl,{label:(0,u.__)("Show/Hide Featured Image","gatherpress"),help:s.eventOptions.showFeaturedImage?(0,u.__)("Show Featured Image","gatherpress"):(0,u.__)("Hide Featured Image","gatherpress"),checked:s.eventOptions.showFeaturedImage,onChange:e=>{l({eventOptions:{...s.eventOptions,showFeaturedImage:e}})}}),(0,r.createElement)(p.ToggleControl,{label:(0,u.__)("Show/Hide Description","gatherpress"),help:s.eventOptions.showDescription?(0,u.__)("Show Description","gatherpress"):(0,u.__)("Hide Description","gatherpress"),checked:s.eventOptions.showDescription,onChange:e=>{l({eventOptions:{...s.eventOptions,showDescription:e}})}}),(0,r.createElement)(p.TextControl,{label:(0,u.__)("Description Limit"),help:(0,u.__)("Limit the amount of words that display underneath the title of the event"),value:parseInt(s.eventOptions.descriptionLimit),onChange:e=>l({eventOptions:{...s.eventOptions,descriptionLimit:e}}),min:0,max:55,type:"number"}),(0,r.createElement)(p.ToggleControl,{label:(0,u.__)("Show/Event Venue"),help:s.eventOptions.showVenue?(0,u.__)("Show Event Venue"):(0,u.__)("Hide Event Venue"),checked:s.eventOptions.showVenue,onChange:e=>{l({eventOptions:{...s.eventOptions,showVenue:e}})}}))),(0,r.createElement)("div",{...h},(0,r.createElement)(Xe,null,(0,r.createElement)(Ge,{eventOptions:s.eventOptions,maxNumberOfEvents:s.maxNumberOfEvents,datetimeFormat:s.datetimeFormat,type:s.type,topics:s.topics,venues:s.venues}))))},save:()=>null})},5413:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(n=t.ElementType||(t.ElementType={})),t.isTag=function(e){return e.type===n.Tag||e.type===n.Script||e.type===n.Style},t.Root=n.Root,t.Text=n.Text,t.Directive=n.Directive,t.Comment=n.Comment,t.Script=n.Script,t.Style=n.Style,t.Tag=n.Tag,t.CDATA=n.CDATA,t.Doctype=n.Doctype},1141:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,r)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var i=n(5413),s=n(6957);r(n(6957),t);var a={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},l=function(){function e(e,t,n){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=a),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:a,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?i.ElementType.Tag:void 0,o=new s.Element(e,t,void 0,n);this.addNode(o),this.tagStack.push(o)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===i.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var n=new s.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===i.ElementType.Comment)this.lastNode.data+=e;else{var t=new s.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new s.Text(""),t=new s.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new s.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=l,t.default=l},6957:function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,o=arguments.length;n0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(a);t.NodeWithChildren=p;var f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=s.ElementType.CDATA,t}return r(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(p);t.CDATA=f;var m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=s.ElementType.Root,t}return r(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(p);t.Document=m;var h=function(e){function t(t,n,o,r){void 0===o&&(o=[]),void 0===r&&(r="script"===t?s.ElementType.Script:"style"===t?s.ElementType.Style:s.ElementType.Tag);var i=e.call(this,o)||this;return i.name=t,i.attribs=n,i.type=r,i}return r(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var n,o;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(o=e["x-attribsPrefix"])||void 0===o?void 0:o[t]}}))},enumerable:!1,configurable:!0}),t}(p);function v(e){return(0,s.isTag)(e)}function y(e){return e.type===s.ElementType.CDATA}function g(e){return e.type===s.ElementType.Text}function b(e){return e.type===s.ElementType.Comment}function w(e){return e.type===s.ElementType.Directive}function _(e){return e.type===s.ElementType.Root}function E(e,t){var n;if(void 0===t&&(t=!1),g(e))n=new c(e.data);else if(b(e))n=new u(e.data);else if(v(e)){var o=t?x(e.children):[],r=new h(e.name,i({},e.attribs),o);o.forEach((function(e){return e.parent=r})),null!=e.namespace&&(r.namespace=e.namespace),e["x-attribsNamespace"]&&(r["x-attribsNamespace"]=i({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(r["x-attribsPrefix"]=i({},e["x-attribsPrefix"])),n=r}else if(y(e)){o=t?x(e.children):[];var s=new f(o);o.forEach((function(e){return e.parent=s})),n=s}else if(_(e)){o=t?x(e.children):[];var a=new m(o);o.forEach((function(e){return e.parent=a})),e["x-mode"]&&(a["x-mode"]=e["x-mode"]),n=a}else{if(!w(e))throw new Error("Not implemented yet: ".concat(e.type));var l=new d(e.name,e.data);null!=e["x-name"]&&(l["x-name"]=e["x-name"],l["x-publicId"]=e["x-publicId"],l["x-systemId"]=e["x-systemId"]),n=l}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function x(e){for(var t=e.map((function(e){return E(e,!0)})),n=1;n{var o;!function(){"use strict";var r=!("undefined"==typeof window||!window.document||!window.document.createElement),i={canUseDOM:r,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:r&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:r&&!!window.screen};void 0===(o=function(){return i}.call(t,n,t,e))||(e.exports=o)}()},5270:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES=void 0,t.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES.reduce((function(e,t){return e[t.toLowerCase()]=t,e}),{})},5496:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="html",o="head",r="body",i=/<([a-zA-Z]+[0-9]?)/,s=//i,a=//i,l=function(e,t){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},c=function(e,t){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},u="object"==typeof window&&window.DOMParser;if("function"==typeof u){var d=new u;l=c=function(e,t){return t&&(e="<".concat(t,">").concat(e,"")),d.parseFromString(e,"text/html")}}if("object"==typeof document&&document.implementation){var p=document.implementation.createHTMLDocument();l=function(e,t){if(t){var n=p.documentElement.querySelector(t);return n&&(n.innerHTML=e),p}return p.documentElement.innerHTML=e,p}}var f,m="object"==typeof document&&document.createElement("template");m&&m.content&&(f=function(e){return m.innerHTML=e,m.content.childNodes}),t.default=function(e){var t,u,d=e.match(i),p=d&&d[1]?d[1].toLowerCase():"";switch(p){case n:var m=c(e);return s.test(e)||null===(t=null==(v=m.querySelector(o))?void 0:v.parentNode)||void 0===t||t.removeChild(v),a.test(e)||null===(u=null==(v=m.querySelector(r))?void 0:v.parentNode)||void 0===u||u.removeChild(v),m.querySelectorAll(n);case o:case r:var h=l(e).querySelectorAll(p);return a.test(e)&&s.test(e)?h[0].parentNode.childNodes:h;default:return f?f(e):(v=l(e,r).querySelector(r)).childNodes;var v}}},2471:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(5496)),i=n(7731),s=/<(![a-zA-Z\s]+)>/;t.default=function(e){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];var t=e.match(s),n=t?t[1]:void 0;return(0,i.formatDOM)((0,r.default)(e),null,n)}},7731:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatDOM=t.formatAttributes=void 0;var o=n(1141),r=n(5270);function i(e){for(var t={},n=0,o=e.length;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(4210),r=n(4958),i=["checked","value"],s=["input","select","textarea"],a={reset:!0,submit:!0};function l(e){return o.possibleStandardNames[e]}t.default=function(e,t){void 0===e&&(e={});var n={},c=Boolean(e.type&&a[e.type]);for(var u in e){var d=e[u];if((0,o.isCustomAttribute)(u))n[u]=d;else{var p=u.toLowerCase(),f=l(p);if(f){var m=(0,o.getPropertyInfo)(f);switch(i.includes(f)&&s.includes(t)&&!c&&(f=l("default"+p)),n[f]=d,m&&m.type){case o.BOOLEAN:n[f]=!0;break;case o.OVERLOADED_BOOLEAN:""===d&&(n[f]=!0)}}else r.PRESERVE_CUSTOM_ATTRIBUTES&&(n[u]=d)}}return(0,r.setStyleProp)(e.style,n),n}},308:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=n(1609),i=o(n(840)),s=n(4958),a={cloneElement:r.cloneElement,createElement:r.createElement,isValidElement:r.isValidElement};function l(e){return s.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&(0,s.isCustomComponent)(e.name,e.attribs)}t.default=function e(t,n){void 0===n&&(n={});for(var o=[],r="function"==typeof n.replace,c=n.transform||s.returnFirstArg,u=n.library||a,d=u.cloneElement,p=u.createElement,f=u.isValidElement,m=t.length,h=0;h1&&(y=d(y,{key:y.key||h})),o.push(c(y,v,h));continue}}if("text"!==v.type){var g=v,b={};l(g)?((0,s.setStyleProp)(g.attribs.style,g.attribs),b=g.attribs):g.attribs&&(b=(0,i.default)(g.attribs,g.name));var w=void 0;switch(v.type){case"script":case"style":v.children[0]&&(b.dangerouslySetInnerHTML={__html:v.children[0].data});break;case"tag":"textarea"===v.name&&v.children[0]?b.defaultValue=v.children[0].data:v.children&&v.children.length&&(w=e(v.children,n));break;default:continue}m>1&&(b.key=h),o.push(c(p(v.name,b,w),v,h))}else{var _=!v.data.trim().length;if(_&&v.parent&&!(0,s.canTextBeChildOfNode)(v.parent))continue;if(n.trim&&_)continue;o.push(c(v.data,v,h))}}return 1===o.length?o[0]:o}},442:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.htmlToDOM=t.domToReact=t.attributesToProps=t.Text=t.ProcessingInstruction=t.Element=t.Comment=void 0;var r=o(n(2471));t.htmlToDOM=r.default;var i=o(n(840));t.attributesToProps=i.default;var s=o(n(308));t.domToReact=s.default;var a=n(1141);Object.defineProperty(t,"Comment",{enumerable:!0,get:function(){return a.Comment}}),Object.defineProperty(t,"Element",{enumerable:!0,get:function(){return a.Element}}),Object.defineProperty(t,"ProcessingInstruction",{enumerable:!0,get:function(){return a.ProcessingInstruction}}),Object.defineProperty(t,"Text",{enumerable:!0,get:function(){return a.Text}});var l={lowerCaseAttributeNames:!1};t.default=function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");return e?(0,s.default)((0,r.default)(e,(null==t?void 0:t.htmlparser2)||l),t):[]}},4958:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.returnFirstArg=t.canTextBeChildOfNode=t.ELEMENTS_WITH_NO_TEXT_CHILDREN=t.PRESERVE_CUSTOM_ATTRIBUTES=t.setStyleProp=t.isCustomComponent=void 0;var r=n(1609),i=o(n(5229)),s=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);t.isCustomComponent=function(e,t){return e.includes("-")?!s.has(e):Boolean(t&&"string"==typeof t.is)};var a={reactCompat:!0};t.setStyleProp=function(e,t){if("string"==typeof e)if(e.trim())try{t.style=(0,i.default)(e,a)}catch(e){t.style={}}else t.style={}},t.PRESERVE_CUSTOM_ATTRIBUTES=Number(r.version.split(".")[0])>=16,t.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]),t.canTextBeChildOfNode=function(e){return!t.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(e.name)},t.returnFirstArg=function(e){return e}},9788:e=>{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,o=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,l=/^\s+|\s+$/g,c="";function u(e){return e?e.replace(l,c):c}e.exports=function(e,l){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];l=l||{};var d=1,p=1;function f(e){var t=e.match(n);t&&(d+=t.length);var o=e.lastIndexOf("\n");p=~o?e.length-o:p+e.length}function m(){var e={line:d,column:p};return function(t){return t.position=new h(e),b(),t}}function h(e){this.start=e,this.end={line:d,column:p},this.source=l.source}h.prototype.content=e;var v=[];function y(t){var n=new Error(l.source+":"+d+":"+p+": "+t);if(n.reason=t,n.filename=l.source,n.line=d,n.column=p,n.source=e,!l.silent)throw n;v.push(n)}function g(t){var n=t.exec(e);if(n){var o=n[0];return f(o),e=e.slice(o.length),n}}function b(){g(o)}function w(e){var t;for(e=e||[];t=_();)!1!==t&&e.push(t);return e}function _(){var t=m();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;c!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,c===e.charAt(n-1))return y("End of comment missing");var o=e.slice(2,n-2);return p+=2,f(o),e=e.slice(n),p+=2,t({type:"comment",comment:o})}}function E(){var e=m(),n=g(r);if(n){if(_(),!g(i))return y("property missing ':'");var o=g(s),l=e({type:"declaration",property:u(n[0].replace(t,c)),value:o?u(o[0].replace(t,c)):c});return g(a),l}}return b(),function(){var e,t=[];for(w(t);e=E();)!1!==e&&(t.push(e),w(t));return t}()}},2694:(e,t,n)=>{"use strict";var o=n(6925);function r(){}function i(){}i.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,i,s){if(s!==o){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return n.PropTypes=n,n}},5556:(e,t,n)=>{e.exports=n(2694)()},6925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},1345:(e,t,n)=>{"use strict";function o(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function r(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function i(e,t){try{var n=this.props,o=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,o)}finally{this.props=n,this.state=o}}function s(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,s=null,a=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?s="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(s="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?a="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(a="UNSAFE_componentWillUpdate"),null!==n||null!==s||null!==a){var l=e.displayName||e.name,c="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+l+" uses "+c+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==s?"\n "+s:"")+(null!==a?"\n "+a:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=o,t.componentWillReceiveProps=r),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=i;var u=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var o=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;u.call(this,e,t,o)}}return e}n.r(t),n.d(t,{polyfill:()=>s}),o.__suppressDeprecationWarning=!0,r.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0},1720:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bodyOpenClassName=t.portalClassName=void 0;var o=Object.assign||function(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t0&&0==(g-=1)&&u.show(t),n.props.shouldFocusAfterRender&&(n.props.shouldReturnFocusAfterClose?(l.returnFocus(n.props.preventScroll),l.teardownScopedFocus()):l.popWithoutFocus()),n.props.onAfterClose&&n.props.onAfterClose(),m.default.deregister(n)},n.open=function(){n.beforeOpen(),n.state.afterOpen&&n.state.beforeClose?(clearTimeout(n.closeTimer),n.setState({beforeClose:!1})):(n.props.shouldFocusAfterRender&&(l.setupScopedFocus(n.node),l.markForFocusLater()),n.setState({isOpen:!0},(function(){n.openAnimationFrame=requestAnimationFrame((function(){n.setState({afterOpen:!0}),n.props.isOpen&&n.props.onAfterOpen&&n.props.onAfterOpen({overlayEl:n.overlay,contentEl:n.content})}))})))},n.close=function(){n.props.closeTimeoutMS>0?n.closeWithTimeout():n.closeWithoutTimeout()},n.focusContent=function(){return n.content&&!n.contentHasFocus()&&n.content.focus({preventScroll:!0})},n.closeWithTimeout=function(){var e=Date.now()+n.props.closeTimeoutMS;n.setState({beforeClose:!0,closesAt:e},(function(){n.closeTimer=setTimeout(n.closeWithoutTimeout,n.state.closesAt-Date.now())}))},n.closeWithoutTimeout=function(){n.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},n.afterClose)},n.handleKeyDown=function(e){(function(e){return"Tab"===e.code||9===e.keyCode})(e)&&(0,c.default)(n.content,e),n.props.shouldCloseOnEsc&&function(e){return"Escape"===e.code||27===e.keyCode}(e)&&(e.stopPropagation(),n.requestClose(e))},n.handleOverlayOnClick=function(e){null===n.shouldClose&&(n.shouldClose=!0),n.shouldClose&&n.props.shouldCloseOnOverlayClick&&(n.ownerHandlesClose()?n.requestClose(e):n.focusContent()),n.shouldClose=null},n.handleContentOnMouseUp=function(){n.shouldClose=!1},n.handleOverlayOnMouseDown=function(e){n.props.shouldCloseOnOverlayClick||e.target!=n.overlay||e.preventDefault()},n.handleContentOnClick=function(){n.shouldClose=!1},n.handleContentOnMouseDown=function(){n.shouldClose=!1},n.requestClose=function(e){return n.ownerHandlesClose()&&n.props.onRequestClose(e)},n.ownerHandlesClose=function(){return n.props.onRequestClose},n.shouldBeClosed=function(){return!n.state.isOpen&&!n.state.beforeClose},n.contentHasFocus=function(){return document.activeElement===n.content||n.content.contains(document.activeElement)},n.buildClassName=function(e,t){var o="object"===(void 0===t?"undefined":r(t))?t:{base:y[e],afterOpen:y[e]+"--after-open",beforeClose:y[e]+"--before-close"},i=o.base;return n.state.afterOpen&&(i=i+" "+o.afterOpen),n.state.beforeClose&&(i=i+" "+o.beforeClose),"string"==typeof t&&t?i+" "+t:i},n.attributesFromObject=function(e,t){return Object.keys(t).reduce((function(n,o){return n[e+"-"+o]=t[o],n}),{})},n.state={afterOpen:!1,beforeClose:!1},n.shouldClose=null,n.moveFromContentToOverlay=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(e,t){this.props.isOpen&&!e.isOpen?this.open():!this.props.isOpen&&e.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!t.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var e=this.props,t=e.appElement,n=e.ariaHideApp,o=e.htmlOpenClassName,r=e.bodyOpenClassName,i=e.parentSelector,s=i&&i().ownerDocument||document;r&&d.add(s.body,r),o&&d.add(s.getElementsByTagName("html")[0],o),n&&(g+=1,u.hide(t)),m.default.register(this)}},{key:"render",value:function(){var e=this.props,t=e.id,n=e.className,r=e.overlayClassName,i=e.defaultStyles,s=e.children,a=n?{}:i.content,l=r?{}:i.overlay;if(this.shouldBeClosed())return null;var c={ref:this.setOverlayRef,className:this.buildClassName("overlay",r),style:o({},l,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},u=o({id:t,ref:this.setContentRef,style:o({},a,this.props.style.content),className:this.buildClassName("content",n),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",o({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),d=this.props.contentElement(u,s);return this.props.overlayElement(c,d)}}]),t}(s.Component);b.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},b.propTypes={isOpen:a.default.bool.isRequired,defaultStyles:a.default.shape({content:a.default.object,overlay:a.default.object}),style:a.default.shape({content:a.default.object,overlay:a.default.object}),className:a.default.oneOfType([a.default.string,a.default.object]),overlayClassName:a.default.oneOfType([a.default.string,a.default.object]),parentSelector:a.default.func,bodyOpenClassName:a.default.string,htmlOpenClassName:a.default.string,ariaHideApp:a.default.bool,appElement:a.default.oneOfType([a.default.instanceOf(f.default),a.default.instanceOf(p.SafeHTMLCollection),a.default.instanceOf(p.SafeNodeList),a.default.arrayOf(a.default.instanceOf(f.default))]),onAfterOpen:a.default.func,onAfterClose:a.default.func,onRequestClose:a.default.func,closeTimeoutMS:a.default.number,shouldFocusAfterRender:a.default.bool,shouldCloseOnOverlayClick:a.default.bool,shouldReturnFocusAfterClose:a.default.bool,preventScroll:a.default.bool,role:a.default.string,contentLabel:a.default.string,aria:a.default.object,data:a.default.object,children:a.default.node,shouldCloseOnEsc:a.default.bool,overlayRef:a.default.func,contentRef:a.default.func,id:a.default.string,overlayElement:a.default.func,contentElement:a.default.func,testId:a.default.string},t.default=b,e.exports=t.default},6462:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){s&&(s.removeAttribute?s.removeAttribute("aria-hidden"):null!=s.length?s.forEach((function(e){return e.removeAttribute("aria-hidden")})):document.querySelectorAll(s).forEach((function(e){return e.removeAttribute("aria-hidden")}))),s=null},t.log=function(){},t.assertNodeList=a,t.setElement=function(e){var t=e;if("string"==typeof t&&i.canUseDOM){var n=document.querySelectorAll(t);a(n,t),t=n}return s=t||s},t.validateElement=l,t.hide=function(e){var t=!0,n=!1,o=void 0;try{for(var r,i=l(e)[Symbol.iterator]();!(t=(r=i.next()).done);t=!0)r.value.setAttribute("aria-hidden","true")}catch(e){n=!0,o=e}finally{try{!t&&i.return&&i.return()}finally{if(n)throw o}}},t.show=function(e){var t=!0,n=!1,o=void 0;try{for(var r,i=l(e)[Symbol.iterator]();!(t=(r=i.next()).done);t=!0)r.value.removeAttribute("aria-hidden")}catch(e){n=!0,o=e}finally{try{!t&&i.return&&i.return()}finally{if(n)throw o}}},t.documentNotReadyOrSSRTesting=function(){s=null};var o,r=(o=n(9771))&&o.__esModule?o:{default:o},i=n(834),s=null;function a(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function l(e){var t=e||s;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,r.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}},7727:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){for(var e=[i,s],t=0;t0?(document.body.firstChild!==i&&document.body.insertBefore(i,document.body.firstChild),document.body.lastChild!==s&&document.body.appendChild(s)):(i.parentElement&&i.parentElement.removeChild(i),s.parentElement&&s.parentElement.removeChild(s))}))},4838:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){var e=document.getElementsByTagName("html")[0];for(var t in n)r(e,n[t]);var i=document.body;for(var s in o)r(i,o[s]);n={},o={}},t.log=function(){};var n={},o={};function r(e,t){e.classList.remove(t)}t.add=function(e,t){return r=e.classList,i="html"==e.nodeName.toLowerCase()?n:o,void t.split(" ").forEach((function(e){!function(e,t){e[t]||(e[t]=0),e[t]+=1}(i,e),r.add(e)}));var r,i},t.remove=function(e,t){return r=e.classList,i="html"==e.nodeName.toLowerCase()?n:o,void t.split(" ").forEach((function(e){!function(e,t){e[t]&&(e[t]-=1)}(i,e),0===i[e]&&r.remove(e)}));var r,i}},7791:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){i=[]},t.log=function(){},t.handleBlur=l,t.handleFocus=c,t.markForFocusLater=function(){i.push(document.activeElement)},t.returnFocus=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=null;try{return void(0!==i.length&&(t=i.pop()).focus({preventScroll:e}))}catch(e){console.warn(["You tried to return focus to",t,"but it is not in the DOM anymore"].join(" "))}},t.popWithoutFocus=function(){i.length>0&&i.pop()},t.setupScopedFocus=function(e){s=e,window.addEventListener?(window.addEventListener("blur",l,!1),document.addEventListener("focus",c,!0)):(window.attachEvent("onBlur",l),document.attachEvent("onFocus",c))},t.teardownScopedFocus=function(){s=null,window.addEventListener?(window.removeEventListener("blur",l),document.removeEventListener("focus",c)):(window.detachEvent("onBlur",l),document.detachEvent("onFocus",c))};var o,r=(o=n(2411))&&o.__esModule?o:{default:o},i=[],s=null,a=!1;function l(){a=!0}function c(){if(a){if(a=!1,!s)return;setTimeout((function(){s.contains(document.activeElement)||((0,r.default)(s)[0]||s).focus()}),0)}}},9628:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.log=function(){console.log("portalOpenInstances ----------"),console.log(o.openInstances.length),o.openInstances.forEach((function(e){return console.log(e)})),console.log("end portalOpenInstances ----------")},t.resetState=function(){o=new n};var n=function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.register=function(e){-1===t.openInstances.indexOf(e)&&(t.openInstances.push(e),t.emit("register"))},this.deregister=function(e){var n=t.openInstances.indexOf(e);-1!==n&&(t.openInstances.splice(n,1),t.emit("deregister"))},this.subscribe=function(e){t.subscribers.push(e)},this.emit=function(e){t.subscribers.forEach((function(n){return n(e,t.openInstances.slice())}))},this.openInstances=[],this.subscribers=[]},o=new n;t.default=o},834:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canUseDOM=t.SafeNodeList=t.SafeHTMLCollection=void 0;var o,r=((o=n(411))&&o.__esModule?o:{default:o}).default,i=r.canUseDOM?window.HTMLElement:{};t.SafeHTMLCollection=r.canUseDOM?window.HTMLCollection:{},t.SafeNodeList=r.canUseDOM?window.NodeList:{},t.canUseDOM=r.canUseDOM,t.default=i},7067:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,r.default)(e);if(n.length){var o=void 0,s=t.shiftKey,a=n[0],l=n[n.length-1],c=i();if(e===c){if(!s)return;o=l}if(l!==c||s||(o=a),a===c&&s&&(o=l),o)return t.preventDefault(),void o.focus();var u=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null!=u&&"Chrome"!=u[1]&&null==/\biPod\b|\biPad\b/g.exec(navigator.userAgent)){var d=n.indexOf(c);if(d>-1&&(d+=s?-1:1),void 0===(o=n[d]))return t.preventDefault(),void(o=s?l:a).focus();t.preventDefault(),o.focus()}}else t.preventDefault()};var o,r=(o=n(2411))&&o.__esModule?o:{default:o};function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return e.activeElement.shadowRoot?i(e.activeElement.shadowRoot):e.activeElement}e.exports=t.default},2411:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){return[].slice.call(t.querySelectorAll("*"),0).reduce((function(t,n){return t.concat(n.shadowRoot?e(n.shadowRoot):[n])}),[]).filter(s)};var n="none",o="contents",r=/input|select|textarea|button|object|iframe/;function i(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;try{var r=window.getComputedStyle(e),i=r.getPropertyValue("display");return t?i!==o&&function(e,t){return"visible"!==t.getPropertyValue("overflow")||e.scrollWidth<=0&&e.scrollHeight<=0}(e,r):i===n}catch(e){return console.warn("Failed to inspect element style"),!1}}function s(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var n=isNaN(t);return(n||t>=0)&&function(e,t){var n=e.nodeName.toLowerCase();return(r.test(n)&&!e.disabled||"a"===n&&e.href||t)&&function(e){for(var t=e,n=e.getRootNode&&e.getRootNode();t&&t!==document.body;){if(n&&t===n&&(t=n.host.parentNode),i(t))return!1;t=t.parentNode}return!0}(e)}(e,!n)}e.exports=t.default},312:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r=(o=n(1720))&&o.__esModule?o:{default:o};t.default=r.default,e.exports=t.default},4210:(e,t,n)=>{"use strict";function o(e,t,n,o,r,i,s){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=o,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}const r={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach((e=>{r[e]=new o(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((([e,t])=>{r[e]=new o(e,1,!1,t,null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((e=>{r[e]=new o(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((e=>{r[e]=new o(e,2,!1,e,null,!1,!1)})),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach((e=>{r[e]=new o(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((e=>{r[e]=new o(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((e=>{r[e]=new o(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((e=>{r[e]=new o(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((e=>{r[e]=new o(e,5,!1,e.toLowerCase(),null,!1,!1)}));const i=/[\-\:]([a-z])/g,s=e=>e[1].toUpperCase();["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach((e=>{const t=e.replace(i,s);r[t]=new o(t,1,!1,e,null,!1,!1)})),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach((e=>{const t=e.replace(i,s);r[t]=new o(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((e=>{const t=e.replace(i,s);r[t]=new o(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((e=>{r[e]=new o(e,1,!1,e.toLowerCase(),null,!1,!1)})),r.xlinkHref=new o("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((e=>{r[e]=new o(e,1,!1,e.toLowerCase(),null,!0,!0)}));const{CAMELCASE:a,SAME:l,possibleStandardNames:c}=n(6811),u=RegExp.prototype.test.bind(new RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")),d=Object.keys(c).reduce(((e,t)=>{const n=c[t];return n===l?e[t]=t:n===a?e[t.toLowerCase()]=t:e[t]=n,e}),{});t.BOOLEAN=3,t.BOOLEANISH_STRING=2,t.NUMERIC=5,t.OVERLOADED_BOOLEAN=4,t.POSITIVE_NUMERIC=6,t.RESERVED=0,t.STRING=1,t.getPropertyInfo=function(e){return r.hasOwnProperty(e)?r[e]:null},t.isCustomAttribute=u,t.possibleStandardNames=d},6811:(e,t)=>{t.SAME=0,t.CAMELCASE=1,t.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}},5229:function(e,t,n){"use strict";var o=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n(1133)),r=n(8917);function i(e,t){var n={};return e&&"string"==typeof e?((0,o.default)(e,(function(e,o){e&&o&&(n[(0,r.camelCase)(e,t)]=o)})),n):n}i.default=i,e.exports=i},8917:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=void 0;var n=/^--[a-zA-Z0-9-]+$/,o=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,a=function(e,t){return t.toUpperCase()},l=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||r.test(e)||n.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(s,l):e.replace(i,l)).replace(o,a))}},1133:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(9788));t.default=function(e,t){var n=null;if(!e||"string"!=typeof e)return n;var o=(0,r.default)(e),i="function"==typeof t;return o.forEach((function(e){if("declaration"===e.type){var o=e.property,r=e.value;i?t(o,r,e):r&&((n=n||{})[o]=r)}})),n}},9771:e=>{"use strict";e.exports=function(){}},1609:e=>{"use strict";e.exports=window.React},5795:e=>{"use strict";e.exports=window.ReactDOM},6942:(e,t)=>{var n;!function(){"use strict";var o={}.hasOwnProperty;function r(){for(var e="",t=0;t{if(!n){var s=1/0;for(u=0;u=i)&&Object.keys(o.O).every((e=>o.O[e](n[l])))?n.splice(l--,1):(a=!1,i0&&e[u-1][2]>i;u--)e[u]=e[u-1];e[u]=[n,r,i]},o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={105:0,149:0};o.O.j=t=>0===e[t];var t=(t,n)=>{var r,i,[s,a,l]=n,c=0;if(s.some((t=>0!==e[t]))){for(r in a)o.o(a,r)&&(o.m[r]=a[r]);if(l)var u=l(o)}for(t&&t(n);co(6383)));r=o.O(r)})(); \ No newline at end of file diff --git a/build/blocks/online-event/index.asset.php b/build/blocks/online-event/index.asset.php index e8b511b73..5b1018dcb 100644 --- a/build/blocks/online-event/index.asset.php +++ b/build/blocks/online-event/index.asset.php @@ -1 +1 @@ - array('react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => '22c4d9952ae84d4f8973'); + array('react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => 'ff0e9054014152ff4254'); diff --git a/build/blocks/online-event/index.js b/build/blocks/online-event/index.js index a6b5f484d..004b36b61 100644 --- a/build/blocks/online-event/index.js +++ b/build/blocks/online-event/index.js @@ -1 +1 @@ -(()=>{var e,t={663:(e,t,n)=>{"use strict";const o=window.wp.blocks,r=window.React,l=window.wp.blockEditor,i=window.wp.components,s=window.wp.data,c=Math.min,a=Math.max,u=Math.round,d=Math.floor,f=e=>({x:e,y:e}),p={left:"right",right:"left",bottom:"top",top:"bottom"},m={start:"end",end:"start"};function v(e,t,n){return a(e,c(t,n))}function h(e,t){return"function"==typeof e?e(t):e}function y(e){return e.split("-")[0]}function g(e){return e.split("-")[1]}function w(e){return"x"===e?"y":"x"}function b(e){return"y"===e?"height":"width"}function x(e){return["top","bottom"].includes(y(e))?"y":"x"}function E(e){return w(x(e))}function _(e){return e.replace(/start|end/g,(e=>m[e]))}function S(e){return e.replace(/left|right|bottom|top/g,(e=>p[e]))}function k(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function A(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function O(e,t,n){let{reference:o,floating:r}=e;const l=x(t),i=E(t),s=b(i),c=y(t),a="y"===l,u=o.x+o.width/2-r.width/2,d=o.y+o.height/2-r.height/2,f=o[s]/2-r[s]/2;let p;switch(c){case"top":p={x:u,y:o.y-r.height};break;case"bottom":p={x:u,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:d};break;case"left":p={x:o.x-r.width,y:d};break;default:p={x:o.x,y:o.y}}switch(g(t)){case"start":p[i]-=f*(n&&a?-1:1);break;case"end":p[i]+=f*(n&&a?-1:1)}return p}async function T(e,t){var n;void 0===t&&(t={});const{x:o,y:r,platform:l,rects:i,elements:s,strategy:c}=e,{boundary:a="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=h(t,e),m=k(p),v=s[f?"floating"===d?"reference":"floating":d],y=A(await l.getClippingRect({element:null==(n=await(null==l.isElement?void 0:l.isElement(v)))||n?v:v.contextElement||await(null==l.getDocumentElement?void 0:l.getDocumentElement(s.floating)),boundary:a,rootBoundary:u,strategy:c})),g="floating"===d?{...i.floating,x:o,y:r}:i.reference,w=await(null==l.getOffsetParent?void 0:l.getOffsetParent(s.floating)),b=await(null==l.isElement?void 0:l.isElement(w))&&await(null==l.getScale?void 0:l.getScale(w))||{x:1,y:1},x=A(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:g,offsetParent:w,strategy:c}):g);return{top:(y.top-x.top+m.top)/b.y,bottom:(x.bottom-y.bottom+m.bottom)/b.y,left:(y.left-x.left+m.left)/b.x,right:(x.right-y.right+m.right)/b.x}}const R=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:l,placement:i,middlewareData:s}=t,c=await async function(e,t){const{placement:n,platform:o,elements:r}=e,l=await(null==o.isRTL?void 0:o.isRTL(r.floating)),i=y(n),s=g(n),c="y"===x(n),a=["left","top"].includes(i)?-1:1,u=l&&c?-1:1,d=h(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&"number"==typeof m&&(p="end"===s?-1*m:m),c?{x:p*u,y:f*a}:{x:f*a,y:p*u}}(t,e);return i===(null==(n=s.offset)?void 0:n.placement)&&null!=(o=s.arrow)&&o.alignmentOffset?{}:{x:r+c.x,y:l+c.y,data:{...c,placement:i}}}}};function L(e){return N(e)?(e.nodeName||"").toLowerCase():"#document"}function C(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function D(e){var t;return null==(t=(N(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function N(e){return e instanceof Node||e instanceof C(e).Node}function P(e){return e instanceof Element||e instanceof C(e).Element}function j(e){return e instanceof HTMLElement||e instanceof C(e).HTMLElement}function I(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof C(e).ShadowRoot)}function $(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=W(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(r)}function B(e){return["table","td","th"].includes(L(e))}function F(e){const t=H(),n=W(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function H(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function z(e){return["html","body","#document"].includes(L(e))}function W(e){return C(e).getComputedStyle(e)}function M(e){return P(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function V(e){if("html"===L(e))return e;const t=e.assignedSlot||e.parentNode||I(e)&&e.host||D(e);return I(t)?t.host:t}function q(e){const t=V(e);return z(t)?e.ownerDocument?e.ownerDocument.body:e.body:j(t)&&$(t)?t:q(t)}function K(e,t,n){var o;void 0===t&&(t=[]),void 0===n&&(n=!0);const r=q(e),l=r===(null==(o=e.ownerDocument)?void 0:o.body),i=C(r);return l?t.concat(i,i.visualViewport||[],$(r)?r:[],i.frameElement&&n?K(i.frameElement):[]):t.concat(r,K(r,[],n))}function X(e){const t=W(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=j(e),l=r?e.offsetWidth:n,i=r?e.offsetHeight:o,s=u(n)!==l||u(o)!==i;return s&&(n=l,o=i),{width:n,height:o,$:s}}function G(e){return P(e)?e:e.contextElement}function Y(e){const t=G(e);if(!j(t))return f(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:l}=X(t);let i=(l?u(n.width):n.width)/o,s=(l?u(n.height):n.height)/r;return i&&Number.isFinite(i)||(i=1),s&&Number.isFinite(s)||(s=1),{x:i,y:s}}const U=f(0);function Z(e){const t=C(e);return H()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:U}function J(e,t,n,o){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=e.getBoundingClientRect(),l=G(e);let i=f(1);t&&(o?P(o)&&(i=Y(o)):i=Y(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==C(e))&&t}(l,n,o)?Z(l):f(0);let c=(r.left+s.x)/i.x,a=(r.top+s.y)/i.y,u=r.width/i.x,d=r.height/i.y;if(l){const e=C(l),t=o&&P(o)?C(o):o;let n=e,r=n.frameElement;for(;r&&o&&t!==n;){const e=Y(r),t=r.getBoundingClientRect(),o=W(r),l=t.left+(r.clientLeft+parseFloat(o.paddingLeft))*e.x,i=t.top+(r.clientTop+parseFloat(o.paddingTop))*e.y;c*=e.x,a*=e.y,u*=e.x,d*=e.y,c+=l,a+=i,n=C(r),r=n.frameElement}}return A({width:u,height:d,x:c,y:a})}const Q=[":popover-open",":modal"];function ee(e){return Q.some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function te(e){return J(D(e)).left+M(e).scrollLeft}function ne(e,t,n){let o;if("viewport"===t)o=function(e,t){const n=C(e),o=D(e),r=n.visualViewport;let l=o.clientWidth,i=o.clientHeight,s=0,c=0;if(r){l=r.width,i=r.height;const e=H();(!e||e&&"fixed"===t)&&(s=r.offsetLeft,c=r.offsetTop)}return{width:l,height:i,x:s,y:c}}(e,n);else if("document"===t)o=function(e){const t=D(e),n=M(e),o=e.ownerDocument.body,r=a(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),l=a(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let i=-n.scrollLeft+te(e);const s=-n.scrollTop;return"rtl"===W(o).direction&&(i+=a(t.clientWidth,o.clientWidth)-r),{width:r,height:l,x:i,y:s}}(D(e));else if(P(t))o=function(e,t){const n=J(e,!0,"fixed"===t),o=n.top+e.clientTop,r=n.left+e.clientLeft,l=j(e)?Y(e):f(1);return{width:e.clientWidth*l.x,height:e.clientHeight*l.y,x:r*l.x,y:o*l.y}}(t,n);else{const n=Z(e);o={...t,x:t.x-n.x,y:t.y-n.y}}return A(o)}function oe(e,t){const n=V(e);return!(n===t||!P(n)||z(n))&&("fixed"===W(n).position||oe(n,t))}function re(e,t,n){const o=j(t),r=D(t),l="fixed"===n,i=J(e,!0,l,t);let s={scrollLeft:0,scrollTop:0};const c=f(0);if(o||!o&&!l)if(("body"!==L(t)||$(r))&&(s=M(t)),o){const e=J(t,!0,l,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else r&&(c.x=te(r));return{x:i.left+s.scrollLeft-c.x,y:i.top+s.scrollTop-c.y,width:i.width,height:i.height}}function le(e,t){return j(e)&&"fixed"!==W(e).position?t?t(e):e.offsetParent:null}function ie(e,t){const n=C(e);if(!j(e)||ee(e))return n;let o=le(e,t);for(;o&&B(o)&&"static"===W(o).position;)o=le(o,t);return o&&("html"===L(o)||"body"===L(o)&&"static"===W(o).position&&!F(o))?n:o||function(e){let t=V(e);for(;j(t)&&!z(t);){if(F(t))return t;t=V(t)}return null}(e)||n}const se={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const l="fixed"===r,i=D(o),s=!!t&&ee(t.floating);if(o===i||s&&l)return n;let c={scrollLeft:0,scrollTop:0},a=f(1);const u=f(0),d=j(o);if((d||!d&&!l)&&(("body"!==L(o)||$(i))&&(c=M(o)),j(o))){const e=J(o);a=Y(o),u.x=e.x+o.clientLeft,u.y=e.y+o.clientTop}return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-c.scrollLeft*a.x+u.x,y:n.y*a.y-c.scrollTop*a.y+u.y}},getDocumentElement:D,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const l=[..."clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let o=K(e,[],!1).filter((e=>P(e)&&"body"!==L(e))),r=null;const l="fixed"===W(e).position;let i=l?V(e):e;for(;P(i)&&!z(i);){const t=W(i),n=F(i);n||"fixed"!==t.position||(r=null),(l?!n&&!r:!n&&"static"===t.position&&r&&["absolute","fixed"].includes(r.position)||$(i)&&!n&&oe(e,i))?o=o.filter((e=>e!==i)):r=t,i=V(i)}return t.set(e,o),o}(t,this._c):[].concat(n),o],i=l[0],s=l.reduce(((e,n)=>{const o=ne(t,n,r);return e.top=a(o.top,e.top),e.right=c(o.right,e.right),e.bottom=c(o.bottom,e.bottom),e.left=a(o.left,e.left),e}),ne(t,i,r));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:ie,getElementRects:async function(e){const t=this.getOffsetParent||ie,n=this.getDimensions;return{reference:re(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,...await n(e.floating)}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=X(e);return{width:t,height:n}},getScale:Y,isElement:P,isRTL:function(e){return"rtl"===W(e).direction}};const ce=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:l=!0,crossAxis:i=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=h(e,t),a={x:n,y:o},u=await T(t,c),d=x(y(r)),f=w(d);let p=a[f],m=a[d];if(l){const e="y"===f?"bottom":"right";p=v(p+u["y"===f?"top":"left"],p,p-u[e])}if(i){const e="y"===d?"bottom":"right";m=v(m+u["y"===d?"top":"left"],m,m-u[e])}const g=s.fn({...t,[f]:p,[d]:m});return{...g,data:{x:g.x-n,y:g.y-o}}}}},ae=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:l,rects:i,initialPlacement:s,platform:c,elements:a}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:v=!0,...w}=h(e,t);if(null!=(n=l.arrow)&&n.alignmentOffset)return{};const x=y(r),k=y(s)===s,A=await(null==c.isRTL?void 0:c.isRTL(a.floating)),O=f||(k||!v?[S(s)]:function(e){const t=S(e);return[_(e),t,_(t)]}(s));f||"none"===m||O.push(...function(e,t,n,o){const r=g(e);let l=function(e,t,n){const o=["left","right"],r=["right","left"],l=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?r:o:t?o:r;case"left":case"right":return t?l:i;default:return[]}}(y(e),"start"===n,o);return r&&(l=l.map((e=>e+"-"+r)),t&&(l=l.concat(l.map(_)))),l}(s,v,m,A));const R=[s,...O],L=await T(t,w),C=[];let D=(null==(o=l.flip)?void 0:o.overflows)||[];if(u&&C.push(L[x]),d){const e=function(e,t,n){void 0===n&&(n=!1);const o=g(e),r=E(e),l=b(r);let i="x"===r?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[l]>t.floating[l]&&(i=S(i)),[i,S(i)]}(r,i,A);C.push(L[e[0]],L[e[1]])}if(D=[...D,{placement:r,overflows:C}],!C.every((e=>e<=0))){var N,P;const e=((null==(N=l.flip)?void 0:N.index)||0)+1,t=R[e];if(t)return{data:{index:e,overflows:D},reset:{placement:t}};let n=null==(P=D.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:P.placement;if(!n)switch(p){case"bestFit":{var j;const e=null==(j=D.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:j[0];e&&(n=e);break}case"initialPlacement":n=s}if(r!==n)return{reset:{placement:n}}}return{}}}},ue=(e,t,n)=>{const o=new Map,r={platform:se,...n},l={...r.platform,_c:o};return(async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:l=[],platform:i}=n,s=l.filter(Boolean),c=await(null==i.isRTL?void 0:i.isRTL(t));let a=await i.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:d}=O(a,o,c),f=o,p={},m=0;for(let n=0;n{if(!e)return{tooltipStyles:{},tooltipArrowStyles:{},place:o};if(null===t)return{tooltipStyles:{},tooltipArrowStyles:{},place:o};const a=i;return n?(a.push({name:"arrow",options:u={element:n,padding:5},async fn(e){const{x:t,y:n,placement:o,rects:r,platform:l,elements:i,middlewareData:s}=e,{element:a,padding:d=0}=h(u,e)||{};if(null==a)return{};const f=k(d),p={x:t,y:n},m=E(o),y=b(m),w=await l.getDimensions(a),x="y"===m,_=x?"top":"left",S=x?"bottom":"right",A=x?"clientHeight":"clientWidth",O=r.reference[y]+r.reference[m]-p[m]-r.floating[y],T=p[m]-r.reference[m],R=await(null==l.getOffsetParent?void 0:l.getOffsetParent(a));let L=R?R[A]:0;L&&await(null==l.isElement?void 0:l.isElement(R))||(L=i.floating[A]||r.floating[y]);const C=O/2-T/2,D=L/2-w[y]/2-1,N=c(f[_],D),P=c(f[S],D),j=N,I=L-w[y]-P,$=L/2-w[y]/2+C,B=v(j,$,I),F=!s.arrow&&null!=g(o)&&$!==B&&r.reference[y]/2-(${var r,l;const i={left:`${e}px`,top:`${t}px`,border:s},{x:c,y:a}=null!==(r=o.arrow)&&void 0!==r?r:{x:0,y:0},u=null!==(l={top:"bottom",right:"left",bottom:"top",left:"right"}[n.split("-")[0]])&&void 0!==l?l:"bottom",d=s&&{borderBottom:s,borderRight:s};let f=0;if(s){const e=`${s}`.match(/(\d+)px/);f=(null==e?void 0:e[1])?Number(e[1]):1}return{tooltipStyles:i,tooltipArrowStyles:{left:null!=c?`${c}px`:"",top:null!=a?`${a}px`:"",right:"",bottom:"",...d,[u]:`-${4+f}px`},place:n}}))):ue(e,t,{placement:"bottom",strategy:l,middleware:a}).then((({x:e,y:t,placement:n})=>({tooltipStyles:{left:`${e}px`,top:`${t}px`},tooltipArrowStyles:{},place:n})));var u},ve=(e,t)=>!("CSS"in window&&"supports"in window.CSS)||window.CSS.supports(e,t),he=(e,t,n)=>{let o=null;const r=function(...r){const l=()=>{o=null,n||e.apply(this,r)};n&&!o&&(e.apply(this,r),o=setTimeout(l,t)),n||(o&&clearTimeout(o),o=setTimeout(l,t))};return r.cancel=()=>{o&&(clearTimeout(o),o=null)},r},ye=e=>null!==e&&!Array.isArray(e)&&"object"==typeof e,ge=(e,t)=>{if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&e.every(((e,n)=>ge(e,t[n])));if(Array.isArray(e)!==Array.isArray(t))return!1;if(!ye(e)||!ye(t))return e===t;const n=Object.keys(e),o=Object.keys(t);return n.length===o.length&&n.every((n=>ge(e[n],t[n])))},we=e=>{if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;const t=getComputedStyle(e);return["overflow","overflow-x","overflow-y"].some((e=>{const n=t.getPropertyValue(e);return"auto"===n||"scroll"===n}))},be=e=>{if(!e)return null;let t=e.parentElement;for(;t;){if(we(t))return t;t=t.parentElement}return document.scrollingElement||document.documentElement},xe="undefined"!=typeof window?r.useLayoutEffect:r.useEffect,Ee={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},_e=(0,r.createContext)({getTooltipData:()=>Ee});function Se(e="DEFAULT_TOOLTIP_ID"){return(0,r.useContext)(_e).getTooltipData(e)}var ke={tooltip:"core-styles-module_tooltip__3vRRp",fixed:"core-styles-module_fixed__pcSol",arrow:"core-styles-module_arrow__cvMwQ",noArrow:"core-styles-module_noArrow__xock6",clickable:"core-styles-module_clickable__ZuTTB",show:"core-styles-module_show__Nt9eE",closing:"core-styles-module_closing__sGnxF"},Ae={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const Oe=({forwardRef:e,id:t,className:n,classNameArrow:o,variant:l="dark",anchorId:i,anchorSelect:s,place:u="top",offset:f=10,events:p=["hover"],openOnClick:m=!1,positionStrategy:v="absolute",middlewares:h,wrapper:y,delayShow:g=0,delayHide:w=0,float:b=!1,hidden:x=!1,noArrow:E=!1,clickable:_=!1,closeOnEsc:S=!1,closeOnScroll:k=!1,closeOnResize:A=!1,openEvents:O,closeEvents:T,globalCloseEvents:R,imperativeModeOnly:L,style:C,position:N,afterShow:P,afterHide:j,content:I,contentWrapperRef:$,isOpen:B,defaultIsOpen:F=!1,setIsOpen:H,activeAnchor:z,setActiveAnchor:W,border:M,opacity:V,arrowColor:q,role:X="tooltip"})=>{var Y;const U=(0,r.useRef)(null),Z=(0,r.useRef)(null),Q=(0,r.useRef)(null),ee=(0,r.useRef)(null),te=(0,r.useRef)(null),[ne,oe]=(0,r.useState)({tooltipStyles:{},tooltipArrowStyles:{},place:u}),[re,le]=(0,r.useState)(!1),[ie,se]=(0,r.useState)(!1),[ce,ae]=(0,r.useState)(null),ue=(0,r.useRef)(!1),fe=(0,r.useRef)(null),{anchorRefs:pe,setActiveAnchor:ve}=Se(t),ye=(0,r.useRef)(!1),[we,Ee]=(0,r.useState)([]),_e=(0,r.useRef)(!1),Oe=m||p.includes("click"),Te=Oe||(null==O?void 0:O.click)||(null==O?void 0:O.dblclick)||(null==O?void 0:O.mousedown),Re=O?{...O}:{mouseenter:!0,focus:!0,click:!1,dblclick:!1,mousedown:!1};!O&&Oe&&Object.assign(Re,{mouseenter:!1,focus:!1,click:!0});const Le=T?{...T}:{mouseleave:!0,blur:!0,click:!1,dblclick:!1,mouseup:!1};!T&&Oe&&Object.assign(Le,{mouseleave:!1,blur:!1});const Ce=R?{...R}:{escape:S||!1,scroll:k||!1,resize:A||!1,clickOutsideAnchor:Te||!1};L&&(Object.assign(Re,{mouseenter:!1,focus:!1,click:!1,dblclick:!1,mousedown:!1}),Object.assign(Le,{mouseleave:!1,blur:!1,click:!1,dblclick:!1,mouseup:!1}),Object.assign(Ce,{escape:!1,scroll:!1,resize:!1,clickOutsideAnchor:!1})),xe((()=>(_e.current=!0,()=>{_e.current=!1})),[]);const De=e=>{_e.current&&(e&&se(!0),setTimeout((()=>{_e.current&&(null==H||H(e),void 0===B&&le(e))}),10))};(0,r.useEffect)((()=>{if(void 0===B)return()=>null;B&&se(!0);const e=setTimeout((()=>{le(B)}),10);return()=>{clearTimeout(e)}}),[B]),(0,r.useEffect)((()=>{if(re!==ue.current)if(te.current&&clearTimeout(te.current),ue.current=re,re)null==P||P();else{const e=(e=>{const t=getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay").match(/^([\d.]+)(ms|s)$/);if(!t)return 0;const[,n,o]=t;return Number(n)*("ms"===o?1:1e3)})();te.current=setTimeout((()=>{se(!1),ae(null),null==j||j()}),e+25)}}),[re]);const Ne=e=>{oe((t=>ge(t,e)?t:e))},Pe=(e=g)=>{Q.current&&clearTimeout(Q.current),ie?De(!0):Q.current=setTimeout((()=>{De(!0)}),e)},je=(e=w)=>{ee.current&&clearTimeout(ee.current),ee.current=setTimeout((()=>{ye.current||De(!1)}),e)},Ie=e=>{var t;if(!e)return;const n=null!==(t=e.currentTarget)&&void 0!==t?t:e.target;if(!(null==n?void 0:n.isConnected))return W(null),void ve({current:null});g?Pe():De(!0),W(n),ve({current:n}),ee.current&&clearTimeout(ee.current)},$e=()=>{_?je(w||100):w?je():De(!1),Q.current&&clearTimeout(Q.current)},Be=({x:e,y:t})=>{var n;const o={getBoundingClientRect:()=>({x:e,y:t,width:0,height:0,top:t,left:e,right:e,bottom:t})};me({place:null!==(n=null==ce?void 0:ce.place)&&void 0!==n?n:u,offset:f,elementReference:o,tooltipReference:U.current,tooltipArrowReference:Z.current,strategy:v,middlewares:h,border:M}).then((e=>{Ne(e)}))},Fe=e=>{if(!e)return;const t=e,n={x:t.clientX,y:t.clientY};Be(n),fe.current=n},He=e=>{var t;if(!re)return;const n=e.target;n.isConnected&&((null===(t=U.current)||void 0===t?void 0:t.contains(n))||[document.querySelector(`[id='${i}']`),...we].some((e=>null==e?void 0:e.contains(n)))||(De(!1),Q.current&&clearTimeout(Q.current)))},ze=he(Ie,50,!0),We=he($e,50,!0),Me=e=>{We.cancel(),ze(e)},Ve=()=>{ze.cancel(),We()},qe=(0,r.useCallback)((()=>{var e,t;const n=null!==(e=null==ce?void 0:ce.position)&&void 0!==e?e:N;n?Be(n):b?fe.current&&Be(fe.current):(null==z?void 0:z.isConnected)&&me({place:null!==(t=null==ce?void 0:ce.place)&&void 0!==t?t:u,offset:f,elementReference:z,tooltipReference:U.current,tooltipArrowReference:Z.current,strategy:v,middlewares:h,border:M}).then((e=>{_e.current&&Ne(e)}))}),[re,z,I,C,u,null==ce?void 0:ce.place,f,v,N,null==ce?void 0:ce.position,b]);(0,r.useEffect)((()=>{var e,t;const n=new Set(pe);we.forEach((e=>{n.add({current:e})}));const o=document.querySelector(`[id='${i}']`);o&&n.add({current:o});const r=()=>{De(!1)},l=be(z),s=be(U.current);Ce.scroll&&(window.addEventListener("scroll",r),null==l||l.addEventListener("scroll",r),null==s||s.addEventListener("scroll",r));let u=null;Ce.resize?window.addEventListener("resize",r):z&&U.current&&(u=function(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:l=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:u=!1}=o,f=G(e),p=r||l?[...f?K(f):[],...K(t)]:[];p.forEach((e=>{r&&e.addEventListener("scroll",n,{passive:!0}),l&&e.addEventListener("resize",n)}));const m=f&&s?function(e,t){let n,o=null;const r=D(e);function l(){var e;clearTimeout(n),null==(e=o)||e.disconnect(),o=null}return function i(s,u){void 0===s&&(s=!1),void 0===u&&(u=1),l();const{left:f,top:p,width:m,height:v}=e.getBoundingClientRect();if(s||t(),!m||!v)return;const h={rootMargin:-d(p)+"px "+-d(r.clientWidth-(f+m))+"px "+-d(r.clientHeight-(p+v))+"px "+-d(f)+"px",threshold:a(0,c(1,u))||1};let y=!0;function g(e){const t=e[0].intersectionRatio;if(t!==u){if(!y)return i();t?i(!1,t):n=setTimeout((()=>{i(!1,1e-7)}),100)}y=!1}try{o=new IntersectionObserver(g,{...h,root:r.ownerDocument})}catch(e){o=new IntersectionObserver(g,h)}o.observe(e)}(!0),l}(f,n):null;let v,h=-1,y=null;i&&(y=new ResizeObserver((e=>{let[o]=e;o&&o.target===f&&y&&(y.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame((()=>{var e;null==(e=y)||e.observe(t)}))),n()})),f&&!u&&y.observe(f),y.observe(t));let g=u?J(e):null;return u&&function t(){const o=J(e);!g||o.x===g.x&&o.y===g.y&&o.width===g.width&&o.height===g.height||n(),g=o,v=requestAnimationFrame(t)}(),n(),()=>{var e;p.forEach((e=>{r&&e.removeEventListener("scroll",n),l&&e.removeEventListener("resize",n)})),null==m||m(),null==(e=y)||e.disconnect(),y=null,u&&cancelAnimationFrame(v)}}(z,U.current,qe,{ancestorResize:!0,elementResize:!0,layoutShift:!0}));const f=e=>{"Escape"===e.key&&De(!1)};Ce.escape&&window.addEventListener("keydown",f),Ce.clickOutsideAnchor&&window.addEventListener("click",He);const p=[],m=e=>{re&&(null==e?void 0:e.target)===z||Ie(e)},v=e=>{re&&(null==e?void 0:e.target)===z&&$e()},h=["mouseenter","mouseleave","focus","blur"],y=["click","dblclick","mousedown","mouseup"];Object.entries(Re).forEach((([e,t])=>{t&&(h.includes(e)?p.push({event:e,listener:Me}):y.includes(e)&&p.push({event:e,listener:m}))})),Object.entries(Le).forEach((([e,t])=>{t&&(h.includes(e)?p.push({event:e,listener:Ve}):y.includes(e)&&p.push({event:e,listener:v}))})),b&&p.push({event:"pointermove",listener:Fe});const g=()=>{ye.current=!0},w=()=>{ye.current=!1,$e()};return _&&!Te&&(null===(e=U.current)||void 0===e||e.addEventListener("mouseenter",g),null===(t=U.current)||void 0===t||t.addEventListener("mouseleave",w)),p.forEach((({event:e,listener:t})=>{n.forEach((n=>{var o;null===(o=n.current)||void 0===o||o.addEventListener(e,t)}))})),()=>{var e,t;Ce.scroll&&(window.removeEventListener("scroll",r),null==l||l.removeEventListener("scroll",r),null==s||s.removeEventListener("scroll",r)),Ce.resize?window.removeEventListener("resize",r):null==u||u(),Ce.clickOutsideAnchor&&window.removeEventListener("click",He),Ce.escape&&window.removeEventListener("keydown",f),_&&!Te&&(null===(e=U.current)||void 0===e||e.removeEventListener("mouseenter",g),null===(t=U.current)||void 0===t||t.removeEventListener("mouseleave",w)),p.forEach((({event:e,listener:t})=>{n.forEach((n=>{var o;null===(o=n.current)||void 0===o||o.removeEventListener(e,t)}))}))}}),[z,qe,ie,pe,we,O,T,R,Oe,g,w]),(0,r.useEffect)((()=>{var e,n;let o=null!==(n=null!==(e=null==ce?void 0:ce.anchorSelect)&&void 0!==e?e:s)&&void 0!==n?n:"";!o&&t&&(o=`[data-tooltip-id='${t}']`);const r=new MutationObserver((e=>{const n=[],r=[];e.forEach((e=>{if("attributes"===e.type&&"data-tooltip-id"===e.attributeName&&(e.target.getAttribute("data-tooltip-id")===t?n.push(e.target):e.oldValue===t&&r.push(e.target)),"childList"===e.type){if(z){const t=[...e.removedNodes].filter((e=>1===e.nodeType));if(o)try{r.push(...t.filter((e=>e.matches(o)))),r.push(...t.flatMap((e=>[...e.querySelectorAll(o)])))}catch(e){}t.some((e=>{var t;return!!(null===(t=null==e?void 0:e.contains)||void 0===t?void 0:t.call(e,z))&&(se(!1),De(!1),W(null),Q.current&&clearTimeout(Q.current),ee.current&&clearTimeout(ee.current),!0)}))}if(o)try{const t=[...e.addedNodes].filter((e=>1===e.nodeType));n.push(...t.filter((e=>e.matches(o)))),n.push(...t.flatMap((e=>[...e.querySelectorAll(o)])))}catch(e){}}})),(n.length||r.length)&&Ee((e=>[...e.filter((e=>!r.includes(e))),...n]))}));return r.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"],attributeOldValue:!0}),()=>{r.disconnect()}}),[t,s,null==ce?void 0:ce.anchorSelect,z]),(0,r.useEffect)((()=>{qe()}),[qe]),(0,r.useEffect)((()=>{if(!(null==$?void 0:$.current))return()=>null;const e=new ResizeObserver((()=>{setTimeout((()=>qe()))}));return e.observe($.current),()=>{e.disconnect()}}),[I,null==$?void 0:$.current]),(0,r.useEffect)((()=>{var e;const t=document.querySelector(`[id='${i}']`),n=[...we,t];z&&n.includes(z)||W(null!==(e=we[0])&&void 0!==e?e:t)}),[i,we,z]),(0,r.useEffect)((()=>(F&&De(!0),()=>{Q.current&&clearTimeout(Q.current),ee.current&&clearTimeout(ee.current)})),[]),(0,r.useEffect)((()=>{var e;let n=null!==(e=null==ce?void 0:ce.anchorSelect)&&void 0!==e?e:s;if(!n&&t&&(n=`[data-tooltip-id='${t}']`),n)try{const e=Array.from(document.querySelectorAll(n));Ee(e)}catch(e){Ee([])}}),[t,s,null==ce?void 0:ce.anchorSelect]),(0,r.useEffect)((()=>{Q.current&&(clearTimeout(Q.current),Pe(g))}),[g]);const Ke=null!==(Y=null==ce?void 0:ce.content)&&void 0!==Y?Y:I,Xe=re&&Object.keys(ne.tooltipStyles).length>0;return(0,r.useImperativeHandle)(e,(()=>({open:e=>{if(null==e?void 0:e.anchorSelect)try{document.querySelector(e.anchorSelect)}catch(t){return void console.warn(`[react-tooltip] "${e.anchorSelect}" is not a valid CSS selector`)}ae(null!=e?e:null),(null==e?void 0:e.delay)?Pe(e.delay):De(!0)},close:e=>{(null==e?void 0:e.delay)?je(e.delay):De(!1)},activeAnchor:z,place:ne.place,isOpen:Boolean(ie&&!x&&Ke&&Xe)}))),ie&&!x&&Ke?r.createElement(y,{id:t,role:X,className:de("react-tooltip",ke.tooltip,Ae.tooltip,Ae[l],n,`react-tooltip__place-${ne.place}`,ke[Xe?"show":"closing"],Xe?"react-tooltip__show":"react-tooltip__closing","fixed"===v&&ke.fixed,_&&ke.clickable),onTransitionEnd:e=>{te.current&&clearTimeout(te.current),re||"opacity"!==e.propertyName||(se(!1),ae(null),null==j||j())},style:{...C,...ne.tooltipStyles,opacity:void 0!==V&&Xe?V:void 0},ref:U},Ke,r.createElement(y,{className:de("react-tooltip-arrow",ke.arrow,Ae.arrow,o,E&&ke.noArrow),style:{...ne.tooltipArrowStyles,background:q?`linear-gradient(to right bottom, transparent 50%, ${q} 50%)`:void 0},ref:Z})):null},Te=({content:e})=>r.createElement("span",{dangerouslySetInnerHTML:{__html:e}}),Re=r.forwardRef((({id:e,anchorId:t,anchorSelect:n,content:o,html:l,render:i,className:s,classNameArrow:c,variant:a="dark",place:u="top",offset:d=10,wrapper:f="div",children:p=null,events:m=["hover"],openOnClick:v=!1,positionStrategy:h="absolute",middlewares:y,delayShow:g=0,delayHide:w=0,float:b=!1,hidden:x=!1,noArrow:E=!1,clickable:_=!1,closeOnEsc:S=!1,closeOnScroll:k=!1,closeOnResize:A=!1,openEvents:O,closeEvents:T,globalCloseEvents:R,imperativeModeOnly:L=!1,style:C,position:D,isOpen:N,defaultIsOpen:P=!1,disableStyleInjection:j=!1,border:I,opacity:$,arrowColor:B,setIsOpen:F,afterShow:H,afterHide:z,role:W="tooltip"},M)=>{const[V,q]=(0,r.useState)(o),[K,X]=(0,r.useState)(l),[G,Y]=(0,r.useState)(u),[U,Z]=(0,r.useState)(a),[J,Q]=(0,r.useState)(d),[ee,te]=(0,r.useState)(g),[ne,oe]=(0,r.useState)(w),[re,le]=(0,r.useState)(b),[ie,se]=(0,r.useState)(x),[ce,ae]=(0,r.useState)(f),[ue,fe]=(0,r.useState)(m),[pe,me]=(0,r.useState)(h),[he,ye]=(0,r.useState)(null),[ge,we]=(0,r.useState)(null),be=(0,r.useRef)(j),{anchorRefs:xe,activeAnchor:Ee}=Se(e),_e=e=>null==e?void 0:e.getAttributeNames().reduce(((t,n)=>{var o;return n.startsWith("data-tooltip-")&&(t[n.replace(/^data-tooltip-/,"")]=null!==(o=null==e?void 0:e.getAttribute(n))&&void 0!==o?o:null),t}),{}),ke=e=>{const t={place:e=>{var t;Y(null!==(t=e)&&void 0!==t?t:u)},content:e=>{q(null!=e?e:o)},html:e=>{X(null!=e?e:l)},variant:e=>{var t;Z(null!==(t=e)&&void 0!==t?t:a)},offset:e=>{Q(null===e?d:Number(e))},wrapper:e=>{var t;ae(null!==(t=e)&&void 0!==t?t:f)},events:e=>{const t=null==e?void 0:e.split(" ");fe(null!=t?t:m)},"position-strategy":e=>{var t;me(null!==(t=e)&&void 0!==t?t:h)},"delay-show":e=>{te(null===e?g:Number(e))},"delay-hide":e=>{oe(null===e?w:Number(e))},float:e=>{le(null===e?b:"true"===e)},hidden:e=>{se(null===e?x:"true"===e)},"class-name":e=>{ye(e)}};Object.values(t).forEach((e=>e(null))),Object.entries(e).forEach((([e,n])=>{var o;null===(o=t[e])||void 0===o||o.call(t,n)}))};(0,r.useEffect)((()=>{q(o)}),[o]),(0,r.useEffect)((()=>{X(l)}),[l]),(0,r.useEffect)((()=>{Y(u)}),[u]),(0,r.useEffect)((()=>{Z(a)}),[a]),(0,r.useEffect)((()=>{Q(d)}),[d]),(0,r.useEffect)((()=>{te(g)}),[g]),(0,r.useEffect)((()=>{oe(w)}),[w]),(0,r.useEffect)((()=>{le(b)}),[b]),(0,r.useEffect)((()=>{se(x)}),[x]),(0,r.useEffect)((()=>{me(h)}),[h]),(0,r.useEffect)((()=>{be.current!==j&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")}),[j]),(0,r.useEffect)((()=>{"undefined"!=typeof window&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:"core"===j,disableBase:j}}))}),[]),(0,r.useEffect)((()=>{var o;const r=new Set(xe);let l=n;if(!l&&e&&(l=`[data-tooltip-id='${e}']`),l)try{document.querySelectorAll(l).forEach((e=>{r.add({current:e})}))}catch(o){console.warn(`[react-tooltip] "${l}" is not a valid CSS selector`)}const i=document.querySelector(`[id='${t}']`);if(i&&r.add({current:i}),!r.size)return()=>null;const s=null!==(o=null!=ge?ge:i)&&void 0!==o?o:Ee.current,c=new MutationObserver((e=>{e.forEach((e=>{var t;if(!s||"attributes"!==e.type||!(null===(t=e.attributeName)||void 0===t?void 0:t.startsWith("data-tooltip-")))return;const n=_e(s);ke(n)}))})),a={attributes:!0,childList:!1,subtree:!1};if(s){const e=_e(s);ke(e),c.observe(s,a)}return()=>{c.disconnect()}}),[xe,Ee,ge,t,n]),(0,r.useEffect)((()=>{(null==C?void 0:C.border)&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),I&&!ve("border",`${I}`)&&console.warn(`[react-tooltip] "${I}" is not a valid \`border\`.`),(null==C?void 0:C.opacity)&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),$&&!ve("opacity",`${$}`)&&console.warn(`[react-tooltip] "${$}" is not a valid \`opacity\`.`)}),[]);let Ae=p;const Re=(0,r.useRef)(null);if(i){const e=i({content:(null==ge?void 0:ge.getAttribute("data-tooltip-content"))||V||null,activeAnchor:ge});Ae=e?r.createElement("div",{ref:Re,className:"react-tooltip-content-wrapper"},e):null}else V&&(Ae=V);K&&(Ae=r.createElement(Te,{content:K}));const Le={forwardRef:M,id:e,anchorId:t,anchorSelect:n,className:de(s,he),classNameArrow:c,content:Ae,contentWrapperRef:Re,place:G,variant:U,offset:J,wrapper:ce,events:ue,openOnClick:v,positionStrategy:pe,middlewares:y,delayShow:ee,delayHide:ne,float:re,hidden:ie,noArrow:E,clickable:_,closeOnEsc:S,closeOnScroll:k,closeOnResize:A,openEvents:O,closeEvents:T,globalCloseEvents:R,imperativeModeOnly:L,style:C,position:D,isOpen:N,defaultIsOpen:P,border:I,opacity:$,arrowColor:B,setIsOpen:F,afterShow:H,afterHide:z,activeAnchor:ge,setActiveAnchor:e=>we(e),role:W};return r.createElement(Oe,{...Le})}));"undefined"!=typeof window&&window.addEventListener("react-tooltip-inject-styles",(e=>{e.detail.disableCore||pe({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in}",type:"core"}),e.detail.disableBase||pe({css:"\n.styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:8px;height:8px}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}",type:"base"})}));const Le=window.wp.i18n,Ce=window.wp.element,De=(e,t="")=>{for(const[n,o]of Object.entries(e)){let e=n;t&&(e+="_"+String(t)),addEventListener(e,(e=>{o(e.detail)}),!1)}};function Ne(e){if("object"==typeof GatherPress)return e.split(".").reduce(((e,t)=>e&&e[t]),GatherPress)}const Pe=({onlineEventLinkDefault:e=""})=>{const t=(0,Le.__)("Online event","gatherpress"),[n,o]=(0,Ce.useState)(e);return De({setOnlineEventLink:o},Ne("eventDetails.postId")),(0,r.createElement)(i.Flex,{justify:"normal",gap:"3"},(0,r.createElement)(i.FlexItem,{display:"flex"},(0,r.createElement)(i.Icon,{icon:"video-alt2"})),(0,r.createElement)(i.FlexItem,null,!n&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)("span",{tabIndex:"0",className:"gatherpress-tooltip","data-tooltip-id":"gatherpress-online-event-tooltip","data-tooltip-content":(0,Le.__)("Link available for attendees only.","gatherpress")},t),(0,r.createElement)(Re,{id:"gatherpress-online-event-tooltip"})),n&&(0,r.createElement)("a",{href:n,rel:"noreferrer",target:"_blank"},t)))},je=()=>{const{editPost:e,unlockPostSaving:t}=(0,s.useDispatch)("core/editor"),n=(0,s.useSelect)((e=>e("core/editor").getEditedPostAttribute("meta").gatherpress_online_event_link)),[o,l]=(0,Ce.useState)(n);return De({setOnlineEventLink:l},Ne("eventDetails.postId")),(0,r.createElement)(i.TextControl,{label:(0,Le.__)("Online event link","gatherpress"),value:o,placeholder:(0,Le.__)("Add link to online event","gatherpress"),onChange:n=>{(n=>{e({meta:{gatherpress_online_event_link:n}}),l(n),((e,t="")=>{for(const[n,o]of Object.entries(e)){let e=n;t&&(e+="_"+String(t));const r=new CustomEvent(e,{detail:o});dispatchEvent(r)}})({setOnlineEventLink:n},Ne("eventDetails.postId")),t()})(n)}})},Ie=e=>{const{isSelected:t}=e,n=t?"none":"block";return(0,r.createElement)("div",{style:{position:"relative"}},e.children,(0,r.createElement)("div",{style:{position:"absolute",top:"0",right:"0",bottom:"0",left:"0",display:n}}))},$e=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"gatherpress/online-event","version":"1.0.1","title":"Online Event","category":"gatherpress","icon":"video-alt2","example":{},"description":"Utilized for virtual events, offering the capability to share a direct link to an event.","attributes":{"blockId":{"type":"string"}},"supports":{"html":false},"textdomain":"gatherpress","editorScript":"file:./index.js","style":"file:./style-index.css","viewScript":"file:./online-event.js","render":"file:./render.php"}');(0,o.registerBlockType)($e,{edit:({isSelected:e})=>{const t=(0,l.useBlockProps)(),n=(0,s.useSelect)((e=>e("core/editor")?.getEditedPostAttribute("meta")?.gatherpress_online_event_link));return(0,r.createElement)(r.Fragment,null,"string"==typeof(0,s.select)("core/editor")?.getCurrentPostType()&&(0,r.createElement)(l.InspectorControls,null,(0,r.createElement)(i.PanelBody,null,(0,r.createElement)(i.PanelRow,null,(0,r.createElement)(je,null)))),(0,r.createElement)("div",{...t},(0,r.createElement)(Ie,{isSelected:e},(0,r.createElement)(Pe,{onlineEventLinkDefault:n}))))},save:()=>null})},6942:(e,t)=>{var n;!function(){"use strict";var o={}.hasOwnProperty;function r(){for(var e="",t=0;t{if(!n){var i=1/0;for(u=0;u=l)&&Object.keys(o.O).every((e=>o.O[e](n[c])))?n.splice(c--,1):(s=!1,l0&&e[u-1][2]>l;u--)e[u]=e[u-1];e[u]=[n,r,l]},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={495:0,791:0};o.O.j=t=>0===e[t];var t=(t,n)=>{var r,l,[i,s,c]=n,a=0;if(i.some((t=>0!==e[t]))){for(r in s)o.o(s,r)&&(o.m[r]=s[r]);if(c)var u=c(o)}for(t&&t(n);ao(663)));r=o.O(r)})(); \ No newline at end of file +(()=>{var e,t={663:(e,t,n)=>{"use strict";const o=window.wp.blocks,r=window.React,l=window.wp.blockEditor,i=window.wp.components,s=window.wp.data,c=Math.min,a=Math.max,u=Math.round,d=Math.floor,f=e=>({x:e,y:e}),p={left:"right",right:"left",bottom:"top",top:"bottom"},m={start:"end",end:"start"};function v(e,t,n){return a(e,c(t,n))}function h(e,t){return"function"==typeof e?e(t):e}function y(e){return e.split("-")[0]}function g(e){return e.split("-")[1]}function w(e){return"x"===e?"y":"x"}function b(e){return"y"===e?"height":"width"}function x(e){return["top","bottom"].includes(y(e))?"y":"x"}function E(e){return w(x(e))}function _(e){return e.replace(/start|end/g,(e=>m[e]))}function S(e){return e.replace(/left|right|bottom|top/g,(e=>p[e]))}function k(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function A(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function O(e,t,n){let{reference:o,floating:r}=e;const l=x(t),i=E(t),s=b(i),c=y(t),a="y"===l,u=o.x+o.width/2-r.width/2,d=o.y+o.height/2-r.height/2,f=o[s]/2-r[s]/2;let p;switch(c){case"top":p={x:u,y:o.y-r.height};break;case"bottom":p={x:u,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:d};break;case"left":p={x:o.x-r.width,y:d};break;default:p={x:o.x,y:o.y}}switch(g(t)){case"start":p[i]-=f*(n&&a?-1:1);break;case"end":p[i]+=f*(n&&a?-1:1)}return p}async function T(e,t){var n;void 0===t&&(t={});const{x:o,y:r,platform:l,rects:i,elements:s,strategy:c}=e,{boundary:a="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=h(t,e),m=k(p),v=s[f?"floating"===d?"reference":"floating":d],y=A(await l.getClippingRect({element:null==(n=await(null==l.isElement?void 0:l.isElement(v)))||n?v:v.contextElement||await(null==l.getDocumentElement?void 0:l.getDocumentElement(s.floating)),boundary:a,rootBoundary:u,strategy:c})),g="floating"===d?{x:o,y:r,width:i.floating.width,height:i.floating.height}:i.reference,w=await(null==l.getOffsetParent?void 0:l.getOffsetParent(s.floating)),b=await(null==l.isElement?void 0:l.isElement(w))&&await(null==l.getScale?void 0:l.getScale(w))||{x:1,y:1},x=A(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:g,offsetParent:w,strategy:c}):g);return{top:(y.top-x.top+m.top)/b.y,bottom:(x.bottom-y.bottom+m.bottom)/b.y,left:(y.left-x.left+m.left)/b.x,right:(x.right-y.right+m.right)/b.x}}function R(e){return D(e)?(e.nodeName||"").toLowerCase():"#document"}function L(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function C(e){var t;return null==(t=(D(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function D(e){return e instanceof Node||e instanceof L(e).Node}function N(e){return e instanceof Element||e instanceof L(e).Element}function P(e){return e instanceof HTMLElement||e instanceof L(e).HTMLElement}function j(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof L(e).ShadowRoot)}function I(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=z(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(r)}function $(e){return["table","td","th"].includes(R(e))}function B(e){const t=F(),n=z(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function F(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function H(e){return["html","body","#document"].includes(R(e))}function z(e){return L(e).getComputedStyle(e)}function W(e){return N(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function M(e){if("html"===R(e))return e;const t=e.assignedSlot||e.parentNode||j(e)&&e.host||C(e);return j(t)?t.host:t}function V(e){const t=M(e);return H(t)?e.ownerDocument?e.ownerDocument.body:e.body:P(t)&&I(t)?t:V(t)}function q(e,t,n){var o;void 0===t&&(t=[]),void 0===n&&(n=!0);const r=V(e),l=r===(null==(o=e.ownerDocument)?void 0:o.body),i=L(r);return l?t.concat(i,i.visualViewport||[],I(r)?r:[],i.frameElement&&n?q(i.frameElement):[]):t.concat(r,q(r,[],n))}function K(e){const t=z(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=P(e),l=r?e.offsetWidth:n,i=r?e.offsetHeight:o,s=u(n)!==l||u(o)!==i;return s&&(n=l,o=i),{width:n,height:o,$:s}}function X(e){return N(e)?e:e.contextElement}function G(e){const t=X(e);if(!P(t))return f(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:l}=K(t);let i=(l?u(n.width):n.width)/o,s=(l?u(n.height):n.height)/r;return i&&Number.isFinite(i)||(i=1),s&&Number.isFinite(s)||(s=1),{x:i,y:s}}const Y=f(0);function U(e){const t=L(e);return F()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Y}function Z(e,t,n,o){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=e.getBoundingClientRect(),l=X(e);let i=f(1);t&&(o?N(o)&&(i=G(o)):i=G(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==L(e))&&t}(l,n,o)?U(l):f(0);let c=(r.left+s.x)/i.x,a=(r.top+s.y)/i.y,u=r.width/i.x,d=r.height/i.y;if(l){const e=L(l),t=o&&N(o)?L(o):o;let n=e,r=n.frameElement;for(;r&&o&&t!==n;){const e=G(r),t=r.getBoundingClientRect(),o=z(r),l=t.left+(r.clientLeft+parseFloat(o.paddingLeft))*e.x,i=t.top+(r.clientTop+parseFloat(o.paddingTop))*e.y;c*=e.x,a*=e.y,u*=e.x,d*=e.y,c+=l,a+=i,n=L(r),r=n.frameElement}}return A({width:u,height:d,x:c,y:a})}const J=[":popover-open",":modal"];function Q(e){return J.some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function ee(e){return Z(C(e)).left+W(e).scrollLeft}function te(e,t,n){let o;if("viewport"===t)o=function(e,t){const n=L(e),o=C(e),r=n.visualViewport;let l=o.clientWidth,i=o.clientHeight,s=0,c=0;if(r){l=r.width,i=r.height;const e=F();(!e||e&&"fixed"===t)&&(s=r.offsetLeft,c=r.offsetTop)}return{width:l,height:i,x:s,y:c}}(e,n);else if("document"===t)o=function(e){const t=C(e),n=W(e),o=e.ownerDocument.body,r=a(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),l=a(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let i=-n.scrollLeft+ee(e);const s=-n.scrollTop;return"rtl"===z(o).direction&&(i+=a(t.clientWidth,o.clientWidth)-r),{width:r,height:l,x:i,y:s}}(C(e));else if(N(t))o=function(e,t){const n=Z(e,!0,"fixed"===t),o=n.top+e.clientTop,r=n.left+e.clientLeft,l=P(e)?G(e):f(1);return{width:e.clientWidth*l.x,height:e.clientHeight*l.y,x:r*l.x,y:o*l.y}}(t,n);else{const n=U(e);o={...t,x:t.x-n.x,y:t.y-n.y}}return A(o)}function ne(e,t){const n=M(e);return!(n===t||!N(n)||H(n))&&("fixed"===z(n).position||ne(n,t))}function oe(e,t,n){const o=P(t),r=C(t),l="fixed"===n,i=Z(e,!0,l,t);let s={scrollLeft:0,scrollTop:0};const c=f(0);if(o||!o&&!l)if(("body"!==R(t)||I(r))&&(s=W(t)),o){const e=Z(t,!0,l,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else r&&(c.x=ee(r));return{x:i.left+s.scrollLeft-c.x,y:i.top+s.scrollTop-c.y,width:i.width,height:i.height}}function re(e){return"static"===z(e).position}function le(e,t){return P(e)&&"fixed"!==z(e).position?t?t(e):e.offsetParent:null}function ie(e,t){const n=L(e);if(Q(e))return n;if(!P(e)){let t=M(e);for(;t&&!H(t);){if(N(t)&&!re(t))return t;t=M(t)}return n}let o=le(e,t);for(;o&&$(o)&&re(o);)o=le(o,t);return o&&H(o)&&re(o)&&!B(o)?n:o||function(e){let t=M(e);for(;P(t)&&!H(t);){if(B(t))return t;t=M(t)}return null}(e)||n}const se={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const l="fixed"===r,i=C(o),s=!!t&&Q(t.floating);if(o===i||s&&l)return n;let c={scrollLeft:0,scrollTop:0},a=f(1);const u=f(0),d=P(o);if((d||!d&&!l)&&(("body"!==R(o)||I(i))&&(c=W(o)),P(o))){const e=Z(o);a=G(o),u.x=e.x+o.clientLeft,u.y=e.y+o.clientTop}return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-c.scrollLeft*a.x+u.x,y:n.y*a.y-c.scrollTop*a.y+u.y}},getDocumentElement:C,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const l=[..."clippingAncestors"===n?Q(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let o=q(e,[],!1).filter((e=>N(e)&&"body"!==R(e))),r=null;const l="fixed"===z(e).position;let i=l?M(e):e;for(;N(i)&&!H(i);){const t=z(i),n=B(i);n||"fixed"!==t.position||(r=null),(l?!n&&!r:!n&&"static"===t.position&&r&&["absolute","fixed"].includes(r.position)||I(i)&&!n&&ne(e,i))?o=o.filter((e=>e!==i)):r=t,i=M(i)}return t.set(e,o),o}(t,this._c):[].concat(n),o],i=l[0],s=l.reduce(((e,n)=>{const o=te(t,n,r);return e.top=a(o.top,e.top),e.right=c(o.right,e.right),e.bottom=c(o.bottom,e.bottom),e.left=a(o.left,e.left),e}),te(t,i,r));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:ie,getElementRects:async function(e){const t=this.getOffsetParent||ie,n=this.getDimensions,o=await n(e.floating);return{reference:oe(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=K(e);return{width:t,height:n}},getScale:G,isElement:N,isRTL:function(e){return"rtl"===z(e).direction}};const ce=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:l,placement:i,middlewareData:s}=t,c=await async function(e,t){const{placement:n,platform:o,elements:r}=e,l=await(null==o.isRTL?void 0:o.isRTL(r.floating)),i=y(n),s=g(n),c="y"===x(n),a=["left","top"].includes(i)?-1:1,u=l&&c?-1:1,d=h(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&"number"==typeof m&&(p="end"===s?-1*m:m),c?{x:p*u,y:f*a}:{x:f*a,y:p*u}}(t,e);return i===(null==(n=s.offset)?void 0:n.placement)&&null!=(o=s.arrow)&&o.alignmentOffset?{}:{x:r+c.x,y:l+c.y,data:{...c,placement:i}}}}},ae=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:l=!0,crossAxis:i=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=h(e,t),a={x:n,y:o},u=await T(t,c),d=x(y(r)),f=w(d);let p=a[f],m=a[d];if(l){const e="y"===f?"bottom":"right";p=v(p+u["y"===f?"top":"left"],p,p-u[e])}if(i){const e="y"===d?"bottom":"right";m=v(m+u["y"===d?"top":"left"],m,m-u[e])}const g=s.fn({...t,[f]:p,[d]:m});return{...g,data:{x:g.x-n,y:g.y-o}}}}},ue=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:l,rects:i,initialPlacement:s,platform:c,elements:a}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:v=!0,...w}=h(e,t);if(null!=(n=l.arrow)&&n.alignmentOffset)return{};const x=y(r),k=y(s)===s,A=await(null==c.isRTL?void 0:c.isRTL(a.floating)),O=f||(k||!v?[S(s)]:function(e){const t=S(e);return[_(e),t,_(t)]}(s));f||"none"===m||O.push(...function(e,t,n,o){const r=g(e);let l=function(e,t,n){const o=["left","right"],r=["right","left"],l=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?r:o:t?o:r;case"left":case"right":return t?l:i;default:return[]}}(y(e),"start"===n,o);return r&&(l=l.map((e=>e+"-"+r)),t&&(l=l.concat(l.map(_)))),l}(s,v,m,A));const R=[s,...O],L=await T(t,w),C=[];let D=(null==(o=l.flip)?void 0:o.overflows)||[];if(u&&C.push(L[x]),d){const e=function(e,t,n){void 0===n&&(n=!1);const o=g(e),r=E(e),l=b(r);let i="x"===r?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[l]>t.floating[l]&&(i=S(i)),[i,S(i)]}(r,i,A);C.push(L[e[0]],L[e[1]])}if(D=[...D,{placement:r,overflows:C}],!C.every((e=>e<=0))){var N,P;const e=((null==(N=l.flip)?void 0:N.index)||0)+1,t=R[e];if(t)return{data:{index:e,overflows:D},reset:{placement:t}};let n=null==(P=D.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:P.placement;if(!n)switch(p){case"bestFit":{var j;const e=null==(j=D.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:j[0];e&&(n=e);break}case"initialPlacement":n=s}if(r!==n)return{reset:{placement:n}}}return{}}}},de=(e,t,n)=>{const o=new Map,r={platform:se,...n},l={...r.platform,_c:o};return(async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:l=[],platform:i}=n,s=l.filter(Boolean),c=await(null==i.isRTL?void 0:i.isRTL(t));let a=await i.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:d}=O(a,o,c),f=o,p={},m=0;for(let n=0;n{if(!e)return{tooltipStyles:{},tooltipArrowStyles:{},place:o};if(null===t)return{tooltipStyles:{},tooltipArrowStyles:{},place:o};const a=i;return n?(a.push({name:"arrow",options:u={element:n,padding:5},async fn(e){const{x:t,y:n,placement:o,rects:r,platform:l,elements:i,middlewareData:s}=e,{element:a,padding:d=0}=h(u,e)||{};if(null==a)return{};const f=k(d),p={x:t,y:n},m=E(o),y=b(m),w=await l.getDimensions(a),x="y"===m,_=x?"top":"left",S=x?"bottom":"right",A=x?"clientHeight":"clientWidth",O=r.reference[y]+r.reference[m]-p[m]-r.floating[y],T=p[m]-r.reference[m],R=await(null==l.getOffsetParent?void 0:l.getOffsetParent(a));let L=R?R[A]:0;L&&await(null==l.isElement?void 0:l.isElement(R))||(L=i.floating[A]||r.floating[y]);const C=O/2-T/2,D=L/2-w[y]/2-1,N=c(f[_],D),P=c(f[S],D),j=N,I=L-w[y]-P,$=L/2-w[y]/2+C,B=v(j,$,I),F=!s.arrow&&null!=g(o)&&$!==B&&r.reference[y]/2-(${var r,l;const i={left:`${e}px`,top:`${t}px`,border:s},{x:c,y:a}=null!==(r=o.arrow)&&void 0!==r?r:{x:0,y:0},u=null!==(l={top:"bottom",right:"left",bottom:"top",left:"right"}[n.split("-")[0]])&&void 0!==l?l:"bottom",d=s&&{borderBottom:s,borderRight:s};let f=0;if(s){const e=`${s}`.match(/(\d+)px/);f=(null==e?void 0:e[1])?Number(e[1]):1}return{tooltipStyles:i,tooltipArrowStyles:{left:null!=c?`${c}px`:"",top:null!=a?`${a}px`:"",right:"",bottom:"",...d,[u]:`-${4+f}px`},place:n}}))):de(e,t,{placement:"bottom",strategy:l,middleware:a}).then((({x:e,y:t,placement:n})=>({tooltipStyles:{left:`${e}px`,top:`${t}px`},tooltipArrowStyles:{},place:n})));var u},he=(e,t)=>!("CSS"in window&&"supports"in window.CSS)||window.CSS.supports(e,t),ye=(e,t,n)=>{let o=null;const r=function(...r){const l=()=>{o=null,n||e.apply(this,r)};n&&!o&&(e.apply(this,r),o=setTimeout(l,t)),n||(o&&clearTimeout(o),o=setTimeout(l,t))};return r.cancel=()=>{o&&(clearTimeout(o),o=null)},r},ge=e=>null!==e&&!Array.isArray(e)&&"object"==typeof e,we=(e,t)=>{if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&e.every(((e,n)=>we(e,t[n])));if(Array.isArray(e)!==Array.isArray(t))return!1;if(!ge(e)||!ge(t))return e===t;const n=Object.keys(e),o=Object.keys(t);return n.length===o.length&&n.every((n=>we(e[n],t[n])))},be=e=>{if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;const t=getComputedStyle(e);return["overflow","overflow-x","overflow-y"].some((e=>{const n=t.getPropertyValue(e);return"auto"===n||"scroll"===n}))},xe=e=>{if(!e)return null;let t=e.parentElement;for(;t;){if(be(t))return t;t=t.parentElement}return document.scrollingElement||document.documentElement},Ee="undefined"!=typeof window?r.useLayoutEffect:r.useEffect,_e={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},Se=(0,r.createContext)({getTooltipData:()=>_e});function ke(e="DEFAULT_TOOLTIP_ID"){return(0,r.useContext)(Se).getTooltipData(e)}var Ae={tooltip:"core-styles-module_tooltip__3vRRp",fixed:"core-styles-module_fixed__pcSol",arrow:"core-styles-module_arrow__cvMwQ",noArrow:"core-styles-module_noArrow__xock6",clickable:"core-styles-module_clickable__ZuTTB",show:"core-styles-module_show__Nt9eE",closing:"core-styles-module_closing__sGnxF"},Oe={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const Te=({forwardRef:e,id:t,className:n,classNameArrow:o,variant:l="dark",anchorId:i,anchorSelect:s,place:u="top",offset:f=10,events:p=["hover"],openOnClick:m=!1,positionStrategy:v="absolute",middlewares:h,wrapper:y,delayShow:g=0,delayHide:w=0,float:b=!1,hidden:x=!1,noArrow:E=!1,clickable:_=!1,closeOnEsc:S=!1,closeOnScroll:k=!1,closeOnResize:A=!1,openEvents:O,closeEvents:T,globalCloseEvents:R,imperativeModeOnly:L,style:D,position:N,afterShow:P,afterHide:j,content:I,contentWrapperRef:$,isOpen:B,defaultIsOpen:F=!1,setIsOpen:H,activeAnchor:z,setActiveAnchor:W,border:M,opacity:V,arrowColor:K,role:G="tooltip"})=>{var Y;const U=(0,r.useRef)(null),J=(0,r.useRef)(null),Q=(0,r.useRef)(null),ee=(0,r.useRef)(null),te=(0,r.useRef)(null),[ne,oe]=(0,r.useState)({tooltipStyles:{},tooltipArrowStyles:{},place:u}),[re,le]=(0,r.useState)(!1),[ie,se]=(0,r.useState)(!1),[ce,ae]=(0,r.useState)(null),ue=(0,r.useRef)(!1),de=(0,r.useRef)(null),{anchorRefs:pe,setActiveAnchor:me}=ke(t),he=(0,r.useRef)(!1),[ge,be]=(0,r.useState)([]),_e=(0,r.useRef)(!1),Se=m||p.includes("click"),Te=Se||(null==O?void 0:O.click)||(null==O?void 0:O.dblclick)||(null==O?void 0:O.mousedown),Re=O?{...O}:{mouseenter:!0,focus:!0,click:!1,dblclick:!1,mousedown:!1};!O&&Se&&Object.assign(Re,{mouseenter:!1,focus:!1,click:!0});const Le=T?{...T}:{mouseleave:!0,blur:!0,click:!1,dblclick:!1,mouseup:!1};!T&&Se&&Object.assign(Le,{mouseleave:!1,blur:!1});const Ce=R?{...R}:{escape:S||!1,scroll:k||!1,resize:A||!1,clickOutsideAnchor:Te||!1};L&&(Object.assign(Re,{mouseenter:!1,focus:!1,click:!1,dblclick:!1,mousedown:!1}),Object.assign(Le,{mouseleave:!1,blur:!1,click:!1,dblclick:!1,mouseup:!1}),Object.assign(Ce,{escape:!1,scroll:!1,resize:!1,clickOutsideAnchor:!1})),Ee((()=>(_e.current=!0,()=>{_e.current=!1})),[]);const De=e=>{_e.current&&(e&&se(!0),setTimeout((()=>{_e.current&&(null==H||H(e),void 0===B&&le(e))}),10))};(0,r.useEffect)((()=>{if(void 0===B)return()=>null;B&&se(!0);const e=setTimeout((()=>{le(B)}),10);return()=>{clearTimeout(e)}}),[B]),(0,r.useEffect)((()=>{if(re!==ue.current)if(te.current&&clearTimeout(te.current),ue.current=re,re)null==P||P();else{const e=(e=>{const t=getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay").match(/^([\d.]+)(ms|s)$/);if(!t)return 0;const[,n,o]=t;return Number(n)*("ms"===o?1:1e3)})();te.current=setTimeout((()=>{se(!1),ae(null),null==j||j()}),e+25)}}),[re]);const Ne=e=>{oe((t=>we(t,e)?t:e))},Pe=(e=g)=>{Q.current&&clearTimeout(Q.current),ie?De(!0):Q.current=setTimeout((()=>{De(!0)}),e)},je=(e=w)=>{ee.current&&clearTimeout(ee.current),ee.current=setTimeout((()=>{he.current||De(!1)}),e)},Ie=e=>{var t;if(!e)return;const n=null!==(t=e.currentTarget)&&void 0!==t?t:e.target;if(!(null==n?void 0:n.isConnected))return W(null),void me({current:null});g?Pe():De(!0),W(n),me({current:n}),ee.current&&clearTimeout(ee.current)},$e=()=>{_?je(w||100):w?je():De(!1),Q.current&&clearTimeout(Q.current)},Be=({x:e,y:t})=>{var n;const o={getBoundingClientRect:()=>({x:e,y:t,width:0,height:0,top:t,left:e,right:e,bottom:t})};ve({place:null!==(n=null==ce?void 0:ce.place)&&void 0!==n?n:u,offset:f,elementReference:o,tooltipReference:U.current,tooltipArrowReference:J.current,strategy:v,middlewares:h,border:M}).then((e=>{Ne(e)}))},Fe=e=>{if(!e)return;const t=e,n={x:t.clientX,y:t.clientY};Be(n),de.current=n},He=e=>{var t;if(!re)return;const n=e.target;n.isConnected&&((null===(t=U.current)||void 0===t?void 0:t.contains(n))||[document.querySelector(`[id='${i}']`),...ge].some((e=>null==e?void 0:e.contains(n)))||(De(!1),Q.current&&clearTimeout(Q.current)))},ze=ye(Ie,50,!0),We=ye($e,50,!0),Me=e=>{We.cancel(),ze(e)},Ve=()=>{ze.cancel(),We()},qe=(0,r.useCallback)((()=>{var e,t;const n=null!==(e=null==ce?void 0:ce.position)&&void 0!==e?e:N;n?Be(n):b?de.current&&Be(de.current):(null==z?void 0:z.isConnected)&&ve({place:null!==(t=null==ce?void 0:ce.place)&&void 0!==t?t:u,offset:f,elementReference:z,tooltipReference:U.current,tooltipArrowReference:J.current,strategy:v,middlewares:h,border:M}).then((e=>{_e.current&&Ne(e)}))}),[re,z,I,D,u,null==ce?void 0:ce.place,f,v,N,null==ce?void 0:ce.position,b]);(0,r.useEffect)((()=>{var e,t;const n=new Set(pe);ge.forEach((e=>{n.add({current:e})}));const o=document.querySelector(`[id='${i}']`);o&&n.add({current:o});const r=()=>{De(!1)},l=xe(z),s=xe(U.current);Ce.scroll&&(window.addEventListener("scroll",r),null==l||l.addEventListener("scroll",r),null==s||s.addEventListener("scroll",r));let u=null;Ce.resize?window.addEventListener("resize",r):z&&U.current&&(u=function(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:l=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:u=!1}=o,f=X(e),p=r||l?[...f?q(f):[],...q(t)]:[];p.forEach((e=>{r&&e.addEventListener("scroll",n,{passive:!0}),l&&e.addEventListener("resize",n)}));const m=f&&s?function(e,t){let n,o=null;const r=C(e);function l(){var e;clearTimeout(n),null==(e=o)||e.disconnect(),o=null}return function i(s,u){void 0===s&&(s=!1),void 0===u&&(u=1),l();const{left:f,top:p,width:m,height:v}=e.getBoundingClientRect();if(s||t(),!m||!v)return;const h={rootMargin:-d(p)+"px "+-d(r.clientWidth-(f+m))+"px "+-d(r.clientHeight-(p+v))+"px "+-d(f)+"px",threshold:a(0,c(1,u))||1};let y=!0;function g(e){const t=e[0].intersectionRatio;if(t!==u){if(!y)return i();t?i(!1,t):n=setTimeout((()=>{i(!1,1e-7)}),1e3)}y=!1}try{o=new IntersectionObserver(g,{...h,root:r.ownerDocument})}catch(e){o=new IntersectionObserver(g,h)}o.observe(e)}(!0),l}(f,n):null;let v,h=-1,y=null;i&&(y=new ResizeObserver((e=>{let[o]=e;o&&o.target===f&&y&&(y.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame((()=>{var e;null==(e=y)||e.observe(t)}))),n()})),f&&!u&&y.observe(f),y.observe(t));let g=u?Z(e):null;return u&&function t(){const o=Z(e);!g||o.x===g.x&&o.y===g.y&&o.width===g.width&&o.height===g.height||n(),g=o,v=requestAnimationFrame(t)}(),n(),()=>{var e;p.forEach((e=>{r&&e.removeEventListener("scroll",n),l&&e.removeEventListener("resize",n)})),null==m||m(),null==(e=y)||e.disconnect(),y=null,u&&cancelAnimationFrame(v)}}(z,U.current,qe,{ancestorResize:!0,elementResize:!0,layoutShift:!0}));const f=e=>{"Escape"===e.key&&De(!1)};Ce.escape&&window.addEventListener("keydown",f),Ce.clickOutsideAnchor&&window.addEventListener("click",He);const p=[],m=e=>{re&&(null==e?void 0:e.target)===z||Ie(e)},v=e=>{re&&(null==e?void 0:e.target)===z&&$e()},h=["mouseenter","mouseleave","focus","blur"],y=["click","dblclick","mousedown","mouseup"];Object.entries(Re).forEach((([e,t])=>{t&&(h.includes(e)?p.push({event:e,listener:Me}):y.includes(e)&&p.push({event:e,listener:m}))})),Object.entries(Le).forEach((([e,t])=>{t&&(h.includes(e)?p.push({event:e,listener:Ve}):y.includes(e)&&p.push({event:e,listener:v}))})),b&&p.push({event:"pointermove",listener:Fe});const g=()=>{he.current=!0},w=()=>{he.current=!1,$e()};return _&&!Te&&(null===(e=U.current)||void 0===e||e.addEventListener("mouseenter",g),null===(t=U.current)||void 0===t||t.addEventListener("mouseleave",w)),p.forEach((({event:e,listener:t})=>{n.forEach((n=>{var o;null===(o=n.current)||void 0===o||o.addEventListener(e,t)}))})),()=>{var e,t;Ce.scroll&&(window.removeEventListener("scroll",r),null==l||l.removeEventListener("scroll",r),null==s||s.removeEventListener("scroll",r)),Ce.resize?window.removeEventListener("resize",r):null==u||u(),Ce.clickOutsideAnchor&&window.removeEventListener("click",He),Ce.escape&&window.removeEventListener("keydown",f),_&&!Te&&(null===(e=U.current)||void 0===e||e.removeEventListener("mouseenter",g),null===(t=U.current)||void 0===t||t.removeEventListener("mouseleave",w)),p.forEach((({event:e,listener:t})=>{n.forEach((n=>{var o;null===(o=n.current)||void 0===o||o.removeEventListener(e,t)}))}))}}),[z,qe,ie,pe,ge,O,T,R,Se,g,w]),(0,r.useEffect)((()=>{var e,n;let o=null!==(n=null!==(e=null==ce?void 0:ce.anchorSelect)&&void 0!==e?e:s)&&void 0!==n?n:"";!o&&t&&(o=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`);const r=new MutationObserver((e=>{const n=[],r=[];e.forEach((e=>{if("attributes"===e.type&&"data-tooltip-id"===e.attributeName&&(e.target.getAttribute("data-tooltip-id")===t?n.push(e.target):e.oldValue===t&&r.push(e.target)),"childList"===e.type){if(z){const t=[...e.removedNodes].filter((e=>1===e.nodeType));if(o)try{r.push(...t.filter((e=>e.matches(o)))),r.push(...t.flatMap((e=>[...e.querySelectorAll(o)])))}catch(e){}t.some((e=>{var t;return!!(null===(t=null==e?void 0:e.contains)||void 0===t?void 0:t.call(e,z))&&(se(!1),De(!1),W(null),Q.current&&clearTimeout(Q.current),ee.current&&clearTimeout(ee.current),!0)}))}if(o)try{const t=[...e.addedNodes].filter((e=>1===e.nodeType));n.push(...t.filter((e=>e.matches(o)))),n.push(...t.flatMap((e=>[...e.querySelectorAll(o)])))}catch(e){}}})),(n.length||r.length)&&be((e=>[...e.filter((e=>!r.includes(e))),...n]))}));return r.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"],attributeOldValue:!0}),()=>{r.disconnect()}}),[t,s,null==ce?void 0:ce.anchorSelect,z]),(0,r.useEffect)((()=>{qe()}),[qe]),(0,r.useEffect)((()=>{if(!(null==$?void 0:$.current))return()=>null;const e=new ResizeObserver((()=>{setTimeout((()=>qe()))}));return e.observe($.current),()=>{e.disconnect()}}),[I,null==$?void 0:$.current]),(0,r.useEffect)((()=>{var e;const t=document.querySelector(`[id='${i}']`),n=[...ge,t];z&&n.includes(z)||W(null!==(e=ge[0])&&void 0!==e?e:t)}),[i,ge,z]),(0,r.useEffect)((()=>(F&&De(!0),()=>{Q.current&&clearTimeout(Q.current),ee.current&&clearTimeout(ee.current)})),[]),(0,r.useEffect)((()=>{var e;let n=null!==(e=null==ce?void 0:ce.anchorSelect)&&void 0!==e?e:s;if(!n&&t&&(n=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`),n)try{const e=Array.from(document.querySelectorAll(n));be(e)}catch(e){be([])}}),[t,s,null==ce?void 0:ce.anchorSelect]),(0,r.useEffect)((()=>{Q.current&&(clearTimeout(Q.current),Pe(g))}),[g]);const Ke=null!==(Y=null==ce?void 0:ce.content)&&void 0!==Y?Y:I,Xe=re&&Object.keys(ne.tooltipStyles).length>0;return(0,r.useImperativeHandle)(e,(()=>({open:e=>{if(null==e?void 0:e.anchorSelect)try{document.querySelector(e.anchorSelect)}catch(t){return void console.warn(`[react-tooltip] "${e.anchorSelect}" is not a valid CSS selector`)}ae(null!=e?e:null),(null==e?void 0:e.delay)?Pe(e.delay):De(!0)},close:e=>{(null==e?void 0:e.delay)?je(e.delay):De(!1)},activeAnchor:z,place:ne.place,isOpen:Boolean(ie&&!x&&Ke&&Xe)}))),ie&&!x&&Ke?r.createElement(y,{id:t,role:G,className:fe("react-tooltip",Ae.tooltip,Oe.tooltip,Oe[l],n,`react-tooltip__place-${ne.place}`,Ae[Xe?"show":"closing"],Xe?"react-tooltip__show":"react-tooltip__closing","fixed"===v&&Ae.fixed,_&&Ae.clickable),onTransitionEnd:e=>{te.current&&clearTimeout(te.current),re||"opacity"!==e.propertyName||(se(!1),ae(null),null==j||j())},style:{...D,...ne.tooltipStyles,opacity:void 0!==V&&Xe?V:void 0},ref:U},Ke,r.createElement(y,{className:fe("react-tooltip-arrow",Ae.arrow,Oe.arrow,o,E&&Ae.noArrow),style:{...ne.tooltipArrowStyles,background:K?`linear-gradient(to right bottom, transparent 50%, ${K} 50%)`:void 0},ref:J})):null},Re=({content:e})=>r.createElement("span",{dangerouslySetInnerHTML:{__html:e}}),Le=r.forwardRef((({id:e,anchorId:t,anchorSelect:n,content:o,html:l,render:i,className:s,classNameArrow:c,variant:a="dark",place:u="top",offset:d=10,wrapper:f="div",children:p=null,events:m=["hover"],openOnClick:v=!1,positionStrategy:h="absolute",middlewares:y,delayShow:g=0,delayHide:w=0,float:b=!1,hidden:x=!1,noArrow:E=!1,clickable:_=!1,closeOnEsc:S=!1,closeOnScroll:k=!1,closeOnResize:A=!1,openEvents:O,closeEvents:T,globalCloseEvents:R,imperativeModeOnly:L=!1,style:C,position:D,isOpen:N,defaultIsOpen:P=!1,disableStyleInjection:j=!1,border:I,opacity:$,arrowColor:B,setIsOpen:F,afterShow:H,afterHide:z,role:W="tooltip"},M)=>{const[V,q]=(0,r.useState)(o),[K,X]=(0,r.useState)(l),[G,Y]=(0,r.useState)(u),[U,Z]=(0,r.useState)(a),[J,Q]=(0,r.useState)(d),[ee,te]=(0,r.useState)(g),[ne,oe]=(0,r.useState)(w),[re,le]=(0,r.useState)(b),[ie,se]=(0,r.useState)(x),[ce,ae]=(0,r.useState)(f),[ue,de]=(0,r.useState)(m),[pe,me]=(0,r.useState)(h),[ve,ye]=(0,r.useState)(null),[ge,we]=(0,r.useState)(null),be=(0,r.useRef)(j),{anchorRefs:xe,activeAnchor:Ee}=ke(e),_e=e=>null==e?void 0:e.getAttributeNames().reduce(((t,n)=>{var o;return n.startsWith("data-tooltip-")&&(t[n.replace(/^data-tooltip-/,"")]=null!==(o=null==e?void 0:e.getAttribute(n))&&void 0!==o?o:null),t}),{}),Se=e=>{const t={place:e=>{var t;Y(null!==(t=e)&&void 0!==t?t:u)},content:e=>{q(null!=e?e:o)},html:e=>{X(null!=e?e:l)},variant:e=>{var t;Z(null!==(t=e)&&void 0!==t?t:a)},offset:e=>{Q(null===e?d:Number(e))},wrapper:e=>{var t;ae(null!==(t=e)&&void 0!==t?t:f)},events:e=>{const t=null==e?void 0:e.split(" ");de(null!=t?t:m)},"position-strategy":e=>{var t;me(null!==(t=e)&&void 0!==t?t:h)},"delay-show":e=>{te(null===e?g:Number(e))},"delay-hide":e=>{oe(null===e?w:Number(e))},float:e=>{le(null===e?b:"true"===e)},hidden:e=>{se(null===e?x:"true"===e)},"class-name":e=>{ye(e)}};Object.values(t).forEach((e=>e(null))),Object.entries(e).forEach((([e,n])=>{var o;null===(o=t[e])||void 0===o||o.call(t,n)}))};(0,r.useEffect)((()=>{q(o)}),[o]),(0,r.useEffect)((()=>{X(l)}),[l]),(0,r.useEffect)((()=>{Y(u)}),[u]),(0,r.useEffect)((()=>{Z(a)}),[a]),(0,r.useEffect)((()=>{Q(d)}),[d]),(0,r.useEffect)((()=>{te(g)}),[g]),(0,r.useEffect)((()=>{oe(w)}),[w]),(0,r.useEffect)((()=>{le(b)}),[b]),(0,r.useEffect)((()=>{se(x)}),[x]),(0,r.useEffect)((()=>{me(h)}),[h]),(0,r.useEffect)((()=>{be.current!==j&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")}),[j]),(0,r.useEffect)((()=>{"undefined"!=typeof window&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:"core"===j,disableBase:j}}))}),[]),(0,r.useEffect)((()=>{var o;const r=new Set(xe);let l=n;if(!l&&e&&(l=`[data-tooltip-id='${e.replace(/'/g,"\\'")}']`),l)try{document.querySelectorAll(l).forEach((e=>{r.add({current:e})}))}catch(o){console.warn(`[react-tooltip] "${l}" is not a valid CSS selector`)}const i=document.querySelector(`[id='${t}']`);if(i&&r.add({current:i}),!r.size)return()=>null;const s=null!==(o=null!=ge?ge:i)&&void 0!==o?o:Ee.current,c=new MutationObserver((e=>{e.forEach((e=>{var t;if(!s||"attributes"!==e.type||!(null===(t=e.attributeName)||void 0===t?void 0:t.startsWith("data-tooltip-")))return;const n=_e(s);Se(n)}))})),a={attributes:!0,childList:!1,subtree:!1};if(s){const e=_e(s);Se(e),c.observe(s,a)}return()=>{c.disconnect()}}),[xe,Ee,ge,t,n]),(0,r.useEffect)((()=>{(null==C?void 0:C.border)&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),I&&!he("border",`${I}`)&&console.warn(`[react-tooltip] "${I}" is not a valid \`border\`.`),(null==C?void 0:C.opacity)&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),$&&!he("opacity",`${$}`)&&console.warn(`[react-tooltip] "${$}" is not a valid \`opacity\`.`)}),[]);let Ae=p;const Oe=(0,r.useRef)(null);if(i){const e=i({content:(null==ge?void 0:ge.getAttribute("data-tooltip-content"))||V||null,activeAnchor:ge});Ae=e?r.createElement("div",{ref:Oe,className:"react-tooltip-content-wrapper"},e):null}else V&&(Ae=V);K&&(Ae=r.createElement(Re,{content:K}));const Le={forwardRef:M,id:e,anchorId:t,anchorSelect:n,className:fe(s,ve),classNameArrow:c,content:Ae,contentWrapperRef:Oe,place:G,variant:U,offset:J,wrapper:ce,events:ue,openOnClick:v,positionStrategy:pe,middlewares:y,delayShow:ee,delayHide:ne,float:re,hidden:ie,noArrow:E,clickable:_,closeOnEsc:S,closeOnScroll:k,closeOnResize:A,openEvents:O,closeEvents:T,globalCloseEvents:R,imperativeModeOnly:L,style:C,position:D,isOpen:N,defaultIsOpen:P,border:I,opacity:$,arrowColor:B,setIsOpen:F,afterShow:H,afterHide:z,activeAnchor:ge,setActiveAnchor:e=>we(e),role:W};return r.createElement(Te,{...Le})}));"undefined"!=typeof window&&window.addEventListener("react-tooltip-inject-styles",(e=>{e.detail.disableCore||me({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in}",type:"core"}),e.detail.disableBase||me({css:"\n.styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:8px;height:8px}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}",type:"base"})}));const Ce=window.wp.i18n,De=window.wp.element,Ne=(e,t="")=>{for(const[n,o]of Object.entries(e)){let e=n;t&&(e+="_"+String(t)),addEventListener(e,(e=>{o(e.detail)}),!1)}};function Pe(e){if("object"==typeof GatherPress)return e.split(".").reduce(((e,t)=>e&&e[t]),GatherPress)}const je=({onlineEventLinkDefault:e=""})=>{const t=(0,Ce.__)("Online event","gatherpress"),[n,o]=(0,De.useState)(e);return Ne({setOnlineEventLink:o},Pe("eventDetails.postId")),(0,r.createElement)(i.Flex,{justify:"normal",gap:"3"},(0,r.createElement)(i.FlexItem,{display:"flex"},(0,r.createElement)(i.Icon,{icon:"video-alt2"})),(0,r.createElement)(i.FlexItem,null,!n&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)("span",{tabIndex:"0",className:"gatherpress-tooltip","data-tooltip-id":"gatherpress-online-event-tooltip","data-tooltip-content":(0,Ce.__)("Link available for attendees only.","gatherpress")},t),(0,r.createElement)(Le,{id:"gatherpress-online-event-tooltip"})),n&&(0,r.createElement)("a",{href:n,rel:"noreferrer",target:"_blank"},t)))},Ie=()=>{const{editPost:e,unlockPostSaving:t}=(0,s.useDispatch)("core/editor"),n=(0,s.useSelect)((e=>e("core/editor").getEditedPostAttribute("meta").gatherpress_online_event_link)),[o,l]=(0,De.useState)(n);return Ne({setOnlineEventLink:l},Pe("eventDetails.postId")),(0,r.createElement)(i.TextControl,{label:(0,Ce.__)("Online event link","gatherpress"),value:o,placeholder:(0,Ce.__)("Add link to online event","gatherpress"),onChange:n=>{(n=>{e({meta:{gatherpress_online_event_link:n}}),l(n),((e,t="")=>{for(const[n,o]of Object.entries(e)){let e=n;t&&(e+="_"+String(t));const r=new CustomEvent(e,{detail:o});dispatchEvent(r)}})({setOnlineEventLink:n},Pe("eventDetails.postId")),t()})(n)}})},$e=e=>{const{isSelected:t}=e,n=t?"none":"block";return(0,r.createElement)("div",{style:{position:"relative"}},e.children,(0,r.createElement)("div",{style:{position:"absolute",top:"0",right:"0",bottom:"0",left:"0",display:n}}))},Be=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"gatherpress/online-event","version":"1.0.1","title":"Online Event","category":"gatherpress","icon":"video-alt2","example":{},"description":"Utilized for virtual events, offering the capability to share a direct link to an event.","attributes":{"blockId":{"type":"string"}},"supports":{"html":false},"textdomain":"gatherpress","editorScript":"file:./index.js","style":"file:./style-index.css","viewScript":"file:./online-event.js","render":"file:./render.php"}');(0,o.registerBlockType)(Be,{edit:({isSelected:e})=>{const t=(0,l.useBlockProps)(),n=(0,s.useSelect)((e=>e("core/editor")?.getEditedPostAttribute("meta")?.gatherpress_online_event_link));return(0,r.createElement)(r.Fragment,null,"string"==typeof(0,s.select)("core/editor")?.getCurrentPostType()&&(0,r.createElement)(l.InspectorControls,null,(0,r.createElement)(i.PanelBody,null,(0,r.createElement)(i.PanelRow,null,(0,r.createElement)(Ie,null)))),(0,r.createElement)("div",{...t},(0,r.createElement)($e,{isSelected:e},(0,r.createElement)(je,{onlineEventLinkDefault:n}))))},save:()=>null})},6942:(e,t)=>{var n;!function(){"use strict";var o={}.hasOwnProperty;function r(){for(var e="",t=0;t{if(!n){var i=1/0;for(u=0;u=l)&&Object.keys(o.O).every((e=>o.O[e](n[c])))?n.splice(c--,1):(s=!1,l0&&e[u-1][2]>l;u--)e[u]=e[u-1];e[u]=[n,r,l]},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={495:0,791:0};o.O.j=t=>0===e[t];var t=(t,n)=>{var r,l,[i,s,c]=n,a=0;if(i.some((t=>0!==e[t]))){for(r in s)o.o(s,r)&&(o.m[r]=s[r]);if(c)var u=c(o)}for(t&&t(n);ao(663)));r=o.O(r)})(); \ No newline at end of file diff --git a/build/blocks/online-event/online-event.asset.php b/build/blocks/online-event/online-event.asset.php index 2fe3e34d4..a763c615a 100644 --- a/build/blocks/online-event/online-event.asset.php +++ b/build/blocks/online-event/online-event.asset.php @@ -1 +1 @@ - array('react', 'wp-components', 'wp-data', 'wp-dom-ready', 'wp-element', 'wp-i18n'), 'version' => 'f43e82fe6319c886ac86'); + array('react', 'wp-components', 'wp-data', 'wp-dom-ready', 'wp-element', 'wp-i18n'), 'version' => '05f1e5613efaf2de28d8'); diff --git a/build/blocks/online-event/online-event.js b/build/blocks/online-event/online-event.js index ac9e1726d..3419d5711 100644 --- a/build/blocks/online-event/online-event.js +++ b/build/blocks/online-event/online-event.js @@ -1 +1 @@ -(()=>{var e={6942:(e,t)=>{var n;!function(){"use strict";var o={}.hasOwnProperty;function r(){for(var e="",t=0;t{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=window.React,t=window.wp.domReady;var o=n.n(t);const r=window.wp.element,l=Math.min,i=Math.max,c=Math.round,s=Math.floor,a=e=>({x:e,y:e}),u={left:"right",right:"left",bottom:"top",top:"bottom"},d={start:"end",end:"start"};function f(e,t,n){return i(e,l(t,n))}function p(e,t){return"function"==typeof e?e(t):e}function m(e){return e.split("-")[0]}function v(e){return e.split("-")[1]}function y(e){return"x"===e?"y":"x"}function h(e){return"y"===e?"height":"width"}function w(e){return["top","bottom"].includes(m(e))?"y":"x"}function g(e){return y(w(e))}function b(e){return e.replace(/start|end/g,(e=>d[e]))}function x(e){return e.replace(/left|right|bottom|top/g,(e=>u[e]))}function E(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function _(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function S(e,t,n){let{reference:o,floating:r}=e;const l=w(t),i=g(t),c=h(i),s=m(t),a="y"===l,u=o.x+o.width/2-r.width/2,d=o.y+o.height/2-r.height/2,f=o[c]/2-r[c]/2;let p;switch(s){case"top":p={x:u,y:o.y-r.height};break;case"bottom":p={x:u,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:d};break;case"left":p={x:o.x-r.width,y:d};break;default:p={x:o.x,y:o.y}}switch(v(t)){case"start":p[i]-=f*(n&&a?-1:1);break;case"end":p[i]+=f*(n&&a?-1:1)}return p}async function A(e,t){var n;void 0===t&&(t={});const{x:o,y:r,platform:l,rects:i,elements:c,strategy:s}=e,{boundary:a="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:m=0}=p(t,e),v=E(m),y=c[f?"floating"===d?"reference":"floating":d],h=_(await l.getClippingRect({element:null==(n=await(null==l.isElement?void 0:l.isElement(y)))||n?y:y.contextElement||await(null==l.getDocumentElement?void 0:l.getDocumentElement(c.floating)),boundary:a,rootBoundary:u,strategy:s})),w="floating"===d?{...i.floating,x:o,y:r}:i.reference,g=await(null==l.getOffsetParent?void 0:l.getOffsetParent(c.floating)),b=await(null==l.isElement?void 0:l.isElement(g))&&await(null==l.getScale?void 0:l.getScale(g))||{x:1,y:1},x=_(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:w,offsetParent:g,strategy:s}):w);return{top:(h.top-x.top+v.top)/b.y,bottom:(x.bottom-h.bottom+v.bottom)/b.y,left:(h.left-x.left+v.left)/b.x,right:(x.right-h.right+v.right)/b.x}}const T=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:l,placement:i,middlewareData:c}=t,s=await async function(e,t){const{placement:n,platform:o,elements:r}=e,l=await(null==o.isRTL?void 0:o.isRTL(r.floating)),i=m(n),c=v(n),s="y"===w(n),a=["left","top"].includes(i)?-1:1,u=l&&s?-1:1,d=p(t,e);let{mainAxis:f,crossAxis:y,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return c&&"number"==typeof h&&(y="end"===c?-1*h:h),s?{x:y*u,y:f*a}:{x:f*a,y:y*u}}(t,e);return i===(null==(n=c.offset)?void 0:n.placement)&&null!=(o=c.arrow)&&o.alignmentOffset?{}:{x:r+s.x,y:l+s.y,data:{...s,placement:i}}}}};function R(e){return L(e)?(e.nodeName||"").toLowerCase():"#document"}function O(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function k(e){var t;return null==(t=(L(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function L(e){return e instanceof Node||e instanceof O(e).Node}function C(e){return e instanceof Element||e instanceof O(e).Element}function D(e){return e instanceof HTMLElement||e instanceof O(e).HTMLElement}function N(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof O(e).ShadowRoot)}function I(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=F(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(r)}function j(e){return["table","td","th"].includes(R(e))}function $(e){const t=P(),n=F(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function P(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function B(e){return["html","body","#document"].includes(R(e))}function F(e){return O(e).getComputedStyle(e)}function H(e){return C(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function W(e){if("html"===R(e))return e;const t=e.assignedSlot||e.parentNode||N(e)&&e.host||k(e);return N(t)?t.host:t}function z(e){const t=W(e);return B(t)?e.ownerDocument?e.ownerDocument.body:e.body:D(t)&&I(t)?t:z(t)}function M(e,t,n){var o;void 0===t&&(t=[]),void 0===n&&(n=!0);const r=z(e),l=r===(null==(o=e.ownerDocument)?void 0:o.body),i=O(r);return l?t.concat(i,i.visualViewport||[],I(r)?r:[],i.frameElement&&n?M(i.frameElement):[]):t.concat(r,M(r,[],n))}function q(e){const t=F(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=D(e),l=r?e.offsetWidth:n,i=r?e.offsetHeight:o,s=c(n)!==l||c(o)!==i;return s&&(n=l,o=i),{width:n,height:o,$:s}}function V(e){return C(e)?e:e.contextElement}function K(e){const t=V(e);if(!D(t))return a(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:l}=q(t);let i=(l?c(n.width):n.width)/o,s=(l?c(n.height):n.height)/r;return i&&Number.isFinite(i)||(i=1),s&&Number.isFinite(s)||(s=1),{x:i,y:s}}const X=a(0);function G(e){const t=O(e);return P()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:X}function Y(e,t,n,o){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=e.getBoundingClientRect(),l=V(e);let i=a(1);t&&(o?C(o)&&(i=K(o)):i=K(e));const c=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==O(e))&&t}(l,n,o)?G(l):a(0);let s=(r.left+c.x)/i.x,u=(r.top+c.y)/i.y,d=r.width/i.x,f=r.height/i.y;if(l){const e=O(l),t=o&&C(o)?O(o):o;let n=e,r=n.frameElement;for(;r&&o&&t!==n;){const e=K(r),t=r.getBoundingClientRect(),o=F(r),l=t.left+(r.clientLeft+parseFloat(o.paddingLeft))*e.x,i=t.top+(r.clientTop+parseFloat(o.paddingTop))*e.y;s*=e.x,u*=e.y,d*=e.x,f*=e.y,s+=l,u+=i,n=O(r),r=n.frameElement}}return _({width:d,height:f,x:s,y:u})}const Z=[":popover-open",":modal"];function J(e){return Z.some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function U(e){return Y(k(e)).left+H(e).scrollLeft}function Q(e,t,n){let o;if("viewport"===t)o=function(e,t){const n=O(e),o=k(e),r=n.visualViewport;let l=o.clientWidth,i=o.clientHeight,c=0,s=0;if(r){l=r.width,i=r.height;const e=P();(!e||e&&"fixed"===t)&&(c=r.offsetLeft,s=r.offsetTop)}return{width:l,height:i,x:c,y:s}}(e,n);else if("document"===t)o=function(e){const t=k(e),n=H(e),o=e.ownerDocument.body,r=i(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),l=i(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let c=-n.scrollLeft+U(e);const s=-n.scrollTop;return"rtl"===F(o).direction&&(c+=i(t.clientWidth,o.clientWidth)-r),{width:r,height:l,x:c,y:s}}(k(e));else if(C(t))o=function(e,t){const n=Y(e,!0,"fixed"===t),o=n.top+e.clientTop,r=n.left+e.clientLeft,l=D(e)?K(e):a(1);return{width:e.clientWidth*l.x,height:e.clientHeight*l.y,x:r*l.x,y:o*l.y}}(t,n);else{const n=G(e);o={...t,x:t.x-n.x,y:t.y-n.y}}return _(o)}function ee(e,t){const n=W(e);return!(n===t||!C(n)||B(n))&&("fixed"===F(n).position||ee(n,t))}function te(e,t,n){const o=D(t),r=k(t),l="fixed"===n,i=Y(e,!0,l,t);let c={scrollLeft:0,scrollTop:0};const s=a(0);if(o||!o&&!l)if(("body"!==R(t)||I(r))&&(c=H(t)),o){const e=Y(t,!0,l,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else r&&(s.x=U(r));return{x:i.left+c.scrollLeft-s.x,y:i.top+c.scrollTop-s.y,width:i.width,height:i.height}}function ne(e,t){return D(e)&&"fixed"!==F(e).position?t?t(e):e.offsetParent:null}function oe(e,t){const n=O(e);if(!D(e)||J(e))return n;let o=ne(e,t);for(;o&&j(o)&&"static"===F(o).position;)o=ne(o,t);return o&&("html"===R(o)||"body"===R(o)&&"static"===F(o).position&&!$(o))?n:o||function(e){let t=W(e);for(;D(t)&&!B(t);){if($(t))return t;t=W(t)}return null}(e)||n}const re={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const l="fixed"===r,i=k(o),c=!!t&&J(t.floating);if(o===i||c&&l)return n;let s={scrollLeft:0,scrollTop:0},u=a(1);const d=a(0),f=D(o);if((f||!f&&!l)&&(("body"!==R(o)||I(i))&&(s=H(o)),D(o))){const e=Y(o);u=K(o),d.x=e.x+o.clientLeft,d.y=e.y+o.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-s.scrollLeft*u.x+d.x,y:n.y*u.y-s.scrollTop*u.y+d.y}},getDocumentElement:k,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const c=[..."clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let o=M(e,[],!1).filter((e=>C(e)&&"body"!==R(e))),r=null;const l="fixed"===F(e).position;let i=l?W(e):e;for(;C(i)&&!B(i);){const t=F(i),n=$(i);n||"fixed"!==t.position||(r=null),(l?!n&&!r:!n&&"static"===t.position&&r&&["absolute","fixed"].includes(r.position)||I(i)&&!n&&ee(e,i))?o=o.filter((e=>e!==i)):r=t,i=W(i)}return t.set(e,o),o}(t,this._c):[].concat(n),o],s=c[0],a=c.reduce(((e,n)=>{const o=Q(t,n,r);return e.top=i(o.top,e.top),e.right=l(o.right,e.right),e.bottom=l(o.bottom,e.bottom),e.left=i(o.left,e.left),e}),Q(t,s,r));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:oe,getElementRects:async function(e){const t=this.getOffsetParent||oe,n=this.getDimensions;return{reference:te(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,...await n(e.floating)}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=q(e);return{width:t,height:n}},getScale:K,isElement:C,isRTL:function(e){return"rtl"===F(e).direction}};const le=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:l=!0,crossAxis:i=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=p(e,t),a={x:n,y:o},u=await A(t,s),d=w(m(r)),v=y(d);let h=a[v],g=a[d];if(l){const e="y"===v?"bottom":"right";h=f(h+u["y"===v?"top":"left"],h,h-u[e])}if(i){const e="y"===d?"bottom":"right";g=f(g+u["y"===d?"top":"left"],g,g-u[e])}const b=c.fn({...t,[v]:h,[d]:g});return{...b,data:{x:b.x-n,y:b.y-o}}}}},ie=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:l,rects:i,initialPlacement:c,platform:s,elements:a}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:E=!0,..._}=p(e,t);if(null!=(n=l.arrow)&&n.alignmentOffset)return{};const S=m(r),T=m(c)===c,R=await(null==s.isRTL?void 0:s.isRTL(a.floating)),O=f||(T||!E?[x(c)]:function(e){const t=x(e);return[b(e),t,b(t)]}(c));f||"none"===w||O.push(...function(e,t,n,o){const r=v(e);let l=function(e,t,n){const o=["left","right"],r=["right","left"],l=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?r:o:t?o:r;case"left":case"right":return t?l:i;default:return[]}}(m(e),"start"===n,o);return r&&(l=l.map((e=>e+"-"+r)),t&&(l=l.concat(l.map(b)))),l}(c,E,w,R));const k=[c,...O],L=await A(t,_),C=[];let D=(null==(o=l.flip)?void 0:o.overflows)||[];if(u&&C.push(L[S]),d){const e=function(e,t,n){void 0===n&&(n=!1);const o=v(e),r=g(e),l=h(r);let i="x"===r?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[l]>t.floating[l]&&(i=x(i)),[i,x(i)]}(r,i,R);C.push(L[e[0]],L[e[1]])}if(D=[...D,{placement:r,overflows:C}],!C.every((e=>e<=0))){var N,I;const e=((null==(N=l.flip)?void 0:N.index)||0)+1,t=k[e];if(t)return{data:{index:e,overflows:D},reset:{placement:t}};let n=null==(I=D.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:I.placement;if(!n)switch(y){case"bestFit":{var j;const e=null==(j=D.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:j[0];e&&(n=e);break}case"initialPlacement":n=c}if(r!==n)return{reset:{placement:n}}}return{}}}},ce=(e,t,n)=>{const o=new Map,r={platform:re,...n},l={...r.platform,_c:o};return(async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:l=[],platform:i}=n,c=l.filter(Boolean),s=await(null==i.isRTL?void 0:i.isRTL(t));let a=await i.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:d}=S(a,o,s),f=o,p={},m=0;for(let n=0;n{if(!e)return{tooltipStyles:{},tooltipArrowStyles:{},place:o};if(null===t)return{tooltipStyles:{},tooltipArrowStyles:{},place:o};const a=c;return n?(a.push({name:"arrow",options:u={element:n,padding:5},async fn(e){const{x:t,y:n,placement:o,rects:r,platform:i,elements:c,middlewareData:s}=e,{element:a,padding:d=0}=p(u,e)||{};if(null==a)return{};const m=E(d),y={x:t,y:n},w=g(o),b=h(w),x=await i.getDimensions(a),_="y"===w,S=_?"top":"left",A=_?"bottom":"right",T=_?"clientHeight":"clientWidth",R=r.reference[b]+r.reference[w]-y[w]-r.floating[b],O=y[w]-r.reference[w],k=await(null==i.getOffsetParent?void 0:i.getOffsetParent(a));let L=k?k[T]:0;L&&await(null==i.isElement?void 0:i.isElement(k))||(L=c.floating[T]||r.floating[b]);const C=R/2-O/2,D=L/2-x[b]/2-1,N=l(m[S],D),I=l(m[A],D),j=N,$=L-x[b]-I,P=L/2-x[b]/2+C,B=f(j,P,$),F=!s.arrow&&null!=v(o)&&P!==B&&r.reference[b]/2-(P{var r,l;const i={left:`${e}px`,top:`${t}px`,border:s},{x:c,y:a}=null!==(r=o.arrow)&&void 0!==r?r:{x:0,y:0},u=null!==(l={top:"bottom",right:"left",bottom:"top",left:"right"}[n.split("-")[0]])&&void 0!==l?l:"bottom",d=s&&{borderBottom:s,borderRight:s};let f=0;if(s){const e=`${s}`.match(/(\d+)px/);f=(null==e?void 0:e[1])?Number(e[1]):1}return{tooltipStyles:i,tooltipArrowStyles:{left:null!=c?`${c}px`:"",top:null!=a?`${a}px`:"",right:"",bottom:"",...d,[u]:`-${4+f}px`},place:n}}))):ce(e,t,{placement:"bottom",strategy:i,middleware:a}).then((({x:e,y:t,placement:n})=>({tooltipStyles:{left:`${e}px`,top:`${t}px`},tooltipArrowStyles:{},place:n})));var u},fe=(e,t)=>!("CSS"in window&&"supports"in window.CSS)||window.CSS.supports(e,t),pe=(e,t,n)=>{let o=null;const r=function(...r){const l=()=>{o=null,n||e.apply(this,r)};n&&!o&&(e.apply(this,r),o=setTimeout(l,t)),n||(o&&clearTimeout(o),o=setTimeout(l,t))};return r.cancel=()=>{o&&(clearTimeout(o),o=null)},r},me=e=>null!==e&&!Array.isArray(e)&&"object"==typeof e,ve=(e,t)=>{if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&e.every(((e,n)=>ve(e,t[n])));if(Array.isArray(e)!==Array.isArray(t))return!1;if(!me(e)||!me(t))return e===t;const n=Object.keys(e),o=Object.keys(t);return n.length===o.length&&n.every((n=>ve(e[n],t[n])))},ye=e=>{if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;const t=getComputedStyle(e);return["overflow","overflow-x","overflow-y"].some((e=>{const n=t.getPropertyValue(e);return"auto"===n||"scroll"===n}))},he=e=>{if(!e)return null;let t=e.parentElement;for(;t;){if(ye(t))return t;t=t.parentElement}return document.scrollingElement||document.documentElement},we="undefined"!=typeof window?e.useLayoutEffect:e.useEffect,ge={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},be=(0,e.createContext)({getTooltipData:()=>ge});function xe(t="DEFAULT_TOOLTIP_ID"){return(0,e.useContext)(be).getTooltipData(t)}var Ee={tooltip:"core-styles-module_tooltip__3vRRp",fixed:"core-styles-module_fixed__pcSol",arrow:"core-styles-module_arrow__cvMwQ",noArrow:"core-styles-module_noArrow__xock6",clickable:"core-styles-module_clickable__ZuTTB",show:"core-styles-module_show__Nt9eE",closing:"core-styles-module_closing__sGnxF"},_e={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const Se=({forwardRef:t,id:n,className:o,classNameArrow:r,variant:c="dark",anchorId:a,anchorSelect:u,place:d="top",offset:f=10,events:p=["hover"],openOnClick:m=!1,positionStrategy:v="absolute",middlewares:y,wrapper:h,delayShow:w=0,delayHide:g=0,float:b=!1,hidden:x=!1,noArrow:E=!1,clickable:_=!1,closeOnEsc:S=!1,closeOnScroll:A=!1,closeOnResize:T=!1,openEvents:R,closeEvents:O,globalCloseEvents:L,imperativeModeOnly:C,style:D,position:N,afterShow:I,afterHide:j,content:$,contentWrapperRef:P,isOpen:B,defaultIsOpen:F=!1,setIsOpen:H,activeAnchor:W,setActiveAnchor:z,border:q,opacity:K,arrowColor:X,role:G="tooltip"})=>{var Z;const J=(0,e.useRef)(null),U=(0,e.useRef)(null),Q=(0,e.useRef)(null),ee=(0,e.useRef)(null),te=(0,e.useRef)(null),[ne,oe]=(0,e.useState)({tooltipStyles:{},tooltipArrowStyles:{},place:d}),[re,le]=(0,e.useState)(!1),[ie,ce]=(0,e.useState)(!1),[ae,ue]=(0,e.useState)(null),fe=(0,e.useRef)(!1),me=(0,e.useRef)(null),{anchorRefs:ye,setActiveAnchor:ge}=xe(n),be=(0,e.useRef)(!1),[Se,Ae]=(0,e.useState)([]),Te=(0,e.useRef)(!1),Re=m||p.includes("click"),Oe=Re||(null==R?void 0:R.click)||(null==R?void 0:R.dblclick)||(null==R?void 0:R.mousedown),ke=R?{...R}:{mouseenter:!0,focus:!0,click:!1,dblclick:!1,mousedown:!1};!R&&Re&&Object.assign(ke,{mouseenter:!1,focus:!1,click:!0});const Le=O?{...O}:{mouseleave:!0,blur:!0,click:!1,dblclick:!1,mouseup:!1};!O&&Re&&Object.assign(Le,{mouseleave:!1,blur:!1});const Ce=L?{...L}:{escape:S||!1,scroll:A||!1,resize:T||!1,clickOutsideAnchor:Oe||!1};C&&(Object.assign(ke,{mouseenter:!1,focus:!1,click:!1,dblclick:!1,mousedown:!1}),Object.assign(Le,{mouseleave:!1,blur:!1,click:!1,dblclick:!1,mouseup:!1}),Object.assign(Ce,{escape:!1,scroll:!1,resize:!1,clickOutsideAnchor:!1})),we((()=>(Te.current=!0,()=>{Te.current=!1})),[]);const De=e=>{Te.current&&(e&&ce(!0),setTimeout((()=>{Te.current&&(null==H||H(e),void 0===B&&le(e))}),10))};(0,e.useEffect)((()=>{if(void 0===B)return()=>null;B&&ce(!0);const e=setTimeout((()=>{le(B)}),10);return()=>{clearTimeout(e)}}),[B]),(0,e.useEffect)((()=>{if(re!==fe.current)if(te.current&&clearTimeout(te.current),fe.current=re,re)null==I||I();else{const e=(e=>{const t=getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay").match(/^([\d.]+)(ms|s)$/);if(!t)return 0;const[,n,o]=t;return Number(n)*("ms"===o?1:1e3)})();te.current=setTimeout((()=>{ce(!1),ue(null),null==j||j()}),e+25)}}),[re]);const Ne=e=>{oe((t=>ve(t,e)?t:e))},Ie=(e=w)=>{Q.current&&clearTimeout(Q.current),ie?De(!0):Q.current=setTimeout((()=>{De(!0)}),e)},je=(e=g)=>{ee.current&&clearTimeout(ee.current),ee.current=setTimeout((()=>{be.current||De(!1)}),e)},$e=e=>{var t;if(!e)return;const n=null!==(t=e.currentTarget)&&void 0!==t?t:e.target;if(!(null==n?void 0:n.isConnected))return z(null),void ge({current:null});w?Ie():De(!0),z(n),ge({current:n}),ee.current&&clearTimeout(ee.current)},Pe=()=>{_?je(g||100):g?je():De(!1),Q.current&&clearTimeout(Q.current)},Be=({x:e,y:t})=>{var n;const o={getBoundingClientRect:()=>({x:e,y:t,width:0,height:0,top:t,left:e,right:e,bottom:t})};de({place:null!==(n=null==ae?void 0:ae.place)&&void 0!==n?n:d,offset:f,elementReference:o,tooltipReference:J.current,tooltipArrowReference:U.current,strategy:v,middlewares:y,border:q}).then((e=>{Ne(e)}))},Fe=e=>{if(!e)return;const t=e,n={x:t.clientX,y:t.clientY};Be(n),me.current=n},He=e=>{var t;if(!re)return;const n=e.target;n.isConnected&&((null===(t=J.current)||void 0===t?void 0:t.contains(n))||[document.querySelector(`[id='${a}']`),...Se].some((e=>null==e?void 0:e.contains(n)))||(De(!1),Q.current&&clearTimeout(Q.current)))},We=pe($e,50,!0),ze=pe(Pe,50,!0),Me=e=>{ze.cancel(),We(e)},qe=()=>{We.cancel(),ze()},Ve=(0,e.useCallback)((()=>{var e,t;const n=null!==(e=null==ae?void 0:ae.position)&&void 0!==e?e:N;n?Be(n):b?me.current&&Be(me.current):(null==W?void 0:W.isConnected)&&de({place:null!==(t=null==ae?void 0:ae.place)&&void 0!==t?t:d,offset:f,elementReference:W,tooltipReference:J.current,tooltipArrowReference:U.current,strategy:v,middlewares:y,border:q}).then((e=>{Te.current&&Ne(e)}))}),[re,W,$,D,d,null==ae?void 0:ae.place,f,v,N,null==ae?void 0:ae.position,b]);(0,e.useEffect)((()=>{var e,t;const n=new Set(ye);Se.forEach((e=>{n.add({current:e})}));const o=document.querySelector(`[id='${a}']`);o&&n.add({current:o});const r=()=>{De(!1)},c=he(W),u=he(J.current);Ce.scroll&&(window.addEventListener("scroll",r),null==c||c.addEventListener("scroll",r),null==u||u.addEventListener("scroll",r));let d=null;Ce.resize?window.addEventListener("resize",r):W&&J.current&&(d=function(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:c=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:u="function"==typeof IntersectionObserver,animationFrame:d=!1}=o,f=V(e),p=r||c?[...f?M(f):[],...M(t)]:[];p.forEach((e=>{r&&e.addEventListener("scroll",n,{passive:!0}),c&&e.addEventListener("resize",n)}));const m=f&&u?function(e,t){let n,o=null;const r=k(e);function c(){var e;clearTimeout(n),null==(e=o)||e.disconnect(),o=null}return function a(u,d){void 0===u&&(u=!1),void 0===d&&(d=1),c();const{left:f,top:p,width:m,height:v}=e.getBoundingClientRect();if(u||t(),!m||!v)return;const y={rootMargin:-s(p)+"px "+-s(r.clientWidth-(f+m))+"px "+-s(r.clientHeight-(p+v))+"px "+-s(f)+"px",threshold:i(0,l(1,d))||1};let h=!0;function w(e){const t=e[0].intersectionRatio;if(t!==d){if(!h)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),100)}h=!1}try{o=new IntersectionObserver(w,{...y,root:r.ownerDocument})}catch(e){o=new IntersectionObserver(w,y)}o.observe(e)}(!0),c}(f,n):null;let v,y=-1,h=null;a&&(h=new ResizeObserver((e=>{let[o]=e;o&&o.target===f&&h&&(h.unobserve(t),cancelAnimationFrame(y),y=requestAnimationFrame((()=>{var e;null==(e=h)||e.observe(t)}))),n()})),f&&!d&&h.observe(f),h.observe(t));let w=d?Y(e):null;return d&&function t(){const o=Y(e);!w||o.x===w.x&&o.y===w.y&&o.width===w.width&&o.height===w.height||n(),w=o,v=requestAnimationFrame(t)}(),n(),()=>{var e;p.forEach((e=>{r&&e.removeEventListener("scroll",n),c&&e.removeEventListener("resize",n)})),null==m||m(),null==(e=h)||e.disconnect(),h=null,d&&cancelAnimationFrame(v)}}(W,J.current,Ve,{ancestorResize:!0,elementResize:!0,layoutShift:!0}));const f=e=>{"Escape"===e.key&&De(!1)};Ce.escape&&window.addEventListener("keydown",f),Ce.clickOutsideAnchor&&window.addEventListener("click",He);const p=[],m=e=>{re&&(null==e?void 0:e.target)===W||$e(e)},v=e=>{re&&(null==e?void 0:e.target)===W&&Pe()},y=["mouseenter","mouseleave","focus","blur"],h=["click","dblclick","mousedown","mouseup"];Object.entries(ke).forEach((([e,t])=>{t&&(y.includes(e)?p.push({event:e,listener:Me}):h.includes(e)&&p.push({event:e,listener:m}))})),Object.entries(Le).forEach((([e,t])=>{t&&(y.includes(e)?p.push({event:e,listener:qe}):h.includes(e)&&p.push({event:e,listener:v}))})),b&&p.push({event:"pointermove",listener:Fe});const w=()=>{be.current=!0},g=()=>{be.current=!1,Pe()};return _&&!Oe&&(null===(e=J.current)||void 0===e||e.addEventListener("mouseenter",w),null===(t=J.current)||void 0===t||t.addEventListener("mouseleave",g)),p.forEach((({event:e,listener:t})=>{n.forEach((n=>{var o;null===(o=n.current)||void 0===o||o.addEventListener(e,t)}))})),()=>{var e,t;Ce.scroll&&(window.removeEventListener("scroll",r),null==c||c.removeEventListener("scroll",r),null==u||u.removeEventListener("scroll",r)),Ce.resize?window.removeEventListener("resize",r):null==d||d(),Ce.clickOutsideAnchor&&window.removeEventListener("click",He),Ce.escape&&window.removeEventListener("keydown",f),_&&!Oe&&(null===(e=J.current)||void 0===e||e.removeEventListener("mouseenter",w),null===(t=J.current)||void 0===t||t.removeEventListener("mouseleave",g)),p.forEach((({event:e,listener:t})=>{n.forEach((n=>{var o;null===(o=n.current)||void 0===o||o.removeEventListener(e,t)}))}))}}),[W,Ve,ie,ye,Se,R,O,L,Re,w,g]),(0,e.useEffect)((()=>{var e,t;let o=null!==(t=null!==(e=null==ae?void 0:ae.anchorSelect)&&void 0!==e?e:u)&&void 0!==t?t:"";!o&&n&&(o=`[data-tooltip-id='${n}']`);const r=new MutationObserver((e=>{const t=[],r=[];e.forEach((e=>{if("attributes"===e.type&&"data-tooltip-id"===e.attributeName&&(e.target.getAttribute("data-tooltip-id")===n?t.push(e.target):e.oldValue===n&&r.push(e.target)),"childList"===e.type){if(W){const t=[...e.removedNodes].filter((e=>1===e.nodeType));if(o)try{r.push(...t.filter((e=>e.matches(o)))),r.push(...t.flatMap((e=>[...e.querySelectorAll(o)])))}catch(e){}t.some((e=>{var t;return!!(null===(t=null==e?void 0:e.contains)||void 0===t?void 0:t.call(e,W))&&(ce(!1),De(!1),z(null),Q.current&&clearTimeout(Q.current),ee.current&&clearTimeout(ee.current),!0)}))}if(o)try{const n=[...e.addedNodes].filter((e=>1===e.nodeType));t.push(...n.filter((e=>e.matches(o)))),t.push(...n.flatMap((e=>[...e.querySelectorAll(o)])))}catch(e){}}})),(t.length||r.length)&&Ae((e=>[...e.filter((e=>!r.includes(e))),...t]))}));return r.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"],attributeOldValue:!0}),()=>{r.disconnect()}}),[n,u,null==ae?void 0:ae.anchorSelect,W]),(0,e.useEffect)((()=>{Ve()}),[Ve]),(0,e.useEffect)((()=>{if(!(null==P?void 0:P.current))return()=>null;const e=new ResizeObserver((()=>{setTimeout((()=>Ve()))}));return e.observe(P.current),()=>{e.disconnect()}}),[$,null==P?void 0:P.current]),(0,e.useEffect)((()=>{var e;const t=document.querySelector(`[id='${a}']`),n=[...Se,t];W&&n.includes(W)||z(null!==(e=Se[0])&&void 0!==e?e:t)}),[a,Se,W]),(0,e.useEffect)((()=>(F&&De(!0),()=>{Q.current&&clearTimeout(Q.current),ee.current&&clearTimeout(ee.current)})),[]),(0,e.useEffect)((()=>{var e;let t=null!==(e=null==ae?void 0:ae.anchorSelect)&&void 0!==e?e:u;if(!t&&n&&(t=`[data-tooltip-id='${n}']`),t)try{const e=Array.from(document.querySelectorAll(t));Ae(e)}catch(e){Ae([])}}),[n,u,null==ae?void 0:ae.anchorSelect]),(0,e.useEffect)((()=>{Q.current&&(clearTimeout(Q.current),Ie(w))}),[w]);const Ke=null!==(Z=null==ae?void 0:ae.content)&&void 0!==Z?Z:$,Xe=re&&Object.keys(ne.tooltipStyles).length>0;return(0,e.useImperativeHandle)(t,(()=>({open:e=>{if(null==e?void 0:e.anchorSelect)try{document.querySelector(e.anchorSelect)}catch(t){return void console.warn(`[react-tooltip] "${e.anchorSelect}" is not a valid CSS selector`)}ue(null!=e?e:null),(null==e?void 0:e.delay)?Ie(e.delay):De(!0)},close:e=>{(null==e?void 0:e.delay)?je(e.delay):De(!1)},activeAnchor:W,place:ne.place,isOpen:Boolean(ie&&!x&&Ke&&Xe)}))),ie&&!x&&Ke?e.createElement(h,{id:n,role:G,className:se("react-tooltip",Ee.tooltip,_e.tooltip,_e[c],o,`react-tooltip__place-${ne.place}`,Ee[Xe?"show":"closing"],Xe?"react-tooltip__show":"react-tooltip__closing","fixed"===v&&Ee.fixed,_&&Ee.clickable),onTransitionEnd:e=>{te.current&&clearTimeout(te.current),re||"opacity"!==e.propertyName||(ce(!1),ue(null),null==j||j())},style:{...D,...ne.tooltipStyles,opacity:void 0!==K&&Xe?K:void 0},ref:J},Ke,e.createElement(h,{className:se("react-tooltip-arrow",Ee.arrow,_e.arrow,r,E&&Ee.noArrow),style:{...ne.tooltipArrowStyles,background:X?`linear-gradient(to right bottom, transparent 50%, ${X} 50%)`:void 0},ref:U})):null},Ae=({content:t})=>e.createElement("span",{dangerouslySetInnerHTML:{__html:t}}),Te=e.forwardRef((({id:t,anchorId:n,anchorSelect:o,content:r,html:l,render:i,className:c,classNameArrow:s,variant:a="dark",place:u="top",offset:d=10,wrapper:f="div",children:p=null,events:m=["hover"],openOnClick:v=!1,positionStrategy:y="absolute",middlewares:h,delayShow:w=0,delayHide:g=0,float:b=!1,hidden:x=!1,noArrow:E=!1,clickable:_=!1,closeOnEsc:S=!1,closeOnScroll:A=!1,closeOnResize:T=!1,openEvents:R,closeEvents:O,globalCloseEvents:k,imperativeModeOnly:L=!1,style:C,position:D,isOpen:N,defaultIsOpen:I=!1,disableStyleInjection:j=!1,border:$,opacity:P,arrowColor:B,setIsOpen:F,afterShow:H,afterHide:W,role:z="tooltip"},M)=>{const[q,V]=(0,e.useState)(r),[K,X]=(0,e.useState)(l),[G,Y]=(0,e.useState)(u),[Z,J]=(0,e.useState)(a),[U,Q]=(0,e.useState)(d),[ee,te]=(0,e.useState)(w),[ne,oe]=(0,e.useState)(g),[re,le]=(0,e.useState)(b),[ie,ce]=(0,e.useState)(x),[ae,ue]=(0,e.useState)(f),[de,pe]=(0,e.useState)(m),[me,ve]=(0,e.useState)(y),[ye,he]=(0,e.useState)(null),[we,ge]=(0,e.useState)(null),be=(0,e.useRef)(j),{anchorRefs:Ee,activeAnchor:_e}=xe(t),Te=e=>null==e?void 0:e.getAttributeNames().reduce(((t,n)=>{var o;return n.startsWith("data-tooltip-")&&(t[n.replace(/^data-tooltip-/,"")]=null!==(o=null==e?void 0:e.getAttribute(n))&&void 0!==o?o:null),t}),{}),Re=e=>{const t={place:e=>{var t;Y(null!==(t=e)&&void 0!==t?t:u)},content:e=>{V(null!=e?e:r)},html:e=>{X(null!=e?e:l)},variant:e=>{var t;J(null!==(t=e)&&void 0!==t?t:a)},offset:e=>{Q(null===e?d:Number(e))},wrapper:e=>{var t;ue(null!==(t=e)&&void 0!==t?t:f)},events:e=>{const t=null==e?void 0:e.split(" ");pe(null!=t?t:m)},"position-strategy":e=>{var t;ve(null!==(t=e)&&void 0!==t?t:y)},"delay-show":e=>{te(null===e?w:Number(e))},"delay-hide":e=>{oe(null===e?g:Number(e))},float:e=>{le(null===e?b:"true"===e)},hidden:e=>{ce(null===e?x:"true"===e)},"class-name":e=>{he(e)}};Object.values(t).forEach((e=>e(null))),Object.entries(e).forEach((([e,n])=>{var o;null===(o=t[e])||void 0===o||o.call(t,n)}))};(0,e.useEffect)((()=>{V(r)}),[r]),(0,e.useEffect)((()=>{X(l)}),[l]),(0,e.useEffect)((()=>{Y(u)}),[u]),(0,e.useEffect)((()=>{J(a)}),[a]),(0,e.useEffect)((()=>{Q(d)}),[d]),(0,e.useEffect)((()=>{te(w)}),[w]),(0,e.useEffect)((()=>{oe(g)}),[g]),(0,e.useEffect)((()=>{le(b)}),[b]),(0,e.useEffect)((()=>{ce(x)}),[x]),(0,e.useEffect)((()=>{ve(y)}),[y]),(0,e.useEffect)((()=>{be.current!==j&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")}),[j]),(0,e.useEffect)((()=>{"undefined"!=typeof window&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:"core"===j,disableBase:j}}))}),[]),(0,e.useEffect)((()=>{var e;const r=new Set(Ee);let l=o;if(!l&&t&&(l=`[data-tooltip-id='${t}']`),l)try{document.querySelectorAll(l).forEach((e=>{r.add({current:e})}))}catch(e){console.warn(`[react-tooltip] "${l}" is not a valid CSS selector`)}const i=document.querySelector(`[id='${n}']`);if(i&&r.add({current:i}),!r.size)return()=>null;const c=null!==(e=null!=we?we:i)&&void 0!==e?e:_e.current,s=new MutationObserver((e=>{e.forEach((e=>{var t;if(!c||"attributes"!==e.type||!(null===(t=e.attributeName)||void 0===t?void 0:t.startsWith("data-tooltip-")))return;const n=Te(c);Re(n)}))})),a={attributes:!0,childList:!1,subtree:!1};if(c){const e=Te(c);Re(e),s.observe(c,a)}return()=>{s.disconnect()}}),[Ee,_e,we,n,o]),(0,e.useEffect)((()=>{(null==C?void 0:C.border)&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),$&&!fe("border",`${$}`)&&console.warn(`[react-tooltip] "${$}" is not a valid \`border\`.`),(null==C?void 0:C.opacity)&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),P&&!fe("opacity",`${P}`)&&console.warn(`[react-tooltip] "${P}" is not a valid \`opacity\`.`)}),[]);let Oe=p;const ke=(0,e.useRef)(null);if(i){const t=i({content:(null==we?void 0:we.getAttribute("data-tooltip-content"))||q||null,activeAnchor:we});Oe=t?e.createElement("div",{ref:ke,className:"react-tooltip-content-wrapper"},t):null}else q&&(Oe=q);K&&(Oe=e.createElement(Ae,{content:K}));const Le={forwardRef:M,id:t,anchorId:n,anchorSelect:o,className:se(c,ye),classNameArrow:s,content:Oe,contentWrapperRef:ke,place:G,variant:Z,offset:U,wrapper:ae,events:de,openOnClick:v,positionStrategy:me,middlewares:h,delayShow:ee,delayHide:ne,float:re,hidden:ie,noArrow:E,clickable:_,closeOnEsc:S,closeOnScroll:A,closeOnResize:T,openEvents:R,closeEvents:O,globalCloseEvents:k,imperativeModeOnly:L,style:C,position:D,isOpen:N,defaultIsOpen:I,border:$,opacity:P,arrowColor:B,setIsOpen:F,afterShow:H,afterHide:W,activeAnchor:we,setActiveAnchor:e=>ge(e),role:z};return e.createElement(Se,{...Le})}));"undefined"!=typeof window&&window.addEventListener("react-tooltip-inject-styles",(e=>{e.detail.disableCore||ue({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in}",type:"core"}),e.detail.disableBase||ue({css:"\n.styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:8px;height:8px}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}",type:"base"})}));const Re=window.wp.i18n,Oe=window.wp.components;window.wp.data;const ke=({onlineEventLinkDefault:t=""})=>{const n=(0,Re.__)("Online event","gatherpress"),[o,l]=(0,r.useState)(t);return((e,t="")=>{for(const[n,o]of Object.entries(e)){let e=n;t&&(e+="_"+String(t)),addEventListener(e,(e=>{o(e.detail)}),!1)}})({setOnlineEventLink:l},function(e){if("object"==typeof GatherPress)return"eventDetails.postId".split(".").reduce(((e,t)=>e&&e[t]),GatherPress)}()),(0,e.createElement)(Oe.Flex,{justify:"normal",gap:"3"},(0,e.createElement)(Oe.FlexItem,{display:"flex"},(0,e.createElement)(Oe.Icon,{icon:"video-alt2"})),(0,e.createElement)(Oe.FlexItem,null,!o&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("span",{tabIndex:"0",className:"gatherpress-tooltip","data-tooltip-id":"gatherpress-online-event-tooltip","data-tooltip-content":(0,Re.__)("Link available for attendees only.","gatherpress")},n),(0,e.createElement)(Te,{id:"gatherpress-online-event-tooltip"})),o&&(0,e.createElement)("a",{href:o,rel:"noreferrer",target:"_blank"},n)))};o()((()=>{const t=document.querySelectorAll('[data-gatherpress_block_name="online-event"]');for(let o=0;o{var e={6942:(e,t)=>{var n;!function(){"use strict";var o={}.hasOwnProperty;function r(){for(var e="",t=0;t{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=window.React,t=window.wp.domReady;var o=n.n(t);const r=window.wp.element,l=Math.min,i=Math.max,c=Math.round,s=Math.floor,a=e=>({x:e,y:e}),u={left:"right",right:"left",bottom:"top",top:"bottom"},d={start:"end",end:"start"};function f(e,t,n){return i(e,l(t,n))}function p(e,t){return"function"==typeof e?e(t):e}function m(e){return e.split("-")[0]}function v(e){return e.split("-")[1]}function y(e){return"x"===e?"y":"x"}function h(e){return"y"===e?"height":"width"}function w(e){return["top","bottom"].includes(m(e))?"y":"x"}function g(e){return y(w(e))}function b(e){return e.replace(/start|end/g,(e=>d[e]))}function x(e){return e.replace(/left|right|bottom|top/g,(e=>u[e]))}function E(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function _(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function S(e,t,n){let{reference:o,floating:r}=e;const l=w(t),i=g(t),c=h(i),s=m(t),a="y"===l,u=o.x+o.width/2-r.width/2,d=o.y+o.height/2-r.height/2,f=o[c]/2-r[c]/2;let p;switch(s){case"top":p={x:u,y:o.y-r.height};break;case"bottom":p={x:u,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:d};break;case"left":p={x:o.x-r.width,y:d};break;default:p={x:o.x,y:o.y}}switch(v(t)){case"start":p[i]-=f*(n&&a?-1:1);break;case"end":p[i]+=f*(n&&a?-1:1)}return p}async function A(e,t){var n;void 0===t&&(t={});const{x:o,y:r,platform:l,rects:i,elements:c,strategy:s}=e,{boundary:a="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:m=0}=p(t,e),v=E(m),y=c[f?"floating"===d?"reference":"floating":d],h=_(await l.getClippingRect({element:null==(n=await(null==l.isElement?void 0:l.isElement(y)))||n?y:y.contextElement||await(null==l.getDocumentElement?void 0:l.getDocumentElement(c.floating)),boundary:a,rootBoundary:u,strategy:s})),w="floating"===d?{x:o,y:r,width:i.floating.width,height:i.floating.height}:i.reference,g=await(null==l.getOffsetParent?void 0:l.getOffsetParent(c.floating)),b=await(null==l.isElement?void 0:l.isElement(g))&&await(null==l.getScale?void 0:l.getScale(g))||{x:1,y:1},x=_(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:w,offsetParent:g,strategy:s}):w);return{top:(h.top-x.top+v.top)/b.y,bottom:(x.bottom-h.bottom+v.bottom)/b.y,left:(h.left-x.left+v.left)/b.x,right:(x.right-h.right+v.right)/b.x}}function T(e){return k(e)?(e.nodeName||"").toLowerCase():"#document"}function R(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function O(e){var t;return null==(t=(k(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function k(e){return e instanceof Node||e instanceof R(e).Node}function L(e){return e instanceof Element||e instanceof R(e).Element}function C(e){return e instanceof HTMLElement||e instanceof R(e).HTMLElement}function D(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof R(e).ShadowRoot)}function N(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=B(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(r)}function I(e){return["table","td","th"].includes(T(e))}function j(e){const t=$(),n=B(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function $(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function P(e){return["html","body","#document"].includes(T(e))}function B(e){return R(e).getComputedStyle(e)}function F(e){return L(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function H(e){if("html"===T(e))return e;const t=e.assignedSlot||e.parentNode||D(e)&&e.host||O(e);return D(t)?t.host:t}function W(e){const t=H(e);return P(t)?e.ownerDocument?e.ownerDocument.body:e.body:C(t)&&N(t)?t:W(t)}function z(e,t,n){var o;void 0===t&&(t=[]),void 0===n&&(n=!0);const r=W(e),l=r===(null==(o=e.ownerDocument)?void 0:o.body),i=R(r);return l?t.concat(i,i.visualViewport||[],N(r)?r:[],i.frameElement&&n?z(i.frameElement):[]):t.concat(r,z(r,[],n))}function M(e){const t=B(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=C(e),l=r?e.offsetWidth:n,i=r?e.offsetHeight:o,s=c(n)!==l||c(o)!==i;return s&&(n=l,o=i),{width:n,height:o,$:s}}function q(e){return L(e)?e:e.contextElement}function V(e){const t=q(e);if(!C(t))return a(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:l}=M(t);let i=(l?c(n.width):n.width)/o,s=(l?c(n.height):n.height)/r;return i&&Number.isFinite(i)||(i=1),s&&Number.isFinite(s)||(s=1),{x:i,y:s}}const K=a(0);function X(e){const t=R(e);return $()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:K}function G(e,t,n,o){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=e.getBoundingClientRect(),l=q(e);let i=a(1);t&&(o?L(o)&&(i=V(o)):i=V(e));const c=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==R(e))&&t}(l,n,o)?X(l):a(0);let s=(r.left+c.x)/i.x,u=(r.top+c.y)/i.y,d=r.width/i.x,f=r.height/i.y;if(l){const e=R(l),t=o&&L(o)?R(o):o;let n=e,r=n.frameElement;for(;r&&o&&t!==n;){const e=V(r),t=r.getBoundingClientRect(),o=B(r),l=t.left+(r.clientLeft+parseFloat(o.paddingLeft))*e.x,i=t.top+(r.clientTop+parseFloat(o.paddingTop))*e.y;s*=e.x,u*=e.y,d*=e.x,f*=e.y,s+=l,u+=i,n=R(r),r=n.frameElement}}return _({width:d,height:f,x:s,y:u})}const Y=[":popover-open",":modal"];function Z(e){return Y.some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function J(e){return G(O(e)).left+F(e).scrollLeft}function U(e,t,n){let o;if("viewport"===t)o=function(e,t){const n=R(e),o=O(e),r=n.visualViewport;let l=o.clientWidth,i=o.clientHeight,c=0,s=0;if(r){l=r.width,i=r.height;const e=$();(!e||e&&"fixed"===t)&&(c=r.offsetLeft,s=r.offsetTop)}return{width:l,height:i,x:c,y:s}}(e,n);else if("document"===t)o=function(e){const t=O(e),n=F(e),o=e.ownerDocument.body,r=i(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),l=i(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let c=-n.scrollLeft+J(e);const s=-n.scrollTop;return"rtl"===B(o).direction&&(c+=i(t.clientWidth,o.clientWidth)-r),{width:r,height:l,x:c,y:s}}(O(e));else if(L(t))o=function(e,t){const n=G(e,!0,"fixed"===t),o=n.top+e.clientTop,r=n.left+e.clientLeft,l=C(e)?V(e):a(1);return{width:e.clientWidth*l.x,height:e.clientHeight*l.y,x:r*l.x,y:o*l.y}}(t,n);else{const n=X(e);o={...t,x:t.x-n.x,y:t.y-n.y}}return _(o)}function Q(e,t){const n=H(e);return!(n===t||!L(n)||P(n))&&("fixed"===B(n).position||Q(n,t))}function ee(e,t,n){const o=C(t),r=O(t),l="fixed"===n,i=G(e,!0,l,t);let c={scrollLeft:0,scrollTop:0};const s=a(0);if(o||!o&&!l)if(("body"!==T(t)||N(r))&&(c=F(t)),o){const e=G(t,!0,l,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else r&&(s.x=J(r));return{x:i.left+c.scrollLeft-s.x,y:i.top+c.scrollTop-s.y,width:i.width,height:i.height}}function te(e){return"static"===B(e).position}function ne(e,t){return C(e)&&"fixed"!==B(e).position?t?t(e):e.offsetParent:null}function oe(e,t){const n=R(e);if(Z(e))return n;if(!C(e)){let t=H(e);for(;t&&!P(t);){if(L(t)&&!te(t))return t;t=H(t)}return n}let o=ne(e,t);for(;o&&I(o)&&te(o);)o=ne(o,t);return o&&P(o)&&te(o)&&!j(o)?n:o||function(e){let t=H(e);for(;C(t)&&!P(t);){if(j(t))return t;t=H(t)}return null}(e)||n}const re={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const l="fixed"===r,i=O(o),c=!!t&&Z(t.floating);if(o===i||c&&l)return n;let s={scrollLeft:0,scrollTop:0},u=a(1);const d=a(0),f=C(o);if((f||!f&&!l)&&(("body"!==T(o)||N(i))&&(s=F(o)),C(o))){const e=G(o);u=V(o),d.x=e.x+o.clientLeft,d.y=e.y+o.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-s.scrollLeft*u.x+d.x,y:n.y*u.y-s.scrollTop*u.y+d.y}},getDocumentElement:O,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const c=[..."clippingAncestors"===n?Z(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let o=z(e,[],!1).filter((e=>L(e)&&"body"!==T(e))),r=null;const l="fixed"===B(e).position;let i=l?H(e):e;for(;L(i)&&!P(i);){const t=B(i),n=j(i);n||"fixed"!==t.position||(r=null),(l?!n&&!r:!n&&"static"===t.position&&r&&["absolute","fixed"].includes(r.position)||N(i)&&!n&&Q(e,i))?o=o.filter((e=>e!==i)):r=t,i=H(i)}return t.set(e,o),o}(t,this._c):[].concat(n),o],s=c[0],a=c.reduce(((e,n)=>{const o=U(t,n,r);return e.top=i(o.top,e.top),e.right=l(o.right,e.right),e.bottom=l(o.bottom,e.bottom),e.left=i(o.left,e.left),e}),U(t,s,r));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:oe,getElementRects:async function(e){const t=this.getOffsetParent||oe,n=this.getDimensions,o=await n(e.floating);return{reference:ee(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=M(e);return{width:t,height:n}},getScale:V,isElement:L,isRTL:function(e){return"rtl"===B(e).direction}};const le=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:l,placement:i,middlewareData:c}=t,s=await async function(e,t){const{placement:n,platform:o,elements:r}=e,l=await(null==o.isRTL?void 0:o.isRTL(r.floating)),i=m(n),c=v(n),s="y"===w(n),a=["left","top"].includes(i)?-1:1,u=l&&s?-1:1,d=p(t,e);let{mainAxis:f,crossAxis:y,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return c&&"number"==typeof h&&(y="end"===c?-1*h:h),s?{x:y*u,y:f*a}:{x:f*a,y:y*u}}(t,e);return i===(null==(n=c.offset)?void 0:n.placement)&&null!=(o=c.arrow)&&o.alignmentOffset?{}:{x:r+s.x,y:l+s.y,data:{...s,placement:i}}}}},ie=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:l=!0,crossAxis:i=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=p(e,t),a={x:n,y:o},u=await A(t,s),d=w(m(r)),v=y(d);let h=a[v],g=a[d];if(l){const e="y"===v?"bottom":"right";h=f(h+u["y"===v?"top":"left"],h,h-u[e])}if(i){const e="y"===d?"bottom":"right";g=f(g+u["y"===d?"top":"left"],g,g-u[e])}const b=c.fn({...t,[v]:h,[d]:g});return{...b,data:{x:b.x-n,y:b.y-o}}}}},ce=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:l,rects:i,initialPlacement:c,platform:s,elements:a}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:E=!0,..._}=p(e,t);if(null!=(n=l.arrow)&&n.alignmentOffset)return{};const S=m(r),T=m(c)===c,R=await(null==s.isRTL?void 0:s.isRTL(a.floating)),O=f||(T||!E?[x(c)]:function(e){const t=x(e);return[b(e),t,b(t)]}(c));f||"none"===w||O.push(...function(e,t,n,o){const r=v(e);let l=function(e,t,n){const o=["left","right"],r=["right","left"],l=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?r:o:t?o:r;case"left":case"right":return t?l:i;default:return[]}}(m(e),"start"===n,o);return r&&(l=l.map((e=>e+"-"+r)),t&&(l=l.concat(l.map(b)))),l}(c,E,w,R));const k=[c,...O],L=await A(t,_),C=[];let D=(null==(o=l.flip)?void 0:o.overflows)||[];if(u&&C.push(L[S]),d){const e=function(e,t,n){void 0===n&&(n=!1);const o=v(e),r=g(e),l=h(r);let i="x"===r?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[l]>t.floating[l]&&(i=x(i)),[i,x(i)]}(r,i,R);C.push(L[e[0]],L[e[1]])}if(D=[...D,{placement:r,overflows:C}],!C.every((e=>e<=0))){var N,I;const e=((null==(N=l.flip)?void 0:N.index)||0)+1,t=k[e];if(t)return{data:{index:e,overflows:D},reset:{placement:t}};let n=null==(I=D.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:I.placement;if(!n)switch(y){case"bestFit":{var j;const e=null==(j=D.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:j[0];e&&(n=e);break}case"initialPlacement":n=c}if(r!==n)return{reset:{placement:n}}}return{}}}},se=(e,t,n)=>{const o=new Map,r={platform:re,...n},l={...r.platform,_c:o};return(async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:l=[],platform:i}=n,c=l.filter(Boolean),s=await(null==i.isRTL?void 0:i.isRTL(t));let a=await i.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:d}=S(a,o,s),f=o,p={},m=0;for(let n=0;n{if(!e)return{tooltipStyles:{},tooltipArrowStyles:{},place:o};if(null===t)return{tooltipStyles:{},tooltipArrowStyles:{},place:o};const a=c;return n?(a.push({name:"arrow",options:u={element:n,padding:5},async fn(e){const{x:t,y:n,placement:o,rects:r,platform:i,elements:c,middlewareData:s}=e,{element:a,padding:d=0}=p(u,e)||{};if(null==a)return{};const m=E(d),y={x:t,y:n},w=g(o),b=h(w),x=await i.getDimensions(a),_="y"===w,S=_?"top":"left",A=_?"bottom":"right",T=_?"clientHeight":"clientWidth",R=r.reference[b]+r.reference[w]-y[w]-r.floating[b],O=y[w]-r.reference[w],k=await(null==i.getOffsetParent?void 0:i.getOffsetParent(a));let L=k?k[T]:0;L&&await(null==i.isElement?void 0:i.isElement(k))||(L=c.floating[T]||r.floating[b]);const C=R/2-O/2,D=L/2-x[b]/2-1,N=l(m[S],D),I=l(m[A],D),j=N,$=L-x[b]-I,P=L/2-x[b]/2+C,B=f(j,P,$),F=!s.arrow&&null!=v(o)&&P!==B&&r.reference[b]/2-(P{var r,l;const i={left:`${e}px`,top:`${t}px`,border:s},{x:c,y:a}=null!==(r=o.arrow)&&void 0!==r?r:{x:0,y:0},u=null!==(l={top:"bottom",right:"left",bottom:"top",left:"right"}[n.split("-")[0]])&&void 0!==l?l:"bottom",d=s&&{borderBottom:s,borderRight:s};let f=0;if(s){const e=`${s}`.match(/(\d+)px/);f=(null==e?void 0:e[1])?Number(e[1]):1}return{tooltipStyles:i,tooltipArrowStyles:{left:null!=c?`${c}px`:"",top:null!=a?`${a}px`:"",right:"",bottom:"",...d,[u]:`-${4+f}px`},place:n}}))):se(e,t,{placement:"bottom",strategy:i,middleware:a}).then((({x:e,y:t,placement:n})=>({tooltipStyles:{left:`${e}px`,top:`${t}px`},tooltipArrowStyles:{},place:n})));var u},pe=(e,t)=>!("CSS"in window&&"supports"in window.CSS)||window.CSS.supports(e,t),me=(e,t,n)=>{let o=null;const r=function(...r){const l=()=>{o=null,n||e.apply(this,r)};n&&!o&&(e.apply(this,r),o=setTimeout(l,t)),n||(o&&clearTimeout(o),o=setTimeout(l,t))};return r.cancel=()=>{o&&(clearTimeout(o),o=null)},r},ve=e=>null!==e&&!Array.isArray(e)&&"object"==typeof e,ye=(e,t)=>{if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&e.every(((e,n)=>ye(e,t[n])));if(Array.isArray(e)!==Array.isArray(t))return!1;if(!ve(e)||!ve(t))return e===t;const n=Object.keys(e),o=Object.keys(t);return n.length===o.length&&n.every((n=>ye(e[n],t[n])))},he=e=>{if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;const t=getComputedStyle(e);return["overflow","overflow-x","overflow-y"].some((e=>{const n=t.getPropertyValue(e);return"auto"===n||"scroll"===n}))},we=e=>{if(!e)return null;let t=e.parentElement;for(;t;){if(he(t))return t;t=t.parentElement}return document.scrollingElement||document.documentElement},ge="undefined"!=typeof window?e.useLayoutEffect:e.useEffect,be={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},xe=(0,e.createContext)({getTooltipData:()=>be});function Ee(t="DEFAULT_TOOLTIP_ID"){return(0,e.useContext)(xe).getTooltipData(t)}var _e={tooltip:"core-styles-module_tooltip__3vRRp",fixed:"core-styles-module_fixed__pcSol",arrow:"core-styles-module_arrow__cvMwQ",noArrow:"core-styles-module_noArrow__xock6",clickable:"core-styles-module_clickable__ZuTTB",show:"core-styles-module_show__Nt9eE",closing:"core-styles-module_closing__sGnxF"},Se={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const Ae=({forwardRef:t,id:n,className:o,classNameArrow:r,variant:c="dark",anchorId:a,anchorSelect:u,place:d="top",offset:f=10,events:p=["hover"],openOnClick:m=!1,positionStrategy:v="absolute",middlewares:y,wrapper:h,delayShow:w=0,delayHide:g=0,float:b=!1,hidden:x=!1,noArrow:E=!1,clickable:_=!1,closeOnEsc:S=!1,closeOnScroll:A=!1,closeOnResize:T=!1,openEvents:R,closeEvents:k,globalCloseEvents:L,imperativeModeOnly:C,style:D,position:N,afterShow:I,afterHide:j,content:$,contentWrapperRef:P,isOpen:B,defaultIsOpen:F=!1,setIsOpen:H,activeAnchor:W,setActiveAnchor:M,border:V,opacity:K,arrowColor:X,role:Y="tooltip"})=>{var Z;const J=(0,e.useRef)(null),U=(0,e.useRef)(null),Q=(0,e.useRef)(null),ee=(0,e.useRef)(null),te=(0,e.useRef)(null),[ne,oe]=(0,e.useState)({tooltipStyles:{},tooltipArrowStyles:{},place:d}),[re,le]=(0,e.useState)(!1),[ie,ce]=(0,e.useState)(!1),[se,ue]=(0,e.useState)(null),de=(0,e.useRef)(!1),pe=(0,e.useRef)(null),{anchorRefs:ve,setActiveAnchor:he}=Ee(n),be=(0,e.useRef)(!1),[xe,Ae]=(0,e.useState)([]),Te=(0,e.useRef)(!1),Re=m||p.includes("click"),Oe=Re||(null==R?void 0:R.click)||(null==R?void 0:R.dblclick)||(null==R?void 0:R.mousedown),ke=R?{...R}:{mouseenter:!0,focus:!0,click:!1,dblclick:!1,mousedown:!1};!R&&Re&&Object.assign(ke,{mouseenter:!1,focus:!1,click:!0});const Le=k?{...k}:{mouseleave:!0,blur:!0,click:!1,dblclick:!1,mouseup:!1};!k&&Re&&Object.assign(Le,{mouseleave:!1,blur:!1});const Ce=L?{...L}:{escape:S||!1,scroll:A||!1,resize:T||!1,clickOutsideAnchor:Oe||!1};C&&(Object.assign(ke,{mouseenter:!1,focus:!1,click:!1,dblclick:!1,mousedown:!1}),Object.assign(Le,{mouseleave:!1,blur:!1,click:!1,dblclick:!1,mouseup:!1}),Object.assign(Ce,{escape:!1,scroll:!1,resize:!1,clickOutsideAnchor:!1})),ge((()=>(Te.current=!0,()=>{Te.current=!1})),[]);const De=e=>{Te.current&&(e&&ce(!0),setTimeout((()=>{Te.current&&(null==H||H(e),void 0===B&&le(e))}),10))};(0,e.useEffect)((()=>{if(void 0===B)return()=>null;B&&ce(!0);const e=setTimeout((()=>{le(B)}),10);return()=>{clearTimeout(e)}}),[B]),(0,e.useEffect)((()=>{if(re!==de.current)if(te.current&&clearTimeout(te.current),de.current=re,re)null==I||I();else{const e=(e=>{const t=getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay").match(/^([\d.]+)(ms|s)$/);if(!t)return 0;const[,n,o]=t;return Number(n)*("ms"===o?1:1e3)})();te.current=setTimeout((()=>{ce(!1),ue(null),null==j||j()}),e+25)}}),[re]);const Ne=e=>{oe((t=>ye(t,e)?t:e))},Ie=(e=w)=>{Q.current&&clearTimeout(Q.current),ie?De(!0):Q.current=setTimeout((()=>{De(!0)}),e)},je=(e=g)=>{ee.current&&clearTimeout(ee.current),ee.current=setTimeout((()=>{be.current||De(!1)}),e)},$e=e=>{var t;if(!e)return;const n=null!==(t=e.currentTarget)&&void 0!==t?t:e.target;if(!(null==n?void 0:n.isConnected))return M(null),void he({current:null});w?Ie():De(!0),M(n),he({current:n}),ee.current&&clearTimeout(ee.current)},Pe=()=>{_?je(g||100):g?je():De(!1),Q.current&&clearTimeout(Q.current)},Be=({x:e,y:t})=>{var n;const o={getBoundingClientRect:()=>({x:e,y:t,width:0,height:0,top:t,left:e,right:e,bottom:t})};fe({place:null!==(n=null==se?void 0:se.place)&&void 0!==n?n:d,offset:f,elementReference:o,tooltipReference:J.current,tooltipArrowReference:U.current,strategy:v,middlewares:y,border:V}).then((e=>{Ne(e)}))},Fe=e=>{if(!e)return;const t=e,n={x:t.clientX,y:t.clientY};Be(n),pe.current=n},He=e=>{var t;if(!re)return;const n=e.target;n.isConnected&&((null===(t=J.current)||void 0===t?void 0:t.contains(n))||[document.querySelector(`[id='${a}']`),...xe].some((e=>null==e?void 0:e.contains(n)))||(De(!1),Q.current&&clearTimeout(Q.current)))},We=me($e,50,!0),ze=me(Pe,50,!0),Me=e=>{ze.cancel(),We(e)},qe=()=>{We.cancel(),ze()},Ve=(0,e.useCallback)((()=>{var e,t;const n=null!==(e=null==se?void 0:se.position)&&void 0!==e?e:N;n?Be(n):b?pe.current&&Be(pe.current):(null==W?void 0:W.isConnected)&&fe({place:null!==(t=null==se?void 0:se.place)&&void 0!==t?t:d,offset:f,elementReference:W,tooltipReference:J.current,tooltipArrowReference:U.current,strategy:v,middlewares:y,border:V}).then((e=>{Te.current&&Ne(e)}))}),[re,W,$,D,d,null==se?void 0:se.place,f,v,N,null==se?void 0:se.position,b]);(0,e.useEffect)((()=>{var e,t;const n=new Set(ve);xe.forEach((e=>{n.add({current:e})}));const o=document.querySelector(`[id='${a}']`);o&&n.add({current:o});const r=()=>{De(!1)},c=we(W),u=we(J.current);Ce.scroll&&(window.addEventListener("scroll",r),null==c||c.addEventListener("scroll",r),null==u||u.addEventListener("scroll",r));let d=null;Ce.resize?window.addEventListener("resize",r):W&&J.current&&(d=function(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:c=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:u="function"==typeof IntersectionObserver,animationFrame:d=!1}=o,f=q(e),p=r||c?[...f?z(f):[],...z(t)]:[];p.forEach((e=>{r&&e.addEventListener("scroll",n,{passive:!0}),c&&e.addEventListener("resize",n)}));const m=f&&u?function(e,t){let n,o=null;const r=O(e);function c(){var e;clearTimeout(n),null==(e=o)||e.disconnect(),o=null}return function a(u,d){void 0===u&&(u=!1),void 0===d&&(d=1),c();const{left:f,top:p,width:m,height:v}=e.getBoundingClientRect();if(u||t(),!m||!v)return;const y={rootMargin:-s(p)+"px "+-s(r.clientWidth-(f+m))+"px "+-s(r.clientHeight-(p+v))+"px "+-s(f)+"px",threshold:i(0,l(1,d))||1};let h=!0;function w(e){const t=e[0].intersectionRatio;if(t!==d){if(!h)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),1e3)}h=!1}try{o=new IntersectionObserver(w,{...y,root:r.ownerDocument})}catch(e){o=new IntersectionObserver(w,y)}o.observe(e)}(!0),c}(f,n):null;let v,y=-1,h=null;a&&(h=new ResizeObserver((e=>{let[o]=e;o&&o.target===f&&h&&(h.unobserve(t),cancelAnimationFrame(y),y=requestAnimationFrame((()=>{var e;null==(e=h)||e.observe(t)}))),n()})),f&&!d&&h.observe(f),h.observe(t));let w=d?G(e):null;return d&&function t(){const o=G(e);!w||o.x===w.x&&o.y===w.y&&o.width===w.width&&o.height===w.height||n(),w=o,v=requestAnimationFrame(t)}(),n(),()=>{var e;p.forEach((e=>{r&&e.removeEventListener("scroll",n),c&&e.removeEventListener("resize",n)})),null==m||m(),null==(e=h)||e.disconnect(),h=null,d&&cancelAnimationFrame(v)}}(W,J.current,Ve,{ancestorResize:!0,elementResize:!0,layoutShift:!0}));const f=e=>{"Escape"===e.key&&De(!1)};Ce.escape&&window.addEventListener("keydown",f),Ce.clickOutsideAnchor&&window.addEventListener("click",He);const p=[],m=e=>{re&&(null==e?void 0:e.target)===W||$e(e)},v=e=>{re&&(null==e?void 0:e.target)===W&&Pe()},y=["mouseenter","mouseleave","focus","blur"],h=["click","dblclick","mousedown","mouseup"];Object.entries(ke).forEach((([e,t])=>{t&&(y.includes(e)?p.push({event:e,listener:Me}):h.includes(e)&&p.push({event:e,listener:m}))})),Object.entries(Le).forEach((([e,t])=>{t&&(y.includes(e)?p.push({event:e,listener:qe}):h.includes(e)&&p.push({event:e,listener:v}))})),b&&p.push({event:"pointermove",listener:Fe});const w=()=>{be.current=!0},g=()=>{be.current=!1,Pe()};return _&&!Oe&&(null===(e=J.current)||void 0===e||e.addEventListener("mouseenter",w),null===(t=J.current)||void 0===t||t.addEventListener("mouseleave",g)),p.forEach((({event:e,listener:t})=>{n.forEach((n=>{var o;null===(o=n.current)||void 0===o||o.addEventListener(e,t)}))})),()=>{var e,t;Ce.scroll&&(window.removeEventListener("scroll",r),null==c||c.removeEventListener("scroll",r),null==u||u.removeEventListener("scroll",r)),Ce.resize?window.removeEventListener("resize",r):null==d||d(),Ce.clickOutsideAnchor&&window.removeEventListener("click",He),Ce.escape&&window.removeEventListener("keydown",f),_&&!Oe&&(null===(e=J.current)||void 0===e||e.removeEventListener("mouseenter",w),null===(t=J.current)||void 0===t||t.removeEventListener("mouseleave",g)),p.forEach((({event:e,listener:t})=>{n.forEach((n=>{var o;null===(o=n.current)||void 0===o||o.removeEventListener(e,t)}))}))}}),[W,Ve,ie,ve,xe,R,k,L,Re,w,g]),(0,e.useEffect)((()=>{var e,t;let o=null!==(t=null!==(e=null==se?void 0:se.anchorSelect)&&void 0!==e?e:u)&&void 0!==t?t:"";!o&&n&&(o=`[data-tooltip-id='${n.replace(/'/g,"\\'")}']`);const r=new MutationObserver((e=>{const t=[],r=[];e.forEach((e=>{if("attributes"===e.type&&"data-tooltip-id"===e.attributeName&&(e.target.getAttribute("data-tooltip-id")===n?t.push(e.target):e.oldValue===n&&r.push(e.target)),"childList"===e.type){if(W){const t=[...e.removedNodes].filter((e=>1===e.nodeType));if(o)try{r.push(...t.filter((e=>e.matches(o)))),r.push(...t.flatMap((e=>[...e.querySelectorAll(o)])))}catch(e){}t.some((e=>{var t;return!!(null===(t=null==e?void 0:e.contains)||void 0===t?void 0:t.call(e,W))&&(ce(!1),De(!1),M(null),Q.current&&clearTimeout(Q.current),ee.current&&clearTimeout(ee.current),!0)}))}if(o)try{const n=[...e.addedNodes].filter((e=>1===e.nodeType));t.push(...n.filter((e=>e.matches(o)))),t.push(...n.flatMap((e=>[...e.querySelectorAll(o)])))}catch(e){}}})),(t.length||r.length)&&Ae((e=>[...e.filter((e=>!r.includes(e))),...t]))}));return r.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"],attributeOldValue:!0}),()=>{r.disconnect()}}),[n,u,null==se?void 0:se.anchorSelect,W]),(0,e.useEffect)((()=>{Ve()}),[Ve]),(0,e.useEffect)((()=>{if(!(null==P?void 0:P.current))return()=>null;const e=new ResizeObserver((()=>{setTimeout((()=>Ve()))}));return e.observe(P.current),()=>{e.disconnect()}}),[$,null==P?void 0:P.current]),(0,e.useEffect)((()=>{var e;const t=document.querySelector(`[id='${a}']`),n=[...xe,t];W&&n.includes(W)||M(null!==(e=xe[0])&&void 0!==e?e:t)}),[a,xe,W]),(0,e.useEffect)((()=>(F&&De(!0),()=>{Q.current&&clearTimeout(Q.current),ee.current&&clearTimeout(ee.current)})),[]),(0,e.useEffect)((()=>{var e;let t=null!==(e=null==se?void 0:se.anchorSelect)&&void 0!==e?e:u;if(!t&&n&&(t=`[data-tooltip-id='${n.replace(/'/g,"\\'")}']`),t)try{const e=Array.from(document.querySelectorAll(t));Ae(e)}catch(e){Ae([])}}),[n,u,null==se?void 0:se.anchorSelect]),(0,e.useEffect)((()=>{Q.current&&(clearTimeout(Q.current),Ie(w))}),[w]);const Ke=null!==(Z=null==se?void 0:se.content)&&void 0!==Z?Z:$,Xe=re&&Object.keys(ne.tooltipStyles).length>0;return(0,e.useImperativeHandle)(t,(()=>({open:e=>{if(null==e?void 0:e.anchorSelect)try{document.querySelector(e.anchorSelect)}catch(t){return void console.warn(`[react-tooltip] "${e.anchorSelect}" is not a valid CSS selector`)}ue(null!=e?e:null),(null==e?void 0:e.delay)?Ie(e.delay):De(!0)},close:e=>{(null==e?void 0:e.delay)?je(e.delay):De(!1)},activeAnchor:W,place:ne.place,isOpen:Boolean(ie&&!x&&Ke&&Xe)}))),ie&&!x&&Ke?e.createElement(h,{id:n,role:Y,className:ae("react-tooltip",_e.tooltip,Se.tooltip,Se[c],o,`react-tooltip__place-${ne.place}`,_e[Xe?"show":"closing"],Xe?"react-tooltip__show":"react-tooltip__closing","fixed"===v&&_e.fixed,_&&_e.clickable),onTransitionEnd:e=>{te.current&&clearTimeout(te.current),re||"opacity"!==e.propertyName||(ce(!1),ue(null),null==j||j())},style:{...D,...ne.tooltipStyles,opacity:void 0!==K&&Xe?K:void 0},ref:J},Ke,e.createElement(h,{className:ae("react-tooltip-arrow",_e.arrow,Se.arrow,r,E&&_e.noArrow),style:{...ne.tooltipArrowStyles,background:X?`linear-gradient(to right bottom, transparent 50%, ${X} 50%)`:void 0},ref:U})):null},Te=({content:t})=>e.createElement("span",{dangerouslySetInnerHTML:{__html:t}}),Re=e.forwardRef((({id:t,anchorId:n,anchorSelect:o,content:r,html:l,render:i,className:c,classNameArrow:s,variant:a="dark",place:u="top",offset:d=10,wrapper:f="div",children:p=null,events:m=["hover"],openOnClick:v=!1,positionStrategy:y="absolute",middlewares:h,delayShow:w=0,delayHide:g=0,float:b=!1,hidden:x=!1,noArrow:E=!1,clickable:_=!1,closeOnEsc:S=!1,closeOnScroll:A=!1,closeOnResize:T=!1,openEvents:R,closeEvents:O,globalCloseEvents:k,imperativeModeOnly:L=!1,style:C,position:D,isOpen:N,defaultIsOpen:I=!1,disableStyleInjection:j=!1,border:$,opacity:P,arrowColor:B,setIsOpen:F,afterShow:H,afterHide:W,role:z="tooltip"},M)=>{const[q,V]=(0,e.useState)(r),[K,X]=(0,e.useState)(l),[G,Y]=(0,e.useState)(u),[Z,J]=(0,e.useState)(a),[U,Q]=(0,e.useState)(d),[ee,te]=(0,e.useState)(w),[ne,oe]=(0,e.useState)(g),[re,le]=(0,e.useState)(b),[ie,ce]=(0,e.useState)(x),[se,ue]=(0,e.useState)(f),[de,fe]=(0,e.useState)(m),[me,ve]=(0,e.useState)(y),[ye,he]=(0,e.useState)(null),[we,ge]=(0,e.useState)(null),be=(0,e.useRef)(j),{anchorRefs:xe,activeAnchor:_e}=Ee(t),Se=e=>null==e?void 0:e.getAttributeNames().reduce(((t,n)=>{var o;return n.startsWith("data-tooltip-")&&(t[n.replace(/^data-tooltip-/,"")]=null!==(o=null==e?void 0:e.getAttribute(n))&&void 0!==o?o:null),t}),{}),Re=e=>{const t={place:e=>{var t;Y(null!==(t=e)&&void 0!==t?t:u)},content:e=>{V(null!=e?e:r)},html:e=>{X(null!=e?e:l)},variant:e=>{var t;J(null!==(t=e)&&void 0!==t?t:a)},offset:e=>{Q(null===e?d:Number(e))},wrapper:e=>{var t;ue(null!==(t=e)&&void 0!==t?t:f)},events:e=>{const t=null==e?void 0:e.split(" ");fe(null!=t?t:m)},"position-strategy":e=>{var t;ve(null!==(t=e)&&void 0!==t?t:y)},"delay-show":e=>{te(null===e?w:Number(e))},"delay-hide":e=>{oe(null===e?g:Number(e))},float:e=>{le(null===e?b:"true"===e)},hidden:e=>{ce(null===e?x:"true"===e)},"class-name":e=>{he(e)}};Object.values(t).forEach((e=>e(null))),Object.entries(e).forEach((([e,n])=>{var o;null===(o=t[e])||void 0===o||o.call(t,n)}))};(0,e.useEffect)((()=>{V(r)}),[r]),(0,e.useEffect)((()=>{X(l)}),[l]),(0,e.useEffect)((()=>{Y(u)}),[u]),(0,e.useEffect)((()=>{J(a)}),[a]),(0,e.useEffect)((()=>{Q(d)}),[d]),(0,e.useEffect)((()=>{te(w)}),[w]),(0,e.useEffect)((()=>{oe(g)}),[g]),(0,e.useEffect)((()=>{le(b)}),[b]),(0,e.useEffect)((()=>{ce(x)}),[x]),(0,e.useEffect)((()=>{ve(y)}),[y]),(0,e.useEffect)((()=>{be.current!==j&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")}),[j]),(0,e.useEffect)((()=>{"undefined"!=typeof window&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:"core"===j,disableBase:j}}))}),[]),(0,e.useEffect)((()=>{var e;const r=new Set(xe);let l=o;if(!l&&t&&(l=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`),l)try{document.querySelectorAll(l).forEach((e=>{r.add({current:e})}))}catch(e){console.warn(`[react-tooltip] "${l}" is not a valid CSS selector`)}const i=document.querySelector(`[id='${n}']`);if(i&&r.add({current:i}),!r.size)return()=>null;const c=null!==(e=null!=we?we:i)&&void 0!==e?e:_e.current,s=new MutationObserver((e=>{e.forEach((e=>{var t;if(!c||"attributes"!==e.type||!(null===(t=e.attributeName)||void 0===t?void 0:t.startsWith("data-tooltip-")))return;const n=Se(c);Re(n)}))})),a={attributes:!0,childList:!1,subtree:!1};if(c){const e=Se(c);Re(e),s.observe(c,a)}return()=>{s.disconnect()}}),[xe,_e,we,n,o]),(0,e.useEffect)((()=>{(null==C?void 0:C.border)&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),$&&!pe("border",`${$}`)&&console.warn(`[react-tooltip] "${$}" is not a valid \`border\`.`),(null==C?void 0:C.opacity)&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),P&&!pe("opacity",`${P}`)&&console.warn(`[react-tooltip] "${P}" is not a valid \`opacity\`.`)}),[]);let Oe=p;const ke=(0,e.useRef)(null);if(i){const t=i({content:(null==we?void 0:we.getAttribute("data-tooltip-content"))||q||null,activeAnchor:we});Oe=t?e.createElement("div",{ref:ke,className:"react-tooltip-content-wrapper"},t):null}else q&&(Oe=q);K&&(Oe=e.createElement(Te,{content:K}));const Le={forwardRef:M,id:t,anchorId:n,anchorSelect:o,className:ae(c,ye),classNameArrow:s,content:Oe,contentWrapperRef:ke,place:G,variant:Z,offset:U,wrapper:se,events:de,openOnClick:v,positionStrategy:me,middlewares:h,delayShow:ee,delayHide:ne,float:re,hidden:ie,noArrow:E,clickable:_,closeOnEsc:S,closeOnScroll:A,closeOnResize:T,openEvents:R,closeEvents:O,globalCloseEvents:k,imperativeModeOnly:L,style:C,position:D,isOpen:N,defaultIsOpen:I,border:$,opacity:P,arrowColor:B,setIsOpen:F,afterShow:H,afterHide:W,activeAnchor:we,setActiveAnchor:e=>ge(e),role:z};return e.createElement(Ae,{...Le})}));"undefined"!=typeof window&&window.addEventListener("react-tooltip-inject-styles",(e=>{e.detail.disableCore||de({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in}",type:"core"}),e.detail.disableBase||de({css:"\n.styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:8px;height:8px}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}",type:"base"})}));const Oe=window.wp.i18n,ke=window.wp.components;window.wp.data;const Le=({onlineEventLinkDefault:t=""})=>{const n=(0,Oe.__)("Online event","gatherpress"),[o,l]=(0,r.useState)(t);return((e,t="")=>{for(const[n,o]of Object.entries(e)){let e=n;t&&(e+="_"+String(t)),addEventListener(e,(e=>{o(e.detail)}),!1)}})({setOnlineEventLink:l},function(e){if("object"==typeof GatherPress)return"eventDetails.postId".split(".").reduce(((e,t)=>e&&e[t]),GatherPress)}()),(0,e.createElement)(ke.Flex,{justify:"normal",gap:"3"},(0,e.createElement)(ke.FlexItem,{display:"flex"},(0,e.createElement)(ke.Icon,{icon:"video-alt2"})),(0,e.createElement)(ke.FlexItem,null,!o&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("span",{tabIndex:"0",className:"gatherpress-tooltip","data-tooltip-id":"gatherpress-online-event-tooltip","data-tooltip-content":(0,Oe.__)("Link available for attendees only.","gatherpress")},n),(0,e.createElement)(Re,{id:"gatherpress-online-event-tooltip"})),o&&(0,e.createElement)("a",{href:o,rel:"noreferrer",target:"_blank"},n)))};o()((()=>{const t=document.querySelectorAll('[data-gatherpress_block_name="online-event"]');for(let o=0;o array('react', 'react-dom', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => '2999d8fa4ee33d0629f3'); + array('react', 'react-dom', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => '66dc6181d71b53497b9b'); diff --git a/build/blocks/rsvp/index.js b/build/blocks/rsvp/index.js index e0403e7e0..96e5948cb 100644 --- a/build/blocks/rsvp/index.js +++ b/build/blocks/rsvp/index.js @@ -1,5 +1,5 @@ -(()=>{var e,t={2753:(e,t,n)=>{"use strict";const o=window.wp.blocks;var r=n(1609);const i=window.wp.blockEditor;var a=n(312),l=n.n(a),s=n(442);const c=s.default||s,u=Math.min,d=Math.max,p=Math.round,f=Math.floor,h=e=>({x:e,y:e}),m={left:"right",right:"left",bottom:"top",top:"bottom"},y={start:"end",end:"start"};function v(e,t,n){return d(e,u(t,n))}function g(e,t){return"function"==typeof e?e(t):e}function b(e){return e.split("-")[0]}function w(e){return e.split("-")[1]}function _(e){return"x"===e?"y":"x"}function E(e){return"y"===e?"height":"width"}function x(e){return["top","bottom"].includes(b(e))?"y":"x"}function S(e){return _(x(e))}function O(e){return e.replace(/start|end/g,(e=>y[e]))}function C(e){return e.replace(/left|right|bottom|top/g,(e=>m[e]))}function T(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function k(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function A(e,t,n){let{reference:o,floating:r}=e;const i=x(t),a=S(t),l=E(a),s=b(t),c="y"===i,u=o.x+o.width/2-r.width/2,d=o.y+o.height/2-r.height/2,p=o[l]/2-r[l]/2;let f;switch(s){case"top":f={x:u,y:o.y-r.height};break;case"bottom":f={x:u,y:o.y+o.height};break;case"right":f={x:o.x+o.width,y:d};break;case"left":f={x:o.x-r.width,y:d};break;default:f={x:o.x,y:o.y}}switch(w(t)){case"start":f[a]-=p*(n&&c?-1:1);break;case"end":f[a]+=p*(n&&c?-1:1)}return f}async function R(e,t){var n;void 0===t&&(t={});const{x:o,y:r,platform:i,rects:a,elements:l,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:f=0}=g(t,e),h=T(f),m=l[p?"floating"===d?"reference":"floating":d],y=k(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(l.floating)),boundary:c,rootBoundary:u,strategy:s})),v="floating"===d?{...a.floating,x:o,y:r}:a.reference,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(l.floating)),w=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},_=k(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:v,offsetParent:b,strategy:s}):v);return{top:(y.top-_.top+h.top)/w.y,bottom:(_.bottom-y.bottom+h.bottom)/w.y,left:(y.left-_.left+h.left)/w.x,right:(_.right-y.right+h.right)/w.x}}const N=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:i,placement:a,middlewareData:l}=t,s=await async function(e,t){const{placement:n,platform:o,elements:r}=e,i=await(null==o.isRTL?void 0:o.isRTL(r.floating)),a=b(n),l=w(n),s="y"===x(n),c=["left","top"].includes(a)?-1:1,u=i&&s?-1:1,d=g(t,e);let{mainAxis:p,crossAxis:f,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return l&&"number"==typeof h&&(f="end"===l?-1*h:h),s?{x:f*u,y:p*c}:{x:p*c,y:f*u}}(t,e);return a===(null==(n=l.offset)?void 0:n.placement)&&null!=(o=l.arrow)&&o.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}};function P(e){return D(e)?(e.nodeName||"").toLowerCase():"#document"}function M(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function L(e){var t;return null==(t=(D(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function D(e){return e instanceof Node||e instanceof M(e).Node}function j(e){return e instanceof Element||e instanceof M(e).Element}function I(e){return e instanceof HTMLElement||e instanceof M(e).HTMLElement}function F(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof M(e).ShadowRoot)}function B(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=z(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(r)}function H(e){return["table","td","th"].includes(P(e))}function U(e){const t=W(),n=z(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function W(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function V(e){return["html","body","#document"].includes(P(e))}function z(e){return M(e).getComputedStyle(e)}function q(e){return j(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function $(e){if("html"===P(e))return e;const t=e.assignedSlot||e.parentNode||F(e)&&e.host||L(e);return F(t)?t.host:t}function G(e){const t=$(e);return V(t)?e.ownerDocument?e.ownerDocument.body:e.body:I(t)&&B(t)?t:G(t)}function X(e,t,n){var o;void 0===t&&(t=[]),void 0===n&&(n=!0);const r=G(e),i=r===(null==(o=e.ownerDocument)?void 0:o.body),a=M(r);return i?t.concat(a,a.visualViewport||[],B(r)?r:[],a.frameElement&&n?X(a.frameElement):[]):t.concat(r,X(r,[],n))}function Y(e){const t=z(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=I(e),i=r?e.offsetWidth:n,a=r?e.offsetHeight:o,l=p(n)!==i||p(o)!==a;return l&&(n=i,o=a),{width:n,height:o,$:l}}function K(e){return j(e)?e:e.contextElement}function Z(e){const t=K(e);if(!I(t))return h(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=Y(t);let a=(i?p(n.width):n.width)/o,l=(i?p(n.height):n.height)/r;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}const J=h(0);function Q(e){const t=M(e);return W()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:J}function ee(e,t,n,o){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=e.getBoundingClientRect(),i=K(e);let a=h(1);t&&(o?j(o)&&(a=Z(o)):a=Z(e));const l=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==M(e))&&t}(i,n,o)?Q(i):h(0);let s=(r.left+l.x)/a.x,c=(r.top+l.y)/a.y,u=r.width/a.x,d=r.height/a.y;if(i){const e=M(i),t=o&&j(o)?M(o):o;let n=e,r=n.frameElement;for(;r&&o&&t!==n;){const e=Z(r),t=r.getBoundingClientRect(),o=z(r),i=t.left+(r.clientLeft+parseFloat(o.paddingLeft))*e.x,a=t.top+(r.clientTop+parseFloat(o.paddingTop))*e.y;s*=e.x,c*=e.y,u*=e.x,d*=e.y,s+=i,c+=a,n=M(r),r=n.frameElement}}return k({width:u,height:d,x:s,y:c})}const te=[":popover-open",":modal"];function ne(e){return te.some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function oe(e){return ee(L(e)).left+q(e).scrollLeft}function re(e,t,n){let o;if("viewport"===t)o=function(e,t){const n=M(e),o=L(e),r=n.visualViewport;let i=o.clientWidth,a=o.clientHeight,l=0,s=0;if(r){i=r.width,a=r.height;const e=W();(!e||e&&"fixed"===t)&&(l=r.offsetLeft,s=r.offsetTop)}return{width:i,height:a,x:l,y:s}}(e,n);else if("document"===t)o=function(e){const t=L(e),n=q(e),o=e.ownerDocument.body,r=d(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),i=d(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let a=-n.scrollLeft+oe(e);const l=-n.scrollTop;return"rtl"===z(o).direction&&(a+=d(t.clientWidth,o.clientWidth)-r),{width:r,height:i,x:a,y:l}}(L(e));else if(j(t))o=function(e,t){const n=ee(e,!0,"fixed"===t),o=n.top+e.clientTop,r=n.left+e.clientLeft,i=I(e)?Z(e):h(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:r*i.x,y:o*i.y}}(t,n);else{const n=Q(e);o={...t,x:t.x-n.x,y:t.y-n.y}}return k(o)}function ie(e,t){const n=$(e);return!(n===t||!j(n)||V(n))&&("fixed"===z(n).position||ie(n,t))}function ae(e,t,n){const o=I(t),r=L(t),i="fixed"===n,a=ee(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const s=h(0);if(o||!o&&!i)if(("body"!==P(t)||B(r))&&(l=q(t)),o){const e=ee(t,!0,i,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else r&&(s.x=oe(r));return{x:a.left+l.scrollLeft-s.x,y:a.top+l.scrollTop-s.y,width:a.width,height:a.height}}function le(e,t){return I(e)&&"fixed"!==z(e).position?t?t(e):e.offsetParent:null}function se(e,t){const n=M(e);if(!I(e)||ne(e))return n;let o=le(e,t);for(;o&&H(o)&&"static"===z(o).position;)o=le(o,t);return o&&("html"===P(o)||"body"===P(o)&&"static"===z(o).position&&!U(o))?n:o||function(e){let t=$(e);for(;I(t)&&!V(t);){if(U(t))return t;t=$(t)}return null}(e)||n}const ce={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const i="fixed"===r,a=L(o),l=!!t&&ne(t.floating);if(o===a||l&&i)return n;let s={scrollLeft:0,scrollTop:0},c=h(1);const u=h(0),d=I(o);if((d||!d&&!i)&&(("body"!==P(o)||B(a))&&(s=q(o)),I(o))){const e=ee(o);c=Z(o),u.x=e.x+o.clientLeft,u.y=e.y+o.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-s.scrollLeft*c.x+u.x,y:n.y*c.y-s.scrollTop*c.y+u.y}},getDocumentElement:L,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const i=[..."clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let o=X(e,[],!1).filter((e=>j(e)&&"body"!==P(e))),r=null;const i="fixed"===z(e).position;let a=i?$(e):e;for(;j(a)&&!V(a);){const t=z(a),n=U(a);n||"fixed"!==t.position||(r=null),(i?!n&&!r:!n&&"static"===t.position&&r&&["absolute","fixed"].includes(r.position)||B(a)&&!n&&ie(e,a))?o=o.filter((e=>e!==a)):r=t,a=$(a)}return t.set(e,o),o}(t,this._c):[].concat(n),o],a=i[0],l=i.reduce(((e,n)=>{const o=re(t,n,r);return e.top=d(o.top,e.top),e.right=u(o.right,e.right),e.bottom=u(o.bottom,e.bottom),e.left=d(o.left,e.left),e}),re(t,a,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:se,getElementRects:async function(e){const t=this.getOffsetParent||se,n=this.getDimensions;return{reference:ae(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,...await n(e.floating)}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=Y(e);return{width:t,height:n}},getScale:Z,isElement:j,isRTL:function(e){return"rtl"===z(e).direction}};const ue=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=g(e,t),c={x:n,y:o},u=await R(t,s),d=x(b(r)),p=_(d);let f=c[p],h=c[d];if(i){const e="y"===p?"bottom":"right";f=v(f+u["y"===p?"top":"left"],f,f-u[e])}if(a){const e="y"===d?"bottom":"right";h=v(h+u["y"===d?"top":"left"],h,h-u[e])}const m=l.fn({...t,[p]:f,[d]:h});return{...m,data:{x:m.x-n,y:m.y-o}}}}},de=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:i,rects:a,initialPlacement:l,platform:s,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...y}=g(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const v=b(r),_=b(l)===l,x=await(null==s.isRTL?void 0:s.isRTL(c.floating)),T=p||(_||!m?[C(l)]:function(e){const t=C(e);return[O(e),t,O(t)]}(l));p||"none"===h||T.push(...function(e,t,n,o){const r=w(e);let i=function(e,t,n){const o=["left","right"],r=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?r:o:t?o:r;case"left":case"right":return t?i:a;default:return[]}}(b(e),"start"===n,o);return r&&(i=i.map((e=>e+"-"+r)),t&&(i=i.concat(i.map(O)))),i}(l,m,h,x));const k=[l,...T],A=await R(t,y),N=[];let P=(null==(o=i.flip)?void 0:o.overflows)||[];if(u&&N.push(A[v]),d){const e=function(e,t,n){void 0===n&&(n=!1);const o=w(e),r=S(e),i=E(r);let a="x"===r?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=C(a)),[a,C(a)]}(r,a,x);N.push(A[e[0]],A[e[1]])}if(P=[...P,{placement:r,overflows:N}],!N.every((e=>e<=0))){var M,L;const e=((null==(M=i.flip)?void 0:M.index)||0)+1,t=k[e];if(t)return{data:{index:e,overflows:P},reset:{placement:t}};let n=null==(L=P.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:L.placement;if(!n)switch(f){case"bestFit":{var D;const e=null==(D=P.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:D[0];e&&(n=e);break}case"initialPlacement":n=l}if(r!==n)return{reset:{placement:n}}}return{}}}},pe=(e,t,n)=>{const o=new Map,r={platform:ce,...n},i={...r.platform,_c:o};return(async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:a}=n,l=i.filter(Boolean),s=await(null==a.isRTL?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:d}=A(c,o,s),p=o,f={},h=0;for(let n=0;n{if(!e)return{tooltipStyles:{},tooltipArrowStyles:{},place:o};if(null===t)return{tooltipStyles:{},tooltipArrowStyles:{},place:o};const s=a;return n?(s.push({name:"arrow",options:c={element:n,padding:5},async fn(e){const{x:t,y:n,placement:o,rects:r,platform:i,elements:a,middlewareData:l}=e,{element:s,padding:d=0}=g(c,e)||{};if(null==s)return{};const p=T(d),f={x:t,y:n},h=S(o),m=E(h),y=await i.getDimensions(s),b="y"===h,_=b?"top":"left",x=b?"bottom":"right",O=b?"clientHeight":"clientWidth",C=r.reference[m]+r.reference[h]-f[h]-r.floating[m],k=f[h]-r.reference[h],A=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s));let R=A?A[O]:0;R&&await(null==i.isElement?void 0:i.isElement(A))||(R=a.floating[O]||r.floating[m]);const N=C/2-k/2,P=R/2-y[m]/2-1,M=u(p[_],P),L=u(p[x],P),D=M,j=R-y[m]-L,I=R/2-y[m]/2+N,F=v(D,I,j),B=!l.arrow&&null!=w(o)&&I!==F&&r.reference[m]/2-(I{var r,i;const a={left:`${e}px`,top:`${t}px`,border:l},{x:s,y:c}=null!==(r=o.arrow)&&void 0!==r?r:{x:0,y:0},u=null!==(i={top:"bottom",right:"left",bottom:"top",left:"right"}[n.split("-")[0]])&&void 0!==i?i:"bottom",d=l&&{borderBottom:l,borderRight:l};let p=0;if(l){const e=`${l}`.match(/(\d+)px/);p=(null==e?void 0:e[1])?Number(e[1]):1}return{tooltipStyles:a,tooltipArrowStyles:{left:null!=s?`${s}px`:"",top:null!=c?`${c}px`:"",right:"",bottom:"",...d,[u]:`-${4+p}px`},place:n}}))):pe(e,t,{placement:"bottom",strategy:i,middleware:s}).then((({x:e,y:t,placement:n})=>({tooltipStyles:{left:`${e}px`,top:`${t}px`},tooltipArrowStyles:{},place:n})));var c},ve=(e,t)=>!("CSS"in window&&"supports"in window.CSS)||window.CSS.supports(e,t),ge=(e,t,n)=>{let o=null;const r=function(...r){const i=()=>{o=null,n||e.apply(this,r)};n&&!o&&(e.apply(this,r),o=setTimeout(i,t)),n||(o&&clearTimeout(o),o=setTimeout(i,t))};return r.cancel=()=>{o&&(clearTimeout(o),o=null)},r},be=e=>null!==e&&!Array.isArray(e)&&"object"==typeof e,we=(e,t)=>{if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&e.every(((e,n)=>we(e,t[n])));if(Array.isArray(e)!==Array.isArray(t))return!1;if(!be(e)||!be(t))return e===t;const n=Object.keys(e),o=Object.keys(t);return n.length===o.length&&n.every((n=>we(e[n],t[n])))},_e=e=>{if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;const t=getComputedStyle(e);return["overflow","overflow-x","overflow-y"].some((e=>{const n=t.getPropertyValue(e);return"auto"===n||"scroll"===n}))},Ee=e=>{if(!e)return null;let t=e.parentElement;for(;t;){if(_e(t))return t;t=t.parentElement}return document.scrollingElement||document.documentElement},xe="undefined"!=typeof window?r.useLayoutEffect:r.useEffect,Se={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},Oe=(0,r.createContext)({getTooltipData:()=>Se});function Ce(e="DEFAULT_TOOLTIP_ID"){return(0,r.useContext)(Oe).getTooltipData(e)}var Te={tooltip:"core-styles-module_tooltip__3vRRp",fixed:"core-styles-module_fixed__pcSol",arrow:"core-styles-module_arrow__cvMwQ",noArrow:"core-styles-module_noArrow__xock6",clickable:"core-styles-module_clickable__ZuTTB",show:"core-styles-module_show__Nt9eE",closing:"core-styles-module_closing__sGnxF"},ke={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const Ae=({forwardRef:e,id:t,className:n,classNameArrow:o,variant:i="dark",anchorId:a,anchorSelect:l,place:s="top",offset:c=10,events:p=["hover"],openOnClick:h=!1,positionStrategy:m="absolute",middlewares:y,wrapper:v,delayShow:g=0,delayHide:b=0,float:w=!1,hidden:_=!1,noArrow:E=!1,clickable:x=!1,closeOnEsc:S=!1,closeOnScroll:O=!1,closeOnResize:C=!1,openEvents:T,closeEvents:k,globalCloseEvents:A,imperativeModeOnly:R,style:N,position:P,afterShow:M,afterHide:D,content:j,contentWrapperRef:I,isOpen:F,defaultIsOpen:B=!1,setIsOpen:H,activeAnchor:U,setActiveAnchor:W,border:V,opacity:z,arrowColor:q,role:$="tooltip"})=>{var G;const Y=(0,r.useRef)(null),Z=(0,r.useRef)(null),J=(0,r.useRef)(null),Q=(0,r.useRef)(null),te=(0,r.useRef)(null),[ne,oe]=(0,r.useState)({tooltipStyles:{},tooltipArrowStyles:{},place:s}),[re,ie]=(0,r.useState)(!1),[ae,le]=(0,r.useState)(!1),[se,ce]=(0,r.useState)(null),ue=(0,r.useRef)(!1),de=(0,r.useRef)(null),{anchorRefs:pe,setActiveAnchor:he}=Ce(t),me=(0,r.useRef)(!1),[ve,be]=(0,r.useState)([]),_e=(0,r.useRef)(!1),Se=h||p.includes("click"),Oe=Se||(null==T?void 0:T.click)||(null==T?void 0:T.dblclick)||(null==T?void 0:T.mousedown),Ae=T?{...T}:{mouseenter:!0,focus:!0,click:!1,dblclick:!1,mousedown:!1};!T&&Se&&Object.assign(Ae,{mouseenter:!1,focus:!1,click:!0});const Re=k?{...k}:{mouseleave:!0,blur:!0,click:!1,dblclick:!1,mouseup:!1};!k&&Se&&Object.assign(Re,{mouseleave:!1,blur:!1});const Ne=A?{...A}:{escape:S||!1,scroll:O||!1,resize:C||!1,clickOutsideAnchor:Oe||!1};R&&(Object.assign(Ae,{mouseenter:!1,focus:!1,click:!1,dblclick:!1,mousedown:!1}),Object.assign(Re,{mouseleave:!1,blur:!1,click:!1,dblclick:!1,mouseup:!1}),Object.assign(Ne,{escape:!1,scroll:!1,resize:!1,clickOutsideAnchor:!1})),xe((()=>(_e.current=!0,()=>{_e.current=!1})),[]);const Pe=e=>{_e.current&&(e&&le(!0),setTimeout((()=>{_e.current&&(null==H||H(e),void 0===F&&ie(e))}),10))};(0,r.useEffect)((()=>{if(void 0===F)return()=>null;F&&le(!0);const e=setTimeout((()=>{ie(F)}),10);return()=>{clearTimeout(e)}}),[F]),(0,r.useEffect)((()=>{if(re!==ue.current)if(te.current&&clearTimeout(te.current),ue.current=re,re)null==M||M();else{const e=(e=>{const t=getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay").match(/^([\d.]+)(ms|s)$/);if(!t)return 0;const[,n,o]=t;return Number(n)*("ms"===o?1:1e3)})();te.current=setTimeout((()=>{le(!1),ce(null),null==D||D()}),e+25)}}),[re]);const Me=e=>{oe((t=>we(t,e)?t:e))},Le=(e=g)=>{J.current&&clearTimeout(J.current),ae?Pe(!0):J.current=setTimeout((()=>{Pe(!0)}),e)},De=(e=b)=>{Q.current&&clearTimeout(Q.current),Q.current=setTimeout((()=>{me.current||Pe(!1)}),e)},je=e=>{var t;if(!e)return;const n=null!==(t=e.currentTarget)&&void 0!==t?t:e.target;if(!(null==n?void 0:n.isConnected))return W(null),void he({current:null});g?Le():Pe(!0),W(n),he({current:n}),Q.current&&clearTimeout(Q.current)},Ie=()=>{x?De(b||100):b?De():Pe(!1),J.current&&clearTimeout(J.current)},Fe=({x:e,y:t})=>{var n;const o={getBoundingClientRect:()=>({x:e,y:t,width:0,height:0,top:t,left:e,right:e,bottom:t})};ye({place:null!==(n=null==se?void 0:se.place)&&void 0!==n?n:s,offset:c,elementReference:o,tooltipReference:Y.current,tooltipArrowReference:Z.current,strategy:m,middlewares:y,border:V}).then((e=>{Me(e)}))},Be=e=>{if(!e)return;const t=e,n={x:t.clientX,y:t.clientY};Fe(n),de.current=n},He=e=>{var t;if(!re)return;const n=e.target;n.isConnected&&((null===(t=Y.current)||void 0===t?void 0:t.contains(n))||[document.querySelector(`[id='${a}']`),...ve].some((e=>null==e?void 0:e.contains(n)))||(Pe(!1),J.current&&clearTimeout(J.current)))},Ue=ge(je,50,!0),We=ge(Ie,50,!0),Ve=e=>{We.cancel(),Ue(e)},ze=()=>{Ue.cancel(),We()},qe=(0,r.useCallback)((()=>{var e,t;const n=null!==(e=null==se?void 0:se.position)&&void 0!==e?e:P;n?Fe(n):w?de.current&&Fe(de.current):(null==U?void 0:U.isConnected)&&ye({place:null!==(t=null==se?void 0:se.place)&&void 0!==t?t:s,offset:c,elementReference:U,tooltipReference:Y.current,tooltipArrowReference:Z.current,strategy:m,middlewares:y,border:V}).then((e=>{_e.current&&Me(e)}))}),[re,U,j,N,s,null==se?void 0:se.place,c,m,P,null==se?void 0:se.position,w]);(0,r.useEffect)((()=>{var e,t;const n=new Set(pe);ve.forEach((e=>{n.add({current:e})}));const o=document.querySelector(`[id='${a}']`);o&&n.add({current:o});const r=()=>{Pe(!1)},i=Ee(U),l=Ee(Y.current);Ne.scroll&&(window.addEventListener("scroll",r),null==i||i.addEventListener("scroll",r),null==l||l.addEventListener("scroll",r));let s=null;Ne.resize?window.addEventListener("resize",r):U&&Y.current&&(s=function(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:s=!1}=o,c=K(e),p=r||i?[...c?X(c):[],...X(t)]:[];p.forEach((e=>{r&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const h=c&&l?function(e,t){let n,o=null;const r=L(e);function i(){var e;clearTimeout(n),null==(e=o)||e.disconnect(),o=null}return function a(l,s){void 0===l&&(l=!1),void 0===s&&(s=1),i();const{left:c,top:p,width:h,height:m}=e.getBoundingClientRect();if(l||t(),!h||!m)return;const y={rootMargin:-f(p)+"px "+-f(r.clientWidth-(c+h))+"px "+-f(r.clientHeight-(p+m))+"px "+-f(c)+"px",threshold:d(0,u(1,s))||1};let v=!0;function g(e){const t=e[0].intersectionRatio;if(t!==s){if(!v)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),100)}v=!1}try{o=new IntersectionObserver(g,{...y,root:r.ownerDocument})}catch(e){o=new IntersectionObserver(g,y)}o.observe(e)}(!0),i}(c,n):null;let m,y=-1,v=null;a&&(v=new ResizeObserver((e=>{let[o]=e;o&&o.target===c&&v&&(v.unobserve(t),cancelAnimationFrame(y),y=requestAnimationFrame((()=>{var e;null==(e=v)||e.observe(t)}))),n()})),c&&!s&&v.observe(c),v.observe(t));let g=s?ee(e):null;return s&&function t(){const o=ee(e);!g||o.x===g.x&&o.y===g.y&&o.width===g.width&&o.height===g.height||n(),g=o,m=requestAnimationFrame(t)}(),n(),()=>{var e;p.forEach((e=>{r&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==h||h(),null==(e=v)||e.disconnect(),v=null,s&&cancelAnimationFrame(m)}}(U,Y.current,qe,{ancestorResize:!0,elementResize:!0,layoutShift:!0}));const c=e=>{"Escape"===e.key&&Pe(!1)};Ne.escape&&window.addEventListener("keydown",c),Ne.clickOutsideAnchor&&window.addEventListener("click",He);const p=[],h=e=>{re&&(null==e?void 0:e.target)===U||je(e)},m=e=>{re&&(null==e?void 0:e.target)===U&&Ie()},y=["mouseenter","mouseleave","focus","blur"],v=["click","dblclick","mousedown","mouseup"];Object.entries(Ae).forEach((([e,t])=>{t&&(y.includes(e)?p.push({event:e,listener:Ve}):v.includes(e)&&p.push({event:e,listener:h}))})),Object.entries(Re).forEach((([e,t])=>{t&&(y.includes(e)?p.push({event:e,listener:ze}):v.includes(e)&&p.push({event:e,listener:m}))})),w&&p.push({event:"pointermove",listener:Be});const g=()=>{me.current=!0},b=()=>{me.current=!1,Ie()};return x&&!Oe&&(null===(e=Y.current)||void 0===e||e.addEventListener("mouseenter",g),null===(t=Y.current)||void 0===t||t.addEventListener("mouseleave",b)),p.forEach((({event:e,listener:t})=>{n.forEach((n=>{var o;null===(o=n.current)||void 0===o||o.addEventListener(e,t)}))})),()=>{var e,t;Ne.scroll&&(window.removeEventListener("scroll",r),null==i||i.removeEventListener("scroll",r),null==l||l.removeEventListener("scroll",r)),Ne.resize?window.removeEventListener("resize",r):null==s||s(),Ne.clickOutsideAnchor&&window.removeEventListener("click",He),Ne.escape&&window.removeEventListener("keydown",c),x&&!Oe&&(null===(e=Y.current)||void 0===e||e.removeEventListener("mouseenter",g),null===(t=Y.current)||void 0===t||t.removeEventListener("mouseleave",b)),p.forEach((({event:e,listener:t})=>{n.forEach((n=>{var o;null===(o=n.current)||void 0===o||o.removeEventListener(e,t)}))}))}}),[U,qe,ae,pe,ve,T,k,A,Se,g,b]),(0,r.useEffect)((()=>{var e,n;let o=null!==(n=null!==(e=null==se?void 0:se.anchorSelect)&&void 0!==e?e:l)&&void 0!==n?n:"";!o&&t&&(o=`[data-tooltip-id='${t}']`);const r=new MutationObserver((e=>{const n=[],r=[];e.forEach((e=>{if("attributes"===e.type&&"data-tooltip-id"===e.attributeName&&(e.target.getAttribute("data-tooltip-id")===t?n.push(e.target):e.oldValue===t&&r.push(e.target)),"childList"===e.type){if(U){const t=[...e.removedNodes].filter((e=>1===e.nodeType));if(o)try{r.push(...t.filter((e=>e.matches(o)))),r.push(...t.flatMap((e=>[...e.querySelectorAll(o)])))}catch(e){}t.some((e=>{var t;return!!(null===(t=null==e?void 0:e.contains)||void 0===t?void 0:t.call(e,U))&&(le(!1),Pe(!1),W(null),J.current&&clearTimeout(J.current),Q.current&&clearTimeout(Q.current),!0)}))}if(o)try{const t=[...e.addedNodes].filter((e=>1===e.nodeType));n.push(...t.filter((e=>e.matches(o)))),n.push(...t.flatMap((e=>[...e.querySelectorAll(o)])))}catch(e){}}})),(n.length||r.length)&&be((e=>[...e.filter((e=>!r.includes(e))),...n]))}));return r.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"],attributeOldValue:!0}),()=>{r.disconnect()}}),[t,l,null==se?void 0:se.anchorSelect,U]),(0,r.useEffect)((()=>{qe()}),[qe]),(0,r.useEffect)((()=>{if(!(null==I?void 0:I.current))return()=>null;const e=new ResizeObserver((()=>{setTimeout((()=>qe()))}));return e.observe(I.current),()=>{e.disconnect()}}),[j,null==I?void 0:I.current]),(0,r.useEffect)((()=>{var e;const t=document.querySelector(`[id='${a}']`),n=[...ve,t];U&&n.includes(U)||W(null!==(e=ve[0])&&void 0!==e?e:t)}),[a,ve,U]),(0,r.useEffect)((()=>(B&&Pe(!0),()=>{J.current&&clearTimeout(J.current),Q.current&&clearTimeout(Q.current)})),[]),(0,r.useEffect)((()=>{var e;let n=null!==(e=null==se?void 0:se.anchorSelect)&&void 0!==e?e:l;if(!n&&t&&(n=`[data-tooltip-id='${t}']`),n)try{const e=Array.from(document.querySelectorAll(n));be(e)}catch(e){be([])}}),[t,l,null==se?void 0:se.anchorSelect]),(0,r.useEffect)((()=>{J.current&&(clearTimeout(J.current),Le(g))}),[g]);const $e=null!==(G=null==se?void 0:se.content)&&void 0!==G?G:j,Ge=re&&Object.keys(ne.tooltipStyles).length>0;return(0,r.useImperativeHandle)(e,(()=>({open:e=>{if(null==e?void 0:e.anchorSelect)try{document.querySelector(e.anchorSelect)}catch(t){return void console.warn(`[react-tooltip] "${e.anchorSelect}" is not a valid CSS selector`)}ce(null!=e?e:null),(null==e?void 0:e.delay)?Le(e.delay):Pe(!0)},close:e=>{(null==e?void 0:e.delay)?De(e.delay):Pe(!1)},activeAnchor:U,place:ne.place,isOpen:Boolean(ae&&!_&&$e&&Ge)}))),ae&&!_&&$e?r.createElement(v,{id:t,role:$,className:fe("react-tooltip",Te.tooltip,ke.tooltip,ke[i],n,`react-tooltip__place-${ne.place}`,Te[Ge?"show":"closing"],Ge?"react-tooltip__show":"react-tooltip__closing","fixed"===m&&Te.fixed,x&&Te.clickable),onTransitionEnd:e=>{te.current&&clearTimeout(te.current),re||"opacity"!==e.propertyName||(le(!1),ce(null),null==D||D())},style:{...N,...ne.tooltipStyles,opacity:void 0!==z&&Ge?z:void 0},ref:Y},$e,r.createElement(v,{className:fe("react-tooltip-arrow",Te.arrow,ke.arrow,o,E&&Te.noArrow),style:{...ne.tooltipArrowStyles,background:q?`linear-gradient(to right bottom, transparent 50%, ${q} 50%)`:void 0},ref:Z})):null},Re=({content:e})=>r.createElement("span",{dangerouslySetInnerHTML:{__html:e}}),Ne=r.forwardRef((({id:e,anchorId:t,anchorSelect:n,content:o,html:i,render:a,className:l,classNameArrow:s,variant:c="dark",place:u="top",offset:d=10,wrapper:p="div",children:f=null,events:h=["hover"],openOnClick:m=!1,positionStrategy:y="absolute",middlewares:v,delayShow:g=0,delayHide:b=0,float:w=!1,hidden:_=!1,noArrow:E=!1,clickable:x=!1,closeOnEsc:S=!1,closeOnScroll:O=!1,closeOnResize:C=!1,openEvents:T,closeEvents:k,globalCloseEvents:A,imperativeModeOnly:R=!1,style:N,position:P,isOpen:M,defaultIsOpen:L=!1,disableStyleInjection:D=!1,border:j,opacity:I,arrowColor:F,setIsOpen:B,afterShow:H,afterHide:U,role:W="tooltip"},V)=>{const[z,q]=(0,r.useState)(o),[$,G]=(0,r.useState)(i),[X,Y]=(0,r.useState)(u),[K,Z]=(0,r.useState)(c),[J,Q]=(0,r.useState)(d),[ee,te]=(0,r.useState)(g),[ne,oe]=(0,r.useState)(b),[re,ie]=(0,r.useState)(w),[ae,le]=(0,r.useState)(_),[se,ce]=(0,r.useState)(p),[ue,de]=(0,r.useState)(h),[pe,he]=(0,r.useState)(y),[me,ye]=(0,r.useState)(null),[ge,be]=(0,r.useState)(null),we=(0,r.useRef)(D),{anchorRefs:_e,activeAnchor:Ee}=Ce(e),xe=e=>null==e?void 0:e.getAttributeNames().reduce(((t,n)=>{var o;return n.startsWith("data-tooltip-")&&(t[n.replace(/^data-tooltip-/,"")]=null!==(o=null==e?void 0:e.getAttribute(n))&&void 0!==o?o:null),t}),{}),Se=e=>{const t={place:e=>{var t;Y(null!==(t=e)&&void 0!==t?t:u)},content:e=>{q(null!=e?e:o)},html:e=>{G(null!=e?e:i)},variant:e=>{var t;Z(null!==(t=e)&&void 0!==t?t:c)},offset:e=>{Q(null===e?d:Number(e))},wrapper:e=>{var t;ce(null!==(t=e)&&void 0!==t?t:p)},events:e=>{const t=null==e?void 0:e.split(" ");de(null!=t?t:h)},"position-strategy":e=>{var t;he(null!==(t=e)&&void 0!==t?t:y)},"delay-show":e=>{te(null===e?g:Number(e))},"delay-hide":e=>{oe(null===e?b:Number(e))},float:e=>{ie(null===e?w:"true"===e)},hidden:e=>{le(null===e?_:"true"===e)},"class-name":e=>{ye(e)}};Object.values(t).forEach((e=>e(null))),Object.entries(e).forEach((([e,n])=>{var o;null===(o=t[e])||void 0===o||o.call(t,n)}))};(0,r.useEffect)((()=>{q(o)}),[o]),(0,r.useEffect)((()=>{G(i)}),[i]),(0,r.useEffect)((()=>{Y(u)}),[u]),(0,r.useEffect)((()=>{Z(c)}),[c]),(0,r.useEffect)((()=>{Q(d)}),[d]),(0,r.useEffect)((()=>{te(g)}),[g]),(0,r.useEffect)((()=>{oe(b)}),[b]),(0,r.useEffect)((()=>{ie(w)}),[w]),(0,r.useEffect)((()=>{le(_)}),[_]),(0,r.useEffect)((()=>{he(y)}),[y]),(0,r.useEffect)((()=>{we.current!==D&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")}),[D]),(0,r.useEffect)((()=>{"undefined"!=typeof window&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:"core"===D,disableBase:D}}))}),[]),(0,r.useEffect)((()=>{var o;const r=new Set(_e);let i=n;if(!i&&e&&(i=`[data-tooltip-id='${e}']`),i)try{document.querySelectorAll(i).forEach((e=>{r.add({current:e})}))}catch(o){console.warn(`[react-tooltip] "${i}" is not a valid CSS selector`)}const a=document.querySelector(`[id='${t}']`);if(a&&r.add({current:a}),!r.size)return()=>null;const l=null!==(o=null!=ge?ge:a)&&void 0!==o?o:Ee.current,s=new MutationObserver((e=>{e.forEach((e=>{var t;if(!l||"attributes"!==e.type||!(null===(t=e.attributeName)||void 0===t?void 0:t.startsWith("data-tooltip-")))return;const n=xe(l);Se(n)}))})),c={attributes:!0,childList:!1,subtree:!1};if(l){const e=xe(l);Se(e),s.observe(l,c)}return()=>{s.disconnect()}}),[_e,Ee,ge,t,n]),(0,r.useEffect)((()=>{(null==N?void 0:N.border)&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),j&&!ve("border",`${j}`)&&console.warn(`[react-tooltip] "${j}" is not a valid \`border\`.`),(null==N?void 0:N.opacity)&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),I&&!ve("opacity",`${I}`)&&console.warn(`[react-tooltip] "${I}" is not a valid \`opacity\`.`)}),[]);let Oe=f;const Te=(0,r.useRef)(null);if(a){const e=a({content:(null==ge?void 0:ge.getAttribute("data-tooltip-content"))||z||null,activeAnchor:ge});Oe=e?r.createElement("div",{ref:Te,className:"react-tooltip-content-wrapper"},e):null}else z&&(Oe=z);$&&(Oe=r.createElement(Re,{content:$}));const ke={forwardRef:V,id:e,anchorId:t,anchorSelect:n,className:fe(l,me),classNameArrow:s,content:Oe,contentWrapperRef:Te,place:X,variant:K,offset:J,wrapper:se,events:ue,openOnClick:m,positionStrategy:pe,middlewares:v,delayShow:ee,delayHide:ne,float:re,hidden:ae,noArrow:E,clickable:x,closeOnEsc:S,closeOnScroll:O,closeOnResize:C,openEvents:T,closeEvents:k,globalCloseEvents:A,imperativeModeOnly:R,style:N,position:P,isOpen:M,defaultIsOpen:L,border:j,opacity:I,arrowColor:F,setIsOpen:B,afterShow:H,afterHide:U,activeAnchor:ge,setActiveAnchor:e=>be(e),role:W};return r.createElement(Ae,{...ke})}));"undefined"!=typeof window&&window.addEventListener("react-tooltip-inject-styles",(e=>{e.detail.disableCore||me({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in}",type:"core"}),e.detail.disableBase||me({css:"\n.styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:8px;height:8px}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}",type:"base"})}));const Pe=window.wp.element,Me=window.wp.i18n,Le=window.wp.components,De=window.wp.apiFetch;var je=n.n(De);const Ie=({type:e="upcoming",status:t="no_status"})=>{const n={upcoming:{attending:{icon:"dashicons dashicons-yes-alt",text:(0,Me._x)("Attending","Responded Status","gatherpress")},waiting_list:{icon:"dashicons dashicons-editor-help",text:(0,Me._x)("Waiting List","Responded Status","gatherpress")},not_attending:{icon:"dashicons dashicons-dismiss",text:(0,Me._x)("Not Attending","Responded Status","gatherpress")},no_status:{icon:"",text:""}},past:{attending:{icon:"dashicons dashicons-yes-alt",text:(0,Me._x)("Went","Responded Status","gatherpress")},waiting_list:{icon:"dashicons dashicons-dismiss",text:(0,Me._x)("Didn't Go","Responded Status","gatherpress")},not_attending:{icon:"dashicons dashicons-dismiss",text:(0,Me._x)("Didn't Go","Responded Status","gatherpress")},no_status:{icon:"dashicons dashicons-dismiss",text:(0,Me._x)("Didn't Go","Responded Status","gatherpress")}}};return(0,r.createElement)("div",{className:"gatherpress-status__response"},(0,r.createElement)("span",{className:n[e][t].icon}),(0,r.createElement)("strong",null,n[e][t].text))};function Fe(e){if("object"==typeof GatherPress)return e.split(".").reduce(((e,t)=>e&&e[t]),GatherPress)}window.wp.data;const Be=({postId:e,currentUser:t="",type:n,enableAnonymousRsvp:o,enableInitialDecline:i,maxGuestLimit:a})=>{const[s,u]=(0,Pe.useState)(t.status),[d,p]=(0,Pe.useState)(Number(t.anonymous)),[f,h]=(0,Pe.useState)(t.guests),[m,y]=(0,Pe.useState)("hidden"),[v,g]=(0,Pe.useState)("false"),[b,w]=(0,Pe.useState)(!1);if("past"===n)return"";"undefined"==typeof adminpage&&l().setAppElement(".gatherpress-enabled");const _=e=>{e.preventDefault(),w(!1)},E=async(t,n,o,r=0,i=!0)=>{t.preventDefault(),"attending"!==n&&(r=0),je()({path:Fe("urls.eventRestApi")+"/rsvp",method:"POST",data:{post_id:e,status:n,guests:r,anonymous:o,_wpnonce:Fe("misc.nonce")}}).then((e=>{if(e.success){u(e.status),h(e.guests);const n={all:0,attending:0,not_attending:0,waiting_list:0};for(const[t,o]of Object.entries(e.responses))n[t]=o.count;((e,t="")=>{for(const[n,o]of Object.entries(e)){let e=n;t&&(e+="_"+String(t));const r=new CustomEvent(e,{detail:o});dispatchEvent(r)}})({setRsvpStatus:e.status,setRsvpResponse:e.responses,setRsvpCount:n,setRsvpSeeAllLink:n[e.status]>8,setOnlineEventLink:e.online_link},e.event_id),i&&_(t)}}))},x=e=>{switch(e){case"attending":return(0,Me.__)("You're attending","gatherpress");case"waiting_list":return(0,Me.__)("You're wait listed","gatherpress");case"not_attending":return(0,Me.__)("You're not attending","gatherpress")}return(0,Me.__)("RSVP to this event","gatherpress")};return(0,r.createElement)("div",{className:"gatherpress-rsvp"},(0,r.createElement)(Le.ButtonGroup,{className:"gatherpress-buttons wp-block-buttons"},(0,r.createElement)("div",{className:"gatherpress-buttons__container wp-block-button"},(0,r.createElement)("a",{href:"#",className:"gatherpress-buttons__button wp-block-button__link","aria-expanded":v,tabIndex:"0",onKeyDown:e=>{13===e.keyCode&&(y("hidden"===m?"show":"hidden"),g("false"===v?"true":"false"))},onClick:e=>(e=>{e.preventDefault(),w(!0)})(e)},(e=>{switch(e){case"attending":case"waiting_list":case"not_attending":return(0,Me.__)("Edit RSVP","gatherpress")}return(0,Me.__)("RSVP","gatherpress")})(s))),(0,r.createElement)(l(),{isOpen:b,onRequestClose:_,style:{overlay:{zIndex:999999999},content:{top:"50%",left:"50%",right:"auto",bottom:"auto",marginRight:"-50%",transform:"translate(-50%, -50%)"}},contentLabel:(0,Me.__)("Edit RSVP","gatherpress")},0===t.length&&(0,r.createElement)((()=>(0,r.createElement)("div",{className:"gatherpress-modal gatherpress-modal__rsvp"},(0,r.createElement)("div",{className:"gatherpress-modal__header"},(0,Me.__)("Login Required","gatherpress")),(0,r.createElement)("div",{className:"gatherpress-modal__content"},(0,r.createElement)("div",{className:"gatherpress-modal__text"},c((0,Me.sprintf)(/* translators: %s: 'Login' (hyperlinked) */ /* translators: %s: 'Login' (hyperlinked) */ -(0,Me.__)("You must %s to RSVP to events.","gatherpress"),`\n\t\t\t\t\t\t\t\t\t${(0,Me._x)("Login","Context: You must ~ to RSVP to events.","gatherpress")}\n\t\t\t\t\t\t\t\t`))),""!==Fe("urls.registrationUrl")&&(0,r.createElement)("div",{className:"gatherpress-modal__text"},c((0,Me.sprintf)(/* translators: %s: 'Register' (hyperlinked) */ /* translators: %s: 'Register' (hyperlinked) */ -(0,Me.__)("%s if you do not have an account.","gatherpress"),`\n\t\t\t\t\t\t\t\t\t\t${(0,Me._x)("Register","Context: ~ if you do not have an account.","gatherpress")}\n\t\t\t\t\t\t\t\t\t`)))),(0,r.createElement)(Le.ButtonGroup,{className:"gatherpress-buttons wp-block-buttons"},(0,r.createElement)("div",{className:"gatherpress-buttons__container wp-block-button"},(0,r.createElement)("a",{href:"#",onClick:_,className:"gatherpress-buttons__button wp-block-button__link"},(0,Me.__)("Close","gatherpress")))))),null),0!==t.length&&(0,r.createElement)((({status:e})=>{let t="",n="";return"not_attending"===e||"no_status"===e?(t="attending",n=(0,Me.__)("Attend","gatherpress")):(t="not_attending",n=(0,Me._x)("Not Attending","action of not attending","gatherpress")),(0,r.createElement)("div",{className:"gatherpress-modal gatherpress-modal__rsvp"},(0,r.createElement)("div",{className:"gatherpress-modal__header"},x(s)?x(s):(0,r.createElement)(Le.Spinner,null)),(0,r.createElement)("div",{className:"gatherpress-modal__content"},(0,r.createElement)("div",{className:"gatherpress-modal__text"},c((0,Me.sprintf)(/* translators: %s: button label. */ /* translators: %s: button label. */ -(0,Me.__)("To set or change your attending status, simply click the %s button below.","gatherpress"),""+n+""))),0{const t=Number(e.target.value);h(t),E(e,s,d,t,!1)},defaultValue:f})),o&&(0,r.createElement)("div",{className:"gatherpress-modal__anonymous"},(0,r.createElement)("input",{id:"gatherpress-anonymous",type:"checkbox",onChange:e=>{const t=Number(e.target.checked);p(t),E(e,s,t,0,!1)},checked:d}),(0,r.createElement)("label",{htmlFor:"gatherpress-anonymous",tabIndex:"0",className:"gatherpress-tooltip","data-tooltip-id":"gatherpress-anonymous-tooltip","data-tooltip-content":(0,Me.__)("Only admins will see your identity.","gatherpress")},(0,Me.__)("List me as anonymous.","gatherpress")),(0,r.createElement)(Ne,{id:"gatherpress-anonymous-tooltip"}))),(0,r.createElement)(Le.ButtonGroup,{className:"gatherpress-buttons wp-block-buttons"},(0,r.createElement)("div",{className:"gatherpress-buttons__container wp-block-button is-style-outline"},(0,r.createElement)("a",{href:"#",onClick:e=>E(e,t,d,"not_attending"!==t?f:0,"not_attending"===t),className:"gatherpress-buttons__button wp-block-button__link"},n)),(0,r.createElement)("div",{className:"gatherpress-buttons__container wp-block-button"},(0,r.createElement)("a",{href:"#",onClick:_,className:"gatherpress-buttons__button wp-block-button__link"},(0,Me.__)("Close","gatherpress")))),i&&"no_status"===s&&1!==d?(0,r.createElement)(Le.ButtonGroup,{className:"gatherpress-buttons wp-block-buttons"},(0,r.createElement)("div",{className:"gatherpress-buttons__container wp-block-button"},(0,r.createElement)("a",{href:"#",onClick:e=>E(e,"not_attending",null),className:"gatherpress-buttons__text-link"},(0,Me._x)("Not Attending","Responded Status","gatherpress")))):(0,r.createElement)(r.Fragment,null))}),{status:s}))),"no_status"!==s&&(0,r.createElement)("div",{className:"gatherpress-status"},(0,r.createElement)(Ie,{type:n,status:s}),0{const{isSelected:t}=e,n=t?"none":"block";return(0,r.createElement)("div",{style:{position:"relative"}},e.children,(0,r.createElement)("div",{style:{position:"absolute",top:"0",right:"0",bottom:"0",left:"0",display:n}}))},Ue=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"gatherpress/rsvp","version":"1.0.1","title":"RSVP","category":"gatherpress","icon":"insert","example":{},"description":"Enables members to easily confirm their attendance for an event.","attributes":{"content":{"type":"string"},"color":{"type":"string"}},"supports":{"html":false},"textdomain":"gatherpress","editorScript":"file:./index.js","style":"file:./style-index.css","viewScript":"file:./rsvp.js","render":"file:./render.php"}');(0,o.registerBlockType)(Ue,{edit:()=>{const e=(0,i.useBlockProps)(),t=Fe("eventDetails.postId"),n=Fe("eventDetails.currentUser");return(0,r.createElement)("div",{...e},(0,r.createElement)(He,null,(0,r.createElement)(Be,{postId:t,currentUser:n,type:"upcoming"})))},save:()=>null})},5413:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(n=t.ElementType||(t.ElementType={})),t.isTag=function(e){return e.type===n.Tag||e.type===n.Script||e.type===n.Style},t.Root=n.Root,t.Text=n.Text,t.Directive=n.Directive,t.Comment=n.Comment,t.Script=n.Script,t.Style=n.Style,t.Tag=n.Tag,t.CDATA=n.CDATA,t.Doctype=n.Doctype},1141:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,r)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var i=n(5413),a=n(6957);r(n(6957),t);var l={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},s=function(){function e(e,t,n){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=l),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:l,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?i.ElementType.Tag:void 0,o=new a.Element(e,t,void 0,n);this.addNode(o),this.tagStack.push(o)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===i.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var n=new a.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===i.ElementType.Comment)this.lastNode.data+=e;else{var t=new a.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new a.Text(""),t=new a.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new a.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=s,t.default=s},6957:function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,o=arguments.length;n0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(l);t.NodeWithChildren=p;var f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.CDATA,t}return r(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(p);t.CDATA=f;var h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.Root,t}return r(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(p);t.Document=h;var m=function(e){function t(t,n,o,r){void 0===o&&(o=[]),void 0===r&&(r="script"===t?a.ElementType.Script:"style"===t?a.ElementType.Style:a.ElementType.Tag);var i=e.call(this,o)||this;return i.name=t,i.attribs=n,i.type=r,i}return r(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var n,o;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(o=e["x-attribsPrefix"])||void 0===o?void 0:o[t]}}))},enumerable:!1,configurable:!0}),t}(p);function y(e){return(0,a.isTag)(e)}function v(e){return e.type===a.ElementType.CDATA}function g(e){return e.type===a.ElementType.Text}function b(e){return e.type===a.ElementType.Comment}function w(e){return e.type===a.ElementType.Directive}function _(e){return e.type===a.ElementType.Root}function E(e,t){var n;if(void 0===t&&(t=!1),g(e))n=new c(e.data);else if(b(e))n=new u(e.data);else if(y(e)){var o=t?x(e.children):[],r=new m(e.name,i({},e.attribs),o);o.forEach((function(e){return e.parent=r})),null!=e.namespace&&(r.namespace=e.namespace),e["x-attribsNamespace"]&&(r["x-attribsNamespace"]=i({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(r["x-attribsPrefix"]=i({},e["x-attribsPrefix"])),n=r}else if(v(e)){o=t?x(e.children):[];var a=new f(o);o.forEach((function(e){return e.parent=a})),n=a}else if(_(e)){o=t?x(e.children):[];var l=new h(o);o.forEach((function(e){return e.parent=l})),e["x-mode"]&&(l["x-mode"]=e["x-mode"]),n=l}else{if(!w(e))throw new Error("Not implemented yet: ".concat(e.type));var s=new d(e.name,e.data);null!=e["x-name"]&&(s["x-name"]=e["x-name"],s["x-publicId"]=e["x-publicId"],s["x-systemId"]=e["x-systemId"]),n=s}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function x(e){for(var t=e.map((function(e){return E(e,!0)})),n=1;n{var o;!function(){"use strict";var r=!("undefined"==typeof window||!window.document||!window.document.createElement),i={canUseDOM:r,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:r&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:r&&!!window.screen};void 0===(o=function(){return i}.call(t,n,t,e))||(e.exports=o)}()},5270:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES=void 0,t.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES.reduce((function(e,t){return e[t.toLowerCase()]=t,e}),{})},5496:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="html",o="head",r="body",i=/<([a-zA-Z]+[0-9]?)/,a=//i,l=//i,s=function(e,t){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},c=function(e,t){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},u="object"==typeof window&&window.DOMParser;if("function"==typeof u){var d=new u;s=c=function(e,t){return t&&(e="<".concat(t,">").concat(e,"")),d.parseFromString(e,"text/html")}}if("object"==typeof document&&document.implementation){var p=document.implementation.createHTMLDocument();s=function(e,t){if(t){var n=p.documentElement.querySelector(t);return n&&(n.innerHTML=e),p}return p.documentElement.innerHTML=e,p}}var f,h="object"==typeof document&&document.createElement("template");h&&h.content&&(f=function(e){return h.innerHTML=e,h.content.childNodes}),t.default=function(e){var t,u,d=e.match(i),p=d&&d[1]?d[1].toLowerCase():"";switch(p){case n:var h=c(e);return a.test(e)||null===(t=null==(y=h.querySelector(o))?void 0:y.parentNode)||void 0===t||t.removeChild(y),l.test(e)||null===(u=null==(y=h.querySelector(r))?void 0:y.parentNode)||void 0===u||u.removeChild(y),h.querySelectorAll(n);case o:case r:var m=s(e).querySelectorAll(p);return l.test(e)&&a.test(e)?m[0].parentNode.childNodes:m;default:return f?f(e):(y=s(e,r).querySelector(r)).childNodes;var y}}},2471:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(5496)),i=n(7731),a=/<(![a-zA-Z\s]+)>/;t.default=function(e){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];var t=e.match(a),n=t?t[1]:void 0;return(0,i.formatDOM)((0,r.default)(e),null,n)}},7731:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatDOM=t.formatAttributes=void 0;var o=n(1141),r=n(5270);function i(e){for(var t={},n=0,o=e.length;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(4210),r=n(4958),i=["checked","value"],a=["input","select","textarea"],l={reset:!0,submit:!0};function s(e){return o.possibleStandardNames[e]}t.default=function(e,t){void 0===e&&(e={});var n={},c=Boolean(e.type&&l[e.type]);for(var u in e){var d=e[u];if((0,o.isCustomAttribute)(u))n[u]=d;else{var p=u.toLowerCase(),f=s(p);if(f){var h=(0,o.getPropertyInfo)(f);switch(i.includes(f)&&a.includes(t)&&!c&&(f=s("default"+p)),n[f]=d,h&&h.type){case o.BOOLEAN:n[f]=!0;break;case o.OVERLOADED_BOOLEAN:""===d&&(n[f]=!0)}}else r.PRESERVE_CUSTOM_ATTRIBUTES&&(n[u]=d)}}return(0,r.setStyleProp)(e.style,n),n}},308:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=n(1609),i=o(n(840)),a=n(4958),l={cloneElement:r.cloneElement,createElement:r.createElement,isValidElement:r.isValidElement};function s(e){return a.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&(0,a.isCustomComponent)(e.name,e.attribs)}t.default=function e(t,n){void 0===n&&(n={});for(var o=[],r="function"==typeof n.replace,c=n.transform||a.returnFirstArg,u=n.library||l,d=u.cloneElement,p=u.createElement,f=u.isValidElement,h=t.length,m=0;m1&&(v=d(v,{key:v.key||m})),o.push(c(v,y,m));continue}}if("text"!==y.type){var g=y,b={};s(g)?((0,a.setStyleProp)(g.attribs.style,g.attribs),b=g.attribs):g.attribs&&(b=(0,i.default)(g.attribs,g.name));var w=void 0;switch(y.type){case"script":case"style":y.children[0]&&(b.dangerouslySetInnerHTML={__html:y.children[0].data});break;case"tag":"textarea"===y.name&&y.children[0]?b.defaultValue=y.children[0].data:y.children&&y.children.length&&(w=e(y.children,n));break;default:continue}h>1&&(b.key=m),o.push(c(p(y.name,b,w),y,m))}else{var _=!y.data.trim().length;if(_&&y.parent&&!(0,a.canTextBeChildOfNode)(y.parent))continue;if(n.trim&&_)continue;o.push(c(y.data,y,m))}}return 1===o.length?o[0]:o}},442:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.htmlToDOM=t.domToReact=t.attributesToProps=t.Text=t.ProcessingInstruction=t.Element=t.Comment=void 0;var r=o(n(2471));t.htmlToDOM=r.default;var i=o(n(840));t.attributesToProps=i.default;var a=o(n(308));t.domToReact=a.default;var l=n(1141);Object.defineProperty(t,"Comment",{enumerable:!0,get:function(){return l.Comment}}),Object.defineProperty(t,"Element",{enumerable:!0,get:function(){return l.Element}}),Object.defineProperty(t,"ProcessingInstruction",{enumerable:!0,get:function(){return l.ProcessingInstruction}}),Object.defineProperty(t,"Text",{enumerable:!0,get:function(){return l.Text}});var s={lowerCaseAttributeNames:!1};t.default=function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");return e?(0,a.default)((0,r.default)(e,(null==t?void 0:t.htmlparser2)||s),t):[]}},4958:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.returnFirstArg=t.canTextBeChildOfNode=t.ELEMENTS_WITH_NO_TEXT_CHILDREN=t.PRESERVE_CUSTOM_ATTRIBUTES=t.setStyleProp=t.isCustomComponent=void 0;var r=n(1609),i=o(n(5229)),a=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);t.isCustomComponent=function(e,t){return e.includes("-")?!a.has(e):Boolean(t&&"string"==typeof t.is)};var l={reactCompat:!0};t.setStyleProp=function(e,t){if("string"==typeof e)if(e.trim())try{t.style=(0,i.default)(e,l)}catch(e){t.style={}}else t.style={}},t.PRESERVE_CUSTOM_ATTRIBUTES=Number(r.version.split(".")[0])>=16,t.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]),t.canTextBeChildOfNode=function(e){return!t.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(e.name)},t.returnFirstArg=function(e){return e}},9788:e=>{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,o=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,s=/^\s+|\s+$/g,c="";function u(e){return e?e.replace(s,c):c}e.exports=function(e,s){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];s=s||{};var d=1,p=1;function f(e){var t=e.match(n);t&&(d+=t.length);var o=e.lastIndexOf("\n");p=~o?e.length-o:p+e.length}function h(){var e={line:d,column:p};return function(t){return t.position=new m(e),b(),t}}function m(e){this.start=e,this.end={line:d,column:p},this.source=s.source}m.prototype.content=e;var y=[];function v(t){var n=new Error(s.source+":"+d+":"+p+": "+t);if(n.reason=t,n.filename=s.source,n.line=d,n.column=p,n.source=e,!s.silent)throw n;y.push(n)}function g(t){var n=t.exec(e);if(n){var o=n[0];return f(o),e=e.slice(o.length),n}}function b(){g(o)}function w(e){var t;for(e=e||[];t=_();)!1!==t&&e.push(t);return e}function _(){var t=h();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;c!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,c===e.charAt(n-1))return v("End of comment missing");var o=e.slice(2,n-2);return p+=2,f(o),e=e.slice(n),p+=2,t({type:"comment",comment:o})}}function E(){var e=h(),n=g(r);if(n){if(_(),!g(i))return v("property missing ':'");var o=g(a),s=e({type:"declaration",property:u(n[0].replace(t,c)),value:o?u(o[0].replace(t,c)):c});return g(l),s}}return b(),function(){var e,t=[];for(w(t);e=E();)!1!==e&&(t.push(e),w(t));return t}()}},2694:(e,t,n)=>{"use strict";var o=n(6925);function r(){}function i(){}i.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,i,a){if(a!==o){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return n.PropTypes=n,n}},5556:(e,t,n)=>{e.exports=n(2694)()},6925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},1345:(e,t,n)=>{"use strict";function o(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function r(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function i(e,t){try{var n=this.props,o=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,o)}finally{this.props=n,this.state=o}}function a(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,a=null,l=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?a="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(a="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?l="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(l="UNSAFE_componentWillUpdate"),null!==n||null!==a||null!==l){var s=e.displayName||e.name,c="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+s+" uses "+c+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==a?"\n "+a:"")+(null!==l?"\n "+l:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=o,t.componentWillReceiveProps=r),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=i;var u=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var o=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;u.call(this,e,t,o)}}return e}n.r(t),n.d(t,{polyfill:()=>a}),o.__suppressDeprecationWarning=!0,r.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0},1720:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bodyOpenClassName=t.portalClassName=void 0;var o=Object.assign||function(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t0&&0==(g-=1)&&u.show(t),n.props.shouldFocusAfterRender&&(n.props.shouldReturnFocusAfterClose?(s.returnFocus(n.props.preventScroll),s.teardownScopedFocus()):s.popWithoutFocus()),n.props.onAfterClose&&n.props.onAfterClose(),h.default.deregister(n)},n.open=function(){n.beforeOpen(),n.state.afterOpen&&n.state.beforeClose?(clearTimeout(n.closeTimer),n.setState({beforeClose:!1})):(n.props.shouldFocusAfterRender&&(s.setupScopedFocus(n.node),s.markForFocusLater()),n.setState({isOpen:!0},(function(){n.openAnimationFrame=requestAnimationFrame((function(){n.setState({afterOpen:!0}),n.props.isOpen&&n.props.onAfterOpen&&n.props.onAfterOpen({overlayEl:n.overlay,contentEl:n.content})}))})))},n.close=function(){n.props.closeTimeoutMS>0?n.closeWithTimeout():n.closeWithoutTimeout()},n.focusContent=function(){return n.content&&!n.contentHasFocus()&&n.content.focus({preventScroll:!0})},n.closeWithTimeout=function(){var e=Date.now()+n.props.closeTimeoutMS;n.setState({beforeClose:!0,closesAt:e},(function(){n.closeTimer=setTimeout(n.closeWithoutTimeout,n.state.closesAt-Date.now())}))},n.closeWithoutTimeout=function(){n.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},n.afterClose)},n.handleKeyDown=function(e){(function(e){return"Tab"===e.code||9===e.keyCode})(e)&&(0,c.default)(n.content,e),n.props.shouldCloseOnEsc&&function(e){return"Escape"===e.code||27===e.keyCode}(e)&&(e.stopPropagation(),n.requestClose(e))},n.handleOverlayOnClick=function(e){null===n.shouldClose&&(n.shouldClose=!0),n.shouldClose&&n.props.shouldCloseOnOverlayClick&&(n.ownerHandlesClose()?n.requestClose(e):n.focusContent()),n.shouldClose=null},n.handleContentOnMouseUp=function(){n.shouldClose=!1},n.handleOverlayOnMouseDown=function(e){n.props.shouldCloseOnOverlayClick||e.target!=n.overlay||e.preventDefault()},n.handleContentOnClick=function(){n.shouldClose=!1},n.handleContentOnMouseDown=function(){n.shouldClose=!1},n.requestClose=function(e){return n.ownerHandlesClose()&&n.props.onRequestClose(e)},n.ownerHandlesClose=function(){return n.props.onRequestClose},n.shouldBeClosed=function(){return!n.state.isOpen&&!n.state.beforeClose},n.contentHasFocus=function(){return document.activeElement===n.content||n.content.contains(document.activeElement)},n.buildClassName=function(e,t){var o="object"===(void 0===t?"undefined":r(t))?t:{base:v[e],afterOpen:v[e]+"--after-open",beforeClose:v[e]+"--before-close"},i=o.base;return n.state.afterOpen&&(i=i+" "+o.afterOpen),n.state.beforeClose&&(i=i+" "+o.beforeClose),"string"==typeof t&&t?i+" "+t:i},n.attributesFromObject=function(e,t){return Object.keys(t).reduce((function(n,o){return n[e+"-"+o]=t[o],n}),{})},n.state={afterOpen:!1,beforeClose:!1},n.shouldClose=null,n.moveFromContentToOverlay=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(e,t){this.props.isOpen&&!e.isOpen?this.open():!this.props.isOpen&&e.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!t.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var e=this.props,t=e.appElement,n=e.ariaHideApp,o=e.htmlOpenClassName,r=e.bodyOpenClassName,i=e.parentSelector,a=i&&i().ownerDocument||document;r&&d.add(a.body,r),o&&d.add(a.getElementsByTagName("html")[0],o),n&&(g+=1,u.hide(t)),h.default.register(this)}},{key:"render",value:function(){var e=this.props,t=e.id,n=e.className,r=e.overlayClassName,i=e.defaultStyles,a=e.children,l=n?{}:i.content,s=r?{}:i.overlay;if(this.shouldBeClosed())return null;var c={ref:this.setOverlayRef,className:this.buildClassName("overlay",r),style:o({},s,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},u=o({id:t,ref:this.setContentRef,style:o({},l,this.props.style.content),className:this.buildClassName("content",n),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",o({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),d=this.props.contentElement(u,a);return this.props.overlayElement(c,d)}}]),t}(a.Component);b.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},b.propTypes={isOpen:l.default.bool.isRequired,defaultStyles:l.default.shape({content:l.default.object,overlay:l.default.object}),style:l.default.shape({content:l.default.object,overlay:l.default.object}),className:l.default.oneOfType([l.default.string,l.default.object]),overlayClassName:l.default.oneOfType([l.default.string,l.default.object]),parentSelector:l.default.func,bodyOpenClassName:l.default.string,htmlOpenClassName:l.default.string,ariaHideApp:l.default.bool,appElement:l.default.oneOfType([l.default.instanceOf(f.default),l.default.instanceOf(p.SafeHTMLCollection),l.default.instanceOf(p.SafeNodeList),l.default.arrayOf(l.default.instanceOf(f.default))]),onAfterOpen:l.default.func,onAfterClose:l.default.func,onRequestClose:l.default.func,closeTimeoutMS:l.default.number,shouldFocusAfterRender:l.default.bool,shouldCloseOnOverlayClick:l.default.bool,shouldReturnFocusAfterClose:l.default.bool,preventScroll:l.default.bool,role:l.default.string,contentLabel:l.default.string,aria:l.default.object,data:l.default.object,children:l.default.node,shouldCloseOnEsc:l.default.bool,overlayRef:l.default.func,contentRef:l.default.func,id:l.default.string,overlayElement:l.default.func,contentElement:l.default.func,testId:l.default.string},t.default=b,e.exports=t.default},6462:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){a&&(a.removeAttribute?a.removeAttribute("aria-hidden"):null!=a.length?a.forEach((function(e){return e.removeAttribute("aria-hidden")})):document.querySelectorAll(a).forEach((function(e){return e.removeAttribute("aria-hidden")}))),a=null},t.log=function(){},t.assertNodeList=l,t.setElement=function(e){var t=e;if("string"==typeof t&&i.canUseDOM){var n=document.querySelectorAll(t);l(n,t),t=n}return a=t||a},t.validateElement=s,t.hide=function(e){var t=!0,n=!1,o=void 0;try{for(var r,i=s(e)[Symbol.iterator]();!(t=(r=i.next()).done);t=!0)r.value.setAttribute("aria-hidden","true")}catch(e){n=!0,o=e}finally{try{!t&&i.return&&i.return()}finally{if(n)throw o}}},t.show=function(e){var t=!0,n=!1,o=void 0;try{for(var r,i=s(e)[Symbol.iterator]();!(t=(r=i.next()).done);t=!0)r.value.removeAttribute("aria-hidden")}catch(e){n=!0,o=e}finally{try{!t&&i.return&&i.return()}finally{if(n)throw o}}},t.documentNotReadyOrSSRTesting=function(){a=null};var o,r=(o=n(9771))&&o.__esModule?o:{default:o},i=n(834),a=null;function l(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function s(e){var t=e||a;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,r.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}},7727:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){for(var e=[i,a],t=0;t0?(document.body.firstChild!==i&&document.body.insertBefore(i,document.body.firstChild),document.body.lastChild!==a&&document.body.appendChild(a)):(i.parentElement&&i.parentElement.removeChild(i),a.parentElement&&a.parentElement.removeChild(a))}))},4838:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){var e=document.getElementsByTagName("html")[0];for(var t in n)r(e,n[t]);var i=document.body;for(var a in o)r(i,o[a]);n={},o={}},t.log=function(){};var n={},o={};function r(e,t){e.classList.remove(t)}t.add=function(e,t){return r=e.classList,i="html"==e.nodeName.toLowerCase()?n:o,void t.split(" ").forEach((function(e){!function(e,t){e[t]||(e[t]=0),e[t]+=1}(i,e),r.add(e)}));var r,i},t.remove=function(e,t){return r=e.classList,i="html"==e.nodeName.toLowerCase()?n:o,void t.split(" ").forEach((function(e){!function(e,t){e[t]&&(e[t]-=1)}(i,e),0===i[e]&&r.remove(e)}));var r,i}},7791:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){i=[]},t.log=function(){},t.handleBlur=s,t.handleFocus=c,t.markForFocusLater=function(){i.push(document.activeElement)},t.returnFocus=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=null;try{return void(0!==i.length&&(t=i.pop()).focus({preventScroll:e}))}catch(e){console.warn(["You tried to return focus to",t,"but it is not in the DOM anymore"].join(" "))}},t.popWithoutFocus=function(){i.length>0&&i.pop()},t.setupScopedFocus=function(e){a=e,window.addEventListener?(window.addEventListener("blur",s,!1),document.addEventListener("focus",c,!0)):(window.attachEvent("onBlur",s),document.attachEvent("onFocus",c))},t.teardownScopedFocus=function(){a=null,window.addEventListener?(window.removeEventListener("blur",s),document.removeEventListener("focus",c)):(window.detachEvent("onBlur",s),document.detachEvent("onFocus",c))};var o,r=(o=n(2411))&&o.__esModule?o:{default:o},i=[],a=null,l=!1;function s(){l=!0}function c(){if(l){if(l=!1,!a)return;setTimeout((function(){a.contains(document.activeElement)||((0,r.default)(a)[0]||a).focus()}),0)}}},9628:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.log=function(){console.log("portalOpenInstances ----------"),console.log(o.openInstances.length),o.openInstances.forEach((function(e){return console.log(e)})),console.log("end portalOpenInstances ----------")},t.resetState=function(){o=new n};var n=function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.register=function(e){-1===t.openInstances.indexOf(e)&&(t.openInstances.push(e),t.emit("register"))},this.deregister=function(e){var n=t.openInstances.indexOf(e);-1!==n&&(t.openInstances.splice(n,1),t.emit("deregister"))},this.subscribe=function(e){t.subscribers.push(e)},this.emit=function(e){t.subscribers.forEach((function(n){return n(e,t.openInstances.slice())}))},this.openInstances=[],this.subscribers=[]},o=new n;t.default=o},834:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canUseDOM=t.SafeNodeList=t.SafeHTMLCollection=void 0;var o,r=((o=n(411))&&o.__esModule?o:{default:o}).default,i=r.canUseDOM?window.HTMLElement:{};t.SafeHTMLCollection=r.canUseDOM?window.HTMLCollection:{},t.SafeNodeList=r.canUseDOM?window.NodeList:{},t.canUseDOM=r.canUseDOM,t.default=i},7067:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,r.default)(e);if(n.length){var o=void 0,a=t.shiftKey,l=n[0],s=n[n.length-1],c=i();if(e===c){if(!a)return;o=s}if(s!==c||a||(o=l),l===c&&a&&(o=s),o)return t.preventDefault(),void o.focus();var u=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null!=u&&"Chrome"!=u[1]&&null==/\biPod\b|\biPad\b/g.exec(navigator.userAgent)){var d=n.indexOf(c);if(d>-1&&(d+=a?-1:1),void 0===(o=n[d]))return t.preventDefault(),void(o=a?s:l).focus();t.preventDefault(),o.focus()}}else t.preventDefault()};var o,r=(o=n(2411))&&o.__esModule?o:{default:o};function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return e.activeElement.shadowRoot?i(e.activeElement.shadowRoot):e.activeElement}e.exports=t.default},2411:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){return[].slice.call(t.querySelectorAll("*"),0).reduce((function(t,n){return t.concat(n.shadowRoot?e(n.shadowRoot):[n])}),[]).filter(a)};var n="none",o="contents",r=/input|select|textarea|button|object|iframe/;function i(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;try{var r=window.getComputedStyle(e),i=r.getPropertyValue("display");return t?i!==o&&function(e,t){return"visible"!==t.getPropertyValue("overflow")||e.scrollWidth<=0&&e.scrollHeight<=0}(e,r):i===n}catch(e){return console.warn("Failed to inspect element style"),!1}}function a(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var n=isNaN(t);return(n||t>=0)&&function(e,t){var n=e.nodeName.toLowerCase();return(r.test(n)&&!e.disabled||"a"===n&&e.href||t)&&function(e){for(var t=e,n=e.getRootNode&&e.getRootNode();t&&t!==document.body;){if(n&&t===n&&(t=n.host.parentNode),i(t))return!1;t=t.parentNode}return!0}(e)}(e,!n)}e.exports=t.default},312:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r=(o=n(1720))&&o.__esModule?o:{default:o};t.default=r.default,e.exports=t.default},4210:(e,t,n)=>{"use strict";function o(e,t,n,o,r,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=o,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}const r={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach((e=>{r[e]=new o(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((([e,t])=>{r[e]=new o(e,1,!1,t,null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((e=>{r[e]=new o(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((e=>{r[e]=new o(e,2,!1,e,null,!1,!1)})),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach((e=>{r[e]=new o(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((e=>{r[e]=new o(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((e=>{r[e]=new o(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((e=>{r[e]=new o(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((e=>{r[e]=new o(e,5,!1,e.toLowerCase(),null,!1,!1)}));const i=/[\-\:]([a-z])/g,a=e=>e[1].toUpperCase();["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach((e=>{const t=e.replace(i,a);r[t]=new o(t,1,!1,e,null,!1,!1)})),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach((e=>{const t=e.replace(i,a);r[t]=new o(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((e=>{const t=e.replace(i,a);r[t]=new o(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((e=>{r[e]=new o(e,1,!1,e.toLowerCase(),null,!1,!1)})),r.xlinkHref=new o("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((e=>{r[e]=new o(e,1,!1,e.toLowerCase(),null,!0,!0)}));const{CAMELCASE:l,SAME:s,possibleStandardNames:c}=n(6811),u=RegExp.prototype.test.bind(new RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")),d=Object.keys(c).reduce(((e,t)=>{const n=c[t];return n===s?e[t]=t:n===l?e[t.toLowerCase()]=t:e[t]=n,e}),{});t.BOOLEAN=3,t.BOOLEANISH_STRING=2,t.NUMERIC=5,t.OVERLOADED_BOOLEAN=4,t.POSITIVE_NUMERIC=6,t.RESERVED=0,t.STRING=1,t.getPropertyInfo=function(e){return r.hasOwnProperty(e)?r[e]:null},t.isCustomAttribute=u,t.possibleStandardNames=d},6811:(e,t)=>{t.SAME=0,t.CAMELCASE=1,t.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}},5229:function(e,t,n){"use strict";var o=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n(1133)),r=n(8917);function i(e,t){var n={};return e&&"string"==typeof e?((0,o.default)(e,(function(e,o){e&&o&&(n[(0,r.camelCase)(e,t)]=o)})),n):n}i.default=i,e.exports=i},8917:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=void 0;var n=/^--[a-zA-Z0-9-]+$/,o=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,l=function(e,t){return t.toUpperCase()},s=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||r.test(e)||n.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(a,s):e.replace(i,s)).replace(o,l))}},1133:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(9788));t.default=function(e,t){var n=null;if(!e||"string"!=typeof e)return n;var o=(0,r.default)(e),i="function"==typeof t;return o.forEach((function(e){if("declaration"===e.type){var o=e.property,r=e.value;i?t(o,r,e):r&&((n=n||{})[o]=r)}})),n}},9771:e=>{"use strict";e.exports=function(){}},1609:e=>{"use strict";e.exports=window.React},5795:e=>{"use strict";e.exports=window.ReactDOM},6942:(e,t)=>{var n;!function(){"use strict";var o={}.hasOwnProperty;function r(){for(var e="",t=0;t{if(!n){var a=1/0;for(u=0;u=i)&&Object.keys(o.O).every((e=>o.O[e](n[s])))?n.splice(s--,1):(l=!1,i0&&e[u-1][2]>i;u--)e[u]=e[u-1];e[u]=[n,r,i]},o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={662:0,394:0};o.O.j=t=>0===e[t];var t=(t,n)=>{var r,i,[a,l,s]=n,c=0;if(a.some((t=>0!==e[t]))){for(r in l)o.o(l,r)&&(o.m[r]=l[r]);if(s)var u=s(o)}for(t&&t(n);co(2753)));r=o.O(r)})(); \ No newline at end of file +(()=>{var e,t={2753:(e,t,n)=>{"use strict";const o=window.wp.blocks;var r=n(1609);const i=window.wp.blockEditor;var a=n(312),l=n.n(a),s=n(442);const c=s.default||s,u=Math.min,d=Math.max,p=Math.round,f=Math.floor,h=e=>({x:e,y:e}),m={left:"right",right:"left",bottom:"top",top:"bottom"},y={start:"end",end:"start"};function v(e,t,n){return d(e,u(t,n))}function g(e,t){return"function"==typeof e?e(t):e}function b(e){return e.split("-")[0]}function w(e){return e.split("-")[1]}function _(e){return"x"===e?"y":"x"}function E(e){return"y"===e?"height":"width"}function x(e){return["top","bottom"].includes(b(e))?"y":"x"}function S(e){return _(x(e))}function O(e){return e.replace(/start|end/g,(e=>y[e]))}function C(e){return e.replace(/left|right|bottom|top/g,(e=>m[e]))}function T(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function k(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function A(e,t,n){let{reference:o,floating:r}=e;const i=x(t),a=S(t),l=E(a),s=b(t),c="y"===i,u=o.x+o.width/2-r.width/2,d=o.y+o.height/2-r.height/2,p=o[l]/2-r[l]/2;let f;switch(s){case"top":f={x:u,y:o.y-r.height};break;case"bottom":f={x:u,y:o.y+o.height};break;case"right":f={x:o.x+o.width,y:d};break;case"left":f={x:o.x-r.width,y:d};break;default:f={x:o.x,y:o.y}}switch(w(t)){case"start":f[a]-=p*(n&&c?-1:1);break;case"end":f[a]+=p*(n&&c?-1:1)}return f}async function R(e,t){var n;void 0===t&&(t={});const{x:o,y:r,platform:i,rects:a,elements:l,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:f=0}=g(t,e),h=T(f),m=l[p?"floating"===d?"reference":"floating":d],y=k(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(l.floating)),boundary:c,rootBoundary:u,strategy:s})),v="floating"===d?{x:o,y:r,width:a.floating.width,height:a.floating.height}:a.reference,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(l.floating)),w=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},_=k(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:v,offsetParent:b,strategy:s}):v);return{top:(y.top-_.top+h.top)/w.y,bottom:(_.bottom-y.bottom+h.bottom)/w.y,left:(y.left-_.left+h.left)/w.x,right:(_.right-y.right+h.right)/w.x}}function N(e){return L(e)?(e.nodeName||"").toLowerCase():"#document"}function P(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function M(e){var t;return null==(t=(L(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function L(e){return e instanceof Node||e instanceof P(e).Node}function D(e){return e instanceof Element||e instanceof P(e).Element}function j(e){return e instanceof HTMLElement||e instanceof P(e).HTMLElement}function I(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof P(e).ShadowRoot)}function F(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=V(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(r)}function B(e){return["table","td","th"].includes(N(e))}function H(e){const t=U(),n=V(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function U(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function W(e){return["html","body","#document"].includes(N(e))}function V(e){return P(e).getComputedStyle(e)}function z(e){return D(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function q(e){if("html"===N(e))return e;const t=e.assignedSlot||e.parentNode||I(e)&&e.host||M(e);return I(t)?t.host:t}function $(e){const t=q(e);return W(t)?e.ownerDocument?e.ownerDocument.body:e.body:j(t)&&F(t)?t:$(t)}function G(e,t,n){var o;void 0===t&&(t=[]),void 0===n&&(n=!0);const r=$(e),i=r===(null==(o=e.ownerDocument)?void 0:o.body),a=P(r);return i?t.concat(a,a.visualViewport||[],F(r)?r:[],a.frameElement&&n?G(a.frameElement):[]):t.concat(r,G(r,[],n))}function X(e){const t=V(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=j(e),i=r?e.offsetWidth:n,a=r?e.offsetHeight:o,l=p(n)!==i||p(o)!==a;return l&&(n=i,o=a),{width:n,height:o,$:l}}function Y(e){return D(e)?e:e.contextElement}function K(e){const t=Y(e);if(!j(t))return h(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=X(t);let a=(i?p(n.width):n.width)/o,l=(i?p(n.height):n.height)/r;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}const Z=h(0);function J(e){const t=P(e);return U()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Z}function Q(e,t,n,o){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=e.getBoundingClientRect(),i=Y(e);let a=h(1);t&&(o?D(o)&&(a=K(o)):a=K(e));const l=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==P(e))&&t}(i,n,o)?J(i):h(0);let s=(r.left+l.x)/a.x,c=(r.top+l.y)/a.y,u=r.width/a.x,d=r.height/a.y;if(i){const e=P(i),t=o&&D(o)?P(o):o;let n=e,r=n.frameElement;for(;r&&o&&t!==n;){const e=K(r),t=r.getBoundingClientRect(),o=V(r),i=t.left+(r.clientLeft+parseFloat(o.paddingLeft))*e.x,a=t.top+(r.clientTop+parseFloat(o.paddingTop))*e.y;s*=e.x,c*=e.y,u*=e.x,d*=e.y,s+=i,c+=a,n=P(r),r=n.frameElement}}return k({width:u,height:d,x:s,y:c})}const ee=[":popover-open",":modal"];function te(e){return ee.some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function ne(e){return Q(M(e)).left+z(e).scrollLeft}function oe(e,t,n){let o;if("viewport"===t)o=function(e,t){const n=P(e),o=M(e),r=n.visualViewport;let i=o.clientWidth,a=o.clientHeight,l=0,s=0;if(r){i=r.width,a=r.height;const e=U();(!e||e&&"fixed"===t)&&(l=r.offsetLeft,s=r.offsetTop)}return{width:i,height:a,x:l,y:s}}(e,n);else if("document"===t)o=function(e){const t=M(e),n=z(e),o=e.ownerDocument.body,r=d(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),i=d(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let a=-n.scrollLeft+ne(e);const l=-n.scrollTop;return"rtl"===V(o).direction&&(a+=d(t.clientWidth,o.clientWidth)-r),{width:r,height:i,x:a,y:l}}(M(e));else if(D(t))o=function(e,t){const n=Q(e,!0,"fixed"===t),o=n.top+e.clientTop,r=n.left+e.clientLeft,i=j(e)?K(e):h(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:r*i.x,y:o*i.y}}(t,n);else{const n=J(e);o={...t,x:t.x-n.x,y:t.y-n.y}}return k(o)}function re(e,t){const n=q(e);return!(n===t||!D(n)||W(n))&&("fixed"===V(n).position||re(n,t))}function ie(e,t,n){const o=j(t),r=M(t),i="fixed"===n,a=Q(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const s=h(0);if(o||!o&&!i)if(("body"!==N(t)||F(r))&&(l=z(t)),o){const e=Q(t,!0,i,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else r&&(s.x=ne(r));return{x:a.left+l.scrollLeft-s.x,y:a.top+l.scrollTop-s.y,width:a.width,height:a.height}}function ae(e){return"static"===V(e).position}function le(e,t){return j(e)&&"fixed"!==V(e).position?t?t(e):e.offsetParent:null}function se(e,t){const n=P(e);if(te(e))return n;if(!j(e)){let t=q(e);for(;t&&!W(t);){if(D(t)&&!ae(t))return t;t=q(t)}return n}let o=le(e,t);for(;o&&B(o)&&ae(o);)o=le(o,t);return o&&W(o)&&ae(o)&&!H(o)?n:o||function(e){let t=q(e);for(;j(t)&&!W(t);){if(H(t))return t;t=q(t)}return null}(e)||n}const ce={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const i="fixed"===r,a=M(o),l=!!t&&te(t.floating);if(o===a||l&&i)return n;let s={scrollLeft:0,scrollTop:0},c=h(1);const u=h(0),d=j(o);if((d||!d&&!i)&&(("body"!==N(o)||F(a))&&(s=z(o)),j(o))){const e=Q(o);c=K(o),u.x=e.x+o.clientLeft,u.y=e.y+o.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-s.scrollLeft*c.x+u.x,y:n.y*c.y-s.scrollTop*c.y+u.y}},getDocumentElement:M,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const i=[..."clippingAncestors"===n?te(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let o=G(e,[],!1).filter((e=>D(e)&&"body"!==N(e))),r=null;const i="fixed"===V(e).position;let a=i?q(e):e;for(;D(a)&&!W(a);){const t=V(a),n=H(a);n||"fixed"!==t.position||(r=null),(i?!n&&!r:!n&&"static"===t.position&&r&&["absolute","fixed"].includes(r.position)||F(a)&&!n&&re(e,a))?o=o.filter((e=>e!==a)):r=t,a=q(a)}return t.set(e,o),o}(t,this._c):[].concat(n),o],a=i[0],l=i.reduce(((e,n)=>{const o=oe(t,n,r);return e.top=d(o.top,e.top),e.right=u(o.right,e.right),e.bottom=u(o.bottom,e.bottom),e.left=d(o.left,e.left),e}),oe(t,a,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:se,getElementRects:async function(e){const t=this.getOffsetParent||se,n=this.getDimensions,o=await n(e.floating);return{reference:ie(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=X(e);return{width:t,height:n}},getScale:K,isElement:D,isRTL:function(e){return"rtl"===V(e).direction}};const ue=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:i,placement:a,middlewareData:l}=t,s=await async function(e,t){const{placement:n,platform:o,elements:r}=e,i=await(null==o.isRTL?void 0:o.isRTL(r.floating)),a=b(n),l=w(n),s="y"===x(n),c=["left","top"].includes(a)?-1:1,u=i&&s?-1:1,d=g(t,e);let{mainAxis:p,crossAxis:f,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return l&&"number"==typeof h&&(f="end"===l?-1*h:h),s?{x:f*u,y:p*c}:{x:p*c,y:f*u}}(t,e);return a===(null==(n=l.offset)?void 0:n.placement)&&null!=(o=l.arrow)&&o.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},de=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=g(e,t),c={x:n,y:o},u=await R(t,s),d=x(b(r)),p=_(d);let f=c[p],h=c[d];if(i){const e="y"===p?"bottom":"right";f=v(f+u["y"===p?"top":"left"],f,f-u[e])}if(a){const e="y"===d?"bottom":"right";h=v(h+u["y"===d?"top":"left"],h,h-u[e])}const m=l.fn({...t,[p]:f,[d]:h});return{...m,data:{x:m.x-n,y:m.y-o}}}}},pe=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:i,rects:a,initialPlacement:l,platform:s,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...y}=g(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const v=b(r),_=b(l)===l,x=await(null==s.isRTL?void 0:s.isRTL(c.floating)),T=p||(_||!m?[C(l)]:function(e){const t=C(e);return[O(e),t,O(t)]}(l));p||"none"===h||T.push(...function(e,t,n,o){const r=w(e);let i=function(e,t,n){const o=["left","right"],r=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?r:o:t?o:r;case"left":case"right":return t?i:a;default:return[]}}(b(e),"start"===n,o);return r&&(i=i.map((e=>e+"-"+r)),t&&(i=i.concat(i.map(O)))),i}(l,m,h,x));const k=[l,...T],A=await R(t,y),N=[];let P=(null==(o=i.flip)?void 0:o.overflows)||[];if(u&&N.push(A[v]),d){const e=function(e,t,n){void 0===n&&(n=!1);const o=w(e),r=S(e),i=E(r);let a="x"===r?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=C(a)),[a,C(a)]}(r,a,x);N.push(A[e[0]],A[e[1]])}if(P=[...P,{placement:r,overflows:N}],!N.every((e=>e<=0))){var M,L;const e=((null==(M=i.flip)?void 0:M.index)||0)+1,t=k[e];if(t)return{data:{index:e,overflows:P},reset:{placement:t}};let n=null==(L=P.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:L.placement;if(!n)switch(f){case"bestFit":{var D;const e=null==(D=P.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:D[0];e&&(n=e);break}case"initialPlacement":n=l}if(r!==n)return{reset:{placement:n}}}return{}}}},fe=(e,t,n)=>{const o=new Map,r={platform:ce,...n},i={...r.platform,_c:o};return(async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:a}=n,l=i.filter(Boolean),s=await(null==a.isRTL?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:d}=A(c,o,s),p=o,f={},h=0;for(let n=0;n{if(!e)return{tooltipStyles:{},tooltipArrowStyles:{},place:o};if(null===t)return{tooltipStyles:{},tooltipArrowStyles:{},place:o};const s=a;return n?(s.push({name:"arrow",options:c={element:n,padding:5},async fn(e){const{x:t,y:n,placement:o,rects:r,platform:i,elements:a,middlewareData:l}=e,{element:s,padding:d=0}=g(c,e)||{};if(null==s)return{};const p=T(d),f={x:t,y:n},h=S(o),m=E(h),y=await i.getDimensions(s),b="y"===h,_=b?"top":"left",x=b?"bottom":"right",O=b?"clientHeight":"clientWidth",C=r.reference[m]+r.reference[h]-f[h]-r.floating[m],k=f[h]-r.reference[h],A=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s));let R=A?A[O]:0;R&&await(null==i.isElement?void 0:i.isElement(A))||(R=a.floating[O]||r.floating[m]);const N=C/2-k/2,P=R/2-y[m]/2-1,M=u(p[_],P),L=u(p[x],P),D=M,j=R-y[m]-L,I=R/2-y[m]/2+N,F=v(D,I,j),B=!l.arrow&&null!=w(o)&&I!==F&&r.reference[m]/2-(I{var r,i;const a={left:`${e}px`,top:`${t}px`,border:l},{x:s,y:c}=null!==(r=o.arrow)&&void 0!==r?r:{x:0,y:0},u=null!==(i={top:"bottom",right:"left",bottom:"top",left:"right"}[n.split("-")[0]])&&void 0!==i?i:"bottom",d=l&&{borderBottom:l,borderRight:l};let p=0;if(l){const e=`${l}`.match(/(\d+)px/);p=(null==e?void 0:e[1])?Number(e[1]):1}return{tooltipStyles:a,tooltipArrowStyles:{left:null!=s?`${s}px`:"",top:null!=c?`${c}px`:"",right:"",bottom:"",...d,[u]:`-${4+p}px`},place:n}}))):fe(e,t,{placement:"bottom",strategy:i,middleware:s}).then((({x:e,y:t,placement:n})=>({tooltipStyles:{left:`${e}px`,top:`${t}px`},tooltipArrowStyles:{},place:n})));var c},ge=(e,t)=>!("CSS"in window&&"supports"in window.CSS)||window.CSS.supports(e,t),be=(e,t,n)=>{let o=null;const r=function(...r){const i=()=>{o=null,n||e.apply(this,r)};n&&!o&&(e.apply(this,r),o=setTimeout(i,t)),n||(o&&clearTimeout(o),o=setTimeout(i,t))};return r.cancel=()=>{o&&(clearTimeout(o),o=null)},r},we=e=>null!==e&&!Array.isArray(e)&&"object"==typeof e,_e=(e,t)=>{if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&e.every(((e,n)=>_e(e,t[n])));if(Array.isArray(e)!==Array.isArray(t))return!1;if(!we(e)||!we(t))return e===t;const n=Object.keys(e),o=Object.keys(t);return n.length===o.length&&n.every((n=>_e(e[n],t[n])))},Ee=e=>{if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;const t=getComputedStyle(e);return["overflow","overflow-x","overflow-y"].some((e=>{const n=t.getPropertyValue(e);return"auto"===n||"scroll"===n}))},xe=e=>{if(!e)return null;let t=e.parentElement;for(;t;){if(Ee(t))return t;t=t.parentElement}return document.scrollingElement||document.documentElement},Se="undefined"!=typeof window?r.useLayoutEffect:r.useEffect,Oe={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},Ce=(0,r.createContext)({getTooltipData:()=>Oe});function Te(e="DEFAULT_TOOLTIP_ID"){return(0,r.useContext)(Ce).getTooltipData(e)}var ke={tooltip:"core-styles-module_tooltip__3vRRp",fixed:"core-styles-module_fixed__pcSol",arrow:"core-styles-module_arrow__cvMwQ",noArrow:"core-styles-module_noArrow__xock6",clickable:"core-styles-module_clickable__ZuTTB",show:"core-styles-module_show__Nt9eE",closing:"core-styles-module_closing__sGnxF"},Ae={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const Re=({forwardRef:e,id:t,className:n,classNameArrow:o,variant:i="dark",anchorId:a,anchorSelect:l,place:s="top",offset:c=10,events:p=["hover"],openOnClick:h=!1,positionStrategy:m="absolute",middlewares:y,wrapper:v,delayShow:g=0,delayHide:b=0,float:w=!1,hidden:_=!1,noArrow:E=!1,clickable:x=!1,closeOnEsc:S=!1,closeOnScroll:O=!1,closeOnResize:C=!1,openEvents:T,closeEvents:k,globalCloseEvents:A,imperativeModeOnly:R,style:N,position:P,afterShow:L,afterHide:D,content:j,contentWrapperRef:I,isOpen:F,defaultIsOpen:B=!1,setIsOpen:H,activeAnchor:U,setActiveAnchor:W,border:V,opacity:z,arrowColor:q,role:$="tooltip"})=>{var X;const K=(0,r.useRef)(null),Z=(0,r.useRef)(null),J=(0,r.useRef)(null),ee=(0,r.useRef)(null),te=(0,r.useRef)(null),[ne,oe]=(0,r.useState)({tooltipStyles:{},tooltipArrowStyles:{},place:s}),[re,ie]=(0,r.useState)(!1),[ae,le]=(0,r.useState)(!1),[se,ce]=(0,r.useState)(null),ue=(0,r.useRef)(!1),de=(0,r.useRef)(null),{anchorRefs:pe,setActiveAnchor:fe}=Te(t),me=(0,r.useRef)(!1),[ye,ge]=(0,r.useState)([]),we=(0,r.useRef)(!1),Ee=h||p.includes("click"),Oe=Ee||(null==T?void 0:T.click)||(null==T?void 0:T.dblclick)||(null==T?void 0:T.mousedown),Ce=T?{...T}:{mouseenter:!0,focus:!0,click:!1,dblclick:!1,mousedown:!1};!T&&Ee&&Object.assign(Ce,{mouseenter:!1,focus:!1,click:!0});const Re=k?{...k}:{mouseleave:!0,blur:!0,click:!1,dblclick:!1,mouseup:!1};!k&&Ee&&Object.assign(Re,{mouseleave:!1,blur:!1});const Ne=A?{...A}:{escape:S||!1,scroll:O||!1,resize:C||!1,clickOutsideAnchor:Oe||!1};R&&(Object.assign(Ce,{mouseenter:!1,focus:!1,click:!1,dblclick:!1,mousedown:!1}),Object.assign(Re,{mouseleave:!1,blur:!1,click:!1,dblclick:!1,mouseup:!1}),Object.assign(Ne,{escape:!1,scroll:!1,resize:!1,clickOutsideAnchor:!1})),Se((()=>(we.current=!0,()=>{we.current=!1})),[]);const Pe=e=>{we.current&&(e&&le(!0),setTimeout((()=>{we.current&&(null==H||H(e),void 0===F&&ie(e))}),10))};(0,r.useEffect)((()=>{if(void 0===F)return()=>null;F&&le(!0);const e=setTimeout((()=>{ie(F)}),10);return()=>{clearTimeout(e)}}),[F]),(0,r.useEffect)((()=>{if(re!==ue.current)if(te.current&&clearTimeout(te.current),ue.current=re,re)null==L||L();else{const e=(e=>{const t=getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay").match(/^([\d.]+)(ms|s)$/);if(!t)return 0;const[,n,o]=t;return Number(n)*("ms"===o?1:1e3)})();te.current=setTimeout((()=>{le(!1),ce(null),null==D||D()}),e+25)}}),[re]);const Me=e=>{oe((t=>_e(t,e)?t:e))},Le=(e=g)=>{J.current&&clearTimeout(J.current),ae?Pe(!0):J.current=setTimeout((()=>{Pe(!0)}),e)},De=(e=b)=>{ee.current&&clearTimeout(ee.current),ee.current=setTimeout((()=>{me.current||Pe(!1)}),e)},je=e=>{var t;if(!e)return;const n=null!==(t=e.currentTarget)&&void 0!==t?t:e.target;if(!(null==n?void 0:n.isConnected))return W(null),void fe({current:null});g?Le():Pe(!0),W(n),fe({current:n}),ee.current&&clearTimeout(ee.current)},Ie=()=>{x?De(b||100):b?De():Pe(!1),J.current&&clearTimeout(J.current)},Fe=({x:e,y:t})=>{var n;const o={getBoundingClientRect:()=>({x:e,y:t,width:0,height:0,top:t,left:e,right:e,bottom:t})};ve({place:null!==(n=null==se?void 0:se.place)&&void 0!==n?n:s,offset:c,elementReference:o,tooltipReference:K.current,tooltipArrowReference:Z.current,strategy:m,middlewares:y,border:V}).then((e=>{Me(e)}))},Be=e=>{if(!e)return;const t=e,n={x:t.clientX,y:t.clientY};Fe(n),de.current=n},He=e=>{var t;if(!re)return;const n=e.target;n.isConnected&&((null===(t=K.current)||void 0===t?void 0:t.contains(n))||[document.querySelector(`[id='${a}']`),...ye].some((e=>null==e?void 0:e.contains(n)))||(Pe(!1),J.current&&clearTimeout(J.current)))},Ue=be(je,50,!0),We=be(Ie,50,!0),Ve=e=>{We.cancel(),Ue(e)},ze=()=>{Ue.cancel(),We()},qe=(0,r.useCallback)((()=>{var e,t;const n=null!==(e=null==se?void 0:se.position)&&void 0!==e?e:P;n?Fe(n):w?de.current&&Fe(de.current):(null==U?void 0:U.isConnected)&&ve({place:null!==(t=null==se?void 0:se.place)&&void 0!==t?t:s,offset:c,elementReference:U,tooltipReference:K.current,tooltipArrowReference:Z.current,strategy:m,middlewares:y,border:V}).then((e=>{we.current&&Me(e)}))}),[re,U,j,N,s,null==se?void 0:se.place,c,m,P,null==se?void 0:se.position,w]);(0,r.useEffect)((()=>{var e,t;const n=new Set(pe);ye.forEach((e=>{n.add({current:e})}));const o=document.querySelector(`[id='${a}']`);o&&n.add({current:o});const r=()=>{Pe(!1)},i=xe(U),l=xe(K.current);Ne.scroll&&(window.addEventListener("scroll",r),null==i||i.addEventListener("scroll",r),null==l||l.addEventListener("scroll",r));let s=null;Ne.resize?window.addEventListener("resize",r):U&&K.current&&(s=function(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:s=!1}=o,c=Y(e),p=r||i?[...c?G(c):[],...G(t)]:[];p.forEach((e=>{r&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const h=c&&l?function(e,t){let n,o=null;const r=M(e);function i(){var e;clearTimeout(n),null==(e=o)||e.disconnect(),o=null}return function a(l,s){void 0===l&&(l=!1),void 0===s&&(s=1),i();const{left:c,top:p,width:h,height:m}=e.getBoundingClientRect();if(l||t(),!h||!m)return;const y={rootMargin:-f(p)+"px "+-f(r.clientWidth-(c+h))+"px "+-f(r.clientHeight-(p+m))+"px "+-f(c)+"px",threshold:d(0,u(1,s))||1};let v=!0;function g(e){const t=e[0].intersectionRatio;if(t!==s){if(!v)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),1e3)}v=!1}try{o=new IntersectionObserver(g,{...y,root:r.ownerDocument})}catch(e){o=new IntersectionObserver(g,y)}o.observe(e)}(!0),i}(c,n):null;let m,y=-1,v=null;a&&(v=new ResizeObserver((e=>{let[o]=e;o&&o.target===c&&v&&(v.unobserve(t),cancelAnimationFrame(y),y=requestAnimationFrame((()=>{var e;null==(e=v)||e.observe(t)}))),n()})),c&&!s&&v.observe(c),v.observe(t));let g=s?Q(e):null;return s&&function t(){const o=Q(e);!g||o.x===g.x&&o.y===g.y&&o.width===g.width&&o.height===g.height||n(),g=o,m=requestAnimationFrame(t)}(),n(),()=>{var e;p.forEach((e=>{r&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==h||h(),null==(e=v)||e.disconnect(),v=null,s&&cancelAnimationFrame(m)}}(U,K.current,qe,{ancestorResize:!0,elementResize:!0,layoutShift:!0}));const c=e=>{"Escape"===e.key&&Pe(!1)};Ne.escape&&window.addEventListener("keydown",c),Ne.clickOutsideAnchor&&window.addEventListener("click",He);const p=[],h=e=>{re&&(null==e?void 0:e.target)===U||je(e)},m=e=>{re&&(null==e?void 0:e.target)===U&&Ie()},y=["mouseenter","mouseleave","focus","blur"],v=["click","dblclick","mousedown","mouseup"];Object.entries(Ce).forEach((([e,t])=>{t&&(y.includes(e)?p.push({event:e,listener:Ve}):v.includes(e)&&p.push({event:e,listener:h}))})),Object.entries(Re).forEach((([e,t])=>{t&&(y.includes(e)?p.push({event:e,listener:ze}):v.includes(e)&&p.push({event:e,listener:m}))})),w&&p.push({event:"pointermove",listener:Be});const g=()=>{me.current=!0},b=()=>{me.current=!1,Ie()};return x&&!Oe&&(null===(e=K.current)||void 0===e||e.addEventListener("mouseenter",g),null===(t=K.current)||void 0===t||t.addEventListener("mouseleave",b)),p.forEach((({event:e,listener:t})=>{n.forEach((n=>{var o;null===(o=n.current)||void 0===o||o.addEventListener(e,t)}))})),()=>{var e,t;Ne.scroll&&(window.removeEventListener("scroll",r),null==i||i.removeEventListener("scroll",r),null==l||l.removeEventListener("scroll",r)),Ne.resize?window.removeEventListener("resize",r):null==s||s(),Ne.clickOutsideAnchor&&window.removeEventListener("click",He),Ne.escape&&window.removeEventListener("keydown",c),x&&!Oe&&(null===(e=K.current)||void 0===e||e.removeEventListener("mouseenter",g),null===(t=K.current)||void 0===t||t.removeEventListener("mouseleave",b)),p.forEach((({event:e,listener:t})=>{n.forEach((n=>{var o;null===(o=n.current)||void 0===o||o.removeEventListener(e,t)}))}))}}),[U,qe,ae,pe,ye,T,k,A,Ee,g,b]),(0,r.useEffect)((()=>{var e,n;let o=null!==(n=null!==(e=null==se?void 0:se.anchorSelect)&&void 0!==e?e:l)&&void 0!==n?n:"";!o&&t&&(o=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`);const r=new MutationObserver((e=>{const n=[],r=[];e.forEach((e=>{if("attributes"===e.type&&"data-tooltip-id"===e.attributeName&&(e.target.getAttribute("data-tooltip-id")===t?n.push(e.target):e.oldValue===t&&r.push(e.target)),"childList"===e.type){if(U){const t=[...e.removedNodes].filter((e=>1===e.nodeType));if(o)try{r.push(...t.filter((e=>e.matches(o)))),r.push(...t.flatMap((e=>[...e.querySelectorAll(o)])))}catch(e){}t.some((e=>{var t;return!!(null===(t=null==e?void 0:e.contains)||void 0===t?void 0:t.call(e,U))&&(le(!1),Pe(!1),W(null),J.current&&clearTimeout(J.current),ee.current&&clearTimeout(ee.current),!0)}))}if(o)try{const t=[...e.addedNodes].filter((e=>1===e.nodeType));n.push(...t.filter((e=>e.matches(o)))),n.push(...t.flatMap((e=>[...e.querySelectorAll(o)])))}catch(e){}}})),(n.length||r.length)&&ge((e=>[...e.filter((e=>!r.includes(e))),...n]))}));return r.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"],attributeOldValue:!0}),()=>{r.disconnect()}}),[t,l,null==se?void 0:se.anchorSelect,U]),(0,r.useEffect)((()=>{qe()}),[qe]),(0,r.useEffect)((()=>{if(!(null==I?void 0:I.current))return()=>null;const e=new ResizeObserver((()=>{setTimeout((()=>qe()))}));return e.observe(I.current),()=>{e.disconnect()}}),[j,null==I?void 0:I.current]),(0,r.useEffect)((()=>{var e;const t=document.querySelector(`[id='${a}']`),n=[...ye,t];U&&n.includes(U)||W(null!==(e=ye[0])&&void 0!==e?e:t)}),[a,ye,U]),(0,r.useEffect)((()=>(B&&Pe(!0),()=>{J.current&&clearTimeout(J.current),ee.current&&clearTimeout(ee.current)})),[]),(0,r.useEffect)((()=>{var e;let n=null!==(e=null==se?void 0:se.anchorSelect)&&void 0!==e?e:l;if(!n&&t&&(n=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`),n)try{const e=Array.from(document.querySelectorAll(n));ge(e)}catch(e){ge([])}}),[t,l,null==se?void 0:se.anchorSelect]),(0,r.useEffect)((()=>{J.current&&(clearTimeout(J.current),Le(g))}),[g]);const $e=null!==(X=null==se?void 0:se.content)&&void 0!==X?X:j,Ge=re&&Object.keys(ne.tooltipStyles).length>0;return(0,r.useImperativeHandle)(e,(()=>({open:e=>{if(null==e?void 0:e.anchorSelect)try{document.querySelector(e.anchorSelect)}catch(t){return void console.warn(`[react-tooltip] "${e.anchorSelect}" is not a valid CSS selector`)}ce(null!=e?e:null),(null==e?void 0:e.delay)?Le(e.delay):Pe(!0)},close:e=>{(null==e?void 0:e.delay)?De(e.delay):Pe(!1)},activeAnchor:U,place:ne.place,isOpen:Boolean(ae&&!_&&$e&&Ge)}))),ae&&!_&&$e?r.createElement(v,{id:t,role:$,className:he("react-tooltip",ke.tooltip,Ae.tooltip,Ae[i],n,`react-tooltip__place-${ne.place}`,ke[Ge?"show":"closing"],Ge?"react-tooltip__show":"react-tooltip__closing","fixed"===m&&ke.fixed,x&&ke.clickable),onTransitionEnd:e=>{te.current&&clearTimeout(te.current),re||"opacity"!==e.propertyName||(le(!1),ce(null),null==D||D())},style:{...N,...ne.tooltipStyles,opacity:void 0!==z&&Ge?z:void 0},ref:K},$e,r.createElement(v,{className:he("react-tooltip-arrow",ke.arrow,Ae.arrow,o,E&&ke.noArrow),style:{...ne.tooltipArrowStyles,background:q?`linear-gradient(to right bottom, transparent 50%, ${q} 50%)`:void 0},ref:Z})):null},Ne=({content:e})=>r.createElement("span",{dangerouslySetInnerHTML:{__html:e}}),Pe=r.forwardRef((({id:e,anchorId:t,anchorSelect:n,content:o,html:i,render:a,className:l,classNameArrow:s,variant:c="dark",place:u="top",offset:d=10,wrapper:p="div",children:f=null,events:h=["hover"],openOnClick:m=!1,positionStrategy:y="absolute",middlewares:v,delayShow:g=0,delayHide:b=0,float:w=!1,hidden:_=!1,noArrow:E=!1,clickable:x=!1,closeOnEsc:S=!1,closeOnScroll:O=!1,closeOnResize:C=!1,openEvents:T,closeEvents:k,globalCloseEvents:A,imperativeModeOnly:R=!1,style:N,position:P,isOpen:M,defaultIsOpen:L=!1,disableStyleInjection:D=!1,border:j,opacity:I,arrowColor:F,setIsOpen:B,afterShow:H,afterHide:U,role:W="tooltip"},V)=>{const[z,q]=(0,r.useState)(o),[$,G]=(0,r.useState)(i),[X,Y]=(0,r.useState)(u),[K,Z]=(0,r.useState)(c),[J,Q]=(0,r.useState)(d),[ee,te]=(0,r.useState)(g),[ne,oe]=(0,r.useState)(b),[re,ie]=(0,r.useState)(w),[ae,le]=(0,r.useState)(_),[se,ce]=(0,r.useState)(p),[ue,de]=(0,r.useState)(h),[pe,fe]=(0,r.useState)(y),[me,ye]=(0,r.useState)(null),[ve,be]=(0,r.useState)(null),we=(0,r.useRef)(D),{anchorRefs:_e,activeAnchor:Ee}=Te(e),xe=e=>null==e?void 0:e.getAttributeNames().reduce(((t,n)=>{var o;return n.startsWith("data-tooltip-")&&(t[n.replace(/^data-tooltip-/,"")]=null!==(o=null==e?void 0:e.getAttribute(n))&&void 0!==o?o:null),t}),{}),Se=e=>{const t={place:e=>{var t;Y(null!==(t=e)&&void 0!==t?t:u)},content:e=>{q(null!=e?e:o)},html:e=>{G(null!=e?e:i)},variant:e=>{var t;Z(null!==(t=e)&&void 0!==t?t:c)},offset:e=>{Q(null===e?d:Number(e))},wrapper:e=>{var t;ce(null!==(t=e)&&void 0!==t?t:p)},events:e=>{const t=null==e?void 0:e.split(" ");de(null!=t?t:h)},"position-strategy":e=>{var t;fe(null!==(t=e)&&void 0!==t?t:y)},"delay-show":e=>{te(null===e?g:Number(e))},"delay-hide":e=>{oe(null===e?b:Number(e))},float:e=>{ie(null===e?w:"true"===e)},hidden:e=>{le(null===e?_:"true"===e)},"class-name":e=>{ye(e)}};Object.values(t).forEach((e=>e(null))),Object.entries(e).forEach((([e,n])=>{var o;null===(o=t[e])||void 0===o||o.call(t,n)}))};(0,r.useEffect)((()=>{q(o)}),[o]),(0,r.useEffect)((()=>{G(i)}),[i]),(0,r.useEffect)((()=>{Y(u)}),[u]),(0,r.useEffect)((()=>{Z(c)}),[c]),(0,r.useEffect)((()=>{Q(d)}),[d]),(0,r.useEffect)((()=>{te(g)}),[g]),(0,r.useEffect)((()=>{oe(b)}),[b]),(0,r.useEffect)((()=>{ie(w)}),[w]),(0,r.useEffect)((()=>{le(_)}),[_]),(0,r.useEffect)((()=>{fe(y)}),[y]),(0,r.useEffect)((()=>{we.current!==D&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")}),[D]),(0,r.useEffect)((()=>{"undefined"!=typeof window&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:"core"===D,disableBase:D}}))}),[]),(0,r.useEffect)((()=>{var o;const r=new Set(_e);let i=n;if(!i&&e&&(i=`[data-tooltip-id='${e.replace(/'/g,"\\'")}']`),i)try{document.querySelectorAll(i).forEach((e=>{r.add({current:e})}))}catch(o){console.warn(`[react-tooltip] "${i}" is not a valid CSS selector`)}const a=document.querySelector(`[id='${t}']`);if(a&&r.add({current:a}),!r.size)return()=>null;const l=null!==(o=null!=ve?ve:a)&&void 0!==o?o:Ee.current,s=new MutationObserver((e=>{e.forEach((e=>{var t;if(!l||"attributes"!==e.type||!(null===(t=e.attributeName)||void 0===t?void 0:t.startsWith("data-tooltip-")))return;const n=xe(l);Se(n)}))})),c={attributes:!0,childList:!1,subtree:!1};if(l){const e=xe(l);Se(e),s.observe(l,c)}return()=>{s.disconnect()}}),[_e,Ee,ve,t,n]),(0,r.useEffect)((()=>{(null==N?void 0:N.border)&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),j&&!ge("border",`${j}`)&&console.warn(`[react-tooltip] "${j}" is not a valid \`border\`.`),(null==N?void 0:N.opacity)&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),I&&!ge("opacity",`${I}`)&&console.warn(`[react-tooltip] "${I}" is not a valid \`opacity\`.`)}),[]);let Oe=f;const Ce=(0,r.useRef)(null);if(a){const e=a({content:(null==ve?void 0:ve.getAttribute("data-tooltip-content"))||z||null,activeAnchor:ve});Oe=e?r.createElement("div",{ref:Ce,className:"react-tooltip-content-wrapper"},e):null}else z&&(Oe=z);$&&(Oe=r.createElement(Ne,{content:$}));const ke={forwardRef:V,id:e,anchorId:t,anchorSelect:n,className:he(l,me),classNameArrow:s,content:Oe,contentWrapperRef:Ce,place:X,variant:K,offset:J,wrapper:se,events:ue,openOnClick:m,positionStrategy:pe,middlewares:v,delayShow:ee,delayHide:ne,float:re,hidden:ae,noArrow:E,clickable:x,closeOnEsc:S,closeOnScroll:O,closeOnResize:C,openEvents:T,closeEvents:k,globalCloseEvents:A,imperativeModeOnly:R,style:N,position:P,isOpen:M,defaultIsOpen:L,border:j,opacity:I,arrowColor:F,setIsOpen:B,afterShow:H,afterHide:U,activeAnchor:ve,setActiveAnchor:e=>be(e),role:W};return r.createElement(Re,{...ke})}));"undefined"!=typeof window&&window.addEventListener("react-tooltip-inject-styles",(e=>{e.detail.disableCore||ye({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in}",type:"core"}),e.detail.disableBase||ye({css:"\n.styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:8px;height:8px}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}",type:"base"})}));const Me=window.wp.element,Le=window.wp.i18n,De=window.wp.components,je=window.wp.apiFetch;var Ie=n.n(je);const Fe=({type:e="upcoming",status:t="no_status"})=>{const n={upcoming:{attending:{icon:"dashicons dashicons-yes-alt",text:(0,Le._x)("Attending","Responded Status","gatherpress")},waiting_list:{icon:"dashicons dashicons-editor-help",text:(0,Le._x)("Waiting List","Responded Status","gatherpress")},not_attending:{icon:"dashicons dashicons-dismiss",text:(0,Le._x)("Not Attending","Responded Status","gatherpress")},no_status:{icon:"",text:""}},past:{attending:{icon:"dashicons dashicons-yes-alt",text:(0,Le._x)("Went","Responded Status","gatherpress")},waiting_list:{icon:"dashicons dashicons-dismiss",text:(0,Le._x)("Didn't Go","Responded Status","gatherpress")},not_attending:{icon:"dashicons dashicons-dismiss",text:(0,Le._x)("Didn't Go","Responded Status","gatherpress")},no_status:{icon:"dashicons dashicons-dismiss",text:(0,Le._x)("Didn't Go","Responded Status","gatherpress")}}};return(0,r.createElement)("div",{className:"gatherpress-status__response"},(0,r.createElement)("span",{className:n[e][t].icon}),(0,r.createElement)("strong",null,n[e][t].text))};function Be(e){if("object"==typeof GatherPress)return e.split(".").reduce(((e,t)=>e&&e[t]),GatherPress)}window.wp.data;const He=({postId:e,currentUser:t="",type:n,enableAnonymousRsvp:o,enableInitialDecline:i,maxGuestLimit:a})=>{const[s,u]=(0,Me.useState)(t.status),[d,p]=(0,Me.useState)(Number(t.anonymous)),[f,h]=(0,Me.useState)(t.guests),[m,y]=(0,Me.useState)("hidden"),[v,g]=(0,Me.useState)("false"),[b,w]=(0,Me.useState)(!1);if("past"===n)return"";"undefined"==typeof adminpage&&l().setAppElement(".gatherpress-enabled");const _=e=>{e.preventDefault(),w(!1)},E=async(t,n,o,r=0,i=!0)=>{t.preventDefault(),"attending"!==n&&(r=0),Ie()({path:Be("urls.eventRestApi")+"/rsvp",method:"POST",data:{post_id:e,status:n,guests:r,anonymous:o,_wpnonce:Be("misc.nonce")}}).then((e=>{if(e.success){u(e.status),h(e.guests);const n={all:0,attending:0,not_attending:0,waiting_list:0};for(const[t,o]of Object.entries(e.responses))n[t]=o.count;((e,t="")=>{for(const[n,o]of Object.entries(e)){let e=n;t&&(e+="_"+String(t));const r=new CustomEvent(e,{detail:o});dispatchEvent(r)}})({setRsvpStatus:e.status,setRsvpResponse:e.responses,setRsvpCount:n,setRsvpSeeAllLink:n[e.status]>8,setOnlineEventLink:e.online_link},e.event_id),i&&_(t)}}))},x=e=>{switch(e){case"attending":return(0,Le.__)("You're attending","gatherpress");case"waiting_list":return(0,Le.__)("You're wait listed","gatherpress");case"not_attending":return(0,Le.__)("You're not attending","gatherpress")}return(0,Le.__)("RSVP to this event","gatherpress")};return(0,r.createElement)("div",{className:"gatherpress-rsvp"},(0,r.createElement)(De.ButtonGroup,{className:"gatherpress-buttons wp-block-buttons"},(0,r.createElement)("div",{className:"gatherpress-buttons__container wp-block-button"},(0,r.createElement)("a",{href:"#",className:"gatherpress-buttons__button wp-block-button__link","aria-expanded":v,tabIndex:"0",onKeyDown:e=>{13===e.keyCode&&(y("hidden"===m?"show":"hidden"),g("false"===v?"true":"false"))},onClick:e=>(e=>{e.preventDefault(),w(!0)})(e)},(e=>{switch(e){case"attending":case"waiting_list":case"not_attending":return(0,Le.__)("Edit RSVP","gatherpress")}return(0,Le.__)("RSVP","gatherpress")})(s))),(0,r.createElement)(l(),{isOpen:b,onRequestClose:_,style:{overlay:{zIndex:999999999},content:{top:"50%",left:"50%",right:"auto",bottom:"auto",marginRight:"-50%",transform:"translate(-50%, -50%)"}},contentLabel:(0,Le.__)("Edit RSVP","gatherpress")},0===t.length&&(0,r.createElement)((()=>(0,r.createElement)("div",{className:"gatherpress-modal gatherpress-modal__rsvp"},(0,r.createElement)("div",{className:"gatherpress-modal__header"},(0,Le.__)("Login Required","gatherpress")),(0,r.createElement)("div",{className:"gatherpress-modal__content"},(0,r.createElement)("div",{className:"gatherpress-modal__text"},c((0,Le.sprintf)(/* translators: %s: 'Login' (hyperlinked) */ /* translators: %s: 'Login' (hyperlinked) */ +(0,Le.__)("You must %s to RSVP to events.","gatherpress"),`\n\t\t\t\t\t\t\t\t\t${(0,Le._x)("Login","Context: You must ~ to RSVP to events.","gatherpress")}\n\t\t\t\t\t\t\t\t`))),""!==Be("urls.registrationUrl")&&(0,r.createElement)("div",{className:"gatherpress-modal__text"},c((0,Le.sprintf)(/* translators: %s: 'Register' (hyperlinked) */ /* translators: %s: 'Register' (hyperlinked) */ +(0,Le.__)("%s if you do not have an account.","gatherpress"),`\n\t\t\t\t\t\t\t\t\t\t${(0,Le._x)("Register","Context: ~ if you do not have an account.","gatherpress")}\n\t\t\t\t\t\t\t\t\t`)))),(0,r.createElement)(De.ButtonGroup,{className:"gatherpress-buttons wp-block-buttons"},(0,r.createElement)("div",{className:"gatherpress-buttons__container wp-block-button"},(0,r.createElement)("a",{href:"#",onClick:_,className:"gatherpress-buttons__button wp-block-button__link"},(0,Le.__)("Close","gatherpress")))))),null),0!==t.length&&(0,r.createElement)((({status:e})=>{let t="",n="";return"not_attending"===e||"no_status"===e?(t="attending",n=(0,Le.__)("Attend","gatherpress")):(t="not_attending",n=(0,Le._x)("Not Attending","action of not attending","gatherpress")),(0,r.createElement)("div",{className:"gatherpress-modal gatherpress-modal__rsvp"},(0,r.createElement)("div",{className:"gatherpress-modal__header"},x(s)?x(s):(0,r.createElement)(De.Spinner,null)),(0,r.createElement)("div",{className:"gatherpress-modal__content"},(0,r.createElement)("div",{className:"gatherpress-modal__text"},c((0,Le.sprintf)(/* translators: %s: button label. */ /* translators: %s: button label. */ +(0,Le.__)("To set or change your attending status, simply click the %s button below.","gatherpress"),""+n+""))),0{const t=Number(e.target.value);h(t),E(e,s,d,t,!1)},defaultValue:f})),o&&(0,r.createElement)("div",{className:"gatherpress-modal__anonymous"},(0,r.createElement)("input",{id:"gatherpress-anonymous",type:"checkbox",onChange:e=>{const t=Number(e.target.checked);p(t),E(e,s,t,0,!1)},checked:d}),(0,r.createElement)("label",{htmlFor:"gatherpress-anonymous",tabIndex:"0",className:"gatherpress-tooltip","data-tooltip-id":"gatherpress-anonymous-tooltip","data-tooltip-content":(0,Le.__)("Only admins will see your identity.","gatherpress")},(0,Le.__)("List me as anonymous.","gatherpress")),(0,r.createElement)(Pe,{id:"gatherpress-anonymous-tooltip"}))),(0,r.createElement)(De.ButtonGroup,{className:"gatherpress-buttons wp-block-buttons"},(0,r.createElement)("div",{className:"gatherpress-buttons__container wp-block-button is-style-outline"},(0,r.createElement)("a",{href:"#",onClick:e=>E(e,t,d,"not_attending"!==t?f:0,"not_attending"===t),className:"gatherpress-buttons__button wp-block-button__link"},n)),(0,r.createElement)("div",{className:"gatherpress-buttons__container wp-block-button"},(0,r.createElement)("a",{href:"#",onClick:_,className:"gatherpress-buttons__button wp-block-button__link"},(0,Le.__)("Close","gatherpress")))),i&&"no_status"===s&&1!==d?(0,r.createElement)(De.ButtonGroup,{className:"gatherpress-buttons wp-block-buttons"},(0,r.createElement)("div",{className:"gatherpress-buttons__container wp-block-button"},(0,r.createElement)("a",{href:"#",onClick:e=>E(e,"not_attending",null),className:"gatherpress-buttons__text-link"},(0,Le._x)("Not Attending","Responded Status","gatherpress")))):(0,r.createElement)(r.Fragment,null))}),{status:s}))),"no_status"!==s&&(0,r.createElement)("div",{className:"gatherpress-status"},(0,r.createElement)(Fe,{type:n,status:s}),0{const{isSelected:t}=e,n=t?"none":"block";return(0,r.createElement)("div",{style:{position:"relative"}},e.children,(0,r.createElement)("div",{style:{position:"absolute",top:"0",right:"0",bottom:"0",left:"0",display:n}}))},We=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"gatherpress/rsvp","version":"1.0.1","title":"RSVP","category":"gatherpress","icon":"insert","example":{},"description":"Enables members to easily confirm their attendance for an event.","attributes":{"content":{"type":"string"},"color":{"type":"string"}},"supports":{"html":false},"textdomain":"gatherpress","editorScript":"file:./index.js","style":"file:./style-index.css","viewScript":"file:./rsvp.js","render":"file:./render.php"}');(0,o.registerBlockType)(We,{edit:()=>{const e=(0,i.useBlockProps)(),t=Be("eventDetails.postId"),n=Be("eventDetails.currentUser");return(0,r.createElement)("div",{...e},(0,r.createElement)(Ue,null,(0,r.createElement)(He,{postId:t,currentUser:n,type:"upcoming"})))},save:()=>null})},5413:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(n=t.ElementType||(t.ElementType={})),t.isTag=function(e){return e.type===n.Tag||e.type===n.Script||e.type===n.Style},t.Root=n.Root,t.Text=n.Text,t.Directive=n.Directive,t.Comment=n.Comment,t.Script=n.Script,t.Style=n.Style,t.Tag=n.Tag,t.CDATA=n.CDATA,t.Doctype=n.Doctype},1141:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,r)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var i=n(5413),a=n(6957);r(n(6957),t);var l={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},s=function(){function e(e,t,n){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=l),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:l,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?i.ElementType.Tag:void 0,o=new a.Element(e,t,void 0,n);this.addNode(o),this.tagStack.push(o)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===i.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var n=new a.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===i.ElementType.Comment)this.lastNode.data+=e;else{var t=new a.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new a.Text(""),t=new a.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new a.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=s,t.default=s},6957:function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,o=arguments.length;n0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(l);t.NodeWithChildren=p;var f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.CDATA,t}return r(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(p);t.CDATA=f;var h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.Root,t}return r(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(p);t.Document=h;var m=function(e){function t(t,n,o,r){void 0===o&&(o=[]),void 0===r&&(r="script"===t?a.ElementType.Script:"style"===t?a.ElementType.Style:a.ElementType.Tag);var i=e.call(this,o)||this;return i.name=t,i.attribs=n,i.type=r,i}return r(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var n,o;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(o=e["x-attribsPrefix"])||void 0===o?void 0:o[t]}}))},enumerable:!1,configurable:!0}),t}(p);function y(e){return(0,a.isTag)(e)}function v(e){return e.type===a.ElementType.CDATA}function g(e){return e.type===a.ElementType.Text}function b(e){return e.type===a.ElementType.Comment}function w(e){return e.type===a.ElementType.Directive}function _(e){return e.type===a.ElementType.Root}function E(e,t){var n;if(void 0===t&&(t=!1),g(e))n=new c(e.data);else if(b(e))n=new u(e.data);else if(y(e)){var o=t?x(e.children):[],r=new m(e.name,i({},e.attribs),o);o.forEach((function(e){return e.parent=r})),null!=e.namespace&&(r.namespace=e.namespace),e["x-attribsNamespace"]&&(r["x-attribsNamespace"]=i({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(r["x-attribsPrefix"]=i({},e["x-attribsPrefix"])),n=r}else if(v(e)){o=t?x(e.children):[];var a=new f(o);o.forEach((function(e){return e.parent=a})),n=a}else if(_(e)){o=t?x(e.children):[];var l=new h(o);o.forEach((function(e){return e.parent=l})),e["x-mode"]&&(l["x-mode"]=e["x-mode"]),n=l}else{if(!w(e))throw new Error("Not implemented yet: ".concat(e.type));var s=new d(e.name,e.data);null!=e["x-name"]&&(s["x-name"]=e["x-name"],s["x-publicId"]=e["x-publicId"],s["x-systemId"]=e["x-systemId"]),n=s}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function x(e){for(var t=e.map((function(e){return E(e,!0)})),n=1;n{var o;!function(){"use strict";var r=!("undefined"==typeof window||!window.document||!window.document.createElement),i={canUseDOM:r,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:r&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:r&&!!window.screen};void 0===(o=function(){return i}.call(t,n,t,e))||(e.exports=o)}()},5270:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES=void 0,t.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES.reduce((function(e,t){return e[t.toLowerCase()]=t,e}),{})},5496:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="html",o="head",r="body",i=/<([a-zA-Z]+[0-9]?)/,a=//i,l=//i,s=function(e,t){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},c=function(e,t){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},u="object"==typeof window&&window.DOMParser;if("function"==typeof u){var d=new u;s=c=function(e,t){return t&&(e="<".concat(t,">").concat(e,"")),d.parseFromString(e,"text/html")}}if("object"==typeof document&&document.implementation){var p=document.implementation.createHTMLDocument();s=function(e,t){if(t){var n=p.documentElement.querySelector(t);return n&&(n.innerHTML=e),p}return p.documentElement.innerHTML=e,p}}var f,h="object"==typeof document&&document.createElement("template");h&&h.content&&(f=function(e){return h.innerHTML=e,h.content.childNodes}),t.default=function(e){var t,u,d=e.match(i),p=d&&d[1]?d[1].toLowerCase():"";switch(p){case n:var h=c(e);return a.test(e)||null===(t=null==(y=h.querySelector(o))?void 0:y.parentNode)||void 0===t||t.removeChild(y),l.test(e)||null===(u=null==(y=h.querySelector(r))?void 0:y.parentNode)||void 0===u||u.removeChild(y),h.querySelectorAll(n);case o:case r:var m=s(e).querySelectorAll(p);return l.test(e)&&a.test(e)?m[0].parentNode.childNodes:m;default:return f?f(e):(y=s(e,r).querySelector(r)).childNodes;var y}}},2471:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(5496)),i=n(7731),a=/<(![a-zA-Z\s]+)>/;t.default=function(e){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];var t=e.match(a),n=t?t[1]:void 0;return(0,i.formatDOM)((0,r.default)(e),null,n)}},7731:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatDOM=t.formatAttributes=void 0;var o=n(1141),r=n(5270);function i(e){for(var t={},n=0,o=e.length;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(4210),r=n(4958),i=["checked","value"],a=["input","select","textarea"],l={reset:!0,submit:!0};function s(e){return o.possibleStandardNames[e]}t.default=function(e,t){void 0===e&&(e={});var n={},c=Boolean(e.type&&l[e.type]);for(var u in e){var d=e[u];if((0,o.isCustomAttribute)(u))n[u]=d;else{var p=u.toLowerCase(),f=s(p);if(f){var h=(0,o.getPropertyInfo)(f);switch(i.includes(f)&&a.includes(t)&&!c&&(f=s("default"+p)),n[f]=d,h&&h.type){case o.BOOLEAN:n[f]=!0;break;case o.OVERLOADED_BOOLEAN:""===d&&(n[f]=!0)}}else r.PRESERVE_CUSTOM_ATTRIBUTES&&(n[u]=d)}}return(0,r.setStyleProp)(e.style,n),n}},308:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=n(1609),i=o(n(840)),a=n(4958),l={cloneElement:r.cloneElement,createElement:r.createElement,isValidElement:r.isValidElement};function s(e){return a.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&(0,a.isCustomComponent)(e.name,e.attribs)}t.default=function e(t,n){void 0===n&&(n={});for(var o=[],r="function"==typeof n.replace,c=n.transform||a.returnFirstArg,u=n.library||l,d=u.cloneElement,p=u.createElement,f=u.isValidElement,h=t.length,m=0;m1&&(v=d(v,{key:v.key||m})),o.push(c(v,y,m));continue}}if("text"!==y.type){var g=y,b={};s(g)?((0,a.setStyleProp)(g.attribs.style,g.attribs),b=g.attribs):g.attribs&&(b=(0,i.default)(g.attribs,g.name));var w=void 0;switch(y.type){case"script":case"style":y.children[0]&&(b.dangerouslySetInnerHTML={__html:y.children[0].data});break;case"tag":"textarea"===y.name&&y.children[0]?b.defaultValue=y.children[0].data:y.children&&y.children.length&&(w=e(y.children,n));break;default:continue}h>1&&(b.key=m),o.push(c(p(y.name,b,w),y,m))}else{var _=!y.data.trim().length;if(_&&y.parent&&!(0,a.canTextBeChildOfNode)(y.parent))continue;if(n.trim&&_)continue;o.push(c(y.data,y,m))}}return 1===o.length?o[0]:o}},442:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.htmlToDOM=t.domToReact=t.attributesToProps=t.Text=t.ProcessingInstruction=t.Element=t.Comment=void 0;var r=o(n(2471));t.htmlToDOM=r.default;var i=o(n(840));t.attributesToProps=i.default;var a=o(n(308));t.domToReact=a.default;var l=n(1141);Object.defineProperty(t,"Comment",{enumerable:!0,get:function(){return l.Comment}}),Object.defineProperty(t,"Element",{enumerable:!0,get:function(){return l.Element}}),Object.defineProperty(t,"ProcessingInstruction",{enumerable:!0,get:function(){return l.ProcessingInstruction}}),Object.defineProperty(t,"Text",{enumerable:!0,get:function(){return l.Text}});var s={lowerCaseAttributeNames:!1};t.default=function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");return e?(0,a.default)((0,r.default)(e,(null==t?void 0:t.htmlparser2)||s),t):[]}},4958:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.returnFirstArg=t.canTextBeChildOfNode=t.ELEMENTS_WITH_NO_TEXT_CHILDREN=t.PRESERVE_CUSTOM_ATTRIBUTES=t.setStyleProp=t.isCustomComponent=void 0;var r=n(1609),i=o(n(5229)),a=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);t.isCustomComponent=function(e,t){return e.includes("-")?!a.has(e):Boolean(t&&"string"==typeof t.is)};var l={reactCompat:!0};t.setStyleProp=function(e,t){if("string"==typeof e)if(e.trim())try{t.style=(0,i.default)(e,l)}catch(e){t.style={}}else t.style={}},t.PRESERVE_CUSTOM_ATTRIBUTES=Number(r.version.split(".")[0])>=16,t.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]),t.canTextBeChildOfNode=function(e){return!t.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(e.name)},t.returnFirstArg=function(e){return e}},9788:e=>{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,o=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,s=/^\s+|\s+$/g,c="";function u(e){return e?e.replace(s,c):c}e.exports=function(e,s){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];s=s||{};var d=1,p=1;function f(e){var t=e.match(n);t&&(d+=t.length);var o=e.lastIndexOf("\n");p=~o?e.length-o:p+e.length}function h(){var e={line:d,column:p};return function(t){return t.position=new m(e),b(),t}}function m(e){this.start=e,this.end={line:d,column:p},this.source=s.source}m.prototype.content=e;var y=[];function v(t){var n=new Error(s.source+":"+d+":"+p+": "+t);if(n.reason=t,n.filename=s.source,n.line=d,n.column=p,n.source=e,!s.silent)throw n;y.push(n)}function g(t){var n=t.exec(e);if(n){var o=n[0];return f(o),e=e.slice(o.length),n}}function b(){g(o)}function w(e){var t;for(e=e||[];t=_();)!1!==t&&e.push(t);return e}function _(){var t=h();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;c!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,c===e.charAt(n-1))return v("End of comment missing");var o=e.slice(2,n-2);return p+=2,f(o),e=e.slice(n),p+=2,t({type:"comment",comment:o})}}function E(){var e=h(),n=g(r);if(n){if(_(),!g(i))return v("property missing ':'");var o=g(a),s=e({type:"declaration",property:u(n[0].replace(t,c)),value:o?u(o[0].replace(t,c)):c});return g(l),s}}return b(),function(){var e,t=[];for(w(t);e=E();)!1!==e&&(t.push(e),w(t));return t}()}},2694:(e,t,n)=>{"use strict";var o=n(6925);function r(){}function i(){}i.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,i,a){if(a!==o){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return n.PropTypes=n,n}},5556:(e,t,n)=>{e.exports=n(2694)()},6925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},1345:(e,t,n)=>{"use strict";function o(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function r(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function i(e,t){try{var n=this.props,o=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,o)}finally{this.props=n,this.state=o}}function a(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,a=null,l=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?a="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(a="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?l="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(l="UNSAFE_componentWillUpdate"),null!==n||null!==a||null!==l){var s=e.displayName||e.name,c="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+s+" uses "+c+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==a?"\n "+a:"")+(null!==l?"\n "+l:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=o,t.componentWillReceiveProps=r),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=i;var u=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var o=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;u.call(this,e,t,o)}}return e}n.r(t),n.d(t,{polyfill:()=>a}),o.__suppressDeprecationWarning=!0,r.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0},1720:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bodyOpenClassName=t.portalClassName=void 0;var o=Object.assign||function(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t0&&0==(g-=1)&&u.show(t),n.props.shouldFocusAfterRender&&(n.props.shouldReturnFocusAfterClose?(s.returnFocus(n.props.preventScroll),s.teardownScopedFocus()):s.popWithoutFocus()),n.props.onAfterClose&&n.props.onAfterClose(),h.default.deregister(n)},n.open=function(){n.beforeOpen(),n.state.afterOpen&&n.state.beforeClose?(clearTimeout(n.closeTimer),n.setState({beforeClose:!1})):(n.props.shouldFocusAfterRender&&(s.setupScopedFocus(n.node),s.markForFocusLater()),n.setState({isOpen:!0},(function(){n.openAnimationFrame=requestAnimationFrame((function(){n.setState({afterOpen:!0}),n.props.isOpen&&n.props.onAfterOpen&&n.props.onAfterOpen({overlayEl:n.overlay,contentEl:n.content})}))})))},n.close=function(){n.props.closeTimeoutMS>0?n.closeWithTimeout():n.closeWithoutTimeout()},n.focusContent=function(){return n.content&&!n.contentHasFocus()&&n.content.focus({preventScroll:!0})},n.closeWithTimeout=function(){var e=Date.now()+n.props.closeTimeoutMS;n.setState({beforeClose:!0,closesAt:e},(function(){n.closeTimer=setTimeout(n.closeWithoutTimeout,n.state.closesAt-Date.now())}))},n.closeWithoutTimeout=function(){n.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},n.afterClose)},n.handleKeyDown=function(e){(function(e){return"Tab"===e.code||9===e.keyCode})(e)&&(0,c.default)(n.content,e),n.props.shouldCloseOnEsc&&function(e){return"Escape"===e.code||27===e.keyCode}(e)&&(e.stopPropagation(),n.requestClose(e))},n.handleOverlayOnClick=function(e){null===n.shouldClose&&(n.shouldClose=!0),n.shouldClose&&n.props.shouldCloseOnOverlayClick&&(n.ownerHandlesClose()?n.requestClose(e):n.focusContent()),n.shouldClose=null},n.handleContentOnMouseUp=function(){n.shouldClose=!1},n.handleOverlayOnMouseDown=function(e){n.props.shouldCloseOnOverlayClick||e.target!=n.overlay||e.preventDefault()},n.handleContentOnClick=function(){n.shouldClose=!1},n.handleContentOnMouseDown=function(){n.shouldClose=!1},n.requestClose=function(e){return n.ownerHandlesClose()&&n.props.onRequestClose(e)},n.ownerHandlesClose=function(){return n.props.onRequestClose},n.shouldBeClosed=function(){return!n.state.isOpen&&!n.state.beforeClose},n.contentHasFocus=function(){return document.activeElement===n.content||n.content.contains(document.activeElement)},n.buildClassName=function(e,t){var o="object"===(void 0===t?"undefined":r(t))?t:{base:v[e],afterOpen:v[e]+"--after-open",beforeClose:v[e]+"--before-close"},i=o.base;return n.state.afterOpen&&(i=i+" "+o.afterOpen),n.state.beforeClose&&(i=i+" "+o.beforeClose),"string"==typeof t&&t?i+" "+t:i},n.attributesFromObject=function(e,t){return Object.keys(t).reduce((function(n,o){return n[e+"-"+o]=t[o],n}),{})},n.state={afterOpen:!1,beforeClose:!1},n.shouldClose=null,n.moveFromContentToOverlay=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(e,t){this.props.isOpen&&!e.isOpen?this.open():!this.props.isOpen&&e.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!t.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var e=this.props,t=e.appElement,n=e.ariaHideApp,o=e.htmlOpenClassName,r=e.bodyOpenClassName,i=e.parentSelector,a=i&&i().ownerDocument||document;r&&d.add(a.body,r),o&&d.add(a.getElementsByTagName("html")[0],o),n&&(g+=1,u.hide(t)),h.default.register(this)}},{key:"render",value:function(){var e=this.props,t=e.id,n=e.className,r=e.overlayClassName,i=e.defaultStyles,a=e.children,l=n?{}:i.content,s=r?{}:i.overlay;if(this.shouldBeClosed())return null;var c={ref:this.setOverlayRef,className:this.buildClassName("overlay",r),style:o({},s,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},u=o({id:t,ref:this.setContentRef,style:o({},l,this.props.style.content),className:this.buildClassName("content",n),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",o({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),d=this.props.contentElement(u,a);return this.props.overlayElement(c,d)}}]),t}(a.Component);b.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},b.propTypes={isOpen:l.default.bool.isRequired,defaultStyles:l.default.shape({content:l.default.object,overlay:l.default.object}),style:l.default.shape({content:l.default.object,overlay:l.default.object}),className:l.default.oneOfType([l.default.string,l.default.object]),overlayClassName:l.default.oneOfType([l.default.string,l.default.object]),parentSelector:l.default.func,bodyOpenClassName:l.default.string,htmlOpenClassName:l.default.string,ariaHideApp:l.default.bool,appElement:l.default.oneOfType([l.default.instanceOf(f.default),l.default.instanceOf(p.SafeHTMLCollection),l.default.instanceOf(p.SafeNodeList),l.default.arrayOf(l.default.instanceOf(f.default))]),onAfterOpen:l.default.func,onAfterClose:l.default.func,onRequestClose:l.default.func,closeTimeoutMS:l.default.number,shouldFocusAfterRender:l.default.bool,shouldCloseOnOverlayClick:l.default.bool,shouldReturnFocusAfterClose:l.default.bool,preventScroll:l.default.bool,role:l.default.string,contentLabel:l.default.string,aria:l.default.object,data:l.default.object,children:l.default.node,shouldCloseOnEsc:l.default.bool,overlayRef:l.default.func,contentRef:l.default.func,id:l.default.string,overlayElement:l.default.func,contentElement:l.default.func,testId:l.default.string},t.default=b,e.exports=t.default},6462:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){a&&(a.removeAttribute?a.removeAttribute("aria-hidden"):null!=a.length?a.forEach((function(e){return e.removeAttribute("aria-hidden")})):document.querySelectorAll(a).forEach((function(e){return e.removeAttribute("aria-hidden")}))),a=null},t.log=function(){},t.assertNodeList=l,t.setElement=function(e){var t=e;if("string"==typeof t&&i.canUseDOM){var n=document.querySelectorAll(t);l(n,t),t=n}return a=t||a},t.validateElement=s,t.hide=function(e){var t=!0,n=!1,o=void 0;try{for(var r,i=s(e)[Symbol.iterator]();!(t=(r=i.next()).done);t=!0)r.value.setAttribute("aria-hidden","true")}catch(e){n=!0,o=e}finally{try{!t&&i.return&&i.return()}finally{if(n)throw o}}},t.show=function(e){var t=!0,n=!1,o=void 0;try{for(var r,i=s(e)[Symbol.iterator]();!(t=(r=i.next()).done);t=!0)r.value.removeAttribute("aria-hidden")}catch(e){n=!0,o=e}finally{try{!t&&i.return&&i.return()}finally{if(n)throw o}}},t.documentNotReadyOrSSRTesting=function(){a=null};var o,r=(o=n(9771))&&o.__esModule?o:{default:o},i=n(834),a=null;function l(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function s(e){var t=e||a;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,r.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}},7727:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){for(var e=[i,a],t=0;t0?(document.body.firstChild!==i&&document.body.insertBefore(i,document.body.firstChild),document.body.lastChild!==a&&document.body.appendChild(a)):(i.parentElement&&i.parentElement.removeChild(i),a.parentElement&&a.parentElement.removeChild(a))}))},4838:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){var e=document.getElementsByTagName("html")[0];for(var t in n)r(e,n[t]);var i=document.body;for(var a in o)r(i,o[a]);n={},o={}},t.log=function(){};var n={},o={};function r(e,t){e.classList.remove(t)}t.add=function(e,t){return r=e.classList,i="html"==e.nodeName.toLowerCase()?n:o,void t.split(" ").forEach((function(e){!function(e,t){e[t]||(e[t]=0),e[t]+=1}(i,e),r.add(e)}));var r,i},t.remove=function(e,t){return r=e.classList,i="html"==e.nodeName.toLowerCase()?n:o,void t.split(" ").forEach((function(e){!function(e,t){e[t]&&(e[t]-=1)}(i,e),0===i[e]&&r.remove(e)}));var r,i}},7791:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){i=[]},t.log=function(){},t.handleBlur=s,t.handleFocus=c,t.markForFocusLater=function(){i.push(document.activeElement)},t.returnFocus=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=null;try{return void(0!==i.length&&(t=i.pop()).focus({preventScroll:e}))}catch(e){console.warn(["You tried to return focus to",t,"but it is not in the DOM anymore"].join(" "))}},t.popWithoutFocus=function(){i.length>0&&i.pop()},t.setupScopedFocus=function(e){a=e,window.addEventListener?(window.addEventListener("blur",s,!1),document.addEventListener("focus",c,!0)):(window.attachEvent("onBlur",s),document.attachEvent("onFocus",c))},t.teardownScopedFocus=function(){a=null,window.addEventListener?(window.removeEventListener("blur",s),document.removeEventListener("focus",c)):(window.detachEvent("onBlur",s),document.detachEvent("onFocus",c))};var o,r=(o=n(2411))&&o.__esModule?o:{default:o},i=[],a=null,l=!1;function s(){l=!0}function c(){if(l){if(l=!1,!a)return;setTimeout((function(){a.contains(document.activeElement)||((0,r.default)(a)[0]||a).focus()}),0)}}},9628:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.log=function(){console.log("portalOpenInstances ----------"),console.log(o.openInstances.length),o.openInstances.forEach((function(e){return console.log(e)})),console.log("end portalOpenInstances ----------")},t.resetState=function(){o=new n};var n=function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.register=function(e){-1===t.openInstances.indexOf(e)&&(t.openInstances.push(e),t.emit("register"))},this.deregister=function(e){var n=t.openInstances.indexOf(e);-1!==n&&(t.openInstances.splice(n,1),t.emit("deregister"))},this.subscribe=function(e){t.subscribers.push(e)},this.emit=function(e){t.subscribers.forEach((function(n){return n(e,t.openInstances.slice())}))},this.openInstances=[],this.subscribers=[]},o=new n;t.default=o},834:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canUseDOM=t.SafeNodeList=t.SafeHTMLCollection=void 0;var o,r=((o=n(411))&&o.__esModule?o:{default:o}).default,i=r.canUseDOM?window.HTMLElement:{};t.SafeHTMLCollection=r.canUseDOM?window.HTMLCollection:{},t.SafeNodeList=r.canUseDOM?window.NodeList:{},t.canUseDOM=r.canUseDOM,t.default=i},7067:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,r.default)(e);if(n.length){var o=void 0,a=t.shiftKey,l=n[0],s=n[n.length-1],c=i();if(e===c){if(!a)return;o=s}if(s!==c||a||(o=l),l===c&&a&&(o=s),o)return t.preventDefault(),void o.focus();var u=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null!=u&&"Chrome"!=u[1]&&null==/\biPod\b|\biPad\b/g.exec(navigator.userAgent)){var d=n.indexOf(c);if(d>-1&&(d+=a?-1:1),void 0===(o=n[d]))return t.preventDefault(),void(o=a?s:l).focus();t.preventDefault(),o.focus()}}else t.preventDefault()};var o,r=(o=n(2411))&&o.__esModule?o:{default:o};function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return e.activeElement.shadowRoot?i(e.activeElement.shadowRoot):e.activeElement}e.exports=t.default},2411:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){return[].slice.call(t.querySelectorAll("*"),0).reduce((function(t,n){return t.concat(n.shadowRoot?e(n.shadowRoot):[n])}),[]).filter(a)};var n="none",o="contents",r=/input|select|textarea|button|object|iframe/;function i(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;try{var r=window.getComputedStyle(e),i=r.getPropertyValue("display");return t?i!==o&&function(e,t){return"visible"!==t.getPropertyValue("overflow")||e.scrollWidth<=0&&e.scrollHeight<=0}(e,r):i===n}catch(e){return console.warn("Failed to inspect element style"),!1}}function a(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var n=isNaN(t);return(n||t>=0)&&function(e,t){var n=e.nodeName.toLowerCase();return(r.test(n)&&!e.disabled||"a"===n&&e.href||t)&&function(e){for(var t=e,n=e.getRootNode&&e.getRootNode();t&&t!==document.body;){if(n&&t===n&&(t=n.host.parentNode),i(t))return!1;t=t.parentNode}return!0}(e)}(e,!n)}e.exports=t.default},312:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r=(o=n(1720))&&o.__esModule?o:{default:o};t.default=r.default,e.exports=t.default},4210:(e,t,n)=>{"use strict";function o(e,t,n,o,r,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=o,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}const r={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach((e=>{r[e]=new o(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((([e,t])=>{r[e]=new o(e,1,!1,t,null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((e=>{r[e]=new o(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((e=>{r[e]=new o(e,2,!1,e,null,!1,!1)})),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach((e=>{r[e]=new o(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((e=>{r[e]=new o(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((e=>{r[e]=new o(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((e=>{r[e]=new o(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((e=>{r[e]=new o(e,5,!1,e.toLowerCase(),null,!1,!1)}));const i=/[\-\:]([a-z])/g,a=e=>e[1].toUpperCase();["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach((e=>{const t=e.replace(i,a);r[t]=new o(t,1,!1,e,null,!1,!1)})),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach((e=>{const t=e.replace(i,a);r[t]=new o(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((e=>{const t=e.replace(i,a);r[t]=new o(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((e=>{r[e]=new o(e,1,!1,e.toLowerCase(),null,!1,!1)})),r.xlinkHref=new o("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((e=>{r[e]=new o(e,1,!1,e.toLowerCase(),null,!0,!0)}));const{CAMELCASE:l,SAME:s,possibleStandardNames:c}=n(6811),u=RegExp.prototype.test.bind(new RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")),d=Object.keys(c).reduce(((e,t)=>{const n=c[t];return n===s?e[t]=t:n===l?e[t.toLowerCase()]=t:e[t]=n,e}),{});t.BOOLEAN=3,t.BOOLEANISH_STRING=2,t.NUMERIC=5,t.OVERLOADED_BOOLEAN=4,t.POSITIVE_NUMERIC=6,t.RESERVED=0,t.STRING=1,t.getPropertyInfo=function(e){return r.hasOwnProperty(e)?r[e]:null},t.isCustomAttribute=u,t.possibleStandardNames=d},6811:(e,t)=>{t.SAME=0,t.CAMELCASE=1,t.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}},5229:function(e,t,n){"use strict";var o=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n(1133)),r=n(8917);function i(e,t){var n={};return e&&"string"==typeof e?((0,o.default)(e,(function(e,o){e&&o&&(n[(0,r.camelCase)(e,t)]=o)})),n):n}i.default=i,e.exports=i},8917:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=void 0;var n=/^--[a-zA-Z0-9-]+$/,o=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,l=function(e,t){return t.toUpperCase()},s=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||r.test(e)||n.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(a,s):e.replace(i,s)).replace(o,l))}},1133:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(9788));t.default=function(e,t){var n=null;if(!e||"string"!=typeof e)return n;var o=(0,r.default)(e),i="function"==typeof t;return o.forEach((function(e){if("declaration"===e.type){var o=e.property,r=e.value;i?t(o,r,e):r&&((n=n||{})[o]=r)}})),n}},9771:e=>{"use strict";e.exports=function(){}},1609:e=>{"use strict";e.exports=window.React},5795:e=>{"use strict";e.exports=window.ReactDOM},6942:(e,t)=>{var n;!function(){"use strict";var o={}.hasOwnProperty;function r(){for(var e="",t=0;t{if(!n){var a=1/0;for(u=0;u=i)&&Object.keys(o.O).every((e=>o.O[e](n[s])))?n.splice(s--,1):(l=!1,i0&&e[u-1][2]>i;u--)e[u]=e[u-1];e[u]=[n,r,i]},o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={662:0,394:0};o.O.j=t=>0===e[t];var t=(t,n)=>{var r,i,[a,l,s]=n,c=0;if(a.some((t=>0!==e[t]))){for(r in l)o.o(l,r)&&(o.m[r]=l[r]);if(s)var u=s(o)}for(t&&t(n);co(2753)));r=o.O(r)})(); \ No newline at end of file diff --git a/build/blocks/rsvp/rsvp.asset.php b/build/blocks/rsvp/rsvp.asset.php index e29afa109..9241659f2 100644 --- a/build/blocks/rsvp/rsvp.asset.php +++ b/build/blocks/rsvp/rsvp.asset.php @@ -1 +1 @@ - array('react', 'react-dom', 'wp-api-fetch', 'wp-components', 'wp-data', 'wp-dom-ready', 'wp-element', 'wp-i18n'), 'version' => '9c0620b4f014481d9eb4'); + array('react', 'react-dom', 'wp-api-fetch', 'wp-components', 'wp-data', 'wp-dom-ready', 'wp-element', 'wp-i18n'), 'version' => '5ff709f139c55900a4f1'); diff --git a/build/blocks/rsvp/rsvp.js b/build/blocks/rsvp/rsvp.js index c926b4aa6..0a0ee79a9 100644 --- a/build/blocks/rsvp/rsvp.js +++ b/build/blocks/rsvp/rsvp.js @@ -1,5 +1,5 @@ -(()=>{var e={5413:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(n=t.ElementType||(t.ElementType={})),t.isTag=function(e){return e.type===n.Tag||e.type===n.Script||e.type===n.Style},t.Root=n.Root,t.Text=n.Text,t.Directive=n.Directive,t.Comment=n.Comment,t.Script=n.Script,t.Style=n.Style,t.Tag=n.Tag,t.CDATA=n.CDATA,t.Doctype=n.Doctype},1141:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,r)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var i=n(5413),a=n(6957);r(n(6957),t);var l={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},s=function(){function e(e,t,n){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=l),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:l,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?i.ElementType.Tag:void 0,o=new a.Element(e,t,void 0,n);this.addNode(o),this.tagStack.push(o)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===i.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var n=new a.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===i.ElementType.Comment)this.lastNode.data+=e;else{var t=new a.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new a.Text(""),t=new a.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new a.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=s,t.default=s},6957:function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,o=arguments.length;n0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(l);t.NodeWithChildren=p;var f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.CDATA,t}return r(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(p);t.CDATA=f;var h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.Root,t}return r(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(p);t.Document=h;var m=function(e){function t(t,n,o,r){void 0===o&&(o=[]),void 0===r&&(r="script"===t?a.ElementType.Script:"style"===t?a.ElementType.Style:a.ElementType.Tag);var i=e.call(this,o)||this;return i.name=t,i.attribs=n,i.type=r,i}return r(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var n,o;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(o=e["x-attribsPrefix"])||void 0===o?void 0:o[t]}}))},enumerable:!1,configurable:!0}),t}(p);function y(e){return(0,a.isTag)(e)}function v(e){return e.type===a.ElementType.CDATA}function g(e){return e.type===a.ElementType.Text}function b(e){return e.type===a.ElementType.Comment}function w(e){return e.type===a.ElementType.Directive}function _(e){return e.type===a.ElementType.Root}function E(e,t){var n;if(void 0===t&&(t=!1),g(e))n=new c(e.data);else if(b(e))n=new u(e.data);else if(y(e)){var o=t?x(e.children):[],r=new m(e.name,i({},e.attribs),o);o.forEach((function(e){return e.parent=r})),null!=e.namespace&&(r.namespace=e.namespace),e["x-attribsNamespace"]&&(r["x-attribsNamespace"]=i({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(r["x-attribsPrefix"]=i({},e["x-attribsPrefix"])),n=r}else if(v(e)){o=t?x(e.children):[];var a=new f(o);o.forEach((function(e){return e.parent=a})),n=a}else if(_(e)){o=t?x(e.children):[];var l=new h(o);o.forEach((function(e){return e.parent=l})),e["x-mode"]&&(l["x-mode"]=e["x-mode"]),n=l}else{if(!w(e))throw new Error("Not implemented yet: ".concat(e.type));var s=new d(e.name,e.data);null!=e["x-name"]&&(s["x-name"]=e["x-name"],s["x-publicId"]=e["x-publicId"],s["x-systemId"]=e["x-systemId"]),n=s}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function x(e){for(var t=e.map((function(e){return E(e,!0)})),n=1;n{var o;!function(){"use strict";var r=!("undefined"==typeof window||!window.document||!window.document.createElement),i={canUseDOM:r,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:r&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:r&&!!window.screen};void 0===(o=function(){return i}.call(t,n,t,e))||(e.exports=o)}()},5270:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES=void 0,t.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES.reduce((function(e,t){return e[t.toLowerCase()]=t,e}),{})},5496:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="html",o="head",r="body",i=/<([a-zA-Z]+[0-9]?)/,a=//i,l=//i,s=function(e,t){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},c=function(e,t){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},u="object"==typeof window&&window.DOMParser;if("function"==typeof u){var d=new u;s=c=function(e,t){return t&&(e="<".concat(t,">").concat(e,"")),d.parseFromString(e,"text/html")}}if("object"==typeof document&&document.implementation){var p=document.implementation.createHTMLDocument();s=function(e,t){if(t){var n=p.documentElement.querySelector(t);return n&&(n.innerHTML=e),p}return p.documentElement.innerHTML=e,p}}var f,h="object"==typeof document&&document.createElement("template");h&&h.content&&(f=function(e){return h.innerHTML=e,h.content.childNodes}),t.default=function(e){var t,u,d=e.match(i),p=d&&d[1]?d[1].toLowerCase():"";switch(p){case n:var h=c(e);return a.test(e)||null===(t=null==(y=h.querySelector(o))?void 0:y.parentNode)||void 0===t||t.removeChild(y),l.test(e)||null===(u=null==(y=h.querySelector(r))?void 0:y.parentNode)||void 0===u||u.removeChild(y),h.querySelectorAll(n);case o:case r:var m=s(e).querySelectorAll(p);return l.test(e)&&a.test(e)?m[0].parentNode.childNodes:m;default:return f?f(e):(y=s(e,r).querySelector(r)).childNodes;var y}}},2471:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(5496)),i=n(7731),a=/<(![a-zA-Z\s]+)>/;t.default=function(e){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];var t=e.match(a),n=t?t[1]:void 0;return(0,i.formatDOM)((0,r.default)(e),null,n)}},7731:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatDOM=t.formatAttributes=void 0;var o=n(1141),r=n(5270);function i(e){for(var t={},n=0,o=e.length;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(4210),r=n(4958),i=["checked","value"],a=["input","select","textarea"],l={reset:!0,submit:!0};function s(e){return o.possibleStandardNames[e]}t.default=function(e,t){void 0===e&&(e={});var n={},c=Boolean(e.type&&l[e.type]);for(var u in e){var d=e[u];if((0,o.isCustomAttribute)(u))n[u]=d;else{var p=u.toLowerCase(),f=s(p);if(f){var h=(0,o.getPropertyInfo)(f);switch(i.includes(f)&&a.includes(t)&&!c&&(f=s("default"+p)),n[f]=d,h&&h.type){case o.BOOLEAN:n[f]=!0;break;case o.OVERLOADED_BOOLEAN:""===d&&(n[f]=!0)}}else r.PRESERVE_CUSTOM_ATTRIBUTES&&(n[u]=d)}}return(0,r.setStyleProp)(e.style,n),n}},308:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=n(1609),i=o(n(840)),a=n(4958),l={cloneElement:r.cloneElement,createElement:r.createElement,isValidElement:r.isValidElement};function s(e){return a.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&(0,a.isCustomComponent)(e.name,e.attribs)}t.default=function e(t,n){void 0===n&&(n={});for(var o=[],r="function"==typeof n.replace,c=n.transform||a.returnFirstArg,u=n.library||l,d=u.cloneElement,p=u.createElement,f=u.isValidElement,h=t.length,m=0;m1&&(v=d(v,{key:v.key||m})),o.push(c(v,y,m));continue}}if("text"!==y.type){var g=y,b={};s(g)?((0,a.setStyleProp)(g.attribs.style,g.attribs),b=g.attribs):g.attribs&&(b=(0,i.default)(g.attribs,g.name));var w=void 0;switch(y.type){case"script":case"style":y.children[0]&&(b.dangerouslySetInnerHTML={__html:y.children[0].data});break;case"tag":"textarea"===y.name&&y.children[0]?b.defaultValue=y.children[0].data:y.children&&y.children.length&&(w=e(y.children,n));break;default:continue}h>1&&(b.key=m),o.push(c(p(y.name,b,w),y,m))}else{var _=!y.data.trim().length;if(_&&y.parent&&!(0,a.canTextBeChildOfNode)(y.parent))continue;if(n.trim&&_)continue;o.push(c(y.data,y,m))}}return 1===o.length?o[0]:o}},442:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.htmlToDOM=t.domToReact=t.attributesToProps=t.Text=t.ProcessingInstruction=t.Element=t.Comment=void 0;var r=o(n(2471));t.htmlToDOM=r.default;var i=o(n(840));t.attributesToProps=i.default;var a=o(n(308));t.domToReact=a.default;var l=n(1141);Object.defineProperty(t,"Comment",{enumerable:!0,get:function(){return l.Comment}}),Object.defineProperty(t,"Element",{enumerable:!0,get:function(){return l.Element}}),Object.defineProperty(t,"ProcessingInstruction",{enumerable:!0,get:function(){return l.ProcessingInstruction}}),Object.defineProperty(t,"Text",{enumerable:!0,get:function(){return l.Text}});var s={lowerCaseAttributeNames:!1};t.default=function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");return e?(0,a.default)((0,r.default)(e,(null==t?void 0:t.htmlparser2)||s),t):[]}},4958:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.returnFirstArg=t.canTextBeChildOfNode=t.ELEMENTS_WITH_NO_TEXT_CHILDREN=t.PRESERVE_CUSTOM_ATTRIBUTES=t.setStyleProp=t.isCustomComponent=void 0;var r=n(1609),i=o(n(5229)),a=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);t.isCustomComponent=function(e,t){return e.includes("-")?!a.has(e):Boolean(t&&"string"==typeof t.is)};var l={reactCompat:!0};t.setStyleProp=function(e,t){if("string"==typeof e)if(e.trim())try{t.style=(0,i.default)(e,l)}catch(e){t.style={}}else t.style={}},t.PRESERVE_CUSTOM_ATTRIBUTES=Number(r.version.split(".")[0])>=16,t.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]),t.canTextBeChildOfNode=function(e){return!t.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(e.name)},t.returnFirstArg=function(e){return e}},9788:e=>{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,o=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,s=/^\s+|\s+$/g,c="";function u(e){return e?e.replace(s,c):c}e.exports=function(e,s){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];s=s||{};var d=1,p=1;function f(e){var t=e.match(n);t&&(d+=t.length);var o=e.lastIndexOf("\n");p=~o?e.length-o:p+e.length}function h(){var e={line:d,column:p};return function(t){return t.position=new m(e),b(),t}}function m(e){this.start=e,this.end={line:d,column:p},this.source=s.source}m.prototype.content=e;var y=[];function v(t){var n=new Error(s.source+":"+d+":"+p+": "+t);if(n.reason=t,n.filename=s.source,n.line=d,n.column=p,n.source=e,!s.silent)throw n;y.push(n)}function g(t){var n=t.exec(e);if(n){var o=n[0];return f(o),e=e.slice(o.length),n}}function b(){g(o)}function w(e){var t;for(e=e||[];t=_();)!1!==t&&e.push(t);return e}function _(){var t=h();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;c!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,c===e.charAt(n-1))return v("End of comment missing");var o=e.slice(2,n-2);return p+=2,f(o),e=e.slice(n),p+=2,t({type:"comment",comment:o})}}function E(){var e=h(),n=g(r);if(n){if(_(),!g(i))return v("property missing ':'");var o=g(a),s=e({type:"declaration",property:u(n[0].replace(t,c)),value:o?u(o[0].replace(t,c)):c});return g(l),s}}return b(),function(){var e,t=[];for(w(t);e=E();)!1!==e&&(t.push(e),w(t));return t}()}},2694:(e,t,n)=>{"use strict";var o=n(6925);function r(){}function i(){}i.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,i,a){if(a!==o){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return n.PropTypes=n,n}},5556:(e,t,n)=>{e.exports=n(2694)()},6925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},1345:(e,t,n)=>{"use strict";function o(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function r(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function i(e,t){try{var n=this.props,o=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,o)}finally{this.props=n,this.state=o}}function a(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,a=null,l=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?a="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(a="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?l="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(l="UNSAFE_componentWillUpdate"),null!==n||null!==a||null!==l){var s=e.displayName||e.name,c="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+s+" uses "+c+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==a?"\n "+a:"")+(null!==l?"\n "+l:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=o,t.componentWillReceiveProps=r),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=i;var u=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var o=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;u.call(this,e,t,o)}}return e}n.r(t),n.d(t,{polyfill:()=>a}),o.__suppressDeprecationWarning=!0,r.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0},1720:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bodyOpenClassName=t.portalClassName=void 0;var o=Object.assign||function(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t0&&0==(g-=1)&&u.show(t),n.props.shouldFocusAfterRender&&(n.props.shouldReturnFocusAfterClose?(s.returnFocus(n.props.preventScroll),s.teardownScopedFocus()):s.popWithoutFocus()),n.props.onAfterClose&&n.props.onAfterClose(),h.default.deregister(n)},n.open=function(){n.beforeOpen(),n.state.afterOpen&&n.state.beforeClose?(clearTimeout(n.closeTimer),n.setState({beforeClose:!1})):(n.props.shouldFocusAfterRender&&(s.setupScopedFocus(n.node),s.markForFocusLater()),n.setState({isOpen:!0},(function(){n.openAnimationFrame=requestAnimationFrame((function(){n.setState({afterOpen:!0}),n.props.isOpen&&n.props.onAfterOpen&&n.props.onAfterOpen({overlayEl:n.overlay,contentEl:n.content})}))})))},n.close=function(){n.props.closeTimeoutMS>0?n.closeWithTimeout():n.closeWithoutTimeout()},n.focusContent=function(){return n.content&&!n.contentHasFocus()&&n.content.focus({preventScroll:!0})},n.closeWithTimeout=function(){var e=Date.now()+n.props.closeTimeoutMS;n.setState({beforeClose:!0,closesAt:e},(function(){n.closeTimer=setTimeout(n.closeWithoutTimeout,n.state.closesAt-Date.now())}))},n.closeWithoutTimeout=function(){n.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},n.afterClose)},n.handleKeyDown=function(e){(function(e){return"Tab"===e.code||9===e.keyCode})(e)&&(0,c.default)(n.content,e),n.props.shouldCloseOnEsc&&function(e){return"Escape"===e.code||27===e.keyCode}(e)&&(e.stopPropagation(),n.requestClose(e))},n.handleOverlayOnClick=function(e){null===n.shouldClose&&(n.shouldClose=!0),n.shouldClose&&n.props.shouldCloseOnOverlayClick&&(n.ownerHandlesClose()?n.requestClose(e):n.focusContent()),n.shouldClose=null},n.handleContentOnMouseUp=function(){n.shouldClose=!1},n.handleOverlayOnMouseDown=function(e){n.props.shouldCloseOnOverlayClick||e.target!=n.overlay||e.preventDefault()},n.handleContentOnClick=function(){n.shouldClose=!1},n.handleContentOnMouseDown=function(){n.shouldClose=!1},n.requestClose=function(e){return n.ownerHandlesClose()&&n.props.onRequestClose(e)},n.ownerHandlesClose=function(){return n.props.onRequestClose},n.shouldBeClosed=function(){return!n.state.isOpen&&!n.state.beforeClose},n.contentHasFocus=function(){return document.activeElement===n.content||n.content.contains(document.activeElement)},n.buildClassName=function(e,t){var o="object"===(void 0===t?"undefined":r(t))?t:{base:v[e],afterOpen:v[e]+"--after-open",beforeClose:v[e]+"--before-close"},i=o.base;return n.state.afterOpen&&(i=i+" "+o.afterOpen),n.state.beforeClose&&(i=i+" "+o.beforeClose),"string"==typeof t&&t?i+" "+t:i},n.attributesFromObject=function(e,t){return Object.keys(t).reduce((function(n,o){return n[e+"-"+o]=t[o],n}),{})},n.state={afterOpen:!1,beforeClose:!1},n.shouldClose=null,n.moveFromContentToOverlay=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(e,t){this.props.isOpen&&!e.isOpen?this.open():!this.props.isOpen&&e.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!t.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var e=this.props,t=e.appElement,n=e.ariaHideApp,o=e.htmlOpenClassName,r=e.bodyOpenClassName,i=e.parentSelector,a=i&&i().ownerDocument||document;r&&d.add(a.body,r),o&&d.add(a.getElementsByTagName("html")[0],o),n&&(g+=1,u.hide(t)),h.default.register(this)}},{key:"render",value:function(){var e=this.props,t=e.id,n=e.className,r=e.overlayClassName,i=e.defaultStyles,a=e.children,l=n?{}:i.content,s=r?{}:i.overlay;if(this.shouldBeClosed())return null;var c={ref:this.setOverlayRef,className:this.buildClassName("overlay",r),style:o({},s,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},u=o({id:t,ref:this.setContentRef,style:o({},l,this.props.style.content),className:this.buildClassName("content",n),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",o({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),d=this.props.contentElement(u,a);return this.props.overlayElement(c,d)}}]),t}(a.Component);b.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},b.propTypes={isOpen:l.default.bool.isRequired,defaultStyles:l.default.shape({content:l.default.object,overlay:l.default.object}),style:l.default.shape({content:l.default.object,overlay:l.default.object}),className:l.default.oneOfType([l.default.string,l.default.object]),overlayClassName:l.default.oneOfType([l.default.string,l.default.object]),parentSelector:l.default.func,bodyOpenClassName:l.default.string,htmlOpenClassName:l.default.string,ariaHideApp:l.default.bool,appElement:l.default.oneOfType([l.default.instanceOf(f.default),l.default.instanceOf(p.SafeHTMLCollection),l.default.instanceOf(p.SafeNodeList),l.default.arrayOf(l.default.instanceOf(f.default))]),onAfterOpen:l.default.func,onAfterClose:l.default.func,onRequestClose:l.default.func,closeTimeoutMS:l.default.number,shouldFocusAfterRender:l.default.bool,shouldCloseOnOverlayClick:l.default.bool,shouldReturnFocusAfterClose:l.default.bool,preventScroll:l.default.bool,role:l.default.string,contentLabel:l.default.string,aria:l.default.object,data:l.default.object,children:l.default.node,shouldCloseOnEsc:l.default.bool,overlayRef:l.default.func,contentRef:l.default.func,id:l.default.string,overlayElement:l.default.func,contentElement:l.default.func,testId:l.default.string},t.default=b,e.exports=t.default},6462:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){a&&(a.removeAttribute?a.removeAttribute("aria-hidden"):null!=a.length?a.forEach((function(e){return e.removeAttribute("aria-hidden")})):document.querySelectorAll(a).forEach((function(e){return e.removeAttribute("aria-hidden")}))),a=null},t.log=function(){},t.assertNodeList=l,t.setElement=function(e){var t=e;if("string"==typeof t&&i.canUseDOM){var n=document.querySelectorAll(t);l(n,t),t=n}return a=t||a},t.validateElement=s,t.hide=function(e){var t=!0,n=!1,o=void 0;try{for(var r,i=s(e)[Symbol.iterator]();!(t=(r=i.next()).done);t=!0)r.value.setAttribute("aria-hidden","true")}catch(e){n=!0,o=e}finally{try{!t&&i.return&&i.return()}finally{if(n)throw o}}},t.show=function(e){var t=!0,n=!1,o=void 0;try{for(var r,i=s(e)[Symbol.iterator]();!(t=(r=i.next()).done);t=!0)r.value.removeAttribute("aria-hidden")}catch(e){n=!0,o=e}finally{try{!t&&i.return&&i.return()}finally{if(n)throw o}}},t.documentNotReadyOrSSRTesting=function(){a=null};var o,r=(o=n(9771))&&o.__esModule?o:{default:o},i=n(834),a=null;function l(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function s(e){var t=e||a;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,r.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}},7727:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){for(var e=[i,a],t=0;t0?(document.body.firstChild!==i&&document.body.insertBefore(i,document.body.firstChild),document.body.lastChild!==a&&document.body.appendChild(a)):(i.parentElement&&i.parentElement.removeChild(i),a.parentElement&&a.parentElement.removeChild(a))}))},4838:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){var e=document.getElementsByTagName("html")[0];for(var t in n)r(e,n[t]);var i=document.body;for(var a in o)r(i,o[a]);n={},o={}},t.log=function(){};var n={},o={};function r(e,t){e.classList.remove(t)}t.add=function(e,t){return r=e.classList,i="html"==e.nodeName.toLowerCase()?n:o,void t.split(" ").forEach((function(e){!function(e,t){e[t]||(e[t]=0),e[t]+=1}(i,e),r.add(e)}));var r,i},t.remove=function(e,t){return r=e.classList,i="html"==e.nodeName.toLowerCase()?n:o,void t.split(" ").forEach((function(e){!function(e,t){e[t]&&(e[t]-=1)}(i,e),0===i[e]&&r.remove(e)}));var r,i}},7791:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){i=[]},t.log=function(){},t.handleBlur=s,t.handleFocus=c,t.markForFocusLater=function(){i.push(document.activeElement)},t.returnFocus=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=null;try{return void(0!==i.length&&(t=i.pop()).focus({preventScroll:e}))}catch(e){console.warn(["You tried to return focus to",t,"but it is not in the DOM anymore"].join(" "))}},t.popWithoutFocus=function(){i.length>0&&i.pop()},t.setupScopedFocus=function(e){a=e,window.addEventListener?(window.addEventListener("blur",s,!1),document.addEventListener("focus",c,!0)):(window.attachEvent("onBlur",s),document.attachEvent("onFocus",c))},t.teardownScopedFocus=function(){a=null,window.addEventListener?(window.removeEventListener("blur",s),document.removeEventListener("focus",c)):(window.detachEvent("onBlur",s),document.detachEvent("onFocus",c))};var o,r=(o=n(2411))&&o.__esModule?o:{default:o},i=[],a=null,l=!1;function s(){l=!0}function c(){if(l){if(l=!1,!a)return;setTimeout((function(){a.contains(document.activeElement)||((0,r.default)(a)[0]||a).focus()}),0)}}},9628:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.log=function(){console.log("portalOpenInstances ----------"),console.log(o.openInstances.length),o.openInstances.forEach((function(e){return console.log(e)})),console.log("end portalOpenInstances ----------")},t.resetState=function(){o=new n};var n=function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.register=function(e){-1===t.openInstances.indexOf(e)&&(t.openInstances.push(e),t.emit("register"))},this.deregister=function(e){var n=t.openInstances.indexOf(e);-1!==n&&(t.openInstances.splice(n,1),t.emit("deregister"))},this.subscribe=function(e){t.subscribers.push(e)},this.emit=function(e){t.subscribers.forEach((function(n){return n(e,t.openInstances.slice())}))},this.openInstances=[],this.subscribers=[]},o=new n;t.default=o},834:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canUseDOM=t.SafeNodeList=t.SafeHTMLCollection=void 0;var o,r=((o=n(411))&&o.__esModule?o:{default:o}).default,i=r.canUseDOM?window.HTMLElement:{};t.SafeHTMLCollection=r.canUseDOM?window.HTMLCollection:{},t.SafeNodeList=r.canUseDOM?window.NodeList:{},t.canUseDOM=r.canUseDOM,t.default=i},7067:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,r.default)(e);if(n.length){var o=void 0,a=t.shiftKey,l=n[0],s=n[n.length-1],c=i();if(e===c){if(!a)return;o=s}if(s!==c||a||(o=l),l===c&&a&&(o=s),o)return t.preventDefault(),void o.focus();var u=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null!=u&&"Chrome"!=u[1]&&null==/\biPod\b|\biPad\b/g.exec(navigator.userAgent)){var d=n.indexOf(c);if(d>-1&&(d+=a?-1:1),void 0===(o=n[d]))return t.preventDefault(),void(o=a?s:l).focus();t.preventDefault(),o.focus()}}else t.preventDefault()};var o,r=(o=n(2411))&&o.__esModule?o:{default:o};function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return e.activeElement.shadowRoot?i(e.activeElement.shadowRoot):e.activeElement}e.exports=t.default},2411:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){return[].slice.call(t.querySelectorAll("*"),0).reduce((function(t,n){return t.concat(n.shadowRoot?e(n.shadowRoot):[n])}),[]).filter(a)};var n="none",o="contents",r=/input|select|textarea|button|object|iframe/;function i(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;try{var r=window.getComputedStyle(e),i=r.getPropertyValue("display");return t?i!==o&&function(e,t){return"visible"!==t.getPropertyValue("overflow")||e.scrollWidth<=0&&e.scrollHeight<=0}(e,r):i===n}catch(e){return console.warn("Failed to inspect element style"),!1}}function a(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var n=isNaN(t);return(n||t>=0)&&function(e,t){var n=e.nodeName.toLowerCase();return(r.test(n)&&!e.disabled||"a"===n&&e.href||t)&&function(e){for(var t=e,n=e.getRootNode&&e.getRootNode();t&&t!==document.body;){if(n&&t===n&&(t=n.host.parentNode),i(t))return!1;t=t.parentNode}return!0}(e)}(e,!n)}e.exports=t.default},312:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r=(o=n(1720))&&o.__esModule?o:{default:o};t.default=r.default,e.exports=t.default},4210:(e,t,n)=>{"use strict";function o(e,t,n,o,r,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=o,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}const r={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach((e=>{r[e]=new o(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((([e,t])=>{r[e]=new o(e,1,!1,t,null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((e=>{r[e]=new o(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((e=>{r[e]=new o(e,2,!1,e,null,!1,!1)})),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach((e=>{r[e]=new o(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((e=>{r[e]=new o(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((e=>{r[e]=new o(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((e=>{r[e]=new o(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((e=>{r[e]=new o(e,5,!1,e.toLowerCase(),null,!1,!1)}));const i=/[\-\:]([a-z])/g,a=e=>e[1].toUpperCase();["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach((e=>{const t=e.replace(i,a);r[t]=new o(t,1,!1,e,null,!1,!1)})),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach((e=>{const t=e.replace(i,a);r[t]=new o(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((e=>{const t=e.replace(i,a);r[t]=new o(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((e=>{r[e]=new o(e,1,!1,e.toLowerCase(),null,!1,!1)})),r.xlinkHref=new o("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((e=>{r[e]=new o(e,1,!1,e.toLowerCase(),null,!0,!0)}));const{CAMELCASE:l,SAME:s,possibleStandardNames:c}=n(6811),u=RegExp.prototype.test.bind(new RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")),d=Object.keys(c).reduce(((e,t)=>{const n=c[t];return n===s?e[t]=t:n===l?e[t.toLowerCase()]=t:e[t]=n,e}),{});t.BOOLEAN=3,t.BOOLEANISH_STRING=2,t.NUMERIC=5,t.OVERLOADED_BOOLEAN=4,t.POSITIVE_NUMERIC=6,t.RESERVED=0,t.STRING=1,t.getPropertyInfo=function(e){return r.hasOwnProperty(e)?r[e]:null},t.isCustomAttribute=u,t.possibleStandardNames=d},6811:(e,t)=>{t.SAME=0,t.CAMELCASE=1,t.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}},5229:function(e,t,n){"use strict";var o=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n(1133)),r=n(8917);function i(e,t){var n={};return e&&"string"==typeof e?((0,o.default)(e,(function(e,o){e&&o&&(n[(0,r.camelCase)(e,t)]=o)})),n):n}i.default=i,e.exports=i},8917:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=void 0;var n=/^--[a-zA-Z0-9-]+$/,o=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,l=function(e,t){return t.toUpperCase()},s=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||r.test(e)||n.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(a,s):e.replace(i,s)).replace(o,l))}},1133:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(9788));t.default=function(e,t){var n=null;if(!e||"string"!=typeof e)return n;var o=(0,r.default)(e),i="function"==typeof t;return o.forEach((function(e){if("declaration"===e.type){var o=e.property,r=e.value;i?t(o,r,e):r&&((n=n||{})[o]=r)}})),n}},9771:e=>{"use strict";e.exports=function(){}},1609:e=>{"use strict";e.exports=window.React},5795:e=>{"use strict";e.exports=window.ReactDOM},6942:(e,t)=>{var n;!function(){"use strict";var o={}.hasOwnProperty;function r(){for(var e="",t=0;t{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e=n(1609);const t=window.wp.domReady;var o=n.n(t);const r=window.wp.element;var i=n(312),a=n.n(i),l=n(442);const s=l.default||l,c=Math.min,u=Math.max,d=Math.round,p=Math.floor,f=e=>({x:e,y:e}),h={left:"right",right:"left",bottom:"top",top:"bottom"},m={start:"end",end:"start"};function y(e,t,n){return u(e,c(t,n))}function v(e,t){return"function"==typeof e?e(t):e}function g(e){return e.split("-")[0]}function b(e){return e.split("-")[1]}function w(e){return"x"===e?"y":"x"}function _(e){return"y"===e?"height":"width"}function E(e){return["top","bottom"].includes(g(e))?"y":"x"}function x(e){return w(E(e))}function S(e){return e.replace(/start|end/g,(e=>m[e]))}function O(e){return e.replace(/left|right|bottom|top/g,(e=>h[e]))}function C(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function T(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function k(e,t,n){let{reference:o,floating:r}=e;const i=E(t),a=x(t),l=_(a),s=g(t),c="y"===i,u=o.x+o.width/2-r.width/2,d=o.y+o.height/2-r.height/2,p=o[l]/2-r[l]/2;let f;switch(s){case"top":f={x:u,y:o.y-r.height};break;case"bottom":f={x:u,y:o.y+o.height};break;case"right":f={x:o.x+o.width,y:d};break;case"left":f={x:o.x-r.width,y:d};break;default:f={x:o.x,y:o.y}}switch(b(t)){case"start":f[a]-=p*(n&&c?-1:1);break;case"end":f[a]+=p*(n&&c?-1:1)}return f}async function A(e,t){var n;void 0===t&&(t={});const{x:o,y:r,platform:i,rects:a,elements:l,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:f=0}=v(t,e),h=C(f),m=l[p?"floating"===d?"reference":"floating":d],y=T(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(l.floating)),boundary:c,rootBoundary:u,strategy:s})),g="floating"===d?{...a.floating,x:o,y:r}:a.reference,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(l.floating)),w=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},_=T(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:g,offsetParent:b,strategy:s}):g);return{top:(y.top-_.top+h.top)/w.y,bottom:(_.bottom-y.bottom+h.bottom)/w.y,left:(y.left-_.left+h.left)/w.x,right:(_.right-y.right+h.right)/w.x}}const R=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:i,placement:a,middlewareData:l}=t,s=await async function(e,t){const{placement:n,platform:o,elements:r}=e,i=await(null==o.isRTL?void 0:o.isRTL(r.floating)),a=g(n),l=b(n),s="y"===E(n),c=["left","top"].includes(a)?-1:1,u=i&&s?-1:1,d=v(t,e);let{mainAxis:p,crossAxis:f,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return l&&"number"==typeof h&&(f="end"===l?-1*h:h),s?{x:f*u,y:p*c}:{x:p*c,y:f*u}}(t,e);return a===(null==(n=l.offset)?void 0:n.placement)&&null!=(o=l.arrow)&&o.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}};function N(e){return D(e)?(e.nodeName||"").toLowerCase():"#document"}function P(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function M(e){var t;return null==(t=(D(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function D(e){return e instanceof Node||e instanceof P(e).Node}function L(e){return e instanceof Element||e instanceof P(e).Element}function I(e){return e instanceof HTMLElement||e instanceof P(e).HTMLElement}function j(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof P(e).ShadowRoot)}function F(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=z(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(r)}function H(e){return["table","td","th"].includes(N(e))}function B(e){const t=U(),n=z(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function U(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function W(e){return["html","body","#document"].includes(N(e))}function z(e){return P(e).getComputedStyle(e)}function V(e){return L(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function q(e){if("html"===N(e))return e;const t=e.assignedSlot||e.parentNode||j(e)&&e.host||M(e);return j(t)?t.host:t}function $(e){const t=q(e);return W(t)?e.ownerDocument?e.ownerDocument.body:e.body:I(t)&&F(t)?t:$(t)}function G(e,t,n){var o;void 0===t&&(t=[]),void 0===n&&(n=!0);const r=$(e),i=r===(null==(o=e.ownerDocument)?void 0:o.body),a=P(r);return i?t.concat(a,a.visualViewport||[],F(r)?r:[],a.frameElement&&n?G(a.frameElement):[]):t.concat(r,G(r,[],n))}function X(e){const t=z(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=I(e),i=r?e.offsetWidth:n,a=r?e.offsetHeight:o,l=d(n)!==i||d(o)!==a;return l&&(n=i,o=a),{width:n,height:o,$:l}}function Y(e){return L(e)?e:e.contextElement}function K(e){const t=Y(e);if(!I(t))return f(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=X(t);let a=(i?d(n.width):n.width)/o,l=(i?d(n.height):n.height)/r;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}const Z=f(0);function J(e){const t=P(e);return U()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Z}function Q(e,t,n,o){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=e.getBoundingClientRect(),i=Y(e);let a=f(1);t&&(o?L(o)&&(a=K(o)):a=K(e));const l=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==P(e))&&t}(i,n,o)?J(i):f(0);let s=(r.left+l.x)/a.x,c=(r.top+l.y)/a.y,u=r.width/a.x,d=r.height/a.y;if(i){const e=P(i),t=o&&L(o)?P(o):o;let n=e,r=n.frameElement;for(;r&&o&&t!==n;){const e=K(r),t=r.getBoundingClientRect(),o=z(r),i=t.left+(r.clientLeft+parseFloat(o.paddingLeft))*e.x,a=t.top+(r.clientTop+parseFloat(o.paddingTop))*e.y;s*=e.x,c*=e.y,u*=e.x,d*=e.y,s+=i,c+=a,n=P(r),r=n.frameElement}}return T({width:u,height:d,x:s,y:c})}const ee=[":popover-open",":modal"];function te(e){return ee.some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function ne(e){return Q(M(e)).left+V(e).scrollLeft}function oe(e,t,n){let o;if("viewport"===t)o=function(e,t){const n=P(e),o=M(e),r=n.visualViewport;let i=o.clientWidth,a=o.clientHeight,l=0,s=0;if(r){i=r.width,a=r.height;const e=U();(!e||e&&"fixed"===t)&&(l=r.offsetLeft,s=r.offsetTop)}return{width:i,height:a,x:l,y:s}}(e,n);else if("document"===t)o=function(e){const t=M(e),n=V(e),o=e.ownerDocument.body,r=u(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),i=u(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let a=-n.scrollLeft+ne(e);const l=-n.scrollTop;return"rtl"===z(o).direction&&(a+=u(t.clientWidth,o.clientWidth)-r),{width:r,height:i,x:a,y:l}}(M(e));else if(L(t))o=function(e,t){const n=Q(e,!0,"fixed"===t),o=n.top+e.clientTop,r=n.left+e.clientLeft,i=I(e)?K(e):f(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:r*i.x,y:o*i.y}}(t,n);else{const n=J(e);o={...t,x:t.x-n.x,y:t.y-n.y}}return T(o)}function re(e,t){const n=q(e);return!(n===t||!L(n)||W(n))&&("fixed"===z(n).position||re(n,t))}function ie(e,t,n){const o=I(t),r=M(t),i="fixed"===n,a=Q(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const s=f(0);if(o||!o&&!i)if(("body"!==N(t)||F(r))&&(l=V(t)),o){const e=Q(t,!0,i,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else r&&(s.x=ne(r));return{x:a.left+l.scrollLeft-s.x,y:a.top+l.scrollTop-s.y,width:a.width,height:a.height}}function ae(e,t){return I(e)&&"fixed"!==z(e).position?t?t(e):e.offsetParent:null}function le(e,t){const n=P(e);if(!I(e)||te(e))return n;let o=ae(e,t);for(;o&&H(o)&&"static"===z(o).position;)o=ae(o,t);return o&&("html"===N(o)||"body"===N(o)&&"static"===z(o).position&&!B(o))?n:o||function(e){let t=q(e);for(;I(t)&&!W(t);){if(B(t))return t;t=q(t)}return null}(e)||n}const se={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const i="fixed"===r,a=M(o),l=!!t&&te(t.floating);if(o===a||l&&i)return n;let s={scrollLeft:0,scrollTop:0},c=f(1);const u=f(0),d=I(o);if((d||!d&&!i)&&(("body"!==N(o)||F(a))&&(s=V(o)),I(o))){const e=Q(o);c=K(o),u.x=e.x+o.clientLeft,u.y=e.y+o.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-s.scrollLeft*c.x+u.x,y:n.y*c.y-s.scrollTop*c.y+u.y}},getDocumentElement:M,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const i=[..."clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let o=G(e,[],!1).filter((e=>L(e)&&"body"!==N(e))),r=null;const i="fixed"===z(e).position;let a=i?q(e):e;for(;L(a)&&!W(a);){const t=z(a),n=B(a);n||"fixed"!==t.position||(r=null),(i?!n&&!r:!n&&"static"===t.position&&r&&["absolute","fixed"].includes(r.position)||F(a)&&!n&&re(e,a))?o=o.filter((e=>e!==a)):r=t,a=q(a)}return t.set(e,o),o}(t,this._c):[].concat(n),o],a=i[0],l=i.reduce(((e,n)=>{const o=oe(t,n,r);return e.top=u(o.top,e.top),e.right=c(o.right,e.right),e.bottom=c(o.bottom,e.bottom),e.left=u(o.left,e.left),e}),oe(t,a,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:le,getElementRects:async function(e){const t=this.getOffsetParent||le,n=this.getDimensions;return{reference:ie(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,...await n(e.floating)}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=X(e);return{width:t,height:n}},getScale:K,isElement:L,isRTL:function(e){return"rtl"===z(e).direction}};const ce=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=v(e,t),c={x:n,y:o},u=await A(t,s),d=E(g(r)),p=w(d);let f=c[p],h=c[d];if(i){const e="y"===p?"bottom":"right";f=y(f+u["y"===p?"top":"left"],f,f-u[e])}if(a){const e="y"===d?"bottom":"right";h=y(h+u["y"===d?"top":"left"],h,h-u[e])}const m=l.fn({...t,[p]:f,[d]:h});return{...m,data:{x:m.x-n,y:m.y-o}}}}},ue=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:i,rects:a,initialPlacement:l,platform:s,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...y}=v(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const w=g(r),E=g(l)===l,C=await(null==s.isRTL?void 0:s.isRTL(c.floating)),T=p||(E||!m?[O(l)]:function(e){const t=O(e);return[S(e),t,S(t)]}(l));p||"none"===h||T.push(...function(e,t,n,o){const r=b(e);let i=function(e,t,n){const o=["left","right"],r=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?r:o:t?o:r;case"left":case"right":return t?i:a;default:return[]}}(g(e),"start"===n,o);return r&&(i=i.map((e=>e+"-"+r)),t&&(i=i.concat(i.map(S)))),i}(l,m,h,C));const k=[l,...T],R=await A(t,y),N=[];let P=(null==(o=i.flip)?void 0:o.overflows)||[];if(u&&N.push(R[w]),d){const e=function(e,t,n){void 0===n&&(n=!1);const o=b(e),r=x(e),i=_(r);let a="x"===r?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=O(a)),[a,O(a)]}(r,a,C);N.push(R[e[0]],R[e[1]])}if(P=[...P,{placement:r,overflows:N}],!N.every((e=>e<=0))){var M,D;const e=((null==(M=i.flip)?void 0:M.index)||0)+1,t=k[e];if(t)return{data:{index:e,overflows:P},reset:{placement:t}};let n=null==(D=P.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:D.placement;if(!n)switch(f){case"bestFit":{var L;const e=null==(L=P.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:L[0];e&&(n=e);break}case"initialPlacement":n=l}if(r!==n)return{reset:{placement:n}}}return{}}}},de=(e,t,n)=>{const o=new Map,r={platform:se,...n},i={...r.platform,_c:o};return(async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:a}=n,l=i.filter(Boolean),s=await(null==a.isRTL?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:d}=k(c,o,s),p=o,f={},h=0;for(let n=0;n{if(!e)return{tooltipStyles:{},tooltipArrowStyles:{},place:o};if(null===t)return{tooltipStyles:{},tooltipArrowStyles:{},place:o};const s=a;return n?(s.push({name:"arrow",options:u={element:n,padding:5},async fn(e){const{x:t,y:n,placement:o,rects:r,platform:i,elements:a,middlewareData:l}=e,{element:s,padding:d=0}=v(u,e)||{};if(null==s)return{};const p=C(d),f={x:t,y:n},h=x(o),m=_(h),g=await i.getDimensions(s),w="y"===h,E=w?"top":"left",S=w?"bottom":"right",O=w?"clientHeight":"clientWidth",T=r.reference[m]+r.reference[h]-f[h]-r.floating[m],k=f[h]-r.reference[h],A=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s));let R=A?A[O]:0;R&&await(null==i.isElement?void 0:i.isElement(A))||(R=a.floating[O]||r.floating[m]);const N=T/2-k/2,P=R/2-g[m]/2-1,M=c(p[E],P),D=c(p[S],P),L=M,I=R-g[m]-D,j=R/2-g[m]/2+N,F=y(L,j,I),H=!l.arrow&&null!=b(o)&&j!==F&&r.reference[m]/2-(j{var r,i;const a={left:`${e}px`,top:`${t}px`,border:l},{x:s,y:c}=null!==(r=o.arrow)&&void 0!==r?r:{x:0,y:0},u=null!==(i={top:"bottom",right:"left",bottom:"top",left:"right"}[n.split("-")[0]])&&void 0!==i?i:"bottom",d=l&&{borderBottom:l,borderRight:l};let p=0;if(l){const e=`${l}`.match(/(\d+)px/);p=(null==e?void 0:e[1])?Number(e[1]):1}return{tooltipStyles:a,tooltipArrowStyles:{left:null!=s?`${s}px`:"",top:null!=c?`${c}px`:"",right:"",bottom:"",...d,[u]:`-${4+p}px`},place:n}}))):de(e,t,{placement:"bottom",strategy:i,middleware:s}).then((({x:e,y:t,placement:n})=>({tooltipStyles:{left:`${e}px`,top:`${t}px`},tooltipArrowStyles:{},place:n})));var u},ye=(e,t)=>!("CSS"in window&&"supports"in window.CSS)||window.CSS.supports(e,t),ve=(e,t,n)=>{let o=null;const r=function(...r){const i=()=>{o=null,n||e.apply(this,r)};n&&!o&&(e.apply(this,r),o=setTimeout(i,t)),n||(o&&clearTimeout(o),o=setTimeout(i,t))};return r.cancel=()=>{o&&(clearTimeout(o),o=null)},r},ge=e=>null!==e&&!Array.isArray(e)&&"object"==typeof e,be=(e,t)=>{if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&e.every(((e,n)=>be(e,t[n])));if(Array.isArray(e)!==Array.isArray(t))return!1;if(!ge(e)||!ge(t))return e===t;const n=Object.keys(e),o=Object.keys(t);return n.length===o.length&&n.every((n=>be(e[n],t[n])))},we=e=>{if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;const t=getComputedStyle(e);return["overflow","overflow-x","overflow-y"].some((e=>{const n=t.getPropertyValue(e);return"auto"===n||"scroll"===n}))},_e=e=>{if(!e)return null;let t=e.parentElement;for(;t;){if(we(t))return t;t=t.parentElement}return document.scrollingElement||document.documentElement},Ee="undefined"!=typeof window?e.useLayoutEffect:e.useEffect,xe={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},Se=(0,e.createContext)({getTooltipData:()=>xe});function Oe(t="DEFAULT_TOOLTIP_ID"){return(0,e.useContext)(Se).getTooltipData(t)}var Ce={tooltip:"core-styles-module_tooltip__3vRRp",fixed:"core-styles-module_fixed__pcSol",arrow:"core-styles-module_arrow__cvMwQ",noArrow:"core-styles-module_noArrow__xock6",clickable:"core-styles-module_clickable__ZuTTB",show:"core-styles-module_show__Nt9eE",closing:"core-styles-module_closing__sGnxF"},Te={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const ke=({forwardRef:t,id:n,className:o,classNameArrow:r,variant:i="dark",anchorId:a,anchorSelect:l,place:s="top",offset:d=10,events:f=["hover"],openOnClick:h=!1,positionStrategy:m="absolute",middlewares:y,wrapper:v,delayShow:g=0,delayHide:b=0,float:w=!1,hidden:_=!1,noArrow:E=!1,clickable:x=!1,closeOnEsc:S=!1,closeOnScroll:O=!1,closeOnResize:C=!1,openEvents:T,closeEvents:k,globalCloseEvents:A,imperativeModeOnly:R,style:N,position:P,afterShow:D,afterHide:L,content:I,contentWrapperRef:j,isOpen:F,defaultIsOpen:H=!1,setIsOpen:B,activeAnchor:U,setActiveAnchor:W,border:z,opacity:V,arrowColor:q,role:$="tooltip"})=>{var X;const K=(0,e.useRef)(null),Z=(0,e.useRef)(null),J=(0,e.useRef)(null),ee=(0,e.useRef)(null),te=(0,e.useRef)(null),[ne,oe]=(0,e.useState)({tooltipStyles:{},tooltipArrowStyles:{},place:s}),[re,ie]=(0,e.useState)(!1),[ae,le]=(0,e.useState)(!1),[se,ce]=(0,e.useState)(null),ue=(0,e.useRef)(!1),de=(0,e.useRef)(null),{anchorRefs:fe,setActiveAnchor:he}=Oe(n),ye=(0,e.useRef)(!1),[ge,we]=(0,e.useState)([]),xe=(0,e.useRef)(!1),Se=h||f.includes("click"),ke=Se||(null==T?void 0:T.click)||(null==T?void 0:T.dblclick)||(null==T?void 0:T.mousedown),Ae=T?{...T}:{mouseenter:!0,focus:!0,click:!1,dblclick:!1,mousedown:!1};!T&&Se&&Object.assign(Ae,{mouseenter:!1,focus:!1,click:!0});const Re=k?{...k}:{mouseleave:!0,blur:!0,click:!1,dblclick:!1,mouseup:!1};!k&&Se&&Object.assign(Re,{mouseleave:!1,blur:!1});const Ne=A?{...A}:{escape:S||!1,scroll:O||!1,resize:C||!1,clickOutsideAnchor:ke||!1};R&&(Object.assign(Ae,{mouseenter:!1,focus:!1,click:!1,dblclick:!1,mousedown:!1}),Object.assign(Re,{mouseleave:!1,blur:!1,click:!1,dblclick:!1,mouseup:!1}),Object.assign(Ne,{escape:!1,scroll:!1,resize:!1,clickOutsideAnchor:!1})),Ee((()=>(xe.current=!0,()=>{xe.current=!1})),[]);const Pe=e=>{xe.current&&(e&&le(!0),setTimeout((()=>{xe.current&&(null==B||B(e),void 0===F&&ie(e))}),10))};(0,e.useEffect)((()=>{if(void 0===F)return()=>null;F&&le(!0);const e=setTimeout((()=>{ie(F)}),10);return()=>{clearTimeout(e)}}),[F]),(0,e.useEffect)((()=>{if(re!==ue.current)if(te.current&&clearTimeout(te.current),ue.current=re,re)null==D||D();else{const e=(e=>{const t=getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay").match(/^([\d.]+)(ms|s)$/);if(!t)return 0;const[,n,o]=t;return Number(n)*("ms"===o?1:1e3)})();te.current=setTimeout((()=>{le(!1),ce(null),null==L||L()}),e+25)}}),[re]);const Me=e=>{oe((t=>be(t,e)?t:e))},De=(e=g)=>{J.current&&clearTimeout(J.current),ae?Pe(!0):J.current=setTimeout((()=>{Pe(!0)}),e)},Le=(e=b)=>{ee.current&&clearTimeout(ee.current),ee.current=setTimeout((()=>{ye.current||Pe(!1)}),e)},Ie=e=>{var t;if(!e)return;const n=null!==(t=e.currentTarget)&&void 0!==t?t:e.target;if(!(null==n?void 0:n.isConnected))return W(null),void he({current:null});g?De():Pe(!0),W(n),he({current:n}),ee.current&&clearTimeout(ee.current)},je=()=>{x?Le(b||100):b?Le():Pe(!1),J.current&&clearTimeout(J.current)},Fe=({x:e,y:t})=>{var n;const o={getBoundingClientRect:()=>({x:e,y:t,width:0,height:0,top:t,left:e,right:e,bottom:t})};me({place:null!==(n=null==se?void 0:se.place)&&void 0!==n?n:s,offset:d,elementReference:o,tooltipReference:K.current,tooltipArrowReference:Z.current,strategy:m,middlewares:y,border:z}).then((e=>{Me(e)}))},He=e=>{if(!e)return;const t=e,n={x:t.clientX,y:t.clientY};Fe(n),de.current=n},Be=e=>{var t;if(!re)return;const n=e.target;n.isConnected&&((null===(t=K.current)||void 0===t?void 0:t.contains(n))||[document.querySelector(`[id='${a}']`),...ge].some((e=>null==e?void 0:e.contains(n)))||(Pe(!1),J.current&&clearTimeout(J.current)))},Ue=ve(Ie,50,!0),We=ve(je,50,!0),ze=e=>{We.cancel(),Ue(e)},Ve=()=>{Ue.cancel(),We()},qe=(0,e.useCallback)((()=>{var e,t;const n=null!==(e=null==se?void 0:se.position)&&void 0!==e?e:P;n?Fe(n):w?de.current&&Fe(de.current):(null==U?void 0:U.isConnected)&&me({place:null!==(t=null==se?void 0:se.place)&&void 0!==t?t:s,offset:d,elementReference:U,tooltipReference:K.current,tooltipArrowReference:Z.current,strategy:m,middlewares:y,border:z}).then((e=>{xe.current&&Me(e)}))}),[re,U,I,N,s,null==se?void 0:se.place,d,m,P,null==se?void 0:se.position,w]);(0,e.useEffect)((()=>{var e,t;const n=new Set(fe);ge.forEach((e=>{n.add({current:e})}));const o=document.querySelector(`[id='${a}']`);o&&n.add({current:o});const r=()=>{Pe(!1)},i=_e(U),l=_e(K.current);Ne.scroll&&(window.addEventListener("scroll",r),null==i||i.addEventListener("scroll",r),null==l||l.addEventListener("scroll",r));let s=null;Ne.resize?window.addEventListener("resize",r):U&&K.current&&(s=function(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:s=!1}=o,d=Y(e),f=r||i?[...d?G(d):[],...G(t)]:[];f.forEach((e=>{r&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const h=d&&l?function(e,t){let n,o=null;const r=M(e);function i(){var e;clearTimeout(n),null==(e=o)||e.disconnect(),o=null}return function a(l,s){void 0===l&&(l=!1),void 0===s&&(s=1),i();const{left:d,top:f,width:h,height:m}=e.getBoundingClientRect();if(l||t(),!h||!m)return;const y={rootMargin:-p(f)+"px "+-p(r.clientWidth-(d+h))+"px "+-p(r.clientHeight-(f+m))+"px "+-p(d)+"px",threshold:u(0,c(1,s))||1};let v=!0;function g(e){const t=e[0].intersectionRatio;if(t!==s){if(!v)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),100)}v=!1}try{o=new IntersectionObserver(g,{...y,root:r.ownerDocument})}catch(e){o=new IntersectionObserver(g,y)}o.observe(e)}(!0),i}(d,n):null;let m,y=-1,v=null;a&&(v=new ResizeObserver((e=>{let[o]=e;o&&o.target===d&&v&&(v.unobserve(t),cancelAnimationFrame(y),y=requestAnimationFrame((()=>{var e;null==(e=v)||e.observe(t)}))),n()})),d&&!s&&v.observe(d),v.observe(t));let g=s?Q(e):null;return s&&function t(){const o=Q(e);!g||o.x===g.x&&o.y===g.y&&o.width===g.width&&o.height===g.height||n(),g=o,m=requestAnimationFrame(t)}(),n(),()=>{var e;f.forEach((e=>{r&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==h||h(),null==(e=v)||e.disconnect(),v=null,s&&cancelAnimationFrame(m)}}(U,K.current,qe,{ancestorResize:!0,elementResize:!0,layoutShift:!0}));const d=e=>{"Escape"===e.key&&Pe(!1)};Ne.escape&&window.addEventListener("keydown",d),Ne.clickOutsideAnchor&&window.addEventListener("click",Be);const f=[],h=e=>{re&&(null==e?void 0:e.target)===U||Ie(e)},m=e=>{re&&(null==e?void 0:e.target)===U&&je()},y=["mouseenter","mouseleave","focus","blur"],v=["click","dblclick","mousedown","mouseup"];Object.entries(Ae).forEach((([e,t])=>{t&&(y.includes(e)?f.push({event:e,listener:ze}):v.includes(e)&&f.push({event:e,listener:h}))})),Object.entries(Re).forEach((([e,t])=>{t&&(y.includes(e)?f.push({event:e,listener:Ve}):v.includes(e)&&f.push({event:e,listener:m}))})),w&&f.push({event:"pointermove",listener:He});const g=()=>{ye.current=!0},b=()=>{ye.current=!1,je()};return x&&!ke&&(null===(e=K.current)||void 0===e||e.addEventListener("mouseenter",g),null===(t=K.current)||void 0===t||t.addEventListener("mouseleave",b)),f.forEach((({event:e,listener:t})=>{n.forEach((n=>{var o;null===(o=n.current)||void 0===o||o.addEventListener(e,t)}))})),()=>{var e,t;Ne.scroll&&(window.removeEventListener("scroll",r),null==i||i.removeEventListener("scroll",r),null==l||l.removeEventListener("scroll",r)),Ne.resize?window.removeEventListener("resize",r):null==s||s(),Ne.clickOutsideAnchor&&window.removeEventListener("click",Be),Ne.escape&&window.removeEventListener("keydown",d),x&&!ke&&(null===(e=K.current)||void 0===e||e.removeEventListener("mouseenter",g),null===(t=K.current)||void 0===t||t.removeEventListener("mouseleave",b)),f.forEach((({event:e,listener:t})=>{n.forEach((n=>{var o;null===(o=n.current)||void 0===o||o.removeEventListener(e,t)}))}))}}),[U,qe,ae,fe,ge,T,k,A,Se,g,b]),(0,e.useEffect)((()=>{var e,t;let o=null!==(t=null!==(e=null==se?void 0:se.anchorSelect)&&void 0!==e?e:l)&&void 0!==t?t:"";!o&&n&&(o=`[data-tooltip-id='${n}']`);const r=new MutationObserver((e=>{const t=[],r=[];e.forEach((e=>{if("attributes"===e.type&&"data-tooltip-id"===e.attributeName&&(e.target.getAttribute("data-tooltip-id")===n?t.push(e.target):e.oldValue===n&&r.push(e.target)),"childList"===e.type){if(U){const t=[...e.removedNodes].filter((e=>1===e.nodeType));if(o)try{r.push(...t.filter((e=>e.matches(o)))),r.push(...t.flatMap((e=>[...e.querySelectorAll(o)])))}catch(e){}t.some((e=>{var t;return!!(null===(t=null==e?void 0:e.contains)||void 0===t?void 0:t.call(e,U))&&(le(!1),Pe(!1),W(null),J.current&&clearTimeout(J.current),ee.current&&clearTimeout(ee.current),!0)}))}if(o)try{const n=[...e.addedNodes].filter((e=>1===e.nodeType));t.push(...n.filter((e=>e.matches(o)))),t.push(...n.flatMap((e=>[...e.querySelectorAll(o)])))}catch(e){}}})),(t.length||r.length)&&we((e=>[...e.filter((e=>!r.includes(e))),...t]))}));return r.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"],attributeOldValue:!0}),()=>{r.disconnect()}}),[n,l,null==se?void 0:se.anchorSelect,U]),(0,e.useEffect)((()=>{qe()}),[qe]),(0,e.useEffect)((()=>{if(!(null==j?void 0:j.current))return()=>null;const e=new ResizeObserver((()=>{setTimeout((()=>qe()))}));return e.observe(j.current),()=>{e.disconnect()}}),[I,null==j?void 0:j.current]),(0,e.useEffect)((()=>{var e;const t=document.querySelector(`[id='${a}']`),n=[...ge,t];U&&n.includes(U)||W(null!==(e=ge[0])&&void 0!==e?e:t)}),[a,ge,U]),(0,e.useEffect)((()=>(H&&Pe(!0),()=>{J.current&&clearTimeout(J.current),ee.current&&clearTimeout(ee.current)})),[]),(0,e.useEffect)((()=>{var e;let t=null!==(e=null==se?void 0:se.anchorSelect)&&void 0!==e?e:l;if(!t&&n&&(t=`[data-tooltip-id='${n}']`),t)try{const e=Array.from(document.querySelectorAll(t));we(e)}catch(e){we([])}}),[n,l,null==se?void 0:se.anchorSelect]),(0,e.useEffect)((()=>{J.current&&(clearTimeout(J.current),De(g))}),[g]);const $e=null!==(X=null==se?void 0:se.content)&&void 0!==X?X:I,Ge=re&&Object.keys(ne.tooltipStyles).length>0;return(0,e.useImperativeHandle)(t,(()=>({open:e=>{if(null==e?void 0:e.anchorSelect)try{document.querySelector(e.anchorSelect)}catch(t){return void console.warn(`[react-tooltip] "${e.anchorSelect}" is not a valid CSS selector`)}ce(null!=e?e:null),(null==e?void 0:e.delay)?De(e.delay):Pe(!0)},close:e=>{(null==e?void 0:e.delay)?Le(e.delay):Pe(!1)},activeAnchor:U,place:ne.place,isOpen:Boolean(ae&&!_&&$e&&Ge)}))),ae&&!_&&$e?e.createElement(v,{id:n,role:$,className:pe("react-tooltip",Ce.tooltip,Te.tooltip,Te[i],o,`react-tooltip__place-${ne.place}`,Ce[Ge?"show":"closing"],Ge?"react-tooltip__show":"react-tooltip__closing","fixed"===m&&Ce.fixed,x&&Ce.clickable),onTransitionEnd:e=>{te.current&&clearTimeout(te.current),re||"opacity"!==e.propertyName||(le(!1),ce(null),null==L||L())},style:{...N,...ne.tooltipStyles,opacity:void 0!==V&&Ge?V:void 0},ref:K},$e,e.createElement(v,{className:pe("react-tooltip-arrow",Ce.arrow,Te.arrow,r,E&&Ce.noArrow),style:{...ne.tooltipArrowStyles,background:q?`linear-gradient(to right bottom, transparent 50%, ${q} 50%)`:void 0},ref:Z})):null},Ae=({content:t})=>e.createElement("span",{dangerouslySetInnerHTML:{__html:t}}),Re=e.forwardRef((({id:t,anchorId:n,anchorSelect:o,content:r,html:i,render:a,className:l,classNameArrow:s,variant:c="dark",place:u="top",offset:d=10,wrapper:p="div",children:f=null,events:h=["hover"],openOnClick:m=!1,positionStrategy:y="absolute",middlewares:v,delayShow:g=0,delayHide:b=0,float:w=!1,hidden:_=!1,noArrow:E=!1,clickable:x=!1,closeOnEsc:S=!1,closeOnScroll:O=!1,closeOnResize:C=!1,openEvents:T,closeEvents:k,globalCloseEvents:A,imperativeModeOnly:R=!1,style:N,position:P,isOpen:M,defaultIsOpen:D=!1,disableStyleInjection:L=!1,border:I,opacity:j,arrowColor:F,setIsOpen:H,afterShow:B,afterHide:U,role:W="tooltip"},z)=>{const[V,q]=(0,e.useState)(r),[$,G]=(0,e.useState)(i),[X,Y]=(0,e.useState)(u),[K,Z]=(0,e.useState)(c),[J,Q]=(0,e.useState)(d),[ee,te]=(0,e.useState)(g),[ne,oe]=(0,e.useState)(b),[re,ie]=(0,e.useState)(w),[ae,le]=(0,e.useState)(_),[se,ce]=(0,e.useState)(p),[ue,de]=(0,e.useState)(h),[fe,he]=(0,e.useState)(y),[me,ve]=(0,e.useState)(null),[ge,be]=(0,e.useState)(null),we=(0,e.useRef)(L),{anchorRefs:_e,activeAnchor:Ee}=Oe(t),xe=e=>null==e?void 0:e.getAttributeNames().reduce(((t,n)=>{var o;return n.startsWith("data-tooltip-")&&(t[n.replace(/^data-tooltip-/,"")]=null!==(o=null==e?void 0:e.getAttribute(n))&&void 0!==o?o:null),t}),{}),Se=e=>{const t={place:e=>{var t;Y(null!==(t=e)&&void 0!==t?t:u)},content:e=>{q(null!=e?e:r)},html:e=>{G(null!=e?e:i)},variant:e=>{var t;Z(null!==(t=e)&&void 0!==t?t:c)},offset:e=>{Q(null===e?d:Number(e))},wrapper:e=>{var t;ce(null!==(t=e)&&void 0!==t?t:p)},events:e=>{const t=null==e?void 0:e.split(" ");de(null!=t?t:h)},"position-strategy":e=>{var t;he(null!==(t=e)&&void 0!==t?t:y)},"delay-show":e=>{te(null===e?g:Number(e))},"delay-hide":e=>{oe(null===e?b:Number(e))},float:e=>{ie(null===e?w:"true"===e)},hidden:e=>{le(null===e?_:"true"===e)},"class-name":e=>{ve(e)}};Object.values(t).forEach((e=>e(null))),Object.entries(e).forEach((([e,n])=>{var o;null===(o=t[e])||void 0===o||o.call(t,n)}))};(0,e.useEffect)((()=>{q(r)}),[r]),(0,e.useEffect)((()=>{G(i)}),[i]),(0,e.useEffect)((()=>{Y(u)}),[u]),(0,e.useEffect)((()=>{Z(c)}),[c]),(0,e.useEffect)((()=>{Q(d)}),[d]),(0,e.useEffect)((()=>{te(g)}),[g]),(0,e.useEffect)((()=>{oe(b)}),[b]),(0,e.useEffect)((()=>{ie(w)}),[w]),(0,e.useEffect)((()=>{le(_)}),[_]),(0,e.useEffect)((()=>{he(y)}),[y]),(0,e.useEffect)((()=>{we.current!==L&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")}),[L]),(0,e.useEffect)((()=>{"undefined"!=typeof window&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:"core"===L,disableBase:L}}))}),[]),(0,e.useEffect)((()=>{var e;const r=new Set(_e);let i=o;if(!i&&t&&(i=`[data-tooltip-id='${t}']`),i)try{document.querySelectorAll(i).forEach((e=>{r.add({current:e})}))}catch(e){console.warn(`[react-tooltip] "${i}" is not a valid CSS selector`)}const a=document.querySelector(`[id='${n}']`);if(a&&r.add({current:a}),!r.size)return()=>null;const l=null!==(e=null!=ge?ge:a)&&void 0!==e?e:Ee.current,s=new MutationObserver((e=>{e.forEach((e=>{var t;if(!l||"attributes"!==e.type||!(null===(t=e.attributeName)||void 0===t?void 0:t.startsWith("data-tooltip-")))return;const n=xe(l);Se(n)}))})),c={attributes:!0,childList:!1,subtree:!1};if(l){const e=xe(l);Se(e),s.observe(l,c)}return()=>{s.disconnect()}}),[_e,Ee,ge,n,o]),(0,e.useEffect)((()=>{(null==N?void 0:N.border)&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),I&&!ye("border",`${I}`)&&console.warn(`[react-tooltip] "${I}" is not a valid \`border\`.`),(null==N?void 0:N.opacity)&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),j&&!ye("opacity",`${j}`)&&console.warn(`[react-tooltip] "${j}" is not a valid \`opacity\`.`)}),[]);let Ce=f;const Te=(0,e.useRef)(null);if(a){const t=a({content:(null==ge?void 0:ge.getAttribute("data-tooltip-content"))||V||null,activeAnchor:ge});Ce=t?e.createElement("div",{ref:Te,className:"react-tooltip-content-wrapper"},t):null}else V&&(Ce=V);$&&(Ce=e.createElement(Ae,{content:$}));const Re={forwardRef:z,id:t,anchorId:n,anchorSelect:o,className:pe(l,me),classNameArrow:s,content:Ce,contentWrapperRef:Te,place:X,variant:K,offset:J,wrapper:se,events:ue,openOnClick:m,positionStrategy:fe,middlewares:v,delayShow:ee,delayHide:ne,float:re,hidden:ae,noArrow:E,clickable:x,closeOnEsc:S,closeOnScroll:O,closeOnResize:C,openEvents:T,closeEvents:k,globalCloseEvents:A,imperativeModeOnly:R,style:N,position:P,isOpen:M,defaultIsOpen:D,border:I,opacity:j,arrowColor:F,setIsOpen:H,afterShow:B,afterHide:U,activeAnchor:ge,setActiveAnchor:e=>be(e),role:W};return e.createElement(ke,{...Re})}));"undefined"!=typeof window&&window.addEventListener("react-tooltip-inject-styles",(e=>{e.detail.disableCore||he({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in}",type:"core"}),e.detail.disableBase||he({css:"\n.styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:8px;height:8px}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}",type:"base"})}));const Ne=window.wp.i18n,Pe=window.wp.components,Me=window.wp.apiFetch;var De=n.n(Me);const Le=({type:t="upcoming",status:n="no_status"})=>{const o={upcoming:{attending:{icon:"dashicons dashicons-yes-alt",text:(0,Ne._x)("Attending","Responded Status","gatherpress")},waiting_list:{icon:"dashicons dashicons-editor-help",text:(0,Ne._x)("Waiting List","Responded Status","gatherpress")},not_attending:{icon:"dashicons dashicons-dismiss",text:(0,Ne._x)("Not Attending","Responded Status","gatherpress")},no_status:{icon:"",text:""}},past:{attending:{icon:"dashicons dashicons-yes-alt",text:(0,Ne._x)("Went","Responded Status","gatherpress")},waiting_list:{icon:"dashicons dashicons-dismiss",text:(0,Ne._x)("Didn't Go","Responded Status","gatherpress")},not_attending:{icon:"dashicons dashicons-dismiss",text:(0,Ne._x)("Didn't Go","Responded Status","gatherpress")},no_status:{icon:"dashicons dashicons-dismiss",text:(0,Ne._x)("Didn't Go","Responded Status","gatherpress")}}};return(0,e.createElement)("div",{className:"gatherpress-status__response"},(0,e.createElement)("span",{className:o[t][n].icon}),(0,e.createElement)("strong",null,o[t][n].text))};function Ie(e){if("object"==typeof GatherPress)return e.split(".").reduce(((e,t)=>e&&e[t]),GatherPress)}window.wp.data;const je=({postId:t,currentUser:n="",type:o,enableAnonymousRsvp:i,enableInitialDecline:l,maxGuestLimit:c})=>{const[u,d]=(0,r.useState)(n.status),[p,f]=(0,r.useState)(Number(n.anonymous)),[h,m]=(0,r.useState)(n.guests),[y,v]=(0,r.useState)("hidden"),[g,b]=(0,r.useState)("false"),[w,_]=(0,r.useState)(!1);if("past"===o)return"";"undefined"==typeof adminpage&&a().setAppElement(".gatherpress-enabled");const E=e=>{e.preventDefault(),_(!1)},x=async(e,n,o,r=0,i=!0)=>{e.preventDefault(),"attending"!==n&&(r=0),De()({path:Ie("urls.eventRestApi")+"/rsvp",method:"POST",data:{post_id:t,status:n,guests:r,anonymous:o,_wpnonce:Ie("misc.nonce")}}).then((t=>{if(t.success){d(t.status),m(t.guests);const n={all:0,attending:0,not_attending:0,waiting_list:0};for(const[e,o]of Object.entries(t.responses))n[e]=o.count;((e,t="")=>{for(const[n,o]of Object.entries(e)){let e=n;t&&(e+="_"+String(t));const r=new CustomEvent(e,{detail:o});dispatchEvent(r)}})({setRsvpStatus:t.status,setRsvpResponse:t.responses,setRsvpCount:n,setRsvpSeeAllLink:n[t.status]>8,setOnlineEventLink:t.online_link},t.event_id),i&&E(e)}}))},S=e=>{switch(e){case"attending":return(0,Ne.__)("You're attending","gatherpress");case"waiting_list":return(0,Ne.__)("You're wait listed","gatherpress");case"not_attending":return(0,Ne.__)("You're not attending","gatherpress")}return(0,Ne.__)("RSVP to this event","gatherpress")};return(0,e.createElement)("div",{className:"gatherpress-rsvp"},(0,e.createElement)(Pe.ButtonGroup,{className:"gatherpress-buttons wp-block-buttons"},(0,e.createElement)("div",{className:"gatherpress-buttons__container wp-block-button"},(0,e.createElement)("a",{href:"#",className:"gatherpress-buttons__button wp-block-button__link","aria-expanded":g,tabIndex:"0",onKeyDown:e=>{13===e.keyCode&&(v("hidden"===y?"show":"hidden"),b("false"===g?"true":"false"))},onClick:e=>(e=>{e.preventDefault(),_(!0)})(e)},(e=>{switch(e){case"attending":case"waiting_list":case"not_attending":return(0,Ne.__)("Edit RSVP","gatherpress")}return(0,Ne.__)("RSVP","gatherpress")})(u))),(0,e.createElement)(a(),{isOpen:w,onRequestClose:E,style:{overlay:{zIndex:999999999},content:{top:"50%",left:"50%",right:"auto",bottom:"auto",marginRight:"-50%",transform:"translate(-50%, -50%)"}},contentLabel:(0,Ne.__)("Edit RSVP","gatherpress")},0===n.length&&(0,e.createElement)((()=>(0,e.createElement)("div",{className:"gatherpress-modal gatherpress-modal__rsvp"},(0,e.createElement)("div",{className:"gatherpress-modal__header"},(0,Ne.__)("Login Required","gatherpress")),(0,e.createElement)("div",{className:"gatherpress-modal__content"},(0,e.createElement)("div",{className:"gatherpress-modal__text"},s((0,Ne.sprintf)(/* translators: %s: 'Login' (hyperlinked) */ /* translators: %s: 'Login' (hyperlinked) */ -(0,Ne.__)("You must %s to RSVP to events.","gatherpress"),`\n\t\t\t\t\t\t\t\t\t${(0,Ne._x)("Login","Context: You must ~ to RSVP to events.","gatherpress")}\n\t\t\t\t\t\t\t\t`))),""!==Ie("urls.registrationUrl")&&(0,e.createElement)("div",{className:"gatherpress-modal__text"},s((0,Ne.sprintf)(/* translators: %s: 'Register' (hyperlinked) */ /* translators: %s: 'Register' (hyperlinked) */ -(0,Ne.__)("%s if you do not have an account.","gatherpress"),`\n\t\t\t\t\t\t\t\t\t\t${(0,Ne._x)("Register","Context: ~ if you do not have an account.","gatherpress")}\n\t\t\t\t\t\t\t\t\t`)))),(0,e.createElement)(Pe.ButtonGroup,{className:"gatherpress-buttons wp-block-buttons"},(0,e.createElement)("div",{className:"gatherpress-buttons__container wp-block-button"},(0,e.createElement)("a",{href:"#",onClick:E,className:"gatherpress-buttons__button wp-block-button__link"},(0,Ne.__)("Close","gatherpress")))))),null),0!==n.length&&(0,e.createElement)((({status:t})=>{let n="",o="";return"not_attending"===t||"no_status"===t?(n="attending",o=(0,Ne.__)("Attend","gatherpress")):(n="not_attending",o=(0,Ne._x)("Not Attending","action of not attending","gatherpress")),(0,e.createElement)("div",{className:"gatherpress-modal gatherpress-modal__rsvp"},(0,e.createElement)("div",{className:"gatherpress-modal__header"},S(u)?S(u):(0,e.createElement)(Pe.Spinner,null)),(0,e.createElement)("div",{className:"gatherpress-modal__content"},(0,e.createElement)("div",{className:"gatherpress-modal__text"},s((0,Ne.sprintf)(/* translators: %s: button label. */ /* translators: %s: button label. */ -(0,Ne.__)("To set or change your attending status, simply click the %s button below.","gatherpress"),""+o+""))),0{const t=Number(e.target.value);m(t),x(e,u,p,t,!1)},defaultValue:h})),i&&(0,e.createElement)("div",{className:"gatherpress-modal__anonymous"},(0,e.createElement)("input",{id:"gatherpress-anonymous",type:"checkbox",onChange:e=>{const t=Number(e.target.checked);f(t),x(e,u,t,0,!1)},checked:p}),(0,e.createElement)("label",{htmlFor:"gatherpress-anonymous",tabIndex:"0",className:"gatherpress-tooltip","data-tooltip-id":"gatherpress-anonymous-tooltip","data-tooltip-content":(0,Ne.__)("Only admins will see your identity.","gatherpress")},(0,Ne.__)("List me as anonymous.","gatherpress")),(0,e.createElement)(Re,{id:"gatherpress-anonymous-tooltip"}))),(0,e.createElement)(Pe.ButtonGroup,{className:"gatherpress-buttons wp-block-buttons"},(0,e.createElement)("div",{className:"gatherpress-buttons__container wp-block-button is-style-outline"},(0,e.createElement)("a",{href:"#",onClick:e=>x(e,n,p,"not_attending"!==n?h:0,"not_attending"===n),className:"gatherpress-buttons__button wp-block-button__link"},o)),(0,e.createElement)("div",{className:"gatherpress-buttons__container wp-block-button"},(0,e.createElement)("a",{href:"#",onClick:E,className:"gatherpress-buttons__button wp-block-button__link"},(0,Ne.__)("Close","gatherpress")))),l&&"no_status"===u&&1!==p?(0,e.createElement)(Pe.ButtonGroup,{className:"gatherpress-buttons wp-block-buttons"},(0,e.createElement)("div",{className:"gatherpress-buttons__container wp-block-button"},(0,e.createElement)("a",{href:"#",onClick:e=>x(e,"not_attending",null),className:"gatherpress-buttons__text-link"},(0,Ne._x)("Not Attending","Responded Status","gatherpress")))):(0,e.createElement)(e.Fragment,null))}),{status:u}))),"no_status"!==u&&(0,e.createElement)("div",{className:"gatherpress-status"},(0,e.createElement)(Le,{type:o,status:u}),0{const t=document.querySelectorAll('[data-gatherpress_block_name="rsvp"]'),n=!0===Ie("eventDetails.hasEventPast")?"past":"upcoming";for(let o=0;o{var e={5413:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(n=t.ElementType||(t.ElementType={})),t.isTag=function(e){return e.type===n.Tag||e.type===n.Script||e.type===n.Style},t.Root=n.Root,t.Text=n.Text,t.Directive=n.Directive,t.Comment=n.Comment,t.Script=n.Script,t.Style=n.Style,t.Tag=n.Tag,t.CDATA=n.CDATA,t.Doctype=n.Doctype},1141:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,r)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var i=n(5413),a=n(6957);r(n(6957),t);var l={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},s=function(){function e(e,t,n){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=l),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:l,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?i.ElementType.Tag:void 0,o=new a.Element(e,t,void 0,n);this.addNode(o),this.tagStack.push(o)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===i.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var n=new a.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===i.ElementType.Comment)this.lastNode.data+=e;else{var t=new a.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new a.Text(""),t=new a.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new a.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=s,t.default=s},6957:function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,o=arguments.length;n0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(l);t.NodeWithChildren=p;var f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.CDATA,t}return r(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(p);t.CDATA=f;var h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.Root,t}return r(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(p);t.Document=h;var m=function(e){function t(t,n,o,r){void 0===o&&(o=[]),void 0===r&&(r="script"===t?a.ElementType.Script:"style"===t?a.ElementType.Style:a.ElementType.Tag);var i=e.call(this,o)||this;return i.name=t,i.attribs=n,i.type=r,i}return r(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var n,o;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(o=e["x-attribsPrefix"])||void 0===o?void 0:o[t]}}))},enumerable:!1,configurable:!0}),t}(p);function y(e){return(0,a.isTag)(e)}function v(e){return e.type===a.ElementType.CDATA}function g(e){return e.type===a.ElementType.Text}function b(e){return e.type===a.ElementType.Comment}function w(e){return e.type===a.ElementType.Directive}function _(e){return e.type===a.ElementType.Root}function E(e,t){var n;if(void 0===t&&(t=!1),g(e))n=new c(e.data);else if(b(e))n=new u(e.data);else if(y(e)){var o=t?x(e.children):[],r=new m(e.name,i({},e.attribs),o);o.forEach((function(e){return e.parent=r})),null!=e.namespace&&(r.namespace=e.namespace),e["x-attribsNamespace"]&&(r["x-attribsNamespace"]=i({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(r["x-attribsPrefix"]=i({},e["x-attribsPrefix"])),n=r}else if(v(e)){o=t?x(e.children):[];var a=new f(o);o.forEach((function(e){return e.parent=a})),n=a}else if(_(e)){o=t?x(e.children):[];var l=new h(o);o.forEach((function(e){return e.parent=l})),e["x-mode"]&&(l["x-mode"]=e["x-mode"]),n=l}else{if(!w(e))throw new Error("Not implemented yet: ".concat(e.type));var s=new d(e.name,e.data);null!=e["x-name"]&&(s["x-name"]=e["x-name"],s["x-publicId"]=e["x-publicId"],s["x-systemId"]=e["x-systemId"]),n=s}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function x(e){for(var t=e.map((function(e){return E(e,!0)})),n=1;n{var o;!function(){"use strict";var r=!("undefined"==typeof window||!window.document||!window.document.createElement),i={canUseDOM:r,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:r&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:r&&!!window.screen};void 0===(o=function(){return i}.call(t,n,t,e))||(e.exports=o)}()},5270:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES=void 0,t.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES.reduce((function(e,t){return e[t.toLowerCase()]=t,e}),{})},5496:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="html",o="head",r="body",i=/<([a-zA-Z]+[0-9]?)/,a=//i,l=//i,s=function(e,t){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},c=function(e,t){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},u="object"==typeof window&&window.DOMParser;if("function"==typeof u){var d=new u;s=c=function(e,t){return t&&(e="<".concat(t,">").concat(e,"")),d.parseFromString(e,"text/html")}}if("object"==typeof document&&document.implementation){var p=document.implementation.createHTMLDocument();s=function(e,t){if(t){var n=p.documentElement.querySelector(t);return n&&(n.innerHTML=e),p}return p.documentElement.innerHTML=e,p}}var f,h="object"==typeof document&&document.createElement("template");h&&h.content&&(f=function(e){return h.innerHTML=e,h.content.childNodes}),t.default=function(e){var t,u,d=e.match(i),p=d&&d[1]?d[1].toLowerCase():"";switch(p){case n:var h=c(e);return a.test(e)||null===(t=null==(y=h.querySelector(o))?void 0:y.parentNode)||void 0===t||t.removeChild(y),l.test(e)||null===(u=null==(y=h.querySelector(r))?void 0:y.parentNode)||void 0===u||u.removeChild(y),h.querySelectorAll(n);case o:case r:var m=s(e).querySelectorAll(p);return l.test(e)&&a.test(e)?m[0].parentNode.childNodes:m;default:return f?f(e):(y=s(e,r).querySelector(r)).childNodes;var y}}},2471:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(5496)),i=n(7731),a=/<(![a-zA-Z\s]+)>/;t.default=function(e){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];var t=e.match(a),n=t?t[1]:void 0;return(0,i.formatDOM)((0,r.default)(e),null,n)}},7731:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatDOM=t.formatAttributes=void 0;var o=n(1141),r=n(5270);function i(e){for(var t={},n=0,o=e.length;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(4210),r=n(4958),i=["checked","value"],a=["input","select","textarea"],l={reset:!0,submit:!0};function s(e){return o.possibleStandardNames[e]}t.default=function(e,t){void 0===e&&(e={});var n={},c=Boolean(e.type&&l[e.type]);for(var u in e){var d=e[u];if((0,o.isCustomAttribute)(u))n[u]=d;else{var p=u.toLowerCase(),f=s(p);if(f){var h=(0,o.getPropertyInfo)(f);switch(i.includes(f)&&a.includes(t)&&!c&&(f=s("default"+p)),n[f]=d,h&&h.type){case o.BOOLEAN:n[f]=!0;break;case o.OVERLOADED_BOOLEAN:""===d&&(n[f]=!0)}}else r.PRESERVE_CUSTOM_ATTRIBUTES&&(n[u]=d)}}return(0,r.setStyleProp)(e.style,n),n}},308:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=n(1609),i=o(n(840)),a=n(4958),l={cloneElement:r.cloneElement,createElement:r.createElement,isValidElement:r.isValidElement};function s(e){return a.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&(0,a.isCustomComponent)(e.name,e.attribs)}t.default=function e(t,n){void 0===n&&(n={});for(var o=[],r="function"==typeof n.replace,c=n.transform||a.returnFirstArg,u=n.library||l,d=u.cloneElement,p=u.createElement,f=u.isValidElement,h=t.length,m=0;m1&&(v=d(v,{key:v.key||m})),o.push(c(v,y,m));continue}}if("text"!==y.type){var g=y,b={};s(g)?((0,a.setStyleProp)(g.attribs.style,g.attribs),b=g.attribs):g.attribs&&(b=(0,i.default)(g.attribs,g.name));var w=void 0;switch(y.type){case"script":case"style":y.children[0]&&(b.dangerouslySetInnerHTML={__html:y.children[0].data});break;case"tag":"textarea"===y.name&&y.children[0]?b.defaultValue=y.children[0].data:y.children&&y.children.length&&(w=e(y.children,n));break;default:continue}h>1&&(b.key=m),o.push(c(p(y.name,b,w),y,m))}else{var _=!y.data.trim().length;if(_&&y.parent&&!(0,a.canTextBeChildOfNode)(y.parent))continue;if(n.trim&&_)continue;o.push(c(y.data,y,m))}}return 1===o.length?o[0]:o}},442:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.htmlToDOM=t.domToReact=t.attributesToProps=t.Text=t.ProcessingInstruction=t.Element=t.Comment=void 0;var r=o(n(2471));t.htmlToDOM=r.default;var i=o(n(840));t.attributesToProps=i.default;var a=o(n(308));t.domToReact=a.default;var l=n(1141);Object.defineProperty(t,"Comment",{enumerable:!0,get:function(){return l.Comment}}),Object.defineProperty(t,"Element",{enumerable:!0,get:function(){return l.Element}}),Object.defineProperty(t,"ProcessingInstruction",{enumerable:!0,get:function(){return l.ProcessingInstruction}}),Object.defineProperty(t,"Text",{enumerable:!0,get:function(){return l.Text}});var s={lowerCaseAttributeNames:!1};t.default=function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");return e?(0,a.default)((0,r.default)(e,(null==t?void 0:t.htmlparser2)||s),t):[]}},4958:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.returnFirstArg=t.canTextBeChildOfNode=t.ELEMENTS_WITH_NO_TEXT_CHILDREN=t.PRESERVE_CUSTOM_ATTRIBUTES=t.setStyleProp=t.isCustomComponent=void 0;var r=n(1609),i=o(n(5229)),a=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);t.isCustomComponent=function(e,t){return e.includes("-")?!a.has(e):Boolean(t&&"string"==typeof t.is)};var l={reactCompat:!0};t.setStyleProp=function(e,t){if("string"==typeof e)if(e.trim())try{t.style=(0,i.default)(e,l)}catch(e){t.style={}}else t.style={}},t.PRESERVE_CUSTOM_ATTRIBUTES=Number(r.version.split(".")[0])>=16,t.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]),t.canTextBeChildOfNode=function(e){return!t.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(e.name)},t.returnFirstArg=function(e){return e}},9788:e=>{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,o=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,s=/^\s+|\s+$/g,c="";function u(e){return e?e.replace(s,c):c}e.exports=function(e,s){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];s=s||{};var d=1,p=1;function f(e){var t=e.match(n);t&&(d+=t.length);var o=e.lastIndexOf("\n");p=~o?e.length-o:p+e.length}function h(){var e={line:d,column:p};return function(t){return t.position=new m(e),b(),t}}function m(e){this.start=e,this.end={line:d,column:p},this.source=s.source}m.prototype.content=e;var y=[];function v(t){var n=new Error(s.source+":"+d+":"+p+": "+t);if(n.reason=t,n.filename=s.source,n.line=d,n.column=p,n.source=e,!s.silent)throw n;y.push(n)}function g(t){var n=t.exec(e);if(n){var o=n[0];return f(o),e=e.slice(o.length),n}}function b(){g(o)}function w(e){var t;for(e=e||[];t=_();)!1!==t&&e.push(t);return e}function _(){var t=h();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;c!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,c===e.charAt(n-1))return v("End of comment missing");var o=e.slice(2,n-2);return p+=2,f(o),e=e.slice(n),p+=2,t({type:"comment",comment:o})}}function E(){var e=h(),n=g(r);if(n){if(_(),!g(i))return v("property missing ':'");var o=g(a),s=e({type:"declaration",property:u(n[0].replace(t,c)),value:o?u(o[0].replace(t,c)):c});return g(l),s}}return b(),function(){var e,t=[];for(w(t);e=E();)!1!==e&&(t.push(e),w(t));return t}()}},2694:(e,t,n)=>{"use strict";var o=n(6925);function r(){}function i(){}i.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,i,a){if(a!==o){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return n.PropTypes=n,n}},5556:(e,t,n)=>{e.exports=n(2694)()},6925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},1345:(e,t,n)=>{"use strict";function o(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function r(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function i(e,t){try{var n=this.props,o=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,o)}finally{this.props=n,this.state=o}}function a(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,a=null,l=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?a="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(a="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?l="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(l="UNSAFE_componentWillUpdate"),null!==n||null!==a||null!==l){var s=e.displayName||e.name,c="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+s+" uses "+c+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==a?"\n "+a:"")+(null!==l?"\n "+l:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=o,t.componentWillReceiveProps=r),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=i;var u=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var o=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;u.call(this,e,t,o)}}return e}n.r(t),n.d(t,{polyfill:()=>a}),o.__suppressDeprecationWarning=!0,r.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0},1720:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bodyOpenClassName=t.portalClassName=void 0;var o=Object.assign||function(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t0&&0==(g-=1)&&u.show(t),n.props.shouldFocusAfterRender&&(n.props.shouldReturnFocusAfterClose?(s.returnFocus(n.props.preventScroll),s.teardownScopedFocus()):s.popWithoutFocus()),n.props.onAfterClose&&n.props.onAfterClose(),h.default.deregister(n)},n.open=function(){n.beforeOpen(),n.state.afterOpen&&n.state.beforeClose?(clearTimeout(n.closeTimer),n.setState({beforeClose:!1})):(n.props.shouldFocusAfterRender&&(s.setupScopedFocus(n.node),s.markForFocusLater()),n.setState({isOpen:!0},(function(){n.openAnimationFrame=requestAnimationFrame((function(){n.setState({afterOpen:!0}),n.props.isOpen&&n.props.onAfterOpen&&n.props.onAfterOpen({overlayEl:n.overlay,contentEl:n.content})}))})))},n.close=function(){n.props.closeTimeoutMS>0?n.closeWithTimeout():n.closeWithoutTimeout()},n.focusContent=function(){return n.content&&!n.contentHasFocus()&&n.content.focus({preventScroll:!0})},n.closeWithTimeout=function(){var e=Date.now()+n.props.closeTimeoutMS;n.setState({beforeClose:!0,closesAt:e},(function(){n.closeTimer=setTimeout(n.closeWithoutTimeout,n.state.closesAt-Date.now())}))},n.closeWithoutTimeout=function(){n.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},n.afterClose)},n.handleKeyDown=function(e){(function(e){return"Tab"===e.code||9===e.keyCode})(e)&&(0,c.default)(n.content,e),n.props.shouldCloseOnEsc&&function(e){return"Escape"===e.code||27===e.keyCode}(e)&&(e.stopPropagation(),n.requestClose(e))},n.handleOverlayOnClick=function(e){null===n.shouldClose&&(n.shouldClose=!0),n.shouldClose&&n.props.shouldCloseOnOverlayClick&&(n.ownerHandlesClose()?n.requestClose(e):n.focusContent()),n.shouldClose=null},n.handleContentOnMouseUp=function(){n.shouldClose=!1},n.handleOverlayOnMouseDown=function(e){n.props.shouldCloseOnOverlayClick||e.target!=n.overlay||e.preventDefault()},n.handleContentOnClick=function(){n.shouldClose=!1},n.handleContentOnMouseDown=function(){n.shouldClose=!1},n.requestClose=function(e){return n.ownerHandlesClose()&&n.props.onRequestClose(e)},n.ownerHandlesClose=function(){return n.props.onRequestClose},n.shouldBeClosed=function(){return!n.state.isOpen&&!n.state.beforeClose},n.contentHasFocus=function(){return document.activeElement===n.content||n.content.contains(document.activeElement)},n.buildClassName=function(e,t){var o="object"===(void 0===t?"undefined":r(t))?t:{base:v[e],afterOpen:v[e]+"--after-open",beforeClose:v[e]+"--before-close"},i=o.base;return n.state.afterOpen&&(i=i+" "+o.afterOpen),n.state.beforeClose&&(i=i+" "+o.beforeClose),"string"==typeof t&&t?i+" "+t:i},n.attributesFromObject=function(e,t){return Object.keys(t).reduce((function(n,o){return n[e+"-"+o]=t[o],n}),{})},n.state={afterOpen:!1,beforeClose:!1},n.shouldClose=null,n.moveFromContentToOverlay=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(e,t){this.props.isOpen&&!e.isOpen?this.open():!this.props.isOpen&&e.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!t.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var e=this.props,t=e.appElement,n=e.ariaHideApp,o=e.htmlOpenClassName,r=e.bodyOpenClassName,i=e.parentSelector,a=i&&i().ownerDocument||document;r&&d.add(a.body,r),o&&d.add(a.getElementsByTagName("html")[0],o),n&&(g+=1,u.hide(t)),h.default.register(this)}},{key:"render",value:function(){var e=this.props,t=e.id,n=e.className,r=e.overlayClassName,i=e.defaultStyles,a=e.children,l=n?{}:i.content,s=r?{}:i.overlay;if(this.shouldBeClosed())return null;var c={ref:this.setOverlayRef,className:this.buildClassName("overlay",r),style:o({},s,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},u=o({id:t,ref:this.setContentRef,style:o({},l,this.props.style.content),className:this.buildClassName("content",n),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",o({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),d=this.props.contentElement(u,a);return this.props.overlayElement(c,d)}}]),t}(a.Component);b.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},b.propTypes={isOpen:l.default.bool.isRequired,defaultStyles:l.default.shape({content:l.default.object,overlay:l.default.object}),style:l.default.shape({content:l.default.object,overlay:l.default.object}),className:l.default.oneOfType([l.default.string,l.default.object]),overlayClassName:l.default.oneOfType([l.default.string,l.default.object]),parentSelector:l.default.func,bodyOpenClassName:l.default.string,htmlOpenClassName:l.default.string,ariaHideApp:l.default.bool,appElement:l.default.oneOfType([l.default.instanceOf(f.default),l.default.instanceOf(p.SafeHTMLCollection),l.default.instanceOf(p.SafeNodeList),l.default.arrayOf(l.default.instanceOf(f.default))]),onAfterOpen:l.default.func,onAfterClose:l.default.func,onRequestClose:l.default.func,closeTimeoutMS:l.default.number,shouldFocusAfterRender:l.default.bool,shouldCloseOnOverlayClick:l.default.bool,shouldReturnFocusAfterClose:l.default.bool,preventScroll:l.default.bool,role:l.default.string,contentLabel:l.default.string,aria:l.default.object,data:l.default.object,children:l.default.node,shouldCloseOnEsc:l.default.bool,overlayRef:l.default.func,contentRef:l.default.func,id:l.default.string,overlayElement:l.default.func,contentElement:l.default.func,testId:l.default.string},t.default=b,e.exports=t.default},6462:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){a&&(a.removeAttribute?a.removeAttribute("aria-hidden"):null!=a.length?a.forEach((function(e){return e.removeAttribute("aria-hidden")})):document.querySelectorAll(a).forEach((function(e){return e.removeAttribute("aria-hidden")}))),a=null},t.log=function(){},t.assertNodeList=l,t.setElement=function(e){var t=e;if("string"==typeof t&&i.canUseDOM){var n=document.querySelectorAll(t);l(n,t),t=n}return a=t||a},t.validateElement=s,t.hide=function(e){var t=!0,n=!1,o=void 0;try{for(var r,i=s(e)[Symbol.iterator]();!(t=(r=i.next()).done);t=!0)r.value.setAttribute("aria-hidden","true")}catch(e){n=!0,o=e}finally{try{!t&&i.return&&i.return()}finally{if(n)throw o}}},t.show=function(e){var t=!0,n=!1,o=void 0;try{for(var r,i=s(e)[Symbol.iterator]();!(t=(r=i.next()).done);t=!0)r.value.removeAttribute("aria-hidden")}catch(e){n=!0,o=e}finally{try{!t&&i.return&&i.return()}finally{if(n)throw o}}},t.documentNotReadyOrSSRTesting=function(){a=null};var o,r=(o=n(9771))&&o.__esModule?o:{default:o},i=n(834),a=null;function l(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function s(e){var t=e||a;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,r.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}},7727:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){for(var e=[i,a],t=0;t0?(document.body.firstChild!==i&&document.body.insertBefore(i,document.body.firstChild),document.body.lastChild!==a&&document.body.appendChild(a)):(i.parentElement&&i.parentElement.removeChild(i),a.parentElement&&a.parentElement.removeChild(a))}))},4838:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){var e=document.getElementsByTagName("html")[0];for(var t in n)r(e,n[t]);var i=document.body;for(var a in o)r(i,o[a]);n={},o={}},t.log=function(){};var n={},o={};function r(e,t){e.classList.remove(t)}t.add=function(e,t){return r=e.classList,i="html"==e.nodeName.toLowerCase()?n:o,void t.split(" ").forEach((function(e){!function(e,t){e[t]||(e[t]=0),e[t]+=1}(i,e),r.add(e)}));var r,i},t.remove=function(e,t){return r=e.classList,i="html"==e.nodeName.toLowerCase()?n:o,void t.split(" ").forEach((function(e){!function(e,t){e[t]&&(e[t]-=1)}(i,e),0===i[e]&&r.remove(e)}));var r,i}},7791:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){i=[]},t.log=function(){},t.handleBlur=s,t.handleFocus=c,t.markForFocusLater=function(){i.push(document.activeElement)},t.returnFocus=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=null;try{return void(0!==i.length&&(t=i.pop()).focus({preventScroll:e}))}catch(e){console.warn(["You tried to return focus to",t,"but it is not in the DOM anymore"].join(" "))}},t.popWithoutFocus=function(){i.length>0&&i.pop()},t.setupScopedFocus=function(e){a=e,window.addEventListener?(window.addEventListener("blur",s,!1),document.addEventListener("focus",c,!0)):(window.attachEvent("onBlur",s),document.attachEvent("onFocus",c))},t.teardownScopedFocus=function(){a=null,window.addEventListener?(window.removeEventListener("blur",s),document.removeEventListener("focus",c)):(window.detachEvent("onBlur",s),document.detachEvent("onFocus",c))};var o,r=(o=n(2411))&&o.__esModule?o:{default:o},i=[],a=null,l=!1;function s(){l=!0}function c(){if(l){if(l=!1,!a)return;setTimeout((function(){a.contains(document.activeElement)||((0,r.default)(a)[0]||a).focus()}),0)}}},9628:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.log=function(){console.log("portalOpenInstances ----------"),console.log(o.openInstances.length),o.openInstances.forEach((function(e){return console.log(e)})),console.log("end portalOpenInstances ----------")},t.resetState=function(){o=new n};var n=function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.register=function(e){-1===t.openInstances.indexOf(e)&&(t.openInstances.push(e),t.emit("register"))},this.deregister=function(e){var n=t.openInstances.indexOf(e);-1!==n&&(t.openInstances.splice(n,1),t.emit("deregister"))},this.subscribe=function(e){t.subscribers.push(e)},this.emit=function(e){t.subscribers.forEach((function(n){return n(e,t.openInstances.slice())}))},this.openInstances=[],this.subscribers=[]},o=new n;t.default=o},834:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canUseDOM=t.SafeNodeList=t.SafeHTMLCollection=void 0;var o,r=((o=n(411))&&o.__esModule?o:{default:o}).default,i=r.canUseDOM?window.HTMLElement:{};t.SafeHTMLCollection=r.canUseDOM?window.HTMLCollection:{},t.SafeNodeList=r.canUseDOM?window.NodeList:{},t.canUseDOM=r.canUseDOM,t.default=i},7067:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,r.default)(e);if(n.length){var o=void 0,a=t.shiftKey,l=n[0],s=n[n.length-1],c=i();if(e===c){if(!a)return;o=s}if(s!==c||a||(o=l),l===c&&a&&(o=s),o)return t.preventDefault(),void o.focus();var u=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null!=u&&"Chrome"!=u[1]&&null==/\biPod\b|\biPad\b/g.exec(navigator.userAgent)){var d=n.indexOf(c);if(d>-1&&(d+=a?-1:1),void 0===(o=n[d]))return t.preventDefault(),void(o=a?s:l).focus();t.preventDefault(),o.focus()}}else t.preventDefault()};var o,r=(o=n(2411))&&o.__esModule?o:{default:o};function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return e.activeElement.shadowRoot?i(e.activeElement.shadowRoot):e.activeElement}e.exports=t.default},2411:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){return[].slice.call(t.querySelectorAll("*"),0).reduce((function(t,n){return t.concat(n.shadowRoot?e(n.shadowRoot):[n])}),[]).filter(a)};var n="none",o="contents",r=/input|select|textarea|button|object|iframe/;function i(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;try{var r=window.getComputedStyle(e),i=r.getPropertyValue("display");return t?i!==o&&function(e,t){return"visible"!==t.getPropertyValue("overflow")||e.scrollWidth<=0&&e.scrollHeight<=0}(e,r):i===n}catch(e){return console.warn("Failed to inspect element style"),!1}}function a(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var n=isNaN(t);return(n||t>=0)&&function(e,t){var n=e.nodeName.toLowerCase();return(r.test(n)&&!e.disabled||"a"===n&&e.href||t)&&function(e){for(var t=e,n=e.getRootNode&&e.getRootNode();t&&t!==document.body;){if(n&&t===n&&(t=n.host.parentNode),i(t))return!1;t=t.parentNode}return!0}(e)}(e,!n)}e.exports=t.default},312:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r=(o=n(1720))&&o.__esModule?o:{default:o};t.default=r.default,e.exports=t.default},4210:(e,t,n)=>{"use strict";function o(e,t,n,o,r,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=o,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}const r={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach((e=>{r[e]=new o(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((([e,t])=>{r[e]=new o(e,1,!1,t,null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((e=>{r[e]=new o(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((e=>{r[e]=new o(e,2,!1,e,null,!1,!1)})),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach((e=>{r[e]=new o(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((e=>{r[e]=new o(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((e=>{r[e]=new o(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((e=>{r[e]=new o(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((e=>{r[e]=new o(e,5,!1,e.toLowerCase(),null,!1,!1)}));const i=/[\-\:]([a-z])/g,a=e=>e[1].toUpperCase();["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach((e=>{const t=e.replace(i,a);r[t]=new o(t,1,!1,e,null,!1,!1)})),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach((e=>{const t=e.replace(i,a);r[t]=new o(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((e=>{const t=e.replace(i,a);r[t]=new o(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((e=>{r[e]=new o(e,1,!1,e.toLowerCase(),null,!1,!1)})),r.xlinkHref=new o("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((e=>{r[e]=new o(e,1,!1,e.toLowerCase(),null,!0,!0)}));const{CAMELCASE:l,SAME:s,possibleStandardNames:c}=n(6811),u=RegExp.prototype.test.bind(new RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")),d=Object.keys(c).reduce(((e,t)=>{const n=c[t];return n===s?e[t]=t:n===l?e[t.toLowerCase()]=t:e[t]=n,e}),{});t.BOOLEAN=3,t.BOOLEANISH_STRING=2,t.NUMERIC=5,t.OVERLOADED_BOOLEAN=4,t.POSITIVE_NUMERIC=6,t.RESERVED=0,t.STRING=1,t.getPropertyInfo=function(e){return r.hasOwnProperty(e)?r[e]:null},t.isCustomAttribute=u,t.possibleStandardNames=d},6811:(e,t)=>{t.SAME=0,t.CAMELCASE=1,t.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}},5229:function(e,t,n){"use strict";var o=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n(1133)),r=n(8917);function i(e,t){var n={};return e&&"string"==typeof e?((0,o.default)(e,(function(e,o){e&&o&&(n[(0,r.camelCase)(e,t)]=o)})),n):n}i.default=i,e.exports=i},8917:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=void 0;var n=/^--[a-zA-Z0-9-]+$/,o=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,l=function(e,t){return t.toUpperCase()},s=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||r.test(e)||n.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(a,s):e.replace(i,s)).replace(o,l))}},1133:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(9788));t.default=function(e,t){var n=null;if(!e||"string"!=typeof e)return n;var o=(0,r.default)(e),i="function"==typeof t;return o.forEach((function(e){if("declaration"===e.type){var o=e.property,r=e.value;i?t(o,r,e):r&&((n=n||{})[o]=r)}})),n}},9771:e=>{"use strict";e.exports=function(){}},1609:e=>{"use strict";e.exports=window.React},5795:e=>{"use strict";e.exports=window.ReactDOM},6942:(e,t)=>{var n;!function(){"use strict";var o={}.hasOwnProperty;function r(){for(var e="",t=0;t{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e=n(1609);const t=window.wp.domReady;var o=n.n(t);const r=window.wp.element;var i=n(312),a=n.n(i),l=n(442);const s=l.default||l,c=Math.min,u=Math.max,d=Math.round,p=Math.floor,f=e=>({x:e,y:e}),h={left:"right",right:"left",bottom:"top",top:"bottom"},m={start:"end",end:"start"};function y(e,t,n){return u(e,c(t,n))}function v(e,t){return"function"==typeof e?e(t):e}function g(e){return e.split("-")[0]}function b(e){return e.split("-")[1]}function w(e){return"x"===e?"y":"x"}function _(e){return"y"===e?"height":"width"}function E(e){return["top","bottom"].includes(g(e))?"y":"x"}function x(e){return w(E(e))}function S(e){return e.replace(/start|end/g,(e=>m[e]))}function O(e){return e.replace(/left|right|bottom|top/g,(e=>h[e]))}function C(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function T(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function k(e,t,n){let{reference:o,floating:r}=e;const i=E(t),a=x(t),l=_(a),s=g(t),c="y"===i,u=o.x+o.width/2-r.width/2,d=o.y+o.height/2-r.height/2,p=o[l]/2-r[l]/2;let f;switch(s){case"top":f={x:u,y:o.y-r.height};break;case"bottom":f={x:u,y:o.y+o.height};break;case"right":f={x:o.x+o.width,y:d};break;case"left":f={x:o.x-r.width,y:d};break;default:f={x:o.x,y:o.y}}switch(b(t)){case"start":f[a]-=p*(n&&c?-1:1);break;case"end":f[a]+=p*(n&&c?-1:1)}return f}async function A(e,t){var n;void 0===t&&(t={});const{x:o,y:r,platform:i,rects:a,elements:l,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:f=0}=v(t,e),h=C(f),m=l[p?"floating"===d?"reference":"floating":d],y=T(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(l.floating)),boundary:c,rootBoundary:u,strategy:s})),g="floating"===d?{x:o,y:r,width:a.floating.width,height:a.floating.height}:a.reference,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(l.floating)),w=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},_=T(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:g,offsetParent:b,strategy:s}):g);return{top:(y.top-_.top+h.top)/w.y,bottom:(_.bottom-y.bottom+h.bottom)/w.y,left:(y.left-_.left+h.left)/w.x,right:(_.right-y.right+h.right)/w.x}}function R(e){return M(e)?(e.nodeName||"").toLowerCase():"#document"}function N(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function P(e){var t;return null==(t=(M(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function M(e){return e instanceof Node||e instanceof N(e).Node}function D(e){return e instanceof Element||e instanceof N(e).Element}function L(e){return e instanceof HTMLElement||e instanceof N(e).HTMLElement}function I(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof N(e).ShadowRoot)}function j(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=W(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(r)}function F(e){return["table","td","th"].includes(R(e))}function H(e){const t=B(),n=W(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function B(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function U(e){return["html","body","#document"].includes(R(e))}function W(e){return N(e).getComputedStyle(e)}function z(e){return D(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function V(e){if("html"===R(e))return e;const t=e.assignedSlot||e.parentNode||I(e)&&e.host||P(e);return I(t)?t.host:t}function q(e){const t=V(e);return U(t)?e.ownerDocument?e.ownerDocument.body:e.body:L(t)&&j(t)?t:q(t)}function $(e,t,n){var o;void 0===t&&(t=[]),void 0===n&&(n=!0);const r=q(e),i=r===(null==(o=e.ownerDocument)?void 0:o.body),a=N(r);return i?t.concat(a,a.visualViewport||[],j(r)?r:[],a.frameElement&&n?$(a.frameElement):[]):t.concat(r,$(r,[],n))}function G(e){const t=W(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=L(e),i=r?e.offsetWidth:n,a=r?e.offsetHeight:o,l=d(n)!==i||d(o)!==a;return l&&(n=i,o=a),{width:n,height:o,$:l}}function X(e){return D(e)?e:e.contextElement}function Y(e){const t=X(e);if(!L(t))return f(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=G(t);let a=(i?d(n.width):n.width)/o,l=(i?d(n.height):n.height)/r;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}const K=f(0);function Z(e){const t=N(e);return B()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:K}function J(e,t,n,o){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=e.getBoundingClientRect(),i=X(e);let a=f(1);t&&(o?D(o)&&(a=Y(o)):a=Y(e));const l=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==N(e))&&t}(i,n,o)?Z(i):f(0);let s=(r.left+l.x)/a.x,c=(r.top+l.y)/a.y,u=r.width/a.x,d=r.height/a.y;if(i){const e=N(i),t=o&&D(o)?N(o):o;let n=e,r=n.frameElement;for(;r&&o&&t!==n;){const e=Y(r),t=r.getBoundingClientRect(),o=W(r),i=t.left+(r.clientLeft+parseFloat(o.paddingLeft))*e.x,a=t.top+(r.clientTop+parseFloat(o.paddingTop))*e.y;s*=e.x,c*=e.y,u*=e.x,d*=e.y,s+=i,c+=a,n=N(r),r=n.frameElement}}return T({width:u,height:d,x:s,y:c})}const Q=[":popover-open",":modal"];function ee(e){return Q.some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function te(e){return J(P(e)).left+z(e).scrollLeft}function ne(e,t,n){let o;if("viewport"===t)o=function(e,t){const n=N(e),o=P(e),r=n.visualViewport;let i=o.clientWidth,a=o.clientHeight,l=0,s=0;if(r){i=r.width,a=r.height;const e=B();(!e||e&&"fixed"===t)&&(l=r.offsetLeft,s=r.offsetTop)}return{width:i,height:a,x:l,y:s}}(e,n);else if("document"===t)o=function(e){const t=P(e),n=z(e),o=e.ownerDocument.body,r=u(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),i=u(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let a=-n.scrollLeft+te(e);const l=-n.scrollTop;return"rtl"===W(o).direction&&(a+=u(t.clientWidth,o.clientWidth)-r),{width:r,height:i,x:a,y:l}}(P(e));else if(D(t))o=function(e,t){const n=J(e,!0,"fixed"===t),o=n.top+e.clientTop,r=n.left+e.clientLeft,i=L(e)?Y(e):f(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:r*i.x,y:o*i.y}}(t,n);else{const n=Z(e);o={...t,x:t.x-n.x,y:t.y-n.y}}return T(o)}function oe(e,t){const n=V(e);return!(n===t||!D(n)||U(n))&&("fixed"===W(n).position||oe(n,t))}function re(e,t,n){const o=L(t),r=P(t),i="fixed"===n,a=J(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const s=f(0);if(o||!o&&!i)if(("body"!==R(t)||j(r))&&(l=z(t)),o){const e=J(t,!0,i,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else r&&(s.x=te(r));return{x:a.left+l.scrollLeft-s.x,y:a.top+l.scrollTop-s.y,width:a.width,height:a.height}}function ie(e){return"static"===W(e).position}function ae(e,t){return L(e)&&"fixed"!==W(e).position?t?t(e):e.offsetParent:null}function le(e,t){const n=N(e);if(ee(e))return n;if(!L(e)){let t=V(e);for(;t&&!U(t);){if(D(t)&&!ie(t))return t;t=V(t)}return n}let o=ae(e,t);for(;o&&F(o)&&ie(o);)o=ae(o,t);return o&&U(o)&&ie(o)&&!H(o)?n:o||function(e){let t=V(e);for(;L(t)&&!U(t);){if(H(t))return t;t=V(t)}return null}(e)||n}const se={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const i="fixed"===r,a=P(o),l=!!t&&ee(t.floating);if(o===a||l&&i)return n;let s={scrollLeft:0,scrollTop:0},c=f(1);const u=f(0),d=L(o);if((d||!d&&!i)&&(("body"!==R(o)||j(a))&&(s=z(o)),L(o))){const e=J(o);c=Y(o),u.x=e.x+o.clientLeft,u.y=e.y+o.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-s.scrollLeft*c.x+u.x,y:n.y*c.y-s.scrollTop*c.y+u.y}},getDocumentElement:P,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const i=[..."clippingAncestors"===n?ee(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let o=$(e,[],!1).filter((e=>D(e)&&"body"!==R(e))),r=null;const i="fixed"===W(e).position;let a=i?V(e):e;for(;D(a)&&!U(a);){const t=W(a),n=H(a);n||"fixed"!==t.position||(r=null),(i?!n&&!r:!n&&"static"===t.position&&r&&["absolute","fixed"].includes(r.position)||j(a)&&!n&&oe(e,a))?o=o.filter((e=>e!==a)):r=t,a=V(a)}return t.set(e,o),o}(t,this._c):[].concat(n),o],a=i[0],l=i.reduce(((e,n)=>{const o=ne(t,n,r);return e.top=u(o.top,e.top),e.right=c(o.right,e.right),e.bottom=c(o.bottom,e.bottom),e.left=u(o.left,e.left),e}),ne(t,a,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:le,getElementRects:async function(e){const t=this.getOffsetParent||le,n=this.getDimensions,o=await n(e.floating);return{reference:re(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=G(e);return{width:t,height:n}},getScale:Y,isElement:D,isRTL:function(e){return"rtl"===W(e).direction}};const ce=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:i,placement:a,middlewareData:l}=t,s=await async function(e,t){const{placement:n,platform:o,elements:r}=e,i=await(null==o.isRTL?void 0:o.isRTL(r.floating)),a=g(n),l=b(n),s="y"===E(n),c=["left","top"].includes(a)?-1:1,u=i&&s?-1:1,d=v(t,e);let{mainAxis:p,crossAxis:f,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return l&&"number"==typeof h&&(f="end"===l?-1*h:h),s?{x:f*u,y:p*c}:{x:p*c,y:f*u}}(t,e);return a===(null==(n=l.offset)?void 0:n.placement)&&null!=(o=l.arrow)&&o.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},ue=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=v(e,t),c={x:n,y:o},u=await A(t,s),d=E(g(r)),p=w(d);let f=c[p],h=c[d];if(i){const e="y"===p?"bottom":"right";f=y(f+u["y"===p?"top":"left"],f,f-u[e])}if(a){const e="y"===d?"bottom":"right";h=y(h+u["y"===d?"top":"left"],h,h-u[e])}const m=l.fn({...t,[p]:f,[d]:h});return{...m,data:{x:m.x-n,y:m.y-o}}}}},de=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:i,rects:a,initialPlacement:l,platform:s,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...y}=v(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const w=g(r),E=g(l)===l,C=await(null==s.isRTL?void 0:s.isRTL(c.floating)),T=p||(E||!m?[O(l)]:function(e){const t=O(e);return[S(e),t,S(t)]}(l));p||"none"===h||T.push(...function(e,t,n,o){const r=b(e);let i=function(e,t,n){const o=["left","right"],r=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?r:o:t?o:r;case"left":case"right":return t?i:a;default:return[]}}(g(e),"start"===n,o);return r&&(i=i.map((e=>e+"-"+r)),t&&(i=i.concat(i.map(S)))),i}(l,m,h,C));const k=[l,...T],R=await A(t,y),N=[];let P=(null==(o=i.flip)?void 0:o.overflows)||[];if(u&&N.push(R[w]),d){const e=function(e,t,n){void 0===n&&(n=!1);const o=b(e),r=x(e),i=_(r);let a="x"===r?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=O(a)),[a,O(a)]}(r,a,C);N.push(R[e[0]],R[e[1]])}if(P=[...P,{placement:r,overflows:N}],!N.every((e=>e<=0))){var M,D;const e=((null==(M=i.flip)?void 0:M.index)||0)+1,t=k[e];if(t)return{data:{index:e,overflows:P},reset:{placement:t}};let n=null==(D=P.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:D.placement;if(!n)switch(f){case"bestFit":{var L;const e=null==(L=P.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:L[0];e&&(n=e);break}case"initialPlacement":n=l}if(r!==n)return{reset:{placement:n}}}return{}}}},pe=(e,t,n)=>{const o=new Map,r={platform:se,...n},i={...r.platform,_c:o};return(async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:a}=n,l=i.filter(Boolean),s=await(null==a.isRTL?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:d}=k(c,o,s),p=o,f={},h=0;for(let n=0;n{if(!e)return{tooltipStyles:{},tooltipArrowStyles:{},place:o};if(null===t)return{tooltipStyles:{},tooltipArrowStyles:{},place:o};const s=a;return n?(s.push({name:"arrow",options:u={element:n,padding:5},async fn(e){const{x:t,y:n,placement:o,rects:r,platform:i,elements:a,middlewareData:l}=e,{element:s,padding:d=0}=v(u,e)||{};if(null==s)return{};const p=C(d),f={x:t,y:n},h=x(o),m=_(h),g=await i.getDimensions(s),w="y"===h,E=w?"top":"left",S=w?"bottom":"right",O=w?"clientHeight":"clientWidth",T=r.reference[m]+r.reference[h]-f[h]-r.floating[m],k=f[h]-r.reference[h],A=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s));let R=A?A[O]:0;R&&await(null==i.isElement?void 0:i.isElement(A))||(R=a.floating[O]||r.floating[m]);const N=T/2-k/2,P=R/2-g[m]/2-1,M=c(p[E],P),D=c(p[S],P),L=M,I=R-g[m]-D,j=R/2-g[m]/2+N,F=y(L,j,I),H=!l.arrow&&null!=b(o)&&j!==F&&r.reference[m]/2-(j{var r,i;const a={left:`${e}px`,top:`${t}px`,border:l},{x:s,y:c}=null!==(r=o.arrow)&&void 0!==r?r:{x:0,y:0},u=null!==(i={top:"bottom",right:"left",bottom:"top",left:"right"}[n.split("-")[0]])&&void 0!==i?i:"bottom",d=l&&{borderBottom:l,borderRight:l};let p=0;if(l){const e=`${l}`.match(/(\d+)px/);p=(null==e?void 0:e[1])?Number(e[1]):1}return{tooltipStyles:a,tooltipArrowStyles:{left:null!=s?`${s}px`:"",top:null!=c?`${c}px`:"",right:"",bottom:"",...d,[u]:`-${4+p}px`},place:n}}))):pe(e,t,{placement:"bottom",strategy:i,middleware:s}).then((({x:e,y:t,placement:n})=>({tooltipStyles:{left:`${e}px`,top:`${t}px`},tooltipArrowStyles:{},place:n})));var u},ve=(e,t)=>!("CSS"in window&&"supports"in window.CSS)||window.CSS.supports(e,t),ge=(e,t,n)=>{let o=null;const r=function(...r){const i=()=>{o=null,n||e.apply(this,r)};n&&!o&&(e.apply(this,r),o=setTimeout(i,t)),n||(o&&clearTimeout(o),o=setTimeout(i,t))};return r.cancel=()=>{o&&(clearTimeout(o),o=null)},r},be=e=>null!==e&&!Array.isArray(e)&&"object"==typeof e,we=(e,t)=>{if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&e.every(((e,n)=>we(e,t[n])));if(Array.isArray(e)!==Array.isArray(t))return!1;if(!be(e)||!be(t))return e===t;const n=Object.keys(e),o=Object.keys(t);return n.length===o.length&&n.every((n=>we(e[n],t[n])))},_e=e=>{if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;const t=getComputedStyle(e);return["overflow","overflow-x","overflow-y"].some((e=>{const n=t.getPropertyValue(e);return"auto"===n||"scroll"===n}))},Ee=e=>{if(!e)return null;let t=e.parentElement;for(;t;){if(_e(t))return t;t=t.parentElement}return document.scrollingElement||document.documentElement},xe="undefined"!=typeof window?e.useLayoutEffect:e.useEffect,Se={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},Oe=(0,e.createContext)({getTooltipData:()=>Se});function Ce(t="DEFAULT_TOOLTIP_ID"){return(0,e.useContext)(Oe).getTooltipData(t)}var Te={tooltip:"core-styles-module_tooltip__3vRRp",fixed:"core-styles-module_fixed__pcSol",arrow:"core-styles-module_arrow__cvMwQ",noArrow:"core-styles-module_noArrow__xock6",clickable:"core-styles-module_clickable__ZuTTB",show:"core-styles-module_show__Nt9eE",closing:"core-styles-module_closing__sGnxF"},ke={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const Ae=({forwardRef:t,id:n,className:o,classNameArrow:r,variant:i="dark",anchorId:a,anchorSelect:l,place:s="top",offset:d=10,events:f=["hover"],openOnClick:h=!1,positionStrategy:m="absolute",middlewares:y,wrapper:v,delayShow:g=0,delayHide:b=0,float:w=!1,hidden:_=!1,noArrow:E=!1,clickable:x=!1,closeOnEsc:S=!1,closeOnScroll:O=!1,closeOnResize:C=!1,openEvents:T,closeEvents:k,globalCloseEvents:A,imperativeModeOnly:R,style:N,position:M,afterShow:D,afterHide:L,content:I,contentWrapperRef:j,isOpen:F,defaultIsOpen:H=!1,setIsOpen:B,activeAnchor:U,setActiveAnchor:W,border:z,opacity:V,arrowColor:q,role:G="tooltip"})=>{var Y;const K=(0,e.useRef)(null),Z=(0,e.useRef)(null),Q=(0,e.useRef)(null),ee=(0,e.useRef)(null),te=(0,e.useRef)(null),[ne,oe]=(0,e.useState)({tooltipStyles:{},tooltipArrowStyles:{},place:s}),[re,ie]=(0,e.useState)(!1),[ae,le]=(0,e.useState)(!1),[se,ce]=(0,e.useState)(null),ue=(0,e.useRef)(!1),de=(0,e.useRef)(null),{anchorRefs:pe,setActiveAnchor:he}=Ce(n),me=(0,e.useRef)(!1),[ve,be]=(0,e.useState)([]),_e=(0,e.useRef)(!1),Se=h||f.includes("click"),Oe=Se||(null==T?void 0:T.click)||(null==T?void 0:T.dblclick)||(null==T?void 0:T.mousedown),Ae=T?{...T}:{mouseenter:!0,focus:!0,click:!1,dblclick:!1,mousedown:!1};!T&&Se&&Object.assign(Ae,{mouseenter:!1,focus:!1,click:!0});const Re=k?{...k}:{mouseleave:!0,blur:!0,click:!1,dblclick:!1,mouseup:!1};!k&&Se&&Object.assign(Re,{mouseleave:!1,blur:!1});const Ne=A?{...A}:{escape:S||!1,scroll:O||!1,resize:C||!1,clickOutsideAnchor:Oe||!1};R&&(Object.assign(Ae,{mouseenter:!1,focus:!1,click:!1,dblclick:!1,mousedown:!1}),Object.assign(Re,{mouseleave:!1,blur:!1,click:!1,dblclick:!1,mouseup:!1}),Object.assign(Ne,{escape:!1,scroll:!1,resize:!1,clickOutsideAnchor:!1})),xe((()=>(_e.current=!0,()=>{_e.current=!1})),[]);const Pe=e=>{_e.current&&(e&&le(!0),setTimeout((()=>{_e.current&&(null==B||B(e),void 0===F&&ie(e))}),10))};(0,e.useEffect)((()=>{if(void 0===F)return()=>null;F&&le(!0);const e=setTimeout((()=>{ie(F)}),10);return()=>{clearTimeout(e)}}),[F]),(0,e.useEffect)((()=>{if(re!==ue.current)if(te.current&&clearTimeout(te.current),ue.current=re,re)null==D||D();else{const e=(e=>{const t=getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay").match(/^([\d.]+)(ms|s)$/);if(!t)return 0;const[,n,o]=t;return Number(n)*("ms"===o?1:1e3)})();te.current=setTimeout((()=>{le(!1),ce(null),null==L||L()}),e+25)}}),[re]);const Me=e=>{oe((t=>we(t,e)?t:e))},De=(e=g)=>{Q.current&&clearTimeout(Q.current),ae?Pe(!0):Q.current=setTimeout((()=>{Pe(!0)}),e)},Le=(e=b)=>{ee.current&&clearTimeout(ee.current),ee.current=setTimeout((()=>{me.current||Pe(!1)}),e)},Ie=e=>{var t;if(!e)return;const n=null!==(t=e.currentTarget)&&void 0!==t?t:e.target;if(!(null==n?void 0:n.isConnected))return W(null),void he({current:null});g?De():Pe(!0),W(n),he({current:n}),ee.current&&clearTimeout(ee.current)},je=()=>{x?Le(b||100):b?Le():Pe(!1),Q.current&&clearTimeout(Q.current)},Fe=({x:e,y:t})=>{var n;const o={getBoundingClientRect:()=>({x:e,y:t,width:0,height:0,top:t,left:e,right:e,bottom:t})};ye({place:null!==(n=null==se?void 0:se.place)&&void 0!==n?n:s,offset:d,elementReference:o,tooltipReference:K.current,tooltipArrowReference:Z.current,strategy:m,middlewares:y,border:z}).then((e=>{Me(e)}))},He=e=>{if(!e)return;const t=e,n={x:t.clientX,y:t.clientY};Fe(n),de.current=n},Be=e=>{var t;if(!re)return;const n=e.target;n.isConnected&&((null===(t=K.current)||void 0===t?void 0:t.contains(n))||[document.querySelector(`[id='${a}']`),...ve].some((e=>null==e?void 0:e.contains(n)))||(Pe(!1),Q.current&&clearTimeout(Q.current)))},Ue=ge(Ie,50,!0),We=ge(je,50,!0),ze=e=>{We.cancel(),Ue(e)},Ve=()=>{Ue.cancel(),We()},qe=(0,e.useCallback)((()=>{var e,t;const n=null!==(e=null==se?void 0:se.position)&&void 0!==e?e:M;n?Fe(n):w?de.current&&Fe(de.current):(null==U?void 0:U.isConnected)&&ye({place:null!==(t=null==se?void 0:se.place)&&void 0!==t?t:s,offset:d,elementReference:U,tooltipReference:K.current,tooltipArrowReference:Z.current,strategy:m,middlewares:y,border:z}).then((e=>{_e.current&&Me(e)}))}),[re,U,I,N,s,null==se?void 0:se.place,d,m,M,null==se?void 0:se.position,w]);(0,e.useEffect)((()=>{var e,t;const n=new Set(pe);ve.forEach((e=>{n.add({current:e})}));const o=document.querySelector(`[id='${a}']`);o&&n.add({current:o});const r=()=>{Pe(!1)},i=Ee(U),l=Ee(K.current);Ne.scroll&&(window.addEventListener("scroll",r),null==i||i.addEventListener("scroll",r),null==l||l.addEventListener("scroll",r));let s=null;Ne.resize?window.addEventListener("resize",r):U&&K.current&&(s=function(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:s=!1}=o,d=X(e),f=r||i?[...d?$(d):[],...$(t)]:[];f.forEach((e=>{r&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const h=d&&l?function(e,t){let n,o=null;const r=P(e);function i(){var e;clearTimeout(n),null==(e=o)||e.disconnect(),o=null}return function a(l,s){void 0===l&&(l=!1),void 0===s&&(s=1),i();const{left:d,top:f,width:h,height:m}=e.getBoundingClientRect();if(l||t(),!h||!m)return;const y={rootMargin:-p(f)+"px "+-p(r.clientWidth-(d+h))+"px "+-p(r.clientHeight-(f+m))+"px "+-p(d)+"px",threshold:u(0,c(1,s))||1};let v=!0;function g(e){const t=e[0].intersectionRatio;if(t!==s){if(!v)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),1e3)}v=!1}try{o=new IntersectionObserver(g,{...y,root:r.ownerDocument})}catch(e){o=new IntersectionObserver(g,y)}o.observe(e)}(!0),i}(d,n):null;let m,y=-1,v=null;a&&(v=new ResizeObserver((e=>{let[o]=e;o&&o.target===d&&v&&(v.unobserve(t),cancelAnimationFrame(y),y=requestAnimationFrame((()=>{var e;null==(e=v)||e.observe(t)}))),n()})),d&&!s&&v.observe(d),v.observe(t));let g=s?J(e):null;return s&&function t(){const o=J(e);!g||o.x===g.x&&o.y===g.y&&o.width===g.width&&o.height===g.height||n(),g=o,m=requestAnimationFrame(t)}(),n(),()=>{var e;f.forEach((e=>{r&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==h||h(),null==(e=v)||e.disconnect(),v=null,s&&cancelAnimationFrame(m)}}(U,K.current,qe,{ancestorResize:!0,elementResize:!0,layoutShift:!0}));const d=e=>{"Escape"===e.key&&Pe(!1)};Ne.escape&&window.addEventListener("keydown",d),Ne.clickOutsideAnchor&&window.addEventListener("click",Be);const f=[],h=e=>{re&&(null==e?void 0:e.target)===U||Ie(e)},m=e=>{re&&(null==e?void 0:e.target)===U&&je()},y=["mouseenter","mouseleave","focus","blur"],v=["click","dblclick","mousedown","mouseup"];Object.entries(Ae).forEach((([e,t])=>{t&&(y.includes(e)?f.push({event:e,listener:ze}):v.includes(e)&&f.push({event:e,listener:h}))})),Object.entries(Re).forEach((([e,t])=>{t&&(y.includes(e)?f.push({event:e,listener:Ve}):v.includes(e)&&f.push({event:e,listener:m}))})),w&&f.push({event:"pointermove",listener:He});const g=()=>{me.current=!0},b=()=>{me.current=!1,je()};return x&&!Oe&&(null===(e=K.current)||void 0===e||e.addEventListener("mouseenter",g),null===(t=K.current)||void 0===t||t.addEventListener("mouseleave",b)),f.forEach((({event:e,listener:t})=>{n.forEach((n=>{var o;null===(o=n.current)||void 0===o||o.addEventListener(e,t)}))})),()=>{var e,t;Ne.scroll&&(window.removeEventListener("scroll",r),null==i||i.removeEventListener("scroll",r),null==l||l.removeEventListener("scroll",r)),Ne.resize?window.removeEventListener("resize",r):null==s||s(),Ne.clickOutsideAnchor&&window.removeEventListener("click",Be),Ne.escape&&window.removeEventListener("keydown",d),x&&!Oe&&(null===(e=K.current)||void 0===e||e.removeEventListener("mouseenter",g),null===(t=K.current)||void 0===t||t.removeEventListener("mouseleave",b)),f.forEach((({event:e,listener:t})=>{n.forEach((n=>{var o;null===(o=n.current)||void 0===o||o.removeEventListener(e,t)}))}))}}),[U,qe,ae,pe,ve,T,k,A,Se,g,b]),(0,e.useEffect)((()=>{var e,t;let o=null!==(t=null!==(e=null==se?void 0:se.anchorSelect)&&void 0!==e?e:l)&&void 0!==t?t:"";!o&&n&&(o=`[data-tooltip-id='${n.replace(/'/g,"\\'")}']`);const r=new MutationObserver((e=>{const t=[],r=[];e.forEach((e=>{if("attributes"===e.type&&"data-tooltip-id"===e.attributeName&&(e.target.getAttribute("data-tooltip-id")===n?t.push(e.target):e.oldValue===n&&r.push(e.target)),"childList"===e.type){if(U){const t=[...e.removedNodes].filter((e=>1===e.nodeType));if(o)try{r.push(...t.filter((e=>e.matches(o)))),r.push(...t.flatMap((e=>[...e.querySelectorAll(o)])))}catch(e){}t.some((e=>{var t;return!!(null===(t=null==e?void 0:e.contains)||void 0===t?void 0:t.call(e,U))&&(le(!1),Pe(!1),W(null),Q.current&&clearTimeout(Q.current),ee.current&&clearTimeout(ee.current),!0)}))}if(o)try{const n=[...e.addedNodes].filter((e=>1===e.nodeType));t.push(...n.filter((e=>e.matches(o)))),t.push(...n.flatMap((e=>[...e.querySelectorAll(o)])))}catch(e){}}})),(t.length||r.length)&&be((e=>[...e.filter((e=>!r.includes(e))),...t]))}));return r.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"],attributeOldValue:!0}),()=>{r.disconnect()}}),[n,l,null==se?void 0:se.anchorSelect,U]),(0,e.useEffect)((()=>{qe()}),[qe]),(0,e.useEffect)((()=>{if(!(null==j?void 0:j.current))return()=>null;const e=new ResizeObserver((()=>{setTimeout((()=>qe()))}));return e.observe(j.current),()=>{e.disconnect()}}),[I,null==j?void 0:j.current]),(0,e.useEffect)((()=>{var e;const t=document.querySelector(`[id='${a}']`),n=[...ve,t];U&&n.includes(U)||W(null!==(e=ve[0])&&void 0!==e?e:t)}),[a,ve,U]),(0,e.useEffect)((()=>(H&&Pe(!0),()=>{Q.current&&clearTimeout(Q.current),ee.current&&clearTimeout(ee.current)})),[]),(0,e.useEffect)((()=>{var e;let t=null!==(e=null==se?void 0:se.anchorSelect)&&void 0!==e?e:l;if(!t&&n&&(t=`[data-tooltip-id='${n.replace(/'/g,"\\'")}']`),t)try{const e=Array.from(document.querySelectorAll(t));be(e)}catch(e){be([])}}),[n,l,null==se?void 0:se.anchorSelect]),(0,e.useEffect)((()=>{Q.current&&(clearTimeout(Q.current),De(g))}),[g]);const $e=null!==(Y=null==se?void 0:se.content)&&void 0!==Y?Y:I,Ge=re&&Object.keys(ne.tooltipStyles).length>0;return(0,e.useImperativeHandle)(t,(()=>({open:e=>{if(null==e?void 0:e.anchorSelect)try{document.querySelector(e.anchorSelect)}catch(t){return void console.warn(`[react-tooltip] "${e.anchorSelect}" is not a valid CSS selector`)}ce(null!=e?e:null),(null==e?void 0:e.delay)?De(e.delay):Pe(!0)},close:e=>{(null==e?void 0:e.delay)?Le(e.delay):Pe(!1)},activeAnchor:U,place:ne.place,isOpen:Boolean(ae&&!_&&$e&&Ge)}))),ae&&!_&&$e?e.createElement(v,{id:n,role:G,className:fe("react-tooltip",Te.tooltip,ke.tooltip,ke[i],o,`react-tooltip__place-${ne.place}`,Te[Ge?"show":"closing"],Ge?"react-tooltip__show":"react-tooltip__closing","fixed"===m&&Te.fixed,x&&Te.clickable),onTransitionEnd:e=>{te.current&&clearTimeout(te.current),re||"opacity"!==e.propertyName||(le(!1),ce(null),null==L||L())},style:{...N,...ne.tooltipStyles,opacity:void 0!==V&&Ge?V:void 0},ref:K},$e,e.createElement(v,{className:fe("react-tooltip-arrow",Te.arrow,ke.arrow,r,E&&Te.noArrow),style:{...ne.tooltipArrowStyles,background:q?`linear-gradient(to right bottom, transparent 50%, ${q} 50%)`:void 0},ref:Z})):null},Re=({content:t})=>e.createElement("span",{dangerouslySetInnerHTML:{__html:t}}),Ne=e.forwardRef((({id:t,anchorId:n,anchorSelect:o,content:r,html:i,render:a,className:l,classNameArrow:s,variant:c="dark",place:u="top",offset:d=10,wrapper:p="div",children:f=null,events:h=["hover"],openOnClick:m=!1,positionStrategy:y="absolute",middlewares:v,delayShow:g=0,delayHide:b=0,float:w=!1,hidden:_=!1,noArrow:E=!1,clickable:x=!1,closeOnEsc:S=!1,closeOnScroll:O=!1,closeOnResize:C=!1,openEvents:T,closeEvents:k,globalCloseEvents:A,imperativeModeOnly:R=!1,style:N,position:P,isOpen:M,defaultIsOpen:D=!1,disableStyleInjection:L=!1,border:I,opacity:j,arrowColor:F,setIsOpen:H,afterShow:B,afterHide:U,role:W="tooltip"},z)=>{const[V,q]=(0,e.useState)(r),[$,G]=(0,e.useState)(i),[X,Y]=(0,e.useState)(u),[K,Z]=(0,e.useState)(c),[J,Q]=(0,e.useState)(d),[ee,te]=(0,e.useState)(g),[ne,oe]=(0,e.useState)(b),[re,ie]=(0,e.useState)(w),[ae,le]=(0,e.useState)(_),[se,ce]=(0,e.useState)(p),[ue,de]=(0,e.useState)(h),[pe,he]=(0,e.useState)(y),[me,ye]=(0,e.useState)(null),[ge,be]=(0,e.useState)(null),we=(0,e.useRef)(L),{anchorRefs:_e,activeAnchor:Ee}=Ce(t),xe=e=>null==e?void 0:e.getAttributeNames().reduce(((t,n)=>{var o;return n.startsWith("data-tooltip-")&&(t[n.replace(/^data-tooltip-/,"")]=null!==(o=null==e?void 0:e.getAttribute(n))&&void 0!==o?o:null),t}),{}),Se=e=>{const t={place:e=>{var t;Y(null!==(t=e)&&void 0!==t?t:u)},content:e=>{q(null!=e?e:r)},html:e=>{G(null!=e?e:i)},variant:e=>{var t;Z(null!==(t=e)&&void 0!==t?t:c)},offset:e=>{Q(null===e?d:Number(e))},wrapper:e=>{var t;ce(null!==(t=e)&&void 0!==t?t:p)},events:e=>{const t=null==e?void 0:e.split(" ");de(null!=t?t:h)},"position-strategy":e=>{var t;he(null!==(t=e)&&void 0!==t?t:y)},"delay-show":e=>{te(null===e?g:Number(e))},"delay-hide":e=>{oe(null===e?b:Number(e))},float:e=>{ie(null===e?w:"true"===e)},hidden:e=>{le(null===e?_:"true"===e)},"class-name":e=>{ye(e)}};Object.values(t).forEach((e=>e(null))),Object.entries(e).forEach((([e,n])=>{var o;null===(o=t[e])||void 0===o||o.call(t,n)}))};(0,e.useEffect)((()=>{q(r)}),[r]),(0,e.useEffect)((()=>{G(i)}),[i]),(0,e.useEffect)((()=>{Y(u)}),[u]),(0,e.useEffect)((()=>{Z(c)}),[c]),(0,e.useEffect)((()=>{Q(d)}),[d]),(0,e.useEffect)((()=>{te(g)}),[g]),(0,e.useEffect)((()=>{oe(b)}),[b]),(0,e.useEffect)((()=>{ie(w)}),[w]),(0,e.useEffect)((()=>{le(_)}),[_]),(0,e.useEffect)((()=>{he(y)}),[y]),(0,e.useEffect)((()=>{we.current!==L&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")}),[L]),(0,e.useEffect)((()=>{"undefined"!=typeof window&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:"core"===L,disableBase:L}}))}),[]),(0,e.useEffect)((()=>{var e;const r=new Set(_e);let i=o;if(!i&&t&&(i=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`),i)try{document.querySelectorAll(i).forEach((e=>{r.add({current:e})}))}catch(e){console.warn(`[react-tooltip] "${i}" is not a valid CSS selector`)}const a=document.querySelector(`[id='${n}']`);if(a&&r.add({current:a}),!r.size)return()=>null;const l=null!==(e=null!=ge?ge:a)&&void 0!==e?e:Ee.current,s=new MutationObserver((e=>{e.forEach((e=>{var t;if(!l||"attributes"!==e.type||!(null===(t=e.attributeName)||void 0===t?void 0:t.startsWith("data-tooltip-")))return;const n=xe(l);Se(n)}))})),c={attributes:!0,childList:!1,subtree:!1};if(l){const e=xe(l);Se(e),s.observe(l,c)}return()=>{s.disconnect()}}),[_e,Ee,ge,n,o]),(0,e.useEffect)((()=>{(null==N?void 0:N.border)&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),I&&!ve("border",`${I}`)&&console.warn(`[react-tooltip] "${I}" is not a valid \`border\`.`),(null==N?void 0:N.opacity)&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),j&&!ve("opacity",`${j}`)&&console.warn(`[react-tooltip] "${j}" is not a valid \`opacity\`.`)}),[]);let Oe=f;const Te=(0,e.useRef)(null);if(a){const t=a({content:(null==ge?void 0:ge.getAttribute("data-tooltip-content"))||V||null,activeAnchor:ge});Oe=t?e.createElement("div",{ref:Te,className:"react-tooltip-content-wrapper"},t):null}else V&&(Oe=V);$&&(Oe=e.createElement(Re,{content:$}));const ke={forwardRef:z,id:t,anchorId:n,anchorSelect:o,className:fe(l,me),classNameArrow:s,content:Oe,contentWrapperRef:Te,place:X,variant:K,offset:J,wrapper:se,events:ue,openOnClick:m,positionStrategy:pe,middlewares:v,delayShow:ee,delayHide:ne,float:re,hidden:ae,noArrow:E,clickable:x,closeOnEsc:S,closeOnScroll:O,closeOnResize:C,openEvents:T,closeEvents:k,globalCloseEvents:A,imperativeModeOnly:R,style:N,position:P,isOpen:M,defaultIsOpen:D,border:I,opacity:j,arrowColor:F,setIsOpen:H,afterShow:B,afterHide:U,activeAnchor:ge,setActiveAnchor:e=>be(e),role:W};return e.createElement(Ae,{...ke})}));"undefined"!=typeof window&&window.addEventListener("react-tooltip-inject-styles",(e=>{e.detail.disableCore||me({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in}",type:"core"}),e.detail.disableBase||me({css:"\n.styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:8px;height:8px}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}",type:"base"})}));const Pe=window.wp.i18n,Me=window.wp.components,De=window.wp.apiFetch;var Le=n.n(De);const Ie=({type:t="upcoming",status:n="no_status"})=>{const o={upcoming:{attending:{icon:"dashicons dashicons-yes-alt",text:(0,Pe._x)("Attending","Responded Status","gatherpress")},waiting_list:{icon:"dashicons dashicons-editor-help",text:(0,Pe._x)("Waiting List","Responded Status","gatherpress")},not_attending:{icon:"dashicons dashicons-dismiss",text:(0,Pe._x)("Not Attending","Responded Status","gatherpress")},no_status:{icon:"",text:""}},past:{attending:{icon:"dashicons dashicons-yes-alt",text:(0,Pe._x)("Went","Responded Status","gatherpress")},waiting_list:{icon:"dashicons dashicons-dismiss",text:(0,Pe._x)("Didn't Go","Responded Status","gatherpress")},not_attending:{icon:"dashicons dashicons-dismiss",text:(0,Pe._x)("Didn't Go","Responded Status","gatherpress")},no_status:{icon:"dashicons dashicons-dismiss",text:(0,Pe._x)("Didn't Go","Responded Status","gatherpress")}}};return(0,e.createElement)("div",{className:"gatherpress-status__response"},(0,e.createElement)("span",{className:o[t][n].icon}),(0,e.createElement)("strong",null,o[t][n].text))};function je(e){if("object"==typeof GatherPress)return e.split(".").reduce(((e,t)=>e&&e[t]),GatherPress)}window.wp.data;const Fe=({postId:t,currentUser:n="",type:o,enableAnonymousRsvp:i,enableInitialDecline:l,maxGuestLimit:c})=>{const[u,d]=(0,r.useState)(n.status),[p,f]=(0,r.useState)(Number(n.anonymous)),[h,m]=(0,r.useState)(n.guests),[y,v]=(0,r.useState)("hidden"),[g,b]=(0,r.useState)("false"),[w,_]=(0,r.useState)(!1);if("past"===o)return"";"undefined"==typeof adminpage&&a().setAppElement(".gatherpress-enabled");const E=e=>{e.preventDefault(),_(!1)},x=async(e,n,o,r=0,i=!0)=>{e.preventDefault(),"attending"!==n&&(r=0),Le()({path:je("urls.eventRestApi")+"/rsvp",method:"POST",data:{post_id:t,status:n,guests:r,anonymous:o,_wpnonce:je("misc.nonce")}}).then((t=>{if(t.success){d(t.status),m(t.guests);const n={all:0,attending:0,not_attending:0,waiting_list:0};for(const[e,o]of Object.entries(t.responses))n[e]=o.count;((e,t="")=>{for(const[n,o]of Object.entries(e)){let e=n;t&&(e+="_"+String(t));const r=new CustomEvent(e,{detail:o});dispatchEvent(r)}})({setRsvpStatus:t.status,setRsvpResponse:t.responses,setRsvpCount:n,setRsvpSeeAllLink:n[t.status]>8,setOnlineEventLink:t.online_link},t.event_id),i&&E(e)}}))},S=e=>{switch(e){case"attending":return(0,Pe.__)("You're attending","gatherpress");case"waiting_list":return(0,Pe.__)("You're wait listed","gatherpress");case"not_attending":return(0,Pe.__)("You're not attending","gatherpress")}return(0,Pe.__)("RSVP to this event","gatherpress")};return(0,e.createElement)("div",{className:"gatherpress-rsvp"},(0,e.createElement)(Me.ButtonGroup,{className:"gatherpress-buttons wp-block-buttons"},(0,e.createElement)("div",{className:"gatherpress-buttons__container wp-block-button"},(0,e.createElement)("a",{href:"#",className:"gatherpress-buttons__button wp-block-button__link","aria-expanded":g,tabIndex:"0",onKeyDown:e=>{13===e.keyCode&&(v("hidden"===y?"show":"hidden"),b("false"===g?"true":"false"))},onClick:e=>(e=>{e.preventDefault(),_(!0)})(e)},(e=>{switch(e){case"attending":case"waiting_list":case"not_attending":return(0,Pe.__)("Edit RSVP","gatherpress")}return(0,Pe.__)("RSVP","gatherpress")})(u))),(0,e.createElement)(a(),{isOpen:w,onRequestClose:E,style:{overlay:{zIndex:999999999},content:{top:"50%",left:"50%",right:"auto",bottom:"auto",marginRight:"-50%",transform:"translate(-50%, -50%)"}},contentLabel:(0,Pe.__)("Edit RSVP","gatherpress")},0===n.length&&(0,e.createElement)((()=>(0,e.createElement)("div",{className:"gatherpress-modal gatherpress-modal__rsvp"},(0,e.createElement)("div",{className:"gatherpress-modal__header"},(0,Pe.__)("Login Required","gatherpress")),(0,e.createElement)("div",{className:"gatherpress-modal__content"},(0,e.createElement)("div",{className:"gatherpress-modal__text"},s((0,Pe.sprintf)(/* translators: %s: 'Login' (hyperlinked) */ /* translators: %s: 'Login' (hyperlinked) */ +(0,Pe.__)("You must %s to RSVP to events.","gatherpress"),`\n\t\t\t\t\t\t\t\t\t${(0,Pe._x)("Login","Context: You must ~ to RSVP to events.","gatherpress")}\n\t\t\t\t\t\t\t\t`))),""!==je("urls.registrationUrl")&&(0,e.createElement)("div",{className:"gatherpress-modal__text"},s((0,Pe.sprintf)(/* translators: %s: 'Register' (hyperlinked) */ /* translators: %s: 'Register' (hyperlinked) */ +(0,Pe.__)("%s if you do not have an account.","gatherpress"),`\n\t\t\t\t\t\t\t\t\t\t${(0,Pe._x)("Register","Context: ~ if you do not have an account.","gatherpress")}\n\t\t\t\t\t\t\t\t\t`)))),(0,e.createElement)(Me.ButtonGroup,{className:"gatherpress-buttons wp-block-buttons"},(0,e.createElement)("div",{className:"gatherpress-buttons__container wp-block-button"},(0,e.createElement)("a",{href:"#",onClick:E,className:"gatherpress-buttons__button wp-block-button__link"},(0,Pe.__)("Close","gatherpress")))))),null),0!==n.length&&(0,e.createElement)((({status:t})=>{let n="",o="";return"not_attending"===t||"no_status"===t?(n="attending",o=(0,Pe.__)("Attend","gatherpress")):(n="not_attending",o=(0,Pe._x)("Not Attending","action of not attending","gatherpress")),(0,e.createElement)("div",{className:"gatherpress-modal gatherpress-modal__rsvp"},(0,e.createElement)("div",{className:"gatherpress-modal__header"},S(u)?S(u):(0,e.createElement)(Me.Spinner,null)),(0,e.createElement)("div",{className:"gatherpress-modal__content"},(0,e.createElement)("div",{className:"gatherpress-modal__text"},s((0,Pe.sprintf)(/* translators: %s: button label. */ /* translators: %s: button label. */ +(0,Pe.__)("To set or change your attending status, simply click the %s button below.","gatherpress"),""+o+""))),0{const t=Number(e.target.value);m(t),x(e,u,p,t,!1)},defaultValue:h})),i&&(0,e.createElement)("div",{className:"gatherpress-modal__anonymous"},(0,e.createElement)("input",{id:"gatherpress-anonymous",type:"checkbox",onChange:e=>{const t=Number(e.target.checked);f(t),x(e,u,t,0,!1)},checked:p}),(0,e.createElement)("label",{htmlFor:"gatherpress-anonymous",tabIndex:"0",className:"gatherpress-tooltip","data-tooltip-id":"gatherpress-anonymous-tooltip","data-tooltip-content":(0,Pe.__)("Only admins will see your identity.","gatherpress")},(0,Pe.__)("List me as anonymous.","gatherpress")),(0,e.createElement)(Ne,{id:"gatherpress-anonymous-tooltip"}))),(0,e.createElement)(Me.ButtonGroup,{className:"gatherpress-buttons wp-block-buttons"},(0,e.createElement)("div",{className:"gatherpress-buttons__container wp-block-button is-style-outline"},(0,e.createElement)("a",{href:"#",onClick:e=>x(e,n,p,"not_attending"!==n?h:0,"not_attending"===n),className:"gatherpress-buttons__button wp-block-button__link"},o)),(0,e.createElement)("div",{className:"gatherpress-buttons__container wp-block-button"},(0,e.createElement)("a",{href:"#",onClick:E,className:"gatherpress-buttons__button wp-block-button__link"},(0,Pe.__)("Close","gatherpress")))),l&&"no_status"===u&&1!==p?(0,e.createElement)(Me.ButtonGroup,{className:"gatherpress-buttons wp-block-buttons"},(0,e.createElement)("div",{className:"gatherpress-buttons__container wp-block-button"},(0,e.createElement)("a",{href:"#",onClick:e=>x(e,"not_attending",null),className:"gatherpress-buttons__text-link"},(0,Pe._x)("Not Attending","Responded Status","gatherpress")))):(0,e.createElement)(e.Fragment,null))}),{status:u}))),"no_status"!==u&&(0,e.createElement)("div",{className:"gatherpress-status"},(0,e.createElement)(Ie,{type:o,status:u}),0{const t=document.querySelectorAll('[data-gatherpress_block_name="rsvp"]'),n=!0===je("eventDetails.hasEventPast")?"past":"upcoming";for(let o=0;o array('moment', 'react', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-date', 'wp-element', 'wp-i18n'), 'version' => 'be4e990d06a384882695'); + array('moment', 'react', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-date', 'wp-element', 'wp-i18n'), 'version' => 'ca97c7f43478ea502d02'); diff --git a/build/blocks/venue/index.js b/build/blocks/venue/index.js index abadb12d2..2bd569e7c 100644 --- a/build/blocks/venue/index.js +++ b/build/blocks/venue/index.js @@ -1 +1 @@ -(()=>{var e,t={2041:(e,t,n)=>{"use strict";const r=window.wp.blocks;var o=n(1609);const i=window.wp.i18n,l=window.wp.blockEditor,a=window.wp.components,s=window.wp.data,c=window.wp.element,u=e=>{const t=(0,s.select)("core")?.canUser("create","posts"),n=Boolean((0,s.select)("core/edit-post")),{zoom:r,type:i,className:l}=e;let{location:a,height:c}=e;if(c||(c=300),!t||n||a||(a="660 4th Street #119 San Francisco CA 94107, USA"),!a)return(0,o.createElement)(o.Fragment,null);const u={border:0,height:c,width:"100%"},d="https://maps.google.com/maps?"+new URLSearchParams({q:a,z:r||10,t:i||"m",output:"embed"}).toString();return(0,o.createElement)("iframe",{src:d,style:u,className:l,title:a})},d=Math.min,p=Math.max,f=Math.round,m=Math.floor,h=e=>({x:e,y:e}),v={left:"right",right:"left",bottom:"top",top:"bottom"},y={start:"end",end:"start"};function g(e,t,n){return p(e,d(t,n))}function b(e,t){return"function"==typeof e?e(t):e}function w(e){return e.split("-")[0]}function E(e){return e.split("-")[1]}function x(e){return"x"===e?"y":"x"}function _(e){return"y"===e?"height":"width"}function S(e){return["top","bottom"].includes(w(e))?"y":"x"}function T(e){return x(S(e))}function k(e){return e.replace(/start|end/g,(e=>y[e]))}function A(e){return e.replace(/left|right|bottom|top/g,(e=>v[e]))}function O(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function C(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function N(e,t,n){let{reference:r,floating:o}=e;const i=S(t),l=T(t),a=_(l),s=w(t),c="y"===i,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,p=r[a]/2-o[a]/2;let f;switch(s){case"top":f={x:u,y:r.y-o.height};break;case"bottom":f={x:u,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:d};break;case"left":f={x:r.x-o.width,y:d};break;default:f={x:r.x,y:r.y}}switch(E(t)){case"start":f[l]-=p*(n&&c?-1:1);break;case"end":f[l]+=p*(n&&c?-1:1)}return f}async function R(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:l,elements:a,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:f=0}=b(t,e),m=O(f),h=a[p?"floating"===d?"reference":"floating":d],v=C(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:s})),y="floating"===d?{...l.floating,x:r,y:o}:l.reference,g=await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),w=await(null==i.isElement?void 0:i.isElement(g))&&await(null==i.getScale?void 0:i.getScale(g))||{x:1,y:1},E=C(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:g,strategy:s}):y);return{top:(v.top-E.top+m.top)/w.y,bottom:(E.bottom-v.bottom+m.bottom)/w.y,left:(v.left-E.left+m.left)/w.x,right:(E.right-v.right+m.right)/w.x}}const P=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:l,middlewareData:a}=t,s=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),l=w(n),a=E(n),s="y"===S(n),c=["left","top"].includes(l)?-1:1,u=i&&s?-1:1,d=b(t,e);let{mainAxis:p,crossAxis:f,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return a&&"number"==typeof m&&(f="end"===a?-1*m:m),s?{x:f*u,y:p*c}:{x:p*c,y:f*u}}(t,e);return l===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+s.x,y:i+s.y,data:{...s,placement:l}}}}};function L(e){return M(e)?(e.nodeName||"").toLowerCase():"#document"}function I(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function D(e){var t;return null==(t=(M(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function M(e){return e instanceof Node||e instanceof I(e).Node}function F(e){return e instanceof Element||e instanceof I(e).Element}function j(e){return e instanceof HTMLElement||e instanceof I(e).HTMLElement}function H(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof I(e).ShadowRoot)}function z(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=$(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function B(e){return["table","td","th"].includes(L(e))}function V(e){const t=W(),n=$(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function W(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function q(e){return["html","body","#document"].includes(L(e))}function $(e){return I(e).getComputedStyle(e)}function U(e){return F(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function X(e){if("html"===L(e))return e;const t=e.assignedSlot||e.parentNode||H(e)&&e.host||D(e);return H(t)?t.host:t}function G(e){const t=X(e);return q(t)?e.ownerDocument?e.ownerDocument.body:e.body:j(t)&&z(t)?t:G(t)}function Y(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=G(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),l=I(o);return i?t.concat(l,l.visualViewport||[],z(o)?o:[],l.frameElement&&n?Y(l.frameElement):[]):t.concat(o,Y(o,[],n))}function Z(e){const t=$(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=j(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:r,a=f(n)!==i||f(r)!==l;return a&&(n=i,r=l),{width:n,height:r,$:a}}function K(e){return F(e)?e:e.contextElement}function J(e){const t=K(e);if(!j(t))return h(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Z(t);let l=(i?f(n.width):n.width)/r,a=(i?f(n.height):n.height)/o;return l&&Number.isFinite(l)||(l=1),a&&Number.isFinite(a)||(a=1),{x:l,y:a}}const Q=h(0);function ee(e){const t=I(e);return W()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Q}function te(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=K(e);let l=h(1);t&&(r?F(r)&&(l=J(r)):l=J(e));const a=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==I(e))&&t}(i,n,r)?ee(i):h(0);let s=(o.left+a.x)/l.x,c=(o.top+a.y)/l.y,u=o.width/l.x,d=o.height/l.y;if(i){const e=I(i),t=r&&F(r)?I(r):r;let n=e,o=n.frameElement;for(;o&&r&&t!==n;){const e=J(o),t=o.getBoundingClientRect(),r=$(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,c*=e.y,u*=e.x,d*=e.y,s+=i,c+=l,n=I(o),o=n.frameElement}}return C({width:u,height:d,x:s,y:c})}const ne=[":popover-open",":modal"];function re(e){return ne.some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function oe(e){return te(D(e)).left+U(e).scrollLeft}function ie(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=I(e),r=D(e),o=n.visualViewport;let i=r.clientWidth,l=r.clientHeight,a=0,s=0;if(o){i=o.width,l=o.height;const e=W();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,s=o.offsetTop)}return{width:i,height:l,x:a,y:s}}(e,n);else if("document"===t)r=function(e){const t=D(e),n=U(e),r=e.ownerDocument.body,o=p(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=p(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+oe(e);const a=-n.scrollTop;return"rtl"===$(r).direction&&(l+=p(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:l,y:a}}(D(e));else if(F(t))r=function(e,t){const n=te(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=j(e)?J(e):h(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=ee(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return C(r)}function le(e,t){const n=X(e);return!(n===t||!F(n)||q(n))&&("fixed"===$(n).position||le(n,t))}function ae(e,t,n){const r=j(t),o=D(t),i="fixed"===n,l=te(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const s=h(0);if(r||!r&&!i)if(("body"!==L(t)||z(o))&&(a=U(t)),r){const e=te(t,!0,i,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&(s.x=oe(o));return{x:l.left+a.scrollLeft-s.x,y:l.top+a.scrollTop-s.y,width:l.width,height:l.height}}function se(e,t){return j(e)&&"fixed"!==$(e).position?t?t(e):e.offsetParent:null}function ce(e,t){const n=I(e);if(!j(e)||re(e))return n;let r=se(e,t);for(;r&&B(r)&&"static"===$(r).position;)r=se(r,t);return r&&("html"===L(r)||"body"===L(r)&&"static"===$(r).position&&!V(r))?n:r||function(e){let t=X(e);for(;j(t)&&!q(t);){if(V(t))return t;t=X(t)}return null}(e)||n}const ue={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,l=D(r),a=!!t&&re(t.floating);if(r===l||a&&i)return n;let s={scrollLeft:0,scrollTop:0},c=h(1);const u=h(0),d=j(r);if((d||!d&&!i)&&(("body"!==L(r)||z(l))&&(s=U(r)),j(r))){const e=te(r);c=J(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-s.scrollLeft*c.x+u.x,y:n.y*c.y-s.scrollTop*c.y+u.y}},getDocumentElement:D,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let r=Y(e,[],!1).filter((e=>F(e)&&"body"!==L(e))),o=null;const i="fixed"===$(e).position;let l=i?X(e):e;for(;F(l)&&!q(l);){const t=$(l),n=V(l);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||z(l)&&!n&&le(e,l))?r=r.filter((e=>e!==l)):o=t,l=X(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],l=i[0],a=i.reduce(((e,n)=>{const r=ie(t,n,o);return e.top=p(r.top,e.top),e.right=d(r.right,e.right),e.bottom=d(r.bottom,e.bottom),e.left=p(r.left,e.left),e}),ie(t,l,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:ce,getElementRects:async function(e){const t=this.getOffsetParent||ce,n=this.getDimensions;return{reference:ae(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,...await n(e.floating)}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=Z(e);return{width:t,height:n}},getScale:J,isElement:F,isRTL:function(e){return"rtl"===$(e).direction}};const de=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=b(e,t),c={x:n,y:r},u=await R(t,s),d=S(w(o)),p=x(d);let f=c[p],m=c[d];if(i){const e="y"===p?"bottom":"right";f=g(f+u["y"===p?"top":"left"],f,f-u[e])}if(l){const e="y"===d?"bottom":"right";m=g(m+u["y"===d?"top":"left"],m,m-u[e])}const h=a.fn({...t,[p]:f,[d]:m});return{...h,data:{x:h.x-n,y:h.y-r}}}}},pe=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:l,initialPlacement:a,platform:s,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,...v}=b(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const y=w(o),g=w(a)===a,x=await(null==s.isRTL?void 0:s.isRTL(c.floating)),S=p||(g||!h?[A(a)]:function(e){const t=A(e);return[k(e),t,k(t)]}(a));p||"none"===m||S.push(...function(e,t,n,r){const o=E(e);let i=function(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],l=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:l;default:return[]}}(w(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(k)))),i}(a,h,m,x));const O=[a,...S],C=await R(t,v),N=[];let P=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&N.push(C[y]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=E(e),o=T(e),i=_(o);let l="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=A(l)),[l,A(l)]}(o,l,x);N.push(C[e[0]],C[e[1]])}if(P=[...P,{placement:o,overflows:N}],!N.every((e=>e<=0))){var L,I;const e=((null==(L=i.flip)?void 0:L.index)||0)+1,t=O[e];if(t)return{data:{index:e,overflows:P},reset:{placement:t}};let n=null==(I=P.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:I.placement;if(!n)switch(f){case"bestFit":{var D;const e=null==(D=P.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:D[0];e&&(n=e);break}case"initialPlacement":n=a}if(o!==n)return{reset:{placement:n}}}return{}}}},fe=(e,t,n)=>{const r=new Map,o={platform:ue,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,a=i.filter(Boolean),s=await(null==l.isRTL?void 0:l.isRTL(t));let c=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=N(c,r,s),p=r,f={},m=0;for(let n=0;n{if(!e)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};if(null===t)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};const s=l;return n?(s.push({name:"arrow",options:c={element:n,padding:5},async fn(e){const{x:t,y:n,placement:r,rects:o,platform:i,elements:l,middlewareData:a}=e,{element:s,padding:u=0}=b(c,e)||{};if(null==s)return{};const p=O(u),f={x:t,y:n},m=T(r),h=_(m),v=await i.getDimensions(s),y="y"===m,w=y?"top":"left",x=y?"bottom":"right",S=y?"clientHeight":"clientWidth",k=o.reference[h]+o.reference[m]-f[m]-o.floating[h],A=f[m]-o.reference[m],C=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s));let N=C?C[S]:0;N&&await(null==i.isElement?void 0:i.isElement(C))||(N=l.floating[S]||o.floating[h]);const R=k/2-A/2,P=N/2-v[h]/2-1,L=d(p[w],P),I=d(p[x],P),D=L,M=N-v[h]-I,F=N/2-v[h]/2+R,j=g(D,F,M),H=!a.arrow&&null!=E(r)&&F!==j&&o.reference[h]/2-(F{var o,i;const l={left:`${e}px`,top:`${t}px`,border:a},{x:s,y:c}=null!==(o=r.arrow)&&void 0!==o?o:{x:0,y:0},u=null!==(i={top:"bottom",right:"left",bottom:"top",left:"right"}[n.split("-")[0]])&&void 0!==i?i:"bottom",d=a&&{borderBottom:a,borderRight:a};let p=0;if(a){const e=`${a}`.match(/(\d+)px/);p=(null==e?void 0:e[1])?Number(e[1]):1}return{tooltipStyles:l,tooltipArrowStyles:{left:null!=s?`${s}px`:"",top:null!=c?`${c}px`:"",right:"",bottom:"",...d,[u]:`-${4+p}px`},place:n}}))):fe(e,t,{placement:"bottom",strategy:i,middleware:s}).then((({x:e,y:t,placement:n})=>({tooltipStyles:{left:`${e}px`,top:`${t}px`},tooltipArrowStyles:{},place:n})));var c},ge=(e,t)=>!("CSS"in window&&"supports"in window.CSS)||window.CSS.supports(e,t),be=(e,t,n)=>{let r=null;const o=function(...o){const i=()=>{r=null,n||e.apply(this,o)};n&&!r&&(e.apply(this,o),r=setTimeout(i,t)),n||(r&&clearTimeout(r),r=setTimeout(i,t))};return o.cancel=()=>{r&&(clearTimeout(r),r=null)},o},we=e=>null!==e&&!Array.isArray(e)&&"object"==typeof e,Ee=(e,t)=>{if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&e.every(((e,n)=>Ee(e,t[n])));if(Array.isArray(e)!==Array.isArray(t))return!1;if(!we(e)||!we(t))return e===t;const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every((n=>Ee(e[n],t[n])))},xe=e=>{if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;const t=getComputedStyle(e);return["overflow","overflow-x","overflow-y"].some((e=>{const n=t.getPropertyValue(e);return"auto"===n||"scroll"===n}))},_e=e=>{if(!e)return null;let t=e.parentElement;for(;t;){if(xe(t))return t;t=t.parentElement}return document.scrollingElement||document.documentElement},Se="undefined"!=typeof window?o.useLayoutEffect:o.useEffect,Te={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},ke=(0,o.createContext)({getTooltipData:()=>Te});function Ae(e="DEFAULT_TOOLTIP_ID"){return(0,o.useContext)(ke).getTooltipData(e)}var Oe={tooltip:"core-styles-module_tooltip__3vRRp",fixed:"core-styles-module_fixed__pcSol",arrow:"core-styles-module_arrow__cvMwQ",noArrow:"core-styles-module_noArrow__xock6",clickable:"core-styles-module_clickable__ZuTTB",show:"core-styles-module_show__Nt9eE",closing:"core-styles-module_closing__sGnxF"},Ce={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const Ne=({forwardRef:e,id:t,className:n,classNameArrow:r,variant:i="dark",anchorId:l,anchorSelect:a,place:s="top",offset:c=10,events:u=["hover"],openOnClick:f=!1,positionStrategy:h="absolute",middlewares:v,wrapper:y,delayShow:g=0,delayHide:b=0,float:w=!1,hidden:E=!1,noArrow:x=!1,clickable:_=!1,closeOnEsc:S=!1,closeOnScroll:T=!1,closeOnResize:k=!1,openEvents:A,closeEvents:O,globalCloseEvents:C,imperativeModeOnly:N,style:R,position:P,afterShow:L,afterHide:I,content:M,contentWrapperRef:F,isOpen:j,defaultIsOpen:H=!1,setIsOpen:z,activeAnchor:B,setActiveAnchor:V,border:W,opacity:q,arrowColor:$,role:U="tooltip"})=>{var X;const G=(0,o.useRef)(null),Z=(0,o.useRef)(null),J=(0,o.useRef)(null),Q=(0,o.useRef)(null),ee=(0,o.useRef)(null),[ne,re]=(0,o.useState)({tooltipStyles:{},tooltipArrowStyles:{},place:s}),[oe,ie]=(0,o.useState)(!1),[le,ae]=(0,o.useState)(!1),[se,ce]=(0,o.useState)(null),ue=(0,o.useRef)(!1),de=(0,o.useRef)(null),{anchorRefs:pe,setActiveAnchor:fe}=Ae(t),he=(0,o.useRef)(!1),[ve,ge]=(0,o.useState)([]),we=(0,o.useRef)(!1),xe=f||u.includes("click"),Te=xe||(null==A?void 0:A.click)||(null==A?void 0:A.dblclick)||(null==A?void 0:A.mousedown),ke=A?{...A}:{mouseenter:!0,focus:!0,click:!1,dblclick:!1,mousedown:!1};!A&&xe&&Object.assign(ke,{mouseenter:!1,focus:!1,click:!0});const Ne=O?{...O}:{mouseleave:!0,blur:!0,click:!1,dblclick:!1,mouseup:!1};!O&&xe&&Object.assign(Ne,{mouseleave:!1,blur:!1});const Re=C?{...C}:{escape:S||!1,scroll:T||!1,resize:k||!1,clickOutsideAnchor:Te||!1};N&&(Object.assign(ke,{mouseenter:!1,focus:!1,click:!1,dblclick:!1,mousedown:!1}),Object.assign(Ne,{mouseleave:!1,blur:!1,click:!1,dblclick:!1,mouseup:!1}),Object.assign(Re,{escape:!1,scroll:!1,resize:!1,clickOutsideAnchor:!1})),Se((()=>(we.current=!0,()=>{we.current=!1})),[]);const Pe=e=>{we.current&&(e&&ae(!0),setTimeout((()=>{we.current&&(null==z||z(e),void 0===j&&ie(e))}),10))};(0,o.useEffect)((()=>{if(void 0===j)return()=>null;j&&ae(!0);const e=setTimeout((()=>{ie(j)}),10);return()=>{clearTimeout(e)}}),[j]),(0,o.useEffect)((()=>{if(oe!==ue.current)if(ee.current&&clearTimeout(ee.current),ue.current=oe,oe)null==L||L();else{const e=(e=>{const t=getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay").match(/^([\d.]+)(ms|s)$/);if(!t)return 0;const[,n,r]=t;return Number(n)*("ms"===r?1:1e3)})();ee.current=setTimeout((()=>{ae(!1),ce(null),null==I||I()}),e+25)}}),[oe]);const Le=e=>{re((t=>Ee(t,e)?t:e))},Ie=(e=g)=>{J.current&&clearTimeout(J.current),le?Pe(!0):J.current=setTimeout((()=>{Pe(!0)}),e)},De=(e=b)=>{Q.current&&clearTimeout(Q.current),Q.current=setTimeout((()=>{he.current||Pe(!1)}),e)},Me=e=>{var t;if(!e)return;const n=null!==(t=e.currentTarget)&&void 0!==t?t:e.target;if(!(null==n?void 0:n.isConnected))return V(null),void fe({current:null});g?Ie():Pe(!0),V(n),fe({current:n}),Q.current&&clearTimeout(Q.current)},Fe=()=>{_?De(b||100):b?De():Pe(!1),J.current&&clearTimeout(J.current)},je=({x:e,y:t})=>{var n;const r={getBoundingClientRect:()=>({x:e,y:t,width:0,height:0,top:t,left:e,right:e,bottom:t})};ye({place:null!==(n=null==se?void 0:se.place)&&void 0!==n?n:s,offset:c,elementReference:r,tooltipReference:G.current,tooltipArrowReference:Z.current,strategy:h,middlewares:v,border:W}).then((e=>{Le(e)}))},He=e=>{if(!e)return;const t=e,n={x:t.clientX,y:t.clientY};je(n),de.current=n},ze=e=>{var t;if(!oe)return;const n=e.target;n.isConnected&&((null===(t=G.current)||void 0===t?void 0:t.contains(n))||[document.querySelector(`[id='${l}']`),...ve].some((e=>null==e?void 0:e.contains(n)))||(Pe(!1),J.current&&clearTimeout(J.current)))},Be=be(Me,50,!0),Ve=be(Fe,50,!0),We=e=>{Ve.cancel(),Be(e)},qe=()=>{Be.cancel(),Ve()},$e=(0,o.useCallback)((()=>{var e,t;const n=null!==(e=null==se?void 0:se.position)&&void 0!==e?e:P;n?je(n):w?de.current&&je(de.current):(null==B?void 0:B.isConnected)&&ye({place:null!==(t=null==se?void 0:se.place)&&void 0!==t?t:s,offset:c,elementReference:B,tooltipReference:G.current,tooltipArrowReference:Z.current,strategy:h,middlewares:v,border:W}).then((e=>{we.current&&Le(e)}))}),[oe,B,M,R,s,null==se?void 0:se.place,c,h,P,null==se?void 0:se.position,w]);(0,o.useEffect)((()=>{var e,t;const n=new Set(pe);ve.forEach((e=>{n.add({current:e})}));const r=document.querySelector(`[id='${l}']`);r&&n.add({current:r});const o=()=>{Pe(!1)},i=_e(B),a=_e(G.current);Re.scroll&&(window.addEventListener("scroll",o),null==i||i.addEventListener("scroll",o),null==a||a.addEventListener("scroll",o));let s=null;Re.resize?window.addEventListener("resize",o):B&&G.current&&(s=function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:s=!1}=r,c=K(e),u=o||i?[...c?Y(c):[],...Y(t)]:[];u.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const f=c&&a?function(e,t){let n,r=null;const o=D(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function l(a,s){void 0===a&&(a=!1),void 0===s&&(s=1),i();const{left:c,top:u,width:f,height:h}=e.getBoundingClientRect();if(a||t(),!f||!h)return;const v={rootMargin:-m(u)+"px "+-m(o.clientWidth-(c+f))+"px "+-m(o.clientHeight-(u+h))+"px "+-m(c)+"px",threshold:p(0,d(1,s))||1};let y=!0;function g(e){const t=e[0].intersectionRatio;if(t!==s){if(!y)return l();t?l(!1,t):n=setTimeout((()=>{l(!1,1e-7)}),100)}y=!1}try{r=new IntersectionObserver(g,{...v,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(g,v)}r.observe(e)}(!0),i}(c,n):null;let h,v=-1,y=null;l&&(y=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&y&&(y.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame((()=>{var e;null==(e=y)||e.observe(t)}))),n()})),c&&!s&&y.observe(c),y.observe(t));let g=s?te(e):null;return s&&function t(){const r=te(e);!g||r.x===g.x&&r.y===g.y&&r.width===g.width&&r.height===g.height||n(),g=r,h=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==f||f(),null==(e=y)||e.disconnect(),y=null,s&&cancelAnimationFrame(h)}}(B,G.current,$e,{ancestorResize:!0,elementResize:!0,layoutShift:!0}));const c=e=>{"Escape"===e.key&&Pe(!1)};Re.escape&&window.addEventListener("keydown",c),Re.clickOutsideAnchor&&window.addEventListener("click",ze);const u=[],f=e=>{oe&&(null==e?void 0:e.target)===B||Me(e)},h=e=>{oe&&(null==e?void 0:e.target)===B&&Fe()},v=["mouseenter","mouseleave","focus","blur"],y=["click","dblclick","mousedown","mouseup"];Object.entries(ke).forEach((([e,t])=>{t&&(v.includes(e)?u.push({event:e,listener:We}):y.includes(e)&&u.push({event:e,listener:f}))})),Object.entries(Ne).forEach((([e,t])=>{t&&(v.includes(e)?u.push({event:e,listener:qe}):y.includes(e)&&u.push({event:e,listener:h}))})),w&&u.push({event:"pointermove",listener:He});const g=()=>{he.current=!0},b=()=>{he.current=!1,Fe()};return _&&!Te&&(null===(e=G.current)||void 0===e||e.addEventListener("mouseenter",g),null===(t=G.current)||void 0===t||t.addEventListener("mouseleave",b)),u.forEach((({event:e,listener:t})=>{n.forEach((n=>{var r;null===(r=n.current)||void 0===r||r.addEventListener(e,t)}))})),()=>{var e,t;Re.scroll&&(window.removeEventListener("scroll",o),null==i||i.removeEventListener("scroll",o),null==a||a.removeEventListener("scroll",o)),Re.resize?window.removeEventListener("resize",o):null==s||s(),Re.clickOutsideAnchor&&window.removeEventListener("click",ze),Re.escape&&window.removeEventListener("keydown",c),_&&!Te&&(null===(e=G.current)||void 0===e||e.removeEventListener("mouseenter",g),null===(t=G.current)||void 0===t||t.removeEventListener("mouseleave",b)),u.forEach((({event:e,listener:t})=>{n.forEach((n=>{var r;null===(r=n.current)||void 0===r||r.removeEventListener(e,t)}))}))}}),[B,$e,le,pe,ve,A,O,C,xe,g,b]),(0,o.useEffect)((()=>{var e,n;let r=null!==(n=null!==(e=null==se?void 0:se.anchorSelect)&&void 0!==e?e:a)&&void 0!==n?n:"";!r&&t&&(r=`[data-tooltip-id='${t}']`);const o=new MutationObserver((e=>{const n=[],o=[];e.forEach((e=>{if("attributes"===e.type&&"data-tooltip-id"===e.attributeName&&(e.target.getAttribute("data-tooltip-id")===t?n.push(e.target):e.oldValue===t&&o.push(e.target)),"childList"===e.type){if(B){const t=[...e.removedNodes].filter((e=>1===e.nodeType));if(r)try{o.push(...t.filter((e=>e.matches(r)))),o.push(...t.flatMap((e=>[...e.querySelectorAll(r)])))}catch(e){}t.some((e=>{var t;return!!(null===(t=null==e?void 0:e.contains)||void 0===t?void 0:t.call(e,B))&&(ae(!1),Pe(!1),V(null),J.current&&clearTimeout(J.current),Q.current&&clearTimeout(Q.current),!0)}))}if(r)try{const t=[...e.addedNodes].filter((e=>1===e.nodeType));n.push(...t.filter((e=>e.matches(r)))),n.push(...t.flatMap((e=>[...e.querySelectorAll(r)])))}catch(e){}}})),(n.length||o.length)&&ge((e=>[...e.filter((e=>!o.includes(e))),...n]))}));return o.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"],attributeOldValue:!0}),()=>{o.disconnect()}}),[t,a,null==se?void 0:se.anchorSelect,B]),(0,o.useEffect)((()=>{$e()}),[$e]),(0,o.useEffect)((()=>{if(!(null==F?void 0:F.current))return()=>null;const e=new ResizeObserver((()=>{setTimeout((()=>$e()))}));return e.observe(F.current),()=>{e.disconnect()}}),[M,null==F?void 0:F.current]),(0,o.useEffect)((()=>{var e;const t=document.querySelector(`[id='${l}']`),n=[...ve,t];B&&n.includes(B)||V(null!==(e=ve[0])&&void 0!==e?e:t)}),[l,ve,B]),(0,o.useEffect)((()=>(H&&Pe(!0),()=>{J.current&&clearTimeout(J.current),Q.current&&clearTimeout(Q.current)})),[]),(0,o.useEffect)((()=>{var e;let n=null!==(e=null==se?void 0:se.anchorSelect)&&void 0!==e?e:a;if(!n&&t&&(n=`[data-tooltip-id='${t}']`),n)try{const e=Array.from(document.querySelectorAll(n));ge(e)}catch(e){ge([])}}),[t,a,null==se?void 0:se.anchorSelect]),(0,o.useEffect)((()=>{J.current&&(clearTimeout(J.current),Ie(g))}),[g]);const Ue=null!==(X=null==se?void 0:se.content)&&void 0!==X?X:M,Xe=oe&&Object.keys(ne.tooltipStyles).length>0;return(0,o.useImperativeHandle)(e,(()=>({open:e=>{if(null==e?void 0:e.anchorSelect)try{document.querySelector(e.anchorSelect)}catch(t){return void console.warn(`[react-tooltip] "${e.anchorSelect}" is not a valid CSS selector`)}ce(null!=e?e:null),(null==e?void 0:e.delay)?Ie(e.delay):Pe(!0)},close:e=>{(null==e?void 0:e.delay)?De(e.delay):Pe(!1)},activeAnchor:B,place:ne.place,isOpen:Boolean(le&&!E&&Ue&&Xe)}))),le&&!E&&Ue?o.createElement(y,{id:t,role:U,className:me("react-tooltip",Oe.tooltip,Ce.tooltip,Ce[i],n,`react-tooltip__place-${ne.place}`,Oe[Xe?"show":"closing"],Xe?"react-tooltip__show":"react-tooltip__closing","fixed"===h&&Oe.fixed,_&&Oe.clickable),onTransitionEnd:e=>{ee.current&&clearTimeout(ee.current),oe||"opacity"!==e.propertyName||(ae(!1),ce(null),null==I||I())},style:{...R,...ne.tooltipStyles,opacity:void 0!==q&&Xe?q:void 0},ref:G},Ue,o.createElement(y,{className:me("react-tooltip-arrow",Oe.arrow,Ce.arrow,r,x&&Oe.noArrow),style:{...ne.tooltipArrowStyles,background:$?`linear-gradient(to right bottom, transparent 50%, ${$} 50%)`:void 0},ref:Z})):null},Re=({content:e})=>o.createElement("span",{dangerouslySetInnerHTML:{__html:e}}),Pe=o.forwardRef((({id:e,anchorId:t,anchorSelect:n,content:r,html:i,render:l,className:a,classNameArrow:s,variant:c="dark",place:u="top",offset:d=10,wrapper:p="div",children:f=null,events:m=["hover"],openOnClick:h=!1,positionStrategy:v="absolute",middlewares:y,delayShow:g=0,delayHide:b=0,float:w=!1,hidden:E=!1,noArrow:x=!1,clickable:_=!1,closeOnEsc:S=!1,closeOnScroll:T=!1,closeOnResize:k=!1,openEvents:A,closeEvents:O,globalCloseEvents:C,imperativeModeOnly:N=!1,style:R,position:P,isOpen:L,defaultIsOpen:I=!1,disableStyleInjection:D=!1,border:M,opacity:F,arrowColor:j,setIsOpen:H,afterShow:z,afterHide:B,role:V="tooltip"},W)=>{const[q,$]=(0,o.useState)(r),[U,X]=(0,o.useState)(i),[G,Y]=(0,o.useState)(u),[Z,K]=(0,o.useState)(c),[J,Q]=(0,o.useState)(d),[ee,te]=(0,o.useState)(g),[ne,re]=(0,o.useState)(b),[oe,ie]=(0,o.useState)(w),[le,ae]=(0,o.useState)(E),[se,ce]=(0,o.useState)(p),[ue,de]=(0,o.useState)(m),[pe,fe]=(0,o.useState)(v),[he,ve]=(0,o.useState)(null),[ye,be]=(0,o.useState)(null),we=(0,o.useRef)(D),{anchorRefs:Ee,activeAnchor:xe}=Ae(e),_e=e=>null==e?void 0:e.getAttributeNames().reduce(((t,n)=>{var r;return n.startsWith("data-tooltip-")&&(t[n.replace(/^data-tooltip-/,"")]=null!==(r=null==e?void 0:e.getAttribute(n))&&void 0!==r?r:null),t}),{}),Se=e=>{const t={place:e=>{var t;Y(null!==(t=e)&&void 0!==t?t:u)},content:e=>{$(null!=e?e:r)},html:e=>{X(null!=e?e:i)},variant:e=>{var t;K(null!==(t=e)&&void 0!==t?t:c)},offset:e=>{Q(null===e?d:Number(e))},wrapper:e=>{var t;ce(null!==(t=e)&&void 0!==t?t:p)},events:e=>{const t=null==e?void 0:e.split(" ");de(null!=t?t:m)},"position-strategy":e=>{var t;fe(null!==(t=e)&&void 0!==t?t:v)},"delay-show":e=>{te(null===e?g:Number(e))},"delay-hide":e=>{re(null===e?b:Number(e))},float:e=>{ie(null===e?w:"true"===e)},hidden:e=>{ae(null===e?E:"true"===e)},"class-name":e=>{ve(e)}};Object.values(t).forEach((e=>e(null))),Object.entries(e).forEach((([e,n])=>{var r;null===(r=t[e])||void 0===r||r.call(t,n)}))};(0,o.useEffect)((()=>{$(r)}),[r]),(0,o.useEffect)((()=>{X(i)}),[i]),(0,o.useEffect)((()=>{Y(u)}),[u]),(0,o.useEffect)((()=>{K(c)}),[c]),(0,o.useEffect)((()=>{Q(d)}),[d]),(0,o.useEffect)((()=>{te(g)}),[g]),(0,o.useEffect)((()=>{re(b)}),[b]),(0,o.useEffect)((()=>{ie(w)}),[w]),(0,o.useEffect)((()=>{ae(E)}),[E]),(0,o.useEffect)((()=>{fe(v)}),[v]),(0,o.useEffect)((()=>{we.current!==D&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")}),[D]),(0,o.useEffect)((()=>{"undefined"!=typeof window&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:"core"===D,disableBase:D}}))}),[]),(0,o.useEffect)((()=>{var r;const o=new Set(Ee);let i=n;if(!i&&e&&(i=`[data-tooltip-id='${e}']`),i)try{document.querySelectorAll(i).forEach((e=>{o.add({current:e})}))}catch(r){console.warn(`[react-tooltip] "${i}" is not a valid CSS selector`)}const l=document.querySelector(`[id='${t}']`);if(l&&o.add({current:l}),!o.size)return()=>null;const a=null!==(r=null!=ye?ye:l)&&void 0!==r?r:xe.current,s=new MutationObserver((e=>{e.forEach((e=>{var t;if(!a||"attributes"!==e.type||!(null===(t=e.attributeName)||void 0===t?void 0:t.startsWith("data-tooltip-")))return;const n=_e(a);Se(n)}))})),c={attributes:!0,childList:!1,subtree:!1};if(a){const e=_e(a);Se(e),s.observe(a,c)}return()=>{s.disconnect()}}),[Ee,xe,ye,t,n]),(0,o.useEffect)((()=>{(null==R?void 0:R.border)&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),M&&!ge("border",`${M}`)&&console.warn(`[react-tooltip] "${M}" is not a valid \`border\`.`),(null==R?void 0:R.opacity)&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),F&&!ge("opacity",`${F}`)&&console.warn(`[react-tooltip] "${F}" is not a valid \`opacity\`.`)}),[]);let Te=f;const ke=(0,o.useRef)(null);if(l){const e=l({content:(null==ye?void 0:ye.getAttribute("data-tooltip-content"))||q||null,activeAnchor:ye});Te=e?o.createElement("div",{ref:ke,className:"react-tooltip-content-wrapper"},e):null}else q&&(Te=q);U&&(Te=o.createElement(Re,{content:U}));const Oe={forwardRef:W,id:e,anchorId:t,anchorSelect:n,className:me(a,he),classNameArrow:s,content:Te,contentWrapperRef:ke,place:G,variant:Z,offset:J,wrapper:se,events:ue,openOnClick:h,positionStrategy:pe,middlewares:y,delayShow:ee,delayHide:ne,float:oe,hidden:le,noArrow:x,clickable:_,closeOnEsc:S,closeOnScroll:T,closeOnResize:k,openEvents:A,closeEvents:O,globalCloseEvents:C,imperativeModeOnly:N,style:R,position:P,isOpen:L,defaultIsOpen:I,border:M,opacity:F,arrowColor:j,setIsOpen:H,afterShow:z,afterHide:B,activeAnchor:ye,setActiveAnchor:e=>be(e),role:V};return o.createElement(Ne,{...Oe})}));"undefined"!=typeof window&&window.addEventListener("react-tooltip-inject-styles",(e=>{e.detail.disableCore||ve({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in}",type:"core"}),e.detail.disableBase||ve({css:"\n.styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:8px;height:8px}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}",type:"base"})}));const Le=(e,t="")=>{for(const[n,r]of Object.entries(e)){let e=n;t&&(e+="_"+String(t));const o=new CustomEvent(e,{detail:r});dispatchEvent(o)}},Ie=(e,t="")=>{for(const[n,r]of Object.entries(e)){let e=n;t&&(e+="_"+String(t)),addEventListener(e,(e=>{r(e.detail)}),!1)}};function De(){return"string"==typeof(0,s.select)("core/editor")?.getCurrentPostType()}function Me(e){if("object"==typeof GatherPress)return e.split(".").reduce(((e,t)=>e&&e[t]),GatherPress)}const Fe=({onlineEventLinkDefault:e=""})=>{const t=(0,i.__)("Online event","gatherpress"),[n,r]=(0,c.useState)(e);return Ie({setOnlineEventLink:r},Me("eventDetails.postId")),(0,o.createElement)(a.Flex,{justify:"normal",gap:"3"},(0,o.createElement)(a.FlexItem,{display:"flex"},(0,o.createElement)(a.Icon,{icon:"video-alt2"})),(0,o.createElement)(a.FlexItem,null,!n&&(0,o.createElement)(o.Fragment,null,(0,o.createElement)("span",{tabIndex:"0",className:"gatherpress-tooltip","data-tooltip-id":"gatherpress-online-event-tooltip","data-tooltip-content":(0,i.__)("Link available for attendees only.","gatherpress")},t),(0,o.createElement)(Pe,{id:"gatherpress-online-event-tooltip"})),n&&(0,o.createElement)("a",{href:n,rel:"noreferrer",target:"_blank"},t)))};var je=n(442);const He=je.default||je,ze=({name:e,fullAddress:t,phoneNumber:n,website:r})=>(0,o.createElement)(o.Fragment,null,(e||t)&&(0,o.createElement)(a.Flex,{justify:"normal",align:"flex-start",gap:"4"},(0,o.createElement)(a.FlexItem,{display:"flex",className:"gatherpress-venue__icon"},(0,o.createElement)(a.Icon,{icon:"location"})),(0,o.createElement)(a.FlexItem,null,e&&(0,o.createElement)("div",{className:"gatherpress-venue__name"},(0,o.createElement)("strong",null,He(e))),t&&(0,o.createElement)("div",{className:"gatherpress-venue__full-address"},He(t)))),(n||r)&&(0,o.createElement)(a.Flex,{justify:"normal",gap:"8"},n&&(0,o.createElement)(a.FlexItem,null,(0,o.createElement)(a.Flex,{justify:"normal",gap:"4"},(0,o.createElement)(a.FlexItem,{display:"flex",className:"gatherpress-venue__icon"},(0,o.createElement)(a.Icon,{icon:"phone"})),(0,o.createElement)(a.FlexItem,null,(0,o.createElement)("div",{className:"gatherpress-venue__phone-number"},n)))),r&&(0,o.createElement)(a.FlexItem,null,(0,o.createElement)(a.Flex,{justify:"normal",gap:"4"},(0,o.createElement)(a.FlexItem,{display:"flex",className:"gatherpress-venue__icon"},(0,o.createElement)(a.Icon,{icon:"admin-site-alt3"})),(0,o.createElement)(a.FlexItem,null,(0,o.createElement)("div",{className:"gatherpress-venue__website"},(0,o.createElement)("a",{href:r,target:"_blank",rel:"noreferrer noopener"},r))))))),Be=({name:e="",fullAddress:t,phoneNumber:n,website:r,isOnlineEventTerm:i=!1,onlineEventLink:l=""})=>(0,o.createElement)(o.Fragment,null,!i&&(0,o.createElement)(ze,{name:e,fullAddress:t,phoneNumber:n,website:r}),i&&(0,o.createElement)(Fe,{onlineEventLinkDefault:l})),Ve=e=>{const{isSelected:t}=e,n=t?"none":"block";return(0,o.createElement)("div",{style:{position:"relative"}},e.children,(0,o.createElement)("div",{style:{position:"absolute",top:"0",right:"0",bottom:"0",left:"0",display:n}}))};function We(){return"gatherpress_venue"===(0,s.select)("core/editor")?.getCurrentPostType()}const qe=()=>{const[e,t]=(0,c.useState)(""),[n,r]=(0,c.useState)(""),[l,u]=(0,c.useState)(""),[d,p]=(0,c.useState)(""),[f,m]=(0,c.useState)(!1),[h,v]=(0,c.useState)(""),y=(0,s.useDispatch)("core/editor").editPost,{unlockPostSaving:g}=(0,s.useDispatch)("core/editor"),b=(0,s.useSelect)((e=>e("core/editor").getEditedPostAttribute("_gatherpress_venue"))),w=(0,s.useSelect)((e=>e("core").getEntityRecord("taxonomy","_gatherpress_venue",b))),E=w?.slug.replace(/^_/,""),[x,_]=(0,c.useState)(""),S=b+":"+x,T=(0,s.useSelect)((e=>e("core").getEntityRecords("postType","gatherpress_venue",{per_page:1,slug:x})));(0,c.useEffect)((()=>{var e,n,o,l;let a={};if(x&&Array.isArray(T)){var s;const e=null!==(s=T[0]?.meta?.gatherpress_venue_information)&&void 0!==s?s:"{}";var c;e&&(a=JSON.parse(e),a.name=null!==(c=T[0]?.title.rendered)&&void 0!==c?c:"")}const d=null!==(e=a?.name)&&void 0!==e?e:(0,i.__)("No venue selected.","gatherpress"),f=null!==(n=a?.fullAddress)&&void 0!==n?n:"",m=null!==(o=a?.phoneNumber)&&void 0!==o?o:"",h=null!==(l=a?.website)&&void 0!==l?l:"";E&&_(E),v(S?String(S):""),t(d),r(f),u(m),p(h),Le({setName:d,setFullAddress:f,setPhoneNumber:m,setWebsite:h,setIsOnlineEventTerm:"online-event"===x})}),[x,T,E,S]);let k=(0,s.useSelect)((e=>e("core").getEntityRecords("taxonomy","_gatherpress_venue",{per_page:-1,context:"view"})),[]);return k?(k=k.map((e=>({label:e.name,value:e.id+":"+e.slug.replace(/^_/,"")}))),k.unshift({value:":",label:(0,i.__)("Choose a venue","gatherpress")})):k=[],(0,o.createElement)(a.PanelRow,null,(0,o.createElement)(a.SelectControl,{label:(0,i.__)("Venue Selector","gatherpress"),value:h,onChange:e=>{(e=>{v(e);const t=""!==(e=e.split(":"))[0]?[e[0]]:[];y({_gatherpress_venue:t}),_(e[1]),g()})(e)},options:k}))},$e=()=>{var e,t,n;const r=(0,s.useDispatch)("core/editor").editPost,l=(e,t)=>{const n=JSON.stringify({...u,[e]:t});r({meta:{gatherpress_venue_information:n}})};let u=(0,s.useSelect)((e=>e("core/editor").getEditedPostAttribute("meta").gatherpress_venue_information));u=u?JSON.parse(u):{};const[d,p]=(0,c.useState)(null!==(e=u.fullAddress)&&void 0!==e?e:""),[f,m]=(0,c.useState)(null!==(t=u.phoneNumber)&&void 0!==t?t:""),[h,v]=(0,c.useState)(null!==(n=u.website)&&void 0!==n?n:"");return Ie({setFullAddress:p,setPhoneNumber:m,setWebsite:v}),(0,o.createElement)(o.Fragment,null,(0,o.createElement)(a.TextControl,{label:(0,i.__)("Full Address","gatherpress"),value:d,onChange:e=>{Le({setFullAddress:e}),l("fullAddress",e)}}),(0,o.createElement)(a.TextControl,{label:(0,i.__)("Phone Number","gatherpress"),value:f,onChange:e=>{Le({setPhoneNumber:e}),l("phoneNumber",e)}}),(0,o.createElement)(a.TextControl,{label:(0,i.__)("Website","gatherpress"),value:h,type:"url",onChange:e=>{Le({setWebsite:e}),l("website",e)}}))},Ue=()=>(0,o.createElement)("section",null,(0,o.createElement)($e,null)),Xe=()=>{const{editPost:e,unlockPostSaving:t}=(0,s.useDispatch)("core/editor"),n=(0,s.useSelect)((e=>e("core/editor").getEditedPostAttribute("meta").gatherpress_online_event_link)),[r,l]=(0,c.useState)(n);return Ie({setOnlineEventLink:l},Me("eventDetails.postId")),(0,o.createElement)(a.TextControl,{label:(0,i.__)("Online event link","gatherpress"),value:r,placeholder:(0,i.__)("Add link to online event","gatherpress"),onChange:n=>{(n=>{e({meta:{gatherpress_online_event_link:n}}),l(n),Le({setOnlineEventLink:n},Me("eventDetails.postId")),t()})(n)}})},Ge=window.moment;var Ye=n.n(Ge);window.wp.apiFetch,window.wp.date;const Ze="YYYY-MM-DDTHH:mm:ss",Ke=Ye().tz(Je()).add(1,"day").set("hour",18).set("minute",0).set("second",0).format(Ze);function Je(e=Me("eventDetails.dateTime.timezone")){return Ye().tz.zone(e)?e:(0,i.__)("GMT","gatherpress")}Ye().tz(Ke,Je()).add(2,"hours").format(Ze);const Qe=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"gatherpress/venue","version":"1.0.1","title":"Venue","category":"gatherpress","icon":"location","example":{},"description":"Provides information about an event venue.","attributes":{"mapShow":{"type":"boolean","default":true},"mapAlign":{"type":"string","default":""},"mapZoomLevel":{"type":"number","default":10},"mapType":{"type":"string","default":"m"},"mapHeight":{"type":"number","default":300}},"supports":{"align":["wide"],"html":false},"textdomain":"gatherpress","editorScript":"file:./index.js","editorStyle":"file:./index.css","style":"file:./style-index.css","viewScript":"file:./venue.js","render":"file:./render.php"}');(0,r.registerBlockType)(Qe,{edit:({attributes:e,setAttributes:t,isSelected:n})=>{const{mapZoomLevel:r,mapType:d,mapHeight:p}=e,[f,m]=(0,c.useState)(""),[h,v]=(0,c.useState)(""),[y,g]=(0,c.useState)(""),[b,w]=(0,c.useState)(""),[E,x]=(0,c.useState)(!1),_=(0,l.useBlockProps)(),S=(0,s.useSelect)((e=>e("core/editor")?.getEditedPostAttribute("meta")?.gatherpress_online_event_link));let{mapShow:T}=e,k=(0,s.useSelect)((e=>e("core/editor")?.getEditedPostAttribute("meta")?.gatherpress_venue_information));return k=k?JSON.parse(k):{},T&&h&&(T=!0),T&&!De()&&(T=!0),Ie({setName:m,setFullAddress:v,setPhoneNumber:g,setWebsite:w,setIsOnlineEventTerm:x}),(0,c.useEffect)((()=>{We()&&(v(k.fullAddress),g(k.phoneNumber),w(k.website),m(h||y||b?"":(0,i.__)("Add venue information.","gatherpress"))),"gatherpress_event"!==(0,s.select)("core/editor")?.getCurrentPostType()&&De()||m(h||y||b?"":(0,i.__)("No venue selected.","gatherpress"))}),[k.fullAddress,k.phoneNumber,k.website,h,y,b]),(0,o.createElement)(o.Fragment,null,(0,o.createElement)(l.InspectorControls,null,De()&&(0,o.createElement)(a.PanelBody,{title:(0,i.__)("Venue settings","gatherpress"),initialOpen:!0},(0,o.createElement)(a.PanelRow,null,!We()&&(0,o.createElement)(qe,null),We()&&(0,o.createElement)(Ue,null)),E&&(0,o.createElement)(a.PanelRow,null,(0,o.createElement)(Xe,null))),!E&&(0,o.createElement)(a.PanelBody,{title:(0,i.__)("Map settings","gatherpress"),initialOpen:!0},(0,o.createElement)(a.PanelRow,null,(0,i.__)("Show map on venue","gatherpress")),(0,o.createElement)(a.PanelRow,null,(0,o.createElement)(a.ToggleControl,{label:T?(0,i.__)("Display the map","gatherpress"):(0,i.__)("Hide the map","gatherpress"),checked:T,onChange:e=>{t({mapShow:e})}})),(0,o.createElement)(a.RangeControl,{label:(0,i.__)("Zoom level","gatherpress"),beforeIcon:"search",value:r,onChange:e=>t({mapZoomLevel:e}),min:1,max:22}),(0,o.createElement)(a.RadioControl,{label:(0,i.__)("Map type","gatherpress"),selected:d,options:[{label:(0,i.__)("Roadmap","gatherpress"),value:"m"},{label:(0,i.__)("Satellite","gatherpress"),value:"k"}],onChange:e=>{t({mapType:e})}}),(0,o.createElement)(a.RangeControl,{label:(0,i.__)("Map height","gatherpress"),beforeIcon:"location",value:p,onChange:e=>t({mapHeight:e}),min:100,max:1e3}))),(0,o.createElement)("div",{..._},(0,o.createElement)(Ve,{isSelected:n},(0,o.createElement)("div",{className:"gatherpress-venue"},(0,o.createElement)(Be,{name:f,fullAddress:h,phoneNumber:y,website:b,isOnlineEventTerm:E,onlineEventLink:S}),T&&(0,o.createElement)(u,{location:h,zoom:r,type:d,height:p})))))},save:()=>{}})},5413:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(n=t.ElementType||(t.ElementType={})),t.isTag=function(e){return e.type===n.Tag||e.type===n.Script||e.type===n.Style},t.Root=n.Root,t.Text=n.Text,t.Directive=n.Directive,t.Comment=n.Comment,t.Script=n.Script,t.Style=n.Style,t.Tag=n.Tag,t.CDATA=n.CDATA,t.Doctype=n.Doctype},1141:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var i=n(5413),l=n(6957);o(n(6957),t);var a={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},s=function(){function e(e,t,n){this.dom=[],this.root=new l.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=a),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:a,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new l.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?i.ElementType.Tag:void 0,r=new l.Element(e,t,void 0,n);this.addNode(r),this.tagStack.push(r)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===i.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var n=new l.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===i.ElementType.Comment)this.lastNode.data+=e;else{var t=new l.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new l.Text(""),t=new l.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new l.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=s,t.default=s},6957:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(a);t.NodeWithChildren=p;var f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=l.ElementType.CDATA,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(p);t.CDATA=f;var m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=l.ElementType.Root,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(p);t.Document=m;var h=function(e){function t(t,n,r,o){void 0===r&&(r=[]),void 0===o&&(o="script"===t?l.ElementType.Script:"style"===t?l.ElementType.Style:l.ElementType.Tag);var i=e.call(this,r)||this;return i.name=t,i.attribs=n,i.type=o,i}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var n,r;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(r=e["x-attribsPrefix"])||void 0===r?void 0:r[t]}}))},enumerable:!1,configurable:!0}),t}(p);function v(e){return(0,l.isTag)(e)}function y(e){return e.type===l.ElementType.CDATA}function g(e){return e.type===l.ElementType.Text}function b(e){return e.type===l.ElementType.Comment}function w(e){return e.type===l.ElementType.Directive}function E(e){return e.type===l.ElementType.Root}function x(e,t){var n;if(void 0===t&&(t=!1),g(e))n=new c(e.data);else if(b(e))n=new u(e.data);else if(v(e)){var r=t?_(e.children):[],o=new h(e.name,i({},e.attribs),r);r.forEach((function(e){return e.parent=o})),null!=e.namespace&&(o.namespace=e.namespace),e["x-attribsNamespace"]&&(o["x-attribsNamespace"]=i({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(o["x-attribsPrefix"]=i({},e["x-attribsPrefix"])),n=o}else if(y(e)){r=t?_(e.children):[];var l=new f(r);r.forEach((function(e){return e.parent=l})),n=l}else if(E(e)){r=t?_(e.children):[];var a=new m(r);r.forEach((function(e){return e.parent=a})),e["x-mode"]&&(a["x-mode"]=e["x-mode"]),n=a}else{if(!w(e))throw new Error("Not implemented yet: ".concat(e.type));var s=new d(e.name,e.data);null!=e["x-name"]&&(s["x-name"]=e["x-name"],s["x-publicId"]=e["x-publicId"],s["x-systemId"]=e["x-systemId"]),n=s}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function _(e){for(var t=e.map((function(e){return x(e,!0)})),n=1;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES=void 0,t.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES.reduce((function(e,t){return e[t.toLowerCase()]=t,e}),{})},5496:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="html",r="head",o="body",i=/<([a-zA-Z]+[0-9]?)/,l=//i,a=//i,s=function(e,t){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},c=function(e,t){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},u="object"==typeof window&&window.DOMParser;if("function"==typeof u){var d=new u;s=c=function(e,t){return t&&(e="<".concat(t,">").concat(e,"")),d.parseFromString(e,"text/html")}}if("object"==typeof document&&document.implementation){var p=document.implementation.createHTMLDocument();s=function(e,t){if(t){var n=p.documentElement.querySelector(t);return n&&(n.innerHTML=e),p}return p.documentElement.innerHTML=e,p}}var f,m="object"==typeof document&&document.createElement("template");m&&m.content&&(f=function(e){return m.innerHTML=e,m.content.childNodes}),t.default=function(e){var t,u,d=e.match(i),p=d&&d[1]?d[1].toLowerCase():"";switch(p){case n:var m=c(e);return l.test(e)||null===(t=null==(v=m.querySelector(r))?void 0:v.parentNode)||void 0===t||t.removeChild(v),a.test(e)||null===(u=null==(v=m.querySelector(o))?void 0:v.parentNode)||void 0===u||u.removeChild(v),m.querySelectorAll(n);case r:case o:var h=s(e).querySelectorAll(p);return a.test(e)&&l.test(e)?h[0].parentNode.childNodes:h;default:return f?f(e):(v=s(e,o).querySelector(o)).childNodes;var v}}},2471:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(5496)),i=n(7731),l=/<(![a-zA-Z\s]+)>/;t.default=function(e){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];var t=e.match(l),n=t?t[1]:void 0;return(0,i.formatDOM)((0,o.default)(e),null,n)}},7731:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatDOM=t.formatAttributes=void 0;var r=n(1141),o=n(5270);function i(e){for(var t={},n=0,r=e.length;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(4210),o=n(4958),i=["checked","value"],l=["input","select","textarea"],a={reset:!0,submit:!0};function s(e){return r.possibleStandardNames[e]}t.default=function(e,t){void 0===e&&(e={});var n={},c=Boolean(e.type&&a[e.type]);for(var u in e){var d=e[u];if((0,r.isCustomAttribute)(u))n[u]=d;else{var p=u.toLowerCase(),f=s(p);if(f){var m=(0,r.getPropertyInfo)(f);switch(i.includes(f)&&l.includes(t)&&!c&&(f=s("default"+p)),n[f]=d,m&&m.type){case r.BOOLEAN:n[f]=!0;break;case r.OVERLOADED_BOOLEAN:""===d&&(n[f]=!0)}}else o.PRESERVE_CUSTOM_ATTRIBUTES&&(n[u]=d)}}return(0,o.setStyleProp)(e.style,n),n}},308:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(1609),i=r(n(840)),l=n(4958),a={cloneElement:o.cloneElement,createElement:o.createElement,isValidElement:o.isValidElement};function s(e){return l.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&(0,l.isCustomComponent)(e.name,e.attribs)}t.default=function e(t,n){void 0===n&&(n={});for(var r=[],o="function"==typeof n.replace,c=n.transform||l.returnFirstArg,u=n.library||a,d=u.cloneElement,p=u.createElement,f=u.isValidElement,m=t.length,h=0;h1&&(y=d(y,{key:y.key||h})),r.push(c(y,v,h));continue}}if("text"!==v.type){var g=v,b={};s(g)?((0,l.setStyleProp)(g.attribs.style,g.attribs),b=g.attribs):g.attribs&&(b=(0,i.default)(g.attribs,g.name));var w=void 0;switch(v.type){case"script":case"style":v.children[0]&&(b.dangerouslySetInnerHTML={__html:v.children[0].data});break;case"tag":"textarea"===v.name&&v.children[0]?b.defaultValue=v.children[0].data:v.children&&v.children.length&&(w=e(v.children,n));break;default:continue}m>1&&(b.key=h),r.push(c(p(v.name,b,w),v,h))}else{var E=!v.data.trim().length;if(E&&v.parent&&!(0,l.canTextBeChildOfNode)(v.parent))continue;if(n.trim&&E)continue;r.push(c(v.data,v,h))}}return 1===r.length?r[0]:r}},442:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.htmlToDOM=t.domToReact=t.attributesToProps=t.Text=t.ProcessingInstruction=t.Element=t.Comment=void 0;var o=r(n(2471));t.htmlToDOM=o.default;var i=r(n(840));t.attributesToProps=i.default;var l=r(n(308));t.domToReact=l.default;var a=n(1141);Object.defineProperty(t,"Comment",{enumerable:!0,get:function(){return a.Comment}}),Object.defineProperty(t,"Element",{enumerable:!0,get:function(){return a.Element}}),Object.defineProperty(t,"ProcessingInstruction",{enumerable:!0,get:function(){return a.ProcessingInstruction}}),Object.defineProperty(t,"Text",{enumerable:!0,get:function(){return a.Text}});var s={lowerCaseAttributeNames:!1};t.default=function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");return e?(0,l.default)((0,o.default)(e,(null==t?void 0:t.htmlparser2)||s),t):[]}},4958:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.returnFirstArg=t.canTextBeChildOfNode=t.ELEMENTS_WITH_NO_TEXT_CHILDREN=t.PRESERVE_CUSTOM_ATTRIBUTES=t.setStyleProp=t.isCustomComponent=void 0;var o=n(1609),i=r(n(5229)),l=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);t.isCustomComponent=function(e,t){return e.includes("-")?!l.has(e):Boolean(t&&"string"==typeof t.is)};var a={reactCompat:!0};t.setStyleProp=function(e,t){if("string"==typeof e)if(e.trim())try{t.style=(0,i.default)(e,a)}catch(e){t.style={}}else t.style={}},t.PRESERVE_CUSTOM_ATTRIBUTES=Number(o.version.split(".")[0])>=16,t.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]),t.canTextBeChildOfNode=function(e){return!t.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(e.name)},t.returnFirstArg=function(e){return e}},9788:e=>{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,l=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,s=/^\s+|\s+$/g,c="";function u(e){return e?e.replace(s,c):c}e.exports=function(e,s){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];s=s||{};var d=1,p=1;function f(e){var t=e.match(n);t&&(d+=t.length);var r=e.lastIndexOf("\n");p=~r?e.length-r:p+e.length}function m(){var e={line:d,column:p};return function(t){return t.position=new h(e),b(),t}}function h(e){this.start=e,this.end={line:d,column:p},this.source=s.source}h.prototype.content=e;var v=[];function y(t){var n=new Error(s.source+":"+d+":"+p+": "+t);if(n.reason=t,n.filename=s.source,n.line=d,n.column=p,n.source=e,!s.silent)throw n;v.push(n)}function g(t){var n=t.exec(e);if(n){var r=n[0];return f(r),e=e.slice(r.length),n}}function b(){g(r)}function w(e){var t;for(e=e||[];t=E();)!1!==t&&e.push(t);return e}function E(){var t=m();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;c!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,c===e.charAt(n-1))return y("End of comment missing");var r=e.slice(2,n-2);return p+=2,f(r),e=e.slice(n),p+=2,t({type:"comment",comment:r})}}function x(){var e=m(),n=g(o);if(n){if(E(),!g(i))return y("property missing ':'");var r=g(l),s=e({type:"declaration",property:u(n[0].replace(t,c)),value:r?u(r[0].replace(t,c)):c});return g(a),s}}return b(),function(){var e,t=[];for(w(t);e=x();)!1!==e&&(t.push(e),w(t));return t}()}},4210:(e,t,n)=>{"use strict";function r(e,t,n,r,o,i,l){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=l}const o={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach((e=>{o[e]=new r(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((([e,t])=>{o[e]=new r(e,1,!1,t,null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((e=>{o[e]=new r(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((e=>{o[e]=new r(e,2,!1,e,null,!1,!1)})),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach((e=>{o[e]=new r(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((e=>{o[e]=new r(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((e=>{o[e]=new r(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((e=>{o[e]=new r(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((e=>{o[e]=new r(e,5,!1,e.toLowerCase(),null,!1,!1)}));const i=/[\-\:]([a-z])/g,l=e=>e[1].toUpperCase();["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach((e=>{const t=e.replace(i,l);o[t]=new r(t,1,!1,e,null,!1,!1)})),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach((e=>{const t=e.replace(i,l);o[t]=new r(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((e=>{const t=e.replace(i,l);o[t]=new r(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((e=>{o[e]=new r(e,1,!1,e.toLowerCase(),null,!1,!1)})),o.xlinkHref=new r("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((e=>{o[e]=new r(e,1,!1,e.toLowerCase(),null,!0,!0)}));const{CAMELCASE:a,SAME:s,possibleStandardNames:c}=n(6811),u=RegExp.prototype.test.bind(new RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")),d=Object.keys(c).reduce(((e,t)=>{const n=c[t];return n===s?e[t]=t:n===a?e[t.toLowerCase()]=t:e[t]=n,e}),{});t.BOOLEAN=3,t.BOOLEANISH_STRING=2,t.NUMERIC=5,t.OVERLOADED_BOOLEAN=4,t.POSITIVE_NUMERIC=6,t.RESERVED=0,t.STRING=1,t.getPropertyInfo=function(e){return o.hasOwnProperty(e)?o[e]:null},t.isCustomAttribute=u,t.possibleStandardNames=d},6811:(e,t)=>{t.SAME=0,t.CAMELCASE=1,t.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}},5229:function(e,t,n){"use strict";var r=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n(1133)),o=n(8917);function i(e,t){var n={};return e&&"string"==typeof e?((0,r.default)(e,(function(e,r){e&&r&&(n[(0,o.camelCase)(e,t)]=r)})),n):n}i.default=i,e.exports=i},8917:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=void 0;var n=/^--[a-zA-Z0-9-]+$/,r=/-([a-z])/g,o=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,l=/^-(ms)-/,a=function(e,t){return t.toUpperCase()},s=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||o.test(e)||n.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(l,s):e.replace(i,s)).replace(r,a))}},1133:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(9788));t.default=function(e,t){var n=null;if(!e||"string"!=typeof e)return n;var r=(0,o.default)(e),i="function"==typeof t;return r.forEach((function(e){if("declaration"===e.type){var r=e.property,o=e.value;i?t(r,o,e):o&&((n=n||{})[r]=o)}})),n}},1609:e=>{"use strict";e.exports=window.React},6942:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t{if(!n){var l=1/0;for(u=0;u=i)&&Object.keys(r.O).every((e=>r.O[e](n[s])))?n.splice(s--,1):(a=!1,i0&&e[u-1][2]>i;u--)e[u]=e[u-1];e[u]=[n,o,i]},r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={908:0,812:0};r.O.j=t=>0===e[t];var t=(t,n)=>{var o,i,[l,a,s]=n,c=0;if(l.some((t=>0!==e[t]))){for(o in a)r.o(a,o)&&(r.m[o]=a[o]);if(s)var u=s(r)}for(t&&t(n);cr(2041)));o=r.O(o)})(); \ No newline at end of file +(()=>{var e,t={2041:(e,t,n)=>{"use strict";const r=window.wp.blocks;var o=n(1609);const i=window.wp.i18n,l=window.wp.blockEditor,a=window.wp.components,s=window.wp.data,c=window.wp.element,u=e=>{const t=(0,s.select)("core")?.canUser("create","posts"),n=Boolean((0,s.select)("core/edit-post")),{zoom:r,type:i,className:l}=e;let{location:a,height:c}=e;if(c||(c=300),!t||n||a||(a="660 4th Street #119 San Francisco CA 94107, USA"),!a)return(0,o.createElement)(o.Fragment,null);const u={border:0,height:c,width:"100%"},d="https://maps.google.com/maps?"+new URLSearchParams({q:a,z:r||10,t:i||"m",output:"embed"}).toString();return(0,o.createElement)("iframe",{src:d,style:u,className:l,title:a})},d=Math.min,p=Math.max,f=Math.round,m=Math.floor,h=e=>({x:e,y:e}),v={left:"right",right:"left",bottom:"top",top:"bottom"},g={start:"end",end:"start"};function y(e,t,n){return p(e,d(t,n))}function b(e,t){return"function"==typeof e?e(t):e}function w(e){return e.split("-")[0]}function E(e){return e.split("-")[1]}function x(e){return"x"===e?"y":"x"}function _(e){return"y"===e?"height":"width"}function S(e){return["top","bottom"].includes(w(e))?"y":"x"}function T(e){return x(S(e))}function k(e){return e.replace(/start|end/g,(e=>g[e]))}function A(e){return e.replace(/left|right|bottom|top/g,(e=>v[e]))}function O(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function C(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function N(e,t,n){let{reference:r,floating:o}=e;const i=S(t),l=T(t),a=_(l),s=w(t),c="y"===i,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,p=r[a]/2-o[a]/2;let f;switch(s){case"top":f={x:u,y:r.y-o.height};break;case"bottom":f={x:u,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:d};break;case"left":f={x:r.x-o.width,y:d};break;default:f={x:r.x,y:r.y}}switch(E(t)){case"start":f[l]-=p*(n&&c?-1:1);break;case"end":f[l]+=p*(n&&c?-1:1)}return f}async function R(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:l,elements:a,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:f=0}=b(t,e),m=O(f),h=a[p?"floating"===d?"reference":"floating":d],v=C(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:s})),g="floating"===d?{x:r,y:o,width:l.floating.width,height:l.floating.height}:l.reference,y=await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),w=await(null==i.isElement?void 0:i.isElement(y))&&await(null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},E=C(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:g,offsetParent:y,strategy:s}):g);return{top:(v.top-E.top+m.top)/w.y,bottom:(E.bottom-v.bottom+m.bottom)/w.y,left:(v.left-E.left+m.left)/w.x,right:(E.right-v.right+m.right)/w.x}}function P(e){return D(e)?(e.nodeName||"").toLowerCase():"#document"}function L(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function I(e){var t;return null==(t=(D(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function D(e){return e instanceof Node||e instanceof L(e).Node}function M(e){return e instanceof Element||e instanceof L(e).Element}function F(e){return e instanceof HTMLElement||e instanceof L(e).HTMLElement}function j(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof L(e).ShadowRoot)}function H(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=q(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function z(e){return["table","td","th"].includes(P(e))}function B(e){const t=V(),n=q(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function V(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function W(e){return["html","body","#document"].includes(P(e))}function q(e){return L(e).getComputedStyle(e)}function $(e){return M(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function U(e){if("html"===P(e))return e;const t=e.assignedSlot||e.parentNode||j(e)&&e.host||I(e);return j(t)?t.host:t}function X(e){const t=U(e);return W(t)?e.ownerDocument?e.ownerDocument.body:e.body:F(t)&&H(t)?t:X(t)}function G(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=X(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),l=L(o);return i?t.concat(l,l.visualViewport||[],H(o)?o:[],l.frameElement&&n?G(l.frameElement):[]):t.concat(o,G(o,[],n))}function Y(e){const t=q(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=F(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:r,a=f(n)!==i||f(r)!==l;return a&&(n=i,r=l),{width:n,height:r,$:a}}function Z(e){return M(e)?e:e.contextElement}function K(e){const t=Z(e);if(!F(t))return h(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Y(t);let l=(i?f(n.width):n.width)/r,a=(i?f(n.height):n.height)/o;return l&&Number.isFinite(l)||(l=1),a&&Number.isFinite(a)||(a=1),{x:l,y:a}}const J=h(0);function Q(e){const t=L(e);return V()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:J}function ee(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=Z(e);let l=h(1);t&&(r?M(r)&&(l=K(r)):l=K(e));const a=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==L(e))&&t}(i,n,r)?Q(i):h(0);let s=(o.left+a.x)/l.x,c=(o.top+a.y)/l.y,u=o.width/l.x,d=o.height/l.y;if(i){const e=L(i),t=r&&M(r)?L(r):r;let n=e,o=n.frameElement;for(;o&&r&&t!==n;){const e=K(o),t=o.getBoundingClientRect(),r=q(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,c*=e.y,u*=e.x,d*=e.y,s+=i,c+=l,n=L(o),o=n.frameElement}}return C({width:u,height:d,x:s,y:c})}const te=[":popover-open",":modal"];function ne(e){return te.some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function re(e){return ee(I(e)).left+$(e).scrollLeft}function oe(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=L(e),r=I(e),o=n.visualViewport;let i=r.clientWidth,l=r.clientHeight,a=0,s=0;if(o){i=o.width,l=o.height;const e=V();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,s=o.offsetTop)}return{width:i,height:l,x:a,y:s}}(e,n);else if("document"===t)r=function(e){const t=I(e),n=$(e),r=e.ownerDocument.body,o=p(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=p(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+re(e);const a=-n.scrollTop;return"rtl"===q(r).direction&&(l+=p(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:l,y:a}}(I(e));else if(M(t))r=function(e,t){const n=ee(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=F(e)?K(e):h(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=Q(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return C(r)}function ie(e,t){const n=U(e);return!(n===t||!M(n)||W(n))&&("fixed"===q(n).position||ie(n,t))}function le(e,t,n){const r=F(t),o=I(t),i="fixed"===n,l=ee(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const s=h(0);if(r||!r&&!i)if(("body"!==P(t)||H(o))&&(a=$(t)),r){const e=ee(t,!0,i,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&(s.x=re(o));return{x:l.left+a.scrollLeft-s.x,y:l.top+a.scrollTop-s.y,width:l.width,height:l.height}}function ae(e){return"static"===q(e).position}function se(e,t){return F(e)&&"fixed"!==q(e).position?t?t(e):e.offsetParent:null}function ce(e,t){const n=L(e);if(ne(e))return n;if(!F(e)){let t=U(e);for(;t&&!W(t);){if(M(t)&&!ae(t))return t;t=U(t)}return n}let r=se(e,t);for(;r&&z(r)&&ae(r);)r=se(r,t);return r&&W(r)&&ae(r)&&!B(r)?n:r||function(e){let t=U(e);for(;F(t)&&!W(t);){if(B(t))return t;t=U(t)}return null}(e)||n}const ue={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,l=I(r),a=!!t&&ne(t.floating);if(r===l||a&&i)return n;let s={scrollLeft:0,scrollTop:0},c=h(1);const u=h(0),d=F(r);if((d||!d&&!i)&&(("body"!==P(r)||H(l))&&(s=$(r)),F(r))){const e=ee(r);c=K(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-s.scrollLeft*c.x+u.x,y:n.y*c.y-s.scrollTop*c.y+u.y}},getDocumentElement:I,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?ne(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=G(e,[],!1).filter((e=>M(e)&&"body"!==P(e))),o=null;const i="fixed"===q(e).position;let l=i?U(e):e;for(;M(l)&&!W(l);){const t=q(l),n=B(l);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||H(l)&&!n&&ie(e,l))?r=r.filter((e=>e!==l)):o=t,l=U(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],l=i[0],a=i.reduce(((e,n)=>{const r=oe(t,n,o);return e.top=p(r.top,e.top),e.right=d(r.right,e.right),e.bottom=d(r.bottom,e.bottom),e.left=p(r.left,e.left),e}),oe(t,l,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:ce,getElementRects:async function(e){const t=this.getOffsetParent||ce,n=this.getDimensions,r=await n(e.floating);return{reference:le(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=Y(e);return{width:t,height:n}},getScale:K,isElement:M,isRTL:function(e){return"rtl"===q(e).direction}};const de=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:l,middlewareData:a}=t,s=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),l=w(n),a=E(n),s="y"===S(n),c=["left","top"].includes(l)?-1:1,u=i&&s?-1:1,d=b(t,e);let{mainAxis:p,crossAxis:f,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return a&&"number"==typeof m&&(f="end"===a?-1*m:m),s?{x:f*u,y:p*c}:{x:p*c,y:f*u}}(t,e);return l===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+s.x,y:i+s.y,data:{...s,placement:l}}}}},pe=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=b(e,t),c={x:n,y:r},u=await R(t,s),d=S(w(o)),p=x(d);let f=c[p],m=c[d];if(i){const e="y"===p?"bottom":"right";f=y(f+u["y"===p?"top":"left"],f,f-u[e])}if(l){const e="y"===d?"bottom":"right";m=y(m+u["y"===d?"top":"left"],m,m-u[e])}const h=a.fn({...t,[p]:f,[d]:m});return{...h,data:{x:h.x-n,y:h.y-r}}}}},fe=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:l,initialPlacement:a,platform:s,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,...v}=b(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const g=w(o),y=w(a)===a,x=await(null==s.isRTL?void 0:s.isRTL(c.floating)),S=p||(y||!h?[A(a)]:function(e){const t=A(e);return[k(e),t,k(t)]}(a));p||"none"===m||S.push(...function(e,t,n,r){const o=E(e);let i=function(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],l=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:l;default:return[]}}(w(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(k)))),i}(a,h,m,x));const O=[a,...S],C=await R(t,v),N=[];let P=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&N.push(C[g]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=E(e),o=T(e),i=_(o);let l="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=A(l)),[l,A(l)]}(o,l,x);N.push(C[e[0]],C[e[1]])}if(P=[...P,{placement:o,overflows:N}],!N.every((e=>e<=0))){var L,I;const e=((null==(L=i.flip)?void 0:L.index)||0)+1,t=O[e];if(t)return{data:{index:e,overflows:P},reset:{placement:t}};let n=null==(I=P.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:I.placement;if(!n)switch(f){case"bestFit":{var D;const e=null==(D=P.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:D[0];e&&(n=e);break}case"initialPlacement":n=a}if(o!==n)return{reset:{placement:n}}}return{}}}},me=(e,t,n)=>{const r=new Map,o={platform:ue,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,a=i.filter(Boolean),s=await(null==l.isRTL?void 0:l.isRTL(t));let c=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=N(c,r,s),p=r,f={},m=0;for(let n=0;n{if(!e)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};if(null===t)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};const s=l;return n?(s.push({name:"arrow",options:c={element:n,padding:5},async fn(e){const{x:t,y:n,placement:r,rects:o,platform:i,elements:l,middlewareData:a}=e,{element:s,padding:u=0}=b(c,e)||{};if(null==s)return{};const p=O(u),f={x:t,y:n},m=T(r),h=_(m),v=await i.getDimensions(s),g="y"===m,w=g?"top":"left",x=g?"bottom":"right",S=g?"clientHeight":"clientWidth",k=o.reference[h]+o.reference[m]-f[m]-o.floating[h],A=f[m]-o.reference[m],C=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s));let N=C?C[S]:0;N&&await(null==i.isElement?void 0:i.isElement(C))||(N=l.floating[S]||o.floating[h]);const R=k/2-A/2,P=N/2-v[h]/2-1,L=d(p[w],P),I=d(p[x],P),D=L,M=N-v[h]-I,F=N/2-v[h]/2+R,j=y(D,F,M),H=!a.arrow&&null!=E(r)&&F!==j&&o.reference[h]/2-(F{var o,i;const l={left:`${e}px`,top:`${t}px`,border:a},{x:s,y:c}=null!==(o=r.arrow)&&void 0!==o?o:{x:0,y:0},u=null!==(i={top:"bottom",right:"left",bottom:"top",left:"right"}[n.split("-")[0]])&&void 0!==i?i:"bottom",d=a&&{borderBottom:a,borderRight:a};let p=0;if(a){const e=`${a}`.match(/(\d+)px/);p=(null==e?void 0:e[1])?Number(e[1]):1}return{tooltipStyles:l,tooltipArrowStyles:{left:null!=s?`${s}px`:"",top:null!=c?`${c}px`:"",right:"",bottom:"",...d,[u]:`-${4+p}px`},place:n}}))):me(e,t,{placement:"bottom",strategy:i,middleware:s}).then((({x:e,y:t,placement:n})=>({tooltipStyles:{left:`${e}px`,top:`${t}px`},tooltipArrowStyles:{},place:n})));var c},be=(e,t)=>!("CSS"in window&&"supports"in window.CSS)||window.CSS.supports(e,t),we=(e,t,n)=>{let r=null;const o=function(...o){const i=()=>{r=null,n||e.apply(this,o)};n&&!r&&(e.apply(this,o),r=setTimeout(i,t)),n||(r&&clearTimeout(r),r=setTimeout(i,t))};return o.cancel=()=>{r&&(clearTimeout(r),r=null)},o},Ee=e=>null!==e&&!Array.isArray(e)&&"object"==typeof e,xe=(e,t)=>{if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&e.every(((e,n)=>xe(e,t[n])));if(Array.isArray(e)!==Array.isArray(t))return!1;if(!Ee(e)||!Ee(t))return e===t;const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every((n=>xe(e[n],t[n])))},_e=e=>{if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;const t=getComputedStyle(e);return["overflow","overflow-x","overflow-y"].some((e=>{const n=t.getPropertyValue(e);return"auto"===n||"scroll"===n}))},Se=e=>{if(!e)return null;let t=e.parentElement;for(;t;){if(_e(t))return t;t=t.parentElement}return document.scrollingElement||document.documentElement},Te="undefined"!=typeof window?o.useLayoutEffect:o.useEffect,ke={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},Ae=(0,o.createContext)({getTooltipData:()=>ke});function Oe(e="DEFAULT_TOOLTIP_ID"){return(0,o.useContext)(Ae).getTooltipData(e)}var Ce={tooltip:"core-styles-module_tooltip__3vRRp",fixed:"core-styles-module_fixed__pcSol",arrow:"core-styles-module_arrow__cvMwQ",noArrow:"core-styles-module_noArrow__xock6",clickable:"core-styles-module_clickable__ZuTTB",show:"core-styles-module_show__Nt9eE",closing:"core-styles-module_closing__sGnxF"},Ne={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const Re=({forwardRef:e,id:t,className:n,classNameArrow:r,variant:i="dark",anchorId:l,anchorSelect:a,place:s="top",offset:c=10,events:u=["hover"],openOnClick:f=!1,positionStrategy:h="absolute",middlewares:v,wrapper:g,delayShow:y=0,delayHide:b=0,float:w=!1,hidden:E=!1,noArrow:x=!1,clickable:_=!1,closeOnEsc:S=!1,closeOnScroll:T=!1,closeOnResize:k=!1,openEvents:A,closeEvents:O,globalCloseEvents:C,imperativeModeOnly:N,style:R,position:P,afterShow:L,afterHide:D,content:M,contentWrapperRef:F,isOpen:j,defaultIsOpen:H=!1,setIsOpen:z,activeAnchor:B,setActiveAnchor:V,border:W,opacity:q,arrowColor:$,role:U="tooltip"})=>{var X;const Y=(0,o.useRef)(null),K=(0,o.useRef)(null),J=(0,o.useRef)(null),Q=(0,o.useRef)(null),te=(0,o.useRef)(null),[ne,re]=(0,o.useState)({tooltipStyles:{},tooltipArrowStyles:{},place:s}),[oe,ie]=(0,o.useState)(!1),[le,ae]=(0,o.useState)(!1),[se,ce]=(0,o.useState)(null),ue=(0,o.useRef)(!1),de=(0,o.useRef)(null),{anchorRefs:pe,setActiveAnchor:fe}=Oe(t),me=(0,o.useRef)(!1),[ve,ge]=(0,o.useState)([]),be=(0,o.useRef)(!1),Ee=f||u.includes("click"),_e=Ee||(null==A?void 0:A.click)||(null==A?void 0:A.dblclick)||(null==A?void 0:A.mousedown),ke=A?{...A}:{mouseenter:!0,focus:!0,click:!1,dblclick:!1,mousedown:!1};!A&&Ee&&Object.assign(ke,{mouseenter:!1,focus:!1,click:!0});const Ae=O?{...O}:{mouseleave:!0,blur:!0,click:!1,dblclick:!1,mouseup:!1};!O&&Ee&&Object.assign(Ae,{mouseleave:!1,blur:!1});const Re=C?{...C}:{escape:S||!1,scroll:T||!1,resize:k||!1,clickOutsideAnchor:_e||!1};N&&(Object.assign(ke,{mouseenter:!1,focus:!1,click:!1,dblclick:!1,mousedown:!1}),Object.assign(Ae,{mouseleave:!1,blur:!1,click:!1,dblclick:!1,mouseup:!1}),Object.assign(Re,{escape:!1,scroll:!1,resize:!1,clickOutsideAnchor:!1})),Te((()=>(be.current=!0,()=>{be.current=!1})),[]);const Pe=e=>{be.current&&(e&&ae(!0),setTimeout((()=>{be.current&&(null==z||z(e),void 0===j&&ie(e))}),10))};(0,o.useEffect)((()=>{if(void 0===j)return()=>null;j&&ae(!0);const e=setTimeout((()=>{ie(j)}),10);return()=>{clearTimeout(e)}}),[j]),(0,o.useEffect)((()=>{if(oe!==ue.current)if(te.current&&clearTimeout(te.current),ue.current=oe,oe)null==L||L();else{const e=(e=>{const t=getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay").match(/^([\d.]+)(ms|s)$/);if(!t)return 0;const[,n,r]=t;return Number(n)*("ms"===r?1:1e3)})();te.current=setTimeout((()=>{ae(!1),ce(null),null==D||D()}),e+25)}}),[oe]);const Le=e=>{re((t=>xe(t,e)?t:e))},Ie=(e=y)=>{J.current&&clearTimeout(J.current),le?Pe(!0):J.current=setTimeout((()=>{Pe(!0)}),e)},De=(e=b)=>{Q.current&&clearTimeout(Q.current),Q.current=setTimeout((()=>{me.current||Pe(!1)}),e)},Me=e=>{var t;if(!e)return;const n=null!==(t=e.currentTarget)&&void 0!==t?t:e.target;if(!(null==n?void 0:n.isConnected))return V(null),void fe({current:null});y?Ie():Pe(!0),V(n),fe({current:n}),Q.current&&clearTimeout(Q.current)},Fe=()=>{_?De(b||100):b?De():Pe(!1),J.current&&clearTimeout(J.current)},je=({x:e,y:t})=>{var n;const r={getBoundingClientRect:()=>({x:e,y:t,width:0,height:0,top:t,left:e,right:e,bottom:t})};ye({place:null!==(n=null==se?void 0:se.place)&&void 0!==n?n:s,offset:c,elementReference:r,tooltipReference:Y.current,tooltipArrowReference:K.current,strategy:h,middlewares:v,border:W}).then((e=>{Le(e)}))},He=e=>{if(!e)return;const t=e,n={x:t.clientX,y:t.clientY};je(n),de.current=n},ze=e=>{var t;if(!oe)return;const n=e.target;n.isConnected&&((null===(t=Y.current)||void 0===t?void 0:t.contains(n))||[document.querySelector(`[id='${l}']`),...ve].some((e=>null==e?void 0:e.contains(n)))||(Pe(!1),J.current&&clearTimeout(J.current)))},Be=we(Me,50,!0),Ve=we(Fe,50,!0),We=e=>{Ve.cancel(),Be(e)},qe=()=>{Be.cancel(),Ve()},$e=(0,o.useCallback)((()=>{var e,t;const n=null!==(e=null==se?void 0:se.position)&&void 0!==e?e:P;n?je(n):w?de.current&&je(de.current):(null==B?void 0:B.isConnected)&&ye({place:null!==(t=null==se?void 0:se.place)&&void 0!==t?t:s,offset:c,elementReference:B,tooltipReference:Y.current,tooltipArrowReference:K.current,strategy:h,middlewares:v,border:W}).then((e=>{be.current&&Le(e)}))}),[oe,B,M,R,s,null==se?void 0:se.place,c,h,P,null==se?void 0:se.position,w]);(0,o.useEffect)((()=>{var e,t;const n=new Set(pe);ve.forEach((e=>{n.add({current:e})}));const r=document.querySelector(`[id='${l}']`);r&&n.add({current:r});const o=()=>{Pe(!1)},i=Se(B),a=Se(Y.current);Re.scroll&&(window.addEventListener("scroll",o),null==i||i.addEventListener("scroll",o),null==a||a.addEventListener("scroll",o));let s=null;Re.resize?window.addEventListener("resize",o):B&&Y.current&&(s=function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:s=!1}=r,c=Z(e),u=o||i?[...c?G(c):[],...G(t)]:[];u.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const f=c&&a?function(e,t){let n,r=null;const o=I(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function l(a,s){void 0===a&&(a=!1),void 0===s&&(s=1),i();const{left:c,top:u,width:f,height:h}=e.getBoundingClientRect();if(a||t(),!f||!h)return;const v={rootMargin:-m(u)+"px "+-m(o.clientWidth-(c+f))+"px "+-m(o.clientHeight-(u+h))+"px "+-m(c)+"px",threshold:p(0,d(1,s))||1};let g=!0;function y(e){const t=e[0].intersectionRatio;if(t!==s){if(!g)return l();t?l(!1,t):n=setTimeout((()=>{l(!1,1e-7)}),1e3)}g=!1}try{r=new IntersectionObserver(y,{...v,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(y,v)}r.observe(e)}(!0),i}(c,n):null;let h,v=-1,g=null;l&&(g=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&g&&(g.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame((()=>{var e;null==(e=g)||e.observe(t)}))),n()})),c&&!s&&g.observe(c),g.observe(t));let y=s?ee(e):null;return s&&function t(){const r=ee(e);!y||r.x===y.x&&r.y===y.y&&r.width===y.width&&r.height===y.height||n(),y=r,h=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==f||f(),null==(e=g)||e.disconnect(),g=null,s&&cancelAnimationFrame(h)}}(B,Y.current,$e,{ancestorResize:!0,elementResize:!0,layoutShift:!0}));const c=e=>{"Escape"===e.key&&Pe(!1)};Re.escape&&window.addEventListener("keydown",c),Re.clickOutsideAnchor&&window.addEventListener("click",ze);const u=[],f=e=>{oe&&(null==e?void 0:e.target)===B||Me(e)},h=e=>{oe&&(null==e?void 0:e.target)===B&&Fe()},v=["mouseenter","mouseleave","focus","blur"],g=["click","dblclick","mousedown","mouseup"];Object.entries(ke).forEach((([e,t])=>{t&&(v.includes(e)?u.push({event:e,listener:We}):g.includes(e)&&u.push({event:e,listener:f}))})),Object.entries(Ae).forEach((([e,t])=>{t&&(v.includes(e)?u.push({event:e,listener:qe}):g.includes(e)&&u.push({event:e,listener:h}))})),w&&u.push({event:"pointermove",listener:He});const y=()=>{me.current=!0},b=()=>{me.current=!1,Fe()};return _&&!_e&&(null===(e=Y.current)||void 0===e||e.addEventListener("mouseenter",y),null===(t=Y.current)||void 0===t||t.addEventListener("mouseleave",b)),u.forEach((({event:e,listener:t})=>{n.forEach((n=>{var r;null===(r=n.current)||void 0===r||r.addEventListener(e,t)}))})),()=>{var e,t;Re.scroll&&(window.removeEventListener("scroll",o),null==i||i.removeEventListener("scroll",o),null==a||a.removeEventListener("scroll",o)),Re.resize?window.removeEventListener("resize",o):null==s||s(),Re.clickOutsideAnchor&&window.removeEventListener("click",ze),Re.escape&&window.removeEventListener("keydown",c),_&&!_e&&(null===(e=Y.current)||void 0===e||e.removeEventListener("mouseenter",y),null===(t=Y.current)||void 0===t||t.removeEventListener("mouseleave",b)),u.forEach((({event:e,listener:t})=>{n.forEach((n=>{var r;null===(r=n.current)||void 0===r||r.removeEventListener(e,t)}))}))}}),[B,$e,le,pe,ve,A,O,C,Ee,y,b]),(0,o.useEffect)((()=>{var e,n;let r=null!==(n=null!==(e=null==se?void 0:se.anchorSelect)&&void 0!==e?e:a)&&void 0!==n?n:"";!r&&t&&(r=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`);const o=new MutationObserver((e=>{const n=[],o=[];e.forEach((e=>{if("attributes"===e.type&&"data-tooltip-id"===e.attributeName&&(e.target.getAttribute("data-tooltip-id")===t?n.push(e.target):e.oldValue===t&&o.push(e.target)),"childList"===e.type){if(B){const t=[...e.removedNodes].filter((e=>1===e.nodeType));if(r)try{o.push(...t.filter((e=>e.matches(r)))),o.push(...t.flatMap((e=>[...e.querySelectorAll(r)])))}catch(e){}t.some((e=>{var t;return!!(null===(t=null==e?void 0:e.contains)||void 0===t?void 0:t.call(e,B))&&(ae(!1),Pe(!1),V(null),J.current&&clearTimeout(J.current),Q.current&&clearTimeout(Q.current),!0)}))}if(r)try{const t=[...e.addedNodes].filter((e=>1===e.nodeType));n.push(...t.filter((e=>e.matches(r)))),n.push(...t.flatMap((e=>[...e.querySelectorAll(r)])))}catch(e){}}})),(n.length||o.length)&&ge((e=>[...e.filter((e=>!o.includes(e))),...n]))}));return o.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"],attributeOldValue:!0}),()=>{o.disconnect()}}),[t,a,null==se?void 0:se.anchorSelect,B]),(0,o.useEffect)((()=>{$e()}),[$e]),(0,o.useEffect)((()=>{if(!(null==F?void 0:F.current))return()=>null;const e=new ResizeObserver((()=>{setTimeout((()=>$e()))}));return e.observe(F.current),()=>{e.disconnect()}}),[M,null==F?void 0:F.current]),(0,o.useEffect)((()=>{var e;const t=document.querySelector(`[id='${l}']`),n=[...ve,t];B&&n.includes(B)||V(null!==(e=ve[0])&&void 0!==e?e:t)}),[l,ve,B]),(0,o.useEffect)((()=>(H&&Pe(!0),()=>{J.current&&clearTimeout(J.current),Q.current&&clearTimeout(Q.current)})),[]),(0,o.useEffect)((()=>{var e;let n=null!==(e=null==se?void 0:se.anchorSelect)&&void 0!==e?e:a;if(!n&&t&&(n=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`),n)try{const e=Array.from(document.querySelectorAll(n));ge(e)}catch(e){ge([])}}),[t,a,null==se?void 0:se.anchorSelect]),(0,o.useEffect)((()=>{J.current&&(clearTimeout(J.current),Ie(y))}),[y]);const Ue=null!==(X=null==se?void 0:se.content)&&void 0!==X?X:M,Xe=oe&&Object.keys(ne.tooltipStyles).length>0;return(0,o.useImperativeHandle)(e,(()=>({open:e=>{if(null==e?void 0:e.anchorSelect)try{document.querySelector(e.anchorSelect)}catch(t){return void console.warn(`[react-tooltip] "${e.anchorSelect}" is not a valid CSS selector`)}ce(null!=e?e:null),(null==e?void 0:e.delay)?Ie(e.delay):Pe(!0)},close:e=>{(null==e?void 0:e.delay)?De(e.delay):Pe(!1)},activeAnchor:B,place:ne.place,isOpen:Boolean(le&&!E&&Ue&&Xe)}))),le&&!E&&Ue?o.createElement(g,{id:t,role:U,className:he("react-tooltip",Ce.tooltip,Ne.tooltip,Ne[i],n,`react-tooltip__place-${ne.place}`,Ce[Xe?"show":"closing"],Xe?"react-tooltip__show":"react-tooltip__closing","fixed"===h&&Ce.fixed,_&&Ce.clickable),onTransitionEnd:e=>{te.current&&clearTimeout(te.current),oe||"opacity"!==e.propertyName||(ae(!1),ce(null),null==D||D())},style:{...R,...ne.tooltipStyles,opacity:void 0!==q&&Xe?q:void 0},ref:Y},Ue,o.createElement(g,{className:he("react-tooltip-arrow",Ce.arrow,Ne.arrow,r,x&&Ce.noArrow),style:{...ne.tooltipArrowStyles,background:$?`linear-gradient(to right bottom, transparent 50%, ${$} 50%)`:void 0},ref:K})):null},Pe=({content:e})=>o.createElement("span",{dangerouslySetInnerHTML:{__html:e}}),Le=o.forwardRef((({id:e,anchorId:t,anchorSelect:n,content:r,html:i,render:l,className:a,classNameArrow:s,variant:c="dark",place:u="top",offset:d=10,wrapper:p="div",children:f=null,events:m=["hover"],openOnClick:h=!1,positionStrategy:v="absolute",middlewares:g,delayShow:y=0,delayHide:b=0,float:w=!1,hidden:E=!1,noArrow:x=!1,clickable:_=!1,closeOnEsc:S=!1,closeOnScroll:T=!1,closeOnResize:k=!1,openEvents:A,closeEvents:O,globalCloseEvents:C,imperativeModeOnly:N=!1,style:R,position:P,isOpen:L,defaultIsOpen:I=!1,disableStyleInjection:D=!1,border:M,opacity:F,arrowColor:j,setIsOpen:H,afterShow:z,afterHide:B,role:V="tooltip"},W)=>{const[q,$]=(0,o.useState)(r),[U,X]=(0,o.useState)(i),[G,Y]=(0,o.useState)(u),[Z,K]=(0,o.useState)(c),[J,Q]=(0,o.useState)(d),[ee,te]=(0,o.useState)(y),[ne,re]=(0,o.useState)(b),[oe,ie]=(0,o.useState)(w),[le,ae]=(0,o.useState)(E),[se,ce]=(0,o.useState)(p),[ue,de]=(0,o.useState)(m),[pe,fe]=(0,o.useState)(v),[me,ve]=(0,o.useState)(null),[ge,ye]=(0,o.useState)(null),we=(0,o.useRef)(D),{anchorRefs:Ee,activeAnchor:xe}=Oe(e),_e=e=>null==e?void 0:e.getAttributeNames().reduce(((t,n)=>{var r;return n.startsWith("data-tooltip-")&&(t[n.replace(/^data-tooltip-/,"")]=null!==(r=null==e?void 0:e.getAttribute(n))&&void 0!==r?r:null),t}),{}),Se=e=>{const t={place:e=>{var t;Y(null!==(t=e)&&void 0!==t?t:u)},content:e=>{$(null!=e?e:r)},html:e=>{X(null!=e?e:i)},variant:e=>{var t;K(null!==(t=e)&&void 0!==t?t:c)},offset:e=>{Q(null===e?d:Number(e))},wrapper:e=>{var t;ce(null!==(t=e)&&void 0!==t?t:p)},events:e=>{const t=null==e?void 0:e.split(" ");de(null!=t?t:m)},"position-strategy":e=>{var t;fe(null!==(t=e)&&void 0!==t?t:v)},"delay-show":e=>{te(null===e?y:Number(e))},"delay-hide":e=>{re(null===e?b:Number(e))},float:e=>{ie(null===e?w:"true"===e)},hidden:e=>{ae(null===e?E:"true"===e)},"class-name":e=>{ve(e)}};Object.values(t).forEach((e=>e(null))),Object.entries(e).forEach((([e,n])=>{var r;null===(r=t[e])||void 0===r||r.call(t,n)}))};(0,o.useEffect)((()=>{$(r)}),[r]),(0,o.useEffect)((()=>{X(i)}),[i]),(0,o.useEffect)((()=>{Y(u)}),[u]),(0,o.useEffect)((()=>{K(c)}),[c]),(0,o.useEffect)((()=>{Q(d)}),[d]),(0,o.useEffect)((()=>{te(y)}),[y]),(0,o.useEffect)((()=>{re(b)}),[b]),(0,o.useEffect)((()=>{ie(w)}),[w]),(0,o.useEffect)((()=>{ae(E)}),[E]),(0,o.useEffect)((()=>{fe(v)}),[v]),(0,o.useEffect)((()=>{we.current!==D&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")}),[D]),(0,o.useEffect)((()=>{"undefined"!=typeof window&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:"core"===D,disableBase:D}}))}),[]),(0,o.useEffect)((()=>{var r;const o=new Set(Ee);let i=n;if(!i&&e&&(i=`[data-tooltip-id='${e.replace(/'/g,"\\'")}']`),i)try{document.querySelectorAll(i).forEach((e=>{o.add({current:e})}))}catch(r){console.warn(`[react-tooltip] "${i}" is not a valid CSS selector`)}const l=document.querySelector(`[id='${t}']`);if(l&&o.add({current:l}),!o.size)return()=>null;const a=null!==(r=null!=ge?ge:l)&&void 0!==r?r:xe.current,s=new MutationObserver((e=>{e.forEach((e=>{var t;if(!a||"attributes"!==e.type||!(null===(t=e.attributeName)||void 0===t?void 0:t.startsWith("data-tooltip-")))return;const n=_e(a);Se(n)}))})),c={attributes:!0,childList:!1,subtree:!1};if(a){const e=_e(a);Se(e),s.observe(a,c)}return()=>{s.disconnect()}}),[Ee,xe,ge,t,n]),(0,o.useEffect)((()=>{(null==R?void 0:R.border)&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),M&&!be("border",`${M}`)&&console.warn(`[react-tooltip] "${M}" is not a valid \`border\`.`),(null==R?void 0:R.opacity)&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),F&&!be("opacity",`${F}`)&&console.warn(`[react-tooltip] "${F}" is not a valid \`opacity\`.`)}),[]);let Te=f;const ke=(0,o.useRef)(null);if(l){const e=l({content:(null==ge?void 0:ge.getAttribute("data-tooltip-content"))||q||null,activeAnchor:ge});Te=e?o.createElement("div",{ref:ke,className:"react-tooltip-content-wrapper"},e):null}else q&&(Te=q);U&&(Te=o.createElement(Pe,{content:U}));const Ae={forwardRef:W,id:e,anchorId:t,anchorSelect:n,className:he(a,me),classNameArrow:s,content:Te,contentWrapperRef:ke,place:G,variant:Z,offset:J,wrapper:se,events:ue,openOnClick:h,positionStrategy:pe,middlewares:g,delayShow:ee,delayHide:ne,float:oe,hidden:le,noArrow:x,clickable:_,closeOnEsc:S,closeOnScroll:T,closeOnResize:k,openEvents:A,closeEvents:O,globalCloseEvents:C,imperativeModeOnly:N,style:R,position:P,isOpen:L,defaultIsOpen:I,border:M,opacity:F,arrowColor:j,setIsOpen:H,afterShow:z,afterHide:B,activeAnchor:ge,setActiveAnchor:e=>ye(e),role:V};return o.createElement(Re,{...Ae})}));"undefined"!=typeof window&&window.addEventListener("react-tooltip-inject-styles",(e=>{e.detail.disableCore||ge({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in}",type:"core"}),e.detail.disableBase||ge({css:"\n.styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:8px;height:8px}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}",type:"base"})}));const Ie=(e,t="")=>{for(const[n,r]of Object.entries(e)){let e=n;t&&(e+="_"+String(t));const o=new CustomEvent(e,{detail:r});dispatchEvent(o)}},De=(e,t="")=>{for(const[n,r]of Object.entries(e)){let e=n;t&&(e+="_"+String(t)),addEventListener(e,(e=>{r(e.detail)}),!1)}};function Me(){return"string"==typeof(0,s.select)("core/editor")?.getCurrentPostType()}function Fe(e){if("object"==typeof GatherPress)return e.split(".").reduce(((e,t)=>e&&e[t]),GatherPress)}const je=({onlineEventLinkDefault:e=""})=>{const t=(0,i.__)("Online event","gatherpress"),[n,r]=(0,c.useState)(e);return De({setOnlineEventLink:r},Fe("eventDetails.postId")),(0,o.createElement)(a.Flex,{justify:"normal",gap:"3"},(0,o.createElement)(a.FlexItem,{display:"flex"},(0,o.createElement)(a.Icon,{icon:"video-alt2"})),(0,o.createElement)(a.FlexItem,null,!n&&(0,o.createElement)(o.Fragment,null,(0,o.createElement)("span",{tabIndex:"0",className:"gatherpress-tooltip","data-tooltip-id":"gatherpress-online-event-tooltip","data-tooltip-content":(0,i.__)("Link available for attendees only.","gatherpress")},t),(0,o.createElement)(Le,{id:"gatherpress-online-event-tooltip"})),n&&(0,o.createElement)("a",{href:n,rel:"noreferrer",target:"_blank"},t)))};var He=n(442);const ze=He.default||He,Be=({name:e,fullAddress:t,phoneNumber:n,website:r})=>(0,o.createElement)(o.Fragment,null,(e||t)&&(0,o.createElement)(a.Flex,{justify:"normal",align:"flex-start",gap:"4"},(0,o.createElement)(a.FlexItem,{display:"flex",className:"gatherpress-venue__icon"},(0,o.createElement)(a.Icon,{icon:"location"})),(0,o.createElement)(a.FlexItem,null,e&&(0,o.createElement)("div",{className:"gatherpress-venue__name"},(0,o.createElement)("strong",null,ze(e))),t&&(0,o.createElement)("div",{className:"gatherpress-venue__full-address"},ze(t)))),(n||r)&&(0,o.createElement)(a.Flex,{justify:"normal",gap:"8"},n&&(0,o.createElement)(a.FlexItem,null,(0,o.createElement)(a.Flex,{justify:"normal",gap:"4"},(0,o.createElement)(a.FlexItem,{display:"flex",className:"gatherpress-venue__icon"},(0,o.createElement)(a.Icon,{icon:"phone"})),(0,o.createElement)(a.FlexItem,null,(0,o.createElement)("div",{className:"gatherpress-venue__phone-number"},n)))),r&&(0,o.createElement)(a.FlexItem,null,(0,o.createElement)(a.Flex,{justify:"normal",gap:"4"},(0,o.createElement)(a.FlexItem,{display:"flex",className:"gatherpress-venue__icon"},(0,o.createElement)(a.Icon,{icon:"admin-site-alt3"})),(0,o.createElement)(a.FlexItem,null,(0,o.createElement)("div",{className:"gatherpress-venue__website"},(0,o.createElement)("a",{href:r,target:"_blank",rel:"noreferrer noopener"},r))))))),Ve=({name:e="",fullAddress:t,phoneNumber:n,website:r,isOnlineEventTerm:i=!1,onlineEventLink:l=""})=>(0,o.createElement)(o.Fragment,null,!i&&(0,o.createElement)(Be,{name:e,fullAddress:t,phoneNumber:n,website:r}),i&&(0,o.createElement)(je,{onlineEventLinkDefault:l})),We=e=>{const{isSelected:t}=e,n=t?"none":"block";return(0,o.createElement)("div",{style:{position:"relative"}},e.children,(0,o.createElement)("div",{style:{position:"absolute",top:"0",right:"0",bottom:"0",left:"0",display:n}}))};function qe(){return"gatherpress_venue"===(0,s.select)("core/editor")?.getCurrentPostType()}const $e=()=>{const[e,t]=(0,c.useState)(""),[n,r]=(0,c.useState)(""),[l,u]=(0,c.useState)(""),[d,p]=(0,c.useState)(""),[f,m]=(0,c.useState)(!1),[h,v]=(0,c.useState)(""),g=(0,s.useDispatch)("core/editor").editPost,{unlockPostSaving:y}=(0,s.useDispatch)("core/editor"),b=(0,s.useSelect)((e=>e("core/editor").getEditedPostAttribute("_gatherpress_venue"))),w=(0,s.useSelect)((e=>e("core").getEntityRecord("taxonomy","_gatherpress_venue",b))),E=w?.slug.replace(/^_/,""),[x,_]=(0,c.useState)(""),S=b+":"+x,T=(0,s.useSelect)((e=>e("core").getEntityRecords("postType","gatherpress_venue",{per_page:1,slug:x})));(0,c.useEffect)((()=>{var e,n,o,l;let a={};if(x&&Array.isArray(T)){var s;const e=null!==(s=T[0]?.meta?.gatherpress_venue_information)&&void 0!==s?s:"{}";var c;e&&(a=JSON.parse(e),a.name=null!==(c=T[0]?.title.rendered)&&void 0!==c?c:"")}const d=null!==(e=a?.name)&&void 0!==e?e:(0,i.__)("No venue selected.","gatherpress"),f=null!==(n=a?.fullAddress)&&void 0!==n?n:"",m=null!==(o=a?.phoneNumber)&&void 0!==o?o:"",h=null!==(l=a?.website)&&void 0!==l?l:"";E&&_(E),v(S?String(S):""),t(d),r(f),u(m),p(h),Ie({setName:d,setFullAddress:f,setPhoneNumber:m,setWebsite:h,setIsOnlineEventTerm:"online-event"===x})}),[x,T,E,S]);let k=(0,s.useSelect)((e=>e("core").getEntityRecords("taxonomy","_gatherpress_venue",{per_page:-1,context:"view"})),[]);return k?(k=k.map((e=>({label:e.name,value:e.id+":"+e.slug.replace(/^_/,"")}))),k.unshift({value:":",label:(0,i.__)("Choose a venue","gatherpress")})):k=[],(0,o.createElement)(a.PanelRow,null,(0,o.createElement)(a.SelectControl,{label:(0,i.__)("Venue Selector","gatherpress"),value:h,onChange:e=>{(e=>{v(e);const t=""!==(e=e.split(":"))[0]?[e[0]]:[];g({_gatherpress_venue:t}),_(e[1]),y()})(e)},options:k}))},Ue=()=>{var e,t,n;const r=(0,s.useDispatch)("core/editor").editPost,l=(e,t)=>{const n=JSON.stringify({...u,[e]:t});r({meta:{gatherpress_venue_information:n}})};let u=(0,s.useSelect)((e=>e("core/editor").getEditedPostAttribute("meta").gatherpress_venue_information));u=u?JSON.parse(u):{};const[d,p]=(0,c.useState)(null!==(e=u.fullAddress)&&void 0!==e?e:""),[f,m]=(0,c.useState)(null!==(t=u.phoneNumber)&&void 0!==t?t:""),[h,v]=(0,c.useState)(null!==(n=u.website)&&void 0!==n?n:"");return De({setFullAddress:p,setPhoneNumber:m,setWebsite:v}),(0,o.createElement)(o.Fragment,null,(0,o.createElement)(a.TextControl,{label:(0,i.__)("Full Address","gatherpress"),value:d,onChange:e=>{Ie({setFullAddress:e}),l("fullAddress",e)}}),(0,o.createElement)(a.TextControl,{label:(0,i.__)("Phone Number","gatherpress"),value:f,onChange:e=>{Ie({setPhoneNumber:e}),l("phoneNumber",e)}}),(0,o.createElement)(a.TextControl,{label:(0,i.__)("Website","gatherpress"),value:h,type:"url",onChange:e=>{Ie({setWebsite:e}),l("website",e)}}))},Xe=()=>(0,o.createElement)("section",null,(0,o.createElement)(Ue,null)),Ge=()=>{const{editPost:e,unlockPostSaving:t}=(0,s.useDispatch)("core/editor"),n=(0,s.useSelect)((e=>e("core/editor").getEditedPostAttribute("meta").gatherpress_online_event_link)),[r,l]=(0,c.useState)(n);return De({setOnlineEventLink:l},Fe("eventDetails.postId")),(0,o.createElement)(a.TextControl,{label:(0,i.__)("Online event link","gatherpress"),value:r,placeholder:(0,i.__)("Add link to online event","gatherpress"),onChange:n=>{(n=>{e({meta:{gatherpress_online_event_link:n}}),l(n),Ie({setOnlineEventLink:n},Fe("eventDetails.postId")),t()})(n)}})},Ye=window.moment;var Ze=n.n(Ye);window.wp.apiFetch,window.wp.date;const Ke="YYYY-MM-DDTHH:mm:ss",Je=Ze().tz(Qe()).add(1,"day").set("hour",18).set("minute",0).set("second",0).format(Ke);function Qe(e=Fe("eventDetails.dateTime.timezone")){return Ze().tz.zone(e)?e:(0,i.__)("GMT","gatherpress")}Ze().tz(Je,Qe()).add(2,"hours").format(Ke);const et=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"gatherpress/venue","version":"1.0.1","title":"Venue","category":"gatherpress","icon":"location","example":{},"description":"Provides information about an event venue.","attributes":{"mapShow":{"type":"boolean","default":true},"mapAlign":{"type":"string","default":""},"mapZoomLevel":{"type":"number","default":10},"mapType":{"type":"string","default":"m"},"mapHeight":{"type":"number","default":300}},"supports":{"align":["wide"],"html":false},"textdomain":"gatherpress","editorScript":"file:./index.js","editorStyle":"file:./index.css","style":"file:./style-index.css","viewScript":"file:./venue.js","render":"file:./render.php"}');(0,r.registerBlockType)(et,{edit:({attributes:e,setAttributes:t,isSelected:n})=>{const{mapZoomLevel:r,mapType:d,mapHeight:p}=e,[f,m]=(0,c.useState)(""),[h,v]=(0,c.useState)(""),[g,y]=(0,c.useState)(""),[b,w]=(0,c.useState)(""),[E,x]=(0,c.useState)(!1),_=(0,l.useBlockProps)(),S=(0,s.useSelect)((e=>e("core/editor")?.getEditedPostAttribute("meta")?.gatherpress_online_event_link));let{mapShow:T}=e,k=(0,s.useSelect)((e=>e("core/editor")?.getEditedPostAttribute("meta")?.gatherpress_venue_information));return k=k?JSON.parse(k):{},T&&h&&(T=!0),T&&!Me()&&(T=!0),De({setName:m,setFullAddress:v,setPhoneNumber:y,setWebsite:w,setIsOnlineEventTerm:x}),(0,c.useEffect)((()=>{qe()&&(v(k.fullAddress),y(k.phoneNumber),w(k.website),m(h||g||b?"":(0,i.__)("Add venue information.","gatherpress"))),"gatherpress_event"!==(0,s.select)("core/editor")?.getCurrentPostType()&&Me()||m(h||g||b?"":(0,i.__)("No venue selected.","gatherpress"))}),[k.fullAddress,k.phoneNumber,k.website,h,g,b]),(0,o.createElement)(o.Fragment,null,(0,o.createElement)(l.InspectorControls,null,Me()&&(0,o.createElement)(a.PanelBody,{title:(0,i.__)("Venue settings","gatherpress"),initialOpen:!0},(0,o.createElement)(a.PanelRow,null,!qe()&&(0,o.createElement)($e,null),qe()&&(0,o.createElement)(Xe,null)),E&&(0,o.createElement)(a.PanelRow,null,(0,o.createElement)(Ge,null))),!E&&(0,o.createElement)(a.PanelBody,{title:(0,i.__)("Map settings","gatherpress"),initialOpen:!0},(0,o.createElement)(a.PanelRow,null,(0,i.__)("Show map on venue","gatherpress")),(0,o.createElement)(a.PanelRow,null,(0,o.createElement)(a.ToggleControl,{label:T?(0,i.__)("Display the map","gatherpress"):(0,i.__)("Hide the map","gatherpress"),checked:T,onChange:e=>{t({mapShow:e})}})),(0,o.createElement)(a.RangeControl,{label:(0,i.__)("Zoom level","gatherpress"),beforeIcon:"search",value:r,onChange:e=>t({mapZoomLevel:e}),min:1,max:22}),(0,o.createElement)(a.RadioControl,{label:(0,i.__)("Map type","gatherpress"),selected:d,options:[{label:(0,i.__)("Roadmap","gatherpress"),value:"m"},{label:(0,i.__)("Satellite","gatherpress"),value:"k"}],onChange:e=>{t({mapType:e})}}),(0,o.createElement)(a.RangeControl,{label:(0,i.__)("Map height","gatherpress"),beforeIcon:"location",value:p,onChange:e=>t({mapHeight:e}),min:100,max:1e3}))),(0,o.createElement)("div",{..._},(0,o.createElement)(We,{isSelected:n},(0,o.createElement)("div",{className:"gatherpress-venue"},(0,o.createElement)(Ve,{name:f,fullAddress:h,phoneNumber:g,website:b,isOnlineEventTerm:E,onlineEventLink:S}),T&&(0,o.createElement)(u,{location:h,zoom:r,type:d,height:p})))))},save:()=>{}})},5413:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(n=t.ElementType||(t.ElementType={})),t.isTag=function(e){return e.type===n.Tag||e.type===n.Script||e.type===n.Style},t.Root=n.Root,t.Text=n.Text,t.Directive=n.Directive,t.Comment=n.Comment,t.Script=n.Script,t.Style=n.Style,t.Tag=n.Tag,t.CDATA=n.CDATA,t.Doctype=n.Doctype},1141:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var i=n(5413),l=n(6957);o(n(6957),t);var a={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},s=function(){function e(e,t,n){this.dom=[],this.root=new l.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=a),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:a,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new l.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?i.ElementType.Tag:void 0,r=new l.Element(e,t,void 0,n);this.addNode(r),this.tagStack.push(r)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===i.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var n=new l.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===i.ElementType.Comment)this.lastNode.data+=e;else{var t=new l.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new l.Text(""),t=new l.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new l.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=s,t.default=s},6957:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(a);t.NodeWithChildren=p;var f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=l.ElementType.CDATA,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(p);t.CDATA=f;var m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=l.ElementType.Root,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(p);t.Document=m;var h=function(e){function t(t,n,r,o){void 0===r&&(r=[]),void 0===o&&(o="script"===t?l.ElementType.Script:"style"===t?l.ElementType.Style:l.ElementType.Tag);var i=e.call(this,r)||this;return i.name=t,i.attribs=n,i.type=o,i}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var n,r;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(r=e["x-attribsPrefix"])||void 0===r?void 0:r[t]}}))},enumerable:!1,configurable:!0}),t}(p);function v(e){return(0,l.isTag)(e)}function g(e){return e.type===l.ElementType.CDATA}function y(e){return e.type===l.ElementType.Text}function b(e){return e.type===l.ElementType.Comment}function w(e){return e.type===l.ElementType.Directive}function E(e){return e.type===l.ElementType.Root}function x(e,t){var n;if(void 0===t&&(t=!1),y(e))n=new c(e.data);else if(b(e))n=new u(e.data);else if(v(e)){var r=t?_(e.children):[],o=new h(e.name,i({},e.attribs),r);r.forEach((function(e){return e.parent=o})),null!=e.namespace&&(o.namespace=e.namespace),e["x-attribsNamespace"]&&(o["x-attribsNamespace"]=i({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(o["x-attribsPrefix"]=i({},e["x-attribsPrefix"])),n=o}else if(g(e)){r=t?_(e.children):[];var l=new f(r);r.forEach((function(e){return e.parent=l})),n=l}else if(E(e)){r=t?_(e.children):[];var a=new m(r);r.forEach((function(e){return e.parent=a})),e["x-mode"]&&(a["x-mode"]=e["x-mode"]),n=a}else{if(!w(e))throw new Error("Not implemented yet: ".concat(e.type));var s=new d(e.name,e.data);null!=e["x-name"]&&(s["x-name"]=e["x-name"],s["x-publicId"]=e["x-publicId"],s["x-systemId"]=e["x-systemId"]),n=s}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function _(e){for(var t=e.map((function(e){return x(e,!0)})),n=1;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES=void 0,t.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES.reduce((function(e,t){return e[t.toLowerCase()]=t,e}),{})},5496:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="html",r="head",o="body",i=/<([a-zA-Z]+[0-9]?)/,l=//i,a=//i,s=function(e,t){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},c=function(e,t){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},u="object"==typeof window&&window.DOMParser;if("function"==typeof u){var d=new u;s=c=function(e,t){return t&&(e="<".concat(t,">").concat(e,"")),d.parseFromString(e,"text/html")}}if("object"==typeof document&&document.implementation){var p=document.implementation.createHTMLDocument();s=function(e,t){if(t){var n=p.documentElement.querySelector(t);return n&&(n.innerHTML=e),p}return p.documentElement.innerHTML=e,p}}var f,m="object"==typeof document&&document.createElement("template");m&&m.content&&(f=function(e){return m.innerHTML=e,m.content.childNodes}),t.default=function(e){var t,u,d=e.match(i),p=d&&d[1]?d[1].toLowerCase():"";switch(p){case n:var m=c(e);return l.test(e)||null===(t=null==(v=m.querySelector(r))?void 0:v.parentNode)||void 0===t||t.removeChild(v),a.test(e)||null===(u=null==(v=m.querySelector(o))?void 0:v.parentNode)||void 0===u||u.removeChild(v),m.querySelectorAll(n);case r:case o:var h=s(e).querySelectorAll(p);return a.test(e)&&l.test(e)?h[0].parentNode.childNodes:h;default:return f?f(e):(v=s(e,o).querySelector(o)).childNodes;var v}}},2471:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(5496)),i=n(7731),l=/<(![a-zA-Z\s]+)>/;t.default=function(e){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];var t=e.match(l),n=t?t[1]:void 0;return(0,i.formatDOM)((0,o.default)(e),null,n)}},7731:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatDOM=t.formatAttributes=void 0;var r=n(1141),o=n(5270);function i(e){for(var t={},n=0,r=e.length;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(4210),o=n(4958),i=["checked","value"],l=["input","select","textarea"],a={reset:!0,submit:!0};function s(e){return r.possibleStandardNames[e]}t.default=function(e,t){void 0===e&&(e={});var n={},c=Boolean(e.type&&a[e.type]);for(var u in e){var d=e[u];if((0,r.isCustomAttribute)(u))n[u]=d;else{var p=u.toLowerCase(),f=s(p);if(f){var m=(0,r.getPropertyInfo)(f);switch(i.includes(f)&&l.includes(t)&&!c&&(f=s("default"+p)),n[f]=d,m&&m.type){case r.BOOLEAN:n[f]=!0;break;case r.OVERLOADED_BOOLEAN:""===d&&(n[f]=!0)}}else o.PRESERVE_CUSTOM_ATTRIBUTES&&(n[u]=d)}}return(0,o.setStyleProp)(e.style,n),n}},308:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(1609),i=r(n(840)),l=n(4958),a={cloneElement:o.cloneElement,createElement:o.createElement,isValidElement:o.isValidElement};function s(e){return l.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&(0,l.isCustomComponent)(e.name,e.attribs)}t.default=function e(t,n){void 0===n&&(n={});for(var r=[],o="function"==typeof n.replace,c=n.transform||l.returnFirstArg,u=n.library||a,d=u.cloneElement,p=u.createElement,f=u.isValidElement,m=t.length,h=0;h1&&(g=d(g,{key:g.key||h})),r.push(c(g,v,h));continue}}if("text"!==v.type){var y=v,b={};s(y)?((0,l.setStyleProp)(y.attribs.style,y.attribs),b=y.attribs):y.attribs&&(b=(0,i.default)(y.attribs,y.name));var w=void 0;switch(v.type){case"script":case"style":v.children[0]&&(b.dangerouslySetInnerHTML={__html:v.children[0].data});break;case"tag":"textarea"===v.name&&v.children[0]?b.defaultValue=v.children[0].data:v.children&&v.children.length&&(w=e(v.children,n));break;default:continue}m>1&&(b.key=h),r.push(c(p(v.name,b,w),v,h))}else{var E=!v.data.trim().length;if(E&&v.parent&&!(0,l.canTextBeChildOfNode)(v.parent))continue;if(n.trim&&E)continue;r.push(c(v.data,v,h))}}return 1===r.length?r[0]:r}},442:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.htmlToDOM=t.domToReact=t.attributesToProps=t.Text=t.ProcessingInstruction=t.Element=t.Comment=void 0;var o=r(n(2471));t.htmlToDOM=o.default;var i=r(n(840));t.attributesToProps=i.default;var l=r(n(308));t.domToReact=l.default;var a=n(1141);Object.defineProperty(t,"Comment",{enumerable:!0,get:function(){return a.Comment}}),Object.defineProperty(t,"Element",{enumerable:!0,get:function(){return a.Element}}),Object.defineProperty(t,"ProcessingInstruction",{enumerable:!0,get:function(){return a.ProcessingInstruction}}),Object.defineProperty(t,"Text",{enumerable:!0,get:function(){return a.Text}});var s={lowerCaseAttributeNames:!1};t.default=function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");return e?(0,l.default)((0,o.default)(e,(null==t?void 0:t.htmlparser2)||s),t):[]}},4958:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.returnFirstArg=t.canTextBeChildOfNode=t.ELEMENTS_WITH_NO_TEXT_CHILDREN=t.PRESERVE_CUSTOM_ATTRIBUTES=t.setStyleProp=t.isCustomComponent=void 0;var o=n(1609),i=r(n(5229)),l=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);t.isCustomComponent=function(e,t){return e.includes("-")?!l.has(e):Boolean(t&&"string"==typeof t.is)};var a={reactCompat:!0};t.setStyleProp=function(e,t){if("string"==typeof e)if(e.trim())try{t.style=(0,i.default)(e,a)}catch(e){t.style={}}else t.style={}},t.PRESERVE_CUSTOM_ATTRIBUTES=Number(o.version.split(".")[0])>=16,t.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]),t.canTextBeChildOfNode=function(e){return!t.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(e.name)},t.returnFirstArg=function(e){return e}},9788:e=>{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,l=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,s=/^\s+|\s+$/g,c="";function u(e){return e?e.replace(s,c):c}e.exports=function(e,s){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];s=s||{};var d=1,p=1;function f(e){var t=e.match(n);t&&(d+=t.length);var r=e.lastIndexOf("\n");p=~r?e.length-r:p+e.length}function m(){var e={line:d,column:p};return function(t){return t.position=new h(e),b(),t}}function h(e){this.start=e,this.end={line:d,column:p},this.source=s.source}h.prototype.content=e;var v=[];function g(t){var n=new Error(s.source+":"+d+":"+p+": "+t);if(n.reason=t,n.filename=s.source,n.line=d,n.column=p,n.source=e,!s.silent)throw n;v.push(n)}function y(t){var n=t.exec(e);if(n){var r=n[0];return f(r),e=e.slice(r.length),n}}function b(){y(r)}function w(e){var t;for(e=e||[];t=E();)!1!==t&&e.push(t);return e}function E(){var t=m();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;c!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,c===e.charAt(n-1))return g("End of comment missing");var r=e.slice(2,n-2);return p+=2,f(r),e=e.slice(n),p+=2,t({type:"comment",comment:r})}}function x(){var e=m(),n=y(o);if(n){if(E(),!y(i))return g("property missing ':'");var r=y(l),s=e({type:"declaration",property:u(n[0].replace(t,c)),value:r?u(r[0].replace(t,c)):c});return y(a),s}}return b(),function(){var e,t=[];for(w(t);e=x();)!1!==e&&(t.push(e),w(t));return t}()}},4210:(e,t,n)=>{"use strict";function r(e,t,n,r,o,i,l){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=l}const o={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach((e=>{o[e]=new r(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((([e,t])=>{o[e]=new r(e,1,!1,t,null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((e=>{o[e]=new r(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((e=>{o[e]=new r(e,2,!1,e,null,!1,!1)})),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach((e=>{o[e]=new r(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((e=>{o[e]=new r(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((e=>{o[e]=new r(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((e=>{o[e]=new r(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((e=>{o[e]=new r(e,5,!1,e.toLowerCase(),null,!1,!1)}));const i=/[\-\:]([a-z])/g,l=e=>e[1].toUpperCase();["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach((e=>{const t=e.replace(i,l);o[t]=new r(t,1,!1,e,null,!1,!1)})),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach((e=>{const t=e.replace(i,l);o[t]=new r(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((e=>{const t=e.replace(i,l);o[t]=new r(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((e=>{o[e]=new r(e,1,!1,e.toLowerCase(),null,!1,!1)})),o.xlinkHref=new r("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((e=>{o[e]=new r(e,1,!1,e.toLowerCase(),null,!0,!0)}));const{CAMELCASE:a,SAME:s,possibleStandardNames:c}=n(6811),u=RegExp.prototype.test.bind(new RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")),d=Object.keys(c).reduce(((e,t)=>{const n=c[t];return n===s?e[t]=t:n===a?e[t.toLowerCase()]=t:e[t]=n,e}),{});t.BOOLEAN=3,t.BOOLEANISH_STRING=2,t.NUMERIC=5,t.OVERLOADED_BOOLEAN=4,t.POSITIVE_NUMERIC=6,t.RESERVED=0,t.STRING=1,t.getPropertyInfo=function(e){return o.hasOwnProperty(e)?o[e]:null},t.isCustomAttribute=u,t.possibleStandardNames=d},6811:(e,t)=>{t.SAME=0,t.CAMELCASE=1,t.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}},5229:function(e,t,n){"use strict";var r=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n(1133)),o=n(8917);function i(e,t){var n={};return e&&"string"==typeof e?((0,r.default)(e,(function(e,r){e&&r&&(n[(0,o.camelCase)(e,t)]=r)})),n):n}i.default=i,e.exports=i},8917:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=void 0;var n=/^--[a-zA-Z0-9-]+$/,r=/-([a-z])/g,o=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,l=/^-(ms)-/,a=function(e,t){return t.toUpperCase()},s=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||o.test(e)||n.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(l,s):e.replace(i,s)).replace(r,a))}},1133:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(9788));t.default=function(e,t){var n=null;if(!e||"string"!=typeof e)return n;var r=(0,o.default)(e),i="function"==typeof t;return r.forEach((function(e){if("declaration"===e.type){var r=e.property,o=e.value;i?t(r,o,e):o&&((n=n||{})[r]=o)}})),n}},1609:e=>{"use strict";e.exports=window.React},6942:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t{if(!n){var l=1/0;for(u=0;u=i)&&Object.keys(r.O).every((e=>r.O[e](n[s])))?n.splice(s--,1):(a=!1,i0&&e[u-1][2]>i;u--)e[u]=e[u-1];e[u]=[n,o,i]},r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={908:0,812:0};r.O.j=t=>0===e[t];var t=(t,n)=>{var o,i,[l,a,s]=n,c=0;if(l.some((t=>0!==e[t]))){for(o in a)r.o(a,o)&&(r.m[o]=a[o]);if(s)var u=s(r)}for(t&&t(n);cr(2041)));o=r.O(o)})(); \ No newline at end of file diff --git a/build/blocks/venue/venue.asset.php b/build/blocks/venue/venue.asset.php index bcd79db9f..dd4cc2aa8 100644 --- a/build/blocks/venue/venue.asset.php +++ b/build/blocks/venue/venue.asset.php @@ -1 +1 @@ - array('react', 'wp-components', 'wp-data', 'wp-dom-ready', 'wp-element', 'wp-i18n'), 'version' => '099b5eebfcf36f51f05e'); + array('react', 'wp-components', 'wp-data', 'wp-dom-ready', 'wp-element', 'wp-i18n'), 'version' => '9ba1e4313b72a8d0d2e6'); diff --git a/build/blocks/venue/venue.js b/build/blocks/venue/venue.js index d8048af73..f5c21025c 100644 --- a/build/blocks/venue/venue.js +++ b/build/blocks/venue/venue.js @@ -1 +1 @@ -(()=>{var e={5413:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(n=t.ElementType||(t.ElementType={})),t.isTag=function(e){return e.type===n.Tag||e.type===n.Script||e.type===n.Style},t.Root=n.Root,t.Text=n.Text,t.Directive=n.Directive,t.Comment=n.Comment,t.Script=n.Script,t.Style=n.Style,t.Tag=n.Tag,t.CDATA=n.CDATA,t.Doctype=n.Doctype},1141:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var i=n(5413),l=n(6957);o(n(6957),t);var a={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},s=function(){function e(e,t,n){this.dom=[],this.root=new l.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=a),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:a,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new l.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?i.ElementType.Tag:void 0,r=new l.Element(e,t,void 0,n);this.addNode(r),this.tagStack.push(r)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===i.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var n=new l.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===i.ElementType.Comment)this.lastNode.data+=e;else{var t=new l.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new l.Text(""),t=new l.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new l.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=s,t.default=s},6957:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(a);t.NodeWithChildren=f;var p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=l.ElementType.CDATA,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(f);t.CDATA=p;var m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=l.ElementType.Root,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(f);t.Document=m;var h=function(e){function t(t,n,r,o){void 0===r&&(r=[]),void 0===o&&(o="script"===t?l.ElementType.Script:"style"===t?l.ElementType.Style:l.ElementType.Tag);var i=e.call(this,r)||this;return i.name=t,i.attribs=n,i.type=o,i}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var n,r;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(r=e["x-attribsPrefix"])||void 0===r?void 0:r[t]}}))},enumerable:!1,configurable:!0}),t}(f);function y(e){return(0,l.isTag)(e)}function v(e){return e.type===l.ElementType.CDATA}function g(e){return e.type===l.ElementType.Text}function b(e){return e.type===l.ElementType.Comment}function w(e){return e.type===l.ElementType.Directive}function x(e){return e.type===l.ElementType.Root}function E(e,t){var n;if(void 0===t&&(t=!1),g(e))n=new c(e.data);else if(b(e))n=new u(e.data);else if(y(e)){var r=t?_(e.children):[],o=new h(e.name,i({},e.attribs),r);r.forEach((function(e){return e.parent=o})),null!=e.namespace&&(o.namespace=e.namespace),e["x-attribsNamespace"]&&(o["x-attribsNamespace"]=i({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(o["x-attribsPrefix"]=i({},e["x-attribsPrefix"])),n=o}else if(v(e)){r=t?_(e.children):[];var l=new p(r);r.forEach((function(e){return e.parent=l})),n=l}else if(x(e)){r=t?_(e.children):[];var a=new m(r);r.forEach((function(e){return e.parent=a})),e["x-mode"]&&(a["x-mode"]=e["x-mode"]),n=a}else{if(!w(e))throw new Error("Not implemented yet: ".concat(e.type));var s=new d(e.name,e.data);null!=e["x-name"]&&(s["x-name"]=e["x-name"],s["x-publicId"]=e["x-publicId"],s["x-systemId"]=e["x-systemId"]),n=s}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function _(e){for(var t=e.map((function(e){return E(e,!0)})),n=1;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES=void 0,t.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES.reduce((function(e,t){return e[t.toLowerCase()]=t,e}),{})},5496:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="html",r="head",o="body",i=/<([a-zA-Z]+[0-9]?)/,l=//i,a=//i,s=function(e,t){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},c=function(e,t){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},u="object"==typeof window&&window.DOMParser;if("function"==typeof u){var d=new u;s=c=function(e,t){return t&&(e="<".concat(t,">").concat(e,"")),d.parseFromString(e,"text/html")}}if("object"==typeof document&&document.implementation){var f=document.implementation.createHTMLDocument();s=function(e,t){if(t){var n=f.documentElement.querySelector(t);return n&&(n.innerHTML=e),f}return f.documentElement.innerHTML=e,f}}var p,m="object"==typeof document&&document.createElement("template");m&&m.content&&(p=function(e){return m.innerHTML=e,m.content.childNodes}),t.default=function(e){var t,u,d=e.match(i),f=d&&d[1]?d[1].toLowerCase():"";switch(f){case n:var m=c(e);return l.test(e)||null===(t=null==(y=m.querySelector(r))?void 0:y.parentNode)||void 0===t||t.removeChild(y),a.test(e)||null===(u=null==(y=m.querySelector(o))?void 0:y.parentNode)||void 0===u||u.removeChild(y),m.querySelectorAll(n);case r:case o:var h=s(e).querySelectorAll(f);return a.test(e)&&l.test(e)?h[0].parentNode.childNodes:h;default:return p?p(e):(y=s(e,o).querySelector(o)).childNodes;var y}}},2471:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(5496)),i=n(7731),l=/<(![a-zA-Z\s]+)>/;t.default=function(e){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];var t=e.match(l),n=t?t[1]:void 0;return(0,i.formatDOM)((0,o.default)(e),null,n)}},7731:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatDOM=t.formatAttributes=void 0;var r=n(1141),o=n(5270);function i(e){for(var t={},n=0,r=e.length;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(4210),o=n(4958),i=["checked","value"],l=["input","select","textarea"],a={reset:!0,submit:!0};function s(e){return r.possibleStandardNames[e]}t.default=function(e,t){void 0===e&&(e={});var n={},c=Boolean(e.type&&a[e.type]);for(var u in e){var d=e[u];if((0,r.isCustomAttribute)(u))n[u]=d;else{var f=u.toLowerCase(),p=s(f);if(p){var m=(0,r.getPropertyInfo)(p);switch(i.includes(p)&&l.includes(t)&&!c&&(p=s("default"+f)),n[p]=d,m&&m.type){case r.BOOLEAN:n[p]=!0;break;case r.OVERLOADED_BOOLEAN:""===d&&(n[p]=!0)}}else o.PRESERVE_CUSTOM_ATTRIBUTES&&(n[u]=d)}}return(0,o.setStyleProp)(e.style,n),n}},308:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(1609),i=r(n(840)),l=n(4958),a={cloneElement:o.cloneElement,createElement:o.createElement,isValidElement:o.isValidElement};function s(e){return l.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&(0,l.isCustomComponent)(e.name,e.attribs)}t.default=function e(t,n){void 0===n&&(n={});for(var r=[],o="function"==typeof n.replace,c=n.transform||l.returnFirstArg,u=n.library||a,d=u.cloneElement,f=u.createElement,p=u.isValidElement,m=t.length,h=0;h1&&(v=d(v,{key:v.key||h})),r.push(c(v,y,h));continue}}if("text"!==y.type){var g=y,b={};s(g)?((0,l.setStyleProp)(g.attribs.style,g.attribs),b=g.attribs):g.attribs&&(b=(0,i.default)(g.attribs,g.name));var w=void 0;switch(y.type){case"script":case"style":y.children[0]&&(b.dangerouslySetInnerHTML={__html:y.children[0].data});break;case"tag":"textarea"===y.name&&y.children[0]?b.defaultValue=y.children[0].data:y.children&&y.children.length&&(w=e(y.children,n));break;default:continue}m>1&&(b.key=h),r.push(c(f(y.name,b,w),y,h))}else{var x=!y.data.trim().length;if(x&&y.parent&&!(0,l.canTextBeChildOfNode)(y.parent))continue;if(n.trim&&x)continue;r.push(c(y.data,y,h))}}return 1===r.length?r[0]:r}},442:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.htmlToDOM=t.domToReact=t.attributesToProps=t.Text=t.ProcessingInstruction=t.Element=t.Comment=void 0;var o=r(n(2471));t.htmlToDOM=o.default;var i=r(n(840));t.attributesToProps=i.default;var l=r(n(308));t.domToReact=l.default;var a=n(1141);Object.defineProperty(t,"Comment",{enumerable:!0,get:function(){return a.Comment}}),Object.defineProperty(t,"Element",{enumerable:!0,get:function(){return a.Element}}),Object.defineProperty(t,"ProcessingInstruction",{enumerable:!0,get:function(){return a.ProcessingInstruction}}),Object.defineProperty(t,"Text",{enumerable:!0,get:function(){return a.Text}});var s={lowerCaseAttributeNames:!1};t.default=function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");return e?(0,l.default)((0,o.default)(e,(null==t?void 0:t.htmlparser2)||s),t):[]}},4958:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.returnFirstArg=t.canTextBeChildOfNode=t.ELEMENTS_WITH_NO_TEXT_CHILDREN=t.PRESERVE_CUSTOM_ATTRIBUTES=t.setStyleProp=t.isCustomComponent=void 0;var o=n(1609),i=r(n(5229)),l=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);t.isCustomComponent=function(e,t){return e.includes("-")?!l.has(e):Boolean(t&&"string"==typeof t.is)};var a={reactCompat:!0};t.setStyleProp=function(e,t){if("string"==typeof e)if(e.trim())try{t.style=(0,i.default)(e,a)}catch(e){t.style={}}else t.style={}},t.PRESERVE_CUSTOM_ATTRIBUTES=Number(o.version.split(".")[0])>=16,t.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]),t.canTextBeChildOfNode=function(e){return!t.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(e.name)},t.returnFirstArg=function(e){return e}},9788:e=>{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,l=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,s=/^\s+|\s+$/g,c="";function u(e){return e?e.replace(s,c):c}e.exports=function(e,s){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];s=s||{};var d=1,f=1;function p(e){var t=e.match(n);t&&(d+=t.length);var r=e.lastIndexOf("\n");f=~r?e.length-r:f+e.length}function m(){var e={line:d,column:f};return function(t){return t.position=new h(e),b(),t}}function h(e){this.start=e,this.end={line:d,column:f},this.source=s.source}h.prototype.content=e;var y=[];function v(t){var n=new Error(s.source+":"+d+":"+f+": "+t);if(n.reason=t,n.filename=s.source,n.line=d,n.column=f,n.source=e,!s.silent)throw n;y.push(n)}function g(t){var n=t.exec(e);if(n){var r=n[0];return p(r),e=e.slice(r.length),n}}function b(){g(r)}function w(e){var t;for(e=e||[];t=x();)!1!==t&&e.push(t);return e}function x(){var t=m();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;c!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,c===e.charAt(n-1))return v("End of comment missing");var r=e.slice(2,n-2);return f+=2,p(r),e=e.slice(n),f+=2,t({type:"comment",comment:r})}}function E(){var e=m(),n=g(o);if(n){if(x(),!g(i))return v("property missing ':'");var r=g(l),s=e({type:"declaration",property:u(n[0].replace(t,c)),value:r?u(r[0].replace(t,c)):c});return g(a),s}}return b(),function(){var e,t=[];for(w(t);e=E();)!1!==e&&(t.push(e),w(t));return t}()}},4210:(e,t,n)=>{"use strict";function r(e,t,n,r,o,i,l){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=l}const o={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach((e=>{o[e]=new r(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((([e,t])=>{o[e]=new r(e,1,!1,t,null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((e=>{o[e]=new r(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((e=>{o[e]=new r(e,2,!1,e,null,!1,!1)})),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach((e=>{o[e]=new r(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((e=>{o[e]=new r(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((e=>{o[e]=new r(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((e=>{o[e]=new r(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((e=>{o[e]=new r(e,5,!1,e.toLowerCase(),null,!1,!1)}));const i=/[\-\:]([a-z])/g,l=e=>e[1].toUpperCase();["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach((e=>{const t=e.replace(i,l);o[t]=new r(t,1,!1,e,null,!1,!1)})),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach((e=>{const t=e.replace(i,l);o[t]=new r(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((e=>{const t=e.replace(i,l);o[t]=new r(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((e=>{o[e]=new r(e,1,!1,e.toLowerCase(),null,!1,!1)})),o.xlinkHref=new r("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((e=>{o[e]=new r(e,1,!1,e.toLowerCase(),null,!0,!0)}));const{CAMELCASE:a,SAME:s,possibleStandardNames:c}=n(6811),u=RegExp.prototype.test.bind(new RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")),d=Object.keys(c).reduce(((e,t)=>{const n=c[t];return n===s?e[t]=t:n===a?e[t.toLowerCase()]=t:e[t]=n,e}),{});t.BOOLEAN=3,t.BOOLEANISH_STRING=2,t.NUMERIC=5,t.OVERLOADED_BOOLEAN=4,t.POSITIVE_NUMERIC=6,t.RESERVED=0,t.STRING=1,t.getPropertyInfo=function(e){return o.hasOwnProperty(e)?o[e]:null},t.isCustomAttribute=u,t.possibleStandardNames=d},6811:(e,t)=>{t.SAME=0,t.CAMELCASE=1,t.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}},5229:function(e,t,n){"use strict";var r=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n(1133)),o=n(8917);function i(e,t){var n={};return e&&"string"==typeof e?((0,r.default)(e,(function(e,r){e&&r&&(n[(0,o.camelCase)(e,t)]=r)})),n):n}i.default=i,e.exports=i},8917:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=void 0;var n=/^--[a-zA-Z0-9-]+$/,r=/-([a-z])/g,o=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,l=/^-(ms)-/,a=function(e,t){return t.toUpperCase()},s=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||o.test(e)||n.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(l,s):e.replace(i,s)).replace(r,a))}},1133:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(9788));t.default=function(e,t){var n=null;if(!e||"string"!=typeof e)return n;var r=(0,o.default)(e),i="function"==typeof t;return r.forEach((function(e){if("declaration"===e.type){var r=e.property,o=e.value;i?t(r,o,e):o&&((n=n||{})[r]=o)}})),n}},1609:e=>{"use strict";e.exports=window.React},6942:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e=n(1609);const t=window.wp.domReady;var r=n.n(t);const o=window.wp.element,i=window.wp.data,l=t=>{const n=(0,i.select)("core")?.canUser("create","posts"),r=Boolean((0,i.select)("core/edit-post")),{zoom:o,type:l,className:a}=t;let{location:s,height:c}=t;if(c||(c=300),!n||r||s||(s="660 4th Street #119 San Francisco CA 94107, USA"),!s)return(0,e.createElement)(e.Fragment,null);const u={border:0,height:c,width:"100%"},d="https://maps.google.com/maps?"+new URLSearchParams({q:s,z:o||10,t:l||"m",output:"embed"}).toString();return(0,e.createElement)("iframe",{src:d,style:u,className:a,title:s})},a=Math.min,s=Math.max,c=Math.round,u=Math.floor,d=e=>({x:e,y:e}),f={left:"right",right:"left",bottom:"top",top:"bottom"},p={start:"end",end:"start"};function m(e,t,n){return s(e,a(t,n))}function h(e,t){return"function"==typeof e?e(t):e}function y(e){return e.split("-")[0]}function v(e){return e.split("-")[1]}function g(e){return"x"===e?"y":"x"}function b(e){return"y"===e?"height":"width"}function w(e){return["top","bottom"].includes(y(e))?"y":"x"}function x(e){return g(w(e))}function E(e){return e.replace(/start|end/g,(e=>p[e]))}function _(e){return e.replace(/left|right|bottom|top/g,(e=>f[e]))}function S(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function T(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function k(e,t,n){let{reference:r,floating:o}=e;const i=w(t),l=x(t),a=b(l),s=y(t),c="y"===i,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[a]/2-o[a]/2;let p;switch(s){case"top":p={x:u,y:r.y-o.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(v(t)){case"start":p[l]-=f*(n&&c?-1:1);break;case"end":p[l]+=f*(n&&c?-1:1)}return p}async function A(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:l,elements:a,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=h(t,e),m=S(p),y=a[f?"floating"===d?"reference":"floating":d],v=T(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(y)))||n?y:y.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:s})),g="floating"===d?{...l.floating,x:r,y:o}:l.reference,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),w=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},x=T(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:g,offsetParent:b,strategy:s}):g);return{top:(v.top-x.top+m.top)/w.y,bottom:(x.bottom-v.bottom+m.bottom)/w.y,left:(v.left-x.left+m.left)/w.x,right:(x.right-v.right+m.right)/w.x}}const O=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:l,middlewareData:a}=t,s=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),l=y(n),a=v(n),s="y"===w(n),c=["left","top"].includes(l)?-1:1,u=i&&s?-1:1,d=h(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return a&&"number"==typeof m&&(p="end"===a?-1*m:m),s?{x:p*u,y:f*c}:{x:f*c,y:p*u}}(t,e);return l===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+s.x,y:i+s.y,data:{...s,placement:l}}}}};function C(e){return L(e)?(e.nodeName||"").toLowerCase():"#document"}function R(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function N(e){var t;return null==(t=(L(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function L(e){return e instanceof Node||e instanceof R(e).Node}function P(e){return e instanceof Element||e instanceof R(e).Element}function I(e){return e instanceof HTMLElement||e instanceof R(e).HTMLElement}function D(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof R(e).ShadowRoot)}function M(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=z(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function F(e){return["table","td","th"].includes(C(e))}function j(e){const t=H(),n=z(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function H(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function B(e){return["html","body","#document"].includes(C(e))}function z(e){return R(e).getComputedStyle(e)}function V(e){return P(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function W(e){if("html"===C(e))return e;const t=e.assignedSlot||e.parentNode||D(e)&&e.host||N(e);return D(t)?t.host:t}function q(e){const t=W(e);return B(t)?e.ownerDocument?e.ownerDocument.body:e.body:I(t)&&M(t)?t:q(t)}function $(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=q(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),l=R(o);return i?t.concat(l,l.visualViewport||[],M(o)?o:[],l.frameElement&&n?$(l.frameElement):[]):t.concat(o,$(o,[],n))}function U(e){const t=z(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=I(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:r,a=c(n)!==i||c(r)!==l;return a&&(n=i,r=l),{width:n,height:r,$:a}}function X(e){return P(e)?e:e.contextElement}function G(e){const t=X(e);if(!I(t))return d(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=U(t);let l=(i?c(n.width):n.width)/r,a=(i?c(n.height):n.height)/o;return l&&Number.isFinite(l)||(l=1),a&&Number.isFinite(a)||(a=1),{x:l,y:a}}const K=d(0);function Y(e){const t=R(e);return H()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:K}function Z(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=X(e);let l=d(1);t&&(r?P(r)&&(l=G(r)):l=G(e));const a=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==R(e))&&t}(i,n,r)?Y(i):d(0);let s=(o.left+a.x)/l.x,c=(o.top+a.y)/l.y,u=o.width/l.x,f=o.height/l.y;if(i){const e=R(i),t=r&&P(r)?R(r):r;let n=e,o=n.frameElement;for(;o&&r&&t!==n;){const e=G(o),t=o.getBoundingClientRect(),r=z(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,c*=e.y,u*=e.x,f*=e.y,s+=i,c+=l,n=R(o),o=n.frameElement}}return T({width:u,height:f,x:s,y:c})}const J=[":popover-open",":modal"];function Q(e){return J.some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function ee(e){return Z(N(e)).left+V(e).scrollLeft}function te(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=R(e),r=N(e),o=n.visualViewport;let i=r.clientWidth,l=r.clientHeight,a=0,s=0;if(o){i=o.width,l=o.height;const e=H();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,s=o.offsetTop)}return{width:i,height:l,x:a,y:s}}(e,n);else if("document"===t)r=function(e){const t=N(e),n=V(e),r=e.ownerDocument.body,o=s(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=s(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+ee(e);const a=-n.scrollTop;return"rtl"===z(r).direction&&(l+=s(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:l,y:a}}(N(e));else if(P(t))r=function(e,t){const n=Z(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=I(e)?G(e):d(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=Y(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return T(r)}function ne(e,t){const n=W(e);return!(n===t||!P(n)||B(n))&&("fixed"===z(n).position||ne(n,t))}function re(e,t,n){const r=I(t),o=N(t),i="fixed"===n,l=Z(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const s=d(0);if(r||!r&&!i)if(("body"!==C(t)||M(o))&&(a=V(t)),r){const e=Z(t,!0,i,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&(s.x=ee(o));return{x:l.left+a.scrollLeft-s.x,y:l.top+a.scrollTop-s.y,width:l.width,height:l.height}}function oe(e,t){return I(e)&&"fixed"!==z(e).position?t?t(e):e.offsetParent:null}function ie(e,t){const n=R(e);if(!I(e)||Q(e))return n;let r=oe(e,t);for(;r&&F(r)&&"static"===z(r).position;)r=oe(r,t);return r&&("html"===C(r)||"body"===C(r)&&"static"===z(r).position&&!j(r))?n:r||function(e){let t=W(e);for(;I(t)&&!B(t);){if(j(t))return t;t=W(t)}return null}(e)||n}const le={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,l=N(r),a=!!t&&Q(t.floating);if(r===l||a&&i)return n;let s={scrollLeft:0,scrollTop:0},c=d(1);const u=d(0),f=I(r);if((f||!f&&!i)&&(("body"!==C(r)||M(l))&&(s=V(r)),I(r))){const e=Z(r);c=G(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-s.scrollLeft*c.x+u.x,y:n.y*c.y-s.scrollTop*c.y+u.y}},getDocumentElement:N,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let r=$(e,[],!1).filter((e=>P(e)&&"body"!==C(e))),o=null;const i="fixed"===z(e).position;let l=i?W(e):e;for(;P(l)&&!B(l);){const t=z(l),n=j(l);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||M(l)&&!n&&ne(e,l))?r=r.filter((e=>e!==l)):o=t,l=W(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],l=i[0],c=i.reduce(((e,n)=>{const r=te(t,n,o);return e.top=s(r.top,e.top),e.right=a(r.right,e.right),e.bottom=a(r.bottom,e.bottom),e.left=s(r.left,e.left),e}),te(t,l,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},getOffsetParent:ie,getElementRects:async function(e){const t=this.getOffsetParent||ie,n=this.getDimensions;return{reference:re(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,...await n(e.floating)}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=U(e);return{width:t,height:n}},getScale:G,isElement:P,isRTL:function(e){return"rtl"===z(e).direction}};const ae=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=h(e,t),c={x:n,y:r},u=await A(t,s),d=w(y(o)),f=g(d);let p=c[f],v=c[d];if(i){const e="y"===f?"bottom":"right";p=m(p+u["y"===f?"top":"left"],p,p-u[e])}if(l){const e="y"===d?"bottom":"right";v=m(v+u["y"===d?"top":"left"],v,v-u[e])}const b=a.fn({...t,[f]:p,[d]:v});return{...b,data:{x:b.x-n,y:b.y-r}}}}},se=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:l,initialPlacement:a,platform:s,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:g=!0,...w}=h(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const S=y(o),T=y(a)===a,k=await(null==s.isRTL?void 0:s.isRTL(c.floating)),O=f||(T||!g?[_(a)]:function(e){const t=_(e);return[E(e),t,E(t)]}(a));f||"none"===m||O.push(...function(e,t,n,r){const o=v(e);let i=function(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],l=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:l;default:return[]}}(y(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(E)))),i}(a,g,m,k));const C=[a,...O],R=await A(t,w),N=[];let L=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&N.push(R[S]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=v(e),o=x(e),i=b(o);let l="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=_(l)),[l,_(l)]}(o,l,k);N.push(R[e[0]],R[e[1]])}if(L=[...L,{placement:o,overflows:N}],!N.every((e=>e<=0))){var P,I;const e=((null==(P=i.flip)?void 0:P.index)||0)+1,t=C[e];if(t)return{data:{index:e,overflows:L},reset:{placement:t}};let n=null==(I=L.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:I.placement;if(!n)switch(p){case"bestFit":{var D;const e=null==(D=L.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:D[0];e&&(n=e);break}case"initialPlacement":n=a}if(o!==n)return{reset:{placement:n}}}return{}}}},ce=(e,t,n)=>{const r=new Map,o={platform:le,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,a=i.filter(Boolean),s=await(null==l.isRTL?void 0:l.isRTL(t));let c=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=k(c,r,s),f=r,p={},m=0;for(let n=0;n{if(!e)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};if(null===t)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};const c=l;return n?(c.push({name:"arrow",options:u={element:n,padding:5},async fn(e){const{x:t,y:n,placement:r,rects:o,platform:i,elements:l,middlewareData:s}=e,{element:c,padding:d=0}=h(u,e)||{};if(null==c)return{};const f=S(d),p={x:t,y:n},y=x(r),g=b(y),w=await i.getDimensions(c),E="y"===y,_=E?"top":"left",T=E?"bottom":"right",k=E?"clientHeight":"clientWidth",A=o.reference[g]+o.reference[y]-p[y]-o.floating[g],O=p[y]-o.reference[y],C=await(null==i.getOffsetParent?void 0:i.getOffsetParent(c));let R=C?C[k]:0;R&&await(null==i.isElement?void 0:i.isElement(C))||(R=l.floating[k]||o.floating[g]);const N=A/2-O/2,L=R/2-w[g]/2-1,P=a(f[_],L),I=a(f[T],L),D=P,M=R-w[g]-I,F=R/2-w[g]/2+N,j=m(D,F,M),H=!s.arrow&&null!=v(r)&&F!==j&&o.reference[g]/2-(F{var o,i;const l={left:`${e}px`,top:`${t}px`,border:s},{x:a,y:c}=null!==(o=r.arrow)&&void 0!==o?o:{x:0,y:0},u=null!==(i={top:"bottom",right:"left",bottom:"top",left:"right"}[n.split("-")[0]])&&void 0!==i?i:"bottom",d=s&&{borderBottom:s,borderRight:s};let f=0;if(s){const e=`${s}`.match(/(\d+)px/);f=(null==e?void 0:e[1])?Number(e[1]):1}return{tooltipStyles:l,tooltipArrowStyles:{left:null!=a?`${a}px`:"",top:null!=c?`${c}px`:"",right:"",bottom:"",...d,[u]:`-${4+f}px`},place:n}}))):ce(e,t,{placement:"bottom",strategy:i,middleware:c}).then((({x:e,y:t,placement:n})=>({tooltipStyles:{left:`${e}px`,top:`${t}px`},tooltipArrowStyles:{},place:n})));var u},me=(e,t)=>!("CSS"in window&&"supports"in window.CSS)||window.CSS.supports(e,t),he=(e,t,n)=>{let r=null;const o=function(...o){const i=()=>{r=null,n||e.apply(this,o)};n&&!r&&(e.apply(this,o),r=setTimeout(i,t)),n||(r&&clearTimeout(r),r=setTimeout(i,t))};return o.cancel=()=>{r&&(clearTimeout(r),r=null)},o},ye=e=>null!==e&&!Array.isArray(e)&&"object"==typeof e,ve=(e,t)=>{if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&e.every(((e,n)=>ve(e,t[n])));if(Array.isArray(e)!==Array.isArray(t))return!1;if(!ye(e)||!ye(t))return e===t;const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every((n=>ve(e[n],t[n])))},ge=e=>{if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;const t=getComputedStyle(e);return["overflow","overflow-x","overflow-y"].some((e=>{const n=t.getPropertyValue(e);return"auto"===n||"scroll"===n}))},be=e=>{if(!e)return null;let t=e.parentElement;for(;t;){if(ge(t))return t;t=t.parentElement}return document.scrollingElement||document.documentElement},we="undefined"!=typeof window?e.useLayoutEffect:e.useEffect,xe={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},Ee=(0,e.createContext)({getTooltipData:()=>xe});function _e(t="DEFAULT_TOOLTIP_ID"){return(0,e.useContext)(Ee).getTooltipData(t)}var Se={tooltip:"core-styles-module_tooltip__3vRRp",fixed:"core-styles-module_fixed__pcSol",arrow:"core-styles-module_arrow__cvMwQ",noArrow:"core-styles-module_noArrow__xock6",clickable:"core-styles-module_clickable__ZuTTB",show:"core-styles-module_show__Nt9eE",closing:"core-styles-module_closing__sGnxF"},Te={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const ke=({forwardRef:t,id:n,className:r,classNameArrow:o,variant:i="dark",anchorId:l,anchorSelect:c,place:d="top",offset:f=10,events:p=["hover"],openOnClick:m=!1,positionStrategy:h="absolute",middlewares:y,wrapper:v,delayShow:g=0,delayHide:b=0,float:w=!1,hidden:x=!1,noArrow:E=!1,clickable:_=!1,closeOnEsc:S=!1,closeOnScroll:T=!1,closeOnResize:k=!1,openEvents:A,closeEvents:O,globalCloseEvents:C,imperativeModeOnly:R,style:L,position:P,afterShow:I,afterHide:D,content:M,contentWrapperRef:F,isOpen:j,defaultIsOpen:H=!1,setIsOpen:B,activeAnchor:z,setActiveAnchor:V,border:W,opacity:q,arrowColor:U,role:G="tooltip"})=>{var K;const Y=(0,e.useRef)(null),J=(0,e.useRef)(null),Q=(0,e.useRef)(null),ee=(0,e.useRef)(null),te=(0,e.useRef)(null),[ne,re]=(0,e.useState)({tooltipStyles:{},tooltipArrowStyles:{},place:d}),[oe,ie]=(0,e.useState)(!1),[le,ae]=(0,e.useState)(!1),[se,ce]=(0,e.useState)(null),de=(0,e.useRef)(!1),fe=(0,e.useRef)(null),{anchorRefs:me,setActiveAnchor:ye}=_e(n),ge=(0,e.useRef)(!1),[xe,Ee]=(0,e.useState)([]),ke=(0,e.useRef)(!1),Ae=m||p.includes("click"),Oe=Ae||(null==A?void 0:A.click)||(null==A?void 0:A.dblclick)||(null==A?void 0:A.mousedown),Ce=A?{...A}:{mouseenter:!0,focus:!0,click:!1,dblclick:!1,mousedown:!1};!A&&Ae&&Object.assign(Ce,{mouseenter:!1,focus:!1,click:!0});const Re=O?{...O}:{mouseleave:!0,blur:!0,click:!1,dblclick:!1,mouseup:!1};!O&&Ae&&Object.assign(Re,{mouseleave:!1,blur:!1});const Ne=C?{...C}:{escape:S||!1,scroll:T||!1,resize:k||!1,clickOutsideAnchor:Oe||!1};R&&(Object.assign(Ce,{mouseenter:!1,focus:!1,click:!1,dblclick:!1,mousedown:!1}),Object.assign(Re,{mouseleave:!1,blur:!1,click:!1,dblclick:!1,mouseup:!1}),Object.assign(Ne,{escape:!1,scroll:!1,resize:!1,clickOutsideAnchor:!1})),we((()=>(ke.current=!0,()=>{ke.current=!1})),[]);const Le=e=>{ke.current&&(e&&ae(!0),setTimeout((()=>{ke.current&&(null==B||B(e),void 0===j&&ie(e))}),10))};(0,e.useEffect)((()=>{if(void 0===j)return()=>null;j&&ae(!0);const e=setTimeout((()=>{ie(j)}),10);return()=>{clearTimeout(e)}}),[j]),(0,e.useEffect)((()=>{if(oe!==de.current)if(te.current&&clearTimeout(te.current),de.current=oe,oe)null==I||I();else{const e=(e=>{const t=getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay").match(/^([\d.]+)(ms|s)$/);if(!t)return 0;const[,n,r]=t;return Number(n)*("ms"===r?1:1e3)})();te.current=setTimeout((()=>{ae(!1),ce(null),null==D||D()}),e+25)}}),[oe]);const Pe=e=>{re((t=>ve(t,e)?t:e))},Ie=(e=g)=>{Q.current&&clearTimeout(Q.current),le?Le(!0):Q.current=setTimeout((()=>{Le(!0)}),e)},De=(e=b)=>{ee.current&&clearTimeout(ee.current),ee.current=setTimeout((()=>{ge.current||Le(!1)}),e)},Me=e=>{var t;if(!e)return;const n=null!==(t=e.currentTarget)&&void 0!==t?t:e.target;if(!(null==n?void 0:n.isConnected))return V(null),void ye({current:null});g?Ie():Le(!0),V(n),ye({current:n}),ee.current&&clearTimeout(ee.current)},Fe=()=>{_?De(b||100):b?De():Le(!1),Q.current&&clearTimeout(Q.current)},je=({x:e,y:t})=>{var n;const r={getBoundingClientRect:()=>({x:e,y:t,width:0,height:0,top:t,left:e,right:e,bottom:t})};pe({place:null!==(n=null==se?void 0:se.place)&&void 0!==n?n:d,offset:f,elementReference:r,tooltipReference:Y.current,tooltipArrowReference:J.current,strategy:h,middlewares:y,border:W}).then((e=>{Pe(e)}))},He=e=>{if(!e)return;const t=e,n={x:t.clientX,y:t.clientY};je(n),fe.current=n},Be=e=>{var t;if(!oe)return;const n=e.target;n.isConnected&&((null===(t=Y.current)||void 0===t?void 0:t.contains(n))||[document.querySelector(`[id='${l}']`),...xe].some((e=>null==e?void 0:e.contains(n)))||(Le(!1),Q.current&&clearTimeout(Q.current)))},ze=he(Me,50,!0),Ve=he(Fe,50,!0),We=e=>{Ve.cancel(),ze(e)},qe=()=>{ze.cancel(),Ve()},$e=(0,e.useCallback)((()=>{var e,t;const n=null!==(e=null==se?void 0:se.position)&&void 0!==e?e:P;n?je(n):w?fe.current&&je(fe.current):(null==z?void 0:z.isConnected)&&pe({place:null!==(t=null==se?void 0:se.place)&&void 0!==t?t:d,offset:f,elementReference:z,tooltipReference:Y.current,tooltipArrowReference:J.current,strategy:h,middlewares:y,border:W}).then((e=>{ke.current&&Pe(e)}))}),[oe,z,M,L,d,null==se?void 0:se.place,f,h,P,null==se?void 0:se.position,w]);(0,e.useEffect)((()=>{var e,t;const n=new Set(me);xe.forEach((e=>{n.add({current:e})}));const r=document.querySelector(`[id='${l}']`);r&&n.add({current:r});const o=()=>{Le(!1)},i=be(z),c=be(Y.current);Ne.scroll&&(window.addEventListener("scroll",o),null==i||i.addEventListener("scroll",o),null==c||c.addEventListener("scroll",o));let d=null;Ne.resize?window.addEventListener("resize",o):z&&Y.current&&(d=function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:c="function"==typeof IntersectionObserver,animationFrame:d=!1}=r,f=X(e),p=o||i?[...f?$(f):[],...$(t)]:[];p.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const m=f&&c?function(e,t){let n,r=null;const o=N(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function l(c,d){void 0===c&&(c=!1),void 0===d&&(d=1),i();const{left:f,top:p,width:m,height:h}=e.getBoundingClientRect();if(c||t(),!m||!h)return;const y={rootMargin:-u(p)+"px "+-u(o.clientWidth-(f+m))+"px "+-u(o.clientHeight-(p+h))+"px "+-u(f)+"px",threshold:s(0,a(1,d))||1};let v=!0;function g(e){const t=e[0].intersectionRatio;if(t!==d){if(!v)return l();t?l(!1,t):n=setTimeout((()=>{l(!1,1e-7)}),100)}v=!1}try{r=new IntersectionObserver(g,{...y,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(g,y)}r.observe(e)}(!0),i}(f,n):null;let h,y=-1,v=null;l&&(v=new ResizeObserver((e=>{let[r]=e;r&&r.target===f&&v&&(v.unobserve(t),cancelAnimationFrame(y),y=requestAnimationFrame((()=>{var e;null==(e=v)||e.observe(t)}))),n()})),f&&!d&&v.observe(f),v.observe(t));let g=d?Z(e):null;return d&&function t(){const r=Z(e);!g||r.x===g.x&&r.y===g.y&&r.width===g.width&&r.height===g.height||n(),g=r,h=requestAnimationFrame(t)}(),n(),()=>{var e;p.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==m||m(),null==(e=v)||e.disconnect(),v=null,d&&cancelAnimationFrame(h)}}(z,Y.current,$e,{ancestorResize:!0,elementResize:!0,layoutShift:!0}));const f=e=>{"Escape"===e.key&&Le(!1)};Ne.escape&&window.addEventListener("keydown",f),Ne.clickOutsideAnchor&&window.addEventListener("click",Be);const p=[],m=e=>{oe&&(null==e?void 0:e.target)===z||Me(e)},h=e=>{oe&&(null==e?void 0:e.target)===z&&Fe()},y=["mouseenter","mouseleave","focus","blur"],v=["click","dblclick","mousedown","mouseup"];Object.entries(Ce).forEach((([e,t])=>{t&&(y.includes(e)?p.push({event:e,listener:We}):v.includes(e)&&p.push({event:e,listener:m}))})),Object.entries(Re).forEach((([e,t])=>{t&&(y.includes(e)?p.push({event:e,listener:qe}):v.includes(e)&&p.push({event:e,listener:h}))})),w&&p.push({event:"pointermove",listener:He});const g=()=>{ge.current=!0},b=()=>{ge.current=!1,Fe()};return _&&!Oe&&(null===(e=Y.current)||void 0===e||e.addEventListener("mouseenter",g),null===(t=Y.current)||void 0===t||t.addEventListener("mouseleave",b)),p.forEach((({event:e,listener:t})=>{n.forEach((n=>{var r;null===(r=n.current)||void 0===r||r.addEventListener(e,t)}))})),()=>{var e,t;Ne.scroll&&(window.removeEventListener("scroll",o),null==i||i.removeEventListener("scroll",o),null==c||c.removeEventListener("scroll",o)),Ne.resize?window.removeEventListener("resize",o):null==d||d(),Ne.clickOutsideAnchor&&window.removeEventListener("click",Be),Ne.escape&&window.removeEventListener("keydown",f),_&&!Oe&&(null===(e=Y.current)||void 0===e||e.removeEventListener("mouseenter",g),null===(t=Y.current)||void 0===t||t.removeEventListener("mouseleave",b)),p.forEach((({event:e,listener:t})=>{n.forEach((n=>{var r;null===(r=n.current)||void 0===r||r.removeEventListener(e,t)}))}))}}),[z,$e,le,me,xe,A,O,C,Ae,g,b]),(0,e.useEffect)((()=>{var e,t;let r=null!==(t=null!==(e=null==se?void 0:se.anchorSelect)&&void 0!==e?e:c)&&void 0!==t?t:"";!r&&n&&(r=`[data-tooltip-id='${n}']`);const o=new MutationObserver((e=>{const t=[],o=[];e.forEach((e=>{if("attributes"===e.type&&"data-tooltip-id"===e.attributeName&&(e.target.getAttribute("data-tooltip-id")===n?t.push(e.target):e.oldValue===n&&o.push(e.target)),"childList"===e.type){if(z){const t=[...e.removedNodes].filter((e=>1===e.nodeType));if(r)try{o.push(...t.filter((e=>e.matches(r)))),o.push(...t.flatMap((e=>[...e.querySelectorAll(r)])))}catch(e){}t.some((e=>{var t;return!!(null===(t=null==e?void 0:e.contains)||void 0===t?void 0:t.call(e,z))&&(ae(!1),Le(!1),V(null),Q.current&&clearTimeout(Q.current),ee.current&&clearTimeout(ee.current),!0)}))}if(r)try{const n=[...e.addedNodes].filter((e=>1===e.nodeType));t.push(...n.filter((e=>e.matches(r)))),t.push(...n.flatMap((e=>[...e.querySelectorAll(r)])))}catch(e){}}})),(t.length||o.length)&&Ee((e=>[...e.filter((e=>!o.includes(e))),...t]))}));return o.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"],attributeOldValue:!0}),()=>{o.disconnect()}}),[n,c,null==se?void 0:se.anchorSelect,z]),(0,e.useEffect)((()=>{$e()}),[$e]),(0,e.useEffect)((()=>{if(!(null==F?void 0:F.current))return()=>null;const e=new ResizeObserver((()=>{setTimeout((()=>$e()))}));return e.observe(F.current),()=>{e.disconnect()}}),[M,null==F?void 0:F.current]),(0,e.useEffect)((()=>{var e;const t=document.querySelector(`[id='${l}']`),n=[...xe,t];z&&n.includes(z)||V(null!==(e=xe[0])&&void 0!==e?e:t)}),[l,xe,z]),(0,e.useEffect)((()=>(H&&Le(!0),()=>{Q.current&&clearTimeout(Q.current),ee.current&&clearTimeout(ee.current)})),[]),(0,e.useEffect)((()=>{var e;let t=null!==(e=null==se?void 0:se.anchorSelect)&&void 0!==e?e:c;if(!t&&n&&(t=`[data-tooltip-id='${n}']`),t)try{const e=Array.from(document.querySelectorAll(t));Ee(e)}catch(e){Ee([])}}),[n,c,null==se?void 0:se.anchorSelect]),(0,e.useEffect)((()=>{Q.current&&(clearTimeout(Q.current),Ie(g))}),[g]);const Ue=null!==(K=null==se?void 0:se.content)&&void 0!==K?K:M,Xe=oe&&Object.keys(ne.tooltipStyles).length>0;return(0,e.useImperativeHandle)(t,(()=>({open:e=>{if(null==e?void 0:e.anchorSelect)try{document.querySelector(e.anchorSelect)}catch(t){return void console.warn(`[react-tooltip] "${e.anchorSelect}" is not a valid CSS selector`)}ce(null!=e?e:null),(null==e?void 0:e.delay)?Ie(e.delay):Le(!0)},close:e=>{(null==e?void 0:e.delay)?De(e.delay):Le(!1)},activeAnchor:z,place:ne.place,isOpen:Boolean(le&&!x&&Ue&&Xe)}))),le&&!x&&Ue?e.createElement(v,{id:n,role:G,className:ue("react-tooltip",Se.tooltip,Te.tooltip,Te[i],r,`react-tooltip__place-${ne.place}`,Se[Xe?"show":"closing"],Xe?"react-tooltip__show":"react-tooltip__closing","fixed"===h&&Se.fixed,_&&Se.clickable),onTransitionEnd:e=>{te.current&&clearTimeout(te.current),oe||"opacity"!==e.propertyName||(ae(!1),ce(null),null==D||D())},style:{...L,...ne.tooltipStyles,opacity:void 0!==q&&Xe?q:void 0},ref:Y},Ue,e.createElement(v,{className:ue("react-tooltip-arrow",Se.arrow,Te.arrow,o,E&&Se.noArrow),style:{...ne.tooltipArrowStyles,background:U?`linear-gradient(to right bottom, transparent 50%, ${U} 50%)`:void 0},ref:J})):null},Ae=({content:t})=>e.createElement("span",{dangerouslySetInnerHTML:{__html:t}}),Oe=e.forwardRef((({id:t,anchorId:n,anchorSelect:r,content:o,html:i,render:l,className:a,classNameArrow:s,variant:c="dark",place:u="top",offset:d=10,wrapper:f="div",children:p=null,events:m=["hover"],openOnClick:h=!1,positionStrategy:y="absolute",middlewares:v,delayShow:g=0,delayHide:b=0,float:w=!1,hidden:x=!1,noArrow:E=!1,clickable:_=!1,closeOnEsc:S=!1,closeOnScroll:T=!1,closeOnResize:k=!1,openEvents:A,closeEvents:O,globalCloseEvents:C,imperativeModeOnly:R=!1,style:N,position:L,isOpen:P,defaultIsOpen:I=!1,disableStyleInjection:D=!1,border:M,opacity:F,arrowColor:j,setIsOpen:H,afterShow:B,afterHide:z,role:V="tooltip"},W)=>{const[q,$]=(0,e.useState)(o),[U,X]=(0,e.useState)(i),[G,K]=(0,e.useState)(u),[Y,Z]=(0,e.useState)(c),[J,Q]=(0,e.useState)(d),[ee,te]=(0,e.useState)(g),[ne,re]=(0,e.useState)(b),[oe,ie]=(0,e.useState)(w),[le,ae]=(0,e.useState)(x),[se,ce]=(0,e.useState)(f),[de,fe]=(0,e.useState)(m),[pe,he]=(0,e.useState)(y),[ye,ve]=(0,e.useState)(null),[ge,be]=(0,e.useState)(null),we=(0,e.useRef)(D),{anchorRefs:xe,activeAnchor:Ee}=_e(t),Se=e=>null==e?void 0:e.getAttributeNames().reduce(((t,n)=>{var r;return n.startsWith("data-tooltip-")&&(t[n.replace(/^data-tooltip-/,"")]=null!==(r=null==e?void 0:e.getAttribute(n))&&void 0!==r?r:null),t}),{}),Te=e=>{const t={place:e=>{var t;K(null!==(t=e)&&void 0!==t?t:u)},content:e=>{$(null!=e?e:o)},html:e=>{X(null!=e?e:i)},variant:e=>{var t;Z(null!==(t=e)&&void 0!==t?t:c)},offset:e=>{Q(null===e?d:Number(e))},wrapper:e=>{var t;ce(null!==(t=e)&&void 0!==t?t:f)},events:e=>{const t=null==e?void 0:e.split(" ");fe(null!=t?t:m)},"position-strategy":e=>{var t;he(null!==(t=e)&&void 0!==t?t:y)},"delay-show":e=>{te(null===e?g:Number(e))},"delay-hide":e=>{re(null===e?b:Number(e))},float:e=>{ie(null===e?w:"true"===e)},hidden:e=>{ae(null===e?x:"true"===e)},"class-name":e=>{ve(e)}};Object.values(t).forEach((e=>e(null))),Object.entries(e).forEach((([e,n])=>{var r;null===(r=t[e])||void 0===r||r.call(t,n)}))};(0,e.useEffect)((()=>{$(o)}),[o]),(0,e.useEffect)((()=>{X(i)}),[i]),(0,e.useEffect)((()=>{K(u)}),[u]),(0,e.useEffect)((()=>{Z(c)}),[c]),(0,e.useEffect)((()=>{Q(d)}),[d]),(0,e.useEffect)((()=>{te(g)}),[g]),(0,e.useEffect)((()=>{re(b)}),[b]),(0,e.useEffect)((()=>{ie(w)}),[w]),(0,e.useEffect)((()=>{ae(x)}),[x]),(0,e.useEffect)((()=>{he(y)}),[y]),(0,e.useEffect)((()=>{we.current!==D&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")}),[D]),(0,e.useEffect)((()=>{"undefined"!=typeof window&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:"core"===D,disableBase:D}}))}),[]),(0,e.useEffect)((()=>{var e;const o=new Set(xe);let i=r;if(!i&&t&&(i=`[data-tooltip-id='${t}']`),i)try{document.querySelectorAll(i).forEach((e=>{o.add({current:e})}))}catch(e){console.warn(`[react-tooltip] "${i}" is not a valid CSS selector`)}const l=document.querySelector(`[id='${n}']`);if(l&&o.add({current:l}),!o.size)return()=>null;const a=null!==(e=null!=ge?ge:l)&&void 0!==e?e:Ee.current,s=new MutationObserver((e=>{e.forEach((e=>{var t;if(!a||"attributes"!==e.type||!(null===(t=e.attributeName)||void 0===t?void 0:t.startsWith("data-tooltip-")))return;const n=Se(a);Te(n)}))})),c={attributes:!0,childList:!1,subtree:!1};if(a){const e=Se(a);Te(e),s.observe(a,c)}return()=>{s.disconnect()}}),[xe,Ee,ge,n,r]),(0,e.useEffect)((()=>{(null==N?void 0:N.border)&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),M&&!me("border",`${M}`)&&console.warn(`[react-tooltip] "${M}" is not a valid \`border\`.`),(null==N?void 0:N.opacity)&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),F&&!me("opacity",`${F}`)&&console.warn(`[react-tooltip] "${F}" is not a valid \`opacity\`.`)}),[]);let Oe=p;const Ce=(0,e.useRef)(null);if(l){const t=l({content:(null==ge?void 0:ge.getAttribute("data-tooltip-content"))||q||null,activeAnchor:ge});Oe=t?e.createElement("div",{ref:Ce,className:"react-tooltip-content-wrapper"},t):null}else q&&(Oe=q);U&&(Oe=e.createElement(Ae,{content:U}));const Re={forwardRef:W,id:t,anchorId:n,anchorSelect:r,className:ue(a,ye),classNameArrow:s,content:Oe,contentWrapperRef:Ce,place:G,variant:Y,offset:J,wrapper:se,events:de,openOnClick:h,positionStrategy:pe,middlewares:v,delayShow:ee,delayHide:ne,float:oe,hidden:le,noArrow:E,clickable:_,closeOnEsc:S,closeOnScroll:T,closeOnResize:k,openEvents:A,closeEvents:O,globalCloseEvents:C,imperativeModeOnly:R,style:N,position:L,isOpen:P,defaultIsOpen:I,border:M,opacity:F,arrowColor:j,setIsOpen:H,afterShow:B,afterHide:z,activeAnchor:ge,setActiveAnchor:e=>be(e),role:V};return e.createElement(ke,{...Re})}));"undefined"!=typeof window&&window.addEventListener("react-tooltip-inject-styles",(e=>{e.detail.disableCore||fe({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in}",type:"core"}),e.detail.disableBase||fe({css:"\n.styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:8px;height:8px}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}",type:"base"})}));const Ce=window.wp.i18n,Re=window.wp.components,Ne=({onlineEventLinkDefault:t=""})=>{const n=(0,Ce.__)("Online event","gatherpress"),[r,i]=(0,o.useState)(t);return((e,t="")=>{for(const[n,r]of Object.entries(e)){let e=n;t&&(e+="_"+String(t)),addEventListener(e,(e=>{r(e.detail)}),!1)}})({setOnlineEventLink:i},function(e){if("object"==typeof GatherPress)return"eventDetails.postId".split(".").reduce(((e,t)=>e&&e[t]),GatherPress)}()),(0,e.createElement)(Re.Flex,{justify:"normal",gap:"3"},(0,e.createElement)(Re.FlexItem,{display:"flex"},(0,e.createElement)(Re.Icon,{icon:"video-alt2"})),(0,e.createElement)(Re.FlexItem,null,!r&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("span",{tabIndex:"0",className:"gatherpress-tooltip","data-tooltip-id":"gatherpress-online-event-tooltip","data-tooltip-content":(0,Ce.__)("Link available for attendees only.","gatherpress")},n),(0,e.createElement)(Oe,{id:"gatherpress-online-event-tooltip"})),r&&(0,e.createElement)("a",{href:r,rel:"noreferrer",target:"_blank"},n)))};var Le=n(442);const Pe=Le.default||Le,Ie=({name:t,fullAddress:n,phoneNumber:r,website:o})=>(0,e.createElement)(e.Fragment,null,(t||n)&&(0,e.createElement)(Re.Flex,{justify:"normal",align:"flex-start",gap:"4"},(0,e.createElement)(Re.FlexItem,{display:"flex",className:"gatherpress-venue__icon"},(0,e.createElement)(Re.Icon,{icon:"location"})),(0,e.createElement)(Re.FlexItem,null,t&&(0,e.createElement)("div",{className:"gatherpress-venue__name"},(0,e.createElement)("strong",null,Pe(t))),n&&(0,e.createElement)("div",{className:"gatherpress-venue__full-address"},Pe(n)))),(r||o)&&(0,e.createElement)(Re.Flex,{justify:"normal",gap:"8"},r&&(0,e.createElement)(Re.FlexItem,null,(0,e.createElement)(Re.Flex,{justify:"normal",gap:"4"},(0,e.createElement)(Re.FlexItem,{display:"flex",className:"gatherpress-venue__icon"},(0,e.createElement)(Re.Icon,{icon:"phone"})),(0,e.createElement)(Re.FlexItem,null,(0,e.createElement)("div",{className:"gatherpress-venue__phone-number"},r)))),o&&(0,e.createElement)(Re.FlexItem,null,(0,e.createElement)(Re.Flex,{justify:"normal",gap:"4"},(0,e.createElement)(Re.FlexItem,{display:"flex",className:"gatherpress-venue__icon"},(0,e.createElement)(Re.Icon,{icon:"admin-site-alt3"})),(0,e.createElement)(Re.FlexItem,null,(0,e.createElement)("div",{className:"gatherpress-venue__website"},(0,e.createElement)("a",{href:o,target:"_blank",rel:"noreferrer noopener"},o))))))),De=({name:t="",fullAddress:n,phoneNumber:r,website:o,isOnlineEventTerm:i=!1,onlineEventLink:l=""})=>(0,e.createElement)(e.Fragment,null,!i&&(0,e.createElement)(Ie,{name:t,fullAddress:n,phoneNumber:r,website:o}),i&&(0,e.createElement)(Ne,{onlineEventLinkDefault:l}));r()((()=>{let t=document.querySelectorAll('[data-gatherpress_block_name="venue"]');for(let l=0;l{var e={5413:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(n=t.ElementType||(t.ElementType={})),t.isTag=function(e){return e.type===n.Tag||e.type===n.Script||e.type===n.Style},t.Root=n.Root,t.Text=n.Text,t.Directive=n.Directive,t.Comment=n.Comment,t.Script=n.Script,t.Style=n.Style,t.Tag=n.Tag,t.CDATA=n.CDATA,t.Doctype=n.Doctype},1141:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var i=n(5413),l=n(6957);o(n(6957),t);var a={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},s=function(){function e(e,t,n){this.dom=[],this.root=new l.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=a),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:a,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new l.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?i.ElementType.Tag:void 0,r=new l.Element(e,t,void 0,n);this.addNode(r),this.tagStack.push(r)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===i.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var n=new l.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===i.ElementType.Comment)this.lastNode.data+=e;else{var t=new l.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new l.Text(""),t=new l.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new l.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=s,t.default=s},6957:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(a);t.NodeWithChildren=f;var p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=l.ElementType.CDATA,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(f);t.CDATA=p;var m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=l.ElementType.Root,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(f);t.Document=m;var h=function(e){function t(t,n,r,o){void 0===r&&(r=[]),void 0===o&&(o="script"===t?l.ElementType.Script:"style"===t?l.ElementType.Style:l.ElementType.Tag);var i=e.call(this,r)||this;return i.name=t,i.attribs=n,i.type=o,i}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var n,r;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(r=e["x-attribsPrefix"])||void 0===r?void 0:r[t]}}))},enumerable:!1,configurable:!0}),t}(f);function y(e){return(0,l.isTag)(e)}function v(e){return e.type===l.ElementType.CDATA}function g(e){return e.type===l.ElementType.Text}function b(e){return e.type===l.ElementType.Comment}function w(e){return e.type===l.ElementType.Directive}function x(e){return e.type===l.ElementType.Root}function E(e,t){var n;if(void 0===t&&(t=!1),g(e))n=new c(e.data);else if(b(e))n=new u(e.data);else if(y(e)){var r=t?_(e.children):[],o=new h(e.name,i({},e.attribs),r);r.forEach((function(e){return e.parent=o})),null!=e.namespace&&(o.namespace=e.namespace),e["x-attribsNamespace"]&&(o["x-attribsNamespace"]=i({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(o["x-attribsPrefix"]=i({},e["x-attribsPrefix"])),n=o}else if(v(e)){r=t?_(e.children):[];var l=new p(r);r.forEach((function(e){return e.parent=l})),n=l}else if(x(e)){r=t?_(e.children):[];var a=new m(r);r.forEach((function(e){return e.parent=a})),e["x-mode"]&&(a["x-mode"]=e["x-mode"]),n=a}else{if(!w(e))throw new Error("Not implemented yet: ".concat(e.type));var s=new d(e.name,e.data);null!=e["x-name"]&&(s["x-name"]=e["x-name"],s["x-publicId"]=e["x-publicId"],s["x-systemId"]=e["x-systemId"]),n=s}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function _(e){for(var t=e.map((function(e){return E(e,!0)})),n=1;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES=void 0,t.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES.reduce((function(e,t){return e[t.toLowerCase()]=t,e}),{})},5496:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="html",r="head",o="body",i=/<([a-zA-Z]+[0-9]?)/,l=//i,a=//i,s=function(e,t){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},c=function(e,t){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},u="object"==typeof window&&window.DOMParser;if("function"==typeof u){var d=new u;s=c=function(e,t){return t&&(e="<".concat(t,">").concat(e,"")),d.parseFromString(e,"text/html")}}if("object"==typeof document&&document.implementation){var f=document.implementation.createHTMLDocument();s=function(e,t){if(t){var n=f.documentElement.querySelector(t);return n&&(n.innerHTML=e),f}return f.documentElement.innerHTML=e,f}}var p,m="object"==typeof document&&document.createElement("template");m&&m.content&&(p=function(e){return m.innerHTML=e,m.content.childNodes}),t.default=function(e){var t,u,d=e.match(i),f=d&&d[1]?d[1].toLowerCase():"";switch(f){case n:var m=c(e);return l.test(e)||null===(t=null==(y=m.querySelector(r))?void 0:y.parentNode)||void 0===t||t.removeChild(y),a.test(e)||null===(u=null==(y=m.querySelector(o))?void 0:y.parentNode)||void 0===u||u.removeChild(y),m.querySelectorAll(n);case r:case o:var h=s(e).querySelectorAll(f);return a.test(e)&&l.test(e)?h[0].parentNode.childNodes:h;default:return p?p(e):(y=s(e,o).querySelector(o)).childNodes;var y}}},2471:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(5496)),i=n(7731),l=/<(![a-zA-Z\s]+)>/;t.default=function(e){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];var t=e.match(l),n=t?t[1]:void 0;return(0,i.formatDOM)((0,o.default)(e),null,n)}},7731:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatDOM=t.formatAttributes=void 0;var r=n(1141),o=n(5270);function i(e){for(var t={},n=0,r=e.length;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(4210),o=n(4958),i=["checked","value"],l=["input","select","textarea"],a={reset:!0,submit:!0};function s(e){return r.possibleStandardNames[e]}t.default=function(e,t){void 0===e&&(e={});var n={},c=Boolean(e.type&&a[e.type]);for(var u in e){var d=e[u];if((0,r.isCustomAttribute)(u))n[u]=d;else{var f=u.toLowerCase(),p=s(f);if(p){var m=(0,r.getPropertyInfo)(p);switch(i.includes(p)&&l.includes(t)&&!c&&(p=s("default"+f)),n[p]=d,m&&m.type){case r.BOOLEAN:n[p]=!0;break;case r.OVERLOADED_BOOLEAN:""===d&&(n[p]=!0)}}else o.PRESERVE_CUSTOM_ATTRIBUTES&&(n[u]=d)}}return(0,o.setStyleProp)(e.style,n),n}},308:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(1609),i=r(n(840)),l=n(4958),a={cloneElement:o.cloneElement,createElement:o.createElement,isValidElement:o.isValidElement};function s(e){return l.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&(0,l.isCustomComponent)(e.name,e.attribs)}t.default=function e(t,n){void 0===n&&(n={});for(var r=[],o="function"==typeof n.replace,c=n.transform||l.returnFirstArg,u=n.library||a,d=u.cloneElement,f=u.createElement,p=u.isValidElement,m=t.length,h=0;h1&&(v=d(v,{key:v.key||h})),r.push(c(v,y,h));continue}}if("text"!==y.type){var g=y,b={};s(g)?((0,l.setStyleProp)(g.attribs.style,g.attribs),b=g.attribs):g.attribs&&(b=(0,i.default)(g.attribs,g.name));var w=void 0;switch(y.type){case"script":case"style":y.children[0]&&(b.dangerouslySetInnerHTML={__html:y.children[0].data});break;case"tag":"textarea"===y.name&&y.children[0]?b.defaultValue=y.children[0].data:y.children&&y.children.length&&(w=e(y.children,n));break;default:continue}m>1&&(b.key=h),r.push(c(f(y.name,b,w),y,h))}else{var x=!y.data.trim().length;if(x&&y.parent&&!(0,l.canTextBeChildOfNode)(y.parent))continue;if(n.trim&&x)continue;r.push(c(y.data,y,h))}}return 1===r.length?r[0]:r}},442:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.htmlToDOM=t.domToReact=t.attributesToProps=t.Text=t.ProcessingInstruction=t.Element=t.Comment=void 0;var o=r(n(2471));t.htmlToDOM=o.default;var i=r(n(840));t.attributesToProps=i.default;var l=r(n(308));t.domToReact=l.default;var a=n(1141);Object.defineProperty(t,"Comment",{enumerable:!0,get:function(){return a.Comment}}),Object.defineProperty(t,"Element",{enumerable:!0,get:function(){return a.Element}}),Object.defineProperty(t,"ProcessingInstruction",{enumerable:!0,get:function(){return a.ProcessingInstruction}}),Object.defineProperty(t,"Text",{enumerable:!0,get:function(){return a.Text}});var s={lowerCaseAttributeNames:!1};t.default=function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");return e?(0,l.default)((0,o.default)(e,(null==t?void 0:t.htmlparser2)||s),t):[]}},4958:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.returnFirstArg=t.canTextBeChildOfNode=t.ELEMENTS_WITH_NO_TEXT_CHILDREN=t.PRESERVE_CUSTOM_ATTRIBUTES=t.setStyleProp=t.isCustomComponent=void 0;var o=n(1609),i=r(n(5229)),l=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);t.isCustomComponent=function(e,t){return e.includes("-")?!l.has(e):Boolean(t&&"string"==typeof t.is)};var a={reactCompat:!0};t.setStyleProp=function(e,t){if("string"==typeof e)if(e.trim())try{t.style=(0,i.default)(e,a)}catch(e){t.style={}}else t.style={}},t.PRESERVE_CUSTOM_ATTRIBUTES=Number(o.version.split(".")[0])>=16,t.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]),t.canTextBeChildOfNode=function(e){return!t.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(e.name)},t.returnFirstArg=function(e){return e}},9788:e=>{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,l=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,s=/^\s+|\s+$/g,c="";function u(e){return e?e.replace(s,c):c}e.exports=function(e,s){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];s=s||{};var d=1,f=1;function p(e){var t=e.match(n);t&&(d+=t.length);var r=e.lastIndexOf("\n");f=~r?e.length-r:f+e.length}function m(){var e={line:d,column:f};return function(t){return t.position=new h(e),b(),t}}function h(e){this.start=e,this.end={line:d,column:f},this.source=s.source}h.prototype.content=e;var y=[];function v(t){var n=new Error(s.source+":"+d+":"+f+": "+t);if(n.reason=t,n.filename=s.source,n.line=d,n.column=f,n.source=e,!s.silent)throw n;y.push(n)}function g(t){var n=t.exec(e);if(n){var r=n[0];return p(r),e=e.slice(r.length),n}}function b(){g(r)}function w(e){var t;for(e=e||[];t=x();)!1!==t&&e.push(t);return e}function x(){var t=m();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;c!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,c===e.charAt(n-1))return v("End of comment missing");var r=e.slice(2,n-2);return f+=2,p(r),e=e.slice(n),f+=2,t({type:"comment",comment:r})}}function E(){var e=m(),n=g(o);if(n){if(x(),!g(i))return v("property missing ':'");var r=g(l),s=e({type:"declaration",property:u(n[0].replace(t,c)),value:r?u(r[0].replace(t,c)):c});return g(a),s}}return b(),function(){var e,t=[];for(w(t);e=E();)!1!==e&&(t.push(e),w(t));return t}()}},4210:(e,t,n)=>{"use strict";function r(e,t,n,r,o,i,l){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=l}const o={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach((e=>{o[e]=new r(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((([e,t])=>{o[e]=new r(e,1,!1,t,null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((e=>{o[e]=new r(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((e=>{o[e]=new r(e,2,!1,e,null,!1,!1)})),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach((e=>{o[e]=new r(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((e=>{o[e]=new r(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((e=>{o[e]=new r(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((e=>{o[e]=new r(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((e=>{o[e]=new r(e,5,!1,e.toLowerCase(),null,!1,!1)}));const i=/[\-\:]([a-z])/g,l=e=>e[1].toUpperCase();["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach((e=>{const t=e.replace(i,l);o[t]=new r(t,1,!1,e,null,!1,!1)})),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach((e=>{const t=e.replace(i,l);o[t]=new r(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((e=>{const t=e.replace(i,l);o[t]=new r(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((e=>{o[e]=new r(e,1,!1,e.toLowerCase(),null,!1,!1)})),o.xlinkHref=new r("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((e=>{o[e]=new r(e,1,!1,e.toLowerCase(),null,!0,!0)}));const{CAMELCASE:a,SAME:s,possibleStandardNames:c}=n(6811),u=RegExp.prototype.test.bind(new RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")),d=Object.keys(c).reduce(((e,t)=>{const n=c[t];return n===s?e[t]=t:n===a?e[t.toLowerCase()]=t:e[t]=n,e}),{});t.BOOLEAN=3,t.BOOLEANISH_STRING=2,t.NUMERIC=5,t.OVERLOADED_BOOLEAN=4,t.POSITIVE_NUMERIC=6,t.RESERVED=0,t.STRING=1,t.getPropertyInfo=function(e){return o.hasOwnProperty(e)?o[e]:null},t.isCustomAttribute=u,t.possibleStandardNames=d},6811:(e,t)=>{t.SAME=0,t.CAMELCASE=1,t.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}},5229:function(e,t,n){"use strict";var r=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n(1133)),o=n(8917);function i(e,t){var n={};return e&&"string"==typeof e?((0,r.default)(e,(function(e,r){e&&r&&(n[(0,o.camelCase)(e,t)]=r)})),n):n}i.default=i,e.exports=i},8917:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=void 0;var n=/^--[a-zA-Z0-9-]+$/,r=/-([a-z])/g,o=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,l=/^-(ms)-/,a=function(e,t){return t.toUpperCase()},s=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||o.test(e)||n.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(l,s):e.replace(i,s)).replace(r,a))}},1133:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(9788));t.default=function(e,t){var n=null;if(!e||"string"!=typeof e)return n;var r=(0,o.default)(e),i="function"==typeof t;return r.forEach((function(e){if("declaration"===e.type){var r=e.property,o=e.value;i?t(r,o,e):o&&((n=n||{})[r]=o)}})),n}},1609:e=>{"use strict";e.exports=window.React},6942:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e=n(1609);const t=window.wp.domReady;var r=n.n(t);const o=window.wp.element,i=window.wp.data,l=t=>{const n=(0,i.select)("core")?.canUser("create","posts"),r=Boolean((0,i.select)("core/edit-post")),{zoom:o,type:l,className:a}=t;let{location:s,height:c}=t;if(c||(c=300),!n||r||s||(s="660 4th Street #119 San Francisco CA 94107, USA"),!s)return(0,e.createElement)(e.Fragment,null);const u={border:0,height:c,width:"100%"},d="https://maps.google.com/maps?"+new URLSearchParams({q:s,z:o||10,t:l||"m",output:"embed"}).toString();return(0,e.createElement)("iframe",{src:d,style:u,className:a,title:s})},a=Math.min,s=Math.max,c=Math.round,u=Math.floor,d=e=>({x:e,y:e}),f={left:"right",right:"left",bottom:"top",top:"bottom"},p={start:"end",end:"start"};function m(e,t,n){return s(e,a(t,n))}function h(e,t){return"function"==typeof e?e(t):e}function y(e){return e.split("-")[0]}function v(e){return e.split("-")[1]}function g(e){return"x"===e?"y":"x"}function b(e){return"y"===e?"height":"width"}function w(e){return["top","bottom"].includes(y(e))?"y":"x"}function x(e){return g(w(e))}function E(e){return e.replace(/start|end/g,(e=>p[e]))}function _(e){return e.replace(/left|right|bottom|top/g,(e=>f[e]))}function S(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function T(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function k(e,t,n){let{reference:r,floating:o}=e;const i=w(t),l=x(t),a=b(l),s=y(t),c="y"===i,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[a]/2-o[a]/2;let p;switch(s){case"top":p={x:u,y:r.y-o.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(v(t)){case"start":p[l]-=f*(n&&c?-1:1);break;case"end":p[l]+=f*(n&&c?-1:1)}return p}async function A(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:l,elements:a,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=h(t,e),m=S(p),y=a[f?"floating"===d?"reference":"floating":d],v=T(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(y)))||n?y:y.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:s})),g="floating"===d?{x:r,y:o,width:l.floating.width,height:l.floating.height}:l.reference,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),w=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},x=T(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:g,offsetParent:b,strategy:s}):g);return{top:(v.top-x.top+m.top)/w.y,bottom:(x.bottom-v.bottom+m.bottom)/w.y,left:(v.left-x.left+m.left)/w.x,right:(x.right-v.right+m.right)/w.x}}function O(e){return N(e)?(e.nodeName||"").toLowerCase():"#document"}function C(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function R(e){var t;return null==(t=(N(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function N(e){return e instanceof Node||e instanceof C(e).Node}function L(e){return e instanceof Element||e instanceof C(e).Element}function P(e){return e instanceof HTMLElement||e instanceof C(e).HTMLElement}function I(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof C(e).ShadowRoot)}function D(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=B(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function M(e){return["table","td","th"].includes(O(e))}function F(e){const t=j(),n=B(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function j(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function H(e){return["html","body","#document"].includes(O(e))}function B(e){return C(e).getComputedStyle(e)}function z(e){return L(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function V(e){if("html"===O(e))return e;const t=e.assignedSlot||e.parentNode||I(e)&&e.host||R(e);return I(t)?t.host:t}function W(e){const t=V(e);return H(t)?e.ownerDocument?e.ownerDocument.body:e.body:P(t)&&D(t)?t:W(t)}function q(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=W(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),l=C(o);return i?t.concat(l,l.visualViewport||[],D(o)?o:[],l.frameElement&&n?q(l.frameElement):[]):t.concat(o,q(o,[],n))}function $(e){const t=B(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=P(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:r,a=c(n)!==i||c(r)!==l;return a&&(n=i,r=l),{width:n,height:r,$:a}}function U(e){return L(e)?e:e.contextElement}function X(e){const t=U(e);if(!P(t))return d(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=$(t);let l=(i?c(n.width):n.width)/r,a=(i?c(n.height):n.height)/o;return l&&Number.isFinite(l)||(l=1),a&&Number.isFinite(a)||(a=1),{x:l,y:a}}const G=d(0);function K(e){const t=C(e);return j()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:G}function Y(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=U(e);let l=d(1);t&&(r?L(r)&&(l=X(r)):l=X(e));const a=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==C(e))&&t}(i,n,r)?K(i):d(0);let s=(o.left+a.x)/l.x,c=(o.top+a.y)/l.y,u=o.width/l.x,f=o.height/l.y;if(i){const e=C(i),t=r&&L(r)?C(r):r;let n=e,o=n.frameElement;for(;o&&r&&t!==n;){const e=X(o),t=o.getBoundingClientRect(),r=B(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,c*=e.y,u*=e.x,f*=e.y,s+=i,c+=l,n=C(o),o=n.frameElement}}return T({width:u,height:f,x:s,y:c})}const Z=[":popover-open",":modal"];function J(e){return Z.some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function Q(e){return Y(R(e)).left+z(e).scrollLeft}function ee(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=C(e),r=R(e),o=n.visualViewport;let i=r.clientWidth,l=r.clientHeight,a=0,s=0;if(o){i=o.width,l=o.height;const e=j();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,s=o.offsetTop)}return{width:i,height:l,x:a,y:s}}(e,n);else if("document"===t)r=function(e){const t=R(e),n=z(e),r=e.ownerDocument.body,o=s(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=s(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+Q(e);const a=-n.scrollTop;return"rtl"===B(r).direction&&(l+=s(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:l,y:a}}(R(e));else if(L(t))r=function(e,t){const n=Y(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=P(e)?X(e):d(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=K(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return T(r)}function te(e,t){const n=V(e);return!(n===t||!L(n)||H(n))&&("fixed"===B(n).position||te(n,t))}function ne(e,t,n){const r=P(t),o=R(t),i="fixed"===n,l=Y(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const s=d(0);if(r||!r&&!i)if(("body"!==O(t)||D(o))&&(a=z(t)),r){const e=Y(t,!0,i,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&(s.x=Q(o));return{x:l.left+a.scrollLeft-s.x,y:l.top+a.scrollTop-s.y,width:l.width,height:l.height}}function re(e){return"static"===B(e).position}function oe(e,t){return P(e)&&"fixed"!==B(e).position?t?t(e):e.offsetParent:null}function ie(e,t){const n=C(e);if(J(e))return n;if(!P(e)){let t=V(e);for(;t&&!H(t);){if(L(t)&&!re(t))return t;t=V(t)}return n}let r=oe(e,t);for(;r&&M(r)&&re(r);)r=oe(r,t);return r&&H(r)&&re(r)&&!F(r)?n:r||function(e){let t=V(e);for(;P(t)&&!H(t);){if(F(t))return t;t=V(t)}return null}(e)||n}const le={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,l=R(r),a=!!t&&J(t.floating);if(r===l||a&&i)return n;let s={scrollLeft:0,scrollTop:0},c=d(1);const u=d(0),f=P(r);if((f||!f&&!i)&&(("body"!==O(r)||D(l))&&(s=z(r)),P(r))){const e=Y(r);c=X(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-s.scrollLeft*c.x+u.x,y:n.y*c.y-s.scrollTop*c.y+u.y}},getDocumentElement:R,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?J(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=q(e,[],!1).filter((e=>L(e)&&"body"!==O(e))),o=null;const i="fixed"===B(e).position;let l=i?V(e):e;for(;L(l)&&!H(l);){const t=B(l),n=F(l);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||D(l)&&!n&&te(e,l))?r=r.filter((e=>e!==l)):o=t,l=V(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],l=i[0],c=i.reduce(((e,n)=>{const r=ee(t,n,o);return e.top=s(r.top,e.top),e.right=a(r.right,e.right),e.bottom=a(r.bottom,e.bottom),e.left=s(r.left,e.left),e}),ee(t,l,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},getOffsetParent:ie,getElementRects:async function(e){const t=this.getOffsetParent||ie,n=this.getDimensions,r=await n(e.floating);return{reference:ne(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=$(e);return{width:t,height:n}},getScale:X,isElement:L,isRTL:function(e){return"rtl"===B(e).direction}};const ae=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:l,middlewareData:a}=t,s=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),l=y(n),a=v(n),s="y"===w(n),c=["left","top"].includes(l)?-1:1,u=i&&s?-1:1,d=h(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return a&&"number"==typeof m&&(p="end"===a?-1*m:m),s?{x:p*u,y:f*c}:{x:f*c,y:p*u}}(t,e);return l===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+s.x,y:i+s.y,data:{...s,placement:l}}}}},se=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=h(e,t),c={x:n,y:r},u=await A(t,s),d=w(y(o)),f=g(d);let p=c[f],v=c[d];if(i){const e="y"===f?"bottom":"right";p=m(p+u["y"===f?"top":"left"],p,p-u[e])}if(l){const e="y"===d?"bottom":"right";v=m(v+u["y"===d?"top":"left"],v,v-u[e])}const b=a.fn({...t,[f]:p,[d]:v});return{...b,data:{x:b.x-n,y:b.y-r}}}}},ce=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:l,initialPlacement:a,platform:s,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:g=!0,...w}=h(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const S=y(o),T=y(a)===a,k=await(null==s.isRTL?void 0:s.isRTL(c.floating)),O=f||(T||!g?[_(a)]:function(e){const t=_(e);return[E(e),t,E(t)]}(a));f||"none"===m||O.push(...function(e,t,n,r){const o=v(e);let i=function(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],l=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:l;default:return[]}}(y(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(E)))),i}(a,g,m,k));const C=[a,...O],R=await A(t,w),N=[];let L=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&N.push(R[S]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=v(e),o=x(e),i=b(o);let l="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=_(l)),[l,_(l)]}(o,l,k);N.push(R[e[0]],R[e[1]])}if(L=[...L,{placement:o,overflows:N}],!N.every((e=>e<=0))){var P,I;const e=((null==(P=i.flip)?void 0:P.index)||0)+1,t=C[e];if(t)return{data:{index:e,overflows:L},reset:{placement:t}};let n=null==(I=L.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:I.placement;if(!n)switch(p){case"bestFit":{var D;const e=null==(D=L.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:D[0];e&&(n=e);break}case"initialPlacement":n=a}if(o!==n)return{reset:{placement:n}}}return{}}}},ue=(e,t,n)=>{const r=new Map,o={platform:le,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,a=i.filter(Boolean),s=await(null==l.isRTL?void 0:l.isRTL(t));let c=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=k(c,r,s),f=r,p={},m=0;for(let n=0;n{if(!e)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};if(null===t)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};const c=l;return n?(c.push({name:"arrow",options:u={element:n,padding:5},async fn(e){const{x:t,y:n,placement:r,rects:o,platform:i,elements:l,middlewareData:s}=e,{element:c,padding:d=0}=h(u,e)||{};if(null==c)return{};const f=S(d),p={x:t,y:n},y=x(r),g=b(y),w=await i.getDimensions(c),E="y"===y,_=E?"top":"left",T=E?"bottom":"right",k=E?"clientHeight":"clientWidth",A=o.reference[g]+o.reference[y]-p[y]-o.floating[g],O=p[y]-o.reference[y],C=await(null==i.getOffsetParent?void 0:i.getOffsetParent(c));let R=C?C[k]:0;R&&await(null==i.isElement?void 0:i.isElement(C))||(R=l.floating[k]||o.floating[g]);const N=A/2-O/2,L=R/2-w[g]/2-1,P=a(f[_],L),I=a(f[T],L),D=P,M=R-w[g]-I,F=R/2-w[g]/2+N,j=m(D,F,M),H=!s.arrow&&null!=v(r)&&F!==j&&o.reference[g]/2-(F{var o,i;const l={left:`${e}px`,top:`${t}px`,border:s},{x:a,y:c}=null!==(o=r.arrow)&&void 0!==o?o:{x:0,y:0},u=null!==(i={top:"bottom",right:"left",bottom:"top",left:"right"}[n.split("-")[0]])&&void 0!==i?i:"bottom",d=s&&{borderBottom:s,borderRight:s};let f=0;if(s){const e=`${s}`.match(/(\d+)px/);f=(null==e?void 0:e[1])?Number(e[1]):1}return{tooltipStyles:l,tooltipArrowStyles:{left:null!=a?`${a}px`:"",top:null!=c?`${c}px`:"",right:"",bottom:"",...d,[u]:`-${4+f}px`},place:n}}))):ue(e,t,{placement:"bottom",strategy:i,middleware:c}).then((({x:e,y:t,placement:n})=>({tooltipStyles:{left:`${e}px`,top:`${t}px`},tooltipArrowStyles:{},place:n})));var u},he=(e,t)=>!("CSS"in window&&"supports"in window.CSS)||window.CSS.supports(e,t),ye=(e,t,n)=>{let r=null;const o=function(...o){const i=()=>{r=null,n||e.apply(this,o)};n&&!r&&(e.apply(this,o),r=setTimeout(i,t)),n||(r&&clearTimeout(r),r=setTimeout(i,t))};return o.cancel=()=>{r&&(clearTimeout(r),r=null)},o},ve=e=>null!==e&&!Array.isArray(e)&&"object"==typeof e,ge=(e,t)=>{if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&e.every(((e,n)=>ge(e,t[n])));if(Array.isArray(e)!==Array.isArray(t))return!1;if(!ve(e)||!ve(t))return e===t;const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every((n=>ge(e[n],t[n])))},be=e=>{if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;const t=getComputedStyle(e);return["overflow","overflow-x","overflow-y"].some((e=>{const n=t.getPropertyValue(e);return"auto"===n||"scroll"===n}))},we=e=>{if(!e)return null;let t=e.parentElement;for(;t;){if(be(t))return t;t=t.parentElement}return document.scrollingElement||document.documentElement},xe="undefined"!=typeof window?e.useLayoutEffect:e.useEffect,Ee={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},_e=(0,e.createContext)({getTooltipData:()=>Ee});function Se(t="DEFAULT_TOOLTIP_ID"){return(0,e.useContext)(_e).getTooltipData(t)}var Te={tooltip:"core-styles-module_tooltip__3vRRp",fixed:"core-styles-module_fixed__pcSol",arrow:"core-styles-module_arrow__cvMwQ",noArrow:"core-styles-module_noArrow__xock6",clickable:"core-styles-module_clickable__ZuTTB",show:"core-styles-module_show__Nt9eE",closing:"core-styles-module_closing__sGnxF"},ke={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const Ae=({forwardRef:t,id:n,className:r,classNameArrow:o,variant:i="dark",anchorId:l,anchorSelect:c,place:d="top",offset:f=10,events:p=["hover"],openOnClick:m=!1,positionStrategy:h="absolute",middlewares:y,wrapper:v,delayShow:g=0,delayHide:b=0,float:w=!1,hidden:x=!1,noArrow:E=!1,clickable:_=!1,closeOnEsc:S=!1,closeOnScroll:T=!1,closeOnResize:k=!1,openEvents:A,closeEvents:O,globalCloseEvents:C,imperativeModeOnly:N,style:L,position:P,afterShow:I,afterHide:D,content:M,contentWrapperRef:F,isOpen:j,defaultIsOpen:H=!1,setIsOpen:B,activeAnchor:z,setActiveAnchor:V,border:W,opacity:$,arrowColor:X,role:G="tooltip"})=>{var K;const Z=(0,e.useRef)(null),J=(0,e.useRef)(null),Q=(0,e.useRef)(null),ee=(0,e.useRef)(null),te=(0,e.useRef)(null),[ne,re]=(0,e.useState)({tooltipStyles:{},tooltipArrowStyles:{},place:d}),[oe,ie]=(0,e.useState)(!1),[le,ae]=(0,e.useState)(!1),[se,ce]=(0,e.useState)(null),ue=(0,e.useRef)(!1),fe=(0,e.useRef)(null),{anchorRefs:pe,setActiveAnchor:he}=Se(n),ve=(0,e.useRef)(!1),[be,Ee]=(0,e.useState)([]),_e=(0,e.useRef)(!1),Ae=m||p.includes("click"),Oe=Ae||(null==A?void 0:A.click)||(null==A?void 0:A.dblclick)||(null==A?void 0:A.mousedown),Ce=A?{...A}:{mouseenter:!0,focus:!0,click:!1,dblclick:!1,mousedown:!1};!A&&Ae&&Object.assign(Ce,{mouseenter:!1,focus:!1,click:!0});const Re=O?{...O}:{mouseleave:!0,blur:!0,click:!1,dblclick:!1,mouseup:!1};!O&&Ae&&Object.assign(Re,{mouseleave:!1,blur:!1});const Ne=C?{...C}:{escape:S||!1,scroll:T||!1,resize:k||!1,clickOutsideAnchor:Oe||!1};N&&(Object.assign(Ce,{mouseenter:!1,focus:!1,click:!1,dblclick:!1,mousedown:!1}),Object.assign(Re,{mouseleave:!1,blur:!1,click:!1,dblclick:!1,mouseup:!1}),Object.assign(Ne,{escape:!1,scroll:!1,resize:!1,clickOutsideAnchor:!1})),xe((()=>(_e.current=!0,()=>{_e.current=!1})),[]);const Le=e=>{_e.current&&(e&&ae(!0),setTimeout((()=>{_e.current&&(null==B||B(e),void 0===j&&ie(e))}),10))};(0,e.useEffect)((()=>{if(void 0===j)return()=>null;j&&ae(!0);const e=setTimeout((()=>{ie(j)}),10);return()=>{clearTimeout(e)}}),[j]),(0,e.useEffect)((()=>{if(oe!==ue.current)if(te.current&&clearTimeout(te.current),ue.current=oe,oe)null==I||I();else{const e=(e=>{const t=getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay").match(/^([\d.]+)(ms|s)$/);if(!t)return 0;const[,n,r]=t;return Number(n)*("ms"===r?1:1e3)})();te.current=setTimeout((()=>{ae(!1),ce(null),null==D||D()}),e+25)}}),[oe]);const Pe=e=>{re((t=>ge(t,e)?t:e))},Ie=(e=g)=>{Q.current&&clearTimeout(Q.current),le?Le(!0):Q.current=setTimeout((()=>{Le(!0)}),e)},De=(e=b)=>{ee.current&&clearTimeout(ee.current),ee.current=setTimeout((()=>{ve.current||Le(!1)}),e)},Me=e=>{var t;if(!e)return;const n=null!==(t=e.currentTarget)&&void 0!==t?t:e.target;if(!(null==n?void 0:n.isConnected))return V(null),void he({current:null});g?Ie():Le(!0),V(n),he({current:n}),ee.current&&clearTimeout(ee.current)},Fe=()=>{_?De(b||100):b?De():Le(!1),Q.current&&clearTimeout(Q.current)},je=({x:e,y:t})=>{var n;const r={getBoundingClientRect:()=>({x:e,y:t,width:0,height:0,top:t,left:e,right:e,bottom:t})};me({place:null!==(n=null==se?void 0:se.place)&&void 0!==n?n:d,offset:f,elementReference:r,tooltipReference:Z.current,tooltipArrowReference:J.current,strategy:h,middlewares:y,border:W}).then((e=>{Pe(e)}))},He=e=>{if(!e)return;const t=e,n={x:t.clientX,y:t.clientY};je(n),fe.current=n},Be=e=>{var t;if(!oe)return;const n=e.target;n.isConnected&&((null===(t=Z.current)||void 0===t?void 0:t.contains(n))||[document.querySelector(`[id='${l}']`),...be].some((e=>null==e?void 0:e.contains(n)))||(Le(!1),Q.current&&clearTimeout(Q.current)))},ze=ye(Me,50,!0),Ve=ye(Fe,50,!0),We=e=>{Ve.cancel(),ze(e)},qe=()=>{ze.cancel(),Ve()},$e=(0,e.useCallback)((()=>{var e,t;const n=null!==(e=null==se?void 0:se.position)&&void 0!==e?e:P;n?je(n):w?fe.current&&je(fe.current):(null==z?void 0:z.isConnected)&&me({place:null!==(t=null==se?void 0:se.place)&&void 0!==t?t:d,offset:f,elementReference:z,tooltipReference:Z.current,tooltipArrowReference:J.current,strategy:h,middlewares:y,border:W}).then((e=>{_e.current&&Pe(e)}))}),[oe,z,M,L,d,null==se?void 0:se.place,f,h,P,null==se?void 0:se.position,w]);(0,e.useEffect)((()=>{var e,t;const n=new Set(pe);be.forEach((e=>{n.add({current:e})}));const r=document.querySelector(`[id='${l}']`);r&&n.add({current:r});const o=()=>{Le(!1)},i=we(z),c=we(Z.current);Ne.scroll&&(window.addEventListener("scroll",o),null==i||i.addEventListener("scroll",o),null==c||c.addEventListener("scroll",o));let d=null;Ne.resize?window.addEventListener("resize",o):z&&Z.current&&(d=function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:c="function"==typeof IntersectionObserver,animationFrame:d=!1}=r,f=U(e),p=o||i?[...f?q(f):[],...q(t)]:[];p.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const m=f&&c?function(e,t){let n,r=null;const o=R(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function l(c,d){void 0===c&&(c=!1),void 0===d&&(d=1),i();const{left:f,top:p,width:m,height:h}=e.getBoundingClientRect();if(c||t(),!m||!h)return;const y={rootMargin:-u(p)+"px "+-u(o.clientWidth-(f+m))+"px "+-u(o.clientHeight-(p+h))+"px "+-u(f)+"px",threshold:s(0,a(1,d))||1};let v=!0;function g(e){const t=e[0].intersectionRatio;if(t!==d){if(!v)return l();t?l(!1,t):n=setTimeout((()=>{l(!1,1e-7)}),1e3)}v=!1}try{r=new IntersectionObserver(g,{...y,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(g,y)}r.observe(e)}(!0),i}(f,n):null;let h,y=-1,v=null;l&&(v=new ResizeObserver((e=>{let[r]=e;r&&r.target===f&&v&&(v.unobserve(t),cancelAnimationFrame(y),y=requestAnimationFrame((()=>{var e;null==(e=v)||e.observe(t)}))),n()})),f&&!d&&v.observe(f),v.observe(t));let g=d?Y(e):null;return d&&function t(){const r=Y(e);!g||r.x===g.x&&r.y===g.y&&r.width===g.width&&r.height===g.height||n(),g=r,h=requestAnimationFrame(t)}(),n(),()=>{var e;p.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==m||m(),null==(e=v)||e.disconnect(),v=null,d&&cancelAnimationFrame(h)}}(z,Z.current,$e,{ancestorResize:!0,elementResize:!0,layoutShift:!0}));const f=e=>{"Escape"===e.key&&Le(!1)};Ne.escape&&window.addEventListener("keydown",f),Ne.clickOutsideAnchor&&window.addEventListener("click",Be);const p=[],m=e=>{oe&&(null==e?void 0:e.target)===z||Me(e)},h=e=>{oe&&(null==e?void 0:e.target)===z&&Fe()},y=["mouseenter","mouseleave","focus","blur"],v=["click","dblclick","mousedown","mouseup"];Object.entries(Ce).forEach((([e,t])=>{t&&(y.includes(e)?p.push({event:e,listener:We}):v.includes(e)&&p.push({event:e,listener:m}))})),Object.entries(Re).forEach((([e,t])=>{t&&(y.includes(e)?p.push({event:e,listener:qe}):v.includes(e)&&p.push({event:e,listener:h}))})),w&&p.push({event:"pointermove",listener:He});const g=()=>{ve.current=!0},b=()=>{ve.current=!1,Fe()};return _&&!Oe&&(null===(e=Z.current)||void 0===e||e.addEventListener("mouseenter",g),null===(t=Z.current)||void 0===t||t.addEventListener("mouseleave",b)),p.forEach((({event:e,listener:t})=>{n.forEach((n=>{var r;null===(r=n.current)||void 0===r||r.addEventListener(e,t)}))})),()=>{var e,t;Ne.scroll&&(window.removeEventListener("scroll",o),null==i||i.removeEventListener("scroll",o),null==c||c.removeEventListener("scroll",o)),Ne.resize?window.removeEventListener("resize",o):null==d||d(),Ne.clickOutsideAnchor&&window.removeEventListener("click",Be),Ne.escape&&window.removeEventListener("keydown",f),_&&!Oe&&(null===(e=Z.current)||void 0===e||e.removeEventListener("mouseenter",g),null===(t=Z.current)||void 0===t||t.removeEventListener("mouseleave",b)),p.forEach((({event:e,listener:t})=>{n.forEach((n=>{var r;null===(r=n.current)||void 0===r||r.removeEventListener(e,t)}))}))}}),[z,$e,le,pe,be,A,O,C,Ae,g,b]),(0,e.useEffect)((()=>{var e,t;let r=null!==(t=null!==(e=null==se?void 0:se.anchorSelect)&&void 0!==e?e:c)&&void 0!==t?t:"";!r&&n&&(r=`[data-tooltip-id='${n.replace(/'/g,"\\'")}']`);const o=new MutationObserver((e=>{const t=[],o=[];e.forEach((e=>{if("attributes"===e.type&&"data-tooltip-id"===e.attributeName&&(e.target.getAttribute("data-tooltip-id")===n?t.push(e.target):e.oldValue===n&&o.push(e.target)),"childList"===e.type){if(z){const t=[...e.removedNodes].filter((e=>1===e.nodeType));if(r)try{o.push(...t.filter((e=>e.matches(r)))),o.push(...t.flatMap((e=>[...e.querySelectorAll(r)])))}catch(e){}t.some((e=>{var t;return!!(null===(t=null==e?void 0:e.contains)||void 0===t?void 0:t.call(e,z))&&(ae(!1),Le(!1),V(null),Q.current&&clearTimeout(Q.current),ee.current&&clearTimeout(ee.current),!0)}))}if(r)try{const n=[...e.addedNodes].filter((e=>1===e.nodeType));t.push(...n.filter((e=>e.matches(r)))),t.push(...n.flatMap((e=>[...e.querySelectorAll(r)])))}catch(e){}}})),(t.length||o.length)&&Ee((e=>[...e.filter((e=>!o.includes(e))),...t]))}));return o.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"],attributeOldValue:!0}),()=>{o.disconnect()}}),[n,c,null==se?void 0:se.anchorSelect,z]),(0,e.useEffect)((()=>{$e()}),[$e]),(0,e.useEffect)((()=>{if(!(null==F?void 0:F.current))return()=>null;const e=new ResizeObserver((()=>{setTimeout((()=>$e()))}));return e.observe(F.current),()=>{e.disconnect()}}),[M,null==F?void 0:F.current]),(0,e.useEffect)((()=>{var e;const t=document.querySelector(`[id='${l}']`),n=[...be,t];z&&n.includes(z)||V(null!==(e=be[0])&&void 0!==e?e:t)}),[l,be,z]),(0,e.useEffect)((()=>(H&&Le(!0),()=>{Q.current&&clearTimeout(Q.current),ee.current&&clearTimeout(ee.current)})),[]),(0,e.useEffect)((()=>{var e;let t=null!==(e=null==se?void 0:se.anchorSelect)&&void 0!==e?e:c;if(!t&&n&&(t=`[data-tooltip-id='${n.replace(/'/g,"\\'")}']`),t)try{const e=Array.from(document.querySelectorAll(t));Ee(e)}catch(e){Ee([])}}),[n,c,null==se?void 0:se.anchorSelect]),(0,e.useEffect)((()=>{Q.current&&(clearTimeout(Q.current),Ie(g))}),[g]);const Ue=null!==(K=null==se?void 0:se.content)&&void 0!==K?K:M,Xe=oe&&Object.keys(ne.tooltipStyles).length>0;return(0,e.useImperativeHandle)(t,(()=>({open:e=>{if(null==e?void 0:e.anchorSelect)try{document.querySelector(e.anchorSelect)}catch(t){return void console.warn(`[react-tooltip] "${e.anchorSelect}" is not a valid CSS selector`)}ce(null!=e?e:null),(null==e?void 0:e.delay)?Ie(e.delay):Le(!0)},close:e=>{(null==e?void 0:e.delay)?De(e.delay):Le(!1)},activeAnchor:z,place:ne.place,isOpen:Boolean(le&&!x&&Ue&&Xe)}))),le&&!x&&Ue?e.createElement(v,{id:n,role:G,className:de("react-tooltip",Te.tooltip,ke.tooltip,ke[i],r,`react-tooltip__place-${ne.place}`,Te[Xe?"show":"closing"],Xe?"react-tooltip__show":"react-tooltip__closing","fixed"===h&&Te.fixed,_&&Te.clickable),onTransitionEnd:e=>{te.current&&clearTimeout(te.current),oe||"opacity"!==e.propertyName||(ae(!1),ce(null),null==D||D())},style:{...L,...ne.tooltipStyles,opacity:void 0!==$&&Xe?$:void 0},ref:Z},Ue,e.createElement(v,{className:de("react-tooltip-arrow",Te.arrow,ke.arrow,o,E&&Te.noArrow),style:{...ne.tooltipArrowStyles,background:X?`linear-gradient(to right bottom, transparent 50%, ${X} 50%)`:void 0},ref:J})):null},Oe=({content:t})=>e.createElement("span",{dangerouslySetInnerHTML:{__html:t}}),Ce=e.forwardRef((({id:t,anchorId:n,anchorSelect:r,content:o,html:i,render:l,className:a,classNameArrow:s,variant:c="dark",place:u="top",offset:d=10,wrapper:f="div",children:p=null,events:m=["hover"],openOnClick:h=!1,positionStrategy:y="absolute",middlewares:v,delayShow:g=0,delayHide:b=0,float:w=!1,hidden:x=!1,noArrow:E=!1,clickable:_=!1,closeOnEsc:S=!1,closeOnScroll:T=!1,closeOnResize:k=!1,openEvents:A,closeEvents:O,globalCloseEvents:C,imperativeModeOnly:R=!1,style:N,position:L,isOpen:P,defaultIsOpen:I=!1,disableStyleInjection:D=!1,border:M,opacity:F,arrowColor:j,setIsOpen:H,afterShow:B,afterHide:z,role:V="tooltip"},W)=>{const[q,$]=(0,e.useState)(o),[U,X]=(0,e.useState)(i),[G,K]=(0,e.useState)(u),[Y,Z]=(0,e.useState)(c),[J,Q]=(0,e.useState)(d),[ee,te]=(0,e.useState)(g),[ne,re]=(0,e.useState)(b),[oe,ie]=(0,e.useState)(w),[le,ae]=(0,e.useState)(x),[se,ce]=(0,e.useState)(f),[ue,fe]=(0,e.useState)(m),[pe,me]=(0,e.useState)(y),[ye,ve]=(0,e.useState)(null),[ge,be]=(0,e.useState)(null),we=(0,e.useRef)(D),{anchorRefs:xe,activeAnchor:Ee}=Se(t),_e=e=>null==e?void 0:e.getAttributeNames().reduce(((t,n)=>{var r;return n.startsWith("data-tooltip-")&&(t[n.replace(/^data-tooltip-/,"")]=null!==(r=null==e?void 0:e.getAttribute(n))&&void 0!==r?r:null),t}),{}),Te=e=>{const t={place:e=>{var t;K(null!==(t=e)&&void 0!==t?t:u)},content:e=>{$(null!=e?e:o)},html:e=>{X(null!=e?e:i)},variant:e=>{var t;Z(null!==(t=e)&&void 0!==t?t:c)},offset:e=>{Q(null===e?d:Number(e))},wrapper:e=>{var t;ce(null!==(t=e)&&void 0!==t?t:f)},events:e=>{const t=null==e?void 0:e.split(" ");fe(null!=t?t:m)},"position-strategy":e=>{var t;me(null!==(t=e)&&void 0!==t?t:y)},"delay-show":e=>{te(null===e?g:Number(e))},"delay-hide":e=>{re(null===e?b:Number(e))},float:e=>{ie(null===e?w:"true"===e)},hidden:e=>{ae(null===e?x:"true"===e)},"class-name":e=>{ve(e)}};Object.values(t).forEach((e=>e(null))),Object.entries(e).forEach((([e,n])=>{var r;null===(r=t[e])||void 0===r||r.call(t,n)}))};(0,e.useEffect)((()=>{$(o)}),[o]),(0,e.useEffect)((()=>{X(i)}),[i]),(0,e.useEffect)((()=>{K(u)}),[u]),(0,e.useEffect)((()=>{Z(c)}),[c]),(0,e.useEffect)((()=>{Q(d)}),[d]),(0,e.useEffect)((()=>{te(g)}),[g]),(0,e.useEffect)((()=>{re(b)}),[b]),(0,e.useEffect)((()=>{ie(w)}),[w]),(0,e.useEffect)((()=>{ae(x)}),[x]),(0,e.useEffect)((()=>{me(y)}),[y]),(0,e.useEffect)((()=>{we.current!==D&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")}),[D]),(0,e.useEffect)((()=>{"undefined"!=typeof window&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:"core"===D,disableBase:D}}))}),[]),(0,e.useEffect)((()=>{var e;const o=new Set(xe);let i=r;if(!i&&t&&(i=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`),i)try{document.querySelectorAll(i).forEach((e=>{o.add({current:e})}))}catch(e){console.warn(`[react-tooltip] "${i}" is not a valid CSS selector`)}const l=document.querySelector(`[id='${n}']`);if(l&&o.add({current:l}),!o.size)return()=>null;const a=null!==(e=null!=ge?ge:l)&&void 0!==e?e:Ee.current,s=new MutationObserver((e=>{e.forEach((e=>{var t;if(!a||"attributes"!==e.type||!(null===(t=e.attributeName)||void 0===t?void 0:t.startsWith("data-tooltip-")))return;const n=_e(a);Te(n)}))})),c={attributes:!0,childList:!1,subtree:!1};if(a){const e=_e(a);Te(e),s.observe(a,c)}return()=>{s.disconnect()}}),[xe,Ee,ge,n,r]),(0,e.useEffect)((()=>{(null==N?void 0:N.border)&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),M&&!he("border",`${M}`)&&console.warn(`[react-tooltip] "${M}" is not a valid \`border\`.`),(null==N?void 0:N.opacity)&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),F&&!he("opacity",`${F}`)&&console.warn(`[react-tooltip] "${F}" is not a valid \`opacity\`.`)}),[]);let ke=p;const Ce=(0,e.useRef)(null);if(l){const t=l({content:(null==ge?void 0:ge.getAttribute("data-tooltip-content"))||q||null,activeAnchor:ge});ke=t?e.createElement("div",{ref:Ce,className:"react-tooltip-content-wrapper"},t):null}else q&&(ke=q);U&&(ke=e.createElement(Oe,{content:U}));const Re={forwardRef:W,id:t,anchorId:n,anchorSelect:r,className:de(a,ye),classNameArrow:s,content:ke,contentWrapperRef:Ce,place:G,variant:Y,offset:J,wrapper:se,events:ue,openOnClick:h,positionStrategy:pe,middlewares:v,delayShow:ee,delayHide:ne,float:oe,hidden:le,noArrow:E,clickable:_,closeOnEsc:S,closeOnScroll:T,closeOnResize:k,openEvents:A,closeEvents:O,globalCloseEvents:C,imperativeModeOnly:R,style:N,position:L,isOpen:P,defaultIsOpen:I,border:M,opacity:F,arrowColor:j,setIsOpen:H,afterShow:B,afterHide:z,activeAnchor:ge,setActiveAnchor:e=>be(e),role:V};return e.createElement(Ae,{...Re})}));"undefined"!=typeof window&&window.addEventListener("react-tooltip-inject-styles",(e=>{e.detail.disableCore||pe({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in}",type:"core"}),e.detail.disableBase||pe({css:"\n.styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:8px;height:8px}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}",type:"base"})}));const Re=window.wp.i18n,Ne=window.wp.components,Le=({onlineEventLinkDefault:t=""})=>{const n=(0,Re.__)("Online event","gatherpress"),[r,i]=(0,o.useState)(t);return((e,t="")=>{for(const[n,r]of Object.entries(e)){let e=n;t&&(e+="_"+String(t)),addEventListener(e,(e=>{r(e.detail)}),!1)}})({setOnlineEventLink:i},function(e){if("object"==typeof GatherPress)return"eventDetails.postId".split(".").reduce(((e,t)=>e&&e[t]),GatherPress)}()),(0,e.createElement)(Ne.Flex,{justify:"normal",gap:"3"},(0,e.createElement)(Ne.FlexItem,{display:"flex"},(0,e.createElement)(Ne.Icon,{icon:"video-alt2"})),(0,e.createElement)(Ne.FlexItem,null,!r&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("span",{tabIndex:"0",className:"gatherpress-tooltip","data-tooltip-id":"gatherpress-online-event-tooltip","data-tooltip-content":(0,Re.__)("Link available for attendees only.","gatherpress")},n),(0,e.createElement)(Ce,{id:"gatherpress-online-event-tooltip"})),r&&(0,e.createElement)("a",{href:r,rel:"noreferrer",target:"_blank"},n)))};var Pe=n(442);const Ie=Pe.default||Pe,De=({name:t,fullAddress:n,phoneNumber:r,website:o})=>(0,e.createElement)(e.Fragment,null,(t||n)&&(0,e.createElement)(Ne.Flex,{justify:"normal",align:"flex-start",gap:"4"},(0,e.createElement)(Ne.FlexItem,{display:"flex",className:"gatherpress-venue__icon"},(0,e.createElement)(Ne.Icon,{icon:"location"})),(0,e.createElement)(Ne.FlexItem,null,t&&(0,e.createElement)("div",{className:"gatherpress-venue__name"},(0,e.createElement)("strong",null,Ie(t))),n&&(0,e.createElement)("div",{className:"gatherpress-venue__full-address"},Ie(n)))),(r||o)&&(0,e.createElement)(Ne.Flex,{justify:"normal",gap:"8"},r&&(0,e.createElement)(Ne.FlexItem,null,(0,e.createElement)(Ne.Flex,{justify:"normal",gap:"4"},(0,e.createElement)(Ne.FlexItem,{display:"flex",className:"gatherpress-venue__icon"},(0,e.createElement)(Ne.Icon,{icon:"phone"})),(0,e.createElement)(Ne.FlexItem,null,(0,e.createElement)("div",{className:"gatherpress-venue__phone-number"},r)))),o&&(0,e.createElement)(Ne.FlexItem,null,(0,e.createElement)(Ne.Flex,{justify:"normal",gap:"4"},(0,e.createElement)(Ne.FlexItem,{display:"flex",className:"gatherpress-venue__icon"},(0,e.createElement)(Ne.Icon,{icon:"admin-site-alt3"})),(0,e.createElement)(Ne.FlexItem,null,(0,e.createElement)("div",{className:"gatherpress-venue__website"},(0,e.createElement)("a",{href:o,target:"_blank",rel:"noreferrer noopener"},o))))))),Me=({name:t="",fullAddress:n,phoneNumber:r,website:o,isOnlineEventTerm:i=!1,onlineEventLink:l=""})=>(0,e.createElement)(e.Fragment,null,!i&&(0,e.createElement)(De,{name:t,fullAddress:n,phoneNumber:r,website:o}),i&&(0,e.createElement)(Le,{onlineEventLinkDefault:l}));r()((()=>{let t=document.querySelectorAll('[data-gatherpress_block_name="venue"]');for(let l=0;l array('moment', 'react', 'wp-api-fetch', 'wp-components', 'wp-data', 'wp-date', 'wp-edit-post', 'wp-element', 'wp-i18n', 'wp-plugins'), 'version' => '0e9cff2f47704ffb8596'); + array('moment', 'react', 'wp-api-fetch', 'wp-components', 'wp-core-data', 'wp-data', 'wp-date', 'wp-edit-post', 'wp-element', 'wp-i18n', 'wp-plugins'), 'version' => '35cd67adc5273b90d0ae'); diff --git a/build/panels.js b/build/panels.js index 0904d9402..9224af95f 100644 --- a/build/panels.js +++ b/build/panels.js @@ -1 +1 @@ -(()=>{"use strict";var e={n:t=>{var n=t&&t.__esModule?()=>t.default:()=>t;return e.d(n,{a:n}),n},d:(t,n)=>{for(var s in n)e.o(n,s)&&!e.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:n[s]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window.React,n=window.wp.i18n,s=window.wp.data,r=window.wp.components,a=window.wp.plugins,l=window.wp.editPost,i=window.moment;var o=e.n(i);const c=window.wp.apiFetch;var m=e.n(c);const u=window.wp.element;function d(){(0,s.dispatch)("core/editor")?.editPost({meta:{_non_existing_meta:!0}})}function p(e){if("object"==typeof GatherPress)return e.split(".").reduce(((e,t)=>e&&e[t]),GatherPress)}function g(e,t){if("object"!=typeof GatherPress)return;const n=e.split("."),s=n.pop();n.reduce(((e,t)=>{var n;return null!==(n=e[t])&&void 0!==n?n:e[t]={}}),GatherPress)[s]=t}const _=window.wp.date,h="YYYY-MM-DDTHH:mm:ss",v="YYYY-MM-DD HH:mm:ss",E=o().tz(S()).add(1,"day").set("hour",18).set("minute",0).set("second",0).format(h),f=o().tz(E,S()).add(2,"hours").format(h);function b(){return C(p("settings.dateFormat"))+" "+C(p("settings.timeFormat"))}function S(e=p("eventDetails.dateTime.timezone")){return o().tz.zone(e)?e:(0,n.__)("GMT","gatherpress")}function T(e=""){const t=/^([+-])(\d{2}):(00|15|30|45)$/,n=e.replace(t,"$1");return n!==e?"UTC"+n+parseInt(e.replace(t,"$2")).toString()+e.replace(t,"$3").replace("00","").replace("15",".25").replace("30",".5").replace("45",".75"):e}function D(e,t=null){!function(e){const t=o().tz(p("eventDetails.dateTime.datetime_end"),S()).valueOf(),n=o().tz(e,S()).valueOf();n>=t&&P(o().tz(n,S()).add(2,"hours").format(h))}(e),g("eventDetails.dateTime.datetime_start",e),"function"==typeof t&&t(e),d()}function P(e,t=null){!function(e){const t=o().tz(p("eventDetails.dateTime.datetime_start"),S()).valueOf(),n=o().tz(e,S()).valueOf();n<=t&&D(o().tz(n,S()).subtract(2,"hours").format(h))}(e),g("eventDetails.dateTime.datetime_end",e),null!==t&&t(e),d()}function w(){const e=(0,s.select)("core/editor").isSavingPost(),t=(0,s.select)("core/editor").isAutosavingPost();y()&&e&&!t&&m()({path:p("urls.eventRestApi")+"/datetime",method:"POST",data:{post_id:p("eventDetails.postId"),datetime_start:o().tz(p("eventDetails.dateTime.datetime_start"),S()).format(v),datetime_end:o().tz(p("eventDetails.dateTime.datetime_end"),S()).format(v),timezone:p("eventDetails.dateTime.timezone"),_wpnonce:p("misc.nonce")}}).then((()=>{!function(){const e="gatherpress_event_communcation",t=(0,s.dispatch)("core/notices");t.removeNotice(e),"publish"!==(0,s.select)("core/editor").getEditedPostAttribute("status")||O()||t.createNotice("success",(0,n.__)("Send an event update to members via email?","gatherpress"),{id:e,isDismissible:!0,actions:[{onClick:()=>{z({setOpen:!0})},label:(0,n.__)("Compose Message","gatherpress")}]})}()}))}function C(e){const t={d:"DD",D:"ddd",j:"D",l:"dddd",N:"E",S:"o",w:"e",z:"DDD",W:"W",F:"MMMM",m:"MM",M:"MMM",n:"M",t:"",L:"",o:"YYYY",Y:"YYYY",y:"YY",a:"a",A:"A",B:"",g:"h",G:"H",h:"hh",H:"HH",i:"mm",s:"ss",u:"SSS",e:"zz",I:"",O:"",P:"",T:"",Z:"",c:"",r:"",U:"X"};return String(e).split("").map((e=>e in t?t[e]:e)).join("")}const z=(e,t="")=>{for(const[n,s]of Object.entries(e)){let e=n;t&&(e+="_"+String(t));const r=new CustomEvent(e,{detail:s});dispatchEvent(r)}},k=(e,t="")=>{for(const[n,s]of Object.entries(e)){let e=n;t&&(e+="_"+String(t)),addEventListener(e,(e=>{s(e.detail)}),!1)}};function y(){return"gatherpress_event"===(0,s.select)("core/editor")?.getCurrentPostType()}function O(){const e=o().tz(p("eventDetails.dateTime.datetime_end"),S());return"gatherpress_event"===(0,s.select)("core/editor")?.getCurrentPostType()&&o().tz(S()).valueOf()>e.valueOf()}function N(){const e="gatherpress_event_past",t=(0,s.dispatch)("core/notices");t.removeNotice(e),O()&&t.createNotice("warning",(0,n.__)("This event has already passed.","gatherpress"),{id:e,isDismissible:!1})}const x=()=>{const{editPost:e,unlockPostSaving:a}=(0,s.useDispatch)("core/editor"),l=(0,s.useSelect)((e=>e("core/editor").isCleanNewPost()),[]);let i=(0,s.useSelect)((e=>e("core/editor").getEditedPostAttribute("meta").gatherpress_enable_anonymous_rsvp),[]);l&&(i=p("settings.enableAnonymousRsvp"));const[o,c]=(0,u.useState)(i),m=(0,u.useCallback)((t=>{const n={gatherpress_enable_anonymous_rsvp:Number(t)};c(t),e({meta:n}),a()}),[e,a]);return(0,u.useEffect)((()=>{l&&0!==i&&m(i)}),[l,i,m]),(0,t.createElement)(r.CheckboxControl,{label:(0,n.__)("Enable Anonymous RSVP","gatherpress"),checked:o,onChange:e=>{m(e)}})},A=()=>(0,t.createElement)("section",null,(0,t.createElement)(x,null)),M=()=>{const{editPost:e,unlockPostSaving:a}=(0,s.useDispatch)("core/editor"),l=(0,s.useSelect)((e=>e("core/editor").isCleanNewPost()),[]);let i=(0,s.useSelect)((e=>e("core/editor").getEditedPostAttribute("meta").gatherpress_enable_initial_decline),[]);l&&(i=p("settings.enableInitialDecline"));const[o,c]=(0,u.useState)(i),m=(0,u.useCallback)((t=>{const n={gatherpress_enable_initial_decline:Number(t)};c(t),e({meta:n}),a()}),[e,a]);return(0,u.useEffect)((()=>{l&&0!==i&&m(i)}),[l,i,m]),(0,t.createElement)(r.CheckboxControl,{label:(0,n.__)('Enable Immediate "Not Attending" Option for Attendees',"gatherpress"),checked:o,onChange:e=>{m(e)}})},Y=()=>(0,t.createElement)("section",null,(0,t.createElement)(M,null)),F=e=>{const{dateTimeStart:t}=e;return o().tz(t,S()).format(b())},j=e=>{const{dateTimeEnd:t}=e;return o().tz(t,S()).format(b())},I=e=>{const{dateTimeStart:n,setDateTimeStart:s}=e,a=(0,_.getSettings)(),l=/a(?!\\)/i.test(a.formats.time.toLowerCase().replace(/\\\\/g,"").split("").reverse().join(""));return(0,t.createElement)(r.DateTimePicker,{currentDate:n,onChange:e=>D(e,s),is12Hour:l})},R=e=>{const{dateTimeEnd:n,setDateTimeEnd:s}=e,a=(0,_.getSettings)(),l=/a(?!\\)/i.test(a.formats.time.toLowerCase().replace(/\\\\/g,"").split("").reverse().join(""));return(0,t.createElement)(r.DateTimePicker,{currentDate:n,onChange:e=>P(e,s),is12Hour:l})},H=e=>{const{dateTimeStart:s,setDateTimeStart:a}=e;return(0,u.useEffect)((()=>{a(o().tz(function(){let e=p("eventDetails.dateTime.datetime_start");return e=""!==e?o().tz(e,S()).format(h):E,g("eventDetails.dateTime.datetime_start",e),e}(),S()).format(h)),z({setDateTimeStart:s}),N()})),(0,t.createElement)(r.PanelRow,null,(0,t.createElement)(r.Flex,{direction:"column",gap:"0"},(0,t.createElement)(r.FlexItem,null,(0,t.createElement)("label",{htmlFor:"gatherpress-datetime-start"},(0,n.__)("Start","gatherpress"))),(0,t.createElement)(r.FlexItem,null,(0,t.createElement)(r.Dropdown,{popoverProps:{placement:"bottom-end"},renderToggle:({isOpen:e,onToggle:n})=>(0,t.createElement)(r.Button,{id:"gatherpress-datetime-start",onClick:n,"aria-expanded":e,isLink:!0},(0,t.createElement)(F,{dateTimeStart:s})),renderContent:()=>(0,t.createElement)(I,{dateTimeStart:s,setDateTimeStart:a})}))))},L=e=>{const{dateTimeEnd:s,setDateTimeEnd:a}=e;return(0,u.useEffect)((()=>{a(o().tz(function(){let e=p("eventDetails.dateTime.datetime_end");return e=""!==e?o().tz(e,S()).format(h):f,g("eventDetails.dateTime.datetime_end",e),e}(),S()).format(h)),z({setDateTimeEnd:s}),N()})),(0,t.createElement)(r.PanelRow,null,(0,t.createElement)(r.Flex,{direction:"column",gap:"0"},(0,t.createElement)(r.FlexItem,null,(0,t.createElement)("label",{htmlFor:"gatherpress-datetime-end"},(0,n.__)("End","gatherpress"))),(0,t.createElement)(r.FlexItem,null,(0,t.createElement)(r.Dropdown,{popoverProps:{placement:"bottom-end"},renderToggle:({isOpen:e,onToggle:n})=>(0,t.createElement)(r.Button,{id:"gatherpress-datetime-end",onClick:n,"aria-expanded":e,isLink:!0},(0,t.createElement)(j,{dateTimeEnd:s})),renderContent:()=>(0,t.createElement)(R,{dateTimeEnd:s,setDateTimeEnd:a})}))))},G=e=>{const{timezone:s,setTimezone:a}=e,l=p("misc.timezoneChoices");return(0,u.useEffect)((()=>{a(p("eventDetails.dateTime.timezone"))}),[a]),(0,u.useEffect)((()=>{z({setTimezone:p("eventDetails.dateTime.timezone")})})),(0,t.createElement)(r.PanelRow,null,(0,t.createElement)(r.SelectControl,{label:(0,n.__)("Time Zone","gatherpress"),value:T(s),onChange:e=>{e=function(e=""){const t=/^UTC([+-])(\d+)(.\d+)?$/,n=e.replace(t,"$1");if(n!==e){const s=e.replace(t,"$2").padStart(2,"0");let r=e.replace(t,"$3");return""===r&&(r=":00"),r=r.replace(".25",":15").replace(".5",":30").replace(".75",":45"),n+s+r}return e}(e),a(e),g("eventDetails.dateTime.timezone",e),d()}},Object.keys(l).map((e=>(0,t.createElement)("optgroup",{key:e,label:e},Object.keys(l[e]).map((n=>(0,t.createElement)("option",{key:n,value:n},l[e][n]))))))))},$=()=>{const[e,r]=(0,u.useState)(),[a,l]=(0,u.useState)(),[i,o]=(0,u.useState)();return(0,s.subscribe)(w),(0,t.createElement)(t.Fragment,null,(0,t.createElement)("h3",null,(0,n.__)("Date & time","gatherpress")),(0,t.createElement)(H,{dateTimeStart:e,setDateTimeStart:r}),(0,t.createElement)(L,{dateTimeEnd:a,setDateTimeEnd:l}),(0,t.createElement)(G,{timezone:i,setTimezone:o}))},W=()=>(0,t.createElement)("section",null,(0,t.createElement)($,null)),B=()=>{const{editPost:e,unlockPostSaving:a}=(0,s.useDispatch)("core/editor"),l=(0,s.useSelect)((e=>e("core/editor").isCleanNewPost()),[]);let i=(0,s.useSelect)((e=>e("core/editor").getEditedPostAttribute("meta").gatherpress_max_guest_limit),[]);l&&(i=p("settings.maxGuestLimit")),!1===i&&(i=0);const[o,c]=(0,u.useState)(i),m=(0,u.useCallback)((t=>{const n={gatherpress_max_guest_limit:Number(t)};c(t),e({meta:n}),a()}),[e,a]);return(0,u.useEffect)((()=>{l&&0!==i&&m(i)}),[l,i,m]),(0,t.createElement)(r.__experimentalNumberControl,{label:(0,n.__)("Maximum Number of Guests","gatherpress"),value:o,min:0,max:5,onChange:e=>{m(e)}})},V=()=>(0,t.createElement)("section",null,(0,t.createElement)(B,null)),J=()=>"publish"===(0,s.select)("core/editor").getEditedPostAttribute("status")&&!O()&&(0,t.createElement)("section",null,(0,t.createElement)("h3",{style:{marginBottom:"0.5rem"}},(0,n.__)("Send an event update","gatherpress")),(0,t.createElement)(r.Button,{variant:"secondary",onClick:()=>z({setOpen:!0})},(0,n.__)("Compose Message","gatherpress"))),U=()=>{const{editPost:e,unlockPostSaving:a}=(0,s.useDispatch)("core/editor"),l=(0,s.useSelect)((e=>e("core/editor").getEditedPostAttribute("meta").gatherpress_online_event_link)),[i,o]=(0,u.useState)(l);return k({setOnlineEventLink:o},p("eventDetails.postId")),(0,t.createElement)(r.TextControl,{label:(0,n.__)("Online event link","gatherpress"),value:i,placeholder:(0,n.__)("Add link to online event","gatherpress"),onChange:t=>{(t=>{e({meta:{gatherpress_online_event_link:t}}),o(t),z({setOnlineEventLink:t},p("eventDetails.postId")),a()})(t)}})},Z=()=>(0,t.createElement)("section",null,(0,t.createElement)(U,null)),X=()=>{const[e,a]=(0,u.useState)(""),[l,i]=(0,u.useState)(""),[o,c]=(0,u.useState)(""),[m,d]=(0,u.useState)(""),[p,g]=(0,u.useState)(!1),[_,h]=(0,u.useState)(""),v=(0,s.useDispatch)("core/editor").editPost,{unlockPostSaving:E}=(0,s.useDispatch)("core/editor"),f=(0,s.useSelect)((e=>e("core/editor").getEditedPostAttribute("_gatherpress_venue"))),b=(0,s.useSelect)((e=>e("core").getEntityRecord("taxonomy","_gatherpress_venue",f))),S=b?.slug.replace(/^_/,""),[T,D]=(0,u.useState)(""),P=f+":"+T,w=(0,s.useSelect)((e=>e("core").getEntityRecords("postType","gatherpress_venue",{per_page:1,slug:T})));(0,u.useEffect)((()=>{var e,t,s,r;let l={};if(T&&Array.isArray(w)){var o;const e=null!==(o=w[0]?.meta?.gatherpress_venue_information)&&void 0!==o?o:"{}";var m;e&&(l=JSON.parse(e),l.name=null!==(m=w[0]?.title.rendered)&&void 0!==m?m:"")}const u=null!==(e=l?.name)&&void 0!==e?e:(0,n.__)("No venue selected.","gatherpress"),p=null!==(t=l?.fullAddress)&&void 0!==t?t:"",g=null!==(s=l?.phoneNumber)&&void 0!==s?s:"",_=null!==(r=l?.website)&&void 0!==r?r:"";S&&D(S),h(P?String(P):""),a(u),i(p),c(g),d(_),z({setName:u,setFullAddress:p,setPhoneNumber:g,setWebsite:_,setIsOnlineEventTerm:"online-event"===T})}),[T,w,S,P]);let C=(0,s.useSelect)((e=>e("core").getEntityRecords("taxonomy","_gatherpress_venue",{per_page:-1,context:"view"})),[]);return C?(C=C.map((e=>({label:e.name,value:e.id+":"+e.slug.replace(/^_/,"")}))),C.unshift({value:":",label:(0,n.__)("Choose a venue","gatherpress")})):C=[],(0,t.createElement)(r.PanelRow,null,(0,t.createElement)(r.SelectControl,{label:(0,n.__)("Venue Selector","gatherpress"),value:_,onChange:e=>{(e=>{h(e);const t=""!==(e=e.split(":"))[0]?[e[0]]:[];v({_gatherpress_venue:t}),D(e[1]),E()})(e)},options:C}))},q=()=>(0,t.createElement)("section",null,(0,t.createElement)(X,null));(0,a.registerPlugin)("gatherpress-event-settings",{render:()=>y()&&(0,t.createElement)(l.PluginDocumentSettingPanel,{name:"gatherpress-event-settings",title:(0,n.__)("Event settings","gatherpress"),initialOpen:!0,className:"gatherpress-event-settings"},(0,t.createElement)(r.__experimentalVStack,{spacing:6},(0,t.createElement)(W,null),(0,t.createElement)(q,null),(0,t.createElement)(Z,null),(0,t.createElement)(V,null),(0,t.createElement)(A,null),(0,t.createElement)(Y,null),(0,t.createElement)(J,null)))}),(0,s.dispatch)("core/edit-post").toggleEditorPanelOpened("gatherpress-event-settings/gatherpress-event-settings");const K=()=>{var e,a,l;const i=(0,s.useDispatch)("core/editor").editPost,o=(e,t)=>{const n=JSON.stringify({...c,[e]:t});i({meta:{gatherpress_venue_information:n}})};let c=(0,s.useSelect)((e=>e("core/editor").getEditedPostAttribute("meta").gatherpress_venue_information));c=c?JSON.parse(c):{};const[m,d]=(0,u.useState)(null!==(e=c.fullAddress)&&void 0!==e?e:""),[p,g]=(0,u.useState)(null!==(a=c.phoneNumber)&&void 0!==a?a:""),[_,h]=(0,u.useState)(null!==(l=c.website)&&void 0!==l?l:"");return k({setFullAddress:d,setPhoneNumber:g,setWebsite:h}),(0,t.createElement)(t.Fragment,null,(0,t.createElement)(r.TextControl,{label:(0,n.__)("Full Address","gatherpress"),value:m,onChange:e=>{z({setFullAddress:e}),o("fullAddress",e)}}),(0,t.createElement)(r.TextControl,{label:(0,n.__)("Phone Number","gatherpress"),value:p,onChange:e=>{z({setPhoneNumber:e}),o("phoneNumber",e)}}),(0,t.createElement)(r.TextControl,{label:(0,n.__)("Website","gatherpress"),value:_,type:"url",onChange:e=>{z({setWebsite:e}),o("website",e)}}))},Q=()=>(0,t.createElement)("section",null,(0,t.createElement)(K,null));(0,a.registerPlugin)("gatherpress-venue-settings",{render:()=>"gatherpress_venue"===(0,s.select)("core/editor")?.getCurrentPostType()&&(0,t.createElement)(l.PluginDocumentSettingPanel,{name:"gatherpress-venue-settings",title:(0,n.__)("Venue settings","gatherpress"),initialOpen:!0,className:"gatherpress-venue-settings"},(0,t.createElement)(r.__experimentalVStack,{spacing:6},(0,t.createElement)(Q,null)))}),(0,s.dispatch)("core/edit-post").toggleEditorPanelOpened("gatherpress-venue-settings/gatherpress-venue-settings")})(); \ No newline at end of file +(()=>{"use strict";var e={n:t=>{var n=t&&t.__esModule?()=>t.default:()=>t;return e.d(n,{a:n}),n},d:(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window.React,n=window.wp.i18n,r=window.wp.data,s=window.wp.components,a=window.wp.plugins,l=window.wp.editPost,i=window.moment;var o=e.n(i);const c=window.wp.apiFetch;var u=e.n(c);const m=window.wp.element;function d(){(0,r.dispatch)("core/editor")?.editPost({meta:{_non_existing_meta:!0}})}function p(e){if("object"==typeof GatherPress)return e.split(".").reduce(((e,t)=>e&&e[t]),GatherPress)}function g(e,t){if("object"!=typeof GatherPress)return;const n=e.split("."),r=n.pop();n.reduce(((e,t)=>{var n;return null!==(n=e[t])&&void 0!==n?n:e[t]={}}),GatherPress)[r]=t}const E=window.wp.date,h="YYYY-MM-DDTHH:mm:ss",_="YYYY-MM-DD HH:mm:ss",v=o().tz(b()).add(1,"day").set("hour",18).set("minute",0).set("second",0).format(h),S=o().tz(v,b()).add(2,"hours").format(h);function f(){return C(p("settings.dateFormat"))+" "+C(p("settings.timeFormat"))}function b(e=p("eventDetails.dateTime.timezone")){return o().tz.zone(e)?e:(0,n.__)("GMT","gatherpress")}function P(e=""){const t=/^([+-])(\d{2}):(00|15|30|45)$/,n=e.replace(t,"$1");return n!==e?"UTC"+n+parseInt(e.replace(t,"$2")).toString()+e.replace(t,"$3").replace("00","").replace("15",".25").replace("30",".5").replace("45",".75"):e}function D(e,t=null){!function(e){const t=o().tz(p("eventDetails.dateTime.datetime_end"),b()).valueOf(),n=o().tz(e,b()).valueOf();n>=t&&T(o().tz(n,b()).add(2,"hours").format(h))}(e),g("eventDetails.dateTime.datetime_start",e),"function"==typeof t&&t(e),d()}function T(e,t=null){!function(e){const t=o().tz(p("eventDetails.dateTime.datetime_start"),b()).valueOf(),n=o().tz(e,b()).valueOf();n<=t&&D(o().tz(n,b()).subtract(2,"hours").format(h))}(e),g("eventDetails.dateTime.datetime_end",e),null!==t&&t(e),d()}function w(){const e=(0,r.select)("core/editor").isSavingPost(),t=(0,r.select)("core/editor").isAutosavingPost();y()&&e&&!t&&u()({path:p("urls.eventRestApi")+"/datetime",method:"POST",data:{post_id:p("eventDetails.postId"),datetime_start:o().tz(p("eventDetails.dateTime.datetime_start"),b()).format(_),datetime_end:o().tz(p("eventDetails.dateTime.datetime_end"),b()).format(_),timezone:p("eventDetails.dateTime.timezone"),_wpnonce:p("misc.nonce")}}).then((()=>{!function(){const e="gatherpress_event_communcation",t=(0,r.dispatch)("core/notices");t.removeNotice(e),"publish"!==(0,r.select)("core/editor").getEditedPostAttribute("status")||N()||t.createNotice("success",(0,n.__)("Send an event update to members via email?","gatherpress"),{id:e,isDismissible:!0,actions:[{onClick:()=>{z({setOpen:!0})},label:(0,n.__)("Compose Message","gatherpress")}]})}()}))}function C(e){const t={d:"DD",D:"ddd",j:"D",l:"dddd",N:"E",S:"o",w:"e",z:"DDD",W:"W",F:"MMMM",m:"MM",M:"MMM",n:"M",t:"",L:"",o:"YYYY",Y:"YYYY",y:"YY",a:"a",A:"A",B:"",g:"h",G:"H",h:"hh",H:"HH",i:"mm",s:"ss",u:"SSS",e:"zz",I:"",O:"",P:"",T:"",Z:"",c:"",r:"",U:"X"};return String(e).split("").map(((e,n,r)=>{const s=r[n-1];return e in t&&"\\"!==s?t[e]:e})).join("")}const z=(e,t="")=>{for(const[n,r]of Object.entries(e)){let e=n;t&&(e+="_"+String(t));const s=new CustomEvent(e,{detail:r});dispatchEvent(s)}},k=(e,t="")=>{for(const[n,r]of Object.entries(e)){let e=n;t&&(e+="_"+String(t)),addEventListener(e,(e=>{r(e.detail)}),!1)}};function y(){return"gatherpress_event"===(0,r.select)("core/editor")?.getCurrentPostType()}function N(){const e=o().tz(p("eventDetails.dateTime.datetime_end"),b());return"gatherpress_event"===(0,r.select)("core/editor")?.getCurrentPostType()&&o().tz(b()).valueOf()>e.valueOf()}function O(){const e="gatherpress_event_past",t=(0,r.dispatch)("core/notices");t.removeNotice(e),N()&&t.createNotice("warning",(0,n.__)("This event has already passed.","gatherpress"),{id:e,isDismissible:!1})}const x=()=>{const{editPost:e,unlockPostSaving:a}=(0,r.useDispatch)("core/editor"),l=(0,r.useSelect)((e=>e("core/editor").isCleanNewPost()),[]);let i=(0,r.useSelect)((e=>e("core/editor").getEditedPostAttribute("meta").gatherpress_enable_anonymous_rsvp),[]);l&&(i=p("settings.enableAnonymousRsvp"));const[o,c]=(0,m.useState)(i),u=(0,m.useCallback)((t=>{const n={gatherpress_enable_anonymous_rsvp:Number(t)};c(t),e({meta:n}),a()}),[e,a]);return(0,m.useEffect)((()=>{l&&0!==i&&u(i)}),[l,i,u]),(0,t.createElement)(s.CheckboxControl,{label:(0,n.__)("Enable Anonymous RSVP","gatherpress"),checked:o,onChange:e=>{u(e)}})},A=()=>(0,t.createElement)("section",null,(0,t.createElement)(x,null)),F=()=>{const{editPost:e,unlockPostSaving:a}=(0,r.useDispatch)("core/editor"),l=(0,r.useSelect)((e=>e("core/editor").isCleanNewPost()),[]);let i=(0,r.useSelect)((e=>e("core/editor").getEditedPostAttribute("meta").gatherpress_enable_initial_decline),[]);l&&(i=p("settings.enableInitialDecline"));const[o,c]=(0,m.useState)(i),u=(0,m.useCallback)((t=>{const n={gatherpress_enable_initial_decline:Number(t)};c(t),e({meta:n}),a()}),[e,a]);return(0,m.useEffect)((()=>{l&&0!==i&&u(i)}),[l,i,u]),(0,t.createElement)(s.CheckboxControl,{label:(0,n.__)('Enable Immediate "Not Attending" Option for Attendees',"gatherpress"),checked:o,onChange:e=>{u(e)}})},M=()=>(0,t.createElement)("section",null,(0,t.createElement)(F,null)),Y=e=>{const{dateTimeStart:t}=e;return o().tz(t,b()).format(f())},R=e=>{const{dateTimeEnd:t}=e;return o().tz(t,b()).format(f())},j=e=>{const{dateTimeStart:n,setDateTimeStart:r}=e,a=(0,E.getSettings)(),l=/a(?!\\)/i.test(a.formats.time.toLowerCase().replace(/\\\\/g,"").split("").reverse().join(""));return(0,t.createElement)(s.DateTimePicker,{currentDate:n,onChange:e=>D(e,r),is12Hour:l})},I=e=>{const{dateTimeEnd:n,setDateTimeEnd:r}=e,a=(0,E.getSettings)(),l=/a(?!\\)/i.test(a.formats.time.toLowerCase().replace(/\\\\/g,"").split("").reverse().join(""));return(0,t.createElement)(s.DateTimePicker,{currentDate:n,onChange:e=>T(e,r),is12Hour:l})},H=e=>{const{dateTimeStart:r,setDateTimeStart:a}=e;return(0,m.useEffect)((()=>{a(o().tz(function(){let e=p("eventDetails.dateTime.datetime_start");return e=""!==e?o().tz(e,b()).format(h):v,g("eventDetails.dateTime.datetime_start",e),e}(),b()).format(h)),z({setDateTimeStart:r}),O()})),(0,t.createElement)(s.PanelRow,null,(0,t.createElement)(s.Flex,{direction:"column",gap:"0"},(0,t.createElement)(s.FlexItem,null,(0,t.createElement)("label",{htmlFor:"gatherpress-datetime-start"},(0,n.__)("Start","gatherpress"))),(0,t.createElement)(s.FlexItem,null,(0,t.createElement)(s.Dropdown,{popoverProps:{placement:"bottom-end"},renderToggle:({isOpen:e,onToggle:n})=>(0,t.createElement)(s.Button,{id:"gatherpress-datetime-start",onClick:n,"aria-expanded":e,isLink:!0},(0,t.createElement)(Y,{dateTimeStart:r})),renderContent:()=>(0,t.createElement)(j,{dateTimeStart:r,setDateTimeStart:a})}))))},L=e=>{const{dateTimeEnd:r,setDateTimeEnd:a}=e;return(0,m.useEffect)((()=>{a(o().tz(function(){let e=p("eventDetails.dateTime.datetime_end");return e=""!==e?o().tz(e,b()).format(h):S,g("eventDetails.dateTime.datetime_end",e),e}(),b()).format(h)),z({setDateTimeEnd:r}),O()})),(0,t.createElement)(s.PanelRow,null,(0,t.createElement)(s.Flex,{direction:"column",gap:"0"},(0,t.createElement)(s.FlexItem,null,(0,t.createElement)("label",{htmlFor:"gatherpress-datetime-end"},(0,n.__)("End","gatherpress"))),(0,t.createElement)(s.FlexItem,null,(0,t.createElement)(s.Dropdown,{popoverProps:{placement:"bottom-end"},renderToggle:({isOpen:e,onToggle:n})=>(0,t.createElement)(s.Button,{id:"gatherpress-datetime-end",onClick:n,"aria-expanded":e,isLink:!0},(0,t.createElement)(R,{dateTimeEnd:r})),renderContent:()=>(0,t.createElement)(I,{dateTimeEnd:r,setDateTimeEnd:a})}))))},G=e=>{const{timezone:r,setTimezone:a}=e,l=p("misc.timezoneChoices");return(0,m.useEffect)((()=>{a(p("eventDetails.dateTime.timezone"))}),[a]),(0,m.useEffect)((()=>{z({setTimezone:p("eventDetails.dateTime.timezone")})})),(0,t.createElement)(s.PanelRow,null,(0,t.createElement)(s.SelectControl,{label:(0,n.__)("Time Zone","gatherpress"),value:P(r),onChange:e=>{e=function(e=""){const t=/^UTC([+-])(\d+)(.\d+)?$/,n=e.replace(t,"$1");if(n!==e){const r=e.replace(t,"$2").padStart(2,"0");let s=e.replace(t,"$3");return""===s&&(s=":00"),s=s.replace(".25",":15").replace(".5",":30").replace(".75",":45"),n+r+s}return e}(e),a(e),g("eventDetails.dateTime.timezone",e),d()}},Object.keys(l).map((e=>(0,t.createElement)("optgroup",{key:e,label:e},Object.keys(l[e]).map((n=>(0,t.createElement)("option",{key:n,value:n},l[e][n]))))))))},$=()=>{const[e,s]=(0,m.useState)(),[a,l]=(0,m.useState)(),[i,o]=(0,m.useState)();return(0,r.subscribe)(w),(0,t.createElement)(t.Fragment,null,(0,t.createElement)("h3",null,(0,n.__)("Date & time","gatherpress")),(0,t.createElement)(H,{dateTimeStart:e,setDateTimeStart:s}),(0,t.createElement)(L,{dateTimeEnd:a,setDateTimeEnd:l}),(0,t.createElement)(G,{timezone:i,setTimezone:o}))},V=()=>(0,t.createElement)("section",null,(0,t.createElement)($,null)),W=()=>{const{editPost:e,unlockPostSaving:a}=(0,r.useDispatch)("core/editor"),l=(0,r.useSelect)((e=>e("core/editor").isCleanNewPost()),[]);let i=(0,r.useSelect)((e=>e("core/editor").getEditedPostAttribute("meta").gatherpress_max_guest_limit),[]);l&&(i=p("settings.maxGuestLimit")),!1===i&&(i=0);const[o,c]=(0,m.useState)(i),u=(0,m.useCallback)((t=>{const n={gatherpress_max_guest_limit:Number(t)};c(t),e({meta:n}),a()}),[e,a]);return(0,m.useEffect)((()=>{l&&0!==i&&u(i)}),[l,i,u]),(0,t.createElement)(s.__experimentalNumberControl,{label:(0,n.__)("Maximum Number of Guests","gatherpress"),value:o,min:0,max:5,onChange:e=>{u(e)}})},B=()=>(0,t.createElement)("section",null,(0,t.createElement)(W,null)),J=()=>"publish"===(0,r.select)("core/editor").getEditedPostAttribute("status")&&!N()&&(0,t.createElement)("section",null,(0,t.createElement)("h3",{style:{marginBottom:"0.5rem"}},(0,n.__)("Send an event update","gatherpress")),(0,t.createElement)(s.Button,{variant:"secondary",onClick:()=>z({setOpen:!0})},(0,n.__)("Compose Message","gatherpress"))),U=()=>{const{editPost:e,unlockPostSaving:a}=(0,r.useDispatch)("core/editor"),l=(0,r.useSelect)((e=>e("core/editor").getEditedPostAttribute("meta").gatherpress_online_event_link)),[i,o]=(0,m.useState)(l);return k({setOnlineEventLink:o},p("eventDetails.postId")),(0,t.createElement)(s.TextControl,{label:(0,n.__)("Online event link","gatherpress"),value:i,placeholder:(0,n.__)("Add link to online event","gatherpress"),onChange:t=>{(t=>{e({meta:{gatherpress_online_event_link:t}}),o(t),z({setOnlineEventLink:t},p("eventDetails.postId")),a()})(t)}})},Z=()=>(0,t.createElement)("section",null,(0,t.createElement)(U,null)),X=()=>{const[e,a]=(0,m.useState)(""),[l,i]=(0,m.useState)(""),[o,c]=(0,m.useState)(""),[u,d]=(0,m.useState)(""),[p,g]=(0,m.useState)(!1),[E,h]=(0,m.useState)(""),_=(0,r.useDispatch)("core/editor").editPost,{unlockPostSaving:v}=(0,r.useDispatch)("core/editor"),S=(0,r.useSelect)((e=>e("core/editor").getEditedPostAttribute("_gatherpress_venue"))),f=(0,r.useSelect)((e=>e("core").getEntityRecord("taxonomy","_gatherpress_venue",S))),b=f?.slug.replace(/^_/,""),[P,D]=(0,m.useState)(""),T=S+":"+P,w=(0,r.useSelect)((e=>e("core").getEntityRecords("postType","gatherpress_venue",{per_page:1,slug:P})));(0,m.useEffect)((()=>{var e,t,r,s;let l={};if(P&&Array.isArray(w)){var o;const e=null!==(o=w[0]?.meta?.gatherpress_venue_information)&&void 0!==o?o:"{}";var u;e&&(l=JSON.parse(e),l.name=null!==(u=w[0]?.title.rendered)&&void 0!==u?u:"")}const m=null!==(e=l?.name)&&void 0!==e?e:(0,n.__)("No venue selected.","gatherpress"),p=null!==(t=l?.fullAddress)&&void 0!==t?t:"",g=null!==(r=l?.phoneNumber)&&void 0!==r?r:"",E=null!==(s=l?.website)&&void 0!==s?s:"";b&&D(b),h(T?String(T):""),a(m),i(p),c(g),d(E),z({setName:m,setFullAddress:p,setPhoneNumber:g,setWebsite:E,setIsOnlineEventTerm:"online-event"===P})}),[P,w,b,T]);let C=(0,r.useSelect)((e=>e("core").getEntityRecords("taxonomy","_gatherpress_venue",{per_page:-1,context:"view"})),[]);return C?(C=C.map((e=>({label:e.name,value:e.id+":"+e.slug.replace(/^_/,"")}))),C.unshift({value:":",label:(0,n.__)("Choose a venue","gatherpress")})):C=[],(0,t.createElement)(s.PanelRow,null,(0,t.createElement)(s.SelectControl,{label:(0,n.__)("Venue Selector","gatherpress"),value:E,onChange:e=>{(e=>{h(e);const t=""!==(e=e.split(":"))[0]?[e[0]]:[];_({_gatherpress_venue:t}),D(e[1]),v()})(e)},options:C}))},q=()=>(0,t.createElement)("section",null,(0,t.createElement)(X,null)),{Fill:K,Slot:Q}=(0,s.createSlotFill)("EventPluginDocumentSettings"),ee=({children:e,className:n})=>(0,t.createElement)(K,null,(0,t.createElement)(s.PanelRow,{className:n},e));ee.Slot=Q,(0,a.registerPlugin)("gatherpress-event-settings",{render:()=>y()&&(0,t.createElement)(l.PluginDocumentSettingPanel,{name:"gatherpress-event-settings",title:(0,n.__)("Event settings","gatherpress"),initialOpen:!0,className:"gatherpress-event-settings"},(0,t.createElement)(ee.Slot,null),(0,t.createElement)(s.__experimentalVStack,{spacing:6},(0,t.createElement)(V,null),(0,t.createElement)(q,null),(0,t.createElement)(Z,null),(0,t.createElement)(B,null),(0,t.createElement)(A,null),(0,t.createElement)(M,null),(0,t.createElement)(J,null)))}),(0,r.dispatch)("core/edit-post").toggleEditorPanelOpened("gatherpress-event-settings/gatherpress-event-settings");const te=()=>{var e,a,l;const i=(0,r.useDispatch)("core/editor").editPost,o=(e,t)=>{const n=JSON.stringify({...c,[e]:t});i({meta:{gatherpress_venue_information:n}})};let c=(0,r.useSelect)((e=>e("core/editor").getEditedPostAttribute("meta").gatherpress_venue_information));c=c?JSON.parse(c):{};const[u,d]=(0,m.useState)(null!==(e=c.fullAddress)&&void 0!==e?e:""),[p,g]=(0,m.useState)(null!==(a=c.phoneNumber)&&void 0!==a?a:""),[E,h]=(0,m.useState)(null!==(l=c.website)&&void 0!==l?l:"");return k({setFullAddress:d,setPhoneNumber:g,setWebsite:h}),(0,t.createElement)(t.Fragment,null,(0,t.createElement)(s.TextControl,{label:(0,n.__)("Full Address","gatherpress"),value:u,onChange:e=>{z({setFullAddress:e}),o("fullAddress",e)}}),(0,t.createElement)(s.TextControl,{label:(0,n.__)("Phone Number","gatherpress"),value:p,onChange:e=>{z({setPhoneNumber:e}),o("phoneNumber",e)}}),(0,t.createElement)(s.TextControl,{label:(0,n.__)("Website","gatherpress"),value:E,type:"url",onChange:e=>{z({setWebsite:e}),o("website",e)}}))},ne=()=>(0,t.createElement)("section",null,(0,t.createElement)(te,null)),{Fill:re,Slot:se}=(0,s.createSlotFill)("VenuePluginDocumentSettings"),ae=({children:e,className:n})=>(0,t.createElement)(re,null,(0,t.createElement)(s.PanelRow,{className:n},e));ae.Slot=se,window.wp.coreData,(0,a.registerPlugin)("gatherpress-venue-settings",{render:()=>"gatherpress_venue"===(0,r.select)("core/editor")?.getCurrentPostType()&&(0,t.createElement)(l.PluginDocumentSettingPanel,{name:"gatherpress-venue-settings",title:(0,n.__)("Venue settings","gatherpress"),initialOpen:!0,className:"gatherpress-venue-settings"},(0,t.createElement)(ae.Slot,null),(0,t.createElement)(s.__experimentalVStack,{spacing:6},(0,t.createElement)(ne,null)))}),(0,r.dispatch)("core/edit-post").toggleEditorPanelOpened("gatherpress-venue-settings/gatherpress-venue-settings"),(0,a.registerPlugin)("venue-slot-fill",{render:function(){return(0,t.createElement)(t.Fragment,null,(0,t.createElement)(s.Fill,{name:"EventPluginDocumentSettings"},(0,t.createElement)("p",null,'THE "VenuePluginDocumentSettings" in EventPluginDocumentSettings')),(0,t.createElement)(s.Fill,{name:"EventPluginDocumentSettings"},(0,t.createElement)(ae.Slot,null)))}})})(); \ No newline at end of file diff --git a/gatherpress.php b/gatherpress.php index 4c630f5de..3d31774a8 100644 --- a/gatherpress.php +++ b/gatherpress.php @@ -7,7 +7,7 @@ * Author URI: https://gatherpress.org/ * Version: 0.29.0-alpha * Requires PHP: 7.4 - * Requires at least: 6.4 + * Requires at least: 6.5 * Text Domain: gatherpress * Domain Path: /languages * License: GNU General Public License v2.0 or later diff --git a/includes/core/classes/class-block.php b/includes/core/classes/class-block.php index 1c9d52cf0..95ace9d11 100644 --- a/includes/core/classes/class-block.php +++ b/includes/core/classes/class-block.php @@ -49,6 +49,7 @@ protected function __construct() { * @return void */ protected function setup_hooks(): void { + add_action( 'init', array( $this, 'register_block_patterns' ), 10 ); // Priority 11 needed for block.json translations of title and description. add_action( 'init', array( $this, 'register_blocks' ), 11 ); add_filter( 'load_script_translation_file', array( $this, 'fix_translation_location' ), 10, 3 ); @@ -94,4 +95,51 @@ public function register_blocks(): void { ); } } + + /** + * Register custom block patterns. + * + * This method ... + * + * @since 0.30.0 + * + * @return void + */ + public function register_block_patterns(): void { + + /** + * Mainly for use with the 'venue-details' block, + * which is a group block under the hood + * and uses this pattern as innerBlocks template. + */ + \register_block_pattern( + 'gatherpress/venue-details', + array( + 'title' => 'Invisible Venue Details Block Pattern', + // Even this post-title seems useless, it's not. + // It is the entry point for all our hooked blocks + // and as such absolutely important! + 'content' => '', // this will a be hooked ;) + 'inserter' => false, + 'source' => 'plugin', + ) + ); + + /** + * Made to be used with the 'template' parameter + * when registering of the 'gatherpress_event' post type. + */ + \register_block_pattern( + 'gatherpress/venue-template', + array( + 'title' => 'Invisible Venue Template Block Pattern', + // Even this paragraph seems useless, it's not. + // It is the entry point for all our hooked blocks + // and as such absolutely important! + 'content' => '

', // this will a be hooked ;) + 'inserter' => false, + 'source' => 'plugin', + ) + ); + } } diff --git a/includes/core/classes/class-event-query.php b/includes/core/classes/class-event-query.php index f59092a5b..c9b662807 100644 --- a/includes/core/classes/class-event-query.php +++ b/includes/core/classes/class-event-query.php @@ -53,7 +53,7 @@ protected function __construct() { */ protected function setup_hooks(): void { add_action( 'pre_get_posts', array( $this, 'prepare_event_query_before_execution' ) ); - add_filter( 'posts_clauses', array( $this, 'adjust_admin_event_sorting' ) ); + add_filter( 'posts_clauses', array( $this, 'adjust_admin_event_sorting' ), 10, 2 ); } /** @@ -231,10 +231,10 @@ static function () use ( $page_id ) { switch ( $events_query ) { case 'upcoming': remove_filter( 'posts_clauses', array( $this, 'adjust_sorting_for_past_events' ) ); - add_filter( 'posts_clauses', array( $this, 'adjust_sorting_for_upcoming_events' ) ); + add_filter( 'posts_clauses', array( $this, 'adjust_sorting_for_upcoming_events' ), 10, 2 ); break; case 'past': - add_filter( 'posts_clauses', array( $this, 'adjust_sorting_for_past_events' ) ); + add_filter( 'posts_clauses', array( $this, 'adjust_sorting_for_past_events' ), 10, 2 ); remove_filter( 'posts_clauses', array( $this, 'adjust_sorting_for_upcoming_events' ) ); break; default: @@ -251,11 +251,27 @@ static function () use ( $page_id ) { * * @since 1.0.0 * - * @param array $query_pieces An array containing pieces of the SQL query. + * @see https://developer.wordpress.org/reference/hooks/posts_clauses/ + * + * @param array $query_pieces An array containing pieces of the SQL query. + * @param WP_Query $query The WP_Query instance (passed by reference). * @return array The modified SQL query pieces with adjusted sorting criteria for upcoming events. */ - public function adjust_sorting_for_upcoming_events( array $query_pieces ): array { - return $this->adjust_event_sql( $query_pieces, 'upcoming', 'ASC' ); + public function adjust_sorting_for_upcoming_events( array $query_pieces, \WP_Query $query ): array { + + + // \error_log( 'adjust_sorting_for_upcoming_events: ' . \var_export( [ + // (bool) $query->get( 'include_unfinished' ), + // $query + // ], true ) ); + + return $this->adjust_event_sql( + $query_pieces, + 'upcoming', + $query->get( 'order' ), + $query->get( 'orderby' ), + (bool) $query->get( 'include_unfinished' ) + ); } /** @@ -264,12 +280,18 @@ public function adjust_sorting_for_upcoming_events( array $query_pieces ): array * This method modifies the SQL query pieces, including join, where, orderby, etc., to adjust the sorting criteria * for past events in the query. It ensures that events are ordered by their start datetime in the desired order. * - * @param array $query_pieces An array containing pieces of the SQL query. - * + * @param array $query_pieces An array containing pieces of the SQL query. + * @param WP_Query $query The WP_Query instance (passed by reference). * @return array The modified SQL query pieces with adjusted sorting criteria for past events. */ - public function adjust_sorting_for_past_events( array $query_pieces ): array { - return $this->adjust_event_sql( $query_pieces, 'past' ); + public function adjust_sorting_for_past_events( array $query_pieces, \WP_Query $query ): array { + return $this->adjust_event_sql( + $query_pieces, + 'past', + $query->get( 'order' ), + $query->get( 'orderby' ), + (bool) $query->get( 'include_unfinished' ) + ); } /** @@ -280,18 +302,17 @@ public function adjust_sorting_for_past_events( array $query_pieces ): array { * * @since 1.0.0 * - * @param array $query_pieces An array containing pieces of the SQL query. + * @param array $query_pieces An array containing pieces of the SQL query. + * @param WP_Query $query The WP_Query instance (passed by reference). * @return array The modified SQL query pieces with adjusted sorting criteria. */ - public function adjust_admin_event_sorting( array $query_pieces ): array { + public function adjust_admin_event_sorting( array $query_pieces, \WP_Query $query ): array { if ( ! is_admin() ) { return $query_pieces; } - global $wp_query; - - if ( 'datetime' === $wp_query->get( 'orderby' ) ) { - $query_pieces = $this->adjust_event_sql( $query_pieces, 'all', $wp_query->get( 'order' ) ); + if ( 'datetime' === $query->get( 'orderby' ) ) { + $query_pieces = $this->adjust_event_sql( $query_pieces, 'all', $query->get( 'order' ) ); } return $query_pieces; @@ -304,6 +325,10 @@ public function adjust_admin_event_sorting( array $query_pieces ): array { * the `gatherpress_events` table in the database join. It allows querying events based on different * criteria such as upcoming or past events and specifying the event order (DESC or ASC). * + * @see https://developer.wordpress.org/reference/hooks/posts_join/ + * @see https://developer.wordpress.org/reference/hooks/posts_orderby/ + * @see https://developer.wordpress.org/reference/hooks/posts_where/ + * * @since 1.0.0 * * @param array $pieces An array of query pieces, including join, where, orderby, and more. @@ -311,7 +336,13 @@ public function adjust_admin_event_sorting( array $query_pieces ): array { * @param string $order The event order ('DESC' for descending or 'ASC' for ascending). * @return array An array containing adjusted SQL clauses for the Event query. */ - public function adjust_event_sql( array $pieces, string $type = 'all', string $order = 'DESC' ): array { + public function adjust_event_sql( + array $pieces, + string $type = 'all', + string $order = 'DESC', + array|string $order_by = ['datetime'], + bool $inclusive = true + ): array { global $wpdb; $defaults = array( @@ -324,13 +355,37 @@ public function adjust_event_sql( array $pieces, string $type = 'all', string $o 'limits' => '', ); $pieces = array_merge( $defaults, $pieces ); - $table = sprintf( Event::TABLE_FORMAT, $wpdb->prefix ); + $table = sprintf( Event::TABLE_FORMAT, $wpdb->prefix ); // could also (just) be $wpdb->{gatherpress_events} $pieces['join'] .= ' LEFT JOIN ' . esc_sql( $table ) . ' ON ' . esc_sql( $wpdb->posts ) . '.ID=' . esc_sql( $table ) . '.post_id'; $order = strtoupper( $order ); - if ( in_array( $order, array( 'DESC', 'ASC' ), true ) ) { - $pieces['orderby'] = sprintf( esc_sql( $table ) . '.datetime_start_gmt %s', esc_sql( $order ) ); + + // ORDERBY is an array, which allows to orderby multiple values. + // Currently it is only allowed to order events by ONE value. + $order_by = ( is_array( $order_by ) ) ? $order_by[0] : $order_by; + switch ( strtolower( $order_by ) ) { + case 'id': + $pieces['orderby'] = sprintf( esc_sql( $wpdb->posts ) . '.ID %s', esc_sql( $order ) ); + break; + + case 'title': + $pieces['orderby'] = sprintf( esc_sql( $wpdb->posts ) . '.post_name %s', esc_sql( $order ) ); + break; + + case 'modified': + $pieces['orderby'] = sprintf( esc_sql( $wpdb->posts ) . '.post_modified_gmt %s', esc_sql( $order ) ); + break; + + case 'rand': + $pieces['orderby'] = esc_sql( 'RAND()' ); + break; + + case 'datetime': + default: + $pieces['orderby'] = sprintf( esc_sql( $table ) . '.datetime_start_gmt %s', esc_sql( $order ) ); + break; + } } if ( 'all' === $type ) { @@ -339,10 +394,12 @@ public function adjust_event_sql( array $pieces, string $type = 'all', string $o $current = gmdate( Event::DATETIME_FORMAT, time() ); + $column = ( ($inclusive && 'upcoming' === $type) || (! $inclusive && 'past' === $type) ) ? 'datetime_end_gmt' : 'datetime_start_gmt'; + if ( 'upcoming' === $type ) { - $pieces['where'] .= $wpdb->prepare( ' AND %i.datetime_end_gmt >= %s', $table, $current ); // phpcs:ignore WordPress.DB.PreparedSQLPlaceholders.UnsupportedIdentifierPlaceholder + $pieces['where'] .= $wpdb->prepare( ' AND %i.%i >= %s', $table, $column, $current ); // phpcs:ignore WordPress.DB.PreparedSQLPlaceholders.UnsupportedIdentifierPlaceholder } elseif ( 'past' === $type ) { - $pieces['where'] .= $wpdb->prepare( ' AND %i.datetime_end_gmt < %s', $table, $current ); // phpcs:ignore WordPress.DB.PreparedSQLPlaceholders.UnsupportedIdentifierPlaceholder + $pieces['where'] .= $wpdb->prepare( ' AND %i.%i < %s', $table, $column, $current ); // phpcs:ignore WordPress.DB.PreparedSQLPlaceholders.UnsupportedIdentifierPlaceholder } return $pieces; diff --git a/includes/core/classes/class-event-setup.php b/includes/core/classes/class-event-setup.php index d511f6acb..f59d2542f 100644 --- a/includes/core/classes/class-event-setup.php +++ b/includes/core/classes/class-event-setup.php @@ -136,6 +136,7 @@ public function register_post_type(): void { 'custom-fields', ), 'menu_icon' => 'dashicons-nametag', + 'has_archive' => true, 'rewrite' => array( 'slug' => _x( 'event', 'Post Type Slug', 'gatherpress' ), ), diff --git a/includes/core/classes/class-export.php b/includes/core/classes/class-export.php index 46fedc1df..a16ba1ec4 100644 --- a/includes/core/classes/class-export.php +++ b/includes/core/classes/class-export.php @@ -15,6 +15,7 @@ use GatherPress\Core\Migrate; use GatherPress\Core\Traits\Singleton; use WP_Post; +use WP_Query; /** * Class Export. @@ -52,10 +53,56 @@ public function __construct() { * @return void */ protected function setup_hooks(): void { - add_filter( 'wxr_export_skip_postmeta', array( $this, 'set_entry_point' ), 10, 3 ); - add_action( 'gatherpress_export', array( $this, 'export' ) ); + // add_filter( 'wxr_export_skip_postmeta', array( $this, 'set_entry_point' ), 10, 3 ); + // add_action( 'gatherpress_export', array( $this, 'export' ) ); + + /** + * Fires at the beginning of an export, before any headers are sent. + * + * @since 2.3.0 + * + * @param array $args An array of export arguments. + */ + add_action( 'export_wp', function( $args ){ + + /** + * Called via setup_postdata() at the beginning of each singular post export. + * + * Fires once the post data has been set up. + * + * @param WP_Post $post The Post object (passed by reference). + * @param WP_Query $query The current Query object (passed by reference). + */ + add_action( 'the_post', function( WP_Post $post, WP_Query $query ) : void { + if ( self::validate_post( $post ) ) { + // Save a temporary marker, which allows to hook into the export process per post later on. + add_post_meta( $post->ID, 'do_export_event_meta', true ); + } + }, 10, 2 ); + + /** + * Filters whether to selectively skip post meta used for WXR exports. + * + * @param bool $skip Whether to skip the current post meta. Default false. + * @param string $meta_key Current meta key. + * @param object $meta Current meta object. + * @return bool Whether to skip the current post meta. Default false. + */ + add_filter( 'wxr_export_skip_postmeta', function( bool $skip, string $meta_key, object $meta ) : bool { + if ( 'do_export_event_meta' === $meta_key ) { + // Echos out xml with pseudo-postmeta. + self::export( get_post( $meta->post_id ) ); + // Deletes temporary marker. + delete_post_meta( $meta->post_id, 'do_export_event_meta' ); + // Prevent 'normal' export processing for that particular postmeta field. + return true; + } + return $skip; + }, 10, 3 ); + } ); } + /** * Extend WordPress' native Export * @@ -85,7 +132,7 @@ protected function setup_hooks(): void { * @param object $meta Current meta object. * * @return bool - */ + public static function set_entry_point( bool $skip, string $meta_key, object $meta ): bool { if ( self::validate( $meta_key ) ) { /** @@ -96,13 +143,14 @@ public static function set_entry_point( bool $skip, string $meta_key, object $me * @param WP_Post $post Current 'gatherpress_event' post being exported. * @param string $meta_key Current meta key. * @param object $meta Current meta object. - */ + * / do_action( 'gatherpress_export', get_post(), $meta_key, $meta ); } return $skip; } + */ - /** + /** * Checks if the currently exported post is of type 'gatherpress_event' * and if the given, processed meta_key is '_edit_last'. * @@ -111,13 +159,35 @@ public static function set_entry_point( bool $skip, string $meta_key, object $me * @param string $meta_key Current meta key. * * @return bool - */ + protected static function validate( string $meta_key = '' ): bool { if ( Event::POST_TYPE !== get_post_type() ) { return false; } - if ( '_edit_last' !== $meta_key ) { + // if ( '_edit_last' !== $meta_key ) { + // return false; + // } + // Makes sure this runs only once. + if ( did_action( 'gatherpress_export' ) ) { + return false; + } + return true; + } + */ + + /** + * Checks if the currently exported post is of type 'gatherpress_event'. + * + * @since 1.0.0 + * + * @param WP_Post $post Current meta key. + * + * @return bool + */ + protected static function validate_post( WP_Post $post ): bool { + + if ( Event::POST_TYPE !== $post->post_type ) { return false; } return true; diff --git a/includes/core/classes/class-venue.php b/includes/core/classes/class-venue.php index 21887e480..09c55cc5c 100644 --- a/includes/core/classes/class-venue.php +++ b/includes/core/classes/class-venue.php @@ -129,7 +129,7 @@ public function register_post_type(): void { ), 'menu_icon' => 'dashicons-location', 'template' => array( - array( 'gatherpress/venue' ), + array( 'core/pattern', array( 'slug' => 'gatherpress/venue-details' ) ), ), 'rewrite' => array( 'slug' => _x( 'venue', 'Post Type Slug', 'gatherpress' ), @@ -199,6 +199,9 @@ public function register_taxonomy(): void { 'show_in_rest' => true, ) ); + // THIS IS IMPORTANT + // It is neccessary to make this tax visible on event posts within REST responses. + register_taxonomy_for_object_type( self::TAXONOMY, Event::POST_TYPE ); } /** diff --git a/src/panels/event-settings/index.js b/src/panels/event-settings/index.js index 73426180e..3c15e319a 100644 --- a/src/panels/event-settings/index.js +++ b/src/panels/event-settings/index.js @@ -22,6 +22,9 @@ import NotifyMembersPanel from './notify-members'; import OnlineEventLinkPanel from './online-link'; import VenueSelectorPanel from './venue-selector'; + +import { EventPluginDocumentSettings } from './slot.js'; + /** * A settings panel for event-specific settings in the block editor. * @@ -43,6 +46,10 @@ const EventSettings = () => { initialOpen={true} className="gatherpress-event-settings" > + + + + diff --git a/src/panels/event-settings/slot.js b/src/panels/event-settings/slot.js new file mode 100644 index 000000000..5e3409b9b --- /dev/null +++ b/src/panels/event-settings/slot.js @@ -0,0 +1,18 @@ +/** + * Defines as extensibility slot for the Production panel. + */ + +/** + * WordPress dependencies + */ +import { createSlotFill, PanelRow } from '@wordpress/components'; + +export const { Fill, Slot } = createSlotFill('EventPluginDocumentSettings'); + +export const EventPluginDocumentSettings = ({ children, className }) => ( + + {children} + +); + +EventPluginDocumentSettings.Slot = Slot; diff --git a/src/panels/venue-settings/index.js b/src/panels/venue-settings/index.js index a18c55fd0..909cf2935 100644 --- a/src/panels/venue-settings/index.js +++ b/src/panels/venue-settings/index.js @@ -16,6 +16,11 @@ import { PluginDocumentSettingPanel } from '@wordpress/edit-post'; import { isVenuePostType } from '../../helpers/venue'; import VenueInformationPanel from './venue-information'; + +import { VenuePluginDocumentSettings } from './slot.js'; +import VenuePluginFill from './slotfill'; + + /** * VenueSettings Component * @@ -35,6 +40,9 @@ const VenueSettings = () => { initialOpen={true} className="gatherpress-venue-settings" > + + + @@ -68,3 +76,9 @@ registerPlugin('gatherpress-venue-settings', { dispatch('core/edit-post').toggleEditorPanelOpened( 'gatherpress-venue-settings/gatherpress-venue-settings' ); + + + + + +registerPlugin('venue-slot-fill', { render: VenuePluginFill }); diff --git a/src/panels/venue-settings/slot.js b/src/panels/venue-settings/slot.js new file mode 100644 index 000000000..7dad17eb0 --- /dev/null +++ b/src/panels/venue-settings/slot.js @@ -0,0 +1,33 @@ +/** + * Defines as extensibility slot for the Production panel. + */ + +/** + * WordPress dependencies + */ +import { createSlotFill, PanelRow } from '@wordpress/components'; + +export const { Fill, Slot } = createSlotFill('VenuePluginDocumentSettings'); + +// export const VenuePluginDocumentSettings = ({ children, className }) => ( +export const VenuePluginDocumentSettings = ( props ) => { + console.log(props); + return ( + + + {props.children} + + +// +// +// +// +// +// +// +// Panel body +// +// +)}; + +VenuePluginDocumentSettings.Slot = Slot; diff --git a/src/panels/venue-settings/slotfill.js b/src/panels/venue-settings/slotfill.js new file mode 100644 index 000000000..675bd7eeb --- /dev/null +++ b/src/panels/venue-settings/slotfill.js @@ -0,0 +1,31 @@ +/** + * Retrieves the translation of text. + * + * @see https://developer.wordpress.org/block-editor/packages/packages-i18n/ + */ +import { __ } from '@wordpress/i18n'; + +import { Fill } from '@wordpress/components'; + + + +/** + * Internal dependencies + */ +// const DURATION_META = window.Theater.ProductionBlocks.duration.PostMetaKey; +import { VenuePluginDocumentSettings } from './slot.js'; + + +export default function VenuePluginFill() { + + return ( + <> + +

THE "VenuePluginDocumentSettings" in EventPluginDocumentSettings

+
+ + + + + ); +}