1/*! For license information please see 6bc72a9becde4adc2016.js.LICENSE.txt */ 2"use strict";(self.webpackChunkibm_cms_project=self.webpackChunkibm_cms_project||[]).push([[7390],{7390:function(t,e,i){i.r(e),i.d(e,{C4DTypeaheadInput:function(){return o}});var s=i(2618),n=i(2777),r=function(t,e,i,s){var n,r=arguments.length,o=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,i,s);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(r<3?n(o):r>3?n(e,i,o):n(e,i))||o);return r>3&&o&&Object.defineProperty(e,i,o),o};let o=class extends s.WF{constructor(){super(...arguments),this.endpoint="",this.label="",this.urlParam="q",this.required=!1,this.activeIndex=-1,this.query="",this.showMenu=!1,this.showSpinner=!1,this.items=[],this.invalid=!1,this.inputId=`typeahead-${Date.now()}-${Math.floor(1e3*Math.random())}`,this.handleInput=t=>{const e=t.target;this.query=e.value.trim(),this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),clearTimeout(this.debounceTimer),this.debounceTimer=window.setTimeout((()=>{this.onQueryChange().catch((t=>console.error(t)))}),300),this.required&&this.query.length>0&&(this.invalid=!1)},this.handleKeyDown=t=>{if(this.showMenu||"Tab"===t.key)switch(t.key){case"Escape":case"Tab":this.showMenu=!1,this.activeIndex=-1;break;case"ArrowDown":t.preventDefault(),this.items.length>0&&(this.showMenu=!0,this.activeIndex=(this.activeIndex+1)%this.items.length);break;case"ArrowUp":t.preventDefault(),this.items.length>0&&(this.showMenu=!0,this.activeIndex=(this.activeIndex-1+this.items.length)%this.items.length);break;case"Enter":this.activeIndex>=0&&this.activeIndex<this.items.length&&(t.preventDefault(),this.handleSelect(this.items[this.activeIndex]))}},this.handleBlur=()=>{this.required&&0===this.query.trim().length?this.invalid=!0:this.invalid=!1,this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0}))},this.handleOutsideClick=t=>{this.contains(t.target)||(this.showMenu=!1)},this.handleFocus=()=>{this.items.length>0&&(this.showMenu=!0)},this.toggleMenu=()=>{this.showMenu=!this.showMenu},this.resetInputState=()=>{this.query="",this.items=[],this.showMenu=!1,this.required&&this.query.length>0&&(this.invalid=!1),this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0}))}}get value(){return this.query}async onQueryChange(){if(this.query.length<3)return this.showMenu=!1,this.showSpinner=!1,void(this.items=[]);if(this.endpoint)try{this.showSpinner=!0;const t=new URL(this.endpoint,window.location.origin);t.searchParams.set(this.urlParam,this.query);const e=await fetch(t.toString());if(!e.ok)throw new Error(e.statusText);const i=await e.json();this.items=i.searchCandidates.map((t=>t.organization.primaryName.toUpperCase())),this.showMenu=this.items.length>0}catch(t){console.error("Typeahead fetch failed:",t),this.items=[],this.showMenu=!1}finally{this.showSpinner=!1}}handleSelect(t){this.query=t,this.showMenu=!1,this.invalid=!1,this.dispatchEvent(new CustomEvent("item-selected",{detail:{value:t},bubbles:!0,composed:!0}))}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.handleOutsideClick)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.handleOutsideClick)}render(){return s.qy` 3 <div class="formField"> 4 <fieldset> 5 <label class=${this.invalid?"invalid":""} for=${this.inputId}>${this.label}</label> 6 <div class="input-wrapper"> 7 <input 8 id=${this.inputId} 9 type="text" 10 class=${this.invalid?"invalid":""} 11 .value=${this.query} 12 @input=${this.handleInput} 13 @focus=${this.handleFocus} 14 @blur=${this.handleBlur} 15 @keydown=${this.handleKeyDown} 16 aria-activedescendant=${this.activeIndex>=0?`item-${this.inputId}-${this.activeIndex}`:s.s6} 17 placeholder="" 18 /> 19 ${this.value.length>0||this.items.length>0?s.qy` 20 <div class="controls"> 21 ${this.value.length>0?s.qy` 22 <button class="clear-button" @click=${this.resetInputState}> 23 <svg 24 focusable="false" 25 preserveAspectRatio="xMidYMid meet" 26 fill="currentColor" 27 width="16" 28 height="16"
29 viewBox="0 0 32 32" 30 aria-hidden="true" 31 xmlns="http://www.w3.org/2000/svg" 32 > 33 <path 34 d="M17.4141 16L24 9.4141 22.5859 8 16 14.5859 9.4143 8 8 9.4141 14.5859 16 8 22.5859 9.4143 24 16 17.4141 22.5859 24 24 22.5859 17.4141 16z" 35 ></path> 36 </svg> 37 </button> 38 `:s.s6} 39 ${this.items.length>0&&!this.showSpinner?s.qy` 40 <button class=${this.showMenu?"open":""} @click=${this.toggleMenu}> 41 <svg 42 focusable="false" 43 preserveAspectRatio="xMidYMid meet" 44 fill="currentColor" 45 width="16" 46 height="16" 47 viewBox="0 0 16 16" 48 aria-hidden="true" 49 xmlns="http://www.w3.org/2000/svg" 50 > 51 <path d="M8 11L3 6 3.7 5.3 8 9.6 12.3 5.3 13 6z"></path> 52 </svg> 53 </button> 54 `:s.s6} 55 ${this.showSpinner?s.qy` 56 <div aria-atomic="true" aria-live="assertive" class="spinner"> 57 <svg class="cds--loading__svg" viewBox="0 0 100 100"> 58 <title>loading</title> 59 <circle 60 class="cds--loading__background" 61 cx="50%" 62 cy="50%" 63 r="42" 64 ></circle> 65 <circle 66 class="cds--loading__stroke" 67 cx="50%" 68 cy="50%" 69 r="42" 70 ></circle> 71 </svg> 72 </div> 73 `:s.s6} 74 </div> 75 `:s.s6} 76 ${this.showMenu?s.qy` 77 <div class="menu" role="listbox"> 78 <ul> 79 ${this.items.map(((t,e)=>s.qy` 80 <li class=${e===this.activeIndex?"active":""}> 81 <a 82 href="#" 83 class="option-link" 84 id="item-${this.inputId}-${e}" 85 @click=${e=>{e.preventDefault(),this.handleSelect(t)}} 86 role="option" 87 >${t}</a 88 > 89 </li> 90 `))} 91 </ul> 92 </div> 93 `:s.s6} 94 </div> 95 </fieldset> 96 </div> 97 `}};o.styles=s.AH` 98 :host { 99 display: inline-block; 100 font-family: sans-serif; 101 } 102 103 .formField { 104 fieldset { 105 border: none; 106 margin: 0; 107 padding: 0; 108 } 109 } 110 111 label { 112 display: block; 113 margin-bottom: 8px; 114 } 115 116 label.invalid { 117 color: #da1e28; 118 } 119 120 .input-wrapper { 121 position: relative; 122 } 123 124 .controls { 125 align-items: center; 126 display: flex; 127 justify-content: space-between; 128 position: absolute; 129 right: 12px; 130 top: 50%; 131 transform: translateY(-50%); 132 width: 56px; 133 } 134 135 input { 136 background-color: var(--cds-field, #f4f4f4); 137 border: none; 138 border-block-end: 0.0625rem solid #8d8d8d; 139 border-radius: 0; 140 box-sizing: border-box; 141 font-size: 14px; 142 height: 48px; 143 line-height: 18px; 144 outline-offset: -2px; 145 overflow: hidden; 146 padding: 0 80px 0 16px; 147 text-overflow: ellipsis; 148 width: 100%; 149 } 150 151 button { 152 background-color: transparent; 153 border: none; 154 display: inline-block; 155 height: 24px; 156 width: 24px; 157 } 158 159 button:hover { 160 cursor: pointer; 161 } 162 163 button.open { 164 svg { 165 transform: rotate(180deg); 166 } 167 } 168 169 .clear-button { 170 position: relative; 171 } 172 173 .clear-button::after { 174 background: var(--cds-border-subtle-01, #c6c6c6); 175 content: ''; 176 height: 16px; 177 position: absolute; 178 right: -5px; 179 top: 50%; 180 transform: translateY(-50%); 181 width: 1px; 182 } 183 184 svg { 185 display: block; 186 } 187 188 .spinner { 189 fill: transparent; 190 height: 16px; 191 width: 16px; 192 } 193 194 .cds--loading__svg { 195 animation-duration: 0.69s; 196 animation-fill-mode: forwards; 197 animation-name: cds--rotate; 198 animation-iteration-count: infinite; 199 animation-timing-function: linear; 200 201 circle { 202 stroke-width: 16; 203 } 204 } 205 206 .cds--loading__background { 207 stroke: var(--cds-layer-accent); 208 stroke-dasharray: 276.4608 276.4608; 209 stroke-linecap: butt; 210 } 211 .cds--loading__stroke { 212 stroke: var(--cds-interactive, #0f62fe); 213 stroke-dasharray: 276.4608 276.4608; 214 stroke-linecap: butt; 215 stroke-dashoffset: 143.759616; 216 } 217 218 input.invalid { 219 outline: 0.125rem solid #da1e28; 220 } 221 222 input:focus { 223 box-shadow: none; 224 outline: 0.125rem solid var(--cds-focus, #0f62fe); 225 } 226 227 .menu { 228 background-color: var(--cds-layer, #f4f4f4); 229 border: 1px solid #ccc; 230 border-radius: 4px; 231 box-shadow: 0 2px 6px var(--cds-shadow, rgba(0, 0, 0, 0.3)); 232 margin: 0; 233 max-height: 264px; 234 overflow-y: auto; 235 padding: 0; 236 position: absolute; 237 width: 100%; 238 z-index: 10; 239 240 ul { 241 list-style: none; 242 margin: 0; 243 padding: 0; 244 } 245 } 246 247 li { 248 color: black; 249 } 250 251 li:first-child { 252 .option-link { 253 border-top: none; 254 } 255 } 256 257 li.active { 258 color: var(--cds-text-primary, #161616); 259 outline: 2px solid var(--cds-focus, #0f62fe); 260 outline-offset: -2px; 261 } 262 263 li.active + li .option-link { 264 border-color: transparent; 265 } 266 267 .option-link { 268 border-top: 1px solid var(--cds-border-subtle-01, #c6c6c6); 269 box-sizing: border-box; 270 color: inherit; 271 display: block; 272 font-family: 273 'IBM Plex Sans', 274 Helvetica Neue, 275 Arial, 276 sans-serif; 277 margin: 0 16px; 278 outline: 2px solid transparent; 279 overflow: hidden; 280 padding: 15px 24px 15px 0; 281 text-decoration: none; 282 text-overflow: ellipsis; 283 text-transform: uppercase; 284 white-space: nowrap; 285 } 286 287 li:hover { 288 background: #eee; 289 } 290 291 .errorMessage { 292 color: #da1e28; 293 font-family: 'IBM Plex Sans'; 294 margin-top: 4px; 295 letter-spacing: 0.16px; 296 } 297
298 @keyframes cds--rotate { 299 0% { 300 transform: rotate(0deg); 301 } 302 303 to { 304 transform: rotate(1turn); 305 } 306 } 307 308 @media (min-width: 66rem) { 309 label { 310 margin-bottom: 16px 0 8px; 311 } 312 } 313 `,r([(0,n.MZ)({type:String})],o.prototype,"endpoint",void 0),r([(0,n.MZ)({type:String})],o.prototype,"label",void 0),r([(0,n.MZ)({type:String,attribute:"urlparam"})],o.prototype,"urlParam",void 0),r([(0,n.MZ)({type:Boolean,reflect:!0})],o.prototype,"required",void 0),r([(0,n.wk)()],o.prototype,"activeIndex",void 0),r([(0,n.wk)()],o.prototype,"query",void 0),r([(0,n.wk)()],o.prototype,"showMenu",void 0),r([(0,n.wk)()],o.prototype,"showSpinner",void 0),r([(0,n.wk)()],o.prototype,"items",void 0),r([(0,n.wk)()],o.prototype,"invalid",void 0),o=r([(0,n.EM)("c4d-typeahead-input")],o)},842:function(t,e,i){i.d(e,{mN:function(){return E},AH:function(){return h},W3:function(){return w},Ec:function(){return A}});const s=globalThis,n=s.ShadowRoot&&(void 0===s.ShadyCSS||s.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,r=Symbol(),o=new WeakMap;class a{constructor(t,e,i){if(this._$cssResult$=!0,i!==r)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(n&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=o.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&o.set(e,t))}return t}toString(){return this.cssText}}const h=(t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,i,s)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[s+1]),t[0]);return new a(i,t,r)},l=(t,e)=>{if(n)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const i of e){const e=document.createElement("style"),n=s.litNonce;void 0!==n&&e.setAttribute("nonce",n),e.textContent=i.cssText,t.appendChild(e)}},c=n?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return(t=>new a("string"==typeof t?t:t+"",void 0,r))(e)})(t):t,{is:d,defineProperty:p,getOwnPropertyDescriptor:u,getOwnPropertyNames:f,getOwnPropertySymbols:$,getPrototypeOf:m}=Object,v=globalThis,g=v.trustedTypes,y=g?g.emptyScript:"",_=v.reactiveElementPolyfillSupport,b=(t,e)=>t,w={toAttribute(t,e){switch(e){case Boolean:t=t?y:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},A=(t,e)=>!d(t,e),x={attribute:!0,type:String,converter:w,reflect:!1,useDefault:!1,hasChanged:A};Symbol.metadata??=Symbol("metadata"),v.litPropertyMetadata??=new WeakMap;class E extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=x){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),s=this.getPropertyDescriptor(t,i,e);void 0!==s&&p(this.prototype,t,s)}}static getPropertyDescriptor(t,e,i){const{get:s,set:n}=u(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get:s,set(e){const r=s?.call(this);n?.call(this,e),this.requestUpdate(t,r,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??x}static _$Ei(){if(this.hasOwnProperty(b("elementProperties")))return;const t=m(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(b("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(b("properties"))){const t=this.properties,e=[...f(t),...$(t)];for(const i of e)this.createProperty(i,t[i])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,i]of e)this.elementProperties.set(t,i)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const i=this._$Eu(t,e);void 0!==i&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];
vendor: 4,497 bytes, line 313
313if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(c(t))}else void 0!==t&&e.push(c(t));return e}static _$Eu(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return l(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$ET(t,e){const i=this.constructor.elementProperties.get(t),s=this.constructor._$Eu(t,i);if(void 0!==s&&!0===i.reflect){const n=(void 0!==i.converter?.toAttribute?i.converter:w).toAttribute(e,i.type);this._$Em=t,null==n?this.removeAttribute(s):this.setAttribute(s,n),this._$Em=null}}_$AK(t,e){const i=this.constructor,s=i._$Eh.get(t);if(void 0!==s&&this._$Em!==s){const t=i.getPropertyOptions(s),n="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:w;this._$Em=s;const r=n.fromAttribute(e,t.type);this[s]=r??this._$Ej?.get(s)??r,this._$Em=null}}requestUpdate(t,e,i){if(void 0!==t){const s=this.constructor,n=this[t];if(i??=s.getPropertyOptions(t),!((i.hasChanged??A)(n,e)||i.useDefault&&i.reflect&&n===this._$Ej?.get(t)&&!this.hasAttribute(s._$Eu(t,i))))return;this.C(t,e,i)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:i,reflect:s,wrapped:n},r){i&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,r??e??this[t]),!0!==n||void 0!==r)||(this._$AL.has(t)||(this.hasUpdated||i||(e=void 0),this._$AL.set(t,e)),!0===s&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,i]of t){const{wrapped:t}=i,s=this[e];!0!==t||this._$AL.has(e)||void 0===s||this.C(e,void 0,i,s)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$EM()}catch(e){throw t=!1,this._$EM(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach((t=>this._$ET(t,this[t]))),this._$EM()}updated(t){}firstUpdated(t){}}E.elementStyles=[],E.shadowRootOptions={mode:"open"},E[b("elementProperties")]=new Map,E[b("finalized")]=new Map,_?.({ReactiveElement:E}),(v.reactiveElementVersions??=[]).push("2.1.1")},6752:function(t,e,i){i.d(e,{JW:function(){return E},XX:function(){return L},c0:function(){return S},ge:function(){return z},qy:function(){return x},s6:function(){return k}});const s=globalThis,n=s.trustedTypes,r=n?n.createPolicy("lit-html",{createHTML:t=>t}):void 0,o="$lit$",a=`lit$${Math.random().toFixed(9).slice(2)}$`,h="?"+a,l=`<${h}>`,c=document,d=()=>c.createComment(""),p=t=>null===t||"object"!=typeof t&&"function"!=typeof t,u=Array.isArray,f=t=>u(t)||"function"==typeof t?.[Symbol.iterator],$="[ \t\n\f\r]",m=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v=/-->/g,g=/>/g,y=RegExp(`>|${$}(?:([^\\s"'>=/]+)(${$}*=${$}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),_=/'/g,b=/"/g,w=/^(?:script|style|textarea|title)$/i,A=t=>(e,...i)=>({_$litType$:t,strings:e,values:i}
vendor: 6,481 bytes, line 313
313),x=A(1),E=A(2),S=(A(3),Symbol.for("lit-noChange")),k=Symbol.for("lit-nothing"),C=new WeakMap,M=c.createTreeWalker(c,129);function P(t,e){if(!u(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==r?r.createHTML(e):e}const U=(t,e)=>{const i=t.length-1,s=[];let n,r=2===e?"<svg>":3===e?"<math>":"",h=m;for(let e=0;e<i;e++){const i=t[e];let c,d,p=-1,u=0;for(;u<i.length&&(h.lastIndex=u,d=h.exec(i),null!==d);)u=h.lastIndex,h===m?"!--"===d[1]?h=v:void 0!==d[1]?h=g:void 0!==d[2]?(w.test(d[2])&&(n=RegExp("</"+d[2],"g")),h=y):void 0!==d[3]&&(h=y):h===y?">"===d[0]?(h=n??m,p=-1):void 0===d[1]?p=-2:(p=h.lastIndex-d[2].length,c=d[1],h=void 0===d[3]?y:'"'===d[3]?b:_):h===b||h===_?h=y:h===v||h===g?h=m:(h=y,n=void 0);const f=h===y&&t[e+1].startsWith("/>")?" ":"";r+=h===m?i+l:p>=0?(s.push(c),i.slice(0,p)+o+i.slice(p)+a+f):i+a+(-2===p?e:f)}return[P(t,r+(t[i]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),s]};class O{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let r=0,l=0;const c=t.length-1,p=this.parts,[u,f]=U(t,e);if(this.el=O.createElement(u,i),M.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(s=M.nextNode())&&p.length<c;){if(1===s.nodeType){if(s.hasAttributes())for(const t of s.getAttributeNames())if(t.endsWith(o)){const e=f[l++],i=s.getAttribute(t).split(a),n=/([.?@])?(.*)/.exec(e);p.push({type:1,index:r,name:n[2],strings:i,ctor:"."===n[1]?q:"?"===n[1]?N:"@"===n[1]?D:R}),s.removeAttribute(t)}else t.startsWith(a)&&(p.push({type:6,index:r}),s.removeAttribute(t));if(w.test(s.tagName)){const t=s.textContent.split(a),e=t.length-1;if(e>0){s.textContent=n?n.emptyScript:"";for(let i=0;i<e;i++)s.append(t[i],d()),M.nextNode(),p.push({type:2,index:++r});s.append(t[e],d())}}}else if(8===s.nodeType)if(s.data===h)p.push({type:2,index:r});else{let t=-1;for(;-1!==(t=s.data.indexOf(a,t+1));)p.push({type:7,index:r}),t+=a.length-1}r++}}static createElement(t,e){const i=c.createElement("template");return i.innerHTML=t,i}}function T(t,e,i=t,s){if(e===S)return e;let n=void 0!==s?i._$Co?.[s]:i._$Cl;const r=p(e)?void 0:e._$litDirective$;return n?.constructor!==r&&(n?._$AO?.(!1),void 0===r?n=void 0:(n=new r(t),n._$AT(t,i,s)),void 0!==s?(i._$Co??=[])[s]=n:i._$Cl=n),void 0!==n&&(e=T(t,n._$AS(t,e.values),n,s)),e}class H{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:i}=this._$AD,s=(t?.creationScope??c).importNode(e,!0);M.currentNode=s;let n=M.nextNode(),r=0,o=0,a=i[0];for(;void 0!==a;){if(r===a.index){let e;2===a.type?e=new I(n,n.nextSibling,this,t):1===a.type?e=new a.ctor(n,a.name,a.strings,this,t):6===a.type&&(e=new j(n,this,t)),this._$AV.push(e),a=i[++o]}r!==a?.index&&(n=M.nextNode(),r++)}return M.currentNode=c,s}p(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class I{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,i,s){this.type=2,this._$AH=k,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=s,this._$Cv=s?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=T(this,t,e),p(t)?t===k||null==t||""===t?(this._$AH!==k&&this._$AR(),this._$AH=k):t!==this._$AH&&t!==S&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):f(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==k&&p(this._$AH)?this._$AA.nextSibling.data=t:this.T(c.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:i}=t,s="number"==typeof i?this._$AC(t):(void 0===i.el&&(i.el=O.createElement(P(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===s)this._$AH.p(e);else{const t=new H(s,this),i=t.u(this.options);t.p(e),this.T(i),this._$AH=t}}_$AC(t){let e=C.get(t.strings);return void 0===e&&C.set(t.strings,e=new O(t)),e}k(t){u(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,s=0;for(const n of t)s===e.length?e.push(i=new I(this.O(d()),this.O(d()),this,this.options)):i=e[s],i._$AI(n),s++;s<e.length&&(this._$AR(i&&i._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class R{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,s,n){this.type=1,this._$AH=k,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=n,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=k}_$AI(t,e=this,i,s){const n=this.strings;let r=!1;if(void 0===n)t=T(this,t,e,0),r=!p(t)||t!==this._$AH&&t!==S,r&&(this._$AH=t);else{const s=t;let o,a;for(t=n[0],o=0;o<n.length-1;o++)a=T(this,s[i+o],e,o),a===S&&(a=this._$AH[o]),r||=!p(a)||a!==this._$AH[o],a===k?t=k:t!==k&&(t+=(a??"")+n[o+1]),this._$AH[o]=a}r&&!s&&this.j(t)}j(t){t===k?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class q extends R{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===k?void 0:t}}class N extends R{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==k)}}class D extends R{constructor(t,e,i,s,n){super(t,e,i,s,n),this.type=5}_$AI(t,e=this){if((t=T(this,t,e,0)??k)===S)return;const i=this._$AH,s=t===k&&i!==k||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,n=t!==k&&(i===k||s);s&&this.element.removeEventListener(this.name,this,i),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class j{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){T(this,t)}}const z={M:o,P:a,A:h,C:1,L:U,R:H,D:f,V:T,I:I,H:R,N:N,U:D,B:q,F:j},B=s.litHtmlPolyfillSupport;B?.(O,I),(s.litHtmlVersions??=[]).push("3.3.1");const L=(t,e,i)=>{const s=i?.renderBefore??e;let n=s._$litPart$;if(void 0===n){const t=i?.renderBefore??null;s._$litPart$=n=new I(e.insertBefore(d(),t),t,void 0,i??{})}return n._$AI(t),n}}
313,2777:function(t,e,i){i.d(e,{EM:function(){return s},MZ:function(){return a},P:function(){return c},wk:function(){return h}});const s=t=>(e,i)=>{void 0!==i?i.addInitializer((()=>{customElements.define(t,e)})):customElements.define(t,e)};var n=i(842);const r={attribute:!0,type:String,converter:n.W3,reflect:!1,hasChanged:n.Ec},o=(t=r,e,i)=>{const{kind:s,metadata:n}=i;let o=globalThis.litPropertyMetadata.get(n);if(void 0===o&&globalThis.litPropertyMetadata.set(n,o=new Map),"setter"===s&&((t=Object.create(t)).wrapped=!0),o.set(i.name,t),"accessor"===s){const{name:s}=i;return{set(i){const n=e.get.call(this);e.set.call(this,i),this.requestUpdate(s,n,t)},init(e){return void 0!==e&&this.C(s,void 0,t,e),e}}}if("setter"===s){const{name:s}=i;return function(i){const n=this[s];e.call(this,i),this.requestUpdate(s,n,t)}}throw Error("Unsupported decorator location: "+s)};function a(t){return(e,i)=>"object"==typeof i?o(t,e,i):((t,e,i)=>{const s=e.hasOwnProperty(i);return e.constructor.createProperty(i,t),s?Object.getOwnPropertyDescriptor(e,i):void 0})(t,e,i)}function h(t){return a({...t,state:!0,attribute:!1})}const l=(t,e,i)=>(i.configurable=!0,i.enumerable=!0,Reflect.decorate&&"object"!=typeof e&&Object.defineProperty(t,e,i),i);function c(t,e){return(i,s,n)=>{const r=e=>e.renderRoot?.querySelector(t)??null;if(e){const{get:t,set:e}="object"==typeof s?i:n??(()=>{const t=Symbol();return{get(){return this[t]},set(e){this[t]=e}}})();return l(i,s,{get(){let i=t.call(this);return void 0===i&&(i=r(this),(null!==i||this.hasUpdated)&&e.call(this,i)),i}})}return l(i,s,{get(){return r(this)}})}}},2618:function(t,e,i){i.d(e,{WF:function(){return o},AH:function(){return s.AH},qy:function(){return n.qy},s6:function(){return n.s6},JW:function(){return n.JW}});var s=i(842),n=i(6752);const r=globalThis;class o extends s.mN{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=(0,n.XX)(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return n.c0}}o._$litElement$=!0,o.finalized=!0,r.litElementHydrateSupport?.({LitElement:o});const a=r.litElementPolyfillSupport;a?.({LitElement:o});(r.litElementVersions??=[]).push("4.2.1")}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.