1/*! For license information please see vendor~dynamic-render.bundle.js.LICENSE.txt */ 2"use strict";(globalThis.webpackChunksfra_boilerplate||=[]).push([[133],{7983(e,t,n){function o(e,t,n){let s;return"#text"===e.nodeName?s=n.document.createTextNode(e.data):"#comment"===e.nodeName?s=n.document.createComment(e.data):(t?s=n.document.createElementNS("http://www.w3.org/2000/svg",e.nodeName):"svg"===e.nodeName.toLowerCase()?(s=n.document.createElementNS("http://www.w3.org/2000/svg","svg"),t=!0):s=n.document.createElement(e.nodeName),e.attributes&&Object.entries(e.attributes).forEach(([e,t])=>s.setAttribute(e,t)),e.childNodes&&e.childNodes.forEach(e=>s.appendChild(o(e,t,n))),n.valueDiffing&&(e.value&&(s.value=e.value),e.checked&&(s.checked=e.checked),e.selected&&(s.selected=e.selected))),s}function s(e,t){for(t=t.slice();t.length>0;){if(!e.childNodes)return!1;const n=t.splice(0,1)[0];e=e.childNodes[n]}return e}function i(e,t,n){let i,a,l,c,r,u=s(e,t[n._const.route]);const d={diff:t,node:u};if(n.preDiffApply(d))return!0;switch(t[n._const.action]){case n._const.addAttribute:if(!u||!u.setAttribute)return!1;u.setAttribute(t[n._const.name],t[n._const.value]);break;case n._const.modifyAttribute:if(!u||!u.setAttribute)return!1;u.setAttribute(t[n._const.name],t[n._const.newValue]),"INPUT"===u.nodeName&&"value"===t[n._const.name]&&(u.value=t[n._const.newValue]);break;case n._const.removeAttribute:if(!u||!u.removeAttribute)return!1;u.removeAttribute(t[n._const.name]);break;case n._const.modifyTextElement:if(!u||3!==u.nodeType)return!1;n.textDiff(u,u.data,t[n._const.oldValue],t[n._const.newValue]);break;case n._const.modifyValue:if(!u||void 0===u.value)return!1;u.value=t[n._const.newValue];break;case n._const.modifyComment:if(!u||void 0===u.data)return!1;n.textDiff(u,u.data,t[n._const.oldValue],t[n._const.newValue]);break;case n._const.modifyChecked:if(!u||void 0===u.checked)return!1;u.checked=t[n._const.newValue];break;case n._const.modifySelected:if(!u||void 0===u.selected)return!1;u.selected=t[n._const.newValue];break;case n._const.replaceElement:u.parentNode.replaceChild(o(t[n._const.newValue],"http://www.w3.org/2000/svg"===u.namespaceURI,n),u);break;case n._const.relocateGroup:c=Array(...new Array(t.groupLength)).map(()=>u.removeChild(u.childNodes[t[n._const.from]])),c.forEach((e,o)=>{0===o&&(a=u.childNodes[t[n._const.to]]),u.insertBefore(e,a||null)});break;case n._const.removeElement:u.parentNode.removeChild(u);break;case n._const.addElement:l=t[n._const.route].slice(),r=l.splice(l.length-1,1)[0],u=s(e,l),u.insertBefore(o(t[n._const.element],"http://www.w3.org/2000/svg"===u.namespaceURI,n),u.childNodes[r]||null);break;case n._const.removeTextElement:if(!u||3!==u.nodeType)return!1;u.parentNode.removeChild(u);break;case n._const.addTextElement:if(l=t[n._const.route].slice(),r=l.splice(l.length-1,1)[0],i=n.document.createTextNode(t[n._const.value]),u=s(e,l),!u||!u.childNodes)return!1;u.insertBefore(i,u.childNodes[r]||null);break;default:console.log("unknown action")}return d.newNode=i,n.postDiffApply(d),!0}function a(e,t,n){const o=e[t];e[t]=e[n],e[n]=o}n.d(t,{DiffDOM:()=>O});class l{constructor(e={}){Object.entries(e).forEach(([e,t])=>this[e]=t)}toString(){return JSON.stringify(this)}setValue(e,t){return this[e]=t,this}}function c(e){const t=[];return t.push(e.nodeName),"#text"!==e.nodeName&&"#comment"!==e.nodeName&&e.attributes&&(e.attributes.class&&t.push(`${e.nodeName}.${e.attributes.class.replace(/ /g,".")}`),e.attributes.id&&t.push(`${e.nodeName}#${e.attributes.id}`)),t}function r(e){const t={},n={};return e.forEach(e=>{c(e).forEach(e=>{const o=e in t;o||e in n?o&&(delete t[e],n[e]=!0):t[e]=!0})}),t}function u(e,t){const n=r(e),o=r(t),s={};return Object.keys(n).forEach(e=>{o[e]&&(s[e]=!0)}),s}function d(e){return delete e.outerDone,delete e.innerDone,delete e.valueDone,!e.childNodes||e.childNodes.every(d)}function h(e,t){if(!["nodeName","value","checked","selected","data"].every(n=>e[n]===t[n]))return!1;if(Boolean(e.attributes)!==Boolean(t.attributes))return!1;if(Boolean(e.childNodes)!==Boolean(t.childNodes))return!1;if(e.attributes){const n=Object.keys(e.attributes),o=Object.keys(t.attributes);if(n.length!==o.length)return!1;if(!n.every(n=>e.attributes[n]===t.attributes[n]))return!1}if(e.childNodes){if(e.childNodes.length!==t.childNodes.length)return!1;if(!e.childNodes.every((e,n)=>h(e,t.childNodes[n])))return!1}return!0}
2function p(e,t,n,o,s){if(!e||!t)return!1;if(e.nodeName!==t.nodeName)return!1;if("#text"===e.nodeName)return!!s||e.data===t.data;if(e.nodeName in n)return!0;if(e.attributes&&t.attributes){if(e.attributes.id){if(e.attributes.id!==t.attributes.id)return!1;if(`${e.nodeName}#${e.attributes.id}`in n)return!0}if(e.attributes.class&&e.attributes.class===t.attributes.class&&`${e.nodeName}.${e.attributes.class.replace(/ /g,".")}`in n)return!0}if(o)return!0;const i=e.childNodes?e.childNodes.slice().reverse():[],a=t.childNodes?t.childNodes.slice().reverse():[];if(i.length!==a.length)return!1;if(s)return i.every((e,t)=>e.nodeName===a[t].nodeName);{const e=u(i,a);return i.every((t,n)=>p(t,a[n],e,!0,!0))}}function f(e){return JSON.parse(JSON.stringify(e))}function m(e,t,n,o){let s=0,i=[];const a=e.length,l=t.length,r=Array(...new Array(a+1)).map(()=>[]),d=u(e,t);let h=a===l;h&&e.some((e,n)=>{const o=c(e),s=c(t[n]);return o.length!==s.length?(h=!1,!0):(o.some((e,t)=>{if(e!==s[t])return h=!1,!0}),!h||void 0)});for(let c=0;c<a;c++){const a=e[c];for(let e=0;e<l;e++){const l=t[e];n[c]||o[e]||!p(a,l,d,h)?r[c+1][e+1]=0:(r[c+1][e+1]=r[c][e]?r[c][e]+1:1,r[c+1][e+1]>=s&&(s=r[c+1][e+1],i=[c+1,e+1]))}}return 0!==s&&{oldValue:i[0]-s,newValue:i[1]-s,length:s}}function _(e,t){return Array(...new Array(e)).map(()=>t)}class g{constructor(){this.list=[]}add(e){this.list.push(...e)}forEach(e){this.list.forEach(t=>e(t))}}function V(e,t){let n,o,s=e;for(t=t.slice();t.length>0;){if(!s.childNodes)return!1;o=t.splice(0,1)[0],n=s,s=s.childNodes[o]}return{node:s,parentNode:n,nodeIndex:o}}function b(e,t,n){return t.forEach(t=>{!function(e,t,n){const o=V(e,t[n._const.route]);let s=o.node;const i=o.parentNode,a=o.nodeIndex,l=[],c={diff:t,node:s};if(n.preVirtualDiffApply(c))return!0;let r,u,d,h;switch(t[n._const.action]){case n._const.addAttribute:s.attributes||(s.attributes={}),s.attributes[t[n._const.name]]=t[n._const.value],"checked"===t[n._const.name]?s.checked=!0:"selected"===t[n._const.name]?s.selected=!0:"INPUT"===s.nodeName&&"value"===t[n._const.name]&&(s.value=t[n._const.value]);break;case n._const.modifyAttribute:s.attributes[t[n._const.name]]=t[n._const.newValue];break;case n._const.removeAttribute:delete s.attributes[t[n._const.name]],0===Object.keys(s.attributes).length&&delete s.attributes,"checked"===t[n._const.name]?s.checked=!1:"selected"===t[n._const.name]?delete s.selected:"INPUT"===s.nodeName&&"value"===t[n._const.name]&&delete s.value;break;case n._const.modifyTextElement:s.data=t[n._const.newValue];break;case n._const.modifyValue:s.value=t[n._const.newValue];break;case n._const.modifyComment:s.data=t[n._const.newValue];break;case n._const.modifyChecked:s.checked=t[n._const.newValue];break;case n._const.modifySelected:s.selected=t[n._const.newValue];break;case n._const.replaceElement:r=f(t[n._const.newValue]),r.outerDone=!0,r.innerDone=!0,r.valueDone=!0,i.childNodes[a]=r;break;case n._const.relocateGroup:u=s.childNodes.splice(t[n._const.from],t.groupLength).reverse(),u.forEach(e=>s.childNodes.splice(t[n._const.to],0,e)),s.subsets&&s.subsets.forEach(e=>{if(t[n._const.from]<t[n._const.to]&&e.oldValue<=t[n._const.to]&&e.oldValue>t[n._const.from]){e.oldValue-=t.groupLength;const o=e.oldValue+e.length-t[n._const.to];o>0&&(l.push({oldValue:t[n._const.to]+t.groupLength,newValue:e.newValue+e.length-o,length:o}),e.length-=o)}else if(t[n._const.from]>t[n._const.to]&&e.oldValue>t[n._const.to]&&e.oldValue<t[n._const.from]){e.oldValue+=t.groupLength;const o=e.oldValue+e.length-t[n._const.to];o>0&&(l.push({oldValue:t[n._const.to]+t.groupLength,newValue:e.newValue+e.length-o,length:o}),e.length-=o)}else e.oldValue===t[n._const.from]&&(e.oldValue=t[n._const.to])});break;case n._const.removeElement:i.childNodes.splice(a,1),i.subsets&&i.subsets.forEach(e=>{e.oldValue>a?e.oldValue-=1:e.oldValue===a?e.delete=!0:e.oldValue<a&&e.oldValue+e.length>a&&(e.oldValue+e.length-1===a?e.length--:(l.push({newValue:e.newValue+a-e.oldValue,oldValue:a,length:e.length-a+e.oldValue-1}),e.length=a-e.oldValue))}),s=i;break;case n._const.addElement:d=t[n._const.route].slice(),h=d.splice(d.length-1,1)[0],s=V(e,d).node,r=f(t[n._const.element]),r.outerDone=!0,r.innerDone=!0,r.valueDone=!0,s.childNodes||(s.childNodes=[]),h>
2=s.childNodes.length?s.childNodes.push(r):s.childNodes.splice(h,0,r),s.subsets&&s.subsets.forEach(e=>{if(e.oldValue>=h)e.oldValue+=1;else if(e.oldValue<h&&e.oldValue+e.length>h){const t=e.oldValue+e.length-h;l.push({newValue:e.newValue+e.length-t,oldValue:h+1,length:t}),e.length-=t}});break;case n._const.removeTextElement:i.childNodes.splice(a,1),"TEXTAREA"===i.nodeName&&delete i.value,i.subsets&&i.subsets.forEach(e=>{e.oldValue>a?e.oldValue-=1:e.oldValue===a?e.delete=!0:e.oldValue<a&&e.oldValue+e.length>a&&(e.oldValue+e.length-1===a?e.length--:(l.push({newValue:e.newValue+a-e.oldValue,oldValue:a,length:e.length-a+e.oldValue-1}),e.length=a-e.oldValue))}),s=i;break;case n._const.addTextElement:d=t[n._const.route].slice(),h=d.splice(d.length-1,1)[0],r={},r.nodeName="#text",r.data=t[n._const.value],s=V(e,d).node,s.childNodes||(s.childNodes=[]),h>=s.childNodes.length?s.childNodes.push(r):s.childNodes.splice(h,0,r),"TEXTAREA"===s.nodeName&&(s.value=t[n._const.newValue]),s.subsets&&s.subsets.forEach(e=>{if(e.oldValue>=h&&(e.oldValue+=1),e.oldValue<h&&e.oldValue+e.length>h){const t=e.oldValue+e.length-h;l.push({newValue:e.newValue+e.length-t,oldValue:h+1,length:t}),e.length-=t}});break;default:console.log("unknown action")}s.subsets&&(s.subsets=s.subsets.filter(e=>!e.delete&&e.oldValue!==e.newValue),l.length&&(s.subsets=s.subsets.concat(l))),c.newNode=r,n.postVirtualDiffApply(c)}(e,t,n)}),!0}function v(e,t={}){const n={};return n.nodeName=e.nodeName,"#text"===n.nodeName||"#comment"===n.nodeName?n.data=e.data:(e.attributes&&e.attributes.length>0&&(n.attributes={},Array.prototype.slice.call(e.attributes).forEach(e=>n.attributes[e.name]=e.value)),"TEXTAREA"===n.nodeName?n.value=e.value:e.childNodes&&e.childNodes.length>0&&(n.childNodes=[],Array.prototype.slice.call(e.childNodes).forEach(e=>n.childNodes.push(v(e,t)))),t.valueDiffing&&(void 0!==e.checked&&e.type&&["radio","checkbox"].includes(e.type.toLowerCase())?n.checked=e.checked:void 0!==e.value&&(n.value=e.value),void 0!==e.selected&&(n.selected=e.selected))),n}const N=/<(?:"[^"]*"['"]*|'[^']*'['"]*|[^'">])+>/g,w=Object.create?Object.create(null):{},y=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function E(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&")}const k={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,menuItem:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0};function x(e){const t={nodeName:"",attributes:{}};let n=e.match(/<\/?([^\s]+?)[/\s>]/);if(n&&(t.nodeName=n[1].toUpperCase(),(k[n[1].toLowerCase()]||"/"===e.charAt(e.length-2))&&(t.voidElement=!0),t.nodeName.startsWith("!--"))){const t=e.indexOf("--\x3e");return{type:"comment",data:-1!==t?e.slice(4,t):""}}let o=new RegExp(y),s=null,i=!1;for(;!i;)if(s=o.exec(e),null===s)i=!0;else if(s[0].trim())if(s[1]){let e=s[1].trim(),n=[e,""];e.indexOf("=")>-1&&(n=e.split("=")),t.attributes[n[0]]=n[1],o.lastIndex--}else s[2]&&(t.attributes[s[2]]=s[3].trim().substring(1,s[3].length-1));return t}function A(e){return delete e.voidElement,e.childNodes&&e.childNodes.forEach(e=>A(e)),e}function D(e){return A(function(e,t={components:w}){const n=[];let o,s=-1;const i=[];let a=!1;return e.replace(N,(l,c)=>{if(a){if(l!==`</${o.nodeName}>`)return;a=!1}const r="/"!==l.charAt(1),u=l.startsWith("\x3c!--"),d=c+l.length,h=e.charAt(d);let p;if(u){const e=x(l);return s<0?(n.push(e),n):(p=i[s],p&&(p.childNodes||(p.childNodes=[]),p.childNodes.push(e)),n)}if(r&&(o=x(l),s++,"tag"===o.type&&t.components[o.nodeName]&&(o.type="component",a=!0),o.voidElement||a||!h||"<"===h||(o.childNodes||(o.childNodes=[]),o.childNodes.push({nodeName:"#text",data:E(e.slice(d,e.indexOf("<",d)))})),0===s&&n.push(o),p=i[s-1],p&&(p.childNodes||(p.childNodes=[]),p.childNodes.push(o)),i[s]=o),(!r||o.voidElement)&&(s--,!a&&"<"!==h&&h)){p=-1===s?n:i[s].childNodes||[];const t=e.indexOf("<",d),o=E(e.slice(d,-1===t?void 0:t));p.push({nodeName:"#text",data:o})}}),n[0]}(e))}class C{constructor(e,t,n){this.options=n,this.t1=e instanceof HTMLElement?v(e,this.options):"string"==typeof e?D(e,this.options):JSON.parse(JSON.stringify(e)),this.t2=t instanceof HTMLElement?v(t,this.options):"string"==typeof t?D(t,this.options):JSON.parse(JSON.stringify(t)),this.diffcount=0,this.foundAll=!1,this.debug&&(this.t1Orig=v(e,this.options),this.t2Orig=v(t,this.options)),this.tracker=new g}init(){return this.findDiffs(this.t1,this.t2)}findDiffs(e,t){let n;do{if(this.options.debug&&(this.diffcount+=1,this.diffcount>this.options.diffcap))throw window.diffError=[this.t1Orig,this.t2Orig],new Error(`surpassed diffcap:${JSON.stringify(this.t1Orig)} -> ${JSON.stringify(this.t2Orig)}`);n=this.findNextDiff(e,t,[]),0===n.length&&(h(e,t)||(this.foundAll?console.error("Could not find remaining diffs!"):(this.foundAll=!0,d(e),n=this.findNextDiff(e,t,[])))),n.length>0&&(this.foundAll=!1,this.tracker.add(n),b(e,n,this.options))}while(n.length>0);return this.tracker.list}findNextDiff(e,t,n){let o,s;if(this.options.maxDepth&&n.length>this.options.maxDepth)return[];if(!e.outerDone){if(o=this.findOuterDiff(e,t,n),this.options.filterOuterDiff&&(s=this.options.filterOuterDiff(e,t,o),s&&(o=s)),o.length>0)return e.outerDone=!0,o;e.outerDone=!0}if(!e.innerDone){if(o=this.findInnerDiff(e,t,n),o.length>0)return o;e.innerDone=!0}if(this.options.valueDiffing&&!e.valueDone){if(o=this.findValueDiff(e,t,n),o.length>0)return e.valueDone=!0,o;e.valueDone=!0}return[]}findOuterDiff(e,t,n){const o=[];let s,i,a,c,r,u;if(e.nodeName!==t.nodeName){if(!n.length)throw new Error("Top level nodes have to be of the same kind.");return[(new l).setValue(this.options._const.action,this.options._const.replaceElement).setValue(this.options._const.oldValue,f(e)).setValue(this.options._const.newValue,f(t)).setValue(this.options._const.route,n)]}if(n.length&&this.options.maxNodeDiffCount<Math.abs((e.childNodes||[]).length-(t.childNodes||[]).length))return[(new l).setValue(this.options._const.action,this.options._const.replaceElement).setValue(this.options._const.oldValue,f(e)).setValue(this.options._const.newValue,f(t)).setValue(this.options._const.route,n)];if(e.data!==t.data)return"#text"===e.nodeName?[(new l).setValue(this.options._const.action,this.options._const.modifyTextElement).setValue(this.options._const.route,n).setValue(this.options._const.oldValue,e.data).setValue(this.options._const.newValue,t.data)]:[(new l).setValue(this.options._const.action,this.options._const.modifyComment).setValue(this.options._const.route,n).setValue(this.options._const.oldValue,e.data).setValue(this.options._const.newValue,t.data)];for(i=e.attributes?Object.keys(e.attributes).sort():[],a=t.attributes?Object.keys(t.attributes).sort():[],c=i.length,u=0;u<c;u++)s=i[u],r=a.indexOf(s),-1===r?o.push((new l).setValue(this.options._const.action,this.options._const.removeAttribute).setValue(this.options._const.route,n).setValue(this.options._const.name,s).setValue(this.options._const.value,e.attributes[s])):(a.splice(r,1),e.attributes[s]!==t.attributes[s]&&o.push((new l).setValue(this.options._const.action,this.options._const.modifyAttribute).setValue(this.options._const.route,n).setValue(this.options._const.name,s).setValue(this.options._const.oldValue,e.attributes[s]).setValue(this.options._const.newValue,t.attributes[s])));for(c=a.length,u=0;u<c;u++)s=a[u],o.push((new l).setValue(this.options._const.action,this.options._const.addAttribute).setValue(this.options._const.route,n).setValue(this.options._const.name,s).setValue(this.options._const.value,t.attributes[s]));return o}findInnerDiff(e,t,n){const o=e.childNodes?e.childNodes.slice():[],s=t.childNodes?t.childNodes.slice():[],i=Math.max(o.length,s.length);let a=Math.abs(o.length-s.length),c=[],r=0;if(!this.options.maxChildCount||i<this.options.maxChildCount){const o=e.subsets&&e.subsetsAge--?e.subsets:e.childNodes&&t.childNodes?function(e,t){const n=e.childNodes?e.childNodes:[],o=t.childNodes?t.childNodes:[],s=_(n.length,!1),i=_(o.length,!1),a=[];let l=!0;const c=function(){return arguments[1]};for(;l;)l=m(n,o,s,i),l&&(a.push(l),Array(...new Array(l.length)).map(c).forEac
2h(e=>{return t=e,s[l.oldValue+t]=!0,void(i[l.newValue+t]=!0);var t}));return e.subsets=a,e.subsetsAge=100,a}(e,t):[];if(o.length>0&&(c=this.attemptGroupRelocation(e,t,o,n),c.length>0))return c}for(let e=0;e<i;e+=1){const t=o[e],u=s[e];a&&(t&&!u?"#text"===t.nodeName?(c.push((new l).setValue(this.options._const.action,this.options._const.removeTextElement).setValue(this.options._const.route,n.concat(r)).setValue(this.options._const.value,t.data)),r-=1):(c.push((new l).setValue(this.options._const.action,this.options._const.removeElement).setValue(this.options._const.route,n.concat(r)).setValue(this.options._const.element,f(t))),r-=1):u&&!t&&("#text"===u.nodeName?c.push((new l).setValue(this.options._const.action,this.options._const.addTextElement).setValue(this.options._const.route,n.concat(r)).setValue(this.options._const.value,u.data)):c.push((new l).setValue(this.options._const.action,this.options._const.addElement).setValue(this.options._const.route,n.concat(r)).setValue(this.options._const.element,f(u))))),t&&u&&(!this.options.maxChildCount||i<this.options.maxChildCount?c=c.concat(this.findNextDiff(t,u,n.concat(r))):h(t,u)||(o.length>s.length?("#text"===t.nodeName?c.push((new l).setValue(this.options._const.action,this.options._const.removeTextElement).setValue(this.options._const.route,n.concat(r)).setValue(this.options._const.value,t.data)):c.push((new l).setValue(this.options._const.action,this.options._const.removeElement).setValue(this.options._const.element,f(t)).setValue(this.options._const.route,n.concat(r))),o.splice(e,1),e-=1,r-=1,a-=1):o.length<s.length?(c=c.concat([(new l).setValue(this.options._const.action,this.options._const.addElement).setValue(this.options._const.element,f(u)).setValue(this.options._const.route,n.concat(r))]),o.splice(e,0,{}),a-=1):c=c.concat([(new l).setValue(this.options._const.action,this.options._const.replaceElement).setValue(this.options._const.oldValue,f(t)).setValue(this.options._const.newValue,f(u)).setValue(this.options._const.route,n.concat(r))]))),r+=1}return e.innerDone=!0,c}attemptGroupRelocation(e,t,n,o){const s=function(e,t,n){const o=e.childNodes?_(e.childNodes.length,!0):[],s=t.childNodes?_(t.childNodes.length,!0):[];let i=0;return n.forEach(e=>{const t=e.oldValue+e.length,n=e.newValue+e.length;for(let n=e.oldValue;n<t;n+=1)o[n]=i;for(let t=e.newValue;t<n;t+=1)s[t]=i;i+=1}),{gaps1:o,gaps2:s}}(e,t,n),i=s.gaps1,a=s.gaps2;let c,r,u,d,h,m,g=Math.min(i.length,a.length);const V=[];for(let s=0,_=0;s<g;_+=1,s+=1)if(!0===i[s])if(d=e.childNodes[_],"#text"===d.nodeName)if("#text"===t.childNodes[s].nodeName){if(d.data!==t.childNodes[s].data){for(m=_;e.childNodes.length>m+1&&"#text"===e.childNodes[m+1].nodeName;)if(m+=1,t.childNodes[s].data===e.childNodes[m].data){h=!0;break}if(!h)return V.push((new l).setValue(this.options._const.action,this.options._const.modifyTextElement).setValue(this.options._const.route,o.concat(s)).setValue(this.options._const.oldValue,d.data).setValue(this.options._const.newValue,t.childNodes[s].data)),V}}else V.push((new l).setValue(this.options._const.action,this.options._const.removeTextElement).setValue(this.options._const.route,o.concat(s)).setValue(this.options._const.value,d.data)),i.splice(s,1),g=Math.min(i.length,a.length),s-=1;else V.push((new l).setValue(this.options._const.action,this.options._const.removeElement).setValue(this.options._const.route,o.concat(s)).setValue(this.options._const.element,f(d))),i.splice(s,1),g=Math.min(i.length,a.length),s-=1;else if(!0===a[s])d=t.childNodes[s],"#text"===d.nodeName?(V.push((new l).setValue(this.options._const.action,this.options._const.addTextElement).setValue(this.options._const.route,o.concat(s)).setValue(this.options._const.value,d.data)),i.splice(s,0,!0),g=Math.min(i.length,a.length),_-=1):(V.push((new l).setValue(this.options._const.action,this.options._const.addElement).setValue(this.options._const.route,o.concat(s)).setValue(this.options._const.element,f(d))),i.splice(s,0,!0),g=Math.min(i.length,a.length),_-=1);else if(i[s]!==a[s]){if(V.length>0)return V;if(u=n[i[s]],r=Math.min(u.newValue,e.childNodes.length-u.length),r!==u.oldValue){c=!1;for(let t=0;t<u.length;t+=1)p(e.childNodes[r+t],e.childNodes[u.oldValue+t],[],!1,!0)||(c=!0);if(c)return[(new l).setValue(this.options._const.action,this.options._const.relocateGroup).setValue("groupLength",u.length).setValue(this.options._const.from,u.oldValue).setValue(this.options._const.to,r).setValue(this.options._const.route,o)]}}return V}findValueDiff(e,t,n){const o=[];return e.selected!==t.selected&&o.push((new l).setValue(this.options._const.action,this.options._const.modifySelected).setValue(this.options._const.oldValue,e.selected).setValue(this.options._const.newValue,t.selected).setValue(this.options._const.route,n)),(e.value||t.value)&&e.value!==t.value&&"OPTION"!==e.nodeName&&o.push((new l).setValue(this.options._const.action,this.options._const.modifyValue).setValue(this.options._const.oldValue,e.value||"").setValue(this.options._const.newValue,t.value||"").setValue(this.options._const.route,n)),e.checked!==t.checked&&o.push((new l).setValue(this.options._const.action,this.options._const.modifyChecked).setValue(this.options._const.oldValue,e.checked).setValue(this.options._const.newValue,t.checked).setValue(this.options._const.route,n)),o}}const T={debug:!1,diffcap:10,maxDepth:!1,maxChildCount:50,valueDiffing:!0,textDiff(e,t,n,o){e.data=o},preVirtualDiffApply(){},postVirtualDiffApply(){},preDiffApply(){},postDiffApply(){},filterOuterDiff:null,compress:!1,_const:!1,document:!(!window||!window.document)&&window.document};class O{constructor(e={}){if(this.options=e,Object.entries(T).forEach(([e,t])=>{Object.prototype.hasOwnProperty.call(this.options,e)||(this.options[e]=t)}),!this.options._const){const e=["addAttribute","modifyAttribute","removeAttribute","modifyTextElement","relocateGroup","removeElement","addElement","removeTextElement","addTextElement","replaceElement","modifyValue","modifyChecked","modifySelected","modifyComment","action","route","oldValue","newValue","element","group","from","to","
2name","value","data","attributes","nodeName","childNodes","checked","selected"];this.options._const={},this.options.compress?e.forEach((e,t)=>this.options._const[e]=t):e.forEach(e=>this.options._const[e]=e)}this.DiffFinder=C}apply(e,t){return function(e,t,n){return t.every(t=>i(e,t,n))}(e,t,this.options)}undo(e,t){return function(e,t,n){t.length||(t=[t]),(t=t.slice()).reverse(),t.forEach(t=>{!function(e,t,n){switch(t[n._const.action]){case n._const.addAttribute:t[n._const.action]=n._const.removeAttribute,i(e,t,n);break;case n._const.modifyAttribute:a(t,n._const.oldValue,n._const.newValue),i(e,t,n);break;case n._const.removeAttribute:t[n._const.action]=n._const.addAttribute,i(e,t,n);break;case n._const.modifyTextElement:case n._const.modifyValue:case n._const.modifyComment:case n._const.modifyChecked:case n._const.modifySelected:case n._const.replaceElement:a(t,n._const.oldValue,n._const.newValue),i(e,t,n);break;case n._const.relocateGroup:a(t,n._const.from,n._const.to),i(e,t,n);break;case n._const.removeElement:t[n._const.action]=n._const.addElement,i(e,t,n);break;case n._const.addElement:t[n._const.action]=n._const.removeElement,i(e,t,n);break;case n._const.removeTextElement:t[n._const.action]=n._const.addTextElement,i(e,t,n);break;case n._const.addTextElement:t[n._const.action]=n._const.removeTextElement,i(e,t,n);break;default:console.log("unknown action")}}(e,t,n)})}(e,t,this.options)}diff(e,t){return new this.DiffFinder(e,t,this.options).init()}}},5505(e,t,n){var o=Object.prototype.toString,s=Array.isArray||function(e){return"[object Array]"===o.call(e)};function i(e){return"function"==typeof e}function a(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function l(e,t){return null!=e&&"object"==typeof e&&t in e}function c(e,t){return null!=e&&"object"!=typeof e&&e.hasOwnProperty&&e.hasOwnProperty(t)}var r=RegExp.prototype.test,u=/\S/;function d(e){return!function(e,t){return r.call(e,t)}(u,e)}var h={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="},p=/\s*/,f=/\s+/,m=/\s*=/,_=/\s*\}/,g=/#|\^|\/|>|\{|&|=|!/;function V(e){this.string=e,this.tail=e,this.pos=0}function b(e,t){this.view=e,this.cache={".":this.view},this.parent=t}function v(){this.templateCache={_cache:{},set:function(e,t){this._cache[e]=t},get:function(e){return this._cache[e]},clear:function(){this._cache={}}}}V.prototype.eos=function(){return""===this.tail},V.prototype.scan=function(e){var t=this.tail.match(e);if(!t||0!==t.index)return"";var n=t[0];return this.tail=this.tail.substring(n.length),this.pos+=n.length,n},V.prototype.scanUntil=function(e){var t,n=this.tail.search(e);switch(n){case-1:t=this.tail,this.tail="";break;case 0:t="";break;default:t=this.tail.substring(0,n),this.tail=this.tail.substring(n)}return this.pos+=t.length,t},b.prototype.push=function(e){return new b(e,this)},b.prototype.lookup=function(e){var t,n=this.cache;if(n.hasOwnProperty(e))t=n[e];else{for(var o,s,a,r=this,u=!1;r;){if(e.indexOf(".")>0)for(o=r.view,s=e.split("."),a=0;null!=o&&a<s.length;)a===s.length-1&&(u=l(o,s[a])||c(o,s[a])),o=o[s[a++]];else o=r.view[e],u=l(r.view,e);if(u){t=o;break}r=r.parent}n[e]=t}return i(t)&&(t=t.call(this.view)),t},v.prototype.clearCache=function(){void 0!==this.templateCache&&this.templateCache.clear()},v.prototype.parse=function(e,t){var n=this.templateCache,o=e+":"+(t||N.tags).join(":"),i=void 0!==n,l=i?n.get(o):void 0;return null==l&&(l=function(e,t){if(!e)return[];
vendor: 4,409 bytes, line 2
2var n,o,i,l=!1,c=[],r=[],u=[],h=!1,b=!1,v="",w=0;function y(){if(h&&!b)for(;u.length;)delete r[u.pop()];else u=[];h=!1,b=!1}function E(e){if("string"==typeof e&&(e=e.split(f,2)),!s(e)||2!==e.length)throw new Error("Invalid tags: "+e);n=new RegExp(a(e[0])+"\\s*"),o=new RegExp("\\s*"+a(e[1])),i=new RegExp("\\s*"+a("}"+e[1]))}E(t||N.tags);for(var k,x,A,D,C,T,O=new V(e);!O.eos();){if(k=O.pos,A=O.scanUntil(n))for(var S=0,j=A.length;S<j;++S)d(D=A.charAt(S))?(u.push(r.length),v+=D):(b=!0,l=!0,v+=" "),r.push(["text",D,k,k+1]),k+=1,"\n"===D&&(y(),v="",w=0,l=!1);if(!O.scan(n))break;if(h=!0,x=O.scan(g)||"name",O.scan(p),"="===x?(A=O.scanUntil(m),O.scan(m),O.scanUntil(o)):"{"===x?(A=O.scanUntil(i),O.scan(_),O.scanUntil(o),x="&"):A=O.scanUntil(o),!O.scan(o))throw new Error("Unclosed tag at "+O.pos);if(C=">"==x?[x,A,k,O.pos,v,w,l]:[x,A,k,O.pos],w++,r.push(C),"#"===x||"^"===x)c.push(C);else if("/"===x){if(!(T=c.pop()))throw new Error('Unopened section "'+A+'" at '+k);if(T[1]!==A)throw new Error('Unclosed section "'+T[1]+'" at '+k)}else"name"===x||"{"===x||"&"===x?b=!0:"="===x&&E(A)}if(y(),T=c.pop())throw new Error('Unclosed section "'+T[1]+'" at '+O.pos);return function(e){for(var t,n=[],o=n,s=[],i=0,a=e.length;i<a;++i)switch((t=e[i])[0]){case"#":case"^":o.push(t),s.push(t),o=t[4]=[];break;case"/":s.pop()[5]=t[2],o=s.length>0?s[s.length-1][4]:n;break;default:o.push(t)}return n}(function(e){for(var t,n,o=[],s=0,i=e.length;s<i;++s)(t=e[s])&&("text"===t[0]&&n&&"text"===n[0]?(n[1]+=t[1],n[3]=t[3]):(o.push(t),n=t));return o}(r))}(e,t),i&&n.set(o,l)),l},v.prototype.render=function(e,t,n,o){var s=this.getConfigTags(o),i=this.parse(e,s),a=t instanceof b?t:new b(t,void 0);return this.renderTokens(i,a,n,e,o)},v.prototype.renderTokens=function(e,t,n,o,s){for(var i,a,l,c="",r=0,u=e.length;r<u;++r)l=void 0,"#"===(a=(i=e[r])[0])?l=this.renderSection(i,t,n,o,s):"^"===a?l=this.renderInverted(i,t,n,o,s):">"===a?l=this.renderPartial(i,t,n,s):"&"===a?l=this.unescapedValue(i,t):"name"===a?l=this.escapedValue(i,t,s):"text"===a&&(l=this.rawValue(i)),void 0!==l&&(c+=l);return c},v.prototype.renderSection=function(e,t,n,o,a){var l=this,c="",r=t.lookup(e[1]);if(r){if(s(r))for(var u=0,d=r.length;u<d;++u)c+=this.renderTokens(e[4],t.push(r[u]),n,o,a);else if("object"==typeof r||"string"==typeof r||"number"==typeof r)c+=this.renderTokens(e[4],t.push(r),n,o,a);else if(i(r)){if("string"!=typeof o)throw new Error("Cannot use higher-order sections without the original template");null!=(r=r.call(t.view,o.slice(e[3],e[5]),function(e){return l.render(e,t,n,a)}))&&(c+=r)}else c+=this.renderTokens(e[4],t,n,o,a);return c}},v.prototype.renderInverted=function(e,t,n,o,i){var a=t.lookup(e[1]);if(!a||s(a)&&0===a.length)return this.renderTokens(e[4],t,n,o,i)},v.prototype.indentPartial=function(e,t,n){for(var o=t.replace(/[^ \t]/g,""),s=e.split("\n"),i=0;i<s.length;i++)s[i].length&&(i>0||!n)&&(s[i]=o+s[i]);return s.join("\n")},v.prototype.renderPartial=function(e,t,n,o){if(n){var s=this.getConfigTags(o),a=i(n)?n(e[1]):n[e[1]];if(null!=a){var l=e[6],c=e[5],r=e[4],u=a;0==c&&r&&(u=this.indentPartial(a,r,l));var d=this.parse(u,s);return this.renderTokens(d,t,n,u,o)}}},v.prototype.unescapedValue=function(e,t){var n=t.lookup(e[1]);if(null!=n)return n},v.prototype.escapedValue=function(e,t,n){var o=this.getConfigEscape(n)||N.escape,s=t.lookup(e[1]);if(null!=s)return"number"==typeof s&&o===N.escape?String(s):o(s)},v.prototype.rawValue=function(e){return e[1]},v.prototype.getConfigTags=function(e){return s(e)?e:e&&"object"==typeof e?e.tags:void 0},v.prototype.getConfigEscape=function(e){return e&&"object"==typeof e&&!s(e)?e.escape:void 0};var N={name:"mustache.js",version:"4.2.0",tags:["{{","}}"],clearCache:void 0,escape:void 0,parse:void 0,render:void 0,Scanner:void 0,Context:void 0,Writer:void 0,set templateCache(e){w.templateCache=e},get templateCache(){return w.templateCache}},w=new v;N.clearCache=function(){return w.clearCache()},N.parse=function(e,t){return w.parse(e,t)},N.render=function(e,t,n,o){if("string"!=typeof e)throw new TypeError('Invalid template! Template should be a "string" but "'+(s(i=e)?"array":typeof i)+'" was given as the first argument for mustache#render(template, view, partials)');var i;return w.render(e,t,n,o)},N.escape=function(e){return String(e).replace(/[&<>"'`=\/]/g,function(e){return h[e]})},N.Scanner=V,N.Context=b,N.Writer=v;const y=N;n.d(t,["default",0,y])}}]);
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.