@telia-ace/conversational-hub-bot-provider 0.0.13 → 0.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,50 +1,50 @@
1
- "use strict";var Jo=Object.defineProperty;var Xo=(t,e,n)=>e in t?Jo(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var S=(t,e,n)=>(Xo(t,typeof e!="symbol"?e+"":e,n),n);const h=require("react/jsx-runtime"),m=require("react"),dt=require("react-dom");function Qo(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const ae=Qo(m),pn=new WeakMap;function es(){return t=>(pn.has(t)||pn.set(t,{}),pn.get(t))}const mn=(t,e,n,...r)=>{const i=`[${t.get("$environment").name||"webprovisions"}] ${n}`;switch(e){case"info":console.info(i,...r);break;case"warning":console.warn(i,...r);break;case"error":console.error(i,...r);break}},We=t=>{const e=t.container||t;return{info:(n,...r)=>mn(e,"info",n,...r),warn:(n,...r)=>mn(e,"warning",n,...r),error:(n,...r)=>mn(e,"error",n,...r)}},ce=es(),er=(()=>{let t=0;return()=>++t})(),tr=(t,e,n)=>{const r=ce(t).touchQueue.get(e);r&&r.forEach(i=>{i(n,t)})};class ts{constructor(e,n,r,i){this.key=e,this.factory=n,this.parent=r,this.container=i,this.id=er(),this.resolved=!1,this.constructed=!1,this.async=!0}resolve(){if(!this.constructed){const e=this.factory(this.parent,this.container);return this.constructed=!0,this.value=Promise.resolve(e).then(n=>(this.resolved=!0,tr(this.container,this.key,n),n))}return this.value}}class ns{constructor(e,n,r,i){this.key=e,this.value=n,this.parent=r,this.container=i,this.id=er(),this.async=!1,this.resolved=!1,this.constructed=!0,this.resolve=()=>(this.resolved=!0,tr(this.container,this.key,this.value),this.value)}}class rs{constructor(e,n,r,i){this.key=e,this.value=n,this.parent=r,this.container=i,this.id=er(),this.async=!1,this.resolved=!1,this.constructed=!1,this.resolve=()=>{this.resolved=!0,this.constructed=!0;const o=this.value(this.parent,this.container);return tr(this.container,this.key,this.value),o}}}class nr{constructor(e,n,r){this.owner=e,this.name=n,this.parent=r,ce(this).resolvers=new Map,ce(this).touchQueue=new Map,ce(this).children=[]}delete(e){const n=ce(this).resolvers,r=Array.from(n.values()).find(i=>i.id===e);return r?(ce(this).touchQueue.delete(r.key),Promise.resolve(n.delete(r.key))):this.parent?this.parent.delete(e):Promise.resolve(!1)}clear(){const e=ce(this).resolvers,n=Array.from(e.values());return Promise.all(n.map(r=>{if(r.constructed)return Promise.resolve(r.resolve()).then(i=>{if(i!==null&&typeof i=="object"&&typeof i.dispose=="function")return i.dispose.call(i,this,r)})})).then(()=>{n.forEach(r=>this.delete(r.id)),ce(this).children.forEach(r=>r.clear())})}detach(){if(this.parent){const e=ce(this.parent).children,n=e.indexOf(this);n>-1&&(e.splice(n,1),delete this.parent)}}touch(e,n){const r=ce(this).resolvers.get(e);if(r&&r.constructed)Promise.resolve(r.resolve()).then(i=>{n(i,this)});else{const i=ce(this).touchQueue;let o=i.get(e);o||(o=[],i.set(e,o)),o.push(n)}return this.parent&&!r?this.parent.touch(e,n):Promise.resolve()}registerAsync(e,n){const r=ce(this).resolvers.get(e);r&&!r.async&&process.env.NODE_ENV!=="production"&&We(this).warn(`Mismatching resolver type. You are registering an async resolver with a key ('${e}') previously used by a non-async resolver.`);const i=new ts(e,n,r,this);return ce(this).resolvers.set(e,i),i.id}registerFactory(e,n){const r=ce(this).resolvers.get(e);r&&r.async&&process.env.NODE_ENV!=="production"&&We(this).warn(`Mismatching resolver type. You are registering a non-async resolver with a key ('${e}') previously used by an async resolver.`);const i=new rs(e,n,r,this);return ce(this).resolvers.set(e,i),i.id}register(e,n){const r=ce(this).resolvers.get(e);r&&r.async&&process.env.NODE_ENV!=="production"&&We(this).warn(`Mismatching resolver type. You are registering a non-async resolver with a key ('${e}') previously used by an async resolver.`);const i=new ns(e,n,r,this);return ce(this).resolvers.set(e,i),i.id}get(e){const n=ce(this).resolvers.get(e);if(n)return n.async&&process.env.NODE_ENV!=="production"&&We(this).warn(`You are retrieving an async value (with key '${e}') by the non-async function 'container.get(key)'. This will not be supported in future versions. Use 'container.getAsync(key) instead.'`),n.resolve();if(this.parent)return this.parent.get(e)}getAsync(e){const n=ce(this).resolvers.get(e);if(n){if(!n.async)throw process.env.NODE_ENV!=="production"&&We(this).warn(`You are retrieving a non-async value (with key '${e}') by the async function 'container.getAsync(key)'.Use 'container.get(key) instead.'`),"Mismatching resolver type";return n.resolve()}return this.parent?this.parent.getAsync(e):Promise.resolve(void 0)}getMany(...e){const n={};return e.forEach(r=>n[r]=this.get(r)),n}getManyAsync(...e){const n={};return Promise.all(e.map(r=>this.getAsync(r).then(i=>n[r]=i))).then(()=>n)}createChild(e,n){const r=new nr(e,n,this);return ce(this).children.push(r),r}}var It=(t=>(t.Implementation="implementation",t.Widget="widget",t))(It||{}),Ie=(t=>(t.Pre="pre",t.Post="post",t))(Ie||{});const is=(t,e,n,r)=>{try{const i=new e(n,r);return{name:t,invoke:(o,s)=>{let a;return i[o]&&(a=i[o].call(i,s)),Promise.resolve(a)},getInstance:()=>i}}catch(i){if(i.message&&i.message.indexOf("is not a constructor")>=0)return{name:t,invoke:o=>{let s;return o==="initialize"&&(s=e(n,r)),Promise.resolve(s)},getInstance:()=>e};throw i}};function Wr(t,e){return typeof t>"u"?e:t}class os{constructor(e={}){this.part=e}createCommand(e,n,r){let i;typeof n=="function"?i={scope:It.Widget,stage:Ie.Post,defaultArgs:void 0,handlerResolver:n}:i={scope:Wr(n.scope,It.Widget),stage:Wr(n.stage,Ie.Post),defaultArgs:n.defaultArgs,handlerResolver:r};let o=this.part;const s=e.split(".");return s.forEach((a,c)=>{c===s.length-1?o[a]||(o[a]=()=>i):o=this.part[a]=this.part[a]||{}}),this}get(){return this.part}}const Yt=t=>{const e=new os({});return t(e),e.get()};Yt(t=>{t.createCommand("types.register",{scope:It.Implementation,stage:Ie.Pre},e=>(n,r)=>{e.container.get("$types")[n]=r}).createCommand("type",{stage:Ie.Pre},e=>n=>{e.container.register("$type",n)}).createCommand("settings",{stage:Ie.Pre,defaultArgs:[null]},e=>n=>{e.events.dispatch("settings:change",n,{bubbles:!0}),e.container.register("$settings",n)}).createCommand("plugin",{stage:Ie.Pre},e=>(n,r,i)=>{const{container:o}=e;let s=null,a=n,c=r;typeof n=="string"&&(s=n,a=r,c=i);const u=l=>{const{transformPluginSettings:d}=e.container.get("$environmentOptions"),f=d?d(c||{},s,e.container,a):r;try{const p=is(s,a,o,f);o.get("$plugins").push(p),l&&p.invoke("initialize",null)}catch(p){We(e).warn("Error when initializing plugin",p)}};e.container.get("$instance")?u(!0):e.events.subscribeOnce("widget:instance-created",()=>u(!1))}).createCommand("container.register",e=>(n,r)=>{e.container.register(n,r)}).createCommand("container.registerAsync",e=>(n,r)=>{e.container.registerAsync(n,r)}).createCommand("container.registerFactory",e=>(n,r)=>{e.container.registerFactory(n,r)}).createCommand("container.touch",e=>(n,r)=>{e.container.touch(n,r)}).createCommand("csp",{},e=>n=>{e.container.register("csp",n)})});var Ki=(t=>(t.Activating="activating",t.Loading="loading",t.Activated="activated",t.Deactivating="deactivating",t.Deactivated="deactivated",t))(Ki||{});const ss=t=>{const e=[];return[(r,i)=>{e.push(t.subscribe(r,i))},()=>{e.forEach(r=>{r()})}]};class rr{constructor(e,n=[]){this.platform=e,this.rules=n}match(e){return this.rules.every(n=>!(n.id&&n.id!==e.id||n.type&&n.type!==e.type))}ofType(e){return this.rules.push({type:e}),this}withId(e){return this.rules.push({id:e}),this}select(){return new cs(this.platform,this)}}class as{constructor(e,n,r){S(this,"actions");S(this,"subscribe");S(this,"unsubscribe");this.platform=e,this.node=n,this.actions=new ir(e,new rr(e).withId(n.id),r);const[i,o]=ss(this.platform.events);this.subscribe=i,this.unsubscribe=o}properties(e){return e&&this.node.touchProperties(n=>e(n)),this.node.attributes.properties}context(e){return e&&this.subscribe("components:context-changed",(n,{node:r})=>{r===this.node&&e(this.node.attributes.context)}),this.node.attributes.context}layout(e){return e&&this.subscribe("components:layout-changed",(n,{node:r})=>{r===this.node&&e(this.node.attributes.layout)}),this.node.attributes.layout}writeProperties(e,n){this.node.writeProperties(e,n)}writeContext(e,n){this.node.writeProperties(e,n)}writeLayout(e,n){this.node.writeLayout(e,n)}dispose(){this.unsubscribe(),this.actions.dispose()}}class cs{constructor(e,n,r=!0){S(this,"actions");S(this,"removes",[]);this.platform=e,this.target=n,this.clearOnDispose=r,this.actions=new ir(this.platform,this.target)}writeProperties(e,n){this.removes.push(this.platform.write({options:n,attributes:{properties:e},target:this.target,removable:this.clearOnDispose}))}writeContext(e,n){this.removes.push(this.platform.write({options:n,attributes:{context:e},target:this.target,removable:this.clearOnDispose}))}writeLayout(e,n){this.removes.push(this.platform.write({options:n,attributes:{layout:e},target:this.target,removable:this.clearOnDispose}))}dispose(){this.removes.forEach(e=>{e()}),this.actions.dispose()}}const ls=(t,e,n)=>{const r=t.concat(),i=(o,s,a)=>{let c=!0;if(r.length){const u=r.shift(),l=(d,f)=>(c=!1,i(d,Object.assign({},s,f),a));return Promise.resolve(u(o,l,a)).then(d=>({...d,cancelled:c}))}return Promise.resolve({data:o,cancelled:!1,options:s})};return i(e,{},n)};class ir{constructor(e,n,r){S(this,"subscriptions",[]);this.platform=e,this.target=n,this.ns=r,this.create=this.create.bind(this)}create(e,n=()=>{}){const r={key:e,fn:n,target:this.target,ns:this.ns};this.platform.actionsState.handlers.push(r);const i=()=>{const o=this.platform.actionsState.handlers.indexOf(r);o>-1&&this.platform.actionsState.handlers.splice(o,1)};return this.subscriptions.push(i),i}dispatch(e,n){const r=this.platform.nodes.all.concat(this.platform.nodes.detached),i={},o=this.platform.actionsState.handlers.filter(s=>s.key===e&&(!s.ns||!this.ns||s.ns===this.ns));return Promise.all(o.map(s=>{const a=r.filter(u=>s.target.match(u)&&this.target.match(u)),c=this.platform.actionsState.watchers.filter(u=>u.key===e&&(!u.ns||!this.ns||u.ns===this.ns)&&a.some(l=>u.target.match(l))).map(u=>u.fn);return Promise.all(a.map(u=>{const l=new as(this.platform,u,this.ns);return ls(c,n,l).then(d=>{const{data:f={},options:p,cancelled:g}=d;return Promise.resolve(g?{}:s.fn(f,p,l)).then(v=>{i[u.id]=v})})}))})).then(()=>i)}watch(e,n){let r=e,i=this.ns;const o=e.split(".");o.length>1&&(i=o[0],r=o.splice(1).join("."));const s={fn:n,target:this.target,key:r,ns:i};this.platform.actionsState.watchers.push(s);const a=()=>{const c=this.platform.actionsState.watchers.indexOf(s);c>-1&&this.platform.actionsState.watchers.splice(c,1)};return this.subscriptions.push(a),a}dispose(){this.subscriptions.forEach(e=>e())}}Yt(t=>{t.createCommand("components",e=>n=>{e.events.subscribeOnce("components:platform-created",(r,{platform:i})=>{n.handlers&&n.handlers.forEach(([o,s])=>{i.addComponentHandler(o,s)})})})});function Vt(t){const e={};if(typeof t=="number"||typeof t=="string")return t;for(const n in t)if(t.hasOwnProperty(n)){const r=t[n],i=n.substring(0,1).toLowerCase()+n.substring(1);if(Object.prototype.toString.call(r)==="[object Array]"){e[i]=[];for(let o=0,s=r.length;o<s;o++)e[i].push(Vt(r[o]))}else r!==null&&typeof r=="object"?e[i]=Vt(r):e[i]=r}return e}const wt=(t,e,...n)=>typeof e=="string"?t(`[humany] ${e}`,...n):t(e,...n),Fe=class{constructor(){S(this,"keys",[]);S(this,"log",(e,...n)=>this.lookup(e,()=>Fe.log(...n)));S(this,"warn",(e,...n)=>this.lookup(e,()=>Fe.warn(...n)));S(this,"error",(e,...n)=>this.lookup(e,()=>Fe.error(...n)));S(this,"info",(e,...n)=>this.lookup(e,()=>Fe.info(...n)))}lookup(e,n){this.keys.indexOf(e)===-1&&(this.keys.push(e),n())}};let se=Fe;S(se,"log",(...e)=>wt(console.log,...e)),S(se,"warn",(...e)=>wt(console.warn,...e)),S(se,"error",(...e)=>wt(console.error,...e)),S(se,"info",(...e)=>wt(console.info,...e));const or=t=>{let e={},n,r;if(typeof t!="object"||t===null)return t;e=Array.isArray(t)?[]:{};for(r in t)n=t[r],e[r]=typeof n=="object"&&n!==null?or(n):n;return e};function Ur(t){let e=0;if(t.length===0)return e.toString();for(let n=0;n<t.length;n++){const r=t.charCodeAt(n);e=(e<<5)-e+r,e=e&e}return e.toString()}function us(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/\s+/g,"-").toLowerCase()}class ds{constructor(e,n){S(this,"tasks",[]);S(this,"current",Promise.resolve());this.lockWarningTime=e,this.lockErrorTime=n,this.next=this.next.bind(this)}add(e,n,r,i){this.tasks.push({task:e,resolve:n,reject:r,done:i}),this.next()}next(){this.current=this.current.then(()=>{const e=this.tasks.shift();if(e){let n;const r=setTimeout(()=>{process.env.NODE_ENV!=="production"&&se.warn(`A lock has exceeded ${this.lockWarningTime} ms. Waiting additional ${this.lockErrorTime} ms before rejecting the task.`,e),n=setTimeout(()=>{e.reject("lock timeout exceeded")},this.lockErrorTime)},this.lockWarningTime),i=Promise.resolve(e.task()).then(o=>(clearTimeout(r),clearTimeout(n),o));return Promise.resolve(i).then(this.next).then(()=>i.then(o=>{e.done(),e.resolve(o)})).catch(o=>(e.done(),e.reject(o),this.next()))}return Promise.resolve()})}}const Et=new WeakMap;function nt(t,e=5e3,n=1e3){return Et.has(t)||Et.set(t,new ds(e,n)),r=>new Promise((i,o)=>{const s=Et.get(t);s.add(r,i,o,()=>{s.tasks.length||Et.delete(t)})})}const Le=()=>Math.floor((1+Math.random())*65536).toString(16).substring(1);function Ee(){return Le()+Le()+"-"+Le()+"-"+Le()+"-"+Le()+"-"+Le()+Le()+Le()}function fs(t){const e=[];return t.forEach(n=>{e.indexOf(n)===-1&&e.push(n)}),e}function Dn(t="",e=""){const n=t.split(" ").concat(e.split(" "));return fs(n).join(" ").trim()}function hs(t,e){if(t){if(typeof e=="string")return e;if(Array.isArray(e)){let n="";return e.forEach(r=>n=Dn(n,r)),n}}}function ie(...t){let e="";return t.length&&t.forEach(n=>{typeof n=="string"?e=Dn(e,n):Array.isArray(n)?e=Dn(e,hs(...n)):typeof n<"u"&&n!==null&&process.env.NODE_ENV!=="production"&&se.warn("appendClassNames: arguments either haveto be a string or [boolean, ...string[]]. Passed args:",...t)}),e}class Fr{constructor(e,n){S(this,"id");S(this,"type");S(this,"name");S(this,"parent");S(this,"tags",[]);S(this,"children",{});S(this,"changesets",[]);S(this,"attributes");S(this,"mountCount",0);this.events=e,this.id=Ee(),this.type=n,this.attributes={context:{},properties:{},layout:{},tags:[]},this.writeLayout({size:"full",indent:0})}mount(e,n){let r=e.get("mounted-nodes");return r||(r=new Map,e.register("mounted-nodes",r)),r.has(this)?(process.env.NODE_ENV!=="production"&&se.error("Trying to mount an already mounted component node.",this),()=>{}):(this.events.dispatch("components:node-mounted",{node:this}),this.mountCount===0&&(this.mountCount=this.mountCount+1,this.events.dispatch("components:node-enter",{node:this})),()=>{r.delete(this),this.events.dispatch("components:node-unmounted",{node:this}),this.mountCount=this.mountCount-1,this.mountCount===0&&this.events.dispatch("components:node-exit",{node:this})})}appendChild(e,n="default"){if(e.parent){if(e.parent===this)return;e.parent.removeChild(e)}e.parent=this,this.children[n]||(this.children[n]=[]),this.children[n].push(e),this.events.dispatch("components:node-appended",{node:e})}prependChild(e,n="default"){if(e.parent){if(e.parent===this)return;e.parent.removeChild(e)}e.parent=this,this.children[n]||(this.children[n]=[]),this.children[n].unshift(e),this.events.dispatch("components:node-appended",{node:e})}touchProperties(e,n={},r){const o=[{properties:e},n];return this.changesets.push(o),this.events.dispatch("components:set-properties",{node:this}),()=>{if(r){const s=this.changesets.indexOf(o);s>-1&&(this.changesets.splice(s,1),this.events.dispatch("components:set-properties",{node:this}))}}}writeProperties(e,n={},r){const o=[{properties:e},n];return this.changesets.push(o),this.events.dispatch("components:set-properties",{node:this}),()=>{if(r){const s=this.changesets.indexOf(o);s>-1&&(this.changesets.splice(s,1),this.events.dispatch("components:set-properties",{node:this}))}}}writeLayout(e,n={},r){const o=[{layout:e},n];return this.changesets.push(o),this.events.dispatch("components:set-layout",{node:this}),()=>{if(!r)return;const s=this.changesets.indexOf(o);s>-1&&(this.changesets.splice(s,1),this.events.dispatch("components:set-layout",{node:this}))}}writeContext(e,n={},r){const o=[{context:e},n];return this.changesets.push(o),this.events.dispatch("components:set-context",{node:this}),()=>{if(!r)return;const s=this.changesets.indexOf(o);s>-1&&(this.changesets.splice(s,1),this.events.dispatch("components:set-context",{node:this}))}}getChildren(e="default"){const n=this.children[e]||[];return n.reduce((r,i,o)=>{const{order:s=o}=i.attributes.layout;return r[s]?r.splice(s,0,i):r[s]=i,r},Array(n.length))}remove(){this.parent&&this.parent.removeChild(this)}removeChild(e){Object.keys(this.children).forEach(n=>{const r=this.children[n],i=r.indexOf(e);i>-1&&(r.splice(i,1),this.events.dispatch("components:node-removed",{node:e,parentNode:this}))}),delete e.parent}}const Zi=(t,e,n)=>{for(let r=0,i=t.length;r<i&&n(t[r])!==!0;r++){const o=e[t[r].id]||"default",s=t[r].getChildren(o);Zi(s,e,n)}},sr=(t,e,n)=>{if(n(t)!==!0){const r=e[t.id]||"default",i=t.children[r];Zi(i,e,n)}},vn=(t,e)=>{const n=[];return sr(t,e,r=>{n.push(r)}),n},ps=(t,e,n)=>{let r;return sr(t,e,i=>{if(n(i))return r=i,!0}),r};class ms{constructor(e,n,r){S(this,"all",[]);S(this,"visible",[]);S(this,"detached",[]);this.root=e,this.switches=n,r.subscribe("components:node-appended",(i,o)=>{this.all.push(o.node),this.visible=vn(e,n)}),r.subscribe("components:node-removed",(i,o)=>{let s=this.all.indexOf(o.node);s>-1&&this.all.splice(s,1),s=this.visible.indexOf(o.node),s>-1&&this.visible.splice(s,1),this.visible=vn(e,n)}),r.subscribe("components:node-switched",(i,o)=>{this.visible=vn(e,n)})}query(e={}){const n=[];return sr(this.root,this.switches,r=>{Object.keys(e).every(o=>e[o]===r[o])&&n.push(r)}),n}get(e){return ps(this.root,this.switches,n=>n.id===e)||this.detached.find(n=>n.id===e)}}class vs{constructor(){S(this,"handlers",new Map)}add(e,n){this.handlers.set(e,n)}get(e){return this.handlers.get(e)}}const gs=t=>{let e=t,n=0;for(;e.parent;)n=n+1,e=e.parent;return n},ys=t=>t.map(([n,r])=>[gs(n),n,r]).sort(([n],[r])=>n-r).map(([,n,r])=>[n,r]),gn=t=>t instanceof Date?!1:t&&typeof t=="object"&&!Array.isArray(t),Re=(t,...e)=>{if(!e.length)return t;const n=e.shift();if(gn(t)&&gn(n))for(const r in n)gn(n[r])?(t[r]||Object.assign(t,{[r]:{}}),Re(t[r],n[r])):Object.assign(t,{[r]:n[r]});return Re(t,...e)},bs=(t,e)=>!t||t==="all"?!0:t.some(n=>e.indexOf(n)>-1),xs=(t,e)=>{let n=[],r=[],i;const o=()=>{process.env.NODE_ENV!=="production"&&console.time("state-processor.flush");const a=new Map,c=ys(n.map((l,d)=>[l,r[d]])),u=(l,d)=>{var j;const f=a.get(l)||{},p=d.context&&!f.context,g=d.properties&&!f.properties,v=d.layout&&!f.layout;a.set(l,{context:f.context||p,properties:f.properties||g,layout:f.layout||v}),g&&(l.attributes.properties={}),v&&(l.attributes.layout={}),p&&(l.attributes.context=Re({},(j=l.parent)==null?void 0:j.attributes.context));const y=[],k=[],N=[];if(l.changesets.forEach(T=>{const[x,V]=T;bs(V.breakpoints,t.breakpoints)&&(g&&(typeof x.properties=="function"?y.push(x.properties):Re(l.attributes.properties,x.properties)),v&&(typeof x.layout=="function"?k.push(x.layout):Re(l.attributes.layout,x.layout)),p&&(typeof x.context=="function"?N.push(x.context):Re(l.attributes.context,x.context)))}),y.forEach(T=>{Re(l.attributes.properties,T(l.attributes.properties))}),k.forEach(T=>{Re(l.attributes.layout,T(l.attributes.layout))}),N.forEach(T=>{Re(l.attributes.context,T(l.attributes.context))}),p||d.recursive){const T=t.getBranch(l),x=d.recursive?d:{context:!!p};l.getChildren(T).forEach(V=>{u(V,x)})}};process.env.NODE_ENV!=="production"&&console.timeEnd("state-processor.flush"),c.forEach(([l,d])=>{u(l,d)}),n=[],r=[],e(a)},s=()=>{clearTimeout(i),i=setTimeout(o,0)};return(a,c)=>{const u=n.indexOf(a);if(u>-1){const l=r[u];return c.context&&(l.context=!0),c.properties&&(l.properties=!0),c.layout&&(l.layout=!0),c.recursive&&(l.recursive=!0),s()}return n.push(a),r.push(c),s()}};class Gi{constructor(e,n={}){S(this,"events");S(this,"breakpoints",[]);S(this,"nodes");S(this,"actionsState",{handlers:[],watchers:[]});S(this,"switches",{});S(this,"changesets",[]);S(this,"subscriptions",[]);S(this,"processNode");S(this,"customComponentHandler",new vs);this.providers=n,this.events=e.events.createChild(this);const r=new Fr(this.events,"root");r.name=`root-${e.name}`,this.nodes=new ms(r,this.switches,this.events);const i=this.processNode=xs(this,o=>{const s=Array.from(o.keys());process.env.NODE_ENV!=="production"&&console.info(`STATE PROCESSOR: ${s.length} node(s) processed:
1
+ "use strict";var Zo=Object.defineProperty;var Go=(t,e,n)=>e in t?Zo(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var S=(t,e,n)=>(Go(t,typeof e!="symbol"?e+"":e,n),n);const h=require("react/jsx-runtime"),m=require("react"),ut=require("react-dom");function Jo(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const ae=Jo(m),hn=new WeakMap;function Xo(){return t=>(hn.has(t)||hn.set(t,{}),hn.get(t))}const pn=(t,e,n,...r)=>{const i=`[${t.get("$environment").name||"webprovisions"}] ${n}`;switch(e){case"info":console.info(i,...r);break;case"warning":console.warn(i,...r);break;case"error":console.error(i,...r);break}},We=t=>{const e=t.container||t;return{info:(n,...r)=>pn(e,"info",n,...r),warn:(n,...r)=>pn(e,"warning",n,...r),error:(n,...r)=>pn(e,"error",n,...r)}},ce=Xo(),Qn=(()=>{let t=0;return()=>++t})(),er=(t,e,n)=>{const r=ce(t).touchQueue.get(e);r&&r.forEach(i=>{i(n,t)})};class Qo{constructor(e,n,r,i){this.key=e,this.factory=n,this.parent=r,this.container=i,this.id=Qn(),this.resolved=!1,this.constructed=!1,this.async=!0}resolve(){if(!this.constructed){const e=this.factory(this.parent,this.container);return this.constructed=!0,this.value=Promise.resolve(e).then(n=>(this.resolved=!0,er(this.container,this.key,n),n))}return this.value}}class es{constructor(e,n,r,i){this.key=e,this.value=n,this.parent=r,this.container=i,this.id=Qn(),this.async=!1,this.resolved=!1,this.constructed=!0,this.resolve=()=>(this.resolved=!0,er(this.container,this.key,this.value),this.value)}}class ts{constructor(e,n,r,i){this.key=e,this.value=n,this.parent=r,this.container=i,this.id=Qn(),this.async=!1,this.resolved=!1,this.constructed=!1,this.resolve=()=>{this.resolved=!0,this.constructed=!0;const o=this.value(this.parent,this.container);return er(this.container,this.key,this.value),o}}}class tr{constructor(e,n,r){this.owner=e,this.name=n,this.parent=r,ce(this).resolvers=new Map,ce(this).touchQueue=new Map,ce(this).children=[]}delete(e){const n=ce(this).resolvers,r=Array.from(n.values()).find(i=>i.id===e);return r?(ce(this).touchQueue.delete(r.key),Promise.resolve(n.delete(r.key))):this.parent?this.parent.delete(e):Promise.resolve(!1)}clear(){const e=ce(this).resolvers,n=Array.from(e.values());return Promise.all(n.map(r=>{if(r.constructed)return Promise.resolve(r.resolve()).then(i=>{if(i!==null&&typeof i=="object"&&typeof i.dispose=="function")return i.dispose.call(i,this,r)})})).then(()=>{n.forEach(r=>this.delete(r.id)),ce(this).children.forEach(r=>r.clear())})}detach(){if(this.parent){const e=ce(this.parent).children,n=e.indexOf(this);n>-1&&(e.splice(n,1),delete this.parent)}}touch(e,n){const r=ce(this).resolvers.get(e);if(r&&r.constructed)Promise.resolve(r.resolve()).then(i=>{n(i,this)});else{const i=ce(this).touchQueue;let o=i.get(e);o||(o=[],i.set(e,o)),o.push(n)}return this.parent&&!r?this.parent.touch(e,n):Promise.resolve()}registerAsync(e,n){const r=ce(this).resolvers.get(e);r&&!r.async&&process.env.NODE_ENV!=="production"&&We(this).warn(`Mismatching resolver type. You are registering an async resolver with a key ('${e}') previously used by a non-async resolver.`);const i=new Qo(e,n,r,this);return ce(this).resolvers.set(e,i),i.id}registerFactory(e,n){const r=ce(this).resolvers.get(e);r&&r.async&&process.env.NODE_ENV!=="production"&&We(this).warn(`Mismatching resolver type. You are registering a non-async resolver with a key ('${e}') previously used by an async resolver.`);const i=new ts(e,n,r,this);return ce(this).resolvers.set(e,i),i.id}register(e,n){const r=ce(this).resolvers.get(e);r&&r.async&&process.env.NODE_ENV!=="production"&&We(this).warn(`Mismatching resolver type. You are registering a non-async resolver with a key ('${e}') previously used by an async resolver.`);const i=new es(e,n,r,this);return ce(this).resolvers.set(e,i),i.id}get(e){const n=ce(this).resolvers.get(e);if(n)return n.async&&process.env.NODE_ENV!=="production"&&We(this).warn(`You are retrieving an async value (with key '${e}') by the non-async function 'container.get(key)'. This will not be supported in future versions. Use 'container.getAsync(key) instead.'`),n.resolve();if(this.parent)return this.parent.get(e)}getAsync(e){const n=ce(this).resolvers.get(e);if(n){if(!n.async)throw process.env.NODE_ENV!=="production"&&We(this).warn(`You are retrieving a non-async value (with key '${e}') by the async function 'container.getAsync(key)'.Use 'container.get(key) instead.'`),"Mismatching resolver type";return n.resolve()}return this.parent?this.parent.getAsync(e):Promise.resolve(void 0)}getMany(...e){const n={};return e.forEach(r=>n[r]=this.get(r)),n}getManyAsync(...e){const n={};return Promise.all(e.map(r=>this.getAsync(r).then(i=>n[r]=i))).then(()=>n)}createChild(e,n){const r=new tr(e,n,this);return ce(this).children.push(r),r}}var It=(t=>(t.Implementation="implementation",t.Widget="widget",t))(It||{}),De=(t=>(t.Pre="pre",t.Post="post",t))(De||{});const ns=(t,e,n,r)=>{try{const i=new e(n,r);return{name:t,invoke:(o,s)=>{let a;return i[o]&&(a=i[o].call(i,s)),Promise.resolve(a)},getInstance:()=>i}}catch(i){if(i.message&&i.message.indexOf("is not a constructor")>=0)return{name:t,invoke:o=>{let s;return o==="initialize"&&(s=e(n,r)),Promise.resolve(s)},getInstance:()=>e};throw i}};function Ir(t,e){return typeof t>"u"?e:t}class rs{constructor(e={}){this.part=e}createCommand(e,n,r){let i;typeof n=="function"?i={scope:It.Widget,stage:De.Post,defaultArgs:void 0,handlerResolver:n}:i={scope:Ir(n.scope,It.Widget),stage:Ir(n.stage,De.Post),defaultArgs:n.defaultArgs,handlerResolver:r};let o=this.part;const s=e.split(".");return s.forEach((a,c)=>{c===s.length-1?o[a]||(o[a]=()=>i):o=this.part[a]=this.part[a]||{}}),this}get(){return this.part}}const Yt=t=>{const e=new rs({});return t(e),e.get()};Yt(t=>{t.createCommand("types.register",{scope:It.Implementation,stage:De.Pre},e=>(n,r)=>{e.container.get("$types")[n]=r}).createCommand("type",{stage:De.Pre},e=>n=>{e.container.register("$type",n)}).createCommand("settings",{stage:De.Pre,defaultArgs:[null]},e=>n=>{e.events.dispatch("settings:change",n,{bubbles:!0}),e.container.register("$settings",n)}).createCommand("plugin",{stage:De.Pre},e=>(n,r,i)=>{const{container:o}=e;let s=null,a=n,c=r;typeof n=="string"&&(s=n,a=r,c=i);const u=l=>{const{transformPluginSettings:d}=e.container.get("$environmentOptions"),f=d?d(c||{},s,e.container,a):r;try{const p=ns(s,a,o,f);o.get("$plugins").push(p),l&&p.invoke("initialize",null)}catch(p){We(e).warn("Error when initializing plugin",p)}};e.container.get("$instance")?u(!0):e.events.subscribeOnce("widget:instance-created",()=>u(!1))}).createCommand("container.register",e=>(n,r)=>{e.container.register(n,r)}).createCommand("container.registerAsync",e=>(n,r)=>{e.container.registerAsync(n,r)}).createCommand("container.registerFactory",e=>(n,r)=>{e.container.registerFactory(n,r)}).createCommand("container.touch",e=>(n,r)=>{e.container.touch(n,r)}).createCommand("csp",{},e=>n=>{e.container.register("csp",n)})});var Wi=(t=>(t.Activating="activating",t.Loading="loading",t.Activated="activated",t.Deactivating="deactivating",t.Deactivated="deactivated",t))(Wi||{});const is=t=>{const e=[];return[(r,i)=>{e.push(t.subscribe(r,i))},()=>{e.forEach(r=>{r()})}]};class Ui{constructor(e,n=[]){this.platform=e,this.rules=n}match(e){return this.rules.every(n=>!(n.id&&n.id!==e.id||n.type&&n.type!==e.type))}ofType(e){return this.rules.push({type:e}),this}withId(e){return this.rules.push({id:e}),this}select(){return new ss(this.platform,this)}}class os{constructor(e,n,r){S(this,"actions");S(this,"subscribe");S(this,"unsubscribe");this.platform=e,this.node=n,this.actions=new nr(e,new Ui(e).withId(n.id),r);const[i,o]=is(this.platform.events);this.subscribe=i,this.unsubscribe=o}properties(e){return e&&this.node.touchProperties(n=>e(n)),this.node.attributes.properties}context(e){return e&&this.subscribe("components:context-changed",(n,{node:r})=>{r===this.node&&e(this.node.attributes.context)}),this.node.attributes.context}layout(e){return e&&this.subscribe("components:layout-changed",(n,{node:r})=>{r===this.node&&e(this.node.attributes.layout)}),this.node.attributes.layout}writeProperties(e,n){this.node.writeProperties(e,n)}writeContext(e,n){this.node.writeProperties(e,n)}writeLayout(e,n){this.node.writeLayout(e,n)}dispose(){this.unsubscribe(),this.actions.dispose()}}class ss{constructor(e,n,r=!0){S(this,"actions");S(this,"removes",[]);this.platform=e,this.target=n,this.clearOnDispose=r,this.actions=new nr(this.platform,this.target)}writeProperties(e,n){this.removes.push(this.platform.write({options:n,attributes:{properties:e},target:this.target,removable:this.clearOnDispose}))}writeContext(e,n){this.removes.push(this.platform.write({options:n,attributes:{context:e},target:this.target,removable:this.clearOnDispose}))}writeLayout(e,n){this.removes.push(this.platform.write({options:n,attributes:{layout:e},target:this.target,removable:this.clearOnDispose}))}dispose(){this.removes.forEach(e=>{e()}),this.actions.dispose()}}const as=(t,e,n)=>{const r=t.concat(),i=(o,s,a)=>{let c=!0;if(r.length){const u=r.shift(),l=(d,f)=>(c=!1,i(d,Object.assign({},s,f),a));return Promise.resolve(u(o,l,a)).then(d=>({...d,cancelled:c}))}return Promise.resolve({data:o,cancelled:!1,options:s})};return i(e,{},n)};class nr{constructor(e,n,r){S(this,"subscriptions",[]);this.platform=e,this.target=n,this.ns=r,this.create=this.create.bind(this)}create(e,n=()=>{}){const r={key:e,fn:n,target:this.target,ns:this.ns};this.platform.actionsState.handlers.push(r);const i=()=>{const o=this.platform.actionsState.handlers.indexOf(r);o>-1&&this.platform.actionsState.handlers.splice(o,1)};return this.subscriptions.push(i),i}dispatch(e,n){const r=this.platform.nodes.all.concat(this.platform.nodes.detached),i={},o=this.platform.actionsState.handlers.filter(s=>s.key===e&&(!s.ns||!this.ns||s.ns===this.ns));return Promise.all(o.map(s=>{const a=r.filter(u=>s.target.match(u)&&this.target.match(u)),c=this.platform.actionsState.watchers.filter(u=>u.key===e&&(!u.ns||!this.ns||u.ns===this.ns)&&a.some(l=>u.target.match(l))).map(u=>u.fn);return Promise.all(a.map(u=>{const l=new os(this.platform,u,this.ns);return as(c,n,l).then(d=>{const{data:f={},options:p,cancelled:g}=d;return Promise.resolve(g?{}:s.fn(f,p,l)).then(v=>{i[u.id]=v})})}))})).then(()=>i)}watch(e,n){let r=e,i=this.ns;const o=e.split(".");o.length>1&&(i=o[0],r=o.splice(1).join("."));const s={fn:n,target:this.target,key:r,ns:i};this.platform.actionsState.watchers.push(s);const a=()=>{const c=this.platform.actionsState.watchers.indexOf(s);c>-1&&this.platform.actionsState.watchers.splice(c,1)};return this.subscriptions.push(a),a}dispose(){this.subscriptions.forEach(e=>e())}}Yt(t=>{t.createCommand("components",e=>n=>{e.events.subscribeOnce("components:platform-created",(r,{platform:i})=>{n.handlers&&n.handlers.forEach(([o,s])=>{i.addComponentHandler(o,s)})})})});function Vt(t){const e={};if(typeof t=="number"||typeof t=="string")return t;for(const n in t)if(t.hasOwnProperty(n)){const r=t[n],i=n.substring(0,1).toLowerCase()+n.substring(1);if(Object.prototype.toString.call(r)==="[object Array]"){e[i]=[];for(let o=0,s=r.length;o<s;o++)e[i].push(Vt(r[o]))}else r!==null&&typeof r=="object"?e[i]=Vt(r):e[i]=r}return e}const wt=(t,e,...n)=>typeof e=="string"?t(`[humany] ${e}`,...n):t(e,...n),Fe=class{constructor(){S(this,"keys",[]);S(this,"log",(e,...n)=>this.lookup(e,()=>Fe.log(...n)));S(this,"warn",(e,...n)=>this.lookup(e,()=>Fe.warn(...n)));S(this,"error",(e,...n)=>this.lookup(e,()=>Fe.error(...n)));S(this,"info",(e,...n)=>this.lookup(e,()=>Fe.info(...n)))}lookup(e,n){this.keys.indexOf(e)===-1&&(this.keys.push(e),n())}};let se=Fe;S(se,"log",(...e)=>wt(console.log,...e)),S(se,"warn",(...e)=>wt(console.warn,...e)),S(se,"error",(...e)=>wt(console.error,...e)),S(se,"info",(...e)=>wt(console.info,...e));const Fi=t=>{let e={},n,r;if(typeof t!="object"||t===null)return t;e=Array.isArray(t)?[]:{};for(r in t)n=t[r],e[r]=typeof n=="object"&&n!==null?Fi(n):n;return e};function Vr(t){let e=0;if(t.length===0)return e.toString();for(let n=0;n<t.length;n++){const r=t.charCodeAt(n);e=(e<<5)-e+r,e=e&e}return e.toString()}function cs(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/\s+/g,"-").toLowerCase()}class ls{constructor(e,n){S(this,"tasks",[]);S(this,"current",Promise.resolve());this.lockWarningTime=e,this.lockErrorTime=n,this.next=this.next.bind(this)}add(e,n,r,i){this.tasks.push({task:e,resolve:n,reject:r,done:i}),this.next()}next(){this.current=this.current.then(()=>{const e=this.tasks.shift();if(e){let n;const r=setTimeout(()=>{process.env.NODE_ENV!=="production"&&se.warn(`A lock has exceeded ${this.lockWarningTime} ms. Waiting additional ${this.lockErrorTime} ms before rejecting the task.`,e),n=setTimeout(()=>{e.reject("lock timeout exceeded")},this.lockErrorTime)},this.lockWarningTime),i=Promise.resolve(e.task()).then(o=>(clearTimeout(r),clearTimeout(n),o));return Promise.resolve(i).then(this.next).then(()=>i.then(o=>{e.done(),e.resolve(o)})).catch(o=>(e.done(),e.reject(o),this.next()))}return Promise.resolve()})}}const Et=new WeakMap;function gt(t,e=5e3,n=1e3){return Et.has(t)||Et.set(t,new ls(e,n)),r=>new Promise((i,o)=>{const s=Et.get(t);s.add(r,i,o,()=>{s.tasks.length||Et.delete(t)})})}const _e=()=>Math.floor((1+Math.random())*65536).toString(16).substring(1);function Oe(){return _e()+_e()+"-"+_e()+"-"+_e()+"-"+_e()+"-"+_e()+_e()+_e()}function us(t){const e=[];return t.forEach(n=>{e.indexOf(n)===-1&&e.push(n)}),e}function Ln(t="",e=""){const n=t.split(" ").concat(e.split(" "));return us(n).join(" ").trim()}function ds(t,e){if(t){if(typeof e=="string")return e;if(Array.isArray(e)){let n="";return e.forEach(r=>n=Ln(n,r)),n}}}function ie(...t){let e="";return t.length&&t.forEach(n=>{typeof n=="string"?e=Ln(e,n):Array.isArray(n)?e=Ln(e,ds(...n)):typeof n<"u"&&n!==null&&process.env.NODE_ENV!=="production"&&se.warn("appendClassNames: arguments either haveto be a string or [boolean, ...string[]]. Passed args:",...t)}),e}class Hr{constructor(e,n){S(this,"id");S(this,"type");S(this,"name");S(this,"parent");S(this,"tags",[]);S(this,"children",{});S(this,"changesets",[]);S(this,"attributes");S(this,"mountCount",0);this.events=e,this.id=Oe(),this.type=n,this.attributes={context:{},properties:{},layout:{},tags:[]},this.writeLayout({size:"full",indent:0})}mount(e,n){let r=e.get("mounted-nodes");return r||(r=new Map,e.register("mounted-nodes",r)),r.has(this)?(process.env.NODE_ENV!=="production"&&se.error("Trying to mount an already mounted component node.",this),()=>{}):(this.events.dispatch("components:node-mounted",{node:this}),this.mountCount===0&&(this.mountCount=this.mountCount+1,this.events.dispatch("components:node-enter",{node:this})),()=>{r.delete(this),this.events.dispatch("components:node-unmounted",{node:this}),this.mountCount=this.mountCount-1,this.mountCount===0&&this.events.dispatch("components:node-exit",{node:this})})}appendChild(e,n="default"){if(e.parent){if(e.parent===this)return;e.parent.removeChild(e)}e.parent=this,this.children[n]||(this.children[n]=[]),this.children[n].push(e),this.events.dispatch("components:node-appended",{node:e})}prependChild(e,n="default"){if(e.parent){if(e.parent===this)return;e.parent.removeChild(e)}e.parent=this,this.children[n]||(this.children[n]=[]),this.children[n].unshift(e),this.events.dispatch("components:node-appended",{node:e})}touchProperties(e,n={},r){const o=[{properties:e},n];return this.changesets.push(o),this.events.dispatch("components:set-properties",{node:this}),()=>{if(r){const s=this.changesets.indexOf(o);s>-1&&(this.changesets.splice(s,1),this.events.dispatch("components:set-properties",{node:this}))}}}writeProperties(e,n={},r){const o=[{properties:e},n];return this.changesets.push(o),this.events.dispatch("components:set-properties",{node:this}),()=>{if(r){const s=this.changesets.indexOf(o);s>-1&&(this.changesets.splice(s,1),this.events.dispatch("components:set-properties",{node:this}))}}}writeLayout(e,n={},r){const o=[{layout:e},n];return this.changesets.push(o),this.events.dispatch("components:set-layout",{node:this}),()=>{if(!r)return;const s=this.changesets.indexOf(o);s>-1&&(this.changesets.splice(s,1),this.events.dispatch("components:set-layout",{node:this}))}}writeContext(e,n={},r){const o=[{context:e},n];return this.changesets.push(o),this.events.dispatch("components:set-context",{node:this}),()=>{if(!r)return;const s=this.changesets.indexOf(o);s>-1&&(this.changesets.splice(s,1),this.events.dispatch("components:set-context",{node:this}))}}getChildren(e="default"){const n=this.children[e]||[];return n.reduce((r,i,o)=>{const{order:s=o}=i.attributes.layout;return r[s]?r.splice(s,0,i):r[s]=i,r},Array(n.length))}remove(){this.parent&&this.parent.removeChild(this)}removeChild(e){Object.keys(this.children).forEach(n=>{const r=this.children[n],i=r.indexOf(e);i>-1&&(r.splice(i,1),this.events.dispatch("components:node-removed",{node:e,parentNode:this}))}),delete e.parent}}const qi=(t,e,n)=>{for(let r=0,i=t.length;r<i&&n(t[r])!==!0;r++){const o=e[t[r].id]||"default",s=t[r].getChildren(o);qi(s,e,n)}},rr=(t,e,n)=>{if(n(t)!==!0){const r=e[t.id]||"default",i=t.children[r];qi(i,e,n)}},mn=(t,e)=>{const n=[];return rr(t,e,r=>{n.push(r)}),n},fs=(t,e,n)=>{let r;return rr(t,e,i=>{if(n(i))return r=i,!0}),r};class hs{constructor(e,n,r){S(this,"all",[]);S(this,"visible",[]);S(this,"detached",[]);this.root=e,this.switches=n,r.subscribe("components:node-appended",(i,o)=>{this.all.push(o.node),this.visible=mn(e,n)}),r.subscribe("components:node-removed",(i,o)=>{let s=this.all.indexOf(o.node);s>-1&&this.all.splice(s,1),s=this.visible.indexOf(o.node),s>-1&&this.visible.splice(s,1),this.visible=mn(e,n)}),r.subscribe("components:node-switched",(i,o)=>{this.visible=mn(e,n)})}query(e={}){const n=[];return rr(this.root,this.switches,r=>{Object.keys(e).every(o=>e[o]===r[o])&&n.push(r)}),n}get(e){return fs(this.root,this.switches,n=>n.id===e)||this.detached.find(n=>n.id===e)}}class ps{constructor(){S(this,"handlers",new Map)}add(e,n){this.handlers.set(e,n)}get(e){return this.handlers.get(e)}}const ms=t=>{let e=t,n=0;for(;e.parent;)n=n+1,e=e.parent;return n},vs=t=>t.map(([n,r])=>[ms(n),n,r]).sort(([n],[r])=>n-r).map(([,n,r])=>[n,r]),vn=t=>t instanceof Date?!1:t&&typeof t=="object"&&!Array.isArray(t),Re=(t,...e)=>{if(!e.length)return t;const n=e.shift();if(vn(t)&&vn(n))for(const r in n)vn(n[r])?(t[r]||Object.assign(t,{[r]:{}}),Re(t[r],n[r])):Object.assign(t,{[r]:n[r]});return Re(t,...e)},gs=(t,e)=>!t||t==="all"?!0:t.some(n=>e.indexOf(n)>-1),ys=(t,e)=>{let n=[],r=[],i;const o=()=>{process.env.NODE_ENV!=="production"&&console.time("state-processor.flush");const a=new Map,c=vs(n.map((l,d)=>[l,r[d]])),u=(l,d)=>{var j;const f=a.get(l)||{},p=d.context&&!f.context,g=d.properties&&!f.properties,v=d.layout&&!f.layout;a.set(l,{context:f.context||p,properties:f.properties||g,layout:f.layout||v}),g&&(l.attributes.properties={}),v&&(l.attributes.layout={}),p&&(l.attributes.context=Re({},(j=l.parent)==null?void 0:j.attributes.context));const y=[],k=[],N=[];if(l.changesets.forEach(T=>{const[x,V]=T;gs(V.breakpoints,t.breakpoints)&&(g&&(typeof x.properties=="function"?y.push(x.properties):Re(l.attributes.properties,x.properties)),v&&(typeof x.layout=="function"?k.push(x.layout):Re(l.attributes.layout,x.layout)),p&&(typeof x.context=="function"?N.push(x.context):Re(l.attributes.context,x.context)))}),y.forEach(T=>{Re(l.attributes.properties,T(l.attributes.properties))}),k.forEach(T=>{Re(l.attributes.layout,T(l.attributes.layout))}),N.forEach(T=>{Re(l.attributes.context,T(l.attributes.context))}),p||d.recursive){const T=t.getBranch(l),x=d.recursive?d:{context:!!p};l.getChildren(T).forEach(V=>{u(V,x)})}};process.env.NODE_ENV!=="production"&&console.timeEnd("state-processor.flush"),c.forEach(([l,d])=>{u(l,d)}),n=[],r=[],e(a)},s=()=>{clearTimeout(i),i=setTimeout(o,0)};return(a,c)=>{const u=n.indexOf(a);if(u>-1){const l=r[u];return c.context&&(l.context=!0),c.properties&&(l.properties=!0),c.layout&&(l.layout=!0),c.recursive&&(l.recursive=!0),s()}return n.push(a),r.push(c),s()}};class Yi{constructor(e,n={}){S(this,"events");S(this,"breakpoints",[]);S(this,"nodes");S(this,"actionsState",{handlers:[],watchers:[]});S(this,"switches",{});S(this,"changesets",[]);S(this,"subscriptions",[]);S(this,"processNode");S(this,"customComponentHandler",new ps);this.providers=n,this.events=e.events.createChild(this);const r=new Hr(this.events,"root");r.name=`root-${e.name}`,this.nodes=new hs(r,this.switches,this.events);const i=this.processNode=ys(this,o=>{const s=Array.from(o.keys());process.env.NODE_ENV!=="production"&&console.info(`STATE PROCESSOR: ${s.length} node(s) processed:
2
2
  ${s.map(a=>`${a.name||"<no name>"} (${a.id})
3
- `)}`),s.forEach(a=>{const c=o.get(a);a.parent&&a.parent.type==="root"&&this.events.dispatch("components:root-children-changed",{node:a}),c!=null&&c.context&&this.events.dispatch("components:context-changed",{node:a}),c!=null&&c.properties&&this.events.dispatch("components:properties-changed",{node:a}),c!=null&&c.layout&&this.events.dispatch("components:layout-changed",{node:a})}),this.events.dispatch("components:component-model-initialized",{},{bubbles:!0})});Promise.all(Object.keys(n).map(o=>n[o].load(this))),this.subscriptions.push(this.events.subscribe("components:node-appended",(o,s)=>{const{node:a}=s;this.changesets.forEach(c=>{const{changeset:u,target:l,removes:d}=c,[f,p]=u;l.match(s.node)&&(f.properties&&d.push(a.writeProperties(f.properties,p)),f.context&&d.push(a.writeContext(f.context,p)),f.layout&&d.push(a.writeLayout(f.layout,p)))})})),this.subscriptions.push(this.events.subscribe("components:node-appended",(o,s)=>{i(s.node,{properties:!0,context:!0})})),this.subscriptions.push(this.events.subscribe("components:set-properties",(o,s)=>{i(s.node,{properties:!0})})),this.subscriptions.push(this.events.subscribe("components:set-context",(o,s)=>{i(s.node,{properties:!0,context:!0})})),this.subscriptions.push(this.events.subscribe("components:set-indent",(o,s)=>{i(s.node,{layout:!0})})),this.subscriptions.push(this.events.subscribe("components:set-layout",(o,s)=>{i(s.node,{layout:!0})})),this.subscriptions.push(this.events.subscribe("components:node-switched",(o,{node:s,branch:a})=>{i(s,{layout:!0,recursive:!0,properties:!0,context:!0})})),this.subscriptions.push(this.events.subscribe("components:node-removed",(o,{parentNode:s})=>{i(s,{properties:!0})})),this.events.parent&&this.events.parent.dispatch("components:platform-created",{platform:this})}static getInstance(e){return e.getAsync("components")}addBreakpoint(e){this.breakpoints.indexOf(e)===-1&&(this.breakpoints.push(e),this.processNode(this.nodes.root,{context:!0,properties:!0,layout:!0,recursive:!0}))}removeBreakpoint(e){const n=this.breakpoints.indexOf(e);n>-1&&(this.breakpoints.splice(n,1),this.processNode(this.nodes.root,{context:!0,properties:!0,layout:!0,recursive:!0}))}setSwitch(e,n){this.switches[e.id]=n,this.events.dispatch("components:node-switched",{node:e,branch:n})}getBranch(e){return this.switches[e.id]}createNode(e,n={}){const r=new Fr(this.events,e);return n.detached&&this.nodes.detached.push(r),r}components(){return new rr(this)}actions(e,n){return new ir(this,e,n)}write(e){const{provider:n,target:r,attributes:i,options:o={},removable:s}=e,a=e.key||Ee(),u={changeset:[i,o],target:r,removes:[]};if(n){const l=this.providers[n];l.write(a,r,i,o),u.removes.push(()=>{l.remove(a)})}return this.changesets.push(u),this.nodes.all.forEach(l=>{if(r.match(l)){let d=()=>{};i.properties&&(d=l.writeProperties(i.properties,o,s)),i.context&&(d=l.writeContext(i.context,o,s)),i.layout&&(d=l.writeContext(i.layout,o,s)),u.removes.push(d)}}),()=>{if(s){u.removes.forEach(d=>d());const l=this.changesets.indexOf(u);l>-1&&this.changesets.splice(l,1)}}}addComponentHandler(e,n){this.customComponentHandler.add(e,n)}getComponentHandler(e){return this.customComponentHandler.get(e)}dispose(){this.subscriptions.forEach(e=>e())}}var ar=(t=>(t.open="open",t.closed="closed",t.hidden="hidden",t))(ar||{}),pe=(t=>(t.Cookie="cookie",t.Local="local",t.Session="session",t))(pe||{}),Kt=(t=>(t.Tenant="tenant",t.Implementation="implementation",t.Widget="widget",t))(Kt||{}),de=(t=>(t.Necessary="necessary",t.Functional="functional",t.Analytical="analytical",t.Marketing="marketing",t))(de||{});const rt=(t,e,n,r={})=>qr(t,n).then(i=>(process.env.NODE_ENV!=="production"&&i&&se.warn(`createStorageWriter: Attempted to create storage writer using unallowed category.
3
+ `)}`),s.forEach(a=>{const c=o.get(a);a.parent&&a.parent.type==="root"&&this.events.dispatch("components:root-children-changed",{node:a}),c!=null&&c.context&&this.events.dispatch("components:context-changed",{node:a}),c!=null&&c.properties&&this.events.dispatch("components:properties-changed",{node:a}),c!=null&&c.layout&&this.events.dispatch("components:layout-changed",{node:a})}),this.events.dispatch("components:component-model-initialized",{},{bubbles:!0})});Promise.all(Object.keys(n).map(o=>n[o].load(this))),this.subscriptions.push(this.events.subscribe("components:node-appended",(o,s)=>{const{node:a}=s;this.changesets.forEach(c=>{const{changeset:u,target:l,removes:d}=c,[f,p]=u;l.match(s.node)&&(f.properties&&d.push(a.writeProperties(f.properties,p)),f.context&&d.push(a.writeContext(f.context,p)),f.layout&&d.push(a.writeLayout(f.layout,p)))})})),this.subscriptions.push(this.events.subscribe("components:node-appended",(o,s)=>{i(s.node,{properties:!0,context:!0})})),this.subscriptions.push(this.events.subscribe("components:set-properties",(o,s)=>{i(s.node,{properties:!0})})),this.subscriptions.push(this.events.subscribe("components:set-context",(o,s)=>{i(s.node,{properties:!0,context:!0})})),this.subscriptions.push(this.events.subscribe("components:set-indent",(o,s)=>{i(s.node,{layout:!0})})),this.subscriptions.push(this.events.subscribe("components:set-layout",(o,s)=>{i(s.node,{layout:!0})})),this.subscriptions.push(this.events.subscribe("components:node-switched",(o,{node:s,branch:a})=>{i(s,{layout:!0,recursive:!0,properties:!0,context:!0})})),this.subscriptions.push(this.events.subscribe("components:node-removed",(o,{parentNode:s})=>{i(s,{properties:!0})})),this.events.parent&&this.events.parent.dispatch("components:platform-created",{platform:this})}static getInstance(e){return e.getAsync("components")}addBreakpoint(e){this.breakpoints.indexOf(e)===-1&&(this.breakpoints.push(e),this.processNode(this.nodes.root,{context:!0,properties:!0,layout:!0,recursive:!0}))}removeBreakpoint(e){const n=this.breakpoints.indexOf(e);n>-1&&(this.breakpoints.splice(n,1),this.processNode(this.nodes.root,{context:!0,properties:!0,layout:!0,recursive:!0}))}setSwitch(e,n){this.switches[e.id]=n,this.events.dispatch("components:node-switched",{node:e,branch:n})}getBranch(e){return this.switches[e.id]}createNode(e,n={}){const r=new Hr(this.events,e);return n.detached&&this.nodes.detached.push(r),r}components(){return new Ui(this)}actions(e,n){return new nr(this,e,n)}write(e){const{provider:n,target:r,attributes:i,options:o={},removable:s}=e,a=e.key||Oe(),u={changeset:[i,o],target:r,removes:[]};if(n){const l=this.providers[n];l.write(a,r,i,o),u.removes.push(()=>{l.remove(a)})}return this.changesets.push(u),this.nodes.all.forEach(l=>{if(r.match(l)){let d=()=>{};i.properties&&(d=l.writeProperties(i.properties,o,s)),i.context&&(d=l.writeContext(i.context,o,s)),i.layout&&(d=l.writeContext(i.layout,o,s)),u.removes.push(d)}}),()=>{if(s){u.removes.forEach(d=>d());const l=this.changesets.indexOf(u);l>-1&&this.changesets.splice(l,1)}}}addComponentHandler(e,n){this.customComponentHandler.add(e,n)}getComponentHandler(e){return this.customComponentHandler.get(e)}dispose(){this.subscriptions.forEach(e=>e())}}var Ki=(t=>(t.open="open",t.closed="closed",t.hidden="hidden",t))(Ki||{}),pe=(t=>(t.Cookie="cookie",t.Local="local",t.Session="session",t))(pe||{}),Kt=(t=>(t.Tenant="tenant",t.Implementation="implementation",t.Widget="widget",t))(Kt||{}),de=(t=>(t.Necessary="necessary",t.Functional="functional",t.Analytical="analytical",t.Marketing="marketing",t))(de||{});const nt=(t,e,n,r={})=>zr(t,n).then(i=>(process.env.NODE_ENV!=="production"&&i&&se.warn(`createStorageWriter: Attempted to create storage writer using unallowed category.
4
4
  Key: ${e}
5
5
  Category: ${JSON.stringify(n)}
6
- Options: ${JSON.stringify(r)}`),o=>(lr(t),qr(t,n).then(s=>{if(s){process.env.NODE_ENV!=="production"&&se.warn(`storageWriter: Attempted to write to storage using unallowed category.
6
+ Options: ${JSON.stringify(r)}`),o=>(or(t),zr(t,n).then(s=>{if(s){process.env.NODE_ENV!=="production"&&se.warn(`storageWriter: Attempted to write to storage using unallowed category.
7
7
  Key: ${e}
8
8
  Category: ${JSON.stringify(n)}
9
9
  Value: ${JSON.stringify(o)}
10
- Options: ${JSON.stringify(r)}`);return}const{scope:a=Kt.Widget,medium:c=pe.Session,duration:u}=r,l=Es();return l[a][e]=Qi(o,n,u),c===pe.Cookie?$s(t,l):Ts(t,c,l)})))),Pe=(t,e,n=pe.Session)=>(lr(t),typeof e>"u"?(process.env.NODE_ENV!=="production"&&se.warn("readStorage: Undefined key passed when reading storage. ",e,n),Promise.resolve(void 0)):n===pe.Cookie?Os(t).then(r=>In(r,e)):Ns(t,n).then(r=>In(r,e))),qe=t=>!!Object.entries(t).filter(([e,n])=>typeof n<"u").length,yn=t=>Object.entries(t).filter(([e,n])=>typeof n<"u").forEach(([e,{value:n}])=>{typeof n>"u"&&delete t[e]}),Ji=(t,e)=>{const n={tenant:{...t.tenant,...e.tenant},implementation:{...t.implementation,...e.implementation},widget:{...t.widget,...e.widget}};return yn(n.tenant),yn(n.implementation),yn(n.widget),n},ws=t=>Object.entries(t).reduce((n,r)=>{const[i,o]=r;return Object.entries(o).forEach(s=>{const[a,{expiration:c}]=s;c&&n.push(c)}),n},[]).slice().sort((n,r)=>new Date(r).valueOf()-new Date(n).valueOf()).shift()||ur(),Zt=t=>{const{name:e,implementation:{name:n,tenant:r}}=t.get("$widget");return[`humany_${r}`,`humany_${Ur(r+n)}`,`humany_${Ur(r+n+e)}`]},bn=t=>{const e=new RegExp(`(?:^|;)\\s?${t}=(.*?)(?:;|$)`,"i"),n=document.cookie.match(e);return n&&n[1]&&JSON.parse(n[1])||void 0},xn=(t,e,n)=>{const r=`${t}=${JSON.stringify(e).trim()}`,i=`expires=${new Date(n).toUTCString()}`,o="path=/",s="SameSite=None;Secure";return document.cookie=`${r}; ${i}; ${o}; ${s}`},cr=t=>{const[e,n,r]=Zt(t),i=bn(e)||{},o=bn(n)||{},s=bn(r)||{};return{tenant:i,implementation:o,widget:s}},Xi=(t,e)=>{const n=cr(t),r=Ji(n,e),[i,o,s]=Zt(t),{tenant:a,implementation:c,widget:u}=r,l=ws(e),d=ur({days:-1});xn(i,a,qe(a)?l:d),xn(o,c,qe(c)?l:d),xn(s,u,qe(u)?l:d)},Ht=(t,e)=>{const[n,r,i]=Zt(t),o=e.getItem(n)||"{}",s=e.getItem(r)||"{}",a=e.getItem(i)||"{}";return{tenant:JSON.parse(o),implementation:JSON.parse(s),widget:JSON.parse(a)}},Mn=(t,e,n)=>{const r=Ht(t,e),i=Ji(r,n),[o,s,a]=Zt(t),{tenant:c,implementation:u,widget:l}=i;qe(c)?e.setItem(o,JSON.stringify(c)):e.removeItem(o),qe(u)?e.setItem(s,JSON.stringify(u)):e.removeItem(s),qe(l)?e.setItem(a,JSON.stringify(l)):e.removeItem(a)},Es=()=>({tenant:{},implementation:{},widget:{}}),Cs=t=>t?!!t&&new Date>new Date(t):!1,In=(t,e)=>{const n=t.widget[e]||t.implementation[e]||t.tenant[e];return n==null?void 0:n.value},Qi=(t,e,n)=>n?{value:t,category:e,expiration:typeof n=="object"?ur(n):n}:{value:t,category:e},Ss=(t,e)=>{const n=or(t);return Object.entries(n).forEach(([r,i])=>{Object.entries(i).forEach(([o,s])=>{const{expiration:a,category:c}=s;(Cs(a)||ks(e,c))&&(i[o]=Qi(void 0,c,a))})}),n},qr=(t,e)=>Pe(t,"storagePolicy",pe.Cookie).then((n=[de.Necessary])=>!!e&&n.indexOf(e)===-1),ks=(t=[de.Necessary],e)=>!!e&&t.indexOf(e)===-1,lr=t=>{const e=cr(t),n=Ht(t,window.localStorage),r=Ht(t,sessionStorage),i=In(e,"storagePolicy"),[o,s,a]=[e,n,r].map(c=>Ss(c,i));Xi(t,o),Mn(t,window.localStorage,s),Mn(t,window.sessionStorage,a)},ur=(t={days:30})=>{const{days:e=0,hours:n=0,minutes:r=0,seconds:i=0}=t,o=new Date;return o.setTime(o.getTime()+n*60*60*1e3),o.setTime(o.getTime()+e*24*60*60*1e3),o.setTime(o.getTime()+r*60*1e3),o.setTime(o.getTime()+i*1e3),o.toISOString()},Os=t=>nt(document)(()=>cr(t)),$s=(t,e)=>nt(document)(()=>Xi(t,e)),Ns=(t,e)=>{const n=e===pe.Local?window.localStorage:window.sessionStorage;return nt(n)(()=>Ht(t,n))},Ts=(t,e,n)=>{const r=e===pe.Local?window.localStorage:window.sessionStorage;return nt(r)(()=>Mn(t,r,n))};Yt(t=>{t.createCommand("storage",e=>(n={})=>{const{consent:r}=n;if(typeof r<"u"){if(typeof r!="number"&&typeof r!="string"&&!Array.isArray(r)){process.env.NODE_ENV!=="production"&&se.warn(`storagePolicyConfigurationApi: passed consent is not valid. Consent either has to be a number, a string, an array of strings or an array of numbers.
10
+ Options: ${JSON.stringify(r)}`);return}const{scope:a=Kt.Widget,medium:c=pe.Session,duration:u}=r,l=xs();return l[a][e]=Ji(o,n,u),c===pe.Cookie?ks(t,l):$s(t,c,l)})))),Pe=(t,e,n=pe.Session)=>(or(t),typeof e>"u"?(process.env.NODE_ENV!=="production"&&se.warn("readStorage: Undefined key passed when reading storage. ",e,n),Promise.resolve(void 0)):n===pe.Cookie?Ss(t).then(r=>Dn(r,e)):Os(t,n).then(r=>Dn(r,e))),qe=t=>!!Object.entries(t).filter(([e,n])=>typeof n<"u").length,gn=t=>Object.entries(t).filter(([e,n])=>typeof n<"u").forEach(([e,{value:n}])=>{typeof n>"u"&&delete t[e]}),Zi=(t,e)=>{const n={tenant:{...t.tenant,...e.tenant},implementation:{...t.implementation,...e.implementation},widget:{...t.widget,...e.widget}};return gn(n.tenant),gn(n.implementation),gn(n.widget),n},bs=t=>Object.entries(t).reduce((n,r)=>{const[i,o]=r;return Object.entries(o).forEach(s=>{const[a,{expiration:c}]=s;c&&n.push(c)}),n},[]).slice().sort((n,r)=>new Date(r).valueOf()-new Date(n).valueOf()).shift()||sr(),Zt=t=>{const{name:e,implementation:{name:n,tenant:r}}=t.get("$widget");return[`humany_${r}`,`humany_${Vr(r+n)}`,`humany_${Vr(r+n+e)}`]},yn=t=>{const e=new RegExp(`(?:^|;)\\s?${t}=(.*?)(?:;|$)`,"i"),n=document.cookie.match(e);return n&&n[1]&&JSON.parse(n[1])||void 0},bn=(t,e,n)=>{const r=`${t}=${JSON.stringify(e).trim()}`,i=`expires=${new Date(n).toUTCString()}`,o="path=/",s="SameSite=None;Secure";return document.cookie=`${r}; ${i}; ${o}; ${s}`},ir=t=>{const[e,n,r]=Zt(t),i=yn(e)||{},o=yn(n)||{},s=yn(r)||{};return{tenant:i,implementation:o,widget:s}},Gi=(t,e)=>{const n=ir(t),r=Zi(n,e),[i,o,s]=Zt(t),{tenant:a,implementation:c,widget:u}=r,l=bs(e),d=sr({days:-1});bn(i,a,qe(a)?l:d),bn(o,c,qe(c)?l:d),bn(s,u,qe(u)?l:d)},Ht=(t,e)=>{const[n,r,i]=Zt(t),o=e.getItem(n)||"{}",s=e.getItem(r)||"{}",a=e.getItem(i)||"{}";return{tenant:JSON.parse(o),implementation:JSON.parse(s),widget:JSON.parse(a)}},Mn=(t,e,n)=>{const r=Ht(t,e),i=Zi(r,n),[o,s,a]=Zt(t),{tenant:c,implementation:u,widget:l}=i;qe(c)?e.setItem(o,JSON.stringify(c)):e.removeItem(o),qe(u)?e.setItem(s,JSON.stringify(u)):e.removeItem(s),qe(l)?e.setItem(a,JSON.stringify(l)):e.removeItem(a)},xs=()=>({tenant:{},implementation:{},widget:{}}),ws=t=>t?!!t&&new Date>new Date(t):!1,Dn=(t,e)=>{const n=t.widget[e]||t.implementation[e]||t.tenant[e];return n==null?void 0:n.value},Ji=(t,e,n)=>n?{value:t,category:e,expiration:typeof n=="object"?sr(n):n}:{value:t,category:e},Es=(t,e)=>{const n=Fi(t);return Object.entries(n).forEach(([r,i])=>{Object.entries(i).forEach(([o,s])=>{const{expiration:a,category:c}=s;(ws(a)||Cs(e,c))&&(i[o]=Ji(void 0,c,a))})}),n},zr=(t,e)=>Pe(t,"storagePolicy",pe.Cookie).then((n=[de.Necessary])=>!!e&&n.indexOf(e)===-1),Cs=(t=[de.Necessary],e)=>!!e&&t.indexOf(e)===-1,or=t=>{const e=ir(t),n=Ht(t,window.localStorage),r=Ht(t,sessionStorage),i=Dn(e,"storagePolicy"),[o,s,a]=[e,n,r].map(c=>Es(c,i));Gi(t,o),Mn(t,window.localStorage,s),Mn(t,window.sessionStorage,a)},sr=(t={days:30})=>{const{days:e=0,hours:n=0,minutes:r=0,seconds:i=0}=t,o=new Date;return o.setTime(o.getTime()+n*60*60*1e3),o.setTime(o.getTime()+e*24*60*60*1e3),o.setTime(o.getTime()+r*60*1e3),o.setTime(o.getTime()+i*1e3),o.toISOString()},Ss=t=>gt(document)(()=>ir(t)),ks=(t,e)=>gt(document)(()=>Gi(t,e)),Os=(t,e)=>{const n=e===pe.Local?window.localStorage:window.sessionStorage;return gt(n)(()=>Ht(t,n))},$s=(t,e,n)=>{const r=e===pe.Local?window.localStorage:window.sessionStorage;return gt(r)(()=>Mn(t,r,n))};Yt(t=>{t.createCommand("storage",e=>(n={})=>{const{consent:r}=n;if(typeof r<"u"){if(typeof r!="number"&&typeof r!="string"&&!Array.isArray(r)){process.env.NODE_ENV!=="production"&&se.warn(`storagePolicyConfigurationApi: passed consent is not valid. Consent either has to be a number, a string, an array of strings or an array of numbers.
11
11
  Passed consent: ${JSON.stringify(r)}`);return}if(Array.isArray(r)&&!r.every(o=>typeof o=="number"||typeof o=="string")){process.env.NODE_ENV!=="production"&&se.warn(`storagePolicyConfigurationApi: passed consent is not valid. Consent either has to be a number, a string, an array of strings or an array of numbers.
12
12
  Passed consent: ${JSON.stringify(r)}`);return}const i=[de.Necessary,de.Functional,de.Analytical,de.Marketing].filter((o,s,a)=>typeof r=="number"?r>s:typeof r=="string"?a.indexOf(r)+1>s:Array.isArray(r)?r.findIndex(c=>c===s+1||c===o)>-1:!0);return i.indexOf(de.Necessary)===-1&&(process.env.NODE_ENV!=="production"&&se.warn(`storagePolicyConfigurationApi: passed consent does not include category: '${de.Necessary}'. Consent has to atleast include the '${de.Necessary}' category.
13
- Passed consent: ${JSON.stringify(r)}`),i.unshift(de.Necessary)),rt(e.container,"storagePolicy",de.Necessary,{medium:pe.Cookie,scope:Kt.Tenant,duration:{days:365}}).then(o=>o(i)).then(()=>{lr(e.container),e.events.dispatch("storage:policy-changed",i)})}})});function Rs(t,e){return{title:t,actionKey:e,name:"submit",component:"Submit",type:"submit",evaluate:!0,value:t}}function ke(t,e){return t.hints&&t.hints.indexOf(e)>-1}function Ps(t){return t.constraints&&t.constraints.verifyValue}function js(t){return t.constraints&&t.constraints.required}function As(t){const e=t.hints.filter(n=>n.indexOf("=")>-1&&n.split("=")[0]==="linkText")[0]||null;return e?e.split("=")[1]:null}function _s(t){const e=t.hints.filter(n=>n.indexOf("=")>-1&&n.split("=")[0]==="url")[0]||null;return e?e.split("=")[1]:null}function Ls(t){const e=t.hints.filter(n=>n.indexOf("=")>-1&&n.split("=")[0]==="availableHours")[0]||null;return e?e.split("=")[1]||[]:[]}function Ds(t){const e=t.hints.filter(n=>n.indexOf("=")>-1&&n.split("=")[0]==="minuteInterval")[0]||null;return e?e.split("=")[1]||[]:[]}function Yr(t){return t.components?"Fieldset":ke(t,"fullname")?"Name":ke(t,"address")?"Address":ke(t,"dropdown")?"DropDownList":ke(t,"checkbox")?"CheckboxList":ke(t,"radio")?"RadioButtonList":ke(t,"email")?"Email":ke(t,"agreement")?"Agreement":ke(t,"phonenumber")?"PhoneNumber":ke(t,"date")?"Date":t.type==="text/paragraph"?"Textarea":t.type==="text/number"?"Number":t.type==="text/password"?"Password":t.type==="hidden"?"Hidden":t.type==="file"?"File":t.type==="hwebsite"?"AntiSpam":"Text"}function Ms(t){if(t.hints)for(let e=0;e<t.hints.length;e++){const n=t.hints[e];if(n.substr(0,12)==="placeholder=")return n.substr(12)}}function Is(t){return t.children||t.components||t.groups?"object":"string"}class dr{constructor(e,n,r,i=r.getErrorMessage,o=r.getGeneralErrors){S(this,"children",[]);S(this,"isValid");S(this,"schema");S(this,"id");if(this.name=e,this.source=n,this.parent=r,this.getErrorMessage=i,this.getGeneralErrors=o,this.isValid=!this.getGeneralErrors(this.source)&&!this.getErrorMessage(this.source),!this.isValid){let s=this.parent;for(;s;)s.isValid=!1,s=s.parent}n.dataPath=r&&r.source?`${r.source.dataPath}.${e}`:e,this.schema={type:"object",actionKey:r?`${r.createSchema().actionKey}.${e}`:e,required:[]}}createChild(e,n){const r=new dr(e,n,this);return this.children.push(r),r}createSchema(){const e=Object.assign({},this.schema);return this.id&&(e.id=this.id),this.source&&(e.type=Is(this.source),e.title=this.source.title,e.evaluate=this.source.hasDependants,e.isValid=this.isValid,this.source.options&&(ke(this.source,"multiple")?(e.type="array",e.items={type:"string",enum:this.source.options.map(n=>n.value)}):e.enum=this.source.options.map(n=>n.value))),this.children&&this.children.length&&(e.properties={},this.children.forEach(n=>{e.properties[n.name]=n.createSchema(),js(n.source)&&e.required.push(n.name)})),e}createLayout(){const e={};if(this.source){const r=Yr(this.source)==="Fieldset";e["ui:component"]=Yr(this.source),e["ui:placeholder"]=Ms(this.source),e["ui:description"]=this.source.description,e["ui:tags"]=this.source.hints?this.source.hints.filter(i=>i.indexOf("=")===-1):[],e["ui:hidden"]=!this.source.visible,e["ui:error"]=this.getErrorMessage(this.source)||r&&this.getGeneralErrors(this.source),this.source.options&&(e["ui:enumNames"]=this.source.options.map(i=>i.title)),r&&this.schema.required.length&&(e["ui:hasRequiredChildren"]=!0),e["ui:component"]==="Agreement"&&(e["ui:linkText"]=As(this.source),e["ui:link"]=_s(this.source)),e["ui:component"]==="PhoneNumber"&&(e["ui:options"]=this.source.options),e["ui:component"]==="Date"&&(e["ui:availableHours"]=Ls(this.source),e["ui:minuteInterval"]=Ds(this.source))}return this.children&&(e["ui:order"]=[],this.children.forEach(n=>{e["ui:order"].push(n.name),e[n.name]=n.createLayout()})),e}createData(){if(this.children.length>0){const e={};return this.children.forEach(n=>{e[n.name]=n.createData()}),e}return this.source.type==="choice"?ke(this.source,"multiple")?this.source.options.filter(e=>e.selected).map(e=>e.value):this.source.options.filter(e=>e.selected).map(e=>e.value).join(","):this.source.value}}function Vs(t,e,n,r){const i=new dr(t,{title:"",groups:e.groups},null,n,r);return i.id=t,i}let Hs=class{constructor(e,n,r){S(this,"root");this.validationSource=r,this.getErrorMessage=this.getErrorMessage.bind(this),this.getGeneralErrors=this.getGeneralErrors.bind(this),this.validationSource=r,this.root=Vs(e,{title:"",groups:n.groups},this.getErrorMessage,this.getGeneralErrors)}create(){return{schema:this.root.createSchema(),layout:this.root.createLayout(),data:this.root.createData()}}getGeneralErrors(e){if(this.validationSource&&this.validationSource.generalErrors&&this.validationSource.generalErrors.length>0)return this.validationSource.generalErrors[0]}getErrorMessage(e){if(this.validationSource&&e.name&&this.validationSource.errors&&this.validationSource.errors[e.name])return this.validationSource.errors[e.name]}};const zs=(t,e)=>{const n=t.hints.find(r=>r.startsWith(e+"="));if(n)return n.substr(e.length+1)};function Bs(t,e,n,r){const i=Vt(e),o=n?Vt(n):void 0,s=new Hs(t,i,o),a=s.root;return(i.Groups||i.groups).forEach((c,u)=>{const l=c.title?c.title.replace(/[^A-Za-zÀ-ȕ ]/g,""):"group",d=c.name||`${l}[${u}]`,f=a.createChild(d,c),p=c.components;p&&p.forEach((g,v)=>{const y=g.name||`${g.title}[${v}]`,k=f.createChild(y,g);if(Ps(g)){const N=zs(g,"verifyLabel")||`Confirm ${g.title}`;f.createChild(`${y}$VerifyValue`,{...g,name:`${g.name}$VerifyValue`,title:N,value:i.extra&&i.extra[`${g.name}$VerifyValue`]||""})}g.children&&g.children.forEach((N,j)=>{const T=N.name||`${N.title}[${j}]`;k.createChild(T,N)})})}),s.create()}const Ct=(t,e)=>typeof t>"u"?e:t,Ws=(t,e)=>{let n=t["ui:order"];n||(n=[],t["ui:order"]=n),n.push(e)},Us=(t,e)=>`${t.schema.id}$${e}`,Fs=(t,e)=>(t.schema.properties=Ct(t.schema.properties,{}),t.schema.properties[e.name]={id:e.id||Us(t,e.name),type:e.type,title:e.title,isValid:!0,required:[],evaluate:Ct(e.evaluate,!1),actionKey:e.actionKey,items:e.items?{type:"string",enum:e.items.map(n=>n.value)}:void 0},e.required===!0&&t.schema.required.push(e.name),Ws(t.layout,e.name),t.layout=Ct(t.layout,{}),t.layout[e.name]={"ui:component":e.component,"ui:description":e.description,"ui:placeholder":e.placeholder,"ui:onClick":e.onClick||void 0,"ui:enumNames":e.items?e.items.map(n=>n.label):void 0},t.data=Ct(t.data,{}),t.data[e.name]=e.type==="object"?{}:e.value,t),qs=(t,e)=>Object.assign({},{schema:t.schema.properties[e],layout:t.layout[e],data:t.data[e]}),Ys=(t,e,n)=>{const r=qs(t,e),i=new je(r);return n(i),i},eo=(t,e,n,r,i=[])=>{Object.keys(t).forEach(o=>{o===e&&i.indexOf(o)===-1&&(t[o]=n,i.push(o),r&&(t["data:options"]=t["data:options"]||{},t["data:options"][o]=r)),typeof t[o]=="object"&&eo(t[o],e,n,r,i)})},to=(t,e,n,r)=>{t&&t["ui:component"]===e&&(t[`ui:${n}`]=r),t&&Object.keys(t).forEach(i=>{typeof t[i]=="object"&&to(t[i],e,n,r)})},Pt=(t,e,n)=>{t!==null&&typeof t=="object"&&e===null&&n(t),t!==null&&typeof t=="object"&&typeof t[e]=="object"?n(t[e]):t!==null&&typeof t=="object"&&Object.keys(t).forEach(r=>{Pt(t[r],e,n)})},jt=(t,e,n)=>{t&&t.properties&&e&&typeof t.properties[e]=="object"?n(t.properties[e]):t&&t.properties&&Object.keys(t.properties).forEach(r=>{t.properties&&jt(t.properties[r],e,n)}),e===null&&n(t)};class je{constructor(e){this.form=e}createComponent(e,n){return this.form=Fs(this.form,e),n&&Ys(this.form,e.name,n),new je(this.form)}setData(e,n,r){eo(this.form.data,e,n,r)}setLayout(e,n,r){to(this.form.layout,e,n,r)}setMeta(e){return this.form.meta=e,this.form}setValidationErrors(e){if(e){const{general:n,...r}=e;Pt(this.form.layout,null,i=>i["ui:error"]=!1),jt(this.form.schema,null,i=>i.isValid=!0),this.form.schema.isValid=!1,n&&this.form.layout["group[0]"]&&(this.form.layout["group[0]"]["ui:error"]=n),Object.keys(r).forEach(i=>{Pt(this.form.layout,i,o=>o["ui:error"]=r[i]),jt(this.form.schema,i,o=>o.isValid=!1)})}else Pt(this.form.layout,null,n=>n["ui:error"]=!1),jt(this.form.schema,null,n=>n.isValid=!0);return new je(this.form)}get(){return this.form}static create(e){const n={schema:{id:e,type:"object",title:"",isValid:!0,required:[]},layout:{},data:{}};return new je(n)}static fromLegacyForm(e,n,r,i){const o=Bs(e,n,r);return new je(o)}}function ue(){return ue=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},ue.apply(this,arguments)}function no(t){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var Ks=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Zs=no(function(t){return Ks.test(t)||t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)<91});function Gs(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}function Js(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),t.nonce!==void 0&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}var Xs=function(){function t(n){var r=this;this._insertTag=function(i){var o;r.tags.length===0?r.insertionPoint?o=r.insertionPoint.nextSibling:r.prepend?o=r.container.firstChild:o=r.before:o=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,o),r.tags.push(i)},this.isSpeedy=n.speedy===void 0?process.env.NODE_ENV==="production":n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(r){r.forEach(this._insertTag)},e.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Js(this));var i=this.tags[this.tags.length-1];if(process.env.NODE_ENV!=="production"){var o=r.charCodeAt(0)===64&&r.charCodeAt(1)===105;o&&this._alreadyInsertedOrderInsensitiveRule&&console.error(`You're attempting to insert the following rule:
14
- `+r+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!o}if(this.isSpeedy){var s=Gs(i);try{s.insertRule(r,s.cssRules.length)}catch(a){process.env.NODE_ENV!=="production"&&!/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(r)&&console.error('There was a problem inserting the following rule: "'+r+'"',a)}}else i.appendChild(document.createTextNode(r));this.ctr++},e.flush=function(){this.tags.forEach(function(r){return r.parentNode&&r.parentNode.removeChild(r)}),this.tags=[],this.ctr=0,process.env.NODE_ENV!=="production"&&(this._alreadyInsertedOrderInsensitiveRule=!1)},t}(),he="-ms-",zt="-moz-",J="-webkit-",fr="comm",hr="rule",pr="decl",Qs="@import",ro="@keyframes",ea="@layer",ta=Math.abs,Gt=String.fromCharCode,na=Object.assign;function ra(t,e){return fe(t,0)^45?(((e<<2^fe(t,0))<<2^fe(t,1))<<2^fe(t,2))<<2^fe(t,3):0}function io(t){return t.trim()}function ia(t,e){return(t=e.exec(t))?t[0]:t}function X(t,e,n){return t.replace(e,n)}function Vn(t,e){return t.indexOf(e)}function fe(t,e){return t.charCodeAt(e)|0}function mt(t,e,n){return t.slice(e,n)}function Ne(t){return t.length}function mr(t){return t.length}function St(t,e){return e.push(t),t}function oa(t,e){return t.map(e).join("")}var Jt=1,Ze=1,oo=0,ge=0,le=0,it="";function Xt(t,e,n,r,i,o,s){return{value:t,root:e,parent:n,type:r,props:i,children:o,line:Jt,column:Ze,length:s,return:""}}function ct(t,e){return na(Xt("",null,null,"",null,null,0),t,{length:-t.length},e)}function sa(){return le}function aa(){return le=ge>0?fe(it,--ge):0,Ze--,le===10&&(Ze=1,Jt--),le}function we(){return le=ge<oo?fe(it,ge++):0,Ze++,le===10&&(Ze=1,Jt++),le}function Te(){return fe(it,ge)}function At(){return ge}function yt(t,e){return mt(it,t,e)}function vt(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function so(t){return Jt=Ze=1,oo=Ne(it=t),ge=0,[]}function ao(t){return it="",t}function _t(t){return io(yt(ge-1,Hn(t===91?t+2:t===40?t+1:t)))}function ca(t){for(;(le=Te())&&le<33;)we();return vt(t)>2||vt(le)>3?"":" "}function la(t,e){for(;--e&&we()&&!(le<48||le>102||le>57&&le<65||le>70&&le<97););return yt(t,At()+(e<6&&Te()==32&&we()==32))}function Hn(t){for(;we();)switch(le){case t:return ge;case 34:case 39:t!==34&&t!==39&&Hn(le);break;case 40:t===41&&Hn(t);break;case 92:we();break}return ge}function ua(t,e){for(;we()&&t+le!==47+10;)if(t+le===42+42&&Te()===47)break;return"/*"+yt(e,ge-1)+"*"+Gt(t===47?t:we())}function da(t){for(;!vt(Te());)we();return yt(t,ge)}function fa(t){return ao(Lt("",null,null,null,[""],t=so(t),0,[0],t))}function Lt(t,e,n,r,i,o,s,a,c){for(var u=0,l=0,d=s,f=0,p=0,g=0,v=1,y=1,k=1,N=0,j="",T=i,x=o,V=r,R=j;y;)switch(g=N,N=we()){case 40:if(g!=108&&fe(R,d-1)==58){Vn(R+=X(_t(N),"&","&\f"),"&\f")!=-1&&(k=-1);break}case 34:case 39:case 91:R+=_t(N);break;case 9:case 10:case 13:case 32:R+=ca(g);break;case 92:R+=la(At()-1,7);continue;case 47:switch(Te()){case 42:case 47:St(ha(ua(we(),At()),e,n),c);break;default:R+="/"}break;case 123*v:a[u++]=Ne(R)*k;case 125*v:case 59:case 0:switch(N){case 0:case 125:y=0;case 59+l:k==-1&&(R=X(R,/\f/g,"")),p>0&&Ne(R)-d&&St(p>32?Zr(R+";",r,n,d-1):Zr(X(R," ","")+";",r,n,d-2),c);break;case 59:R+=";";default:if(St(V=Kr(R,e,n,u,l,i,a,j,T=[],x=[],d),o),N===123)if(l===0)Lt(R,e,V,V,T,o,d,a,x);else switch(f===99&&fe(R,3)===110?100:f){case 100:case 108:case 109:case 115:Lt(t,V,V,r&&St(Kr(t,V,V,0,0,i,a,j,i,T=[],d),x),i,x,d,a,r?T:x);break;default:Lt(R,V,V,V,[""],x,0,a,x)}}u=l=p=0,v=k=1,j=R="",d=s;break;case 58:d=1+Ne(R),p=g;default:if(v<1){if(N==123)--v;else if(N==125&&v++==0&&aa()==125)continue}switch(R+=Gt(N),N*v){case 38:k=l>0?1:(R+="\f",-1);break;case 44:a[u++]=(Ne(R)-1)*k,k=1;break;case 64:Te()===45&&(R+=_t(we())),f=Te(),l=d=Ne(j=R+=da(At())),N++;break;case 45:g===45&&Ne(R)==2&&(v=0)}}return o}function Kr(t,e,n,r,i,o,s,a,c,u,l){for(var d=i-1,f=i===0?o:[""],p=mr(f),g=0,v=0,y=0;g<r;++g)for(var k=0,N=mt(t,d+1,d=ta(v=s[g])),j=t;k<p;++k)(j=io(v>0?f[k]+" "+N:X(N,/&\f/g,f[k])))&&(c[y++]=j);return Xt(t,e,n,i===0?hr:a,c,u,l)}function ha(t,e,n){return Xt(t,e,n,fr,Gt(sa()),mt(t,2,-2),0)}function Zr(t,e,n,r){return Xt(t,e,n,pr,mt(t,0,r),mt(t,r+1,-1),r)}function Ye(t,e){for(var n="",r=mr(t),i=0;i<r;i++)n+=e(t[i],i,t,e)||"";return n}function pa(t,e,n,r){switch(t.type){case ea:if(t.children.length)break;case Qs:case pr:return t.return=t.return||t.value;case fr:return"";case ro:return t.return=t.value+"{"+Ye(t.children,r)+"}";case hr:t.value=t.props.join(",")}return Ne(n=Ye(t.children,r))?t.return=t.value+"{"+n+"}":""}function ma(t){var e=mr(t);return function(n,r,i,o){for(var s="",a=0;a<e;a++)s+=t[a](n,r,i,o)||"";return s}}function va(t){return function(e){e.root||(e=e.return)&&t(e)}}var ga=function(e,n,r){for(var i=0,o=0;i=o,o=Te(),i===38&&o===12&&(n[r]=1),!vt(o);)we();return yt(e,ge)},ya=function(e,n){var r=-1,i=44;do switch(vt(i)){case 0:i===38&&Te()===12&&(n[r]=1),e[r]+=ga(ge-1,n,r);break;case 2:e[r]+=_t(i);break;case 4:if(i===44){e[++r]=Te()===58?"&\f":"",n[r]=e[r].length;break}default:e[r]+=Gt(i)}while(i=we());return e},ba=function(e,n){return ao(ya(so(e),n))},Gr=new WeakMap,xa=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var n=e.value,r=e.parent,i=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&n.charCodeAt(0)!==58&&!Gr.get(r))&&!i){Gr.set(e,!0);for(var o=[],s=ba(n,o),a=r.props,c=0,u=0;c<s.length;c++)for(var l=0;l<a.length;l++,u++)e.props[u]=o[c]?s[c].replace(/&\f/g,a[l]):a[l]+" "+s[c]}}},wa=function(e){if(e.type==="decl"){var n=e.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(e.return="",e.value="")}},Ea="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",Ca=function(e){return e.type==="comm"&&e.children.indexOf(Ea)>-1},Sa=function(e){return function(n,r,i){if(!(n.type!=="rule"||e.compat)){var o=n.value.match(/(:first|:nth|:nth-last)-child/g);if(o){for(var s=!!n.parent,a=s?n.parent.children:i,c=a.length-1;c>=0;c--){var u=a[c];if(u.line<n.line)break;if(u.column<n.column){if(Ca(u))return;break}}o.forEach(function(l){console.error('The pseudo class "'+l+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+l.split("-child")[0]+'-of-type".')})}}}},co=function(e){return e.type.charCodeAt(1)===105&&e.type.charCodeAt(0)===64},ka=function(e,n){for(var r=e-1;r>=0;r--)if(!co(n[r]))return!0;return!1},Jr=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},Oa=function(e,n,r){co(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),Jr(e)):ka(n,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),Jr(e)))};function lo(t,e){switch(ra(t,e)){case 5103:return J+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return J+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return J+t+zt+t+he+t+t;case 6828:case 4268:return J+t+he+t+t;case 6165:return J+t+he+"flex-"+t+t;case 5187:return J+t+X(t,/(\w+).+(:[^]+)/,J+"box-$1$2"+he+"flex-$1$2")+t;case 5443:return J+t+he+"flex-item-"+X(t,/flex-|-self/,"")+t;case 4675:return J+t+he+"flex-line-pack"+X(t,/align-content|flex-|-self/,"")+t;case 5548:return J+t+he+X(t,"shrink","negative")+t;case 5292:return J+t+he+X(t,"basis","preferred-size")+t;case 6060:return J+"box-"+X(t,"-grow","")+J+t+he+X(t,"grow","positive")+t;case 4554:return J+X(t,/([^-])(transform)/g,"$1"+J+"$2")+t;case 6187:return X(X(X(t,/(zoom-|grab)/,J+"$1"),/(image-set)/,J+"$1"),t,"")+t;case 5495:case 3959:return X(t,/(image-set\([^]*)/,J+"$1$`$1");case 4968:return X(X(t,/(.+:)(flex-)?(.*)/,J+"box-pack:$3"+he+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+J+t+t;case 4095:case 3583:case 4068:case 2532:return X(t,/(.+)-inline(.+)/,J+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ne(t)-1-e>6)switch(fe(t,e+1)){case 109:if(fe(t,e+4)!==45)break;case 102:return X(t,/(.+:)(.+)-([^]+)/,"$1"+J+"$2-$3$1"+zt+(fe(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~Vn(t,"stretch")?lo(X(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(fe(t,e+1)!==115)break;case 6444:switch(fe(t,Ne(t)-3-(~Vn(t,"!important")&&10))){case 107:return X(t,":",":"+J)+t;case 101:return X(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+J+(fe(t,14)===45?"inline-":"")+"box$3$1"+J+"$2$3$1"+he+"$2box$3")+t}break;case 5936:switch(fe(t,e+11)){case 114:return J+t+he+X(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return J+t+he+X(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return J+t+he+X(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return J+t+he+t+t}return t}var $a=function(e,n,r,i){if(e.length>-1&&!e.return)switch(e.type){case pr:e.return=lo(e.value,e.length);break;case ro:return Ye([ct(e,{value:X(e.value,"@","@"+J)})],i);case hr:if(e.length)return oa(e.props,function(o){switch(ia(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ye([ct(e,{props:[X(o,/:(read-\w+)/,":"+zt+"$1")]})],i);case"::placeholder":return Ye([ct(e,{props:[X(o,/:(plac\w+)/,":"+J+"input-$1")]}),ct(e,{props:[X(o,/:(plac\w+)/,":"+zt+"$1")]}),ct(e,{props:[X(o,/:(plac\w+)/,he+"input-$1")]})],i)}return""})}},Na=[$a],Ta=function(e){var n=e.key;if(process.env.NODE_ENV!=="production"&&!n)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
15
- If multiple caches share the same key they might "fight" for each other's style elements.`);if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(v){var y=v.getAttribute("data-emotion");y.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var i=e.stylisPlugins||Na;if(process.env.NODE_ENV!=="production"&&/[^a-z-]/.test(n))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+n+'" was passed');var o={},s,a=[];s=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(v){for(var y=v.getAttribute("data-emotion").split(" "),k=1;k<y.length;k++)o[y[k]]=!0;a.push(v)});var c,u=[xa,wa];process.env.NODE_ENV!=="production"&&u.push(Sa({get compat(){return g.compat}}),Oa);{var l,d=[pa,process.env.NODE_ENV!=="production"?function(v){v.root||(v.return?l.insert(v.return):v.value&&v.type!==fr&&l.insert(v.value+"{}"))}:va(function(v){l.insert(v)})],f=ma(u.concat(i,d)),p=function(y){return Ye(fa(y),f)};c=function(y,k,N,j){l=N,process.env.NODE_ENV!=="production"&&k.map!==void 0&&(l={insert:function(x){N.insert(x+k.map)}}),p(y?y+"{"+k.styles+"}":k.styles),j&&(g.inserted[k.name]=!0)}}var g={key:n,sheet:new Xs({key:n,container:s,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:o,registered:{},insert:c};return g.sheet.hydrate(a),g},Ra=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function vr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function uo(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){if(this instanceof r){var i=[null];i.push.apply(i,arguments);var o=Function.bind.apply(e,i);return new o}return e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var i=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return t[r]}})}),n}var zn={exports:{}},Q={};/** @license React v16.13.1
13
+ Passed consent: ${JSON.stringify(r)}`),i.unshift(de.Necessary)),nt(e.container,"storagePolicy",de.Necessary,{medium:pe.Cookie,scope:Kt.Tenant,duration:{days:365}}).then(o=>o(i)).then(()=>{or(e.container),e.events.dispatch("storage:policy-changed",i)})}})});function Se(t,e){return t.hints&&t.hints.indexOf(e)>-1}function Ns(t){return t.constraints&&t.constraints.verifyValue}function Ts(t){return t.constraints&&t.constraints.required}function Rs(t){const e=t.hints.filter(n=>n.indexOf("=")>-1&&n.split("=")[0]==="linkText")[0]||null;return e?e.split("=")[1]:null}function Ps(t){const e=t.hints.filter(n=>n.indexOf("=")>-1&&n.split("=")[0]==="url")[0]||null;return e?e.split("=")[1]:null}function js(t){const e=t.hints.filter(n=>n.indexOf("=")>-1&&n.split("=")[0]==="availableHours")[0]||null;return e?e.split("=")[1]||[]:[]}function As(t){const e=t.hints.filter(n=>n.indexOf("=")>-1&&n.split("=")[0]==="minuteInterval")[0]||null;return e?e.split("=")[1]||[]:[]}function Br(t){return t.components?"Fieldset":Se(t,"fullname")?"Name":Se(t,"address")?"Address":Se(t,"dropdown")?"DropDownList":Se(t,"checkbox")?"CheckboxList":Se(t,"radio")?"RadioButtonList":Se(t,"email")?"Email":Se(t,"agreement")?"Agreement":Se(t,"phonenumber")?"PhoneNumber":Se(t,"date")?"Date":t.type==="text/paragraph"?"Textarea":t.type==="text/number"?"Number":t.type==="text/password"?"Password":t.type==="hidden"?"Hidden":t.type==="file"?"File":t.type==="hwebsite"?"AntiSpam":"Text"}function _s(t){if(t.hints)for(let e=0;e<t.hints.length;e++){const n=t.hints[e];if(n.substr(0,12)==="placeholder=")return n.substr(12)}}function Ls(t){return t.children||t.components||t.groups?"object":"string"}class ar{constructor(e,n,r,i=r.getErrorMessage,o=r.getGeneralErrors){S(this,"children",[]);S(this,"isValid");S(this,"schema");S(this,"id");if(this.name=e,this.source=n,this.parent=r,this.getErrorMessage=i,this.getGeneralErrors=o,this.isValid=!this.getGeneralErrors(this.source)&&!this.getErrorMessage(this.source),!this.isValid){let s=this.parent;for(;s;)s.isValid=!1,s=s.parent}n.dataPath=r&&r.source?`${r.source.dataPath}.${e}`:e,this.schema={type:"object",actionKey:r?`${r.createSchema().actionKey}.${e}`:e,required:[]}}createChild(e,n){const r=new ar(e,n,this);return this.children.push(r),r}createSchema(){const e=Object.assign({},this.schema);return this.id&&(e.id=this.id),this.source&&(e.type=Ls(this.source),e.title=this.source.title,e.evaluate=this.source.hasDependants,e.isValid=this.isValid,this.source.options&&(Se(this.source,"multiple")?(e.type="array",e.items={type:"string",enum:this.source.options.map(n=>n.value)}):e.enum=this.source.options.map(n=>n.value))),this.children&&this.children.length&&(e.properties={},this.children.forEach(n=>{e.properties[n.name]=n.createSchema(),Ts(n.source)&&e.required.push(n.name)})),e}createLayout(){const e={};if(this.source){const r=Br(this.source)==="Fieldset";e["ui:component"]=Br(this.source),e["ui:placeholder"]=_s(this.source),e["ui:description"]=this.source.description,e["ui:tags"]=this.source.hints?this.source.hints.filter(i=>i.indexOf("=")===-1):[],e["ui:hidden"]=!this.source.visible,e["ui:error"]=this.getErrorMessage(this.source)||r&&this.getGeneralErrors(this.source),this.source.options&&(e["ui:enumNames"]=this.source.options.map(i=>i.title)),r&&this.schema.required.length&&(e["ui:hasRequiredChildren"]=!0),e["ui:component"]==="Agreement"&&(e["ui:linkText"]=Rs(this.source),e["ui:link"]=Ps(this.source)),e["ui:component"]==="PhoneNumber"&&(e["ui:options"]=this.source.options),e["ui:component"]==="Date"&&(e["ui:availableHours"]=js(this.source),e["ui:minuteInterval"]=As(this.source))}return this.children&&(e["ui:order"]=[],this.children.forEach(n=>{e["ui:order"].push(n.name),e[n.name]=n.createLayout()})),e}createData(){if(this.children.length>0){const e={};return this.children.forEach(n=>{e[n.name]=n.createData()}),e}return this.source.type==="choice"?Se(this.source,"multiple")?this.source.options.filter(e=>e.selected).map(e=>e.value):this.source.options.filter(e=>e.selected).map(e=>e.value).join(","):this.source.value}}function Ms(t,e,n,r){const i=new ar(t,{title:"",groups:e.groups},null,n,r);return i.id=t,i}let Ds=class{constructor(e,n,r){S(this,"root");this.validationSource=r,this.getErrorMessage=this.getErrorMessage.bind(this),this.getGeneralErrors=this.getGeneralErrors.bind(this),this.validationSource=r,this.root=Ms(e,{title:"",groups:n.groups},this.getErrorMessage,this.getGeneralErrors)}create(){return{schema:this.root.createSchema(),layout:this.root.createLayout(),data:this.root.createData()}}getGeneralErrors(e){if(this.validationSource&&this.validationSource.generalErrors&&this.validationSource.generalErrors.length>0)return this.validationSource.generalErrors[0]}getErrorMessage(e){if(this.validationSource&&e.name&&this.validationSource.errors&&this.validationSource.errors[e.name])return this.validationSource.errors[e.name]}};const Is=(t,e)=>{const n=t.hints.find(r=>r.startsWith(e+"="));if(n)return n.substr(e.length+1)};function Vs(t,e,n,r){const i=Vt(e),o=n?Vt(n):void 0,s=new Ds(t,i,o),a=s.root;return(i.Groups||i.groups).forEach((c,u)=>{const l=c.title?c.title.replace(/[^A-Za-zÀ-ȕ ]/g,""):"group",d=c.name||`${l}[${u}]`,f=a.createChild(d,c),p=c.components;p&&p.forEach((g,v)=>{const y=g.name||`${g.title}[${v}]`,k=f.createChild(y,g);if(Ns(g)){const N=Is(g,"verifyLabel")||`Confirm ${g.title}`;f.createChild(`${y}$VerifyValue`,{...g,name:`${g.name}$VerifyValue`,title:N,value:i.extra&&i.extra[`${g.name}$VerifyValue`]||""})}g.children&&g.children.forEach((N,j)=>{const T=N.name||`${N.title}[${j}]`;k.createChild(T,N)})})}),s.create()}const Ct=(t,e)=>typeof t>"u"?e:t,Hs=(t,e)=>{let n=t["ui:order"];n||(n=[],t["ui:order"]=n),n.push(e)},zs=(t,e)=>`${t.schema.id}$${e}`,Bs=(t,e)=>(t.schema.properties=Ct(t.schema.properties,{}),t.schema.properties[e.name]={id:e.id||zs(t,e.name),type:e.type,title:e.title,isValid:!0,required:[],evaluate:Ct(e.evaluate,!1),actionKey:e.actionKey,items:e.items?{type:"string",enum:e.items.map(n=>n.value)}:void 0},e.required===!0&&t.schema.required.push(e.name),Hs(t.layout,e.name),t.layout=Ct(t.layout,{}),t.layout[e.name]={"ui:component":e.component,"ui:description":e.description,"ui:placeholder":e.placeholder,"ui:onClick":e.onClick||void 0,"ui:enumNames":e.items?e.items.map(n=>n.label):void 0},t.data=Ct(t.data,{}),t.data[e.name]=e.type==="object"?{}:e.value,t),Ws=(t,e)=>Object.assign({},{schema:t.schema.properties[e],layout:t.layout[e],data:t.data[e]}),Us=(t,e,n)=>{const r=Ws(t,e),i=new Ie(r);return n(i),i},Xi=(t,e,n,r,i=[])=>{Object.keys(t).forEach(o=>{o===e&&i.indexOf(o)===-1&&(t[o]=n,i.push(o),r&&(t["data:options"]=t["data:options"]||{},t["data:options"][o]=r)),typeof t[o]=="object"&&Xi(t[o],e,n,r,i)})},Qi=(t,e,n,r)=>{t&&t["ui:component"]===e&&(t[`ui:${n}`]=r),t&&Object.keys(t).forEach(i=>{typeof t[i]=="object"&&Qi(t[i],e,n,r)})},Pt=(t,e,n)=>{t!==null&&typeof t=="object"&&e===null&&n(t),t!==null&&typeof t=="object"&&typeof t[e]=="object"?n(t[e]):t!==null&&typeof t=="object"&&Object.keys(t).forEach(r=>{Pt(t[r],e,n)})},jt=(t,e,n)=>{t&&t.properties&&e&&typeof t.properties[e]=="object"?n(t.properties[e]):t&&t.properties&&Object.keys(t.properties).forEach(r=>{t.properties&&jt(t.properties[r],e,n)}),e===null&&n(t)};class Ie{constructor(e){this.form=e}createComponent(e,n){return this.form=Bs(this.form,e),n&&Us(this.form,e.name,n),new Ie(this.form)}setData(e,n,r){Xi(this.form.data,e,n,r)}setLayout(e,n,r){Qi(this.form.layout,e,n,r)}setMeta(e){return this.form.meta=e,this.form}setValidationErrors(e){if(e){const{general:n,...r}=e;Pt(this.form.layout,null,i=>i["ui:error"]=!1),jt(this.form.schema,null,i=>i.isValid=!0),this.form.schema.isValid=!1,n&&this.form.layout["group[0]"]&&(this.form.layout["group[0]"]["ui:error"]=n),Object.keys(r).forEach(i=>{Pt(this.form.layout,i,o=>o["ui:error"]=r[i]),jt(this.form.schema,i,o=>o.isValid=!1)})}else Pt(this.form.layout,null,n=>n["ui:error"]=!1),jt(this.form.schema,null,n=>n.isValid=!0);return new Ie(this.form)}get(){return this.form}static create(e){const n={schema:{id:e,type:"object",title:"",isValid:!0,required:[]},layout:{},data:{}};return new Ie(n)}static fromLegacyForm(e,n,r,i){const o=Vs(e,n,r);return new Ie(o)}}function ue(){return ue=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},ue.apply(this,arguments)}function eo(t){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var Fs=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,qs=eo(function(t){return Fs.test(t)||t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)<91});function Ys(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}function Ks(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),t.nonce!==void 0&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}var Zs=function(){function t(n){var r=this;this._insertTag=function(i){var o;r.tags.length===0?r.insertionPoint?o=r.insertionPoint.nextSibling:r.prepend?o=r.container.firstChild:o=r.before:o=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,o),r.tags.push(i)},this.isSpeedy=n.speedy===void 0?process.env.NODE_ENV==="production":n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(r){r.forEach(this._insertTag)},e.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Ks(this));var i=this.tags[this.tags.length-1];if(process.env.NODE_ENV!=="production"){var o=r.charCodeAt(0)===64&&r.charCodeAt(1)===105;o&&this._alreadyInsertedOrderInsensitiveRule&&console.error(`You're attempting to insert the following rule:
14
+ `+r+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!o}if(this.isSpeedy){var s=Ys(i);try{s.insertRule(r,s.cssRules.length)}catch(a){process.env.NODE_ENV!=="production"&&!/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(r)&&console.error('There was a problem inserting the following rule: "'+r+'"',a)}}else i.appendChild(document.createTextNode(r));this.ctr++},e.flush=function(){this.tags.forEach(function(r){return r.parentNode&&r.parentNode.removeChild(r)}),this.tags=[],this.ctr=0,process.env.NODE_ENV!=="production"&&(this._alreadyInsertedOrderInsensitiveRule=!1)},t}(),he="-ms-",zt="-moz-",J="-webkit-",cr="comm",lr="rule",ur="decl",Gs="@import",to="@keyframes",Js="@layer",Xs=Math.abs,Gt=String.fromCharCode,Qs=Object.assign;function ea(t,e){return fe(t,0)^45?(((e<<2^fe(t,0))<<2^fe(t,1))<<2^fe(t,2))<<2^fe(t,3):0}function no(t){return t.trim()}function ta(t,e){return(t=e.exec(t))?t[0]:t}function X(t,e,n){return t.replace(e,n)}function In(t,e){return t.indexOf(e)}function fe(t,e){return t.charCodeAt(e)|0}function pt(t,e,n){return t.slice(e,n)}function Ne(t){return t.length}function dr(t){return t.length}function St(t,e){return e.push(t),t}function na(t,e){return t.map(e).join("")}var Jt=1,Ze=1,ro=0,ge=0,le=0,rt="";function Xt(t,e,n,r,i,o,s){return{value:t,root:e,parent:n,type:r,props:i,children:o,line:Jt,column:Ze,length:s,return:""}}function at(t,e){return Qs(Xt("",null,null,"",null,null,0),t,{length:-t.length},e)}function ra(){return le}function ia(){return le=ge>0?fe(rt,--ge):0,Ze--,le===10&&(Ze=1,Jt--),le}function we(){return le=ge<ro?fe(rt,ge++):0,Ze++,le===10&&(Ze=1,Jt++),le}function Te(){return fe(rt,ge)}function At(){return ge}function yt(t,e){return pt(rt,t,e)}function mt(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function io(t){return Jt=Ze=1,ro=Ne(rt=t),ge=0,[]}function oo(t){return rt="",t}function _t(t){return no(yt(ge-1,Vn(t===91?t+2:t===40?t+1:t)))}function oa(t){for(;(le=Te())&&le<33;)we();return mt(t)>2||mt(le)>3?"":" "}function sa(t,e){for(;--e&&we()&&!(le<48||le>102||le>57&&le<65||le>70&&le<97););return yt(t,At()+(e<6&&Te()==32&&we()==32))}function Vn(t){for(;we();)switch(le){case t:return ge;case 34:case 39:t!==34&&t!==39&&Vn(le);break;case 40:t===41&&Vn(t);break;case 92:we();break}return ge}function aa(t,e){for(;we()&&t+le!==47+10;)if(t+le===42+42&&Te()===47)break;return"/*"+yt(e,ge-1)+"*"+Gt(t===47?t:we())}function ca(t){for(;!mt(Te());)we();return yt(t,ge)}function la(t){return oo(Lt("",null,null,null,[""],t=io(t),0,[0],t))}function Lt(t,e,n,r,i,o,s,a,c){for(var u=0,l=0,d=s,f=0,p=0,g=0,v=1,y=1,k=1,N=0,j="",T=i,x=o,V=r,R=j;y;)switch(g=N,N=we()){case 40:if(g!=108&&fe(R,d-1)==58){In(R+=X(_t(N),"&","&\f"),"&\f")!=-1&&(k=-1);break}case 34:case 39:case 91:R+=_t(N);break;case 9:case 10:case 13:case 32:R+=oa(g);break;case 92:R+=sa(At()-1,7);continue;case 47:switch(Te()){case 42:case 47:St(ua(aa(we(),At()),e,n),c);break;default:R+="/"}break;case 123*v:a[u++]=Ne(R)*k;case 125*v:case 59:case 0:switch(N){case 0:case 125:y=0;case 59+l:k==-1&&(R=X(R,/\f/g,"")),p>0&&Ne(R)-d&&St(p>32?Ur(R+";",r,n,d-1):Ur(X(R," ","")+";",r,n,d-2),c);break;case 59:R+=";";default:if(St(V=Wr(R,e,n,u,l,i,a,j,T=[],x=[],d),o),N===123)if(l===0)Lt(R,e,V,V,T,o,d,a,x);else switch(f===99&&fe(R,3)===110?100:f){case 100:case 108:case 109:case 115:Lt(t,V,V,r&&St(Wr(t,V,V,0,0,i,a,j,i,T=[],d),x),i,x,d,a,r?T:x);break;default:Lt(R,V,V,V,[""],x,0,a,x)}}u=l=p=0,v=k=1,j=R="",d=s;break;case 58:d=1+Ne(R),p=g;default:if(v<1){if(N==123)--v;else if(N==125&&v++==0&&ia()==125)continue}switch(R+=Gt(N),N*v){case 38:k=l>0?1:(R+="\f",-1);break;case 44:a[u++]=(Ne(R)-1)*k,k=1;break;case 64:Te()===45&&(R+=_t(we())),f=Te(),l=d=Ne(j=R+=ca(At())),N++;break;case 45:g===45&&Ne(R)==2&&(v=0)}}return o}function Wr(t,e,n,r,i,o,s,a,c,u,l){for(var d=i-1,f=i===0?o:[""],p=dr(f),g=0,v=0,y=0;g<r;++g)for(var k=0,N=pt(t,d+1,d=Xs(v=s[g])),j=t;k<p;++k)(j=no(v>0?f[k]+" "+N:X(N,/&\f/g,f[k])))&&(c[y++]=j);return Xt(t,e,n,i===0?lr:a,c,u,l)}function ua(t,e,n){return Xt(t,e,n,cr,Gt(ra()),pt(t,2,-2),0)}function Ur(t,e,n,r){return Xt(t,e,n,ur,pt(t,0,r),pt(t,r+1,-1),r)}function Ye(t,e){for(var n="",r=dr(t),i=0;i<r;i++)n+=e(t[i],i,t,e)||"";return n}function da(t,e,n,r){switch(t.type){case Js:if(t.children.length)break;case Gs:case ur:return t.return=t.return||t.value;case cr:return"";case to:return t.return=t.value+"{"+Ye(t.children,r)+"}";case lr:t.value=t.props.join(",")}return Ne(n=Ye(t.children,r))?t.return=t.value+"{"+n+"}":""}function fa(t){var e=dr(t);return function(n,r,i,o){for(var s="",a=0;a<e;a++)s+=t[a](n,r,i,o)||"";return s}}function ha(t){return function(e){e.root||(e=e.return)&&t(e)}}var pa=function(e,n,r){for(var i=0,o=0;i=o,o=Te(),i===38&&o===12&&(n[r]=1),!mt(o);)we();return yt(e,ge)},ma=function(e,n){var r=-1,i=44;do switch(mt(i)){case 0:i===38&&Te()===12&&(n[r]=1),e[r]+=pa(ge-1,n,r);break;case 2:e[r]+=_t(i);break;case 4:if(i===44){e[++r]=Te()===58?"&\f":"",n[r]=e[r].length;break}default:e[r]+=Gt(i)}while(i=we());return e},va=function(e,n){return oo(ma(io(e),n))},Fr=new WeakMap,ga=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var n=e.value,r=e.parent,i=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&n.charCodeAt(0)!==58&&!Fr.get(r))&&!i){Fr.set(e,!0);for(var o=[],s=va(n,o),a=r.props,c=0,u=0;c<s.length;c++)for(var l=0;l<a.length;l++,u++)e.props[u]=o[c]?s[c].replace(/&\f/g,a[l]):a[l]+" "+s[c]}}},ya=function(e){if(e.type==="decl"){var n=e.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(e.return="",e.value="")}},ba="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",xa=function(e){return e.type==="comm"&&e.children.indexOf(ba)>-1},wa=function(e){return function(n,r,i){if(!(n.type!=="rule"||e.compat)){var o=n.value.match(/(:first|:nth|:nth-last)-child/g);if(o){for(var s=!!n.parent,a=s?n.parent.children:i,c=a.length-1;c>=0;c--){var u=a[c];if(u.line<n.line)break;if(u.column<n.column){if(xa(u))return;break}}o.forEach(function(l){console.error('The pseudo class "'+l+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+l.split("-child")[0]+'-of-type".')})}}}},so=function(e){return e.type.charCodeAt(1)===105&&e.type.charCodeAt(0)===64},Ea=function(e,n){for(var r=e-1;r>=0;r--)if(!so(n[r]))return!0;return!1},qr=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},Ca=function(e,n,r){so(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),qr(e)):Ea(n,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),qr(e)))};function ao(t,e){switch(ea(t,e)){case 5103:return J+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return J+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return J+t+zt+t+he+t+t;case 6828:case 4268:return J+t+he+t+t;case 6165:return J+t+he+"flex-"+t+t;case 5187:return J+t+X(t,/(\w+).+(:[^]+)/,J+"box-$1$2"+he+"flex-$1$2")+t;case 5443:return J+t+he+"flex-item-"+X(t,/flex-|-self/,"")+t;case 4675:return J+t+he+"flex-line-pack"+X(t,/align-content|flex-|-self/,"")+t;case 5548:return J+t+he+X(t,"shrink","negative")+t;case 5292:return J+t+he+X(t,"basis","preferred-size")+t;case 6060:return J+"box-"+X(t,"-grow","")+J+t+he+X(t,"grow","positive")+t;case 4554:return J+X(t,/([^-])(transform)/g,"$1"+J+"$2")+t;case 6187:return X(X(X(t,/(zoom-|grab)/,J+"$1"),/(image-set)/,J+"$1"),t,"")+t;case 5495:case 3959:return X(t,/(image-set\([^]*)/,J+"$1$`$1");case 4968:return X(X(t,/(.+:)(flex-)?(.*)/,J+"box-pack:$3"+he+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+J+t+t;case 4095:case 3583:case 4068:case 2532:return X(t,/(.+)-inline(.+)/,J+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ne(t)-1-e>6)switch(fe(t,e+1)){case 109:if(fe(t,e+4)!==45)break;case 102:return X(t,/(.+:)(.+)-([^]+)/,"$1"+J+"$2-$3$1"+zt+(fe(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~In(t,"stretch")?ao(X(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(fe(t,e+1)!==115)break;case 6444:switch(fe(t,Ne(t)-3-(~In(t,"!important")&&10))){case 107:return X(t,":",":"+J)+t;case 101:return X(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+J+(fe(t,14)===45?"inline-":"")+"box$3$1"+J+"$2$3$1"+he+"$2box$3")+t}break;case 5936:switch(fe(t,e+11)){case 114:return J+t+he+X(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return J+t+he+X(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return J+t+he+X(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return J+t+he+t+t}return t}var Sa=function(e,n,r,i){if(e.length>-1&&!e.return)switch(e.type){case ur:e.return=ao(e.value,e.length);break;case to:return Ye([at(e,{value:X(e.value,"@","@"+J)})],i);case lr:if(e.length)return na(e.props,function(o){switch(ta(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ye([at(e,{props:[X(o,/:(read-\w+)/,":"+zt+"$1")]})],i);case"::placeholder":return Ye([at(e,{props:[X(o,/:(plac\w+)/,":"+J+"input-$1")]}),at(e,{props:[X(o,/:(plac\w+)/,":"+zt+"$1")]}),at(e,{props:[X(o,/:(plac\w+)/,he+"input-$1")]})],i)}return""})}},ka=[Sa],Oa=function(e){var n=e.key;if(process.env.NODE_ENV!=="production"&&!n)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
15
+ If multiple caches share the same key they might "fight" for each other's style elements.`);if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(v){var y=v.getAttribute("data-emotion");y.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var i=e.stylisPlugins||ka;if(process.env.NODE_ENV!=="production"&&/[^a-z-]/.test(n))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+n+'" was passed');var o={},s,a=[];s=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(v){for(var y=v.getAttribute("data-emotion").split(" "),k=1;k<y.length;k++)o[y[k]]=!0;a.push(v)});var c,u=[ga,ya];process.env.NODE_ENV!=="production"&&u.push(wa({get compat(){return g.compat}}),Ca);{var l,d=[da,process.env.NODE_ENV!=="production"?function(v){v.root||(v.return?l.insert(v.return):v.value&&v.type!==cr&&l.insert(v.value+"{}"))}:ha(function(v){l.insert(v)})],f=fa(u.concat(i,d)),p=function(y){return Ye(la(y),f)};c=function(y,k,N,j){l=N,process.env.NODE_ENV!=="production"&&k.map!==void 0&&(l={insert:function(x){N.insert(x+k.map)}}),p(y?y+"{"+k.styles+"}":k.styles),j&&(g.inserted[k.name]=!0)}}var g={key:n,sheet:new Zs({key:n,container:s,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:o,registered:{},insert:c};return g.sheet.hydrate(a),g},$a=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function fr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function co(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){if(this instanceof r){var i=[null];i.push.apply(i,arguments);var o=Function.bind.apply(e,i);return new o}return e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var i=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return t[r]}})}),n}var Hn={exports:{}},Q={};/** @license React v16.13.1
16
16
  * react-is.production.min.js
17
17
  *
18
18
  * Copyright (c) Facebook, Inc. and its affiliates.
19
19
  *
20
20
  * This source code is licensed under the MIT license found in the
21
21
  * LICENSE file in the root directory of this source tree.
22
- */var Xr;function Pa(){if(Xr)return Q;Xr=1;var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,o=t?Symbol.for("react.profiler"):60114,s=t?Symbol.for("react.provider"):60109,a=t?Symbol.for("react.context"):60110,c=t?Symbol.for("react.async_mode"):60111,u=t?Symbol.for("react.concurrent_mode"):60111,l=t?Symbol.for("react.forward_ref"):60112,d=t?Symbol.for("react.suspense"):60113,f=t?Symbol.for("react.suspense_list"):60120,p=t?Symbol.for("react.memo"):60115,g=t?Symbol.for("react.lazy"):60116,v=t?Symbol.for("react.block"):60121,y=t?Symbol.for("react.fundamental"):60117,k=t?Symbol.for("react.responder"):60118,N=t?Symbol.for("react.scope"):60119;function j(x){if(typeof x=="object"&&x!==null){var V=x.$$typeof;switch(V){case e:switch(x=x.type,x){case c:case u:case r:case o:case i:case d:return x;default:switch(x=x&&x.$$typeof,x){case a:case l:case g:case p:case s:return x;default:return V}}case n:return V}}}function T(x){return j(x)===u}return Q.AsyncMode=c,Q.ConcurrentMode=u,Q.ContextConsumer=a,Q.ContextProvider=s,Q.Element=e,Q.ForwardRef=l,Q.Fragment=r,Q.Lazy=g,Q.Memo=p,Q.Portal=n,Q.Profiler=o,Q.StrictMode=i,Q.Suspense=d,Q.isAsyncMode=function(x){return T(x)||j(x)===c},Q.isConcurrentMode=T,Q.isContextConsumer=function(x){return j(x)===a},Q.isContextProvider=function(x){return j(x)===s},Q.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===e},Q.isForwardRef=function(x){return j(x)===l},Q.isFragment=function(x){return j(x)===r},Q.isLazy=function(x){return j(x)===g},Q.isMemo=function(x){return j(x)===p},Q.isPortal=function(x){return j(x)===n},Q.isProfiler=function(x){return j(x)===o},Q.isStrictMode=function(x){return j(x)===i},Q.isSuspense=function(x){return j(x)===d},Q.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===r||x===u||x===o||x===i||x===d||x===f||typeof x=="object"&&x!==null&&(x.$$typeof===g||x.$$typeof===p||x.$$typeof===s||x.$$typeof===a||x.$$typeof===l||x.$$typeof===y||x.$$typeof===k||x.$$typeof===N||x.$$typeof===v)},Q.typeOf=j,Q}var ee={};/** @license React v16.13.1
22
+ */var Yr;function Na(){if(Yr)return Q;Yr=1;var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,o=t?Symbol.for("react.profiler"):60114,s=t?Symbol.for("react.provider"):60109,a=t?Symbol.for("react.context"):60110,c=t?Symbol.for("react.async_mode"):60111,u=t?Symbol.for("react.concurrent_mode"):60111,l=t?Symbol.for("react.forward_ref"):60112,d=t?Symbol.for("react.suspense"):60113,f=t?Symbol.for("react.suspense_list"):60120,p=t?Symbol.for("react.memo"):60115,g=t?Symbol.for("react.lazy"):60116,v=t?Symbol.for("react.block"):60121,y=t?Symbol.for("react.fundamental"):60117,k=t?Symbol.for("react.responder"):60118,N=t?Symbol.for("react.scope"):60119;function j(x){if(typeof x=="object"&&x!==null){var V=x.$$typeof;switch(V){case e:switch(x=x.type,x){case c:case u:case r:case o:case i:case d:return x;default:switch(x=x&&x.$$typeof,x){case a:case l:case g:case p:case s:return x;default:return V}}case n:return V}}}function T(x){return j(x)===u}return Q.AsyncMode=c,Q.ConcurrentMode=u,Q.ContextConsumer=a,Q.ContextProvider=s,Q.Element=e,Q.ForwardRef=l,Q.Fragment=r,Q.Lazy=g,Q.Memo=p,Q.Portal=n,Q.Profiler=o,Q.StrictMode=i,Q.Suspense=d,Q.isAsyncMode=function(x){return T(x)||j(x)===c},Q.isConcurrentMode=T,Q.isContextConsumer=function(x){return j(x)===a},Q.isContextProvider=function(x){return j(x)===s},Q.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===e},Q.isForwardRef=function(x){return j(x)===l},Q.isFragment=function(x){return j(x)===r},Q.isLazy=function(x){return j(x)===g},Q.isMemo=function(x){return j(x)===p},Q.isPortal=function(x){return j(x)===n},Q.isProfiler=function(x){return j(x)===o},Q.isStrictMode=function(x){return j(x)===i},Q.isSuspense=function(x){return j(x)===d},Q.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===r||x===u||x===o||x===i||x===d||x===f||typeof x=="object"&&x!==null&&(x.$$typeof===g||x.$$typeof===p||x.$$typeof===s||x.$$typeof===a||x.$$typeof===l||x.$$typeof===y||x.$$typeof===k||x.$$typeof===N||x.$$typeof===v)},Q.typeOf=j,Q}var ee={};/** @license React v16.13.1
23
23
  * react-is.development.js
24
24
  *
25
25
  * Copyright (c) Facebook, Inc. and its affiliates.
26
26
  *
27
27
  * This source code is licensed under the MIT license found in the
28
28
  * LICENSE file in the root directory of this source tree.
29
- */var Qr;function ja(){return Qr||(Qr=1,process.env.NODE_ENV!=="production"&&function(){var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,o=t?Symbol.for("react.profiler"):60114,s=t?Symbol.for("react.provider"):60109,a=t?Symbol.for("react.context"):60110,c=t?Symbol.for("react.async_mode"):60111,u=t?Symbol.for("react.concurrent_mode"):60111,l=t?Symbol.for("react.forward_ref"):60112,d=t?Symbol.for("react.suspense"):60113,f=t?Symbol.for("react.suspense_list"):60120,p=t?Symbol.for("react.memo"):60115,g=t?Symbol.for("react.lazy"):60116,v=t?Symbol.for("react.block"):60121,y=t?Symbol.for("react.fundamental"):60117,k=t?Symbol.for("react.responder"):60118,N=t?Symbol.for("react.scope"):60119;function j(A){return typeof A=="string"||typeof A=="function"||A===r||A===u||A===o||A===i||A===d||A===f||typeof A=="object"&&A!==null&&(A.$$typeof===g||A.$$typeof===p||A.$$typeof===s||A.$$typeof===a||A.$$typeof===l||A.$$typeof===y||A.$$typeof===k||A.$$typeof===N||A.$$typeof===v)}function T(A){if(typeof A=="object"&&A!==null){var $e=A.$$typeof;switch($e){case e:var xt=A.type;switch(xt){case c:case u:case r:case o:case i:case d:return xt;default:var Br=xt&&xt.$$typeof;switch(Br){case a:case l:case g:case p:case s:return Br;default:return $e}}case n:return $e}}}var x=c,V=u,R=a,_=s,L=e,D=l,W=r,U=g,q=p,z=n,Y=o,te=i,oe=d,ne=!1;function B(A){return ne||(ne=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),b(A)||T(A)===c}function b(A){return T(A)===u}function w(A){return T(A)===a}function C(A){return T(A)===s}function O(A){return typeof A=="object"&&A!==null&&A.$$typeof===e}function P(A){return T(A)===l}function H(A){return T(A)===r}function M(A){return T(A)===g}function I(A){return T(A)===p}function F(A){return T(A)===n}function Z(A){return T(A)===o}function K(A){return T(A)===i}function me(A){return T(A)===d}ee.AsyncMode=x,ee.ConcurrentMode=V,ee.ContextConsumer=R,ee.ContextProvider=_,ee.Element=L,ee.ForwardRef=D,ee.Fragment=W,ee.Lazy=U,ee.Memo=q,ee.Portal=z,ee.Profiler=Y,ee.StrictMode=te,ee.Suspense=oe,ee.isAsyncMode=B,ee.isConcurrentMode=b,ee.isContextConsumer=w,ee.isContextProvider=C,ee.isElement=O,ee.isForwardRef=P,ee.isFragment=H,ee.isLazy=M,ee.isMemo=I,ee.isPortal=F,ee.isProfiler=Z,ee.isStrictMode=K,ee.isSuspense=me,ee.isValidElementType=j,ee.typeOf=T}()),ee}process.env.NODE_ENV==="production"?zn.exports=Pa():zn.exports=ja();var Qt=zn.exports,fo=Qt,Aa={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},_a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ho={};ho[fo.ForwardRef]=Aa;ho[fo.Memo]=_a;var La=!0;function gr(t,e,n){var r="";return n.split(" ").forEach(function(i){t[i]!==void 0?e.push(t[i]+";"):r+=i+" "}),r}var en=function(e,n,r){var i=e.key+"-"+n.name;(r===!1||La===!1)&&e.registered[i]===void 0&&(e.registered[i]=n.styles)},tn=function(e,n,r){en(e,n,r);var i=e.key+"-"+n.name;if(e.inserted[n.name]===void 0){var o=n;do e.insert(n===o?"."+i:"",o,e.sheet,!0),o=o.next;while(o!==void 0)}};function Da(t){for(var e=0,n,r=0,i=t.length;i>=4;++r,i-=4)n=t.charCodeAt(r)&255|(t.charCodeAt(++r)&255)<<8|(t.charCodeAt(++r)&255)<<16|(t.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(i){case 3:e^=(t.charCodeAt(r+2)&255)<<16;case 2:e^=(t.charCodeAt(r+1)&255)<<8;case 1:e^=t.charCodeAt(r)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var Ma={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},ei=`You have illegal escape sequence in your template literal, most likely inside content's property value.
29
+ */var Kr;function Ta(){return Kr||(Kr=1,process.env.NODE_ENV!=="production"&&function(){var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,o=t?Symbol.for("react.profiler"):60114,s=t?Symbol.for("react.provider"):60109,a=t?Symbol.for("react.context"):60110,c=t?Symbol.for("react.async_mode"):60111,u=t?Symbol.for("react.concurrent_mode"):60111,l=t?Symbol.for("react.forward_ref"):60112,d=t?Symbol.for("react.suspense"):60113,f=t?Symbol.for("react.suspense_list"):60120,p=t?Symbol.for("react.memo"):60115,g=t?Symbol.for("react.lazy"):60116,v=t?Symbol.for("react.block"):60121,y=t?Symbol.for("react.fundamental"):60117,k=t?Symbol.for("react.responder"):60118,N=t?Symbol.for("react.scope"):60119;function j(A){return typeof A=="string"||typeof A=="function"||A===r||A===u||A===o||A===i||A===d||A===f||typeof A=="object"&&A!==null&&(A.$$typeof===g||A.$$typeof===p||A.$$typeof===s||A.$$typeof===a||A.$$typeof===l||A.$$typeof===y||A.$$typeof===k||A.$$typeof===N||A.$$typeof===v)}function T(A){if(typeof A=="object"&&A!==null){var $e=A.$$typeof;switch($e){case e:var xt=A.type;switch(xt){case c:case u:case r:case o:case i:case d:return xt;default:var Dr=xt&&xt.$$typeof;switch(Dr){case a:case l:case g:case p:case s:return Dr;default:return $e}}case n:return $e}}}var x=c,V=u,R=a,_=s,L=e,M=l,W=r,U=g,q=p,z=n,Y=o,te=i,oe=d,ne=!1;function B(A){return ne||(ne=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),b(A)||T(A)===c}function b(A){return T(A)===u}function w(A){return T(A)===a}function C(A){return T(A)===s}function O(A){return typeof A=="object"&&A!==null&&A.$$typeof===e}function P(A){return T(A)===l}function H(A){return T(A)===r}function D(A){return T(A)===g}function I(A){return T(A)===p}function F(A){return T(A)===n}function Z(A){return T(A)===o}function K(A){return T(A)===i}function me(A){return T(A)===d}ee.AsyncMode=x,ee.ConcurrentMode=V,ee.ContextConsumer=R,ee.ContextProvider=_,ee.Element=L,ee.ForwardRef=M,ee.Fragment=W,ee.Lazy=U,ee.Memo=q,ee.Portal=z,ee.Profiler=Y,ee.StrictMode=te,ee.Suspense=oe,ee.isAsyncMode=B,ee.isConcurrentMode=b,ee.isContextConsumer=w,ee.isContextProvider=C,ee.isElement=O,ee.isForwardRef=P,ee.isFragment=H,ee.isLazy=D,ee.isMemo=I,ee.isPortal=F,ee.isProfiler=Z,ee.isStrictMode=K,ee.isSuspense=me,ee.isValidElementType=j,ee.typeOf=T}()),ee}process.env.NODE_ENV==="production"?Hn.exports=Na():Hn.exports=Ta();var Qt=Hn.exports,lo=Qt,Ra={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Pa={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},uo={};uo[lo.ForwardRef]=Ra;uo[lo.Memo]=Pa;var ja=!0;function hr(t,e,n){var r="";return n.split(" ").forEach(function(i){t[i]!==void 0?e.push(t[i]+";"):r+=i+" "}),r}var en=function(e,n,r){var i=e.key+"-"+n.name;(r===!1||ja===!1)&&e.registered[i]===void 0&&(e.registered[i]=n.styles)},tn=function(e,n,r){en(e,n,r);var i=e.key+"-"+n.name;if(e.inserted[n.name]===void 0){var o=n;do e.insert(n===o?"."+i:"",o,e.sheet,!0),o=o.next;while(o!==void 0)}};function Aa(t){for(var e=0,n,r=0,i=t.length;i>=4;++r,i-=4)n=t.charCodeAt(r)&255|(t.charCodeAt(++r)&255)<<8|(t.charCodeAt(++r)&255)<<16|(t.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(i){case 3:e^=(t.charCodeAt(r+2)&255)<<16;case 2:e^=(t.charCodeAt(r+1)&255)<<8;case 1:e^=t.charCodeAt(r)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var _a={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Zr=`You have illegal escape sequence in your template literal, most likely inside content's property value.
30
30
  Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
31
31
  You can read more about this here:
32
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,Ia="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",Va=/[A-Z]|^ms/g,po=/_EMO_([^_]+?)_([^]*?)_EMO_/g,yr=function(e){return e.charCodeAt(1)===45},ti=function(e){return e!=null&&typeof e!="boolean"},wn=no(function(t){return yr(t)?t:t.replace(Va,"-$&").toLowerCase()}),Bt=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(po,function(r,i,o){return Oe={name:i,styles:o,next:Oe},i})}return Ma[e]!==1&&!yr(e)&&typeof n=="number"&&n!==0?n+"px":n};if(process.env.NODE_ENV!=="production"){var Ha=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,za=["normal","none","initial","inherit","unset"],Ba=Bt,Wa=/^-ms-/,Ua=/-(.)/g,ni={};Bt=function(e,n){if(e==="content"&&(typeof n!="string"||za.indexOf(n)===-1&&!Ha.test(n)&&(n.charAt(0)!==n.charAt(n.length-1)||n.charAt(0)!=='"'&&n.charAt(0)!=="'")))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+n+"\"'`");var r=Ba(e,n);return r!==""&&!yr(e)&&e.indexOf("-")!==-1&&ni[e]===void 0&&(ni[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(Wa,"ms-").replace(Ua,function(i,o){return o.toUpperCase()})+"?")),r}}var mo="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function gt(t,e,n){if(n==null)return"";if(n.__emotion_styles!==void 0){if(process.env.NODE_ENV!=="production"&&n.toString()==="NO_COMPONENT_SELECTOR")throw new Error(mo);return n}switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Oe={name:n.name,styles:n.styles,next:Oe},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Oe={name:r.name,styles:r.styles,next:Oe},r=r.next;var i=n.styles+";";return process.env.NODE_ENV!=="production"&&n.map!==void 0&&(i+=n.map),i}return Fa(t,e,n)}case"function":{if(t!==void 0){var o=Oe,s=n(t);return Oe=o,gt(t,e,s)}else process.env.NODE_ENV!=="production"&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break}case"string":if(process.env.NODE_ENV!=="production"){var a=[],c=n.replace(po,function(l,d,f){var p="animation"+a.length;return a.push("const "+p+" = keyframes`"+f.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+p+"}"});a.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(a,["`"+c+"`"]).join(`
32
+ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,La="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",Ma=/[A-Z]|^ms/g,fo=/_EMO_([^_]+?)_([^]*?)_EMO_/g,pr=function(e){return e.charCodeAt(1)===45},Gr=function(e){return e!=null&&typeof e!="boolean"},xn=eo(function(t){return pr(t)?t:t.replace(Ma,"-$&").toLowerCase()}),Bt=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(fo,function(r,i,o){return ke={name:i,styles:o,next:ke},i})}return _a[e]!==1&&!pr(e)&&typeof n=="number"&&n!==0?n+"px":n};if(process.env.NODE_ENV!=="production"){var Da=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,Ia=["normal","none","initial","inherit","unset"],Va=Bt,Ha=/^-ms-/,za=/-(.)/g,Jr={};Bt=function(e,n){if(e==="content"&&(typeof n!="string"||Ia.indexOf(n)===-1&&!Da.test(n)&&(n.charAt(0)!==n.charAt(n.length-1)||n.charAt(0)!=='"'&&n.charAt(0)!=="'")))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+n+"\"'`");var r=Va(e,n);return r!==""&&!pr(e)&&e.indexOf("-")!==-1&&Jr[e]===void 0&&(Jr[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(Ha,"ms-").replace(za,function(i,o){return o.toUpperCase()})+"?")),r}}var ho="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function vt(t,e,n){if(n==null)return"";if(n.__emotion_styles!==void 0){if(process.env.NODE_ENV!=="production"&&n.toString()==="NO_COMPONENT_SELECTOR")throw new Error(ho);return n}switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return ke={name:n.name,styles:n.styles,next:ke},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)ke={name:r.name,styles:r.styles,next:ke},r=r.next;var i=n.styles+";";return process.env.NODE_ENV!=="production"&&n.map!==void 0&&(i+=n.map),i}return Ba(t,e,n)}case"function":{if(t!==void 0){var o=ke,s=n(t);return ke=o,vt(t,e,s)}else process.env.NODE_ENV!=="production"&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break}case"string":if(process.env.NODE_ENV!=="production"){var a=[],c=n.replace(fo,function(l,d,f){var p="animation"+a.length;return a.push("const "+p+" = keyframes`"+f.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+p+"}"});a.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(a,["`"+c+"`"]).join(`
33
33
  `)+`
34
34
 
35
35
  You should wrap it with \`css\` like this:
36
36
 
37
- `+("css`"+c+"`"))}break}if(e==null)return n;var u=e[n];return u!==void 0?u:n}function Fa(t,e,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=gt(t,e,n[i])+";";else for(var o in n){var s=n[o];if(typeof s!="object")e!=null&&e[s]!==void 0?r+=o+"{"+e[s]+"}":ti(s)&&(r+=wn(o)+":"+Bt(o,s)+";");else{if(o==="NO_COMPONENT_SELECTOR"&&process.env.NODE_ENV!=="production")throw new Error(mo);if(Array.isArray(s)&&typeof s[0]=="string"&&(e==null||e[s[0]]===void 0))for(var a=0;a<s.length;a++)ti(s[a])&&(r+=wn(o)+":"+Bt(o,s[a])+";");else{var c=gt(t,e,s);switch(o){case"animation":case"animationName":{r+=wn(o)+":"+c+";";break}default:process.env.NODE_ENV!=="production"&&o==="undefined"&&console.error(Ia),r+=o+"{"+c+"}"}}}}return r}var ri=/label:\s*([^\s;\n{]+)\s*(;|$)/g,vo;process.env.NODE_ENV!=="production"&&(vo=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var Oe,Ge=function(e,n,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var i=!0,o="";Oe=void 0;var s=e[0];s==null||s.raw===void 0?(i=!1,o+=gt(r,n,s)):(process.env.NODE_ENV!=="production"&&s[0]===void 0&&console.error(ei),o+=s[0]);for(var a=1;a<e.length;a++)o+=gt(r,n,e[a]),i&&(process.env.NODE_ENV!=="production"&&s[a]===void 0&&console.error(ei),o+=s[a]);var c;process.env.NODE_ENV!=="production"&&(o=o.replace(vo,function(f){return c=f,""})),ri.lastIndex=0;for(var u="",l;(l=ri.exec(o))!==null;)u+="-"+l[1];var d=Da(o)+u;return process.env.NODE_ENV!=="production"?{name:d,styles:o,map:c,next:Oe,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}:{name:d,styles:o,next:Oe}},qa=function(e){return e()},go=ae["useInsertionEffect"]?ae["useInsertionEffect"]:!1,br=go||qa,ii=go||ae.useLayoutEffect,Ya={}.hasOwnProperty,xr=ae.createContext(typeof HTMLElement<"u"?Ta({key:"css"}):null);process.env.NODE_ENV!=="production"&&(xr.displayName="EmotionCacheContext");xr.Provider;var nn=function(e){return m.forwardRef(function(n,r){var i=m.useContext(xr);return e(n,i,r)})},bt=ae.createContext({});process.env.NODE_ENV!=="production"&&(bt.displayName="EmotionThemeContext");var oi="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",si="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",Ka=function(e){var n=e.cache,r=e.serialized,i=e.isStringTag;return en(n,r,i),br(function(){return tn(n,r,i)}),null},Za=nn(function(t,e,n){var r=t.css;typeof r=="string"&&e.registered[r]!==void 0&&(r=e.registered[r]);var i=t[oi],o=[r],s="";typeof t.className=="string"?s=gr(e.registered,o,t.className):t.className!=null&&(s=t.className+" ");var a=Ge(o,void 0,ae.useContext(bt));if(process.env.NODE_ENV!=="production"&&a.name.indexOf("-")===-1){var c=t[si];c&&(a=Ge([a,"label:"+c+";"]))}s+=e.key+"-"+a.name;var u={};for(var l in t)Ya.call(t,l)&&l!=="css"&&l!==oi&&(process.env.NODE_ENV==="production"||l!==si)&&(u[l]=t[l]);return u.ref=n,u.className=s,ae.createElement(ae.Fragment,null,ae.createElement(Ka,{cache:e,serialized:a,isStringTag:typeof i=="string"}),ae.createElement(i,u))});process.env.NODE_ENV!=="production"&&(Za.displayName="EmotionCssPropInternal");var Ga={name:"@emotion/react",version:"11.11.1",main:"dist/emotion-react.cjs.js",module:"dist/emotion-react.esm.js",browser:{"./dist/emotion-react.esm.js":"./dist/emotion-react.browser.esm.js"},exports:{".":{module:{worker:"./dist/emotion-react.worker.esm.js",browser:"./dist/emotion-react.browser.esm.js",default:"./dist/emotion-react.esm.js"},import:"./dist/emotion-react.cjs.mjs",default:"./dist/emotion-react.cjs.js"},"./jsx-runtime":{module:{worker:"./jsx-runtime/dist/emotion-react-jsx-runtime.worker.esm.js",browser:"./jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.esm.js"},import:"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.mjs",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.js"},"./_isolated-hnrs":{module:{worker:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.worker.esm.js",browser:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.esm.js"},import:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.mjs",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js"},"./jsx-dev-runtime":{module:{worker:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.worker.esm.js",browser:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.esm.js",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.esm.js"},import:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.mjs",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.js"},"./package.json":"./package.json","./types/css-prop":"./types/css-prop.d.ts","./macro":{types:{import:"./macro.d.mts",default:"./macro.d.ts"},default:"./macro.js"}},types:"types/index.d.ts",files:["src","dist","jsx-runtime","jsx-dev-runtime","_isolated-hnrs","types/*.d.ts","macro.*"],sideEffects:!1,author:"Emotion Contributors",license:"MIT",scripts:{"test:typescript":"dtslint types"},dependencies:{"@babel/runtime":"^7.18.3","@emotion/babel-plugin":"^11.11.0","@emotion/cache":"^11.11.0","@emotion/serialize":"^1.1.2","@emotion/use-insertion-effect-with-fallbacks":"^1.0.1","@emotion/utils":"^1.2.1","@emotion/weak-memoize":"^0.3.1","hoist-non-react-statics":"^3.3.1"},peerDependencies:{react:">=16.8.0"},peerDependenciesMeta:{"@types/react":{optional:!0}},devDependencies:{"@definitelytyped/dtslint":"0.0.112","@emotion/css":"11.11.0","@emotion/css-prettifier":"1.1.3","@emotion/server":"11.11.0","@emotion/styled":"11.11.0","html-tag-names":"^1.1.2",react:"16.14.0","svg-tag-names":"^1.1.1",typescript:"^4.5.5"},repository:"https://github.com/emotion-js/emotion/tree/main/packages/react",publishConfig:{access:"public"},"umd:main":"dist/emotion-react.umd.min.js",preconstruct:{entrypoints:["./index.js","./jsx-runtime.js","./jsx-dev-runtime.js","./_isolated-hnrs.js"],umdName:"emotionReact",exports:{envConditions:["browser","worker"],extra:{"./types/css-prop":"./types/css-prop.d.ts","./macro":{types:{import:"./macro.d.mts",default:"./macro.d.ts"},default:"./macro.js"}}}}},ai=!1,Ja=nn(function(t,e){process.env.NODE_ENV!=="production"&&!ai&&(t.className||t.css)&&(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),ai=!0);var n=t.styles,r=Ge([n],void 0,ae.useContext(bt)),i=ae.useRef();return ii(function(){var o=e.key+"-global",s=new e.sheet.constructor({key:o,nonce:e.sheet.nonce,container:e.sheet.container,speedy:e.sheet.isSpeedy}),a=!1,c=document.querySelector('style[data-emotion="'+o+" "+r.name+'"]');return e.sheet.tags.length&&(s.before=e.sheet.tags[0]),c!==null&&(a=!0,c.setAttribute("data-emotion",o),s.hydrate([c])),i.current=[s,a],function(){s.flush()}},[e]),ii(function(){var o=i.current,s=o[0],a=o[1];if(a){o[1]=!1;return}if(r.next!==void 0&&tn(e,r.next,!0),s.tags.length){var c=s.tags[s.tags.length-1].nextElementSibling;s.before=c,s.flush()}e.insert("",r,s,!1)},[e,r.name]),null});process.env.NODE_ENV!=="production"&&(Ja.displayName="EmotionGlobal");function G(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return Ge(e)}var wr=function(){var e=G.apply(void 0,arguments),n="animation-"+e.name;return{name:n,styles:"@keyframes "+n+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},Xa=function t(e){for(var n=e.length,r=0,i="";r<n;r++){var o=e[r];if(o!=null){var s=void 0;switch(typeof o){case"boolean":break;case"object":{if(Array.isArray(o))s=t(o);else{process.env.NODE_ENV!=="production"&&o.styles!==void 0&&o.name!==void 0&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),s="";for(var a in o)o[a]&&a&&(s&&(s+=" "),s+=a)}break}default:s=o}s&&(i&&(i+=" "),i+=s)}}return i};function Qa(t,e,n){var r=[],i=gr(t,r,n);return r.length<2?n:i+e(r)}var ec=function(e){var n=e.cache,r=e.serializedArr;return br(function(){for(var i=0;i<r.length;i++)tn(n,r[i],!1)}),null},tc=nn(function(t,e){var n=!1,r=[],i=function(){if(n&&process.env.NODE_ENV!=="production")throw new Error("css can only be used during render");for(var u=arguments.length,l=new Array(u),d=0;d<u;d++)l[d]=arguments[d];var f=Ge(l,e.registered);return r.push(f),en(e,f,!1),e.key+"-"+f.name},o=function(){if(n&&process.env.NODE_ENV!=="production")throw new Error("cx can only be used during render");for(var u=arguments.length,l=new Array(u),d=0;d<u;d++)l[d]=arguments[d];return Qa(e.registered,i,Xa(l))},s={css:i,cx:o,theme:ae.useContext(bt)},a=t.children(s);return n=!0,ae.createElement(ae.Fragment,null,ae.createElement(ec,{cache:e,serializedArr:r}),a)});process.env.NODE_ENV!=="production"&&(tc.displayName="EmotionClassNames");if(process.env.NODE_ENV!=="production"){var ci=!0,nc=typeof jest<"u"||typeof vi<"u";if(ci&&!nc){var li=typeof globalThis<"u"?globalThis:ci?window:global,ui="__EMOTION_REACT_"+Ga.version.split(".")[0]+"__";li[ui]&&console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."),li[ui]=!0}}var rc=Zs,ic=function(e){return e!=="theme"},di=function(e){return typeof e=="string"&&e.charCodeAt(0)>96?rc:ic},fi=function(e,n,r){var i;if(n){var o=n.shouldForwardProp;i=e.__emotion_forwardProp&&o?function(s){return e.__emotion_forwardProp(s)&&o(s)}:o}return typeof i!="function"&&r&&(i=e.__emotion_forwardProp),i},hi=`You have illegal escape sequence in your template literal, most likely inside content's property value.
37
+ `+("css`"+c+"`"))}break}if(e==null)return n;var u=e[n];return u!==void 0?u:n}function Ba(t,e,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=vt(t,e,n[i])+";";else for(var o in n){var s=n[o];if(typeof s!="object")e!=null&&e[s]!==void 0?r+=o+"{"+e[s]+"}":Gr(s)&&(r+=xn(o)+":"+Bt(o,s)+";");else{if(o==="NO_COMPONENT_SELECTOR"&&process.env.NODE_ENV!=="production")throw new Error(ho);if(Array.isArray(s)&&typeof s[0]=="string"&&(e==null||e[s[0]]===void 0))for(var a=0;a<s.length;a++)Gr(s[a])&&(r+=xn(o)+":"+Bt(o,s[a])+";");else{var c=vt(t,e,s);switch(o){case"animation":case"animationName":{r+=xn(o)+":"+c+";";break}default:process.env.NODE_ENV!=="production"&&o==="undefined"&&console.error(La),r+=o+"{"+c+"}"}}}}return r}var Xr=/label:\s*([^\s;\n{]+)\s*(;|$)/g,po;process.env.NODE_ENV!=="production"&&(po=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var ke,Ge=function(e,n,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var i=!0,o="";ke=void 0;var s=e[0];s==null||s.raw===void 0?(i=!1,o+=vt(r,n,s)):(process.env.NODE_ENV!=="production"&&s[0]===void 0&&console.error(Zr),o+=s[0]);for(var a=1;a<e.length;a++)o+=vt(r,n,e[a]),i&&(process.env.NODE_ENV!=="production"&&s[a]===void 0&&console.error(Zr),o+=s[a]);var c;process.env.NODE_ENV!=="production"&&(o=o.replace(po,function(f){return c=f,""})),Xr.lastIndex=0;for(var u="",l;(l=Xr.exec(o))!==null;)u+="-"+l[1];var d=Aa(o)+u;return process.env.NODE_ENV!=="production"?{name:d,styles:o,map:c,next:ke,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}:{name:d,styles:o,next:ke}},Wa=function(e){return e()},mo=ae["useInsertionEffect"]?ae["useInsertionEffect"]:!1,mr=mo||Wa,Qr=mo||ae.useLayoutEffect,Ua={}.hasOwnProperty,vr=ae.createContext(typeof HTMLElement<"u"?Oa({key:"css"}):null);process.env.NODE_ENV!=="production"&&(vr.displayName="EmotionCacheContext");vr.Provider;var nn=function(e){return m.forwardRef(function(n,r){var i=m.useContext(vr);return e(n,i,r)})},bt=ae.createContext({});process.env.NODE_ENV!=="production"&&(bt.displayName="EmotionThemeContext");var ei="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",ti="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",Fa=function(e){var n=e.cache,r=e.serialized,i=e.isStringTag;return en(n,r,i),mr(function(){return tn(n,r,i)}),null},qa=nn(function(t,e,n){var r=t.css;typeof r=="string"&&e.registered[r]!==void 0&&(r=e.registered[r]);var i=t[ei],o=[r],s="";typeof t.className=="string"?s=hr(e.registered,o,t.className):t.className!=null&&(s=t.className+" ");var a=Ge(o,void 0,ae.useContext(bt));if(process.env.NODE_ENV!=="production"&&a.name.indexOf("-")===-1){var c=t[ti];c&&(a=Ge([a,"label:"+c+";"]))}s+=e.key+"-"+a.name;var u={};for(var l in t)Ua.call(t,l)&&l!=="css"&&l!==ei&&(process.env.NODE_ENV==="production"||l!==ti)&&(u[l]=t[l]);return u.ref=n,u.className=s,ae.createElement(ae.Fragment,null,ae.createElement(Fa,{cache:e,serialized:a,isStringTag:typeof i=="string"}),ae.createElement(i,u))});process.env.NODE_ENV!=="production"&&(qa.displayName="EmotionCssPropInternal");var Ya={name:"@emotion/react",version:"11.11.1",main:"dist/emotion-react.cjs.js",module:"dist/emotion-react.esm.js",browser:{"./dist/emotion-react.esm.js":"./dist/emotion-react.browser.esm.js"},exports:{".":{module:{worker:"./dist/emotion-react.worker.esm.js",browser:"./dist/emotion-react.browser.esm.js",default:"./dist/emotion-react.esm.js"},import:"./dist/emotion-react.cjs.mjs",default:"./dist/emotion-react.cjs.js"},"./jsx-runtime":{module:{worker:"./jsx-runtime/dist/emotion-react-jsx-runtime.worker.esm.js",browser:"./jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.esm.js"},import:"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.mjs",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.js"},"./_isolated-hnrs":{module:{worker:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.worker.esm.js",browser:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.esm.js"},import:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.mjs",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js"},"./jsx-dev-runtime":{module:{worker:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.worker.esm.js",browser:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.esm.js",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.esm.js"},import:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.mjs",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.js"},"./package.json":"./package.json","./types/css-prop":"./types/css-prop.d.ts","./macro":{types:{import:"./macro.d.mts",default:"./macro.d.ts"},default:"./macro.js"}},types:"types/index.d.ts",files:["src","dist","jsx-runtime","jsx-dev-runtime","_isolated-hnrs","types/*.d.ts","macro.*"],sideEffects:!1,author:"Emotion Contributors",license:"MIT",scripts:{"test:typescript":"dtslint types"},dependencies:{"@babel/runtime":"^7.18.3","@emotion/babel-plugin":"^11.11.0","@emotion/cache":"^11.11.0","@emotion/serialize":"^1.1.2","@emotion/use-insertion-effect-with-fallbacks":"^1.0.1","@emotion/utils":"^1.2.1","@emotion/weak-memoize":"^0.3.1","hoist-non-react-statics":"^3.3.1"},peerDependencies:{react:">=16.8.0"},peerDependenciesMeta:{"@types/react":{optional:!0}},devDependencies:{"@definitelytyped/dtslint":"0.0.112","@emotion/css":"11.11.0","@emotion/css-prettifier":"1.1.3","@emotion/server":"11.11.0","@emotion/styled":"11.11.0","html-tag-names":"^1.1.2",react:"16.14.0","svg-tag-names":"^1.1.1",typescript:"^4.5.5"},repository:"https://github.com/emotion-js/emotion/tree/main/packages/react",publishConfig:{access:"public"},"umd:main":"dist/emotion-react.umd.min.js",preconstruct:{entrypoints:["./index.js","./jsx-runtime.js","./jsx-dev-runtime.js","./_isolated-hnrs.js"],umdName:"emotionReact",exports:{envConditions:["browser","worker"],extra:{"./types/css-prop":"./types/css-prop.d.ts","./macro":{types:{import:"./macro.d.mts",default:"./macro.d.ts"},default:"./macro.js"}}}}},ni=!1,Ka=nn(function(t,e){process.env.NODE_ENV!=="production"&&!ni&&(t.className||t.css)&&(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),ni=!0);var n=t.styles,r=Ge([n],void 0,ae.useContext(bt)),i=ae.useRef();return Qr(function(){var o=e.key+"-global",s=new e.sheet.constructor({key:o,nonce:e.sheet.nonce,container:e.sheet.container,speedy:e.sheet.isSpeedy}),a=!1,c=document.querySelector('style[data-emotion="'+o+" "+r.name+'"]');return e.sheet.tags.length&&(s.before=e.sheet.tags[0]),c!==null&&(a=!0,c.setAttribute("data-emotion",o),s.hydrate([c])),i.current=[s,a],function(){s.flush()}},[e]),Qr(function(){var o=i.current,s=o[0],a=o[1];if(a){o[1]=!1;return}if(r.next!==void 0&&tn(e,r.next,!0),s.tags.length){var c=s.tags[s.tags.length-1].nextElementSibling;s.before=c,s.flush()}e.insert("",r,s,!1)},[e,r.name]),null});process.env.NODE_ENV!=="production"&&(Ka.displayName="EmotionGlobal");function G(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return Ge(e)}var gr=function(){var e=G.apply(void 0,arguments),n="animation-"+e.name;return{name:n,styles:"@keyframes "+n+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},Za=function t(e){for(var n=e.length,r=0,i="";r<n;r++){var o=e[r];if(o!=null){var s=void 0;switch(typeof o){case"boolean":break;case"object":{if(Array.isArray(o))s=t(o);else{process.env.NODE_ENV!=="production"&&o.styles!==void 0&&o.name!==void 0&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),s="";for(var a in o)o[a]&&a&&(s&&(s+=" "),s+=a)}break}default:s=o}s&&(i&&(i+=" "),i+=s)}}return i};function Ga(t,e,n){var r=[],i=hr(t,r,n);return r.length<2?n:i+e(r)}var Ja=function(e){var n=e.cache,r=e.serializedArr;return mr(function(){for(var i=0;i<r.length;i++)tn(n,r[i],!1)}),null},Xa=nn(function(t,e){var n=!1,r=[],i=function(){if(n&&process.env.NODE_ENV!=="production")throw new Error("css can only be used during render");for(var u=arguments.length,l=new Array(u),d=0;d<u;d++)l[d]=arguments[d];var f=Ge(l,e.registered);return r.push(f),en(e,f,!1),e.key+"-"+f.name},o=function(){if(n&&process.env.NODE_ENV!=="production")throw new Error("cx can only be used during render");for(var u=arguments.length,l=new Array(u),d=0;d<u;d++)l[d]=arguments[d];return Ga(e.registered,i,Za(l))},s={css:i,cx:o,theme:ae.useContext(bt)},a=t.children(s);return n=!0,ae.createElement(ae.Fragment,null,ae.createElement(Ja,{cache:e,serializedArr:r}),a)});process.env.NODE_ENV!=="production"&&(Xa.displayName="EmotionClassNames");if(process.env.NODE_ENV!=="production"){var ri=!0,Qa=typeof jest<"u"||typeof vi<"u";if(ri&&!Qa){var ii=typeof globalThis<"u"?globalThis:ri?window:global,oi="__EMOTION_REACT_"+Ya.version.split(".")[0]+"__";ii[oi]&&console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."),ii[oi]=!0}}var ec=qs,tc=function(e){return e!=="theme"},si=function(e){return typeof e=="string"&&e.charCodeAt(0)>96?ec:tc},ai=function(e,n,r){var i;if(n){var o=n.shouldForwardProp;i=e.__emotion_forwardProp&&o?function(s){return e.__emotion_forwardProp(s)&&o(s)}:o}return typeof i!="function"&&r&&(i=e.__emotion_forwardProp),i},ci=`You have illegal escape sequence in your template literal, most likely inside content's property value.
38
38
  Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
39
39
  You can read more about this here:
40
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,oc=function(e){var n=e.cache,r=e.serialized,i=e.isStringTag;return en(n,r,i),br(function(){return tn(n,r,i)}),null},sc=function t(e,n){if(process.env.NODE_ENV!=="production"&&e===void 0)throw new Error(`You are trying to create a styled element with an undefined component.
41
- You may have forgotten to import it.`);var r=e.__emotion_real===e,i=r&&e.__emotion_base||e,o,s;n!==void 0&&(o=n.label,s=n.target);var a=fi(e,n,r),c=a||di(i),u=!c("as");return function(){var l=arguments,d=r&&e.__emotion_styles!==void 0?e.__emotion_styles.slice(0):[];if(o!==void 0&&d.push("label:"+o+";"),l[0]==null||l[0].raw===void 0)d.push.apply(d,l);else{process.env.NODE_ENV!=="production"&&l[0][0]===void 0&&console.error(hi),d.push(l[0][0]);for(var f=l.length,p=1;p<f;p++)process.env.NODE_ENV!=="production"&&l[0][p]===void 0&&console.error(hi),d.push(l[p],l[0][p])}var g=nn(function(v,y,k){var N=u&&v.as||i,j="",T=[],x=v;if(v.theme==null){x={};for(var V in v)x[V]=v[V];x.theme=ae.useContext(bt)}typeof v.className=="string"?j=gr(y.registered,T,v.className):v.className!=null&&(j=v.className+" ");var R=Ge(d.concat(T),y.registered,x);j+=y.key+"-"+R.name,s!==void 0&&(j+=" "+s);var _=u&&a===void 0?di(N):c,L={};for(var D in v)u&&D==="as"||_(D)&&(L[D]=v[D]);return L.className=j,L.ref=k,ae.createElement(ae.Fragment,null,ae.createElement(oc,{cache:y,serialized:R,isStringTag:typeof N=="string"}),ae.createElement(N,L))});return g.displayName=o!==void 0?o:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",g.defaultProps=e.defaultProps,g.__emotion_real=g,g.__emotion_base=i,g.__emotion_styles=d,g.__emotion_forwardProp=a,Object.defineProperty(g,"toString",{value:function(){return s===void 0&&process.env.NODE_ENV!=="production"?"NO_COMPONENT_SELECTOR":"."+s}}),g.withComponent=function(v,y){return t(v,ue({},n,y,{shouldForwardProp:fi(g,y,!0)})).apply(void 0,d)},g}},ac=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],$=sc.bind();ac.forEach(function(t){$[t]=$(t)});var Bn=(t=>(t.Opera="opera",t.Chrome="chrome",t.Firefox="firefox",t.Safari="safari",t.Edge="edge",t.EdgeChromium="edge-chromium",t.Blink="blink",t.IE="internet-explorer",t))(Bn||{});const pi=()=>{const{opr:t,opera:e,InstallTrigger:n,HTMLElement:r,safari:i,documentMode:o,StyleMedia:s,chrome:a,CSS:c}=window,u=!!t&&!!t.addons||!!e||navigator.userAgent.indexOf(" OPR/")>=0;if(u)return"opera";if(n)return"firefox";const l=(p=>p.toString()==="[object SafariRemoteNotification]")(!i||typeof i<"u"&&i.pushNotification);if(/constructor/i.test(r)||l)return"safari";const d=!!o;if(d)return"internet-explorer";if(!d&&s)return"edge";const f=!!a&&(!!a.webstore||!!a.runtime);if(f)return"chrome";if(f&&navigator.userAgent.indexOf("Edg")!==-1)return"edge-chromium";if((f||u)&&c)return"blink"},cc=["string","number"],Ce=t=>Object.keys(t).reduce((e,n)=>{const r=typeof t[n]>"u"?"":t[n],i=typeof r;if(cc.indexOf(i)>-1){const o=n.substring(0,5);o==="data-"||o==="aria-"?e[us(n)]=r.toString():n.substring(0,4)!=="css-"&&(e[n]=r.toString())}else e[n]=r;return e},{}),lc=t=>new RegExp("^#","i").test(t),uc=t=>({children:e,...n})=>{const{implementation:r,name:i}=t.get("$widget"),{href:o=""}=n;if(lc(o))return h.jsx(gc,{smooth:!0,to:o,children:e});const s=r.bindings.map(u=>u.replace(/\./g,"\\.")).join("|"),c=new RegExp(`^((http[s]?:)?//)?(${s})/([^\\s]+)`).exec(o);if(c&&c.length>=4){const u=c[4];if(r.widgets.get(u)&&!u.startsWith("blob?")&&!u.startsWith(i))return h.jsx(Mu,{widgetName:u,children:e})}return h.jsx("a",{...n,children:e})},yo=t=>{const e={};return Object.keys(t).forEach(n=>{n.indexOf("css-")>-1&&(e[n]=t[n])}),e},dc=t=>{let e="";return Object.keys(yo(t)).forEach(n=>{n.indexOf("css-")>-1&&(e+=`${n.replace("css-","")}:${t[n]};`)}),G`
40
+ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,nc=function(e){var n=e.cache,r=e.serialized,i=e.isStringTag;return en(n,r,i),mr(function(){return tn(n,r,i)}),null},rc=function t(e,n){if(process.env.NODE_ENV!=="production"&&e===void 0)throw new Error(`You are trying to create a styled element with an undefined component.
41
+ You may have forgotten to import it.`);var r=e.__emotion_real===e,i=r&&e.__emotion_base||e,o,s;n!==void 0&&(o=n.label,s=n.target);var a=ai(e,n,r),c=a||si(i),u=!c("as");return function(){var l=arguments,d=r&&e.__emotion_styles!==void 0?e.__emotion_styles.slice(0):[];if(o!==void 0&&d.push("label:"+o+";"),l[0]==null||l[0].raw===void 0)d.push.apply(d,l);else{process.env.NODE_ENV!=="production"&&l[0][0]===void 0&&console.error(ci),d.push(l[0][0]);for(var f=l.length,p=1;p<f;p++)process.env.NODE_ENV!=="production"&&l[0][p]===void 0&&console.error(ci),d.push(l[p],l[0][p])}var g=nn(function(v,y,k){var N=u&&v.as||i,j="",T=[],x=v;if(v.theme==null){x={};for(var V in v)x[V]=v[V];x.theme=ae.useContext(bt)}typeof v.className=="string"?j=hr(y.registered,T,v.className):v.className!=null&&(j=v.className+" ");var R=Ge(d.concat(T),y.registered,x);j+=y.key+"-"+R.name,s!==void 0&&(j+=" "+s);var _=u&&a===void 0?si(N):c,L={};for(var M in v)u&&M==="as"||_(M)&&(L[M]=v[M]);return L.className=j,L.ref=k,ae.createElement(ae.Fragment,null,ae.createElement(nc,{cache:y,serialized:R,isStringTag:typeof N=="string"}),ae.createElement(N,L))});return g.displayName=o!==void 0?o:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",g.defaultProps=e.defaultProps,g.__emotion_real=g,g.__emotion_base=i,g.__emotion_styles=d,g.__emotion_forwardProp=a,Object.defineProperty(g,"toString",{value:function(){return s===void 0&&process.env.NODE_ENV!=="production"?"NO_COMPONENT_SELECTOR":"."+s}}),g.withComponent=function(v,y){return t(v,ue({},n,y,{shouldForwardProp:ai(g,y,!0)})).apply(void 0,d)},g}},ic=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],$=rc.bind();ic.forEach(function(t){$[t]=$(t)});var zn=(t=>(t.Opera="opera",t.Chrome="chrome",t.Firefox="firefox",t.Safari="safari",t.Edge="edge",t.EdgeChromium="edge-chromium",t.Blink="blink",t.IE="internet-explorer",t))(zn||{});const li=()=>{const{opr:t,opera:e,InstallTrigger:n,HTMLElement:r,safari:i,documentMode:o,StyleMedia:s,chrome:a,CSS:c}=window,u=!!t&&!!t.addons||!!e||navigator.userAgent.indexOf(" OPR/")>=0;if(u)return"opera";if(n)return"firefox";const l=(p=>p.toString()==="[object SafariRemoteNotification]")(!i||typeof i<"u"&&i.pushNotification);if(/constructor/i.test(r)||l)return"safari";const d=!!o;if(d)return"internet-explorer";if(!d&&s)return"edge";const f=!!a&&(!!a.webstore||!!a.runtime);if(f)return"chrome";if(f&&navigator.userAgent.indexOf("Edg")!==-1)return"edge-chromium";if((f||u)&&c)return"blink"},oc=["string","number"],Ee=t=>Object.keys(t).reduce((e,n)=>{const r=typeof t[n]>"u"?"":t[n],i=typeof r;if(oc.indexOf(i)>-1){const o=n.substring(0,5);o==="data-"||o==="aria-"?e[cs(n)]=r.toString():n.substring(0,4)!=="css-"&&(e[n]=r.toString())}else e[n]=r;return e},{}),sc=t=>new RegExp("^#","i").test(t),ac=t=>({children:e,...n})=>{const{implementation:r,name:i}=t.get("$widget"),{href:o=""}=n;if(sc(o))return h.jsx(pc,{smooth:!0,to:o,children:e});const s=r.bindings.map(u=>u.replace(/\./g,"\\.")).join("|"),c=new RegExp(`^((http[s]?:)?//)?(${s})/([^\\s]+)`).exec(o);if(c&&c.length>=4){const u=c[4];if(r.widgets.get(u)&&!u.startsWith("blob?")&&!u.startsWith(i))return h.jsx(Lu,{widgetName:u,children:e})}return h.jsx("a",{...n,children:e})},vo=t=>{const e={};return Object.keys(t).forEach(n=>{n.indexOf("css-")>-1&&(e[n]=t[n])}),e},cc=t=>{let e="";return Object.keys(vo(t)).forEach(n=>{n.indexOf("css-")>-1&&(e+=`${n.replace("css-","")}:${t[n]};`)}),G`
42
42
  ${e}
43
- `},fc=(t,e)=>{let n="";const r=()=>{n=""},i=l=>{const d=document.getElementById(n);return d!==null?(l(d),r(),!0):!1},o=l=>(l.preventDefault(),r(),t.onClick&&t.onClick(l),typeof t.to=="string"&&(n=t.to.split("#").slice(1).join("#")),n!==""&&i(t.scroll||(d=>t.smooth?d.scrollIntoView({behavior:"smooth"}):d.scrollIntoView())),!1),{scroll:s,smooth:a,to:c,...u}=t;return e==="a"&&(u.href="javascript:;"),h.jsx(e,{...u,onClick:o,children:t.children})},Je=t=>(e,n)=>{let r=e,i="";if(["h1","h2","h3","h4","h5","h6"].includes(e))r=e;else{const a=e.match(/h1|h2|h3|h4|h5|h6/);if(a!=null&&a[0]){r=a[0];const[c]=e.split(r);i=c}}const s=((a,c,u)=>u[a]?`${c}${u[a]}`:`${c}${a}`)(r,i,t.theme.typographyVariantMapping||{});return G`
43
+ `},lc=(t,e)=>{let n="";const r=()=>{n=""},i=l=>{const d=document.getElementById(n);return d!==null?(l(d),r(),!0):!1},o=l=>(l.preventDefault(),r(),t.onClick&&t.onClick(l),typeof t.to=="string"&&(n=t.to.split("#").slice(1).join("#")),n!==""&&i(t.scroll||(d=>t.smooth?d.scrollIntoView({behavior:"smooth"}):d.scrollIntoView())),!1),{scroll:s,smooth:a,to:c,...u}=t;return e==="a"&&(u.href="javascript:;"),h.jsx(e,{...u,onClick:o,children:t.children})},Je=t=>(e,n)=>{let r=e,i="";if(["h1","h2","h3","h4","h5","h6"].includes(e))r=e;else{const a=e.match(/h1|h2|h3|h4|h5|h6/);if(a!=null&&a[0]){r=a[0];const[c]=e.split(r);i=c}}const s=((a,c,u)=>u[a]?`${c}${u[a]}`:`${c}${a}`)(r,i,t.theme.typographyVariantMapping||{});return G`
44
44
  ${s} {
45
45
  ${n}
46
46
  }
47
- `};var bo={exports:{}};(function(t,e){(function(n,r){t.exports=r(m)})(Ra,function(n){function r(d,f,p,g){return f===void 0&&(f={}),Object.keys(f).reduce(function(v,y){if(/^on.*/.test(y))return v;var k=y;/^(data|aria)-/.test(y)||p.filter(function(R){return R instanceof RegExp?R.test(y):R===y}).length===0&&(k=i(y));var N,j,T=g(d,k);if(T.name==="style")v[T.name]=(N=f.style,j={},N.split(";").filter(function(R){return R.trim()!==""}).forEach(function(R){var _,L=R.split(":");if(L.length>1){var D=function(U){return/^-ms-/.test(U)&&(U=U.substr(1)),U.startsWith("--")?U:i(U)}(L[0].trim()),W=(_=L.slice(1).join(":").trim(),/^\d+$/.test(_)?Number(_):_.replace(/'/g,'"'));j[D]=W}}),j);else{var x=f[y],V=x===""||String(x).toLowerCase()===k.toLowerCase();v[T.name]=T.isBoolean?V:x}return v},{})}function i(d){return d.replace(/(-|:)(.)/g,function(f,p,g){return g.toUpperCase()})}n=n&&n.hasOwnProperty("default")?n.default:n;var o=["table","tbody","thead","tfoot","tr"],s={for:"htmlFor",class:"className",allowfullscreen:["allowFullScreen","allowFullscreen"],autocomplete:"autoComplete",autofocus:["autoFocus"],contenteditable:"contentEditable",spellcheck:"spellCheck",srcdoc:"srcDoc",srcset:"srcSet",itemscope:"itemScope",itemprop:"itemProp",itemtype:"itemType"};function a(d,f){var p=s[f],g=document.createElement(d);if(p)return{name:Array.isArray(p)?p[0]:p,isBoolean:c(g,Array.isArray(p)?p[1]||f:p)};for(var v in g)if(v.toLowerCase()===f.toLowerCase())return{name:v,isBoolean:c(g,v)};return{name:f,isBoolean:c(g,f)}}function c(d,f){return d.setAttribute(f,""),d[f]===!0||u.indexOf(f)>-1}var u=["itemScope"];function l(d,f,p,g){g===void 0&&(g=null);var v=p[d],y=p._;return v?n.createElement(v,f,g):y?y(d,f,g):n.createElement(d,f,g)}return function(d,f){if(f===void 0&&(f={}),typeof d!="string")throw new TypeError("Expected HTML string");var p=document.createElement("div");p.innerHTML=d.trim();var g=Array.from(p.childNodes).map(function(v,y){return function k(N,j,T){var x=T.transform||{},V=T.preserveAttributes||[],R=T.dangerouslySetChildren||["style"],_=x._;if(N.nodeType===8)return null;if(N.nodeType===3){var L=N.textContent;return _?_(L):L}for(var D={},W=N.attributes,U=0;U<W.length;U++)D[W[U].name]=W[U].value;D.key=j.toString();var q=N.tagName.toLowerCase(),z=r(q,D,V,a),Y=Array.from(N.childNodes).map(function(ne,B){return o.indexOf(q)>-1&&ne.nodeType===3&&(ne.textContent=ne.textContent.trim(),ne.textContent==="")?null:k(ne,j+"."+B,T)}).filter(Boolean);if(R.indexOf(q)>-1){var te=N.innerHTML;return te&&(q!=="style"&&q!=="script"&&(te=te.replace(/"/g,"&quot;")),z.dangerouslySetInnerHTML={__html:te.trim()}),l(q,z,x)}var oe=Y.length===0?null:Y;return l(q,z,x,oe)}(v,String(y),f)}).filter(Boolean);return g.length===1?g[0]:g}})})(bo);var hc=bo.exports;const mi=vr(hc);function pc(t,e){return e?mi(t,e):mi(t)}const mc=t=>e=>h.jsx(gu,{attrs:e,htmlBody:t}),vc=(t,e)=>({transform:{a:uc(t),img:mc(e)}}),gc=t=>fc(t,"a"),Ae=m.forwardRef(({className:t,children:e,...n},r)=>h.jsx(yc,{type:"button",className:ie(t,"humany-button"),...Ce(n),ref:r,children:e})),yc=$.button`
47
+ `};var go={exports:{}};(function(t,e){(function(n,r){t.exports=r(m)})($a,function(n){function r(d,f,p,g){return f===void 0&&(f={}),Object.keys(f).reduce(function(v,y){if(/^on.*/.test(y))return v;var k=y;/^(data|aria)-/.test(y)||p.filter(function(R){return R instanceof RegExp?R.test(y):R===y}).length===0&&(k=i(y));var N,j,T=g(d,k);if(T.name==="style")v[T.name]=(N=f.style,j={},N.split(";").filter(function(R){return R.trim()!==""}).forEach(function(R){var _,L=R.split(":");if(L.length>1){var M=function(U){return/^-ms-/.test(U)&&(U=U.substr(1)),U.startsWith("--")?U:i(U)}(L[0].trim()),W=(_=L.slice(1).join(":").trim(),/^\d+$/.test(_)?Number(_):_.replace(/'/g,'"'));j[M]=W}}),j);else{var x=f[y],V=x===""||String(x).toLowerCase()===k.toLowerCase();v[T.name]=T.isBoolean?V:x}return v},{})}function i(d){return d.replace(/(-|:)(.)/g,function(f,p,g){return g.toUpperCase()})}n=n&&n.hasOwnProperty("default")?n.default:n;var o=["table","tbody","thead","tfoot","tr"],s={for:"htmlFor",class:"className",allowfullscreen:["allowFullScreen","allowFullscreen"],autocomplete:"autoComplete",autofocus:["autoFocus"],contenteditable:"contentEditable",spellcheck:"spellCheck",srcdoc:"srcDoc",srcset:"srcSet",itemscope:"itemScope",itemprop:"itemProp",itemtype:"itemType"};function a(d,f){var p=s[f],g=document.createElement(d);if(p)return{name:Array.isArray(p)?p[0]:p,isBoolean:c(g,Array.isArray(p)?p[1]||f:p)};for(var v in g)if(v.toLowerCase()===f.toLowerCase())return{name:v,isBoolean:c(g,v)};return{name:f,isBoolean:c(g,f)}}function c(d,f){return d.setAttribute(f,""),d[f]===!0||u.indexOf(f)>-1}var u=["itemScope"];function l(d,f,p,g){g===void 0&&(g=null);var v=p[d],y=p._;return v?n.createElement(v,f,g):y?y(d,f,g):n.createElement(d,f,g)}return function(d,f){if(f===void 0&&(f={}),typeof d!="string")throw new TypeError("Expected HTML string");var p=document.createElement("div");p.innerHTML=d.trim();var g=Array.from(p.childNodes).map(function(v,y){return function k(N,j,T){var x=T.transform||{},V=T.preserveAttributes||[],R=T.dangerouslySetChildren||["style"],_=x._;if(N.nodeType===8)return null;if(N.nodeType===3){var L=N.textContent;return _?_(L):L}for(var M={},W=N.attributes,U=0;U<W.length;U++)M[W[U].name]=W[U].value;M.key=j.toString();var q=N.tagName.toLowerCase(),z=r(q,M,V,a),Y=Array.from(N.childNodes).map(function(ne,B){return o.indexOf(q)>-1&&ne.nodeType===3&&(ne.textContent=ne.textContent.trim(),ne.textContent==="")?null:k(ne,j+"."+B,T)}).filter(Boolean);if(R.indexOf(q)>-1){var te=N.innerHTML;return te&&(q!=="style"&&q!=="script"&&(te=te.replace(/"/g,"&quot;")),z.dangerouslySetInnerHTML={__html:te.trim()}),l(q,z,x)}var oe=Y.length===0?null:Y;return l(q,z,x,oe)}(v,String(y),f)}).filter(Boolean);return g.length===1?g[0]:g}})})(go);var uc=go.exports;const ui=fr(uc);function dc(t,e){return e?ui(t,e):ui(t)}const fc=t=>e=>h.jsx(mu,{attrs:e,htmlBody:t}),hc=(t,e)=>({transform:{a:ac(t),img:fc(e)}}),pc=t=>lc(t,"a"),je=m.forwardRef(({className:t,children:e,...n},r)=>h.jsx(mc,{type:"button",className:ie(t,"humany-button"),...Ee(n),ref:r,children:e})),mc=$.button`
48
48
  -webkit-appearance: button;
49
49
  text-transform: none;
50
50
  overflow: visible;
@@ -57,13 +57,13 @@ You may have forgotten to import it.`);var r=e.__emotion_real===e,i=r&&e.__emoti
57
57
  line-height: normal;
58
58
  margin: 0;
59
59
  padding: 0;
60
- `;function ot(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}function Wn(t,e){return Wn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Wn(t,e)}function Se(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Wn(t,e)}var Un={exports:{}};/*
60
+ `;function it(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}function Bn(t,e){return Bn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Bn(t,e)}function Ce(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Bn(t,e)}var Wn={exports:{}};/*
61
61
  object-assign
62
62
  (c) Sindre Sorhus
63
63
  @license MIT
64
- */var En,gi;function bc(){if(gi)return En;gi=1;var t=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function i(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var s={},a=0;a<10;a++)s["_"+String.fromCharCode(a)]=a;var c=Object.getOwnPropertyNames(s).map(function(l){return s[l]});if(c.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(l){u[l]=l}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return En=i()?Object.assign:function(o,s){for(var a,c=r(o),u,l=1;l<arguments.length;l++){a=Object(arguments[l]);for(var d in a)e.call(a,d)&&(c[d]=a[d]);if(t){u=t(a);for(var f=0;f<u.length;f++)n.call(a,u[f])&&(c[u[f]]=a[u[f]])}}return c},En}var Cn,yi;function Er(){if(yi)return Cn;yi=1;var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Cn=t,Cn}var Sn,bi;function xo(){return bi||(bi=1,Sn=Function.call.bind(Object.prototype.hasOwnProperty)),Sn}var kn,xi;function xc(){if(xi)return kn;xi=1;var t=function(){};if(process.env.NODE_ENV!=="production"){var e=Er(),n={},r=xo();t=function(o){var s="Warning: "+o;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}}}function i(o,s,a,c,u){if(process.env.NODE_ENV!=="production"){for(var l in o)if(r(o,l)){var d;try{if(typeof o[l]!="function"){var f=Error((c||"React class")+": "+a+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}d=o[l](s,l,c,a,null,e)}catch(g){d=g}if(d&&!(d instanceof Error)&&t((c||"React class")+": type specification of "+a+" `"+l+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in n)){n[d.message]=!0;var p=u?u():"";t("Failed "+a+" type: "+d.message+(p??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},kn=i,kn}var On,wi;function wc(){if(wi)return On;wi=1;var t=Qt,e=bc(),n=Er(),r=xo(),i=xc(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(a){var c="Warning: "+a;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function s(){return null}return On=function(a,c){var u=typeof Symbol=="function"&&Symbol.iterator,l="@@iterator";function d(b){var w=b&&(u&&b[u]||b[l]);if(typeof w=="function")return w}var f="<<anonymous>>",p={array:k("array"),bigint:k("bigint"),bool:k("boolean"),func:k("function"),number:k("number"),object:k("object"),string:k("string"),symbol:k("symbol"),any:N(),arrayOf:j,element:T(),elementType:x(),instanceOf:V,node:D(),objectOf:_,oneOf:R,oneOfType:L,shape:U,exact:q};function g(b,w){return b===w?b!==0||1/b===1/w:b!==b&&w!==w}function v(b,w){this.message=b,this.data=w&&typeof w=="object"?w:{},this.stack=""}v.prototype=Error.prototype;function y(b){if(process.env.NODE_ENV!=="production")var w={},C=0;function O(H,M,I,F,Z,K,me){if(F=F||f,K=K||I,me!==n){if(c){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}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var $e=F+":"+I;!w[$e]&&C<3&&(o("You are manually calling a React.PropTypes validation function for the `"+K+"` prop on `"+F+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),w[$e]=!0,C++)}}return M[I]==null?H?M[I]===null?new v("The "+Z+" `"+K+"` is marked as required "+("in `"+F+"`, but its value is `null`.")):new v("The "+Z+" `"+K+"` is marked as required in "+("`"+F+"`, but its value is `undefined`.")):null:b(M,I,F,Z,K)}var P=O.bind(null,!1);return P.isRequired=O.bind(null,!0),P}function k(b){function w(C,O,P,H,M,I){var F=C[O],Z=te(F);if(Z!==b){var K=oe(F);return new v("Invalid "+H+" `"+M+"` of type "+("`"+K+"` supplied to `"+P+"`, expected ")+("`"+b+"`."),{expectedType:b})}return null}return y(w)}function N(){return y(s)}function j(b){function w(C,O,P,H,M){if(typeof b!="function")return new v("Property `"+M+"` of component `"+P+"` has invalid PropType notation inside arrayOf.");var I=C[O];if(!Array.isArray(I)){var F=te(I);return new v("Invalid "+H+" `"+M+"` of type "+("`"+F+"` supplied to `"+P+"`, expected an array."))}for(var Z=0;Z<I.length;Z++){var K=b(I,Z,P,H,M+"["+Z+"]",n);if(K instanceof Error)return K}return null}return y(w)}function T(){function b(w,C,O,P,H){var M=w[C];if(!a(M)){var I=te(M);return new v("Invalid "+P+" `"+H+"` of type "+("`"+I+"` supplied to `"+O+"`, expected a single ReactElement."))}return null}return y(b)}function x(){function b(w,C,O,P,H){var M=w[C];if(!t.isValidElementType(M)){var I=te(M);return new v("Invalid "+P+" `"+H+"` of type "+("`"+I+"` supplied to `"+O+"`, expected a single ReactElement type."))}return null}return y(b)}function V(b){function w(C,O,P,H,M){if(!(C[O]instanceof b)){var I=b.name||f,F=B(C[O]);return new v("Invalid "+H+" `"+M+"` of type "+("`"+F+"` supplied to `"+P+"`, expected ")+("instance of `"+I+"`."))}return null}return y(w)}function R(b){if(!Array.isArray(b))return process.env.NODE_ENV!=="production"&&(arguments.length>1?o("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):o("Invalid argument supplied to oneOf, expected an array.")),s;function w(C,O,P,H,M){for(var I=C[O],F=0;F<b.length;F++)if(g(I,b[F]))return null;var Z=JSON.stringify(b,function(me,A){var $e=oe(A);return $e==="symbol"?String(A):A});return new v("Invalid "+H+" `"+M+"` of value `"+String(I)+"` "+("supplied to `"+P+"`, expected one of "+Z+"."))}return y(w)}function _(b){function w(C,O,P,H,M){if(typeof b!="function")return new v("Property `"+M+"` of component `"+P+"` has invalid PropType notation inside objectOf.");var I=C[O],F=te(I);if(F!=="object")return new v("Invalid "+H+" `"+M+"` of type "+("`"+F+"` supplied to `"+P+"`, expected an object."));for(var Z in I)if(r(I,Z)){var K=b(I,Z,P,H,M+"."+Z,n);if(K instanceof Error)return K}return null}return y(w)}function L(b){if(!Array.isArray(b))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var w=0;w<b.length;w++){var C=b[w];if(typeof C!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+ne(C)+" at index "+w+"."),s}function O(P,H,M,I,F){for(var Z=[],K=0;K<b.length;K++){var me=b[K],A=me(P,H,M,I,F,n);if(A==null)return null;A.data&&r(A.data,"expectedType")&&Z.push(A.data.expectedType)}var $e=Z.length>0?", expected one of type ["+Z.join(", ")+"]":"";return new v("Invalid "+I+" `"+F+"` supplied to "+("`"+M+"`"+$e+"."))}return y(O)}function D(){function b(w,C,O,P,H){return z(w[C])?null:new v("Invalid "+P+" `"+H+"` supplied to "+("`"+O+"`, expected a ReactNode."))}return y(b)}function W(b,w,C,O,P){return new v((b||"React class")+": "+w+" type `"+C+"."+O+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+P+"`.")}function U(b){function w(C,O,P,H,M){var I=C[O],F=te(I);if(F!=="object")return new v("Invalid "+H+" `"+M+"` of type `"+F+"` "+("supplied to `"+P+"`, expected `object`."));for(var Z in b){var K=b[Z];if(typeof K!="function")return W(P,H,M,Z,oe(K));var me=K(I,Z,P,H,M+"."+Z,n);if(me)return me}return null}return y(w)}function q(b){function w(C,O,P,H,M){var I=C[O],F=te(I);if(F!=="object")return new v("Invalid "+H+" `"+M+"` of type `"+F+"` "+("supplied to `"+P+"`, expected `object`."));var Z=e({},C[O],b);for(var K in Z){var me=b[K];if(r(b,K)&&typeof me!="function")return W(P,H,M,K,oe(me));if(!me)return new v("Invalid "+H+" `"+M+"` key `"+K+"` supplied to `"+P+"`.\nBad object: "+JSON.stringify(C[O],null," ")+`
65
- Valid keys: `+JSON.stringify(Object.keys(b),null," "));var A=me(I,K,P,H,M+"."+K,n);if(A)return A}return null}return y(w)}function z(b){switch(typeof b){case"number":case"string":case"undefined":return!0;case"boolean":return!b;case"object":if(Array.isArray(b))return b.every(z);if(b===null||a(b))return!0;var w=d(b);if(w){var C=w.call(b),O;if(w!==b.entries){for(;!(O=C.next()).done;)if(!z(O.value))return!1}else for(;!(O=C.next()).done;){var P=O.value;if(P&&!z(P[1]))return!1}}else return!1;return!0;default:return!1}}function Y(b,w){return b==="symbol"?!0:w?w["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&w instanceof Symbol:!1}function te(b){var w=typeof b;return Array.isArray(b)?"array":b instanceof RegExp?"object":Y(w,b)?"symbol":w}function oe(b){if(typeof b>"u"||b===null)return""+b;var w=te(b);if(w==="object"){if(b instanceof Date)return"date";if(b instanceof RegExp)return"regexp"}return w}function ne(b){var w=oe(b);switch(w){case"array":case"object":return"an "+w;case"boolean":case"date":case"regexp":return"a "+w;default:return w}}function B(b){return!b.constructor||!b.constructor.name?f:b.constructor.name}return p.checkPropTypes=i,p.resetWarningCache=i.resetWarningCache,p.PropTypes=p,p},On}var $n,Ei;function Ec(){if(Ei)return $n;Ei=1;var t=Er();function e(){}function n(){}return n.resetWarningCache=e,$n=function(){function r(s,a,c,u,l,d){if(d!==t){var f=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 f.name="Invariant Violation",f}}r.isRequired=r;function i(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:e};return o.PropTypes=o,o},$n}if(process.env.NODE_ENV!=="production"){var Cc=Qt,Sc=!0;Un.exports=wc()(Cc.isElement,Sc)}else Un.exports=Ec()();var kc=Un.exports;const E=vr(kc);function Oc(t,e){return t.classList?!!e&&t.classList.contains(e):(" "+(t.className.baseVal||t.className)+" ").indexOf(" "+e+" ")!==-1}function $c(t,e){t.classList?t.classList.add(e):Oc(t,e)||(typeof t.className=="string"?t.className=t.className+" "+e:t.setAttribute("class",(t.className&&t.className.baseVal||"")+" "+e))}function Ci(t,e){return t.replace(new RegExp("(^|\\s)"+e+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Nc(t,e){t.classList?t.classList.remove(e):typeof t.className=="string"?t.className=Ci(t.className,e):t.setAttribute("class",Ci(t.className&&t.className.baseVal||"",e))}const Si={disabled:!1};var Tc=process.env.NODE_ENV!=="production"?E.oneOfType([E.number,E.shape({enter:E.number,exit:E.number,appear:E.number}).isRequired]):null,Rc=process.env.NODE_ENV!=="production"?E.oneOfType([E.string,E.shape({enter:E.string,exit:E.string,active:E.string}),E.shape({enter:E.string,enterDone:E.string,enterActive:E.string,exit:E.string,exitDone:E.string,exitActive:E.string})]):null;const wo=m.createContext(null);var Eo=function(e){return e.scrollTop},ft="unmounted",De="exited",Me="entering",Ue="entered",Fn="exiting",_e=function(t){Se(e,t);function e(r,i){var o;o=t.call(this,r,i)||this;var s=i,a=s&&!s.isMounting?r.enter:r.appear,c;return o.appearStatus=null,r.in?a?(c=De,o.appearStatus=Me):c=Ue:r.unmountOnExit||r.mountOnEnter?c=ft:c=De,o.state={status:c},o.nextCallback=null,o}e.getDerivedStateFromProps=function(i,o){var s=i.in;return s&&o.status===ft?{status:De}:null};var n=e.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var o=null;if(i!==this.props){var s=this.state.status;this.props.in?s!==Me&&s!==Ue&&(o=Me):(s===Me||s===Ue)&&(o=Fn)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,o,s,a;return o=s=a=i,i!=null&&typeof i!="number"&&(o=i.exit,s=i.enter,a=i.appear!==void 0?i.appear:s),{exit:o,enter:s,appear:a}},n.updateStatus=function(i,o){if(i===void 0&&(i=!1),o!==null)if(this.cancelNextCallback(),o===Me){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:dt.findDOMNode(this);s&&Eo(s)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===De&&this.setState({status:ft})},n.performEnter=function(i){var o=this,s=this.props.enter,a=this.context?this.context.isMounting:i,c=this.props.nodeRef?[a]:[dt.findDOMNode(this),a],u=c[0],l=c[1],d=this.getTimeouts(),f=a?d.appear:d.enter;if(!i&&!s||Si.disabled){this.safeSetState({status:Ue},function(){o.props.onEntered(u)});return}this.props.onEnter(u,l),this.safeSetState({status:Me},function(){o.props.onEntering(u,l),o.onTransitionEnd(f,function(){o.safeSetState({status:Ue},function(){o.props.onEntered(u,l)})})})},n.performExit=function(){var i=this,o=this.props.exit,s=this.getTimeouts(),a=this.props.nodeRef?void 0:dt.findDOMNode(this);if(!o||Si.disabled){this.safeSetState({status:De},function(){i.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:Fn},function(){i.props.onExiting(a),i.onTransitionEnd(s.exit,function(){i.safeSetState({status:De},function(){i.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,o){o=this.setNextCallback(o),this.setState(i,o)},n.setNextCallback=function(i){var o=this,s=!0;return this.nextCallback=function(a){s&&(s=!1,o.nextCallback=null,i(a))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(i,o){this.setNextCallback(o);var s=this.props.nodeRef?this.props.nodeRef.current:dt.findDOMNode(this),a=i==null&&!this.props.addEndListener;if(!s||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],u=c[0],l=c[1];this.props.addEndListener(u,l)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===ft)return null;var o=this.props,s=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var a=ot(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return m.createElement(wo.Provider,{value:null},typeof s=="function"?s(i,a):m.cloneElement(m.Children.only(s),a))},e}(m.Component);_e.contextType=wo;_e.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:E.shape({current:typeof Element>"u"?E.any:function(t,e,n,r,i,o){var s=t[e];return E.instanceOf(s&&"ownerDocument"in s?s.ownerDocument.defaultView.Element:Element)(t,e,n,r,i,o)}}),children:E.oneOfType([E.func.isRequired,E.element.isRequired]).isRequired,in:E.bool,mountOnEnter:E.bool,unmountOnExit:E.bool,appear:E.bool,enter:E.bool,exit:E.bool,timeout:function(e){var n=Tc;e.addEndListener||(n=n.isRequired);for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return n.apply(void 0,[e].concat(i))},addEndListener:E.func,onEnter:E.func,onEntering:E.func,onEntered:E.func,onExit:E.func,onExiting:E.func,onExited:E.func}:{};function ze(){}_e.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ze,onEntering:ze,onEntered:ze,onExit:ze,onExiting:ze,onExited:ze};_e.UNMOUNTED=ft;_e.EXITED=De;_e.ENTERING=Me;_e.ENTERED=Ue;_e.EXITING=Fn;const Co=_e;var Pc=function(e,n){return e&&n&&n.split(" ").forEach(function(r){return $c(e,r)})},Nn=function(e,n){return e&&n&&n.split(" ").forEach(function(r){return Nc(e,r)})},Cr=function(t){Se(e,t);function e(){for(var r,i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o))||this,r.appliedClasses={appear:{},enter:{},exit:{}},r.onEnter=function(a,c){var u=r.resolveArguments(a,c),l=u[0],d=u[1];r.removeClasses(l,"exit"),r.addClass(l,d?"appear":"enter","base"),r.props.onEnter&&r.props.onEnter(a,c)},r.onEntering=function(a,c){var u=r.resolveArguments(a,c),l=u[0],d=u[1],f=d?"appear":"enter";r.addClass(l,f,"active"),r.props.onEntering&&r.props.onEntering(a,c)},r.onEntered=function(a,c){var u=r.resolveArguments(a,c),l=u[0],d=u[1],f=d?"appear":"enter";r.removeClasses(l,f),r.addClass(l,f,"done"),r.props.onEntered&&r.props.onEntered(a,c)},r.onExit=function(a){var c=r.resolveArguments(a),u=c[0];r.removeClasses(u,"appear"),r.removeClasses(u,"enter"),r.addClass(u,"exit","base"),r.props.onExit&&r.props.onExit(a)},r.onExiting=function(a){var c=r.resolveArguments(a),u=c[0];r.addClass(u,"exit","active"),r.props.onExiting&&r.props.onExiting(a)},r.onExited=function(a){var c=r.resolveArguments(a),u=c[0];r.removeClasses(u,"exit"),r.addClass(u,"exit","done"),r.props.onExited&&r.props.onExited(a)},r.resolveArguments=function(a,c){return r.props.nodeRef?[r.props.nodeRef.current,a]:[a,c]},r.getClassNames=function(a){var c=r.props.classNames,u=typeof c=="string",l=u&&c?c+"-":"",d=u?""+l+a:c[a],f=u?d+"-active":c[a+"Active"],p=u?d+"-done":c[a+"Done"];return{baseClassName:d,activeClassName:f,doneClassName:p}},r}var n=e.prototype;return n.addClass=function(i,o,s){var a=this.getClassNames(o)[s+"ClassName"],c=this.getClassNames("enter"),u=c.doneClassName;o==="appear"&&s==="done"&&u&&(a+=" "+u),s==="active"&&i&&Eo(i),a&&(this.appliedClasses[o][s]=a,Pc(i,a))},n.removeClasses=function(i,o){var s=this.appliedClasses[o],a=s.base,c=s.active,u=s.done;this.appliedClasses[o]={},a&&Nn(i,a),c&&Nn(i,c),u&&Nn(i,u)},n.render=function(){var i=this.props;i.classNames;var o=ot(i,["classNames"]);return m.createElement(Co,ue({},o,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},e}(m.Component);Cr.defaultProps={classNames:""};Cr.propTypes=process.env.NODE_ENV!=="production"?ue({},Co.propTypes,{classNames:Rc,onEnter:E.func,onEntering:E.func,onEntered:E.func,onExit:E.func,onExiting:E.func,onExited:E.func}):{};const jc=Cr,Ac=m.createContext(new nr);m.createContext(1);const So=m.createContext({id:"",type:"",name:"",branch:""});m.createContext({});const _c=m.createContext(null),Lc=m.createContext(null),He=()=>m.useContext(Ac),Dc=t=>{const e=m.useContext(So),n=kr(),[r,i]=m.useState();return m.useEffect(()=>{if((t||e.id)&&n){const o=n.nodes.get(t||e.id);i(o)}},[t,e.id,n]),r},Sr=()=>{const t=m.useRef(!1);return m.useEffect(()=>(t.current=!0,()=>{t.current=!1}),[]),t},kr=t=>{const e=He(),[n,r]=m.useState(null),i=Sr();return m.useEffect(()=>{Gi.getInstance(t||e).then(o=>{i.current&&r(o)})},[i]),n},Mc=t=>{const e=Dc(t),n=kr(),[r,i]=m.useState({}),o=Sr();return m.useEffect(()=>{e&&o.current&&i(e.attributes.context)},[o,e]),m.useEffect(()=>{if(n){const s=n.events.subscribe("components:context-changed",(a,c)=>{e===c.node&&o.current&&i(c.node.attributes.context)});return()=>{s()}}},[o,n,e]),r},Ke=(t,e,n=window,r=()=>!0)=>{const i=m.useRef(()=>{});m.useEffect(()=>{i.current=e},[e]),m.useEffect(()=>{if(!(n&&r()))return;const s=a=>i.current(a);return n.addEventListener(t,s),()=>{n.removeEventListener(t,s)}},[t,n])},Ic=t=>{const e=He(),{events:n}=(t||e).get("$widget");return n},ht=(t,e)=>{const[n,r]=m.useState(!1),i=m.useCallback(s=>{const{key:a}=s;a===t&&(r(!0),e&&e(s))},[r,e]),o=m.useCallback(({key:s})=>{s===t&&r(!1)},[r]);return Ke("keydown",i,window),Ke("keyup",o,window),n},ko=t=>{const e=m.useRef();return m.useEffect(()=>{e.current=t}),e.current},Oo=()=>m.useContext(_c),Vc=t=>{const e=m.useRef(),n=m.useRef(0);let r;const i=m.useCallback(()=>{var u;(u=e.current)==null||u.classList.add("humany-scrolling"),clearTimeout(r),r=setTimeout(()=>{var l;(l=e.current)==null||l.classList.remove("humany-scrolling")},500)},[e]),o=m.useCallback(u=>{n.current=u.touches[0].clientY},[e]),s=u=>a(u)?u===e.current?u:null:u.parentElement?s(u.parentElement):null,a=u=>u.scrollWidth>u.clientWidth||u.scrollHeight>u.clientHeight,c=m.useCallback(u=>{if(!u.cancelable)return;const l=u.touches[0].clientY,d=s(u.target);if(!d)return;const f=d.scrollTop,p=n.current-l<0?"up":"down",g=f<=0&&p==="up",v=f>=d.scrollHeight-d.offsetHeight&&p==="down";(g||v)&&u.preventDefault(),n.current=l},[e,n]);return Ke("scroll",i,e.current,()=>e.current&&t),Ke("touchstart",o,e.current,()=>e.current&&t),Ke("touchmove",c,e.current,()=>e.current&&t),t?[Hc,e]:["",e]},Hc=`
66
- overflow-y: ${pi()===Bn.Chrome||pi()===Bn.EdgeChromium?"overlay":"auto"};
64
+ */var wn,di;function vc(){if(di)return wn;di=1;var t=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function i(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var s={},a=0;a<10;a++)s["_"+String.fromCharCode(a)]=a;var c=Object.getOwnPropertyNames(s).map(function(l){return s[l]});if(c.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(l){u[l]=l}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return wn=i()?Object.assign:function(o,s){for(var a,c=r(o),u,l=1;l<arguments.length;l++){a=Object(arguments[l]);for(var d in a)e.call(a,d)&&(c[d]=a[d]);if(t){u=t(a);for(var f=0;f<u.length;f++)n.call(a,u[f])&&(c[u[f]]=a[u[f]])}}return c},wn}var En,fi;function yr(){if(fi)return En;fi=1;var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return En=t,En}var Cn,hi;function yo(){return hi||(hi=1,Cn=Function.call.bind(Object.prototype.hasOwnProperty)),Cn}var Sn,pi;function gc(){if(pi)return Sn;pi=1;var t=function(){};if(process.env.NODE_ENV!=="production"){var e=yr(),n={},r=yo();t=function(o){var s="Warning: "+o;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}}}function i(o,s,a,c,u){if(process.env.NODE_ENV!=="production"){for(var l in o)if(r(o,l)){var d;try{if(typeof o[l]!="function"){var f=Error((c||"React class")+": "+a+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}d=o[l](s,l,c,a,null,e)}catch(g){d=g}if(d&&!(d instanceof Error)&&t((c||"React class")+": type specification of "+a+" `"+l+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in n)){n[d.message]=!0;var p=u?u():"";t("Failed "+a+" type: "+d.message+(p??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Sn=i,Sn}var kn,mi;function yc(){if(mi)return kn;mi=1;var t=Qt,e=vc(),n=yr(),r=yo(),i=gc(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(a){var c="Warning: "+a;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function s(){return null}return kn=function(a,c){var u=typeof Symbol=="function"&&Symbol.iterator,l="@@iterator";function d(b){var w=b&&(u&&b[u]||b[l]);if(typeof w=="function")return w}var f="<<anonymous>>",p={array:k("array"),bigint:k("bigint"),bool:k("boolean"),func:k("function"),number:k("number"),object:k("object"),string:k("string"),symbol:k("symbol"),any:N(),arrayOf:j,element:T(),elementType:x(),instanceOf:V,node:M(),objectOf:_,oneOf:R,oneOfType:L,shape:U,exact:q};function g(b,w){return b===w?b!==0||1/b===1/w:b!==b&&w!==w}function v(b,w){this.message=b,this.data=w&&typeof w=="object"?w:{},this.stack=""}v.prototype=Error.prototype;function y(b){if(process.env.NODE_ENV!=="production")var w={},C=0;function O(H,D,I,F,Z,K,me){if(F=F||f,K=K||I,me!==n){if(c){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}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var $e=F+":"+I;!w[$e]&&C<3&&(o("You are manually calling a React.PropTypes validation function for the `"+K+"` prop on `"+F+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),w[$e]=!0,C++)}}return D[I]==null?H?D[I]===null?new v("The "+Z+" `"+K+"` is marked as required "+("in `"+F+"`, but its value is `null`.")):new v("The "+Z+" `"+K+"` is marked as required in "+("`"+F+"`, but its value is `undefined`.")):null:b(D,I,F,Z,K)}var P=O.bind(null,!1);return P.isRequired=O.bind(null,!0),P}function k(b){function w(C,O,P,H,D,I){var F=C[O],Z=te(F);if(Z!==b){var K=oe(F);return new v("Invalid "+H+" `"+D+"` of type "+("`"+K+"` supplied to `"+P+"`, expected ")+("`"+b+"`."),{expectedType:b})}return null}return y(w)}function N(){return y(s)}function j(b){function w(C,O,P,H,D){if(typeof b!="function")return new v("Property `"+D+"` of component `"+P+"` has invalid PropType notation inside arrayOf.");var I=C[O];if(!Array.isArray(I)){var F=te(I);return new v("Invalid "+H+" `"+D+"` of type "+("`"+F+"` supplied to `"+P+"`, expected an array."))}for(var Z=0;Z<I.length;Z++){var K=b(I,Z,P,H,D+"["+Z+"]",n);if(K instanceof Error)return K}return null}return y(w)}function T(){function b(w,C,O,P,H){var D=w[C];if(!a(D)){var I=te(D);return new v("Invalid "+P+" `"+H+"` of type "+("`"+I+"` supplied to `"+O+"`, expected a single ReactElement."))}return null}return y(b)}function x(){function b(w,C,O,P,H){var D=w[C];if(!t.isValidElementType(D)){var I=te(D);return new v("Invalid "+P+" `"+H+"` of type "+("`"+I+"` supplied to `"+O+"`, expected a single ReactElement type."))}return null}return y(b)}function V(b){function w(C,O,P,H,D){if(!(C[O]instanceof b)){var I=b.name||f,F=B(C[O]);return new v("Invalid "+H+" `"+D+"` of type "+("`"+F+"` supplied to `"+P+"`, expected ")+("instance of `"+I+"`."))}return null}return y(w)}function R(b){if(!Array.isArray(b))return process.env.NODE_ENV!=="production"&&(arguments.length>1?o("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):o("Invalid argument supplied to oneOf, expected an array.")),s;function w(C,O,P,H,D){for(var I=C[O],F=0;F<b.length;F++)if(g(I,b[F]))return null;var Z=JSON.stringify(b,function(me,A){var $e=oe(A);return $e==="symbol"?String(A):A});return new v("Invalid "+H+" `"+D+"` of value `"+String(I)+"` "+("supplied to `"+P+"`, expected one of "+Z+"."))}return y(w)}function _(b){function w(C,O,P,H,D){if(typeof b!="function")return new v("Property `"+D+"` of component `"+P+"` has invalid PropType notation inside objectOf.");var I=C[O],F=te(I);if(F!=="object")return new v("Invalid "+H+" `"+D+"` of type "+("`"+F+"` supplied to `"+P+"`, expected an object."));for(var Z in I)if(r(I,Z)){var K=b(I,Z,P,H,D+"."+Z,n);if(K instanceof Error)return K}return null}return y(w)}function L(b){if(!Array.isArray(b))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var w=0;w<b.length;w++){var C=b[w];if(typeof C!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+ne(C)+" at index "+w+"."),s}function O(P,H,D,I,F){for(var Z=[],K=0;K<b.length;K++){var me=b[K],A=me(P,H,D,I,F,n);if(A==null)return null;A.data&&r(A.data,"expectedType")&&Z.push(A.data.expectedType)}var $e=Z.length>0?", expected one of type ["+Z.join(", ")+"]":"";return new v("Invalid "+I+" `"+F+"` supplied to "+("`"+D+"`"+$e+"."))}return y(O)}function M(){function b(w,C,O,P,H){return z(w[C])?null:new v("Invalid "+P+" `"+H+"` supplied to "+("`"+O+"`, expected a ReactNode."))}return y(b)}function W(b,w,C,O,P){return new v((b||"React class")+": "+w+" type `"+C+"."+O+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+P+"`.")}function U(b){function w(C,O,P,H,D){var I=C[O],F=te(I);if(F!=="object")return new v("Invalid "+H+" `"+D+"` of type `"+F+"` "+("supplied to `"+P+"`, expected `object`."));for(var Z in b){var K=b[Z];if(typeof K!="function")return W(P,H,D,Z,oe(K));var me=K(I,Z,P,H,D+"."+Z,n);if(me)return me}return null}return y(w)}function q(b){function w(C,O,P,H,D){var I=C[O],F=te(I);if(F!=="object")return new v("Invalid "+H+" `"+D+"` of type `"+F+"` "+("supplied to `"+P+"`, expected `object`."));var Z=e({},C[O],b);for(var K in Z){var me=b[K];if(r(b,K)&&typeof me!="function")return W(P,H,D,K,oe(me));if(!me)return new v("Invalid "+H+" `"+D+"` key `"+K+"` supplied to `"+P+"`.\nBad object: "+JSON.stringify(C[O],null," ")+`
65
+ Valid keys: `+JSON.stringify(Object.keys(b),null," "));var A=me(I,K,P,H,D+"."+K,n);if(A)return A}return null}return y(w)}function z(b){switch(typeof b){case"number":case"string":case"undefined":return!0;case"boolean":return!b;case"object":if(Array.isArray(b))return b.every(z);if(b===null||a(b))return!0;var w=d(b);if(w){var C=w.call(b),O;if(w!==b.entries){for(;!(O=C.next()).done;)if(!z(O.value))return!1}else for(;!(O=C.next()).done;){var P=O.value;if(P&&!z(P[1]))return!1}}else return!1;return!0;default:return!1}}function Y(b,w){return b==="symbol"?!0:w?w["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&w instanceof Symbol:!1}function te(b){var w=typeof b;return Array.isArray(b)?"array":b instanceof RegExp?"object":Y(w,b)?"symbol":w}function oe(b){if(typeof b>"u"||b===null)return""+b;var w=te(b);if(w==="object"){if(b instanceof Date)return"date";if(b instanceof RegExp)return"regexp"}return w}function ne(b){var w=oe(b);switch(w){case"array":case"object":return"an "+w;case"boolean":case"date":case"regexp":return"a "+w;default:return w}}function B(b){return!b.constructor||!b.constructor.name?f:b.constructor.name}return p.checkPropTypes=i,p.resetWarningCache=i.resetWarningCache,p.PropTypes=p,p},kn}var On,gi;function bc(){if(gi)return On;gi=1;var t=yr();function e(){}function n(){}return n.resetWarningCache=e,On=function(){function r(s,a,c,u,l,d){if(d!==t){var f=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 f.name="Invariant Violation",f}}r.isRequired=r;function i(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:e};return o.PropTypes=o,o},On}if(process.env.NODE_ENV!=="production"){var xc=Qt,wc=!0;Wn.exports=yc()(xc.isElement,wc)}else Wn.exports=bc()();var Ec=Wn.exports;const E=fr(Ec);function Cc(t,e){return t.classList?!!e&&t.classList.contains(e):(" "+(t.className.baseVal||t.className)+" ").indexOf(" "+e+" ")!==-1}function Sc(t,e){t.classList?t.classList.add(e):Cc(t,e)||(typeof t.className=="string"?t.className=t.className+" "+e:t.setAttribute("class",(t.className&&t.className.baseVal||"")+" "+e))}function yi(t,e){return t.replace(new RegExp("(^|\\s)"+e+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function kc(t,e){t.classList?t.classList.remove(e):typeof t.className=="string"?t.className=yi(t.className,e):t.setAttribute("class",yi(t.className&&t.className.baseVal||"",e))}const bi={disabled:!1};var Oc=process.env.NODE_ENV!=="production"?E.oneOfType([E.number,E.shape({enter:E.number,exit:E.number,appear:E.number}).isRequired]):null,$c=process.env.NODE_ENV!=="production"?E.oneOfType([E.string,E.shape({enter:E.string,exit:E.string,active:E.string}),E.shape({enter:E.string,enterDone:E.string,enterActive:E.string,exit:E.string,exitDone:E.string,exitActive:E.string})]):null;const bo=m.createContext(null);var xo=function(e){return e.scrollTop},dt="unmounted",Le="exited",Me="entering",Ue="entered",Un="exiting",Ae=function(t){Ce(e,t);function e(r,i){var o;o=t.call(this,r,i)||this;var s=i,a=s&&!s.isMounting?r.enter:r.appear,c;return o.appearStatus=null,r.in?a?(c=Le,o.appearStatus=Me):c=Ue:r.unmountOnExit||r.mountOnEnter?c=dt:c=Le,o.state={status:c},o.nextCallback=null,o}e.getDerivedStateFromProps=function(i,o){var s=i.in;return s&&o.status===dt?{status:Le}:null};var n=e.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var o=null;if(i!==this.props){var s=this.state.status;this.props.in?s!==Me&&s!==Ue&&(o=Me):(s===Me||s===Ue)&&(o=Un)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,o,s,a;return o=s=a=i,i!=null&&typeof i!="number"&&(o=i.exit,s=i.enter,a=i.appear!==void 0?i.appear:s),{exit:o,enter:s,appear:a}},n.updateStatus=function(i,o){if(i===void 0&&(i=!1),o!==null)if(this.cancelNextCallback(),o===Me){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:ut.findDOMNode(this);s&&xo(s)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Le&&this.setState({status:dt})},n.performEnter=function(i){var o=this,s=this.props.enter,a=this.context?this.context.isMounting:i,c=this.props.nodeRef?[a]:[ut.findDOMNode(this),a],u=c[0],l=c[1],d=this.getTimeouts(),f=a?d.appear:d.enter;if(!i&&!s||bi.disabled){this.safeSetState({status:Ue},function(){o.props.onEntered(u)});return}this.props.onEnter(u,l),this.safeSetState({status:Me},function(){o.props.onEntering(u,l),o.onTransitionEnd(f,function(){o.safeSetState({status:Ue},function(){o.props.onEntered(u,l)})})})},n.performExit=function(){var i=this,o=this.props.exit,s=this.getTimeouts(),a=this.props.nodeRef?void 0:ut.findDOMNode(this);if(!o||bi.disabled){this.safeSetState({status:Le},function(){i.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:Un},function(){i.props.onExiting(a),i.onTransitionEnd(s.exit,function(){i.safeSetState({status:Le},function(){i.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,o){o=this.setNextCallback(o),this.setState(i,o)},n.setNextCallback=function(i){var o=this,s=!0;return this.nextCallback=function(a){s&&(s=!1,o.nextCallback=null,i(a))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(i,o){this.setNextCallback(o);var s=this.props.nodeRef?this.props.nodeRef.current:ut.findDOMNode(this),a=i==null&&!this.props.addEndListener;if(!s||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],u=c[0],l=c[1];this.props.addEndListener(u,l)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===dt)return null;var o=this.props,s=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var a=it(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return m.createElement(bo.Provider,{value:null},typeof s=="function"?s(i,a):m.cloneElement(m.Children.only(s),a))},e}(m.Component);Ae.contextType=bo;Ae.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:E.shape({current:typeof Element>"u"?E.any:function(t,e,n,r,i,o){var s=t[e];return E.instanceOf(s&&"ownerDocument"in s?s.ownerDocument.defaultView.Element:Element)(t,e,n,r,i,o)}}),children:E.oneOfType([E.func.isRequired,E.element.isRequired]).isRequired,in:E.bool,mountOnEnter:E.bool,unmountOnExit:E.bool,appear:E.bool,enter:E.bool,exit:E.bool,timeout:function(e){var n=Oc;e.addEndListener||(n=n.isRequired);for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return n.apply(void 0,[e].concat(i))},addEndListener:E.func,onEnter:E.func,onEntering:E.func,onEntered:E.func,onExit:E.func,onExiting:E.func,onExited:E.func}:{};function ze(){}Ae.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ze,onEntering:ze,onEntered:ze,onExit:ze,onExiting:ze,onExited:ze};Ae.UNMOUNTED=dt;Ae.EXITED=Le;Ae.ENTERING=Me;Ae.ENTERED=Ue;Ae.EXITING=Un;const wo=Ae;var Nc=function(e,n){return e&&n&&n.split(" ").forEach(function(r){return Sc(e,r)})},$n=function(e,n){return e&&n&&n.split(" ").forEach(function(r){return kc(e,r)})},br=function(t){Ce(e,t);function e(){for(var r,i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o))||this,r.appliedClasses={appear:{},enter:{},exit:{}},r.onEnter=function(a,c){var u=r.resolveArguments(a,c),l=u[0],d=u[1];r.removeClasses(l,"exit"),r.addClass(l,d?"appear":"enter","base"),r.props.onEnter&&r.props.onEnter(a,c)},r.onEntering=function(a,c){var u=r.resolveArguments(a,c),l=u[0],d=u[1],f=d?"appear":"enter";r.addClass(l,f,"active"),r.props.onEntering&&r.props.onEntering(a,c)},r.onEntered=function(a,c){var u=r.resolveArguments(a,c),l=u[0],d=u[1],f=d?"appear":"enter";r.removeClasses(l,f),r.addClass(l,f,"done"),r.props.onEntered&&r.props.onEntered(a,c)},r.onExit=function(a){var c=r.resolveArguments(a),u=c[0];r.removeClasses(u,"appear"),r.removeClasses(u,"enter"),r.addClass(u,"exit","base"),r.props.onExit&&r.props.onExit(a)},r.onExiting=function(a){var c=r.resolveArguments(a),u=c[0];r.addClass(u,"exit","active"),r.props.onExiting&&r.props.onExiting(a)},r.onExited=function(a){var c=r.resolveArguments(a),u=c[0];r.removeClasses(u,"exit"),r.addClass(u,"exit","done"),r.props.onExited&&r.props.onExited(a)},r.resolveArguments=function(a,c){return r.props.nodeRef?[r.props.nodeRef.current,a]:[a,c]},r.getClassNames=function(a){var c=r.props.classNames,u=typeof c=="string",l=u&&c?c+"-":"",d=u?""+l+a:c[a],f=u?d+"-active":c[a+"Active"],p=u?d+"-done":c[a+"Done"];return{baseClassName:d,activeClassName:f,doneClassName:p}},r}var n=e.prototype;return n.addClass=function(i,o,s){var a=this.getClassNames(o)[s+"ClassName"],c=this.getClassNames("enter"),u=c.doneClassName;o==="appear"&&s==="done"&&u&&(a+=" "+u),s==="active"&&i&&xo(i),a&&(this.appliedClasses[o][s]=a,Nc(i,a))},n.removeClasses=function(i,o){var s=this.appliedClasses[o],a=s.base,c=s.active,u=s.done;this.appliedClasses[o]={},a&&$n(i,a),c&&$n(i,c),u&&$n(i,u)},n.render=function(){var i=this.props;i.classNames;var o=it(i,["classNames"]);return m.createElement(wo,ue({},o,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},e}(m.Component);br.defaultProps={classNames:""};br.propTypes=process.env.NODE_ENV!=="production"?ue({},wo.propTypes,{classNames:$c,onEnter:E.func,onEntering:E.func,onEntered:E.func,onExit:E.func,onExiting:E.func,onExited:E.func}):{};const Tc=br,Rc=m.createContext(new tr);m.createContext(1);const Pc=m.createContext({id:"",type:"",name:"",branch:""});m.createContext({});const jc=m.createContext(null);m.createContext(null);const He=()=>m.useContext(Rc),Ac=t=>{const e=m.useContext(Pc),n=Eo(),[r,i]=m.useState();return m.useEffect(()=>{if((t||e.id)&&n){const o=n.nodes.get(t||e.id);i(o)}},[t,e.id,n]),r},xr=()=>{const t=m.useRef(!1);return m.useEffect(()=>(t.current=!0,()=>{t.current=!1}),[]),t},Eo=t=>{const e=He(),[n,r]=m.useState(null),i=xr();return m.useEffect(()=>{Yi.getInstance(t||e).then(o=>{i.current&&r(o)})},[i]),n},_c=t=>{const e=Ac(t),n=Eo(),[r,i]=m.useState({}),o=xr();return m.useEffect(()=>{e&&o.current&&i(e.attributes.context)},[o,e]),m.useEffect(()=>{if(n){const s=n.events.subscribe("components:context-changed",(a,c)=>{e===c.node&&o.current&&i(c.node.attributes.context)});return()=>{s()}}},[o,n,e]),r},Ke=(t,e,n=window,r=()=>!0)=>{const i=m.useRef(()=>{});m.useEffect(()=>{i.current=e},[e]),m.useEffect(()=>{if(!(n&&r()))return;const s=a=>i.current(a);return n.addEventListener(t,s),()=>{n.removeEventListener(t,s)}},[t,n])},Lc=t=>{const e=He(),{events:n}=(t||e).get("$widget");return n},ft=(t,e)=>{const[n,r]=m.useState(!1),i=m.useCallback(s=>{const{key:a}=s;a===t&&(r(!0),e&&e(s))},[r,e]),o=m.useCallback(({key:s})=>{s===t&&r(!1)},[r]);return Ke("keydown",i,window),Ke("keyup",o,window),n},Co=t=>{const e=m.useRef();return m.useEffect(()=>{e.current=t}),e.current},So=()=>m.useContext(jc),Mc=t=>{const e=m.useRef(),n=m.useRef(0);let r;const i=m.useCallback(()=>{var u;(u=e.current)==null||u.classList.add("humany-scrolling"),clearTimeout(r),r=setTimeout(()=>{var l;(l=e.current)==null||l.classList.remove("humany-scrolling")},500)},[e]),o=m.useCallback(u=>{n.current=u.touches[0].clientY},[e]),s=u=>a(u)?u===e.current?u:null:u.parentElement?s(u.parentElement):null,a=u=>u.scrollWidth>u.clientWidth||u.scrollHeight>u.clientHeight,c=m.useCallback(u=>{if(!u.cancelable)return;const l=u.touches[0].clientY,d=s(u.target);if(!d)return;const f=d.scrollTop,p=n.current-l<0?"up":"down",g=f<=0&&p==="up",v=f>=d.scrollHeight-d.offsetHeight&&p==="down";(g||v)&&u.preventDefault(),n.current=l},[e,n]);return Ke("scroll",i,e.current,()=>e.current&&t),Ke("touchstart",o,e.current,()=>e.current&&t),Ke("touchmove",c,e.current,()=>e.current&&t),t?[Dc,e]:["",e]},Dc=`
66
+ overflow-y: ${li()===zn.Chrome||li()===zn.EdgeChromium?"overlay":"auto"};
67
67
  overflow-x: hidden;
68
68
  -ms-overflow-style: none; /* IE 10+ */
69
69
  scrollbar-width: thin; /* Firefox */
@@ -90,7 +90,7 @@ Valid keys: `+JSON.stringify(Object.keys(b),null," "));var A=me(I,K,P,H,M+"."+K
90
90
  background-color: #7F7F7F;
91
91
  }
92
92
  }
93
- `,zc=(t=!1)=>{const[e,n]=m.useState(t),r=m.useCallback(i=>{n(typeof i=="boolean"?i:o=>!o)},[]);return[e,r]},Or=(t,e,n=[],r)=>{const i=Ic(r);return m.useEffect(()=>{if(i){const o=i.subscribe(t,e);return()=>{o()}}},[i].concat(n)),o=>i==null?void 0:i.dispatch(t,o)},$o=(t,e)=>{const n=Or("widget:menu-toggled",(r,i)=>{i!==t&&e()});return()=>n(t)},rn=m.forwardRef(({className:t,children:e,...n},r)=>h.jsx("span",{ref:r,className:ie(t,"humany-text"),...Ce(n),children:e})),No=t=>G`
93
+ `,Ic=(t=!1)=>{const[e,n]=m.useState(t),r=m.useCallback(i=>{n(typeof i=="boolean"?i:o=>!o)},[]);return[e,r]},wr=(t,e,n=[],r)=>{const i=Lc(r);return m.useEffect(()=>{if(i){const o=i.subscribe(t,e);return()=>{o()}}},[i].concat(n)),o=>i==null?void 0:i.dispatch(t,o)},ko=(t,e)=>{const n=wr("widget:menu-toggled",(r,i)=>{i!==t&&e()});return()=>n(t)},rn=m.forwardRef(({className:t,children:e,...n},r)=>h.jsx("span",{ref:r,className:ie(t,"humany-text"),...Ee(n),children:e})),Oo=t=>G`
94
94
  display: flex;
95
95
  justify-content: center;
96
96
  flex-direction: column;
@@ -99,7 +99,7 @@ Valid keys: `+JSON.stringify(Object.keys(b),null," "));var A=me(I,K,P,H,M+"."+K
99
99
  border: ${t.theme.border};
100
100
  box-shadow: ${t.theme.boxShadow||"none"};
101
101
  ${t["data-loading"]&&"min-height: 150px;"}
102
- `,$r=t=>{var e,n,r;return G`
102
+ `,Er=t=>{var e,n,r;return G`
103
103
  cursor: pointer;
104
104
  text-align: center;
105
105
  border: none;
@@ -108,8 +108,8 @@ Valid keys: `+JSON.stringify(Object.keys(b),null," "));var A=me(I,K,P,H,M+"."+K
108
108
  border-radius: ${t.theme.borderRadius};
109
109
  font-family: ${(n=t.theme.fonts)==null?void 0:n.type};
110
110
  font-size: ${(r=t.theme.fonts)==null?void 0:r.normal};
111
- `},Bc=t=>{var s;const{primaryColor:e,secondaryColor:n,active:r,theme:i,disabled:o}=t;return G`
112
- ${$r(t)}
111
+ `},Vc=t=>{var s;const{primaryColor:e,secondaryColor:n,active:r,theme:i,disabled:o}=t;return G`
112
+ ${Er(t)}
113
113
  border: 1px solid ${r?n:e};
114
114
  background-color: ${r?e:n};
115
115
 
@@ -146,13 +146,13 @@ Valid keys: `+JSON.stringify(Object.keys(b),null," "));var A=me(I,K,P,H,M+"."+K
146
146
  outline: ${(e=t.theme.accessibility)==null?void 0:e.border};
147
147
  color: ${(r=(n=t.theme.accessibility)==null?void 0:n.colors)==null?void 0:r.inactiveText};
148
148
  border-color: transparent;
149
- `},To=t=>G`
149
+ `},Hc=t=>G`
150
150
  ${ye(t)}
151
151
  text-decoration: underline;
152
- `,Wc=t=>{var e;return G`
152
+ `,zc=t=>{var e;return G`
153
153
  ${ye(t)}
154
154
  outline-offset: ${(e=t.theme.sizes)==null?void 0:e.small};
155
- `},Ro=$(Ae)`
155
+ `},$o=$(je)`
156
156
  position: absolute;
157
157
  top: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.normal}};
158
158
  right: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.normal}};
@@ -192,7 +192,7 @@ Valid keys: `+JSON.stringify(Object.keys(b),null," "));var A=me(I,K,P,H,M+"."+K
192
192
  > li:last-of-type {
193
193
  margin: 0;
194
194
  }
195
- `},Uc=t=>{var e,n,r,i;return G`
195
+ `},Bc=t=>{var e,n,r,i;return G`
196
196
  > div {
197
197
  ${Je(t)("> h1",G`
198
198
  margin: 0 0 ${(e=t.theme.sizes)==null?void 0:e.normal};
@@ -219,7 +219,7 @@ Valid keys: `+JSON.stringify(Object.keys(b),null," "));var A=me(I,K,P,H,M+"."+K
219
219
  text-align: center;
220
220
  }
221
221
  `)}
222
- `},Fc=t=>{var e,n,r,i,o,s;return G`
222
+ `},Wc=t=>{var e,n,r,i,o,s;return G`
223
223
  font-size: ${(e=t.theme.fonts)==null?void 0:e.normal};
224
224
  font-weight: 300;
225
225
  line-height: 1.5em;
@@ -246,7 +246,7 @@ Valid keys: `+JSON.stringify(Object.keys(b),null," "));var A=me(I,K,P,H,M+"."+K
246
246
  a {
247
247
  color: ${(r=t.theme.colors)==null?void 0:r.link};
248
248
  &:focus-visible {
249
- ${To(t)};
249
+ ${Hc(t)};
250
250
  }
251
251
  }
252
252
 
@@ -271,9 +271,9 @@ Valid keys: `+JSON.stringify(Object.keys(b),null," "));var A=me(I,K,P,H,M+"."+K
271
271
  p:only-child {
272
272
  margin: 0;
273
273
  }
274
- `},Nr=({elementId:t="humany-portal-elements",parent:e=document.body,children:n})=>{const[r]=m.useState(()=>{const i=document.getElementById(t)||document.createElement("div");return i.id=t,i});return m.useEffect(()=>(e.appendChild(r),()=>{r.childElementCount<=1&&r.remove()}),[r]),dt.createPortal(n,r)},st=({text:t="",backgroundSize:e="contain",size:n=12,symbol:r={content:"",type:""},elementStyle:i={},className:o,...s})=>{const{type:a,content:c}=r,u={"aria-label":t,role:"presentation"};switch(a){case"Uri":{const l={backgroundSize:e,backgroundImage:`url('${c}')`,backgroundRepeat:"no-repeat",backgroundPosition:"center",backgroundAttachment:"center"};return h.jsx("i",{className:ie(o,"humany-icon","humany-custom-icon"),title:t,style:{...l,...i},...u,...s})}case"Svg":{const l={className:ie(o,"humany-icon"),width:`${n}`,fill:"none",xmlns:"http://www.w3.org/2000/svg",...s,ref:null},d={minWidth:`${n}`};switch(c){case"search":return h.jsxs("svg",{viewBox:"0 0 32 30",...l,children:[h.jsx("circle",{cx:"14.8457",cy:"14.5175",r:"8.14359",transform:"rotate(45 14.8457 14.5175)"}),h.jsx("line",{x1:"21.1001",y1:"20.4865",x2:"26.5798",y2:"25.9661"})]});case"clear":return h.jsxs("svg",{viewBox:"0 0 27 27",...l,children:[h.jsx("circle",{cx:"13.4351",cy:"13.435",r:"9",transform:"rotate(45 13.4351 13.435)",stroke:"black"}),h.jsx("line",{x1:"16.6172",y1:"10.2531",x2:"10.2533",y2:"16.6171",stroke:"black"}),h.jsx("line",{x1:"16.6171",y1:"16.617",x2:"10.2532",y2:"10.2531",stroke:"black"})]});case"close":return h.jsxs("svg",{viewBox:"0 0 13 13",...l,children:[h.jsx("path",{d:"M12.3068 0.50647L1.27246 11.7273",stroke:"black"}),h.jsx("path",{d:"M12.2812 11.9473L1.24686 0.726451",stroke:"black"})]});case"caret-right":return h.jsxs("svg",{viewBox:"0 0 14 14",style:d,...l,children:[h.jsx("line",{x1:"4.13",y1:"1.05",x2:"10.13",y2:"7.05",stroke:"black"}),h.jsx("line",{x1:"10.13",y1:"6.95",x2:"4.13",y2:"12.95",stroke:"black"})]});case"caret-left":return h.jsxs("svg",{viewBox:"0 0 14 14",style:d,...l,children:[h.jsx("line",{x1:"10.13",y1:"12.95",x2:"4.13",y2:"6.95",stroke:"black"}),h.jsx("line",{x1:"4.13",y1:"7.05",x2:"10.13",y2:"1.05",stroke:"black"})]});case"caret-up":return h.jsxs(qc,{viewBox:"0 0 14 14",style:d,...l,children:[h.jsx("line",{x1:"13.09",y1:"3.99",x2:"7.1",y2:"9.99",stroke:"black"}),h.jsx("line",{x1:"7.19",y1:"9.99",x2:"1.19",y2:"3.99",stroke:"black"})]});case"caret-down":return h.jsxs("svg",{viewBox:"0 0 14 14",style:d,...l,children:[h.jsx("line",{x1:"13.09",y1:"3.99",x2:"7.1",y2:"9.99",stroke:"black"}),h.jsx("line",{x1:"7.19",y1:"9.99",x2:"1.19",y2:"3.99",stroke:"black"})]});case"back":return h.jsxs("svg",{viewBox:"0 0 18 18",...l,children:[h.jsx("line",{y1:"-0.5",x2:"11.724",y2:"-0.5",transform:"matrix(-0.682355 -0.731021 0.682355 -0.731021 13 16.9999)",stroke:"white"}),h.jsx("line",{y1:"-0.5",x2:"11.724",y2:"-0.5",transform:"matrix(0.682355 -0.731021 0.682355 0.731021 5 9.5705)",stroke:"white"})]});case"alert":return h.jsxs("svg",{viewBox:"0 0 19 19",...l,children:[h.jsx("circle",{cx:"9.5",cy:"9.5",r:"9.5",fill:"#CA0813"}),h.jsx("path",{d:"M10.36 4.878V8.882C10.36 9.30667 10.339 9.72433 10.297 10.135C10.255 10.541 10.199 10.9727 10.129 11.43H8.96C8.89 10.9727 8.834 10.541 8.792 10.135C8.75 9.72433 8.729 9.30667 8.729 8.882V4.878H10.36ZM8.463 14.048C8.463 13.9033 8.48867 13.7657 8.54 13.635C8.596 13.5043 8.67067 13.3923 8.764 13.299C8.862 13.2057 8.97633 13.131 9.107 13.075C9.23767 13.019 9.37767 12.991 9.527 12.991C9.67167 12.991 9.80933 13.019 9.94 13.075C10.0707 13.131 10.1827 13.2057 10.276 13.299C10.3693 13.3923 10.444 13.5043 10.5 13.635C10.556 13.7657 10.584 13.9033 10.584 14.048C10.584 14.1973 10.556 14.3373 10.5 14.468C10.444 14.594 10.3693 14.7037 10.276 14.797C10.1827 14.8903 10.0707 14.9627 9.94 15.014C9.80933 15.07 9.67167 15.098 9.527 15.098C9.37767 15.098 9.23767 15.07 9.107 15.014C8.97633 14.9627 8.862 14.8903 8.764 14.797C8.67067 14.7037 8.596 14.594 8.54 14.468C8.48867 14.3373 8.463 14.1973 8.463 14.048Z",fill:"white"})]});case"send":return h.jsx("svg",{viewBox:"0 0 20 17",...l,children:h.jsx("path",{d:"M18.95 8.56428L0.949951 0.941406V7.02531L13.6351 8.47059L0.950001 9.92276L0.949951 15.9414L18.95 8.56428Z",fill:"#A6A6A6",stroke:"#A6A6A6",strokeWidth:"0.1"})});case"chat":return h.jsxs("svg",{viewBox:"-2 -3 40 40",...l,children:[h.jsx("path",{strokeWidth:"0",fillRule:"evenodd",clipRule:"evenodd",d:"M16.9799 34C21.2676 34 25.1841 32.4256 28.1725 29.8285L34.9534 32.1994C35.7991 32.4951 36.553 31.5778 36.0892 30.8173L32.2559 24.5317C33.3474 22.3103 33.9598 19.8153 33.9598 17.1786C33.9598 7.88838 26.3576 0.357178 16.9799 0.357178C7.60216 0.357178 0 7.88838 0 17.1786C0 26.4688 7.60216 34 16.9799 34ZM30.7031 24.565C31.9094 22.3701 32.5948 19.8536 32.5948 17.1786C32.5948 8.6352 25.6038 1.70942 16.9799 1.70942C8.35601 1.70942 1.36498 8.6352 1.36498 17.1786C1.36498 25.722 8.35601 32.6478 16.9799 32.6478C21.1946 32.6478 25.0193 30.9935 27.8285 28.3047L34.3975 30.5798L30.7031 24.565Z",fill:"currentColor"}),h.jsx("path",{strokeWidth:"0",d:"M12.9395 17.1786C12.9395 18.6079 11.7809 19.7665 10.3516 19.7665C8.92237 19.7665 7.76373 18.6079 7.76373 17.1786C7.76373 15.7493 8.92237 14.5907 10.3516 14.5907C11.7809 14.5907 12.9395 15.7493 12.9395 17.1786Z",fill:"currentColor"}),h.jsx("path",{strokeWidth:"0",d:"M19.4093 17.1786C19.4093 18.6079 18.2507 19.7665 16.8214 19.7665C15.3921 19.7665 14.2335 18.6079 14.2335 17.1786C14.2335 15.7493 15.3921 14.5907 16.8214 14.5907C18.2507 14.5907 19.4093 15.7493 19.4093 17.1786Z",fill:"currentColor"}),h.jsx("path",{strokeWidth:"0",d:"M25.8791 17.1786C25.8791 18.6079 24.7204 19.7665 23.2912 19.7665C21.8619 19.7665 20.7033 18.6079 20.7033 17.1786C20.7033 15.7493 21.8619 14.5907 23.2912 14.5907C24.7204 14.5907 25.8791 15.7493 25.8791 17.1786Z",fill:"currentColor"})]});case"chat-new":return h.jsxs("svg",{viewBox:"0 0 26 24",...l,children:[h.jsx("path",{d:"M22.1109 10.3813C22.3941 10.2876 22.6674 10.1722 22.9288 10.0371C23.1902 10.9797 23.33 11.9734 23.33 13C23.33 19.0751 18.4348 24 12.3962 24C9.6352 24 7.11325 22.9705 5.18893 21.2721L0.82251 22.8226C0.277922 23.0159 -0.207515 22.4161 0.0911259 21.9188L2.55952 17.8084C1.85665 16.3558 1.46233 14.7242 1.46233 13C1.46233 6.92487 6.35758 2 12.3962 2C13.4013 2 14.3747 2.13645 15.2992 2.39193C15.1628 2.65458 15.0464 2.92925 14.9519 3.21394C14.1358 2.99881 13.2793 2.88427 12.3962 2.88427C6.84301 2.88427 2.34128 7.41324 2.34128 13C2.34128 14.7493 2.78263 16.3949 3.5594 17.8302L1.18047 21.7634L5.41046 20.2757C7.21939 22.034 9.68221 23.1157 12.3962 23.1157C17.9493 23.1157 22.451 18.5868 22.451 13C22.451 12.0944 22.3328 11.2165 22.1109 10.3813Z",fill:"currentColor"}),h.jsx("path",{d:"M25.6633 4C25.6633 6.20914 23.8724 8 21.6633 8C19.4541 8 17.6633 6.20914 17.6633 4C17.6633 1.79086 19.4541 0 21.6633 0C23.8724 0 25.6633 1.79086 25.6633 4Z",fill:"currentColor"})]});case"agent":return h.jsxs("svg",{viewBox:"0 0 36 30",...l,children:[h.jsx("path",{d:"M0.900024 15.3887C0.900024 12.9034 2.91474 10.8887 5.40002 10.8887H6.28179V20.0995H5.40002C2.91474 20.0995 0.900024 18.0848 0.900024 15.5995V15.3887Z",stroke:"white"}),h.jsx("path",{d:"M34.65 15.5996C34.65 18.0849 32.6353 20.0996 30.15 20.0996L29.2683 20.0996L29.2683 10.8888L30.15 10.8888C32.6353 10.8888 34.65 12.9035 34.65 15.3888L34.65 15.5996Z",stroke:"white"}),h.jsx("path",{d:"M29.2565 20.5974C29.2565 26.341 22.8747 26.9792 19.6838 26.9792",stroke:"white"}),h.jsx("circle",{cx:"17.4074",cy:"26.9795",r:"2.05271",stroke:"white"}),h.jsx("path",{d:"M6.28467 12.9396C6.28467 11.195 6.28686 18.0452 6.28467 8.47234C6.28248 -1.10049 29.2591 -1.10047 29.259 8.47234C29.259 18.0452 29.2569 11.6631 29.259 12.9396",stroke:"white"})]});case"minimize":return h.jsx("svg",{viewBox:"0 -10 22 22",...l,children:h.jsx("path",{d:"M0 1H22",stroke:"white"})});case"sorting":return h.jsx("svg",{viewBox:"0 0 18 14",...l,children:h.jsx("path",{d:"M18 1H0M8 13H0M13 7H0"})});case"copy":return h.jsxs("svg",{viewBox:"0 0 19 17",...l,children:[h.jsx("rect",{x:"0.5",y:"0.5",width:"11.6667",height:"11.6014",rx:"1.5",fill:"white"}),h.jsx("rect",{x:"6.83301",y:"4.89868",width:"11.6667",height:"11.6014",rx:"1.5",fill:"white"})]});case"print":return h.jsxs("svg",{viewBox:"0 0 16 17",...l,children:[h.jsx("path",{d:"M4.31592 0.999999C4.31592 0.723857 4.53977 0.5 4.81592 0.5H11.1845C11.4606 0.5 11.6845 0.723858 11.6845 1V4.53323H4.31592V0.999999Z",fill:"white",stroke:"black"}),h.jsx("path",{d:"M0.5 4.84595C0.5 4.56981 0.723858 4.34595 1 4.34595H15C15.2761 4.34595 15.5 4.5698 15.5 4.84595V10.8399C15.5 11.116 15.2761 11.3399 15 11.3399H1C0.723858 11.3399 0.5 11.116 0.5 10.8399V4.84595Z",fill:"white",stroke:"black"}),h.jsx("path",{d:"M4.31592 10.0061C4.31592 9.72996 4.53978 9.5061 4.81592 9.5061H11.1845C11.4606 9.5061 11.6845 9.72996 11.6845 10.0061V16.0001C11.6845 16.2762 11.4606 16.5001 11.1845 16.5001H4.81592C4.53978 16.5001 4.31592 16.2762 4.31592 16.0001V10.0061Z",fill:"white",stroke:"black"}),h.jsx("line",{x1:"5.29004",y1:"10.8323",x2:"10.7101",y2:"10.8323",stroke:"black"}),h.jsx("line",{x1:"5.29004",y1:"12.5242",x2:"10.7101",y2:"12.5242",stroke:"black"}),h.jsx("line",{x1:"5.29004",y1:"14.2161",x2:"10.7101",y2:"14.2161",stroke:"black"})]});case"language":return h.jsx("svg",{viewBox:"0 0 19 19",...l,children:h.jsx("path",{d:"M9.5 18C14.1944 18 18 14.1944 18 9.5C18 4.80558 14.1944 1 9.5 1M9.5 18C4.80558 18 1 14.1944 1 9.5C1 4.80558 4.80558 1 9.5 1M9.5 18C11.823 18 13.7062 14.1944 13.7062 9.5C13.7062 4.80558 11.823 1 9.5 1M9.5 18C7.17699 18 5.29381 14.1944 5.29381 9.5C5.29381 4.80558 7.17699 1 9.5 1M1.44333 6.78351H17.4742M1.3088 11.7784H17.6912",stroke:"black"})});case"information":return h.jsxs("svg",{viewBox:"0 0 17 17",...l,children:[h.jsx("path",{d:"M9.72182 5.99993C10.0524 5.99993 10.3203 5.73198 10.3203 5.40145C10.3203 5.07092 10.0524 4.80297 9.72182 4.80297C9.39129 4.80297 9.12335 5.07092 9.12335 5.40145C9.12335 5.73198 9.39129 5.99993 9.72182 5.99993Z",fill:"black"}),h.jsx("path",{d:"M7.21887 6.67639C6.89117 6.71981 6.66072 7.02066 6.70414 7.34836C6.74756 7.67605 7.04841 7.9065 7.3761 7.86308L8.353 7.73364L7.17405 11.3945C7.11289 11.5844 7.15164 11.7825 7.26117 11.932C7.38068 12.1287 7.60875 12.2469 7.85155 12.2147L9.40669 12.0087C9.73436 11.9653 9.96479 11.6645 9.92137 11.3368C9.87795 11.0091 9.57713 10.7787 9.24947 10.8221L8.58762 10.9098L9.76774 7.24534C9.83038 7.05084 9.78821 6.84771 9.67254 6.69702C9.55085 6.50877 9.32791 6.39694 9.09093 6.42834L7.21887 6.67639Z",fill:"black"}),h.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17 8.5C17 13.1944 13.1944 17 8.5 17C3.80558 17 0 13.1944 0 8.5C0 3.80558 3.80558 0 8.5 0C13.1944 0 17 3.80558 17 8.5ZM16 8.5C16 12.8454 12.8454 16 8.5 16C4.15461 16 1 12.8454 1 8.5C1 4.15461 4.15461 1 8.5 1C12.8454 1 16 4.15461 16 8.5Z",fill:"black"})]});case"options":return h.jsxs("svg",{viewBox:"0 0 16 2",...l,children:[h.jsx("circle",{cx:"15",cy:"1",r:"1",transform:"rotate(90 15 1)",fill:"black"}),h.jsx("circle",{cx:"1",cy:"1",r:"1",transform:"rotate(90 1 1)",fill:"black"}),h.jsx("circle",{cx:"8",cy:"1",r:"1",transform:"rotate(90 8 1)",fill:"black"})]});case"browse":return h.jsxs("svg",{viewBox:"0 0 24 24",...l,children:[h.jsx("circle",{cx:"12",cy:"12",r:"12",fill:"currentColor"}),h.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.16663 7.33334C6.16663 6.68901 6.68896 6.16667 7.33329 6.16667H10.25C10.8943 6.16667 11.4166 6.68901 11.4166 7.33334V10.25C11.4166 10.8943 10.8943 11.4167 10.25 11.4167H7.33329C6.68896 11.4167 6.16663 10.8943 6.16663 10.25V7.33334ZM7.33329 7.04167H10.25C10.411 7.04167 10.5416 7.17226 10.5416 7.33334V10.25C10.5416 10.4111 10.411 10.5417 10.25 10.5417H7.33329C7.17221 10.5417 7.04163 10.4111 7.04163 10.25V7.33334C7.04163 7.17226 7.17221 7.04167 7.33329 7.04167Z",fill:"white"}),h.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.16663 13.75C6.16663 13.1057 6.68896 12.5833 7.33329 12.5833H10.25C10.8943 12.5833 11.4166 13.1057 11.4166 13.75V16.6667C11.4166 17.311 10.8943 17.8333 10.25 17.8333H7.33329C6.68896 17.8333 6.16663 17.311 6.16663 16.6667V13.75ZM7.33329 13.4583H10.25C10.411 13.4583 10.5416 13.5889 10.5416 13.75V16.6667C10.5416 16.8278 10.411 16.9583 10.25 16.9583H7.33329C7.17221 16.9583 7.04163 16.8278 7.04163 16.6667V13.75C7.04163 13.5889 7.17221 13.4583 7.33329 13.4583Z",fill:"white"}),h.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.75 6.16667C13.1056 6.16667 12.5833 6.68901 12.5833 7.33334V10.25C12.5833 10.8943 13.1056 11.4167 13.75 11.4167H16.6666C17.311 11.4167 17.8333 10.8943 17.8333 10.25V7.33334C17.8333 6.68901 17.311 6.16667 16.6666 6.16667H13.75ZM16.6666 7.04167H13.75C13.5889 7.04167 13.4583 7.17226 13.4583 7.33334V10.25C13.4583 10.4111 13.5889 10.5417 13.75 10.5417H16.6666C16.8277 10.5417 16.9583 10.4111 16.9583 10.25V7.33334C16.9583 7.17226 16.8277 7.04167 16.6666 7.04167Z",fill:"white"}),h.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.8333 15.2083C17.8333 16.6581 16.658 17.8333 15.2083 17.8333C13.7585 17.8333 12.5833 16.6581 12.5833 15.2083C12.5833 13.7586 13.7585 12.5833 15.2083 12.5833C16.658 12.5833 17.8333 13.7586 17.8333 15.2083ZM16.9583 15.2083C16.9583 16.1748 16.1748 16.9583 15.2083 16.9583C14.2418 16.9583 13.4583 16.1748 13.4583 15.2083C13.4583 14.2418 14.2418 13.4583 15.2083 13.4583C16.1748 13.4583 16.9583 14.2418 16.9583 15.2083Z",fill:"white"})]});case"video":return d.minWidth&&typeof d.minWidth=="number"&&(d.minWidth=`${d.minWidth}px`),h.jsxs("svg",{viewBox:"0 0 25 25",...l,style:d,children:[h.jsx("path",{d:"M16.8245 10.0758C18.7392 8.55799 21.3085 7.08973 21.7947 7.61552C22.5982 8.47863 22.5288 16.6929 21.7947 17.4766C21.3482 17.9627 18.7589 16.4945 16.8245 14.9866",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),h.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.61914 12.5385C2.61914 7.12973 4.41578 5.32715 9.80764 5.32715C15.1985 5.32715 16.9952 7.12973 16.9952 12.5385C16.9952 17.9462 15.1985 19.7497 9.80764 19.7497C4.41578 19.7497 2.61914 17.9462 2.61914 12.5385Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]});case"star-empty":return h.jsx("svg",{viewBox:"0 0 13 12",...l,children:h.jsx("path",{d:"M2 5.2767L5.11944 4.81796L6.70023 2L7.96487 4.81796L11 5.51699L8.75527 7.64684L9.18735 11L6.42623 9.40534L3.62295 10.7925L4.21311 7.64684L2 5.2767Z",stroke:"black"})});case"star-filled":return h.jsx("svg",{viewBox:"0 0 13 12",...l,children:h.jsx("path",{d:"M2 5.2767L5.11944 4.81796L6.70023 2L7.96487 4.81796L11 5.51699L8.75527 7.64684L9.18735 11L6.42623 9.40534L3.62295 10.7925L4.21311 7.64684L2 5.2767Z",fill:"black",stroke:"black"})});case"cog-wheel":return h.jsx("svg",{viewBox:"0 0 24 24",...l,children:h.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.273 2.68498V1C15.273 0.447715 14.8253 0 14.273 0H9.72754C9.17525 0 8.72754 0.447715 8.72754 1V2.6852C8.72754 3.20708 8.09656 3.46843 7.72754 3.09941L6.53588 1.90775C6.14536 1.51723 5.51219 1.51723 5.12167 1.90775L1.90755 5.12187C1.51702 5.5124 1.51702 6.14556 1.90755 6.53609L3.09865 7.72719C3.46767 8.09621 3.20632 8.72719 2.68444 8.72719H1C0.447715 8.72719 0 9.1749 0 9.72719V14.2726C0 14.8249 0.447715 15.2726 1 15.2726H2.68534C3.20722 15.2726 3.46857 15.9036 3.09955 16.2726L1.90793 17.4643C1.51741 17.8548 1.51741 18.488 1.90793 18.8785L5.12205 22.0926C5.51258 22.4831 6.14574 22.4831 6.53627 22.0926L7.72754 20.9013C8.09656 20.5323 8.72754 20.7937 8.72754 21.3155V23C8.72754 23.5523 9.17525 24 9.72754 24H14.273C14.8253 24 15.273 23.5523 15.273 23V21.3158C15.273 20.7939 15.904 20.5325 16.273 20.9015L17.4639 22.0924C17.8544 22.483 18.4876 22.483 18.8781 22.0924L22.0922 18.8783C22.4828 18.4878 22.4828 17.8546 22.0922 17.4641L20.9008 16.2726C20.5317 15.9036 20.7931 15.2726 21.315 15.2726H23C23.5523 15.2726 24 14.8249 24 14.2726V9.72719C24 9.1749 23.5523 8.72719 23 8.72719H21.3159C20.794 8.72719 20.5326 8.09621 20.9017 7.72719L22.0926 6.53625C22.4831 6.14572 22.4831 5.51256 22.0926 5.12203L18.8785 1.90791C18.488 1.51739 17.8548 1.51739 17.4643 1.90791L16.273 3.0992C15.904 3.46822 15.273 3.20686 15.273 2.68498ZM16.5792 4.20716C16.263 4.52345 15.7775 4.58532 15.3687 4.40375C15.2439 4.34832 15.1174 4.29587 14.9895 4.2465C14.5723 4.08555 14.273 3.69861 14.273 3.25149V2C14.273 1.44771 13.8253 1 13.273 1H10.7275C10.1753 1 9.72754 1.44772 9.72754 2V3.25116C9.72754 3.69832 9.42816 4.08528 9.01096 4.2462C8.88288 4.29561 8.75633 4.34809 8.6314 4.40357C8.22262 4.58511 7.73715 4.52323 7.42087 4.20695L6.53588 3.32196C6.14536 2.93144 5.51219 2.93144 5.12167 3.32196L3.32176 5.12187C2.93124 5.5124 2.93124 6.14556 3.32176 6.53609L4.20676 7.42109C4.52303 7.73736 4.58491 8.22283 4.40338 8.63161C4.34797 8.75638 4.29555 8.88276 4.2462 9.01067C4.08526 9.42784 3.69831 9.72719 3.25118 9.72719H2C1.44772 9.72719 1 10.1749 1 10.7272V13.2726C1 13.8249 1.44772 14.2726 2 14.2726H3.2511C3.69825 14.2726 4.0852 14.572 4.24614 14.9892C4.29556 15.1173 4.34807 15.2439 4.40357 15.3688C4.58513 15.7776 4.52327 16.2631 4.20698 16.5794L3.32215 17.4643C2.93162 17.8548 2.93162 18.488 3.32215 18.8785L5.12205 20.6784C5.51258 21.0689 6.14574 21.0689 6.53627 20.6784L7.42136 19.7933C7.73762 19.477 8.22305 19.4151 8.63183 19.5966C8.75662 19.6521 8.88302 19.7045 9.01096 19.7538C9.42816 19.9147 9.72754 20.3017 9.72754 20.7489V22C9.72754 22.5523 10.1753 23 10.7275 23H13.273C13.8253 23 14.273 22.5523 14.273 22V20.7485C14.273 20.3014 14.5723 19.9145 14.9895 19.7535C15.1173 19.7042 15.2436 19.6518 15.3682 19.5965C15.777 19.4149 16.2625 19.4768 16.5788 19.7931L17.4639 20.6782C17.8544 21.0687 18.4876 21.0687 18.8781 20.6782L20.678 18.8783C21.0685 18.4878 21.0685 17.8546 20.678 17.4641L19.7929 16.579C19.4766 16.2627 19.4147 15.7772 19.5963 15.3684C19.6517 15.2436 19.7042 15.1172 19.7535 14.9892C19.9145 14.572 20.3014 14.2726 20.7486 14.2726H22C22.5523 14.2726 23 13.8249 23 13.2726V10.7272C23 10.1749 22.5523 9.72719 22 9.72719H20.7485C20.3013 9.72719 19.9144 9.42784 19.7535 9.01067C19.7042 8.8829 19.6518 8.75665 19.5965 8.63201C19.415 8.22324 19.4768 7.7378 19.7931 7.42154L20.6784 6.53625C21.0689 6.14572 21.0689 5.51256 20.6784 5.12203L18.8785 3.32213C18.488 2.9316 17.8548 2.9316 17.4643 3.32213L16.5792 4.20716ZM16.5999 12.0001C16.5999 14.5406 14.5404 16.6001 11.9999 16.6001C9.45939 16.6001 7.3999 14.5406 7.3999 12.0001C7.3999 9.45958 9.45939 7.40009 11.9999 7.40009C14.5404 7.40009 16.5999 9.45958 16.5999 12.0001ZM17.5999 12.0001C17.5999 15.0929 15.0927 17.6001 11.9999 17.6001C8.90711 17.6001 6.3999 15.0929 6.3999 12.0001C6.3999 8.90729 8.90711 6.40009 11.9999 6.40009C15.0927 6.40009 17.5999 8.90729 17.5999 12.0001Z",fill:"black"})});case"zoom-in":return h.jsxs("svg",{viewBox:"0 0 24 24",...l,children:[h.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.9774 20.8287L17.9149 16.7662C17.8437 16.6957 17.76 16.639 17.668 16.5992C20.7612 12.9331 20.415 7.48045 16.883 4.23507C13.3509 0.989694 7.88848 1.10517 4.49673 4.49691C1.10499 7.88866 0.98951 13.3511 4.23489 16.8831C7.48027 20.4152 12.9329 20.7614 16.599 17.6682C16.6388 17.7601 16.6955 17.8439 16.766 17.9151L20.8285 21.9776C21.1457 22.2948 21.6601 22.2948 21.9774 21.9776C22.2947 21.6603 22.2947 21.1459 21.9774 20.8287ZM10.8404 18.1531C6.80186 18.1531 3.52794 14.8792 3.52794 10.8406C3.52794 6.80204 6.80186 3.52813 10.8404 3.52813C14.879 3.52813 18.1529 6.80204 18.1529 10.8406C18.1483 14.8773 14.8771 18.1484 10.8404 18.1531Z",fill:"white"}),h.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.8749 6.75003C11.2892 6.75003 11.6249 7.08581 11.6249 7.50003V14.25C11.6249 14.6642 11.2892 15 10.8749 15C10.4607 15 10.1249 14.6642 10.1249 14.25V7.50003C10.1249 7.08581 10.4607 6.75003 10.8749 6.75003Z",fill:"white"}),h.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.74994 10.875C6.74994 10.4608 7.08573 10.125 7.49994 10.125H14.2499C14.6642 10.125 14.9999 10.4608 14.9999 10.875C14.9999 11.2892 14.6642 11.625 14.2499 11.625H7.49994C7.08573 11.625 6.74994 11.2892 6.74994 10.875Z",fill:"white"})]});case"zoom-out":return h.jsxs("svg",{viewBox:"0 0 24 24",...l,children:[h.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22.1025 20.9536L18.04 16.8911C17.9688 16.8206 17.8851 16.764 17.7931 16.7241C20.8864 13.0581 20.5401 7.60539 17.0081 4.36001C13.476 1.11463 8.0136 1.23011 4.62185 4.62185C1.23011 8.0136 1.11463 13.476 4.36001 17.0081C7.60539 20.5401 13.0581 20.8864 16.7241 17.7931C16.764 17.8851 16.8206 17.9688 16.8911 18.04L20.9536 22.1025C21.2709 22.4198 21.7853 22.4198 22.1025 22.1025C22.4198 21.7853 22.4198 21.2709 22.1025 20.9536ZM10.9656 18.2781C6.92698 18.2781 3.65306 15.0041 3.65306 10.9656C3.65306 6.92698 6.92698 3.65306 10.9656 3.65306C15.0041 3.65306 18.2781 6.92698 18.2781 10.9656C18.2734 15.0022 15.0022 18.2734 10.9656 18.2781Z",fill:"white"}),h.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.87506 11C6.87506 10.5858 7.21085 10.25 7.62506 10.25H14.3751C14.7893 10.25 15.1251 10.5858 15.1251 11C15.1251 11.4142 14.7893 11.75 14.3751 11.75H7.62506C7.21085 11.75 6.87506 11.4142 6.87506 11Z",fill:"white"})]});case"download":return h.jsx("svg",{viewBox:"0 0 24 24",...l,children:h.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22.5 11.1346V18.4038C22.498 20.1873 21.0527 21.6326 19.2692 21.6346H4.73077C2.94731 21.6326 1.50204 20.1873 1.5 18.4038V11.1346C1.5 10.6885 1.86162 10.3269 2.30769 10.3269C2.75377 10.3269 3.11538 10.6885 3.11538 11.1346V18.4038C3.1164 19.2956 3.83904 20.0182 4.73077 20.0192H19.2692C20.161 20.0182 20.8836 19.2956 20.8846 18.4038V11.1346C20.8846 10.6885 21.2462 10.3269 21.6923 10.3269C22.1384 10.3269 22.5 10.6885 22.5 11.1346ZM11.1434 16.2663C11.6167 16.7388 12.3832 16.7388 12.8565 16.2663L17.4172 11.7057C17.7326 11.3903 17.7326 10.8789 17.4172 10.5635C17.1018 10.2481 16.5904 10.2481 16.275 10.5635L12.8076 14.0308V3.05769C12.8076 2.61162 12.446 2.25 11.9999 2.25C11.5539 2.25 11.1923 2.61162 11.1923 3.05769V14.0308L7.72485 10.5636C7.40946 10.2482 6.89812 10.2482 6.58273 10.5636C6.26734 10.8789 6.26734 11.3903 6.58273 11.7057L11.1434 16.2663Z",fill:"white"})});case"lightbox-close":return h.jsx("svg",{viewBox:"0 0 24 24",...l,children:h.jsx("path",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",d:"M19.2621 18.1129C19.4674 18.3182 19.5475 18.6173 19.4724 18.8977C19.3973 19.178 19.1783 19.397 18.8979 19.4721C18.6176 19.5472 18.3184 19.4671 18.1132 19.2619L12.1877 13.3363L6.26214 19.2619C6.0569 19.4671 5.75776 19.5472 5.47741 19.4721C5.19705 19.397 4.97807 19.178 4.90294 18.8977C4.82782 18.6173 4.90798 18.3182 5.11321 18.1129L11.0388 12.1874L5.11321 6.26186C4.90798 6.05663 4.82782 5.75749 4.90294 5.47713C4.97807 5.19678 5.19705 4.97779 5.47741 4.90267C5.75776 4.82755 6.0569 4.9077 6.26214 5.11294L12.1877 11.0385L18.1132 5.11294C18.4305 4.79567 18.9449 4.79567 19.2621 5.11294C19.5794 5.4302 19.5794 5.9446 19.2621 6.26186L13.3366 12.1874L19.2621 18.1129Z",fill:"white"})});case"pagination-left":return h.jsx("svg",{viewBox:"0 0 24 24",...l,children:h.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.7935 18.7087C16.0092 18.9029 16.105 19.1974 16.0447 19.4813C15.9844 19.7652 15.7772 19.9954 15.5012 20.0852C15.2251 20.1749 14.9222 20.1105 14.7065 19.9164L6.58148 12.6039C6.41027 12.4498 6.3125 12.2303 6.3125 12C6.3125 11.7697 6.41027 11.5503 6.58148 11.3962L14.7065 4.08372C15.04 3.78354 15.5536 3.81054 15.8538 4.14402C16.154 4.4775 16.127 4.99119 15.7935 5.29136L8.33939 12L15.7935 18.7087Z",fill:"#222222"})});case"pagination-right":return h.jsx("svg",{viewBox:"0 0 24 24",...l,children:h.jsx("path",{d:"M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"})})}return null}case"FontAwesome":return h.jsx(Po,{className:o,faIcon:c,title:t,...s});default:case"Text":return t?h.jsx("i",{className:ie(o,"humany-letter-symbol"),title:t,...u,...s,children:t.substring(0,2)}):null}},qc=$.svg`
274
+ `},Cr=({elementId:t="humany-portal-elements",parent:e=document.body,children:n})=>{const[r]=m.useState(()=>{const i=document.getElementById(t)||document.createElement("div");return i.id=t,i});return m.useEffect(()=>(e.appendChild(r),()=>{r.childElementCount<=1&&r.remove()}),[r]),ut.createPortal(n,r)},ot=({text:t="",backgroundSize:e="contain",size:n=12,symbol:r={content:"",type:""},elementStyle:i={},className:o,...s})=>{const{type:a,content:c}=r,u={"aria-label":t,role:"presentation"};switch(a){case"Uri":{const l={backgroundSize:e,backgroundImage:`url('${c}')`,backgroundRepeat:"no-repeat",backgroundPosition:"center",backgroundAttachment:"center"};return h.jsx("i",{className:ie(o,"humany-icon","humany-custom-icon"),title:t,style:{...l,...i},...u,...s})}case"Svg":{const l={className:ie(o,"humany-icon"),width:`${n}`,fill:"none",xmlns:"http://www.w3.org/2000/svg",...s,ref:null},d={minWidth:`${n}`};switch(c){case"search":return h.jsxs("svg",{viewBox:"0 0 32 30",...l,children:[h.jsx("circle",{cx:"14.8457",cy:"14.5175",r:"8.14359",transform:"rotate(45 14.8457 14.5175)"}),h.jsx("line",{x1:"21.1001",y1:"20.4865",x2:"26.5798",y2:"25.9661"})]});case"clear":return h.jsxs("svg",{viewBox:"0 0 27 27",...l,children:[h.jsx("circle",{cx:"13.4351",cy:"13.435",r:"9",transform:"rotate(45 13.4351 13.435)",stroke:"black"}),h.jsx("line",{x1:"16.6172",y1:"10.2531",x2:"10.2533",y2:"16.6171",stroke:"black"}),h.jsx("line",{x1:"16.6171",y1:"16.617",x2:"10.2532",y2:"10.2531",stroke:"black"})]});case"close":return h.jsxs("svg",{viewBox:"0 0 13 13",...l,children:[h.jsx("path",{d:"M12.3068 0.50647L1.27246 11.7273",stroke:"black"}),h.jsx("path",{d:"M12.2812 11.9473L1.24686 0.726451",stroke:"black"})]});case"caret-right":return h.jsxs("svg",{viewBox:"0 0 14 14",style:d,...l,children:[h.jsx("line",{x1:"4.13",y1:"1.05",x2:"10.13",y2:"7.05",stroke:"black"}),h.jsx("line",{x1:"10.13",y1:"6.95",x2:"4.13",y2:"12.95",stroke:"black"})]});case"caret-left":return h.jsxs("svg",{viewBox:"0 0 14 14",style:d,...l,children:[h.jsx("line",{x1:"10.13",y1:"12.95",x2:"4.13",y2:"6.95",stroke:"black"}),h.jsx("line",{x1:"4.13",y1:"7.05",x2:"10.13",y2:"1.05",stroke:"black"})]});case"caret-up":return h.jsxs(Uc,{viewBox:"0 0 14 14",style:d,...l,children:[h.jsx("line",{x1:"13.09",y1:"3.99",x2:"7.1",y2:"9.99",stroke:"black"}),h.jsx("line",{x1:"7.19",y1:"9.99",x2:"1.19",y2:"3.99",stroke:"black"})]});case"caret-down":return h.jsxs("svg",{viewBox:"0 0 14 14",style:d,...l,children:[h.jsx("line",{x1:"13.09",y1:"3.99",x2:"7.1",y2:"9.99",stroke:"black"}),h.jsx("line",{x1:"7.19",y1:"9.99",x2:"1.19",y2:"3.99",stroke:"black"})]});case"back":return h.jsxs("svg",{viewBox:"0 0 18 18",...l,children:[h.jsx("line",{y1:"-0.5",x2:"11.724",y2:"-0.5",transform:"matrix(-0.682355 -0.731021 0.682355 -0.731021 13 16.9999)",stroke:"white"}),h.jsx("line",{y1:"-0.5",x2:"11.724",y2:"-0.5",transform:"matrix(0.682355 -0.731021 0.682355 0.731021 5 9.5705)",stroke:"white"})]});case"alert":return h.jsxs("svg",{viewBox:"0 0 19 19",...l,children:[h.jsx("circle",{cx:"9.5",cy:"9.5",r:"9.5",fill:"#CA0813"}),h.jsx("path",{d:"M10.36 4.878V8.882C10.36 9.30667 10.339 9.72433 10.297 10.135C10.255 10.541 10.199 10.9727 10.129 11.43H8.96C8.89 10.9727 8.834 10.541 8.792 10.135C8.75 9.72433 8.729 9.30667 8.729 8.882V4.878H10.36ZM8.463 14.048C8.463 13.9033 8.48867 13.7657 8.54 13.635C8.596 13.5043 8.67067 13.3923 8.764 13.299C8.862 13.2057 8.97633 13.131 9.107 13.075C9.23767 13.019 9.37767 12.991 9.527 12.991C9.67167 12.991 9.80933 13.019 9.94 13.075C10.0707 13.131 10.1827 13.2057 10.276 13.299C10.3693 13.3923 10.444 13.5043 10.5 13.635C10.556 13.7657 10.584 13.9033 10.584 14.048C10.584 14.1973 10.556 14.3373 10.5 14.468C10.444 14.594 10.3693 14.7037 10.276 14.797C10.1827 14.8903 10.0707 14.9627 9.94 15.014C9.80933 15.07 9.67167 15.098 9.527 15.098C9.37767 15.098 9.23767 15.07 9.107 15.014C8.97633 14.9627 8.862 14.8903 8.764 14.797C8.67067 14.7037 8.596 14.594 8.54 14.468C8.48867 14.3373 8.463 14.1973 8.463 14.048Z",fill:"white"})]});case"send":return h.jsx("svg",{viewBox:"0 0 20 17",...l,children:h.jsx("path",{d:"M18.95 8.56428L0.949951 0.941406V7.02531L13.6351 8.47059L0.950001 9.92276L0.949951 15.9414L18.95 8.56428Z",fill:"#A6A6A6",stroke:"#A6A6A6",strokeWidth:"0.1"})});case"chat":return h.jsxs("svg",{viewBox:"-2 -3 40 40",...l,children:[h.jsx("path",{strokeWidth:"0",fillRule:"evenodd",clipRule:"evenodd",d:"M16.9799 34C21.2676 34 25.1841 32.4256 28.1725 29.8285L34.9534 32.1994C35.7991 32.4951 36.553 31.5778 36.0892 30.8173L32.2559 24.5317C33.3474 22.3103 33.9598 19.8153 33.9598 17.1786C33.9598 7.88838 26.3576 0.357178 16.9799 0.357178C7.60216 0.357178 0 7.88838 0 17.1786C0 26.4688 7.60216 34 16.9799 34ZM30.7031 24.565C31.9094 22.3701 32.5948 19.8536 32.5948 17.1786C32.5948 8.6352 25.6038 1.70942 16.9799 1.70942C8.35601 1.70942 1.36498 8.6352 1.36498 17.1786C1.36498 25.722 8.35601 32.6478 16.9799 32.6478C21.1946 32.6478 25.0193 30.9935 27.8285 28.3047L34.3975 30.5798L30.7031 24.565Z",fill:"currentColor"}),h.jsx("path",{strokeWidth:"0",d:"M12.9395 17.1786C12.9395 18.6079 11.7809 19.7665 10.3516 19.7665C8.92237 19.7665 7.76373 18.6079 7.76373 17.1786C7.76373 15.7493 8.92237 14.5907 10.3516 14.5907C11.7809 14.5907 12.9395 15.7493 12.9395 17.1786Z",fill:"currentColor"}),h.jsx("path",{strokeWidth:"0",d:"M19.4093 17.1786C19.4093 18.6079 18.2507 19.7665 16.8214 19.7665C15.3921 19.7665 14.2335 18.6079 14.2335 17.1786C14.2335 15.7493 15.3921 14.5907 16.8214 14.5907C18.2507 14.5907 19.4093 15.7493 19.4093 17.1786Z",fill:"currentColor"}),h.jsx("path",{strokeWidth:"0",d:"M25.8791 17.1786C25.8791 18.6079 24.7204 19.7665 23.2912 19.7665C21.8619 19.7665 20.7033 18.6079 20.7033 17.1786C20.7033 15.7493 21.8619 14.5907 23.2912 14.5907C24.7204 14.5907 25.8791 15.7493 25.8791 17.1786Z",fill:"currentColor"})]});case"chat-new":return h.jsxs("svg",{viewBox:"0 0 26 24",...l,children:[h.jsx("path",{d:"M22.1109 10.3813C22.3941 10.2876 22.6674 10.1722 22.9288 10.0371C23.1902 10.9797 23.33 11.9734 23.33 13C23.33 19.0751 18.4348 24 12.3962 24C9.6352 24 7.11325 22.9705 5.18893 21.2721L0.82251 22.8226C0.277922 23.0159 -0.207515 22.4161 0.0911259 21.9188L2.55952 17.8084C1.85665 16.3558 1.46233 14.7242 1.46233 13C1.46233 6.92487 6.35758 2 12.3962 2C13.4013 2 14.3747 2.13645 15.2992 2.39193C15.1628 2.65458 15.0464 2.92925 14.9519 3.21394C14.1358 2.99881 13.2793 2.88427 12.3962 2.88427C6.84301 2.88427 2.34128 7.41324 2.34128 13C2.34128 14.7493 2.78263 16.3949 3.5594 17.8302L1.18047 21.7634L5.41046 20.2757C7.21939 22.034 9.68221 23.1157 12.3962 23.1157C17.9493 23.1157 22.451 18.5868 22.451 13C22.451 12.0944 22.3328 11.2165 22.1109 10.3813Z",fill:"currentColor"}),h.jsx("path",{d:"M25.6633 4C25.6633 6.20914 23.8724 8 21.6633 8C19.4541 8 17.6633 6.20914 17.6633 4C17.6633 1.79086 19.4541 0 21.6633 0C23.8724 0 25.6633 1.79086 25.6633 4Z",fill:"currentColor"})]});case"agent":return h.jsxs("svg",{viewBox:"0 0 36 30",...l,children:[h.jsx("path",{d:"M0.900024 15.3887C0.900024 12.9034 2.91474 10.8887 5.40002 10.8887H6.28179V20.0995H5.40002C2.91474 20.0995 0.900024 18.0848 0.900024 15.5995V15.3887Z",stroke:"white"}),h.jsx("path",{d:"M34.65 15.5996C34.65 18.0849 32.6353 20.0996 30.15 20.0996L29.2683 20.0996L29.2683 10.8888L30.15 10.8888C32.6353 10.8888 34.65 12.9035 34.65 15.3888L34.65 15.5996Z",stroke:"white"}),h.jsx("path",{d:"M29.2565 20.5974C29.2565 26.341 22.8747 26.9792 19.6838 26.9792",stroke:"white"}),h.jsx("circle",{cx:"17.4074",cy:"26.9795",r:"2.05271",stroke:"white"}),h.jsx("path",{d:"M6.28467 12.9396C6.28467 11.195 6.28686 18.0452 6.28467 8.47234C6.28248 -1.10049 29.2591 -1.10047 29.259 8.47234C29.259 18.0452 29.2569 11.6631 29.259 12.9396",stroke:"white"})]});case"minimize":return h.jsx("svg",{viewBox:"0 -10 22 22",...l,children:h.jsx("path",{d:"M0 1H22",stroke:"white"})});case"sorting":return h.jsx("svg",{viewBox:"0 0 18 14",...l,children:h.jsx("path",{d:"M18 1H0M8 13H0M13 7H0"})});case"copy":return h.jsxs("svg",{viewBox:"0 0 19 17",...l,children:[h.jsx("rect",{x:"0.5",y:"0.5",width:"11.6667",height:"11.6014",rx:"1.5",fill:"white"}),h.jsx("rect",{x:"6.83301",y:"4.89868",width:"11.6667",height:"11.6014",rx:"1.5",fill:"white"})]});case"print":return h.jsxs("svg",{viewBox:"0 0 16 17",...l,children:[h.jsx("path",{d:"M4.31592 0.999999C4.31592 0.723857 4.53977 0.5 4.81592 0.5H11.1845C11.4606 0.5 11.6845 0.723858 11.6845 1V4.53323H4.31592V0.999999Z",fill:"white",stroke:"black"}),h.jsx("path",{d:"M0.5 4.84595C0.5 4.56981 0.723858 4.34595 1 4.34595H15C15.2761 4.34595 15.5 4.5698 15.5 4.84595V10.8399C15.5 11.116 15.2761 11.3399 15 11.3399H1C0.723858 11.3399 0.5 11.116 0.5 10.8399V4.84595Z",fill:"white",stroke:"black"}),h.jsx("path",{d:"M4.31592 10.0061C4.31592 9.72996 4.53978 9.5061 4.81592 9.5061H11.1845C11.4606 9.5061 11.6845 9.72996 11.6845 10.0061V16.0001C11.6845 16.2762 11.4606 16.5001 11.1845 16.5001H4.81592C4.53978 16.5001 4.31592 16.2762 4.31592 16.0001V10.0061Z",fill:"white",stroke:"black"}),h.jsx("line",{x1:"5.29004",y1:"10.8323",x2:"10.7101",y2:"10.8323",stroke:"black"}),h.jsx("line",{x1:"5.29004",y1:"12.5242",x2:"10.7101",y2:"12.5242",stroke:"black"}),h.jsx("line",{x1:"5.29004",y1:"14.2161",x2:"10.7101",y2:"14.2161",stroke:"black"})]});case"language":return h.jsx("svg",{viewBox:"0 0 19 19",...l,children:h.jsx("path",{d:"M9.5 18C14.1944 18 18 14.1944 18 9.5C18 4.80558 14.1944 1 9.5 1M9.5 18C4.80558 18 1 14.1944 1 9.5C1 4.80558 4.80558 1 9.5 1M9.5 18C11.823 18 13.7062 14.1944 13.7062 9.5C13.7062 4.80558 11.823 1 9.5 1M9.5 18C7.17699 18 5.29381 14.1944 5.29381 9.5C5.29381 4.80558 7.17699 1 9.5 1M1.44333 6.78351H17.4742M1.3088 11.7784H17.6912",stroke:"black"})});case"information":return h.jsxs("svg",{viewBox:"0 0 17 17",...l,children:[h.jsx("path",{d:"M9.72182 5.99993C10.0524 5.99993 10.3203 5.73198 10.3203 5.40145C10.3203 5.07092 10.0524 4.80297 9.72182 4.80297C9.39129 4.80297 9.12335 5.07092 9.12335 5.40145C9.12335 5.73198 9.39129 5.99993 9.72182 5.99993Z",fill:"black"}),h.jsx("path",{d:"M7.21887 6.67639C6.89117 6.71981 6.66072 7.02066 6.70414 7.34836C6.74756 7.67605 7.04841 7.9065 7.3761 7.86308L8.353 7.73364L7.17405 11.3945C7.11289 11.5844 7.15164 11.7825 7.26117 11.932C7.38068 12.1287 7.60875 12.2469 7.85155 12.2147L9.40669 12.0087C9.73436 11.9653 9.96479 11.6645 9.92137 11.3368C9.87795 11.0091 9.57713 10.7787 9.24947 10.8221L8.58762 10.9098L9.76774 7.24534C9.83038 7.05084 9.78821 6.84771 9.67254 6.69702C9.55085 6.50877 9.32791 6.39694 9.09093 6.42834L7.21887 6.67639Z",fill:"black"}),h.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17 8.5C17 13.1944 13.1944 17 8.5 17C3.80558 17 0 13.1944 0 8.5C0 3.80558 3.80558 0 8.5 0C13.1944 0 17 3.80558 17 8.5ZM16 8.5C16 12.8454 12.8454 16 8.5 16C4.15461 16 1 12.8454 1 8.5C1 4.15461 4.15461 1 8.5 1C12.8454 1 16 4.15461 16 8.5Z",fill:"black"})]});case"options":return h.jsxs("svg",{viewBox:"0 0 16 2",...l,children:[h.jsx("circle",{cx:"15",cy:"1",r:"1",transform:"rotate(90 15 1)",fill:"black"}),h.jsx("circle",{cx:"1",cy:"1",r:"1",transform:"rotate(90 1 1)",fill:"black"}),h.jsx("circle",{cx:"8",cy:"1",r:"1",transform:"rotate(90 8 1)",fill:"black"})]});case"browse":return h.jsxs("svg",{viewBox:"0 0 24 24",...l,children:[h.jsx("circle",{cx:"12",cy:"12",r:"12",fill:"currentColor"}),h.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.16663 7.33334C6.16663 6.68901 6.68896 6.16667 7.33329 6.16667H10.25C10.8943 6.16667 11.4166 6.68901 11.4166 7.33334V10.25C11.4166 10.8943 10.8943 11.4167 10.25 11.4167H7.33329C6.68896 11.4167 6.16663 10.8943 6.16663 10.25V7.33334ZM7.33329 7.04167H10.25C10.411 7.04167 10.5416 7.17226 10.5416 7.33334V10.25C10.5416 10.4111 10.411 10.5417 10.25 10.5417H7.33329C7.17221 10.5417 7.04163 10.4111 7.04163 10.25V7.33334C7.04163 7.17226 7.17221 7.04167 7.33329 7.04167Z",fill:"white"}),h.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.16663 13.75C6.16663 13.1057 6.68896 12.5833 7.33329 12.5833H10.25C10.8943 12.5833 11.4166 13.1057 11.4166 13.75V16.6667C11.4166 17.311 10.8943 17.8333 10.25 17.8333H7.33329C6.68896 17.8333 6.16663 17.311 6.16663 16.6667V13.75ZM7.33329 13.4583H10.25C10.411 13.4583 10.5416 13.5889 10.5416 13.75V16.6667C10.5416 16.8278 10.411 16.9583 10.25 16.9583H7.33329C7.17221 16.9583 7.04163 16.8278 7.04163 16.6667V13.75C7.04163 13.5889 7.17221 13.4583 7.33329 13.4583Z",fill:"white"}),h.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.75 6.16667C13.1056 6.16667 12.5833 6.68901 12.5833 7.33334V10.25C12.5833 10.8943 13.1056 11.4167 13.75 11.4167H16.6666C17.311 11.4167 17.8333 10.8943 17.8333 10.25V7.33334C17.8333 6.68901 17.311 6.16667 16.6666 6.16667H13.75ZM16.6666 7.04167H13.75C13.5889 7.04167 13.4583 7.17226 13.4583 7.33334V10.25C13.4583 10.4111 13.5889 10.5417 13.75 10.5417H16.6666C16.8277 10.5417 16.9583 10.4111 16.9583 10.25V7.33334C16.9583 7.17226 16.8277 7.04167 16.6666 7.04167Z",fill:"white"}),h.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.8333 15.2083C17.8333 16.6581 16.658 17.8333 15.2083 17.8333C13.7585 17.8333 12.5833 16.6581 12.5833 15.2083C12.5833 13.7586 13.7585 12.5833 15.2083 12.5833C16.658 12.5833 17.8333 13.7586 17.8333 15.2083ZM16.9583 15.2083C16.9583 16.1748 16.1748 16.9583 15.2083 16.9583C14.2418 16.9583 13.4583 16.1748 13.4583 15.2083C13.4583 14.2418 14.2418 13.4583 15.2083 13.4583C16.1748 13.4583 16.9583 14.2418 16.9583 15.2083Z",fill:"white"})]});case"video":return d.minWidth&&typeof d.minWidth=="number"&&(d.minWidth=`${d.minWidth}px`),h.jsxs("svg",{viewBox:"0 0 25 25",...l,style:d,children:[h.jsx("path",{d:"M16.8245 10.0758C18.7392 8.55799 21.3085 7.08973 21.7947 7.61552C22.5982 8.47863 22.5288 16.6929 21.7947 17.4766C21.3482 17.9627 18.7589 16.4945 16.8245 14.9866",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),h.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.61914 12.5385C2.61914 7.12973 4.41578 5.32715 9.80764 5.32715C15.1985 5.32715 16.9952 7.12973 16.9952 12.5385C16.9952 17.9462 15.1985 19.7497 9.80764 19.7497C4.41578 19.7497 2.61914 17.9462 2.61914 12.5385Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]});case"star-empty":return h.jsx("svg",{viewBox:"0 0 13 12",...l,children:h.jsx("path",{d:"M2 5.2767L5.11944 4.81796L6.70023 2L7.96487 4.81796L11 5.51699L8.75527 7.64684L9.18735 11L6.42623 9.40534L3.62295 10.7925L4.21311 7.64684L2 5.2767Z",stroke:"black"})});case"star-filled":return h.jsx("svg",{viewBox:"0 0 13 12",...l,children:h.jsx("path",{d:"M2 5.2767L5.11944 4.81796L6.70023 2L7.96487 4.81796L11 5.51699L8.75527 7.64684L9.18735 11L6.42623 9.40534L3.62295 10.7925L4.21311 7.64684L2 5.2767Z",fill:"black",stroke:"black"})});case"cog-wheel":return h.jsx("svg",{viewBox:"0 0 24 24",...l,children:h.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.273 2.68498V1C15.273 0.447715 14.8253 0 14.273 0H9.72754C9.17525 0 8.72754 0.447715 8.72754 1V2.6852C8.72754 3.20708 8.09656 3.46843 7.72754 3.09941L6.53588 1.90775C6.14536 1.51723 5.51219 1.51723 5.12167 1.90775L1.90755 5.12187C1.51702 5.5124 1.51702 6.14556 1.90755 6.53609L3.09865 7.72719C3.46767 8.09621 3.20632 8.72719 2.68444 8.72719H1C0.447715 8.72719 0 9.1749 0 9.72719V14.2726C0 14.8249 0.447715 15.2726 1 15.2726H2.68534C3.20722 15.2726 3.46857 15.9036 3.09955 16.2726L1.90793 17.4643C1.51741 17.8548 1.51741 18.488 1.90793 18.8785L5.12205 22.0926C5.51258 22.4831 6.14574 22.4831 6.53627 22.0926L7.72754 20.9013C8.09656 20.5323 8.72754 20.7937 8.72754 21.3155V23C8.72754 23.5523 9.17525 24 9.72754 24H14.273C14.8253 24 15.273 23.5523 15.273 23V21.3158C15.273 20.7939 15.904 20.5325 16.273 20.9015L17.4639 22.0924C17.8544 22.483 18.4876 22.483 18.8781 22.0924L22.0922 18.8783C22.4828 18.4878 22.4828 17.8546 22.0922 17.4641L20.9008 16.2726C20.5317 15.9036 20.7931 15.2726 21.315 15.2726H23C23.5523 15.2726 24 14.8249 24 14.2726V9.72719C24 9.1749 23.5523 8.72719 23 8.72719H21.3159C20.794 8.72719 20.5326 8.09621 20.9017 7.72719L22.0926 6.53625C22.4831 6.14572 22.4831 5.51256 22.0926 5.12203L18.8785 1.90791C18.488 1.51739 17.8548 1.51739 17.4643 1.90791L16.273 3.0992C15.904 3.46822 15.273 3.20686 15.273 2.68498ZM16.5792 4.20716C16.263 4.52345 15.7775 4.58532 15.3687 4.40375C15.2439 4.34832 15.1174 4.29587 14.9895 4.2465C14.5723 4.08555 14.273 3.69861 14.273 3.25149V2C14.273 1.44771 13.8253 1 13.273 1H10.7275C10.1753 1 9.72754 1.44772 9.72754 2V3.25116C9.72754 3.69832 9.42816 4.08528 9.01096 4.2462C8.88288 4.29561 8.75633 4.34809 8.6314 4.40357C8.22262 4.58511 7.73715 4.52323 7.42087 4.20695L6.53588 3.32196C6.14536 2.93144 5.51219 2.93144 5.12167 3.32196L3.32176 5.12187C2.93124 5.5124 2.93124 6.14556 3.32176 6.53609L4.20676 7.42109C4.52303 7.73736 4.58491 8.22283 4.40338 8.63161C4.34797 8.75638 4.29555 8.88276 4.2462 9.01067C4.08526 9.42784 3.69831 9.72719 3.25118 9.72719H2C1.44772 9.72719 1 10.1749 1 10.7272V13.2726C1 13.8249 1.44772 14.2726 2 14.2726H3.2511C3.69825 14.2726 4.0852 14.572 4.24614 14.9892C4.29556 15.1173 4.34807 15.2439 4.40357 15.3688C4.58513 15.7776 4.52327 16.2631 4.20698 16.5794L3.32215 17.4643C2.93162 17.8548 2.93162 18.488 3.32215 18.8785L5.12205 20.6784C5.51258 21.0689 6.14574 21.0689 6.53627 20.6784L7.42136 19.7933C7.73762 19.477 8.22305 19.4151 8.63183 19.5966C8.75662 19.6521 8.88302 19.7045 9.01096 19.7538C9.42816 19.9147 9.72754 20.3017 9.72754 20.7489V22C9.72754 22.5523 10.1753 23 10.7275 23H13.273C13.8253 23 14.273 22.5523 14.273 22V20.7485C14.273 20.3014 14.5723 19.9145 14.9895 19.7535C15.1173 19.7042 15.2436 19.6518 15.3682 19.5965C15.777 19.4149 16.2625 19.4768 16.5788 19.7931L17.4639 20.6782C17.8544 21.0687 18.4876 21.0687 18.8781 20.6782L20.678 18.8783C21.0685 18.4878 21.0685 17.8546 20.678 17.4641L19.7929 16.579C19.4766 16.2627 19.4147 15.7772 19.5963 15.3684C19.6517 15.2436 19.7042 15.1172 19.7535 14.9892C19.9145 14.572 20.3014 14.2726 20.7486 14.2726H22C22.5523 14.2726 23 13.8249 23 13.2726V10.7272C23 10.1749 22.5523 9.72719 22 9.72719H20.7485C20.3013 9.72719 19.9144 9.42784 19.7535 9.01067C19.7042 8.8829 19.6518 8.75665 19.5965 8.63201C19.415 8.22324 19.4768 7.7378 19.7931 7.42154L20.6784 6.53625C21.0689 6.14572 21.0689 5.51256 20.6784 5.12203L18.8785 3.32213C18.488 2.9316 17.8548 2.9316 17.4643 3.32213L16.5792 4.20716ZM16.5999 12.0001C16.5999 14.5406 14.5404 16.6001 11.9999 16.6001C9.45939 16.6001 7.3999 14.5406 7.3999 12.0001C7.3999 9.45958 9.45939 7.40009 11.9999 7.40009C14.5404 7.40009 16.5999 9.45958 16.5999 12.0001ZM17.5999 12.0001C17.5999 15.0929 15.0927 17.6001 11.9999 17.6001C8.90711 17.6001 6.3999 15.0929 6.3999 12.0001C6.3999 8.90729 8.90711 6.40009 11.9999 6.40009C15.0927 6.40009 17.5999 8.90729 17.5999 12.0001Z",fill:"black"})});case"zoom-in":return h.jsxs("svg",{viewBox:"0 0 24 24",...l,children:[h.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.9774 20.8287L17.9149 16.7662C17.8437 16.6957 17.76 16.639 17.668 16.5992C20.7612 12.9331 20.415 7.48045 16.883 4.23507C13.3509 0.989694 7.88848 1.10517 4.49673 4.49691C1.10499 7.88866 0.98951 13.3511 4.23489 16.8831C7.48027 20.4152 12.9329 20.7614 16.599 17.6682C16.6388 17.7601 16.6955 17.8439 16.766 17.9151L20.8285 21.9776C21.1457 22.2948 21.6601 22.2948 21.9774 21.9776C22.2947 21.6603 22.2947 21.1459 21.9774 20.8287ZM10.8404 18.1531C6.80186 18.1531 3.52794 14.8792 3.52794 10.8406C3.52794 6.80204 6.80186 3.52813 10.8404 3.52813C14.879 3.52813 18.1529 6.80204 18.1529 10.8406C18.1483 14.8773 14.8771 18.1484 10.8404 18.1531Z",fill:"white"}),h.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.8749 6.75003C11.2892 6.75003 11.6249 7.08581 11.6249 7.50003V14.25C11.6249 14.6642 11.2892 15 10.8749 15C10.4607 15 10.1249 14.6642 10.1249 14.25V7.50003C10.1249 7.08581 10.4607 6.75003 10.8749 6.75003Z",fill:"white"}),h.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.74994 10.875C6.74994 10.4608 7.08573 10.125 7.49994 10.125H14.2499C14.6642 10.125 14.9999 10.4608 14.9999 10.875C14.9999 11.2892 14.6642 11.625 14.2499 11.625H7.49994C7.08573 11.625 6.74994 11.2892 6.74994 10.875Z",fill:"white"})]});case"zoom-out":return h.jsxs("svg",{viewBox:"0 0 24 24",...l,children:[h.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22.1025 20.9536L18.04 16.8911C17.9688 16.8206 17.8851 16.764 17.7931 16.7241C20.8864 13.0581 20.5401 7.60539 17.0081 4.36001C13.476 1.11463 8.0136 1.23011 4.62185 4.62185C1.23011 8.0136 1.11463 13.476 4.36001 17.0081C7.60539 20.5401 13.0581 20.8864 16.7241 17.7931C16.764 17.8851 16.8206 17.9688 16.8911 18.04L20.9536 22.1025C21.2709 22.4198 21.7853 22.4198 22.1025 22.1025C22.4198 21.7853 22.4198 21.2709 22.1025 20.9536ZM10.9656 18.2781C6.92698 18.2781 3.65306 15.0041 3.65306 10.9656C3.65306 6.92698 6.92698 3.65306 10.9656 3.65306C15.0041 3.65306 18.2781 6.92698 18.2781 10.9656C18.2734 15.0022 15.0022 18.2734 10.9656 18.2781Z",fill:"white"}),h.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.87506 11C6.87506 10.5858 7.21085 10.25 7.62506 10.25H14.3751C14.7893 10.25 15.1251 10.5858 15.1251 11C15.1251 11.4142 14.7893 11.75 14.3751 11.75H7.62506C7.21085 11.75 6.87506 11.4142 6.87506 11Z",fill:"white"})]});case"download":return h.jsx("svg",{viewBox:"0 0 24 24",...l,children:h.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22.5 11.1346V18.4038C22.498 20.1873 21.0527 21.6326 19.2692 21.6346H4.73077C2.94731 21.6326 1.50204 20.1873 1.5 18.4038V11.1346C1.5 10.6885 1.86162 10.3269 2.30769 10.3269C2.75377 10.3269 3.11538 10.6885 3.11538 11.1346V18.4038C3.1164 19.2956 3.83904 20.0182 4.73077 20.0192H19.2692C20.161 20.0182 20.8836 19.2956 20.8846 18.4038V11.1346C20.8846 10.6885 21.2462 10.3269 21.6923 10.3269C22.1384 10.3269 22.5 10.6885 22.5 11.1346ZM11.1434 16.2663C11.6167 16.7388 12.3832 16.7388 12.8565 16.2663L17.4172 11.7057C17.7326 11.3903 17.7326 10.8789 17.4172 10.5635C17.1018 10.2481 16.5904 10.2481 16.275 10.5635L12.8076 14.0308V3.05769C12.8076 2.61162 12.446 2.25 11.9999 2.25C11.5539 2.25 11.1923 2.61162 11.1923 3.05769V14.0308L7.72485 10.5636C7.40946 10.2482 6.89812 10.2482 6.58273 10.5636C6.26734 10.8789 6.26734 11.3903 6.58273 11.7057L11.1434 16.2663Z",fill:"white"})});case"lightbox-close":return h.jsx("svg",{viewBox:"0 0 24 24",...l,children:h.jsx("path",{xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",d:"M19.2621 18.1129C19.4674 18.3182 19.5475 18.6173 19.4724 18.8977C19.3973 19.178 19.1783 19.397 18.8979 19.4721C18.6176 19.5472 18.3184 19.4671 18.1132 19.2619L12.1877 13.3363L6.26214 19.2619C6.0569 19.4671 5.75776 19.5472 5.47741 19.4721C5.19705 19.397 4.97807 19.178 4.90294 18.8977C4.82782 18.6173 4.90798 18.3182 5.11321 18.1129L11.0388 12.1874L5.11321 6.26186C4.90798 6.05663 4.82782 5.75749 4.90294 5.47713C4.97807 5.19678 5.19705 4.97779 5.47741 4.90267C5.75776 4.82755 6.0569 4.9077 6.26214 5.11294L12.1877 11.0385L18.1132 5.11294C18.4305 4.79567 18.9449 4.79567 19.2621 5.11294C19.5794 5.4302 19.5794 5.9446 19.2621 6.26186L13.3366 12.1874L19.2621 18.1129Z",fill:"white"})});case"pagination-left":return h.jsx("svg",{viewBox:"0 0 24 24",...l,children:h.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.7935 18.7087C16.0092 18.9029 16.105 19.1974 16.0447 19.4813C15.9844 19.7652 15.7772 19.9954 15.5012 20.0852C15.2251 20.1749 14.9222 20.1105 14.7065 19.9164L6.58148 12.6039C6.41027 12.4498 6.3125 12.2303 6.3125 12C6.3125 11.7697 6.41027 11.5503 6.58148 11.3962L14.7065 4.08372C15.04 3.78354 15.5536 3.81054 15.8538 4.14402C16.154 4.4775 16.127 4.99119 15.7935 5.29136L8.33939 12L15.7935 18.7087Z",fill:"#222222"})});case"pagination-right":return h.jsx("svg",{viewBox:"0 0 24 24",...l,children:h.jsx("path",{d:"M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"})})}return null}case"FontAwesome":return h.jsx(To,{className:o,faIcon:c,title:t,...s});default:case"Text":return t?h.jsx("i",{className:ie(o,"humany-letter-symbol"),title:t,...u,...s,children:t.substring(0,2)}):null}},Uc=$.svg`
275
275
  transform: rotate(180deg);
276
- `,Yc={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",p:"p",span:"span"},sn=({variant:t,component:e,className:n,children:r})=>{const{typographyVariantMapping:i={}}=Mc(),o={...Yc,...i},s=e||o[t]||"span";return h.jsx(Kc,{className:n,as:s,children:r})},Kc=$.span``,an=$.div`
276
+ `,Fc={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",p:"p",span:"span"},Sr=({variant:t,component:e,className:n,children:r})=>{const{typographyVariantMapping:i={}}=_c(),o={...Fc,...i},s=e||o[t]||"span";return h.jsx(qc,{className:n,as:s,children:r})},qc=$.span``,sn=$.div`
277
277
  font-family: ${t=>{var e;return(e=t.theme.fonts)==null?void 0:e.type}};
278
278
  font-size: ${t=>{var e;return(e=t.theme.fonts)==null?void 0:e.normal}};
279
279
  position: fixed;
@@ -284,7 +284,7 @@ Valid keys: `+JSON.stringify(Object.keys(b),null," "));var A=me(I,K,P,H,M+"."+K
284
284
  box-shadow: ${t=>t.theme.boxShadow};
285
285
  background: #ffffff;
286
286
  ${t=>t.css&&t.css}
287
- `;$(sn)`
287
+ `;$(Sr)`
288
288
  padding: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.normal}};
289
289
  margin: 0;
290
290
  text-align: center;
@@ -298,11 +298,11 @@ Valid keys: `+JSON.stringify(Object.keys(b),null," "));var A=me(I,K,P,H,M+"."+K
298
298
  color: ${t=>{var e;return(e=t.theme.colors)==null?void 0:e.text}};
299
299
  font-size: ${t=>{var e;return(e=t.theme.fonts)==null?void 0:e.normal}};
300
300
  line-height: 1.2em;
301
- `;const cn=t=>G`
301
+ `;const an=t=>G`
302
302
  transition: ${t.duration}ms;
303
- `;$(an)`
303
+ `;$(sn)`
304
304
  max-height: 0;
305
- ${cn}
305
+ ${an}
306
306
 
307
307
  &.humany-drawer-transition-enter {
308
308
  max-height: 0;
@@ -317,8 +317,8 @@ Valid keys: `+JSON.stringify(Object.keys(b),null," "));var A=me(I,K,P,H,M+"."+K
317
317
  &.humany-drawer-transition-exit-done {
318
318
  max-height: 0;
319
319
  }
320
- `;$(an)`
321
- ${cn}
320
+ `;$(sn)`
321
+ ${an}
322
322
  transform: translateX(100%);
323
323
  height: ${t=>t.fullScreen?"100%":"auto"};
324
324
 
@@ -335,8 +335,8 @@ Valid keys: `+JSON.stringify(Object.keys(b),null," "));var A=me(I,K,P,H,M+"."+K
335
335
  &.humany-drawer-transition-exit-done {
336
336
  transform: translateX(100%);
337
337
  }
338
- `;$(an)`
339
- ${cn}
338
+ `;$(sn)`
339
+ ${an}
340
340
  transform: translateX(-100%);
341
341
  height: ${t=>t.fullScreen?"100%":"auto"};
342
342
 
@@ -353,8 +353,8 @@ Valid keys: `+JSON.stringify(Object.keys(b),null," "));var A=me(I,K,P,H,M+"."+K
353
353
  &.humany-drawer-transition-exit-done {
354
354
  transform: translateX(-100%);
355
355
  }
356
- `;$(an)`
357
- ${cn}
356
+ `;$(sn)`
357
+ ${an}
358
358
  bottom: unset;
359
359
  top: 0;
360
360
  height: 0;
@@ -372,8 +372,8 @@ Valid keys: `+JSON.stringify(Object.keys(b),null," "));var A=me(I,K,P,H,M+"."+K
372
372
  &.humany-drawer-transition-exit-done {
373
373
  height: 0;
374
374
  }
375
- `;const Zc=(t,e,n)=>{const[r,i]=m.useState(0),[o,s]=m.useState(0),a=m.useCallback((c,u)=>{if(c.preventDefault(),u){const l=u.getBoundingClientRect();i(Math.max(document.body.clientWidth-l.right,1)),s(l.bottom+window.scrollY)}},[r,o,i,s]);return m.useEffect(()=>{if(!n||!t)return;const c=n.getBoundingClientRect(),u={x:r,y:o};c.left<0&&(u.x=0),c.bottom>window.innerHeight&&(u.y=0),u.x!==r&&i(u.x),u.y!==o&&s(u.y)},[n,t,e]),[{x:r,y:o},a]};m.forwardRef(({className:t="",children:e=null,trigger:n,closeButtonAriaLabel:r,...i},o)=>{const s=m.useRef(),a=m.useRef(),c=m.useRef();m.useImperativeHandle(o,()=>c.current,[c.current]);const u=m.useRef(Ee()),[l,d]=m.useState(!1),f=ko(l),[{x:p,y:g},v]=Zc(l,u.current,c.current),y=ht("Escape");m.useEffect(()=>{y&&d(!1)},[y]),m.useEffect(()=>{l&&s.current?s.current.focus():!l&&a.current&&f&&a.current.focus()},[l,s.current,a.current]),Ke("click",j=>{const{target:T}=j;!c.current||!T||c.current!==T&&!c.current.contains(T)&&d(!1)},window),Or("router:changed",()=>{d(!1)});const k=$o(u.current,()=>{d(!1)}),N=m.useCallback(j=>{j.stopPropagation(),v(j,a.current),d(!l),k()},[k,v,d]);return h.jsxs(h.Fragment,{children:[l&&h.jsx(Nr,{children:h.jsxs(Gc,{className:ie("humany-dropdown",`humany-dropdown-${u.current}`,t),...i,x:p,y:g,ref:c,children:[h.jsx(Ro,{onClick:()=>d(!1),tabIndex:0,ref:s,"aria-label":r,children:h.jsx(st,{symbol:{type:"Svg",content:"close"}})}),e]})}),m.cloneElement(n,{onClick:N,ref:a,"aria-label":n.props.title,"aria-expanded":l})]})});const Gc=$.div`
376
- ${No}
375
+ `;const Yc=(t,e,n)=>{const[r,i]=m.useState(0),[o,s]=m.useState(0),a=m.useCallback((c,u)=>{if(c.preventDefault(),u){const l=u.getBoundingClientRect();i(Math.max(document.body.clientWidth-l.right,1)),s(l.bottom+window.scrollY)}},[r,o,i,s]);return m.useEffect(()=>{if(!n||!t)return;const c=n.getBoundingClientRect(),u={x:r,y:o};c.left<0&&(u.x=0),c.bottom>window.innerHeight&&(u.y=0),u.x!==r&&i(u.x),u.y!==o&&s(u.y)},[n,t,e]),[{x:r,y:o},a]};m.forwardRef(({className:t="",children:e=null,trigger:n,closeButtonAriaLabel:r,...i},o)=>{const s=m.useRef(),a=m.useRef(),c=m.useRef();m.useImperativeHandle(o,()=>c.current,[c.current]);const u=m.useRef(Oe()),[l,d]=m.useState(!1),f=Co(l),[{x:p,y:g},v]=Yc(l,u.current,c.current),y=ft("Escape");m.useEffect(()=>{y&&d(!1)},[y]),m.useEffect(()=>{l&&s.current?s.current.focus():!l&&a.current&&f&&a.current.focus()},[l,s.current,a.current]),Ke("click",j=>{const{target:T}=j;!c.current||!T||c.current!==T&&!c.current.contains(T)&&d(!1)},window),wr("router:changed",()=>{d(!1)});const k=ko(u.current,()=>{d(!1)}),N=m.useCallback(j=>{j.stopPropagation(),v(j,a.current),d(!l),k()},[k,v,d]);return h.jsxs(h.Fragment,{children:[l&&h.jsx(Cr,{children:h.jsxs(Kc,{className:ie("humany-dropdown",`humany-dropdown-${u.current}`,t),...i,x:p,y:g,ref:c,children:[h.jsx($o,{onClick:()=>d(!1),tabIndex:0,ref:s,"aria-label":r,children:h.jsx(ot,{symbol:{type:"Svg",content:"close"}})}),e]})}),m.cloneElement(n,{onClick:N,ref:a,"aria-label":n.props.title,"aria-expanded":l})]})});const Kc=$.div`
376
+ ${Oo}
377
377
  padding: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.medium}};
378
378
  min-width: 150px;
379
379
  position: absolute;
@@ -382,24 +382,24 @@ Valid keys: `+JSON.stringify(Object.keys(b),null," "));var A=me(I,K,P,H,M+"."+K
382
382
  ${t=>{var n,r,i;let e="";return t.y>0?e+=`top: calc(${((n=t.theme.sizes)==null?void 0:n.small)||"0px"} + ${t.y||"0"}px);`:e+=`bottom: ${((r=t.theme.sizes)==null?void 0:r.normal)||"0px"};`,t.x>0?e+=`right: ${t.x||"0"}px;`:e+=`left: ${((i=t.theme.sizes)==null?void 0:i.normal)||"0px"};`,e}};
383
383
  `;$.div`
384
384
  display: none;
385
- `;m.forwardRef(({children:t,columns:e,gap:n,className:r,...i},o)=>h.jsx(Jc,{className:ie(r,"humany-grid"),"data-columns":e,"data-gap":n,...yo(i),...Ce(i),ref:o,children:t}));const Jc=$.div`
385
+ `;m.forwardRef(({children:t,columns:e,gap:n,className:r,...i},o)=>h.jsx(Zc,{className:ie(r,"humany-grid"),"data-columns":e,"data-gap":n,...vo(i),...Ee(i),ref:o,children:t}));const Zc=$.div`
386
386
  display: grid;
387
387
  grid-template-columns: repeat(${t=>t["data-columns"]}, 1fr);
388
388
  grid-gap: ${t=>t["data-gap"]};
389
389
  justify-content: center;
390
390
  grid-auto-rows: max-content;
391
- ${dc}
392
- `,Tr=m.forwardRef(({htmlParseInstruction:t=null,className:e,html:n,...r},i)=>{const o=He(),[s,a]=m.useState();return m.useEffect(()=>{const c=vc(o,n),u={...c,...t,transform:{...c.transform,...t==null?void 0:t.transform}},l=pc(n,u);a(l)},[n,t]),h.jsx("div",{className:ie(e,"humany-html"),...Ce(r),ref:i,children:s})}),Po=({faIcon:t,title:e,className:n="",role:r="presentation",...i})=>h.jsx("i",{className:ie(n,`fa fa-${t}`),title:e,role:r,...Ce(i)}),Xc=m.forwardRef(({className:t="",autoFocus:e=!1,onFocusChange:n=()=>{},onEnter:r=()=>{},onEscape:i=()=>{},selectAllOnFocus:o,onChange:s=()=>{},disabled:a=!1,type:c,...u},l)=>{const[d,f]=m.useState(e),p=m.useRef();m.useImperativeHandle(l,()=>p.current),m.useEffect(()=>{var y;e&&((y=p==null?void 0:p.current)==null||y.focus())},[e,l,p]);const g=(y,k)=>{f(y),n&&n(y),o&&y&&k.target.select()},v={...Ce(u),disabled:a,autoFocus:e,type:c,onKeyDown:y=>{y.key==="Enter"&&d&&r(y),y.key==="Escape"&&d&&i(y)},onFocus:y=>g(!0,y),onBlur:y=>g(!1,y),onChange:y=>s(y.target.value||""),className:ie(t,"humany-input"),"data-type":c};return c!=="textarea"?h.jsx("input",{...v,ref:p}):h.jsx("textarea",{...v,ref:p})}),ln=m.forwardRef(({className:t,items:e,renderItem:n,renderLi:r=!1,...i},o)=>h.jsx("ul",{"aria-live":"polite",className:ie(t,"humany-list"),"data-item-count":e.length,...Ce(i),ref:o,children:e.map((s,a,c)=>r?h.jsx("li",{className:"humany-list-item",children:n(s,a,c)},s.id||a):n(s,a,c))})),jo=m.forwardRef(({text:t,html:e,header:n,className:r,htmlParseInstruction:i,symbol:o,...s},a)=>h.jsxs("div",{className:ie(r,"humany-paragraph"),...Ce(s),ref:a,children:[n?h.jsxs(sn,{variant:"h1",children:[o?h.jsx(st,{symbol:o}):null,n]}):null,e?h.jsx(Tr,{html:e,htmlParseInstruction:i}):null,t?h.jsx(rn,{children:t}):null]})),Qc=m.forwardRef(({header:t,customHeader:e,text:n,html:r,className:i,children:o,symbol:s,items:a,renderItem:c,renderLi:u,ulProps:l,...d},f)=>h.jsxs("div",{className:ie(i,"humany-item-list"),"data-item-count":a.length,...Ce(d),ref:f,children:[e||(t||n||r?h.jsx(jo,{symbol:s,header:t,text:n,html:r}):null),a.length?h.jsx(ln,{items:a,renderItem:c,renderLi:u,...l}):null,o]}));var Ao=function(){};process.env.NODE_ENV!=="production"&&(Ao=function(t,e,n){var r=arguments.length;n=new Array(r>2?r-2:0);for(var i=2;i<r;i++)n[i-2]=arguments[i];if(e===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(e.length<10||/^[s\W]*$/.test(e))throw new Error("The warning format should be able to uniquely identify this warning. Please, use a more descriptive format than: "+e);if(!t){var o=0,s="Warning: "+e.replace(/%s/g,function(){return n[o++]});typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}}});var el=Ao,tl=el;nl(tl);function nl(t){return t&&t.__esModule?t:{default:t}}function kt(t){return t.charAt(0)==="/"}function Tn(t,e){for(var n=e,r=n+1,i=t.length;r<i;n+=1,r+=1)t[n]=t[r];t.pop()}function rl(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",n=t&&t.split("/")||[],r=e&&e.split("/")||[],i=t&&kt(t),o=e&&kt(e),s=i||o;if(t&&kt(t)?r=n:n.length&&(r.pop(),r=r.concat(n)),!r.length)return"/";var a=void 0;if(r.length){var c=r[r.length-1];a=c==="."||c===".."||c===""}else a=!1;for(var u=0,l=r.length;l>=0;l--){var d=r[l];d==="."?Tn(r,l):d===".."?(Tn(r,l),u++):u&&(Tn(r,l),u--)}if(!s)for(;u--;u)r.unshift("..");s&&r[0]!==""&&(!r[0]||!kt(r[0]))&&r.unshift("");var f=r.join("/");return a&&f.substr(-1)!=="/"&&(f+="/"),f}const il=Object.freeze(Object.defineProperty({__proto__:null,default:rl},Symbol.toStringTag,{value:"Module"})),ol=uo(il);var ki=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};function Dt(t,e){if(t===e)return!0;if(t==null||e==null)return!1;if(Array.isArray(t))return Array.isArray(e)&&t.length===e.length&&t.every(function(c,u){return Dt(c,e[u])});var n=typeof t>"u"?"undefined":ki(t),r=typeof e>"u"?"undefined":ki(e);if(n!==r)return!1;if(n==="object"){var i=t.valueOf(),o=e.valueOf();if(i!==t||o!==e)return Dt(i,o);var s=Object.keys(t),a=Object.keys(e);return s.length!==a.length?!1:s.every(function(c){return Dt(t[c],e[c])})}return!1}const sl=Object.freeze(Object.defineProperty({__proto__:null,default:Dt},Symbol.toStringTag,{value:"Module"})),al=uo(sl);var cl=ol;_o(cl);var ll=al;_o(ll);function _o(t){return t&&t.__esModule?t:{default:t}}var qn=(t=>(t.scopedHash="scopedHash",t.hash="hash",t.browser="browser",t.memory="memory",t))(qn||{});const ul=(t,e)=>{const n=`humany-${e}=([^&?]+)&?`,r=new RegExp(n,"i"),i=t.match(r);return i&&i[1]||"/"};Yt(t=>{t.createCommand("routing",e=>n=>{const r={mode:n.mode};n.basePath&&(r.basePath=n.basePath),e.container.register("routingSettings",r)})});function Ot(t){return t.charAt(0)==="/"}function Rn(t,e){for(var n=e,r=n+1,i=t.length;r<i;n+=1,r+=1)t[n]=t[r];t.pop()}function dl(t,e){e===void 0&&(e="");var n=t&&t.split("/")||[],r=e&&e.split("/")||[],i=t&&Ot(t),o=e&&Ot(e),s=i||o;if(t&&Ot(t)?r=n:n.length&&(r.pop(),r=r.concat(n)),!r.length)return"/";var a;if(r.length){var c=r[r.length-1];a=c==="."||c===".."||c===""}else a=!1;for(var u=0,l=r.length;l>=0;l--){var d=r[l];d==="."?Rn(r,l):d===".."?(Rn(r,l),u++):u&&(Rn(r,l),u--)}if(!s)for(;u--;u)r.unshift("..");s&&r[0]!==""&&(!r[0]||!Ot(r[0]))&&r.unshift("");var f=r.join("/");return a&&f.substr(-1)!=="/"&&(f+="/"),f}var fl=process.env.NODE_ENV==="production";function re(t,e){if(!fl){if(t)return;var n="Warning: "+e;typeof console<"u"&&console.warn(n);try{throw Error(n)}catch{}}}var hl=process.env.NODE_ENV==="production",Pn="Invariant failed";function be(t,e){if(!t){if(hl)throw new Error(Pn);var n=typeof e=="function"?e():e,r=n?"".concat(Pn,": ").concat(n):Pn;throw new Error(r)}}function pt(t){return t.charAt(0)==="/"?t:"/"+t}function Oi(t){return t.charAt(0)==="/"?t.substr(1):t}function Rr(t,e){return t.toLowerCase().indexOf(e.toLowerCase())===0&&"/?#".indexOf(t.charAt(e.length))!==-1}function Lo(t,e){return Rr(t,e)?t.substr(e.length):t}function Do(t){return t.charAt(t.length-1)==="/"?t.slice(0,-1):t}function pl(t){var e=t||"/",n="",r="",i=e.indexOf("#");i!==-1&&(r=e.substr(i),e=e.substr(0,i));var o=e.indexOf("?");return o!==-1&&(n=e.substr(o),e=e.substr(0,o)),{pathname:e,search:n==="?"?"":n,hash:r==="#"?"":r}}function ve(t){var e=t.pathname,n=t.search,r=t.hash,i=e||"/";return n&&n!=="?"&&(i+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(i+=r.charAt(0)==="#"?r:"#"+r),i}function xe(t,e,n,r){var i;typeof t=="string"?(i=pl(t),i.state=e):(i=ue({},t),i.pathname===void 0&&(i.pathname=""),i.search?i.search.charAt(0)!=="?"&&(i.search="?"+i.search):i.search="",i.hash?i.hash.charAt(0)!=="#"&&(i.hash="#"+i.hash):i.hash="",e!==void 0&&i.state===void 0&&(i.state=e));try{i.pathname=decodeURI(i.pathname)}catch(o){throw o instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):o}return n&&(i.key=n),r?i.pathname?i.pathname.charAt(0)!=="/"&&(i.pathname=dl(i.pathname,r.pathname)):i.pathname=r.pathname:i.pathname||(i.pathname="/"),i}function Pr(){var t=null;function e(s){return process.env.NODE_ENV!=="production"&&re(t==null,"A history supports only one prompt at a time"),t=s,function(){t===s&&(t=null)}}function n(s,a,c,u){if(t!=null){var l=typeof t=="function"?t(s,a):t;typeof l=="string"?typeof c=="function"?c(l,u):(process.env.NODE_ENV!=="production"&&re(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),u(!0)):u(l!==!1)}else u(!0)}var r=[];function i(s){var a=!0;function c(){a&&s.apply(void 0,arguments)}return r.push(c),function(){a=!1,r=r.filter(function(u){return u!==c})}}function o(){for(var s=arguments.length,a=new Array(s),c=0;c<s;c++)a[c]=arguments[c];r.forEach(function(u){return u.apply(void 0,a)})}return{setPrompt:e,confirmTransitionTo:n,appendListener:i,notifyListeners:o}}var Mo=!!(typeof window<"u"&&window.document&&window.document.createElement);function Io(t,e){e(window.confirm(t))}function ml(){var t=window.navigator.userAgent;return(t.indexOf("Android 2.")!==-1||t.indexOf("Android 4.0")!==-1)&&t.indexOf("Mobile Safari")!==-1&&t.indexOf("Chrome")===-1&&t.indexOf("Windows Phone")===-1?!1:window.history&&"pushState"in window.history}function vl(){return window.navigator.userAgent.indexOf("Trident")===-1}function gl(){return window.navigator.userAgent.indexOf("Firefox")===-1}function yl(t){return t.state===void 0&&navigator.userAgent.indexOf("CriOS")===-1}var $i="popstate",Ni="hashchange";function Ti(){try{return window.history.state||{}}catch{return{}}}function bl(t){t===void 0&&(t={}),Mo||(process.env.NODE_ENV!=="production"?be(!1,"Browser history needs a DOM"):be(!1));var e=window.history,n=ml(),r=!vl(),i=t,o=i.forceRefresh,s=o===void 0?!1:o,a=i.getUserConfirmation,c=a===void 0?Io:a,u=i.keyLength,l=u===void 0?6:u,d=t.basename?Do(pt(t.basename)):"";function f(B){var b=B||{},w=b.key,C=b.state,O=window.location,P=O.pathname,H=O.search,M=O.hash,I=P+H+M;return process.env.NODE_ENV!=="production"&&re(!d||Rr(I,d),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+I+'" to begin with "'+d+'".'),d&&(I=Lo(I,d)),xe(I,C,w)}function p(){return Math.random().toString(36).substr(2,l)}var g=Pr();function v(B){ue(ne,B),ne.length=e.length,g.notifyListeners(ne.location,ne.action)}function y(B){yl(B)||j(f(B.state))}function k(){j(f(Ti()))}var N=!1;function j(B){if(N)N=!1,v();else{var b="POP";g.confirmTransitionTo(B,b,c,function(w){w?v({action:b,location:B}):T(B)})}}function T(B){var b=ne.location,w=V.indexOf(b.key);w===-1&&(w=0);var C=V.indexOf(B.key);C===-1&&(C=0);var O=w-C;O&&(N=!0,D(O))}var x=f(Ti()),V=[x.key];function R(B){return d+ve(B)}function _(B,b){process.env.NODE_ENV!=="production"&&re(!(typeof B=="object"&&B.state!==void 0&&b!==void 0),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var w="PUSH",C=xe(B,b,p(),ne.location);g.confirmTransitionTo(C,w,c,function(O){if(O){var P=R(C),H=C.key,M=C.state;if(n)if(e.pushState({key:H,state:M},null,P),s)window.location.href=P;else{var I=V.indexOf(ne.location.key),F=V.slice(0,I+1);F.push(C.key),V=F,v({action:w,location:C})}else process.env.NODE_ENV!=="production"&&re(M===void 0,"Browser history cannot push state in browsers that do not support HTML5 history"),window.location.href=P}})}function L(B,b){process.env.NODE_ENV!=="production"&&re(!(typeof B=="object"&&B.state!==void 0&&b!==void 0),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var w="REPLACE",C=xe(B,b,p(),ne.location);g.confirmTransitionTo(C,w,c,function(O){if(O){var P=R(C),H=C.key,M=C.state;if(n)if(e.replaceState({key:H,state:M},null,P),s)window.location.replace(P);else{var I=V.indexOf(ne.location.key);I!==-1&&(V[I]=C.key),v({action:w,location:C})}else process.env.NODE_ENV!=="production"&&re(M===void 0,"Browser history cannot replace state in browsers that do not support HTML5 history"),window.location.replace(P)}})}function D(B){e.go(B)}function W(){D(-1)}function U(){D(1)}var q=0;function z(B){q+=B,q===1&&B===1?(window.addEventListener($i,y),r&&window.addEventListener(Ni,k)):q===0&&(window.removeEventListener($i,y),r&&window.removeEventListener(Ni,k))}var Y=!1;function te(B){B===void 0&&(B=!1);var b=g.setPrompt(B);return Y||(z(1),Y=!0),function(){return Y&&(Y=!1,z(-1)),b()}}function oe(B){var b=g.appendListener(B);return z(1),function(){z(-1),b()}}var ne={length:e.length,action:"POP",location:x,createHref:R,push:_,replace:L,go:D,goBack:W,goForward:U,block:te,listen:oe};return ne}var Ri="hashchange",xl={hashbang:{encodePath:function(e){return e.charAt(0)==="!"?e:"!/"+Oi(e)},decodePath:function(e){return e.charAt(0)==="!"?e.substr(1):e}},noslash:{encodePath:Oi,decodePath:pt},slash:{encodePath:pt,decodePath:pt}};function Vo(t){var e=t.indexOf("#");return e===-1?t:t.slice(0,e)}function lt(){var t=window.location.href,e=t.indexOf("#");return e===-1?"":t.substring(e+1)}function wl(t){window.location.hash=t}function jn(t){window.location.replace(Vo(window.location.href)+"#"+t)}function El(t){t===void 0&&(t={}),Mo||(process.env.NODE_ENV!=="production"?be(!1,"Hash history needs a DOM"):be(!1));var e=window.history,n=gl(),r=t,i=r.getUserConfirmation,o=i===void 0?Io:i,s=r.hashType,a=s===void 0?"slash":s,c=t.basename?Do(pt(t.basename)):"",u=xl[a],l=u.encodePath,d=u.decodePath;function f(){var w=d(lt());return process.env.NODE_ENV!=="production"&&re(!c||Rr(w,c),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+w+'" to begin with "'+c+'".'),c&&(w=Lo(w,c)),xe(w)}var p=Pr();function g(w){ue(b,w),b.length=e.length,p.notifyListeners(b.location,b.action)}var v=!1,y=null;function k(w,C){return w.pathname===C.pathname&&w.search===C.search&&w.hash===C.hash}function N(){var w=lt(),C=l(w);if(w!==C)jn(C);else{var O=f(),P=b.location;if(!v&&k(P,O)||y===ve(O))return;y=null,j(O)}}function j(w){if(v)v=!1,g();else{var C="POP";p.confirmTransitionTo(w,C,o,function(O){O?g({action:C,location:w}):T(w)})}}function T(w){var C=b.location,O=_.lastIndexOf(ve(C));O===-1&&(O=0);var P=_.lastIndexOf(ve(w));P===-1&&(P=0);var H=O-P;H&&(v=!0,U(H))}var x=lt(),V=l(x);x!==V&&jn(V);var R=f(),_=[ve(R)];function L(w){var C=document.querySelector("base"),O="";return C&&C.getAttribute("href")&&(O=Vo(window.location.href)),O+"#"+l(c+ve(w))}function D(w,C){process.env.NODE_ENV!=="production"&&re(C===void 0,"Hash history cannot push state; it is ignored");var O="PUSH",P=xe(w,void 0,void 0,b.location);p.confirmTransitionTo(P,O,o,function(H){if(H){var M=ve(P),I=l(c+M),F=lt()!==I;if(F){y=M,wl(I);var Z=_.lastIndexOf(ve(b.location)),K=_.slice(0,Z+1);K.push(M),_=K,g({action:O,location:P})}else process.env.NODE_ENV!=="production"&&re(!1,"Hash history cannot PUSH the same path; a new entry will not be added to the history stack"),g()}})}function W(w,C){process.env.NODE_ENV!=="production"&&re(C===void 0,"Hash history cannot replace state; it is ignored");var O="REPLACE",P=xe(w,void 0,void 0,b.location);p.confirmTransitionTo(P,O,o,function(H){if(H){var M=ve(P),I=l(c+M),F=lt()!==I;F&&(y=M,jn(I));var Z=_.indexOf(ve(b.location));Z!==-1&&(_[Z]=M),g({action:O,location:P})}})}function U(w){process.env.NODE_ENV!=="production"&&re(n,"Hash history go(n) causes a full page reload in this browser"),e.go(w)}function q(){U(-1)}function z(){U(1)}var Y=0;function te(w){Y+=w,Y===1&&w===1?window.addEventListener(Ri,N):Y===0&&window.removeEventListener(Ri,N)}var oe=!1;function ne(w){w===void 0&&(w=!1);var C=p.setPrompt(w);return oe||(te(1),oe=!0),function(){return oe&&(oe=!1,te(-1)),C()}}function B(w){var C=p.appendListener(w);return te(1),function(){te(-1),C()}}var b={length:e.length,action:"POP",location:R,createHref:L,push:D,replace:W,go:U,goBack:q,goForward:z,block:ne,listen:B};return b}function Pi(t,e,n){return Math.min(Math.max(t,e),n)}function Cl(t){t===void 0&&(t={});var e=t,n=e.getUserConfirmation,r=e.initialEntries,i=r===void 0?["/"]:r,o=e.initialIndex,s=o===void 0?0:o,a=e.keyLength,c=a===void 0?6:a,u=Pr();function l(_){ue(R,_),R.length=R.entries.length,u.notifyListeners(R.location,R.action)}function d(){return Math.random().toString(36).substr(2,c)}var f=Pi(s,0,i.length-1),p=i.map(function(_){return typeof _=="string"?xe(_,void 0,d()):xe(_,void 0,_.key||d())}),g=ve;function v(_,L){process.env.NODE_ENV!=="production"&&re(!(typeof _=="object"&&_.state!==void 0&&L!==void 0),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var D="PUSH",W=xe(_,L,d(),R.location);u.confirmTransitionTo(W,D,n,function(U){if(U){var q=R.index,z=q+1,Y=R.entries.slice(0);Y.length>z?Y.splice(z,Y.length-z,W):Y.push(W),l({action:D,location:W,index:z,entries:Y})}})}function y(_,L){process.env.NODE_ENV!=="production"&&re(!(typeof _=="object"&&_.state!==void 0&&L!==void 0),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var D="REPLACE",W=xe(_,L,d(),R.location);u.confirmTransitionTo(W,D,n,function(U){U&&(R.entries[R.index]=W,l({action:D,location:W}))})}function k(_){var L=Pi(R.index+_,0,R.entries.length-1),D="POP",W=R.entries[L];u.confirmTransitionTo(W,D,n,function(U){U?l({action:D,location:W,index:L}):l()})}function N(){k(-1)}function j(){k(1)}function T(_){var L=R.index+_;return L>=0&&L<R.entries.length}function x(_){return _===void 0&&(_=!1),u.setPrompt(_)}function V(_){return u.appendListener(_)}var R={length:p.length,action:"POP",location:p[f],index:f,entries:p,createHref:g,push:v,replace:y,go:k,goBack:N,goForward:j,canGo:T,block:x,listen:V};return R}var at={exports:{}},Sl=Array.isArray||function(t){return Object.prototype.toString.call(t)=="[object Array]"},Wt=Sl;at.exports=Bo;at.exports.parse=jr;at.exports.compile=Ol;at.exports.tokensToFunction=Ho;at.exports.tokensToRegExp=zo;var kl=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function jr(t,e){for(var n=[],r=0,i=0,o="",s=e&&e.delimiter||"/",a;(a=kl.exec(t))!=null;){var c=a[0],u=a[1],l=a.index;if(o+=t.slice(i,l),i=l+c.length,u){o+=u[1];continue}var d=t[i],f=a[2],p=a[3],g=a[4],v=a[5],y=a[6],k=a[7];o&&(n.push(o),o="");var N=f!=null&&d!=null&&d!==f,j=y==="+"||y==="*",T=y==="?"||y==="*",x=a[2]||s,V=g||v;n.push({name:p||r++,prefix:f||"",delimiter:x,optional:T,repeat:j,partial:N,asterisk:!!k,pattern:V?Tl(V):k?".*":"[^"+Mt(x)+"]+?"})}return i<t.length&&(o+=t.substr(i)),o&&n.push(o),n}function Ol(t,e){return Ho(jr(t,e),e)}function $l(t){return encodeURI(t).replace(/[\/?#]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function Nl(t){return encodeURI(t).replace(/[?#]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function Ho(t,e){for(var n=new Array(t.length),r=0;r<t.length;r++)typeof t[r]=="object"&&(n[r]=new RegExp("^(?:"+t[r].pattern+")$",_r(e)));return function(i,o){for(var s="",a=i||{},c=o||{},u=c.pretty?$l:encodeURIComponent,l=0;l<t.length;l++){var d=t[l];if(typeof d=="string"){s+=d;continue}var f=a[d.name],p;if(f==null)if(d.optional){d.partial&&(s+=d.prefix);continue}else throw new TypeError('Expected "'+d.name+'" to be defined');if(Wt(f)){if(!d.repeat)throw new TypeError('Expected "'+d.name+'" to not repeat, but received `'+JSON.stringify(f)+"`");if(f.length===0){if(d.optional)continue;throw new TypeError('Expected "'+d.name+'" to not be empty')}for(var g=0;g<f.length;g++){if(p=u(f[g]),!n[l].test(p))throw new TypeError('Expected all "'+d.name+'" to match "'+d.pattern+'", but received `'+JSON.stringify(p)+"`");s+=(g===0?d.prefix:d.delimiter)+p}continue}if(p=d.asterisk?Nl(f):u(f),!n[l].test(p))throw new TypeError('Expected "'+d.name+'" to match "'+d.pattern+'", but received "'+p+'"');s+=d.prefix+p}return s}}function Mt(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function Tl(t){return t.replace(/([=!:$\/()])/g,"\\$1")}function Ar(t,e){return t.keys=e,t}function _r(t){return t&&t.sensitive?"":"i"}function Rl(t,e){var n=t.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)e.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return Ar(t,e)}function Pl(t,e,n){for(var r=[],i=0;i<t.length;i++)r.push(Bo(t[i],e,n).source);var o=new RegExp("(?:"+r.join("|")+")",_r(n));return Ar(o,e)}function jl(t,e,n){return zo(jr(t,n),e,n)}function zo(t,e,n){Wt(e)||(n=e||n,e=[]),n=n||{};for(var r=n.strict,i=n.end!==!1,o="",s=0;s<t.length;s++){var a=t[s];if(typeof a=="string")o+=Mt(a);else{var c=Mt(a.prefix),u="(?:"+a.pattern+")";e.push(a),a.repeat&&(u+="(?:"+c+u+")*"),a.optional?a.partial?u=c+"("+u+")?":u="(?:"+c+"("+u+"))?":u=c+"("+u+")",o+=u}}var l=Mt(n.delimiter||"/"),d=o.slice(-l.length)===l;return r||(o=(d?o.slice(0,-l.length):o)+"(?:"+l+"(?=$))?"),i?o+="$":o+=r&&d?"":"(?="+l+"|$)",Ar(new RegExp("^"+o,_r(n)),e)}function Bo(t,e,n){return Wt(e)||(n=e||n,e=[]),n=n||{},t instanceof RegExp?Rl(t,e):Wt(t)?Pl(t,e,n):jl(t,e,n)}var Al=at.exports;const _l=vr(Al);var $t=1073741823,ji=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:{};function Ll(){var t="__global_unique_id__";return ji[t]=(ji[t]||0)+1}function Dl(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}function Ml(t){var e=[];return{on:function(r){e.push(r)},off:function(r){e=e.filter(function(i){return i!==r})},get:function(){return t},set:function(r,i){t=r,e.forEach(function(o){return o(t,i)})}}}function Il(t){return Array.isArray(t)?t[0]:t}function Vl(t,e){var n,r,i="__create-react-context-"+Ll()+"__",o=function(a){Se(c,a);function c(){for(var l,d=arguments.length,f=new Array(d),p=0;p<d;p++)f[p]=arguments[p];return l=a.call.apply(a,[this].concat(f))||this,l.emitter=Ml(l.props.value),l}var u=c.prototype;return u.getChildContext=function(){var d;return d={},d[i]=this.emitter,d},u.componentWillReceiveProps=function(d){if(this.props.value!==d.value){var f=this.props.value,p=d.value,g;Dl(f,p)?g=0:(g=typeof e=="function"?e(f,p):$t,process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&re((g&$t)===g,"calculateChangedBits: Expected the return value to be a 31-bit integer. Instead received: "+g),g|=0,g!==0&&this.emitter.set(d.value,g))}},u.render=function(){return this.props.children},c}(m.Component);o.childContextTypes=(n={},n[i]=E.object.isRequired,n);var s=function(a){Se(c,a);function c(){for(var l,d=arguments.length,f=new Array(d),p=0;p<d;p++)f[p]=arguments[p];return l=a.call.apply(a,[this].concat(f))||this,l.observedBits=void 0,l.state={value:l.getValue()},l.onUpdate=function(g,v){var y=l.observedBits|0;y&v&&l.setState({value:l.getValue()})},l}var u=c.prototype;return u.componentWillReceiveProps=function(d){var f=d.observedBits;this.observedBits=f??$t},u.componentDidMount=function(){this.context[i]&&this.context[i].on(this.onUpdate);var d=this.props.observedBits;this.observedBits=d??$t},u.componentWillUnmount=function(){this.context[i]&&this.context[i].off(this.onUpdate)},u.getValue=function(){return this.context[i]?this.context[i].get():t},u.render=function(){return Il(this.props.children)(this.state.value)},c}(m.Component);return s.contextTypes=(r={},r[i]=E.object,r),{Provider:o,Consumer:s}}var Hl=m.createContext||Vl,Wo=function(e){var n=Hl();return n.displayName=e,n},zl=Wo("Router-History"),Qe=Wo("Router"),et=function(t){Se(e,t),e.computeRootMatch=function(i){return{path:"/",url:"/",params:{},isExact:i==="/"}};function e(r){var i;return i=t.call(this,r)||this,i.state={location:r.history.location},i._isMounted=!1,i._pendingLocation=null,r.staticContext||(i.unlisten=r.history.listen(function(o){i._pendingLocation=o})),i}var n=e.prototype;return n.componentDidMount=function(){var i=this;this._isMounted=!0,this.unlisten&&this.unlisten(),this.props.staticContext||(this.unlisten=this.props.history.listen(function(o){i._isMounted&&i.setState({location:o})})),this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},n.render=function(){return m.createElement(Qe.Provider,{value:{history:this.props.history,location:this.state.location,match:e.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},m.createElement(zl.Provider,{children:this.props.children||null,value:this.props.history}))},e}(m.Component);process.env.NODE_ENV!=="production"&&(et.propTypes={children:E.node,history:E.object.isRequired,staticContext:E.object},et.prototype.componentDidUpdate=function(t){process.env.NODE_ENV!=="production"&&re(t.history===this.props.history,"You cannot change <Router history>")});var Ai=function(t){Se(e,t);function e(){for(var r,i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o))||this,r.history=Cl(r.props),r}var n=e.prototype;return n.render=function(){return m.createElement(et,{history:this.history,children:this.props.children})},e}(m.Component);process.env.NODE_ENV!=="production"&&(Ai.propTypes={initialEntries:E.array,initialIndex:E.number,getUserConfirmation:E.func,keyLength:E.number,children:E.node},Ai.prototype.componentDidMount=function(){process.env.NODE_ENV!=="production"&&re(!this.props.history,"<MemoryRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { MemoryRouter as Router }`.")});m.Component;if(process.env.NODE_ENV!=="production"){var Bl=E.oneOfType([E.func,E.string]);E.bool,Bl.isRequired}process.env.NODE_ENV!=="production"&&(E.bool,E.string,E.oneOfType([E.string,E.object]).isRequired);var _i={},Wl=1e4,Li=0;function Ul(t,e){var n=""+e.end+e.strict+e.sensitive,r=_i[n]||(_i[n]={});if(r[t])return r[t];var i=[],o=_l(t,i,e),s={regexp:o,keys:i};return Li<Wl&&(r[t]=s,Li++),s}function Lr(t,e){e===void 0&&(e={}),(typeof e=="string"||Array.isArray(e))&&(e={path:e});var n=e,r=n.path,i=n.exact,o=i===void 0?!1:i,s=n.strict,a=s===void 0?!1:s,c=n.sensitive,u=c===void 0?!1:c,l=[].concat(r);return l.reduce(function(d,f){if(!f&&f!=="")return null;if(d)return d;var p=Ul(f,{end:o,strict:a,sensitive:u}),g=p.regexp,v=p.keys,y=g.exec(t);if(!y)return null;var k=y[0],N=y.slice(1),j=t===k;return o&&!j?null:{path:f,url:f==="/"&&k===""?"/":k,isExact:j,params:v.reduce(function(T,x,V){return T[x.name]=N[V],T},{})}},null)}function Yn(t){return m.Children.count(t)===0}function Di(t,e,n){var r=t(e);return process.env.NODE_ENV!=="production"&&re(r!==void 0,"You returned `undefined` from the `children` function of "+("<Route"+(n?' path="'+n+'"':"")+">, but you ")+"should have returned a React element or `null`"),r||null}var An=function(t){Se(e,t);function e(){return t.apply(this,arguments)||this}var n=e.prototype;return n.render=function(){var i=this;return m.createElement(Qe.Consumer,null,function(o){o||(process.env.NODE_ENV!=="production"?be(!1,"You should not use <Route> outside a <Router>"):be(!1));var s=i.props.location||o.location,a=i.props.computedMatch?i.props.computedMatch:i.props.path?Lr(s.pathname,i.props):o.match,c=ue({},o,{location:s,match:a}),u=i.props,l=u.children,d=u.component,f=u.render;return Array.isArray(l)&&Yn(l)&&(l=null),m.createElement(Qe.Provider,{value:c},c.match?l?typeof l=="function"?process.env.NODE_ENV!=="production"?Di(l,c,i.props.path):l(c):l:d?m.createElement(d,c):f?f(c):null:typeof l=="function"?process.env.NODE_ENV!=="production"?Di(l,c,i.props.path):l(c):null)})},e}(m.Component);process.env.NODE_ENV!=="production"&&(An.propTypes={children:E.oneOfType([E.func,E.node]),component:function(e,n){if(e[n]&&!Qt.isValidElementType(e[n]))return new Error("Invalid prop 'component' supplied to 'Route': the prop is not a valid React component")},exact:E.bool,location:E.object,path:E.oneOfType([E.string,E.arrayOf(E.string)]),render:E.func,sensitive:E.bool,strict:E.bool},An.prototype.componentDidMount=function(){process.env.NODE_ENV!=="production"&&re(!(this.props.children&&!Yn(this.props.children)&&this.props.component),"You should not use <Route component> and <Route children> in the same route; <Route component> will be ignored"),process.env.NODE_ENV!=="production"&&re(!(this.props.children&&!Yn(this.props.children)&&this.props.render),"You should not use <Route render> and <Route children> in the same route; <Route render> will be ignored"),process.env.NODE_ENV!=="production"&&re(!(this.props.component&&this.props.render),"You should not use <Route component> and <Route render> in the same route; <Route render> will be ignored")},An.prototype.componentDidUpdate=function(t){process.env.NODE_ENV!=="production"&&re(!(this.props.location&&!t.location),'<Route> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),process.env.NODE_ENV!=="production"&&re(!(!this.props.location&&t.location),'<Route> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.')});function Dr(t){return t.charAt(0)==="/"?t:"/"+t}function Fl(t,e){return t?ue({},e,{pathname:Dr(t)+e.pathname}):e}function ql(t,e){if(!t)return e;var n=Dr(t);return e.pathname.indexOf(n)!==0?e:ue({},e,{pathname:e.pathname.substr(n.length)})}function Mi(t){return typeof t=="string"?t:ve(t)}function _n(t){return function(){process.env.NODE_ENV!=="production"?be(!1,"You cannot %s with <StaticRouter>"):be(!1)}}function Ii(){}var Vi=function(t){Se(e,t);function e(){for(var r,i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o))||this,r.handlePush=function(a){return r.navigateTo(a,"PUSH")},r.handleReplace=function(a){return r.navigateTo(a,"REPLACE")},r.handleListen=function(){return Ii},r.handleBlock=function(){return Ii},r}var n=e.prototype;return n.navigateTo=function(i,o){var s=this.props,a=s.basename,c=a===void 0?"":a,u=s.context,l=u===void 0?{}:u;l.action=o,l.location=Fl(c,xe(i)),l.url=Mi(l.location)},n.render=function(){var i=this.props,o=i.basename,s=o===void 0?"":o,a=i.context,c=a===void 0?{}:a,u=i.location,l=u===void 0?"/":u,d=ot(i,["basename","context","location"]),f={createHref:function(g){return Dr(s+Mi(g))},action:"POP",location:ql(s,xe(l)),push:this.handlePush,replace:this.handleReplace,go:_n(),goBack:_n(),goForward:_n(),listen:this.handleListen,block:this.handleBlock};return m.createElement(et,ue({},d,{history:f,staticContext:c}))},e}(m.Component);process.env.NODE_ENV!=="production"&&(Vi.propTypes={basename:E.string,context:E.object,location:E.oneOfType([E.string,E.object])},Vi.prototype.componentDidMount=function(){process.env.NODE_ENV!=="production"&&re(!this.props.history,"<StaticRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { StaticRouter as Router }`.")});var Hi=function(t){Se(e,t);function e(){return t.apply(this,arguments)||this}var n=e.prototype;return n.render=function(){var i=this;return m.createElement(Qe.Consumer,null,function(o){o||(process.env.NODE_ENV!=="production"?be(!1,"You should not use <Switch> outside a <Router>"):be(!1));var s=i.props.location||o.location,a,c;return m.Children.forEach(i.props.children,function(u){if(c==null&&m.isValidElement(u)){a=u;var l=u.props.path||u.props.from;c=l?Lr(s.pathname,ue({},u.props,{path:l})):o.match}}),c?m.cloneElement(a,{location:s,computedMatch:c}):null})},e}(m.Component);process.env.NODE_ENV!=="production"&&(Hi.propTypes={children:E.node,location:E.object},Hi.prototype.componentDidUpdate=function(t){process.env.NODE_ENV!=="production"&&re(!(this.props.location&&!t.location),'<Switch> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),process.env.NODE_ENV!=="production"&&re(!(!this.props.location&&t.location),'<Switch> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.')});m.useContext;if(process.env.NODE_ENV!=="production"&&typeof window<"u"){var Nt=window,Tt="__react_router_build__",zi={cjs:"CommonJS",esm:"ES modules",umd:"UMD"};if(Nt[Tt]&&Nt[Tt]!=="esm"){var Yl=zi[Nt[Tt]],Kl=zi.esm;throw new Error("You are loading the "+Kl+" build of React Router "+("on a page that is already running the "+Yl+" ")+"build, so things won't work right.")}Nt[Tt]="esm"}var Bi=function(t){Se(e,t);function e(){for(var r,i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o))||this,r.history=bl(r.props),r}var n=e.prototype;return n.render=function(){return m.createElement(et,{history:this.history,children:this.props.children})},e}(m.Component);process.env.NODE_ENV!=="production"&&(Bi.propTypes={basename:E.string,children:E.node,forceRefresh:E.bool,getUserConfirmation:E.func,keyLength:E.number},Bi.prototype.componentDidMount=function(){process.env.NODE_ENV!=="production"&&re(!this.props.history,"<BrowserRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { BrowserRouter as Router }`.")});var Wi=function(t){Se(e,t);function e(){for(var r,i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o))||this,r.history=El(r.props),r}var n=e.prototype;return n.render=function(){return m.createElement(et,{history:this.history,children:this.props.children})},e}(m.Component);process.env.NODE_ENV!=="production"&&(Wi.propTypes={basename:E.string,children:E.node,getUserConfirmation:E.func,hashType:E.oneOf(["hashbang","noslash","slash"])},Wi.prototype.componentDidMount=function(){process.env.NODE_ENV!=="production"&&re(!this.props.history,"<HashRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { HashRouter as Router }`.")});var Kn=function(e,n){return typeof e=="function"?e(n):e},Zn=function(e,n){return typeof e=="string"?xe(e,null,null,n):e},Mr=function(e){return e},tt=m.forwardRef;typeof tt>"u"&&(tt=Mr);function Zl(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}var Uo=tt(function(t,e){var n=t.innerRef,r=t.navigate,i=t.onClick,o=ot(t,["innerRef","navigate","onClick"]),s=o.target,a=ue({},o,{onClick:function(u){try{i&&i(u)}catch(l){throw u.preventDefault(),l}!u.defaultPrevented&&u.button===0&&(!s||s==="_self")&&!Zl(u)&&(u.preventDefault(),r())}});return Mr!==tt?a.ref=e||n:a.ref=n,m.createElement("a",a)});process.env.NODE_ENV!=="production"&&(Uo.displayName="LinkAnchor");var Ve=tt(function(t,e){var n=t.component,r=n===void 0?Uo:n,i=t.replace,o=t.to,s=t.innerRef,a=ot(t,["component","replace","to","innerRef"]);return m.createElement(Qe.Consumer,null,function(c){c||(process.env.NODE_ENV!=="production"?be(!1,"You should not use <Link> outside a <Router>"):be(!1));var u=c.history,l=Zn(Kn(o,c.location),c.location),d=l?u.createHref(l):"",f=ue({},a,{href:d,navigate:function(){var g=Kn(o,c.location),v=ve(c.location)===ve(Zn(g)),y=i||v?u.replace:u.push;y(g)}});return Mr!==tt?f.ref=e||s:f.innerRef=s,m.createElement(r,f)})});if(process.env.NODE_ENV!=="production"){var Gl=E.oneOfType([E.string,E.object,E.func]),Jl=E.oneOfType([E.string,E.func,E.shape({current:E.any})]);Ve.displayName="Link",Ve.propTypes={innerRef:Jl,onClick:E.func,replace:E.bool,target:E.string,to:Gl.isRequired}}var Fo=function(e){return e},Ut=m.forwardRef;typeof Ut>"u"&&(Ut=Fo);function Xl(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.filter(function(r){return r}).join(" ")}var Ui=Ut(function(t,e){var n=t["aria-current"],r=n===void 0?"page":n,i=t.activeClassName,o=i===void 0?"active":i,s=t.activeStyle,a=t.className,c=t.exact,u=t.isActive,l=t.location,d=t.sensitive,f=t.strict,p=t.style,g=t.to,v=t.innerRef,y=ot(t,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return m.createElement(Qe.Consumer,null,function(k){k||(process.env.NODE_ENV!=="production"?be(!1,"You should not use <NavLink> outside a <Router>"):be(!1));var N=l||k.location,j=Zn(Kn(g,N),N),T=j.pathname,x=T&&T.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),V=x?Lr(N.pathname,{path:x,exact:c,sensitive:d,strict:f}):null,R=!!(u?u(V,N):V),_=typeof a=="function"?a(R):a,L=typeof p=="function"?p(R):p;R&&(_=Xl(_,o),L=ue({},L,s));var D=ue({"aria-current":R&&r||null,className:_,style:L,to:j},y);return Fo!==Ut?D.ref=e||v:D.innerRef=v,m.createElement(Ve,D)})});if(process.env.NODE_ENV!=="production"){Ui.displayName="NavLink";var Ql=E.oneOf(["page","step","location","date","time","true","false"]);Ui.propTypes=ue({},Ve.propTypes,{"aria-current":Ql,activeClassName:E.string,activeStyle:E.object,className:E.oneOfType([E.string,E.func]),exact:E.bool,isActive:E.func,location:E.object,sensitive:E.bool,strict:E.bool,style:E.oneOfType([E.object,E.func])})}const eu=m.forwardRef(({className:t,onClick:e=()=>{},name:n="",to:r="",params:i={},children:o,...s},a)=>{const c=Oo(),u=He();if(!c)return null;let l="";const d={onClick:e,className:ie(t,"humany-route-link"),to:l,innerRef:a,...s,ref:null};if(n){if(!(c.routes||[]).find(v=>v.name===n))return process.env.NODE_ENV!=="production"&&se.warn(`Unable to create route. No route named "${n}" exist.`),h.jsx(Ve,{...d,onClick:v=>{e(v),v.preventDefault(),process.env.NODE_ENV!=="production"&&se.warn(`Unable to navigate. No route named "${n}" exist.`)},children:o});const g=Object.keys(i).reduce((v,y)=>{const k=i[y];if(Array.isArray(k)){if(k.length===0)return v;v[y]=k.map(N=>typeof N=="string"?encodeURIComponent(N):N).join(",")}else v[y]=typeof k=="string"?encodeURIComponent(k):k;return v},{});try{l=c.generate(n,g||{})}catch{return h.jsx(Ve,{...d,ref:d.innerRef,children:o})}l&&c.settings.mode&&c.settings.mode===qn.browser&&l[0]!=="/"&&(l=`/${l}`)}else if(r&&c.history)l=c.history.createHref({hash:"",pathname:r,search:"",state:void 0});else return process.env.NODE_ENV!=="production"&&se.warn('Unable to generate path for route link. Either specify route name or use the "to" prop.'),null;if(c.settings&&c.settings.mode===qn.scopedHash){const f=u.get("$widget").name;l=ul(l,f)}return d.as?h.jsx(tu,{...d,as:d.as,children:o}):h.jsx(Ve,{...d,to:l,children:o})}),tu=$.span``,un=m.forwardRef(({className:t,disabled:e=!1,role:n="link",tabIndex:r=0,onClick:i=()=>{},onKeyDown:o=()=>{},title:s,as:a,href:c,children:u,target:l,routeName:d,params:f,...p},g)=>{const v={title:s,disabled:e,role:n,as:a,tabIndex:r,className:ie(t,"humany-link",[!!e,"humany-disabled"]),onClick:y=>{if(y.persist(),e){y.preventDefault();return}i(y)},onKeyDown:y=>{if(y.persist(),e){y.key!=="Tab"&&y.preventDefault();return}o(y)}};return d?h.jsx(nu,{name:d,params:f,...v,...Ce(p),ref:g,children:u}):h.jsx(ru,{href:c,target:l,...v,...Ce(p),ref:g,children:u})}),nu=$(eu)`
391
+ ${cc}
392
+ `,No=m.forwardRef(({htmlParseInstruction:t=null,className:e,html:n,...r},i)=>{const o=He(),[s,a]=m.useState();return m.useEffect(()=>{const c=hc(o,n),u={...c,...t,transform:{...c.transform,...t==null?void 0:t.transform}},l=dc(n,u);a(l)},[n,t]),h.jsx("div",{className:ie(e,"humany-html"),...Ee(r),ref:i,children:s})}),To=({faIcon:t,title:e,className:n="",role:r="presentation",...i})=>h.jsx("i",{className:ie(n,`fa fa-${t}`),title:e,role:r,...Ee(i)}),Gc=m.forwardRef(({className:t="",autoFocus:e=!1,onFocusChange:n=()=>{},onEnter:r=()=>{},onEscape:i=()=>{},selectAllOnFocus:o,onChange:s=()=>{},disabled:a=!1,type:c,...u},l)=>{const[d,f]=m.useState(e),p=m.useRef();m.useImperativeHandle(l,()=>p.current),m.useEffect(()=>{var y;e&&((y=p==null?void 0:p.current)==null||y.focus())},[e,l,p]);const g=(y,k)=>{f(y),n&&n(y),o&&y&&k.target.select()},v={...Ee(u),disabled:a,autoFocus:e,type:c,onKeyDown:y=>{y.key==="Enter"&&d&&r(y),y.key==="Escape"&&d&&i(y)},onFocus:y=>g(!0,y),onBlur:y=>g(!1,y),onChange:y=>s(y.target.value||""),className:ie(t,"humany-input"),"data-type":c};return c!=="textarea"?h.jsx("input",{...v,ref:p}):h.jsx("textarea",{...v,ref:p})}),cn=m.forwardRef(({className:t,items:e,renderItem:n,renderLi:r=!1,...i},o)=>h.jsx("ul",{"aria-live":"polite",className:ie(t,"humany-list"),"data-item-count":e.length,...Ee(i),ref:o,children:e.map((s,a,c)=>r?h.jsx("li",{className:"humany-list-item",children:n(s,a,c)},s.id||a):n(s,a,c))})),Ro=m.forwardRef(({text:t,html:e,header:n,className:r,htmlParseInstruction:i,symbol:o,...s},a)=>h.jsxs("div",{className:ie(r,"humany-paragraph"),...Ee(s),ref:a,children:[n?h.jsxs(Sr,{variant:"h1",children:[o?h.jsx(ot,{symbol:o}):null,n]}):null,e?h.jsx(No,{html:e,htmlParseInstruction:i}):null,t?h.jsx(rn,{children:t}):null]})),Jc=m.forwardRef(({header:t,customHeader:e,text:n,html:r,className:i,children:o,symbol:s,items:a,renderItem:c,renderLi:u,ulProps:l,...d},f)=>h.jsxs("div",{className:ie(i,"humany-item-list"),"data-item-count":a.length,...Ee(d),ref:f,children:[e||(t||n||r?h.jsx(Ro,{symbol:s,header:t,text:n,html:r}):null),a.length?h.jsx(cn,{items:a,renderItem:c,renderLi:u,...l}):null,o]}));var Po=function(){};process.env.NODE_ENV!=="production"&&(Po=function(t,e,n){var r=arguments.length;n=new Array(r>2?r-2:0);for(var i=2;i<r;i++)n[i-2]=arguments[i];if(e===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(e.length<10||/^[s\W]*$/.test(e))throw new Error("The warning format should be able to uniquely identify this warning. Please, use a more descriptive format than: "+e);if(!t){var o=0,s="Warning: "+e.replace(/%s/g,function(){return n[o++]});typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}}});var Xc=Po,Qc=Xc;el(Qc);function el(t){return t&&t.__esModule?t:{default:t}}function kt(t){return t.charAt(0)==="/"}function Nn(t,e){for(var n=e,r=n+1,i=t.length;r<i;n+=1,r+=1)t[n]=t[r];t.pop()}function tl(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",n=t&&t.split("/")||[],r=e&&e.split("/")||[],i=t&&kt(t),o=e&&kt(e),s=i||o;if(t&&kt(t)?r=n:n.length&&(r.pop(),r=r.concat(n)),!r.length)return"/";var a=void 0;if(r.length){var c=r[r.length-1];a=c==="."||c===".."||c===""}else a=!1;for(var u=0,l=r.length;l>=0;l--){var d=r[l];d==="."?Nn(r,l):d===".."?(Nn(r,l),u++):u&&(Nn(r,l),u--)}if(!s)for(;u--;u)r.unshift("..");s&&r[0]!==""&&(!r[0]||!kt(r[0]))&&r.unshift("");var f=r.join("/");return a&&f.substr(-1)!=="/"&&(f+="/"),f}const nl=Object.freeze(Object.defineProperty({__proto__:null,default:tl},Symbol.toStringTag,{value:"Module"})),rl=co(nl);var xi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};function Mt(t,e){if(t===e)return!0;if(t==null||e==null)return!1;if(Array.isArray(t))return Array.isArray(e)&&t.length===e.length&&t.every(function(c,u){return Mt(c,e[u])});var n=typeof t>"u"?"undefined":xi(t),r=typeof e>"u"?"undefined":xi(e);if(n!==r)return!1;if(n==="object"){var i=t.valueOf(),o=e.valueOf();if(i!==t||o!==e)return Mt(i,o);var s=Object.keys(t),a=Object.keys(e);return s.length!==a.length?!1:s.every(function(c){return Mt(t[c],e[c])})}return!1}const il=Object.freeze(Object.defineProperty({__proto__:null,default:Mt},Symbol.toStringTag,{value:"Module"})),ol=co(il);var sl=rl;jo(sl);var al=ol;jo(al);function jo(t){return t&&t.__esModule?t:{default:t}}var Fn=(t=>(t.scopedHash="scopedHash",t.hash="hash",t.browser="browser",t.memory="memory",t))(Fn||{});const cl=(t,e)=>{const n=`humany-${e}=([^&?]+)&?`,r=new RegExp(n,"i"),i=t.match(r);return i&&i[1]||"/"};Yt(t=>{t.createCommand("routing",e=>n=>{const r={mode:n.mode};n.basePath&&(r.basePath=n.basePath),e.container.register("routingSettings",r)})});function Ot(t){return t.charAt(0)==="/"}function Tn(t,e){for(var n=e,r=n+1,i=t.length;r<i;n+=1,r+=1)t[n]=t[r];t.pop()}function ll(t,e){e===void 0&&(e="");var n=t&&t.split("/")||[],r=e&&e.split("/")||[],i=t&&Ot(t),o=e&&Ot(e),s=i||o;if(t&&Ot(t)?r=n:n.length&&(r.pop(),r=r.concat(n)),!r.length)return"/";var a;if(r.length){var c=r[r.length-1];a=c==="."||c===".."||c===""}else a=!1;for(var u=0,l=r.length;l>=0;l--){var d=r[l];d==="."?Tn(r,l):d===".."?(Tn(r,l),u++):u&&(Tn(r,l),u--)}if(!s)for(;u--;u)r.unshift("..");s&&r[0]!==""&&(!r[0]||!Ot(r[0]))&&r.unshift("");var f=r.join("/");return a&&f.substr(-1)!=="/"&&(f+="/"),f}var ul=process.env.NODE_ENV==="production";function re(t,e){if(!ul){if(t)return;var n="Warning: "+e;typeof console<"u"&&console.warn(n);try{throw Error(n)}catch{}}}var dl=process.env.NODE_ENV==="production",Rn="Invariant failed";function be(t,e){if(!t){if(dl)throw new Error(Rn);var n=typeof e=="function"?e():e,r=n?"".concat(Rn,": ").concat(n):Rn;throw new Error(r)}}function ht(t){return t.charAt(0)==="/"?t:"/"+t}function wi(t){return t.charAt(0)==="/"?t.substr(1):t}function kr(t,e){return t.toLowerCase().indexOf(e.toLowerCase())===0&&"/?#".indexOf(t.charAt(e.length))!==-1}function Ao(t,e){return kr(t,e)?t.substr(e.length):t}function _o(t){return t.charAt(t.length-1)==="/"?t.slice(0,-1):t}function fl(t){var e=t||"/",n="",r="",i=e.indexOf("#");i!==-1&&(r=e.substr(i),e=e.substr(0,i));var o=e.indexOf("?");return o!==-1&&(n=e.substr(o),e=e.substr(0,o)),{pathname:e,search:n==="?"?"":n,hash:r==="#"?"":r}}function ve(t){var e=t.pathname,n=t.search,r=t.hash,i=e||"/";return n&&n!=="?"&&(i+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(i+=r.charAt(0)==="#"?r:"#"+r),i}function xe(t,e,n,r){var i;typeof t=="string"?(i=fl(t),i.state=e):(i=ue({},t),i.pathname===void 0&&(i.pathname=""),i.search?i.search.charAt(0)!=="?"&&(i.search="?"+i.search):i.search="",i.hash?i.hash.charAt(0)!=="#"&&(i.hash="#"+i.hash):i.hash="",e!==void 0&&i.state===void 0&&(i.state=e));try{i.pathname=decodeURI(i.pathname)}catch(o){throw o instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):o}return n&&(i.key=n),r?i.pathname?i.pathname.charAt(0)!=="/"&&(i.pathname=ll(i.pathname,r.pathname)):i.pathname=r.pathname:i.pathname||(i.pathname="/"),i}function Or(){var t=null;function e(s){return process.env.NODE_ENV!=="production"&&re(t==null,"A history supports only one prompt at a time"),t=s,function(){t===s&&(t=null)}}function n(s,a,c,u){if(t!=null){var l=typeof t=="function"?t(s,a):t;typeof l=="string"?typeof c=="function"?c(l,u):(process.env.NODE_ENV!=="production"&&re(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),u(!0)):u(l!==!1)}else u(!0)}var r=[];function i(s){var a=!0;function c(){a&&s.apply(void 0,arguments)}return r.push(c),function(){a=!1,r=r.filter(function(u){return u!==c})}}function o(){for(var s=arguments.length,a=new Array(s),c=0;c<s;c++)a[c]=arguments[c];r.forEach(function(u){return u.apply(void 0,a)})}return{setPrompt:e,confirmTransitionTo:n,appendListener:i,notifyListeners:o}}var Lo=!!(typeof window<"u"&&window.document&&window.document.createElement);function Mo(t,e){e(window.confirm(t))}function hl(){var t=window.navigator.userAgent;return(t.indexOf("Android 2.")!==-1||t.indexOf("Android 4.0")!==-1)&&t.indexOf("Mobile Safari")!==-1&&t.indexOf("Chrome")===-1&&t.indexOf("Windows Phone")===-1?!1:window.history&&"pushState"in window.history}function pl(){return window.navigator.userAgent.indexOf("Trident")===-1}function ml(){return window.navigator.userAgent.indexOf("Firefox")===-1}function vl(t){return t.state===void 0&&navigator.userAgent.indexOf("CriOS")===-1}var Ei="popstate",Ci="hashchange";function Si(){try{return window.history.state||{}}catch{return{}}}function gl(t){t===void 0&&(t={}),Lo||(process.env.NODE_ENV!=="production"?be(!1,"Browser history needs a DOM"):be(!1));var e=window.history,n=hl(),r=!pl(),i=t,o=i.forceRefresh,s=o===void 0?!1:o,a=i.getUserConfirmation,c=a===void 0?Mo:a,u=i.keyLength,l=u===void 0?6:u,d=t.basename?_o(ht(t.basename)):"";function f(B){var b=B||{},w=b.key,C=b.state,O=window.location,P=O.pathname,H=O.search,D=O.hash,I=P+H+D;return process.env.NODE_ENV!=="production"&&re(!d||kr(I,d),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+I+'" to begin with "'+d+'".'),d&&(I=Ao(I,d)),xe(I,C,w)}function p(){return Math.random().toString(36).substr(2,l)}var g=Or();function v(B){ue(ne,B),ne.length=e.length,g.notifyListeners(ne.location,ne.action)}function y(B){vl(B)||j(f(B.state))}function k(){j(f(Si()))}var N=!1;function j(B){if(N)N=!1,v();else{var b="POP";g.confirmTransitionTo(B,b,c,function(w){w?v({action:b,location:B}):T(B)})}}function T(B){var b=ne.location,w=V.indexOf(b.key);w===-1&&(w=0);var C=V.indexOf(B.key);C===-1&&(C=0);var O=w-C;O&&(N=!0,M(O))}var x=f(Si()),V=[x.key];function R(B){return d+ve(B)}function _(B,b){process.env.NODE_ENV!=="production"&&re(!(typeof B=="object"&&B.state!==void 0&&b!==void 0),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var w="PUSH",C=xe(B,b,p(),ne.location);g.confirmTransitionTo(C,w,c,function(O){if(O){var P=R(C),H=C.key,D=C.state;if(n)if(e.pushState({key:H,state:D},null,P),s)window.location.href=P;else{var I=V.indexOf(ne.location.key),F=V.slice(0,I+1);F.push(C.key),V=F,v({action:w,location:C})}else process.env.NODE_ENV!=="production"&&re(D===void 0,"Browser history cannot push state in browsers that do not support HTML5 history"),window.location.href=P}})}function L(B,b){process.env.NODE_ENV!=="production"&&re(!(typeof B=="object"&&B.state!==void 0&&b!==void 0),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var w="REPLACE",C=xe(B,b,p(),ne.location);g.confirmTransitionTo(C,w,c,function(O){if(O){var P=R(C),H=C.key,D=C.state;if(n)if(e.replaceState({key:H,state:D},null,P),s)window.location.replace(P);else{var I=V.indexOf(ne.location.key);I!==-1&&(V[I]=C.key),v({action:w,location:C})}else process.env.NODE_ENV!=="production"&&re(D===void 0,"Browser history cannot replace state in browsers that do not support HTML5 history"),window.location.replace(P)}})}function M(B){e.go(B)}function W(){M(-1)}function U(){M(1)}var q=0;function z(B){q+=B,q===1&&B===1?(window.addEventListener(Ei,y),r&&window.addEventListener(Ci,k)):q===0&&(window.removeEventListener(Ei,y),r&&window.removeEventListener(Ci,k))}var Y=!1;function te(B){B===void 0&&(B=!1);var b=g.setPrompt(B);return Y||(z(1),Y=!0),function(){return Y&&(Y=!1,z(-1)),b()}}function oe(B){var b=g.appendListener(B);return z(1),function(){z(-1),b()}}var ne={length:e.length,action:"POP",location:x,createHref:R,push:_,replace:L,go:M,goBack:W,goForward:U,block:te,listen:oe};return ne}var ki="hashchange",yl={hashbang:{encodePath:function(e){return e.charAt(0)==="!"?e:"!/"+wi(e)},decodePath:function(e){return e.charAt(0)==="!"?e.substr(1):e}},noslash:{encodePath:wi,decodePath:ht},slash:{encodePath:ht,decodePath:ht}};function Do(t){var e=t.indexOf("#");return e===-1?t:t.slice(0,e)}function ct(){var t=window.location.href,e=t.indexOf("#");return e===-1?"":t.substring(e+1)}function bl(t){window.location.hash=t}function Pn(t){window.location.replace(Do(window.location.href)+"#"+t)}function xl(t){t===void 0&&(t={}),Lo||(process.env.NODE_ENV!=="production"?be(!1,"Hash history needs a DOM"):be(!1));var e=window.history,n=ml(),r=t,i=r.getUserConfirmation,o=i===void 0?Mo:i,s=r.hashType,a=s===void 0?"slash":s,c=t.basename?_o(ht(t.basename)):"",u=yl[a],l=u.encodePath,d=u.decodePath;function f(){var w=d(ct());return process.env.NODE_ENV!=="production"&&re(!c||kr(w,c),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+w+'" to begin with "'+c+'".'),c&&(w=Ao(w,c)),xe(w)}var p=Or();function g(w){ue(b,w),b.length=e.length,p.notifyListeners(b.location,b.action)}var v=!1,y=null;function k(w,C){return w.pathname===C.pathname&&w.search===C.search&&w.hash===C.hash}function N(){var w=ct(),C=l(w);if(w!==C)Pn(C);else{var O=f(),P=b.location;if(!v&&k(P,O)||y===ve(O))return;y=null,j(O)}}function j(w){if(v)v=!1,g();else{var C="POP";p.confirmTransitionTo(w,C,o,function(O){O?g({action:C,location:w}):T(w)})}}function T(w){var C=b.location,O=_.lastIndexOf(ve(C));O===-1&&(O=0);var P=_.lastIndexOf(ve(w));P===-1&&(P=0);var H=O-P;H&&(v=!0,U(H))}var x=ct(),V=l(x);x!==V&&Pn(V);var R=f(),_=[ve(R)];function L(w){var C=document.querySelector("base"),O="";return C&&C.getAttribute("href")&&(O=Do(window.location.href)),O+"#"+l(c+ve(w))}function M(w,C){process.env.NODE_ENV!=="production"&&re(C===void 0,"Hash history cannot push state; it is ignored");var O="PUSH",P=xe(w,void 0,void 0,b.location);p.confirmTransitionTo(P,O,o,function(H){if(H){var D=ve(P),I=l(c+D),F=ct()!==I;if(F){y=D,bl(I);var Z=_.lastIndexOf(ve(b.location)),K=_.slice(0,Z+1);K.push(D),_=K,g({action:O,location:P})}else process.env.NODE_ENV!=="production"&&re(!1,"Hash history cannot PUSH the same path; a new entry will not be added to the history stack"),g()}})}function W(w,C){process.env.NODE_ENV!=="production"&&re(C===void 0,"Hash history cannot replace state; it is ignored");var O="REPLACE",P=xe(w,void 0,void 0,b.location);p.confirmTransitionTo(P,O,o,function(H){if(H){var D=ve(P),I=l(c+D),F=ct()!==I;F&&(y=D,Pn(I));var Z=_.indexOf(ve(b.location));Z!==-1&&(_[Z]=D),g({action:O,location:P})}})}function U(w){process.env.NODE_ENV!=="production"&&re(n,"Hash history go(n) causes a full page reload in this browser"),e.go(w)}function q(){U(-1)}function z(){U(1)}var Y=0;function te(w){Y+=w,Y===1&&w===1?window.addEventListener(ki,N):Y===0&&window.removeEventListener(ki,N)}var oe=!1;function ne(w){w===void 0&&(w=!1);var C=p.setPrompt(w);return oe||(te(1),oe=!0),function(){return oe&&(oe=!1,te(-1)),C()}}function B(w){var C=p.appendListener(w);return te(1),function(){te(-1),C()}}var b={length:e.length,action:"POP",location:R,createHref:L,push:M,replace:W,go:U,goBack:q,goForward:z,block:ne,listen:B};return b}function Oi(t,e,n){return Math.min(Math.max(t,e),n)}function wl(t){t===void 0&&(t={});var e=t,n=e.getUserConfirmation,r=e.initialEntries,i=r===void 0?["/"]:r,o=e.initialIndex,s=o===void 0?0:o,a=e.keyLength,c=a===void 0?6:a,u=Or();function l(_){ue(R,_),R.length=R.entries.length,u.notifyListeners(R.location,R.action)}function d(){return Math.random().toString(36).substr(2,c)}var f=Oi(s,0,i.length-1),p=i.map(function(_){return typeof _=="string"?xe(_,void 0,d()):xe(_,void 0,_.key||d())}),g=ve;function v(_,L){process.env.NODE_ENV!=="production"&&re(!(typeof _=="object"&&_.state!==void 0&&L!==void 0),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var M="PUSH",W=xe(_,L,d(),R.location);u.confirmTransitionTo(W,M,n,function(U){if(U){var q=R.index,z=q+1,Y=R.entries.slice(0);Y.length>z?Y.splice(z,Y.length-z,W):Y.push(W),l({action:M,location:W,index:z,entries:Y})}})}function y(_,L){process.env.NODE_ENV!=="production"&&re(!(typeof _=="object"&&_.state!==void 0&&L!==void 0),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var M="REPLACE",W=xe(_,L,d(),R.location);u.confirmTransitionTo(W,M,n,function(U){U&&(R.entries[R.index]=W,l({action:M,location:W}))})}function k(_){var L=Oi(R.index+_,0,R.entries.length-1),M="POP",W=R.entries[L];u.confirmTransitionTo(W,M,n,function(U){U?l({action:M,location:W,index:L}):l()})}function N(){k(-1)}function j(){k(1)}function T(_){var L=R.index+_;return L>=0&&L<R.entries.length}function x(_){return _===void 0&&(_=!1),u.setPrompt(_)}function V(_){return u.appendListener(_)}var R={length:p.length,action:"POP",location:p[f],index:f,entries:p,createHref:g,push:v,replace:y,go:k,goBack:N,goForward:j,canGo:T,block:x,listen:V};return R}var st={exports:{}},El=Array.isArray||function(t){return Object.prototype.toString.call(t)=="[object Array]"},Wt=El;st.exports=Ho;st.exports.parse=$r;st.exports.compile=Sl;st.exports.tokensToFunction=Io;st.exports.tokensToRegExp=Vo;var Cl=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function $r(t,e){for(var n=[],r=0,i=0,o="",s=e&&e.delimiter||"/",a;(a=Cl.exec(t))!=null;){var c=a[0],u=a[1],l=a.index;if(o+=t.slice(i,l),i=l+c.length,u){o+=u[1];continue}var d=t[i],f=a[2],p=a[3],g=a[4],v=a[5],y=a[6],k=a[7];o&&(n.push(o),o="");var N=f!=null&&d!=null&&d!==f,j=y==="+"||y==="*",T=y==="?"||y==="*",x=a[2]||s,V=g||v;n.push({name:p||r++,prefix:f||"",delimiter:x,optional:T,repeat:j,partial:N,asterisk:!!k,pattern:V?$l(V):k?".*":"[^"+Dt(x)+"]+?"})}return i<t.length&&(o+=t.substr(i)),o&&n.push(o),n}function Sl(t,e){return Io($r(t,e),e)}function kl(t){return encodeURI(t).replace(/[\/?#]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function Ol(t){return encodeURI(t).replace(/[?#]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function Io(t,e){for(var n=new Array(t.length),r=0;r<t.length;r++)typeof t[r]=="object"&&(n[r]=new RegExp("^(?:"+t[r].pattern+")$",Tr(e)));return function(i,o){for(var s="",a=i||{},c=o||{},u=c.pretty?kl:encodeURIComponent,l=0;l<t.length;l++){var d=t[l];if(typeof d=="string"){s+=d;continue}var f=a[d.name],p;if(f==null)if(d.optional){d.partial&&(s+=d.prefix);continue}else throw new TypeError('Expected "'+d.name+'" to be defined');if(Wt(f)){if(!d.repeat)throw new TypeError('Expected "'+d.name+'" to not repeat, but received `'+JSON.stringify(f)+"`");if(f.length===0){if(d.optional)continue;throw new TypeError('Expected "'+d.name+'" to not be empty')}for(var g=0;g<f.length;g++){if(p=u(f[g]),!n[l].test(p))throw new TypeError('Expected all "'+d.name+'" to match "'+d.pattern+'", but received `'+JSON.stringify(p)+"`");s+=(g===0?d.prefix:d.delimiter)+p}continue}if(p=d.asterisk?Ol(f):u(f),!n[l].test(p))throw new TypeError('Expected "'+d.name+'" to match "'+d.pattern+'", but received "'+p+'"');s+=d.prefix+p}return s}}function Dt(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function $l(t){return t.replace(/([=!:$\/()])/g,"\\$1")}function Nr(t,e){return t.keys=e,t}function Tr(t){return t&&t.sensitive?"":"i"}function Nl(t,e){var n=t.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)e.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return Nr(t,e)}function Tl(t,e,n){for(var r=[],i=0;i<t.length;i++)r.push(Ho(t[i],e,n).source);var o=new RegExp("(?:"+r.join("|")+")",Tr(n));return Nr(o,e)}function Rl(t,e,n){return Vo($r(t,n),e,n)}function Vo(t,e,n){Wt(e)||(n=e||n,e=[]),n=n||{};for(var r=n.strict,i=n.end!==!1,o="",s=0;s<t.length;s++){var a=t[s];if(typeof a=="string")o+=Dt(a);else{var c=Dt(a.prefix),u="(?:"+a.pattern+")";e.push(a),a.repeat&&(u+="(?:"+c+u+")*"),a.optional?a.partial?u=c+"("+u+")?":u="(?:"+c+"("+u+"))?":u=c+"("+u+")",o+=u}}var l=Dt(n.delimiter||"/"),d=o.slice(-l.length)===l;return r||(o=(d?o.slice(0,-l.length):o)+"(?:"+l+"(?=$))?"),i?o+="$":o+=r&&d?"":"(?="+l+"|$)",Nr(new RegExp("^"+o,Tr(n)),e)}function Ho(t,e,n){return Wt(e)||(n=e||n,e=[]),n=n||{},t instanceof RegExp?Nl(t,e):Wt(t)?Tl(t,e,n):Rl(t,e,n)}var Pl=st.exports;const jl=fr(Pl);var $t=1073741823,$i=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:{};function Al(){var t="__global_unique_id__";return $i[t]=($i[t]||0)+1}function _l(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}function Ll(t){var e=[];return{on:function(r){e.push(r)},off:function(r){e=e.filter(function(i){return i!==r})},get:function(){return t},set:function(r,i){t=r,e.forEach(function(o){return o(t,i)})}}}function Ml(t){return Array.isArray(t)?t[0]:t}function Dl(t,e){var n,r,i="__create-react-context-"+Al()+"__",o=function(a){Ce(c,a);function c(){for(var l,d=arguments.length,f=new Array(d),p=0;p<d;p++)f[p]=arguments[p];return l=a.call.apply(a,[this].concat(f))||this,l.emitter=Ll(l.props.value),l}var u=c.prototype;return u.getChildContext=function(){var d;return d={},d[i]=this.emitter,d},u.componentWillReceiveProps=function(d){if(this.props.value!==d.value){var f=this.props.value,p=d.value,g;_l(f,p)?g=0:(g=typeof e=="function"?e(f,p):$t,process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&re((g&$t)===g,"calculateChangedBits: Expected the return value to be a 31-bit integer. Instead received: "+g),g|=0,g!==0&&this.emitter.set(d.value,g))}},u.render=function(){return this.props.children},c}(m.Component);o.childContextTypes=(n={},n[i]=E.object.isRequired,n);var s=function(a){Ce(c,a);function c(){for(var l,d=arguments.length,f=new Array(d),p=0;p<d;p++)f[p]=arguments[p];return l=a.call.apply(a,[this].concat(f))||this,l.observedBits=void 0,l.state={value:l.getValue()},l.onUpdate=function(g,v){var y=l.observedBits|0;y&v&&l.setState({value:l.getValue()})},l}var u=c.prototype;return u.componentWillReceiveProps=function(d){var f=d.observedBits;this.observedBits=f??$t},u.componentDidMount=function(){this.context[i]&&this.context[i].on(this.onUpdate);var d=this.props.observedBits;this.observedBits=d??$t},u.componentWillUnmount=function(){this.context[i]&&this.context[i].off(this.onUpdate)},u.getValue=function(){return this.context[i]?this.context[i].get():t},u.render=function(){return Ml(this.props.children)(this.state.value)},c}(m.Component);return s.contextTypes=(r={},r[i]=E.object,r),{Provider:o,Consumer:s}}var Il=m.createContext||Dl,zo=function(e){var n=Il();return n.displayName=e,n},Vl=zo("Router-History"),Qe=zo("Router"),et=function(t){Ce(e,t),e.computeRootMatch=function(i){return{path:"/",url:"/",params:{},isExact:i==="/"}};function e(r){var i;return i=t.call(this,r)||this,i.state={location:r.history.location},i._isMounted=!1,i._pendingLocation=null,r.staticContext||(i.unlisten=r.history.listen(function(o){i._pendingLocation=o})),i}var n=e.prototype;return n.componentDidMount=function(){var i=this;this._isMounted=!0,this.unlisten&&this.unlisten(),this.props.staticContext||(this.unlisten=this.props.history.listen(function(o){i._isMounted&&i.setState({location:o})})),this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},n.render=function(){return m.createElement(Qe.Provider,{value:{history:this.props.history,location:this.state.location,match:e.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},m.createElement(Vl.Provider,{children:this.props.children||null,value:this.props.history}))},e}(m.Component);process.env.NODE_ENV!=="production"&&(et.propTypes={children:E.node,history:E.object.isRequired,staticContext:E.object},et.prototype.componentDidUpdate=function(t){process.env.NODE_ENV!=="production"&&re(t.history===this.props.history,"You cannot change <Router history>")});var Ni=function(t){Ce(e,t);function e(){for(var r,i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o))||this,r.history=wl(r.props),r}var n=e.prototype;return n.render=function(){return m.createElement(et,{history:this.history,children:this.props.children})},e}(m.Component);process.env.NODE_ENV!=="production"&&(Ni.propTypes={initialEntries:E.array,initialIndex:E.number,getUserConfirmation:E.func,keyLength:E.number,children:E.node},Ni.prototype.componentDidMount=function(){process.env.NODE_ENV!=="production"&&re(!this.props.history,"<MemoryRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { MemoryRouter as Router }`.")});m.Component;if(process.env.NODE_ENV!=="production"){var Hl=E.oneOfType([E.func,E.string]);E.bool,Hl.isRequired}process.env.NODE_ENV!=="production"&&(E.bool,E.string,E.oneOfType([E.string,E.object]).isRequired);var Ti={},zl=1e4,Ri=0;function Bl(t,e){var n=""+e.end+e.strict+e.sensitive,r=Ti[n]||(Ti[n]={});if(r[t])return r[t];var i=[],o=jl(t,i,e),s={regexp:o,keys:i};return Ri<zl&&(r[t]=s,Ri++),s}function Rr(t,e){e===void 0&&(e={}),(typeof e=="string"||Array.isArray(e))&&(e={path:e});var n=e,r=n.path,i=n.exact,o=i===void 0?!1:i,s=n.strict,a=s===void 0?!1:s,c=n.sensitive,u=c===void 0?!1:c,l=[].concat(r);return l.reduce(function(d,f){if(!f&&f!=="")return null;if(d)return d;var p=Bl(f,{end:o,strict:a,sensitive:u}),g=p.regexp,v=p.keys,y=g.exec(t);if(!y)return null;var k=y[0],N=y.slice(1),j=t===k;return o&&!j?null:{path:f,url:f==="/"&&k===""?"/":k,isExact:j,params:v.reduce(function(T,x,V){return T[x.name]=N[V],T},{})}},null)}function qn(t){return m.Children.count(t)===0}function Pi(t,e,n){var r=t(e);return process.env.NODE_ENV!=="production"&&re(r!==void 0,"You returned `undefined` from the `children` function of "+("<Route"+(n?' path="'+n+'"':"")+">, but you ")+"should have returned a React element or `null`"),r||null}var jn=function(t){Ce(e,t);function e(){return t.apply(this,arguments)||this}var n=e.prototype;return n.render=function(){var i=this;return m.createElement(Qe.Consumer,null,function(o){o||(process.env.NODE_ENV!=="production"?be(!1,"You should not use <Route> outside a <Router>"):be(!1));var s=i.props.location||o.location,a=i.props.computedMatch?i.props.computedMatch:i.props.path?Rr(s.pathname,i.props):o.match,c=ue({},o,{location:s,match:a}),u=i.props,l=u.children,d=u.component,f=u.render;return Array.isArray(l)&&qn(l)&&(l=null),m.createElement(Qe.Provider,{value:c},c.match?l?typeof l=="function"?process.env.NODE_ENV!=="production"?Pi(l,c,i.props.path):l(c):l:d?m.createElement(d,c):f?f(c):null:typeof l=="function"?process.env.NODE_ENV!=="production"?Pi(l,c,i.props.path):l(c):null)})},e}(m.Component);process.env.NODE_ENV!=="production"&&(jn.propTypes={children:E.oneOfType([E.func,E.node]),component:function(e,n){if(e[n]&&!Qt.isValidElementType(e[n]))return new Error("Invalid prop 'component' supplied to 'Route': the prop is not a valid React component")},exact:E.bool,location:E.object,path:E.oneOfType([E.string,E.arrayOf(E.string)]),render:E.func,sensitive:E.bool,strict:E.bool},jn.prototype.componentDidMount=function(){process.env.NODE_ENV!=="production"&&re(!(this.props.children&&!qn(this.props.children)&&this.props.component),"You should not use <Route component> and <Route children> in the same route; <Route component> will be ignored"),process.env.NODE_ENV!=="production"&&re(!(this.props.children&&!qn(this.props.children)&&this.props.render),"You should not use <Route render> and <Route children> in the same route; <Route render> will be ignored"),process.env.NODE_ENV!=="production"&&re(!(this.props.component&&this.props.render),"You should not use <Route component> and <Route render> in the same route; <Route render> will be ignored")},jn.prototype.componentDidUpdate=function(t){process.env.NODE_ENV!=="production"&&re(!(this.props.location&&!t.location),'<Route> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),process.env.NODE_ENV!=="production"&&re(!(!this.props.location&&t.location),'<Route> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.')});function Pr(t){return t.charAt(0)==="/"?t:"/"+t}function Wl(t,e){return t?ue({},e,{pathname:Pr(t)+e.pathname}):e}function Ul(t,e){if(!t)return e;var n=Pr(t);return e.pathname.indexOf(n)!==0?e:ue({},e,{pathname:e.pathname.substr(n.length)})}function ji(t){return typeof t=="string"?t:ve(t)}function An(t){return function(){process.env.NODE_ENV!=="production"?be(!1,"You cannot %s with <StaticRouter>"):be(!1)}}function Ai(){}var _i=function(t){Ce(e,t);function e(){for(var r,i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o))||this,r.handlePush=function(a){return r.navigateTo(a,"PUSH")},r.handleReplace=function(a){return r.navigateTo(a,"REPLACE")},r.handleListen=function(){return Ai},r.handleBlock=function(){return Ai},r}var n=e.prototype;return n.navigateTo=function(i,o){var s=this.props,a=s.basename,c=a===void 0?"":a,u=s.context,l=u===void 0?{}:u;l.action=o,l.location=Wl(c,xe(i)),l.url=ji(l.location)},n.render=function(){var i=this.props,o=i.basename,s=o===void 0?"":o,a=i.context,c=a===void 0?{}:a,u=i.location,l=u===void 0?"/":u,d=it(i,["basename","context","location"]),f={createHref:function(g){return Pr(s+ji(g))},action:"POP",location:Ul(s,xe(l)),push:this.handlePush,replace:this.handleReplace,go:An(),goBack:An(),goForward:An(),listen:this.handleListen,block:this.handleBlock};return m.createElement(et,ue({},d,{history:f,staticContext:c}))},e}(m.Component);process.env.NODE_ENV!=="production"&&(_i.propTypes={basename:E.string,context:E.object,location:E.oneOfType([E.string,E.object])},_i.prototype.componentDidMount=function(){process.env.NODE_ENV!=="production"&&re(!this.props.history,"<StaticRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { StaticRouter as Router }`.")});var Li=function(t){Ce(e,t);function e(){return t.apply(this,arguments)||this}var n=e.prototype;return n.render=function(){var i=this;return m.createElement(Qe.Consumer,null,function(o){o||(process.env.NODE_ENV!=="production"?be(!1,"You should not use <Switch> outside a <Router>"):be(!1));var s=i.props.location||o.location,a,c;return m.Children.forEach(i.props.children,function(u){if(c==null&&m.isValidElement(u)){a=u;var l=u.props.path||u.props.from;c=l?Rr(s.pathname,ue({},u.props,{path:l})):o.match}}),c?m.cloneElement(a,{location:s,computedMatch:c}):null})},e}(m.Component);process.env.NODE_ENV!=="production"&&(Li.propTypes={children:E.node,location:E.object},Li.prototype.componentDidUpdate=function(t){process.env.NODE_ENV!=="production"&&re(!(this.props.location&&!t.location),'<Switch> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),process.env.NODE_ENV!=="production"&&re(!(!this.props.location&&t.location),'<Switch> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.')});m.useContext;if(process.env.NODE_ENV!=="production"&&typeof window<"u"){var Nt=window,Tt="__react_router_build__",Mi={cjs:"CommonJS",esm:"ES modules",umd:"UMD"};if(Nt[Tt]&&Nt[Tt]!=="esm"){var Fl=Mi[Nt[Tt]],ql=Mi.esm;throw new Error("You are loading the "+ql+" build of React Router "+("on a page that is already running the "+Fl+" ")+"build, so things won't work right.")}Nt[Tt]="esm"}var Di=function(t){Ce(e,t);function e(){for(var r,i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o))||this,r.history=gl(r.props),r}var n=e.prototype;return n.render=function(){return m.createElement(et,{history:this.history,children:this.props.children})},e}(m.Component);process.env.NODE_ENV!=="production"&&(Di.propTypes={basename:E.string,children:E.node,forceRefresh:E.bool,getUserConfirmation:E.func,keyLength:E.number},Di.prototype.componentDidMount=function(){process.env.NODE_ENV!=="production"&&re(!this.props.history,"<BrowserRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { BrowserRouter as Router }`.")});var Ii=function(t){Ce(e,t);function e(){for(var r,i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o))||this,r.history=xl(r.props),r}var n=e.prototype;return n.render=function(){return m.createElement(et,{history:this.history,children:this.props.children})},e}(m.Component);process.env.NODE_ENV!=="production"&&(Ii.propTypes={basename:E.string,children:E.node,getUserConfirmation:E.func,hashType:E.oneOf(["hashbang","noslash","slash"])},Ii.prototype.componentDidMount=function(){process.env.NODE_ENV!=="production"&&re(!this.props.history,"<HashRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { HashRouter as Router }`.")});var Yn=function(e,n){return typeof e=="function"?e(n):e},Kn=function(e,n){return typeof e=="string"?xe(e,null,null,n):e},jr=function(e){return e},tt=m.forwardRef;typeof tt>"u"&&(tt=jr);function Yl(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}var Bo=tt(function(t,e){var n=t.innerRef,r=t.navigate,i=t.onClick,o=it(t,["innerRef","navigate","onClick"]),s=o.target,a=ue({},o,{onClick:function(u){try{i&&i(u)}catch(l){throw u.preventDefault(),l}!u.defaultPrevented&&u.button===0&&(!s||s==="_self")&&!Yl(u)&&(u.preventDefault(),r())}});return jr!==tt?a.ref=e||n:a.ref=n,m.createElement("a",a)});process.env.NODE_ENV!=="production"&&(Bo.displayName="LinkAnchor");var Ve=tt(function(t,e){var n=t.component,r=n===void 0?Bo:n,i=t.replace,o=t.to,s=t.innerRef,a=it(t,["component","replace","to","innerRef"]);return m.createElement(Qe.Consumer,null,function(c){c||(process.env.NODE_ENV!=="production"?be(!1,"You should not use <Link> outside a <Router>"):be(!1));var u=c.history,l=Kn(Yn(o,c.location),c.location),d=l?u.createHref(l):"",f=ue({},a,{href:d,navigate:function(){var g=Yn(o,c.location),v=ve(c.location)===ve(Kn(g)),y=i||v?u.replace:u.push;y(g)}});return jr!==tt?f.ref=e||s:f.innerRef=s,m.createElement(r,f)})});if(process.env.NODE_ENV!=="production"){var Kl=E.oneOfType([E.string,E.object,E.func]),Zl=E.oneOfType([E.string,E.func,E.shape({current:E.any})]);Ve.displayName="Link",Ve.propTypes={innerRef:Zl,onClick:E.func,replace:E.bool,target:E.string,to:Kl.isRequired}}var Wo=function(e){return e},Ut=m.forwardRef;typeof Ut>"u"&&(Ut=Wo);function Gl(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.filter(function(r){return r}).join(" ")}var Vi=Ut(function(t,e){var n=t["aria-current"],r=n===void 0?"page":n,i=t.activeClassName,o=i===void 0?"active":i,s=t.activeStyle,a=t.className,c=t.exact,u=t.isActive,l=t.location,d=t.sensitive,f=t.strict,p=t.style,g=t.to,v=t.innerRef,y=it(t,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return m.createElement(Qe.Consumer,null,function(k){k||(process.env.NODE_ENV!=="production"?be(!1,"You should not use <NavLink> outside a <Router>"):be(!1));var N=l||k.location,j=Kn(Yn(g,N),N),T=j.pathname,x=T&&T.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),V=x?Rr(N.pathname,{path:x,exact:c,sensitive:d,strict:f}):null,R=!!(u?u(V,N):V),_=typeof a=="function"?a(R):a,L=typeof p=="function"?p(R):p;R&&(_=Gl(_,o),L=ue({},L,s));var M=ue({"aria-current":R&&r||null,className:_,style:L,to:j},y);return Wo!==Ut?M.ref=e||v:M.innerRef=v,m.createElement(Ve,M)})});if(process.env.NODE_ENV!=="production"){Vi.displayName="NavLink";var Jl=E.oneOf(["page","step","location","date","time","true","false"]);Vi.propTypes=ue({},Ve.propTypes,{"aria-current":Jl,activeClassName:E.string,activeStyle:E.object,className:E.oneOfType([E.string,E.func]),exact:E.bool,isActive:E.func,location:E.object,sensitive:E.bool,strict:E.bool,style:E.oneOfType([E.object,E.func])})}const Xl=m.forwardRef(({className:t,onClick:e=()=>{},name:n="",to:r="",params:i={},children:o,...s},a)=>{const c=So(),u=He();if(!c)return null;let l="";const d={onClick:e,className:ie(t,"humany-route-link"),to:l,innerRef:a,...s,ref:null};if(n){if(!(c.routes||[]).find(v=>v.name===n))return process.env.NODE_ENV!=="production"&&se.warn(`Unable to create route. No route named "${n}" exist.`),h.jsx(Ve,{...d,onClick:v=>{e(v),v.preventDefault(),process.env.NODE_ENV!=="production"&&se.warn(`Unable to navigate. No route named "${n}" exist.`)},children:o});const g=Object.keys(i).reduce((v,y)=>{const k=i[y];if(Array.isArray(k)){if(k.length===0)return v;v[y]=k.map(N=>typeof N=="string"?encodeURIComponent(N):N).join(",")}else v[y]=typeof k=="string"?encodeURIComponent(k):k;return v},{});try{l=c.generate(n,g||{})}catch{return h.jsx(Ve,{...d,ref:d.innerRef,children:o})}l&&c.settings.mode&&c.settings.mode===Fn.browser&&l[0]!=="/"&&(l=`/${l}`)}else if(r&&c.history)l=c.history.createHref({hash:"",pathname:r,search:"",state:void 0});else return process.env.NODE_ENV!=="production"&&se.warn('Unable to generate path for route link. Either specify route name or use the "to" prop.'),null;if(c.settings&&c.settings.mode===Fn.scopedHash){const f=u.get("$widget").name;l=cl(l,f)}return d.as?h.jsx(Ql,{...d,as:d.as,children:o}):h.jsx(Ve,{...d,to:l,children:o})}),Ql=$.span``,ln=m.forwardRef(({className:t,disabled:e=!1,role:n="link",tabIndex:r=0,onClick:i=()=>{},onKeyDown:o=()=>{},title:s,as:a,href:c,children:u,target:l,routeName:d,params:f,...p},g)=>{const v={title:s,disabled:e,role:n,as:a,tabIndex:r,className:ie(t,"humany-link",[!!e,"humany-disabled"]),onClick:y=>{if(y.persist(),e){y.preventDefault();return}i(y)},onKeyDown:y=>{if(y.persist(),e){y.key!=="Tab"&&y.preventDefault();return}o(y)}};return d?h.jsx(eu,{name:d,params:f,...v,...Ee(p),ref:g,children:u}):h.jsx(tu,{href:c,target:l,...v,...Ee(p),ref:g,children:u})}),eu=$(Xl)`
393
393
  ${t=>t.disabled?`
394
394
  pointer-events: none;
395
395
  opacity: .7;
396
396
  `:"cursor: pointer;"}
397
- `,ru=$.a`
397
+ `,tu=$.a`
398
398
  ${t=>t.disabled?`
399
399
  pointer-events: none;
400
400
  opacity: .7;
401
401
  `:"cursor: pointer;"}
402
- `,qo=({visible:t,duration:e=500,children:n,onClick:r=()=>{},...i})=>{const o=m.useRef(),s=m.useCallback(a=>{a.target===o.current&&r(a)},[r]);return h.jsx(jc,{in:t,className:"humany-overlay-transition",classNames:"humany-overlay-transition",unmountOnExit:!0,timeout:e,children:h.jsx(Nr,{children:h.jsx(iu,{className:"humany-overlay",duration:e,ref:o,onClick:s,...i,children:n})})})},iu=$.div`
402
+ `,Uo=({visible:t,duration:e=500,children:n,onClick:r=()=>{},...i})=>{const o=m.useRef(),s=m.useCallback(a=>{a.target===o.current&&r(a)},[r]);return h.jsx(Tc,{in:t,className:"humany-overlay-transition",classNames:"humany-overlay-transition",unmountOnExit:!0,timeout:e,children:h.jsx(Cr,{children:h.jsx(nu,{className:"humany-overlay",duration:e,ref:o,onClick:s,...i,children:n})})})},nu=$.div`
403
403
  background: rgba(0, 0, 0, 0.6);
404
404
  min-width: 100%;
405
405
  min-height: 100%;
@@ -429,11 +429,11 @@ Valid keys: `+JSON.stringify(Object.keys(b),null," "));var A=me(I,K,P,H,M+"."+K
429
429
  &.humany-overlay-transition-exit-done {
430
430
  opacity: 0;
431
431
  }
432
- `,ou=wr`
432
+ `,ru=gr`
433
433
  100% {
434
434
  transform: rotate(360deg);
435
435
  }
436
- `,su=wr`
436
+ `,iu=gr`
437
437
  0% {
438
438
  stroke-dasharray: 1, 200;
439
439
  stroke-dashoffset: 0;
@@ -446,8 +446,8 @@ Valid keys: `+JSON.stringify(Object.keys(b),null," "));var A=me(I,K,P,H,M+"."+K
446
446
  stroke-dasharray: 89, 200;
447
447
  stroke-dashoffset: -124px;
448
448
  }
449
- `,au=$.svg`
450
- animation: ${ou} 2s linear infinite;
449
+ `,ou=$.svg`
450
+ animation: ${ru} 2s linear infinite;
451
451
  height: 100%;
452
452
  transform-origin: center center;
453
453
  width: 100%;
@@ -458,7 +458,7 @@ Valid keys: `+JSON.stringify(Object.keys(b),null," "));var A=me(I,K,P,H,M+"."+K
458
458
  right: 0;
459
459
  margin: auto;
460
460
  transition: 200ms ease-out opacity;
461
- `,cu=$.div`
461
+ `,su=$.div`
462
462
  position: absolute;
463
463
  top: 0;
464
464
  bottom: 0;
@@ -476,7 +476,7 @@ Valid keys: `+JSON.stringify(Object.keys(b),null," "));var A=me(I,K,P,H,M+"."+K
476
476
  svg {
477
477
  opacity: ${t=>t["data-loading"]?"1":"0"};
478
478
  }
479
- `,lu=$.div`
479
+ `,au=$.div`
480
480
  position: relative;
481
481
  margin: 0 auto;
482
482
  width: 100px;
@@ -485,18 +485,18 @@ Valid keys: `+JSON.stringify(Object.keys(b),null," "));var A=me(I,K,P,H,M+"."+K
485
485
  display: block;
486
486
  padding-top: 100%;
487
487
  }
488
- `,uu=$.circle`
488
+ `,cu=$.circle`
489
489
  stroke-dasharray: 1, 200;
490
490
  stroke-dashoffset: 0;
491
- animation: ${su} 1.5s ease-in-out infinite;
491
+ animation: ${iu} 1.5s ease-in-out infinite;
492
492
  stroke-linecap: round;
493
493
  stroke: ${t=>{var e;return(e=t.theme.colors)==null?void 0:e.primary}};
494
494
  stroke-width: 2px;
495
- `,du=({className:t,loading:e=!1})=>h.jsx(cu,{className:ie("humany-loader",t),"data-loading":e,children:h.jsx(lu,{className:"humany-spinner",children:h.jsx(au,{viewBox:"25 25 50 50",children:h.jsx(uu,{cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"2","stroke-miterlimit":"10"})})})}),fu=({zoomState:t,image:e,changeZoom:n,...r})=>{var g;const i=m.useRef(null),[o,s]=m.useState(!1),[a,c]=m.useState(!1),{width:u,height:l,...d}=r.style||{},f=m.useCallback(()=>{const v=i.current;if(v){const y=window.innerWidth/v.naturalWidth,k=window.innerHeight/v.naturalHeight,N=Math.min(y,k);return k>=1&&y>=1?1:N}return 1},[o,e.src]),p=m.useMemo(()=>{const v=i.current;if(v&&o){if(!a){c(!0);const y=f();n(y)}return v.naturalWidth>=v.naturalHeight?[`${t*v.naturalWidth}px`,"auto"]:["auto",`${t*v.naturalHeight}px`]}return null},[t,i,o,e.src]);return m.useEffect(()=>(s(!1),function(){c(!1)}),[e.src]),h.jsxs(h.Fragment,{children:[h.jsx(hu,{loading:!o}),h.jsx(pu,{onLoad:()=>{s(!0)},ref:i,imageSize:p,draggable:"false",...r,alt:((g=r.alt)==null?void 0:g.toString())||"",style:d,src:e.src,loaded:o}),h.jsx(mu,{})]})},hu=$(du)`
495
+ `,lu=({className:t,loading:e=!1})=>h.jsx(su,{className:ie("humany-loader",t),"data-loading":e,children:h.jsx(au,{className:"humany-spinner",children:h.jsx(ou,{viewBox:"25 25 50 50",children:h.jsx(cu,{cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"2","stroke-miterlimit":"10"})})})}),uu=({zoomState:t,image:e,changeZoom:n,...r})=>{var g;const i=m.useRef(null),[o,s]=m.useState(!1),[a,c]=m.useState(!1),{width:u,height:l,...d}=r.style||{},f=m.useCallback(()=>{const v=i.current;if(v){const y=window.innerWidth/v.naturalWidth,k=window.innerHeight/v.naturalHeight,N=Math.min(y,k);return k>=1&&y>=1?1:N}return 1},[o,e.src]),p=m.useMemo(()=>{const v=i.current;if(v&&o){if(!a){c(!0);const y=f();n(y)}return v.naturalWidth>=v.naturalHeight?[`${t*v.naturalWidth}px`,"auto"]:["auto",`${t*v.naturalHeight}px`]}return null},[t,i,o,e.src]);return m.useEffect(()=>(s(!1),function(){c(!1)}),[e.src]),h.jsxs(h.Fragment,{children:[h.jsx(du,{loading:!o}),h.jsx(fu,{onLoad:()=>{s(!0)},ref:i,imageSize:p,draggable:"false",...r,alt:((g=r.alt)==null?void 0:g.toString())||"",style:d,src:e.src,loaded:o}),h.jsx(hu,{})]})},du=$(lu)`
496
496
  svg circle {
497
497
  stroke: #ffffff;
498
498
  }
499
- `,pu=$.img`
499
+ `,fu=$.img`
500
500
  transform: none;
501
501
 
502
502
  ${t=>t.imageSize&&G`
@@ -507,30 +507,30 @@ Valid keys: `+JSON.stringify(Object.keys(b),null," "));var A=me(I,K,P,H,M+"."+K
507
507
  vertical-align: middle;
508
508
  position: relative;
509
509
  ${t=>!t.loaded&&"display:none;"}
510
- `,mu=$.div`
510
+ `,hu=$.div`
511
511
  height: 100%;
512
512
  display: inline-block;
513
513
  vertical-align: middle;
514
- `,vu=()=>{const t=m.useRef(),[e,n]=m.useState(!0),r=m.useCallback(()=>(e||n(!0),t.current&&clearTimeout(t.current),t.current=setTimeout(()=>{n(!1)},3e3),()=>{t.current&&clearTimeout(t.current)}),[e,t]);return[e,r]},gu=({attrs:t,htmlBody:e})=>{var w;const n=ht("Escape"),r=ht("ArrowLeft"),i=ht("ArrowRight"),[o,s]=m.useState(1),[a,c]=m.useState({top:0,left:0,x:0,y:0}),[u,l]=m.useState(!1),[d,f]=vu(),[p,g]=m.useState(null),[v,y]=m.useState(null),k=m.useRef(null),N=m.useRef(null),j=m.useRef(null),T=m.useRef(null),x=m.useRef(null),[V,R]=m.useState(null);m.useEffect(()=>{n&&g(null)},[n]),m.useEffect(()=>{s(1)},[p]),m.useEffect(()=>{var H,M;if(p===null||N.current===null)return;const C=N.current.firstElementChild,O=(H=j.current)==null?void 0:H.querySelector(".nav-left"),P=(M=j.current)==null?void 0:M.querySelector(".nav-right");if(v==="Right")b&&P?P.focus():B&&O&&O.focus();else if(v==="Left")B&&O?O.focus():b&&P&&P.focus();else{if(!C)return;C.focus()}},[p,N,j,v]),m.useEffect(()=>{if(r){if(B)return oe()}else if(i&&b)return ne()},[r,i]),m.useEffect(()=>{var O,P;const C=((P=(O=x.current)==null?void 0:O.style)==null?void 0:P.float)||"";(C==="left"||C==="right")&&R(C)},[]);const _=m.useMemo(()=>{const C=document.createElement("div");C.innerHTML=e||"";const O=C.getElementsByTagName("img");return Array.from(O).reduce((H,M)=>{const I=M.getAttribute("src");if(I){const F={src:I};H.push(F)}return H},[])},[e]),L=m.useCallback(()=>{const{src:C}=t;if(C){const O=_.findIndex((P,H)=>P.src===C);g(O)}},[_,t]),D=m.useCallback(C=>{g(null)},[]),W=m.useCallback(C=>{s(C?o+o*.25:o-o*.25)},[s,o]),U=m.useCallback(()=>{if(p!==null){const{src:C}=_[p];C&&window.open(C,"_self")}},[_,p]),q=m.useCallback(C=>{const O=T.current;O&&(c({top:O.scrollTop,left:O.scrollLeft,x:C.clientX,y:C.clientY}),l(!0))},[T]),z=m.useCallback(C=>{const O=T.current;if(O&&u){const P=C.clientX-a.x,H=C.clientY-a.y;O.scrollTop=a.top-H,O.scrollLeft=a.left-P}},[u,a]),Y=C=>{C.preventDefault(),l(!1)},te=m.useMemo(()=>{if(T.current){const C=T.current.getElementsByTagName("img");if(C&&C.length){const O=C[0];return O.width>window.innerWidth||O.height>window.innerHeight}}return!1},[T,o]),oe=()=>{p!==null&&(y("Left"),g(p-1))},ne=()=>{p!==null&&(y("Right"),g(p+1))},B=p!==null&&p>0&&_.length>1,b=p!==null&&_.length-1>p;return h.jsxs(h.Fragment,{children:[h.jsx(qo,{visible:p!==null,onClick:D,children:h.jsxs(ku,{onMouseDown:()=>f(),onMouseMove:()=>f(),onTouchStart:()=>f(),onKeyDown:()=>f(),children:[h.jsx(Ou,{show:d.toString(),children:h.jsx(wu,{ref:N,buttons:[{id:"download",onClick:U,icon:"download",ariaLabel:"Download image"},{id:"lightbox-close",onClick:()=>g(null),icon:"lightbox-close",ariaLabel:"Close"}]})}),h.jsx(Nu,{scrolling:u.toString(),isDraggable:te.toString(),ref:T,onMouseMove:z,onMouseDown:q,onMouseUp:Y,children:p!==null&&h.jsx(fu,{changeZoom:C=>{s(C)},zoomState:o,...t,style:{...t.style||{},float:"none"},image:_[p]})}),h.jsx(Cu,{ref:j,show:d.toString(),buttons:[{id:"previous",onClick:oe,icon:"caret-left",circle:!0,show:B,className:"nav-left",ariaLabel:"Navigate to previous image"},{id:"next",onClick:ne,icon:"caret-right",circle:!0,show:b,className:"nav-right",ariaLabel:"Navigate to next image"}]}),h.jsxs($u,{show:d.toString(),children:[h.jsx(Eu,{buttons:[{id:"zoom-out",onClick:()=>W(!1),icon:"zoom-out",ariaLabel:"Zoom out"},{id:"zoom-in",onClick:()=>W(!0),icon:"zoom-in",ariaLabel:"Zoom in"}]}),h.jsxs(Su,{variant:"span",children:[Math.trunc(o*100),"%"]})]})]})}),h.jsx(yu,{ref:k,onClick:L,onKeyDown:C=>{C.key==="Enter"&&(C.preventDefault(),L())},alignment:V,tabIndex:0,children:h.jsx(Tu,{...t,alt:((w=t.alt)==null?void 0:w.toString())||"",ref:x})})]})},Ir=m.forwardRef(({show:t="true",buttons:e,className:n},r)=>h.jsx(bu,{ref:r,show:t,className:ie("humany-button-set",n),children:e.map(({id:i,circle:o=!1,show:s=!0,ariaLabel:a,onClick:c,icon:u,className:l},d)=>h.jsx(xu,{circle:o.toString(),onClick:c,tabIndex:s?void 0:-1,show:s.toString(),icon:u,className:l,"aria-label":a,children:h.jsx(st,{size:24,symbol:{type:"Svg",content:u}})},i+d.toString()))})),Yo=$.div`
514
+ `,pu=()=>{const t=m.useRef(),[e,n]=m.useState(!0),r=m.useCallback(()=>(e||n(!0),t.current&&clearTimeout(t.current),t.current=setTimeout(()=>{n(!1)},3e3),()=>{t.current&&clearTimeout(t.current)}),[e,t]);return[e,r]},mu=({attrs:t,htmlBody:e})=>{var w;const n=ft("Escape"),r=ft("ArrowLeft"),i=ft("ArrowRight"),[o,s]=m.useState(1),[a,c]=m.useState({top:0,left:0,x:0,y:0}),[u,l]=m.useState(!1),[d,f]=pu(),[p,g]=m.useState(null),[v,y]=m.useState(null),k=m.useRef(null),N=m.useRef(null),j=m.useRef(null),T=m.useRef(null),x=m.useRef(null),[V,R]=m.useState(null);m.useEffect(()=>{n&&g(null)},[n]),m.useEffect(()=>{s(1)},[p]),m.useEffect(()=>{var H,D;if(p===null||N.current===null)return;const C=N.current.firstElementChild,O=(H=j.current)==null?void 0:H.querySelector(".nav-left"),P=(D=j.current)==null?void 0:D.querySelector(".nav-right");if(v==="Right")b&&P?P.focus():B&&O&&O.focus();else if(v==="Left")B&&O?O.focus():b&&P&&P.focus();else{if(!C)return;C.focus()}},[p,N,j,v]),m.useEffect(()=>{if(r){if(B)return oe()}else if(i&&b)return ne()},[r,i]),m.useEffect(()=>{var O,P;const C=((P=(O=x.current)==null?void 0:O.style)==null?void 0:P.float)||"";(C==="left"||C==="right")&&R(C)},[]);const _=m.useMemo(()=>{const C=document.createElement("div");C.innerHTML=e||"";const O=C.getElementsByTagName("img");return Array.from(O).reduce((H,D)=>{const I=D.getAttribute("src");if(I){const F={src:I};H.push(F)}return H},[])},[e]),L=m.useCallback(()=>{const{src:C}=t;if(C){const O=_.findIndex((P,H)=>P.src===C);g(O)}},[_,t]),M=m.useCallback(C=>{g(null)},[]),W=m.useCallback(C=>{s(C?o+o*.25:o-o*.25)},[s,o]),U=m.useCallback(()=>{if(p!==null){const{src:C}=_[p];C&&window.open(C,"_self")}},[_,p]),q=m.useCallback(C=>{const O=T.current;O&&(c({top:O.scrollTop,left:O.scrollLeft,x:C.clientX,y:C.clientY}),l(!0))},[T]),z=m.useCallback(C=>{const O=T.current;if(O&&u){const P=C.clientX-a.x,H=C.clientY-a.y;O.scrollTop=a.top-H,O.scrollLeft=a.left-P}},[u,a]),Y=C=>{C.preventDefault(),l(!1)},te=m.useMemo(()=>{if(T.current){const C=T.current.getElementsByTagName("img");if(C&&C.length){const O=C[0];return O.width>window.innerWidth||O.height>window.innerHeight}}return!1},[T,o]),oe=()=>{p!==null&&(y("Left"),g(p-1))},ne=()=>{p!==null&&(y("Right"),g(p+1))},B=p!==null&&p>0&&_.length>1,b=p!==null&&_.length-1>p;return h.jsxs(h.Fragment,{children:[h.jsx(Uo,{visible:p!==null,onClick:M,children:h.jsxs(Cu,{onMouseDown:()=>f(),onMouseMove:()=>f(),onTouchStart:()=>f(),onKeyDown:()=>f(),children:[h.jsx(Su,{show:d.toString(),children:h.jsx(bu,{ref:N,buttons:[{id:"download",onClick:U,icon:"download",ariaLabel:"Download image"},{id:"lightbox-close",onClick:()=>g(null),icon:"lightbox-close",ariaLabel:"Close"}]})}),h.jsx(Ou,{scrolling:u.toString(),isDraggable:te.toString(),ref:T,onMouseMove:z,onMouseDown:q,onMouseUp:Y,children:p!==null&&h.jsx(uu,{changeZoom:C=>{s(C)},zoomState:o,...t,style:{...t.style||{},float:"none"},image:_[p]})}),h.jsx(wu,{ref:j,show:d.toString(),buttons:[{id:"previous",onClick:oe,icon:"caret-left",circle:!0,show:B,className:"nav-left",ariaLabel:"Navigate to previous image"},{id:"next",onClick:ne,icon:"caret-right",circle:!0,show:b,className:"nav-right",ariaLabel:"Navigate to next image"}]}),h.jsxs(ku,{show:d.toString(),children:[h.jsx(xu,{buttons:[{id:"zoom-out",onClick:()=>W(!1),icon:"zoom-out",ariaLabel:"Zoom out"},{id:"zoom-in",onClick:()=>W(!0),icon:"zoom-in",ariaLabel:"Zoom in"}]}),h.jsxs(Eu,{variant:"span",children:[Math.trunc(o*100),"%"]})]})]})}),h.jsx(vu,{ref:k,onClick:L,onKeyDown:C=>{C.key==="Enter"&&(C.preventDefault(),L())},alignment:V,tabIndex:0,children:h.jsx($u,{...t,alt:((w=t.alt)==null?void 0:w.toString())||"",ref:x})})]})},Ar=m.forwardRef(({show:t="true",buttons:e,className:n},r)=>h.jsx(gu,{ref:r,show:t,className:ie("humany-button-set",n),children:e.map(({id:i,circle:o=!1,show:s=!0,ariaLabel:a,onClick:c,icon:u,className:l},d)=>h.jsx(yu,{circle:o.toString(),onClick:c,tabIndex:s?void 0:-1,show:s.toString(),icon:u,className:l,"aria-label":a,children:h.jsx(ot,{size:24,symbol:{type:"Svg",content:u}})},i+d.toString()))})),Fo=$.div`
515
515
  transition: opacity 0.3s ease 0s;
516
516
  z-index: 5;
517
517
  ${t=>t.show==="true"?"opacity: 1;":G`
518
518
  opacity: 0;
519
519
  pointer-events: none;
520
520
  `}
521
- `,yu=$(un)`
521
+ `,vu=$(ln)`
522
522
  display: inline-block !important;
523
523
 
524
524
  ${t=>(t.alignment==="right"||t.alignment==="left")&&G`
525
525
  float: ${t.alignment};
526
526
  `}
527
- `,bu=$(Yo)`
527
+ `,gu=$(Fo)`
528
528
  position: fixed;
529
529
  display: flex;
530
530
  gap: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.normal}};
531
- `,Gn="39px",xu=$(Ae)`
532
- width: ${Gn};
533
- height: ${Gn};
531
+ `,Zn="39px",yu=$(je)`
532
+ width: ${Zn};
533
+ height: ${Zn};
534
534
  display: flex;
535
535
  justify-content: center;
536
536
  align-items: center;
@@ -590,19 +590,19 @@ Valid keys: `+JSON.stringify(Object.keys(b),null," "));var A=me(I,K,P,H,M+"."+K
590
590
  opacity: 0;
591
591
  pointer-events: none;
592
592
  `}
593
- `,wu=$(Ir)`
593
+ `,bu=$(Ar)`
594
594
  top: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.large}};
595
595
  right: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.large}};
596
- `,Eu=$(Ir)`
596
+ `,xu=$(Ar)`
597
597
  bottom: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.large}};
598
598
  width: 100%;
599
599
  align-items: center;
600
600
  justify-content: center;
601
- `,Cu=$(Ir)`
601
+ `,wu=$(Ar)`
602
602
  display: block;
603
603
  button {
604
604
  position: fixed;
605
- top: calc(50% - calc(${Gn} / 2));
605
+ top: calc(50% - calc(${Zn} / 2));
606
606
  &:first-child {
607
607
  left: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.large}};
608
608
  }
@@ -610,36 +610,36 @@ Valid keys: `+JSON.stringify(Object.keys(b),null," "));var A=me(I,K,P,H,M+"."+K
610
610
  right: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.large}};
611
611
  }
612
612
  }
613
- `,Su=$(sn)`
613
+ `,Eu=$(Sr)`
614
614
  position: fixed;
615
615
  bottom: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.large}};
616
616
  right: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.large}};
617
617
  color: #ffffff;
618
618
  font-size: ${t=>{var e;return(e=t.theme.fonts)==null?void 0:e.medium}};
619
619
  font-family: ${t=>{var e;return(e=t.theme.fonts)==null?void 0:e.type}};
620
- `,Ko=$(Yo)`
620
+ `,qo=$(Fo)`
621
621
  position: absolute;
622
622
  width: 100vw;
623
623
  height: 88px;
624
624
  left: 0px;
625
625
  z-index: 5;
626
- `,ku=$.div`
626
+ `,Cu=$.div`
627
627
  width: 100%;
628
- `,Ou=$(Ko)`
628
+ `,Su=$(qo)`
629
629
  top: 0px;
630
630
  background-image: linear-gradient(
631
631
  to bottom,
632
632
  rgb(34, 34, 34, 0.8),
633
633
  rgba(34, 34, 34, 0)
634
634
  );
635
- `,$u=$(Ko)`
635
+ `,ku=$(qo)`
636
636
  bottom: 0px;
637
637
  background-image: linear-gradient(
638
638
  to top,
639
639
  rgb(34, 34, 34, 0.8),
640
640
  rgba(34, 34, 34, 0)
641
641
  );
642
- `,Nu=$.div`
642
+ `,Ou=$.div`
643
643
  width: 100%;
644
644
  height: 100vh;
645
645
  overflow: auto;
@@ -648,19 +648,19 @@ Valid keys: `+JSON.stringify(Object.keys(b),null," "));var A=me(I,K,P,H,M+"."+K
648
648
  white-space: nowrap;
649
649
  justify-content: center;
650
650
  cursor: ${t=>t.isDraggable==="true"?t.scrolling==="true"?"grabbing":"grab":"auto"};
651
- `,Tu=$.img`
651
+ `,$u=$.img`
652
652
  cursor: pointer;
653
- `,Ru=m.forwardRef(({className:t,children:e,trigger:n,onOverlayClick:r=()=>{},close:i=!1,...o},s)=>{const[a,c]=zc(),[u,l]=Vc(!0),d=m.useRef(),f=m.useRef(Ee()),p=ht("Escape");m.useEffect(()=>{(p||i)&&c(!1)},[p,i]),m.useEffect(()=>{a&&d.current&&d.current.focus()},[a,d.current]),Or("router:changed",()=>{c(!1)});const g=m.useCallback(y=>{c(!1),r(y)},[r,c]);m.useImperativeHandle(s,()=>({close(){c(!1)}}));const v=m.useCallback(()=>$o(f.current,()=>{c(!1)}),[f.current]);return h.jsxs(h.Fragment,{children:[h.jsx(qo,{visible:a,onClick:g,children:h.jsxs(Pu,{className:ie(t,"humany-modal",`humany-modal-${f.current}`),css:u,tabIndex:-1,...o,ref:l,children:[h.jsx(Ro,{onClick:()=>c(!1),tabIndex:0,ref:d,children:h.jsx(st,{symbol:{type:"Svg",content:"close"}})}),e]})}),m.cloneElement(n,{onClick:y=>{c(),v()}})]})}),Pu=$.div`
653
+ `,Nu=m.forwardRef(({className:t,children:e,trigger:n,onOverlayClick:r=()=>{},close:i=!1,...o},s)=>{const[a,c]=Ic(),[u,l]=Mc(!0),d=m.useRef(),f=m.useRef(Oe()),p=ft("Escape");m.useEffect(()=>{(p||i)&&c(!1)},[p,i]),m.useEffect(()=>{a&&d.current&&d.current.focus()},[a,d.current]),wr("router:changed",()=>{c(!1)});const g=m.useCallback(y=>{c(!1),r(y)},[r,c]);m.useImperativeHandle(s,()=>({close(){c(!1)}}));const v=m.useCallback(()=>ko(f.current,()=>{c(!1)}),[f.current]);return h.jsxs(h.Fragment,{children:[h.jsx(Uo,{visible:a,onClick:g,children:h.jsxs(Tu,{className:ie(t,"humany-modal",`humany-modal-${f.current}`),css:u,tabIndex:-1,...o,ref:l,children:[h.jsx($o,{onClick:()=>c(!1),tabIndex:0,ref:d,children:h.jsx(ot,{symbol:{type:"Svg",content:"close"}})}),e]})}),m.cloneElement(n,{onClick:y=>{c(),v()}})]})}),Tu=$.div`
654
654
  font-family: ${t=>{var e;return(e=t.theme.fonts)==null?void 0:e.type}};
655
655
  font-size: ${t=>{var e;return(e=t.theme.fonts)==null?void 0:e.normal}};
656
656
  position: relative;
657
657
  max-width: 50%;
658
658
  min-width: 200px;
659
659
  padding: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.medium}};
660
- ${t=>No(t)}
660
+ ${t=>Oo(t)}
661
661
  ${t=>t.css&&t.css}
662
662
  outline: none;
663
- `,ju=({className:t,trigger:e,header:n="",text:r="",onCancel:i=()=>{},onConfirm:o=()=>{},cancelLabel:s="",confirmLabel:a=""})=>{const c=m.useRef(),u=m.useCallback(()=>{var d;i(),(d=c==null?void 0:c.current)==null||d.close()},[i]),l=m.useCallback(()=>{var d;o(),(d=c==null?void 0:c.current)==null||d.close()},[o]);return h.jsxs(Au,{className:t,trigger:e,ref:c,onOverlayClick:u,children:[n&&h.jsx(Xe,{children:n}),r&&h.jsx(Xe,{children:r}),a&&h.jsx(_u,{onClick:l,children:a}),s&&h.jsx(Lu,{onClick:u,children:s})]})},Au=$(Ru)`
663
+ `,Ru=({className:t,trigger:e,header:n="",text:r="",onCancel:i=()=>{},onConfirm:o=()=>{},cancelLabel:s="",confirmLabel:a=""})=>{const c=m.useRef(),u=m.useCallback(()=>{var d;i(),(d=c==null?void 0:c.current)==null||d.close()},[i]),l=m.useCallback(()=>{var d;o(),(d=c==null?void 0:c.current)==null||d.close()},[o]);return h.jsxs(Pu,{className:t,trigger:e,ref:c,onOverlayClick:u,children:[n&&h.jsx(Xe,{children:n}),r&&h.jsx(Xe,{children:r}),a&&h.jsx(ju,{onClick:l,children:a}),s&&h.jsx(Au,{onClick:u,children:s})]})},Pu=$(Nu)`
664
664
  display: block;
665
665
 
666
666
  span {
@@ -672,7 +672,7 @@ Valid keys: `+JSON.stringify(Object.keys(b),null," "));var A=me(I,K,P,H,M+"."+K
672
672
  margin: 0 0 ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.small}};
673
673
  }
674
674
  }
675
- `,_u=$(Ae)`
675
+ `,ju=$(je)`
676
676
  display: inline-block;
677
677
  min-width: 50px;
678
678
  ${t=>{var e,n;return`padding: ${(e=t.theme.sizes)==null?void 0:e.small} ${(n=t.theme.sizes)==null?void 0:n.normal};`}}
@@ -690,7 +690,7 @@ Valid keys: `+JSON.stringify(Object.keys(b),null," "));var A=me(I,K,P,H,M+"."+K
690
690
  &:focus-visible {
691
691
  ${ye}
692
692
  }
693
- `,Lu=$(Ae)`
693
+ `,Au=$(je)`
694
694
  display: inline-block;
695
695
  min-width: 50px;
696
696
  ${t=>{var e,n;return`padding: ${(e=t.theme.sizes)==null?void 0:e.small} ${(n=t.theme.sizes)==null?void 0:n.normal};`}}
@@ -731,7 +731,7 @@ Valid keys: `+JSON.stringify(Object.keys(b),null," "));var A=me(I,K,P,H,M+"."+K
731
731
  span {
732
732
  font-weight: bold;
733
733
  }
734
- `;const Du=m.forwardRef(({className:t,description:e,text:n,children:r,...i},o)=>h.jsxs(un,{className:ie(t,"humany-text-link"),...i,ref:o,children:[r,h.jsx(rn,{children:n}),e?h.jsx(Tr,{html:e,className:"humany-description"}):null]}));$.div`
734
+ `;const _u=m.forwardRef(({className:t,description:e,text:n,children:r,...i},o)=>h.jsxs(ln,{className:ie(t,"humany-text-link"),...i,ref:o,children:[r,h.jsx(rn,{children:n}),e?h.jsx(No,{html:e,className:"humany-description"}):null]}));$.div`
735
735
  display: flex;
736
736
  align-items: center;
737
737
  `;$.div`
@@ -755,7 +755,7 @@ Valid keys: `+JSON.stringify(Object.keys(b),null," "));var A=me(I,K,P,H,M+"."+K
755
755
  }
756
756
 
757
757
  ${t=>{let e="";return t.y>0?e+=`top: calc(2px + ${t.y||"0"}px);`:e+="bottom: 2px;",t.x>0?e+=`right: calc(2px + ${t.x||"0"}px);`:e+="left: 2px;",e}};
758
- `;const Mu=m.forwardRef(({className:t,children:e,onClick:n=()=>{},widgetName:r,activationOptions:i,...o},s)=>{const a=He(),c=()=>{const{implementation:d}=a.get("$widget");return d.widgets.get(r)};m.useEffect(()=>{const d=c();return d==null||d.activate(i).then(()=>d.invoke("attach")),()=>{d==null||d.deactivate()}},[r]);const u=d=>{const f=c(),p=d.currentTarget;if(f){const g=()=>{f.invoke("renderState").then(v=>v===ar.open?f.invoke("close"):f.invoke("open")).then(()=>{f.events.subscribeOnce("widget:area-rendered",(v,y)=>{a.get("widgetDOMElement")&&f.events.dispatch("widget:modal-opened",{name:f.name,ref:p})})})};f.state===Ki.Deactivated?f.activate(i).then(()=>f.invoke("attach")).then(g):g()}},l=d=>{d.key==="Enter"&&(d.preventDefault(),u(d))};return h.jsx(un,{className:ie(t,"humany-widget-link"),onKeyDown:l,onClick:d=>{n(d),u(d)},...o,ref:s,children:e})});m.forwardRef(({portalId:t="humany-widget-overlay-portal",className:e,children:n},r)=>{const i=He(),o=m.useMemo(()=>{if(!i)return null;const s=i.get("widgetDOMElement");return!s||!s.childElementCount?null:s.children[0]},[i]);return o?h.jsx(Nr,{elementId:t,parent:o,children:h.jsx(Iu,{className:ie("humany-widget-overlay-outlet",e),ref:r,children:n})}):null});const Iu=$.div`
758
+ `;const Lu=m.forwardRef(({className:t,children:e,onClick:n=()=>{},widgetName:r,activationOptions:i,...o},s)=>{const a=He(),c=()=>{const{implementation:d}=a.get("$widget");return d.widgets.get(r)};m.useEffect(()=>{const d=c();return d==null||d.activate(i).then(()=>d.invoke("attach")),()=>{d==null||d.deactivate()}},[r]);const u=d=>{const f=c(),p=d.currentTarget;if(f){const g=()=>{f.invoke("renderState").then(v=>v===Ki.open?f.invoke("close"):f.invoke("open")).then(()=>{f.events.subscribeOnce("widget:area-rendered",(v,y)=>{a.get("widgetDOMElement")&&f.events.dispatch("widget:modal-opened",{name:f.name,ref:p})})})};f.state===Wi.Deactivated?f.activate(i).then(()=>f.invoke("attach")).then(g):g()}},l=d=>{d.key==="Enter"&&(d.preventDefault(),u(d))};return h.jsx(ln,{className:ie(t,"humany-widget-link"),onKeyDown:l,onClick:d=>{n(d),u(d)},...o,ref:s,children:e})});m.forwardRef(({portalId:t="humany-widget-overlay-portal",className:e,children:n},r)=>{const i=He(),o=m.useMemo(()=>{if(!i)return null;const s=i.get("widgetDOMElement");return!s||!s.childElementCount?null:s.children[0]},[i]);return o?h.jsx(Cr,{elementId:t,parent:o,children:h.jsx(Mu,{className:ie("humany-widget-overlay-outlet",e),ref:r,children:n})}):null});const Mu=$.div`
759
759
  background-color: #ffffff;
760
760
  position: absolute;
761
761
  top: 0;
@@ -776,7 +776,7 @@ Valid keys: `+JSON.stringify(Object.keys(b),null," "));var A=me(I,K,P,H,M+"."+K
776
776
  margin: 0 0 ${(e=t.theme.sizes)==null?void 0:e.normal} 0;
777
777
  font-size: ${(n=t.theme.fonts)==null?void 0:n.normal};
778
778
  `)}}
779
- `;$(ln)`
779
+ `;$(cn)`
780
780
  ${on}
781
781
  li {
782
782
  font-weight: 300;
@@ -859,7 +859,7 @@ Valid keys: `+JSON.stringify(Object.keys(b),null," "));var A=me(I,K,P,H,M+"."+K
859
859
  && {
860
860
  box-sizing: content-box;
861
861
  }
862
- `;const Vu=({isRequired:t})=>t?h.jsx(Wu,{children:"*"}):null,Zo=({title:t,required:e,children:n,error:r,elementId:i="",description:o="",className:s="",ui:{component:a,error:c}={}})=>{const u=h.jsx(Vu,{isRequired:e});return h.jsxs(Hu,{className:ie(s,"humany-form-component"),"data-type":a,"data-error":r,children:[i.length?h.jsxs("label",{htmlFor:i,className:"humany-form-component-title",children:[t,u]}):h.jsxs(Bu,{className:"humany-form-component-title",children:[t,u]}),n,c&&h.jsxs(Uu,{id:`${i}_error`,children:[h.jsx(st,{size:19,symbol:{type:"Svg",content:"alert"}}),h.jsx("span",{children:c})]}),o&&h.jsx(zu,{className:"humany-form-component-description",children:o})]})},Hu=$.div`
862
+ `;const Du=({isRequired:t})=>t?h.jsx(zu,{children:"*"}):null,Yo=({title:t,required:e,children:n,error:r,elementId:i="",description:o="",className:s="",ui:{component:a,error:c}={}})=>{const u=h.jsx(Du,{isRequired:e});return h.jsxs(Iu,{className:ie(s,"humany-form-component"),"data-type":a,"data-error":r,children:[i.length?h.jsxs("label",{htmlFor:i,className:"humany-form-component-title",children:[t,u]}):h.jsxs(Hu,{className:"humany-form-component-title",children:[t,u]}),n,c&&h.jsxs(Bu,{id:`${i}_error`,children:[h.jsx(ot,{size:19,symbol:{type:"Svg",content:"alert"}}),h.jsx("span",{children:c})]}),o&&h.jsx(Vu,{className:"humany-form-component-description",children:o})]})},Iu=$.div`
863
863
  ${t=>t["data-type"]==="AntiSpam"&&"display: none;"}
864
864
  > label {
865
865
  display: block;
@@ -880,19 +880,19 @@ Valid keys: `+JSON.stringify(Object.keys(b),null," "));var A=me(I,K,P,H,M+"."+K
880
880
  label {
881
881
  color: ${t=>{var e;return(e=t.theme.colors)==null?void 0:e.text}};
882
882
  }
883
- `,zu=$(Xe)`
883
+ `,Vu=$(Xe)`
884
884
  margin: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.normal}} 0 0 0;
885
885
  display: block;
886
886
  font-weight: 300;
887
- `,Bu=$(Xe)`
887
+ `,Hu=$(Xe)`
888
888
  display: block;
889
889
  font-size: 18px;
890
890
  margin: 0 0 10px 0;
891
- `,Wu=$.strong`
891
+ `,zu=$.strong`
892
892
  margin: 0 0 0 5px;
893
893
  display: inline-block;
894
894
  color: ${t=>{var e;return(e=t.theme.colors)==null?void 0:e.warning}};
895
- `,Uu=$.div`
895
+ `,Bu=$.div`
896
896
  && {
897
897
  margin: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.normal}} 0 0 0;
898
898
  }
@@ -908,7 +908,7 @@ Valid keys: `+JSON.stringify(Object.keys(b),null," "));var A=me(I,K,P,H,M+"."+K
908
908
  color: ${t=>{var e;return(e=t.theme.colors)==null?void 0:e.warning}};
909
909
  }
910
910
  }
911
- `;$(Zo)`
911
+ `;$(Yo)`
912
912
  font-weight: 300;
913
913
 
914
914
  input {
@@ -924,7 +924,7 @@ Valid keys: `+JSON.stringify(Object.keys(b),null," "));var A=me(I,K,P,H,M+"."+K
924
924
  display: inline;
925
925
  margin-right: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.normal}};
926
926
  }
927
- `;const Vr=t=>{var e,n,r;return G`
927
+ `;const _r=t=>{var e,n,r;return G`
928
928
  border: ${t.theme.inputBorder};
929
929
  border-radius: ${t.theme.borderRadius};
930
930
  padding: ${(e=t.theme.sizes)==null?void 0:e.normal};
@@ -935,13 +935,13 @@ Valid keys: `+JSON.stringify(Object.keys(b),null," "));var A=me(I,K,P,H,M+"."+K
935
935
  border-color: ${(n=t.theme.colors)==null?void 0:n.primary};
936
936
  }
937
937
  ${t["data-focused"]?`border-color: ${(r=t.theme.colors)==null?void 0:r.primary}`:""}
938
- `};$(Xc)`
939
- ${Vr}
938
+ `};$(Gc)`
939
+ ${_r}
940
940
  ${t=>t["data-type"]==="textarea"&&G`
941
941
  resize: vertical;
942
942
  min-height: 100px;
943
943
  `}
944
- `;$(ln)`
944
+ `;$(cn)`
945
945
  ${t=>on(t)}
946
946
  li {
947
947
  display: flex;
@@ -967,7 +967,7 @@ Valid keys: `+JSON.stringify(Object.keys(b),null," "));var A=me(I,K,P,H,M+"."+K
967
967
  font-size: 1.5em;
968
968
  }
969
969
  `;$.select`
970
- ${t=>Vr(t)}
970
+ ${t=>_r(t)}
971
971
  font-family: ${t=>{var e;return(e=t.theme.fonts)==null?void 0:e.type}};
972
972
 
973
973
  option {
@@ -1005,7 +1005,7 @@ Valid keys: `+JSON.stringify(Object.keys(b),null," "));var A=me(I,K,P,H,M+"."+K
1005
1005
  color: #FFF;
1006
1006
  border-color: ${(n=t.theme.colors)==null?void 0:n.link}
1007
1007
  `}}
1008
- `;$(Ae)`
1008
+ `;$(je)`
1009
1009
  flex: 1 0 0;
1010
1010
  text-align: center;
1011
1011
  margin-top: 5px;
@@ -1026,16 +1026,16 @@ Valid keys: `+JSON.stringify(Object.keys(b),null," "));var A=me(I,K,P,H,M+"."+K
1026
1026
  }
1027
1027
  `;$.p`
1028
1028
  margin-bottom: 5px;
1029
- `;$(Ae)`
1029
+ `;$(je)`
1030
1030
  flex: 1 0 auto;
1031
1031
  align-self: flex-end;
1032
1032
  text-align: right;
1033
- `;$(Ae)`
1033
+ `;$(je)`
1034
1034
  flex: 1 0 auto;
1035
1035
  align-self: flex-start;
1036
1036
  text-align: left;
1037
1037
  `;$.select`
1038
- ${t=>Vr(t)}
1038
+ ${t=>_r(t)}
1039
1039
  font-family: ${t=>{var e;return(e=t.theme.fonts)==null?void 0:e.type}};
1040
1040
 
1041
1041
  option {
@@ -1094,12 +1094,12 @@ Valid keys: `+JSON.stringify(Object.keys(b),null," "));var A=me(I,K,P,H,M+"."+K
1094
1094
  }
1095
1095
  }
1096
1096
  `}}
1097
- `;const Fu=1e7,Ln={fileName:null,fileSize:null,fileType:null,error:null},qu=t=>!(t>Fu);class Yu extends m.Component{constructor(){super(...arguments);S(this,"state",Ln);S(this,"reader");S(this,"input");S(this,"handleFileLoad",n=>{const r=this.reader.result;this.props.prompt(r,{fileName:this.state.fileName})});S(this,"handleFileChange",n=>{const r=this.input.files[0];if(r){if(!qu(r.size)){const i=this.props.componentInstanceProps?this.props.componentInstanceProps.fileSizeErrorLabel:"Attached file exceeds maximum file size.";this.setState({...Ln,error:i}),this.input.value=null,this.props.prompt("",{fileName:""});return}this.setState({...Ln,fileName:r.name,fileSize:r.size,fileType:r.type},()=>{this.reader.readAsDataURL(r)})}})}componentDidMount(){this.reader=new FileReader,this.reader.addEventListener("load",this.handleFileLoad,!1)}componentWillUnmount(){this.reader.removeEventListener("load",this.handleFileLoad)}render(){const{id:n,required:r,disabled:i,accessibility:o={},className:s="",title:a="",placeholder:c="",value:u="",...l}=this.props,d=this.state.fileName?h.jsx(Xe,{children:this.state.fileName}):this.props.componentInstanceProps&&this.props.componentInstanceProps.fileUploadHeader?h.jsx("em",{children:this.props.componentInstanceProps.fileUploadHeader}):null;return h.jsxs(Ku,{elementId:n,title:a,required:r,className:ie(s,"humany-form-component-file"),id:n,disabled:i,value:u,...l,children:[this.state.error&&h.jsx(Gu,{className:"humany-file-error",children:this.state.error}),h.jsx(Zu,{id:n,type:"file",placeholder:c,"aria-label":c,disabled:i,ref:f=>{this.input=f},onChange:this.handleFileChange,...o}),h.jsx(Ju,{htmlFor:n,role:"button",children:a}),d]})}}S(Yu,"contextTypes",{texts:()=>null});const Ku=$(Zo)`
1097
+ `;const Wu=1e7,_n={fileName:null,fileSize:null,fileType:null,error:null},Uu=t=>!(t>Wu);class Fu extends m.Component{constructor(){super(...arguments);S(this,"state",_n);S(this,"reader");S(this,"input");S(this,"handleFileLoad",n=>{const r=this.reader.result;this.props.prompt(r,{fileName:this.state.fileName})});S(this,"handleFileChange",n=>{const r=this.input.files[0];if(r){if(!Uu(r.size)){const i=this.props.componentInstanceProps?this.props.componentInstanceProps.fileSizeErrorLabel:"Attached file exceeds maximum file size.";this.setState({..._n,error:i}),this.input.value=null,this.props.prompt("",{fileName:""});return}this.setState({..._n,fileName:r.name,fileSize:r.size,fileType:r.type},()=>{this.reader.readAsDataURL(r)})}})}componentDidMount(){this.reader=new FileReader,this.reader.addEventListener("load",this.handleFileLoad,!1)}componentWillUnmount(){this.reader.removeEventListener("load",this.handleFileLoad)}render(){const{id:n,required:r,disabled:i,accessibility:o={},className:s="",title:a="",placeholder:c="",value:u="",...l}=this.props,d=this.state.fileName?h.jsx(Xe,{children:this.state.fileName}):this.props.componentInstanceProps&&this.props.componentInstanceProps.fileUploadHeader?h.jsx("em",{children:this.props.componentInstanceProps.fileUploadHeader}):null;return h.jsxs(qu,{elementId:n,title:a,required:r,className:ie(s,"humany-form-component-file"),id:n,disabled:i,value:u,...l,children:[this.state.error&&h.jsx(Ku,{className:"humany-file-error",children:this.state.error}),h.jsx(Yu,{id:n,type:"file",placeholder:c,"aria-label":c,disabled:i,ref:f=>{this.input=f},onChange:this.handleFileChange,...o}),h.jsx(Zu,{htmlFor:n,role:"button",children:a}),d]})}}S(Fu,"contextTypes",{texts:()=>null});const qu=$(Yo)`
1098
1098
  font-weight: 300;
1099
1099
  em {
1100
1100
  color: ${t=>{var e;return(e=t.theme.colors)==null?void 0:e.text}};
1101
1101
  }
1102
- `,Zu=$.input`
1102
+ `,Yu=$.input`
1103
1103
  width: 0px;
1104
1104
  height: 0.1px;
1105
1105
  opacity: 0;
@@ -1111,11 +1111,11 @@ Valid keys: `+JSON.stringify(Object.keys(b),null," "));var A=me(I,K,P,H,M+"."+K
1111
1111
  ${ye}
1112
1112
  background-color: transparent;
1113
1113
  }
1114
- `,Gu=$.div`
1114
+ `,Ku=$.div`
1115
1115
  color: ${t=>{var e;return(e=t.theme.colors)==null?void 0:e.warning}};
1116
1116
  padding-bottom: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.normal}};
1117
- `,Ju=$.label`
1118
- ${$r}
1117
+ `,Zu=$.label`
1118
+ ${Er}
1119
1119
  && {
1120
1120
  display: inline-block;
1121
1121
  margin: 0 ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.medium}} 0 0;
@@ -1202,13 +1202,13 @@ Valid keys: `+JSON.stringify(Object.keys(b),null," "));var A=me(I,K,P,H,M+"."+K
1202
1202
  && {
1203
1203
  box-sizing: content-box;
1204
1204
  }
1205
- `;$(Ae)`
1206
- ${$r}
1205
+ `;$(je)`
1206
+ ${Er}
1207
1207
  display: block;
1208
1208
  background-color: ${t=>{var e;return(e=t.theme.colors)==null?void 0:e.primary}};
1209
1209
  color: #ffffff;
1210
1210
  margin: 0 0 0 auto;
1211
1211
  min-width: 100px;
1212
- `;class Xu{constructor(e){S(this,"cache",new Map);S(this,"subscriptions",[]);this.controller=e;const{events:n}=e.container.get("$widget"),r=n.subscribe("data-client:fetched",(i,o)=>{o.type==="contact-method"&&this.cache.set(o.response.id,o.response)});this.subscriptions.push(r)}getConversationLogs(){return this.controller.messages.reduce((n,r)=>{const i=fn(r),{key:o,content:s,type:a,sender:c,timestamp:u}=i.content,l=this.parseEntry(s,a,c,u);return l&&n.push(l),n},[])}parseEntry(e,n,r,i){const o=u=>{let l=[],d=[],f;if(Array.isArray(u)){const[g,v]=u;f=v}else f=u;return this.createMessageContent(f).length&&(d=[...d,this.createMessageContent(f)]),l=[...l,...this.createMessageOptions(f)],{messagesAsList:d,options:l}};let s=[],a=[];if(Array.isArray(e.items)){const{items:u}=e;u.forEach(l=>{const d=o(l);s=[...s,...d.options],a=[...a,...d.messagesAsList]})}else{const u=o(e);s=[...s,...u.options],a=[...a,...u.messagesAsList]}return{options:s,message:a.length?a.join(`
1213
- `):void 0,source:this.createMessageSource(n),alias:this.createAlias(n,r),timestamp:i}}createMessageSource(e){return e}createAlias(e,n){return e===dn.System?"system":(n==null?void 0:n.name)||"Me"}handleContactMethod(e){if(!this.cache.has(e))return;const n=this.cache.get(e);let r="";return r=this.appendText(r,`${n.clientName}:`),r=this.appendText(r,n.title),n.description&&(r=this.appendText(r,n.title)),r}getDetails(e,n=!0){if(!e)return"";const{header:r,title:i,label:o,description:s,text:a,html:c,body:u,contactMethodId:l}=e;let d="";if(l){const f=this.handleContactMethod(l.toString());f&&(d=this.appendText(d,f,n))}return r&&(d=this.appendText(d,r,n)),i&&(d=this.appendText(d,i,n)),s&&(d=this.appendText(d,s,n)),a&&(d=this.appendText(d,a,n)),o&&(d=this.appendText(d,o,n)),c&&(d=this.appendText(d,c,n)),u&&typeof u=="string"&&(d=this.appendText(d,u,n)),d}createMessageContent(e){let n="";return n=this.getDetails(e),n}createMessageOptions(e){let n=[],r=[];return Array.isArray(e==null?void 0:e.actions)?r=e.actions:typeof(e==null?void 0:e.actions)=="object"&&(r=Object.entries(e.actions).map(([i,o])=>({actionKey:i,label:o}))),r.length&&(n=r.map(i=>this.getDetails(i,!1))),n}appendText(e,n,r=!0){return r&&e.length?`${e}
1214
- ${n}`:e.length?`${e} ${n}`:n}dispose(){this.subscriptions.forEach(e=>{e()})}}class Jn{constructor(e,n){S(this,"id");S(this,"name");S(this,"avatar");S(this,"print",(e,n,r=null)=>{const i={name:this.name,avatar:this.avatar,id:this.id},o=fn(e,n);return r=r??o.timestamp,this.provider.createEntry(o.key,o.content,dn.Agent,i,r)});S(this,"typing",()=>this.provider.setTypingState({name:this.name,avatar:this.avatar}));this.provider=e,this.id=n.id||Ee(),this.name=n.name,this.avatar=n.avatar}update(e){var i;const{name:n,avatar:r}=e;r===null?this.avatar=void 0:r&&(this.avatar=r),n===null?this.name=void 0:n&&(this.name=n),(i=this.provider.controller)==null||i.events.dispatch("conversation:agent-updated",{agent:this})}}class Hr{constructor(e,n,r){S(this,"subscriptions",[]);S(this,"options");S(this,"user");this.name=e,this.container=n,this.controller=r,this.user=r==null?void 0:r.user,this.options={silent:!1}}static create(e,n,r){return new Hr(e,n,r)}createAgent(e={}){var n;if(this.controller){const r=this.controller.getAgentById(e.id),i=r?new Jn(this,{...r,...e}):new Jn(this,e);return r||(n=this.controller)==null||n.events.dispatch("conversation:agent-created",{agent:i}),i}}print(e){var n;return(n=this.controller)==null?void 0:n.print(e)}setTypingState(e,n){var r;return(r=this.controller)==null?void 0:r.setTypingState(e,n)}loading(){return this.controller?this.controller.loader():()=>()=>{}}createEntry(e,n,r,i,o){var s;return(s=this.controller)==null?void 0:s.createEntry(e,n,r,i,o)}dispose(){var e;process.env.NODE_ENV!=="production"&&console.log(`conversation-provider: dispose (${this.name})`),(e=this.controller)==null||e.disposeProvider(this),this.controller=null,this.subscriptions.forEach(n=>n())}isRehydrated(){var e;return((e=this.controller)==null?void 0:e.isRehydrated())||Promise.resolve(!1)}getHistory(){var e;return((e=this.controller)==null?void 0:e.getHistory())||[]}complete(){var e;(e=this.controller)==null||e.onCompleteProvider()}setOptions(e={silent:!1}){this.options=e}onUnreadMessage(e){var n;if(this.controller){const r=(n=this.controller)==null?void 0:n.onUnreadMessage(e);return this.subscriptions.push(r),()=>{r()}}}onMounted(e){var n;if(this.controller){const r=(n=this.controller)==null?void 0:n.events.subscribe("conversation:component-mount-changed",e);return this.subscriptions.push(r),e({},this.controller.getComponentMountedState()),()=>{r()}}}}const Go=t=>`conversation-${t}`;class Qu{constructor(){S(this,"_locking",Promise.resolve());S(this,"_locks",0)}isLocked(){return this._locks>0}lock(){this._locks+=1;let e;const n=new Promise(i=>e=()=>{this._locks-=1,i()}),r=this._locking.then(()=>e);return this._locking=this._locking.then(()=>n),r}}let ed=class{constructor(e,n,r){S(this,"sessionStorageKey");S(this,"locker",new Qu);S(this,"initialStoredAgents",[]);this.container=e,this.conversation=n,this.enabled=r,this.sessionStorageKey=Go(n.id),n.onStarted(async()=>{if(n.messages.length>0)return;const{agents:i}=await this.read(),o=[];i&&i.forEach(a=>{const c=n.providerIndex(a.providerName),u=c>-1?n.registeredProviders[c]:n.createProvider(a.providerName),l=new Jn(u,{name:a.name,avatar:a.avatar,id:a.id});o.push(l)});const{messages:s}=await this.read();s.forEach(a=>{switch(a.type){case"agent":{const c=o.find(u=>{var l;return u.id===((l=a.sender)==null?void 0:l.id)});c&&c.print(a.content.items||a.content,{key:a.key},a.timestamp);return}case"user":{n.user.print(a.content.items||a.content,{key:a.key},a.timestamp);return}case"system":default:n.print(a.content.items||a.content,a.timestamp)}})}),n.onMessageCreated(async(i,o)=>{this.write(o.message,"messages")}),n.events.subscribe("conversation:agent-created",async(i,o)=>{const s={id:o.agent.id,name:o.agent.name,avatar:o.agent.avatar,providerName:o.agent.provider.name};await this.write(s,"agents")}),n.events.subscribe("conversation:agent-updated",async(i,o)=>{const{agents:s}=await this.read();await this.write([...s.map(a=>a.id===o.agent.id?{...a,name:o.agent.name,avatar:o.agent.avatar}:a)],"agents","update")})}setInitialData(e){this.initialStoredAgents=e.agents}async isRehydrated(){const{messages:e}=await this.read();return e.length>0}getStoredAgent(e){if(this.enabled)return this.initialStoredAgents.find(n=>n.id===e)}async write(e,n,r="add"){if(!this.enabled)return;const i=await this.locker.lock();return rt(this.container,this.sessionStorageKey,de.Necessary).then(async o=>{if(r==="add"){const s=await this.read();if(n==="messages"&&s.messages.findIndex(c=>c.key===e.key)>-1){i();return}const a={...s};return n==="messages"?a.messages=[...a.messages,e]:n==="agents"&&(a.agents=[...a.agents,e]),o({...s,...a}).then(()=>{i()})}if(r==="update"&&n==="agents"){const s=await this.read();return o({...s,agents:e}).then(()=>{i()})}return o(e).then(()=>{i()})})}async read(){return Pe(this.container,this.sessionStorageKey).then(e=>e||{messages:[],agents:[]})}};class td{constructor(e){S(this,"print",(e,n,r=null)=>{const i=fn(e,n);return r=r??i.timestamp,this.controller.createEntry(i.key,i.content,dn.User,void 0,r)});this.controller=e}}const Xn=async(t,e,n)=>{const r=await t.getAsync("conversation"),i=await t.getAsync("components"),o=r.controllers.find(s=>s.conversation.id===e);if(o){const s=[...o.conversation.providers];s.forEach(c=>{o.conversation.setProviderOptions(c,{silent:!0})}),o.conversation.queueProviders(s),o.conversation.setProviders([n]);const a=i.components().ofType("conversation");i.write({key:"setConversationProvider",attributes:{properties:{providers:[n]}},target:a,provider:"localStorage"})}};class nd{constructor(e){this.writer=e}update(e){const n=this.getNormalizedSettings(e);this.writer(n)}remove(){this.writer(null)}getNormalizedSettings(e){return typeof e=="string"?{body:e}:e.length>-1&&typeof e=="object"?{items:e}:e}}var dn=(t=>(t.User="user",t.Agent="agent",t.System="system",t))(dn||{});const fn=(t,e)=>{let n,r=(e==null?void 0:e.key)||Ee(),i=Date.now();if(Array.isArray(t)&&t.length>-1)typeof t[0]=="string"?n={items:[t]}:n={items:t};else if(typeof t=="string")n={body:t};else if(t=t||{},t.type)n={...t};else{if(n={body:t.body,actions:t.actions,title:t.title},t.key&&(r=t.key),t.timestamp&&(i=t.timestamp),typeof t.form=="function"){const o=je.create(r);t.form(o);const s=o.get();n.form=s}t.timestamp===null&&(i=null)}return{content:n,key:r,timestamp:i}},Fi=(t,e)=>{if(!e)return;const n=JSON.stringify(e),r=t.findIndex(i=>n===JSON.stringify(i));if(r>-1)return t.splice(r,1)};class rd{constructor(e,n,r){S(this,"formHandlers",{});S(this,"user",new td(this));S(this,"events");S(this,"providers",[]);S(this,"active",!1);S(this,"queuedProviders",[]);S(this,"registeredProviders",[]);S(this,"loaders",0);S(this,"componentMounted",!1);S(this,"store");S(this,"messages",[]);S(this,"typingActors",[]);S(this,"conversationHistory");S(this,"print",(e,n=null)=>{const r=fn(e);return n=n??r.timestamp,this.createEntry(r.key,r.content,"system",void 0,n)});this.container=e,this.id=n;const i=e.get("$widget");this.events=i.events.createChild(this),this.store=new ed(e,this,r.rehydrate),this.conversationHistory=new Xu(this)}setInitialStorage(e){this.store.setInitialData(e)}setProviders(e){const n=[],r=[];this.providers.reduce((i,o)=>(e.indexOf(o)===-1&&i.push(o),i),[]).forEach(i=>{const o=this.providers.indexOf(i);o>-1&&(n.push(i),this.providers.splice(o,1))}),e.forEach(i=>{this.providers.indexOf(i)===-1&&(r.push(i),this.providers.push(i))}),(r.length||n.length)&&this.events.dispatch("conversation:providers-changed",{added:r,removed:n})}createProvider(e){const n=this.providerIndex(e);if(n>-1)return this.registeredProviders[n];const r=Hr.create(e,this.container,this);return this.registeredProviders.push(r),r}providerIndex(e){return this.registeredProviders.findIndex(n=>n.name===e)}getAgentById(e){if(e)return this.store.getStoredAgent(e)}dispose(){this.conversationHistory.dispose(),this.registeredProviders.forEach(e=>e.dispose()),this.messages=[],this.events.dispatch("conversation:controller-disposed",this),this.active=!1}onDispose(e){return this.events.subscribe("conversation:controller-disposed",e)}onStarted(e){return this.events.subscribe("conversation:started",e)}onMessageCreated(e){return this.events.subscribe("conversation:message-created",e)}isRehydrated(){return this.store.isRehydrated()}disposeProvider(e){const n=this.providerIndex(e.name);n>-1&&this.registeredProviders.splice(n,1),this.events.dispatch("conversation:providers-changed",{removed:[e.name]}),this.registeredProviders.length||this.dispose()}onProvidersChange(e){return this.events.subscribe("conversation:providers-changed",e)}setComponentMountedState(e){this.componentMounted!==e&&(this.componentMounted=e,e&&(this.events.dispatch("conversation:unread-message",!1),this.events.dispatch("conversation:started",!0),this.active=!0),this.events.dispatch("conversation:component-mount-changed",e))}setProviderOptions(e,n){const r=this.providerIndex(e);r>-1&&this.registeredProviders[r].setOptions(n)}changeProvider(e){this.registeredProviders.find(r=>r.name===e)&&Xn(this.container,this.id,e)}queueProviders(e){this.queuedProviders=e}onCompleteProvider(){const e=this.queuedProviders.pop();e&&Xn(this.container,this.id,e)}getComponentMountedState(){return this.componentMounted}onUnreadMessage(e){return this.events.subscribe("conversation:unread-message",e)}createEntry(e,n,r,i,o){const s={key:e,content:n,type:r,sender:i||null,timestamp:o||o===null?o:Date.now()};this.messages.push(s),s.type==="agent"&&Fi(this.typingActors,i);const a=new nd(c=>{if(c!==null){const{timestamp:u=void 0,...l}=c;s.content=l,u&&(s.timestamp=u)}else{const u=this.messages.indexOf(s);s.content=null,u>-1&&this.messages.splice(u,1)}this.events.dispatch("conversation:message-updated",{message:s}),this.update()});return this.events.dispatch("conversation:message-created",{message:s}),this.update(),this.componentMounted||this.events.dispatch("conversation:unread-message",!0),a}update(){this.events.dispatch("conversation:updated",{messages:this.messages,loading:this.loaders>0,typingActors:this.typingActors})}getMessageStream(){return{messages:this.messages,loading:this.loaders>0,typingActors:this.typingActors}}setTypingState(e,n){return this.typingActors.indexOf(e)===-1&&(this.typingActors.push(e),this.update()),()=>{Fi(this.typingActors,e),this.update()}}loader(){this.loaders=this.loaders+1;let e=!1;return this.loaders===1&&this.update(),()=>{e||(e=!0,this.loaders=this.loaders-1,this.loaders===0&&this.update())}}submitForm(e,n){this.formHandlers[e]={...this.formHandlers[e],submit:n}}validateForm(e,n){this.formHandlers[e]={...this.formHandlers[e],validate:n}}getHistory(){return this.conversationHistory.getConversationLogs()}}const qi=t=>{const{implementation:e}=t.get("$widget"),r=(e.container.get("modals")||[]).map(i=>i.close());return Promise.all(r)};var Qn=(t=>(t.LinkList="link-list",t.Separator="separator",t.ButtonList="button-list",t.ItemList="item-list",t.Text="text",t.HTML="html",t.VideoRequest="video-request",t))(Qn||{});const id=(t,e,n)=>t.getAsync("componentResolver").then(async r=>{(await hn.getInstance(t)).addSubscription(r.registerComponent(e,m.lazy(()=>n)))}),od=(t,e)=>{const n=t.split("_contact");return e.widgets.get(n[0])},zr=t=>{const e=t.get("$widget"),{name:n,implementation:r}=t.get("$widget"),i=n.indexOf("_contact")>-1?od(n,r):e,{data:o}=t.get("$settings"),{trigger:s}=i.container.get("$settings"),a=`${n.replace("_contact-method","").replace("_contact","")}_contact-method`,c=r.widgets.get(a);return c&&!s?{chatWidget:c,mainWidget:i,data:o}:{mainWidget:i,data:o}},sd=t=>{const{chatWidget:e}=zr(t);return!!e},Yi=(t,e,n)=>{const{mainWidget:r,data:i,chatWidget:o}=zr(t);return o?o.state==="activated"?o.invoke("open").then(()=>{o.container.getAsync("conversation").then(s=>{s.navigateToConversationIfActive(e.id).then(()=>qi(t))})}):o.activate().then(()=>{const{trigger:s}=o.container.get("$settings");return s.action="hide",o.invoke("setSettings",()=>({data:i,trigger:s,activate:!0})).then(()=>o.container.getAsync("components").then(a=>{const c=a.components().ofType("contact-method");a.write({key:"setContactMethodId",attributes:{properties:{id:e.id,guideId:e.guideId}},target:c,provider:"localStorage"});const u=a.components().ofType("conversation");a.write({key:"setConversationProvider",attributes:{properties:{providers:[e.clientName]}},target:u,provider:"localStorage"})}))}).then(()=>o.invoke("attach",{key:"contact-method",triggerDOMElement:n,withRenderState:"open"})).then(()=>(rt(o.container,"activeStickyWidget",de.Necessary,{medium:pe.Local,scope:Kt.Implementation}).then(s=>s(o.name)),o.container.getAsync("conversation").then(s=>{s.setConversationEndedBehavior(Ft.Deactivate)}).then(()=>qi(t)).then(()=>!1))):(r.container.getAsync("conversation").then(s=>s.navigateToConversationIfActive(e.id).then(()=>s.setConversationEndedBehavior(Ft.Navigate))),!o)},ad=(t,e,n="conversation")=>{const{mainWidget:r,chatWidget:i}=zr(t);return i?i.container.getAsync("router").then(o=>{o.navigate(n,{id:e.id})}):r.container.getAsync("conversation").then(o=>{var s;(s=o.setConversationEndedBehavior(Ft.Navigate))==null||s.then(()=>{r.container.getAsync("router").then(a=>{r.container.getAsync("components").then(c=>{const u=c.components().ofType("conversation");c.write({key:"setConversationProvider",attributes:{properties:{providers:[e.clientName]}},target:u,provider:"localStorage"})}).then(()=>{a.navigate(n,{id:e.id})})})})})},ut="conversations";var Ft=(t=>(t.Deactivate="deactivate",t.Navigate="navigate",t.None="none",t))(Ft||{});class hn{constructor(e,n){S(this,"events");S(this,"controllers",[]);S(this,"providers",[]);S(this,"disposeProviders",{});S(this,"subscriptions",[]);S(this,"storageWriter",null);S(this,"router",null);S(this,"buttonQuery",null);S(this,"sessionInfo",null);this.container=e,this.components=n;const r=e.get("$widget");this.events=r.events.createChild(this)}initialize(){rt(this.container,ut,de.Necessary,{medium:pe.Local}).then(e=>this.storageWriter=e),Pe(this.container,ut,pe.Local).then(e=>{this.buttonQuery=this.components.components().ofType("conversation-return-button"),e&&(this.sessionInfo=e,e.id&&e.route&&this.writeToComponents({active:!0,alert:{show:!1}}))}),this.container.getAsync("router").then(e=>this.router=e),this.events.subscribe("conversation:ended",(e,n)=>{var r,i,o;switch((r=this.sessionInfo)==null?void 0:r.conversationEndedBehavior){case"deactivate":this.container.get("$widget").deactivate();break;case"navigate":const a=(i=this.router)==null?void 0:i.getInitialRoute();a&&((o=this.router)==null||o.navigate(a.name));break}this.writeToComponents({active:!1}),this.sessionInfo=null,this.storageWriter&&this.storageWriter()})}addSubscription(e){this.subscriptions.push(e)}static getInstance(e,n="conversation"){return nt(e)(()=>e.getAsync(n).then(r=>{let i=r;return i||Gi.getInstance(e).then(o=>(i=new hn(e,o),i.initialize(),e.registerAsync(n,()=>i),i))}))}navigateToConversationIfActive(e){return Pe(this.container,ut,pe.Local).then(n=>{var r;if(n&&n.id===e&&n.route){const{name:i,params:o}=n.route;(r=this.router)==null||r.navigate(i,o)}})}setConversationEndedBehavior(e){return Pe(this.container,ut,pe.Local).then(n=>{let r=n;return r?r.conversationEndedBehavior=e:r={conversationEndedBehavior:e},this.sessionInfo=r,this.storageWriter&&this.storageWriter(this.sessionInfo)||Promise.resolve()})}async createController(e,n){const r=Go(e),{agents:i}=await Pe(this.container,r)||{agents:[]},o=this.controllers.findIndex(a=>a.conversation.id===e);let s;return o>-1?s=this.controllers[o].conversation:s=new rd(this.container,e,n),s.setInitialStorage({agents:i||[]}),s}registerProvider(e,n){const r={name:e,handler:n};this.providers.push(r),this.controllers.filter(i=>i.conversation.providers.indexOf(e)>-1).forEach(i=>{this.invokeHandler(r,i)})}registerController(e,n){const r=this.controllers.findIndex(o=>o.conversation.id===e.id);let i;if(r<0){i={conversation:e,component:n},this.controllers.push(i);const o=s=>{s&&this.providers.filter(a=>s.indexOf(a.name)>-1).forEach(a=>{this.invokeHandler(a,i)})};return this.subscriptions.push(e.onDispose((s,a)=>{const c=this.controllers.findIndex(u=>u.conversation===a);c>-1&&this.controllers.splice(c,1),this.components.components().ofType("conversation-return-button").select().writeProperties({active:!1}),this.events.dispatch("conversation:ended",{},{bubbles:!0})})),this.subscriptions.push(e.onProvidersChange((s,a)=>{const{added:c,removed:u=[]}=a;u.forEach(l=>{(this.disposeProviders[l]||[]).forEach(d=>{d()})}),o(c)})),this.subscriptions.push(e.onStarted((s,a)=>{var u,l;const c={id:e.id,route:(u=this.router)==null?void 0:u.getRouteData(),conversationEndedBehavior:(l=this.sessionInfo)==null?void 0:l.conversationEndedBehavior};this.sessionInfo=c,this.storageWriter&&this.storageWriter(c),this.writeToComponents({active:a})})),this.subscriptions.push(e.onUnreadMessage((s,a)=>{this.events.dispatch("conversation:unread-message",a),this.writeToComponents({alert:{show:a}})})),o(e.providers),!0}return i=this.controllers[r],!1}writeToComponents(e,n="conversationReturnButtonState"){this.buttonQuery&&this.components.write({key:"conversationReturnButtonState",attributes:{properties:e},target:this.buttonQuery,provider:"localStorage"})}invokeHandler(e,n){const r=e.handler(n.conversation.createProvider(e.name),n.component);r&&(this.disposeProviders[e.name]||(this.disposeProviders[e.name]=[]),this.disposeProviders[e.name].push(r))}getComponentRoute(){return Pe(this.container,ut,pe.Local).then(e=>e==null?void 0:e.route)}dispose(){Object.keys(this.disposeProviders).forEach(e=>{this.disposeProviders[e].forEach(n=>{n()})}),this.subscriptions.forEach(e=>{e()}),this.controllers=[],this.providers=[]}static async handleContactMethodClick(e,n,r,i){if(sd(n)){e.preventDefault();let o=document.getElementById("humany-dynamic-anchor");o||(o=document.createElement("a"),o.setAttribute("href","#"),o.id="humany-dynamic-anchor",document.body.appendChild(o)),Yi(n,r,o)}Yi(n,r)}static async handleContactMethodSubmit(e,n){var r,i;return(i=(r=n==null?void 0:n.body.form.meta)==null?void 0:r.conversation)!=null&&i.id?Xn(e,n.body.form.meta.conversation.id,n.clientName):ad(e,n)}}class cd{constructor(e){S(this,"enabled",!0);S(this,"botProviderGlobalStateKey","bot-provider-global-state");S(this,"botProviderLocalStateKey","bot-provider-local-state");S(this,"botProviderEntriesKey","bot-provider-entries");S(this,"botProviderMetaStateKey","bot-provider-conversation-meta");this.container=e}getKey(e){let n;switch(e){case"localState":n=this.botProviderLocalStateKey;break;case"globalState":n=this.botProviderGlobalStateKey;break;case"entries":n=this.botProviderEntriesKey;break;case"meta":n=this.botProviderMetaStateKey;break}return n}async read(e){const n=this.getKey(e);if(!(!this.enabled||!n))return Pe(this.container,n)}async write(e,n){const r=this.getKey(n);if(!this.enabled||!r)return;(await rt(this.container,r,de.Necessary))(e)}}var qt=(t=>(t.ContactMethod="ace-conversational-hub-contact-method",t))(qt||{});const ld=({isUser:t,items:e=[],meta:n={}})=>{const r=Ee();return{id:r,isUser:t,items:e.map(o=>({id:o.id||Ee(),isUser:t,groupId:r,message:o.message||[]})),meta:n}},ud=(t,{submit:e,errors:n,meta:r})=>{var i;if((i=t==null?void 0:t.body)!=null&&i.form){const{body:o}=t,s=new je(o.form);return o.form.layout.submit||s.createComponent(Rs(e,"submit")),n&&s.setValidationErrors(n),r&&s.setMeta(r),{...o,form:s.get()}}return(t==null?void 0:t.body)||{}},dd=async(t,e,n)=>{(await(await t.getAsync("dataClient")).getClient()).parameters.set(e,n)},Rt=({messageId:t,message:e,group:n})=>({id:t,message:e,groupId:n.id,isUser:n.isUser}),fd=async(t,e,n)=>{const r=async(c,u,l=[],d)=>{var p,g;const f=Ee();switch(c.type!=="List"&&c.tags.includes("guide")&&((g=(p=c.content.hints)==null?void 0:p[0])!=null&&g.id)&&await dd(t,"LastGuideId",c.content.hints[0].id),c.type){case"Text":{const v=[];if(v.push(Rt({messageId:f,message:[Qn.HTML,{body:c.content.html}],group:u})),l.length){l.find(k=>{var N;return k.type==="List"&&((N=k.localState)==null?void 0:N.$type)==="Humany.Matching.Bots.Conversations.States.ContactState, Humany.Matching"});const y=l.find(k=>k.tags.includes("contact")&&k.type==="Contact");y&&v.push(Rt({messageId:f,message:[qt.ContactMethod,{contactMethodId:y.content.id,groupId:u.id,guideId:y.content.guideId}],group:u}))}return v}case"Contact":return[Rt({messageId:f,message:[qt.ContactMethod,{contactMethodId:c.content.id,groupId:u.id,guideId:c.content.guideId}],group:u})];case"Error":return[Rt({messageId:f,message:[Qn.HTML,{body:c.content.message||"Something went wrong."}],group:u})];default:return[]}},i=new Map([["Text",1],["Contact",2]]),o=[],s=e.sort((c,u)=>{const d=i.get(c.type)||20,f=i.get(u.type)||20;return d-f}).filter(c=>!c.relation).reduce((c,u)=>c.concat(u),[]),a=c=>typeof c.actions.selector<"u";for(const c of s){const u=e.filter(f=>f.relation===c.id&&!a(f)),l=ld({isUser:!1});(await r(c,l,u)).forEach(f=>{l.items.push(f)}),l.items.length&&o.push(l)}return o};class hd{constructor(e,n,r,i){S(this,"globalState");S(this,"localState");S(this,"clientId");S(this,"entries");this.endpoint=e,this.events=n,this.store=r,this.container=i,this.clientId=Ee(),this.entries=[]}async fetchGuide(e){const n={command:{guide:{id:e}},globalState:this.globalState,clientId:this.clientId};return await this.postEnvelope(n)}async postEnvelope(e,n){try{const r=await fetch(this.endpoint,this.getHttpOptions(e));if(!r.ok)throw r;const i=await r.json();return this.handleResponse(i,n)}catch(r){process.env.NODE_ENV!=="production"&&console.warn("Something went wrong when posting the envelope.");let i="Something went wrong";return(r.message==="Failed to fetch"||r.message==="NetworkError when attempting to fetch resource.")&&(i="Lost connection... Please try again."),this.handleResponse({entries:[{id:Ee(),type:"Error",timestamp:new Date().toISOString(),content:{message:i},actions:{},tags:[]}]})}}async handleResponse(e,n){this.entries=this.entries.concat(e.entries),this.store.write(this.entries,"entries");const r=e.entries.find(o=>o.type==="Widget");return r&&this.events.dispatch("provider:widget-entry",r.content),e.globalState&&(this.globalState=e.globalState,this.store.write(e.globalState,"globalState")),this.localState=e.entries.reduce((o,s)=>s.localState?s.localState:o,void 0),this.store.write(this.localState,"localState"),await fd(this.container,e.entries)}getHttpOptions(e){const n={method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"}};return e.funnel=this.container.get("$widget").name,e.localState=e.localState||this.localState,Object.assign({},n,{body:JSON.stringify(e),credentials:"same-origin"})}}const pd="@telia-ace/conversational-hub-bot-provider",md="0.0.13",vd="./index.js",gd="./index.d.ts",yd={".":{import:"./index.mjs",require:"./index.js"}},bd={"@telia-ace/widget-conversation":"*","@webprovisions/platform":"^1.1.4","@telia-ace/knowledge-widget-core":"*","@telia-ace/widget-utilities":"*","@telia-ace/widget-services":"*","@telia-ace/widget-core":"*","@telia-ace/knowledge-data-client":"*","@telia-ace/knowledge-widget-adapters":"*","@telia-ace/knowledge-widget-ui":"*","@telia-ace/widget-forms":"*"},xd={"@emotion/react":"11.11.1","@emotion/styled":"11.11.0",react:"18.2.0"},Be={name:pd,version:md,main:vd,types:gd,exports:yd,dependencies:bd,peerDependencies:xd},wd=async t=>{var T,x,V,R,_;const e="chub-plugin",n=t.get("$widget"),r=(_=(R=(V=(x=(T=n==null?void 0:n.container)==null?void 0:T.get("$settings"))==null?void 0:x.components)==null?void 0:V.conversation)==null?void 0:R.properties)==null?void 0:_.conversationalHubPluginSettings;let i,o,s,a=(r==null?void 0:r.connectionAttempts)??5,c,u,l;se.info((Be==null?void 0:Be.name)+" version: "+(Be==null?void 0:Be.version)),id(t,qt.ContactMethod,Promise.resolve().then(()=>require("./contact-method-429ef265.js")));const d=await rt(t,"conversational-hub-session",de.Necessary),f=(L,D)=>{const{knowledgeBotEndpoint:W}=D.properties();if(W)return`${W}/conversations`;const{data:U}=L.get("$settings");if(!U||!U.projection)throw new Error("Missing Knowledge Bot endpoint");return`${U.projection}/conversations`};(await hn.getInstance(t)).registerProvider(e,(L,D)=>{i=L,o=i.controller,s=i.createAgent({name:r==null?void 0:r.botName,avatar:r==null?void 0:r.avatar}),l=f(t,D);const{events:W}=t.get("$widget"),U=new cd(t);u=new hd(l,W,U,t),g();const q=()=>o.providers.includes(e);window.controller=o,D.actions.create("submit",z=>{const{events:Y}=t.get("$widget");Y.dispatch("conversational-hub-provider:form-submitted",z)}),D.actions.watch("conversation.action",(z,Y)=>(q()&&v(z),Y(z))),D.actions.watch("conversation.user-submit",(z,Y)=>{if(!q())return Y(z);y(z.text),i.user.print(z.text.replace(/</g,"&lt;").replace(/>/g,"&gt;"))})});async function g(L=!0){const D=await Pe(t,"conversational-hub-session");D!=null&&D.sessionId?c=D==null?void 0:D.sessionId:await k(r.baseUrl+"/initialize",`{"extension": "${r.extension}"}`,L)}async function v(L){await k(`${r.baseUrl}/input/${c}`,`{"type":"button_click","language":"${r.language}","content":{"button_text":"${L.label}","value":"${L.actionKey}"}}`)}async function y(L){const D={text:L};await k(`${r.baseUrl}/input/${c}`,`{"type":"text","language":"${r.language}","content":${JSON.stringify(D)}}`)}async function k(L,D,W=!0){var Y,te,oe,ne;const U=i.loading();let q,z;try{q=await fetch(L,{method:"POST",body:D}),z=await(q==null?void 0:q.json())}catch(B){B instanceof SyntaxError?se.error("Incorrect JSON format.",B):se.error("Network error: check connection or baseUrl.",B),U(),s.print(r.errorMessage);return}if(!(q!=null&&q.ok)){if(se.error(`HTTP ${q==null?void 0:q.status}.`,JSON.stringify(z)),U(),!!((Y=z==null?void 0:z.errors)!=null&&Y.filter(b=>b.code==="1003").length)&&a>0){a--,await new Promise(w=>setTimeout(w,500)),await g(!1);const b=JSON.parse(D);(te=b==null?void 0:b.content)!=null&&te.text?await y(b.content.text):(oe=b==null?void 0:b.content)!=null&&oe.action&&await v((ne=b==null?void 0:b.content)==null?void 0:ne.action)}else s.print(r.errorMessage);return}U(),a=(r==null?void 0:r.connectionAttempts)??5,z!=null&&z.action_payload&&N(z.action_payload),c=z==null?void 0:z.session_id,d({sessionId:c}),W&&j(z)}async function N(L){var q;const D=(q=L==null?void 0:L.transfer_parameters)==null?void 0:q.contactGuide,W=i.loading(),U=await u.fetchGuide(parseInt(D));if(W(),U){const z=U.concat(U);if(z.length){const Y=z[0].items.map(te=>te.message);s.print(Y)}}}function j(L){var D;L==null||L.agent_response.forEach(W=>{s.print(W.payload.text)}),(D=L==null?void 0:L.prompt)!=null&&D.items&&s.print(["button-list",{actions:L.prompt.items.map(W=>{let U;return W.type==="button"&&(U={actionKey:W.value,label:W.text}),W.type==="link"&&(U={actionKey:W.value,label:W.text,data:{href:W.url,target:(r==null?void 0:r.linkTarget)??"_blank"}}),U})}])}};exports.Button=Ae;exports.ComponentNodeContext=So;exports.ComponentQuery=rr;exports.Confirm=ju;exports.ConversationContext=Lc;exports.ConversationalHubPlugin=wd;exports.FormBuilder=je;exports.Html=Tr;exports.Icon=Po;exports.ItemList=Qc;exports.Link=un;exports.List=ln;exports.Paragraph=jo;exports.StyledText=Xe;exports.SymbolBadge=st;exports.Text=rn;exports.TextLink=Du;exports.Typography=sn;exports.WidgetRenderState=ar;exports.appendClassNames=ie;exports.borderTabStyle=ye;exports.convertToStringAttributes=Ce;exports.css=G;exports.deepClone=or;exports.genericHtml=Fc;exports.headingElement=Je;exports.invertedHoverButton=Bc;exports.itemList=Uc;exports.keyframes=wr;exports.linkTabStyle=To;exports.list=on;exports.lock=nt;exports.newStyled=$;exports.paddedBorderTabStyle=Wc;exports.updateForm=ud;exports.useComponentPlatform=kr;exports.useContainer=He;exports.useIsMounted=Sr;exports.usePrevious=ko;exports.useRouter=Oo;exports.uuid=Ee;
1212
+ `;class Gu{constructor(e){S(this,"cache",new Map);S(this,"subscriptions",[]);this.controller=e;const{events:n}=e.container.get("$widget"),r=n.subscribe("data-client:fetched",(i,o)=>{o.type==="contact-method"&&this.cache.set(o.response.id,o.response)});this.subscriptions.push(r)}getConversationLogs(){return this.controller.messages.reduce((n,r)=>{const i=dn(r),{key:o,content:s,type:a,sender:c,timestamp:u}=i.content,l=this.parseEntry(s,a,c,u);return l&&n.push(l),n},[])}parseEntry(e,n,r,i){const o=u=>{let l=[],d=[],f;if(Array.isArray(u)){const[g,v]=u;f=v}else f=u;return this.createMessageContent(f).length&&(d=[...d,this.createMessageContent(f)]),l=[...l,...this.createMessageOptions(f)],{messagesAsList:d,options:l}};let s=[],a=[];if(Array.isArray(e.items)){const{items:u}=e;u.forEach(l=>{const d=o(l);s=[...s,...d.options],a=[...a,...d.messagesAsList]})}else{const u=o(e);s=[...s,...u.options],a=[...a,...u.messagesAsList]}return{options:s,message:a.length?a.join(`
1213
+ `):void 0,source:this.createMessageSource(n),alias:this.createAlias(n,r),timestamp:i}}createMessageSource(e){return e}createAlias(e,n){return e===un.System?"system":(n==null?void 0:n.name)||"Me"}handleContactMethod(e){if(!this.cache.has(e))return;const n=this.cache.get(e);let r="";return r=this.appendText(r,`${n.clientName}:`),r=this.appendText(r,n.title),n.description&&(r=this.appendText(r,n.title)),r}getDetails(e,n=!0){if(!e)return"";const{header:r,title:i,label:o,description:s,text:a,html:c,body:u,contactMethodId:l}=e;let d="";if(l){const f=this.handleContactMethod(l.toString());f&&(d=this.appendText(d,f,n))}return r&&(d=this.appendText(d,r,n)),i&&(d=this.appendText(d,i,n)),s&&(d=this.appendText(d,s,n)),a&&(d=this.appendText(d,a,n)),o&&(d=this.appendText(d,o,n)),c&&(d=this.appendText(d,c,n)),u&&typeof u=="string"&&(d=this.appendText(d,u,n)),d}createMessageContent(e){let n="";return n=this.getDetails(e),n}createMessageOptions(e){let n=[],r=[];return Array.isArray(e==null?void 0:e.actions)?r=e.actions:typeof(e==null?void 0:e.actions)=="object"&&(r=Object.entries(e.actions).map(([i,o])=>({actionKey:i,label:o}))),r.length&&(n=r.map(i=>this.getDetails(i,!1))),n}appendText(e,n,r=!0){return r&&e.length?`${e}
1214
+ ${n}`:e.length?`${e} ${n}`:n}dispose(){this.subscriptions.forEach(e=>{e()})}}class Gn{constructor(e,n){S(this,"id");S(this,"name");S(this,"avatar");S(this,"print",(e,n,r=null)=>{const i={name:this.name,avatar:this.avatar,id:this.id},o=dn(e,n);return r=r??o.timestamp,this.provider.createEntry(o.key,o.content,un.Agent,i,r)});S(this,"typing",()=>this.provider.setTypingState({name:this.name,avatar:this.avatar}));this.provider=e,this.id=n.id||Oe(),this.name=n.name,this.avatar=n.avatar}update(e){var i;const{name:n,avatar:r}=e;r===null?this.avatar=void 0:r&&(this.avatar=r),n===null?this.name=void 0:n&&(this.name=n),(i=this.provider.controller)==null||i.events.dispatch("conversation:agent-updated",{agent:this})}}class Lr{constructor(e,n,r){S(this,"subscriptions",[]);S(this,"options");S(this,"user");this.name=e,this.container=n,this.controller=r,this.user=r==null?void 0:r.user,this.options={silent:!1}}static create(e,n,r){return new Lr(e,n,r)}createAgent(e={}){var n;if(this.controller){const r=this.controller.getAgentById(e.id),i=r?new Gn(this,{...r,...e}):new Gn(this,e);return r||(n=this.controller)==null||n.events.dispatch("conversation:agent-created",{agent:i}),i}}print(e){var n;return(n=this.controller)==null?void 0:n.print(e)}setTypingState(e,n){var r;return(r=this.controller)==null?void 0:r.setTypingState(e,n)}loading(){return this.controller?this.controller.loader():()=>()=>{}}createEntry(e,n,r,i,o){var s;return(s=this.controller)==null?void 0:s.createEntry(e,n,r,i,o)}dispose(){var e;process.env.NODE_ENV!=="production"&&console.log(`conversation-provider: dispose (${this.name})`),(e=this.controller)==null||e.disposeProvider(this),this.controller=null,this.subscriptions.forEach(n=>n())}isRehydrated(){var e;return((e=this.controller)==null?void 0:e.isRehydrated())||Promise.resolve(!1)}getHistory(){var e;return((e=this.controller)==null?void 0:e.getHistory())||[]}complete(){var e;(e=this.controller)==null||e.onCompleteProvider()}setOptions(e={silent:!1}){this.options=e}onUnreadMessage(e){var n;if(this.controller){const r=(n=this.controller)==null?void 0:n.onUnreadMessage(e);return this.subscriptions.push(r),()=>{r()}}}onMounted(e){var n;if(this.controller){const r=(n=this.controller)==null?void 0:n.events.subscribe("conversation:component-mount-changed",e);return this.subscriptions.push(r),e({},this.controller.getComponentMountedState()),()=>{r()}}}}const Ko=t=>`conversation-${t}`;class Ju{constructor(){S(this,"_locking",Promise.resolve());S(this,"_locks",0)}isLocked(){return this._locks>0}lock(){this._locks+=1;let e;const n=new Promise(i=>e=()=>{this._locks-=1,i()}),r=this._locking.then(()=>e);return this._locking=this._locking.then(()=>n),r}}let Xu=class{constructor(e,n,r){S(this,"sessionStorageKey");S(this,"locker",new Ju);S(this,"initialStoredAgents",[]);this.container=e,this.conversation=n,this.enabled=r,this.sessionStorageKey=Ko(n.id),n.onStarted(async()=>{if(n.messages.length>0)return;const{agents:i}=await this.read(),o=[];i&&i.forEach(a=>{const c=n.providerIndex(a.providerName),u=c>-1?n.registeredProviders[c]:n.createProvider(a.providerName),l=new Gn(u,{name:a.name,avatar:a.avatar,id:a.id});o.push(l)});const{messages:s}=await this.read();s.forEach(a=>{switch(a.type){case"agent":{const c=o.find(u=>{var l;return u.id===((l=a.sender)==null?void 0:l.id)});c&&c.print(a.content.items||a.content,{key:a.key},a.timestamp);return}case"user":{n.user.print(a.content.items||a.content,{key:a.key},a.timestamp);return}case"system":default:n.print(a.content.items||a.content,a.timestamp)}})}),n.onMessageCreated(async(i,o)=>{this.write(o.message,"messages")}),n.events.subscribe("conversation:agent-created",async(i,o)=>{const s={id:o.agent.id,name:o.agent.name,avatar:o.agent.avatar,providerName:o.agent.provider.name};await this.write(s,"agents")}),n.events.subscribe("conversation:agent-updated",async(i,o)=>{const{agents:s}=await this.read();await this.write([...s.map(a=>a.id===o.agent.id?{...a,name:o.agent.name,avatar:o.agent.avatar}:a)],"agents","update")})}setInitialData(e){this.initialStoredAgents=e.agents}async isRehydrated(){const{messages:e}=await this.read();return e.length>0}getStoredAgent(e){if(this.enabled)return this.initialStoredAgents.find(n=>n.id===e)}async write(e,n,r="add"){if(!this.enabled)return;const i=await this.locker.lock();return nt(this.container,this.sessionStorageKey,de.Necessary).then(async o=>{if(r==="add"){const s=await this.read();if(n==="messages"&&s.messages.findIndex(c=>c.key===e.key)>-1){i();return}const a={...s};return n==="messages"?a.messages=[...a.messages,e]:n==="agents"&&(a.agents=[...a.agents,e]),o({...s,...a}).then(()=>{i()})}if(r==="update"&&n==="agents"){const s=await this.read();return o({...s,agents:e}).then(()=>{i()})}return o(e).then(()=>{i()})})}async read(){return Pe(this.container,this.sessionStorageKey).then(e=>e||{messages:[],agents:[]})}};class Qu{constructor(e){S(this,"print",(e,n,r=null)=>{const i=dn(e,n);return r=r??i.timestamp,this.controller.createEntry(i.key,i.content,un.User,void 0,r)});this.controller=e}}const Jn=async(t,e,n)=>{const r=await t.getAsync("conversation"),i=await t.getAsync("components"),o=r.controllers.find(s=>s.conversation.id===e);if(o){const s=[...o.conversation.providers];s.forEach(c=>{o.conversation.setProviderOptions(c,{silent:!0})}),o.conversation.queueProviders(s),o.conversation.setProviders([n]);const a=i.components().ofType("conversation");i.write({key:"setConversationProvider",attributes:{properties:{providers:[n]}},target:a,provider:"localStorage"})}};class ed{constructor(e){this.writer=e}update(e){const n=this.getNormalizedSettings(e);this.writer(n)}remove(){this.writer(null)}getNormalizedSettings(e){return typeof e=="string"?{body:e}:e.length>-1&&typeof e=="object"?{items:e}:e}}var un=(t=>(t.User="user",t.Agent="agent",t.System="system",t))(un||{});const dn=(t,e)=>{let n,r=(e==null?void 0:e.key)||Oe(),i=Date.now();if(Array.isArray(t)&&t.length>-1)typeof t[0]=="string"?n={items:[t]}:n={items:t};else if(typeof t=="string")n={body:t};else if(t=t||{},t.type)n={...t};else{if(n={body:t.body,actions:t.actions,title:t.title},t.key&&(r=t.key),t.timestamp&&(i=t.timestamp),typeof t.form=="function"){const o=Ie.create(r);t.form(o);const s=o.get();n.form=s}t.timestamp===null&&(i=null)}return{content:n,key:r,timestamp:i}},Hi=(t,e)=>{if(!e)return;const n=JSON.stringify(e),r=t.findIndex(i=>n===JSON.stringify(i));if(r>-1)return t.splice(r,1)};class td{constructor(e,n,r){S(this,"formHandlers",{});S(this,"user",new Qu(this));S(this,"events");S(this,"providers",[]);S(this,"active",!1);S(this,"queuedProviders",[]);S(this,"registeredProviders",[]);S(this,"loaders",0);S(this,"componentMounted",!1);S(this,"store");S(this,"messages",[]);S(this,"typingActors",[]);S(this,"conversationHistory");S(this,"print",(e,n=null)=>{const r=dn(e);return n=n??r.timestamp,this.createEntry(r.key,r.content,"system",void 0,n)});this.container=e,this.id=n;const i=e.get("$widget");this.events=i.events.createChild(this),this.store=new Xu(e,this,r.rehydrate),this.conversationHistory=new Gu(this)}setInitialStorage(e){this.store.setInitialData(e)}setProviders(e){const n=[],r=[];this.providers.reduce((i,o)=>(e.indexOf(o)===-1&&i.push(o),i),[]).forEach(i=>{const o=this.providers.indexOf(i);o>-1&&(n.push(i),this.providers.splice(o,1))}),e.forEach(i=>{this.providers.indexOf(i)===-1&&(r.push(i),this.providers.push(i))}),(r.length||n.length)&&this.events.dispatch("conversation:providers-changed",{added:r,removed:n})}createProvider(e){const n=this.providerIndex(e);if(n>-1)return this.registeredProviders[n];const r=Lr.create(e,this.container,this);return this.registeredProviders.push(r),r}providerIndex(e){return this.registeredProviders.findIndex(n=>n.name===e)}getAgentById(e){if(e)return this.store.getStoredAgent(e)}dispose(){this.conversationHistory.dispose(),this.registeredProviders.forEach(e=>e.dispose()),this.messages=[],this.events.dispatch("conversation:controller-disposed",this),this.active=!1}onDispose(e){return this.events.subscribe("conversation:controller-disposed",e)}onStarted(e){return this.events.subscribe("conversation:started",e)}onMessageCreated(e){return this.events.subscribe("conversation:message-created",e)}isRehydrated(){return this.store.isRehydrated()}disposeProvider(e){const n=this.providerIndex(e.name);n>-1&&this.registeredProviders.splice(n,1),this.events.dispatch("conversation:providers-changed",{removed:[e.name]}),this.registeredProviders.length||this.dispose()}onProvidersChange(e){return this.events.subscribe("conversation:providers-changed",e)}setComponentMountedState(e){this.componentMounted!==e&&(this.componentMounted=e,e&&(this.events.dispatch("conversation:unread-message",!1),this.events.dispatch("conversation:started",!0),this.active=!0),this.events.dispatch("conversation:component-mount-changed",e))}setProviderOptions(e,n){const r=this.providerIndex(e);r>-1&&this.registeredProviders[r].setOptions(n)}changeProvider(e){this.registeredProviders.find(r=>r.name===e)&&Jn(this.container,this.id,e)}queueProviders(e){this.queuedProviders=e}onCompleteProvider(){const e=this.queuedProviders.pop();e&&Jn(this.container,this.id,e)}getComponentMountedState(){return this.componentMounted}onUnreadMessage(e){return this.events.subscribe("conversation:unread-message",e)}createEntry(e,n,r,i,o){const s={key:e,content:n,type:r,sender:i||null,timestamp:o||o===null?o:Date.now()};this.messages.push(s),s.type==="agent"&&Hi(this.typingActors,i);const a=new ed(c=>{if(c!==null){const{timestamp:u=void 0,...l}=c;s.content=l,u&&(s.timestamp=u)}else{const u=this.messages.indexOf(s);s.content=null,u>-1&&this.messages.splice(u,1)}this.events.dispatch("conversation:message-updated",{message:s}),this.update()});return this.events.dispatch("conversation:message-created",{message:s}),this.update(),this.componentMounted||this.events.dispatch("conversation:unread-message",!0),a}update(){this.events.dispatch("conversation:updated",{messages:this.messages,loading:this.loaders>0,typingActors:this.typingActors})}getMessageStream(){return{messages:this.messages,loading:this.loaders>0,typingActors:this.typingActors}}setTypingState(e,n){return this.typingActors.indexOf(e)===-1&&(this.typingActors.push(e),this.update()),()=>{Hi(this.typingActors,e),this.update()}}loader(){this.loaders=this.loaders+1;let e=!1;return this.loaders===1&&this.update(),()=>{e||(e=!0,this.loaders=this.loaders-1,this.loaders===0&&this.update())}}submitForm(e,n){this.formHandlers[e]={...this.formHandlers[e],submit:n}}validateForm(e,n){this.formHandlers[e]={...this.formHandlers[e],validate:n}}getHistory(){return this.conversationHistory.getConversationLogs()}}const zi=t=>{const{implementation:e}=t.get("$widget"),r=(e.container.get("modals")||[]).map(i=>i.close());return Promise.all(r)};var Xn=(t=>(t.LinkList="link-list",t.Separator="separator",t.ButtonList="button-list",t.ItemList="item-list",t.Text="text",t.HTML="html",t.VideoRequest="video-request",t))(Xn||{});const nd=(t,e,n)=>t.getAsync("componentResolver").then(async r=>{(await fn.getInstance(t)).addSubscription(r.registerComponent(e,m.lazy(()=>n)))}),rd=(t,e)=>{const n=t.split("_contact");return e.widgets.get(n[0])},Mr=t=>{const e=t.get("$widget"),{name:n,implementation:r}=t.get("$widget"),i=n.indexOf("_contact")>-1?rd(n,r):e,{data:o}=t.get("$settings"),{trigger:s}=i.container.get("$settings"),a=`${n.replace("_contact-method","").replace("_contact","")}_contact-method`,c=r.widgets.get(a);return c&&!s?{chatWidget:c,mainWidget:i,data:o}:{mainWidget:i,data:o}},id=t=>{const{chatWidget:e}=Mr(t);return!!e},Bi=(t,e,n)=>{const{mainWidget:r,data:i,chatWidget:o}=Mr(t);return o?o.state==="activated"?o.invoke("open").then(()=>{o.container.getAsync("conversation").then(s=>{s.navigateToConversationIfActive(e.id).then(()=>zi(t))})}):o.activate().then(()=>{const{trigger:s}=o.container.get("$settings");return s.action="hide",o.invoke("setSettings",()=>({data:i,trigger:s,activate:!0})).then(()=>o.container.getAsync("components").then(a=>{const c=a.components().ofType("contact-method");a.write({key:"setContactMethodId",attributes:{properties:{id:e.id,guideId:e.guideId}},target:c,provider:"localStorage"});const u=a.components().ofType("conversation");a.write({key:"setConversationProvider",attributes:{properties:{providers:[e.clientName]}},target:u,provider:"localStorage"})}))}).then(()=>o.invoke("attach",{key:"contact-method",triggerDOMElement:n,withRenderState:"open"})).then(()=>(nt(o.container,"activeStickyWidget",de.Necessary,{medium:pe.Local,scope:Kt.Implementation}).then(s=>s(o.name)),o.container.getAsync("conversation").then(s=>{s.setConversationEndedBehavior(Ft.Deactivate)}).then(()=>zi(t)).then(()=>!1))):(r.container.getAsync("conversation").then(s=>s.navigateToConversationIfActive(e.id).then(()=>s.setConversationEndedBehavior(Ft.Navigate))),!o)},od=(t,e,n="conversation")=>{const{mainWidget:r,chatWidget:i}=Mr(t);return i?i.container.getAsync("router").then(o=>{o.navigate(n,{id:e.id})}):r.container.getAsync("conversation").then(o=>{var s;(s=o.setConversationEndedBehavior(Ft.Navigate))==null||s.then(()=>{r.container.getAsync("router").then(a=>{r.container.getAsync("components").then(c=>{const u=c.components().ofType("conversation");c.write({key:"setConversationProvider",attributes:{properties:{providers:[e.clientName]}},target:u,provider:"localStorage"})}).then(()=>{a.navigate(n,{id:e.id})})})})})},lt="conversations";var Ft=(t=>(t.Deactivate="deactivate",t.Navigate="navigate",t.None="none",t))(Ft||{});class fn{constructor(e,n){S(this,"events");S(this,"controllers",[]);S(this,"providers",[]);S(this,"disposeProviders",{});S(this,"subscriptions",[]);S(this,"storageWriter",null);S(this,"router",null);S(this,"buttonQuery",null);S(this,"sessionInfo",null);this.container=e,this.components=n;const r=e.get("$widget");this.events=r.events.createChild(this)}initialize(){nt(this.container,lt,de.Necessary,{medium:pe.Local}).then(e=>this.storageWriter=e),Pe(this.container,lt,pe.Local).then(e=>{this.buttonQuery=this.components.components().ofType("conversation-return-button"),e&&(this.sessionInfo=e,e.id&&e.route&&this.writeToComponents({active:!0,alert:{show:!1}}))}),this.container.getAsync("router").then(e=>this.router=e),this.events.subscribe("conversation:ended",(e,n)=>{var r,i,o;switch((r=this.sessionInfo)==null?void 0:r.conversationEndedBehavior){case"deactivate":this.container.get("$widget").deactivate();break;case"navigate":const a=(i=this.router)==null?void 0:i.getInitialRoute();a&&((o=this.router)==null||o.navigate(a.name));break}this.writeToComponents({active:!1}),this.sessionInfo=null,this.storageWriter&&this.storageWriter()})}addSubscription(e){this.subscriptions.push(e)}static getInstance(e,n="conversation"){return gt(e)(()=>e.getAsync(n).then(r=>{let i=r;return i||Yi.getInstance(e).then(o=>(i=new fn(e,o),i.initialize(),e.registerAsync(n,()=>i),i))}))}navigateToConversationIfActive(e){return Pe(this.container,lt,pe.Local).then(n=>{var r;if(n&&n.id===e&&n.route){const{name:i,params:o}=n.route;(r=this.router)==null||r.navigate(i,o)}})}setConversationEndedBehavior(e){return Pe(this.container,lt,pe.Local).then(n=>{let r=n;return r?r.conversationEndedBehavior=e:r={conversationEndedBehavior:e},this.sessionInfo=r,this.storageWriter&&this.storageWriter(this.sessionInfo)||Promise.resolve()})}async createController(e,n){const r=Ko(e),{agents:i}=await Pe(this.container,r)||{agents:[]},o=this.controllers.findIndex(a=>a.conversation.id===e);let s;return o>-1?s=this.controllers[o].conversation:s=new td(this.container,e,n),s.setInitialStorage({agents:i||[]}),s}registerProvider(e,n){const r={name:e,handler:n};this.providers.push(r),this.controllers.filter(i=>i.conversation.providers.indexOf(e)>-1).forEach(i=>{this.invokeHandler(r,i)})}registerController(e,n){const r=this.controllers.findIndex(o=>o.conversation.id===e.id);let i;if(r<0){i={conversation:e,component:n},this.controllers.push(i);const o=s=>{s&&this.providers.filter(a=>s.indexOf(a.name)>-1).forEach(a=>{this.invokeHandler(a,i)})};return this.subscriptions.push(e.onDispose((s,a)=>{const c=this.controllers.findIndex(u=>u.conversation===a);c>-1&&this.controllers.splice(c,1),this.components.components().ofType("conversation-return-button").select().writeProperties({active:!1}),this.events.dispatch("conversation:ended",{},{bubbles:!0})})),this.subscriptions.push(e.onProvidersChange((s,a)=>{const{added:c,removed:u=[]}=a;u.forEach(l=>{(this.disposeProviders[l]||[]).forEach(d=>{d()})}),o(c)})),this.subscriptions.push(e.onStarted((s,a)=>{var u,l;const c={id:e.id,route:(u=this.router)==null?void 0:u.getRouteData(),conversationEndedBehavior:(l=this.sessionInfo)==null?void 0:l.conversationEndedBehavior};this.sessionInfo=c,this.storageWriter&&this.storageWriter(c),this.writeToComponents({active:a})})),this.subscriptions.push(e.onUnreadMessage((s,a)=>{this.events.dispatch("conversation:unread-message",a),this.writeToComponents({alert:{show:a}})})),o(e.providers),!0}return i=this.controllers[r],!1}writeToComponents(e,n="conversationReturnButtonState"){this.buttonQuery&&this.components.write({key:"conversationReturnButtonState",attributes:{properties:e},target:this.buttonQuery,provider:"localStorage"})}invokeHandler(e,n){const r=e.handler(n.conversation.createProvider(e.name),n.component);r&&(this.disposeProviders[e.name]||(this.disposeProviders[e.name]=[]),this.disposeProviders[e.name].push(r))}getComponentRoute(){return Pe(this.container,lt,pe.Local).then(e=>e==null?void 0:e.route)}dispose(){Object.keys(this.disposeProviders).forEach(e=>{this.disposeProviders[e].forEach(n=>{n()})}),this.subscriptions.forEach(e=>{e()}),this.controllers=[],this.providers=[]}static async handleContactMethodClick(e,n,r,i){if(id(n)){e.preventDefault();let o=document.getElementById("humany-dynamic-anchor");o||(o=document.createElement("a"),o.setAttribute("href","#"),o.id="humany-dynamic-anchor",document.body.appendChild(o)),Bi(n,r,o)}Bi(n,r)}static async handleContactMethodSubmit(e,n){var r,i;return(i=(r=n==null?void 0:n.body.form.meta)==null?void 0:r.conversation)!=null&&i.id?Jn(e,n.body.form.meta.conversation.id,n.clientName):od(e,n)}}class sd{constructor(e){S(this,"enabled",!0);S(this,"botProviderGlobalStateKey","bot-provider-global-state");S(this,"botProviderLocalStateKey","bot-provider-local-state");S(this,"botProviderEntriesKey","bot-provider-entries");S(this,"botProviderMetaStateKey","bot-provider-conversation-meta");this.container=e}getKey(e){let n;switch(e){case"localState":n=this.botProviderLocalStateKey;break;case"globalState":n=this.botProviderGlobalStateKey;break;case"entries":n=this.botProviderEntriesKey;break;case"meta":n=this.botProviderMetaStateKey;break}return n}async read(e){const n=this.getKey(e);if(!(!this.enabled||!n))return Pe(this.container,n)}async write(e,n){const r=this.getKey(n);if(!this.enabled||!r)return;(await nt(this.container,r,de.Necessary))(e)}}var qt=(t=>(t.ContactMethod="ace-conversational-hub-contact-method",t))(qt||{});const ad=({isUser:t,items:e=[],meta:n={}})=>{const r=Oe();return{id:r,isUser:t,items:e.map(o=>({id:o.id||Oe(),isUser:t,groupId:r,message:o.message||[]})),meta:n}},cd=async(t,e,n)=>{(await(await t.getAsync("dataClient")).getClient()).parameters.set(e,n)},Rt=({messageId:t,message:e,group:n})=>({id:t,message:e,groupId:n.id,isUser:n.isUser}),ld=async(t,e,n)=>{const r=async(c,u,l=[],d)=>{var p,g;const f=Oe();switch(c.type!=="List"&&c.tags.includes("guide")&&((g=(p=c.content.hints)==null?void 0:p[0])!=null&&g.id)&&await cd(t,"LastGuideId",c.content.hints[0].id),c.type){case"Text":{const v=[];if(v.push(Rt({messageId:f,message:[Xn.HTML,{body:c.content.html}],group:u})),l.length){l.find(k=>{var N;return k.type==="List"&&((N=k.localState)==null?void 0:N.$type)==="Humany.Matching.Bots.Conversations.States.ContactState, Humany.Matching"});const y=l.find(k=>k.tags.includes("contact")&&k.type==="Contact");y&&v.push(Rt({messageId:f,message:[qt.ContactMethod,{contactMethodId:y.content.id,groupId:u.id,guideId:y.content.guideId}],group:u}))}return v}case"Contact":return[Rt({messageId:f,message:[qt.ContactMethod,{contactMethodId:c.content.id,groupId:u.id,guideId:c.content.guideId}],group:u})];case"Error":return[Rt({messageId:f,message:[Xn.HTML,{body:c.content.message||"Something went wrong."}],group:u})];default:return[]}},i=new Map([["Text",1],["Contact",2]]),o=[],s=e.sort((c,u)=>{const d=i.get(c.type)||20,f=i.get(u.type)||20;return d-f}).filter(c=>!c.relation).reduce((c,u)=>c.concat(u),[]),a=c=>typeof c.actions.selector<"u";for(const c of s){const u=e.filter(f=>f.relation===c.id&&!a(f)),l=ad({isUser:!1});(await r(c,l,u)).forEach(f=>{l.items.push(f)}),l.items.length&&o.push(l)}return o};class ud{constructor(e,n,r,i){S(this,"globalState");S(this,"localState");S(this,"clientId");S(this,"entries");this.endpoint=e,this.events=n,this.store=r,this.container=i,this.clientId=Oe(),this.entries=[]}async fetchGuide(e){const n={command:{guide:{id:e}},globalState:this.globalState,clientId:this.clientId};return await this.postEnvelope(n)}async postEnvelope(e,n){try{const r=await fetch(this.endpoint,this.getHttpOptions(e));if(!r.ok)throw r;const i=await r.json();return this.handleResponse(i,n)}catch(r){process.env.NODE_ENV!=="production"&&console.warn("Something went wrong when posting the envelope.");let i="Something went wrong";return(r.message==="Failed to fetch"||r.message==="NetworkError when attempting to fetch resource.")&&(i="Lost connection... Please try again."),this.handleResponse({entries:[{id:Oe(),type:"Error",timestamp:new Date().toISOString(),content:{message:i},actions:{},tags:[]}]})}}async handleResponse(e,n){this.entries=this.entries.concat(e.entries),this.store.write(this.entries,"entries");const r=e.entries.find(o=>o.type==="Widget");return r&&this.events.dispatch("provider:widget-entry",r.content),e.globalState&&(this.globalState=e.globalState,this.store.write(e.globalState,"globalState")),this.localState=e.entries.reduce((o,s)=>s.localState?s.localState:o,void 0),this.store.write(this.localState,"localState"),await ld(this.container,e.entries)}getHttpOptions(e){const n={method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"}};return e.funnel=this.container.get("$widget").name,e.localState=e.localState||this.localState,Object.assign({},n,{body:JSON.stringify(e),credentials:"same-origin"})}}const dd="@telia-ace/conversational-hub-bot-provider",fd="0.0.14",hd="./index.js",pd="./index.d.ts",md={".":{import:"./index.mjs",require:"./index.js"}},vd={"@telia-ace/widget-conversation":"*","@webprovisions/platform":"^1.1.4","@telia-ace/knowledge-widget-core":"*","@telia-ace/widget-utilities":"*","@telia-ace/widget-services":"*","@telia-ace/widget-core":"*","@telia-ace/knowledge-data-client":"*","@telia-ace/knowledge-widget-adapters":"*","@telia-ace/knowledge-widget-ui":"*","@telia-ace/widget-forms":"*"},gd={"@emotion/react":"11.11.1","@emotion/styled":"11.11.0",react:"18.2.0"},Be={name:dd,version:fd,main:hd,types:pd,exports:md,dependencies:vd,peerDependencies:gd},yd=async t=>{var T,x,V,R,_;const e="chub-plugin",n=t.get("$widget"),r=(_=(R=(V=(x=(T=n==null?void 0:n.container)==null?void 0:T.get("$settings"))==null?void 0:x.components)==null?void 0:V.conversation)==null?void 0:R.properties)==null?void 0:_.conversationalHubPluginSettings;let i,o,s,a=(r==null?void 0:r.connectionAttempts)??5,c,u,l;se.info((Be==null?void 0:Be.name)+" version: "+(Be==null?void 0:Be.version)),nd(t,qt.ContactMethod,Promise.resolve().then(()=>require("./contact-method-c926c46b.js")));const d=await nt(t,"conversational-hub-session",de.Necessary),f=(L,M)=>{const{knowledgeBotEndpoint:W}=M.properties();if(W)return`${W}/conversations`;const{data:U}=L.get("$settings");if(!U||!U.projection)throw new Error("Missing Knowledge Bot endpoint");return`${U.projection}/conversations`};(await fn.getInstance(t)).registerProvider(e,(L,M)=>{i=L,o=i.controller,s=i.createAgent({name:r==null?void 0:r.botName,avatar:r==null?void 0:r.avatar}),l=f(t,M);const{events:W}=t.get("$widget"),U=new sd(t);u=new ud(l,W,U,t),g();const q=()=>o.providers.includes(e);window.controller=o,M.actions.create("submit",z=>{const{events:Y}=t.get("$widget");Y.dispatch("conversational-hub-provider:form-submitted",z)}),M.actions.watch("conversation.action",(z,Y)=>(q()&&v(z),Y(z))),M.actions.watch("conversation.user-submit",(z,Y)=>{if(!q())return Y(z);y(z.text),i.user.print(z.text.replace(/</g,"&lt;").replace(/>/g,"&gt;"))})});async function g(L=!0){const M=await Pe(t,"conversational-hub-session");M!=null&&M.sessionId?c=M==null?void 0:M.sessionId:await k(r.baseUrl+"/initialize",`{"extension": "${r.extension}"}`,L)}async function v(L){await k(`${r.baseUrl}/input/${c}`,`{"type":"button_click","language":"${r.language}","content":{"button_text":"${L.label}","value":"${L.actionKey}"}}`)}async function y(L){const M={text:L};await k(`${r.baseUrl}/input/${c}`,`{"type":"text","language":"${r.language}","content":${JSON.stringify(M)}}`)}async function k(L,M,W=!0){var Y,te,oe,ne;const U=i.loading();let q,z;try{q=await fetch(L,{method:"POST",body:M}),z=await(q==null?void 0:q.json())}catch(B){B instanceof SyntaxError?se.error("Incorrect JSON format.",B):se.error("Network error: check connection or baseUrl.",B),U(),s.print(r.errorMessage);return}if(!(q!=null&&q.ok)){if(se.error(`HTTP ${q==null?void 0:q.status}.`,JSON.stringify(z)),U(),!!((Y=z==null?void 0:z.errors)!=null&&Y.filter(b=>b.code==="1003").length)&&a>0){a--,await new Promise(w=>setTimeout(w,500)),await g(!1);const b=JSON.parse(M);(te=b==null?void 0:b.content)!=null&&te.text?await y(b.content.text):(oe=b==null?void 0:b.content)!=null&&oe.action&&await v((ne=b==null?void 0:b.content)==null?void 0:ne.action)}else s.print(r.errorMessage);return}U(),a=(r==null?void 0:r.connectionAttempts)??5,z!=null&&z.action_payload&&N(z.action_payload),c=z==null?void 0:z.session_id,d({sessionId:c}),W&&j(z)}async function N(L){var q;const M=(q=L==null?void 0:L.transfer_parameters)==null?void 0:q.contactGuide,W=i.loading(),U=await u.fetchGuide(parseInt(M));if(W(),U){const z=U.concat(U);if(z.length){const Y=z[0].items.map(te=>te.message);s.print(Y)}}}function j(L){var M;L==null||L.agent_response.forEach(W=>{s.print(W.payload.text)}),(M=L==null?void 0:L.prompt)!=null&&M.items&&s.print(["button-list",{actions:L.prompt.items.map(W=>{let U;return W.type==="button"&&(U={actionKey:W.value,label:W.text}),W.type==="link"&&(U={actionKey:W.value,label:W.text,data:{href:W.url,target:(r==null?void 0:r.linkTarget)??"_blank"}}),U})}])}};exports.Button=je;exports.Confirm=Ru;exports.ConversationalHubPlugin=yd;exports.Icon=To;exports.ItemList=Jc;exports.Link=ln;exports.List=cn;exports.Paragraph=Ro;exports.StyledText=Xe;exports.SymbolBadge=ot;exports.Text=rn;exports.TextLink=_u;exports.appendClassNames=ie;exports.borderTabStyle=ye;exports.convertToStringAttributes=Ee;exports.css=G;exports.genericHtml=Wc;exports.headingElement=Je;exports.invertedHoverButton=Vc;exports.itemList=Bc;exports.keyframes=gr;exports.list=on;exports.newStyled=$;exports.paddedBorderTabStyle=zc;exports.useContainer=He;exports.useIsMounted=xr;exports.usePrevious=Co;exports.useRouter=So;