@flarehr/apollo-super-selection 3.46.58109 → 3.49.59238
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.
- package/dist/lib/apollo-super-selection/apollo-super-selection.esm.js +1 -1
- package/dist/lib/apollo-super-selection/{p-ec5b6efc.system.entry.js → p-a274c43b.system.entry.js} +1 -1
- package/dist/lib/apollo-super-selection/{p-13023a73.entry.js → p-c0a05fd3.entry.js} +1 -1
- package/dist/lib/apollo-super-selection/p-d82b00ed.system.js +1 -1
- package/dist/lib/cjs/fl-button_31.cjs.entry.js +7 -9
- package/dist/lib/collection/components/super-selection-app/super-choice-page/super-choice-item.js +5 -6
- package/dist/lib/collection/components/super-selection-app/super-choice-page/super-choice-page.js +6 -8
- package/dist/lib/esm/fl-button_31.entry.js +7 -9
- package/dist/lib/esm-es5/fl-button_31.entry.js +1 -1
- package/dist/lib/types/components/super-selection-app/super-choice-page/super-choice-item.d.ts +2 -2
- package/dist/lib/types/components.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as t,h as n,c as e,g as i,f as r,H as o,a as s,d as a,e as u,s as c}from"./p-082669d9.js";import{f as l,m as f,S as d,a as h,i as p,d as v,b as m,c as b,g as w,Q as g}from"./p-df9ce4b7.js";import{g as y,O as x,j as k,k as S,a as C}from"./p-342cee5a.js";import{A}from"./p-61734b66.js";function _(){}function E(t,n,e=Number.POSITIVE_INFINITY){return"function"==typeof n?i=>i.pipe(E(((e,i)=>l(t(e,i)).pipe(f(((t,r)=>n(e,t,i,r))))),e)):("number"==typeof n&&(e=n),n=>n.lift(new B(t,e)))}class B{constructor(t,n=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=n}call(t,n){return n.subscribe(new F(t,this.project,this.concurrent))}}class F extends d{constructor(t,n,e=Number.POSITIVE_INFINITY){super(t),this.project=n,this.concurrent=e,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)}_tryNext(t){let n;const e=this.index++;try{n=this.project(t,e)}catch(t){return void this.destination.error(t)}this.active++,this._innerSub(n)}_innerSub(t){const n=new h(this),e=this.destination;e.add(n);const i=p(t,n);i!==n&&e.add(i)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(t){this.destination.next(t)}notifyComplete(){const t=this.buffer;this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function j(t,n,e,i){return k(e)&&(i=e,e=void 0),i?j(t,n,e).pipe(f((t=>y(t)?i(...t):i(t)))):new x((i=>{I(t,n,(function(t){i.next(arguments.length>1?Array.prototype.slice.call(arguments):t)}),i,e)}))}function I(t,n,e,i,r){let o;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const i=t;t.addEventListener(n,e,r),o=()=>i.removeEventListener(n,e,r)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const i=t;t.on(n,e),o=()=>i.off(n,e)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const i=t;t.addListener(n,e),o=()=>i.removeListener(n,e)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let o=0,s=t.length;o<s;o++)I(t[o],n,e,i,r)}i.add(o)}class M{constructor(t,n){this.dueTime=t,this.scheduler=n}call(t,n){return n.subscribe(new T(t,this.dueTime,this.scheduler))}}class T extends C{constructor(t,n,e){super(t),this.dueTime=n,this.scheduler=e,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(P,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function P(t){t.debouncedNext()}function R(t,n,e){return function(i){return i.lift(new N(t,n,e))}}class N{constructor(t,n,e){this.nextOrObserver=t,this.error=n,this.complete=e}call(t,n){return n.subscribe(new D(t,this.nextOrObserver,this.error,this.complete))}}class D extends C{constructor(t,n,e,i){super(t),this._tapNext=_,this._tapError=_,this._tapComplete=_,this._tapError=e||_,this._tapComplete=i||_,k(n)?(this._context=this,this._tapNext=n):n&&(this._context=n,this._tapNext=n.next||_,this._tapError=n.error||_,this._tapComplete=n.complete||_)}_next(t){try{this._tapNext.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}var O=function(t){return"Some"===t._tag},U=function(t){return"None"===t._tag},L={_tag:"None"},q=function(t){return{_tag:"Some",value:t}};function z(t){return null==t?L:q(t)}class V{constructor(t){this.factory=t,this._value=L}get value(){if(O(this._value))return this._value.value;const t=this.factory();return this._value=q(t),t}}function H(t){A.injectProps(t,["history","location"])}const W=new RegExp(["(\\\\.)","(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?"].join("|"),"g"),$=t=>t.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),X=t=>t.replace(/([=!:$/()])/g,"\\$1"),J=t=>t&&t.sensitive?"":"i",G=(t,n,e)=>{for(var i=(e=e||{}).strict,r=!1!==e.end,o=$(e.delimiter||"/"),s=e.delimiters||"./",a=[].concat(e.endsWith||[]).map($).concat("$").join("|"),u="",c=!1,l=0;l<t.length;l++){var f=t[l];if("string"==typeof f)u+=$(f),c=l===t.length-1&&s.indexOf(f[f.length-1])>-1;else{var d=$(f.prefix||""),h=f.repeat?"(?:"+f.pattern+")(?:"+d+"(?:"+f.pattern+"))*":f.pattern;n&&n.push(f),u+=f.optional?f.partial?d+"("+h+")?":"(?:"+d+"("+h+"))?":d+"("+h+")"}}return r?(i||(u+="(?:"+o+")?"),u+="$"===a?"$":"(?="+a+")"):(i||(u+="(?:"+o+"(?="+a+"))?"),c||(u+="(?="+o+"|"+a+")")),new RegExp("^"+u,J(e))},K=(t,n,e)=>t instanceof RegExp?((t,n)=>{if(!n)return t;var e=t.source.match(/\((?!\?)/g);if(e)for(var i=0;i<e.length;i++)n.push({name:i,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,pattern:null});return t})(t,n):Array.isArray(t)?((t,n,e)=>{for(var i=[],r=0;r<t.length;r++)i.push(K(t[r],n,e).source);return new RegExp("(?:"+i.join("|")+")",J(e))})(t,n,e):((t,n,e)=>G(((t,n)=>{for(var e,i=[],r=0,o=0,s="",a=n&&n.delimiter||"/",u=n&&n.delimiters||"./",c=!1;null!==(e=W.exec(t));){var l=e[0],f=e[1],d=e.index;if(s+=t.slice(o,d),o=d+l.length,f)s+=f[1],c=!0;else{var h="",p=t[o],v=e[2],m=e[3],b=e[4],w=e[5];if(!c&&s.length){var g=s.length-1;u.indexOf(s[g])>-1&&(h=s[g],s=s.slice(0,g))}s&&(i.push(s),s="",c=!1);var y=h||a,x=m||b;i.push({name:v||r++,prefix:h,delimiter:y,optional:"?"===w||"*"===w,repeat:"+"===w||"*"===w,partial:""!==h&&void 0!==p&&p!==h,pattern:x?X(x):"[^"+$(y)+"]+?"})}}return(s||o<t.length)&&i.push(s+t.substr(o)),i})(t,e),n,e))(t,n,e),Y=(t,n)=>new RegExp("^"+n+"(\\/|\\?|#|$)","i").test(t),Q=(t,n)=>Y(t,n)?t.substr(n.length):t,Z=t=>"/"===t.charAt(t.length-1)?t.slice(0,-1):t,tt=t=>"/"===t.charAt(0)?t:"/"+t,nt=t=>"/"===t.charAt(0)?t.substr(1):t,et=t=>{const{pathname:n,search:e,hash:i}=t;let r=n||"/";return e&&"?"!==e&&(r+="?"===e.charAt(0)?e:"?"+e),i&&"#"!==i&&(r+="#"===i.charAt(0)?i:"#"+i),r},it=t=>"/"===t.charAt(0),rt=t=>Math.random().toString(36).substr(2,t),ot=(t,n)=>{for(let e=n,i=e+1,r=t.length;i<r;e+=1,i+=1)t[e]=t[i];t.pop()},st=(t,n)=>{if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every(((t,e)=>st(t,n[e])));const e=typeof t;if(e!==typeof n)return!1;if("object"===e){const e=t.valueOf(),i=n.valueOf();if(e!==t||i!==n)return st(e,i);const r=Object.keys(t),o=Object.keys(n);return r.length===o.length&&r.every((e=>st(t[e],n[e])))}return!1},at=(t,n,e,i)=>{let r;"string"==typeof t?(r=(t=>{let n=t||"/",e="",i="";const r=n.indexOf("#");-1!==r&&(i=n.substr(r),n=n.substr(0,r));const o=n.indexOf("?");return-1!==o&&(e=n.substr(o),n=n.substr(0,o)),{pathname:n,search:"?"===e?"":e,hash:"#"===i?"":i,query:{},key:""}})(t),void 0!==n&&(r.state=n)):(r=Object.assign({pathname:""},t),r.search&&"?"!==r.search.charAt(0)&&(r.search="?"+r.search),r.hash&&"#"!==r.hash.charAt(0)&&(r.hash="#"+r.hash),void 0!==n&&void 0===r.state&&(r.state=n));try{r.pathname=decodeURI(r.pathname)}catch(t){throw t instanceof URIError?new URIError('Pathname "'+r.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):t}var o;return r.key=e,i?r.pathname?"/"!==r.pathname.charAt(0)&&(r.pathname=((t,n="")=>{let e,i=n&&n.split("/")||[],r=0;const o=t&&t.split("/")||[],s=t&&it(t),a=n&&it(n),u=s||a;if(t&&it(t)?i=o:o.length&&(i.pop(),i=i.concat(o)),!i.length)return"/";if(i.length){const t=i[i.length-1];e="."===t||".."===t||""===t}else e=!1;for(let t=i.length;t>=0;t--){const n=i[t];"."===n?ot(i,t):".."===n?(ot(i,t),r++):r&&(ot(i,t),r--)}if(!u)for(;r--;r)i.unshift("..");!u||""===i[0]||i[0]&&it(i[0])||i.unshift("");let c=i.join("/");return e&&"/"!==c.substr(-1)&&(c+="/"),c})(r.pathname,i.pathname)):r.pathname=i.pathname:r.pathname||(r.pathname="/"),r.query=(o=r.search||"")?(/^[?#]/.test(o)?o.slice(1):o).split("&").reduce(((t,n)=>{let[e,i]=n.split("=");return t[e]=i?decodeURIComponent(i.replace(/\+/g," ")):"",t}),{}):{},r};let ut=0;const ct={},lt=(t,n={})=>{"string"==typeof n&&(n={path:n});const{path:e="/",exact:i=!1,strict:r=!1}=n,{re:o,keys:s}=((t,n)=>{const e=`${n.end}${n.strict}`,i=ct[e]||(ct[e]={}),r=JSON.stringify(t);if(i[r])return i[r];const o=[],s={re:K(t,o,n),keys:o};return ut<1e4&&(i[r]=s,ut+=1),s})(e,{end:i,strict:r}),a=o.exec(t);if(!a)return null;const[u,...c]=a,l=t===u;return i&&!l?null:{path:e,url:"/"===e&&""===u?"/":u,isExact:l,params:s.reduce(((t,n,e)=>(t[n.name]=c[e],t)),{})}},ft=class{constructor(n){t(this,n),this.isBlockElement=!1,this.disabled=!1,this.variant="primary"}render(){return n("button",{class:{"btn position-relative px-3 py-2":!0,"is-primary":"primary"===this.variant,"is-secondary":"secondary"===this.variant,"btn-block":this.isBlockElement,disabled:this.disabled},style:{"pointer-events":this.disabled?"none":"auto"},disabled:this.disabled},n("span",{class:"label"},n("slot",null)))}};ft.style=":host button,:host button:focus,:host button:active,:host button.focus,:host button.active{-webkit-box-shadow:none;box-shadow:none;border-radius:var(--fl-rounding-button) !important}:host button.disabled,:host button:disabled{opacity:1 !important;cursor:not-allowed !important;color:var(--fl-color-disabled)}:host button .label{font-weight:600 !important}:host button.is-primary{color:var(--fl-color-primary-text);background-color:var(--fl-color-primary);border:none}:host button.is-primary.disabled,:host button.is-primary:disabled{background-color:var(--fl-color-primary-disabled)}:host button.is-primary:hover:not(.disabled),:host button.is-primary:hover:not(:disabled){background-color:var(--fl-color-primary-hover)}:host button.is-primary:active:not(.disabled),:host button.is-primary:active:not(:disabled){background-color:var(--fl-color-primary-focus)}:host button.is-secondary{color:var(--fl-color-secondary-text);background-color:var(--fl-color-secondary)}:host button.is-secondary.disabled,:host button.is-secondary:disabled{background-color:var(--fl-color-secondary-disabled)}:host button.is-secondary:hover:not(.disabled),:host button.is-secondary:hover:not(:disabled){background-color:var(--fl-color-secondary-hover)}:host button.is-secondary:active:not(.disabled),:host button.is-secondary:active:not(:disabled){background-color:var(--fl-color-secondary-focus)}:host button.is-block{display:block}:host button:disabled,:host button.disabled{pointer-events:none}";var dt={compareTwoStrings:ht,findBestMatch:function(t,n){if(!function(t,n){return"string"==typeof t&&!!Array.isArray(n)&&!!n.length&&!n.find((t=>"string"!=typeof t))}(t,n))throw new Error("Bad arguments: First argument should be a string, second should be an array of strings");const e=[];let i=0;for(let r=0;r<n.length;r++){const o=n[r],s=ht(t,o);e.push({target:o,rating:s}),s>e[i].rating&&(i=r)}return{ratings:e,bestMatch:e[i],bestMatchIndex:i}}};function ht(t,n){if(t=t.replace(/\s+/g,""),n=n.replace(/\s+/g,""),!t.length&&!n.length)return 1;if(!t.length||!n.length)return 0;if(t===n)return 1;if(1===t.length&&1===n.length)return 0;if(t.length<2||n.length<2)return 0;let e=new Map;for(let n=0;n<t.length-1;n++){const i=t.substring(n,n+2),r=e.has(i)?e.get(i)+1:1;e.set(i,r)}let i=0;for(let t=0;t<n.length-1;t++){const r=n.substring(t,t+2),o=e.has(r)?e.get(r):0;o>0&&(e.set(r,o-1),i++)}return 2*i/(t.length+n.length-2)}const pt=class{constructor(i){t(this,i),this.valueChanged=e(this,"valueChanged",7),this.required=!1,this.disabled=!1,this.isMouseOver=!1,this.inputValue="",this.isDropdownVisible=!1,this.filteredOptions=[],this.renderFilteredResults=()=>0===this.filteredOptions.length?n("span",{class:"dropdown-item disabled"},"No items match your search"):this.filteredOptions.map(((t,e)=>n("span",{class:{"dropdown-item text-wrap":!0,selected:this.isOptionSelected(t),active:this.highlightedOptionIndex===e},onClick:()=>{this.toggleDropdown(!1),this.selectOption(t)}},n("span",null,t.label)))),this.filterResults=t=>{this.filteredOptions=this.sortOptionsByRelevancy(this._options.filter((n=>n.label.toLowerCase().includes(t.toLowerCase()))),t),this.highlightedOptionIndex=void 0},this.selectOption=t=>{this.selectedOption=t,this.inputValue=t.label,this.valueChanged.emit(t)},this.isOptionSelected=t=>{var n;return(null===(n=this.selectedOption)||void 0===n?void 0:n.label)===t.label},this.toggleDropdown=t=>{this.isDropdownVisible=t},this.resetInput=()=>{var t,n;this.inputValue=null!==(n=null===(t=this.selectedOption)||void 0===t?void 0:t.label)&&void 0!==n?n:"",this.filteredOptions=this._options},this.processKeyboardNavigation=t=>{switch(t.key){case"ArrowDown":return this.toggleDropdown(!0),this.highlightNextItem(),!0;case"ArrowUp":return this.highlightPreviousItem(),!0;case"Enter":return void 0!==this.highlightedOptionIndex&&(this.toggleDropdown(!1),this.selectOption(this.filteredOptions[this.highlightedOptionIndex])),!0;case"Escape":return this.inputElement.blur(),!0}return!1},this.highlightPreviousItem=()=>{0!==this.filteredOptions.length&&(this.highlightedOptionIndex=void 0===this.highlightedOptionIndex?0:Math.max(this.highlightedOptionIndex-1,0))},this.highlightNextItem=()=>{0!==this.filteredOptions.length&&(this.highlightedOptionIndex=void 0===this.highlightedOptionIndex?0:Math.min(this.highlightedOptionIndex+1,this.filteredOptions.length-1))}}get _options(){if(void 0===this.options)throw new Error("Can't render <fl-dropdown /> component with no options");return this.options}componentWillLoad(){var t,n;this.filteredOptions=this._options,this.selectedOption=this._options.find((t=>t.value===this.value)),this.inputValue=null!==(n=null===(t=this.selectedOption)||void 0===t?void 0:t.label)&&void 0!==n?n:""}handleFocus(){this.toggleDropdown(!0)}handleBlur(){this.isMouseOver||(this.toggleDropdown(!1),this.resetInput())}handleKeyDown(t){this.processKeyboardNavigation(t)&&t.preventDefault()}onOptionsChanged(){this.filteredOptions=this._options}onValueChanged(){var t,n;this.selectedOption=this._options.find((t=>t.value===this.value)),this.inputValue=null!==(n=null===(t=this.selectedOption)||void 0===t?void 0:t.label)&&void 0!==n?n:""}render(){var t;return[n("div",{class:"dropdown"},n("input",{type:"text",class:"form-control custom-select",placeholder:this.placeholder,required:this.required,disabled:this.disabled,value:this.inputValue,onInput:t=>{const n=t.target.value;this.inputValue=n,this.filterResults(n),this.toggleDropdown(!0)},ref:t=>this.inputElement=t}),n("div",{class:{"invalid-feedback":!0,"d-none":this.isDropdownVisible}},null!==(t=this.requiredValidationMessage)&&void 0!==t?t:"Required."),n("div",{class:{"dropdown-menu shadow mt-0 w-100 overflow-auto":!0,show:this.isDropdownVisible},onMouseEnter:()=>this.isMouseOver=!0,onMouseLeave:()=>this.isMouseOver=!1},this.renderFilteredResults()))]}sortOptionsByRelevancy(t,n){return t.map((t=>Object.assign(Object.assign({},t),{relevancyScore:dt.compareTwoStrings(t.label.toLowerCase(),n.toLowerCase())}))).sort(((t,n)=>n.relevancyScore-t.relevancyScore)).map((t=>({label:t.label,value:t.value})))}static get watchers(){return{options:["onOptionsChanged"],value:["onValueChanged"]}}};pt.style="fl-dropdown .dropdown-menu{max-height:min(20rem, 50vh)}fl-dropdown .dropdown-menu .dropdown-item{cursor:pointer}fl-dropdown .dropdown-menu .dropdown-item.selected{background-color:rgba(253, 189, 0, 0.5)}";const vt=class{constructor(i){t(this,i),this.valueChanged=e(this,"valueChanged",7),this.required=!1,this.disabled=!1,this.minSearchStringLength=3,this.isMouseOver=!1,this.searchState="pristine",this.inputValue="",this.isDropdownVisible=!1,this.filteredOptions=[],this.shouldExecuteSearch=t=>{var n;return this.isDropdownVisible&&(null==t?void 0:t.length)>=this.minSearchStringLength&&(null===(n=this.selectedOption)||void 0===n?void 0:n.label)!==t},this.onBeginSearch=t=>{this.inputValue=t,this.searchState="in progress"},this.onCompleteSearch=t=>{this.filteredOptions=t,this.highlightedOptionIndex=void 0,this.searchState="done"},this.renderFilteredResults=()=>"pristine"===this.searchState?n("span",{class:"dropdown-item disabled"},"Start typing to find the results"):"in progress"===this.searchState?n("div",{class:"d-flex justify-content-end align-items-center pr-4"},n("span",{class:"dropdown-item disabled"},"Searching..."),n("i",{class:"dot-falling"})):0===this.filteredOptions.length?n("span",{class:"dropdown-item disabled"},"No items match your search"):this.filteredOptions.map(((t,e)=>n("span",{class:{"dropdown-item text-wrap":!0,selected:this.isOptionSelected(t),active:this.highlightedOptionIndex===e},onClick:()=>{this.toggleDropdown(!1),this.selectOption(t)}},t.label))),this.resetInput=()=>{var t,n;this.inputValue=null!==(n=null===(t=this.selectedOption)||void 0===t?void 0:t.label)&&void 0!==n?n:""},this.toggleDropdown=t=>{this.isDropdownVisible=t},this.processKeyboardNavigation=t=>{switch(t.key){case"ArrowDown":return this.toggleDropdown(!0),this.highlightNextItem(),!0;case"ArrowUp":return this.highlightPreviousItem(),!0;case"Enter":return void 0!==this.highlightedOptionIndex&&(this.toggleDropdown(!1),this.selectOption(this.filteredOptions[this.highlightedOptionIndex])),!0;case"Escape":return this.inputElement.blur(),!0}return!1},this.highlightPreviousItem=()=>{0!==this.filteredOptions.length&&(this.highlightedOptionIndex=void 0===this.highlightedOptionIndex?0:Math.max(this.highlightedOptionIndex-1,0))},this.highlightNextItem=()=>{0!==this.filteredOptions.length&&(this.highlightedOptionIndex=void 0===this.highlightedOptionIndex?0:Math.min(this.highlightedOptionIndex+1,this.filteredOptions.length-1))},this.selectOption=t=>{this.selectedOption=t,this.inputValue=t.label,this.valueChanged.emit(t)},this.isOptionSelected=t=>{var n;return(null===(n=this.selectedOption)||void 0===n?void 0:n.label)===t.label}}componentWillLoad(){this.selectedOption=this.value}componentDidLoad(){this.searchResultsSubscription=j(this.inputElement,"keyup").pipe(function(t,n=S){return e=>e.lift(new M(t,n))}(500),f((()=>this.inputElement.value)),v(),m(this.shouldExecuteSearch),R(this.onBeginSearch),E(this._searchFunction),R(this.onCompleteSearch)).subscribe()}componentDidUnload(){this.searchResultsSubscription.unsubscribe()}handleFocus(){this.toggleDropdown(!0)}handleBlur(){this.isMouseOver||(this.toggleDropdown(!1),this.highlightedOptionIndex=void 0,this.resetInput())}handleKeyDown(t){this.processKeyboardNavigation(t)&&t.preventDefault()}render(){var t;return[n("div",{class:"dropdown"},n("input",{type:"text",class:"form-control",placeholder:this.placeholder,required:this.required,disabled:this.disabled,value:this.inputValue,ref:t=>this.inputElement=t}),n("div",{class:{"invalid-feedback":!0,"d-none":this.isDropdownVisible}},null!==(t=this.requiredValidationMessage)&&void 0!==t?t:"Required."),n("div",{class:{"dropdown-menu shadow mt-0 w-100 overflow-auto":!0,show:this.isDropdownVisible},onMouseEnter:()=>this.isMouseOver=!0,onMouseLeave:()=>this.isMouseOver=!1},this.renderFilteredResults()))]}get _searchFunction(){if(void 0===this.searchFunction)throw new Error("Can't render <fl-dropdown-async/> component with no searchFunction");return this.searchFunction}};vt.style="fl-dropdown .dropdown-menu{max-height:min(20rem, 50vh)}fl-dropdown .dropdown-menu .dropdown-item{cursor:pointer}fl-dropdown .dropdown-menu .dropdown-item.selected{background-color:rgba(253, 189, 0, 0.5)}";const mt=class{constructor(n){t(this,n),this.theme="default"}render(){return n("span",{class:{"dots-container d-inline-flex justify-content-center":!0}},n("span",{class:{"dot-flashing":!0,"theme-default":"default"===this.theme,"theme-dark":"dark"===this.theme}}))}};var bt;mt.style='fl-loading-indicator .dots-container{width:36px}fl-loading-indicator .dot-flashing.theme-default{position:relative;width:8px;height:8px;border-radius:4px;background-color:#66efc5;color:#9880ff;-webkit-animation:dot-flashing-default 2s infinite linear;animation:dot-flashing-default 2s infinite linear;-webkit-animation-delay:0.5s;animation-delay:0.5s}@-webkit-keyframes dot-flashing-default{0%{background-color:#66efc5}25%{background-color:#12aa7c}50%,100%{background-color:#66efc5}}@keyframes dot-flashing-default{0%{background-color:#66efc5}25%{background-color:#12aa7c}50%,100%{background-color:#66efc5}}fl-loading-indicator .dot-flashing.theme-default::before,fl-loading-indicator .dot-flashing.theme-default::after{content:"";display:inline-block;position:absolute;top:0}fl-loading-indicator .dot-flashing.theme-default::before{left:-12px;width:8px;height:8px;border-radius:4px;background-color:#66efc5;color:#9880ff;-webkit-animation:dot-flashing-default 2s infinite linear;animation:dot-flashing-default 2s infinite linear;-webkit-animation-delay:0s;animation-delay:0s}@keyframes dot-flashing-default{0%{background-color:#66efc5}25%{background-color:#12aa7c}50%,100%{background-color:#66efc5}}fl-loading-indicator .dot-flashing.theme-default::after{left:12px;width:8px;height:8px;border-radius:4px;background-color:#66efc5;color:#9880ff;-webkit-animation:dot-flashing-default 2s infinite linear;animation:dot-flashing-default 2s infinite linear;-webkit-animation-delay:1s;animation-delay:1s}@keyframes dot-flashing-default{0%{background-color:#66efc5}25%{background-color:#12aa7c}50%,100%{background-color:#66efc5}}fl-loading-indicator .dot-flashing.theme-dark{position:relative;width:8px;height:8px;border-radius:4px;background-color:#a7a7a7;color:#9880ff;-webkit-animation:dot-flashing-dark 2s infinite linear;animation:dot-flashing-dark 2s infinite linear;-webkit-animation-delay:0.5s;animation-delay:0.5s}@-webkit-keyframes dot-flashing-dark{0%{background-color:#a7a7a7}25%{background-color:#5b5a5a}50%,100%{background-color:#a7a7a7}}@keyframes dot-flashing-dark{0%{background-color:#a7a7a7}25%{background-color:#5b5a5a}50%,100%{background-color:#a7a7a7}}fl-loading-indicator .dot-flashing.theme-dark::before,fl-loading-indicator .dot-flashing.theme-dark::after{content:"";display:inline-block;position:absolute;top:0}fl-loading-indicator .dot-flashing.theme-dark::before{left:-12px;width:8px;height:8px;border-radius:4px;background-color:#a7a7a7;color:#9880ff;-webkit-animation:dot-flashing-dark 2s infinite linear;animation:dot-flashing-dark 2s infinite linear;-webkit-animation-delay:0s;animation-delay:0s}@keyframes dot-flashing-dark{0%{background-color:#a7a7a7}25%{background-color:#5b5a5a}50%,100%{background-color:#a7a7a7}}fl-loading-indicator .dot-flashing.theme-dark::after{left:12px;width:8px;height:8px;border-radius:4px;background-color:#a7a7a7;color:#9880ff;-webkit-animation:dot-flashing-dark 2s infinite linear;animation:dot-flashing-dark 2s infinite linear;-webkit-animation-delay:1s;animation-delay:1s}@keyframes dot-flashing-dark{0%{background-color:#a7a7a7}25%{background-color:#5b5a5a}50%,100%{background-color:#a7a7a7}}',function(t){t[t.Available=0]="Available",t[t.Pending=1]="Pending",t[t.Error=2]="Error"}(bt||(bt={}));const wt=class{constructor(n){t(this,n),this.isBlockElement=!1,this.isRounded=!1,this.disabled=!1,this.variant="primary",this.promiseFn=()=>Promise.resolve(),this.state=bt.Available}render(){return this.state===bt.Pending?this.renderLoadingButton():this.renderActiveButton()}renderActiveButton(){return n("fl-button",{disabled:this.disabled,onClick:()=>this.clicked(),isBlockElement:this.isBlockElement,variant:this.variant},n("div",null,n("slot",null)))}renderLoadingButton(){return n("fl-button",{disabled:!0,onClick:()=>this.clicked(),isBlockElement:this.isBlockElement,class:"position-relative",variant:this.variant},n("fl-loading-indicator",{class:"position-absolute",theme:"dark"}),n("div",{class:"invisible"},n("slot",null)))}async clicked(){this.state=bt.Pending;try{await this.promiseFn(),this.state=bt.Available}catch(t){throw this.state=bt.Error,t}}};function gt(t,n){void 0===n&&(n="*"),t.sender="flare",window.parent.postMessage(t,n)}wt.style="fl-promise-button fl-loading-indicator{left:50%;top:50%;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}";const yt=function(){gt({type:"appReady"})},xt=function(t,n){gt({type:"contentResized",height:t,width:n})},kt=function(t){gt({type:"pageNavigated",url:t})},St=function(){gt({type:"complete"})},Ct=function(){gt({type:"submitSuccess"})},At=t=>!("isConnected"in t)||t.isConnected,_t=(()=>{let t;return(...n)=>{t&&clearTimeout(t),t=setTimeout((()=>{t=0,(t=>{for(let n of t.keys())t.set(n,t.get(n).filter(At))})(...n)}),2e3)}})(),Et=(t,n)=>{const e=((t,n=((t,n)=>t!==n))=>{let e=new Map(Object.entries(null!=t?t:{}));const i={dispose:[],get:[],set:[],reset:[]},r=()=>{e=new Map(Object.entries(null!=t?t:{})),i.reset.forEach((t=>t()))},o=t=>(i.get.forEach((n=>n(t))),e.get(t)),s=(t,r)=>{const o=e.get(t);n(r,o,t)&&(e.set(t,r),i.set.forEach((n=>n(t,r,o))))},a="undefined"==typeof Proxy?{}:new Proxy(t,{get:(t,n)=>o(n),ownKeys:()=>Array.from(e.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(t,n)=>e.has(n),set:(t,n,e)=>(s(n,e),!0)}),u=(t,n)=>(i[t].push(n),()=>{((t,n)=>{const e=t.indexOf(n);e>=0&&(t[e]=t[t.length-1],t.length--)})(i[t],n)});return{state:a,get:o,set:s,on:u,onChange:(n,e)=>{const i=u("set",((t,i)=>{t===n&&e(i)})),r=u("reset",(()=>e(t[n])));return()=>{i(),r()}},use:(...t)=>t.forEach((t=>{t.set&&u("set",t.set),t.get&&u("get",t.get),t.reset&&u("reset",t.reset)})),dispose:()=>{i.dispose.forEach((t=>t())),r()},reset:r}})(t,n);return(({on:t})=>{const n=new Map;"function"==typeof i&&(t("dispose",(()=>{n.clear()})),t("get",(t=>{const e=i();e&&((t,n,e)=>{const i=t.get(n);i?i.includes(e)||i.push(e):t.set(n,[e])})(n,t,e)})),t("set",(t=>{const e=n.get(t);e&&n.set(t,e.filter(r)),_t(n)})),t("reset",(()=>{n.forEach((t=>t.forEach(r))),_t(n)})))})(e),e};function Bt(t,n,e){return t(e={path:n,exports:{},require:function(){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},e.exports),e.exports}var Ft=Bt((function(t,n){function e(t){return t}function i(t){return function(){return t}}function r(){throw new Error("Called `absurd` function which should be uncallable")}Object.defineProperty(n,"__esModule",{value:!0}),n.bindTo_=n.bind_=n.hole=n.pipe=n.untupled=n.tupled=n.absurd=n.decrement=n.increment=n.tuple=n.flow=n.flip=n.constVoid=n.constUndefined=n.constNull=n.constFalse=n.constTrue=n.constant=n.not=n.unsafeCoerce=n.identity=void 0,n.identity=e,n.unsafeCoerce=e,n.not=function(t){return function(n){return!t(n)}},n.constant=i,n.constTrue=i(!0),n.constFalse=i(!1),n.constNull=i(null),n.constUndefined=i(void 0),n.constVoid=n.constUndefined,n.flip=function(t){return function(n,e){return t(e,n)}},n.flow=function(t,n,e,i,r,o,s,a,u){switch(arguments.length){case 1:return t;case 2:return function(){return n(t.apply(this,arguments))};case 3:return function(){return e(n(t.apply(this,arguments)))};case 4:return function(){return i(e(n(t.apply(this,arguments))))};case 5:return function(){return r(i(e(n(t.apply(this,arguments)))))};case 6:return function(){return o(r(i(e(n(t.apply(this,arguments))))))};case 7:return function(){return s(o(r(i(e(n(t.apply(this,arguments)))))))};case 8:return function(){return a(s(o(r(i(e(n(t.apply(this,arguments))))))))};case 9:return function(){return u(a(s(o(r(i(e(n(t.apply(this,arguments)))))))))}}},n.tuple=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return t},n.increment=function(t){return t+1},n.decrement=function(t){return t-1},n.absurd=r,n.tupled=function(t){return function(n){return t.apply(void 0,n)}},n.untupled=function(t){return function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return t(n)}},n.pipe=function(t,n,e,i,r,o,s,a,u,c,l,f,d,h,p,v,m,b,w,g){switch(arguments.length){case 1:return t;case 2:return n(t);case 3:return e(n(t));case 4:return i(e(n(t)));case 5:return r(i(e(n(t))));case 6:return o(r(i(e(n(t)))));case 7:return s(o(r(i(e(n(t))))));case 8:return a(s(o(r(i(e(n(t)))))));case 9:return u(a(s(o(r(i(e(n(t))))))));case 10:return c(u(a(s(o(r(i(e(n(t)))))))));case 11:return l(c(u(a(s(o(r(i(e(n(t))))))))));case 12:return f(l(c(u(a(s(o(r(i(e(n(t)))))))))));case 13:return d(f(l(c(u(a(s(o(r(i(e(n(t))))))))))));case 14:return h(d(f(l(c(u(a(s(o(r(i(e(n(t)))))))))))));case 15:return p(h(d(f(l(c(u(a(s(o(r(i(e(n(t))))))))))))));case 16:return v(p(h(d(f(l(c(u(a(s(o(r(i(e(n(t)))))))))))))));case 17:return m(v(p(h(d(f(l(c(u(a(s(o(r(i(e(n(t))))))))))))))));case 18:return b(m(v(p(h(d(f(l(c(u(a(s(o(r(i(e(n(t)))))))))))))))));case 19:return w(b(m(v(p(h(d(f(l(c(u(a(s(o(r(i(e(n(t))))))))))))))))));case 20:return g(w(b(m(v(p(h(d(f(l(c(u(a(s(o(r(i(e(n(t)))))))))))))))))))}},n.hole=r,n.bind_=function(t,n,e){var i;return Object.assign({},t,((i={})[n]=e,i))},n.bindTo_=function(t){return function(n){var e;return(e={})[t]=n,e}}})),jt=Bt((function(t,n){function e(t){return null==t?n.none:n.some(t)}function i(t){return"Right"===t._tag?n.none:n.some(t.left)}function r(t){return"Left"===t._tag?n.none:n.some(t.right)}function o(t){return function(i){return n.isNone(i)?n.none:e(t(i.value))}}Object.defineProperty(n,"__esModule",{value:!0}),n.getApplySemigroup=n.getOrd=n.getEq=n.getShow=n.URI=n.wilt=n.wither=n.sequence=n.traverse=n.partitionMap=n.partition=n.filterMap=n.filter=n.separate=n.compact=n.reduceRight=n.foldMap=n.reduce=n.duplicate=n.extend=n.throwError=n.zero=n.alt=n.altW=n.flatten=n.chainFirst=n.chain=n.of=n.apSecond=n.apFirst=n.ap=n.map=n.chainNullableK=n.mapNullable=n.fromNullableK=n.getOrElse=n.getOrElseW=n.toUndefined=n.toNullable=n.fold=n.fromEither=n.getRight=n.getLeft=n.tryCatch=n.fromPredicate=n.fromNullable=n.some=n.none=n.isNone=n.isSome=void 0,n.sequenceArray=n.traverseArray=n.traverseArrayWithIndex=n.apS=n.bind=n.bindTo=n.Do=n.getRefinement=n.exists=n.elem=n.option=n.MonadThrow=n.Witherable=n.Traversable=n.Filterable=n.Compactable=n.Extend=n.Alternative=n.Alt=n.Foldable=n.Monad=n.Applicative=n.Functor=n.getMonoid=n.getLastMonoid=n.getFirstMonoid=n.getApplyMonoid=void 0,n.isSome=function(t){return"Some"===t._tag},n.isNone=function(t){return"None"===t._tag},n.none={_tag:"None"},n.some=function(t){return{_tag:"Some",value:t}},n.fromNullable=e,n.fromPredicate=function(t){return function(e){return t(e)?n.some(e):n.none}},n.tryCatch=function(t){try{return n.some(t())}catch(t){return n.none}},n.getLeft=i,n.getRight=r,n.fromEither=r,n.fold=function(t,e){return function(i){return n.isNone(i)?t():e(i.value)}},n.toNullable=function(t){return n.isNone(t)?null:t.value},n.toUndefined=function(t){return n.isNone(t)?void 0:t.value},n.getOrElseW=function(t){return function(e){return n.isNone(e)?t():e.value}},n.getOrElse=n.getOrElseW,n.fromNullableK=function(t){return function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return e(t.apply(void 0,n))}},n.mapNullable=o,n.chainNullableK=o;var s=function(t,e){return Ft.pipe(t,n.map(e))},a=function(t,e){return Ft.pipe(t,n.ap(e))},u=function(t,e){return Ft.pipe(t,n.chain(e))},c=function(t,e,i){return Ft.pipe(t,n.reduce(e,i))},l=function(t){var e=n.foldMap(t);return function(t,n){return Ft.pipe(t,e(n))}},f=function(t,e,i){return Ft.pipe(t,n.reduceRight(e,i))},d=function(t){var e=n.traverse(t);return function(t,n){return Ft.pipe(t,e(n))}},h=function(t,e){return Ft.pipe(t,n.alt(e))},p=function(t,e){return Ft.pipe(t,n.filter(e))},v=function(t,e){return Ft.pipe(t,n.filterMap(e))},m=function(t,e){return Ft.pipe(t,n.extend(e))},b=function(t,e){return Ft.pipe(t,n.partition(e))},w=function(t,e){return Ft.pipe(t,n.partitionMap(e))},g=function(t){var e=n.wither(t);return function(t,n){return Ft.pipe(t,e(n))}},y=function(t){var e=n.wilt(t);return function(t,n){return Ft.pipe(t,e(n))}};n.map=function(t){return function(e){return n.isNone(e)?n.none:n.some(t(e.value))}},n.ap=function(t){return function(e){return n.isNone(e)||n.isNone(t)?n.none:n.some(e.value(t.value))}},n.apFirst=function(t){return Ft.flow(n.map((function(t){return function(){return t}})),n.ap(t))},n.apSecond=function(t){return Ft.flow(n.map((function(){return function(t){return t}})),n.ap(t))},n.of=n.some,n.chain=function(t){return function(e){return n.isNone(e)?n.none:t(e.value)}},n.chainFirst=function(t){return n.chain((function(e){return Ft.pipe(t(e),n.map((function(){return e})))}))},n.flatten=n.chain(Ft.identity),n.altW=function(t){return function(e){return n.isNone(e)?t():e}},n.alt=n.altW,n.zero=function(){return n.none},n.throwError=function(){return n.none},n.extend=function(t){return function(e){return n.isNone(e)?n.none:n.some(t(e))}},n.duplicate=n.extend(Ft.identity),n.reduce=function(t,e){return function(i){return n.isNone(i)?t:e(t,i.value)}},n.foldMap=function(t){return function(e){return function(i){return n.isNone(i)?t.empty:e(i.value)}}},n.reduceRight=function(t,e){return function(i){return n.isNone(i)?t:e(i.value,t)}},n.compact=n.flatten;var x={left:n.none,right:n.none};function k(t){return{equals:function(e,i){return e===i||(n.isNone(e)?n.isNone(i):!n.isNone(i)&&t.equals(e.value,i.value))}}}function S(t){return{concat:function(e,i){return n.isSome(e)&&n.isSome(i)?n.some(t.concat(e.value,i.value)):n.none}}}n.separate=function(t){var e=Ft.pipe(t,n.map((function(t){return{left:i(t),right:r(t)}})));return n.isNone(e)?x:e.value},n.filter=function(t){return function(e){return n.isNone(e)?n.none:t(e.value)?e:n.none}},n.filterMap=function(t){return function(e){return n.isNone(e)?n.none:t(e.value)}},n.partition=function(t){return function(n){return{left:p(n,(function(n){return!t(n)})),right:p(n,t)}}},n.partitionMap=function(t){return Ft.flow(n.map(t),n.separate)},n.traverse=function(t){return function(e){return function(i){return n.isNone(i)?t.of(n.none):t.map(e(i.value),n.some)}}},n.sequence=function(t){return function(e){return n.isNone(e)?t.of(n.none):t.map(e.value,n.some)}},n.wither=function(t){return function(e){return function(i){return n.isNone(i)?t.of(n.none):e(i.value)}}},n.wilt=function(t){return function(e){return function(o){return n.isNone(o)?t.of({left:n.none,right:n.none}):t.map(e(o.value),(function(t){return{left:i(t),right:r(t)}}))}}},n.URI="Option",n.getShow=function(t){return{show:function(e){return n.isNone(e)?"none":"some("+t.show(e.value)+")"}}},n.getEq=k,n.getOrd=function(t){return{equals:k(t).equals,compare:function(e,i){return e===i?0:n.isSome(e)?n.isSome(i)?t.compare(e.value,i.value):1:-1}}},n.getApplySemigroup=S,n.getApplyMonoid=function(t){return{concat:S(t).concat,empty:n.some(t.empty)}},n.getFirstMonoid=function(){return{concat:function(t,e){return n.isNone(t)?e:t},empty:n.none}},n.getLastMonoid=function(){return{concat:function(t,e){return n.isNone(e)?t:e},empty:n.none}},n.getMonoid=function(t){return{concat:function(e,i){return n.isNone(e)?i:n.isNone(i)?e:n.some(t.concat(e.value,i.value))},empty:n.none}},n.Functor={URI:n.URI,map:s},n.Applicative={URI:n.URI,map:s,ap:a,of:n.of},n.Monad={URI:n.URI,map:s,ap:a,of:n.of,chain:u},n.Foldable={URI:n.URI,reduce:c,foldMap:l,reduceRight:f},n.Alt={URI:n.URI,map:s,alt:h},n.Alternative={URI:n.URI,map:s,ap:a,of:n.of,alt:h,zero:n.zero},n.Extend={URI:n.URI,map:s,extend:m},n.Compactable={URI:n.URI,compact:n.compact,separate:n.separate},n.Filterable={URI:n.URI,map:s,compact:n.compact,separate:n.separate,filter:p,filterMap:v,partition:b,partitionMap:w},n.Traversable={URI:n.URI,map:s,reduce:c,foldMap:l,reduceRight:f,traverse:d,sequence:n.sequence},n.Witherable={URI:n.URI,map:s,reduce:c,foldMap:l,reduceRight:f,traverse:d,sequence:n.sequence,compact:n.compact,separate:n.separate,filter:p,filterMap:v,partition:b,partitionMap:w,wither:g,wilt:y},n.MonadThrow={URI:n.URI,map:s,ap:a,of:n.of,chain:u,throwError:n.throwError},n.option={URI:n.URI,map:s,of:n.of,ap:a,chain:u,reduce:c,foldMap:l,reduceRight:f,traverse:d,sequence:n.sequence,zero:n.zero,alt:h,extend:m,compact:n.compact,separate:n.separate,filter:p,filterMap:v,partition:b,partitionMap:w,wither:g,wilt:y,throwError:n.throwError},n.elem=function(t){return function(e,i){return!n.isNone(i)&&t.equals(e,i.value)}},n.exists=function(t){return function(e){return!n.isNone(e)&&t(e.value)}},n.getRefinement=function(t){return function(e){return n.isSome(t(e))}},n.Do=n.of({}),n.bindTo=function(t){return n.map(Ft.bindTo_(t))},n.bind=function(t,e){return n.chain((function(i){return Ft.pipe(e(i),n.map((function(n){return Ft.bind_(i,t,n)})))}))},n.apS=function(t,e){return Ft.flow(n.map((function(n){return function(e){return Ft.bind_(n,t,e)}})),n.ap(e))},n.traverseArrayWithIndex=function(t){return function(e){for(var i=[],r=0;r<e.length;r++){var o=t(r,e[r]);if(n.isNone(o))return n.none;i.push(o.value)}return n.some(i)}},n.traverseArray=function(t){return n.traverseArrayWithIndex((function(n,e){return t(e)}))},n.sequenceArray=n.traverseArray(Ft.identity)}));function It(t){this.message=t}(It.prototype=new Error).name="InvalidCharacterError";var Mt="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(t){var n=String(t).replace(/=+$/,"");if(n.length%4==1)throw new It("'atob' failed: The string to be decoded is not correctly encoded.");for(var e,i,r=0,o=0,s="";i=n.charAt(o++);~i&&(e=r%4?64*e+i:i,r++%4)?s+=String.fromCharCode(255&e>>(-2*r&6)):0)i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(i);return s};function Tt(t){var n=t.replace(/-/g,"+").replace(/_/g,"/");switch(n.length%4){case 0:break;case 2:n+="==";break;case 3:n+="=";break;default:throw"Illegal base64url string!"}try{return function(t){return decodeURIComponent(Mt(t).replace(/(.)/g,(function(t,n){var e=n.charCodeAt(0).toString(16).toUpperCase();return e.length<2&&(e="0"+e),"%"+e})))}(n)}catch(t){return Mt(n)}}function Pt(t){this.message=t}(Pt.prototype=new Error).name="InvalidTokenError";var Rt=function(){return(Rt=Object.assign||function(t){for(var n,e=1,i=arguments.length;e<i;e++)for(var r in n=arguments[e])Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t}).apply(this,arguments)},Nt=function(){for(var t=0,n=0,e=arguments.length;n<e;n++)t+=arguments[n].length;var i=Array(t),r=0;for(n=0;n<e;n++)for(var o=arguments[n],s=0,a=o.length;s<a;s++,r++)i[r]=o[s];return i},Dt=function(t,n,e){if(void 0===e&&(e=!1),!t||!n||"object"!=typeof t||"object"!=typeof n)return t;var i=Rt({},t);for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r]instanceof Array&&t[r]instanceof Array?e?Nt(t[r],n[r]):n[r]:"object"==typeof n[r]&&"object"==typeof t[r]?Dt(t[r],n[r],e):n[r]);return i},Ot=function(){for(var t=0,n=0,e=arguments.length;n<e;n++)t+=arguments[n].length;var i=Array(t),r=0;for(n=0;n<e;n++)for(var o=arguments[n],s=0,a=o.length;s<a;s++,r++)i[r]=o[s];return i},Ut={defaults:{},errorType:null,polyfills:{fetch:null,FormData:null,URLSearchParams:null,performance:null,PerformanceObserver:null,AbortController:null},polyfill:function(t,n){for(var e=void 0===n?{}:n,i=e.doThrow,r=void 0===i||i,o=e.instance,s=void 0!==o&&o,a=[],u=2;u<arguments.length;u++)a[u-2]=arguments[u];var c=this.polyfills[t]||("undefined"!=typeof self?self[t]:null)||("undefined"!=typeof global?global[t]:null);if(r&&!c)throw new Error(t+" is not defined");return s&&c?new(c.bind.apply(c,Ot([void 0],a))):c}},Lt=function(t,n,e,i){if(!t.getEntriesByName)return!1;var r=t.getEntriesByName(n);return!!(r&&r.length>0)&&(e(r.reverse()[0]),i.clearMeasures&&i.clearMeasures(n),qt.callbacks.delete(n),qt.callbacks.size<1&&(qt.observer.disconnect(),i.clearResourceTimings&&i.clearResourceTimings()),!0)},qt={callbacks:new Map,observer:null,observe:function(t,n){if(t&&n){var e=Ut.polyfill("performance",{doThrow:!1});(function(t,n){return!qt.observer&&t&&n&&(qt.observer=new n((function(n){qt.callbacks.forEach((function(e,i){Lt(n,i,e,t)}))})),t.clearResourceTimings&&t.clearResourceTimings()),qt.observer})(e,Ut.polyfill("PerformanceObserver",{doThrow:!1}))&&(Lt(e,t,n,e)||(qt.callbacks.size<1&&qt.observer.observe({entryTypes:["resource","measure"]}),qt.callbacks.set(t,n)))}}},zt=function(t){this.error=t},Vt=function(){return(Vt=Object.assign||function(t){for(var n,e=1,i=arguments.length;e<i;e++)for(var r in n=arguments[e])Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t}).apply(this,arguments)},Ht=function(){for(var t=0,n=0,e=arguments.length;n<e;n++)t+=arguments[n].length;var i=Array(t),r=0;for(n=0;n<e;n++)for(var o=arguments[n],s=0,a=o.length;s<a;s++,r++)i[r]=o[s];return i},Wt=function(){function t(t,n,e,i,r,o){void 0===e&&(e=new Map),void 0===i&&(i=[]),void 0===r&&(r=[]),void 0===o&&(o=[]),this._url=t,this._options=n,this._catchers=e,this._resolvers=i,this._middlewares=r,this._deferredChain=o}return t.factory=function(n,e){return void 0===n&&(n=""),void 0===e&&(e={}),new t(n,e)},t.prototype.selfFactory=function(n){var e=void 0===n?{}:n,i=e.url,r=e.options,o=e.catchers,s=void 0===o?this._catchers:o,a=e.resolvers,u=void 0===a?this._resolvers:a,c=e.middlewares,l=void 0===c?this._middlewares:c,f=e.deferredChain,d=void 0===f?this._deferredChain:f;return new t(void 0===i?this._url:i,Vt({},void 0===r?this._options:r),new Map(s),Ht(u),Ht(l),Ht(d))},t.prototype.defaults=function(t,n){return void 0===n&&(n=!1),Ut.defaults=n?Dt(Ut.defaults,t):t,this},t.prototype.errorType=function(t){return Ut.errorType=t,this},t.prototype.polyfills=function(t){return Ut.polyfills=Vt(Vt({},Ut.polyfills),t),this},t.prototype.url=function(t,n){if(void 0===n&&(n=!1),n)return this.selfFactory({url:t});var e=this._url.split("?");return this.selfFactory({url:e.length>1?e[0]+t+"?"+e[1]:this._url+t})},t.prototype.options=function(t,n){return void 0===n&&(n=!0),this.selfFactory({options:n?Dt(this._options,t):t})},t.prototype.query=function(t,n){return void 0===n&&(n=!1),this.selfFactory({url:$t(this._url,t,n)})},t.prototype.headers=function(t){return this.selfFactory({options:Dt(this._options,{headers:t||{}})})},t.prototype.accept=function(t){return this.headers({Accept:t})},t.prototype.content=function(t){var n;return this.headers(((n={})["Content-Type"]=t,n))},t.prototype.auth=function(t){return this.headers({Authorization:t})},t.prototype.catcher=function(t,n){var e=new Map(this._catchers);return e.set(t,n),this.selfFactory({catchers:e})},t.prototype.signal=function(t){return this.selfFactory({options:Vt(Vt({},this._options),{signal:t.signal})})},t.prototype.resolve=function(t,n){return void 0===n&&(n=!1),this.selfFactory({resolvers:n?[t]:Ht(this._resolvers,[t])})},t.prototype.defer=function(t,n){return void 0===n&&(n=!1),this.selfFactory({deferredChain:n?[t]:Ht(this._deferredChain,[t])})},t.prototype.middlewares=function(t,n){return void 0===n&&(n=!1),this.selfFactory({middlewares:n?t:Ht(this._middlewares,t)})},t.prototype.method=function(t,n,e){void 0===n&&(n={}),void 0===e&&(e=null);var i=this._options.headers,r=e?"object"!=typeof e||i&&!Object.entries(i).every((function(t){var n=t[1];return t[0].toLowerCase()!=="Content-Type".toLowerCase()||n.startsWith("application/json")}))?this.body(e):this.json(e):this;return function(t){var n=t._url,e=t._resolvers,i=t._middlewares,r=t._options,o=new Map(t._catchers),s=Dt(Ut.defaults,r),a=Ut.polyfill("AbortController",{doThrow:!1,instance:!0});!s.signal&&a&&(s.signal=a.signal);var u={ref:null,clear:function(){u.ref&&(clearTimeout(u.ref),u.ref=null)}},c=function(t){return function(n){return 0===t.length?n:1===t.length?t[0](n):t.reduceRight((function(e,i,r){return i(r===t.length-2?e(n):e)}))}}(i)(Ut.polyfill("fetch"))(n,s),l=c.catch((function(t){throw new zt(t)})).then((function(t){return u.clear(),t.ok?t:t[Ut.errorType||"text"]().then((function(n){var e=new Error(n);throw e[Ut.errorType||"text"]=n,e.status=t.status,e.response=t,e}))})),f=function(n){return function(e){return(n?l.then((function(t){return t&&t[n]()})).then((function(t){return e?e(t):t})):l.then((function(t){return e?e(t):t}))).catch((function(n){u.clear();var e=n instanceof zt?n.error:n;if(n instanceof zt&&o.has("__fromFetch"))return o.get("__fromFetch")(e,t);if(o.has(e.status))return o.get(e.status)(e,t);if(o.has(e.name))return o.get(e.name)(e,t);throw e}))}},d={res:f(null),json:f("json"),blob:f("blob"),formData:f("formData"),arrayBuffer:f("arrayBuffer"),text:f("text"),perfs:function(t){return c.then((function(n){return qt.observe(n.url,t)})),d},setTimeout:function(t,n){return void 0===n&&(n=a),u.clear(),u.ref=setTimeout((function(){return n.abort()}),t),d},controller:function(){return[a,d]},error:function(t,n){return o.set(t,n),d},badRequest:function(t){return d.error(400,t)},unauthorized:function(t){return d.error(401,t)},forbidden:function(t){return d.error(403,t)},notFound:function(t){return d.error(404,t)},timeout:function(t){return d.error(408,t)},internalError:function(t){return d.error(500,t)},fetchError:function(t){return d.error("__fromFetch",t)},onAbort:function(t){return d.error("AbortError",t)}};return e.reduce((function(n,e){return e(n,t)}),d)}((r=r.options(Vt(Vt({},n),{method:t})))._deferredChain.reduce((function(t,n){return n(t,t._url,t._options)}),r))},t.prototype.get=function(t){return this.method("GET",t)},t.prototype.delete=function(t){return this.method("DELETE",t)},t.prototype.put=function(t,n){return this.method("PUT",n,t)},t.prototype.post=function(t,n){return this.method("POST",n,t)},t.prototype.patch=function(t,n){return this.method("PATCH",n,t)},t.prototype.head=function(t){return this.method("HEAD",t)},t.prototype.opts=function(t){return this.method("OPTIONS",t)},t.prototype.replay=function(t){return this.method(this._options.method,t)},t.prototype.body=function(t){return this.selfFactory({options:Vt(Vt({},this._options),{body:t})})},t.prototype.json=function(t){var n,e=null===(n=Object.entries(this._options.headers||{}).find((function(t){var n=t[1];return t[0].toLowerCase()==="Content-Type".toLowerCase()&&n.startsWith("application/json")})))||void 0===n?void 0:n[1];return this.content(e||"application/json").body(JSON.stringify(t))},t.prototype.formData=function(t,n){return void 0===n&&(n=!1),this.body(Xt(t,n))},t.prototype.formUrl=function(t){return this.body("string"==typeof t?t:(n=t,Object.keys(n).map((function(t){var e=n[t];return e instanceof Array?e.map((function(n){return Jt(t,n)})).join("&"):Jt(t,e)})).join("&"))).content("application/x-www-form-urlencoded");var n},t}(),$t=function(t,n,e){var i;if("string"==typeof n)i=n;else{var r=Ut.polyfill("URLSearchParams",{instance:!0});for(var o in n)if(n[o]instanceof Array)for(var s=0,a=n[o];s<a.length;s++)r.append(o,a[s]);else r.append(o,n[o]);i=r.toString()}var u=t.split("?");return e||u.length<2?u[0]+"?"+i:t+"&"+i};function Xt(t,n,e,i){return void 0===n&&(n=!1),void 0===e&&(e=Ut.polyfill("FormData",{instance:!0})),void 0===i&&(i=[]),Object.entries(t).forEach((function(t){var r=t[0],o=t[1],s=i.reduce((function(t,n){return t?t+"["+n+"]":n}),null);if(s=s?s+"["+r+"]":r,o instanceof Array)for(var a=0,u=o;a<u.length;a++)e.append(s+"[]",u[a]);else!n||"object"!=typeof o||n instanceof Array&&n.includes(r)?e.append(s,o):null!==o&&Xt(o,n,e,Ht(i,[r]))})),e}function Jt(t,n){return encodeURIComponent(t)+"="+encodeURIComponent("object"==typeof n?JSON.stringify(n):""+n)}var Gt=Wt.factory;function Kt(){const t=Zt.jwt,n=Zt.profileId,e=Zt.accountIdOrDefault,i=Zt.partnerIdOrDefault;return Gt(Zt.apiBaseUrl).headers({Authorization:"Bearer "+t,"X-PROFILE-ID":n,"X-PARTNER-ID":i,"X-ACCOUNT-ID":e})}Gt.default=Wt.factory;const Yt=new class{async getAustralianFundsAsync(t){return Kt().url("super-choice/australian-funds?"+this.toQueryString(t)).get().notFound((()=>{throw new Error("Failed to fetch the list of australian super funds.")})).json()}async getAppStateAsync(){return Kt().url("client-app-state").get().notFound((()=>{throw new Error("Failed to fetch application configuration.")})).json()}toQueryString(t){switch(t.type){case"partialMatch":return`search=${t.searchString}&maxRecordCount=${t.maxRecordCount}`;case"usiMatch":return"usi="+t.usi}}},Qt={apiBaseUrl:jt.none,appBaseUrl:jt.none,profileId:jt.none,jwt:jt.none,superBuyer:jt.none,promotedFunds:jt.none,accountConfiguration:jt.none,hasSuccessPageBeenAcknowledged:!1,hasSuperSelectionBeenSubmitted:!1},Zt=new class{constructor(){const{state:t,onChange:n}=Et(Qt);this._state=t,this._onChange=n,n("jwt",(t=>{this._state.profileId=Ft.pipe(t,jt.chain((t=>jt.fromNullable(function(t,n){if("string"!=typeof t)throw new Pt("Invalid token specified");var e=!0===(n=n||{}).header?0:1;try{return JSON.parse(Tt(t.split(".")[e]))}catch(t){throw new Pt("Invalid token specified: "+t.message)}}(t).sub))))}))}get state(){return this._state}get onChange(){return this._onChange}get superBuyer(){if(jt.isNone(this._state.superBuyer))throw Error("User information is not set");return this._state.superBuyer.value}get apiBaseUrl(){if(jt.isNone(this._state.apiBaseUrl))throw Error("API base URL is not set");return this._state.apiBaseUrl.value}get appBaseUrl(){if(jt.isNone(this._state.appBaseUrl))throw Error("App base URL is not set");return this._state.appBaseUrl.value}get promotedFunds(){if(jt.isNone(this._state.promotedFunds))throw Error("Promoted Funds is not set");return this._state.promotedFunds.value}get profileId(){if(jt.isNone(this._state.profileId))throw Error("Failed to get Profile ID from JWT");return this._state.profileId.value}get defaultFundUsi(){return Ft.pipe(this._state.accountConfiguration,jt.map((t=>jt.fromNullable(t.defaultFundUsi))),jt.flatten)}get accountIdOrDefault(){return Ft.pipe(this._state.accountConfiguration,jt.map((t=>t.accountId)),jt.getOrElse((()=>"")))}get partnerIdOrDefault(){return Ft.pipe(this._state.superBuyer,jt.map((t=>t.partnerId)),jt.getOrElse((()=>"")))}get jwt(){if(jt.isNone(this._state.jwt))throw Error("No authentication information was found");return this._state.jwt.value}get showSmsfNotSupported(){return Ft.pipe(this._state.superBuyer,jt.map((t=>t.showSmsfNotSupported)),jt.getOrElse((()=>!1)))}completeSuperSelectionFlow(){this._state.hasSuccessPageBeenAcknowledged=!0}markSuperSelectionAsSubmitted(){this._state.hasSuperSelectionBeenSubmitted=!0}async loadAppStateAsync(){const t=await Yt.getAppStateAsync();this._state.accountConfiguration=jt.fromNullable(t.accountConfiguration),this._state.superBuyer=jt.fromNullable(t.superBuyer),this._state.promotedFunds=jt.fromNullable(t.promotedFunds)}},tn=new class{navigateInternally(t,n){const e=`${this.appBaseUrl}${this.toRouteWithLeadingSlash(n)}`;kt(e),t.push(e)}toExternalUrl(t){const n=new URL(t);return n.searchParams.append("_extnav","true"),n.href}get appBaseUrl(){return Zt.appBaseUrl.replace(/\/$/,"")}toRouteWithLeadingSlash(t){return t.length>0&&"/"===t[0]?t:"/"+t}};var nn;!function(t){t.ChoicePage="/",t.SlateJoin="/slate/join/",t.SlateStandardChoice="/slate/standard-choice/",t.PromotedFundJoin="/promoted-fund/join",t.PromotedFundStandardChoice="/promoted-fund/standard-choice/",t.MyOwnFund="/super-choice/my-own-fund/",t.SelfManagedFund="/super-choice/smsf/",t.DefaultFund="/super-choice/default/",t.Success="/success/"}(nn||(nn={}));const en=[n("stencil-route",{exact:!0,url:nn.ChoicePage,component:"sss-super-choice-page"}),n("stencil-route",{url:nn.SlateJoin,component:"sss-slate-join-page"}),n("stencil-route",{url:nn.SlateStandardChoice,component:"sss-slate-standard-choice-page"}),n("stencil-route",{url:nn.PromotedFundJoin,component:"sss-promoted-fund-join-page"}),n("stencil-route",{url:nn.PromotedFundStandardChoice,component:"sss-promoted-fund-standard-choice-page"}),n("stencil-route",{url:nn.MyOwnFund,component:"sss-my-own-fund"}),n("stencil-route",{url:nn.SelfManagedFund,component:"sss-self-managed-fund"}),n("stencil-route",{url:nn.DefaultFund,component:"sss-default-fund"}),n("stencil-route",{url:nn.Success,component:"sss-success"})];var rn;!function(t){t.MyOwnFund="My Own Fund",t.DefaultFund="Default Fund",t.SelfManagedFund="Self Managed Fund"}(rn||(rn={}));const on={continueAllowed:!1,nextRoute:"/",myOwnFundForm:{fundUsi:L,memberNumber:L,standardChoiceFormSignature:L},defaultFundForm:{standardChoiceFormSignature:""},selfManagedFundForm:{fundName:"",fundAbn:"",fundEsa:"",addressLine1:"",addressLine2:"",state:"",postcode:"",city:"",bankAccountName:"",bsb:"",bankAccountNumber:"",standardChoiceFormSignature:""},currentCustomFundType:rn.MyOwnFund,customFunds:[{label:rn.MyOwnFund,value:nn.MyOwnFund},{label:rn.DefaultFund,value:nn.DefaultFund},{label:rn.SelfManagedFund,value:nn.SelfManagedFund}]},{state:sn}=Et(on),an=sn.customFunds,un=class{constructor(n){t(this,n),this.currentCustomFund=an[0],this.fundOptionsList=an}componentWillLoad(){let t="";window.location.pathname.includes(nn.MyOwnFund)&&(t=nn.MyOwnFund),window.location.pathname.includes(nn.DefaultFund)&&(t=nn.DefaultFund),window.location.pathname.includes(nn.SelfManagedFund)&&(t=nn.SelfManagedFund),this.currentCustomFund=an.find((n=>n.value===t))||an[0],tn.navigateInternally(this.history,t)}render(){return n("div",{class:"container"},n("div",{class:"row justify-content-center"},n("div",{class:"col col-sm-10 col-md-7"},n("p",{class:"font-weight-bold text-center"},"Choose your Super"),n("div",{class:"mb-4"},n("select",{class:"form-control",required:!0,onChange:t=>{this.handleChange(t.target.value.trim())}},this.fundOptionsList.map((t=>n("option",{value:t.value,selected:this.currentCustomFund.value===t.value},t.label))))),n("slot",null))))}handleChange(t){const n=an.find((n=>n.value===t))||{value:nn.MyOwnFund};tn.navigateInternally(this.history,n.value)}static get assetsDirs(){return["assets"]}};H(un);const cn=new class{searchFundsAsync(t,n){return Yt.getAustralianFundsAsync({type:"partialMatch",searchString:t,maxRecordCount:n})}async getFundByUsiAsync(t){const n=await Yt.getAustralianFundsAsync({type:"usiMatch",usi:t});return 1===n.length?jt.some(n[0]):jt.none}};class ln{static get Instance(){return this.instance||(this.instance=new this)}async PostAnalyticsEventAsync(t){return Kt().url("analytics-events").post(t).res()}}class fn{constructor(){this.eventTrackingApi=ln.Instance}static get Instance(){return this.instance||(this.instance=new this)}async TrackFinancialProductViewedAsync(t){return this.trackEventAsync({FinancialProductViewed:t})}async TrackSuperFundPdsViewedAsync(t){return this.trackEventAsync({SuperFundPdsViewed:t})}async TrackFinancialProductAcceptedAsync(t){return this.trackEventAsync({FinancialProductAccepted:t})}async TrackFinancialProductRejectedAsync(t){return this.trackEventAsync({FinancialProductRejected:t})}async TrackSuperFundPrivacyConfirmationAcceptedAsync(t){return this.trackEventAsync({SuperFundPrivacyConfirmationAccepted:t})}async TrackPromotedSuperFundDetailViewedAsync(t){return this.trackEventAsync({SuperFundDetailViewed:{PromotedFund:t}})}async TrackMyOwnSuperFundDetailViewedAsync(t){return this.trackEventAsync({SuperFundDetailViewed:{MyOwnFund:t}})}async TrackSmsfSuperFundDetailViewedAsync(t){return this.trackEventAsync({SuperFundDetailViewed:{Smsf:t}})}async TrackDefaultSuperFundDetailViewedAsync(t){return this.trackEventAsync({SuperFundDetailViewed:{DefaultFund:t}})}async TrackSuperFundPanelViewedAsync(t){return this.trackEventAsync({SuperFundPanelViewed:t})}async trackEventAsync(t){try{await this.eventTrackingApi.PostAnalyticsEventAsync({event:t})}catch(t){return}}}const dn={items:[]},hn=new class{constructor(){const{state:t}=Et(dn);this._state=t}get state(){return this._state}closeCurrent(){const t=[...this._state.items];t.shift(),this._state.items=t}clearNotifications(){this._state.items=[]}showErrorNotification(t,n){this.pushNotification(t,null!=n?n:0,"danger")}showInfoNotification(t,n){this.pushNotification(t,null!=n?n:0,"info")}showWarningNotification(t,n){this.pushNotification(t,null!=n?n:0,"warning")}showSuccessNotification(t,n){this.pushNotification(t,null!=n?n:0,"success")}pushNotification(t,n,e){const i=[...this._state.items];i.push({details:t,type:e,priority:n}),this._state.items=i.sort(((t,n)=>n.priority-t.priority))}},pn=new class{async submitDefaultFundChoiceAsync(t){return Kt().url("super-choice/default").post(t).badRequest((()=>{throw new Error("Failed to process default fund join request")})).text()}async submitCustomFundChoiceAsync(t){return Kt().url("super-choice/custom-fund").post(t).badRequest((()=>{throw new Error("Failed to process custom fund join request")})).text()}async submitSelfManagedFundChoiceAsync(t){return Kt().url("super-choice/smsf").post(t).badRequest((()=>{throw new Error("Failed to process SMSF choice request")})).text()}},vn=class{constructor(n){t(this,n),this.defaultFundProductName="Loading fund...",this.eventTrackingService=fn.Instance}async componentWillLoad(){const t=Zt.defaultFundUsi;if(jt.isNone(t))return;this.isDefaultFundExists=!0;const n=await cn.getFundByUsiAsync(t.value);if(jt.isNone(n))return this.isInvalidDefaultFund=!0,void hn.showErrorNotification({title:"Something is not right",description:`Couldn't find information about the configured default fund (USI ${t.value})`});this.defaultFund=n.value,this.defaultFundProductName=n.value.productName}componentDidLoad(){return this.eventTrackingService.TrackDefaultSuperFundDetailViewedAsync({fundUsi:this.defaultFund.usi,fundName:this.defaultFund.productName,promotedFundsShown:Zt.promotedFunds})}render(){return n(o,{class:"d-flex flex-fill"},n("sss-custom-fund",{class:"flex-fill"},n("form",{noValidate:!0,onSubmit:t=>t.preventDefault(),class:{"was-validated":"validated"===this.formState},ref:t=>this.formElement=t},this.isDefaultFundExists?n((t=>[n("div",{class:"card p-4"},n("p",{class:"font-weight-bold"},"Default Fund"),n("p",{class:"mb-4 small"},"Almost there... all you have to do now is review the fund below, complete and sign the super choice form and save. Your application to join the fund is subject to Trustee approval."),n("p",{class:"font-weight-bold mt-3"},"Default Fund Name"),n("p",null,t.defaultFundName)),n("sss-standard-choice-form",{onStandardChoiceFormSignatureUpdated:t=>{sn.defaultFundForm=Object.assign(Object.assign({},sn.defaultFundForm),t.detail)}})]),{defaultFundName:this.defaultFundProductName}):n((()=>n("div",{class:"card p-4"},n("p",{class:"font-weight-bold"},"No Default Fund"),n("p",{class:"mb-4 small"},"It looks like your employer has not yet defined a default fund. Please contact them if you wish to choose your company's default fund."))),null)),n("div",{class:"mt-4"},n("sss-notifications-section",null)),n("div",{class:"d-flex mt-4"},n("div",{class:"flex-grow-1 w-50"},n("div",{class:"mr-2"},n("fl-button",{onClick:()=>tn.navigateInternally(this.history,nn.ChoicePage),isBlockElement:!0,variant:"secondary"},n("span",null,"Back")))),n("div",{class:"flex-grow-1 w-50"},this.isDefaultFundExists&&n("div",{class:"ml-2"},n("fl-promise-button",{isBlockElement:!0,disabled:this.isInvalidDefaultFund,promiseFn:()=>this.handleSubmitForm()},n("span",null,"Save and continue")))))))}async handleSubmitForm(){this.isInvalidDefaultFund||(this.formState="validated",this.formElement.checkValidity()&&(await pn.submitDefaultFundChoiceAsync(sn.defaultFundForm),Zt.markSuperSelectionAsSubmitted(),tn.navigateInternally(this.history,nn.Success)))}},mn=class{constructor(n){t(this,n)}render(){return n("div",{class:"container mb-sm-0"},n("div",{class:"row justify-content-center pt-3 mt-3 mb-3 border-top"},n("div",{class:"text-decoration-none"},n("p",{class:"mt-3 small text-center mb-1 text-muted"},"Powered by Flare"))),n("div",{class:"row justify-content-center pb-sm-0 px-3 px-sm-0 text-center"},n("p",{class:"text-muted small"},"This page contains factual information only and does not take into account your particular objectives, financial circumstances or needs. If you have questions or need help making a decision about your super fund, you should speak to a licensed financial advice provider. You should consider the relevant super fund's PDS and TMD (if applicable) in deciding whether to apply to join the super fund. Each of the advertised fund's PDS and TMD (if applicable) can be found in their advertisements above. If you are considering joining another fund you can find the PDS and TMD on the fund's website. Your employer and Flare do not endorse or accept responsibility for any financial product advice or services provided by the promoters or trustees of the advertised superannuation funds. Flare do not endorse or accept responsibility for any of their content shown about any of the advertised superannuation funds as they are merely passing on the content as provided without any changes. Flare do not express any opinion or make any recommendation about any of the advertised funds.")),n("div",{class:"row justify-content-end my-1 px-3 px-sm-0"},this.appVersionBadge()))}appVersionBadge(){return n("small",{style:{opacity:"0.5"},class:"text-muted"},"Powered by Flare, v","3.46.58109")}};mn.style="html{scroll-behavior:smooth}img.fluid-fit{-o-object-fit:cover;object-fit:cover}.ss-footer-logo{max-width:7rem}";const bn=class{constructor(n){t(this,n)}render(){return n(o,{class:"d-flex flex-column justify-content-center align-items-center flex-grow-1"},n("h5",null,"Loading your superannuation step"),n("fl-loading-indicator",null))}},wn=class{constructor(n){t(this,n),this.isNotAllInformationProvidedMessageVisible=!1,this.eventTrackingService=fn.Instance}componentDidLoad(){return this.eventTrackingService.TrackMyOwnSuperFundDetailViewedAsync({promotedFundsShown:Zt.promotedFunds})}render(){return n(o,{class:"d-flex flex-fill"},n("sss-custom-fund",{class:"flex-fill"},n("form",{noValidate:!0,onSubmit:t=>t.preventDefault(),class:{"was-validated":"validated"===this.formState},ref:t=>this.formElement=t},n("div",{class:"card p-4"},n("p",{class:"font-weight-bold"},"Fund details"),n("p",{class:"text-warning mb-4 small"},"Make sure you are already a member of the fund before completing this step."),n("sss-my-own-fund-inputs",{myOwnFundForm:sn.myOwnFundForm,onFormChanged:t=>{sn.myOwnFundForm=Object.assign(Object.assign({},sn.myOwnFundForm),t.detail),this.isNotAllInformationProvidedMessageVisible=!1}})),n("sss-standard-choice-form",{onStandardChoiceFormSignatureUpdated:t=>{sn.myOwnFundForm=Object.assign(Object.assign({},sn.myOwnFundForm),{standardChoiceFormSignature:z(t.detail.standardChoiceFormSignature)})}})),n("div",{class:"mt-4"},n("sss-notifications-section",null)),this.isNotAllInformationProvidedMessageVisible&&n("div",{class:"mt-4 alert alert-danger",role:"alert"},"All fields are required to complete submission. Make sure you have selected a fund."),n("div",{class:"d-flex mt-4"},n("div",{class:"flex-grow-1 w-50"},n("div",{class:"mr-2"},n("fl-button",{onClick:()=>tn.navigateInternally(this.history,nn.ChoicePage),isBlockElement:!0,variant:"secondary"},n("span",null,"Back")))),n("div",{class:"flex-grow-1 w-50"},n("div",{class:"ml-2"},n("fl-promise-button",{isBlockElement:!0,promiseFn:()=>this.handleSubmitForm()},n("span",null,"Save and continue")))))))}async handleSubmitForm(){if(this.formState="validated",!this.formElement.checkValidity())return;if(!(O(sn.myOwnFundForm.fundUsi)&&O(sn.myOwnFundForm.memberNumber)&&O(sn.myOwnFundForm.standardChoiceFormSignature)))return void(this.isNotAllInformationProvidedMessageVisible=!0);const t={fundUsi:this.getOrError(sn.myOwnFundForm.fundUsi),memberNumber:this.getOrError(sn.myOwnFundForm.memberNumber),standardChoiceFormSignature:this.getOrError(sn.myOwnFundForm.standardChoiceFormSignature)};await pn.submitCustomFundChoiceAsync(t),Zt.markSuperSelectionAsSubmitted(),tn.navigateInternally(this.history,nn.Success)}getOrError(t){return Ft.pipe(t,(n=()=>{throw new Error("Option value is none.")},function(t){return U(t)?n():t.value}));var n}static get assetsDirs(){return["assets"]}};H(wn);const gn=class{constructor(n){t(this,n),this.formChanged=e(this,"formChanged",7),this.MIN_SEARCH_STRING_LENGTH=3,this.MAX_RECORD_COUNT=10,this.searchFundsAsync=async t=>(await cn.searchFundsAsync(t,this.MAX_RECORD_COUNT)).sort(((t,n)=>t.productName.localeCompare(n.productName))).map((t=>({label:`${t.productName} (${t.usi})`,value:t.usi})))}render(){return n("div",null,n("div",{class:""},n("label",{class:"mb-2 font-weight-bold"},"Superannuation Fund Name"),n("fl-dropdown-async",{searchFunction:this.searchFundsAsync,minSearchStringLength:this.MIN_SEARCH_STRING_LENGTH,required:!0,requiredValidationMessage:"Select a fund",placeholder:`Search by name or USI (type at least ${this.MIN_SEARCH_STRING_LENGTH} characters)`,value:this.selectedOption,onValueChanged:t=>{this.selectedOption=t.detail,this.updateFundUsi(t.detail.value.toString())}}),n("div",{class:"invalid-feedback"},"Select a fund"),O(this.myOwnFundForm.fundUsi)&&n("div",null,n("label",{class:"mb-2 mt-3 font-weight-bold"},"Superannuation Fund USI"),n("p",{class:"mb-0"},this.myOwnFundForm.fundUsi.value),n("p",{class:"small mt-1"},"Please ensure this is the correct fund USI as some funds have similar names"))),n("div",{class:"mt-4"},n("label",{class:"mb-2 font-weight-bold"},"Member Number"),n("input",{placeholder:"Enter your member number",type:"text",class:"form-control",required:!0,pattern:"[A-Za-z0-9]{4,16}",name:"memberNumber",id:"memberNumber",value:(t=sn.myOwnFundForm.memberNumber,U(t)?void 0:t.value),onChange:t=>this.updateMemberNumber(t.target.value.trim())}),n("div",{class:"invalid-feedback"},"Enter a valid member number (only numbers and / or letters)")));var t}updateFundUsi(t){this.formChanged.emit({fundUsi:q(t)})}updateMemberNumber(t){this.formChanged.emit({memberNumber:q(t)})}},yn=class{constructor(n){t(this,n)}disconnectedCallback(){hn.clearNotifications()}render(){const{items:t}=hn.state;return t.length<=0?n(o,null):n("div",{class:"alert alert-"+t[0].type,role:"alert"},n("div",{class:"d-flex"},n("p",{class:"mb-0 flex-grow-1"},n("strong",null,t[0].details.title)),n("button",{onClick:this.handleClose,type:"button",class:"close pb-1","aria-label":"Close"},n("span",{"aria-hidden":"true"},"×"))),n("p",{class:"mb-0 mt-1"},t[0].details.description))}handleClose(){hn.closeCurrent()}},{state:xn}=Et({fundId:"",memberNumber:"",usi:"",standardChoiceFormSignature:""}),kn=new class{constructor(){this.hostIsLocalSuperSelection=()=>"http://localhost:7100"==window.location.origin,this.environmentDiscriminator=()=>this.hostIsLocalSuperSelection()?"autodev-partner":window.location.hostname.toLowerCase().split(".")[0],this.promotedFundJoinAppUrl=()=>`https://${this.environmentDiscriminator()}.flarehr.com/promoted-fund-join/embed/v1.0/web`}build(t,n){if(!(null==t?void 0:t.contentDocument))return;const e=Object.assign(Object.assign({},this.getMemberData()),{partnerId:Zt.partnerIdOrDefault,accountId:Zt.accountIdOrDefault,fundId:xn.fundId,authToken:Zt.jwt}),i=e=>{const{data:r}=e;if(r)if("promoted-fund-redirect"!==r.sender){if("promoted-fund-join"===r.sender)switch(r.type){case"contentResized":t.height=r.height>0?r.height:t.height,t.width=r.width>0?r.width:t.width;break;case"pageNavigated":window.scroll(t.offsetLeft,t.offsetTop),kt(window.location.href)}}else switch(window.removeEventListener("message",i),r.type){case"cancel":tn.navigateInternally(n,nn.ChoicePage);break;case"success":if(r.memberNumber){xn.memberNumber=r.memberNumber,xn.usi=r.usi.replace(/ /g,""),tn.navigateInternally(n,nn.PromotedFundStandardChoice);break}default:tn.navigateInternally(n,nn.ChoicePage)}};window.addEventListener("message",i);const r=t.contentDocument;r.open();const o=r.createElement("form");let s;for(s in o.method="POST",o.target="_self",o.action=this.promotedFundJoinAppUrl(),e){const t=e[s];if(void 0!==t){const n=document.createElement("input");n.type="hidden",n.name=s,n.value=t,o.append(n)}}r.appendChild(o),r.close(),o.submit()}getMemberData(){var t,n;const e=Zt.superBuyer;return{title:e.userProfile.title,firstName:e.userProfile.firstName,middleName:e.userProfile.middleName,lastName:e.userProfile.lastName,dateOfBirth:e.userProfile.dateOfBirth,gender:e.userProfile.gender,email:e.userProfile.email,mobilePhone:e.userProfile.mobilePhone,taxFileNumber:null!==(t=e.tfn)&&void 0!==t?t:"",addressLine1:e.userProfile.address.addressLine1,addressLine2:null!==(n=e.userProfile.address.addressLine2)&&void 0!==n?n:"",city:e.userProfile.address.city,state:e.userProfile.address.state,postCode:e.userProfile.address.postcode}}},Sn=class{constructor(n){t(this,n)}componentDidLoad(){kn.build(this.iframeElement,this.history)}render(){return n(o,{class:"d-flex flex-fill"},n("iframe",{width:"100%",height:window.innerHeight,style:{border:"none"},ref:t=>this.iframeElement=t}))}},Cn=new class{async submitChoiceAsync(t){return Kt().url("super-choice/promoted-fund").post(t).badRequest((()=>{throw new Error("Failed to process Promoted Fund choice request")})).text()}},An=class{constructor(n){t(this,n)}render(){return n(o,{class:"d-flex flex-fill"},n("div",{class:"container"},n("div",{class:"row justify-content-center"},n("div",{class:"col col-sm-10 col-md-7"},n("div",null,n("div",null,"You're almost done, simply sign the Standard Choice Form below to finalise your superannuation choice."),n("form",{noValidate:!0,onSubmit:t=>t.preventDefault(),class:{"was-validated":"validated"===this.formState},ref:t=>this.formElement=t},n("sss-standard-choice-form",{onStandardChoiceFormSignatureUpdated:t=>{xn.standardChoiceFormSignature=t.detail.standardChoiceFormSignature}})),n("div",{class:"d-flex mt-4"},n("div",{class:"flex-grow-1 w-50"},n("div",{class:"ml-2"},n("fl-promise-button",{isBlockElement:!0,promiseFn:()=>this.handleSubmitForm()},n("span",null,"Save and continue"))))))))))}async handleSubmitForm(){this.formState="validated",this.formElement.checkValidity()&&(await Cn.submitChoiceAsync(Object.assign(Object.assign({},xn),{shownFunds:Zt.promotedFunds})),Zt.markSuperSelectionAsSubmitted(),tn.navigateInternally(this.history,nn.Success))}},_n=class{constructor(n){t(this,n)}render(){return n(o,{class:"bg-white rounded-sm picked-box-border p-3"},n("div",{class:"d-flex"},n("div",{class:"flex-grow-1 font-weight-bold"},this.fundType),n("div",{class:"px-3 py-2 text-white picked-block position-absolute"},"You picked")),n("div",null,this.fundName))}};_n.style="html{scroll-behavior:smooth}img.fluid-fit{-o-object-fit:cover;object-fit:cover}.picked-block{background-color:var(--fl-color-primary);border-top-right-radius:3px;right:0;top:0}.picked-box-border{border:2px solid var(--fl-color-primary)}";const En=class{constructor(n){t(this,n),this.showSmsfNotSupported=!1,this.eventTrackingService=fn.Instance,this.success=()=>{Zt.markSuperSelectionAsSubmitted(),tn.navigateInternally(this.history,nn.Success)}}componentDidLoad(){return this.eventTrackingService.TrackSmsfSuperFundDetailViewedAsync({promotedFundsShown:Zt.promotedFunds})}render(){return n(o,{class:"d-flex flex-fill"},n("sss-custom-fund",{class:"flex-fill"},n("form",{noValidate:!0,onSubmit:t=>t.preventDefault(),class:{"was-validated":"validated"===this.formState},ref:t=>this.formElement=t},n("div",{class:"card p-4"},n("p",{class:"font-weight-bold"},"Fund details"),n("p",{class:"text-warning mb-4 small"},"Make sure you are already a member of the fund before completing this step."),n("sss-self-managed-fund-inputs",{fundForm:sn.selfManagedFundForm,onFormChanged:t=>{sn.selfManagedFundForm=Object.assign(Object.assign({},sn.selfManagedFundForm),t.detail)}})),n("sss-standard-choice-form",{onStandardChoiceFormSignatureUpdated:t=>{sn.selfManagedFundForm=Object.assign(Object.assign({},sn.selfManagedFundForm),t.detail)}}),this.showSmsfNotSupported&&n("sss-smsf-not-supported-dialog",{ref:t=>this.notSupportedDialog=t,onContinue:this.success})),n("div",{class:"mt-4"},n("sss-notifications-section",null)),n("div",{class:"d-flex mt-4"},n("div",{class:"flex-grow-1 w-50"},n("div",{class:"mr-2"},n("fl-button",{onClick:()=>tn.navigateInternally(this.history,nn.ChoicePage),isBlockElement:!0,variant:"secondary"},n("span",null,"Back")))),n("div",{class:"flex-grow-1 w-50"},n("div",{class:"ml-2"},n("fl-promise-button",{isBlockElement:!0,promiseFn:()=>this.handleSubmitForm()},n("span",null,"Save and continue")))))))}componentDidRender(){var t;this.showSmsfNotSupported&&(null===(t=this.notSupportedDialog)||void 0===t||t.scrollIntoView())}async handleSubmitForm(){if(this.formState="validated",this.formElement.checkValidity()){const t={smsfChoice:{abn:sn.selfManagedFundForm.fundAbn,fundName:sn.selfManagedFundForm.fundName,fundAddress:{addressLine1:sn.selfManagedFundForm.addressLine1,addressLine2:sn.selfManagedFundForm.addressLine2,city:sn.selfManagedFundForm.city,state:sn.selfManagedFundForm.state,postcode:sn.selfManagedFundForm.postcode},bsb:sn.selfManagedFundForm.bsb,bankAccountName:sn.selfManagedFundForm.bankAccountName,bankAccountNumber:sn.selfManagedFundForm.bankAccountNumber,electronicServiceAddress:sn.selfManagedFundForm.fundEsa},standardChoiceFormSignature:sn.selfManagedFundForm.standardChoiceFormSignature};await pn.submitSelfManagedFundChoiceAsync(t),Zt.showSmsfNotSupported?this.showSmsfNotSupported=!0:this.success()}}};H(En);const Bn={"01":"Australia and New Zealand Banking Group","03":"Westpac Banking Corporation",73:"Westpac Banking Corporation","06":"Commonwealth Bank of Australia",76:"Commonwealth Bank of Australia","08":"National Australia Bank",78:"National Australia Bank","09":"Reserve Bank of Australia",10:"BankSA (division of Westpac Bank)",11:"St George Bank (division of Westpac Bank)",33:"St George Bank (division of Westpac Bank)",12:"Bank of Queensland",14:"Rabobank",15:"Town & Country Bank",18:"Macquarie Bank",19:"Bank of Melbourne (division of Westpac Bank)",55:"Bank of Melbourne (division of Westpac Bank)",21:"JP Morgan Chase Bank",22:"BNP Paribas",23:"Bank of America",24:"Citibank & Citibank NA",510:"Citibank & Citibank NA",25:"BNP Paribas Securities",26:"Bankers Trust Australia (division of Westpac Bank)",29:"MUFG Bank",30:"Bankwest (division of Commonwealth Bank)",31:"Bank Australia",325:"Beyond Bank",34:"HSBC Bank Australia",985:"HSBC Bank Australia",35:"Bank of China",980:"Bank of China",40:"Commonwealth Bank of Australia",41:"Deutsche Bank",42:"Commonwealth Bank of Australia",52:"Commonwealth Bank of Australia",45:"OCBC Bank",46:"Advance Bank (division of Westpac Bank)",47:"Challenge Bank (division of Westpac Bank)",48:"Suncorp-Metway",664:"Suncorp-Metway",512:"Community First Credit Union",514:"RACQ Bank",517:"Volt Bank",533:"Bananacoast Community Credit Union",57:"Australian Settlements",61:"Adelaide Bank (division of Bendigo and Adelaide Bank)",611:"Endeavour Mutual Bank",823:"Endeavour Mutual Bank",630:"Greater Bank",637:"Greater Bank",632:"B&E",633:"Bendigo Bank",634:"Uniting Financial Services",638:"Heritage Bank",880:"Heritage Bank",639:"Home Building Society (division of Bank of Queensland)",640:"Hume Bank",641:"IMB",647:"IMB",642:"Australian Military Bank",645:"Auswide Bank",656:"Auswide Bank",646:"Maitland Mutual Building Society",650:"Newcastle Permanent Building Society",653:"Pioneer Permanent Building Society (division of Bank of Queensland)",654:"Queensland Country Credit Union",655:"The Rock",659:"G&C Mutual Bank",676:"Gateway Bank",70:"Indue",721:"Holiday Coast Credit Union",722:"Southern Cross Credit Union",723:"Bank of Heritage Isle",724:"MOVE",728:"Summerland Credit Union",777:"Police & Nurse",80:"Cuscal",670:"Cuscal",812:"Teachers Mutual Bank",813:"Capricornian",814:"Credit Union Australia",815:"Police Bank",817:"Warwick Credit Union",818:"Bank of Communications",819:"Industrial & Commercial Bank of China",824:"Sutherland Credit Union",825:"Big Sky Building Society",833:"Defence Bank",882:"Unity Bank",888:"China Construction Bank",90:"Australia Post",911:"Sumitomo Mitsui Banking Corporation",913:"State Street Bank & Trust Company",917:"Arab Bank Australia",918:"Mizuho Bank",922:"United Overseas Bank",923:"ING Bank",936:"ING Bank",931:"Mega International Commercial Bank",932:"Regional Australia Bank",939:"AMP Bank",941:"Delphi Bank (division of Bendigo and Adelaide Bank)",942:"Bank of Sydney",943:"Taiwan Business Bank",944:"Members Equity Bank",946:"UBS AG",951:"BOQ Specialist",969:"Tyro Payments"},Fn=class{constructor(n){t(this,n),this.formChanged=e(this,"formChanged",7),this.currentBank=L,this.stateOptions=[{value:"NSW",label:"NSW"},{value:"QLD",label:"QLD"},{value:"ACT",label:"ACT"},{value:"VIC",label:"VIC"},{value:"TAS",label:"TAS"},{value:"WA",label:"WA"},{value:"SA",label:"SA"},{value:"NT",label:"NT"}],this.bsbRegex=new RegExp(/^[0-9]{3}[0-9]{3}$/),this.bankAccountNumberRegex=new RegExp(/^[0-9]{2,10}$/)}render(){return n("div",null,n("div",{class:"mt-4"},n("label",{class:"mb-2 font-weight-bold"},"Fund name *"),n("input",{placeholder:"Enter your fund name",type:"text",class:"form-control",required:!0,minlength:"2",name:"fundName",id:"fundName",value:sn.selfManagedFundForm.fundName,onChange:t=>this.updateFormField("fundName",t.target.value.trim())}),n("div",{class:"invalid-feedback"},"Enter a valid fund name")),n("div",{class:"mt-4"},n("label",{class:"mb-2 font-weight-bold"},"Fund ABN *"),n("input",{placeholder:"Enter your fund ABN",type:"text",class:"form-control",required:!0,minlength:"2",name:"fundAbn",id:"fundAbn",value:sn.selfManagedFundForm.fundAbn,onChange:t=>this.updateFormField("fundAbn",t.target.value.trim())}),n("div",{class:"invalid-feedback"},"Enter a valid fund ABN")),n("div",{class:"mt-4"},n("label",{class:"mb-2 font-weight-bold"},"Electronic service address alias (ESA) *"),n("input",{placeholder:"Enter your ESA",type:"text",class:"form-control",required:!0,minlength:"2",name:"fundEsa",id:"fundEsa",value:sn.selfManagedFundForm.fundEsa,onChange:t=>this.updateFormField("fundEsa",t.target.value.trim())}),n("div",{class:"invalid-feedback"},"Enter a valid fund ESA")),n("div",{class:"mt-4"},n("label",{class:"mb-2 font-weight-bold"},"Address line 1 *"),n("input",{placeholder:"Enter your address",type:"text",class:"form-control",required:!0,minlength:"2",name:"addressLine1",id:"addressLine1",value:sn.selfManagedFundForm.addressLine1,onChange:t=>this.updateFormField("addressLine1",t.target.value.trim())}),n("div",{class:"invalid-feedback"},"Enter a valid address")),n("div",{class:"mt-4"},n("label",{class:"mb-2 font-weight-bold"},"Address line 2 (optional)"),n("input",{placeholder:"Enter your address",type:"text",class:"form-control",name:"addressLine2",id:"addressLine2",value:sn.selfManagedFundForm.addressLine2,onChange:t=>this.updateFormField("addressLine2",t.target.value.trim())}),n("div",{class:"invalid-feedback"},"Enter a valid address")),n("div",{class:"mt-4"},n("label",{class:"mb-2 font-weight-bold"},"City/suburb *"),n("input",{placeholder:"Enter your city",type:"text",class:"form-control",name:"city",required:!0,id:"city",value:sn.selfManagedFundForm.city,onChange:t=>this.updateFormField("city",t.target.value.trim())}),n("div",{class:"invalid-feedback"},"Enter a valid city/suburb *")),n("div",{class:"mt-3"},n("label",{class:"mb-2 font-weight-bold"},"State *"),n("select",{class:"form-control",name:"state",required:!0,id:"state",onChange:t=>{this.updateFormField("state",t.target.value.trim())}},n("option",{disabled:!0,selected:!this.fundForm.state,value:""},"Select a state"),this.stateOptions.map((t=>n("option",{value:t.value,selected:this.fundForm.state===t.value},t.label)))),n("div",{class:"invalid-feedback"},"Select a state")),n("div",{class:"mt-4"},n("label",{class:"mb-2 font-weight-bold"},"Post code *"),n("input",{placeholder:"Enter your post code",type:"text",required:!0,class:"form-control",name:"postcode",minlength:"4",maxlength:"4",pattern:"[0-9]{4}",id:"postcode",value:sn.selfManagedFundForm.postcode,onChange:t=>this.updateFormField("postcode",t.target.value.trim())}),n("div",{class:"invalid-feedback"},"Enter a valid post code")),n("div",null,n("i",{class:"fas fa-check-circle"})),n("div",{class:"mt-4"},n("label",{class:"mb-2 font-weight-bold"},"BSB *"),n("input",{placeholder:"Enter your BSB",type:"text",required:!0,class:"form-control",name:"bsb",id:"bsb",minlength:"6",maxlength:"7",onKeyUp:t=>this.updateCurrentBank(t),pattern:this.bsbRegex.source,value:sn.selfManagedFundForm.bsb}),O(this.currentBank)&&n("p",{class:"mt-3"},n("strong",null,"Bank name"),n("br",null),n("span",{class:"ml-2"},this.currentBank.value)),n("div",{class:"invalid-feedback"},"Enter a valid BSB")),n("div",{class:"mt-4"},n("label",{class:"mb-2 font-weight-bold"},"Bank account name *"),n("input",{placeholder:"Enter your bank account name",type:"text",required:!0,class:"form-control",name:"bankAccountName",minlength:"2",id:"bankAccountName",value:sn.selfManagedFundForm.bankAccountName,onChange:t=>this.updateFormField("bankAccountName",t.target.value.trim())}),n("div",{class:"invalid-feedback"},"Enter a valid bank account name")),n("div",{class:"mt-4"},n("label",{class:"mb-2 font-weight-bold"},"Bank account number *"),n("input",{placeholder:"Enter your bank account number",type:"text",required:!0,class:"form-control",name:"bankAccountNumber",id:"bankAccountNumber",minlength:"2",maxlength:"11",pattern:this.bankAccountNumberRegex.source,value:sn.selfManagedFundForm.bankAccountNumber,onKeyUp:t=>this.updateCurrentBankAccountNumber(t),onChange:t=>this.updateFormField("bankAccountNumber",t.target.value.trim())}),n("div",{class:"invalid-feedback"},"Enter a valid bank account number")))}updateFormField(t,n){this.formChanged.emit({[t]:n})}filterDigits(t){return t.replace(/[^0-9]/g,"")}updateCurrentBank(t){const n=this.filterDigits(t.target.value),e=n.substring(0,2),i=n.substring(0,3),r=Bn[e],o=Bn[i];r&&(this.currentBank=q(r)),o&&(this.currentBank=q(o)),""===n&&(this.currentBank=L),this.updateFormField("bsb",n)}updateCurrentBankAccountNumber(t){const n=this.filterDigits(t.target.value);this.updateFormField("bankAccountNumber",n)}};var jn;!function(t){t[t.Unauthorized=0]="Unauthorized",t[t.Authenticated=1]="Authenticated",t[t.Error=2]="Error"}(jn||(jn={}));class In{}let Mn=class extends w{constructor(){super({authenticationState:jn.Unauthorized,jwt:L,reactNativeInterop:L,iframeInterop:L,appConfiguration:L})}};Mn=function(t,n,e,i){var r,o=arguments.length,s=o<3?n:null===i?i=Object.getOwnPropertyDescriptor(n,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,n,e,i);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o<3?r(s):o>3?r(n,e,s):r(n,e))||s);return o>3&&s&&Object.defineProperty(n,e,s),s}([b({name:"sss-session",resettable:!0})],Mn);const Tn=new Mn,Pn=new class extends g{constructor(t){super(t),this.store=t}isReactNativeInteropEnabled(){return O(this.getValue().reactNativeInterop)}isIframeInteropEnabled(){return O(this.getValue().iframeInterop)}getIframeInteropMode(){const t=this.getValue().iframeInterop;if(U(t))throw Error("Failed to get iframe interop information: no data in store");if(!this.isIframeInteropEnabled())throw Error("Failed to get iframe interop information: iframe mode is disabled");return t.value}}(Tn),{state:Rn}=Et({slateFundForm:{memberNumber:"",standardChoiceFormSignature:"",shownFunds:[]}}),Nn=new class{constructor(){this.hostIsLocalSuperSelection=()=>"http://localhost:7100"==window.location.origin,this.hostIsDeployed=()=>window.location.origin.endsWith("partner.flarehr.com"),this.skipConsolidation=()=>Pn.isReactNativeInteropEnabled()?"true":"false",this.skipInsurance=()=>Pn.isReactNativeInteropEnabled()?"true":"false",this.environmentDiscriminator=()=>{const t=window.location.hostname.toLowerCase().split(".")[0];switch(t){case"autodev-partner":case"test-partner":case"partner":case"sandbox-partner":return t.replace("partner","");default:return"autodev-"}},this.slateJoinAppUrl=()=>`https://${this.environmentDiscriminator()}join.slatesuper.com.au/confirm`}build(t,n){if(!(null==t?void 0:t.contentDocument))return;const e=(this.hostIsLocalSuperSelection()||this.hostIsDeployed()?window.location.origin+"/super-selection/embed/v1.0/app":"https://autodev-partner.flarehr.com/super-selection/embed/v1.0/app")+"/slate-redirect.html",i=Object.assign(Object.assign({},this.getSlateJoinMemberData()),{successRedirectUrl:e,cancelRedirectUrl:e,skipConsolidation:this.skipConsolidation(),skipInsurance:this.skipInsurance()});this.includeJwt()&&(i.authToken=Zt.jwt);const r=e=>{const{data:i,origin:o}=e;if(i)if("slate-redirect"!==i.sender){if("flare"===i.sender&&o.endsWith("join.slatesuper.com.au"))switch(i.type){case"contentResized":t.height=i.height>0?i.height:t.height,t.width=i.width>0?i.width:t.width}}else switch(window.removeEventListener("message",r),i.type){case"success":if(i.memberNumber){Rn.slateFundForm.memberNumber=i.memberNumber,tn.navigateInternally(n,nn.SlateStandardChoice);break}default:tn.navigateInternally(n,nn.ChoicePage)}};window.addEventListener("message",r);const o=t.contentDocument;o.open();const s=o.createElement("form");let a;for(a in s.method="POST",s.target="_self",s.action=this.slateJoinAppUrl(),i){const t=i[a];if(void 0!==t){const n=document.createElement("input");n.type="hidden",n.name=a,n.value=t,s.append(n)}}o.appendChild(s),o.close(),s.submit()}getSlateJoinMemberData(){var t,n;const e=Zt.superBuyer;return{firstName:e.userProfile.firstName,middleName:e.userProfile.middleName,lastName:e.userProfile.lastName,dateOfBirth:e.userProfile.dateOfBirth,gender:(t=>{switch(t){case"Male":return"Male";case"Female":return"Female";case"Intersex":return"Intersex/Indeterminate";default:return"Unknown"}})(e.userProfile.gender),email:e.userProfile.email,mobilePhone:e.userProfile.mobilePhone,taxFileNumber:null!==(t=e.tfn)&&void 0!==t?t:"",addressLine1:e.userProfile.address.addressLine1,addressLine2:null!==(n=e.userProfile.address.addressLine2)&&void 0!==n?n:"",city:e.userProfile.address.city,state:e.userProfile.address.state,postCode:e.userProfile.address.postcode}}includeJwt(){return!this.slateJoinAppUrl().match(/autodev|sandbox/)}},Dn=class{constructor(n){t(this,n)}componentDidLoad(){Nn.build(this.iframeElement,this.history)}render(){return n(o,{class:"d-flex flex-fill"},n("iframe",{width:"100%",height:window.innerHeight,style:{border:"none"},ref:t=>this.iframeElement=t}))}},On=new class{async submitSlateChoiceAsync(t){return Kt().url("super-choice/slate").post(t).badRequest((()=>{throw new Error("Failed to process Slate join request")})).text()}},Un=class{constructor(n){t(this,n)}render(){return n(o,{class:"d-flex flex-fill"},n("div",{class:"container"},n("div",{class:"row justify-content-center"},n("div",{class:"col col-sm-10 col-md-7"},n("sss-slatesuper-header",null),n("div",null,n("form",{noValidate:!0,onSubmit:t=>t.preventDefault(),class:{"was-validated":"validated"===this.formState},ref:t=>this.formElement=t},n("sss-standard-choice-form",{onStandardChoiceFormSignatureUpdated:t=>{Rn.slateFundForm=Object.assign(Object.assign({},Rn.slateFundForm),t.detail)}})),n("div",{class:"d-flex mt-4"},n("div",{class:"flex-grow-1 w-50"},n("div",{class:"mr-2"},n("stencil-route-link",{url:"/"},n("fl-button",{isBlockElement:!0,variant:"secondary"},n("span",null,"Back"))))),n("div",{class:"flex-grow-1 w-50"},n("div",{class:"ml-2"},n("fl-promise-button",{isBlockElement:!0,promiseFn:()=>this.handleSubmitForm()},n("span",null,"Save and continue"))))))))))}async handleSubmitForm(){this.formState="validated",this.formElement.checkValidity()&&(await On.submitSlateChoiceAsync(Object.assign(Object.assign({},Rn.slateFundForm),{shownFunds:Zt.promotedFunds})),Zt.markSuperSelectionAsSubmitted(),tn.navigateInternally(this.history,nn.Success))}},Ln=class{constructor(n){t(this,n)}render(){return n("div",{class:"d-flex"},n("div",null,n("img",{class:"ss-choice-logo img-thumbnail",alt:"Simple Financial Choices Pty Ltd",src:s("assets/logo-slate.png")})),n("div",{class:"d-flex flex-column ml-3 align-items-left"},n("p",{class:"confirm-title font-weight-bold mb-0"},"You’re almost there!"),n("p",{class:"confirm-text mb-0"},"To proceed type your name below which authorises the signing of the Standard Choice form confirming your super selection.")))}static get assetsDirs(){return["assets"]}};Ln.style="";const qn=class{constructor(n){t(this,n),this.continue=e(this,"continue",7),this.standardChoiceFormUrl="/super-selection/embed/v1.0/app/assets/Superannuation_Standard_Choice_Form.pdf",this.handleContinue=()=>{this.continue.emit()}}render(){return n(o,null,n("div",{class:"overlay"}),n("div",{class:"dialog"},n("div",{class:"card p-4 mt-4 bg-light text-center"},n("div",{style:{"text-align":"center"}},n("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",fill:"orange",viewBox:"0 0 16 16"},n("path",{d:"M8.982 1.566a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566zM8 5c.535 0 .954.462.9.995l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995A.905.905 0 0 1 8 5zm.002 6a1 1 0 1 1 0 2 1 1 0 0 1 0-2z"}))),n("p",{class:"small mt-4 mb-0"},"You’ve selected a self-managed super fund (SMSF). Currently, SMSF information can’t be sent via this form. You’ll need to provide your employer with a"," ",n("a",{target:"_blank",href:this.standardChoiceFormUrl},"standard choice form")," ","for your SMSF details."),n("div",{class:"d-flex mt-4"},n("div",{class:"w-25"}),n("div",{class:"w-50"},n("fl-button",{onClick:this.handleContinue,isBlockElement:!0,variant:"primary"},n("span",null,"Continue")))))))}};qn.style="html{scroll-behavior:smooth}img.fluid-fit{-o-object-fit:cover;object-fit:cover}.overlay{position:absolute;top:0;left:0;z-index:100;background-color:#fff;opacity:0.7;width:100%;height:100%}.dialog{z-index:101;position:relative}";const zn=class{constructor(n){t(this,n),this.standardChoiceFormSignatureUpdated=e(this,"standardChoiceFormSignatureUpdated",7),this.standardChoiceFormUrl="/super-selection/embed/v1.0/app/assets/Superannuation_Standard_Choice_Form.pdf",this.standardChoiceFormSignature=""}render(){return n("div",{class:"card p-4 mt-4 bg-light"},n("h4",{class:"small font-weight-bold"},"Superannuation Standard Choice Form"),n("p",{class:"small mt-2"},"The superannuation"," ",n("a",{target:"_blank",href:this.standardChoiceFormUrl},"standard choice form")," ","informs your employer of your choice of fund."),n("h4",{class:"small font-weight-bold"},"Type your full name below (required)"),n("input",{placeholder:"Type your full name",type:"text",autocomplete:"off",class:"form-control",required:!0,minlength:"2",name:"standardChoiceFormSignature",id:"standardChoiceFormSignature",value:this.standardChoiceFormSignature,onChange:t=>this.updateFormField(t.target.value.trim())}),n("div",{class:"invalid-feedback"},"Type your full name"),n("p",{class:"small mt-3 mb-0"},"Your authorisation is required for signing this form. Applying your full name in the text field above is the same as applying your written signature and is legally binding."))}updateFormField(t){this.standardChoiceFormSignatureUpdated.emit({standardChoiceFormSignature:t})}},Vn=class{constructor(n){t(this,n)}render(){return n(o,{class:"d-flex flex-fill"},n("div",{class:"container mt-5"},n("div",{class:"row justify-content-center"},n("div",{class:"col col-sm-9 col-md-6"},n("div",{class:"bg-light rounded p-4"},n("div",{class:"d-flex justify-content-center"},n("div",null,n("svg",{width:"3em",height:"3em",viewBox:"0 0 16 16",class:"bi bi-check-circle-fill text-success",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},n("path",{"fill-rule":"evenodd",d:"M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zm-3.97-3.03a.75.75 0 0 0-1.08.022L7.477 9.417 5.384 7.323a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-.01-1.05z"})))),n("div",{class:"d-flex justify-content-center"},n("p",{class:"mt-3 confirm-title text-center font-weight-bold px-5"},"Successfully updated superannuation details")),n("div",{class:"mt-2 text-center"},n("p",{class:"confirm-text mb-0"},"Your superannuation details have been updated successfully."),n("br",null),n("p",{class:"confirm-text mb-0"},"To continue with your onboarding, press ",n("strong",null,"Continue")," below."))),n("div",{class:"flex-grow-1 mt-4"},n("fl-promise-button",{isBlockElement:!0,onClick:this.handleContinueButtonClick},n("span",null,"Continue")))))))}handleContinueButtonClick(t){Zt.completeSuperSelectionFlow()}},Hn=class{constructor(n){t(this,n),this.joinFundClicked=e(this,"joinFundClicked",7),this.eventTrackingService=fn.Instance}render(){return n(o,{class:{"d-flex p-3 fund-item":!0,"ss-picked-fund":this.isSelected}},n("div",{class:"card-body py-0 px-0 px-xl-3"},this.isSelected&&n("div",{class:"px-3 py-2 text-white promoted-picked-block position-absolute"},"You picked"),n("div",{class:"d-flex flex-fill flex-column align-items-center"},n("div",{class:"d-flex justify-content-end w-100"},n("div",{class:"text-muted small border rounded-sm px-1 mt-n2 mr-n2 mb-1"},"Advertised")),n("img",{class:"ss-choice-logo",alt:this.name,src:s("assets/"+this.logo)}),n("p",{class:"font-weight-bold text-center mt-3 mb-0"},this.name),this.subText&&n("span",{class:"text-muted small text-center font-italic"},this.subText),n("div",{class:"mt-3"},JSON.parse(this.features).map((t=>n("p",{class:"text-center"},t.value)))),this.featureSubText&&n("p",{class:"small text-muted text-center font-italic"},this.featureSubText))),n("div",{class:"text-center bottom-half-fund-tile"},n("div",{class:"p-3"},n("fl-button",{class:"uuid-button-continue",isBlockElement:!0,onClick:()=>this.handleFundClick()},"Choose this fund")),n("div",{class:"mb-2"},n("a",{target:"_blank",href:this.pdsLink,onClick:()=>this.pdsViewedAsync()},this.pdsLinkText?this.pdsLinkText:"View the PDS")),this.disclaimer,n("div",{class:"small text-muted"},this.abnInfo,n("br",null),"ABN: ",this.abn)))}handleFundClick(){return this.joinFundClicked.emit()}pdsViewedAsync(){return this.eventTrackingService.TrackSuperFundPdsViewedAsync({fundUsi:this.usi,fundName:this.name,pageName:"Panel Fund Page"})}static get assetsDirs(){return["assets"]}};Hn.style="html{scroll-behavior:smooth}img.fluid-fit{-o-object-fit:cover;object-fit:cover}.checkbox-container{border-radius:4px;background-color:#f5f4f2}.confirm-checkbox-item{-webkit-transform:scale(1.7);transform:scale(1.7)}.simple-choices-text{color:#489882}.choice-card{background:#ffffff;-webkit-box-shadow:0 1px 4px rgba(0, 0, 0, 0.25);box-shadow:0 1px 4px rgba(0, 0, 0, 0.25);border-radius:3px}.choice-card.ss-picked-fund{border:2px solid var(--fl-color-primary)}.card.ss-picked-fund{border:2px solid var(--fl-color-primary)}.ss-choice-logo{width:auto;max-height:70px;-o-object-fit:contain;object-fit:contain}img{width:100%;display:block}.choice-component{width:100%;position:relative}.flexible{-ms-flex-positive:1;flex-grow:1}.fund-item{margin-top:1rem}.promoted-picked-block{background-color:var(--fl-color-primary);border-bottom-right-radius:3px;left:0;top:0}@media (min-width: 992px){.bottom-half-fund-tile{height:250px}}";const Wn="https://slate.co/pds/?utm_source=flare&utm_medium=superselection",$n="https://www.australianretirementtrust.com.au/library/media/pdfs/pds/super-savings-product-disclosure-statement-and-membership-form.pdf",Xn="https://aware.com.au/member/forms-and-resources/pds/FSS",Jn=[{dtoPropName:"slate",id:"slate"},{dtoPropName:"australianRetirementTrust",id:"australian-retirement-trust"},{dtoPropName:"aware",id:"aware"},{dtoPropName:"active",id:"active"}],Gn=new class{async GetChosenFundAsync(){var t,n;const e=null===(t=Zt.superBuyer.superChoice)||void 0===t?void 0:t.choiceDetails;if(!e)return L;if("promoted"in e){const t=Jn.find((t=>t.dtoPropName in e.promoted)),i=null!==(n=null==t?void 0:t.id)&&void 0!==n?n:"";return q({isPromoted:!0,promotedId:i})}if("smsf"in e)return q({isPromoted:!1,name:e.smsf.fundName,type:"Self Managed Fund"});if("myOwnFund"in e){const t=e.myOwnFund.usi,n=await this.getFundByUsiAsync(t);return q({isPromoted:!1,name:O(n)?n.value.productName:t,type:"My Own Fund"})}if("default"in e){const t=e.default.usi,n=await this.getFundByUsiAsync(t);return q({isPromoted:!1,name:O(n)?n.value.productName:t,type:"Default Fund"})}return L}getFundByUsiAsync(t){return cn.getFundByUsiAsync(t)}},Kn=class{constructor(n){t(this,n),this.promotedFunds=this.getPromotedFunds(),this.chosenFund=L,this.eventTrackingService=fn.Instance,this.isPromotedFundSelected=t=>O(this.chosenFund)&&this.chosenFund.value.isPromoted&&this.chosenFund.value.promotedId===t}componentDidLoad(){yt();const t=this.promotedFunds.map((t=>t.fundId));this.eventTrackingService.TrackSuperFundPanelViewedAsync({promotedFundsShown:t})}async componentWillLoad(){this.chosenFund=await Gn.GetChosenFundAsync()}render(){return n(o,null,n("div",{class:"container mt-0 mb-0"},n("div",{class:"row justify-content-center"},n("div",{class:"col"},n("h3",{class:"mt-3 font-weight-bold text-center mb-4"},"Choose your Super"))),n("div",{class:"row justify-content-center"},n("div",{class:"col"},n("p",{class:"text-center font-weight-bold"},"The choice of superannuation fund is an important personal financial decision. It is open to you to continue with your existing fund, or alternatively, you can select from one of the funds below or choose another fund. Flare is not licensed to advise you in relation to this decision and you may wish to return to this page at a later stage."),n("p",{class:"text-center"},"The content on this page and on the following pages relating to each super fund is provided by the trustee or promoter of the super fund. The super funds presented have not been selected by your employer and neither your employer or Flare are making any recommendation or opinion."),n("p",{class:"text-center"},"There are many super funds out there and you should consider the relevant product disclosure statement and choose one that is right for you. If you are unsure, obtain your own advice. You can choose your super fund later, if you need time to obtain advice."))),n("div",{class:"row"},n("div",{class:"col"},n("sss-notifications-section",null))),n("div",{class:"row justify-content-center mt-4"},n("div",{class:"col col-sm-10 col-md-8 col-xl-7"},n("div",{class:"row"},n("div",{class:"col"},n("div",{class:"d-flex flex-fill"},O(this.chosenFund)&&!this.chosenFund.value.isPromoted&&n("sss-selected-super-choice-section",{fundType:this.chosenFund.value.type,fundName:this.chosenFund.value.name,class:"flex-fill position-relative"})))),n("div",{class:"row mt-3 justify-content-center"},this.getPromotedFunds().map((t=>n("div",{class:"col-12 col-lg-6 d-flex"},n("sss-super-choice-item",{class:"card mb-3 mb-lg-0 mx-0 flex-grow-1",logo:t.logo,isSelected:this.isPromotedFundSelected(t.fundId),usi:t.usi,name:t.name,subText:t.subText,pdsLinkText:t.pdsLinkText,pdsLink:tn.toExternalUrl(t.pdsLink),features:JSON.stringify(t.features),featureSubText:t.featureSubText,disclaimer:t.disclaimer,abnInfo:t.abnInfo,abn:t.abn,onJoinFundClicked:async()=>this.handleJoinSuperClickAsync(t)}))))),n("div",{class:"row mt-3 px-3"},n("div",{class:"col p-4 border rounded bg-light"},n("div",{class:"row"},n("div",{class:"col"},n("h5",{class:"font-weight-bold"},"Choose another super fund"),n("p",{class:"mb-1"},"Select this option if you'd like to use your current account with another super fund."),n("ul",{class:"ml-n3"},n("li",null,"If you are unsure of your current super fund details, you can find out at"," ",n("a",{target:"_blank",href:tn.toExternalUrl("https://my.gov.au")},"my.gov.au")),n("li",{class:"mt-1"},"A full list of super funds can be viewed at"," ",n("a",{target:"_blank",href:tn.toExternalUrl("https://www.apra.gov.au/register-of-superannuation-institutions")},"www.apra.gov.au/register-of-superannuation-institutions"))))),n("div",{class:"row"},n("div",{class:"col"},n("stencil-route-link",{url:nn.MyOwnFund},n("fl-button",{isBlockElement:!0,variant:"primary",class:"d-lg-none"},"Choose another fund"),n("div",{class:"mt-n3 d-none d-lg-flex justify-content-end align-items-end"},n("fl-button",{variant:"primary"},"Choose another fund"))))))))),n("div",{class:"row justify-content-center mt-5"},n("div",{class:"col"},n("p",{class:"text-center"},"You should be aware that, if you do choose one of these advertised funds, Flare and its associated entities will normally receive a fee for you doing so.")))))}allFunds(){return[{fundId:"slate",usi:"32367272075001",name:"Slate Super",logo:"logo-slate.png",route:nn.SlateJoin,pdsLink:Wn,features:[{order:1,value:"A lifestage investment strategy that evolves with you"},{order:2,value:"Advanced mobile app with retirement forecast and smart features"},{order:3,value:"Member advocates at Slate to assist with your account"}],disclaimer:n("p",{class:"small text-muted"},"You should consider the"," ",n("a",{target:"_blank",href:tn.toExternalUrl(Wn),onClick:()=>this.pdsViewedAsync("Slate Super","32367272075001")},"Product Disclosure Statement")," ","and"," ",n("a",{target:"_blank",href:tn.toExternalUrl("https://slate.co/forms-and-documents/target-market-determination/")},"Target Market Determination")," ","before deciding to invest in or apply to become a member of the fund."),abnInfo:"Diversa Trustees Limited",abn:"49 006 421 638"},{fundId:"australian-retirement-trust",name:"Australian Retirement Trust",subText:"QSuper is now part of Australian Retirement Trust. If you have an existing QSuper account, you will continue to hold that account by selecting this option.",logo:"logo-art.svg",route:nn.PromotedFundJoin,pdsLink:$n,features:[{order:1,value:"$200 billion in retirement savings"},{order:2,value:"2+ million members"},{order:3,value:"A focus on delivering strong, long‑term returns"}],disclaimer:n("p",{class:"small text-muted"},"You should consider the"," ",n("a",{target:"_blank",href:tn.toExternalUrl($n),onClick:()=>this.pdsViewedAsync("Australian Retirement Trust")},"Product Disclosure Statement")," ","before deciding to invest in or apply to become a member of this fund."),abnInfo:"Australian Retirement Trust",abn:"60 905 115 063"},{fundId:"aware",name:"Aware Super",subText:"An industry fund for all",logo:"logo-aware.svg",route:nn.PromotedFundJoin,pdsLinkText:"View the PDS and TMD",pdsLink:Xn,features:[{order:1,value:"Acting on climate change"},{order:2,value:"All profits go to members"},{order:3,value:"One of Australia’s largest funds"}],disclaimer:n("p",{class:"small text-muted"},"You should consider the"," ",n("a",{target:"_blank",href:tn.toExternalUrl(Xn),onClick:()=>this.pdsViewedAsync("Aware Super")},"Product Disclosure Statement")," ","before deciding to invest in or apply to become a member of this fund."),abnInfo:"Aware Super Pty Ltd",abn:"53 226 460 365"},{fundId:"active",name:"Active Super",logo:"logo-active.svg",route:nn.PromotedFundJoin,pdsLinkText:"View the PDS",pdsLink:"https://www.activesuper.com.au/pds",features:[{order:1,value:"Delivered our best annual returns on record in 2020/2021*"},{order:2,value:"Recognised as a leader in responsible investing"},{order:3,value:"Calls answered in less than 20 seconds"}],featureSubText:"* Past performance is not a reliable indicator of future performance.",disclaimer:n("p",{class:"small text-muted"},"Active Super Accumulation Scheme is issued by LGSS Pty Limited, as trustee for Local Government Super ('Active Super'). Consider the PDS and TMD at"," ",n("a",{target:"_blank",onClick:()=>this.pdsViewedAsync("Active Super"),href:tn.toExternalUrl("https://www.activesuper.com.au/pds")},"activesuper.com.au")," ","before making a decision."),abnInfo:"Local Government Super (Active Super)",abn:"28 901 371 321"}]}getPromotedFunds(){const t=[];return Zt.promotedFunds.forEach((n=>{const e=this.allFunds().find((t=>n==t.fundId));void 0!==e&&t.push(e)})),t}async handleJoinSuperClickAsync(t){const n=Zt.promotedFunds;return"slate"===t.fundId?await this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({fundUsi:"32367272075001",fundName:"Slate Super",promotedFundId:"slate",promotedFundsShown:n}):"australian-retirement-trust"===t.fundId?(await this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({fundName:"Australian Retirement Trust",promotedFundId:"australian-retirement-trust",promotedFundsShown:n}),xn.fundId=t.fundId):"aware"===t.fundId?(await this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({fundName:"Aware Super",promotedFundId:"aware",promotedFundsShown:n}),xn.fundId=t.fundId):"active"===t.fundId&&(await this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({fundName:"Active Super",promotedFundId:"active",promotedFundsShown:n}),xn.fundId=t.fundId),tn.navigateInternally(this.history,t.route)}pdsViewedAsync(t,n){return this.eventTrackingService.TrackSuperFundPdsViewedAsync({fundUsi:n,fundName:t,pageName:"Panel Fund Page"})}static get assetsDirs(){return["assets"]}};Kn.style="html{scroll-behavior:smooth}img.fluid-fit{-o-object-fit:cover;object-fit:cover}.checkbox-container{border-radius:4px;background-color:#f5f4f2}.confirm-checkbox-item{-webkit-transform:scale(1.7);transform:scale(1.7)}.simple-choices-text{color:#489882}.choice-card{background:#ffffff;-webkit-box-shadow:0 1px 4px rgba(0, 0, 0, 0.25);box-shadow:0 1px 4px rgba(0, 0, 0, 0.25);border-radius:3px}.choice-card.ss-picked-fund{border:2px solid var(--fl-color-primary)}.card.ss-picked-fund{border:2px solid var(--fl-color-primary)}.ss-choice-logo{width:auto;max-height:70px;-o-object-fit:contain;object-fit:contain}img{width:100%;display:block}.choice-component{width:100%;position:relative}.flexible{-ms-flex-positive:1;flex-grow:1}.fund-item{margin-top:1rem}.promoted-picked-block{background-color:var(--fl-color-primary);border-bottom-right-radius:3px;left:0;top:0}@media (min-width: 992px){.bottom-half-fund-tile{height:250px}}";const Yn=class{constructor(n){t(this,n),this.group=null,this.match=null,this.componentProps={},this.exact=!1,this.scrollOnNextRender=!1,this.previousMatch=null}computeMatch(t){const n=null!=this.group||null!=this.el.parentElement&&"stencil-route-switch"===this.el.parentElement.tagName.toLowerCase();if(t&&!n)return this.previousMatch=this.match,this.match=lt(t.pathname,{path:this.url,exact:this.exact,strict:!0})}async loadCompleted(){let t={};var n,e;this.history&&this.history.location.hash?t={scrollToId:this.history.location.hash.substr(1)}:this.scrollTopOffset&&(t={scrollTopOffset:this.scrollTopOffset}),"function"==typeof this.componentUpdated?this.componentUpdated(t):!this.match||(e=this.previousMatch,null==(n=this.match)&&null==e||null!=e&&n&&e&&n.path===e.path&&n.url===e.url&&st(n.params,e.params))||!this.routeViewsUpdated||this.routeViewsUpdated(t)}async componentDidUpdate(){await this.loadCompleted()}async componentDidLoad(){await this.loadCompleted()}render(){if(!this.match||!this.history)return null;const t=Object.assign({},this.componentProps,{history:this.history,match:this.match});return this.routeRender?this.routeRender(Object.assign({},t,{component:this.component})):this.component?n(this.component,Object.assign({},t)):void 0}get el(){return a(this)}static get watchers(){return{location:["computeMatch"]}}};A.injectProps(Yn,["location","history","historyType","routeViewsUpdated"]),Yn.style="stencil-route.inactive{display:none}";const Qn=(t,n,e)=>e(t.confirm(n)),Zn=(t,n)=>{const e=t[n],i="__storage_test__";try{return e.setItem(i,i),e.removeItem(i),!0}catch(t){return t instanceof DOMException&&(22===t.code||1014===t.code||"QuotaExceededError"===t.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.name)&&0!==e.length}},te=class{constructor(n){t(this,n),this.unsubscribe=()=>{},this.activeClass="link-active",this.exact=!1,this.strict=!0,this.custom="a",this.match=null}componentWillLoad(){this.computeMatch()}computeMatch(){this.location&&(this.match=lt(this.location.pathname,{path:this.urlMatch||this.url,exact:this.exact,strict:this.strict}))}handleClick(t){var n,e,i;if(!((n=t).metaKey||n.altKey||n.ctrlKey||n.shiftKey)&&this.history&&this.url&&this.root)return t.preventDefault(),this.history.push((i=this.root,"/"==(e=this.url).charAt(0)&&"/"==i.charAt(i.length-1)?i.slice(0,i.length-1)+e:i+e))}render(){let t={class:{[this.activeClass]:null!==this.match},onClick:this.handleClick.bind(this)};return this.anchorClass&&(t.class[this.anchorClass]=!0),"a"===this.custom&&(t=Object.assign({},t,{href:this.url,title:this.anchorTitle,role:this.anchorRole,tabindex:this.anchorTabIndex,"aria-haspopup":this.ariaHaspopup,id:this.anchorId,"aria-posinset":this.ariaPosinset,"aria-setsize":this.ariaSetsize,"aria-label":this.ariaLabel})),n(this.custom,Object.assign({},t),n("slot",null))}get el(){return a(this)}static get watchers(){return{location:["computeMatch"]}}};A.injectProps(te,["history","location","root"]);const ne=t=>"STENCIL-ROUTE"===t.tagName,ee=class{constructor(n){t(this,n),this.group=((1e17*Math.random()).toString().match(/.{4}/g)||[]).join("-"),this.subscribers=[],this.queue=u(this,"queue")}componentWillLoad(){null!=this.location&&this.regenerateSubscribers(this.location)}async regenerateSubscribers(t){if(null==t)return;let n=-1;if(this.subscribers=Array.prototype.slice.call(this.el.children).filter(ne).map(((e,i)=>{const r=lt(t.pathname,{path:e.url,exact:e.exact,strict:!0});return r&&-1===n&&(n=i),{el:e,match:r}})),-1===n)return;if(this.activeIndex===n)return void(this.subscribers[n].el.match=this.subscribers[n].match);this.activeIndex=n;const e=this.subscribers[this.activeIndex];this.scrollTopOffset&&(e.el.scrollTopOffset=this.scrollTopOffset),e.el.group=this.group,e.el.match=e.match,e.el.componentUpdated=t=>{this.queue.write((()=>{this.subscribers.forEach(((t,n)=>{if(t.el.componentUpdated=void 0,n===this.activeIndex)return t.el.style.display="";this.scrollTopOffset&&(t.el.scrollTopOffset=this.scrollTopOffset),t.el.group=this.group,t.el.match=null,t.el.style.display="none"}))})),this.routeViewsUpdated&&this.routeViewsUpdated(Object.assign({scrollTopOffset:this.scrollTopOffset},t))}}render(){return n("slot",null)}get el(){return a(this)}static get watchers(){return{location:["regenerateSubscribers"]}}};A.injectProps(ee,["location","routeViewsUpdated"]);const ie=(t,...n)=>{t||console.warn(...n)},re=()=>{let t,n=[];return{setPrompt:n=>(ie(null==t,"A history supports only one prompt at a time"),t=n,()=>{t===n&&(t=null)}),confirmTransitionTo:(n,e,i,r)=>{if(null!=t){const o="function"==typeof t?t(n,e):t;"string"==typeof o?"function"==typeof i?i(o,r):(ie(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),r(!0)):r(!1!==o)}else r(!0)},appendListener:t=>{let e=!0;const i=(...n)=>{e&&t(...n)};return n.push(i),()=>{e=!1,n=n.filter((t=>t!==i))}},notifyListeners:(...t)=>{n.forEach((n=>n(...t)))}}},oe=(t,n="scrollPositions")=>{let e=new Map;const i=(n,i)=>{if(e.set(n,i),Zn(t,"sessionStorage")){const n=[];e.forEach(((t,e)=>{n.push([e,t])})),t.sessionStorage.setItem("scrollPositions",JSON.stringify(n))}};if(Zn(t,"sessionStorage")){const i=t.sessionStorage.getItem(n);e=i?new Map(JSON.parse(i)):e}return"scrollRestoration"in t.history&&(history.scrollRestoration="manual"),{set:i,get:t=>e.get(t),has:t=>e.has(t),capture:n=>{i(n,[t.scrollX,t.scrollY])}}},se={hashbang:{encodePath:t=>"!"===t.charAt(0)?t:"!/"+nt(t),decodePath:t=>"!"===t.charAt(0)?t.substr(1):t},noslash:{encodePath:nt,decodePath:tt},slash:{encodePath:tt,decodePath:tt}},ae=(t,n)=>{const e=0==t.pathname.indexOf(n)?"/"+t.pathname.slice(n.length):t.pathname;return Object.assign({},t,{pathname:e})},ue={browser:(t,n={})=>{let e=!1;const i=t.history,r=t.location,o=t.navigator,s=(t=>{const n=t.navigator.userAgent;return(-1===n.indexOf("Android 2.")&&-1===n.indexOf("Android 4.0")||-1===n.indexOf("Mobile Safari")||-1!==n.indexOf("Chrome")||-1!==n.indexOf("Windows Phone"))&&t.history&&"pushState"in t.history})(t),a=!(-1===o.userAgent.indexOf("Trident")),u=oe(t),c=null!=n.forceRefresh&&n.forceRefresh,l=null!=n.getUserConfirmation?n.getUserConfirmation:Qn,f=null!=n.keyLength?n.keyLength:6,d=n.basename?Z(tt(n.basename)):"",h=()=>{try{return t.history.state||{}}catch(t){return{}}},p=t=>{t=t||{};const{key:n,state:e}=t,{pathname:i,search:o,hash:s}=r;let a=i+o+s;return ie(!d||Y(a,d),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+a+'" to begin with "'+d+'".'),d&&(a=Q(a,d)),at(a,e,n||rt(f))},v=re(),m=t=>{u.capture(B.location.key),Object.assign(B,t),B.location.scrollPosition=u.get(B.location.key),B.length=i.length,v.notifyListeners(B.location,B.action)},b=t=>{((t,n)=>void 0===n.state&&-1===t.userAgent.indexOf("CriOS"))(o,t)||g(p(t.state))},w=()=>{g(p(h()))},g=t=>{if(e)e=!1,m();else{const n="POP";v.confirmTransitionTo(t,n,l,(e=>{e?m({action:n,location:t}):y(t)}))}},y=t=>{let n=k.indexOf(B.location.key),i=k.indexOf(t.key);-1===n&&(n=0),-1===i&&(i=0);const r=n-i;r&&(e=!0,_(r))},x=p(h());let k=[x.key],S=0,C=!1;const A=t=>d+et(t),_=t=>{i.go(t)},E=n=>{S+=n,1===S?(t.addEventListener("popstate",b),a&&t.addEventListener("hashchange",w)):0===S&&(t.removeEventListener("popstate",b),a&&t.removeEventListener("hashchange",w))},B={length:i.length,action:"POP",location:x,createHref:A,push:(t,n)=>{ie(!("object"==typeof t&&void 0!==t.state&&void 0!==n),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");const e="PUSH",o=at(t,n,rt(f),B.location);v.confirmTransitionTo(o,e,l,(t=>{if(!t)return;const n=A(o),{key:a,state:u}=o;if(s)if(i.pushState({key:a,state:u},"",n),c)r.href=n;else{const t=k.indexOf(B.location.key),n=k.slice(0,-1===t?0:t+1);n.push(o.key),k=n,m({action:e,location:o})}else ie(void 0===u,"Browser history cannot push state in browsers that do not support HTML5 history"),r.href=n}))},replace:(t,n)=>{ie(!("object"==typeof t&&void 0!==t.state&&void 0!==n),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");const e="REPLACE",o=at(t,n,rt(f),B.location);v.confirmTransitionTo(o,e,l,(t=>{if(!t)return;const n=A(o),{key:a,state:u}=o;if(s)if(i.replaceState({key:a,state:u},"",n),c)r.replace(n);else{const t=k.indexOf(B.location.key);-1!==t&&(k[t]=o.key),m({action:e,location:o})}else ie(void 0===u,"Browser history cannot replace state in browsers that do not support HTML5 history"),r.replace(n)}))},go:_,goBack:()=>_(-1),goForward:()=>_(1),block:(t="")=>{const n=v.setPrompt(t);return C||(E(1),C=!0),()=>(C&&(C=!1,E(-1)),n())},listen:t=>{const n=v.appendListener(t);return E(1),()=>{E(-1),n()}},win:t};return B},hash:(t,n={})=>{let e=!1,i=null,r=0,o=!1;const s=t.location,a=t.history,u=-1===t.navigator.userAgent.indexOf("Firefox"),c=null!=n.keyLength?n.keyLength:6,{getUserConfirmation:l=Qn,hashType:f="slash"}=n,d=n.basename?Z(tt(n.basename)):"",{encodePath:h,decodePath:p}=se[f],v=()=>{const t=s.href,n=t.indexOf("#");return-1===n?"":t.substring(n+1)},m=t=>{const n=s.href.indexOf("#");s.replace(s.href.slice(0,n>=0?n:0)+"#"+t)},b=()=>{let t=p(v());return ie(!d||Y(t,d),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+t+'" to begin with "'+d+'".'),d&&(t=Q(t,d)),at(t,void 0,rt(c))},w=re(),g=t=>{Object.assign(F,t),F.length=a.length,w.notifyListeners(F.location,F.action)},y=()=>{const t=v(),n=h(t);if(t!==n)m(n);else{const t=b(),n=F.location;if(!e&&(r=n).pathname===(o=t).pathname&&r.search===o.search&&r.hash===o.hash&&r.key===o.key&&st(r.state,o.state))return;if(i===et(t))return;i=null,x(t)}var r,o},x=t=>{if(e)e=!1,g();else{const n="POP";w.confirmTransitionTo(t,n,l,(e=>{e?g({action:n,location:t}):k(t)}))}},k=t=>{let n=_.lastIndexOf(et(F.location)),i=_.lastIndexOf(et(t));-1===n&&(n=0),-1===i&&(i=0);const r=n-i;r&&(e=!0,E(r))},S=v(),C=h(S);S!==C&&m(C);const A=b();let _=[et(A)];const E=t=>{ie(u,"Hash history go(n) causes a full page reload in this browser"),a.go(t)},B=(t,n)=>{r+=n,1===r?t.addEventListener("hashchange",y):0===r&&t.removeEventListener("hashchange",y)},F={length:a.length,action:"POP",location:A,createHref:t=>"#"+h(d+et(t)),push:(t,n)=>{ie(void 0===n,"Hash history cannot push state; it is ignored");const e="PUSH",r=at(t,void 0,rt(c),F.location);w.confirmTransitionTo(r,e,l,(t=>{if(!t)return;const n=et(r),o=h(d+n);if(v()!==o){i=n,(t=>{s.hash=t})(o);const t=_.lastIndexOf(et(F.location)),a=_.slice(0,-1===t?0:t+1);a.push(n),_=a,g({action:e,location:r})}else ie(!1,"Hash history cannot PUSH the same path; a new entry will not be added to the history stack"),g()}))},replace:(t,n)=>{ie(void 0===n,"Hash history cannot replace state; it is ignored");const e="REPLACE",r=at(t,void 0,rt(c),F.location);w.confirmTransitionTo(r,e,l,(t=>{if(!t)return;const n=et(r),o=h(d+n);v()!==o&&(i=n,m(o));const s=_.indexOf(et(F.location));-1!==s&&(_[s]=n),g({action:e,location:r})}))},go:E,goBack:()=>E(-1),goForward:()=>E(1),block:(n="")=>{const e=w.setPrompt(n);return o||(B(t,1),o=!0),()=>(o&&(o=!1,B(t,-1)),e())},listen:n=>{const e=w.appendListener(n);return B(t,1),()=>{B(t,-1),e()}},win:t};return F}},ce=class{constructor(n){t(this,n),this.root="/",this.historyType="browser",this.titleSuffix="",this.routeViewsUpdated=(t={})=>{if(this.history&&t.scrollToId&&"browser"===this.historyType){const n=this.history.win.document.getElementById(t.scrollToId);if(n)return n.scrollIntoView()}this.scrollTo(t.scrollTopOffset||this.scrollTopOffset)},this.isServer=u(this,"isServer"),this.queue=u(this,"queue")}componentWillLoad(){this.history=ue[this.historyType](this.el.ownerDocument.defaultView),this.history.listen((t=>{t=ae(t,this.root),this.location=t})),this.location=ae(this.history.location,this.root)}scrollTo(t){const n=this.history;if(null!=t&&!this.isServer&&n)return"POP"===n.action&&Array.isArray(n.location.scrollPosition)?this.queue.write((()=>{n&&n.location&&Array.isArray(n.location.scrollPosition)&&n.win.scrollTo(n.location.scrollPosition[0],n.location.scrollPosition[1])})):this.queue.write((()=>{n.win.scrollTo(0,t)}))}render(){if(this.location&&this.history)return n(A.Provider,{state:{historyType:this.historyType,location:this.location,titleSuffix:this.titleSuffix,root:this.root,history:this.history,routeViewsUpdated:this.routeViewsUpdated}},n("slot",null))}get el(){return a(this)}},le=class{constructor(n){t(this,n),this.stepSubmitSuccess=e(this,"step-completion",7),this.successPageAcknowledged=e(this,"successPageAcknowledged",5),this.initialised=e(this,"initialised",7),this.isAppInitialised=!1}async componentWillLoad(){const t=jt.fromNullable(this.accessToken);if(jt.isNone(t))throw Error("jwt property is missing.");Zt.state.jwt=t;const n=jt.fromNullable(this.backendUrl);if(jt.isNone(n))throw Error("apiBaseUrl property is missing.");Zt.state.apiBaseUrl=jt.some(n.value.replace(/\/$/,"")+"/");const e=jt.fromNullable(this.appBaseUrl);if(jt.isNone(e))throw Error("appBaseUrl property is missing.");Zt.state.appBaseUrl=jt.some(e.value.replace(/\/$/,"")),Zt.onChange("hasSuccessPageBeenAcknowledged",(()=>this.successPageAcknowledged.emit())),Zt.onChange("hasSuperSelectionBeenSubmitted",(t=>{t&&(this.stepSubmitSuccess.emit(),Zt.state.hasSuperSelectionBeenSubmitted=!1)}))}async componentDidLoad(){await Zt.loadAppStateAsync(),this.isAppInitialised=!0,this.initialised.emit({accountIdOrDefault:Zt.accountIdOrDefault,partnerIdOrDefault:Zt.partnerIdOrDefault,profileId:Zt.profileId})}authTokenChanged(t){Zt.state.jwt=jt.fromNullable(t)}onRouteChange(){null===window||void 0===window||window.scroll(0,0)}render(){return n(o,{class:"d-flex justify-content-center flex-grow-1"},n("div",{class:"d-flex flex-column justify-content-between"},this.renderAppContent()))}routerBaseUrl(){var t;return(null===(t=this.appBaseUrl)||void 0===t?void 0:t.replace(/\/$/,""))+"/"}renderAppContent(){return n("stencil-router",{root:this.routerBaseUrl()},n("stencil-route-switch",{scrollTopOffset:0},n("div",{class:"d-flex flex-column"},n("div",{class:"d-flex justify-content-center"},this.isAppInitialised?en:n("fl-loading-indicator",{class:"mt-5"})),n("div",{class:"d-flex justify-content-center"},n("sss-footer-section",null)))))}static get watchers(){return{accessToken:["authTokenChanged"],location:["onRouteChange"]}}};H(le),le.style="html{scroll-behavior:smooth}img.fluid-fit{-o-object-fit:cover;object-fit:cover}stencil-route{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto}stencil-route:empty{display:none}";var fe,de=[],he="ResizeObserver loop completed with undelivered notifications.";!function(t){t.BORDER_BOX="border-box",t.CONTENT_BOX="content-box",t.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"}(fe||(fe={}));var pe,ve=function(t){return Object.freeze(t)},me=function(t,n){this.inlineSize=t,this.blockSize=n,ve(this)},be=function(){function t(t,n,e,i){return this.x=t,this.y=n,this.width=e,this.height=i,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,ve(this)}return t.prototype.toJSON=function(){var t=this;return{x:t.x,y:t.y,top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.width,height:t.height}},t.fromRect=function(n){return new t(n.x,n.y,n.width,n.height)},t}(),we=function(t){return t instanceof SVGElement&&"getBBox"in t},ge=function(t){if(we(t)){var n=t.getBBox();return!n.width&&!n.height}return!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},ye=function(t){var n,e,i=null===(e=null===(n=t)||void 0===n?void 0:n.ownerDocument)||void 0===e?void 0:e.defaultView;return!!(i&&t instanceof i.Element)},xe="undefined"!=typeof window?window:{},ke=new WeakMap,Se=/auto|scroll/,Ce=/^tb|vertical/,Ae=/msie|trident/i.test(xe.navigator&&xe.navigator.userAgent),_e=function(t){return parseFloat(t||"0")},Ee=function(t,n,e){return void 0===t&&(t=0),void 0===n&&(n=0),void 0===e&&(e=!1),new me((e?n:t)||0,(e?t:n)||0)},Be=ve({devicePixelContentBoxSize:Ee(),borderBoxSize:Ee(),contentBoxSize:Ee(),contentRect:new be(0,0,0,0)}),Fe=function(t,n){if(void 0===n&&(n=!1),ke.has(t)&&!n)return ke.get(t);if(ge(t))return ke.set(t,Be),Be;var e=getComputedStyle(t),i=we(t)&&t.ownerSVGElement&&t.getBBox(),r=!Ae&&"border-box"===e.boxSizing,o=Ce.test(e.writingMode||""),s=!i&&Se.test(e.overflowY||""),a=!i&&Se.test(e.overflowX||""),u=i?0:_e(e.paddingTop),c=i?0:_e(e.paddingRight),l=i?0:_e(e.paddingBottom),f=i?0:_e(e.paddingLeft),d=i?0:_e(e.borderTopWidth),h=i?0:_e(e.borderRightWidth),p=i?0:_e(e.borderBottomWidth),v=f+c,m=u+l,b=(i?0:_e(e.borderLeftWidth))+h,w=d+p,g=a?t.offsetHeight-w-t.clientHeight:0,y=s?t.offsetWidth-b-t.clientWidth:0,x=r?v+b:0,k=r?m+w:0,S=i?i.width:_e(e.width)-x-y,C=i?i.height:_e(e.height)-k-g,A=S+v+y+b,_=C+m+g+w,E=ve({devicePixelContentBoxSize:Ee(Math.round(S*devicePixelRatio),Math.round(C*devicePixelRatio),o),borderBoxSize:Ee(A,_,o),contentBoxSize:Ee(S,C,o),contentRect:new be(f,u,S,C)});return ke.set(t,E),E},je=function(t,n,e){var i=Fe(t,e),r=i.borderBoxSize,o=i.contentBoxSize,s=i.devicePixelContentBoxSize;switch(n){case fe.DEVICE_PIXEL_CONTENT_BOX:return s;case fe.BORDER_BOX:return r;default:return o}},Ie=function(t){var n=Fe(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=ve([n.borderBoxSize]),this.contentBoxSize=ve([n.contentBoxSize]),this.devicePixelContentBoxSize=ve([n.devicePixelContentBoxSize])},Me=function(t){if(ge(t))return 1/0;for(var n=0,e=t.parentNode;e;)n+=1,e=e.parentNode;return n},Te=function(){var t=1/0,n=[];de.forEach((function(e){if(0!==e.activeTargets.length){var i=[];e.activeTargets.forEach((function(n){var e=new Ie(n.target),r=Me(n.target);i.push(e),n.lastReportedSize=je(n.target,n.observedBox),r<t&&(t=r)})),n.push((function(){e.callback.call(e.observer,i,e.observer)})),e.activeTargets.splice(0,e.activeTargets.length)}}));for(var e=0,i=n;e<i.length;e++)(0,i[e])();return t},Pe=function(t){de.forEach((function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach((function(e){e.isActive()&&(Me(e.target)>t?n.activeTargets.push(e):n.skippedTargets.push(e))}))}))},Re=[],Ne=0,De={attributes:!0,characterData:!0,childList:!0,subtree:!0},Oe=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Ue=function(t){return void 0===t&&(t=0),Date.now()+t},Le=!1,qe=new(function(){function t(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return t.prototype.run=function(t){var n=this;if(void 0===t&&(t=250),!Le){Le=!0;var e,i=Ue(t);e=function(){var e=!1;try{e=function(){var t,n=0;for(Pe(n);de.some((function(t){return t.activeTargets.length>0}));)n=Te(),Pe(n);return de.some((function(t){return t.skippedTargets.length>0}))&&("function"==typeof ErrorEvent?t=new ErrorEvent("error",{message:he}):((t=document.createEvent("Event")).initEvent("error",!1,!1),t.message=he),window.dispatchEvent(t)),n>0}()}finally{if(Le=!1,t=i-Ue(),!Ne)return;e?n.run(1e3):t>0?n.run(t):n.start()}},function(t){if(!pe){var n=0,e=document.createTextNode("");new MutationObserver((function(){return Re.splice(0).forEach((function(t){return t()}))})).observe(e,{characterData:!0}),pe=function(){e.textContent=""+(n?n--:n++)}}Re.push(t),pe()}((function(){requestAnimationFrame(e)}))}},t.prototype.schedule=function(){this.stop(),this.run()},t.prototype.observe=function(){var t=this,n=function(){return t.observer&&t.observer.observe(document.body,De)};document.body?n():xe.addEventListener("DOMContentLoaded",n)},t.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Oe.forEach((function(n){return xe.addEventListener(n,t.listener,!0)})))},t.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),Oe.forEach((function(n){return xe.removeEventListener(n,t.listener,!0)})),this.stopped=!0)},t}()),ze=function(t){!Ne&&t>0&&qe.start(),!(Ne+=t)&&qe.stop()},Ve=function(){function t(t,n){this.target=t,this.observedBox=n||fe.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return t.prototype.isActive=function(){var t,n=je(this.target,this.observedBox,!0);return we(t=this.target)||function(t){switch(t.tagName){case"INPUT":if("image"!==t.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1}(t)||"inline"!==getComputedStyle(t).display||(this.lastReportedSize=n),this.lastReportedSize.inlineSize!==n.inlineSize||this.lastReportedSize.blockSize!==n.blockSize},t}(),He=function(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n},We=new WeakMap,$e=function(t,n){for(var e=0;e<t.length;e+=1)if(t[e].target===n)return e;return-1},Xe=function(){function t(){}return t.connect=function(t,n){var e=new He(t,n);We.set(t,e)},t.observe=function(t,n,e){var i=We.get(t),r=0===i.observationTargets.length;$e(i.observationTargets,n)<0&&(r&&de.push(i),i.observationTargets.push(new Ve(n,e&&e.box)),ze(1),qe.schedule())},t.unobserve=function(t,n){var e=We.get(t),i=$e(e.observationTargets,n);i>=0&&(1===e.observationTargets.length&&de.splice(de.indexOf(e),1),e.observationTargets.splice(i,1),ze(-1))},t.disconnect=function(t){var n=this,e=We.get(t);e.observationTargets.slice().forEach((function(e){return n.unobserve(t,e.target)})),e.activeTargets.splice(0,e.activeTargets.length)},t}(),Je=function(){function t(t){if(0===arguments.length)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof t)throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Xe.connect(this,t)}return t.prototype.observe=function(t,n){if(0===arguments.length)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!ye(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Xe.observe(this,t,n)},t.prototype.unobserve=function(t){if(0===arguments.length)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!ye(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Xe.unobserve(this,t)},t.prototype.disconnect=function(){Xe.disconnect(this)},t.toString=function(){return"function ResizeObserver () { [polyfill code] }"},t}();const Ge=new class{constructor(){this._appRootUrl=new V((()=>this.resolveRootUrl())),this.getAppRootUrl=()=>this._appRootUrl.value,this.getAppHostUrl=()=>`${window.location.origin}${this.getAppRootUrl()}`.replace(/\/$/,"")}async loadConfigurationAsync(){const t=await Gt(this.getAppRootUrl()+"config.json").get().json();Tn.update({appConfiguration:jt.fromNullable(t)})}resolveRootUrl(){const t=jt.fromNullable(window.location.pathname.match(/^\/super-selection\/embed\/v1.0\/app/));if(jt.isNone(t))throw Error("Unsupported host URL");return t.value[0]+"/"}};function Ke(){return"undefined"!=typeof globalThis&&globalThis?globalThis:"undefined"!=typeof self&&self?self:"undefined"!=typeof window&&window?window:"undefined"!=typeof global&&global?global:null}function Ye(t){var n=Object.create;if(n)return n(t);if(null==t)return{};var e=typeof t;if("object"!==e&&"function"!==e)throw new TypeError("Object prototype may only be an Object:"+t);function i(){}return i.prototype=t,new i}var Qe,Ze,ti=function(t,n){return(ti=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)n.hasOwnProperty(e)&&(t[e]=n[e])})(t,n)},ni=Ke()||{};Ze=function(t,n){function e(){this.constructor=t}ti(t,n),t.prototype=null===n?Ye(n):(e.prototype=n.prototype,new e)},(Qe=ni).__assign||(Qe.__assign=Object.assign||function(t){for(var n,e=1,i=arguments.length;e<i;e++)for(var r in n=arguments[e])Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t}),Qe.__extends||(Qe.__extends=Ze),__assign||(__assign=ni.__assign),__extends||(__extends=ni.__extends);var ei=Ke;function ii(t){var n=ei();return n&&n[t]?n[t]:"window"===t&&ri()?window:null}function ri(){return Boolean("object"==typeof window&&window)}function oi(){return ri()?window:ii("window")}function si(){return Boolean("object"==typeof document&&document)}function ai(){return si()?document:ii("document")}function ui(){return Boolean("object"==typeof navigator&&navigator)?navigator:ii("navigator")}function ci(){return"object"==typeof location&&location?location:ii("location")}function li(){return ii("performance")}function fi(){return Boolean("object"==typeof JSON&&JSON||null!==ii("JSON"))}function di(){return fi()?JSON||ii("JSON"):null}var hi=null,pi=!1,vi=123456789,mi=987654321;function bi(t){t<0&&(t>>>=0),vi=123456789+t&4294967295,mi=987654321-t&4294967295,pi=!0}function wi(){bi(4294967296*Math.random()^(new Date).getTime())}function gi(t,n){return typeof t===n}function yi(t){return gi(t,"undefined")||void 0===t}function xi(t){return yi(t)||null===t}function ki(t,n){return t&&Object.prototype.hasOwnProperty.call(t,n)}function Si(t){return gi(t,"object")}function Ci(t){return gi(t,"function")}function Ai(t,n,e,i){void 0===i&&(i=!1);var r=!1;if(!xi(t))try{xi(t.addEventListener)?xi(t.attachEvent)||(t.attachEvent("on"+n,e),r=!0):(t.addEventListener(n,e,i),r=!0)}catch(t){}return r}function _i(t,n,e,i){if(void 0===i&&(i=!1),!xi(t))try{xi(t.removeEventListener)?xi(t.detachEvent)||t.detachEvent("on"+n,e):t.removeEventListener(n,e,i)}catch(t){}}function Ei(t,n){if(t&&Si(t))for(var e in t)ki(t,e)&&n.call(t,e,t[e])}var Bi,Fi=function(){function t(){}return t.isDate=function(t){return"[object Date]"===Object.prototype.toString.call(t)},t.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)},t.isError=function(t){return"[object Error]"===Object.prototype.toString.call(t)},t.isString=function(t){return gi(t,"string")},t.isNumber=function(t){return gi(t,"number")},t.isBoolean=function(t){return gi(t,"boolean")},t.disableCookies=function(){t._canUseCookies=!1},t.newGuid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(ji,(function(n){var e=0|t.randomValue(15);return("x"===n?e:3&e|8).toString(16)}))},t.toISOString=function(n){if(t.isDate(n)){var e=function(t){var n=String(t);return 1===n.length&&(n="0"+n),n};return n.getUTCFullYear()+"-"+e(n.getUTCMonth()+1)+"-"+e(n.getUTCDate())+"T"+e(n.getUTCHours())+":"+e(n.getUTCMinutes())+":"+e(n.getUTCSeconds())+"."+String((n.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}},t.arrForEach=function(t,n,e){for(var i=t.length,r=0;r<i;r++)r in t&&n.call(e||t,t[r],r,t)},t.arrIndexOf=function(t,n,e){for(var i=t.length,r=e||0,o=Math.max(r>=0?r:i-Math.abs(r),0);o<i;o++)if(o in t&&t[o]===n)return o;return-1},t.arrMap=function(t,n,e){for(var i=t.length,r=e||t,o=new Array(i),s=0;s<i;s++)s in t&&(o[s]=n.call(r,t[s],t));return o},t.arrReduce=function(t,n,e){var i,r=t.length,o=0;if(arguments.length>=3)i=arguments[2];else{for(;o<r&&!(o in t);)o++;i=t[o++]}for(;o<r;)o in t&&(i=n(i,t[o],o,t)),o++;return i},t.strTrim=function(n){return t.isString(n)?n.replace(/^\s+|\s+$/g,""):n},t.objKeys=function(t){var n=!{toString:null}.propertyIsEnumerable("toString");if(!(Ci(t)||Si(t)&&null!==t))throw new TypeError("objKeys called on non-object");var e=[];for(var i in t)ki(t,i)&&e.push(i);if(n)for(var r=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],o=r.length,s=0;s<o;s++)ki(t,r[s])&&e.push(r[s]);return e},t.objDefineAccessors=function(t,n,e,i){var r=Object.defineProperty;if(r)try{var o={enumerable:!0,configurable:!0};return e&&(o.get=e),i&&(o.set=i),r(t,n,o),!0}catch(t){}return!1},t.addEventHandler=function(t,n){var e=!1,i=oi();i&&(e=Ai(i,t,n),e=Ai(i.body,t,n)||e);var r=ai();return r&&(e=Ii.Attach(r,t,n)||e),e},t.dateNow=function(){var t=Date;return t.now?t.now():(new t).getTime()},t.perfNow=function(){var n=li();return n&&n.now?n.now():t.dateNow()},t.newId=function(n){void 0===n&&(n=22);for(var e=t.random32()>>>0,i=0,r="";r.length<n;)i++,r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(63&e),e>>>=6,5===i&&(e=(t.random32()<<2&4294967295|3&e)>>>0,i=0);return r},t.isIE=function(){if(null===hi){var t=((ui()||{}).userAgent||"").toLowerCase();hi=-1!==t.indexOf("msie")||-1!==t.indexOf("trident/")}return hi},t.randomValue=function(n){return n>0?Math.floor(t.random32()/4294967295*(n+1))>>>0:0},t.random32=function(n){var e,i=ii("crypto")||ii("msCrypto");return i&&i.getRandomValues?e=4294967295&i.getRandomValues(new Uint32Array(1))[0]:t.isIE()?(pi||wi(),e=4294967295&t.mwcRandom32()):e=Math.floor(4294967296*Math.random()|0),n||(e>>>=0),e},t.mwcRandomSeed=function(t){t?bi(t):wi()},t.mwcRandom32=function(t){var n=((mi=36969*(65535&mi)+(mi>>16)&4294967295)<<16)+(65535&(vi=18e3*(65535&vi)+(vi>>16)&4294967295))>>>0&4294967295|0;return t||(n>>>=0),n},t.generateW3CId=function(){for(var n,e=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],i="",r=0;r<4;r++)i+=e[15&(n=t.random32())]+e[n>>4&15]+e[n>>8&15]+e[n>>12&15]+e[n>>16&15]+e[n>>20&15]+e[n>>24&15]+e[n>>28&15];var o=e[8+(3&t.random32())|0];return i.substr(0,8)+i.substr(9,4)+"4"+i.substr(13,3)+o+i.substr(16,3)+i.substr(19,12)},t.isTypeof=gi,t.isUndefined=yi,t.isNullOrUndefined=xi,t.hasOwnProperty=ki,t.isFunction=Ci,t.isObject=Si,t.objCreate=Ye,t}(),ji=/[xy]/g,Ii=function(){function t(){}return t.Attach=Ai,t.AttachEvent=Ai,t.Detach=_i,t.DetachEvent=_i,t}();!function(t){t[t.CRITICAL=1]="CRITICAL",t[t.WARNING=2]="WARNING"}(Bi||(Bi={}));var Mi=Object.getPrototypeOf,Ti=0;
|
|
1
|
+
import{r as t,h as n,c as e,g as i,f as r,H as o,a as s,d as a,e as u,s as c}from"./p-082669d9.js";import{f as l,m as f,S as d,a as h,i as p,d as v,b as m,c as b,g as w,Q as g}from"./p-df9ce4b7.js";import{g as y,O as x,j as k,k as S,a as C}from"./p-342cee5a.js";import{A}from"./p-61734b66.js";function _(){}function E(t,n,e=Number.POSITIVE_INFINITY){return"function"==typeof n?i=>i.pipe(E(((e,i)=>l(t(e,i)).pipe(f(((t,r)=>n(e,t,i,r))))),e)):("number"==typeof n&&(e=n),n=>n.lift(new B(t,e)))}class B{constructor(t,n=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=n}call(t,n){return n.subscribe(new F(t,this.project,this.concurrent))}}class F extends d{constructor(t,n,e=Number.POSITIVE_INFINITY){super(t),this.project=n,this.concurrent=e,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)}_tryNext(t){let n;const e=this.index++;try{n=this.project(t,e)}catch(t){return void this.destination.error(t)}this.active++,this._innerSub(n)}_innerSub(t){const n=new h(this),e=this.destination;e.add(n);const i=p(t,n);i!==n&&e.add(i)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(t){this.destination.next(t)}notifyComplete(){const t=this.buffer;this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function j(t,n,e,i){return k(e)&&(i=e,e=void 0),i?j(t,n,e).pipe(f((t=>y(t)?i(...t):i(t)))):new x((i=>{I(t,n,(function(t){i.next(arguments.length>1?Array.prototype.slice.call(arguments):t)}),i,e)}))}function I(t,n,e,i,r){let o;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const i=t;t.addEventListener(n,e,r),o=()=>i.removeEventListener(n,e,r)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const i=t;t.on(n,e),o=()=>i.off(n,e)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const i=t;t.addListener(n,e),o=()=>i.removeListener(n,e)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let o=0,s=t.length;o<s;o++)I(t[o],n,e,i,r)}i.add(o)}class M{constructor(t,n){this.dueTime=t,this.scheduler=n}call(t,n){return n.subscribe(new T(t,this.dueTime,this.scheduler))}}class T extends C{constructor(t,n,e){super(t),this.dueTime=n,this.scheduler=e,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(P,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function P(t){t.debouncedNext()}function R(t,n,e){return function(i){return i.lift(new N(t,n,e))}}class N{constructor(t,n,e){this.nextOrObserver=t,this.error=n,this.complete=e}call(t,n){return n.subscribe(new D(t,this.nextOrObserver,this.error,this.complete))}}class D extends C{constructor(t,n,e,i){super(t),this._tapNext=_,this._tapError=_,this._tapComplete=_,this._tapError=e||_,this._tapComplete=i||_,k(n)?(this._context=this,this._tapNext=n):n&&(this._context=n,this._tapNext=n.next||_,this._tapError=n.error||_,this._tapComplete=n.complete||_)}_next(t){try{this._tapNext.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}var O=function(t){return"Some"===t._tag},U=function(t){return"None"===t._tag},L={_tag:"None"},q=function(t){return{_tag:"Some",value:t}};function z(t){return null==t?L:q(t)}class V{constructor(t){this.factory=t,this._value=L}get value(){if(O(this._value))return this._value.value;const t=this.factory();return this._value=q(t),t}}function H(t){A.injectProps(t,["history","location"])}const W=new RegExp(["(\\\\.)","(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?"].join("|"),"g"),$=t=>t.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),X=t=>t.replace(/([=!:$/()])/g,"\\$1"),J=t=>t&&t.sensitive?"":"i",G=(t,n,e)=>{for(var i=(e=e||{}).strict,r=!1!==e.end,o=$(e.delimiter||"/"),s=e.delimiters||"./",a=[].concat(e.endsWith||[]).map($).concat("$").join("|"),u="",c=!1,l=0;l<t.length;l++){var f=t[l];if("string"==typeof f)u+=$(f),c=l===t.length-1&&s.indexOf(f[f.length-1])>-1;else{var d=$(f.prefix||""),h=f.repeat?"(?:"+f.pattern+")(?:"+d+"(?:"+f.pattern+"))*":f.pattern;n&&n.push(f),u+=f.optional?f.partial?d+"("+h+")?":"(?:"+d+"("+h+"))?":d+"("+h+")"}}return r?(i||(u+="(?:"+o+")?"),u+="$"===a?"$":"(?="+a+")"):(i||(u+="(?:"+o+"(?="+a+"))?"),c||(u+="(?="+o+"|"+a+")")),new RegExp("^"+u,J(e))},K=(t,n,e)=>t instanceof RegExp?((t,n)=>{if(!n)return t;var e=t.source.match(/\((?!\?)/g);if(e)for(var i=0;i<e.length;i++)n.push({name:i,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,pattern:null});return t})(t,n):Array.isArray(t)?((t,n,e)=>{for(var i=[],r=0;r<t.length;r++)i.push(K(t[r],n,e).source);return new RegExp("(?:"+i.join("|")+")",J(e))})(t,n,e):((t,n,e)=>G(((t,n)=>{for(var e,i=[],r=0,o=0,s="",a=n&&n.delimiter||"/",u=n&&n.delimiters||"./",c=!1;null!==(e=W.exec(t));){var l=e[0],f=e[1],d=e.index;if(s+=t.slice(o,d),o=d+l.length,f)s+=f[1],c=!0;else{var h="",p=t[o],v=e[2],m=e[3],b=e[4],w=e[5];if(!c&&s.length){var g=s.length-1;u.indexOf(s[g])>-1&&(h=s[g],s=s.slice(0,g))}s&&(i.push(s),s="",c=!1);var y=h||a,x=m||b;i.push({name:v||r++,prefix:h,delimiter:y,optional:"?"===w||"*"===w,repeat:"+"===w||"*"===w,partial:""!==h&&void 0!==p&&p!==h,pattern:x?X(x):"[^"+$(y)+"]+?"})}}return(s||o<t.length)&&i.push(s+t.substr(o)),i})(t,e),n,e))(t,n,e),Y=(t,n)=>new RegExp("^"+n+"(\\/|\\?|#|$)","i").test(t),Q=(t,n)=>Y(t,n)?t.substr(n.length):t,Z=t=>"/"===t.charAt(t.length-1)?t.slice(0,-1):t,tt=t=>"/"===t.charAt(0)?t:"/"+t,nt=t=>"/"===t.charAt(0)?t.substr(1):t,et=t=>{const{pathname:n,search:e,hash:i}=t;let r=n||"/";return e&&"?"!==e&&(r+="?"===e.charAt(0)?e:"?"+e),i&&"#"!==i&&(r+="#"===i.charAt(0)?i:"#"+i),r},it=t=>"/"===t.charAt(0),rt=t=>Math.random().toString(36).substr(2,t),ot=(t,n)=>{for(let e=n,i=e+1,r=t.length;i<r;e+=1,i+=1)t[e]=t[i];t.pop()},st=(t,n)=>{if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every(((t,e)=>st(t,n[e])));const e=typeof t;if(e!==typeof n)return!1;if("object"===e){const e=t.valueOf(),i=n.valueOf();if(e!==t||i!==n)return st(e,i);const r=Object.keys(t),o=Object.keys(n);return r.length===o.length&&r.every((e=>st(t[e],n[e])))}return!1},at=(t,n,e,i)=>{let r;"string"==typeof t?(r=(t=>{let n=t||"/",e="",i="";const r=n.indexOf("#");-1!==r&&(i=n.substr(r),n=n.substr(0,r));const o=n.indexOf("?");return-1!==o&&(e=n.substr(o),n=n.substr(0,o)),{pathname:n,search:"?"===e?"":e,hash:"#"===i?"":i,query:{},key:""}})(t),void 0!==n&&(r.state=n)):(r=Object.assign({pathname:""},t),r.search&&"?"!==r.search.charAt(0)&&(r.search="?"+r.search),r.hash&&"#"!==r.hash.charAt(0)&&(r.hash="#"+r.hash),void 0!==n&&void 0===r.state&&(r.state=n));try{r.pathname=decodeURI(r.pathname)}catch(t){throw t instanceof URIError?new URIError('Pathname "'+r.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):t}var o;return r.key=e,i?r.pathname?"/"!==r.pathname.charAt(0)&&(r.pathname=((t,n="")=>{let e,i=n&&n.split("/")||[],r=0;const o=t&&t.split("/")||[],s=t&&it(t),a=n&&it(n),u=s||a;if(t&&it(t)?i=o:o.length&&(i.pop(),i=i.concat(o)),!i.length)return"/";if(i.length){const t=i[i.length-1];e="."===t||".."===t||""===t}else e=!1;for(let t=i.length;t>=0;t--){const n=i[t];"."===n?ot(i,t):".."===n?(ot(i,t),r++):r&&(ot(i,t),r--)}if(!u)for(;r--;r)i.unshift("..");!u||""===i[0]||i[0]&&it(i[0])||i.unshift("");let c=i.join("/");return e&&"/"!==c.substr(-1)&&(c+="/"),c})(r.pathname,i.pathname)):r.pathname=i.pathname:r.pathname||(r.pathname="/"),r.query=(o=r.search||"")?(/^[?#]/.test(o)?o.slice(1):o).split("&").reduce(((t,n)=>{let[e,i]=n.split("=");return t[e]=i?decodeURIComponent(i.replace(/\+/g," ")):"",t}),{}):{},r};let ut=0;const ct={},lt=(t,n={})=>{"string"==typeof n&&(n={path:n});const{path:e="/",exact:i=!1,strict:r=!1}=n,{re:o,keys:s}=((t,n)=>{const e=`${n.end}${n.strict}`,i=ct[e]||(ct[e]={}),r=JSON.stringify(t);if(i[r])return i[r];const o=[],s={re:K(t,o,n),keys:o};return ut<1e4&&(i[r]=s,ut+=1),s})(e,{end:i,strict:r}),a=o.exec(t);if(!a)return null;const[u,...c]=a,l=t===u;return i&&!l?null:{path:e,url:"/"===e&&""===u?"/":u,isExact:l,params:s.reduce(((t,n,e)=>(t[n.name]=c[e],t)),{})}},ft=class{constructor(n){t(this,n),this.isBlockElement=!1,this.disabled=!1,this.variant="primary"}render(){return n("button",{class:{"btn position-relative px-3 py-2":!0,"is-primary":"primary"===this.variant,"is-secondary":"secondary"===this.variant,"btn-block":this.isBlockElement,disabled:this.disabled},style:{"pointer-events":this.disabled?"none":"auto"},disabled:this.disabled},n("span",{class:"label"},n("slot",null)))}};ft.style=":host button,:host button:focus,:host button:active,:host button.focus,:host button.active{-webkit-box-shadow:none;box-shadow:none;border-radius:var(--fl-rounding-button) !important}:host button.disabled,:host button:disabled{opacity:1 !important;cursor:not-allowed !important;color:var(--fl-color-disabled)}:host button .label{font-weight:600 !important}:host button.is-primary{color:var(--fl-color-primary-text);background-color:var(--fl-color-primary);border:none}:host button.is-primary.disabled,:host button.is-primary:disabled{background-color:var(--fl-color-primary-disabled)}:host button.is-primary:hover:not(.disabled),:host button.is-primary:hover:not(:disabled){background-color:var(--fl-color-primary-hover)}:host button.is-primary:active:not(.disabled),:host button.is-primary:active:not(:disabled){background-color:var(--fl-color-primary-focus)}:host button.is-secondary{color:var(--fl-color-secondary-text);background-color:var(--fl-color-secondary)}:host button.is-secondary.disabled,:host button.is-secondary:disabled{background-color:var(--fl-color-secondary-disabled)}:host button.is-secondary:hover:not(.disabled),:host button.is-secondary:hover:not(:disabled){background-color:var(--fl-color-secondary-hover)}:host button.is-secondary:active:not(.disabled),:host button.is-secondary:active:not(:disabled){background-color:var(--fl-color-secondary-focus)}:host button.is-block{display:block}:host button:disabled,:host button.disabled{pointer-events:none}";var dt={compareTwoStrings:ht,findBestMatch:function(t,n){if(!function(t,n){return"string"==typeof t&&!!Array.isArray(n)&&!!n.length&&!n.find((t=>"string"!=typeof t))}(t,n))throw new Error("Bad arguments: First argument should be a string, second should be an array of strings");const e=[];let i=0;for(let r=0;r<n.length;r++){const o=n[r],s=ht(t,o);e.push({target:o,rating:s}),s>e[i].rating&&(i=r)}return{ratings:e,bestMatch:e[i],bestMatchIndex:i}}};function ht(t,n){if(t=t.replace(/\s+/g,""),n=n.replace(/\s+/g,""),!t.length&&!n.length)return 1;if(!t.length||!n.length)return 0;if(t===n)return 1;if(1===t.length&&1===n.length)return 0;if(t.length<2||n.length<2)return 0;let e=new Map;for(let n=0;n<t.length-1;n++){const i=t.substring(n,n+2),r=e.has(i)?e.get(i)+1:1;e.set(i,r)}let i=0;for(let t=0;t<n.length-1;t++){const r=n.substring(t,t+2),o=e.has(r)?e.get(r):0;o>0&&(e.set(r,o-1),i++)}return 2*i/(t.length+n.length-2)}const pt=class{constructor(i){t(this,i),this.valueChanged=e(this,"valueChanged",7),this.required=!1,this.disabled=!1,this.isMouseOver=!1,this.inputValue="",this.isDropdownVisible=!1,this.filteredOptions=[],this.renderFilteredResults=()=>0===this.filteredOptions.length?n("span",{class:"dropdown-item disabled"},"No items match your search"):this.filteredOptions.map(((t,e)=>n("span",{class:{"dropdown-item text-wrap":!0,selected:this.isOptionSelected(t),active:this.highlightedOptionIndex===e},onClick:()=>{this.toggleDropdown(!1),this.selectOption(t)}},n("span",null,t.label)))),this.filterResults=t=>{this.filteredOptions=this.sortOptionsByRelevancy(this._options.filter((n=>n.label.toLowerCase().includes(t.toLowerCase()))),t),this.highlightedOptionIndex=void 0},this.selectOption=t=>{this.selectedOption=t,this.inputValue=t.label,this.valueChanged.emit(t)},this.isOptionSelected=t=>{var n;return(null===(n=this.selectedOption)||void 0===n?void 0:n.label)===t.label},this.toggleDropdown=t=>{this.isDropdownVisible=t},this.resetInput=()=>{var t,n;this.inputValue=null!==(n=null===(t=this.selectedOption)||void 0===t?void 0:t.label)&&void 0!==n?n:"",this.filteredOptions=this._options},this.processKeyboardNavigation=t=>{switch(t.key){case"ArrowDown":return this.toggleDropdown(!0),this.highlightNextItem(),!0;case"ArrowUp":return this.highlightPreviousItem(),!0;case"Enter":return void 0!==this.highlightedOptionIndex&&(this.toggleDropdown(!1),this.selectOption(this.filteredOptions[this.highlightedOptionIndex])),!0;case"Escape":return this.inputElement.blur(),!0}return!1},this.highlightPreviousItem=()=>{0!==this.filteredOptions.length&&(this.highlightedOptionIndex=void 0===this.highlightedOptionIndex?0:Math.max(this.highlightedOptionIndex-1,0))},this.highlightNextItem=()=>{0!==this.filteredOptions.length&&(this.highlightedOptionIndex=void 0===this.highlightedOptionIndex?0:Math.min(this.highlightedOptionIndex+1,this.filteredOptions.length-1))}}get _options(){if(void 0===this.options)throw new Error("Can't render <fl-dropdown /> component with no options");return this.options}componentWillLoad(){var t,n;this.filteredOptions=this._options,this.selectedOption=this._options.find((t=>t.value===this.value)),this.inputValue=null!==(n=null===(t=this.selectedOption)||void 0===t?void 0:t.label)&&void 0!==n?n:""}handleFocus(){this.toggleDropdown(!0)}handleBlur(){this.isMouseOver||(this.toggleDropdown(!1),this.resetInput())}handleKeyDown(t){this.processKeyboardNavigation(t)&&t.preventDefault()}onOptionsChanged(){this.filteredOptions=this._options}onValueChanged(){var t,n;this.selectedOption=this._options.find((t=>t.value===this.value)),this.inputValue=null!==(n=null===(t=this.selectedOption)||void 0===t?void 0:t.label)&&void 0!==n?n:""}render(){var t;return[n("div",{class:"dropdown"},n("input",{type:"text",class:"form-control custom-select",placeholder:this.placeholder,required:this.required,disabled:this.disabled,value:this.inputValue,onInput:t=>{const n=t.target.value;this.inputValue=n,this.filterResults(n),this.toggleDropdown(!0)},ref:t=>this.inputElement=t}),n("div",{class:{"invalid-feedback":!0,"d-none":this.isDropdownVisible}},null!==(t=this.requiredValidationMessage)&&void 0!==t?t:"Required."),n("div",{class:{"dropdown-menu shadow mt-0 w-100 overflow-auto":!0,show:this.isDropdownVisible},onMouseEnter:()=>this.isMouseOver=!0,onMouseLeave:()=>this.isMouseOver=!1},this.renderFilteredResults()))]}sortOptionsByRelevancy(t,n){return t.map((t=>Object.assign(Object.assign({},t),{relevancyScore:dt.compareTwoStrings(t.label.toLowerCase(),n.toLowerCase())}))).sort(((t,n)=>n.relevancyScore-t.relevancyScore)).map((t=>({label:t.label,value:t.value})))}static get watchers(){return{options:["onOptionsChanged"],value:["onValueChanged"]}}};pt.style="fl-dropdown .dropdown-menu{max-height:min(20rem, 50vh)}fl-dropdown .dropdown-menu .dropdown-item{cursor:pointer}fl-dropdown .dropdown-menu .dropdown-item.selected{background-color:rgba(253, 189, 0, 0.5)}";const vt=class{constructor(i){t(this,i),this.valueChanged=e(this,"valueChanged",7),this.required=!1,this.disabled=!1,this.minSearchStringLength=3,this.isMouseOver=!1,this.searchState="pristine",this.inputValue="",this.isDropdownVisible=!1,this.filteredOptions=[],this.shouldExecuteSearch=t=>{var n;return this.isDropdownVisible&&(null==t?void 0:t.length)>=this.minSearchStringLength&&(null===(n=this.selectedOption)||void 0===n?void 0:n.label)!==t},this.onBeginSearch=t=>{this.inputValue=t,this.searchState="in progress"},this.onCompleteSearch=t=>{this.filteredOptions=t,this.highlightedOptionIndex=void 0,this.searchState="done"},this.renderFilteredResults=()=>"pristine"===this.searchState?n("span",{class:"dropdown-item disabled"},"Start typing to find the results"):"in progress"===this.searchState?n("div",{class:"d-flex justify-content-end align-items-center pr-4"},n("span",{class:"dropdown-item disabled"},"Searching..."),n("i",{class:"dot-falling"})):0===this.filteredOptions.length?n("span",{class:"dropdown-item disabled"},"No items match your search"):this.filteredOptions.map(((t,e)=>n("span",{class:{"dropdown-item text-wrap":!0,selected:this.isOptionSelected(t),active:this.highlightedOptionIndex===e},onClick:()=>{this.toggleDropdown(!1),this.selectOption(t)}},t.label))),this.resetInput=()=>{var t,n;this.inputValue=null!==(n=null===(t=this.selectedOption)||void 0===t?void 0:t.label)&&void 0!==n?n:""},this.toggleDropdown=t=>{this.isDropdownVisible=t},this.processKeyboardNavigation=t=>{switch(t.key){case"ArrowDown":return this.toggleDropdown(!0),this.highlightNextItem(),!0;case"ArrowUp":return this.highlightPreviousItem(),!0;case"Enter":return void 0!==this.highlightedOptionIndex&&(this.toggleDropdown(!1),this.selectOption(this.filteredOptions[this.highlightedOptionIndex])),!0;case"Escape":return this.inputElement.blur(),!0}return!1},this.highlightPreviousItem=()=>{0!==this.filteredOptions.length&&(this.highlightedOptionIndex=void 0===this.highlightedOptionIndex?0:Math.max(this.highlightedOptionIndex-1,0))},this.highlightNextItem=()=>{0!==this.filteredOptions.length&&(this.highlightedOptionIndex=void 0===this.highlightedOptionIndex?0:Math.min(this.highlightedOptionIndex+1,this.filteredOptions.length-1))},this.selectOption=t=>{this.selectedOption=t,this.inputValue=t.label,this.valueChanged.emit(t)},this.isOptionSelected=t=>{var n;return(null===(n=this.selectedOption)||void 0===n?void 0:n.label)===t.label}}componentWillLoad(){this.selectedOption=this.value}componentDidLoad(){this.searchResultsSubscription=j(this.inputElement,"keyup").pipe(function(t,n=S){return e=>e.lift(new M(t,n))}(500),f((()=>this.inputElement.value)),v(),m(this.shouldExecuteSearch),R(this.onBeginSearch),E(this._searchFunction),R(this.onCompleteSearch)).subscribe()}componentDidUnload(){this.searchResultsSubscription.unsubscribe()}handleFocus(){this.toggleDropdown(!0)}handleBlur(){this.isMouseOver||(this.toggleDropdown(!1),this.highlightedOptionIndex=void 0,this.resetInput())}handleKeyDown(t){this.processKeyboardNavigation(t)&&t.preventDefault()}render(){var t;return[n("div",{class:"dropdown"},n("input",{type:"text",class:"form-control",placeholder:this.placeholder,required:this.required,disabled:this.disabled,value:this.inputValue,ref:t=>this.inputElement=t}),n("div",{class:{"invalid-feedback":!0,"d-none":this.isDropdownVisible}},null!==(t=this.requiredValidationMessage)&&void 0!==t?t:"Required."),n("div",{class:{"dropdown-menu shadow mt-0 w-100 overflow-auto":!0,show:this.isDropdownVisible},onMouseEnter:()=>this.isMouseOver=!0,onMouseLeave:()=>this.isMouseOver=!1},this.renderFilteredResults()))]}get _searchFunction(){if(void 0===this.searchFunction)throw new Error("Can't render <fl-dropdown-async/> component with no searchFunction");return this.searchFunction}};vt.style="fl-dropdown .dropdown-menu{max-height:min(20rem, 50vh)}fl-dropdown .dropdown-menu .dropdown-item{cursor:pointer}fl-dropdown .dropdown-menu .dropdown-item.selected{background-color:rgba(253, 189, 0, 0.5)}";const mt=class{constructor(n){t(this,n),this.theme="default"}render(){return n("span",{class:{"dots-container d-inline-flex justify-content-center":!0}},n("span",{class:{"dot-flashing":!0,"theme-default":"default"===this.theme,"theme-dark":"dark"===this.theme}}))}};var bt;mt.style='fl-loading-indicator .dots-container{width:36px}fl-loading-indicator .dot-flashing.theme-default{position:relative;width:8px;height:8px;border-radius:4px;background-color:#66efc5;color:#9880ff;-webkit-animation:dot-flashing-default 2s infinite linear;animation:dot-flashing-default 2s infinite linear;-webkit-animation-delay:0.5s;animation-delay:0.5s}@-webkit-keyframes dot-flashing-default{0%{background-color:#66efc5}25%{background-color:#12aa7c}50%,100%{background-color:#66efc5}}@keyframes dot-flashing-default{0%{background-color:#66efc5}25%{background-color:#12aa7c}50%,100%{background-color:#66efc5}}fl-loading-indicator .dot-flashing.theme-default::before,fl-loading-indicator .dot-flashing.theme-default::after{content:"";display:inline-block;position:absolute;top:0}fl-loading-indicator .dot-flashing.theme-default::before{left:-12px;width:8px;height:8px;border-radius:4px;background-color:#66efc5;color:#9880ff;-webkit-animation:dot-flashing-default 2s infinite linear;animation:dot-flashing-default 2s infinite linear;-webkit-animation-delay:0s;animation-delay:0s}@keyframes dot-flashing-default{0%{background-color:#66efc5}25%{background-color:#12aa7c}50%,100%{background-color:#66efc5}}fl-loading-indicator .dot-flashing.theme-default::after{left:12px;width:8px;height:8px;border-radius:4px;background-color:#66efc5;color:#9880ff;-webkit-animation:dot-flashing-default 2s infinite linear;animation:dot-flashing-default 2s infinite linear;-webkit-animation-delay:1s;animation-delay:1s}@keyframes dot-flashing-default{0%{background-color:#66efc5}25%{background-color:#12aa7c}50%,100%{background-color:#66efc5}}fl-loading-indicator .dot-flashing.theme-dark{position:relative;width:8px;height:8px;border-radius:4px;background-color:#a7a7a7;color:#9880ff;-webkit-animation:dot-flashing-dark 2s infinite linear;animation:dot-flashing-dark 2s infinite linear;-webkit-animation-delay:0.5s;animation-delay:0.5s}@-webkit-keyframes dot-flashing-dark{0%{background-color:#a7a7a7}25%{background-color:#5b5a5a}50%,100%{background-color:#a7a7a7}}@keyframes dot-flashing-dark{0%{background-color:#a7a7a7}25%{background-color:#5b5a5a}50%,100%{background-color:#a7a7a7}}fl-loading-indicator .dot-flashing.theme-dark::before,fl-loading-indicator .dot-flashing.theme-dark::after{content:"";display:inline-block;position:absolute;top:0}fl-loading-indicator .dot-flashing.theme-dark::before{left:-12px;width:8px;height:8px;border-radius:4px;background-color:#a7a7a7;color:#9880ff;-webkit-animation:dot-flashing-dark 2s infinite linear;animation:dot-flashing-dark 2s infinite linear;-webkit-animation-delay:0s;animation-delay:0s}@keyframes dot-flashing-dark{0%{background-color:#a7a7a7}25%{background-color:#5b5a5a}50%,100%{background-color:#a7a7a7}}fl-loading-indicator .dot-flashing.theme-dark::after{left:12px;width:8px;height:8px;border-radius:4px;background-color:#a7a7a7;color:#9880ff;-webkit-animation:dot-flashing-dark 2s infinite linear;animation:dot-flashing-dark 2s infinite linear;-webkit-animation-delay:1s;animation-delay:1s}@keyframes dot-flashing-dark{0%{background-color:#a7a7a7}25%{background-color:#5b5a5a}50%,100%{background-color:#a7a7a7}}',function(t){t[t.Available=0]="Available",t[t.Pending=1]="Pending",t[t.Error=2]="Error"}(bt||(bt={}));const wt=class{constructor(n){t(this,n),this.isBlockElement=!1,this.isRounded=!1,this.disabled=!1,this.variant="primary",this.promiseFn=()=>Promise.resolve(),this.state=bt.Available}render(){return this.state===bt.Pending?this.renderLoadingButton():this.renderActiveButton()}renderActiveButton(){return n("fl-button",{disabled:this.disabled,onClick:()=>this.clicked(),isBlockElement:this.isBlockElement,variant:this.variant},n("div",null,n("slot",null)))}renderLoadingButton(){return n("fl-button",{disabled:!0,onClick:()=>this.clicked(),isBlockElement:this.isBlockElement,class:"position-relative",variant:this.variant},n("fl-loading-indicator",{class:"position-absolute",theme:"dark"}),n("div",{class:"invisible"},n("slot",null)))}async clicked(){this.state=bt.Pending;try{await this.promiseFn(),this.state=bt.Available}catch(t){throw this.state=bt.Error,t}}};function gt(t,n){void 0===n&&(n="*"),t.sender="flare",window.parent.postMessage(t,n)}wt.style="fl-promise-button fl-loading-indicator{left:50%;top:50%;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}";const yt=function(){gt({type:"appReady"})},xt=function(t,n){gt({type:"contentResized",height:t,width:n})},kt=function(t){gt({type:"pageNavigated",url:t})},St=function(){gt({type:"complete"})},Ct=function(){gt({type:"submitSuccess"})},At=t=>!("isConnected"in t)||t.isConnected,_t=(()=>{let t;return(...n)=>{t&&clearTimeout(t),t=setTimeout((()=>{t=0,(t=>{for(let n of t.keys())t.set(n,t.get(n).filter(At))})(...n)}),2e3)}})(),Et=(t,n)=>{const e=((t,n=((t,n)=>t!==n))=>{let e=new Map(Object.entries(null!=t?t:{}));const i={dispose:[],get:[],set:[],reset:[]},r=()=>{e=new Map(Object.entries(null!=t?t:{})),i.reset.forEach((t=>t()))},o=t=>(i.get.forEach((n=>n(t))),e.get(t)),s=(t,r)=>{const o=e.get(t);n(r,o,t)&&(e.set(t,r),i.set.forEach((n=>n(t,r,o))))},a="undefined"==typeof Proxy?{}:new Proxy(t,{get:(t,n)=>o(n),ownKeys:()=>Array.from(e.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(t,n)=>e.has(n),set:(t,n,e)=>(s(n,e),!0)}),u=(t,n)=>(i[t].push(n),()=>{((t,n)=>{const e=t.indexOf(n);e>=0&&(t[e]=t[t.length-1],t.length--)})(i[t],n)});return{state:a,get:o,set:s,on:u,onChange:(n,e)=>{const i=u("set",((t,i)=>{t===n&&e(i)})),r=u("reset",(()=>e(t[n])));return()=>{i(),r()}},use:(...t)=>t.forEach((t=>{t.set&&u("set",t.set),t.get&&u("get",t.get),t.reset&&u("reset",t.reset)})),dispose:()=>{i.dispose.forEach((t=>t())),r()},reset:r}})(t,n);return(({on:t})=>{const n=new Map;"function"==typeof i&&(t("dispose",(()=>{n.clear()})),t("get",(t=>{const e=i();e&&((t,n,e)=>{const i=t.get(n);i?i.includes(e)||i.push(e):t.set(n,[e])})(n,t,e)})),t("set",(t=>{const e=n.get(t);e&&n.set(t,e.filter(r)),_t(n)})),t("reset",(()=>{n.forEach((t=>t.forEach(r))),_t(n)})))})(e),e};function Bt(t,n,e){return t(e={path:n,exports:{},require:function(){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},e.exports),e.exports}var Ft=Bt((function(t,n){function e(t){return t}function i(t){return function(){return t}}function r(){throw new Error("Called `absurd` function which should be uncallable")}Object.defineProperty(n,"__esModule",{value:!0}),n.bindTo_=n.bind_=n.hole=n.pipe=n.untupled=n.tupled=n.absurd=n.decrement=n.increment=n.tuple=n.flow=n.flip=n.constVoid=n.constUndefined=n.constNull=n.constFalse=n.constTrue=n.constant=n.not=n.unsafeCoerce=n.identity=void 0,n.identity=e,n.unsafeCoerce=e,n.not=function(t){return function(n){return!t(n)}},n.constant=i,n.constTrue=i(!0),n.constFalse=i(!1),n.constNull=i(null),n.constUndefined=i(void 0),n.constVoid=n.constUndefined,n.flip=function(t){return function(n,e){return t(e,n)}},n.flow=function(t,n,e,i,r,o,s,a,u){switch(arguments.length){case 1:return t;case 2:return function(){return n(t.apply(this,arguments))};case 3:return function(){return e(n(t.apply(this,arguments)))};case 4:return function(){return i(e(n(t.apply(this,arguments))))};case 5:return function(){return r(i(e(n(t.apply(this,arguments)))))};case 6:return function(){return o(r(i(e(n(t.apply(this,arguments))))))};case 7:return function(){return s(o(r(i(e(n(t.apply(this,arguments)))))))};case 8:return function(){return a(s(o(r(i(e(n(t.apply(this,arguments))))))))};case 9:return function(){return u(a(s(o(r(i(e(n(t.apply(this,arguments)))))))))}}},n.tuple=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return t},n.increment=function(t){return t+1},n.decrement=function(t){return t-1},n.absurd=r,n.tupled=function(t){return function(n){return t.apply(void 0,n)}},n.untupled=function(t){return function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return t(n)}},n.pipe=function(t,n,e,i,r,o,s,a,u,c,l,f,d,h,p,v,m,b,w,g){switch(arguments.length){case 1:return t;case 2:return n(t);case 3:return e(n(t));case 4:return i(e(n(t)));case 5:return r(i(e(n(t))));case 6:return o(r(i(e(n(t)))));case 7:return s(o(r(i(e(n(t))))));case 8:return a(s(o(r(i(e(n(t)))))));case 9:return u(a(s(o(r(i(e(n(t))))))));case 10:return c(u(a(s(o(r(i(e(n(t)))))))));case 11:return l(c(u(a(s(o(r(i(e(n(t))))))))));case 12:return f(l(c(u(a(s(o(r(i(e(n(t)))))))))));case 13:return d(f(l(c(u(a(s(o(r(i(e(n(t))))))))))));case 14:return h(d(f(l(c(u(a(s(o(r(i(e(n(t)))))))))))));case 15:return p(h(d(f(l(c(u(a(s(o(r(i(e(n(t))))))))))))));case 16:return v(p(h(d(f(l(c(u(a(s(o(r(i(e(n(t)))))))))))))));case 17:return m(v(p(h(d(f(l(c(u(a(s(o(r(i(e(n(t))))))))))))))));case 18:return b(m(v(p(h(d(f(l(c(u(a(s(o(r(i(e(n(t)))))))))))))))));case 19:return w(b(m(v(p(h(d(f(l(c(u(a(s(o(r(i(e(n(t))))))))))))))))));case 20:return g(w(b(m(v(p(h(d(f(l(c(u(a(s(o(r(i(e(n(t)))))))))))))))))))}},n.hole=r,n.bind_=function(t,n,e){var i;return Object.assign({},t,((i={})[n]=e,i))},n.bindTo_=function(t){return function(n){var e;return(e={})[t]=n,e}}})),jt=Bt((function(t,n){function e(t){return null==t?n.none:n.some(t)}function i(t){return"Right"===t._tag?n.none:n.some(t.left)}function r(t){return"Left"===t._tag?n.none:n.some(t.right)}function o(t){return function(i){return n.isNone(i)?n.none:e(t(i.value))}}Object.defineProperty(n,"__esModule",{value:!0}),n.getApplySemigroup=n.getOrd=n.getEq=n.getShow=n.URI=n.wilt=n.wither=n.sequence=n.traverse=n.partitionMap=n.partition=n.filterMap=n.filter=n.separate=n.compact=n.reduceRight=n.foldMap=n.reduce=n.duplicate=n.extend=n.throwError=n.zero=n.alt=n.altW=n.flatten=n.chainFirst=n.chain=n.of=n.apSecond=n.apFirst=n.ap=n.map=n.chainNullableK=n.mapNullable=n.fromNullableK=n.getOrElse=n.getOrElseW=n.toUndefined=n.toNullable=n.fold=n.fromEither=n.getRight=n.getLeft=n.tryCatch=n.fromPredicate=n.fromNullable=n.some=n.none=n.isNone=n.isSome=void 0,n.sequenceArray=n.traverseArray=n.traverseArrayWithIndex=n.apS=n.bind=n.bindTo=n.Do=n.getRefinement=n.exists=n.elem=n.option=n.MonadThrow=n.Witherable=n.Traversable=n.Filterable=n.Compactable=n.Extend=n.Alternative=n.Alt=n.Foldable=n.Monad=n.Applicative=n.Functor=n.getMonoid=n.getLastMonoid=n.getFirstMonoid=n.getApplyMonoid=void 0,n.isSome=function(t){return"Some"===t._tag},n.isNone=function(t){return"None"===t._tag},n.none={_tag:"None"},n.some=function(t){return{_tag:"Some",value:t}},n.fromNullable=e,n.fromPredicate=function(t){return function(e){return t(e)?n.some(e):n.none}},n.tryCatch=function(t){try{return n.some(t())}catch(t){return n.none}},n.getLeft=i,n.getRight=r,n.fromEither=r,n.fold=function(t,e){return function(i){return n.isNone(i)?t():e(i.value)}},n.toNullable=function(t){return n.isNone(t)?null:t.value},n.toUndefined=function(t){return n.isNone(t)?void 0:t.value},n.getOrElseW=function(t){return function(e){return n.isNone(e)?t():e.value}},n.getOrElse=n.getOrElseW,n.fromNullableK=function(t){return function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return e(t.apply(void 0,n))}},n.mapNullable=o,n.chainNullableK=o;var s=function(t,e){return Ft.pipe(t,n.map(e))},a=function(t,e){return Ft.pipe(t,n.ap(e))},u=function(t,e){return Ft.pipe(t,n.chain(e))},c=function(t,e,i){return Ft.pipe(t,n.reduce(e,i))},l=function(t){var e=n.foldMap(t);return function(t,n){return Ft.pipe(t,e(n))}},f=function(t,e,i){return Ft.pipe(t,n.reduceRight(e,i))},d=function(t){var e=n.traverse(t);return function(t,n){return Ft.pipe(t,e(n))}},h=function(t,e){return Ft.pipe(t,n.alt(e))},p=function(t,e){return Ft.pipe(t,n.filter(e))},v=function(t,e){return Ft.pipe(t,n.filterMap(e))},m=function(t,e){return Ft.pipe(t,n.extend(e))},b=function(t,e){return Ft.pipe(t,n.partition(e))},w=function(t,e){return Ft.pipe(t,n.partitionMap(e))},g=function(t){var e=n.wither(t);return function(t,n){return Ft.pipe(t,e(n))}},y=function(t){var e=n.wilt(t);return function(t,n){return Ft.pipe(t,e(n))}};n.map=function(t){return function(e){return n.isNone(e)?n.none:n.some(t(e.value))}},n.ap=function(t){return function(e){return n.isNone(e)||n.isNone(t)?n.none:n.some(e.value(t.value))}},n.apFirst=function(t){return Ft.flow(n.map((function(t){return function(){return t}})),n.ap(t))},n.apSecond=function(t){return Ft.flow(n.map((function(){return function(t){return t}})),n.ap(t))},n.of=n.some,n.chain=function(t){return function(e){return n.isNone(e)?n.none:t(e.value)}},n.chainFirst=function(t){return n.chain((function(e){return Ft.pipe(t(e),n.map((function(){return e})))}))},n.flatten=n.chain(Ft.identity),n.altW=function(t){return function(e){return n.isNone(e)?t():e}},n.alt=n.altW,n.zero=function(){return n.none},n.throwError=function(){return n.none},n.extend=function(t){return function(e){return n.isNone(e)?n.none:n.some(t(e))}},n.duplicate=n.extend(Ft.identity),n.reduce=function(t,e){return function(i){return n.isNone(i)?t:e(t,i.value)}},n.foldMap=function(t){return function(e){return function(i){return n.isNone(i)?t.empty:e(i.value)}}},n.reduceRight=function(t,e){return function(i){return n.isNone(i)?t:e(i.value,t)}},n.compact=n.flatten;var x={left:n.none,right:n.none};function k(t){return{equals:function(e,i){return e===i||(n.isNone(e)?n.isNone(i):!n.isNone(i)&&t.equals(e.value,i.value))}}}function S(t){return{concat:function(e,i){return n.isSome(e)&&n.isSome(i)?n.some(t.concat(e.value,i.value)):n.none}}}n.separate=function(t){var e=Ft.pipe(t,n.map((function(t){return{left:i(t),right:r(t)}})));return n.isNone(e)?x:e.value},n.filter=function(t){return function(e){return n.isNone(e)?n.none:t(e.value)?e:n.none}},n.filterMap=function(t){return function(e){return n.isNone(e)?n.none:t(e.value)}},n.partition=function(t){return function(n){return{left:p(n,(function(n){return!t(n)})),right:p(n,t)}}},n.partitionMap=function(t){return Ft.flow(n.map(t),n.separate)},n.traverse=function(t){return function(e){return function(i){return n.isNone(i)?t.of(n.none):t.map(e(i.value),n.some)}}},n.sequence=function(t){return function(e){return n.isNone(e)?t.of(n.none):t.map(e.value,n.some)}},n.wither=function(t){return function(e){return function(i){return n.isNone(i)?t.of(n.none):e(i.value)}}},n.wilt=function(t){return function(e){return function(o){return n.isNone(o)?t.of({left:n.none,right:n.none}):t.map(e(o.value),(function(t){return{left:i(t),right:r(t)}}))}}},n.URI="Option",n.getShow=function(t){return{show:function(e){return n.isNone(e)?"none":"some("+t.show(e.value)+")"}}},n.getEq=k,n.getOrd=function(t){return{equals:k(t).equals,compare:function(e,i){return e===i?0:n.isSome(e)?n.isSome(i)?t.compare(e.value,i.value):1:-1}}},n.getApplySemigroup=S,n.getApplyMonoid=function(t){return{concat:S(t).concat,empty:n.some(t.empty)}},n.getFirstMonoid=function(){return{concat:function(t,e){return n.isNone(t)?e:t},empty:n.none}},n.getLastMonoid=function(){return{concat:function(t,e){return n.isNone(e)?t:e},empty:n.none}},n.getMonoid=function(t){return{concat:function(e,i){return n.isNone(e)?i:n.isNone(i)?e:n.some(t.concat(e.value,i.value))},empty:n.none}},n.Functor={URI:n.URI,map:s},n.Applicative={URI:n.URI,map:s,ap:a,of:n.of},n.Monad={URI:n.URI,map:s,ap:a,of:n.of,chain:u},n.Foldable={URI:n.URI,reduce:c,foldMap:l,reduceRight:f},n.Alt={URI:n.URI,map:s,alt:h},n.Alternative={URI:n.URI,map:s,ap:a,of:n.of,alt:h,zero:n.zero},n.Extend={URI:n.URI,map:s,extend:m},n.Compactable={URI:n.URI,compact:n.compact,separate:n.separate},n.Filterable={URI:n.URI,map:s,compact:n.compact,separate:n.separate,filter:p,filterMap:v,partition:b,partitionMap:w},n.Traversable={URI:n.URI,map:s,reduce:c,foldMap:l,reduceRight:f,traverse:d,sequence:n.sequence},n.Witherable={URI:n.URI,map:s,reduce:c,foldMap:l,reduceRight:f,traverse:d,sequence:n.sequence,compact:n.compact,separate:n.separate,filter:p,filterMap:v,partition:b,partitionMap:w,wither:g,wilt:y},n.MonadThrow={URI:n.URI,map:s,ap:a,of:n.of,chain:u,throwError:n.throwError},n.option={URI:n.URI,map:s,of:n.of,ap:a,chain:u,reduce:c,foldMap:l,reduceRight:f,traverse:d,sequence:n.sequence,zero:n.zero,alt:h,extend:m,compact:n.compact,separate:n.separate,filter:p,filterMap:v,partition:b,partitionMap:w,wither:g,wilt:y,throwError:n.throwError},n.elem=function(t){return function(e,i){return!n.isNone(i)&&t.equals(e,i.value)}},n.exists=function(t){return function(e){return!n.isNone(e)&&t(e.value)}},n.getRefinement=function(t){return function(e){return n.isSome(t(e))}},n.Do=n.of({}),n.bindTo=function(t){return n.map(Ft.bindTo_(t))},n.bind=function(t,e){return n.chain((function(i){return Ft.pipe(e(i),n.map((function(n){return Ft.bind_(i,t,n)})))}))},n.apS=function(t,e){return Ft.flow(n.map((function(n){return function(e){return Ft.bind_(n,t,e)}})),n.ap(e))},n.traverseArrayWithIndex=function(t){return function(e){for(var i=[],r=0;r<e.length;r++){var o=t(r,e[r]);if(n.isNone(o))return n.none;i.push(o.value)}return n.some(i)}},n.traverseArray=function(t){return n.traverseArrayWithIndex((function(n,e){return t(e)}))},n.sequenceArray=n.traverseArray(Ft.identity)}));function It(t){this.message=t}(It.prototype=new Error).name="InvalidCharacterError";var Mt="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(t){var n=String(t).replace(/=+$/,"");if(n.length%4==1)throw new It("'atob' failed: The string to be decoded is not correctly encoded.");for(var e,i,r=0,o=0,s="";i=n.charAt(o++);~i&&(e=r%4?64*e+i:i,r++%4)?s+=String.fromCharCode(255&e>>(-2*r&6)):0)i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(i);return s};function Tt(t){var n=t.replace(/-/g,"+").replace(/_/g,"/");switch(n.length%4){case 0:break;case 2:n+="==";break;case 3:n+="=";break;default:throw"Illegal base64url string!"}try{return function(t){return decodeURIComponent(Mt(t).replace(/(.)/g,(function(t,n){var e=n.charCodeAt(0).toString(16).toUpperCase();return e.length<2&&(e="0"+e),"%"+e})))}(n)}catch(t){return Mt(n)}}function Pt(t){this.message=t}(Pt.prototype=new Error).name="InvalidTokenError";var Rt=function(){return(Rt=Object.assign||function(t){for(var n,e=1,i=arguments.length;e<i;e++)for(var r in n=arguments[e])Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t}).apply(this,arguments)},Nt=function(){for(var t=0,n=0,e=arguments.length;n<e;n++)t+=arguments[n].length;var i=Array(t),r=0;for(n=0;n<e;n++)for(var o=arguments[n],s=0,a=o.length;s<a;s++,r++)i[r]=o[s];return i},Dt=function(t,n,e){if(void 0===e&&(e=!1),!t||!n||"object"!=typeof t||"object"!=typeof n)return t;var i=Rt({},t);for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r]instanceof Array&&t[r]instanceof Array?e?Nt(t[r],n[r]):n[r]:"object"==typeof n[r]&&"object"==typeof t[r]?Dt(t[r],n[r],e):n[r]);return i},Ot=function(){for(var t=0,n=0,e=arguments.length;n<e;n++)t+=arguments[n].length;var i=Array(t),r=0;for(n=0;n<e;n++)for(var o=arguments[n],s=0,a=o.length;s<a;s++,r++)i[r]=o[s];return i},Ut={defaults:{},errorType:null,polyfills:{fetch:null,FormData:null,URLSearchParams:null,performance:null,PerformanceObserver:null,AbortController:null},polyfill:function(t,n){for(var e=void 0===n?{}:n,i=e.doThrow,r=void 0===i||i,o=e.instance,s=void 0!==o&&o,a=[],u=2;u<arguments.length;u++)a[u-2]=arguments[u];var c=this.polyfills[t]||("undefined"!=typeof self?self[t]:null)||("undefined"!=typeof global?global[t]:null);if(r&&!c)throw new Error(t+" is not defined");return s&&c?new(c.bind.apply(c,Ot([void 0],a))):c}},Lt=function(t,n,e,i){if(!t.getEntriesByName)return!1;var r=t.getEntriesByName(n);return!!(r&&r.length>0)&&(e(r.reverse()[0]),i.clearMeasures&&i.clearMeasures(n),qt.callbacks.delete(n),qt.callbacks.size<1&&(qt.observer.disconnect(),i.clearResourceTimings&&i.clearResourceTimings()),!0)},qt={callbacks:new Map,observer:null,observe:function(t,n){if(t&&n){var e=Ut.polyfill("performance",{doThrow:!1});(function(t,n){return!qt.observer&&t&&n&&(qt.observer=new n((function(n){qt.callbacks.forEach((function(e,i){Lt(n,i,e,t)}))})),t.clearResourceTimings&&t.clearResourceTimings()),qt.observer})(e,Ut.polyfill("PerformanceObserver",{doThrow:!1}))&&(Lt(e,t,n,e)||(qt.callbacks.size<1&&qt.observer.observe({entryTypes:["resource","measure"]}),qt.callbacks.set(t,n)))}}},zt=function(t){this.error=t},Vt=function(){return(Vt=Object.assign||function(t){for(var n,e=1,i=arguments.length;e<i;e++)for(var r in n=arguments[e])Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t}).apply(this,arguments)},Ht=function(){for(var t=0,n=0,e=arguments.length;n<e;n++)t+=arguments[n].length;var i=Array(t),r=0;for(n=0;n<e;n++)for(var o=arguments[n],s=0,a=o.length;s<a;s++,r++)i[r]=o[s];return i},Wt=function(){function t(t,n,e,i,r,o){void 0===e&&(e=new Map),void 0===i&&(i=[]),void 0===r&&(r=[]),void 0===o&&(o=[]),this._url=t,this._options=n,this._catchers=e,this._resolvers=i,this._middlewares=r,this._deferredChain=o}return t.factory=function(n,e){return void 0===n&&(n=""),void 0===e&&(e={}),new t(n,e)},t.prototype.selfFactory=function(n){var e=void 0===n?{}:n,i=e.url,r=e.options,o=e.catchers,s=void 0===o?this._catchers:o,a=e.resolvers,u=void 0===a?this._resolvers:a,c=e.middlewares,l=void 0===c?this._middlewares:c,f=e.deferredChain,d=void 0===f?this._deferredChain:f;return new t(void 0===i?this._url:i,Vt({},void 0===r?this._options:r),new Map(s),Ht(u),Ht(l),Ht(d))},t.prototype.defaults=function(t,n){return void 0===n&&(n=!1),Ut.defaults=n?Dt(Ut.defaults,t):t,this},t.prototype.errorType=function(t){return Ut.errorType=t,this},t.prototype.polyfills=function(t){return Ut.polyfills=Vt(Vt({},Ut.polyfills),t),this},t.prototype.url=function(t,n){if(void 0===n&&(n=!1),n)return this.selfFactory({url:t});var e=this._url.split("?");return this.selfFactory({url:e.length>1?e[0]+t+"?"+e[1]:this._url+t})},t.prototype.options=function(t,n){return void 0===n&&(n=!0),this.selfFactory({options:n?Dt(this._options,t):t})},t.prototype.query=function(t,n){return void 0===n&&(n=!1),this.selfFactory({url:$t(this._url,t,n)})},t.prototype.headers=function(t){return this.selfFactory({options:Dt(this._options,{headers:t||{}})})},t.prototype.accept=function(t){return this.headers({Accept:t})},t.prototype.content=function(t){var n;return this.headers(((n={})["Content-Type"]=t,n))},t.prototype.auth=function(t){return this.headers({Authorization:t})},t.prototype.catcher=function(t,n){var e=new Map(this._catchers);return e.set(t,n),this.selfFactory({catchers:e})},t.prototype.signal=function(t){return this.selfFactory({options:Vt(Vt({},this._options),{signal:t.signal})})},t.prototype.resolve=function(t,n){return void 0===n&&(n=!1),this.selfFactory({resolvers:n?[t]:Ht(this._resolvers,[t])})},t.prototype.defer=function(t,n){return void 0===n&&(n=!1),this.selfFactory({deferredChain:n?[t]:Ht(this._deferredChain,[t])})},t.prototype.middlewares=function(t,n){return void 0===n&&(n=!1),this.selfFactory({middlewares:n?t:Ht(this._middlewares,t)})},t.prototype.method=function(t,n,e){void 0===n&&(n={}),void 0===e&&(e=null);var i=this._options.headers,r=e?"object"!=typeof e||i&&!Object.entries(i).every((function(t){var n=t[1];return t[0].toLowerCase()!=="Content-Type".toLowerCase()||n.startsWith("application/json")}))?this.body(e):this.json(e):this;return function(t){var n=t._url,e=t._resolvers,i=t._middlewares,r=t._options,o=new Map(t._catchers),s=Dt(Ut.defaults,r),a=Ut.polyfill("AbortController",{doThrow:!1,instance:!0});!s.signal&&a&&(s.signal=a.signal);var u={ref:null,clear:function(){u.ref&&(clearTimeout(u.ref),u.ref=null)}},c=function(t){return function(n){return 0===t.length?n:1===t.length?t[0](n):t.reduceRight((function(e,i,r){return i(r===t.length-2?e(n):e)}))}}(i)(Ut.polyfill("fetch"))(n,s),l=c.catch((function(t){throw new zt(t)})).then((function(t){return u.clear(),t.ok?t:t[Ut.errorType||"text"]().then((function(n){var e=new Error(n);throw e[Ut.errorType||"text"]=n,e.status=t.status,e.response=t,e}))})),f=function(n){return function(e){return(n?l.then((function(t){return t&&t[n]()})).then((function(t){return e?e(t):t})):l.then((function(t){return e?e(t):t}))).catch((function(n){u.clear();var e=n instanceof zt?n.error:n;if(n instanceof zt&&o.has("__fromFetch"))return o.get("__fromFetch")(e,t);if(o.has(e.status))return o.get(e.status)(e,t);if(o.has(e.name))return o.get(e.name)(e,t);throw e}))}},d={res:f(null),json:f("json"),blob:f("blob"),formData:f("formData"),arrayBuffer:f("arrayBuffer"),text:f("text"),perfs:function(t){return c.then((function(n){return qt.observe(n.url,t)})),d},setTimeout:function(t,n){return void 0===n&&(n=a),u.clear(),u.ref=setTimeout((function(){return n.abort()}),t),d},controller:function(){return[a,d]},error:function(t,n){return o.set(t,n),d},badRequest:function(t){return d.error(400,t)},unauthorized:function(t){return d.error(401,t)},forbidden:function(t){return d.error(403,t)},notFound:function(t){return d.error(404,t)},timeout:function(t){return d.error(408,t)},internalError:function(t){return d.error(500,t)},fetchError:function(t){return d.error("__fromFetch",t)},onAbort:function(t){return d.error("AbortError",t)}};return e.reduce((function(n,e){return e(n,t)}),d)}((r=r.options(Vt(Vt({},n),{method:t})))._deferredChain.reduce((function(t,n){return n(t,t._url,t._options)}),r))},t.prototype.get=function(t){return this.method("GET",t)},t.prototype.delete=function(t){return this.method("DELETE",t)},t.prototype.put=function(t,n){return this.method("PUT",n,t)},t.prototype.post=function(t,n){return this.method("POST",n,t)},t.prototype.patch=function(t,n){return this.method("PATCH",n,t)},t.prototype.head=function(t){return this.method("HEAD",t)},t.prototype.opts=function(t){return this.method("OPTIONS",t)},t.prototype.replay=function(t){return this.method(this._options.method,t)},t.prototype.body=function(t){return this.selfFactory({options:Vt(Vt({},this._options),{body:t})})},t.prototype.json=function(t){var n,e=null===(n=Object.entries(this._options.headers||{}).find((function(t){var n=t[1];return t[0].toLowerCase()==="Content-Type".toLowerCase()&&n.startsWith("application/json")})))||void 0===n?void 0:n[1];return this.content(e||"application/json").body(JSON.stringify(t))},t.prototype.formData=function(t,n){return void 0===n&&(n=!1),this.body(Xt(t,n))},t.prototype.formUrl=function(t){return this.body("string"==typeof t?t:(n=t,Object.keys(n).map((function(t){var e=n[t];return e instanceof Array?e.map((function(n){return Jt(t,n)})).join("&"):Jt(t,e)})).join("&"))).content("application/x-www-form-urlencoded");var n},t}(),$t=function(t,n,e){var i;if("string"==typeof n)i=n;else{var r=Ut.polyfill("URLSearchParams",{instance:!0});for(var o in n)if(n[o]instanceof Array)for(var s=0,a=n[o];s<a.length;s++)r.append(o,a[s]);else r.append(o,n[o]);i=r.toString()}var u=t.split("?");return e||u.length<2?u[0]+"?"+i:t+"&"+i};function Xt(t,n,e,i){return void 0===n&&(n=!1),void 0===e&&(e=Ut.polyfill("FormData",{instance:!0})),void 0===i&&(i=[]),Object.entries(t).forEach((function(t){var r=t[0],o=t[1],s=i.reduce((function(t,n){return t?t+"["+n+"]":n}),null);if(s=s?s+"["+r+"]":r,o instanceof Array)for(var a=0,u=o;a<u.length;a++)e.append(s+"[]",u[a]);else!n||"object"!=typeof o||n instanceof Array&&n.includes(r)?e.append(s,o):null!==o&&Xt(o,n,e,Ht(i,[r]))})),e}function Jt(t,n){return encodeURIComponent(t)+"="+encodeURIComponent("object"==typeof n?JSON.stringify(n):""+n)}var Gt=Wt.factory;function Kt(){const t=Zt.jwt,n=Zt.profileId,e=Zt.accountIdOrDefault,i=Zt.partnerIdOrDefault;return Gt(Zt.apiBaseUrl).headers({Authorization:"Bearer "+t,"X-PROFILE-ID":n,"X-PARTNER-ID":i,"X-ACCOUNT-ID":e})}Gt.default=Wt.factory;const Yt=new class{async getAustralianFundsAsync(t){return Kt().url("super-choice/australian-funds?"+this.toQueryString(t)).get().notFound((()=>{throw new Error("Failed to fetch the list of australian super funds.")})).json()}async getAppStateAsync(){return Kt().url("client-app-state").get().notFound((()=>{throw new Error("Failed to fetch application configuration.")})).json()}toQueryString(t){switch(t.type){case"partialMatch":return`search=${t.searchString}&maxRecordCount=${t.maxRecordCount}`;case"usiMatch":return"usi="+t.usi}}},Qt={apiBaseUrl:jt.none,appBaseUrl:jt.none,profileId:jt.none,jwt:jt.none,superBuyer:jt.none,promotedFunds:jt.none,accountConfiguration:jt.none,hasSuccessPageBeenAcknowledged:!1,hasSuperSelectionBeenSubmitted:!1},Zt=new class{constructor(){const{state:t,onChange:n}=Et(Qt);this._state=t,this._onChange=n,n("jwt",(t=>{this._state.profileId=Ft.pipe(t,jt.chain((t=>jt.fromNullable(function(t,n){if("string"!=typeof t)throw new Pt("Invalid token specified");var e=!0===(n=n||{}).header?0:1;try{return JSON.parse(Tt(t.split(".")[e]))}catch(t){throw new Pt("Invalid token specified: "+t.message)}}(t).sub))))}))}get state(){return this._state}get onChange(){return this._onChange}get superBuyer(){if(jt.isNone(this._state.superBuyer))throw Error("User information is not set");return this._state.superBuyer.value}get apiBaseUrl(){if(jt.isNone(this._state.apiBaseUrl))throw Error("API base URL is not set");return this._state.apiBaseUrl.value}get appBaseUrl(){if(jt.isNone(this._state.appBaseUrl))throw Error("App base URL is not set");return this._state.appBaseUrl.value}get promotedFunds(){if(jt.isNone(this._state.promotedFunds))throw Error("Promoted Funds is not set");return this._state.promotedFunds.value}get profileId(){if(jt.isNone(this._state.profileId))throw Error("Failed to get Profile ID from JWT");return this._state.profileId.value}get defaultFundUsi(){return Ft.pipe(this._state.accountConfiguration,jt.map((t=>jt.fromNullable(t.defaultFundUsi))),jt.flatten)}get accountIdOrDefault(){return Ft.pipe(this._state.accountConfiguration,jt.map((t=>t.accountId)),jt.getOrElse((()=>"")))}get partnerIdOrDefault(){return Ft.pipe(this._state.superBuyer,jt.map((t=>t.partnerId)),jt.getOrElse((()=>"")))}get jwt(){if(jt.isNone(this._state.jwt))throw Error("No authentication information was found");return this._state.jwt.value}get showSmsfNotSupported(){return Ft.pipe(this._state.superBuyer,jt.map((t=>t.showSmsfNotSupported)),jt.getOrElse((()=>!1)))}completeSuperSelectionFlow(){this._state.hasSuccessPageBeenAcknowledged=!0}markSuperSelectionAsSubmitted(){this._state.hasSuperSelectionBeenSubmitted=!0}async loadAppStateAsync(){const t=await Yt.getAppStateAsync();this._state.accountConfiguration=jt.fromNullable(t.accountConfiguration),this._state.superBuyer=jt.fromNullable(t.superBuyer),this._state.promotedFunds=jt.fromNullable(t.promotedFunds)}},tn=new class{navigateInternally(t,n){const e=`${this.appBaseUrl}${this.toRouteWithLeadingSlash(n)}`;kt(e),t.push(e)}toExternalUrl(t){const n=new URL(t);return n.searchParams.append("_extnav","true"),n.href}get appBaseUrl(){return Zt.appBaseUrl.replace(/\/$/,"")}toRouteWithLeadingSlash(t){return t.length>0&&"/"===t[0]?t:"/"+t}};var nn;!function(t){t.ChoicePage="/",t.SlateJoin="/slate/join/",t.SlateStandardChoice="/slate/standard-choice/",t.PromotedFundJoin="/promoted-fund/join",t.PromotedFundStandardChoice="/promoted-fund/standard-choice/",t.MyOwnFund="/super-choice/my-own-fund/",t.SelfManagedFund="/super-choice/smsf/",t.DefaultFund="/super-choice/default/",t.Success="/success/"}(nn||(nn={}));const en=[n("stencil-route",{exact:!0,url:nn.ChoicePage,component:"sss-super-choice-page"}),n("stencil-route",{url:nn.SlateJoin,component:"sss-slate-join-page"}),n("stencil-route",{url:nn.SlateStandardChoice,component:"sss-slate-standard-choice-page"}),n("stencil-route",{url:nn.PromotedFundJoin,component:"sss-promoted-fund-join-page"}),n("stencil-route",{url:nn.PromotedFundStandardChoice,component:"sss-promoted-fund-standard-choice-page"}),n("stencil-route",{url:nn.MyOwnFund,component:"sss-my-own-fund"}),n("stencil-route",{url:nn.SelfManagedFund,component:"sss-self-managed-fund"}),n("stencil-route",{url:nn.DefaultFund,component:"sss-default-fund"}),n("stencil-route",{url:nn.Success,component:"sss-success"})];var rn;!function(t){t.MyOwnFund="My Own Fund",t.DefaultFund="Default Fund",t.SelfManagedFund="Self Managed Fund"}(rn||(rn={}));const on={continueAllowed:!1,nextRoute:"/",myOwnFundForm:{fundUsi:L,memberNumber:L,standardChoiceFormSignature:L},defaultFundForm:{standardChoiceFormSignature:""},selfManagedFundForm:{fundName:"",fundAbn:"",fundEsa:"",addressLine1:"",addressLine2:"",state:"",postcode:"",city:"",bankAccountName:"",bsb:"",bankAccountNumber:"",standardChoiceFormSignature:""},currentCustomFundType:rn.MyOwnFund,customFunds:[{label:rn.MyOwnFund,value:nn.MyOwnFund},{label:rn.DefaultFund,value:nn.DefaultFund},{label:rn.SelfManagedFund,value:nn.SelfManagedFund}]},{state:sn}=Et(on),an=sn.customFunds,un=class{constructor(n){t(this,n),this.currentCustomFund=an[0],this.fundOptionsList=an}componentWillLoad(){let t="";window.location.pathname.includes(nn.MyOwnFund)&&(t=nn.MyOwnFund),window.location.pathname.includes(nn.DefaultFund)&&(t=nn.DefaultFund),window.location.pathname.includes(nn.SelfManagedFund)&&(t=nn.SelfManagedFund),this.currentCustomFund=an.find((n=>n.value===t))||an[0],tn.navigateInternally(this.history,t)}render(){return n("div",{class:"container"},n("div",{class:"row justify-content-center"},n("div",{class:"col col-sm-10 col-md-7"},n("p",{class:"font-weight-bold text-center"},"Choose your Super"),n("div",{class:"mb-4"},n("select",{class:"form-control",required:!0,onChange:t=>{this.handleChange(t.target.value.trim())}},this.fundOptionsList.map((t=>n("option",{value:t.value,selected:this.currentCustomFund.value===t.value},t.label))))),n("slot",null))))}handleChange(t){const n=an.find((n=>n.value===t))||{value:nn.MyOwnFund};tn.navigateInternally(this.history,n.value)}static get assetsDirs(){return["assets"]}};H(un);const cn=new class{searchFundsAsync(t,n){return Yt.getAustralianFundsAsync({type:"partialMatch",searchString:t,maxRecordCount:n})}async getFundByUsiAsync(t){const n=await Yt.getAustralianFundsAsync({type:"usiMatch",usi:t});return 1===n.length?jt.some(n[0]):jt.none}};class ln{static get Instance(){return this.instance||(this.instance=new this)}async PostAnalyticsEventAsync(t){return Kt().url("analytics-events").post(t).res()}}class fn{constructor(){this.eventTrackingApi=ln.Instance}static get Instance(){return this.instance||(this.instance=new this)}async TrackFinancialProductViewedAsync(t){return this.trackEventAsync({FinancialProductViewed:t})}async TrackSuperFundPdsViewedAsync(t){return this.trackEventAsync({SuperFundPdsViewed:t})}async TrackFinancialProductAcceptedAsync(t){return this.trackEventAsync({FinancialProductAccepted:t})}async TrackFinancialProductRejectedAsync(t){return this.trackEventAsync({FinancialProductRejected:t})}async TrackSuperFundPrivacyConfirmationAcceptedAsync(t){return this.trackEventAsync({SuperFundPrivacyConfirmationAccepted:t})}async TrackPromotedSuperFundDetailViewedAsync(t){return this.trackEventAsync({SuperFundDetailViewed:{PromotedFund:t}})}async TrackMyOwnSuperFundDetailViewedAsync(t){return this.trackEventAsync({SuperFundDetailViewed:{MyOwnFund:t}})}async TrackSmsfSuperFundDetailViewedAsync(t){return this.trackEventAsync({SuperFundDetailViewed:{Smsf:t}})}async TrackDefaultSuperFundDetailViewedAsync(t){return this.trackEventAsync({SuperFundDetailViewed:{DefaultFund:t}})}async TrackSuperFundPanelViewedAsync(t){return this.trackEventAsync({SuperFundPanelViewed:t})}async trackEventAsync(t){try{await this.eventTrackingApi.PostAnalyticsEventAsync({event:t})}catch(t){return}}}const dn={items:[]},hn=new class{constructor(){const{state:t}=Et(dn);this._state=t}get state(){return this._state}closeCurrent(){const t=[...this._state.items];t.shift(),this._state.items=t}clearNotifications(){this._state.items=[]}showErrorNotification(t,n){this.pushNotification(t,null!=n?n:0,"danger")}showInfoNotification(t,n){this.pushNotification(t,null!=n?n:0,"info")}showWarningNotification(t,n){this.pushNotification(t,null!=n?n:0,"warning")}showSuccessNotification(t,n){this.pushNotification(t,null!=n?n:0,"success")}pushNotification(t,n,e){const i=[...this._state.items];i.push({details:t,type:e,priority:n}),this._state.items=i.sort(((t,n)=>n.priority-t.priority))}},pn=new class{async submitDefaultFundChoiceAsync(t){return Kt().url("super-choice/default").post(t).badRequest((()=>{throw new Error("Failed to process default fund join request")})).text()}async submitCustomFundChoiceAsync(t){return Kt().url("super-choice/custom-fund").post(t).badRequest((()=>{throw new Error("Failed to process custom fund join request")})).text()}async submitSelfManagedFundChoiceAsync(t){return Kt().url("super-choice/smsf").post(t).badRequest((()=>{throw new Error("Failed to process SMSF choice request")})).text()}},vn=class{constructor(n){t(this,n),this.defaultFundProductName="Loading fund...",this.eventTrackingService=fn.Instance}async componentWillLoad(){const t=Zt.defaultFundUsi;if(jt.isNone(t))return;this.isDefaultFundExists=!0;const n=await cn.getFundByUsiAsync(t.value);if(jt.isNone(n))return this.isInvalidDefaultFund=!0,void hn.showErrorNotification({title:"Something is not right",description:`Couldn't find information about the configured default fund (USI ${t.value})`});this.defaultFund=n.value,this.defaultFundProductName=n.value.productName}componentDidLoad(){return this.eventTrackingService.TrackDefaultSuperFundDetailViewedAsync({fundUsi:this.defaultFund.usi,fundName:this.defaultFund.productName,promotedFundsShown:Zt.promotedFunds})}render(){return n(o,{class:"d-flex flex-fill"},n("sss-custom-fund",{class:"flex-fill"},n("form",{noValidate:!0,onSubmit:t=>t.preventDefault(),class:{"was-validated":"validated"===this.formState},ref:t=>this.formElement=t},this.isDefaultFundExists?n((t=>[n("div",{class:"card p-4"},n("p",{class:"font-weight-bold"},"Default Fund"),n("p",{class:"mb-4 small"},"Almost there... all you have to do now is review the fund below, complete and sign the super choice form and save. Your application to join the fund is subject to Trustee approval."),n("p",{class:"font-weight-bold mt-3"},"Default Fund Name"),n("p",null,t.defaultFundName)),n("sss-standard-choice-form",{onStandardChoiceFormSignatureUpdated:t=>{sn.defaultFundForm=Object.assign(Object.assign({},sn.defaultFundForm),t.detail)}})]),{defaultFundName:this.defaultFundProductName}):n((()=>n("div",{class:"card p-4"},n("p",{class:"font-weight-bold"},"No Default Fund"),n("p",{class:"mb-4 small"},"It looks like your employer has not yet defined a default fund. Please contact them if you wish to choose your company's default fund."))),null)),n("div",{class:"mt-4"},n("sss-notifications-section",null)),n("div",{class:"d-flex mt-4"},n("div",{class:"flex-grow-1 w-50"},n("div",{class:"mr-2"},n("fl-button",{onClick:()=>tn.navigateInternally(this.history,nn.ChoicePage),isBlockElement:!0,variant:"secondary"},n("span",null,"Back")))),n("div",{class:"flex-grow-1 w-50"},this.isDefaultFundExists&&n("div",{class:"ml-2"},n("fl-promise-button",{isBlockElement:!0,disabled:this.isInvalidDefaultFund,promiseFn:()=>this.handleSubmitForm()},n("span",null,"Save and continue")))))))}async handleSubmitForm(){this.isInvalidDefaultFund||(this.formState="validated",this.formElement.checkValidity()&&(await pn.submitDefaultFundChoiceAsync(sn.defaultFundForm),Zt.markSuperSelectionAsSubmitted(),tn.navigateInternally(this.history,nn.Success)))}},mn=class{constructor(n){t(this,n)}render(){return n("div",{class:"container mb-sm-0"},n("div",{class:"row justify-content-center pt-3 mt-3 mb-3 border-top"},n("div",{class:"text-decoration-none"},n("p",{class:"mt-3 small text-center mb-1 text-muted"},"Powered by Flare"))),n("div",{class:"row justify-content-center pb-sm-0 px-3 px-sm-0 text-center"},n("p",{class:"text-muted small"},"This page contains factual information only and does not take into account your particular objectives, financial circumstances or needs. If you have questions or need help making a decision about your super fund, you should speak to a licensed financial advice provider. You should consider the relevant super fund's PDS and TMD (if applicable) in deciding whether to apply to join the super fund. Each of the advertised fund's PDS and TMD (if applicable) can be found in their advertisements above. If you are considering joining another fund you can find the PDS and TMD on the fund's website. Your employer and Flare do not endorse or accept responsibility for any financial product advice or services provided by the promoters or trustees of the advertised superannuation funds. Flare do not endorse or accept responsibility for any of their content shown about any of the advertised superannuation funds as they are merely passing on the content as provided without any changes. Flare do not express any opinion or make any recommendation about any of the advertised funds.")),n("div",{class:"row justify-content-end my-1 px-3 px-sm-0"},this.appVersionBadge()))}appVersionBadge(){return n("small",{style:{opacity:"0.5"},class:"text-muted"},"Powered by Flare, v","3.49.59238")}};mn.style="html{scroll-behavior:smooth}img.fluid-fit{-o-object-fit:cover;object-fit:cover}.ss-footer-logo{max-width:7rem}";const bn=class{constructor(n){t(this,n)}render(){return n(o,{class:"d-flex flex-column justify-content-center align-items-center flex-grow-1"},n("h5",null,"Loading your superannuation step"),n("fl-loading-indicator",null))}},wn=class{constructor(n){t(this,n),this.isNotAllInformationProvidedMessageVisible=!1,this.eventTrackingService=fn.Instance}componentDidLoad(){return this.eventTrackingService.TrackMyOwnSuperFundDetailViewedAsync({promotedFundsShown:Zt.promotedFunds})}render(){return n(o,{class:"d-flex flex-fill"},n("sss-custom-fund",{class:"flex-fill"},n("form",{noValidate:!0,onSubmit:t=>t.preventDefault(),class:{"was-validated":"validated"===this.formState},ref:t=>this.formElement=t},n("div",{class:"card p-4"},n("p",{class:"font-weight-bold"},"Fund details"),n("p",{class:"text-warning mb-4 small"},"Make sure you are already a member of the fund before completing this step."),n("sss-my-own-fund-inputs",{myOwnFundForm:sn.myOwnFundForm,onFormChanged:t=>{sn.myOwnFundForm=Object.assign(Object.assign({},sn.myOwnFundForm),t.detail),this.isNotAllInformationProvidedMessageVisible=!1}})),n("sss-standard-choice-form",{onStandardChoiceFormSignatureUpdated:t=>{sn.myOwnFundForm=Object.assign(Object.assign({},sn.myOwnFundForm),{standardChoiceFormSignature:z(t.detail.standardChoiceFormSignature)})}})),n("div",{class:"mt-4"},n("sss-notifications-section",null)),this.isNotAllInformationProvidedMessageVisible&&n("div",{class:"mt-4 alert alert-danger",role:"alert"},"All fields are required to complete submission. Make sure you have selected a fund."),n("div",{class:"d-flex mt-4"},n("div",{class:"flex-grow-1 w-50"},n("div",{class:"mr-2"},n("fl-button",{onClick:()=>tn.navigateInternally(this.history,nn.ChoicePage),isBlockElement:!0,variant:"secondary"},n("span",null,"Back")))),n("div",{class:"flex-grow-1 w-50"},n("div",{class:"ml-2"},n("fl-promise-button",{isBlockElement:!0,promiseFn:()=>this.handleSubmitForm()},n("span",null,"Save and continue")))))))}async handleSubmitForm(){if(this.formState="validated",!this.formElement.checkValidity())return;if(!(O(sn.myOwnFundForm.fundUsi)&&O(sn.myOwnFundForm.memberNumber)&&O(sn.myOwnFundForm.standardChoiceFormSignature)))return void(this.isNotAllInformationProvidedMessageVisible=!0);const t={fundUsi:this.getOrError(sn.myOwnFundForm.fundUsi),memberNumber:this.getOrError(sn.myOwnFundForm.memberNumber),standardChoiceFormSignature:this.getOrError(sn.myOwnFundForm.standardChoiceFormSignature)};await pn.submitCustomFundChoiceAsync(t),Zt.markSuperSelectionAsSubmitted(),tn.navigateInternally(this.history,nn.Success)}getOrError(t){return Ft.pipe(t,(n=()=>{throw new Error("Option value is none.")},function(t){return U(t)?n():t.value}));var n}static get assetsDirs(){return["assets"]}};H(wn);const gn=class{constructor(n){t(this,n),this.formChanged=e(this,"formChanged",7),this.MIN_SEARCH_STRING_LENGTH=3,this.MAX_RECORD_COUNT=10,this.searchFundsAsync=async t=>(await cn.searchFundsAsync(t,this.MAX_RECORD_COUNT)).sort(((t,n)=>t.productName.localeCompare(n.productName))).map((t=>({label:`${t.productName} (${t.usi})`,value:t.usi})))}render(){return n("div",null,n("div",{class:""},n("label",{class:"mb-2 font-weight-bold"},"Superannuation Fund Name"),n("fl-dropdown-async",{searchFunction:this.searchFundsAsync,minSearchStringLength:this.MIN_SEARCH_STRING_LENGTH,required:!0,requiredValidationMessage:"Select a fund",placeholder:`Search by name or USI (type at least ${this.MIN_SEARCH_STRING_LENGTH} characters)`,value:this.selectedOption,onValueChanged:t=>{this.selectedOption=t.detail,this.updateFundUsi(t.detail.value.toString())}}),n("div",{class:"invalid-feedback"},"Select a fund"),O(this.myOwnFundForm.fundUsi)&&n("div",null,n("label",{class:"mb-2 mt-3 font-weight-bold"},"Superannuation Fund USI"),n("p",{class:"mb-0"},this.myOwnFundForm.fundUsi.value),n("p",{class:"small mt-1"},"Please ensure this is the correct fund USI as some funds have similar names"))),n("div",{class:"mt-4"},n("label",{class:"mb-2 font-weight-bold"},"Member Number"),n("input",{placeholder:"Enter your member number",type:"text",class:"form-control",required:!0,pattern:"[A-Za-z0-9]{4,16}",name:"memberNumber",id:"memberNumber",value:(t=sn.myOwnFundForm.memberNumber,U(t)?void 0:t.value),onChange:t=>this.updateMemberNumber(t.target.value.trim())}),n("div",{class:"invalid-feedback"},"Enter a valid member number (only numbers and / or letters)")));var t}updateFundUsi(t){this.formChanged.emit({fundUsi:q(t)})}updateMemberNumber(t){this.formChanged.emit({memberNumber:q(t)})}},yn=class{constructor(n){t(this,n)}disconnectedCallback(){hn.clearNotifications()}render(){const{items:t}=hn.state;return t.length<=0?n(o,null):n("div",{class:"alert alert-"+t[0].type,role:"alert"},n("div",{class:"d-flex"},n("p",{class:"mb-0 flex-grow-1"},n("strong",null,t[0].details.title)),n("button",{onClick:this.handleClose,type:"button",class:"close pb-1","aria-label":"Close"},n("span",{"aria-hidden":"true"},"×"))),n("p",{class:"mb-0 mt-1"},t[0].details.description))}handleClose(){hn.closeCurrent()}},{state:xn}=Et({fundId:"",memberNumber:"",usi:"",standardChoiceFormSignature:""}),kn=new class{constructor(){this.hostIsLocalSuperSelection=()=>"http://localhost:7100"==window.location.origin,this.environmentDiscriminator=()=>this.hostIsLocalSuperSelection()?"autodev-partner":window.location.hostname.toLowerCase().split(".")[0],this.promotedFundJoinAppUrl=()=>`https://${this.environmentDiscriminator()}.flarehr.com/promoted-fund-join/embed/v1.0/web`}build(t,n){if(!(null==t?void 0:t.contentDocument))return;const e=Object.assign(Object.assign({},this.getMemberData()),{partnerId:Zt.partnerIdOrDefault,accountId:Zt.accountIdOrDefault,fundId:xn.fundId,authToken:Zt.jwt}),i=e=>{const{data:r}=e;if(r)if("promoted-fund-redirect"!==r.sender){if("promoted-fund-join"===r.sender)switch(r.type){case"contentResized":t.height=r.height>0?r.height:t.height,t.width=r.width>0?r.width:t.width;break;case"pageNavigated":window.scroll(t.offsetLeft,t.offsetTop),kt(window.location.href)}}else switch(window.removeEventListener("message",i),r.type){case"cancel":tn.navigateInternally(n,nn.ChoicePage);break;case"success":if(r.memberNumber){xn.memberNumber=r.memberNumber,xn.usi=r.usi.replace(/ /g,""),tn.navigateInternally(n,nn.PromotedFundStandardChoice);break}default:tn.navigateInternally(n,nn.ChoicePage)}};window.addEventListener("message",i);const r=t.contentDocument;r.open();const o=r.createElement("form");let s;for(s in o.method="POST",o.target="_self",o.action=this.promotedFundJoinAppUrl(),e){const t=e[s];if(void 0!==t){const n=document.createElement("input");n.type="hidden",n.name=s,n.value=t,o.append(n)}}r.appendChild(o),r.close(),o.submit()}getMemberData(){var t,n;const e=Zt.superBuyer;return{title:e.userProfile.title,firstName:e.userProfile.firstName,middleName:e.userProfile.middleName,lastName:e.userProfile.lastName,dateOfBirth:e.userProfile.dateOfBirth,gender:e.userProfile.gender,email:e.userProfile.email,mobilePhone:e.userProfile.mobilePhone,taxFileNumber:null!==(t=e.tfn)&&void 0!==t?t:"",addressLine1:e.userProfile.address.addressLine1,addressLine2:null!==(n=e.userProfile.address.addressLine2)&&void 0!==n?n:"",city:e.userProfile.address.city,state:e.userProfile.address.state,postCode:e.userProfile.address.postcode}}},Sn=class{constructor(n){t(this,n)}componentDidLoad(){kn.build(this.iframeElement,this.history)}render(){return n(o,{class:"d-flex flex-fill"},n("iframe",{width:"100%",height:window.innerHeight,style:{border:"none"},ref:t=>this.iframeElement=t}))}},Cn=new class{async submitChoiceAsync(t){return Kt().url("super-choice/promoted-fund").post(t).badRequest((()=>{throw new Error("Failed to process Promoted Fund choice request")})).text()}},An=class{constructor(n){t(this,n)}render(){return n(o,{class:"d-flex flex-fill"},n("div",{class:"container"},n("div",{class:"row justify-content-center"},n("div",{class:"col col-sm-10 col-md-7"},n("div",null,n("div",null,"You're almost done, simply sign the Standard Choice Form below to finalise your superannuation choice."),n("form",{noValidate:!0,onSubmit:t=>t.preventDefault(),class:{"was-validated":"validated"===this.formState},ref:t=>this.formElement=t},n("sss-standard-choice-form",{onStandardChoiceFormSignatureUpdated:t=>{xn.standardChoiceFormSignature=t.detail.standardChoiceFormSignature}})),n("div",{class:"d-flex mt-4"},n("div",{class:"flex-grow-1 w-50"},n("div",{class:"ml-2"},n("fl-promise-button",{isBlockElement:!0,promiseFn:()=>this.handleSubmitForm()},n("span",null,"Save and continue"))))))))))}async handleSubmitForm(){this.formState="validated",this.formElement.checkValidity()&&(await Cn.submitChoiceAsync(Object.assign(Object.assign({},xn),{shownFunds:Zt.promotedFunds})),Zt.markSuperSelectionAsSubmitted(),tn.navigateInternally(this.history,nn.Success))}},_n=class{constructor(n){t(this,n)}render(){return n(o,{class:"bg-white rounded-sm picked-box-border p-3"},n("div",{class:"d-flex"},n("div",{class:"flex-grow-1 font-weight-bold"},this.fundType),n("div",{class:"px-3 py-2 text-white picked-block position-absolute"},"You picked")),n("div",null,this.fundName))}};_n.style="html{scroll-behavior:smooth}img.fluid-fit{-o-object-fit:cover;object-fit:cover}.picked-block{background-color:var(--fl-color-primary);border-top-right-radius:3px;right:0;top:0}.picked-box-border{border:2px solid var(--fl-color-primary)}";const En=class{constructor(n){t(this,n),this.showSmsfNotSupported=!1,this.eventTrackingService=fn.Instance,this.success=()=>{Zt.markSuperSelectionAsSubmitted(),tn.navigateInternally(this.history,nn.Success)}}componentDidLoad(){return this.eventTrackingService.TrackSmsfSuperFundDetailViewedAsync({promotedFundsShown:Zt.promotedFunds})}render(){return n(o,{class:"d-flex flex-fill"},n("sss-custom-fund",{class:"flex-fill"},n("form",{noValidate:!0,onSubmit:t=>t.preventDefault(),class:{"was-validated":"validated"===this.formState},ref:t=>this.formElement=t},n("div",{class:"card p-4"},n("p",{class:"font-weight-bold"},"Fund details"),n("p",{class:"text-warning mb-4 small"},"Make sure you are already a member of the fund before completing this step."),n("sss-self-managed-fund-inputs",{fundForm:sn.selfManagedFundForm,onFormChanged:t=>{sn.selfManagedFundForm=Object.assign(Object.assign({},sn.selfManagedFundForm),t.detail)}})),n("sss-standard-choice-form",{onStandardChoiceFormSignatureUpdated:t=>{sn.selfManagedFundForm=Object.assign(Object.assign({},sn.selfManagedFundForm),t.detail)}}),this.showSmsfNotSupported&&n("sss-smsf-not-supported-dialog",{ref:t=>this.notSupportedDialog=t,onContinue:this.success})),n("div",{class:"mt-4"},n("sss-notifications-section",null)),n("div",{class:"d-flex mt-4"},n("div",{class:"flex-grow-1 w-50"},n("div",{class:"mr-2"},n("fl-button",{onClick:()=>tn.navigateInternally(this.history,nn.ChoicePage),isBlockElement:!0,variant:"secondary"},n("span",null,"Back")))),n("div",{class:"flex-grow-1 w-50"},n("div",{class:"ml-2"},n("fl-promise-button",{isBlockElement:!0,promiseFn:()=>this.handleSubmitForm()},n("span",null,"Save and continue")))))))}componentDidRender(){var t;this.showSmsfNotSupported&&(null===(t=this.notSupportedDialog)||void 0===t||t.scrollIntoView())}async handleSubmitForm(){if(this.formState="validated",this.formElement.checkValidity()){const t={smsfChoice:{abn:sn.selfManagedFundForm.fundAbn,fundName:sn.selfManagedFundForm.fundName,fundAddress:{addressLine1:sn.selfManagedFundForm.addressLine1,addressLine2:sn.selfManagedFundForm.addressLine2,city:sn.selfManagedFundForm.city,state:sn.selfManagedFundForm.state,postcode:sn.selfManagedFundForm.postcode},bsb:sn.selfManagedFundForm.bsb,bankAccountName:sn.selfManagedFundForm.bankAccountName,bankAccountNumber:sn.selfManagedFundForm.bankAccountNumber,electronicServiceAddress:sn.selfManagedFundForm.fundEsa},standardChoiceFormSignature:sn.selfManagedFundForm.standardChoiceFormSignature};await pn.submitSelfManagedFundChoiceAsync(t),Zt.showSmsfNotSupported?this.showSmsfNotSupported=!0:this.success()}}};H(En);const Bn={"01":"Australia and New Zealand Banking Group","03":"Westpac Banking Corporation",73:"Westpac Banking Corporation","06":"Commonwealth Bank of Australia",76:"Commonwealth Bank of Australia","08":"National Australia Bank",78:"National Australia Bank","09":"Reserve Bank of Australia",10:"BankSA (division of Westpac Bank)",11:"St George Bank (division of Westpac Bank)",33:"St George Bank (division of Westpac Bank)",12:"Bank of Queensland",14:"Rabobank",15:"Town & Country Bank",18:"Macquarie Bank",19:"Bank of Melbourne (division of Westpac Bank)",55:"Bank of Melbourne (division of Westpac Bank)",21:"JP Morgan Chase Bank",22:"BNP Paribas",23:"Bank of America",24:"Citibank & Citibank NA",510:"Citibank & Citibank NA",25:"BNP Paribas Securities",26:"Bankers Trust Australia (division of Westpac Bank)",29:"MUFG Bank",30:"Bankwest (division of Commonwealth Bank)",31:"Bank Australia",325:"Beyond Bank",34:"HSBC Bank Australia",985:"HSBC Bank Australia",35:"Bank of China",980:"Bank of China",40:"Commonwealth Bank of Australia",41:"Deutsche Bank",42:"Commonwealth Bank of Australia",52:"Commonwealth Bank of Australia",45:"OCBC Bank",46:"Advance Bank (division of Westpac Bank)",47:"Challenge Bank (division of Westpac Bank)",48:"Suncorp-Metway",664:"Suncorp-Metway",512:"Community First Credit Union",514:"RACQ Bank",517:"Volt Bank",533:"Bananacoast Community Credit Union",57:"Australian Settlements",61:"Adelaide Bank (division of Bendigo and Adelaide Bank)",611:"Endeavour Mutual Bank",823:"Endeavour Mutual Bank",630:"Greater Bank",637:"Greater Bank",632:"B&E",633:"Bendigo Bank",634:"Uniting Financial Services",638:"Heritage Bank",880:"Heritage Bank",639:"Home Building Society (division of Bank of Queensland)",640:"Hume Bank",641:"IMB",647:"IMB",642:"Australian Military Bank",645:"Auswide Bank",656:"Auswide Bank",646:"Maitland Mutual Building Society",650:"Newcastle Permanent Building Society",653:"Pioneer Permanent Building Society (division of Bank of Queensland)",654:"Queensland Country Credit Union",655:"The Rock",659:"G&C Mutual Bank",676:"Gateway Bank",70:"Indue",721:"Holiday Coast Credit Union",722:"Southern Cross Credit Union",723:"Bank of Heritage Isle",724:"MOVE",728:"Summerland Credit Union",777:"Police & Nurse",80:"Cuscal",670:"Cuscal",812:"Teachers Mutual Bank",813:"Capricornian",814:"Credit Union Australia",815:"Police Bank",817:"Warwick Credit Union",818:"Bank of Communications",819:"Industrial & Commercial Bank of China",824:"Sutherland Credit Union",825:"Big Sky Building Society",833:"Defence Bank",882:"Unity Bank",888:"China Construction Bank",90:"Australia Post",911:"Sumitomo Mitsui Banking Corporation",913:"State Street Bank & Trust Company",917:"Arab Bank Australia",918:"Mizuho Bank",922:"United Overseas Bank",923:"ING Bank",936:"ING Bank",931:"Mega International Commercial Bank",932:"Regional Australia Bank",939:"AMP Bank",941:"Delphi Bank (division of Bendigo and Adelaide Bank)",942:"Bank of Sydney",943:"Taiwan Business Bank",944:"Members Equity Bank",946:"UBS AG",951:"BOQ Specialist",969:"Tyro Payments"},Fn=class{constructor(n){t(this,n),this.formChanged=e(this,"formChanged",7),this.currentBank=L,this.stateOptions=[{value:"NSW",label:"NSW"},{value:"QLD",label:"QLD"},{value:"ACT",label:"ACT"},{value:"VIC",label:"VIC"},{value:"TAS",label:"TAS"},{value:"WA",label:"WA"},{value:"SA",label:"SA"},{value:"NT",label:"NT"}],this.bsbRegex=new RegExp(/^[0-9]{3}[0-9]{3}$/),this.bankAccountNumberRegex=new RegExp(/^[0-9]{2,10}$/)}render(){return n("div",null,n("div",{class:"mt-4"},n("label",{class:"mb-2 font-weight-bold"},"Fund name *"),n("input",{placeholder:"Enter your fund name",type:"text",class:"form-control",required:!0,minlength:"2",name:"fundName",id:"fundName",value:sn.selfManagedFundForm.fundName,onChange:t=>this.updateFormField("fundName",t.target.value.trim())}),n("div",{class:"invalid-feedback"},"Enter a valid fund name")),n("div",{class:"mt-4"},n("label",{class:"mb-2 font-weight-bold"},"Fund ABN *"),n("input",{placeholder:"Enter your fund ABN",type:"text",class:"form-control",required:!0,minlength:"2",name:"fundAbn",id:"fundAbn",value:sn.selfManagedFundForm.fundAbn,onChange:t=>this.updateFormField("fundAbn",t.target.value.trim())}),n("div",{class:"invalid-feedback"},"Enter a valid fund ABN")),n("div",{class:"mt-4"},n("label",{class:"mb-2 font-weight-bold"},"Electronic service address alias (ESA) *"),n("input",{placeholder:"Enter your ESA",type:"text",class:"form-control",required:!0,minlength:"2",name:"fundEsa",id:"fundEsa",value:sn.selfManagedFundForm.fundEsa,onChange:t=>this.updateFormField("fundEsa",t.target.value.trim())}),n("div",{class:"invalid-feedback"},"Enter a valid fund ESA")),n("div",{class:"mt-4"},n("label",{class:"mb-2 font-weight-bold"},"Address line 1 *"),n("input",{placeholder:"Enter your address",type:"text",class:"form-control",required:!0,minlength:"2",name:"addressLine1",id:"addressLine1",value:sn.selfManagedFundForm.addressLine1,onChange:t=>this.updateFormField("addressLine1",t.target.value.trim())}),n("div",{class:"invalid-feedback"},"Enter a valid address")),n("div",{class:"mt-4"},n("label",{class:"mb-2 font-weight-bold"},"Address line 2 (optional)"),n("input",{placeholder:"Enter your address",type:"text",class:"form-control",name:"addressLine2",id:"addressLine2",value:sn.selfManagedFundForm.addressLine2,onChange:t=>this.updateFormField("addressLine2",t.target.value.trim())}),n("div",{class:"invalid-feedback"},"Enter a valid address")),n("div",{class:"mt-4"},n("label",{class:"mb-2 font-weight-bold"},"City/suburb *"),n("input",{placeholder:"Enter your city",type:"text",class:"form-control",name:"city",required:!0,id:"city",value:sn.selfManagedFundForm.city,onChange:t=>this.updateFormField("city",t.target.value.trim())}),n("div",{class:"invalid-feedback"},"Enter a valid city/suburb *")),n("div",{class:"mt-3"},n("label",{class:"mb-2 font-weight-bold"},"State *"),n("select",{class:"form-control",name:"state",required:!0,id:"state",onChange:t=>{this.updateFormField("state",t.target.value.trim())}},n("option",{disabled:!0,selected:!this.fundForm.state,value:""},"Select a state"),this.stateOptions.map((t=>n("option",{value:t.value,selected:this.fundForm.state===t.value},t.label)))),n("div",{class:"invalid-feedback"},"Select a state")),n("div",{class:"mt-4"},n("label",{class:"mb-2 font-weight-bold"},"Post code *"),n("input",{placeholder:"Enter your post code",type:"text",required:!0,class:"form-control",name:"postcode",minlength:"4",maxlength:"4",pattern:"[0-9]{4}",id:"postcode",value:sn.selfManagedFundForm.postcode,onChange:t=>this.updateFormField("postcode",t.target.value.trim())}),n("div",{class:"invalid-feedback"},"Enter a valid post code")),n("div",null,n("i",{class:"fas fa-check-circle"})),n("div",{class:"mt-4"},n("label",{class:"mb-2 font-weight-bold"},"BSB *"),n("input",{placeholder:"Enter your BSB",type:"text",required:!0,class:"form-control",name:"bsb",id:"bsb",minlength:"6",maxlength:"7",onKeyUp:t=>this.updateCurrentBank(t),pattern:this.bsbRegex.source,value:sn.selfManagedFundForm.bsb}),O(this.currentBank)&&n("p",{class:"mt-3"},n("strong",null,"Bank name"),n("br",null),n("span",{class:"ml-2"},this.currentBank.value)),n("div",{class:"invalid-feedback"},"Enter a valid BSB")),n("div",{class:"mt-4"},n("label",{class:"mb-2 font-weight-bold"},"Bank account name *"),n("input",{placeholder:"Enter your bank account name",type:"text",required:!0,class:"form-control",name:"bankAccountName",minlength:"2",id:"bankAccountName",value:sn.selfManagedFundForm.bankAccountName,onChange:t=>this.updateFormField("bankAccountName",t.target.value.trim())}),n("div",{class:"invalid-feedback"},"Enter a valid bank account name")),n("div",{class:"mt-4"},n("label",{class:"mb-2 font-weight-bold"},"Bank account number *"),n("input",{placeholder:"Enter your bank account number",type:"text",required:!0,class:"form-control",name:"bankAccountNumber",id:"bankAccountNumber",minlength:"2",maxlength:"11",pattern:this.bankAccountNumberRegex.source,value:sn.selfManagedFundForm.bankAccountNumber,onKeyUp:t=>this.updateCurrentBankAccountNumber(t),onChange:t=>this.updateFormField("bankAccountNumber",t.target.value.trim())}),n("div",{class:"invalid-feedback"},"Enter a valid bank account number")))}updateFormField(t,n){this.formChanged.emit({[t]:n})}filterDigits(t){return t.replace(/[^0-9]/g,"")}updateCurrentBank(t){const n=this.filterDigits(t.target.value),e=n.substring(0,2),i=n.substring(0,3),r=Bn[e],o=Bn[i];r&&(this.currentBank=q(r)),o&&(this.currentBank=q(o)),""===n&&(this.currentBank=L),this.updateFormField("bsb",n)}updateCurrentBankAccountNumber(t){const n=this.filterDigits(t.target.value);this.updateFormField("bankAccountNumber",n)}};var jn;!function(t){t[t.Unauthorized=0]="Unauthorized",t[t.Authenticated=1]="Authenticated",t[t.Error=2]="Error"}(jn||(jn={}));class In{}let Mn=class extends w{constructor(){super({authenticationState:jn.Unauthorized,jwt:L,reactNativeInterop:L,iframeInterop:L,appConfiguration:L})}};Mn=function(t,n,e,i){var r,o=arguments.length,s=o<3?n:null===i?i=Object.getOwnPropertyDescriptor(n,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,n,e,i);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o<3?r(s):o>3?r(n,e,s):r(n,e))||s);return o>3&&s&&Object.defineProperty(n,e,s),s}([b({name:"sss-session",resettable:!0})],Mn);const Tn=new Mn,Pn=new class extends g{constructor(t){super(t),this.store=t}isReactNativeInteropEnabled(){return O(this.getValue().reactNativeInterop)}isIframeInteropEnabled(){return O(this.getValue().iframeInterop)}getIframeInteropMode(){const t=this.getValue().iframeInterop;if(U(t))throw Error("Failed to get iframe interop information: no data in store");if(!this.isIframeInteropEnabled())throw Error("Failed to get iframe interop information: iframe mode is disabled");return t.value}}(Tn),{state:Rn}=Et({slateFundForm:{memberNumber:"",standardChoiceFormSignature:"",shownFunds:[]}}),Nn=new class{constructor(){this.hostIsLocalSuperSelection=()=>"http://localhost:7100"==window.location.origin,this.hostIsDeployed=()=>window.location.origin.endsWith("partner.flarehr.com"),this.skipConsolidation=()=>Pn.isReactNativeInteropEnabled()?"true":"false",this.skipInsurance=()=>Pn.isReactNativeInteropEnabled()?"true":"false",this.environmentDiscriminator=()=>{const t=window.location.hostname.toLowerCase().split(".")[0];switch(t){case"autodev-partner":case"test-partner":case"partner":case"sandbox-partner":return t.replace("partner","");default:return"autodev-"}},this.slateJoinAppUrl=()=>`https://${this.environmentDiscriminator()}join.slatesuper.com.au/confirm`}build(t,n){if(!(null==t?void 0:t.contentDocument))return;const e=(this.hostIsLocalSuperSelection()||this.hostIsDeployed()?window.location.origin+"/super-selection/embed/v1.0/app":"https://autodev-partner.flarehr.com/super-selection/embed/v1.0/app")+"/slate-redirect.html",i=Object.assign(Object.assign({},this.getSlateJoinMemberData()),{successRedirectUrl:e,cancelRedirectUrl:e,skipConsolidation:this.skipConsolidation(),skipInsurance:this.skipInsurance()});this.includeJwt()&&(i.authToken=Zt.jwt);const r=e=>{const{data:i,origin:o}=e;if(i)if("slate-redirect"!==i.sender){if("flare"===i.sender&&o.endsWith("join.slatesuper.com.au"))switch(i.type){case"contentResized":t.height=i.height>0?i.height:t.height,t.width=i.width>0?i.width:t.width}}else switch(window.removeEventListener("message",r),i.type){case"success":if(i.memberNumber){Rn.slateFundForm.memberNumber=i.memberNumber,tn.navigateInternally(n,nn.SlateStandardChoice);break}default:tn.navigateInternally(n,nn.ChoicePage)}};window.addEventListener("message",r);const o=t.contentDocument;o.open();const s=o.createElement("form");let a;for(a in s.method="POST",s.target="_self",s.action=this.slateJoinAppUrl(),i){const t=i[a];if(void 0!==t){const n=document.createElement("input");n.type="hidden",n.name=a,n.value=t,s.append(n)}}o.appendChild(s),o.close(),s.submit()}getSlateJoinMemberData(){var t,n;const e=Zt.superBuyer;return{firstName:e.userProfile.firstName,middleName:e.userProfile.middleName,lastName:e.userProfile.lastName,dateOfBirth:e.userProfile.dateOfBirth,gender:(t=>{switch(t){case"Male":return"Male";case"Female":return"Female";case"Intersex":return"Intersex/Indeterminate";default:return"Unknown"}})(e.userProfile.gender),email:e.userProfile.email,mobilePhone:e.userProfile.mobilePhone,taxFileNumber:null!==(t=e.tfn)&&void 0!==t?t:"",addressLine1:e.userProfile.address.addressLine1,addressLine2:null!==(n=e.userProfile.address.addressLine2)&&void 0!==n?n:"",city:e.userProfile.address.city,state:e.userProfile.address.state,postCode:e.userProfile.address.postcode}}includeJwt(){return!this.slateJoinAppUrl().match(/autodev|sandbox/)}},Dn=class{constructor(n){t(this,n)}componentDidLoad(){Nn.build(this.iframeElement,this.history)}render(){return n(o,{class:"d-flex flex-fill"},n("iframe",{width:"100%",height:window.innerHeight,style:{border:"none"},ref:t=>this.iframeElement=t}))}},On=new class{async submitSlateChoiceAsync(t){return Kt().url("super-choice/slate").post(t).badRequest((()=>{throw new Error("Failed to process Slate join request")})).text()}},Un=class{constructor(n){t(this,n)}render(){return n(o,{class:"d-flex flex-fill"},n("div",{class:"container"},n("div",{class:"row justify-content-center"},n("div",{class:"col col-sm-10 col-md-7"},n("sss-slatesuper-header",null),n("div",null,n("form",{noValidate:!0,onSubmit:t=>t.preventDefault(),class:{"was-validated":"validated"===this.formState},ref:t=>this.formElement=t},n("sss-standard-choice-form",{onStandardChoiceFormSignatureUpdated:t=>{Rn.slateFundForm=Object.assign(Object.assign({},Rn.slateFundForm),t.detail)}})),n("div",{class:"d-flex mt-4"},n("div",{class:"flex-grow-1 w-50"},n("div",{class:"mr-2"},n("stencil-route-link",{url:"/"},n("fl-button",{isBlockElement:!0,variant:"secondary"},n("span",null,"Back"))))),n("div",{class:"flex-grow-1 w-50"},n("div",{class:"ml-2"},n("fl-promise-button",{isBlockElement:!0,promiseFn:()=>this.handleSubmitForm()},n("span",null,"Save and continue"))))))))))}async handleSubmitForm(){this.formState="validated",this.formElement.checkValidity()&&(await On.submitSlateChoiceAsync(Object.assign(Object.assign({},Rn.slateFundForm),{shownFunds:Zt.promotedFunds})),Zt.markSuperSelectionAsSubmitted(),tn.navigateInternally(this.history,nn.Success))}},Ln=class{constructor(n){t(this,n)}render(){return n("div",{class:"d-flex"},n("div",null,n("img",{class:"ss-choice-logo img-thumbnail",alt:"Simple Financial Choices Pty Ltd",src:s("assets/logo-slate.png")})),n("div",{class:"d-flex flex-column ml-3 align-items-left"},n("p",{class:"confirm-title font-weight-bold mb-0"},"You’re almost there!"),n("p",{class:"confirm-text mb-0"},"To proceed type your name below which authorises the signing of the Standard Choice form confirming your super selection.")))}static get assetsDirs(){return["assets"]}};Ln.style="";const qn=class{constructor(n){t(this,n),this.continue=e(this,"continue",7),this.standardChoiceFormUrl="/super-selection/embed/v1.0/app/assets/Superannuation_Standard_Choice_Form.pdf",this.handleContinue=()=>{this.continue.emit()}}render(){return n(o,null,n("div",{class:"overlay"}),n("div",{class:"dialog"},n("div",{class:"card p-4 mt-4 bg-light text-center"},n("div",{style:{"text-align":"center"}},n("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",fill:"orange",viewBox:"0 0 16 16"},n("path",{d:"M8.982 1.566a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566zM8 5c.535 0 .954.462.9.995l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995A.905.905 0 0 1 8 5zm.002 6a1 1 0 1 1 0 2 1 1 0 0 1 0-2z"}))),n("p",{class:"small mt-4 mb-0"},"You’ve selected a self-managed super fund (SMSF). Currently, SMSF information can’t be sent via this form. You’ll need to provide your employer with a"," ",n("a",{target:"_blank",href:this.standardChoiceFormUrl},"standard choice form")," ","for your SMSF details."),n("div",{class:"d-flex mt-4"},n("div",{class:"w-25"}),n("div",{class:"w-50"},n("fl-button",{onClick:this.handleContinue,isBlockElement:!0,variant:"primary"},n("span",null,"Continue")))))))}};qn.style="html{scroll-behavior:smooth}img.fluid-fit{-o-object-fit:cover;object-fit:cover}.overlay{position:absolute;top:0;left:0;z-index:100;background-color:#fff;opacity:0.7;width:100%;height:100%}.dialog{z-index:101;position:relative}";const zn=class{constructor(n){t(this,n),this.standardChoiceFormSignatureUpdated=e(this,"standardChoiceFormSignatureUpdated",7),this.standardChoiceFormUrl="/super-selection/embed/v1.0/app/assets/Superannuation_Standard_Choice_Form.pdf",this.standardChoiceFormSignature=""}render(){return n("div",{class:"card p-4 mt-4 bg-light"},n("h4",{class:"small font-weight-bold"},"Superannuation Standard Choice Form"),n("p",{class:"small mt-2"},"The superannuation"," ",n("a",{target:"_blank",href:this.standardChoiceFormUrl},"standard choice form")," ","informs your employer of your choice of fund."),n("h4",{class:"small font-weight-bold"},"Type your full name below (required)"),n("input",{placeholder:"Type your full name",type:"text",autocomplete:"off",class:"form-control",required:!0,minlength:"2",name:"standardChoiceFormSignature",id:"standardChoiceFormSignature",value:this.standardChoiceFormSignature,onChange:t=>this.updateFormField(t.target.value.trim())}),n("div",{class:"invalid-feedback"},"Type your full name"),n("p",{class:"small mt-3 mb-0"},"Your authorisation is required for signing this form. Applying your full name in the text field above is the same as applying your written signature and is legally binding."))}updateFormField(t){this.standardChoiceFormSignatureUpdated.emit({standardChoiceFormSignature:t})}},Vn=class{constructor(n){t(this,n)}render(){return n(o,{class:"d-flex flex-fill"},n("div",{class:"container mt-5"},n("div",{class:"row justify-content-center"},n("div",{class:"col col-sm-9 col-md-6"},n("div",{class:"bg-light rounded p-4"},n("div",{class:"d-flex justify-content-center"},n("div",null,n("svg",{width:"3em",height:"3em",viewBox:"0 0 16 16",class:"bi bi-check-circle-fill text-success",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},n("path",{"fill-rule":"evenodd",d:"M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zm-3.97-3.03a.75.75 0 0 0-1.08.022L7.477 9.417 5.384 7.323a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-.01-1.05z"})))),n("div",{class:"d-flex justify-content-center"},n("p",{class:"mt-3 confirm-title text-center font-weight-bold px-5"},"Successfully updated superannuation details")),n("div",{class:"mt-2 text-center"},n("p",{class:"confirm-text mb-0"},"Your superannuation details have been updated successfully."),n("br",null),n("p",{class:"confirm-text mb-0"},"To continue with your onboarding, press ",n("strong",null,"Continue")," below."))),n("div",{class:"flex-grow-1 mt-4"},n("fl-promise-button",{isBlockElement:!0,onClick:this.handleContinueButtonClick},n("span",null,"Continue")))))))}handleContinueButtonClick(t){Zt.completeSuperSelectionFlow()}},Hn=class{constructor(n){t(this,n),this.joinFundClicked=e(this,"joinFundClicked",7),this.eventTrackingService=fn.Instance}render(){return n(o,{class:{"d-flex p-3 fund-item":!0,"ss-picked-fund":this.isSelected}},n("div",{class:"card-body py-0 px-0 px-xl-3"},this.isSelected&&n("div",{class:"px-3 py-2 text-white promoted-picked-block position-absolute"},"You picked"),n("div",{class:"d-flex flex-fill flex-column align-items-center"},n("div",{class:"d-flex justify-content-end w-100"},n("div",{class:"text-muted small border rounded-sm px-1 mt-n2 mr-n2 mb-1"},"Advertised")),n("img",{class:"ss-choice-logo",alt:this.name,src:s("assets/"+this.logo)}),n("p",{class:"font-weight-bold text-center mt-3 mb-0"},this.name),this.subText&&n("span",{class:"text-muted small text-center font-italic"},this.subText),n("div",{class:"mt-3"},JSON.parse(this.features).map((t=>n("p",{class:"text-center"},t.value)))),this.featureSubText&&n("p",{class:"small text-muted text-center font-italic"},this.featureSubText))),n("div",{class:"text-center bottom-half-fund-tile"},n("div",{class:"p-3"},n("fl-button",{class:"uuid-button-continue",isBlockElement:!0,onClick:()=>this.handleFundClick()},"Choose this fund")),n("div",{class:"mb-2"},n("a",{target:"_blank",href:this.pdsLink,onClick:()=>this.pdsViewedAsync()},this.pdsLinkText?this.pdsLinkText:"View the PDS")),this.disclaimer,n("div",{class:"small text-muted"},this.abnInfo,n("br",null),this.abn?"ABN: "+this.abn:"")))}handleFundClick(){return this.joinFundClicked.emit()}pdsViewedAsync(){return this.eventTrackingService.TrackSuperFundPdsViewedAsync({fundUsi:this.usi,fundName:this.name,pageName:"Panel Fund Page"})}static get assetsDirs(){return["assets"]}};Hn.style="html{scroll-behavior:smooth}img.fluid-fit{-o-object-fit:cover;object-fit:cover}.checkbox-container{border-radius:4px;background-color:#f5f4f2}.confirm-checkbox-item{-webkit-transform:scale(1.7);transform:scale(1.7)}.simple-choices-text{color:#489882}.choice-card{background:#ffffff;-webkit-box-shadow:0 1px 4px rgba(0, 0, 0, 0.25);box-shadow:0 1px 4px rgba(0, 0, 0, 0.25);border-radius:3px}.choice-card.ss-picked-fund{border:2px solid var(--fl-color-primary)}.card.ss-picked-fund{border:2px solid var(--fl-color-primary)}.ss-choice-logo{width:auto;max-height:70px;-o-object-fit:contain;object-fit:contain}img{width:100%;display:block}.choice-component{width:100%;position:relative}.flexible{-ms-flex-positive:1;flex-grow:1}.fund-item{margin-top:1rem}.promoted-picked-block{background-color:var(--fl-color-primary);border-bottom-right-radius:3px;left:0;top:0}@media (min-width: 992px){.bottom-half-fund-tile{height:250px}}";const Wn="https://slate.co/pds/?utm_source=flare&utm_medium=superselection",$n="https://www.australianretirementtrust.com.au/library/media/pdfs/pds/super-savings-product-disclosure-statement-and-membership-form.pdf",Xn="https://aware.com.au/member/forms-and-resources/pds/FSS",Jn=[{dtoPropName:"slate",id:"slate"},{dtoPropName:"australianRetirementTrust",id:"australian-retirement-trust"},{dtoPropName:"aware",id:"aware"},{dtoPropName:"active",id:"active"}],Gn=new class{async GetChosenFundAsync(){var t,n;const e=null===(t=Zt.superBuyer.superChoice)||void 0===t?void 0:t.choiceDetails;if(!e)return L;if("promoted"in e){const t=Jn.find((t=>t.dtoPropName in e.promoted)),i=null!==(n=null==t?void 0:t.id)&&void 0!==n?n:"";return q({isPromoted:!0,promotedId:i})}if("smsf"in e)return q({isPromoted:!1,name:e.smsf.fundName,type:"Self Managed Fund"});if("myOwnFund"in e){const t=e.myOwnFund.usi,n=await this.getFundByUsiAsync(t);return q({isPromoted:!1,name:O(n)?n.value.productName:t,type:"My Own Fund"})}if("default"in e){const t=e.default.usi,n=await this.getFundByUsiAsync(t);return q({isPromoted:!1,name:O(n)?n.value.productName:t,type:"Default Fund"})}return L}getFundByUsiAsync(t){return cn.getFundByUsiAsync(t)}},Kn=class{constructor(n){t(this,n),this.promotedFunds=this.getPromotedFunds(),this.chosenFund=L,this.eventTrackingService=fn.Instance,this.isPromotedFundSelected=t=>O(this.chosenFund)&&this.chosenFund.value.isPromoted&&this.chosenFund.value.promotedId===t}componentDidLoad(){yt();const t=this.promotedFunds.map((t=>t.fundId));this.eventTrackingService.TrackSuperFundPanelViewedAsync({promotedFundsShown:t})}async componentWillLoad(){this.chosenFund=await Gn.GetChosenFundAsync()}render(){return n(o,null,n("div",{class:"container mt-0 mb-0"},n("div",{class:"row justify-content-center"},n("div",{class:"col"},n("h3",{class:"mt-3 font-weight-bold text-center mb-4"},"Choose your Super"))),n("div",{class:"row justify-content-center"},n("div",{class:"col"},n("p",{class:"text-center font-weight-bold"},"The choice of superannuation fund is an important personal financial decision. It is open to you to continue with your existing fund, or alternatively, you can select from one of the funds below or choose another fund. Flare is not licensed to advise you in relation to this decision and you may wish to return to this page at a later stage."),n("p",{class:"text-center"},"The content on this page and on the following pages relating to each super fund is provided by the trustee or promoter of the super fund. The super funds presented have not been selected by your employer and neither your employer or Flare are making any recommendation or opinion."),n("p",{class:"text-center"},"There are many super funds out there and you should consider the relevant product disclosure statement and choose one that is right for you. If you are unsure, obtain your own advice. You can choose your super fund later, if you need time to obtain advice."))),n("div",{class:"row"},n("div",{class:"col"},n("sss-notifications-section",null))),n("div",{class:"row justify-content-center mt-4"},n("div",{class:"col col-sm-10 col-md-8 col-xl-7"},n("div",{class:"row"},n("div",{class:"col"},n("div",{class:"d-flex flex-fill"},O(this.chosenFund)&&!this.chosenFund.value.isPromoted&&n("sss-selected-super-choice-section",{fundType:this.chosenFund.value.type,fundName:this.chosenFund.value.name,class:"flex-fill position-relative"})))),n("div",{class:"row mt-3 justify-content-center"},this.getPromotedFunds().map((t=>n("div",{class:"col-12 col-lg-6 d-flex"},n("sss-super-choice-item",{class:"card mb-3 mb-lg-0 mx-0 flex-grow-1",logo:t.logo,isSelected:this.isPromotedFundSelected(t.fundId),usi:t.usi,name:t.name,subText:t.subText,pdsLinkText:t.pdsLinkText,pdsLink:tn.toExternalUrl(t.pdsLink),features:JSON.stringify(t.features),featureSubText:t.featureSubText,disclaimer:t.disclaimer,abnInfo:t.abnInfo,abn:t.abn,onJoinFundClicked:async()=>this.handleJoinSuperClickAsync(t)}))))),n("div",{class:"row mt-3 px-3"},n("div",{class:"col p-4 border rounded bg-light"},n("div",{class:"row"},n("div",{class:"col"},n("h5",{class:"font-weight-bold"},"Choose another super fund"),n("p",{class:"mb-1"},"Select this option if you'd like to use your current account with another super fund."),n("ul",{class:"ml-n3"},n("li",null,"If you are unsure of your current super fund details, you can find out at"," ",n("a",{target:"_blank",href:tn.toExternalUrl("https://my.gov.au")},"my.gov.au")),n("li",{class:"mt-1"},"A full list of super funds can be viewed at"," ",n("a",{target:"_blank",href:tn.toExternalUrl("https://www.apra.gov.au/register-of-superannuation-institutions")},"www.apra.gov.au/register-of-superannuation-institutions"))))),n("div",{class:"row"},n("div",{class:"col"},n("stencil-route-link",{url:nn.MyOwnFund},n("fl-button",{isBlockElement:!0,variant:"primary",class:"d-lg-none"},"Choose another fund"),n("div",{class:"mt-n3 d-none d-lg-flex justify-content-end align-items-end"},n("fl-button",{variant:"primary"},"Choose another fund"))))))))),n("div",{class:"row justify-content-center mt-5"},n("div",{class:"col"},n("p",{class:"text-center"},"You should be aware that, if you do choose one of these advertised funds, Flare and its associated entities will normally receive a fee for you doing so.")))))}allFunds(){return[{fundId:"slate",usi:"32367272075001",name:"Slate Super",logo:"logo-slate.png",route:nn.SlateJoin,pdsLink:Wn,features:[{order:1,value:"A lifestage investment strategy that evolves with you"},{order:2,value:"Advanced mobile app with retirement forecast and smart features"},{order:3,value:"Member advocates at Slate to assist with your account"}],disclaimer:n("p",{class:"small text-muted"},"You should consider the"," ",n("a",{target:"_blank",href:tn.toExternalUrl(Wn),onClick:()=>this.pdsViewedAsync("Slate Super","32367272075001")},"Product Disclosure Statement")," ","and"," ",n("a",{target:"_blank",href:tn.toExternalUrl("https://slate.co/forms-and-documents/target-market-determination/")},"Target Market Determination")," ","before deciding to invest in or apply to become a member of the fund."),abnInfo:"Diversa Trustees Limited",abn:"49 006 421 638"},{fundId:"australian-retirement-trust",name:"Australian Retirement Trust",subText:"QSuper is now part of Australian Retirement Trust. If you have an existing QSuper account, you will continue to hold that account by selecting this option.",logo:"logo-art.svg",route:nn.PromotedFundJoin,pdsLink:$n,features:[{order:1,value:"$200 billion in retirement savings"},{order:2,value:"2+ million members"},{order:3,value:"A focus on delivering strong, long‑term returns"}],disclaimer:n("p",{class:"small text-muted"},"You should consider the"," ",n("a",{target:"_blank",href:tn.toExternalUrl($n),onClick:()=>this.pdsViewedAsync("Australian Retirement Trust")},"Product Disclosure Statement")," ","before deciding to invest in or apply to become a member of this fund."),abnInfo:"Australian Retirement Trust",abn:"60 905 115 063"},{fundId:"aware",name:"Aware Super",subText:"An industry fund for all",logo:"logo-aware.svg",route:nn.PromotedFundJoin,pdsLinkText:"View the PDS and TMD",pdsLink:Xn,features:[{order:1,value:"Acting on climate change"},{order:2,value:"All profits go to members"},{order:3,value:"One of Australia’s largest funds"}],disclaimer:n("p",{class:"small text-muted"},"You should consider the"," ",n("a",{target:"_blank",href:tn.toExternalUrl(Xn),onClick:()=>this.pdsViewedAsync("Aware Super")},"Product Disclosure Statement")," ","before deciding to invest in or apply to become a member of this fund."),abnInfo:"Aware Super Pty Ltd",abn:"53 226 460 365"},{fundId:"active",name:"Active Super",logo:"logo-active.svg",route:nn.PromotedFundJoin,pdsLinkText:"View the PDS",pdsLink:"https://www.activesuper.com.au/pds",features:[{order:1,value:"One of Canstar's top-performing funds*"},{order:2,value:"Recognised as a leader in responsible investment"},{order:3,value:"Calls answered in 20 seconds (average over 5 years)"}],featureSubText:"*Past performance does not indicate future performance. As at 22/4/22, Active Super ranked in Canstar’s top 5 funds for 18-49 year-olds with balances up to $250K based on returns over 5 years in Accumulation Scheme.",disclaimer:n("p",{class:"small text-muted"},"Issued by LGSS Pty Limited as trustee for Local Government Super (Active Super ABN:28 901 371 321). Consider the PDS and TMD at"," ",n("a",{target:"_blank",onClick:()=>this.pdsViewedAsync("Active Super"),href:tn.toExternalUrl("https://www.activesuper.com.au/pds")},"activesuper.com.au")," ","before making a decision.")}]}getPromotedFunds(){const t=[];return Zt.promotedFunds.forEach((n=>{const e=this.allFunds().find((t=>n==t.fundId));void 0!==e&&t.push(e)})),t}async handleJoinSuperClickAsync(t){const n=Zt.promotedFunds;return"slate"===t.fundId?await this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({fundUsi:"32367272075001",fundName:"Slate Super",promotedFundId:"slate",promotedFundsShown:n}):"australian-retirement-trust"===t.fundId?(await this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({fundName:"Australian Retirement Trust",promotedFundId:"australian-retirement-trust",promotedFundsShown:n}),xn.fundId=t.fundId):"aware"===t.fundId?(await this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({fundName:"Aware Super",promotedFundId:"aware",promotedFundsShown:n}),xn.fundId=t.fundId):"active"===t.fundId&&(await this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({fundName:"Active Super",promotedFundId:"active",promotedFundsShown:n}),xn.fundId=t.fundId),tn.navigateInternally(this.history,t.route)}pdsViewedAsync(t,n){return this.eventTrackingService.TrackSuperFundPdsViewedAsync({fundUsi:n,fundName:t,pageName:"Panel Fund Page"})}static get assetsDirs(){return["assets"]}};Kn.style="html{scroll-behavior:smooth}img.fluid-fit{-o-object-fit:cover;object-fit:cover}.checkbox-container{border-radius:4px;background-color:#f5f4f2}.confirm-checkbox-item{-webkit-transform:scale(1.7);transform:scale(1.7)}.simple-choices-text{color:#489882}.choice-card{background:#ffffff;-webkit-box-shadow:0 1px 4px rgba(0, 0, 0, 0.25);box-shadow:0 1px 4px rgba(0, 0, 0, 0.25);border-radius:3px}.choice-card.ss-picked-fund{border:2px solid var(--fl-color-primary)}.card.ss-picked-fund{border:2px solid var(--fl-color-primary)}.ss-choice-logo{width:auto;max-height:70px;-o-object-fit:contain;object-fit:contain}img{width:100%;display:block}.choice-component{width:100%;position:relative}.flexible{-ms-flex-positive:1;flex-grow:1}.fund-item{margin-top:1rem}.promoted-picked-block{background-color:var(--fl-color-primary);border-bottom-right-radius:3px;left:0;top:0}@media (min-width: 992px){.bottom-half-fund-tile{height:250px}}";const Yn=class{constructor(n){t(this,n),this.group=null,this.match=null,this.componentProps={},this.exact=!1,this.scrollOnNextRender=!1,this.previousMatch=null}computeMatch(t){const n=null!=this.group||null!=this.el.parentElement&&"stencil-route-switch"===this.el.parentElement.tagName.toLowerCase();if(t&&!n)return this.previousMatch=this.match,this.match=lt(t.pathname,{path:this.url,exact:this.exact,strict:!0})}async loadCompleted(){let t={};var n,e;this.history&&this.history.location.hash?t={scrollToId:this.history.location.hash.substr(1)}:this.scrollTopOffset&&(t={scrollTopOffset:this.scrollTopOffset}),"function"==typeof this.componentUpdated?this.componentUpdated(t):!this.match||(e=this.previousMatch,null==(n=this.match)&&null==e||null!=e&&n&&e&&n.path===e.path&&n.url===e.url&&st(n.params,e.params))||!this.routeViewsUpdated||this.routeViewsUpdated(t)}async componentDidUpdate(){await this.loadCompleted()}async componentDidLoad(){await this.loadCompleted()}render(){if(!this.match||!this.history)return null;const t=Object.assign({},this.componentProps,{history:this.history,match:this.match});return this.routeRender?this.routeRender(Object.assign({},t,{component:this.component})):this.component?n(this.component,Object.assign({},t)):void 0}get el(){return a(this)}static get watchers(){return{location:["computeMatch"]}}};A.injectProps(Yn,["location","history","historyType","routeViewsUpdated"]),Yn.style="stencil-route.inactive{display:none}";const Qn=(t,n,e)=>e(t.confirm(n)),Zn=(t,n)=>{const e=t[n],i="__storage_test__";try{return e.setItem(i,i),e.removeItem(i),!0}catch(t){return t instanceof DOMException&&(22===t.code||1014===t.code||"QuotaExceededError"===t.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.name)&&0!==e.length}},te=class{constructor(n){t(this,n),this.unsubscribe=()=>{},this.activeClass="link-active",this.exact=!1,this.strict=!0,this.custom="a",this.match=null}componentWillLoad(){this.computeMatch()}computeMatch(){this.location&&(this.match=lt(this.location.pathname,{path:this.urlMatch||this.url,exact:this.exact,strict:this.strict}))}handleClick(t){var n,e,i;if(!((n=t).metaKey||n.altKey||n.ctrlKey||n.shiftKey)&&this.history&&this.url&&this.root)return t.preventDefault(),this.history.push((i=this.root,"/"==(e=this.url).charAt(0)&&"/"==i.charAt(i.length-1)?i.slice(0,i.length-1)+e:i+e))}render(){let t={class:{[this.activeClass]:null!==this.match},onClick:this.handleClick.bind(this)};return this.anchorClass&&(t.class[this.anchorClass]=!0),"a"===this.custom&&(t=Object.assign({},t,{href:this.url,title:this.anchorTitle,role:this.anchorRole,tabindex:this.anchorTabIndex,"aria-haspopup":this.ariaHaspopup,id:this.anchorId,"aria-posinset":this.ariaPosinset,"aria-setsize":this.ariaSetsize,"aria-label":this.ariaLabel})),n(this.custom,Object.assign({},t),n("slot",null))}get el(){return a(this)}static get watchers(){return{location:["computeMatch"]}}};A.injectProps(te,["history","location","root"]);const ne=t=>"STENCIL-ROUTE"===t.tagName,ee=class{constructor(n){t(this,n),this.group=((1e17*Math.random()).toString().match(/.{4}/g)||[]).join("-"),this.subscribers=[],this.queue=u(this,"queue")}componentWillLoad(){null!=this.location&&this.regenerateSubscribers(this.location)}async regenerateSubscribers(t){if(null==t)return;let n=-1;if(this.subscribers=Array.prototype.slice.call(this.el.children).filter(ne).map(((e,i)=>{const r=lt(t.pathname,{path:e.url,exact:e.exact,strict:!0});return r&&-1===n&&(n=i),{el:e,match:r}})),-1===n)return;if(this.activeIndex===n)return void(this.subscribers[n].el.match=this.subscribers[n].match);this.activeIndex=n;const e=this.subscribers[this.activeIndex];this.scrollTopOffset&&(e.el.scrollTopOffset=this.scrollTopOffset),e.el.group=this.group,e.el.match=e.match,e.el.componentUpdated=t=>{this.queue.write((()=>{this.subscribers.forEach(((t,n)=>{if(t.el.componentUpdated=void 0,n===this.activeIndex)return t.el.style.display="";this.scrollTopOffset&&(t.el.scrollTopOffset=this.scrollTopOffset),t.el.group=this.group,t.el.match=null,t.el.style.display="none"}))})),this.routeViewsUpdated&&this.routeViewsUpdated(Object.assign({scrollTopOffset:this.scrollTopOffset},t))}}render(){return n("slot",null)}get el(){return a(this)}static get watchers(){return{location:["regenerateSubscribers"]}}};A.injectProps(ee,["location","routeViewsUpdated"]);const ie=(t,...n)=>{t||console.warn(...n)},re=()=>{let t,n=[];return{setPrompt:n=>(ie(null==t,"A history supports only one prompt at a time"),t=n,()=>{t===n&&(t=null)}),confirmTransitionTo:(n,e,i,r)=>{if(null!=t){const o="function"==typeof t?t(n,e):t;"string"==typeof o?"function"==typeof i?i(o,r):(ie(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),r(!0)):r(!1!==o)}else r(!0)},appendListener:t=>{let e=!0;const i=(...n)=>{e&&t(...n)};return n.push(i),()=>{e=!1,n=n.filter((t=>t!==i))}},notifyListeners:(...t)=>{n.forEach((n=>n(...t)))}}},oe=(t,n="scrollPositions")=>{let e=new Map;const i=(n,i)=>{if(e.set(n,i),Zn(t,"sessionStorage")){const n=[];e.forEach(((t,e)=>{n.push([e,t])})),t.sessionStorage.setItem("scrollPositions",JSON.stringify(n))}};if(Zn(t,"sessionStorage")){const i=t.sessionStorage.getItem(n);e=i?new Map(JSON.parse(i)):e}return"scrollRestoration"in t.history&&(history.scrollRestoration="manual"),{set:i,get:t=>e.get(t),has:t=>e.has(t),capture:n=>{i(n,[t.scrollX,t.scrollY])}}},se={hashbang:{encodePath:t=>"!"===t.charAt(0)?t:"!/"+nt(t),decodePath:t=>"!"===t.charAt(0)?t.substr(1):t},noslash:{encodePath:nt,decodePath:tt},slash:{encodePath:tt,decodePath:tt}},ae=(t,n)=>{const e=0==t.pathname.indexOf(n)?"/"+t.pathname.slice(n.length):t.pathname;return Object.assign({},t,{pathname:e})},ue={browser:(t,n={})=>{let e=!1;const i=t.history,r=t.location,o=t.navigator,s=(t=>{const n=t.navigator.userAgent;return(-1===n.indexOf("Android 2.")&&-1===n.indexOf("Android 4.0")||-1===n.indexOf("Mobile Safari")||-1!==n.indexOf("Chrome")||-1!==n.indexOf("Windows Phone"))&&t.history&&"pushState"in t.history})(t),a=!(-1===o.userAgent.indexOf("Trident")),u=oe(t),c=null!=n.forceRefresh&&n.forceRefresh,l=null!=n.getUserConfirmation?n.getUserConfirmation:Qn,f=null!=n.keyLength?n.keyLength:6,d=n.basename?Z(tt(n.basename)):"",h=()=>{try{return t.history.state||{}}catch(t){return{}}},p=t=>{t=t||{};const{key:n,state:e}=t,{pathname:i,search:o,hash:s}=r;let a=i+o+s;return ie(!d||Y(a,d),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+a+'" to begin with "'+d+'".'),d&&(a=Q(a,d)),at(a,e,n||rt(f))},v=re(),m=t=>{u.capture(B.location.key),Object.assign(B,t),B.location.scrollPosition=u.get(B.location.key),B.length=i.length,v.notifyListeners(B.location,B.action)},b=t=>{((t,n)=>void 0===n.state&&-1===t.userAgent.indexOf("CriOS"))(o,t)||g(p(t.state))},w=()=>{g(p(h()))},g=t=>{if(e)e=!1,m();else{const n="POP";v.confirmTransitionTo(t,n,l,(e=>{e?m({action:n,location:t}):y(t)}))}},y=t=>{let n=k.indexOf(B.location.key),i=k.indexOf(t.key);-1===n&&(n=0),-1===i&&(i=0);const r=n-i;r&&(e=!0,_(r))},x=p(h());let k=[x.key],S=0,C=!1;const A=t=>d+et(t),_=t=>{i.go(t)},E=n=>{S+=n,1===S?(t.addEventListener("popstate",b),a&&t.addEventListener("hashchange",w)):0===S&&(t.removeEventListener("popstate",b),a&&t.removeEventListener("hashchange",w))},B={length:i.length,action:"POP",location:x,createHref:A,push:(t,n)=>{ie(!("object"==typeof t&&void 0!==t.state&&void 0!==n),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");const e="PUSH",o=at(t,n,rt(f),B.location);v.confirmTransitionTo(o,e,l,(t=>{if(!t)return;const n=A(o),{key:a,state:u}=o;if(s)if(i.pushState({key:a,state:u},"",n),c)r.href=n;else{const t=k.indexOf(B.location.key),n=k.slice(0,-1===t?0:t+1);n.push(o.key),k=n,m({action:e,location:o})}else ie(void 0===u,"Browser history cannot push state in browsers that do not support HTML5 history"),r.href=n}))},replace:(t,n)=>{ie(!("object"==typeof t&&void 0!==t.state&&void 0!==n),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");const e="REPLACE",o=at(t,n,rt(f),B.location);v.confirmTransitionTo(o,e,l,(t=>{if(!t)return;const n=A(o),{key:a,state:u}=o;if(s)if(i.replaceState({key:a,state:u},"",n),c)r.replace(n);else{const t=k.indexOf(B.location.key);-1!==t&&(k[t]=o.key),m({action:e,location:o})}else ie(void 0===u,"Browser history cannot replace state in browsers that do not support HTML5 history"),r.replace(n)}))},go:_,goBack:()=>_(-1),goForward:()=>_(1),block:(t="")=>{const n=v.setPrompt(t);return C||(E(1),C=!0),()=>(C&&(C=!1,E(-1)),n())},listen:t=>{const n=v.appendListener(t);return E(1),()=>{E(-1),n()}},win:t};return B},hash:(t,n={})=>{let e=!1,i=null,r=0,o=!1;const s=t.location,a=t.history,u=-1===t.navigator.userAgent.indexOf("Firefox"),c=null!=n.keyLength?n.keyLength:6,{getUserConfirmation:l=Qn,hashType:f="slash"}=n,d=n.basename?Z(tt(n.basename)):"",{encodePath:h,decodePath:p}=se[f],v=()=>{const t=s.href,n=t.indexOf("#");return-1===n?"":t.substring(n+1)},m=t=>{const n=s.href.indexOf("#");s.replace(s.href.slice(0,n>=0?n:0)+"#"+t)},b=()=>{let t=p(v());return ie(!d||Y(t,d),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+t+'" to begin with "'+d+'".'),d&&(t=Q(t,d)),at(t,void 0,rt(c))},w=re(),g=t=>{Object.assign(F,t),F.length=a.length,w.notifyListeners(F.location,F.action)},y=()=>{const t=v(),n=h(t);if(t!==n)m(n);else{const t=b(),n=F.location;if(!e&&(r=n).pathname===(o=t).pathname&&r.search===o.search&&r.hash===o.hash&&r.key===o.key&&st(r.state,o.state))return;if(i===et(t))return;i=null,x(t)}var r,o},x=t=>{if(e)e=!1,g();else{const n="POP";w.confirmTransitionTo(t,n,l,(e=>{e?g({action:n,location:t}):k(t)}))}},k=t=>{let n=_.lastIndexOf(et(F.location)),i=_.lastIndexOf(et(t));-1===n&&(n=0),-1===i&&(i=0);const r=n-i;r&&(e=!0,E(r))},S=v(),C=h(S);S!==C&&m(C);const A=b();let _=[et(A)];const E=t=>{ie(u,"Hash history go(n) causes a full page reload in this browser"),a.go(t)},B=(t,n)=>{r+=n,1===r?t.addEventListener("hashchange",y):0===r&&t.removeEventListener("hashchange",y)},F={length:a.length,action:"POP",location:A,createHref:t=>"#"+h(d+et(t)),push:(t,n)=>{ie(void 0===n,"Hash history cannot push state; it is ignored");const e="PUSH",r=at(t,void 0,rt(c),F.location);w.confirmTransitionTo(r,e,l,(t=>{if(!t)return;const n=et(r),o=h(d+n);if(v()!==o){i=n,(t=>{s.hash=t})(o);const t=_.lastIndexOf(et(F.location)),a=_.slice(0,-1===t?0:t+1);a.push(n),_=a,g({action:e,location:r})}else ie(!1,"Hash history cannot PUSH the same path; a new entry will not be added to the history stack"),g()}))},replace:(t,n)=>{ie(void 0===n,"Hash history cannot replace state; it is ignored");const e="REPLACE",r=at(t,void 0,rt(c),F.location);w.confirmTransitionTo(r,e,l,(t=>{if(!t)return;const n=et(r),o=h(d+n);v()!==o&&(i=n,m(o));const s=_.indexOf(et(F.location));-1!==s&&(_[s]=n),g({action:e,location:r})}))},go:E,goBack:()=>E(-1),goForward:()=>E(1),block:(n="")=>{const e=w.setPrompt(n);return o||(B(t,1),o=!0),()=>(o&&(o=!1,B(t,-1)),e())},listen:n=>{const e=w.appendListener(n);return B(t,1),()=>{B(t,-1),e()}},win:t};return F}},ce=class{constructor(n){t(this,n),this.root="/",this.historyType="browser",this.titleSuffix="",this.routeViewsUpdated=(t={})=>{if(this.history&&t.scrollToId&&"browser"===this.historyType){const n=this.history.win.document.getElementById(t.scrollToId);if(n)return n.scrollIntoView()}this.scrollTo(t.scrollTopOffset||this.scrollTopOffset)},this.isServer=u(this,"isServer"),this.queue=u(this,"queue")}componentWillLoad(){this.history=ue[this.historyType](this.el.ownerDocument.defaultView),this.history.listen((t=>{t=ae(t,this.root),this.location=t})),this.location=ae(this.history.location,this.root)}scrollTo(t){const n=this.history;if(null!=t&&!this.isServer&&n)return"POP"===n.action&&Array.isArray(n.location.scrollPosition)?this.queue.write((()=>{n&&n.location&&Array.isArray(n.location.scrollPosition)&&n.win.scrollTo(n.location.scrollPosition[0],n.location.scrollPosition[1])})):this.queue.write((()=>{n.win.scrollTo(0,t)}))}render(){if(this.location&&this.history)return n(A.Provider,{state:{historyType:this.historyType,location:this.location,titleSuffix:this.titleSuffix,root:this.root,history:this.history,routeViewsUpdated:this.routeViewsUpdated}},n("slot",null))}get el(){return a(this)}},le=class{constructor(n){t(this,n),this.stepSubmitSuccess=e(this,"step-completion",7),this.successPageAcknowledged=e(this,"successPageAcknowledged",5),this.initialised=e(this,"initialised",7),this.isAppInitialised=!1}async componentWillLoad(){const t=jt.fromNullable(this.accessToken);if(jt.isNone(t))throw Error("jwt property is missing.");Zt.state.jwt=t;const n=jt.fromNullable(this.backendUrl);if(jt.isNone(n))throw Error("apiBaseUrl property is missing.");Zt.state.apiBaseUrl=jt.some(n.value.replace(/\/$/,"")+"/");const e=jt.fromNullable(this.appBaseUrl);if(jt.isNone(e))throw Error("appBaseUrl property is missing.");Zt.state.appBaseUrl=jt.some(e.value.replace(/\/$/,"")),Zt.onChange("hasSuccessPageBeenAcknowledged",(()=>this.successPageAcknowledged.emit())),Zt.onChange("hasSuperSelectionBeenSubmitted",(t=>{t&&(this.stepSubmitSuccess.emit(),Zt.state.hasSuperSelectionBeenSubmitted=!1)}))}async componentDidLoad(){await Zt.loadAppStateAsync(),this.isAppInitialised=!0,this.initialised.emit({accountIdOrDefault:Zt.accountIdOrDefault,partnerIdOrDefault:Zt.partnerIdOrDefault,profileId:Zt.profileId})}authTokenChanged(t){Zt.state.jwt=jt.fromNullable(t)}onRouteChange(){null===window||void 0===window||window.scroll(0,0)}render(){return n(o,{class:"d-flex justify-content-center flex-grow-1"},n("div",{class:"d-flex flex-column justify-content-between"},this.renderAppContent()))}routerBaseUrl(){var t;return(null===(t=this.appBaseUrl)||void 0===t?void 0:t.replace(/\/$/,""))+"/"}renderAppContent(){return n("stencil-router",{root:this.routerBaseUrl()},n("stencil-route-switch",{scrollTopOffset:0},n("div",{class:"d-flex flex-column"},n("div",{class:"d-flex justify-content-center"},this.isAppInitialised?en:n("fl-loading-indicator",{class:"mt-5"})),n("div",{class:"d-flex justify-content-center"},n("sss-footer-section",null)))))}static get watchers(){return{accessToken:["authTokenChanged"],location:["onRouteChange"]}}};H(le),le.style="html{scroll-behavior:smooth}img.fluid-fit{-o-object-fit:cover;object-fit:cover}stencil-route{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto}stencil-route:empty{display:none}";var fe,de=[],he="ResizeObserver loop completed with undelivered notifications.";!function(t){t.BORDER_BOX="border-box",t.CONTENT_BOX="content-box",t.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"}(fe||(fe={}));var pe,ve=function(t){return Object.freeze(t)},me=function(t,n){this.inlineSize=t,this.blockSize=n,ve(this)},be=function(){function t(t,n,e,i){return this.x=t,this.y=n,this.width=e,this.height=i,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,ve(this)}return t.prototype.toJSON=function(){var t=this;return{x:t.x,y:t.y,top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.width,height:t.height}},t.fromRect=function(n){return new t(n.x,n.y,n.width,n.height)},t}(),we=function(t){return t instanceof SVGElement&&"getBBox"in t},ge=function(t){if(we(t)){var n=t.getBBox();return!n.width&&!n.height}return!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},ye=function(t){var n,e,i=null===(e=null===(n=t)||void 0===n?void 0:n.ownerDocument)||void 0===e?void 0:e.defaultView;return!!(i&&t instanceof i.Element)},xe="undefined"!=typeof window?window:{},ke=new WeakMap,Se=/auto|scroll/,Ce=/^tb|vertical/,Ae=/msie|trident/i.test(xe.navigator&&xe.navigator.userAgent),_e=function(t){return parseFloat(t||"0")},Ee=function(t,n,e){return void 0===t&&(t=0),void 0===n&&(n=0),void 0===e&&(e=!1),new me((e?n:t)||0,(e?t:n)||0)},Be=ve({devicePixelContentBoxSize:Ee(),borderBoxSize:Ee(),contentBoxSize:Ee(),contentRect:new be(0,0,0,0)}),Fe=function(t,n){if(void 0===n&&(n=!1),ke.has(t)&&!n)return ke.get(t);if(ge(t))return ke.set(t,Be),Be;var e=getComputedStyle(t),i=we(t)&&t.ownerSVGElement&&t.getBBox(),r=!Ae&&"border-box"===e.boxSizing,o=Ce.test(e.writingMode||""),s=!i&&Se.test(e.overflowY||""),a=!i&&Se.test(e.overflowX||""),u=i?0:_e(e.paddingTop),c=i?0:_e(e.paddingRight),l=i?0:_e(e.paddingBottom),f=i?0:_e(e.paddingLeft),d=i?0:_e(e.borderTopWidth),h=i?0:_e(e.borderRightWidth),p=i?0:_e(e.borderBottomWidth),v=f+c,m=u+l,b=(i?0:_e(e.borderLeftWidth))+h,w=d+p,g=a?t.offsetHeight-w-t.clientHeight:0,y=s?t.offsetWidth-b-t.clientWidth:0,x=r?v+b:0,k=r?m+w:0,S=i?i.width:_e(e.width)-x-y,C=i?i.height:_e(e.height)-k-g,A=S+v+y+b,_=C+m+g+w,E=ve({devicePixelContentBoxSize:Ee(Math.round(S*devicePixelRatio),Math.round(C*devicePixelRatio),o),borderBoxSize:Ee(A,_,o),contentBoxSize:Ee(S,C,o),contentRect:new be(f,u,S,C)});return ke.set(t,E),E},je=function(t,n,e){var i=Fe(t,e),r=i.borderBoxSize,o=i.contentBoxSize,s=i.devicePixelContentBoxSize;switch(n){case fe.DEVICE_PIXEL_CONTENT_BOX:return s;case fe.BORDER_BOX:return r;default:return o}},Ie=function(t){var n=Fe(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=ve([n.borderBoxSize]),this.contentBoxSize=ve([n.contentBoxSize]),this.devicePixelContentBoxSize=ve([n.devicePixelContentBoxSize])},Me=function(t){if(ge(t))return 1/0;for(var n=0,e=t.parentNode;e;)n+=1,e=e.parentNode;return n},Te=function(){var t=1/0,n=[];de.forEach((function(e){if(0!==e.activeTargets.length){var i=[];e.activeTargets.forEach((function(n){var e=new Ie(n.target),r=Me(n.target);i.push(e),n.lastReportedSize=je(n.target,n.observedBox),r<t&&(t=r)})),n.push((function(){e.callback.call(e.observer,i,e.observer)})),e.activeTargets.splice(0,e.activeTargets.length)}}));for(var e=0,i=n;e<i.length;e++)(0,i[e])();return t},Pe=function(t){de.forEach((function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach((function(e){e.isActive()&&(Me(e.target)>t?n.activeTargets.push(e):n.skippedTargets.push(e))}))}))},Re=[],Ne=0,De={attributes:!0,characterData:!0,childList:!0,subtree:!0},Oe=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Ue=function(t){return void 0===t&&(t=0),Date.now()+t},Le=!1,qe=new(function(){function t(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return t.prototype.run=function(t){var n=this;if(void 0===t&&(t=250),!Le){Le=!0;var e,i=Ue(t);e=function(){var e=!1;try{e=function(){var t,n=0;for(Pe(n);de.some((function(t){return t.activeTargets.length>0}));)n=Te(),Pe(n);return de.some((function(t){return t.skippedTargets.length>0}))&&("function"==typeof ErrorEvent?t=new ErrorEvent("error",{message:he}):((t=document.createEvent("Event")).initEvent("error",!1,!1),t.message=he),window.dispatchEvent(t)),n>0}()}finally{if(Le=!1,t=i-Ue(),!Ne)return;e?n.run(1e3):t>0?n.run(t):n.start()}},function(t){if(!pe){var n=0,e=document.createTextNode("");new MutationObserver((function(){return Re.splice(0).forEach((function(t){return t()}))})).observe(e,{characterData:!0}),pe=function(){e.textContent=""+(n?n--:n++)}}Re.push(t),pe()}((function(){requestAnimationFrame(e)}))}},t.prototype.schedule=function(){this.stop(),this.run()},t.prototype.observe=function(){var t=this,n=function(){return t.observer&&t.observer.observe(document.body,De)};document.body?n():xe.addEventListener("DOMContentLoaded",n)},t.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Oe.forEach((function(n){return xe.addEventListener(n,t.listener,!0)})))},t.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),Oe.forEach((function(n){return xe.removeEventListener(n,t.listener,!0)})),this.stopped=!0)},t}()),ze=function(t){!Ne&&t>0&&qe.start(),!(Ne+=t)&&qe.stop()},Ve=function(){function t(t,n){this.target=t,this.observedBox=n||fe.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return t.prototype.isActive=function(){var t,n=je(this.target,this.observedBox,!0);return we(t=this.target)||function(t){switch(t.tagName){case"INPUT":if("image"!==t.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1}(t)||"inline"!==getComputedStyle(t).display||(this.lastReportedSize=n),this.lastReportedSize.inlineSize!==n.inlineSize||this.lastReportedSize.blockSize!==n.blockSize},t}(),He=function(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n},We=new WeakMap,$e=function(t,n){for(var e=0;e<t.length;e+=1)if(t[e].target===n)return e;return-1},Xe=function(){function t(){}return t.connect=function(t,n){var e=new He(t,n);We.set(t,e)},t.observe=function(t,n,e){var i=We.get(t),r=0===i.observationTargets.length;$e(i.observationTargets,n)<0&&(r&&de.push(i),i.observationTargets.push(new Ve(n,e&&e.box)),ze(1),qe.schedule())},t.unobserve=function(t,n){var e=We.get(t),i=$e(e.observationTargets,n);i>=0&&(1===e.observationTargets.length&&de.splice(de.indexOf(e),1),e.observationTargets.splice(i,1),ze(-1))},t.disconnect=function(t){var n=this,e=We.get(t);e.observationTargets.slice().forEach((function(e){return n.unobserve(t,e.target)})),e.activeTargets.splice(0,e.activeTargets.length)},t}(),Je=function(){function t(t){if(0===arguments.length)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof t)throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Xe.connect(this,t)}return t.prototype.observe=function(t,n){if(0===arguments.length)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!ye(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Xe.observe(this,t,n)},t.prototype.unobserve=function(t){if(0===arguments.length)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!ye(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Xe.unobserve(this,t)},t.prototype.disconnect=function(){Xe.disconnect(this)},t.toString=function(){return"function ResizeObserver () { [polyfill code] }"},t}();const Ge=new class{constructor(){this._appRootUrl=new V((()=>this.resolveRootUrl())),this.getAppRootUrl=()=>this._appRootUrl.value,this.getAppHostUrl=()=>`${window.location.origin}${this.getAppRootUrl()}`.replace(/\/$/,"")}async loadConfigurationAsync(){const t=await Gt(this.getAppRootUrl()+"config.json").get().json();Tn.update({appConfiguration:jt.fromNullable(t)})}resolveRootUrl(){const t=jt.fromNullable(window.location.pathname.match(/^\/super-selection\/embed\/v1.0\/app/));if(jt.isNone(t))throw Error("Unsupported host URL");return t.value[0]+"/"}};function Ke(){return"undefined"!=typeof globalThis&&globalThis?globalThis:"undefined"!=typeof self&&self?self:"undefined"!=typeof window&&window?window:"undefined"!=typeof global&&global?global:null}function Ye(t){var n=Object.create;if(n)return n(t);if(null==t)return{};var e=typeof t;if("object"!==e&&"function"!==e)throw new TypeError("Object prototype may only be an Object:"+t);function i(){}return i.prototype=t,new i}var Qe,Ze,ti=function(t,n){return(ti=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)n.hasOwnProperty(e)&&(t[e]=n[e])})(t,n)},ni=Ke()||{};Ze=function(t,n){function e(){this.constructor=t}ti(t,n),t.prototype=null===n?Ye(n):(e.prototype=n.prototype,new e)},(Qe=ni).__assign||(Qe.__assign=Object.assign||function(t){for(var n,e=1,i=arguments.length;e<i;e++)for(var r in n=arguments[e])Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t}),Qe.__extends||(Qe.__extends=Ze),__assign||(__assign=ni.__assign),__extends||(__extends=ni.__extends);var ei=Ke;function ii(t){var n=ei();return n&&n[t]?n[t]:"window"===t&&ri()?window:null}function ri(){return Boolean("object"==typeof window&&window)}function oi(){return ri()?window:ii("window")}function si(){return Boolean("object"==typeof document&&document)}function ai(){return si()?document:ii("document")}function ui(){return Boolean("object"==typeof navigator&&navigator)?navigator:ii("navigator")}function ci(){return"object"==typeof location&&location?location:ii("location")}function li(){return ii("performance")}function fi(){return Boolean("object"==typeof JSON&&JSON||null!==ii("JSON"))}function di(){return fi()?JSON||ii("JSON"):null}var hi=null,pi=!1,vi=123456789,mi=987654321;function bi(t){t<0&&(t>>>=0),vi=123456789+t&4294967295,mi=987654321-t&4294967295,pi=!0}function wi(){bi(4294967296*Math.random()^(new Date).getTime())}function gi(t,n){return typeof t===n}function yi(t){return gi(t,"undefined")||void 0===t}function xi(t){return yi(t)||null===t}function ki(t,n){return t&&Object.prototype.hasOwnProperty.call(t,n)}function Si(t){return gi(t,"object")}function Ci(t){return gi(t,"function")}function Ai(t,n,e,i){void 0===i&&(i=!1);var r=!1;if(!xi(t))try{xi(t.addEventListener)?xi(t.attachEvent)||(t.attachEvent("on"+n,e),r=!0):(t.addEventListener(n,e,i),r=!0)}catch(t){}return r}function _i(t,n,e,i){if(void 0===i&&(i=!1),!xi(t))try{xi(t.removeEventListener)?xi(t.detachEvent)||t.detachEvent("on"+n,e):t.removeEventListener(n,e,i)}catch(t){}}function Ei(t,n){if(t&&Si(t))for(var e in t)ki(t,e)&&n.call(t,e,t[e])}var Bi,Fi=function(){function t(){}return t.isDate=function(t){return"[object Date]"===Object.prototype.toString.call(t)},t.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)},t.isError=function(t){return"[object Error]"===Object.prototype.toString.call(t)},t.isString=function(t){return gi(t,"string")},t.isNumber=function(t){return gi(t,"number")},t.isBoolean=function(t){return gi(t,"boolean")},t.disableCookies=function(){t._canUseCookies=!1},t.newGuid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(ji,(function(n){var e=0|t.randomValue(15);return("x"===n?e:3&e|8).toString(16)}))},t.toISOString=function(n){if(t.isDate(n)){var e=function(t){var n=String(t);return 1===n.length&&(n="0"+n),n};return n.getUTCFullYear()+"-"+e(n.getUTCMonth()+1)+"-"+e(n.getUTCDate())+"T"+e(n.getUTCHours())+":"+e(n.getUTCMinutes())+":"+e(n.getUTCSeconds())+"."+String((n.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}},t.arrForEach=function(t,n,e){for(var i=t.length,r=0;r<i;r++)r in t&&n.call(e||t,t[r],r,t)},t.arrIndexOf=function(t,n,e){for(var i=t.length,r=e||0,o=Math.max(r>=0?r:i-Math.abs(r),0);o<i;o++)if(o in t&&t[o]===n)return o;return-1},t.arrMap=function(t,n,e){for(var i=t.length,r=e||t,o=new Array(i),s=0;s<i;s++)s in t&&(o[s]=n.call(r,t[s],t));return o},t.arrReduce=function(t,n,e){var i,r=t.length,o=0;if(arguments.length>=3)i=arguments[2];else{for(;o<r&&!(o in t);)o++;i=t[o++]}for(;o<r;)o in t&&(i=n(i,t[o],o,t)),o++;return i},t.strTrim=function(n){return t.isString(n)?n.replace(/^\s+|\s+$/g,""):n},t.objKeys=function(t){var n=!{toString:null}.propertyIsEnumerable("toString");if(!(Ci(t)||Si(t)&&null!==t))throw new TypeError("objKeys called on non-object");var e=[];for(var i in t)ki(t,i)&&e.push(i);if(n)for(var r=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],o=r.length,s=0;s<o;s++)ki(t,r[s])&&e.push(r[s]);return e},t.objDefineAccessors=function(t,n,e,i){var r=Object.defineProperty;if(r)try{var o={enumerable:!0,configurable:!0};return e&&(o.get=e),i&&(o.set=i),r(t,n,o),!0}catch(t){}return!1},t.addEventHandler=function(t,n){var e=!1,i=oi();i&&(e=Ai(i,t,n),e=Ai(i.body,t,n)||e);var r=ai();return r&&(e=Ii.Attach(r,t,n)||e),e},t.dateNow=function(){var t=Date;return t.now?t.now():(new t).getTime()},t.perfNow=function(){var n=li();return n&&n.now?n.now():t.dateNow()},t.newId=function(n){void 0===n&&(n=22);for(var e=t.random32()>>>0,i=0,r="";r.length<n;)i++,r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(63&e),e>>>=6,5===i&&(e=(t.random32()<<2&4294967295|3&e)>>>0,i=0);return r},t.isIE=function(){if(null===hi){var t=((ui()||{}).userAgent||"").toLowerCase();hi=-1!==t.indexOf("msie")||-1!==t.indexOf("trident/")}return hi},t.randomValue=function(n){return n>0?Math.floor(t.random32()/4294967295*(n+1))>>>0:0},t.random32=function(n){var e,i=ii("crypto")||ii("msCrypto");return i&&i.getRandomValues?e=4294967295&i.getRandomValues(new Uint32Array(1))[0]:t.isIE()?(pi||wi(),e=4294967295&t.mwcRandom32()):e=Math.floor(4294967296*Math.random()|0),n||(e>>>=0),e},t.mwcRandomSeed=function(t){t?bi(t):wi()},t.mwcRandom32=function(t){var n=((mi=36969*(65535&mi)+(mi>>16)&4294967295)<<16)+(65535&(vi=18e3*(65535&vi)+(vi>>16)&4294967295))>>>0&4294967295|0;return t||(n>>>=0),n},t.generateW3CId=function(){for(var n,e=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],i="",r=0;r<4;r++)i+=e[15&(n=t.random32())]+e[n>>4&15]+e[n>>8&15]+e[n>>12&15]+e[n>>16&15]+e[n>>20&15]+e[n>>24&15]+e[n>>28&15];var o=e[8+(3&t.random32())|0];return i.substr(0,8)+i.substr(9,4)+"4"+i.substr(13,3)+o+i.substr(16,3)+i.substr(19,12)},t.isTypeof=gi,t.isUndefined=yi,t.isNullOrUndefined=xi,t.hasOwnProperty=ki,t.isFunction=Ci,t.isObject=Si,t.objCreate=Ye,t}(),ji=/[xy]/g,Ii=function(){function t(){}return t.Attach=Ai,t.AttachEvent=Ai,t.Detach=_i,t.DetachEvent=_i,t}();!function(t){t[t.CRITICAL=1]="CRITICAL",t[t.WARNING=2]="WARNING"}(Bi||(Bi={}));var Mi=Object.getPrototypeOf,Ti=0;
|
|
2
2
|
/*!
|
|
3
3
|
* Microsoft Dynamic Proto Utility, 1.1.0
|
|
4
4
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|