@hotosm/ui 0.3.2-b5 → 0.3.2-b8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,690 +0,0 @@
1
- import{a as lo,b as co}from"./chunk.WX25LIXR.js";import{a as Wt,b as Ge,c as Z,d as it,e as rt,f as so}from"./chunk.2FEIL35F.js";import{a as ot,b as oe,c as ro,d as at}from"./chunk.6Y3X2E2V.js";import{a as uo}from"./chunk.KO4EOD3I.js";import{e as be,k as io}from"./chunk.TNLBUOUK.js";import{a as ao,d as We,e as Fe,f as He,g as Re}from"./chunk.NI7UJOOZ.js";function xa(n,t){return{top:Math.round(n.getBoundingClientRect().top-t.getBoundingClientRect().top),left:Math.round(n.getBoundingClientRect().left-t.getBoundingClientRect().left)}}var vn=new Set;function Ca(){let n=document.documentElement.clientWidth;return Math.abs(window.innerWidth-n)}function Oa(){let n=Number(getComputedStyle(document.body).paddingRight.replace(/px/,""));return isNaN(n)||!n?0:n}function gn(n){if(vn.add(n),!document.documentElement.classList.contains("wa-scroll-lock")){let t=Ca()+Oa(),e=getComputedStyle(document.documentElement).scrollbarGutter;(!e||e==="auto")&&(e="stable"),t<2&&(e=""),document.documentElement.style.setProperty("--wa-scroll-lock-gutter",e),document.documentElement.classList.add("wa-scroll-lock"),document.documentElement.style.setProperty("--wa-scroll-lock-size",`${t}px`)}}function bn(n){vn.delete(n),vn.size===0&&(document.documentElement.classList.remove("wa-scroll-lock"),document.documentElement.style.removeProperty("--wa-scroll-lock-size"))}function _n(n,t,e="vertical",o="smooth"){let i=xa(n,t),r=i.top+t.scrollTop,s=i.left+t.scrollLeft,l=t.scrollLeft,u=t.scrollLeft+t.offsetWidth,c=t.scrollTop,d=t.scrollTop+t.offsetHeight;(e==="horizontal"||e==="both")&&(s<l?t.scrollTo({left:s,behavior:o}):s+n.clientWidth>u&&t.scrollTo({left:s-t.offsetWidth+n.clientWidth,behavior:o})),(e==="vertical"||e==="both")&&(r<c?t.scrollTo({top:r,behavior:o}):r+n.clientHeight>d&&t.scrollTo({top:r-t.offsetHeight+n.clientHeight,behavior:o}))}var Aa=class extends Event{constructor(n){super("wa-tab-hide",{bubbles:!0,cancelable:!1,composed:!0}),this.detail=n}},Ia=class extends Event{constructor(n){super("wa-tab-show",{bubbles:!0,cancelable:!1,composed:!0}),this.detail=n}},Ea=`:host {
2
- --indicator-color: var(--wa-color-brand-fill-loud);
3
- --track-color: var(--wa-color-neutral-fill-normal);
4
- --track-width: 0.125rem;
5
-
6
- display: block;
7
- }
8
-
9
- .tab-group {
10
- display: flex;
11
- border-radius: 0;
12
- }
13
-
14
- .tabs {
15
- display: flex;
16
- position: relative;
17
- }
18
-
19
- .indicator {
20
- position: absolute;
21
- }
22
-
23
- .tab-group-has-scroll-controls .nav-container {
24
- position: relative;
25
- padding: 0 1.5em;
26
- }
27
-
28
- .body {
29
- display: block;
30
- overflow: auto;
31
- }
32
-
33
- .scroll-button {
34
- display: flex;
35
- align-items: center;
36
- justify-content: center;
37
- position: absolute;
38
- top: 0;
39
- bottom: 0;
40
- width: 1.5em;
41
- }
42
-
43
- .scroll-button-start {
44
- inset-inline-start: 0;
45
- }
46
-
47
- .scroll-button-end {
48
- inset-inline-end: 0;
49
- }
50
-
51
- /*
52
- * Top
53
- */
54
-
55
- .tab-group-top {
56
- flex-direction: column;
57
- }
58
-
59
- .tab-group-top .nav-container {
60
- order: 1;
61
- }
62
-
63
- .tab-group-top .nav {
64
- display: flex;
65
- overflow-x: auto;
66
-
67
- /* Hide scrollbar in Firefox */
68
- scrollbar-width: none;
69
- }
70
-
71
- /* Hide scrollbar in Chrome/Safari */
72
- .tab-group-top .nav::-webkit-scrollbar {
73
- width: 0;
74
- height: 0;
75
- }
76
-
77
- .tab-group-top .tabs {
78
- flex: 1 1 auto;
79
- position: relative;
80
- flex-direction: row;
81
- border-bottom: solid var(--track-width) var(--track-color);
82
- }
83
-
84
- .tab-group-top .indicator {
85
- bottom: calc(-1 * var(--track-width));
86
- border-bottom: solid var(--track-width) var(--indicator-color);
87
- }
88
-
89
- .tab-group-top .body {
90
- order: 2;
91
- }
92
-
93
- .tab-group-top ::slotted(wa-tab[active]) {
94
- border-block-end: solid var(--track-width) var(--indicator-color);
95
- margin-block-end: calc(-1 * var(--track-width));
96
- }
97
-
98
- .tab-group-top ::slotted(wa-tab-panel) {
99
- --padding: var(--wa-space-xl) 0;
100
- }
101
-
102
- /*
103
- * Bottom
104
- */
105
-
106
- .tab-group-bottom {
107
- flex-direction: column;
108
- }
109
-
110
- .tab-group-bottom .nav-container {
111
- order: 2;
112
- }
113
-
114
- .tab-group-bottom .nav {
115
- display: flex;
116
- overflow-x: auto;
117
-
118
- /* Hide scrollbar in Firefox */
119
- scrollbar-width: none;
120
- }
121
-
122
- /* Hide scrollbar in Chrome/Safari */
123
- .tab-group-bottom .nav::-webkit-scrollbar {
124
- width: 0;
125
- height: 0;
126
- }
127
-
128
- .tab-group-bottom .tabs {
129
- flex: 1 1 auto;
130
- position: relative;
131
- flex-direction: row;
132
- border-top: solid var(--track-width) var(--track-color);
133
- }
134
-
135
- .tab-group-bottom .indicator {
136
- top: calc(-1 * var(--track-width));
137
- border-top: solid var(--track-width) var(--indicator-color);
138
- }
139
-
140
- .tab-group-bottom .body {
141
- order: 1;
142
- }
143
-
144
- .tab-group-bottom ::slotted(wa-tab[active]) {
145
- border-block-start: solid var(--track-width) var(--indicator-color);
146
- margin-block-start: calc(-1 * var(--track-width));
147
- }
148
-
149
- .tab-group-bottom ::slotted(wa-tab-panel) {
150
- --padding: var(--wa-space-xl) 0;
151
- }
152
-
153
- /*
154
- * Start
155
- */
156
-
157
- .tab-group-start {
158
- flex-direction: row;
159
- }
160
-
161
- .tab-group-start .nav-container {
162
- order: 1;
163
- }
164
-
165
- .tab-group-start .tabs {
166
- flex: 0 0 auto;
167
- flex-direction: column;
168
- border-inline-end: solid var(--track-width) var(--track-color);
169
- }
170
-
171
- .tab-group-start .indicator {
172
- inset-inline-end: calc(-1 * var(--track-width));
173
- border-right: solid var(--track-width) var(--indicator-color);
174
- }
175
-
176
- .tab-group-start .body {
177
- flex: 1 1 auto;
178
- order: 2;
179
- }
180
-
181
- .tab-group-start ::slotted(wa-tab[active]) {
182
- border-inline-end: solid var(--track-width) var(--indicator-color);
183
- margin-inline-end: calc(-1 * var(--track-width));
184
- }
185
-
186
- .tab-group-start ::slotted(wa-tab-panel) {
187
- --padding: 0 var(--wa-space-xl);
188
- }
189
-
190
- /*
191
- * End
192
- */
193
-
194
- .tab-group-end {
195
- flex-direction: row;
196
- }
197
-
198
- .tab-group-end .nav-container {
199
- order: 2;
200
- }
201
-
202
- .tab-group-end .tabs {
203
- flex: 0 0 auto;
204
- flex-direction: column;
205
- border-left: solid var(--track-width) var(--track-color);
206
- }
207
-
208
- .tab-group-end .indicator {
209
- inset-inline-start: calc(-1 * var(--track-width));
210
- border-inline-start: solid var(--track-width) var(--indicator-color);
211
- }
212
-
213
- .tab-group-end .body {
214
- flex: 1 1 auto;
215
- order: 1;
216
- }
217
-
218
- .tab-group-end ::slotted(wa-tab[active]) {
219
- border-inline-start: solid var(--track-width) var(--indicator-color);
220
- margin-inline-start: calc(-1 * var(--track-width));
221
- }
222
-
223
- .tab-group-end ::slotted(wa-tab-panel) {
224
- --padding: 0 var(--wa-space-xl);
225
- }
226
- `,Te=class extends it{constructor(){super(...arguments),this.tabs=[],this.focusableTabs=[],this.panels=[],this.localize=new Wt(this),this.hasScrollControls=!1,this.active="",this.placement="top",this.activation="auto",this.withoutScrollControls=!1}connectedCallback(){super.connectedCallback(),this.resizeObserver=new ResizeObserver(()=>{this.updateScrollControls()}),this.mutationObserver=new MutationObserver(n=>{n.some(e=>!["aria-labelledby","aria-controls"].includes(e.attributeName))&&setTimeout(()=>this.setAriaLabels());let t=n.filter(e=>e.target.closest("wa-tab-group")===this);if(t.some(e=>e.attributeName==="disabled"))this.syncTabsAndPanels();else if(t.some(e=>e.attributeName==="active")){let o=t.filter(i=>i.attributeName==="active"&&i.target.tagName.toLowerCase()==="wa-tab").map(i=>i.target).find(i=>i.active);o&&o.closest("wa-tab-group")===this&&this.setActiveTab(o)}}),this.updateComplete.then(()=>{this.syncTabsAndPanels(),this.mutationObserver.observe(this,{attributes:!0,childList:!0,subtree:!0}),this.resizeObserver.observe(this.nav),new IntersectionObserver((t,e)=>{var o;if(t[0].intersectionRatio>0){if(this.setAriaLabels(),this.active){let i=this.tabs.find(r=>r.panel===this.active);i&&this.setActiveTab(i)}else this.setActiveTab((o=this.getActiveTab())!=null?o:this.tabs[0],{emitEvents:!1});e.unobserve(t[0].target)}}).observe(this.tabGroup)})}disconnectedCallback(){var n,t;super.disconnectedCallback(),(n=this.mutationObserver)==null||n.disconnect(),this.nav&&((t=this.resizeObserver)==null||t.unobserve(this.nav))}getAllTabs(){return[...this.shadowRoot.querySelector('slot[name="nav"]').assignedElements()].filter(t=>t.tagName.toLowerCase()==="wa-tab")}getAllPanels(){return[...this.body.assignedElements()].filter(n=>n.tagName.toLowerCase()==="wa-tab-panel")}getActiveTab(){return this.tabs.find(n=>n.active)}handleClick(n){let e=n.target.closest("wa-tab");(e==null?void 0:e.closest("wa-tab-group"))===this&&e!==null&&this.setActiveTab(e,{scrollBehavior:"smooth"})}handleKeyDown(n){let e=n.target.closest("wa-tab");if((e==null?void 0:e.closest("wa-tab-group"))===this){if(["Enter"," "].includes(n.key)){e!==null&&(this.setActiveTab(e,{scrollBehavior:"smooth"}),n.preventDefault());return}if(["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End"].includes(n.key)){let i=this.tabs.find(l=>l.matches(":focus")),r=this.localize.dir()==="rtl",s=null;if((i==null?void 0:i.tagName.toLowerCase())==="wa-tab"){if(n.key==="Home")s=this.focusableTabs[0];else if(n.key==="End")s=this.focusableTabs[this.focusableTabs.length-1];else if(["top","bottom"].includes(this.placement)&&n.key===(r?"ArrowRight":"ArrowLeft")||["start","end"].includes(this.placement)&&n.key==="ArrowUp"){let l=this.tabs.findIndex(u=>u===i);s=this.findNextFocusableTab(l,"backward")}else if(["top","bottom"].includes(this.placement)&&n.key===(r?"ArrowLeft":"ArrowRight")||["start","end"].includes(this.placement)&&n.key==="ArrowDown"){let l=this.tabs.findIndex(u=>u===i);s=this.findNextFocusableTab(l,"forward")}if(!s)return;s.tabIndex=0,s.focus({preventScroll:!0}),this.activation==="auto"?this.setActiveTab(s,{scrollBehavior:"smooth"}):this.tabs.forEach(l=>{l.tabIndex=l===s?0:-1}),["top","bottom"].includes(this.placement)&&_n(s,this.nav,"horizontal"),n.preventDefault()}}}}findNextFocusableTab(n,t){let e=null,o=t==="forward"?1:-1,i=n+o;for(;n<this.tabs.length;){if(e=this.tabs[i]||null,e===null){t==="forward"?e=this.focusableTabs[0]:e=this.focusableTabs[this.focusableTabs.length-1];break}if(!e.disabled)break;i+=o}return e}handleScrollToStart(){this.nav.scroll({left:this.localize.dir()==="rtl"?this.nav.scrollLeft+this.nav.clientWidth:this.nav.scrollLeft-this.nav.clientWidth,behavior:"smooth"})}handleScrollToEnd(){this.nav.scroll({left:this.localize.dir()==="rtl"?this.nav.scrollLeft-this.nav.clientWidth:this.nav.scrollLeft+this.nav.clientWidth,behavior:"smooth"})}setActiveTab(n,t){if(t=ao({emitEvents:!0,scrollBehavior:"auto"},t),n.closest("wa-tab-group")===this&&n!==this.activeTab&&!n.disabled){let e=this.activeTab;this.active=n.panel,this.activeTab=n,this.tabs.forEach(o=>{o.active=o===this.activeTab,o.tabIndex=o===this.activeTab?0:-1}),this.panels.forEach(o=>{var i;return o.active=o.name===((i=this.activeTab)==null?void 0:i.panel)}),["top","bottom"].includes(this.placement)&&_n(this.activeTab,this.nav,"horizontal",t.scrollBehavior),t.emitEvents&&(e&&this.dispatchEvent(new Aa({name:e.panel})),this.dispatchEvent(new Ia({name:this.activeTab.panel})))}}setAriaLabels(){this.tabs.forEach(n=>{let t=this.panels.find(e=>e.name===n.panel);t&&(n.setAttribute("aria-controls",t.getAttribute("id")),t.setAttribute("aria-labelledby",n.getAttribute("id")))})}syncTabsAndPanels(){this.tabs=this.getAllTabs(),this.focusableTabs=this.tabs.filter(n=>!n.disabled),this.panels=this.getAllPanels(),this.updateComplete.then(()=>this.updateScrollControls())}updateActiveTab(){let n=this.tabs.find(t=>t.panel===this.active);n&&this.setActiveTab(n,{scrollBehavior:"smooth"})}updateScrollControls(){this.withoutScrollControls?this.hasScrollControls=!1:this.hasScrollControls=["top","bottom"].includes(this.placement)&&this.nav.scrollWidth>this.nav.clientWidth+1}render(){let n=this.hasUpdated?this.localize.dir()==="rtl":this.dir==="rtl";return be`
227
- <div
228
- part="base"
229
- class=${rt({"tab-group":!0,"tab-group-top":this.placement==="top","tab-group-bottom":this.placement==="bottom","tab-group-start":this.placement==="start","tab-group-end":this.placement==="end","tab-group-has-scroll-controls":this.hasScrollControls})}
230
- @click=${this.handleClick}
231
- @keydown=${this.handleKeyDown}
232
- >
233
- <div class="nav-container" part="nav">
234
- ${this.hasScrollControls?be`
235
- <wa-button
236
- part="scroll-button scroll-button-start"
237
- exportparts="base:scroll-button__base"
238
- class="scroll-button scroll-button-start"
239
- appearance="plain"
240
- @click=${this.handleScrollToStart}
241
- >
242
- <wa-icon
243
- name=${n?"chevron-right":"chevron-left"}
244
- library="system"
245
- variant="solid"
246
- label=${this.localize.term("scrollToStart")}
247
- ></wa-icon>
248
- </wa-button>
249
- `:""}
250
-
251
- <!-- We have a focus listener because in Firefox (and soon to be Chrome) overflow containers are focusable. -->
252
- <div class="nav" @focus=${()=>{var t;return(t=this.activeTab)==null?void 0:t.focus({preventScroll:!0})}}>
253
- <div part="tabs" class="tabs" role="tablist">
254
- <slot name="nav" @slotchange=${this.syncTabsAndPanels}></slot>
255
- </div>
256
- </div>
257
-
258
- ${this.hasScrollControls?be`
259
- <wa-button
260
- part="scroll-button scroll-button-end"
261
- class="scroll-button scroll-button-end"
262
- exportparts="base:scroll-button__base"
263
- appearance="plain"
264
- @click=${this.handleScrollToEnd}
265
- >
266
- <wa-icon
267
- name=${n?"chevron-left":"chevron-right"}
268
- library="system"
269
- variant="solid"
270
- label=${this.localize.term("scrollToEnd")}
271
- ></wa-icon>
272
- </wa-button>
273
- `:""}
274
- </div>
275
-
276
- <slot part="body" class="body" @slotchange=${this.syncTabsAndPanels}></slot>
277
- </div>
278
- `}};Te.css=Ea;Z([at(".tab-group")],Te.prototype,"tabGroup",2);Z([at(".body")],Te.prototype,"body",2);Z([at(".nav")],Te.prototype,"nav",2);Z([ro()],Te.prototype,"hasScrollControls",2);Z([oe({reflect:!0})],Te.prototype,"active",2);Z([oe()],Te.prototype,"placement",2);Z([oe()],Te.prototype,"activation",2);Z([oe({attribute:"without-scroll-controls",type:Boolean})],Te.prototype,"withoutScrollControls",2);Z([Ge("active")],Te.prototype,"updateActiveTab",1);Z([Ge("withoutScrollControls",{waitUntilFirstUpdate:!0})],Te.prototype,"updateScrollControls",1);Te=Z([ot("wa-tab-group")],Te);var Pa=`:host {
279
- display: inline-block;
280
- color: var(--wa-color-neutral-on-quiet);
281
- font-weight: var(--wa-font-weight-action);
282
- }
283
-
284
- .tab {
285
- display: inline-flex;
286
- align-items: center;
287
- font: inherit;
288
- padding: 1em 1.5em;
289
- white-space: nowrap;
290
- user-select: none;
291
- -webkit-user-select: none;
292
- cursor: pointer;
293
- transition: color var(--wa-transition-fast) var(--wa-transition-easing);
294
-
295
- ::slotted(wa-icon:first-child) {
296
- margin-inline-end: 0.5em;
297
- }
298
-
299
- ::slotted(wa-icon:last-child) {
300
- margin-inline-start: 0.5em;
301
- }
302
- }
303
-
304
- @media (hover: hover) {
305
- :host(:hover:not([disabled])) .tab {
306
- color: currentColor;
307
- }
308
- }
309
-
310
- :host(:focus) {
311
- outline: transparent;
312
- }
313
-
314
- :host(:focus-visible) .tab {
315
- outline: var(--wa-focus-ring);
316
- outline-offset: calc(-1 * var(--wa-border-width-l) - var(--wa-focus-ring-offset));
317
- }
318
-
319
- :host([active]:not([disabled])) {
320
- color: var(--wa-color-brand-on-quiet);
321
- }
322
-
323
- :host([disabled]) .tab {
324
- opacity: 0.5;
325
- cursor: not-allowed;
326
- }
327
-
328
- @media (forced-colors: active) {
329
- :host([active]:not([disabled])) {
330
- outline: solid 1px transparent;
331
- outline-offset: -3px;
332
- }
333
- }
334
- `,ja=0,Ve=class extends it{constructor(){super(...arguments),this.attrId=++ja,this.componentId=`wa-tab-${this.attrId}`,this.panel="",this.active=!1,this.disabled=!1,this.tabIndex=0}connectedCallback(){this.slot||(this.slot="nav"),super.connectedCallback(),this.setAttribute("role","tab")}handleActiveChange(){this.setAttribute("aria-selected",this.active?"true":"false")}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false"),this.disabled&&!this.active?this.tabIndex=-1:this.tabIndex=0}render(){var n;return this.id=((n=this.id)==null?void 0:n.length)>0?this.id:this.componentId,be`
335
- <div
336
- part="base"
337
- class=${rt({tab:!0,"tab-active":this.active})}
338
- >
339
- <slot></slot>
340
- </div>
341
- `}};Ve.css=Pa;Z([at(".tab")],Ve.prototype,"tab",2);Z([oe({reflect:!0})],Ve.prototype,"panel",2);Z([oe({type:Boolean,reflect:!0})],Ve.prototype,"active",2);Z([oe({type:Boolean,reflect:!0})],Ve.prototype,"disabled",2);Z([oe({type:Number,reflect:!0})],Ve.prototype,"tabIndex",2);Z([Ge("active")],Ve.prototype,"handleActiveChange",1);Z([Ge("disabled")],Ve.prototype,"handleDisabledChange",1);Ve=Z([ot("wa-tab")],Ve);var Ta=`:host {
342
- --padding: 0;
343
-
344
- display: none;
345
- }
346
-
347
- :host([active]) {
348
- display: block;
349
- }
350
-
351
- .tab-panel {
352
- display: block;
353
- padding: var(--padding);
354
- }
355
- `,La=0,dt=class extends it{constructor(){super(...arguments),this.attrId=++La,this.componentId=`wa-tab-panel-${this.attrId}`,this.name="",this.active=!1}connectedCallback(){super.connectedCallback(),this.id=this.id.length>0?this.id:this.componentId,this.setAttribute("role","tabpanel")}handleActiveChange(){this.setAttribute("aria-hidden",this.active?"false":"true")}render(){return be`
356
- <slot
357
- part="base"
358
- class=${rt({"tab-panel":!0,"tab-panel-active":this.active})}
359
- ></slot>
360
- `}};dt.css=Ta;Z([oe({reflect:!0})],dt.prototype,"name",2);Z([oe({type:Boolean,reflect:!0})],dt.prototype,"active",2);Z([Ge("active")],dt.prototype,"handleActiveChange",1);dt=Z([ot("wa-tab-panel")],dt);function ho(n){return n.split(" ").map(t=>t.trim()).filter(t=>t!=="")}var po=class extends Event{constructor(){super("wa-after-hide",{bubbles:!0,cancelable:!1,composed:!0})}},fo=class extends Event{constructor(){super("wa-after-show",{bubbles:!0,cancelable:!1,composed:!0})}},mo=class extends Event{constructor(n){super("wa-hide",{bubbles:!0,cancelable:!0,composed:!0}),this.detail=n}},vo=class extends Event{constructor(){super("wa-show",{bubbles:!0,cancelable:!0,composed:!0})}};function ft(n,t){return new Promise(e=>{let o=new AbortController,{signal:i}=o;if(n.classList.contains(t))return;n.classList.remove(t),n.classList.add(t);let r=()=>{n.classList.remove(t),e(),o.abort()};n.addEventListener("animationend",r,{once:!0,signal:i}),n.addEventListener("animationcancel",r,{once:!0,signal:i})})}var Ma=`:host {
361
- --width: 31rem;
362
- --spacing: var(--wa-space-l);
363
- --show-duration: 200ms;
364
- --hide-duration: 200ms;
365
-
366
- display: none;
367
- }
368
-
369
- :host([open]) {
370
- display: block;
371
- }
372
-
373
- .dialog {
374
- display: flex;
375
- flex-direction: column;
376
- top: 0;
377
- right: 0;
378
- bottom: 0;
379
- left: 0;
380
- width: var(--width);
381
- max-width: calc(100% - var(--wa-space-2xl));
382
- max-height: calc(100% - var(--wa-space-2xl));
383
- background-color: var(--wa-color-surface-raised);
384
- border-radius: var(--wa-panel-border-radius);
385
- border: none;
386
- box-shadow: var(--wa-shadow-l);
387
- padding: 0;
388
- margin: auto;
389
-
390
- &.show {
391
- animation: show-dialog var(--show-duration) ease;
392
-
393
- &::backdrop {
394
- animation: show-backdrop var(--show-duration, 200ms) ease;
395
- }
396
- }
397
-
398
- &.hide {
399
- animation: show-dialog var(--hide-duration) ease reverse;
400
-
401
- &::backdrop {
402
- animation: show-backdrop var(--hide-duration, 200ms) ease reverse;
403
- }
404
- }
405
-
406
- &.pulse {
407
- animation: pulse 250ms ease;
408
- }
409
- }
410
-
411
- .dialog:focus {
412
- outline: none;
413
- }
414
-
415
- /* Ensure there's enough vertical padding for phones that don't update vh when chrome appears (e.g. iPhone) */
416
- @media screen and (max-width: 420px) {
417
- .dialog {
418
- max-height: 80vh;
419
- }
420
- }
421
-
422
- .open {
423
- display: flex;
424
- opacity: 1;
425
- }
426
-
427
- .header {
428
- flex: 0 0 auto;
429
- display: flex;
430
- flex-wrap: nowrap;
431
-
432
- padding-inline-start: var(--spacing);
433
- padding-block-end: 0;
434
-
435
- /* Subtract the close button's padding so that the X is visually aligned with the edges of the dialog content */
436
- padding-inline-end: calc(var(--spacing) - var(--wa-form-control-padding-block));
437
- padding-block-start: calc(var(--spacing) - var(--wa-form-control-padding-block));
438
- }
439
-
440
- .title {
441
- align-self: center;
442
- flex: 1 1 auto;
443
- font-family: inherit;
444
- font-size: var(--wa-font-size-l);
445
- font-weight: var(--wa-font-weight-heading);
446
- line-height: var(--wa-line-height-condensed);
447
- margin: 0;
448
- }
449
-
450
- .header-actions {
451
- align-self: start;
452
- display: flex;
453
- flex-shrink: 0;
454
- flex-wrap: wrap;
455
- justify-content: end;
456
- gap: var(--wa-space-2xs);
457
- padding-inline-start: var(--spacing);
458
- }
459
-
460
- .header-actions wa-button,
461
- .header-actions ::slotted(wa-button) {
462
- flex: 0 0 auto;
463
- display: flex;
464
- align-items: center;
465
- }
466
-
467
- .body {
468
- flex: 1 1 auto;
469
- display: block;
470
- padding: var(--spacing);
471
- overflow: auto;
472
- -webkit-overflow-scrolling: touch;
473
- }
474
-
475
- .footer {
476
- flex: 0 0 auto;
477
- display: flex;
478
- flex-wrap: wrap;
479
- gap: var(--wa-space-xs);
480
- justify-content: end;
481
- padding: var(--spacing);
482
- padding-block-start: 0;
483
- }
484
-
485
- .footer ::slotted(wa-button:not(:first-of-type)) {
486
- margin-inline-start: var(--wa-spacing-xs);
487
- }
488
-
489
- .dialog::backdrop {
490
- /*
491
- NOTE: the ::backdrop element doesn't inherit properly in Safari yet, but it will in 17.4! At that time, we can
492
- remove the fallback values here.
493
- */
494
- background-color: var(--wa-color-overlay-modal, rgb(0 0 0 / 0.25));
495
- }
496
-
497
- @keyframes pulse {
498
- 0% {
499
- scale: 1;
500
- }
501
- 50% {
502
- scale: 1.02;
503
- }
504
- 100% {
505
- scale: 1;
506
- }
507
- }
508
-
509
- @keyframes show-dialog {
510
- from {
511
- opacity: 0;
512
- scale: 0.8;
513
- }
514
- to {
515
- opacity: 1;
516
- scale: 1;
517
- }
518
- }
519
-
520
- @keyframes show-backdrop {
521
- from {
522
- opacity: 0;
523
- }
524
- to {
525
- opacity: 1;
526
- }
527
- }
528
-
529
- @media (forced-colors: active) {
530
- .dialog {
531
- border: solid 1px white;
532
- }
533
- }
534
- `,Ze=class extends it{constructor(){super(...arguments),this.localize=new Wt(this),this.hasSlotController=new so(this,"footer","header-actions","label"),this.open=!1,this.label="",this.withoutHeader=!1,this.lightDismiss=!1,this.handleDocumentKeyDown=n=>{n.key==="Escape"&&this.open&&(n.preventDefault(),n.stopPropagation(),this.requestClose(this.dialog))}}firstUpdated(){this.open&&(this.addOpenListeners(),this.dialog.showModal(),gn(this))}disconnectedCallback(){super.disconnectedCallback(),bn(this),this.removeOpenListeners()}async requestClose(n){let t=new mo({source:n});if(this.dispatchEvent(t),t.defaultPrevented){this.open=!0,ft(this.dialog,"pulse");return}this.removeOpenListeners(),await ft(this.dialog,"hide"),this.open=!1,this.dialog.close(),bn(this);let e=this.originalTrigger;typeof(e==null?void 0:e.focus)=="function"&&setTimeout(()=>e.focus()),this.dispatchEvent(new po)}addOpenListeners(){document.addEventListener("keydown",this.handleDocumentKeyDown)}removeOpenListeners(){document.removeEventListener("keydown",this.handleDocumentKeyDown)}handleDialogCancel(n){n.preventDefault(),this.dialog.classList.contains("hide")||this.requestClose(this.dialog)}handleDialogClick(n){let e=n.target.closest('[data-dialog="close"]');e&&(n.stopPropagation(),this.requestClose(e))}async handleDialogPointerDown(n){n.target===this.dialog&&(this.lightDismiss?this.requestClose(this.dialog):await ft(this.dialog,"pulse"))}handleOpenChange(){this.open&&!this.dialog.open?this.show():!this.open&&this.dialog.open&&(this.open=!0,this.requestClose(this.dialog))}async show(){let n=new vo;if(this.dispatchEvent(n),n.defaultPrevented){this.open=!1;return}this.addOpenListeners(),this.originalTrigger=document.activeElement,this.open=!0,this.dialog.showModal(),gn(this),requestAnimationFrame(()=>{let t=this.querySelector("[autofocus]");t&&typeof t.focus=="function"&&t.focus()}),await ft(this.dialog,"show"),this.dispatchEvent(new fo)}render(){let n=!this.withoutHeader&&(this.label.length>0||this.hasSlotController.test("label")||this.hasSlotController.test("header-actions")),t=this.hasSlotController.test("footer");return be`
535
- <dialog
536
- part="dialog"
537
- class=${rt({dialog:!0,open:this.open})}
538
- @cancel=${this.handleDialogCancel}
539
- @click=${this.handleDialogClick}
540
- @pointerdown=${this.handleDialogPointerDown}
541
- >
542
- ${n?be`
543
- <header part="header" class="header">
544
- <h2 part="title" class="title" id="title">
545
- <!-- If there's no label, use an invisible character to prevent the header from collapsing -->
546
- <slot name="label"> ${this.label.length>0?this.label:"\uFEFF"} </slot>
547
- </h2>
548
- <div part="header-actions" class="header-actions">
549
- <slot name="header-actions"></slot>
550
- <wa-button
551
- part="close-button"
552
- exportparts="base:close-button__base"
553
- class="close"
554
- appearance="plain"
555
- @click="${e=>this.requestClose(e.target)}"
556
- >
557
- <wa-icon
558
- name="xmark"
559
- label=${this.localize.term("close")}
560
- library="system"
561
- variant="solid"
562
- ></wa-icon>
563
- </wa-button>
564
- </div>
565
- </header>
566
- `:""}
567
-
568
- <div part="body" class="body"><slot></slot></div>
569
-
570
- ${t?be`
571
- <footer part="footer" class="footer">
572
- <slot name="footer"></slot>
573
- </footer>
574
- `:""}
575
- </dialog>
576
- `}};Ze.css=Ma;Z([at(".dialog")],Ze.prototype,"dialog",2);Z([oe({type:Boolean,reflect:!0})],Ze.prototype,"open",2);Z([oe({reflect:!0})],Ze.prototype,"label",2);Z([oe({attribute:"without-header",type:Boolean,reflect:!0})],Ze.prototype,"withoutHeader",2);Z([oe({attribute:"light-dismiss",type:Boolean})],Ze.prototype,"lightDismiss",2);Z([Ge("open",{waitUntilFirstUpdate:!0})],Ze.prototype,"handleOpenChange",1);Ze=Z([ot("wa-dialog")],Ze);document.addEventListener("click",n=>{let t=n.target.closest("[data-dialog]");if(t instanceof Element){let[e,o]=ho(t.getAttribute("data-dialog")||"");if(e==="open"&&(o!=null&&o.length)){let r=t.getRootNode().getElementById(o);(r==null?void 0:r.localName)==="wa-dialog"?r.open=!0:console.warn(`A dialog with an ID of "${o}" could not be found in this document.`)}}});!1||document.addEventListener("pointerdown",()=>{});var Ua={7:function(n,t,e){(function(o,i,r){var s=function(){return s=Object.assign||function(S){for(var k,y=1,j=arguments.length;y<j;y++)for(var U in k=arguments[y])Object.prototype.hasOwnProperty.call(k,U)&&(S[U]=k[U]);return S},s.apply(this,arguments)};function l(S,k){var y=typeof Symbol=="function"&&S[Symbol.iterator];if(!y)return S;var j,U,T=y.call(S),L=[];try{for(;(k===void 0||k-- >0)&&!(j=T.next()).done;)L.push(j.value)}catch(W){U={error:W}}finally{try{j&&!j.done&&(y=T.return)&&y.call(T)}finally{if(U)throw U.error}}return L}function u(S,k){return[S,!S||S.endsWith("/")?"":"/",k,".json"].join("")}function c(S,k){var y=S;return k&&Object.keys(k).forEach(function(j){var U=k[j],T=new RegExp("{".concat(j,"}"),"gm");y=y.replace(T,U.toString())}),y}function d(S,k,y){var j=S[k];if(!j)return y;var U=y.split("."),T="";do{var L=j[T+=U.shift()];L===void 0||typeof L!="object"&&U.length?U.length?T+=".":j=y:(j=L,T="")}while(U.length);return j}var m={},g={root:"",lang:"en",fallbackLang:"en"},v=i.createContext(null);o.TranslateContext=v,o.TranslateProvider=function(S){var k=function(L,W){L=Object.assign({},g,L),m=W||m;var N=l(r.useState(L.lang),2),M=N[0],ie=N[1],ne=l(r.useState(m),2),ee=ne[0],q=ne[1],ue=l(r.useState(!1),2),Ce=ue[0],pe=ue[1],Ie=function(re){if(!ee.hasOwnProperty(re)){pe(!1);var he=u(L.root,re);fetch(he).then(function(P){return P.json()}).then(function(P){m[re]=P,q(s({},m)),pe(!0)}).catch(function(P){console.log("Aww, snap.",P),q(s({},m)),pe(!0)})}};return r.useEffect(function(){Ie(L.fallbackLang),Ie(M)},[M]),{lang:M,setLang:ie,t:function(re,he){if(!ee.hasOwnProperty(M))return re;var P=d(ee,M,re);return P===re&&M!==L.fallbackLang&&(P=d(ee,L.fallbackLang,re)),c(P,he)},isReady:Ce}}({root:S.root||"assets",lang:S.lang||"en",fallbackLang:S.fallbackLang||"en"},S.translations),y=k.t,j=k.setLang,U=k.lang,T=k.isReady;return i.h(v.Provider,{value:{t:y,setLang:j,lang:U,isReady:T}},S.children)},o.format=c,o.getResourceUrl=u,o.getValue=d,Object.defineProperty(o,"__esModule",{value:!0})})(t,e(616),e(78))},633:(n,t)=>{var e;(function(){var o={}.hasOwnProperty;function i(){for(var r=[],s=0;s<arguments.length;s++){var l=arguments[s];if(l){var u=typeof l;if(u==="string"||u==="number")r.push(l);else if(Array.isArray(l)){if(l.length){var c=i.apply(null,l);c&&r.push(c)}}else if(u==="object"){if(l.toString!==Object.prototype.toString&&!l.toString.toString().includes("[native code]")){r.push(l.toString());continue}for(var d in l)o.call(l,d)&&l[d]&&r.push(d)}}}return r.join(" ")}n.exports?(i.default=i,n.exports=i):(e=function(){return i}.apply(t,[]))===void 0||(n.exports=e)})()},21:(n,t,e)=>{e.d(t,{A:()=>l});var o=e(645),i=e.n(o),r=e(278),s=e.n(r)()(i());s.push([n.id,'.hanko_accordion{font-weight:var(--font-weight, 400);font-size:var(--font-size, 16px);font-family:var(--font-family, sans-serif);line-height:var(--line-height, 1.4rem);width:100%;overflow:hidden}.hanko_accordion .hanko_accordionItem{color:var(--color, #333333);margin:.25rem 0;overflow:hidden}.hanko_accordion .hanko_accordionItem.hanko_dropdown{margin:0}.hanko_accordion .hanko_accordionItem .hanko_label{border-radius:var(--border-radius, 8px);border-style:none;height:var(--item-height, 42px);background:var(--background-color, white);box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;padding:0 1rem;margin:0;cursor:pointer;transition:all .35s}.hanko_accordion .hanko_accordionItem .hanko_label .hanko_labelText{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hanko_accordion .hanko_accordionItem .hanko_label .hanko_labelText .hanko_description{color:var(--color-shade-1, #8f9095)}.hanko_accordion .hanko_accordionItem .hanko_label.hanko_dropdown{margin:0;color:var(--link-color, #506cf0);justify-content:flex-start}.hanko_accordion .hanko_accordionItem .hanko_label:hover{color:var(--brand-contrast-color, white);background:var(--brand-color-shade-1, #6b84fb)}.hanko_accordion .hanko_accordionItem .hanko_label:hover .hanko_description{color:var(--brand-contrast-color, white)}.hanko_accordion .hanko_accordionItem .hanko_label:hover.hanko_dropdown{color:var(--link-color, #506cf0);background:none}.hanko_accordion .hanko_accordionItem .hanko_label:not(.hanko_dropdown)::after{content:"\u276F";width:1rem;text-align:center;transition:all .35s}.hanko_accordion .hanko_accordionItem .hanko_accordionInput{position:absolute;opacity:0;z-index:-1}.hanko_accordion .hanko_accordionItem .hanko_accordionInput:checked+.hanko_label{color:var(--brand-contrast-color, white);background:var(--brand-color, #506cf0)}.hanko_accordion .hanko_accordionItem .hanko_accordionInput:checked+.hanko_label .hanko_description{color:var(--brand-contrast-color, white)}.hanko_accordion .hanko_accordionItem .hanko_accordionInput:checked+.hanko_label.hanko_dropdown{color:var(--link-color, #506cf0);background:none}.hanko_accordion .hanko_accordionItem .hanko_accordionInput:checked+.hanko_label:not(.hanko_dropdown)::after{transform:rotate(90deg)}.hanko_accordion .hanko_accordionItem .hanko_accordionInput:checked+.hanko_label~.hanko_accordionContent{margin:.25rem 1rem;opacity:1;max-height:100vh}.hanko_accordion .hanko_accordionItem .hanko_accordionContent{max-height:0;margin:0 1rem;opacity:0;overflow:hidden;transition:all .35s}.hanko_accordion .hanko_accordionItem .hanko_accordionContent.hanko_dropdownContent{border-style:none}',""]),s.locals={accordion:"hanko_accordion",accordionItem:"hanko_accordionItem",dropdown:"hanko_dropdown",label:"hanko_label",labelText:"hanko_labelText",description:"hanko_description",accordionInput:"hanko_accordionInput",accordionContent:"hanko_accordionContent",dropdownContent:"hanko_dropdownContent"};let l=s},905:(n,t,e)=>{e.d(t,{A:()=>l});var o=e(645),i=e.n(o),r=e(278),s=e.n(r)()(i());s.push([n.id,".hanko_errorBox{font-weight:var(--font-weight, 400);font-size:var(--font-size, 16px);font-family:var(--font-family, sans-serif);line-height:var(--line-height, 1.4rem);border-radius:var(--border-radius, 8px);border-style:var(--border-style, solid);border-width:var(--border-width, 1px);color:var(--error-color, #e82020);background:var(--background-color, white);margin:var(--item-margin, 0.5rem 0);display:flex;align-items:start;box-sizing:border-box;line-height:1.5rem;padding:.25em;gap:.2em}.hanko_errorBox>span{display:inline-flex}.hanko_errorBox>span:first-child{padding:.25em 0 .25em .19em}.hanko_errorBox[hidden]{display:none}.hanko_errorMessage{color:var(--error-color, #e82020)}",""]),s.locals={errorBox:"hanko_errorBox",errorMessage:"hanko_errorMessage"};let l=s},577:(n,t,e)=>{e.d(t,{A:()=>l});var o=e(645),i=e.n(o),r=e(278),s=e.n(r)()(i());s.push([n.id,'.hanko_form{display:flex;flex-grow:1}.hanko_form .hanko_ul{flex-grow:1;margin:var(--item-margin, 0.5rem 0);padding-inline-start:0;list-style-type:none;display:flex;flex-wrap:wrap;gap:1em}.hanko_form .hanko_li{display:flex;max-width:100%;flex-grow:1;flex-basis:min-content}.hanko_form .hanko_li.hanko_maxWidth{min-width:100%}.hanko_button{font-weight:var(--font-weight, 400);font-size:var(--font-size, 16px);font-family:var(--font-family, sans-serif);line-height:var(--line-height, 1.4rem);border-radius:var(--border-radius, 8px);border-style:var(--border-style, solid);border-width:var(--border-width, 1px);white-space:nowrap;width:100%;min-width:var(--button-min-width, 7em);min-height:var(--item-height, 42px);outline:none;cursor:pointer;transition:.1s ease-out;flex-grow:1;flex-shrink:1;display:inline-flex}.hanko_button:disabled{cursor:default}.hanko_button.hanko_primary{color:var(--brand-contrast-color, white);background:var(--brand-color, #506cf0);border-color:var(--brand-color, #506cf0);justify-content:center}.hanko_button.hanko_primary:hover{color:var(--brand-contrast-color, white);background:var(--brand-color-shade-1, #6b84fb);border-color:var(--brand-color, #506cf0)}.hanko_button.hanko_primary:focus{color:var(--brand-contrast-color, white);background:var(--brand-color, #506cf0);border-color:var(--color, #333333)}.hanko_button.hanko_primary:disabled{color:var(--color-shade-1, #8f9095);background:var(--color-shade-2, #e5e6ef);border-color:var(--color-shade-2, #e5e6ef)}.hanko_button.hanko_secondary{color:var(--color, #333333);background:var(--background-color, white);border-color:var(--color, #333333);justify-content:flex-start}.hanko_button.hanko_secondary:hover{color:var(--color, #333333);background:var(--color-shade-2, #e5e6ef);border-color:var(--color, #333333)}.hanko_button.hanko_secondary:focus{color:var(--color, #333333);background:var(--background-color, white);border-color:var(--brand-color, #506cf0)}.hanko_button.hanko_secondary:disabled{color:var(--color-shade-1, #8f9095);background:var(--color-shade-2, #e5e6ef);border-color:var(--color-shade-1, #8f9095)}.hanko_button.hanko_dangerous{color:var(--error-color, #e82020);background:var(--background-color, white);border-color:var(--error-color, #e82020);flex-grow:0;width:auto}.hanko_caption{flex-grow:1;flex-wrap:wrap;display:flex;justify-content:space-between;align-items:baseline}.hanko_lastUsed{color:var(--color-shade-1, #8f9095);font-size:smaller}.hanko_inputWrapper{flex-grow:1;position:relative;display:flex;min-width:var(--input-min-width, 14em);max-width:100%}.hanko_input{font-weight:var(--font-weight, 400);font-size:var(--font-size, 16px);font-family:var(--font-family, sans-serif);line-height:var(--line-height, 1.4rem);border-radius:var(--border-radius, 8px);border-style:var(--border-style, solid);border-width:var(--border-width, 1px);height:var(--item-height, 42px);color:var(--color, #333333);border-color:var(--color-shade-1, #8f9095);background:var(--background-color, white);padding:0 .5rem;outline:none;width:100%;box-sizing:border-box;transition:.1s ease-out}.hanko_input.hanko_error{border-color:var(--error-color, #e82020)}.hanko_input:-webkit-autofill,.hanko_input:-webkit-autofill:hover,.hanko_input:-webkit-autofill:focus{-webkit-text-fill-color:var(--color, #333333);-webkit-box-shadow:0 0 0 50px var(--background-color, white) inset}.hanko_input::-ms-reveal,.hanko_input::-ms-clear{display:none}.hanko_input::placeholder{color:var(--color-shade-1, #8f9095)}.hanko_input:focus{color:var(--color, #333333);border-color:var(--color, #333333)}.hanko_input:disabled{color:var(--color-shade-1, #8f9095);background:var(--color-shade-2, #e5e6ef);border-color:var(--color-shade-1, #8f9095)}.hanko_passcodeInputWrapper{flex-grow:1;min-width:var(--input-min-width, 14em);max-width:fit-content;position:relative;display:flex;justify-content:space-between}.hanko_passcodeInputWrapper .hanko_passcodeDigitWrapper{flex-grow:1;margin:0 .5rem 0 0}.hanko_passcodeInputWrapper .hanko_passcodeDigitWrapper:last-child{margin:0}.hanko_passcodeInputWrapper .hanko_passcodeDigitWrapper .hanko_input{text-align:center}.hanko_checkboxWrapper{font-weight:var(--font-weight, 400);font-size:var(--font-size, 16px);font-family:var(--font-family, sans-serif);line-height:var(--line-height, 1.4rem);color:var(--color, #333333);align-items:center;display:flex}.hanko_checkboxWrapper .hanko_label{color:inherit;padding-left:.5rem;cursor:pointer}.hanko_checkboxWrapper .hanko_label.hanko_disabled{cursor:default;color:var(--color-shade-1, #8f9095)}.hanko_checkboxWrapper .hanko_checkbox{border:currentColor solid 1px;border-radius:.15em;appearance:none;-webkit-appearance:none;width:1.1rem;height:1.1rem;margin:0;color:currentColor;background-color:var(--background-color, white);font:inherit;box-shadow:none;display:inline-flex;place-content:center;cursor:pointer}.hanko_checkboxWrapper .hanko_checkbox:checked{background-color:var(--color, #333333)}.hanko_checkboxWrapper .hanko_checkbox:disabled{cursor:default;background-color:var(--color-shade-2, #e5e6ef);border-color:var(--color-shade-1, #8f9095)}.hanko_checkboxWrapper .hanko_checkbox:checked:after{content:"\u2713";color:var(--background-color, white);position:absolute;line-height:1.1rem}.hanko_checkboxWrapper .hanko_checkbox:disabled:after{color:var(--color-shade-1, #8f9095)}',""]),s.locals={form:"hanko_form",ul:"hanko_ul",li:"hanko_li",maxWidth:"hanko_maxWidth",button:"hanko_button",primary:"hanko_primary",secondary:"hanko_secondary",dangerous:"hanko_dangerous",caption:"hanko_caption",lastUsed:"hanko_lastUsed",inputWrapper:"hanko_inputWrapper",input:"hanko_input",error:"hanko_error",passcodeInputWrapper:"hanko_passcodeInputWrapper",passcodeDigitWrapper:"hanko_passcodeDigitWrapper",checkboxWrapper:"hanko_checkboxWrapper",label:"hanko_label",disabled:"hanko_disabled",checkbox:"hanko_checkbox"};let l=s},619:(n,t,e)=>{e.d(t,{A:()=>l});var o=e(645),i=e.n(o),r=e(278),s=e.n(r)()(i());s.push([n.id,".hanko_headline{color:var(--color, #333333);font-family:var(--font-family, sans-serif);text-align:left;letter-spacing:0;font-style:normal;line-height:1.1}.hanko_headline.hanko_grade1{font-size:var(--headline1-font-size, 24px);font-weight:var(--headline1-font-weight, 600);margin:var(--headline1-margin, 0 0 0.5rem)}.hanko_headline.hanko_grade2{font-size:var(--headline2-font-size, 16px);font-weight:var(--headline2-font-weight, 600);margin:var(--headline2-margin, 1rem 0 0.5rem)}",""]),s.locals={headline:"hanko_headline",grade1:"hanko_grade1",grade2:"hanko_grade2"};let l=s},697:(n,t,e)=>{e.d(t,{A:()=>l});var o=e(645),i=e.n(o),r=e(278),s=e.n(r)()(i());s.push([n.id,".hanko_icon,.hanko_loadingSpinnerWrapper .hanko_loadingSpinner,.hanko_loadingSpinnerWrapperIcon .hanko_loadingSpinner,.hanko_exclamationMark,.hanko_checkmark{display:inline-block;fill:var(--brand-contrast-color, white);width:18px}.hanko_icon.hanko_secondary,.hanko_loadingSpinnerWrapper .hanko_secondary.hanko_loadingSpinner,.hanko_loadingSpinnerWrapperIcon .hanko_secondary.hanko_loadingSpinner,.hanko_secondary.hanko_exclamationMark,.hanko_secondary.hanko_checkmark{fill:var(--color, #333333)}.hanko_icon.hanko_disabled,.hanko_loadingSpinnerWrapper .hanko_disabled.hanko_loadingSpinner,.hanko_loadingSpinnerWrapperIcon .hanko_disabled.hanko_loadingSpinner,.hanko_disabled.hanko_exclamationMark,.hanko_disabled.hanko_checkmark{fill:var(--color-shade-1, #8f9095)}.hanko_checkmark{fill:var(--brand-color, #506cf0)}.hanko_checkmark.hanko_secondary{fill:var(--color-shade-1, #8f9095)}.hanko_checkmark.hanko_fadeOut{animation:hanko_fadeOut ease-out 1.5s forwards !important}@keyframes hanko_fadeOut{0%{opacity:1}100%{opacity:0}}.hanko_exclamationMark{fill:var(--error-color, #e82020)}.hanko_loadingSpinnerWrapperIcon{width:100%;column-gap:10px;margin-left:10px}.hanko_loadingSpinnerWrapper,.hanko_loadingSpinnerWrapperIcon{display:inline-flex;align-items:center;height:100%;margin:0 5px;justify-content:inherit;flex-wrap:inherit}.hanko_loadingSpinnerWrapper.hanko_centerContent,.hanko_centerContent.hanko_loadingSpinnerWrapperIcon{justify-content:center}.hanko_loadingSpinnerWrapper.hanko_maxWidth,.hanko_maxWidth.hanko_loadingSpinnerWrapperIcon{width:100%}.hanko_loadingSpinnerWrapper .hanko_loadingSpinner,.hanko_loadingSpinnerWrapperIcon .hanko_loadingSpinner{fill:var(--brand-color, #506cf0);animation:hanko_spin 500ms ease-in-out infinite}.hanko_loadingSpinnerWrapper.hanko_secondary,.hanko_secondary.hanko_loadingSpinnerWrapperIcon{fill:var(--color-shade-1, #8f9095)}@keyframes hanko_spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.hanko_googleIcon.hanko_disabled{fill:var(--color-shade-1, #8f9095)}.hanko_googleIcon.hanko_blue{fill:#4285f4}.hanko_googleIcon.hanko_green{fill:#34a853}.hanko_googleIcon.hanko_yellow{fill:#fbbc05}.hanko_googleIcon.hanko_red{fill:#ea4335}.hanko_microsoftIcon.hanko_disabled{fill:var(--color-shade-1, #8f9095)}.hanko_microsoftIcon.hanko_blue{fill:#00a4ef}.hanko_microsoftIcon.hanko_green{fill:#7fba00}.hanko_microsoftIcon.hanko_yellow{fill:#ffb900}.hanko_microsoftIcon.hanko_red{fill:#f25022}.hanko_facebookIcon.hanko_outline{fill:#0866ff}.hanko_facebookIcon.hanko_disabledOutline{fill:var(--color-shade-1, #8f9095)}.hanko_facebookIcon.hanko_letter{fill:#fff}.hanko_facebookIcon.hanko_disabledLetter{fill:var(--color-shade-2, #e5e6ef)}",""]),s.locals={icon:"hanko_icon",loadingSpinnerWrapper:"hanko_loadingSpinnerWrapper",loadingSpinner:"hanko_loadingSpinner",loadingSpinnerWrapperIcon:"hanko_loadingSpinnerWrapperIcon",exclamationMark:"hanko_exclamationMark",checkmark:"hanko_checkmark",secondary:"hanko_secondary",disabled:"hanko_disabled",fadeOut:"hanko_fadeOut",centerContent:"hanko_centerContent",maxWidth:"hanko_maxWidth",spin:"hanko_spin",googleIcon:"hanko_googleIcon",blue:"hanko_blue",green:"hanko_green",yellow:"hanko_yellow",red:"hanko_red",microsoftIcon:"hanko_microsoftIcon",facebookIcon:"hanko_facebookIcon",outline:"hanko_outline",disabledOutline:"hanko_disabledOutline",letter:"hanko_letter",disabledLetter:"hanko_disabledLetter"};let l=s},995:(n,t,e)=>{e.d(t,{A:()=>l});var o=e(645),i=e.n(o),r=e(278),s=e.n(r)()(i());s.push([n.id,".hanko_link{font-weight:var(--font-weight, 400);font-size:var(--font-size, 16px);font-family:var(--font-family, sans-serif);line-height:var(--line-height, 1.4rem);color:var(--link-color, #506cf0);text-decoration:var(--link-text-decoration, none);cursor:pointer;background:none !important;border:none;padding:0 !important;transition:all .1s}.hanko_link:hover{text-decoration:var(--link-text-decoration-hover, underline)}.hanko_link:disabled{color:var(--color, #333333) !important;pointer-events:none;cursor:default}.hanko_link.hanko_danger{color:var(--error-color, #e82020)}.hanko_linkWrapper{display:inline-flex;flex-direction:row;justify-content:space-between;align-items:center;overflow:hidden}.hanko_linkWrapper.hanko_reverse{flex-direction:row-reverse}",""]),s.locals={link:"hanko_link",danger:"hanko_danger",linkWrapper:"hanko_linkWrapper",reverse:"hanko_reverse"};let l=s},560:(n,t,e)=>{e.d(t,{A:()=>l});var o=e(645),i=e.n(o),r=e(278),s=e.n(r)()(i());s.push([n.id,".hanko_otpCreationDetails{font-weight:var(--font-weight, 400);font-size:var(--font-size, 16px);font-family:var(--font-family, sans-serif);line-height:var(--line-height, 1.4rem);color:var(--color, #333333);margin:var(--item-margin, 0.5rem 0);display:flex;justify-content:center;align-items:center;flex-direction:column;font-size:smaller}",""]),s.locals={otpCreationDetails:"hanko_otpCreationDetails"};let l=s},489:(n,t,e)=>{e.d(t,{A:()=>l});var o=e(645),i=e.n(o),r=e(278),s=e.n(r)()(i());s.push([n.id,".hanko_paragraph{font-weight:var(--font-weight, 400);font-size:var(--font-size, 16px);font-family:var(--font-family, sans-serif);line-height:var(--line-height, 1.4rem);color:var(--color, #333333);margin:var(--item-margin, 0.5rem 0);text-align:left;word-break:break-word}",""]),s.locals={paragraph:"hanko_paragraph"};let l=s},111:(n,t,e)=>{e.d(t,{A:()=>l});var o=e(645),i=e.n(o),r=e(278),s=e.n(r)()(i());s.push([n.id,".hanko_spacer{height:1em}.hanko_divider{font-weight:var(--font-weight, 400);font-size:var(--font-size, 16px);font-family:var(--font-family, sans-serif);line-height:var(--line-height, 1.4rem);display:flex;visibility:var(--divider-visibility, visible);color:var(--color-shade-1, #8f9095);margin:var(--item-margin, 0.5rem 0);padding:.5em 0}.hanko_divider .hanko_line{border-bottom-style:var(--border-style, solid);border-bottom-width:var(--border-width, 1px);color:inherit;font:inherit;width:100%}.hanko_divider .hanko_text{font:inherit;color:inherit;background:var(--background-color, white);padding:var(--divider-padding, 0 42px);line-height:.1em}",""]),s.locals={spacer:"hanko_spacer",divider:"hanko_divider",line:"hanko_line",text:"hanko_text"};let l=s},914:(n,t,e)=>{e.d(t,{A:()=>l});var o=e(645),i=e.n(o),r=e(278),s=e.n(r)()(i());s.push([n.id,".hanko_container{background-color:var(--background-color, white);padding:var(--container-padding, 30px);max-width:var(--container-max-width, 410px);display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:center;align-items:center;align-content:flex-start;box-sizing:border-box}.hanko_content{box-sizing:border-box;flex:0 1 auto;width:100%;height:100%}.hanko_footer{padding:.5rem 0 0;box-sizing:border-box;width:100%}.hanko_footer :nth-child(1){float:left}.hanko_footer :nth-child(2){float:right}.hanko_clipboardContainer{display:flex}.hanko_clipboardIcon{display:flex;margin:auto;cursor:pointer}",""]),s.locals={container:"hanko_container",content:"hanko_content",footer:"hanko_footer",clipboardContainer:"hanko_clipboardContainer",clipboardIcon:"hanko_clipboardIcon"};let l=s},278:n=>{n.exports=function(t){var e=[];return e.toString=function(){return this.map(function(o){var i="",r=o[5]!==void 0;return o[4]&&(i+="@supports (".concat(o[4],") {")),o[2]&&(i+="@media ".concat(o[2]," {")),r&&(i+="@layer".concat(o[5].length>0?" ".concat(o[5]):""," {")),i+=t(o),r&&(i+="}"),o[2]&&(i+="}"),o[4]&&(i+="}"),i}).join("")},e.i=function(o,i,r,s,l){typeof o=="string"&&(o=[[null,o,void 0]]);var u={};if(r)for(var c=0;c<this.length;c++){var d=this[c][0];d!=null&&(u[d]=!0)}for(var m=0;m<o.length;m++){var g=[].concat(o[m]);r&&u[g[0]]||(l!==void 0&&(g[5]===void 0||(g[1]="@layer".concat(g[5].length>0?" ".concat(g[5]):""," {").concat(g[1],"}")),g[5]=l),i&&(g[2]&&(g[1]="@media ".concat(g[2]," {").concat(g[1],"}")),g[2]=i),s&&(g[4]?(g[1]="@supports (".concat(g[4],") {").concat(g[1],"}"),g[4]=s):g[4]="".concat(s)),e.push(g))}},e}},645:n=>{n.exports=function(t){return t[1]}},616:(n,t,e)=>{e.r(t),e.d(t,{Component:()=>W,Fragment:()=>L,cloneElement:()=>Ke,createContext:()=>$e,createElement:()=>j,createRef:()=>T,h:()=>j,hydrate:()=>pt,isValidElement:()=>s,options:()=>i,render:()=>Be,toChildArray:()=>ue});var o,i,r,s,l,u,c,d,m,g={},v=[],S=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function k(h,p){for(var b in p)h[b]=p[b];return h}function y(h){var p=h.parentNode;p&&p.removeChild(h)}function j(h,p,b){var O,D,A,F={};for(A in p)A=="key"?O=p[A]:A=="ref"?D=p[A]:F[A]=p[A];if(arguments.length>2&&(F.children=arguments.length>3?o.call(arguments,2):b),typeof h=="function"&&h.defaultProps!=null)for(A in h.defaultProps)F[A]===void 0&&(F[A]=h.defaultProps[A]);return U(h,F,O,D,null)}function U(h,p,b,O,D){var A={type:h,props:p,key:b,ref:O,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:D==null?++r:D};return D==null&&i.vnode!=null&&i.vnode(A),A}function T(){return{current:null}}function L(h){return h.children}function W(h,p){this.props=h,this.context=p}function N(h,p){if(p==null)return h.__?N(h.__,h.__.__k.indexOf(h)+1):null;for(var b;p<h.__k.length;p++)if((b=h.__k[p])!=null&&b.__e!=null)return b.__e;return typeof h.type=="function"?N(h):null}function M(h){var p,b;if((h=h.__)!=null&&h.__c!=null){for(h.__e=h.__c.base=null,p=0;p<h.__k.length;p++)if((b=h.__k[p])!=null&&b.__e!=null){h.__e=h.__c.base=b.__e;break}return M(h)}}function ie(h){(!h.__d&&(h.__d=!0)&&l.push(h)&&!ne.__r++||u!==i.debounceRendering)&&((u=i.debounceRendering)||c)(ne)}function ne(){var h,p,b,O,D,A,F,te;for(l.sort(d);h=l.shift();)h.__d&&(p=l.length,O=void 0,D=void 0,F=(A=(b=h).__v).__e,(te=b.__P)&&(O=[],(D=k({},A)).__v=A.__v+1,fe(te,A,D,b.__n,te.ownerSVGElement!==void 0,A.__h!=null?[F]:null,O,F==null?N(A):F,A.__h),C(O,A),A.__e!=F&&M(A)),l.length>p&&l.sort(d));ne.__r=0}function ee(h,p,b,O,D,A,F,te,ce,ve){var _,ye,G,z,V,nt,se,ge=O&&O.__k||v,je=ge.length;for(b.__k=[],_=0;_<p.length;_++)if((z=b.__k[_]=(z=p[_])==null||typeof z=="boolean"||typeof z=="function"?null:typeof z=="string"||typeof z=="number"||typeof z=="bigint"?U(null,z,null,null,z):Array.isArray(z)?U(L,{children:z},null,null,null):z.__b>0?U(z.type,z.props,z.key,z.ref?z.ref:null,z.__v):z)!=null){if(z.__=b,z.__b=b.__b+1,(G=ge[_])===null||G&&z.key==G.key&&z.type===G.type)ge[_]=void 0;else for(ye=0;ye<je;ye++){if((G=ge[ye])&&z.key==G.key&&z.type===G.type){ge[ye]=void 0;break}G=null}fe(h,z,G=G||g,D,A,F,te,ce,ve),V=z.__e,(ye=z.ref)&&G.ref!=ye&&(se||(se=[]),G.ref&&se.push(G.ref,null,z),se.push(ye,z.__c||V,z)),V!=null?(nt==null&&(nt=V),typeof z.type=="function"&&z.__k===G.__k?z.__d=ce=q(z,ce,h):ce=Ce(h,z,G,ge,V,ce),typeof b.type=="function"&&(b.__d=ce)):ce&&G.__e==ce&&ce.parentNode!=h&&(ce=N(G))}for(b.__e=nt,_=je;_--;)ge[_]!=null&&(typeof b.type=="function"&&ge[_].__e!=null&&ge[_].__e==b.__d&&(b.__d=pe(O).nextSibling),Q(ge[_],ge[_]));if(se)for(_=0;_<se.length;_++)I(se[_],se[++_],se[++_])}function q(h,p,b){for(var O,D=h.__k,A=0;D&&A<D.length;A++)(O=D[A])&&(O.__=h,p=typeof O.type=="function"?q(O,p,b):Ce(b,O,O,D,O.__e,p));return p}function ue(h,p){return p=p||[],h==null||typeof h=="boolean"||(Array.isArray(h)?h.some(function(b){ue(b,p)}):p.push(h)),p}function Ce(h,p,b,O,D,A){var F,te,ce;if(p.__d!==void 0)F=p.__d,p.__d=void 0;else if(b==null||D!=A||D.parentNode==null)e:if(A==null||A.parentNode!==h)h.appendChild(D),F=null;else{for(te=A,ce=0;(te=te.nextSibling)&&ce<O.length;ce+=1)if(te==D)break e;h.insertBefore(D,A),F=A}return F!==void 0?F:D.nextSibling}function pe(h){var p,b,O;if(h.type==null||typeof h.type=="string")return h.__e;if(h.__k){for(p=h.__k.length-1;p>=0;p--)if((b=h.__k[p])&&(O=pe(b)))return O}return null}function Ie(h,p,b){p[0]==="-"?h.setProperty(p,b==null?"":b):h[p]=b==null?"":typeof b!="number"||S.test(p)?b:b+"px"}function re(h,p,b,O,D){var A;e:if(p==="style")if(typeof b=="string")h.style.cssText=b;else{if(typeof O=="string"&&(h.style.cssText=O=""),O)for(p in O)b&&p in b||Ie(h.style,p,"");if(b)for(p in b)O&&b[p]===O[p]||Ie(h.style,p,b[p])}else if(p[0]==="o"&&p[1]==="n")A=p!==(p=p.replace(/Capture$/,"")),p=p.toLowerCase()in h?p.toLowerCase().slice(2):p.slice(2),h.l||(h.l={}),h.l[p+A]=b,b?O||h.addEventListener(p,A?P:he,A):h.removeEventListener(p,A?P:he,A);else if(p!=="dangerouslySetInnerHTML"){if(D)p=p.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(p!=="width"&&p!=="height"&&p!=="href"&&p!=="list"&&p!=="form"&&p!=="tabIndex"&&p!=="download"&&p in h)try{h[p]=b==null?"":b;break e}catch(F){}typeof b=="function"||(b==null||b===!1&&p.indexOf("-")==-1?h.removeAttribute(p):h.setAttribute(p,b))}}function he(h){return this.l[h.type+!1](i.event?i.event(h):h)}function P(h){return this.l[h.type+!0](i.event?i.event(h):h)}function fe(h,p,b,O,D,A,F,te,ce){var ve,_,ye,G,z,V,nt,se,ge,je,ct,me,oo,Ut,Nt,Ue=p.type;if(p.constructor!==void 0)return null;b.__h!=null&&(ce=b.__h,te=p.__e=b.__e,p.__h=null,A=[te]),(ve=i.__b)&&ve(p);try{e:if(typeof Ue=="function"){if(se=p.props,ge=(ve=Ue.contextType)&&O[ve.__c],je=ve?ge?ge.props.value:ve.__:O,b.__c?nt=(_=p.__c=b.__c).__=_.__E:("prototype"in Ue&&Ue.prototype.render?p.__c=_=new Ue(se,je):(p.__c=_=new W(se,je),_.constructor=Ue,_.render=ze),ge&&ge.sub(_),_.props=se,_.state||(_.state={}),_.context=je,_.__n=O,ye=_.__d=!0,_.__h=[],_._sb=[]),_.__s==null&&(_.__s=_.state),Ue.getDerivedStateFromProps!=null&&(_.__s==_.state&&(_.__s=k({},_.__s)),k(_.__s,Ue.getDerivedStateFromProps(se,_.__s))),G=_.props,z=_.state,_.__v=p,ye)Ue.getDerivedStateFromProps==null&&_.componentWillMount!=null&&_.componentWillMount(),_.componentDidMount!=null&&_.__h.push(_.componentDidMount);else{if(Ue.getDerivedStateFromProps==null&&se!==G&&_.componentWillReceiveProps!=null&&_.componentWillReceiveProps(se,je),!_.__e&&_.shouldComponentUpdate!=null&&_.shouldComponentUpdate(se,_.__s,je)===!1||p.__v===b.__v){for(p.__v!==b.__v&&(_.props=se,_.state=_.__s,_.__d=!1),_.__e=!1,p.__e=b.__e,p.__k=b.__k,p.__k.forEach(function(zt){zt&&(zt.__=p)}),ct=0;ct<_._sb.length;ct++)_.__h.push(_._sb[ct]);_._sb=[],_.__h.length&&F.push(_);break e}_.componentWillUpdate!=null&&_.componentWillUpdate(se,_.__s,je),_.componentDidUpdate!=null&&_.__h.push(function(){_.componentDidUpdate(G,z,V)})}if(_.context=je,_.props=se,_.__P=h,me=i.__r,oo=0,"prototype"in Ue&&Ue.prototype.render){for(_.state=_.__s,_.__d=!1,me&&me(p),ve=_.render(_.props,_.state,_.context),Ut=0;Ut<_._sb.length;Ut++)_.__h.push(_._sb[Ut]);_._sb=[]}else do _.__d=!1,me&&me(p),ve=_.render(_.props,_.state,_.context),_.state=_.__s;while(_.__d&&++oo<25);_.state=_.__s,_.getChildContext!=null&&(O=k(k({},O),_.getChildContext())),ye||_.getSnapshotBeforeUpdate==null||(V=_.getSnapshotBeforeUpdate(G,z)),Nt=ve!=null&&ve.type===L&&ve.key==null?ve.props.children:ve,ee(h,Array.isArray(Nt)?Nt:[Nt],p,b,O,D,A,F,te,ce),_.base=p.__e,p.__h=null,_.__h.length&&F.push(_),nt&&(_.__E=_.__=null),_.__e=!1}else A==null&&p.__v===b.__v?(p.__k=b.__k,p.__e=b.__e):p.__e=x(b.__e,p,b,O,D,A,F,ce);(ve=i.diffed)&&ve(p)}catch(zt){p.__v=null,(ce||A!=null)&&(p.__e=te,p.__h=!!ce,A[A.indexOf(te)]=null),i.__e(zt,p,b)}}function C(h,p){i.__c&&i.__c(p,h),h.some(function(b){try{h=b.__h,b.__h=[],h.some(function(O){O.call(b)})}catch(O){i.__e(O,b.__v)}})}function x(h,p,b,O,D,A,F,te){var ce,ve,_,ye=b.props,G=p.props,z=p.type,V=0;if(z==="svg"&&(D=!0),A!=null){for(;V<A.length;V++)if((ce=A[V])&&"setAttribute"in ce==!!z&&(z?ce.localName===z:ce.nodeType===3)){h=ce,A[V]=null;break}}if(h==null){if(z===null)return document.createTextNode(G);h=D?document.createElementNS("http://www.w3.org/2000/svg",z):document.createElement(z,G.is&&G),A=null,te=!1}if(z===null)ye===G||te&&h.data===G||(h.data=G);else{if(A=A&&o.call(h.childNodes),ve=(ye=b.props||g).dangerouslySetInnerHTML,_=G.dangerouslySetInnerHTML,!te){if(A!=null)for(ye={},V=0;V<h.attributes.length;V++)ye[h.attributes[V].name]=h.attributes[V].value;(_||ve)&&(_&&(ve&&_.__html==ve.__html||_.__html===h.innerHTML)||(h.innerHTML=_&&_.__html||""))}if(function(nt,se,ge,je,ct){var me;for(me in ge)me==="children"||me==="key"||me in se||re(nt,me,null,ge[me],je);for(me in se)ct&&typeof se[me]!="function"||me==="children"||me==="key"||me==="value"||me==="checked"||ge[me]===se[me]||re(nt,me,se[me],ge[me],je)}(h,G,ye,D,te),_)p.__k=[];else if(V=p.props.children,ee(h,Array.isArray(V)?V:[V],p,b,O,D&&z!=="foreignObject",A,F,A?A[0]:b.__k&&N(b,0),te),A!=null)for(V=A.length;V--;)A[V]!=null&&y(A[V]);te||("value"in G&&(V=G.value)!==void 0&&(V!==h.value||z==="progress"&&!V||z==="option"&&V!==ye.value)&&re(h,"value",V,ye.value,!1),"checked"in G&&(V=G.checked)!==void 0&&V!==h.checked&&re(h,"checked",V,ye.checked,!1))}return h}function I(h,p,b){try{typeof h=="function"?h(p):h.current=p}catch(O){i.__e(O,b)}}function Q(h,p,b){var O,D;if(i.unmount&&i.unmount(h),(O=h.ref)&&(O.current&&O.current!==h.__e||I(O,null,p)),(O=h.__c)!=null){if(O.componentWillUnmount)try{O.componentWillUnmount()}catch(A){i.__e(A,p)}O.base=O.__P=null,h.__c=void 0}if(O=h.__k)for(D=0;D<O.length;D++)O[D]&&Q(O[D],p,b||typeof h.type!="function");b||h.__e==null||y(h.__e),h.__=h.__e=h.__d=void 0}function ze(h,p,b){return this.constructor(h,b)}function Be(h,p,b){var O,D,A;i.__&&i.__(h,p),D=(O=typeof b=="function")?null:b&&b.__k||p.__k,A=[],fe(p,h=(!O&&b||p).__k=j(L,null,[h]),D||g,g,p.ownerSVGElement!==void 0,!O&&b?[b]:D?null:p.firstChild?o.call(p.childNodes):null,A,!O&&b?b:D?D.__e:p.firstChild,O),C(A,h)}function pt(h,p){Be(h,p,pt)}function Ke(h,p,b){var O,D,A,F=k({},h.props);for(A in p)A=="key"?O=p[A]:A=="ref"?D=p[A]:F[A]=p[A];return arguments.length>2&&(F.children=arguments.length>3?o.call(arguments,2):b),U(h.type,F,O||h.key,D||h.ref,null)}function $e(h,p){var b={__c:p="__cC"+m++,__:h,Consumer:function(O,D){return O.children(D)},Provider:function(O){var D,A;return this.getChildContext||(D=[],(A={})[p]=this,this.getChildContext=function(){return A},this.shouldComponentUpdate=function(F){this.props.value!==F.value&&D.some(function(te){te.__e=!0,ie(te)})},this.sub=function(F){D.push(F);var te=F.componentWillUnmount;F.componentWillUnmount=function(){D.splice(D.indexOf(F),1),te&&te.call(F)}}),O.children}};return b.Provider.__=b.Consumer.contextType=b}o=v.slice,i={__e:function(h,p,b,O){for(var D,A,F;p=p.__;)if((D=p.__c)&&!D.__)try{if((A=D.constructor)&&A.getDerivedStateFromError!=null&&(D.setState(A.getDerivedStateFromError(h)),F=D.__d),D.componentDidCatch!=null&&(D.componentDidCatch(h,O||{}),F=D.__d),F)return D.__E=D}catch(te){h=te}throw h}},r=0,s=function(h){return h!=null&&h.constructor===void 0},W.prototype.setState=function(h,p){var b;b=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=k({},this.state),typeof h=="function"&&(h=h(k({},b),this.props)),h&&k(b,h),h!=null&&this.__v&&(p&&this._sb.push(p),ie(this))},W.prototype.forceUpdate=function(h){this.__v&&(this.__e=!0,h&&this.__h.push(h),ie(this))},W.prototype.render=L,l=[],c=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,d=function(h,p){return h.__v.__b-p.__v.__b},ne.__r=0,m=0},78:(n,t,e)=>{e.r(t),e.d(t,{useCallback:()=>ie,useContext:()=>ne,useDebugValue:()=>ee,useEffect:()=>T,useErrorBoundary:()=>q,useId:()=>ue,useImperativeHandle:()=>N,useLayoutEffect:()=>L,useMemo:()=>M,useReducer:()=>U,useRef:()=>W,useState:()=>j});var o,i,r,s,l=e(616),u=0,c=[],d=[],m=l.options.__b,g=l.options.__r,v=l.options.diffed,S=l.options.__c,k=l.options.unmount;function y(C,x){l.options.__h&&l.options.__h(i,C,u||x),u=0;var I=i.__H||(i.__H={__:[],__h:[]});return C>=I.__.length&&I.__.push({__V:d}),I.__[C]}function j(C){return u=1,U(fe,C)}function U(C,x,I){var Q=y(o++,2);if(Q.t=C,!Q.__c&&(Q.__=[I?I(x):fe(void 0,x),function(Ke){var $e=Q.__N?Q.__N[0]:Q.__[0],h=Q.t($e,Ke);$e!==h&&(Q.__N=[h,Q.__[1]],Q.__c.setState({}))}],Q.__c=i,!i.u)){var ze=function(Ke,$e,h){if(!Q.__c.__H)return!0;var p=Q.__c.__H.__.filter(function(O){return O.__c});if(p.every(function(O){return!O.__N}))return!Be||Be.call(this,Ke,$e,h);var b=!1;return p.forEach(function(O){if(O.__N){var D=O.__[0];O.__=O.__N,O.__N=void 0,D!==O.__[0]&&(b=!0)}}),!(!b&&Q.__c.props===Ke)&&(!Be||Be.call(this,Ke,$e,h))};i.u=!0;var Be=i.shouldComponentUpdate,pt=i.componentWillUpdate;i.componentWillUpdate=function(Ke,$e,h){if(this.__e){var p=Be;Be=void 0,ze(Ke,$e,h),Be=p}pt&&pt.call(this,Ke,$e,h)},i.shouldComponentUpdate=ze}return Q.__N||Q.__}function T(C,x){var I=y(o++,3);!l.options.__s&&P(I.__H,x)&&(I.__=C,I.i=x,i.__H.__h.push(I))}function L(C,x){var I=y(o++,4);!l.options.__s&&P(I.__H,x)&&(I.__=C,I.i=x,i.__h.push(I))}function W(C){return u=5,M(function(){return{current:C}},[])}function N(C,x,I){u=6,L(function(){return typeof C=="function"?(C(x()),function(){return C(null)}):C?(C.current=x(),function(){return C.current=null}):void 0},I==null?I:I.concat(C))}function M(C,x){var I=y(o++,7);return P(I.__H,x)?(I.__V=C(),I.i=x,I.__h=C,I.__V):I.__}function ie(C,x){return u=8,M(function(){return C},x)}function ne(C){var x=i.context[C.__c],I=y(o++,9);return I.c=C,x?(I.__==null&&(I.__=!0,x.sub(i)),x.props.value):C.__}function ee(C,x){l.options.useDebugValue&&l.options.useDebugValue(x?x(C):C)}function q(C){var x=y(o++,10),I=j();return x.__=C,i.componentDidCatch||(i.componentDidCatch=function(Q,ze){x.__&&x.__(Q,ze),I[1](Q)}),[I[0],function(){I[1](void 0)}]}function ue(){var C=y(o++,11);if(!C.__){for(var x=i.__v;x!==null&&!x.__m&&x.__!==null;)x=x.__;var I=x.__m||(x.__m=[0,0]);C.__="P"+I[0]+"-"+I[1]++}return C.__}function Ce(){for(var C;C=c.shift();)if(C.__P&&C.__H)try{C.__H.__h.forEach(re),C.__H.__h.forEach(he),C.__H.__h=[]}catch(x){C.__H.__h=[],l.options.__e(x,C.__v)}}l.options.__b=function(C){i=null,m&&m(C)},l.options.__r=function(C){g&&g(C),o=0;var x=(i=C.__c).__H;x&&(r===i?(x.__h=[],i.__h=[],x.__.forEach(function(I){I.__N&&(I.__=I.__N),I.__V=d,I.__N=I.i=void 0})):(x.__h.forEach(re),x.__h.forEach(he),x.__h=[])),r=i},l.options.diffed=function(C){v&&v(C);var x=C.__c;x&&x.__H&&(x.__H.__h.length&&(c.push(x)!==1&&s===l.options.requestAnimationFrame||((s=l.options.requestAnimationFrame)||Ie)(Ce)),x.__H.__.forEach(function(I){I.i&&(I.__H=I.i),I.__V!==d&&(I.__=I.__V),I.i=void 0,I.__V=d})),r=i=null},l.options.__c=function(C,x){x.some(function(I){try{I.__h.forEach(re),I.__h=I.__h.filter(function(Q){return!Q.__||he(Q)})}catch(Q){x.some(function(ze){ze.__h&&(ze.__h=[])}),x=[],l.options.__e(Q,I.__v)}}),S&&S(C,x)},l.options.unmount=function(C){k&&k(C);var x,I=C.__c;I&&I.__H&&(I.__H.__.forEach(function(Q){try{re(Q)}catch(ze){x=ze}}),I.__H=void 0,x&&l.options.__e(x,I.__v))};var pe=typeof requestAnimationFrame=="function";function Ie(C){var x,I=function(){clearTimeout(Q),pe&&cancelAnimationFrame(x),setTimeout(C)},Q=setTimeout(I,100);pe&&(x=requestAnimationFrame(I))}function re(C){var x=i,I=C.__c;typeof I=="function"&&(C.__c=void 0,I()),i=x}function he(C){var x=i;C.__c=C.__(),i=x}function P(C,x){return!C||C.length!==x.length||x.some(function(I,Q){return I!==C[Q]})}function fe(C,x){return typeof x=="function"?x(C):x}},292:n=>{var t=[];function e(r){for(var s=-1,l=0;l<t.length;l++)if(t[l].identifier===r){s=l;break}return s}function o(r,s){for(var l={},u=[],c=0;c<r.length;c++){var d=r[c],m=s.base?d[0]+s.base:d[0],g=l[m]||0,v="".concat(m," ").concat(g);l[m]=g+1;var S=e(v),k={css:d[1],media:d[2],sourceMap:d[3],supports:d[4],layer:d[5]};if(S!==-1)t[S].references++,t[S].updater(k);else{var y=i(k,s);s.byIndex=c,t.splice(c,0,{identifier:v,updater:y,references:1})}u.push(v)}return u}function i(r,s){var l=s.domAPI(s);return l.update(r),function(u){if(u){if(u.css===r.css&&u.media===r.media&&u.sourceMap===r.sourceMap&&u.supports===r.supports&&u.layer===r.layer)return;l.update(r=u)}else l.remove()}}n.exports=function(r,s){var l=o(r=r||[],s=s||{});return function(u){u=u||[];for(var c=0;c<l.length;c++){var d=e(l[c]);t[d].references--}for(var m=o(u,s),g=0;g<l.length;g++){var v=e(l[g]);t[v].references===0&&(t[v].updater(),t.splice(v,1))}l=m}}},88:n=>{n.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},884:(n,t,e)=>{n.exports=function(o){var i=e.nc;i&&o.setAttribute("nonce",i)}},360:n=>{var t,e=(t=[],function(r,s){return t[r]=s,t.filter(Boolean).join(`
577
- `)});function o(r,s,l,u){var c;if(l)c="";else{c="",u.supports&&(c+="@supports (".concat(u.supports,") {")),u.media&&(c+="@media ".concat(u.media," {"));var d=u.layer!==void 0;d&&(c+="@layer".concat(u.layer.length>0?" ".concat(u.layer):""," {")),c+=u.css,d&&(c+="}"),u.media&&(c+="}"),u.supports&&(c+="}")}if(r.styleSheet)r.styleSheet.cssText=e(s,c);else{var m=document.createTextNode(c),g=r.childNodes;g[s]&&r.removeChild(g[s]),g.length?r.insertBefore(m,g[s]):r.appendChild(m)}}var i={singleton:null,singletonCounter:0};n.exports=function(r){if(typeof document=="undefined")return{update:function(){},remove:function(){}};var s=i.singletonCounter++,l=i.singleton||(i.singleton=r.insertStyleElement(r));return{update:function(u){o(l,s,!1,u)},remove:function(u){o(l,s,!0,u)}}}},6:(n,t,e)=>{e.d(t,{en:()=>o});let o={headlines:{error:"An error has occurred",loginEmail:"Sign in or create account",loginEmailNoSignup:"Sign in",loginFinished:"Login successful",loginPasscode:"Enter passcode",loginPassword:"Enter password",registerAuthenticator:"Create a passkey",registerConfirm:"Create account?",registerPassword:"Set new password",otpSetUp:"Set up authenticator app",profileEmails:"Emails",profilePassword:"Password",profilePasskeys:"Passkeys",isPrimaryEmail:"Primary email address",setPrimaryEmail:"Set primary email address",createEmail:"Enter a new email",createUsername:"Enter a new username",emailVerified:"Verified",emailUnverified:"Unverified",emailDelete:"Delete",renamePasskey:"Rename passkey",deletePasskey:"Delete passkey",lastUsedAt:"Last used at",createdAt:"Created at",connectedAccounts:"Connected accounts",deleteAccount:"Delete account",accountNotFound:"Account not found",signIn:"Sign in",signUp:"Create account",selectLoginMethod:"Select login method",setupLoginMethod:"Set up login method",lastUsed:"Last seen",ipAddress:"IP address",revokeSession:"Revoke session",profileSessions:"Sessions",mfaSetUp:"Set up MFA",securityKeySetUp:"Add security key",securityKeyLogin:"Security key",otpLogin:"Authentication code",renameSecurityKey:"Rename security key",deleteSecurityKey:"Delete security key",securityKeys:"Security keys",authenticatorApp:"Authenticator app",authenticatorAppAlreadySetUp:"Authenticator app is set up",authenticatorAppNotSetUp:"Set up authenticator app",trustDevice:"Trust this browser?"},texts:{enterPasscode:'Enter the passcode that was sent to "{emailAddress}".',enterPasscodeNoEmail:"Enter the passcode that was sent to your primary email address.",setupPasskey:"Sign in to your account easily and securely with a passkey. Note: Your biometric data is only stored on your devices and will never be shared with anyone.",createAccount:'No account exists for "{emailAddress}". Do you want to create a new account?',otpEnterVerificationCode:"Enter the one-time password (OTP) obtained from your authenticator app below:",otpScanQRCode:"Scan the QR code using your authenticator app (such as Google Authenticator or any other TOTP app). Alternatively, you can manually enter the OTP secret key into the app.",otpSecretKey:"OTP secret key",passwordFormatHint:"Must be between {minLength} and {maxLength} characters long.",securityKeySetUp:"Use a dedicated security key via USB, Bluetooth, or NFC, or your mobile phone. Connect or activate your security key, then click the button below and follow the prompts to complete the registration.",setPrimaryEmail:"Set this email address to be used for contacting you.",isPrimaryEmail:"This email address will be used to contact you if necessary.",emailVerified:"This email address has been verified.",emailUnverified:"This email address has not been verified.",emailDelete:"If you delete this email address, it can no longer be used to sign in.",renamePasskey:"Set a name for the passkey.",deletePasskey:"Delete this passkey from your account.",deleteAccount:"Are you sure you want to delete this account? All data will be deleted immediately and cannot be recovered.",noAccountExists:'No account exists for "{emailAddress}".',selectLoginMethodForFutureLogins:"Select one of the following login methods to use for future logins.",howDoYouWantToLogin:"How do you want to login?",mfaSetUp:"Protect your account with Multi-Factor Authentication (MFA). MFA adds an additional step to your login process, ensuring that even if your password or email account is compromised, your account stays secure.",securityKeyLogin:"Connect or activate your security key, then click the button below. Once ready, use it via USB, NFC, your mobile phone. Follow the prompts to complete the login process.",otpLogin:"Open your authenticator app to obtain the one-time password (OTP). Enter the code in the field below to complete your login.",renameSecurityKey:"Set a name for the security key.",deleteSecurityKey:"Delete this security key from your account.",authenticatorAppAlreadySetUp:"Your account is secured with an authenticator app that generates time-based one-time passwords (TOTP) for multi-factor authentication.",authenticatorAppNotSetUp:"Secure your account with an authenticator app that generates time-based one-time passwords (TOTP) for multi-factor authentication.",trustDevice:"If you trust this browser, you won\u2019t need to enter your OTP (One-Time-Password) or use your security key for multi-factor authentication (MFA) the next time you log in."},labels:{or:"or",no:"no",yes:"yes",email:"Email",continue:"Continue",copied:"copied",skip:"Skip",save:"Save",password:"Password",passkey:"Passkey",passcode:"Passcode",signInPassword:"Sign in with a password",signInPasscode:"Sign in with a passcode",forgotYourPassword:"Forgot your password?",back:"Back",signInPasskey:"Sign in with a passkey",registerAuthenticator:"Create a passkey",signIn:"Sign in",signUp:"Create account",sendNewPasscode:"Send new code",passwordRetryAfter:"Retry in {passwordRetryAfter}",passcodeResendAfter:"Request a new code in {passcodeResendAfter}",unverifiedEmail:"unverified",primaryEmail:"primary",setAsPrimaryEmail:"Set as primary",verify:"Verify",delete:"Delete",newEmailAddress:"New email address",newPassword:"New password",rename:"Rename",newPasskeyName:"New passkey name",addEmail:"Add email",createPasskey:"Create a passkey",webauthnUnsupported:"Passkeys are not supported by your browser",signInWith:"Sign in with {provider}",deleteAccount:"Yes, delete this account.",emailOrUsername:"Email or username",username:"Username",optional:"optional",dontHaveAnAccount:"Don't have an account?",alreadyHaveAnAccount:"Already have an account?",changeUsername:"Change username",setUsername:"Set username",changePassword:"Change password",setPassword:"Set password",revoke:"Revoke",currentSession:"Current session",authenticatorApp:"Authenticator app",securityKey:"Security key",securityKeyUse:"Use security key",newSecurityKeyName:"New security key name",createSecurityKey:"Add a security key",authenticatorAppManage:"Manage authenticator app",authenticatorAppAdd:"Set up",configured:"configured",useAnotherMethod:"Use another method",lastUsed:"Last used",trustDevice:"Trust this browser",staySignedIn:"Stay signed in"},errors:{somethingWentWrong:"A technical error has occurred. Please try again later.",requestTimeout:"The request timed out.",invalidPassword:"Wrong email or password.",invalidPasscode:"The passcode provided was not correct.",passcodeAttemptsReached:"The passcode was entered incorrectly too many times. Please request a new code.",tooManyRequests:"Too many requests have been made. Please wait to repeat the requested operation.",unauthorized:"Your session has expired. Please log in again.",invalidWebauthnCredential:"This passkey cannot be used anymore.",passcodeExpired:"The passcode has expired. Please request a new one.",userVerification:"User verification required. Please ensure your authenticator device is protected with a PIN or biometric.",emailAddressAlreadyExistsError:"The email address already exists.",maxNumOfEmailAddressesReached:"No further email addresses can be added.",thirdPartyAccessDenied:"Access denied. The request was cancelled by the user or the provider has denied access for other reasons.",thirdPartyMultipleAccounts:"Cannot identify account. The email address is used by multiple accounts.",thirdPartyUnverifiedEmail:"Email verification required. Please verify the used email address with your provider.",signupDisabled:"Account registration is disabled.",handlerNotFoundError:"The current step in your process is not supported by this application version. Please try again later or contact support if the issue persists."},flowErrors:{technical_error:"A technical error has occurred. Please try again later.",flow_expired_error:"The session has expired, please click the button to restart.",value_invalid_error:"The entered value is invalid.",passcode_invalid:"The passcode provided was not correct.",passkey_invalid:"This passkey cannot be used anymore",passcode_max_attempts_reached:"The passcode was entered incorrectly too many times. Please request a new code.",rate_limit_exceeded:"Too many requests have been made. Please wait to repeat the requested operation.",unknown_username_error:"The username is unknown.",unknown_email_error:"The email address is unknown.",username_already_exists:"The username is already taken.",invalid_username_error:"The username must contain only letters, numbers, and underscores.",email_already_exists:"The email is already taken.",not_found:"The requested resource was not found.",operation_not_permitted_error:"The operation is not permitted.",flow_discontinuity_error:"The process cannot be continued due to user settings or the provider's configuration.",form_data_invalid_error:"The submitted form data contains errors.",unauthorized:"Your session has expired. Please log in again.",value_missing_error:"The value is missing.",value_too_long_error:"Value is too long.",value_too_short_error:"The value is too short.",webauthn_credential_invalid_mfa_only:"This credential can be used as a second factor security key only.",webauthn_credential_already_exists:"The request either timed out, was canceled or the device is already registered. Please try again or try using another device.",platform_authenticator_required:"Your account is configured to use platform authenticators, but your current device or browser does not support this feature. Please try again with a compatible device or browser.",third_party_access_denied:"Access denied. The request was cancelled by the user or the provider has denied access for other reasons."}}}},go={};function K(n){var t=go[n];if(t!==void 0)return t.exports;var e=go[n]={id:n,exports:{}};return Ua[n].call(e.exports,e,e.exports,K),e.exports}K.n=n=>{var t=n&&n.__esModule?()=>n.default:()=>n;return K.d(t,{a:t}),t},K.d=(n,t)=>{for(var e in t)K.o(t,e)&&!K.o(n,e)&&Object.defineProperty(n,e,{enumerable:!0,get:t[e]})},K.o=(n,t)=>Object.prototype.hasOwnProperty.call(n,t),K.r=n=>{typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},K.nc=void 0;var J={};K.d(J,{rc:()=>jt,Kj:()=>Et,fK:()=>Cn,tJ:()=>an,Z7:()=>Nn,qQ:()=>Dn,I4:()=>hn,O8:()=>we,Qq:()=>It,ku:()=>In,ls:()=>An,bO:()=>En,yv:()=>Un,AT:()=>jn,m_:()=>Tn,KG:()=>Pn,Wj:()=>dn,DH:()=>ln,kf:()=>Pt,Uw:()=>ht,oY:()=>Qe,Wg:()=>zn,AC:()=>Ln,D_:()=>At,jx:()=>un,nX:()=>Mn,Nx:()=>On,Sd:()=>st,kz:()=>fr,fX:()=>Vn,qA:()=>Zn,tz:()=>Qn,gN:()=>Jn});var Sn={};K.r(Sn),K.d(Sn,{apple:()=>di,checkmark:()=>ui,copy:()=>hi,customProvider:()=>pi,discord:()=>fi,exclamation:()=>mi,facebook:()=>vi,github:()=>gi,google:()=>bi,linkedin:()=>_i,mail:()=>yi,microsoft:()=>ki,passkey:()=>wi,password:()=>Si,qrCodeScanner:()=>xi,securityKey:()=>Ci,spinner:()=>Oi});var w=K(616),Na=0;function a(n,t,e,o,i,r){var s,l,u={};for(l in t)l=="ref"?s=t[l]:u[l]=t[l];var c={type:n,props:u,key:e,ref:s,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--Na,__source:i,__self:r};if(typeof n=="function"&&(s=n.defaultProps))for(l in s)u[l]===void 0&&(u[l]=s[l]);return w.options.vnode&&w.options.vnode(c),c}function on(){return on=Object.assign?Object.assign.bind():function(n){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o])}return n},on.apply(this,arguments)}var za=["context","children"];function Wa(n){this.getChildContext=function(){return n.context};var t=n.children,e=function(o,i){if(o==null)return{};var r,s,l={},u=Object.keys(o);for(s=0;s<u.length;s++)i.indexOf(r=u[s])>=0||(l[r]=o[r]);return l}(n,za);return(0,w.cloneElement)(t,e)}function Fa(){var n=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(n),this._vdom=(0,w.h)(Wa,on({},this._props,{context:n.detail.context}),Zo(this,this._vdomComponent)),(this.hasAttribute("hydrate")?w.hydrate:w.render)(this._vdom,this._root)}function Vo(n){return n.replace(/-(\w)/g,function(t,e){return e?e.toUpperCase():""})}function Ha(n,t,e){if(this._vdom){var o={};o[n]=e=e==null?void 0:e,o[Vo(n)]=e,this._vdom=(0,w.cloneElement)(this._vdom,o),(0,w.render)(this._vdom,this._root)}}function Ra(){(0,w.render)(this._vdom=null,this._root)}function bo(n,t){var e=this;return(0,w.h)("slot",on({},n,{ref:function(o){o?(e.ref=o,e._listener||(e._listener=function(i){i.stopPropagation(),i.detail.context=t},o.addEventListener("_preact",e._listener))):e.ref.removeEventListener("_preact",e._listener)}}))}function Zo(n,t){if(n.nodeType===3)return n.data;if(n.nodeType!==1)return null;var e=[],o={},i=0,r=n.attributes,s=n.childNodes;for(i=r.length;i--;)r[i].name!=="slot"&&(o[r[i].name]=r[i].value,o[Vo(r[i].name)]=r[i].value);for(i=s.length;i--;){var l=Zo(s[i],null),u=s[i].slot;u?o[u]=(0,w.h)(bo,{name:u},l):e[i]=l}var c=t?(0,w.h)(bo,null,e):e;return(0,w.h)(t||n.nodeName.toLowerCase(),o,c)}var R=K(7),f=K(78);function Jo(n,t){for(var e in t)n[e]=t[e];return n}function _o(n,t){for(var e in n)if(e!=="__source"&&!(e in t))return!0;for(var o in t)if(o!=="__source"&&n[o]!==t[o])return!0;return!1}function yo(n){this.props=n}(yo.prototype=new w.Component).isPureReactComponent=!0,yo.prototype.shouldComponentUpdate=function(n,t){return _o(this.props,n)||_o(this.state,t)};var ko=w.options.__b;w.options.__b=function(n){n.type&&n.type.__f&&n.ref&&(n.props.ref=n.ref,n.ref=null),ko&&ko(n)};var qa=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911,Ba=(w.toChildArray,w.options.__e);w.options.__e=function(n,t,e,o){if(n.then){for(var i,r=t;r=r.__;)if((i=r.__c)&&i.__c)return t.__e==null&&(t.__e=e.__e,t.__k=e.__k),i.__c(n,t)}Ba(n,t,e,o)};var wo=w.options.unmount;function Qo(n,t,e){return n&&(n.__c&&n.__c.__H&&(n.__c.__H.__.forEach(function(o){typeof o.__c=="function"&&o.__c()}),n.__c.__H=null),(n=Jo({},n)).__c!=null&&(n.__c.__P===e&&(n.__c.__P=t),n.__c=null),n.__k=n.__k&&n.__k.map(function(o){return Qo(o,t,e)})),n}function Yo(n,t,e){return n&&(n.__v=null,n.__k=n.__k&&n.__k.map(function(o){return Yo(o,t,e)}),n.__c&&n.__c.__P===t&&(n.__e&&e.insertBefore(n.__e,n.__d),n.__c.__e=!0,n.__c.__P=e)),n}function yn(){this.__u=0,this.t=null,this.__b=null}function Xo(n){var t=n.__.__c;return t&&t.__a&&t.__a(n)}function Ft(){this.u=null,this.o=null}w.options.unmount=function(n){var t=n.__c;t&&t.__R&&t.__R(),t&&n.__h===!0&&(n.type=null),wo&&wo(n)},(yn.prototype=new w.Component).__c=function(n,t){var e=t.__c,o=this;o.t==null&&(o.t=[]),o.t.push(e);var i=Xo(o.__v),r=!1,s=function(){r||(r=!0,e.__R=null,i?i(l):l())};e.__R=s;var l=function(){if(!--o.__u){if(o.state.__a){var c=o.state.__a;o.__v.__k[0]=Yo(c,c.__c.__P,c.__c.__O)}var d;for(o.setState({__a:o.__b=null});d=o.t.pop();)d.forceUpdate()}},u=t.__h===!0;o.__u++||u||o.setState({__a:o.__b=o.__v.__k[0]}),n.then(s,s)},yn.prototype.componentWillUnmount=function(){this.t=[]},yn.prototype.render=function(n,t){if(this.__b){if(this.__v.__k){var e=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=Qo(this.__b,e,o.__O=o.__P)}this.__b=null}var i=t.__a&&(0,w.createElement)(w.Fragment,null,n.fallback);return i&&(i.__h=null),[(0,w.createElement)(w.Fragment,null,t.__a?null:n.children),i]};var So=function(n,t,e){if(++e[1]===e[0]&&n.o.delete(t),n.props.revealOrder&&(n.props.revealOrder[0]!=="t"||!n.o.size))for(e=n.u;e;){for(;e.length>3;)e.pop()();if(e[1]<e[0])break;n.u=e=e[2]}};(Ft.prototype=new w.Component).__a=function(n){var t=this,e=Xo(t.__v),o=t.o.get(n);return o[0]++,function(i){var r=function(){t.props.revealOrder?(o.push(i),So(t,n,o)):i()};e?e(r):r()}},Ft.prototype.render=function(n){this.u=null,this.o=new Map;var t=(0,w.toChildArray)(n.children);n.revealOrder&&n.revealOrder[0]==="b"&&t.reverse();for(var e=t.length;e--;)this.o.set(t[e],this.u=[1,0,this.u]);return n.children},Ft.prototype.componentDidUpdate=Ft.prototype.componentDidMount=function(){var n=this;this.o.forEach(function(t,e){So(n,e,t)})};var Ka=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,$a=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Ga=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Va=/[A-Z0-9]/g,Za=typeof document!="undefined",Ja=function(n){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(n)};w.Component.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(n){Object.defineProperty(w.Component.prototype,n,{configurable:!0,get:function(){return this["UNSAFE_"+n]},set:function(t){Object.defineProperty(this,n,{configurable:!0,writable:!0,value:t})}})});var xo=w.options.event;function Qa(){}function Ya(){return this.cancelBubble}function Xa(){return this.defaultPrevented}w.options.event=function(n){return xo&&(n=xo(n)),n.persist=Qa,n.isPropagationStopped=Ya,n.isDefaultPrevented=Xa,n.nativeEvent=n};var Co={configurable:!0,get:function(){return this.class}},Oo=w.options.vnode;w.options.vnode=function(n){var t=n.type,e=n.props,o=e;if(typeof t=="string"){for(var i in o={},e){var r=e[i];if(!(i==="value"&&"defaultValue"in e&&r==null||Za&&i==="children"&&t==="noscript")){var s=i.toLowerCase();i==="defaultValue"&&"value"in e&&e.value==null?i="value":i==="download"&&r===!0?r="":s==="ondoubleclick"?i="ondblclick":s!=="onchange"||t!=="input"&&t!=="textarea"||Ja(e.type)?s==="onfocus"?i="onfocusin":s==="onblur"?i="onfocusout":Ga.test(i)?i=s:t.indexOf("-")===-1&&$a.test(i)?i=i.replace(Va,"-$&").toLowerCase():r===null&&(r=void 0):s=i="oninput",s==="oninput"&&o[i=s]&&(i="oninputCapture"),o[i]=r}}t=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=(0,w.toChildArray)(e.children).forEach(function(l){l.props.selected=o.value.indexOf(l.props.value)!=-1})),t=="select"&&o.defaultValue!=null&&(o.value=(0,w.toChildArray)(e.children).forEach(function(l){l.props.selected=o.multiple?o.defaultValue.indexOf(l.props.value)!=-1:o.defaultValue==l.props.value})),n.props=o,e.class!=e.className&&(Co.enumerable="className"in e,e.className!=null&&(o.class=e.className),Object.defineProperty(o,"className",Co))}n.$$typeof=Ka,Oo&&Oo(n)};var Ao=w.options.__r;w.options.__r=function(n){Ao&&Ao(n),n.__c};var Io=w.options.diffed;function Ne(){return Ne=Object.assign?Object.assign.bind():function(n){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o])}return n},Ne.apply(this,arguments)}w.options.diffed=function(n){Io&&Io(n);var t=n.props,e=n.__e;e!=null&&n.type==="textarea"&&"value"in t&&t.value!==e.value&&(e.value=t.value==null?"":t.value)},w.Fragment,f.useLayoutEffect,f.useState,f.useId,f.useReducer,f.useEffect,f.useLayoutEffect,f.useRef,f.useImperativeHandle,f.useMemo,f.useCallback,f.useContext,f.useDebugValue,w.createElement,w.createContext,w.createRef,w.Fragment,w.Component;var xn=class{static throttle(t,e,o={}){let{leading:i=!0,trailing:r=!0}=o,s,l,u,c=0,d=()=>{c=i===!1?0:Date.now(),u=null,t.apply(s,l)};return function(...m){let g=Date.now();c||i!==!1||(c=g);let v=e-(g-c);s=this,l=m,v<=0||v>e?(u&&(window.clearTimeout(u),u=null),c=g,t.apply(s,l)):u||r===!1||(u=window.setTimeout(d,v))}}},Vn="hanko-session-created",Zn="hanko-session-expired",Jn="hanko-user-logged-out",Qn="hanko-user-deleted",ea="hanko-after-state-change",ta="hanko-before-state-change",an=class extends CustomEvent{constructor(t,e){super(t,{detail:e})}},rn=class n{constructor(){this.throttleLimit=1e3,this._addEventListener=document.addEventListener.bind(document),this._removeEventListener=document.removeEventListener.bind(document),this._throttle=xn.throttle}wrapCallback(t,e){let o=i=>{t(i.detail)};return e?this._throttle(o,this.throttleLimit,{leading:!0,trailing:!1}):o}addEventListenerWithType({type:t,callback:e,once:o=!1,throttle:i=!1}){let r=this.wrapCallback(e,i);return this._addEventListener(t,r,{once:o}),()=>this._removeEventListener(t,r)}static mapAddEventListenerParams(t,{once:e,callback:o},i){return{type:t,callback:o,once:e,throttle:i}}addEventListener(t,e,o){return this.addEventListenerWithType(n.mapAddEventListenerParams(t,e,o))}onSessionCreated(t,e){return this.addEventListener(Vn,{callback:t,once:e},!0)}onSessionExpired(t,e){return this.addEventListener(Zn,{callback:t,once:e},!0)}onUserLoggedOut(t,e){return this.addEventListener(Jn,{callback:t,once:e})}onUserDeleted(t,e){return this.addEventListener(Qn,{callback:t,once:e})}onAfterStateChange(t,e){return this.addEventListener(ea,{callback:t,once:e},!1)}onBeforeStateChange(t,e){return this.addEventListener(ta,{callback:t,once:e},!1)}},sn=class{constructor(){this._dispatchEvent=document.dispatchEvent.bind(document)}dispatch(t,e){this._dispatchEvent(new an(t,e))}dispatchSessionCreatedEvent(t){this.dispatch(Vn,t)}dispatchSessionExpiredEvent(){this.dispatch(Zn,null)}dispatchUserLoggedOutEvent(){this.dispatch(Jn,null)}dispatchUserDeletedEvent(){this.dispatch(Qn,null)}dispatchAfterStateChangeEvent(t){this.dispatch(ea,t)}dispatchBeforeStateChangeEvent(t){this.dispatch(ta,t)}},we=class n extends Error{constructor(t,e,o){super(t),this.code=void 0,this.cause=void 0,this.code=e,this.cause=o,Object.setPrototypeOf(this,n.prototype)}},Qe=class n extends we{constructor(t){super("Technical error","somethingWentWrong",t),Object.setPrototypeOf(this,n.prototype)}},Cn=class n extends we{constructor(t,e){super("Conflict error","conflict",e),Object.setPrototypeOf(this,n.prototype)}},ln=class n extends we{constructor(t){super("Request timed out error","requestTimeout",t),Object.setPrototypeOf(this,n.prototype)}},On=class n extends we{constructor(t){super("Request cancelled error","requestCancelled",t),Object.setPrototypeOf(this,n.prototype)}},An=class n extends we{constructor(t){super("Invalid password error","invalidPassword",t),Object.setPrototypeOf(this,n.prototype)}},In=class n extends we{constructor(t){super("Invalid Passcode error","invalidPasscode",t),Object.setPrototypeOf(this,n.prototype)}},En=class n extends we{constructor(t){super("Invalid WebAuthn credential error","invalidWebauthnCredential",t),Object.setPrototypeOf(this,n.prototype)}},Pn=class n extends we{constructor(t){super("Passcode expired error","passcodeExpired",t),Object.setPrototypeOf(this,n.prototype)}},jn=class n extends we{constructor(t){super("Maximum number of Passcode attempts reached error","passcodeAttemptsReached",t),Object.setPrototypeOf(this,n.prototype)}},Tn=class n extends we{constructor(t){super("Not found error","notFound",t),Object.setPrototypeOf(this,n.prototype)}},Ln=class n extends we{constructor(t,e){super("Too many requests error","tooManyRequests",e),this.retryAfter=void 0,this.retryAfter=t,Object.setPrototypeOf(this,n.prototype)}},At=class n extends we{constructor(t){super("Unauthorized error","unauthorized",t),Object.setPrototypeOf(this,n.prototype)}},Dn=class n extends we{constructor(t){super("Forbidden error","forbidden",t),Object.setPrototypeOf(this,n.prototype)}},Mn=class n extends we{constructor(t){super("User verification error","userVerification",t),Object.setPrototypeOf(this,n.prototype)}},Un=class n extends we{constructor(t){super("Maximum number of email addresses reached error","maxNumOfEmailAddressesReached",t),Object.setPrototypeOf(this,n.prototype)}},Nn=class n extends we{constructor(t){super("The email address already exists","emailAddressAlreadyExistsError",t),Object.setPrototypeOf(this,n.prototype)}},zn=class n extends we{constructor(t,e){super("An error occurred during third party sign up/sign in",t,e),Object.setPrototypeOf(this,n.prototype)}};function Ht(n){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var o in e)n[o]=e[o]}return n}var kn=function n(t,e){function o(i,r,s){if(typeof document!="undefined"){typeof(s=Ht({},e,s)).expires=="number"&&(s.expires=new Date(Date.now()+864e5*s.expires)),s.expires&&(s.expires=s.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var l="";for(var u in s)s[u]&&(l+="; "+u,s[u]!==!0&&(l+="="+s[u].split(";")[0]));return document.cookie=i+"="+t.write(r,i)+l}}return Object.create({set:o,get:function(i){if(typeof document!="undefined"&&(!arguments.length||i)){for(var r=document.cookie?document.cookie.split("; "):[],s={},l=0;l<r.length;l++){var u=r[l].split("="),c=u.slice(1).join("=");try{var d=decodeURIComponent(u[0]);if(s[d]=t.read(c,d),i===d)break}catch(m){}}return i?s[i]:s}},remove:function(i,r){o(i,"",Ht({},r,{expires:-1}))},withAttributes:function(i){return n(this.converter,Ht({},this.attributes,i))},withConverter:function(i){return n(Ht({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(e)},converter:{value:Object.freeze(t)}})}({read:function(n){return n[0]==='"'&&(n=n.slice(1,-1)),n.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(n){return encodeURIComponent(n).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"}),cn=class{constructor(t){var e,o;this.authCookieName=void 0,this.authCookieDomain=void 0,this.authCookieSameSite=void 0,this.authCookieName=(e=t.cookieName)!=null?e:"hanko",this.authCookieDomain=t.cookieDomain,this.authCookieSameSite=(o=t.cookieSameSite)!=null?o:"lax"}getAuthCookie(){return kn.get(this.authCookieName)}setAuthCookie(t,e){let o={secure:!0,sameSite:this.authCookieSameSite};this.authCookieDomain!==void 0&&(o.domain=this.authCookieDomain);let i=Ne({},o,e);if((i.sameSite==="none"||i.sameSite==="None")&&i.secure===!1)throw new Qe(new Error("Secure attribute must be set when SameSite=None"));kn.set(this.authCookieName,t,i)}removeAuthCookie(){kn.remove(this.authCookieName)}},Wn=class{constructor(t){this.keyName=void 0,this.keyName=t.keyName}getSessionToken(){return sessionStorage.getItem(this.keyName)}setSessionToken(t){sessionStorage.setItem(this.keyName,t)}removeSessionToken(){sessionStorage.removeItem(this.keyName)}},Fn=class{constructor(t){this._xhr=void 0,this._xhr=t}getResponseHeader(t){return this._xhr.getResponseHeader(t)}},Hn=class{constructor(t){this.headers=void 0,this.ok=void 0,this.status=void 0,this.statusText=void 0,this.url=void 0,this._decodedJSON=void 0,this.xhr=void 0,this.headers=new Fn(t),this.ok=t.status>=200&&t.status<=299,this.status=t.status,this.statusText=t.statusText,this.url=t.responseURL,this.xhr=t}json(){return this._decodedJSON||(this._decodedJSON=JSON.parse(this.xhr.response)),this._decodedJSON}parseNumericHeader(t){let e=parseInt(this.headers.getResponseHeader(t),10);return isNaN(e)?0:e}},It=class{constructor(t,e){var o;this.timeout=void 0,this.api=void 0,this.dispatcher=void 0,this.cookie=void 0,this.sessionTokenStorage=void 0,this.lang=void 0,this.sessionTokenLocation=void 0,this.api=t,this.timeout=(o=e.timeout)!=null?o:13e3,this.dispatcher=new sn,this.cookie=new cn(Ne({},e)),this.sessionTokenStorage=new Wn({keyName:e.cookieName}),this.lang=e.lang,this.sessionTokenLocation=e.sessionTokenLocation}_fetch(t,e,o=new XMLHttpRequest){let i=this,r=this.api+t,s=this.timeout,l=this.getAuthToken(),u=this.lang;return new Promise(function(c,d){o.open(e.method,r,!0),o.setRequestHeader("Accept","application/json"),o.setRequestHeader("Content-Type","application/json"),o.setRequestHeader("X-Language",u),l&&o.setRequestHeader("Authorization",`Bearer ${l}`),o.timeout=s,o.withCredentials=!0,o.onload=()=>{i.processHeaders(o),c(new Hn(o))},o.onerror=()=>{d(new Qe)},o.ontimeout=()=>{d(new ln)},o.send(e.body?e.body.toString():null)})}processHeaders(t){let e="",o=0,i="";if(t.getAllResponseHeaders().split(`\r
578
- `).forEach(r=>{let s=r.toLowerCase();s.startsWith("x-auth-token")?e=t.getResponseHeader("X-Auth-Token"):s.startsWith("x-session-lifetime")?o=parseInt(t.getResponseHeader("X-Session-Lifetime"),10):s.startsWith("x-session-retention")&&(i=t.getResponseHeader("X-Session-Retention"))}),e){let r=new RegExp("^https://"),s=!!this.api.match(r)&&!!window.location.href.match(r),l=i==="session"?void 0:new Date(new Date().getTime()+1e3*o);this.setAuthToken(e,{secure:s,expires:l})}}get(t){return this._fetch(t,{method:"GET"})}post(t,e){return this._fetch(t,{method:"POST",body:JSON.stringify(e)})}put(t,e){return this._fetch(t,{method:"PUT",body:JSON.stringify(e)})}patch(t,e){return this._fetch(t,{method:"PATCH",body:JSON.stringify(e)})}delete(t){return this._fetch(t,{method:"DELETE"})}getAuthToken(){let t="";switch(this.sessionTokenLocation){case"cookie":default:t=this.cookie.getAuthCookie();break;case"sessionStorage":t=this.sessionTokenStorage.getSessionToken()}return t}setAuthToken(t,e){switch(this.sessionTokenLocation){case"cookie":default:return this.cookie.setAuthCookie(t,e);case"sessionStorage":return this.sessionTokenStorage.setSessionToken(t)}}},Et=class{constructor(t,e){this.client=void 0,this.client=new It(t,e)}},Pt=class extends Et{async validate(){let t=await this.client.get("/sessions/validate");if(!t.ok)throw new Qe;return await t.json()}},Rn=class{constructor(t){this.storageKey=void 0,this.defaultState={expiration:0,lastCheck:0},this.storageKey=t}load(){let t=window.localStorage.getItem(this.storageKey);return t==null?this.defaultState:JSON.parse(t)}save(t){window.localStorage.setItem(this.storageKey,JSON.stringify(t||this.defaultState))}},qn=class{constructor(t,e){this.onActivityCallback=void 0,this.onInactivityCallback=void 0,this.handleFocus=()=>{this.onActivityCallback()},this.handleBlur=()=>{this.onInactivityCallback()},this.handleVisibilityChange=()=>{document.visibilityState==="visible"?this.onActivityCallback():this.onInactivityCallback()},this.hasFocus=()=>document.hasFocus(),this.onActivityCallback=t,this.onInactivityCallback=e,window.addEventListener("focus",this.handleFocus),window.addEventListener("blur",this.handleBlur),document.addEventListener("visibilitychange",this.handleVisibilityChange)}},Bn=class{constructor(t,e,o){this.intervalID=null,this.timeoutID=null,this.checkInterval=void 0,this.checkSession=void 0,this.onSessionExpired=void 0,this.checkInterval=t,this.checkSession=e,this.onSessionExpired=o}scheduleSessionExpiry(t){var e=this;this.stop(),this.timeoutID=setTimeout(async function(){e.stop(),e.onSessionExpired()},t)}start(t=0,e=0){var o=this;let i=this.calcTimeToNextCheck(t);this.sessionExpiresSoon(e)?this.scheduleSessionExpiry(i):this.timeoutID=setTimeout(async function(){let r=await o.checkSession();if(r.is_valid){if(o.sessionExpiresSoon(r.expiration))return void o.scheduleSessionExpiry(r.expiration-Date.now());o.intervalID=setInterval(async function(){r=await o.checkSession(),r.is_valid?o.sessionExpiresSoon(r.expiration)&&o.scheduleSessionExpiry(r.expiration-Date.now()):o.stop()},o.checkInterval)}else o.stop()},i)}stop(){this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null),this.intervalID&&(clearInterval(this.intervalID),this.intervalID=null)}isRunning(){return this.timeoutID!==null||this.intervalID!==null}sessionExpiresSoon(t){return t>0&&t-Date.now()<=this.checkInterval}calcTimeToNextCheck(t){let e=Date.now()-t;return this.checkInterval>=e?this.checkInterval-e%this.checkInterval:0}},Kn=class{constructor(t="hanko_session",e,o,i){this.channel=void 0,this.onSessionExpired=void 0,this.onSessionCreated=void 0,this.onLeadershipRequested=void 0,this.handleMessage=r=>{let s=r.data;switch(s.action){case"sessionExpired":this.onSessionExpired(s);break;case"sessionCreated":this.onSessionCreated(s);break;case"requestLeadership":this.onLeadershipRequested(s)}},this.onSessionExpired=e,this.onSessionCreated=o,this.onLeadershipRequested=i,this.channel=new BroadcastChannel(t),this.channel.onmessage=this.handleMessage}post(t){this.channel.postMessage(t)}},dn=class extends sn{constructor(t,e){super(),this.listener=new rn,this.checkInterval=3e4,this.client=void 0,this.sessionState=void 0,this.windowActivityManager=void 0,this.scheduler=void 0,this.sessionChannel=void 0,this.isLoggedIn=void 0,this.client=new Pt(t,e),e.sessionCheckInterval&&(this.checkInterval=e.sessionCheckInterval<3e3?3e3:e.sessionCheckInterval),this.sessionState=new Rn(`${e.cookieName}_session_state`),this.sessionChannel=new Kn(this.getSessionCheckChannelName(e.sessionTokenLocation,e.sessionCheckChannelName),()=>this.onChannelSessionExpired(),r=>this.onChannelSessionCreated(r),()=>this.onChannelLeadershipRequested()),this.scheduler=new Bn(this.checkInterval,()=>this.checkSession(),()=>this.onSessionExpired()),this.windowActivityManager=new qn(()=>this.startSessionCheck(),()=>this.scheduler.stop());let o=Date.now(),{expiration:i}=this.sessionState.load();this.isLoggedIn=o<i,this.initializeEventListeners(),this.startSessionCheck()}initializeEventListeners(){this.listener.onSessionCreated(t=>{let{claims:e}=t,o=Date.parse(e.expiration),i=Date.now();this.isLoggedIn=!0,this.sessionState.save({expiration:o,lastCheck:i}),this.sessionChannel.post({action:"sessionCreated",claims:e}),this.startSessionCheck()}),this.listener.onUserLoggedOut(()=>{this.isLoggedIn=!1,this.sessionChannel.post({action:"sessionExpired"}),this.sessionState.save(null),this.scheduler.stop()}),window.addEventListener("beforeunload",()=>this.scheduler.stop())}startSessionCheck(){if(!this.windowActivityManager.hasFocus()||(this.sessionChannel.post({action:"requestLeadership"}),this.scheduler.isRunning()))return;let{lastCheck:t,expiration:e}=this.sessionState.load();this.isLoggedIn&&this.scheduler.start(t,e)}async checkSession(){let t=Date.now(),{is_valid:e,claims:o,expiration_time:i}=await this.client.validate(),r=i?Date.parse(i):0;return!e&&this.isLoggedIn&&this.dispatchSessionExpiredEvent(),e?(this.isLoggedIn=!0,this.sessionState.save({lastCheck:t,expiration:r})):(this.isLoggedIn=!1,this.sessionState.save(null),this.sessionChannel.post({action:"sessionExpired"})),{is_valid:e,claims:o,expiration:r}}onSessionExpired(){this.isLoggedIn&&(this.isLoggedIn=!1,this.sessionState.save(null),this.sessionChannel.post({action:"sessionExpired"}),this.dispatchSessionExpiredEvent())}onChannelSessionExpired(){this.isLoggedIn&&(this.isLoggedIn=!1,this.dispatchSessionExpiredEvent())}onChannelSessionCreated(t){let{claims:e}=t,o=Date.now(),i=Date.parse(e.expiration)-o;this.isLoggedIn=!0,this.dispatchSessionCreatedEvent({claims:e,expirationSeconds:i})}onChannelLeadershipRequested(){this.windowActivityManager.hasFocus()||this.scheduler.stop()}getSessionCheckChannelName(t,e){if(t!=="sessionStorage")return e;let o=sessionStorage.getItem("sessionCheckChannelName");return o!=null&&o!==""||(o=`${e}-${Math.floor(100*Math.random())+1}`,sessionStorage.setItem("sessionCheckChannelName",o)),o}},st=class{static supported(){return!!(navigator.credentials&&navigator.credentials.create&&navigator.credentials.get&&window.PublicKeyCredential)}static async isPlatformAuthenticatorAvailable(){return!(!this.supported()||!window.PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable)&&window.PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable()}static async isSecurityKeySupported(){return window.PublicKeyCredential!==void 0&&window.PublicKeyCredential.isExternalCTAP2SecurityKeySupported?window.PublicKeyCredential.isExternalCTAP2SecurityKeySupported():this.supported()}static async isConditionalMediationAvailable(){return!(!window.PublicKeyCredential||!window.PublicKeyCredential.isConditionalMediationAvailable)&&window.PublicKeyCredential.isConditionalMediationAvailable()}};function na(n){let t="==".slice(0,(4-n.length%4)%4),e=n.replace(/-/g,"+").replace(/_/g,"/")+t,o=atob(e),i=new ArrayBuffer(o.length),r=new Uint8Array(i);for(let s=0;s<o.length;s++)r[s]=o.charCodeAt(s);return i}function oa(n){let t=new Uint8Array(n),e="";for(let o of t)e+=String.fromCharCode(o);return btoa(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}var ae="copy",Me="convert";function ut(n,t,e){if(t===ae)return e;if(t===Me)return n(e);if(t instanceof Array)return e.map(o=>ut(n,t[0],o));if(t instanceof Object){let o={};for(let[i,r]of Object.entries(t)){if(r.derive){let s=r.derive(e);s!==void 0&&(e[i]=s)}if(i in e)o[i]=e[i]!=null?ut(n,r.schema,e[i]):null;else if(r.required)throw new Error(`Missing key: ${i}`)}return o}}function $n(n,t){return{required:!0,schema:n,derive:t}}function de(n){return{required:!0,schema:n}}function _e(n){return{required:!1,schema:n}}var aa={type:de(ae),id:de(Me),transports:_e(ae)},ia={appid:_e(ae),appidExclude:_e(ae),credProps:_e(ae)},ra={appid:_e(ae),appidExclude:_e(ae),credProps:_e(ae)},ei={publicKey:de({rp:de(ae),user:de({id:de(Me),name:de(ae),displayName:de(ae)}),challenge:de(Me),pubKeyCredParams:de(ae),timeout:_e(ae),excludeCredentials:_e([aa]),authenticatorSelection:_e(ae),attestation:_e(ae),extensions:_e(ia)}),signal:_e(ae)},ti={type:de(ae),id:de(ae),rawId:de(Me),authenticatorAttachment:_e(ae),response:de({clientDataJSON:de(Me),attestationObject:de(Me),transports:$n(ae,n=>{var t;return((t=n.getTransports)==null?void 0:t.call(n))||[]})}),clientExtensionResults:$n(ra,n=>n.getClientExtensionResults())},ni={mediation:_e(ae),publicKey:de({challenge:de(Me),timeout:_e(ae),rpId:_e(ae),allowCredentials:_e([aa]),userVerification:_e(ae),extensions:_e(ia)}),signal:_e(ae)},oi={type:de(ae),id:de(ae),rawId:de(Me),authenticatorAttachment:_e(ae),response:de({clientDataJSON:de(Me),authenticatorData:de(Me),signature:de(Me),userHandle:de(Me)}),clientExtensionResults:$n(ra,n=>n.getClientExtensionResults())};async function Eo(n){let t=await navigator.credentials.get(function(e){return ut(na,ni,e)}(n));return function(e){return ut(oa,oi,e)}(t)}var lt=class n{constructor(){this.abortController=new AbortController}static getInstance(){return n.instance||(n.instance=new n),n.instance}createAbortSignal(){return this.abortController.abort(),this.abortController=new AbortController,this.abortController.signal}async getWebauthnCredential(t){return await Eo(Ne({},t,{signal:this.createAbortSignal()}))}async getConditionalWebauthnCredential(t){return await Eo({publicKey:t,mediation:"conditional",signal:this.createAbortSignal()})}async createWebauthnCredential(t){return await async function(e){return o=await navigator.credentials.create(function(i){return ut(na,ei,i)}(e)),ut(oa,ti,o);var o}(Ne({},t,{signal:this.createAbortSignal()}))}};async function Po(n,t,e,o="webauthn_credential_already_exists",i="Webauthn credential already exists"){try{let r=await t.createWebauthnCredential(e);return await n.actions.webauthn_verify_attestation_response.run({public_key:r})}catch(r){let s=await n.actions.back.run();return s.error={code:o,message:i},s}}lt.instance=null;var jo={preflight:async n=>await n.actions.register_client_capabilities.run({webauthn_available:st.supported(),webauthn_conditional_mediation_available:await st.isConditionalMediationAvailable(),webauthn_platform_authenticator_available:await st.isPlatformAuthenticatorAvailable()}),login_passkey:async n=>{let t=lt.getInstance();try{let e=await t.getWebauthnCredential(n.payload.request_options);return await n.actions.webauthn_verify_assertion_response.run({assertion_response:e})}catch(e){let o=await n.actions.back.run();return n.error&&(o.error=n.error),o}},onboarding_verify_passkey_attestation:async n=>Po(n,lt.getInstance(),n.payload.creation_options),webauthn_credential_verification:async n=>Po(n,lt.getInstance(),n.payload.creation_options),async thirdparty(n){let t=new URLSearchParams(window.location.search),e=t.get("hanko_token"),o=t.get("error"),i=r=>{r.forEach(l=>t.delete(l));let s=t.toString()?`?${t.toString()}`:"";history.replaceState(null,null,`${window.location.pathname}${s}`)};if((e==null?void 0:e.length)>0)return i(["hanko_token"]),await n.actions.exchange_token.run({token:e});if((o==null?void 0:o.length)>0){let r=o==="access_denied"?"third_party_access_denied":"technical_error",s=t.get("error_description");i(["error","error_description"]);let l=await n.actions.back.run(null,{dispatchAfterStateChangeEvent:!1});return l.error={code:r,message:s},l.dispatchAfterStateChangeEvent(),l}return n.isCached?await n.actions.back.run():(n.saveToLocalStorage(),window.location.assign(n.payload.redirect_url),n)},success:async n=>{let{claims:t}=n.payload,e=Date.parse(t.expiration)-Date.now();return n.removeFromLocalStorage(),n.hanko.relay.dispatchSessionCreatedEvent({claims:t,expirationSeconds:e}),n},account_deleted:async n=>(n.removeFromLocalStorage(),n.hanko.relay.dispatchUserDeletedEvent(),n)},To={login_init:async n=>{(async function(){let t=lt.getInstance();if(n.payload.request_options)try{let{publicKey:e}=n.payload.request_options,o=await t.getConditionalWebauthnCredential(e);await n.actions.webauthn_verify_assertion_response.run({assertion_response:o})}catch(e){return}})()}},ht=class n{constructor(t,e,o,i={}){if(this.name=void 0,this.flowName=void 0,this.error=void 0,this.payload=void 0,this.actions=void 0,this.csrfToken=void 0,this.status=void 0,this.previousAction=void 0,this.isCached=void 0,this.cacheKey=void 0,this.hanko=void 0,this.invokedAction=void 0,this.excludeAutoSteps=void 0,this.autoStep=void 0,this.passkeyAutofillActivation=void 0,this.flowName=e,this.name=o.name,this.error=o.error,this.payload=o.payload,this.csrfToken=o.csrf_token,this.status=o.status,this.hanko=t,this.actions=this.buildActionMap(o.actions),this.name in jo){let d=jo[this.name];this.autoStep=()=>d(this)}if(this.name in To){let d=To[this.name];this.passkeyAutofillActivation=()=>d(this)}let{dispatchAfterStateChangeEvent:r=!0,excludeAutoSteps:s=null,previousAction:l=null,isCached:u=!1,cacheKey:c="hanko-flow-state"}=i;this.excludeAutoSteps=s,this.previousAction=l,this.isCached=u,this.cacheKey=c,r&&this.dispatchAfterStateChangeEvent()}buildActionMap(t){let e={};return Object.keys(t).forEach(o=>{e[o]=new jt(t[o],this)}),new Proxy(e,{get:(o,i)=>{if(i in o)return o[i];let r=typeof i=="string"?i:i.toString();return jt.createDisabled(r,this)}})}dispatchAfterStateChangeEvent(){this.hanko.relay.dispatchAfterStateChangeEvent({state:this})}serialize(){return{flow_name:this.flowName,name:this.name,error:this.error,payload:this.payload,csrf_token:this.csrfToken,status:this.status,previous_action:this.previousAction,actions:Object.fromEntries(Object.entries(this.actions).map(([t,e])=>[t,{action:e.name,href:e.href,inputs:e.inputs,description:null}]))}}saveToLocalStorage(){localStorage.setItem(this.cacheKey,JSON.stringify(Ne({},this.serialize(),{is_cached:!0})))}removeFromLocalStorage(){localStorage.removeItem(this.cacheKey)}static async initializeFlowState(t,e,o,i={}){let r=new n(t,e,o,i);if(r.excludeAutoSteps!="all")for(;r&&r.autoStep&&((s=r.excludeAutoSteps)==null||!s.includes(r.name));){var s;let l=await r.autoStep();if(l.name==r.name)return l;r=l}return r}static readFromLocalStorage(t){let e=localStorage.getItem(t);if(e)try{return JSON.parse(e)}catch(o){return}}static async create(t,e,o={}){let{cacheKey:i="hanko-flow-state",loadFromCache:r=!0}=o;if(r){let l=n.readFromLocalStorage(i);if(l)return n.deserialize(t,l,Ne({},o,{cacheKey:i}))}let s=await n.fetchState(t,`/${e}`);return n.initializeFlowState(t,e,s,Ne({},o,{cacheKey:i}))}static async deserialize(t,e,o={}){return n.initializeFlowState(t,e.flow_name,e,Ne({},o,{previousAction:e.previous_action,isCached:e.is_cached}))}static async fetchState(t,e,o){try{return(await t.client.post(e,o)).json()}catch(i){return n.createErrorResponse(i)}}static createErrorResponse(t){return{actions:null,csrf_token:"",name:"error",payload:null,status:0,error:t}}},jt=class n{constructor(t,e,o=!0){this.enabled=void 0,this.href=void 0,this.name=void 0,this.inputs=void 0,this.parentState=void 0,this.enabled=o,this.href=t.href,this.name=t.action,this.inputs=t.inputs,this.parentState=e}static createDisabled(t,e){return new n({action:t,href:"",inputs:{},description:"Disabled action"},e,!1)}async run(t=null,e={}){let{name:o,hanko:i,flowName:r,csrfToken:s,invokedAction:l,excludeAutoSteps:u,cacheKey:c}=this.parentState,{dispatchAfterStateChangeEvent:d=!0}=e;if(!this.enabled)throw new Error(`Action '${this.name}' is not enabled in state '${o}'`);if(l)throw new Error(`An action '${l.name}' has already been invoked on state '${l.relatedStateName}'. No further actions can be run.`);this.parentState.invokedAction={name:this.name,relatedStateName:o},i.relay.dispatchBeforeStateChangeEvent({state:this.parentState});let m={input_data:Ne({},Object.keys(this.inputs).reduce((v,S)=>{let k=this.inputs[S];return k.value!==void 0&&(v[S]=k.value),v},{}),t),csrf_token:s},g=await ht.fetchState(i,this.href,m);return this.parentState.removeFromLocalStorage(),ht.initializeFlowState(i,r,g,{dispatchAfterStateChangeEvent:d,excludeAutoSteps:u,previousAction:l,cacheKey:c})}},un=class extends Et{async getCurrent(){let t=await this.client.get("/me");if(t.status===401)throw this.client.dispatcher.dispatchSessionExpiredEvent(),new At;if(!t.ok)throw new Qe;let e=t.json(),o=await this.client.get(`/users/${e.id}`);if(o.status===401)throw this.client.dispatcher.dispatchSessionExpiredEvent(),new At;if(!o.ok)throw new Qe;return o.json()}async logout(){let t=await this.client.post("/logout");if(this.client.sessionTokenStorage.removeSessionToken(),this.client.cookie.removeAuthCookie(),this.client.dispatcher.dispatchUserLoggedOutEvent(),t.status!==401&&!t.ok)throw new Qe}},hn=class extends rn{constructor(t,e){super(),this.session=void 0,this.user=void 0,this.cookie=void 0,this.client=void 0,this.relay=void 0;let o=Ne({timeout:13e3,cookieName:"hanko",localStorageKey:"hanko",sessionCheckInterval:3e4,sessionCheckChannelName:"hanko-session-check"},e);this.client=new It(t,o),this.session=new Pt(t,o),this.user=new un(t,o),this.relay=new dn(t,o),this.cookie=new cn(o)}setLang(t){this.client.lang=t}createState(t,e={}){return ht.create(this,t,e)}async getUser(){return this.user.getCurrent()}async validateSession(){return this.session.validate()}getSessionToken(){return this.cookie.getAuthCookie()}async logout(){return this.user.logout()}},ai=K(292),Ye=K.n(ai),ii=K(360),Xe=K.n(ii),ri=K(884),et=K.n(ri),si=K(88),tt=K.n(si),Gt=K(914),mt={};mt.setAttributes=et(),mt.insert=n=>{window._hankoStyle=n},mt.domAPI=Xe(),mt.insertStyleElement=tt(),Ye()(Gt.A,mt);var Tt=Gt.A&&Gt.A.locals?Gt.A.locals:void 0,li=function(n){function t(e){var o=Jo({},e);return delete o.ref,n(o,e.ref||null)}return t.$$typeof=qa,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(n.displayName||n.name)+")",t}((n,t)=>{let{lang:e,hanko:o,setHanko:i}=(0,f.useContext)(Ee),{setLang:r}=(0,f.useContext)(R.TranslateContext);return(0,f.useEffect)(()=>{r(e.replace(/[-]/,"")),i(s=>(s.setLang(e),s))},[o,e,i,r]),a("section",Object.assign({part:"container",className:Tt.container,ref:t},{children:n.children}))}),Vt=K(697),vt={};vt.setAttributes=et(),vt.insert=n=>{window._hankoStyle=n},vt.domAPI=Xe(),vt.insertStyleElement=tt(),Ye()(Vt.A,vt);var E=Vt.A&&Vt.A.locals?Vt.A.locals:void 0,ci=K(633),B=K.n(ci),di=({size:n,secondary:t,disabled:e})=>a("svg",Object.assign({id:"icon-apple",xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"20.5 16 15 19",className:B()(E.icon,t&&E.secondary,e&&E.disabled)},{children:a("path",{d:"M28.2226562,20.3846154 C29.0546875,20.3846154 30.0976562,19.8048315 30.71875,19.0317864 C31.28125,18.3312142 31.6914062,17.352829 31.6914062,16.3744437 C31.6914062,16.2415766 31.6796875,16.1087095 31.65625,16 C30.7304687,16.0362365 29.6171875,16.640178 28.9492187,17.4494596 C28.421875,18.06548 27.9414062,19.0317864 27.9414062,20.0222505 C27.9414062,20.1671964 27.9648438,20.3121424 27.9765625,20.3604577 C28.0351562,20.3725366 28.1289062,20.3846154 28.2226562,20.3846154 Z M25.2929688,35 C26.4296875,35 26.9335938,34.214876 28.3515625,34.214876 C29.7929688,34.214876 30.109375,34.9758423 31.375,34.9758423 C32.6171875,34.9758423 33.4492188,33.792117 34.234375,32.6325493 C35.1132812,31.3038779 35.4765625,29.9993643 35.5,29.9389701 C35.4179688,29.9148125 33.0390625,28.9122695 33.0390625,26.0979021 C33.0390625,23.6579784 34.9140625,22.5588048 35.0195312,22.474253 C33.7773438,20.6382708 31.890625,20.5899555 31.375,20.5899555 C29.9804688,20.5899555 28.84375,21.4596313 28.1289062,21.4596313 C27.3554688,21.4596313 26.3359375,20.6382708 25.1289062,20.6382708 C22.8320312,20.6382708 20.5,22.5950413 20.5,26.2911634 C20.5,28.5861411 21.3671875,31.013986 22.4335938,32.5842339 C23.3476562,33.9129053 24.1445312,35 25.2929688,35 Z"})})),ui=({secondary:n,size:t,fadeOut:e,disabled:o})=>a("svg",Object.assign({id:"icon-checkmark",xmlns:"http://www.w3.org/2000/svg",viewBox:"4 4 40 40",width:t,height:t,className:B()(E.checkmark,n&&E.secondary,e&&E.fadeOut,o&&E.disabled)},{children:a("path",{d:"M21.05 33.1 35.2 18.95l-2.3-2.25-11.85 11.85-6-6-2.25 2.25ZM24 44q-4.1 0-7.75-1.575-3.65-1.575-6.375-4.3-2.725-2.725-4.3-6.375Q4 28.1 4 24q0-4.15 1.575-7.8 1.575-3.65 4.3-6.35 2.725-2.7 6.375-4.275Q19.9 4 24 4q4.15 0 7.8 1.575 3.65 1.575 6.35 4.275 2.7 2.7 4.275 6.35Q44 19.85 44 24q0 4.1-1.575 7.75-1.575 3.65-4.275 6.375t-6.35 4.3Q28.15 44 24 44Zm0-3q7.1 0 12.05-4.975Q41 31.05 41 24q0-7.1-4.95-12.05Q31.1 7 24 7q-7.05 0-12.025 4.95Q7 16.9 7 24q0 7.05 4.975 12.025Q16.95 41 24 41Zm0-17Z"})})),hi=({size:n,secondary:t,disabled:e})=>a("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960",width:n,height:n,className:B()(E.icon,t&&E.secondary,e&&E.disabled)},{children:a("path",{d:"M360-240q-33 0-56.5-23.5T280-320v-480q0-33 23.5-56.5T360-880h360q33 0 56.5 23.5T800-800v480q0 33-23.5 56.5T720-240H360Zm0-80h360v-480H360v480ZM200-80q-33 0-56.5-23.5T120-160v-560h80v560h440v80H200Zm160-240v-480 480Z"})})),pi=({size:n,secondary:t,disabled:e})=>a("svg",Object.assign({id:"icon-custom-provider",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:n,height:n,className:B()(E.icon,t&&E.secondary,e&&E.disabled)},{children:[a("path",{d:"M0 0h24v24H0z",fill:"none"}),a("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z"})]})),fi=({size:n,secondary:t,disabled:e})=>a("svg",Object.assign({id:"icon-discord",fill:"#fff",xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 127.14 96.36",className:B()(E.icon,t&&E.secondary,e&&E.disabled)},{children:a("path",{d:"M107.7,8.07A105.15,105.15,0,0,0,81.47,0a72.06,72.06,0,0,0-3.36,6.83A97.68,97.68,0,0,0,49,6.83,72.37,72.37,0,0,0,45.64,0,105.89,105.89,0,0,0,19.39,8.09C2.79,32.65-1.71,56.6.54,80.21h0A105.73,105.73,0,0,0,32.71,96.36,77.7,77.7,0,0,0,39.6,85.25a68.42,68.42,0,0,1-10.85-5.18c.91-.66,1.8-1.34,2.66-2a75.57,75.57,0,0,0,64.32,0c.87.71,1.76,1.39,2.66,2a68.68,68.68,0,0,1-10.87,5.19,77,77,0,0,0,6.89,11.1A105.25,105.25,0,0,0,126.6,80.22h0C129.24,52.84,122.09,29.11,107.7,8.07ZM42.45,65.69C36.18,65.69,31,60,31,53s5-12.74,11.43-12.74S54,46,53.89,53,48.84,65.69,42.45,65.69Zm42.24,0C78.41,65.69,73.25,60,73.25,53s5-12.74,11.44-12.74S96.23,46,96.12,53,91.08,65.69,84.69,65.69Z"})})),mi=({size:n,secondary:t,disabled:e})=>a("svg",Object.assign({id:"icon-exclamation",xmlns:"http://www.w3.org/2000/svg",viewBox:"5 2 13 20",width:n,height:n,className:B()(E.exclamationMark,t&&E.secondary,e&&E.disabled)},{children:a("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"})})),vi=({size:n,secondary:t,disabled:e})=>a("svg",Object.assign({width:n,height:n,viewBox:"0 0 666.66668 666.66717",xmlns:"http://www.w3.org/2000/svg"},{children:[a("defs",Object.assign({id:"defs13"},{children:a("clipPath",Object.assign({clipPathUnits:"userSpaceOnUse",id:"clipPath25"},{children:a("path",{d:"M 0,700 H 700 V 0 H 0 Z",id:"path23"})}))})),a("g",Object.assign({id:"g17",transform:"matrix(1.3333333,0,0,-1.3333333,-133.33333,799.99999)"},{children:a("g",Object.assign({id:"g19"},{children:a("g",Object.assign({id:"g21",clipPath:"url(#clipPath25)"},{children:[a("g",Object.assign({id:"g27",transform:"translate(600,350)"},{children:a("path",{className:B()(E.facebookIcon,e?E.disabledOutline:E.outline),d:"m 0,0 c 0,138.071 -111.929,250 -250,250 -138.071,0 -250,-111.929 -250,-250 0,-117.245 80.715,-215.622 189.606,-242.638 v 166.242 h -51.552 V 0 h 51.552 v 32.919 c 0,85.092 38.508,124.532 122.048,124.532 15.838,0 43.167,-3.105 54.347,-6.211 V 81.986 c -5.901,0.621 -16.149,0.932 -28.882,0.932 -40.993,0 -56.832,-15.528 -56.832,-55.9 V 0 h 81.659 l -14.028,-76.396 h -67.631 V -248.169 C -95.927,-233.218 0,-127.818 0,0",id:"path29"})})),a("g",Object.assign({id:"g31",transform:"translate(447.9175,273.6036)"},{children:a("path",{className:B()(E.facebookIcon,e?E.disabledLetter:E.letter),d:"M 0,0 14.029,76.396 H -67.63 v 27.019 c 0,40.372 15.838,55.899 56.831,55.899 12.733,0 22.981,-0.31 28.882,-0.931 v 69.253 c -11.18,3.106 -38.509,6.212 -54.347,6.212 -83.539,0 -122.048,-39.441 -122.048,-124.533 V 76.396 h -51.552 V 0 h 51.552 v -166.242 c 19.343,-4.798 39.568,-7.362 60.394,-7.362 10.254,0 20.358,0.632 30.288,1.831 L -67.63,0 Z",id:"path33"})}))]}))}))}))]})),gi=({size:n,secondary:t,disabled:e})=>a("svg",Object.assign({id:"icon-github",xmlns:"http://www.w3.org/2000/svg",fill:"#fff",viewBox:"0 0 97.63 96",width:n,height:n,className:B()(E.icon,t&&E.secondary,e&&E.disabled)},{children:[a("path",{d:"M48.854 0C21.839 0 0 22 0 49.217c0 21.756 13.993 40.172 33.405 46.69 2.427.49 3.316-1.059 3.316-2.362 0-1.141-.08-5.052-.08-9.127-13.59 2.934-16.42-5.867-16.42-5.867-2.184-5.704-5.42-7.17-5.42-7.17-4.448-3.015.324-3.015.324-3.015 4.934.326 7.523 5.052 7.523 5.052 4.367 7.496 11.404 5.378 14.235 4.074.404-3.178 1.699-5.378 3.074-6.6-10.839-1.141-22.243-5.378-22.243-24.283 0-5.378 1.94-9.778 5.014-13.2-.485-1.222-2.184-6.275.486-13.038 0 0 4.125-1.304 13.426 5.052a46.97 46.97 0 0 1 12.214-1.63c4.125 0 8.33.571 12.213 1.63 9.302-6.356 13.427-5.052 13.427-5.052 2.67 6.763.97 11.816.485 13.038 3.155 3.422 5.015 7.822 5.015 13.2 0 18.905-11.404 23.06-22.324 24.283 1.78 1.548 3.316 4.481 3.316 9.126 0 6.6-.08 11.897-.08 13.526 0 1.304.89 2.853 3.316 2.364 19.412-6.52 33.405-24.935 33.405-46.691C97.707 22 75.788 0 48.854 0z"})," "]})),bi=({size:n,disabled:t})=>a("svg",Object.assign({id:"icon-google",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:n,height:n,className:E.googleIcon},{children:[a("path",{className:B()(E.googleIcon,t?E.disabled:E.blue),d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z"}),a("path",{className:B()(E.googleIcon,t?E.disabled:E.green),d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z"}),a("path",{className:B()(E.googleIcon,t?E.disabled:E.yellow),d:"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z"}),a("path",{className:B()(E.googleIcon,t?E.disabled:E.red),d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z"}),a("path",{d:"M1 1h22v22H1z",fill:"none"})]})),_i=({size:n,secondary:t,disabled:e})=>a("svg",Object.assign({id:"icon-linkedin",fill:"#fff",xmlns:"http://www.w3.org/2000/svg",width:n,viewBox:"0 0 24 24",height:n,className:B()(E.icon,t&&E.secondary,e&&E.disabled)},{children:a("path",{d:"M20.5 2h-17A1.5 1.5 0 002 3.5v17A1.5 1.5 0 003.5 22h17a1.5 1.5 0 001.5-1.5v-17A1.5 1.5 0 0020.5 2zM8 19H5v-9h3zM6.5 8.25A1.75 1.75 0 118.3 6.5a1.78 1.78 0 01-1.8 1.75zM19 19h-3v-4.74c0-1.42-.6-1.93-1.38-1.93A1.74 1.74 0 0013 14.19a.66.66 0 000 .14V19h-3v-9h2.9v1.3a3.11 3.11 0 012.7-1.4c1.55 0 3.36.86 3.36 3.66z"})})),yi=({size:n,secondary:t,disabled:e})=>a("svg",Object.assign({id:"icon-mail",xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 -960 960 960",className:B()(E.icon,t&&E.secondary,e&&E.disabled)},{children:a("path",{d:"M160-160q-33 0-56.5-23.5T80-240v-480q0-33 23.5-56.5T160-800h640q33 0 56.5 23.5T880-720v480q0 33-23.5 56.5T800-160H160Zm320-280L160-640v400h640v-400L480-440Zm0-80 320-200H160l320 200ZM160-640v-80 480-400Z"})})),ki=({size:n,disabled:t})=>a("svg",Object.assign({id:"icon-microsoft",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:n,height:n,className:E.microsoftIcon},{children:[a("rect",{className:B()(E.microsoftIcon,t?E.disabled:E.blue),x:"1",y:"1",width:"9",height:"9"}),a("rect",{className:B()(E.microsoftIcon,t?E.disabled:E.green),x:"1",y:"11",width:"9",height:"9"}),a("rect",{className:B()(E.microsoftIcon,t?E.disabled:E.yellow),x:"11",y:"1",width:"9",height:"9"}),a("rect",{className:B()(E.microsoftIcon,t?E.disabled:E.red),x:"11",y:"11",width:"9",height:"9"})]})),wi=({size:n,secondary:t,disabled:e})=>a("svg",Object.assign({id:"icon-passkey",xmlns:"http://www.w3.org/2000/svg",viewBox:"3 1.5 19.5 19",width:n,height:n,className:B()(E.icon,t&&E.secondary,e&&E.disabled)},{children:a("g",Object.assign({id:"icon-passkey-all"},{children:[a("circle",{id:"icon-passkey-head",cx:"10.5",cy:"6",r:"4.5"}),a("path",{id:"icon-passkey-key",d:"M22.5,10.5a3.5,3.5,0,1,0-5,3.15V19L19,20.5,21.5,18,20,16.5,21.5,15l-1.24-1.24A3.5,3.5,0,0,0,22.5,10.5Zm-3.5,0a1,1,0,1,1,1-1A1,1,0,0,1,19,10.5Z"}),a("path",{id:"icon-passkey-body",d:"M14.44,12.52A6,6,0,0,0,12,12H9a6,6,0,0,0-6,6v2H16V14.49A5.16,5.16,0,0,1,14.44,12.52Z"})]}))})),Si=({size:n,secondary:t,disabled:e})=>a("svg",Object.assign({id:"icon-password",xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 -960 960 960",className:B()(E.icon,t&&E.secondary,e&&E.disabled)},{children:a("path",{d:"M80-200v-80h800v80H80Zm46-242-52-30 34-60H40v-60h68l-34-58 52-30 34 58 34-58 52 30-34 58h68v60h-68l34 60-52 30-34-60-34 60Zm320 0-52-30 34-60h-68v-60h68l-34-58 52-30 34 58 34-58 52 30-34 58h68v60h-68l34 60-52 30-34-60-34 60Zm320 0-52-30 34-60h-68v-60h68l-34-58 52-30 34 58 34-58 52 30-34 58h68v60h-68l34 60-52 30-34-60-34 60Z"})})),xi=({size:n,secondary:t,disabled:e})=>a("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960",width:n,height:n,className:B()(E.icon,t&&E.secondary,e&&E.disabled)},{children:a("path",{d:"M80-680v-200h200v80H160v120H80Zm0 600v-200h80v120h120v80H80Zm600 0v-80h120v-120h80v200H680Zm120-600v-120H680v-80h200v200h-80ZM700-260h60v60h-60v-60Zm0-120h60v60h-60v-60Zm-60 60h60v60h-60v-60Zm-60 60h60v60h-60v-60Zm-60-60h60v60h-60v-60Zm120-120h60v60h-60v-60Zm-60 60h60v60h-60v-60Zm-60-60h60v60h-60v-60Zm240-320v240H520v-240h240ZM440-440v240H200v-240h240Zm0-320v240H200v-240h240Zm-60 500v-120H260v120h120Zm0-320v-120H260v120h120Zm320 0v-120H580v120h120Z"})})),Ci=({size:n,secondary:t,disabled:e})=>a("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960",width:n,height:n,className:B()(E.icon,t&&E.secondary,e&&E.disabled)},{children:a("path",{d:"M280-240q-100 0-170-70T40-480q0-100 70-170t170-70q66 0 121 33t87 87h432v240h-80v120H600v-120H488q-32 54-87 87t-121 33Zm0-80q66 0 106-40.5t48-79.5h246v120h80v-120h80v-80H434q-8-39-48-79.5T280-640q-66 0-113 47t-47 113q0 66 47 113t113 47Zm0-80q33 0 56.5-23.5T360-480q0-33-23.5-56.5T280-560q-33 0-56.5 23.5T200-480q0 33 23.5 56.5T280-400Zm0-80Z"})})),Oi=({size:n,disabled:t})=>a("svg",Object.assign({id:"icon-spinner",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:n,height:n,className:B()(E.loadingSpinner,t&&E.disabled)},{children:[a("path",{d:"M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,19a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z",opacity:".25"}),a("path",{d:"M10.72,19.9a8,8,0,0,1-6.5-9.79A7.77,7.77,0,0,1,10.4,4.16a8,8,0,0,1,9.49,6.52A1.54,1.54,0,0,0,21.38,12h.13a1.37,1.37,0,0,0,1.38-1.54,11,11,0,1,0-12.7,12.39A1.54,1.54,0,0,0,12,21.34h0A1.47,1.47,0,0,0,10.72,19.9Z"})]})),Lt=({name:n,secondary:t,size:e=18,fadeOut:o,disabled:i})=>a(Sn[n],{size:e,secondary:t,fadeOut:o,disabled:i}),Yn=({children:n,isLoading:t,isSuccess:e,fadeOut:o,secondary:i,hasIcon:r,maxWidth:s})=>a(w.Fragment,{children:a("div",t?Object.assign({className:B()(E.loadingSpinnerWrapper,E.centerContent,s&&E.maxWidth)},{children:a(Lt,{name:"spinner",secondary:i})}):e?Object.assign({className:B()(E.loadingSpinnerWrapper,E.centerContent,s&&E.maxWidth)},{children:a(Lt,{name:"checkmark",secondary:i,fadeOut:o})}):Object.assign({className:r?E.loadingSpinnerWrapperIcon:E.loadingSpinnerWrapper},{children:n}))}),Ai=()=>a(Yn,{isLoading:!0}),Oe=n=>{let[t,e]=(0,f.useState)(n);return(0,f.useEffect)(()=>{n&&e(n)},[n]),{flowState:t}},Zt=K(577),gt={};gt.setAttributes=et(),gt.insert=n=>{window._hankoStyle=n},gt.domAPI=Xe(),gt.insertStyleElement=tt(),Ye()(Zt.A,gt);var ke=Zt.A&&Zt.A.locals?Zt.A.locals:void 0,Ii=()=>{let{t:n}=(0,f.useContext)(R.TranslateContext);return a("span",Object.assign({className:B()(ke.lastUsed)},{children:n("labels.lastUsed")}))},sa=(n,t,e)=>{let{hanko:o,setUIState:i,isOwnFlow:r}=(0,f.useContext)(Ee);(0,f.useEffect)(()=>o.onBeforeStateChange(({state:s})=>{n&&r(s)&&(i(l=>Object.assign(Object.assign({},l),{isDisabled:!0,error:void 0})),t(s.invokedAction.name==n.name))}),[n,o,r,t,i]),(0,f.useEffect)(()=>o.onAfterStateChange(({state:s})=>{var l;n&&r(s)&&(e(((l=s.previousAction)===null||l===void 0?void 0:l.name)==n.name),t(!1))}),[o,e,t,n,r])},la=(0,w.createContext)({}),Y=({onSubmit:n,children:t,hidden:e=!1,maxWidth:o,flowAction:i})=>a(la.Provider,Object.assign({value:{flowAction:i}},{children:i&&i.enabled&&!e?a("form",Object.assign({onSubmit:n||(r=>{return s=void 0,l=void 0,c=function*(){return r.preventDefault(),yield i.run()},new((u=void 0)||(u=Promise))(function(d,m){function g(k){try{S(c.next(k))}catch(y){m(y)}}function v(k){try{S(c.throw(k))}catch(y){m(y)}}function S(k){var y;k.done?d(k.value):(y=k.value,y instanceof u?y:new u(function(j){j(y)})).then(g,v)}S((c=c.apply(s,l||[])).next())});var s,l,u,c}),className:ke.form},{children:a("ul",Object.assign({className:ke.ul},{children:(0,w.toChildArray)(t).map((r,s)=>a("li",Object.assign({part:"form-item",className:B()(ke.li,o?ke.maxWidth:null)},{children:r}),s))}))})):null})),X=n=>{var{title:t,children:e,secondary:o,dangerous:i,autofocus:r,showLastUsed:s,onClick:l,icon:u,showSuccessIcon:c}=n,d=function(L,W){var N={};for(var M in L)Object.prototype.hasOwnProperty.call(L,M)&&W.indexOf(M)<0&&(N[M]=L[M]);if(L!=null&&typeof Object.getOwnPropertySymbols=="function"){var ie=0;for(M=Object.getOwnPropertySymbols(L);ie<M.length;ie++)W.indexOf(M[ie])<0&&Object.prototype.propertyIsEnumerable.call(L,M[ie])&&(N[M[ie]]=L[M[ie]])}return N}(n,["title","children","secondary","dangerous","autofocus","showLastUsed","onClick","icon","showSuccessIcon"]);let m=(0,f.useRef)(null),{uiState:g}=(0,f.useContext)(Ee),[v,S]=(0,f.useState)(!1),[k,y]=(0,f.useState)(!1),{flowAction:j}=(0,f.useContext)(la);sa(j,S,y),(0,f.useEffect)(()=>{let{current:L}=m;L&&r&&L.focus()},[r]);let U=(0,f.useMemo)(()=>c&&(k||d.isSuccess),[k,d,c]),T=(0,f.useMemo)(()=>g.isDisabled||d.disabled,[d,g]);return a("button",Object.assign({part:i?"button dangerous-button":o?"button secondary-button":"button primary-button",title:t,ref:m,type:"submit",disabled:T,onClick:l,className:B()(ke.button,i?ke.dangerous:o?ke.secondary:ke.primary)},{children:a(Yn,Object.assign({isLoading:v,isSuccess:U,secondary:!0,hasIcon:!!u,maxWidth:!0},{children:[u?a(Lt,{name:u,secondary:o,disabled:T}):null,a("div",Object.assign({className:ke.caption},{children:[a("span",{children:e}),s?a(Ii,{}):null]}))]}))}))},Le=n=>{var t,e,o,i,r,{label:s}=n,l=function(v,S){var k={};for(var y in v)Object.prototype.hasOwnProperty.call(v,y)&&S.indexOf(y)<0&&(k[y]=v[y]);if(v!=null&&typeof Object.getOwnPropertySymbols=="function"){var j=0;for(y=Object.getOwnPropertySymbols(v);j<y.length;j++)S.indexOf(y[j])<0&&Object.prototype.propertyIsEnumerable.call(v,y[j])&&(k[y[j]]=v[y[j]])}return k}(n,["label"]);let u=(0,f.useRef)(null),{uiState:c}=(0,f.useContext)(Ee),{t:d}=(0,f.useContext)(R.TranslateContext),m=(0,f.useMemo)(()=>c.isDisabled||l.disabled,[l,c]);(0,f.useEffect)(()=>{let{current:v}=u;v&&l.autofocus&&(v.focus(),v.select())},[l.autofocus]);let g=(0,f.useMemo)(()=>{var v;return l.markOptional&&!(!((v=l.flowInput)===null||v===void 0)&&v.required)?`${l.placeholder} (${d("labels.optional")})`:l.placeholder},[l.markOptional,l.placeholder,l.flowInput,d]);return a("div",Object.assign({className:ke.inputWrapper},{children:a("input",Object.assign({part:"input text-input",required:(t=l.flowInput)===null||t===void 0?void 0:t.required,maxLength:(e=l.flowInput)===null||e===void 0?void 0:e.max_length,minLength:(o=l.flowInput)===null||o===void 0?void 0:o.min_length,hidden:(i=l.flowInput)===null||i===void 0?void 0:i.hidden},l,{ref:u,"aria-label":g,placeholder:g,className:B()(ke.input,!!(!((r=l.flowInput)===null||r===void 0)&&r.error)&&l.markError&&ke.error),disabled:m}))}))},Se=({children:n})=>a("section",Object.assign({className:Tt.content},{children:n})),Jt=K(111),bt={};bt.setAttributes=et(),bt.insert=n=>{window._hankoStyle=n},bt.domAPI=Xe(),bt.insertStyleElement=tt(),Ye()(Jt.A,bt);var Ot=Jt.A&&Jt.A.locals?Jt.A.locals:void 0,Xn=({children:n,hidden:t})=>t?null:a("section",Object.assign({part:"divider",className:Ot.divider},{children:[a("div",{part:"divider-line",className:Ot.line}),n?a("div",Object.assign({part:"divider-text",class:Ot.text},{children:n})):null,a("div",{part:"divider-line",className:Ot.line})]})),Qt=K(905),_t={};_t.setAttributes=et(),_t.insert=n=>{window._hankoStyle=n},_t.domAPI=Xe(),_t.insertStyleElement=tt(),Ye()(Qt.A,_t);var ca=Qt.A&&Qt.A.locals?Qt.A.locals:void 0,xe=({state:n,error:t,flowError:e})=>{var o,i;let{t:r}=(0,f.useContext)(R.TranslateContext),{uiState:s,setUIState:l}=(0,f.useContext)(Ee);return(0,f.useEffect)(()=>{var u,c;if(((u=n==null?void 0:n.error)===null||u===void 0?void 0:u.code)=="form_data_invalid_error")for(let d of Object.values(n==null?void 0:n.actions)){let m=!1;for(let g of Object.values(d==null?void 0:d.inputs))if(!((c=g.error)===null||c===void 0)&&c.code)return l(Object.assign(Object.assign({},s),{error:g.error})),void(m=!0);m||l(Object.assign(Object.assign({},s),{error:n.error}))}else n!=null&&n.error&&l(Object.assign(Object.assign({},s),{error:n==null?void 0:n.error}))},[n]),a("section",Object.assign({part:"error",className:ca.errorBox,hidden:!(!((o=s.error)===null||o===void 0)&&o.code)&&!(e!=null&&e.code)&&!t},{children:[a("span",{children:a(Lt,{name:"exclamation",size:15})}),a("span",Object.assign({id:"errorMessage",part:"error-text"},{children:r(t?`errors.${t.code}`:`flowErrors.${((i=s.error)===null||i===void 0?void 0:i.code)||(e==null?void 0:e.code)}`)}))]}))},Yt=K(619),yt={};yt.setAttributes=et(),yt.insert=n=>{window._hankoStyle=n},yt.domAPI=Xe(),yt.insertStyleElement=tt(),Ye()(Yt.A,yt);var pn=Yt.A&&Yt.A.locals?Yt.A.locals:void 0,le=({children:n})=>a("h1",Object.assign({part:"headline1",className:B()(pn.headline,pn.grade1)},{children:n})),Xt=K(995),kt={};kt.setAttributes=et(),kt.insert=n=>{window._hankoStyle=n},kt.domAPI=Xe(),kt.insertStyleElement=tt(),Ye()(Xt.A,kt);var Rt=Xt.A&&Xt.A.locals?Xt.A.locals:void 0,Gn=n=>{var{loadingSpinnerPosition:t,dangerous:e=!1,onClick:o,flowAction:i}=n,r=function(N,M){var ie={};for(var ne in N)Object.prototype.hasOwnProperty.call(N,ne)&&M.indexOf(ne)<0&&(ie[ne]=N[ne]);if(N!=null&&typeof Object.getOwnPropertySymbols=="function"){var ee=0;for(ne=Object.getOwnPropertySymbols(N);ee<ne.length;ee++)M.indexOf(ne[ee])<0&&Object.prototype.propertyIsEnumerable.call(N,ne[ee])&&(ie[ne[ee]]=N[ne[ee]])}return ie}(n,["loadingSpinnerPosition","dangerous","onClick","flowAction"]);let{t:s}=(0,f.useContext)(R.TranslateContext),{uiState:l}=(0,f.useContext)(Ee),[u,c]=(0,f.useState)(),[d,m]=(0,f.useState)(!1),[g,v]=(0,f.useState)(!1),S;o||(o=N=>{return M=void 0,ie=void 0,ee=function*(){return N.preventDefault(),yield i==null?void 0:i.run()},new((ne=void 0)||(ne=Promise))(function(q,ue){function Ce(re){try{Ie(ee.next(re))}catch(he){ue(he)}}function pe(re){try{Ie(ee.throw(re))}catch(he){ue(he)}}function Ie(re){var he;re.done?q(re.value):(he=re.value,he instanceof ne?he:new ne(function(P){P(he)})).then(Ce,pe)}Ie((ee=ee.apply(M,ie||[])).next())});var M,ie,ne,ee}),sa(i,m,v);let k=N=>{N.preventDefault(),c(!0)},y=N=>{N.preventDefault(),c(!1)},j=(0,f.useMemo)(()=>d||r.isLoading,[d,r]),U=(0,f.useMemo)(()=>g||r.isSuccess,[g,r]),T=(0,f.useMemo)(()=>i&&!i.enabled||r.hidden,[i,r]),L=(0,f.useCallback)(N=>{N.preventDefault(),c(!1),o(N)},[o]),W=(0,f.useCallback)(()=>T?null:a(w.Fragment,{children:[u?a(w.Fragment,{children:[a(Gn,Object.assign({onClick:L},{children:s("labels.yes")})),"\xA0/\xA0",a(Gn,Object.assign({onClick:y},{children:s("labels.no")})),"\xA0"]}):null,a("button",Object.assign({},r,{onClick:e?k:o,disabled:u||r.disabled||l.isDisabled,part:"link",className:B()(Rt.link,e?Rt.danger:null)},{children:r.children}))]}),[T,l,u,e,o,L,r,s]);return a(w.Fragment,{children:a("span",Object.assign({className:B()(Rt.linkWrapper,t==="right"?Rt.reverse:null),onMouseEnter:()=>{S&&window.clearTimeout(S)},onMouseLeave:()=>{S=window.setTimeout(()=>{c(!1)},1e3)}},{children:a(w.Fragment,u||!j&&!U?{children:W()}:{children:[a(Yn,{isLoading:j,isSuccess:U,secondary:r.secondary,fadeOut:!0}),W()]})}))})},$=Gn,Ae=({children:n,hidden:t=!1})=>t?null:a("section",Object.assign({className:Tt.footer},{children:n})),eo=n=>{var{label:t}=n,e=function(r,s){var l={};for(var u in r)Object.prototype.hasOwnProperty.call(r,u)&&s.indexOf(u)<0&&(l[u]=r[u]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function"){var c=0;for(u=Object.getOwnPropertySymbols(r);c<u.length;c++)s.indexOf(u[c])<0&&Object.prototype.propertyIsEnumerable.call(r,u[c])&&(l[u[c]]=r[u[c]])}return l}(n,["label"]);let{uiState:o}=(0,f.useContext)(Ee),i=(0,f.useMemo)(()=>o.isDisabled||e.disabled,[e,o]);return a("div",Object.assign({className:ke.inputWrapper},{children:a("label",Object.assign({className:ke.checkboxWrapper},{children:[a("input",Object.assign({part:"input checkbox-input",type:"checkbox","aria-label":t,className:ke.checkbox},e)),a("span",Object.assign({className:B()(ke.label,i?ke.disabled:null)},{children:t}))]}))}))},fn=()=>a("section",{className:Ot.spacer}),qt=function(n,t,e,o){return new(e||(e=Promise))(function(i,r){function s(c){try{u(o.next(c))}catch(d){r(d)}}function l(c){try{u(o.throw(c))}catch(d){r(d)}}function u(c){var d;c.done?i(c.value):(d=c.value,d instanceof e?d:new e(function(m){m(d)})).then(s,l)}u((o=o.apply(n,t||[])).next())})},Ei=n=>{var t;let{t:e}=(0,f.useContext)(R.TranslateContext),{init:o,initialComponentName:i,uiState:r,setUIState:s,hidePasskeyButtonOnLogin:l,lastLogin:u}=(0,f.useContext)(Ee),[c,d]=(0,f.useState)(!1),[m,g]=(0,f.useState)(null),[v,S]=(0,f.useState)(r.username||r.email),{flowState:k}=Oe(n.state),y=st.supported(),[j,U]=(0,f.useState)(void 0),[T,L]=(0,f.useState)(null),[W,N]=(0,f.useState)(!1),M=q=>{if(q.preventDefault(),q.target instanceof HTMLInputElement){let{value:ue}=q.target;S(ue),ie(ue)}},ie=q=>{let ue=()=>s(pe=>Object.assign(Object.assign({},pe),{email:q,username:null})),Ce=()=>s(pe=>Object.assign(Object.assign({},pe),{email:null,username:q}));switch(m){case"email":ue();break;case"username":Ce();break;case"identifier":q.match(/^[^@]+@[^@]+\.[^@]+$/)?ue():Ce()}},ne=(0,f.useMemo)(()=>!!k.actions.webauthn_generate_request_options.enabled||!!k.actions.thirdparty_oauth.enabled,[k.actions]),ee=k.actions.continue_with_login_identifier.inputs;return(0,f.useEffect)(()=>{let q=k.actions.continue_with_login_identifier.inputs;g(q!=null&&q.email?"email":q!=null&&q.username?"username":"identifier")},[k]),a(w.Fragment,{children:[a(Se,{children:[a(le,{children:e("headlines.signIn")}),a(xe,{state:k,error:j}),ee?a(w.Fragment,{children:[a(Y,Object.assign({flowAction:k.actions.continue_with_login_identifier,onSubmit:q=>qt(void 0,void 0,void 0,function*(){return q.preventDefault(),ie(v),k.actions.continue_with_login_identifier.run({[m]:v})}),maxWidth:!0},{children:[ee.email?a(Le,{type:"email",autoComplete:"username webauthn",autoCorrect:"off",flowInput:ee.email,onInput:M,value:v,placeholder:e("labels.email"),pattern:"^[^@]+@[^@]+\\.[^@]+$"}):ee.username?a(Le,{type:"text",autoComplete:"username webauthn",autoCorrect:"off",flowInput:ee.username,onInput:M,value:v,placeholder:e("labels.username")}):a(Le,{type:"text",autoComplete:"username webauthn",autoCorrect:"off",flowInput:ee.identifier,onInput:M,value:v,placeholder:e("labels.emailOrUsername")}),a(X,{children:e("labels.continue")})]})),a(Xn,Object.assign({hidden:!ne},{children:e("labels.or")}))]}):null,k.actions.webauthn_generate_request_options.enabled&&!l?a(Y,Object.assign({flowAction:k.actions.webauthn_generate_request_options},{children:a(X,Object.assign({secondary:!0,title:y?null:e("labels.webauthnUnsupported"),disabled:!y,icon:"passkey"},{children:e("labels.signInPasskey")}))})):null,k.actions.thirdparty_oauth.enabled?(t=k.actions.thirdparty_oauth.inputs.provider.allowed_values)===null||t===void 0?void 0:t.map(q=>a(Y,Object.assign({flowAction:k.actions.thirdparty_oauth,onSubmit:ue=>((Ce,pe)=>qt(void 0,void 0,void 0,function*(){Ce.preventDefault(),L(pe);let Ie=yield k.actions.thirdparty_oauth.run({provider:pe,redirect_to:window.location.toString()});return Ie.error&&L(null),Ie}))(ue,q.value)},{children:a(X,Object.assign({isLoading:q.value==T,secondary:!0,icon:q.value.startsWith("custom_")?"customProvider":q.value,showLastUsed:(u==null?void 0:u.login_method)=="third_party"&&(u==null?void 0:u.third_party_provider)==q.value},{children:e("labels.signInWith",{provider:q.name})}))}),q.value)):null,k.actions.remember_me.enabled&&a(w.Fragment,{children:[a(fn,{}),a(eo,{required:!1,type:"checkbox",label:e("labels.staySignedIn"),checked:W,onChange:q=>qt(void 0,void 0,void 0,function*(){return N(ue=>!ue),k.actions.remember_me.run({remember_me:!W})})})]})]}),a(Ae,Object.assign({hidden:i!=="auth"},{children:[a("span",{hidden:!0}),a($,Object.assign({onClick:q=>qt(void 0,void 0,void 0,function*(){q.preventDefault(),d(!0),o("registration")}),loadingSpinnerPosition:"left",isLoading:c},{children:e("labels.dontHaveAnAccount")}))]}))]})},Pi=n=>{var{index:t,focus:e,digit:o=""}=n,i=function(c,d){var m={};for(var g in c)Object.prototype.hasOwnProperty.call(c,g)&&d.indexOf(g)<0&&(m[g]=c[g]);if(c!=null&&typeof Object.getOwnPropertySymbols=="function"){var v=0;for(g=Object.getOwnPropertySymbols(c);v<g.length;v++)d.indexOf(g[v])<0&&Object.prototype.propertyIsEnumerable.call(c,g[v])&&(m[g[v]]=c[g[v]])}return m}(n,["index","focus","digit"]);let r=(0,f.useRef)(null),{uiState:s}=(0,f.useContext)(Ee),l=()=>{let{current:c}=r;c&&(c.focus(),c.select())},u=(0,f.useMemo)(()=>s.isDisabled||i.disabled,[i,s]);return(0,f.useEffect)(()=>{t===0&&l()},[t,i.disabled]),(0,f.useMemo)(()=>{e&&l()},[e]),a("div",Object.assign({className:ke.passcodeDigitWrapper},{children:a("input",Object.assign({},i,{part:"input passcode-input","aria-label":`${i.name}-digit-${t+1}`,name:i.name+t.toString(10),type:"text",inputMode:"numeric",maxLength:1,ref:r,value:o.charAt(0),required:!0,className:ke.input,disabled:u}))}))},to=({passcodeDigits:n=[],numberOfInputs:t=6,onInput:e,disabled:o=!1})=>{let[i,r]=(0,f.useState)(0),s=()=>n.slice(),l=()=>{i<t-1&&r(i+1)},u=()=>{i>0&&r(i-1)},c=v=>{let S=s();S[i]=v.charAt(0),e(S)},d=v=>{if(v.preventDefault(),o)return;let S=v.clipboardData.getData("text/plain").slice(0,t-i).split(""),k=s(),y=i;for(let j=0;j<t;++j)j>=i&&S.length>0&&(k[j]=S.shift(),y++);r(y),e(k)},m=v=>{v.key==="Backspace"?(v.preventDefault(),c(""),u()):v.key==="Delete"?(v.preventDefault(),c("")):v.key==="ArrowLeft"?(v.preventDefault(),u()):v.key==="ArrowRight"?(v.preventDefault(),l()):v.key!==" "&&v.key!=="Spacebar"&&v.key!=="Space"||v.preventDefault()},g=v=>{v.target instanceof HTMLInputElement&&c(v.target.value),l()};return(0,f.useEffect)(()=>{n.length===0&&r(0)},[n]),a("div",Object.assign({className:ke.passcodeInputWrapper},{children:Array.from(Array(t)).map((v,S)=>a(Pi,{name:"passcode",index:S,focus:i===S,digit:n[S],onKeyDown:m,onInput:g,onPaste:d,onFocus:()=>(k=>{r(k)})(S),disabled:o},S))}))},en=K(489),wt={};wt.setAttributes=et(),wt.insert=n=>{window._hankoStyle=n},wt.domAPI=Xe(),wt.insertStyleElement=tt(),Ye()(en.A,wt);var ji=en.A&&en.A.locals?en.A.locals:void 0,H=({children:n,hidden:t})=>t?null:a("p",Object.assign({part:"paragraph",className:ji.paragraph},{children:n})),Lo=function(n,t,e,o){return new(e||(e=Promise))(function(i,r){function s(c){try{u(o.next(c))}catch(d){r(d)}}function l(c){try{u(o.throw(c))}catch(d){r(d)}}function u(c){var d;c.done?i(c.value):(d=c.value,d instanceof e?d:new e(function(m){m(d)})).then(s,l)}u((o=o.apply(n,t||[])).next())})},Ti=n=>{let{t}=(0,f.useContext)(R.TranslateContext),{flowState:e}=Oe(n.state),{uiState:o,setUIState:i}=(0,f.useContext)(Ee),[r,s]=(0,f.useState)(),[l,u]=(0,f.useState)(e.payload.resend_after),[c,d]=(0,f.useState)([]),m=(0,f.useMemo)(()=>{var v;return((v=e.error)===null||v===void 0?void 0:v.code)==="passcode_max_attempts_reached"},[e]),g=(0,f.useCallback)(v=>Lo(void 0,void 0,void 0,function*(){return yield e.actions.verify_passcode.run({code:v})}),[e]);return(0,f.useEffect)(()=>{let v=r>0&&setInterval(()=>s(r-1),1e3);return()=>clearInterval(v)},[r]),(0,f.useEffect)(()=>{let v=l>0&&setInterval(()=>{u(l-1)},1e3);return()=>clearInterval(v)},[l]),(0,f.useEffect)(()=>{var v;l==0&&((v=e.error)===null||v===void 0?void 0:v.code)=="rate_limit_exceeded"&&i(S=>Object.assign(Object.assign({},S),{error:null}))},[l]),(0,f.useEffect)(()=>{d([]),e.payload.resend_after>=0&&u(e.payload.resend_after)},[e]),a(w.Fragment,{children:[a(Se,{children:[a(le,{children:t("headlines.loginPasscode")}),a(xe,{state:e}),a(H,{children:o.email?t("texts.enterPasscode",{emailAddress:o.email}):t("texts.enterPasscodeNoEmail")}),a(Y,Object.assign({flowAction:e.actions.verify_passcode,onSubmit:v=>Lo(void 0,void 0,void 0,function*(){return v.preventDefault(),g(c.join(""))})},{children:[a(to,{onInput:v=>{if(d(v),v.filter(S=>S!=="").length===6)return g(v.join(""))},passcodeDigits:c,numberOfInputs:6,disabled:r<=0||m}),a(X,Object.assign({disabled:r<=0||m},{children:t("labels.continue")}))]}))]}),a(Ae,{children:[a($,Object.assign({flowAction:e.actions.back,loadingSpinnerPosition:"right"},{children:t("labels.back")})),a($,Object.assign({disabled:l>0,flowAction:e.actions.resend_passcode,loadingSpinnerPosition:"left"},{children:l>0?t("labels.passcodeResendAfter",{passcodeResendAfter:l}):t("labels.sendNewPasscode")}))]})]})},Li=n=>{let{t}=(0,f.useContext)(R.TranslateContext),{flowState:e}=Oe(n.state);return a(w.Fragment,{children:[a(Se,{children:[a(le,{children:t("headlines.registerAuthenticator")}),a(xe,{state:e}),a(H,{children:t("texts.setupPasskey")}),a(Y,Object.assign({flowAction:e.actions.webauthn_generate_creation_options},{children:a(X,Object.assign({autofocus:!0,icon:"passkey"},{children:t("labels.registerAuthenticator")}))}))]}),a(Ae,Object.assign({hidden:!e.actions.skip.enabled&&!e.actions.back.enabled},{children:[a($,Object.assign({loadingSpinnerPosition:"right",flowAction:e.actions.back},{children:t("labels.back")})),a($,Object.assign({loadingSpinnerPosition:"left",flowAction:e.actions.skip},{children:t("labels.skip")}))]}))]})},Do=function(n,t,e,o){return new(e||(e=Promise))(function(i,r){function s(c){try{u(o.next(c))}catch(d){r(d)}}function l(c){try{u(o.throw(c))}catch(d){r(d)}}function u(c){var d;c.done?i(c.value):(d=c.value,d instanceof e?d:new e(function(m){m(d)})).then(s,l)}u((o=o.apply(n,t||[])).next())})},Di=n=>{let{t}=(0,f.useContext)(R.TranslateContext),{flowState:e}=Oe(n.state),[o,i]=(0,f.useState)(),[r,s]=(0,f.useState)(),l=(0,f.useMemo)(()=>a($,Object.assign({flowAction:e.actions.continue_to_passcode_confirmation_recovery,loadingSpinnerPosition:"left"},{children:t("labels.forgotYourPassword")})),[e,t]),u=(0,f.useMemo)(()=>a($,Object.assign({flowAction:e.actions.continue_to_login_method_chooser,loadingSpinnerPosition:"left"},{children:"Choose another method"})),[e]);return(0,f.useEffect)(()=>{let c=r>0&&setInterval(()=>s(r-1),1e3);return()=>clearInterval(c)},[r]),a(w.Fragment,{children:[a(Se,{children:[a(le,{children:t("headlines.loginPassword")}),a(xe,{state:e}),a(Y,Object.assign({flowAction:e.actions.password_login,onSubmit:c=>Do(void 0,void 0,void 0,function*(){return c.preventDefault(),e.actions.password_login.run({password:o})})},{children:[a(Le,{type:"password",flowInput:e.actions.password_login.inputs.password,autocomplete:"current-password",placeholder:t("labels.password"),onInput:c=>Do(void 0,void 0,void 0,function*(){c.target instanceof HTMLInputElement&&i(c.target.value)}),autofocus:!0}),a(X,Object.assign({disabled:r>0},{children:r>0?t("labels.passwordRetryAfter",{passwordRetryAfter:r}):t("labels.signIn")}))]})),e.actions.continue_to_login_method_chooser.enabled?l:null]}),a(Ae,{children:[a($,Object.assign({flowAction:e.actions.back,loadingSpinnerPosition:"right"},{children:t("labels.back")})),e.actions.continue_to_login_method_chooser.enabled?u:l]})]})},Mo=function(n,t,e,o){return new(e||(e=Promise))(function(i,r){function s(c){try{u(o.next(c))}catch(d){r(d)}}function l(c){try{u(o.throw(c))}catch(d){r(d)}}function u(c){var d;c.done?i(c.value):(d=c.value,d instanceof e?d:new e(function(m){m(d)})).then(s,l)}u((o=o.apply(n,t||[])).next())})},Mi=n=>{let{t}=(0,f.useContext)(R.TranslateContext),{flowState:e}=Oe(n.state),[o,i]=(0,f.useState)();return a(Se,{children:[a(le,{children:t("headlines.registerPassword")}),a(xe,{state:e}),a(H,{children:t("texts.passwordFormatHint",{minLength:e.actions.password_recovery.inputs.new_password.min_length,maxLength:72})}),a(Y,Object.assign({flowAction:e.actions.password_recovery,onSubmit:r=>Mo(void 0,void 0,void 0,function*(){return r.preventDefault(),e.actions.password_recovery.run({new_password:o})})},{children:[a(Le,{type:"password",autocomplete:"new-password",flowInput:e.actions.password_recovery.inputs.new_password,placeholder:t("labels.newPassword"),onInput:r=>Mo(void 0,void 0,void 0,function*(){r.target instanceof HTMLInputElement&&i(r.target.value)}),autofocus:!0}),a(X,{children:t("labels.continue")})]}))]})},Ui=n=>{let{t}=(0,f.useContext)(R.TranslateContext),{flowState:e}=Oe(n.state);return a(w.Fragment,{children:[a(Se,{children:[a(le,{children:t("headlines.selectLoginMethod")}),a(xe,{flowError:e==null?void 0:e.error}),a(H,{children:t("texts.howDoYouWantToLogin")}),a(Y,Object.assign({flowAction:e.actions.continue_to_passcode_confirmation},{children:a(X,Object.assign({secondary:!0,icon:"mail"},{children:t("labels.passcode")}))})),a(Y,Object.assign({flowAction:e.actions.continue_to_password_login},{children:a(X,Object.assign({secondary:!0,icon:"password"},{children:t("labels.password")}))})),a(Y,Object.assign({flowAction:e.actions.webauthn_generate_request_options},{children:a(X,Object.assign({secondary:!0,icon:"passkey"},{children:t("labels.passkey")}))}))]}),a(Ae,{children:a($,Object.assign({flowAction:e.actions.back,loadingSpinnerPosition:"right"},{children:t("labels.back")}))})]})},Bt=function(n,t,e,o){return new(e||(e=Promise))(function(i,r){function s(c){try{u(o.next(c))}catch(d){r(d)}}function l(c){try{u(o.throw(c))}catch(d){r(d)}}function u(c){var d;c.done?i(c.value):(d=c.value,d instanceof e?d:new e(function(m){m(d)})).then(s,l)}u((o=o.apply(n,t||[])).next())})},Ni=n=>{var t;let{t:e}=(0,f.useContext)(R.TranslateContext),{init:o,uiState:i,setUIState:r,initialComponentName:s}=(0,f.useContext)(Ee),{flowState:l}=Oe(n.state),u=l.actions.register_login_identifier.inputs,c=!(!(u!=null&&u.email)||!(u!=null&&u.username)),[d,m]=(0,f.useState)(void 0),[g,v]=(0,f.useState)(null),[S,k]=(0,f.useState)(!1),[y,j]=(0,f.useState)(!1),U=(0,f.useMemo)(()=>!!l.actions.thirdparty_oauth.enabled,[l.actions]);return a(w.Fragment,{children:[a(Se,{children:[a(le,{children:e("headlines.signUp")}),a(xe,{state:l,error:d}),u?a(w.Fragment,{children:[a(Y,Object.assign({flowAction:l.actions.register_login_identifier,onSubmit:T=>Bt(void 0,void 0,void 0,function*(){return T.preventDefault(),yield l.actions.register_login_identifier.run({email:i.email,username:i.username})}),maxWidth:!0},{children:[u.username?a(Le,{markOptional:c,markError:c,type:"text",autoComplete:"username",autoCorrect:"off",flowInput:u.username,onInput:T=>{if(T.preventDefault(),T.target instanceof HTMLInputElement){let{value:L}=T.target;r(W=>Object.assign(Object.assign({},W),{username:L}))}},value:i.username,placeholder:e("labels.username")}):null,u.email?a(Le,{markOptional:c,markError:c,type:"email",autoComplete:"email",autoCorrect:"off",flowInput:u.email,onInput:T=>{if(T.preventDefault(),T.target instanceof HTMLInputElement){let{value:L}=T.target;r(W=>Object.assign(Object.assign({},W),{email:L}))}},value:i.email,placeholder:e("labels.email"),pattern:"^.*[^0-9]+$"}):null,a(X,Object.assign({autofocus:!0},{children:e("labels.continue")}))]})),a(Xn,Object.assign({hidden:!U},{children:e("labels.or")}))]}):null,l.actions.thirdparty_oauth.enabled?(t=l.actions.thirdparty_oauth.inputs.provider.allowed_values)===null||t===void 0?void 0:t.map(T=>a(Y,Object.assign({flowAction:l.actions.thirdparty_oauth,onSubmit:L=>((W,N)=>Bt(void 0,void 0,void 0,function*(){W.preventDefault(),v(N);let M=yield l.actions.thirdparty_oauth.run({provider:N,redirect_to:window.location.toString()},{dispatchAfterStateChangeEvent:!1});v(null),M.dispatchAfterStateChangeEvent()}))(L,T.value)},{children:a(X,Object.assign({isLoading:T.value==g,secondary:!0,icon:T.value.startsWith("custom_")?"customProvider":T.value},{children:e("labels.signInWith",{provider:T.name})}))}),T.value)):null,l.actions.remember_me.enabled&&a(w.Fragment,{children:[a(fn,{}),a(eo,{required:!1,type:"checkbox",label:e("labels.staySignedIn"),checked:S,onChange:T=>Bt(void 0,void 0,void 0,function*(){T.preventDefault();let L=yield l.actions.remember_me.run({remember_me:!S},{dispatchAfterStateChangeEvent:!1});k(W=>!W),L.dispatchAfterStateChangeEvent()})})]})]}),a(Ae,Object.assign({hidden:s!=="auth"},{children:[a("span",{hidden:!0}),a($,Object.assign({onClick:T=>Bt(void 0,void 0,void 0,function*(){T.preventDefault(),j(!0),o("login")}),loadingSpinnerPosition:"left",isLoading:y},{children:e("labels.alreadyHaveAnAccount")}))]}))]})},Uo=function(n,t,e,o){return new(e||(e=Promise))(function(i,r){function s(c){try{u(o.next(c))}catch(d){r(d)}}function l(c){try{u(o.throw(c))}catch(d){r(d)}}function u(c){var d;c.done?i(c.value):(d=c.value,d instanceof e?d:new e(function(m){m(d)})).then(s,l)}u((o=o.apply(n,t||[])).next())})},zi=n=>{let{t}=(0,f.useContext)(R.TranslateContext),{flowState:e}=Oe(n.state),[o,i]=(0,f.useState)();return a(w.Fragment,{children:[a(Se,{children:[a(le,{children:t("headlines.registerPassword")}),a(xe,{state:e}),a(H,{children:t("texts.passwordFormatHint",{minLength:e.actions.register_password.inputs.new_password.min_length,maxLength:72})}),a(Y,Object.assign({flowAction:e.actions.register_password,onSubmit:r=>Uo(void 0,void 0,void 0,function*(){return r.preventDefault(),e.actions.register_password.run({new_password:o})})},{children:[a(Le,{type:"password",autocomplete:"new-password",flowInput:e.actions.register_password.inputs.new_password,placeholder:t("labels.newPassword"),onInput:r=>Uo(void 0,void 0,void 0,function*(){r.target instanceof HTMLInputElement&&i(r.target.value)}),autofocus:!0}),a(X,{children:t("labels.continue")})]}))]}),a(Ae,Object.assign({hidden:!e.actions.back.enabled&&!e.actions.skip.enabled},{children:[a($,Object.assign({loadingSpinnerPosition:"right",flowAction:e.actions.back},{children:t("labels.back")})),a($,Object.assign({loadingSpinnerPosition:"left",flowAction:e.actions.skip},{children:t("labels.skip")}))]}))]})},tn=K(21),St={};St.setAttributes=et(),St.insert=n=>{window._hankoStyle=n},St.domAPI=Xe(),St.insertStyleElement=tt(),Ye()(tn.A,St);var qe=tn.A&&tn.A.locals?tn.A.locals:void 0,mn=function({name:n,columnSelector:t,contentSelector:e,data:o=[],checkedItemID:i,setCheckedItemID:r,dropdown:s=!1}){let l=(0,f.useCallback)(d=>`${n}-${d}`,[n]),u=(0,f.useCallback)(d=>l(d)===i,[i,l]),c=d=>{if(!(d.target instanceof HTMLInputElement))return;let m=parseInt(d.target.value,10),g=l(m);r(g===i?null:g)};return a("div",Object.assign({className:qe.accordion},{children:o.map((d,m)=>a("div",Object.assign({className:qe.accordionItem},{children:[a("input",{type:"radio",className:qe.accordionInput,id:`${n}-${m}`,name:n,onClick:c,value:m,checked:u(m)}),a("label",Object.assign({className:B()(qe.label,s&&qe.dropdown),for:`${n}-${m}`},{children:a("span",Object.assign({className:qe.labelText},{children:t(d,m)}))})),a("div",Object.assign({className:B()(qe.accordionContent,s&&qe.dropdownContent)},{children:e(d,m)}))]}),m))}))},Pe=({children:n})=>a("h2",Object.assign({part:"headline2",className:B()(pn.headline,pn.grade2)},{children:n})),wn=function(n,t,e,o){return new(e||(e=Promise))(function(i,r){function s(c){try{u(o.next(c))}catch(d){r(d)}}function l(c){try{u(o.throw(c))}catch(d){r(d)}}function u(c){var d;c.done?i(c.value):(d=c.value,d instanceof e?d:new e(function(m){m(d)})).then(s,l)}u((o=o.apply(n,t||[])).next())})},Wi=({checkedItemID:n,setCheckedItemID:t,flowState:e,onState:o})=>{let{t:i}=(0,f.useContext)(R.TranslateContext),r=(0,f.useMemo)(()=>!1,[]);return a(mn,{name:"email-edit-dropdown",columnSelector:s=>{let l=a("span",Object.assign({className:qe.description},{children:s.is_verified?s.is_primary?a(w.Fragment,{children:[" -"," ",i("labels.primaryEmail")]}):null:a(w.Fragment,{children:[" -"," ",i("labels.unverifiedEmail")]})}));return s.is_primary?a(w.Fragment,{children:[a("b",{children:s.address}),l]}):a(w.Fragment,{children:[s.address,l]})},data:e.payload.user.emails,contentSelector:s=>{var l,u;return a(w.Fragment,{children:[s.is_primary?a(w.Fragment,{children:a(H,{children:[a(Pe,{children:i("headlines.isPrimaryEmail")}),i("texts.isPrimaryEmail")]})}):a(w.Fragment,{children:a(H,{children:[a(Pe,{children:i("headlines.setPrimaryEmail")}),i("texts.setPrimaryEmail"),a("br",{}),a($,Object.assign({flowAction:e.actions.email_set_primary,onClick:c=>((d,m)=>wn(void 0,void 0,void 0,function*(){d.preventDefault();let g=yield e.actions.email_set_primary.run({email_id:m},{dispatchAfterStateChangeEvent:!1});return o(g)}))(c,s.id),loadingSpinnerPosition:"right"},{children:i("labels.setAsPrimaryEmail")}))]})}),s.is_verified?a(w.Fragment,{children:a(H,{children:[a(Pe,{children:i("headlines.emailVerified")}),i("texts.emailVerified")]})}):a(w.Fragment,{children:a(H,{children:[a(Pe,{children:i("headlines.emailUnverified")}),i("texts.emailUnverified"),a("br",{}),a($,Object.assign({flowAction:e.actions.email_verify,onClick:c=>((d,m)=>wn(void 0,void 0,void 0,function*(){d.preventDefault();let g=yield e.actions.email_verify.run({email_id:m},{dispatchAfterStateChangeEvent:!1});return o(g)}))(c,s.id),loadingSpinnerPosition:"right"},{children:i("labels.verify")}))]})}),!((l=e.actions.email_delete.inputs.email_id.allowed_values)===null||l===void 0)&&l.map(c=>c.value).includes(s.id)?a(w.Fragment,{children:a(H,{children:[a(Pe,{children:i("headlines.emailDelete")}),i("texts.emailDelete"),a("br",{}),a($,Object.assign({dangerous:!0,flowAction:e.actions.email_delete,onClick:c=>((d,m)=>wn(void 0,void 0,void 0,function*(){d.preventDefault();let g=yield e.actions.email_delete.run({email_id:m},{dispatchAfterStateChangeEvent:!1});return o(g)}))(c,s.id),disabled:r,loadingSpinnerPosition:"right"},{children:i("labels.delete")}))]})}):null,((u=s.identities)===null||u===void 0?void 0:u.length)>0?a(w.Fragment,{children:a(H,{children:[a(Pe,{children:i("headlines.connectedAccounts")}),s.identities.map(c=>c.provider).join(", ")]})}):null]})},checkedItemID:n,setCheckedItemID:t})},Fi=({onCredentialNameSubmit:n,oldName:t,onBack:e,credential:o,credentialType:i,flowState:r})=>{let{t:s}=(0,f.useContext)(R.TranslateContext),[l,u]=(0,f.useState)(t);return a(w.Fragment,{children:[a(Se,{children:[a(le,{children:s(i==="security-key"?"headlines.renameSecurityKey":"headlines.renamePasskey")}),a(xe,{flowError:null}),a(H,{children:s(i==="security-key"?"texts.renameSecurityKey":"texts.renamePasskey")}),a(Y,Object.assign({flowAction:r.actions.webauthn_credential_rename,onSubmit:c=>n(c,o.id,l)},{children:[a(Le,{type:"text",name:i,value:l,minLength:3,maxLength:32,required:!0,placeholder:s(i==="security-key"?"labels.newSecurityKeyName":"labels.newPasskeyName"),onInput:c=>{return d=void 0,m=void 0,v=function*(){c.target instanceof HTMLInputElement&&u(c.target.value)},new((g=void 0)||(g=Promise))(function(S,k){function y(T){try{U(v.next(T))}catch(L){k(L)}}function j(T){try{U(v.throw(T))}catch(L){k(L)}}function U(T){var L;T.done?S(T.value):(L=T.value,L instanceof g?L:new g(function(W){W(L)})).then(y,j)}U((v=v.apply(d,m||[])).next())});var d,m,g,v},autofocus:!0}),a(X,{children:s("labels.save")})]}))]}),a(Ae,{children:a($,Object.assign({onClick:e,loadingSpinnerPosition:"right"},{children:s("labels.back")}))})]})},No=({credentials:n=[],checkedItemID:t,setCheckedItemID:e,onBack:o,onCredentialNameSubmit:i,allowCredentialDeletion:r,credentialType:s,onCredentialDelete:l,flowState:u})=>{let{t:c}=(0,f.useContext)(R.TranslateContext),{setPage:d}=(0,f.useContext)(Ee),m=v=>{if(v.name)return v.name;let S=v.public_key.replace(/[\W_]/g,"");return`${s==="security-key"?"SecurityKey":"Passkey"}-${S.substring(S.length-7,S.length)}`},g=v=>new Date(v).toLocaleString();return a(mn,{name:s==="security-key"?"security-key-edit-dropdown":"passkey-edit-dropdown",columnSelector:v=>m(v),data:n,contentSelector:v=>a(w.Fragment,{children:[a(H,{children:[a(Pe,{children:c(s==="security-key"?"headlines.renameSecurityKey":"headlines.renamePasskey")}),c(s==="security-key"?"texts.renameSecurityKey":"texts.renamePasskey"),a("br",{}),a($,Object.assign({onClick:S=>((k,y,j)=>{k.preventDefault(),d(a(Fi,{oldName:m(y),credential:y,credentialType:j,onBack:o,onCredentialNameSubmit:i,flowState:u}))})(S,v,s),loadingSpinnerPosition:"right"},{children:c("labels.rename")}))]}),a(H,Object.assign({hidden:!r},{children:[a(Pe,{children:c(s==="security-key"?"headlines.deleteSecurityKey":"headlines.deletePasskey")}),c(s==="security-key"?"texts.deleteSecurityKey":"texts.deletePasskey"),a("br",{}),a($,Object.assign({dangerous:!0,flowAction:u.actions.webauthn_credential_delete,onClick:S=>l(S,v.id),loadingSpinnerPosition:"right"},{children:c("labels.delete")}))]})),a(H,{children:[a(Pe,{children:c("headlines.lastUsedAt")}),v.last_used_at?g(v.last_used_at):"-"]}),a(H,{children:[a(Pe,{children:c("headlines.createdAt")}),g(v.created_at)]})]}),checkedItemID:t,setCheckedItemID:e})},Dt=({name:n,title:t,children:e,checkedItemID:o,setCheckedItemID:i})=>a(mn,{dropdown:!0,name:n,columnSelector:()=>t,contentSelector:()=>a(w.Fragment,{children:e}),setCheckedItemID:i,checkedItemID:o,data:[{}]}),no=({flowError:n})=>{let{t}=(0,f.useContext)(R.TranslateContext);return a(w.Fragment,{children:n?a("div",Object.assign({className:ca.errorMessage},{children:t(`flowErrors.${n==null?void 0:n.code}`)})):null})},Hi=({checkedItemID:n,setCheckedItemID:t,flowState:e,onState:o})=>{var i;let{t:r}=(0,f.useContext)(R.TranslateContext),{setUIState:s}=(0,f.useContext)(Ee),[l,u]=(0,f.useState)();return a(Dt,Object.assign({name:"email-create-dropdown",title:r("labels.addEmail"),checkedItemID:n,setCheckedItemID:t},{children:[a(no,{flowError:(i=e.actions.email_create.inputs.email)===null||i===void 0?void 0:i.error}),a(Y,Object.assign({flowAction:e.actions.email_create,onSubmit:c=>((d,m)=>{return g=void 0,v=void 0,k=function*(){d.preventDefault(),s(j=>Object.assign(Object.assign({},j),{email:m}));let y=yield e.actions.email_create.run({email:m},{dispatchAfterStateChangeEvent:!1});return o(y)},new((S=void 0)||(S=Promise))(function(y,j){function U(W){try{L(k.next(W))}catch(N){j(N)}}function T(W){try{L(k.throw(W))}catch(N){j(N)}}function L(W){var N;W.done?y(W.value):(N=W.value,N instanceof S?N:new S(function(M){M(N)})).then(U,T)}L((k=k.apply(g,v||[])).next())});var g,v,S,k})(c,l).then(()=>u(""))},{children:[a(Le,{markError:!0,type:"email",placeholder:r("labels.newEmailAddress"),onInput:c=>{c.preventDefault(),c.target instanceof HTMLInputElement&&u(c.target.value)},value:l,flowInput:e.actions.email_create.inputs.email}),a(X,{children:r("labels.save")})]}))]}))},zo=function(n,t,e,o){return new(e||(e=Promise))(function(i,r){function s(c){try{u(o.next(c))}catch(d){r(d)}}function l(c){try{u(o.throw(c))}catch(d){r(d)}}function u(c){var d;c.done?i(c.value):(d=c.value,d instanceof e?d:new e(function(m){m(d)})).then(s,l)}u((o=o.apply(n,t||[])).next())})},Ri=({checkedItemID:n,setCheckedItemID:t,onState:e,flowState:o})=>{var i,r,s;let{t:l}=(0,f.useContext)(R.TranslateContext),[u,c]=(0,f.useState)(""),d=o.actions.password_create.enabled?o.actions.password_create:o.actions.password_update;return a(Dt,Object.assign({name:"password-edit-dropdown",title:l(o.actions.password_create.enabled?"labels.setPassword":"labels.changePassword"),checkedItemID:n,setCheckedItemID:t},{children:[a(H,{children:l("texts.passwordFormatHint",{minLength:(i=d.inputs.password.min_length)===null||i===void 0?void 0:i.toString(10),maxLength:(r=d.inputs.password.max_length)===null||r===void 0?void 0:r.toString(10)})}),a(no,{flowError:(s=o.actions.password_create.inputs.password)===null||s===void 0?void 0:s.error}),a(Y,Object.assign({flowAction:d,onSubmit:m=>((g,v)=>zo(void 0,void 0,void 0,function*(){g.preventDefault();let S=yield d.run({password:v},{dispatchAfterStateChangeEvent:!1});return e(S)}))(m,u).then(()=>c(""))},{children:[a(Le,{markError:!0,autoComplete:"new-password",placeholder:l("labels.newPassword"),type:"password",onInput:m=>{m.preventDefault(),m.target instanceof HTMLInputElement&&c(m.target.value)},value:u,flowInput:d.inputs.password}),a(X,{children:l("labels.save")})]})),a($,Object.assign({dangerous:!0,flowAction:o.actions.password_delete,onClick:m=>(g=>zo(void 0,void 0,void 0,function*(){g.preventDefault();let v=yield o.actions.password_delete.run(null,{dispatchAfterStateChangeEvent:!1});return e(v)}))(m).then(()=>c("")),loadingSpinnerPosition:"right"},{children:l("labels.delete")}))]}))},Wo=({checkedItemID:n,setCheckedItemID:t,credentialType:e,flowState:o,onState:i})=>{let{t:r}=(0,f.useContext)(R.TranslateContext),s=st.supported(),l=e=="passkey"?o.actions.webauthn_credential_create:o.actions.security_key_create;return a(Dt,Object.assign({name:e==="security-key"?"security-key-create-dropdown":"passkey-create-dropdown",title:r(e==="security-key"?"labels.createSecurityKey":"labels.createPasskey"),checkedItemID:n,setCheckedItemID:t},{children:[a(H,{children:r(e==="security-key"?"texts.securityKeySetUp":"texts.setupPasskey")}),a(Y,Object.assign({onSubmit:u=>{return c=void 0,d=void 0,g=function*(){u.preventDefault();let v=yield l.run(null,{dispatchAfterStateChangeEvent:!1});return i(v)},new((m=void 0)||(m=Promise))(function(v,S){function k(U){try{j(g.next(U))}catch(T){S(T)}}function y(U){try{j(g.throw(U))}catch(T){S(T)}}function j(U){var T;U.done?v(U.value):(T=U.value,T instanceof m?T:new m(function(L){L(T)})).then(k,y)}j((g=g.apply(c,d||[])).next())});var c,d,m,g},flowAction:l},{children:a(X,Object.assign({title:s?null:r("labels.webauthnUnsupported")},{children:r(e==="security-key"?"labels.createSecurityKey":"labels.createPasskey")}))}))]}))},Fo=function(n,t,e,o){return new(e||(e=Promise))(function(i,r){function s(c){try{u(o.next(c))}catch(d){r(d)}}function l(c){try{u(o.throw(c))}catch(d){r(d)}}function u(c){var d;c.done?i(c.value):(d=c.value,d instanceof e?d:new e(function(m){m(d)})).then(s,l)}u((o=o.apply(n,t||[])).next())})},qi=({checkedItemID:n,setCheckedItemID:t,flowState:e,onState:o})=>{var i,r;let{t:s}=(0,f.useContext)(R.TranslateContext),[l,u]=(0,f.useState)();return a(Dt,Object.assign({name:"username-edit-dropdown",title:s(e.payload.user.username?"labels.changeUsername":"labels.setUsername"),checkedItemID:n,setCheckedItemID:t},{children:[a(no,{flowError:e.payload.user.username?(i=e.actions.username_update.inputs.username)===null||i===void 0?void 0:i.error:(r=e.actions.username_create.inputs.username)===null||r===void 0?void 0:r.error}),a(Y,Object.assign({flowAction:e.payload.user.username?e.actions.username_update:e.actions.username_create,onSubmit:c=>Fo(void 0,void 0,void 0,function*(){c.preventDefault();let d=e.payload.user.username?e.actions.username_update:e.actions.username_create,m=yield d.run({username:l},{dispatchAfterStateChangeEvent:!1});return o(m).then(()=>u(""))})},{children:[a(Le,{markError:!0,placeholder:s("labels.username"),type:"text",onInput:c=>{c.preventDefault(),c.target instanceof HTMLInputElement&&u(c.target.value)},value:l,flowInput:e.payload.user.username?e.actions.username_update.inputs.username:e.actions.username_create.inputs.username}),a(X,{children:s("labels.save")})]})),a($,Object.assign({flowAction:e.actions.username_delete,onClick:c=>Fo(void 0,void 0,void 0,function*(){c.preventDefault();let d=yield e.actions.username_delete.run(null,{dispatchAfterStateChangeEvent:!1});return o(d).then(()=>u(""))}),dangerous:!0,loadingSpinnerPosition:"right"},{children:s("labels.delete")}))]}))},Bi=({state:n,onBack:t})=>{let{t:e}=(0,f.useContext)(R.TranslateContext);return a(w.Fragment,{children:[a(Se,{children:[a(le,{children:e("headlines.deleteAccount")}),a(xe,{flowError:null}),a(H,{children:e("texts.deleteAccount")}),a(Y,Object.assign({flowAction:n.actions.account_delete},{children:[a(eo,{required:!0,type:"checkbox",label:e("labels.deleteAccount")}),a(X,{children:e("labels.delete")})]}))]}),a(Ae,{children:a($,Object.assign({onClick:t},{children:e("labels.back")}))})]})},Ki=({checkedItemID:n,setCheckedItemID:t,flowState:e,onState:o})=>{let{t:i}=(0,f.useContext)(R.TranslateContext),r=s=>new Date(s).toLocaleString();return a(mn,{name:"session-edit-dropdown",columnSelector:s=>{let l=a("b",{children:s.user_agent?s.user_agent:s.id}),u=s.current?a("span",Object.assign({className:qe.description},{children:a(w.Fragment,{children:[" -"," ",i("labels.currentSession")]})})):null;return a(w.Fragment,{children:[l,u]})},data:e.payload.sessions,contentSelector:s=>{var l,u,c;return a(w.Fragment,{children:[a(H,Object.assign({hidden:!s.ip_address},{children:[a(Pe,{children:i("headlines.ipAddress")}),s.ip_address]})),a(H,{children:[a(Pe,{children:i("headlines.lastUsed")}),r(s.last_used)]}),a(H,{children:[a(Pe,{children:i("headlines.createdAt")}),r(s.created_at)]}),!((c=(u=(l=e.actions.session_delete.inputs.session_id)===null||l===void 0?void 0:l.allowed_values)===null||u===void 0?void 0:u.map(d=>d.value))===null||c===void 0)&&c.includes(s.id)?a(H,{children:[a(Pe,{children:i("headlines.revokeSession")}),a($,Object.assign({dangerous:!0,onClick:d=>((m,g)=>{return v=void 0,S=void 0,y=function*(){m.preventDefault();let j=yield e.actions.session_delete.run({session_id:g},{dispatchAfterStateChangeEvent:!1});return o(j)},new((k=void 0)||(k=Promise))(function(j,U){function T(N){try{W(y.next(N))}catch(M){U(M)}}function L(N){try{W(y.throw(N))}catch(M){U(M)}}function W(N){var M;N.done?j(N.value):(M=N.value,M instanceof k?M:new k(function(ie){ie(M)})).then(T,L)}W((y=y.apply(v,S||[])).next())});var v,S,k,y})(d,s.id),loadingSpinnerPosition:"right"},{children:i("labels.revoke")}))]}):null]})},checkedItemID:n,setCheckedItemID:t})},Ho=function(n,t,e,o){return new(e||(e=Promise))(function(i,r){function s(c){try{u(o.next(c))}catch(d){r(d)}}function l(c){try{u(o.throw(c))}catch(d){r(d)}}function u(c){var d;c.done?i(c.value):(d=c.value,d instanceof e?d:new e(function(m){m(d)})).then(s,l)}u((o=o.apply(n,t||[])).next())})},$i=({checkedItemID:n,setCheckedItemID:t,flowState:e,onState:o})=>{var i,r,s,l;let{t:u}=(0,f.useContext)(R.TranslateContext),c=a("span",Object.assign({className:qe.description},{children:!((i=e.payload.user.mfa_config)===null||i===void 0)&&i.auth_app_set_up?a(w.Fragment,{children:[" -"," ",u("labels.configured")]}):null})),d=a(w.Fragment,{children:[u("labels.authenticatorAppManage")," ",c]});return a(Dt,Object.assign({name:"authenticator-app-manage-dropdown",title:d,checkedItemID:n,setCheckedItemID:t},{children:[a(Pe,{children:u(!((r=e.payload.user.mfa_config)===null||r===void 0)&&r.auth_app_set_up?"headlines.authenticatorAppAlreadySetUp":"headlines.authenticatorAppNotSetUp")}),a(H,{children:[u(!((s=e.payload.user.mfa_config)===null||s===void 0)&&s.auth_app_set_up?"texts.authenticatorAppAlreadySetUp":"texts.authenticatorAppNotSetUp"),a("br",{}),!((l=e.payload.user.mfa_config)===null||l===void 0)&&l.auth_app_set_up?a($,Object.assign({flowAction:e.actions.otp_secret_delete,onClick:m=>Ho(void 0,void 0,void 0,function*(){m.preventDefault();let g=yield e.actions.otp_secret_delete.run(null,{dispatchAfterStateChangeEvent:!1});return o(g)}),loadingSpinnerPosition:"right",dangerous:!0},{children:u("labels.delete")})):a($,Object.assign({flowAction:e.actions.continue_to_otp_secret_creation,onClick:m=>Ho(void 0,void 0,void 0,function*(){m.preventDefault();let g=yield e.actions.continue_to_otp_secret_creation.run(null,{dispatchAfterStateChangeEvent:!1});return o(g)}),loadingSpinnerPosition:"right"},{children:u("labels.authenticatorAppAdd")}))]})]}))},Kt=function(n,t,e,o){return new(e||(e=Promise))(function(i,r){function s(c){try{u(o.next(c))}catch(d){r(d)}}function l(c){try{u(o.throw(c))}catch(d){r(d)}}function u(c){var d;c.done?i(c.value):(d=c.value,d instanceof e?d:new e(function(m){m(d)})).then(s,l)}u((o=o.apply(n,t||[])).next())})},da=n=>{var t,e,o,i,r,s,l;let{t:u}=(0,f.useContext)(R.TranslateContext),{setPage:c}=(0,f.useContext)(Ee),{flowState:d}=Oe(n.state),[m,g]=(0,f.useState)(""),v=y=>Kt(void 0,void 0,void 0,function*(){y!=null&&y.error||(g(null),yield new Promise(j=>setTimeout(j,360))),y.dispatchAfterStateChangeEvent()}),S=(y,j,U)=>Kt(void 0,void 0,void 0,function*(){y.preventDefault();let T=yield d.actions.webauthn_credential_rename.run({passkey_id:j,passkey_name:U},{dispatchAfterStateChangeEvent:!1});return v(T)}),k=y=>(y.preventDefault(),c(a(da,{state:d,enablePasskeys:n.enablePasskeys})),Promise.resolve());return a(Se,{children:[a(xe,{state:((t=d==null?void 0:d.error)===null||t===void 0?void 0:t.code)!=="form_data_invalid_error"?d:null}),d.actions.username_create.enabled||d.actions.username_update.enabled||d.actions.username_delete.enabled?a(w.Fragment,{children:[a(le,{children:u("labels.username")}),d.payload.user.username?a(H,{children:a("b",{children:d.payload.user.username.username})}):null,a(H,{children:d.actions.username_create.enabled||d.actions.username_update.enabled?a(qi,{onState:v,flowState:d,checkedItemID:m,setCheckedItemID:g}):null})]}):null,!((o=(e=d.payload)===null||e===void 0?void 0:e.user)===null||o===void 0)&&o.emails||d.actions.email_create.enabled?a(w.Fragment,{children:[a(le,{children:u("headlines.profileEmails")}),a(H,{children:[a(Wi,{flowState:d,onState:v,checkedItemID:m,setCheckedItemID:g}),d.actions.email_create.enabled?a(Hi,{flowState:d,onState:v,checkedItemID:m,setCheckedItemID:g}):null]})]}):null,d.actions.password_create.enabled||d.actions.password_update.enabled?a(w.Fragment,{children:[a(le,{children:u("headlines.profilePassword")}),a(H,{children:a(Ri,{flowState:d,onState:v,checkedItemID:m,setCheckedItemID:g})})]}):null,n.enablePasskeys&&(!((r=(i=d.payload)===null||i===void 0?void 0:i.user)===null||r===void 0)&&r.passkeys||d.actions.webauthn_credential_create.enabled)?a(w.Fragment,{children:[a(le,{children:u("headlines.profilePasskeys")}),a(H,{children:[a(No,{flowState:d,onBack:k,onCredentialNameSubmit:S,onCredentialDelete:(y,j)=>Kt(void 0,void 0,void 0,function*(){y.preventDefault();let U=yield d.actions.webauthn_credential_delete.run({passkey_id:j},{dispatchAfterStateChangeEvent:!1});return v(U)}),credentials:d.payload.user.passkeys,checkedItemID:m,setCheckedItemID:g,allowCredentialDeletion:!!d.actions.webauthn_credential_delete.enabled,credentialType:"passkey"}),d.actions.webauthn_credential_create.enabled?a(Wo,{flowState:d,onState:v,credentialType:"passkey",checkedItemID:m,setCheckedItemID:g}):null]})]}):null,!((s=d.payload.user.mfa_config)===null||s===void 0)&&s.security_keys_enabled?a(w.Fragment,{children:[a(le,{children:u("headlines.securityKeys")}),a(H,{children:[a(No,{onBack:k,flowState:d,onCredentialNameSubmit:S,onCredentialDelete:(y,j)=>Kt(void 0,void 0,void 0,function*(){y.preventDefault();let U=yield d.actions.security_key_delete.run({security_key_id:j},{dispatchAfterStateChangeEvent:!1});return v(U)}),credentials:d.payload.user.security_keys,checkedItemID:m,setCheckedItemID:g,allowCredentialDeletion:!!d.actions.security_key_delete.enabled,credentialType:"security-key"}),d.actions.security_key_create.enabled?a(Wo,{flowState:d,onState:v,credentialType:"security-key",checkedItemID:m,setCheckedItemID:g}):null]})]}):null,!((l=d.payload.user.mfa_config)===null||l===void 0)&&l.totp_enabled?a(w.Fragment,{children:[a(le,{children:u("headlines.authenticatorApp")}),a(H,{children:a($i,{onState:v,flowState:d,checkedItemID:m,setCheckedItemID:g})})]}):null,d.payload.sessions?a(w.Fragment,{children:[a(le,{children:u("headlines.profileSessions")}),a(H,{children:a(Ki,{flowState:d,onState:v,checkedItemID:m,setCheckedItemID:g})})]}):null,d.actions.account_delete.enabled?a(w.Fragment,{children:[a(fn,{}),a(H,{children:a(Xn,{})}),a(H,{children:a(Y,Object.assign({onSubmit:y=>(y.preventDefault(),c(a(Bi,{onBack:k,state:d})),Promise.resolve()),flowAction:d.actions.account_delete},{children:a(X,Object.assign({dangerous:!0},{children:u("headlines.deleteAccount")}))}))})]}):null]})},Gi=da,Ro=({state:n,error:t})=>{let{t:e}=(0,f.useContext)(R.TranslateContext),{init:o,componentName:i}=(0,f.useContext)(Ee),[r,s]=(0,f.useState)(!1),l=(0,f.useCallback)(()=>o(i),[i,o]),{flowState:u}=Oe(n);return(0,f.useEffect)(()=>(addEventListener("hankoAuthSuccess",l),()=>{removeEventListener("hankoAuthSuccess",l)}),[l]),a(Se,{children:[a(le,{children:e("headlines.error")}),a(xe,{state:u,error:t}),a(Y,Object.assign({onSubmit:c=>{c.preventDefault(),s(!0),l()}},{children:a(X,Object.assign({isLoading:r},{children:e("labels.continue")}))}))]})},qo=function(n,t,e,o){return new(e||(e=Promise))(function(i,r){function s(c){try{u(o.next(c))}catch(d){r(d)}}function l(c){try{u(o.throw(c))}catch(d){r(d)}}function u(c){var d;c.done?i(c.value):(d=c.value,d instanceof e?d:new e(function(m){m(d)})).then(s,l)}u((o=o.apply(n,t||[])).next())})},Vi=n=>{let{t}=(0,f.useContext)(R.TranslateContext),{flowState:e}=Oe(n.state),[o,i]=(0,f.useState)();return a(w.Fragment,{children:[a(Se,{children:[a(le,{children:t("headlines.createEmail")}),a(xe,{state:e}),a(Y,Object.assign({onSubmit:r=>qo(void 0,void 0,void 0,function*(){return r.preventDefault(),e.actions.email_address_set.run({email:o})}),flowAction:e.actions.email_address_set},{children:[a(Le,{type:"email",autoComplete:"email",autoCorrect:"off",flowInput:e.actions.email_address_set.inputs.email,onInput:r=>qo(void 0,void 0,void 0,function*(){r.target instanceof HTMLInputElement&&i(r.target.value)}),placeholder:t("labels.email"),pattern:"^.*[^0-9]+$",value:o}),a(X,{children:t("labels.continue")})]}))]}),a(Ae,Object.assign({hidden:!e.actions.skip.enabled},{children:[a("span",{hidden:!0}),a($,Object.assign({flowAction:e.actions.skip,loadingSpinnerPosition:"left"},{children:t("labels.skip")}))]}))]})},Bo=function(n,t,e,o){return new(e||(e=Promise))(function(i,r){function s(c){try{u(o.next(c))}catch(d){r(d)}}function l(c){try{u(o.throw(c))}catch(d){r(d)}}function u(c){var d;c.done?i(c.value):(d=c.value,d instanceof e?d:new e(function(m){m(d)})).then(s,l)}u((o=o.apply(n,t||[])).next())})},Zi=n=>{let{t}=(0,f.useContext)(R.TranslateContext),{flowState:e}=Oe(n.state),[o,i]=(0,f.useState)();return a(w.Fragment,{children:[a(Se,{children:[a(le,{children:t("headlines.createUsername")}),a(xe,{state:e}),a(Y,Object.assign({flowAction:e.actions.username_create,onSubmit:r=>Bo(void 0,void 0,void 0,function*(){return r.preventDefault(),e.actions.username_create.run({username:o})})},{children:[a(Le,{type:"text",autoComplete:"username",autoCorrect:"off",flowInput:e.actions.username_create.inputs.username,onInput:r=>Bo(void 0,void 0,void 0,function*(){r.target instanceof HTMLInputElement&&i(r.target.value)}),value:o,placeholder:t("labels.username")}),a(X,{children:t("labels.continue")})]}))]}),a(Ae,Object.assign({hidden:!e.actions.skip.enabled},{children:[a("span",{hidden:!0}),a($,Object.assign({flowAction:e.actions.skip,loadingSpinnerPosition:"left"},{children:t("labels.skip")}))]}))]})},Ji=n=>{let{t}=(0,f.useContext)(R.TranslateContext),{flowState:e}=Oe(n.state);return a(w.Fragment,{children:[a(Se,{children:[a(le,{children:t("headlines.setupLoginMethod")}),a(xe,{flowError:e==null?void 0:e.error}),a(H,{children:t("texts.selectLoginMethodForFutureLogins")}),a(Y,Object.assign({flowAction:e.actions.continue_to_passkey_registration},{children:a(X,Object.assign({secondary:!0,icon:"passkey"},{children:t("labels.passkey")}))})),a(Y,Object.assign({flowAction:e.actions.continue_to_password_registration},{children:a(X,Object.assign({secondary:!0,icon:"password"},{children:t("labels.password")}))}))]}),a(Ae,Object.assign({hidden:!e.actions.back.enabled&&!e.actions.skip.enabled},{children:[a($,Object.assign({loadingSpinnerPosition:"right",flowAction:e.actions.back},{children:t("labels.back")})),a($,Object.assign({loadingSpinnerPosition:"left",flowAction:e.actions.skip},{children:t("labels.skip")}))]}))]})},Ko=function(n,t,e,o){return new(e||(e=Promise))(function(i,r){function s(c){try{u(o.next(c))}catch(d){r(d)}}function l(c){try{u(o.throw(c))}catch(d){r(d)}}function u(c){var d;c.done?i(c.value):(d=c.value,d instanceof e?d:new e(function(m){m(d)})).then(s,l)}u((o=o.apply(n,t||[])).next())})},Qi=n=>{let{t}=(0,f.useContext)(R.TranslateContext),{flowState:e}=Oe(n.state),[o,i]=(0,f.useState)([]),r=(0,f.useCallback)(s=>Ko(void 0,void 0,void 0,function*(){return e.actions.otp_code_validate.run({otp_code:s})}),[e]);return(0,f.useEffect)(()=>{i([])},[e]),a(w.Fragment,{children:[a(Se,{children:[a(le,{children:t("headlines.otpLogin")}),a(xe,{state:e}),a(H,{children:t("texts.otpLogin")}),a(Y,Object.assign({flowAction:e.actions.otp_code_validate,onSubmit:s=>Ko(void 0,void 0,void 0,function*(){return s.preventDefault(),r(o.join(""))})},{children:[a(to,{onInput:s=>{if(i(s),s.filter(l=>l!=="").length===6)return r(s.join(""))},passcodeDigits:o,numberOfInputs:6}),a(X,{children:t("labels.continue")})]}))]}),a(Ae,Object.assign({hidden:!e.actions.continue_to_login_security_key.enabled},{children:a($,Object.assign({loadingSpinnerPosition:"right",flowAction:e.actions.continue_to_login_security_key},{children:t("labels.useAnotherMethod")}))}))]})},Yi=n=>{let{t}=(0,f.useContext)(R.TranslateContext),{flowState:e}=Oe(n.state);return a(w.Fragment,{children:[a(Se,{children:[a(le,{children:t("headlines.securityKeyLogin")}),a(xe,{state:e}),a(H,{children:t("texts.securityKeyLogin")}),a(Y,Object.assign({flowAction:e.actions.webauthn_generate_request_options},{children:a(X,Object.assign({autofocus:!0,icon:"securityKey"},{children:t("labels.securityKeyUse")}))}))]}),a(Ae,Object.assign({hidden:!e.actions.continue_to_login_otp.enabled},{children:a($,Object.assign({loadingSpinnerPosition:"right",flowAction:e.actions.continue_to_login_otp},{children:t("labels.useAnotherMethod")}))}))]})},Xi=n=>{let{t}=(0,f.useContext)(R.TranslateContext),{flowState:e}=Oe(n.state),o=(0,f.useMemo)(()=>{let{actions:i}=e;return i.continue_to_security_key_creation.enabled&&!i.continue_to_otp_secret_creation.enabled?i.continue_to_security_key_creation:!i.continue_to_security_key_creation.enabled&&i.continue_to_otp_secret_creation.enabled?i.continue_to_otp_secret_creation:void 0},[e]);return a(w.Fragment,{children:[a(Se,{children:[a(le,{children:t("headlines.mfaSetUp")}),a(xe,{flowError:e==null?void 0:e.error}),a(H,{children:t("texts.mfaSetUp")}),o?a(Y,Object.assign({flowAction:o},{children:a(X,{children:t("labels.continue")})})):a(w.Fragment,{children:[a(Y,Object.assign({flowAction:e.actions.continue_to_security_key_creation},{children:a(X,Object.assign({secondary:!0,icon:"securityKey"},{children:t("labels.securityKey")}))})),a(Y,Object.assign({flowAction:e.actions.continue_to_otp_secret_creation},{children:a(X,Object.assign({secondary:!0,icon:"qrCodeScanner"},{children:t("labels.authenticatorApp")}))}))]})]}),a(Ae,{children:[a($,Object.assign({loadingSpinnerPosition:"right",flowAction:e.actions.back},{children:t("labels.back")})),a($,Object.assign({loadingSpinnerPosition:"left",flowAction:e.actions.skip},{children:t("labels.skip")}))]})]})},nn=K(560),xt={};xt.setAttributes=et(),xt.insert=n=>{window._hankoStyle=n},xt.domAPI=Xe(),xt.insertStyleElement=tt(),Ye()(nn.A,xt);var er=nn.A&&nn.A.locals?nn.A.locals:void 0,tr=({children:n,text:t})=>{let{t:e}=(0,f.useContext)(R.TranslateContext),[o,i]=(0,f.useState)(!1);return a("section",Object.assign({className:Tt.clipboardContainer},{children:[a("div",{children:[n,"\xA0"]}),a("div",Object.assign({className:Tt.clipboardIcon,onClick:r=>{return s=void 0,l=void 0,c=function*(){r.preventDefault();try{yield navigator.clipboard.writeText(t),i(!0),setTimeout(()=>i(!1),1500)}catch(d){console.error("Failed to copy: ",d)}},new((u=void 0)||(u=Promise))(function(d,m){function g(k){try{S(c.next(k))}catch(y){m(y)}}function v(k){try{S(c.throw(k))}catch(y){m(y)}}function S(k){var y;k.done?d(k.value):(y=k.value,y instanceof u?y:new u(function(j){j(y)})).then(g,v)}S((c=c.apply(s,l||[])).next())});var s,l,u,c}},{children:o?a("span",{children:["- ",e("labels.copied")]}):a(Lt,{name:"copy",secondary:!0,size:13})}))]}))},nr=({src:n,secret:t})=>{let{t:e}=(0,f.useContext)(R.TranslateContext);return a("div",Object.assign({className:er.otpCreationDetails},{children:[a("img",{alt:"QR-Code",src:n}),a(fn,{}),a(tr,Object.assign({text:t},{children:e("texts.otpSecretKey")})),a("div",{children:t})]}))},$o=function(n,t,e,o){return new(e||(e=Promise))(function(i,r){function s(c){try{u(o.next(c))}catch(d){r(d)}}function l(c){try{u(o.throw(c))}catch(d){r(d)}}function u(c){var d;c.done?i(c.value):(d=c.value,d instanceof e?d:new e(function(m){m(d)})).then(s,l)}u((o=o.apply(n,t||[])).next())})},or=n=>{let{t}=(0,f.useContext)(R.TranslateContext),{flowState:e}=Oe(n.state),[o,i]=(0,f.useState)([]),r=(0,f.useCallback)(s=>$o(void 0,void 0,void 0,function*(){return e.actions.otp_code_verify.run({otp_code:s})}),[e]);return(0,f.useEffect)(()=>{var s;((s=e.error)===null||s===void 0?void 0:s.code)==="passcode_invalid"&&i([])},[e]),a(w.Fragment,{children:[a(Se,{children:[a(le,{children:t("headlines.otpSetUp")}),a(xe,{state:e}),a(H,{children:t("texts.otpScanQRCode")}),a(nr,{src:e.payload.otp_image_source,secret:e.payload.otp_secret}),a(H,{children:t("texts.otpEnterVerificationCode")}),a(Y,Object.assign({flowAction:e.actions.otp_code_verify,onSubmit:s=>$o(void 0,void 0,void 0,function*(){return s.preventDefault(),r(o.join(""))})},{children:[a(to,{onInput:s=>{if(i(s),s.filter(l=>l!=="").length===6)return r(s.join(""))},passcodeDigits:o,numberOfInputs:6}),a(X,{children:t("labels.continue")})]}))]}),a(Ae,{children:a($,Object.assign({flowAction:e.actions.back,loadingSpinnerPosition:"right"},{children:t("labels.back")}))})]})},ar=n=>{let{t}=(0,f.useContext)(R.TranslateContext),{flowState:e}=Oe(n.state);return a(w.Fragment,{children:[a(Se,{children:[a(le,{children:t("headlines.securityKeySetUp")}),a(xe,{state:e}),a(H,{children:t("texts.securityKeySetUp")}),a(Y,Object.assign({flowAction:e.actions.webauthn_generate_creation_options},{children:a(X,Object.assign({autofocus:!0,icon:"securityKey"},{children:t("labels.createSecurityKey")}))}))]}),a(Ae,Object.assign({hidden:!e.actions.back.enabled},{children:a($,Object.assign({loadingSpinnerPosition:"right",flowAction:e.actions.back},{children:t("labels.back")}))}))]})},ir=n=>{let{t}=(0,f.useContext)(R.TranslateContext),{flowState:e}=Oe(n.state);return a(w.Fragment,{children:[a(Se,{children:[a(le,{children:t("headlines.trustDevice")}),a(xe,{flowError:e==null?void 0:e.error}),a(H,{children:t("texts.trustDevice")}),a(Y,Object.assign({flowAction:e.actions.trust_device},{children:a(X,{children:t("labels.trustDevice")})}))]}),a(Ae,{children:[a($,Object.assign({flowAction:e.actions.back,loadingSpinnerPosition:"right"},{children:t("labels.back")})),a($,Object.assign({flowAction:e.actions.skip,loadingSpinnerPosition:"left"},{children:t("labels.skip")}))]})]})},Go=function(n,t,e,o){return new(e||(e=Promise))(function(i,r){function s(c){try{u(o.next(c))}catch(d){r(d)}}function l(c){try{u(o.throw(c))}catch(d){r(d)}}function u(c){var d;c.done?i(c.value):(d=c.value,d instanceof e?d:new e(function(m){m(d)})).then(s,l)}u((o=o.apply(n,t||[])).next())})},Ee=(0,w.createContext)(null),rr=n=>{var t,{lang:e,prefilledEmail:o,prefilledUsername:i,globalOptions:r,createWebauthnAbortSignal:s}=n,l=function(P,fe){var C={};for(var x in P)Object.prototype.hasOwnProperty.call(P,x)&&fe.indexOf(x)<0&&(C[x]=P[x]);if(P!=null&&typeof Object.getOwnPropertySymbols=="function"){var I=0;for(x=Object.getOwnPropertySymbols(P);I<x.length;I++)fe.indexOf(x[I])<0&&Object.prototype.propertyIsEnumerable.call(P,x[I])&&(C[x[I]]=P[x[I]])}return C}(n,["lang","prefilledEmail","prefilledUsername","globalOptions","createWebauthnAbortSignal"]);let{hanko:u,injectStyles:c,hidePasskeyButtonOnLogin:d,translations:m,translationsLocation:g,fallbackLanguage:v}=r;u.setLang((e==null?void 0:e.toString())||v);let S=(0,f.useRef)(null),k=(0,f.useMemo)(()=>`${r.storageKey}_last_login`,[r.storageKey]),[y,j]=(0,f.useState)(l.componentName),[U,T]=(0,f.useState)((t=l.mode)!==null&&t!==void 0?t:"login"),L=(0,f.useMemo)(()=>({auth:U,login:"login",registration:"registration",profile:"profile",events:null}),[U]),W=(0,f.useMemo)(()=>a(Ai,{}),[]),[N,M]=(0,f.useState)(W),[,ie]=(0,f.useState)(u),[ne,ee]=(0,f.useState)(),[q,ue]=(0,f.useState)({email:o,username:i}),Ce=function(P,fe){var C;(C=S.current)===null||C===void 0||C.dispatchEvent(new CustomEvent(P,{detail:fe,bubbles:!1,composed:!0}))},pe=(0,f.useCallback)(P=>L[y]==P.flowName,[L,y,U]),Ie=P=>{M(a(Ro,{error:P instanceof we?P:new Qe(P)}))};(0,f.useMemo)(()=>u.onBeforeStateChange(({state:P})=>{pe(P)&&ue(fe=>Object.assign(Object.assign({},fe),{isDisabled:!0,error:void 0}))}),[u,pe]),(0,f.useEffect)(()=>u.onAfterStateChange(({state:P})=>Go(void 0,void 0,void 0,function*(){var fe;if(pe(P))switch(["onboarding_verify_passkey_attestation","webauthn_credential_verification","login_passkey","thirdparty"].includes(P.name)||ue(C=>Object.assign(Object.assign({},C),{isDisabled:!1})),P.name){case"login_init":M(a(Ei,{state:P})),P.passkeyAutofillActivation();break;case"passcode_confirmation":M(a(Ti,{state:P}));break;case"login_otp":M(a(Qi,{state:P}));break;case"onboarding_create_passkey":M(a(Li,{state:P}));break;case"login_password":M(a(Di,{state:P}));break;case"login_password_recovery":M(a(Mi,{state:P}));break;case"login_security_key":M(a(Yi,{state:P}));break;case"mfa_method_chooser":M(a(Xi,{state:P}));break;case"mfa_otp_secret_creation":M(a(or,{state:P}));break;case"mfa_security_key_creation":M(a(ar,{state:P}));break;case"login_method_chooser":M(a(Ui,{state:P}));break;case"registration_init":M(a(Ni,{state:P}));break;case"password_creation":M(a(zi,{state:P}));break;case"success":!((fe=P.payload)===null||fe===void 0)&&fe.last_login&&localStorage.setItem(k,JSON.stringify(P.payload.last_login)),P.autoStep();break;case"profile_init":M(a(Gi,{state:P,enablePasskeys:r.enablePasskeys}));break;case"error":M(a(Ro,{state:P}));break;case"onboarding_email":M(a(Vi,{state:P}));break;case"onboarding_username":M(a(Zi,{state:P}));break;case"credential_onboarding_chooser":M(a(Ji,{state:P}));break;case"device_trust":M(a(ir,{state:P}))}})),[y,L]);let re=(0,f.useCallback)(P=>Go(void 0,void 0,void 0,function*(){ue(x=>Object.assign(Object.assign({},x),{isDisabled:!0}));let fe=localStorage.getItem(k);fe&&ee(JSON.parse(fe));let C={excludeAutoSteps:["success"],cacheKey:"hanko-auth-flow-state",dispatchAfterStateChangeEvent:!1};if(new URLSearchParams(window.location.search).get("saml_hint")==="idp_initiated")T("token_exchange"),yield u.createState("token_exchange",Object.assign(Object.assign({},C),{dispatchAfterStateChangeEvent:!0}));else{let x=yield u.createState(P,C);T(x.flowName),setTimeout(()=>x.dispatchAfterStateChangeEvent(),500)}}),[]),he=(0,f.useCallback)(P=>{j(P);let fe=L[P];fe&&re(fe).catch(Ie)},[]);return(0,f.useEffect)(()=>he(y),[]),(0,f.useEffect)(()=>{u.onUserDeleted(()=>{Ce("onUserDeleted")}),u.onSessionCreated(P=>{Ce("onSessionCreated",P)}),u.onSessionExpired(()=>{Ce("onSessionExpired")}),u.onUserLoggedOut(()=>{Ce("onUserLoggedOut")}),u.onBeforeStateChange(P=>{Ce("onBeforeStateChange",P)}),u.onAfterStateChange(P=>{Ce("onAfterStateChange",P)})},[u]),(0,f.useMemo)(()=>{let P=()=>{he(y)};["auth","login","registration"].includes(y)?(u.onUserLoggedOut(P),u.onSessionExpired(P),u.onUserDeleted(P)):y==="profile"&&u.onSessionCreated(P)},[y,u,he]),a(Ee.Provider,Object.assign({value:{init:he,initialComponentName:l.componentName,setUIState:ue,uiState:q,hanko:u,setHanko:ie,lang:(e==null?void 0:e.toString())||v,prefilledEmail:o,prefilledUsername:i,componentName:y,setComponentName:j,hidePasskeyButtonOnLogin:d,page:N,setPage:M,lastLogin:ne,isOwnFlow:pe}},{children:a(R.TranslateProvider,Object.assign({translations:m,fallbackLang:v,root:g},{children:a(li,Object.assign({ref:S},{children:y!=="events"?a(w.Fragment,{children:[c?a("style",{dangerouslySetInnerHTML:{__html:window._hankoStyle.innerHTML}}):null,N]}):null}))}))}))},sr={en:K(6).en},ua=function(n,t,e,o){return new(e||(e=Promise))(function(i,r){function s(c){try{u(o.next(c))}catch(d){r(d)}}function l(c){try{u(o.throw(c))}catch(d){r(d)}}function u(c){var d;c.done?i(c.value):(d=c.value,d instanceof e?d:new e(function(m){m(d)})).then(s,l)}u((o=o.apply(n,t||[])).next())})},Je={},Mt=(n,t)=>a(rr,Object.assign({componentName:n,globalOptions:Je,createWebauthnAbortSignal:pr},t)),lr=n=>Mt("auth",n),cr=n=>Mt("login",n),dr=n=>Mt("registration",n),ur=n=>Mt("profile",n),hr=n=>Mt("events",n),$t=new AbortController,pr=()=>($t&&$t.abort(),$t=new AbortController,$t.signal),Ct=({tagName:n,entryComponent:t,shadow:e=!0,observedAttributes:o})=>ua(void 0,void 0,void 0,function*(){customElements.get(n)||function(i,r,s,l){function u(){var c=Reflect.construct(HTMLElement,[],u);return c._vdomComponent=i,c._root=l&&l.shadow?c.attachShadow({mode:"open"}):c,c}(u.prototype=Object.create(HTMLElement.prototype)).constructor=u,u.prototype.connectedCallback=Fa,u.prototype.attributeChangedCallback=Ha,u.prototype.disconnectedCallback=Ra,s=s||i.observedAttributes||Object.keys(i.propTypes||{}),u.observedAttributes=s,s.forEach(function(c){Object.defineProperty(u.prototype,c,{get:function(){var d,m,g,v;return(d=(m=this._vdom)==null||(g=m.props)==null?void 0:g[c])!=null?d:(v=this._props)==null?void 0:v[c]},set:function(d){this._vdom?this.attributeChangedCallback(c,null,d):(this._props||(this._props={}),this._props[c]=d,this.connectedCallback());var m=typeof d;d!=null&&m!=="string"&&m!=="boolean"&&m!=="number"||this.setAttribute(c,d)}})}),customElements.define(r||i.tagName||i.displayName||i.name,u)}(t,n,o,{shadow:e})}),fr=(n,t={})=>ua(void 0,void 0,void 0,function*(){let e=["api","lang","prefilled-email","entry","mode"];return t=Object.assign({shadow:!0,injectStyles:!0,enablePasskeys:!0,hidePasskeyButtonOnLogin:!1,translations:null,translationsLocation:"/i18n",fallbackLanguage:"en",storageKey:"hanko",sessionCheckInterval:3e4},t),Je.hanko=new hn(n,{cookieName:t.storageKey,cookieDomain:t.cookieDomain,cookieSameSite:t.cookieSameSite,localStorageKey:t.storageKey,sessionCheckInterval:t.sessionCheckInterval,sessionTokenLocation:t.sessionTokenLocation}),Je.injectStyles=t.injectStyles,Je.enablePasskeys=t.enablePasskeys,Je.hidePasskeyButtonOnLogin=t.hidePasskeyButtonOnLogin,Je.translations=t.translations||sr,Je.translationsLocation=t.translationsLocation,Je.fallbackLanguage=t.fallbackLanguage,Je.storageKey=t.storageKey,yield Promise.all([Ct(Object.assign(Object.assign({},t),{tagName:"hanko-auth",entryComponent:lr,observedAttributes:e})),Ct(Object.assign(Object.assign({},t),{tagName:"hanko-login",entryComponent:cr,observedAttributes:e})),Ct(Object.assign(Object.assign({},t),{tagName:"hanko-registration",entryComponent:dr,observedAttributes:e})),Ct(Object.assign(Object.assign({},t),{tagName:"hanko-profile",entryComponent:ur,observedAttributes:e.filter(o=>["api","lang"].includes(o))})),Ct(Object.assign(Object.assign({},t),{tagName:"hanko-events",entryComponent:hr,observedAttributes:[]}))]),{hanko:Je.hanko}}),il=J.rc,rl=J.Kj,sl=J.fK,ll=J.tJ,cl=J.Z7,dl=J.qQ,ul=J.I4,hl=J.O8,pl=J.Qq,fl=J.ku,ml=J.ls,vl=J.bO,gl=J.yv,bl=J.AT,_l=J.m_,yl=J.KG,kl=J.Wj,wl=J.DH,Sl=J.kf,xl=J.Uw,Cl=J.oY,Ol=J.Wg,Al=J.AC,Il=J.D_,El=J.jx,Pl=J.nX,jl=J.Nx,Tl=J.Sd,ha=J.kz,Ll=J.fX,Dl=J.qA,Ml=J.tz,Ul=J.gN;var pa='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" height="256" width="256" xmlns:xlink="http://www.w3.org/1999/xlink">%0D%0A <defs>%0D%0A <linearGradient id="c">%0D%0A <stop stop-color="%232d3335" offset="0"/>%0D%0A <stop stop-color="%234c464a" offset=".5"/>%0D%0A <stop stop-color="%23384042" offset="1"/>%0D%0A </linearGradient>%0D%0A <linearGradient id="a">%0D%0A <stop offset="0"/>%0D%0A <stop stop-opacity="0" offset="1"/>%0D%0A </linearGradient>%0D%0A <linearGradient id="u" y2="-179.97" xlink:href="%23a" gradientUnits="userSpaceOnUse" x2="9" y1="-94.672" x1="94.25"/>%0D%0A <linearGradient id="v" y2="-30.438" xlink:href="%23a" gradientUnits="userSpaceOnUse" x2="35.75" y1="-114.44" x1="50.75"/>%0D%0A <linearGradient id="w" y2="-74.625" xlink:href="%23a" gradientUnits="userSpaceOnUse" x2="115.25" y1="-163.12" x1="77.625"/>%0D%0A <linearGradient id="x" y2="7.063" xlink:href="%23a" gradientUnits="userSpaceOnUse" x2="125.72" y1="-50.438" x1="56.5"/>%0D%0A <linearGradient id="y" y2="-146.8" xlink:href="%23a" gradientUnits="userSpaceOnUse" x2="180.75" y1="-163.3" x1="35"/>%0D%0A <linearGradient id="z" y2="-41.609" xlink:href="%23a" gradientUnits="userSpaceOnUse" x2="179" y1="-141.11" x1="57"/>%0D%0A <linearGradient id="A" y2="39.75" xlink:href="%23a" gradientUnits="userSpaceOnUse" x2="208.25" y1="-26.5" x1="156"/>%0D%0A <linearGradient id="B" y2="-77.297" xlink:href="%23a" gradientUnits="userSpaceOnUse" x2="235" y1="-169.3" x1="142.75"/>%0D%0A <linearGradient id="m" y2="-113.72" xlink:href="%23b" gradientUnits="userSpaceOnUse" x2="166.5" y1="-161.36" x1="214.25"/>%0D%0A <linearGradient id="b">%0D%0A <stop stop-color="%23fff" offset="0"/>%0D%0A <stop stop-color="%23fff" stop-opacity="0" offset="1"/>%0D%0A </linearGradient>%0D%0A <linearGradient id="n" y2="-62.469" xlink:href="%23b" gradientUnits="userSpaceOnUse" x2="57.656" y1="-126.5" x1="53.25"/>%0D%0A <linearGradient id="o" y2="-17.125" xlink:href="%23b" gradientUnits="userSpaceOnUse" x2="75.719" y1="6.625" x1="39.5"/>%0D%0A <linearGradient id="p" y2="-121.44" xlink:href="%23b" gradientUnits="userSpaceOnUse" x2="85.312" y1="-162.34" x1="102"/>%0D%0A <linearGradient id="q" y2="-14.75" xlink:href="%23b" gradientUnits="userSpaceOnUse" x2="63.5" y1="-78.094" x1="117.75"/>%0D%0A <linearGradient id="r" y2="-60.75" xlink:href="%23b" gradientUnits="userSpaceOnUse" x2="133.94" y1="-125.12" x1="180.69"/>%0D%0A <linearGradient id="s" y2="33.375" xlink:href="%23b" gradientUnits="userSpaceOnUse" x2="130.22" y1="-23.5" x1="170.75"/>%0D%0A <linearGradient id="t" y2="-5.656" xlink:href="%23b" gradientUnits="userSpaceOnUse" y1="-76" x2="181.75" x1="213.5"/>%0D%0A <linearGradient id="l" y2="-213.25" xlink:href="%23a" gradientUnits="userSpaceOnUse" x2="9" gradientTransform="translate(0 -10)" y1="72.064" x1="210.17"/>%0D%0A <linearGradient id="M" y2="150.38" xlink:href="%23c" gradientUnits="userSpaceOnUse" x2="133" gradientTransform="matrix(-1 0 0 1 46 0)" y1="150.38" x1="123"/>%0D%0A <linearGradient id="L" y2="143.36" xlink:href="%23c" gradientUnits="userSpaceOnUse" x2="130.88" gradientTransform="translate(-210)" y1="134.36" x1="128"/>%0D%0A <linearGradient id="O" y2="150.38" gradientUnits="userSpaceOnUse" y1="150.38" gradientTransform="matrix(-2 0 0 1.7699 174 -86.65)" x2="133" x1="123">%0D%0A <stop stop-color="%232d3335" offset="0"/>%0D%0A <stop stop-color="%234c464a" offset=".5"/>%0D%0A <stop stop-color="%23384042" offset="1"/>%0D%0A </linearGradient>%0D%0A <linearGradient id="N" y2="186.5" gradientUnits="userSpaceOnUse" x2="136" gradientTransform="translate(-210)" y1="186.5" x1="120">%0D%0A <stop stop-color="%23f9e295" offset="0"/>%0D%0A <stop stop-color="%23f7dd84" offset=".125"/>%0D%0A <stop stop-color="%23fff" offset=".206"/>%0D%0A <stop stop-color="%23f4ce51" offset=".301"/>%0D%0A <stop stop-color="%23f9e7aa" offset=".341"/>%0D%0A <stop stop-color="%23efbb0e" offset="1"/>%0D%0A </linearGradient>%0D%0A <linearGradient id="P" y2="186.5" gradientUnits="userSpaceOnUse" y1="186.5" gradientTransform="translate(-210 67)" x2="136" x1="120">%0D%0A <stop stop-color="%23f9e295" offset="0"/>%0D%0A <stop stop-color="%23f7dd84" offset=".125"/>%0D%0A <stop stop-color="%23fff" offset=".206"/>%0D%0A <stop stop-color="%23f4ce51" offset=".301"/>%0D%0A <stop stop-color="%23f9e7aa" offset=".341"/>%0D%0A <stop stop-color="%23efbb0e" offset="1"/>%0D%0A </linearGradient>%0D%0A <linearGradient id="J" y2="186.5" gradientUnits="userSpaceOnUse" x2="136" gradientTransform="rotate(45 104.976 51.258) scale(1.39197)" y1="186.5" x1="120">%0D%0A <stop stop-color="%23f9e295" offset="0"/>%0D%0A <stop stop-color="%23f7dd84" offset=".125"/>%0D%0A <stop stop-color="%23fff" offset=".206"/>%0D%0A <stop stop-color="%23f4ce51" offset=".301"/>%0D%0A <stop stop-color="%23f9e7aa" offset=".341"/>%0D%0A <stop stop-color="%23efbb0e" offset="1"/>%0D%0A </linearGradient>%0D%0A <linearGradient id="U" y2="150.38" gradientUnits="userSpaceOnUse" x2="133" gradientTransform="rotate(-135 332.789 -39.72) scale(2.7839 -2.4637)" y1="150.38" x1="123">%0D%0A <stop stop-color="%232d3335" offset="0"/>%0D%0A <stop stop-color="%234c464a" offset=".5"/>%0D%0A <stop stop-color="%23384042" offset="1"/>%0D%0A </linearGradient>%0D%0A <linearGradient id="T" y2="186.5" gradientUnits="userSpaceOnUse" x2="136" gradientTransform="rotate(45 217.552 97.892) scale(1.39197)" y1="186.5" x1="120">%0D%0A <stop stop-color="%23f9e295" offset="0"/>%0D%0A <stop stop-color="%23f7dd84" offset=".125"/>%0D%0A <stop stop-color="%23fff" offset=".206"/>%0D%0A <stop stop-color="%23f4ce51" offset=".301"/>%0D%0A <stop stop-color="%23f9e7aa" offset=".341"/>%0D%0A <stop stop-color="%23efbb0e" offset="1"/>%0D%0A </linearGradient>%0D%0A <linearGradient id="S" y2="150.38" xlink:href="%23c" gradientUnits="userSpaceOnUse" x2="133" gradientTransform="scale(-1.39197 1.39197) rotate(-45 -28.292 379.342)" y1="150.38" x1="123"/>%0D%0A <linearGradient id="R" y2="143.36" xlink:href="%23c" gradientUnits="userSpaceOnUse" x2="130.88" gradientTransform="rotate(45 217.552 97.892) scale(1.39197)" y1="134.36" x1="128"/>%0D%0A <linearGradient id="V" y2="150.38" xlink:href="%23a" gradientUnits="userSpaceOnUse" y1="167.73" gradientTransform="rotate(-135 332.789 -39.72) scale(2.7839 -2.4637)" x2="133" x1="108"/>%0D%0A <linearGradient id="W" y2="137.2" gradientUnits="userSpaceOnUse" x2="179.96" gradientTransform="translate(0 -10)" y1="29.815" x1="126.64">%0D%0A <stop stop-color="%23fff" offset="0"/>%0D%0A <stop stop-color="%23fff" stop-opacity="0" offset="1"/>%0D%0A </linearGradient>%0D%0A <linearGradient id="Z" y2="137.2" gradientUnits="userSpaceOnUse" y1="29.815" gradientTransform="matrix(-.50295 .1984 .1972 -.43254 276.16 123.42)" x2="179.96" x1="126.64">%0D%0A <stop stop-color="%23fff" offset="0"/>%0D%0A <stop stop-color="%23fff" stop-opacity="0" offset="1"/>%0D%0A </linearGradient>%0D%0A <linearGradient id="G" y2="-213.25" gradientUnits="userSpaceOnUse" x2="9" gradientTransform="translate(0 192)" y1="72.064" x1="210.17">%0D%0A <stop offset="0"/>%0D%0A <stop stop-opacity="0" offset="1"/>%0D%0A </linearGradient>%0D%0A <linearGradient id="h" y2="4.302" gradientUnits="userSpaceOnUse" x2="122" y1="245.45" x1="122">%0D%0A <stop offset="0"/>%0D%0A <stop stop-opacity="0" offset="1"/>%0D%0A </linearGradient>%0D%0A <linearGradient id="e" y2="-213.25" gradientUnits="userSpaceOnUse" x2="9" gradientTransform="matrix(1 -.08088 0 1 0 203.06)" y1="72.064" x1="210.17">%0D%0A <stop offset="0"/>%0D%0A <stop stop-opacity="0" offset="1"/>%0D%0A </linearGradient>%0D%0A <clipPath id="j" clipPathUnits="userSpaceOnUse">%0D%0A <path fill="%23ceeeab" d="M9 12.25s7.5 13 11.75 27.75S27 65.5 27 65.5s-5.5 12.75-8.25 24.75-5.75 23-5.75 23 5.75 16 9.25 30S26 167.5 26 167.5s-4 10.25-7.5 24.25-5 30.75-5 30.75 9.25-2 28.5 1.25 32.25 6 32.25 6 12.75-2.75 24-6.25 16.25-6.5 16.25-6.5 5.5.5 22.5 6.25 29.25 8.5 29.25 8.5 13-2.75 26-5.75 26.5-8 26.5-8-.75-5 4.25-24.5 8.75-28 8.75-28-.5-4.5-3.75-19.75S218 116 218 116s1.75-10.5 6.75-23.75S235 65.5 235 65.5s-4.75-15.25-7.5-29.75S219.25 10 219.25 10 195 19 187.5 20.5s-21 5.25-21 5.25-9.75-4.25-22-8.5-29.75-5.5-29.75-5.5-3.25 3.5-22 8-27.5 5.75-27.5 5.75-18.5-9-31.5-11.5-24-2-24.75-1.75z"/>%0D%0A </clipPath>%0D%0A <clipPath id="k" clipPathUnits="userSpaceOnUse">%0D%0A <path fill="%23ceeeab" d="M9 12.25s7.5 13 11.75 27.75S27 65.5 27 65.5s-5.5 12.75-8.25 24.75-5.75 23-5.75 23 5.75 16 9.25 30S26 167.5 26 167.5s-4 10.25-7.5 24.25-5 30.75-5 30.75 9.25-2 28.5 1.25 32.25 6 32.25 6 12.75-2.75 24-6.25 16.25-6.5 16.25-6.5 5.5.5 22.5 6.25 29.25 8.5 29.25 8.5 13-2.75 26-5.75 26.5-8 26.5-8-.75-5 4.25-24.5 8.75-28 8.75-28-.5-4.5-3.75-19.75S218 116 218 116s1.75-10.5 6.75-23.75S235 65.5 235 65.5s-4.75-15.25-7.5-29.75S219.25 10 219.25 10 195 19 187.5 20.5s-21 5.25-21 5.25-9.75-4.25-22-8.5-29.75-5.5-29.75-5.5-3.25 3.5-22 8-27.5 5.75-27.5 5.75-18.5-9-31.5-11.5-24-2-24.75-1.75z"/>%0D%0A </clipPath>%0D%0A <clipPath id="i" clipPathUnits="userSpaceOnUse">%0D%0A <path fill="%23ceeeab" d="M9 12.25s7.5 13 11.75 27.75S27 65.5 27 65.5s-5.5 12.75-8.25 24.75-5.75 23-5.75 23 5.75 16 9.25 30S26 167.5 26 167.5s-4 10.25-7.5 24.25-5 30.75-5 30.75 9.25-2 28.5 1.25 32.25 6 32.25 6 12.75-2.75 24-6.25 16.25-6.5 16.25-6.5 5.5.5 22.5 6.25 29.25 8.5 29.25 8.5 13-2.75 26-5.75 26.5-8 26.5-8-.75-5 4.25-24.5 8.75-28 8.75-28-.5-4.5-3.75-19.75S218 116 218 116s1.75-10.5 6.75-23.75S235 65.5 235 65.5s-4.75-15.25-7.5-29.75S219.25 10 219.25 10 195 19 187.5 20.5s-21 5.25-21 5.25-9.75-4.25-22-8.5-29.75-5.5-29.75-5.5-3.25 3.5-22 8-27.5 5.75-27.5 5.75-18.5-9-31.5-11.5-24-2-24.75-1.75z"/>%0D%0A </clipPath>%0D%0A <clipPath id="D" clipPathUnits="userSpaceOnUse">%0D%0A <path fill="%23ceeeab" d="M9 12.25s7.5 13 11.75 27.75S27 65.5 27 65.5s-5.5 12.75-8.25 24.75-5.75 23-5.75 23 5.75 16 9.25 30S26 167.5 26 167.5s-4 10.25-7.5 24.25-5 30.75-5 30.75 9.25-2 28.5 1.25 32.25 6 32.25 6 12.75-2.75 24-6.25 16.25-6.5 16.25-6.5 5.5.5 22.5 6.25 29.25 8.5 29.25 8.5 13-2.75 26-5.75 26.5-8 26.5-8-.75-5 4.25-24.5 8.75-28 8.75-28-.5-4.5-3.75-19.75S218 116 218 116s1.75-10.5 6.75-23.75S235 65.5 235 65.5s-4.75-15.25-7.5-29.75S219.25 10 219.25 10 195 19 187.5 20.5s-21 5.25-21 5.25-9.75-4.25-22-8.5-29.75-5.5-29.75-5.5-3.25 3.5-22 8-27.5 5.75-27.5 5.75-18.5-9-31.5-11.5-24-2-24.75-1.75z"/>%0D%0A </clipPath>%0D%0A <clipPath id="E" clipPathUnits="userSpaceOnUse">%0D%0A <path fill="%23ceeeab" d="M9 12.25s7.5 13 11.75 27.75S27 65.5 27 65.5s-5.5 12.75-8.25 24.75-5.75 23-5.75 23 5.75 16 9.25 30S26 167.5 26 167.5s-4 10.25-7.5 24.25-5 30.75-5 30.75 9.25-2 28.5 1.25 32.25 6 32.25 6 12.75-2.75 24-6.25 16.25-6.5 16.25-6.5 5.5.5 22.5 6.25 29.25 8.5 29.25 8.5 13-2.75 26-5.75 26.5-8 26.5-8-.75-5 4.25-24.5 8.75-28 8.75-28-.5-4.5-3.75-19.75S218 116 218 116s1.75-10.5 6.75-23.75S235 65.5 235 65.5s-4.75-15.25-7.5-29.75S219.25 10 219.25 10 195 19 187.5 20.5s-21 5.25-21 5.25-9.75-4.25-22-8.5-29.75-5.5-29.75-5.5-3.25 3.5-22 8-27.5 5.75-27.5 5.75-18.5-9-31.5-11.5-24-2-24.75-1.75z"/>%0D%0A </clipPath>%0D%0A <clipPath id="F" clipPathUnits="userSpaceOnUse">%0D%0A <path fill="%23ceeeab" d="M9 12.25s7.5 13 11.75 27.75S27 65.5 27 65.5s-5.5 12.75-8.25 24.75-5.75 23-5.75 23 5.75 16 9.25 30S26 167.5 26 167.5s-4 10.25-7.5 24.25-5 30.75-5 30.75 9.25-2 28.5 1.25 32.25 6 32.25 6 12.75-2.75 24-6.25 16.25-6.5 16.25-6.5 5.5.5 22.5 6.25 29.25 8.5 29.25 8.5 13-2.75 26-5.75 26.5-8 26.5-8-.75-5 4.25-24.5 8.75-28 8.75-28-.5-4.5-3.75-19.75S218 116 218 116s1.75-10.5 6.75-23.75S235 65.5 235 65.5s-4.75-15.25-7.5-29.75S219.25 10 219.25 10 195 19 187.5 20.5s-21 5.25-21 5.25-9.75-4.25-22-8.5-29.75-5.5-29.75-5.5-3.25 3.5-22 8-27.5 5.75-27.5 5.75-18.5-9-31.5-11.5-24-2-24.75-1.75z"/>%0D%0A </clipPath>%0D%0A <clipPath id="C" clipPathUnits="userSpaceOnUse">%0D%0A <path d="M123.62 141.06c20.832 20.243 54.607 19.289 75.439-2.132s20.832-55.196 0-75.439-54.607-19.289-75.439 2.132-20.832 55.196 0 75.439z" fill="url(%23d)"/>%0D%0A </clipPath>%0D%0A <clipPath id="H" clipPathUnits="userSpaceOnUse">%0D%0A <path opacity=".039" d="M9 22.578s7.5 12.393 11.75 26.8C25 63.784 27 74.373 27 74.373s-5.5 13.195-8.25 25.417C16 112.01 13 123.25 13 123.25s5.75 15.535 9.25 29.252S26 176.449 26 176.449s-4 10.574-7.5 24.857-5 31.154-5 31.154 9.25-2.748 28.5-1.055 32.25 3.392 32.25 3.392 12.75-3.782 24-8.191 16.25-7.815 16.25-7.815 5.5.055 22.5 4.43c17 4.376 29.25 6.135 29.25 6.135s13-3.802 26-7.853 26.5-10.143 26.5-10.143-.75-4.94 4.25-24.844 8.75-28.708 8.75-28.708-.514-4.455-3.75-19.447c-1.75-8.108-2.25-4.068-2.25-4.068s16.264-26.155 16.5-40.334c.25-15.02-7.25-36.413-7.25-36.413s-4.75-14.866-7.5-29.143c-2.75-14.278-8.25-25.083-8.25-25.083S195 14.281 187.5 16.388c-7.5 2.107-21 6.948-21 6.948s-9.75-3.461-22-6.72c-12.25-3.26-29.75-3.094-29.75-3.094s-3.25 3.763-22 9.78c-18.75 6.016-27.5 7.973-27.5 7.973s-18.5-7.504-31.5-8.952-24-.06-24.75.252z" fill="url(%23e)"/>%0D%0A </clipPath>%0D%0A <radialGradient id="K" gradientUnits="userSpaceOnUse" cy="86" cx="128" gradientTransform="matrix(1.0213 0 0 -1.0213 -212.72 173.83)" r="47">%0D%0A <stop stop-color="%23d0e9f2" stop-opacity="0" offset="0"/>%0D%0A <stop stop-color="%23d0e9f2" stop-opacity="0" offset=".839"/>%0D%0A <stop stop-color="%23d0e9f2" stop-opacity=".282" offset=".943"/>%0D%0A <stop stop-color="%23d0e9f2" offset="1"/>%0D%0A </radialGradient>%0D%0A <radialGradient id="Q" gradientUnits="userSpaceOnUse" cy="86" cx="128" gradientTransform="scale(1.4216 -1.4216) rotate(-45 -51.091 19.464)" r="47">%0D%0A <stop stop-color="%23d0e9f2" stop-opacity="0" offset="0"/>%0D%0A <stop stop-color="%23d0e9f2" stop-opacity="0" offset=".839"/>%0D%0A <stop stop-color="%23d0e9f2" stop-opacity=".282" offset=".943"/>%0D%0A <stop stop-color="%23d0e9f2" offset="1"/>%0D%0A </radialGradient>%0D%0A <radialGradient id="Y" gradientUnits="userSpaceOnUse" cy="72.588" cx="159.61" gradientTransform="matrix(1.2125 0 0 .83915 -46.348 24.528)" r="38.417">%0D%0A <stop stop-color="%23fff" offset="0"/>%0D%0A <stop stop-color="%23fff" stop-opacity=".93" offset=".5"/>%0D%0A <stop stop-color="%23fff" stop-opacity="0" offset="1"/>%0D%0A </radialGradient>%0D%0A <radialGradient id="X" gradientUnits="userSpaceOnUse" cx="159.61" cy="72.588" r="38.417" gradientTransform="matrix(1.2125 0 0 .83915 -45.92 25.814)">%0D%0A <stop stop-color="%23fff" offset="0"/>%0D%0A <stop stop-color="%23fff" stop-opacity="0" offset="1"/>%0D%0A </radialGradient>%0D%0A <radialGradient id="d" gradientUnits="userSpaceOnUse" cy="86" cx="128" gradientTransform="matrix(.80254 .77986 .80254 -.82522 -10.402 73.423)" r="47">%0D%0A <stop stop-color="%23d0e9f2" stop-opacity="0" offset="0"/>%0D%0A <stop stop-color="%23d0e9f2" stop-opacity="0" offset=".839"/>%0D%0A <stop stop-color="%23d0e9f2" stop-opacity=".282" offset=".943"/>%0D%0A <stop stop-color="%23d0e9f2" offset="1"/>%0D%0A </radialGradient>%0D%0A <filter id="I">%0D%0A <feGaussianBlur stdDeviation="4.287"/>%0D%0A </filter>%0D%0A <filter id="f">%0D%0A <feGaussianBlur stdDeviation="6.311"/>%0D%0A </filter>%0D%0A <filter id="g">%0D%0A <feGaussianBlur stdDeviation="4.457"/>%0D%0A </filter>%0D%0A </defs>%0D%0A <path opacity=".7" d="M174.28 35.875c-17.6 0-35.19 6.639-48.72 19.906-.16.164-.33.303-.5.469-22.05 22.056-26.206 55.25-12.47 81.5l-2.28 1.63c2.25 4.23 4.94 8.3 8.1 12.12l-13.32 13.34c-1.34-.58-2.78-1.03-4.56-1.37l-2.842 2.84c-1.11-.48-2.139-.81-3.063-.87L30.5 229.56c-.037 1.1.226 2.19.656 3.28l-.531.54-1.094 1.09c.716 3.74 2.011 6.82 5.469 10.28s6.42 4.63 10.281 5.47l1.094-1.1.719-.71c1.088.46 2.13.78 3.094.84l64.122-64.13c-.24-.97-.62-1.93-1.03-2.9l3-3c-.25-1.73-.68-3.2-1.31-4.6l13.28-13.28c3.82 3.16 7.89 5.85 12.13 8.1l1.62-2.28c26.25 13.74 59.44 9.58 81.5-12.47.17-.17.31-.34.47-.5 26.69-27.22 26.55-70.923-.47-97.94-13.59-13.59-31.41-20.375-49.22-20.375zm-.5 3.281c.11.002.21-.002.31 0a67.89 67.89 0 0 1 5.72.375c.1.01.19.021.28.031l.29.032c.14.017.29.044.43.062.9.11 1.8.228 2.69.375.62.102 1.23.224 1.84.344.35.066.69.116 1.04.187.72.153 1.43.324 2.15.5.31.077.63.138.94.219.07.019.14.043.22.063.95.253 1.89.516 2.84.812.07.023.15.04.22.063.95.3 1.91.625 2.84.969.06.019.11.042.16.062.95.352 1.9.728 2.84 1.125.06.022.11.041.16.063.94.4 1.88.836 2.81 1.281l.13.062c.93.451 1.86.91 2.78 1.407.03.017.06.044.09.062.93.503 1.84 1.013 2.75 1.562.03.02.06.044.1.063.9.551 1.8 1.122 2.68 1.719.55.369 1.09.769 1.63 1.156.36.261.73.512 1.09.781.02.014.05.018.06.031.88.656 1.75 1.36 2.6 2.063a70.875 70.875 0 0 1 5.06 4.594c1.62 1.62 3.14 3.3 4.56 5.031.01.011.03.02.03.031.71.855 1.41 1.715 2.07 2.594.28.379.54.773.81 1.156.37.517.74 1.038 1.09 1.563.02.024.05.038.07.062.59.89 1.16 1.778 1.71 2.688.02.032.05.061.07.094a75.45 75.45 0 0 1 1.56 2.75c.02.032.04.06.06.093.5.921.96 1.844 1.41 2.781l.06.126c.45.929.88 1.868 1.28 2.812l.06.156c.4.936.78 1.895 1.13 2.844l.06.156c.35.949.67 1.885.97 2.844l.06.219c.3.941.56 1.894.82 2.843l.06.219c.08.31.14.627.22.938.17.72.35 1.432.5 2.156.07.342.12.688.18 1.031.12.617.25 1.225.35 1.844.15.893.26 1.791.37 2.688.02.145.05.291.07.437l.03.281.03.282c.1.952.19 1.912.25 2.872.06.94.11 1.9.12 2.85.01.1 0 .2 0 .31.02 1.05.01 2.1-.03 3.15-.03.94-.08 1.86-.15 2.79-.01.12-.02.25-.04.37-.07.92-.16 1.84-.28 2.75-.12.96-.27 1.93-.43 2.88-.02.08-.02.16-.04.25-.02.12-.03.25-.06.37-.16.91-.36 1.82-.56 2.72-.03.13-.06.27-.09.41a86.1 86.1 0 0 1-.69 2.65c-.17.59-.35 1.17-.53 1.75-.18.57-.34 1.13-.53 1.69-.3.86-.61 1.71-.94 2.56-.06.16-.13.32-.19.47-.04.11-.08.23-.12.34-.36.88-.73 1.73-1.13 2.6-.38.82-.77 1.63-1.19 2.44-.08.15-.16.31-.25.46-.41.8-.83 1.6-1.28 2.38-.09.17-.18.34-.28.5-.2.34-.42.66-.62 1-.37.59-.75 1.17-1.13 1.75 0 .01.01.02 0 .03-.49.75-1 1.49-1.53 2.22-.46.64-.95 1.25-1.44 1.87-.19.26-.36.53-.56.79l-.41.5c-.16.2-.33.39-.5.59-.55.67-1.13 1.32-1.72 1.97-.6.67-1.23 1.35-1.87 2-.16.16-.31.34-.47.5-21.13 21.13-52.26 24.49-77.19 11.15l.13-.18c-3.71-1.9-7.26-4.14-10.63-6.78-.54-.43-1.06-.87-1.59-1.32-.51-.43-1.03-.86-1.53-1.31-.09-.08-.19-.16-.28-.25a86.97 86.97 0 0 1-2.41-2.31c-.79-.8-1.56-1.59-2.31-2.41-.09-.09-.17-.19-.25-.28-.45-.5-.88-1.02-1.31-1.53-.45-.53-.89-1.05-1.32-1.59a65.831 65.831 0 0 1-6.78-10.63l-.19.13c-13.33-24.93-9.97-56.061 11.16-77.191.16-.163.34-.308.5-.469.65-.64 1.33-1.269 2-1.875.65-.588 1.3-1.162 1.97-1.719.27-.227.54-.465.81-.687.35-.278.72-.512 1.06-.782.63-.483 1.24-.98 1.88-1.437.74-.53 1.5-1.036 2.25-1.531.58-.383 1.16-.764 1.75-1.125.45-.274.89-.551 1.34-.813.69-.395 1.37-.757 2.07-1.125a61.343 61.343 0 0 1 3.37-1.687c.87-.397 1.72-.769 2.59-1.125.16-.062.32-.096.47-.157.97-.384 1.93-.758 2.91-1.093.56-.192 1.12-.356 1.69-.532.58-.181 1.16-.367 1.75-.531.88-.246 1.77-.48 2.65-.687.07-.017.15-.015.22-.032.42-.095.84-.193 1.25-.281.67-.141 1.36-.287 2.03-.406.09-.015.17-.017.25-.031.95-.164 1.92-.317 2.88-.438a65.183 65.183 0 0 1 9.06-.5z" transform="matrix(1 .06864 0 .8487 0 26.913)" filter="url(%23f)" fill="%232d3335"/>%0D%0A <path opacity=".5" d="M9 17.25s7.5 11 11.75 25.75S27 68.5 27 68.5s-5.5 12.75-8.25 24.75-5.75 25-5.75 25 5.75 16 9.25 30S26 170.5 26 170.5s-4 10.25-7.5 24.25-5 30.75-5 30.75 9.25-2 28.5 1.25 32.25 6 32.25 6 12.75-2.75 24-6.25 16.25-6.5 16.25-6.5 5.5.5 22.5 6.25 29.25 8.5 29.25 8.5 13-2.75 26-5.75 26.5-8 26.5-8-.75-5 4.25-24.5 8.75-28 8.75-28-.5-2.5-3.75-17.75S218 121 218 121s1.75-12.5 6.75-25.75S235 68.5 235 68.5s-4.75-15.25-7.5-29.75S219.25 15 219.25 15 195 24 187.5 25.5s-21 5.25-21 5.25-9.75-4.25-22-8.5-29.75-5.5-29.75-5.5-3.25 3.5-22 8-27.5 5.75-27.5 5.75-18.5-9-31.5-11.5-24-2-24.75-1.75z" transform="matrix(1 0 0 .84657 0 27.66)" filter="url(%23g)" fill="url(%23h)"/>%0D%0A <path fill="%23ceeeab" d="M9 2.25s7.5 13 11.75 27.75S27 55.5 27 55.5s-5.5 12.75-8.25 24.75-5.75 23-5.75 23 5.75 16 9.25 30S26 157.5 26 157.5s-4 10.25-7.5 24.25-5 30.75-5 30.75 9.25-2 28.5 1.25 32.25 6 32.25 6 12.75-2.75 24-6.25 16.25-6.5 16.25-6.5 5.5.5 22.5 6.25 29.25 8.5 29.25 8.5 13-2.75 26-5.75 26.5-8 26.5-8-.75-5 4.25-24.5 8.75-28 8.75-28-.5-4.5-3.75-19.75S218 106 218 106s1.75-10.5 6.75-23.75S235 55.5 235 55.5s-4.75-15.25-7.5-29.75S219.25 0 219.25 0 195 9 187.5 10.5s-21 5.25-21 5.25-9.75-4.25-22-8.5-29.75-5.5-29.75-5.5-3.25 3.5-22 8-27.5 5.75-27.5 5.75-18.5-9-31.5-11.5S9.75 2 9 2.25z"/>%0D%0A <g transform="translate(0 -10)" clip-path="url(%23i)">%0D%0A <path fill="%23a6dd8b" d="m110.75 5.5-4.25 7c-.75 9-2.25 13.75-8.5 16.5s-12.25 3.5-11 7.5 13 9.25 14.25 13 8.25 1.75 11 7 2 15.25-3.75 17.25-17.5.5-20.25 9.5-4.75 10.5-9 12.75-7.25 10.5-3.5 16.5 12.25-1.25 15-6.5S98 97.25 98 97.25h23.75l59-1.75 3.25-3.75s3.25 4 2.75 8.75-3.75 14.75.25 17.25 19.5-2 24-7-4.75-28.25-10.5-29.5-18.5-1.75-17-7 11.75 4.5 17.25 3.25 16.75-21 12-25.25-24.25-5.25-25.75-8 21-8 22.25-11-2.5-7.25-6.25-8.5S189 41 182 40.5s-20 5.75-17.25 11.5-6 11-14.5 6.5-24.75-13-21.75-24S150 15.75 150 15.75L110.75 5.5zM97.188 112.72c-1.595.15-4.469 4.69-4.938 7.03-.5 2.5-3.25 6.75-3.5 12.25s4.75 6.75 8.75 6.5 2.75-6.75 2-15c-.25 0-.5-10.25-2-10.75-.094-.03-.206-.04-.312-.03zm92.722 51.66c-6.34.29-6.63 7.46-7.41 8.87-1.25 2.25 2.25 13.75 2 18s-4.75 5.25-9.5 9.75.5 16 11.25 31l44.75 1.25-1-35s4.75-4.25-20.75-24.25c-9.56-7.5-15.54-9.8-19.34-9.62zM39.94 180.91c-4.03-.11-8.282 5.71-9.688 7.59-1.5 2-6.25 5-17 9.5l-14.5 34.25 53 4.25s1.75-11-4.25-15.75-17.25-5.75-18.25-13.25 9.25-10 13.75-14.25 2-11.25-2.25-12.25a3.728 3.728 0 0 0-.812-.09z"/>%0D%0A </g>%0D%0A <path fill="%23aac3e7" d="M158.53 75.344c-4.76-.015-9.03.968-11.53 3.156-8 7-35 .75-48.5 7s-13.25 38-14.75 44.5-17.5 20.75-20 23.5-13.25 7.25-19.5 8.5-12.75 7.25-15.5 11c-2.021 2.76-7.406 6.45-10.125 8.22-.046.18-.079.35-.125.53-.134.53-.247 1.08-.375 1.63 4.98-1.61 11.18-8.18 16.625-13.63 6.25-6.25 20-7.75 27.75-11.5S76.75 138.5 89 134.5s21.25 11.75 24.25 18.5 1.75 12.75 3.75 17 11 11.75 11.5 13.5-5 6.5-6.25 8.5-10.5 7-11.75 8.75c-.97 1.35-1.92 6.77-2.31 9.22.41-.17.75-.31 1.12-.47.49-2.53 1.52-7.08 2.94-8.5 2-2 11.25-4.5 12.5-8.5s7-6.5 7-6.5 2.75 4 16 14c8.83 6.67 12.76 15.53 14.41 20.72.67.17 1.53.41 2.03.53-1.22-4.32-4.84-16.24-8.94-20.75-5-5.5-18.5-10.75-22.75-22S108 144.25 115 138.25s16.5-4 28.5 7.5 46.25 5.75 57.75 3.75c9.95-1.73 20.83 14.88 23.91 26.03.59-2.09 1.12-4 1.65-5.75-1.74-1.92-3.69-4.62-5.31-8.28-3.75-8.5-12-13.25-12-13.25s8.75-5 14.75-7.75c1.62-.74 3.01-1.68 4.19-2.66-.16-.77-.26-1.25-.44-2.09l-.09-.44c-4.77 5.56-19.24 9.62-21.66 10.94-2.75 1.5-18.25 3-35.75 4.5s-26.75-7.5-34.25-14.75-13-36-3-38 20 13.75 30 17 21.5-15.75 19.75-27c-1.2-7.734-14-12.625-24.47-12.656zm-53.34 13.281c1.27.001 5.86 1.594 6.56 2.375 2.25 2.5 2 7.25 0 8s-12.75 8-10.5 14.25 1.75 18-3.5 18-8 0-10-2.5-2-12 0-19.75 3.5-15 8-18.25c3.094-2.234 6.63-2.128 9.44-2.125zm13.59 73.095c.2.01 1.91 3.51 4.72 7.03 3 3.75 3.25 8.25 3.25 8.25s-4.25-4.75-6-8-2-7.25-2-7.25c0-.03.02-.03.03-.03z"/>%0D%0A <path opacity=".387" stroke-linejoin="round" d="M122.75 62.25c6.25.5 12.25-2.25 10.75-6.5s-12.5-7.25-13.25-3 2 10.5 2.5 9.5zM108.75 46.75c-8.5-5.5-8.5-7.25-7-8s10.25 5 12.75 8-2.25 2-5.75 0z" stroke="%236d7f42" stroke-linecap="round" fill="none"/>%0D%0A <g clip-path="url(%23j)" transform="translate(0 -10)" stroke="%236d7f42" fill="none">%0D%0A <path opacity=".387" stroke-linejoin="round" d="M15.75 151.25c33-2.5 38.25-3.5 36.25-10.25s-8.75-23.5-23-22.5-22.75-6.75-22.75-6.75" stroke-linecap="round"/>%0D%0A <path opacity=".387" d="M17.5 177.25c18.25-10 28.75-8.5 35-11.5s13.25-5.75 15.75-9.5 5.75-11.5 5.75-18-3.5-36 3.25-43.5 17.25-26 26-23.25 12.25 9.75 22 9.5S147 77 149.5 68.75s-15.75-16-16-23 5.5-14.25 20.25-17 23.5-11.5 23.5-11.5"/>%0D%0A <path opacity=".387" stroke-linejoin="round" d="M14.5 161c15.25-1.5 22.25 3.5 31.5 1.75s13.25-3 17.75-5.75 6-3.75 6.25-6.5 1-12.5-3-22S54.5 97 58.75 89.75 64 68.25 74.5 65.25 95.5 59 102.25 64s12.75 14.25 20 14.5S134 77 136.75 74s4.5-10.25 1.75-13.75-15.5-5.5-17.25-9.5-10.75-17-.25-26.75 36.25-8.25 36.25-8.25" stroke-linecap="round"/>%0D%0A <path opacity=".387" stroke-linejoin="round" d="M21.25 159c13.75 1 21.5 4.25 33.5-.5s13.5-5.25 13.75-8.75-.25-15.75-3-20-13-13.75-15.75-24.25.25-41 8.5-48.25 32-7.25 37.5-10.5 5.25-16.75 13-24.5 27-12.25 27-12.25M190 18.5c11.75 5 39 9.75 47.25 40.25M9.75 214c19-12.5 36-1.25 49-4s38.25-37.25 46-37 5.5-11.75 8.5-13.25 5.5 6 11.75 8 24.5-2.75 23.5-5.75-7-7.75-5.5-8.5 8.5 5 12.75 3.5 43.75-1 48.5-13.5 21.5-13.5 21.5-13.5M77.5 233.5c13.5-11.5 23.25-25 28.5-27s12.75-3.75 15.75-8 2.5-10.75 5.25-12 3.75 5.75 8.75 6 36.75-5 42.75-11.75 32.25-12.5 32.5-14.5-1-4.75.25-5.5 24.75-6 24.75-6M168.75 236c9-13.75 20.5-41 29.5-42s10.25-2.5 12.5-4.25 17 2.25 17 2.25" stroke-linecap="round"/>%0D%0A </g>%0D%0A <g clip-path="url(%23k)" transform="translate(0 -10)" stroke="%23d38484" stroke-linecap="round" stroke-width="2" fill="none">%0D%0A <path d="m57.75 20-8.5 28.25 18 6.25L75 90.75 54 113l9 10.5L51 135l.5 4.5L71.75 164l14-6.75 20.5 18.5L95.75 204l10.25 8.5-2.75 13"/>%0D%0A <path d="m105.75 212.25 12.5-27.75 11-7 27.5 15.75 20.5-3.75-.25-15.75-10.25-6 12.75-26.25 5.75-3.75 38.75-10"/>%0D%0A </g>%0D%0A <g opacity=".504">%0D%0A <path d="M219.25 330s-24.25 9-31.75 10.5-21 5.25-21 5.25-9.75-4.25-22-8.5-29.75-5.5-29.75-5.5-3.25 3.5-22 8-27.5 5.75-27.5 5.75-18.5-9-31.5-11.5-24-2-24.75-1.75c0 0 7.5 13 11.75 27.75S27 385.5 27 385.5l51.469 5.125 48.971-4 52.25 12.031c10.38-4.418 52.11-4.9 55.31-13.156 0 0-4.75-15.25-7.5-29.75S219.25 330 219.25 330z" fill="%23b1e479"/>%0D%0A <path d="M27 385.5s-5.5 12.75-8.25 24.75-5.75 23-5.75 23l50.969 16.37 53.721-15.74 52.25 17.53c16.36-4.26 32.39-9.12 48.06-15.41 0 0 1.75-10.5 6.75-23.75S235 385.5 235 385.5c-3.2 8.256-44.93 8.738-55.31 13.156l-52.25-12.031-47.971 4L27 385.5z" fill="%2387d531"/>%0D%0A <path d="M231.75 485.5c-17.9 7.67-35.94 14.9-54.31 21.41l-52.25-18.53-50.221 9L26 487.5s-4 10.25-7.5 24.25-5 30.75-5 30.75 9.25-2 28.5 1.25 32.25 6 32.25 6 12.75-2.75 24-6.25 16.25-6.5 16.25-6.5 5.5.5 22.5 6.25 29.25 8.5 29.25 8.5 13-2.75 26-5.75 26.5-8 26.5-8-.75-5 4.25-24.5 8.75-28 8.75-28z" fill="%23ceeeab"/>%0D%0A <path d="M13 433.25s5.75 16 9.25 30S26 487.5 26 487.5l48.969 9.88 50.221-9 52.25 18.53c18.37-6.51 36.41-13.74 54.31-21.41 0 0-.5-4.5-3.75-19.75S218 436 218 436c-15.67 6.29-31.7 11.15-48.06 15.41l-52.25-17.53-53.721 15.74L13 433.25z" fill="%23b9e787"/>%0D%0A </g>%0D%0A <g opacity=".522">%0D%0A <path d="M13.719 332.031c-2.729-.007-4.438.125-4.719.219 0 0 7.5 13 11.75 27.75S27 385.5 27 385.5s-5.5 12.75-8.25 24.75-5.75 23-5.75 23 5.75 16 9.25 30S26 487.5 26 487.5s-4 10.25-7.5 24.25-5 30.75-5 30.75 9.25-2 28.5 1.25 32.25 6 32.25 6l1.5-53.25L63.5 450l16-59.75c-2.22-15.48-9.068-30.046-14.25-44.75 0 0-18.5-9-31.5-11.5-8.125-1.563-15.483-1.956-20.031-1.969z" fill="%2383d32b"/>%0D%0A <path d="M114.75 331.75s-3.25 3.5-22 8-27.5 5.75-27.5 5.75c5.182 14.704 12.03 29.27 14.25 44.75L63.5 450l12.25 46.5-1.5 53.25s12.75-2.75 24-6.25 16.25-6.5 16.25-6.5l11.25-48.5-8.25-54.25 11.75-45c-3.44-9.727-8.06-56.93-14.5-57.5z" fill="%23b1e479"/>%0D%0A <path d="M219.25 330s-24.25 9-31.75 10.5-21 5.25-21 5.25c4.92-1.358 11.44 45.392 14.25 52.25l-11.25 53.25 9.5 55-12.75 45.5s13-2.75 26-5.75 26.5-8 26.5-8-.75-5 4.25-24.5 8.75-28 8.75-28-.5-4.5-3.75-19.75S218 436 218 436s1.75-10.5 6.75-23.75S235 385.5 235 385.5s-4.75-15.25-7.5-29.75-8.25-25.75-8.25-25.75z" fill="%23a4df62"/>%0D%0A <path d="M114.75 331.75c6.44.57 11.06 47.773 14.5 57.5l-11.75 45 8.25 53.25L114.5 537s5.5.5 22.5 6.25 29.25 8.5 29.25 8.5l12.75-45.5-9.5-55L180.75 398c-2.81-6.858-9.33-53.608-14.25-52.25 0 0-9.75-4.25-22-8.5s-29.75-5.5-29.75-5.5z" fill="%23ceeeab"/>%0D%0A </g>%0D%0A <path opacity=".039" d="M9-189.75s7.5 13 11.75 27.75S27-136.5 27-136.5s-5.5 12.75-8.25 24.75-5.75 23-5.75 23 5.75 16 9.25 30S26-34.5 26-34.5s-4 10.25-7.5 24.25-5 30.75-5 30.75 9.25-2 28.5 1.25 32.25 6 32.25 6S87 25 98.25 21.5 114.5 15 114.5 15s5.5.5 22.5 6.25 29.25 8.5 29.25 8.5 13-2.75 26-5.75 26.5-8 26.5-8S218 11 223-8.5s8.75-28 8.75-28-.5-4.5-3.75-19.75S218-86 218-86s1.75-10.5 6.75-23.75S235-136.5 235-136.5s-4.75-15.25-7.5-29.75-8.25-25.75-8.25-25.75-24.25 9-31.75 10.5-21 5.25-21 5.25-9.75-4.25-22-8.5-29.75-5.5-29.75-5.5-3.25 3.5-22 8-27.5 5.75-27.5 5.75-18.5-9-31.5-11.5-24-2-24.75-1.75z" fill="url(%23l)" transform="translate(0 192)"/>%0D%0A <g opacity=".27">%0D%0A <path fill="url(%23m)" d="M219.25-182s-24.25 9-31.75 10.5-21 5.25-21 5.25c4.92-1.36 11.44 45.39 14.25 52.25l-.06.28c11.81-4.07 51.21-4.77 54.31-12.78 0 0-4.75-15.25-7.5-29.75S219.25-182 219.25-182z" transform="translate(0 182)"/>%0D%0A <path fill="url(%23n)" d="M27-126.5s-5.5 12.75-8.25 24.75-5.75 23-5.75 23l50.625 16.281 15.781-58.911L27-126.5z" transform="translate(0 182)"/>%0D%0A <path fill="url(%23o)" d="M26-24.5S22-14.25 18.5-.25s-5 30.75-5 30.75.147-.045.438-.094c2.033-.338 11.218-1.5 28.062 1.344 19.25 3.25 32.25 6 32.25 6l1.469-52.5-.75.125L26-24.5z" transform="translate(0 182)"/>%0D%0A <path fill="url(%23p)" d="M114.75-180.25s-3.25 3.5-22 8-27.5 5.75-27.5 5.75c5.182 14.7 12.03 29.27 14.25 44.75l-.094.31 48.034-3.94 1.12.26c-3.36-13.33-7.79-54.6-13.81-55.13z" transform="translate(0 182)"/>%0D%0A <path fill="url(%23q)" d="M117.59-78.094 63.969-62.375l-.344-.094L63.5-62l12.25 46.5-.031.75 49.471-8.875.53.187.03-.062-8.25-54.25.09-.344z" transform="translate(0 182)"/>%0D%0A <path fill="url(%23r)" d="M128.56-125.12c.24.92.47 1.74.69 2.37l-11.66 44.656.1-.031L169.5-60.75l11.19-52.97c-.36.12-.7.25-1 .38l-51.13-11.78z" transform="translate(0 182)"/>%0D%0A <path fill="url(%23s)" d="M125.53-23.5 114.5 25s5.5.5 22.5 6.25c2.12.719 4.16 1.406 6.12 2.031 1.97.626 3.86 1.186 5.63 1.719 10.62 3.199 17.5 4.75 17.5 4.75l12.72-45.406c-.51.182-1.02.38-1.53.562L125.53-23.5z" transform="translate(0 182)"/>%0D%0A <path fill="url(%23t)" d="M218-76c-15.67 6.288-31.7 11.15-48.06 15.406l-.44-.156 9.5 55-.03.094c17.84-6.36 35.38-13.387 52.78-20.844 0 0-.5-4.5-3.75-19.75S218-76 218-76z" transform="translate(0 182)"/>%0D%0A </g>%0D%0A <g opacity=".043">%0D%0A <path fill="url(%23u)" d="M13.719-179.97c-1.106 0-1.972.03-2.719.06-.445.02-.855.04-1.156.07-.03 0-.066-.01-.094 0-.398.03-.656.06-.75.09 0 0 7.5 13 11.75 27.75S27-126.5 27-126.5l51.469 5.12.937-.06.094-.31c-2.22-15.48-9.068-30.05-14.25-44.75 0 0-18.5-9-31.5-11.5-1.018-.2-2.01-.37-3-.53-.596-.1-1.167-.2-1.75-.28-.237-.04-.453-.06-.688-.1a98.772 98.772 0 0 0-3.812-.46c-.735-.08-1.395-.13-2.094-.19-.685-.06-1.353-.11-2-.16-.992-.07-1.89-.12-2.781-.15-1.456-.07-2.769-.1-3.906-.1z" transform="translate(0 182)"/>%0D%0A <path fill="url(%23v)" d="M13-78.75s5.75 16 9.25 30S26-24.5 26-24.5l48.969 9.875.75-.125.031-.75L63.5-62l.125-.469L13-78.75z" transform="translate(0 182)"/>%0D%0A <path fill="url(%23w)" d="m127.44-125.38-47.971 4h-.063L63.625-62.469l.344.094 53.621-15.719 11.66-44.656c-.22-.63-.45-1.45-.69-2.37l-1.12-.26z" transform="translate(0 182)"/>%0D%0A <path fill="url(%23x)" d="M125.19-23.625 75.719-14.75l-1.469 52.5S87 35 98.25 31.5 114.5 25 114.5 25l11.22-48.438-.53-.187z" transform="translate(0 182)"/>%0D%0A <path fill="url(%23y)" d="M114.75-180.25c6.02.53 10.45 41.8 13.81 55.13l51.13 11.78c.3-.13.64-.26 1-.38l.06-.28c-2.81-6.86-9.33-53.61-14.25-52.25 0 0-.61-.25-1.72-.72-3.32-1.39-11.09-4.59-20.28-7.78-12.25-4.25-29.75-5.5-29.75-5.5z" transform="translate(0 182)"/>%0D%0A <path fill="url(%23z)" d="m117.69-78.125-.1.031-.09.344 8.25 53.25-.22 1 51.91 18.406c.51-.181 1.02-.38 1.53-.562l.03-.094-9.5-55-51.81-17.375z" transform="translate(0 182)"/>%0D%0A <path fill="url(%23A)" d="M231.75-26.5c-17.4 7.457-34.94 14.484-52.78 20.844L166.25 39.75s13-2.75 26-5.75 26.5-8 26.5-8S218 21 223 1.5s8.75-28 8.75-28z" transform="translate(0 182)"/>%0D%0A <path fill="url(%23B)" d="M235-126.5c-3.1 8.01-42.5 8.71-54.31 12.78L169.5-60.75l.44.156C186.3-64.85 202.33-69.712 218-76c0 0 1.75-10.5 6.75-23.75S235-126.5 235-126.5z" transform="translate(0 182)"/>%0D%0A </g>%0D%0A <g clip-path="url(%23C)" transform="matrix(1.2525 .0354 0 1.2525 -27.809 -48.344)">%0D%0A <path fill="%23ceeeab" d="M9 12.25s7.5 13 11.75 27.75S27 65.5 27 65.5s-5.5 12.75-8.25 24.75-5.75 23-5.75 23 5.75 16 9.25 30S26 167.5 26 167.5s-4 10.25-7.5 24.25-5 30.75-5 30.75 9.25-2 28.5 1.25 32.25 6 32.25 6 12.75-2.75 24-6.25 16.25-6.5 16.25-6.5 5.5.5 22.5 6.25 29.25 8.5 29.25 8.5 13-2.75 26-5.75 26.5-8 26.5-8-.75-5 4.25-24.5 8.75-28 8.75-28-.5-4.5-3.75-19.75S218 116 218 116s1.75-10.5 6.75-23.75S235 65.5 235 65.5s-4.75-15.25-7.5-29.75S219.25 10 219.25 10 195 19 187.5 20.5s-21 5.25-21 5.25-9.75-4.25-22-8.5-29.75-5.5-29.75-5.5-3.25 3.5-22 8-27.5 5.75-27.5 5.75-18.5-9-31.5-11.5-24-2-24.75-1.75z"/>%0D%0A <g clip-path="url(%23D)">%0D%0A <path fill="%23a6dd8b" d="m110.75 5.5-4.25 7c-.75 9-2.25 13.75-8.5 16.5s-12.25 3.5-11 7.5 13 9.25 14.25 13 8.25 1.75 11 7 2 15.25-3.75 17.25-17.5.5-20.25 9.5-4.75 10.5-9 12.75-7.25 10.5-3.5 16.5 12.25-1.25 15-6.5S98 97.25 98 97.25h23.75l59-1.75 3.25-3.75s3.25 4 2.75 8.75-3.75 14.75.25 17.25 19.5-2 24-7-4.75-28.25-10.5-29.5-18.5-1.75-17-7 11.75 4.5 17.25 3.25 16.75-21 12-25.25-24.25-5.25-25.75-8 21-8 22.25-11-2.5-7.25-6.25-8.5S189 41 182 40.5s-20 5.75-17.25 11.5-6 11-14.5 6.5-24.75-13-21.75-24S150 15.75 150 15.75L110.75 5.5zM97.188 112.72c-1.595.15-4.469 4.69-4.938 7.03-.5 2.5-3.25 6.75-3.5 12.25s4.75 6.75 8.75 6.5 2.75-6.75 2-15c-.25 0-.5-10.25-2-10.75-.094-.03-.206-.04-.312-.03zm92.722 51.66c-6.34.29-6.63 7.46-7.41 8.87-1.25 2.25 2.25 13.75 2 18s-4.75 5.25-9.5 9.75.5 16 11.25 31l44.75 1.25-1-35s4.75-4.25-20.75-24.25c-9.56-7.5-15.54-9.8-19.34-9.62zM39.94 180.91c-4.03-.11-8.282 5.71-9.688 7.59-1.5 2-6.25 5-17 9.5l-14.5 34.25 53 4.25s1.75-11-4.25-15.75-17.25-5.75-18.25-13.25 9.25-10 13.75-14.25 2-11.25-2.25-12.25a3.728 3.728 0 0 0-.812-.09z"/>%0D%0A </g>%0D%0A <path fill="%23aac3e7" d="M158.53 85.344c-4.76-.015-9.03.968-11.53 3.156-8 7-35 .75-48.5 7s-13.25 38-14.75 44.5-17.5 20.75-20 23.5-13.25 7.25-19.5 8.5-12.75 7.25-15.5 11c-2.021 2.76-7.406 6.45-10.125 8.22-.046.18-.079.35-.125.53-.134.53-.247 1.08-.375 1.63 4.98-1.61 11.18-8.18 16.625-13.63 6.25-6.25 20-7.75 27.75-11.5S76.75 148.5 89 144.5s21.25 11.75 24.25 18.5 1.75 12.75 3.75 17 11 11.75 11.5 13.5-5 6.5-6.25 8.5-10.5 7-11.75 8.75c-.97 1.35-1.92 6.77-2.31 9.22.41-.17.75-.31 1.12-.47.49-2.53 1.52-7.08 2.94-8.5 2-2 11.25-4.5 12.5-8.5s7-6.5 7-6.5 2.75 4 16 14c8.83 6.67 12.76 15.53 14.41 20.72.67.17 1.53.41 2.03.53-1.22-4.32-4.84-16.24-8.94-20.75-5-5.5-18.5-10.75-22.75-22S108 154.25 115 148.25s16.5-4 28.5 7.5 46.25 5.75 57.75 3.75c9.95-1.73 20.83 14.88 23.91 26.03.59-2.09 1.12-4 1.65-5.75-1.74-1.92-3.69-4.62-5.31-8.28-3.75-8.5-12-13.25-12-13.25s8.75-5 14.75-7.75c1.62-.74 3.01-1.68 4.19-2.66-.16-.77-.26-1.25-.44-2.09l-.09-.44c-4.77 5.56-19.24 9.62-21.66 10.94-2.75 1.5-18.25 3-35.75 4.5s-26.75-7.5-34.25-14.75-13-36-3-38 20 13.75 30 17 21.5-15.75 19.75-27c-1.2-7.734-14-12.625-24.47-12.656zm-53.34 13.281c1.27.001 5.86 1.595 6.56 2.375 2.25 2.5 2 7.25 0 8s-12.75 8-10.5 14.25 1.75 18-3.5 18-8 0-10-2.5-2-12 0-19.75 3.5-15 8-18.25c3.094-2.234 6.63-2.128 9.44-2.125zm13.59 73.095c.2.01 1.91 3.51 4.72 7.03 3 3.75 3.25 8.25 3.25 8.25s-4.25-4.75-6-8-2-7.25-2-7.25c0-.03.02-.03.03-.03z"/>%0D%0A <path opacity=".387" stroke-linejoin="round" d="M122.75 72.25c6.25.5 12.25-2.25 10.75-6.5s-12.5-7.25-13.25-3 2 10.5 2.5 9.5zM108.75 56.75c-8.5-5.5-8.5-7.25-7-8s10.25 5 12.75 8-2.25 2-5.75 0z" stroke="%236d7f42" stroke-linecap="round" fill="none"/>%0D%0A <g stroke="%236d7f42" fill="none" clip-path="url(%23E)">%0D%0A <path opacity=".387" stroke-linejoin="round" d="M15.75 151.25c33-2.5 38.25-3.5 36.25-10.25s-8.75-23.5-23-22.5-22.75-6.75-22.75-6.75" stroke-linecap="round"/>%0D%0A <path opacity=".387" d="M17.5 177.25c18.25-10 28.75-8.5 35-11.5s13.25-5.75 15.75-9.5 5.75-11.5 5.75-18-3.5-36 3.25-43.5 17.25-26 26-23.25 12.25 9.75 22 9.5S147 77 149.5 68.75s-15.75-16-16-23 5.5-14.25 20.25-17 23.5-11.5 23.5-11.5"/>%0D%0A <path opacity=".387" stroke-linejoin="round" d="M14.5 161c15.25-1.5 22.25 3.5 31.5 1.75s13.25-3 17.75-5.75 6-3.75 6.25-6.5 1-12.5-3-22S54.5 97 58.75 89.75 64 68.25 74.5 65.25 95.5 59 102.25 64s12.75 14.25 20 14.5S134 77 136.75 74s4.5-10.25 1.75-13.75-15.5-5.5-17.25-9.5-10.75-17-.25-26.75 36.25-8.25 36.25-8.25" stroke-linecap="round"/>%0D%0A <path opacity=".387" stroke-linejoin="round" d="M21.25 159c13.75 1 21.5 4.25 33.5-.5s13.5-5.25 13.75-8.75-.25-15.75-3-20-13-13.75-15.75-24.25.25-41 8.5-48.25 32-7.25 37.5-10.5 5.25-16.75 13-24.5 27-12.25 27-12.25M190 18.5c11.75 5 39 9.75 47.25 40.25M9.75 214c19-12.5 36-1.25 49-4s38.25-37.25 46-37 5.5-11.75 8.5-13.25 5.5 6 11.75 8 24.5-2.75 23.5-5.75-7-7.75-5.5-8.5 8.5 5 12.75 3.5 43.75-1 48.5-13.5 21.5-13.5 21.5-13.5M77.5 233.5c13.5-11.5 23.25-25 28.5-27s12.75-3.75 15.75-8 2.5-10.75 5.25-12 3.75 5.75 8.75 6 36.75-5 42.75-11.75 32.25-12.5 32.5-14.5-1-4.75.25-5.5 24.75-6 24.75-6M168.75 236c9-13.75 20.5-41 29.5-42s10.25-2.5 12.5-4.25 17 2.25 17 2.25" stroke-linecap="round"/>%0D%0A </g>%0D%0A <g clip-path="url(%23F)" stroke="%23d38484" stroke-linecap="round" stroke-width="2" fill="none">%0D%0A <path d="m57.75 20-8.5 28.25 18 6.25L75 90.75 54 113l9 10.5L51 135l.5 4.5L71.75 164l14-6.75 20.5 18.5L95.75 204l10.25 8.5-2.75 13"/>%0D%0A <path d="m105.75 212.25 12.5-27.75 11-7 27.5 15.75 20.5-3.75-.25-15.75-10.25-6 12.75-26.25 5.75-3.75 38.75-10"/>%0D%0A </g>%0D%0A <path opacity=".039" d="M9 12.25s7.5 13 11.75 27.75S27 65.5 27 65.5s-5.5 12.75-8.25 24.75-5.75 23-5.75 23 5.75 16 9.25 30S26 167.5 26 167.5s-4 10.25-7.5 24.25-5 30.75-5 30.75 9.25-2 28.5 1.25 32.25 6 32.25 6 12.75-2.75 24-6.25 16.25-6.5 16.25-6.5 5.5.5 22.5 6.25 29.25 8.5 29.25 8.5 13-2.75 26-5.75 26.5-8 26.5-8-.75-5 4.25-24.5 8.75-28 8.75-28-.5-4.5-3.75-19.75S218 116 218 116s1.75-10.5 6.75-23.75S235 65.5 235 65.5s-4.75-15.25-7.5-29.75S219.25 10 219.25 10 195 19 187.5 20.5s-21 5.25-21 5.25-9.75-4.25-22-8.5-29.75-5.5-29.75-5.5-3.25 3.5-22 8-27.5 5.75-27.5 5.75-18.5-9-31.5-11.5-24-2-24.75-1.75z" fill="url(%23G)"/>%0D%0A <g opacity=".27">%0D%0A <path fill="url(%23m)" d="M219.25-182s-24.25 9-31.75 10.5-21 5.25-21 5.25c4.92-1.36 11.44 45.39 14.25 52.25l-.06.28c11.81-4.07 51.21-4.77 54.31-12.78 0 0-4.75-15.25-7.5-29.75S219.25-182 219.25-182z" transform="translate(0 192)"/>%0D%0A <path fill="url(%23n)" d="M27-126.5s-5.5 12.75-8.25 24.75-5.75 23-5.75 23l50.625 16.281 15.781-58.911L27-126.5z" transform="translate(0 192)"/>%0D%0A <path fill="url(%23o)" d="M26-24.5S22-14.25 18.5-.25s-5 30.75-5 30.75.147-.045.438-.094c2.033-.338 11.218-1.5 28.062 1.344 19.25 3.25 32.25 6 32.25 6l1.469-52.5-.75.125L26-24.5z" transform="translate(0 192)"/>%0D%0A <path fill="url(%23p)" d="M114.75-180.25s-3.25 3.5-22 8-27.5 5.75-27.5 5.75c5.182 14.7 12.03 29.27 14.25 44.75l-.094.31 48.034-3.94 1.12.26c-3.36-13.33-7.79-54.6-13.81-55.13z" transform="translate(0 192)"/>%0D%0A <path fill="url(%23q)" d="M117.59-78.094 63.969-62.375l-.344-.094L63.5-62l12.25 46.5-.031.75 49.471-8.875.53.187.03-.062-8.25-54.25.09-.344z" transform="translate(0 192)"/>%0D%0A <path fill="url(%23r)" d="M128.56-125.12c.24.92.47 1.74.69 2.37l-11.66 44.656.1-.031L169.5-60.75l11.19-52.97c-.36.12-.7.25-1 .38l-51.13-11.78z" transform="translate(0 192)"/>%0D%0A <path fill="url(%23s)" d="M125.53-23.5 114.5 25s5.5.5 22.5 6.25c2.12.719 4.16 1.406 6.12 2.031 1.97.626 3.86 1.186 5.63 1.719 10.62 3.199 17.5 4.75 17.5 4.75l12.72-45.406c-.51.182-1.02.38-1.53.562L125.53-23.5z" transform="translate(0 192)"/>%0D%0A <path fill="url(%23t)" d="M218-76c-15.67 6.288-31.7 11.15-48.06 15.406l-.44-.156 9.5 55-.03.094c17.84-6.36 35.38-13.387 52.78-20.844 0 0-.5-4.5-3.75-19.75S218-76 218-76z" transform="translate(0 192)"/>%0D%0A </g>%0D%0A <g opacity=".043">%0D%0A <path fill="url(%23u)" d="M13.719-179.97c-1.106 0-1.972.03-2.719.06-.445.02-.855.04-1.156.07-.03 0-.066-.01-.094 0-.398.03-.656.06-.75.09 0 0 7.5 13 11.75 27.75S27-126.5 27-126.5l51.469 5.12.937-.06.094-.31c-2.22-15.48-9.068-30.05-14.25-44.75 0 0-18.5-9-31.5-11.5-1.018-.2-2.01-.37-3-.53-.596-.1-1.167-.2-1.75-.28-.237-.04-.453-.06-.688-.1a98.772 98.772 0 0 0-3.812-.46c-.735-.08-1.395-.13-2.094-.19-.685-.06-1.353-.11-2-.16-.992-.07-1.89-.12-2.781-.15-1.456-.07-2.769-.1-3.906-.1z" transform="translate(0 192)"/>%0D%0A <path fill="url(%23v)" d="M13-78.75s5.75 16 9.25 30S26-24.5 26-24.5l48.969 9.875.75-.125.031-.75L63.5-62l.125-.469L13-78.75z" transform="translate(0 192)"/>%0D%0A <path fill="url(%23w)" d="m127.44-125.38-47.971 4h-.063L63.625-62.469l.344.094 53.621-15.719 11.66-44.656c-.22-.63-.45-1.45-.69-2.37l-1.12-.26z" transform="translate(0 192)"/>%0D%0A <path fill="url(%23x)" d="M125.19-23.625 75.719-14.75l-1.469 52.5S87 35 98.25 31.5 114.5 25 114.5 25l11.22-48.438-.53-.187z" transform="translate(0 192)"/>%0D%0A <path fill="url(%23y)" d="M114.75-180.25c6.02.53 10.45 41.8 13.81 55.13l51.13 11.78c.3-.13.64-.26 1-.38l.06-.28c-2.81-6.86-9.33-53.61-14.25-52.25 0 0-.61-.25-1.72-.72-3.32-1.39-11.09-4.59-20.28-7.78-12.25-4.25-29.75-5.5-29.75-5.5z" transform="translate(0 192)"/>%0D%0A <path fill="url(%23z)" d="m117.69-78.125-.1.031-.09.344 8.25 53.25-.22 1 51.91 18.406c.51-.181 1.02-.38 1.53-.562l.03-.094-9.5-55-51.81-17.375z" transform="translate(0 192)"/>%0D%0A <path fill="url(%23A)" d="M231.75-26.5c-17.4 7.457-34.94 14.484-52.78 20.844L166.25 39.75s13-2.75 26-5.75 26.5-8 26.5-8S218 21 223 1.5s8.75-28 8.75-28z" transform="translate(0 192)"/>%0D%0A <path fill="url(%23B)" d="M235-126.5c-3.1 8.01-42.5 8.71-54.31 12.78L169.5-60.75l.44.156C186.3-64.85 202.33-69.712 218-76c0 0 1.75-10.5 6.75-23.75S235-126.5 235-126.5z" transform="translate(0 192)"/>%0D%0A </g>%0D%0A </g>%0D%0A <path d="M174.28 35.875c-17.6 0-35.19 6.639-48.72 19.906-.16.164-.33.303-.5.469-22.05 22.056-26.206 55.25-12.47 81.5l-2.28 1.63c2.25 4.23 4.94 8.3 8.1 12.12l-13.32 13.34c-1.34-.58-2.78-1.03-4.56-1.37l-2.842 2.84c-1.11-.48-2.139-.81-3.063-.87L30.5 229.56c-.037 1.1.226 2.19.656 3.28l-.531.54-1.094 1.09c.716 3.74 2.011 6.82 5.469 10.28s6.42 4.63 10.281 5.47l1.094-1.1.719-.71c1.088.46 2.13.78 3.094.84l64.122-64.13c-.24-.97-.62-1.93-1.03-2.9l3-3c-.25-1.73-.68-3.2-1.31-4.6l13.28-13.28c3.82 3.16 7.89 5.85 12.13 8.1l1.62-2.28c26.25 13.74 59.44 9.58 81.5-12.47.17-.17.31-.34.47-.5 26.69-27.22 26.55-70.923-.47-97.94-13.59-13.59-31.41-20.375-49.22-20.375zm-.5 3.281c.11.002.21-.002.31 0a67.89 67.89 0 0 1 5.72.375c.1.01.19.021.28.031l.29.032c.14.017.29.044.43.062.9.11 1.8.228 2.69.375.62.102 1.23.224 1.84.344.35.066.69.116 1.04.187.72.153 1.43.324 2.15.5.31.077.63.138.94.219.07.019.14.043.22.063.95.253 1.89.516 2.84.812.07.023.15.04.22.063.95.3 1.91.625 2.84.969.06.019.11.042.16.062.95.352 1.9.728 2.84 1.125.06.022.11.041.16.063.94.4 1.88.836 2.81 1.281l.13.062c.93.451 1.86.91 2.78 1.407.03.017.06.044.09.062.93.503 1.84 1.013 2.75 1.562.03.02.06.044.1.063.9.551 1.8 1.122 2.68 1.719.55.369 1.09.769 1.63 1.156.36.261.73.512 1.09.781.02.014.05.018.06.031.88.656 1.75 1.36 2.6 2.063a70.875 70.875 0 0 1 5.06 4.594c1.62 1.62 3.14 3.3 4.56 5.031.01.011.03.02.03.031.71.855 1.41 1.715 2.07 2.594.28.379.54.773.81 1.156.37.517.74 1.038 1.09 1.563.02.024.05.038.07.062.59.89 1.16 1.778 1.71 2.688.02.032.05.061.07.094a75.45 75.45 0 0 1 1.56 2.75c.02.032.04.06.06.093.5.921.96 1.844 1.41 2.781l.06.126c.45.929.88 1.868 1.28 2.812l.06.156c.4.936.78 1.895 1.13 2.844l.06.156c.35.949.67 1.885.97 2.844l.06.219c.3.941.56 1.894.82 2.843l.06.219c.08.31.14.627.22.938.17.72.35 1.432.5 2.156.07.342.12.688.18 1.031.12.617.25 1.225.35 1.844.15.893.26 1.791.37 2.688.02.145.05.291.07.437l.03.281.03.282c.1.952.19 1.912.25 2.872.06.94.11 1.9.12 2.85.01.1 0 .2 0 .31.02 1.05.01 2.1-.03 3.15-.03.94-.08 1.86-.15 2.79-.01.12-.02.25-.04.37-.07.92-.16 1.84-.28 2.75-.12.96-.27 1.93-.43 2.88-.02.08-.02.16-.04.25-.02.12-.03.25-.06.37-.16.91-.36 1.82-.56 2.72-.03.13-.06.27-.09.41a86.1 86.1 0 0 1-.69 2.65c-.17.59-.35 1.17-.53 1.75-.18.57-.34 1.13-.53 1.69-.3.86-.61 1.71-.94 2.56-.06.16-.13.32-.19.47-.04.11-.08.23-.12.34-.36.88-.73 1.73-1.13 2.6-.38.82-.77 1.63-1.19 2.44-.08.15-.16.31-.25.46-.41.8-.83 1.6-1.28 2.38-.09.17-.18.34-.28.5-.2.34-.42.66-.62 1-.37.59-.75 1.17-1.13 1.75 0 .01.01.02 0 .03-.49.75-1 1.49-1.53 2.22-.46.64-.95 1.25-1.44 1.87-.19.26-.36.53-.56.79l-.41.5c-.16.2-.33.39-.5.59-.55.67-1.13 1.32-1.72 1.97-.6.67-1.23 1.35-1.87 2-.16.16-.31.34-.47.5-21.13 21.13-52.26 24.49-77.19 11.15l.13-.18c-3.71-1.9-7.26-4.14-10.63-6.78-.54-.43-1.06-.87-1.59-1.32-.51-.43-1.03-.86-1.53-1.31-.09-.08-.19-.16-.28-.25a86.97 86.97 0 0 1-2.41-2.31c-.79-.8-1.56-1.59-2.31-2.41-.09-.09-.17-.19-.25-.28-.45-.5-.88-1.02-1.31-1.53-.45-.53-.89-1.05-1.32-1.59a65.831 65.831 0 0 1-6.78-10.63l-.19.13c-13.33-24.93-9.97-56.061 11.16-77.191.16-.163.34-.308.5-.469.65-.64 1.33-1.269 2-1.875.65-.588 1.3-1.162 1.97-1.719.27-.227.54-.465.81-.687.35-.278.72-.512 1.06-.782.63-.483 1.24-.98 1.88-1.437.74-.53 1.5-1.036 2.25-1.531.58-.383 1.16-.764 1.75-1.125.45-.274.89-.551 1.34-.813.69-.395 1.37-.757 2.07-1.125a61.343 61.343 0 0 1 3.37-1.687c.87-.397 1.72-.769 2.59-1.125.16-.062.32-.096.47-.157.97-.384 1.93-.758 2.91-1.093.56-.192 1.12-.356 1.69-.532.58-.181 1.16-.367 1.75-.531.88-.246 1.77-.48 2.65-.687.07-.017.15-.015.22-.032.42-.095.84-.193 1.25-.281.67-.141 1.36-.287 2.03-.406.09-.015.17-.017.25-.031.95-.164 1.92-.317 2.88-.438a65.183 65.183 0 0 1 9.06-.5z" clip-path="url(%23H)" transform="matrix(1 .08088 0 1 0 -21.056)" filter="url(%23I)" fill="%232d3335"/>%0D%0A <path d="m48.01 227.46-4.807 4.55c-5.007-5.31-10.24-10.7-15.08-16.13l4.491-4.07c6.829 6.53 8.872 8.53 15.396 15.65z" fill="url(%23J)"/>%0D%0A <path d="M-95.5 225c28.719 0 52 23.28 52 52s-23.281 52-52 52c-28.72 0-52-23.28-52-52s23.28-52 52-52z" fill-opacity=".476" fill="%23d0e9f2"/>%0D%0A <path d="M-82 136c-27.61 0-50-22.39-50-50 0-27.614 22.39-50 50-50 27.614 0 50 22.386 50 50 0 27.61-22.386 50-50 50zm0-3c26.51 0 48-20.49 48-47s-21.49-47-48-47-48 20.49-48 47 21.49 47 48 47z" fill="%232d3335"/>%0D%0A <path fill="%239eaaac" d="M-82 136c-27.61 0-50-22.39-50-50v-.5c.27 27.38 22.55 49.5 50 49.5 27.446 0 49.729-22.12 50-49.5.002.168 0 .332 0 .5 0 27.61-22.386 50-50 50zm-48-50.5V85c0-26.51 21.49-47 48-47s48 20.49 48 47c0 .168.002.333 0 .5C-34.27 59.234-55.658 39-82 39c-26.34 0-47.73 20.234-48 46.5z"/>%0D%0A <path d="M-82 134c26.51 0 48-21.49 48-48s-21.49-48-48-48-48 21.49-48 48 21.49 48 48 48z" fill-opacity=".476" fill="%23d0e9f2"/>%0D%0A <path d="M-82 134c26.51 0 48-21.49 48-48s-21.49-48-48-48-48 21.49-48 48 21.49 48 48 48z" fill="url(%23K)"/>%0D%0A <path fill="url(%23L)" d="m-96.438 130.72-.843 5C-92.451 137.2-87.316 138-82 138s10.451-.8 15.281-2.28l-.843-5C-72.115 132.19-76.959 133-82 133s-9.885-.81-14.438-2.28z"/>%0D%0A <path fill="url(%23M)" d="M-82 136.25c1.757 0 3.431.3 5 .81v26.63c-1.569.51-3.243.81-5 .81s-3.431-.3-5-.81v-26.63c1.569-.51 3.243-.81 5-.81z"/>%0D%0A <path d="M-82 150.5c3.514 0 5.613.65 8 2.44v67.12c-3.137.91-4.486 1.44-8 1.44s-4.863-.53-8-1.44v-67.12c2.637-1.79 4.486-2.44 8-2.44z" fill="url(%23N)"/>%0D%0A <path d="M-82 154.5c3.514 0 7.238.78 10 2.44v65.12c-2.012 1.79-6.486 2.44-10 2.44s-7.863-.15-10-2.44v-65.12c1.887-1.66 6.486-2.44 10-2.44z" fill="url(%23O)"/>%0D%0A <path d="M-82 217.5c3.514 0 5.863.78 8 2.44v5.12c-2.387 1.54-4.486 2.44-8 2.44s-5.738-.9-8-2.44v-5.12c2.387-1.91 4.486-2.44 8-2.44z" fill="url(%23P)"/>%0D%0A <path fill="%23e0bb41" d="M-82 221.5c-3.514 0-5.613.28-8 2.44v1.12c2.262 1.54 4.486 2.44 8 2.44s5.613-.9 8-2.44v-1.12c-2.512-2.04-4.486-2.44-8-2.44z"/>%0D%0A <path d="M125.06 134.69c-27.176-27.18-27.176-71.251 0-98.431 27.18-27.18 71.25-27.18 98.43 0s27.18 71.251 0 98.431-71.25 27.18-98.43 0zm2.96-2.96c26.09 26.1 67.41 27.08 93.5.99 26.1-26.1 25.11-67.416-.98-93.509-26.09-26.092-67.41-27.077-93.51-.984-26.09 26.093-25.11 67.413.99 93.503z" fill="%232d3335"/>%0D%0A <path fill="%239eaaac" d="M125.06 134.69c-27.176-27.18-27.176-71.251 0-98.431.17-.166.33-.329.5-.493-26.689 27.218-26.526 70.924.49 97.934 27.01 27.02 70.72 27.18 97.93.49-.16.17-.32.33-.49.5-27.18 27.18-71.25 27.18-98.43 0zm2.46-96.955c.17-.167.33-.327.5-.492 26.09-26.093 67.41-25.109 93.5.984 26.1 26.093 27.08 67.413.99 93.503l-.5.5c25.59-26.12 24.46-67.091-1.47-93.019-25.93-25.927-66.9-27.063-93.02-1.476z"/>%0D%0A <path d="M127.03 132.72c26.1 26.09 68.4 26.09 94.49 0 26.1-26.1 26.1-68.4 0-94.493-26.09-26.093-68.39-26.093-94.49 0-26.09 26.093-26.09 68.393 0 94.493z" fill-opacity=".476" fill="%23d0e9f2"/>%0D%0A <path d="M127.03 132.72c26.1 26.09 68.4 26.09 94.49 0 26.1-26.1 26.1-68.4 0-94.493-26.09-26.093-68.39-26.093-94.49 0-26.09 26.093-26.09 68.393 0 94.493z" fill="url(%23Q)"/>%0D%0A <path fill="url(%23R)" d="m116.05 115.28-5.75 4.09c3.3 6.21 7.56 12.05 12.8 17.28 5.23 5.24 11.07 9.5 17.28 12.8l4.09-5.75c-5.92-3.04-11.49-7.01-16.45-11.97s-8.93-10.53-11.97-16.45z"/>%0D%0A <path fill="url(%23S)" d="M124.82 134.93c1.73 1.73 3.08 3.67 4.12 5.72l-26.21 26.21a22.302 22.302 0 0 1-5.718-4.12 22.268 22.268 0 0 1-4.121-5.72l26.209-26.21c2.05 1.04 3.99 2.39 5.72 4.12z"/>%0D%0A <path d="M116.27 159.23 50.199 225.3c-3.984-2.19-5.832-3-9.29-6.46s-4.267-5.3-6.459-9.29l66.07-66.07c5.06 3.75 12.12 10.4 15.75 15.75z" fill="url(%23T)"/>%0D%0A <path d="M105.78 154.12c3.46 3.46 7.43 6.66 8.52 11.02l-64.101 64.1c-6.517-5.16-14.555-12.79-19.686-19.69l64.1-64.1c3.491.23 7.657 5.16 11.117 8.62l.05.05z" fill="url(%23U)"/>%0D%0A <path opacity=".596" d="M105.53 154.36c3.46 3.46 7.68 6.42 8.77 10.78l-64.101 64.1c-7.877-6.91-11.798-10.63-19.686-19.69l64.1-64.1c3.491.23 7.417 5.45 10.877 8.91h.04z" fill="url(%23V)"/>%0D%0A <path opacity=".604" d="M131.17 37.05c40.66-32.173 78.13-12.728 77.78 5.303s-56.57 70.357-76.37 66.117-25.45-53.389-1.41-71.42z" fill="url(%23W)"/>%0D%0A <text opacity=".461" font-weight="bold" xml:space="preserve" transform="rotate(-8.9)" font-size="19.8" y="69.184" x="99.839" font-family="Monospace" fill="url(%23X)"><tspan y="69.184" x="99.839">01011001</tspan><tspan y="93.934" x="99.839">00110101</tspan><tspan y="118.684" x="99.839">10010011</tspan></text>%0D%0A <text font-weight="bold" xml:space="preserve" transform="rotate(-8.9)" font-size="19.8" y="67.898" x="99.41" font-family="Monospace" fill="url(%23Y)"><tspan y="67.898" x="99.41">01011001</tspan><tspan y="92.648" x="99.41">00110101</tspan><tspan y="117.398" x="99.41">10010011</tspan></text>%0D%0A <path opacity=".765" d="M219.46 129.09c-26.79 21.98-41.81 21.01-38.07 13.14 3.73-7.87 42.32-41.66 51.45-43.75 9.12-2.093 2.27 18.04-13.38 30.61z" fill="url(%23Z)"/>%0D%0A</svg>%0D%0A';var vr=`data:image/svg+xml;utf8,${encodeURIComponent(pa)}`;uo();var fa,ma,va,ga,ba,_a,ya,ka,wa,Sa,De=class extends io{constructor(){super(...arguments);this.name="hot-header";He(this,fa,"");He(this,ma,"");He(this,va,!0);He(this,ga,[]);He(this,ba,"small");He(this,_a,!0);He(this,ya,0);He(this,ka,!1);He(this,wa,!1);He(this,Sa,"user")}get title(){return Fe(this,fa)}set title(e){Re(this,fa,e)}get logo(){return Fe(this,ma)}set logo(e){Re(this,ma,e)}get drawer(){return Fe(this,va)}set drawer(e){Re(this,va,e)}get tabs(){return Fe(this,ga)}set tabs(e){Re(this,ga,e)}get size(){return Fe(this,ba)}set size(e){Re(this,ba,e)}get borderBottom(){return Fe(this,_a)}set borderBottom(e){Re(this,_a,e)}get selectedTab(){return Fe(this,ya)}set selectedTab(e){Re(this,ya,e)}get showLogin(){return Fe(this,ka)}set showLogin(e){Re(this,ka,e)}get loginModalOpen(){return Fe(this,wa)}set loginModalOpen(e){Re(this,wa,e)}get defaultLoginIcon(){return Fe(this,Sa)}set defaultLoginIcon(e){Re(this,Sa,e)}async connectedCallback(){super.connectedCallback(),await ha("https://dev.login.hotosm.org",{shadow:!1,sessionCheckInterval:3e4}).catch(e=>{})}selectTab(e){console.log(e),this.tabs=[...this.tabs],this.selectedTab=e}render(){let e=typeof this.logo=="string"||this.logo instanceof URL?typeof this.logo=="string"?this.logo:this.logo.href:"";return be`
579
- <header class=${lo({size:this.size,borderBottom:this.borderBottom})}>
580
- <a href="/" class="header--link">
581
- ${e.length>0?be`
582
- <img
583
- id="logo"
584
- src="${this.logo}"
585
- alt="Logo"
586
- class="header--logo-img"
587
- />
588
- `:be`
589
- <hot-logo
590
- ?iconOnly="${this.title.length>0}"
591
- >
592
- </hot-logo>
593
- `}
594
- ${this.title.length>0?be`
595
- <h1 class="header--title">
596
- ${this.title}
597
- </h1>
598
- `:null}
599
- </a>
600
-
601
- ${""}
602
- <nav
603
- class="header--nav"
604
- >
605
- ${this.tabs.length>0?be`
606
- <wa-tab-group class="header--tab-group">
607
- ${this.tabs.map((o,i)=>{let s=this.selectedTab===i?"header--tab header--tab-active":"header--tab";return be`
608
- <wa-tab
609
- panel="${o.label}"
610
- class="${s}"
611
- slot="nav"
612
- @click=${l=>this._tabClick(l,o.clickEvent,i)}
613
- >
614
- ${o.label}
615
- </wa-tab>
616
- `})}
617
- </wa-tab-group>
618
- `:null}
619
- </nav>
620
-
621
- ${""}
622
- ${""}
623
- <nav
624
- class="header--nav-mobile"
625
- ></nav>
626
-
627
- <div id="right-section" class="header--right-section">
628
- ${this.showLogin?be`
629
- <wa-button
630
- variant="brand"
631
- class="login-button"
632
- @click=${()=>this._handleLogin()}
633
- >
634
- Login
635
- </wa-button>
636
- `:null}
637
- ${this.drawer?be`
638
- <wa-button>
639
- <wa-icon library="hot-icons" name="list" label="drawer-open" class="header--drawer">
640
- </wa-icon>
641
- </wa-button>
642
- `:null}
643
- </div>
644
-
645
- <!-- Login Modal -->
646
- ${this.showLogin?be`
647
- <wa-dialog
648
- class="login-modal"
649
- ?open=${this.loginModalOpen}
650
- @wa-hide=${()=>this._handleModalClose()}
651
- >
652
- <wa-button @click=${()=>this._handleModalClose()}>
653
- <wa-icon library="hot-icons" name="close" label="cross">
654
- Close
655
- </wa-icon>
656
- </wa-button>
657
-
658
- <hanko-auth></hanko-auth>
659
- </wa-dialog>
660
- `:null}
661
- </header>
662
-
663
- <!-- Here we must directly include the hanko style overrides, as it includes a SVG -->
664
- <!-- Note we can't remove the existing svg, so need to hide and override it -->
665
- <!-- THIS ISN'T WORKING WELL. We can either try and fix the styling or perhaps manipulate the DOM via Javascript instead?? -->
666
- <style>
667
- .hanko_form #icon-custom-provider {
668
- display: none;
669
- }
670
-
671
- .hanko_form .hanko_loadingSpinnerWrapperIcon:has(#icon-custom-provider) {
672
- background: url("${vr}") no-repeat center center;
673
- background-size: contain;
674
- display: inline-flex;
675
- align-items: center;
676
- height: 100%;
677
- margin: 0 5px;
678
- justify-content: inherit;
679
- flex-wrap: inherit;
680
- width: 100%;
681
- column-gap: 10px;
682
- margin-left: 10px;
683
- }
684
- </style>
685
- `}_tabClick(e,o,i){this.selectTab(i),o()}_handleLogin(){this.loginModalOpen=!0,this.dispatchEvent(new Event("login"))}_handleModalClose(){this.loginModalOpen=!1}};fa=new WeakMap,ma=new WeakMap,va=new WeakMap,ga=new WeakMap,ba=new WeakMap,_a=new WeakMap,ya=new WeakMap,ka=new WeakMap,wa=new WeakMap,Sa=new WeakMap,De.styles=[co],We([oe({type:String})],De.prototype,"title",1),We([oe({type:String})],De.prototype,"logo",1),We([oe({type:Boolean})],De.prototype,"drawer",1),We([oe({type:Array})],De.prototype,"tabs",1),We([oe({type:String})],De.prototype,"size",1),We([oe({type:Boolean})],De.prototype,"borderBottom",1),We([oe({type:Number})],De.prototype,"selectedTab",1),We([oe({type:Boolean})],De.prototype,"showLogin",1),We([oe({type:Boolean})],De.prototype,"loginModalOpen",1),We([oe({type:String,attribute:"default-login-icon"})],De.prototype,"defaultLoginIcon",1);var Vl=De;export{De as a,Vl as b};
686
- /*! Bundled license information:
687
-
688
- @teamhanko/hanko-elements/dist/elements.js:
689
- (*! For license information please see elements.js.LICENSE.txt *)
690
- */