@telia-ace/conversational-hub-bot-provider 0.0.6 → 0.0.7

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.
Files changed (4) hide show
  1. package/index.js +55 -55
  2. package/index.mjs +1258 -1249
  3. package/package.json +3 -2
  4. package/types.d.ts +3 -0
package/index.js CHANGED
@@ -1,50 +1,50 @@
1
- "use strict";var zs=Object.defineProperty;var Bs=(t,e,n)=>e in t?zs(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var k=(t,e,n)=>(Bs(t,typeof e!="symbol"?e+"":e,n),n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("react/jsx-runtime"),m=require("react"),ot=require("react-dom");function Ws(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 oe=Ws(m),rn=new WeakMap;function Us(){return t=>(rn.has(t)||rn.set(t,{}),rn.get(t))}const sn=(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}},ze=t=>{const e=t.container||t;return{info:(n,...r)=>sn(e,"info",n,...r),warn:(n,...r)=>sn(e,"warning",n,...r),error:(n,...r)=>sn(e,"error",n,...r)}},ae=Us(),Wn=(()=>{let t=0;return()=>++t})(),Un=(t,e,n)=>{const r=ae(t).touchQueue.get(e);r&&r.forEach(i=>{i(n,t)})};class Fs{constructor(e,n,r,i){this.key=e,this.factory=n,this.parent=r,this.container=i,this.id=Wn(),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,Un(this.container,this.key,n),n))}return this.value}}class qs{constructor(e,n,r,i){this.key=e,this.value=n,this.parent=r,this.container=i,this.id=Wn(),this.async=!1,this.resolved=!1,this.constructed=!0,this.resolve=()=>(this.resolved=!0,Un(this.container,this.key,this.value),this.value)}}class Ys{constructor(e,n,r,i){this.key=e,this.value=n,this.parent=r,this.container=i,this.id=Wn(),this.async=!1,this.resolved=!1,this.constructed=!1,this.resolve=()=>{this.resolved=!0,this.constructed=!0;const s=this.value(this.parent,this.container);return Un(this.container,this.key,this.value),s}}}class Fn{constructor(e,n,r){this.owner=e,this.name=n,this.parent=r,ae(this).resolvers=new Map,ae(this).touchQueue=new Map,ae(this).children=[]}delete(e){const n=ae(this).resolvers,r=Array.from(n.values()).find(i=>i.id===e);return r?(ae(this).touchQueue.delete(r.key),Promise.resolve(n.delete(r.key))):this.parent?this.parent.delete(e):Promise.resolve(!1)}clear(){const e=ae(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)),ae(this).children.forEach(r=>r.clear())})}detach(){if(this.parent){const e=ae(this.parent).children,n=e.indexOf(this);n>-1&&(e.splice(n,1),delete this.parent)}}touch(e,n){const r=ae(this).resolvers.get(e);if(r&&r.constructed)Promise.resolve(r.resolve()).then(i=>{n(i,this)});else{const i=ae(this).touchQueue;let s=i.get(e);s||(s=[],i.set(e,s)),s.push(n)}return this.parent&&!r?this.parent.touch(e,n):Promise.resolve()}registerAsync(e,n){const r=ae(this).resolvers.get(e);r&&!r.async&&process.env.NODE_ENV!=="production"&&ze(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 Fs(e,n,r,this);return ae(this).resolvers.set(e,i),i.id}registerFactory(e,n){const r=ae(this).resolvers.get(e);r&&r.async&&process.env.NODE_ENV!=="production"&&ze(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 Ys(e,n,r,this);return ae(this).resolvers.set(e,i),i.id}register(e,n){const r=ae(this).resolvers.get(e);r&&r.async&&process.env.NODE_ENV!=="production"&&ze(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 qs(e,n,r,this);return ae(this).resolvers.set(e,i),i.id}get(e){const n=ae(this).resolvers.get(e);if(n)return n.async&&process.env.NODE_ENV!=="production"&&ze(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=ae(this).resolvers.get(e);if(n){if(!n.async)throw process.env.NODE_ENV!=="production"&&ze(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 Fn(e,n,this);return ae(this).children.push(r),r}}var _t=(t=>(t.Implementation="implementation",t.Widget="widget",t))(_t||{}),De=(t=>(t.Pre="pre",t.Post="post",t))(De||{});const Zs=(t,e,n,r)=>{try{const i=new e(n,r);return{name:t,invoke:(s,o)=>{let a;return i[s]&&(a=i[s].call(i,o)),Promise.resolve(a)},getInstance:()=>i}}catch(i){if(i.message&&i.message.indexOf("is not a constructor")>=0)return{name:t,invoke:s=>{let o;return s==="initialize"&&(o=e(n,r)),Promise.resolve(o)},getInstance:()=>e};throw i}};function Pr(t,e){return typeof t>"u"?e:t}class Ks{constructor(e={}){this.part=e}createCommand(e,n,r){let i;typeof n=="function"?i={scope:_t.Widget,stage:De.Post,defaultArgs:void 0,handlerResolver:n}:i={scope:Pr(n.scope,_t.Widget),stage:Pr(n.stage,De.Post),defaultArgs:n.defaultArgs,handlerResolver:r};let s=this.part;const o=e.split(".");return o.forEach((a,l)=>{l===o.length-1?s[a]||(s[a]=()=>i):s=this.part[a]=this.part[a]||{}}),this}get(){return this.part}}const Bt=t=>{const e=new Ks({});return t(e),e.get()};Bt(t=>{t.createCommand("types.register",{scope:_t.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:s}=e;let o=null,a=n,l=r;typeof n=="string"&&(o=n,a=r,l=i);const u=c=>{const{transformPluginSettings:d}=e.container.get("$environmentOptions"),f=d?d(l||{},o,e.container,a):r;try{const p=Zs(o,a,s,f);s.get("$plugins").push(p),c&&p.invoke("initialize",null)}catch(p){ze(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 Di=(t=>(t.Activating="activating",t.Loading="loading",t.Activated="activated",t.Deactivating="deactivating",t.Deactivated="deactivated",t))(Di||{});const Gs=t=>{const e=[];return[(r,i)=>{e.push(t.subscribe(r,i))},()=>{e.forEach(r=>{r()})}]};class Mi{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 Xs(this.platform,this)}}class Js{constructor(e,n,r){k(this,"actions");k(this,"subscribe");k(this,"unsubscribe");this.platform=e,this.node=n,this.actions=new qn(e,new Mi(e).withId(n.id),r);const[i,s]=Gs(this.platform.events);this.subscribe=i,this.unsubscribe=s}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 Xs{constructor(e,n,r=!0){k(this,"actions");k(this,"removes",[]);this.platform=e,this.target=n,this.clearOnDispose=r,this.actions=new qn(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 Qs=(t,e,n)=>{const r=t.concat(),i=(s,o,a)=>{let l=!0;if(r.length){const u=r.shift(),c=(d,f)=>(l=!1,i(d,Object.assign({},o,f),a));return Promise.resolve(u(s,c,a)).then(d=>({...d,cancelled:l}))}return Promise.resolve({data:s,cancelled:!1,options:o})};return i(e,{},n)};class qn{constructor(e,n,r){k(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 s=this.platform.actionsState.handlers.indexOf(r);s>-1&&this.platform.actionsState.handlers.splice(s,1)};return this.subscriptions.push(i),i}dispatch(e,n){const r=this.platform.nodes.all.concat(this.platform.nodes.detached),i={},s=this.platform.actionsState.handlers.filter(o=>o.key===e&&(!o.ns||!this.ns||o.ns===this.ns));return Promise.all(s.map(o=>{const a=r.filter(u=>o.target.match(u)&&this.target.match(u)),l=this.platform.actionsState.watchers.filter(u=>u.key===e&&(!u.ns||!this.ns||u.ns===this.ns)&&a.some(c=>u.target.match(c))).map(u=>u.fn);return Promise.all(a.map(u=>{const c=new Js(this.platform,u,this.ns);return Qs(l,n,c).then(d=>{const{data:f={},options:p,cancelled:g}=d;return Promise.resolve(g?{}:o.fn(f,p,c)).then(v=>{i[u.id]=v})})}))})).then(()=>i)}watch(e,n){let r=e,i=this.ns;const s=e.split(".");s.length>1&&(i=s[0],r=s.splice(1).join("."));const o={fn:n,target:this.target,key:r,ns:i};this.platform.actionsState.watchers.push(o);const a=()=>{const l=this.platform.actionsState.watchers.indexOf(o);l>-1&&this.platform.actionsState.watchers.splice(l,1)};return this.subscriptions.push(a),a}dispose(){this.subscriptions.forEach(e=>e())}}Bt(t=>{t.createCommand("components",e=>n=>{e.events.subscribeOnce("components:platform-created",(r,{platform:i})=>{n.handlers&&n.handlers.forEach(([s,o])=>{i.addComponentHandler(s,o)})})})});function Lt(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 s=0,o=r.length;s<o;s++)e[i].push(Lt(r[s]))}else r!==null&&typeof r=="object"?e[i]=Lt(r):e[i]=r}return e}const yt=(t,e,...n)=>typeof e=="string"?t(`[humany] ${e}`,...n):t(e,...n),We=class{constructor(){k(this,"keys",[]);k(this,"log",(e,...n)=>this.lookup(e,()=>We.log(...n)));k(this,"warn",(e,...n)=>this.lookup(e,()=>We.warn(...n)));k(this,"error",(e,...n)=>this.lookup(e,()=>We.error(...n)));k(this,"info",(e,...n)=>this.lookup(e,()=>We.info(...n)))}lookup(e,n){this.keys.indexOf(e)===-1&&(this.keys.push(e),n())}};let se=We;k(se,"log",(...e)=>yt(console.log,...e)),k(se,"warn",(...e)=>yt(console.warn,...e)),k(se,"error",(...e)=>yt(console.error,...e)),k(se,"info",(...e)=>yt(console.info,...e));const Ii=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?Ii(n):n;return e};function jr(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 eo(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/\s+/g,"-").toLowerCase()}class to{constructor(e,n){k(this,"tasks",[]);k(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(s=>(clearTimeout(r),clearTimeout(n),s));return Promise.resolve(i).then(this.next).then(()=>i.then(s=>{e.done(),e.resolve(s)})).catch(s=>(e.done(),e.reject(s),this.next()))}return Promise.resolve()})}}const bt=new WeakMap;function ht(t,e=5e3,n=1e3){return bt.has(t)||bt.set(t,new to(e,n)),r=>new Promise((i,s)=>{const o=bt.get(t);o.add(r,i,s,()=>{o.tasks.length||bt.delete(t)})})}const Pe=()=>Math.floor((1+Math.random())*65536).toString(16).substring(1);function Xe(){return Pe()+Pe()+"-"+Pe()+"-"+Pe()+"-"+Pe()+"-"+Pe()+Pe()+Pe()}function no(t){const e=[];return t.forEach(n=>{e.indexOf(n)===-1&&e.push(n)}),e}function On(t="",e=""){const n=t.split(" ").concat(e.split(" "));return no(n).join(" ").trim()}function ro(t,e){if(t){if(typeof e=="string")return e;if(Array.isArray(e)){let n="";return e.forEach(r=>n=On(n,r)),n}}}function ie(...t){let e="";return t.length&&t.forEach(n=>{typeof n=="string"?e=On(e,n):Array.isArray(n)?e=On(e,ro(...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 Ar{constructor(e,n){k(this,"id");k(this,"type");k(this,"name");k(this,"parent");k(this,"tags",[]);k(this,"children",{});k(this,"changesets",[]);k(this,"attributes");k(this,"mountCount",0);this.events=e,this.id=Xe(),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 s=[{properties:e},n];return this.changesets.push(s),this.events.dispatch("components:set-properties",{node:this}),()=>{if(r){const o=this.changesets.indexOf(s);o>-1&&(this.changesets.splice(o,1),this.events.dispatch("components:set-properties",{node:this}))}}}writeProperties(e,n={},r){const s=[{properties:e},n];return this.changesets.push(s),this.events.dispatch("components:set-properties",{node:this}),()=>{if(r){const o=this.changesets.indexOf(s);o>-1&&(this.changesets.splice(o,1),this.events.dispatch("components:set-properties",{node:this}))}}}writeLayout(e,n={},r){const s=[{layout:e},n];return this.changesets.push(s),this.events.dispatch("components:set-layout",{node:this}),()=>{if(!r)return;const o=this.changesets.indexOf(s);o>-1&&(this.changesets.splice(o,1),this.events.dispatch("components:set-layout",{node:this}))}}writeContext(e,n={},r){const s=[{context:e},n];return this.changesets.push(s),this.events.dispatch("components:set-context",{node:this}),()=>{if(!r)return;const o=this.changesets.indexOf(s);o>-1&&(this.changesets.splice(o,1),this.events.dispatch("components:set-context",{node:this}))}}getChildren(e="default"){const n=this.children[e]||[];return n.reduce((r,i,s)=>{const{order:o=s}=i.attributes.layout;return r[o]?r.splice(o,0,i):r[o]=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 Vi=(t,e,n)=>{for(let r=0,i=t.length;r<i&&n(t[r])!==!0;r++){const s=e[t[r].id]||"default",o=t[r].getChildren(s);Vi(o,e,n)}},Yn=(t,e,n)=>{if(n(t)!==!0){const r=e[t.id]||"default",i=t.children[r];Vi(i,e,n)}},on=(t,e)=>{const n=[];return Yn(t,e,r=>{n.push(r)}),n},io=(t,e,n)=>{let r;return Yn(t,e,i=>{if(n(i))return r=i,!0}),r};class so{constructor(e,n,r){k(this,"all",[]);k(this,"visible",[]);k(this,"detached",[]);this.root=e,this.switches=n,r.subscribe("components:node-appended",(i,s)=>{this.all.push(s.node),this.visible=on(e,n)}),r.subscribe("components:node-removed",(i,s)=>{let o=this.all.indexOf(s.node);o>-1&&this.all.splice(o,1),o=this.visible.indexOf(s.node),o>-1&&this.visible.splice(o,1),this.visible=on(e,n)}),r.subscribe("components:node-switched",(i,s)=>{this.visible=on(e,n)})}query(e={}){const n=[];return Yn(this.root,this.switches,r=>{Object.keys(e).every(s=>e[s]===r[s])&&n.push(r)}),n}get(e){return io(this.root,this.switches,n=>n.id===e)||this.detached.find(n=>n.id===e)}}class oo{constructor(){k(this,"handlers",new Map)}add(e,n){this.handlers.set(e,n)}get(e){return this.handlers.get(e)}}const ao=t=>{let e=t,n=0;for(;e.parent;)n=n+1,e=e.parent;return n},co=t=>t.map(([n,r])=>[ao(n),n,r]).sort(([n],[r])=>n-r).map(([,n,r])=>[n,r]),an=t=>t instanceof Date?!1:t&&typeof t=="object"&&!Array.isArray(t),Te=(t,...e)=>{if(!e.length)return t;const n=e.shift();if(an(t)&&an(n))for(const r in n)an(n[r])?(t[r]||Object.assign(t,{[r]:{}}),Te(t[r],n[r])):Object.assign(t,{[r]:n[r]});return Te(t,...e)},lo=(t,e)=>!t||t==="all"?!0:t.some(n=>e.indexOf(n)>-1),uo=(t,e)=>{let n=[],r=[],i;const s=()=>{process.env.NODE_ENV!=="production"&&console.time("state-processor.flush");const a=new Map,l=co(n.map((c,d)=>[c,r[d]])),u=(c,d)=>{var O;const f=a.get(c)||{},p=d.context&&!f.context,g=d.properties&&!f.properties,v=d.layout&&!f.layout;a.set(c,{context:f.context||p,properties:f.properties||g,layout:f.layout||v}),g&&(c.attributes.properties={}),v&&(c.attributes.layout={}),p&&(c.attributes.context=Te({},(O=c.parent)==null?void 0:O.attributes.context));const y=[],S=[],$=[];if(c.changesets.forEach(T=>{const[b,L]=T;lo(L.breakpoints,t.breakpoints)&&(g&&(typeof b.properties=="function"?y.push(b.properties):Te(c.attributes.properties,b.properties)),v&&(typeof b.layout=="function"?S.push(b.layout):Te(c.attributes.layout,b.layout)),p&&(typeof b.context=="function"?$.push(b.context):Te(c.attributes.context,b.context)))}),y.forEach(T=>{Te(c.attributes.properties,T(c.attributes.properties))}),S.forEach(T=>{Te(c.attributes.layout,T(c.attributes.layout))}),$.forEach(T=>{Te(c.attributes.context,T(c.attributes.context))}),p||d.recursive){const T=t.getBranch(c),b=d.recursive?d:{context:!!p};c.getChildren(T).forEach(L=>{u(L,b)})}};process.env.NODE_ENV!=="production"&&console.timeEnd("state-processor.flush"),l.forEach(([c,d])=>{u(c,d)}),n=[],r=[],e(a)},o=()=>{clearTimeout(i),i=setTimeout(s,0)};return(a,l)=>{const u=n.indexOf(a);if(u>-1){const c=r[u];return l.context&&(c.context=!0),l.properties&&(c.properties=!0),l.layout&&(c.layout=!0),l.recursive&&(c.recursive=!0),o()}return n.push(a),r.push(l),o()}};class Hi{constructor(e,n={}){k(this,"events");k(this,"breakpoints",[]);k(this,"nodes");k(this,"actionsState",{handlers:[],watchers:[]});k(this,"switches",{});k(this,"changesets",[]);k(this,"subscriptions",[]);k(this,"processNode");k(this,"customComponentHandler",new oo);this.providers=n,this.events=e.events.createChild(this);const r=new Ar(this.events,"root");r.name=`root-${e.name}`,this.nodes=new so(r,this.switches,this.events);const i=this.processNode=uo(this,s=>{const o=Array.from(s.keys());process.env.NODE_ENV!=="production"&&console.info(`STATE PROCESSOR: ${o.length} node(s) processed:
1
+ "use strict";var zs=Object.defineProperty;var Bs=(t,e,n)=>e in t?zs(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var O=(t,e,n)=>(Bs(t,typeof e!="symbol"?e+"":e,n),n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("react/jsx-runtime"),m=require("react"),ot=require("react-dom");function Ws(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 oe=Ws(m),rn=new WeakMap;function Us(){return t=>(rn.has(t)||rn.set(t,{}),rn.get(t))}const sn=(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}},ze=t=>{const e=t.container||t;return{info:(n,...r)=>sn(e,"info",n,...r),warn:(n,...r)=>sn(e,"warning",n,...r),error:(n,...r)=>sn(e,"error",n,...r)}},ae=Us(),Wn=(()=>{let t=0;return()=>++t})(),Un=(t,e,n)=>{const r=ae(t).touchQueue.get(e);r&&r.forEach(i=>{i(n,t)})};class Fs{constructor(e,n,r,i){this.key=e,this.factory=n,this.parent=r,this.container=i,this.id=Wn(),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,Un(this.container,this.key,n),n))}return this.value}}class qs{constructor(e,n,r,i){this.key=e,this.value=n,this.parent=r,this.container=i,this.id=Wn(),this.async=!1,this.resolved=!1,this.constructed=!0,this.resolve=()=>(this.resolved=!0,Un(this.container,this.key,this.value),this.value)}}class Ys{constructor(e,n,r,i){this.key=e,this.value=n,this.parent=r,this.container=i,this.id=Wn(),this.async=!1,this.resolved=!1,this.constructed=!1,this.resolve=()=>{this.resolved=!0,this.constructed=!0;const s=this.value(this.parent,this.container);return Un(this.container,this.key,this.value),s}}}class Fn{constructor(e,n,r){this.owner=e,this.name=n,this.parent=r,ae(this).resolvers=new Map,ae(this).touchQueue=new Map,ae(this).children=[]}delete(e){const n=ae(this).resolvers,r=Array.from(n.values()).find(i=>i.id===e);return r?(ae(this).touchQueue.delete(r.key),Promise.resolve(n.delete(r.key))):this.parent?this.parent.delete(e):Promise.resolve(!1)}clear(){const e=ae(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)),ae(this).children.forEach(r=>r.clear())})}detach(){if(this.parent){const e=ae(this.parent).children,n=e.indexOf(this);n>-1&&(e.splice(n,1),delete this.parent)}}touch(e,n){const r=ae(this).resolvers.get(e);if(r&&r.constructed)Promise.resolve(r.resolve()).then(i=>{n(i,this)});else{const i=ae(this).touchQueue;let s=i.get(e);s||(s=[],i.set(e,s)),s.push(n)}return this.parent&&!r?this.parent.touch(e,n):Promise.resolve()}registerAsync(e,n){const r=ae(this).resolvers.get(e);r&&!r.async&&process.env.NODE_ENV!=="production"&&ze(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 Fs(e,n,r,this);return ae(this).resolvers.set(e,i),i.id}registerFactory(e,n){const r=ae(this).resolvers.get(e);r&&r.async&&process.env.NODE_ENV!=="production"&&ze(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 Ys(e,n,r,this);return ae(this).resolvers.set(e,i),i.id}register(e,n){const r=ae(this).resolvers.get(e);r&&r.async&&process.env.NODE_ENV!=="production"&&ze(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 qs(e,n,r,this);return ae(this).resolvers.set(e,i),i.id}get(e){const n=ae(this).resolvers.get(e);if(n)return n.async&&process.env.NODE_ENV!=="production"&&ze(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=ae(this).resolvers.get(e);if(n){if(!n.async)throw process.env.NODE_ENV!=="production"&&ze(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 Fn(e,n,this);return ae(this).children.push(r),r}}var Lt=(t=>(t.Implementation="implementation",t.Widget="widget",t))(Lt||{}),De=(t=>(t.Pre="pre",t.Post="post",t))(De||{});const Zs=(t,e,n,r)=>{try{const i=new e(n,r);return{name:t,invoke:(s,o)=>{let a;return i[s]&&(a=i[s].call(i,o)),Promise.resolve(a)},getInstance:()=>i}}catch(i){if(i.message&&i.message.indexOf("is not a constructor")>=0)return{name:t,invoke:s=>{let o;return s==="initialize"&&(o=e(n,r)),Promise.resolve(o)},getInstance:()=>e};throw i}};function Pr(t,e){return typeof t>"u"?e:t}class Ks{constructor(e={}){this.part=e}createCommand(e,n,r){let i;typeof n=="function"?i={scope:Lt.Widget,stage:De.Post,defaultArgs:void 0,handlerResolver:n}:i={scope:Pr(n.scope,Lt.Widget),stage:Pr(n.stage,De.Post),defaultArgs:n.defaultArgs,handlerResolver:r};let s=this.part;const o=e.split(".");return o.forEach((a,l)=>{l===o.length-1?s[a]||(s[a]=()=>i):s=this.part[a]=this.part[a]||{}}),this}get(){return this.part}}const Wt=t=>{const e=new Ks({});return t(e),e.get()};Wt(t=>{t.createCommand("types.register",{scope:Lt.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:s}=e;let o=null,a=n,l=r;typeof n=="string"&&(o=n,a=r,l=i);const u=c=>{const{transformPluginSettings:d}=e.container.get("$environmentOptions"),f=d?d(l||{},o,e.container,a):r;try{const p=Zs(o,a,s,f);s.get("$plugins").push(p),c&&p.invoke("initialize",null)}catch(p){ze(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 Di=(t=>(t.Activating="activating",t.Loading="loading",t.Activated="activated",t.Deactivating="deactivating",t.Deactivated="deactivated",t))(Di||{});const Gs=t=>{const e=[];return[(r,i)=>{e.push(t.subscribe(r,i))},()=>{e.forEach(r=>{r()})}]};class Mi{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 Xs(this.platform,this)}}class Js{constructor(e,n,r){O(this,"actions");O(this,"subscribe");O(this,"unsubscribe");this.platform=e,this.node=n,this.actions=new qn(e,new Mi(e).withId(n.id),r);const[i,s]=Gs(this.platform.events);this.subscribe=i,this.unsubscribe=s}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 Xs{constructor(e,n,r=!0){O(this,"actions");O(this,"removes",[]);this.platform=e,this.target=n,this.clearOnDispose=r,this.actions=new qn(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 Qs=(t,e,n)=>{const r=t.concat(),i=(s,o,a)=>{let l=!0;if(r.length){const u=r.shift(),c=(d,f)=>(l=!1,i(d,Object.assign({},o,f),a));return Promise.resolve(u(s,c,a)).then(d=>({...d,cancelled:l}))}return Promise.resolve({data:s,cancelled:!1,options:o})};return i(e,{},n)};class qn{constructor(e,n,r){O(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 s=this.platform.actionsState.handlers.indexOf(r);s>-1&&this.platform.actionsState.handlers.splice(s,1)};return this.subscriptions.push(i),i}dispatch(e,n){const r=this.platform.nodes.all.concat(this.platform.nodes.detached),i={},s=this.platform.actionsState.handlers.filter(o=>o.key===e&&(!o.ns||!this.ns||o.ns===this.ns));return Promise.all(s.map(o=>{const a=r.filter(u=>o.target.match(u)&&this.target.match(u)),l=this.platform.actionsState.watchers.filter(u=>u.key===e&&(!u.ns||!this.ns||u.ns===this.ns)&&a.some(c=>u.target.match(c))).map(u=>u.fn);return Promise.all(a.map(u=>{const c=new Js(this.platform,u,this.ns);return Qs(l,n,c).then(d=>{const{data:f={},options:p,cancelled:g}=d;return Promise.resolve(g?{}:o.fn(f,p,c)).then(v=>{i[u.id]=v})})}))})).then(()=>i)}watch(e,n){let r=e,i=this.ns;const s=e.split(".");s.length>1&&(i=s[0],r=s.splice(1).join("."));const o={fn:n,target:this.target,key:r,ns:i};this.platform.actionsState.watchers.push(o);const a=()=>{const l=this.platform.actionsState.watchers.indexOf(o);l>-1&&this.platform.actionsState.watchers.splice(l,1)};return this.subscriptions.push(a),a}dispose(){this.subscriptions.forEach(e=>e())}}Wt(t=>{t.createCommand("components",e=>n=>{e.events.subscribeOnce("components:platform-created",(r,{platform:i})=>{n.handlers&&n.handlers.forEach(([s,o])=>{i.addComponentHandler(s,o)})})})});function Dt(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 s=0,o=r.length;s<o;s++)e[i].push(Dt(r[s]))}else r!==null&&typeof r=="object"?e[i]=Dt(r):e[i]=r}return e}const bt=(t,e,...n)=>typeof e=="string"?t(`[humany] ${e}`,...n):t(e,...n),We=class{constructor(){O(this,"keys",[]);O(this,"log",(e,...n)=>this.lookup(e,()=>We.log(...n)));O(this,"warn",(e,...n)=>this.lookup(e,()=>We.warn(...n)));O(this,"error",(e,...n)=>this.lookup(e,()=>We.error(...n)));O(this,"info",(e,...n)=>this.lookup(e,()=>We.info(...n)))}lookup(e,n){this.keys.indexOf(e)===-1&&(this.keys.push(e),n())}};let se=We;O(se,"log",(...e)=>bt(console.log,...e)),O(se,"warn",(...e)=>bt(console.warn,...e)),O(se,"error",(...e)=>bt(console.error,...e)),O(se,"info",(...e)=>bt(console.info,...e));const Ii=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?Ii(n):n;return e};function jr(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 eo(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/\s+/g,"-").toLowerCase()}class to{constructor(e,n){O(this,"tasks",[]);O(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(s=>(clearTimeout(r),clearTimeout(n),s));return Promise.resolve(i).then(this.next).then(()=>i.then(s=>{e.done(),e.resolve(s)})).catch(s=>(e.done(),e.reject(s),this.next()))}return Promise.resolve()})}}const xt=new WeakMap;function ht(t,e=5e3,n=1e3){return xt.has(t)||xt.set(t,new to(e,n)),r=>new Promise((i,s)=>{const o=xt.get(t);o.add(r,i,s,()=>{o.tasks.length||xt.delete(t)})})}const Pe=()=>Math.floor((1+Math.random())*65536).toString(16).substring(1);function Xe(){return Pe()+Pe()+"-"+Pe()+"-"+Pe()+"-"+Pe()+"-"+Pe()+Pe()+Pe()}function no(t){const e=[];return t.forEach(n=>{e.indexOf(n)===-1&&e.push(n)}),e}function On(t="",e=""){const n=t.split(" ").concat(e.split(" "));return no(n).join(" ").trim()}function ro(t,e){if(t){if(typeof e=="string")return e;if(Array.isArray(e)){let n="";return e.forEach(r=>n=On(n,r)),n}}}function ie(...t){let e="";return t.length&&t.forEach(n=>{typeof n=="string"?e=On(e,n):Array.isArray(n)?e=On(e,ro(...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 Ar{constructor(e,n){O(this,"id");O(this,"type");O(this,"name");O(this,"parent");O(this,"tags",[]);O(this,"children",{});O(this,"changesets",[]);O(this,"attributes");O(this,"mountCount",0);this.events=e,this.id=Xe(),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 s=[{properties:e},n];return this.changesets.push(s),this.events.dispatch("components:set-properties",{node:this}),()=>{if(r){const o=this.changesets.indexOf(s);o>-1&&(this.changesets.splice(o,1),this.events.dispatch("components:set-properties",{node:this}))}}}writeProperties(e,n={},r){const s=[{properties:e},n];return this.changesets.push(s),this.events.dispatch("components:set-properties",{node:this}),()=>{if(r){const o=this.changesets.indexOf(s);o>-1&&(this.changesets.splice(o,1),this.events.dispatch("components:set-properties",{node:this}))}}}writeLayout(e,n={},r){const s=[{layout:e},n];return this.changesets.push(s),this.events.dispatch("components:set-layout",{node:this}),()=>{if(!r)return;const o=this.changesets.indexOf(s);o>-1&&(this.changesets.splice(o,1),this.events.dispatch("components:set-layout",{node:this}))}}writeContext(e,n={},r){const s=[{context:e},n];return this.changesets.push(s),this.events.dispatch("components:set-context",{node:this}),()=>{if(!r)return;const o=this.changesets.indexOf(s);o>-1&&(this.changesets.splice(o,1),this.events.dispatch("components:set-context",{node:this}))}}getChildren(e="default"){const n=this.children[e]||[];return n.reduce((r,i,s)=>{const{order:o=s}=i.attributes.layout;return r[o]?r.splice(o,0,i):r[o]=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 Vi=(t,e,n)=>{for(let r=0,i=t.length;r<i&&n(t[r])!==!0;r++){const s=e[t[r].id]||"default",o=t[r].getChildren(s);Vi(o,e,n)}},Yn=(t,e,n)=>{if(n(t)!==!0){const r=e[t.id]||"default",i=t.children[r];Vi(i,e,n)}},on=(t,e)=>{const n=[];return Yn(t,e,r=>{n.push(r)}),n},io=(t,e,n)=>{let r;return Yn(t,e,i=>{if(n(i))return r=i,!0}),r};class so{constructor(e,n,r){O(this,"all",[]);O(this,"visible",[]);O(this,"detached",[]);this.root=e,this.switches=n,r.subscribe("components:node-appended",(i,s)=>{this.all.push(s.node),this.visible=on(e,n)}),r.subscribe("components:node-removed",(i,s)=>{let o=this.all.indexOf(s.node);o>-1&&this.all.splice(o,1),o=this.visible.indexOf(s.node),o>-1&&this.visible.splice(o,1),this.visible=on(e,n)}),r.subscribe("components:node-switched",(i,s)=>{this.visible=on(e,n)})}query(e={}){const n=[];return Yn(this.root,this.switches,r=>{Object.keys(e).every(s=>e[s]===r[s])&&n.push(r)}),n}get(e){return io(this.root,this.switches,n=>n.id===e)||this.detached.find(n=>n.id===e)}}class oo{constructor(){O(this,"handlers",new Map)}add(e,n){this.handlers.set(e,n)}get(e){return this.handlers.get(e)}}const ao=t=>{let e=t,n=0;for(;e.parent;)n=n+1,e=e.parent;return n},co=t=>t.map(([n,r])=>[ao(n),n,r]).sort(([n],[r])=>n-r).map(([,n,r])=>[n,r]),an=t=>t instanceof Date?!1:t&&typeof t=="object"&&!Array.isArray(t),Te=(t,...e)=>{if(!e.length)return t;const n=e.shift();if(an(t)&&an(n))for(const r in n)an(n[r])?(t[r]||Object.assign(t,{[r]:{}}),Te(t[r],n[r])):Object.assign(t,{[r]:n[r]});return Te(t,...e)},lo=(t,e)=>!t||t==="all"?!0:t.some(n=>e.indexOf(n)>-1),uo=(t,e)=>{let n=[],r=[],i;const s=()=>{process.env.NODE_ENV!=="production"&&console.time("state-processor.flush");const a=new Map,l=co(n.map((c,d)=>[c,r[d]])),u=(c,d)=>{var k;const f=a.get(c)||{},p=d.context&&!f.context,g=d.properties&&!f.properties,v=d.layout&&!f.layout;a.set(c,{context:f.context||p,properties:f.properties||g,layout:f.layout||v}),g&&(c.attributes.properties={}),v&&(c.attributes.layout={}),p&&(c.attributes.context=Te({},(k=c.parent)==null?void 0:k.attributes.context));const b=[],$=[],P=[];if(c.changesets.forEach(S=>{const[y,L]=S;lo(L.breakpoints,t.breakpoints)&&(g&&(typeof y.properties=="function"?b.push(y.properties):Te(c.attributes.properties,y.properties)),v&&(typeof y.layout=="function"?$.push(y.layout):Te(c.attributes.layout,y.layout)),p&&(typeof y.context=="function"?P.push(y.context):Te(c.attributes.context,y.context)))}),b.forEach(S=>{Te(c.attributes.properties,S(c.attributes.properties))}),$.forEach(S=>{Te(c.attributes.layout,S(c.attributes.layout))}),P.forEach(S=>{Te(c.attributes.context,S(c.attributes.context))}),p||d.recursive){const S=t.getBranch(c),y=d.recursive?d:{context:!!p};c.getChildren(S).forEach(L=>{u(L,y)})}};process.env.NODE_ENV!=="production"&&console.timeEnd("state-processor.flush"),l.forEach(([c,d])=>{u(c,d)}),n=[],r=[],e(a)},o=()=>{clearTimeout(i),i=setTimeout(s,0)};return(a,l)=>{const u=n.indexOf(a);if(u>-1){const c=r[u];return l.context&&(c.context=!0),l.properties&&(c.properties=!0),l.layout&&(c.layout=!0),l.recursive&&(c.recursive=!0),o()}return n.push(a),r.push(l),o()}};class Hi{constructor(e,n={}){O(this,"events");O(this,"breakpoints",[]);O(this,"nodes");O(this,"actionsState",{handlers:[],watchers:[]});O(this,"switches",{});O(this,"changesets",[]);O(this,"subscriptions",[]);O(this,"processNode");O(this,"customComponentHandler",new oo);this.providers=n,this.events=e.events.createChild(this);const r=new Ar(this.events,"root");r.name=`root-${e.name}`,this.nodes=new so(r,this.switches,this.events);const i=this.processNode=uo(this,s=>{const o=Array.from(s.keys());process.env.NODE_ENV!=="production"&&console.info(`STATE PROCESSOR: ${o.length} node(s) processed:
2
2
  ${o.map(a=>`${a.name||"<no name>"} (${a.id})
3
- `)}`),o.forEach(a=>{const l=s.get(a);a.parent&&a.parent.type==="root"&&this.events.dispatch("components:root-children-changed",{node:a}),l!=null&&l.context&&this.events.dispatch("components:context-changed",{node:a}),l!=null&&l.properties&&this.events.dispatch("components:properties-changed",{node:a}),l!=null&&l.layout&&this.events.dispatch("components:layout-changed",{node:a})}),this.events.dispatch("components:component-model-initialized",{},{bubbles:!0})});Promise.all(Object.keys(n).map(s=>n[s].load(this))),this.subscriptions.push(this.events.subscribe("components:node-appended",(s,o)=>{const{node:a}=o;this.changesets.forEach(l=>{const{changeset:u,target:c,removes:d}=l,[f,p]=u;c.match(o.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",(s,o)=>{i(o.node,{properties:!0,context:!0})})),this.subscriptions.push(this.events.subscribe("components:set-properties",(s,o)=>{i(o.node,{properties:!0})})),this.subscriptions.push(this.events.subscribe("components:set-context",(s,o)=>{i(o.node,{properties:!0,context:!0})})),this.subscriptions.push(this.events.subscribe("components:set-indent",(s,o)=>{i(o.node,{layout:!0})})),this.subscriptions.push(this.events.subscribe("components:set-layout",(s,o)=>{i(o.node,{layout:!0})})),this.subscriptions.push(this.events.subscribe("components:node-switched",(s,{node:o,branch:a})=>{i(o,{layout:!0,recursive:!0,properties:!0,context:!0})})),this.subscriptions.push(this.events.subscribe("components:node-removed",(s,{parentNode:o})=>{i(o,{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 Ar(this.events,e);return n.detached&&this.nodes.detached.push(r),r}components(){return new Mi(this)}actions(e,n){return new qn(this,e,n)}write(e){const{provider:n,target:r,attributes:i,options:s={},removable:o}=e,a=e.key||Xe(),u={changeset:[i,s],target:r,removes:[]};if(n){const c=this.providers[n];c.write(a,r,i,s),u.removes.push(()=>{c.remove(a)})}return this.changesets.push(u),this.nodes.all.forEach(c=>{if(r.match(c)){let d=()=>{};i.properties&&(d=c.writeProperties(i.properties,s,o)),i.context&&(d=c.writeContext(i.context,s,o)),i.layout&&(d=c.writeContext(i.layout,s,o)),u.removes.push(d)}}),()=>{if(o){u.removes.forEach(d=>d());const c=this.changesets.indexOf(u);c>-1&&this.changesets.splice(c,1)}}}addComponentHandler(e,n){this.customComponentHandler.add(e,n)}getComponentHandler(e){return this.customComponentHandler.get(e)}dispose(){this.subscriptions.forEach(e=>e())}}var zi=(t=>(t.open="open",t.closed="closed",t.hidden="hidden",t))(zi||{}),pe=(t=>(t.Cookie="cookie",t.Local="local",t.Session="session",t))(pe||{}),Wt=(t=>(t.Tenant="tenant",t.Implementation="implementation",t.Widget="widget",t))(Wt||{}),he=(t=>(t.Necessary="necessary",t.Functional="functional",t.Analytical="analytical",t.Marketing="marketing",t))(he||{});const Ut=(t,e,n,r={})=>_r(t,n).then(i=>(process.env.NODE_ENV!=="production"&&i&&se.warn(`createStorageWriter: Attempted to create storage writer using unallowed category.
3
+ `)}`),o.forEach(a=>{const l=s.get(a);a.parent&&a.parent.type==="root"&&this.events.dispatch("components:root-children-changed",{node:a}),l!=null&&l.context&&this.events.dispatch("components:context-changed",{node:a}),l!=null&&l.properties&&this.events.dispatch("components:properties-changed",{node:a}),l!=null&&l.layout&&this.events.dispatch("components:layout-changed",{node:a})}),this.events.dispatch("components:component-model-initialized",{},{bubbles:!0})});Promise.all(Object.keys(n).map(s=>n[s].load(this))),this.subscriptions.push(this.events.subscribe("components:node-appended",(s,o)=>{const{node:a}=o;this.changesets.forEach(l=>{const{changeset:u,target:c,removes:d}=l,[f,p]=u;c.match(o.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",(s,o)=>{i(o.node,{properties:!0,context:!0})})),this.subscriptions.push(this.events.subscribe("components:set-properties",(s,o)=>{i(o.node,{properties:!0})})),this.subscriptions.push(this.events.subscribe("components:set-context",(s,o)=>{i(o.node,{properties:!0,context:!0})})),this.subscriptions.push(this.events.subscribe("components:set-indent",(s,o)=>{i(o.node,{layout:!0})})),this.subscriptions.push(this.events.subscribe("components:set-layout",(s,o)=>{i(o.node,{layout:!0})})),this.subscriptions.push(this.events.subscribe("components:node-switched",(s,{node:o,branch:a})=>{i(o,{layout:!0,recursive:!0,properties:!0,context:!0})})),this.subscriptions.push(this.events.subscribe("components:node-removed",(s,{parentNode:o})=>{i(o,{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 Ar(this.events,e);return n.detached&&this.nodes.detached.push(r),r}components(){return new Mi(this)}actions(e,n){return new qn(this,e,n)}write(e){const{provider:n,target:r,attributes:i,options:s={},removable:o}=e,a=e.key||Xe(),u={changeset:[i,s],target:r,removes:[]};if(n){const c=this.providers[n];c.write(a,r,i,s),u.removes.push(()=>{c.remove(a)})}return this.changesets.push(u),this.nodes.all.forEach(c=>{if(r.match(c)){let d=()=>{};i.properties&&(d=c.writeProperties(i.properties,s,o)),i.context&&(d=c.writeContext(i.context,s,o)),i.layout&&(d=c.writeContext(i.layout,s,o)),u.removes.push(d)}}),()=>{if(o){u.removes.forEach(d=>d());const c=this.changesets.indexOf(u);c>-1&&this.changesets.splice(c,1)}}}addComponentHandler(e,n){this.customComponentHandler.add(e,n)}getComponentHandler(e){return this.customComponentHandler.get(e)}dispose(){this.subscriptions.forEach(e=>e())}}var zi=(t=>(t.open="open",t.closed="closed",t.hidden="hidden",t))(zi||{}),pe=(t=>(t.Cookie="cookie",t.Local="local",t.Session="session",t))(pe||{}),Ut=(t=>(t.Tenant="tenant",t.Implementation="implementation",t.Widget="widget",t))(Ut||{}),he=(t=>(t.Necessary="necessary",t.Functional="functional",t.Analytical="analytical",t.Marketing="marketing",t))(he||{});const pt=(t,e,n,r={})=>_r(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
6
  Options: ${JSON.stringify(r)}`),s=>(Kn(t),_r(t,n).then(o=>{if(o){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(s)}
10
- Options: ${JSON.stringify(r)}`);return}const{scope:a=Wt.Widget,medium:l=pe.Session,duration:u}=r,c=ho();return c[a][e]=Ui(s,n,u),l===pe.Cookie?yo(t,c):xo(t,l,c)})))),Le=(t,e,n=pe.Session)=>(Kn(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?go(t).then(r=>$n(r,e)):bo(t,n).then(r=>$n(r,e))),Ue=t=>!!Object.entries(t).filter(([e,n])=>typeof n<"u").length,cn=t=>Object.entries(t).filter(([e,n])=>typeof n<"u").forEach(([e,{value:n}])=>{typeof n>"u"&&delete t[e]}),Bi=(t,e)=>{const n={tenant:{...t.tenant,...e.tenant},implementation:{...t.implementation,...e.implementation},widget:{...t.widget,...e.widget}};return cn(n.tenant),cn(n.implementation),cn(n.widget),n},fo=t=>Object.entries(t).reduce((n,r)=>{const[i,s]=r;return Object.entries(s).forEach(o=>{const[a,{expiration:l}]=o;l&&n.push(l)}),n},[]).slice().sort((n,r)=>new Date(r).valueOf()-new Date(n).valueOf()).shift()||Gn(),Ft=t=>{const{name:e,implementation:{name:n,tenant:r}}=t.get("$widget");return[`humany_${r}`,`humany_${jr(r+n)}`,`humany_${jr(r+n+e)}`]},ln=t=>{const e=new RegExp(`(?:^|;)\\s?${t}=(.*?)(?:;|$)`,"i"),n=document.cookie.match(e);return n&&n[1]&&JSON.parse(n[1])||void 0},un=(t,e,n)=>{const r=`${t}=${JSON.stringify(e).trim()}`,i=`expires=${new Date(n).toUTCString()}`,s="path=/",o="SameSite=None;Secure";return document.cookie=`${r}; ${i}; ${s}; ${o}`},Zn=t=>{const[e,n,r]=Ft(t),i=ln(e)||{},s=ln(n)||{},o=ln(r)||{};return{tenant:i,implementation:s,widget:o}},Wi=(t,e)=>{const n=Zn(t),r=Bi(n,e),[i,s,o]=Ft(t),{tenant:a,implementation:l,widget:u}=r,c=fo(e),d=Gn({days:-1});un(i,a,Ue(a)?c:d),un(s,l,Ue(l)?c:d),un(o,u,Ue(u)?c:d)},Dt=(t,e)=>{const[n,r,i]=Ft(t),s=e.getItem(n)||"{}",o=e.getItem(r)||"{}",a=e.getItem(i)||"{}";return{tenant:JSON.parse(s),implementation:JSON.parse(o),widget:JSON.parse(a)}},Nn=(t,e,n)=>{const r=Dt(t,e),i=Bi(r,n),[s,o,a]=Ft(t),{tenant:l,implementation:u,widget:c}=i;Ue(l)?e.setItem(s,JSON.stringify(l)):e.removeItem(s),Ue(u)?e.setItem(o,JSON.stringify(u)):e.removeItem(o),Ue(c)?e.setItem(a,JSON.stringify(c)):e.removeItem(a)},ho=()=>({tenant:{},implementation:{},widget:{}}),po=t=>t?!!t&&new Date>new Date(t):!1,$n=(t,e)=>{const n=t.widget[e]||t.implementation[e]||t.tenant[e];return n==null?void 0:n.value},Ui=(t,e,n)=>n?{value:t,category:e,expiration:typeof n=="object"?Gn(n):n}:{value:t,category:e},mo=(t,e)=>{const n=Ii(t);return Object.entries(n).forEach(([r,i])=>{Object.entries(i).forEach(([s,o])=>{const{expiration:a,category:l}=o;(po(a)||vo(e,l))&&(i[s]=Ui(void 0,l,a))})}),n},_r=(t,e)=>Le(t,"storagePolicy",pe.Cookie).then((n=[he.Necessary])=>!!e&&n.indexOf(e)===-1),vo=(t=[he.Necessary],e)=>!!e&&t.indexOf(e)===-1,Kn=t=>{const e=Zn(t),n=Dt(t,window.localStorage),r=Dt(t,sessionStorage),i=$n(e,"storagePolicy"),[s,o,a]=[e,n,r].map(l=>mo(l,i));Wi(t,s),Nn(t,window.localStorage,o),Nn(t,window.sessionStorage,a)},Gn=(t={days:30})=>{const{days:e=0,hours:n=0,minutes:r=0,seconds:i=0}=t,s=new Date;return s.setTime(s.getTime()+n*60*60*1e3),s.setTime(s.getTime()+e*24*60*60*1e3),s.setTime(s.getTime()+r*60*1e3),s.setTime(s.getTime()+i*1e3),s.toISOString()},go=t=>ht(document)(()=>Zn(t)),yo=(t,e)=>ht(document)(()=>Wi(t,e)),bo=(t,e)=>{const n=e===pe.Local?window.localStorage:window.sessionStorage;return ht(n)(()=>Dt(t,n))},xo=(t,e,n)=>{const r=e===pe.Local?window.localStorage:window.sessionStorage;return ht(r)(()=>Nn(t,r,n))};Bt(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=Ut.Widget,medium:l=pe.Session,duration:u}=r,c=ho();return c[a][e]=Ui(s,n,u),l===pe.Cookie?yo(t,c):xo(t,l,c)})))),je=(t,e,n=pe.Session)=>(Kn(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?go(t).then(r=>$n(r,e)):bo(t,n).then(r=>$n(r,e))),Ue=t=>!!Object.entries(t).filter(([e,n])=>typeof n<"u").length,cn=t=>Object.entries(t).filter(([e,n])=>typeof n<"u").forEach(([e,{value:n}])=>{typeof n>"u"&&delete t[e]}),Bi=(t,e)=>{const n={tenant:{...t.tenant,...e.tenant},implementation:{...t.implementation,...e.implementation},widget:{...t.widget,...e.widget}};return cn(n.tenant),cn(n.implementation),cn(n.widget),n},fo=t=>Object.entries(t).reduce((n,r)=>{const[i,s]=r;return Object.entries(s).forEach(o=>{const[a,{expiration:l}]=o;l&&n.push(l)}),n},[]).slice().sort((n,r)=>new Date(r).valueOf()-new Date(n).valueOf()).shift()||Gn(),Ft=t=>{const{name:e,implementation:{name:n,tenant:r}}=t.get("$widget");return[`humany_${r}`,`humany_${jr(r+n)}`,`humany_${jr(r+n+e)}`]},ln=t=>{const e=new RegExp(`(?:^|;)\\s?${t}=(.*?)(?:;|$)`,"i"),n=document.cookie.match(e);return n&&n[1]&&JSON.parse(n[1])||void 0},un=(t,e,n)=>{const r=`${t}=${JSON.stringify(e).trim()}`,i=`expires=${new Date(n).toUTCString()}`,s="path=/",o="SameSite=None;Secure";return document.cookie=`${r}; ${i}; ${s}; ${o}`},Zn=t=>{const[e,n,r]=Ft(t),i=ln(e)||{},s=ln(n)||{},o=ln(r)||{};return{tenant:i,implementation:s,widget:o}},Wi=(t,e)=>{const n=Zn(t),r=Bi(n,e),[i,s,o]=Ft(t),{tenant:a,implementation:l,widget:u}=r,c=fo(e),d=Gn({days:-1});un(i,a,Ue(a)?c:d),un(s,l,Ue(l)?c:d),un(o,u,Ue(u)?c:d)},Mt=(t,e)=>{const[n,r,i]=Ft(t),s=e.getItem(n)||"{}",o=e.getItem(r)||"{}",a=e.getItem(i)||"{}";return{tenant:JSON.parse(s),implementation:JSON.parse(o),widget:JSON.parse(a)}},Nn=(t,e,n)=>{const r=Mt(t,e),i=Bi(r,n),[s,o,a]=Ft(t),{tenant:l,implementation:u,widget:c}=i;Ue(l)?e.setItem(s,JSON.stringify(l)):e.removeItem(s),Ue(u)?e.setItem(o,JSON.stringify(u)):e.removeItem(o),Ue(c)?e.setItem(a,JSON.stringify(c)):e.removeItem(a)},ho=()=>({tenant:{},implementation:{},widget:{}}),po=t=>t?!!t&&new Date>new Date(t):!1,$n=(t,e)=>{const n=t.widget[e]||t.implementation[e]||t.tenant[e];return n==null?void 0:n.value},Ui=(t,e,n)=>n?{value:t,category:e,expiration:typeof n=="object"?Gn(n):n}:{value:t,category:e},mo=(t,e)=>{const n=Ii(t);return Object.entries(n).forEach(([r,i])=>{Object.entries(i).forEach(([s,o])=>{const{expiration:a,category:l}=o;(po(a)||vo(e,l))&&(i[s]=Ui(void 0,l,a))})}),n},_r=(t,e)=>je(t,"storagePolicy",pe.Cookie).then((n=[he.Necessary])=>!!e&&n.indexOf(e)===-1),vo=(t=[he.Necessary],e)=>!!e&&t.indexOf(e)===-1,Kn=t=>{const e=Zn(t),n=Mt(t,window.localStorage),r=Mt(t,sessionStorage),i=$n(e,"storagePolicy"),[s,o,a]=[e,n,r].map(l=>mo(l,i));Wi(t,s),Nn(t,window.localStorage,o),Nn(t,window.sessionStorage,a)},Gn=(t={days:30})=>{const{days:e=0,hours:n=0,minutes:r=0,seconds:i=0}=t,s=new Date;return s.setTime(s.getTime()+n*60*60*1e3),s.setTime(s.getTime()+e*24*60*60*1e3),s.setTime(s.getTime()+r*60*1e3),s.setTime(s.getTime()+i*1e3),s.toISOString()},go=t=>ht(document)(()=>Zn(t)),yo=(t,e)=>ht(document)(()=>Wi(t,e)),bo=(t,e)=>{const n=e===pe.Local?window.localStorage:window.sessionStorage;return ht(n)(()=>Mt(t,n))},xo=(t,e,n)=>{const r=e===pe.Local?window.localStorage:window.sessionStorage;return ht(r)(()=>Nn(t,r,n))};Wt(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(s=>typeof s=="number"||typeof s=="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=[he.Necessary,he.Functional,he.Analytical,he.Marketing].filter((s,o,a)=>typeof r=="number"?r>o:typeof r=="string"?a.indexOf(r)+1>o:Array.isArray(r)?r.findIndex(l=>l===o+1||l===s)>-1:!0);return i.indexOf(he.Necessary)===-1&&(process.env.NODE_ENV!=="production"&&se.warn(`storagePolicyConfigurationApi: passed consent does not include category: '${he.Necessary}'. Consent has to atleast include the '${he.Necessary}' category.
13
- Passed consent: ${JSON.stringify(r)}`),i.unshift(he.Necessary)),Ut(e.container,"storagePolicy",he.Necessary,{medium:pe.Cookie,scope:Wt.Tenant,duration:{days:365}}).then(s=>s(i)).then(()=>{Kn(e.container),e.events.dispatch("storage:policy-changed",i)})}})});function Ee(t,e){return t.hints&&t.hints.indexOf(e)>-1}function wo(t){return t.constraints&&t.constraints.verifyValue}function Eo(t){return t.constraints&&t.constraints.required}function Co(t){const e=t.hints.filter(n=>n.indexOf("=")>-1&&n.split("=")[0]==="linkText")[0]||null;return e?e.split("=")[1]:null}function So(t){const e=t.hints.filter(n=>n.indexOf("=")>-1&&n.split("=")[0]==="url")[0]||null;return e?e.split("=")[1]:null}function ko(t){const e=t.hints.filter(n=>n.indexOf("=")>-1&&n.split("=")[0]==="availableHours")[0]||null;return e?e.split("=")[1]||[]:[]}function Oo(t){const e=t.hints.filter(n=>n.indexOf("=")>-1&&n.split("=")[0]==="minuteInterval")[0]||null;return e?e.split("=")[1]||[]:[]}function Lr(t){return t.components?"Fieldset":Ee(t,"fullname")?"Name":Ee(t,"address")?"Address":Ee(t,"dropdown")?"DropDownList":Ee(t,"checkbox")?"CheckboxList":Ee(t,"radio")?"RadioButtonList":Ee(t,"email")?"Email":Ee(t,"agreement")?"Agreement":Ee(t,"phonenumber")?"PhoneNumber":Ee(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 No(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 $o(t){return t.children||t.components||t.groups?"object":"string"}class Jn{constructor(e,n,r,i=r.getErrorMessage,s=r.getGeneralErrors){k(this,"children",[]);k(this,"isValid");k(this,"schema");k(this,"id");if(this.name=e,this.source=n,this.parent=r,this.getErrorMessage=i,this.getGeneralErrors=s,this.isValid=!this.getGeneralErrors(this.source)&&!this.getErrorMessage(this.source),!this.isValid){let o=this.parent;for(;o;)o.isValid=!1,o=o.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 Jn(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=$o(this.source),e.title=this.source.title,e.evaluate=this.source.hasDependants,e.isValid=this.isValid,this.source.options&&(Ee(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(),Eo(n.source)&&e.required.push(n.name)})),e}createLayout(){const e={};if(this.source){const r=Lr(this.source)==="Fieldset";e["ui:component"]=Lr(this.source),e["ui:placeholder"]=No(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"]=Co(this.source),e["ui:link"]=So(this.source)),e["ui:component"]==="PhoneNumber"&&(e["ui:options"]=this.source.options),e["ui:component"]==="Date"&&(e["ui:availableHours"]=ko(this.source),e["ui:minuteInterval"]=Oo(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"?Ee(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 To(t,e,n,r){const i=new Jn(t,{title:"",groups:e.groups},null,n,r);return i.id=t,i}let Ro=class{constructor(e,n,r){k(this,"root");this.validationSource=r,this.getErrorMessage=this.getErrorMessage.bind(this),this.getGeneralErrors=this.getGeneralErrors.bind(this),this.validationSource=r,this.root=To(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 Po=(t,e)=>{const n=t.hints.find(r=>r.startsWith(e+"="));if(n)return n.substr(e.length+1)};function jo(t,e,n,r){const i=Lt(e),s=n?Lt(n):void 0,o=new Ro(t,i,s),a=o.root;return(i.Groups||i.groups).forEach((l,u)=>{const c=l.title||"group",d=l.name||`${c}[${u}]`,f=a.createChild(d,l),p=l.components;p&&p.forEach((g,v)=>{const y=g.name||`${g.title}[${v}]`,S=f.createChild(y,g);if(wo(g)){const $=Po(g,"verifyLabel")||`Confirm ${g.title}`;f.createChild(`${y}$VerifyValue`,{...g,name:`${g.name}$VerifyValue`,title:$,value:i.extra&&i.extra[`${g.name}$VerifyValue`]||""})}g.children&&g.children.forEach(($,O)=>{const T=$.name||`${$.title}[${O}]`;S.createChild(T,$)})})}),o.create()}const xt=(t,e)=>typeof t>"u"?e:t,Ao=(t,e)=>{let n=t["ui:order"];n||(n=[],t["ui:order"]=n),n.push(e)},_o=(t,e)=>`${t.schema.id}$${e}`,Lo=(t,e)=>(t.schema.properties=xt(t.schema.properties,{}),t.schema.properties[e.name]={id:e.id||_o(t,e.name),type:e.type,title:e.title,isValid:!0,required:[],evaluate:xt(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),Ao(t.layout,e.name),t.layout=xt(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=xt(t.data,{}),t.data[e.name]=e.type==="object"?{}:e.value,t),Do=(t,e)=>Object.assign({},{schema:t.schema.properties[e],layout:t.layout[e],data:t.data[e]}),Mo=(t,e,n)=>{const r=Do(t,e),i=new Me(r);return n(i),i},Fi=(t,e,n,r,i=[])=>{Object.keys(t).forEach(s=>{s===e&&i.indexOf(s)===-1&&(t[s]=n,i.push(s),r&&(t["data:options"]=t["data:options"]||{},t["data:options"][s]=r)),typeof t[s]=="object"&&Fi(t[s],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)})},Nt=(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=>{Nt(t[r],e,n)})},$t=(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&&$t(t.properties[r],e,n)}),e===null&&n(t)};class Me{constructor(e){this.form=e}createComponent(e,n){return this.form=Lo(this.form,e),n&&Mo(this.form,e.name,n),new Me(this.form)}setData(e,n,r){Fi(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;Nt(this.form.layout,null,i=>i["ui:error"]=!1),$t(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=>{Nt(this.form.layout,i,s=>s["ui:error"]=r[i]),$t(this.form.schema,i,s=>s.isValid=!1)})}else Nt(this.form.layout,null,n=>n["ui:error"]=!1),$t(this.form.schema,null,n=>n.isValid=!0);return new Me(this.form)}get(){return this.form}static create(e){const n={schema:{id:e,type:"object",title:"",isValid:!0,required:[]},layout:{},data:{}};return new Me(n)}static fromLegacyForm(e,n,r,i){const s=jo(e,n,r);return new Me(s)}}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 Yi(t){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var Io=/^((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)-.*))$/,Vo=Yi(function(t){return Io.test(t)||t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)<91});function Ho(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 zo(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 Bo=function(){function t(n){var r=this;this._insertTag=function(i){var s;r.tags.length===0?r.insertionPoint?s=r.insertionPoint.nextSibling:r.prepend?s=r.container.firstChild:s=r.before:s=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,s),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(zo(this));var i=this.tags[this.tags.length-1];if(process.env.NODE_ENV!=="production"){var s=r.charCodeAt(0)===64&&r.charCodeAt(1)===105;s&&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||!s}if(this.isSpeedy){var o=Ho(i);try{o.insertRule(r,o.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}(),fe="-ms-",Mt="-moz-",Y="-webkit-",Xn="comm",Qn="rule",er="decl",Wo="@import",Zi="@keyframes",Uo="@layer",Fo=Math.abs,qt=String.fromCharCode,qo=Object.assign;function Yo(t,e){return de(t,0)^45?(((e<<2^de(t,0))<<2^de(t,1))<<2^de(t,2))<<2^de(t,3):0}function Ki(t){return t.trim()}function Zo(t,e){return(t=e.exec(t))?t[0]:t}function Z(t,e,n){return t.replace(e,n)}function Tn(t,e){return t.indexOf(e)}function de(t,e){return t.charCodeAt(e)|0}function ut(t,e,n){return t.slice(e,n)}function Oe(t){return t.length}function tr(t){return t.length}function wt(t,e){return e.push(t),t}function Ko(t,e){return t.map(e).join("")}var Yt=1,Ye=1,Gi=0,ge=0,ce=0,Qe="";function Zt(t,e,n,r,i,s,o){return{value:t,root:e,parent:n,type:r,props:i,children:s,line:Yt,column:Ye,length:o,return:""}}function rt(t,e){return qo(Zt("",null,null,"",null,null,0),t,{length:-t.length},e)}function Go(){return ce}function Jo(){return ce=ge>0?de(Qe,--ge):0,Ye--,ce===10&&(Ye=1,Yt--),ce}function xe(){return ce=ge<Gi?de(Qe,ge++):0,Ye++,ce===10&&(Ye=1,Yt++),ce}function Ne(){return de(Qe,ge)}function Tt(){return ge}function pt(t,e){return ut(Qe,t,e)}function dt(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 Ji(t){return Yt=Ye=1,Gi=Oe(Qe=t),ge=0,[]}function Xi(t){return Qe="",t}function Rt(t){return Ki(pt(ge-1,Rn(t===91?t+2:t===40?t+1:t)))}function Xo(t){for(;(ce=Ne())&&ce<33;)xe();return dt(t)>2||dt(ce)>3?"":" "}function Qo(t,e){for(;--e&&xe()&&!(ce<48||ce>102||ce>57&&ce<65||ce>70&&ce<97););return pt(t,Tt()+(e<6&&Ne()==32&&xe()==32))}function Rn(t){for(;xe();)switch(ce){case t:return ge;case 34:case 39:t!==34&&t!==39&&Rn(ce);break;case 40:t===41&&Rn(t);break;case 92:xe();break}return ge}function ea(t,e){for(;xe()&&t+ce!==47+10;)if(t+ce===42+42&&Ne()===47)break;return"/*"+pt(e,ge-1)+"*"+qt(t===47?t:xe())}function ta(t){for(;!dt(Ne());)xe();return pt(t,ge)}function na(t){return Xi(Pt("",null,null,null,[""],t=Ji(t),0,[0],t))}function Pt(t,e,n,r,i,s,o,a,l){for(var u=0,c=0,d=o,f=0,p=0,g=0,v=1,y=1,S=1,$=0,O="",T=i,b=s,L=r,P=O;y;)switch(g=$,$=xe()){case 40:if(g!=108&&de(P,d-1)==58){Tn(P+=Z(Rt($),"&","&\f"),"&\f")!=-1&&(S=-1);break}case 34:case 39:case 91:P+=Rt($);break;case 9:case 10:case 13:case 32:P+=Xo(g);break;case 92:P+=Qo(Tt()-1,7);continue;case 47:switch(Ne()){case 42:case 47:wt(ra(ea(xe(),Tt()),e,n),l);break;default:P+="/"}break;case 123*v:a[u++]=Oe(P)*S;case 125*v:case 59:case 0:switch($){case 0:case 125:y=0;case 59+c:S==-1&&(P=Z(P,/\f/g,"")),p>0&&Oe(P)-d&&wt(p>32?Mr(P+";",r,n,d-1):Mr(Z(P," ","")+";",r,n,d-2),l);break;case 59:P+=";";default:if(wt(L=Dr(P,e,n,u,c,i,a,O,T=[],b=[],d),s),$===123)if(c===0)Pt(P,e,L,L,T,s,d,a,b);else switch(f===99&&de(P,3)===110?100:f){case 100:case 108:case 109:case 115:Pt(t,L,L,r&&wt(Dr(t,L,L,0,0,i,a,O,i,T=[],d),b),i,b,d,a,r?T:b);break;default:Pt(P,L,L,L,[""],b,0,a,b)}}u=c=p=0,v=S=1,O=P="",d=o;break;case 58:d=1+Oe(P),p=g;default:if(v<1){if($==123)--v;else if($==125&&v++==0&&Jo()==125)continue}switch(P+=qt($),$*v){case 38:S=c>0?1:(P+="\f",-1);break;case 44:a[u++]=(Oe(P)-1)*S,S=1;break;case 64:Ne()===45&&(P+=Rt(xe())),f=Ne(),c=d=Oe(O=P+=ta(Tt())),$++;break;case 45:g===45&&Oe(P)==2&&(v=0)}}return s}function Dr(t,e,n,r,i,s,o,a,l,u,c){for(var d=i-1,f=i===0?s:[""],p=tr(f),g=0,v=0,y=0;g<r;++g)for(var S=0,$=ut(t,d+1,d=Fo(v=o[g])),O=t;S<p;++S)(O=Ki(v>0?f[S]+" "+$:Z($,/&\f/g,f[S])))&&(l[y++]=O);return Zt(t,e,n,i===0?Qn:a,l,u,c)}function ra(t,e,n){return Zt(t,e,n,Xn,qt(Go()),ut(t,2,-2),0)}function Mr(t,e,n,r){return Zt(t,e,n,er,ut(t,0,r),ut(t,r+1,-1),r)}function Fe(t,e){for(var n="",r=tr(t),i=0;i<r;i++)n+=e(t[i],i,t,e)||"";return n}function ia(t,e,n,r){switch(t.type){case Uo:if(t.children.length)break;case Wo:case er:return t.return=t.return||t.value;case Xn:return"";case Zi:return t.return=t.value+"{"+Fe(t.children,r)+"}";case Qn:t.value=t.props.join(",")}return Oe(n=Fe(t.children,r))?t.return=t.value+"{"+n+"}":""}function sa(t){var e=tr(t);return function(n,r,i,s){for(var o="",a=0;a<e;a++)o+=t[a](n,r,i,s)||"";return o}}function oa(t){return function(e){e.root||(e=e.return)&&t(e)}}var aa=function(e,n,r){for(var i=0,s=0;i=s,s=Ne(),i===38&&s===12&&(n[r]=1),!dt(s);)xe();return pt(e,ge)},ca=function(e,n){var r=-1,i=44;do switch(dt(i)){case 0:i===38&&Ne()===12&&(n[r]=1),e[r]+=aa(ge-1,n,r);break;case 2:e[r]+=Rt(i);break;case 4:if(i===44){e[++r]=Ne()===58?"&\f":"",n[r]=e[r].length;break}default:e[r]+=qt(i)}while(i=xe());return e},la=function(e,n){return Xi(ca(Ji(e),n))},Ir=new WeakMap,ua=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&&!Ir.get(r))&&!i){Ir.set(e,!0);for(var s=[],o=la(n,s),a=r.props,l=0,u=0;l<o.length;l++)for(var c=0;c<a.length;c++,u++)e.props[u]=s[l]?o[l].replace(/&\f/g,a[c]):a[c]+" "+o[l]}}},da=function(e){if(e.type==="decl"){var n=e.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(e.return="",e.value="")}},fa="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",ha=function(e){return e.type==="comm"&&e.children.indexOf(fa)>-1},pa=function(e){return function(n,r,i){if(!(n.type!=="rule"||e.compat)){var s=n.value.match(/(:first|:nth|:nth-last)-child/g);if(s){for(var o=!!n.parent,a=o?n.parent.children:i,l=a.length-1;l>=0;l--){var u=a[l];if(u.line<n.line)break;if(u.column<n.column){if(ha(u))return;break}}s.forEach(function(c){console.error('The pseudo class "'+c+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+c.split("-child")[0]+'-of-type".')})}}}},Qi=function(e){return e.type.charCodeAt(1)===105&&e.type.charCodeAt(0)===64},ma=function(e,n){for(var r=e-1;r>=0;r--)if(!Qi(n[r]))return!0;return!1},Vr=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},va=function(e,n,r){Qi(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."),Vr(e)):ma(n,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),Vr(e)))};function es(t,e){switch(Yo(t,e)){case 5103:return Y+"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 Y+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return Y+t+Mt+t+fe+t+t;case 6828:case 4268:return Y+t+fe+t+t;case 6165:return Y+t+fe+"flex-"+t+t;case 5187:return Y+t+Z(t,/(\w+).+(:[^]+)/,Y+"box-$1$2"+fe+"flex-$1$2")+t;case 5443:return Y+t+fe+"flex-item-"+Z(t,/flex-|-self/,"")+t;case 4675:return Y+t+fe+"flex-line-pack"+Z(t,/align-content|flex-|-self/,"")+t;case 5548:return Y+t+fe+Z(t,"shrink","negative")+t;case 5292:return Y+t+fe+Z(t,"basis","preferred-size")+t;case 6060:return Y+"box-"+Z(t,"-grow","")+Y+t+fe+Z(t,"grow","positive")+t;case 4554:return Y+Z(t,/([^-])(transform)/g,"$1"+Y+"$2")+t;case 6187:return Z(Z(Z(t,/(zoom-|grab)/,Y+"$1"),/(image-set)/,Y+"$1"),t,"")+t;case 5495:case 3959:return Z(t,/(image-set\([^]*)/,Y+"$1$`$1");case 4968:return Z(Z(t,/(.+:)(flex-)?(.*)/,Y+"box-pack:$3"+fe+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Y+t+t;case 4095:case 3583:case 4068:case 2532:return Z(t,/(.+)-inline(.+)/,Y+"$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(Oe(t)-1-e>6)switch(de(t,e+1)){case 109:if(de(t,e+4)!==45)break;case 102:return Z(t,/(.+:)(.+)-([^]+)/,"$1"+Y+"$2-$3$1"+Mt+(de(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~Tn(t,"stretch")?es(Z(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(de(t,e+1)!==115)break;case 6444:switch(de(t,Oe(t)-3-(~Tn(t,"!important")&&10))){case 107:return Z(t,":",":"+Y)+t;case 101:return Z(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Y+(de(t,14)===45?"inline-":"")+"box$3$1"+Y+"$2$3$1"+fe+"$2box$3")+t}break;case 5936:switch(de(t,e+11)){case 114:return Y+t+fe+Z(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return Y+t+fe+Z(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return Y+t+fe+Z(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return Y+t+fe+t+t}return t}var ga=function(e,n,r,i){if(e.length>-1&&!e.return)switch(e.type){case er:e.return=es(e.value,e.length);break;case Zi:return Fe([rt(e,{value:Z(e.value,"@","@"+Y)})],i);case Qn:if(e.length)return Ko(e.props,function(s){switch(Zo(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Fe([rt(e,{props:[Z(s,/:(read-\w+)/,":"+Mt+"$1")]})],i);case"::placeholder":return Fe([rt(e,{props:[Z(s,/:(plac\w+)/,":"+Y+"input-$1")]}),rt(e,{props:[Z(s,/:(plac\w+)/,":"+Mt+"$1")]}),rt(e,{props:[Z(s,/:(plac\w+)/,fe+"input-$1")]})],i)}return""})}},ya=[ga],ba=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||ya;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 s={},o,a=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(v){for(var y=v.getAttribute("data-emotion").split(" "),S=1;S<y.length;S++)s[y[S]]=!0;a.push(v)});var l,u=[ua,da];process.env.NODE_ENV!=="production"&&u.push(pa({get compat(){return g.compat}}),va);{var c,d=[ia,process.env.NODE_ENV!=="production"?function(v){v.root||(v.return?c.insert(v.return):v.value&&v.type!==Xn&&c.insert(v.value+"{}"))}:oa(function(v){c.insert(v)})],f=sa(u.concat(i,d)),p=function(y){return Fe(na(y),f)};l=function(y,S,$,O){c=$,process.env.NODE_ENV!=="production"&&S.map!==void 0&&(c={insert:function(b){$.insert(b+S.map)}}),p(y?y+"{"+S.styles+"}":S.styles),O&&(g.inserted[S.name]=!0)}}var g={key:n,sheet:new Bo({key:n,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:l};return g.sheet.hydrate(a),g},xa=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function nr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function ts(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 s=Function.bind.apply(e,i);return new s}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 Pn={exports:{}},K={};/** @license React v16.13.1
13
+ Passed consent: ${JSON.stringify(r)}`),i.unshift(he.Necessary)),pt(e.container,"storagePolicy",he.Necessary,{medium:pe.Cookie,scope:Ut.Tenant,duration:{days:365}}).then(s=>s(i)).then(()=>{Kn(e.container),e.events.dispatch("storage:policy-changed",i)})}})});function Ee(t,e){return t.hints&&t.hints.indexOf(e)>-1}function wo(t){return t.constraints&&t.constraints.verifyValue}function Eo(t){return t.constraints&&t.constraints.required}function Co(t){const e=t.hints.filter(n=>n.indexOf("=")>-1&&n.split("=")[0]==="linkText")[0]||null;return e?e.split("=")[1]:null}function So(t){const e=t.hints.filter(n=>n.indexOf("=")>-1&&n.split("=")[0]==="url")[0]||null;return e?e.split("=")[1]:null}function ko(t){const e=t.hints.filter(n=>n.indexOf("=")>-1&&n.split("=")[0]==="availableHours")[0]||null;return e?e.split("=")[1]||[]:[]}function Oo(t){const e=t.hints.filter(n=>n.indexOf("=")>-1&&n.split("=")[0]==="minuteInterval")[0]||null;return e?e.split("=")[1]||[]:[]}function Lr(t){return t.components?"Fieldset":Ee(t,"fullname")?"Name":Ee(t,"address")?"Address":Ee(t,"dropdown")?"DropDownList":Ee(t,"checkbox")?"CheckboxList":Ee(t,"radio")?"RadioButtonList":Ee(t,"email")?"Email":Ee(t,"agreement")?"Agreement":Ee(t,"phonenumber")?"PhoneNumber":Ee(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 No(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 $o(t){return t.children||t.components||t.groups?"object":"string"}class Jn{constructor(e,n,r,i=r.getErrorMessage,s=r.getGeneralErrors){O(this,"children",[]);O(this,"isValid");O(this,"schema");O(this,"id");if(this.name=e,this.source=n,this.parent=r,this.getErrorMessage=i,this.getGeneralErrors=s,this.isValid=!this.getGeneralErrors(this.source)&&!this.getErrorMessage(this.source),!this.isValid){let o=this.parent;for(;o;)o.isValid=!1,o=o.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 Jn(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=$o(this.source),e.title=this.source.title,e.evaluate=this.source.hasDependants,e.isValid=this.isValid,this.source.options&&(Ee(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(),Eo(n.source)&&e.required.push(n.name)})),e}createLayout(){const e={};if(this.source){const r=Lr(this.source)==="Fieldset";e["ui:component"]=Lr(this.source),e["ui:placeholder"]=No(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"]=Co(this.source),e["ui:link"]=So(this.source)),e["ui:component"]==="PhoneNumber"&&(e["ui:options"]=this.source.options),e["ui:component"]==="Date"&&(e["ui:availableHours"]=ko(this.source),e["ui:minuteInterval"]=Oo(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"?Ee(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 To(t,e,n,r){const i=new Jn(t,{title:"",groups:e.groups},null,n,r);return i.id=t,i}let Ro=class{constructor(e,n,r){O(this,"root");this.validationSource=r,this.getErrorMessage=this.getErrorMessage.bind(this),this.getGeneralErrors=this.getGeneralErrors.bind(this),this.validationSource=r,this.root=To(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 Po=(t,e)=>{const n=t.hints.find(r=>r.startsWith(e+"="));if(n)return n.substr(e.length+1)};function jo(t,e,n,r){const i=Dt(e),s=n?Dt(n):void 0,o=new Ro(t,i,s),a=o.root;return(i.Groups||i.groups).forEach((l,u)=>{const c=l.title||"group",d=l.name||`${c}[${u}]`,f=a.createChild(d,l),p=l.components;p&&p.forEach((g,v)=>{const b=g.name||`${g.title}[${v}]`,$=f.createChild(b,g);if(wo(g)){const P=Po(g,"verifyLabel")||`Confirm ${g.title}`;f.createChild(`${b}$VerifyValue`,{...g,name:`${g.name}$VerifyValue`,title:P,value:i.extra&&i.extra[`${g.name}$VerifyValue`]||""})}g.children&&g.children.forEach((P,k)=>{const S=P.name||`${P.title}[${k}]`;$.createChild(S,P)})})}),o.create()}const wt=(t,e)=>typeof t>"u"?e:t,Ao=(t,e)=>{let n=t["ui:order"];n||(n=[],t["ui:order"]=n),n.push(e)},_o=(t,e)=>`${t.schema.id}$${e}`,Lo=(t,e)=>(t.schema.properties=wt(t.schema.properties,{}),t.schema.properties[e.name]={id:e.id||_o(t,e.name),type:e.type,title:e.title,isValid:!0,required:[],evaluate:wt(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),Ao(t.layout,e.name),t.layout=wt(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=wt(t.data,{}),t.data[e.name]=e.type==="object"?{}:e.value,t),Do=(t,e)=>Object.assign({},{schema:t.schema.properties[e],layout:t.layout[e],data:t.data[e]}),Mo=(t,e,n)=>{const r=Do(t,e),i=new Me(r);return n(i),i},Fi=(t,e,n,r,i=[])=>{Object.keys(t).forEach(s=>{s===e&&i.indexOf(s)===-1&&(t[s]=n,i.push(s),r&&(t["data:options"]=t["data:options"]||{},t["data:options"][s]=r)),typeof t[s]=="object"&&Fi(t[s],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)})},$t=(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=>{$t(t[r],e,n)})},Tt=(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&&Tt(t.properties[r],e,n)}),e===null&&n(t)};class Me{constructor(e){this.form=e}createComponent(e,n){return this.form=Lo(this.form,e),n&&Mo(this.form,e.name,n),new Me(this.form)}setData(e,n,r){Fi(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;$t(this.form.layout,null,i=>i["ui:error"]=!1),Tt(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=>{$t(this.form.layout,i,s=>s["ui:error"]=r[i]),Tt(this.form.schema,i,s=>s.isValid=!1)})}else $t(this.form.layout,null,n=>n["ui:error"]=!1),Tt(this.form.schema,null,n=>n.isValid=!0);return new Me(this.form)}get(){return this.form}static create(e){const n={schema:{id:e,type:"object",title:"",isValid:!0,required:[]},layout:{},data:{}};return new Me(n)}static fromLegacyForm(e,n,r,i){const s=jo(e,n,r);return new Me(s)}}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 Yi(t){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var Io=/^((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)-.*))$/,Vo=Yi(function(t){return Io.test(t)||t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)<91});function Ho(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 zo(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 Bo=function(){function t(n){var r=this;this._insertTag=function(i){var s;r.tags.length===0?r.insertionPoint?s=r.insertionPoint.nextSibling:r.prepend?s=r.container.firstChild:s=r.before:s=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,s),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(zo(this));var i=this.tags[this.tags.length-1];if(process.env.NODE_ENV!=="production"){var s=r.charCodeAt(0)===64&&r.charCodeAt(1)===105;s&&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||!s}if(this.isSpeedy){var o=Ho(i);try{o.insertRule(r,o.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}(),fe="-ms-",It="-moz-",Z="-webkit-",Xn="comm",Qn="rule",er="decl",Wo="@import",Zi="@keyframes",Uo="@layer",Fo=Math.abs,qt=String.fromCharCode,qo=Object.assign;function Yo(t,e){return de(t,0)^45?(((e<<2^de(t,0))<<2^de(t,1))<<2^de(t,2))<<2^de(t,3):0}function Ki(t){return t.trim()}function Zo(t,e){return(t=e.exec(t))?t[0]:t}function K(t,e,n){return t.replace(e,n)}function Tn(t,e){return t.indexOf(e)}function de(t,e){return t.charCodeAt(e)|0}function ut(t,e,n){return t.slice(e,n)}function Oe(t){return t.length}function tr(t){return t.length}function Et(t,e){return e.push(t),t}function Ko(t,e){return t.map(e).join("")}var Yt=1,Ye=1,Gi=0,ge=0,ce=0,Qe="";function Zt(t,e,n,r,i,s,o){return{value:t,root:e,parent:n,type:r,props:i,children:s,line:Yt,column:Ye,length:o,return:""}}function rt(t,e){return qo(Zt("",null,null,"",null,null,0),t,{length:-t.length},e)}function Go(){return ce}function Jo(){return ce=ge>0?de(Qe,--ge):0,Ye--,ce===10&&(Ye=1,Yt--),ce}function xe(){return ce=ge<Gi?de(Qe,ge++):0,Ye++,ce===10&&(Ye=1,Yt++),ce}function Ne(){return de(Qe,ge)}function Rt(){return ge}function mt(t,e){return ut(Qe,t,e)}function dt(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 Ji(t){return Yt=Ye=1,Gi=Oe(Qe=t),ge=0,[]}function Xi(t){return Qe="",t}function Pt(t){return Ki(mt(ge-1,Rn(t===91?t+2:t===40?t+1:t)))}function Xo(t){for(;(ce=Ne())&&ce<33;)xe();return dt(t)>2||dt(ce)>3?"":" "}function Qo(t,e){for(;--e&&xe()&&!(ce<48||ce>102||ce>57&&ce<65||ce>70&&ce<97););return mt(t,Rt()+(e<6&&Ne()==32&&xe()==32))}function Rn(t){for(;xe();)switch(ce){case t:return ge;case 34:case 39:t!==34&&t!==39&&Rn(ce);break;case 40:t===41&&Rn(t);break;case 92:xe();break}return ge}function ea(t,e){for(;xe()&&t+ce!==47+10;)if(t+ce===42+42&&Ne()===47)break;return"/*"+mt(e,ge-1)+"*"+qt(t===47?t:xe())}function ta(t){for(;!dt(Ne());)xe();return mt(t,ge)}function na(t){return Xi(jt("",null,null,null,[""],t=Ji(t),0,[0],t))}function jt(t,e,n,r,i,s,o,a,l){for(var u=0,c=0,d=o,f=0,p=0,g=0,v=1,b=1,$=1,P=0,k="",S=i,y=s,L=r,T=k;b;)switch(g=P,P=xe()){case 40:if(g!=108&&de(T,d-1)==58){Tn(T+=K(Pt(P),"&","&\f"),"&\f")!=-1&&($=-1);break}case 34:case 39:case 91:T+=Pt(P);break;case 9:case 10:case 13:case 32:T+=Xo(g);break;case 92:T+=Qo(Rt()-1,7);continue;case 47:switch(Ne()){case 42:case 47:Et(ra(ea(xe(),Rt()),e,n),l);break;default:T+="/"}break;case 123*v:a[u++]=Oe(T)*$;case 125*v:case 59:case 0:switch(P){case 0:case 125:b=0;case 59+c:$==-1&&(T=K(T,/\f/g,"")),p>0&&Oe(T)-d&&Et(p>32?Mr(T+";",r,n,d-1):Mr(K(T," ","")+";",r,n,d-2),l);break;case 59:T+=";";default:if(Et(L=Dr(T,e,n,u,c,i,a,k,S=[],y=[],d),s),P===123)if(c===0)jt(T,e,L,L,S,s,d,a,y);else switch(f===99&&de(T,3)===110?100:f){case 100:case 108:case 109:case 115:jt(t,L,L,r&&Et(Dr(t,L,L,0,0,i,a,k,i,S=[],d),y),i,y,d,a,r?S:y);break;default:jt(T,L,L,L,[""],y,0,a,y)}}u=c=p=0,v=$=1,k=T="",d=o;break;case 58:d=1+Oe(T),p=g;default:if(v<1){if(P==123)--v;else if(P==125&&v++==0&&Jo()==125)continue}switch(T+=qt(P),P*v){case 38:$=c>0?1:(T+="\f",-1);break;case 44:a[u++]=(Oe(T)-1)*$,$=1;break;case 64:Ne()===45&&(T+=Pt(xe())),f=Ne(),c=d=Oe(k=T+=ta(Rt())),P++;break;case 45:g===45&&Oe(T)==2&&(v=0)}}return s}function Dr(t,e,n,r,i,s,o,a,l,u,c){for(var d=i-1,f=i===0?s:[""],p=tr(f),g=0,v=0,b=0;g<r;++g)for(var $=0,P=ut(t,d+1,d=Fo(v=o[g])),k=t;$<p;++$)(k=Ki(v>0?f[$]+" "+P:K(P,/&\f/g,f[$])))&&(l[b++]=k);return Zt(t,e,n,i===0?Qn:a,l,u,c)}function ra(t,e,n){return Zt(t,e,n,Xn,qt(Go()),ut(t,2,-2),0)}function Mr(t,e,n,r){return Zt(t,e,n,er,ut(t,0,r),ut(t,r+1,-1),r)}function Fe(t,e){for(var n="",r=tr(t),i=0;i<r;i++)n+=e(t[i],i,t,e)||"";return n}function ia(t,e,n,r){switch(t.type){case Uo:if(t.children.length)break;case Wo:case er:return t.return=t.return||t.value;case Xn:return"";case Zi:return t.return=t.value+"{"+Fe(t.children,r)+"}";case Qn:t.value=t.props.join(",")}return Oe(n=Fe(t.children,r))?t.return=t.value+"{"+n+"}":""}function sa(t){var e=tr(t);return function(n,r,i,s){for(var o="",a=0;a<e;a++)o+=t[a](n,r,i,s)||"";return o}}function oa(t){return function(e){e.root||(e=e.return)&&t(e)}}var aa=function(e,n,r){for(var i=0,s=0;i=s,s=Ne(),i===38&&s===12&&(n[r]=1),!dt(s);)xe();return mt(e,ge)},ca=function(e,n){var r=-1,i=44;do switch(dt(i)){case 0:i===38&&Ne()===12&&(n[r]=1),e[r]+=aa(ge-1,n,r);break;case 2:e[r]+=Pt(i);break;case 4:if(i===44){e[++r]=Ne()===58?"&\f":"",n[r]=e[r].length;break}default:e[r]+=qt(i)}while(i=xe());return e},la=function(e,n){return Xi(ca(Ji(e),n))},Ir=new WeakMap,ua=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&&!Ir.get(r))&&!i){Ir.set(e,!0);for(var s=[],o=la(n,s),a=r.props,l=0,u=0;l<o.length;l++)for(var c=0;c<a.length;c++,u++)e.props[u]=s[l]?o[l].replace(/&\f/g,a[c]):a[c]+" "+o[l]}}},da=function(e){if(e.type==="decl"){var n=e.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(e.return="",e.value="")}},fa="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",ha=function(e){return e.type==="comm"&&e.children.indexOf(fa)>-1},pa=function(e){return function(n,r,i){if(!(n.type!=="rule"||e.compat)){var s=n.value.match(/(:first|:nth|:nth-last)-child/g);if(s){for(var o=!!n.parent,a=o?n.parent.children:i,l=a.length-1;l>=0;l--){var u=a[l];if(u.line<n.line)break;if(u.column<n.column){if(ha(u))return;break}}s.forEach(function(c){console.error('The pseudo class "'+c+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+c.split("-child")[0]+'-of-type".')})}}}},Qi=function(e){return e.type.charCodeAt(1)===105&&e.type.charCodeAt(0)===64},ma=function(e,n){for(var r=e-1;r>=0;r--)if(!Qi(n[r]))return!0;return!1},Vr=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},va=function(e,n,r){Qi(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."),Vr(e)):ma(n,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),Vr(e)))};function es(t,e){switch(Yo(t,e)){case 5103:return Z+"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 Z+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return Z+t+It+t+fe+t+t;case 6828:case 4268:return Z+t+fe+t+t;case 6165:return Z+t+fe+"flex-"+t+t;case 5187:return Z+t+K(t,/(\w+).+(:[^]+)/,Z+"box-$1$2"+fe+"flex-$1$2")+t;case 5443:return Z+t+fe+"flex-item-"+K(t,/flex-|-self/,"")+t;case 4675:return Z+t+fe+"flex-line-pack"+K(t,/align-content|flex-|-self/,"")+t;case 5548:return Z+t+fe+K(t,"shrink","negative")+t;case 5292:return Z+t+fe+K(t,"basis","preferred-size")+t;case 6060:return Z+"box-"+K(t,"-grow","")+Z+t+fe+K(t,"grow","positive")+t;case 4554:return Z+K(t,/([^-])(transform)/g,"$1"+Z+"$2")+t;case 6187:return K(K(K(t,/(zoom-|grab)/,Z+"$1"),/(image-set)/,Z+"$1"),t,"")+t;case 5495:case 3959:return K(t,/(image-set\([^]*)/,Z+"$1$`$1");case 4968:return K(K(t,/(.+:)(flex-)?(.*)/,Z+"box-pack:$3"+fe+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Z+t+t;case 4095:case 3583:case 4068:case 2532:return K(t,/(.+)-inline(.+)/,Z+"$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(Oe(t)-1-e>6)switch(de(t,e+1)){case 109:if(de(t,e+4)!==45)break;case 102:return K(t,/(.+:)(.+)-([^]+)/,"$1"+Z+"$2-$3$1"+It+(de(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~Tn(t,"stretch")?es(K(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(de(t,e+1)!==115)break;case 6444:switch(de(t,Oe(t)-3-(~Tn(t,"!important")&&10))){case 107:return K(t,":",":"+Z)+t;case 101:return K(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Z+(de(t,14)===45?"inline-":"")+"box$3$1"+Z+"$2$3$1"+fe+"$2box$3")+t}break;case 5936:switch(de(t,e+11)){case 114:return Z+t+fe+K(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return Z+t+fe+K(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return Z+t+fe+K(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return Z+t+fe+t+t}return t}var ga=function(e,n,r,i){if(e.length>-1&&!e.return)switch(e.type){case er:e.return=es(e.value,e.length);break;case Zi:return Fe([rt(e,{value:K(e.value,"@","@"+Z)})],i);case Qn:if(e.length)return Ko(e.props,function(s){switch(Zo(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Fe([rt(e,{props:[K(s,/:(read-\w+)/,":"+It+"$1")]})],i);case"::placeholder":return Fe([rt(e,{props:[K(s,/:(plac\w+)/,":"+Z+"input-$1")]}),rt(e,{props:[K(s,/:(plac\w+)/,":"+It+"$1")]}),rt(e,{props:[K(s,/:(plac\w+)/,fe+"input-$1")]})],i)}return""})}},ya=[ga],ba=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 b=v.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var i=e.stylisPlugins||ya;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 s={},o,a=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(v){for(var b=v.getAttribute("data-emotion").split(" "),$=1;$<b.length;$++)s[b[$]]=!0;a.push(v)});var l,u=[ua,da];process.env.NODE_ENV!=="production"&&u.push(pa({get compat(){return g.compat}}),va);{var c,d=[ia,process.env.NODE_ENV!=="production"?function(v){v.root||(v.return?c.insert(v.return):v.value&&v.type!==Xn&&c.insert(v.value+"{}"))}:oa(function(v){c.insert(v)})],f=sa(u.concat(i,d)),p=function(b){return Fe(na(b),f)};l=function(b,$,P,k){c=P,process.env.NODE_ENV!=="production"&&$.map!==void 0&&(c={insert:function(y){P.insert(y+$.map)}}),p(b?b+"{"+$.styles+"}":$.styles),k&&(g.inserted[$.name]=!0)}}var g={key:n,sheet:new Bo({key:n,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:l};return g.sheet.hydrate(a),g},xa=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function nr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function ts(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 s=Function.bind.apply(e,i);return new s}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 Pn={exports:{}},G={};/** @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 Hr;function wa(){if(Hr)return K;Hr=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,s=t?Symbol.for("react.profiler"):60114,o=t?Symbol.for("react.provider"):60109,a=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,u=t?Symbol.for("react.concurrent_mode"):60111,c=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,S=t?Symbol.for("react.responder"):60118,$=t?Symbol.for("react.scope"):60119;function O(b){if(typeof b=="object"&&b!==null){var L=b.$$typeof;switch(L){case e:switch(b=b.type,b){case l:case u:case r:case s:case i:case d:return b;default:switch(b=b&&b.$$typeof,b){case a:case c:case g:case p:case o:return b;default:return L}}case n:return L}}}function T(b){return O(b)===u}return K.AsyncMode=l,K.ConcurrentMode=u,K.ContextConsumer=a,K.ContextProvider=o,K.Element=e,K.ForwardRef=c,K.Fragment=r,K.Lazy=g,K.Memo=p,K.Portal=n,K.Profiler=s,K.StrictMode=i,K.Suspense=d,K.isAsyncMode=function(b){return T(b)||O(b)===l},K.isConcurrentMode=T,K.isContextConsumer=function(b){return O(b)===a},K.isContextProvider=function(b){return O(b)===o},K.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===e},K.isForwardRef=function(b){return O(b)===c},K.isFragment=function(b){return O(b)===r},K.isLazy=function(b){return O(b)===g},K.isMemo=function(b){return O(b)===p},K.isPortal=function(b){return O(b)===n},K.isProfiler=function(b){return O(b)===s},K.isStrictMode=function(b){return O(b)===i},K.isSuspense=function(b){return O(b)===d},K.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===r||b===u||b===s||b===i||b===d||b===f||typeof b=="object"&&b!==null&&(b.$$typeof===g||b.$$typeof===p||b.$$typeof===o||b.$$typeof===a||b.$$typeof===c||b.$$typeof===y||b.$$typeof===S||b.$$typeof===$||b.$$typeof===v)},K.typeOf=O,K}var G={};/** @license React v16.13.1
22
+ */var Hr;function wa(){if(Hr)return G;Hr=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,s=t?Symbol.for("react.profiler"):60114,o=t?Symbol.for("react.provider"):60109,a=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,u=t?Symbol.for("react.concurrent_mode"):60111,c=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,b=t?Symbol.for("react.fundamental"):60117,$=t?Symbol.for("react.responder"):60118,P=t?Symbol.for("react.scope"):60119;function k(y){if(typeof y=="object"&&y!==null){var L=y.$$typeof;switch(L){case e:switch(y=y.type,y){case l:case u:case r:case s:case i:case d:return y;default:switch(y=y&&y.$$typeof,y){case a:case c:case g:case p:case o:return y;default:return L}}case n:return L}}}function S(y){return k(y)===u}return G.AsyncMode=l,G.ConcurrentMode=u,G.ContextConsumer=a,G.ContextProvider=o,G.Element=e,G.ForwardRef=c,G.Fragment=r,G.Lazy=g,G.Memo=p,G.Portal=n,G.Profiler=s,G.StrictMode=i,G.Suspense=d,G.isAsyncMode=function(y){return S(y)||k(y)===l},G.isConcurrentMode=S,G.isContextConsumer=function(y){return k(y)===a},G.isContextProvider=function(y){return k(y)===o},G.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===e},G.isForwardRef=function(y){return k(y)===c},G.isFragment=function(y){return k(y)===r},G.isLazy=function(y){return k(y)===g},G.isMemo=function(y){return k(y)===p},G.isPortal=function(y){return k(y)===n},G.isProfiler=function(y){return k(y)===s},G.isStrictMode=function(y){return k(y)===i},G.isSuspense=function(y){return k(y)===d},G.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===r||y===u||y===s||y===i||y===d||y===f||typeof y=="object"&&y!==null&&(y.$$typeof===g||y.$$typeof===p||y.$$typeof===o||y.$$typeof===a||y.$$typeof===c||y.$$typeof===b||y.$$typeof===$||y.$$typeof===P||y.$$typeof===v)},G.typeOf=k,G}var J={};/** @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 zr;function Ea(){return zr||(zr=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,s=t?Symbol.for("react.profiler"):60114,o=t?Symbol.for("react.provider"):60109,a=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,u=t?Symbol.for("react.concurrent_mode"):60111,c=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,S=t?Symbol.for("react.responder"):60118,$=t?Symbol.for("react.scope"):60119;function O(A){return typeof A=="string"||typeof A=="function"||A===r||A===u||A===s||A===i||A===d||A===f||typeof A=="object"&&A!==null&&(A.$$typeof===g||A.$$typeof===p||A.$$typeof===o||A.$$typeof===a||A.$$typeof===c||A.$$typeof===y||A.$$typeof===S||A.$$typeof===$||A.$$typeof===v)}function T(A){if(typeof A=="object"&&A!==null){var ke=A.$$typeof;switch(ke){case e:var gt=A.type;switch(gt){case l:case u:case r:case s:case i:case d:return gt;default:var Rr=gt&&gt.$$typeof;switch(Rr){case a:case c:case g:case p:case o:return Rr;default:return ke}}case n:return ke}}}var b=l,L=u,P=a,_=o,z=e,W=c,F=r,H=g,ne=p,Q=n,re=s,ee=i,le=d,X=!1;function V(A){return X||(X=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),x(A)||T(A)===l}function x(A){return T(A)===u}function w(A){return T(A)===a}function C(A){return T(A)===o}function N(A){return typeof A=="object"&&A!==null&&A.$$typeof===e}function j(A){return T(A)===c}function I(A){return T(A)===r}function D(A){return T(A)===g}function M(A){return T(A)===p}function B(A){return T(A)===n}function q(A){return T(A)===s}function U(A){return T(A)===i}function me(A){return T(A)===d}G.AsyncMode=b,G.ConcurrentMode=L,G.ContextConsumer=P,G.ContextProvider=_,G.Element=z,G.ForwardRef=W,G.Fragment=F,G.Lazy=H,G.Memo=ne,G.Portal=Q,G.Profiler=re,G.StrictMode=ee,G.Suspense=le,G.isAsyncMode=V,G.isConcurrentMode=x,G.isContextConsumer=w,G.isContextProvider=C,G.isElement=N,G.isForwardRef=j,G.isFragment=I,G.isLazy=D,G.isMemo=M,G.isPortal=B,G.isProfiler=q,G.isStrictMode=U,G.isSuspense=me,G.isValidElementType=O,G.typeOf=T}()),G}process.env.NODE_ENV==="production"?Pn.exports=wa():Pn.exports=Ea();var Kt=Pn.exports,ns=Kt,Ca={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Sa={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},rs={};rs[ns.ForwardRef]=Ca;rs[ns.Memo]=Sa;var ka=!0;function rr(t,e,n){var r="";return n.split(" ").forEach(function(i){t[i]!==void 0?e.push(t[i]+";"):r+=i+" "}),r}var Gt=function(e,n,r){var i=e.key+"-"+n.name;(r===!1||ka===!1)&&e.registered[i]===void 0&&(e.registered[i]=n.styles)},Jt=function(e,n,r){Gt(e,n,r);var i=e.key+"-"+n.name;if(e.inserted[n.name]===void 0){var s=n;do e.insert(n===s?"."+i:"",s,e.sheet,!0),s=s.next;while(s!==void 0)}};function Oa(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 Na={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},Br=`You have illegal escape sequence in your template literal, most likely inside content's property value.
29
+ */var zr;function Ea(){return zr||(zr=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,s=t?Symbol.for("react.profiler"):60114,o=t?Symbol.for("react.provider"):60109,a=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,u=t?Symbol.for("react.concurrent_mode"):60111,c=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,b=t?Symbol.for("react.fundamental"):60117,$=t?Symbol.for("react.responder"):60118,P=t?Symbol.for("react.scope"):60119;function k(_){return typeof _=="string"||typeof _=="function"||_===r||_===u||_===s||_===i||_===d||_===f||typeof _=="object"&&_!==null&&(_.$$typeof===g||_.$$typeof===p||_.$$typeof===o||_.$$typeof===a||_.$$typeof===c||_.$$typeof===b||_.$$typeof===$||_.$$typeof===P||_.$$typeof===v)}function S(_){if(typeof _=="object"&&_!==null){var ke=_.$$typeof;switch(ke){case e:var yt=_.type;switch(yt){case l:case u:case r:case s:case i:case d:return yt;default:var Rr=yt&&yt.$$typeof;switch(Rr){case a:case c:case g:case p:case o:return Rr;default:return ke}}case n:return ke}}}var y=l,L=u,T=a,A=o,H=e,B=c,Y=r,q=g,Q=p,W=n,te=s,ne=i,le=d,ee=!1;function V(_){return ee||(ee=!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.")),x(_)||S(_)===l}function x(_){return S(_)===u}function w(_){return S(_)===a}function C(_){return S(_)===o}function N(_){return typeof _=="object"&&_!==null&&_.$$typeof===e}function j(_){return S(_)===c}function I(_){return S(_)===r}function D(_){return S(_)===g}function M(_){return S(_)===p}function z(_){return S(_)===n}function F(_){return S(_)===s}function U(_){return S(_)===i}function me(_){return S(_)===d}J.AsyncMode=y,J.ConcurrentMode=L,J.ContextConsumer=T,J.ContextProvider=A,J.Element=H,J.ForwardRef=B,J.Fragment=Y,J.Lazy=q,J.Memo=Q,J.Portal=W,J.Profiler=te,J.StrictMode=ne,J.Suspense=le,J.isAsyncMode=V,J.isConcurrentMode=x,J.isContextConsumer=w,J.isContextProvider=C,J.isElement=N,J.isForwardRef=j,J.isFragment=I,J.isLazy=D,J.isMemo=M,J.isPortal=z,J.isProfiler=F,J.isStrictMode=U,J.isSuspense=me,J.isValidElementType=k,J.typeOf=S}()),J}process.env.NODE_ENV==="production"?Pn.exports=wa():Pn.exports=Ea();var Kt=Pn.exports,ns=Kt,Ca={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Sa={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},rs={};rs[ns.ForwardRef]=Ca;rs[ns.Memo]=Sa;var ka=!0;function rr(t,e,n){var r="";return n.split(" ").forEach(function(i){t[i]!==void 0?e.push(t[i]+";"):r+=i+" "}),r}var Gt=function(e,n,r){var i=e.key+"-"+n.name;(r===!1||ka===!1)&&e.registered[i]===void 0&&(e.registered[i]=n.styles)},Jt=function(e,n,r){Gt(e,n,r);var i=e.key+"-"+n.name;if(e.inserted[n.name]===void 0){var s=n;do e.insert(n===s?"."+i:"",s,e.sheet,!0),s=s.next;while(s!==void 0)}};function Oa(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 Na={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},Br=`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`,$a="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",Ta=/[A-Z]|^ms/g,is=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ir=function(e){return e.charCodeAt(1)===45},Wr=function(e){return e!=null&&typeof e!="boolean"},dn=Yi(function(t){return ir(t)?t:t.replace(Ta,"-$&").toLowerCase()}),It=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(is,function(r,i,s){return Ce={name:i,styles:s,next:Ce},i})}return Na[e]!==1&&!ir(e)&&typeof n=="number"&&n!==0?n+"px":n};if(process.env.NODE_ENV!=="production"){var Ra=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,Pa=["normal","none","initial","inherit","unset"],ja=It,Aa=/^-ms-/,_a=/-(.)/g,Ur={};It=function(e,n){if(e==="content"&&(typeof n!="string"||Pa.indexOf(n)===-1&&!Ra.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=ja(e,n);return r!==""&&!ir(e)&&e.indexOf("-")!==-1&&Ur[e]===void 0&&(Ur[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(Aa,"ms-").replace(_a,function(i,s){return s.toUpperCase()})+"?")),r}}var ss="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function ft(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(ss);return n}switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Ce={name:n.name,styles:n.styles,next:Ce},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Ce={name:r.name,styles:r.styles,next:Ce},r=r.next;var i=n.styles+";";return process.env.NODE_ENV!=="production"&&n.map!==void 0&&(i+=n.map),i}return La(t,e,n)}case"function":{if(t!==void 0){var s=Ce,o=n(t);return Ce=s,ft(t,e,o)}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=[],l=n.replace(is,function(c,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,["`"+l+"`"]).join(`
32
+ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,$a="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",Ta=/[A-Z]|^ms/g,is=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ir=function(e){return e.charCodeAt(1)===45},Wr=function(e){return e!=null&&typeof e!="boolean"},dn=Yi(function(t){return ir(t)?t:t.replace(Ta,"-$&").toLowerCase()}),Vt=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(is,function(r,i,s){return Ce={name:i,styles:s,next:Ce},i})}return Na[e]!==1&&!ir(e)&&typeof n=="number"&&n!==0?n+"px":n};if(process.env.NODE_ENV!=="production"){var Ra=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,Pa=["normal","none","initial","inherit","unset"],ja=Vt,Aa=/^-ms-/,_a=/-(.)/g,Ur={};Vt=function(e,n){if(e==="content"&&(typeof n!="string"||Pa.indexOf(n)===-1&&!Ra.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=ja(e,n);return r!==""&&!ir(e)&&e.indexOf("-")!==-1&&Ur[e]===void 0&&(Ur[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(Aa,"ms-").replace(_a,function(i,s){return s.toUpperCase()})+"?")),r}}var ss="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function ft(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(ss);return n}switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Ce={name:n.name,styles:n.styles,next:Ce},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Ce={name:r.name,styles:r.styles,next:Ce},r=r.next;var i=n.styles+";";return process.env.NODE_ENV!=="production"&&n.map!==void 0&&(i+=n.map),i}return La(t,e,n)}case"function":{if(t!==void 0){var s=Ce,o=n(t);return Ce=s,ft(t,e,o)}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=[],l=n.replace(is,function(c,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,["`"+l+"`"]).join(`
33
33
  `)+`
34
34
 
35
35
  You should wrap it with \`css\` like this:
36
36
 
37
- `+("css`"+l+"`"))}break}if(e==null)return n;var u=e[n];return u!==void 0?u:n}function La(t,e,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=ft(t,e,n[i])+";";else for(var s in n){var o=n[s];if(typeof o!="object")e!=null&&e[o]!==void 0?r+=s+"{"+e[o]+"}":Wr(o)&&(r+=dn(s)+":"+It(s,o)+";");else{if(s==="NO_COMPONENT_SELECTOR"&&process.env.NODE_ENV!=="production")throw new Error(ss);if(Array.isArray(o)&&typeof o[0]=="string"&&(e==null||e[o[0]]===void 0))for(var a=0;a<o.length;a++)Wr(o[a])&&(r+=dn(s)+":"+It(s,o[a])+";");else{var l=ft(t,e,o);switch(s){case"animation":case"animationName":{r+=dn(s)+":"+l+";";break}default:process.env.NODE_ENV!=="production"&&s==="undefined"&&console.error($a),r+=s+"{"+l+"}"}}}}return r}var Fr=/label:\s*([^\s;\n{]+)\s*(;|$)/g,os;process.env.NODE_ENV!=="production"&&(os=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var Ce,Ze=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,s="";Ce=void 0;var o=e[0];o==null||o.raw===void 0?(i=!1,s+=ft(r,n,o)):(process.env.NODE_ENV!=="production"&&o[0]===void 0&&console.error(Br),s+=o[0]);for(var a=1;a<e.length;a++)s+=ft(r,n,e[a]),i&&(process.env.NODE_ENV!=="production"&&o[a]===void 0&&console.error(Br),s+=o[a]);var l;process.env.NODE_ENV!=="production"&&(s=s.replace(os,function(f){return l=f,""})),Fr.lastIndex=0;for(var u="",c;(c=Fr.exec(s))!==null;)u+="-"+c[1];var d=Oa(s)+u;return process.env.NODE_ENV!=="production"?{name:d,styles:s,map:l,next:Ce,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:s,next:Ce}},Da=function(e){return e()},as=oe["useInsertionEffect"]?oe["useInsertionEffect"]:!1,sr=as||Da,qr=as||oe.useLayoutEffect,Ma={}.hasOwnProperty,or=oe.createContext(typeof HTMLElement<"u"?ba({key:"css"}):null);process.env.NODE_ENV!=="production"&&(or.displayName="EmotionCacheContext");or.Provider;var Xt=function(e){return m.forwardRef(function(n,r){var i=m.useContext(or);return e(n,i,r)})},mt=oe.createContext({});process.env.NODE_ENV!=="production"&&(mt.displayName="EmotionThemeContext");var Yr="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Zr="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",Ia=function(e){var n=e.cache,r=e.serialized,i=e.isStringTag;return Gt(n,r,i),sr(function(){return Jt(n,r,i)}),null},Va=Xt(function(t,e,n){var r=t.css;typeof r=="string"&&e.registered[r]!==void 0&&(r=e.registered[r]);var i=t[Yr],s=[r],o="";typeof t.className=="string"?o=rr(e.registered,s,t.className):t.className!=null&&(o=t.className+" ");var a=Ze(s,void 0,oe.useContext(mt));if(process.env.NODE_ENV!=="production"&&a.name.indexOf("-")===-1){var l=t[Zr];l&&(a=Ze([a,"label:"+l+";"]))}o+=e.key+"-"+a.name;var u={};for(var c in t)Ma.call(t,c)&&c!=="css"&&c!==Yr&&(process.env.NODE_ENV==="production"||c!==Zr)&&(u[c]=t[c]);return u.ref=n,u.className=o,oe.createElement(oe.Fragment,null,oe.createElement(Ia,{cache:e,serialized:a,isStringTag:typeof i=="string"}),oe.createElement(i,u))});process.env.NODE_ENV!=="production"&&(Va.displayName="EmotionCssPropInternal");var Ha={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"}}}}},Kr=!1,za=Xt(function(t,e){process.env.NODE_ENV!=="production"&&!Kr&&(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?"),Kr=!0);var n=t.styles,r=Ze([n],void 0,oe.useContext(mt)),i=oe.useRef();return qr(function(){var s=e.key+"-global",o=new e.sheet.constructor({key:s,nonce:e.sheet.nonce,container:e.sheet.container,speedy:e.sheet.isSpeedy}),a=!1,l=document.querySelector('style[data-emotion="'+s+" "+r.name+'"]');return e.sheet.tags.length&&(o.before=e.sheet.tags[0]),l!==null&&(a=!0,l.setAttribute("data-emotion",s),o.hydrate([l])),i.current=[o,a],function(){o.flush()}},[e]),qr(function(){var s=i.current,o=s[0],a=s[1];if(a){s[1]=!1;return}if(r.next!==void 0&&Jt(e,r.next,!0),o.tags.length){var l=o.tags[o.tags.length-1].nextElementSibling;o.before=l,o.flush()}e.insert("",r,o,!1)},[e,r.name]),null});process.env.NODE_ENV!=="production"&&(za.displayName="EmotionGlobal");function te(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return Ze(e)}var cs=function(){var e=te.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_"}}},Ba=function t(e){for(var n=e.length,r=0,i="";r<n;r++){var s=e[r];if(s!=null){var o=void 0;switch(typeof s){case"boolean":break;case"object":{if(Array.isArray(s))o=t(s);else{process.env.NODE_ENV!=="production"&&s.styles!==void 0&&s.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."),o="";for(var a in s)s[a]&&a&&(o&&(o+=" "),o+=a)}break}default:o=s}o&&(i&&(i+=" "),i+=o)}}return i};function Wa(t,e,n){var r=[],i=rr(t,r,n);return r.length<2?n:i+e(r)}var Ua=function(e){var n=e.cache,r=e.serializedArr;return sr(function(){for(var i=0;i<r.length;i++)Jt(n,r[i],!1)}),null},Fa=Xt(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,c=new Array(u),d=0;d<u;d++)c[d]=arguments[d];var f=Ze(c,e.registered);return r.push(f),Gt(e,f,!1),e.key+"-"+f.name},s=function(){if(n&&process.env.NODE_ENV!=="production")throw new Error("cx can only be used during render");for(var u=arguments.length,c=new Array(u),d=0;d<u;d++)c[d]=arguments[d];return Wa(e.registered,i,Ba(c))},o={css:i,cx:s,theme:oe.useContext(mt)},a=t.children(o);return n=!0,oe.createElement(oe.Fragment,null,oe.createElement(Ua,{cache:e,serializedArr:r}),a)});process.env.NODE_ENV!=="production"&&(Fa.displayName="EmotionClassNames");if(process.env.NODE_ENV!=="production"){var Gr=!0,qa=typeof jest<"u"||typeof vi<"u";if(Gr&&!qa){var Jr=typeof globalThis<"u"?globalThis:Gr?window:global,Xr="__EMOTION_REACT_"+Ha.version.split(".")[0]+"__";Jr[Xr]&&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."),Jr[Xr]=!0}}var Ya=Vo,Za=function(e){return e!=="theme"},Qr=function(e){return typeof e=="string"&&e.charCodeAt(0)>96?Ya:Za},ei=function(e,n,r){var i;if(n){var s=n.shouldForwardProp;i=e.__emotion_forwardProp&&s?function(o){return e.__emotion_forwardProp(o)&&s(o)}:s}return typeof i!="function"&&r&&(i=e.__emotion_forwardProp),i},ti=`You have illegal escape sequence in your template literal, most likely inside content's property value.
37
+ `+("css`"+l+"`"))}break}if(e==null)return n;var u=e[n];return u!==void 0?u:n}function La(t,e,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=ft(t,e,n[i])+";";else for(var s in n){var o=n[s];if(typeof o!="object")e!=null&&e[o]!==void 0?r+=s+"{"+e[o]+"}":Wr(o)&&(r+=dn(s)+":"+Vt(s,o)+";");else{if(s==="NO_COMPONENT_SELECTOR"&&process.env.NODE_ENV!=="production")throw new Error(ss);if(Array.isArray(o)&&typeof o[0]=="string"&&(e==null||e[o[0]]===void 0))for(var a=0;a<o.length;a++)Wr(o[a])&&(r+=dn(s)+":"+Vt(s,o[a])+";");else{var l=ft(t,e,o);switch(s){case"animation":case"animationName":{r+=dn(s)+":"+l+";";break}default:process.env.NODE_ENV!=="production"&&s==="undefined"&&console.error($a),r+=s+"{"+l+"}"}}}}return r}var Fr=/label:\s*([^\s;\n{]+)\s*(;|$)/g,os;process.env.NODE_ENV!=="production"&&(os=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var Ce,Ze=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,s="";Ce=void 0;var o=e[0];o==null||o.raw===void 0?(i=!1,s+=ft(r,n,o)):(process.env.NODE_ENV!=="production"&&o[0]===void 0&&console.error(Br),s+=o[0]);for(var a=1;a<e.length;a++)s+=ft(r,n,e[a]),i&&(process.env.NODE_ENV!=="production"&&o[a]===void 0&&console.error(Br),s+=o[a]);var l;process.env.NODE_ENV!=="production"&&(s=s.replace(os,function(f){return l=f,""})),Fr.lastIndex=0;for(var u="",c;(c=Fr.exec(s))!==null;)u+="-"+c[1];var d=Oa(s)+u;return process.env.NODE_ENV!=="production"?{name:d,styles:s,map:l,next:Ce,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:s,next:Ce}},Da=function(e){return e()},as=oe["useInsertionEffect"]?oe["useInsertionEffect"]:!1,sr=as||Da,qr=as||oe.useLayoutEffect,Ma={}.hasOwnProperty,or=oe.createContext(typeof HTMLElement<"u"?ba({key:"css"}):null);process.env.NODE_ENV!=="production"&&(or.displayName="EmotionCacheContext");or.Provider;var Xt=function(e){return m.forwardRef(function(n,r){var i=m.useContext(or);return e(n,i,r)})},vt=oe.createContext({});process.env.NODE_ENV!=="production"&&(vt.displayName="EmotionThemeContext");var Yr="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Zr="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",Ia=function(e){var n=e.cache,r=e.serialized,i=e.isStringTag;return Gt(n,r,i),sr(function(){return Jt(n,r,i)}),null},Va=Xt(function(t,e,n){var r=t.css;typeof r=="string"&&e.registered[r]!==void 0&&(r=e.registered[r]);var i=t[Yr],s=[r],o="";typeof t.className=="string"?o=rr(e.registered,s,t.className):t.className!=null&&(o=t.className+" ");var a=Ze(s,void 0,oe.useContext(vt));if(process.env.NODE_ENV!=="production"&&a.name.indexOf("-")===-1){var l=t[Zr];l&&(a=Ze([a,"label:"+l+";"]))}o+=e.key+"-"+a.name;var u={};for(var c in t)Ma.call(t,c)&&c!=="css"&&c!==Yr&&(process.env.NODE_ENV==="production"||c!==Zr)&&(u[c]=t[c]);return u.ref=n,u.className=o,oe.createElement(oe.Fragment,null,oe.createElement(Ia,{cache:e,serialized:a,isStringTag:typeof i=="string"}),oe.createElement(i,u))});process.env.NODE_ENV!=="production"&&(Va.displayName="EmotionCssPropInternal");var Ha={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"}}}}},Kr=!1,za=Xt(function(t,e){process.env.NODE_ENV!=="production"&&!Kr&&(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?"),Kr=!0);var n=t.styles,r=Ze([n],void 0,oe.useContext(vt)),i=oe.useRef();return qr(function(){var s=e.key+"-global",o=new e.sheet.constructor({key:s,nonce:e.sheet.nonce,container:e.sheet.container,speedy:e.sheet.isSpeedy}),a=!1,l=document.querySelector('style[data-emotion="'+s+" "+r.name+'"]');return e.sheet.tags.length&&(o.before=e.sheet.tags[0]),l!==null&&(a=!0,l.setAttribute("data-emotion",s),o.hydrate([l])),i.current=[o,a],function(){o.flush()}},[e]),qr(function(){var s=i.current,o=s[0],a=s[1];if(a){s[1]=!1;return}if(r.next!==void 0&&Jt(e,r.next,!0),o.tags.length){var l=o.tags[o.tags.length-1].nextElementSibling;o.before=l,o.flush()}e.insert("",r,o,!1)},[e,r.name]),null});process.env.NODE_ENV!=="production"&&(za.displayName="EmotionGlobal");function re(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return Ze(e)}var cs=function(){var e=re.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_"}}},Ba=function t(e){for(var n=e.length,r=0,i="";r<n;r++){var s=e[r];if(s!=null){var o=void 0;switch(typeof s){case"boolean":break;case"object":{if(Array.isArray(s))o=t(s);else{process.env.NODE_ENV!=="production"&&s.styles!==void 0&&s.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."),o="";for(var a in s)s[a]&&a&&(o&&(o+=" "),o+=a)}break}default:o=s}o&&(i&&(i+=" "),i+=o)}}return i};function Wa(t,e,n){var r=[],i=rr(t,r,n);return r.length<2?n:i+e(r)}var Ua=function(e){var n=e.cache,r=e.serializedArr;return sr(function(){for(var i=0;i<r.length;i++)Jt(n,r[i],!1)}),null},Fa=Xt(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,c=new Array(u),d=0;d<u;d++)c[d]=arguments[d];var f=Ze(c,e.registered);return r.push(f),Gt(e,f,!1),e.key+"-"+f.name},s=function(){if(n&&process.env.NODE_ENV!=="production")throw new Error("cx can only be used during render");for(var u=arguments.length,c=new Array(u),d=0;d<u;d++)c[d]=arguments[d];return Wa(e.registered,i,Ba(c))},o={css:i,cx:s,theme:oe.useContext(vt)},a=t.children(o);return n=!0,oe.createElement(oe.Fragment,null,oe.createElement(Ua,{cache:e,serializedArr:r}),a)});process.env.NODE_ENV!=="production"&&(Fa.displayName="EmotionClassNames");if(process.env.NODE_ENV!=="production"){var Gr=!0,qa=typeof jest<"u"||typeof vi<"u";if(Gr&&!qa){var Jr=typeof globalThis<"u"?globalThis:Gr?window:global,Xr="__EMOTION_REACT_"+Ha.version.split(".")[0]+"__";Jr[Xr]&&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."),Jr[Xr]=!0}}var Ya=Vo,Za=function(e){return e!=="theme"},Qr=function(e){return typeof e=="string"&&e.charCodeAt(0)>96?Ya:Za},ei=function(e,n,r){var i;if(n){var s=n.shouldForwardProp;i=e.__emotion_forwardProp&&s?function(o){return e.__emotion_forwardProp(o)&&s(o)}:s}return typeof i!="function"&&r&&(i=e.__emotion_forwardProp),i},ti=`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
40
  https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,Ka=function(e){var n=e.cache,r=e.serialized,i=e.isStringTag;return Gt(n,r,i),sr(function(){return Jt(n,r,i)}),null},Ga=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,s,o;n!==void 0&&(s=n.label,o=n.target);var a=ei(e,n,r),l=a||Qr(i),u=!l("as");return function(){var c=arguments,d=r&&e.__emotion_styles!==void 0?e.__emotion_styles.slice(0):[];if(s!==void 0&&d.push("label:"+s+";"),c[0]==null||c[0].raw===void 0)d.push.apply(d,c);else{process.env.NODE_ENV!=="production"&&c[0][0]===void 0&&console.error(ti),d.push(c[0][0]);for(var f=c.length,p=1;p<f;p++)process.env.NODE_ENV!=="production"&&c[0][p]===void 0&&console.error(ti),d.push(c[p],c[0][p])}var g=Xt(function(v,y,S){var $=u&&v.as||i,O="",T=[],b=v;if(v.theme==null){b={};for(var L in v)b[L]=v[L];b.theme=oe.useContext(mt)}typeof v.className=="string"?O=rr(y.registered,T,v.className):v.className!=null&&(O=v.className+" ");var P=Ze(d.concat(T),y.registered,b);O+=y.key+"-"+P.name,o!==void 0&&(O+=" "+o);var _=u&&a===void 0?Qr($):l,z={};for(var W in v)u&&W==="as"||_(W)&&(z[W]=v[W]);return z.className=O,z.ref=S,oe.createElement(oe.Fragment,null,oe.createElement(Ka,{cache:y,serialized:P,isStringTag:typeof $=="string"}),oe.createElement($,z))});return g.displayName=s!==void 0?s:"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 o===void 0&&process.env.NODE_ENV!=="production"?"NO_COMPONENT_SELECTOR":"."+o}}),g.withComponent=function(v,y){return t(v,ue({},n,y,{shouldForwardProp:ei(g,y,!0)})).apply(void 0,d)},g}},Ja=["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"],R=Ga.bind();Ja.forEach(function(t){R[t]=R(t)});var jn=(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))(jn||{});const ni=()=>{const{opr:t,opera:e,InstallTrigger:n,HTMLElement:r,safari:i,documentMode:s,StyleMedia:o,chrome:a,CSS:l}=window,u=!!t&&!!t.addons||!!e||navigator.userAgent.indexOf(" OPR/")>=0;if(u)return"opera";if(n)return"firefox";const c=(p=>p.toString()==="[object SafariRemoteNotification]")(!i||typeof i<"u"&&i.pushNotification);if(/constructor/i.test(r)||c)return"safari";const d=!!s;if(d)return"internet-explorer";if(!d&&o)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)&&l)return"blink"},Xa=["string","number"],Se=t=>Object.keys(t).reduce((e,n)=>{const r=typeof t[n]>"u"?"":t[n],i=typeof r;if(Xa.indexOf(i)>-1){const s=n.substring(0,5);s==="data-"||s==="aria-"?e[eo(n)]=r.toString():n.substring(0,4)!=="css-"&&(e[n]=r.toString())}else e[n]=r;return e},{}),Qa=t=>new RegExp("^#","i").test(t),ec=t=>({children:e,...n})=>{const{implementation:r,name:i}=t.get("$widget"),{href:s=""}=n;if(Qa(s))return h.jsx(ac,{smooth:!0,to:s,children:e});const o=r.bindings.map(u=>u.replace(/\./g,"\\.")).join("|"),l=new RegExp(`^((http[s]?:)?//)?(${o})/([^\\s]+)`).exec(s);if(l&&l.length>=4){const u=l[4];if(r.widgets.get(u)&&!u.startsWith("blob?")&&!u.startsWith(i))return h.jsx(wu,{widgetName:u,children:e})}return h.jsx("a",{...n,children:e})},ls=t=>{const e={};return Object.keys(t).forEach(n=>{n.indexOf("css-")>-1&&(e[n]=t[n])}),e},tc=t=>{let e="";return Object.keys(ls(t)).forEach(n=>{n.indexOf("css-")>-1&&(e+=`${n.replace("css-","")}:${t[n]};`)}),te`
41
+ You may have forgotten to import it.`);var r=e.__emotion_real===e,i=r&&e.__emotion_base||e,s,o;n!==void 0&&(s=n.label,o=n.target);var a=ei(e,n,r),l=a||Qr(i),u=!l("as");return function(){var c=arguments,d=r&&e.__emotion_styles!==void 0?e.__emotion_styles.slice(0):[];if(s!==void 0&&d.push("label:"+s+";"),c[0]==null||c[0].raw===void 0)d.push.apply(d,c);else{process.env.NODE_ENV!=="production"&&c[0][0]===void 0&&console.error(ti),d.push(c[0][0]);for(var f=c.length,p=1;p<f;p++)process.env.NODE_ENV!=="production"&&c[0][p]===void 0&&console.error(ti),d.push(c[p],c[0][p])}var g=Xt(function(v,b,$){var P=u&&v.as||i,k="",S=[],y=v;if(v.theme==null){y={};for(var L in v)y[L]=v[L];y.theme=oe.useContext(vt)}typeof v.className=="string"?k=rr(b.registered,S,v.className):v.className!=null&&(k=v.className+" ");var T=Ze(d.concat(S),b.registered,y);k+=b.key+"-"+T.name,o!==void 0&&(k+=" "+o);var A=u&&a===void 0?Qr(P):l,H={};for(var B in v)u&&B==="as"||A(B)&&(H[B]=v[B]);return H.className=k,H.ref=$,oe.createElement(oe.Fragment,null,oe.createElement(Ka,{cache:b,serialized:T,isStringTag:typeof P=="string"}),oe.createElement(P,H))});return g.displayName=s!==void 0?s:"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 o===void 0&&process.env.NODE_ENV!=="production"?"NO_COMPONENT_SELECTOR":"."+o}}),g.withComponent=function(v,b){return t(v,ue({},n,b,{shouldForwardProp:ei(g,b,!0)})).apply(void 0,d)},g}},Ja=["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"],R=Ga.bind();Ja.forEach(function(t){R[t]=R(t)});var jn=(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))(jn||{});const ni=()=>{const{opr:t,opera:e,InstallTrigger:n,HTMLElement:r,safari:i,documentMode:s,StyleMedia:o,chrome:a,CSS:l}=window,u=!!t&&!!t.addons||!!e||navigator.userAgent.indexOf(" OPR/")>=0;if(u)return"opera";if(n)return"firefox";const c=(p=>p.toString()==="[object SafariRemoteNotification]")(!i||typeof i<"u"&&i.pushNotification);if(/constructor/i.test(r)||c)return"safari";const d=!!s;if(d)return"internet-explorer";if(!d&&o)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)&&l)return"blink"},Xa=["string","number"],Se=t=>Object.keys(t).reduce((e,n)=>{const r=typeof t[n]>"u"?"":t[n],i=typeof r;if(Xa.indexOf(i)>-1){const s=n.substring(0,5);s==="data-"||s==="aria-"?e[eo(n)]=r.toString():n.substring(0,4)!=="css-"&&(e[n]=r.toString())}else e[n]=r;return e},{}),Qa=t=>new RegExp("^#","i").test(t),ec=t=>({children:e,...n})=>{const{implementation:r,name:i}=t.get("$widget"),{href:s=""}=n;if(Qa(s))return h.jsx(ac,{smooth:!0,to:s,children:e});const o=r.bindings.map(u=>u.replace(/\./g,"\\.")).join("|"),l=new RegExp(`^((http[s]?:)?//)?(${o})/([^\\s]+)`).exec(s);if(l&&l.length>=4){const u=l[4];if(r.widgets.get(u)&&!u.startsWith("blob?")&&!u.startsWith(i))return h.jsx(wu,{widgetName:u,children:e})}return h.jsx("a",{...n,children:e})},ls=t=>{const e={};return Object.keys(t).forEach(n=>{n.indexOf("css-")>-1&&(e[n]=t[n])}),e},tc=t=>{let e="";return Object.keys(ls(t)).forEach(n=>{n.indexOf("css-")>-1&&(e+=`${n.replace("css-","")}:${t[n]};`)}),re`
42
42
  ${e}
43
- `},nc=(t,e)=>{let n="";const r=()=>{n=""},i=c=>{const d=document.getElementById(n);return d!==null?(c(d),r(),!0):!1},s=c=>(c.preventDefault(),r(),t.onClick&&t.onClick(c),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:o,smooth:a,to:l,...u}=t;return e==="a"&&(u.href="javascript:;"),h.jsx(e,{...u,onClick:s,children:t.children})},ar=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[l]=e.split(r);i=l}}const o=((a,l,u)=>u[a]?`${l}${u[a]}`:`${l}${a}`)(r,i,t.theme.typographyVariantMapping||{});return te`
43
+ `},nc=(t,e)=>{let n="";const r=()=>{n=""},i=c=>{const d=document.getElementById(n);return d!==null?(c(d),r(),!0):!1},s=c=>(c.preventDefault(),r(),t.onClick&&t.onClick(c),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:o,smooth:a,to:l,...u}=t;return e==="a"&&(u.href="javascript:;"),h.jsx(e,{...u,onClick:s,children:t.children})},ar=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[l]=e.split(r);i=l}}const o=((a,l,u)=>u[a]?`${l}${u[a]}`:`${l}${a}`)(r,i,t.theme.typographyVariantMapping||{});return re`
44
44
  ${o} {
45
45
  ${n}
46
46
  }
47
- `};var us={exports:{}};(function(t,e){(function(n,r){t.exports=r(m)})(xa,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 S=y;/^(data|aria)-/.test(y)||p.filter(function(P){return P instanceof RegExp?P.test(y):P===y}).length===0&&(S=i(y));var $,O,T=g(d,S);if(T.name==="style")v[T.name]=($=f.style,O={},$.split(";").filter(function(P){return P.trim()!==""}).forEach(function(P){var _,z=P.split(":");if(z.length>1){var W=function(H){return/^-ms-/.test(H)&&(H=H.substr(1)),H.startsWith("--")?H:i(H)}(z[0].trim()),F=(_=z.slice(1).join(":").trim(),/^\d+$/.test(_)?Number(_):_.replace(/'/g,'"'));O[W]=F}}),O);else{var b=f[y],L=b===""||String(b).toLowerCase()===S.toLowerCase();v[T.name]=T.isBoolean?L:b}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 s=["table","tbody","thead","tfoot","tr"],o={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=o[f],g=document.createElement(d);if(p)return{name:Array.isArray(p)?p[0]:p,isBoolean:l(g,Array.isArray(p)?p[1]||f:p)};for(var v in g)if(v.toLowerCase()===f.toLowerCase())return{name:v,isBoolean:l(g,v)};return{name:f,isBoolean:l(g,f)}}function l(d,f){return d.setAttribute(f,""),d[f]===!0||u.indexOf(f)>-1}var u=["itemScope"];function c(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 S($,O,T){var b=T.transform||{},L=T.preserveAttributes||[],P=T.dangerouslySetChildren||["style"],_=b._;if($.nodeType===8)return null;if($.nodeType===3){var z=$.textContent;return _?_(z):z}for(var W={},F=$.attributes,H=0;H<F.length;H++)W[F[H].name]=F[H].value;W.key=O.toString();var ne=$.tagName.toLowerCase(),Q=r(ne,W,L,a),re=Array.from($.childNodes).map(function(X,V){return s.indexOf(ne)>-1&&X.nodeType===3&&(X.textContent=X.textContent.trim(),X.textContent==="")?null:S(X,O+"."+V,T)}).filter(Boolean);if(P.indexOf(ne)>-1){var ee=$.innerHTML;return ee&&(ne!=="style"&&ne!=="script"&&(ee=ee.replace(/"/g,"&quot;")),Q.dangerouslySetInnerHTML={__html:ee.trim()}),c(ne,Q,b)}var le=re.length===0?null:re;return c(ne,Q,b,le)}(v,String(y),f)}).filter(Boolean);return g.length===1?g[0]:g}})})(us);var rc=us.exports;const ri=nr(rc);function ic(t,e){return e?ri(t,e):ri(t)}const sc=t=>e=>h.jsx(ou,{attrs:e,htmlBody:t}),oc=(t,e)=>({transform:{a:ec(t),img:sc(e)}}),ac=t=>nc(t,"a"),je=m.forwardRef(({className:t,children:e,...n},r)=>h.jsx(cc,{type:"button",className:ie(t,"humany-button"),...Se(n),ref:r,children:e})),cc=R.button`
47
+ `};var us={exports:{}};(function(t,e){(function(n,r){t.exports=r(m)})(xa,function(n){function r(d,f,p,g){return f===void 0&&(f={}),Object.keys(f).reduce(function(v,b){if(/^on.*/.test(b))return v;var $=b;/^(data|aria)-/.test(b)||p.filter(function(T){return T instanceof RegExp?T.test(b):T===b}).length===0&&($=i(b));var P,k,S=g(d,$);if(S.name==="style")v[S.name]=(P=f.style,k={},P.split(";").filter(function(T){return T.trim()!==""}).forEach(function(T){var A,H=T.split(":");if(H.length>1){var B=function(q){return/^-ms-/.test(q)&&(q=q.substr(1)),q.startsWith("--")?q:i(q)}(H[0].trim()),Y=(A=H.slice(1).join(":").trim(),/^\d+$/.test(A)?Number(A):A.replace(/'/g,'"'));k[B]=Y}}),k);else{var y=f[b],L=y===""||String(y).toLowerCase()===$.toLowerCase();v[S.name]=S.isBoolean?L:y}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 s=["table","tbody","thead","tfoot","tr"],o={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=o[f],g=document.createElement(d);if(p)return{name:Array.isArray(p)?p[0]:p,isBoolean:l(g,Array.isArray(p)?p[1]||f:p)};for(var v in g)if(v.toLowerCase()===f.toLowerCase())return{name:v,isBoolean:l(g,v)};return{name:f,isBoolean:l(g,f)}}function l(d,f){return d.setAttribute(f,""),d[f]===!0||u.indexOf(f)>-1}var u=["itemScope"];function c(d,f,p,g){g===void 0&&(g=null);var v=p[d],b=p._;return v?n.createElement(v,f,g):b?b(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,b){return function $(P,k,S){var y=S.transform||{},L=S.preserveAttributes||[],T=S.dangerouslySetChildren||["style"],A=y._;if(P.nodeType===8)return null;if(P.nodeType===3){var H=P.textContent;return A?A(H):H}for(var B={},Y=P.attributes,q=0;q<Y.length;q++)B[Y[q].name]=Y[q].value;B.key=k.toString();var Q=P.tagName.toLowerCase(),W=r(Q,B,L,a),te=Array.from(P.childNodes).map(function(ee,V){return s.indexOf(Q)>-1&&ee.nodeType===3&&(ee.textContent=ee.textContent.trim(),ee.textContent==="")?null:$(ee,k+"."+V,S)}).filter(Boolean);if(T.indexOf(Q)>-1){var ne=P.innerHTML;return ne&&(Q!=="style"&&Q!=="script"&&(ne=ne.replace(/"/g,"&quot;")),W.dangerouslySetInnerHTML={__html:ne.trim()}),c(Q,W,y)}var le=te.length===0?null:te;return c(Q,W,y,le)}(v,String(b),f)}).filter(Boolean);return g.length===1?g[0]:g}})})(us);var rc=us.exports;const ri=nr(rc);function ic(t,e){return e?ri(t,e):ri(t)}const sc=t=>e=>h.jsx(ou,{attrs:e,htmlBody:t}),oc=(t,e)=>({transform:{a:ec(t),img:sc(e)}}),ac=t=>nc(t,"a"),Ae=m.forwardRef(({className:t,children:e,...n},r)=>h.jsx(cc,{type:"button",className:ie(t,"humany-button"),...Se(n),ref:r,children:e})),cc=R.button`
48
48
  -webkit-appearance: button;
49
49
  text-transform: none;
50
50
  overflow: visible;
@@ -61,8 +61,8 @@ You may have forgotten to import it.`);var r=e.__emotion_real===e,i=r&&e.__emoti
61
61
  object-assign
62
62
  (c) Sindre Sorhus
63
63
  @license MIT
64
- */var fn,ii;function lc(){if(ii)return fn;ii=1;var t=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function i(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var o={},a=0;a<10;a++)o["_"+String.fromCharCode(a)]=a;var l=Object.getOwnPropertyNames(o).map(function(c){return o[c]});if(l.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(c){u[c]=c}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return fn=i()?Object.assign:function(s,o){for(var a,l=r(s),u,c=1;c<arguments.length;c++){a=Object(arguments[c]);for(var d in a)e.call(a,d)&&(l[d]=a[d]);if(t){u=t(a);for(var f=0;f<u.length;f++)n.call(a,u[f])&&(l[u[f]]=a[u[f]])}}return l},fn}var hn,si;function cr(){if(si)return hn;si=1;var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return hn=t,hn}var pn,oi;function ds(){return oi||(oi=1,pn=Function.call.bind(Object.prototype.hasOwnProperty)),pn}var mn,ai;function uc(){if(ai)return mn;ai=1;var t=function(){};if(process.env.NODE_ENV!=="production"){var e=cr(),n={},r=ds();t=function(s){var o="Warning: "+s;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function i(s,o,a,l,u){if(process.env.NODE_ENV!=="production"){for(var c in s)if(r(s,c)){var d;try{if(typeof s[c]!="function"){var f=Error((l||"React class")+": "+a+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}d=s[c](o,c,l,a,null,e)}catch(g){d=g}if(d&&!(d instanceof Error)&&t((l||"React class")+": type specification of "+a+" `"+c+"` 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={})},mn=i,mn}var vn,ci;function dc(){if(ci)return vn;ci=1;var t=Kt,e=lc(),n=cr(),r=ds(),i=uc(),s=function(){};process.env.NODE_ENV!=="production"&&(s=function(a){var l="Warning: "+a;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function o(){return null}return vn=function(a,l){var u=typeof Symbol=="function"&&Symbol.iterator,c="@@iterator";function d(x){var w=x&&(u&&x[u]||x[c]);if(typeof w=="function")return w}var f="<<anonymous>>",p={array:S("array"),bigint:S("bigint"),bool:S("boolean"),func:S("function"),number:S("number"),object:S("object"),string:S("string"),symbol:S("symbol"),any:$(),arrayOf:O,element:T(),elementType:b(),instanceOf:L,node:W(),objectOf:_,oneOf:P,oneOfType:z,shape:H,exact:ne};function g(x,w){return x===w?x!==0||1/x===1/w:x!==x&&w!==w}function v(x,w){this.message=x,this.data=w&&typeof w=="object"?w:{},this.stack=""}v.prototype=Error.prototype;function y(x){if(process.env.NODE_ENV!=="production")var w={},C=0;function N(I,D,M,B,q,U,me){if(B=B||f,U=U||M,me!==n){if(l){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 ke=B+":"+M;!w[ke]&&C<3&&(s("You are manually calling a React.PropTypes validation function for the `"+U+"` prop on `"+B+"`. 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[ke]=!0,C++)}}return D[M]==null?I?D[M]===null?new v("The "+q+" `"+U+"` is marked as required "+("in `"+B+"`, but its value is `null`.")):new v("The "+q+" `"+U+"` is marked as required in "+("`"+B+"`, but its value is `undefined`.")):null:x(D,M,B,q,U)}var j=N.bind(null,!1);return j.isRequired=N.bind(null,!0),j}function S(x){function w(C,N,j,I,D,M){var B=C[N],q=ee(B);if(q!==x){var U=le(B);return new v("Invalid "+I+" `"+D+"` of type "+("`"+U+"` supplied to `"+j+"`, expected ")+("`"+x+"`."),{expectedType:x})}return null}return y(w)}function $(){return y(o)}function O(x){function w(C,N,j,I,D){if(typeof x!="function")return new v("Property `"+D+"` of component `"+j+"` has invalid PropType notation inside arrayOf.");var M=C[N];if(!Array.isArray(M)){var B=ee(M);return new v("Invalid "+I+" `"+D+"` of type "+("`"+B+"` supplied to `"+j+"`, expected an array."))}for(var q=0;q<M.length;q++){var U=x(M,q,j,I,D+"["+q+"]",n);if(U instanceof Error)return U}return null}return y(w)}function T(){function x(w,C,N,j,I){var D=w[C];if(!a(D)){var M=ee(D);return new v("Invalid "+j+" `"+I+"` of type "+("`"+M+"` supplied to `"+N+"`, expected a single ReactElement."))}return null}return y(x)}function b(){function x(w,C,N,j,I){var D=w[C];if(!t.isValidElementType(D)){var M=ee(D);return new v("Invalid "+j+" `"+I+"` of type "+("`"+M+"` supplied to `"+N+"`, expected a single ReactElement type."))}return null}return y(x)}function L(x){function w(C,N,j,I,D){if(!(C[N]instanceof x)){var M=x.name||f,B=V(C[N]);return new v("Invalid "+I+" `"+D+"` of type "+("`"+B+"` supplied to `"+j+"`, expected ")+("instance of `"+M+"`."))}return null}return y(w)}function P(x){if(!Array.isArray(x))return process.env.NODE_ENV!=="production"&&(arguments.length>1?s("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])."):s("Invalid argument supplied to oneOf, expected an array.")),o;function w(C,N,j,I,D){for(var M=C[N],B=0;B<x.length;B++)if(g(M,x[B]))return null;var q=JSON.stringify(x,function(me,A){var ke=le(A);return ke==="symbol"?String(A):A});return new v("Invalid "+I+" `"+D+"` of value `"+String(M)+"` "+("supplied to `"+j+"`, expected one of "+q+"."))}return y(w)}function _(x){function w(C,N,j,I,D){if(typeof x!="function")return new v("Property `"+D+"` of component `"+j+"` has invalid PropType notation inside objectOf.");var M=C[N],B=ee(M);if(B!=="object")return new v("Invalid "+I+" `"+D+"` of type "+("`"+B+"` supplied to `"+j+"`, expected an object."));for(var q in M)if(r(M,q)){var U=x(M,q,j,I,D+"."+q,n);if(U instanceof Error)return U}return null}return y(w)}function z(x){if(!Array.isArray(x))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var w=0;w<x.length;w++){var C=x[w];if(typeof C!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+X(C)+" at index "+w+"."),o}function N(j,I,D,M,B){for(var q=[],U=0;U<x.length;U++){var me=x[U],A=me(j,I,D,M,B,n);if(A==null)return null;A.data&&r(A.data,"expectedType")&&q.push(A.data.expectedType)}var ke=q.length>0?", expected one of type ["+q.join(", ")+"]":"";return new v("Invalid "+M+" `"+B+"` supplied to "+("`"+D+"`"+ke+"."))}return y(N)}function W(){function x(w,C,N,j,I){return Q(w[C])?null:new v("Invalid "+j+" `"+I+"` supplied to "+("`"+N+"`, expected a ReactNode."))}return y(x)}function F(x,w,C,N,j){return new v((x||"React class")+": "+w+" type `"+C+"."+N+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+j+"`.")}function H(x){function w(C,N,j,I,D){var M=C[N],B=ee(M);if(B!=="object")return new v("Invalid "+I+" `"+D+"` of type `"+B+"` "+("supplied to `"+j+"`, expected `object`."));for(var q in x){var U=x[q];if(typeof U!="function")return F(j,I,D,q,le(U));var me=U(M,q,j,I,D+"."+q,n);if(me)return me}return null}return y(w)}function ne(x){function w(C,N,j,I,D){var M=C[N],B=ee(M);if(B!=="object")return new v("Invalid "+I+" `"+D+"` of type `"+B+"` "+("supplied to `"+j+"`, expected `object`."));var q=e({},C[N],x);for(var U in q){var me=x[U];if(r(x,U)&&typeof me!="function")return F(j,I,D,U,le(me));if(!me)return new v("Invalid "+I+" `"+D+"` key `"+U+"` supplied to `"+j+"`.\nBad object: "+JSON.stringify(C[N],null," ")+`
65
- Valid keys: `+JSON.stringify(Object.keys(x),null," "));var A=me(M,U,j,I,D+"."+U,n);if(A)return A}return null}return y(w)}function Q(x){switch(typeof x){case"number":case"string":case"undefined":return!0;case"boolean":return!x;case"object":if(Array.isArray(x))return x.every(Q);if(x===null||a(x))return!0;var w=d(x);if(w){var C=w.call(x),N;if(w!==x.entries){for(;!(N=C.next()).done;)if(!Q(N.value))return!1}else for(;!(N=C.next()).done;){var j=N.value;if(j&&!Q(j[1]))return!1}}else return!1;return!0;default:return!1}}function re(x,w){return x==="symbol"?!0:w?w["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&w instanceof Symbol:!1}function ee(x){var w=typeof x;return Array.isArray(x)?"array":x instanceof RegExp?"object":re(w,x)?"symbol":w}function le(x){if(typeof x>"u"||x===null)return""+x;var w=ee(x);if(w==="object"){if(x instanceof Date)return"date";if(x instanceof RegExp)return"regexp"}return w}function X(x){var w=le(x);switch(w){case"array":case"object":return"an "+w;case"boolean":case"date":case"regexp":return"a "+w;default:return w}}function V(x){return!x.constructor||!x.constructor.name?f:x.constructor.name}return p.checkPropTypes=i,p.resetWarningCache=i.resetWarningCache,p.PropTypes=p,p},vn}var gn,li;function fc(){if(li)return gn;li=1;var t=cr();function e(){}function n(){}return n.resetWarningCache=e,gn=function(){function r(o,a,l,u,c,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 s={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 s.PropTypes=s,s},gn}if(process.env.NODE_ENV!=="production"){var hc=Kt,pc=!0;_n.exports=dc()(hc.isElement,pc)}else _n.exports=fc()();var mc=_n.exports;const E=nr(mc);function vc(t,e){return t.classList?!!e&&t.classList.contains(e):(" "+(t.className.baseVal||t.className)+" ").indexOf(" "+e+" ")!==-1}function gc(t,e){t.classList?t.classList.add(e):vc(t,e)||(typeof t.className=="string"?t.className=t.className+" "+e:t.setAttribute("class",(t.className&&t.className.baseVal||"")+" "+e))}function ui(t,e){return t.replace(new RegExp("(^|\\s)"+e+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function yc(t,e){t.classList?t.classList.remove(e):typeof t.className=="string"?t.className=ui(t.className,e):t.setAttribute("class",ui(t.className&&t.className.baseVal||"",e))}const di={disabled:!1};var bc=process.env.NODE_ENV!=="production"?E.oneOfType([E.number,E.shape({enter:E.number,exit:E.number,appear:E.number}).isRequired]):null,xc=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 fs=m.createContext(null);var hs=function(e){return e.scrollTop},at="unmounted",Ae="exited",_e="entering",Be="entered",Ln="exiting",Re=function(t){we(e,t);function e(r,i){var s;s=t.call(this,r,i)||this;var o=i,a=o&&!o.isMounting?r.enter:r.appear,l;return s.appearStatus=null,r.in?a?(l=Ae,s.appearStatus=_e):l=Be:r.unmountOnExit||r.mountOnEnter?l=at:l=Ae,s.state={status:l},s.nextCallback=null,s}e.getDerivedStateFromProps=function(i,s){var o=i.in;return o&&s.status===at?{status:Ae}:null};var n=e.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var s=null;if(i!==this.props){var o=this.state.status;this.props.in?o!==_e&&o!==Be&&(s=_e):(o===_e||o===Be)&&(s=Ln)}this.updateStatus(!1,s)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,s,o,a;return s=o=a=i,i!=null&&typeof i!="number"&&(s=i.exit,o=i.enter,a=i.appear!==void 0?i.appear:o),{exit:s,enter:o,appear:a}},n.updateStatus=function(i,s){if(i===void 0&&(i=!1),s!==null)if(this.cancelNextCallback(),s===_e){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:ot.findDOMNode(this);o&&hs(o)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ae&&this.setState({status:at})},n.performEnter=function(i){var s=this,o=this.props.enter,a=this.context?this.context.isMounting:i,l=this.props.nodeRef?[a]:[ot.findDOMNode(this),a],u=l[0],c=l[1],d=this.getTimeouts(),f=a?d.appear:d.enter;if(!i&&!o||di.disabled){this.safeSetState({status:Be},function(){s.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:_e},function(){s.props.onEntering(u,c),s.onTransitionEnd(f,function(){s.safeSetState({status:Be},function(){s.props.onEntered(u,c)})})})},n.performExit=function(){var i=this,s=this.props.exit,o=this.getTimeouts(),a=this.props.nodeRef?void 0:ot.findDOMNode(this);if(!s||di.disabled){this.safeSetState({status:Ae},function(){i.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:Ln},function(){i.props.onExiting(a),i.onTransitionEnd(o.exit,function(){i.safeSetState({status:Ae},function(){i.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,s){s=this.setNextCallback(s),this.setState(i,s)},n.setNextCallback=function(i){var s=this,o=!0;return this.nextCallback=function(a){o&&(o=!1,s.nextCallback=null,i(a))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},n.onTransitionEnd=function(i,s){this.setNextCallback(s);var o=this.props.nodeRef?this.props.nodeRef.current:ot.findDOMNode(this),a=i==null&&!this.props.addEndListener;if(!o||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],u=l[0],c=l[1];this.props.addEndListener(u,c)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===at)return null;var s=this.props,o=s.children;s.in,s.mountOnEnter,s.unmountOnExit,s.appear,s.enter,s.exit,s.timeout,s.addEndListener,s.onEnter,s.onEntering,s.onEntered,s.onExit,s.onExiting,s.onExited,s.nodeRef;var a=et(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return m.createElement(fs.Provider,{value:null},typeof o=="function"?o(i,a):m.cloneElement(m.Children.only(o),a))},e}(m.Component);Re.contextType=fs;Re.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:E.shape({current:typeof Element>"u"?E.any:function(t,e,n,r,i,s){var o=t[e];return E.instanceOf(o&&"ownerDocument"in o?o.ownerDocument.defaultView.Element:Element)(t,e,n,r,i,s)}}),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=bc;e.addEndListener||(n=n.isRequired);for(var r=arguments.length,i=new Array(r>1?r-1:0),s=1;s<r;s++)i[s-1]=arguments[s];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 Ve(){}Re.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ve,onEntering:Ve,onEntered:Ve,onExit:Ve,onExiting:Ve,onExited:Ve};Re.UNMOUNTED=at;Re.EXITED=Ae;Re.ENTERING=_e;Re.ENTERED=Be;Re.EXITING=Ln;const ps=Re;var wc=function(e,n){return e&&n&&n.split(" ").forEach(function(r){return gc(e,r)})},yn=function(e,n){return e&&n&&n.split(" ").forEach(function(r){return yc(e,r)})},lr=function(t){we(e,t);function e(){for(var r,i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];return r=t.call.apply(t,[this].concat(s))||this,r.appliedClasses={appear:{},enter:{},exit:{}},r.onEnter=function(a,l){var u=r.resolveArguments(a,l),c=u[0],d=u[1];r.removeClasses(c,"exit"),r.addClass(c,d?"appear":"enter","base"),r.props.onEnter&&r.props.onEnter(a,l)},r.onEntering=function(a,l){var u=r.resolveArguments(a,l),c=u[0],d=u[1],f=d?"appear":"enter";r.addClass(c,f,"active"),r.props.onEntering&&r.props.onEntering(a,l)},r.onEntered=function(a,l){var u=r.resolveArguments(a,l),c=u[0],d=u[1],f=d?"appear":"enter";r.removeClasses(c,f),r.addClass(c,f,"done"),r.props.onEntered&&r.props.onEntered(a,l)},r.onExit=function(a){var l=r.resolveArguments(a),u=l[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 l=r.resolveArguments(a),u=l[0];r.addClass(u,"exit","active"),r.props.onExiting&&r.props.onExiting(a)},r.onExited=function(a){var l=r.resolveArguments(a),u=l[0];r.removeClasses(u,"exit"),r.addClass(u,"exit","done"),r.props.onExited&&r.props.onExited(a)},r.resolveArguments=function(a,l){return r.props.nodeRef?[r.props.nodeRef.current,a]:[a,l]},r.getClassNames=function(a){var l=r.props.classNames,u=typeof l=="string",c=u&&l?l+"-":"",d=u?""+c+a:l[a],f=u?d+"-active":l[a+"Active"],p=u?d+"-done":l[a+"Done"];return{baseClassName:d,activeClassName:f,doneClassName:p}},r}var n=e.prototype;return n.addClass=function(i,s,o){var a=this.getClassNames(s)[o+"ClassName"],l=this.getClassNames("enter"),u=l.doneClassName;s==="appear"&&o==="done"&&u&&(a+=" "+u),o==="active"&&i&&hs(i),a&&(this.appliedClasses[s][o]=a,wc(i,a))},n.removeClasses=function(i,s){var o=this.appliedClasses[s],a=o.base,l=o.active,u=o.done;this.appliedClasses[s]={},a&&yn(i,a),l&&yn(i,l),u&&yn(i,u)},n.render=function(){var i=this.props;i.classNames;var s=et(i,["classNames"]);return m.createElement(ps,ue({},s,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},e}(m.Component);lr.defaultProps={classNames:""};lr.propTypes=process.env.NODE_ENV!=="production"?ue({},ps.propTypes,{classNames:xc,onEnter:E.func,onEntering:E.func,onEntered:E.func,onExit:E.func,onExiting:E.func,onExited:E.func}):{};const Ec=lr,Cc=m.createContext(new Fn);m.createContext(1);const Sc=m.createContext({id:"",type:"",name:"",branch:""});m.createContext({});const kc=m.createContext(null);m.createContext(null);const tt=()=>m.useContext(Cc),Oc=t=>{const e=m.useContext(Sc),n=vs(),[r,i]=m.useState();return m.useEffect(()=>{if((t||e.id)&&n){const s=n.nodes.get(t||e.id);i(s)}},[t,e.id,n]),r},ms=()=>{const t=m.useRef(!1);return m.useEffect(()=>(t.current=!0,()=>{t.current=!1}),[]),t},vs=t=>{const e=tt(),[n,r]=m.useState(null),i=ms();return m.useEffect(()=>{Hi.getInstance(t||e).then(s=>{i.current&&r(s)})},[i]),n},Nc=t=>{const e=Oc(t),n=vs(),[r,i]=m.useState({}),s=ms();return m.useEffect(()=>{e&&s.current&&i(e.attributes.context)},[s,e]),m.useEffect(()=>{if(n){const o=n.events.subscribe("components:context-changed",(a,l)=>{e===l.node&&s.current&&i(l.node.attributes.context)});return()=>{o()}}},[s,n,e]),r},qe=(t,e,n=window,r=()=>!0)=>{const i=m.useRef(()=>{});m.useEffect(()=>{i.current=e},[e]),m.useEffect(()=>{if(!(n&&r()))return;const o=a=>i.current(a);return n.addEventListener(t,o),()=>{n.removeEventListener(t,o)}},[t,n])},$c=t=>{const e=tt(),{events:n}=(t||e).get("$widget");return n},ct=(t,e)=>{const[n,r]=m.useState(!1),i=m.useCallback(o=>{const{key:a}=o;a===t&&(r(!0),e&&e(o))},[r,e]),s=m.useCallback(({key:o})=>{o===t&&r(!1)},[r]);return qe("keydown",i,window),qe("keyup",s,window),n},Tc=t=>{const e=m.useRef();return m.useEffect(()=>{e.current=t}),e.current},Rc=()=>m.useContext(kc),Pc=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 c;(c=e.current)==null||c.classList.remove("humany-scrolling")},500)},[e]),s=m.useCallback(u=>{n.current=u.touches[0].clientY},[e]),o=u=>a(u)?u===e.current?u:null:u.parentElement?o(u.parentElement):null,a=u=>u.scrollWidth>u.clientWidth||u.scrollHeight>u.clientHeight,l=m.useCallback(u=>{if(!u.cancelable)return;const c=u.touches[0].clientY,d=o(u.target);if(!d)return;const f=d.scrollTop,p=n.current-c<0?"up":"down",g=f<=0&&p==="up",v=f>=d.scrollHeight-d.offsetHeight&&p==="down";(g||v)&&u.preventDefault(),n.current=c},[e,n]);return qe("scroll",i,e.current,()=>e.current&&t),qe("touchstart",s,e.current,()=>e.current&&t),qe("touchmove",l,e.current,()=>e.current&&t),t?[jc,e]:["",e]},jc=`
64
+ */var fn,ii;function lc(){if(ii)return fn;ii=1;var t=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function i(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var o={},a=0;a<10;a++)o["_"+String.fromCharCode(a)]=a;var l=Object.getOwnPropertyNames(o).map(function(c){return o[c]});if(l.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(c){u[c]=c}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return fn=i()?Object.assign:function(s,o){for(var a,l=r(s),u,c=1;c<arguments.length;c++){a=Object(arguments[c]);for(var d in a)e.call(a,d)&&(l[d]=a[d]);if(t){u=t(a);for(var f=0;f<u.length;f++)n.call(a,u[f])&&(l[u[f]]=a[u[f]])}}return l},fn}var hn,si;function cr(){if(si)return hn;si=1;var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return hn=t,hn}var pn,oi;function ds(){return oi||(oi=1,pn=Function.call.bind(Object.prototype.hasOwnProperty)),pn}var mn,ai;function uc(){if(ai)return mn;ai=1;var t=function(){};if(process.env.NODE_ENV!=="production"){var e=cr(),n={},r=ds();t=function(s){var o="Warning: "+s;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function i(s,o,a,l,u){if(process.env.NODE_ENV!=="production"){for(var c in s)if(r(s,c)){var d;try{if(typeof s[c]!="function"){var f=Error((l||"React class")+": "+a+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}d=s[c](o,c,l,a,null,e)}catch(g){d=g}if(d&&!(d instanceof Error)&&t((l||"React class")+": type specification of "+a+" `"+c+"` 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={})},mn=i,mn}var vn,ci;function dc(){if(ci)return vn;ci=1;var t=Kt,e=lc(),n=cr(),r=ds(),i=uc(),s=function(){};process.env.NODE_ENV!=="production"&&(s=function(a){var l="Warning: "+a;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function o(){return null}return vn=function(a,l){var u=typeof Symbol=="function"&&Symbol.iterator,c="@@iterator";function d(x){var w=x&&(u&&x[u]||x[c]);if(typeof w=="function")return w}var f="<<anonymous>>",p={array:$("array"),bigint:$("bigint"),bool:$("boolean"),func:$("function"),number:$("number"),object:$("object"),string:$("string"),symbol:$("symbol"),any:P(),arrayOf:k,element:S(),elementType:y(),instanceOf:L,node:B(),objectOf:A,oneOf:T,oneOfType:H,shape:q,exact:Q};function g(x,w){return x===w?x!==0||1/x===1/w:x!==x&&w!==w}function v(x,w){this.message=x,this.data=w&&typeof w=="object"?w:{},this.stack=""}v.prototype=Error.prototype;function b(x){if(process.env.NODE_ENV!=="production")var w={},C=0;function N(I,D,M,z,F,U,me){if(z=z||f,U=U||M,me!==n){if(l){var _=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 _.name="Invariant Violation",_}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ke=z+":"+M;!w[ke]&&C<3&&(s("You are manually calling a React.PropTypes validation function for the `"+U+"` prop on `"+z+"`. 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[ke]=!0,C++)}}return D[M]==null?I?D[M]===null?new v("The "+F+" `"+U+"` is marked as required "+("in `"+z+"`, but its value is `null`.")):new v("The "+F+" `"+U+"` is marked as required in "+("`"+z+"`, but its value is `undefined`.")):null:x(D,M,z,F,U)}var j=N.bind(null,!1);return j.isRequired=N.bind(null,!0),j}function $(x){function w(C,N,j,I,D,M){var z=C[N],F=ne(z);if(F!==x){var U=le(z);return new v("Invalid "+I+" `"+D+"` of type "+("`"+U+"` supplied to `"+j+"`, expected ")+("`"+x+"`."),{expectedType:x})}return null}return b(w)}function P(){return b(o)}function k(x){function w(C,N,j,I,D){if(typeof x!="function")return new v("Property `"+D+"` of component `"+j+"` has invalid PropType notation inside arrayOf.");var M=C[N];if(!Array.isArray(M)){var z=ne(M);return new v("Invalid "+I+" `"+D+"` of type "+("`"+z+"` supplied to `"+j+"`, expected an array."))}for(var F=0;F<M.length;F++){var U=x(M,F,j,I,D+"["+F+"]",n);if(U instanceof Error)return U}return null}return b(w)}function S(){function x(w,C,N,j,I){var D=w[C];if(!a(D)){var M=ne(D);return new v("Invalid "+j+" `"+I+"` of type "+("`"+M+"` supplied to `"+N+"`, expected a single ReactElement."))}return null}return b(x)}function y(){function x(w,C,N,j,I){var D=w[C];if(!t.isValidElementType(D)){var M=ne(D);return new v("Invalid "+j+" `"+I+"` of type "+("`"+M+"` supplied to `"+N+"`, expected a single ReactElement type."))}return null}return b(x)}function L(x){function w(C,N,j,I,D){if(!(C[N]instanceof x)){var M=x.name||f,z=V(C[N]);return new v("Invalid "+I+" `"+D+"` of type "+("`"+z+"` supplied to `"+j+"`, expected ")+("instance of `"+M+"`."))}return null}return b(w)}function T(x){if(!Array.isArray(x))return process.env.NODE_ENV!=="production"&&(arguments.length>1?s("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])."):s("Invalid argument supplied to oneOf, expected an array.")),o;function w(C,N,j,I,D){for(var M=C[N],z=0;z<x.length;z++)if(g(M,x[z]))return null;var F=JSON.stringify(x,function(me,_){var ke=le(_);return ke==="symbol"?String(_):_});return new v("Invalid "+I+" `"+D+"` of value `"+String(M)+"` "+("supplied to `"+j+"`, expected one of "+F+"."))}return b(w)}function A(x){function w(C,N,j,I,D){if(typeof x!="function")return new v("Property `"+D+"` of component `"+j+"` has invalid PropType notation inside objectOf.");var M=C[N],z=ne(M);if(z!=="object")return new v("Invalid "+I+" `"+D+"` of type "+("`"+z+"` supplied to `"+j+"`, expected an object."));for(var F in M)if(r(M,F)){var U=x(M,F,j,I,D+"."+F,n);if(U instanceof Error)return U}return null}return b(w)}function H(x){if(!Array.isArray(x))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var w=0;w<x.length;w++){var C=x[w];if(typeof C!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+ee(C)+" at index "+w+"."),o}function N(j,I,D,M,z){for(var F=[],U=0;U<x.length;U++){var me=x[U],_=me(j,I,D,M,z,n);if(_==null)return null;_.data&&r(_.data,"expectedType")&&F.push(_.data.expectedType)}var ke=F.length>0?", expected one of type ["+F.join(", ")+"]":"";return new v("Invalid "+M+" `"+z+"` supplied to "+("`"+D+"`"+ke+"."))}return b(N)}function B(){function x(w,C,N,j,I){return W(w[C])?null:new v("Invalid "+j+" `"+I+"` supplied to "+("`"+N+"`, expected a ReactNode."))}return b(x)}function Y(x,w,C,N,j){return new v((x||"React class")+": "+w+" type `"+C+"."+N+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+j+"`.")}function q(x){function w(C,N,j,I,D){var M=C[N],z=ne(M);if(z!=="object")return new v("Invalid "+I+" `"+D+"` of type `"+z+"` "+("supplied to `"+j+"`, expected `object`."));for(var F in x){var U=x[F];if(typeof U!="function")return Y(j,I,D,F,le(U));var me=U(M,F,j,I,D+"."+F,n);if(me)return me}return null}return b(w)}function Q(x){function w(C,N,j,I,D){var M=C[N],z=ne(M);if(z!=="object")return new v("Invalid "+I+" `"+D+"` of type `"+z+"` "+("supplied to `"+j+"`, expected `object`."));var F=e({},C[N],x);for(var U in F){var me=x[U];if(r(x,U)&&typeof me!="function")return Y(j,I,D,U,le(me));if(!me)return new v("Invalid "+I+" `"+D+"` key `"+U+"` supplied to `"+j+"`.\nBad object: "+JSON.stringify(C[N],null," ")+`
65
+ Valid keys: `+JSON.stringify(Object.keys(x),null," "));var _=me(M,U,j,I,D+"."+U,n);if(_)return _}return null}return b(w)}function W(x){switch(typeof x){case"number":case"string":case"undefined":return!0;case"boolean":return!x;case"object":if(Array.isArray(x))return x.every(W);if(x===null||a(x))return!0;var w=d(x);if(w){var C=w.call(x),N;if(w!==x.entries){for(;!(N=C.next()).done;)if(!W(N.value))return!1}else for(;!(N=C.next()).done;){var j=N.value;if(j&&!W(j[1]))return!1}}else return!1;return!0;default:return!1}}function te(x,w){return x==="symbol"?!0:w?w["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&w instanceof Symbol:!1}function ne(x){var w=typeof x;return Array.isArray(x)?"array":x instanceof RegExp?"object":te(w,x)?"symbol":w}function le(x){if(typeof x>"u"||x===null)return""+x;var w=ne(x);if(w==="object"){if(x instanceof Date)return"date";if(x instanceof RegExp)return"regexp"}return w}function ee(x){var w=le(x);switch(w){case"array":case"object":return"an "+w;case"boolean":case"date":case"regexp":return"a "+w;default:return w}}function V(x){return!x.constructor||!x.constructor.name?f:x.constructor.name}return p.checkPropTypes=i,p.resetWarningCache=i.resetWarningCache,p.PropTypes=p,p},vn}var gn,li;function fc(){if(li)return gn;li=1;var t=cr();function e(){}function n(){}return n.resetWarningCache=e,gn=function(){function r(o,a,l,u,c,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 s={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 s.PropTypes=s,s},gn}if(process.env.NODE_ENV!=="production"){var hc=Kt,pc=!0;_n.exports=dc()(hc.isElement,pc)}else _n.exports=fc()();var mc=_n.exports;const E=nr(mc);function vc(t,e){return t.classList?!!e&&t.classList.contains(e):(" "+(t.className.baseVal||t.className)+" ").indexOf(" "+e+" ")!==-1}function gc(t,e){t.classList?t.classList.add(e):vc(t,e)||(typeof t.className=="string"?t.className=t.className+" "+e:t.setAttribute("class",(t.className&&t.className.baseVal||"")+" "+e))}function ui(t,e){return t.replace(new RegExp("(^|\\s)"+e+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function yc(t,e){t.classList?t.classList.remove(e):typeof t.className=="string"?t.className=ui(t.className,e):t.setAttribute("class",ui(t.className&&t.className.baseVal||"",e))}const di={disabled:!1};var bc=process.env.NODE_ENV!=="production"?E.oneOfType([E.number,E.shape({enter:E.number,exit:E.number,appear:E.number}).isRequired]):null,xc=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 fs=m.createContext(null);var hs=function(e){return e.scrollTop},at="unmounted",_e="exited",Le="entering",Be="entered",Ln="exiting",Re=function(t){we(e,t);function e(r,i){var s;s=t.call(this,r,i)||this;var o=i,a=o&&!o.isMounting?r.enter:r.appear,l;return s.appearStatus=null,r.in?a?(l=_e,s.appearStatus=Le):l=Be:r.unmountOnExit||r.mountOnEnter?l=at:l=_e,s.state={status:l},s.nextCallback=null,s}e.getDerivedStateFromProps=function(i,s){var o=i.in;return o&&s.status===at?{status:_e}:null};var n=e.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var s=null;if(i!==this.props){var o=this.state.status;this.props.in?o!==Le&&o!==Be&&(s=Le):(o===Le||o===Be)&&(s=Ln)}this.updateStatus(!1,s)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,s,o,a;return s=o=a=i,i!=null&&typeof i!="number"&&(s=i.exit,o=i.enter,a=i.appear!==void 0?i.appear:o),{exit:s,enter:o,appear:a}},n.updateStatus=function(i,s){if(i===void 0&&(i=!1),s!==null)if(this.cancelNextCallback(),s===Le){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:ot.findDOMNode(this);o&&hs(o)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===_e&&this.setState({status:at})},n.performEnter=function(i){var s=this,o=this.props.enter,a=this.context?this.context.isMounting:i,l=this.props.nodeRef?[a]:[ot.findDOMNode(this),a],u=l[0],c=l[1],d=this.getTimeouts(),f=a?d.appear:d.enter;if(!i&&!o||di.disabled){this.safeSetState({status:Be},function(){s.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:Le},function(){s.props.onEntering(u,c),s.onTransitionEnd(f,function(){s.safeSetState({status:Be},function(){s.props.onEntered(u,c)})})})},n.performExit=function(){var i=this,s=this.props.exit,o=this.getTimeouts(),a=this.props.nodeRef?void 0:ot.findDOMNode(this);if(!s||di.disabled){this.safeSetState({status:_e},function(){i.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:Ln},function(){i.props.onExiting(a),i.onTransitionEnd(o.exit,function(){i.safeSetState({status:_e},function(){i.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,s){s=this.setNextCallback(s),this.setState(i,s)},n.setNextCallback=function(i){var s=this,o=!0;return this.nextCallback=function(a){o&&(o=!1,s.nextCallback=null,i(a))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},n.onTransitionEnd=function(i,s){this.setNextCallback(s);var o=this.props.nodeRef?this.props.nodeRef.current:ot.findDOMNode(this),a=i==null&&!this.props.addEndListener;if(!o||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],u=l[0],c=l[1];this.props.addEndListener(u,c)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===at)return null;var s=this.props,o=s.children;s.in,s.mountOnEnter,s.unmountOnExit,s.appear,s.enter,s.exit,s.timeout,s.addEndListener,s.onEnter,s.onEntering,s.onEntered,s.onExit,s.onExiting,s.onExited,s.nodeRef;var a=et(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return m.createElement(fs.Provider,{value:null},typeof o=="function"?o(i,a):m.cloneElement(m.Children.only(o),a))},e}(m.Component);Re.contextType=fs;Re.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:E.shape({current:typeof Element>"u"?E.any:function(t,e,n,r,i,s){var o=t[e];return E.instanceOf(o&&"ownerDocument"in o?o.ownerDocument.defaultView.Element:Element)(t,e,n,r,i,s)}}),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=bc;e.addEndListener||(n=n.isRequired);for(var r=arguments.length,i=new Array(r>1?r-1:0),s=1;s<r;s++)i[s-1]=arguments[s];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 Ve(){}Re.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ve,onEntering:Ve,onEntered:Ve,onExit:Ve,onExiting:Ve,onExited:Ve};Re.UNMOUNTED=at;Re.EXITED=_e;Re.ENTERING=Le;Re.ENTERED=Be;Re.EXITING=Ln;const ps=Re;var wc=function(e,n){return e&&n&&n.split(" ").forEach(function(r){return gc(e,r)})},yn=function(e,n){return e&&n&&n.split(" ").forEach(function(r){return yc(e,r)})},lr=function(t){we(e,t);function e(){for(var r,i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];return r=t.call.apply(t,[this].concat(s))||this,r.appliedClasses={appear:{},enter:{},exit:{}},r.onEnter=function(a,l){var u=r.resolveArguments(a,l),c=u[0],d=u[1];r.removeClasses(c,"exit"),r.addClass(c,d?"appear":"enter","base"),r.props.onEnter&&r.props.onEnter(a,l)},r.onEntering=function(a,l){var u=r.resolveArguments(a,l),c=u[0],d=u[1],f=d?"appear":"enter";r.addClass(c,f,"active"),r.props.onEntering&&r.props.onEntering(a,l)},r.onEntered=function(a,l){var u=r.resolveArguments(a,l),c=u[0],d=u[1],f=d?"appear":"enter";r.removeClasses(c,f),r.addClass(c,f,"done"),r.props.onEntered&&r.props.onEntered(a,l)},r.onExit=function(a){var l=r.resolveArguments(a),u=l[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 l=r.resolveArguments(a),u=l[0];r.addClass(u,"exit","active"),r.props.onExiting&&r.props.onExiting(a)},r.onExited=function(a){var l=r.resolveArguments(a),u=l[0];r.removeClasses(u,"exit"),r.addClass(u,"exit","done"),r.props.onExited&&r.props.onExited(a)},r.resolveArguments=function(a,l){return r.props.nodeRef?[r.props.nodeRef.current,a]:[a,l]},r.getClassNames=function(a){var l=r.props.classNames,u=typeof l=="string",c=u&&l?l+"-":"",d=u?""+c+a:l[a],f=u?d+"-active":l[a+"Active"],p=u?d+"-done":l[a+"Done"];return{baseClassName:d,activeClassName:f,doneClassName:p}},r}var n=e.prototype;return n.addClass=function(i,s,o){var a=this.getClassNames(s)[o+"ClassName"],l=this.getClassNames("enter"),u=l.doneClassName;s==="appear"&&o==="done"&&u&&(a+=" "+u),o==="active"&&i&&hs(i),a&&(this.appliedClasses[s][o]=a,wc(i,a))},n.removeClasses=function(i,s){var o=this.appliedClasses[s],a=o.base,l=o.active,u=o.done;this.appliedClasses[s]={},a&&yn(i,a),l&&yn(i,l),u&&yn(i,u)},n.render=function(){var i=this.props;i.classNames;var s=et(i,["classNames"]);return m.createElement(ps,ue({},s,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},e}(m.Component);lr.defaultProps={classNames:""};lr.propTypes=process.env.NODE_ENV!=="production"?ue({},ps.propTypes,{classNames:xc,onEnter:E.func,onEntering:E.func,onEntered:E.func,onExit:E.func,onExiting:E.func,onExited:E.func}):{};const Ec=lr,Cc=m.createContext(new Fn);m.createContext(1);const Sc=m.createContext({id:"",type:"",name:"",branch:""});m.createContext({});const kc=m.createContext(null);m.createContext(null);const tt=()=>m.useContext(Cc),Oc=t=>{const e=m.useContext(Sc),n=vs(),[r,i]=m.useState();return m.useEffect(()=>{if((t||e.id)&&n){const s=n.nodes.get(t||e.id);i(s)}},[t,e.id,n]),r},ms=()=>{const t=m.useRef(!1);return m.useEffect(()=>(t.current=!0,()=>{t.current=!1}),[]),t},vs=t=>{const e=tt(),[n,r]=m.useState(null),i=ms();return m.useEffect(()=>{Hi.getInstance(t||e).then(s=>{i.current&&r(s)})},[i]),n},Nc=t=>{const e=Oc(t),n=vs(),[r,i]=m.useState({}),s=ms();return m.useEffect(()=>{e&&s.current&&i(e.attributes.context)},[s,e]),m.useEffect(()=>{if(n){const o=n.events.subscribe("components:context-changed",(a,l)=>{e===l.node&&s.current&&i(l.node.attributes.context)});return()=>{o()}}},[s,n,e]),r},qe=(t,e,n=window,r=()=>!0)=>{const i=m.useRef(()=>{});m.useEffect(()=>{i.current=e},[e]),m.useEffect(()=>{if(!(n&&r()))return;const o=a=>i.current(a);return n.addEventListener(t,o),()=>{n.removeEventListener(t,o)}},[t,n])},$c=t=>{const e=tt(),{events:n}=(t||e).get("$widget");return n},ct=(t,e)=>{const[n,r]=m.useState(!1),i=m.useCallback(o=>{const{key:a}=o;a===t&&(r(!0),e&&e(o))},[r,e]),s=m.useCallback(({key:o})=>{o===t&&r(!1)},[r]);return qe("keydown",i,window),qe("keyup",s,window),n},Tc=t=>{const e=m.useRef();return m.useEffect(()=>{e.current=t}),e.current},Rc=()=>m.useContext(kc),Pc=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 c;(c=e.current)==null||c.classList.remove("humany-scrolling")},500)},[e]),s=m.useCallback(u=>{n.current=u.touches[0].clientY},[e]),o=u=>a(u)?u===e.current?u:null:u.parentElement?o(u.parentElement):null,a=u=>u.scrollWidth>u.clientWidth||u.scrollHeight>u.clientHeight,l=m.useCallback(u=>{if(!u.cancelable)return;const c=u.touches[0].clientY,d=o(u.target);if(!d)return;const f=d.scrollTop,p=n.current-c<0?"up":"down",g=f<=0&&p==="up",v=f>=d.scrollHeight-d.offsetHeight&&p==="down";(g||v)&&u.preventDefault(),n.current=c},[e,n]);return qe("scroll",i,e.current,()=>e.current&&t),qe("touchstart",s,e.current,()=>e.current&&t),qe("touchmove",l,e.current,()=>e.current&&t),t?[jc,e]:["",e]},jc=`
66
66
  overflow-y: ${ni()===jn.Chrome||ni()===jn.EdgeChromium?"overlay":"auto"};
67
67
  overflow-x: hidden;
68
68
  -ms-overflow-style: none; /* IE 10+ */
@@ -90,7 +90,7 @@ Valid keys: `+JSON.stringify(Object.keys(x),null," "));var A=me(M,U,j,I,D+"."+U
90
90
  background-color: #7F7F7F;
91
91
  }
92
92
  }
93
- `,Ac=(t=!1)=>{const[e,n]=m.useState(t),r=m.useCallback(i=>{n(typeof i=="boolean"?i:s=>!s)},[]);return[e,r]},ur=(t,e,n=[],r)=>{const i=$c(r);return m.useEffect(()=>{if(i){const s=i.subscribe(t,e);return()=>{s()}}},[i].concat(n)),s=>i==null?void 0:i.dispatch(t,s)},gs=(t,e)=>{const n=ur("widget:menu-toggled",(r,i)=>{i!==t&&e()});return()=>n(t)},dr=m.forwardRef(({className:t,children:e,...n},r)=>h.jsx("span",{ref:r,className:ie(t,"humany-text"),...Se(n),children:e})),ys=t=>te`
93
+ `,Ac=(t=!1)=>{const[e,n]=m.useState(t),r=m.useCallback(i=>{n(typeof i=="boolean"?i:s=>!s)},[]);return[e,r]},ur=(t,e,n=[],r)=>{const i=$c(r);return m.useEffect(()=>{if(i){const s=i.subscribe(t,e);return()=>{s()}}},[i].concat(n)),s=>i==null?void 0:i.dispatch(t,s)},gs=(t,e)=>{const n=ur("widget:menu-toggled",(r,i)=>{i!==t&&e()});return()=>n(t)},dr=m.forwardRef(({className:t,children:e,...n},r)=>h.jsx("span",{ref:r,className:ie(t,"humany-text"),...Se(n),children:e})),ys=t=>re`
94
94
  display: flex;
95
95
  justify-content: center;
96
96
  flex-direction: column;
@@ -99,7 +99,7 @@ Valid keys: `+JSON.stringify(Object.keys(x),null," "));var A=me(M,U,j,I,D+"."+U
99
99
  border: ${t.theme.border};
100
100
  box-shadow: ${t.theme.boxShadow||"none"};
101
101
  ${t["data-loading"]&&"min-height: 150px;"}
102
- `,bs=t=>{var e,n,r;return te`
102
+ `,bs=t=>{var e,n,r;return re`
103
103
  cursor: pointer;
104
104
  text-align: center;
105
105
  border: none;
@@ -108,11 +108,11 @@ Valid keys: `+JSON.stringify(Object.keys(x),null," "));var A=me(M,U,j,I,D+"."+U
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
- `},$e=t=>{var e,n,r;return te`
111
+ `},$e=t=>{var e,n,r;return re`
112
112
  outline: ${(e=t.theme.accessibility)==null?void 0:e.border};
113
113
  color: ${(r=(n=t.theme.accessibility)==null?void 0:n.colors)==null?void 0:r.inactiveText};
114
114
  border-color: transparent;
115
- `},xs=R(je)`
115
+ `},xs=R(Ae)`
116
116
  position: absolute;
117
117
  top: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.normal}};
118
118
  right: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.normal}};
@@ -133,7 +133,7 @@ Valid keys: `+JSON.stringify(Object.keys(x),null," "));var A=me(M,U,j,I,D+"."+U
133
133
  font-weight: normal;
134
134
  line-height: 1.2em;
135
135
  color: ${t=>{var e;return(e=t.theme.colors)==null?void 0:e.text}};
136
- `,ws=t=>{var e;return te`
136
+ `,ws=t=>{var e;return re`
137
137
  padding: 0;
138
138
  margin: 0;
139
139
  list-style: none;
@@ -152,7 +152,7 @@ Valid keys: `+JSON.stringify(Object.keys(x),null," "));var A=me(M,U,j,I,D+"."+U
152
152
  > li:last-of-type {
153
153
  margin: 0;
154
154
  }
155
- `},hr=({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]),ot.createPortal(n,r)},vt=({text:t="",backgroundSize:e="contain",size:n=12,symbol:r={content:"",type:""},elementStyle:i={},className:s,...o})=>{const{type:a,content:l}=r,u={"aria-label":t,role:"presentation"};switch(a){case"Uri":{const c={backgroundSize:e,backgroundImage:`url('${l}')`,backgroundRepeat:"no-repeat",backgroundPosition:"center",backgroundAttachment:"center"};return h.jsx("i",{className:ie(s,"humany-icon","humany-custom-icon"),title:t,style:{...c,...i},...u,...o})}case"Svg":{const c={className:ie(s,"humany-icon"),width:`${n}`,fill:"none",xmlns:"http://www.w3.org/2000/svg",...o,ref:null},d={minWidth:`${n}`};switch(l){case"search":return h.jsxs("svg",{viewBox:"0 0 32 30",...c,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",...c,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",...c,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,...c,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,...c,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(_c,{viewBox:"0 0 14 14",style:d,...c,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,...c,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",...c,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",...c,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",...c,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",...c,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",...c,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",...c,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",...c,children:h.jsx("path",{d:"M0 1H22",stroke:"white"})});case"sorting":return h.jsx("svg",{viewBox:"0 0 18 14",...c,children:h.jsx("path",{d:"M18 1H0M8 13H0M13 7H0"})});case"copy":return h.jsxs("svg",{viewBox:"0 0 19 17",...c,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",...c,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",...c,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",...c,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",...c,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",...c,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",...c,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",...c,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",...c,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",...c,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",...c,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",...c,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",...c,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",...c,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",...c,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",...c,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(Hc,{className:s,faIcon:l,title:t,...o});default:case"Text":return t?h.jsx("i",{className:ie(s,"humany-letter-symbol"),title:t,...u,...o,children:t.substring(0,2)}):null}},_c=R.svg`
155
+ `},hr=({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]),ot.createPortal(n,r)},gt=({text:t="",backgroundSize:e="contain",size:n=12,symbol:r={content:"",type:""},elementStyle:i={},className:s,...o})=>{const{type:a,content:l}=r,u={"aria-label":t,role:"presentation"};switch(a){case"Uri":{const c={backgroundSize:e,backgroundImage:`url('${l}')`,backgroundRepeat:"no-repeat",backgroundPosition:"center",backgroundAttachment:"center"};return h.jsx("i",{className:ie(s,"humany-icon","humany-custom-icon"),title:t,style:{...c,...i},...u,...o})}case"Svg":{const c={className:ie(s,"humany-icon"),width:`${n}`,fill:"none",xmlns:"http://www.w3.org/2000/svg",...o,ref:null},d={minWidth:`${n}`};switch(l){case"search":return h.jsxs("svg",{viewBox:"0 0 32 30",...c,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",...c,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",...c,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,...c,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,...c,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(_c,{viewBox:"0 0 14 14",style:d,...c,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,...c,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",...c,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",...c,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",...c,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",...c,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",...c,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",...c,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",...c,children:h.jsx("path",{d:"M0 1H22",stroke:"white"})});case"sorting":return h.jsx("svg",{viewBox:"0 0 18 14",...c,children:h.jsx("path",{d:"M18 1H0M8 13H0M13 7H0"})});case"copy":return h.jsxs("svg",{viewBox:"0 0 19 17",...c,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",...c,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",...c,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",...c,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",...c,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",...c,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",...c,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",...c,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",...c,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",...c,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",...c,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",...c,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",...c,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",...c,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",...c,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",...c,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(Hc,{className:s,faIcon:l,title:t,...o});default:case"Text":return t?h.jsx("i",{className:ie(s,"humany-letter-symbol"),title:t,...u,...o,children:t.substring(0,2)}):null}},_c=R.svg`
156
156
  transform: rotate(180deg);
157
157
  `,Lc={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",p:"p",span:"span"},pr=({variant:t,component:e,className:n,children:r})=>{const{typographyVariantMapping:i={}}=Nc(),s={...Lc,...i},o=e||s[t]||"span";return h.jsx(Dc,{className:n,as:o,children:r})},Dc=R.span``,Qt=R.div`
158
158
  font-family: ${t=>{var e;return(e=t.theme.fonts)==null?void 0:e.type}};
@@ -179,7 +179,7 @@ Valid keys: `+JSON.stringify(Object.keys(x),null," "));var A=me(M,U,j,I,D+"."+U
179
179
  color: ${t=>{var e;return(e=t.theme.colors)==null?void 0:e.text}};
180
180
  font-size: ${t=>{var e;return(e=t.theme.fonts)==null?void 0:e.normal}};
181
181
  line-height: 1.2em;
182
- `;const en=t=>te`
182
+ `;const en=t=>re`
183
183
  transition: ${t.duration}ms;
184
184
  `;R(Qt)`
185
185
  max-height: 0;
@@ -253,7 +253,7 @@ Valid keys: `+JSON.stringify(Object.keys(x),null," "));var A=me(M,U,j,I,D+"."+U
253
253
  &.humany-drawer-transition-exit-done {
254
254
  height: 0;
255
255
  }
256
- `;const Mc=(t,e,n)=>{const[r,i]=m.useState(0),[s,o]=m.useState(0),a=m.useCallback((l,u)=>{if(l.preventDefault(),u){const c=u.getBoundingClientRect();i(Math.max(document.body.clientWidth-c.right,1)),o(c.bottom+window.scrollY)}},[r,s,i,o]);return m.useEffect(()=>{if(!n||!t)return;const l=n.getBoundingClientRect(),u={x:r,y:s};l.left<0&&(u.x=0),l.bottom>window.innerHeight&&(u.y=0),u.x!==r&&i(u.x),u.y!==s&&o(u.y)},[n,t,e]),[{x:r,y:s},a]};m.forwardRef(({className:t="",children:e=null,trigger:n,closeButtonAriaLabel:r,...i},s)=>{const o=m.useRef(),a=m.useRef(),l=m.useRef();m.useImperativeHandle(s,()=>l.current,[l.current]);const u=m.useRef(Xe()),[c,d]=m.useState(!1),f=Tc(c),[{x:p,y:g},v]=Mc(c,u.current,l.current),y=ct("Escape");m.useEffect(()=>{y&&d(!1)},[y]),m.useEffect(()=>{c&&o.current?o.current.focus():!c&&a.current&&f&&a.current.focus()},[c,o.current,a.current]),qe("click",O=>{const{target:T}=O;!l.current||!T||l.current!==T&&!l.current.contains(T)&&d(!1)},window),ur("router:changed",()=>{d(!1)});const S=gs(u.current,()=>{d(!1)}),$=m.useCallback(O=>{O.stopPropagation(),v(O,a.current),d(!c),S()},[S,v,d]);return h.jsxs(h.Fragment,{children:[c&&h.jsx(hr,{children:h.jsxs(Ic,{className:ie("humany-dropdown",`humany-dropdown-${u.current}`,t),...i,x:p,y:g,ref:l,children:[h.jsx(xs,{onClick:()=>d(!1),tabIndex:0,ref:o,"aria-label":r,children:h.jsx(vt,{symbol:{type:"Svg",content:"close"}})}),e]})}),m.cloneElement(n,{onClick:$,ref:a,"aria-label":n.props.title,"aria-expanded":c})]})});const Ic=R.div`
256
+ `;const Mc=(t,e,n)=>{const[r,i]=m.useState(0),[s,o]=m.useState(0),a=m.useCallback((l,u)=>{if(l.preventDefault(),u){const c=u.getBoundingClientRect();i(Math.max(document.body.clientWidth-c.right,1)),o(c.bottom+window.scrollY)}},[r,s,i,o]);return m.useEffect(()=>{if(!n||!t)return;const l=n.getBoundingClientRect(),u={x:r,y:s};l.left<0&&(u.x=0),l.bottom>window.innerHeight&&(u.y=0),u.x!==r&&i(u.x),u.y!==s&&o(u.y)},[n,t,e]),[{x:r,y:s},a]};m.forwardRef(({className:t="",children:e=null,trigger:n,closeButtonAriaLabel:r,...i},s)=>{const o=m.useRef(),a=m.useRef(),l=m.useRef();m.useImperativeHandle(s,()=>l.current,[l.current]);const u=m.useRef(Xe()),[c,d]=m.useState(!1),f=Tc(c),[{x:p,y:g},v]=Mc(c,u.current,l.current),b=ct("Escape");m.useEffect(()=>{b&&d(!1)},[b]),m.useEffect(()=>{c&&o.current?o.current.focus():!c&&a.current&&f&&a.current.focus()},[c,o.current,a.current]),qe("click",k=>{const{target:S}=k;!l.current||!S||l.current!==S&&!l.current.contains(S)&&d(!1)},window),ur("router:changed",()=>{d(!1)});const $=gs(u.current,()=>{d(!1)}),P=m.useCallback(k=>{k.stopPropagation(),v(k,a.current),d(!c),$()},[$,v,d]);return h.jsxs(h.Fragment,{children:[c&&h.jsx(hr,{children:h.jsxs(Ic,{className:ie("humany-dropdown",`humany-dropdown-${u.current}`,t),...i,x:p,y:g,ref:l,children:[h.jsx(xs,{onClick:()=>d(!1),tabIndex:0,ref:o,"aria-label":r,children:h.jsx(gt,{symbol:{type:"Svg",content:"close"}})}),e]})}),m.cloneElement(n,{onClick:P,ref:a,"aria-label":n.props.title,"aria-expanded":c})]})});const Ic=R.div`
257
257
  ${ys}
258
258
  padding: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.medium}};
259
259
  min-width: 150px;
@@ -270,7 +270,7 @@ Valid keys: `+JSON.stringify(Object.keys(x),null," "));var A=me(M,U,j,I,D+"."+U
270
270
  justify-content: center;
271
271
  grid-auto-rows: max-content;
272
272
  ${tc}
273
- `,Es=m.forwardRef(({htmlParseInstruction:t=null,className:e,html:n,...r},i)=>{const s=tt(),[o,a]=m.useState();return m.useEffect(()=>{const l=oc(s,n),u={...l,...t,transform:{...l.transform,...t==null?void 0:t.transform}},c=ic(n,u);a(c)},[n,t]),h.jsx("div",{className:ie(e,"humany-html"),...Se(r),ref:i,children:o})}),Hc=({faIcon:t,title:e,className:n="",role:r="presentation",...i})=>h.jsx("i",{className:ie(n,`fa fa-${t}`),title:e,role:r,...Se(i)}),zc=m.forwardRef(({className:t="",autoFocus:e=!1,onFocusChange:n=()=>{},onEnter:r=()=>{},onEscape:i=()=>{},selectAllOnFocus:s,onChange:o=()=>{},disabled:a=!1,type:l,...u},c)=>{const[d,f]=m.useState(e),p=m.useRef();m.useImperativeHandle(c,()=>p.current),m.useEffect(()=>{var y;e&&((y=p==null?void 0:p.current)==null||y.focus())},[e,c,p]);const g=(y,S)=>{f(y),n&&n(y),s&&y&&S.target.select()},v={...Se(u),disabled:a,autoFocus:e,type:l,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=>o(y.target.value||""),className:ie(t,"humany-input"),"data-type":l};return l!=="textarea"?h.jsx("input",{...v,ref:p}):h.jsx("textarea",{...v,ref:p})}),mr=m.forwardRef(({className:t,items:e,renderItem:n,renderLi:r=!1,...i},s)=>h.jsx("ul",{className:ie(t,"humany-list"),"data-item-count":e.length,...Se(i),ref:s,children:e.map((o,a,l)=>r?h.jsx("li",{className:"humany-list-item",children:n(o,a,l)},o.id||a):n(o,a,l))})),Bc=m.forwardRef(({text:t,html:e,header:n,className:r,htmlParseInstruction:i,symbol:s,...o},a)=>h.jsxs("div",{className:ie(r,"humany-paragraph"),...Se(o),ref:a,children:[n?h.jsxs(pr,{variant:"h1",children:[s?h.jsx(vt,{symbol:s}):null,n]}):null,e?h.jsx(Es,{html:e,htmlParseInstruction:i}):null,t?h.jsx(dr,{children:t}):null]}));m.forwardRef(({header:t,customHeader:e,text:n,html:r,className:i,children:s,symbol:o,items:a,renderItem:l,renderLi:u,ulProps:c,...d},f)=>h.jsxs("div",{className:ie(i,"humany-item-list"),"data-item-count":a.length,...Se(d),ref:f,children:[e||(t||n||r?h.jsx(Bc,{symbol:o,header:t,text:n,html:r}):null),a.length?h.jsx(mr,{items:a,renderItem:l,renderLi:u,...c}):null,s]}));var Cs=function(){};process.env.NODE_ENV!=="production"&&(Cs=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 s=0,o="Warning: "+e.replace(/%s/g,function(){return n[s++]});typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}});var Wc=Cs,Uc=Wc;Fc(Uc);function Fc(t){return t&&t.__esModule?t:{default:t}}function Et(t){return t.charAt(0)==="/"}function bn(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 qc(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",n=t&&t.split("/")||[],r=e&&e.split("/")||[],i=t&&Et(t),s=e&&Et(e),o=i||s;if(t&&Et(t)?r=n:n.length&&(r.pop(),r=r.concat(n)),!r.length)return"/";var a=void 0;if(r.length){var l=r[r.length-1];a=l==="."||l===".."||l===""}else a=!1;for(var u=0,c=r.length;c>=0;c--){var d=r[c];d==="."?bn(r,c):d===".."?(bn(r,c),u++):u&&(bn(r,c),u--)}if(!o)for(;u--;u)r.unshift("..");o&&r[0]!==""&&(!r[0]||!Et(r[0]))&&r.unshift("");var f=r.join("/");return a&&f.substr(-1)!=="/"&&(f+="/"),f}const Yc=Object.freeze(Object.defineProperty({__proto__:null,default:qc},Symbol.toStringTag,{value:"Module"})),Zc=ts(Yc);var fi=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 jt(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(l,u){return jt(l,e[u])});var n=typeof t>"u"?"undefined":fi(t),r=typeof e>"u"?"undefined":fi(e);if(n!==r)return!1;if(n==="object"){var i=t.valueOf(),s=e.valueOf();if(i!==t||s!==e)return jt(i,s);var o=Object.keys(t),a=Object.keys(e);return o.length!==a.length?!1:o.every(function(l){return jt(t[l],e[l])})}return!1}const Kc=Object.freeze(Object.defineProperty({__proto__:null,default:jt},Symbol.toStringTag,{value:"Module"})),Gc=ts(Kc);var Jc=Zc;Ss(Jc);var Xc=Gc;Ss(Xc);function Ss(t){return t&&t.__esModule?t:{default:t}}var Dn=(t=>(t.scopedHash="scopedHash",t.hash="hash",t.browser="browser",t.memory="memory",t))(Dn||{});const Qc=(t,e)=>{const n=`humany-${e}=([^&?]+)&?`,r=new RegExp(n,"i"),i=t.match(r);return i&&i[1]||"/"};Bt(t=>{t.createCommand("routing",e=>n=>{const r={mode:n.mode};n.basePath&&(r.basePath=n.basePath),e.container.register("routingSettings",r)})});function Ct(t){return t.charAt(0)==="/"}function xn(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 el(t,e){e===void 0&&(e="");var n=t&&t.split("/")||[],r=e&&e.split("/")||[],i=t&&Ct(t),s=e&&Ct(e),o=i||s;if(t&&Ct(t)?r=n:n.length&&(r.pop(),r=r.concat(n)),!r.length)return"/";var a;if(r.length){var l=r[r.length-1];a=l==="."||l===".."||l===""}else a=!1;for(var u=0,c=r.length;c>=0;c--){var d=r[c];d==="."?xn(r,c):d===".."?(xn(r,c),u++):u&&(xn(r,c),u--)}if(!o)for(;u--;u)r.unshift("..");o&&r[0]!==""&&(!r[0]||!Ct(r[0]))&&r.unshift("");var f=r.join("/");return a&&f.substr(-1)!=="/"&&(f+="/"),f}var tl=process.env.NODE_ENV==="production";function J(t,e){if(!tl){if(t)return;var n="Warning: "+e;typeof console<"u"&&console.warn(n);try{throw Error(n)}catch{}}}var nl=process.env.NODE_ENV==="production",wn="Invariant failed";function ye(t,e){if(!t){if(nl)throw new Error(wn);var n=typeof e=="function"?e():e,r=n?"".concat(wn,": ").concat(n):wn;throw new Error(r)}}function lt(t){return t.charAt(0)==="/"?t:"/"+t}function hi(t){return t.charAt(0)==="/"?t.substr(1):t}function vr(t,e){return t.toLowerCase().indexOf(e.toLowerCase())===0&&"/?#".indexOf(t.charAt(e.length))!==-1}function ks(t,e){return vr(t,e)?t.substr(e.length):t}function Os(t){return t.charAt(t.length-1)==="/"?t.slice(0,-1):t}function rl(t){var e=t||"/",n="",r="",i=e.indexOf("#");i!==-1&&(r=e.substr(i),e=e.substr(0,i));var s=e.indexOf("?");return s!==-1&&(n=e.substr(s),e=e.substr(0,s)),{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 be(t,e,n,r){var i;typeof t=="string"?(i=rl(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(s){throw s instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):s}return n&&(i.key=n),r?i.pathname?i.pathname.charAt(0)!=="/"&&(i.pathname=el(i.pathname,r.pathname)):i.pathname=r.pathname:i.pathname||(i.pathname="/"),i}function gr(){var t=null;function e(o){return process.env.NODE_ENV!=="production"&&J(t==null,"A history supports only one prompt at a time"),t=o,function(){t===o&&(t=null)}}function n(o,a,l,u){if(t!=null){var c=typeof t=="function"?t(o,a):t;typeof c=="string"?typeof l=="function"?l(c,u):(process.env.NODE_ENV!=="production"&&J(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),u(!0)):u(c!==!1)}else u(!0)}var r=[];function i(o){var a=!0;function l(){a&&o.apply(void 0,arguments)}return r.push(l),function(){a=!1,r=r.filter(function(u){return u!==l})}}function s(){for(var o=arguments.length,a=new Array(o),l=0;l<o;l++)a[l]=arguments[l];r.forEach(function(u){return u.apply(void 0,a)})}return{setPrompt:e,confirmTransitionTo:n,appendListener:i,notifyListeners:s}}var Ns=!!(typeof window<"u"&&window.document&&window.document.createElement);function $s(t,e){e(window.confirm(t))}function il(){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 sl(){return window.navigator.userAgent.indexOf("Trident")===-1}function ol(){return window.navigator.userAgent.indexOf("Firefox")===-1}function al(t){return t.state===void 0&&navigator.userAgent.indexOf("CriOS")===-1}var pi="popstate",mi="hashchange";function gi(){try{return window.history.state||{}}catch{return{}}}function cl(t){t===void 0&&(t={}),Ns||(process.env.NODE_ENV!=="production"?ye(!1,"Browser history needs a DOM"):ye(!1));var e=window.history,n=il(),r=!sl(),i=t,s=i.forceRefresh,o=s===void 0?!1:s,a=i.getUserConfirmation,l=a===void 0?$s:a,u=i.keyLength,c=u===void 0?6:u,d=t.basename?Os(lt(t.basename)):"";function f(V){var x=V||{},w=x.key,C=x.state,N=window.location,j=N.pathname,I=N.search,D=N.hash,M=j+I+D;return process.env.NODE_ENV!=="production"&&J(!d||vr(M,d),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+M+'" to begin with "'+d+'".'),d&&(M=ks(M,d)),be(M,C,w)}function p(){return Math.random().toString(36).substr(2,c)}var g=gr();function v(V){ue(X,V),X.length=e.length,g.notifyListeners(X.location,X.action)}function y(V){al(V)||O(f(V.state))}function S(){O(f(gi()))}var $=!1;function O(V){if($)$=!1,v();else{var x="POP";g.confirmTransitionTo(V,x,l,function(w){w?v({action:x,location:V}):T(V)})}}function T(V){var x=X.location,w=L.indexOf(x.key);w===-1&&(w=0);var C=L.indexOf(V.key);C===-1&&(C=0);var N=w-C;N&&($=!0,W(N))}var b=f(gi()),L=[b.key];function P(V){return d+ve(V)}function _(V,x){process.env.NODE_ENV!=="production"&&J(!(typeof V=="object"&&V.state!==void 0&&x!==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=be(V,x,p(),X.location);g.confirmTransitionTo(C,w,l,function(N){if(N){var j=P(C),I=C.key,D=C.state;if(n)if(e.pushState({key:I,state:D},null,j),o)window.location.href=j;else{var M=L.indexOf(X.location.key),B=L.slice(0,M+1);B.push(C.key),L=B,v({action:w,location:C})}else process.env.NODE_ENV!=="production"&&J(D===void 0,"Browser history cannot push state in browsers that do not support HTML5 history"),window.location.href=j}})}function z(V,x){process.env.NODE_ENV!=="production"&&J(!(typeof V=="object"&&V.state!==void 0&&x!==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=be(V,x,p(),X.location);g.confirmTransitionTo(C,w,l,function(N){if(N){var j=P(C),I=C.key,D=C.state;if(n)if(e.replaceState({key:I,state:D},null,j),o)window.location.replace(j);else{var M=L.indexOf(X.location.key);M!==-1&&(L[M]=C.key),v({action:w,location:C})}else process.env.NODE_ENV!=="production"&&J(D===void 0,"Browser history cannot replace state in browsers that do not support HTML5 history"),window.location.replace(j)}})}function W(V){e.go(V)}function F(){W(-1)}function H(){W(1)}var ne=0;function Q(V){ne+=V,ne===1&&V===1?(window.addEventListener(pi,y),r&&window.addEventListener(mi,S)):ne===0&&(window.removeEventListener(pi,y),r&&window.removeEventListener(mi,S))}var re=!1;function ee(V){V===void 0&&(V=!1);var x=g.setPrompt(V);return re||(Q(1),re=!0),function(){return re&&(re=!1,Q(-1)),x()}}function le(V){var x=g.appendListener(V);return Q(1),function(){Q(-1),x()}}var X={length:e.length,action:"POP",location:b,createHref:P,push:_,replace:z,go:W,goBack:F,goForward:H,block:ee,listen:le};return X}var yi="hashchange",ll={hashbang:{encodePath:function(e){return e.charAt(0)==="!"?e:"!/"+hi(e)},decodePath:function(e){return e.charAt(0)==="!"?e.substr(1):e}},noslash:{encodePath:hi,decodePath:lt},slash:{encodePath:lt,decodePath:lt}};function Ts(t){var e=t.indexOf("#");return e===-1?t:t.slice(0,e)}function it(){var t=window.location.href,e=t.indexOf("#");return e===-1?"":t.substring(e+1)}function ul(t){window.location.hash=t}function En(t){window.location.replace(Ts(window.location.href)+"#"+t)}function dl(t){t===void 0&&(t={}),Ns||(process.env.NODE_ENV!=="production"?ye(!1,"Hash history needs a DOM"):ye(!1));var e=window.history,n=ol(),r=t,i=r.getUserConfirmation,s=i===void 0?$s:i,o=r.hashType,a=o===void 0?"slash":o,l=t.basename?Os(lt(t.basename)):"",u=ll[a],c=u.encodePath,d=u.decodePath;function f(){var w=d(it());return process.env.NODE_ENV!=="production"&&J(!l||vr(w,l),'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 "'+l+'".'),l&&(w=ks(w,l)),be(w)}var p=gr();function g(w){ue(x,w),x.length=e.length,p.notifyListeners(x.location,x.action)}var v=!1,y=null;function S(w,C){return w.pathname===C.pathname&&w.search===C.search&&w.hash===C.hash}function $(){var w=it(),C=c(w);if(w!==C)En(C);else{var N=f(),j=x.location;if(!v&&S(j,N)||y===ve(N))return;y=null,O(N)}}function O(w){if(v)v=!1,g();else{var C="POP";p.confirmTransitionTo(w,C,s,function(N){N?g({action:C,location:w}):T(w)})}}function T(w){var C=x.location,N=_.lastIndexOf(ve(C));N===-1&&(N=0);var j=_.lastIndexOf(ve(w));j===-1&&(j=0);var I=N-j;I&&(v=!0,H(I))}var b=it(),L=c(b);b!==L&&En(L);var P=f(),_=[ve(P)];function z(w){var C=document.querySelector("base"),N="";return C&&C.getAttribute("href")&&(N=Ts(window.location.href)),N+"#"+c(l+ve(w))}function W(w,C){process.env.NODE_ENV!=="production"&&J(C===void 0,"Hash history cannot push state; it is ignored");var N="PUSH",j=be(w,void 0,void 0,x.location);p.confirmTransitionTo(j,N,s,function(I){if(I){var D=ve(j),M=c(l+D),B=it()!==M;if(B){y=D,ul(M);var q=_.lastIndexOf(ve(x.location)),U=_.slice(0,q+1);U.push(D),_=U,g({action:N,location:j})}else process.env.NODE_ENV!=="production"&&J(!1,"Hash history cannot PUSH the same path; a new entry will not be added to the history stack"),g()}})}function F(w,C){process.env.NODE_ENV!=="production"&&J(C===void 0,"Hash history cannot replace state; it is ignored");var N="REPLACE",j=be(w,void 0,void 0,x.location);p.confirmTransitionTo(j,N,s,function(I){if(I){var D=ve(j),M=c(l+D),B=it()!==M;B&&(y=D,En(M));var q=_.indexOf(ve(x.location));q!==-1&&(_[q]=D),g({action:N,location:j})}})}function H(w){process.env.NODE_ENV!=="production"&&J(n,"Hash history go(n) causes a full page reload in this browser"),e.go(w)}function ne(){H(-1)}function Q(){H(1)}var re=0;function ee(w){re+=w,re===1&&w===1?window.addEventListener(yi,$):re===0&&window.removeEventListener(yi,$)}var le=!1;function X(w){w===void 0&&(w=!1);var C=p.setPrompt(w);return le||(ee(1),le=!0),function(){return le&&(le=!1,ee(-1)),C()}}function V(w){var C=p.appendListener(w);return ee(1),function(){ee(-1),C()}}var x={length:e.length,action:"POP",location:P,createHref:z,push:W,replace:F,go:H,goBack:ne,goForward:Q,block:X,listen:V};return x}function bi(t,e,n){return Math.min(Math.max(t,e),n)}function fl(t){t===void 0&&(t={});var e=t,n=e.getUserConfirmation,r=e.initialEntries,i=r===void 0?["/"]:r,s=e.initialIndex,o=s===void 0?0:s,a=e.keyLength,l=a===void 0?6:a,u=gr();function c(_){ue(P,_),P.length=P.entries.length,u.notifyListeners(P.location,P.action)}function d(){return Math.random().toString(36).substr(2,l)}var f=bi(o,0,i.length-1),p=i.map(function(_){return typeof _=="string"?be(_,void 0,d()):be(_,void 0,_.key||d())}),g=ve;function v(_,z){process.env.NODE_ENV!=="production"&&J(!(typeof _=="object"&&_.state!==void 0&&z!==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",F=be(_,z,d(),P.location);u.confirmTransitionTo(F,W,n,function(H){if(H){var ne=P.index,Q=ne+1,re=P.entries.slice(0);re.length>Q?re.splice(Q,re.length-Q,F):re.push(F),c({action:W,location:F,index:Q,entries:re})}})}function y(_,z){process.env.NODE_ENV!=="production"&&J(!(typeof _=="object"&&_.state!==void 0&&z!==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",F=be(_,z,d(),P.location);u.confirmTransitionTo(F,W,n,function(H){H&&(P.entries[P.index]=F,c({action:W,location:F}))})}function S(_){var z=bi(P.index+_,0,P.entries.length-1),W="POP",F=P.entries[z];u.confirmTransitionTo(F,W,n,function(H){H?c({action:W,location:F,index:z}):c()})}function $(){S(-1)}function O(){S(1)}function T(_){var z=P.index+_;return z>=0&&z<P.entries.length}function b(_){return _===void 0&&(_=!1),u.setPrompt(_)}function L(_){return u.appendListener(_)}var P={length:p.length,action:"POP",location:p[f],index:f,entries:p,createHref:g,push:v,replace:y,go:S,goBack:$,goForward:O,canGo:T,block:b,listen:L};return P}var nt={exports:{}},hl=Array.isArray||function(t){return Object.prototype.toString.call(t)=="[object Array]"},Vt=hl;nt.exports=js;nt.exports.parse=yr;nt.exports.compile=ml;nt.exports.tokensToFunction=Rs;nt.exports.tokensToRegExp=Ps;var pl=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function yr(t,e){for(var n=[],r=0,i=0,s="",o=e&&e.delimiter||"/",a;(a=pl.exec(t))!=null;){var l=a[0],u=a[1],c=a.index;if(s+=t.slice(i,c),i=c+l.length,u){s+=u[1];continue}var d=t[i],f=a[2],p=a[3],g=a[4],v=a[5],y=a[6],S=a[7];s&&(n.push(s),s="");var $=f!=null&&d!=null&&d!==f,O=y==="+"||y==="*",T=y==="?"||y==="*",b=a[2]||o,L=g||v;n.push({name:p||r++,prefix:f||"",delimiter:b,optional:T,repeat:O,partial:$,asterisk:!!S,pattern:L?yl(L):S?".*":"[^"+At(b)+"]+?"})}return i<t.length&&(s+=t.substr(i)),s&&n.push(s),n}function ml(t,e){return Rs(yr(t,e),e)}function vl(t){return encodeURI(t).replace(/[\/?#]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function gl(t){return encodeURI(t).replace(/[?#]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function Rs(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+")$",xr(e)));return function(i,s){for(var o="",a=i||{},l=s||{},u=l.pretty?vl:encodeURIComponent,c=0;c<t.length;c++){var d=t[c];if(typeof d=="string"){o+=d;continue}var f=a[d.name],p;if(f==null)if(d.optional){d.partial&&(o+=d.prefix);continue}else throw new TypeError('Expected "'+d.name+'" to be defined');if(Vt(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[c].test(p))throw new TypeError('Expected all "'+d.name+'" to match "'+d.pattern+'", but received `'+JSON.stringify(p)+"`");o+=(g===0?d.prefix:d.delimiter)+p}continue}if(p=d.asterisk?gl(f):u(f),!n[c].test(p))throw new TypeError('Expected "'+d.name+'" to match "'+d.pattern+'", but received "'+p+'"');o+=d.prefix+p}return o}}function At(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function yl(t){return t.replace(/([=!:$\/()])/g,"\\$1")}function br(t,e){return t.keys=e,t}function xr(t){return t&&t.sensitive?"":"i"}function bl(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 br(t,e)}function xl(t,e,n){for(var r=[],i=0;i<t.length;i++)r.push(js(t[i],e,n).source);var s=new RegExp("(?:"+r.join("|")+")",xr(n));return br(s,e)}function wl(t,e,n){return Ps(yr(t,n),e,n)}function Ps(t,e,n){Vt(e)||(n=e||n,e=[]),n=n||{};for(var r=n.strict,i=n.end!==!1,s="",o=0;o<t.length;o++){var a=t[o];if(typeof a=="string")s+=At(a);else{var l=At(a.prefix),u="(?:"+a.pattern+")";e.push(a),a.repeat&&(u+="(?:"+l+u+")*"),a.optional?a.partial?u=l+"("+u+")?":u="(?:"+l+"("+u+"))?":u=l+"("+u+")",s+=u}}var c=At(n.delimiter||"/"),d=s.slice(-c.length)===c;return r||(s=(d?s.slice(0,-c.length):s)+"(?:"+c+"(?=$))?"),i?s+="$":s+=r&&d?"":"(?="+c+"|$)",br(new RegExp("^"+s,xr(n)),e)}function js(t,e,n){return Vt(e)||(n=e||n,e=[]),n=n||{},t instanceof RegExp?bl(t,e):Vt(t)?xl(t,e,n):wl(t,e,n)}var El=nt.exports;const Cl=nr(El);var St=1073741823,xi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:{};function Sl(){var t="__global_unique_id__";return xi[t]=(xi[t]||0)+1}function kl(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}function Ol(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(s){return s(t,i)})}}}function Nl(t){return Array.isArray(t)?t[0]:t}function $l(t,e){var n,r,i="__create-react-context-"+Sl()+"__",s=function(a){we(l,a);function l(){for(var c,d=arguments.length,f=new Array(d),p=0;p<d;p++)f[p]=arguments[p];return c=a.call.apply(a,[this].concat(f))||this,c.emitter=Ol(c.props.value),c}var u=l.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;kl(f,p)?g=0:(g=typeof e=="function"?e(f,p):St,process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&J((g&St)===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},l}(m.Component);s.childContextTypes=(n={},n[i]=E.object.isRequired,n);var o=function(a){we(l,a);function l(){for(var c,d=arguments.length,f=new Array(d),p=0;p<d;p++)f[p]=arguments[p];return c=a.call.apply(a,[this].concat(f))||this,c.observedBits=void 0,c.state={value:c.getValue()},c.onUpdate=function(g,v){var y=c.observedBits|0;y&v&&c.setState({value:c.getValue()})},c}var u=l.prototype;return u.componentWillReceiveProps=function(d){var f=d.observedBits;this.observedBits=f??St},u.componentDidMount=function(){this.context[i]&&this.context[i].on(this.onUpdate);var d=this.props.observedBits;this.observedBits=d??St},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 Nl(this.props.children)(this.state.value)},l}(m.Component);return o.contextTypes=(r={},r[i]=E.object,r),{Provider:s,Consumer:o}}var Tl=m.createContext||$l,As=function(e){var n=Tl();return n.displayName=e,n},Rl=As("Router-History"),Ke=As("Router"),Ge=function(t){we(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(s){i._pendingLocation=s})),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(s){i._isMounted&&i.setState({location:s})})),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(Ke.Provider,{value:{history:this.props.history,location:this.state.location,match:e.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},m.createElement(Rl.Provider,{children:this.props.children||null,value:this.props.history}))},e}(m.Component);process.env.NODE_ENV!=="production"&&(Ge.propTypes={children:E.node,history:E.object.isRequired,staticContext:E.object},Ge.prototype.componentDidUpdate=function(t){process.env.NODE_ENV!=="production"&&J(t.history===this.props.history,"You cannot change <Router history>")});var wi=function(t){we(e,t);function e(){for(var r,i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];return r=t.call.apply(t,[this].concat(s))||this,r.history=fl(r.props),r}var n=e.prototype;return n.render=function(){return m.createElement(Ge,{history:this.history,children:this.props.children})},e}(m.Component);process.env.NODE_ENV!=="production"&&(wi.propTypes={initialEntries:E.array,initialIndex:E.number,getUserConfirmation:E.func,keyLength:E.number,children:E.node},wi.prototype.componentDidMount=function(){process.env.NODE_ENV!=="production"&&J(!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 Pl=E.oneOfType([E.func,E.string]);E.bool,Pl.isRequired}process.env.NODE_ENV!=="production"&&(E.bool,E.string,E.oneOfType([E.string,E.object]).isRequired);var Ei={},jl=1e4,Ci=0;function Al(t,e){var n=""+e.end+e.strict+e.sensitive,r=Ei[n]||(Ei[n]={});if(r[t])return r[t];var i=[],s=Cl(t,i,e),o={regexp:s,keys:i};return Ci<jl&&(r[t]=o,Ci++),o}function wr(t,e){e===void 0&&(e={}),(typeof e=="string"||Array.isArray(e))&&(e={path:e});var n=e,r=n.path,i=n.exact,s=i===void 0?!1:i,o=n.strict,a=o===void 0?!1:o,l=n.sensitive,u=l===void 0?!1:l,c=[].concat(r);return c.reduce(function(d,f){if(!f&&f!=="")return null;if(d)return d;var p=Al(f,{end:s,strict:a,sensitive:u}),g=p.regexp,v=p.keys,y=g.exec(t);if(!y)return null;var S=y[0],$=y.slice(1),O=t===S;return s&&!O?null:{path:f,url:f==="/"&&S===""?"/":S,isExact:O,params:v.reduce(function(T,b,L){return T[b.name]=$[L],T},{})}},null)}function Mn(t){return m.Children.count(t)===0}function Si(t,e,n){var r=t(e);return process.env.NODE_ENV!=="production"&&J(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 Cn=function(t){we(e,t);function e(){return t.apply(this,arguments)||this}var n=e.prototype;return n.render=function(){var i=this;return m.createElement(Ke.Consumer,null,function(s){s||(process.env.NODE_ENV!=="production"?ye(!1,"You should not use <Route> outside a <Router>"):ye(!1));var o=i.props.location||s.location,a=i.props.computedMatch?i.props.computedMatch:i.props.path?wr(o.pathname,i.props):s.match,l=ue({},s,{location:o,match:a}),u=i.props,c=u.children,d=u.component,f=u.render;return Array.isArray(c)&&Mn(c)&&(c=null),m.createElement(Ke.Provider,{value:l},l.match?c?typeof c=="function"?process.env.NODE_ENV!=="production"?Si(c,l,i.props.path):c(l):c:d?m.createElement(d,l):f?f(l):null:typeof c=="function"?process.env.NODE_ENV!=="production"?Si(c,l,i.props.path):c(l):null)})},e}(m.Component);process.env.NODE_ENV!=="production"&&(Cn.propTypes={children:E.oneOfType([E.func,E.node]),component:function(e,n){if(e[n]&&!Kt.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},Cn.prototype.componentDidMount=function(){process.env.NODE_ENV!=="production"&&J(!(this.props.children&&!Mn(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"&&J(!(this.props.children&&!Mn(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"&&J(!(this.props.component&&this.props.render),"You should not use <Route component> and <Route render> in the same route; <Route render> will be ignored")},Cn.prototype.componentDidUpdate=function(t){process.env.NODE_ENV!=="production"&&J(!(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"&&J(!(!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 Er(t){return t.charAt(0)==="/"?t:"/"+t}function _l(t,e){return t?ue({},e,{pathname:Er(t)+e.pathname}):e}function Ll(t,e){if(!t)return e;var n=Er(t);return e.pathname.indexOf(n)!==0?e:ue({},e,{pathname:e.pathname.substr(n.length)})}function ki(t){return typeof t=="string"?t:ve(t)}function Sn(t){return function(){process.env.NODE_ENV!=="production"?ye(!1,"You cannot %s with <StaticRouter>"):ye(!1)}}function Oi(){}var Ni=function(t){we(e,t);function e(){for(var r,i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];return r=t.call.apply(t,[this].concat(s))||this,r.handlePush=function(a){return r.navigateTo(a,"PUSH")},r.handleReplace=function(a){return r.navigateTo(a,"REPLACE")},r.handleListen=function(){return Oi},r.handleBlock=function(){return Oi},r}var n=e.prototype;return n.navigateTo=function(i,s){var o=this.props,a=o.basename,l=a===void 0?"":a,u=o.context,c=u===void 0?{}:u;c.action=s,c.location=_l(l,be(i)),c.url=ki(c.location)},n.render=function(){var i=this.props,s=i.basename,o=s===void 0?"":s,a=i.context,l=a===void 0?{}:a,u=i.location,c=u===void 0?"/":u,d=et(i,["basename","context","location"]),f={createHref:function(g){return Er(o+ki(g))},action:"POP",location:Ll(o,be(c)),push:this.handlePush,replace:this.handleReplace,go:Sn(),goBack:Sn(),goForward:Sn(),listen:this.handleListen,block:this.handleBlock};return m.createElement(Ge,ue({},d,{history:f,staticContext:l}))},e}(m.Component);process.env.NODE_ENV!=="production"&&(Ni.propTypes={basename:E.string,context:E.object,location:E.oneOfType([E.string,E.object])},Ni.prototype.componentDidMount=function(){process.env.NODE_ENV!=="production"&&J(!this.props.history,"<StaticRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { StaticRouter as Router }`.")});var $i=function(t){we(e,t);function e(){return t.apply(this,arguments)||this}var n=e.prototype;return n.render=function(){var i=this;return m.createElement(Ke.Consumer,null,function(s){s||(process.env.NODE_ENV!=="production"?ye(!1,"You should not use <Switch> outside a <Router>"):ye(!1));var o=i.props.location||s.location,a,l;return m.Children.forEach(i.props.children,function(u){if(l==null&&m.isValidElement(u)){a=u;var c=u.props.path||u.props.from;l=c?wr(o.pathname,ue({},u.props,{path:c})):s.match}}),l?m.cloneElement(a,{location:o,computedMatch:l}):null})},e}(m.Component);process.env.NODE_ENV!=="production"&&($i.propTypes={children:E.node,location:E.object},$i.prototype.componentDidUpdate=function(t){process.env.NODE_ENV!=="production"&&J(!(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"&&J(!(!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 kt=window,Ot="__react_router_build__",Ti={cjs:"CommonJS",esm:"ES modules",umd:"UMD"};if(kt[Ot]&&kt[Ot]!=="esm"){var Dl=Ti[kt[Ot]],Ml=Ti.esm;throw new Error("You are loading the "+Ml+" build of React Router "+("on a page that is already running the "+Dl+" ")+"build, so things won't work right.")}kt[Ot]="esm"}var Ri=function(t){we(e,t);function e(){for(var r,i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];return r=t.call.apply(t,[this].concat(s))||this,r.history=cl(r.props),r}var n=e.prototype;return n.render=function(){return m.createElement(Ge,{history:this.history,children:this.props.children})},e}(m.Component);process.env.NODE_ENV!=="production"&&(Ri.propTypes={basename:E.string,children:E.node,forceRefresh:E.bool,getUserConfirmation:E.func,keyLength:E.number},Ri.prototype.componentDidMount=function(){process.env.NODE_ENV!=="production"&&J(!this.props.history,"<BrowserRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { BrowserRouter as Router }`.")});var Pi=function(t){we(e,t);function e(){for(var r,i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];return r=t.call.apply(t,[this].concat(s))||this,r.history=dl(r.props),r}var n=e.prototype;return n.render=function(){return m.createElement(Ge,{history:this.history,children:this.props.children})},e}(m.Component);process.env.NODE_ENV!=="production"&&(Pi.propTypes={basename:E.string,children:E.node,getUserConfirmation:E.func,hashType:E.oneOf(["hashbang","noslash","slash"])},Pi.prototype.componentDidMount=function(){process.env.NODE_ENV!=="production"&&J(!this.props.history,"<HashRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { HashRouter as Router }`.")});var In=function(e,n){return typeof e=="function"?e(n):e},Vn=function(e,n){return typeof e=="string"?be(e,null,null,n):e},Cr=function(e){return e},Je=m.forwardRef;typeof Je>"u"&&(Je=Cr);function Il(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}var _s=Je(function(t,e){var n=t.innerRef,r=t.navigate,i=t.onClick,s=et(t,["innerRef","navigate","onClick"]),o=s.target,a=ue({},s,{onClick:function(u){try{i&&i(u)}catch(c){throw u.preventDefault(),c}!u.defaultPrevented&&u.button===0&&(!o||o==="_self")&&!Il(u)&&(u.preventDefault(),r())}});return Cr!==Je?a.ref=e||n:a.ref=n,m.createElement("a",a)});process.env.NODE_ENV!=="production"&&(_s.displayName="LinkAnchor");var Ie=Je(function(t,e){var n=t.component,r=n===void 0?_s:n,i=t.replace,s=t.to,o=t.innerRef,a=et(t,["component","replace","to","innerRef"]);return m.createElement(Ke.Consumer,null,function(l){l||(process.env.NODE_ENV!=="production"?ye(!1,"You should not use <Link> outside a <Router>"):ye(!1));var u=l.history,c=Vn(In(s,l.location),l.location),d=c?u.createHref(c):"",f=ue({},a,{href:d,navigate:function(){var g=In(s,l.location),v=ve(l.location)===ve(Vn(g)),y=i||v?u.replace:u.push;y(g)}});return Cr!==Je?f.ref=e||o:f.innerRef=o,m.createElement(r,f)})});if(process.env.NODE_ENV!=="production"){var Vl=E.oneOfType([E.string,E.object,E.func]),Hl=E.oneOfType([E.string,E.func,E.shape({current:E.any})]);Ie.displayName="Link",Ie.propTypes={innerRef:Hl,onClick:E.func,replace:E.bool,target:E.string,to:Vl.isRequired}}var Ls=function(e){return e},Ht=m.forwardRef;typeof Ht>"u"&&(Ht=Ls);function zl(){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 ji=Ht(function(t,e){var n=t["aria-current"],r=n===void 0?"page":n,i=t.activeClassName,s=i===void 0?"active":i,o=t.activeStyle,a=t.className,l=t.exact,u=t.isActive,c=t.location,d=t.sensitive,f=t.strict,p=t.style,g=t.to,v=t.innerRef,y=et(t,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return m.createElement(Ke.Consumer,null,function(S){S||(process.env.NODE_ENV!=="production"?ye(!1,"You should not use <NavLink> outside a <Router>"):ye(!1));var $=c||S.location,O=Vn(In(g,$),$),T=O.pathname,b=T&&T.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),L=b?wr($.pathname,{path:b,exact:l,sensitive:d,strict:f}):null,P=!!(u?u(L,$):L),_=typeof a=="function"?a(P):a,z=typeof p=="function"?p(P):p;P&&(_=zl(_,s),z=ue({},z,o));var W=ue({"aria-current":P&&r||null,className:_,style:z,to:O},y);return Ls!==Ht?W.ref=e||v:W.innerRef=v,m.createElement(Ie,W)})});if(process.env.NODE_ENV!=="production"){ji.displayName="NavLink";var Bl=E.oneOf(["page","step","location","date","time","true","false"]);ji.propTypes=ue({},Ie.propTypes,{"aria-current":Bl,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 Wl=m.forwardRef(({className:t,onClick:e=()=>{},name:n="",to:r="",params:i={},children:s,...o},a)=>{const l=Rc(),u=tt();if(!l)return null;let c="";const d={onClick:e,className:ie(t,"humany-route-link"),to:c,innerRef:a,...o,ref:null};if(n){if(!(l.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(Ie,{...d,onClick:v=>{e(v),v.preventDefault(),process.env.NODE_ENV!=="production"&&se.warn(`Unable to navigate. No route named "${n}" exist.`)},children:s});const g=Object.keys(i).reduce((v,y)=>{const S=i[y];if(Array.isArray(S)){if(S.length===0)return v;v[y]=S.map($=>typeof $=="string"?encodeURIComponent($):$).join(",")}else v[y]=typeof S=="string"?encodeURIComponent(S):S;return v},{});try{c=l.generate(n,g||{})}catch{return h.jsx(Ie,{...d,ref:d.innerRef,children:s})}c&&l.settings.mode&&l.settings.mode===Dn.browser&&c[0]!=="/"&&(c=`/${c}`)}else if(r&&l.history)c=l.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(l.settings&&l.settings.mode===Dn.scopedHash){const f=u.get("$widget").name;c=Qc(c,f)}return d.as?h.jsx(Ul,{...d,as:d.as,children:s}):h.jsx(Ie,{...d,to:c,children:s})}),Ul=R.span``,Sr=m.forwardRef(({className:t,disabled:e=!1,role:n="link",tabIndex:r=0,onClick:i=()=>{},onKeyDown:s=()=>{},title:o,as:a,href:l,children:u,target:c,routeName:d,params:f,...p},g)=>{const v={title:o,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}s(y)}};return d?h.jsx(Fl,{name:d,params:f,...v,...Se(p),ref:g,children:u}):h.jsx(ql,{href:l,target:c,...v,...Se(p),ref:g,children:u})}),Fl=R(Wl)`
273
+ `,Es=m.forwardRef(({htmlParseInstruction:t=null,className:e,html:n,...r},i)=>{const s=tt(),[o,a]=m.useState();return m.useEffect(()=>{const l=oc(s,n),u={...l,...t,transform:{...l.transform,...t==null?void 0:t.transform}},c=ic(n,u);a(c)},[n,t]),h.jsx("div",{className:ie(e,"humany-html"),...Se(r),ref:i,children:o})}),Hc=({faIcon:t,title:e,className:n="",role:r="presentation",...i})=>h.jsx("i",{className:ie(n,`fa fa-${t}`),title:e,role:r,...Se(i)}),zc=m.forwardRef(({className:t="",autoFocus:e=!1,onFocusChange:n=()=>{},onEnter:r=()=>{},onEscape:i=()=>{},selectAllOnFocus:s,onChange:o=()=>{},disabled:a=!1,type:l,...u},c)=>{const[d,f]=m.useState(e),p=m.useRef();m.useImperativeHandle(c,()=>p.current),m.useEffect(()=>{var b;e&&((b=p==null?void 0:p.current)==null||b.focus())},[e,c,p]);const g=(b,$)=>{f(b),n&&n(b),s&&b&&$.target.select()},v={...Se(u),disabled:a,autoFocus:e,type:l,onKeyDown:b=>{b.key==="Enter"&&d&&r(b),b.key==="Escape"&&d&&i(b)},onFocus:b=>g(!0,b),onBlur:b=>g(!1,b),onChange:b=>o(b.target.value||""),className:ie(t,"humany-input"),"data-type":l};return l!=="textarea"?h.jsx("input",{...v,ref:p}):h.jsx("textarea",{...v,ref:p})}),mr=m.forwardRef(({className:t,items:e,renderItem:n,renderLi:r=!1,...i},s)=>h.jsx("ul",{className:ie(t,"humany-list"),"data-item-count":e.length,...Se(i),ref:s,children:e.map((o,a,l)=>r?h.jsx("li",{className:"humany-list-item",children:n(o,a,l)},o.id||a):n(o,a,l))})),Bc=m.forwardRef(({text:t,html:e,header:n,className:r,htmlParseInstruction:i,symbol:s,...o},a)=>h.jsxs("div",{className:ie(r,"humany-paragraph"),...Se(o),ref:a,children:[n?h.jsxs(pr,{variant:"h1",children:[s?h.jsx(gt,{symbol:s}):null,n]}):null,e?h.jsx(Es,{html:e,htmlParseInstruction:i}):null,t?h.jsx(dr,{children:t}):null]}));m.forwardRef(({header:t,customHeader:e,text:n,html:r,className:i,children:s,symbol:o,items:a,renderItem:l,renderLi:u,ulProps:c,...d},f)=>h.jsxs("div",{className:ie(i,"humany-item-list"),"data-item-count":a.length,...Se(d),ref:f,children:[e||(t||n||r?h.jsx(Bc,{symbol:o,header:t,text:n,html:r}):null),a.length?h.jsx(mr,{items:a,renderItem:l,renderLi:u,...c}):null,s]}));var Cs=function(){};process.env.NODE_ENV!=="production"&&(Cs=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 s=0,o="Warning: "+e.replace(/%s/g,function(){return n[s++]});typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}});var Wc=Cs,Uc=Wc;Fc(Uc);function Fc(t){return t&&t.__esModule?t:{default:t}}function Ct(t){return t.charAt(0)==="/"}function bn(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 qc(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",n=t&&t.split("/")||[],r=e&&e.split("/")||[],i=t&&Ct(t),s=e&&Ct(e),o=i||s;if(t&&Ct(t)?r=n:n.length&&(r.pop(),r=r.concat(n)),!r.length)return"/";var a=void 0;if(r.length){var l=r[r.length-1];a=l==="."||l===".."||l===""}else a=!1;for(var u=0,c=r.length;c>=0;c--){var d=r[c];d==="."?bn(r,c):d===".."?(bn(r,c),u++):u&&(bn(r,c),u--)}if(!o)for(;u--;u)r.unshift("..");o&&r[0]!==""&&(!r[0]||!Ct(r[0]))&&r.unshift("");var f=r.join("/");return a&&f.substr(-1)!=="/"&&(f+="/"),f}const Yc=Object.freeze(Object.defineProperty({__proto__:null,default:qc},Symbol.toStringTag,{value:"Module"})),Zc=ts(Yc);var fi=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 At(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(l,u){return At(l,e[u])});var n=typeof t>"u"?"undefined":fi(t),r=typeof e>"u"?"undefined":fi(e);if(n!==r)return!1;if(n==="object"){var i=t.valueOf(),s=e.valueOf();if(i!==t||s!==e)return At(i,s);var o=Object.keys(t),a=Object.keys(e);return o.length!==a.length?!1:o.every(function(l){return At(t[l],e[l])})}return!1}const Kc=Object.freeze(Object.defineProperty({__proto__:null,default:At},Symbol.toStringTag,{value:"Module"})),Gc=ts(Kc);var Jc=Zc;Ss(Jc);var Xc=Gc;Ss(Xc);function Ss(t){return t&&t.__esModule?t:{default:t}}var Dn=(t=>(t.scopedHash="scopedHash",t.hash="hash",t.browser="browser",t.memory="memory",t))(Dn||{});const Qc=(t,e)=>{const n=`humany-${e}=([^&?]+)&?`,r=new RegExp(n,"i"),i=t.match(r);return i&&i[1]||"/"};Wt(t=>{t.createCommand("routing",e=>n=>{const r={mode:n.mode};n.basePath&&(r.basePath=n.basePath),e.container.register("routingSettings",r)})});function St(t){return t.charAt(0)==="/"}function xn(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 el(t,e){e===void 0&&(e="");var n=t&&t.split("/")||[],r=e&&e.split("/")||[],i=t&&St(t),s=e&&St(e),o=i||s;if(t&&St(t)?r=n:n.length&&(r.pop(),r=r.concat(n)),!r.length)return"/";var a;if(r.length){var l=r[r.length-1];a=l==="."||l===".."||l===""}else a=!1;for(var u=0,c=r.length;c>=0;c--){var d=r[c];d==="."?xn(r,c):d===".."?(xn(r,c),u++):u&&(xn(r,c),u--)}if(!o)for(;u--;u)r.unshift("..");o&&r[0]!==""&&(!r[0]||!St(r[0]))&&r.unshift("");var f=r.join("/");return a&&f.substr(-1)!=="/"&&(f+="/"),f}var tl=process.env.NODE_ENV==="production";function X(t,e){if(!tl){if(t)return;var n="Warning: "+e;typeof console<"u"&&console.warn(n);try{throw Error(n)}catch{}}}var nl=process.env.NODE_ENV==="production",wn="Invariant failed";function ye(t,e){if(!t){if(nl)throw new Error(wn);var n=typeof e=="function"?e():e,r=n?"".concat(wn,": ").concat(n):wn;throw new Error(r)}}function lt(t){return t.charAt(0)==="/"?t:"/"+t}function hi(t){return t.charAt(0)==="/"?t.substr(1):t}function vr(t,e){return t.toLowerCase().indexOf(e.toLowerCase())===0&&"/?#".indexOf(t.charAt(e.length))!==-1}function ks(t,e){return vr(t,e)?t.substr(e.length):t}function Os(t){return t.charAt(t.length-1)==="/"?t.slice(0,-1):t}function rl(t){var e=t||"/",n="",r="",i=e.indexOf("#");i!==-1&&(r=e.substr(i),e=e.substr(0,i));var s=e.indexOf("?");return s!==-1&&(n=e.substr(s),e=e.substr(0,s)),{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 be(t,e,n,r){var i;typeof t=="string"?(i=rl(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(s){throw s instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):s}return n&&(i.key=n),r?i.pathname?i.pathname.charAt(0)!=="/"&&(i.pathname=el(i.pathname,r.pathname)):i.pathname=r.pathname:i.pathname||(i.pathname="/"),i}function gr(){var t=null;function e(o){return process.env.NODE_ENV!=="production"&&X(t==null,"A history supports only one prompt at a time"),t=o,function(){t===o&&(t=null)}}function n(o,a,l,u){if(t!=null){var c=typeof t=="function"?t(o,a):t;typeof c=="string"?typeof l=="function"?l(c,u):(process.env.NODE_ENV!=="production"&&X(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),u(!0)):u(c!==!1)}else u(!0)}var r=[];function i(o){var a=!0;function l(){a&&o.apply(void 0,arguments)}return r.push(l),function(){a=!1,r=r.filter(function(u){return u!==l})}}function s(){for(var o=arguments.length,a=new Array(o),l=0;l<o;l++)a[l]=arguments[l];r.forEach(function(u){return u.apply(void 0,a)})}return{setPrompt:e,confirmTransitionTo:n,appendListener:i,notifyListeners:s}}var Ns=!!(typeof window<"u"&&window.document&&window.document.createElement);function $s(t,e){e(window.confirm(t))}function il(){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 sl(){return window.navigator.userAgent.indexOf("Trident")===-1}function ol(){return window.navigator.userAgent.indexOf("Firefox")===-1}function al(t){return t.state===void 0&&navigator.userAgent.indexOf("CriOS")===-1}var pi="popstate",mi="hashchange";function gi(){try{return window.history.state||{}}catch{return{}}}function cl(t){t===void 0&&(t={}),Ns||(process.env.NODE_ENV!=="production"?ye(!1,"Browser history needs a DOM"):ye(!1));var e=window.history,n=il(),r=!sl(),i=t,s=i.forceRefresh,o=s===void 0?!1:s,a=i.getUserConfirmation,l=a===void 0?$s:a,u=i.keyLength,c=u===void 0?6:u,d=t.basename?Os(lt(t.basename)):"";function f(V){var x=V||{},w=x.key,C=x.state,N=window.location,j=N.pathname,I=N.search,D=N.hash,M=j+I+D;return process.env.NODE_ENV!=="production"&&X(!d||vr(M,d),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+M+'" to begin with "'+d+'".'),d&&(M=ks(M,d)),be(M,C,w)}function p(){return Math.random().toString(36).substr(2,c)}var g=gr();function v(V){ue(ee,V),ee.length=e.length,g.notifyListeners(ee.location,ee.action)}function b(V){al(V)||k(f(V.state))}function $(){k(f(gi()))}var P=!1;function k(V){if(P)P=!1,v();else{var x="POP";g.confirmTransitionTo(V,x,l,function(w){w?v({action:x,location:V}):S(V)})}}function S(V){var x=ee.location,w=L.indexOf(x.key);w===-1&&(w=0);var C=L.indexOf(V.key);C===-1&&(C=0);var N=w-C;N&&(P=!0,B(N))}var y=f(gi()),L=[y.key];function T(V){return d+ve(V)}function A(V,x){process.env.NODE_ENV!=="production"&&X(!(typeof V=="object"&&V.state!==void 0&&x!==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=be(V,x,p(),ee.location);g.confirmTransitionTo(C,w,l,function(N){if(N){var j=T(C),I=C.key,D=C.state;if(n)if(e.pushState({key:I,state:D},null,j),o)window.location.href=j;else{var M=L.indexOf(ee.location.key),z=L.slice(0,M+1);z.push(C.key),L=z,v({action:w,location:C})}else process.env.NODE_ENV!=="production"&&X(D===void 0,"Browser history cannot push state in browsers that do not support HTML5 history"),window.location.href=j}})}function H(V,x){process.env.NODE_ENV!=="production"&&X(!(typeof V=="object"&&V.state!==void 0&&x!==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=be(V,x,p(),ee.location);g.confirmTransitionTo(C,w,l,function(N){if(N){var j=T(C),I=C.key,D=C.state;if(n)if(e.replaceState({key:I,state:D},null,j),o)window.location.replace(j);else{var M=L.indexOf(ee.location.key);M!==-1&&(L[M]=C.key),v({action:w,location:C})}else process.env.NODE_ENV!=="production"&&X(D===void 0,"Browser history cannot replace state in browsers that do not support HTML5 history"),window.location.replace(j)}})}function B(V){e.go(V)}function Y(){B(-1)}function q(){B(1)}var Q=0;function W(V){Q+=V,Q===1&&V===1?(window.addEventListener(pi,b),r&&window.addEventListener(mi,$)):Q===0&&(window.removeEventListener(pi,b),r&&window.removeEventListener(mi,$))}var te=!1;function ne(V){V===void 0&&(V=!1);var x=g.setPrompt(V);return te||(W(1),te=!0),function(){return te&&(te=!1,W(-1)),x()}}function le(V){var x=g.appendListener(V);return W(1),function(){W(-1),x()}}var ee={length:e.length,action:"POP",location:y,createHref:T,push:A,replace:H,go:B,goBack:Y,goForward:q,block:ne,listen:le};return ee}var yi="hashchange",ll={hashbang:{encodePath:function(e){return e.charAt(0)==="!"?e:"!/"+hi(e)},decodePath:function(e){return e.charAt(0)==="!"?e.substr(1):e}},noslash:{encodePath:hi,decodePath:lt},slash:{encodePath:lt,decodePath:lt}};function Ts(t){var e=t.indexOf("#");return e===-1?t:t.slice(0,e)}function it(){var t=window.location.href,e=t.indexOf("#");return e===-1?"":t.substring(e+1)}function ul(t){window.location.hash=t}function En(t){window.location.replace(Ts(window.location.href)+"#"+t)}function dl(t){t===void 0&&(t={}),Ns||(process.env.NODE_ENV!=="production"?ye(!1,"Hash history needs a DOM"):ye(!1));var e=window.history,n=ol(),r=t,i=r.getUserConfirmation,s=i===void 0?$s:i,o=r.hashType,a=o===void 0?"slash":o,l=t.basename?Os(lt(t.basename)):"",u=ll[a],c=u.encodePath,d=u.decodePath;function f(){var w=d(it());return process.env.NODE_ENV!=="production"&&X(!l||vr(w,l),'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 "'+l+'".'),l&&(w=ks(w,l)),be(w)}var p=gr();function g(w){ue(x,w),x.length=e.length,p.notifyListeners(x.location,x.action)}var v=!1,b=null;function $(w,C){return w.pathname===C.pathname&&w.search===C.search&&w.hash===C.hash}function P(){var w=it(),C=c(w);if(w!==C)En(C);else{var N=f(),j=x.location;if(!v&&$(j,N)||b===ve(N))return;b=null,k(N)}}function k(w){if(v)v=!1,g();else{var C="POP";p.confirmTransitionTo(w,C,s,function(N){N?g({action:C,location:w}):S(w)})}}function S(w){var C=x.location,N=A.lastIndexOf(ve(C));N===-1&&(N=0);var j=A.lastIndexOf(ve(w));j===-1&&(j=0);var I=N-j;I&&(v=!0,q(I))}var y=it(),L=c(y);y!==L&&En(L);var T=f(),A=[ve(T)];function H(w){var C=document.querySelector("base"),N="";return C&&C.getAttribute("href")&&(N=Ts(window.location.href)),N+"#"+c(l+ve(w))}function B(w,C){process.env.NODE_ENV!=="production"&&X(C===void 0,"Hash history cannot push state; it is ignored");var N="PUSH",j=be(w,void 0,void 0,x.location);p.confirmTransitionTo(j,N,s,function(I){if(I){var D=ve(j),M=c(l+D),z=it()!==M;if(z){b=D,ul(M);var F=A.lastIndexOf(ve(x.location)),U=A.slice(0,F+1);U.push(D),A=U,g({action:N,location:j})}else process.env.NODE_ENV!=="production"&&X(!1,"Hash history cannot PUSH the same path; a new entry will not be added to the history stack"),g()}})}function Y(w,C){process.env.NODE_ENV!=="production"&&X(C===void 0,"Hash history cannot replace state; it is ignored");var N="REPLACE",j=be(w,void 0,void 0,x.location);p.confirmTransitionTo(j,N,s,function(I){if(I){var D=ve(j),M=c(l+D),z=it()!==M;z&&(b=D,En(M));var F=A.indexOf(ve(x.location));F!==-1&&(A[F]=D),g({action:N,location:j})}})}function q(w){process.env.NODE_ENV!=="production"&&X(n,"Hash history go(n) causes a full page reload in this browser"),e.go(w)}function Q(){q(-1)}function W(){q(1)}var te=0;function ne(w){te+=w,te===1&&w===1?window.addEventListener(yi,P):te===0&&window.removeEventListener(yi,P)}var le=!1;function ee(w){w===void 0&&(w=!1);var C=p.setPrompt(w);return le||(ne(1),le=!0),function(){return le&&(le=!1,ne(-1)),C()}}function V(w){var C=p.appendListener(w);return ne(1),function(){ne(-1),C()}}var x={length:e.length,action:"POP",location:T,createHref:H,push:B,replace:Y,go:q,goBack:Q,goForward:W,block:ee,listen:V};return x}function bi(t,e,n){return Math.min(Math.max(t,e),n)}function fl(t){t===void 0&&(t={});var e=t,n=e.getUserConfirmation,r=e.initialEntries,i=r===void 0?["/"]:r,s=e.initialIndex,o=s===void 0?0:s,a=e.keyLength,l=a===void 0?6:a,u=gr();function c(A){ue(T,A),T.length=T.entries.length,u.notifyListeners(T.location,T.action)}function d(){return Math.random().toString(36).substr(2,l)}var f=bi(o,0,i.length-1),p=i.map(function(A){return typeof A=="string"?be(A,void 0,d()):be(A,void 0,A.key||d())}),g=ve;function v(A,H){process.env.NODE_ENV!=="production"&&X(!(typeof A=="object"&&A.state!==void 0&&H!==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 B="PUSH",Y=be(A,H,d(),T.location);u.confirmTransitionTo(Y,B,n,function(q){if(q){var Q=T.index,W=Q+1,te=T.entries.slice(0);te.length>W?te.splice(W,te.length-W,Y):te.push(Y),c({action:B,location:Y,index:W,entries:te})}})}function b(A,H){process.env.NODE_ENV!=="production"&&X(!(typeof A=="object"&&A.state!==void 0&&H!==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 B="REPLACE",Y=be(A,H,d(),T.location);u.confirmTransitionTo(Y,B,n,function(q){q&&(T.entries[T.index]=Y,c({action:B,location:Y}))})}function $(A){var H=bi(T.index+A,0,T.entries.length-1),B="POP",Y=T.entries[H];u.confirmTransitionTo(Y,B,n,function(q){q?c({action:B,location:Y,index:H}):c()})}function P(){$(-1)}function k(){$(1)}function S(A){var H=T.index+A;return H>=0&&H<T.entries.length}function y(A){return A===void 0&&(A=!1),u.setPrompt(A)}function L(A){return u.appendListener(A)}var T={length:p.length,action:"POP",location:p[f],index:f,entries:p,createHref:g,push:v,replace:b,go:$,goBack:P,goForward:k,canGo:S,block:y,listen:L};return T}var nt={exports:{}},hl=Array.isArray||function(t){return Object.prototype.toString.call(t)=="[object Array]"},Ht=hl;nt.exports=js;nt.exports.parse=yr;nt.exports.compile=ml;nt.exports.tokensToFunction=Rs;nt.exports.tokensToRegExp=Ps;var pl=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function yr(t,e){for(var n=[],r=0,i=0,s="",o=e&&e.delimiter||"/",a;(a=pl.exec(t))!=null;){var l=a[0],u=a[1],c=a.index;if(s+=t.slice(i,c),i=c+l.length,u){s+=u[1];continue}var d=t[i],f=a[2],p=a[3],g=a[4],v=a[5],b=a[6],$=a[7];s&&(n.push(s),s="");var P=f!=null&&d!=null&&d!==f,k=b==="+"||b==="*",S=b==="?"||b==="*",y=a[2]||o,L=g||v;n.push({name:p||r++,prefix:f||"",delimiter:y,optional:S,repeat:k,partial:P,asterisk:!!$,pattern:L?yl(L):$?".*":"[^"+_t(y)+"]+?"})}return i<t.length&&(s+=t.substr(i)),s&&n.push(s),n}function ml(t,e){return Rs(yr(t,e),e)}function vl(t){return encodeURI(t).replace(/[\/?#]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function gl(t){return encodeURI(t).replace(/[?#]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function Rs(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+")$",xr(e)));return function(i,s){for(var o="",a=i||{},l=s||{},u=l.pretty?vl:encodeURIComponent,c=0;c<t.length;c++){var d=t[c];if(typeof d=="string"){o+=d;continue}var f=a[d.name],p;if(f==null)if(d.optional){d.partial&&(o+=d.prefix);continue}else throw new TypeError('Expected "'+d.name+'" to be defined');if(Ht(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[c].test(p))throw new TypeError('Expected all "'+d.name+'" to match "'+d.pattern+'", but received `'+JSON.stringify(p)+"`");o+=(g===0?d.prefix:d.delimiter)+p}continue}if(p=d.asterisk?gl(f):u(f),!n[c].test(p))throw new TypeError('Expected "'+d.name+'" to match "'+d.pattern+'", but received "'+p+'"');o+=d.prefix+p}return o}}function _t(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function yl(t){return t.replace(/([=!:$\/()])/g,"\\$1")}function br(t,e){return t.keys=e,t}function xr(t){return t&&t.sensitive?"":"i"}function bl(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 br(t,e)}function xl(t,e,n){for(var r=[],i=0;i<t.length;i++)r.push(js(t[i],e,n).source);var s=new RegExp("(?:"+r.join("|")+")",xr(n));return br(s,e)}function wl(t,e,n){return Ps(yr(t,n),e,n)}function Ps(t,e,n){Ht(e)||(n=e||n,e=[]),n=n||{};for(var r=n.strict,i=n.end!==!1,s="",o=0;o<t.length;o++){var a=t[o];if(typeof a=="string")s+=_t(a);else{var l=_t(a.prefix),u="(?:"+a.pattern+")";e.push(a),a.repeat&&(u+="(?:"+l+u+")*"),a.optional?a.partial?u=l+"("+u+")?":u="(?:"+l+"("+u+"))?":u=l+"("+u+")",s+=u}}var c=_t(n.delimiter||"/"),d=s.slice(-c.length)===c;return r||(s=(d?s.slice(0,-c.length):s)+"(?:"+c+"(?=$))?"),i?s+="$":s+=r&&d?"":"(?="+c+"|$)",br(new RegExp("^"+s,xr(n)),e)}function js(t,e,n){return Ht(e)||(n=e||n,e=[]),n=n||{},t instanceof RegExp?bl(t,e):Ht(t)?xl(t,e,n):wl(t,e,n)}var El=nt.exports;const Cl=nr(El);var kt=1073741823,xi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:{};function Sl(){var t="__global_unique_id__";return xi[t]=(xi[t]||0)+1}function kl(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}function Ol(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(s){return s(t,i)})}}}function Nl(t){return Array.isArray(t)?t[0]:t}function $l(t,e){var n,r,i="__create-react-context-"+Sl()+"__",s=function(a){we(l,a);function l(){for(var c,d=arguments.length,f=new Array(d),p=0;p<d;p++)f[p]=arguments[p];return c=a.call.apply(a,[this].concat(f))||this,c.emitter=Ol(c.props.value),c}var u=l.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;kl(f,p)?g=0:(g=typeof e=="function"?e(f,p):kt,process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&X((g&kt)===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},l}(m.Component);s.childContextTypes=(n={},n[i]=E.object.isRequired,n);var o=function(a){we(l,a);function l(){for(var c,d=arguments.length,f=new Array(d),p=0;p<d;p++)f[p]=arguments[p];return c=a.call.apply(a,[this].concat(f))||this,c.observedBits=void 0,c.state={value:c.getValue()},c.onUpdate=function(g,v){var b=c.observedBits|0;b&v&&c.setState({value:c.getValue()})},c}var u=l.prototype;return u.componentWillReceiveProps=function(d){var f=d.observedBits;this.observedBits=f??kt},u.componentDidMount=function(){this.context[i]&&this.context[i].on(this.onUpdate);var d=this.props.observedBits;this.observedBits=d??kt},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 Nl(this.props.children)(this.state.value)},l}(m.Component);return o.contextTypes=(r={},r[i]=E.object,r),{Provider:s,Consumer:o}}var Tl=m.createContext||$l,As=function(e){var n=Tl();return n.displayName=e,n},Rl=As("Router-History"),Ke=As("Router"),Ge=function(t){we(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(s){i._pendingLocation=s})),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(s){i._isMounted&&i.setState({location:s})})),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(Ke.Provider,{value:{history:this.props.history,location:this.state.location,match:e.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},m.createElement(Rl.Provider,{children:this.props.children||null,value:this.props.history}))},e}(m.Component);process.env.NODE_ENV!=="production"&&(Ge.propTypes={children:E.node,history:E.object.isRequired,staticContext:E.object},Ge.prototype.componentDidUpdate=function(t){process.env.NODE_ENV!=="production"&&X(t.history===this.props.history,"You cannot change <Router history>")});var wi=function(t){we(e,t);function e(){for(var r,i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];return r=t.call.apply(t,[this].concat(s))||this,r.history=fl(r.props),r}var n=e.prototype;return n.render=function(){return m.createElement(Ge,{history:this.history,children:this.props.children})},e}(m.Component);process.env.NODE_ENV!=="production"&&(wi.propTypes={initialEntries:E.array,initialIndex:E.number,getUserConfirmation:E.func,keyLength:E.number,children:E.node},wi.prototype.componentDidMount=function(){process.env.NODE_ENV!=="production"&&X(!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 Pl=E.oneOfType([E.func,E.string]);E.bool,Pl.isRequired}process.env.NODE_ENV!=="production"&&(E.bool,E.string,E.oneOfType([E.string,E.object]).isRequired);var Ei={},jl=1e4,Ci=0;function Al(t,e){var n=""+e.end+e.strict+e.sensitive,r=Ei[n]||(Ei[n]={});if(r[t])return r[t];var i=[],s=Cl(t,i,e),o={regexp:s,keys:i};return Ci<jl&&(r[t]=o,Ci++),o}function wr(t,e){e===void 0&&(e={}),(typeof e=="string"||Array.isArray(e))&&(e={path:e});var n=e,r=n.path,i=n.exact,s=i===void 0?!1:i,o=n.strict,a=o===void 0?!1:o,l=n.sensitive,u=l===void 0?!1:l,c=[].concat(r);return c.reduce(function(d,f){if(!f&&f!=="")return null;if(d)return d;var p=Al(f,{end:s,strict:a,sensitive:u}),g=p.regexp,v=p.keys,b=g.exec(t);if(!b)return null;var $=b[0],P=b.slice(1),k=t===$;return s&&!k?null:{path:f,url:f==="/"&&$===""?"/":$,isExact:k,params:v.reduce(function(S,y,L){return S[y.name]=P[L],S},{})}},null)}function Mn(t){return m.Children.count(t)===0}function Si(t,e,n){var r=t(e);return process.env.NODE_ENV!=="production"&&X(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 Cn=function(t){we(e,t);function e(){return t.apply(this,arguments)||this}var n=e.prototype;return n.render=function(){var i=this;return m.createElement(Ke.Consumer,null,function(s){s||(process.env.NODE_ENV!=="production"?ye(!1,"You should not use <Route> outside a <Router>"):ye(!1));var o=i.props.location||s.location,a=i.props.computedMatch?i.props.computedMatch:i.props.path?wr(o.pathname,i.props):s.match,l=ue({},s,{location:o,match:a}),u=i.props,c=u.children,d=u.component,f=u.render;return Array.isArray(c)&&Mn(c)&&(c=null),m.createElement(Ke.Provider,{value:l},l.match?c?typeof c=="function"?process.env.NODE_ENV!=="production"?Si(c,l,i.props.path):c(l):c:d?m.createElement(d,l):f?f(l):null:typeof c=="function"?process.env.NODE_ENV!=="production"?Si(c,l,i.props.path):c(l):null)})},e}(m.Component);process.env.NODE_ENV!=="production"&&(Cn.propTypes={children:E.oneOfType([E.func,E.node]),component:function(e,n){if(e[n]&&!Kt.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},Cn.prototype.componentDidMount=function(){process.env.NODE_ENV!=="production"&&X(!(this.props.children&&!Mn(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"&&X(!(this.props.children&&!Mn(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"&&X(!(this.props.component&&this.props.render),"You should not use <Route component> and <Route render> in the same route; <Route render> will be ignored")},Cn.prototype.componentDidUpdate=function(t){process.env.NODE_ENV!=="production"&&X(!(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"&&X(!(!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 Er(t){return t.charAt(0)==="/"?t:"/"+t}function _l(t,e){return t?ue({},e,{pathname:Er(t)+e.pathname}):e}function Ll(t,e){if(!t)return e;var n=Er(t);return e.pathname.indexOf(n)!==0?e:ue({},e,{pathname:e.pathname.substr(n.length)})}function ki(t){return typeof t=="string"?t:ve(t)}function Sn(t){return function(){process.env.NODE_ENV!=="production"?ye(!1,"You cannot %s with <StaticRouter>"):ye(!1)}}function Oi(){}var Ni=function(t){we(e,t);function e(){for(var r,i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];return r=t.call.apply(t,[this].concat(s))||this,r.handlePush=function(a){return r.navigateTo(a,"PUSH")},r.handleReplace=function(a){return r.navigateTo(a,"REPLACE")},r.handleListen=function(){return Oi},r.handleBlock=function(){return Oi},r}var n=e.prototype;return n.navigateTo=function(i,s){var o=this.props,a=o.basename,l=a===void 0?"":a,u=o.context,c=u===void 0?{}:u;c.action=s,c.location=_l(l,be(i)),c.url=ki(c.location)},n.render=function(){var i=this.props,s=i.basename,o=s===void 0?"":s,a=i.context,l=a===void 0?{}:a,u=i.location,c=u===void 0?"/":u,d=et(i,["basename","context","location"]),f={createHref:function(g){return Er(o+ki(g))},action:"POP",location:Ll(o,be(c)),push:this.handlePush,replace:this.handleReplace,go:Sn(),goBack:Sn(),goForward:Sn(),listen:this.handleListen,block:this.handleBlock};return m.createElement(Ge,ue({},d,{history:f,staticContext:l}))},e}(m.Component);process.env.NODE_ENV!=="production"&&(Ni.propTypes={basename:E.string,context:E.object,location:E.oneOfType([E.string,E.object])},Ni.prototype.componentDidMount=function(){process.env.NODE_ENV!=="production"&&X(!this.props.history,"<StaticRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { StaticRouter as Router }`.")});var $i=function(t){we(e,t);function e(){return t.apply(this,arguments)||this}var n=e.prototype;return n.render=function(){var i=this;return m.createElement(Ke.Consumer,null,function(s){s||(process.env.NODE_ENV!=="production"?ye(!1,"You should not use <Switch> outside a <Router>"):ye(!1));var o=i.props.location||s.location,a,l;return m.Children.forEach(i.props.children,function(u){if(l==null&&m.isValidElement(u)){a=u;var c=u.props.path||u.props.from;l=c?wr(o.pathname,ue({},u.props,{path:c})):s.match}}),l?m.cloneElement(a,{location:o,computedMatch:l}):null})},e}(m.Component);process.env.NODE_ENV!=="production"&&($i.propTypes={children:E.node,location:E.object},$i.prototype.componentDidUpdate=function(t){process.env.NODE_ENV!=="production"&&X(!(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"&&X(!(!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 Ot=window,Nt="__react_router_build__",Ti={cjs:"CommonJS",esm:"ES modules",umd:"UMD"};if(Ot[Nt]&&Ot[Nt]!=="esm"){var Dl=Ti[Ot[Nt]],Ml=Ti.esm;throw new Error("You are loading the "+Ml+" build of React Router "+("on a page that is already running the "+Dl+" ")+"build, so things won't work right.")}Ot[Nt]="esm"}var Ri=function(t){we(e,t);function e(){for(var r,i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];return r=t.call.apply(t,[this].concat(s))||this,r.history=cl(r.props),r}var n=e.prototype;return n.render=function(){return m.createElement(Ge,{history:this.history,children:this.props.children})},e}(m.Component);process.env.NODE_ENV!=="production"&&(Ri.propTypes={basename:E.string,children:E.node,forceRefresh:E.bool,getUserConfirmation:E.func,keyLength:E.number},Ri.prototype.componentDidMount=function(){process.env.NODE_ENV!=="production"&&X(!this.props.history,"<BrowserRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { BrowserRouter as Router }`.")});var Pi=function(t){we(e,t);function e(){for(var r,i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];return r=t.call.apply(t,[this].concat(s))||this,r.history=dl(r.props),r}var n=e.prototype;return n.render=function(){return m.createElement(Ge,{history:this.history,children:this.props.children})},e}(m.Component);process.env.NODE_ENV!=="production"&&(Pi.propTypes={basename:E.string,children:E.node,getUserConfirmation:E.func,hashType:E.oneOf(["hashbang","noslash","slash"])},Pi.prototype.componentDidMount=function(){process.env.NODE_ENV!=="production"&&X(!this.props.history,"<HashRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { HashRouter as Router }`.")});var In=function(e,n){return typeof e=="function"?e(n):e},Vn=function(e,n){return typeof e=="string"?be(e,null,null,n):e},Cr=function(e){return e},Je=m.forwardRef;typeof Je>"u"&&(Je=Cr);function Il(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}var _s=Je(function(t,e){var n=t.innerRef,r=t.navigate,i=t.onClick,s=et(t,["innerRef","navigate","onClick"]),o=s.target,a=ue({},s,{onClick:function(u){try{i&&i(u)}catch(c){throw u.preventDefault(),c}!u.defaultPrevented&&u.button===0&&(!o||o==="_self")&&!Il(u)&&(u.preventDefault(),r())}});return Cr!==Je?a.ref=e||n:a.ref=n,m.createElement("a",a)});process.env.NODE_ENV!=="production"&&(_s.displayName="LinkAnchor");var Ie=Je(function(t,e){var n=t.component,r=n===void 0?_s:n,i=t.replace,s=t.to,o=t.innerRef,a=et(t,["component","replace","to","innerRef"]);return m.createElement(Ke.Consumer,null,function(l){l||(process.env.NODE_ENV!=="production"?ye(!1,"You should not use <Link> outside a <Router>"):ye(!1));var u=l.history,c=Vn(In(s,l.location),l.location),d=c?u.createHref(c):"",f=ue({},a,{href:d,navigate:function(){var g=In(s,l.location),v=ve(l.location)===ve(Vn(g)),b=i||v?u.replace:u.push;b(g)}});return Cr!==Je?f.ref=e||o:f.innerRef=o,m.createElement(r,f)})});if(process.env.NODE_ENV!=="production"){var Vl=E.oneOfType([E.string,E.object,E.func]),Hl=E.oneOfType([E.string,E.func,E.shape({current:E.any})]);Ie.displayName="Link",Ie.propTypes={innerRef:Hl,onClick:E.func,replace:E.bool,target:E.string,to:Vl.isRequired}}var Ls=function(e){return e},zt=m.forwardRef;typeof zt>"u"&&(zt=Ls);function zl(){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 ji=zt(function(t,e){var n=t["aria-current"],r=n===void 0?"page":n,i=t.activeClassName,s=i===void 0?"active":i,o=t.activeStyle,a=t.className,l=t.exact,u=t.isActive,c=t.location,d=t.sensitive,f=t.strict,p=t.style,g=t.to,v=t.innerRef,b=et(t,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return m.createElement(Ke.Consumer,null,function($){$||(process.env.NODE_ENV!=="production"?ye(!1,"You should not use <NavLink> outside a <Router>"):ye(!1));var P=c||$.location,k=Vn(In(g,P),P),S=k.pathname,y=S&&S.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),L=y?wr(P.pathname,{path:y,exact:l,sensitive:d,strict:f}):null,T=!!(u?u(L,P):L),A=typeof a=="function"?a(T):a,H=typeof p=="function"?p(T):p;T&&(A=zl(A,s),H=ue({},H,o));var B=ue({"aria-current":T&&r||null,className:A,style:H,to:k},b);return Ls!==zt?B.ref=e||v:B.innerRef=v,m.createElement(Ie,B)})});if(process.env.NODE_ENV!=="production"){ji.displayName="NavLink";var Bl=E.oneOf(["page","step","location","date","time","true","false"]);ji.propTypes=ue({},Ie.propTypes,{"aria-current":Bl,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 Wl=m.forwardRef(({className:t,onClick:e=()=>{},name:n="",to:r="",params:i={},children:s,...o},a)=>{const l=Rc(),u=tt();if(!l)return null;let c="";const d={onClick:e,className:ie(t,"humany-route-link"),to:c,innerRef:a,...o,ref:null};if(n){if(!(l.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(Ie,{...d,onClick:v=>{e(v),v.preventDefault(),process.env.NODE_ENV!=="production"&&se.warn(`Unable to navigate. No route named "${n}" exist.`)},children:s});const g=Object.keys(i).reduce((v,b)=>{const $=i[b];if(Array.isArray($)){if($.length===0)return v;v[b]=$.map(P=>typeof P=="string"?encodeURIComponent(P):P).join(",")}else v[b]=typeof $=="string"?encodeURIComponent($):$;return v},{});try{c=l.generate(n,g||{})}catch{return h.jsx(Ie,{...d,ref:d.innerRef,children:s})}c&&l.settings.mode&&l.settings.mode===Dn.browser&&c[0]!=="/"&&(c=`/${c}`)}else if(r&&l.history)c=l.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(l.settings&&l.settings.mode===Dn.scopedHash){const f=u.get("$widget").name;c=Qc(c,f)}return d.as?h.jsx(Ul,{...d,as:d.as,children:s}):h.jsx(Ie,{...d,to:c,children:s})}),Ul=R.span``,Sr=m.forwardRef(({className:t,disabled:e=!1,role:n="link",tabIndex:r=0,onClick:i=()=>{},onKeyDown:s=()=>{},title:o,as:a,href:l,children:u,target:c,routeName:d,params:f,...p},g)=>{const v={title:o,disabled:e,role:n,as:a,tabIndex:r,className:ie(t,"humany-link",[!!e,"humany-disabled"]),onClick:b=>{if(b.persist(),e){b.preventDefault();return}i(b)},onKeyDown:b=>{if(b.persist(),e){b.key!=="Tab"&&b.preventDefault();return}s(b)}};return d?h.jsx(Fl,{name:d,params:f,...v,...Se(p),ref:g,children:u}):h.jsx(ql,{href:l,target:c,...v,...Se(p),ref:g,children:u})}),Fl=R(Wl)`
274
274
  ${t=>t.disabled?`
275
275
  pointer-events: none;
276
276
  opacity: .7;
@@ -373,14 +373,14 @@ Valid keys: `+JSON.stringify(Object.keys(x),null," "));var A=me(M,U,j,I,D+"."+U
373
373
  stroke-linecap: round;
374
374
  stroke: ${t=>{var e;return(e=t.theme.colors)==null?void 0:e.primary}};
375
375
  stroke-width: 2px;
376
- `,eu=({className:t,loading:e=!1})=>h.jsx(Jl,{className:ie("humany-loader",t),"data-loading":e,children:h.jsx(Xl,{className:"humany-spinner",children:h.jsx(Gl,{viewBox:"25 25 50 50",children:h.jsx(Ql,{cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"2","stroke-miterlimit":"10"})})})}),tu=({zoomState:t,image:e,changeZoom:n,...r})=>{var g;const i=m.useRef(null),[s,o]=m.useState(!1),[a,l]=m.useState(!1),{width:u,height:c,...d}=r.style||{},f=m.useCallback(()=>{const v=i.current;if(v){const y=window.innerWidth/v.naturalWidth,S=window.innerHeight/v.naturalHeight,$=Math.min(y,S);return S>=1&&y>=1?1:$}return 1},[s,e.src]),p=m.useMemo(()=>{const v=i.current;if(v&&s){if(!a){l(!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,s,e.src]);return m.useEffect(()=>(o(!1),function(){l(!1)}),[e.src]),h.jsxs(h.Fragment,{children:[h.jsx(nu,{loading:!s}),h.jsx(ru,{onLoad:()=>{o(!0)},ref:i,imageSize:p,draggable:"false",...r,alt:((g=r.alt)==null?void 0:g.toString())||"",style:d,src:e.src,loaded:s}),h.jsx(iu,{})]})},nu=R(eu)`
376
+ `,eu=({className:t,loading:e=!1})=>h.jsx(Jl,{className:ie("humany-loader",t),"data-loading":e,children:h.jsx(Xl,{className:"humany-spinner",children:h.jsx(Gl,{viewBox:"25 25 50 50",children:h.jsx(Ql,{cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"2","stroke-miterlimit":"10"})})})}),tu=({zoomState:t,image:e,changeZoom:n,...r})=>{var g;const i=m.useRef(null),[s,o]=m.useState(!1),[a,l]=m.useState(!1),{width:u,height:c,...d}=r.style||{},f=m.useCallback(()=>{const v=i.current;if(v){const b=window.innerWidth/v.naturalWidth,$=window.innerHeight/v.naturalHeight,P=Math.min(b,$);return $>=1&&b>=1?1:P}return 1},[s,e.src]),p=m.useMemo(()=>{const v=i.current;if(v&&s){if(!a){l(!0);const b=f();n(b)}return v.naturalWidth>=v.naturalHeight?[`${t*v.naturalWidth}px`,"auto"]:["auto",`${t*v.naturalHeight}px`]}return null},[t,i,s,e.src]);return m.useEffect(()=>(o(!1),function(){l(!1)}),[e.src]),h.jsxs(h.Fragment,{children:[h.jsx(nu,{loading:!s}),h.jsx(ru,{onLoad:()=>{o(!0)},ref:i,imageSize:p,draggable:"false",...r,alt:((g=r.alt)==null?void 0:g.toString())||"",style:d,src:e.src,loaded:s}),h.jsx(iu,{})]})},nu=R(eu)`
377
377
  svg circle {
378
378
  stroke: #ffffff;
379
379
  }
380
380
  `,ru=R.img`
381
381
  transform: none;
382
382
 
383
- ${t=>t.imageSize&&te`
383
+ ${t=>t.imageSize&&re`
384
384
  width: ${t.imageSize[0]};
385
385
  height: ${t.imageSize[1]};
386
386
  display: inline-block;
@@ -392,38 +392,38 @@ Valid keys: `+JSON.stringify(Object.keys(x),null," "));var A=me(M,U,j,I,D+"."+U
392
392
  height: 100%;
393
393
  display: inline-block;
394
394
  vertical-align: middle;
395
- `,su=()=>{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]},ou=({attrs:t,htmlBody:e})=>{var w;const n=ct("Escape"),r=ct("ArrowLeft"),i=ct("ArrowRight"),[s,o]=m.useState(1),[a,l]=m.useState({top:0,left:0,x:0,y:0}),[u,c]=m.useState(!1),[d,f]=su(),[p,g]=m.useState(null),[v,y]=m.useState(null),S=m.useRef(null),$=m.useRef(null),O=m.useRef(null),T=m.useRef(null),b=m.useRef(null),[L,P]=m.useState(null);m.useEffect(()=>{n&&g(null)},[n]),m.useEffect(()=>{o(1)},[p]),m.useEffect(()=>{var I,D;if(p===null||$.current===null)return;const C=$.current.firstElementChild,N=(I=O.current)==null?void 0:I.querySelector(".nav-left"),j=(D=O.current)==null?void 0:D.querySelector(".nav-right");if(v==="Right")x&&j?j.focus():V&&N&&N.focus();else if(v==="Left")V&&N?N.focus():x&&j&&j.focus();else{if(!C)return;C.focus()}},[p,$,O,v]),m.useEffect(()=>{if(r){if(V)return le()}else if(i&&x)return X()},[r,i]),m.useEffect(()=>{var N,j;const C=((j=(N=b.current)==null?void 0:N.style)==null?void 0:j.float)||"";(C==="left"||C==="right")&&P(C)},[]);const _=m.useMemo(()=>{const C=document.createElement("div");C.innerHTML=e||"";const N=C.getElementsByTagName("img");return Array.from(N).reduce((I,D)=>{const M=D.getAttribute("src");if(M){const B={src:M};I.push(B)}return I},[])},[e]),z=m.useCallback(()=>{const{src:C}=t;if(C){const N=_.findIndex((j,I)=>j.src===C);g(N)}},[_,t]),W=m.useCallback(C=>{g(null)},[]),F=m.useCallback(C=>{o(C?s+s*.25:s-s*.25)},[o,s]),H=m.useCallback(()=>{if(p!==null){const{src:C}=_[p];C&&window.open(C,"_self")}},[_,p]),ne=m.useCallback(C=>{const N=T.current;N&&(l({top:N.scrollTop,left:N.scrollLeft,x:C.clientX,y:C.clientY}),c(!0))},[T]),Q=m.useCallback(C=>{const N=T.current;if(N&&u){const j=C.clientX-a.x,I=C.clientY-a.y;N.scrollTop=a.top-I,N.scrollLeft=a.left-j}},[u,a]),re=C=>{C.preventDefault(),c(!1)},ee=m.useMemo(()=>{if(T.current){const C=T.current.getElementsByTagName("img");if(C&&C.length){const N=C[0];return N.width>window.innerWidth||N.height>window.innerHeight}}return!1},[T,s]),le=()=>{p!==null&&(y("Left"),g(p-1))},X=()=>{p!==null&&(y("Right"),g(p+1))},V=p!==null&&p>0&&_.length>1,x=p!==null&&_.length-1>p;return h.jsxs(h.Fragment,{children:[h.jsx(Ds,{visible:p!==null,onClick:W,children:h.jsxs(pu,{onMouseDown:()=>f(),onMouseMove:()=>f(),onTouchStart:()=>f(),onKeyDown:()=>f(),children:[h.jsx(mu,{show:d.toString(),children:h.jsx(uu,{ref:$,buttons:[{id:"download",onClick:H,icon:"download",ariaLabel:"Download image"},{id:"lightbox-close",onClick:()=>g(null),icon:"lightbox-close",ariaLabel:"Close"}]})}),h.jsx(gu,{scrolling:u.toString(),isDraggable:ee.toString(),ref:T,onMouseMove:Q,onMouseDown:ne,onMouseUp:re,children:p!==null&&h.jsx(tu,{changeZoom:C=>{o(C)},zoomState:s,...t,style:{...t.style||{},float:"none"},image:_[p]})}),h.jsx(fu,{ref:O,show:d.toString(),buttons:[{id:"previous",onClick:le,icon:"caret-left",circle:!0,show:V,className:"nav-left",ariaLabel:"Navigate to previous image"},{id:"next",onClick:X,icon:"caret-right",circle:!0,show:x,className:"nav-right",ariaLabel:"Navigate to next image"}]}),h.jsxs(vu,{show:d.toString(),children:[h.jsx(du,{buttons:[{id:"zoom-out",onClick:()=>F(!1),icon:"zoom-out",ariaLabel:"Zoom out"},{id:"zoom-in",onClick:()=>F(!0),icon:"zoom-in",ariaLabel:"Zoom in"}]}),h.jsxs(hu,{variant:"span",children:[Math.trunc(s*100),"%"]})]})]})}),h.jsx(au,{ref:S,onClick:z,onKeyDown:C=>{C.key==="Enter"&&(C.preventDefault(),z())},alignment:L,tabIndex:0,children:h.jsx(yu,{...t,alt:((w=t.alt)==null?void 0:w.toString())||"",ref:b})})]})},kr=m.forwardRef(({show:t="true",buttons:e,className:n},r)=>h.jsx(cu,{ref:r,show:t,className:ie("humany-button-set",n),children:e.map(({id:i,circle:s=!1,show:o=!0,ariaLabel:a,onClick:l,icon:u,className:c},d)=>h.jsx(lu,{circle:s.toString(),onClick:l,tabIndex:o?void 0:-1,show:o.toString(),icon:u,className:c,"aria-label":a,children:h.jsx(vt,{size:24,symbol:{type:"Svg",content:u}})},i+d.toString()))})),Ms=R.div`
395
+ `,su=()=>{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]},ou=({attrs:t,htmlBody:e})=>{var w;const n=ct("Escape"),r=ct("ArrowLeft"),i=ct("ArrowRight"),[s,o]=m.useState(1),[a,l]=m.useState({top:0,left:0,x:0,y:0}),[u,c]=m.useState(!1),[d,f]=su(),[p,g]=m.useState(null),[v,b]=m.useState(null),$=m.useRef(null),P=m.useRef(null),k=m.useRef(null),S=m.useRef(null),y=m.useRef(null),[L,T]=m.useState(null);m.useEffect(()=>{n&&g(null)},[n]),m.useEffect(()=>{o(1)},[p]),m.useEffect(()=>{var I,D;if(p===null||P.current===null)return;const C=P.current.firstElementChild,N=(I=k.current)==null?void 0:I.querySelector(".nav-left"),j=(D=k.current)==null?void 0:D.querySelector(".nav-right");if(v==="Right")x&&j?j.focus():V&&N&&N.focus();else if(v==="Left")V&&N?N.focus():x&&j&&j.focus();else{if(!C)return;C.focus()}},[p,P,k,v]),m.useEffect(()=>{if(r){if(V)return le()}else if(i&&x)return ee()},[r,i]),m.useEffect(()=>{var N,j;const C=((j=(N=y.current)==null?void 0:N.style)==null?void 0:j.float)||"";(C==="left"||C==="right")&&T(C)},[]);const A=m.useMemo(()=>{const C=document.createElement("div");C.innerHTML=e||"";const N=C.getElementsByTagName("img");return Array.from(N).reduce((I,D)=>{const M=D.getAttribute("src");if(M){const z={src:M};I.push(z)}return I},[])},[e]),H=m.useCallback(()=>{const{src:C}=t;if(C){const N=A.findIndex((j,I)=>j.src===C);g(N)}},[A,t]),B=m.useCallback(C=>{g(null)},[]),Y=m.useCallback(C=>{o(C?s+s*.25:s-s*.25)},[o,s]),q=m.useCallback(()=>{if(p!==null){const{src:C}=A[p];C&&window.open(C,"_self")}},[A,p]),Q=m.useCallback(C=>{const N=S.current;N&&(l({top:N.scrollTop,left:N.scrollLeft,x:C.clientX,y:C.clientY}),c(!0))},[S]),W=m.useCallback(C=>{const N=S.current;if(N&&u){const j=C.clientX-a.x,I=C.clientY-a.y;N.scrollTop=a.top-I,N.scrollLeft=a.left-j}},[u,a]),te=C=>{C.preventDefault(),c(!1)},ne=m.useMemo(()=>{if(S.current){const C=S.current.getElementsByTagName("img");if(C&&C.length){const N=C[0];return N.width>window.innerWidth||N.height>window.innerHeight}}return!1},[S,s]),le=()=>{p!==null&&(b("Left"),g(p-1))},ee=()=>{p!==null&&(b("Right"),g(p+1))},V=p!==null&&p>0&&A.length>1,x=p!==null&&A.length-1>p;return h.jsxs(h.Fragment,{children:[h.jsx(Ds,{visible:p!==null,onClick:B,children:h.jsxs(pu,{onMouseDown:()=>f(),onMouseMove:()=>f(),onTouchStart:()=>f(),onKeyDown:()=>f(),children:[h.jsx(mu,{show:d.toString(),children:h.jsx(uu,{ref:P,buttons:[{id:"download",onClick:q,icon:"download",ariaLabel:"Download image"},{id:"lightbox-close",onClick:()=>g(null),icon:"lightbox-close",ariaLabel:"Close"}]})}),h.jsx(gu,{scrolling:u.toString(),isDraggable:ne.toString(),ref:S,onMouseMove:W,onMouseDown:Q,onMouseUp:te,children:p!==null&&h.jsx(tu,{changeZoom:C=>{o(C)},zoomState:s,...t,style:{...t.style||{},float:"none"},image:A[p]})}),h.jsx(fu,{ref:k,show:d.toString(),buttons:[{id:"previous",onClick:le,icon:"caret-left",circle:!0,show:V,className:"nav-left",ariaLabel:"Navigate to previous image"},{id:"next",onClick:ee,icon:"caret-right",circle:!0,show:x,className:"nav-right",ariaLabel:"Navigate to next image"}]}),h.jsxs(vu,{show:d.toString(),children:[h.jsx(du,{buttons:[{id:"zoom-out",onClick:()=>Y(!1),icon:"zoom-out",ariaLabel:"Zoom out"},{id:"zoom-in",onClick:()=>Y(!0),icon:"zoom-in",ariaLabel:"Zoom in"}]}),h.jsxs(hu,{variant:"span",children:[Math.trunc(s*100),"%"]})]})]})}),h.jsx(au,{ref:$,onClick:H,onKeyDown:C=>{C.key==="Enter"&&(C.preventDefault(),H())},alignment:L,tabIndex:0,children:h.jsx(yu,{...t,alt:((w=t.alt)==null?void 0:w.toString())||"",ref:y})})]})},kr=m.forwardRef(({show:t="true",buttons:e,className:n},r)=>h.jsx(cu,{ref:r,show:t,className:ie("humany-button-set",n),children:e.map(({id:i,circle:s=!1,show:o=!0,ariaLabel:a,onClick:l,icon:u,className:c},d)=>h.jsx(lu,{circle:s.toString(),onClick:l,tabIndex:o?void 0:-1,show:o.toString(),icon:u,className:c,"aria-label":a,children:h.jsx(gt,{size:24,symbol:{type:"Svg",content:u}})},i+d.toString()))})),Ms=R.div`
396
396
  transition: opacity 0.3s ease 0s;
397
397
  z-index: 5;
398
- ${t=>t.show==="true"?"opacity: 1;":te`
398
+ ${t=>t.show==="true"?"opacity: 1;":re`
399
399
  opacity: 0;
400
400
  pointer-events: none;
401
401
  `}
402
402
  `,au=R(Sr)`
403
403
  display: inline-block !important;
404
404
 
405
- ${t=>(t.alignment==="right"||t.alignment==="left")&&te`
405
+ ${t=>(t.alignment==="right"||t.alignment==="left")&&re`
406
406
  float: ${t.alignment};
407
407
  `}
408
408
  `,cu=R(Ms)`
409
409
  position: fixed;
410
410
  display: flex;
411
411
  gap: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.normal}};
412
- `,Hn="39px",lu=R(je)`
412
+ `,Hn="39px",lu=R(Ae)`
413
413
  width: ${Hn};
414
414
  height: ${Hn};
415
415
  display: flex;
416
416
  justify-content: center;
417
417
  align-items: center;
418
418
 
419
- ${t=>t.icon==="caret-left"&&te`
419
+ ${t=>t.icon==="caret-left"&&re`
420
420
  svg {
421
421
  position: relative;
422
422
  left: -2px;
423
423
  }
424
424
  `}
425
425
 
426
- ${t=>{var e;return t.circle==="true"?te`
426
+ ${t=>{var e;return t.circle==="true"?re`
427
427
  background-color: #ffffff;
428
428
  border-radius: 50%;
429
429
 
@@ -446,7 +446,7 @@ Valid keys: `+JSON.stringify(Object.keys(x),null," "));var A=me(M,U,j,I,D+"."+U
446
446
  }
447
447
  }
448
448
  }
449
- `:te`
449
+ `:re`
450
450
  svg {
451
451
  path,
452
452
  line {
@@ -461,13 +461,13 @@ Valid keys: `+JSON.stringify(Object.keys(x),null," "));var A=me(M,U,j,I,D+"."+U
461
461
  }
462
462
  `}}
463
463
 
464
- ${t=>t.show==="true"?te`
464
+ ${t=>t.show==="true"?re`
465
465
  opacity: 0.8;
466
466
  transition: opacity 0.3s ease 0s;
467
467
  &:hover {
468
468
  opacity: 1;
469
469
  }
470
- `:te`
470
+ `:re`
471
471
  opacity: 0;
472
472
  pointer-events: none;
473
473
  `}
@@ -531,7 +531,7 @@ Valid keys: `+JSON.stringify(Object.keys(x),null," "));var A=me(M,U,j,I,D+"."+U
531
531
  cursor: ${t=>t.isDraggable==="true"?t.scrolling==="true"?"grabbing":"grab":"auto"};
532
532
  `,yu=R.img`
533
533
  cursor: pointer;
534
- `,bu=m.forwardRef(({className:t,children:e,trigger:n,onOverlayClick:r=()=>{},close:i=!1,...s},o)=>{const[a,l]=Ac(),[u,c]=Pc(!0),d=m.useRef(),f=m.useRef(Xe()),p=ct("Escape");m.useEffect(()=>{(p||i)&&l(!1)},[p,i]),m.useEffect(()=>{a&&d.current&&d.current.focus()},[a,d.current]),ur("router:changed",()=>{l(!1)});const g=m.useCallback(y=>{l(!1),r(y)},[r,l]);m.useImperativeHandle(o,()=>({close(){l(!1)}}));const v=m.useCallback(()=>gs(f.current,()=>{l(!1)}),[f.current]);return h.jsxs(h.Fragment,{children:[h.jsx(Ds,{visible:a,onClick:g,children:h.jsxs(xu,{className:ie(t,"humany-modal",`humany-modal-${f.current}`),css:u,tabIndex:-1,...s,ref:c,children:[h.jsx(xs,{onClick:()=>l(!1),tabIndex:0,ref:d,children:h.jsx(vt,{symbol:{type:"Svg",content:"close"}})}),e]})}),m.cloneElement(n,{onClick:y=>{l(),v()}})]})}),xu=R.div`
534
+ `,bu=m.forwardRef(({className:t,children:e,trigger:n,onOverlayClick:r=()=>{},close:i=!1,...s},o)=>{const[a,l]=Ac(),[u,c]=Pc(!0),d=m.useRef(),f=m.useRef(Xe()),p=ct("Escape");m.useEffect(()=>{(p||i)&&l(!1)},[p,i]),m.useEffect(()=>{a&&d.current&&d.current.focus()},[a,d.current]),ur("router:changed",()=>{l(!1)});const g=m.useCallback(b=>{l(!1),r(b)},[r,l]);m.useImperativeHandle(o,()=>({close(){l(!1)}}));const v=m.useCallback(()=>gs(f.current,()=>{l(!1)}),[f.current]);return h.jsxs(h.Fragment,{children:[h.jsx(Ds,{visible:a,onClick:g,children:h.jsxs(xu,{className:ie(t,"humany-modal",`humany-modal-${f.current}`),css:u,tabIndex:-1,...s,ref:c,children:[h.jsx(xs,{onClick:()=>l(!1),tabIndex:0,ref:d,children:h.jsx(gt,{symbol:{type:"Svg",content:"close"}})}),e]})}),m.cloneElement(n,{onClick:b=>{l(),v()}})]})}),xu=R.div`
535
535
  font-family: ${t=>{var e;return(e=t.theme.fonts)==null?void 0:e.type}};
536
536
  font-size: ${t=>{var e;return(e=t.theme.fonts)==null?void 0:e.normal}};
537
537
  position: relative;
@@ -553,7 +553,7 @@ Valid keys: `+JSON.stringify(Object.keys(x),null," "));var A=me(M,U,j,I,D+"."+U
553
553
  margin: 0 0 ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.small}};
554
554
  }
555
555
  }
556
- `;R(je)`
556
+ `;R(Ae)`
557
557
  display: inline-block;
558
558
  min-width: 50px;
559
559
  ${t=>{var e,n;return`padding: ${(e=t.theme.sizes)==null?void 0:e.small} ${(n=t.theme.sizes)==null?void 0:n.normal};`}}
@@ -571,7 +571,7 @@ Valid keys: `+JSON.stringify(Object.keys(x),null," "));var A=me(M,U,j,I,D+"."+U
571
571
  &:focus-visible {
572
572
  ${$e}
573
573
  }
574
- `;R(je)`
574
+ `;R(Ae)`
575
575
  display: inline-block;
576
576
  min-width: 50px;
577
577
  ${t=>{var e,n;return`padding: ${(e=t.theme.sizes)==null?void 0:e.small} ${(n=t.theme.sizes)==null?void 0:n.normal};`}}
@@ -587,7 +587,7 @@ Valid keys: `+JSON.stringify(Object.keys(x),null," "));var A=me(M,U,j,I,D+"."+U
587
587
  display: flex;
588
588
  flex-wrap: wrap;
589
589
  `;R.div`
590
- ${t=>ar(t)("h2",te`
590
+ ${t=>ar(t)("h2",re`
591
591
  padding: 0;
592
592
  margin: 0;
593
593
  color: gray;
@@ -596,7 +596,7 @@ Valid keys: `+JSON.stringify(Object.keys(x),null," "));var A=me(M,U,j,I,D+"."+U
596
596
  `;R.div`
597
597
  margin-left: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.medium}};
598
598
 
599
- ${t=>{var e;return ar(t)("h3",te`
599
+ ${t=>{var e;return ar(t)("h3",re`
600
600
  text-transform: uppercase;
601
601
  font-size: ${(e=t.theme.fonts)==null?void 0:e.normal};
602
602
  `)}}
@@ -636,7 +636,7 @@ Valid keys: `+JSON.stringify(Object.keys(x),null," "));var A=me(M,U,j,I,D+"."+U
636
636
  }
637
637
 
638
638
  ${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}};
639
- `;const wu=m.forwardRef(({className:t,children:e,onClick:n=()=>{},widgetName:r,activationOptions:i,...s},o)=>{const a=tt(),l=()=>{const{implementation:d}=a.get("$widget");return d.widgets.get(r)};m.useEffect(()=>{const d=l();return d==null||d.activate(i).then(()=>d.invoke("attach")),()=>{d==null||d.deactivate()}},[r]);const u=d=>{const f=l(),p=d.currentTarget;if(f){const g=()=>{f.invoke("renderState").then(v=>v===zi.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===Di.Deactivated?f.activate(i).then(()=>f.invoke("attach")).then(g):g()}},c=d=>{d.key==="Enter"&&(d.preventDefault(),u(d))};return h.jsx(Sr,{className:ie(t,"humany-widget-link"),onKeyDown:c,onClick:d=>{n(d),u(d)},...s,ref:o,children:e})});m.forwardRef(({portalId:t="humany-widget-overlay-portal",className:e,children:n},r)=>{const i=tt(),s=m.useMemo(()=>{if(!i)return null;const o=i.get("widgetDOMElement");return!o||!o.childElementCount?null:o.children[0]},[i]);return s?h.jsx(hr,{elementId:t,parent:s,children:h.jsx(Eu,{className:ie("humany-widget-overlay-outlet",e),ref:r,children:n})}):null});const Eu=R.div`
639
+ `;const wu=m.forwardRef(({className:t,children:e,onClick:n=()=>{},widgetName:r,activationOptions:i,...s},o)=>{const a=tt(),l=()=>{const{implementation:d}=a.get("$widget");return d.widgets.get(r)};m.useEffect(()=>{const d=l();return d==null||d.activate(i).then(()=>d.invoke("attach")),()=>{d==null||d.deactivate()}},[r]);const u=d=>{const f=l(),p=d.currentTarget;if(f){const g=()=>{f.invoke("renderState").then(v=>v===zi.open?f.invoke("close"):f.invoke("open")).then(()=>{f.events.subscribeOnce("widget:area-rendered",(v,b)=>{a.get("widgetDOMElement")&&f.events.dispatch("widget:modal-opened",{name:f.name,ref:p})})})};f.state===Di.Deactivated?f.activate(i).then(()=>f.invoke("attach")).then(g):g()}},c=d=>{d.key==="Enter"&&(d.preventDefault(),u(d))};return h.jsx(Sr,{className:ie(t,"humany-widget-link"),onKeyDown:c,onClick:d=>{n(d),u(d)},...s,ref:o,children:e})});m.forwardRef(({portalId:t="humany-widget-overlay-portal",className:e,children:n},r)=>{const i=tt(),s=m.useMemo(()=>{if(!i)return null;const o=i.get("widgetDOMElement");return!o||!o.childElementCount?null:o.children[0]},[i]);return s?h.jsx(hr,{elementId:t,parent:s,children:h.jsx(Eu,{className:ie("humany-widget-overlay-outlet",e),ref:r,children:n})}):null});const Eu=R.div`
640
640
  background-color: #ffffff;
641
641
  position: absolute;
642
642
  top: 0;
@@ -653,7 +653,7 @@ Valid keys: `+JSON.stringify(Object.keys(x),null," "));var A=me(M,U,j,I,D+"."+U
653
653
  margin: 0 0 ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.normal}} 0;
654
654
  border-radius: ${t=>t.theme.borderRadius};
655
655
 
656
- ${t=>{var e,n;return ar(t)("h3",te`
656
+ ${t=>{var e,n;return ar(t)("h3",re`
657
657
  margin: 0 0 ${(e=t.theme.sizes)==null?void 0:e.normal} 0;
658
658
  font-size: ${(n=t.theme.fonts)==null?void 0:n.normal};
659
659
  `)}}
@@ -740,7 +740,7 @@ Valid keys: `+JSON.stringify(Object.keys(x),null," "));var A=me(M,U,j,I,D+"."+U
740
740
  && {
741
741
  box-sizing: content-box;
742
742
  }
743
- `;const Cu=({isRequired:t})=>t?h.jsx(Nu,{children:"*"}):null,Vs=({title:t,required:e,children:n,error:r,elementId:i="",description:s="",className:o="",ui:{component:a,error:l}={}})=>{const u=h.jsx(Cu,{isRequired:e});return h.jsxs(Su,{className:ie(o,"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(Ou,{className:"humany-form-component-title",children:[t,u]}),n,l&&h.jsxs($u,{id:`${i}_error`,children:[h.jsx(vt,{size:19,symbol:{type:"Svg",content:"alert"}}),h.jsx("span",{children:l})]}),s&&h.jsx(ku,{className:"humany-form-component-description",children:s})]})},Su=R.div`
743
+ `;const Cu=({isRequired:t})=>t?h.jsx(Nu,{children:"*"}):null,Vs=({title:t,required:e,children:n,error:r,elementId:i="",description:s="",className:o="",ui:{component:a,error:l}={}})=>{const u=h.jsx(Cu,{isRequired:e});return h.jsxs(Su,{className:ie(o,"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(Ou,{className:"humany-form-component-title",children:[t,u]}),n,l&&h.jsxs($u,{id:`${i}_error`,children:[h.jsx(gt,{size:19,symbol:{type:"Svg",content:"alert"}}),h.jsx("span",{children:l})]}),s&&h.jsx(ku,{className:"humany-form-component-description",children:s})]})},Su=R.div`
744
744
  ${t=>t["data-type"]==="AntiSpam"&&"display: none;"}
745
745
  > label {
746
746
  display: block;
@@ -748,7 +748,7 @@ Valid keys: `+JSON.stringify(Object.keys(x),null," "));var A=me(M,U,j,I,D+"."+U
748
748
  margin: 0 0 10px 0;
749
749
  font-weight: normal;
750
750
  }
751
- ${t=>{var e;return t["data-error"]&&te`
751
+ ${t=>{var e;return t["data-error"]&&re`
752
752
  > input,
753
753
  > textarea,
754
754
  > select {
@@ -805,7 +805,7 @@ Valid keys: `+JSON.stringify(Object.keys(x),null," "));var A=me(M,U,j,I,D+"."+U
805
805
  display: inline;
806
806
  margin-right: ${t=>{var e;return(e=t.theme.sizes)==null?void 0:e.normal}};
807
807
  }
808
- `;const Or=t=>{var e,n,r;return te`
808
+ `;const Or=t=>{var e,n,r;return re`
809
809
  border: ${t.theme.inputBorder};
810
810
  border-radius: ${t.theme.borderRadius};
811
811
  padding: ${(e=t.theme.sizes)==null?void 0:e.normal};
@@ -818,7 +818,7 @@ Valid keys: `+JSON.stringify(Object.keys(x),null," "));var A=me(M,U,j,I,D+"."+U
818
818
  ${t["data-focused"]?`border-color: ${(r=t.theme.colors)==null?void 0:r.primary}`:""}
819
819
  `};R(zc)`
820
820
  ${Or}
821
- ${t=>t["data-type"]==="textarea"&&te`
821
+ ${t=>t["data-type"]==="textarea"&&re`
822
822
  resize: vertical;
823
823
  min-height: 100px;
824
824
  `}
@@ -886,7 +886,7 @@ Valid keys: `+JSON.stringify(Object.keys(x),null," "));var A=me(M,U,j,I,D+"."+U
886
886
  color: #FFF;
887
887
  border-color: ${(n=t.theme.colors)==null?void 0:n.link}
888
888
  `}}
889
- `;R(je)`
889
+ `;R(Ae)`
890
890
  flex: 1 0 0;
891
891
  text-align: center;
892
892
  margin-top: 5px;
@@ -907,11 +907,11 @@ Valid keys: `+JSON.stringify(Object.keys(x),null," "));var A=me(M,U,j,I,D+"."+U
907
907
  }
908
908
  `;R.p`
909
909
  margin-bottom: 5px;
910
- `;R(je)`
910
+ `;R(Ae)`
911
911
  flex: 1 0 auto;
912
912
  align-self: flex-end;
913
913
  text-align: right;
914
- `;R(je)`
914
+ `;R(Ae)`
915
915
  flex: 1 0 auto;
916
916
  align-self: flex-start;
917
917
  text-align: left;
@@ -943,7 +943,7 @@ Valid keys: `+JSON.stringify(Object.keys(x),null," "));var A=me(M,U,j,I,D+"."+U
943
943
  &:not(:last-child) {
944
944
  margin: 0 0 15px 0;
945
945
  }
946
- ${t=>{var e;return t["data-type"]==="Name"&&t["data-multiline-form"]&&te`
946
+ ${t=>{var e;return t["data-type"]==="Name"&&t["data-multiline-form"]&&re`
947
947
  > div {
948
948
  display: grid;
949
949
  grid-template-columns: repeat(2, 1fr);
@@ -953,7 +953,7 @@ Valid keys: `+JSON.stringify(Object.keys(x),null," "));var A=me(M,U,j,I,D+"."+U
953
953
  }
954
954
  }
955
955
  `}}
956
- ${t=>{var e;return t["data-type"]==="Address"&&t["data-multiline-form"]&&te`
956
+ ${t=>{var e;return t["data-type"]==="Address"&&t["data-multiline-form"]&&re`
957
957
  > div {
958
958
  display: grid;
959
959
  grid-template-columns: repeat(8, 1fr);
@@ -975,7 +975,7 @@ Valid keys: `+JSON.stringify(Object.keys(x),null," "));var A=me(M,U,j,I,D+"."+U
975
975
  }
976
976
  }
977
977
  `}}
978
- `;const Tu=1e7,kn={fileName:null,fileSize:null,fileType:null,error:null},Ru=t=>!(t>Tu);class Pu extends m.Component{constructor(){super(...arguments);k(this,"state",kn);k(this,"reader");k(this,"input");k(this,"handleFileLoad",n=>{const r=this.reader.result;this.props.prompt(r,{fileName:this.state.fileName})});k(this,"handleFileChange",n=>{const r=this.input.files[0];if(r){if(!Ru(r.size)){const i=this.props.componentInstanceProps?this.props.componentInstanceProps.fileSizeErrorLabel:"Attached file exceeds maximum file size.";this.setState({...kn,error:i}),this.input.value=null,this.props.prompt("",{fileName:""});return}this.setState({...kn,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:s={},className:o="",title:a="",placeholder:l="",value:u="",...c}=this.props,d=this.state.fileName?h.jsx(fr,{children:this.state.fileName}):this.props.componentInstanceProps&&this.props.componentInstanceProps.fileUploadHeader?h.jsx("em",{children:this.props.componentInstanceProps.fileUploadHeader}):null;return h.jsxs(ju,{elementId:n,title:a,required:r,className:ie(o,"humany-form-component-file"),id:n,disabled:i,value:u,...c,children:[this.state.error&&h.jsx(_u,{className:"humany-file-error",children:this.state.error}),h.jsx(Au,{id:n,type:"file",placeholder:l,"aria-label":l,disabled:i,ref:f=>{this.input=f},onChange:this.handleFileChange,...s}),h.jsx(Lu,{htmlFor:n,role:"button",children:a}),d]})}}k(Pu,"contextTypes",{texts:()=>null});const ju=R(Vs)`
978
+ `;const Tu=1e7,kn={fileName:null,fileSize:null,fileType:null,error:null},Ru=t=>!(t>Tu);class Pu extends m.Component{constructor(){super(...arguments);O(this,"state",kn);O(this,"reader");O(this,"input");O(this,"handleFileLoad",n=>{const r=this.reader.result;this.props.prompt(r,{fileName:this.state.fileName})});O(this,"handleFileChange",n=>{const r=this.input.files[0];if(r){if(!Ru(r.size)){const i=this.props.componentInstanceProps?this.props.componentInstanceProps.fileSizeErrorLabel:"Attached file exceeds maximum file size.";this.setState({...kn,error:i}),this.input.value=null,this.props.prompt("",{fileName:""});return}this.setState({...kn,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:s={},className:o="",title:a="",placeholder:l="",value:u="",...c}=this.props,d=this.state.fileName?h.jsx(fr,{children:this.state.fileName}):this.props.componentInstanceProps&&this.props.componentInstanceProps.fileUploadHeader?h.jsx("em",{children:this.props.componentInstanceProps.fileUploadHeader}):null;return h.jsxs(ju,{elementId:n,title:a,required:r,className:ie(o,"humany-form-component-file"),id:n,disabled:i,value:u,...c,children:[this.state.error&&h.jsx(_u,{className:"humany-file-error",children:this.state.error}),h.jsx(Au,{id:n,type:"file",placeholder:l,"aria-label":l,disabled:i,ref:f=>{this.input=f},onChange:this.handleFileChange,...s}),h.jsx(Lu,{htmlFor:n,role:"button",children:a}),d]})}}O(Pu,"contextTypes",{texts:()=>null});const ju=R(Vs)`
979
979
  font-weight: 300;
980
980
  em {
981
981
  color: ${t=>{var e;return(e=t.theme.colors)==null?void 0:e.text}};
@@ -1083,13 +1083,13 @@ Valid keys: `+JSON.stringify(Object.keys(x),null," "));var A=me(M,U,j,I,D+"."+U
1083
1083
  && {
1084
1084
  box-sizing: content-box;
1085
1085
  }
1086
- `;R(je)`
1086
+ `;R(Ae)`
1087
1087
  ${bs}
1088
1088
  display: block;
1089
1089
  background-color: ${t=>{var e;return(e=t.theme.colors)==null?void 0:e.primary}};
1090
1090
  color: #ffffff;
1091
1091
  margin: 0 0 0 auto;
1092
1092
  min-width: 100px;
1093
- `;class Du{constructor(e){k(this,"cache",new Map);k(this,"subscriptions",[]);this.controller=e;const{events:n}=e.container.get("$widget"),r=n.subscribe("data-client:fetched",(i,s)=>{s.type==="contact-method"&&this.cache.set(s.response.id,s.response)});this.subscriptions.push(r)}getConversationLogs(){return this.controller.messages.reduce((n,r)=>{const i=nn(r),{key:s,content:o,type:a,sender:l,timestamp:u}=i.content,c=this.parseEntry(o,a,l,u);return c&&n.push(c),n},[])}parseEntry(e,n,r,i){const s=u=>{let c=[],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)]),c=[...c,...this.createMessageOptions(f)],{messagesAsList:d,options:c}};let o=[],a=[];if(Array.isArray(e.items)){const{items:u}=e;u.forEach(c=>{const d=s(c);o=[...o,...d.options],a=[...a,...d.messagesAsList]})}else{const u=s(e);o=[...o,...u.options],a=[...a,...u.messagesAsList]}return{options:o,message:a.length?a.join(`
1093
+ `;class Du{constructor(e){O(this,"cache",new Map);O(this,"subscriptions",[]);this.controller=e;const{events:n}=e.container.get("$widget"),r=n.subscribe("data-client:fetched",(i,s)=>{s.type==="contact-method"&&this.cache.set(s.response.id,s.response)});this.subscriptions.push(r)}getConversationLogs(){return this.controller.messages.reduce((n,r)=>{const i=nn(r),{key:s,content:o,type:a,sender:l,timestamp:u}=i.content,c=this.parseEntry(o,a,l,u);return c&&n.push(c),n},[])}parseEntry(e,n,r,i){const s=u=>{let c=[],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)]),c=[...c,...this.createMessageOptions(f)],{messagesAsList:d,options:c}};let o=[],a=[];if(Array.isArray(e.items)){const{items:u}=e;u.forEach(c=>{const d=s(c);o=[...o,...d.options],a=[...a,...d.messagesAsList]})}else{const u=s(e);o=[...o,...u.options],a=[...a,...u.messagesAsList]}return{options:o,message:a.length?a.join(`
1094
1094
  `):void 0,source:this.createMessageSource(n),alias:this.createAlias(n,r),timestamp:i}}createMessageSource(e){return e}createAlias(e,n){return e===tn.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:s,description:o,text:a,html:l,body:u,contactMethodId:c}=e;let d="";if(c){const f=this.handleContactMethod(c.toString());f&&(d=this.appendText(d,f,n))}return r&&(d=this.appendText(d,r,n)),i&&(d=this.appendText(d,i,n)),o&&(d=this.appendText(d,o,n)),a&&(d=this.appendText(d,a,n)),s&&(d=this.appendText(d,s,n)),l&&(d=this.appendText(d,l,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,s])=>({actionKey:i,label:s}))),r.length&&(n=r.map(i=>this.getDetails(i,!1))),n}appendText(e,n,r=!0){return r&&e.length?`${e}
1095
- ${n}`:e.length?`${e} ${n}`:n}dispose(){this.subscriptions.forEach(e=>{e()})}}class zn{constructor(e,n){k(this,"id");k(this,"name");k(this,"avatar");k(this,"print",(e,n)=>{const r={name:this.name,avatar:this.avatar,id:this.id},i=nn(e,n);return this.provider.createEntry(i.key,i.content,tn.Agent,r,i.timestamp)});k(this,"typing",()=>this.provider.setTypingState({name:this.name,avatar:this.avatar}));this.provider=e,this.id=n.id||Xe(),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 Nr{constructor(e,n,r){k(this,"subscriptions",[]);k(this,"options");k(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 Nr(e,n,r)}createAgent(e={}){var n;if(this.controller){const r=this.controller.getAgentById(e.id),i=r?new zn(this,{...r,...e}):new zn(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,s){var o;return(o=this.controller)==null?void 0:o.createEntry(e,n,r,i,s)}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 Hs=t=>`conversation-${t}`;class Mu{constructor(){k(this,"_locking",Promise.resolve());k(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}}class Iu{constructor(e,n,r){k(this,"sessionStorageKey");k(this,"locker",new Mu);k(this,"initialStoredAgents",[]);this.container=e,this.conversation=n,this.enabled=r,this.sessionStorageKey=Hs(n.id),n.onStarted(async()=>{if(n.messages.length>0)return;const{agents:i}=await this.read(),s=[];i&&i.forEach(a=>{const l=n.providerIndex(a.providerName),u=l>-1?n.registeredProviders[l]:n.createProvider(a.providerName),c=new zn(u,{name:a.name,avatar:a.avatar,id:a.id});s.push(c)});const{messages:o}=await this.read();o.forEach(a=>{switch(a.type){case"agent":{const l=s.find(u=>{var c;return u.id===((c=a.sender)==null?void 0:c.id)});l&&l.print(a.content.items||a.content,{key:a.key});return}case"user":{n.user.print(a.content.items||a.content,{key:a.key});return}case"system":default:n.print(a.content.items||a.content)}})}),n.onMessageCreated(async(i,s)=>{this.write(s.message,"messages")}),n.events.subscribe("conversation:agent-created",async(i,s)=>{const o={id:s.agent.id,name:s.agent.name,avatar:s.agent.avatar,providerName:s.agent.provider.name};await this.write(o,"agents")}),n.events.subscribe("conversation:agent-updated",async(i,s)=>{const{agents:o}=await this.read();await this.write([...o.map(a=>a.id===s.agent.id?{...a,name:s.agent.name,avatar:s.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 Ut(this.container,this.sessionStorageKey,he.Necessary).then(async s=>{if(r==="add"){const o=await this.read();if(n==="messages"&&o.messages.findIndex(l=>l.key===e.key)>-1){i();return}const a={...o};return n==="messages"?a.messages=[...a.messages,e]:n==="agents"&&(a.agents=[...a.agents,e]),s({...o,...a}).then(()=>{i()})}if(r==="update"&&n==="agents"){const o=await this.read();return s({...o,agents:e}).then(()=>{i()})}return s(e).then(()=>{i()})})}async read(){return Le(this.container,this.sessionStorageKey).then(e=>e||{messages:[],agents:[]})}}class Vu{constructor(e){k(this,"print",(e,n)=>{const r=nn(e,n);return this.controller.createEntry(r.key,r.content,tn.User,void 0,r.timestamp)});this.controller=e}}const Bn=async(t,e,n)=>{const r=await t.getAsync("conversation"),i=await t.getAsync("components"),s=r.controllers.find(o=>o.conversation.id===e);if(s){const o=[...s.conversation.providers];o.forEach(l=>{s.conversation.setProviderOptions(l,{silent:!0})}),s.conversation.queueProviders(o),s.conversation.setProviders([n]);const a=i.components().ofType("conversation");i.write({key:"setConversationProvider",attributes:{properties:{providers:[n]}},target:a,provider:"localStorage"})}};class Hu{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 tn=(t=>(t.User="user",t.Agent="agent",t.System="system",t))(tn||{});const nn=(t,e)=>{let n,r=(e==null?void 0:e.key)||Xe(),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 s=Me.create(r);t.form(s);const o=s.get();n.form=o}t.timestamp===null&&(i=null)}return{content:n,key:r,timestamp:i}},Ai=(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 zu{constructor(e,n,r){k(this,"formHandlers",{});k(this,"user",new Vu(this));k(this,"events");k(this,"providers",[]);k(this,"active",!1);k(this,"queuedProviders",[]);k(this,"registeredProviders",[]);k(this,"loaders",0);k(this,"componentMounted",!1);k(this,"store");k(this,"messages",[]);k(this,"typingActors",[]);k(this,"conversationHistory");k(this,"print",e=>{const n=nn(e);return this.createEntry(n.key,n.content,"system",void 0,n.timestamp)});this.container=e,this.id=n;const i=e.get("$widget");this.events=i.events.createChild(this),this.store=new Iu(e,this,r.rehydrate),this.conversationHistory=new Du(this)}setInitialStorage(e){this.store.setInitialData(e)}setProviders(e){const n=[],r=[];this.providers.reduce((i,s)=>(e.indexOf(s)===-1&&i.push(s),i),[]).forEach(i=>{const s=this.providers.indexOf(i);s>-1&&(n.push(i),this.providers.splice(s,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=Nr.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)&&Bn(this.container,this.id,e)}queueProviders(e){this.queuedProviders=e}onCompleteProvider(){const e=this.queuedProviders.pop();e&&Bn(this.container,this.id,e)}getComponentMountedState(){return this.componentMounted}onUnreadMessage(e){return this.events.subscribe("conversation:unread-message",e)}createEntry(e,n,r,i,s){const o={key:e,content:n,type:r,sender:i||null,timestamp:s||s===null?s:Date.now()};this.messages.push(o),o.type==="agent"&&Ai(this.typingActors,i);const a=new Hu(l=>{if(l!==null){const{timestamp:u=void 0,...c}=l;o.content=c,u&&(o.timestamp=u)}else{const u=this.messages.indexOf(o);o.content=null,u>-1&&this.messages.splice(u,1)}this.events.dispatch("conversation:message-updated",{message:o}),this.update()});return this.events.dispatch("conversation:message-created",{message:o}),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()),()=>{Ai(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 _i=t=>{const{implementation:e}=t.get("$widget"),r=(e.container.get("modals")||[]).map(i=>i.close());return Promise.all(r)},Bu=(t,e)=>{const n=t.split("_contact");return e.widgets.get(n[0])},$r=t=>{const e=t.get("$widget"),{name:n,implementation:r}=t.get("$widget"),i=n.indexOf("_contact")>-1?Bu(n,r):e,{data:s}=t.get("$settings"),{trigger:o}=i.container.get("$settings"),a=`${n.replace("_contact-method","").replace("_contact","")}_contact-method`,l=r.widgets.get(a);return l&&!o?{chatWidget:l,mainWidget:i,data:s}:{mainWidget:i,data:s}},Wu=t=>{const{chatWidget:e}=$r(t);return!!e},Li=(t,e,n)=>{const{mainWidget:r,data:i,chatWidget:s}=$r(t);return s?s.state==="activated"?s.invoke("open").then(()=>{s.container.getAsync("conversation").then(o=>{o.navigateToConversationIfActive(e.id).then(()=>_i(t))})}):s.activate().then(()=>{const{trigger:o}=s.container.get("$settings");return o.action="hide",s.invoke("setSettings",()=>({data:i,trigger:o,activate:!0})).then(()=>s.container.getAsync("components").then(a=>{const l=a.components().ofType("contact-method");a.write({key:"setContactMethodId",attributes:{properties:{id:e.id,guideId:e.guideId}},target:l,provider:"localStorage"});const u=a.components().ofType("conversation");a.write({key:"setConversationProvider",attributes:{properties:{providers:[e.clientName]}},target:u,provider:"localStorage"})}))}).then(()=>s.invoke("attach",{key:"contact-method",triggerDOMElement:n,withRenderState:"open"})).then(()=>(Ut(s.container,"activeStickyWidget",he.Necessary,{medium:pe.Local,scope:Wt.Implementation}).then(o=>o(s.name)),s.container.getAsync("conversation").then(o=>{o.setConversationEndedBehavior(zt.Deactivate)}).then(()=>_i(t)).then(()=>!1))):(r.container.getAsync("conversation").then(o=>o.navigateToConversationIfActive(e.id).then(()=>o.setConversationEndedBehavior(zt.Navigate))),!s)},Uu=(t,e,n="conversation")=>{const{mainWidget:r,chatWidget:i}=$r(t);return i?i.container.getAsync("router").then(s=>{s.navigate(n,{id:e.id})}):r.container.getAsync("conversation").then(s=>{var o;(o=s.setConversationEndedBehavior(zt.Navigate))==null||o.then(()=>{r.container.getAsync("router").then(a=>{r.container.getAsync("components").then(l=>{const u=l.components().ofType("conversation");l.write({key:"setConversationProvider",attributes:{properties:{providers:[e.clientName]}},target:u,provider:"localStorage"})}).then(()=>{a.navigate(n,{id:e.id})})})})})},st="conversations";var zt=(t=>(t.Deactivate="deactivate",t.Navigate="navigate",t.None="none",t))(zt||{});class Tr{constructor(e,n){k(this,"events");k(this,"controllers",[]);k(this,"providers",[]);k(this,"disposeProviders",{});k(this,"subscriptions",[]);k(this,"storageWriter",null);k(this,"router",null);k(this,"buttonQuery",null);k(this,"sessionInfo",null);this.container=e,this.components=n;const r=e.get("$widget");this.events=r.events.createChild(this)}initialize(){Ut(this.container,st,he.Necessary,{medium:pe.Local}).then(e=>this.storageWriter=e),Le(this.container,st,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,s;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&&((s=this.router)==null||s.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 ht(e)(()=>e.getAsync(n).then(r=>{let i=r;return i||Hi.getInstance(e).then(s=>(i=new Tr(e,s),i.initialize(),e.registerAsync(n,()=>i),i))}))}navigateToConversationIfActive(e){return Le(this.container,st,pe.Local).then(n=>{var r;if(n&&n.id===e&&n.route){const{name:i,params:s}=n.route;(r=this.router)==null||r.navigate(i,s)}})}setConversationEndedBehavior(e){return Le(this.container,st,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=Hs(e),{agents:i}=await Le(this.container,r)||{agents:[]},s=this.controllers.findIndex(a=>a.conversation.id===e);let o;return s>-1?o=this.controllers[s].conversation:o=new zu(this.container,e,n),o.setInitialStorage({agents:i||[]}),o}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(s=>s.conversation.id===e.id);let i;if(r<0){i={conversation:e,component:n},this.controllers.push(i);const s=o=>{o&&this.providers.filter(a=>o.indexOf(a.name)>-1).forEach(a=>{this.invokeHandler(a,i)})};return this.subscriptions.push(e.onDispose((o,a)=>{const l=this.controllers.findIndex(u=>u.conversation===a);l>-1&&this.controllers.splice(l,1),this.components.components().ofType("conversation-return-button").select().writeProperties({active:!1}),this.events.dispatch("conversation:ended",{},{bubbles:!0})})),this.subscriptions.push(e.onProvidersChange((o,a)=>{const{added:l,removed:u=[]}=a;u.forEach(c=>{(this.disposeProviders[c]||[]).forEach(d=>{d()})}),s(l)})),this.subscriptions.push(e.onStarted((o,a)=>{var u,c;const l={id:e.id,route:(u=this.router)==null?void 0:u.getRouteData(),conversationEndedBehavior:(c=this.sessionInfo)==null?void 0:c.conversationEndedBehavior};this.sessionInfo=l,this.storageWriter&&this.storageWriter(l),this.writeToComponents({active:a})})),this.subscriptions.push(e.onUnreadMessage((o,a)=>{this.events.dispatch("conversation:unread-message",a),this.writeToComponents({alert:{show:a}})})),s(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 Le(this.container,st,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(Wu(n)){e.preventDefault();let s=document.getElementById("humany-dynamic-anchor");s||(s=document.createElement("a"),s.setAttribute("href","#"),s.id="humany-dynamic-anchor",document.body.appendChild(s)),Li(n,r,s)}Li(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?Bn(e,n.body.form.meta.conversation.id,n.clientName):Uu(e,n)}}const Fu="@telia-ace/conversational-hub-bot-provider",qu="0.0.6",Yu="./index.js",Zu="./index.d.ts",Ku={".":{import:"./index.mjs",require:"./index.js"}},Gu={"@telia-ace/widget-conversation":"*","@webprovisions/platform":"^1.1.4","@emotion/react":"11.11.1","@telia-ace/knowledge-widget-core":"*","@telia-ace/widget-utilities":"*"},He={name:Fu,version:qu,main:Yu,types:Zu,exports:Ku,dependencies:Gu},Ju=async t=>{var f,p,g,v,y;const e=t.get("$widget");se.info((He==null?void 0:He.name)+" version: "+(He==null?void 0:He.version));const n=(y=(v=(g=(p=(f=e==null?void 0:e.container)==null?void 0:f.get("$settings"))==null?void 0:p.components)==null?void 0:g.conversation)==null?void 0:v.properties)==null?void 0:y.conversationalHubPluginSettings,r=await Tr.getInstance(t);let i,s,o=(n==null?void 0:n.connectionAttempts)??5;r.registerProvider("chub-plugin",(S,$)=>{i=S,s=i.createAgent({name:n==null?void 0:n.botName,avatar:n==null?void 0:n.avatar}),a(),$.actions.watch("conversation.action",(O,T)=>(l(O),T(O))),$.actions.watch("conversation.user-submit",(O,T)=>(u(O.text),T(O)))});async function a(S=!0){await c(n.baseUrl+"/initialize",`{"extension": "${n.extension}"}`,S)}async function l(S){await c(`${n.baseUrl}/input/${n.sessionId}`,`{"type":"button_click","language":"${n.language}","content":{"button_text":"${S.label}","value":"${S.actionKey}"}}`)}async function u(S){await c(`${n.baseUrl}/input/${n.sessionId}`,`{"type":"text","language":"${n.language}","content":{"text":"${S}"}}`)}async function c(S,$,O=!0){var P,_,z,W;const T=i.loading();let b,L;try{b=await fetch(S,{method:"POST",body:$}),L=await(b==null?void 0:b.json())}catch(F){F instanceof SyntaxError?se.error("Incorrect JSON format.",F):se.error("Network error: check connection or baseUrl.",F),T(),s.print(n.errorMessage);return}if(!(b!=null&&b.ok)){if(se.error(`HTTP ${b==null?void 0:b.status}.`,JSON.stringify(L)),T(),!!((P=L==null?void 0:L.errors)!=null&&P.filter(H=>H.code==="1003").length)&&o>0){o--,await new Promise(ne=>setTimeout(ne,500)),await a(!1);const H=JSON.parse($);(_=H==null?void 0:H.content)!=null&&_.text?await u(H.content.text):(z=H==null?void 0:H.content)!=null&&z.action&&await l((W=H==null?void 0:H.content)==null?void 0:W.action)}else s.print(n.errorMessage);return}T(),o=(n==null?void 0:n.connectionAttempts)??5,n.sessionId=L==null?void 0:L.session_id,O&&d(L)}function d(S){var $;S==null||S.agent_response.forEach(O=>{s.print(O.payload.text)}),($=S==null?void 0:S.prompt)!=null&&$.items&&s.print(["button-list",{actions:S.prompt.items.map(O=>{let T;return O.type==="button"&&(T={actionKey:O.value,label:O.text}),O.type==="link"&&(T={actionKey:O.value,label:O.text,data:{href:O.url,target:(n==null?void 0:n.linkTarget)??"_blank"}}),T})}])}};exports.ConversationalHubPlugin=Ju;
1095
+ ${n}`:e.length?`${e} ${n}`:n}dispose(){this.subscriptions.forEach(e=>{e()})}}class zn{constructor(e,n){O(this,"id");O(this,"name");O(this,"avatar");O(this,"print",(e,n)=>{const r={name:this.name,avatar:this.avatar,id:this.id},i=nn(e,n);return this.provider.createEntry(i.key,i.content,tn.Agent,r,i.timestamp)});O(this,"typing",()=>this.provider.setTypingState({name:this.name,avatar:this.avatar}));this.provider=e,this.id=n.id||Xe(),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 Nr{constructor(e,n,r){O(this,"subscriptions",[]);O(this,"options");O(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 Nr(e,n,r)}createAgent(e={}){var n;if(this.controller){const r=this.controller.getAgentById(e.id),i=r?new zn(this,{...r,...e}):new zn(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,s){var o;return(o=this.controller)==null?void 0:o.createEntry(e,n,r,i,s)}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 Hs=t=>`conversation-${t}`;class Mu{constructor(){O(this,"_locking",Promise.resolve());O(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}}class Iu{constructor(e,n,r){O(this,"sessionStorageKey");O(this,"locker",new Mu);O(this,"initialStoredAgents",[]);this.container=e,this.conversation=n,this.enabled=r,this.sessionStorageKey=Hs(n.id),n.onStarted(async()=>{if(n.messages.length>0)return;const{agents:i}=await this.read(),s=[];i&&i.forEach(a=>{const l=n.providerIndex(a.providerName),u=l>-1?n.registeredProviders[l]:n.createProvider(a.providerName),c=new zn(u,{name:a.name,avatar:a.avatar,id:a.id});s.push(c)});const{messages:o}=await this.read();o.forEach(a=>{switch(a.type){case"agent":{const l=s.find(u=>{var c;return u.id===((c=a.sender)==null?void 0:c.id)});l&&l.print(a.content.items||a.content,{key:a.key});return}case"user":{n.user.print(a.content.items||a.content,{key:a.key});return}case"system":default:n.print(a.content.items||a.content)}})}),n.onMessageCreated(async(i,s)=>{this.write(s.message,"messages")}),n.events.subscribe("conversation:agent-created",async(i,s)=>{const o={id:s.agent.id,name:s.agent.name,avatar:s.agent.avatar,providerName:s.agent.provider.name};await this.write(o,"agents")}),n.events.subscribe("conversation:agent-updated",async(i,s)=>{const{agents:o}=await this.read();await this.write([...o.map(a=>a.id===s.agent.id?{...a,name:s.agent.name,avatar:s.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 pt(this.container,this.sessionStorageKey,he.Necessary).then(async s=>{if(r==="add"){const o=await this.read();if(n==="messages"&&o.messages.findIndex(l=>l.key===e.key)>-1){i();return}const a={...o};return n==="messages"?a.messages=[...a.messages,e]:n==="agents"&&(a.agents=[...a.agents,e]),s({...o,...a}).then(()=>{i()})}if(r==="update"&&n==="agents"){const o=await this.read();return s({...o,agents:e}).then(()=>{i()})}return s(e).then(()=>{i()})})}async read(){return je(this.container,this.sessionStorageKey).then(e=>e||{messages:[],agents:[]})}}class Vu{constructor(e){O(this,"print",(e,n)=>{const r=nn(e,n);return this.controller.createEntry(r.key,r.content,tn.User,void 0,r.timestamp)});this.controller=e}}const Bn=async(t,e,n)=>{const r=await t.getAsync("conversation"),i=await t.getAsync("components"),s=r.controllers.find(o=>o.conversation.id===e);if(s){const o=[...s.conversation.providers];o.forEach(l=>{s.conversation.setProviderOptions(l,{silent:!0})}),s.conversation.queueProviders(o),s.conversation.setProviders([n]);const a=i.components().ofType("conversation");i.write({key:"setConversationProvider",attributes:{properties:{providers:[n]}},target:a,provider:"localStorage"})}};class Hu{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 tn=(t=>(t.User="user",t.Agent="agent",t.System="system",t))(tn||{});const nn=(t,e)=>{let n,r=(e==null?void 0:e.key)||Xe(),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 s=Me.create(r);t.form(s);const o=s.get();n.form=o}t.timestamp===null&&(i=null)}return{content:n,key:r,timestamp:i}},Ai=(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 zu{constructor(e,n,r){O(this,"formHandlers",{});O(this,"user",new Vu(this));O(this,"events");O(this,"providers",[]);O(this,"active",!1);O(this,"queuedProviders",[]);O(this,"registeredProviders",[]);O(this,"loaders",0);O(this,"componentMounted",!1);O(this,"store");O(this,"messages",[]);O(this,"typingActors",[]);O(this,"conversationHistory");O(this,"print",e=>{const n=nn(e);return this.createEntry(n.key,n.content,"system",void 0,n.timestamp)});this.container=e,this.id=n;const i=e.get("$widget");this.events=i.events.createChild(this),this.store=new Iu(e,this,r.rehydrate),this.conversationHistory=new Du(this)}setInitialStorage(e){this.store.setInitialData(e)}setProviders(e){const n=[],r=[];this.providers.reduce((i,s)=>(e.indexOf(s)===-1&&i.push(s),i),[]).forEach(i=>{const s=this.providers.indexOf(i);s>-1&&(n.push(i),this.providers.splice(s,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=Nr.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)&&Bn(this.container,this.id,e)}queueProviders(e){this.queuedProviders=e}onCompleteProvider(){const e=this.queuedProviders.pop();e&&Bn(this.container,this.id,e)}getComponentMountedState(){return this.componentMounted}onUnreadMessage(e){return this.events.subscribe("conversation:unread-message",e)}createEntry(e,n,r,i,s){const o={key:e,content:n,type:r,sender:i||null,timestamp:s||s===null?s:Date.now()};this.messages.push(o),o.type==="agent"&&Ai(this.typingActors,i);const a=new Hu(l=>{if(l!==null){const{timestamp:u=void 0,...c}=l;o.content=c,u&&(o.timestamp=u)}else{const u=this.messages.indexOf(o);o.content=null,u>-1&&this.messages.splice(u,1)}this.events.dispatch("conversation:message-updated",{message:o}),this.update()});return this.events.dispatch("conversation:message-created",{message:o}),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()),()=>{Ai(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 _i=t=>{const{implementation:e}=t.get("$widget"),r=(e.container.get("modals")||[]).map(i=>i.close());return Promise.all(r)},Bu=(t,e)=>{const n=t.split("_contact");return e.widgets.get(n[0])},$r=t=>{const e=t.get("$widget"),{name:n,implementation:r}=t.get("$widget"),i=n.indexOf("_contact")>-1?Bu(n,r):e,{data:s}=t.get("$settings"),{trigger:o}=i.container.get("$settings"),a=`${n.replace("_contact-method","").replace("_contact","")}_contact-method`,l=r.widgets.get(a);return l&&!o?{chatWidget:l,mainWidget:i,data:s}:{mainWidget:i,data:s}},Wu=t=>{const{chatWidget:e}=$r(t);return!!e},Li=(t,e,n)=>{const{mainWidget:r,data:i,chatWidget:s}=$r(t);return s?s.state==="activated"?s.invoke("open").then(()=>{s.container.getAsync("conversation").then(o=>{o.navigateToConversationIfActive(e.id).then(()=>_i(t))})}):s.activate().then(()=>{const{trigger:o}=s.container.get("$settings");return o.action="hide",s.invoke("setSettings",()=>({data:i,trigger:o,activate:!0})).then(()=>s.container.getAsync("components").then(a=>{const l=a.components().ofType("contact-method");a.write({key:"setContactMethodId",attributes:{properties:{id:e.id,guideId:e.guideId}},target:l,provider:"localStorage"});const u=a.components().ofType("conversation");a.write({key:"setConversationProvider",attributes:{properties:{providers:[e.clientName]}},target:u,provider:"localStorage"})}))}).then(()=>s.invoke("attach",{key:"contact-method",triggerDOMElement:n,withRenderState:"open"})).then(()=>(pt(s.container,"activeStickyWidget",he.Necessary,{medium:pe.Local,scope:Ut.Implementation}).then(o=>o(s.name)),s.container.getAsync("conversation").then(o=>{o.setConversationEndedBehavior(Bt.Deactivate)}).then(()=>_i(t)).then(()=>!1))):(r.container.getAsync("conversation").then(o=>o.navigateToConversationIfActive(e.id).then(()=>o.setConversationEndedBehavior(Bt.Navigate))),!s)},Uu=(t,e,n="conversation")=>{const{mainWidget:r,chatWidget:i}=$r(t);return i?i.container.getAsync("router").then(s=>{s.navigate(n,{id:e.id})}):r.container.getAsync("conversation").then(s=>{var o;(o=s.setConversationEndedBehavior(Bt.Navigate))==null||o.then(()=>{r.container.getAsync("router").then(a=>{r.container.getAsync("components").then(l=>{const u=l.components().ofType("conversation");l.write({key:"setConversationProvider",attributes:{properties:{providers:[e.clientName]}},target:u,provider:"localStorage"})}).then(()=>{a.navigate(n,{id:e.id})})})})})},st="conversations";var Bt=(t=>(t.Deactivate="deactivate",t.Navigate="navigate",t.None="none",t))(Bt||{});class Tr{constructor(e,n){O(this,"events");O(this,"controllers",[]);O(this,"providers",[]);O(this,"disposeProviders",{});O(this,"subscriptions",[]);O(this,"storageWriter",null);O(this,"router",null);O(this,"buttonQuery",null);O(this,"sessionInfo",null);this.container=e,this.components=n;const r=e.get("$widget");this.events=r.events.createChild(this)}initialize(){pt(this.container,st,he.Necessary,{medium:pe.Local}).then(e=>this.storageWriter=e),je(this.container,st,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,s;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&&((s=this.router)==null||s.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 ht(e)(()=>e.getAsync(n).then(r=>{let i=r;return i||Hi.getInstance(e).then(s=>(i=new Tr(e,s),i.initialize(),e.registerAsync(n,()=>i),i))}))}navigateToConversationIfActive(e){return je(this.container,st,pe.Local).then(n=>{var r;if(n&&n.id===e&&n.route){const{name:i,params:s}=n.route;(r=this.router)==null||r.navigate(i,s)}})}setConversationEndedBehavior(e){return je(this.container,st,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=Hs(e),{agents:i}=await je(this.container,r)||{agents:[]},s=this.controllers.findIndex(a=>a.conversation.id===e);let o;return s>-1?o=this.controllers[s].conversation:o=new zu(this.container,e,n),o.setInitialStorage({agents:i||[]}),o}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(s=>s.conversation.id===e.id);let i;if(r<0){i={conversation:e,component:n},this.controllers.push(i);const s=o=>{o&&this.providers.filter(a=>o.indexOf(a.name)>-1).forEach(a=>{this.invokeHandler(a,i)})};return this.subscriptions.push(e.onDispose((o,a)=>{const l=this.controllers.findIndex(u=>u.conversation===a);l>-1&&this.controllers.splice(l,1),this.components.components().ofType("conversation-return-button").select().writeProperties({active:!1}),this.events.dispatch("conversation:ended",{},{bubbles:!0})})),this.subscriptions.push(e.onProvidersChange((o,a)=>{const{added:l,removed:u=[]}=a;u.forEach(c=>{(this.disposeProviders[c]||[]).forEach(d=>{d()})}),s(l)})),this.subscriptions.push(e.onStarted((o,a)=>{var u,c;const l={id:e.id,route:(u=this.router)==null?void 0:u.getRouteData(),conversationEndedBehavior:(c=this.sessionInfo)==null?void 0:c.conversationEndedBehavior};this.sessionInfo=l,this.storageWriter&&this.storageWriter(l),this.writeToComponents({active:a})})),this.subscriptions.push(e.onUnreadMessage((o,a)=>{this.events.dispatch("conversation:unread-message",a),this.writeToComponents({alert:{show:a}})})),s(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 je(this.container,st,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(Wu(n)){e.preventDefault();let s=document.getElementById("humany-dynamic-anchor");s||(s=document.createElement("a"),s.setAttribute("href","#"),s.id="humany-dynamic-anchor",document.body.appendChild(s)),Li(n,r,s)}Li(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?Bn(e,n.body.form.meta.conversation.id,n.clientName):Uu(e,n)}}const Fu="@telia-ace/conversational-hub-bot-provider",qu="0.0.7",Yu="./index.js",Zu="./index.d.ts",Ku={".":{import:"./index.mjs",require:"./index.js"}},Gu={"@telia-ace/widget-conversation":"*","@webprovisions/platform":"^1.1.4","@emotion/react":"11.11.1","@telia-ace/knowledge-widget-core":"*","@telia-ace/widget-utilities":"*","@telia-ace/widget-services":"*"},He={name:Fu,version:qu,main:Yu,types:Zu,exports:Ku,dependencies:Gu},Ju=async t=>{var g,v,b,$,P;const e=t.get("$widget");se.info((He==null?void 0:He.name)+" version: "+(He==null?void 0:He.version));const n=await pt(t,"conversational-hub-session",he.Necessary),r=(P=($=(b=(v=(g=e==null?void 0:e.container)==null?void 0:g.get("$settings"))==null?void 0:v.components)==null?void 0:b.conversation)==null?void 0:$.properties)==null?void 0:P.conversationalHubPluginSettings,i=await Tr.getInstance(t);let s,o,a=(r==null?void 0:r.connectionAttempts)??5,l;i.registerProvider("chub-plugin",(k,S)=>{s=k,o=s.createAgent({name:r==null?void 0:r.botName,avatar:r==null?void 0:r.avatar}),u(),S.actions.watch("conversation.action",(y,L)=>(c(y),L(y))),S.actions.watch("conversation.user-submit",(y,L)=>(d(y.text),L(y)))});async function u(k=!0){const S=await je(t,"conversational-hub-session");S!=null&&S.sessionId?l=S==null?void 0:S.sessionId:await f(r.baseUrl+"/initialize",`{"extension": "${r.extension}"}`,k)}async function c(k){await f(`${r.baseUrl}/input/${l}`,`{"type":"button_click","language":"${r.language}","content":{"button_text":"${k.label}","value":"${k.actionKey}"}}`)}async function d(k){await f(`${r.baseUrl}/input/${l}`,`{"type":"text","language":"${r.language}","content":{"text":"${k}"}}`)}async function f(k,S,y=!0){var H,B,Y,q;const L=s.loading();let T,A;try{T=await fetch(k,{method:"POST",body:S}),A=await(T==null?void 0:T.json())}catch(Q){Q instanceof SyntaxError?se.error("Incorrect JSON format.",Q):se.error("Network error: check connection or baseUrl.",Q),L(),o.print(r.errorMessage);return}if(!(T!=null&&T.ok)){if(se.error(`HTTP ${T==null?void 0:T.status}.`,JSON.stringify(A)),L(),!!((H=A==null?void 0:A.errors)!=null&&H.filter(W=>W.code==="1003").length)&&a>0){a--,await new Promise(te=>setTimeout(te,500)),await u(!1);const W=JSON.parse(S);(B=W==null?void 0:W.content)!=null&&B.text?await d(W.content.text):(Y=W==null?void 0:W.content)!=null&&Y.action&&await c((q=W==null?void 0:W.content)==null?void 0:q.action)}else o.print(r.errorMessage);return}L(),a=(r==null?void 0:r.connectionAttempts)??5,l=A==null?void 0:A.session_id,n({sessionId:l}),y&&p(A)}function p(k){var S;k==null||k.agent_response.forEach(y=>{o.print(y.payload.text)}),(S=k==null?void 0:k.prompt)!=null&&S.items&&o.print(["button-list",{actions:k.prompt.items.map(y=>{let L;return y.type==="button"&&(L={actionKey:y.value,label:y.text}),y.type==="link"&&(L={actionKey:y.value,label:y.text,data:{href:y.url,target:(r==null?void 0:r.linkTarget)??"_blank"}}),L})}])}};exports.ConversationalHubPlugin=Ju;