!function(e,t){"object"==typeofexports&&"undefined"!=typeofmodule?t(exports):"function"==typeofdefine&&define.amd?define(["exports"],t):(e=e||self,t(e.diff={}))}(this,function(e){"use strict";functiont(e,t){varr=Object.keys(e);if(Object.getOwnPropertySymbols){varn=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){returnObject.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}returnr}functionr(e){for(varr=1;r<arguments.length;r++){varn=null!=arguments[r]?arguments[r]:{};r%2?t(Object(n),!0).forEach(function(t){i(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):t(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}returne}functionn(e,t){if(!(einstanceoft))thrownewTypeError("Cannot call a class as a function")}functiona(e,t){for(varr=0;r<t.length;r++){varn=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"inn&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}functiono(e,t,r){returnt&&a(e.prototype,t),r&&a(e,r),e}functioni(e,t,r){returntine?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}functions(e){returnc(e)||d(e)||l(e)||f()}functionc(e){if(Array.isArray(e))returnu(e)}functiond(e){if("undefined"!=typeofSymbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])returnArray.from(e)}functionl(e,t){if(e){if("string"==typeofe)returnu(e,t);varr=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void0}}functionu(e,t){(null==t||t>e.length)&&(t=e.length);for(varr=0,n=newArray(t);r<t;r++)n[r]=e[r];returnn}functionf(){thrownewTypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}functionh(e,t){varr=String(e);switch(t){case"boolean":return"false"!==r;case"string":returnr;case"number":returnie(r,10);case"array":returnr.split(",");case"object":returnse(r)}}functionp(e,t){varr=arguments.length>2&&void0!==arguments[2]?arguments[2]:typeoft,n=arguments.length>3?arguments[3]:void0;if(n&&einn)returnn[e];vara="DIFF_".concat(e.replace(/[^a-zA-Z0-9]/,"")).toLowerCase();if(fe){varo=newde(ce.search);if(o.has(a))returnh(decodeURIComponent(String(o.get(a))),r)}returnhe&&ainae.env?h(ae.env[a],r):t}functionv(e,t,n){vara=null;if(Se.protected.has(e)||Se.allocated.has(e))a=e;elseif(!e||we(e)){varo=e?e.length:0;n=[];for(vari=0;i<o;i++)e&&n.push(e[i]);a=v(ke,null,n)}if(a)returna;varc="object"==typeofe,d=e;if(e&&c&&"ownerDocument"ind){if(d.nodeType===G.TEXT){varl=v(Re,d.nodeValue);returnK.set(l,d),l}t={},n=[];varu=d.attributes;if(d.nodeType===G.ELEMENT&&u&&u.length)for(varf=0;f<u.length;f++){varh=u[f],p=h.name,m=h.value;m===X.STR&&pind?t[p]=e[p]:t[p]=m}if(d.nodeType===G.ELEMENT||d.nodeType===G.FRAGMENT){n=[];for(varg=0;g<d.childNodes.length;g++){varN=d.childNodes[g];n.push(v(N))}}returnK.forEach(function(t,r){t===e&&(a=r)}),a=a||v(d.nodeName,t,n),a.attributes=r(r({},a.attributes),t),a.childNodes=n,K.set(a,d),a}if(c){varb=e.rawNodeName,y=e.nodeName,T=e.nodeValue,E=e.attributes,w=e.childNodes,S=e.children,k=b||y,R=v(k,E||null,S||w);returnT&&(R.nodeValue=T),R}for(varO=arguments.length,M=newArray(O>3?O-3:0),x=3;x<O;x++)M[x-3]=arguments[x];M.length&&(n=[n].concat(M)),a=Ee.get();varA=e===Re;"string"==typeofe?(a.rawNodeName=e,a.nodeName=a.rawNodeName.toLowerCase()):(a.rawNodeName=e,a.nodeName=ke),a.nodeValue=X.STR,a.key=X.STR,a.childNodes.length=0,a.attributes={};varC=we(t)||"object"!=typeoft,_=C?t:n,L=we(_)?_:[_];if(A){varI=L.join(X.STR);returna.nodeType=G.TEXT,a.nodeValue=String(I),a}if(a.nodeName===ke?a.nodeType=G.FRAGMENT:a.nodeType="#comment"===e?G.COMMENT:G.ELEMENT,_&&L.length&&(!t||!t.childNodes))for(varD=0;D<L.length;D++){varj=L[D];if(we(j)){varV;(V=a.childNodes).push.apply(V,s(j))}else{if(!j)continue;if(j.nodeType===G.FRAGMENT&&"string"=