PageSourceSearch

https://nysteget.se/webapp-resource/4.23061647199c921ac3619f2/360.…/1760096809648/webapp-assets.js

js nysteget.se collected 2026-10-06 17:57:29 UTC 23,159 bytes, 3 lines download raw bytes

1AppRegistry.registerBundle({applicationId:'se.soleil.searchField|1.1.3',bundle: {}});
2AppRegistry.registerModule({applicationId:'se.soleil.searchField|1.1.3',path:'/main',module:function(define){'use strict';define(["router","app"],(function(t,e){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}const r=n(e).default.portletId.replace(".","_");document.documentElement.classList.contains("sv-edit-mode");let o={};function i(t){o=t}function a(t){return t?o[t]:o}function c(){}const s=t=>t;function l(t){return t()}function u(){return Object.create(null)}function d(t){t.forEach(l)}function f(t){return"function"==typeof t}function h(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function p(t){return t&&f(t.destroy)?t.destroy:c}const m="undefined"!=typeof window;let g=m?()=>window.performance.now():()=>Date.now(),$=m?t=>requestAnimationFrame(t):c;const v=new Set;function y(t){v.forEach((e=>{e.c(t)||(v.delete(e),e.f())})),0!==v.size&&$(y)}let _=!1;function b(){_=!0}function x(){_=!1}function E(t,e,n,r){for(;t<e;){const o=t+(e-t>>1);n(o)<=r?t=o+1:e=o}return t}function w(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function P(t){const e=S("style");return function(t,e){!function(t,e){t.appendChild(e)}(t.head||t,e)}(w(t),e),e.sheet}function k(t,e){if(_){for(!function(t){if(t.hydrate_init)return;t.hydrate_init=!0;let e=t.childNodes;if("HEAD"===t.nodeName){const t=[];for(let n=0;n<e.length;n++){const r=e[n];void 0!==r.claim_order&&t.push(r)}e=t}const n=new Int32Array(e.length+1),r=new Int32Array(e.length);n[0]=-1;let o=0;for(let t=0;t<e.length;t++){const i=e[t].claim_order,a=(o>0&&e[n[o]].claim_order<=i?o+1:E(1,o,(t=>e[n[t]].claim_order),i))-1;r[t]=n[a]+1;const c=a+1;n[c]=t,o=Math.max(c,o)}const i=[],a=[];let c=e.length-1;for(let t=n[o]+1;0!=t;t=r[t-1]){for(i.push(e[t-1]);c>=t;c--)a.push(e[c]);c--}for(;c>=0;c--)a.push(e[c]);i.reverse(),a.sort(((t,e)=>t.claim_order-e.claim_order));for(let e=0,n=0;e<a.length;e++){for(;n<i.length&&a[e].claim_order>=i[n].claim_order;)n++;const r=n<i.length?i[n]:null;t.insertBefore(a[e],r)}}(t),(void 0===t.actual_end_child||null!==t.actual_end_child&&t.actual_end_child.parentElement!==t)&&(t.actual_end_child=t.firstChild);null!==t.actual_end_child&&void 0===t.actual_end_child.claim_order;)t.actual_end_child=t.actual_end_child.nextSibling;e!==t.actual_end_child?void 0===e.claim_order&&e.parentNode===t||t.insertBefore(e,t.actual_end_child):t.actual_end_child=e.nextSibling}else e.parentNode===t&&null===e.nextSibling||t.appendChild(e)}function T(t,e,n){_&&!n?k(t,e):e.parentNode===t&&e.nextSibling==n||t.insertBefore(e,n||null)}function N(t){t.parentNode.removeChild(t)}function S(t){return document.createElement(t)}function U(t){return document.createTextNode(t)}function A(){return U(" ")}function q(){return U("")}function j(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function I(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function L(t){return Array.from(t.childNodes)}function D(t){void 0===t.claim_info&&(t.claim_info={last_index:0,total_claimed:0})}function C(t,e,n,r){let o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];D(t);const i=(()=>{for(let r=t.claim_info.last_index;r<t.length;r++){const i=t[r];if(e(i)){const e=n(i);return void 0===e?t.splice(r,1):t[r]=e,o||(t.claim_info.last_index=r),i}}for(let r=t.claim_info.last_index-1;r>=0;r--){const i=t[r];if(e(i)){const e=n(i);return void 0===e?t.splice(r,1):t[r]=e,o?void 0===e&&t.claim_info.last_index--:t.claim_info.last_index=r,i}}return r()})();return i.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,i}function F(t,e,n){return function(t,e,n,r){return C(t,(t=>t.nodeName===e),(t=>{const e=[];for(let r=0;r<t.attributes.length;r++){const o=t.attributes[r];n[o.name]||e.push(o.name)}e.forEach((e=>t.removeAttribute(e)))}),(()=>r(e)))}(t,e,n,S)}function O(t,e){return C(t,(t=>3===t.nodeType),(t=>{const n=""+e;if(t.data.startsWith(n)){if(t.data.length!==n.length)return t.splitText(n.length)}else t.data=n}),(()=>U(e)),!0)}function B(t){return O(t," ")}function z(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function R(t,e){t.value=null==e?"":e}function M(t,e,n){t.classList[n?"add":"remove"](e)}function V(t,e){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=document.createEvent("CustomEvent");return r.initCustomEvent(t,n,!1,e),r}const W=new Map;let H,Q=0;function G(t){let e=5381,n=t.length;for(;n--;)e=(e<<5)-e^t.charCodeAt(n);return e>>>0}function J(t,e){const n={stylesheet:P(e),rules:{}};return W.set(t,n),n}function K(t,e,n,r,o,i,a){let c=arguments.length>7&&void 0!==arguments[7]?arguments[7]:0;const s=16.666/r;let l="{\n";for(let t=0;t<=1;t+=s){const r=e+(n-e)*i(t);l+=100*t+`%{${a(r,1-r)}}\n`}const u=l+`100% {${a(n,1-n)}}\n}`,d=`__svelte_${G(u)}_${c}`,f=w(t),{stylesheet:h,rules:p}=W.get(f)||J(f,t);p[d]||(p[d]=!0,h.insertRule(`@keyframes ${d} ${u}`,h.cssRules.length));const m=t.style.animation||"";return t.style.animation=`${m?`${m}, `:""}${d} ${r}ms linear ${o}ms 1 both`,Q+=1,d}function X(t,e){const n=(t.style.animation||"").split(", "),r=n.filter(e?t=>t.indexOf(e)<0:t=>-1===t.indexOf("__svelte")),o=n.length-r.length;o&&(t.style.animation=r.join(", "),Q-=o,Q||$((()=>{Q||(W.forEach((t=>{const{stylesheet:e}=t;let n=e.cssRules.length;for(;n--;)e.deleteRule(n);t.rules={}})),W.clear())})))}function Y(t){H=t}function Z(){const t=function(){if(!H)throw new Error("Function called outside component initialization");return H}();return(e,n)=>{const r=t.$$.callbacks[e];if(r){const o=V(e,n);
2r.slice().forEach((e=>{e.call(t,o)}))}}}function tt(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach((t=>t.call(this,e)))}const et=[],nt=[],rt=[],ot=[],it=Promise.resolve();let at=!1;function ct(){at||(at=!0,it.then(pt))}function st(){return ct(),it}function lt(t){rt.push(t)}function ut(t){ot.push(t)}const dt=new Set;let ft,ht=0;function pt(){const t=H;do{for(;ht<et.length;){const t=et[ht];ht++,Y(t),mt(t.$$)}for(Y(null),et.length=0,ht=0;nt.length;)nt.pop()();for(let t=0;t<rt.length;t+=1){const e=rt[t];dt.has(e)||(dt.add(e),e())}rt.length=0}while(et.length);for(;ot.length;)ot.pop()();at=!1,dt.clear(),Y(t)}function mt(t){if(null!==t.fragment){t.update(),d(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(lt)}}function gt(t,e,n){t.dispatchEvent(V(`${e?"intro":"outro"}${n}`))}const $t=new Set;let vt;function yt(){vt={r:0,c:[],p:vt}}function _t(){vt.r||d(vt.c),vt=vt.p}function bt(t,e){t&&t.i&&($t.delete(t),t.i(e))}function xt(t,e,n,r){if(t&&t.o){if($t.has(t))return;$t.add(t),vt.c.push((()=>{$t.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}}const Et={duration:0};function wt(t,e,n,r){let o=e(t,n),i=r?0:1,a=null,l=null,u=null;function h(){u&&X(t,u)}function p(t,e){const n=t.b-i;return e*=Math.abs(n),{a:i,b:t.b,d:n,duration:e,start:t.start,end:t.start+e,group:t.group}}function m(e){const{delay:n=0,duration:r=300,easing:f=s,tick:m=c,css:_}=o||Et,b={start:g()+n,b:e};e||(b.group=vt,vt.r+=1),a||l?l=b:(_&&(h(),u=K(t,i,e,r,n,f,_)),e&&m(0,1),a=p(b,r),lt((()=>gt(t,e,"start"))),function(t){let e;0===v.size&&$(y),new Promise((n=>{v.add(e={c:t,f:n})}))}((e=>{if(l&&e>l.start&&(a=p(l,r),l=null,gt(t,a.b,"start"),_&&(h(),u=K(t,i,a.b,a.duration,0,f,o.css))),a)if(e>=a.end)m(i=a.b,1-i),gt(t,a.b,"end"),l||(a.b?h():--a.group.r||d(a.group.c)),a=null;else if(e>=a.start){const t=e-a.start;i=a.a+a.d*f(t/a.duration),m(i,1-i)}return!(!a&&!l)})))}return{run(t){f(o)?(ft||(ft=Promise.resolve(),ft.then((()=>{ft=null}))),ft).then((()=>{o=o(),m(t)})):m(t)},end(){h(),a=l=null}}}function Pt(t,e,n){const r=t.$$.props[e];void 0!==r&&(t.$$.bound[r]=n,n(t.$$.ctx[r]))}function kt(t){t&&t.c()}function Tt(t,e){t&&t.l(e)}function Nt(t,e,n,r){const{fragment:o,on_mount:i,on_destroy:a,after_update:c}=t.$$;o&&o.m(e,n),r||lt((()=>{const e=i.map(l).filter(f);a?a.push(...e):d(e),t.$$.on_mount=[]})),c.forEach(lt)}function St(t,e){const n=t.$$;null!==n.fragment&&(d(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function Ut(t,e){-1===t.$$.dirty[0]&&(et.push(t),ct(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function At(t,e,n,r,o,i,a){let s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:[-1];const l=H;Y(t);const f=t.$$={fragment:null,ctx:null,props:i,update:c,not_equal:o,bound:u(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:u(),dirty:s,skip_bound:!1,root:e.target||l.$$.root};a&&a(f.root);let h=!1;if(f.ctx=n?n(t,e.props||{},(function(e,n){const r=!(arguments.length<=2)&&arguments.length-2?arguments.length<=2?void 0:arguments[2]:n;return f.ctx&&o(f.ctx[e],f.ctx[e]=r)&&(!f.skip_bound&&f.bound[e]&&f.bound[e](r),h&&Ut(t,e)),n})):[],f.update(),h=!0,d(f.before_update),f.fragment=!!r&&r(f.ctx),e.target){if(e.hydrate){b();const t=L(e.target);f.fragment&&f.fragment.l(t),t.forEach(N)}else f.fragment&&f.fragment.c();e.intro&&bt(t.$$.fragment),Nt(t,e.target,e.anchor,e.customElement),x(),pt()}Y(l)}class qt{$destroy(){St(this,1),this.$destroy=c}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}function jt(t){const e=t-1;return e*e*e+1}function It(t){let{delay:e=0,duration:n=400,easing:r=jt}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const o=getComputedStyle(t),i=+o.opacity,a=parseFloat(o.height),c=parseFloat(o.paddingTop),s=parseFloat(o.paddingBottom),l=parseFloat(o.marginTop),u=parseFloat(o.marginBottom),d=parseFloat(o.borderTopWidth),f=parseFloat(o.borderBottomWidth);return{delay:e,duration:n,easing:r,css:t=>`overflow: hidden;opacity: ${Math.min(20*t,1)*i};height: ${t*a}px;padding-top: ${t*c}px;padding-bottom: ${t*s}px;margin-top: ${t*l}px;margin-bottom: ${t*u}px;border-top-width: ${t*d}px;border-bottom-width: ${t*f}px;`}}function Lt(t,e){const n=n=>
2{!t||t.contains(n.target)||n.defaultPrevented||e({node:t,target:n.target})};return document.addEventListener("click",n),{destroy(){document.removeEventListener("click",n)}}}function Dt(t,e){let{onEscape:n,onArrowUp:r,onArrowDown:o}=e;const i=t=>{switch(t.keyCode){case 27:n&&n(t);break;case 38:r&&(t.preventDefault(),r(t));break;case 40:o&&(t.preventDefault(),o(t))}};return t.addEventListener("keydown",i),{destroy(){t.removeEventListener("keydown",i)}}}let Ct;function Ft(){const{index:t,types:e,excluded:n}=a()||{},r=`/rest-api/1/1/${t}/search`,o=e&&e.length?`+svtype:(${e.join(" ")})`:void 0,i=n&&n.length?`-path:(${n.join(" ")})`:void 0,c=(s=function(t){return e=t.json(),n=function(e){if(!t.ok)throw Error(e?.message||t?.statusText);return e},r?n?n(e):e:(e&&e.then||(e=Promise.resolve(e)),n?e.then(n):e);var e,n,r},function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];try{return Promise.resolve(s.apply(this,t))}catch(t){return Promise.reject(t)}});var s;const l=(t,e)=>{if(t.indexOf("*")>-1)return t;return t.split(" ").map((t=>`+${e?e.concat(":"):""}(${t} ${t}*)`)).join(" ")};return t=>{const e={query:l(t,"name.analyzed"),fields:["id","name"],filterQuery:[o,i].filter((t=>!!t)).join(" ")};return fetch(r+function(t){const e=new URLSearchParams;return Object.entries(t).forEach((t=>{let[n,r]=t;Array.isArray(r)?r.forEach((t=>e.append(`${n}[]`,t))):r&&e.append(n,r)})),`?${e.toString()}`}(e)).then(c).then((t=>t.map((t=>{let{id:e,name:n}=t;return{id:e.replace(".","_"),name:n}}))))}}function Ot(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];try{return Promise.resolve(t.apply(this,e))}catch(t){return Promise.reject(t)}}}function Bt(t,e,n){const r=t.slice();return r[14]=e[n].id,r[15]=e[n].name,r}function zt(t){let e,n,r,o,i,a,c,s=t[15]+"";function l(){return t[9](t[14])}return{c(){e=S("li"),n=U(s),r=A(),this.h()},l(t){e=F(t,"LI",{id:!0,role:!0,"aria-selected":!0,class:!0});var o=L(e);n=O(o,s),r=B(o),o.forEach(N),this.h()},h(){I(e,"id",o=t[14]),I(e,"role","option"),I(e,"aria-selected",i=t[0]?.id===t[14]),I(e,"class","suggestions-listbox-svf2r2")},m(t,o){T(t,e,o),k(e,n),k(e,r),a||(c=j(e,"click",l),a=!0)},p(r,a){t=r,8&a&&s!==(s=t[15]+"")&&z(n,s),8&a&&o!==(o=t[14])&&I(e,"id",o),9&a&&i!==(i=t[0]?.id===t[14])&&I(e,"aria-selected",i)},d(t){t&&N(e),a=!1,c()}}}function Rt(t){let e,n,o,i,a,s,l,u=t[3],d=[];for(let e=0;e<u.length;e+=1)d[e]=zt(Bt(t,u,e));return{c(){e=S("ul");for(let t=0;t<d.length;t+=1)d[t].c();o=A(),i=S("div"),a=U(t[4]),this.h()},l(n){e=F(n,"UL",{id:!0,role:!0,"aria-labelledby":!0,class:!0});var r=L(e);for(let t=0;t<d.length;t+=1)d[t].l(r);r.forEach(N),o=B(n),i=F(n,"DIV",{class:!0,"aria-live":!0,"aria-atomic":!0});var c=L(i);a=O(c,t[4]),c.forEach(N),this.h()},h(){I(e,"id",`list_${r}`),e.hidden=n=!t[1],I(e,"role","listbox"),I(e,"aria-labelledby",`label_${r}`),I(e,"class","suggestions-listbox-svf2r2"),I(i,"class","sr-only"),I(i,"aria-live","assertive"),I(i,"aria-atomic","true")},m(n,r){T(n,e,r);for(let t=0;t<d.length;t+=1)d[t].m(e,null);T(n,o,r),T(n,i,r),k(i,a),s||(l=p(Dt.call(null,window,{onEscape:t[2]})),s=!0)},p(t,r){let[o]=r;if(41&o){let n;for(u=t[3],n=0;n<u.length;n+=1){const r=Bt(t,u,n);d[n]?d[n].p(r,o):(d[n]=zt(r),d[n].c(),d[n].m(e,null))}for(;n<d.length;n+=1)d[n].d(1);d.length=u.length}2&o&&n!==(n=!t[1])&&(e.hidden=n),16&o&&z(a,t[4])},i:c,o:c,d(t){t&&N(e),function(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}(d,t),t&&N(o),t&&N(i),s=!1,l()}}}function Mt(t,e,n){let{query:r}=e,{selected:o}=e,{hasSuggestions:i=!1}=e;const a=Z(),c=Ft();let s=[],l="";const u=Ot((function(){return t=c(r),e=function(t){n(3,s=t),n(1,i=!!s.length),i&&function(){n(4,l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:""),setTimeout((()=>{n(4,l="")}),500)}(`${s.length} sökförslag. Använd piltangent upp och ner för att navigera och enter för att välja. Pekskärmsanvändare, använd pekskärmen eller svepgester.`)},o?e?e(t):t:(t&&t.then||(t=Promise.resolve(t)),e?t.then(e):t);var t,e,o})),d=Ot((function(t){return n(0,o=s.find((e=>e.id===t))),function(t,e,n){if(n)return e?e(t()):t();try{var r=Promise.resolve(t());return e?r.then(e):r}catch(t){return Promise.reject(t)}}(st,(function(){a("click")}))}));return t.$$set=t=>{"query"in t&&n(6,r=t.query),"selected"in t&&n(0,o=t.selected),"hasSuggestions"in t&&n(1,i=t.hasSuggestions)},t.$$.update=()=>{var e,o;64&t.$$.dirty&&(r&&r.length>1?(e=u,o=300,clearTimeout(Ct),Ct=setTimeout(e,o)):(n(3,s=[]),n(1,i=!1)))},[o,i,()=>{n(3,s=[]),n(1,i=!1),n(0,o=void 0)},s,l,d,r,()=>{const t=s.findIndex((t=>{let{id:e}=t;return e===o?.id}));n(0,o=s[t+1]||s[0])},()=>{const t=s.findIndex((t=>{let{id:e}=t;return e===o?.id}));n(0,o=s[t-1]||s[s.length-1])},t=>d(t)]}class Vt extends qt{constructor(t){super(),At(this,t,Mt,Rt,h,{query:6,selected:0,hasSuggestions:1,selectNext:7,selectPrevious:8,reset:2})}get selectNext(){return this.$$.ctx[7]}get selectPrevious(){return this.$$.ctx[8]}get reset(){return this.$$.ctx[2]}}function Wt(t){let e,n,o,i,a,c,s,l,u,f;function h(e){t[11](e)}function m(e){t[12](e)}let g={query:t[1]};return void 0!==t[0]&&(g.selected=t[0]),void 0!==t[2]&&(g.hasSuggestions=t[2]),a=new Vt({props:g}),t[10](a),nt.push((()=>Pt(a,"selected",h))),nt.push((()=>Pt(a,"hasSuggestions",m))),a.$on("click",t[13]),{c(){e=S("div"),n=S("input"),i=A(),kt(a.$$.fragment),this.h()},l(t){e=F(t,"DIV",{id:!0,role:!0,"aria-expanded":!0,"aria-owns":!0,"aria-haspopup":!0,"aria-labelledby":!0,"aria-controls":!0,class:!0});var r=L(e);n=F(r,"INPUT",{id:!0,type:!0,placeholder:!0,autocomplete:!0,"aria-controls":!0,"aria-autocomplete":!0,"aria-activedescendant":!0}),i=B(r),Tt(a.$$.fragment,r),r.forEach(N),this.h()},h(){I(n,"id",`input_${r}`),I(n,"type","search"),I(n,"placeholder",t[4]),I(n,"autocomplete","off"),I(n,"aria-controls",`list_${r}`),I(n,"aria-autocomplete","list"),I(n,"aria-activedescendant",o=t[0]?.id),I(e,"id",`combobox_${r}`),I(e,"role","combobox"),I(e,"aria-expanded",t[2]),I(e,"aria-owns",`list_${r}`),I(e,"aria-haspopup","listbox"),I(e,"aria-labelledby",`input_${r}`),I(e,"aria-controls",`combobox_${r}`),I(e,"class","suggestions-mcekk9")},m(r,o){T(r,e,o),k(e,n),R(n,t[1]),k(e,i),Nt(a,e,null),l=!0,u||(f=[j(n,"input",t[9]),p(Dt.call(null,n,{onArrowUp:t[6],onArrowDown:t[5]})),j(n,"focusout",t[8]),p(Lt.call(null,e,t[7]))],u=!0)},p(t,r){let[i]=r;(!l||1&i&&o!==(o=t[0]?.id))&&I(n,"aria-activedescendant",o),2&i&&R(n,t[1]);const u={};2&i&&(u.query=t[1]),!c&&1&i&&(c=!0,u.selected=t[0],ut((()=>c=!1))),!s&&4&i&&(s=!0,u.hasSuggestions=t[2],ut((()=>s=!1))),a.$set(u),(!l||4&i)&&I(e,"aria-expanded",t[2])},i(t){l||(bt(a.$$.fragment,t),l=!0)},o(t){xt(a.$$.fragment,t),l=!1},d(n){n&&N(e),t[10](null),St(a),u=!1,d(f)}}}function Ht(t,e,n){const{placeholder:r}=a();let o,i,{selected:c}=e,{query:s}=e;return t.$$set=t=>{"selected"in t&&n(0,c=t.selected),"query"in t&&n(1,s=t.query)},[c,s,o,i,r,()=>{i.selectNext()},()=>{i.selectPrevious()},t=>{let{node:e,target:n}=t;e.parentNode.contains(n)||i.reset()},t=>{let{relatedTarget:e}=t;e&&i.reset()}
2,function(){s=this.value,n(1,s)},function(t){nt[t?"unshift":"push"]((()=>{i=t,n(3,i)}))},function(t){c=t,n(0,c)},function(t){o=t,n(2,o)},function(e){tt.call(this,t,e)}]}class Qt extends qt{constructor(t){super(),At(this,t,Ht,Wt,h,{selected:0,query:1})}}function Gt(t){let e,n,o;return{c(){e=S("input"),this.h()},l(t){e=F(t,"INPUT",{id:!0,name:!0,type:!0,placeholder:!0,autocomplete:!0}),this.h()},h(){I(e,"id",`input_${r}`),I(e,"name","query"),I(e,"type","search"),I(e,"placeholder",t[5]),I(e,"autocomplete","off")},m(r,i){T(r,e,i),R(e,t[1]),n||(o=j(e,"input",t[11]),n=!0)},p(t,n){2&n&&R(e,t[1])},i:c,o:c,d(t){t&&N(e),n=!1,o()}}}function Jt(t){let e,n,r,o,i,a,c;function s(e){t[9](e)}function l(e){t[10](e)}let u={};return void 0!==t[2]&&(u.selected=t[2]),void 0!==t[1]&&(u.query=t[1]),e=new Qt({props:u}),nt.push((()=>Pt(e,"selected",s))),nt.push((()=>Pt(e,"query",l))),e.$on("click",t[8]),{c(){kt(e.$$.fragment),o=A(),i=S("input"),this.h()},l(t){Tt(e.$$.fragment,t),o=B(t),i=F(t,"INPUT",{name:!0,type:!0}),this.h()},h(){I(i,"name","query"),I(i,"type","hidden"),i.value=a=t[2]?.name||t[1]},m(t,n){Nt(e,t,n),T(t,o,n),T(t,i,n),c=!0},p(t,o){const s={};!n&&4&o&&(n=!0,s.selected=t[2],ut((()=>n=!1))),!r&&2&o&&(r=!0,s.query=t[1],ut((()=>r=!1))),e.$set(s),(!c||6&o&&a!==(a=t[2]?.name||t[1]))&&(i.value=a)},i(t){c||(bt(e.$$.fragment,t),c=!0)},o(t){xt(e.$$.fragment,t),c=!1},d(t){St(e,t),t&&N(o),t&&N(i)}}}function Kt(t){let e,n,o,i,a,c,s,l,u,d,f;const h=[Jt,Gt],p=[];return a=function(t,e){return t[7]?0:1}(t),c=p[a]=h[a](t),{c(){e=S("form"),n=S("label"),o=U(t[4]),i=A(),c.c(),s=A(),l=S("button"),u=S("span"),d=U(t[6]),this.h()},l(r){e=F(r,"FORM",{method:!0,action:!0,class:!0});var a=L(e);n=F(a,"LABEL",{id:!0,class:!0,for:!0});var f=L(n);o=O(f,t[4]),f.forEach(N),i=B(a),c.l(a),s=B(a),l=F(a,"BUTTON",{class:!0,type:!0});var h=L(l);u=F(h,"SPAN",{});var p=L(u);d=O(p,t[6]),p.forEach(N),h.forEach(N),a.forEach(N),this.h()},h(){I(n,"id",`label_${r}`),I(n,"class","sr-only"),I(n,"for",`input_${r}`),I(l,"class","env-button env-button--primary search-form-4iwhde"),I(l,"type","submit"),I(e,"method","get"),I(e,"action",t[0]),I(e,"class","search-form-4iwhde")},m(r,c){T(r,e,c),k(e,n),k(n,o),k(e,i),p[a].m(e,null),k(e,s),k(e,l),k(l,u),k(u,d),t[12](e),f=!0},p(t,n){let[r]=n;c.p(t,r),(!f||1&r)&&I(e,"action",t[0])},i(t){f||(bt(c),f=!0)},o(t){xt(c),f=!1},d(n){n&&N(e),p[a].d(),t[12](null)}}}function Xt(t,e,n){const{label:r,placeholder:o,buttonText:i,showSuggestions:c}=a();let s,l,{searchPageUri:u}=e,d="";return t.$$set=t=>{"searchPageUri"in t&&n(0,u=t.searchPageUri)},[u,d,s,l,r,o,i,c,()=>{l.submit()},function(t){s=t,n(2,s)},function(t){d=t,n(1,d)},function(){d=this.value,n(1,d)},function(t){nt[t?"unshift":"push"]((()=>{l=t,n(3,l)}))}]}class Yt extends qt{constructor(t){super(),At(this,t,Xt,Kt,h,{searchPageUri:0})}}function Zt(t){let e,n;return e=new Yt({props:{searchPageUri:t[0]}}),{c(){kt(e.$$.fragment)},l(t){Tt(e.$$.fragment,t)},m(t,r){Nt(e,t,r),n=!0},p(t,n){const r={};1&n&&(r.searchPageUri=t[0]),e.$set(r)},i(t){n||(bt(e.$$.fragment,t),n=!0)},o(t){xt(e.$$.fragment,t),n=!1},d(t){St(e,t)}}}function te(t){let e,n,r;let o=ee(t),i=t[3]&&ne(t);return{c(){o.c(),e=A(),i&&i.c(),n=q()},l(t){o.l(t),e=B(t),i&&i.l(t),n=q()},m(t,a){o.m(t,a),T(t,e,a),i&&i.m(t,a),T(t,n,a),r=!0},p(t,e){o.p(t,e),t[3]?i?(i.p(t,e),8&e&&bt(i,1)):(i=ne(t),i.c(),bt(i,1),i.m(n.parentNode,n)):i&&(yt(),xt(i,1,1,(()=>{i=null})),_t())},i(t){r||(bt(i),r=!0)},o(t){xt(i),r=!1},d(t){o.d(t),t&&N(e),i&&i.d(t),t&&N(n)}}}function ee(t){let e,n,r,o,i,a,c,s;return{c(){e=S("button"),n=S("i"),r=A(),o=S("span"),i=U(t[2]),this.h()},l(a){e=F(a,"BUTTON",{class:!0,"aria-expanded":!0});var c=L(e);n=F(c,"I",{class:!0,"aria-hidden":!0}),L(n).forEach(N),r=B(c),o=F(c,"SPAN",{class:!0});var s=L(o);i=O(s,t[2]),s.forEach(N),c.forEach(N),this.h()},h(){I(n,"class","nys-icon-search app-1ys3hz7"),I(n,"aria-hidden","true"),I(o,"class","app-1ys3hz7"),I(e,"class","expand-button app-1ys3hz7"),I(e,"aria-expanded",a=t[3].toString()),M(e,"active",t[3])},m(a,l){T(a,e,l),k(e,n),k(e,r),k(e,o),k(o,i),c||(s=j(e,"click",t[5]),c=!0)},p(t,n){4&n&&z(i,t[2]),8&n&&a!==(a=t[3].toString())&&I(e,"aria-expanded",a),8&n&&M(e,"active",t[3])},d(t){t&&N(e),c=!1,s()}}}function ne(t){let e,n,r,o,i,a;return n=new Yt({props:{searchPageUri:t[0]}}),{c(){e=S("div"),kt(n.$$.fragment),this.h()},l(t){e=F(t,"DIV",{class:!0});var r=L(e);Tt(n.$$.fragment,r),r.forEach(N),this.h()},h(){I(e,"class","container app-1ys3hz7")},m(r,c){T(r,e,c),Nt(n,e,null),o=!0,i||(a=j(e,"introend",t[8]),i=!0)},p(t,e){const r={};1&e&&(r.searchPageUri=t[0]),n.$set(r)},i(t){o||(bt(n.$$.fragment,t),lt((()=>{r||(r=wt(e,It,{duration:200},!0)),r.run(1)})),o=!0)},o(t){xt(n.$$.fragment,t),r||(r=wt(e,It,{duration:200},!1)),r.run(0),o=!1},d(t){t&&N(e),St(n),t&&r&&r.end(),i=!1,a()}}}function re(t){let e,n,r,o,i,a;const c=[te,Zt],s=[];function l(t,e){return t[1]?0:1}return n=l(t),r=s[n]=c[n](t),{c(){e=S("div"),r.c()},l(t){e=F(t,"DIV",{});var n=L(e);
2r.l(n),n.forEach(N)},m(r,c){T(r,e,c),s[n].m(e,null),t[9](e),o=!0,i||(a=[j(e,"focusout",t[7]),p(Lt.call(null,e,t[6]))],i=!0)},p(t,o){let[i]=o,a=n;n=l(t),n===a?s[n].p(t,i):(yt(),xt(s[a],1,1,(()=>{s[a]=null})),_t(),r=s[n],r?r.p(t,i):(r=s[n]=c[n](t),r.c()),bt(r,1),r.m(e,null))},i(t){o||(bt(r),o=!0)},o(t){xt(r),o=!1},d(r){r&&N(e),s[n].d(),t[9](null),i=!1,d(a)}}}function oe(t,e,n){let r,{searchPageUri:o}=e,{isExpandable:i}=e,{buttonText:a}=e,c=!1;const s=()=>{c&&n(3,c=!1)};return t.$$set=t=>{"searchPageUri"in t&&n(0,o=t.searchPageUri),"isExpandable"in t&&n(1,i=t.isExpandable),"buttonText"in t&&n(2,a=t.buttonText)},[o,i,a,c,r,()=>{n(3,c=!c)},s,t=>{let{relatedTarget:e}=t;e&&!r.contains(e)&&s()},()=>{r.querySelector("input")?.focus()},function(t){nt[t?"unshift":"push"]((()=>{r=t,n(4,r)}))}]}class ie extends qt{constructor(t){super(),At(this,t,oe,re,h,{searchPageUri:0,isExpandable:1,buttonText:2})}}return(t,e)=>{!function(t){let{target:e,props:n,intro:r=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(n);const o=e.childElementCount>0;new t({hydrate:o,target:e,props:n,intro:r})}(ie,{props:t,target:e})}}));
3}});

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.