PageSourceSearch

https://www.spital-nidwalden.ch/soft_navigations-aggregate-49004d661100cad79592.js

js spital-nidwalden.ch collected 2026-10-07 18:52:40 UTC 12,728 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_luks_website=self.webpackChunk_luks_website||[]).push([[4769],{29894:function(t,e,i){i.r(e),i.d(e,{Aggregate:function(){return y}});var s=i(75400),n=i(35650),r=i(5457),a=i(67159),o=i(59968),h=i(74031),c=i(72126),u=i(34947);let d=0;class l{belType;children=[];start;end;callbackEnd=0;callbackDuration=0;nodeId=++d;addChild(t){this.children.push(t)}serialize(){}}class m extends l{constructor(t,e){super(),this.belType=c.Qu.AJAX,this.method=t.method,this.status=t.status,this.domain=t.domain,this.path=t.path,this.txSize=t.requestSize,this.rxSize=t.responseSize,this.requestedWith="fetch"===t.type?1:"",this.spanId=t.spanId,this.traceId=t.traceId,this.spanTimestamp=t.spanTimestamp,this.gql=t.gql,this.start=t.startTime,this.end=t.endTime,e?.latestLongtaskEnd?(this.callbackEnd=Math.max(e.latestLongtaskEnd,this.end),this.callbackDuration=this.callbackEnd-this.end):this.callbackEnd=this.end}serialize(t,e){const i=(0,u.uJ)(e.runtime.obfuscator),s=[],n=[(0,u.sH)(this.belType),0,(0,u.sH)(this.start-t),(0,u.sH)(this.end-this.start),(0,u.sH)(this.callbackEnd-this.end),(0,u.sH)(this.callbackDuration),i(this.method),(0,u.sH)(this.status),i(this.domain),i(this.path),(0,u.sH)(this.txSize),(0,u.sH)(this.rxSize),this.requestedWith,i(this.nodeId),(0,u.me)(this.spanId,i,!0)+(0,u.me)(this.traceId,i,!0)+(0,u.me)(this.spanTimestamp,u.sH)];let r=[];return"object"==typeof this.gql&&(r=(0,u.AQ)(this.gql,i)),this.children.forEach((t=>r.push(t.serialize()))),n[1]=(0,u.sH)(r.length),s.push(n),r.length&&s.push(r.join(";")),s.join(";")}}var p=i(58633),f=i(16158),g=i(51722),I=i(23483),v=i(86243);class b extends l{id=(0,g.bz)();initialPageURL=f.m;customName;customAttributes={};customDataByApi={};queueTime;appTime;newRoute;status=c.ih.IP;domTimestamp=0;historyTimestamp=0;createdByApi=!1;keepOpenUntilEndApi=!1;onDone=[];customEnd=0;cancellationTimer;watchLongtaskTimer;constructor(t,e,i,s){super(),this.belType=c.Qu.INTERACTION,this.trigger=t,this.start=e,this.oldRoute=i,this.eventSubscription=new Map([["finished",[]],["cancelled",[]]]),this.forceSave=this.forceIgnore=!1,this.trigger===c.AM&&(this.createdByApi=!0),this.newURL=this.oldURL=s||f.gm?.location.href}updateHistory(t,e){this.domTimestamp>0||e&&e!==this.oldURL&&(this.newURL=e,this.historyTimestamp=t||(0,I.t)())}updateDom(t){!this.historyTimestamp||t<this.historyTimestamp||(this.domTimestamp=t||(0,I.t)())}checkHistoryAndDomChange(){return this.historyTimestamp>0&&this.domTimestamp>this.historyTimestamp&&(this.status===c.ih.PF||(this.status=c.ih.PF,clearTimeout(this.cancellationTimer),this.watchLongtaskTimer??=setTimeout((()=>this.done()),c.wD)),!0)}on(t,e){if(!this.eventSubscription.has(t))throw new Error("Cannot subscribe to non pre-defined events.");
1if("function"!=typeof e)throw new Error("Must supply function as callback.");this.eventSubscription.get(t).push(e)}done(t=this.customEnd,e=!1){return!(this.keepOpenUntilEndApi&&!e)&&(this.status===c.ih.FIN||this.status===c.ih.CAN||(clearTimeout(this.cancellationTimer),clearTimeout(this.watchLongtaskTimer),this.onDone.forEach((t=>t(this.customDataByApi))),this.forceIgnore?this.#t():this.status===c.ih.PF?this.#e(t):this.forceSave?this.#e(t||performance.now()):this.#t()),!0)}#e(t){this.end=Math.max(this.domTimestamp,this.historyTimestamp,t),this.status=c.ih.FIN;this.eventSubscription.get("finished").forEach((t=>t()))}#t(){this.status=c.ih.CAN;this.eventSubscription.get("cancelled").forEach((t=>t()))}isActiveDuring(t){return this.status===c.ih.IP||this.status===c.ih.PF?this.start<=t:this.status===c.ih.FIN&&this.start<=t&&t<this.end}get firstPaint(){}get firstContentfulPaint(){}get navTiming(){}serialize(t,e){const i=void 0===t,s=(0,u.uJ)(e.runtime.obfuscator),n=[];let r;r=this.trigger===c.pP?c.O2.INITIAL_PAGE_LOAD:this.newURL!==this.oldURL?c.O2.ROUTE_CHANGE:c.O2.UNSPECIFIED;const a=[(0,u.sH)(this.belType),0,(0,u.sH)(this.start-(i?0:t)),(0,u.sH)(this.end-this.start),(0,u.sH)(0),(0,u.sH)(0),s(this.trigger),s((0,v.L)(this.initialPageURL,!0)),s((0,v.L)(this.oldURL,!0)),s((0,v.L)(this.newURL,!0)),s(this.customName),r,(0,u.me)(this.queueTime,u.sH,!0)+(0,u.me)(this.appTime,u.sH,!0)+(0,u.me)(this.oldRoute,s,!0)+(0,u.me)(this.newRoute,s,!0)+s(this.id),s(this.nodeId),(0,u.me)(this.firstPaint,u.sH,!0)+(0,u.me)(this.firstContentfulPaint,u.sH)],o={...e.info.jsAttributes,...this.customAttributes},h=(0,u.AQ)(o||{},s);return e.info.atts&&h.push("a,"+s(e.info.atts)),this.children.forEach((s=>h.push(s.serialize(i?this.start:t,e)))),a[1]=(0,u.sH)(h.length),n.push(a),h.length&&n.push(h.join(";")),this.navTiming?n.push(this.navTiming):n.push(""),n.join(";")}}var T=i(82745),P=i(64548);class A extends b{constructor(t){super(c.pP,0,null),this.queueTime=t.info.queueTime,this.appTime=t.info.applicationTime,this.oldURL=document.referrer||void 0}get firstPaint(){return T.J.current.value}get firstContentfulPaint(){return P.j.current.value}get navTiming(){if(!p.ss.length)return;let t=",",e="b",i=0;return p.ss.slice(1,21).forEach((s=>{void 0!==s?(e+=t+(0,u.sH)(s-i),t=",",i=s):(e+=t+"!",t="")})),e}}class y extends h.r{static featureName=c.TZ;constructor(t,{domObserver:e}){super(t,c.TZ),super.customAttributesAreSeparate=!0,this.interactionsToHarvest=this.events,this.domObserver=e,this.initialPageLoadInteraction=new A(t),this.initialPageLoadInteraction.onDone.push((()=>{t.runtime.session?.isNew&&(this.initialPageLoadInteraction.customAttributes.isFirstOfSession=!0),this.initialPageLoadInteraction.forceSave=!0;const e=this.initialPageLoadInteraction;this.events.add(e),this.initialPageLoadInteraction=null})),a.j.subscribe((({attrs:t})=>{const e=t.navigationEntry.loadEventEnd;this.initialPageLoadInteraction.done(e),this.reportSupportabilityMetric("SoftNav/Interaction/InitialPageLoad/Duration/Ms",Math.round(e))})),this.latestRouteSetByApi=null,this.interactionInProgress=null,this.latestHistoryUrl=window.location.href,this.harvestOpts.beforeUnload=()=>this.interactionInProgress?.done(),this.waitForFlags(["spa"]).then((([e])=>{e?(this.drain(),setTimeout((()=>t.runtime.harvester.triggerHarvestFor(this)),0)):(this.blocked=!0,this.deregisterDrain())})),(0,n.i)("newUIEvent",(t=>this.startUIInteraction(t.type,Math.floor(t.timeStamp),t.target)),this.featureName,this.ee),(0,n.i)("newURL",((t,e)=>{this.latestHistoryUrl=e,this.interactionInProgress?.updateHistory(t,e)}),this.featureName,this.ee),(0,n.i)("newDom",(t=>{this.interactionInProgress?.updateDom(t),this.interactionInProgress?.checkHistoryAndDomChange()}),this.featureName,this.ee),this.ee.on("long-task",(t=>{this.interactionInProgress?.watchLongtaskTimer&&(clearTimeout(this.interactionInProgress.watchLongtaskTimer),this.interactionInProgress.customEnd=t.end,this.interactionInProgress.watchLongtaskTimer=setTimeout((()=>this.interactionInProgress.done()),c.wD),this.reportSupportabilityMetric("SoftNav/Interaction/Extended"))})),this.#i(),(0,n.i)("ajax",this.#s.bind(this),this.featureName,this.ee),(0,n.i)("jserror",this.#n.bind(this),this.featureName,this.ee)}serializer(t){let e;const i=[];for(const s of t)i.push(s.serialize(e,this.agentRef)),void 0===e&&(e=Math.floor(s.start));return"bel.7;".concat(i.join(";"))}
1startUIInteraction(t,e,i){if(this.interactionInProgress?.createdByApi)return;if(t===c.OV&&this.interactionInProgress?.trigger!==c.OV&&e-this.interactionInProgress?.start<=c.t1)return;if(!1===this.interactionInProgress?.done())return;const s=t===c.OV?this.latestHistoryUrl:void 0;if(this.interactionInProgress=new b(t,e,this.latestRouteSetByApi,s),t===c.tC[0]){const t=function(t){const e=t.tagName.toLowerCase();if(["a","button","input"].includes(e))return t.title||t.value||t.innerText}(i);t&&(this.interactionInProgress.customAttributes.actionText=t)}this.interactionInProgress.cancellationTimer=setTimeout((()=>{this.interactionInProgress.done(),this.reportSupportabilityMetric("SoftNav/Interaction/TimeOut")}),3e4),this.setClosureHandlers()}setClosureHandlers(){this.interactionInProgress.on("finished",(()=>{const t=this.interactionInProgress;this.events.add(this.interactionInProgress),this.interactionInProgress=null,this.domObserver.disconnect(),this.reportSupportabilityMetric("SoftNav/Interaction/".concat(t.newURL!==t.oldURL?"RouteChange":"Custom","/Duration/Ms"),Math.round(t.end-t.start))})),this.interactionInProgress.on("cancelled",(()=>{this.interactionInProgress=null,this.domObserver.disconnect()}))}getInteractionFor(t){if(this.interactionInProgress?.isActiveDuring(t))return this.interactionInProgress;let e;const i=this.interactionsToHarvest.get()?.[0]?.data;if(i){for(let s=i.length-1;s>=0;s--){const n=i[s];if(n.isActiveDuring(t)){if(n.trigger!==c.pP)return n;e=n}}return e||(this.initialPageLoadInteraction?.isActiveDuring(t)?this.initialPageLoadInteraction:void 0)}}#s(t,e){const i=this.getInteractionFor(t.startTime);function n(t,e,i){const n=i.end;if(t.startTime>n)return void(0,s.p)("returnAjax",[t],void 0,o.K7.ajax,this.ee);const r=new m(t,e);i.addChild(r)}i?i.status===c.ih.FIN?n.call(this,t,e,i):(i.on("finished",(()=>n.call(this,t,e,i))),i.on("cancelled",(()=>(0,s.p)("returnAjax",[t],void 0,o.K7.ajax,this.ee)))):(0,s.p)("returnAjax",[t],void 0,o.K7.ajax,this.ee)}#n(t,e){const i=this.getInteractionFor(e);i&&(t.browserInteractionId=i.id,i.status===c.ih.FIN?(t._softNavFinished=!0,t._softNavAttributes=i.customAttributes):(i.on("finished",(0,r.J)((()=>(0,s.p)("softNavFlush",[i.id,!0,i.customAttributes,i.end],void 0,o.K7.jserrors,this.ee)))),i.on("cancelled",(0,r.J)((()=>(0,s.p)("softNavFlush",[i.id,!1,void 0],void 0,o.K7.jserrors,this.ee))))))}#i(){const t="api-ixn-",e=this;(0,n.i)(t+"get",(function(t,{waitForEnd:i}={}){this.associatedInteraction=e.getInteractionFor(t),this.associatedInteraction?.trigger===c.pP&&(this.associatedInteraction=null),this.associatedInteraction||(this.associatedInteraction=e.interactionInProgress=new b(c.AM,t,e.latestRouteSetByApi),e.domObserver.observe(document.body,{attributes:!0,childList:!0,subtree:!0,characterData:!0}),e.setClosureHandlers()),!0===i&&(this.associatedInteraction.keepOpenUntilEndApi=!0,clearTimeout(this.associatedInteraction.cancellationTimer))}),e.featureName,e.ee),(0,n.i)(t+"end",(function(t){this.associatedInteraction.done(t,!0)}),e.featureName,e.ee),(0,n.i)(t+"save",(function(){this.associatedInteraction.forceSave=!0}),e.featureName,e.ee),(0,n.i)(t+"ignore",(function(){this.associatedInteraction.forceIgnore=!0}),e.featureName,e.ee),(0,n.i)(t+"getContext",(function(t,e){"function"==typeof e&&setTimeout((()=>e(this.associatedInteraction.customDataByApi)),0)}),e.featureName,e.ee),(0,n.i)(t+"onEnd",(function(t,e){"function"==typeof e&&this.associatedInteraction.onDone.push(e)}),e.featureName,e.ee),(0,n.i)(t+"actionText",(function(t,e){e&&(this.associatedInteraction.customAttributes.actionText=e)}),e.featureName,e.ee),(0,n.i)(t+"setName",(function(t,e,i){e&&(this.associatedInteraction.customName=e),i&&(this.associatedInteraction.trigger=i)}),e.featureName,e.ee),(0,n.i)(t+"setAttribute",(function(t,e,i){this.associatedInteraction.customAttributes[e]=i}),e.featureName,e.ee),(0,n.i)(t+"routeName",(function(t,i){e.latestRouteSetByApi=i,e.interactionInProgress&&(e.interactionInProgress.newRoute=i)}),e.featureName,e.ee)}}},34947:function(t,e,i){i.d(e,{AQ:function(){return c},me:function(){return a},sH:function(){return o},uJ:function(){return h}});var s=i(36748),n=Object.prototype.hasOwnProperty,r=64;function a(t,e,i){return t||0===t||""===t?e(t)+(i?",":""):"!"}function o(t,e){return e?Math.floor(t).toString(36):void 0===t||0===t?"":Math.floor(t).toString(36)}function h(t){let e=0;const i=Object.prototype.hasOwnProperty.call(Object,"create")?Object.create(null):{};return function(s){if(void 0===s||""===s)return"";return s=t.obfuscateString(String(s)),n.call(i,s)?o(i[s],!0):(i[s]=e++,function(t){return"'"+t.replace(u,"\\$1")}(s))}}function c(t,e){var i=[];return Object.entries(t||{}
1).forEach((([t,n])=>{if(!(i.length>=r)){var a,o=5;switch(t=e(t),typeof n){case"object":n?a=e((0,s.A)(n)):o=9;break;case"number":o=6,a=n%1?n:n+".";break;case"boolean":o=n?7:8;break;case"undefined":o=9;break;default:a=e(n)}i.push([o,t+(a?","+a:"")])}})),i}var u=/([,\\;])/g},67159:function(t,e,i){i.d(e,{j:function(){return o}});var s=i(16158),n=i(967),r=i(53737),a=i(13241);const o=new r.x(n.w.TIME_TO_FIRST_BYTE);if(s.RI&&"undefined"!=typeof PerformanceNavigationTiming&&!s.OF&&window===window.parent)(0,a.Ck)((({value:t,attribution:e})=>{o.isValid||o.update({value:t,attrs:{navigationEntry:e.navigationEntry}})}));else if(!o.isValid){const t={};for(let e in s.gm?.performance?.timing||{})t[e]=Math.max(s.gm?.performance?.timing[e]-s.WN,0);o.update({value:t.responseStart,attrs:{navigationEntry:t}})}}}]);
2//# sourceMappingURL=soft_navigations-aggregate-49004d661100cad79592.js.map

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.