@descope/web-components-ui 3.0.5 → 3.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,2 @@
1
+ "use strict";(self.webpackChunk_descope_web_components_ui=self.webpackChunk_descope_web_components_ui||[]).push([[2478],{68749(i,t,e){e.r(t),e.d(t,{CountrySubdivisionCityFieldClass:()=>L,componentName:()=>$}),e(25003),e(27092);var s=e(72270),o=e(25964),n=e(63200);const r=async i=>{const t=await fetch(i);if(!t.ok)throw new Error(`[dataService] ${t.status} ${i}`);const e=await t.json();return e.data??e},a=async i=>r(`${i}/countries.json`),l=async(i,t)=>{try{return(await r(`${t}/countries/${i}/subdivisions.json`)).map(({code:i,...t})=>({...t,state_code:i}))}catch{return[]}},u=async(i,t,e)=>r(`${e}/countries/${i}/subdivisions/${t}/cities.json`),d=async i=>{const t=new URL("../labels.json",`${i}/`).href;return r(t)},h=async(i,t)=>r(`${t}/countries/${i}/cities.json`),c=(0,o.xE)("country-subdivision-city-field-internal"),b=Symbol("selecting"),y=({name:i,translations:t={}},e)=>e&&(t[e]||t[e.split("-")[0]])||i,p=i=>i?String(i).replace(/[&<>"']/g,i=>`&#${i.charCodeAt(0)};`):"",m=({name:i,iso2:t,iso3:e,translations:s,lang:o})=>{const n=y({name:i,translations:s},o),r=[n,t,e];n!==i&&r.push(i);const a=p(t),l=p(r.join(" ")),u=p(n);return`<div data-id="${a}" data-name="${l}" data-label="${u}">${u}</div>`},v=({name:i,state_code:t,translations:e,lang:s})=>{const o=y({name:i,translations:e},s),n=[o,t];o!==i&&n.push(i);const r=p(t),a=p(n.join(" ")),l=p(o);return`<div data-id="${r}" data-name="${a}" data-label="${l}">${l}</div>`},C=({name:i})=>{const t=p(i),e=p(i);return`<div data-id="${t}" data-name="${e}">${e}</div>`},g=i=>`<descope-combo-box id="${i}" item-label-path="data-name" item-value-path="data-id" allow-custom-value="false"></descope-combo-box>`,x=(0,s.yc)({componentName:c,baseSelector:""}),f=["disabled","readonly","size","bordered"],B=["hide-country","hide-subdivision","hide-city"],S=[...f,"label-type","country-label","subdivision-label","city-label",...B,"default-country","allowed-countries","pinned-countries","country-placeholder","subdivision-placeholder","city-placeholder","required","invalid","data-source-base-url","lang"],V=(0,n.Zz)()(class extends x{static get observedAttributes(){return[].concat(x.observedAttributes||[],S)}#i;#t;#e;#s=!1;#o=!1;#n=new Map;#r=null;#a=null;#l=null;#u=null;constructor(){super(),this.innerHTML=`\n <div class="wrapper">\n ${g("country-combo")}\n ${g("subdivision-combo")}\n ${g("city-combo")}\n </div>\n `,this.#i=this.querySelector("#country-combo"),this.#t=this.querySelector("#subdivision-combo"),this.#e=this.querySelector("#city-combo"),this.#d(),this.#h()}get#c(){return"true"===this.getAttribute("hide-country")}get#b(){return"true"===this.getAttribute("hide-subdivision")}get#y(){return"true"===this.getAttribute("hide-city")}get#p(){return!this.#m}get#m(){return this.getAttribute("data-source-base-url")||void 0}get#v(){const i=this.getAttribute("lang")||void 0;if(i)try{return Intl.getCanonicalLocales(i),i}catch{return}}get#C(){return this.getAttribute("default-country")?.toUpperCase()||void 0}get#g(){return this.getAttribute("subdivision-label")||void 0}get#x(){return this.getAttribute("subdivision-placeholder")||void 0}get#f(){return(this.getAttribute("allowed-countries")||"").split(",").map(i=>i.trim().toUpperCase()).filter(Boolean)}get#B(){return(this.getAttribute("pinned-countries")||"").split(",").map(i=>i.trim().toUpperCase()).filter(Boolean)}get#S(){return[this.#i,this.#t,this.#e]}get value(){return{country:this.#c?this.#C:this.#i.value||void 0,subdivision:!this.#b&&this.#s&&this.#t.value||void 0,city:!this.#y&&this.#o&&this.#e.value||void 0}}set value(i){if(!i)return;let t;try{t="string"==typeof i?JSON.parse(i):i}catch{return}this.#u={...t},this.#m&&this.#V()}init(){this.addEventListener("focus",i=>{if(i.isTrusted){const i=this.#S.find(i=>!i.classList.contains(`${c}-hidden`)&&!i.checkValidity());(i||this.#A())?.focus()}}),super.init?.(),this.#w(),this.#$(),this.#E(),this.#H()}#H(){this.#i.renderItem=m,this.#t.renderItem=v,this.#e.renderItem=C}attributeChangedCallback(i,t,e){if(super.attributeChangedCallback?.(i,t,e),t!==e)if("required"===i)this.#I();else if(B.includes(i)||"data-source-base-url"===i)this.#w(),"data-source-base-url"===i&&this.#E();else if("default-country"===i){const i=e?.toUpperCase();if(i&&i!==e)return void this.setAttribute("default-country",i);i&&this.#n.size?this.#L(i):i&&this.#c&&this.#T()}else"lang"===i?this.#U():"invalid"===i?"true"===e&&this.#R():"allowed-countries"===i||"pinned-countries"===i?this.#c||(this.#r?this.#F(this.#r):this.#T()):"country-label"===i?this.#O(this.#i,"label",e):"subdivision-label"===i?this.#O(this.#t,"label",e):"city-label"===i&&this.#O(this.#e,"label",e)}getValidity(){if(!this.isRequired)return{};const i=!this.#c&&!this.#i.value,t=!this.#b&&(this.#p||this.#s)&&!this.#t.value,e=!this.#y&&(this.#p||this.#o)&&!this.#e.value;return i||t||e?{valueMissing:!0}:{}}#R(){for(const i of[...this.#S].reverse())i.classList.contains(`${c}-hidden`)||i.checkValidity()||i.reportValidity()}#d(){[this.#i,this.#t].forEach(i=>{i.customValueTransformFn=t=>{const e=i.baseElement?.items?.find(i=>i["data-name"]===t);return e?.getAttribute("data-label")??t}})}#h(){this.#S.forEach(i=>{(0,o.EA)(this,i,{includeAttrs:[...f,"label-type"]})}),(0,o.EA)(this,this.#i,{includeAttrs:["default-country"],mapAttrs:{"default-country":"default-value"}}),[[this.#i,"country-placeholder"],[this.#t,"subdivision-placeholder"],[this.#e,"city-placeholder"]].forEach(([i,t])=>{(0,o.EA)(this,i,{includeAttrs:[t],mapAttrs:{[t]:"placeholder"}})})}#$(){this.#i.addEventListener("input",()=>this.#q()),this.#t.addEventListener("input",()=>this.#D()),this.#e.addEventListener("input",()=>this.#N()),this.handleFocusEventsDispatching(this.#S)}#E(){this.#m&&(this.#u?this.#V():this.#c&&!this.#C||this.#T())}async#V(){const{country:i,subdivision:t,city:e}=this.#u,s=!!t&&!this.#b,o=!!e&&!this.#y,n=this.#r??a(this.#m),r=this.#l??d(this.#m),c=s&&i?l(i,this.#m):null,y=o&&i?s&&t?u(i,t,this.#m):h(i,this.#m):null,[p,m,v,C]=(await Promise.allSettled([n,r,c,y])).map(i=>"fulfilled"===i.status?i.value:null);if(!this.#u)return;m&&(this.#l=m);const g=[];p&&(this.#r||(this.#r=p,this.#F(p)),i&&!this.#c&&g.push([this.#i,i]));const x=i?this.#n.get(i):null;x?.subdivisionType&&this.#M(x.subdivisionType),v&&(this.#a=v,this.#s=v.length>0,v.length>0&&(this.#t.data=v.map(i=>({...i,lang:this.#v})),t&&g.push([this.#t,t]))),C&&(this.#o=C.length>0,C.length>0&&(this.#e.data=C,e&&g.push([this.#e,e]))),this.#w(),this.#u=b,setTimeout(()=>{if(this.#u===b){for(const[i,t]of g){const e=i.items?.find(i=>i["data-id"]===t);e&&(i.selectedItem=e)}this.#u=null}})}#q(){this.#u!==b&&(this.#u=null,this.#k(),this.#_(),this.#L(this.#i.value),this.#N())}#D(){if(this.#u===b)return;this.#u=null;const i=this.#t.value;if(this.#_(),!this.#y&&i){const t=this.#i.value;t&&this.#P(t,i)}this.#N()}#L(i){if(!i)return;const t=this.#n.get(i);if(!t)return;const{hasSubdivisions:e,subdivisionType:s}=t;!this.#b&&e?(this.#M(s),this.#j(i)):this.#y||this.#P(i)}#M(i){const t=this.#z(i);this.#g||this.#O(this.#t,"label",t||null),this.#x||this.#O(this.#t,"placeholder",t||null)}#z(i){const t=this.#l?.subdivisionTypes,e=t?.[i]??t?._fallback;if(!e)return i;const s=this.#v;return s&&(e[s]||e[s.split("-")[0]])||e.en||i}async#W(){try{this.#l=await d(this.#m)}catch{}}async#T(){if(this.#m){this.#i.setAttribute("loading","true");try{const[i]=await Promise.all([a(this.#m),this.#W()]);this.#r=i,this.#F(i),!this.#u&&this.#C&&this.#L(this.#C)}catch(i){console.error(`[${c}] Failed to load countries`,i)}finally{this.#i.removeAttribute("loading")}}}async#j(i){this.#G(this.#t,!0),this.#t.setAttribute("loading","true");try{const t=await l(i,this.#m);this.#a=t,this.#s=t.length>0,this.#w(),t.length>0?this.#t.data=t.map(i=>({...i,lang:this.#v})):this.#y||this.#P(i)}catch(t){console.error(`[${c}] Failed to load subdivisions for ${i}`,t),this.#s=!1,this.#Z()}finally{this.#t.removeAttribute("loading")}}async#P(i,t){this.#e.setAttribute("loading","true");try{const e=await(t?u(i,t,this.#m):h(i,this.#m));this.#o=e.length>0,this.#w(),e.length>0&&(this.#e.data=e)}catch(e){console.error(`[${c}] Failed to load cities for ${i}${t?`/${t}`:""}`,e)}finally{this.#e.removeAttribute("loading")}}#U(){if(this.#r){const i=this.#i.value;this.#F(this.#r),i&&this.#J(this.#i,i)}if(this.#a&&this.#s){const i=this.#t.value;this.#t.data=this.#a.map(i=>({...i,lang:this.#v})),i&&this.#J(this.#t,i)}const i=this.#i.value;if(i){const t=this.#n.get(i);t?.subdivisionType&&this.#M(t.subdivisionType)}}#F(i){const t=this.#Q(i);this.#i.data=t.map(i=>({...i,lang:this.#v})),this.#n=new Map(i.map(i=>[i.iso2,i]))}#Q(i){const t=this.#f,e=this.#B;let s=t.length?i.filter(i=>t.includes(i.iso2)):[...i];return s.sort((i,t)=>y(i,this.#v).localeCompare(y(t,this.#v),this.#v)),e.length?[...e.map(i=>s.find(t=>t.iso2===i)).filter(Boolean),...s.filter(i=>!e.includes(i.iso2))]:s}#Z(){this.#G(this.#i,!this.#c),this.#G(this.#t,!this.#b&&(this.#p||this.#s)),this.#G(this.#e,!this.#y&&(this.#p||this.#o))}#G(i,t){i?.classList.toggle(`${c}-hidden`,!t)}#I(){const i=this.hasAttribute("required")?"true":null;this.#O(this.#i,"required",this.#c?null:i),this.#O(this.#t,"required",this.#b||!this.#p&&!this.#s?null:i),this.#O(this.#e,"required",this.#y||!this.#p&&!this.#o?null:i)}#w(){this.#Z(),this.#I(),this.setCustomValidity("")}#k(){this.#t.value="",this.#t.data=[],this.#s=!1,this.#g||this.#t.removeAttribute("label"),this.#x||this.#t.removeAttribute("placeholder"),this.#w()}#_(){this.#e.value="",this.#e.data=[],this.#o=!1,this.#w()}#N(){this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0}))}#O(i,t,e){e?i.setAttribute(t,e):i.removeAttribute(t)}#A(){return this.#S.find(i=>!i.classList.contains(`${c}-hidden`))}#J(i,t){setTimeout(()=>{const e=i.items?.find(i=>i["data-id"]===t);e&&(i.selectedItem=e)})}});customElements.define(c,V);var A=e(88961),w=e(86365);const $=(0,o.xE)("country-subdivision-city-field"),E={selector:()=>":host"},H={selector:`${c} > .wrapper`},I={selector:`${c} > .wrapper > descope-combo-box`},L=(0,n.Zz)((0,A.RF)({componentNameOverride:(0,o.xE)("input-wrapper")}),(0,A.RF)({mappings:{hostWidth:{...E,property:"width"},hostDirection:[{...E,property:"direction"},{...I,property:w.C.cssVarList.hostDirection}],flexDirection:{...H,property:"flex-direction"},flexGap:{...H,property:"gap"},itemAlignment:{...H,property:"align-items"},itemMinWidth:{...I,property:"min-width"},itemFlexGrow:{...I,property:"flex-grow"},itemWidth:{...I,property:w.C.cssVarList.hostWidth}}}),A.VO,(0,A.OZ)({proxyProps:["value"],inputEvent:"input",proxyParentValidation:!0}),A.tQ,i=>class extends i{init(){super.init?.();const i=document.createElement("template");i.innerHTML=`\n <${c}\n tabindex="-1"\n ></${c}>\n `,this.baseElement.appendChild(i.content.cloneNode(!0)),this.inputElement=this.shadowRoot.querySelector(c),(0,o.EA)(this,this.inputElement,{includeAttrs:["size","bordered","required","label-type","disabled","readonly","hide-country","hide-subdivision","hide-city","default-country","allowed-countries","pinned-countries","country-label","subdivision-label","city-label","country-placeholder","subdivision-placeholder","city-placeholder","data-source-base-url","lang","invalid"]}),(0,o.Gh)(this,this.inputElement,{includeAttrs:["invalid"]})}})((0,A.tz)({slots:[],wrappedEleName:"vaadin-custom-field",style:()=>`\n :host {\n display: inline-flex;\n max-width: 100%;\n }\n vaadin-custom-field {\n line-height: unset;\n width: 100%;\n }\n\n ${c} {\n display: inline-block;\n box-sizing: border-box;\n user-select: none;\n width: 100%;\n max-width: 100%;\n }\n\n ${c} > .wrapper {\n display: flex;\n width: 100%;\n flex-wrap: wrap;\n }\n\n .${c}-hidden {\n display: none;\n }\n\n`,excludeAttrsSync:["tabindex","style","error-message"],componentName:$}));customElements.define($,L)}}]);
2
+ //# sourceMappingURL=descope-country-subdivision-city-field.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"descope-country-subdivision-city-field.js","mappings":"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","sources":["webpack://@descope/web-components-ui/../components/descope-country-subdivision-city-field/src/data/dataService.js","webpack://@descope/web-components-ui/../components/descope-country-subdivision-city-field/src/component/descope-country-subdivision-city-field-internal/CountrySubdivisionCityFieldInternal.js","webpack://@descope/web-components-ui/../components/descope-country-subdivision-city-field/src/component/descope-country-subdivision-city-field-internal/index.js","webpack://@descope/web-components-ui/../components/descope-country-subdivision-city-field/src/component/CountrySubdivisionCityFieldClass.js","webpack://@descope/web-components-ui/../components/descope-country-subdivision-city-field/src/component/index.js"],"sourcesContent":["// Data service for country/subdivision/city data.\n//\n// Fetches from the CDN/S3 baseUrl. The URL structure (relative to baseUrl):\n// <baseUrl>/countries.json\n// <baseUrl>/countries/{iso2}/subdivisions.json\n// <baseUrl>/countries/{iso2}/subdivisions/{state_code}/cities.json\n// <baseUrl>/countries/{iso2}/cities.json (all cities for a country, used when subdivision is hidden)\n// <parent-of-baseUrl>/labels.json (shared labels/translations, one level up)\n\nconst fetchJson = async (url) => {\n const response = await fetch(url);\n if (!response.ok) throw new Error(`[dataService] ${response.status} ${url}`);\n const json = await response.json();\n // All files use a { data: [...] } envelope\n return json.data ?? json;\n};\n\nexport const fetchCountries = async (baseUrl) =>\n fetchJson(`${baseUrl}/countries.json`);\n\nconst normalizeSubdivisions = (data) =>\n data.map(({ code, ...rest }) => ({ ...rest, state_code: code }));\n\nexport const fetchSubdivisions = async (countryIso2, baseUrl) => {\n try {\n const data = await fetchJson(\n `${baseUrl}/countries/${countryIso2}/subdivisions.json`,\n );\n return normalizeSubdivisions(data);\n } catch {\n // No subdivisions file means the country has no subdivisions\n return [];\n }\n};\n\nexport const fetchCities = async (countryIso2, stateCode, baseUrl) =>\n fetchJson(\n `${baseUrl}/countries/${countryIso2}/subdivisions/${stateCode}/cities.json`,\n );\n\n// labels.json sits one directory above the language-specific base URL\n// e.g. baseUrl = \".../address/en\" → labels URL = \".../address/labels.json\"\nexport const fetchLabels = async (baseUrl) => {\n const labelsUrl = new URL('../labels.json', `${baseUrl}/`).href;\n return fetchJson(labelsUrl);\n};\n\nexport const fetchCitiesForCountry = async (countryIso2, baseUrl) =>\n fetchJson(`${baseUrl}/countries/${countryIso2}/cities.json`);\n","import { createBaseInputClass } from '@descope-ui/common/base-classes';\nimport {\n getComponentName,\n forwardAttrs,\n} from '@descope-ui/common/components-helpers';\nimport { compose } from '@descope-ui/common/utils';\nimport {\n fetchCountries,\n fetchSubdivisions,\n fetchCities,\n fetchCitiesForCountry,\n fetchLabels,\n} from '../../data/dataService';\n\nexport const componentName = getComponentName(\n 'country-subdivision-city-field-internal',\n);\n\n// Sentinel used in #pendingValue to signal that programmatic item selection is in progress.\n// Prevents cascade-clearing logic in input handlers from firing during programmatic selection.\nconst SELECTING = Symbol('selecting');\n\n// --- Translation ---\n\nconst resolveTranslation = ({ name, translations = {} }, lang) => {\n if (!lang) return name;\n return translations[lang] || translations[lang.split('-')[0]] || name;\n};\n\n// --- HTML Escaping ---\n\nconst escapeHtml = (str) => {\n if (!str) return '';\n return String(str).replace(/[&<>\"']/g, (c) => `&#${c.charCodeAt(0)};`);\n};\n\n// --- Item renderers ---\n\nconst countryItem = ({ name, iso2, iso3, translations, lang }) => {\n const displayName = resolveTranslation({ name, translations }, lang);\n const searchTerms = [displayName, iso2, iso3];\n if (displayName !== name) searchTerms.push(name);\n const escapedIso2 = escapeHtml(iso2);\n const escapedSearchTerms = escapeHtml(searchTerms.join(' '));\n const escapedLabel = escapeHtml(displayName);\n return `<div data-id=\"${escapedIso2}\" data-name=\"${escapedSearchTerms}\" data-label=\"${escapedLabel}\">${escapedLabel}</div>`;\n};\n\nconst subdivisionItem = ({ name, state_code, translations, lang }) => {\n const displayName = resolveTranslation({ name, translations }, lang);\n const searchTerms = [displayName, state_code];\n if (displayName !== name) searchTerms.push(name);\n const escapedStateCode = escapeHtml(state_code);\n const escapedSearchTerms = escapeHtml(searchTerms.join(' '));\n const escapedLabel = escapeHtml(displayName);\n return `<div data-id=\"${escapedStateCode}\" data-name=\"${escapedSearchTerms}\" data-label=\"${escapedLabel}\">${escapedLabel}</div>`;\n};\n\nconst cityItem = ({ name }) => {\n const escapedId = escapeHtml(name);\n const escapedName = escapeHtml(name);\n return `<div data-id=\"${escapedId}\" data-name=\"${escapedName}\">${escapedName}</div>`;\n};\n\nconst comboBoxHTML = (id) =>\n `<descope-combo-box id=\"${id}\" item-label-path=\"data-name\" item-value-path=\"data-id\" allow-custom-value=\"false\"></descope-combo-box>`;\n\n// --- Base class ---\n\nconst BaseInputClass = createBaseInputClass({\n componentName,\n baseSelector: '',\n});\n\nconst commonAttrs = ['disabled', 'readonly', 'size', 'bordered'];\nconst labelTypeAttrs = [\n 'label-type',\n 'country-label',\n 'subdivision-label',\n 'city-label',\n];\nconst visibilityAttrs = ['hide-country', 'hide-subdivision', 'hide-city'];\nconst countryConfigAttrs = [\n 'default-country',\n 'allowed-countries',\n 'pinned-countries',\n];\nconst placeholderAttrs = [\n 'country-placeholder',\n 'subdivision-placeholder',\n 'city-placeholder',\n];\nconst observedAttrs = [\n ...commonAttrs,\n ...labelTypeAttrs,\n ...visibilityAttrs,\n ...countryConfigAttrs,\n ...placeholderAttrs,\n 'required',\n 'invalid',\n 'data-source-base-url',\n 'lang',\n];\n\nclass RawCountrySubdivisionCityFieldInternal extends BaseInputClass {\n static get observedAttributes() {\n return [].concat(BaseInputClass.observedAttributes || [], observedAttrs);\n }\n\n #countryComboBox;\n #subdivisionComboBox;\n #cityComboBox;\n\n // Whether the subdivision/city field should be shown (data was found for selected country/subdivision)\n #subdivisionVisible = false;\n #cityVisible = false;\n\n // iso2 → country object (populated after countries are loaded)\n #countriesMap = new Map();\n #cachedCountries = null;\n #cachedSubdivisions = null;\n #labels = null;\n\n // Value requested programmatically before data has loaded.\n // Applied incrementally as each cascade layer (countries → subdivisions → cities) loads.\n #pendingValue = null;\n\n constructor() {\n super();\n\n this.innerHTML = `\n <div class=\"wrapper\">\n ${comboBoxHTML('country-combo')}\n ${comboBoxHTML('subdivision-combo')}\n ${comboBoxHTML('city-combo')}\n </div>\n `;\n\n this.#countryComboBox = this.querySelector('#country-combo');\n this.#subdivisionComboBox = this.querySelector('#subdivision-combo');\n this.#cityComboBox = this.querySelector('#city-combo');\n\n this.#setupValueTransform();\n this.#setupAttrForwarding();\n }\n\n // --- Attribute getters ---\n\n get #isHideCountry() {\n return this.getAttribute('hide-country') === 'true';\n }\n get #isHideSubdivision() {\n return this.getAttribute('hide-subdivision') === 'true';\n }\n get #isHideCity() {\n return this.getAttribute('hide-city') === 'true';\n }\n get #isNoDataSource() {\n return !this.#baseUrl;\n }\n get #baseUrl() {\n return this.getAttribute('data-source-base-url') || undefined;\n }\n get #lang() {\n const lang = this.getAttribute('lang') || undefined;\n if (!lang) return undefined;\n try {\n Intl.getCanonicalLocales(lang);\n return lang;\n } catch {\n return undefined; // invalid BCP47 tag — fall back to English\n }\n }\n get #defaultCountry() {\n return this.getAttribute('default-country')?.toUpperCase() || undefined;\n }\n get #subdivisionLabel() {\n return this.getAttribute('subdivision-label') || undefined;\n }\n get #subdivisionPlaceholder() {\n return this.getAttribute('subdivision-placeholder') || undefined;\n }\n\n get #allowedCountries() {\n return (this.getAttribute('allowed-countries') || '')\n .split(',')\n .map((c) => c.trim().toUpperCase())\n .filter(Boolean);\n }\n\n get #pinnedCountries() {\n return (this.getAttribute('pinned-countries') || '')\n .split(',')\n .map((c) => c.trim().toUpperCase())\n .filter(Boolean);\n }\n\n get #allCombos() {\n return [\n this.#countryComboBox,\n this.#subdivisionComboBox,\n this.#cityComboBox,\n ];\n }\n\n // --- Value ---\n\n get value() {\n const country = this.#isHideCountry\n ? this.#defaultCountry\n : this.#countryComboBox.value || undefined;\n\n const subdivision =\n !this.#isHideSubdivision && this.#subdivisionVisible\n ? this.#subdivisionComboBox.value || undefined\n : undefined;\n\n const city =\n !this.#isHideCity && this.#cityVisible\n ? this.#cityComboBox.value || undefined\n : undefined;\n\n return { country, subdivision, city };\n }\n\n set value(val) {\n if (!val) return;\n let parsed;\n try {\n parsed = typeof val === 'string' ? JSON.parse(val) : val;\n } catch {\n // Invalid JSON — silently ignore to prevent component crash\n return;\n }\n this.#pendingValue = { ...parsed };\n if (this.#baseUrl) this.#loadForPendingValue();\n }\n\n // --- Lifecycle ---\n\n init() {\n this.addEventListener('focus', (e) => {\n if (e.isTrusted) {\n const firstInvalidCombo = this.#allCombos.find(\n (combo) =>\n !combo.classList.contains(`${componentName}-hidden`) &&\n !combo.checkValidity(),\n );\n (firstInvalidCombo || this.#getFirstVisibleCombo())?.focus();\n }\n });\n\n super.init?.();\n\n this.#refreshState();\n this.#setupChangeListeners();\n this.#initData();\n this.#setCombosItemRenderers();\n }\n\n #setCombosItemRenderers() {\n this.#countryComboBox.renderItem = countryItem;\n this.#subdivisionComboBox.renderItem = subdivisionItem;\n this.#cityComboBox.renderItem = cityItem;\n }\n\n attributeChangedCallback(attrName, oldValue, newValue) {\n super.attributeChangedCallback?.(attrName, oldValue, newValue);\n\n if (oldValue === newValue) return;\n\n if (attrName === 'required') {\n this.#updateRequiredOnCombos();\n } else if (\n visibilityAttrs.includes(attrName) ||\n attrName === 'data-source-base-url'\n ) {\n this.#refreshState();\n if (attrName === 'data-source-base-url') this.#initData();\n } else if (attrName === 'default-country') {\n const upper = newValue?.toUpperCase();\n if (upper && upper !== newValue) {\n this.setAttribute('default-country', upper);\n return;\n }\n if (upper && this.#countriesMap.size) {\n this.#onCountrySelected(upper); // countries already loaded — trigger immediately\n } else if (upper && this.#isHideCountry) {\n // hide-country mode: countries may not have been loaded yet (e.g. no default-country at init).\n // Kick off loading now; #loadCountries will call #onCountrySelected once done.\n this.#loadCountries();\n }\n } else if (attrName === 'lang') {\n this.#rerenderOnLangChange();\n } else if (attrName === 'invalid') {\n if (newValue === 'true') this.#handleInvalidCombos();\n } else if (\n attrName === 'allowed-countries' ||\n attrName === 'pinned-countries'\n ) {\n if (!this.#isHideCountry) {\n // Re-render from cache if available to avoid a race condition between two simultaneous\n // fetch calls (one from data-source-base-url, one from the filter attribute change).\n if (this.#cachedCountries) {\n this.#renderCountryItems(this.#cachedCountries);\n } else {\n this.#loadCountries();\n }\n }\n } else if (attrName === 'country-label') {\n this.#setOrRemoveAttr(this.#countryComboBox, 'label', newValue);\n } else if (attrName === 'subdivision-label') {\n this.#setOrRemoveAttr(this.#subdivisionComboBox, 'label', newValue);\n } else if (attrName === 'city-label') {\n this.#setOrRemoveAttr(this.#cityComboBox, 'label', newValue);\n }\n }\n\n // --- Validation ---\n\n getValidity() {\n if (!this.isRequired) return {};\n\n const countryMissing = !this.#isHideCountry && !this.#countryComboBox.value;\n const subdivisionMissing =\n !this.#isHideSubdivision &&\n (this.#isNoDataSource || this.#subdivisionVisible) &&\n !this.#subdivisionComboBox.value;\n const cityMissing =\n !this.#isHideCity &&\n (this.#isNoDataSource || this.#cityVisible) &&\n !this.#cityComboBox.value;\n\n return countryMissing || subdivisionMissing || cityMissing\n ? { valueMissing: true }\n : {};\n }\n\n // Show validation errors on the specific combos that are missing a value.\n // Iterate in reverse so reportValidity's focus() lands on the first invalid combo last.\n #handleInvalidCombos() {\n for (const combo of [...this.#allCombos].reverse()) {\n if (combo.classList.contains(`${componentName}-hidden`)) continue;\n if (!combo.checkValidity()) combo.reportValidity();\n }\n }\n\n // --- Setup ---\n\n #setupValueTransform() {\n // Display only the item name in the input, while data-name includes ISO codes for search\n [this.#countryComboBox, this.#subdivisionComboBox].forEach((combo) => {\n \n combo.customValueTransformFn = (val) => {\n const item = combo.baseElement?.items?.find(\n (i) => i['data-name'] === val,\n );\n return item?.getAttribute('data-label') ?? val;\n };\n });\n }\n\n #setupAttrForwarding() {\n // Forward common attrs and label-type to all combos\n this.#allCombos.forEach((combo) => {\n forwardAttrs(this, combo, {\n includeAttrs: [...commonAttrs, 'label-type'],\n });\n });\n\n // Forward default-country as default-value to let the combo box handle initial selection\n forwardAttrs(this, this.#countryComboBox, {\n includeAttrs: ['default-country'],\n mapAttrs: { 'default-country': 'default-value' },\n });\n\n // Forward per-field placeholders\n [\n [this.#countryComboBox, 'country-placeholder'],\n [this.#subdivisionComboBox, 'subdivision-placeholder'],\n [this.#cityComboBox, 'city-placeholder'],\n ].forEach(([combo, attr]) => {\n forwardAttrs(this, combo, {\n includeAttrs: [attr],\n mapAttrs: { [attr]: 'placeholder' },\n });\n });\n }\n\n #setupChangeListeners() {\n // descope-combo-box dispatches 'input' (not 'change') on selection\n this.#countryComboBox.addEventListener('input', () =>\n this.#handleCountryChange(),\n );\n this.#subdivisionComboBox.addEventListener('input', () =>\n this.#handleSubdivisionChange(),\n );\n this.#cityComboBox.addEventListener('input', () =>\n this.#dispatchInputEvent(),\n );\n\n this.handleFocusEventsDispatching(this.#allCombos);\n }\n\n #initData() {\n // baseUrl is forwarded by the outer component after this element is connected;\n // wait for the attributeChangedCallback('data-source-base-url') to re-trigger.\n if (!this.#baseUrl) return;\n\n if (this.#pendingValue) {\n this.#loadForPendingValue();\n return;\n }\n\n if (!this.#isHideCountry || this.#defaultCountry) {\n // Load countries to populate #countriesMap even when hide-country=true, so that\n // #onCountrySelected can apply the correct subdivision type label for the default country.\n this.#loadCountries();\n }\n }\n\n // --- Programmatic value loading (parallel fetch) ---\n\n async #loadForPendingValue() {\n const {\n country: pendingCountry,\n subdivision: pendingSubdivision,\n city: pendingCity,\n } = this.#pendingValue;\n\n const shouldLoadSubdivisions =\n !!pendingSubdivision && !this.#isHideSubdivision;\n const shouldLoadCities = !!pendingCity && !this.#isHideCity;\n\n const countriesPromise =\n this.#cachedCountries ?? fetchCountries(this.#baseUrl);\n const labelsPromise = this.#labels ?? fetchLabels(this.#baseUrl);\n const subdivisionsPromise =\n shouldLoadSubdivisions && pendingCountry\n ? fetchSubdivisions(pendingCountry, this.#baseUrl)\n : null;\n const citiesPromise =\n shouldLoadCities && pendingCountry\n ? shouldLoadSubdivisions && pendingSubdivision\n ? fetchCities(pendingCountry, pendingSubdivision, this.#baseUrl)\n : fetchCitiesForCountry(pendingCountry, this.#baseUrl)\n : null;\n\n // Fetch everything in parallel; null entries resolve immediately as null\n const [countries, labels, subdivisions, cities] = (\n await Promise.allSettled([\n countriesPromise,\n labelsPromise,\n subdivisionsPromise,\n citiesPromise,\n ])\n ).map((result) => (result.status === 'fulfilled' ? result.value : null));\n\n // Cancelled by a subsequent set value call or user interaction\n if (!this.#pendingValue) return;\n\n if (labels) this.#labels = labels;\n\n // Collect items to select — do this before rendering so we can batch-select below\n const toSelect = [];\n\n if (countries) {\n if (!this.#cachedCountries) {\n this.#cachedCountries = countries;\n this.#renderCountryItems(countries);\n }\n if (pendingCountry && !this.#isHideCountry)\n toSelect.push([this.#countryComboBox, pendingCountry]);\n }\n\n const countryObj = pendingCountry\n ? this.#countriesMap.get(pendingCountry)\n : null;\n if (countryObj?.subdivisionType)\n this.#applySubdivisionType(countryObj.subdivisionType);\n\n if (subdivisions) {\n this.#cachedSubdivisions = subdivisions;\n this.#subdivisionVisible = subdivisions.length > 0;\n if (subdivisions.length > 0) {\n this.#subdivisionComboBox.data = subdivisions.map((s) => ({\n ...s,\n lang: this.#lang,\n }));\n if (pendingSubdivision)\n toSelect.push([this.#subdivisionComboBox, pendingSubdivision]);\n }\n }\n\n if (cities) {\n this.#cityVisible = cities.length > 0;\n if (cities.length > 0) {\n this.#cityComboBox.data = cities;\n if (pendingCity) toSelect.push([this.#cityComboBox, pendingCity]);\n }\n }\n\n this.#refreshState();\n\n // Apply all selections in one batch. #pendingValue is set to SELECTING so that\n // input events fired by selectedItem= don't trigger cascade-clearing in change handlers.\n this.#pendingValue = SELECTING;\n setTimeout(() => {\n if (this.#pendingValue !== SELECTING) return; // cancelled by a new set value call\n for (const [combo, id] of toSelect) {\n const item = combo.items?.find((i) => i['data-id'] === id);\n if (item) combo.selectedItem = item;\n }\n this.#pendingValue = null;\n });\n }\n\n // --- Change handlers ---\n\n #handleCountryChange() {\n if (this.#pendingValue === SELECTING) return; // programmatic selection in progress\n this.#pendingValue = null; // cancel any in-flight fetch\n this.#resetSubdivision();\n this.#resetCity();\n this.#onCountrySelected(this.#countryComboBox.value);\n this.#dispatchInputEvent();\n }\n\n #handleSubdivisionChange() {\n if (this.#pendingValue === SELECTING) return; // programmatic selection in progress\n this.#pendingValue = null; // cancel any in-flight fetch\n const subdivisionCode = this.#subdivisionComboBox.value;\n this.#resetCity();\n\n if (!this.#isHideCity && subdivisionCode) {\n const countryIso2 = this.#countryComboBox.value;\n if (countryIso2) this.#loadCities(countryIso2, subdivisionCode);\n }\n this.#dispatchInputEvent();\n }\n\n // --- Country selection ---\n\n #onCountrySelected(countryIso2) {\n if (!countryIso2) return;\n\n const country = this.#countriesMap.get(countryIso2);\n if (!country) return;\n\n const { hasSubdivisions, subdivisionType } = country;\n\n if (!this.#isHideSubdivision && hasSubdivisions) {\n this.#applySubdivisionType(subdivisionType);\n this.#loadSubdivisions(countryIso2);\n } else if (!this.#isHideCity) {\n this.#loadCities(countryIso2);\n }\n }\n\n // Apply subdivisionType as label/placeholder, but only when not overridden by an explicit attribute.\n #applySubdivisionType(subdivisionType) {\n const label = this.#resolveSubdivisionTypeLabel(subdivisionType);\n if (!this.#subdivisionLabel)\n this.#setOrRemoveAttr(this.#subdivisionComboBox, 'label', label || null);\n if (!this.#subdivisionPlaceholder)\n this.#setOrRemoveAttr(\n this.#subdivisionComboBox,\n 'placeholder',\n label || null,\n );\n }\n\n #resolveSubdivisionTypeLabel(subdivisionType) {\n const types = this.#labels?.subdivisionTypes;\n const entry = types?.[subdivisionType] ?? types?._fallback;\n if (!entry) return subdivisionType;\n const lang = this.#lang;\n return (\n (lang && (entry[lang] || entry[lang.split('-')[0]])) ||\n entry.en ||\n subdivisionType\n );\n }\n\n // --- Data loading ---\n\n async #loadLabels() {\n try {\n this.#labels = await fetchLabels(this.#baseUrl);\n } catch {\n // Labels are optional; fall back to raw subdivisionType name\n }\n }\n\n async #loadCountries() {\n if (!this.#baseUrl) return;\n this.#countryComboBox.setAttribute('loading', 'true');\n try {\n const [countries] = await Promise.all([\n fetchCountries(this.#baseUrl),\n this.#loadLabels(),\n ]);\n this.#cachedCountries = countries;\n this.#renderCountryItems(countries);\n // Skip defaultCountry if a programmatic set value is in flight\n if (!this.#pendingValue && this.#defaultCountry)\n this.#onCountrySelected(this.#defaultCountry);\n } catch (e) {\n \n console.error(`[${componentName}] Failed to load countries`, e);\n } finally {\n this.#countryComboBox.removeAttribute('loading');\n }\n }\n\n async #loadSubdivisions(countryIso2) {\n this.#setVisible(this.#subdivisionComboBox, true);\n this.#subdivisionComboBox.setAttribute('loading', 'true');\n try {\n const subdivisions = await fetchSubdivisions(countryIso2, this.#baseUrl);\n this.#cachedSubdivisions = subdivisions;\n this.#subdivisionVisible = subdivisions.length > 0;\n this.#refreshState();\n\n if (subdivisions.length > 0) {\n this.#subdivisionComboBox.data = subdivisions.map((s) => ({\n ...s,\n lang: this.#lang,\n }));\n } else if (!this.#isHideCity) {\n this.#loadCities(countryIso2);\n }\n } catch (e) {\n \n console.error(\n `[${componentName}] Failed to load subdivisions for ${countryIso2}`,\n e,\n );\n this.#subdivisionVisible = false;\n this.#applyVisibility();\n } finally {\n this.#subdivisionComboBox.removeAttribute('loading');\n }\n }\n\n // stateCode is optional: when omitted, loads all cities for the country\n async #loadCities(countryIso2, stateCode) {\n this.#cityComboBox.setAttribute('loading', 'true');\n try {\n const cities = await (stateCode\n ? fetchCities(countryIso2, stateCode, this.#baseUrl)\n : fetchCitiesForCountry(countryIso2, this.#baseUrl));\n this.#cityVisible = cities.length > 0;\n this.#refreshState();\n if (cities.length > 0) {\n this.#cityComboBox.data = cities;\n }\n } catch (e) {\n \n console.error(\n `[${componentName}] Failed to load cities for ${countryIso2}${stateCode ? `/${stateCode}` : ''}`,\n e,\n );\n } finally {\n this.#cityComboBox.removeAttribute('loading');\n }\n }\n\n #rerenderOnLangChange() {\n if (this.#cachedCountries) {\n const prevCountry = this.#countryComboBox.value;\n this.#renderCountryItems(this.#cachedCountries);\n if (prevCountry) this.#selectItemById(this.#countryComboBox, prevCountry);\n }\n if (this.#cachedSubdivisions && this.#subdivisionVisible) {\n const prevSubdivision = this.#subdivisionComboBox.value;\n this.#subdivisionComboBox.data = this.#cachedSubdivisions.map((s) => ({\n ...s,\n lang: this.#lang,\n }));\n if (prevSubdivision)\n this.#selectItemById(this.#subdivisionComboBox, prevSubdivision);\n }\n // Re-apply translated subdivision type label for the new lang\n const currentIso2 = this.#countryComboBox.value;\n if (currentIso2) {\n const country = this.#countriesMap.get(currentIso2);\n if (country?.subdivisionType)\n this.#applySubdivisionType(country.subdivisionType);\n }\n }\n\n // --- Country item rendering ---\n\n #renderCountryItems(countries) {\n const result = this.#applyCountryFilters(countries);\n this.#countryComboBox.data = result.map((c) => ({\n ...c,\n // Include the translated name in the data for search purposes, but not in the label which is rendered by renderItem\n lang: this.#lang,\n }));\n this.#countriesMap = new Map(countries.map((c) => [c.iso2, c]));\n }\n\n #applyCountryFilters(countries) {\n const allowed = this.#allowedCountries;\n const pinned = this.#pinnedCountries;\n\n let filtered = allowed.length\n ? countries.filter((c) => allowed.includes(c.iso2))\n : [...countries];\n\n filtered.sort((a, b) =>\n resolveTranslation(a, this.#lang).localeCompare(\n resolveTranslation(b, this.#lang),\n this.#lang,\n ),\n );\n\n if (!pinned.length) return filtered;\n\n const pinnedItems = pinned\n .map((iso2) => filtered.find((c) => c.iso2 === iso2))\n .filter(Boolean);\n const rest = filtered.filter((c) => !pinned.includes(c.iso2));\n return [...pinnedItems, ...rest];\n }\n\n // --- Visibility & required ---\n\n #applyVisibility() {\n this.#setVisible(this.#countryComboBox, !this.#isHideCountry);\n this.#setVisible(\n this.#subdivisionComboBox,\n !this.#isHideSubdivision &&\n (this.#isNoDataSource || this.#subdivisionVisible),\n );\n this.#setVisible(\n this.#cityComboBox,\n !this.#isHideCity && (this.#isNoDataSource || this.#cityVisible),\n );\n }\n\n #setVisible(el, visible) {\n el?.classList.toggle(`${componentName}-hidden`, !visible);\n }\n\n #updateRequiredOnCombos() {\n const required = this.hasAttribute('required') ? 'true' : null;\n this.#setOrRemoveAttr(\n this.#countryComboBox,\n 'required',\n !this.#isHideCountry ? required : null,\n );\n this.#setOrRemoveAttr(\n this.#subdivisionComboBox,\n 'required',\n !this.#isHideSubdivision &&\n (this.#isNoDataSource || this.#subdivisionVisible)\n ? required\n : null,\n );\n this.#setOrRemoveAttr(\n this.#cityComboBox,\n 'required',\n !this.#isHideCity && (this.#isNoDataSource || this.#cityVisible)\n ? required\n : null,\n );\n }\n\n #refreshState() {\n this.#applyVisibility();\n this.#updateRequiredOnCombos();\n // Re-evaluate validity so that the form knows when newly-visible required fields become empty.\n // e.g. subdivision becomes required after a country with states is selected.\n this.setCustomValidity('');\n }\n\n // --- Reset helpers ---\n\n #resetSubdivision() {\n this.#subdivisionComboBox.value = '';\n this.#subdivisionComboBox.data = [];\n this.#subdivisionVisible = false;\n // Clear any dynamically set label/placeholder from subdivisionType\n if (!this.#subdivisionLabel)\n this.#subdivisionComboBox.removeAttribute('label');\n if (!this.#subdivisionPlaceholder)\n this.#subdivisionComboBox.removeAttribute('placeholder');\n this.#refreshState();\n }\n\n #resetCity() {\n this.#cityComboBox.value = '';\n this.#cityComboBox.data = [];\n this.#cityVisible = false;\n this.#refreshState();\n }\n\n // --- Utility helpers ---\n\n #dispatchInputEvent() {\n this.dispatchEvent(new Event('input', { bubbles: true, composed: true }));\n }\n\n #setOrRemoveAttr(el, attr, value) {\n if (value) el.setAttribute(attr, value);\n else el.removeAttribute(attr);\n }\n\n #getFirstVisibleCombo() {\n return this.#allCombos.find(\n (combo) => !combo.classList.contains(`${componentName}-hidden`),\n );\n }\n\n #selectItemById(comboBox, id) {\n // Defer the lookup so MutationObserver has time to populate comboBox.items\n setTimeout(() => {\n const item = comboBox.items?.find((i) => i['data-id'] === id);\n if (item) comboBox.selectedItem = item;\n });\n }\n}\n\nexport const CountrySubdivisionCityFieldInternal = compose()(\n RawCountrySubdivisionCityFieldInternal,\n);\n","import {\n CountrySubdivisionCityFieldInternal,\n componentName,\n} from './CountrySubdivisionCityFieldInternal';\n\ncustomElements.define(componentName, CountrySubdivisionCityFieldInternal);\n","import {\n createStyleMixin,\n draggableMixin,\n createProxy,\n proxyInputMixin,\n componentNameValidationMixin,\n} from '@descope-ui/common/components-mixins';\nimport {\n getComponentName,\n forwardAttrs,\n syncAttrs,\n} from '@descope-ui/common/components-helpers';\nimport { compose } from '@descope-ui/common/utils';\nimport { ComboBoxClass } from '@descope-ui/descope-combo-box/class';\nimport { componentName as descopeInternalComponentName } from './descope-country-subdivision-city-field-internal/CountrySubdivisionCityFieldInternal';\n\nexport const componentName = getComponentName('country-subdivision-city-field');\n\nconst customMixin = (superclass) =>\n class CountrySubdivisionCityFieldMixinClass extends superclass {\n init() {\n super.init?.();\n\n const template = document.createElement('template');\n\n template.innerHTML = `\n <${descopeInternalComponentName}\n tabindex=\"-1\"\n ></${descopeInternalComponentName}>\n `;\n\n this.baseElement.appendChild(template.content.cloneNode(true));\n\n this.inputElement = this.shadowRoot.querySelector(\n descopeInternalComponentName,\n );\n\n forwardAttrs(this, this.inputElement, {\n includeAttrs: [\n 'size',\n 'bordered',\n 'required',\n 'label-type',\n 'disabled',\n 'readonly',\n 'hide-country',\n 'hide-subdivision',\n 'hide-city',\n 'default-country',\n 'allowed-countries',\n 'pinned-countries',\n 'country-label',\n 'subdivision-label',\n 'city-label',\n 'country-placeholder',\n 'subdivision-placeholder',\n 'city-placeholder',\n 'data-source-base-url',\n 'lang',\n 'invalid',\n ],\n });\n\n // Sync invalid attribute bidirectionally so external validation feedback propagates\n syncAttrs(this, this.inputElement, { includeAttrs: ['invalid'] });\n }\n };\n\nconst host = { selector: () => ':host' };\n\nconst internalWrapper = {\n selector: `${descopeInternalComponentName} > .wrapper`,\n};\n\nconst internalComboBoxes = {\n selector: `${descopeInternalComponentName} > .wrapper > descope-combo-box`,\n};\n\nexport const CountrySubdivisionCityFieldClass = compose(\n createStyleMixin({\n componentNameOverride: getComponentName('input-wrapper'),\n }),\n createStyleMixin({\n mappings: {\n hostWidth: { ...host, property: 'width' },\n hostDirection: [\n { ...host, property: 'direction' },\n {\n ...internalComboBoxes,\n property: ComboBoxClass.cssVarList.hostDirection,\n },\n ],\n flexDirection: { ...internalWrapper, property: 'flex-direction' },\n flexGap: { ...internalWrapper, property: 'gap' },\n itemAlignment: { ...internalWrapper, property: 'align-items' },\n itemMinWidth: { ...internalComboBoxes, property: 'min-width' },\n itemFlexGrow: { ...internalComboBoxes, property: 'flex-grow' },\n itemWidth: {\n ...internalComboBoxes,\n property: ComboBoxClass.cssVarList.hostWidth,\n },\n },\n }),\n draggableMixin,\n proxyInputMixin({\n proxyProps: ['value'],\n inputEvent: 'input',\n proxyParentValidation: true,\n }),\n componentNameValidationMixin,\n customMixin,\n)(\n createProxy({\n slots: [],\n wrappedEleName: 'vaadin-custom-field',\n style: () => `\n :host {\n display: inline-flex;\n max-width: 100%;\n }\n vaadin-custom-field {\n line-height: unset;\n width: 100%;\n }\n\n ${descopeInternalComponentName} {\n display: inline-block;\n box-sizing: border-box;\n user-select: none;\n width: 100%;\n max-width: 100%;\n }\n\n ${descopeInternalComponentName} > .wrapper {\n display: flex;\n width: 100%;\n flex-wrap: wrap;\n }\n\n .${descopeInternalComponentName}-hidden {\n display: none;\n }\n\n`,\n excludeAttrsSync: ['tabindex', 'style', 'error-message'],\n componentName,\n }),\n);\n","import '@vaadin/custom-field';\nimport '@descope-ui/descope-combo-box';\nimport './descope-country-subdivision-city-field-internal';\n\nimport {\n componentName,\n CountrySubdivisionCityFieldClass,\n} from './CountrySubdivisionCityFieldClass';\n\ncustomElements.define(componentName, CountrySubdivisionCityFieldClass);\n\nexport { CountrySubdivisionCityFieldClass, componentName };\n"],"names":["fetchJson","async","url","response","fetch","ok","Error","status","json","data","fetchCountries","baseUrl","fetchSubdivisions","countryIso2","map","code","rest","state_code","fetchCities","stateCode","fetchLabels","labelsUrl","URL","href","fetchCitiesForCountry","componentName","SELECTING","Symbol","resolveTranslation","name","translations","lang","split","escapeHtml","str","String","replace","c","charCodeAt","countryItem","iso2","iso3","displayName","searchTerms","push","escapedIso2","escapedSearchTerms","join","escapedLabel","subdivisionItem","escapedStateCode","cityItem","escapedId","escapedName","comboBoxHTML","id","BaseInputClass","baseSelector","commonAttrs","visibilityAttrs","observedAttrs","CountrySubdivisionCityFieldInternal","observedAttributes","concat","Map","constructor","super","this","innerHTML","querySelector","getAttribute","undefined","Intl","getCanonicalLocales","toUpperCase","trim","filter","Boolean","value","country","subdivision","city","val","parsed","JSON","parse","init","addEventListener","e","isTrusted","firstInvalidCombo","find","combo","classList","contains","checkValidity","focus","renderItem","attributeChangedCallback","attrName","oldValue","newValue","includes","upper","setAttribute","size","getValidity","isRequired","countryMissing","subdivisionMissing","cityMissing","valueMissing","reverse","reportValidity","forEach","customValueTransformFn","item","baseElement","items","i","includeAttrs","mapAttrs","attr","handleFocusEventsDispatching","pendingCountry","pendingSubdivision","pendingCity","shouldLoadSubdivisions","shouldLoadCities","countriesPromise","labelsPromise","subdivisionsPromise","citiesPromise","countries","labels","subdivisions","cities","Promise","allSettled","result","toSelect","countryObj","get","subdivisionType","length","s","setTimeout","selectedItem","subdivisionCode","hasSubdivisions","label","types","subdivisionTypes","entry","_fallback","en","all","console","error","removeAttribute","prevCountry","prevSubdivision","currentIso2","allowed","pinned","filtered","sort","a","b","localeCompare","el","visible","toggle","required","hasAttribute","setCustomValidity","dispatchEvent","Event","bubbles","composed","comboBox","customElements","define","host","selector","internalWrapper","internalComboBoxes","CountrySubdivisionCityFieldClass","componentNameOverride","mappings","hostWidth","property","hostDirection","ComboBoxClass","C","cssVarList","flexDirection","flexGap","itemAlignment","itemMinWidth","itemFlexGrow","itemWidth","proxyProps","inputEvent","proxyParentValidation","superclass","template","document","createElement","appendChild","content","cloneNode","inputElement","shadowRoot","slots","wrappedEleName","style","excludeAttrsSync"],"sourceRoot":""}
package/dist/umd/index.js CHANGED
@@ -1,2 +1,2 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.DescopeUI=t():e.DescopeUI=t()}(self,()=>(()=>{var e,t,n,r={16295(e,t,n){const r=n(95256),o={};for(const e of Object.keys(r))o[r[e]]=e;const s={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};e.exports=s;for(const e of Object.keys(s)){if(!("channels"in s[e]))throw new Error("missing channels property: "+e);if(!("labels"in s[e]))throw new Error("missing channel labels property: "+e);if(s[e].labels.length!==s[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=s[e];delete s[e].channels,delete s[e].labels,Object.defineProperty(s[e],"channels",{value:t}),Object.defineProperty(s[e],"labels",{value:n})}function i(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}s.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(t,n,r),s=Math.max(t,n,r),i=s-o;let a,l;s===o?a=0:t===s?a=(n-r)/i:n===s?a=2+(r-t)/i:r===s&&(a=4+(t-n)/i),a=Math.min(60*a,360),a<0&&(a+=360);const c=(o+s)/2;return l=s===o?0:c<=.5?i/(s+o):i/(2-s-o),[a,100*l,100*c]},s.rgb.hsv=function(e){let t,n,r,o,s;const i=e[0]/255,a=e[1]/255,l=e[2]/255,c=Math.max(i,a,l),u=c-Math.min(i,a,l),d=function(e){return(c-e)/6/u+.5};return 0===u?(o=0,s=0):(s=u/c,t=d(i),n=d(a),r=d(l),i===c?o=r-n:a===c?o=1/3+t-r:l===c&&(o=2/3+n-t),o<0?o+=1:o>1&&(o-=1)),[360*o,100*s,100*c]},s.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const o=s.rgb.hsl(e)[0],i=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[o,100*i,100*r]},s.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(1-t,1-n,1-r);return[100*((1-t-o)/(1-o)||0),100*((1-n-o)/(1-o)||0),100*((1-r-o)/(1-o)||0),100*o]},s.rgb.keyword=function(e){const t=o[e];if(t)return t;let n,s=1/0;for(const t of Object.keys(r)){const o=i(e,r[t]);o<s&&(s=o,n=t)}return n},s.keyword.rgb=function(e){return r[e]},s.rgb.xyz=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255;return t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,[100*(.4124*t+.3576*n+.1805*r),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},s.rgb.lab=function(e){const t=s.rgb.xyz(e);let n=t[0],r=t[1],o=t[2];return n/=95.047,r/=100,o/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,o=o>.008856?o**(1/3):7.787*o+16/116,[116*r-16,500*(n-r),200*(r-o)]},s.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let o,s,i;if(0===n)return i=255*r,[i,i,i];o=r<.5?r*(1+n):r+n-r*n;const a=2*r-o,l=[0,0,0];for(let e=0;e<3;e++)s=t+1/3*-(e-1),s<0&&s++,s>1&&s--,i=6*s<1?a+6*(o-a)*s:2*s<1?o:3*s<2?a+(o-a)*(2/3-s)*6:a,l[e]=255*i;return l},s.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,o=n;const s=Math.max(r,.01);return r*=2,n*=r<=1?r:2-r,o*=s<=1?s:2-s,[t,100*(0===r?2*o/(s+o):2*n/(r+n)),(r+n)/2*100]},s.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const o=Math.floor(t)%6,s=t-Math.floor(t),i=255*r*(1-n),a=255*r*(1-n*s),l=255*r*(1-n*(1-s));switch(r*=255,o){case 0:return[r,l,i];case 1:return[a,r,i];case 2:return[i,r,l];case 3:return[i,a,r];case 4:return[l,i,r];case 5:return[r,i,a]}},s.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,o=Math.max(r,.01);let s,i;i=(2-n)*r;const a=(2-n)*o;return s=n*o,s/=a<=1?a:2-a,s=s||0,i/=2,[t,100*s,100*i]},s.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const o=n+r;let s;o>1&&(n/=o,r/=o);const i=Math.floor(6*t),a=1-r;s=6*t-i,1&i&&(s=1-s);const l=n+s*(a-n);let c,u,d;switch(i){default:case 6:case 0:c=a,u=l,d=n;break;case 1:c=l,u=a,d=n;break;case 2:c=n,u=a,d=l;break;case 3:c=n,u=l,d=a;break;case 4:c=l,u=n,d=a;break;case 5:c=a,u=n,d=l}return[255*c,255*u,255*d]},s.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100;return[255*(1-Math.min(1,t*(1-o)+o)),255*(1-Math.min(1,n*(1-o)+o)),255*(1-Math.min(1,r*(1-o)+o))]},s.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let o,s,i;return o=3.2406*t+-1.5372*n+-.4986*r,s=-.9689*t+1.8758*n+.0415*r,i=.0557*t+-.204*n+1.057*r,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,s=s>.0031308?1.055*s**(1/2.4)-.055:12.92*s,i=i>.0031308?1.055*i**(1/2.4)-.055:12.92*i,o=Math.min(Math.max(0,o),1),s=Math.min(Math.max(0,s),1),i=Math.min(Math.max(0,i),1),[255*o,255*s,255*i]},s.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];return t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,[116*n-16,500*(t-n),200*(n-r)]},s.lab.xyz=function(e){let t,n,r;n=(e[0]+16)/116,t=e[1]/500+n,r=n-e[2]/200;const o=n**3,s=t**3,i=r**3;return n=o>.008856?o:(n-16/116)/7.787,t=s>.008856?s:(t-16/116)/7.787,r=i>.008856?i:(r-16/116)/7.787,t*=95.047,n*=100,r*=108.883,[t,n,r]},s.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let o;return o=360*Math.atan2(r,n)/2/Math.PI,o<0&&(o+=360),[t,Math.sqrt(n*n+r*r),o]},s.lch.lab=function(e){const t=e[0],n=e[1],r=e[2]/360*2*Math.PI;return[t,n*Math.cos(r),n*Math.sin(r)]},s.rgb.ansi16=function(e,t=null){const[n,r,o]=e;let i=null===t?s.rgb.hsv(e)[2]:t;if(i=Math.round(i/50),0===i)return 30;let a=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return 2===i&&(a+=60),a},s.hsv.ansi16=function(e){return s.rgb.ansi16(s.hsv.rgb(e),e[2])},s.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},s.ansi16.rgb=function(e){let t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},s.ansi256.rgb=function(e){if(e>=232){const t=10*(e-232)+8;return[t,t,t]}let t;return e-=16,[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},s.rgb.hex=function(e){const t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},s.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];3===t[0].length&&(n=n.split("").map(e=>e+e).join(""));const r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},s.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.max(Math.max(t,n),r),s=Math.min(Math.min(t,n),r),i=o-s;let a,l;return a=i<1?s/(1-i):0,l=i<=0?0:o===t?(n-r)/i%6:o===n?2+(r-t)/i:4+(t-n)/i,l/=6,l%=1,[360*l,100*i,100*a]},s.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let o=0;return r<1&&(o=(n-.5*r)/(1-r)),[e[0],100*r,100*o]},s.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],100*r,100*o]},s.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];const o=[0,0,0],s=t%1*6,i=s%1,a=1-i;let l=0;switch(Math.floor(s)){case 0:o[0]=1,o[1]=i,o[2]=0;break;case 1:o[0]=a,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=i;break;case 3:o[0]=0,o[1]=a,o[2]=1;break;case 4:o[0]=i,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=a}return l=(1-n)*r,[255*(n*o[0]+l),255*(n*o[1]+l),255*(n*o[2]+l)]},s.hcg.hsv=function(e){const t=e[1]/100,n=t+e[2]/100*(1-t);let r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},s.hcg.hsl=function(e){const t=e[1]/100,n=e[2]/100*(1-t)+.5*t;let r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},s.hcg.hwb=function(e){const t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},s.hwb.hcg=function(e){const t=e[1]/100,n=1-e[2]/100,r=n-t;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],100*r,100*o]},s.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},s.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},s.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},s.gray.hsl=function(e){return[0,0,e[0]]},s.gray.hsv=s.gray.hsl,s.gray.hwb=function(e){return[0,100,e[0]]},s.gray.cmyk=function(e){return[0,0,0,e[0]]},s.gray.lab=function(e){return[e[0],0,0]},s.gray.hex=function(e){const t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},s.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},45362(e,t,n){const r=n(16295),o=n(55223),s={};Object.keys(r).forEach(e=>{s[e]={},Object.defineProperty(s[e],"channels",{value:r[e].channels}),Object.defineProperty(s[e],"labels",{value:r[e].labels});const t=o(e);Object.keys(t).forEach(n=>{const r=t[n];s[e][n]=function(e){const t=function(...t){const n=t[0];if(null==n)return n;n.length>1&&(t=n);const r=e(t);if("object"==typeof r)for(let e=r.length,t=0;t<e;t++)r[t]=Math.round(r[t]);return r};return"conversion"in e&&(t.conversion=e.conversion),t}(r),s[e][n].raw=function(e){const t=function(...t){const n=t[0];return null==n?n:(n.length>1&&(t=n),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)})}),e.exports=s},55223(e,t,n){const r=n(16295);function o(e,t){return function(n){return t(e(n))}}function s(e,t){const n=[t[e].parent,e];let s=r[t[e].parent][e],i=t[e].parent;for(;t[i].parent;)n.unshift(t[i].parent),s=o(r[t[i].parent][i],s),i=t[i].parent;return s.conversion=n,s}e.exports=function(e){const t=function(e){const t=function(){const e={},t=Object.keys(r);for(let n=t.length,r=0;r<n;r++)e[t[r]]={distance:-1,parent:null};return e}(),n=[e];for(t[e].distance=0;n.length;){const e=n.pop(),o=Object.keys(r[e]);for(let r=o.length,s=0;s<r;s++){const r=o[s],i=t[r];-1===i.distance&&(i.distance=t[e].distance+1,i.parent=e,n.unshift(r))}}return t}(e),n={},o=Object.keys(t);for(let e=o.length,r=0;r<e;r++){const e=o[r];null!==t[e].parent&&(n[e]=s(e,t))}return n}},95256(e){"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},43426(e,t,n){var r=n(95256),o=n(25628),s=Object.hasOwnProperty,i=Object.create(null);for(var a in r)s.call(r,a)&&(i[r[a]]=a);var l=e.exports={to:{},get:{}};function c(e,t,n){return Math.min(Math.max(t,e),n)}function u(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}l.get=function(e){var t,n;switch(e.substring(0,3).toLowerCase()){case"hsl":t=l.get.hsl(e),n="hsl";break;case"hwb":t=l.get.hwb(e),n="hwb";break;default:t=l.get.rgb(e),n="rgb"}return t?{model:n,value:t}:null},l.get.rgb=function(e){if(!e)return null;var t,n,o,i=[0,0,0,1];if(t=e.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(o=t[2],t=t[1],n=0;n<3;n++){var a=2*n;i[n]=parseInt(t.slice(a,a+2),16)}o&&(i[3]=parseInt(o,16)/255)}else if(t=e.match(/^#([a-f0-9]{3,4})$/i)){for(o=(t=t[1])[3],n=0;n<3;n++)i[n]=parseInt(t[n]+t[n],16);o&&(i[3]=parseInt(o+o,16)/255)}else if(t=e.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(n=0;n<3;n++)i[n]=parseInt(t[n+1],0);t[4]&&(t[5]?i[3]=.01*parseFloat(t[4]):i[3]=parseFloat(t[4]))}else{if(!(t=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(t=e.match(/^(\w+)$/))?"transparent"===t[1]?[0,0,0,0]:s.call(r,t[1])?((i=r[t[1]])[3]=1,i):null:null;for(n=0;n<3;n++)i[n]=Math.round(2.55*parseFloat(t[n+1]));t[4]&&(t[5]?i[3]=.01*parseFloat(t[4]):i[3]=parseFloat(t[4]))}for(n=0;n<3;n++)i[n]=c(i[n],0,255);return i[3]=c(i[3],0,1),i},l.get.hsl=function(e){if(!e)return null;var t=e.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var n=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,c(parseFloat(t[2]),0,100),c(parseFloat(t[3]),0,100),c(isNaN(n)?1:n,0,1)]}return null},l.get.hwb=function(e){if(!e)return null;var t=e.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var n=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,c(parseFloat(t[2]),0,100),c(parseFloat(t[3]),0,100),c(isNaN(n)?1:n,0,1)]}return null},l.to.hex=function(){var e=o(arguments);return"#"+u(e[0])+u(e[1])+u(e[2])+(e[3]<1?u(Math.round(255*e[3])):"")},l.to.rgb=function(){var e=o(arguments);return e.length<4||1===e[3]?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},l.to.rgb.percent=function(){var e=o(arguments),t=Math.round(e[0]/255*100),n=Math.round(e[1]/255*100),r=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+t+"%, "+n+"%, "+r+"%)":"rgba("+t+"%, "+n+"%, "+r+"%, "+e[3]+")"},l.to.hsl=function(){var e=o(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},l.to.hwb=function(){var e=o(arguments),t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},l.to.keyword=function(e){return i[e.slice(0,3)]}},18524(e,t,n){const r=n(43426),o=n(45362),s=["keyword","gray","hex"],i={};for(const e of Object.keys(o))i[[...o[e].labels].sort().join("")]=e;const a={};function l(e,t){if(!(this instanceof l))return new l(e,t);if(t&&t in s&&(t=null),t&&!(t in o))throw new Error("Unknown model: "+t);let n,c;if(null==e)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof l)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if("string"==typeof e){const t=r.get(e);if(null===t)throw new Error("Unable to parse color from string: "+e);this.model=t.model,c=o[this.model].channels,this.color=t.value.slice(0,c),this.valpha="number"==typeof t.value[c]?t.value[c]:1}else if(e.length>0){this.model=t||"rgb",c=o[this.model].channels;const n=Array.prototype.slice.call(e,0,c);this.color=p(n,c),this.valpha="number"==typeof e[c]?e[c]:1}else if("number"==typeof e)this.model="rgb",this.color=[e>>16&255,e>>8&255,255&e],this.valpha=1;else{this.valpha=1;const t=Object.keys(e);"alpha"in e&&(t.splice(t.indexOf("alpha"),1),this.valpha="number"==typeof e.alpha?e.alpha:0);const r=t.sort().join("");if(!(r in i))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=i[r];const{labels:s}=o[this.model],a=[];for(n=0;n<s.length;n++)a.push(e[s[n]]);this.color=p(a)}if(a[this.model])for(c=o[this.model].channels,n=0;n<c;n++){const e=a[this.model][n];e&&(this.color[n]=e(this.color[n]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}l.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(e){let t=this.model in r.to?this:this.rgb();t=t.round("number"==typeof e?e:1);const n=1===t.valpha?t.color:[...t.color,this.valpha];return r.to[t.model](n)},percentString(e){const t=this.rgb().round("number"==typeof e?e:1),n=1===t.valpha?t.color:[...t.color,this.valpha];return r.to.rgb.percent(n)},array(){return 1===this.valpha?[...this.color]:[...this.color,this.valpha]},object(){const e={},{channels:t}=o[this.model],{labels:n}=o[this.model];for(let r=0;r<t;r++)e[n[r]]=this.color[r];return 1!==this.valpha&&(e.alpha=this.valpha),e},unitArray(){const e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,1!==this.valpha&&e.push(this.valpha),e},unitObject(){const e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,1!==this.valpha&&(e.alpha=this.valpha),e},round(e){return e=Math.max(e||0,0),new l([...this.color.map(c(e)),this.valpha],this.model)},alpha(e){return void 0!==e?new l([...this.color,Math.max(0,Math.min(1,e))],this.model):this.valpha},red:u("rgb",0,d(255)),green:u("rgb",1,d(255)),blue:u("rgb",2,d(255)),hue:u(["hsl","hsv","hsl","hwb","hcg"],0,e=>(e%360+360)%360),saturationl:u("hsl",1,d(100)),lightness:u("hsl",2,d(100)),saturationv:u("hsv",1,d(100)),value:u("hsv",2,d(100)),chroma:u("hcg",1,d(100)),gray:u("hcg",2,d(100)),white:u("hwb",1,d(100)),wblack:u("hwb",2,d(100)),cyan:u("cmyk",0,d(100)),magenta:u("cmyk",1,d(100)),yellow:u("cmyk",2,d(100)),black:u("cmyk",3,d(100)),x:u("xyz",0,d(95.047)),y:u("xyz",1,d(100)),z:u("xyz",2,d(108.833)),l:u("lab",0,d(100)),a:u("lab",1),b:u("lab",2),keyword(e){return void 0!==e?new l(e):o[this.model].keyword(this.color)},hex(e){return void 0!==e?new l(e):r.to.hex(this.rgb().round().color)},hexa(e){if(void 0!==e)return new l(e);const t=this.rgb().round().color;let n=Math.round(255*this.valpha).toString(16).toUpperCase();return 1===n.length&&(n="0"+n),r.to.hex(t)+n},rgbNumber(){const e=this.rgb().color;return(255&e[0])<<16|(255&e[1])<<8|255&e[2]},luminosity(){const e=this.rgb().color,t=[];for(const[n,r]of e.entries()){const e=r/255;t[n]=e<=.04045?e/12.92:((e+.055)/1.055)**2.4}return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(e){const t=this.luminosity(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},level(e){const t=this.contrast(e);return t>=7?"AAA":t>=4.5?"AA":""},isDark(){const e=this.rgb().color;return(2126*e[0]+7152*e[1]+722*e[2])/1e4<128},isLight(){return!this.isDark()},negate(){const e=this.rgb();for(let t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten(e){const t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken(e){const t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate(e){const t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate(e){const t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten(e){const t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken(e){const t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale(){const e=this.rgb().color,t=.3*e[0]+.59*e[1]+.11*e[2];return l.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){const t=this.hsl();let n=t.color[0];return n=(n+e)%360,n=n<0?360+n:n,t.color[0]=n,t},mix(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);const n=e.rgb(),r=this.rgb(),o=void 0===t?.5:t,s=2*o-1,i=n.alpha()-r.alpha(),a=((s*i===-1?s:(s+i)/(1+s*i))+1)/2,c=1-a;return l.rgb(a*n.red()+c*r.red(),a*n.green()+c*r.green(),a*n.blue()+c*r.blue(),n.alpha()*o+r.alpha()*(1-o))}};for(const e of Object.keys(o)){if(s.includes(e))continue;const{channels:t}=o[e];l.prototype[e]=function(...t){return this.model===e?new l(this):t.length>0?new l(t,e):new l([...(n=o[this.model][e].raw(this.color),Array.isArray(n)?n:[n]),this.valpha],e);var n},l[e]=function(...n){let r=n[0];return"number"==typeof r&&(r=p(n,t)),new l(r,e)}}function c(e){return function(t){return function(e,t){return Number(e.toFixed(t))}(t,e)}}function u(e,t,n){e=Array.isArray(e)?e:[e];for(const r of e)(a[r]||(a[r]=[]))[t]=n;return e=e[0],function(r){let o;return void 0!==r?(n&&(r=n(r)),o=this[e](),o.color[t]=r,o):(o=this[e]().color[t],n&&(o=n(o)),o)}}function d(e){return function(t){return Math.max(0,Math.min(e,t))}}function p(e,t){for(let n=0;n<t;n++)"number"!=typeof e[n]&&(e[n]=0);return e}e.exports=l},68049(e,t,n){var r=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,i=/^0o[0-7]+$/i,a=parseInt,l="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,c="object"==typeof self&&self&&self.Object===Object&&self,u=l||c||Function("return this")(),d=Object.prototype.toString,p=Math.max,h=Math.min,f=function(){return u.Date.now()};function b(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function g(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==d.call(e)}(e))return NaN;if(b(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=b(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(r,"");var n=s.test(e);return n||i.test(e)?a(e.slice(2),n?2:8):o.test(e)?NaN:+e}e.exports=function(e,t,n){var r,o,s,i,a,l,c=0,u=!1,d=!1,m=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function H(t){var n=r,s=o;return r=o=void 0,c=t,i=e.apply(s,n)}function y(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-c>=s}function v(){var e=f();if(y(e))return S(e);a=setTimeout(v,function(e){var n=t-(e-l);return d?h(n,s-(e-c)):n}(e))}function S(e){return a=void 0,m&&r?H(e):(r=o=void 0,i)}function j(){var e=f(),n=y(e);if(r=arguments,o=this,l=e,n){if(void 0===a)return function(e){return c=e,a=setTimeout(v,t),u?H(e):i}(l);if(d)return a=setTimeout(v,t),H(l)}return void 0===a&&(a=setTimeout(v,t)),i}return t=g(t)||0,b(n)&&(u=!!n.leading,s=(d="maxWait"in n)?p(g(n.maxWait)||0,t):s,m="trailing"in n?!!n.trailing:m),j.cancel=function(){void 0!==a&&clearTimeout(a),c=0,r=l=o=a=void 0},j.flush=function(){return void 0===a?i:S(f())},j}},21642(e,t,n){e=n.nmd(e);var r="__lodash_hash_undefined__",o=9007199254740991,s="[object Arguments]",i="[object Function]",a="[object Object]",l=/^\[object .+?Constructor\]$/,c=/^(?:0|[1-9]\d*)$/,u={};u["[object Float32Array]"]=u["[object Float64Array]"]=u["[object Int8Array]"]=u["[object Int16Array]"]=u["[object Int32Array]"]=u["[object Uint8Array]"]=u["[object Uint8ClampedArray]"]=u["[object Uint16Array]"]=u["[object Uint32Array]"]=!0,u[s]=u["[object Array]"]=u["[object ArrayBuffer]"]=u["[object Boolean]"]=u["[object DataView]"]=u["[object Date]"]=u["[object Error]"]=u[i]=u["[object Map]"]=u["[object Number]"]=u[a]=u["[object RegExp]"]=u["[object Set]"]=u["[object String]"]=u["[object WeakMap]"]=!1;var d,p,h,f="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,b="object"==typeof self&&self&&self.Object===Object&&self,g=f||b||Function("return this")(),m=t&&!t.nodeType&&t,H=m&&e&&!e.nodeType&&e,y=H&&H.exports===m,v=y&&f.process,S=function(){try{return H&&H.require&&H.require("util").types||v&&v.binding&&v.binding("util")}catch(e){}}(),j=S&&S.isTypedArray,x=Array.prototype,w=Function.prototype,A=Object.prototype,C=g["__core-js_shared__"],I=w.toString,N=A.hasOwnProperty,k=(d=/[^.]+$/.exec(C&&C.keys&&C.keys.IE_PROTO||""))?"Symbol(src)_1."+d:"",U=A.toString,K=I.call(Object),R=RegExp("^"+I.call(N).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),O=y?g.Buffer:void 0,M=g.Symbol,P=g.Uint8Array,E=(O&&O.allocUnsafe,p=Object.getPrototypeOf,h=Object,function(e){return p(h(e))}),z=Object.create,F=A.propertyIsEnumerable,T=x.splice,q=M?M.toStringTag:void 0,_=function(){try{var e=ae(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),D=O?O.isBuffer:void 0,G=Math.max,W=Date.now,V=ae(g,"Map"),$=ae(Object,"create"),L=function(){function e(){}return function(t){if(!ye(t))return{};if(z)return z(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function J(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function B(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Q(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Z(e){var t=this.__data__=new B(e);this.size=t.size}function Y(e,t,n){(void 0!==n&&!pe(e[t],n)||void 0===n&&!(t in e))&&te(e,t,n)}function X(e,t,n){var r=e[t];N.call(e,t)&&pe(r,n)&&(void 0!==n||t in e)||te(e,t,n)}function ee(e,t){for(var n=e.length;n--;)if(pe(e[n][0],t))return n;return-1}function te(e,t,n){"__proto__"==t&&_?_(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}J.prototype.clear=function(){this.__data__=$?$(null):{},this.size=0},J.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},J.prototype.get=function(e){var t=this.__data__;if($){var n=t[e];return n===r?void 0:n}return N.call(t,e)?t[e]:void 0},J.prototype.has=function(e){var t=this.__data__;return $?void 0!==t[e]:N.call(t,e)},J.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=$&&void 0===t?r:t,this},B.prototype.clear=function(){this.__data__=[],this.size=0},B.prototype.delete=function(e){var t=this.__data__,n=ee(t,e);return!(n<0||(n==t.length-1?t.pop():T.call(t,n,1),--this.size,0))},B.prototype.get=function(e){var t=this.__data__,n=ee(t,e);return n<0?void 0:t[n][1]},B.prototype.has=function(e){return ee(this.__data__,e)>-1},B.prototype.set=function(e,t){var n=this.__data__,r=ee(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Q.prototype.clear=function(){this.size=0,this.__data__={hash:new J,map:new(V||B),string:new J}},Q.prototype.delete=function(e){var t=ie(this,e).delete(e);return this.size-=t?1:0,t},Q.prototype.get=function(e){return ie(this,e).get(e)},Q.prototype.has=function(e){return ie(this,e).has(e)},Q.prototype.set=function(e,t){var n=ie(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Z.prototype.clear=function(){this.__data__=new B,this.size=0},Z.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Z.prototype.get=function(e){return this.__data__.get(e)},Z.prototype.has=function(e){return this.__data__.has(e)},Z.prototype.set=function(e,t){var n=this.__data__;if(n instanceof B){var r=n.__data__;if(!V||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Q(r)}return n.set(e,t),this.size=n.size,this};function ne(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":q&&q in Object(e)?function(e){var t=N.call(e,q),n=e[q];try{e[q]=void 0;var r=!0}catch(e){}var o=U.call(e);return r&&(t?e[q]=n:delete e[q]),o}(e):function(e){return U.call(e)}(e)}function re(e){return ve(e)&&ne(e)==s}function oe(e,t,n,r,o){e!==t&&function(e,t,n){for(var r=-1,o=Object(e),s=n(e),i=s.length;i--;){var a=s[++r];if(!1===t(o[a],a,o))break}}(t,function(s,i){if(o||(o=new Z),ye(s))!function(e,t,n,r,o,s,i){var l=ue(e,n),c=ue(t,n),u=i.get(c);if(u)Y(e,n,u);else{var d,p,h,f,b,g=s?s(l,c,n+"",e,t,i):void 0,m=void 0===g;if(m){var H=fe(c),y=!H&&ge(c),v=!H&&!y&&Se(c);g=c,H||y||v?fe(l)?g=l:ve(b=l)&&be(b)?g=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(l):y?(m=!1,g=function(e){return e.slice()}(c)):v?(m=!1,f=new(h=(d=c).buffer).constructor(h.byteLength),new P(f).set(new P(h)),p=f,g=new d.constructor(p,d.byteOffset,d.length)):g=[]:function(e){if(!ve(e)||ne(e)!=a)return!1;var t=E(e);if(null===t)return!0;var n=N.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&I.call(n)==K}(c)||he(c)?(g=l,he(l)?g=function(e){return function(e,t,n){var r=!n;n||(n={});for(var o=-1,s=t.length;++o<s;){var i=t[o],a=void 0;void 0===a&&(a=e[i]),r?te(n,i,a):X(n,i,a)}return n}(e,je(e))}(l):ye(l)&&!me(l)||(g=function(e){return"function"!=typeof e.constructor||ce(e)?{}:L(E(e))}(c))):m=!1}m&&(i.set(c,g),o(g,c,r,s,i),i.delete(c)),Y(e,n,g)}}(e,t,i,n,oe,r,o);else{var l=r?r(ue(e,i),s,i+"",e,t,o):void 0;void 0===l&&(l=s),Y(e,i,l)}},je)}var se=_?function(e,t){return _(e,"toString",{configurable:!0,enumerable:!1,value:(n=t,function(){return n}),writable:!0});var n}:Ae;function ie(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function ae(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!ye(e)||function(e){return!!k&&k in e}(e))&&(me(e)?R:l).test(function(e){if(null!=e){try{return I.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}(n)?n:void 0}function le(e,t){var n=typeof e;return!!(t=null==t?o:t)&&("number"==n||"symbol"!=n&&c.test(e))&&e>-1&&e%1==0&&e<t}function ce(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||A)}function ue(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var de=function(e){var t=0,n=0;return function(){var r=W(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(se);function pe(e,t){return e===t||e!=e&&t!=t}var he=re(function(){return arguments}())?re:function(e){return ve(e)&&N.call(e,"callee")&&!F.call(e,"callee")},fe=Array.isArray;function be(e){return null!=e&&He(e.length)&&!me(e)}var ge=D||function(){return!1};function me(e){if(!ye(e))return!1;var t=ne(e);return t==i||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function He(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}function ye(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ve(e){return null!=e&&"object"==typeof e}var Se=j?function(e){return function(t){return e(t)}}(j):function(e){return ve(e)&&He(e.length)&&!!u[ne(e)]};function je(e){return be(e)?function(e,t){var n=fe(e),r=!n&&he(e),o=!n&&!r&&ge(e),s=!n&&!r&&!o&&Se(e),i=n||r||o||s,a=i?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],l=a.length;for(var c in e)!t&&!N.call(e,c)||i&&("length"==c||o&&("offset"==c||"parent"==c)||s&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||le(c,l))||a.push(c);return a}(e,!0):function(e){if(!ye(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=ce(e),n=[];for(var r in e)("constructor"!=r||!t&&N.call(e,r))&&n.push(r);return n}(e)}var xe,we=(xe=function(e,t,n){oe(e,t,n)},function(e,t){return de(function(e,t,n){return t=G(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,s=G(r.length-t,0),i=Array(s);++o<s;)i[o]=r[t+o];o=-1;for(var a=Array(t+1);++o<t;)a[o]=r[o];return a[t]=n(i),function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}(e,this,a)}}(e,t,Ae),e+"")}(function(e,t){var n=-1,r=t.length,o=r>1?t[r-1]:void 0,s=r>2?t[2]:void 0;for(o=xe.length>3&&"function"==typeof o?(r--,o):void 0,s&&function(e,t,n){if(!ye(n))return!1;var r=typeof t;return!!("number"==r?be(n)&&le(t,n.length):"string"==r&&t in n)&&pe(n[t],e)}(t[0],t[1],s)&&(o=r<3?void 0:o,r=1),e=Object(e);++n<r;){var i=t[n];i&&xe(e,i,n)}return e}));function Ae(e){return e}e.exports=we},25628(e,t,n){"use strict";var r=n(55308),o=Array.prototype.concat,s=Array.prototype.slice,i=e.exports=function(e){for(var t=[],n=0,i=e.length;n<i;n++){var a=e[n];r(a)?t=o.call(t,s.call(a)):t.push(a)}return t};i.wrap=function(e){return function(){return e(i(arguments))}}},55308(e){e.exports=function(e){return!(!e||"string"==typeof e)&&(e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&"String"!==e.constructor.name))}},25964(e,t,n){"use strict";n.d(t,{EA:()=>d,Ge:()=>i,Gh:()=>l,Ix:()=>u,fz:()=>h,ie:()=>g,mx:()=>s,q:()=>p,xE:()=>c});var r=n(63200),o=n(69591);const s=(e,t,{excludeAttrs:n=[],includeAttrs:r=[]})=>{const o=Array.from(e.attributes).filter(e=>!n.includes(e.name)&&(!r.length||r.includes(e.name))).map(e=>e.name);t(o),new MutationObserver(e=>{e.forEach(e=>{"attributes"!==e.type||n.includes(e.attributeName)||r.length&&!r.includes(e.attributeName)||t([e.attributeName])})}).observe(e,{attributes:!0})},i=(e,t)=>{t({addedNodes:Array.from(e.children),removedNodes:[]}),new MutationObserver(e=>{e.forEach(e=>{"childList"!==e.type&&"characterData"!==e.type||t(e)})}).observe(e,{childList:!0,characterData:!0,subtree:!0})},a=(e,t,n={})=>r=>{r.forEach(r=>{const o=n[r]||r,s=e.getAttribute(r);t&&(null!==s?t.getAttribute(o)!==s&&t.setAttribute(o,s):t.removeAttribute(o))})},l=(e,t,n)=>{s(e,a(e,t),n),s(t,a(t,e),n)},c=e=>(0,r.GL)(o.$m,e),u=(...e)=>`--${(0,r.GL)(...e)}`,d=(e,t,n={})=>{s(e,a(e,t,n.mapAttrs),n)},p=(e,t,n=[])=>{if(!n.length)return;const r=n.reduce((t,n)=>Object.assign(t,{[n]:{get:()=>e[n],set(t){e[n]=t}}}),{});Object.defineProperties(t,r)},h=(e,t,{prepend:n=!1}={})=>{let r;try{r=new CSSStyleSheet}catch(r){return b(e,t,{prepend:n})}const o=t?.shadowRoot||t;if(e&&r.replaceSync(e),o){const e=[...o.adoptedStyleSheets||[]];e[n?"unshift":"push"](r),o.adoptedStyleSheets=e}return e&&!r.cssRules[0]?.style&&console.warn(`No style rules were created, make sure the CSS is valid:\n "${e}"`),r};class f{constructor(e,t,{prepend:n=!1}={}){this.styleEle=document.createElement("style"),this.styleEle.textContent=e,this.styleEle.setAttribute("nonce",window.DESCOPE_NONCE),this.ref=t?.shadowRoot||t,this.ref&&(n?this.ref.prepend(this.styleEle):this.ref.append(this.styleEle))}replaceSync(e){this.styleEle.textContent=e}get cssRules(){return this.styleEle.sheet?.cssRules}}const b=(e,t,{prepend:n=!1}={})=>new f(e,t,{prepend:n}),g=(e,t=2)=>e.trim().split(" ").splice(0,t).map(e=>e[0]?.toUpperCase()).join("")},69591(e,t,n){"use strict";n.d(t,{$m:()=>r,IM:()=>s,aE:()=>o});const r="descope",o=5,s="host"},74556(e,t,n){},4097(e,t,n){"use strict";n.d(t,{b:()=>r});const r=new class{static mountOnPropName="DescopeThemeManager";#e={};#t="light";#n=new Set;#r(){this.#n.forEach(e=>e?.())}get currentThemeName(){return this.#t}set currentThemeName(e){this.#t=e,this.#r()}get currentTheme(){return this.#e[this.currentThemeName]}onCurrentThemeChange(e){return this.#n.add(e),()=>{this.#n.delete(e)}}set themes(e){this.#e=e,this.#r()}get hasThemes(){return!!Object.keys(this.#e).length}}},79673(e,t,n){"use strict";n.d(t,{$J:()=>o.$J,I4:()=>o.I4,Kl:()=>o.Kl,br:()=>r.b,cy:()=>o.cy,fu:()=>o.fu,lS:()=>o.lS}),n(21642),n(63200),n(25964);var r=n(4097),o=(n(74556),n(69461))},69461(e,t,n){"use strict";n.d(t,{$J:()=>a,I4:()=>o,Kl:()=>l,cy:()=>r,fu:()=>i,lS:()=>s});const r=e=>`\n :host {\n padding: calc(var(${e.inputOutlineWidth}) + var(${e.inputOutlineOffset}))\n }\n`,o=e=>`\n ${e} > label,\n ${e}::part(label),\n ${e}::part(required-indicator) {\n cursor: pointer;\n }\n`,s=(e,t="input")=>`\n ${e}[disabled] > ${t}:placeholder-shown,\n\t${e}[readonly] > ${t}:placeholder-shown {\n\t\topacity: 1;\n\t}\n`,i=e=>`\n ${e}::part(input-field)::after {\n opacity: 0;\n }\n`,a=e=>`\n :host ::part(error-message) {\n direction: ltr;\n }\n :host([required]) ::part(required-indicator) {\n width: 1em;\n display: inline-flex;\n }\n :host([required]) ::part(required-indicator)::after {\n position: static;\n }\n :host([has-label]) ::part(label) {\n padding-right: 0;\n padding-bottom: 0;\n display: flex;\n width: 100%;\n }\n ${e} [slot="label"] {\n max-width: calc(100% - 1em);\n overflow: hidden;\n text-overflow: ellipsis;\n padding-bottom: 0.5em;\n }\n`,l=()=>'\n :host([label-type="floating"]) {\n position: relative;\n }\n :host([label-type="floating"][has-label]) > ::part(label) {\n z-index: 1;\n padding: 0;\n width: auto;\n }\n '},86507(e,t,n){"use strict";n.d(t,{g:()=>s});var r=n(68049),o=n.n(r);const s=(e,t)=>{let n=0;const r=new Set,s=new Set,i=o()((t,o)=>{e(...t).then(e=>{o===n&&(r.forEach(t=>t(e)),r.clear())}).catch(e=>{s.forEach(t=>t(e)),s.clear()})},t);return(...e)=>(n++,new Promise((t,o)=>{r.add(t),s.add(o),i(e,n)}))}},63200(e,t,n){"use strict";n.d(t,{GL:()=>s,Tn:()=>l,Zz:()=>a,dk:()=>i,g5:()=>r.g,kW:()=>o});var r=n(86507);const o=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_.]+/g,"-").toLowerCase(),s=(...e)=>o(e.filter(e=>!!e).join("-")),i=(...e)=>e.filter(Boolean).map((e,t)=>{return 0===t?e:(n=e).charAt(0).toUpperCase()+n.slice(1);var n}).join(""),a=(...e)=>t=>e.reduceRight((e,t)=>t(e),t),l=e=>"function"==typeof e},3047(e,t,n){"use strict";n.d(t,{$m:()=>r,IM:()=>s,WJ:()=>i,aE:()=>o});const r="descope",o=5,s="host",i="@"},97810(e,t,n){"use strict";n.d(t,{EA:()=>d,Ge:()=>i,Gh:()=>l,Ix:()=>u,mx:()=>s,q:()=>p,xE:()=>c});var r=n(9696),o=n(3047);const s=(e,t,{excludeAttrs:n=[],includeAttrs:r=[]})=>{const o=Array.from(e.attributes).filter(e=>!n.includes(e.name)&&(!r.length||r.includes(e.name))).map(e=>e.name);t(o),new MutationObserver(e=>{e.forEach(e=>{"attributes"!==e.type||n.includes(e.attributeName)||r.length&&!r.includes(e.attributeName)||t([e.attributeName])})}).observe(e,{attributes:!0})},i=(e,t)=>{t({addedNodes:Array.from(e.children),removedNodes:[]}),new MutationObserver(e=>{e.forEach(e=>{"childList"!==e.type&&"characterData"!==e.type||t(e)})}).observe(e,{childList:!0,characterData:!0,subtree:!0})},a=(e,t,n={})=>r=>{r.forEach(r=>{const o=n[r]||r,s=e.getAttribute(r);t&&(null!==s?t.getAttribute(o)!==s&&t.setAttribute(o,s):t.removeAttribute(o))})},l=(e,t,n)=>{s(e,a(e,t),n),s(t,a(t,e),n)},c=e=>(0,r.GL)(o.$m,e),u=(...e)=>`--${(0,r.GL)(...e)}`,d=(e,t,n={})=>{s(e,a(e,t,n.mapAttrs),n)},p=(e,t,n=[])=>{if(!n.length)return;const r=n.reduce((t,n)=>Object.assign(t,{[n]:{get:()=>e[n],set(t){e[n]=t}}}),{});Object.defineProperties(t,r)}},9696(e,t,n){"use strict";n.d(t,{AG:()=>c,GL:()=>o,Tn:()=>a,Zz:()=>i,dk:()=>s,gU:()=>l,kW:()=>r,wy:()=>u});const r=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_.]+/g,"-").toLowerCase(),o=(...e)=>r(e.filter(e=>!!e).join("-")),s=(...e)=>e.filter(Boolean).map((e,t)=>{return 0===t?e:(n=e).charAt(0).toUpperCase()+n.slice(1);var n}).join(""),i=(...e)=>t=>e.reduceRight((e,t)=>t(e),t),a=e=>"function"==typeof e,l=e=>{try{return new URL(e),!0}catch(e){return!1}},c=(e,t)=>{if(!Array.isArray(e)||!Array.isArray(t))return!1;if(e.length!==t.length)return!1;const n=e.slice().sort(),r=t.slice().sort();for(let e=0;e<n.length;e++)if(n[e]!==r[e])return!1;return!0},u=e=>e.replace(/([A-Z])/g," $1").trim().split(" ").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")},40070(e,t,n){"use strict";n.d(t,{e:()=>g,t:()=>m});var r=n(18524),o=n.n(r);const s=.4,i=.25,a=.1,l=(e,t)=>e.darken(t).hex(),c=e=>{const t=e.isDark();return e.mix(o()(t?"white":"black"),1).saturate(1).hex()},u=(e,t)=>e.lightness()<.5?e.lightness(100*t).hex():e.lighten(t).hex(),d=e=>e.luminosity()<.01,p=e=>e.luminosity()>.99,h=(e,t)=>"dark"===t?p(e)?l(e,i):u(e,s):d(e)?u(e,i):l(e,s),f=(e,t)=>"dark"===t?d(e)?u(e,i):l(e,s):p(e)?l(e,i):u(e,s),b=(e,t)=>"dark"===t?d(e)?u(e,a):l(e,.8):p(e)?l(e,a):u(e,.8),g=(e,t)=>{const n=new(o())(e.main||e);return{main:n.hex(),dark:e.dark||h(n,t),light:e.light||f(n,t),highlight:e.highlight||b(n,t),contrast:e.contrast||c(n)}},m=e=>Object.keys(e).reduce((t,n)=>{const r=e[n];return Object.assign(t,{[n]:g(r)})},{})},73227(e,t,n){"use strict";n.r(t),n.d(t,{componentsThemeManager:()=>l.br,createComponentsTheme:()=>v,createHelperVars:()=>x,genColor:()=>c.e,genColors:()=>c.t,getThemeRefs:()=>g,getThemeVars:()=>m,globalsThemeToStyle:()=>H,inputFloatingLabelStyle:()=>u.Kl,resetInitialHeight:()=>u.T8,resetInputAutoFill:()=>u.AI,resetInputContainer:()=>u.zm,resetInputCursor:()=>u.I4,resetInputElement:()=>u.mC,resetInputField:()=>u.Qv,resetInputFieldDefaultWidth:()=>u.X6,resetInputFieldInvalidBackgroundColor:()=>u.kG,resetInputFieldUnderlayingBorder:()=>u.cQ,resetInputLabelPosition:()=>u.$J,resetInputOverrides:()=>u.LJ,resetInputPlaceholder:()=>u.lS,resetInputReadonlyStyle:()=>u.fu,themeToCSSVarsObj:()=>b,themeToStyle:()=>S,useHostExternalPadding:()=>u.cy,useVar:()=>j});var r=n(21642),o=n.n(r),s=n(3047),i=n(9696),a=n(97810),l=n(79673),c=n(40070),u=n(73551);const d=e=>(0,a.Ix)(s.$m,...e),p=(e,t,n)=>{const r=Array.isArray(t)?t:t.match(/([^[.\]])+/g);return r.reduce((e,t,o)=>(void 0===e[t]&&(e[t]={}),o===r.length-1&&(e[t]=n),e[t]),e),e},h=(e,t,n)=>Object.entries(e).reduce((e,[r,s])=>s?.constructor!==Object?o()(e,n(t.concat(r),s)):o()(e,h(s,[...t,r],n)),{}),f=e=>{switch(!0){case Array.isArray(e):return e.map(e=>e.includes(" ")?`"${e}"`:e).join(", ");case(0,i.gU)(e):return`url(${e})`;default:return e}},b=e=>h(e,[],(e,t)=>({[d(e)]:f(t)})),g=(e,t)=>h(e,[],e=>p({},e,`var(${d(t?[t,...e]:e)})`)),m=(e,t)=>h(e,[],e=>p({},e,d(t?[t,...e]:e))),H=(e,t="")=>{const n=Object.entries(b(e)).reduce((e,t)=>`${e}${t.join(":")};\n`,"");return t?`*[data-theme="${t}"] {${n}}`:n},y=e=>Object.entries(e).reduce((e,[t,n])=>`${e}${t} { \n${Object.entries(n).map(([e,t])=>`${e}: ${t}`).join(";\n")} \n}\n\n`,""),v=e=>{const t=(e=>h(e,[],(e,t)=>{const[n,...r]=e,o=r.pop(),l=(0,a.xE)(n);"undefined"===o&&console.warn(l,`theme value: "${t}" is mapped to an invalid property`);let c=s.IM;r[0]&&r[0].startsWith(s.WJ)&&(c=r.shift());const u=r.reduce((e,t,n)=>{const[o,s]=function(e){const t=e.match(/^(&+)?(.*)$/);return[t[1]||"",t[2]||""]}(t),a=Math.min(o.length+1,3);if(s.startsWith("_"))return e+`[${(0,i.kW)(s.replace(/^_/,""))}="true"]`.repeat(a);const l=r[n+1];return"string"!=typeof l||l.startsWith("_")||l.startsWith("&")?(console.error("theme generator",`your theme structure is invalid, attribute "${t}" is followed by "${l}" which is not allowed`),e):e+`[${(0,i.kW)(s)}="${r.splice(n+1,1).join("")}"]`.repeat(a)},""),d=":host"+(u?`(${u})`:"");return{[l]:{[c]:{[d]:{[o]:f(t)}}}}}))(e);return Object.keys(t).reduce((e,n)=>{const r=t[n];return Object.assign(e,{[n]:Object.keys(r).reduce((e,t)=>Object.assign(e,{[t]:y(r[t])}),{})})},{})},S=({globals:e,components:t},n)=>({globals:H(e,n),components:v(t)}),j=(...e)=>e.reduceRight((e,t)=>t.startsWith("--")?`var(${t}${e?`, ${e}`:e})`:`${t}${e?`, ${e}`:e}`,""),x=(e,t)=>{const n=h(e,[],(e,n)=>{const r=[...e],o=r.splice(-1),s=(0,a.Ix)(t,o),i={[o]:s},l={[o]:j(s)};return{theme:p({},[...r,s],n),useVars:l,vars:i}});return[n.theme,n.useVars,n.vars]}},73551(e,t,n){"use strict";n.d(t,{$J:()=>g,AI:()=>d,I4:()=>c,Kl:()=>m,LJ:()=>b,Qv:()=>l,T8:()=>s,X6:()=>p,cQ:()=>o,cy:()=>r,fu:()=>h,kG:()=>f,lS:()=>u,mC:()=>i,zm:()=>a});const r=e=>`\n :host {\n padding: calc(var(${e.inputOutlineWidth}) + var(${e.inputOutlineOffset}))\n }\n`,o=e=>`\n ${e}::part(input-field)::after {\n border: none;\n }\n`,s=e=>`\n ${e}::before {\n\t\theight: unset;\n\t}\n`,i=e=>`\n ${e} > input {\n -webkit-mask-image: none;\n min-height: 0;\n box-sizing: border-box;\n }\n`,a=e=>`\n ${e} {\n margin: 0;\n padding: 0;\n width: 100%;\n height: 100%;\n box-sizing: border-box;\n }\n`,l=e=>`\n ${e}::part(input-field) {\n overflow: hidden;\n padding: 0;\n box-shadow: none;\n }\n`,c=e=>`\n ${e} > label,\n ${e}::part(label),\n ${e}::part(required-indicator) {\n cursor: pointer;\n }\n`,u=(e,t="input")=>`\n ${e}[disabled] > ${t}:placeholder-shown,\n\t${e}[readonly] > ${t}:placeholder-shown {\n\t\topacity: 1;\n\t}\n`,d=(e,t)=>`\n ${e} input:-webkit-autofill,\n ${e} input:-webkit-autofill::first-line,\n ${e} input:-webkit-autofill:hover,\n ${e} input:-webkit-autofill:active,\n ${e} input:-webkit-autofill:focus {\n -webkit-text-fill-color: var(${t.inputValueTextColor});\n box-shadow: 0 0 0 var(${t.inputHeight}) var(${t.inputBackgroundColor}) inset;\n }\n`,p=()=>"\n :host {\n --vaadin-field-default-width: auto;\n box-sizing: border-box;\n }\n",h=e=>`\n ${e}::part(input-field)::after {\n opacity: 0;\n }\n`,f=e=>`\n ${e}::part(input-field)::after {\n background: none;\n }\n`,b=(e,t)=>`\n ${a(e)}\n ${c(e)}\n ${u(e)}\n ${l(e)}\n ${d(e,t)}\n ${f(e)}\n ${s(e)}\n ${i(e)}\n ${o(e)}\n`,g=e=>`\n :host ::part(error-message) {\n direction: ltr;\n }\n :host([required]) ::part(required-indicator) {\n width: 1em;\n display: inline-flex;\n }\n :host([required]) ::part(required-indicator)::after {\n position: static;\n }\n :host([has-label]) ::part(label) {\n padding-right: 0;\n padding-bottom: 0;\n display: flex;\n width: 100%;\n }\n ${e} [slot="label"] {\n max-width: calc(100% - 1em);\n overflow: hidden;\n text-overflow: ellipsis;\n padding-bottom: 0.5em;\n }\n`,m=()=>'\n :host([label-type="floating"]) {\n position: relative;\n }\n :host([label-type="floating"][has-label]) > ::part(label) {\n z-index: 1;\n padding: 0;\n width: auto;\n }\n '},25990(e,t,n){const{componentsThemeManager:r}=n(73227),o=n(97301);e.exports=o.keys().reduce((e,t)=>{const n=t.replace(/.*?([^\/]+)\/index\.js$/,"$1");return n.endsWith("-internal")||(e[n]=()=>o(t)),e},{}),e.exports.componentsThemeManager=r,e.exports["descope-address-field"]=()=>Promise.all([n.e(2672),n.e(6818),n.e(2562),n.e(8968),n.e(9275),n.e(8248),n.e(7620),n.e(5966),n.e(4914),n.e(9871),n.e(7774),n.e(8961),n.e(7092),n.e(8822)]).then(n.bind(n,25278)),e.exports["descope-apps-list"]=()=>Promise.all([n.e(2672),n.e(6818),n.e(2562),n.e(8968),n.e(5260),n.e(7182),n.e(5966),n.e(8202),n.e(1453),n.e(8961),n.e(3580)]).then(n.bind(n,47477)),e.exports["descope-autocomplete-field"]=()=>Promise.all([n.e(2672),n.e(6818),n.e(2562),n.e(8968),n.e(9275),n.e(8248),n.e(7620),n.e(5966),n.e(4914),n.e(9871),n.e(7774),n.e(8961),n.e(7092),n.e(8712)]).then(n.bind(n,93847)),e.exports["descope-avatar"]=()=>Promise.all([n.e(2672),n.e(6818),n.e(2562),n.e(8968),n.e(5260),n.e(7182),n.e(5966),n.e(8202),n.e(8961),n.e(2272)]).then(n.bind(n,53557)),e.exports["descope-badge"]=()=>Promise.all([n.e(2672),n.e(8961),n.e(4188)]).then(n.bind(n,11065)),e.exports["descope-button"]=()=>Promise.all([n.e(2672),n.e(6818),n.e(2562),n.e(8968),n.e(9275),n.e(4467),n.e(5414),n.e(8961),n.e(5087)]).then(n.bind(n,30576)),e.exports["descope-collapsible-container"]=()=>Promise.all([n.e(2672),n.e(5414),n.e(8961),n.e(6367)]).then(n.bind(n,96945)),e.exports["descope-combo-box"]=()=>Promise.all([n.e(2672),n.e(6818),n.e(2562),n.e(8968),n.e(9275),n.e(8248),n.e(7620),n.e(5966),n.e(4914),n.e(9871),n.e(8961),n.e(7092),n.e(5691)]).then(n.bind(n,27092)),e.exports["descope-enriched-text"]=()=>Promise.all([n.e(2672),n.e(2540),n.e(8961),n.e(9261)]).then(n.bind(n,55838)),e.exports["descope-icon"]=()=>Promise.all([n.e(2672),n.e(5414),n.e(8961),n.e(6724)]).then(n.bind(n,56737)),e.exports["descope-image"]=()=>Promise.all([n.e(2672),n.e(5414),n.e(8961),n.e(1202)]).then(n.bind(n,53455)),e.exports["descope-link"]=()=>Promise.all([n.e(2672),n.e(8961),n.e(4159)]).then(n.bind(n,74778)),e.exports["descope-list"]=()=>Promise.all([n.e(2672),n.e(8961),n.e(4551)]).then(n.bind(n,45400)),e.exports["descope-list-item"]=()=>Promise.all([n.e(2672),n.e(8961),n.e(461)]).then(n.bind(n,24542)),e.exports["descope-outbound-app-button"]=()=>Promise.all([n.e(2672),n.e(6818),n.e(2562),n.e(8968),n.e(9275),n.e(4467),n.e(5414),n.e(8961),n.e(8634)]).then(n.bind(n,81422)),e.exports["descope-outbound-apps"]=()=>Promise.all([n.e(2672),n.e(6818),n.e(2562),n.e(8968),n.e(9275),n.e(4467),n.e(5414),n.e(5260),n.e(7182),n.e(5966),n.e(8202),n.e(5263),n.e(8961),n.e(4292)]).then(n.bind(n,58204)),e.exports["descope-password-strength"]=()=>Promise.all([n.e(2672),n.e(8961),n.e(9458)]).then(n.bind(n,13241)),e.exports["descope-ponyhot"]=()=>Promise.all([n.e(2672),n.e(8961),n.e(796)]).then(n.bind(n,71696)),e.exports["descope-recovery-codes"]=()=>Promise.all([n.e(2672),n.e(6818),n.e(2562),n.e(5260),n.e(7182),n.e(6063),n.e(8961),n.e(9175)]).then(n.bind(n,88568)),e.exports["descope-text"]=()=>Promise.all([n.e(2672),n.e(8961),n.e(2294)]).then(n.bind(n,63595)),e.exports["descope-timer"]=()=>Promise.all([n.e(2672),n.e(5414),n.e(8961),n.e(2250)]).then(n.bind(n,15887)),e.exports["descope-timer-button"]=()=>Promise.all([n.e(2672),n.e(6818),n.e(2562),n.e(8968),n.e(9275),n.e(4467),n.e(5414),n.e(8961),n.e(743)]).then(n.bind(n,60096)),e.exports["descope-tooltip"]=()=>Promise.all([n.e(2672),n.e(6818),n.e(2562),n.e(8968),n.e(5966),n.e(2540),n.e(8202),n.e(8961),n.e(628)]).then(n.bind(n,38516)),e.exports["descope-trusted-devices"]=()=>Promise.all([n.e(2672),n.e(5414),n.e(8961),n.e(7750)]).then(n.bind(n,66747))},97301(e,t,n){var r={"./boolean-fields/descope-boolean-field-internal/index.js":[3274,[2672,9365,7362]],"./boolean-fields/descope-checkbox/index.js":[49582,[2672,6818,2562,8968,9275,8248,7620,4467,2540,7291,9365,8961,9582,4838]],"./boolean-fields/descope-switch-toggle/index.js":[21934,[2672,6818,2562,8968,9275,8248,7620,4467,2540,7291,9365,8961,1448]],"./button-selection-group-fields/descope-button-multi-selection-group-internal/index.js":[91831,[2672,9365,8399]],"./button-selection-group-fields/descope-button-multi-selection-group/index.js":[55162,[2672,6818,2562,8968,9275,4467,5414,9365,8961,1837,3829]],"./button-selection-group-fields/descope-button-selection-group-internal/index.js":[72415,[2672,9365,7079]],"./button-selection-group-fields/descope-button-selection-group-item/index.js":[15450,[2672,6818,2562,8968,9275,4467,5414,9365,8961,1837]],"./button-selection-group-fields/descope-button-selection-group/index.js":[27926,[2672,6818,2562,8968,9275,4467,5414,9365,8961,1837,2141]],"./descope-alert/index.js":[11339,[2672,2540,9365,8961,1456]],"./descope-code-snippet/index.js":[80522,[2672,5780,9365,3521]],"./descope-container/index.js":[81297,[2672,9365,8689]],"./descope-date-field/descope-calendar/index.js":[88350,[2672,6818,2562,8968,9275,8248,7620,4467,5414,5966,4914,9871,4518,9365,8961,7092,6028]],"./descope-date-field/index.js":[79981,[2672,6818,2562,8968,9275,8248,7620,4467,5414,5260,7182,5966,4914,9871,4518,7387,9365,8961,7092,6028,9257]],"./descope-divider/index.js":[48995,[2672,9365,8961,8819]],"./descope-email-field/index.js":[54316,[2672,6818,2562,8968,9275,8248,7620,9365,5695]],"./descope-grid/descope-grid-custom-column/index.js":[12909,[6818,7565,9176]],"./descope-grid/descope-grid-item-details-column/index.js":[92107,[6818,2562,5260,7182,7565,2381]],"./descope-grid/descope-grid-selection-column/index.js":[57641,[2672,6818,2562,8968,9275,8248,7620,4467,2540,7565,7291,9365,8961,9582,3305]],"./descope-grid/descope-grid-text-column/index.js":[57148,[6818,7565,8108]],"./descope-grid/index.js":[38976,[2672,6818,2562,8968,9275,8248,7620,4467,5260,7182,4914,2540,7565,7291,5780,9970,9365,8961,9582,2200]],"./descope-hcaptcha/index.js":[24011,[2672,9365,7470]],"./descope-hybrid-field/index.js":[44966,[2672,6818,2562,8968,9275,8248,7620,5260,7182,5966,4914,9871,5348,3620,9365,8961,7092,3685,9894,7299]],"./descope-loader-linear/index.js":[63581,[2672,9365,8009]],"./descope-loader-radial/index.js":[54249,[2672,9365,7163]],"./descope-logo/index.js":[86947,[2672,9365,1239]],"./descope-modal/index.js":[52079,[2672,6818,2562,8968,5966,9117,9365,4139]],"./descope-multi-select-combo-box/index.js":[12848,[2672,6818,2562,8968,9275,8248,7620,5966,4914,9871,1408,9365,1331]],"./descope-new-password/descope-new-password-internal/index.js":[78844,[2672,9365,8603]],"./descope-new-password/index.js":[72788,[2672,6818,2562,8968,9275,8248,7620,4467,5260,7182,1899,9365,4364]],"./descope-notification/descope-notification-card/index.js":[69182,[2672,6818,2562,8983,9365,7326]],"./descope-notification/index.js":[8273,[2672,6818,2562,8983,9365,8019]],"./descope-notp-image/index.js":[27201,[2672,9365,2251]],"./descope-number-field/index.js":[72598,[2672,6818,2562,8968,9275,8248,7620,5648,9365,7944]],"./descope-passcode/descope-passcode-internal/index.js":[59053,[2672,9365,3359]],"./descope-passcode/index.js":[54690,[2672,6818,2562,8968,9275,8248,7620,5260,7182,9365,8884]],"./descope-password/index.js":[19169,[2672,6818,2562,8968,9275,8248,7620,4467,1899,9365,6969]],"./descope-policy-validation/index.js":[26782,[2672,9365,2996]],"./descope-radio-group/index.js":[40649,[2672,6818,2562,8968,9275,8248,4467,4623,9365,9399]],"./descope-recaptcha/index.js":[85386,[2672,9365,3847]],"./descope-scopes-list/index.js":[16942,[2672,6818,2562,8968,9275,8248,7620,4467,2540,7291,9365,8961,9582,1674]],"./descope-security-questions-setup/index.js":[74460,[2672,6818,2562,8968,9275,8248,7620,5260,7182,5966,4914,9871,6477,9365,8961,7092,3594]],"./descope-security-questions-verify/index.js":[38479,[2672,6818,2562,8968,9275,8248,7620,5260,7182,9365,8961,9446]],"./descope-text-area/index.js":[5277,[2672,6818,2562,8968,9275,8248,7620,7939,9365,5686]],"./descope-text-field/index.js":[21374,[2672,6818,2562,8968,9275,8248,7620,5260,7182,9365,5166]],"./descope-third-party-app-logo/index.js":[6107,[2672,5414,9365,8961,230]],"./descope-totp-image/index.js":[7252,[2672,9365,6213]],"./descope-upload-file/index.js":[70139,[2672,6818,2562,8968,9275,4467,5414,9365,8961,9636]],"./descope-user-attribute/index.js":[45554,[2672,6818,2562,8968,9275,4467,5414,9365,8961,1578]],"./descope-user-auth-method/index.js":[67760,[2672,6818,2562,8968,9275,4467,5414,5260,9365,8961,9990]],"./mapping-fields/descope-mappings-field/descope-mapping-item/index.js":[29172,[2672,9365,2230]],"./mapping-fields/descope-mappings-field/descope-mappings-field-internal/index.js":[34884,[2672,9365,9522]],"./mapping-fields/descope-mappings-field/index.js":[84719,[2672,6818,2562,8968,9275,8248,7620,4467,5414,5260,7182,5966,4914,9871,7774,4550,9365,8961,7092,7095]],"./mapping-fields/descope-saml-group-mappings/descope-saml-group-mappings-internal/index.js":[9894,[2672,9365,9708]],"./mapping-fields/descope-saml-group-mappings/index.js":[45103,[2672,6818,2562,8968,9275,8248,7620,4467,5414,5260,7182,5966,4914,9871,7774,4550,9365,8961,7092,6832]],"./phone-fields/descope-phone-field/descope-phone-field-internal/index.js":[92132,[2672,6818,2562,8968,9275,8248,7620,5260,7182,5966,4914,9871,5348,3620,9365,8961,7092,3685,2878]],"./phone-fields/descope-phone-field/index.js":[98136,[2672,6818,2562,8968,9275,8248,7620,5260,7182,5966,4914,9871,5348,3620,9365,8961,7092,3685,9894]],"./phone-fields/descope-phone-input-box-field/descope-phone-input-box-internal/index.js":[78343,[2672,6818,2562,8968,9275,8248,7620,5260,7182,5348,9365,3685,8657]],"./phone-fields/descope-phone-input-box-field/index.js":[30057,[2672,6818,2562,8968,9275,8248,7620,5260,7182,5348,9365,3685,4043]]};function o(e){if(!n.o(r,e))return Promise.resolve().then(()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=r[e],o=t[0];return Promise.all(t[1].map(n.e)).then(()=>n(o))}o.keys=()=>Object.keys(r),o.id=97301,e.exports=o}},o={};function s(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={id:e,loaded:!1,exports:{}};return r[e](n,n.exports,s),n.loaded=!0,n.exports}s.m=r,e=[],s.O=(t,n,r,o)=>{if(!n){var i=1/0;for(u=0;u<e.length;u++){for(var[n,r,o]=e[u],a=!0,l=0;l<n.length;l++)(!1&o||i>=o)&&Object.keys(s.O).every(e=>s.O[e](n[l]))?n.splice(l--,1):(a=!1,o<i&&(i=o));if(a){e.splice(u--,1);var c=r();void 0!==c&&(t=c)}}return t}o=o||0;for(var u=e.length;u>0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[n,r,o]},s.F={},s.E=e=>{Object.keys(s.F).map(t=>{s.F[t](e)})},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.f={},s.e=e=>Promise.all(Object.keys(s.f).reduce((t,n)=>(s.f[n](e,t),t),[])),s.u=e=>(({230:"descope-third-party-app-logo-index-js",461:"descope-list-item",628:"descope-tooltip",743:"descope-timer-button",796:"descope-ponyhot",1202:"descope-image",1239:"descope-logo-index-js",1331:"descope-multi-select-combo-box-index-js",1448:"boolean-fields-descope-switch-toggle-index-js",1456:"descope-alert-index-js",1578:"descope-user-attribute-index-js",1674:"descope-scopes-list-index-js",1837:"button-selection-group-fields-descope-button-selection-group-item-index-js",2141:"button-selection-group-fields-descope-button-selection-group-index-js",2200:"descope-grid-index-js",2230:"mapping-fields-descope-mappings-field-descope-mapping-item-index-js",2250:"descope-timer",2251:"descope-notp-image-index-js",2272:"descope-avatar",2294:"descope-text",2381:"descope-grid-descope-grid-item-details-column-index-js",2878:"phone-fields-descope-phone-field-descope-phone-field-internal-index-js",2996:"descope-policy-validation-index-js",3305:"descope-grid-descope-grid-selection-column-index-js",3359:"descope-passcode-descope-passcode-internal-index-js",3521:"descope-code-snippet-index-js",3580:"descope-apps-list",3594:"descope-security-questions-setup-index-js",3829:"button-selection-group-fields-descope-button-multi-selection-group-index-js",3847:"descope-recaptcha-index-js",4043:"phone-fields-descope-phone-input-box-field-index-js",4139:"descope-modal-index-js",4159:"descope-link",4188:"descope-badge",4292:"descope-outbound-apps",4364:"descope-new-password-index-js",4551:"descope-list",4838:"boolean-fields-descope-checkbox-index-js",5087:"descope-button",5166:"descope-text-field-index-js",5686:"descope-text-area-index-js",5691:"descope-combo-box",5695:"descope-email-field-index-js",6028:"descope-date-field-descope-calendar-index-js",6213:"descope-totp-image-index-js",6367:"descope-collapsible-container",6724:"descope-icon",6832:"mapping-fields-descope-saml-group-mappings-index-js",6969:"descope-password-index-js",7079:"button-selection-group-fields-descope-button-selection-group-internal-index-js",7095:"mapping-fields-descope-mappings-field-index-js",7163:"descope-loader-radial-index-js",7299:"descope-hybrid-field-index-js",7326:"descope-notification-descope-notification-card-index-js",7362:"boolean-fields-descope-boolean-field-internal-index-js",7470:"descope-hcaptcha-index-js",7750:"descope-trusted-devices",7944:"descope-number-field-index-js",8009:"descope-loader-linear-index-js",8019:"descope-notification-index-js",8108:"descope-grid-descope-grid-text-column-index-js",8399:"button-selection-group-fields-descope-button-multi-selection-group-internal-index-js",8603:"descope-new-password-descope-new-password-internal-index-js",8634:"descope-outbound-app-button",8657:"phone-fields-descope-phone-input-box-field-descope-phone-input-box-internal-index-js",8689:"descope-container-index-js",8712:"descope-autocomplete-field",8819:"descope-divider-index-js",8822:"descope-address-field",8884:"descope-passcode-index-js",9175:"descope-recovery-codes",9176:"descope-grid-descope-grid-custom-column-index-js",9257:"descope-date-field-index-js",9261:"descope-enriched-text",9399:"descope-radio-group-index-js",9446:"descope-security-questions-verify-index-js",9458:"descope-password-strength",9522:"mapping-fields-descope-mappings-field-descope-mappings-field-internal-index-js",9636:"descope-upload-file-index-js",9708:"mapping-fields-descope-saml-group-mappings-descope-saml-group-mappings-internal-index-js",9894:"phone-fields-descope-phone-field-index-js",9990:"descope-user-auth-method-index-js"}[e]||e)+".js"),s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),t={},n="@descope/web-components-ui:",s.l=(e,r,o,i)=>{if(t[e])t[e].push(r);else{var a,l;if(void 0!==o)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var d=c[u];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==n+o){a=d;break}}a||(l=!0,(a=document.createElement("script")).charset="utf-8",s.nc&&a.setAttribute("nonce",s.nc),a.setAttribute("data-webpack",n+o),a.src=e,0!==a.src.indexOf(window.location.origin+"/")&&(a.crossOrigin="anonymous"),a.integrity=s.sriHashes[i],a.crossOrigin="anonymous"),t[e]=[r];var p=(n,r)=>{a.onerror=a.onload=null,clearTimeout(h);var o=t[e];if(delete t[e],a.parentNode&&a.parentNode.removeChild(a),o&&o.forEach(e=>e(r)),n)return n(r)},h=setTimeout(p.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=p.bind(null,a.onerror),a.onload=p.bind(null,a.onload),l&&document.head.appendChild(a)}},s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;s.g.importScripts&&(e=s.g.location+"");var t=s.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=n[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),s.p=e})(),s.sriHashes={230:"sha384-c4e4ZYNEJsQ6q1QW3vgelz+a72HpgrMz/BHNH6z5K3+awCBJeUSjWurzPj236sIJ",461:"sha384-lCvycKtZ/+cAVcgU+ETR4wXuQ3/4WjKtrH3yH5Tf2KgIAoFLgmubZvHwcujgKOFx",628:"sha384-SMSYkyF3zH/KzOhXPbyIxnz4hO48nLHZ+da+RckoUDRzb0ixAVr1BwJQPT6/zgc3",743:"sha384-Xw6xYoPnJ6mp8c6+kpOa545xs3PW/qc4rUrLOJol6q/SuxxkpkFLPHquo6VYjTXm",796:"sha384-IRBL3uptcBM16SPmvpXqDEP0t3dmWOzT/J2taaS8hCthB1jdEX5A3l7tybYPCTC2",1050:"sha384-oy4fqzLqP3izG3zSNAgknV9Pm1pMR6dJ8Hf+1WOZ9XrKdcYRLTh/6nRpRM/T2zbD",1202:"sha384-nX/Py4LB9QrQBTOqVq49W1mOQ7FboXNQzCTtN3yng+Fuo2NantS0bx6nLFWOyTPc",1239:"sha384-THoqkS0xp98dduXqXCnPVAbLnCfVt55JzLMhPR6vX9l1gpC8QwM5m6G6b29+qdbW",1331:"sha384-qUL+NLvlNxERxo1w3udxN+qyfjLRf9rPf69nJEDXKORlEPP+r0eB25DatHn+QeH4",1408:"sha384-mIuTZneuSRj6LppAaaJff6p1NCD5/oyKCAsKKdwbmQ2W/js9mVT76mQRghD0YbAy",1448:"sha384-VYICBEGXFlIPj4KFmq+nFqeBR7ExY3BFRbEZI3Dniuuc9hZ+ifes3IHk9iXSN/v8",1453:"sha384-Wcv6xLHSgVFzSYs3Wrq18M/Q1W6jztNsQ/8+JeA2bgeCvFebBuQlI2OyozX6kCtD",1456:"sha384-PCLaXDSxIOT5XD69cf8IdwCUWpt+3cSAVHOkNs5yH6zi7bF3ysLBS1p1laDGeQg+",1578:"sha384-LAV//Uqq+s+BMEj5guVzewY6VUb0u84mypFOvub6+aREBBFUHdgfjzUFM1K7eXUt",1674:"sha384-c4879JX2lRZQQuYP9HqOIB4MMHYBqjYmB8ANsu8qni9SUHQqj8AHQrNNpZROkcQt",1837:"sha384-T1qjxTD0SP+WNjwEu+ADzb27XIyfVUDkkFKQ+enC21crAr8ep2QFiQCQYRsCexz3",1899:"sha384-IppxzMaIGMxk8gAed/9jBSOVXYuy5swhAuGXE6WVd3T4q45qZf3cYxRiOrq8huAM",2141:"sha384-zst33Rfgb8ROhlPlHoyRNbiFCff74RmSXdxSoPPrUG1ddzadjT5qNE2SFoHcvz95",2200:"sha384-bgi8z4Cv7AZTUkZmw/3Ms7/Vo9rCpxO47WOpnnh7R/2sQgNIJaj9SxWvH7VouVJb",2230:"sha384-8EHJkD83IXEnuobAuVopLIVlprbNW6F2/bEG9OfwBpoAaMnH0Z55eAfORUL+soAo",2250:"sha384-px/ypUVTSx1fOnpmUYJ0WOE/UECmC4VuaqHzSnWHC2Oz8J7ArLvJDG5nixDmLCUz",2251:"sha384-7SAUra0j8Pmt+dw6BUasm5/xaYhHpqA15n4X26nlpkOEW51Gh9gDpreCTjmHEWcQ",2272:"sha384-4h2PkNsnduEKAA3NsnvIvNNcWeHhSUX3K9/V4uPdVP9QEqmTqfvBlCN/bNKz0lE3",2294:"sha384-y7g54FRzPyCGZQMA2ifA4t7Dxx/3dlAOSx4VcGd9kYzKSmbxEN183FGWsw5v5jN+",2381:"sha384-DZ9OUvoMCUCI+djMovHTLPns1XWkdppBjPErhULlnRgZgMXmIIj4jAlhmsOksmZ3",2540:"sha384-3zXUOHXTLCfTNRYLJTy2p3uiAfmwCSFi1WIZE4XJjFzbH/UoeNMK1+LxFu9tYWiQ",2562:"sha384-g8ccnItoPYJY4lhzmmtTbHC9rzVDbVfxBqG6/ERO1NCvPc0wEMc7NL8nYmOYZXGu",2672:"sha384-MzF+6Zhb6WND1FccqdMOefeomE/N8rbG6tFInzLXUVDKkI15F4awWOcmln0vT/Uo",2878:"sha384-vv8P9XPh+/IwhQDRfkoqHrSqqfJ/+k+p5sAT9l1VbS94oH8WX+pii6B8RBy23aLp",2996:"sha384-xphT6/D7DCCjmiykif8CPyMD1/GRsqrxAVY4GQb/CNDmjyVGlVJ2/gua5CWCGBsh",3241:"sha384-uPeaWWytSgf0aIg+VYo4ifNrGKZmOV2vi9jRrao+3YXSuFEyGV7MTs7RysmqotAh",3305:"sha384-yRSSpx/vzftOvtV49RxWEQ39gvCmx3k9p/HryC3aond21zhbP3kDb7v6hwwvO7ls",3359:"sha384-ivMHsbJjH48LA1NfAsWxI3v+1/q2en4wsrGV+vo+FYXL4s2064Jp871pm+TMAIpI",3521:"sha384-ftkSLgtiZJDFNGTkdaXv9xfWM7pQ8O91iJ3fSkhWIs4KAoFZ1fUFuBzWf9wDbOtA",3580:"sha384-TSG/cfF1yCAtRx22ESmr66yGjSgbXqEHALKRwg3IkST09hL0l2FZCWrT2ltNs6GV",3594:"sha384-FCLwdNUZpE9F2f275/djLUrckCruNGlSeIHvb0k9H9rWI9Si32CF1eXBABJGmSjM",3620:"sha384-a3xRp37r1vdxi9tGlZKD6+pv8FFOwA7ZbHWkbY4L666BqEg2HLgQ/DhD4UJHaKUr",3685:"sha384-MpXOFA1HbKVF2Bn1rXIr7TQ0fizltJLRndkQuCzCeAWfc7hohxfqGcPvGFVVp5Io",3829:"sha384-bfvtJ4+j/Su5Y2vdLCRciGI9VDGIfChw07CFpRAiYbQVklehkrlgV1jugiOfhLOr",3847:"sha384-h79p910UjM+fX9XtjE/Yie3oSo8eq9Sf8R+20EkDn2BuMScq2KJ9bxhCvVdoUGWG",4043:"sha384-fZmLhEyn2oglBzdOBPaFJq1WR/A2vTw9kXEA1+Z2wa/5lm1RRrRYDzX/InxYzbo4",4139:"sha384-yyvGjeljyhFOEMOQA1ACJR4EkBXPmvmTOSDIJl9zgsLvpd53/574ihg9RTVMhldO",4159:"sha384-BthiiU5H1bSY+Ob2ciuQDzHISmMEuiOXq5lpxHv4RSlOQGB8oBsG0y4UpCoSOlY6",4188:"sha384-MKqdb6ibioEtdy18SBYF+ZFujpWhZOnWtNnavoVTC3w9Suwnh2M8YpZJOsxEhBFn",4292:"sha384-razYClPjuusiMAVN4nnnBY7w0kt2Gj+fUaxm0ytORj3x8CBM2K8eb/+CxtUEgKlH",4364:"sha384-elu/FTv6QTbj3cN/k7QW4LoMkvHMs8l5Lkpmrqaj/WwejJWOyT8Lbm0z2Bgo5F3G",4467:"sha384-+V3zjLFHUXQ3ozYO5qtQdJCb/z8CzFChWlK9zwKoGaICP2lTDSxODBvmL/mcX5og",4518:"sha384-ThtpsB6h034rlsM/54G6kU1YKDLJL4zatZAuA1L2MaSOT7uS/6zSOJntPEc7fqGo",4550:"sha384-qzL0Ss3GFrMlwtKCZwSKjgArCqTPg9/69oubDWvHOw/1/M9haOnaG8WV/SAJnXsP",4551:"sha384-o284eZJ7e5xqIXmE1QkkICxhXk0KYslMaC/hXQZYujB7CmPXKSY4dlZUGZlcr0Uk",4623:"sha384-F5zlj6lqVEVTl4RtnsJJBeOnRR6LmoKAB79lHNJ2vgI98HYCXpm/FhGo61SgbOZO",4838:"sha384-KfqDCTnx5dQaH8TSplXulQu06xCBEiQyLyh12K/1LUrlyIKLnB8QOC1sDvj3erqy",4914:"sha384-HrGnVIO4Mp7IvAVns5dhbjlOkIFxRRiKHgqj6BeBzxFLcVYvbCZ0oAaW8m9HXk8N",5087:"sha384-4Jom2j4XG6ol7ZrtwZ+pL4yOrb65SkPlJmHr/jaiDtLCFGm4eDGmMbgi4BbXaxLW",5166:"sha384-KmXNivre3Vf5+6PaZrOMzUkNYkN0RJxKTc2hWxEKH9Ld3faHg4Oc0LWpY9Nj+JSX",5260:"sha384-mY5y0fLpCwRf5xoZ/ly88jnF+QPLs/SKwRjlg5f27Yr2eGx1h4kIVy4g7fC7aRa1",5263:"sha384-0lbB3hgW6rdPEqxn9BUpKmUhDXfXH1DD24yKc1prnG/w3mVMaljUqfzDeTvMS0o/",5348:"sha384-mL5WRg55NozQyhHgWVVxeGvTGiUAqqWdI6GEerPD2G8OSNVswsYHwG80F5Tes5yW",5414:"sha384-QLXVUH1EYCzRblHEhrpxxhTfg7dSXY1i5ib2BWionnTevIC3EBUAMpCAVFsmCxoH",5648:"sha384-IUgx2RtLGIRf4u17YDBTeb0RkJ+BP1BOsNcXKuwa6OeORU5mcWyqBl2ppxZzCNaa",5686:"sha384-HVuWOC3IBw1kyOFz15klk3qg9AWKTRD56fSCI5BX3rdLaaBwoKpVGcHX9GE+Akb4",5691:"sha384-RJlJn5qn0sfOuUeT8mSLuiSbvaMxxlugzKVDdiZU2vOKtDL0Nr1px6b8urwT+ejf",5695:"sha384-Hy2nBEJfYESYg39j5+iYdQgFNXt1F6P34od7Nf/k9aO3XDvNCcHYSXHtWaIoYEMX",5780:"sha384-XZlNLWqdKI9XivLdXo1bRUR4NRjo7X6ZTpwaieKIw5KLMAsefCvV+xlAWdzZTbWe",5966:"sha384-l51cC6eb8HCuM8hcUsiYIImBWv8hq2ePvYECJcD1GjnA81ikrlZfQtpYTz59wDsR",6028:"sha384-FPqMm+6ysOv72nRGiPd/w0uMkGJsESlZ/t1FF024x12Qg7+UuFWPjlTk2M2+VDha",6063:"sha384-Wd7ACSQLeYt3QQEiRKpy5RntumlJpWpeyIEnbZQpnGGio7bgUTz/46MgI7Qw4Pr6",6213:"sha384-dnEdCtYdu1CwKKMn2KetgZWdlrJlp9ltiftzNGd4dJfYJT32O0AjNcmXOBoiqlsW",6367:"sha384-LO+6ntG/fsZmp8FCA/kLxpNLqNfTrNgWsPgl1eS07bIawr0/b3mwg3ipAgFuKyD2",6477:"sha384-sP9GWinuNEI5dZ7BPoOIiOCDR4a5v/EDY/wNL7EBe+EpEB8RavzkF7EXrX1fIRJZ",6558:"sha384-GJEwGNlZcXpgH/tqmi2TM76NDEeVn2Zw4X978YKA5PuU2xaKO2Y7Eg7PN57pJuAe",6724:"sha384-1LtrC4GVI/tRIG7hf7x5JELbpEVeSk1doKF43UniMH0U/IsqnENiRv2+P2WPWiIg",6818:"sha384-mJb9T/KR3V1NtkEEwtU5gJoXTkGmln9FPpAuaDoF8qRm+RI3NRG9bB8H9G/0NXkg",6832:"sha384-cSrvLoyQ0gwZb+av9iQyxuodRhErMX1PXLgLDJo6Lwh72+HlNvpYDtcFpu5vLZaU",6969:"sha384-jTiKDPJfpQCqlM2drL35PvIuO9g02VUOnlLVxhoaVpwMA6IYO+dtGK8gdOY8R35F",7079:"sha384-KY2bZoWzeJUeVSb+7oJN8ZmNy1FaMG+cOqfDGk9sKtaAZqcOjmojfPVjiZAeNM67",7092:"sha384-tQ0Mci6VkBsaL45LYev+gbpdvPNE4zsEkpSFJQfV+8inp2wiU3gYdxnCFRI80Yup",7095:"sha384-eXUJi5BVKbTFsXxvO2p1FU7k8Z+ZybT0NbjwwJ3zwA5MxiX0BeKTJXlIhXkhWnad",7163:"sha384-HwWv1yZVXSaFOWtk4xXokgSiyCvPRv3D/3J+WR87c1x+E/w2iQiBJ9LHNAerCKjr",7182:"sha384-NVHJsBVqtNrCRjxRFpHlaxbDGwhDd3ghNtv157+xiXSCTvQGEBJwToEejgAu/9Dk",7291:"sha384-lX0pzX5zjuoWuoRBywH4ZrmYAK1jrc2aXBDwbIrB0gfxTw+qVT1j9MmkiHkAwmMq",7299:"sha384-iKmffo3hIXc3pn1KW/4Tir/Ysp/tZqAMg5joGAUrIWq99SwYkaU1roz6UNwBnepd",7326:"sha384-ymjyyr4SK+dYWoMa8fQOpAqu3NuFHF1smyiMwVB/w2KY4ubkvF73C6IRMSEgRekn",7362:"sha384-7KWRdug3+u5AXMs4VkRAno1ZeYtwiiJfBGFuo66SgKP/XAaqljMqP5G1ejnWLCyC",7387:"sha384-hJTgLjjQ5lDZXeZbxvVpFB/9bKMSNCDTJ23NZp5tBoBwM1QNZXrKS4V7px2nyaBg",7470:"sha384-MoHyfVbC8I0c4sVULSN1iwBqF51j0OUB1hwUoxMHKCHEXPgs7i1snZqyvvjNqMMt",7565:"sha384-yWhbcJqLxF/mNiwM13hSma00WE1tdnazjwvIBf8qijqUVVHLAywm4wnJcMMdQCmV",7620:"sha384-h2VGXFpeMR2TpQJCvITEQDG8YwJwnTRkq+v46Pk7FBXo/HaIdD8FfIfmeh4mS/p4",7750:"sha384-AWYo8LPO4zEqxozwTSdKhQRyl761I8t9VTx/Lc2gWVOaJLPj0qKibNFgLpSNn6TD",7774:"sha384-/We84/U+7sD0EOP48oGJNsLiT+v3SNPTt5xjrkreUUatY8+4A2pRxR/yEfsUMIkH",7939:"sha384-O9dRq0pbJ2IFdOUKIYffQrNvqp/U5mvXnAsOGZz+nPoDU2nV+2faHSGzSBRsoQY3",7944:"sha384-w95GwKGI0F6HBKm9GJbuuqju/8gyt5U0D7yjMxXqVgY+vvnB+UI6Qe/ZQmp+s+YS",8009:"sha384-puiUNfSynXsd7y14SXZQd5xEv1EgMZ/GGhLmzsBUDwfabjFdAdQjDqiTZuKAathS",8019:"sha384-FLGtZoC6HUa7a6OIXeInaRcN7zEhttVreAt+2EWvlevjvIVWhEj54YySg6agaUjd",8108:"sha384-Ym5yiZ6D0F7ts3edidq+2syyEXZj8sd2mAAUCjMwnSApsPG1cRRIOLlcu4rjrkhC",8202:"sha384-BRKjZ7Zq1Os6c1H/3mjHVlc1t55a9bfppj4u6xpGV/ynkfuZECa+wG6TpO8MfjwZ",8248:"sha384-xHMDxAmeM/wDPh1Msg2a2as+AMcXr30cySrHEIcSguHfvn6tnAC9kKSBX3buUVrF",8399:"sha384-V4xQVtZEhcBwQhTlQE7DIVj6elmDbPEZTFi8vbHJrZZzcOitmG2SAT+N0VH2JtJy",8603:"sha384-tXgCS0CvyHdR7a7WsDnVmSiq2OdvHKcP7x3hiYb1M8cNYeg+dgLjrUJLQ3q4nqvy",8634:"sha384-q5zTFM36szG4yOmG1ibMveo/e+4ctZBiow/zpJVmdjmKQIUPO45KvNj5DJruhf3/",8657:"sha384-qKGyt46+d2tGGxRnRXvXBI1yIRPj4Q8rVtl5UCrOktB9vQZjReE2HgYQ624Msvhq",8689:"sha384-+aKRFPExjMYyfVBoRgl27CGIQn5AYJD9hlE9hJoWGUhKiRASFjGG7tIFgXVnMdC+",8712:"sha384-OrOnKXIcWIJ2iJahUd4Hswc9wdP69I/lzkr4079Lbm9scctDYUFBIEMNm3rsHlfS",8819:"sha384-xVhLW7ku03WOrW+1za315ifsvLdqTB91sTzKOBZ5V5utkdz/cYdTtDfWI4Lz73JB",8822:"sha384-YaJRtN/mToZ9Nc1IM8YiI0gFTHkucUjwl3lPTQe5MN2pJsam6asvqIYJCWqSZ0mC",8884:"sha384-xXOwGUjtod4VF7l1RZT3AdwgpLjGLNg2lho+fjFq4Hbtob9I35zFg5a+9O1DEplM",8961:"sha384-e4uyTi3EspJPRL+C6bsq4i4igALO9JM477+6gpr2PV1NUwDdExTtz7hnom1wywve",8968:"sha384-sJufCdrjrL+iucfosxjmEGP/FeJENtwX1JOv3uy5AGqDU4VOVg79rKRaqhjh/z8O",8983:"sha384-RPTfsq8geC6ZCyRVbca9SQgDXkrX45eXDr2keXAl4fyWNPMKIqnNmYgbVCikFC8B",9117:"sha384-DhpshZj6mQgZ8ObsKQSgyD0aKHCLkQb2M+SI3D+xPunCrwsmM7z4PhH0PAS9dc6N",9175:"sha384-bAXSNudyOA/4vOqx8LukjitKjQG1zAukOKsoPYPhp6rO+geyl9os7POpvPgUMB6n",9176:"sha384-4M2E/f51Y7BAL0nHG/HhXp+bbzgSGQIj9SBxvV0gL92Bv0b4lcl3H+zQ3xw7XrIe",9257:"sha384-gCIOUgurWzx/xVLd/RC91jjFAOAJg5J/FG0zJo9Qucj/9Wm6hsHA0BUuCW8Zpc5E",9261:"sha384-44hH4OVfa3y/fp9CcQQZElSsZgWepmpld3LILafSVSJDKPlqkF90bU2GgVpSIspQ",9275:"sha384-5HCV/mUDSDhgp9l9oIj1OHJq62lRRix6XFDptIT+P4Q++mHXJLSLfZkWHW/e67/a",9365:"sha384-nYpDGnPpuHXYlkOJK3HJ4gL3R6ucMfZabuRDiO9dEMy/MxUk+Gg3qA2TenOzxrcD",9399:"sha384-jLE/K8T8DMnwIHJGsM0xvOWflus5sXzz9rN/c5zqVisXq1twQub5hkYOYJCC6ybo",9446:"sha384-Zek94JIaooffMzNoYqtXSGaf4XIk8UvC8WFReex7Afmm9sBHmPvz99wNARxVcOTl",9458:"sha384-SYGPBWqYotRYDs3V/1Vwb4Z4Leb6UBe7MUsZwt1PCFyMlgGT7VHalfMgbOMT2/EF",9522:"sha384-o4s+GQSH9x6mBd+uQpnCu39LQC24A5j1guphJ5Ub2dhllAZWmOyGseJC75GXA31i",9582:"sha384-lnYPgnfWZlV5p2v0KpKzQR1K5RuqETSGgSptE1xamOz4i9Cf/+CNic3yKk6QliOY",9636:"sha384-hJUURj4fi7yGYz7p/9YyKfrXzHP6yFIByqJiNlkClvl9HRhOspP5tDHe5kMNV7WG",9708:"sha384-kqZoV7Prakehi4V0OemY4X6X9T/BWycjutizbxEx2yrAuFltdcjQlxJR9T58L7YI",9871:"sha384-eFBUdvzMAfqS1J6XvZvT7ces1M1+rRWCg2qLgyor8PENLqhp500g9ig7wTzRhn7Q",9894:"sha384-iyD48xIUsyShLkkQ2cb7Gjcc6z7EZmyv/0Q0/1w1A1hBemOWplo0HQZjB6g9A8WL",9970:"sha384-EnF/hnrY919XNCFHyhtScK4W6bC+pRBumkPmxHhBriggsqlnnEKN8VH87OlWAF1R",9990:"sha384-x4vQUEDrovKrk2l2fuspKnGcpsbDGHjgMlwFZPlRkLjTL53XSQVmlcuCLMGm/g2B"},(()=>{var e={5536:0};s.f.j=(t,n)=>{var r=s.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise((n,o)=>r=e[t]=[n,o]);n.push(r[2]=o);var i=s.p+s.u(t),a=new Error;s.l(i,n=>{if(s.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;a.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",a.name="ChunkLoadError",a.type=o,a.request=i,r[1](a)}},"chunk-"+t,t)}},s.F.j=t=>{if(!s.o(e,t)||void 0===e[t]){e[t]=null;var n=document.createElement("link");n.charset="utf-8",n.crossOrigin="anonymous",s.nc&&n.setAttribute("nonce",s.nc),n.rel="prefetch",n.as="script",n.href=s.p+s.u(t),document.head.appendChild(n)}},s.O.j=t=>0===e[t];var t=(t,n)=>{var r,o,[i,a,l]=n,c=0;if(i.some(t=>0!==e[t])){for(r in a)s.o(a,r)&&(s.m[r]=a[r]);if(l)var u=l(s)}for(t&&t(n);c<i.length;c++)o=i[c],s.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return s.O(u)},n=self.webpackChunk_descope_web_components_ui=self.webpackChunk_descope_web_components_ui||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),s.O(0,[5536],()=>{[2672,6818,2562,8968,9275,8248,7620,5966,4914,9871,7774,8961,7092,8822,5260,7182,8202,1453,3580,8712,2272,4188,4467,5414,5087,6367,5691,2540,9261,6724,1202,4159,4551,461,8634,5263,4292,9458,796,6063,9175,2294,2250,743,628,7750,9365,7362,7291,9582,4838,1448,8399,1837,3829,7079,2141,1456,5780,3521,8689,4518,6028,7387,9257,8819,5695,7565,9176,2381,3305,8108,9970,2200,7470,5348,3620,3685,9894,7299,8009,7163,1239,9117,4139,1408,1331,8603,1899,4364,8983,7326,8019,2251,5648,7944,3359,8884,6969,2996,4623,9399,3847,1674,6477,3594,9446,7939,5686,5166,230,6213,9636,1578,9990,2230,9522,4550,7095,9708,6832,2878,8657,4043].map(s.E)},5);var i=s(25990);return s.O(i)})());
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.DescopeUI=t():e.DescopeUI=t()}(self,()=>(()=>{var e,t,n={16295(e,t,n){const r=n(95256),o={};for(const e of Object.keys(r))o[r[e]]=e;const s={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};e.exports=s;for(const e of Object.keys(s)){if(!("channels"in s[e]))throw new Error("missing channels property: "+e);if(!("labels"in s[e]))throw new Error("missing channel labels property: "+e);if(s[e].labels.length!==s[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=s[e];delete s[e].channels,delete s[e].labels,Object.defineProperty(s[e],"channels",{value:t}),Object.defineProperty(s[e],"labels",{value:n})}function i(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}s.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(t,n,r),s=Math.max(t,n,r),i=s-o;let a,l;s===o?a=0:t===s?a=(n-r)/i:n===s?a=2+(r-t)/i:r===s&&(a=4+(t-n)/i),a=Math.min(60*a,360),a<0&&(a+=360);const c=(o+s)/2;return l=s===o?0:c<=.5?i/(s+o):i/(2-s-o),[a,100*l,100*c]},s.rgb.hsv=function(e){let t,n,r,o,s;const i=e[0]/255,a=e[1]/255,l=e[2]/255,c=Math.max(i,a,l),u=c-Math.min(i,a,l),d=function(e){return(c-e)/6/u+.5};return 0===u?(o=0,s=0):(s=u/c,t=d(i),n=d(a),r=d(l),i===c?o=r-n:a===c?o=1/3+t-r:l===c&&(o=2/3+n-t),o<0?o+=1:o>1&&(o-=1)),[360*o,100*s,100*c]},s.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const o=s.rgb.hsl(e)[0],i=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[o,100*i,100*r]},s.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(1-t,1-n,1-r);return[100*((1-t-o)/(1-o)||0),100*((1-n-o)/(1-o)||0),100*((1-r-o)/(1-o)||0),100*o]},s.rgb.keyword=function(e){const t=o[e];if(t)return t;let n,s=1/0;for(const t of Object.keys(r)){const o=i(e,r[t]);o<s&&(s=o,n=t)}return n},s.keyword.rgb=function(e){return r[e]},s.rgb.xyz=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255;return t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,[100*(.4124*t+.3576*n+.1805*r),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},s.rgb.lab=function(e){const t=s.rgb.xyz(e);let n=t[0],r=t[1],o=t[2];return n/=95.047,r/=100,o/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,o=o>.008856?o**(1/3):7.787*o+16/116,[116*r-16,500*(n-r),200*(r-o)]},s.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let o,s,i;if(0===n)return i=255*r,[i,i,i];o=r<.5?r*(1+n):r+n-r*n;const a=2*r-o,l=[0,0,0];for(let e=0;e<3;e++)s=t+1/3*-(e-1),s<0&&s++,s>1&&s--,i=6*s<1?a+6*(o-a)*s:2*s<1?o:3*s<2?a+(o-a)*(2/3-s)*6:a,l[e]=255*i;return l},s.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,o=n;const s=Math.max(r,.01);return r*=2,n*=r<=1?r:2-r,o*=s<=1?s:2-s,[t,100*(0===r?2*o/(s+o):2*n/(r+n)),(r+n)/2*100]},s.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const o=Math.floor(t)%6,s=t-Math.floor(t),i=255*r*(1-n),a=255*r*(1-n*s),l=255*r*(1-n*(1-s));switch(r*=255,o){case 0:return[r,l,i];case 1:return[a,r,i];case 2:return[i,r,l];case 3:return[i,a,r];case 4:return[l,i,r];case 5:return[r,i,a]}},s.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,o=Math.max(r,.01);let s,i;i=(2-n)*r;const a=(2-n)*o;return s=n*o,s/=a<=1?a:2-a,s=s||0,i/=2,[t,100*s,100*i]},s.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const o=n+r;let s;o>1&&(n/=o,r/=o);const i=Math.floor(6*t),a=1-r;s=6*t-i,1&i&&(s=1-s);const l=n+s*(a-n);let c,u,d;switch(i){default:case 6:case 0:c=a,u=l,d=n;break;case 1:c=l,u=a,d=n;break;case 2:c=n,u=a,d=l;break;case 3:c=n,u=l,d=a;break;case 4:c=l,u=n,d=a;break;case 5:c=a,u=n,d=l}return[255*c,255*u,255*d]},s.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100;return[255*(1-Math.min(1,t*(1-o)+o)),255*(1-Math.min(1,n*(1-o)+o)),255*(1-Math.min(1,r*(1-o)+o))]},s.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let o,s,i;return o=3.2406*t+-1.5372*n+-.4986*r,s=-.9689*t+1.8758*n+.0415*r,i=.0557*t+-.204*n+1.057*r,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,s=s>.0031308?1.055*s**(1/2.4)-.055:12.92*s,i=i>.0031308?1.055*i**(1/2.4)-.055:12.92*i,o=Math.min(Math.max(0,o),1),s=Math.min(Math.max(0,s),1),i=Math.min(Math.max(0,i),1),[255*o,255*s,255*i]},s.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];return t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,[116*n-16,500*(t-n),200*(n-r)]},s.lab.xyz=function(e){let t,n,r;n=(e[0]+16)/116,t=e[1]/500+n,r=n-e[2]/200;const o=n**3,s=t**3,i=r**3;return n=o>.008856?o:(n-16/116)/7.787,t=s>.008856?s:(t-16/116)/7.787,r=i>.008856?i:(r-16/116)/7.787,t*=95.047,n*=100,r*=108.883,[t,n,r]},s.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let o;return o=360*Math.atan2(r,n)/2/Math.PI,o<0&&(o+=360),[t,Math.sqrt(n*n+r*r),o]},s.lch.lab=function(e){const t=e[0],n=e[1],r=e[2]/360*2*Math.PI;return[t,n*Math.cos(r),n*Math.sin(r)]},s.rgb.ansi16=function(e,t=null){const[n,r,o]=e;let i=null===t?s.rgb.hsv(e)[2]:t;if(i=Math.round(i/50),0===i)return 30;let a=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return 2===i&&(a+=60),a},s.hsv.ansi16=function(e){return s.rgb.ansi16(s.hsv.rgb(e),e[2])},s.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},s.ansi16.rgb=function(e){let t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},s.ansi256.rgb=function(e){if(e>=232){const t=10*(e-232)+8;return[t,t,t]}let t;return e-=16,[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},s.rgb.hex=function(e){const t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},s.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];3===t[0].length&&(n=n.split("").map(e=>e+e).join(""));const r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},s.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.max(Math.max(t,n),r),s=Math.min(Math.min(t,n),r),i=o-s;let a,l;return a=i<1?s/(1-i):0,l=i<=0?0:o===t?(n-r)/i%6:o===n?2+(r-t)/i:4+(t-n)/i,l/=6,l%=1,[360*l,100*i,100*a]},s.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let o=0;return r<1&&(o=(n-.5*r)/(1-r)),[e[0],100*r,100*o]},s.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],100*r,100*o]},s.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];const o=[0,0,0],s=t%1*6,i=s%1,a=1-i;let l=0;switch(Math.floor(s)){case 0:o[0]=1,o[1]=i,o[2]=0;break;case 1:o[0]=a,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=i;break;case 3:o[0]=0,o[1]=a,o[2]=1;break;case 4:o[0]=i,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=a}return l=(1-n)*r,[255*(n*o[0]+l),255*(n*o[1]+l),255*(n*o[2]+l)]},s.hcg.hsv=function(e){const t=e[1]/100,n=t+e[2]/100*(1-t);let r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},s.hcg.hsl=function(e){const t=e[1]/100,n=e[2]/100*(1-t)+.5*t;let r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},s.hcg.hwb=function(e){const t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},s.hwb.hcg=function(e){const t=e[1]/100,n=1-e[2]/100,r=n-t;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],100*r,100*o]},s.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},s.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},s.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},s.gray.hsl=function(e){return[0,0,e[0]]},s.gray.hsv=s.gray.hsl,s.gray.hwb=function(e){return[0,100,e[0]]},s.gray.cmyk=function(e){return[0,0,0,e[0]]},s.gray.lab=function(e){return[e[0],0,0]},s.gray.hex=function(e){const t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},s.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},45362(e,t,n){const r=n(16295),o=n(55223),s={};Object.keys(r).forEach(e=>{s[e]={},Object.defineProperty(s[e],"channels",{value:r[e].channels}),Object.defineProperty(s[e],"labels",{value:r[e].labels});const t=o(e);Object.keys(t).forEach(n=>{const r=t[n];s[e][n]=function(e){const t=function(...t){const n=t[0];if(null==n)return n;n.length>1&&(t=n);const r=e(t);if("object"==typeof r)for(let e=r.length,t=0;t<e;t++)r[t]=Math.round(r[t]);return r};return"conversion"in e&&(t.conversion=e.conversion),t}(r),s[e][n].raw=function(e){const t=function(...t){const n=t[0];return null==n?n:(n.length>1&&(t=n),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)})}),e.exports=s},55223(e,t,n){const r=n(16295);function o(e,t){return function(n){return t(e(n))}}function s(e,t){const n=[t[e].parent,e];let s=r[t[e].parent][e],i=t[e].parent;for(;t[i].parent;)n.unshift(t[i].parent),s=o(r[t[i].parent][i],s),i=t[i].parent;return s.conversion=n,s}e.exports=function(e){const t=function(e){const t=function(){const e={},t=Object.keys(r);for(let n=t.length,r=0;r<n;r++)e[t[r]]={distance:-1,parent:null};return e}(),n=[e];for(t[e].distance=0;n.length;){const e=n.pop(),o=Object.keys(r[e]);for(let r=o.length,s=0;s<r;s++){const r=o[s],i=t[r];-1===i.distance&&(i.distance=t[e].distance+1,i.parent=e,n.unshift(r))}}return t}(e),n={},o=Object.keys(t);for(let e=o.length,r=0;r<e;r++){const e=o[r];null!==t[e].parent&&(n[e]=s(e,t))}return n}},95256(e){"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},43426(e,t,n){var r=n(95256),o=n(25628),s=Object.hasOwnProperty,i=Object.create(null);for(var a in r)s.call(r,a)&&(i[r[a]]=a);var l=e.exports={to:{},get:{}};function c(e,t,n){return Math.min(Math.max(t,e),n)}function u(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}l.get=function(e){var t,n;switch(e.substring(0,3).toLowerCase()){case"hsl":t=l.get.hsl(e),n="hsl";break;case"hwb":t=l.get.hwb(e),n="hwb";break;default:t=l.get.rgb(e),n="rgb"}return t?{model:n,value:t}:null},l.get.rgb=function(e){if(!e)return null;var t,n,o,i=[0,0,0,1];if(t=e.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(o=t[2],t=t[1],n=0;n<3;n++){var a=2*n;i[n]=parseInt(t.slice(a,a+2),16)}o&&(i[3]=parseInt(o,16)/255)}else if(t=e.match(/^#([a-f0-9]{3,4})$/i)){for(o=(t=t[1])[3],n=0;n<3;n++)i[n]=parseInt(t[n]+t[n],16);o&&(i[3]=parseInt(o+o,16)/255)}else if(t=e.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(n=0;n<3;n++)i[n]=parseInt(t[n+1],0);t[4]&&(t[5]?i[3]=.01*parseFloat(t[4]):i[3]=parseFloat(t[4]))}else{if(!(t=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(t=e.match(/^(\w+)$/))?"transparent"===t[1]?[0,0,0,0]:s.call(r,t[1])?((i=r[t[1]])[3]=1,i):null:null;for(n=0;n<3;n++)i[n]=Math.round(2.55*parseFloat(t[n+1]));t[4]&&(t[5]?i[3]=.01*parseFloat(t[4]):i[3]=parseFloat(t[4]))}for(n=0;n<3;n++)i[n]=c(i[n],0,255);return i[3]=c(i[3],0,1),i},l.get.hsl=function(e){if(!e)return null;var t=e.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var n=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,c(parseFloat(t[2]),0,100),c(parseFloat(t[3]),0,100),c(isNaN(n)?1:n,0,1)]}return null},l.get.hwb=function(e){if(!e)return null;var t=e.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var n=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,c(parseFloat(t[2]),0,100),c(parseFloat(t[3]),0,100),c(isNaN(n)?1:n,0,1)]}return null},l.to.hex=function(){var e=o(arguments);return"#"+u(e[0])+u(e[1])+u(e[2])+(e[3]<1?u(Math.round(255*e[3])):"")},l.to.rgb=function(){var e=o(arguments);return e.length<4||1===e[3]?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},l.to.rgb.percent=function(){var e=o(arguments),t=Math.round(e[0]/255*100),n=Math.round(e[1]/255*100),r=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+t+"%, "+n+"%, "+r+"%)":"rgba("+t+"%, "+n+"%, "+r+"%, "+e[3]+")"},l.to.hsl=function(){var e=o(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},l.to.hwb=function(){var e=o(arguments),t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},l.to.keyword=function(e){return i[e.slice(0,3)]}},18524(e,t,n){const r=n(43426),o=n(45362),s=["keyword","gray","hex"],i={};for(const e of Object.keys(o))i[[...o[e].labels].sort().join("")]=e;const a={};function l(e,t){if(!(this instanceof l))return new l(e,t);if(t&&t in s&&(t=null),t&&!(t in o))throw new Error("Unknown model: "+t);let n,c;if(null==e)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof l)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if("string"==typeof e){const t=r.get(e);if(null===t)throw new Error("Unable to parse color from string: "+e);this.model=t.model,c=o[this.model].channels,this.color=t.value.slice(0,c),this.valpha="number"==typeof t.value[c]?t.value[c]:1}else if(e.length>0){this.model=t||"rgb",c=o[this.model].channels;const n=Array.prototype.slice.call(e,0,c);this.color=p(n,c),this.valpha="number"==typeof e[c]?e[c]:1}else if("number"==typeof e)this.model="rgb",this.color=[e>>16&255,e>>8&255,255&e],this.valpha=1;else{this.valpha=1;const t=Object.keys(e);"alpha"in e&&(t.splice(t.indexOf("alpha"),1),this.valpha="number"==typeof e.alpha?e.alpha:0);const r=t.sort().join("");if(!(r in i))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=i[r];const{labels:s}=o[this.model],a=[];for(n=0;n<s.length;n++)a.push(e[s[n]]);this.color=p(a)}if(a[this.model])for(c=o[this.model].channels,n=0;n<c;n++){const e=a[this.model][n];e&&(this.color[n]=e(this.color[n]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}l.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(e){let t=this.model in r.to?this:this.rgb();t=t.round("number"==typeof e?e:1);const n=1===t.valpha?t.color:[...t.color,this.valpha];return r.to[t.model](n)},percentString(e){const t=this.rgb().round("number"==typeof e?e:1),n=1===t.valpha?t.color:[...t.color,this.valpha];return r.to.rgb.percent(n)},array(){return 1===this.valpha?[...this.color]:[...this.color,this.valpha]},object(){const e={},{channels:t}=o[this.model],{labels:n}=o[this.model];for(let r=0;r<t;r++)e[n[r]]=this.color[r];return 1!==this.valpha&&(e.alpha=this.valpha),e},unitArray(){const e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,1!==this.valpha&&e.push(this.valpha),e},unitObject(){const e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,1!==this.valpha&&(e.alpha=this.valpha),e},round(e){return e=Math.max(e||0,0),new l([...this.color.map(c(e)),this.valpha],this.model)},alpha(e){return void 0!==e?new l([...this.color,Math.max(0,Math.min(1,e))],this.model):this.valpha},red:u("rgb",0,d(255)),green:u("rgb",1,d(255)),blue:u("rgb",2,d(255)),hue:u(["hsl","hsv","hsl","hwb","hcg"],0,e=>(e%360+360)%360),saturationl:u("hsl",1,d(100)),lightness:u("hsl",2,d(100)),saturationv:u("hsv",1,d(100)),value:u("hsv",2,d(100)),chroma:u("hcg",1,d(100)),gray:u("hcg",2,d(100)),white:u("hwb",1,d(100)),wblack:u("hwb",2,d(100)),cyan:u("cmyk",0,d(100)),magenta:u("cmyk",1,d(100)),yellow:u("cmyk",2,d(100)),black:u("cmyk",3,d(100)),x:u("xyz",0,d(95.047)),y:u("xyz",1,d(100)),z:u("xyz",2,d(108.833)),l:u("lab",0,d(100)),a:u("lab",1),b:u("lab",2),keyword(e){return void 0!==e?new l(e):o[this.model].keyword(this.color)},hex(e){return void 0!==e?new l(e):r.to.hex(this.rgb().round().color)},hexa(e){if(void 0!==e)return new l(e);const t=this.rgb().round().color;let n=Math.round(255*this.valpha).toString(16).toUpperCase();return 1===n.length&&(n="0"+n),r.to.hex(t)+n},rgbNumber(){const e=this.rgb().color;return(255&e[0])<<16|(255&e[1])<<8|255&e[2]},luminosity(){const e=this.rgb().color,t=[];for(const[n,r]of e.entries()){const e=r/255;t[n]=e<=.04045?e/12.92:((e+.055)/1.055)**2.4}return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(e){const t=this.luminosity(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},level(e){const t=this.contrast(e);return t>=7?"AAA":t>=4.5?"AA":""},isDark(){const e=this.rgb().color;return(2126*e[0]+7152*e[1]+722*e[2])/1e4<128},isLight(){return!this.isDark()},negate(){const e=this.rgb();for(let t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten(e){const t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken(e){const t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate(e){const t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate(e){const t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten(e){const t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken(e){const t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale(){const e=this.rgb().color,t=.3*e[0]+.59*e[1]+.11*e[2];return l.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){const t=this.hsl();let n=t.color[0];return n=(n+e)%360,n=n<0?360+n:n,t.color[0]=n,t},mix(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);const n=e.rgb(),r=this.rgb(),o=void 0===t?.5:t,s=2*o-1,i=n.alpha()-r.alpha(),a=((s*i===-1?s:(s+i)/(1+s*i))+1)/2,c=1-a;return l.rgb(a*n.red()+c*r.red(),a*n.green()+c*r.green(),a*n.blue()+c*r.blue(),n.alpha()*o+r.alpha()*(1-o))}};for(const e of Object.keys(o)){if(s.includes(e))continue;const{channels:t}=o[e];l.prototype[e]=function(...t){return this.model===e?new l(this):t.length>0?new l(t,e):new l([...(n=o[this.model][e].raw(this.color),Array.isArray(n)?n:[n]),this.valpha],e);var n},l[e]=function(...n){let r=n[0];return"number"==typeof r&&(r=p(n,t)),new l(r,e)}}function c(e){return function(t){return function(e,t){return Number(e.toFixed(t))}(t,e)}}function u(e,t,n){e=Array.isArray(e)?e:[e];for(const r of e)(a[r]||(a[r]=[]))[t]=n;return e=e[0],function(r){let o;return void 0!==r?(n&&(r=n(r)),o=this[e](),o.color[t]=r,o):(o=this[e]().color[t],n&&(o=n(o)),o)}}function d(e){return function(t){return Math.max(0,Math.min(e,t))}}function p(e,t){for(let n=0;n<t;n++)"number"!=typeof e[n]&&(e[n]=0);return e}e.exports=l},68049(e,t,n){var r=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,i=/^0o[0-7]+$/i,a=parseInt,l="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,c="object"==typeof self&&self&&self.Object===Object&&self,u=l||c||Function("return this")(),d=Object.prototype.toString,p=Math.max,h=Math.min,f=function(){return u.Date.now()};function b(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function g(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==d.call(e)}(e))return NaN;if(b(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=b(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(r,"");var n=s.test(e);return n||i.test(e)?a(e.slice(2),n?2:8):o.test(e)?NaN:+e}e.exports=function(e,t,n){var r,o,s,i,a,l,c=0,u=!1,d=!1,m=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function H(t){var n=r,s=o;return r=o=void 0,c=t,i=e.apply(s,n)}function y(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-c>=s}function v(){var e=f();if(y(e))return S(e);a=setTimeout(v,function(e){var n=t-(e-l);return d?h(n,s-(e-c)):n}(e))}function S(e){return a=void 0,m&&r?H(e):(r=o=void 0,i)}function x(){var e=f(),n=y(e);if(r=arguments,o=this,l=e,n){if(void 0===a)return function(e){return c=e,a=setTimeout(v,t),u?H(e):i}(l);if(d)return a=setTimeout(v,t),H(l)}return void 0===a&&(a=setTimeout(v,t)),i}return t=g(t)||0,b(n)&&(u=!!n.leading,s=(d="maxWait"in n)?p(g(n.maxWait)||0,t):s,m="trailing"in n?!!n.trailing:m),x.cancel=function(){void 0!==a&&clearTimeout(a),c=0,r=l=o=a=void 0},x.flush=function(){return void 0===a?i:S(f())},x}},21642(e,t,n){e=n.nmd(e);var r="__lodash_hash_undefined__",o=9007199254740991,s="[object Arguments]",i="[object Function]",a="[object Object]",l=/^\[object .+?Constructor\]$/,c=/^(?:0|[1-9]\d*)$/,u={};u["[object Float32Array]"]=u["[object Float64Array]"]=u["[object Int8Array]"]=u["[object Int16Array]"]=u["[object Int32Array]"]=u["[object Uint8Array]"]=u["[object Uint8ClampedArray]"]=u["[object Uint16Array]"]=u["[object Uint32Array]"]=!0,u[s]=u["[object Array]"]=u["[object ArrayBuffer]"]=u["[object Boolean]"]=u["[object DataView]"]=u["[object Date]"]=u["[object Error]"]=u[i]=u["[object Map]"]=u["[object Number]"]=u[a]=u["[object RegExp]"]=u["[object Set]"]=u["[object String]"]=u["[object WeakMap]"]=!1;var d,p,h,f="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,b="object"==typeof self&&self&&self.Object===Object&&self,g=f||b||Function("return this")(),m=t&&!t.nodeType&&t,H=m&&e&&!e.nodeType&&e,y=H&&H.exports===m,v=y&&f.process,S=function(){try{return H&&H.require&&H.require("util").types||v&&v.binding&&v.binding("util")}catch(e){}}(),x=S&&S.isTypedArray,j=Array.prototype,w=Function.prototype,A=Object.prototype,C=g["__core-js_shared__"],I=w.toString,N=A.hasOwnProperty,U=(d=/[^.]+$/.exec(C&&C.keys&&C.keys.IE_PROTO||""))?"Symbol(src)_1."+d:"",k=A.toString,K=I.call(Object),R=RegExp("^"+I.call(N).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),M=y?g.Buffer:void 0,O=g.Symbol,P=g.Uint8Array,E=(M&&M.allocUnsafe,p=Object.getPrototypeOf,h=Object,function(e){return p(h(e))}),z=Object.create,T=A.propertyIsEnumerable,F=j.splice,q=O?O.toStringTag:void 0,D=function(){try{var e=ae(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),_=M?M.isBuffer:void 0,G=Math.max,W=Date.now,V=ae(g,"Map"),$=ae(Object,"create"),L=function(){function e(){}return function(t){if(!ye(t))return{};if(z)return z(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function J(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function B(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Q(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Z(e){var t=this.__data__=new B(e);this.size=t.size}function Y(e,t,n){(void 0!==n&&!pe(e[t],n)||void 0===n&&!(t in e))&&te(e,t,n)}function X(e,t,n){var r=e[t];N.call(e,t)&&pe(r,n)&&(void 0!==n||t in e)||te(e,t,n)}function ee(e,t){for(var n=e.length;n--;)if(pe(e[n][0],t))return n;return-1}function te(e,t,n){"__proto__"==t&&D?D(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}J.prototype.clear=function(){this.__data__=$?$(null):{},this.size=0},J.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},J.prototype.get=function(e){var t=this.__data__;if($){var n=t[e];return n===r?void 0:n}return N.call(t,e)?t[e]:void 0},J.prototype.has=function(e){var t=this.__data__;return $?void 0!==t[e]:N.call(t,e)},J.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=$&&void 0===t?r:t,this},B.prototype.clear=function(){this.__data__=[],this.size=0},B.prototype.delete=function(e){var t=this.__data__,n=ee(t,e);return!(n<0||(n==t.length-1?t.pop():F.call(t,n,1),--this.size,0))},B.prototype.get=function(e){var t=this.__data__,n=ee(t,e);return n<0?void 0:t[n][1]},B.prototype.has=function(e){return ee(this.__data__,e)>-1},B.prototype.set=function(e,t){var n=this.__data__,r=ee(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Q.prototype.clear=function(){this.size=0,this.__data__={hash:new J,map:new(V||B),string:new J}},Q.prototype.delete=function(e){var t=ie(this,e).delete(e);return this.size-=t?1:0,t},Q.prototype.get=function(e){return ie(this,e).get(e)},Q.prototype.has=function(e){return ie(this,e).has(e)},Q.prototype.set=function(e,t){var n=ie(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Z.prototype.clear=function(){this.__data__=new B,this.size=0},Z.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Z.prototype.get=function(e){return this.__data__.get(e)},Z.prototype.has=function(e){return this.__data__.has(e)},Z.prototype.set=function(e,t){var n=this.__data__;if(n instanceof B){var r=n.__data__;if(!V||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Q(r)}return n.set(e,t),this.size=n.size,this};function ne(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":q&&q in Object(e)?function(e){var t=N.call(e,q),n=e[q];try{e[q]=void 0;var r=!0}catch(e){}var o=k.call(e);return r&&(t?e[q]=n:delete e[q]),o}(e):function(e){return k.call(e)}(e)}function re(e){return ve(e)&&ne(e)==s}function oe(e,t,n,r,o){e!==t&&function(e,t,n){for(var r=-1,o=Object(e),s=n(e),i=s.length;i--;){var a=s[++r];if(!1===t(o[a],a,o))break}}(t,function(s,i){if(o||(o=new Z),ye(s))!function(e,t,n,r,o,s,i){var l=ue(e,n),c=ue(t,n),u=i.get(c);if(u)Y(e,n,u);else{var d,p,h,f,b,g=s?s(l,c,n+"",e,t,i):void 0,m=void 0===g;if(m){var H=fe(c),y=!H&&ge(c),v=!H&&!y&&Se(c);g=c,H||y||v?fe(l)?g=l:ve(b=l)&&be(b)?g=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(l):y?(m=!1,g=function(e){return e.slice()}(c)):v?(m=!1,f=new(h=(d=c).buffer).constructor(h.byteLength),new P(f).set(new P(h)),p=f,g=new d.constructor(p,d.byteOffset,d.length)):g=[]:function(e){if(!ve(e)||ne(e)!=a)return!1;var t=E(e);if(null===t)return!0;var n=N.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&I.call(n)==K}(c)||he(c)?(g=l,he(l)?g=function(e){return function(e,t,n){var r=!n;n||(n={});for(var o=-1,s=t.length;++o<s;){var i=t[o],a=void 0;void 0===a&&(a=e[i]),r?te(n,i,a):X(n,i,a)}return n}(e,xe(e))}(l):ye(l)&&!me(l)||(g=function(e){return"function"!=typeof e.constructor||ce(e)?{}:L(E(e))}(c))):m=!1}m&&(i.set(c,g),o(g,c,r,s,i),i.delete(c)),Y(e,n,g)}}(e,t,i,n,oe,r,o);else{var l=r?r(ue(e,i),s,i+"",e,t,o):void 0;void 0===l&&(l=s),Y(e,i,l)}},xe)}var se=D?function(e,t){return D(e,"toString",{configurable:!0,enumerable:!1,value:(n=t,function(){return n}),writable:!0});var n}:Ae;function ie(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function ae(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!ye(e)||function(e){return!!U&&U in e}(e))&&(me(e)?R:l).test(function(e){if(null!=e){try{return I.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}(n)?n:void 0}function le(e,t){var n=typeof e;return!!(t=null==t?o:t)&&("number"==n||"symbol"!=n&&c.test(e))&&e>-1&&e%1==0&&e<t}function ce(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||A)}function ue(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var de=function(e){var t=0,n=0;return function(){var r=W(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(se);function pe(e,t){return e===t||e!=e&&t!=t}var he=re(function(){return arguments}())?re:function(e){return ve(e)&&N.call(e,"callee")&&!T.call(e,"callee")},fe=Array.isArray;function be(e){return null!=e&&He(e.length)&&!me(e)}var ge=_||function(){return!1};function me(e){if(!ye(e))return!1;var t=ne(e);return t==i||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function He(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}function ye(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ve(e){return null!=e&&"object"==typeof e}var Se=x?function(e){return function(t){return e(t)}}(x):function(e){return ve(e)&&He(e.length)&&!!u[ne(e)]};function xe(e){return be(e)?function(e,t){var n=fe(e),r=!n&&he(e),o=!n&&!r&&ge(e),s=!n&&!r&&!o&&Se(e),i=n||r||o||s,a=i?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],l=a.length;for(var c in e)!t&&!N.call(e,c)||i&&("length"==c||o&&("offset"==c||"parent"==c)||s&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||le(c,l))||a.push(c);return a}(e,!0):function(e){if(!ye(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=ce(e),n=[];for(var r in e)("constructor"!=r||!t&&N.call(e,r))&&n.push(r);return n}(e)}var je,we=(je=function(e,t,n){oe(e,t,n)},function(e,t){return de(function(e,t,n){return t=G(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,s=G(r.length-t,0),i=Array(s);++o<s;)i[o]=r[t+o];o=-1;for(var a=Array(t+1);++o<t;)a[o]=r[o];return a[t]=n(i),function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}(e,this,a)}}(e,t,Ae),e+"")}(function(e,t){var n=-1,r=t.length,o=r>1?t[r-1]:void 0,s=r>2?t[2]:void 0;for(o=je.length>3&&"function"==typeof o?(r--,o):void 0,s&&function(e,t,n){if(!ye(n))return!1;var r=typeof t;return!!("number"==r?be(n)&&le(t,n.length):"string"==r&&t in n)&&pe(n[t],e)}(t[0],t[1],s)&&(o=r<3?void 0:o,r=1),e=Object(e);++n<r;){var i=t[n];i&&je(e,i,n)}return e}));function Ae(e){return e}e.exports=we},25628(e,t,n){"use strict";var r=n(55308),o=Array.prototype.concat,s=Array.prototype.slice,i=e.exports=function(e){for(var t=[],n=0,i=e.length;n<i;n++){var a=e[n];r(a)?t=o.call(t,s.call(a)):t.push(a)}return t};i.wrap=function(e){return function(){return e(i(arguments))}}},55308(e){e.exports=function(e){return!(!e||"string"==typeof e)&&(e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&"String"!==e.constructor.name))}},25964(e,t,n){"use strict";n.d(t,{EA:()=>d,Ge:()=>i,Gh:()=>l,Ix:()=>u,fz:()=>h,ie:()=>g,mx:()=>s,q:()=>p,xE:()=>c});var r=n(63200),o=n(69591);const s=(e,t,{excludeAttrs:n=[],includeAttrs:r=[]})=>{const o=Array.from(e.attributes).filter(e=>!n.includes(e.name)&&(!r.length||r.includes(e.name))).map(e=>e.name);t(o),new MutationObserver(e=>{e.forEach(e=>{"attributes"!==e.type||n.includes(e.attributeName)||r.length&&!r.includes(e.attributeName)||t([e.attributeName])})}).observe(e,{attributes:!0})},i=(e,t)=>{t({addedNodes:Array.from(e.children),removedNodes:[]}),new MutationObserver(e=>{e.forEach(e=>{"childList"!==e.type&&"characterData"!==e.type||t(e)})}).observe(e,{childList:!0,characterData:!0,subtree:!0})},a=(e,t,n={})=>r=>{r.forEach(r=>{const o=n[r]||r,s=e.getAttribute(r);t&&(null!==s?t.getAttribute(o)!==s&&t.setAttribute(o,s):t.removeAttribute(o))})},l=(e,t,n)=>{s(e,a(e,t),n),s(t,a(t,e),n)},c=e=>(0,r.GL)(o.$m,e),u=(...e)=>`--${(0,r.GL)(...e)}`,d=(e,t,n={})=>{s(e,a(e,t,n.mapAttrs),n)},p=(e,t,n=[])=>{if(!n.length)return;const r=n.reduce((t,n)=>Object.assign(t,{[n]:{get:()=>e[n],set(t){e[n]=t}}}),{});Object.defineProperties(t,r)},h=(e,t,{prepend:n=!1}={})=>{let r;try{r=new CSSStyleSheet}catch(r){return b(e,t,{prepend:n})}const o=t?.shadowRoot||t;if(e&&r.replaceSync(e),o){const e=[...o.adoptedStyleSheets||[]];e[n?"unshift":"push"](r),o.adoptedStyleSheets=e}return e&&!r.cssRules[0]?.style&&console.warn(`No style rules were created, make sure the CSS is valid:\n "${e}"`),r};class f{constructor(e,t,{prepend:n=!1}={}){this.styleEle=document.createElement("style"),this.styleEle.textContent=e,this.styleEle.setAttribute("nonce",window.DESCOPE_NONCE),this.ref=t?.shadowRoot||t,this.ref&&(n?this.ref.prepend(this.styleEle):this.ref.append(this.styleEle))}replaceSync(e){this.styleEle.textContent=e}get cssRules(){return this.styleEle.sheet?.cssRules}}const b=(e,t,{prepend:n=!1}={})=>new f(e,t,{prepend:n}),g=(e,t=2)=>e.trim().split(" ").splice(0,t).map(e=>e[0]?.toUpperCase()).join("")},69591(e,t,n){"use strict";n.d(t,{$m:()=>r,IM:()=>s,aE:()=>o});const r="descope",o=5,s="host"},74556(e,t,n){},4097(e,t,n){"use strict";n.d(t,{b:()=>r});const r=new class{static mountOnPropName="DescopeThemeManager";#e={};#t="light";#n=new Set;#r(){this.#n.forEach(e=>e?.())}get currentThemeName(){return this.#t}set currentThemeName(e){this.#t=e,this.#r()}get currentTheme(){return this.#e[this.currentThemeName]}onCurrentThemeChange(e){return this.#n.add(e),()=>{this.#n.delete(e)}}set themes(e){this.#e=e,this.#r()}get hasThemes(){return!!Object.keys(this.#e).length}}},79673(e,t,n){"use strict";n.d(t,{$J:()=>o.$J,I4:()=>o.I4,Kl:()=>o.Kl,br:()=>r.b,cy:()=>o.cy,fu:()=>o.fu,lS:()=>o.lS}),n(21642),n(63200),n(25964);var r=n(4097),o=(n(74556),n(69461))},69461(e,t,n){"use strict";n.d(t,{$J:()=>a,I4:()=>o,Kl:()=>l,cy:()=>r,fu:()=>i,lS:()=>s});const r=e=>`\n :host {\n padding: calc(var(${e.inputOutlineWidth}) + var(${e.inputOutlineOffset}))\n }\n`,o=e=>`\n ${e} > label,\n ${e}::part(label),\n ${e}::part(required-indicator) {\n cursor: pointer;\n }\n`,s=(e,t="input")=>`\n ${e}[disabled] > ${t}:placeholder-shown,\n\t${e}[readonly] > ${t}:placeholder-shown {\n\t\topacity: 1;\n\t}\n`,i=e=>`\n ${e}::part(input-field)::after {\n opacity: 0;\n }\n`,a=e=>`\n :host ::part(error-message) {\n direction: ltr;\n }\n :host([required]) ::part(required-indicator) {\n width: 1em;\n display: inline-flex;\n }\n :host([required]) ::part(required-indicator)::after {\n position: static;\n }\n :host([has-label]) ::part(label) {\n padding-right: 0;\n padding-bottom: 0;\n display: flex;\n width: 100%;\n }\n ${e} [slot="label"] {\n max-width: calc(100% - 1em);\n overflow: hidden;\n text-overflow: ellipsis;\n padding-bottom: 0.5em;\n }\n`,l=()=>'\n :host([label-type="floating"]) {\n position: relative;\n }\n :host([label-type="floating"][has-label]) > ::part(label) {\n z-index: 1;\n padding: 0;\n width: auto;\n }\n '},86507(e,t,n){"use strict";n.d(t,{g:()=>s});var r=n(68049),o=n.n(r);const s=(e,t)=>{let n=0;const r=new Set,s=new Set,i=o()((t,o)=>{e(...t).then(e=>{o===n&&(r.forEach(t=>t(e)),r.clear())}).catch(e=>{s.forEach(t=>t(e)),s.clear()})},t);return(...e)=>(n++,new Promise((t,o)=>{r.add(t),s.add(o),i(e,n)}))}},63200(e,t,n){"use strict";n.d(t,{GL:()=>s,Tn:()=>l,Zz:()=>a,dk:()=>i,g5:()=>r.g,kW:()=>o});var r=n(86507);const o=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_.]+/g,"-").toLowerCase(),s=(...e)=>o(e.filter(e=>!!e).join("-")),i=(...e)=>e.filter(Boolean).map((e,t)=>{return 0===t?e:(n=e).charAt(0).toUpperCase()+n.slice(1);var n}).join(""),a=(...e)=>t=>e.reduceRight((e,t)=>t(e),t),l=e=>"function"==typeof e},3047(e,t,n){"use strict";n.d(t,{$m:()=>r,IM:()=>s,WJ:()=>i,aE:()=>o});const r="descope",o=5,s="host",i="@"},97810(e,t,n){"use strict";n.d(t,{EA:()=>d,Ge:()=>i,Gh:()=>l,Ix:()=>u,mx:()=>s,q:()=>p,xE:()=>c});var r=n(9696),o=n(3047);const s=(e,t,{excludeAttrs:n=[],includeAttrs:r=[]})=>{const o=Array.from(e.attributes).filter(e=>!n.includes(e.name)&&(!r.length||r.includes(e.name))).map(e=>e.name);t(o),new MutationObserver(e=>{e.forEach(e=>{"attributes"!==e.type||n.includes(e.attributeName)||r.length&&!r.includes(e.attributeName)||t([e.attributeName])})}).observe(e,{attributes:!0})},i=(e,t)=>{t({addedNodes:Array.from(e.children),removedNodes:[]}),new MutationObserver(e=>{e.forEach(e=>{"childList"!==e.type&&"characterData"!==e.type||t(e)})}).observe(e,{childList:!0,characterData:!0,subtree:!0})},a=(e,t,n={})=>r=>{r.forEach(r=>{const o=n[r]||r,s=e.getAttribute(r);t&&(null!==s?t.getAttribute(o)!==s&&t.setAttribute(o,s):t.removeAttribute(o))})},l=(e,t,n)=>{s(e,a(e,t),n),s(t,a(t,e),n)},c=e=>(0,r.GL)(o.$m,e),u=(...e)=>`--${(0,r.GL)(...e)}`,d=(e,t,n={})=>{s(e,a(e,t,n.mapAttrs),n)},p=(e,t,n=[])=>{if(!n.length)return;const r=n.reduce((t,n)=>Object.assign(t,{[n]:{get:()=>e[n],set(t){e[n]=t}}}),{});Object.defineProperties(t,r)}},9696(e,t,n){"use strict";n.d(t,{AG:()=>c,GL:()=>o,Tn:()=>a,Zz:()=>i,dk:()=>s,gU:()=>l,kW:()=>r,wy:()=>u});const r=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_.]+/g,"-").toLowerCase(),o=(...e)=>r(e.filter(e=>!!e).join("-")),s=(...e)=>e.filter(Boolean).map((e,t)=>{return 0===t?e:(n=e).charAt(0).toUpperCase()+n.slice(1);var n}).join(""),i=(...e)=>t=>e.reduceRight((e,t)=>t(e),t),a=e=>"function"==typeof e,l=e=>{try{return new URL(e),!0}catch(e){return!1}},c=(e,t)=>{if(!Array.isArray(e)||!Array.isArray(t))return!1;if(e.length!==t.length)return!1;const n=e.slice().sort(),r=t.slice().sort();for(let e=0;e<n.length;e++)if(n[e]!==r[e])return!1;return!0},u=e=>e.replace(/([A-Z])/g," $1").trim().split(" ").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")},40070(e,t,n){"use strict";n.d(t,{e:()=>g,t:()=>m});var r=n(18524),o=n.n(r);const s=.4,i=.25,a=.1,l=(e,t)=>e.darken(t).hex(),c=e=>{const t=e.isDark();return e.mix(o()(t?"white":"black"),1).saturate(1).hex()},u=(e,t)=>e.lightness()<.5?e.lightness(100*t).hex():e.lighten(t).hex(),d=e=>e.luminosity()<.01,p=e=>e.luminosity()>.99,h=(e,t)=>"dark"===t?p(e)?l(e,i):u(e,s):d(e)?u(e,i):l(e,s),f=(e,t)=>"dark"===t?d(e)?u(e,i):l(e,s):p(e)?l(e,i):u(e,s),b=(e,t)=>"dark"===t?d(e)?u(e,a):l(e,.8):p(e)?l(e,a):u(e,.8),g=(e,t)=>{const n=new(o())(e.main||e);return{main:n.hex(),dark:e.dark||h(n,t),light:e.light||f(n,t),highlight:e.highlight||b(n,t),contrast:e.contrast||c(n)}},m=e=>Object.keys(e).reduce((t,n)=>{const r=e[n];return Object.assign(t,{[n]:g(r)})},{})},73227(e,t,n){"use strict";n.r(t),n.d(t,{componentsThemeManager:()=>l.br,createComponentsTheme:()=>v,createHelperVars:()=>j,genColor:()=>c.e,genColors:()=>c.t,getThemeRefs:()=>g,getThemeVars:()=>m,globalsThemeToStyle:()=>H,inputFloatingLabelStyle:()=>u.Kl,resetInitialHeight:()=>u.T8,resetInputAutoFill:()=>u.AI,resetInputContainer:()=>u.zm,resetInputCursor:()=>u.I4,resetInputElement:()=>u.mC,resetInputField:()=>u.Qv,resetInputFieldDefaultWidth:()=>u.X6,resetInputFieldInvalidBackgroundColor:()=>u.kG,resetInputFieldUnderlayingBorder:()=>u.cQ,resetInputLabelPosition:()=>u.$J,resetInputOverrides:()=>u.LJ,resetInputPlaceholder:()=>u.lS,resetInputReadonlyStyle:()=>u.fu,themeToCSSVarsObj:()=>b,themeToStyle:()=>S,useHostExternalPadding:()=>u.cy,useVar:()=>x});var r=n(21642),o=n.n(r),s=n(3047),i=n(9696),a=n(97810),l=n(79673),c=n(40070),u=n(73551);const d=e=>(0,a.Ix)(s.$m,...e),p=(e,t,n)=>{const r=Array.isArray(t)?t:t.match(/([^[.\]])+/g);return r.reduce((e,t,o)=>(void 0===e[t]&&(e[t]={}),o===r.length-1&&(e[t]=n),e[t]),e),e},h=(e,t,n)=>Object.entries(e).reduce((e,[r,s])=>s?.constructor!==Object?o()(e,n(t.concat(r),s)):o()(e,h(s,[...t,r],n)),{}),f=e=>{switch(!0){case Array.isArray(e):return e.map(e=>e.includes(" ")?`"${e}"`:e).join(", ");case(0,i.gU)(e):return`url(${e})`;default:return e}},b=e=>h(e,[],(e,t)=>({[d(e)]:f(t)})),g=(e,t)=>h(e,[],e=>p({},e,`var(${d(t?[t,...e]:e)})`)),m=(e,t)=>h(e,[],e=>p({},e,d(t?[t,...e]:e))),H=(e,t="")=>{const n=Object.entries(b(e)).reduce((e,t)=>`${e}${t.join(":")};\n`,"");return t?`*[data-theme="${t}"] {${n}}`:n},y=e=>Object.entries(e).reduce((e,[t,n])=>`${e}${t} { \n${Object.entries(n).map(([e,t])=>`${e}: ${t}`).join(";\n")} \n}\n\n`,""),v=e=>{const t=(e=>h(e,[],(e,t)=>{const[n,...r]=e,o=r.pop(),l=(0,a.xE)(n);"undefined"===o&&console.warn(l,`theme value: "${t}" is mapped to an invalid property`);let c=s.IM;r[0]&&r[0].startsWith(s.WJ)&&(c=r.shift());const u=r.reduce((e,t,n)=>{const[o,s]=function(e){const t=e.match(/^(&+)?(.*)$/);return[t[1]||"",t[2]||""]}(t),a=Math.min(o.length+1,3);if(s.startsWith("_"))return e+`[${(0,i.kW)(s.replace(/^_/,""))}="true"]`.repeat(a);const l=r[n+1];return"string"!=typeof l||l.startsWith("_")||l.startsWith("&")?(console.error("theme generator",`your theme structure is invalid, attribute "${t}" is followed by "${l}" which is not allowed`),e):e+`[${(0,i.kW)(s)}="${r.splice(n+1,1).join("")}"]`.repeat(a)},""),d=":host"+(u?`(${u})`:"");return{[l]:{[c]:{[d]:{[o]:f(t)}}}}}))(e);return Object.keys(t).reduce((e,n)=>{const r=t[n];return Object.assign(e,{[n]:Object.keys(r).reduce((e,t)=>Object.assign(e,{[t]:y(r[t])}),{})})},{})},S=({globals:e,components:t},n)=>({globals:H(e,n),components:v(t)}),x=(...e)=>e.reduceRight((e,t)=>t.startsWith("--")?`var(${t}${e?`, ${e}`:e})`:`${t}${e?`, ${e}`:e}`,""),j=(e,t)=>{const n=h(e,[],(e,n)=>{const r=[...e],o=r.splice(-1),s=(0,a.Ix)(t,o),i={[o]:s},l={[o]:x(s)};return{theme:p({},[...r,s],n),useVars:l,vars:i}});return[n.theme,n.useVars,n.vars]}},73551(e,t,n){"use strict";n.d(t,{$J:()=>g,AI:()=>d,I4:()=>c,Kl:()=>m,LJ:()=>b,Qv:()=>l,T8:()=>s,X6:()=>p,cQ:()=>o,cy:()=>r,fu:()=>h,kG:()=>f,lS:()=>u,mC:()=>i,zm:()=>a});const r=e=>`\n :host {\n padding: calc(var(${e.inputOutlineWidth}) + var(${e.inputOutlineOffset}))\n }\n`,o=e=>`\n ${e}::part(input-field)::after {\n border: none;\n }\n`,s=e=>`\n ${e}::before {\n\t\theight: unset;\n\t}\n`,i=e=>`\n ${e} > input {\n -webkit-mask-image: none;\n min-height: 0;\n box-sizing: border-box;\n }\n`,a=e=>`\n ${e} {\n margin: 0;\n padding: 0;\n width: 100%;\n height: 100%;\n box-sizing: border-box;\n }\n`,l=e=>`\n ${e}::part(input-field) {\n overflow: hidden;\n padding: 0;\n box-shadow: none;\n }\n`,c=e=>`\n ${e} > label,\n ${e}::part(label),\n ${e}::part(required-indicator) {\n cursor: pointer;\n }\n`,u=(e,t="input")=>`\n ${e}[disabled] > ${t}:placeholder-shown,\n\t${e}[readonly] > ${t}:placeholder-shown {\n\t\topacity: 1;\n\t}\n`,d=(e,t)=>`\n ${e} input:-webkit-autofill,\n ${e} input:-webkit-autofill::first-line,\n ${e} input:-webkit-autofill:hover,\n ${e} input:-webkit-autofill:active,\n ${e} input:-webkit-autofill:focus {\n -webkit-text-fill-color: var(${t.inputValueTextColor});\n box-shadow: 0 0 0 var(${t.inputHeight}) var(${t.inputBackgroundColor}) inset;\n }\n`,p=()=>"\n :host {\n --vaadin-field-default-width: auto;\n box-sizing: border-box;\n }\n",h=e=>`\n ${e}::part(input-field)::after {\n opacity: 0;\n }\n`,f=e=>`\n ${e}::part(input-field)::after {\n background: none;\n }\n`,b=(e,t)=>`\n ${a(e)}\n ${c(e)}\n ${u(e)}\n ${l(e)}\n ${d(e,t)}\n ${f(e)}\n ${s(e)}\n ${i(e)}\n ${o(e)}\n`,g=e=>`\n :host ::part(error-message) {\n direction: ltr;\n }\n :host([required]) ::part(required-indicator) {\n width: 1em;\n display: inline-flex;\n }\n :host([required]) ::part(required-indicator)::after {\n position: static;\n }\n :host([has-label]) ::part(label) {\n padding-right: 0;\n padding-bottom: 0;\n display: flex;\n width: 100%;\n }\n ${e} [slot="label"] {\n max-width: calc(100% - 1em);\n overflow: hidden;\n text-overflow: ellipsis;\n padding-bottom: 0.5em;\n }\n`,m=()=>'\n :host([label-type="floating"]) {\n position: relative;\n }\n :host([label-type="floating"][has-label]) > ::part(label) {\n z-index: 1;\n padding: 0;\n width: auto;\n }\n '},25990(e,t,n){const{componentsThemeManager:r}=n(73227),o=n(3902);e.exports=o.keys().reduce((e,t)=>{const n=t.replace(/.*?([^\/]+)\/index\.js$/,"$1");return n.endsWith("-internal")||(e[n]=()=>o(t)),e},{}),e.exports.componentsThemeManager=r,e.exports["descope-address-field"]=()=>Promise.all([n.e(2672),n.e(6818),n.e(2562),n.e(8968),n.e(9275),n.e(8248),n.e(7620),n.e(5966),n.e(4914),n.e(9871),n.e(7774),n.e(8961),n.e(7092),n.e(8822)]).then(n.bind(n,25278)),e.exports["descope-apps-list"]=()=>Promise.all([n.e(2672),n.e(6818),n.e(2562),n.e(8968),n.e(5260),n.e(7182),n.e(5966),n.e(8202),n.e(1453),n.e(8961),n.e(3580)]).then(n.bind(n,47477)),e.exports["descope-autocomplete-field"]=()=>Promise.all([n.e(2672),n.e(6818),n.e(2562),n.e(8968),n.e(9275),n.e(8248),n.e(7620),n.e(5966),n.e(4914),n.e(9871),n.e(7774),n.e(8961),n.e(7092),n.e(8712)]).then(n.bind(n,93847)),e.exports["descope-avatar"]=()=>Promise.all([n.e(2672),n.e(6818),n.e(2562),n.e(8968),n.e(5260),n.e(7182),n.e(5966),n.e(8202),n.e(8961),n.e(2272)]).then(n.bind(n,53557)),e.exports["descope-badge"]=()=>Promise.all([n.e(2672),n.e(8961),n.e(4188)]).then(n.bind(n,11065)),e.exports["descope-button"]=()=>Promise.all([n.e(2672),n.e(6818),n.e(2562),n.e(8968),n.e(9275),n.e(4467),n.e(5414),n.e(8961),n.e(5087)]).then(n.bind(n,30576)),e.exports["descope-collapsible-container"]=()=>Promise.all([n.e(2672),n.e(5414),n.e(8961),n.e(6367)]).then(n.bind(n,96945)),e.exports["descope-combo-box"]=()=>Promise.all([n.e(2672),n.e(6818),n.e(2562),n.e(8968),n.e(9275),n.e(8248),n.e(7620),n.e(5966),n.e(4914),n.e(9871),n.e(8961),n.e(7092),n.e(5691)]).then(n.bind(n,27092)),e.exports["descope-country-subdivision-city-field"]=()=>Promise.all([n.e(2672),n.e(6818),n.e(2562),n.e(8968),n.e(9275),n.e(8248),n.e(7620),n.e(5966),n.e(4914),n.e(9871),n.e(7774),n.e(8961),n.e(7092),n.e(2478)]).then(n.bind(n,68749)),e.exports["descope-enriched-text"]=()=>Promise.all([n.e(2672),n.e(2540),n.e(8961),n.e(9261)]).then(n.bind(n,55838)),e.exports["descope-icon"]=()=>Promise.all([n.e(2672),n.e(5414),n.e(8961),n.e(6724)]).then(n.bind(n,56737)),e.exports["descope-image"]=()=>Promise.all([n.e(2672),n.e(5414),n.e(8961),n.e(1202)]).then(n.bind(n,53455)),e.exports["descope-link"]=()=>Promise.all([n.e(2672),n.e(8961),n.e(4159)]).then(n.bind(n,74778)),e.exports["descope-list"]=()=>Promise.all([n.e(2672),n.e(8961),n.e(4551)]).then(n.bind(n,45400)),e.exports["descope-list-item"]=()=>Promise.all([n.e(2672),n.e(8961),n.e(461)]).then(n.bind(n,24542)),e.exports["descope-outbound-app-button"]=()=>Promise.all([n.e(2672),n.e(6818),n.e(2562),n.e(8968),n.e(9275),n.e(4467),n.e(5414),n.e(8961),n.e(8634)]).then(n.bind(n,81422)),e.exports["descope-outbound-apps"]=()=>Promise.all([n.e(2672),n.e(6818),n.e(2562),n.e(8968),n.e(9275),n.e(4467),n.e(5414),n.e(5260),n.e(7182),n.e(5966),n.e(8202),n.e(5263),n.e(8961),n.e(4292)]).then(n.bind(n,58204)),e.exports["descope-password-strength"]=()=>Promise.all([n.e(2672),n.e(8961),n.e(9458)]).then(n.bind(n,13241)),e.exports["descope-ponyhot"]=()=>Promise.all([n.e(2672),n.e(8961),n.e(796)]).then(n.bind(n,71696)),e.exports["descope-recovery-codes"]=()=>Promise.all([n.e(2672),n.e(6818),n.e(2562),n.e(5260),n.e(7182),n.e(6063),n.e(8961),n.e(9175)]).then(n.bind(n,88568)),e.exports["descope-text"]=()=>Promise.all([n.e(2672),n.e(8961),n.e(2294)]).then(n.bind(n,63595)),e.exports["descope-timer"]=()=>Promise.all([n.e(2672),n.e(5414),n.e(8961),n.e(2250)]).then(n.bind(n,15887)),e.exports["descope-timer-button"]=()=>Promise.all([n.e(2672),n.e(6818),n.e(2562),n.e(8968),n.e(9275),n.e(4467),n.e(5414),n.e(8961),n.e(743)]).then(n.bind(n,60096)),e.exports["descope-tooltip"]=()=>Promise.all([n.e(2672),n.e(6818),n.e(2562),n.e(8968),n.e(5966),n.e(2540),n.e(8202),n.e(8961),n.e(628)]).then(n.bind(n,38516)),e.exports["descope-trusted-devices"]=()=>Promise.all([n.e(2672),n.e(5414),n.e(8961),n.e(7750)]).then(n.bind(n,66747))},3902(e,t,n){var r={"./boolean-fields/descope-boolean-field-internal/index.js":[3274,[2672,9365,7362]],"./boolean-fields/descope-checkbox/index.js":[49582,[2672,6818,2562,8968,9275,8248,7620,4467,2540,7291,9365,8961,9582,4838]],"./boolean-fields/descope-switch-toggle/index.js":[21934,[2672,6818,2562,8968,9275,8248,7620,4467,2540,7291,9365,8961,1448]],"./button-selection-group-fields/descope-button-multi-selection-group-internal/index.js":[91831,[2672,9365,8399]],"./button-selection-group-fields/descope-button-multi-selection-group/index.js":[55162,[2672,6818,2562,8968,9275,4467,5414,9365,8961,1837,3829]],"./button-selection-group-fields/descope-button-selection-group-internal/index.js":[72415,[2672,9365,7079]],"./button-selection-group-fields/descope-button-selection-group-item/index.js":[15450,[2672,6818,2562,8968,9275,4467,5414,9365,8961,1837]],"./button-selection-group-fields/descope-button-selection-group/index.js":[27926,[2672,6818,2562,8968,9275,4467,5414,9365,8961,1837,2141]],"./descope-alert/index.js":[11339,[2672,2540,9365,8961,1456]],"./descope-code-snippet/index.js":[80522,[2672,5780,9365,3521]],"./descope-container/index.js":[81297,[2672,9365,8689]],"./descope-date-field/descope-calendar/index.js":[88350,[2672,6818,2562,8968,9275,8248,7620,4467,5414,5966,4914,9871,4518,9365,8961,7092,6028]],"./descope-date-field/index.js":[79981,[2672,6818,2562,8968,9275,8248,7620,4467,5414,5260,7182,5966,4914,9871,4518,7387,9365,8961,7092,6028,9257]],"./descope-divider/index.js":[48995,[2672,9365,8961,8819]],"./descope-email-field/index.js":[54316,[2672,6818,2562,8968,9275,8248,7620,9365,5695]],"./descope-grid/descope-grid-custom-column/index.js":[12909,[6818,7565,9176]],"./descope-grid/descope-grid-item-details-column/index.js":[92107,[6818,2562,5260,7182,7565,2381]],"./descope-grid/descope-grid-selection-column/index.js":[57641,[2672,6818,2562,8968,9275,8248,7620,4467,2540,7565,7291,9365,8961,9582,3305]],"./descope-grid/descope-grid-text-column/index.js":[57148,[6818,7565,8108]],"./descope-grid/index.js":[38976,[2672,6818,2562,8968,9275,8248,7620,4467,5260,7182,4914,2540,7565,7291,5780,9970,9365,8961,9582,2200]],"./descope-hcaptcha/index.js":[24011,[2672,9365,7470]],"./descope-hybrid-field/index.js":[44966,[2672,6818,2562,8968,9275,8248,7620,5260,7182,5966,4914,9871,5348,3620,9365,8961,7092,3685,9894,7299]],"./descope-loader-linear/index.js":[63581,[2672,9365,8009]],"./descope-loader-radial/index.js":[54249,[2672,9365,7163]],"./descope-logo/index.js":[86947,[2672,9365,1239]],"./descope-modal/index.js":[52079,[2672,6818,2562,8968,5966,9117,9365,4139]],"./descope-multi-select-combo-box/index.js":[12848,[2672,6818,2562,8968,9275,8248,7620,5966,4914,9871,1408,9365,1331]],"./descope-new-password/descope-new-password-internal/index.js":[78844,[2672,9365,8603]],"./descope-new-password/index.js":[72788,[2672,6818,2562,8968,9275,8248,7620,4467,5260,7182,1899,9365,4364]],"./descope-notification/descope-notification-card/index.js":[69182,[2672,6818,2562,8983,9365,7326]],"./descope-notification/index.js":[8273,[2672,6818,2562,8983,9365,8019]],"./descope-notp-image/index.js":[27201,[2672,9365,2251]],"./descope-number-field/index.js":[72598,[2672,6818,2562,8968,9275,8248,7620,5648,9365,7944]],"./descope-passcode/descope-passcode-internal/index.js":[59053,[2672,9365,3359]],"./descope-passcode/index.js":[54690,[2672,6818,2562,8968,9275,8248,7620,5260,7182,9365,8884]],"./descope-password/index.js":[19169,[2672,6818,2562,8968,9275,8248,7620,4467,1899,9365,6969]],"./descope-policy-validation/index.js":[26782,[2672,9365,2996]],"./descope-radio-group/index.js":[40649,[2672,6818,2562,8968,9275,8248,4467,4623,9365,9399]],"./descope-recaptcha/index.js":[85386,[2672,9365,3847]],"./descope-scopes-list/index.js":[16942,[2672,6818,2562,8968,9275,8248,7620,4467,2540,7291,9365,8961,9582,1674]],"./descope-security-questions-setup/index.js":[74460,[2672,6818,2562,8968,9275,8248,7620,5260,7182,5966,4914,9871,6477,9365,8961,7092,3594]],"./descope-security-questions-verify/index.js":[38479,[2672,6818,2562,8968,9275,8248,7620,5260,7182,9365,8961,9446]],"./descope-text-area/index.js":[5277,[2672,6818,2562,8968,9275,8248,7620,7939,9365,5686]],"./descope-text-field/index.js":[21374,[2672,6818,2562,8968,9275,8248,7620,5260,7182,9365,5166]],"./descope-third-party-app-logo/index.js":[6107,[2672,5414,9365,8961,230]],"./descope-totp-image/index.js":[7252,[2672,9365,6213]],"./descope-upload-file/index.js":[70139,[2672,6818,2562,8968,9275,4467,5414,9365,8961,9636]],"./descope-user-attribute/index.js":[45554,[2672,6818,2562,8968,9275,4467,5414,9365,8961,1578]],"./descope-user-auth-method/index.js":[67760,[2672,6818,2562,8968,9275,4467,5414,5260,9365,8961,9990]],"./mapping-fields/descope-mappings-field/descope-mapping-item/index.js":[29172,[2672,9365,2230]],"./mapping-fields/descope-mappings-field/descope-mappings-field-internal/index.js":[34884,[2672,9365,9522]],"./mapping-fields/descope-mappings-field/index.js":[84719,[2672,6818,2562,8968,9275,8248,7620,4467,5414,5260,7182,5966,4914,9871,7774,4550,9365,8961,7092,7095]],"./mapping-fields/descope-saml-group-mappings/descope-saml-group-mappings-internal/index.js":[9894,[2672,9365,9708]],"./mapping-fields/descope-saml-group-mappings/index.js":[45103,[2672,6818,2562,8968,9275,8248,7620,4467,5414,5260,7182,5966,4914,9871,7774,4550,9365,8961,7092,6832]],"./phone-fields/descope-phone-field/descope-phone-field-internal/index.js":[92132,[2672,6818,2562,8968,9275,8248,7620,5260,7182,5966,4914,9871,5348,3620,9365,8961,7092,3685,2878]],"./phone-fields/descope-phone-field/index.js":[98136,[2672,6818,2562,8968,9275,8248,7620,5260,7182,5966,4914,9871,5348,3620,9365,8961,7092,3685,9894]],"./phone-fields/descope-phone-input-box-field/descope-phone-input-box-internal/index.js":[78343,[2672,6818,2562,8968,9275,8248,7620,5260,7182,5348,9365,3685,8657]],"./phone-fields/descope-phone-input-box-field/index.js":[30057,[2672,6818,2562,8968,9275,8248,7620,5260,7182,5348,9365,3685,4043]]};function o(e){if(!n.o(r,e))return Promise.resolve().then(()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=r[e],o=t[0];return Promise.all(t[1].map(n.e)).then(()=>n(o))}o.keys=()=>Object.keys(r),o.id=3902,e.exports=o}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var s=r[e]={id:e,loaded:!1,exports:{}};return n[e](s,s.exports,o),s.loaded=!0,s.exports}return o.m=n,o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce((t,n)=>(o.f[n](e,t),t),[])),o.u=e=>(({230:"descope-third-party-app-logo-index-js",461:"descope-list-item",628:"descope-tooltip",743:"descope-timer-button",796:"descope-ponyhot",1202:"descope-image",1239:"descope-logo-index-js",1331:"descope-multi-select-combo-box-index-js",1448:"boolean-fields-descope-switch-toggle-index-js",1456:"descope-alert-index-js",1578:"descope-user-attribute-index-js",1674:"descope-scopes-list-index-js",1837:"button-selection-group-fields-descope-button-selection-group-item-index-js",2141:"button-selection-group-fields-descope-button-selection-group-index-js",2200:"descope-grid-index-js",2230:"mapping-fields-descope-mappings-field-descope-mapping-item-index-js",2250:"descope-timer",2251:"descope-notp-image-index-js",2272:"descope-avatar",2294:"descope-text",2381:"descope-grid-descope-grid-item-details-column-index-js",2478:"descope-country-subdivision-city-field",2878:"phone-fields-descope-phone-field-descope-phone-field-internal-index-js",2996:"descope-policy-validation-index-js",3305:"descope-grid-descope-grid-selection-column-index-js",3359:"descope-passcode-descope-passcode-internal-index-js",3521:"descope-code-snippet-index-js",3580:"descope-apps-list",3594:"descope-security-questions-setup-index-js",3829:"button-selection-group-fields-descope-button-multi-selection-group-index-js",3847:"descope-recaptcha-index-js",4043:"phone-fields-descope-phone-input-box-field-index-js",4139:"descope-modal-index-js",4159:"descope-link",4188:"descope-badge",4292:"descope-outbound-apps",4364:"descope-new-password-index-js",4551:"descope-list",4838:"boolean-fields-descope-checkbox-index-js",5087:"descope-button",5166:"descope-text-field-index-js",5686:"descope-text-area-index-js",5691:"descope-combo-box",5695:"descope-email-field-index-js",6028:"descope-date-field-descope-calendar-index-js",6213:"descope-totp-image-index-js",6367:"descope-collapsible-container",6724:"descope-icon",6832:"mapping-fields-descope-saml-group-mappings-index-js",6969:"descope-password-index-js",7079:"button-selection-group-fields-descope-button-selection-group-internal-index-js",7095:"mapping-fields-descope-mappings-field-index-js",7163:"descope-loader-radial-index-js",7299:"descope-hybrid-field-index-js",7326:"descope-notification-descope-notification-card-index-js",7362:"boolean-fields-descope-boolean-field-internal-index-js",7470:"descope-hcaptcha-index-js",7750:"descope-trusted-devices",7944:"descope-number-field-index-js",8009:"descope-loader-linear-index-js",8019:"descope-notification-index-js",8108:"descope-grid-descope-grid-text-column-index-js",8399:"button-selection-group-fields-descope-button-multi-selection-group-internal-index-js",8603:"descope-new-password-descope-new-password-internal-index-js",8634:"descope-outbound-app-button",8657:"phone-fields-descope-phone-input-box-field-descope-phone-input-box-internal-index-js",8689:"descope-container-index-js",8712:"descope-autocomplete-field",8819:"descope-divider-index-js",8822:"descope-address-field",8884:"descope-passcode-index-js",9175:"descope-recovery-codes",9176:"descope-grid-descope-grid-custom-column-index-js",9257:"descope-date-field-index-js",9261:"descope-enriched-text",9399:"descope-radio-group-index-js",9446:"descope-security-questions-verify-index-js",9458:"descope-password-strength",9522:"mapping-fields-descope-mappings-field-descope-mappings-field-internal-index-js",9636:"descope-upload-file-index-js",9708:"mapping-fields-descope-saml-group-mappings-descope-saml-group-mappings-internal-index-js",9894:"phone-fields-descope-phone-field-index-js",9990:"descope-user-auth-method-index-js"}[e]||e)+".js"),o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="@descope/web-components-ui:",o.l=(n,r,s,i)=>{if(e[n])e[n].push(r);else{var a,l;if(void 0!==s)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var d=c[u];if(d.getAttribute("src")==n||d.getAttribute("data-webpack")==t+s){a=d;break}}a||(l=!0,(a=document.createElement("script")).charset="utf-8",o.nc&&a.setAttribute("nonce",o.nc),a.setAttribute("data-webpack",t+s),a.src=n,0!==a.src.indexOf(window.location.origin+"/")&&(a.crossOrigin="anonymous"),a.integrity=o.sriHashes[i],a.crossOrigin="anonymous"),e[n]=[r];var p=(t,r)=>{a.onerror=a.onload=null,clearTimeout(h);var o=e[n];if(delete e[n],a.parentNode&&a.parentNode.removeChild(a),o&&o.forEach(e=>e(r)),t)return t(r)},h=setTimeout(p.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=p.bind(null,a.onerror),a.onload=p.bind(null,a.onload),l&&document.head.appendChild(a)}},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;o.g.importScripts&&(e=o.g.location+"");var t=o.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=n[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=e})(),o.sriHashes={230:"sha384-c4e4ZYNEJsQ6q1QW3vgelz+a72HpgrMz/BHNH6z5K3+awCBJeUSjWurzPj236sIJ",461:"sha384-lCvycKtZ/+cAVcgU+ETR4wXuQ3/4WjKtrH3yH5Tf2KgIAoFLgmubZvHwcujgKOFx",628:"sha384-SMSYkyF3zH/KzOhXPbyIxnz4hO48nLHZ+da+RckoUDRzb0ixAVr1BwJQPT6/zgc3",743:"sha384-Xw6xYoPnJ6mp8c6+kpOa545xs3PW/qc4rUrLOJol6q/SuxxkpkFLPHquo6VYjTXm",796:"sha384-IRBL3uptcBM16SPmvpXqDEP0t3dmWOzT/J2taaS8hCthB1jdEX5A3l7tybYPCTC2",1050:"sha384-oy4fqzLqP3izG3zSNAgknV9Pm1pMR6dJ8Hf+1WOZ9XrKdcYRLTh/6nRpRM/T2zbD",1202:"sha384-nX/Py4LB9QrQBTOqVq49W1mOQ7FboXNQzCTtN3yng+Fuo2NantS0bx6nLFWOyTPc",1239:"sha384-THoqkS0xp98dduXqXCnPVAbLnCfVt55JzLMhPR6vX9l1gpC8QwM5m6G6b29+qdbW",1331:"sha384-qUL+NLvlNxERxo1w3udxN+qyfjLRf9rPf69nJEDXKORlEPP+r0eB25DatHn+QeH4",1408:"sha384-mIuTZneuSRj6LppAaaJff6p1NCD5/oyKCAsKKdwbmQ2W/js9mVT76mQRghD0YbAy",1448:"sha384-VYICBEGXFlIPj4KFmq+nFqeBR7ExY3BFRbEZI3Dniuuc9hZ+ifes3IHk9iXSN/v8",1453:"sha384-Wcv6xLHSgVFzSYs3Wrq18M/Q1W6jztNsQ/8+JeA2bgeCvFebBuQlI2OyozX6kCtD",1456:"sha384-PCLaXDSxIOT5XD69cf8IdwCUWpt+3cSAVHOkNs5yH6zi7bF3ysLBS1p1laDGeQg+",1578:"sha384-LAV//Uqq+s+BMEj5guVzewY6VUb0u84mypFOvub6+aREBBFUHdgfjzUFM1K7eXUt",1674:"sha384-c4879JX2lRZQQuYP9HqOIB4MMHYBqjYmB8ANsu8qni9SUHQqj8AHQrNNpZROkcQt",1837:"sha384-T1qjxTD0SP+WNjwEu+ADzb27XIyfVUDkkFKQ+enC21crAr8ep2QFiQCQYRsCexz3",1899:"sha384-IppxzMaIGMxk8gAed/9jBSOVXYuy5swhAuGXE6WVd3T4q45qZf3cYxRiOrq8huAM",2141:"sha384-zst33Rfgb8ROhlPlHoyRNbiFCff74RmSXdxSoPPrUG1ddzadjT5qNE2SFoHcvz95",2200:"sha384-bgi8z4Cv7AZTUkZmw/3Ms7/Vo9rCpxO47WOpnnh7R/2sQgNIJaj9SxWvH7VouVJb",2230:"sha384-8EHJkD83IXEnuobAuVopLIVlprbNW6F2/bEG9OfwBpoAaMnH0Z55eAfORUL+soAo",2250:"sha384-px/ypUVTSx1fOnpmUYJ0WOE/UECmC4VuaqHzSnWHC2Oz8J7ArLvJDG5nixDmLCUz",2251:"sha384-7SAUra0j8Pmt+dw6BUasm5/xaYhHpqA15n4X26nlpkOEW51Gh9gDpreCTjmHEWcQ",2272:"sha384-4h2PkNsnduEKAA3NsnvIvNNcWeHhSUX3K9/V4uPdVP9QEqmTqfvBlCN/bNKz0lE3",2294:"sha384-y7g54FRzPyCGZQMA2ifA4t7Dxx/3dlAOSx4VcGd9kYzKSmbxEN183FGWsw5v5jN+",2381:"sha384-DZ9OUvoMCUCI+djMovHTLPns1XWkdppBjPErhULlnRgZgMXmIIj4jAlhmsOksmZ3",2478:"sha384-WnH5Cw+A8CqzWnyOPqpO8AeBU2MlkVfhNMVg72qbhHTN+YmEzkEQ60LC9Lo6kRZG",2540:"sha384-3zXUOHXTLCfTNRYLJTy2p3uiAfmwCSFi1WIZE4XJjFzbH/UoeNMK1+LxFu9tYWiQ",2562:"sha384-g8ccnItoPYJY4lhzmmtTbHC9rzVDbVfxBqG6/ERO1NCvPc0wEMc7NL8nYmOYZXGu",2672:"sha384-MzF+6Zhb6WND1FccqdMOefeomE/N8rbG6tFInzLXUVDKkI15F4awWOcmln0vT/Uo",2878:"sha384-vv8P9XPh+/IwhQDRfkoqHrSqqfJ/+k+p5sAT9l1VbS94oH8WX+pii6B8RBy23aLp",2996:"sha384-xphT6/D7DCCjmiykif8CPyMD1/GRsqrxAVY4GQb/CNDmjyVGlVJ2/gua5CWCGBsh",3241:"sha384-uPeaWWytSgf0aIg+VYo4ifNrGKZmOV2vi9jRrao+3YXSuFEyGV7MTs7RysmqotAh",3305:"sha384-yRSSpx/vzftOvtV49RxWEQ39gvCmx3k9p/HryC3aond21zhbP3kDb7v6hwwvO7ls",3359:"sha384-ivMHsbJjH48LA1NfAsWxI3v+1/q2en4wsrGV+vo+FYXL4s2064Jp871pm+TMAIpI",3521:"sha384-ftkSLgtiZJDFNGTkdaXv9xfWM7pQ8O91iJ3fSkhWIs4KAoFZ1fUFuBzWf9wDbOtA",3580:"sha384-TSG/cfF1yCAtRx22ESmr66yGjSgbXqEHALKRwg3IkST09hL0l2FZCWrT2ltNs6GV",3594:"sha384-FCLwdNUZpE9F2f275/djLUrckCruNGlSeIHvb0k9H9rWI9Si32CF1eXBABJGmSjM",3620:"sha384-a3xRp37r1vdxi9tGlZKD6+pv8FFOwA7ZbHWkbY4L666BqEg2HLgQ/DhD4UJHaKUr",3685:"sha384-MpXOFA1HbKVF2Bn1rXIr7TQ0fizltJLRndkQuCzCeAWfc7hohxfqGcPvGFVVp5Io",3829:"sha384-bfvtJ4+j/Su5Y2vdLCRciGI9VDGIfChw07CFpRAiYbQVklehkrlgV1jugiOfhLOr",3847:"sha384-h79p910UjM+fX9XtjE/Yie3oSo8eq9Sf8R+20EkDn2BuMScq2KJ9bxhCvVdoUGWG",4043:"sha384-fZmLhEyn2oglBzdOBPaFJq1WR/A2vTw9kXEA1+Z2wa/5lm1RRrRYDzX/InxYzbo4",4139:"sha384-yyvGjeljyhFOEMOQA1ACJR4EkBXPmvmTOSDIJl9zgsLvpd53/574ihg9RTVMhldO",4159:"sha384-BthiiU5H1bSY+Ob2ciuQDzHISmMEuiOXq5lpxHv4RSlOQGB8oBsG0y4UpCoSOlY6",4188:"sha384-MKqdb6ibioEtdy18SBYF+ZFujpWhZOnWtNnavoVTC3w9Suwnh2M8YpZJOsxEhBFn",4292:"sha384-razYClPjuusiMAVN4nnnBY7w0kt2Gj+fUaxm0ytORj3x8CBM2K8eb/+CxtUEgKlH",4364:"sha384-elu/FTv6QTbj3cN/k7QW4LoMkvHMs8l5Lkpmrqaj/WwejJWOyT8Lbm0z2Bgo5F3G",4467:"sha384-+V3zjLFHUXQ3ozYO5qtQdJCb/z8CzFChWlK9zwKoGaICP2lTDSxODBvmL/mcX5og",4518:"sha384-ThtpsB6h034rlsM/54G6kU1YKDLJL4zatZAuA1L2MaSOT7uS/6zSOJntPEc7fqGo",4550:"sha384-qzL0Ss3GFrMlwtKCZwSKjgArCqTPg9/69oubDWvHOw/1/M9haOnaG8WV/SAJnXsP",4551:"sha384-o284eZJ7e5xqIXmE1QkkICxhXk0KYslMaC/hXQZYujB7CmPXKSY4dlZUGZlcr0Uk",4623:"sha384-F5zlj6lqVEVTl4RtnsJJBeOnRR6LmoKAB79lHNJ2vgI98HYCXpm/FhGo61SgbOZO",4838:"sha384-KfqDCTnx5dQaH8TSplXulQu06xCBEiQyLyh12K/1LUrlyIKLnB8QOC1sDvj3erqy",4914:"sha384-HrGnVIO4Mp7IvAVns5dhbjlOkIFxRRiKHgqj6BeBzxFLcVYvbCZ0oAaW8m9HXk8N",5087:"sha384-4Jom2j4XG6ol7ZrtwZ+pL4yOrb65SkPlJmHr/jaiDtLCFGm4eDGmMbgi4BbXaxLW",5166:"sha384-KmXNivre3Vf5+6PaZrOMzUkNYkN0RJxKTc2hWxEKH9Ld3faHg4Oc0LWpY9Nj+JSX",5260:"sha384-mY5y0fLpCwRf5xoZ/ly88jnF+QPLs/SKwRjlg5f27Yr2eGx1h4kIVy4g7fC7aRa1",5263:"sha384-0lbB3hgW6rdPEqxn9BUpKmUhDXfXH1DD24yKc1prnG/w3mVMaljUqfzDeTvMS0o/",5348:"sha384-mL5WRg55NozQyhHgWVVxeGvTGiUAqqWdI6GEerPD2G8OSNVswsYHwG80F5Tes5yW",5414:"sha384-QLXVUH1EYCzRblHEhrpxxhTfg7dSXY1i5ib2BWionnTevIC3EBUAMpCAVFsmCxoH",5648:"sha384-IUgx2RtLGIRf4u17YDBTeb0RkJ+BP1BOsNcXKuwa6OeORU5mcWyqBl2ppxZzCNaa",5686:"sha384-HVuWOC3IBw1kyOFz15klk3qg9AWKTRD56fSCI5BX3rdLaaBwoKpVGcHX9GE+Akb4",5691:"sha384-RJlJn5qn0sfOuUeT8mSLuiSbvaMxxlugzKVDdiZU2vOKtDL0Nr1px6b8urwT+ejf",5695:"sha384-Hy2nBEJfYESYg39j5+iYdQgFNXt1F6P34od7Nf/k9aO3XDvNCcHYSXHtWaIoYEMX",5780:"sha384-XZlNLWqdKI9XivLdXo1bRUR4NRjo7X6ZTpwaieKIw5KLMAsefCvV+xlAWdzZTbWe",5966:"sha384-l51cC6eb8HCuM8hcUsiYIImBWv8hq2ePvYECJcD1GjnA81ikrlZfQtpYTz59wDsR",6028:"sha384-FPqMm+6ysOv72nRGiPd/w0uMkGJsESlZ/t1FF024x12Qg7+UuFWPjlTk2M2+VDha",6063:"sha384-Wd7ACSQLeYt3QQEiRKpy5RntumlJpWpeyIEnbZQpnGGio7bgUTz/46MgI7Qw4Pr6",6213:"sha384-dnEdCtYdu1CwKKMn2KetgZWdlrJlp9ltiftzNGd4dJfYJT32O0AjNcmXOBoiqlsW",6367:"sha384-LO+6ntG/fsZmp8FCA/kLxpNLqNfTrNgWsPgl1eS07bIawr0/b3mwg3ipAgFuKyD2",6477:"sha384-sP9GWinuNEI5dZ7BPoOIiOCDR4a5v/EDY/wNL7EBe+EpEB8RavzkF7EXrX1fIRJZ",6558:"sha384-GJEwGNlZcXpgH/tqmi2TM76NDEeVn2Zw4X978YKA5PuU2xaKO2Y7Eg7PN57pJuAe",6724:"sha384-1LtrC4GVI/tRIG7hf7x5JELbpEVeSk1doKF43UniMH0U/IsqnENiRv2+P2WPWiIg",6818:"sha384-mJb9T/KR3V1NtkEEwtU5gJoXTkGmln9FPpAuaDoF8qRm+RI3NRG9bB8H9G/0NXkg",6832:"sha384-cSrvLoyQ0gwZb+av9iQyxuodRhErMX1PXLgLDJo6Lwh72+HlNvpYDtcFpu5vLZaU",6969:"sha384-jTiKDPJfpQCqlM2drL35PvIuO9g02VUOnlLVxhoaVpwMA6IYO+dtGK8gdOY8R35F",7079:"sha384-KY2bZoWzeJUeVSb+7oJN8ZmNy1FaMG+cOqfDGk9sKtaAZqcOjmojfPVjiZAeNM67",7092:"sha384-tQ0Mci6VkBsaL45LYev+gbpdvPNE4zsEkpSFJQfV+8inp2wiU3gYdxnCFRI80Yup",7095:"sha384-eXUJi5BVKbTFsXxvO2p1FU7k8Z+ZybT0NbjwwJ3zwA5MxiX0BeKTJXlIhXkhWnad",7163:"sha384-HwWv1yZVXSaFOWtk4xXokgSiyCvPRv3D/3J+WR87c1x+E/w2iQiBJ9LHNAerCKjr",7182:"sha384-NVHJsBVqtNrCRjxRFpHlaxbDGwhDd3ghNtv157+xiXSCTvQGEBJwToEejgAu/9Dk",7291:"sha384-lX0pzX5zjuoWuoRBywH4ZrmYAK1jrc2aXBDwbIrB0gfxTw+qVT1j9MmkiHkAwmMq",7299:"sha384-iKmffo3hIXc3pn1KW/4Tir/Ysp/tZqAMg5joGAUrIWq99SwYkaU1roz6UNwBnepd",7326:"sha384-ymjyyr4SK+dYWoMa8fQOpAqu3NuFHF1smyiMwVB/w2KY4ubkvF73C6IRMSEgRekn",7362:"sha384-7KWRdug3+u5AXMs4VkRAno1ZeYtwiiJfBGFuo66SgKP/XAaqljMqP5G1ejnWLCyC",7387:"sha384-hJTgLjjQ5lDZXeZbxvVpFB/9bKMSNCDTJ23NZp5tBoBwM1QNZXrKS4V7px2nyaBg",7470:"sha384-MoHyfVbC8I0c4sVULSN1iwBqF51j0OUB1hwUoxMHKCHEXPgs7i1snZqyvvjNqMMt",7565:"sha384-yWhbcJqLxF/mNiwM13hSma00WE1tdnazjwvIBf8qijqUVVHLAywm4wnJcMMdQCmV",7620:"sha384-h2VGXFpeMR2TpQJCvITEQDG8YwJwnTRkq+v46Pk7FBXo/HaIdD8FfIfmeh4mS/p4",7750:"sha384-AWYo8LPO4zEqxozwTSdKhQRyl761I8t9VTx/Lc2gWVOaJLPj0qKibNFgLpSNn6TD",7774:"sha384-/We84/U+7sD0EOP48oGJNsLiT+v3SNPTt5xjrkreUUatY8+4A2pRxR/yEfsUMIkH",7939:"sha384-O9dRq0pbJ2IFdOUKIYffQrNvqp/U5mvXnAsOGZz+nPoDU2nV+2faHSGzSBRsoQY3",7944:"sha384-w95GwKGI0F6HBKm9GJbuuqju/8gyt5U0D7yjMxXqVgY+vvnB+UI6Qe/ZQmp+s+YS",8009:"sha384-puiUNfSynXsd7y14SXZQd5xEv1EgMZ/GGhLmzsBUDwfabjFdAdQjDqiTZuKAathS",8019:"sha384-FLGtZoC6HUa7a6OIXeInaRcN7zEhttVreAt+2EWvlevjvIVWhEj54YySg6agaUjd",8108:"sha384-Ym5yiZ6D0F7ts3edidq+2syyEXZj8sd2mAAUCjMwnSApsPG1cRRIOLlcu4rjrkhC",8202:"sha384-BRKjZ7Zq1Os6c1H/3mjHVlc1t55a9bfppj4u6xpGV/ynkfuZECa+wG6TpO8MfjwZ",8248:"sha384-xHMDxAmeM/wDPh1Msg2a2as+AMcXr30cySrHEIcSguHfvn6tnAC9kKSBX3buUVrF",8399:"sha384-V4xQVtZEhcBwQhTlQE7DIVj6elmDbPEZTFi8vbHJrZZzcOitmG2SAT+N0VH2JtJy",8603:"sha384-tXgCS0CvyHdR7a7WsDnVmSiq2OdvHKcP7x3hiYb1M8cNYeg+dgLjrUJLQ3q4nqvy",8634:"sha384-q5zTFM36szG4yOmG1ibMveo/e+4ctZBiow/zpJVmdjmKQIUPO45KvNj5DJruhf3/",8657:"sha384-qKGyt46+d2tGGxRnRXvXBI1yIRPj4Q8rVtl5UCrOktB9vQZjReE2HgYQ624Msvhq",8689:"sha384-+aKRFPExjMYyfVBoRgl27CGIQn5AYJD9hlE9hJoWGUhKiRASFjGG7tIFgXVnMdC+",8712:"sha384-OrOnKXIcWIJ2iJahUd4Hswc9wdP69I/lzkr4079Lbm9scctDYUFBIEMNm3rsHlfS",8819:"sha384-xVhLW7ku03WOrW+1za315ifsvLdqTB91sTzKOBZ5V5utkdz/cYdTtDfWI4Lz73JB",8822:"sha384-YaJRtN/mToZ9Nc1IM8YiI0gFTHkucUjwl3lPTQe5MN2pJsam6asvqIYJCWqSZ0mC",8884:"sha384-xXOwGUjtod4VF7l1RZT3AdwgpLjGLNg2lho+fjFq4Hbtob9I35zFg5a+9O1DEplM",8961:"sha384-Cr7Y5LKV8OKRiHvC958E8sc93Srrog12S0BZwq1AzMs2FuYIiC+hPr6zoIWmlIUU",8968:"sha384-sJufCdrjrL+iucfosxjmEGP/FeJENtwX1JOv3uy5AGqDU4VOVg79rKRaqhjh/z8O",8983:"sha384-RPTfsq8geC6ZCyRVbca9SQgDXkrX45eXDr2keXAl4fyWNPMKIqnNmYgbVCikFC8B",9117:"sha384-DhpshZj6mQgZ8ObsKQSgyD0aKHCLkQb2M+SI3D+xPunCrwsmM7z4PhH0PAS9dc6N",9175:"sha384-bAXSNudyOA/4vOqx8LukjitKjQG1zAukOKsoPYPhp6rO+geyl9os7POpvPgUMB6n",9176:"sha384-4M2E/f51Y7BAL0nHG/HhXp+bbzgSGQIj9SBxvV0gL92Bv0b4lcl3H+zQ3xw7XrIe",9257:"sha384-gCIOUgurWzx/xVLd/RC91jjFAOAJg5J/FG0zJo9Qucj/9Wm6hsHA0BUuCW8Zpc5E",9261:"sha384-44hH4OVfa3y/fp9CcQQZElSsZgWepmpld3LILafSVSJDKPlqkF90bU2GgVpSIspQ",9275:"sha384-5HCV/mUDSDhgp9l9oIj1OHJq62lRRix6XFDptIT+P4Q++mHXJLSLfZkWHW/e67/a",9365:"sha384-nYpDGnPpuHXYlkOJK3HJ4gL3R6ucMfZabuRDiO9dEMy/MxUk+Gg3qA2TenOzxrcD",9399:"sha384-jLE/K8T8DMnwIHJGsM0xvOWflus5sXzz9rN/c5zqVisXq1twQub5hkYOYJCC6ybo",9446:"sha384-Zek94JIaooffMzNoYqtXSGaf4XIk8UvC8WFReex7Afmm9sBHmPvz99wNARxVcOTl",9458:"sha384-SYGPBWqYotRYDs3V/1Vwb4Z4Leb6UBe7MUsZwt1PCFyMlgGT7VHalfMgbOMT2/EF",9522:"sha384-o4s+GQSH9x6mBd+uQpnCu39LQC24A5j1guphJ5Ub2dhllAZWmOyGseJC75GXA31i",9582:"sha384-lnYPgnfWZlV5p2v0KpKzQR1K5RuqETSGgSptE1xamOz4i9Cf/+CNic3yKk6QliOY",9636:"sha384-hJUURj4fi7yGYz7p/9YyKfrXzHP6yFIByqJiNlkClvl9HRhOspP5tDHe5kMNV7WG",9708:"sha384-kqZoV7Prakehi4V0OemY4X6X9T/BWycjutizbxEx2yrAuFltdcjQlxJR9T58L7YI",9871:"sha384-eFBUdvzMAfqS1J6XvZvT7ces1M1+rRWCg2qLgyor8PENLqhp500g9ig7wTzRhn7Q",9894:"sha384-iyD48xIUsyShLkkQ2cb7Gjcc6z7EZmyv/0Q0/1w1A1hBemOWplo0HQZjB6g9A8WL",9970:"sha384-EnF/hnrY919XNCFHyhtScK4W6bC+pRBumkPmxHhBriggsqlnnEKN8VH87OlWAF1R",9990:"sha384-x4vQUEDrovKrk2l2fuspKnGcpsbDGHjgMlwFZPlRkLjTL53XSQVmlcuCLMGm/g2B"},(()=>{var e={5536:0};o.f.j=(t,n)=>{var r=o.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var s=new Promise((n,o)=>r=e[t]=[n,o]);n.push(r[2]=s);var i=o.p+o.u(t),a=new Error;o.l(i,n=>{if(o.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var s=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;a.message="Loading chunk "+t+" failed.\n("+s+": "+i+")",a.name="ChunkLoadError",a.type=s,a.request=i,r[1](a)}},"chunk-"+t,t)}};var t=(t,n)=>{var r,s,[i,a,l]=n,c=0;if(i.some(t=>0!==e[t])){for(r in a)o.o(a,r)&&(o.m[r]=a[r]);l&&l(o)}for(t&&t(n);c<i.length;c++)s=i[c],o.o(e,s)&&e[s]&&e[s][0](),e[s]=0},n=self.webpackChunk_descope_web_components_ui=self.webpackChunk_descope_web_components_ui||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),o(25990)})());
2
2
  //# sourceMappingURL=index.js.map